define("graph_notebook_widgets",["@jupyter-widgets/base"],(function(t){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)i.d(n,o,function(e){return t[e]}.bind(null,o));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=5)}([function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=i(6);e.MODULE_VERSION=n.version,e.MODULE_NAME=n.name},function(t,e,i){"use strict";(function(t){i.d(e,"a",(function(){return nI})),i.d(e,"b",(function(){return oI})),i.d(e,"c",(function(){return Ih})),i.d(e,"d",(function(){return iA})),i.d(e,"e",(function(){return $C})),i.d(e,"f",(function(){return rI})),i.d(e,"g",(function(){return cs})),i.d(e,"h",(function(){return us})),i.d(e,"i",(function(){return ah})),i.d(e,"j",(function(){return lh})),i.d(e,"k",(function(){return hs})),i.d(e,"l",(function(){return hg}));
/**
 * vis-network
 * https://visjs.github.io/vis-network/
 *
 * A dynamic, browser-based visualization library.
 *
 * @version 7.6.3
 * @date    2020-05-06T08:28:31.366Z
 *
 * @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 n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};function o(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function r(t,e){return t(e={exports:{}},e.exports),e.exports}function g(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var s=function(t){return t&&t.Math==Math&&t},a=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof n&&n)||Function("return this")(),A=function(t){try{return!!t()}catch(t){return!0}},C=!A((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),I={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,c={f:l&&!I.call({1:2},1)?function(t){var e=l(this,t);return!!e&&e.enumerable}:I},h=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},u={}.toString,d=function(t){return u.call(t).slice(8,-1)},p="".split,f=A((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==d(t)?p.call(t,""):Object(t)}:Object,v=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},m=function(t){return f(v(t))},y=function(t){return"object"==typeof t?null!==t:"function"==typeof t},b=function(t,e){if(!y(t))return t;var i,n;if(e&&"function"==typeof(i=t.toString)&&!y(n=i.call(t)))return n;if("function"==typeof(i=t.valueOf)&&!y(n=i.call(t)))return n;if(!e&&"function"==typeof(i=t.toString)&&!y(n=i.call(t)))return n;throw TypeError("Can't convert object to primitive value")},w={}.hasOwnProperty,x=function(t,e){return w.call(t,e)},k=a.document,_=y(k)&&y(k.createElement),D=function(t){return _?k.createElement(t):{}},O=!C&&!A((function(){return 7!=Object.defineProperty(D("div"),"a",{get:function(){return 7}}).a})),M=Object.getOwnPropertyDescriptor,T={f:C?M:function(t,e){if(t=m(t),e=b(e,!0),O)try{return M(t,e)}catch(t){}if(x(t,e))return h(!c.f.call(t,e),t[e])}},N=/#|\.prototype\./,E=function(t,e){var i=S[F(t)];return i==B||i!=j&&("function"==typeof e?A(e):!!e)},F=E.normalize=function(t){return String(t).replace(N,".").toLowerCase()},S=E.data={},j=E.NATIVE="N",B=E.POLYFILL="P",R=E,z={},Z=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},G=function(t,e,i){if(Z(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,n){return t.call(e,i,n)};case 3:return function(i,n,o){return t.call(e,i,n,o)}}return function(){return t.apply(e,arguments)}},P=function(t){if(!y(t))throw TypeError(String(t)+" is not an object");return t},L=Object.defineProperty,W={f:C?L:function(t,e,i){if(P(t),e=b(e,!0),P(i),O)try{return L(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported");return"value"in i&&(t[e]=i.value),t}},Q=C?function(t,e,i){return W.f(t,e,h(1,i))}:function(t,e,i){return t[e]=i,t},U=T.f,Y=function(t){var e=function(e,i,n){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,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e},V=function(t,e){var i,n,o,r,g,s,A,C,I=t.target,l=t.global,c=t.stat,h=t.proto,u=l?a:c?a[I]:(a[I]||{}).prototype,d=l?z:z[I]||(z[I]={}),p=d.prototype;for(o in e)i=!R(l?o:I+(c?".":"#")+o,t.forced)&&u&&x(u,o),g=d[o],i&&(s=t.noTargetGet?(C=U(u,o))&&C.value:u[o]),r=i&&s?s:e[o],i&&typeof g==typeof r||(A=t.bind&&i?G(r,a):t.wrap&&i?Y(r):h&&"function"==typeof r?G(Function.call,r):r,(t.sham||r&&r.sham||g&&g.sham)&&Q(A,"sham",!0),d[o]=A,h&&(x(z,n=I+"Prototype")||Q(z,n,{}),z[n][o]=r,t.real&&p&&!p[o]&&Q(p,o,r)))},H=[].slice,X={},J=function(t,e,i){if(!(e in X)){for(var n=[],o=0;o<e;o++)n[o]="a["+o+"]";X[e]=Function("C,a","return new C("+n.join(",")+")")}return X[e](t,i)},K=Function.bind||function(t){var e=Z(this),i=H.call(arguments,1),n=function(){var o=i.concat(H.call(arguments));return this instanceof n?J(e,o.length,o):e.apply(t,o)};return y(e.prototype)&&(n.prototype=e.prototype),n};V({target:"Function",proto:!0},{bind:K});var q=function(t){return z[t+"Prototype"]},$=q("Function").bind,tt=Function.prototype,et=function(t){var e=t.bind;return t===tt||t instanceof Function&&e===tt.bind?$:e};function it(t,e,i,n){t.beginPath(),t.arc(e,i,n,0,2*Math.PI,!1),t.closePath()}function nt(t,e,i,n,o,r){var g=Math.PI/180;n-2*r<0&&(r=n/2),o-2*r<0&&(r=o/2),t.beginPath(),t.moveTo(e+r,i),t.lineTo(e+n-r,i),t.arc(e+n-r,i+r,r,270*g,360*g,!1),t.lineTo(e+n,i+o-r),t.arc(e+n-r,i+o-r,r,0,90*g,!1),t.lineTo(e+r,i+o),t.arc(e+r,i+o-r,r,90*g,180*g,!1),t.lineTo(e,i+r),t.arc(e+r,i+r,r,180*g,270*g,!1),t.closePath()}function ot(t,e,i,n,o){var r=n/2*.5522848,g=o/2*.5522848,s=e+n,a=i+o,A=e+n/2,C=i+o/2;t.beginPath(),t.moveTo(e,C),t.bezierCurveTo(e,C-g,A-r,i,A,i),t.bezierCurveTo(A+r,i,s,C-g,s,C),t.bezierCurveTo(s,C+g,A+r,a,A,a),t.bezierCurveTo(A-r,a,e,C+g,e,C),t.closePath()}function rt(t,e,i,n,o){var r=o*(1/3),g=n/2*.5522848,s=r/2*.5522848,a=e+n,A=i+r,C=e+n/2,I=i+r/2,l=i+(o-r/2),c=i+o;t.beginPath(),t.moveTo(a,I),t.bezierCurveTo(a,I+s,C+g,A,C,A),t.bezierCurveTo(C-g,A,e,I+s,e,I),t.bezierCurveTo(e,I-s,C-g,i,C,i),t.bezierCurveTo(C+g,i,a,I-s,a,I),t.lineTo(a,l),t.bezierCurveTo(a,l+s,C+g,c,C,c),t.bezierCurveTo(C-g,c,e,l+s,e,l),t.lineTo(e,I)}function gt(t,e,i,n,o,r){t.beginPath(),t.moveTo(e,i);for(var g=r.length,s=n-e,a=o-i,A=a/s,C=Math.sqrt(s*s+a*a),I=0,l=!0,c=0,h=+r[0];C>=.1;)(h=+r[I++%g])>C&&(h=C),c=Math.sqrt(h*h/(1+A*A)),e+=c=s<0?-c:c,i+=A*c,!0===l?t.lineTo(e,i):t.moveTo(e,i),C-=h,l=!l}var st={circle:it,dashedLine:gt,database:rt,diamond:function(t,e,i,n){t.beginPath(),t.lineTo(e,i+n),t.lineTo(e+n,i),t.lineTo(e,i-n),t.lineTo(e-n,i),t.closePath()},ellipse:ot,ellipse_vis:ot,hexagon:function(t,e,i,n){t.beginPath();var o=2*Math.PI/6;t.moveTo(e+n,i);for(var r=1;r<6;r++)t.lineTo(e+n*Math.cos(o*r),i+n*Math.sin(o*r));t.closePath()},roundRect:nt,square:function(t,e,i,n){t.beginPath(),t.rect(e-n,i-n,2*n,2*n),t.closePath()},star:function(t,e,i,n){t.beginPath(),i+=.1*(n*=.82);for(var o=0;o<10;o++){var r=o%2==0?1.3*n:.5*n;t.lineTo(e+r*Math.sin(2*o*Math.PI/10),i-r*Math.cos(2*o*Math.PI/10))}t.closePath()},triangle:function(t,e,i,n){t.beginPath(),i+=.275*(n*=1.15);var o=2*n,r=o/2,g=Math.sqrt(3)/6*o,s=Math.sqrt(o*o-r*r);t.moveTo(e,i-(s-g)),t.lineTo(e+r,i+g),t.lineTo(e-r,i+g),t.lineTo(e,i-(s-g)),t.closePath()},triangleDown:function(t,e,i,n){t.beginPath(),i-=.275*(n*=1.15);var o=2*n,r=o/2,g=Math.sqrt(3)/6*o,s=Math.sqrt(o*o-r*r);t.moveTo(e,i+(s-g)),t.lineTo(e+r,i-g),t.lineTo(e-r,i-g),t.lineTo(e,i+(s-g)),t.closePath()}};var at=r((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,n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var o=0;o<n.length;o++)if((i=n[o])===e||i.fn===e){n.splice(o,1);break}return 0===n.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],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(i){n=0;for(var o=(i=i.slice(0)).length;n<o;++n)i[n].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}})),At={},Ct=a["__core-js_shared__"]||function(t,e){try{Q(a,t,e)}catch(i){a[t]=e}return e}("__core-js_shared__",{}),It=Function.toString;"function"!=typeof Ct.inspectSource&&(Ct.inspectSource=function(t){return It.call(t)});var lt,ct,ht,ut=Ct.inspectSource,dt=a.WeakMap,pt="function"==typeof dt&&/native code/.test(ut(dt)),ft=r((function(t){(t.exports=function(t,e){return Ct[t]||(Ct[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.4",mode:"pure",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),vt=0,mt=Math.random(),yt=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++vt+mt).toString(36)},bt=ft("keys"),wt=function(t){return bt[t]||(bt[t]=yt(t))},xt={},kt=a.WeakMap;if(pt){var _t=new kt,Dt=_t.get,Ot=_t.has,Mt=_t.set;lt=function(t,e){return Mt.call(_t,t,e),e},ct=function(t){return Dt.call(_t,t)||{}},ht=function(t){return Ot.call(_t,t)}}else{var Tt=wt("state");xt[Tt]=!0,lt=function(t,e){return Q(t,Tt,e),e},ct=function(t){return x(t,Tt)?t[Tt]:{}},ht=function(t){return x(t,Tt)}}var Nt,Et,Ft,St={set:lt,get:ct,has:ht,enforce:function(t){return ht(t)?ct(t):lt(t,{})},getterFor:function(t){return function(e){var i;if(!y(e)||(i=ct(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return i}}},jt=function(t){return Object(v(t))},Bt=!A((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Rt=wt("IE_PROTO"),zt=Object.prototype,Zt=Bt?Object.getPrototypeOf:function(t){return t=jt(t),x(t,Rt)?t[Rt]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?zt:null},Gt=!!Object.getOwnPropertySymbols&&!A((function(){return!String(Symbol())})),Pt=Gt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Lt=ft("wks"),Wt=a.Symbol,Qt=Pt?Wt:Wt&&Wt.withoutSetter||yt,Ut=function(t){return x(Lt,t)||(Gt&&x(Wt,t)?Lt[t]=Wt[t]:Lt[t]=Qt("Symbol."+t)),Lt[t]},Yt=(Ut("iterator"),!1);[].keys&&("next"in(Ft=[].keys())?(Et=Zt(Zt(Ft)))!==Object.prototype&&(Nt=Et):Yt=!0),null==Nt&&(Nt={});var Vt,Ht={IteratorPrototype:Nt,BUGGY_SAFARI_ITERATORS:Yt},Xt=Math.ceil,Jt=Math.floor,Kt=function(t){return isNaN(t=+t)?0:(t>0?Jt:Xt)(t)},qt=Math.min,$t=function(t){return t>0?qt(Kt(t),9007199254740991):0},te=Math.max,ee=Math.min,ie=function(t,e){var i=Kt(t);return i<0?te(i+e,0):ee(i,e)},ne=function(t){return function(e,i,n){var o,r=m(e),g=$t(r.length),s=ie(n,g);if(t&&i!=i){for(;g>s;)if((o=r[s++])!=o)return!0}else for(;g>s;s++)if((t||s in r)&&r[s]===i)return t||s||0;return!t&&-1}},oe={includes:ne(!0),indexOf:ne(!1)},re=oe.indexOf,ge=function(t,e){var i,n=m(t),o=0,r=[];for(i in n)!x(xt,i)&&x(n,i)&&r.push(i);for(;e.length>o;)x(n,i=e[o++])&&(~re(r,i)||r.push(i));return r},se=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ae=Object.keys||function(t){return ge(t,se)},Ae=C?Object.defineProperties:function(t,e){P(t);for(var i,n=ae(e),o=n.length,r=0;o>r;)W.f(t,i=n[r++],e[i]);return t},Ce=function(t){return"function"==typeof t?t:void 0},Ie=function(t,e){return arguments.length<2?Ce(z[t])||Ce(a[t]):z[t]&&z[t][e]||a[t]&&a[t][e]},le=Ie("document","documentElement"),ce=wt("IE_PROTO"),he=function(){},ue=function(t){return"<script>"+t+"<\/script>"},de=function(){try{Vt=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;de=Vt?function(t){t.write(ue("")),t.close();var e=t.parentWindow.Object;return t=null,e}(Vt):((e=D("iframe")).style.display="none",le.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(ue("document.F=Object")),t.close(),t.F);for(var i=se.length;i--;)delete de.prototype[se[i]];return de()};xt[ce]=!0;var pe=Object.create||function(t,e){var i;return null!==t?(he.prototype=P(t),i=new he,he.prototype=null,i[ce]=t):i=de(),void 0===e?i:Ae(i,e)},fe={};fe[Ut("toStringTag")]="z";var ve="[object z]"===String(fe),me=Ut("toStringTag"),ye="Arguments"==d(function(){return arguments}()),be=ve?d:function(t){var e,i,n;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:ye?d(e):"Object"==(n=d(e))&&"function"==typeof e.callee?"Arguments":n},we=ve?{}.toString:function(){return"[object "+be(this)+"]"},xe=W.f,ke=Ut("toStringTag"),_e=function(t,e,i,n){if(t){var o=i?t:t.prototype;x(o,ke)||xe(o,ke,{configurable:!0,value:e}),n&&!ve&&Q(o,"toString",we)}},De=Ht.IteratorPrototype,Oe=function(){return this},Me=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,n){return P(i),function(t){if(!y(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(n),e?t.call(i,n):i.__proto__=n,i}}():void 0),Te=function(t,e,i,n){n&&n.enumerable?t[e]=i:Q(t,e,i)},Ne=Ht.IteratorPrototype,Ee=Ht.BUGGY_SAFARI_ITERATORS,Fe=Ut("iterator"),Se=function(){return this},je=function(t,e,i,n,o,r,g){!function(t,e,i){var n=e+" Iterator";t.prototype=pe(De,{next:h(1,i)}),_e(t,n,!1,!0),At[n]=Oe}(i,e,n);var s,a,A,C=function(t){if(t===o&&d)return d;if(!Ee&&t in c)return c[t];switch(t){case"keys":case"values":case"entries":return function(){return new i(this,t)}}return function(){return new i(this)}},I=e+" Iterator",l=!1,c=t.prototype,u=c[Fe]||c["@@iterator"]||o&&c[o],d=!Ee&&u||C(o),p="Array"==e&&c.entries||u;if(p&&(s=Zt(p.call(new t)),Ne!==Object.prototype&&s.next&&(_e(s,I,!0,!0),At[I]=Se)),"values"==o&&u&&"values"!==u.name&&(l=!0,d=function(){return u.call(this)}),g&&c[Fe]!==d&&Q(c,Fe,d),At[e]=d,o)if(a={values:C("values"),keys:r?d:C("keys"),entries:C("entries")},g)for(A in a)(Ee||l||!(A in c))&&Te(c,A,a[A]);else V({target:e,proto:!0,forced:Ee||l},a);return a},Be=St.set,Re=St.getterFor("Array Iterator");je(Array,"Array",(function(t,e){Be(this,{type:"Array Iterator",target:m(t),index:0,kind:e})}),(function(){var t=Re(this),e=t.target,i=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==i?{value:n,done:!1}:"values"==i?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values");At.Arguments=At.Array;var ze=Ut("toStringTag");for(var Ze 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 Ge=a[Ze],Pe=Ge&&Ge.prototype;Pe&&be(Pe)!==ze&&Q(Pe,ze,Ze),At[Ze]=At.Array}var Le=function(t){return function(e,i){var n,o,r=String(v(e)),g=Kt(i),s=r.length;return g<0||g>=s?t?"":void 0:(n=r.charCodeAt(g))<55296||n>56319||g+1===s||(o=r.charCodeAt(g+1))<56320||o>57343?t?r.charAt(g):n:t?r.slice(g,g+2):o-56320+(n-55296<<10)+65536}},We={codeAt:Le(!1),charAt:Le(!0)}.charAt,Qe=St.set,Ue=St.getterFor("String Iterator");je(String,"String",(function(t){Qe(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=Ue(this),i=e.string,n=e.index;return n>=i.length?{value:void 0,done:!0}:(t=We(i,n),e.index+=t.length,{value:t,done:!1})}));var Ye,Ve,He=Ut("iterator"),Xe=function(t){if(null!=t)return t[He]||t["@@iterator"]||At[be(t)]},Je=function(t){var e=Xe(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return P(e.call(t))},Ke=Xe,qe=Array.isArray||function(t){return"Array"==d(t)},$e=function(t,e,i){var n=b(e);n in t?W.f(t,n,h(0,i)):t[n]=i},ti=Ut("species"),ei=function(t,e){var i;return qe(t)&&("function"!=typeof(i=t.constructor)||i!==Array&&!qe(i.prototype)?y(i)&&null===(i=i[ti])&&(i=void 0):i=void 0),new(void 0===i?Array:i)(0===e?0:e)},ii=Ie("navigator","userAgent")||"",ni=a.process,oi=ni&&ni.versions,ri=oi&&oi.v8;ri?Ve=(Ye=ri.split("."))[0]+Ye[1]:ii&&(!(Ye=ii.match(/Edge\/(\d+)/))||Ye[1]>=74)&&(Ye=ii.match(/Chrome\/(\d+)/))&&(Ve=Ye[1]);var gi=Ve&&+Ve,si=Ut("species"),ai=function(t){return gi>=51||!A((function(){var e=[];return(e.constructor={})[si]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Ai=Ut("isConcatSpreadable"),Ci=gi>=51||!A((function(){var t=[];return t[Ai]=!1,t.concat()[0]!==t})),Ii=ai("concat"),li=function(t){if(!y(t))return!1;var e=t[Ai];return void 0!==e?!!e:qe(t)};V({target:"Array",proto:!0,forced:!Ci||!Ii},{concat:function(t){var e,i,n,o,r,g=jt(this),s=ei(g,0),a=0;for(e=-1,n=arguments.length;e<n;e++)if(li(r=-1===e?g:arguments[e])){if(a+(o=$t(r.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(i=0;i<o;i++,a++)i in r&&$e(s,a,r[i])}else{if(a>=9007199254740991)throw TypeError("Maximum allowed index exceeded");$e(s,a++,r)}return s.length=a,s}});var ci=se.concat("length","prototype"),hi={f:Object.getOwnPropertyNames||function(t){return ge(t,ci)}},ui=hi.f,di={}.toString,pi="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],fi={f:function(t){return pi&&"[object Window]"==di.call(t)?function(t){try{return ui(t)}catch(t){return pi.slice()}}(t):ui(m(t))}},vi={f:Object.getOwnPropertySymbols},mi={f:Ut},yi=W.f,bi=function(t){var e=z.Symbol||(z.Symbol={});x(e,t)||yi(e,t,{value:mi.f(t)})},wi=[].push,xi=function(t){var e=1==t,i=2==t,n=3==t,o=4==t,r=6==t,g=5==t||r;return function(s,a,A,C){for(var I,l,c=jt(s),h=f(c),u=G(a,A,3),d=$t(h.length),p=0,v=C||ei,m=e?v(s,d):i?v(s,0):void 0;d>p;p++)if((g||p in h)&&(l=u(I=h[p],p,c),t))if(e)m[p]=l;else if(l)switch(t){case 3:return!0;case 5:return I;case 6:return p;case 2:wi.call(m,I)}else if(o)return!1;return r?-1:n||o?o:m}},ki={forEach:xi(0),map:xi(1),filter:xi(2),some:xi(3),every:xi(4),find:xi(5),findIndex:xi(6)},_i=ki.forEach,Di=wt("hidden"),Oi=Ut("toPrimitive"),Mi=St.set,Ti=St.getterFor("Symbol"),Ni=Object.prototype,Ei=a.Symbol,Fi=Ie("JSON","stringify"),Si=T.f,ji=W.f,Bi=fi.f,Ri=c.f,zi=ft("symbols"),Zi=ft("op-symbols"),Gi=ft("string-to-symbol-registry"),Pi=ft("symbol-to-string-registry"),Li=ft("wks"),Wi=a.QObject,Qi=!Wi||!Wi.prototype||!Wi.prototype.findChild,Ui=C&&A((function(){return 7!=pe(ji({},"a",{get:function(){return ji(this,"a",{value:7}).a}})).a}))?function(t,e,i){var n=Si(Ni,e);n&&delete Ni[e],ji(t,e,i),n&&t!==Ni&&ji(Ni,e,n)}:ji,Yi=function(t,e){var i=zi[t]=pe(Ei.prototype);return Mi(i,{type:"Symbol",tag:t,description:e}),C||(i.description=e),i},Vi=Pt?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof Ei},Hi=function(t,e,i){t===Ni&&Hi(Zi,e,i),P(t);var n=b(e,!0);return P(i),x(zi,n)?(i.enumerable?(x(t,Di)&&t[Di][n]&&(t[Di][n]=!1),i=pe(i,{enumerable:h(0,!1)})):(x(t,Di)||ji(t,Di,h(1,{})),t[Di][n]=!0),Ui(t,n,i)):ji(t,n,i)},Xi=function(t,e){P(t);var i=m(e),n=ae(i).concat($i(i));return _i(n,(function(e){C&&!Ji.call(i,e)||Hi(t,e,i[e])})),t},Ji=function(t){var e=b(t,!0),i=Ri.call(this,e);return!(this===Ni&&x(zi,e)&&!x(Zi,e))&&(!(i||!x(this,e)||!x(zi,e)||x(this,Di)&&this[Di][e])||i)},Ki=function(t,e){var i=m(t),n=b(e,!0);if(i!==Ni||!x(zi,n)||x(Zi,n)){var o=Si(i,n);return!o||!x(zi,n)||x(i,Di)&&i[Di][n]||(o.enumerable=!0),o}},qi=function(t){var e=Bi(m(t)),i=[];return _i(e,(function(t){x(zi,t)||x(xt,t)||i.push(t)})),i},$i=function(t){var e=t===Ni,i=Bi(e?Zi:m(t)),n=[];return _i(i,(function(t){!x(zi,t)||e&&!x(Ni,t)||n.push(zi[t])})),n};if(Gt||(Te((Ei=function(){if(this instanceof Ei)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=yt(t),i=function(t){this===Ni&&i.call(Zi,t),x(this,Di)&&x(this[Di],e)&&(this[Di][e]=!1),Ui(this,e,h(1,t))};return C&&Qi&&Ui(Ni,e,{configurable:!0,set:i}),Yi(e,t)}).prototype,"toString",(function(){return Ti(this).tag})),Te(Ei,"withoutSetter",(function(t){return Yi(yt(t),t)})),c.f=Ji,W.f=Hi,T.f=Ki,hi.f=fi.f=qi,vi.f=$i,mi.f=function(t){return Yi(Ut(t),t)},C&&ji(Ei.prototype,"description",{configurable:!0,get:function(){return Ti(this).description}})),V({global:!0,wrap:!0,forced:!Gt,sham:!Gt},{Symbol:Ei}),_i(ae(Li),(function(t){bi(t)})),V({target:"Symbol",stat:!0,forced:!Gt},{for:function(t){var e=String(t);if(x(Gi,e))return Gi[e];var i=Ei(e);return Gi[e]=i,Pi[i]=e,i},keyFor:function(t){if(!Vi(t))throw TypeError(t+" is not a symbol");if(x(Pi,t))return Pi[t]},useSetter:function(){Qi=!0},useSimple:function(){Qi=!1}}),V({target:"Object",stat:!0,forced:!Gt,sham:!C},{create:function(t,e){return void 0===e?pe(t):Xi(pe(t),e)},defineProperty:Hi,defineProperties:Xi,getOwnPropertyDescriptor:Ki}),V({target:"Object",stat:!0,forced:!Gt},{getOwnPropertyNames:qi,getOwnPropertySymbols:$i}),V({target:"Object",stat:!0,forced:A((function(){vi.f(1)}))},{getOwnPropertySymbols:function(t){return vi.f(jt(t))}}),Fi){var tn=!Gt||A((function(){var t=Ei();return"[null]"!=Fi([t])||"{}"!=Fi({a:t})||"{}"!=Fi(Object(t))}));V({target:"JSON",stat:!0,forced:tn},{stringify:function(t,e,i){for(var n,o=[t],r=1;arguments.length>r;)o.push(arguments[r++]);if(n=e,(y(e)||void 0!==t)&&!Vi(t))return qe(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!Vi(e))return e}),o[1]=e,Fi.apply(null,o)}})}Ei.prototype[Oi]||Q(Ei.prototype,Oi,Ei.prototype.valueOf),_e(Ei,"Symbol"),xt[Di]=!0,bi("asyncIterator"),bi("hasInstance"),bi("isConcatSpreadable"),bi("iterator"),bi("match"),bi("matchAll"),bi("replace"),bi("search"),bi("species"),bi("split"),bi("toPrimitive"),bi("toStringTag"),bi("unscopables"),_e(Math,"Math",!0),_e(a.JSON,"JSON",!0);var en=z.Symbol,nn=en,on=function(t,e,i,n){try{return n?e(P(i)[0],i[1]):e(i)}catch(e){var o=t.return;throw void 0!==o&&P(o.call(t)),e}},rn=Ut("iterator"),gn=Array.prototype,sn=function(t){return void 0!==t&&(At.Array===t||gn[rn]===t)},an=Ut("iterator"),An=!1;try{var Cn=0,In={next:function(){return{done:!!Cn++}},return:function(){An=!0}};In[an]=function(){return this},Array.from(In,(function(){throw 2}))}catch(t){}var ln=!function(t,e){if(!e&&!An)return!1;var i=!1;try{var n={};n[an]=function(){return{next:function(){return{done:i=!0}}}},t(n)}catch(t){}return i}((function(t){Array.from(t)}));V({target:"Array",stat:!0,forced:ln},{from:function(t){var e,i,n,o,r,g,s=jt(t),a="function"==typeof this?this:Array,A=arguments.length,C=A>1?arguments[1]:void 0,I=void 0!==C,l=Xe(s),c=0;if(I&&(C=G(C,A>2?arguments[2]:void 0,2)),null==l||a==Array&&sn(l))for(i=new a(e=$t(s.length));e>c;c++)g=I?C(s[c],c):s[c],$e(i,c,g);else for(r=(o=l.call(s)).next,i=new a;!(n=r.call(o)).done;c++)g=I?on(o,C,[n.value,c],!0):n.value,$e(i,c,g);return i.length=c,i}});var cn=z.Array.from,hn=cn;V({target:"Object",stat:!0,forced:!C,sham:!C},{defineProperty:W.f});var un=r((function(t){var e=z.Object,i=t.exports=function(t,i,n){return e.defineProperty(t,i,n)};e.defineProperty.sham&&(i.sham=!0)})),dn=un;V({target:"Object",stat:!0,forced:!C,sham:!C},{defineProperties:Ae});var pn=r((function(t){var e=z.Object,i=t.exports=function(t,i){return e.defineProperties(t,i)};e.defineProperties.sham&&(i.sham=!0)})),fn=Ie("Reflect","ownKeys")||function(t){var e=hi.f(P(t)),i=vi.f;return i?e.concat(i(t)):e};V({target:"Object",stat:!0,sham:!C},{getOwnPropertyDescriptors:function(t){for(var e,i,n=m(t),o=T.f,r=fn(n),g={},s=0;r.length>s;)void 0!==(i=o(n,e=r[s++]))&&$e(g,e,i);return g}});var vn=z.Object.getOwnPropertyDescriptors,mn=T.f,yn=A((function(){mn(1)}));V({target:"Object",stat:!0,forced:!C||yn,sham:!C},{getOwnPropertyDescriptor:function(t,e){return mn(m(t),e)}});var bn=r((function(t){var e=z.Object,i=t.exports=function(t,i){return e.getOwnPropertyDescriptor(t,i)};e.getOwnPropertyDescriptor.sham&&(i.sham=!0)})),wn=bn,xn=z.Object.getOwnPropertySymbols;V({target:"Object",stat:!0,sham:!C},{create:pe});var kn=z.Object,_n=function(t,e){return kn.create(t,e)},Dn=_n,On=un;var Mn=function(t,e,i){return e in t?On(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t},Tn=A((function(){ae(1)}));V({target:"Object",stat:!0,forced:Tn},{keys:function(t){return ae(jt(t))}});var Nn,En=z.Object.keys,Fn="\t\n\v\f\r                　\u2028\u2029\ufeff",Sn="["+Fn+"]",jn=RegExp("^"+Sn+Sn+"*"),Bn=RegExp(Sn+Sn+"*$"),Rn=function(t){return function(e){var i=String(v(e));return 1&t&&(i=i.replace(jn,"")),2&t&&(i=i.replace(Bn,"")),i}},zn={start:Rn(1),end:Rn(2),trim:Rn(3)},Zn=zn.trim;V({target:"String",proto:!0,forced:(Nn="trim",A((function(){return!!Fn[Nn]()||"​᠎"!="​᠎"[Nn]()||Fn[Nn].name!==Nn})))},{trim:function(){return Zn(this)}});var Gn=q("String").trim,Pn=String.prototype,Ln=function(t){var e=t.trim;return"string"==typeof t||t===Pn||t instanceof String&&e===Pn.trim?Gn:e},Wn=function(t,e){var i=[][t];return!!i&&A((function(){i.call(null,e||function(){throw 1},1)}))},Qn=Object.defineProperty,Un={},Yn=function(t){throw t},Vn=function(t,e){if(x(Un,t))return Un[t];e||(e={});var i=[][t],n=!!x(e,"ACCESSORS")&&e.ACCESSORS,o=x(e,0)?e[0]:Yn,r=x(e,1)?e[1]:void 0;return Un[t]=!!i&&!A((function(){if(n&&!C)return!0;var t={length:-1};n?Qn(t,1,{enumerable:!0,get:Yn}):t[1]=1,i.call(t,o,r)}))},Hn=ki.forEach,Xn=Wn("forEach"),Jn=Vn("forEach"),Kn=Xn&&Jn?[].forEach:function(t){return Hn(this,t,arguments.length>1?arguments[1]:void 0)};V({target:"Array",proto:!0,forced:[].forEach!=Kn},{forEach:Kn});var qn=q("Array").forEach,$n=Array.prototype,to={DOMTokenList:!0,NodeList:!0},eo=function(t){var e=t.forEach;return t===$n||t instanceof Array&&e===$n.forEach||to.hasOwnProperty(be(t))?qn:e},io=ki.map,no=ai("map"),oo=Vn("map");V({target:"Array",proto:!0,forced:!no||!oo},{map:function(t){return io(this,t,arguments.length>1?arguments[1]:void 0)}});var ro=q("Array").map,go=Array.prototype,so=function(t){var e=t.map;return t===go||t instanceof Array&&e===go.map?ro:e},ao=zn.trim,Ao=a.parseInt,Co=/^[+-]?0[Xx]/,Io=8!==Ao(Fn+"08")||22!==Ao(Fn+"0x16")?function(t,e){var i=ao(String(t));return Ao(i,e>>>0||(Co.test(i)?16:10))}:Ao;V({global:!0,forced:parseInt!=Io},{parseInt:Io});var lo=z.parseInt,co=c.f,ho=function(t){return function(e){for(var i,n=m(e),o=ae(n),r=o.length,g=0,s=[];r>g;)i=o[g++],C&&!co.call(n,i)||s.push(t?[i,n[i]]:n[i]);return s}},uo={entries:ho(!0),values:ho(!1)}.values;V({target:"Object",stat:!0},{values:function(t){return uo(t)}});var po=z.Object.values,fo=ki.filter,vo=ai("filter"),mo=Vn("filter");V({target:"Array",proto:!0,forced:!vo||!mo},{filter:function(t){return fo(this,t,arguments.length>1?arguments[1]:void 0)}});var yo=q("Array").filter,bo=Array.prototype,wo=function(t){var e=t.filter;return t===bo||t instanceof Array&&e===bo.filter?yo:e},xo=q("Array").concat,ko=Array.prototype,_o=function(t){var e=t.concat;return t===ko||t instanceof Array&&e===ko.concat?xo:e};V({target:"Array",stat:!0},{isArray:qe});var Do=z.Array.isArray,Oo=Do;var Mo=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n};var To=function(t){if(Oo(t))return Mo(t)},No=cn,Eo=Ut("iterator"),Fo=function(t){var e=Object(t);return void 0!==e[Eo]||"@@iterator"in e||At.hasOwnProperty(be(e))};bi("asyncDispose"),bi("dispose"),bi("observable"),bi("patternMatch"),bi("replaceAll");var So=en;var jo=function(t){if(void 0!==So&&Fo(Object(t)))return No(t)},Bo=ai("slice"),Ro=Vn("slice",{ACCESSORS:!0,0:0,1:2}),zo=Ut("species"),Zo=[].slice,Go=Math.max;V({target:"Array",proto:!0,forced:!Bo||!Ro},{slice:function(t,e){var i,n,o,r=m(this),g=$t(r.length),s=ie(t,g),a=ie(void 0===e?g:e,g);if(qe(r)&&("function"!=typeof(i=r.constructor)||i!==Array&&!qe(i.prototype)?y(i)&&null===(i=i[zo])&&(i=void 0):i=void 0,i===Array||void 0===i))return Zo.call(r,s,a);for(n=new(void 0===i?Array:i)(Go(a-s,0)),o=0;s<a;s++,o++)s in r&&$e(n,o,r[s]);return n.length=o,n}});var Po=q("Array").slice,Lo=Array.prototype,Wo=function(t){var e=t.slice;return t===Lo||t instanceof Array&&e===Lo.slice?Po:e},Qo=Wo;var Uo=function(t,e){var i;if(t){if("string"==typeof t)return Mo(t,e);var n=Qo(i=Object.prototype.toString.call(t)).call(i,8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?No(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mo(t,e):void 0}};var Yo=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 Vo=function(t){return To(t)||jo(t)||Uo(t)||Yo()},Ho=Wo,Xo=A((function(){Zt(1)}));V({target:"Object",stat:!0,forced:Xo,sham:!Bt},{getPrototypeOf:function(t){return Zt(jt(t))}});var Jo=z.Object.getPrototypeOf,Ko=Jo,qo=oe.indexOf,$o=[].indexOf,tr=!!$o&&1/[1].indexOf(1,-0)<0,er=Wn("indexOf"),ir=Vn("indexOf",{ACCESSORS:!0,1:0});V({target:"Array",proto:!0,forced:tr||!er||!ir},{indexOf:function(t){return tr?$o.apply(this,arguments)||0:qo(this,t,arguments.length>1?arguments[1]:void 0)}});var nr=q("Array").indexOf,or=Array.prototype,rr=function(t){var e=t.indexOf;return t===or||t instanceof Array&&e===or.indexOf?nr:e},gr=Do,sr=Object.assign,ar=Object.defineProperty,Ar=!sr||A((function(){if(C&&1!==sr({b:1},sr(ar({},"a",{enumerable:!0,get:function(){ar(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!=sr({},t)[i]||"abcdefghijklmnopqrst"!=ae(sr({},e)).join("")}))?function(t,e){for(var i=jt(t),n=arguments.length,o=1,r=vi.f,g=c.f;n>o;)for(var s,a=f(arguments[o++]),A=r?ae(a).concat(r(a)):ae(a),I=A.length,l=0;I>l;)s=A[l++],C&&!g.call(a,s)||(i[s]=a[s]);return i}:sr;V({target:"Object",stat:!0,forced:Object.assign!==Ar},{assign:Ar});var Cr=z.Object.assign,Ir=mi.f("iterator"),lr=Ir,cr=r((function(t){function e(i){return t.exports=e="function"==typeof So&&"symbol"==typeof lr?function(t){return typeof t}:function(t){return t&&"function"==typeof So&&t.constructor===So&&t!==So.prototype?"symbol":typeof t},e(i)}t.exports=e}));var hr=function(t){if(Oo(t))return t};var ur=function(t,e){if(void 0!==So&&Fo(Object(t))){var i=[],n=!0,o=!1,r=void 0;try{for(var g,s=Je(t);!(n=(g=s.next()).done)&&(i.push(g.value),!e||i.length!==e);n=!0);}catch(t){o=!0,r=t}finally{try{n||null==s.return||s.return()}finally{if(o)throw r}}return i}};var dr=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 pr=function(t,e){return hr(t)||ur(t,e)||Uo(t,e)||dr()};V({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}});var fr=z.Date.now;function vr(t){if(void 0===nn||null==Ke(t)){if(gr(t)||(t=function(t,e){var i;if(!t)return;if("string"==typeof t)return mr(t,e);var n=Ho(i=Object.prototype.toString.call(t)).call(i,8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return hn(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mr(t,e)}(t))){var e=0,i=function(){};return{s:i,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:i}}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 n,o,r=!0,g=!1;return{s:function(){n=Je(t)},n:function(){var t=n.next();return r=t.done,t},e:function(t){g=!0,o=t},f:function(){try{r||null==n.return||n.return()}finally{if(g)throw o}}}}function mr(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function yr(t,e){var i=En(t);if(xn){var n=xn(t);e&&(n=wo(n).call(n,(function(e){return wn(t,e).enumerable}))),i.push.apply(i,n)}return i}function br(t){for(var e=1;e<arguments.length;e++){var i,n=null!=arguments[e]?arguments[e]:{};if(e%2)eo(i=yr(Object(n),!0)).call(i,(function(e){Mn(t,e,n[e])}));else if(vn)pn(t,vn(n));else{var o;eo(o=yr(Object(n))).call(o,(function(e){dn(t,e,wn(n,e))}))}}return t}
/**
 * vis-util
 * https://github.com/visjs/vis-util
 *
 * utilitie collection for visjs
 *
 * @version 4.0.0
 * @date    2020-02-29T15:35:13.178Z
 *
 * @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 wr(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return xr(e.length?e:[fr()])}function xr(t){var e=function(){for(var t=kr(),e=t(" "),i=t(" "),n=t(" "),o=0;o<arguments.length;o++)(e-=t(o<0||arguments.length<=o?void 0:arguments[o]))<0&&(e+=1),(i-=t(o<0||arguments.length<=o?void 0:arguments[o]))<0&&(i+=1),(n-=t(o<0||arguments.length<=o?void 0:arguments[o]))<0&&(n+=1);return[e,i,n]}(t),i=pr(e,3),n=i[0],o=i[1],r=i[2],g=1,s=function(){var t=2091639*n+2.3283064365386963e-10*g;return n=o,o=r,r=t-(g=0|t)};return s.uint32=function(){return 4294967296*s()},s.fract53=function(){return s()+11102230246251565e-32*(2097152*s()|0)},s.algorithm="Alea",s.seed=t,s.version="0.9",s}function kr(){var t=4022871197;return function(e){for(var i=e.toString(),n=0;n<i.length;n++){var o=.02519603282416938*(t+=i.charCodeAt(n));o-=t=o>>>0,t=(o*=t)>>>0,t+=4294967296*(o-=t)}return 2.3283064365386963e-10*(t>>>0)}}var _r=/^\/?Date\((-?\d+)/i,Dr=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,Or=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,Mr=/^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,Tr=/^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 Nr(t){return t instanceof Number||"number"==typeof t}function Er(t){if(t)for(;!0===t.hasChildNodes();){var e=t.firstChild;e&&(Er(e),t.removeChild(e))}}function Fr(t){return t instanceof String||"string"==typeof t}function Sr(t){return"object"===cr(t)&&null!==t}function jr(t,e,i,n){var o=!1;!0===n&&(o=null===e[i]&&void 0!==t[i]),o?delete t[i]:t[i]=e[i]}function Br(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(var n in t)if(void 0!==e[n])if(null===e[n]||"object"!==cr(e[n]))jr(t,e,n,i);else{var o=t[n],r=e[n];Sr(o)&&Sr(r)&&Br(o,r,i)}}var Rr=Cr;function zr(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(gr(i))throw new TypeError("Arrays are not supported by deepExtend");for(var o=0;o<t.length;o++){var r=t[o];if(Object.prototype.hasOwnProperty.call(i,r))if(i[r]&&i[r].constructor===Object)void 0===e[r]&&(e[r]={}),e[r].constructor===Object?Gr(e[r],i[r],!1,n):jr(e,i,r,n);else{if(gr(i[r]))throw new TypeError("Arrays are not supported by deepExtend");jr(e,i,r,n)}}return e}function Zr(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(gr(i))throw new TypeError("Arrays are not supported by deepExtend");for(var o in i)if(Object.prototype.hasOwnProperty.call(i,o)&&-1===rr(t).call(t,o))if(i[o]&&i[o].constructor===Object)void 0===e[o]&&(e[o]={}),e[o].constructor===Object?Gr(e[o],i[o]):jr(e,i,o,n);else if(gr(i[o])){e[o]=[];for(var r=0;r<i[o].length;r++)e[o].push(i[o][r])}else jr(e,i,o,n);return e}function Gr(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)||!0===i)if("object"===cr(e[o])&&null!==e[o]&&Ko(e[o])===Object.prototype)void 0===t[o]?t[o]=Gr({},e[o],i):"object"===cr(t[o])&&null!==t[o]&&Ko(t[o])===Object.prototype?Gr(t[o],e[o],i):jr(t,e,o,n);else if(gr(e[o])){var r;t[o]=Ho(r=e[o]).call(r)}else jr(t,e,o,n);return t}function Pr(t){var e=cr(t);return"object"===e?null===t?"null":t instanceof Boolean?"Boolean":t instanceof Number?"Number":t instanceof String?"String":gr(t)?"Array":t instanceof Date?"Date":"Object":"number"===e?"Number":"boolean"===e?"Boolean":"string"===e?"String":void 0===e?"undefined":e}function Lr(t,e){var i;return _o(i=[]).call(i,Vo(t),[e])}function Wr(t){return Ho(t).call(t)}function Qr(t){return t.getBoundingClientRect().left}function Ur(t){return t.getBoundingClientRect().top}function Yr(t,e){if(gr(t))for(var i=t.length,n=0;n<i;n++)e(t[n],n,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e(t[o],o,t)}var Vr=po;function Hr(t,e,i,n){var o;t.addEventListener?(void 0===n&&(n=!1),"mousewheel"===e&&rr(o=navigator.userAgent).call(o,"Firefox")>=0&&(e="DOMMouseScroll"),t.addEventListener(e,i,n)):t.attachEvent("on"+e,i)}function Xr(t,e,i,n){var o;t.removeEventListener?(void 0===n&&(n=!1),"mousewheel"===e&&rr(o=navigator.userAgent).call(o,"Firefox")>=0&&(e="DOMMouseScroll"),t.removeEventListener(e,i,n)):t.detachEvent("on"+e,i)}var Jr={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()),Fr(t)?t:Nr(t)?t+"px":e||null},asElement:function(t,e){return"function"==typeof t&&(t=t()),t||e||null}};function Kr(t){var e;switch(t.length){case 3:case 4:return(e=Or.exec(t))?{r:lo(e[1]+e[1],16),g:lo(e[2]+e[2],16),b:lo(e[3]+e[3],16)}:null;case 6:case 7:return(e=Dr.exec(t))?{r:lo(e[1],16),g:lo(e[2],16),b:lo(e[3],16)}:null;default:return null}}function qr(t,e){if(-1!==rr(t).call(t,"rgba"))return t;if(-1!==rr(t).call(t,"rgb")){var i=t.substr(rr(t).call(t,"(")+1).replace(")","").split(",");return"rgba("+i[0]+","+i[1]+","+i[2]+","+e+")"}var n=Kr(t);return null==n?t:"rgba("+n.r+","+n.g+","+n.b+","+e+")"}function $r(t,e,i){var n;return"#"+Ho(n=((1<<24)+(t<<16)+(e<<8)+i).toString(16)).call(n,1)}function tg(t,e){if(Fr(t)){var i=t;if(ag(i)){var n,o=so(n=i.substr(4).substr(0,i.length-5).split(",")).call(n,(function(t){return lo(t)}));i=$r(o[0],o[1],o[2])}if(!0===sg(i)){var r=gg(i),g={h:r.h,s:.8*r.s,v:Math.min(1,1.02*r.v)},s={h:r.h,s:Math.min(1,1.25*r.s),v:.8*r.v},a=rg(s.h,s.s,s.v),A=rg(g.h,g.s,g.v);return{background:i,border:a,highlight:{background:A,border:a},hover:{background:A,border:a}}}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:Fr(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:Fr(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:Fr(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:Fr(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 eg(t,e,i){t/=255,e/=255,i/=255;var n=Math.min(t,Math.min(e,i)),o=Math.max(t,Math.max(e,i));return n===o?{h:0,s:0,v:n}:{h:60*((t===n?3:i===n?1:5)-(t===n?e-i:i===n?t-e:i-t)/(o-n))/360,s:(o-n)/o,v:o}}var ig=function(t){var e,i={};return eo(e=t.split(";")).call(e,(function(t){if(""!=Ln(t).call(t)){var e,n,o=t.split(":"),r=Ln(e=o[0]).call(e),g=Ln(n=o[1]).call(n);i[r]=g}})),i},ng=function(t){var e;return so(e=En(t)).call(e,(function(e){return e+": "+t[e]})).join("; ")};function og(t,e,i){var n,o,r,g=Math.floor(6*t),s=6*t-g,a=i*(1-e),A=i*(1-s*e),C=i*(1-(1-s)*e);switch(g%6){case 0:n=i,o=C,r=a;break;case 1:n=A,o=i,r=a;break;case 2:n=a,o=i,r=C;break;case 3:n=a,o=A,r=i;break;case 4:n=C,o=a,r=i;break;case 5:n=i,o=a,r=A}return{r:Math.floor(255*n),g:Math.floor(255*o),b:Math.floor(255*r)}}function rg(t,e,i){var n=og(t,e,i);return $r(n.r,n.g,n.b)}function gg(t){var e=Kr(t);if(!e)throw new TypeError("'".concat(t,"' is not a valid color."));return eg(e.r,e.g,e.b)}function sg(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)}function ag(t){return Mr.test(t)}function Ag(t){return Tr.test(t)}function Cg(t){if(null===t||"object"!==cr(t))return null;if(t instanceof Element)return t;var e=Dn(t);for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&"object"==cr(t[i])&&(e[i]=Cg(t[i]));return e}function Ig(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=function(t){return null!=t},r=function(t){return null!==t&&"object"===cr(t)},g=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(!o(i))throw new Error("Parameter option must have a value");if(!r(n))throw new Error("Parameter globalOptions must be an object");var s=function(t,e,i){r(t[i])||(t[i]={});var n=e[i],o=t[i];for(var g in n)Object.prototype.hasOwnProperty.call(n,g)&&(o[g]=n[g])},a=e[i],A=r(n)&&!g(n),C=A?n[i]:void 0,I=C?C.enabled:void 0;if(void 0!==a){if("boolean"==typeof a)return r(t[i])||(t[i]={}),void(t[i].enabled=a);if(null===a&&!r(t[i])){if(!o(C))return;t[i]=Dn(C)}if(r(a)){var l=!0;void 0!==a.enabled?l=a.enabled:void 0!==I&&(l=C.enabled),s(t,e,i),t[i].enabled=l}}}var lg={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 cg(t,e){var i;gr(e)||(e=[e]);var n,o=vr(t);try{for(o.s();!(n=o.n()).done;){var r=n.value;if(r){i=r[e[0]];for(var g=1;g<e.length;g++)i&&(i=i[e[g]]);if(void 0!==i)break}}}catch(t){o.e(t)}finally{o.f()}return i}var hg=Object.freeze({__proto__:null,Alea:wr,HSVToHex:rg,HSVToRGB:og,RGBToHSV:eg,RGBToHex:$r,addClassName:function(t,e){var i=t.className.split(" "),n=e.split(" ");i=_o(i).call(i,wo(n).call(n,(function(t){return rr(i).call(i,t)<0}))),t.className=i.join(" ")},addCssText:function(t,e){var i=ig(t.style.cssText),n=ig(e),o=br(br({},i),n);t.style.cssText=ng(o)},addEventListener:Hr,binarySearchCustom:function(t,e,i,n){for(var o=0,r=0,g=t.length-1;r<=g&&o<1e4;){var s=Math.floor((r+g)/2),a=t[s],A=e(void 0===n?a[i]:a[i][n]);if(0==A)return s;-1==A?r=s+1:g=s-1,o++}return-1},binarySearchValue:function(t,e,i,n,o){var r,g,s,a,A=0,C=0,I=t.length-1;for(o=null!=o?o:function(t,e){return t==e?0:t<e?-1:1};C<=I&&A<1e4;){if(a=Math.floor(.5*(I+C)),r=t[Math.max(0,a-1)][i],g=t[a][i],s=t[Math.min(t.length-1,a+1)][i],0==o(g,e))return a;if(o(r,e)<0&&o(g,e)>0)return"before"==n?Math.max(0,a-1):a;if(o(g,e)<0&&o(s,e)>0)return"before"==n?a:Math.min(t.length-1,a+1);o(g,e)<0?C=a+1:I=a-1,A++}return-1},bridgeObject:Cg,copyAndExtendArray:Lr,copyArray:Wr,deepExtend:Gr,easingFunctions:lg,equalArray:function(t,e){if(t.length!==e.length)return!1;for(var i=0,n=t.length;i<n;i++)if(t[i]!=e[i])return!1;return!0},extend:Rr,fillIfDefined:Br,forEach:Yr,getAbsoluteLeft:Qr,getAbsoluteRight:function(t){return t.getBoundingClientRect().right},getAbsoluteTop:Ur,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 n=t.offsetWidth;return i==n&&(n=e.clientWidth),document.body.removeChild(e),i-n},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:Pr,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:gg,hexToRGB:Kr,insertSort:function(t,e){for(var i=0;i<t.length;i++){var n=t[i],o=void 0;for(o=i;o>0&&e(n,t[o-1])<0;o--)t[o]=t[o-1];t[o]=n}return t},isDate:function(t){if(t instanceof Date)return!0;if(Fr(t)){if(_r.exec(t))return!0;if(!isNaN(Date.parse(t)))return!0}return!1},isNumber:Nr,isObject:Sr,isString:Fr,isValidHex:sg,isValidRGB:ag,isValidRGBA:Ag,mergeOptions:Ig,option:Jr,overrideOpacity:qr,parseColor:tg,preventDefault:function(t){t||(t=window.event),t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},recursiveDOMDelete:Er,removeClassName:function(t,e){var i=t.className.split(" "),n=e.split(" ");i=wo(i).call(i,(function(t){return rr(n).call(n,t)<0})),t.className=i.join(" ")},removeCssText:function(t,e){var i=ig(t.style.cssText),n=ig(e);for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&delete i[o];t.style.cssText=ng(i)},removeEventListener:Xr,selectiveBridgeObject:function(t,e){if(null!==e&&"object"===cr(e)){for(var i=Dn(e),n=0;n<t.length;n++)Object.prototype.hasOwnProperty.call(e,t[n])&&"object"==cr(e[t[n]])&&(i[t[n]]=Cg(e[t[n]]));return i}return null},selectiveDeepExtend:zr,selectiveExtend:function(t,e){if(!gr(t))throw new Error("Array with property names expected as first argument");for(var i=arguments.length,n=new Array(i>2?i-2:0),o=2;o<i;o++)n[o-2]=arguments[o];for(var r=0,g=n;r<g.length;r++)for(var s=g[r],a=0;a<t.length;a++){var A=t[a];s&&Object.prototype.hasOwnProperty.call(s,A)&&(e[A]=s[A])}return e},selectiveNotDeepExtend:Zr,throttle:function(t){var e=!1;return function(){e||(e=!0,requestAnimationFrame((function(){e=!1,t()})))}},toArray:Vr,topMost:cg,updateProperty:function(t,e,i){return t[e]!==i&&(t[e]=i,!0)}}),ug=ai("splice"),dg=Vn("splice",{ACCESSORS:!0,0:0,1:2}),pg=Math.max,fg=Math.min;V({target:"Array",proto:!0,forced:!ug||!dg},{splice:function(t,e){var i,n,o,r,g,s,a=jt(this),A=$t(a.length),C=ie(t,A),I=arguments.length;if(0===I?i=n=0:1===I?(i=0,n=A-C):(i=I-2,n=fg(pg(Kt(e),0),A-C)),A+i-n>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(o=ei(a,n),r=0;r<n;r++)(g=C+r)in a&&$e(o,r,a[g]);if(o.length=n,i<n){for(r=C;r<A-n;r++)s=r+i,(g=r+n)in a?a[s]=a[g]:delete a[s];for(r=A;r>A-n+i;r--)delete a[r-1]}else if(i>n)for(r=A-n;r>C;r--)s=r+i-1,(g=r+n-1)in a?a[s]=a[g]:delete a[s];for(r=0;r<i;r++)a[r+C]=arguments[r+2];return a.length=A-n+i,o}});var vg=q("Array").splice,mg=Array.prototype,yg=function(t){var e=t.splice;return t===mg||t instanceof Array&&e===mg.splice?vg:e},bg=oe.includes,wg=Vn("indexOf",{ACCESSORS:!0,1:0});V({target:"Array",proto:!0,forced:!wg},{includes:function(t){return bg(this,t,arguments.length>1?arguments[1]:void 0)}});var xg=q("Array").includes,kg=Ut("match"),_g=function(t){if(function(t){var e;return y(t)&&(void 0!==(e=t[kg])?!!e:"RegExp"==d(t))}(t))throw TypeError("The method doesn't accept regular expressions");return t},Dg=Ut("match");V({target:"String",proto:!0,forced:!function(t){var e=/./;try{"/./"[t](e)}catch(i){try{return e[Dg]=!1,"/./"[t](e)}catch(t){}}return!1}("includes")},{includes:function(t){return!!~String(v(this)).indexOf(_g(t),arguments.length>1?arguments[1]:void 0)}});var Og=q("String").includes,Mg=Array.prototype,Tg=String.prototype,Ng=function(t){var e=t.includes;return t===Mg||t instanceof Array&&e===Mg.includes?xg:"string"==typeof t||t===Tg||t instanceof String&&e===Tg.includes?Og:e};function Eg(t){return Gg=t,function(){var t={};Pg=0,void(Lg=Gg.charAt(0)),ts(),"strict"===Wg&&(t.strict=!0,ts());"graph"!==Wg&&"digraph"!==Wg||(t.type=Wg,ts());Qg===Rg&&(t.id=Wg,ts());if("{"!=Wg)throw gs("Angle bracket { expected");if(ts(),es(t),"}"!=Wg)throw gs("Angle bracket } expected");if(ts(),""!==Wg)throw gs("End of file expected");return ts(),delete t.node,delete t.edge,delete t.graph,t}()}var Fg={fontsize:"font.size",fontcolor:"font.color",labelfontcolor:"font.color",fontname:"font.face",color:["color.border","color.background"],fillcolor:"color.background",tooltip:"title",labeltooltip:"title"},Sg=Dn(Fg);Sg.color="color.color",Sg.style="dashes";var jg=0,Bg=1,Rg=2,zg=3,Zg={"{":!0,"}":!0,"[":!0,"]":!0,";":!0,"=":!0,",":!0,"->":!0,"--":!0},Gg="",Pg=0,Lg="",Wg="",Qg=jg;function Ug(){Pg++,Lg=Gg.charAt(Pg)}function Yg(){return Gg.charAt(Pg+1)}var Vg=/[a-zA-Z_0-9.:#]/;function Hg(t){return Vg.test(t)}function Xg(t,e){if(t||(t={}),e)for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function Jg(t,e,i){for(var n=e.split("."),o=t;n.length;){var r=n.shift();n.length?(o[r]||(o[r]={}),o=o[r]):o[r]=i}}function Kg(t,e){for(var i,n,o=null,r=[t],g=t;g.parent;)r.push(g.parent),g=g.parent;if(g.nodes)for(i=0,n=g.nodes.length;i<n;i++)if(e.id===g.nodes[i].id){o=g.nodes[i];break}for(o||(o={id:e.id},t.node&&(o.attr=Xg(o.attr,t.node))),i=r.length-1;i>=0;i--){var s,a=r[i];a.nodes||(a.nodes=[]),-1===rr(s=a.nodes).call(s,o)&&a.nodes.push(o)}e.attr&&(o.attr=Xg(o.attr,e.attr))}function qg(t,e){if(t.edges||(t.edges=[]),t.edges.push(e),t.edge){var i=Xg({},t.edge);e.attr=Xg(i,e.attr)}}function $g(t,e,i,n,o){var r={from:e,to:i,type:n};return t.edge&&(r.attr=Xg({},t.edge)),r.attr=Xg(r.attr||{},o),null!=o&&o.hasOwnProperty("arrows")&&null!=o.arrows&&(r.arrows={to:{enabled:!0,type:o.arrows.type}},o.arrows=null),r}function ts(){for(Qg=jg,Wg="";" "===Lg||"\t"===Lg||"\n"===Lg||"\r"===Lg;)Ug();do{var t=!1;if("#"===Lg){for(var e=Pg-1;" "===Gg.charAt(e)||"\t"===Gg.charAt(e);)e--;if("\n"===Gg.charAt(e)||""===Gg.charAt(e)){for(;""!=Lg&&"\n"!=Lg;)Ug();t=!0}}if("/"===Lg&&"/"===Yg()){for(;""!=Lg&&"\n"!=Lg;)Ug();t=!0}if("/"===Lg&&"*"===Yg()){for(;""!=Lg;){if("*"===Lg&&"/"===Yg()){Ug(),Ug();break}Ug()}t=!0}for(;" "===Lg||"\t"===Lg||"\n"===Lg||"\r"===Lg;)Ug()}while(t);if(""!==Lg){var i=Lg+Yg();if(Zg[i])return Qg=Bg,Wg=i,Ug(),void Ug();if(Zg[Lg])return Qg=Bg,Wg=Lg,void Ug();if(Hg(Lg)||"-"===Lg){for(Wg+=Lg,Ug();Hg(Lg);)Wg+=Lg,Ug();return"false"===Wg?Wg=!1:"true"===Wg?Wg=!0:isNaN(Number(Wg))||(Wg=Number(Wg)),void(Qg=Rg)}if('"'===Lg){for(Ug();""!=Lg&&('"'!=Lg||'"'===Lg&&'"'===Yg());)'"'===Lg?(Wg+=Lg,Ug()):"\\"===Lg&&"n"===Yg()?(Wg+="\n",Ug()):Wg+=Lg,Ug();if('"'!=Lg)throw gs('End of string " expected');return Ug(),void(Qg=Rg)}for(Qg=zg;""!=Lg;)Wg+=Lg,Ug();throw new SyntaxError('Syntax error in part "'+ss(Wg,30)+'"')}Qg=Bg}function es(t){for(;""!==Wg&&"}"!=Wg;)is(t),";"===Wg&&ts()}function is(t){var e=ns(t);if(e)os(t,e);else if(!function(t){if("node"===Wg)return ts(),t.node=rs(),"node";if("edge"===Wg)return ts(),t.edge=rs(),"edge";if("graph"===Wg)return ts(),t.graph=rs(),"graph";return null}(t)){if(Qg!=Rg)throw gs("Identifier expected");var i=Wg;if(ts(),"="===Wg){if(ts(),Qg!=Rg)throw gs("Identifier expected");t[i]=Wg,ts()}else!function(t,e){var i={id:e},n=rs();n&&(i.attr=n);Kg(t,i),os(t,e)}(t,i)}}function ns(t){var e=null;if("subgraph"===Wg&&((e={}).type="subgraph",ts(),Qg===Rg&&(e.id=Wg,ts())),"{"===Wg){if(ts(),e||(e={}),e.parent=t,e.node=t.node,e.edge=t.edge,e.graph=t.graph,es(e),"}"!=Wg)throw gs("Angle bracket } expected");ts(),delete e.node,delete e.edge,delete e.graph,delete e.parent,t.subgraphs||(t.subgraphs=[]),t.subgraphs.push(e)}return e}function os(t,e){for(;"->"===Wg||"--"===Wg;){var i,n=Wg;ts();var o=ns(t);if(o)i=o;else{if(Qg!=Rg)throw gs("Identifier or subgraph expected");Kg(t,{id:i=Wg}),ts()}qg(t,$g(t,e,i,n,rs())),e=i}}function rs(){for(var t,e,i=null,n={dashed:!0,solid:!1,dotted:[1,5]},o={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,g=new Array;"["===Wg;){for(ts(),i={};""!==Wg&&"]"!=Wg;){if(Qg!=Rg)throw gs("Attribute name expected");var s=Wg;if(ts(),"="!=Wg)throw gs("Equal sign = expected");if(ts(),Qg!=Rg)throw gs("Attribute value expected");var a=Wg;"style"===s&&(a=n[a]),"arrowhead"===s&&(s="arrows",a={to:{enabled:!0,type:o[a]}}),"arrowtail"===s&&(s="arrows",a={from:{enabled:!0,type:o[a]}}),r.push({attr:i,name:s,value:a}),g.push(s),ts(),","==Wg&&ts()}if("]"!=Wg)throw gs("Bracket ] expected");ts()}if(Ng(g).call(g,"dir")){var A={arrows:{}};for(t=0;t<r.length;t++)if("arrows"===r[t].name)if(null!=r[t].value.to)A.arrows.to=t;else{if(null==r[t].value.from)throw gs("Invalid value of arrows");A.arrows.from=t}else"dir"===r[t].name&&(A.dir=t);var C,I,l=r[A.dir].value;if(!Ng(g).call(g,"arrows"))if("both"===l)r.push({attr:r[A.dir].attr,name:"arrows",value:{to:{enabled:!0}}}),A.arrows.to=r.length-1,r.push({attr:r[A.dir].attr,name:"arrows",value:{from:{enabled:!0}}}),A.arrows.from=r.length-1;else if("forward"===l)r.push({attr:r[A.dir].attr,name:"arrows",value:{to:{enabled:!0}}}),A.arrows.to=r.length-1;else if("back"===l)r.push({attr:r[A.dir].attr,name:"arrows",value:{from:{enabled:!0}}}),A.arrows.from=r.length-1;else{if("none"!==l)throw gs('Invalid dir type "'+l+'"');r.push({attr:r[A.dir].attr,name:"arrows",value:""}),A.arrows.to=r.length-1}if("both"===l)A.arrows.to&&A.arrows.from?(I=r[A.arrows.to].value.to.type,C=r[A.arrows.from].value.from.type,r[A.arrows.to]={attr:r[A.arrows.to].attr,name:r[A.arrows.to].name,value:{to:{enabled:!0,type:I},from:{enabled:!0,type:C}}},yg(r).call(r,A.arrows.from,1)):A.arrows.to?(I=r[A.arrows.to].value.to.type,C="arrow",r[A.arrows.to]={attr:r[A.arrows.to].attr,name:r[A.arrows.to].name,value:{to:{enabled:!0,type:I},from:{enabled:!0,type:C}}}):A.arrows.from&&(I="arrow",C=r[A.arrows.from].value.from.type,r[A.arrows.from]={attr:r[A.arrows.from].attr,name:r[A.arrows.from].name,value:{to:{enabled:!0,type:I},from:{enabled:!0,type:C}}});else if("back"===l)A.arrows.to&&A.arrows.from?(I="",C=r[A.arrows.from].value.from.type,r[A.arrows.from]={attr:r[A.arrows.from].attr,name:r[A.arrows.from].name,value:{to:{enabled:!0,type:I},from:{enabled:!0,type:C}}}):A.arrows.to?(I="",C="arrow",A.arrows.from=A.arrows.to,r[A.arrows.from]={attr:r[A.arrows.from].attr,name:r[A.arrows.from].name,value:{to:{enabled:!0,type:I},from:{enabled:!0,type:C}}}):A.arrows.from&&(I="",C=r[A.arrows.from].value.from.type,r[A.arrows.to]={attr:r[A.arrows.from].attr,name:r[A.arrows.from].name,value:{to:{enabled:!0,type:I},from:{enabled:!0,type:C}}}),r[A.arrows.from]={attr:r[A.arrows.from].attr,name:r[A.arrows.from].name,value:{from:{enabled:!0,type:r[A.arrows.from].value.from.type}}};else if("none"===l){var c;r[c=A.arrows.to?A.arrows.to:A.arrows.from]={attr:r[c].attr,name:r[c].name,value:""}}else{if("forward"!==l)throw gs('Invalid dir type "'+l+'"');A.arrows.to&&A.arrows.from||A.arrows.to?(I=r[A.arrows.to].value.to.type,C="",r[A.arrows.to]={attr:r[A.arrows.to].attr,name:r[A.arrows.to].name,value:{to:{enabled:!0,type:I},from:{enabled:!0,type:C}}}):A.arrows.from&&(I="arrow",C="",A.arrows.to=A.arrows.from,r[A.arrows.to]={attr:r[A.arrows.to].attr,name:r[A.arrows.to].name,value:{to:{enabled:!0,type:I},from:{enabled:!0,type:C}}}),r[A.arrows.to]={attr:r[A.arrows.to].attr,name:r[A.arrows.to].name,value:{to:{enabled:!0,type:r[A.arrows.to].value.to.type}}}}yg(r).call(r,A.dir,1)}if(Ng(g).call(g,"penwidth")){var h=[];for(e=r.length,t=0;t<e;t++)"width"!==r[t].name&&("penwidth"===r[t].name&&(r[t].name="width"),h.push(r[t]));r=h}for(e=r.length,t=0;t<e;t++)Jg(r[t].attr,r[t].name,r[t].value);return i}function gs(t){return new SyntaxError(t+', got "'+ss(Wg,30)+'" (char '+Pg+")")}function ss(t,e){return t.length<=e?t:t.substr(0,27)+"..."}function as(t,e,i){for(var n=e.split("."),o=n.pop(),r=t,g=0;g<n.length;g++){var s=n[g];s in r||(r[s]={}),r=r[s]}return r[o]=i,t}function As(t,e){var i={};for(var n in t)if(t.hasOwnProperty(n)){var o=e[n];gr(o)?eo(o).call(o,(function(e){as(i,e,t[n])})):as(i,"string"==typeof o?o:n,t[n])}return i}var Cs=Eg,Is=function(t){var e,i=Eg(t),n={nodes:[],edges:[],options:{}};if(i.nodes&&eo(e=i.nodes).call(e,(function(t){var e={id:t.id,label:String(t.label||t.id)};Xg(e,As(t.attr,Fg)),e.image&&(e.shape="image"),n.nodes.push(e)})),i.edges){var o,r=function(t){var e={from:t.from,to:t.to};return Xg(e,As(t.attr,Sg)),null==e.arrows&&"->"===t.type&&(e.arrows="to"),e};eo(o=i.edges).call(o,(function(t){var e,i,o,g,s,a,A;(e=t.from instanceof Object?t.from.nodes:{id:t.from},i=t.to instanceof Object?t.to.nodes:{id:t.to},t.from instanceof Object&&t.from.edges)&&eo(o=t.from.edges).call(o,(function(t){var e=r(t);n.edges.push(e)}));(s=i,a=function(e,i){var o=$g(n,e.id,i.id,t.type,t.attr),g=r(o);n.edges.push(g)},gr(g=e)?eo(g).call(g,(function(t){gr(s)?eo(s).call(s,(function(e){a(t,e)})):a(t,s)})):gr(s)?eo(s).call(s,(function(t){a(g,t)})):a(g,s),t.to instanceof Object&&t.to.edges)&&eo(A=t.to.edges).call(A,(function(t){var e=r(t);n.edges.push(e)}))}))}return i.attr&&(n.options=i.attr),n},ls={parseDOT:Cs,DOTToGraph:Is},cs=Object.freeze({__proto__:null,default:ls,__moduleExports:ls,parseDOT:Cs,DOTToGraph:Is});function hs(t,e){var i,n={edges:{inheritColor:!1},nodes:{fixed:!1,parseColor:!1}};null!=e&&(null!=e.fixed&&(n.nodes.fixed=e.fixed),null!=e.parseColor&&(n.nodes.parseColor=e.parseColor),null!=e.inheritColor&&(n.edges.inheritColor=e.inheritColor));var o=t.edges,r=so(o).call(o,(function(t){var e={from:t.source,id:t.id,to:t.target};return null!=t.attributes&&(e.attributes=t.attributes),null!=t.label&&(e.label=t.label),null!=t.attributes&&null!=t.attributes.title&&(e.title=t.attributes.title),"Directed"===t.type&&(e.arrows="to"),t.color&&!1===n.edges.inheritColor&&(e.color=t.color),e}));return{nodes:so(i=t.nodes).call(i,(function(t){var e={id:t.id,fixed:n.nodes.fixed&&null!=t.x&&null!=t.y};return null!=t.attributes&&(e.attributes=t.attributes),null!=t.label&&(e.label=t.label),null!=t.size&&(e.size=t.size),null!=t.attributes&&null!=t.attributes.title&&(e.title=t.attributes.title),null!=t.title&&(e.title=t.title),null!=t.x&&(e.x=t.x),null!=t.y&&(e.y=t.y),null!=t.color&&(!0===n.nodes.parseColor?e.color=t.color:e.color={background:t.color,border:t.color,highlight:{background:t.color,border:t.color},hover:{background:t.color,border:t.color}}),e})),edges:r}}var us=Object.freeze({__proto__:null,parseGephi:hs});function ds(t,e){void 0===e&&(e={});var i=e.insertAt;if(t&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===i&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}}var ps=".vis-overlay {\n  position: absolute;\n  top: 0px;\n  right: 0px;\n  bottom: 0px;\n  left: 0px;\n\n  /* Must be displayed above for example selected Timeline items */\n  z-index: 10;\n}\n\n.vis-active {\n  box-shadow: 0 0 10px #86d5f8;\n}\n\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkFjdGl2YXRvci5jc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSxrQkFBa0I7RUFDbEIsUUFBUTtFQUNSLFVBQVU7RUFDVixXQUFXO0VBQ1gsU0FBUzs7RUFFVCxnRUFBZ0U7RUFDaEUsV0FBVztBQUNiOztBQUVBO0VBQ0UsNEJBQTRCO0FBQzlCIiwiZmlsZSI6IkFjdGl2YXRvci5jc3MiLCJzb3VyY2VzQ29udGVudCI6WyIudmlzLW92ZXJsYXkge1xuICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gIHRvcDogMHB4O1xuICByaWdodDogMHB4O1xuICBib3R0b206IDBweDtcbiAgbGVmdDogMHB4O1xuXG4gIC8qIE11c3QgYmUgZGlzcGxheWVkIGFib3ZlIGZvciBleGFtcGxlIHNlbGVjdGVkIFRpbWVsaW5lIGl0ZW1zICovXG4gIHotaW5kZXg6IDEwO1xufVxuXG4udmlzLWFjdGl2ZSB7XG4gIGJveC1zaGFkb3c6IDAgMCAxMHB4ICM4NmQ1Zjg7XG59XG4iXX0= */";ds(ps);var fs=Object.freeze({__proto__:null,default:ps,stylesheet:".vis-overlay {\n  position: absolute;\n  top: 0px;\n  right: 0px;\n  bottom: 0px;\n  left: 0px;\n\n  /* Must be displayed above for example selected Timeline items */\n  z-index: 10;\n}\n\n.vis-active {\n  box-shadow: 0 0 10px #86d5f8;\n}\n\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkFjdGl2YXRvci5jc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSxrQkFBa0I7RUFDbEIsUUFBUTtFQUNSLFVBQVU7RUFDVixXQUFXO0VBQ1gsU0FBUzs7RUFFVCxnRUFBZ0U7RUFDaEUsV0FBVztBQUNiOztBQUVBO0VBQ0UsNEJBQTRCO0FBQzlCIiwiZmlsZSI6IkFjdGl2YXRvci5jc3MiLCJzb3VyY2VzQ29udGVudCI6WyIudmlzLW92ZXJsYXkge1xuICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gIHRvcDogMHB4O1xuICByaWdodDogMHB4O1xuICBib3R0b206IDBweDtcbiAgbGVmdDogMHB4O1xuXG4gIC8qIE11c3QgYmUgZGlzcGxheWVkIGFib3ZlIGZvciBleGFtcGxlIHNlbGVjdGVkIFRpbWVsaW5lIGl0ZW1zICovXG4gIHotaW5kZXg6IDEwO1xufVxuXG4udmlzLWFjdGl2ZSB7XG4gIGJveC1zaGFkb3c6IDAgMCAxMHB4ICM4NmQ1Zjg7XG59XG4iXX0= */"}),vs=r((function(t,e){t.exports=function(t){var e,i=t&&t.preventDefault||!1,n=t&&t.container||window,o={},r={keydown:{},keyup:{}},g={};for(e=97;e<=122;e++)g[String.fromCharCode(e)]={code:e-97+65,shift:!1};for(e=65;e<=90;e++)g[String.fromCharCode(e)]={code:e,shift:!0};for(e=0;e<=9;e++)g[""+e]={code:48+e,shift:!1};for(e=1;e<=12;e++)g["F"+e]={code:111+e,shift:!1};for(e=0;e<=9;e++)g["num"+e]={code:96+e,shift:!1};g["num*"]={code:106,shift:!1},g["num+"]={code:107,shift:!1},g["num-"]={code:109,shift:!1},g["num/"]={code:111,shift:!1},g["num."]={code:110,shift:!1},g.left={code:37,shift:!1},g.up={code:38,shift:!1},g.right={code:39,shift:!1},g.down={code:40,shift:!1},g.space={code:32,shift:!1},g.enter={code:13,shift:!1},g.shift={code:16,shift:void 0},g.esc={code:27,shift:!1},g.backspace={code:8,shift:!1},g.tab={code:9,shift:!1},g.ctrl={code:17,shift:!1},g.alt={code:18,shift:!1},g.delete={code:46,shift:!1},g.pageup={code:33,shift:!1},g.pagedown={code:34,shift:!1},g["="]={code:187,shift:!1},g["-"]={code:189,shift:!1},g["]"]={code:221,shift:!1},g["["]={code:219,shift:!1};var s=function(t){A(t,"keydown")},a=function(t){A(t,"keyup")},A=function(t,e){if(void 0!==r[e][t.keyCode]){for(var n=r[e][t.keyCode],o=0;o<n.length;o++)(void 0===n[o].shift||1==n[o].shift&&1==t.shiftKey||0==n[o].shift&&0==t.shiftKey)&&n[o].fn(t);1==i&&t.preventDefault()}};return o.bind=function(t,e,i){if(void 0===i&&(i="keydown"),void 0===g[t])throw new Error("unsupported key: "+t);void 0===r[i][g[t].code]&&(r[i][g[t].code]=[]),r[i][g[t].code].push({fn:e,shift:g[t].shift})},o.bindAll=function(t,e){for(var i in void 0===e&&(e="keydown"),g)g.hasOwnProperty(i)&&o.bind(i,t,e)},o.getKey=function(t){for(var e in g)if(g.hasOwnProperty(e)){if(1==t.shiftKey&&1==g[e].shift&&t.keyCode==g[e].code)return e;if(0==t.shiftKey&&0==g[e].shift&&t.keyCode==g[e].code)return e;if(t.keyCode==g[e].code&&"shift"==e)return e}return"unknown key, currently not supported"},o.unbind=function(t,e,i){if(void 0===i&&(i="keydown"),void 0===g[t])throw new Error("unsupported key: "+t);if(void 0!==e){var n=[],o=r[i][g[t].code];if(void 0!==o)for(var s=0;s<o.length;s++)o[s].fn==e&&o[s].shift==g[t].shift||n.push(r[i][g[t].code][s]);r[i][g[t].code]=n}else r[i][g[t].code]=[]},o.reset=function(){r={keydown:{},keyup:{}}},o.destroy=function(){r={keydown:{},keyup:{}},n.removeEventListener("keydown",s,!0),n.removeEventListener("keyup",a,!0)},n.addEventListener("keydown",s,!0),n.addEventListener("keyup",a,!0),o}}));
/*! Hammer.JS - v2.0.17-rc - 2019-12-16
 * http://naver.github.io/egjs
 *
 * Forked By Naver egjs
 * Copyright (c) hammerjs
 * Licensed under the MIT license */
function ms(){return(ms=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}).apply(this,arguments)}function ys(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function bs(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var ws,xs="function"!=typeof Object.assign?function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i<arguments.length;i++){var n=arguments[i];if(null!=n)for(var o in n)n.hasOwnProperty(o)&&(e[o]=n[o])}return e}:Object.assign,ks=["","webkit","Moz","MS","ms","o"],_s="undefined"==typeof document?{style:{}}:document.createElement("div"),Ds=Math.round,Os=Math.abs,Ms=Date.now;function Ts(t,e){for(var i,n,o=e[0].toUpperCase()+e.slice(1),r=0;r<ks.length;){if((n=(i=ks[r])?i+o:e)in t)return n;r++}}ws="undefined"==typeof window?{}:window;var Ns=Ts(_s.style,"touchAction"),Es=void 0!==Ns;var Fs=function(){if(!Es)return!1;var t={},e=ws.CSS&&ws.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(i){return t[i]=!e||ws.CSS.supports("touch-action",i)})),t}(),Ss="ontouchstart"in ws,js=void 0!==Ts(ws,"PointerEvent"),Bs=Ss&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),Rs=["x","y"],zs=["clientX","clientY"];function Zs(t,e,i){var n;if(t)if(t.forEach)t.forEach(e,i);else if(void 0!==t.length)for(n=0;n<t.length;)e.call(i,t[n],n,t),n++;else for(n in t)t.hasOwnProperty(n)&&e.call(i,t[n],n,t)}function Gs(t,e){return"function"==typeof t?t.apply(e&&e[0]||void 0,e):t}function Ps(t,e){return t.indexOf(e)>-1}var Ls=function(){function t(t,e){this.manager=t,this.set(e)}var e=t.prototype;return e.set=function(t){"compute"===t&&(t=this.compute()),Es&&this.manager.element.style&&Fs[t]&&(this.manager.element.style[Ns]=t),this.actions=t.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var t=[];return Zs(this.manager.recognizers,(function(e){Gs(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(Ps(t,"none"))return"none";var e=Ps(t,"pan-x"),i=Ps(t,"pan-y");return e&&i?"none":e||i?e?"pan-x":"pan-y":Ps(t,"manipulation")?"manipulation":"auto"}(t.join(" "))},e.preventDefaults=function(t){var e=t.srcEvent,i=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var n=this.actions,o=Ps(n,"none")&&!Fs.none,r=Ps(n,"pan-y")&&!Fs["pan-y"],g=Ps(n,"pan-x")&&!Fs["pan-x"];if(o){var s=1===t.pointers.length,a=t.distance<2,A=t.deltaTime<250;if(s&&a&&A)return}if(!g||!r)return o||r&&6&i||g&&24&i?this.preventSrc(e):void 0}},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t}();function Ws(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function Qs(t){var e=t.length;if(1===e)return{x:Ds(t[0].clientX),y:Ds(t[0].clientY)};for(var i=0,n=0,o=0;o<e;)i+=t[o].clientX,n+=t[o].clientY,o++;return{x:Ds(i/e),y:Ds(n/e)}}function Us(t){for(var e=[],i=0;i<t.pointers.length;)e[i]={clientX:Ds(t.pointers[i].clientX),clientY:Ds(t.pointers[i].clientY)},i++;return{timeStamp:Ms(),pointers:e,center:Qs(e),deltaX:t.deltaX,deltaY:t.deltaY}}function Ys(t,e,i){i||(i=Rs);var n=e[i[0]]-t[i[0]],o=e[i[1]]-t[i[1]];return Math.sqrt(n*n+o*o)}function Vs(t,e,i){i||(i=Rs);var n=e[i[0]]-t[i[0]],o=e[i[1]]-t[i[1]];return 180*Math.atan2(o,n)/Math.PI}function Hs(t,e){return t===e?1:Os(t)>=Os(e)?t<0?2:4:e<0?8:16}function Xs(t,e,i){return{x:e/t||0,y:i/t||0}}function Js(t,e){var i=t.session,n=e.pointers,o=n.length;i.firstInput||(i.firstInput=Us(e)),o>1&&!i.firstMultiple?i.firstMultiple=Us(e):1===o&&(i.firstMultiple=!1);var r=i.firstInput,g=i.firstMultiple,s=g?g.center:r.center,a=e.center=Qs(n);e.timeStamp=Ms(),e.deltaTime=e.timeStamp-r.timeStamp,e.angle=Vs(s,a),e.distance=Ys(s,a),function(t,e){var i=e.center,n=t.offsetDelta||{},o=t.prevDelta||{},r=t.prevInput||{};1!==e.eventType&&4!==r.eventType||(o=t.prevDelta={x:r.deltaX||0,y:r.deltaY||0},n=t.offsetDelta={x:i.x,y:i.y}),e.deltaX=o.x+(i.x-n.x),e.deltaY=o.y+(i.y-n.y)}(i,e),e.offsetDirection=Hs(e.deltaX,e.deltaY);var A,C,I=Xs(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=I.x,e.overallVelocityY=I.y,e.overallVelocity=Os(I.x)>Os(I.y)?I.x:I.y,e.scale=g?(A=g.pointers,Ys((C=n)[0],C[1],zs)/Ys(A[0],A[1],zs)):1,e.rotation=g?function(t,e){return Vs(e[1],e[0],zs)+Vs(t[1],t[0],zs)}(g.pointers,n):0,e.maxPointers=i.prevInput?e.pointers.length>i.prevInput.maxPointers?e.pointers.length:i.prevInput.maxPointers:e.pointers.length,function(t,e){var i,n,o,r,g=t.lastInterval||e,s=e.timeStamp-g.timeStamp;if(8!==e.eventType&&(s>25||void 0===g.velocity)){var a=e.deltaX-g.deltaX,A=e.deltaY-g.deltaY,C=Xs(s,a,A);n=C.x,o=C.y,i=Os(C.x)>Os(C.y)?C.x:C.y,r=Hs(a,A),t.lastInterval=e}else i=g.velocity,n=g.velocityX,o=g.velocityY,r=g.direction;e.velocity=i,e.velocityX=n,e.velocityY=o,e.direction=r}(i,e);var l,c=t.element,h=e.srcEvent;Ws(l=h.composedPath?h.composedPath()[0]:h.path?h.path[0]:h.target,c)&&(c=l),e.target=c}function Ks(t,e,i){var n=i.pointers.length,o=i.changedPointers.length,r=1&e&&n-o==0,g=12&e&&n-o==0;i.isFirst=!!r,i.isFinal=!!g,r&&(t.session={}),i.eventType=e,Js(t,i),t.emit("hammer.input",i),t.recognize(i),t.session.prevInput=i}function qs(t){return t.trim().split(/\s+/g)}function $s(t,e,i){Zs(qs(e),(function(e){t.addEventListener(e,i,!1)}))}function ta(t,e,i){Zs(qs(e),(function(e){t.removeEventListener(e,i,!1)}))}function ea(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var ia=function(){function t(t,e){var i=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){Gs(t.options.enable,[t])&&i.handler(e)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&$s(this.element,this.evEl,this.domHandler),this.evTarget&&$s(this.target,this.evTarget,this.domHandler),this.evWin&&$s(ea(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&ta(this.element,this.evEl,this.domHandler),this.evTarget&&ta(this.target,this.evTarget,this.domHandler),this.evWin&&ta(ea(this.element),this.evWin,this.domHandler)},t}();function na(t,e,i){if(t.indexOf&&!i)return t.indexOf(e);for(var n=0;n<t.length;){if(i&&t[n][i]==e||!i&&t[n]===e)return n;n++}return-1}var oa={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},ra={2:"touch",3:"pen",4:"mouse",5:"kinect"},ga="pointerdown",sa="pointermove pointerup pointercancel";ws.MSPointerEvent&&!ws.PointerEvent&&(ga="MSPointerDown",sa="MSPointerMove MSPointerUp MSPointerCancel");var aa=function(t){function e(){var i,n=e.prototype;return n.evEl=ga,n.evWin=sa,(i=t.apply(this,arguments)||this).store=i.manager.session.pointerEvents=[],i}return ys(e,t),e.prototype.handler=function(t){var e=this.store,i=!1,n=t.type.toLowerCase().replace("ms",""),o=oa[n],r=ra[t.pointerType]||t.pointerType,g="touch"===r,s=na(e,t.pointerId,"pointerId");1&o&&(0===t.button||g)?s<0&&(e.push(t),s=e.length-1):12&o&&(i=!0),s<0||(e[s]=t,this.callback(this.manager,o,{pointers:e,changedPointers:[t],pointerType:r,srcEvent:t}),i&&e.splice(s,1))},e}(ia);function Aa(t){return Array.prototype.slice.call(t,0)}function Ca(t,e,i){for(var n=[],o=[],r=0;r<t.length;){var g=e?t[r][e]:t[r];na(o,g)<0&&n.push(t[r]),o[r]=g,r++}return i&&(n=e?n.sort((function(t,i){return t[e]>i[e]})):n.sort()),n}var Ia={touchstart:1,touchmove:2,touchend:4,touchcancel:8},la=function(t){function e(){var i;return e.prototype.evTarget="touchstart touchmove touchend touchcancel",(i=t.apply(this,arguments)||this).targetIds={},i}return ys(e,t),e.prototype.handler=function(t){var e=Ia[t.type],i=ca.call(this,t,e);i&&this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:"touch",srcEvent:t})},e}(ia);function ca(t,e){var i,n,o=Aa(t.touches),r=this.targetIds;if(3&e&&1===o.length)return r[o[0].identifier]=!0,[o,o];var g=Aa(t.changedTouches),s=[],a=this.target;if(n=o.filter((function(t){return Ws(t.target,a)})),1===e)for(i=0;i<n.length;)r[n[i].identifier]=!0,i++;for(i=0;i<g.length;)r[g[i].identifier]&&s.push(g[i]),12&e&&delete r[g[i].identifier],i++;return s.length?[Ca(n.concat(s),"identifier",!0),s]:void 0}var ha={mousedown:1,mousemove:2,mouseup:4},ua=function(t){function e(){var i,n=e.prototype;return n.evEl="mousedown",n.evWin="mousemove mouseup",(i=t.apply(this,arguments)||this).pressed=!1,i}return ys(e,t),e.prototype.handler=function(t){var e=ha[t.type];1&e&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=4),this.pressed&&(4&e&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:"mouse",srcEvent:t}))},e}(ia);function da(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var i={x:e.clientX,y:e.clientY},n=this.lastTouches;this.lastTouches.push(i);setTimeout((function(){var t=n.indexOf(i);t>-1&&n.splice(t,1)}),2500)}}function pa(t,e){1&t?(this.primaryTouch=e.changedPointers[0].identifier,da.call(this,e)):12&t&&da.call(this,e)}function fa(t){for(var e=t.srcEvent.clientX,i=t.srcEvent.clientY,n=0;n<this.lastTouches.length;n++){var o=this.lastTouches[n],r=Math.abs(e-o.x),g=Math.abs(i-o.y);if(r<=25&&g<=25)return!0}return!1}var va=function(){return function(t){function e(e,i){var n;return(n=t.call(this,e,i)||this).handler=function(t,e,i){var o="touch"===i.pointerType,r="mouse"===i.pointerType;if(!(r&&i.sourceCapabilities&&i.sourceCapabilities.firesTouchEvents)){if(o)pa.call(bs(bs(n)),e,i);else if(r&&fa.call(bs(bs(n)),i))return;n.callback(t,e,i)}},n.touch=new la(n.manager,n.handler),n.mouse=new ua(n.manager,n.handler),n.primaryTouch=null,n.lastTouches=[],n}return ys(e,t),e.prototype.destroy=function(){this.touch.destroy(),this.mouse.destroy()},e}(ia)}();function ma(t,e,i){return!!Array.isArray(t)&&(Zs(t,i[e],i),!0)}var ya=1;function ba(t,e){var i=e.manager;return i?i.get(t):t}function wa(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}var xa=function(){function t(t){void 0===t&&(t={}),this.options=ms({enable:!0},t),this.id=ya++,this.manager=null,this.state=1,this.simultaneous={},this.requireFail=[]}var e=t.prototype;return e.set=function(t){return xs(this.options,t),this.manager&&this.manager.touchAction.update(),this},e.recognizeWith=function(t){if(ma(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=ba(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},e.dropRecognizeWith=function(t){return ma(t,"dropRecognizeWith",this)||(t=ba(t,this),delete this.simultaneous[t.id]),this},e.requireFailure=function(t){if(ma(t,"requireFailure",this))return this;var e=this.requireFail;return-1===na(e,t=ba(t,this))&&(e.push(t),t.requireFailure(this)),this},e.dropRequireFailure=function(t){if(ma(t,"dropRequireFailure",this))return this;t=ba(t,this);var e=na(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},e.hasRequireFailures=function(){return this.requireFail.length>0},e.canRecognizeWith=function(t){return!!this.simultaneous[t.id]},e.emit=function(t){var e=this,i=this.state;function n(i){e.manager.emit(i,t)}i<8&&n(e.options.event+wa(i)),n(e.options.event),t.additionalEvent&&n(t.additionalEvent),i>=8&&n(e.options.event+wa(i))},e.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=32},e.canEmit=function(){for(var t=0;t<this.requireFail.length;){if(!(33&this.requireFail[t].state))return!1;t++}return!0},e.recognize=function(t){var e=xs({},t);if(!Gs(this.options.enable,[this,e]))return this.reset(),void(this.state=32);56&this.state&&(this.state=1),this.state=this.process(e),30&this.state&&this.tryEmit(e)},e.process=function(t){},e.getTouchAction=function(){},e.reset=function(){},t}(),ka=function(t){function e(e){var i;return void 0===e&&(e={}),(i=t.call(this,ms({event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},e))||this).pTime=!1,i.pCenter=!1,i._timer=null,i._input=null,i.count=0,i}ys(e,t);var i=e.prototype;return i.getTouchAction=function(){return["manipulation"]},i.process=function(t){var e=this,i=this.options,n=t.pointers.length===i.pointers,o=t.distance<i.threshold,r=t.deltaTime<i.time;if(this.reset(),1&t.eventType&&0===this.count)return this.failTimeout();if(o&&r&&n){if(4!==t.eventType)return this.failTimeout();var g=!this.pTime||t.timeStamp-this.pTime<i.interval,s=!this.pCenter||Ys(this.pCenter,t.center)<i.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,s&&g?this.count+=1:this.count=1,this._input=t,0===this.count%i.taps)return this.hasRequireFailures()?(this._timer=setTimeout((function(){e.state=8,e.tryEmit()}),i.interval),2):8}return 32},i.failTimeout=function(){var t=this;return this._timer=setTimeout((function(){t.state=32}),this.options.interval),32},i.reset=function(){clearTimeout(this._timer)},i.emit=function(){8===this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},e}(xa),_a=function(t){function e(e){return void 0===e&&(e={}),t.call(this,ms({pointers:1},e))||this}ys(e,t);var i=e.prototype;return i.attrTest=function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},i.process=function(t){var e=this.state,i=t.eventType,n=6&e,o=this.attrTest(t);return n&&(8&i||!o)?16|e:n||o?4&i?8|e:2&e?4|e:2:32},e}(xa);function Da(t){return 16===t?"down":8===t?"up":2===t?"left":4===t?"right":""}var Oa=function(t){function e(e){var i;return void 0===e&&(e={}),(i=t.call(this,ms({event:"pan",threshold:10,pointers:1,direction:30},e))||this).pX=null,i.pY=null,i}ys(e,t);var i=e.prototype;return i.getTouchAction=function(){var t=this.options.direction,e=[];return 6&t&&e.push("pan-y"),24&t&&e.push("pan-x"),e},i.directionTest=function(t){var e=this.options,i=!0,n=t.distance,o=t.direction,r=t.deltaX,g=t.deltaY;return o&e.direction||(6&e.direction?(o=0===r?1:r<0?2:4,i=r!==this.pX,n=Math.abs(t.deltaX)):(o=0===g?1:g<0?8:16,i=g!==this.pY,n=Math.abs(t.deltaY))),t.direction=o,i&&n>e.threshold&&o&e.direction},i.attrTest=function(t){return _a.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},i.emit=function(e){this.pX=e.deltaX,this.pY=e.deltaY;var i=Da(e.direction);i&&(e.additionalEvent=this.options.event+i),t.prototype.emit.call(this,e)},e}(_a),Ma=function(t){function e(e){return void 0===e&&(e={}),t.call(this,ms({event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},e))||this}ys(e,t);var i=e.prototype;return i.getTouchAction=function(){return Oa.prototype.getTouchAction.call(this)},i.attrTest=function(e){var i,n=this.options.direction;return 30&n?i=e.overallVelocity:6&n?i=e.overallVelocityX:24&n&&(i=e.overallVelocityY),t.prototype.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers===this.options.pointers&&Os(i)>this.options.velocity&&4&e.eventType},i.emit=function(t){var e=Da(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)},e}(_a),Ta=function(t){function e(e){return void 0===e&&(e={}),t.call(this,ms({event:"pinch",threshold:0,pointers:2},e))||this}ys(e,t);var i=e.prototype;return i.getTouchAction=function(){return["none"]},i.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},i.emit=function(e){if(1!==e.scale){var i=e.scale<1?"in":"out";e.additionalEvent=this.options.event+i}t.prototype.emit.call(this,e)},e}(_a),Na=function(t){function e(e){return void 0===e&&(e={}),t.call(this,ms({event:"rotate",threshold:0,pointers:2},e))||this}ys(e,t);var i=e.prototype;return i.getTouchAction=function(){return["none"]},i.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)},e}(_a),Ea=function(t){function e(e){var i;return void 0===e&&(e={}),(i=t.call(this,ms({event:"press",pointers:1,time:251,threshold:9},e))||this)._timer=null,i._input=null,i}ys(e,t);var i=e.prototype;return i.getTouchAction=function(){return["auto"]},i.process=function(t){var e=this,i=this.options,n=t.pointers.length===i.pointers,o=t.distance<i.threshold,r=t.deltaTime>i.time;if(this._input=t,!o||!n||12&t.eventType&&!r)this.reset();else if(1&t.eventType)this.reset(),this._timer=setTimeout((function(){e.state=8,e.tryEmit()}),i.time);else if(4&t.eventType)return 8;return 32},i.reset=function(){clearTimeout(this._timer)},i.emit=function(t){8===this.state&&(t&&4&t.eventType?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=Ms(),this.manager.emit(this.options.event,this._input)))},e}(xa),Fa={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Sa=[[Na,{enable:!1}],[Ta,{enable:!1},["rotate"]],[Ma,{direction:6}],[Oa,{direction:6},["swipe"]],[ka],[ka,{event:"doubletap",taps:2},["tap"]],[Ea]];function ja(t,e){var i,n=t.element;n.style&&(Zs(t.options.cssProps,(function(o,r){i=Ts(n.style,r),e?(t.oldCssProps[i]=n.style[i],n.style[i]=o):n.style[i]=t.oldCssProps[i]||""})),e||(t.oldCssProps={}))}var Ba=function(){function t(t,e){var i,n=this;this.options=xs({},Fa,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((i=this).options.inputClass||(js?aa:Bs?la:Ss?va:ua))(i,Ks),this.touchAction=new Ls(this,this.options.touchAction),ja(this,!0),Zs(this.options.recognizers,(function(t){var e=n.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])}),this)}var e=t.prototype;return e.set=function(t){return xs(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},e.stop=function(t){this.session.stopped=t?2:1},e.recognize=function(t){var e=this.session;if(!e.stopped){var i;this.touchAction.preventDefaults(t);var n=this.recognizers,o=e.curRecognizer;(!o||o&&8&o.state)&&(e.curRecognizer=null,o=null);for(var r=0;r<n.length;)i=n[r],2===e.stopped||o&&i!==o&&!i.canRecognizeWith(o)?i.reset():i.recognize(t),!o&&14&i.state&&(e.curRecognizer=i,o=i),r++}},e.get=function(t){if(t instanceof xa)return t;for(var e=this.recognizers,i=0;i<e.length;i++)if(e[i].options.event===t)return e[i];return null},e.add=function(t){if(ma(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},e.remove=function(t){if(ma(t,"remove",this))return this;var e=this.get(t);if(t){var i=this.recognizers,n=na(i,e);-1!==n&&(i.splice(n,1),this.touchAction.update())}return this},e.on=function(t,e){if(void 0===t||void 0===e)return this;var i=this.handlers;return Zs(qs(t),(function(t){i[t]=i[t]||[],i[t].push(e)})),this},e.off=function(t,e){if(void 0===t)return this;var i=this.handlers;return Zs(qs(t),(function(t){e?i[t]&&i[t].splice(na(i[t],e),1):delete i[t]})),this},e.emit=function(t,e){this.options.domEvents&&function(t,e){var i=document.createEvent("Event");i.initEvent(t,!0,!0),i.gesture=e,e.target.dispatchEvent(i)}(t,e);var i=this.handlers[t]&&this.handlers[t].slice();if(i&&i.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var n=0;n<i.length;)i[n](e),n++}},e.destroy=function(){this.element&&ja(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},t}(),Ra={touchstart:1,touchmove:2,touchend:4,touchcancel:8},za=function(t){function e(){var i,n=e.prototype;return n.evTarget="touchstart",n.evWin="touchstart touchmove touchend touchcancel",(i=t.apply(this,arguments)||this).started=!1,i}return ys(e,t),e.prototype.handler=function(t){var e=Ra[t.type];if(1===e&&(this.started=!0),this.started){var i=Za.call(this,t,e);12&e&&i[0].length-i[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:"touch",srcEvent:t})}},e}(ia);function Za(t,e){var i=Aa(t.touches),n=Aa(t.changedTouches);return 12&e&&(i=Ca(i.concat(n),"identifier",!0)),[i,n]}function Ga(t,e,i){var n="DEPRECATED METHOD: "+e+"\n"+i+" AT \n";return function(){var e=new Error("get-stack-trace"),i=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=window.console&&(window.console.warn||window.console.log);return o&&o.call(window.console,n,i),t.apply(this,arguments)}}var Pa=Ga((function(t,e,i){for(var n=Object.keys(e),o=0;o<n.length;)(!i||i&&void 0===t[n[o]])&&(t[n[o]]=e[n[o]]),o++;return t}),"extend","Use `assign`."),La=Ga((function(t,e){return Pa(t,e,!0)}),"merge","Use `assign`.");function Wa(t,e,i){var n,o=e.prototype;(n=t.prototype=Object.create(o)).constructor=t,n._super=o,i&&xs(n,i)}function Qa(t,e){return function(){return t.apply(e,arguments)}}var Ua,Ya=function(){var t=function(t,e){return void 0===e&&(e={}),new Ba(t,ms({recognizers:Sa.concat()},e))};return t.VERSION="2.0.17-rc",t.DIRECTION_ALL=30,t.DIRECTION_DOWN=16,t.DIRECTION_LEFT=2,t.DIRECTION_RIGHT=4,t.DIRECTION_UP=8,t.DIRECTION_HORIZONTAL=6,t.DIRECTION_VERTICAL=24,t.DIRECTION_NONE=1,t.DIRECTION_DOWN=16,t.INPUT_START=1,t.INPUT_MOVE=2,t.INPUT_END=4,t.INPUT_CANCEL=8,t.STATE_POSSIBLE=1,t.STATE_BEGAN=2,t.STATE_CHANGED=4,t.STATE_ENDED=8,t.STATE_RECOGNIZED=8,t.STATE_CANCELLED=16,t.STATE_FAILED=32,t.Manager=Ba,t.Input=ia,t.TouchAction=Ls,t.TouchInput=la,t.MouseInput=ua,t.PointerEventInput=aa,t.TouchMouseInput=va,t.SingleTouchInput=za,t.Recognizer=xa,t.AttrRecognizer=_a,t.Tap=ka,t.Pan=Oa,t.Swipe=Ma,t.Pinch=Ta,t.Rotate=Na,t.Press=Ea,t.on=$s,t.off=ta,t.each=Zs,t.merge=La,t.extend=Pa,t.bindFn=Qa,t.assign=xs,t.inherit=Wa,t.bindFn=Qa,t.prefixed=Ts,t.toArray=Aa,t.inArray=na,t.uniqueArray=Ca,t.splitStr=qs,t.boolOrFn=Gs,t.hasParent=Ws,t.addEventListeners=$s,t.removeEventListeners=ta,t.defaults=xs({},Fa,{preset:Sa}),t}(),Va=r((function(t){if("undefined"!=typeof window){var e=window.Hammer||Ya;t.exports=e}else t.exports=function(){return{on:t=function(){},off:t,destroy:t,emit:t,get:function(e){return{set:t}}};var t}})),Ha=r((function(t,e){
/**
   * vis-util
   * https://github.com/visjs/vis-util
   *
   * utilitie collection for visjs
   *
   * @version 4.0.0
   * @date    2020-02-29T15:35:13.178Z
   *
   * @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){var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n?n:"undefined"!=typeof self?self:{};function i(t,e){return t(e={exports:{}},e.exports),e.exports}function o(t){return t&&t.default||t}var r=function(t){return t&&t.Math==Math&&t},g=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||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]})),A={}.propertyIsEnumerable,C=Object.getOwnPropertyDescriptor,I={f:C&&!A.call({1:2},1)?function(t){var e=C(this,t);return!!e&&e.enumerable}:A},l=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},c={}.toString,h=function(t){return c.call(t).slice(8,-1)},u="".split,d=s((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==h(t)?u.call(t,""):Object(t)}:Object,p=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},f=function(t){return d(p(t))},v=function(t){return"object"==typeof t?null!==t:"function"==typeof t},m=function(t,e){if(!v(t))return t;var i,n;if(e&&"function"==typeof(i=t.toString)&&!v(n=i.call(t)))return n;if("function"==typeof(i=t.valueOf)&&!v(n=i.call(t)))return n;if(!e&&"function"==typeof(i=t.toString)&&!v(n=i.call(t)))return n;throw TypeError("Can't convert object to primitive value")},y={}.hasOwnProperty,b=function(t,e){return y.call(t,e)},w=g.document,x=v(w)&&v(w.createElement),k=function(t){return x?w.createElement(t):{}},_=!a&&!s((function(){return 7!=Object.defineProperty(k("div"),"a",{get:function(){return 7}}).a})),D=Object.getOwnPropertyDescriptor,O={f:a?D:function(t,e){if(t=f(t),e=m(e,!0),_)try{return D(t,e)}catch(t){}if(b(t,e))return l(!I.f.call(t,e),t[e])}},M=/#|\.prototype\./,T=function(t,e){var i=E[N(t)];return i==S||i!=F&&("function"==typeof e?s(e):!!e)},N=T.normalize=function(t){return String(t).replace(M,".").toLowerCase()},E=T.data={},F=T.NATIVE="N",S=T.POLYFILL="P",j=T,B={},R=function(t,e,i){if(function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function")}(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,n){return t.call(e,i,n)};case 3:return function(i,n,o){return t.call(e,i,n,o)}}return function(){return t.apply(e,arguments)}},z=function(t){if(!v(t))throw TypeError(String(t)+" is not an object");return t},Z=Object.defineProperty,G={f:a?Z:function(t,e,i){if(z(t),e=m(e,!0),z(i),_)try{return Z(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}},P=a?function(t,e,i){return G.f(t,e,l(1,i))}:function(t,e,i){return t[e]=i,t},L=O.f,W=function(t){var e=function(e,i,n){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,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e},Q=function(t,e){var i,n,o,r,s,a,A,C,I=t.target,l=t.global,c=t.stat,h=t.proto,u=l?g:c?g[I]:(g[I]||{}).prototype,d=l?B:B[I]||(B[I]={}),p=d.prototype;for(o in e)i=!j(l?o:I+(c?".":"#")+o,t.forced)&&u&&b(u,o),s=d[o],i&&(a=t.noTargetGet?(C=L(u,o))&&C.value:u[o]),r=i&&a?a:e[o],i&&typeof s==typeof r||(A=t.bind&&i?R(r,g):t.wrap&&i?W(r):h&&"function"==typeof r?R(Function.call,r):r,(t.sham||r&&r.sham||s&&s.sham)&&P(A,"sham",!0),d[o]=A,h&&(b(B,n=I+"Prototype")||P(B,n,{}),B[n][o]=r,t.real&&p&&!p[o]&&P(p,o,r)))},U=Array.isArray||function(t){return"Array"==h(t)};Q({target:"Array",stat:!0},{isArray:U});var Y=B.Array.isArray,V=Y,H={},X=g["__core-js_shared__"]||function(t,e){try{P(g,t,e)}catch(i){g[t]=e}return e}("__core-js_shared__",{}),J=Function.toString;"function"!=typeof X.inspectSource&&(X.inspectSource=function(t){return J.call(t)});var K,q,$,tt=X.inspectSource,et=g.WeakMap,it="function"==typeof et&&/native code/.test(tt(et)),nt=i((function(t){(t.exports=function(t,e){return X[t]||(X[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.4",mode:"pure",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),ot=0,rt=Math.random(),gt=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++ot+rt).toString(36)},st=nt("keys"),at=function(t){return st[t]||(st[t]=gt(t))},At={},Ct=g.WeakMap;if(it){var It=new Ct,lt=It.get,ct=It.has,ht=It.set;K=function(t,e){return ht.call(It,t,e),e},q=function(t){return lt.call(It,t)||{}},$=function(t){return ct.call(It,t)}}else{var ut=at("state");At[ut]=!0,K=function(t,e){return P(t,ut,e),e},q=function(t){return b(t,ut)?t[ut]:{}},$=function(t){return b(t,ut)}}var dt,pt,ft,vt={set:K,get:q,has:$,enforce:function(t){return $(t)?q(t):K(t,{})},getterFor:function(t){return function(e){var i;if(!v(e)||(i=q(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return i}}},mt=function(t){return Object(p(t))},yt=!s((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),bt=at("IE_PROTO"),wt=Object.prototype,xt=yt?Object.getPrototypeOf:function(t){return t=mt(t),b(t,bt)?t[bt]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?wt:null},kt=!!Object.getOwnPropertySymbols&&!s((function(){return!String(Symbol())})),_t=kt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Dt=nt("wks"),Ot=g.Symbol,Mt=_t?Ot:Ot&&Ot.withoutSetter||gt,Tt=function(t){return b(Dt,t)||(kt&&b(Ot,t)?Dt[t]=Ot[t]:Dt[t]=Mt("Symbol."+t)),Dt[t]},Nt=(Tt("iterator"),!1);[].keys&&("next"in(ft=[].keys())?(pt=xt(xt(ft)))!==Object.prototype&&(dt=pt):Nt=!0),null==dt&&(dt={});var Et,Ft={IteratorPrototype:dt,BUGGY_SAFARI_ITERATORS:Nt},St=Math.ceil,jt=Math.floor,Bt=function(t){return isNaN(t=+t)?0:(t>0?jt:St)(t)},Rt=Math.min,zt=function(t){return t>0?Rt(Bt(t),9007199254740991):0},Zt=Math.max,Gt=Math.min,Pt=function(t,e){var i=Bt(t);return i<0?Zt(i+e,0):Gt(i,e)},Lt=function(t){return function(e,i,n){var o,r=f(e),g=zt(r.length),s=Pt(n,g);if(t&&i!=i){for(;g>s;)if((o=r[s++])!=o)return!0}else for(;g>s;s++)if((t||s in r)&&r[s]===i)return t||s||0;return!t&&-1}},Wt={includes:Lt(!0),indexOf:Lt(!1)},Qt=Wt.indexOf,Ut=function(t,e){var i,n=f(t),o=0,r=[];for(i in n)!b(At,i)&&b(n,i)&&r.push(i);for(;e.length>o;)b(n,i=e[o++])&&(~Qt(r,i)||r.push(i));return r},Yt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Vt=Object.keys||function(t){return Ut(t,Yt)},Ht=a?Object.defineProperties:function(t,e){z(t);for(var i,n=Vt(e),o=n.length,r=0;o>r;)G.f(t,i=n[r++],e[i]);return t},Xt=function(t){return"function"==typeof t?t:void 0},Jt=function(t,e){return arguments.length<2?Xt(B[t])||Xt(g[t]):B[t]&&B[t][e]||g[t]&&g[t][e]},Kt=Jt("document","documentElement"),qt=at("IE_PROTO"),$t=function(){},te=function(t){return"<script>"+t+"<\/script>"},ee=function(){try{Et=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;ee=Et?function(t){t.write(te("")),t.close();var e=t.parentWindow.Object;return t=null,e}(Et):((e=k("iframe")).style.display="none",Kt.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(te("document.F=Object")),t.close(),t.F);for(var i=Yt.length;i--;)delete ee.prototype[Yt[i]];return ee()};At[qt]=!0;var ie=Object.create||function(t,e){var i;return null!==t?($t.prototype=z(t),i=new $t,$t.prototype=null,i[qt]=t):i=ee(),void 0===e?i:Ht(i,e)},ne={};ne[Tt("toStringTag")]="z";var oe="[object z]"===String(ne),re=Tt("toStringTag"),ge="Arguments"==h(function(){return arguments}()),se=oe?h:function(t){var e,i,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),re))?i:ge?h(e):"Object"==(n=h(e))&&"function"==typeof e.callee?"Arguments":n},ae=oe?{}.toString:function(){return"[object "+se(this)+"]"},Ae=G.f,Ce=Tt("toStringTag"),Ie=function(t,e,i,n){if(t){var o=i?t:t.prototype;b(o,Ce)||Ae(o,Ce,{configurable:!0,value:e}),n&&!oe&&P(o,"toString",ae)}},le=Ft.IteratorPrototype,ce=function(){return this},he=(Object.setPrototypeOf||"__proto__"in{}&&function(){var t={};try{Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set.call(t,[])}catch(t){}}(),function(t,e,i,n){n&&n.enumerable?t[e]=i:P(t,e,i)}),ue=Ft.IteratorPrototype,de=Ft.BUGGY_SAFARI_ITERATORS,pe=Tt("iterator"),fe=function(){return this},ve=function(t,e,i,n,o,r,g){!function(t,e,i){var n=e+" Iterator";t.prototype=ie(le,{next:l(1,i)}),Ie(t,n,!1,!0),H[n]=ce}(i,e,n);var s,a,A,C=function(t){if(t===o&&d)return d;if(!de&&t in h)return h[t];switch(t){case"keys":case"values":case"entries":return function(){return new i(this,t)}}return function(){return new i(this)}},I=e+" Iterator",c=!1,h=t.prototype,u=h[pe]||h["@@iterator"]||o&&h[o],d=!de&&u||C(o),p="Array"==e&&h.entries||u;if(p&&(s=xt(p.call(new t)),ue!==Object.prototype&&s.next&&(Ie(s,I,!0,!0),H[I]=fe)),"values"==o&&u&&"values"!==u.name&&(c=!0,d=function(){return u.call(this)}),g&&h[pe]!==d&&P(h,pe,d),H[e]=d,o)if(a={values:C("values"),keys:r?d:C("keys"),entries:C("entries")},g)for(A in a)!de&&!c&&A in h||he(h,A,a[A]);else Q({target:e,proto:!0,forced:de||c},a);return a},me=vt.set,ye=vt.getterFor("Array Iterator");ve(Array,"Array",(function(t,e){me(this,{type:"Array Iterator",target:f(t),index:0,kind:e})}),(function(){var t=ye(this),e=t.target,i=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==i?{value:n,done:!1}:"values"==i?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values"),H.Arguments=H.Array;var be=Tt("toStringTag");for(var we 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 xe=g[we],ke=xe&&xe.prototype;ke&&se(ke)!==be&&P(ke,be,we),H[we]=H.Array}var _e=function(t){return function(e,i){var n,o,r=String(p(e)),g=Bt(i),s=r.length;return g<0||g>=s?t?"":void 0:(n=r.charCodeAt(g))<55296||n>56319||g+1===s||(o=r.charCodeAt(g+1))<56320||o>57343?t?r.charAt(g):n:t?r.slice(g,g+2):o-56320+(n-55296<<10)+65536}},De=(_e(!1),_e(!0)),Oe=vt.set,Me=vt.getterFor("String Iterator");ve(String,"String",(function(t){Oe(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=Me(this),i=e.string,n=e.index;return n>=i.length?{value:void 0,done:!0}:(t=De(i,n),e.index+=t.length,{value:t,done:!1})}));var Te=Tt("iterator"),Ne=function(t){if(null!=t)return t[Te]||t["@@iterator"]||H[se(t)]},Ee=function(t){var e=Ne(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return z(e.call(t))},Fe=Tt("iterator"),Se=function(t){var e=Object(t);return void 0!==e[Fe]||"@@iterator"in e||H.hasOwnProperty(se(e))},je=function(t,e){return function(t){if(V(t))return t}(t)||function(t,e){if(Se(Object(t))||"[object Arguments]"===Object.prototype.toString.call(t)){var i=[],n=!0,o=!1,r=void 0;try{for(var g,s=Ee(t);!(n=(g=s.next()).done)&&(i.push(g.value),!e||i.length!==e);n=!0);}catch(t){o=!0,r=t}finally{try{n||null==s.return||s.return()}finally{if(o)throw r}}return i}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()};Q({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}});var Be=B.Date.now;function Re(t){var e=function(){for(var t=ze(),e=t(" "),i=t(" "),n=t(" "),o=0;o<arguments.length;o++)(e-=t(o<0||arguments.length<=o?void 0:arguments[o]))<0&&(e+=1),(i-=t(o<0||arguments.length<=o?void 0:arguments[o]))<0&&(i+=1),(n-=t(o<0||arguments.length<=o?void 0:arguments[o]))<0&&(n+=1);return[e,i,n]}(t),i=je(e,3),n=i[0],o=i[1],r=i[2],g=1,s=function(){var t=2091639*n+2.3283064365386963e-10*g;return n=o,o=r,r=t-(g=0|t)};return s.uint32=function(){return 4294967296*s()},s.fract53=function(){return s()+11102230246251565e-32*(2097152*s()|0)},s.algorithm="Alea",s.seed=t,s.version="0.9",s}function ze(){var t=4022871197;return function(e){for(var i=e.toString(),n=0;n<i.length;n++){var o=.02519603282416938*(t+=i.charCodeAt(n));o-=t=o>>>0,t=(o*=t)>>>0,t+=4294967296*(o-=t)}return 2.3283064365386963e-10*(t>>>0)}}Q({target:"Object",stat:!0,forced:!a,sham:!a},{defineProperty:G.f});var Ze=i((function(t){var e=B.Object,i=t.exports=function(t,i,n){return e.defineProperty(t,i,n)};e.defineProperty.sham&&(i.sham=!0)})),Ge=Ze;Q({target:"Object",stat:!0,forced:!a,sham:!a},{defineProperties:Ht});var Pe=i((function(t){var e=B.Object,i=t.exports=function(t,i){return e.defineProperties(t,i)};e.defineProperties.sham&&(i.sham=!0)})),Le=Yt.concat("length","prototype"),We={f:Object.getOwnPropertyNames||function(t){return Ut(t,Le)}},Qe={f:Object.getOwnPropertySymbols},Ue=Jt("Reflect","ownKeys")||function(t){var e=We.f(z(t)),i=Qe.f;return i?e.concat(i(t)):e},Ye=function(t,e,i){var n=m(e);n in t?G.f(t,n,l(0,i)):t[n]=i};Q({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(t){for(var e,i,n=f(t),o=O.f,r=Ue(n),g={},s=0;r.length>s;)void 0!==(i=o(n,e=r[s++]))&&Ye(g,e,i);return g}});var Ve=B.Object.getOwnPropertyDescriptors,He=O.f,Xe=s((function(){He(1)}));Q({target:"Object",stat:!0,forced:!a||Xe,sham:!a},{getOwnPropertyDescriptor:function(t,e){return He(f(t),e)}});var Je=i((function(t){var e=B.Object,i=t.exports=function(t,i){return e.getOwnPropertyDescriptor(t,i)};e.getOwnPropertyDescriptor.sham&&(i.sham=!0)})),Ke=We.f,qe={}.toString,$e="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ti={f:function(t){return $e&&"[object Window]"==qe.call(t)?function(t){try{return Ke(t)}catch(t){return $e.slice()}}(t):Ke(f(t))}},ei={f:Tt},ii=G.f,ni=function(t){var e=B.Symbol||(B.Symbol={});b(e,t)||ii(e,t,{value:ei.f(t)})},oi=Tt("species"),ri=function(t,e){var i;return U(t)&&("function"!=typeof(i=t.constructor)||i!==Array&&!U(i.prototype)?v(i)&&null===(i=i[oi])&&(i=void 0):i=void 0),new(void 0===i?Array:i)(0===e?0:e)},gi=[].push,si=function(t){var e=1==t,i=2==t,n=3==t,o=4==t,r=6==t,g=5==t||r;return function(s,a,A,C){for(var I,l,c=mt(s),h=d(c),u=R(a,A,3),p=zt(h.length),f=0,v=C||ri,m=e?v(s,p):i?v(s,0):void 0;p>f;f++)if((g||f in h)&&(l=u(I=h[f],f,c),t))if(e)m[f]=l;else if(l)switch(t){case 3:return!0;case 5:return I;case 6:return f;case 2:gi.call(m,I)}else if(o)return!1;return r?-1:n||o?o:m}},ai={forEach:si(0),map:si(1),filter:si(2),some:si(3),every:si(4),find:si(5),findIndex:si(6)},Ai=ai.forEach,Ci=at("hidden"),Ii=Tt("toPrimitive"),li=vt.set,ci=vt.getterFor("Symbol"),hi=Object.prototype,ui=g.Symbol,di=Jt("JSON","stringify"),pi=O.f,fi=G.f,vi=ti.f,mi=I.f,yi=nt("symbols"),bi=nt("op-symbols"),wi=nt("string-to-symbol-registry"),xi=nt("symbol-to-string-registry"),ki=nt("wks"),_i=g.QObject,Di=!_i||!_i.prototype||!_i.prototype.findChild,Oi=a&&s((function(){return 7!=ie(fi({},"a",{get:function(){return fi(this,"a",{value:7}).a}})).a}))?function(t,e,i){var n=pi(hi,e);n&&delete hi[e],fi(t,e,i),n&&t!==hi&&fi(hi,e,n)}:fi,Mi=function(t,e){var i=yi[t]=ie(ui.prototype);return li(i,{type:"Symbol",tag:t,description:e}),a||(i.description=e),i},Ti=_t?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof ui},Ni=function(t,e,i){t===hi&&Ni(bi,e,i),z(t);var n=m(e,!0);return z(i),b(yi,n)?(i.enumerable?(b(t,Ci)&&t[Ci][n]&&(t[Ci][n]=!1),i=ie(i,{enumerable:l(0,!1)})):(b(t,Ci)||fi(t,Ci,l(1,{})),t[Ci][n]=!0),Oi(t,n,i)):fi(t,n,i)},Ei=function(t,e){z(t);var i=f(e),n=Vt(i).concat(Bi(i));return Ai(n,(function(e){a&&!Fi.call(i,e)||Ni(t,e,i[e])})),t},Fi=function(t){var e=m(t,!0),i=mi.call(this,e);return!(this===hi&&b(yi,e)&&!b(bi,e))&&(!(i||!b(this,e)||!b(yi,e)||b(this,Ci)&&this[Ci][e])||i)},Si=function(t,e){var i=f(t),n=m(e,!0);if(i!==hi||!b(yi,n)||b(bi,n)){var o=pi(i,n);return!o||!b(yi,n)||b(i,Ci)&&i[Ci][n]||(o.enumerable=!0),o}},ji=function(t){var e=vi(f(t)),i=[];return Ai(e,(function(t){b(yi,t)||b(At,t)||i.push(t)})),i},Bi=function(t){var e=t===hi,i=vi(e?bi:f(t)),n=[];return Ai(i,(function(t){!b(yi,t)||e&&!b(hi,t)||n.push(yi[t])})),n};if(kt||(he((ui=function(){if(this instanceof ui)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=gt(t),i=function(t){this===hi&&i.call(bi,t),b(this,Ci)&&b(this[Ci],e)&&(this[Ci][e]=!1),Oi(this,e,l(1,t))};return a&&Di&&Oi(hi,e,{configurable:!0,set:i}),Mi(e,t)}).prototype,"toString",(function(){return ci(this).tag})),he(ui,"withoutSetter",(function(t){return Mi(gt(t),t)})),I.f=Fi,G.f=Ni,O.f=Si,We.f=ti.f=ji,Qe.f=Bi,ei.f=function(t){return Mi(Tt(t),t)},a&&fi(ui.prototype,"description",{configurable:!0,get:function(){return ci(this).description}})),Q({global:!0,wrap:!0,forced:!kt,sham:!kt},{Symbol:ui}),Ai(Vt(ki),(function(t){ni(t)})),Q({target:"Symbol",stat:!0,forced:!kt},{for:function(t){var e=String(t);if(b(wi,e))return wi[e];var i=ui(e);return wi[e]=i,xi[i]=e,i},keyFor:function(t){if(!Ti(t))throw TypeError(t+" is not a symbol");if(b(xi,t))return xi[t]},useSetter:function(){Di=!0},useSimple:function(){Di=!1}}),Q({target:"Object",stat:!0,forced:!kt,sham:!a},{create:function(t,e){return void 0===e?ie(t):Ei(ie(t),e)},defineProperty:Ni,defineProperties:Ei,getOwnPropertyDescriptor:Si}),Q({target:"Object",stat:!0,forced:!kt},{getOwnPropertyNames:ji,getOwnPropertySymbols:Bi}),Q({target:"Object",stat:!0,forced:s((function(){Qe.f(1)}))},{getOwnPropertySymbols:function(t){return Qe.f(mt(t))}}),di){var Ri=!kt||s((function(){var t=ui();return"[null]"!=di([t])||"{}"!=di({a:t})||"{}"!=di(Object(t))}));Q({target:"JSON",stat:!0,forced:Ri},{stringify:function(t,e,i){for(var n,o=[t],r=1;arguments.length>r;)o.push(arguments[r++]);if(n=e,(v(e)||void 0!==t)&&!Ti(t))return U(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!Ti(e))return e}),o[1]=e,di.apply(null,o)}})}ui.prototype[Ii]||P(ui.prototype,Ii,ui.prototype.valueOf),Ie(ui,"Symbol"),At[Ci]=!0;var zi=B.Object.getOwnPropertySymbols;Q({target:"Object",stat:!0,sham:!a},{create:ie});var Zi=B.Object,Gi=function(t,e){return Zi.create(t,e)},Pi=Ze,Li=function(t,e,i){return e in t?Pi(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t},Wi=s((function(){Vt(1)}));Q({target:"Object",stat:!0,forced:Wi},{keys:function(t){return Vt(mt(t))}});var Qi,Ui=B.Object.keys,Yi="\t\n\v\f\r                　\u2028\u2029\ufeff",Vi="["+Yi+"]",Hi=RegExp("^"+Vi+Vi+"*"),Xi=RegExp(Vi+Vi+"*$"),Ji=function(t){return function(e){var i=String(p(e));return 1&t&&(i=i.replace(Hi,"")),2&t&&(i=i.replace(Xi,"")),i}},Ki={start:Ji(1),end:Ji(2),trim:Ji(3)},qi=Ki.trim;Q({target:"String",proto:!0,forced:(Qi="trim",s((function(){return!!Yi[Qi]()||"​᠎"!="​᠎"[Qi]()||Yi[Qi].name!==Qi})))},{trim:function(){return qi(this)}});var $i=function(t){return B[t+"Prototype"]},tn=$i("String").trim,en=String.prototype,nn=function(t){var e=t.trim;return"string"==typeof t||t===en||t instanceof String&&e===en.trim?tn:e},on=function(t,e){var i=[][t];return!!i&&s((function(){i.call(null,e||function(){throw 1},1)}))},rn=Object.defineProperty,gn={},sn=function(t){throw t},an=function(t,e){if(b(gn,t))return gn[t];e||(e={});var i=[][t],n=!!b(e,"ACCESSORS")&&e.ACCESSORS,o=b(e,0)?e[0]:sn,r=b(e,1)?e[1]:void 0;return gn[t]=!!i&&!s((function(){if(n&&!a)return!0;var t={length:-1};n?rn(t,1,{enumerable:!0,get:sn}):t[1]=1,i.call(t,o,r)}))},An=ai.forEach,Cn=on("forEach"),In=an("forEach"),ln=Cn&&In?[].forEach:function(t){return An(this,t,arguments.length>1?arguments[1]:void 0)};Q({target:"Array",proto:!0,forced:[].forEach!=ln},{forEach:ln});var cn,hn,un=$i("Array").forEach,dn=Array.prototype,pn={DOMTokenList:!0,NodeList:!0},fn=function(t){var e=t.forEach;return t===dn||t instanceof Array&&e===dn.forEach||pn.hasOwnProperty(se(t))?un:e},vn=Jt("navigator","userAgent")||"",mn=g.process,yn=mn&&mn.versions,bn=yn&&yn.v8;bn?hn=(cn=bn.split("."))[0]+cn[1]:vn&&(!(cn=vn.match(/Edge\/(\d+)/))||cn[1]>=74)&&(cn=vn.match(/Chrome\/(\d+)/))&&(hn=cn[1]);var wn=hn&&+hn,xn=Tt("species"),kn=function(t){return wn>=51||!s((function(){var e=[];return(e.constructor={})[xn]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},_n=ai.map,Dn=kn("map"),On=an("map");Q({target:"Array",proto:!0,forced:!Dn||!On},{map:function(t){return _n(this,t,arguments.length>1?arguments[1]:void 0)}});var Mn=$i("Array").map,Tn=Array.prototype,Nn=function(t){var e=t.map;return t===Tn||t instanceof Array&&e===Tn.map?Mn:e},En=Ki.trim,Fn=g.parseInt,Sn=/^[+-]?0[Xx]/,jn=8!==Fn(Yi+"08")||22!==Fn(Yi+"0x16")?function(t,e){var i=En(String(t));return Fn(i,e>>>0||(Sn.test(i)?16:10))}:Fn;Q({global:!0,forced:parseInt!=jn},{parseInt:jn});var Bn=B.parseInt,Rn=I.f,zn=function(t){return function(e){for(var i,n=f(e),o=Vt(n),r=o.length,g=0,s=[];r>g;)i=o[g++],a&&!Rn.call(n,i)||s.push(t?[i,n[i]]:n[i]);return s}},Zn=(zn(!0),zn(!1));Q({target:"Object",stat:!0},{values:function(t){return Zn(t)}});var Gn=B.Object.values,Pn=ai.filter,Ln=kn("filter"),Wn=an("filter");Q({target:"Array",proto:!0,forced:!Ln||!Wn},{filter:function(t){return Pn(this,t,arguments.length>1?arguments[1]:void 0)}});var Qn=$i("Array").filter,Un=Array.prototype,Yn=function(t){var e=t.filter;return t===Un||t instanceof Array&&e===Un.filter?Qn:e},Vn=Tt("isConcatSpreadable"),Hn=wn>=51||!s((function(){var t=[];return t[Vn]=!1,t.concat()[0]!==t})),Xn=kn("concat"),Jn=function(t){if(!v(t))return!1;var e=t[Vn];return void 0!==e?!!e:U(t)};Q({target:"Array",proto:!0,forced:!Hn||!Xn},{concat:function(t){var e,i,n,o,r,g=mt(this),s=ri(g,0),a=0;for(e=-1,n=arguments.length;e<n;e++)if(Jn(r=-1===e?g:arguments[e])){if(a+(o=zt(r.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(i=0;i<o;i++,a++)i in r&&Ye(s,a,r[i])}else{if(a>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Ye(s,a++,r)}return s.length=a,s}});var Kn=$i("Array").concat,qn=Array.prototype,$n=function(t){var e=t.concat;return t===qn||t instanceof Array&&e===qn.concat?Kn:e},to=function(t,e,i,n){try{return n?e(z(i)[0],i[1]):e(i)}catch(e){var o=t.return;throw void 0!==o&&z(o.call(t)),e}},eo=Tt("iterator"),io=Array.prototype,no=function(t){return void 0!==t&&(H.Array===t||io[eo]===t)},oo=Tt("iterator"),ro=!1;try{var go=0,so={next:function(){return{done:!!go++}},return:function(){ro=!0}};so[oo]=function(){return this},Array.from(so,(function(){throw 2}))}catch(t){}var ao=!function(t,e){if(!ro)return!1;var i=!1;try{var n={};n[oo]=function(){return{next:function(){return{done:i=!0}}}},function(t){Array.from(t)}(n)}catch(t){}return i}();Q({target:"Array",stat:!0,forced:ao},{from:function(t){var e,i,n,o,r,g,s=mt(t),a="function"==typeof this?this:Array,A=arguments.length,C=A>1?arguments[1]:void 0,I=void 0!==C,l=Ne(s),c=0;if(I&&(C=R(C,A>2?arguments[2]:void 0,2)),null==l||a==Array&&no(l))for(i=new a(e=zt(s.length));e>c;c++)g=I?C(s[c],c):s[c],Ye(i,c,g);else for(r=(o=l.call(s)).next,i=new a;!(n=r.call(o)).done;c++)g=I?to(o,C,[n.value,c],!0):n.value,Ye(i,c,g);return i.length=c,i}});var Ao=B.Array.from,Co=function(t){return function(t){if(V(t)){for(var e=0,i=new Array(t.length);e<t.length;e++)i[e]=t[e];return i}}(t)||function(t){if(Se(Object(t))||"[object Arguments]"===Object.prototype.toString.call(t))return Ao(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()},Io=kn("slice"),lo=an("slice",{ACCESSORS:!0,0:0,1:2}),co=Tt("species"),ho=[].slice,uo=Math.max;Q({target:"Array",proto:!0,forced:!Io||!lo},{slice:function(t,e){var i,n,o,r=f(this),g=zt(r.length),s=Pt(t,g),a=Pt(void 0===e?g:e,g);if(U(r)&&("function"!=typeof(i=r.constructor)||i!==Array&&!U(i.prototype)?v(i)&&null===(i=i[co])&&(i=void 0):i=void 0,i===Array||void 0===i))return ho.call(r,s,a);for(n=new(void 0===i?Array:i)(uo(a-s,0)),o=0;s<a;s++,o++)s in r&&Ye(n,o,r[s]);return n.length=o,n}});var po=$i("Array").slice,fo=Array.prototype,vo=function(t){var e=t.slice;return t===fo||t instanceof Array&&e===fo.slice?po:e},mo=s((function(){xt(1)}));Q({target:"Object",stat:!0,forced:mo,sham:!yt},{getPrototypeOf:function(t){return xt(mt(t))}});var yo=B.Object.getPrototypeOf,bo=Wt.indexOf,wo=[].indexOf,xo=!!wo&&1/[1].indexOf(1,-0)<0,ko=on("indexOf"),_o=an("indexOf",{ACCESSORS:!0,1:0});Q({target:"Array",proto:!0,forced:xo||!ko||!_o},{indexOf:function(t){return xo?wo.apply(this,arguments)||0:bo(this,t,arguments.length>1?arguments[1]:void 0)}});var Do=$i("Array").indexOf,Oo=Array.prototype,Mo=function(t){var e=t.indexOf;return t===Oo||t instanceof Array&&e===Oo.indexOf?Do:e},To=Y,No=Object.assign,Eo=Object.defineProperty,Fo=!No||s((function(){if(a&&1!==No({b:1},No(Eo({},"a",{enumerable:!0,get:function(){Eo(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!=No({},t)[i]||"abcdefghijklmnopqrst"!=Vt(No({},e)).join("")}))?function(t,e){for(var i=mt(t),n=arguments.length,o=1,r=Qe.f,g=I.f;n>o;)for(var s,A=d(arguments[o++]),C=r?Vt(A).concat(r(A)):Vt(A),l=C.length,c=0;l>c;)s=C[c++],a&&!g.call(A,s)||(i[s]=A[s]);return i}:No;Q({target:"Object",stat:!0,forced:Object.assign!==Fo},{assign:Fo});var So=B.Object.assign;ni("iterator");var jo=ei.f("iterator"),Bo=Object.freeze({__proto__:null});ni("asyncIterator");var Ro=Object.freeze({__proto__:null});ni("hasInstance"),ni("isConcatSpreadable"),ni("match"),ni("matchAll"),ni("replace"),ni("search"),ni("species"),ni("split"),ni("toPrimitive"),ni("toStringTag"),ni("unscopables"),Ie(Math,"Math",!0),Ie(g.JSON,"JSON",!0),o(Bo),o(Ro);var zo=B.Symbol;ni("asyncDispose"),ni("dispose"),ni("observable"),ni("patternMatch"),ni("replaceAll");var Zo=zo,Go=i((function(t){function e(i){return t.exports=e="function"==typeof Zo&&"symbol"==typeof jo?function(t){return typeof t}:function(t){return t&&"function"==typeof Zo&&t.constructor===Zo&&t!==Zo.prototype?"symbol":typeof t},e(i)}t.exports=e}));function Po(t,e){var i=Ui(t);if(zi){var n=zi(t);e&&(n=Yn(n).call(n,(function(e){return Je(t,e).enumerable}))),i.push.apply(i,n)}return i}var Lo=/^\/?Date\((-?\d+)/i,Wo=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,Qo=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,Uo=/^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,Yo=/^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 Vo(t){return t instanceof Number||"number"==typeof t}function Ho(t){return t instanceof String||"string"==typeof t}function Xo(t){return"object"===Go(t)&&null!==t}function Jo(t,e,i,n){var o=!1;!0===n&&(o=null===e[i]&&void 0!==t[i]),o?delete t[i]:t[i]=e[i]}var Ko=So;function qo(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)||!0===i)if("object"===Go(e[o])&&null!==e[o]&&yo(e[o])===Object.prototype)void 0===t[o]?t[o]=qo({},e[o],i):"object"===Go(t[o])&&null!==t[o]&&yo(t[o])===Object.prototype?qo(t[o],e[o],i):Jo(t,e,o,n);else if(To(e[o])){var r;t[o]=vo(r=e[o]).call(r)}else Jo(t,e,o,n);return t}var $o=Gn,tr={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()),Ho(t)?t:Vo(t)?t+"px":e||null},asElement:function(t,e){return"function"==typeof t&&(t=t()),t||e||null}};function er(t){var e;switch(t.length){case 3:case 4:return(e=Qo.exec(t))?{r:Bn(e[1]+e[1],16),g:Bn(e[2]+e[2],16),b:Bn(e[3]+e[3],16)}:null;case 6:case 7:return(e=Wo.exec(t))?{r:Bn(e[1],16),g:Bn(e[2],16),b:Bn(e[3],16)}:null;default:return null}}function ir(t,e,i){var n;return"#"+vo(n=((1<<24)+(t<<16)+(e<<8)+i).toString(16)).call(n,1)}function nr(t,e,i){t/=255,e/=255,i/=255;var n=Math.min(t,Math.min(e,i)),o=Math.max(t,Math.max(e,i));return n===o?{h:0,s:0,v:n}:{h:60*((t===n?3:i===n?1:5)-(t===n?e-i:i===n?t-e:i-t)/(o-n))/360,s:(o-n)/o,v:o}}var or=function(t){var e,i={};return fn(e=t.split(";")).call(e,(function(t){if(""!=nn(t).call(t)){var e,n,o=t.split(":"),r=nn(e=o[0]).call(e),g=nn(n=o[1]).call(n);i[r]=g}})),i},rr=function(t){var e;return Nn(e=Ui(t)).call(e,(function(e){return e+": "+t[e]})).join("; ")};function gr(t,e,i){var n,o,r,g=Math.floor(6*t),s=6*t-g,a=i*(1-e),A=i*(1-s*e),C=i*(1-(1-s)*e);switch(g%6){case 0:n=i,o=C,r=a;break;case 1:n=A,o=i,r=a;break;case 2:n=a,o=i,r=C;break;case 3:n=a,o=A,r=i;break;case 4:n=C,o=a,r=i;break;case 5:n=i,o=a,r=A}return{r:Math.floor(255*n),g:Math.floor(255*o),b:Math.floor(255*r)}}function sr(t,e,i){var n=gr(t,e,i);return ir(n.r,n.g,n.b)}function ar(t){var e=er(t);if(!e)throw new TypeError("'".concat(t,"' is not a valid color."));return nr(e.r,e.g,e.b)}function Ar(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)}function Cr(t){return Uo.test(t)}function Ir(t){if(null===t||"object"!==Go(t))return null;if(t instanceof Element)return t;var e=Gi(t);for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&"object"==Go(t[i])&&(e[i]=Ir(t[i]));return e}t.Alea=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return Re(e.length?e:[Be()])},t.HSVToHex=sr,t.HSVToRGB=gr,t.RGBToHSV=nr,t.RGBToHex=ir,t.addClassName=function(t,e){var i=t.className.split(" "),n=e.split(" ");i=$n(i).call(i,Yn(n).call(n,(function(t){return Mo(i).call(i,t)<0}))),t.className=i.join(" ")},t.addCssText=function(t,e){var i=function(t){for(var e=1;e<arguments.length;e++){var i,n=null!=arguments[e]?arguments[e]:{};if(e%2)fn(i=Po(Object(n),!0)).call(i,(function(e){Li(t,e,n[e])}));else if(Ve)Pe(t,Ve(n));else{var o;fn(o=Po(Object(n))).call(o,(function(e){Ge(t,e,Je(n,e))}))}}return t}({},or(t.style.cssText),{},or(e));t.style.cssText=rr(i)},t.addEventListener=function(t,e,i,n){var o;t.addEventListener?(void 0===n&&(n=!1),"mousewheel"===e&&Mo(o=navigator.userAgent).call(o,"Firefox")>=0&&(e="DOMMouseScroll"),t.addEventListener(e,i,n)):t.attachEvent("on"+e,i)},t.binarySearchCustom=function(t,e,i,n){for(var o=0,r=0,g=t.length-1;r<=g&&o<1e4;){var s=Math.floor((r+g)/2),a=t[s],A=e(void 0===n?a[i]:a[i][n]);if(0==A)return s;-1==A?r=s+1:g=s-1,o++}return-1},t.binarySearchValue=function(t,e,i,n,o){var r,g,s,a,A=0,C=0,I=t.length-1;for(o=null!=o?o:function(t,e){return t==e?0:t<e?-1:1};C<=I&&A<1e4;){if(a=Math.floor(.5*(I+C)),r=t[Math.max(0,a-1)][i],g=t[a][i],s=t[Math.min(t.length-1,a+1)][i],0==o(g,e))return a;if(o(r,e)<0&&o(g,e)>0)return"before"==n?Math.max(0,a-1):a;if(o(g,e)<0&&o(s,e)>0)return"before"==n?a:Math.min(t.length-1,a+1);o(g,e)<0?C=a+1:I=a-1,A++}return-1},t.bridgeObject=Ir,t.copyAndExtendArray=function(t,e){var i;return $n(i=[]).call(i,Co(t),[e])},t.copyArray=function(t){return vo(t).call(t)},t.deepExtend=qo,t.easingFunctions={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}},t.equalArray=function(t,e){if(t.length!==e.length)return!1;for(var i=0,n=t.length;i<n;i++)if(t[i]!=e[i])return!1;return!0},t.extend=Ko,t.fillIfDefined=function t(e,i){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(var o in e)if(void 0!==i[o])if(null===i[o]||"object"!==Go(i[o]))Jo(e,i,o,n);else{var r=e[o],g=i[o];Xo(r)&&Xo(g)&&t(r,g,n)}},t.forEach=function(t,e){if(To(t))for(var i=t.length,n=0;n<i;n++)e(t[n],n,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e(t[o],o,t)},t.getAbsoluteLeft=function(t){return t.getBoundingClientRect().left},t.getAbsoluteRight=function(t){return t.getBoundingClientRect().right},t.getAbsoluteTop=function(t){return t.getBoundingClientRect().top},t.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 n=t.offsetWidth;return i==n&&(n=e.clientWidth),document.body.removeChild(e),i-n},t.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},t.getType=function(t){var e=Go(t);return"object"===e?null===t?"null":t instanceof Boolean?"Boolean":t instanceof Number?"Number":t instanceof String?"String":To(t)?"Array":t instanceof Date?"Date":"Object":"number"===e?"Number":"boolean"===e?"Boolean":"string"===e?"String":void 0===e?"undefined":e},t.hasParent=function(t,e){for(var i=t;i;){if(i===e)return!0;if(!i.parentNode)return!1;i=i.parentNode}return!1},t.hexToHSV=ar,t.hexToRGB=er,t.insertSort=function(t,e){for(var i=0;i<t.length;i++){var n=t[i],o=void 0;for(o=i;o>0&&e(n,t[o-1])<0;o--)t[o]=t[o-1];t[o]=n}return t},t.isDate=function(t){if(t instanceof Date)return!0;if(Ho(t)){if(Lo.exec(t))return!0;if(!isNaN(Date.parse(t)))return!0}return!1},t.isNumber=Vo,t.isObject=Xo,t.isString=Ho,t.isValidHex=Ar,t.isValidRGB=Cr,t.isValidRGBA=function(t){return Yo.test(t)},t.mergeOptions=function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=function(t){return null!=t},r=function(t){return null!==t&&"object"===Go(t)},g=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(!o(i))throw new Error("Parameter option must have a value");if(!r(n))throw new Error("Parameter globalOptions must be an object");var s=function(t,e,i){r(t[i])||(t[i]={});var n=e[i],o=t[i];for(var g in n)Object.prototype.hasOwnProperty.call(n,g)&&(o[g]=n[g])},a=e[i],A=r(n)&&!g(n),C=A?n[i]:void 0,I=C?C.enabled:void 0;if(void 0!==a){if("boolean"==typeof a)return r(t[i])||(t[i]={}),void(t[i].enabled=a);if(null===a&&!r(t[i])){if(!o(C))return;t[i]=Gi(C)}if(r(a)){var l=!0;void 0!==a.enabled?l=a.enabled:void 0!==I&&(l=C.enabled),s(t,e,i),t[i].enabled=l}}},t.option=tr,t.overrideOpacity=function(t,e){if(-1!==Mo(t).call(t,"rgba"))return t;if(-1!==Mo(t).call(t,"rgb")){var i=t.substr(Mo(t).call(t,"(")+1).replace(")","").split(",");return"rgba("+i[0]+","+i[1]+","+i[2]+","+e+")"}var n=er(t);return null==n?t:"rgba("+n.r+","+n.g+","+n.b+","+e+")"},t.parseColor=function(t,e){if(Ho(t)){var i=t;if(Cr(i)){var n,o=Nn(n=i.substr(4).substr(0,i.length-5).split(",")).call(n,(function(t){return Bn(t)}));i=ir(o[0],o[1],o[2])}if(!0===Ar(i)){var r=ar(i),g={h:r.h,s:.8*r.s,v:Math.min(1,1.02*r.v)},s={h:r.h,s:Math.min(1,1.25*r.s),v:.8*r.v},a=sr(s.h,s.s,s.v),A=sr(g.h,g.s,g.v);return{background:i,border:a,highlight:{background:A,border:a},hover:{background:A,border:a}}}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:Ho(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:Ho(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:Ho(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:Ho(t.hover)?{border:t.hover,background:t.hover}:{border:t.hover&&t.hover.border||void 0,background:t.hover&&t.hover.background||void 0}}},t.preventDefault=function(t){t||(t=window.event),t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},t.recursiveDOMDelete=function t(e){if(e)for(;!0===e.hasChildNodes();){var i=e.firstChild;i&&(t(i),e.removeChild(i))}},t.removeClassName=function(t,e){var i=t.className.split(" "),n=e.split(" ");i=Yn(i).call(i,(function(t){return Mo(n).call(n,t)<0})),t.className=i.join(" ")},t.removeCssText=function(t,e){var i=or(t.style.cssText),n=or(e);for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&delete i[o];t.style.cssText=rr(i)},t.removeEventListener=function(t,e,i,n){var o;t.removeEventListener?(void 0===n&&(n=!1),"mousewheel"===e&&Mo(o=navigator.userAgent).call(o,"Firefox")>=0&&(e="DOMMouseScroll"),t.removeEventListener(e,i,n)):t.detachEvent("on"+e,i)},t.selectiveBridgeObject=function(t,e){if(null!==e&&"object"===Go(e)){for(var i=Gi(e),n=0;n<t.length;n++)Object.prototype.hasOwnProperty.call(e,t[n])&&"object"==Go(e[t[n]])&&(i[t[n]]=Ir(e[t[n]]));return i}return null},t.selectiveDeepExtend=function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(To(i))throw new TypeError("Arrays are not supported by deepExtend");for(var o=0;o<t.length;o++){var r=t[o];if(Object.prototype.hasOwnProperty.call(i,r))if(i[r]&&i[r].constructor===Object)void 0===e[r]&&(e[r]={}),e[r].constructor===Object?qo(e[r],i[r],!1,n):Jo(e,i,r,n);else{if(To(i[r]))throw new TypeError("Arrays are not supported by deepExtend");Jo(e,i,r,n)}}return e},t.selectiveExtend=function(t,e){if(!To(t))throw new Error("Array with property names expected as first argument");for(var i=arguments.length,n=new Array(i>2?i-2:0),o=2;o<i;o++)n[o-2]=arguments[o];for(var r=0,g=n;r<g.length;r++)for(var s=g[r],a=0;a<t.length;a++){var A=t[a];s&&Object.prototype.hasOwnProperty.call(s,A)&&(e[A]=s[A])}return e},t.selectiveNotDeepExtend=function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(To(i))throw new TypeError("Arrays are not supported by deepExtend");for(var o in i)if(Object.prototype.hasOwnProperty.call(i,o)&&-1===Mo(t).call(t,o))if(i[o]&&i[o].constructor===Object)void 0===e[o]&&(e[o]={}),e[o].constructor===Object?qo(e[o],i[o]):Jo(e,i,o,n);else if(To(i[o])){e[o]=[];for(var r=0;r<i[o].length;r++)e[o].push(i[o][r])}else Jo(e,i,o,n);return e},t.throttle=function(t){var e=!1;return function(){e||(e=!0,requestAnimationFrame((function(){e=!1,t()})))}},t.toArray=$o,t.topMost=function(t,e){var i;To(e)||(e=[e]);var n=!0,o=!1,r=void 0;try{for(var g,s=Ee(t);!(n=(g=s.next()).done);n=!0){var a=g.value;if(a){i=a[e[0]];for(var A=1;A<e.length;A++)i&&(i=i[e[A]]);if(void 0!==i)break}}}catch(t){o=!0,r=t}finally{try{n||null==s.return||s.return()}finally{if(o)throw r}}return i},t.updateProperty=function(t,e,i){return t[e]!==i&&(t[e]=i,!0)},Object.defineProperty(t,"__esModule",{value:!0})}(e)}));function Xa(t){var e,i,n=this;this.active=!1,this.dom={container:t},this.dom.overlay=document.createElement("div"),this.dom.overlay.className="vis-overlay",this.dom.container.appendChild(this.dom.overlay),this.hammer=Va(this.dom.overlay),this.hammer.on("tap",et(e=this._onTapOverlay).call(e,this));var o=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];eo(o).call(o,(function(t){n.hammer.on(t,(function(t){t.srcEvent.stopPropagation()}))})),document&&document.body&&(this.onClick=function(e){(function(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1})(e.target,t)||n.deactivate()},document.body.addEventListener("click",this.onClick)),void 0!==this.keycharm&&this.keycharm.destroy(),this.keycharm=vs(),this.escListener=et(i=this.deactivate).call(i,this)}o(Ha),(Ua=fs)&&Ua.default,at(Xa.prototype),Xa.current=null,Xa.prototype.destroy=function(){this.deactivate(),this.dom.overlay.parentNode.removeChild(this.dom.overlay),this.onClick&&document.body.removeEventListener("click",this.onClick),void 0!==this.keycharm&&this.keycharm.destroy(),this.keycharm=null,this.hammer.destroy(),this.hammer=null},Xa.prototype.activate=function(){var t;Xa.current&&Xa.current.deactivate(),Xa.current=this,this.active=!0,this.dom.overlay.style.display="none",Ha.addClassName(this.dom.container,"vis-active"),this.emit("change"),this.emit("activate"),et(t=this.keycharm).call(t,"esc",this.escListener)},Xa.prototype.deactivate=function(){this.active=!1,this.dom.overlay.style.display="block",Ha.removeClassName(this.dom.container,"vis-active"),this.keycharm.unbind("esc",this.escListener),this.emit("change"),this.emit("deactivate")},Xa.prototype._onTapOverlay=function(t){this.activate(),t.srcEvent.stopPropagation()};var Ja=Xa,Ka=r((function(t,e){e.en={edit:"Edit",del:"Delete selected",back:"Back",addNode:"Add Node",addEdge:"Add Edge",editNode:"Edit Node",editEdge:"Edit Edge",addDescription:"Click in an empty space to place a new node.",edgeDescription:"Click on a node and drag the edge to another node to connect them.",editEdgeDescription:"Click on the control points and drag them to a node to connect to it.",createEdgeError:"Cannot link edges to a cluster.",deleteClusterError:"Clusters cannot be deleted.",editClusterError:"Clusters cannot be edited."},e.en_EN=e.en,e.en_US=e.en,e.de={edit:"Editieren",del:"Lösche Auswahl",back:"Zurück",addNode:"Knoten hinzufügen",addEdge:"Kante hinzufügen",editNode:"Knoten editieren",editEdge:"Kante editieren",addDescription:"Klicke auf eine freie Stelle, um einen neuen Knoten zu plazieren.",edgeDescription:"Klicke auf einen Knoten und ziehe die Kante zu einem anderen Knoten, um diese zu verbinden.",editEdgeDescription:"Klicke auf die Verbindungspunkte und ziehe diese auf einen Knoten, um sie zu verbinden.",createEdgeError:"Es ist nicht möglich, Kanten mit Clustern zu verbinden.",deleteClusterError:"Cluster können nicht gelöscht werden.",editClusterError:"Cluster können nicht editiert werden."},e.de_DE=e.de,e.es={edit:"Editar",del:"Eliminar selección",back:"Atrás",addNode:"Añadir nodo",addEdge:"Añadir arista",editNode:"Editar nodo",editEdge:"Editar arista",addDescription:"Haga clic en un lugar vacío para colocar un nuevo nodo.",edgeDescription:"Haga clic en un nodo y arrastre la arista hacia otro nodo para conectarlos.",editEdgeDescription:"Haga clic en un punto de control y arrastrelo a un nodo para conectarlo.",createEdgeError:"No se puede conectar una arista a un grupo.",deleteClusterError:"No es posible eliminar grupos.",editClusterError:"No es posible editar grupos."},e.es_ES=e.es,e.it={edit:"Modifica",del:"Cancella la selezione",back:"Indietro",addNode:"Aggiungi un nodo",addEdge:"Aggiungi un vertice",editNode:"Modifica il nodo",editEdge:"Modifica il vertice",addDescription:"Clicca per aggiungere un nuovo nodo",edgeDescription:"Clicca su un nodo e trascinalo ad un altro nodo per connetterli.",editEdgeDescription:"Clicca sui Punti di controllo e trascinali ad un nodo per connetterli.",createEdgeError:"Non si possono collegare vertici ad un cluster",deleteClusterError:"I cluster non possono essere cancellati",editClusterError:"I clusters non possono essere modificati."},e.it_IT=e.it,e.nl={edit:"Wijzigen",del:"Selectie verwijderen",back:"Terug",addNode:"Node toevoegen",addEdge:"Link toevoegen",editNode:"Node wijzigen",editEdge:"Link wijzigen",addDescription:"Klik op een leeg gebied om een nieuwe node te maken.",edgeDescription:"Klik op een node en sleep de link naar een andere node om ze te verbinden.",editEdgeDescription:"Klik op de verbindingspunten en sleep ze naar een node om daarmee te verbinden.",createEdgeError:"Kan geen link maken naar een cluster.",deleteClusterError:"Clusters kunnen niet worden verwijderd.",editClusterError:"Clusters kunnen niet worden aangepast."},e.nl_NL=e.nl,e.nl_BE=e.nl,e["pt-br"]={edit:"Editar",del:"Remover selecionado",back:"Voltar",addNode:"Adicionar nó",addEdge:"Adicionar aresta",editNode:"Editar nó",editEdge:"Editar aresta",addDescription:"Clique em um espaço em branco para adicionar um novo nó",edgeDescription:"Clique em um nó e arraste a aresta até outro nó para conectá-los",editEdgeDescription:"Clique nos pontos de controle e os arraste para um nó para conectá-los",createEdgeError:"Não foi possível linkar arestas a um cluster.",deleteClusterError:"Clusters não puderam ser removidos.",editClusterError:"Clusters não puderam ser editados."},e["pt-BR"]=e["pt-br"],e.pt_BR=e["pt-br"],e.pt_br=e["pt-br"],e.ru={edit:"Редактировать",del:"Удалить выбранное",back:"Назад",addNode:"Добавить узел",addEdge:"Добавить ребро",editNode:"Редактировать узел",editEdge:"Редактировать ребро",addDescription:"Кликните в свободное место, чтобы добавить новый узел.",edgeDescription:"Кликните на узел и протяните ребро к другому узлу, чтобы соединить их.",editEdgeDescription:"Кликните на контрольные точки и перетащите их в узел, чтобы подключиться к нему.",createEdgeError:"Невозможно соединить ребра в кластер.",deleteClusterError:"Кластеры не могут быть удалены",editClusterError:"Кластеры недоступны для редактирования."},e.ru_RU=e.ru,e.cn={edit:"编辑",del:"删除选定",back:"返回",addNode:"添加节点",addEdge:"添加连接线",editNode:"编辑节点",editEdge:"编辑连接线",addDescription:"单击空白处放置新节点。",edgeDescription:"单击某个节点并将该连接线拖动到另一个节点以连接它们。",editEdgeDescription:"单击控制节点并将它们拖到节点上连接。",createEdgeError:"无法将连接线连接到群集。",deleteClusterError:"无法删除群集。",editClusterError:"无法编辑群集。"},e.zh_CN=e.cn,e.uk={edit:"Редагувати",del:"Видалити обране",back:"Назад",addNode:"Додати вузол",addEdge:"Додати край",editNode:"Редагувати вузол",editEdge:"Редагувати край",addDescription:"Kлікніть на вільне місце, щоб додати новий вузол.",edgeDescription:"Клікніть на вузол і перетягніть край до іншого вузла, щоб їх з'єднати.",editEdgeDescription:"Клікніть на контрольні точки і перетягніть їх у вузол, щоб підключитися до нього.",createEdgeError:"Не можливо об'єднати краї в групу.",deleteClusterError:"Групи не можуть бути видалені.",editClusterError:"Групи недоступні для редагування."},e.uk_UA=e.uk,e.fr={edit:"Éditer",del:"Effacer la sélection",back:"Retour",addNode:"Ajouter un nœud",addEdge:"Ajouter un lien",editNode:"Éditer le nœud",editEdge:"Éditer le lien",addDescription:"Cliquez dans un endroit vide pour placer un nœud.",edgeDescription:"Cliquez sur un nœud et glissez le lien vers un autre nœud pour les connecter.",editEdgeDescription:"Cliquez sur les points de contrôle et glissez-les pour connecter un nœud.",createEdgeError:"Impossible de créer un lien vers un cluster.",deleteClusterError:"Les clusters ne peuvent pas être effacés.",editClusterError:"Les clusters ne peuvent pas être édités."},e.fr_FR=e.fr,e.cs={edit:"Upravit",del:"Smazat výběr",back:"Zpět",addNode:"Přidat vrchol",addEdge:"Přidat hranu",editNode:"Upravit vrchol",editEdge:"Upravit hranu",addDescription:"Kluknutím do prázdného prostoru můžete přidat nový vrchol.",edgeDescription:"Přetažením z jednoho vrcholu do druhého můžete spojit tyto vrcholy novou hranou.",editEdgeDescription:"Přetažením kontrolního vrcholu hrany ji můžete připojit k jinému vrcholu.",createEdgeError:"Nelze připojit hranu ke shluku.",deleteClusterError:"Nelze mazat shluky.",editClusterError:"Nelze upravovat shluky."},e.cs_CZ=e.cs}));var qa=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")};function $a(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),On(t,n.key,n)}}var tA=function(t,e,i){return e&&$a(t.prototype,e),i&&$a(t,i),t},eA=function(){function t(){qa(this,t),this.NUM_ITERATIONS=4,this.image=new Image,this.canvas=document.createElement("canvas")}return tA(t,[{key:"init",value:function(){if(!this.initialized()){this.src=this.image.src;var t=this.image.width,e=this.image.height;this.width=t,this.height=e;var i=Math.floor(e/2),n=Math.floor(e/4),o=Math.floor(e/8),r=Math.floor(e/16),g=Math.floor(t/2),s=Math.floor(t/4),a=Math.floor(t/8),A=Math.floor(t/16);this.canvas.width=3*s,this.canvas.height=i,this.coordinates=[[0,0,g,i],[g,0,s,n],[g,n,a,o],[5*a,n,A,r]],this._fillMipMap()}}},{key:"initialized",value:function(){return void 0!==this.coordinates}},{key:"_fillMipMap",value:function(){var t=this.canvas.getContext("2d"),e=this.coordinates[0];t.drawImage(this.image,e[0],e[1],e[2],e[3]);for(var i=1;i<this.NUM_ITERATIONS;i++){var n=this.coordinates[i-1],o=this.coordinates[i];t.drawImage(this.canvas,n[0],n[1],n[2],n[3],o[0],o[1],o[2],o[3])}}},{key:"drawImageAtPosition",value:function(t,e,i,n,o,r){if(this.initialized())if(e>2){e*=.5;for(var g=0;e>2&&g<this.NUM_ITERATIONS;)e*=.5,g+=1;g>=this.NUM_ITERATIONS&&(g=this.NUM_ITERATIONS-1);var s=this.coordinates[g];t.drawImage(this.canvas,s[0],s[1],s[2],s[3],i,n,o,r)}else t.drawImage(this.image,i,n,o,r)}}]),t}(),iA=function(){function t(e){qa(this,t),this.images={},this.imageBroken={},this.callback=e}return tA(t,[{key:"_tryloadBrokenUrl",value:function(t,e,i){void 0!==t&&void 0!==i&&(void 0!==e?(i.image.onerror=function(){console.error("Could not load brokenImage:",e)},i.image.src=e):console.warn("No broken url image defined"))}},{key:"_redrawWithImage",value:function(t){this.callback&&this.callback(t)}},{key:"load",value:function(t,e){var i=this,n=this.images[t];if(n)return n;var o=new eA;return this.images[t]=o,o.image.onload=function(){i._fixImageCoordinates(o.image),o.init(),i._redrawWithImage(o)},o.image.onerror=function(){console.error("Could not load image:",t),i._tryloadBrokenUrl(t,e,o)},o.image.src=t,o}},{key:"_fixImageCoordinates",value:function(t){0===t.width&&(document.body.appendChild(t),t.width=t.offsetWidth,t.height=t.offsetHeight,document.body.removeChild(t))}}]),t}(),nA=function(){function t(){qa(this,t),this.clear(),this.defaultIndex=0,this.groupsArray=[],this.groupIndex=0,this.defaultGroups=[{border:"#2B7CE9",background:"#97C2FC",highlight:{border:"#2B7CE9",background:"#D2E5FF"},hover:{border:"#2B7CE9",background:"#D2E5FF"}},{border:"#FFA500",background:"#FFFF00",highlight:{border:"#FFA500",background:"#FFFFA3"},hover:{border:"#FFA500",background:"#FFFFA3"}},{border:"#FA0A10",background:"#FB7E81",highlight:{border:"#FA0A10",background:"#FFAFB1"},hover:{border:"#FA0A10",background:"#FFAFB1"}},{border:"#41A906",background:"#7BE141",highlight:{border:"#41A906",background:"#A1EC76"},hover:{border:"#41A906",background:"#A1EC76"}},{border:"#E129F0",background:"#EB7DF4",highlight:{border:"#E129F0",background:"#F0B3F5"},hover:{border:"#E129F0",background:"#F0B3F5"}},{border:"#7C29F0",background:"#AD85E4",highlight:{border:"#7C29F0",background:"#D3BDF0"},hover:{border:"#7C29F0",background:"#D3BDF0"}},{border:"#C37F00",background:"#FFA807",highlight:{border:"#C37F00",background:"#FFCA66"},hover:{border:"#C37F00",background:"#FFCA66"}},{border:"#4220FB",background:"#6E6EFD",highlight:{border:"#4220FB",background:"#9B9BFD"},hover:{border:"#4220FB",background:"#9B9BFD"}},{border:"#FD5A77",background:"#FFC0CB",highlight:{border:"#FD5A77",background:"#FFD1D9"},hover:{border:"#FD5A77",background:"#FFD1D9"}},{border:"#4AD63A",background:"#C2FABC",highlight:{border:"#4AD63A",background:"#E6FFE3"},hover:{border:"#4AD63A",background:"#E6FFE3"}},{border:"#990000",background:"#EE0000",highlight:{border:"#BB0000",background:"#FF3333"},hover:{border:"#BB0000",background:"#FF3333"}},{border:"#FF6000",background:"#FF6000",highlight:{border:"#FF6000",background:"#FF6000"},hover:{border:"#FF6000",background:"#FF6000"}},{border:"#97C2FC",background:"#2B7CE9",highlight:{border:"#D2E5FF",background:"#2B7CE9"},hover:{border:"#D2E5FF",background:"#2B7CE9"}},{border:"#399605",background:"#255C03",highlight:{border:"#399605",background:"#255C03"},hover:{border:"#399605",background:"#255C03"}},{border:"#B70054",background:"#FF007E",highlight:{border:"#B70054",background:"#FF007E"},hover:{border:"#B70054",background:"#FF007E"}},{border:"#AD85E4",background:"#7C29F0",highlight:{border:"#D3BDF0",background:"#7C29F0"},hover:{border:"#D3BDF0",background:"#7C29F0"}},{border:"#4557FA",background:"#000EA1",highlight:{border:"#6E6EFD",background:"#000EA1"},hover:{border:"#6E6EFD",background:"#000EA1"}},{border:"#FFC0CB",background:"#FD5A77",highlight:{border:"#FFD1D9",background:"#FD5A77"},hover:{border:"#FFD1D9",background:"#FD5A77"}},{border:"#C2FABC",background:"#74D66A",highlight:{border:"#E6FFE3",background:"#74D66A"},hover:{border:"#E6FFE3",background:"#74D66A"}},{border:"#EE0000",background:"#990000",highlight:{border:"#FF3333",background:"#BB0000"},hover:{border:"#FF3333",background:"#BB0000"}}],this.options={},this.defaultOptions={useDefaultGroups:!0},Rr(this.options,this.defaultOptions)}return tA(t,[{key:"setOptions",value:function(t){var e=["useDefaultGroups"];if(void 0!==t)for(var i in t)if(t.hasOwnProperty(i)&&-1===rr(e).call(e,i)){var n=t[i];this.add(i,n)}}},{key:"clear",value:function(){this.groups={},this.groupsArray=[]}},{key:"get",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.groups[t];if(void 0===i&&e)if(!1===this.options.useDefaultGroups&&this.groupsArray.length>0){var n=this.groupIndex%this.groupsArray.length;this.groupIndex++,(i={}).color=this.groups[this.groupsArray[n]],this.groups[t]=i}else{var o=this.defaultIndex%this.defaultGroups.length;this.defaultIndex++,(i={}).color=this.defaultGroups[o],this.groups[t]=i}return i}},{key:"add",value:function(t,e){return this.groups[t]=e,this.groupsArray.push(t),e}}]),t}(),oA=[].slice,rA=/MSIE .\./.test(ii),gA=function(t){return function(e,i){var n=arguments.length>2,o=n?oA.call(arguments,2):void 0;return t(n?function(){("function"==typeof e?e:Function(e)).apply(this,o)}:e,i)}};V({global:!0,bind:!0,forced:rA},{setTimeout:gA(a.setTimeout),setInterval:gA(a.setInterval)});var sA=z.setTimeout,aA=ki.some,AA=Wn("some"),CA=Vn("some");V({target:"Array",proto:!0,forced:!AA||!CA},{some:function(t){return aA(this,t,arguments.length>1?arguments[1]:void 0)}});var IA=q("Array").some,lA=Array.prototype,cA=function(t){var e=t.some;return t===lA||t instanceof Array&&e===lA.some?IA:e},hA=a.isFinite,uA=Number.isFinite||function(t){return"number"==typeof t&&hA(t)};V({target:"Number",stat:!0},{isFinite:uA});var dA=z.Number.isFinite;V({target:"Number",stat:!0},{isNaN:function(t){return t!=t}});var pA=z.Number.isNaN;var fA=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},vA=Ie("Reflect","construct"),mA=A((function(){function t(){}return!(vA((function(){}),[],t)instanceof t)})),yA=!A((function(){vA((function(){}))})),bA=mA||yA;V({target:"Reflect",stat:!0,forced:bA,sham:bA},{construct:function(t,e){Z(t),P(e);var i=arguments.length<3?t:Z(arguments[2]);if(yA&&!mA)return vA(t,e,i);if(t==i){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return n.push.apply(n,e),new(K.apply(t,n))}var o=i.prototype,r=pe(y(o)?o:Object.prototype),g=Function.apply.call(t,r,e);return y(g)?g:r}});var wA=z.Reflect.construct,xA=q("Array").entries,kA=Array.prototype,_A={DOMTokenList:!0,NodeList:!0},DA=function(t){var e=t.entries;return t===kA||t instanceof Array&&e===kA.entries||_A.hasOwnProperty(be(t))?xA:e},OA=Ie("JSON","stringify"),MA=/[\uD800-\uDFFF]/g,TA=/^[\uD800-\uDBFF]$/,NA=/^[\uDC00-\uDFFF]$/,EA=function(t,e,i){var n=i.charAt(e-1),o=i.charAt(e+1);return TA.test(t)&&!NA.test(o)||NA.test(t)&&!TA.test(n)?"\\u"+t.charCodeAt(0).toString(16):t},FA=A((function(){return'"\\udf06\\ud834"'!==OA("\udf06\ud834")||'"\\udead"'!==OA("\udead")}));OA&&V({target:"JSON",stat:!0,forced:FA},{stringify:function(t,e,i){var n=OA.apply(null,arguments);return"string"==typeof n?n.replace(MA,EA):n}}),z.JSON||(z.JSON={stringify:JSON.stringify});var SA=function(t,e,i){return z.JSON.stringify.apply(null,arguments)},jA=q("Array").values,BA=Array.prototype,RA={DOMTokenList:!0,NodeList:!0},zA=function(t){var e=t.values;return t===BA||t instanceof Array&&e===BA.values||RA.hasOwnProperty(be(t))?jA:e},ZA=q("Array").keys,GA=Array.prototype,PA={DOMTokenList:!0,NodeList:!0},LA=function(t){var e=t.keys;return t===GA||t instanceof Array&&e===GA.keys||PA.hasOwnProperty(be(t))?ZA:e},WA=_n;V({target:"Object",stat:!0},{setPrototypeOf:Me});var QA=z.Object.setPrototypeOf,UA=r((function(t){function e(i,n){return t.exports=e=QA||function(t,e){return t.__proto__=e,t},e(i,n)}t.exports=e}));var YA=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=WA(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&UA(t,e)};var VA=function(t,e){return!e||"object"!==cr(e)&&"function"!=typeof e?fA(t):e},HA=Jo,XA=r((function(t){function e(i){return t.exports=e=QA?HA:function(t){return t.__proto__||HA(t)},e(i)}t.exports=e})),JA=[],KA=JA.sort,qA=A((function(){JA.sort(void 0)})),$A=A((function(){JA.sort(null)})),tC=Wn("sort");V({target:"Array",proto:!0,forced:qA||!$A||!tC},{sort:function(t){return void 0===t?KA.call(jt(this)):KA.call(jt(this),Z(t))}});var eC=q("Array").sort,iC=Array.prototype,nC=function(t){var e=t.sort;return t===iC||t instanceof Array&&e===iC.sort?eC:e},oC=!A((function(){return Object.isExtensible(Object.preventExtensions({}))})),rC=r((function(t){var e=W.f,i=yt("meta"),n=0,o=Object.isExtensible||function(){return!0},r=function(t){e(t,i,{value:{objectID:"O"+ ++n,weakData:{}}})},g=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!y(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!x(t,i)){if(!o(t))return"F";if(!e)return"E";r(t)}return t[i].objectID},getWeakData:function(t,e){if(!x(t,i)){if(!o(t))return!0;if(!e)return!1;r(t)}return t[i].weakData},onFreeze:function(t){return oC&&g.REQUIRED&&o(t)&&!x(t,i)&&r(t),t}};xt[i]=!0})),gC=(rC.REQUIRED,rC.fastKey,rC.getWeakData,rC.onFreeze,r((function(t){var e=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,i,n,o,r){var g,s,a,A,C,I,l,c=G(i,n,o?2:1);if(r)g=t;else{if("function"!=typeof(s=Xe(t)))throw TypeError("Target is not iterable");if(sn(s)){for(a=0,A=$t(t.length);A>a;a++)if((C=o?c(P(l=t[a])[0],l[1]):c(t[a]))&&C instanceof e)return C;return new e(!1)}g=s.call(t)}for(I=g.next;!(l=I.call(g)).done;)if("object"==typeof(C=on(g,c,l.value,o))&&C&&C instanceof e)return C;return new e(!1)}).stop=function(t){return new e(!0,t)}}))),sC=function(t,e,i){if(!(t instanceof e))throw TypeError("Incorrect "+(i?i+" ":"")+"invocation");return t},aC=W.f,AC=ki.forEach,CC=St.set,IC=St.getterFor,lC=function(t,e,i){var n,o=-1!==t.indexOf("Map"),r=-1!==t.indexOf("Weak"),g=o?"set":"add",s=a[t],I=s&&s.prototype,l={};if(C&&"function"==typeof s&&(r||I.forEach&&!A((function(){(new s).entries().next()})))){n=e((function(e,i){CC(sC(e,n,t),{type:t,collection:new s}),null!=i&&gC(i,e[g],e,o)}));var c=IC(t);AC(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(t){var e="add"==t||"set"==t;!(t in I)||r&&"clear"==t||Q(n.prototype,t,(function(i,n){var o=c(this).collection;if(!e&&r&&!y(i))return"get"==t&&void 0;var g=o[t](0===i?0:i,n);return e?this:g}))})),r||aC(n.prototype,"size",{configurable:!0,get:function(){return c(this).collection.size}})}else n=i.getConstructor(e,t,o,g),rC.REQUIRED=!0;return _e(n,t,!1,!0),l[t]=n,V({global:!0,forced:!0},l),r||i.setStrong(n,t,o),n},cC=function(t,e,i){for(var n in e)i&&i.unsafe&&t[n]?t[n]=e[n]:Te(t,n,e[n],i);return t},hC=Ut("species"),uC=W.f,dC=rC.fastKey,pC=St.set,fC=St.getterFor,vC={getConstructor:function(t,e,i,n){var o=t((function(t,r){sC(t,o,e),pC(t,{type:e,index:pe(null),first:void 0,last:void 0,size:0}),C||(t.size=0),null!=r&&gC(r,t[n],t,i)})),r=fC(e),g=function(t,e,i){var n,o,g=r(t),a=s(t,e);return a?a.value=i:(g.last=a={index:o=dC(e,!0),key:e,value:i,previous:n=g.last,next:void 0,removed:!1},g.first||(g.first=a),n&&(n.next=a),C?g.size++:t.size++,"F"!==o&&(g.index[o]=a)),t},s=function(t,e){var i,n=r(t),o=dC(e);if("F"!==o)return n.index[o];for(i=n.first;i;i=i.next)if(i.key==e)return i};return cC(o.prototype,{clear:function(){for(var t=r(this),e=t.index,i=t.first;i;)i.removed=!0,i.previous&&(i.previous=i.previous.next=void 0),delete e[i.index],i=i.next;t.first=t.last=void 0,C?t.size=0:this.size=0},delete:function(t){var e=r(this),i=s(this,t);if(i){var n=i.next,o=i.previous;delete e.index[i.index],i.removed=!0,o&&(o.next=n),n&&(n.previous=o),e.first==i&&(e.first=n),e.last==i&&(e.last=o),C?e.size--:this.size--}return!!i},forEach:function(t){for(var e,i=r(this),n=G(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:i.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!s(this,t)}}),cC(o.prototype,i?{get:function(t){var e=s(this,t);return e&&e.value},set:function(t,e){return g(this,0===t?0:t,e)}}:{add:function(t){return g(this,t=0===t?0:t,t)}}),C&&uC(o.prototype,"size",{get:function(){return r(this).size}}),o},setStrong:function(t,e,i){var n=e+" Iterator",o=fC(e),r=fC(n);je(t,e,(function(t,e){pC(this,{type:n,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=r(this),e=t.kind,i=t.last;i&&i.removed;)i=i.previous;return t.target&&(t.last=i=i?i.next:t.state.first)?"keys"==e?{value:i.key,done:!1}:"values"==e?{value:i.value,done:!1}:{value:[i.key,i.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),i?"entries":"values",!i,!0),function(t){var e=Ie(t),i=W.f;C&&e&&!e[hC]&&i(e,hC,{configurable:!0,get:function(){return this}})}(e)}},mC=(lC("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),vC),z.Set),yC=(lC("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),vC),z.Map),bC=r((function(t){var e=function(t){var e=Object.prototype,i=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.asyncIterator||"@@asyncIterator",g=n.toStringTag||"@@toStringTag";function s(t,e,i,n){var o=e&&e.prototype instanceof C?e:C,r=Object.create(o.prototype),g=new b(n||[]);return r._invoke=function(t,e,i){var n="suspendedStart";return function(o,r){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw r;return x()}for(i.method=o,i.arg=r;;){var g=i.delegate;if(g){var s=v(g,i);if(s){if(s===A)continue;return s}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if("suspendedStart"===n)throw n="completed",i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);n="executing";var C=a(t,e,i);if("normal"===C.type){if(n=i.done?"completed":"suspendedYield",C.arg===A)continue;return{value:C.arg,done:i.done}}"throw"===C.type&&(n="completed",i.method="throw",i.arg=C.arg)}}}(t,i,g),r}function a(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var A={};function C(){}function I(){}function l(){}var c={};c[o]=function(){return this};var h=Object.getPrototypeOf,u=h&&h(h(w([])));u&&u!==e&&i.call(u,o)&&(c=u);var d=l.prototype=C.prototype=Object.create(c);function p(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function f(t,e){var n;this._invoke=function(o,r){function g(){return new e((function(n,g){!function n(o,r,g,s){var A=a(t[o],t,r);if("throw"!==A.type){var C=A.arg,I=C.value;return I&&"object"==typeof I&&i.call(I,"__await")?e.resolve(I.__await).then((function(t){n("next",t,g,s)}),(function(t){n("throw",t,g,s)})):e.resolve(I).then((function(t){C.value=t,g(C)}),(function(t){return n("throw",t,g,s)}))}s(A.arg)}(o,r,n,g)}))}return n=n?n.then(g,g):g()}}function v(t,e){var i=t.iterator[e.method];if(void 0===i){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,v(t,e),"throw"===e.method))return A;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return A}var n=a(i,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,A;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,A):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,A)}function m(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function y(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function b(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(m,this),this.reset(!0)}function w(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(i.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:x}}function x(){return{value:void 0,done:!0}}return I.prototype=d.constructor=l,l.constructor=I,l[g]=I.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===I||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,l):(t.__proto__=l,g in t||(t[g]="GeneratorFunction")),t.prototype=Object.create(d),t},t.awrap=function(t){return{__await:t}},p(f.prototype),f.prototype[r]=function(){return this},t.AsyncIterator=f,t.async=function(e,i,n,o,r){void 0===r&&(r=Promise);var g=new f(s(e,i,n,o),r);return t.isGeneratorFunction(i)?g:g.next().then((function(t){return t.done?t.value:g.next()}))},p(d),d[g]="Generator",d[o]=function(){return this},d.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var i in t)e.push(i);return e.reverse(),function i(){for(;e.length;){var n=e.pop();if(n in t)return i.value=n,i.done=!1,i}return i.done=!0,i}},t.values=w,b.prototype={constructor:b,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(y),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(i,n){return g.type="throw",g.arg=t,e.next=i,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var r=this.tryEntries[o],g=r.completion;if("root"===r.tryLoc)return n("end");if(r.tryLoc<=this.prev){var s=i.call(r,"catchLoc"),a=i.call(r,"finallyLoc");if(s&&a){if(this.prev<r.catchLoc)return n(r.catchLoc,!0);if(this.prev<r.finallyLoc)return n(r.finallyLoc)}else if(s){if(this.prev<r.catchLoc)return n(r.catchLoc,!0)}else{if(!a)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return n(r.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&i.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var r=o;break}}r&&("break"===t||"continue"===t)&&r.tryLoc<=e&&e<=r.finallyLoc&&(r=null);var g=r?r.completion:{};return g.type=t,g.arg=e,r?(this.method="next",this.next=r.finallyLoc,A):this.complete(g)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),A},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),y(i),A}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var n=i.completion;if("throw"===n.type){var o=n.arg;y(i)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,i){return this.delegate={iterator:w(t),resultName:e,nextLoc:i},"next"===this.method&&(this.arg=void 0),A}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}})),wC=Ir,xC=function(t,e,i,n,o,r,g,s){for(var a,A=o,C=0,I=!!g&&G(g,s,3);C<n;){if(C in i){if(a=I?I(i[C],C,e):i[C],r>0&&qe(a))A=xC(t,e,a,$t(a.length),A,r-1)-1;else{if(A>=9007199254740991)throw TypeError("Exceed the acceptable array length");t[A]=a}A++}C++}return A},kC=xC;V({target:"Array",proto:!0},{flatMap:function(t){var e,i=jt(this),n=$t(i.length);return Z(t),(e=ei(i,0)).length=kC(e,i,i,n,0,1,t,arguments.length>1?arguments[1]:void 0),e}});var _C=q("Array").flatMap,DC=Array.prototype,OC=function(t){var e=t.flatMap;return t===DC||t instanceof Array&&e===DC.flatMap?_C:e},MC=function(t){return function(e,i,n,o){Z(i);var r=jt(e),g=f(r),s=$t(r.length),a=t?s-1:0,A=t?-1:1;if(n<2)for(;;){if(a in g){o=g[a],a+=A;break}if(a+=A,t?a<0:s<=a)throw TypeError("Reduce of empty array with no initial value")}for(;t?a>=0:s>a;a+=A)a in g&&(o=i(o,g[a],a,r));return o}},TC={left:MC(!1),right:MC(!0)}.left,NC=Wn("reduce"),EC=Vn("reduce",{1:0});V({target:"Array",proto:!0,forced:!NC||!EC},{reduce:function(t){return TC(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}});var FC=q("Array").reduce,SC=Array.prototype,jC=function(t){var e=t.reduce;return t===SC||t instanceof Array&&e===SC.reduce?FC:e},BC="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),RC=new Uint8Array(16);function zC(){if(!BC)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return BC(RC)}for(var ZC=[],GC=0;GC<256;++GC)ZC[GC]=(GC+256).toString(16).substr(1);function PC(t,e,i){var n=e&&i||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var o=(t=t||{}).random||(t.rng||zC)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e)for(var r=0;r<16;++r)e[n+r]=o[r];return e||function(t,e){var i=e||0,n=ZC;return[n[t[i++]],n[t[i++]],n[t[i++]],n[t[i++]],"-",n[t[i++]],n[t[i++]],"-",n[t[i++]],n[t[i++]],"-",n[t[i++]],n[t[i++]],"-",n[t[i++]],n[t[i++]],n[t[i++]],n[t[i++]],n[t[i++]],n[t[i++]]].join("")}(o)}var LC=r((function(t,e){t.exports=function(){var e,i;function n(){return e.apply(null,arguments)}function o(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function r(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function s(t){return void 0===t}function a(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function A(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function C(t,e){var i,n=[];for(i=0;i<t.length;++i)n.push(e(t[i],i));return n}function I(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function l(t,e){for(var i in e)I(e,i)&&(t[i]=e[i]);return I(e,"toString")&&(t.toString=e.toString),I(e,"valueOf")&&(t.valueOf=e.valueOf),t}function c(t,e,i,n){return xe(t,e,i,n,!0).utc()}function h(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function u(t){if(null==t._isValid){var e=h(t),n=i.call(e.parsedDateParts,(function(t){return null!=t})),o=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n);if(t._strict&&(o=o&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return o;t._isValid=o}return t._isValid}function d(t){var e=c(NaN);return null!=t?l(h(e),t):h(e).userInvalidated=!0,e}i=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),i=e.length>>>0,n=0;n<i;n++)if(n in e&&t.call(this,e[n],n,e))return!0;return!1};var p=n.momentProperties=[];function f(t,e){var i,n,o;if(s(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),s(e._i)||(t._i=e._i),s(e._f)||(t._f=e._f),s(e._l)||(t._l=e._l),s(e._strict)||(t._strict=e._strict),s(e._tzm)||(t._tzm=e._tzm),s(e._isUTC)||(t._isUTC=e._isUTC),s(e._offset)||(t._offset=e._offset),s(e._pf)||(t._pf=h(e)),s(e._locale)||(t._locale=e._locale),p.length>0)for(i=0;i<p.length;i++)s(o=e[n=p[i]])||(t[n]=o);return t}var v=!1;function m(t){f(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===v&&(v=!0,n.updateOffset(this),v=!1)}function y(t){return t instanceof m||null!=t&&null!=t._isAMomentObject}function b(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function w(t){var e=+t,i=0;return 0!==e&&isFinite(e)&&(i=b(e)),i}function x(t,e,i){var n,o=Math.min(t.length,e.length),r=Math.abs(t.length-e.length),g=0;for(n=0;n<o;n++)(i&&t[n]!==e[n]||!i&&w(t[n])!==w(e[n]))&&g++;return g+r}function k(t){!1===n.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function _(t,e){var i=!0;return l((function(){if(null!=n.deprecationHandler&&n.deprecationHandler(null,t),i){for(var o,r=[],g=0;g<arguments.length;g++){if(o="","object"==typeof arguments[g]){for(var s in o+="\n["+g+"] ",arguments[0])o+=s+": "+arguments[0][s]+", ";o=o.slice(0,-2)}else o=arguments[g];r.push(o)}k(t+"\nArguments: "+Array.prototype.slice.call(r).join("")+"\n"+(new Error).stack),i=!1}return e.apply(this,arguments)}),e)}var D,O={};function M(t,e){null!=n.deprecationHandler&&n.deprecationHandler(t,e),O[t]||(k(e),O[t]=!0)}function T(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function N(t,e){var i,n=l({},t);for(i in e)I(e,i)&&(r(t[i])&&r(e[i])?(n[i]={},l(n[i],t[i]),l(n[i],e[i])):null!=e[i]?n[i]=e[i]:delete n[i]);for(i in t)I(t,i)&&!I(e,i)&&r(t[i])&&(n[i]=l({},n[i]));return n}function E(t){null!=t&&this.set(t)}n.suppressDeprecationWarnings=!1,n.deprecationHandler=null,D=Object.keys?Object.keys:function(t){var e,i=[];for(e in t)I(t,e)&&i.push(e);return i};var F={};function S(t,e){var i=t.toLowerCase();F[i]=F[i+"s"]=F[e]=t}function j(t){return"string"==typeof t?F[t]||F[t.toLowerCase()]:void 0}function B(t){var e,i,n={};for(i in t)I(t,i)&&(e=j(i))&&(n[e]=t[i]);return n}var R={};function z(t,e){R[t]=e}function Z(t,e,i){var n=""+Math.abs(t),o=e-n.length;return(t>=0?i?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+n}var G=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,P=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,L={},W={};function Q(t,e,i,n){var o=n;"string"==typeof n&&(o=function(){return this[n]()}),t&&(W[t]=o),e&&(W[e[0]]=function(){return Z(o.apply(this,arguments),e[1],e[2])}),i&&(W[i]=function(){return this.localeData().ordinal(o.apply(this,arguments),t)})}function U(t,e){return t.isValid()?(e=Y(e,t.localeData()),L[e]=L[e]||function(t){var e,i,n,o=t.match(G);for(e=0,i=o.length;e<i;e++)W[o[e]]?o[e]=W[o[e]]:o[e]=(n=o[e]).match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"");return function(e){var n,r="";for(n=0;n<i;n++)r+=T(o[n])?o[n].call(e,t):o[n];return r}}(e),L[e](t)):t.localeData().invalidDate()}function Y(t,e){var i=5;function n(t){return e.longDateFormat(t)||t}for(P.lastIndex=0;i>=0&&P.test(t);)t=t.replace(P,n),P.lastIndex=0,i-=1;return t}var V=/\d/,H=/\d\d/,X=/\d{3}/,J=/\d{4}/,K=/[+-]?\d{6}/,q=/\d\d?/,$=/\d\d\d\d?/,tt=/\d\d\d\d\d\d?/,et=/\d{1,3}/,it=/\d{1,4}/,nt=/[+-]?\d{1,6}/,ot=/\d+/,rt=/[+-]?\d+/,gt=/Z|[+-]\d\d:?\d\d/gi,st=/Z|[+-]\d\d(?::?\d\d)?/gi,at=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,At={};function Ct(t,e,i){At[t]=T(e)?e:function(t,n){return t&&i?i:e}}function It(t,e){return I(At,t)?At[t](e._strict,e._locale):new RegExp(lt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,i,n,o){return e||i||n||o}))))}function lt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var ct={};function ht(t,e){var i,n=e;for("string"==typeof t&&(t=[t]),a(e)&&(n=function(t,i){i[e]=w(t)}),i=0;i<t.length;i++)ct[t[i]]=n}function ut(t,e){ht(t,(function(t,i,n,o){n._w=n._w||{},e(t,n._w,n,o)}))}function dt(t,e,i){null!=e&&I(ct,t)&&ct[t](e,i._a,i,t)}function pt(t){return ft(t)?366:365}function ft(t){return t%4==0&&t%100!=0||t%400==0}Q("Y",0,0,(function(){var t=this.year();return t<=9999?""+t:"+"+t})),Q(0,["YY",2],0,(function(){return this.year()%100})),Q(0,["YYYY",4],0,"year"),Q(0,["YYYYY",5],0,"year"),Q(0,["YYYYYY",6,!0],0,"year"),S("year","y"),z("year",1),Ct("Y",rt),Ct("YY",q,H),Ct("YYYY",it,J),Ct("YYYYY",nt,K),Ct("YYYYYY",nt,K),ht(["YYYYY","YYYYYY"],0),ht("YYYY",(function(t,e){e[0]=2===t.length?n.parseTwoDigitYear(t):w(t)})),ht("YY",(function(t,e){e[0]=n.parseTwoDigitYear(t)})),ht("Y",(function(t,e){e[0]=parseInt(t,10)})),n.parseTwoDigitYear=function(t){return w(t)+(w(t)>68?1900:2e3)};var vt,mt=yt("FullYear",!0);function yt(t,e){return function(i){return null!=i?(wt(this,t,i),n.updateOffset(this,e),this):bt(this,t)}}function bt(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function wt(t,e,i){t.isValid()&&!isNaN(i)&&("FullYear"===e&&ft(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](i,t.month(),xt(i,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](i))}function xt(t,e){if(isNaN(t)||isNaN(e))return NaN;var i=function(t,e){return(t%e+e)%e}(e,12);return t+=(e-i)/12,1===i?ft(t)?29:28:31-i%7%2}vt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},Q("M",["MM",2],"Mo",(function(){return this.month()+1})),Q("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),Q("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),S("month","M"),z("month",8),Ct("M",q),Ct("MM",q,H),Ct("MMM",(function(t,e){return e.monthsShortRegex(t)})),Ct("MMMM",(function(t,e){return e.monthsRegex(t)})),ht(["M","MM"],(function(t,e){e[1]=w(t)-1})),ht(["MMM","MMMM"],(function(t,e,i,n){var o=i._locale.monthsParse(t,n,i._strict);null!=o?e[1]=o:h(i).invalidMonth=t}));var kt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,_t="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Dt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Ot(t,e,i){var n,o,r,g=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)r=c([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(r,"").toLocaleLowerCase();return i?"MMM"===e?-1!==(o=vt.call(this._shortMonthsParse,g))?o:null:-1!==(o=vt.call(this._longMonthsParse,g))?o:null:"MMM"===e?-1!==(o=vt.call(this._shortMonthsParse,g))||-1!==(o=vt.call(this._longMonthsParse,g))?o:null:-1!==(o=vt.call(this._longMonthsParse,g))||-1!==(o=vt.call(this._shortMonthsParse,g))?o:null}function Mt(t,e){var i;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=w(e);else if(!a(e=t.localeData().monthsParse(e)))return t;return i=Math.min(t.date(),xt(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,i),t}function Tt(t){return null!=t?(Mt(this,t),n.updateOffset(this,!0),this):bt(this,"Month")}var Nt=at,Et=at;function Ft(){function t(t,e){return e.length-t.length}var e,i,n=[],o=[],r=[];for(e=0;e<12;e++)i=c([2e3,e]),n.push(this.monthsShort(i,"")),o.push(this.months(i,"")),r.push(this.months(i,"")),r.push(this.monthsShort(i,""));for(n.sort(t),o.sort(t),r.sort(t),e=0;e<12;e++)n[e]=lt(n[e]),o[e]=lt(o[e]);for(e=0;e<24;e++)r[e]=lt(r[e]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function St(t,e,i,n,o,r,g){var s;return t<100&&t>=0?(s=new Date(t+400,e,i,n,o,r,g),isFinite(s.getFullYear())&&s.setFullYear(t)):s=new Date(t,e,i,n,o,r,g),s}function jt(t){var e;if(t<100&&t>=0){var i=Array.prototype.slice.call(arguments);i[0]=t+400,e=new Date(Date.UTC.apply(null,i)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)}else e=new Date(Date.UTC.apply(null,arguments));return e}function Bt(t,e,i){var n=7+e-i;return-(7+jt(t,0,n).getUTCDay()-e)%7+n-1}function Rt(t,e,i,n,o){var r,g,s=1+7*(e-1)+(7+i-n)%7+Bt(t,n,o);return s<=0?g=pt(r=t-1)+s:s>pt(t)?(r=t+1,g=s-pt(t)):(r=t,g=s),{year:r,dayOfYear:g}}function zt(t,e,i){var n,o,r=Bt(t.year(),e,i),g=Math.floor((t.dayOfYear()-r-1)/7)+1;return g<1?n=g+Zt(o=t.year()-1,e,i):g>Zt(t.year(),e,i)?(n=g-Zt(t.year(),e,i),o=t.year()+1):(o=t.year(),n=g),{week:n,year:o}}function Zt(t,e,i){var n=Bt(t,e,i),o=Bt(t+1,e,i);return(pt(t)-n+o)/7}function Gt(t,e){return t.slice(e,7).concat(t.slice(0,e))}Q("w",["ww",2],"wo","week"),Q("W",["WW",2],"Wo","isoWeek"),S("week","w"),S("isoWeek","W"),z("week",5),z("isoWeek",5),Ct("w",q),Ct("ww",q,H),Ct("W",q),Ct("WW",q,H),ut(["w","ww","W","WW"],(function(t,e,i,n){e[n.substr(0,1)]=w(t)})),Q("d",0,"do","day"),Q("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),Q("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),Q("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),Q("e",0,0,"weekday"),Q("E",0,0,"isoWeekday"),S("day","d"),S("weekday","e"),S("isoWeekday","E"),z("day",11),z("weekday",11),z("isoWeekday",11),Ct("d",q),Ct("e",q),Ct("E",q),Ct("dd",(function(t,e){return e.weekdaysMinRegex(t)})),Ct("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),Ct("dddd",(function(t,e){return e.weekdaysRegex(t)})),ut(["dd","ddd","dddd"],(function(t,e,i,n){var o=i._locale.weekdaysParse(t,n,i._strict);null!=o?e.d=o:h(i).invalidWeekday=t})),ut(["d","e","E"],(function(t,e,i,n){e[n]=w(t)}));var Pt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Lt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Wt="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function Qt(t,e,i){var n,o,r,g=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)r=c([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(r,"").toLocaleLowerCase();return i?"dddd"===e?-1!==(o=vt.call(this._weekdaysParse,g))?o:null:"ddd"===e?-1!==(o=vt.call(this._shortWeekdaysParse,g))?o:null:-1!==(o=vt.call(this._minWeekdaysParse,g))?o:null:"dddd"===e?-1!==(o=vt.call(this._weekdaysParse,g))||-1!==(o=vt.call(this._shortWeekdaysParse,g))||-1!==(o=vt.call(this._minWeekdaysParse,g))?o:null:"ddd"===e?-1!==(o=vt.call(this._shortWeekdaysParse,g))||-1!==(o=vt.call(this._weekdaysParse,g))||-1!==(o=vt.call(this._minWeekdaysParse,g))?o:null:-1!==(o=vt.call(this._minWeekdaysParse,g))||-1!==(o=vt.call(this._weekdaysParse,g))||-1!==(o=vt.call(this._shortWeekdaysParse,g))?o:null}var Ut=at,Yt=at,Vt=at;function Ht(){function t(t,e){return e.length-t.length}var e,i,n,o,r,g=[],s=[],a=[],A=[];for(e=0;e<7;e++)i=c([2e3,1]).day(e),n=this.weekdaysMin(i,""),o=this.weekdaysShort(i,""),r=this.weekdays(i,""),g.push(n),s.push(o),a.push(r),A.push(n),A.push(o),A.push(r);for(g.sort(t),s.sort(t),a.sort(t),A.sort(t),e=0;e<7;e++)s[e]=lt(s[e]),a[e]=lt(a[e]),A[e]=lt(A[e]);this._weekdaysRegex=new RegExp("^("+A.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+g.join("|")+")","i")}function Xt(){return this.hours()%12||12}function Jt(t,e){Q(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function Kt(t,e){return e._meridiemParse}Q("H",["HH",2],0,"hour"),Q("h",["hh",2],0,Xt),Q("k",["kk",2],0,(function(){return this.hours()||24})),Q("hmm",0,0,(function(){return""+Xt.apply(this)+Z(this.minutes(),2)})),Q("hmmss",0,0,(function(){return""+Xt.apply(this)+Z(this.minutes(),2)+Z(this.seconds(),2)})),Q("Hmm",0,0,(function(){return""+this.hours()+Z(this.minutes(),2)})),Q("Hmmss",0,0,(function(){return""+this.hours()+Z(this.minutes(),2)+Z(this.seconds(),2)})),Jt("a",!0),Jt("A",!1),S("hour","h"),z("hour",13),Ct("a",Kt),Ct("A",Kt),Ct("H",q),Ct("h",q),Ct("k",q),Ct("HH",q,H),Ct("hh",q,H),Ct("kk",q,H),Ct("hmm",$),Ct("hmmss",tt),Ct("Hmm",$),Ct("Hmmss",tt),ht(["H","HH"],3),ht(["k","kk"],(function(t,e,i){var n=w(t);e[3]=24===n?0:n})),ht(["a","A"],(function(t,e,i){i._isPm=i._locale.isPM(t),i._meridiem=t})),ht(["h","hh"],(function(t,e,i){e[3]=w(t),h(i).bigHour=!0})),ht("hmm",(function(t,e,i){var n=t.length-2;e[3]=w(t.substr(0,n)),e[4]=w(t.substr(n)),h(i).bigHour=!0})),ht("hmmss",(function(t,e,i){var n=t.length-4,o=t.length-2;e[3]=w(t.substr(0,n)),e[4]=w(t.substr(n,2)),e[5]=w(t.substr(o)),h(i).bigHour=!0})),ht("Hmm",(function(t,e,i){var n=t.length-2;e[3]=w(t.substr(0,n)),e[4]=w(t.substr(n))})),ht("Hmmss",(function(t,e,i){var n=t.length-4,o=t.length-2;e[3]=w(t.substr(0,n)),e[4]=w(t.substr(n,2)),e[5]=w(t.substr(o))}));var qt,$t=yt("Hours",!0),te={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:_t,monthsShort:Dt,week:{dow:0,doy:6},weekdays:Pt,weekdaysMin:Wt,weekdaysShort:Lt,meridiemParse:/[ap]\.?m?\.?/i},ee={},ie={};function ne(t){return t?t.toLowerCase().replace("_","-"):t}function oe(e){var i=null;if(!ee[e]&&t&&t.exports)try{i=qt._abbr,g(),re(i)}catch(t){}return ee[e]}function re(t,e){var i;return t&&((i=s(e)?se(t):ge(t,e))?qt=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),qt._abbr}function ge(t,e){if(null!==e){var i,n=te;if(e.abbr=t,null!=ee[t])M("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=ee[t]._config;else if(null!=e.parentLocale)if(null!=ee[e.parentLocale])n=ee[e.parentLocale]._config;else{if(null==(i=oe(e.parentLocale)))return ie[e.parentLocale]||(ie[e.parentLocale]=[]),ie[e.parentLocale].push({name:t,config:e}),null;n=i._config}return ee[t]=new E(N(n,e)),ie[t]&&ie[t].forEach((function(t){ge(t.name,t.config)})),re(t),ee[t]}return delete ee[t],null}function se(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return qt;if(!o(t)){if(e=oe(t))return e;t=[t]}return function(t){for(var e,i,n,o,r=0;r<t.length;){for(e=(o=ne(t[r]).split("-")).length,i=(i=ne(t[r+1]))?i.split("-"):null;e>0;){if(n=oe(o.slice(0,e).join("-")))return n;if(i&&i.length>=e&&x(o,i,!0)>=e-1)break;e--}r++}return qt}(t)}function ae(t){var e,i=t._a;return i&&-2===h(t).overflow&&(e=i[1]<0||i[1]>11?1:i[2]<1||i[2]>xt(i[0],i[1])?2:i[3]<0||i[3]>24||24===i[3]&&(0!==i[4]||0!==i[5]||0!==i[6])?3:i[4]<0||i[4]>59?4:i[5]<0||i[5]>59?5:i[6]<0||i[6]>999?6:-1,h(t)._overflowDayOfYear&&(e<0||e>2)&&(e=2),h(t)._overflowWeeks&&-1===e&&(e=7),h(t)._overflowWeekday&&-1===e&&(e=8),h(t).overflow=e),t}function Ae(t,e,i){return null!=t?t:null!=e?e:i}function Ce(t){var e,i,o,r,g,s=[];if(!t._d){for(o=function(t){var e=new Date(n.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[2]&&null==t._a[1]&&function(t){var e,i,n,o,r,g,s,a;if(null!=(e=t._w).GG||null!=e.W||null!=e.E)r=1,g=4,i=Ae(e.GG,t._a[0],zt(ke(),1,4).year),n=Ae(e.W,1),((o=Ae(e.E,1))<1||o>7)&&(a=!0);else{r=t._locale._week.dow,g=t._locale._week.doy;var A=zt(ke(),r,g);i=Ae(e.gg,t._a[0],A.year),n=Ae(e.w,A.week),null!=e.d?((o=e.d)<0||o>6)&&(a=!0):null!=e.e?(o=e.e+r,(e.e<0||e.e>6)&&(a=!0)):o=r}n<1||n>Zt(i,r,g)?h(t)._overflowWeeks=!0:null!=a?h(t)._overflowWeekday=!0:(s=Rt(i,n,o,r,g),t._a[0]=s.year,t._dayOfYear=s.dayOfYear)}(t),null!=t._dayOfYear&&(g=Ae(t._a[0],o[0]),(t._dayOfYear>pt(g)||0===t._dayOfYear)&&(h(t)._overflowDayOfYear=!0),i=jt(g,0,t._dayOfYear),t._a[1]=i.getUTCMonth(),t._a[2]=i.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=s[e]=o[e];for(;e<7;e++)t._a[e]=s[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[3]&&0===t._a[4]&&0===t._a[5]&&0===t._a[6]&&(t._nextDay=!0,t._a[3]=0),t._d=(t._useUTC?jt:St).apply(null,s),r=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[3]=24),t._w&&void 0!==t._w.d&&t._w.d!==r&&(h(t).weekdayMismatch=!0)}}var Ie=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,le=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ce=/Z|[+-]\d\d(?::?\d\d)?/,he=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],ue=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],de=/^\/?Date\((\-?\d+)/i;function pe(t){var e,i,n,o,r,g,s=t._i,a=Ie.exec(s)||le.exec(s);if(a){for(h(t).iso=!0,e=0,i=he.length;e<i;e++)if(he[e][1].exec(a[1])){o=he[e][0],n=!1!==he[e][2];break}if(null==o)return void(t._isValid=!1);if(a[3]){for(e=0,i=ue.length;e<i;e++)if(ue[e][1].exec(a[3])){r=(a[2]||" ")+ue[e][0];break}if(null==r)return void(t._isValid=!1)}if(!n&&null!=r)return void(t._isValid=!1);if(a[4]){if(!ce.exec(a[4]))return void(t._isValid=!1);g="Z"}t._f=o+(r||"")+(g||""),be(t)}else t._isValid=!1}var fe=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function ve(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}var me={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function ye(t){var e,i,n,o,r,g,s,a=fe.exec(t._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(a){var A=(e=a[4],i=a[3],n=a[2],o=a[5],r=a[6],g=a[7],s=[ve(e),Dt.indexOf(i),parseInt(n,10),parseInt(o,10),parseInt(r,10)],g&&s.push(parseInt(g,10)),s);if(!function(t,e,i){return!t||Lt.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(h(i).weekdayMismatch=!0,i._isValid=!1,!1)}(a[1],A,t))return;t._a=A,t._tzm=function(t,e,i){if(t)return me[t];if(e)return 0;var n=parseInt(i,10),o=n%100;return(n-o)/100*60+o}(a[8],a[9],a[10]),t._d=jt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),h(t).rfc2822=!0}else t._isValid=!1}function be(t){if(t._f!==n.ISO_8601)if(t._f!==n.RFC_2822){t._a=[],h(t).empty=!0;var e,i,o,r,g,s=""+t._i,a=s.length,A=0;for(o=Y(t._f,t._locale).match(G)||[],e=0;e<o.length;e++)r=o[e],(i=(s.match(It(r,t))||[])[0])&&((g=s.substr(0,s.indexOf(i))).length>0&&h(t).unusedInput.push(g),s=s.slice(s.indexOf(i)+i.length),A+=i.length),W[r]?(i?h(t).empty=!1:h(t).unusedTokens.push(r),dt(r,i,t)):t._strict&&!i&&h(t).unusedTokens.push(r);h(t).charsLeftOver=a-A,s.length>0&&h(t).unusedInput.push(s),t._a[3]<=12&&!0===h(t).bigHour&&t._a[3]>0&&(h(t).bigHour=void 0),h(t).parsedDateParts=t._a.slice(0),h(t).meridiem=t._meridiem,t._a[3]=function(t,e,i){var n;return null==i?e:null!=t.meridiemHour?t.meridiemHour(e,i):null!=t.isPM?((n=t.isPM(i))&&e<12&&(e+=12),n||12!==e||(e=0),e):e}(t._locale,t._a[3],t._meridiem),Ce(t),ae(t)}else ye(t);else pe(t)}function we(t){var e=t._i,i=t._f;return t._locale=t._locale||se(t._l),null===e||void 0===i&&""===e?d({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),y(e)?new m(ae(e)):(A(e)?t._d=e:o(i)?function(t){var e,i,n,o,r;if(0===t._f.length)return h(t).invalidFormat=!0,void(t._d=new Date(NaN));for(o=0;o<t._f.length;o++)r=0,e=f({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[o],be(e),u(e)&&(r+=h(e).charsLeftOver,r+=10*h(e).unusedTokens.length,h(e).score=r,(null==n||r<n)&&(n=r,i=e));l(t,i||e)}(t):i?be(t):function(t){var e=t._i;s(e)?t._d=new Date(n.now()):A(e)?t._d=new Date(e.valueOf()):"string"==typeof e?function(t){var e=de.exec(t._i);null===e?(pe(t),!1===t._isValid&&(delete t._isValid,ye(t),!1===t._isValid&&(delete t._isValid,n.createFromInputFallback(t)))):t._d=new Date(+e[1])}(t):o(e)?(t._a=C(e.slice(0),(function(t){return parseInt(t,10)})),Ce(t)):r(e)?function(t){if(!t._d){var e=B(t._i);t._a=C([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],(function(t){return t&&parseInt(t,10)})),Ce(t)}}(t):a(e)?t._d=new Date(e):n.createFromInputFallback(t)}(t),u(t)||(t._d=null),t))}function xe(t,e,i,n,g){var s,a={};return!0!==i&&!1!==i||(n=i,i=void 0),(r(t)&&function(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(t.hasOwnProperty(e))return!1;return!0}(t)||o(t)&&0===t.length)&&(t=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=g,a._l=i,a._i=t,a._f=e,a._strict=n,(s=new m(ae(we(a))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function ke(t,e,i,n){return xe(t,e,i,n,!1)}n.createFromInputFallback=_("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),n.ISO_8601=function(){},n.RFC_2822=function(){};var _e=_("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=ke.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:d()})),De=_("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=ke.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:d()}));function Oe(t,e){var i,n;if(1===e.length&&o(e[0])&&(e=e[0]),!e.length)return ke();for(i=e[0],n=1;n<e.length;++n)e[n].isValid()&&!e[n][t](i)||(i=e[n]);return i}var Me=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Te(t){var e=B(t),i=e.year||0,n=e.quarter||0,o=e.month||0,r=e.week||e.isoWeek||0,g=e.day||0,s=e.hour||0,a=e.minute||0,A=e.second||0,C=e.millisecond||0;this._isValid=function(t){for(var e in t)if(-1===vt.call(Me,e)||null!=t[e]&&isNaN(t[e]))return!1;for(var i=!1,n=0;n<Me.length;++n)if(t[Me[n]]){if(i)return!1;parseFloat(t[Me[n]])!==w(t[Me[n]])&&(i=!0)}return!0}(e),this._milliseconds=+C+1e3*A+6e4*a+1e3*s*60*60,this._days=+g+7*r,this._months=+o+3*n+12*i,this._data={},this._locale=se(),this._bubble()}function Ne(t){return t instanceof Te}function Ee(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Fe(t,e){Q(t,0,0,(function(){var t=this.utcOffset(),i="+";return t<0&&(t=-t,i="-"),i+Z(~~(t/60),2)+e+Z(~~t%60,2)}))}Fe("Z",":"),Fe("ZZ",""),Ct("Z",st),Ct("ZZ",st),ht(["Z","ZZ"],(function(t,e,i){i._useUTC=!0,i._tzm=je(st,t)}));var Se=/([\+\-]|\d\d)/gi;function je(t,e){var i=(e||"").match(t);if(null===i)return null;var n=((i[i.length-1]||[])+"").match(Se)||["-",0,0],o=60*n[1]+w(n[2]);return 0===o?0:"+"===n[0]?o:-o}function Be(t,e){var i,o;return e._isUTC?(i=e.clone(),o=(y(t)||A(t)?t.valueOf():ke(t).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+o),n.updateOffset(i,!1),i):ke(t).local()}function Re(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function ze(){return!!this.isValid()&&this._isUTC&&0===this._offset}n.updateOffset=function(){};var Ze=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Ge=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Pe(t,e){var i,n,o,r,g,s,A=t,C=null;return Ne(t)?A={ms:t._milliseconds,d:t._days,M:t._months}:a(t)?(A={},e?A[e]=t:A.milliseconds=t):(C=Ze.exec(t))?(i="-"===C[1]?-1:1,A={y:0,d:w(C[2])*i,h:w(C[3])*i,m:w(C[4])*i,s:w(C[5])*i,ms:w(Ee(1e3*C[6]))*i}):(C=Ge.exec(t))?(i="-"===C[1]?-1:1,A={y:Le(C[2],i),M:Le(C[3],i),w:Le(C[4],i),d:Le(C[5],i),h:Le(C[6],i),m:Le(C[7],i),s:Le(C[8],i)}):null==A?A={}:"object"==typeof A&&("from"in A||"to"in A)&&(r=ke(A.from),g=ke(A.to),o=r.isValid()&&g.isValid()?(g=Be(g,r),r.isBefore(g)?s=We(r,g):((s=We(g,r)).milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0},(A={}).ms=o.milliseconds,A.M=o.months),n=new Te(A),Ne(t)&&I(t,"_locale")&&(n._locale=t._locale),n}function Le(t,e){var i=t&&parseFloat(t.replace(",","."));return(isNaN(i)?0:i)*e}function We(t,e){var i={};return i.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(i.months,"M").isAfter(e)&&--i.months,i.milliseconds=+e-+t.clone().add(i.months,"M"),i}function Qe(t,e){return function(i,n){var o;return null===n||isNaN(+n)||(M(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=i,i=n,n=o),Ue(this,Pe(i="string"==typeof i?+i:i,n),t),this}}function Ue(t,e,i,o){var r=e._milliseconds,g=Ee(e._days),s=Ee(e._months);t.isValid()&&(o=null==o||o,s&&Mt(t,bt(t,"Month")+s*i),g&&wt(t,"Date",bt(t,"Date")+g*i),r&&t._d.setTime(t._d.valueOf()+r*i),o&&n.updateOffset(t,g||s))}Pe.fn=Te.prototype,Pe.invalid=function(){return Pe(NaN)};var Ye=Qe(1,"add"),Ve=Qe(-1,"subtract");function He(t,e){var i=12*(e.year()-t.year())+(e.month()-t.month()),n=t.clone().add(i,"months");return-(i+(e-n<0?(e-n)/(n-t.clone().add(i-1,"months")):(e-n)/(t.clone().add(i+1,"months")-n)))||0}function Xe(t){var e;return void 0===t?this._locale._abbr:(null!=(e=se(t))&&(this._locale=e),this)}n.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",n.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Je=_("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function Ke(){return this._locale}function qe(t,e){return(t%e+e)%e}function $e(t,e,i){return t<100&&t>=0?new Date(t+400,e,i)-126227808e5:new Date(t,e,i).valueOf()}function ti(t,e,i){return t<100&&t>=0?Date.UTC(t+400,e,i)-126227808e5:Date.UTC(t,e,i)}function ei(t,e){Q(0,[t,t.length],0,e)}function ii(t,e,i,n,o){var r;return null==t?zt(this,n,o).year:(e>(r=Zt(t,n,o))&&(e=r),ni.call(this,t,e,i,n,o))}function ni(t,e,i,n,o){var r=Rt(t,e,i,n,o),g=jt(r.year,0,r.dayOfYear);return this.year(g.getUTCFullYear()),this.month(g.getUTCMonth()),this.date(g.getUTCDate()),this}Q(0,["gg",2],0,(function(){return this.weekYear()%100})),Q(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),ei("gggg","weekYear"),ei("ggggg","weekYear"),ei("GGGG","isoWeekYear"),ei("GGGGG","isoWeekYear"),S("weekYear","gg"),S("isoWeekYear","GG"),z("weekYear",1),z("isoWeekYear",1),Ct("G",rt),Ct("g",rt),Ct("GG",q,H),Ct("gg",q,H),Ct("GGGG",it,J),Ct("gggg",it,J),Ct("GGGGG",nt,K),Ct("ggggg",nt,K),ut(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,i,n){e[n.substr(0,2)]=w(t)})),ut(["gg","GG"],(function(t,e,i,o){e[o]=n.parseTwoDigitYear(t)})),Q("Q",0,"Qo","quarter"),S("quarter","Q"),z("quarter",7),Ct("Q",V),ht("Q",(function(t,e){e[1]=3*(w(t)-1)})),Q("D",["DD",2],"Do","date"),S("date","D"),z("date",9),Ct("D",q),Ct("DD",q,H),Ct("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),ht(["D","DD"],2),ht("Do",(function(t,e){e[2]=w(t.match(q)[0])}));var oi=yt("Date",!0);Q("DDD",["DDDD",3],"DDDo","dayOfYear"),S("dayOfYear","DDD"),z("dayOfYear",4),Ct("DDD",et),Ct("DDDD",X),ht(["DDD","DDDD"],(function(t,e,i){i._dayOfYear=w(t)})),Q("m",["mm",2],0,"minute"),S("minute","m"),z("minute",14),Ct("m",q),Ct("mm",q,H),ht(["m","mm"],4);var ri=yt("Minutes",!1);Q("s",["ss",2],0,"second"),S("second","s"),z("second",15),Ct("s",q),Ct("ss",q,H),ht(["s","ss"],5);var gi,si=yt("Seconds",!1);for(Q("S",0,0,(function(){return~~(this.millisecond()/100)})),Q(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),Q(0,["SSS",3],0,"millisecond"),Q(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),Q(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),Q(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),Q(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),Q(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),Q(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),S("millisecond","ms"),z("millisecond",16),Ct("S",et,V),Ct("SS",et,H),Ct("SSS",et,X),gi="SSSS";gi.length<=9;gi+="S")Ct(gi,ot);function ai(t,e){e[6]=w(1e3*("0."+t))}for(gi="S";gi.length<=9;gi+="S")ht(gi,ai);var Ai=yt("Milliseconds",!1);Q("z",0,0,"zoneAbbr"),Q("zz",0,0,"zoneName");var Ci=m.prototype;function Ii(t){return t}Ci.add=Ye,Ci.calendar=function(t,e){var i=t||ke(),o=Be(i,this).startOf("day"),r=n.calendarFormat(this,o)||"sameElse",g=e&&(T(e[r])?e[r].call(this,i):e[r]);return this.format(g||this.localeData().calendar(r,this,ke(i)))},Ci.clone=function(){return new m(this)},Ci.diff=function(t,e,i){var n,o,r;if(!this.isValid())return NaN;if(!(n=Be(t,this)).isValid())return NaN;switch(o=6e4*(n.utcOffset()-this.utcOffset()),e=j(e)){case"year":r=He(this,n)/12;break;case"month":r=He(this,n);break;case"quarter":r=He(this,n)/3;break;case"second":r=(this-n)/1e3;break;case"minute":r=(this-n)/6e4;break;case"hour":r=(this-n)/36e5;break;case"day":r=(this-n-o)/864e5;break;case"week":r=(this-n-o)/6048e5;break;default:r=this-n}return i?r:b(r)},Ci.endOf=function(t){var e;if(void 0===(t=j(t))||"millisecond"===t||!this.isValid())return this;var i=this._isUTC?ti:$e;switch(t){case"year":e=i(this.year()+1,0,1)-1;break;case"quarter":e=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=i(this.year(),this.month()+1,1)-1;break;case"week":e=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=36e5-qe(e+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":e=this._d.valueOf(),e+=6e4-qe(e,6e4)-1;break;case"second":e=this._d.valueOf(),e+=1e3-qe(e,1e3)-1}return this._d.setTime(e),n.updateOffset(this,!0),this},Ci.format=function(t){t||(t=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var e=U(this,t);return this.localeData().postformat(e)},Ci.from=function(t,e){return this.isValid()&&(y(t)&&t.isValid()||ke(t).isValid())?Pe({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Ci.fromNow=function(t){return this.from(ke(),t)},Ci.to=function(t,e){return this.isValid()&&(y(t)&&t.isValid()||ke(t).isValid())?Pe({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Ci.toNow=function(t){return this.to(ke(),t)},Ci.get=function(t){return T(this[t=j(t)])?this[t]():this},Ci.invalidAt=function(){return h(this).overflow},Ci.isAfter=function(t,e){var i=y(t)?t:ke(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=j(e)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(e).valueOf())},Ci.isBefore=function(t,e){var i=y(t)?t:ke(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=j(e)||"millisecond")?this.valueOf()<i.valueOf():this.clone().endOf(e).valueOf()<i.valueOf())},Ci.isBetween=function(t,e,i,n){var o=y(t)?t:ke(t),r=y(e)?e:ke(e);return!!(this.isValid()&&o.isValid()&&r.isValid())&&("("===(n=n||"()")[0]?this.isAfter(o,i):!this.isBefore(o,i))&&(")"===n[1]?this.isBefore(r,i):!this.isAfter(r,i))},Ci.isSame=function(t,e){var i,n=y(t)?t:ke(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=j(e)||"millisecond")?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(e).valueOf()<=i&&i<=this.clone().endOf(e).valueOf()))},Ci.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},Ci.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},Ci.isValid=function(){return u(this)},Ci.lang=Je,Ci.locale=Xe,Ci.localeData=Ke,Ci.max=De,Ci.min=_e,Ci.parsingFlags=function(){return l({},h(this))},Ci.set=function(t,e){if("object"==typeof t)for(var i=function(t){var e=[];for(var i in t)e.push({unit:i,priority:R[i]});return e.sort((function(t,e){return t.priority-e.priority})),e}(t=B(t)),n=0;n<i.length;n++)this[i[n].unit](t[i[n].unit]);else if(T(this[t=j(t)]))return this[t](e);return this},Ci.startOf=function(t){var e;if(void 0===(t=j(t))||"millisecond"===t||!this.isValid())return this;var i=this._isUTC?ti:$e;switch(t){case"year":e=i(this.year(),0,1);break;case"quarter":e=i(this.year(),this.month()-this.month()%3,1);break;case"month":e=i(this.year(),this.month(),1);break;case"week":e=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=i(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=qe(e+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":e=this._d.valueOf(),e-=qe(e,6e4);break;case"second":e=this._d.valueOf(),e-=qe(e,1e3)}return this._d.setTime(e),n.updateOffset(this,!0),this},Ci.subtract=Ve,Ci.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},Ci.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},Ci.toDate=function(){return new Date(this.valueOf())},Ci.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,i=e?this.clone().utc():this;return i.year()<0||i.year()>9999?U(i,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",U(i,"Z")):U(i,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Ci.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var i="["+t+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o=e+'[")]';return this.format(i+n+"-MM-DD[T]HH:mm:ss.SSS"+o)},Ci.toJSON=function(){return this.isValid()?this.toISOString():null},Ci.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Ci.unix=function(){return Math.floor(this.valueOf()/1e3)},Ci.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Ci.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Ci.year=mt,Ci.isLeapYear=function(){return ft(this.year())},Ci.weekYear=function(t){return ii.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Ci.isoWeekYear=function(t){return ii.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},Ci.quarter=Ci.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},Ci.month=Tt,Ci.daysInMonth=function(){return xt(this.year(),this.month())},Ci.week=Ci.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},Ci.isoWeek=Ci.isoWeeks=function(t){var e=zt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},Ci.weeksInYear=function(){var t=this.localeData()._week;return Zt(this.year(),t.dow,t.doy)},Ci.isoWeeksInYear=function(){return Zt(this.year(),1,4)},Ci.date=oi,Ci.day=Ci.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=function(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-e,"d")):e},Ci.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},Ci.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=function(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7},Ci.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},Ci.hour=Ci.hours=$t,Ci.minute=Ci.minutes=ri,Ci.second=Ci.seconds=si,Ci.millisecond=Ci.milliseconds=Ai,Ci.utcOffset=function(t,e,i){var o,r=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=je(st,t)))return this}else Math.abs(t)<16&&!i&&(t*=60);return!this._isUTC&&e&&(o=Re(this)),this._offset=t,this._isUTC=!0,null!=o&&this.add(o,"m"),r!==t&&(!e||this._changeInProgress?Ue(this,Pe(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,n.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:Re(this)},Ci.utc=function(t){return this.utcOffset(0,t)},Ci.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Re(this),"m")),this},Ci.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=je(gt,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},Ci.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?ke(t).utcOffset():0,(this.utcOffset()-t)%60==0)},Ci.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Ci.isLocal=function(){return!!this.isValid()&&!this._isUTC},Ci.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Ci.isUtc=ze,Ci.isUTC=ze,Ci.zoneAbbr=function(){return this._isUTC?"UTC":""},Ci.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Ci.dates=_("dates accessor is deprecated. Use date instead.",oi),Ci.months=_("months accessor is deprecated. Use month instead",Tt),Ci.years=_("years accessor is deprecated. Use year instead",mt),Ci.zone=_("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()})),Ci.isDSTShifted=_("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var t={};if(f(t,this),(t=we(t))._a){var e=t._isUTC?c(t._a):ke(t._a);this._isDSTShifted=this.isValid()&&x(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}));var li=E.prototype;function ci(t,e,i,n){var o=se(),r=c().set(n,e);return o[i](r,t)}function hi(t,e,i){if(a(t)&&(e=t,t=void 0),t=t||"",null!=e)return ci(t,e,i,"month");var n,o=[];for(n=0;n<12;n++)o[n]=ci(t,n,i,"month");return o}function ui(t,e,i,n){"boolean"==typeof t?(a(e)&&(i=e,e=void 0),e=e||""):(i=e=t,t=!1,a(e)&&(i=e,e=void 0),e=e||"");var o,r=se(),g=t?r._week.dow:0;if(null!=i)return ci(e,(i+g)%7,n,"day");var s=[];for(o=0;o<7;o++)s[o]=ci(e,(o+g)%7,n,"day");return s}li.calendar=function(t,e,i){var n=this._calendar[t]||this._calendar.sameElse;return T(n)?n.call(e,i):n},li.longDateFormat=function(t){var e=this._longDateFormat[t],i=this._longDateFormat[t.toUpperCase()];return e||!i?e:(this._longDateFormat[t]=i.replace(/MMMM|MM|DD|dddd/g,(function(t){return t.slice(1)})),this._longDateFormat[t])},li.invalidDate=function(){return this._invalidDate},li.ordinal=function(t){return this._ordinal.replace("%d",t)},li.preparse=Ii,li.postformat=Ii,li.relativeTime=function(t,e,i,n){var o=this._relativeTime[i];return T(o)?o(t,e,i,n):o.replace(/%d/i,t)},li.pastFuture=function(t,e){var i=this._relativeTime[t>0?"future":"past"];return T(i)?i(e):i.replace(/%s/i,e)},li.set=function(t){var e,i;for(i in t)T(e=t[i])?this[i]=e:this["_"+i]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},li.months=function(t,e){return t?o(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||kt).test(e)?"format":"standalone"][t.month()]:o(this._months)?this._months:this._months.standalone},li.monthsShort=function(t,e){return t?o(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[kt.test(e)?"format":"standalone"][t.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},li.monthsParse=function(t,e,i){var n,o,r;if(this._monthsParseExact)return Ot.call(this,t,e,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(o=c([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(r="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[n]=new RegExp(r.replace(".",""),"i")),i&&"MMMM"===e&&this._longMonthsParse[n].test(t))return n;if(i&&"MMM"===e&&this._shortMonthsParse[n].test(t))return n;if(!i&&this._monthsParse[n].test(t))return n}},li.monthsRegex=function(t){return this._monthsParseExact?(I(this,"_monthsRegex")||Ft.call(this),t?this._monthsStrictRegex:this._monthsRegex):(I(this,"_monthsRegex")||(this._monthsRegex=Et),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},li.monthsShortRegex=function(t){return this._monthsParseExact?(I(this,"_monthsRegex")||Ft.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(I(this,"_monthsShortRegex")||(this._monthsShortRegex=Nt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},li.week=function(t){return zt(t,this._week.dow,this._week.doy).week},li.firstDayOfYear=function(){return this._week.doy},li.firstDayOfWeek=function(){return this._week.dow},li.weekdays=function(t,e){var i=o(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Gt(i,this._week.dow):t?i[t.day()]:i},li.weekdaysMin=function(t){return!0===t?Gt(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},li.weekdaysShort=function(t){return!0===t?Gt(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},li.weekdaysParse=function(t,e,i){var n,o,r;if(this._weekdaysParseExact)return Qt.call(this,t,e,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(o=c([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(r="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[n]=new RegExp(r.replace(".",""),"i")),i&&"dddd"===e&&this._fullWeekdaysParse[n].test(t))return n;if(i&&"ddd"===e&&this._shortWeekdaysParse[n].test(t))return n;if(i&&"dd"===e&&this._minWeekdaysParse[n].test(t))return n;if(!i&&this._weekdaysParse[n].test(t))return n}},li.weekdaysRegex=function(t){return this._weekdaysParseExact?(I(this,"_weekdaysRegex")||Ht.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(I(this,"_weekdaysRegex")||(this._weekdaysRegex=Ut),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},li.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(I(this,"_weekdaysRegex")||Ht.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(I(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Yt),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},li.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(I(this,"_weekdaysRegex")||Ht.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(I(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Vt),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},li.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},li.meridiem=function(t,e,i){return t>11?i?"pm":"PM":i?"am":"AM"},re("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===w(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),n.lang=_("moment.lang is deprecated. Use moment.locale instead.",re),n.langData=_("moment.langData is deprecated. Use moment.localeData instead.",se);var di=Math.abs;function pi(t,e,i,n){var o=Pe(e,i);return t._milliseconds+=n*o._milliseconds,t._days+=n*o._days,t._months+=n*o._months,t._bubble()}function fi(t){return t<0?Math.floor(t):Math.ceil(t)}function vi(t){return 4800*t/146097}function mi(t){return 146097*t/4800}function yi(t){return function(){return this.as(t)}}var bi=yi("ms"),wi=yi("s"),xi=yi("m"),ki=yi("h"),_i=yi("d"),Di=yi("w"),Oi=yi("M"),Mi=yi("Q"),Ti=yi("y");function Ni(t){return function(){return this.isValid()?this._data[t]:NaN}}var Ei=Ni("milliseconds"),Fi=Ni("seconds"),Si=Ni("minutes"),ji=Ni("hours"),Bi=Ni("days"),Ri=Ni("months"),zi=Ni("years"),Zi=Math.round,Gi={ss:44,s:45,m:45,h:22,d:26,M:11};function Pi(t,e,i,n,o){return o.relativeTime(e||1,!!i,t,n)}function Li(t,e,i){var n=Pe(t).abs(),o=Zi(n.as("s")),r=Zi(n.as("m")),g=Zi(n.as("h")),s=Zi(n.as("d")),a=Zi(n.as("M")),A=Zi(n.as("y")),C=o<=Gi.ss&&["s",o]||o<Gi.s&&["ss",o]||r<=1&&["m"]||r<Gi.m&&["mm",r]||g<=1&&["h"]||g<Gi.h&&["hh",g]||s<=1&&["d"]||s<Gi.d&&["dd",s]||a<=1&&["M"]||a<Gi.M&&["MM",a]||A<=1&&["y"]||["yy",A];return C[2]=e,C[3]=+t>0,C[4]=i,Pi.apply(null,C)}var Wi=Math.abs;function Qi(t){return(t>0)-(t<0)||+t}function Ui(){if(!this.isValid())return this.localeData().invalidDate();var t,e,i=Wi(this._milliseconds)/1e3,n=Wi(this._days),o=Wi(this._months);t=b(i/60),e=b(t/60),i%=60,t%=60;var r=b(o/12),g=o%=12,s=n,a=e,A=t,C=i?i.toFixed(3).replace(/\.?0+$/,""):"",I=this.asSeconds();if(!I)return"P0D";var l=I<0?"-":"",c=Qi(this._months)!==Qi(I)?"-":"",h=Qi(this._days)!==Qi(I)?"-":"",u=Qi(this._milliseconds)!==Qi(I)?"-":"";return l+"P"+(r?c+r+"Y":"")+(g?c+g+"M":"")+(s?h+s+"D":"")+(a||A||C?"T":"")+(a?u+a+"H":"")+(A?u+A+"M":"")+(C?u+C+"S":"")}var Yi=Te.prototype;return Yi.isValid=function(){return this._isValid},Yi.abs=function(){var t=this._data;return this._milliseconds=di(this._milliseconds),this._days=di(this._days),this._months=di(this._months),t.milliseconds=di(t.milliseconds),t.seconds=di(t.seconds),t.minutes=di(t.minutes),t.hours=di(t.hours),t.months=di(t.months),t.years=di(t.years),this},Yi.add=function(t,e){return pi(this,t,e,1)},Yi.subtract=function(t,e){return pi(this,t,e,-1)},Yi.as=function(t){if(!this.isValid())return NaN;var e,i,n=this._milliseconds;if("month"===(t=j(t))||"quarter"===t||"year"===t)switch(e=this._days+n/864e5,i=this._months+vi(e),t){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(e=this._days+Math.round(mi(this._months)),t){case"week":return e/7+n/6048e5;case"day":return e+n/864e5;case"hour":return 24*e+n/36e5;case"minute":return 1440*e+n/6e4;case"second":return 86400*e+n/1e3;case"millisecond":return Math.floor(864e5*e)+n;default:throw new Error("Unknown unit "+t)}},Yi.asMilliseconds=bi,Yi.asSeconds=wi,Yi.asMinutes=xi,Yi.asHours=ki,Yi.asDays=_i,Yi.asWeeks=Di,Yi.asMonths=Oi,Yi.asQuarters=Mi,Yi.asYears=Ti,Yi.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*w(this._months/12):NaN},Yi._bubble=function(){var t,e,i,n,o,r=this._milliseconds,g=this._days,s=this._months,a=this._data;return r>=0&&g>=0&&s>=0||r<=0&&g<=0&&s<=0||(r+=864e5*fi(mi(s)+g),g=0,s=0),a.milliseconds=r%1e3,t=b(r/1e3),a.seconds=t%60,e=b(t/60),a.minutes=e%60,i=b(e/60),a.hours=i%24,g+=b(i/24),o=b(vi(g)),s+=o,g-=fi(mi(o)),n=b(s/12),s%=12,a.days=g,a.months=s,a.years=n,this},Yi.clone=function(){return Pe(this)},Yi.get=function(t){return t=j(t),this.isValid()?this[t+"s"]():NaN},Yi.milliseconds=Ei,Yi.seconds=Fi,Yi.minutes=Si,Yi.hours=ji,Yi.days=Bi,Yi.weeks=function(){return b(this.days()/7)},Yi.months=Ri,Yi.years=zi,Yi.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),i=Li(this,!t,e);return t&&(i=e.pastFuture(+this,i)),e.postformat(i)},Yi.toISOString=Ui,Yi.toString=Ui,Yi.toJSON=Ui,Yi.locale=Xe,Yi.localeData=Ke,Yi.toIsoString=_("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ui),Yi.lang=Je,Q("X",0,0,"unix"),Q("x",0,0,"valueOf"),Ct("x",rt),Ct("X",/[+-]?\d+(\.\d{1,3})?/),ht("X",(function(t,e,i){i._d=new Date(1e3*parseFloat(t,10))})),ht("x",(function(t,e,i){i._d=new Date(w(t))})),n.version="2.24.0",e=ke,n.fn=Ci,n.min=function(){var t=[].slice.call(arguments,0);return Oe("isBefore",t)},n.max=function(){var t=[].slice.call(arguments,0);return Oe("isAfter",t)},n.now=function(){return Date.now?Date.now():+new Date},n.utc=c,n.unix=function(t){return ke(1e3*t)},n.months=function(t,e){return hi(t,e,"months")},n.isDate=A,n.locale=re,n.invalid=d,n.duration=Pe,n.isMoment=y,n.weekdays=function(t,e,i){return ui(t,e,i,"weekdays")},n.parseZone=function(){return ke.apply(null,arguments).parseZone()},n.localeData=se,n.isDuration=Ne,n.monthsShort=function(t,e){return hi(t,e,"monthsShort")},n.weekdaysMin=function(t,e,i){return ui(t,e,i,"weekdaysMin")},n.defineLocale=ge,n.updateLocale=function(t,e){if(null!=e){var i,n,o=te;null!=(n=oe(t))&&(o=n._config),(i=new E(e=N(o,e))).parentLocale=ee[t],ee[t]=i,re(t)}else null!=ee[t]&&(null!=ee[t].parentLocale?ee[t]=ee[t].parentLocale:null!=ee[t]&&delete ee[t]);return ee[t]},n.locales=function(){return D(ee)},n.weekdaysShort=function(t,e,i){return ui(t,e,i,"weekdaysShort")},n.normalizeUnits=j,n.relativeTimeRounding=function(t){return void 0===t?Zi:"function"==typeof t&&(Zi=t,!0)},n.relativeTimeThreshold=function(t,e){return void 0!==Gi[t]&&(void 0===e?Gi[t]:(Gi[t]=e,"s"===t&&(Gi.ss=e-1),!0))},n.calendarFormat=function(t,e){var i=t.diff(e,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"},n.prototype=Ci,n.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},n}()}));function WC(t,e){var i=En(t);if(xn){var n=xn(t);e&&(n=wo(n).call(n,(function(e){return wn(t,e).enumerable}))),i.push.apply(i,n)}return i}function QC(t){var e=function(){if("undefined"==typeof Reflect||!wA)return!1;if(wA.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wA(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=XA(t);if(e){var o=XA(this).constructor;i=wA(n,arguments,o)}else i=n.apply(this,arguments);return VA(this,i)}}function UC(t){if(void 0===nn||null==Ke(t)){if(gr(t)||(t=function(t,e){var i;if(!t)return;if("string"==typeof t)return YC(t,e);var n=Ho(i=Object.prototype.toString.call(t)).call(i,8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return hn(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return YC(t,e)}(t))){var e=0,i=function(){};return{s:i,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:i}}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 n,o,r=!0,g=!1;return{s:function(){n=Je(t)},n:function(){var t=n.next();return r=t.done,t},e:function(t){g=!0,o=t},f:function(){try{r||null==n.return||n.return()}finally{if(g)throw o}}}}function YC(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}var VC=function(){function t(e,i,n){var o,r,g;qa(this,t),this._source=e,this._transformers=i,this._target=n,this._listeners={add:et(o=this._add).call(o,this),remove:et(r=this._remove).call(r,this),update:et(g=this._update).call(g,this)}}return tA(t,[{key:"all",value:function(){return this._target.update(this._transformItems(this._source.get())),this}},{key:"start",value:function(){return this._source.on("add",this._listeners.add),this._source.on("remove",this._listeners.remove),this._source.on("update",this._listeners.update),this}},{key:"stop",value:function(){return this._source.off("add",this._listeners.add),this._source.off("remove",this._listeners.remove),this._source.off("update",this._listeners.update),this}},{key:"_transformItems",value:function(t){var e;return jC(e=this._transformers).call(e,(function(t,e){return e(t)}),t)}},{key:"_add",value:function(t,e){null!=e&&this._target.add(this._transformItems(this._source.get(e.items)))}},{key:"_update",value:function(t,e){null!=e&&this._target.update(this._transformItems(this._source.get(e.items)))}},{key:"_remove",value:function(t,e){null!=e&&this._target.remove(this._transformItems(e.oldData))}}]),t}(),HC=function(){function t(e){qa(this,t),this._source=e,this._transformers=[]}return tA(t,[{key:"filter",value:function(t){return this._transformers.push((function(e){return wo(e).call(e,t)})),this}},{key:"map",value:function(t){return this._transformers.push((function(e){return so(e).call(e,t)})),this}},{key:"flatMap",value:function(t){return this._transformers.push((function(e){return OC(e).call(e,t)})),this}},{key:"to",value:function(t){return new VC(this._source,this._transformers,t)}}]),t}(),XC=/^\/?Date\((-?\d+)/i;function JC(t){return LC.isMoment(t)}function KC(t,e){var i;if(void 0!==t){if(null===t)return null;if(!e)return t;if("string"!=typeof e&&!(e instanceof String))throw new Error("Type must be a string");switch(e){case"boolean":case"Boolean":return Boolean(t);case"number":case"Number":return Fr(t)&&!isNaN(Date.parse(t))?LC(t).valueOf():Number(t.valueOf());case"string":case"String":return String(t);case"Date":if(Nr(t))return new Date(t);if(t instanceof Date)return new Date(t.valueOf());if(JC(t))return new Date(t.valueOf());if(Fr(t))return(i=XC.exec(t))?new Date(Number(i[1])):LC(new Date(t)).toDate();throw new Error("Cannot convert object of type "+Pr(t)+" to type Date");case"Moment":if(Nr(t))return LC(t);if(t instanceof Date)return LC(t.valueOf());if(JC(t))return LC(t);if(Fr(t))return i=XC.exec(t),LC(i?Number(i[1]):t);throw new Error("Cannot convert object of type "+Pr(t)+" to type Date");case"ISODate":if(Nr(t))return new Date(t);if(t instanceof Date)return t.toISOString();if(JC(t))return t.toDate().toISOString();if(Fr(t))return(i=XC.exec(t))?new Date(Number(i[1])).toISOString():LC(t).format();throw new Error("Cannot convert object of type "+Pr(t)+" to type ISODate");case"ASPDate":if(Nr(t))return"/Date("+t+")/";if(t instanceof Date||JC(t))return"/Date("+t.valueOf()+")/";if(Fr(t))return"/Date("+((i=XC.exec(t))?new Date(Number(i[1])).valueOf():new Date(t).valueOf())+")/";throw new Error("Cannot convert object of type "+Pr(t)+" to type ASPDate");default:throw new Error("Unknown type ".concat(e))}}}function qC(t){return"string"==typeof t||"number"==typeof t}var $C=function(){function t(e){qa(this,t),this._queue=[],this._timeout=null,this._extended=null,this.delay=null,this.max=1/0,this.setOptions(e)}return tA(t,[{key:"setOptions",value:function(t){t&&void 0!==t.delay&&(this.delay=t.delay),t&&void 0!==t.max&&(this.max=t.max),this._flushIfNeeded()}},{key:"destroy",value:function(){if(this.flush(),this._extended){for(var t=this._extended.object,e=this._extended.methods,i=0;i<e.length;i++){var n=e[i];n.original?t[n.name]=n.original:delete t[n.name]}this._extended=null}}},{key:"replace",value:function(t,e){var i=this,n=t[e];if(!n)throw new Error("Method "+e+" undefined");t[e]=function(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];i.queue({args:e,fn:n,context:this})}}},{key:"queue",value:function(t){"function"==typeof t?this._queue.push({fn:t}):this._queue.push(t),this._flushIfNeeded()}},{key:"_flushIfNeeded",value:function(){var t=this;this._queue.length>this.max&&this.flush(),null!=this._timeout&&(clearTimeout(this._timeout),this._timeout=null),this.queue.length>0&&"number"==typeof this.delay&&(this._timeout=sA((function(){t.flush()}),this.delay))}},{key:"flush",value:function(){var t,e;eo(t=yg(e=this._queue).call(e,0)).call(t,(function(t){t.fn.apply(t.context||t.fn,t.args||[])}))}}],[{key:"extend",value:function(e,i){var n=new t(i);if(void 0!==e.flush)throw new Error("Target object already has a property flush");e.flush=function(){n.flush()};var o=[{name:"flush",original:void 0}];if(i&&i.replace)for(var r=0;r<i.replace.length;r++){var g=i.replace[r];o.push({name:g,original:e[g]}),n.replace(e,g)}return n._extended={object:e,methods:o},n}}]),t}(),tI=function(){function t(){qa(this,t),this._subscribers={"*":[],add:[],remove:[],update:[]},this.subscribe=t.prototype.on,this.unsubscribe=t.prototype.off}return tA(t,[{key:"_trigger",value:function(t,e,i){var n,o;if("*"===t)throw new Error("Cannot trigger event *");eo(n=_o(o=[]).call(o,Vo(this._subscribers[t]),Vo(this._subscribers["*"]))).call(n,(function(n){n(t,e,null!=i?i:null)}))}},{key:"on",value:function(t,e){"function"==typeof e&&this._subscribers[t].push(e)}},{key:"off",value:function(t,e){var i;this._subscribers[t]=wo(i=this._subscribers[t]).call(i,(function(t){return t!==e}))}}]),t}(),eI=function(){function t(e){qa(this,t),this._pairs=e}return tA(t,[{key:wC,value:bC.mark((function t(){var e,i,n,o,r;return bC.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=UC(this._pairs),t.prev=1,e.s();case 3:if((i=e.n()).done){t.next=9;break}return n=pr(i.value,2),o=n[0],r=n[1],t.next=7,[o,r];case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,this,[[1,11,14,17]])}))},{key:"entries",value:bC.mark((function t(){var e,i,n,o,r;return bC.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=UC(this._pairs),t.prev=1,e.s();case 3:if((i=e.n()).done){t.next=9;break}return n=pr(i.value,2),o=n[0],r=n[1],t.next=7,[o,r];case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,this,[[1,11,14,17]])}))},{key:"keys",value:bC.mark((function t(){var e,i,n,o;return bC.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=UC(this._pairs),t.prev=1,e.s();case 3:if((i=e.n()).done){t.next=9;break}return n=pr(i.value,1),o=n[0],t.next=7,o;case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,this,[[1,11,14,17]])}))},{key:"values",value:bC.mark((function t(){var e,i,n,o;return bC.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=UC(this._pairs),t.prev=1,e.s();case 3:if((i=e.n()).done){t.next=9;break}return n=pr(i.value,2),o=n[1],t.next=7,o;case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,this,[[1,11,14,17]])}))},{key:"toIdArray",value:function(){var t;return so(t=Vo(this._pairs)).call(t,(function(t){return t[0]}))}},{key:"toItemArray",value:function(){var t;return so(t=Vo(this._pairs)).call(t,(function(t){return t[1]}))}},{key:"toEntryArray",value:function(){return Vo(this._pairs)}},{key:"toObjectMap",value:function(){var t,e=Dn(null),i=UC(this._pairs);try{for(i.s();!(t=i.n()).done;){var n=pr(t.value,2),o=n[0],r=n[1];e[o]=r}}catch(t){i.e(t)}finally{i.f()}return e}},{key:"toMap",value:function(){return new yC(this._pairs)}},{key:"toIdSet",value:function(){return new mC(this.toIdArray())}},{key:"toItemSet",value:function(){return new mC(this.toItemArray())}},{key:"cache",value:function(){return new t(Vo(this._pairs))}},{key:"distinct",value:function(t){var e,i=new mC,n=UC(this._pairs);try{for(n.s();!(e=n.n()).done;){var o=pr(e.value,2),r=o[0],g=o[1];i.add(t(g,r))}}catch(t){n.e(t)}finally{n.f()}return i}},{key:"filter",value:function(e){var i=this._pairs;return new t(Mn({},wC,bC.mark((function t(){var n,o,r,g,s;return bC.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=UC(i),t.prev=1,n.s();case 3:if((o=n.n()).done){t.next=10;break}if(r=pr(o.value,2),g=r[0],s=r[1],!e(s,g)){t.next=8;break}return t.next=8,[g,s];case 8:t.next=3;break;case 10:t.next=15;break;case 12:t.prev=12,t.t0=t.catch(1),n.e(t.t0);case 15:return t.prev=15,n.f(),t.finish(15);case 18:case"end":return t.stop()}}),t,null,[[1,12,15,18]])}))))}},{key:"forEach",value:function(t){var e,i=UC(this._pairs);try{for(i.s();!(e=i.n()).done;){var n=pr(e.value,2),o=n[0];t(n[1],o)}}catch(t){i.e(t)}finally{i.f()}}},{key:"map",value:function(e){var i=this._pairs;return new t(Mn({},wC,bC.mark((function t(){var n,o,r,g,s;return bC.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=UC(i),t.prev=1,n.s();case 3:if((o=n.n()).done){t.next=9;break}return r=pr(o.value,2),g=r[0],s=r[1],t.next=7,[g,e(s,g)];case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),n.e(t.t0);case 14:return t.prev=14,n.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,null,[[1,11,14,17]])}))))}},{key:"max",value:function(t){var e=Je(this._pairs),i=e.next();if(i.done)return null;for(var n=i.value[1],o=t(i.value[1],i.value[0]);!(i=e.next()).done;){var r=pr(i.value,2),g=r[0],s=r[1],a=t(s,g);a>o&&(o=a,n=s)}return n}},{key:"min",value:function(t){var e=Je(this._pairs),i=e.next();if(i.done)return null;for(var n=i.value[1],o=t(i.value[1],i.value[0]);!(i=e.next()).done;){var r=pr(i.value,2),g=r[0],s=r[1],a=t(s,g);a<o&&(o=a,n=s)}return n}},{key:"reduce",value:function(t,e){var i,n=UC(this._pairs);try{for(n.s();!(i=n.n()).done;){var o=pr(i.value,2),r=o[0];e=t(e,o[1],r)}}catch(t){n.e(t)}finally{n.f()}return e}},{key:"sort",value:function(e){var i=this;return new t(Mn({},wC,(function(){var t;return Je(nC(t=Vo(i._pairs)).call(t,(function(t,i){var n=pr(t,2),o=n[0],r=n[1],g=pr(i,2),s=g[0],a=g[1];return e(r,a,o,s)})))})))}}]),t}(),iI=function(){console.warn("Type coercion has been deprecated. Please, use data pipes instead. See https://visjs.github.io/vis-data/data/datapipe.html#TypeCoercion for more details with working migration example.")},nI=function(t){YA(i,t);var e=QC(i);function i(t,n){var o;if(qa(this,i),o=e.call(this),t&&!gr(t)&&(n=t,t=[]),o._options=n||{},o._data=new yC,o.length=0,o._idProp=o._options.fieldId||"id",o._type={},o._options.type){iI();for(var r=En(o._options.type),g=0,s=r.length;g<s;g++){var a=r[g],A=o._options.type[a];o._type[a]="Date"==A||"ISODate"==A||"ASPDate"==A?"Date":A}}return t&&t.length&&o.add(t),o.setOptions(n),o}return tA(i,[{key:"setOptions",value:function(t){t&&void 0!==t.queue&&(!1===t.queue?this._queue&&(this._queue.destroy(),delete this._queue):(this._queue||(this._queue=$C.extend(this,{replace:["add","update","remove"]})),t.queue&&"object"===cr(t.queue)&&this._queue.setOptions(t.queue)))}},{key:"add",value:function(t,e){var i,n=this,o=[];if(gr(t)){var r=so(t).call(t,(function(t){return t[n._idProp]}));if(cA(r).call(r,(function(t){return n._data.has(t)})))throw new Error("A duplicate id was found in the parameter array.");for(var g=0,s=t.length;g<s;g++)i=this._addItem(t[g]),o.push(i)}else{if(!t||"object"!==cr(t))throw new Error("Unknown dataType");i=this._addItem(t),o.push(i)}return o.length&&this._trigger("add",{items:o},e),o}},{key:"update",value:function(t,e){var i=this,n=[],o=[],r=[],g=[],s=this._idProp,a=function(t){var e=t[s];if(null!=e&&i._data.has(e)){var a=t,A=Cr({},i._data.get(e)),C=i._updateItem(a);o.push(C),g.push(a),r.push(A)}else{var I=i._addItem(t);n.push(I)}};if(gr(t))for(var A=0,C=t.length;A<C;A++)t[A]&&"object"===cr(t[A])?a(t[A]):console.warn("Ignoring input item, which is not an object at index "+A);else{if(!t||"object"!==cr(t))throw new Error("Unknown dataType");a(t)}if(n.length&&this._trigger("add",{items:n},e),o.length){var I={items:o,oldData:r,data:g};this._trigger("update",I,e)}return _o(n).call(n,o)}},{key:"updateOnly",value:function(t,e){var i,n=this;gr(t)||(t=[t]);var o=so(i=so(t).call(t,(function(t){var e=n._data.get(t[n._idProp]);if(null==e)throw new Error("Updating non-existent items is not allowed.");return{oldData:e,update:t}}))).call(i,(function(t){var e=t.oldData,i=t.update,o=e[n._idProp],r=Gr(Gr({},e),i);return n._data.set(o,r),{id:o,oldData:e,updatedData:r}}));if(o.length){var r={items:so(o).call(o,(function(t){return t.id})),oldData:so(o).call(o,(function(t){return t.oldData})),data:so(o).call(o,(function(t){return t.updatedData}))};return this._trigger("update",r,e),r.items}return[]}},{key:"get",value:function(t,e){var i=void 0,n=void 0,o=void 0;qC(t)?(i=t,o=e):gr(t)?(n=t,o=e):o=t;var r=o&&"Object"===o.returnType?"Object":"Array",g=o&&o.type||this._options.type,s=o&&wo(o),a=[],A=null,C=null,I=null;if(null!=i)(A=this._getItem(i,g))&&s&&!s(A)&&(A=null);else if(null!=n)for(var l=0,c=n.length;l<c;l++)null==(A=this._getItem(n[l],g))||s&&!s(A)||a.push(A);else for(var h,u=0,d=(C=Vo(LA(h=this._data).call(h))).length;u<d;u++)I=C[u],null==(A=this._getItem(I,g))||s&&!s(A)||a.push(A);if(o&&o.order&&null==i&&this._sort(a,o.order),o&&o.fields){var p=o.fields;if(null!=i&&null!=A)A=this._filterFields(A,p);else for(var f=0,v=a.length;f<v;f++)a[f]=this._filterFields(a[f],p)}if("Object"==r){for(var m={},y=0,b=a.length;y<b;y++){var w=a[y];m[w[this._idProp]]=w}return m}return null!=i?A:a}},{key:"getIds",value:function(t){var e,i,n=this._data,o=t&&wo(t),r=t&&t.order,g=t&&t.type||this._options.type,s=Vo(LA(n).call(n)),a=[];if(o)if(r){i=[];for(var A=0,C=s.length;A<C;A++){var I=s[A];o(e=this._getItem(I,g))&&i.push(e)}this._sort(i,r);for(var l=0,c=i.length;l<c;l++)a.push(i[l][this._idProp])}else for(var h=0,u=s.length;h<u;h++){var d=s[h];o(e=this._getItem(d,g))&&a.push(e[this._idProp])}else if(r){i=[];for(var p=0,f=s.length;p<f;p++){var v=s[p];i.push(n.get(v))}this._sort(i,r);for(var m=0,y=i.length;m<y;m++)a.push(i[m][this._idProp])}else for(var b=0,w=s.length;b<w;b++){var x=s[b];e=n.get(x),a.push(e[this._idProp])}return a}},{key:"getDataSet",value:function(){return this}},{key:"forEach",value:function(t,e){var i=e&&wo(e),n=e&&e.type||this._options.type,o=this._data,r=Vo(LA(o).call(o));if(e&&e.order)for(var g=this.get(e),s=0,a=g.length;s<a;s++){var A=g[s];t(A,A[this._idProp])}else for(var C=0,I=r.length;C<I;C++){var l=r[C],c=this._getItem(l,n);i&&!i(c)||t(c,l)}}},{key:"map",value:function(t,e){for(var i=e&&wo(e),n=e&&e.type||this._options.type,o=[],r=this._data,g=Vo(LA(r).call(r)),s=0,a=g.length;s<a;s++){var A=g[s],C=this._getItem(A,n);i&&!i(C)||o.push(t(C,A))}return e&&e.order&&this._sort(o,e.order),o}},{key:"_filterFields",value:function(t,e){var i;return t?jC(i=gr(e)?e:En(e)).call(i,(function(e,i){return e[i]=t[i],e}),{}):t}},{key:"_sort",value:function(t,e){if("string"==typeof e){var i=e;nC(t).call(t,(function(t,e){var n=t[i],o=e[i];return n>o?1:n<o?-1:0}))}else{if("function"!=typeof e)throw new TypeError("Order must be a function or a string");nC(t).call(t,e)}}},{key:"remove",value:function(t,e){for(var i=[],n=[],o=gr(t)?t:[t],r=0,g=o.length;r<g;r++){var s=this._remove(o[r]);if(s){var a=s[this._idProp];null!=a&&(i.push(a),n.push(s))}}return i.length&&this._trigger("remove",{items:i,oldData:n},e),i}},{key:"_remove",value:function(t){var e;if(qC(t)?e=t:t&&"object"===cr(t)&&(e=t[this._idProp]),null!=e&&this._data.has(e)){var i=this._data.get(e)||null;return this._data.delete(e),--this.length,i}return null}},{key:"clear",value:function(t){for(var e,i=Vo(LA(e=this._data).call(e)),n=[],o=0,r=i.length;o<r;o++)n.push(this._data.get(i[o]));return this._data.clear(),this.length=0,this._trigger("remove",{items:i,oldData:n},t),i}},{key:"max",value:function(t){var e,i,n=null,o=null,r=UC(zA(e=this._data).call(e));try{for(r.s();!(i=r.n()).done;){var g=i.value,s=g[t];"number"==typeof s&&(null==o||s>o)&&(n=g,o=s)}}catch(t){r.e(t)}finally{r.f()}return n||null}},{key:"min",value:function(t){var e,i,n=null,o=null,r=UC(zA(e=this._data).call(e));try{for(r.s();!(i=r.n()).done;){var g=i.value,s=g[t];"number"==typeof s&&(null==o||s<o)&&(n=g,o=s)}}catch(t){r.e(t)}finally{r.f()}return n||null}},{key:"distinct",value:function(t){for(var e=this._data,i=Vo(LA(e).call(e)),n=[],o=this._options.type&&this._options.type[t]||null,r=0,g=0,s=i.length;g<s;g++){for(var a=i[g],A=e.get(a)[t],C=!1,I=0;I<r;I++)if(n[I]==A){C=!0;break}C||void 0===A||(n[r]=A,r++)}if(o)for(var l=0,c=n.length;l<c;l++)n[l]=KC(n[l],o);return n}},{key:"_addItem",value:function(t){var e=t[this._idProp];if(null!=e){if(this._data.has(e))throw new Error("Cannot add item: item with id "+e+" already exists")}else e=PC(),t[this._idProp]=e;for(var i={},n=En(t),o=0,r=n.length;o<r;o++){var g=n[o],s=this._type[g];i[g]=KC(t[g],s)}return this._data.set(e,i),++this.length,e}},{key:"_getItem",value:function(t,e){var i,n=this._data.get(t);if(!n)return null;var o=En(n);if(e){iI(),i={};for(var r=0,g=o.length;r<g;r++){var s=o[r],a=n[s];i[s]=KC(a,e[s])}}else i=function(t){for(var e=1;e<arguments.length;e++){var i,n=null!=arguments[e]?arguments[e]:{};if(e%2)eo(i=WC(Object(n),!0)).call(i,(function(e){Mn(t,e,n[e])}));else if(vn)pn(t,vn(n));else{var o;eo(o=WC(Object(n))).call(o,(function(e){dn(t,e,wn(n,e))}))}}return t}({},n);return null==i[this._idProp]&&(i[this._idProp]=n.id),i}},{key:"_updateItem",value:function(t){var e=t[this._idProp];if(null==e)throw new Error("Cannot update item: item has no id (item: "+SA(t)+")");var i=this._data.get(e);if(!i)throw new Error("Cannot update item: no item with id "+e+" found");for(var n=En(t),o=0,r=n.length;o<r;o++){var g=n[o],s=this._type[g];i[g]=KC(t[g],s)}return e}},{key:"stream",value:function(t){if(t){var e=this._data;return new eI(Mn({},wC,bC.mark((function i(){var n,o,r,g;return bC.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:n=UC(t),i.prev=1,n.s();case 3:if((o=n.n()).done){i.next=11;break}if(r=o.value,null==(g=e.get(r))){i.next=9;break}return i.next=9,[r,g];case 9:i.next=3;break;case 11:i.next=16;break;case 13:i.prev=13,i.t0=i.catch(1),n.e(i.t0);case 16:return i.prev=16,n.f(),i.finish(16);case 19:case"end":return i.stop()}}),i,null,[[1,13,16,19]])}))))}var i;return new eI(Mn({},wC,et(i=DA(this._data)).call(i,this._data)))}}]),i}(tI),oI=function(t){YA(i,t);var e=QC(i);function i(t,n){var o,r;return qa(this,i),(r=e.call(this)).length=0,r._ids=new mC,r._options=n||{},r._listener=et(o=r._onEvent).call(o,fA(r)),r.setData(t),r}return tA(i,[{key:"setData",value:function(t){if(this._data){this._data.off&&this._data.off("*",this._listener);var e=this._data.getIds({filter:wo(this._options)}),i=this._data.get(e);this._ids.clear(),this.length=0,this._trigger("remove",{items:e,oldData:i})}if(null!=t){this._data=t;for(var n=this._data.getIds({filter:wo(this._options)}),o=0,r=n.length;o<r;o++){var g=n[o];this._ids.add(g)}this.length=n.length,this._trigger("add",{items:n})}else this._data=new nI;this._data.on&&this._data.on("*",this._listener)}},{key:"refresh",value:function(){for(var t=this._data.getIds({filter:wo(this._options)}),e=Vo(this._ids),i={},n=[],o=[],r=[],g=0,s=t.length;g<s;g++){var a=t[g];i[a]=!0,this._ids.has(a)||(n.push(a),this._ids.add(a))}for(var A=0,C=e.length;A<C;A++){var I=e[A],l=this._data.get(I);null==l?console.error("If you see this, report it please."):i[I]||(o.push(I),r.push(l),this._ids.delete(I))}this.length+=n.length-o.length,n.length&&this._trigger("add",{items:n}),o.length&&this._trigger("remove",{items:o,oldData:r})}},{key:"get",value:function(t,e){if(null==this._data)return null;var i,n=null;qC(t)||gr(t)?(n=t,i=e):i=t;var o=Cr({},this._options,i),r=wo(this._options),g=i&&wo(i);return r&&g&&(o.filter=function(t){return r(t)&&g(t)}),null==n?this._data.get(o):this._data.get(n,o)}},{key:"getIds",value:function(t){if(this._data.length){var e,i=wo(this._options),n=null!=t?wo(t):null;return e=n?i?function(t){return i(t)&&n(t)}:n:i,this._data.getIds({filter:e,order:t&&t.order})}return[]}},{key:"forEach",value:function(t,e){if(this._data){var i,n,o=wo(this._options),r=e&&wo(e);n=r?o?function(t){return o(t)&&r(t)}:r:o,eo(i=this._data).call(i,t,{filter:n,order:e&&e.order})}}},{key:"map",value:function(t,e){if(this._data){var i,n,o=wo(this._options),r=e&&wo(e);return n=r?o?function(t){return o(t)&&r(t)}:r:o,so(i=this._data).call(i,t,{filter:n,order:e&&e.order})}return[]}},{key:"getDataSet",value:function(){return this._data.getDataSet()}},{key:"stream",value:function(t){var e;return this._data.stream(t||Mn({},wC,et(e=LA(this._ids)).call(e,this._ids)))}},{key:"dispose",value:function(){var t;(null===(t=this._data)||void 0===t?void 0:t.off)&&this._data.off("*",this._listener);var e="This data view has already been disposed of.";dn(this,"_data",{get:function(){throw new Error(e)},set:function(){throw new Error(e)},configurable:!1})}},{key:"_onEvent",value:function(t,e,i){if(e&&e.items&&this._data){var n=e.items,o=[],r=[],g=[],s=[],a=[],A=[];switch(t){case"add":for(var C=0,I=n.length;C<I;C++){var l=n[C];this.get(l)&&(this._ids.add(l),o.push(l))}break;case"update":for(var c=0,h=n.length;c<h;c++){var u=n[c];this.get(u)?this._ids.has(u)?(r.push(u),a.push(e.data[c]),s.push(e.oldData[c])):(this._ids.add(u),o.push(u)):this._ids.has(u)&&(this._ids.delete(u),g.push(u),A.push(e.oldData[c]))}break;case"remove":for(var d=0,p=n.length;d<p;d++){var f=n[d];this._ids.has(f)&&(this._ids.delete(f),g.push(f),A.push(e.oldData[d]))}}this.length+=o.length-g.length,o.length&&this._trigger("add",{items:o},i),r.length&&this._trigger("update",{items:r,oldData:s,data:a},i),g.length&&this._trigger("remove",{items:g,oldData:A},i)}}}]),i}(tI),rI=Object.freeze({__proto__:null,DataSet:nI,DataStream:eI,DataView:oI,Queue:$C,createNewDataPipeFrom:function(t){return new HC(t)}}),gI=fi.f,sI=A((function(){return!Object.getOwnPropertyNames(1)}));V({target:"Object",stat:!0,forced:sI},{getOwnPropertyNames:gI});var aI=z.Object,AI=function(t){return aI.getOwnPropertyNames(t)},CI=zn.trim,II=a.parseFloat,lI=1/II(Fn+"-0")!=-1/0?function(t){var e=CI(String(t)),i=II(e);return 0===i&&"-"==e.charAt(0)?-0:i}:II;V({global:!0,forced:parseFloat!=lI},{parseFloat:lI});var cI=z.parseFloat,hI=function(){function t(){qa(this,t)}return tA(t,null,[{key:"choosify",value:function(t,e){var i=["node","edge","label"],n=!0,o=cg(e,"chosen");if("boolean"==typeof o)n=o;else if("object"===cr(o)){if(-1===rr(i).call(i,t))throw new Error("choosify: subOption '"+t+"' should be one of '"+i.join("', '")+"'");var r=cg(e,["chosen",t]);"boolean"!=typeof r&&"function"!=typeof r||(n=r)}return n}},{key:"pointInRect",value:function(t,e,i){if(t.width<=0||t.height<=0)return!1;if(void 0!==i){var n={x:e.x-i.x,y:e.y-i.y};if(0!==i.angle){var o=-i.angle;e={x:Math.cos(o)*n.x-Math.sin(o)*n.y,y:Math.sin(o)*n.x+Math.cos(o)*n.y}}else e=n}var r=t.x+t.width,g=t.y+t.width;return t.left<e.x&&r>e.x&&t.top<e.y&&g>e.y}},{key:"isValidLabel",value:function(t){return"string"==typeof t&&""!==t}},{key:"getSelfRefCoordinates",value:function(t,e,i,n){var o=n.x,r=n.y;if("function"==typeof n.distanceToBorder){var g=n.distanceToBorder(t,e),s=Math.sin(e)*g,a=Math.cos(e)*g;a===g?(o+=g,r=n.y):s===g?(o=n.x,r-=g):(o+=a,r-=s)}else n.shape.width>n.shape.height?(o=n.x+.5*n.shape.width,r=n.y-i):(o=n.x+i,r=n.y-.5*n.shape.height);return{x:o,y:r}}}]),t}(),uI=function(){function t(e){qa(this,t),this.measureText=e,this.current=0,this.width=0,this.height=0,this.lines=[]}return tA(t,[{key:"_add",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"normal";void 0===this.lines[t]&&(this.lines[t]={width:0,height:0,blocks:[]});var n=e;void 0!==e&&""!==e||(n=" ");var o=this.measureText(n,i),r=Cr({},zA(o));r.text=e,r.width=o.width,r.mod=i,void 0!==e&&""!==e||(r.width=0),this.lines[t].blocks.push(r),this.lines[t].width+=r.width}},{key:"curWidth",value:function(){var t=this.lines[this.current];return void 0===t?0:t.width}},{key:"append",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal";this._add(this.current,t,e)}},{key:"newLine",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal";this._add(this.current,t,e),this.current++}},{key:"determineLineHeights",value:function(){for(var t=0;t<this.lines.length;t++){var e=this.lines[t],i=0;if(void 0!==e.blocks)for(var n=0;n<e.blocks.length;n++){var o=e.blocks[n];i<o.height&&(i=o.height)}e.height=i}}},{key:"determineLabelSize",value:function(){for(var t=0,e=0,i=0;i<this.lines.length;i++){var n=this.lines[i];n.width>t&&(t=n.width),e+=n.height}this.width=t,this.height=e}},{key:"removeEmptyBlocks",value:function(){for(var t=[],e=0;e<this.lines.length;e++){var i=this.lines[e];if(0!==i.blocks.length&&(e!==this.lines.length-1||0!==i.width)){var n={};Cr(n,i),n.blocks=[];for(var o=void 0,r=[],g=0;g<i.blocks.length;g++){var s=i.blocks[g];0!==s.width?r.push(s):void 0===o&&(o=s)}0===r.length&&void 0!==o&&r.push(o),n.blocks=r,t.push(n)}}return t}},{key:"finalize",value:function(){this.determineLineHeights(),this.determineLabelSize();var t=this.removeEmptyBlocks();return{width:this.width,height:this.height,lines:t}}}]),t}(),dI={"<b>":/<b>/,"<i>":/<i>/,"<code>":/<code>/,"</b>":/<\/b>/,"</i>":/<\/i>/,"</code>":/<\/code>/,"*":/\*/,_:/\_/,"`":/`/,afterBold:/[^\*]/,afterItal:/[^_]/,afterMono:/[^`]/},pI=function(){function t(e){qa(this,t),this.text=e,this.bold=!1,this.ital=!1,this.mono=!1,this.spacing=!1,this.position=0,this.buffer="",this.modStack=[],this.blocks=[]}return tA(t,[{key:"mod",value:function(){return 0===this.modStack.length?"normal":this.modStack[0]}},{key:"modName",value:function(){return 0===this.modStack.length?"normal":"mono"===this.modStack[0]?"mono":this.bold&&this.ital?"boldital":this.bold?"bold":this.ital?"ital":void 0}},{key:"emitBlock",value:function(){this.spacing&&(this.add(" "),this.spacing=!1),this.buffer.length>0&&(this.blocks.push({text:this.buffer,mod:this.modName()}),this.buffer="")}},{key:"add",value:function(t){" "===t&&(this.spacing=!0),this.spacing&&(this.buffer+=" ",this.spacing=!1)," "!=t&&(this.buffer+=t)}},{key:"parseWS",value:function(t){return!!/[ \t]/.test(t)&&(this.mono?this.add(t):this.spacing=!0,!0)}},{key:"setTag",value:function(t){this.emitBlock(),this[t]=!0,this.modStack.unshift(t)}},{key:"unsetTag",value:function(t){this.emitBlock(),this[t]=!1,this.modStack.shift()}},{key:"parseStartTag",value:function(t,e){return!(this.mono||this[t]||!this.match(e))&&(this.setTag(t),!0)}},{key:"match",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.prepareRegExp(t),n=pr(i,2),o=n[0],r=n[1],g=o.test(this.text.substr(this.position,r));return g&&e&&(this.position+=r-1),g}},{key:"parseEndTag",value:function(t,e,i){var n=this.mod()===t;return!(!(n="mono"===t?n&&this.mono:n&&!this.mono)||!this.match(e))&&(void 0!==i?(this.position===this.text.length-1||this.match(i,!1))&&this.unsetTag(t):this.unsetTag(t),!0)}},{key:"replace",value:function(t,e){return!!this.match(t)&&(this.add(e),this.position+=length-1,!0)}},{key:"prepareRegExp",value:function(t){var e,i;if(t instanceof RegExp)i=t,e=1;else{var n=dI[t];i=void 0!==n?n:new RegExp(t),e=t.length}return[i,e]}}]),t}(),fI=function(){function t(e,i,n,o){var r=this;qa(this,t),this.ctx=e,this.parent=i,this.selected=n,this.hover=o;this.lines=new uI((function(t,i){if(void 0===t)return 0;var g=r.parent.getFormattingValues(e,n,o,i),s=0;""!==t&&(s=r.ctx.measureText(t).width);return{width:s,values:g}}))}return tA(t,[{key:"process",value:function(t){if(!hI.isValidLabel(t))return this.lines.finalize();var e=this.parent.fontOptions;t=(t=t.replace(/\r\n/g,"\n")).replace(/\r/g,"\n");var i=String(t).split("\n"),n=i.length;if(e.multi)for(var o=0;o<n;o++){var r=this.splitBlocks(i[o],e.multi);if(void 0!==r)if(0!==r.length){if(e.maxWdt>0)for(var g=0;g<r.length;g++){var s=r[g].mod,a=r[g].text;this.splitStringIntoLines(a,s,!0)}else for(var A=0;A<r.length;A++){var C=r[A].mod,I=r[A].text;this.lines.append(I,C)}this.lines.newLine()}else this.lines.newLine("")}else if(e.maxWdt>0)for(var l=0;l<n;l++)this.splitStringIntoLines(i[l]);else for(var c=0;c<n;c++)this.lines.newLine(i[c]);return this.lines.finalize()}},{key:"decodeMarkupSystem",value:function(t){var e="none";return"markdown"===t||"md"===t?e="markdown":!0!==t&&"html"!==t||(e="html"),e}},{key:"splitHtmlBlocks",value:function(t){for(var e=new pI(t),i=function(t){return!!/&/.test(t)&&(e.replace(e.text,"&lt;","<")||e.replace(e.text,"&amp;","&")||e.add("&"),!0)};e.position<e.text.length;){var n=e.text.charAt(e.position);e.parseWS(n)||/</.test(n)&&(e.parseStartTag("bold","<b>")||e.parseStartTag("ital","<i>")||e.parseStartTag("mono","<code>")||e.parseEndTag("bold","</b>")||e.parseEndTag("ital","</i>")||e.parseEndTag("mono","</code>"))||i(n)||e.add(n),e.position++}return e.emitBlock(),e.blocks}},{key:"splitMarkdownBlocks",value:function(t){for(var e=this,i=new pI(t),n=!0,o=function(t){return!!/\\/.test(t)&&(i.position<e.text.length+1&&(i.position++,t=e.text.charAt(i.position),/ \t/.test(t)?i.spacing=!0:(i.add(t),n=!1)),!0)};i.position<i.text.length;){var r=i.text.charAt(i.position);i.parseWS(r)||o(r)||(n||i.spacing)&&(i.parseStartTag("bold","*")||i.parseStartTag("ital","_")||i.parseStartTag("mono","`"))||i.parseEndTag("bold","*","afterBold")||i.parseEndTag("ital","_","afterItal")||i.parseEndTag("mono","`","afterMono")||(i.add(r),n=!1),i.position++}return i.emitBlock(),i.blocks}},{key:"splitBlocks",value:function(t,e){var i=this.decodeMarkupSystem(e);return"none"===i?[{text:t,mod:"normal"}]:"markdown"===i?this.splitMarkdownBlocks(t):"html"===i?this.splitHtmlBlocks(t):void 0}},{key:"overMaxWidth",value:function(t){var e=this.ctx.measureText(t).width;return this.lines.curWidth()+e>this.parent.fontOptions.maxWdt}},{key:"getLongestFit",value:function(t){for(var e="",i=0;i<t.length;){var n=e+(""===e?"":" ")+t[i];if(this.overMaxWidth(n))break;e=n,i++}return i}},{key:"getLongestFitWord",value:function(t){for(var e=0;e<t.length&&!this.overMaxWidth(Ho(t).call(t,0,e));)e++;return e}},{key:"splitStringIntoLines",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"normal",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.parent.getFormattingValues(this.ctx,this.selected,this.hover,e);for(var n=(t=(t=t.replace(/^( +)/g,"$1\r")).replace(/([^\r][^ ]*)( +)/g,"$1\r$2\r")).split("\r");n.length>0;){var o=this.getLongestFit(n);if(0===o){var r=n[0],g=this.getLongestFitWord(r);this.lines.newLine(Ho(r).call(r,0,g),e),n[0]=Ho(r).call(r,g)}else{var s=o;" "===n[o-1]?o--:" "===n[s]&&s++;var a=Ho(n).call(n,0,o).join("");o==n.length&&i?this.lines.append(a,e):this.lines.newLine(a,e),n=Ho(n).call(n,s)}}}}]),t}(),vI=["bold","ital","boldital","mono"],mI=function(){function t(e,i){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];qa(this,t),this.body=e,this.pointToSelf=!1,this.baseSize=void 0,this.fontOptions={},this.setOptions(i),this.size={top:0,left:0,width:0,height:0,yLine:0},this.isEdgeLabel=n}return tA(t,[{key:"setOptions",value:function(t){if(this.elementOptions=t,this.initFontOptions(t.font),hI.isValidLabel(t.label)?this.labelDirty=!0:t.label=void 0,void 0!==t.font&&null!==t.font)if("string"==typeof t.font)this.baseSize=this.fontOptions.size;else if("object"===cr(t.font)){var e=t.font.size;void 0!==e&&(this.baseSize=e)}}},{key:"initFontOptions",value:function(e){var i=this;Yr(vI,(function(t){i.fontOptions[t]={}})),t.parseFontString(this.fontOptions,e)?this.fontOptions.vadjust=0:Yr(e,(function(t,e){null!=t&&"object"!==cr(t)&&(i.fontOptions[e]=t)}))}},{key:"constrain",value:function(t){var e={constrainWidth:!1,maxWdt:-1,minWdt:-1,constrainHeight:!1,minHgt:-1,valign:"middle"},i=cg(t,"widthConstraint");if("number"==typeof i)e.maxWdt=Number(i),e.minWdt=Number(i);else if("object"===cr(i)){var n=cg(t,["widthConstraint","maximum"]);"number"==typeof n&&(e.maxWdt=Number(n));var o=cg(t,["widthConstraint","minimum"]);"number"==typeof o&&(e.minWdt=Number(o))}var r=cg(t,"heightConstraint");if("number"==typeof r)e.minHgt=Number(r);else if("object"===cr(r)){var g=cg(t,["heightConstraint","minimum"]);"number"==typeof g&&(e.minHgt=Number(g));var s=cg(t,["heightConstraint","valign"]);"string"==typeof s&&("top"!==s&&"bottom"!==s||(e.valign=s))}return e}},{key:"update",value:function(t,e){this.setOptions(t,!0),this.propagateFonts(e),Gr(this.fontOptions,this.constrain(e)),this.fontOptions.chooser=hI.choosify("label",e)}},{key:"adjustSizes",value:function(t){var e=t?t.right+t.left:0;this.fontOptions.constrainWidth&&(this.fontOptions.maxWdt-=e,this.fontOptions.minWdt-=e);var i=t?t.top+t.bottom:0;this.fontOptions.constrainHeight&&(this.fontOptions.minHgt-=i)}},{key:"addFontOptionsToPile",value:function(t,e){for(var i=0;i<e.length;++i)this.addFontToPile(t,e[i])}},{key:"addFontToPile",value:function(t,e){if(void 0!==e&&void 0!==e.font&&null!==e.font){var i=e.font;t.push(i)}}},{key:"getBasicOptions",value:function(e){for(var i={},n=0;n<e.length;++n){var o=e[n],r={};t.parseFontString(r,o)&&(o=r),Yr(o,(function(t,e){void 0!==t&&(i.hasOwnProperty(e)||(-1!==rr(vI).call(vI,e)?i[e]={}:i[e]=t))}))}return i}},{key:"getFontOption",value:function(e,i,n){for(var o,r=0;r<e.length;++r){var g=e[r];if(g.hasOwnProperty(i)){if(null==(o=g[i]))continue;var s={};if(t.parseFontString(s,o)&&(o=s),o.hasOwnProperty(n))return o[n]}}if(this.fontOptions.hasOwnProperty(n))return this.fontOptions[n];throw new Error("Did not find value for multi-font for property: '"+n+"'")}},{key:"getFontOptions",value:function(t,e){for(var i={},n=["color","size","face","mod","vadjust"],o=0;o<n.length;++o){var r=n[o];i[r]=this.getFontOption(t,e,r)}return i}},{key:"propagateFonts",value:function(t){var e=this,i=[];this.addFontOptionsToPile(i,t),this.fontOptions=this.getBasicOptions(i);for(var n=function(t){var n=vI[t],o=e.fontOptions[n];Yr(e.getFontOptions(i,n),(function(t,e){o[e]=t})),o.size=Number(o.size),o.vadjust=Number(o.vadjust)},o=0;o<vI.length;++o)n(o)}},{key:"draw",value:function(t,e,i,n,o){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"middle";if(void 0!==this.elementOptions.label){var g=this.fontOptions.size*this.body.view.scale;this.elementOptions.label&&g<this.elementOptions.scaling.label.drawThreshold-1||(g>=this.elementOptions.scaling.label.maxVisible&&(g=Number(this.elementOptions.scaling.label.maxVisible)/this.body.view.scale),this.calculateLabelSize(t,n,o,e,i,r),this._drawBackground(t),this._drawText(t,e,this.size.yLine,r,g))}}},{key:"_drawBackground",value:function(t){if(void 0!==this.fontOptions.background&&"none"!==this.fontOptions.background){t.fillStyle=this.fontOptions.background;var e=this.getSize();t.fillRect(e.left,e.top,e.width,e.height)}}},{key:"_drawText",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"middle",o=arguments.length>4?arguments[4]:void 0,r=this._setAlignment(t,e,i,n),g=pr(r,2);e=g[0],i=g[1],t.textAlign="left",e-=this.size.width/2,this.fontOptions.valign&&this.size.height>this.size.labelHeight&&("top"===this.fontOptions.valign&&(i-=(this.size.height-this.size.labelHeight)/2),"bottom"===this.fontOptions.valign&&(i+=(this.size.height-this.size.labelHeight)/2));for(var s=0;s<this.lineCount;s++){var a=this.lines[s];if(a&&a.blocks){var A=0;this.isEdgeLabel||"center"===this.fontOptions.align?A+=(this.size.width-a.width)/2:"right"===this.fontOptions.align&&(A+=this.size.width-a.width);for(var C=0;C<a.blocks.length;C++){var I=a.blocks[C];t.font=I.font;var l=this._getColor(I.color,o,I.strokeColor),c=pr(l,2),h=c[0],u=c[1];I.strokeWidth>0&&(t.lineWidth=I.strokeWidth,t.strokeStyle=u,t.lineJoin="round"),t.fillStyle=h,I.strokeWidth>0&&t.strokeText(I.text,e+A,i+I.vadjust),t.fillText(I.text,e+A,i+I.vadjust),A+=I.width}i+=a.height}}}},{key:"_setAlignment",value:function(t,e,i,n){if(this.isEdgeLabel&&"horizontal"!==this.fontOptions.align&&!1===this.pointToSelf){e=0,i=0;"top"===this.fontOptions.align?(t.textBaseline="alphabetic",i-=4):"bottom"===this.fontOptions.align?(t.textBaseline="hanging",i+=4):t.textBaseline="middle"}else t.textBaseline=n;return[e,i]}},{key:"_getColor",value:function(t,e,i){var n=t||"#000000",o=i||"#ffffff";if(e<=this.elementOptions.scaling.label.drawThreshold){var r=Math.max(0,Math.min(1,1-(this.elementOptions.scaling.label.drawThreshold-e)));n=qr(n,r),o=qr(o,r)}return[n,o]}},{key:"getTextSize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this._processLabel(t,e,i),{width:this.size.width,height:this.size.height,lineCount:this.lineCount}}},{key:"getSize",value:function(){var t=this.size.left,e=this.size.top-1;if(this.isEdgeLabel){var i=.5*-this.size.width;switch(this.fontOptions.align){case"middle":t=i,e=.5*-this.size.height;break;case"top":t=i,e=-(this.size.height+2);break;case"bottom":t=i,e=2}}return{left:t,top:e,width:this.size.width,height:this.size.height}}},{key:"calculateLabelSize",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"middle";this._processLabel(t,e,i),this.size.left=n-.5*this.size.width,this.size.top=o-.5*this.size.height,this.size.yLine=o+.5*(1-this.lineCount)*this.fontOptions.size,"hanging"===r&&(this.size.top+=.5*this.fontOptions.size,this.size.top+=4,this.size.yLine+=4)}},{key:"getFormattingValues",value:function(t,e,i,n){var o=function(t,e,i){return"normal"===e?"mod"===i?"":t[i]:void 0!==t[e][i]?t[e][i]:t[i]},r={color:o(this.fontOptions,n,"color"),size:o(this.fontOptions,n,"size"),face:o(this.fontOptions,n,"face"),mod:o(this.fontOptions,n,"mod"),vadjust:o(this.fontOptions,n,"vadjust"),strokeWidth:this.fontOptions.strokeWidth,strokeColor:this.fontOptions.strokeColor};(e||i)&&("normal"===n&&!0===this.fontOptions.chooser&&this.elementOptions.labelHighlightBold?r.mod="bold":"function"==typeof this.fontOptions.chooser&&this.fontOptions.chooser(r,this.elementOptions.id,e,i));var g="";return void 0!==r.mod&&""!==r.mod&&(g+=r.mod+" "),g+=r.size+"px "+r.face,t.font=g.replace(/"/g,""),r.font=t.font,r.height=r.size,r}},{key:"differentState",value:function(t,e){return t!==this.selectedState||e!==this.hoverState}},{key:"_processLabelText",value:function(t,e,i,n){return new fI(t,this,e,i).process(n)}},{key:"_processLabel",value:function(t,e,i){if(!1!==this.labelDirty||this.differentState(e,i)){var n=this._processLabelText(t,e,i,this.elementOptions.label);this.fontOptions.minWdt>0&&n.width<this.fontOptions.minWdt&&(n.width=this.fontOptions.minWdt),this.size.labelHeight=n.height,this.fontOptions.minHgt>0&&n.height<this.fontOptions.minHgt&&(n.height=this.fontOptions.minHgt),this.lines=n.lines,this.lineCount=n.lines.length,this.size.width=n.width,this.size.height=n.height,this.selectedState=e,this.hoverState=i,this.labelDirty=!1}}},{key:"visible",value:function(){return 0!==this.size.width&&0!==this.size.height&&void 0!==this.elementOptions.label&&!(this.fontOptions.size*this.body.view.scale<this.elementOptions.scaling.label.drawThreshold-1)}}],[{key:"parseFontString",value:function(t,e){if(!e||"string"!=typeof e)return!1;var i=e.split(" ");return t.size=+i[0].replace("px",""),t.face=i[1],t.color=i[2],!0}}]),t}();V({target:"Array",proto:!0},{fill:function(t){for(var e=jt(this),i=$t(e.length),n=arguments.length,o=ie(n>1?arguments[1]:void 0,i),r=n>2?arguments[2]:void 0,g=void 0===r?i:ie(r,i);g>o;)e[o++]=t;return e}});var yI=q("Array").fill,bI=Array.prototype,wI=function(t){var e=t.fill;return t===bI||t instanceof Array&&e===bI.fill?yI:e},xI=function(){function t(e,i,n){qa(this,t),this.body=i,this.labelModule=n,this.setOptions(e),this.top=void 0,this.left=void 0,this.height=void 0,this.width=void 0,this.radius=void 0,this.margin=void 0,this.refreshNeeded=!0,this.boundingBox={top:0,left:0,right:0,bottom:0}}return tA(t,[{key:"setOptions",value:function(t){this.options=t}},{key:"_setMargins",value:function(t){this.margin={},this.options.margin&&("object"==cr(this.options.margin)?(this.margin.top=this.options.margin.top,this.margin.right=this.options.margin.right,this.margin.bottom=this.options.margin.bottom,this.margin.left=this.options.margin.left):(this.margin.top=this.options.margin,this.margin.right=this.options.margin,this.margin.bottom=this.options.margin,this.margin.left=this.options.margin)),t.adjustSizes(this.margin)}},{key:"_distanceToBorder",value:function(t,e){var i=this.options.borderWidth;return t&&this.resize(t),Math.min(Math.abs(this.width/2/Math.cos(e)),Math.abs(this.height/2/Math.sin(e)))+i}},{key:"enableShadow",value:function(t,e){e.shadow&&(t.shadowColor=e.shadowColor,t.shadowBlur=e.shadowSize,t.shadowOffsetX=e.shadowX,t.shadowOffsetY=e.shadowY)}},{key:"disableShadow",value:function(t,e){e.shadow&&(t.shadowColor="rgba(0,0,0,0)",t.shadowBlur=0,t.shadowOffsetX=0,t.shadowOffsetY=0)}},{key:"enableBorderDashes",value:function(t,e){if(!1!==e.borderDashes)if(void 0!==t.setLineDash){var i=e.borderDashes;!0===i&&(i=[5,15]),t.setLineDash(i)}else console.warn("setLineDash is not supported in this browser. The dashed borders cannot be used."),this.options.shapeProperties.borderDashes=!1,e.borderDashes=!1}},{key:"disableBorderDashes",value:function(t,e){!1!==e.borderDashes&&(void 0!==t.setLineDash?t.setLineDash([0]):(console.warn("setLineDash is not supported in this browser. The dashed borders cannot be used."),this.options.shapeProperties.borderDashes=!1,e.borderDashes=!1))}},{key:"needsRefresh",value:function(t,e){return!0===this.refreshNeeded?(this.refreshNeeded=!1,!0):void 0===this.width||this.labelModule.differentState(t,e)}},{key:"initContextForDraw",value:function(t,e){var i=e.borderWidth/this.body.view.scale;t.lineWidth=Math.min(this.width,i),t.strokeStyle=e.borderColor,t.fillStyle=e.color}},{key:"performStroke",value:function(t,e){var i=e.borderWidth/this.body.view.scale;t.save(),i>0&&(this.enableBorderDashes(t,e),t.stroke(),this.disableBorderDashes(t,e)),t.restore()}},{key:"performFill",value:function(t,e){t.save(),t.fillStyle=e.color,this.enableShadow(t,e),wI(t).call(t),this.disableShadow(t,e),t.restore(),this.performStroke(t,e)}},{key:"_addBoundingBoxMargin",value:function(t){this.boundingBox.left-=t,this.boundingBox.top-=t,this.boundingBox.bottom+=t,this.boundingBox.right+=t}},{key:"_updateBoundingBox",value:function(t,e,i,n,o){void 0!==i&&this.resize(i,n,o),this.left=t-this.width/2,this.top=e-this.height/2,this.boundingBox.left=this.left,this.boundingBox.top=this.top,this.boundingBox.bottom=this.top+this.height,this.boundingBox.right=this.left+this.width}},{key:"updateBoundingBox",value:function(t,e,i,n,o){this._updateBoundingBox(t,e,i,n,o)}},{key:"getDimensionsFromLabel",value:function(t,e,i){this.textSize=this.labelModule.getTextSize(t,e,i);var n=this.textSize.width,o=this.textSize.height;return 0===n&&(n=14,o=14),{width:n,height:o}}}]),t}();function kI(t){var e=function(){if("undefined"==typeof Reflect||!wA)return!1;if(wA.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wA(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=XA(t);if(e){var o=XA(this).constructor;i=wA(n,arguments,o)}else i=n.apply(this,arguments);return VA(this,i)}}var _I=function(t){YA(i,t);var e=kI(i);function i(t,n,o){var r;return qa(this,i),(r=e.call(this,t,n,o))._setMargins(o),r}return tA(i,[{key:"resize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;if(this.needsRefresh(e,i)){var n=this.getDimensionsFromLabel(t,e,i);this.width=n.width+this.margin.right+this.margin.left,this.height=n.height+this.margin.top+this.margin.bottom,this.radius=this.width/2}}},{key:"draw",value:function(t,e,i,n,o,r){this.resize(t,n,o),this.left=e-this.width/2,this.top=i-this.height/2,this.initContextForDraw(t,r),nt(t,this.left,this.top,this.width,this.height,r.borderRadius),this.performFill(t,r),this.updateBoundingBox(e,i,t,n,o),this.labelModule.draw(t,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,n,o)}},{key:"updateBoundingBox",value:function(t,e,i,n,o){this._updateBoundingBox(t,e,i,n,o);var r=this.options.shapeProperties.borderRadius;this._addBoundingBoxMargin(r)}},{key:"distanceToBorder",value:function(t,e){t&&this.resize(t);var i=this.options.borderWidth;return Math.min(Math.abs(this.width/2/Math.cos(e)),Math.abs(this.height/2/Math.sin(e)))+i}}]),i}(xI);function DI(t){var e=function(){if("undefined"==typeof Reflect||!wA)return!1;if(wA.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wA(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=XA(t);if(e){var o=XA(this).constructor;i=wA(n,arguments,o)}else i=n.apply(this,arguments);return VA(this,i)}}var OI=function(t){YA(i,t);var e=DI(i);function i(t,n,o){var r;return qa(this,i),(r=e.call(this,t,n,o)).labelOffset=0,r.selected=!1,r}return tA(i,[{key:"setOptions",value:function(t,e,i){this.options=t,void 0===e&&void 0===i||this.setImages(e,i)}},{key:"setImages",value:function(t,e){e&&this.selected?(this.imageObj=e,this.imageObjAlt=t):(this.imageObj=t,this.imageObjAlt=e)}},{key:"switchImages",value:function(t){var e=t&&!this.selected||!t&&this.selected;if(this.selected=t,void 0!==this.imageObjAlt&&e){var i=this.imageObj;this.imageObj=this.imageObjAlt,this.imageObjAlt=i}}},{key:"_getImagePadding",value:function(){var t={top:0,right:0,bottom:0,left:0};if(this.options.imagePadding){var e=this.options.imagePadding;"object"==cr(e)?(t.top=e.top,t.right=e.right,t.bottom=e.bottom,t.left=e.left):(t.top=e,t.right=e,t.bottom=e,t.left=e)}return t}},{key:"_resizeImage",value:function(){var t,e;if(!1===this.options.shapeProperties.useImageSize){var i=1,n=1;this.imageObj.width&&this.imageObj.height&&(this.imageObj.width>this.imageObj.height?i=this.imageObj.width/this.imageObj.height:n=this.imageObj.height/this.imageObj.width),t=2*this.options.size*i,e=2*this.options.size*n}else{var o=this._getImagePadding();t=this.imageObj.width+o.left+o.right,e=this.imageObj.height+o.top+o.bottom}this.width=t,this.height=e,this.radius=.5*this.width}},{key:"_drawRawCircle",value:function(t,e,i,n){this.initContextForDraw(t,n),it(t,e,i,n.size),this.performFill(t,n)}},{key:"_drawImageAtPosition",value:function(t,e){if(0!=this.imageObj.width){t.globalAlpha=void 0!==e.opacity?e.opacity:1,this.enableShadow(t,e);var i=1;!0===this.options.shapeProperties.interpolation&&(i=this.imageObj.width/this.width/this.body.view.scale);var n=this._getImagePadding(),o=this.left+n.left,r=this.top+n.top,g=this.width-n.left-n.right,s=this.height-n.top-n.bottom;this.imageObj.drawImageAtPosition(t,i,o,r,g,s),this.disableShadow(t,e)}}},{key:"_drawImageLabel",value:function(t,e,i,n,o){var r,g=0;if(void 0!==this.height){g=.5*this.height;var s=this.labelModule.getTextSize(t,n,o);s.lineCount>=1&&(g+=s.height/2)}r=i+g,this.options.label&&(this.labelOffset=g),this.labelModule.draw(t,e,r,n,o,"hanging")}}]),i}(xI);function MI(t){var e=function(){if("undefined"==typeof Reflect||!wA)return!1;if(wA.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wA(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=XA(t);if(e){var o=XA(this).constructor;i=wA(n,arguments,o)}else i=n.apply(this,arguments);return VA(this,i)}}var TI=function(t){YA(i,t);var e=MI(i);function i(t,n,o){var r;return qa(this,i),(r=e.call(this,t,n,o))._setMargins(o),r}return tA(i,[{key:"resize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;if(this.needsRefresh(e,i)){var n=this.getDimensionsFromLabel(t,e,i),o=Math.max(n.width+this.margin.right+this.margin.left,n.height+this.margin.top+this.margin.bottom);this.options.size=o/2,this.width=o,this.height=o,this.radius=this.width/2}}},{key:"draw",value:function(t,e,i,n,o,r){this.resize(t,n,o),this.left=e-this.width/2,this.top=i-this.height/2,this._drawRawCircle(t,e,i,r),this.updateBoundingBox(e,i),this.labelModule.draw(t,this.left+this.textSize.width/2+this.margin.left,i,n,o)}},{key:"updateBoundingBox",value:function(t,e){this.boundingBox.top=e-this.options.size,this.boundingBox.left=t-this.options.size,this.boundingBox.right=t+this.options.size,this.boundingBox.bottom=e+this.options.size}},{key:"distanceToBorder",value:function(t,e){return t&&this.resize(t),.5*this.width}}]),i}(OI);function NI(t){var e=function(){if("undefined"==typeof Reflect||!wA)return!1;if(wA.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wA(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=XA(t);if(e){var o=XA(this).constructor;i=wA(n,arguments,o)}else i=n.apply(this,arguments);return VA(this,i)}}var EI=function(t){YA(i,t);var e=NI(i);function i(t,n,o,r,g){var s;return qa(this,i),(s=e.call(this,t,n,o)).setImages(r,g),s}return tA(i,[{key:"resize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover,n=void 0===this.imageObj.src||void 0===this.imageObj.width||void 0===this.imageObj.height;if(n){var o=2*this.options.size;return this.width=o,this.height=o,void(this.radius=.5*this.width)}this.needsRefresh(e,i)&&this._resizeImage()}},{key:"draw",value:function(t,e,i,n,o,r){this.switchImages(n),this.resize(),this.left=e-this.width/2,this.top=i-this.height/2,this._drawRawCircle(t,e,i,r),t.save(),t.clip(),this._drawImageAtPosition(t,r),t.restore(),this._drawImageLabel(t,e,i,n,o),this.updateBoundingBox(e,i)}},{key:"updateBoundingBox",value:function(t,e){this.boundingBox.top=e-this.options.size,this.boundingBox.left=t-this.options.size,this.boundingBox.right=t+this.options.size,this.boundingBox.bottom=e+this.options.size,this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelOffset)}},{key:"distanceToBorder",value:function(t,e){return t&&this.resize(t),.5*this.width}}]),i}(OI);function FI(t){var e=function(){if("undefined"==typeof Reflect||!wA)return!1;if(wA.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wA(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=XA(t);if(e){var o=XA(this).constructor;i=wA(n,arguments,o)}else i=n.apply(this,arguments);return VA(this,i)}}var SI=function(t){YA(i,t);var e=FI(i);function i(t,n,o){var r;return qa(this,i),(r=e.call(this,t,n,o))._setMargins(o),r}return tA(i,[{key:"resize",value:function(t,e,i){if(this.needsRefresh(e,i)){var n=this.getDimensionsFromLabel(t,e,i).width+this.margin.right+this.margin.left;this.width=n,this.height=n,this.radius=this.width/2}}},{key:"draw",value:function(t,e,i,n,o,r){this.resize(t,n,o),this.left=e-this.width/2,this.top=i-this.height/2,this.initContextForDraw(t,r),rt(t,e-this.width/2,i-this.height/2,this.width,this.height),this.performFill(t,r),this.updateBoundingBox(e,i,t,n,o),this.labelModule.draw(t,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,n,o)}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),i}(xI);function jI(t){var e=function(){if("undefined"==typeof Reflect||!wA)return!1;if(wA.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wA(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=XA(t);if(e){var o=XA(this).constructor;i=wA(n,arguments,o)}else i=n.apply(this,arguments);return VA(this,i)}}var BI=function(t){YA(i,t);var e=jI(i);function i(t,n,o){return qa(this,i),e.call(this,t,n,o)}return tA(i,[{key:"resize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{size:this.options.size};if(this.needsRefresh(e,i)){this.labelModule.getTextSize(t,e,i);var o=2*n.size;this.width=o,this.height=o,this.radius=.5*this.width}}},{key:"_drawShape",value:function(t,e,i,n,o,r,g,s){var a;if(this.resize(t,r,g,s),this.left=n-this.width/2,this.top=o-this.height/2,this.initContextForDraw(t,s),(a=e,Object.prototype.hasOwnProperty.call(st,a)?st[a]:function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];CanvasRenderingContext2D.prototype[a].call(t,i)})(t,n,o,s.size),this.performFill(t,s),void 0!==this.options.icon&&void 0!==this.options.icon.code&&(t.font=(r?"bold ":"")+this.height/2+"px "+(this.options.icon.face||"FontAwesome"),t.fillStyle=this.options.icon.color||"black",t.textAlign="center",t.textBaseline="middle",t.fillText(this.options.icon.code,n,o)),void 0!==this.options.label){this.labelModule.calculateLabelSize(t,r,g,n,o,"hanging");var A=o+.5*this.height+.5*this.labelModule.size.height;this.labelModule.draw(t,n,A,r,g,"hanging")}this.updateBoundingBox(n,o)}},{key:"updateBoundingBox",value:function(t,e){this.boundingBox.top=e-this.options.size,this.boundingBox.left=t-this.options.size,this.boundingBox.right=t+this.options.size,this.boundingBox.bottom=e+this.options.size,void 0!==this.options.label&&this.labelModule.size.width>0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelModule.size.height))}}]),i}(xI);function RI(t){var e=function(){if("undefined"==typeof Reflect||!wA)return!1;if(wA.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wA(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=XA(t);if(e){var o=XA(this).constructor;i=wA(n,arguments,o)}else i=n.apply(this,arguments);return VA(this,i)}}var zI=function(t){YA(i,t);var e=RI(i);function i(t,n,o){return qa(this,i),e.call(this,t,n,o)}return tA(i,[{key:"draw",value:function(t,e,i,n,o,r){this._drawShape(t,"diamond",4,e,i,n,o,r)}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),i}(BI);function ZI(t){var e=function(){if("undefined"==typeof Reflect||!wA)return!1;if(wA.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wA(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=XA(t);if(e){var o=XA(this).constructor;i=wA(n,arguments,o)}else i=n.apply(this,arguments);return VA(this,i)}}var GI=function(t){YA(i,t);var e=ZI(i);function i(t,n,o){return qa(this,i),e.call(this,t,n,o)}return tA(i,[{key:"draw",value:function(t,e,i,n,o,r){this._drawShape(t,"circle",2,e,i,n,o,r)}},{key:"distanceToBorder",value:function(t,e){return t&&this.resize(t),this.options.size}}]),i}(BI);function PI(t){var e=function(){if("undefined"==typeof Reflect||!wA)return!1;if(wA.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wA(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=XA(t);if(e){var o=XA(this).constructor;i=wA(n,arguments,o)}else i=n.apply(this,arguments);return VA(this,i)}}var LI=function(t){YA(i,t);var e=PI(i);function i(t,n,o){return qa(this,i),e.call(this,t,n,o)}return tA(i,[{key:"resize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover;if(this.needsRefresh(e,i)){var n=this.getDimensionsFromLabel(t,e,i);this.height=2*n.height,this.width=n.width+n.height,this.radius=.5*this.width}}},{key:"draw",value:function(t,e,i,n,o,r){this.resize(t,n,o),this.left=e-.5*this.width,this.top=i-.5*this.height,this.initContextForDraw(t,r),ot(t,this.left,this.top,this.width,this.height),this.performFill(t,r),this.updateBoundingBox(e,i,t,n,o),this.labelModule.draw(t,e,i,n,o)}},{key:"distanceToBorder",value:function(t,e){t&&this.resize(t);var i=.5*this.width,n=.5*this.height,o=Math.sin(e)*i,r=Math.cos(e)*n;return i*n/Math.sqrt(o*o+r*r)}}]),i}(xI);function WI(t){var e=function(){if("undefined"==typeof Reflect||!wA)return!1;if(wA.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wA(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=XA(t);if(e){var o=XA(this).constructor;i=wA(n,arguments,o)}else i=n.apply(this,arguments);return VA(this,i)}}var QI=function(t){YA(i,t);var e=WI(i);function i(t,n,o){var r;return qa(this,i),(r=e.call(this,t,n,o))._setMargins(o),r}return tA(i,[{key:"resize",value:function(t,e,i){this.needsRefresh(e,i)&&(this.iconSize={width:Number(this.options.icon.size),height:Number(this.options.icon.size)},this.width=this.iconSize.width+this.margin.right+this.margin.left,this.height=this.iconSize.height+this.margin.top+this.margin.bottom,this.radius=.5*this.width)}},{key:"draw",value:function(t,e,i,n,o,r){if(this.resize(t,n,o),this.options.icon.size=this.options.icon.size||50,this.left=e-this.width/2,this.top=i-this.height/2,this._icon(t,e,i,n,o,r),void 0!==this.options.label){this.labelModule.draw(t,this.left+this.iconSize.width/2+this.margin.left,i+this.height/2+5,n)}this.updateBoundingBox(e,i)}},{key:"updateBoundingBox",value:function(t,e){if(this.boundingBox.top=e-.5*this.options.icon.size,this.boundingBox.left=t-.5*this.options.icon.size,this.boundingBox.right=t+.5*this.options.icon.size,this.boundingBox.bottom=e+.5*this.options.icon.size,void 0!==this.options.label&&this.labelModule.size.width>0){this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelModule.size.height+5)}}},{key:"_icon",value:function(t,e,i,n,o,r){var g=Number(this.options.icon.size);void 0!==this.options.icon.code?(t.font=[null!=this.options.icon.weight?this.options.icon.weight:n?"bold":"",(null!=this.options.icon.weight&&n?5:0)+g+"px",this.options.icon.face].join(" "),t.fillStyle=this.options.icon.color||"black",t.textAlign="center",t.textBaseline="middle",this.enableShadow(t,r),t.fillText(this.options.icon.code,e,i),this.disableShadow(t,r)):console.error("When using the icon shape, you need to define the code in the icon options object. This can be done per node or globally.")}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),i}(xI);function UI(t){var e=function(){if("undefined"==typeof Reflect||!wA)return!1;if(wA.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wA(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=XA(t);if(e){var o=XA(this).constructor;i=wA(n,arguments,o)}else i=n.apply(this,arguments);return VA(this,i)}}var YI=function(t){YA(i,t);var e=UI(i);function i(t,n,o,r,g){var s;return qa(this,i),(s=e.call(this,t,n,o)).setImages(r,g),s}return tA(i,[{key:"resize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.hover,n=void 0===this.imageObj.src||void 0===this.imageObj.width||void 0===this.imageObj.height;if(n){var o=2*this.options.size;return this.width=o,void(this.height=o)}this.needsRefresh(e,i)&&this._resizeImage()}},{key:"draw",value:function(t,e,i,n,o,r){if(t.save(),this.switchImages(n),this.resize(),this.left=e-this.width/2,this.top=i-this.height/2,!0===this.options.shapeProperties.useBorderWithImage){var g=this.options.borderWidth,s=this.options.borderWidthSelected||2*this.options.borderWidth,a=(n?s:g)/this.body.view.scale;t.lineWidth=Math.min(this.width,a),t.beginPath();var A=n?this.options.color.highlight.border:o?this.options.color.hover.border:this.options.color.border,C=n?this.options.color.highlight.background:o?this.options.color.hover.background:this.options.color.background;void 0!==r.opacity&&(A=qr(A,r.opacity),C=qr(C,r.opacity)),t.strokeStyle=A,t.fillStyle=C,t.rect(this.left-.5*t.lineWidth,this.top-.5*t.lineWidth,this.width+t.lineWidth,this.height+t.lineWidth),wI(t).call(t),this.performStroke(t,r),t.closePath()}this._drawImageAtPosition(t,r),this._drawImageLabel(t,e,i,n,o),this.updateBoundingBox(e,i),t.restore()}},{key:"updateBoundingBox",value:function(t,e){this.resize(),this._updateBoundingBox(t,e),void 0!==this.options.label&&this.labelModule.size.width>0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelOffset))}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),i}(OI);function VI(t){var e=function(){if("undefined"==typeof Reflect||!wA)return!1;if(wA.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wA(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=XA(t);if(e){var o=XA(this).constructor;i=wA(n,arguments,o)}else i=n.apply(this,arguments);return VA(this,i)}}var HI=function(t){YA(i,t);var e=VI(i);function i(t,n,o){return qa(this,i),e.call(this,t,n,o)}return tA(i,[{key:"draw",value:function(t,e,i,n,o,r){this._drawShape(t,"square",2,e,i,n,o,r)}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),i}(BI);function XI(t){var e=function(){if("undefined"==typeof Reflect||!wA)return!1;if(wA.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wA(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=XA(t);if(e){var o=XA(this).constructor;i=wA(n,arguments,o)}else i=n.apply(this,arguments);return VA(this,i)}}var JI=function(t){YA(i,t);var e=XI(i);function i(t,n,o){return qa(this,i),e.call(this,t,n,o)}return tA(i,[{key:"draw",value:function(t,e,i,n,o,r){this._drawShape(t,"hexagon",4,e,i,n,o,r)}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),i}(BI);function KI(t){var e=function(){if("undefined"==typeof Reflect||!wA)return!1;if(wA.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wA(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=XA(t);if(e){var o=XA(this).constructor;i=wA(n,arguments,o)}else i=n.apply(this,arguments);return VA(this,i)}}var qI=function(t){YA(i,t);var e=KI(i);function i(t,n,o){return qa(this,i),e.call(this,t,n,o)}return tA(i,[{key:"draw",value:function(t,e,i,n,o,r){this._drawShape(t,"star",4,e,i,n,o,r)}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),i}(BI);function $I(t){var e=function(){if("undefined"==typeof Reflect||!wA)return!1;if(wA.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wA(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=XA(t);if(e){var o=XA(this).constructor;i=wA(n,arguments,o)}else i=n.apply(this,arguments);return VA(this,i)}}var tl=function(t){YA(i,t);var e=$I(i);function i(t,n,o){var r;return qa(this,i),(r=e.call(this,t,n,o))._setMargins(o),r}return tA(i,[{key:"resize",value:function(t,e,i){this.needsRefresh(e,i)&&(this.textSize=this.labelModule.getTextSize(t,e,i),this.width=this.textSize.width+this.margin.right+this.margin.left,this.height=this.textSize.height+this.margin.top+this.margin.bottom,this.radius=.5*this.width)}},{key:"draw",value:function(t,e,i,n,o,r){this.resize(t,n,o),this.left=e-this.width/2,this.top=i-this.height/2,this.enableShadow(t,r),this.labelModule.draw(t,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,n,o),this.disableShadow(t,r),this.updateBoundingBox(e,i,t,n,o)}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),i}(xI);function el(t){var e=function(){if("undefined"==typeof Reflect||!wA)return!1;if(wA.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wA(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=XA(t);if(e){var o=XA(this).constructor;i=wA(n,arguments,o)}else i=n.apply(this,arguments);return VA(this,i)}}var il=function(t){YA(i,t);var e=el(i);function i(t,n,o){return qa(this,i),e.call(this,t,n,o)}return tA(i,[{key:"draw",value:function(t,e,i,n,o,r){this._drawShape(t,"triangle",3,e,i,n,o,r)}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),i}(BI);function nl(t){var e=function(){if("undefined"==typeof Reflect||!wA)return!1;if(wA.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wA(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=XA(t);if(e){var o=XA(this).constructor;i=wA(n,arguments,o)}else i=n.apply(this,arguments);return VA(this,i)}}var ol,rl=function(t){YA(i,t);var e=nl(i);function i(t,n,o){return qa(this,i),e.call(this,t,n,o)}return tA(i,[{key:"draw",value:function(t,e,i,n,o,r){this._drawShape(t,"triangleDown",3,e,i,n,o,r)}},{key:"distanceToBorder",value:function(t,e){return this._distanceToBorder(t,e)}}]),i}(BI),gl=!1,sl="background: #FFeeee; color: #dd0000",al=function(){function t(){qa(this,t)}return tA(t,null,[{key:"validate",value:function(e,i,n){gl=!1,ol=i;var o=i;return void 0!==n&&(o=i[n]),t.parse(e,o,[]),gl}},{key:"parse",value:function(e,i,n){for(var o in e)e.hasOwnProperty(o)&&t.check(o,e,i,n)}},{key:"check",value:function(e,i,n,o){if(void 0!==n[e]||void 0!==n.__any__){var r=e,g=!0;void 0===n[e]&&void 0!==n.__any__&&(r="__any__",g="object"===t.getType(i[e]));var s=n[r];g&&void 0!==s.__type__&&(s=s.__type__),t.checkFields(e,i,n,r,s,o)}else t.getSuggestion(e,n,o)}},{key:"checkFields",value:function(e,i,n,o,r,g){var s=function(i){console.log("%c"+i+t.printLocation(g,e),sl)},a=t.getType(i[e]),A=r[a];void 0!==A?"array"===t.getType(A)&&-1===rr(A).call(A,i[e])?(s('Invalid option detected in "'+e+'". Allowed values are:'+t.print(A)+' not "'+i[e]+'". '),gl=!0):"object"===a&&"__any__"!==o&&(g=Lr(g,e),t.parse(i[e],n[o],g)):void 0===r.any&&(s('Invalid type received for "'+e+'". Expected: '+t.print(En(r))+". Received ["+a+'] "'+i[e]+'"'),gl=!0)}},{key:"getType",value:function(t){var e=cr(t);return"object"===e?null===t?"null":t instanceof Boolean?"boolean":t instanceof Number?"number":t instanceof String?"string":gr(t)?"array":t instanceof Date?"date":void 0!==t.nodeType?"dom":!0===t._isAMomentObject?"moment":"object":"number"===e?"number":"boolean"===e?"boolean":"string"===e?"string":void 0===e?"undefined":e}},{key:"getSuggestion",value:function(e,i,n){var o,r=t.findInOptions(e,i,n,!1),g=t.findInOptions(e,ol,[],!0);o=void 0!==r.indexMatch?" in "+t.printLocation(r.path,e,"")+'Perhaps it was incomplete? Did you mean: "'+r.indexMatch+'"?\n\n':g.distance<=4&&r.distance>g.distance?" in "+t.printLocation(r.path,e,"")+"Perhaps it was misplaced? Matching option found at: "+t.printLocation(g.path,g.closestMatch,""):r.distance<=8?'. Did you mean "'+r.closestMatch+'"?'+t.printLocation(r.path,e):". Did you mean one of these: "+t.print(En(i))+t.printLocation(n,e),console.log('%cUnknown option detected: "'+e+'"'+o,sl),gl=!0}},{key:"findInOptions",value:function(e,i,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=1e9,g="",s=[],a=e.toLowerCase(),A=void 0;for(var C in i){var I=void 0;if(void 0!==i[C].__type__&&!0===o){var l=t.findInOptions(e,i[C],Lr(n,C));r>l.distance&&(g=l.closestMatch,s=l.path,r=l.distance,A=l.indexMatch)}else{var c;-1!==rr(c=C.toLowerCase()).call(c,a)&&(A=C),r>(I=t.levenshteinDistance(e,C))&&(g=C,s=Wr(n),r=I)}}return{closestMatch:g,path:s,distance:r,indexMatch:A}}},{key:"printLocation",value:function(t,e){for(var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Problem value found at: \n",n="\n\n"+i+"options = {\n",o=0;o<t.length;o++){for(var r=0;r<o+1;r++)n+="  ";n+=t[o]+": {\n"}for(var g=0;g<t.length+1;g++)n+="  ";n+=e+"\n";for(var s=0;s<t.length+1;s++){for(var a=0;a<t.length-s;a++)n+="  ";n+="}\n"}return n+"\n\n"}},{key:"print",value:function(t){return SA(t).replace(/(\")|(\[)|(\])|(,"__type__")/g,"").replace(/(\,)/g,", ")}},{key:"levenshteinDistance",value:function(t,e){if(0===t.length)return e.length;if(0===e.length)return t.length;var i,n,o=[];for(i=0;i<=e.length;i++)o[i]=[i];for(n=0;n<=t.length;n++)o[0][n]=n;for(i=1;i<=e.length;i++)for(n=1;n<=t.length;n++)e.charAt(i-1)==t.charAt(n-1)?o[i][n]=o[i-1][n-1]:o[i][n]=Math.min(o[i-1][n-1]+1,Math.min(o[i][n-1]+1,o[i-1][n]+1));return o[e.length][t.length]}}]),t}();function Al(t,e){var i=En(t);if(xn){var n=xn(t);e&&(n=wo(n).call(n,(function(e){return wn(t,e).enumerable}))),i.push.apply(i,n)}return i}function Cl(t){for(var e=1;e<arguments.length;e++){var i,n=null!=arguments[e]?arguments[e]:{};if(e%2)eo(i=Al(Object(n),!0)).call(i,(function(e){Mn(t,e,n[e])}));else if(vn)pn(t,vn(n));else{var o;eo(o=Al(Object(n))).call(o,(function(e){dn(t,e,wn(n,e))}))}}return t}var Il=function(){function t(e,i,n,o,r,g){qa(this,t),this.options=Cg(r),this.globalOptions=r,this.defaultOptions=g,this.body=i,this.edges=[],this.id=void 0,this.imagelist=n,this.grouplist=o,this.x=void 0,this.y=void 0,this.baseSize=this.options.size,this.baseFontSize=this.options.font.size,this.predefinedPosition=!1,this.selected=!1,this.hover=!1,this.labelModule=new mI(this.body,this.options,!1),this.setOptions(e)}return tA(t,[{key:"attachEdge",value:function(t){var e;-1===rr(e=this.edges).call(e,t)&&this.edges.push(t)}},{key:"detachEdge",value:function(t){var e,i,n=rr(e=this.edges).call(e,t);-1!=n&&yg(i=this.edges).call(i,n,1)}},{key:"setOptions",value:function(e){var i=this.options.shape;if(e){if(void 0!==e.color&&(this._localColor=e.color),void 0!==e.id&&(this.id=e.id),void 0===this.id)throw new Error("Node must have an id");t.checkMass(e,this.id),void 0!==e.x&&(null===e.x?(this.x=void 0,this.predefinedPosition=!1):(this.x=lo(e.x),this.predefinedPosition=!0)),void 0!==e.y&&(null===e.y?(this.y=void 0,this.predefinedPosition=!1):(this.y=lo(e.y),this.predefinedPosition=!0)),void 0!==e.size&&(this.baseSize=e.size),void 0!==e.value&&(e.value=cI(e.value)),t.parseOptions(this.options,e,!0,this.globalOptions,this.grouplist);var n=[e,this.options,this.defaultOptions];return this.chooser=hI.choosify("node",n),this._load_images(),this.updateLabelModule(e),void 0!==e.opacity&&t.checkOpacity(e.opacity)&&(this.options.opacity=e.opacity),this.updateShape(i),void 0!==e.hidden||void 0!==e.physics}}},{key:"_load_images",value:function(){if(("circularImage"===this.options.shape||"image"===this.options.shape)&&void 0===this.options.image)throw new Error("Option image must be defined for node type '"+this.options.shape+"'");if(void 0!==this.options.image){if(void 0===this.imagelist)throw new Error("Internal Error: No images provided");if("string"==typeof this.options.image)this.imageObj=this.imagelist.load(this.options.image,this.options.brokenImage,this.id);else{if(void 0===this.options.image.unselected)throw new Error("No unselected image provided");this.imageObj=this.imagelist.load(this.options.image.unselected,this.options.brokenImage,this.id),void 0!==this.options.image.selected?this.imageObjAlt=this.imagelist.load(this.options.image.selected,this.options.brokenImage,this.id):this.imageObjAlt=void 0}}}},{key:"getFormattingValues",value:function(){var t={color:this.options.color.background,opacity:this.options.opacity,borderWidth:this.options.borderWidth,borderColor:this.options.color.border,size:this.options.size,borderDashes:this.options.shapeProperties.borderDashes,borderRadius:this.options.shapeProperties.borderRadius,shadow:this.options.shadow.enabled,shadowColor:this.options.shadow.color,shadowSize:this.options.shadow.size,shadowX:this.options.shadow.x,shadowY:this.options.shadow.y};if(this.selected||this.hover?!0===this.chooser?this.selected?(t.borderWidth*=2,t.color=this.options.color.highlight.background,t.borderColor=this.options.color.highlight.border,t.shadow=this.options.shadow.enabled):this.hover&&(t.color=this.options.color.hover.background,t.borderColor=this.options.color.hover.border,t.shadow=this.options.shadow.enabled):"function"==typeof this.chooser&&(this.chooser(t,this.options.id,this.selected,this.hover),!1===t.shadow&&(t.shadowColor===this.options.shadow.color&&t.shadowSize===this.options.shadow.size&&t.shadowX===this.options.shadow.x&&t.shadowY===this.options.shadow.y||(t.shadow=!0))):t.shadow=this.options.shadow.enabled,void 0!==this.options.opacity){var e=this.options.opacity;t.borderColor=qr(t.borderColor,e),t.color=qr(t.color,e),t.shadowColor=qr(t.shadowColor,e)}return t}},{key:"updateLabelModule",value:function(e){void 0!==this.options.label&&null!==this.options.label||(this.options.label=""),t.updateGroupOptions(this.options,Cl(Cl({},e),{},{color:e&&e.color||this._localColor||void 0}),this.grouplist);var i=this.grouplist.get(this.options.group,!1),n=[e,this.options,i,this.globalOptions,this.defaultOptions];this.labelModule.update(this.options,n),void 0!==this.labelModule.baseSize&&(this.baseFontSize=this.labelModule.baseSize)}},{key:"updateShape",value:function(t){if(t===this.options.shape&&this.shape)this.shape.setOptions(this.options,this.imageObj,this.imageObjAlt);else switch(this.options.shape){case"box":this.shape=new _I(this.options,this.body,this.labelModule);break;case"circle":this.shape=new TI(this.options,this.body,this.labelModule);break;case"circularImage":this.shape=new EI(this.options,this.body,this.labelModule,this.imageObj,this.imageObjAlt);break;case"database":this.shape=new SI(this.options,this.body,this.labelModule);break;case"diamond":this.shape=new zI(this.options,this.body,this.labelModule);break;case"dot":this.shape=new GI(this.options,this.body,this.labelModule);break;case"ellipse":this.shape=new LI(this.options,this.body,this.labelModule);break;case"icon":this.shape=new QI(this.options,this.body,this.labelModule);break;case"image":this.shape=new YI(this.options,this.body,this.labelModule,this.imageObj,this.imageObjAlt);break;case"square":this.shape=new HI(this.options,this.body,this.labelModule);break;case"hexagon":this.shape=new JI(this.options,this.body,this.labelModule);break;case"star":this.shape=new qI(this.options,this.body,this.labelModule);break;case"text":this.shape=new tl(this.options,this.body,this.labelModule);break;case"triangle":this.shape=new il(this.options,this.body,this.labelModule);break;case"triangleDown":this.shape=new rl(this.options,this.body,this.labelModule);break;default:this.shape=new LI(this.options,this.body,this.labelModule)}this.needsRefresh()}},{key:"select",value:function(){this.selected=!0,this.needsRefresh()}},{key:"unselect",value:function(){this.selected=!1,this.needsRefresh()}},{key:"needsRefresh",value:function(){this.shape.refreshNeeded=!0}},{key:"getTitle",value:function(){return this.options.title}},{key:"distanceToBorder",value:function(t,e){return this.shape.distanceToBorder(t,e)}},{key:"isFixed",value:function(){return this.options.fixed.x&&this.options.fixed.y}},{key:"isSelected",value:function(){return this.selected}},{key:"getValue",value:function(){return this.options.value}},{key:"getLabelSize",value:function(){return this.labelModule.size()}},{key:"setValueRange",value:function(t,e,i){if(void 0!==this.options.value){var n=this.options.scaling.customScalingFunction(t,e,i,this.options.value),o=this.options.scaling.max-this.options.scaling.min;if(!0===this.options.scaling.label.enabled){var r=this.options.scaling.label.max-this.options.scaling.label.min;this.options.font.size=this.options.scaling.label.min+n*r}this.options.size=this.options.scaling.min+n*o}else this.options.size=this.baseSize,this.options.font.size=this.baseFontSize;this.updateLabelModule()}},{key:"draw",value:function(t){var e=this.getFormattingValues();this.shape.draw(t,this.x,this.y,this.selected,this.hover,e)}},{key:"updateBoundingBox",value:function(t){this.shape.updateBoundingBox(this.x,this.y,t)}},{key:"resize",value:function(t){var e=this.getFormattingValues();this.shape.resize(t,this.selected,this.hover,e)}},{key:"getItemsOnPoint",value:function(t){var e=[];return this.labelModule.visible()&&hI.pointInRect(this.labelModule.getSize(),t)&&e.push({nodeId:this.id,labelId:0}),hI.pointInRect(this.shape.boundingBox,t)&&e.push({nodeId:this.id}),e}},{key:"isOverlappingWith",value:function(t){return this.shape.left<t.right&&this.shape.left+this.shape.width>t.left&&this.shape.top<t.bottom&&this.shape.top+this.shape.height>t.top}},{key:"isBoundingBoxOverlappingWith",value:function(t){return this.shape.boundingBox.left<t.right&&this.shape.boundingBox.right>t.left&&this.shape.boundingBox.top<t.bottom&&this.shape.boundingBox.bottom>t.top}}],[{key:"checkOpacity",value:function(t){return 0<=t&&t<=1}},{key:"updateGroupOptions",value:function(e,i,n){var o;if(void 0!==n){var r=e.group;if(void 0!==i&&void 0!==i.group&&r!==i.group)throw new Error("updateGroupOptions: group values in options don't match.");if("number"==typeof r||"string"==typeof r&&""!=r){var g=n.get(r);void 0!==g.opacity&&void 0===i.opacity&&(t.checkOpacity(g.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+g.opacity),g.opacity=void 0));var s=wo(o=AI(i)).call(o,(function(t){return null!=i[t]}));s.push("font"),Zr(s,e,g),e.color=tg(e.color)}}}},{key:"parseOptions",value:function(e,i){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=arguments.length>4?arguments[4]:void 0,g=["color","fixed","shadow"];if(Zr(g,e,i,n),t.checkMass(i),void 0!==e.opacity&&(t.checkOpacity(e.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+e.opacity),e.opacity=void 0)),void 0!==i.opacity&&(t.checkOpacity(i.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+i.opacity),i.opacity=void 0)),Ig(e,i,"shadow",o),void 0!==i.color&&null!==i.color){var s=tg(i.color);Br(e.color,s)}else!0===n&&null===i.color&&(e.color=Cg(o.color));void 0!==i.fixed&&null!==i.fixed&&("boolean"==typeof i.fixed?(e.fixed.x=i.fixed,e.fixed.y=i.fixed):(void 0!==i.fixed.x&&"boolean"==typeof i.fixed.x&&(e.fixed.x=i.fixed.x),void 0!==i.fixed.y&&"boolean"==typeof i.fixed.y&&(e.fixed.y=i.fixed.y))),!0===n&&null===i.font&&(e.font=Cg(o.font)),t.updateGroupOptions(e,i,r),void 0!==i.scaling&&Ig(e.scaling,i.scaling,"label",o.scaling)}},{key:"checkMass",value:function(t,e){if(void 0!==t.mass&&t.mass<=0){var i="";void 0!==e&&(i=" in node id: "+e),console.log("%cNegative or zero mass disallowed"+i+", setting mass to 1.",sl),t.mass=1}}}]),t}();function ll(t){if(void 0===nn||null==Ke(t)){if(gr(t)||(t=function(t,e){var i;if(!t)return;if("string"==typeof t)return cl(t,e);var n=Ho(i=Object.prototype.toString.call(t)).call(i,8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return hn(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cl(t,e)}(t))){var e=0,i=function(){};return{s:i,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:i}}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 n,o,r=!0,g=!1;return{s:function(){n=Je(t)},n:function(){var t=n.next();return r=t.done,t},e:function(t){g=!0,o=t},f:function(){try{r||null==n.return||n.return()}finally{if(g)throw o}}}}function cl(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}var hl=function(){function t(e,i,n,o){var r,g=this;if(qa(this,t),this.body=e,this.images=i,this.groups=n,this.layoutEngine=o,this.body.functions.createNode=et(r=this.create).call(r,this),this.nodesListeners={add:function(t,e){g.add(e.items)},update:function(t,e){g.update(e.items,e.data,e.oldData)},remove:function(t,e){g.remove(e.items)}},this.defaultOptions={borderWidth:1,borderWidthSelected:2,brokenImage:void 0,color:{border:"#2B7CE9",background:"#97C2FC",highlight:{border:"#2B7CE9",background:"#D2E5FF"},hover:{border:"#2B7CE9",background:"#D2E5FF"}},opacity:void 0,fixed:{x:!1,y:!1},font:{color:"#343434",size:14,face:"arial",background:"none",strokeWidth:0,strokeColor:"#ffffff",align:"center",vadjust:0,multi:!1,bold:{mod:"bold"},boldital:{mod:"bold italic"},ital:{mod:"italic"},mono:{mod:"",size:15,face:"monospace",vadjust:2}},group:void 0,hidden:!1,icon:{face:"FontAwesome",code:void 0,size:50,color:"#2B7CE9"},image:void 0,imagePadding:{top:0,right:0,bottom:0,left:0},label:void 0,labelHighlightBold:!0,level:void 0,margin:{top:5,right:5,bottom:5,left:5},mass:1,physics:!0,scaling:{min:10,max:30,label:{enabled:!1,min:14,max:30,maxVisible:30,drawThreshold:5},customScalingFunction:function(t,e,i,n){if(e===t)return.5;var o=1/(e-t);return Math.max(0,(n-t)*o)}},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:10,x:5,y:5},shape:"ellipse",shapeProperties:{borderDashes:!1,borderRadius:6,interpolation:!0,useImageSize:!1,useBorderWithImage:!1},size:25,title:void 0,value:void 0,x:void 0,y:void 0},this.defaultOptions.mass<=0)throw"Internal error: mass in defaultOptions of NodesHandler may not be zero or negative";this.options=Cg(this.defaultOptions),this.bindEventListeners()}return tA(t,[{key:"bindEventListeners",value:function(){var t,e,i=this;this.body.emitter.on("refreshNodes",et(t=this.refresh).call(t,this)),this.body.emitter.on("refresh",et(e=this.refresh).call(e,this)),this.body.emitter.on("destroy",(function(){Yr(i.nodesListeners,(function(t,e){i.body.data.nodes&&i.body.data.nodes.off(e,t)})),delete i.body.functions.createNode,delete i.nodesListeners.add,delete i.nodesListeners.update,delete i.nodesListeners.remove,delete i.nodesListeners}))}},{key:"setOptions",value:function(t){if(void 0!==t){if(Il.parseOptions(this.options,t),void 0!==t.opacity&&(pA(t.opacity)||!dA(t.opacity)||t.opacity<0||t.opacity>1?console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+t.opacity):this.options.opacity=t.opacity),void 0!==t.shape)for(var e in this.body.nodes)this.body.nodes.hasOwnProperty(e)&&this.body.nodes[e].updateShape();if(void 0!==t.font||void 0!==t.widthConstraint||void 0!==t.heightConstraint)for(var i=0,n=En(this.body.nodes);i<n.length;i++){var o=n[i];this.body.nodes[o].updateLabelModule(),this.body.nodes[o].needsRefresh()}if(void 0!==t.size)for(var r in this.body.nodes)this.body.nodes.hasOwnProperty(r)&&this.body.nodes[r].needsRefresh();void 0===t.hidden&&void 0===t.physics||this.body.emitter.emit("_dataChanged")}}},{key:"setData",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.body.data.nodes;if(t instanceof nI||t instanceof oI)this.body.data.nodes=t;else if(gr(t))this.body.data.nodes=new nI,this.body.data.nodes.add(t);else{if(t)throw new TypeError("Array or DataSet expected");this.body.data.nodes=new nI}if(i&&Yr(this.nodesListeners,(function(t,e){i.off(e,t)})),this.body.nodes={},this.body.data.nodes){var n=this;Yr(this.nodesListeners,(function(t,e){n.body.data.nodes.on(e,t)}));var o=this.body.data.nodes.getIds();this.add(o,!0)}!1===e&&this.body.emitter.emit("_dataChanged")}},{key:"add",value:function(t){for(var e,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[],o=0;o<t.length;o++){e=t[o];var r=this.body.data.nodes.get(e),g=this.create(r);n.push(g),this.body.nodes[e]=g}this.layoutEngine.positionInitially(n),!1===i&&this.body.emitter.emit("_dataChanged")}},{key:"update",value:function(t,e,i){for(var n=this.body.nodes,o=!1,r=0;r<t.length;r++){var g=t[r],s=n[g],a=e[r];void 0!==s?s.setOptions(a)&&(o=!0):(o=!0,s=this.create(a),n[g]=s)}o||void 0===i||(o=cA(e).call(e,(function(t,e){var n=i[e];return n&&n.level!==t.level}))),!0===o?this.body.emitter.emit("_dataChanged"):this.body.emitter.emit("_dataUpdated")}},{key:"remove",value:function(t){for(var e=this.body.nodes,i=0;i<t.length;i++){delete e[t[i]]}this.body.emitter.emit("_dataChanged")}},{key:"create",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Il;return new e(t,this.body,this.images,this.groups,this.options,this.defaultOptions)}},{key:"refresh",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Yr(this.body.nodes,(function(i,n){var o=t.body.data.nodes.get(n);void 0!==o&&(!0===e&&i.setOptions({x:null,y:null}),i.setOptions({fixed:!1}),i.setOptions(o))}))}},{key:"getPositions",value:function(t){var e={};if(void 0!==t){if(!0===gr(t)){for(var i=0;i<t.length;i++)if(void 0!==this.body.nodes[t[i]]){var n=this.body.nodes[t[i]];e[t[i]]={x:Math.round(n.x),y:Math.round(n.y)}}}else if(void 0!==this.body.nodes[t]){var o=this.body.nodes[t];e[t]={x:Math.round(o.x),y:Math.round(o.y)}}}else for(var r=0;r<this.body.nodeIndices.length;r++){var g=this.body.nodes[this.body.nodeIndices[r]];e[this.body.nodeIndices[r]]={x:Math.round(g.x),y:Math.round(g.y)}}return e}},{key:"getPosition",value:function(t){if(null==t)throw new TypeError("No id was specified for getPosition method.");if(null==this.body.nodes[t])throw new ReferenceError("NodeId provided for getPosition does not exist. Provided: ".concat(t));return{x:Math.round(this.body.nodes[t].x),y:Math.round(this.body.nodes[t].y)}}},{key:"storePositions",value:function(){var t,e=[],i=this.body.data.nodes.getDataSet(),n=ll(i.get());try{for(n.s();!(t=n.n()).done;){var o=t.value,r=o.id,g=this.body.nodes[r],s=Math.round(g.x),a=Math.round(g.y);o.x===s&&o.y===a||e.push({id:r,x:s,y:a})}}catch(t){n.e(t)}finally{n.f()}i.update(e)}},{key:"getBoundingBox",value:function(t){if(void 0!==this.body.nodes[t])return this.body.nodes[t].shape.boundingBox}},{key:"getConnectedNodes",value:function(t,e){var i=[];if(void 0!==this.body.nodes[t])for(var n=this.body.nodes[t],o={},r=0;r<n.edges.length;r++){var g=n.edges[r];"to"!==e&&g.toId==n.id?void 0===o[g.fromId]&&(i.push(g.fromId),o[g.fromId]=!0):"from"!==e&&g.fromId==n.id&&void 0===o[g.toId]&&(i.push(g.toId),o[g.toId]=!0)}return i}},{key:"getConnectedEdges",value:function(t){var e=[];if(void 0!==this.body.nodes[t])for(var i=this.body.nodes[t],n=0;n<i.edges.length;n++)e.push(i.edges[n].id);else console.log("NodeId provided for getConnectedEdges does not exist. Provided: ",t);return e}},{key:"moveNode",value:function(t,e,i){var n=this;void 0!==this.body.nodes[t]?(this.body.nodes[t].x=Number(e),this.body.nodes[t].y=Number(i),sA((function(){n.body.emitter.emit("startSimulation")}),0)):console.log("Node id supplied to moveNode does not exist. Provided: ",t)}}]),t}(),ul=bn;V({target:"Reflect",stat:!0},{get:function t(e,i){var n,o,r=arguments.length<3?e:arguments[2];return P(e)===r?e[i]:(n=T.f(e,i))?x(n,"value")?n.value:void 0===n.get?void 0:n.get.call(r):y(o=Zt(e))?t(o,i,r):void 0}});var dl=z.Reflect.get;var pl=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=XA(t)););return t},fl=r((function(t){function e(i,n,o){return"undefined"!=typeof Reflect&&dl?t.exports=e=dl:t.exports=e=function(t,e,i){var n=pl(t,e);if(n){var o=ul(n,e);return o.get?o.get.call(i):o.value}},e(i,n,o||i)}t.exports=e})),vl=Math.hypot,ml=Math.abs,yl=Math.sqrt,bl=!!vl&&vl(1/0,NaN)!==1/0;V({target:"Math",stat:!0,forced:bl},{hypot:function(t,e){for(var i,n,o=0,r=0,g=arguments.length,s=0;r<g;)s<(i=ml(arguments[r++]))?(o=o*(n=s/i)*n+1,s=i):o+=i>0?(n=i/s)*n:i;return s===1/0?1/0:s*yl(o)}});var wl=z.Math.hypot;function xl(t){var e=function(){if("undefined"==typeof Reflect||!wA)return!1;if(wA.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wA(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=XA(t);if(e){var o=XA(this).constructor;i=wA(n,arguments,o)}else i=n.apply(this,arguments);return VA(this,i)}}var kl=function(){function t(){qa(this,t)}return tA(t,null,[{key:"transform",value:function(t,e){gr(t)||(t=[t]);for(var i=e.point.x,n=e.point.y,o=e.angle,r=e.length,g=0;g<t.length;++g){var s=t[g],a=s.x*Math.cos(o)-s.y*Math.sin(o),A=s.x*Math.sin(o)+s.y*Math.cos(o);s.x=i+r*a,s.y=n+r*A}}},{key:"drawPath",value:function(t,e){t.beginPath(),t.moveTo(e[0].x,e[0].y);for(var i=1;i<e.length;++i)t.lineTo(e[i].x,e[i].y);t.closePath()}}]),t}(),_l=function(t){YA(i,t);var e=xl(i);function i(){return qa(this,i),e.apply(this,arguments)}return tA(i,null,[{key:"draw",value:function(t,e){if(e.image){t.save(),t.translate(e.point.x,e.point.y),t.rotate(Math.PI/2+e.angle);var i=null!=e.imageWidth?e.imageWidth:e.image.width,n=null!=e.imageHeight?e.imageHeight:e.image.height;e.image.drawImageAtPosition(t,1,-i/2,0,i,n),t.restore()}return!1}}]),i}(kl),Dl=function(t){YA(i,t);var e=xl(i);function i(){return qa(this,i),e.apply(this,arguments)}return tA(i,null,[{key:"draw",value:function(t,e){var i=[{x:0,y:0},{x:-1,y:.3},{x:-.9,y:0},{x:-1,y:-.3}];return kl.transform(i,e),kl.drawPath(t,i),!0}}]),i}(kl),Ol=function(){function t(){qa(this,t)}return tA(t,null,[{key:"draw",value:function(t,e){var i=[{x:-1,y:0},{x:0,y:.3},{x:-.4,y:0},{x:0,y:-.3}];return kl.transform(i,e),kl.drawPath(t,i),!0}}]),t}(),Ml=function(){function t(){qa(this,t)}return tA(t,null,[{key:"draw",value:function(t,e){var i={x:-.4,y:0};kl.transform(i,e),t.strokeStyle=t.fillStyle,t.fillStyle="rgba(0, 0, 0, 0)";var n=Math.PI,o=e.angle-n/2,r=e.angle+n/2;return t.beginPath(),t.arc(i.x,i.y,.4*e.length,o,r,!1),t.stroke(),!0}}]),t}(),Tl=function(){function t(){qa(this,t)}return tA(t,null,[{key:"draw",value:function(t,e){var i={x:-.3,y:0};kl.transform(i,e),t.strokeStyle=t.fillStyle,t.fillStyle="rgba(0, 0, 0, 0)";var n=Math.PI,o=e.angle+n/2,r=e.angle+3*n/2;return t.beginPath(),t.arc(i.x,i.y,.4*e.length,o,r,!1),t.stroke(),!0}}]),t}(),Nl=function(){function t(){qa(this,t)}return tA(t,null,[{key:"draw",value:function(t,e){var i=[{x:.02,y:0},{x:-1,y:.3},{x:-1,y:-.3}];return kl.transform(i,e),kl.drawPath(t,i),!0}}]),t}(),El=function(){function t(){qa(this,t)}return tA(t,null,[{key:"draw",value:function(t,e){var i=[{x:0,y:.3},{x:0,y:-.3},{x:-1,y:0}];return kl.transform(i,e),kl.drawPath(t,i),!0}}]),t}(),Fl=function(){function t(){qa(this,t)}return tA(t,null,[{key:"draw",value:function(t,e){var i={x:-.4,y:0};return kl.transform(i,e),it(t,i.x,i.y,.4*e.length),!0}}]),t}(),Sl=function(){function t(){qa(this,t)}return tA(t,null,[{key:"draw",value:function(t,e){var i=[{x:0,y:.5},{x:0,y:-.5},{x:-.15,y:-.5},{x:-.15,y:.5}];return kl.transform(i,e),kl.drawPath(t,i),!0}}]),t}(),jl=function(){function t(){qa(this,t)}return tA(t,null,[{key:"draw",value:function(t,e){var i=[{x:0,y:.3},{x:0,y:-.3},{x:-.6,y:-.3},{x:-.6,y:.3}];return kl.transform(i,e),kl.drawPath(t,i),!0}}]),t}(),Bl=function(){function t(){qa(this,t)}return tA(t,null,[{key:"draw",value:function(t,e){var i=[{x:0,y:0},{x:-.5,y:-.3},{x:-1,y:0},{x:-.5,y:.3}];return kl.transform(i,e),kl.drawPath(t,i),!0}}]),t}(),Rl=function(){function t(){qa(this,t)}return tA(t,null,[{key:"draw",value:function(t,e){var i=[{x:-1,y:.3},{x:-.5,y:0},{x:-1,y:-.3},{x:0,y:0}];return kl.transform(i,e),kl.drawPath(t,i),!0}}]),t}(),zl=function(){function t(){qa(this,t)}return tA(t,null,[{key:"draw",value:function(t,e){var i;switch(e.type&&(i=e.type.toLowerCase()),i){case"image":return _l.draw(t,e);case"circle":return Fl.draw(t,e);case"box":return jl.draw(t,e);case"crow":return Ol.draw(t,e);case"curve":return Ml.draw(t,e);case"diamond":return Bl.draw(t,e);case"inv_curve":return Tl.draw(t,e);case"triangle":return Nl.draw(t,e);case"inv_triangle":return El.draw(t,e);case"bar":return Sl.draw(t,e);case"vee":return Rl.draw(t,e);case"arrow":default:return Dl.draw(t,e)}}}]),t}();function Zl(t,e){var i=En(t);if(xn){var n=xn(t);e&&(n=wo(n).call(n,(function(e){return wn(t,e).enumerable}))),i.push.apply(i,n)}return i}function Gl(t){for(var e=1;e<arguments.length;e++){var i,n=null!=arguments[e]?arguments[e]:{};if(e%2)eo(i=Zl(Object(n),!0)).call(i,(function(e){Mn(t,e,n[e])}));else if(vn)pn(t,vn(n));else{var o;eo(o=Zl(Object(n))).call(o,(function(e){dn(t,e,wn(n,e))}))}}return t}var Pl=function(){function t(e,i,n){qa(this,t),this._body=i,this._labelModule=n,this.color={},this.colorDirty=!0,this.hoverWidth=1.5,this.selectionWidth=2,this.setOptions(e),this.fromPoint=this.from,this.toPoint=this.to}return tA(t,[{key:"connect",value:function(){this.from=this._body.nodes[this.options.from],this.to=this._body.nodes[this.options.to]}},{key:"cleanup",value:function(){return!1}},{key:"setOptions",value:function(t){this.options=t,this.from=this._body.nodes[this.options.from],this.to=this._body.nodes[this.options.to],this.id=this.options.id}},{key:"drawLine",value:function(t,e,i,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.getViaNode();t.strokeStyle=this.getColor(t,e),t.lineWidth=e.width,!1!==e.dashes?this._drawDashedLine(t,e,o):this._drawLine(t,e,o)}},{key:"_drawLine",value:function(t,e,i,n,o){if(this.from!=this.to)this._line(t,e,i,n,o);else{var r=this._getCircleData(t),g=pr(r,3),s=g[0],a=g[1],A=g[2];this._circle(t,e,s,a,A)}}},{key:"_drawDashedLine",value:function(t,e,i,n,o){t.lineCap="round";var r=gr(e.dashes)?e.dashes:[5,5];if(void 0!==t.setLineDash){if(t.save(),t.setLineDash(r),t.lineDashOffset=0,this.from!=this.to)this._line(t,e,i);else{var g=this._getCircleData(t),s=pr(g,3),a=s[0],A=s[1],C=s[2];this._circle(t,e,a,A,C)}t.setLineDash([0]),t.lineDashOffset=0,t.restore()}else{if(this.from!=this.to)gt(t,this.from.x,this.from.y,this.to.x,this.to.y,r);else{var I=this._getCircleData(t),l=pr(I,3),c=l[0],h=l[1],u=l[2];this._circle(t,e,c,h,u)}this.enableShadow(t,e),t.stroke(),this.disableShadow(t,e)}}},{key:"findBorderPosition",value:function(t,e,i){return this.from!=this.to?this._findBorderPosition(t,e,i):this._findBorderPositionCircle(t,e,i)}},{key:"findBorderPositions",value:function(t){if(this.from!=this.to)return{from:this._findBorderPosition(this.from,t),to:this._findBorderPosition(this.to,t)};var e,i=Ho(e=this._getCircleData(t)).call(e,0,2),n=pr(i,2),o=n[0],r=n[1];return{from:this._findBorderPositionCircle(this.from,t,{x:o,y:r,low:.25,high:.6,direction:-1}),to:this._findBorderPositionCircle(this.from,t,{x:o,y:r,low:.6,high:.8,direction:1})}}},{key:"_getCircleData",value:function(t){var e=this.options.selfReference.size;void 0!==t&&void 0===this.from.shape.width&&this.from.shape.resize(t);var i=hI.getSelfRefCoordinates(t,this.options.selfReference.angle,e,this.from);return[i.x,i.y,e]}},{key:"_pointOnCircle",value:function(t,e,i,n){var o=2*n*Math.PI;return{x:t+i*Math.cos(o),y:e-i*Math.sin(o)}}},{key:"_findBorderPositionCircle",value:function(t,e,i){var n,o=i.x,r=i.y,g=i.low,s=i.high,a=i.direction,A=this.options.selfReference.size,C=.5*(g+s),I=0;do{C=.5*(g+s),n=this._pointOnCircle(o,r,A,C);var l=Math.atan2(t.y-n.y,t.x-n.x),c=t.distanceToBorder(e,l)-Math.sqrt(Math.pow(n.x-t.x,2)+Math.pow(n.y-t.y,2));if(Math.abs(c)<.05)break;c>0?a>0?g=C:s=C:a>0?s=C:g=C,++I}while(g<=s&&I<10);return Gl(Gl({},n),{},{t:C})}},{key:"getLineWidth",value:function(t,e){return!0===t?Math.max(this.selectionWidth,.3/this._body.view.scale):!0===e?Math.max(this.hoverWidth,.3/this._body.view.scale):Math.max(this.options.width,.3/this._body.view.scale)}},{key:"getColor",value:function(t,e){if(!1!==e.inheritsColor){if("both"===e.inheritsColor&&this.from.id!==this.to.id){var i=t.createLinearGradient(this.from.x,this.from.y,this.to.x,this.to.y),n=this.from.options.color.highlight.border,o=this.to.options.color.highlight.border;return!1===this.from.selected&&!1===this.to.selected?(n=qr(this.from.options.color.border,e.opacity),o=qr(this.to.options.color.border,e.opacity)):!0===this.from.selected&&!1===this.to.selected?o=this.to.options.color.border:!1===this.from.selected&&!0===this.to.selected&&(n=this.from.options.color.border),i.addColorStop(0,n),i.addColorStop(1,o),i}return"to"===e.inheritsColor?qr(this.to.options.color.border,e.opacity):qr(this.from.options.color.border,e.opacity)}return qr(e.color,e.opacity)}},{key:"_circle",value:function(t,e,i,n,o){this.enableShadow(t,e);var r=0,g=2*Math.PI;if(!this.options.selfReference.renderBehindTheNode){var s=this.options.selfReference.angle,a=this.options.selfReference.angle+Math.PI,A=this._findBorderPositionCircle(this.from,t,{x:i,y:n,low:s,high:a,direction:-1}),C=this._findBorderPositionCircle(this.from,t,{x:i,y:n,low:s,high:a,direction:1});r=Math.atan2(A.y-n,A.x-i),g=Math.atan2(C.y-n,C.x-i)}t.beginPath(),t.arc(i,n,o,r,g,!1),t.stroke(),this.disableShadow(t,e)}},{key:"getDistanceToEdge",value:function(t,e,i,n,o,r){if(this.from!=this.to)return this._getDistanceToEdge(t,e,i,n,o,r);var g=this._getCircleData(void 0),s=pr(g,3),a=s[0],A=s[1],C=s[2],I=a-o,l=A-r;return Math.abs(Math.sqrt(I*I+l*l)-C)}},{key:"_getDistanceToLine",value:function(t,e,i,n,o,r){var g=i-t,s=n-e,a=((o-t)*g+(r-e)*s)/(g*g+s*s);a>1?a=1:a<0&&(a=0);var A=t+a*g-o,C=e+a*s-r;return Math.sqrt(A*A+C*C)}},{key:"getArrowData",value:function(t,e,i,n,o,r){var g,s,a,A,C,I,l,c=r.width;"from"===e?(a=this.from,A=this.to,C=r.fromArrowScale<0,I=Math.abs(r.fromArrowScale),l=r.fromArrowType):"to"===e?(a=this.to,A=this.from,C=r.toArrowScale<0,I=Math.abs(r.toArrowScale),l=r.toArrowType):(a=this.to,A=this.from,C=r.middleArrowScale<0,I=Math.abs(r.middleArrowScale),l=r.middleArrowType);var h=15*I+3*c;if(a!=A){var u=h/wl(a.x-A.x,a.y-A.y);if("middle"!==e)if(!0===this.options.smooth.enabled){var d=this._findBorderPosition(a,t,{via:i}),p=this.getPoint(d.t+u*("from"===e?1:-1),i);g=Math.atan2(d.y-p.y,d.x-p.x),s=d}else g=Math.atan2(a.y-A.y,a.x-A.x),s=this._findBorderPosition(a,t);else{var f=(C?-u:u)/2,v=this.getPoint(.5+f,i),m=this.getPoint(.5-f,i);g=Math.atan2(v.y-m.y,v.x-m.x),s=this.getPoint(.5,i)}}else{var y=this._getCircleData(t),b=pr(y,3),w=b[0],x=b[1],k=b[2];if("from"===e){var _=this.options.selfReference.angle,D=this.options.selfReference.angle+Math.PI,O=this._findBorderPositionCircle(this.from,t,{x:w,y:x,low:_,high:D,direction:-1});g=-2*O.t*Math.PI+1.5*Math.PI+.1*Math.PI,s=O}else if("to"===e){var M=this.options.selfReference.angle,T=this.options.selfReference.angle+Math.PI,N=this._findBorderPositionCircle(this.from,t,{x:w,y:x,low:M,high:T,direction:1});g=-2*N.t*Math.PI+1.5*Math.PI-1.1*Math.PI,s=N}else{var E=this.options.selfReference.angle/(2*Math.PI);s=this._pointOnCircle(w,x,k,E),g=-2*E*Math.PI+1.5*Math.PI+.1*Math.PI}}return{point:s,core:{x:s.x-.9*h*Math.cos(g),y:s.y-.9*h*Math.sin(g)},angle:g,length:h,type:l}}},{key:"drawArrowHead",value:function(t,e,i,n,o){t.strokeStyle=this.getColor(t,e),t.fillStyle=t.strokeStyle,t.lineWidth=e.width,zl.draw(t,o)&&(this.enableShadow(t,e),wI(t).call(t),this.disableShadow(t,e))}},{key:"enableShadow",value:function(t,e){!0===e.shadow&&(t.shadowColor=e.shadowColor,t.shadowBlur=e.shadowSize,t.shadowOffsetX=e.shadowX,t.shadowOffsetY=e.shadowY)}},{key:"disableShadow",value:function(t,e){!0===e.shadow&&(t.shadowColor="rgba(0,0,0,0)",t.shadowBlur=0,t.shadowOffsetX=0,t.shadowOffsetY=0)}},{key:"drawBackground",value:function(t,e){if(!1!==e.background){var i={strokeStyle:t.strokeStyle,lineWidth:t.lineWidth,dashes:t.dashes};t.strokeStyle=e.backgroundColor,t.lineWidth=e.backgroundSize,this.setStrokeDashed(t,e.backgroundDashes),t.stroke(),t.strokeStyle=i.strokeStyle,t.lineWidth=i.lineWidth,t.dashes=i.dashes,this.setStrokeDashed(t,e.dashes)}}},{key:"setStrokeDashed",value:function(t,e){if(!1!==e)if(void 0!==t.setLineDash){var i=gr(e)?e:[5,5];t.setLineDash(i)}else console.warn("setLineDash is not supported in this browser. The dashed stroke cannot be used.");else void 0!==t.setLineDash?t.setLineDash([]):console.warn("setLineDash is not supported in this browser. The dashed stroke cannot be used.")}}]),t}();function Ll(t,e){var i=En(t);if(xn){var n=xn(t);e&&(n=wo(n).call(n,(function(e){return wn(t,e).enumerable}))),i.push.apply(i,n)}return i}function Wl(t){for(var e=1;e<arguments.length;e++){var i,n=null!=arguments[e]?arguments[e]:{};if(e%2)eo(i=Ll(Object(n),!0)).call(i,(function(e){Mn(t,e,n[e])}));else if(vn)pn(t,vn(n));else{var o;eo(o=Ll(Object(n))).call(o,(function(e){dn(t,e,wn(n,e))}))}}return t}function Ql(t){var e=function(){if("undefined"==typeof Reflect||!wA)return!1;if(wA.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wA(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=XA(t);if(e){var o=XA(this).constructor;i=wA(n,arguments,o)}else i=n.apply(this,arguments);return VA(this,i)}}var Ul=function(t){YA(i,t);var e=Ql(i);function i(t,n,o){return qa(this,i),e.call(this,t,n,o)}return tA(i,[{key:"_findBorderPositionBezier",value:function(t,e){var i,n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this._getViaCoordinates(),r=10,g=.2,s=!1,a=1,A=0,C=this.to;t.id===this.from.id&&(C=this.from,s=!0);var I=0;do{n=.5*(A+a),i=this.getPoint(n,o);var l=Math.atan2(C.y-i.y,C.x-i.x),c=C.distanceToBorder(e,l),h=Math.sqrt(Math.pow(i.x-C.x,2)+Math.pow(i.y-C.y,2)),u=c-h;if(Math.abs(u)<g)break;u<0?!1===s?A=n:a=n:!1===s?a=n:A=n,++I}while(A<=a&&I<r);return Wl(Wl({},i),{},{t:n})}},{key:"_getDistanceToBezierEdge",value:function(t,e,i,n,o,r,g){var s,a,A,C,I,l=1e9,c=t,h=e;for(a=1;a<10;a++)A=.1*a,C=Math.pow(1-A,2)*t+2*A*(1-A)*g.x+Math.pow(A,2)*i,I=Math.pow(1-A,2)*e+2*A*(1-A)*g.y+Math.pow(A,2)*n,a>0&&(l=(s=this._getDistanceToLine(c,h,C,I,o,r))<l?s:l),c=C,h=I;return l}},{key:"_bezierCurve",value:function(t,e,i,n){t.beginPath(),t.moveTo(this.fromPoint.x,this.fromPoint.y),null!=i&&null!=i.x?null!=n&&null!=n.x?t.bezierCurveTo(i.x,i.y,n.x,n.y,this.toPoint.x,this.toPoint.y):t.quadraticCurveTo(i.x,i.y,this.toPoint.x,this.toPoint.y):t.lineTo(this.toPoint.x,this.toPoint.y),this.drawBackground(t,e),this.enableShadow(t,e),t.stroke(),this.disableShadow(t,e)}},{key:"getViaNode",value:function(){return this._getViaCoordinates()}}]),i}(Pl);function Yl(t){var e=function(){if("undefined"==typeof Reflect||!wA)return!1;if(wA.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wA(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=XA(t);if(e){var o=XA(this).constructor;i=wA(n,arguments,o)}else i=n.apply(this,arguments);return VA(this,i)}}var Vl=function(t){YA(i,t);var e=Yl(i);function i(t,n,o){var r;return qa(this,i),(r=e.call(this,t,n,o)).via=r.via,r._boundFunction=function(){r.positionBezierNode()},r._body.emitter.on("_repositionBezierNodes",r._boundFunction),r}return tA(i,[{key:"setOptions",value:function(t){fl(XA(i.prototype),"setOptions",this).call(this,t);var e=!1;this.options.physics!==t.physics&&(e=!0),this.options=t,this.id=this.options.id,this.from=this._body.nodes[this.options.from],this.to=this._body.nodes[this.options.to],this.setupSupportNode(),this.connect(),!0===e&&(this.via.setOptions({physics:this.options.physics}),this.positionBezierNode())}},{key:"connect",value:function(){this.from=this._body.nodes[this.options.from],this.to=this._body.nodes[this.options.to],void 0===this.from||void 0===this.to||!1===this.options.physics||this.from.id===this.to.id?this.via.setOptions({physics:!1}):this.via.setOptions({physics:!0})}},{key:"cleanup",value:function(){return this._body.emitter.off("_repositionBezierNodes",this._boundFunction),void 0!==this.via&&(delete this._body.nodes[this.via.id],this.via=void 0,!0)}},{key:"setupSupportNode",value:function(){if(void 0===this.via){var t="edgeId:"+this.id,e=this._body.functions.createNode({id:t,shape:"circle",physics:!0,hidden:!0});this._body.nodes[t]=e,this.via=e,this.via.parentEdgeId=this.id,this.positionBezierNode()}}},{key:"positionBezierNode",value:function(){void 0!==this.via&&void 0!==this.from&&void 0!==this.to?(this.via.x=.5*(this.from.x+this.to.x),this.via.y=.5*(this.from.y+this.to.y)):void 0!==this.via&&(this.via.x=0,this.via.y=0)}},{key:"_line",value:function(t,e,i){this._bezierCurve(t,e,i)}},{key:"_getViaCoordinates",value:function(){return this.via}},{key:"getViaNode",value:function(){return this.via}},{key:"getPoint",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.via;if(this.from===this.to){var i=this._getCircleData(),n=pr(i,3),o=n[0],r=n[1],g=n[2],s=2*Math.PI*(1-t);return{x:o+g*Math.sin(s),y:r+g-g*(1-Math.cos(s))}}return{x:Math.pow(1-t,2)*this.fromPoint.x+2*t*(1-t)*e.x+Math.pow(t,2)*this.toPoint.x,y:Math.pow(1-t,2)*this.fromPoint.y+2*t*(1-t)*e.y+Math.pow(t,2)*this.toPoint.y}}},{key:"_findBorderPosition",value:function(t,e){return this._findBorderPositionBezier(t,e,this.via)}},{key:"_getDistanceToEdge",value:function(t,e,i,n,o,r){return this._getDistanceToBezierEdge(t,e,i,n,o,r,this.via)}}]),i}(Ul);function Hl(t){var e=function(){if("undefined"==typeof Reflect||!wA)return!1;if(wA.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wA(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=XA(t);if(e){var o=XA(this).constructor;i=wA(n,arguments,o)}else i=n.apply(this,arguments);return VA(this,i)}}var Xl=function(t){YA(i,t);var e=Hl(i);function i(t,n,o){return qa(this,i),e.call(this,t,n,o)}return tA(i,[{key:"_line",value:function(t,e,i){this._bezierCurve(t,e,i)}},{key:"getViaNode",value:function(){return this._getViaCoordinates()}},{key:"_getViaCoordinates",value:function(){var t,e,i=this.options.smooth.roundness,n=this.options.smooth.type,o=Math.abs(this.from.x-this.to.x),r=Math.abs(this.from.y-this.to.y);if("discrete"===n||"diagonalCross"===n){var g,s;g=s=o<=r?i*r:i*o,this.from.x>this.to.x&&(g=-g),this.from.y>=this.to.y&&(s=-s);var a=this.from.x+g,A=this.from.y+s;return"discrete"===n&&(o<=r?a=o<i*r?this.from.x:a:A=r<i*o?this.from.y:A),{x:a,y:A}}if("straightCross"===n){var C=(1-i)*o,I=(1-i)*r;return o<=r?(C=0,this.from.y<this.to.y&&(I=-I)):(this.from.x<this.to.x&&(C=-C),I=0),{x:this.to.x+C,y:this.to.y+I}}if("horizontal"===n){var l=(1-i)*o;return this.from.x<this.to.x&&(l=-l),{x:this.to.x+l,y:this.from.y}}if("vertical"===n){var c=(1-i)*r;return this.from.y<this.to.y&&(c=-c),{x:this.from.x,y:this.to.y+c}}if("curvedCW"===n){o=this.to.x-this.from.x,r=this.from.y-this.to.y;var h=Math.sqrt(o*o+r*r),u=Math.PI,d=(Math.atan2(r,o)+(.5*i+.5)*u)%(2*u);return{x:this.from.x+(.5*i+.5)*h*Math.sin(d),y:this.from.y+(.5*i+.5)*h*Math.cos(d)}}if("curvedCCW"===n){o=this.to.x-this.from.x,r=this.from.y-this.to.y;var p=Math.sqrt(o*o+r*r),f=Math.PI,v=(Math.atan2(r,o)+(.5*-i+.5)*f)%(2*f);return{x:this.from.x+(.5*i+.5)*p*Math.sin(v),y:this.from.y+(.5*i+.5)*p*Math.cos(v)}}t=e=o<=r?i*r:i*o,this.from.x>this.to.x&&(t=-t),this.from.y>=this.to.y&&(e=-e);var m=this.from.x+t,y=this.from.y+e;return o<=r?m=this.from.x<=this.to.x?this.to.x<m?this.to.x:m:this.to.x>m?this.to.x:m:y=this.from.y>=this.to.y?this.to.y>y?this.to.y:y:this.to.y<y?this.to.y:y,{x:m,y:y}}},{key:"_findBorderPosition",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._findBorderPositionBezier(t,e,i.via)}},{key:"_getDistanceToEdge",value:function(t,e,i,n,o,r){var g=arguments.length>6&&void 0!==arguments[6]?arguments[6]:this._getViaCoordinates();return this._getDistanceToBezierEdge(t,e,i,n,o,r,g)}},{key:"getPoint",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._getViaCoordinates(),i=t,n=Math.pow(1-i,2)*this.fromPoint.x+2*i*(1-i)*e.x+Math.pow(i,2)*this.toPoint.x,o=Math.pow(1-i,2)*this.fromPoint.y+2*i*(1-i)*e.y+Math.pow(i,2)*this.toPoint.y;return{x:n,y:o}}}]),i}(Ul);function Jl(t){var e=function(){if("undefined"==typeof Reflect||!wA)return!1;if(wA.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wA(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=XA(t);if(e){var o=XA(this).constructor;i=wA(n,arguments,o)}else i=n.apply(this,arguments);return VA(this,i)}}function Kl(t){var e=function(){if("undefined"==typeof Reflect||!wA)return!1;if(wA.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wA(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=XA(t);if(e){var o=XA(this).constructor;i=wA(n,arguments,o)}else i=n.apply(this,arguments);return VA(this,i)}}var ql=function(t){YA(i,t);var e=Kl(i);function i(t,n,o){return qa(this,i),e.call(this,t,n,o)}return tA(i,[{key:"_line",value:function(t,e,i){var n=i[0],o=i[1];this._bezierCurve(t,e,n,o)}},{key:"_getViaCoordinates",value:function(){var t,e,i,n,o=this.from.x-this.to.x,r=this.from.y-this.to.y,g=this.options.smooth.roundness;return(Math.abs(o)>Math.abs(r)||!0===this.options.smooth.forceDirection||"horizontal"===this.options.smooth.forceDirection)&&"vertical"!==this.options.smooth.forceDirection?(e=this.from.y,n=this.to.y,t=this.from.x-g*o,i=this.to.x+g*o):(e=this.from.y-g*r,n=this.to.y+g*r,t=this.from.x,i=this.to.x),[{x:t,y:e},{x:i,y:n}]}},{key:"getViaNode",value:function(){return this._getViaCoordinates()}},{key:"_findBorderPosition",value:function(t,e){return this._findBorderPositionBezier(t,e)}},{key:"_getDistanceToEdge",value:function(t,e,i,n,o,r){var g=arguments.length>6&&void 0!==arguments[6]?arguments[6]:this._getViaCoordinates(),s=pr(g,2),a=s[0],A=s[1];return this._getDistanceToBezierEdge2(t,e,i,n,o,r,a,A)}},{key:"getPoint",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._getViaCoordinates(),i=pr(e,2),n=i[0],o=i[1],r=t,g=[Math.pow(1-r,3),3*r*Math.pow(1-r,2),3*Math.pow(r,2)*(1-r),Math.pow(r,3)],s=g[0]*this.fromPoint.x+g[1]*n.x+g[2]*o.x+g[3]*this.toPoint.x,a=g[0]*this.fromPoint.y+g[1]*n.y+g[2]*o.y+g[3]*this.toPoint.y;return{x:s,y:a}}}]),i}(function(t){YA(i,t);var e=Jl(i);function i(t,n,o){return qa(this,i),e.call(this,t,n,o)}return tA(i,[{key:"_getDistanceToBezierEdge2",value:function(t,e,i,n,o,r,g,s){for(var a=1e9,A=t,C=e,I=[0,0,0,0],l=1;l<10;l++){var c=.1*l;I[0]=Math.pow(1-c,3),I[1]=3*c*Math.pow(1-c,2),I[2]=3*Math.pow(c,2)*(1-c),I[3]=Math.pow(c,3);var h=I[0]*t+I[1]*g.x+I[2]*s.x+I[3]*i,u=I[0]*e+I[1]*g.y+I[2]*s.y+I[3]*n;if(l>0){var d=this._getDistanceToLine(A,C,h,u,o,r);a=d<a?d:a}A=h,C=u}return a}}]),i}(Ul));function $l(t){var e=function(){if("undefined"==typeof Reflect||!wA)return!1;if(wA.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wA(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=XA(t);if(e){var o=XA(this).constructor;i=wA(n,arguments,o)}else i=n.apply(this,arguments);return VA(this,i)}}var tc=function(t){YA(i,t);var e=$l(i);function i(t,n,o){return qa(this,i),e.call(this,t,n,o)}return tA(i,[{key:"_line",value:function(t,e){t.beginPath(),t.moveTo(this.fromPoint.x,this.fromPoint.y),t.lineTo(this.toPoint.x,this.toPoint.y),this.enableShadow(t,e),t.stroke(),this.disableShadow(t,e)}},{key:"getViaNode",value:function(){}},{key:"getPoint",value:function(t){return{x:(1-t)*this.fromPoint.x+t*this.toPoint.x,y:(1-t)*this.fromPoint.y+t*this.toPoint.y}}},{key:"_findBorderPosition",value:function(t,e){var i=this.to,n=this.from;t.id===this.from.id&&(i=this.from,n=this.to);var o=Math.atan2(i.y-n.y,i.x-n.x),r=i.x-n.x,g=i.y-n.y,s=Math.sqrt(r*r+g*g),a=(s-t.distanceToBorder(e,o))/s;return{x:(1-a)*n.x+a*i.x,y:(1-a)*n.y+a*i.y,t:0}}},{key:"_getDistanceToEdge",value:function(t,e,i,n,o,r){return this._getDistanceToLine(t,e,i,n,o,r)}}]),i}(Pl),ec=function(){function t(e,i,n,o,r){if(qa(this,t),void 0===i)throw new Error("No body provided");this.options=Cg(o),this.globalOptions=o,this.defaultOptions=r,this.body=i,this.imagelist=n,this.id=void 0,this.fromId=void 0,this.toId=void 0,this.selected=!1,this.hover=!1,this.labelDirty=!0,this.baseWidth=this.options.width,this.baseFontSize=this.options.font.size,this.from=void 0,this.to=void 0,this.edgeType=void 0,this.connected=!1,this.labelModule=new mI(this.body,this.options,!0),this.setOptions(e)}return tA(t,[{key:"setOptions",value:function(e){if(e){var i=void 0!==e.physics&&this.options.physics!==e.physics||void 0!==e.hidden&&(this.options.hidden||!1)!==(e.hidden||!1)||void 0!==e.from&&this.options.from!==e.from||void 0!==e.to&&this.options.to!==e.to;t.parseOptions(this.options,e,!0,this.globalOptions),void 0!==e.id&&(this.id=e.id),void 0!==e.from&&(this.fromId=e.from),void 0!==e.to&&(this.toId=e.to),void 0!==e.title&&(this.title=e.title),void 0!==e.value&&(e.value=cI(e.value));var n=[e,this.options,this.defaultOptions];return this.chooser=hI.choosify("edge",n),this.updateLabelModule(e),i=this.updateEdgeType()||i,this._setInteractionWidths(),this.connect(),i}}},{key:"getFormattingValues",value:function(){var t=!0===this.options.arrows.to||!0===this.options.arrows.to.enabled,e=!0===this.options.arrows.from||!0===this.options.arrows.from.enabled,i=!0===this.options.arrows.middle||!0===this.options.arrows.middle.enabled,n=this.options.color.inherit,o={toArrow:t,toArrowScale:this.options.arrows.to.scaleFactor,toArrowType:this.options.arrows.to.type,toArrowSrc:this.options.arrows.to.src,toArrowImageWidth:this.options.arrows.to.imageWidth,toArrowImageHeight:this.options.arrows.to.imageHeight,middleArrow:i,middleArrowScale:this.options.arrows.middle.scaleFactor,middleArrowType:this.options.arrows.middle.type,middleArrowSrc:this.options.arrows.middle.src,middleArrowImageWidth:this.options.arrows.middle.imageWidth,middleArrowImageHeight:this.options.arrows.middle.imageHeight,fromArrow:e,fromArrowScale:this.options.arrows.from.scaleFactor,fromArrowType:this.options.arrows.from.type,fromArrowSrc:this.options.arrows.from.src,fromArrowImageWidth:this.options.arrows.from.imageWidth,fromArrowImageHeight:this.options.arrows.from.imageHeight,arrowStrikethrough:this.options.arrowStrikethrough,color:n?void 0:this.options.color.color,inheritsColor:n,opacity:this.options.color.opacity,hidden:this.options.hidden,length:this.options.length,shadow:this.options.shadow.enabled,shadowColor:this.options.shadow.color,shadowSize:this.options.shadow.size,shadowX:this.options.shadow.x,shadowY:this.options.shadow.y,dashes:this.options.dashes,width:this.options.width,background:this.options.background.enabled,backgroundColor:this.options.background.color,backgroundSize:this.options.background.size,backgroundDashes:this.options.background.dashes};if(this.selected||this.hover)if(!0===this.chooser){if(this.selected){var r=this.options.selectionWidth;"function"==typeof r?o.width=r(o.width):"number"==typeof r&&(o.width+=r),o.width=Math.max(o.width,.3/this.body.view.scale),o.color=this.options.color.highlight,o.shadow=this.options.shadow.enabled}else if(this.hover){var g=this.options.hoverWidth;"function"==typeof g?o.width=g(o.width):"number"==typeof g&&(o.width+=g),o.width=Math.max(o.width,.3/this.body.view.scale),o.color=this.options.color.hover,o.shadow=this.options.shadow.enabled}}else"function"==typeof this.chooser&&(this.chooser(o,this.options.id,this.selected,this.hover),void 0!==o.color&&(o.inheritsColor=!1),!1===o.shadow&&(o.shadowColor===this.options.shadow.color&&o.shadowSize===this.options.shadow.size&&o.shadowX===this.options.shadow.x&&o.shadowY===this.options.shadow.y||(o.shadow=!0)));else o.shadow=this.options.shadow.enabled,o.width=Math.max(o.width,.3/this.body.view.scale);return o}},{key:"updateLabelModule",value:function(t){var e=[t,this.options,this.globalOptions,this.defaultOptions];this.labelModule.update(this.options,e),void 0!==this.labelModule.baseSize&&(this.baseFontSize=this.labelModule.baseSize)}},{key:"updateEdgeType",value:function(){var t=this.options.smooth,e=!1,i=!0;return void 0!==this.edgeType&&((this.edgeType instanceof Vl&&!0===t.enabled&&"dynamic"===t.type||this.edgeType instanceof ql&&!0===t.enabled&&"cubicBezier"===t.type||this.edgeType instanceof Xl&&!0===t.enabled&&"dynamic"!==t.type&&"cubicBezier"!==t.type||this.edgeType instanceof tc&&!1===t.type.enabled)&&(i=!1),!0===i&&(e=this.cleanup())),!0===i?!0===t.enabled?"dynamic"===t.type?(e=!0,this.edgeType=new Vl(this.options,this.body,this.labelModule)):"cubicBezier"===t.type?this.edgeType=new ql(this.options,this.body,this.labelModule):this.edgeType=new Xl(this.options,this.body,this.labelModule):this.edgeType=new tc(this.options,this.body,this.labelModule):this.edgeType.setOptions(this.options),e}},{key:"connect",value:function(){this.disconnect(),this.from=this.body.nodes[this.fromId]||void 0,this.to=this.body.nodes[this.toId]||void 0,this.connected=void 0!==this.from&&void 0!==this.to,!0===this.connected?(this.from.attachEdge(this),this.to.attachEdge(this)):(this.from&&this.from.detachEdge(this),this.to&&this.to.detachEdge(this)),this.edgeType.connect()}},{key:"disconnect",value:function(){this.from&&(this.from.detachEdge(this),this.from=void 0),this.to&&(this.to.detachEdge(this),this.to=void 0),this.connected=!1}},{key:"getTitle",value:function(){return this.title}},{key:"isSelected",value:function(){return this.selected}},{key:"getValue",value:function(){return this.options.value}},{key:"setValueRange",value:function(t,e,i){if(void 0!==this.options.value){var n=this.options.scaling.customScalingFunction(t,e,i,this.options.value),o=this.options.scaling.max-this.options.scaling.min;if(!0===this.options.scaling.label.enabled){var r=this.options.scaling.label.max-this.options.scaling.label.min;this.options.font.size=this.options.scaling.label.min+n*r}this.options.width=this.options.scaling.min+n*o}else this.options.width=this.baseWidth,this.options.font.size=this.baseFontSize;this._setInteractionWidths(),this.updateLabelModule()}},{key:"_setInteractionWidths",value:function(){"function"==typeof this.options.hoverWidth?this.edgeType.hoverWidth=this.options.hoverWidth(this.options.width):this.edgeType.hoverWidth=this.options.hoverWidth+this.options.width,"function"==typeof this.options.selectionWidth?this.edgeType.selectionWidth=this.options.selectionWidth(this.options.width):this.edgeType.selectionWidth=this.options.selectionWidth+this.options.width}},{key:"draw",value:function(t){var e=this.getFormattingValues();if(!e.hidden){var i=this.edgeType.getViaNode(),n={};this.edgeType.fromPoint=this.edgeType.from,this.edgeType.toPoint=this.edgeType.to,e.fromArrow&&(n.from=this.edgeType.getArrowData(t,"from",i,this.selected,this.hover,e),!1===e.arrowStrikethrough&&(this.edgeType.fromPoint=n.from.core),e.fromArrowSrc&&(n.from.image=this.imagelist.load(e.fromArrowSrc)),e.fromArrowImageWidth&&(n.from.imageWidth=e.fromArrowImageWidth),e.fromArrowImageHeight&&(n.from.imageHeight=e.fromArrowImageHeight)),e.toArrow&&(n.to=this.edgeType.getArrowData(t,"to",i,this.selected,this.hover,e),!1===e.arrowStrikethrough&&(this.edgeType.toPoint=n.to.core),e.toArrowSrc&&(n.to.image=this.imagelist.load(e.toArrowSrc)),e.toArrowImageWidth&&(n.to.imageWidth=e.toArrowImageWidth),e.toArrowImageHeight&&(n.to.imageHeight=e.toArrowImageHeight)),e.middleArrow&&(n.middle=this.edgeType.getArrowData(t,"middle",i,this.selected,this.hover,e),e.middleArrowSrc&&(n.middle.image=this.imagelist.load(e.middleArrowSrc)),e.middleArrowImageWidth&&(n.middle.imageWidth=e.middleArrowImageWidth),e.middleArrowImageHeight&&(n.middle.imageHeight=e.middleArrowImageHeight)),this.edgeType.drawLine(t,e,this.selected,this.hover,i),this.drawArrows(t,n,e),this.drawLabel(t,i)}}},{key:"drawArrows",value:function(t,e,i){i.fromArrow&&this.edgeType.drawArrowHead(t,i,this.selected,this.hover,e.from),i.middleArrow&&this.edgeType.drawArrowHead(t,i,this.selected,this.hover,e.middle),i.toArrow&&this.edgeType.drawArrowHead(t,i,this.selected,this.hover,e.to)}},{key:"drawLabel",value:function(t,e){if(void 0!==this.options.label){var i=this.from,n=this.to;if(this.labelModule.differentState(this.selected,this.hover)&&this.labelModule.getTextSize(t,this.selected,this.hover),i.id!=n.id){this.labelModule.pointToSelf=!1;var o=this.edgeType.getPoint(.5,e);t.save();var r=this._getRotation(t);0!=r.angle&&(t.translate(r.x,r.y),t.rotate(r.angle)),this.labelModule.draw(t,o.x,o.y,this.selected,this.hover),t.restore()}else{this.labelModule.pointToSelf=!0;var g=hI.getSelfRefCoordinates(t,this.options.selfReference.angle,this.options.selfReference.size,i);o=this._pointOnCircle(g.x,g.y,this.options.selfReference.size,this.options.selfReference.angle),this.labelModule.draw(t,o.x,o.y,this.selected,this.hover)}}}},{key:"getItemsOnPoint",value:function(t){var e=[];if(this.labelModule.visible()){var i=this._getRotation();hI.pointInRect(this.labelModule.getSize(),t,i)&&e.push({edgeId:this.id,labelId:0})}var n={left:t.x,top:t.y};return this.isOverlappingWith(n)&&e.push({edgeId:this.id}),e}},{key:"isOverlappingWith",value:function(t){if(this.connected){var e=this.from.x,i=this.from.y,n=this.to.x,o=this.to.y,r=t.left,g=t.top;return this.edgeType.getDistanceToEdge(e,i,n,o,r,g)<10}return!1}},{key:"_getRotation",value:function(t){var e=this.edgeType.getViaNode(),i=this.edgeType.getPoint(.5,e);void 0!==t&&this.labelModule.calculateLabelSize(t,this.selected,this.hover,i.x,i.y);var n={x:i.x,y:this.labelModule.size.yLine,angle:0};if(!this.labelModule.visible())return n;if("horizontal"===this.options.font.align)return n;var o=this.from.y-this.to.y,r=this.from.x-this.to.x,g=Math.atan2(o,r);return(g<-1&&r<0||g>0&&r<0)&&(g+=Math.PI),n.angle=g,n}},{key:"_pointOnCircle",value:function(t,e,i,n){return{x:t+i*Math.cos(n),y:e-i*Math.sin(n)}}},{key:"select",value:function(){this.selected=!0}},{key:"unselect",value:function(){this.selected=!1}},{key:"cleanup",value:function(){return this.edgeType.cleanup()}},{key:"remove",value:function(){this.cleanup(),this.disconnect(),delete this.body.edges[this.id]}},{key:"endPointsValid",value:function(){return void 0!==this.body.nodes[this.fromId]&&void 0!==this.body.nodes[this.toId]}}],[{key:"parseOptions",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r=["arrowStrikethrough","id","from","hidden","hoverWidth","labelHighlightBold","length","line","opacity","physics","scaling","selectionWidth","selfReferenceSize","selfReference","to","title","value","width","font","chosen","widthConstraint"];if(zr(r,t,e,i),hI.isValidLabel(e.label)?t.label=e.label:hI.isValidLabel(t.label)||(t.label=void 0),Ig(t,e,"smooth",n),Ig(t,e,"shadow",n),Ig(t,e,"background",n),void 0!==e.dashes&&null!==e.dashes?t.dashes=e.dashes:!0===i&&null===e.dashes&&(t.dashes=Dn(n.dashes)),void 0!==e.scaling&&null!==e.scaling?(void 0!==e.scaling.min&&(t.scaling.min=e.scaling.min),void 0!==e.scaling.max&&(t.scaling.max=e.scaling.max),Ig(t.scaling,e.scaling,"label",n.scaling)):!0===i&&null===e.scaling&&(t.scaling=Dn(n.scaling)),void 0!==e.arrows&&null!==e.arrows)if("string"==typeof e.arrows){var g=e.arrows.toLowerCase();t.arrows.to.enabled=-1!=rr(g).call(g,"to"),t.arrows.middle.enabled=-1!=rr(g).call(g,"middle"),t.arrows.from.enabled=-1!=rr(g).call(g,"from")}else{if("object"!==cr(e.arrows))throw new Error("The arrow newOptions can only be an object or a string. Refer to the documentation. You used:"+SA(e.arrows));Ig(t.arrows,e.arrows,"to",n.arrows),Ig(t.arrows,e.arrows,"middle",n.arrows),Ig(t.arrows,e.arrows,"from",n.arrows)}else!0===i&&null===e.arrows&&(t.arrows=Dn(n.arrows));if(void 0!==e.color&&null!==e.color){var s=Fr(e.color)?{color:e.color,highlight:e.color,hover:e.color,inherit:!1,opacity:1}:e.color,a=t.color;if(o)Gr(a,n.color,!1,i);else for(var A in a)a.hasOwnProperty(A)&&delete a[A];if(Fr(a))a.color=a,a.highlight=a,a.hover=a,a.inherit=!1,void 0===s.opacity&&(a.opacity=1);else{var C=!1;void 0!==s.color&&(a.color=s.color,C=!0),void 0!==s.highlight&&(a.highlight=s.highlight,C=!0),void 0!==s.hover&&(a.hover=s.hover,C=!0),void 0!==s.inherit&&(a.inherit=s.inherit),void 0!==s.opacity&&(a.opacity=Math.min(1,Math.max(0,s.opacity))),!0===C?a.inherit=!1:void 0===a.inherit&&(a.inherit="from")}}else!0===i&&null===e.color&&(t.color=Cg(n.color));!0===i&&null===e.font&&(t.font=Cg(n.font)),e.hasOwnProperty("selfReferenceSize")&&(console.log("The selfReferenceSize property has been deprecated. Please use selfReference property instead. The selfReference can be set like thise selfReference:{size:30, angle:Math.PI / 4}"),t.selfReference.size=e.selfReferenceSize)}}]),t}(),ic=function(){function t(e,i,n){var o,r=this;qa(this,t),this.body=e,this.images=i,this.groups=n,this.body.functions.createEdge=et(o=this.create).call(o,this),this.edgesListeners={add:function(t,e){r.add(e.items)},update:function(t,e){r.update(e.items)},remove:function(t,e){r.remove(e.items)}},this.options={},this.defaultOptions={arrows:{to:{enabled:!1,scaleFactor:1,type:"arrow"},middle:{enabled:!1,scaleFactor:1,type:"arrow"},from:{enabled:!1,scaleFactor:1,type:"arrow"}},arrowStrikethrough:!0,color:{color:"#848484",highlight:"#848484",hover:"#848484",inherit:"from",opacity:1},dashes:!1,font:{color:"#343434",size:14,face:"arial",background:"none",strokeWidth:2,strokeColor:"#ffffff",align:"horizontal",multi:!1,vadjust:0,bold:{mod:"bold"},boldital:{mod:"bold italic"},ital:{mod:"italic"},mono:{mod:"",size:15,face:"courier new",vadjust:2}},hidden:!1,hoverWidth:1.5,label:void 0,labelHighlightBold:!0,length:void 0,physics:!0,scaling:{min:1,max:15,label:{enabled:!0,min:14,max:30,maxVisible:30,drawThreshold:5},customScalingFunction:function(t,e,i,n){if(e===t)return.5;var o=1/(e-t);return Math.max(0,(n-t)*o)}},selectionWidth:1.5,selfReference:{size:20,angle:Math.PI/4,renderBehindTheNode:!0},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:10,x:5,y:5},background:{enabled:!1,color:"rgba(111,111,111,1)",size:10,dashes:!1},smooth:{enabled:!0,type:"dynamic",forceDirection:"none",roundness:.5},title:void 0,width:1,value:void 0},Gr(this.options,this.defaultOptions),this.bindEventListeners()}return tA(t,[{key:"bindEventListeners",value:function(){var t,e,i=this;this.body.emitter.on("_forceDisableDynamicCurves",(function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];"dynamic"===t&&(t="continuous");var n=!1;for(var o in i.body.edges)if(i.body.edges.hasOwnProperty(o)){var r=i.body.edges[o],g=i.body.data.edges.get(o);if(null!=g){var s=g.smooth;void 0!==s&&!0===s.enabled&&"dynamic"===s.type&&(void 0===t?r.setOptions({smooth:!1}):r.setOptions({smooth:{type:t}}),n=!0)}}!0===e&&!0===n&&i.body.emitter.emit("_dataChanged")})),this.body.emitter.on("_dataUpdated",(function(){i.reconnectEdges()})),this.body.emitter.on("refreshEdges",et(t=this.refresh).call(t,this)),this.body.emitter.on("refresh",et(e=this.refresh).call(e,this)),this.body.emitter.on("destroy",(function(){Yr(i.edgesListeners,(function(t,e){i.body.data.edges&&i.body.data.edges.off(e,t)})),delete i.body.functions.createEdge,delete i.edgesListeners.add,delete i.edgesListeners.update,delete i.edgesListeners.remove,delete i.edgesListeners}))}},{key:"setOptions",value:function(t){if(void 0!==t){ec.parseOptions(this.options,t,!0,this.defaultOptions,!0);var e=!1;if(void 0!==t.smooth)for(var i in this.body.edges)this.body.edges.hasOwnProperty(i)&&(e=this.body.edges[i].updateEdgeType()||e);if(void 0!==t.font)for(var n in this.body.edges)this.body.edges.hasOwnProperty(n)&&this.body.edges[n].updateLabelModule();void 0===t.hidden&&void 0===t.physics&&!0!==e||this.body.emitter.emit("_dataChanged")}}},{key:"setData",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.body.data.edges;if(t instanceof nI||t instanceof oI)this.body.data.edges=t;else if(gr(t))this.body.data.edges=new nI,this.body.data.edges.add(t);else{if(t)throw new TypeError("Array or DataSet expected");this.body.data.edges=new nI}if(n&&Yr(this.edgesListeners,(function(t,e){n.off(e,t)})),this.body.edges={},this.body.data.edges){Yr(this.edgesListeners,(function(t,i){e.body.data.edges.on(i,t)}));var o=this.body.data.edges.getIds();this.add(o,!0)}this.body.emitter.emit("_adjustEdgesForHierarchicalLayout"),!1===i&&this.body.emitter.emit("_dataChanged")}},{key:"add",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.body.edges,n=this.body.data.edges,o=0;o<t.length;o++){var r=t[o],g=i[r];g&&g.disconnect();var s=n.get(r,{showInternalIds:!0});i[r]=this.create(s)}this.body.emitter.emit("_adjustEdgesForHierarchicalLayout"),!1===e&&this.body.emitter.emit("_dataChanged")}},{key:"update",value:function(t){for(var e=this.body.edges,i=this.body.data.edges,n=!1,o=0;o<t.length;o++){var r=t[o],g=i.get(r),s=e[r];void 0!==s?(s.disconnect(),n=s.setOptions(g)||n,s.connect()):(this.body.edges[r]=this.create(g),n=!0)}!0===n?(this.body.emitter.emit("_adjustEdgesForHierarchicalLayout"),this.body.emitter.emit("_dataChanged")):this.body.emitter.emit("_dataUpdated")}},{key:"remove",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(0!==t.length){var i=this.body.edges;Yr(t,(function(t){var e=i[t];void 0!==e&&e.remove()})),e&&this.body.emitter.emit("_dataChanged")}}},{key:"refresh",value:function(){var t=this;Yr(this.body.edges,(function(e,i){var n=t.body.data.edges.get(i);void 0!==n&&e.setOptions(n)}))}},{key:"create",value:function(t){return new ec(t,this.body,this.images,this.options,this.defaultOptions)}},{key:"reconnectEdges",value:function(){var t,e=this.body.nodes,i=this.body.edges;for(t in e)e.hasOwnProperty(t)&&(e[t].edges=[]);for(t in i)if(i.hasOwnProperty(t)){var n=i[t];n.from=null,n.to=null,n.connect()}}},{key:"getConnectedNodes",value:function(t){var e=[];if(void 0!==this.body.edges[t]){var i=this.body.edges[t];void 0!==i.fromId&&e.push(i.fromId),void 0!==i.toId&&e.push(i.toId)}return e}},{key:"_updateState",value:function(){this._addMissingEdges(),this._removeInvalidEdges()}},{key:"_removeInvalidEdges",value:function(){var t=this,e=[];Yr(this.body.edges,(function(i,n){var o=t.body.nodes[i.toId],r=t.body.nodes[i.fromId];void 0!==o&&!0===o.isCluster||void 0!==r&&!0===r.isCluster||void 0!==o&&void 0!==r||e.push(n)})),this.remove(e,!1)}},{key:"_addMissingEdges",value:function(){var t=this.body.data.edges;if(null!=t){var e=this.body.edges,i=[];eo(t).call(t,(function(t,n){void 0===e[n]&&i.push(n)})),this.add(i,!0)}}}]),t}(),nc=function(){function t(e,i,n){qa(this,t),this.body=e,this.physicsBody=i,this.barnesHutTree,this.setOptions(n),this._rng=wr("BARNES HUT SOLVER")}return tA(t,[{key:"setOptions",value:function(t){this.options=t,this.thetaInversed=1/this.options.theta,this.overlapAvoidanceFactor=1-Math.max(0,Math.min(1,this.options.avoidOverlap))}},{key:"solve",value:function(){if(0!==this.options.gravitationalConstant&&this.physicsBody.physicsNodeIndices.length>0){var t,e=this.body.nodes,i=this.physicsBody.physicsNodeIndices,n=i.length,o=this._formBarnesHutTree(e,i);this.barnesHutTree=o;for(var r=0;r<n;r++)(t=e[i[r]]).options.mass>0&&this._getForceContributions(o.root,t)}}},{key:"_getForceContributions",value:function(t,e){this._getForceContribution(t.children.NW,e),this._getForceContribution(t.children.NE,e),this._getForceContribution(t.children.SW,e),this._getForceContribution(t.children.SE,e)}},{key:"_getForceContribution",value:function(t,e){var i,n,o;t.childrenCount>0&&(i=t.centerOfMass.x-e.x,n=t.centerOfMass.y-e.y,(o=Math.sqrt(i*i+n*n))*t.calcSize>this.thetaInversed?this._calculateForces(o,i,n,e,t):4===t.childrenCount?this._getForceContributions(t,e):t.children.data.id!=e.id&&this._calculateForces(o,i,n,e,t))}},{key:"_calculateForces",value:function(t,e,i,n,o){0===t&&(e=t=.1),this.overlapAvoidanceFactor<1&&n.shape.radius&&(t=Math.max(.1+this.overlapAvoidanceFactor*n.shape.radius,t-n.shape.radius));var r=this.options.gravitationalConstant*o.mass*n.options.mass/Math.pow(t,3),g=e*r,s=i*r;this.physicsBody.forces[n.id].x+=g,this.physicsBody.forces[n.id].y+=s}},{key:"_formBarnesHutTree",value:function(t,e){for(var i,n=e.length,o=t[e[0]].x,r=t[e[0]].y,g=t[e[0]].x,s=t[e[0]].y,a=1;a<n;a++){var A=t[e[a]],C=A.x,I=A.y;A.options.mass>0&&(C<o&&(o=C),C>g&&(g=C),I<r&&(r=I),I>s&&(s=I))}var l=Math.abs(g-o)-Math.abs(s-r);l>0?(r-=.5*l,s+=.5*l):(o+=.5*l,g-=.5*l);var c=Math.max(1e-5,Math.abs(g-o)),h=.5*c,u=.5*(o+g),d=.5*(r+s),p={root:{centerOfMass:{x:0,y:0},mass:0,range:{minX:u-h,maxX:u+h,minY:d-h,maxY:d+h},size:c,calcSize:1/c,children:{data:null},maxWidth:0,level:0,childrenCount:4}};this._splitBranch(p.root);for(var f=0;f<n;f++)(i=t[e[f]]).options.mass>0&&this._placeInTree(p.root,i);return p}},{key:"_updateBranchMass",value:function(t,e){var i=t.centerOfMass,n=t.mass+e.options.mass,o=1/n;i.x=i.x*t.mass+e.x*e.options.mass,i.x*=o,i.y=i.y*t.mass+e.y*e.options.mass,i.y*=o,t.mass=n;var r=Math.max(Math.max(e.height,e.radius),e.width);t.maxWidth=t.maxWidth<r?r:t.maxWidth}},{key:"_placeInTree",value:function(t,e,i){1==i&&void 0!==i||this._updateBranchMass(t,e);var n,o=t.children.NW.range;n=o.maxX>e.x?o.maxY>e.y?"NW":"SW":o.maxY>e.y?"NE":"SE",this._placeInRegion(t,e,n)}},{key:"_placeInRegion",value:function(t,e,i){var n=t.children[i];switch(n.childrenCount){case 0:n.children.data=e,n.childrenCount=1,this._updateBranchMass(n,e);break;case 1:n.children.data.x===e.x&&n.children.data.y===e.y?(e.x+=this._rng(),e.y+=this._rng()):(this._splitBranch(n),this._placeInTree(n,e));break;case 4:this._placeInTree(n,e)}}},{key:"_splitBranch",value:function(t){var e=null;1===t.childrenCount&&(e=t.children.data,t.mass=0,t.centerOfMass.x=0,t.centerOfMass.y=0),t.childrenCount=4,t.children.data=null,this._insertRegion(t,"NW"),this._insertRegion(t,"NE"),this._insertRegion(t,"SW"),this._insertRegion(t,"SE"),null!=e&&this._placeInTree(t,e)}},{key:"_insertRegion",value:function(t,e){var i,n,o,r,g=.5*t.size;switch(e){case"NW":i=t.range.minX,n=t.range.minX+g,o=t.range.minY,r=t.range.minY+g;break;case"NE":i=t.range.minX+g,n=t.range.maxX,o=t.range.minY,r=t.range.minY+g;break;case"SW":i=t.range.minX,n=t.range.minX+g,o=t.range.minY+g,r=t.range.maxY;break;case"SE":i=t.range.minX+g,n=t.range.maxX,o=t.range.minY+g,r=t.range.maxY}t.children[e]={centerOfMass:{x:0,y:0},mass:0,range:{minX:i,maxX:n,minY:o,maxY:r},size:.5*t.size,calcSize:2*t.calcSize,children:{data:null},maxWidth:0,level:t.level+1,childrenCount:0}}},{key:"_debug",value:function(t,e){void 0!==this.barnesHutTree&&(t.lineWidth=1,this._drawBranch(this.barnesHutTree.root,t,e))}},{key:"_drawBranch",value:function(t,e,i){void 0===i&&(i="#FF0000"),4===t.childrenCount&&(this._drawBranch(t.children.NW,e),this._drawBranch(t.children.NE,e),this._drawBranch(t.children.SE,e),this._drawBranch(t.children.SW,e)),e.strokeStyle=i,e.beginPath(),e.moveTo(t.range.minX,t.range.minY),e.lineTo(t.range.maxX,t.range.minY),e.stroke(),e.beginPath(),e.moveTo(t.range.maxX,t.range.minY),e.lineTo(t.range.maxX,t.range.maxY),e.stroke(),e.beginPath(),e.moveTo(t.range.maxX,t.range.maxY),e.lineTo(t.range.minX,t.range.maxY),e.stroke(),e.beginPath(),e.moveTo(t.range.minX,t.range.maxY),e.lineTo(t.range.minX,t.range.minY),e.stroke()}}]),t}(),oc=function(){function t(e,i,n){qa(this,t),this._rng=wr("REPULSION SOLVER"),this.body=e,this.physicsBody=i,this.setOptions(n)}return tA(t,[{key:"setOptions",value:function(t){this.options=t}},{key:"solve",value:function(){for(var t,e,i,n,o,r,g,s,a=this.body.nodes,A=this.physicsBody.physicsNodeIndices,C=this.physicsBody.forces,I=this.options.nodeDistance,l=-2/3/I,c=0;c<A.length-1;c++){g=a[A[c]];for(var h=c+1;h<A.length;h++)t=(s=a[A[h]]).x-g.x,e=s.y-g.y,0===(i=Math.sqrt(t*t+e*e))&&(t=i=.1*this._rng()),i<2*I&&(r=i<.5*I?1:l*i+4/3,n=t*(r/=i),o=e*r,C[g.id].x-=n,C[g.id].y-=o,C[s.id].x+=n,C[s.id].y+=o)}}}]),t}(),rc=function(){function t(e,i,n){qa(this,t),this.body=e,this.physicsBody=i,this.setOptions(n)}return tA(t,[{key:"setOptions",value:function(t){this.options=t,this.overlapAvoidanceFactor=Math.max(0,Math.min(1,this.options.avoidOverlap||0))}},{key:"solve",value:function(){for(var t=this.body.nodes,e=this.physicsBody.physicsNodeIndices,i=this.physicsBody.forces,n=this.options.nodeDistance,o=0;o<e.length-1;o++)for(var r=t[e[o]],g=o+1;g<e.length;g++){var s=t[e[g]];if(r.level===s.level){var a=n+this.overlapAvoidanceFactor*((r.shape.radius||0)/2+(s.shape.radius||0)/2),A=s.x-r.x,C=s.y-r.y,I=Math.sqrt(A*A+C*C),l=void 0;l=I<a?-Math.pow(.05*I,2)+Math.pow(.05*a,2):0,0!==I&&(l/=I);var c=A*l,h=C*l;i[r.id].x-=c,i[r.id].y-=h,i[s.id].x+=c,i[s.id].y+=h}}}}]),t}(),gc=function(){function t(e,i,n){qa(this,t),this.body=e,this.physicsBody=i,this.setOptions(n)}return tA(t,[{key:"setOptions",value:function(t){this.options=t}},{key:"solve",value:function(){for(var t,e,i,n,o,r=this.physicsBody.physicsEdgeIndices,g=this.body.edges,s=0;s<r.length;s++)!0===(e=g[r[s]]).connected&&e.toId!==e.fromId&&void 0!==this.body.nodes[e.toId]&&void 0!==this.body.nodes[e.fromId]&&(void 0!==e.edgeType.via?(t=void 0===e.options.length?this.options.springLength:e.options.length,i=e.to,n=e.edgeType.via,o=e.from,this._calculateSpringForce(i,n,.5*t),this._calculateSpringForce(n,o,.5*t)):(t=void 0===e.options.length?1.5*this.options.springLength:e.options.length,this._calculateSpringForce(e.from,e.to,t)))}},{key:"_calculateSpringForce",value:function(t,e,i){var n=t.x-e.x,o=t.y-e.y,r=Math.max(Math.sqrt(n*n+o*o),.01),g=this.options.springConstant*(i-r)/r,s=n*g,a=o*g;void 0!==this.physicsBody.forces[t.id]&&(this.physicsBody.forces[t.id].x+=s,this.physicsBody.forces[t.id].y+=a),void 0!==this.physicsBody.forces[e.id]&&(this.physicsBody.forces[e.id].x-=s,this.physicsBody.forces[e.id].y-=a)}}]),t}(),sc=function(){function t(e,i,n){qa(this,t),this.body=e,this.physicsBody=i,this.setOptions(n)}return tA(t,[{key:"setOptions",value:function(t){this.options=t}},{key:"solve",value:function(){for(var t,e,i,n,o,r,g,s,a,A,C=this.body.edges,I=this.physicsBody.physicsEdgeIndices,l=this.physicsBody.physicsNodeIndices,c=this.physicsBody.forces,h=0;h<l.length;h++){var u=l[h];c[u].springFx=0,c[u].springFy=0}for(var d=0;d<I.length;d++)!0===(e=C[I[d]]).connected&&(t=void 0===e.options.length?this.options.springLength:e.options.length,i=e.from.x-e.to.x,n=e.from.y-e.to.y,s=0===(s=Math.sqrt(i*i+n*n))?.01:s,o=i*(g=this.options.springConstant*(t-s)/s),r=n*g,e.to.level!=e.from.level?(void 0!==c[e.toId]&&(c[e.toId].springFx-=o,c[e.toId].springFy-=r),void 0!==c[e.fromId]&&(c[e.fromId].springFx+=o,c[e.fromId].springFy+=r)):(void 0!==c[e.toId]&&(c[e.toId].x-=.5*o,c[e.toId].y-=.5*r),void 0!==c[e.fromId]&&(c[e.fromId].x+=.5*o,c[e.fromId].y+=.5*r)));g=1;for(var p=0;p<l.length;p++){var f=l[p];a=Math.min(g,Math.max(-g,c[f].springFx)),A=Math.min(g,Math.max(-g,c[f].springFy)),c[f].x+=a,c[f].y+=A}for(var v=0,m=0,y=0;y<l.length;y++){var b=l[y];v+=c[b].x,m+=c[b].y}for(var w=v/l.length,x=m/l.length,k=0;k<l.length;k++){var _=l[k];c[_].x-=w,c[_].y-=x}}}]),t}(),ac=function(){function t(e,i,n){qa(this,t),this.body=e,this.physicsBody=i,this.setOptions(n)}return tA(t,[{key:"setOptions",value:function(t){this.options=t}},{key:"solve",value:function(){for(var t,e,i,n,o=this.body.nodes,r=this.physicsBody.physicsNodeIndices,g=this.physicsBody.forces,s=0;s<r.length;s++){t=-(n=o[r[s]]).x,e=-n.y,i=Math.sqrt(t*t+e*e),this._calculateForces(i,t,e,g,n)}}},{key:"_calculateForces",value:function(t,e,i,n,o){var r=0===t?0:this.options.centralGravity/t;n[o.id].x=e*r,n[o.id].y=i*r}}]),t}();function Ac(t){var e=function(){if("undefined"==typeof Reflect||!wA)return!1;if(wA.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wA(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=XA(t);if(e){var o=XA(this).constructor;i=wA(n,arguments,o)}else i=n.apply(this,arguments);return VA(this,i)}}var Cc=function(t){YA(i,t);var e=Ac(i);function i(t,n,o){var r;return qa(this,i),(r=e.call(this,t,n,o))._rng=wr("FORCE ATLAS 2 BASED REPULSION SOLVER"),r}return tA(i,[{key:"_calculateForces",value:function(t,e,i,n,o){0===t&&(e=t=.1*this._rng()),this.overlapAvoidanceFactor<1&&n.shape.radius&&(t=Math.max(.1+this.overlapAvoidanceFactor*n.shape.radius,t-n.shape.radius));var r=n.edges.length+1,g=this.options.gravitationalConstant*o.mass*n.options.mass*r/Math.pow(t,2),s=e*g,a=i*g;this.physicsBody.forces[n.id].x+=s,this.physicsBody.forces[n.id].y+=a}}]),i}(nc);function Ic(t){var e=function(){if("undefined"==typeof Reflect||!wA)return!1;if(wA.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wA(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=XA(t);if(e){var o=XA(this).constructor;i=wA(n,arguments,o)}else i=n.apply(this,arguments);return VA(this,i)}}var lc=function(t){YA(i,t);var e=Ic(i);function i(t,n,o){return qa(this,i),e.call(this,t,n,o)}return tA(i,[{key:"_calculateForces",value:function(t,e,i,n,o){if(t>0){var r=o.edges.length+1,g=this.options.centralGravity*r*o.options.mass;n[o.id].x=e*g,n[o.id].y=i*g}}}]),i}(ac),cc=function(){function t(e){qa(this,t),this.body=e,this.physicsBody={physicsNodeIndices:[],physicsEdgeIndices:[],forces:{},velocities:{}},this.physicsEnabled=!0,this.simulationInterval=1e3/60,this.requiresTimeout=!0,this.previousStates={},this.referenceState={},this.freezeCache={},this.renderTimer=void 0,this.adaptiveTimestep=!1,this.adaptiveTimestepEnabled=!1,this.adaptiveCounter=0,this.adaptiveInterval=3,this.stabilized=!1,this.startedStabilization=!1,this.stabilizationIterations=0,this.ready=!1,this.options={},this.defaultOptions={enabled:!0,barnesHut:{theta:.5,gravitationalConstant:-2e3,centralGravity:.3,springLength:95,springConstant:.04,damping:.09,avoidOverlap:0},forceAtlas2Based:{theta:.5,gravitationalConstant:-50,centralGravity:.01,springConstant:.08,springLength:100,damping:.4,avoidOverlap:0},repulsion:{centralGravity:.2,springLength:200,springConstant:.05,nodeDistance:100,damping:.09,avoidOverlap:0},hierarchicalRepulsion:{centralGravity:0,springLength:100,springConstant:.01,nodeDistance:120,damping:.09},maxVelocity:50,minVelocity:.75,solver:"barnesHut",stabilization:{enabled:!0,iterations:1e3,updateInterval:50,onlyDynamicEdges:!1,fit:!0},timestep:.5,adaptiveTimestep:!0,wind:{x:0,y:0}},Rr(this.options,this.defaultOptions),this.timestep=.5,this.layoutFailed=!1,this.bindEventListeners()}return tA(t,[{key:"bindEventListeners",value:function(){var t=this;this.body.emitter.on("initPhysics",(function(){t.initPhysics()})),this.body.emitter.on("_layoutFailed",(function(){t.layoutFailed=!0})),this.body.emitter.on("resetPhysics",(function(){t.stopSimulation(),t.ready=!1})),this.body.emitter.on("disablePhysics",(function(){t.physicsEnabled=!1,t.stopSimulation()})),this.body.emitter.on("restorePhysics",(function(){t.setOptions(t.options),!0===t.ready&&t.startSimulation()})),this.body.emitter.on("startSimulation",(function(){!0===t.ready&&t.startSimulation()})),this.body.emitter.on("stopSimulation",(function(){t.stopSimulation()})),this.body.emitter.on("destroy",(function(){t.stopSimulation(!1),t.body.emitter.off()})),this.body.emitter.on("_dataChanged",(function(){t.updatePhysicsData()}))}},{key:"setOptions",value:function(t){if(void 0!==t)if(!1===t)this.options.enabled=!1,this.physicsEnabled=!1,this.stopSimulation();else if(!0===t)this.options.enabled=!0,this.physicsEnabled=!0,this.startSimulation();else{this.physicsEnabled=!0,Zr(["stabilization"],this.options,t),Ig(this.options,t,"stabilization"),void 0===t.enabled&&(this.options.enabled=!0),!1===this.options.enabled&&(this.physicsEnabled=!1,this.stopSimulation());var e=this.options.wind;e&&(("number"!=typeof e.x||pA(e.x))&&(e.x=0),("number"!=typeof e.y||pA(e.y))&&(e.y=0)),this.timestep=this.options.timestep}this.init()}},{key:"init",value:function(){var t;"forceAtlas2Based"===this.options.solver?(t=this.options.forceAtlas2Based,this.nodesSolver=new Cc(this.body,this.physicsBody,t),this.edgesSolver=new gc(this.body,this.physicsBody,t),this.gravitySolver=new lc(this.body,this.physicsBody,t)):"repulsion"===this.options.solver?(t=this.options.repulsion,this.nodesSolver=new oc(this.body,this.physicsBody,t),this.edgesSolver=new gc(this.body,this.physicsBody,t),this.gravitySolver=new ac(this.body,this.physicsBody,t)):"hierarchicalRepulsion"===this.options.solver?(t=this.options.hierarchicalRepulsion,this.nodesSolver=new rc(this.body,this.physicsBody,t),this.edgesSolver=new sc(this.body,this.physicsBody,t),this.gravitySolver=new ac(this.body,this.physicsBody,t)):(t=this.options.barnesHut,this.nodesSolver=new nc(this.body,this.physicsBody,t),this.edgesSolver=new gc(this.body,this.physicsBody,t),this.gravitySolver=new ac(this.body,this.physicsBody,t)),this.modelOptions=t}},{key:"initPhysics",value:function(){!0===this.physicsEnabled&&!0===this.options.enabled?!0===this.options.stabilization.enabled?this.stabilize():(this.stabilized=!1,this.ready=!0,this.body.emitter.emit("fit",{},this.layoutFailed),this.startSimulation()):(this.ready=!0,this.body.emitter.emit("fit"))}},{key:"startSimulation",value:function(){var t;!0===this.physicsEnabled&&!0===this.options.enabled?(this.stabilized=!1,this.adaptiveTimestep=!1,this.body.emitter.emit("_resizeNodes"),void 0===this.viewFunction&&(this.viewFunction=et(t=this.simulationStep).call(t,this),this.body.emitter.on("initRedraw",this.viewFunction),this.body.emitter.emit("_startRendering"))):this.body.emitter.emit("_redraw")}},{key:"stopSimulation",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.stabilized=!0,!0===t&&this._emitStabilized(),void 0!==this.viewFunction&&(this.body.emitter.off("initRedraw",this.viewFunction),this.viewFunction=void 0,!0===t&&this.body.emitter.emit("_stopRendering"))}},{key:"simulationStep",value:function(){var t=fr();this.physicsTick(),(fr()-t<.4*this.simulationInterval||!0===this.runDoubleSpeed)&&!1===this.stabilized&&(this.physicsTick(),this.runDoubleSpeed=!0),!0===this.stabilized&&this.stopSimulation()}},{key:"_emitStabilized",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.stabilizationIterations;(this.stabilizationIterations>1||!0===this.startedStabilization)&&sA((function(){t.body.emitter.emit("stabilized",{iterations:e}),t.startedStabilization=!1,t.stabilizationIterations=0}),0)}},{key:"physicsStep",value:function(){this.gravitySolver.solve(),this.nodesSolver.solve(),this.edgesSolver.solve(),this.moveNodes()}},{key:"adjustTimeStep",value:function(){!0===this._evaluateStepQuality()?this.timestep=1.2*this.timestep:this.timestep/1.2<this.options.timestep?this.timestep=this.options.timestep:(this.adaptiveCounter=-1,this.timestep=Math.max(this.options.timestep,this.timestep/1.2))}},{key:"physicsTick",value:function(){if(this._startStabilizing(),!0!==this.stabilized){if(!0===this.adaptiveTimestep&&!0===this.adaptiveTimestepEnabled)this.adaptiveCounter%this.adaptiveInterval==0?(this.timestep=2*this.timestep,this.physicsStep(),this.revert(),this.timestep=.5*this.timestep,this.physicsStep(),this.physicsStep(),this.adjustTimeStep()):this.physicsStep(),this.adaptiveCounter+=1;else this.timestep=this.options.timestep,this.physicsStep();!0===this.stabilized&&this.revert(),this.stabilizationIterations++}}},{key:"updatePhysicsData",value:function(){this.physicsBody.forces={},this.physicsBody.physicsNodeIndices=[],this.physicsBody.physicsEdgeIndices=[];var t=this.body.nodes,e=this.body.edges;for(var i in t)t.hasOwnProperty(i)&&!0===t[i].options.physics&&this.physicsBody.physicsNodeIndices.push(t[i].id);for(var n in e)e.hasOwnProperty(n)&&!0===e[n].options.physics&&this.physicsBody.physicsEdgeIndices.push(e[n].id);for(var o=0;o<this.physicsBody.physicsNodeIndices.length;o++){var r=this.physicsBody.physicsNodeIndices[o];this.physicsBody.forces[r]={x:0,y:0},void 0===this.physicsBody.velocities[r]&&(this.physicsBody.velocities[r]={x:0,y:0})}for(var g in this.physicsBody.velocities)void 0===t[g]&&delete this.physicsBody.velocities[g]}},{key:"revert",value:function(){var t=En(this.previousStates),e=this.body.nodes,i=this.physicsBody.velocities;this.referenceState={};for(var n=0;n<t.length;n++){var o=t[n];void 0!==e[o]?!0===e[o].options.physics&&(this.referenceState[o]={positions:{x:e[o].x,y:e[o].y}},i[o].x=this.previousStates[o].vx,i[o].y=this.previousStates[o].vy,e[o].x=this.previousStates[o].x,e[o].y=this.previousStates[o].y):delete this.previousStates[o]}}},{key:"_evaluateStepQuality",value:function(){var t,e,i=this.body.nodes,n=this.referenceState;for(var o in this.referenceState)if(this.referenceState.hasOwnProperty(o)&&void 0!==i[o]&&(t=i[o].x-n[o].positions.x,e=i[o].y-n[o].positions.y,Math.sqrt(Math.pow(t,2)+Math.pow(e,2))>.3))return!1;return!0}},{key:"moveNodes",value:function(){for(var t=this.physicsBody.physicsNodeIndices,e=0,i=0,n=0;n<t.length;n++){var o=t[n],r=this._performStep(o);e=Math.max(e,r),i+=r}this.adaptiveTimestepEnabled=i/t.length<5,this.stabilized=e<this.options.minVelocity}},{key:"calculateComponentVelocity",value:function(t,e,i){t+=(e-this.modelOptions.damping*t)/i*this.timestep;var n=this.options.maxVelocity||1e9;return Math.abs(t)>n&&(t=t>0?n:-n),t}},{key:"_performStep",value:function(t){var e=this.body.nodes[t],i=this.physicsBody.forces[t];this.options.wind&&(i.x+=this.options.wind.x,i.y+=this.options.wind.y);var n=this.physicsBody.velocities[t];return this.previousStates[t]={x:e.x,y:e.y,vx:n.x,vy:n.y},!1===e.options.fixed.x?(n.x=this.calculateComponentVelocity(n.x,i.x,e.options.mass),e.x+=n.x*this.timestep):(i.x=0,n.x=0),!1===e.options.fixed.y?(n.y=this.calculateComponentVelocity(n.y,i.y,e.options.mass),e.y+=n.y*this.timestep):(i.y=0,n.y=0),Math.sqrt(Math.pow(n.x,2)+Math.pow(n.y,2))}},{key:"_freezeNodes",value:function(){var t=this.body.nodes;for(var e in t)if(t.hasOwnProperty(e)&&t[e].x&&t[e].y){var i=t[e].options.fixed;this.freezeCache[e]={x:i.x,y:i.y},i.x=!0,i.y=!0}}},{key:"_restoreFrozenNodes",value:function(){var t=this.body.nodes;for(var e in t)t.hasOwnProperty(e)&&void 0!==this.freezeCache[e]&&(t[e].options.fixed.x=this.freezeCache[e].x,t[e].options.fixed.y=this.freezeCache[e].y);this.freezeCache={}}},{key:"stabilize",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.stabilization.iterations;"number"!=typeof e&&(e=this.options.stabilization.iterations,console.log("The stabilize method needs a numeric amount of iterations. Switching to default: ",e)),0!==this.physicsBody.physicsNodeIndices.length?(this.adaptiveTimestep=this.options.adaptiveTimestep,this.body.emitter.emit("_resizeNodes"),this.stopSimulation(),this.stabilized=!1,this.body.emitter.emit("_blockRedraw"),this.targetIterations=e,!0===this.options.stabilization.onlyDynamicEdges&&this._freezeNodes(),this.stabilizationIterations=0,sA((function(){return t._stabilizationBatch()}),0)):this.ready=!0}},{key:"_startStabilizing",value:function(){return!0!==this.startedStabilization&&(this.body.emitter.emit("startStabilizing"),this.startedStabilization=!0,!0)}},{key:"_stabilizationBatch",value:function(){var t=this,e=function(){return!1===t.stabilized&&t.stabilizationIterations<t.targetIterations},i=function(){t.body.emitter.emit("stabilizationProgress",{iterations:t.stabilizationIterations,total:t.targetIterations})};this._startStabilizing()&&i();for(var n,o=0;e()&&o<this.options.stabilization.updateInterval;)this.physicsTick(),o++;(i(),e())?sA(et(n=this._stabilizationBatch).call(n,this),0):this._finalizeStabilization()}},{key:"_finalizeStabilization",value:function(){this.body.emitter.emit("_allowRedraw"),!0===this.options.stabilization.fit&&this.body.emitter.emit("fit"),!0===this.options.stabilization.onlyDynamicEdges&&this._restoreFrozenNodes(),this.body.emitter.emit("stabilizationIterationsDone"),this.body.emitter.emit("_requestRedraw"),!0===this.stabilized?this._emitStabilized():this.startSimulation(),this.ready=!0}},{key:"_drawForces",value:function(t){for(var e=0;e<this.physicsBody.physicsNodeIndices.length;e++){var i=this.physicsBody.physicsNodeIndices[e],n=this.body.nodes[i],o=this.physicsBody.forces[i],r=Math.sqrt(Math.pow(o.x,2)+Math.pow(o.x,2)),g=Math.min(Math.max(5,r),15),s=3*g,a=rg((180-180*Math.min(1,Math.max(0,.03*r)))/360,1,1),A={x:n.x+20*o.x,y:n.y+20*o.y};t.lineWidth=g,t.strokeStyle=a,t.beginPath(),t.moveTo(n.x,n.y),t.lineTo(A.x,A.y),t.stroke();var C=Math.atan2(o.y,o.x);t.fillStyle=a,zl.draw(t,{type:"arrow",point:A,angle:C,length:s}),wI(t).call(t)}}}]),t}(),hc=[].reverse,uc=[1,2];V({target:"Array",proto:!0,forced:String(uc)===String(uc.reverse())},{reverse:function(){return qe(this)&&(this.length=this.length),hc.call(this)}});var dc=q("Array").reverse,pc=Array.prototype,fc=function(t){var e=t.reverse;return t===pc||t instanceof Array&&e===pc.reverse?dc:e},vc=function(){function t(){qa(this,t)}return tA(t,null,[{key:"getRange",value:function(t){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=1e9,o=-1e9,r=1e9,g=-1e9;if(i.length>0)for(var s=0;s<i.length;s++)r>(e=t[i[s]]).shape.boundingBox.left&&(r=e.shape.boundingBox.left),g<e.shape.boundingBox.right&&(g=e.shape.boundingBox.right),n>e.shape.boundingBox.top&&(n=e.shape.boundingBox.top),o<e.shape.boundingBox.bottom&&(o=e.shape.boundingBox.bottom);return 1e9===r&&-1e9===g&&1e9===n&&-1e9===o&&(n=0,o=0,r=0,g=0),{minX:r,maxX:g,minY:n,maxY:o}}},{key:"getRangeCore",value:function(t){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=1e9,o=-1e9,r=1e9,g=-1e9;if(i.length>0)for(var s=0;s<i.length;s++)r>(e=t[i[s]]).x&&(r=e.x),g<e.x&&(g=e.x),n>e.y&&(n=e.y),o<e.y&&(o=e.y);return 1e9===r&&-1e9===g&&1e9===n&&-1e9===o&&(n=0,o=0,r=0,g=0),{minX:r,maxX:g,minY:n,maxY:o}}},{key:"findCenter",value:function(t){return{x:.5*(t.maxX+t.minX),y:.5*(t.maxY+t.minY)}}},{key:"cloneOptions",value:function(t,e){var i={};return void 0===e||"node"===e?(Gr(i,t.options,!0),i.x=t.x,i.y=t.y,i.amountOfConnections=t.edges.length):Gr(i,t.options,!0),i}}]),t}();function mc(t){var e=function(){if("undefined"==typeof Reflect||!wA)return!1;if(wA.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wA(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=XA(t);if(e){var o=XA(this).constructor;i=wA(n,arguments,o)}else i=n.apply(this,arguments);return VA(this,i)}}var yc=function(t){YA(i,t);var e=mc(i);function i(t,n,o,r,g,s){var a;return qa(this,i),(a=e.call(this,t,n,o,r,g,s)).isCluster=!0,a.containedNodes={},a.containedEdges={},a}return tA(i,[{key:"_openChildCluster",value:function(t){var e=this,i=this.body.nodes[t];if(void 0===this.containedNodes[t])throw new Error("node with id: "+t+" not in current cluster");if(!i.isCluster)throw new Error("node with id: "+t+" is not a cluster");delete this.containedNodes[t],Yr(i.edges,(function(t){delete e.containedEdges[t.id]})),Yr(i.containedNodes,(function(t,i){e.containedNodes[i]=t})),i.containedNodes={},Yr(i.containedEdges,(function(t,i){e.containedEdges[i]=t})),i.containedEdges={},Yr(i.edges,(function(t){Yr(e.edges,(function(i){var n,o,r=rr(n=i.clusteringEdgeReplacingIds).call(n,t.id);-1!==r&&(Yr(t.clusteringEdgeReplacingIds,(function(t){i.clusteringEdgeReplacingIds.push(t),e.body.edges[t].edgeReplacedById=i.id})),yg(o=i.clusteringEdgeReplacingIds).call(o,r,1))}))})),i.edges=[]}}]),i}(Il),bc=function(){function t(e){var i=this;qa(this,t),this.body=e,this.clusteredNodes={},this.clusteredEdges={},this.options={},this.defaultOptions={},Rr(this.options,this.defaultOptions),this.body.emitter.on("_resetData",(function(){i.clusteredNodes={},i.clusteredEdges={}}))}return tA(t,[{key:"clusterByHubsize",value:function(t,e){void 0===t?t=this._getHubSize():"object"===cr(t)&&(e=this._checkOptions(t),t=this._getHubSize());for(var i=[],n=0;n<this.body.nodeIndices.length;n++){var o=this.body.nodes[this.body.nodeIndices[n]];o.edges.length>=t&&i.push(o.id)}for(var r=0;r<i.length;r++)this.clusterByConnection(i[r],e,!0);this.body.emitter.emit("_dataChanged")}},{key:"cluster",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(void 0===e.joinCondition)throw new Error("Cannot call clusterByNodeData without a joinCondition function in the options.");e=this._checkOptions(e);var n={},o={};Yr(this.body.nodes,(function(i,r){i.options&&!0===e.joinCondition(i.options)&&(n[r]=i,Yr(i.edges,(function(e){void 0===t.clusteredEdges[e.id]&&(o[e.id]=e)})))})),this._cluster(n,o,e,i)}},{key:"clusterByEdgeCount",value:function(t,e){var i=this,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];e=this._checkOptions(e);for(var o,r,g,s=[],a={},A=function(n){var A={},C={},c=i.body.nodeIndices[n],h=i.body.nodes[c];if(void 0===a[c]){g=0,r=[];for(var u=0;u<h.edges.length;u++)o=h.edges[u],void 0===i.clusteredEdges[o.id]&&(o.toId!==o.fromId&&g++,r.push(o));if(g===t){I=function(t){if(void 0===e.joinCondition||null===e.joinCondition)return!0;var i=vc.cloneOptions(t);return e.joinCondition(i)};for(var d=!0,p=0;p<r.length;p++){o=r[p];var f=i._getConnectedId(o,c);if(!I(h)){d=!1;break}C[o.id]=o,A[c]=h,A[f]=i.body.nodes[f],a[c]=!0}if(En(A).length>0&&En(C).length>0&&!0===d)if(void 0!==(l=function(){for(var t=0;t<s.length;++t)for(var e in A)if(void 0!==s[t].nodes[e])return s[t]}())){for(var v in A)void 0===l.nodes[v]&&(l.nodes[v]=A[v]);for(var m in C)void 0===l.edges[m]&&(l.edges[m]=C[m])}else s.push({nodes:A,edges:C})}}},C=0;C<this.body.nodeIndices.length;C++){var I,l;A(C)}for(var c=0;c<s.length;c++)this._cluster(s[c].nodes,s[c].edges,e,!1);!0===n&&this.body.emitter.emit("_dataChanged")}},{key:"clusterOutliers",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.clusterByEdgeCount(1,t,e)}},{key:"clusterBridges",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.clusterByEdgeCount(2,t,e)}},{key:"clusterByConnection",value:function(t,e){var i,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(void 0===t)throw new Error("No nodeId supplied to clusterByConnection!");if(void 0===this.body.nodes[t])throw new Error("The nodeId given to clusterByConnection does not exist!");var o=this.body.nodes[t];void 0===(e=this._checkOptions(e,o)).clusterNodeProperties.x&&(e.clusterNodeProperties.x=o.x),void 0===e.clusterNodeProperties.y&&(e.clusterNodeProperties.y=o.y),void 0===e.clusterNodeProperties.fixed&&(e.clusterNodeProperties.fixed={},e.clusterNodeProperties.fixed.x=o.options.fixed.x,e.clusterNodeProperties.fixed.y=o.options.fixed.y);var r={},g={},s=o.id,a=vc.cloneOptions(o);r[s]=o;for(var A=0;A<o.edges.length;A++){var C=o.edges[A];if(void 0===this.clusteredEdges[C.id]){var I=this._getConnectedId(C,s);if(void 0===this.clusteredNodes[I])if(I!==s)if(void 0===e.joinCondition)g[C.id]=C,r[I]=this.body.nodes[I];else{var l=vc.cloneOptions(this.body.nodes[I]);!0===e.joinCondition(a,l)&&(g[C.id]=C,r[I]=this.body.nodes[I])}else g[C.id]=C}}var c=so(i=En(r)).call(i,(function(t){return r[t].id}));for(h in r)if(r.hasOwnProperty(h))for(var h=r[h],u=0;u<h.edges.length;u++){var d=h.edges[u];rr(c).call(c,this._getConnectedId(d,h.id))>-1&&(g[d.id]=d)}this._cluster(r,g,e,n)}},{key:"_createClusterEdges",value:function(t,e,i,n){for(var o,r,g,s,a,A,C=En(t),I=[],l=0;l<C.length;l++){g=t[r=C[l]];for(var c=0;c<g.edges.length;c++)o=g.edges[c],void 0===this.clusteredEdges[o.id]&&(o.toId==o.fromId?e[o.id]=o:o.toId==r?(s=i.id,A=a=o.fromId):(s=o.toId,a=i.id,A=s),void 0===t[A]&&I.push({edge:o,fromId:a,toId:s}))}for(var h=[],u=function(t){for(var e=0;e<h.length;e++){var i=h[e],n=t.fromId===i.fromId&&t.toId===i.toId,o=t.fromId===i.toId&&t.toId===i.fromId;if(n||o)return i}return null},d=0;d<I.length;d++){var p=I[d],f=p.edge,v=u(p);null===v?(v=this._createClusteredEdge(p.fromId,p.toId,f,n),h.push(v)):v.clusteringEdgeReplacingIds.push(f.id),this.body.edges[f.id].edgeReplacedById=v.id,this._backupEdgeOptions(f),f.setOptions({physics:!1})}}},{key:"_checkOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return void 0===t.clusterEdgeProperties&&(t.clusterEdgeProperties={}),void 0===t.clusterNodeProperties&&(t.clusterNodeProperties={}),t}},{key:"_cluster",value:function(t,e,i){var n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=[];for(var r in t)t.hasOwnProperty(r)&&void 0!==this.clusteredNodes[r]&&o.push(r);for(var g=0;g<o.length;++g)delete t[o[g]];if(0!=En(t).length&&(1!=En(t).length||1==i.clusterNodeProperties.allowSingleNodeCluster)){var s=Gr({},i.clusterNodeProperties);if(void 0!==i.processProperties){var a=[];for(var A in t)if(t.hasOwnProperty(A)){var C=vc.cloneOptions(t[A]);a.push(C)}var I=[];for(var l in e)if(e.hasOwnProperty(l)&&"clusterEdge:"!==l.substr(0,12)){var c=vc.cloneOptions(e[l],"edge");I.push(c)}if(!(s=i.processProperties(s,a,I)))throw new Error("The processProperties function does not return properties!")}void 0===s.id&&(s.id="cluster:"+PC());var h=s.id;void 0===s.label&&(s.label="cluster");var u=void 0;void 0===s.x&&(u=this._getClusterPosition(t),s.x=u.x),void 0===s.y&&(void 0===u&&(u=this._getClusterPosition(t)),s.y=u.y),s.id=h;var d=this.body.functions.createNode(s,yc);d.containedNodes=t,d.containedEdges=e,d.clusterEdgeProperties=i.clusterEdgeProperties,this.body.nodes[s.id]=d,this._clusterEdges(t,e,s,i.clusterEdgeProperties),s.id=void 0,!0===n&&this.body.emitter.emit("_dataChanged")}}},{key:"_backupEdgeOptions",value:function(t){void 0===this.clusteredEdges[t.id]&&(this.clusteredEdges[t.id]={physics:t.options.physics})}},{key:"_restoreEdge",value:function(t){var e=this.clusteredEdges[t.id];void 0!==e&&(t.setOptions({physics:e.physics}),delete this.clusteredEdges[t.id])}},{key:"isCluster",value:function(t){return void 0!==this.body.nodes[t]?!0===this.body.nodes[t].isCluster:(console.log("Node does not exist."),!1)}},{key:"_getClusterPosition",value:function(t){for(var e,i=En(t),n=t[i[0]].x,o=t[i[0]].x,r=t[i[0]].y,g=t[i[0]].y,s=1;s<i.length;s++)n=(e=t[i[s]]).x<n?e.x:n,o=e.x>o?e.x:o,r=e.y<r?e.y:r,g=e.y>g?e.y:g;return{x:.5*(n+o),y:.5*(r+g)}}},{key:"openCluster",value:function(t,e){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(void 0===t)throw new Error("No clusterNodeId supplied to openCluster.");var n=this.body.nodes[t];if(void 0===n)throw new Error("The clusterNodeId supplied to openCluster does not exist.");if(!0!==n.isCluster||void 0===n.containedNodes||void 0===n.containedEdges)throw new Error("The node:"+t+" is not a valid cluster.");var o=this.findNode(t),r=rr(o).call(o,t)-1;if(r>=0){var g=o[r],s=this.body.nodes[g];return s._openChildCluster(t),delete this.body.nodes[t],void(!0===i&&this.body.emitter.emit("_dataChanged"))}var a=n.containedNodes,A=n.containedEdges;if(void 0!==e&&void 0!==e.releaseFunction&&"function"==typeof e.releaseFunction){var C={},I={x:n.x,y:n.y};for(var l in a)if(a.hasOwnProperty(l)){var c=this.body.nodes[l];C[l]={x:c.x,y:c.y}}var h=e.releaseFunction(I,C);for(var u in a)if(a.hasOwnProperty(u)){var d=this.body.nodes[u];void 0!==h[u]&&(d.x=void 0===h[u].x?n.x:h[u].x,d.y=void 0===h[u].y?n.y:h[u].y)}}else Yr(a,(function(t){!1===t.options.fixed.x&&(t.x=n.x),!1===t.options.fixed.y&&(t.y=n.y)}));for(var p in a)if(a.hasOwnProperty(p)){var f=this.body.nodes[p];f.vx=n.vx,f.vy=n.vy,f.setOptions({physics:!0}),delete this.clusteredNodes[p]}for(var v=[],m=0;m<n.edges.length;m++)v.push(n.edges[m]);for(var y=0;y<v.length;y++){for(var b=v[y],w=this._getConnectedId(b,t),x=this.clusteredNodes[w],k=0;k<b.clusteringEdgeReplacingIds.length;k++){var _=b.clusteringEdgeReplacingIds[k],D=this.body.edges[_];if(void 0!==D)if(void 0!==x){var O=this.body.nodes[x.clusterId];O.containedEdges[D.id]=D,delete A[D.id];var M=D.fromId,T=D.toId;D.toId==w?T=x.clusterId:M=x.clusterId,this._createClusteredEdge(M,T,D,O.clusterEdgeProperties,{hidden:!1,physics:!0})}else this._restoreEdge(D)}b.remove()}for(var N in A)A.hasOwnProperty(N)&&this._restoreEdge(A[N]);delete this.body.nodes[t],!0===i&&this.body.emitter.emit("_dataChanged")}},{key:"getNodesInCluster",value:function(t){var e=[];if(!0===this.isCluster(t)){var i=this.body.nodes[t].containedNodes;for(var n in i)i.hasOwnProperty(n)&&e.push(this.body.nodes[n].id)}return e}},{key:"findNode",value:function(t){for(var e,i=[],n=0;void 0!==this.clusteredNodes[t]&&n<100;){if(void 0===(e=this.body.nodes[t]))return[];i.push(e.id),t=this.clusteredNodes[t].clusterId,n++}return void 0===(e=this.body.nodes[t])?[]:(i.push(e.id),fc(i).call(i),i)}},{key:"updateClusteredNode",value:function(t,e){if(void 0===t)throw new Error("No clusteredNodeId supplied to updateClusteredNode.");if(void 0===e)throw new Error("No newOptions supplied to updateClusteredNode.");if(void 0===this.body.nodes[t])throw new Error("The clusteredNodeId supplied to updateClusteredNode does not exist.");this.body.nodes[t].setOptions(e),this.body.emitter.emit("_dataChanged")}},{key:"updateEdge",value:function(t,e){if(void 0===t)throw new Error("No startEdgeId supplied to updateEdge.");if(void 0===e)throw new Error("No newOptions supplied to updateEdge.");if(void 0===this.body.edges[t])throw new Error("The startEdgeId supplied to updateEdge does not exist.");for(var i=this.getClusteredEdges(t),n=0;n<i.length;n++){this.body.edges[i[n]].setOptions(e)}this.body.emitter.emit("_dataChanged")}},{key:"getClusteredEdges",value:function(t){for(var e=[],i=0;void 0!==t&&void 0!==this.body.edges[t]&&i<100;)e.push(this.body.edges[t].id),t=this.body.edges[t].edgeReplacedById,i++;return fc(e).call(e),e}},{key:"getBaseEdge",value:function(t){return this.getBaseEdges(t)[0]}},{key:"getBaseEdges",value:function(t){for(var e=[t],i=[],n=[],o=0;e.length>0&&o<100;){var r=e.pop();if(void 0!==r){var g=this.body.edges[r];if(void 0!==g){o++;var s=g.clusteringEdgeReplacingIds;if(void 0===s)n.push(r);else for(var a=0;a<s.length;++a){var A=s[a];-1===rr(e).call(e,s)&&-1===rr(i).call(i,s)&&e.push(A)}i.push(r)}}}return n}},{key:"_getConnectedId",value:function(t,e){return t.toId!=e?t.toId:(t.fromId,t.fromId)}},{key:"_getHubSize",value:function(){for(var t=0,e=0,i=0,n=0,o=0;o<this.body.nodeIndices.length;o++){var r=this.body.nodes[this.body.nodeIndices[o]];r.edges.length>n&&(n=r.edges.length),t+=r.edges.length,e+=Math.pow(r.edges.length,2),i+=1}t/=i;var g=(e/=i)-Math.pow(t,2),s=Math.sqrt(g),a=Math.floor(t+2*s);return a>n&&(a=n),a}},{key:"_createClusteredEdge",value:function(t,e,i,n,o){var r=vc.cloneOptions(i,"edge");Gr(r,n),r.from=t,r.to=e,r.id="clusterEdge:"+PC(),void 0!==o&&Gr(r,o);var g=this.body.functions.createEdge(r);return g.clusteringEdgeReplacingIds=[i.id],g.connect(),this.body.edges[g.id]=g,g}},{key:"_clusterEdges",value:function(t,e,i,n){if(e instanceof ec){var o=e,r={};r[o.id]=o,e=r}if(t instanceof Il){var g=t,s={};s[g.id]=g,t=s}if(null==i)throw new Error("_clusterEdges: parameter clusterNode required");for(var a in void 0===n&&(n=i.clusterEdgeProperties),this._createClusterEdges(t,e,i,n),e)if(e.hasOwnProperty(a)&&void 0!==this.body.edges[a]){var A=this.body.edges[a];this._backupEdgeOptions(A),A.setOptions({physics:!1})}for(var C in t)t.hasOwnProperty(C)&&(this.clusteredNodes[C]={clusterId:i.id,node:this.body.nodes[C]},this.body.nodes[C].setOptions({physics:!1}))}},{key:"_getClusterNodeForNode",value:function(t){if(void 0!==t){var e=this.clusteredNodes[t];if(void 0!==e){var i=e.clusterId;if(void 0!==i)return this.body.nodes[i]}}}},{key:"_filter",value:function(t,e){var i=[];return Yr(t,(function(t){e(t)&&i.push(t)})),i}},{key:"_updateState",value:function(){var t,e=this,i=[],n={},o=function(t){Yr(e.body.nodes,(function(e){!0===e.isCluster&&t(e)}))};for(t in this.clusteredNodes){if(this.clusteredNodes.hasOwnProperty(t))void 0===this.body.nodes[t]&&i.push(t)}o((function(t){for(var e=0;e<i.length;e++)delete t.containedNodes[i[e]]}));for(var r=0;r<i.length;r++)delete this.clusteredNodes[i[r]];Yr(this.clusteredEdges,(function(t){var i=e.body.edges[t];void 0!==i&&i.endPointsValid()||(n[t]=t)})),o((function(t){Yr(t.containedEdges,(function(t,e){t.endPointsValid()||n[e]||(n[e]=e)}))})),Yr(this.body.edges,(function(t,i){var o=!0,r=t.clusteringEdgeReplacingIds;if(void 0!==r){var g=0;Yr(r,(function(t){var i=e.body.edges[t];void 0!==i&&i.endPointsValid()&&(g+=1)})),o=g>0}t.endPointsValid()&&o||(n[i]=i)})),o((function(t){Yr(n,(function(i){delete t.containedEdges[i],Yr(t.edges,(function(o,r){o.id!==i?o.clusteringEdgeReplacingIds=e._filter(o.clusteringEdgeReplacingIds,(function(t){return!n[t]})):t.edges[r]=null})),t.edges=e._filter(t.edges,(function(t){return null!==t}))}))})),Yr(n,(function(t){delete e.clusteredEdges[t]})),Yr(n,(function(t){delete e.body.edges[t]})),Yr(En(this.body.edges),(function(t){var i=e.body.edges[t],n=e._isClusteredNode(i.fromId)||e._isClusteredNode(i.toId);if(n!==e._isClusteredEdge(i.id))if(n){var o=e._getClusterNodeForNode(i.fromId);void 0!==o&&e._clusterEdges(e.body.nodes[i.fromId],i,o);var r=e._getClusterNodeForNode(i.toId);void 0!==r&&e._clusterEdges(e.body.nodes[i.toId],i,r)}else delete e._clusterEdges[t],e._restoreEdge(i)}));for(var g=!1,s=!0,a=function(){var t=[];o((function(e){var i=En(e.containedNodes).length,n=!0===e.options.allowSingleNodeCluster;(n&&i<1||!n&&i<2)&&t.push(e.id)}));for(var i=0;i<t.length;++i)e.openCluster(t[i],{},!1);s=t.length>0,g=g||s};s;)a();g&&this._updateState()}},{key:"_isClusteredNode",value:function(t){return void 0!==this.clusteredNodes[t]}},{key:"_isClusteredEdge",value:function(t){return void 0!==this.clusteredEdges[t]}}]),t}();var wc=function(){function t(e,i){var n;qa(this,t),void 0!==window&&(n=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame),window.requestAnimationFrame=void 0===n?function(t){t()}:n,this.body=e,this.canvas=i,this.redrawRequested=!1,this.renderTimer=void 0,this.requiresTimeout=!0,this.renderingActive=!1,this.renderRequests=0,this.allowRedraw=!0,this.dragging=!1,this.zooming=!1,this.options={},this.defaultOptions={hideEdgesOnDrag:!1,hideEdgesOnZoom:!1,hideNodesOnDrag:!1},Rr(this.options,this.defaultOptions),this._determineBrowserMethod(),this.bindEventListeners()}return tA(t,[{key:"bindEventListeners",value:function(){var t,e=this;this.body.emitter.on("dragStart",(function(){e.dragging=!0})),this.body.emitter.on("dragEnd",(function(){e.dragging=!1})),this.body.emitter.on("zoom",(function(){e.zooming=!0,window.clearTimeout(e.zoomTimeoutId),e.zoomTimeoutId=window.setTimeout((function(){var t;e.zooming=!1,et(t=e._requestRedraw).call(t,e)()}),250)})),this.body.emitter.on("_resizeNodes",(function(){e._resizeNodes()})),this.body.emitter.on("_redraw",(function(){!1===e.renderingActive&&e._redraw()})),this.body.emitter.on("_blockRedraw",(function(){e.allowRedraw=!1})),this.body.emitter.on("_allowRedraw",(function(){e.allowRedraw=!0,e.redrawRequested=!1})),this.body.emitter.on("_requestRedraw",et(t=this._requestRedraw).call(t,this)),this.body.emitter.on("_startRendering",(function(){e.renderRequests+=1,e.renderingActive=!0,e._startRendering()})),this.body.emitter.on("_stopRendering",(function(){e.renderRequests-=1,e.renderingActive=e.renderRequests>0,e.renderTimer=void 0})),this.body.emitter.on("destroy",(function(){e.renderRequests=0,e.allowRedraw=!1,e.renderingActive=!1,!0===e.requiresTimeout?clearTimeout(e.renderTimer):window.cancelAnimationFrame(e.renderTimer),e.body.emitter.off()}))}},{key:"setOptions",value:function(t){if(void 0!==t){zr(["hideEdgesOnDrag","hideEdgesOnZoom","hideNodesOnDrag"],this.options,t)}}},{key:"_requestNextFrame",value:function(t,e){if("undefined"!=typeof window){var i,n=window;return!0===this.requiresTimeout?i=n.setTimeout(t,e):n.requestAnimationFrame&&(i=n.requestAnimationFrame(t)),i}}},{key:"_startRendering",value:function(){var t;!0===this.renderingActive&&(void 0===this.renderTimer&&(this.renderTimer=this._requestNextFrame(et(t=this._renderStep).call(t,this),this.simulationInterval)))}},{key:"_renderStep",value:function(){!0===this.renderingActive&&(this.renderTimer=void 0,!0===this.requiresTimeout&&this._startRendering(),this._redraw(),!1===this.requiresTimeout&&this._startRendering())}},{key:"redraw",value:function(){this.body.emitter.emit("setSize"),this._redraw()}},{key:"_requestRedraw",value:function(){var t=this;!0!==this.redrawRequested&&!1===this.renderingActive&&!0===this.allowRedraw&&(this.redrawRequested=!0,this._requestNextFrame((function(){t._redraw(!1)}),0))}},{key:"_redraw",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!0===this.allowRedraw){this.body.emitter.emit("initRedraw"),this.redrawRequested=!1,0!==this.canvas.frame.canvas.width&&0!==this.canvas.frame.canvas.height||this.canvas.setSize(),this.canvas.setTransform();var e=this.canvas.getContext(),i=this.canvas.frame.canvas.clientWidth,n=this.canvas.frame.canvas.clientHeight;if(e.clearRect(0,0,i,n),0===this.canvas.frame.clientWidth)return;e.save(),e.translate(this.body.view.translation.x,this.body.view.translation.y),e.scale(this.body.view.scale,this.body.view.scale),e.beginPath(),this.body.emitter.emit("beforeDrawing",e),e.closePath(),!1===t&&(!1===this.dragging||!0===this.dragging&&!1===this.options.hideEdgesOnDrag)&&(!1===this.zooming||!0===this.zooming&&!1===this.options.hideEdgesOnZoom)&&this._drawEdges(e),(!1===this.dragging||!0===this.dragging&&!1===this.options.hideNodesOnDrag)&&this._drawNodes(e,t),e.beginPath(),this.body.emitter.emit("afterDrawing",e),e.closePath(),e.restore(),!0===t&&e.clearRect(0,0,i,n)}}},{key:"_resizeNodes",value:function(){this.canvas.setTransform();var t=this.canvas.getContext();t.save(),t.translate(this.body.view.translation.x,this.body.view.translation.y),t.scale(this.body.view.scale,this.body.view.scale);var e,i=this.body.nodes;for(var n in i)i.hasOwnProperty(n)&&((e=i[n]).resize(t),e.updateBoundingBox(t,e.selected));t.restore()}},{key:"_drawNodes",value:function(t){for(var e,i,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=this.body.nodes,r=this.body.nodeIndices,g=[],s=[],a=20,A=this.canvas.DOMtoCanvas({x:-a,y:-a}),C=this.canvas.DOMtoCanvas({x:this.canvas.frame.canvas.clientWidth+a,y:this.canvas.frame.canvas.clientHeight+a}),I={top:A.y,left:A.x,bottom:C.y,right:C.x},l=0;l<r.length;l++)(e=o[r[l]]).hover?s.push(r[l]):e.isSelected()?g.push(r[l]):!0===n||!0===e.isBoundingBoxOverlappingWith(I)?e.draw(t):e.updateBoundingBox(t,e.selected);var c=g.length,h=s.length;for(i=0;i<c;i++)(e=o[g[i]]).draw(t);for(i=0;i<h;i++)(e=o[s[i]]).draw(t)}},{key:"_drawEdges",value:function(t){for(var e,i=this.body.edges,n=this.body.edgeIndices,o=0;o<n.length;o++)!0===(e=i[n[o]]).connected&&e.draw(t)}},{key:"_determineBrowserMethod",value:function(){if("undefined"!=typeof window){var t=navigator.userAgent.toLowerCase();this.requiresTimeout=!1,(-1!=rr(t).call(t,"msie 9.0")||-1!=rr(t).call(t,"safari")&&rr(t).call(t,"chrome")<=-1)&&(this.requiresTimeout=!0)}else this.requiresTimeout=!0}}]),t}(),xc=z.setInterval,kc=r((function(t,e){e.onTouch=function(t,e){e.inputHandler=function(t){t.isFirst&&e(t)},t.on("hammer.input",e.inputHandler)},e.onRelease=function(t,e){return e.inputHandler=function(t){t.isFinal&&e(t)},t.on("hammer.input",e.inputHandler)},e.offTouch=function(t,e){t.off("hammer.input",e.inputHandler)},e.offRelease=e.offTouch,e.disablePreventDefaultVertically=function(t){return t.getTouchAction=function(){return["pan-y"]},t}})),_c=(kc.onTouch,kc.onRelease,kc.offTouch,kc.offRelease,kc.disablePreventDefaultVertically,function(){function t(e){var i;qa(this,t),this.body=e,this.pixelRatio=1,this.resizeTimer=void 0,this.resizeFunction=et(i=this._onResize).call(i,this),this.cameraState={},this.initialized=!1,this.canvasViewCenter={},this.options={},this.defaultOptions={autoResize:!0,height:"100%",width:"100%"},Rr(this.options,this.defaultOptions),this.bindEventListeners()}return tA(t,[{key:"bindEventListeners",value:function(){var t,e=this;this.body.emitter.once("resize",(function(t){0!==t.width&&(e.body.view.translation.x=.5*t.width),0!==t.height&&(e.body.view.translation.y=.5*t.height)})),this.body.emitter.on("setSize",et(t=this.setSize).call(t,this)),this.body.emitter.on("destroy",(function(){e.hammerFrame.destroy(),e.hammer.destroy(),e._cleanUp()}))}},{key:"setOptions",value:function(t){var e,i=this;if(void 0!==t){zr(["width","height","autoResize"],this.options,t)}!0===this.options.autoResize&&(this._cleanUp(),this.resizeTimer=xc((function(){!0===i.setSize()&&i.body.emitter.emit("_requestRedraw")}),1e3),this.resizeFunction=et(e=this._onResize).call(e,this),Hr(window,"resize",this.resizeFunction))}},{key:"_cleanUp",value:function(){void 0!==this.resizeTimer&&clearInterval(this.resizeTimer),Xr(window,"resize",this.resizeFunction),this.resizeFunction=void 0}},{key:"_onResize",value:function(){this.setSize(),this.body.emitter.emit("_redraw")}},{key:"_getCameraState",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.pixelRatio;!0===this.initialized&&(this.cameraState.previousWidth=this.frame.canvas.width/t,this.cameraState.previousHeight=this.frame.canvas.height/t,this.cameraState.scale=this.body.view.scale,this.cameraState.position=this.DOMtoCanvas({x:.5*this.frame.canvas.width/t,y:.5*this.frame.canvas.height/t}))}},{key:"_setCameraState",value:function(){if(void 0!==this.cameraState.scale&&0!==this.frame.canvas.clientWidth&&0!==this.frame.canvas.clientHeight&&0!==this.pixelRatio&&this.cameraState.previousWidth>0&&this.cameraState.previousHeight>0){var t=this.frame.canvas.width/this.pixelRatio/this.cameraState.previousWidth,e=this.frame.canvas.height/this.pixelRatio/this.cameraState.previousHeight,i=this.cameraState.scale;1!=t&&1!=e?i=.5*this.cameraState.scale*(t+e):1!=t?i=this.cameraState.scale*t:1!=e&&(i=this.cameraState.scale*e),this.body.view.scale=i;var n=this.DOMtoCanvas({x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight}),o={x:n.x-this.cameraState.position.x,y:n.y-this.cameraState.position.y};this.body.view.translation.x+=o.x*this.body.view.scale,this.body.view.translation.y+=o.y*this.body.view.scale}}},{key:"_prepareValue",value:function(t){if("number"==typeof t)return t+"px";if("string"==typeof t){if(-1!==rr(t).call(t,"%")||-1!==rr(t).call(t,"px"))return t;if(-1===rr(t).call(t,"%"))return t+"px"}throw new Error("Could not use the value supplied for width or height:"+t)}},{key:"_create",value:function(){for(;this.body.container.hasChildNodes();)this.body.container.removeChild(this.body.container.firstChild);if(this.frame=document.createElement("div"),this.frame.className="vis-network",this.frame.style.position="relative",this.frame.style.overflow="hidden",this.frame.tabIndex=900,this.frame.canvas=document.createElement("canvas"),this.frame.canvas.style.position="relative",this.frame.appendChild(this.frame.canvas),this.frame.canvas.getContext)this._setPixelRatio(),this.setTransform();else{var t=document.createElement("DIV");t.style.color="red",t.style.fontWeight="bold",t.style.padding="10px",t.innerHTML="Error: your browser does not support HTML canvas",this.frame.canvas.appendChild(t)}this.body.container.appendChild(this.frame),this.body.view.scale=1,this.body.view.translation={x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight},this._bindHammer()}},{key:"_bindHammer",value:function(){var t=this;void 0!==this.hammer&&this.hammer.destroy(),this.drag={},this.pinch={},this.hammer=new Va(this.frame.canvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.get("pan").set({threshold:5,direction:Va.DIRECTION_ALL}),kc.onTouch(this.hammer,(function(e){t.body.eventListeners.onTouch(e)})),this.hammer.on("tap",(function(e){t.body.eventListeners.onTap(e)})),this.hammer.on("doubletap",(function(e){t.body.eventListeners.onDoubleTap(e)})),this.hammer.on("press",(function(e){t.body.eventListeners.onHold(e)})),this.hammer.on("panstart",(function(e){t.body.eventListeners.onDragStart(e)})),this.hammer.on("panmove",(function(e){t.body.eventListeners.onDrag(e)})),this.hammer.on("panend",(function(e){t.body.eventListeners.onDragEnd(e)})),this.hammer.on("pinch",(function(e){t.body.eventListeners.onPinch(e)})),this.frame.canvas.addEventListener("wheel",(function(e){t.body.eventListeners.onMouseWheel(e)})),this.frame.canvas.addEventListener("mousemove",(function(e){t.body.eventListeners.onMouseMove(e)})),this.frame.canvas.addEventListener("contextmenu",(function(e){t.body.eventListeners.onContext(e)})),this.hammerFrame=new Va(this.frame),kc.onRelease(this.hammerFrame,(function(e){t.body.eventListeners.onRelease(e)}))}},{key:"setSize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.width,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.height;t=this._prepareValue(t),e=this._prepareValue(e);var i=!1,n=this.frame.canvas.width,o=this.frame.canvas.height,r=this.pixelRatio;if(this._setPixelRatio(),t!=this.options.width||e!=this.options.height||this.frame.style.width!=t||this.frame.style.height!=e)this._getCameraState(r),this.frame.style.width=t,this.frame.style.height=e,this.frame.canvas.style.width="100%",this.frame.canvas.style.height="100%",this.frame.canvas.width=Math.round(this.frame.canvas.clientWidth*this.pixelRatio),this.frame.canvas.height=Math.round(this.frame.canvas.clientHeight*this.pixelRatio),this.options.width=t,this.options.height=e,this.canvasViewCenter={x:.5*this.frame.clientWidth,y:.5*this.frame.clientHeight},i=!0;else{var g=Math.round(this.frame.canvas.clientWidth*this.pixelRatio),s=Math.round(this.frame.canvas.clientHeight*this.pixelRatio);this.frame.canvas.width===g&&this.frame.canvas.height===s||this._getCameraState(r),this.frame.canvas.width!==g&&(this.frame.canvas.width=g,i=!0),this.frame.canvas.height!==s&&(this.frame.canvas.height=s,i=!0)}return!0===i&&(this.body.emitter.emit("resize",{width:Math.round(this.frame.canvas.width/this.pixelRatio),height:Math.round(this.frame.canvas.height/this.pixelRatio),oldWidth:Math.round(n/this.pixelRatio),oldHeight:Math.round(o/this.pixelRatio)}),this._setCameraState()),this.initialized=!0,i}},{key:"getContext",value:function(){return this.frame.canvas.getContext("2d")}},{key:"_determinePixelRatio",value:function(){var t=this.getContext();if(void 0===t)throw new Error("Could not get canvax context");var e=1;return"undefined"!=typeof window&&(e=window.devicePixelRatio||1),e/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)}},{key:"_setPixelRatio",value:function(){this.pixelRatio=this._determinePixelRatio()}},{key:"setTransform",value:function(){var t=this.getContext();if(void 0===t)throw new Error("Could not get canvax context");t.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}},{key:"_XconvertDOMtoCanvas",value:function(t){return(t-this.body.view.translation.x)/this.body.view.scale}},{key:"_XconvertCanvasToDOM",value:function(t){return t*this.body.view.scale+this.body.view.translation.x}},{key:"_YconvertDOMtoCanvas",value:function(t){return(t-this.body.view.translation.y)/this.body.view.scale}},{key:"_YconvertCanvasToDOM",value:function(t){return t*this.body.view.scale+this.body.view.translation.y}},{key:"canvasToDOM",value:function(t){return{x:this._XconvertCanvasToDOM(t.x),y:this._YconvertCanvasToDOM(t.y)}}},{key:"DOMtoCanvas",value:function(t){return{x:this._XconvertDOMtoCanvas(t.x),y:this._YconvertDOMtoCanvas(t.y)}}}]),t}()),Dc=function(){function t(e,i){var n,o,r=this;qa(this,t),this.body=e,this.canvas=i,this.animationSpeed=1/this.renderRefreshRate,this.animationEasingFunction="easeInOutQuint",this.easingTime=0,this.sourceScale=0,this.targetScale=0,this.sourceTranslation=0,this.targetTranslation=0,this.lockedOnNodeId=void 0,this.lockedOnNodeOffset=void 0,this.touchTime=0,this.viewFunction=void 0,this.body.emitter.on("fit",et(n=this.fit).call(n,this)),this.body.emitter.on("animationFinished",(function(){r.body.emitter.emit("_stopRendering")})),this.body.emitter.on("unlockNode",et(o=this.releaseNode).call(o,this))}return tA(t,[{key:"setOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options=t}},{key:"fit",value:function(){var t,e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{nodes:[]},n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];void 0!==(i=Cr({},i)).nodes&&0!==i.nodes.length||(i.nodes=this.body.nodeIndices);var o=this.canvas.frame.canvas.clientWidth,r=this.canvas.frame.canvas.clientHeight;if(0===o||0===r)e=1,t=vc.getRange(this.body.nodes,i.nodes);else if(!0===n){var g=0;for(var s in this.body.nodes)if(this.body.nodes.hasOwnProperty(s)){var a=this.body.nodes[s];!0===a.predefinedPosition&&(g+=1)}if(g>.5*this.body.nodeIndices.length)return void this.fit(i,!1);t=vc.getRange(this.body.nodes,i.nodes);var A=this.body.nodeIndices.length;e=12.662/(A+7.4147)+.0964822;var C=Math.min(o/600,r/600);e*=C}else{this.body.emitter.emit("_resizeNodes"),t=vc.getRange(this.body.nodes,i.nodes);var I=1.1*Math.abs(t.maxX-t.minX),l=1.1*Math.abs(t.maxY-t.minY),c=o/I,h=r/l;e=c<=h?c:h}(e>1||0===e)&&(e=1);var u=vc.findCenter(t),d={position:u,scale:e,animation:i.animation};this.moveTo(d)}},{key:"focus",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(void 0!==this.body.nodes[t]){var i={x:this.body.nodes[t].x,y:this.body.nodes[t].y};e.position=i,e.lockedOnNode=t,this.moveTo(e)}else console.log("Node: "+t+" cannot be found.")}},{key:"moveTo",value:function(t){if(void 0!==t){if(null!=t.offset){if(null!=t.offset.x){if(t.offset.x=+t.offset.x,!dA(t.offset.x))throw new TypeError('The option "offset.x" has to be a finite number.')}else t.offset.x=0;if(null!=t.offset.y){if(t.offset.y=+t.offset.y,!dA(t.offset.y))throw new TypeError('The option "offset.y" has to be a finite number.')}else t.offset.x=0}else t.offset={x:0,y:0};if(null!=t.position){if(null!=t.position.x){if(t.position.x=+t.position.x,!dA(t.position.x))throw new TypeError('The option "position.x" has to be a finite number.')}else t.position.x=0;if(null!=t.position.y){if(t.position.y=+t.position.y,!dA(t.position.y))throw new TypeError('The option "position.y" has to be a finite number.')}else t.position.x=0}else t.position=this.getViewPosition();if(null!=t.scale){if(t.scale=+t.scale,!(t.scale>0))throw new TypeError('The option "scale" has to be a number greater than zero.')}else t.scale=this.body.view.scale;void 0===t.animation&&(t.animation={duration:0}),!1===t.animation&&(t.animation={duration:0}),!0===t.animation&&(t.animation={}),void 0===t.animation.duration&&(t.animation.duration=1e3),void 0===t.animation.easingFunction&&(t.animation.easingFunction="easeInOutQuad"),this.animateView(t)}else t={}}},{key:"animateView",value:function(t){if(void 0!==t){this.animationEasingFunction=t.animation.easingFunction,this.releaseNode(),!0===t.locked&&(this.lockedOnNodeId=t.lockedOnNode,this.lockedOnNodeOffset=t.offset),0!=this.easingTime&&this._transitionRedraw(!0),this.sourceScale=this.body.view.scale,this.sourceTranslation=this.body.view.translation,this.targetScale=t.scale,this.body.view.scale=this.targetScale;var e,i,n=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight}),o=n.x-t.position.x,r=n.y-t.position.y;if(this.targetTranslation={x:this.sourceTranslation.x+o*this.targetScale+t.offset.x,y:this.sourceTranslation.y+r*this.targetScale+t.offset.y},0===t.animation.duration)if(null!=this.lockedOnNodeId)this.viewFunction=et(e=this._lockedRedraw).call(e,this),this.body.emitter.on("initRedraw",this.viewFunction);else this.body.view.scale=this.targetScale,this.body.view.translation=this.targetTranslation,this.body.emitter.emit("_requestRedraw");else this.animationSpeed=1/(60*t.animation.duration*.001)||1/60,this.animationEasingFunction=t.animation.easingFunction,this.viewFunction=et(i=this._transitionRedraw).call(i,this),this.body.emitter.on("initRedraw",this.viewFunction),this.body.emitter.emit("_startRendering")}}},{key:"_lockedRedraw",value:function(){var t=this.body.nodes[this.lockedOnNodeId].x,e=this.body.nodes[this.lockedOnNodeId].y,i=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight}),n=i.x-t,o=i.y-e,r=this.body.view.translation,g={x:r.x+n*this.body.view.scale+this.lockedOnNodeOffset.x,y:r.y+o*this.body.view.scale+this.lockedOnNodeOffset.y};this.body.view.translation=g}},{key:"releaseNode",value:function(){void 0!==this.lockedOnNodeId&&void 0!==this.viewFunction&&(this.body.emitter.off("initRedraw",this.viewFunction),this.lockedOnNodeId=void 0,this.lockedOnNodeOffset=void 0)}},{key:"_transitionRedraw",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.easingTime+=this.animationSpeed,this.easingTime=!0===t?1:this.easingTime;var e=lg[this.animationEasingFunction](this.easingTime);if(this.body.view.scale=this.sourceScale+(this.targetScale-this.sourceScale)*e,this.body.view.translation={x:this.sourceTranslation.x+(this.targetTranslation.x-this.sourceTranslation.x)*e,y:this.sourceTranslation.y+(this.targetTranslation.y-this.sourceTranslation.y)*e},this.easingTime>=1){var i;if(this.body.emitter.off("initRedraw",this.viewFunction),this.easingTime=0,null!=this.lockedOnNodeId)this.viewFunction=et(i=this._lockedRedraw).call(i,this),this.body.emitter.on("initRedraw",this.viewFunction);this.body.emitter.emit("animationFinished")}}},{key:"getScale",value:function(){return this.body.view.scale}},{key:"getViewPosition",value:function(){return this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight})}}]),t}();ds("div.vis-network div.vis-navigation div.vis-button {\n    width:34px;\n    height:34px;\n    -moz-border-radius: 17px;\n    border-radius: 17px;\n    position:absolute;\n    display:inline-block;\n    background-position: 2px 2px;\n    background-repeat:no-repeat;\n    cursor: pointer;\n    -webkit-touch-callout: none;\n    -webkit-user-select: none;\n    -khtml-user-select: none;\n    -moz-user-select: none;\n    -ms-user-select: none;\n    user-select: none;\n}\n\ndiv.vis-network div.vis-navigation div.vis-button:hover {\n    box-shadow: 0 0 3px 3px rgba(56, 207, 21, 0.30);\n}\n\ndiv.vis-network div.vis-navigation div.vis-button:active {\n    box-shadow: 0 0 1px 3px rgba(56, 207, 21, 0.95);\n}\n\ndiv.vis-network div.vis-navigation div.vis-button.vis-up {\n    background-image: url('data:image/png;base64, ');\n    bottom:50px;\n    left:55px;\n}\ndiv.vis-network div.vis-navigation div.vis-button.vis-down {\n    background-image: url('data:image/png;base64, ');\n    bottom:10px;\n    left:55px;\n}\ndiv.vis-network div.vis-navigation div.vis-button.vis-left {\n    background-image: url('data:image/png;base64, ');\n    bottom:10px;\n    left:15px;\n}\ndiv.vis-network div.vis-navigation div.vis-button.vis-right {\n    background-image: url('data:image/png;base64, ');\n    bottom:10px;\n    left:95px;\n}\ndiv.vis-network div.vis-navigation div.vis-button.vis-zoomIn {\n    background-image: url('data:image/png;base64, ');\n    bottom:10px;\n    right:15px;\n}\ndiv.vis-network div.vis-navigation div.vis-button.vis-zoomOut {\n    background-image: url('data:image/png;base64, ');\n    bottom:10px;\n    right:55px;\n}\ndiv.vis-network div.vis-navigation div.vis-button.vis-zoomExtends {\n    background-image: url('data:image/png;base64, ');\n    bottom:50px;\n    right:15px;\n}\n\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIk5hdmlnYXRpb25IYW5kbGVyLmNzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtJQUNJLFVBQVU7SUFDVixXQUFXO0lBQ1gsd0JBQXdCO0lBQ3hCLG1CQUFtQjtJQUNuQixpQkFBaUI7SUFDakIsb0JBQW9CO0lBQ3BCLDRCQUE0QjtJQUM1QiwyQkFBMkI7SUFDM0IsZUFBZTtJQUNmLDJCQUEyQjtJQUMzQix5QkFBeUI7SUFDekIsd0JBQXdCO0lBQ3hCLHNCQUFzQjtJQUN0QixxQkFBcUI7SUFDckIsaUJBQWlCO0FBQ3JCOztBQUVBO0lBQ0ksK0NBQStDO0FBQ25EOztBQUVBO0lBQ0ksK0NBQStDO0FBQ25EOztBQUVBO0lBQ0ksMjJMQUF1QztJQUN2QyxXQUFXO0lBQ1gsU0FBUztBQUNiO0FBQ0E7SUFDSSwyMkxBQXlDO0lBQ3pDLFdBQVc7SUFDWCxTQUFTO0FBQ2I7QUFDQTtJQUNJLDI4TEFBeUM7SUFDekMsV0FBVztJQUNYLFNBQVM7QUFDYjtBQUNBO0lBQ0ksbTdMQUEwQztJQUMxQyxXQUFXO0lBQ1gsU0FBUztBQUNiO0FBQ0E7SUFDSSwyc0xBQW9DO0lBQ3BDLFdBQVc7SUFDWCxVQUFVO0FBQ2Q7QUFDQTtJQUNJLDI4S0FBcUM7SUFDckMsV0FBVztJQUNYLFVBQVU7QUFDZDtBQUNBO0lBQ0ksKzJMQUEyQztJQUMzQyxXQUFXO0lBQ1gsVUFBVTtBQUNkIiwiZmlsZSI6Ik5hdmlnYXRpb25IYW5kbGVyLmNzcyIsInNvdXJjZXNDb250ZW50IjpbImRpdi52aXMtbmV0d29yayBkaXYudmlzLW5hdmlnYXRpb24gZGl2LnZpcy1idXR0b24ge1xuICAgIHdpZHRoOjM0cHg7XG4gICAgaGVpZ2h0OjM0cHg7XG4gICAgLW1vei1ib3JkZXItcmFkaXVzOiAxN3B4O1xuICAgIGJvcmRlci1yYWRpdXM6IDE3cHg7XG4gICAgcG9zaXRpb246YWJzb2x1dGU7XG4gICAgZGlzcGxheTppbmxpbmUtYmxvY2s7XG4gICAgYmFja2dyb3VuZC1wb3NpdGlvbjogMnB4IDJweDtcbiAgICBiYWNrZ3JvdW5kLXJlcGVhdDpuby1yZXBlYXQ7XG4gICAgY3Vyc29yOiBwb2ludGVyO1xuICAgIC13ZWJraXQtdG91Y2gtY2FsbG91dDogbm9uZTtcbiAgICAtd2Via2l0LXVzZXItc2VsZWN0OiBub25lO1xuICAgIC1raHRtbC11c2VyLXNlbGVjdDogbm9uZTtcbiAgICAtbW96LXVzZXItc2VsZWN0OiBub25lO1xuICAgIC1tcy11c2VyLXNlbGVjdDogbm9uZTtcbiAgICB1c2VyLXNlbGVjdDogbm9uZTtcbn1cblxuZGl2LnZpcy1uZXR3b3JrIGRpdi52aXMtbmF2aWdhdGlvbiBkaXYudmlzLWJ1dHRvbjpob3ZlciB7XG4gICAgYm94LXNoYWRvdzogMCAwIDNweCAzcHggcmdiYSg1NiwgMjA3LCAyMSwgMC4zMCk7XG59XG5cbmRpdi52aXMtbmV0d29yayBkaXYudmlzLW5hdmlnYXRpb24gZGl2LnZpcy1idXR0b246YWN0aXZlIHtcbiAgICBib3gtc2hhZG93OiAwIDAgMXB4IDNweCByZ2JhKDU2LCAyMDcsIDIxLCAwLjk1KTtcbn1cblxuZGl2LnZpcy1uZXR3b3JrIGRpdi52aXMtbmF2aWdhdGlvbiBkaXYudmlzLWJ1dHRvbi52aXMtdXAge1xuICAgIGJhY2tncm91bmQtaW1hZ2U6IGlubGluZShcInVwQXJyb3cucG5nXCIpO1xuICAgIGJvdHRvbTo1MHB4O1xuICAgIGxlZnQ6NTVweDtcbn1cbmRpdi52aXMtbmV0d29yayBkaXYudmlzLW5hdmlnYXRpb24gZGl2LnZpcy1idXR0b24udmlzLWRvd24ge1xuICAgIGJhY2tncm91bmQtaW1hZ2U6IGlubGluZShcImRvd25BcnJvdy5wbmdcIik7XG4gICAgYm90dG9tOjEwcHg7XG4gICAgbGVmdDo1NXB4O1xufVxuZGl2LnZpcy1uZXR3b3JrIGRpdi52aXMtbmF2aWdhdGlvbiBkaXYudmlzLWJ1dHRvbi52aXMtbGVmdCB7XG4gICAgYmFja2dyb3VuZC1pbWFnZTogaW5saW5lKFwibGVmdEFycm93LnBuZ1wiKTtcbiAgICBib3R0b206MTBweDtcbiAgICBsZWZ0OjE1cHg7XG59XG5kaXYudmlzLW5ldHdvcmsgZGl2LnZpcy1uYXZpZ2F0aW9uIGRpdi52aXMtYnV0dG9uLnZpcy1yaWdodCB7XG4gICAgYmFja2dyb3VuZC1pbWFnZTogaW5saW5lKFwicmlnaHRBcnJvdy5wbmdcIik7XG4gICAgYm90dG9tOjEwcHg7XG4gICAgbGVmdDo5NXB4O1xufVxuZGl2LnZpcy1uZXR3b3JrIGRpdi52aXMtbmF2aWdhdGlvbiBkaXYudmlzLWJ1dHRvbi52aXMtem9vbUluIHtcbiAgICBiYWNrZ3JvdW5kLWltYWdlOiBpbmxpbmUoXCJwbHVzLnBuZ1wiKTtcbiAgICBib3R0b206MTBweDtcbiAgICByaWdodDoxNXB4O1xufVxuZGl2LnZpcy1uZXR3b3JrIGRpdi52aXMtbmF2aWdhdGlvbiBkaXYudmlzLWJ1dHRvbi52aXMtem9vbU91dCB7XG4gICAgYmFja2dyb3VuZC1pbWFnZTogaW5saW5lKFwibWludXMucG5nXCIpO1xuICAgIGJvdHRvbToxMHB4O1xuICAgIHJpZ2h0OjU1cHg7XG59XG5kaXYudmlzLW5ldHdvcmsgZGl2LnZpcy1uYXZpZ2F0aW9uIGRpdi52aXMtYnV0dG9uLnZpcy16b29tRXh0ZW5kcyB7XG4gICAgYmFja2dyb3VuZC1pbWFnZTogaW5saW5lKFwiem9vbUV4dGVuZHMucG5nXCIpO1xuICAgIGJvdHRvbTo1MHB4O1xuICAgIHJpZ2h0OjE1cHg7XG59XG4iXX0= */");var Oc=function(){function t(e,i){var n=this;qa(this,t),this.body=e,this.canvas=i,this.iconsCreated=!1,this.navigationHammers=[],this.boundFunctions={},this.touchTime=0,this.activated=!1,this.body.emitter.on("activate",(function(){n.activated=!0,n.configureKeyboardBindings()})),this.body.emitter.on("deactivate",(function(){n.activated=!1,n.configureKeyboardBindings()})),this.body.emitter.on("destroy",(function(){void 0!==n.keycharm&&n.keycharm.destroy()})),this.options={}}return tA(t,[{key:"setOptions",value:function(t){void 0!==t&&(this.options=t,this.create())}},{key:"create",value:function(){!0===this.options.navigationButtons?!1===this.iconsCreated&&this.loadNavigationElements():!0===this.iconsCreated&&this.cleanNavigation(),this.configureKeyboardBindings()}},{key:"cleanNavigation",value:function(){if(0!=this.navigationHammers.length){for(var t=0;t<this.navigationHammers.length;t++)this.navigationHammers[t].destroy();this.navigationHammers=[]}this.navigationDOM&&this.navigationDOM.wrapper&&this.navigationDOM.wrapper.parentNode&&this.navigationDOM.wrapper.parentNode.removeChild(this.navigationDOM.wrapper),this.iconsCreated=!1}},{key:"loadNavigationElements",value:function(){var t=this;this.cleanNavigation(),this.navigationDOM={};var e=["up","down","left","right","zoomIn","zoomOut","zoomExtends"],i=["_moveUp","_moveDown","_moveLeft","_moveRight","_zoomIn","_zoomOut","_fit"];this.navigationDOM.wrapper=document.createElement("div"),this.navigationDOM.wrapper.className="vis-navigation",this.canvas.frame.appendChild(this.navigationDOM.wrapper);for(var n=0;n<e.length;n++){this.navigationDOM[e[n]]=document.createElement("div"),this.navigationDOM[e[n]].className="vis-button vis-"+e[n],this.navigationDOM.wrapper.appendChild(this.navigationDOM[e[n]]);var o,r,g=new Va(this.navigationDOM[e[n]]);if("_fit"===i[n])kc.onTouch(g,et(o=this._fit).call(o,this));else kc.onTouch(g,et(r=this.bindToRedraw).call(r,this,i[n]));this.navigationHammers.push(g)}var s=new Va(this.canvas.frame);kc.onRelease(s,(function(){t._stopMovement()})),this.navigationHammers.push(s),this.iconsCreated=!0}},{key:"bindToRedraw",value:function(t){var e;void 0===this.boundFunctions[t]&&(this.boundFunctions[t]=et(e=this[t]).call(e,this),this.body.emitter.on("initRedraw",this.boundFunctions[t]),this.body.emitter.emit("_startRendering"))}},{key:"unbindFromRedraw",value:function(t){void 0!==this.boundFunctions[t]&&(this.body.emitter.off("initRedraw",this.boundFunctions[t]),this.body.emitter.emit("_stopRendering"),delete this.boundFunctions[t])}},{key:"_fit",value:function(){(new Date).valueOf()-this.touchTime>700&&(this.body.emitter.emit("fit",{duration:700}),this.touchTime=(new Date).valueOf())}},{key:"_stopMovement",value:function(){for(var t in this.boundFunctions)this.boundFunctions.hasOwnProperty(t)&&(this.body.emitter.off("initRedraw",this.boundFunctions[t]),this.body.emitter.emit("_stopRendering"));this.boundFunctions={}}},{key:"_moveUp",value:function(){this.body.view.translation.y+=this.options.keyboard.speed.y}},{key:"_moveDown",value:function(){this.body.view.translation.y-=this.options.keyboard.speed.y}},{key:"_moveLeft",value:function(){this.body.view.translation.x+=this.options.keyboard.speed.x}},{key:"_moveRight",value:function(){this.body.view.translation.x-=this.options.keyboard.speed.x}},{key:"_zoomIn",value:function(){var t=this.body.view.scale,e=this.body.view.scale*(1+this.options.keyboard.speed.zoom),i=this.body.view.translation,n=e/t,o=(1-n)*this.canvas.canvasViewCenter.x+i.x*n,r=(1-n)*this.canvas.canvasViewCenter.y+i.y*n;this.body.view.scale=e,this.body.view.translation={x:o,y:r},this.body.emitter.emit("zoom",{direction:"+",scale:this.body.view.scale,pointer:null})}},{key:"_zoomOut",value:function(){var t=this.body.view.scale,e=this.body.view.scale/(1+this.options.keyboard.speed.zoom),i=this.body.view.translation,n=e/t,o=(1-n)*this.canvas.canvasViewCenter.x+i.x*n,r=(1-n)*this.canvas.canvasViewCenter.y+i.y*n;this.body.view.scale=e,this.body.view.translation={x:o,y:r},this.body.emitter.emit("zoom",{direction:"-",scale:this.body.view.scale,pointer:null})}},{key:"configureKeyboardBindings",value:function(){var t,e,i,n,o,r,g,s,a,A,C,I,l,c,h,u,d,p,f,v,m,y,b,w,x=this;(void 0!==this.keycharm&&this.keycharm.destroy(),!0===this.options.keyboard.enabled)&&(!0===this.options.keyboard.bindToWindow?this.keycharm=vs({container:window,preventDefault:!0}):this.keycharm=vs({container:this.canvas.frame,preventDefault:!0}),this.keycharm.reset(),!0===this.activated&&(et(t=this.keycharm).call(t,"up",(function(){x.bindToRedraw("_moveUp")}),"keydown"),et(e=this.keycharm).call(e,"down",(function(){x.bindToRedraw("_moveDown")}),"keydown"),et(i=this.keycharm).call(i,"left",(function(){x.bindToRedraw("_moveLeft")}),"keydown"),et(n=this.keycharm).call(n,"right",(function(){x.bindToRedraw("_moveRight")}),"keydown"),et(o=this.keycharm).call(o,"=",(function(){x.bindToRedraw("_zoomIn")}),"keydown"),et(r=this.keycharm).call(r,"num+",(function(){x.bindToRedraw("_zoomIn")}),"keydown"),et(g=this.keycharm).call(g,"num-",(function(){x.bindToRedraw("_zoomOut")}),"keydown"),et(s=this.keycharm).call(s,"-",(function(){x.bindToRedraw("_zoomOut")}),"keydown"),et(a=this.keycharm).call(a,"[",(function(){x.bindToRedraw("_zoomOut")}),"keydown"),et(A=this.keycharm).call(A,"]",(function(){x.bindToRedraw("_zoomIn")}),"keydown"),et(C=this.keycharm).call(C,"pageup",(function(){x.bindToRedraw("_zoomIn")}),"keydown"),et(I=this.keycharm).call(I,"pagedown",(function(){x.bindToRedraw("_zoomOut")}),"keydown"),et(l=this.keycharm).call(l,"up",(function(){x.unbindFromRedraw("_moveUp")}),"keyup"),et(c=this.keycharm).call(c,"down",(function(){x.unbindFromRedraw("_moveDown")}),"keyup"),et(h=this.keycharm).call(h,"left",(function(){x.unbindFromRedraw("_moveLeft")}),"keyup"),et(u=this.keycharm).call(u,"right",(function(){x.unbindFromRedraw("_moveRight")}),"keyup"),et(d=this.keycharm).call(d,"=",(function(){x.unbindFromRedraw("_zoomIn")}),"keyup"),et(p=this.keycharm).call(p,"num+",(function(){x.unbindFromRedraw("_zoomIn")}),"keyup"),et(f=this.keycharm).call(f,"num-",(function(){x.unbindFromRedraw("_zoomOut")}),"keyup"),et(v=this.keycharm).call(v,"-",(function(){x.unbindFromRedraw("_zoomOut")}),"keyup"),et(m=this.keycharm).call(m,"[",(function(){x.unbindFromRedraw("_zoomOut")}),"keyup"),et(y=this.keycharm).call(y,"]",(function(){x.unbindFromRedraw("_zoomIn")}),"keyup"),et(b=this.keycharm).call(b,"pageup",(function(){x.unbindFromRedraw("_zoomIn")}),"keyup"),et(w=this.keycharm).call(w,"pagedown",(function(){x.unbindFromRedraw("_zoomOut")}),"keyup")))}}]),t}();ds("div.vis-tooltip {\n  position: absolute;\n  visibility: hidden;\n  padding: 5px;\n  white-space: nowrap;\n\n  font-family: verdana;\n  font-size:14px;\n  color:#000000;\n  background-color: #f5f4ed;\n\n  -moz-border-radius: 3px;\n  -webkit-border-radius: 3px;\n  border-radius: 3px;\n  border: 1px solid #808074;\n\n  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);\n  pointer-events: none;\n\n  z-index: 5;\n}\n\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlBvcHVwLmNzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLGtCQUFrQjtFQUNsQixrQkFBa0I7RUFDbEIsWUFBWTtFQUNaLG1CQUFtQjs7RUFFbkIsb0JBQW9CO0VBQ3BCLGNBQWM7RUFDZCxhQUFhO0VBQ2IseUJBQXlCOztFQUV6Qix1QkFBdUI7RUFDdkIsMEJBQTBCO0VBQzFCLGtCQUFrQjtFQUNsQix5QkFBeUI7O0VBRXpCLDJDQUEyQztFQUMzQyxvQkFBb0I7O0VBRXBCLFVBQVU7QUFDWiIsImZpbGUiOiJQb3B1cC5jc3MiLCJzb3VyY2VzQ29udGVudCI6WyJkaXYudmlzLXRvb2x0aXAge1xuICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gIHZpc2liaWxpdHk6IGhpZGRlbjtcbiAgcGFkZGluZzogNXB4O1xuICB3aGl0ZS1zcGFjZTogbm93cmFwO1xuXG4gIGZvbnQtZmFtaWx5OiB2ZXJkYW5hO1xuICBmb250LXNpemU6MTRweDtcbiAgY29sb3I6IzAwMDAwMDtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2Y1ZjRlZDtcblxuICAtbW96LWJvcmRlci1yYWRpdXM6IDNweDtcbiAgLXdlYmtpdC1ib3JkZXItcmFkaXVzOiAzcHg7XG4gIGJvcmRlci1yYWRpdXM6IDNweDtcbiAgYm9yZGVyOiAxcHggc29saWQgIzgwODA3NDtcblxuICBib3gtc2hhZG93OiAzcHggM3B4IDEwcHggcmdiYSgwLCAwLCAwLCAwLjIpO1xuICBwb2ludGVyLWV2ZW50czogbm9uZTtcblxuICB6LWluZGV4OiA1O1xufVxuIl19 */");var Mc=function(){function t(e,i){qa(this,t),this.container=e,this.overflowMethod=i||"cap",this.x=0,this.y=0,this.padding=5,this.hidden=!1,this.frame=document.createElement("div"),this.frame.className="vis-tooltip",this.container.appendChild(this.frame)}return tA(t,[{key:"setPosition",value:function(t,e){this.x=lo(t),this.y=lo(e)}},{key:"setText",value:function(t){t instanceof Element?(this.frame.innerHTML="",this.frame.appendChild(t)):this.frame.innerHTML=t}},{key:"show",value:function(t){if(void 0===t&&(t=!0),!0===t){var e=this.frame.clientHeight,i=this.frame.clientWidth,n=this.frame.parentNode.clientHeight,o=this.frame.parentNode.clientWidth,r=0,g=0;if("flip"==this.overflowMethod){var s=!1,a=!0;this.y-e<this.padding&&(a=!1),this.x+i>o-this.padding&&(s=!0),r=s?this.x-i:this.x,g=a?this.y-e:this.y}else(g=this.y-e)+e+this.padding>n&&(g=n-e-this.padding),g<this.padding&&(g=this.padding),(r=this.x)+i+this.padding>o&&(r=o-i-this.padding),r<this.padding&&(r=this.padding);this.frame.style.left=r+"px",this.frame.style.top=g+"px",this.frame.style.visibility="visible",this.hidden=!1}else this.hide()}},{key:"hide",value:function(){this.hidden=!0,this.frame.style.left="0",this.frame.style.top="0",this.frame.style.visibility="hidden"}},{key:"destroy",value:function(){this.frame.parentNode.removeChild(this.frame)}}]),t}(),Tc=function(){function t(e,i,n){var o,r,g,s,a,A,C,I,l,c,h,u,d;qa(this,t),this.body=e,this.canvas=i,this.selectionHandler=n,this.navigationHandler=new Oc(e,i),this.body.eventListeners.onTap=et(o=this.onTap).call(o,this),this.body.eventListeners.onTouch=et(r=this.onTouch).call(r,this),this.body.eventListeners.onDoubleTap=et(g=this.onDoubleTap).call(g,this),this.body.eventListeners.onHold=et(s=this.onHold).call(s,this),this.body.eventListeners.onDragStart=et(a=this.onDragStart).call(a,this),this.body.eventListeners.onDrag=et(A=this.onDrag).call(A,this),this.body.eventListeners.onDragEnd=et(C=this.onDragEnd).call(C,this),this.body.eventListeners.onMouseWheel=et(I=this.onMouseWheel).call(I,this),this.body.eventListeners.onPinch=et(l=this.onPinch).call(l,this),this.body.eventListeners.onMouseMove=et(c=this.onMouseMove).call(c,this),this.body.eventListeners.onRelease=et(h=this.onRelease).call(h,this),this.body.eventListeners.onContext=et(u=this.onContext).call(u,this),this.touchTime=0,this.drag={},this.pinch={},this.popup=void 0,this.popupObj=void 0,this.popupTimer=void 0,this.body.functions.getPointer=et(d=this.getPointer).call(d,this),this.options={},this.defaultOptions={dragNodes:!0,dragView:!0,hover:!1,keyboard:{enabled:!1,speed:{x:10,y:10,zoom:.02},bindToWindow:!0},navigationButtons:!1,tooltipDelay:300,zoomView:!0,zoomSpeed:1},Rr(this.options,this.defaultOptions),this.bindEventListeners()}return tA(t,[{key:"bindEventListeners",value:function(){var t=this;this.body.emitter.on("destroy",(function(){clearTimeout(t.popupTimer),delete t.body.functions.getPointer}))}},{key:"setOptions",value:function(t){if(void 0!==t){Zr(["hideEdgesOnDrag","hideEdgesOnZoom","hideNodesOnDrag","keyboard","multiselect","selectable","selectConnectedEdges"],this.options,t),Ig(this.options,t,"keyboard"),t.tooltip&&(Rr(this.options.tooltip,t.tooltip),t.tooltip.color&&(this.options.tooltip.color=tg(t.tooltip.color)))}this.navigationHandler.setOptions(this.options)}},{key:"getPointer",value:function(t){return{x:t.x-Qr(this.canvas.frame.canvas),y:t.y-Ur(this.canvas.frame.canvas)}}},{key:"onTouch",value:function(t){(new Date).valueOf()-this.touchTime>50&&(this.drag.pointer=this.getPointer(t.center),this.drag.pinched=!1,this.pinch.scale=this.body.view.scale,this.touchTime=(new Date).valueOf())}},{key:"onTap",value:function(t){var e=this.getPointer(t.center),i=this.selectionHandler.options.multiselect&&(t.changedPointers[0].ctrlKey||t.changedPointers[0].metaKey);this.checkSelectionChanges(e,t,i),this.selectionHandler._generateClickEvent("click",t,e)}},{key:"onDoubleTap",value:function(t){var e=this.getPointer(t.center);this.selectionHandler._generateClickEvent("doubleClick",t,e)}},{key:"onHold",value:function(t){var e=this.getPointer(t.center),i=this.selectionHandler.options.multiselect;this.checkSelectionChanges(e,t,i),this.selectionHandler._generateClickEvent("click",t,e),this.selectionHandler._generateClickEvent("hold",t,e)}},{key:"onRelease",value:function(t){if((new Date).valueOf()-this.touchTime>10){var e=this.getPointer(t.center);this.selectionHandler._generateClickEvent("release",t,e),this.touchTime=(new Date).valueOf()}}},{key:"onContext",value:function(t){var e=this.getPointer({x:t.clientX,y:t.clientY});this.selectionHandler._generateClickEvent("oncontext",t,e)}},{key:"checkSelectionChanges",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=this.selectionHandler.getSelection(),o=!1;o=!0===i?this.selectionHandler.selectAdditionalOnPoint(t):this.selectionHandler.selectOnPoint(t);var r=this.selectionHandler.getSelection(),g=this._determineDifference(n,r),s=this._determineDifference(r,n);g.edges.length>0&&(this.selectionHandler._generateClickEvent("deselectEdge",e,t,n),o=!0),g.nodes.length>0&&(this.selectionHandler._generateClickEvent("deselectNode",e,t,n),o=!0),s.nodes.length>0&&(this.selectionHandler._generateClickEvent("selectNode",e,t),o=!0),s.edges.length>0&&(this.selectionHandler._generateClickEvent("selectEdge",e,t),o=!0),!0===o&&this.selectionHandler._generateClickEvent("select",e,t)}},{key:"_determineDifference",value:function(t,e){var i=function(t,e){for(var i=[],n=0;n<t.length;n++){var o=t[n];-1===rr(e).call(e,o)&&i.push(o)}return i};return{nodes:i(t.nodes,e.nodes),edges:i(t.edges,e.edges)}}},{key:"onDragStart",value:function(t){void 0===this.drag.pointer&&this.onTouch(t);var e=this.selectionHandler.getNodeAt(this.drag.pointer);if(this.drag.dragging=!0,this.drag.selection=[],this.drag.translation=Rr({},this.body.view.translation),this.drag.nodeId=void 0,void 0!==e&&!0===this.options.dragNodes){this.drag.nodeId=e.id,!1===e.isSelected()&&(this.selectionHandler.unselectAll(),this.selectionHandler.selectObject(e)),this.selectionHandler._generateClickEvent("dragStart",t,this.drag.pointer);var i=this.selectionHandler.selectionObj.nodes;for(var n in i)if(i.hasOwnProperty(n)){var o=i[n],r={id:o.id,node:o,x:o.x,y:o.y,xFixed:o.options.fixed.x,yFixed:o.options.fixed.y};o.options.fixed.x=!0,o.options.fixed.y=!0,this.drag.selection.push(r)}}else this.selectionHandler._generateClickEvent("dragStart",t,this.drag.pointer,void 0,!0)}},{key:"onDrag",value:function(t){var e=this;if(!0!==this.drag.pinched){this.body.emitter.emit("unlockNode");var i=this.getPointer(t.center),n=this.drag.selection;if(n&&n.length&&!0===this.options.dragNodes){this.selectionHandler._generateClickEvent("dragging",t,i);var o=i.x-this.drag.pointer.x,r=i.y-this.drag.pointer.y;eo(n).call(n,(function(t){var i=t.node;!1===t.xFixed&&(i.x=e.canvas._XconvertDOMtoCanvas(e.canvas._XconvertCanvasToDOM(t.x)+o)),!1===t.yFixed&&(i.y=e.canvas._YconvertDOMtoCanvas(e.canvas._YconvertCanvasToDOM(t.y)+r))})),this.body.emitter.emit("startSimulation")}else if(!0===this.options.dragView){if(this.selectionHandler._generateClickEvent("dragging",t,i,void 0,!0),void 0===this.drag.pointer)return void this.onDragStart(t);var g=i.x-this.drag.pointer.x,s=i.y-this.drag.pointer.y;this.body.view.translation={x:this.drag.translation.x+g,y:this.drag.translation.y+s},this.body.emitter.emit("_requestRedraw")}}}},{key:"onDragEnd",value:function(t){this.drag.dragging=!1;var e=this.drag.selection;e&&e.length?(eo(e).call(e,(function(t){t.node.options.fixed.x=t.xFixed,t.node.options.fixed.y=t.yFixed})),this.selectionHandler._generateClickEvent("dragEnd",t,this.getPointer(t.center)),this.body.emitter.emit("startSimulation")):(this.selectionHandler._generateClickEvent("dragEnd",t,this.getPointer(t.center),void 0,!0),this.body.emitter.emit("_requestRedraw"))}},{key:"onPinch",value:function(t){var e=this.getPointer(t.center);this.drag.pinched=!0,void 0===this.pinch.scale&&(this.pinch.scale=1);var i=this.pinch.scale*t.scale;this.zoom(i,e)}},{key:"zoom",value:function(t,e){if(!0===this.options.zoomView){var i=this.body.view.scale;t<1e-5&&(t=1e-5),t>10&&(t=10);var n=void 0;void 0!==this.drag&&!0===this.drag.dragging&&(n=this.canvas.DOMtoCanvas(this.drag.pointer));var o=this.body.view.translation,r=t/i,g=(1-r)*e.x+o.x*r,s=(1-r)*e.y+o.y*r;if(this.body.view.scale=t,this.body.view.translation={x:g,y:s},null!=n){var a=this.canvas.canvasToDOM(n);this.drag.pointer.x=a.x,this.drag.pointer.y=a.y}this.body.emitter.emit("_requestRedraw"),i<t?this.body.emitter.emit("zoom",{direction:"+",scale:this.body.view.scale,pointer:e}):this.body.emitter.emit("zoom",{direction:"-",scale:this.body.view.scale,pointer:e})}}},{key:"onMouseWheel",value:function(t){if(!0===this.options.zoomView){if(0!==t.deltaY){var e=this.body.view.scale;e*=1+(t.deltaY<0?1:-1)*(.1*this.options.zoomSpeed);var i=this.getPointer({x:t.clientX,y:t.clientY});this.zoom(e,i)}t.preventDefault()}}},{key:"onMouseMove",value:function(t){var e=this,i=this.getPointer({x:t.clientX,y:t.clientY}),n=!1;void 0!==this.popup&&(!1===this.popup.hidden&&this._checkHidePopup(i),!1===this.popup.hidden&&(n=!0,this.popup.setPosition(i.x+3,i.y-5),this.popup.show())),!1===this.options.keyboard.bindToWindow&&!0===this.options.keyboard.enabled&&this.canvas.frame.focus(),!1===n&&(void 0!==this.popupTimer&&(clearInterval(this.popupTimer),this.popupTimer=void 0),this.drag.dragging||(this.popupTimer=sA((function(){return e._checkShowPopup(i)}),this.options.tooltipDelay))),!0===this.options.hover&&this.selectionHandler.hoverObject(t,i)}},{key:"_checkShowPopup",value:function(t){var e=this.canvas._XconvertDOMtoCanvas(t.x),i=this.canvas._YconvertDOMtoCanvas(t.y),n={left:e,top:i,right:e,bottom:i},o=void 0===this.popupObj?void 0:this.popupObj.id,r=!1,g="node";if(void 0===this.popupObj){for(var s,a=this.body.nodeIndices,A=this.body.nodes,C=[],I=0;I<a.length;I++)!0===(s=A[a[I]]).isOverlappingWith(n)&&(r=!0,void 0!==s.getTitle()&&C.push(a[I]));C.length>0&&(this.popupObj=A[C[C.length-1]],r=!0)}if(void 0===this.popupObj&&!1===r){for(var l,c=this.body.edgeIndices,h=this.body.edges,u=[],d=0;d<c.length;d++)!0===(l=h[c[d]]).isOverlappingWith(n)&&!0===l.connected&&void 0!==l.getTitle()&&u.push(c[d]);u.length>0&&(this.popupObj=h[u[u.length-1]],g="edge")}void 0!==this.popupObj?this.popupObj.id!==o&&(void 0===this.popup&&(this.popup=new Mc(this.canvas.frame)),this.popup.popupTargetType=g,this.popup.popupTargetId=this.popupObj.id,this.popup.setPosition(t.x+3,t.y-5),this.popup.setText(this.popupObj.getTitle()),this.popup.show(),this.body.emitter.emit("showPopup",this.popupObj.id)):void 0!==this.popup&&(this.popup.hide(),this.body.emitter.emit("hidePopup"))}},{key:"_checkHidePopup",value:function(t){var e=this.selectionHandler._pointerToPositionObject(t),i=!1;if("node"===this.popup.popupTargetType){if(void 0!==this.body.nodes[this.popup.popupTargetId]&&!0===(i=this.body.nodes[this.popup.popupTargetId].isOverlappingWith(e))){var n=this.selectionHandler.getNodeAt(t);i=void 0!==n&&n.id===this.popup.popupTargetId}}else void 0===this.selectionHandler.getNodeAt(t)&&void 0!==this.body.edges[this.popup.popupTargetId]&&(i=this.body.edges[this.popup.popupTargetId].isOverlappingWith(e));!1===i&&(this.popupObj=void 0,this.popup.hide(),this.body.emitter.emit("hidePopup"))}}]),t}(),Nc=function(){function t(e,i){var n=this;qa(this,t),this.body=e,this.canvas=i,this.selectionObj={nodes:[],edges:[]},this.hoverObj={nodes:{},edges:{}},this.options={},this.defaultOptions={multiselect:!1,selectable:!0,selectConnectedEdges:!0,hoverConnectedEdges:!0},Rr(this.options,this.defaultOptions),this.body.emitter.on("_dataChanged",(function(){n.updateSelection()}))}return tA(t,[{key:"setOptions",value:function(t){if(void 0!==t){zr(["multiselect","hoverConnectedEdges","selectable","selectConnectedEdges"],this.options,t)}}},{key:"selectOnPoint",value:function(t){var e=!1;if(!0===this.options.selectable){var i=this.getNodeAt(t)||this.getEdgeAt(t);this.unselectAll(),void 0!==i&&(e=this.selectObject(i)),this.body.emitter.emit("_requestRedraw")}return e}},{key:"selectAdditionalOnPoint",value:function(t){var e=!1;if(!0===this.options.selectable){var i=this.getNodeAt(t)||this.getEdgeAt(t);void 0!==i&&(e=!0,!0===i.isSelected()?this.deselectObject(i):this.selectObject(i),this.body.emitter.emit("_requestRedraw"))}return e}},{key:"_initBaseEvent",value:function(t,e){var i={};return i.pointer={DOM:{x:e.x,y:e.y},canvas:this.canvas.DOMtoCanvas(e)},i.event=t,i}},{key:"_generateClickEvent",value:function(t,e,i,n){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r=this._initBaseEvent(e,i);if(!0===o)r.nodes=[],r.edges=[];else{var g=this.getSelection();r.nodes=g.nodes,r.edges=g.edges}void 0!==n&&(r.previousSelection=n),"click"==t&&(r.items=this.getClickedItems(i)),void 0!==e.controlEdge&&(r.controlEdge=e.controlEdge),this.body.emitter.emit(t,r)}},{key:"selectObject",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.selectConnectedEdges;return void 0!==t&&(t instanceof Il&&!0===e&&this._selectConnectedEdges(t),t.select(),this._addToSelection(t),!0)}},{key:"deselectObject",value:function(t){!0===t.isSelected()&&(t.selected=!1,this._removeFromSelection(t))}},{key:"_getAllNodesOverlappingWith",value:function(t){for(var e=[],i=this.body.nodes,n=0;n<this.body.nodeIndices.length;n++){var o=this.body.nodeIndices[n];i[o].isOverlappingWith(t)&&e.push(o)}return e}},{key:"_pointerToPositionObject",value:function(t){var e=this.canvas.DOMtoCanvas(t);return{left:e.x-1,top:e.y+1,right:e.x+1,bottom:e.y-1}}},{key:"getNodeAt",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this._pointerToPositionObject(t),n=this._getAllNodesOverlappingWith(i);return n.length>0?!0===e?this.body.nodes[n[n.length-1]]:n[n.length-1]:void 0}},{key:"_getEdgesOverlappingWith",value:function(t,e){for(var i=this.body.edges,n=0;n<this.body.edgeIndices.length;n++){var o=this.body.edgeIndices[n];i[o].isOverlappingWith(t)&&e.push(o)}}},{key:"_getAllEdgesOverlappingWith",value:function(t){var e=[];return this._getEdgesOverlappingWith(t,e),e}},{key:"getEdgeAt",value:function(t){for(var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.canvas.DOMtoCanvas(t),n=10,o=null,r=this.body.edges,g=0;g<this.body.edgeIndices.length;g++){var s=this.body.edgeIndices[g],a=r[s];if(a.connected){var A=a.from.x,C=a.from.y,I=a.to.x,l=a.to.y,c=a.edgeType.getDistanceToEdge(A,C,I,l,i.x,i.y);c<n&&(o=s,n=c)}}return null!==o?!0===e?this.body.edges[o]:o:void 0}},{key:"_addToSelection",value:function(t){t instanceof Il?this.selectionObj.nodes[t.id]=t:this.selectionObj.edges[t.id]=t}},{key:"_addToHover",value:function(t){t instanceof Il?this.hoverObj.nodes[t.id]=t:this.hoverObj.edges[t.id]=t}},{key:"_removeFromSelection",value:function(t){t instanceof Il?(delete this.selectionObj.nodes[t.id],this._unselectConnectedEdges(t)):delete this.selectionObj.edges[t.id]}},{key:"unselectAll",value:function(){for(var t in this.selectionObj.nodes)this.selectionObj.nodes.hasOwnProperty(t)&&this.selectionObj.nodes[t].unselect();for(var e in this.selectionObj.edges)this.selectionObj.edges.hasOwnProperty(e)&&this.selectionObj.edges[e].unselect();this.selectionObj={nodes:{},edges:{}}}},{key:"_getSelectedNodeCount",value:function(){var t=0;for(var e in this.selectionObj.nodes)this.selectionObj.nodes.hasOwnProperty(e)&&(t+=1);return t}},{key:"_getSelectedNode",value:function(){for(var t in this.selectionObj.nodes)if(this.selectionObj.nodes.hasOwnProperty(t))return this.selectionObj.nodes[t]}},{key:"_getSelectedEdge",value:function(){for(var t in this.selectionObj.edges)if(this.selectionObj.edges.hasOwnProperty(t))return this.selectionObj.edges[t]}},{key:"_getSelectedEdgeCount",value:function(){var t=0;for(var e in this.selectionObj.edges)this.selectionObj.edges.hasOwnProperty(e)&&(t+=1);return t}},{key:"_getSelectedObjectCount",value:function(){var t=0;for(var e in this.selectionObj.nodes)this.selectionObj.nodes.hasOwnProperty(e)&&(t+=1);for(var i in this.selectionObj.edges)this.selectionObj.edges.hasOwnProperty(i)&&(t+=1);return t}},{key:"_selectionIsEmpty",value:function(){for(var t in this.selectionObj.nodes)if(this.selectionObj.nodes.hasOwnProperty(t))return!1;for(var e in this.selectionObj.edges)if(this.selectionObj.edges.hasOwnProperty(e))return!1;return!0}},{key:"_clusterInSelection",value:function(){for(var t in this.selectionObj.nodes)if(this.selectionObj.nodes.hasOwnProperty(t)&&this.selectionObj.nodes[t].clusterSize>1)return!0;return!1}},{key:"_selectConnectedEdges",value:function(t){for(var e=0;e<t.edges.length;e++){var i=t.edges[e];i.select(),this._addToSelection(i)}}},{key:"_hoverConnectedEdges",value:function(t){for(var e=0;e<t.edges.length;e++){var i=t.edges[e];i.hover=!0,this._addToHover(i)}}},{key:"_unselectConnectedEdges",value:function(t){for(var e=0;e<t.edges.length;e++){var i=t.edges[e];i.unselect(),this._removeFromSelection(i)}}},{key:"emitBlurEvent",value:function(t,e,i){var n=this._initBaseEvent(t,e);!0===i.hover&&(i.hover=!1,i instanceof Il?(n.node=i.id,this.body.emitter.emit("blurNode",n)):(n.edge=i.id,this.body.emitter.emit("blurEdge",n)))}},{key:"emitHoverEvent",value:function(t,e,i){var n=this._initBaseEvent(t,e),o=!1;return!1===i.hover&&(i.hover=!0,this._addToHover(i),o=!0,i instanceof Il?(n.node=i.id,this.body.emitter.emit("hoverNode",n)):(n.edge=i.id,this.body.emitter.emit("hoverEdge",n))),o}},{key:"hoverObject",value:function(t,e){var i=this.getNodeAt(e);void 0===i&&(i=this.getEdgeAt(e));var n=!1;for(var o in this.hoverObj.nodes)this.hoverObj.nodes.hasOwnProperty(o)&&(void 0===i||i instanceof Il&&i.id!=o||i instanceof ec)&&(this.emitBlurEvent(t,e,this.hoverObj.nodes[o]),delete this.hoverObj.nodes[o],n=!0);for(var r in this.hoverObj.edges)this.hoverObj.edges.hasOwnProperty(r)&&(!0===n?(this.hoverObj.edges[r].hover=!1,delete this.hoverObj.edges[r]):(void 0===i||i instanceof ec&&i.id!=r||i instanceof Il&&!i.hover)&&(this.emitBlurEvent(t,e,this.hoverObj.edges[r]),delete this.hoverObj.edges[r],n=!0));if(void 0!==i){var g=En(this.hoverObj.edges).length,s=En(this.hoverObj.nodes).length;(n||i instanceof ec&&0===g&&0===s||i instanceof Il&&0===g&&0===s)&&(n=this.emitHoverEvent(t,e,i)),i instanceof Il&&!0===this.options.hoverConnectedEdges&&this._hoverConnectedEdges(i)}!0===n&&this.body.emitter.emit("_requestRedraw")}},{key:"getSelection",value:function(){return{nodes:this.getSelectedNodes(),edges:this.getSelectedEdges()}}},{key:"getSelectedNodes",value:function(){var t=[];if(!0===this.options.selectable)for(var e in this.selectionObj.nodes)this.selectionObj.nodes.hasOwnProperty(e)&&t.push(this.selectionObj.nodes[e].id);return t}},{key:"getSelectedEdges",value:function(){var t=[];if(!0===this.options.selectable)for(var e in this.selectionObj.edges)this.selectionObj.edges.hasOwnProperty(e)&&t.push(this.selectionObj.edges[e].id);return t}},{key:"setSelection",value:function(t){var e,i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t||!t.nodes&&!t.edges)throw"Selection must be an object with nodes and/or edges properties";if((n.unselectAll||void 0===n.unselectAll)&&this.unselectAll(),t.nodes)for(e=0;e<t.nodes.length;e++){i=t.nodes[e];var o=this.body.nodes[i];if(!o)throw new RangeError('Node with id "'+i+'" not found');this.selectObject(o,n.highlightEdges)}if(t.edges)for(e=0;e<t.edges.length;e++){i=t.edges[e];var r=this.body.edges[i];if(!r)throw new RangeError('Edge with id "'+i+'" not found');this.selectObject(r)}this.body.emitter.emit("_requestRedraw")}},{key:"selectNodes",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!t||void 0===t.length)throw"Selection must be an array with ids";this.setSelection({nodes:t},{highlightEdges:e})}},{key:"selectEdges",value:function(t){if(!t||void 0===t.length)throw"Selection must be an array with ids";this.setSelection({edges:t})}},{key:"updateSelection",value:function(){for(var t in this.selectionObj.nodes)this.selectionObj.nodes.hasOwnProperty(t)&&(this.body.nodes.hasOwnProperty(t)||delete this.selectionObj.nodes[t]);for(var e in this.selectionObj.edges)this.selectionObj.edges.hasOwnProperty(e)&&(this.body.edges.hasOwnProperty(e)||delete this.selectionObj.edges[e])}},{key:"getClickedItems",value:function(t){for(var e=this.canvas.DOMtoCanvas(t),i=[],n=this.body.nodeIndices,o=this.body.nodes,r=n.length-1;r>=0;r--){var g=o[n[r]].getItemsOnPoint(e);i.push.apply(i,g)}for(var s=this.body.edgeIndices,a=this.body.edges,A=s.length-1;A>=0;A--){var C=a[s[A]].getItemsOnPoint(e);i.push.apply(i,C)}return i}}]),t}(),Ec=r((function(t,e){!function(t){t.__esModule=!0,t.sort=function(t,e,i,g){if(!Array.isArray(t))throw new TypeError("Can only sort arrays");e?"function"!=typeof e&&(g=i,i=e,e=n):e=n,i||(i=0),g||(g=t.length);var s=g-i;if(!(s<2)){var A=0;if(s<32)return A=o(t,i,g,e),void r(t,i,g,i+A,e);var C=new a(t,e),I=function(t){for(var e=0;t>=32;)e|=1&t,t>>=1;return t+e}(s);do{if((A=o(t,i,g,e))<I){var l=s;l>I&&(l=I),r(t,i,i+l,i+A,e),A=l}C.pushRun(i,A),C.mergeRuns(),s-=A,i+=A}while(0!==s);C.forceMergeRuns()}};var e=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9];function i(t){return t<1e5?t<100?t<10?0:1:t<1e4?t<1e3?2:3:4:t<1e7?t<1e6?5:6:t<1e9?t<1e8?7:8:9}function n(t,n){if(t===n)return 0;if(~~t===t&&~~n===n){if(0===t||0===n)return t<n?-1:1;if(t<0||n<0){if(n>=0)return-1;if(t>=0)return 1;t=-t,n=-n}var o=i(t),r=i(n),g=0;return o<r?(t*=e[r-o-1],n/=10,g=-1):o>r&&(n*=e[o-r-1],t/=10,g=1),t===n?g:t<n?-1:1}var s=String(t),a=String(n);return s===a?0:s<a?-1:1}function o(t,e,i,n){var o=e+1;if(o===i)return 1;if(n(t[o++],t[e])<0){for(;o<i&&n(t[o],t[o-1])<0;)o++;!function(t,e,i){for(i--;e<i;){var n=t[e];t[e++]=t[i],t[i--]=n}}(t,e,o)}else for(;o<i&&n(t[o],t[o-1])>=0;)o++;return o-e}function r(t,e,i,n,o){for(n===e&&n++;n<i;n++){for(var r=t[n],g=e,s=n;g<s;){var a=g+s>>>1;o(r,t[a])<0?s=a:g=a+1}var A=n-g;switch(A){case 3:t[g+3]=t[g+2];case 2:t[g+2]=t[g+1];case 1:t[g+1]=t[g];break;default:for(;A>0;)t[g+A]=t[g+A-1],A--}t[g]=r}}function g(t,e,i,n,o,r){var g=0,s=0,a=1;if(r(t,e[i+o])>0){for(s=n-o;a<s&&r(t,e[i+o+a])>0;)g=a,(a=1+(a<<1))<=0&&(a=s);a>s&&(a=s),g+=o,a+=o}else{for(s=o+1;a<s&&r(t,e[i+o-a])<=0;)g=a,(a=1+(a<<1))<=0&&(a=s);a>s&&(a=s);var A=g;g=o-a,a=o-A}for(g++;g<a;){var C=g+(a-g>>>1);r(t,e[i+C])>0?g=C+1:a=C}return a}function s(t,e,i,n,o,r){var g=0,s=0,a=1;if(r(t,e[i+o])<0){for(s=o+1;a<s&&r(t,e[i+o-a])<0;)g=a,(a=1+(a<<1))<=0&&(a=s);a>s&&(a=s);var A=g;g=o-a,a=o-A}else{for(s=n-o;a<s&&r(t,e[i+o+a])>=0;)g=a,(a=1+(a<<1))<=0&&(a=s);a>s&&(a=s),g+=o,a+=o}for(g++;g<a;){var C=g+(a-g>>>1);r(t,e[i+C])<0?a=C:g=C+1}return a}var a=function(){function t(e,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.array=null,this.compare=null,this.minGallop=7,this.length=0,this.tmpStorageLength=256,this.stackLength=0,this.runStart=null,this.runLength=null,this.stackSize=0,this.array=e,this.compare=i,this.length=e.length,this.length<512&&(this.tmpStorageLength=this.length>>>1),this.tmp=new Array(this.tmpStorageLength),this.stackLength=this.length<120?5:this.length<1542?10:this.length<119151?19:40,this.runStart=new Array(this.stackLength),this.runLength=new Array(this.stackLength)}return t.prototype.pushRun=function(t,e){this.runStart[this.stackSize]=t,this.runLength[this.stackSize]=e,this.stackSize+=1},t.prototype.mergeRuns=function(){for(;this.stackSize>1;){var t=this.stackSize-2;if(t>=1&&this.runLength[t-1]<=this.runLength[t]+this.runLength[t+1]||t>=2&&this.runLength[t-2]<=this.runLength[t]+this.runLength[t-1])this.runLength[t-1]<this.runLength[t+1]&&t--;else if(this.runLength[t]>this.runLength[t+1])break;this.mergeAt(t)}},t.prototype.forceMergeRuns=function(){for(;this.stackSize>1;){var t=this.stackSize-2;t>0&&this.runLength[t-1]<this.runLength[t+1]&&t--,this.mergeAt(t)}},t.prototype.mergeAt=function(t){var e=this.compare,i=this.array,n=this.runStart[t],o=this.runLength[t],r=this.runStart[t+1],a=this.runLength[t+1];this.runLength[t]=o+a,t===this.stackSize-3&&(this.runStart[t+1]=this.runStart[t+2],this.runLength[t+1]=this.runLength[t+2]),this.stackSize--;var A=s(i[r],i,n,o,0,e);n+=A,0!=(o-=A)&&0!==(a=g(i[n+o-1],i,r,a,a-1,e))&&(o<=a?this.mergeLow(n,o,r,a):this.mergeHigh(n,o,r,a))},t.prototype.mergeLow=function(t,e,i,n){var o=this.compare,r=this.array,a=this.tmp,A=0;for(A=0;A<e;A++)a[A]=r[t+A];var C=0,I=i,l=t;if(r[l++]=r[I++],0!=--n)if(1!==e){for(var c=this.minGallop;;){var h=0,u=0,d=!1;do{if(o(r[I],a[C])<0){if(r[l++]=r[I++],u++,h=0,0==--n){d=!0;break}}else if(r[l++]=a[C++],h++,u=0,1==--e){d=!0;break}}while((h|u)<c);if(d)break;do{if(0!==(h=s(r[I],a,C,e,0,o))){for(A=0;A<h;A++)r[l+A]=a[C+A];if(l+=h,C+=h,(e-=h)<=1){d=!0;break}}if(r[l++]=r[I++],0==--n){d=!0;break}if(0!==(u=g(a[C],r,I,n,0,o))){for(A=0;A<u;A++)r[l+A]=r[I+A];if(l+=u,I+=u,0==(n-=u)){d=!0;break}}if(r[l++]=a[C++],1==--e){d=!0;break}c--}while(h>=7||u>=7);if(d)break;c<0&&(c=0),c+=2}if(this.minGallop=c,c<1&&(this.minGallop=1),1===e){for(A=0;A<n;A++)r[l+A]=r[I+A];r[l+n]=a[C]}else{if(0===e)throw new Error("mergeLow preconditions were not respected");for(A=0;A<e;A++)r[l+A]=a[C+A]}}else{for(A=0;A<n;A++)r[l+A]=r[I+A];r[l+n]=a[C]}else for(A=0;A<e;A++)r[l+A]=a[C+A]},t.prototype.mergeHigh=function(t,e,i,n){var o=this.compare,r=this.array,a=this.tmp,A=0;for(A=0;A<n;A++)a[A]=r[i+A];var C=t+e-1,I=n-1,l=i+n-1,c=0,h=0;if(r[l--]=r[C--],0!=--e)if(1!==n){for(var u=this.minGallop;;){var d=0,p=0,f=!1;do{if(o(a[I],r[C])<0){if(r[l--]=r[C--],d++,p=0,0==--e){f=!0;break}}else if(r[l--]=a[I--],p++,d=0,1==--n){f=!0;break}}while((d|p)<u);if(f)break;do{if(0!=(d=e-s(a[I],r,t,e,e-1,o))){for(e-=d,h=1+(l-=d),c=1+(C-=d),A=d-1;A>=0;A--)r[h+A]=r[c+A];if(0===e){f=!0;break}}if(r[l--]=a[I--],1==--n){f=!0;break}if(0!=(p=n-g(r[C],a,0,n,n-1,o))){for(n-=p,h=1+(l-=p),c=1+(I-=p),A=0;A<p;A++)r[h+A]=a[c+A];if(n<=1){f=!0;break}}if(r[l--]=r[C--],0==--e){f=!0;break}u--}while(d>=7||p>=7);if(f)break;u<0&&(u=0),u+=2}if(this.minGallop=u,u<1&&(this.minGallop=1),1===n){for(h=1+(l-=e),c=1+(C-=e),A=e-1;A>=0;A--)r[h+A]=r[c+A];r[l]=a[I]}else{if(0===n)throw new Error("mergeHigh preconditions were not respected");for(c=l-(n-1),A=0;A<n;A++)r[c+A]=a[A]}}else{for(h=1+(l-=e),c=1+(C-=e),A=e-1;A>=0;A--)r[h+A]=r[c+A];r[l]=a[I]}else for(c=l-(n-1),A=0;A<n;A++)r[c+A]=a[A]},t}()}(e)}));o(Ec);var Fc=Ec,Sc=Fc.sort;function jc(t){var e=function(){if("undefined"==typeof Reflect||!wA)return!1;if(wA.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(wA(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var i,n=XA(t);if(e){var o=XA(this).constructor;i=wA(n,arguments,o)}else i=n.apply(this,arguments);return VA(this,i)}}var Bc=function(){function t(){qa(this,t)}return tA(t,[{key:"abstract",value:function(){throw new Error("Can't instantiate abstract class!")}},{key:"fake_use",value:function(){}},{key:"curveType",value:function(){return this.abstract()}},{key:"getPosition",value:function(t){return this.fake_use(t),this.abstract()}},{key:"setPosition",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;this.fake_use(t,e,i),this.abstract()}},{key:"getTreeSize",value:function(t){return this.fake_use(t),this.abstract()}},{key:"sort",value:function(t){this.fake_use(t),this.abstract()}},{key:"fix",value:function(t,e){this.fake_use(t,e),this.abstract()}},{key:"shift",value:function(t,e){this.fake_use(t,e),this.abstract()}}]),t}(),Rc=function(t){YA(i,t);var e=jc(i);function i(t){var n;return qa(this,i),(n=e.call(this)).layout=t,n}return tA(i,[{key:"curveType",value:function(){return"horizontal"}},{key:"getPosition",value:function(t){return t.x}},{key:"setPosition",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;void 0!==i&&this.layout.hierarchical.addToOrdering(t,i),t.x=e}},{key:"getTreeSize",value:function(t){var e=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,t);return{min:e.min_x,max:e.max_x}}},{key:"sort",value:function(t){Sc(t,(function(t,e){return t.x-e.x}))}},{key:"fix",value:function(t,e){t.y=this.layout.options.hierarchical.levelSeparation*e,t.options.fixed.y=!0}},{key:"shift",value:function(t,e){this.layout.body.nodes[t].x+=e}}]),i}(Bc),zc=function(t){YA(i,t);var e=jc(i);function i(t){var n;return qa(this,i),(n=e.call(this)).layout=t,n}return tA(i,[{key:"curveType",value:function(){return"vertical"}},{key:"getPosition",value:function(t){return t.y}},{key:"setPosition",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;void 0!==i&&this.layout.hierarchical.addToOrdering(t,i),t.y=e}},{key:"getTreeSize",value:function(t){var e=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,t);return{min:e.min_y,max:e.max_y}}},{key:"sort",value:function(t){Sc(t,(function(t,e){return t.y-e.y}))}},{key:"fix",value:function(t,e){t.x=this.layout.options.hierarchical.levelSeparation*e,t.options.fixed.x=!0}},{key:"shift",value:function(t,e){this.layout.body.nodes[t].y+=e}}]),i}(Bc),Zc=ki.every,Gc=Wn("every"),Pc=Vn("every");V({target:"Array",proto:!0,forced:!Gc||!Pc},{every:function(t){return Zc(this,t,arguments.length>1?arguments[1]:void 0)}});var Lc=q("Array").every,Wc=Array.prototype,Qc=function(t){var e=t.every;return t===Wc||t instanceof Array&&e===Wc.every?Lc:e};function Uc(t){if(void 0===nn||null==Ke(t)){if(gr(t)||(t=function(t,e){var i;if(!t)return;if("string"==typeof t)return Yc(t,e);var n=Ho(i=Object.prototype.toString.call(t)).call(i,8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return hn(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Yc(t,e)}(t))){var e=0,i=function(){};return{s:i,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:i}}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 n,o,r=!0,g=!1;return{s:function(){n=Je(t)},n:function(){var t=n.next();return r=t.done,t},e:function(t){g=!0,o=t},f:function(){try{r||null==n.return||n.return()}finally{if(g)throw o}}}}function Yc(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function Vc(t,e){var i=new mC;return eo(t).call(t,(function(t){var e;eo(e=t.edges).call(e,(function(t){t.connected&&i.add(t)}))})),eo(i).call(i,(function(t){var i=t.from.id,n=t.to.id;null==e[i]&&(e[i]=0),(null==e[n]||e[i]>=e[n])&&(e[n]=e[i]+1)})),e}function Hc(t,e,i,n,o){var r,g=n.size,s=i+"Id",a="to"===i?1:-1,A=Uc(n);try{var C=function(){var A=pr(r.value,2),C=A[0],I=A[1];if(!n.has(C)||!t(I))return"continue";o[C]=0;for(var l=[I],c=0,h=void 0,u=function(){var t,r;if(!n.has(C))return"continue";var A=o[h.id]+a;if(eo(t=wo(r=h.edges).call(r,(function(t){return t.connected&&t.to!==t.from&&t[i]!==h&&n.has(t.toId)&&n.has(t.fromId)}))).call(t,(function(t){var n=t[s],r=o[n];(null==r||e(A,r))&&(o[n]=A,l.push(t[i]))})),c>g)return{v:{v:Vc(n,o)}};++c};h=l.pop();){var d=u();switch(d){case"continue":continue;default:if("object"===cr(d))return d.v}}};for(A.s();!(r=A.n()).done;){var I=C();switch(I){case"continue":continue;default:if("object"===cr(I))return I.v}}}catch(t){A.e(t)}finally{A.f()}return o}var Xc=function(){function t(){qa(this,t),this.childrenReference={},this.parentReference={},this.trees={},this.distributionOrdering={},this.levels={},this.distributionIndex={},this.isTree=!1,this.treeIndex=-1}return tA(t,[{key:"addRelation",value:function(t,e){void 0===this.childrenReference[t]&&(this.childrenReference[t]=[]),this.childrenReference[t].push(e),void 0===this.parentReference[e]&&(this.parentReference[e]=[]),this.parentReference[e].push(t)}},{key:"checkIfTree",value:function(){for(var t in this.parentReference)if(this.parentReference[t].length>1)return void(this.isTree=!1);this.isTree=!0}},{key:"numTrees",value:function(){return this.treeIndex+1}},{key:"setTreeIndex",value:function(t,e){void 0!==e&&void 0===this.trees[t.id]&&(this.trees[t.id]=e,this.treeIndex=Math.max(e,this.treeIndex))}},{key:"ensureLevel",value:function(t){void 0===this.levels[t]&&(this.levels[t]=0)}},{key:"getMaxLevel",value:function(t){var e=this,i={};return function t(n){if(void 0!==i[n])return i[n];var o=e.levels[n];if(e.childrenReference[n]){var r=e.childrenReference[n];if(r.length>0)for(var g=0;g<r.length;g++)o=Math.max(o,t(r[g]))}return i[n]=o,o}(t)}},{key:"levelDownstream",value:function(t,e){void 0===this.levels[e.id]&&(void 0===this.levels[t.id]&&(this.levels[t.id]=0),this.levels[e.id]=this.levels[t.id]+1)}},{key:"setMinLevelToZero",value:function(t){var e=1e9;for(var i in t)t.hasOwnProperty(i)&&void 0!==this.levels[i]&&(e=Math.min(this.levels[i],e));for(var n in t)t.hasOwnProperty(n)&&void 0!==this.levels[n]&&(this.levels[n]-=e)}},{key:"getTreeSize",value:function(t,e){var i=1e9,n=-1e9,o=1e9,r=-1e9;for(var g in this.trees)if(this.trees.hasOwnProperty(g)&&this.trees[g]===e){var s=t[g];i=Math.min(s.x,i),n=Math.max(s.x,n),o=Math.min(s.y,o),r=Math.max(s.y,r)}return{min_x:i,max_x:n,min_y:o,max_y:r}}},{key:"hasSameParent",value:function(t,e){var i=this.parentReference[t.id],n=this.parentReference[e.id];if(void 0===i||void 0===n)return!1;for(var o=0;o<i.length;o++)for(var r=0;r<n.length;r++)if(i[o]==n[r])return!0;return!1}},{key:"inSameSubNetwork",value:function(t,e){return this.trees[t.id]===this.trees[e.id]}},{key:"getLevels",value:function(){return En(this.distributionOrdering)}},{key:"addToOrdering",value:function(t,e){void 0===this.distributionOrdering[e]&&(this.distributionOrdering[e]=[]);var i=!1,n=this.distributionOrdering[e];for(var o in n)if(n[o]===t){i=!0;break}i||(this.distributionOrdering[e].push(t),this.distributionIndex[t.id]=this.distributionOrdering[e].length-1)}}]),t}(),Jc=function(){function t(e){qa(this,t),this.body=e,this._resetRNG(Math.random()+":"+fr()),this.setPhysics=!1,this.options={},this.optionsBackup={physics:{}},this.defaultOptions={randomSeed:void 0,improvedLayout:!0,clusterThreshold:150,hierarchical:{enabled:!1,levelSeparation:150,nodeSpacing:100,treeSpacing:200,blockShifting:!0,edgeMinimization:!0,parentCentralization:!0,direction:"UD",sortMethod:"hubsize"}},Rr(this.options,this.defaultOptions),this.bindEventListeners()}return tA(t,[{key:"bindEventListeners",value:function(){var t=this;this.body.emitter.on("_dataChanged",(function(){t.setupHierarchicalLayout()})),this.body.emitter.on("_dataLoaded",(function(){t.layoutNetwork()})),this.body.emitter.on("_resetHierarchicalLayout",(function(){t.setupHierarchicalLayout()})),this.body.emitter.on("_adjustEdgesForHierarchicalLayout",(function(){if(!0===t.options.hierarchical.enabled){var e=t.direction.curveType();t.body.emitter.emit("_forceDisableDynamicCurves",e,!1)}}))}},{key:"setOptions",value:function(t,e){if(void 0!==t){var i=this.options.hierarchical,n=i.enabled;if(zr(["randomSeed","improvedLayout","clusterThreshold"],this.options,t),Ig(this.options,t,"hierarchical"),void 0!==t.randomSeed&&this._resetRNG(t.randomSeed),!0===i.enabled)return!0===n&&this.body.emitter.emit("refresh",!0),"RL"===i.direction||"DU"===i.direction?i.levelSeparation>0&&(i.levelSeparation*=-1):i.levelSeparation<0&&(i.levelSeparation*=-1),this.setDirectionStrategy(),this.body.emitter.emit("_resetHierarchicalLayout"),this.adaptAllOptionsForHierarchicalLayout(e);if(!0===n)return this.body.emitter.emit("refresh"),Gr(e,this.optionsBackup)}return e}},{key:"_resetRNG",value:function(t){this.initialRandomSeed=t,this._rng=wr(this.initialRandomSeed)}},{key:"adaptAllOptionsForHierarchicalLayout",value:function(t){if(!0===this.options.hierarchical.enabled){var e=this.optionsBackup.physics;void 0===t.physics||!0===t.physics?(t.physics={enabled:void 0===e.enabled||e.enabled,solver:"hierarchicalRepulsion"},e.enabled=void 0===e.enabled||e.enabled,e.solver=e.solver||"barnesHut"):"object"===cr(t.physics)?(e.enabled=void 0===t.physics.enabled||t.physics.enabled,e.solver=t.physics.solver||"barnesHut",t.physics.solver="hierarchicalRepulsion"):!1!==t.physics&&(e.solver="barnesHut",t.physics={solver:"hierarchicalRepulsion"});var i=this.direction.curveType();if(void 0===t.edges)this.optionsBackup.edges={smooth:{enabled:!0,type:"dynamic"}},t.edges={smooth:!1};else if(void 0===t.edges.smooth)this.optionsBackup.edges={smooth:{enabled:!0,type:"dynamic"}},t.edges.smooth=!1;else if("boolean"==typeof t.edges.smooth)this.optionsBackup.edges={smooth:t.edges.smooth},t.edges.smooth={enabled:t.edges.smooth,type:i};else{var n=t.edges.smooth;void 0!==n.type&&"dynamic"!==n.type&&(i=n.type),this.optionsBackup.edges={smooth:{enabled:void 0===n.enabled||n.enabled,type:void 0===n.type?"dynamic":n.type,roundness:void 0===n.roundness?.5:n.roundness,forceDirection:void 0!==n.forceDirection&&n.forceDirection}},t.edges.smooth={enabled:void 0===n.enabled||n.enabled,type:i,roundness:void 0===n.roundness?.5:n.roundness,forceDirection:void 0!==n.forceDirection&&n.forceDirection}}this.body.emitter.emit("_forceDisableDynamicCurves",i)}return t}},{key:"positionInitially",value:function(t){if(!0!==this.options.hierarchical.enabled){this._resetRNG(this.initialRandomSeed);for(var e=t.length+50,i=0;i<t.length;i++){var n=t[i],o=2*Math.PI*this._rng();void 0===n.x&&(n.x=e*Math.cos(o)),void 0===n.y&&(n.y=e*Math.sin(o))}}}},{key:"layoutNetwork",value:function(){if(!0!==this.options.hierarchical.enabled&&!0===this.options.improvedLayout){for(var t=this.body.nodeIndices,e=0,i=0;i<t.length;i++){!0===this.body.nodes[t[i]].predefinedPosition&&(e+=1)}if(e<.5*t.length){var n=0,o=this.options.clusterThreshold,r={clusterNodeProperties:{shape:"ellipse",label:"",group:"",font:{multi:!1}},clusterEdgeProperties:{label:"",font:{multi:!1},smooth:{enabled:!1}}};if(t.length>o){for(var g=t.length;t.length>o&&n<=10;){n+=1;var s=t.length;if(n%3==0?this.body.modules.clustering.clusterBridges(r):this.body.modules.clustering.clusterOutliers(r),s==t.length&&n%3!=0)return this._declusterAll(),this.body.emitter.emit("_layoutFailed"),void console.info("This network could not be positioned by this version of the improved layout algorithm. Please disable improvedLayout for better performance.")}this.body.modules.kamadaKawai.setOptions({springLength:Math.max(150,2*g)})}n>10&&console.info("The clustering didn't succeed within the amount of interations allowed, progressing with partial result."),this.body.modules.kamadaKawai.solve(t,this.body.edgeIndices,!0),this._shiftToCenter();for(var a=0;a<t.length;a++){var A=this.body.nodes[t[a]];!1===A.predefinedPosition&&(A.x+=70*(.5-this._rng()),A.y+=70*(.5-this._rng()))}this._declusterAll(),this.body.emitter.emit("_repositionBezierNodes")}}}},{key:"_shiftToCenter",value:function(){for(var t=vc.getRangeCore(this.body.nodes,this.body.nodeIndices),e=vc.findCenter(t),i=0;i<this.body.nodeIndices.length;i++){var n=this.body.nodes[this.body.nodeIndices[i]];n.x-=e.x,n.y-=e.y}}},{key:"_declusterAll",value:function(){for(var t=!0;!0===t;){t=!1;for(var e=0;e<this.body.nodeIndices.length;e++)!0===this.body.nodes[this.body.nodeIndices[e]].isCluster&&(t=!0,this.body.modules.clustering.openCluster(this.body.nodeIndices[e],{},!1));!0===t&&this.body.emitter.emit("_dataChanged")}}},{key:"getSeed",value:function(){return this.initialRandomSeed}},{key:"setupHierarchicalLayout",value:function(){if(!0===this.options.hierarchical.enabled&&this.body.nodeIndices.length>0){var t,e,i=!1,n=!1;for(e in this.lastNodeOnLevel={},this.hierarchical=new Xc,this.body.nodes)this.body.nodes.hasOwnProperty(e)&&(void 0!==(t=this.body.nodes[e]).options.level?(i=!0,this.hierarchical.levels[e]=t.options.level):n=!0);if(!0===n&&!0===i)throw new Error("To use the hierarchical layout, nodes require either no predefined levels or levels have to be defined for all nodes.");if(!0===n){var o=this.options.hierarchical.sortMethod;"hubsize"===o?this._determineLevelsByHubsize():"directed"===o?this._determineLevelsDirected():"custom"===o&&this._determineLevelsCustomCallback()}for(var r in this.body.nodes)this.body.nodes.hasOwnProperty(r)&&this.hierarchical.ensureLevel(r);var g=this._getDistribution();this._generateMap(),this._placeNodesByHierarchy(g),this._condenseHierarchy(),this._shiftToCenter()}}},{key:"_condenseHierarchy",value:function(){var t=this,e=!1,i={},n=function(e,i){var n=t.hierarchical.trees;for(var o in n)n.hasOwnProperty(o)&&n[o]===e&&t.direction.shift(o,i)},o=function(){for(var e=[],i=0;i<t.hierarchical.numTrees();i++)e.push(t.direction.getTreeSize(i));return e},r=function e(i,n){if(!n[i.id]&&(n[i.id]=!0,t.hierarchical.childrenReference[i.id])){var o=t.hierarchical.childrenReference[i.id];if(o.length>0)for(var r=0;r<o.length;r++)e(t.body.nodes[o[r]],n)}},g=function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e9,n=1e9,o=1e9,r=1e9,g=-1e9;for(var s in e)if(e.hasOwnProperty(s)){var a=t.body.nodes[s],A=t.hierarchical.levels[a.id],C=t.direction.getPosition(a),I=t._getSpaceAroundNode(a,e),l=pr(I,2),c=l[0],h=l[1];n=Math.min(c,n),o=Math.min(h,o),A<=i&&(r=Math.min(C,r),g=Math.max(C,g))}return[r,g,n,o]},s=function(e,i){var n=t.hierarchical.getMaxLevel(e.id),o=t.hierarchical.getMaxLevel(i.id);return Math.min(n,o)},a=function(e,i,n){for(var o=t.hierarchical,r=0;r<i.length;r++){var g=i[r],s=o.distributionOrdering[g];if(s.length>1)for(var a=0;a<s.length-1;a++){var A=s[a],C=s[a+1];o.hasSameParent(A,C)&&o.inSameSubNetwork(A,C)&&e(A,C,n)}}},A=function(i,n){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=t.direction.getPosition(i),A=t.direction.getPosition(n),C=Math.abs(A-a),I=t.options.hierarchical.nodeSpacing;if(C>I){var l={},c={};r(i,l),r(n,c);var h=s(i,n),u=g(l,h),d=g(c,h),p=u[1],f=d[0],v=d[2],m=Math.abs(p-f);if(m>I){var y=p-f+I;y<-v+I&&(y=-v+I),y<0&&(t._shiftBlock(n.id,y),e=!0,!0===o&&t._centerParent(n))}}},C=function(n,o){for(var s=o.id,a=o.edges,A=t.hierarchical.levels[o.id],C=t.options.hierarchical.levelSeparation*t.options.hierarchical.levelSeparation,I={},l=[],c=0;c<a.length;c++){var h=a[c];if(h.toId!=h.fromId){var u=h.toId==s?h.from:h.to;I[a[c].id]=u,t.hierarchical.levels[u.id]<A&&l.push(h)}}var d=function(e,i){for(var n=0,o=0;o<i.length;o++)if(void 0!==I[i[o].id]){var r=t.direction.getPosition(I[i[o].id])-e;n+=r/Math.sqrt(r*r+C)}return n},p=function(e,i){for(var n=0,o=0;o<i.length;o++)if(void 0!==I[i[o].id]){var r=t.direction.getPosition(I[i[o].id])-e;n-=C*Math.pow(r*r+C,-1.5)}return n},f=function(e,i){for(var n=t.direction.getPosition(o),r={},g=0;g<e;g++){var s=d(n,i),a=p(n,i);if(void 0!==r[n-=Math.max(-40,Math.min(40,Math.round(s/a)))])break;r[n]=g}return n},v=f(n,l);!function(n){var s=t.direction.getPosition(o);if(void 0===i[o.id]){var a={};r(o,a),i[o.id]=a}var A=g(i[o.id]),C=A[2],I=A[3],l=n-s,c=0;l>0?c=Math.min(l,I-t.options.hierarchical.nodeSpacing):l<0&&(c=-Math.min(-l,C-t.options.hierarchical.nodeSpacing)),0!=c&&(t._shiftBlock(o.id,c),e=!0)}(v),function(i){var n=t.direction.getPosition(o),r=t._getSpaceAroundNode(o),g=pr(r,2),s=g[0],a=g[1],A=i-n,C=n;A>0?C=Math.min(n+(a-t.options.hierarchical.nodeSpacing),i):A<0&&(C=Math.max(n-(s-t.options.hierarchical.nodeSpacing),i)),C!==n&&(t.direction.setPosition(o,C),e=!0)}(v=f(n,a))};!0===this.options.hierarchical.blockShifting&&(function(i){var n=t.hierarchical.getLevels();n=fc(n).call(n);for(var o=0;o<i&&(e=!1,a(A,n,!0),!0===e);o++);}(5),function(){for(var e in t.body.nodes)t.body.nodes.hasOwnProperty(e)&&t._centerParent(t.body.nodes[e])}()),!0===this.options.hierarchical.edgeMinimization&&function(i){var n=t.hierarchical.getLevels();n=fc(n).call(n);for(var o=0;o<i;o++){e=!1;for(var r=0;r<n.length;r++)for(var g=n[r],s=t.hierarchical.distributionOrdering[g],a=0;a<s.length;a++)C(1e3,s[a]);if(!0!==e)break}}(20),!0===this.options.hierarchical.parentCentralization&&function(){var e=t.hierarchical.getLevels();e=fc(e).call(e);for(var i=0;i<e.length;i++)for(var n=e[i],o=t.hierarchical.distributionOrdering[n],r=0;r<o.length;r++)t._centerParent(o[r])}(),function(){for(var e=o(),i=0,r=0;r<e.length-1;r++){i+=e[r].max-e[r+1].min+t.options.hierarchical.treeSpacing,n(r+1,i)}}()}},{key:"_getSpaceAroundNode",value:function(t,e){var i=!0;void 0===e&&(i=!1);var n=this.hierarchical.levels[t.id];if(void 0!==n){var o=this.hierarchical.distributionIndex[t.id],r=this.direction.getPosition(t),g=this.hierarchical.distributionOrdering[n],s=1e9,a=1e9;if(0!==o){var A=g[o-1];if(!0===i&&void 0===e[A.id]||!1===i)s=r-this.direction.getPosition(A)}if(o!=g.length-1){var C=g[o+1];if(!0===i&&void 0===e[C.id]||!1===i){var I=this.direction.getPosition(C);a=Math.min(a,I-r)}}return[s,a]}return[0,0]}},{key:"_centerParent",value:function(t){if(this.hierarchical.parentReference[t.id])for(var e=this.hierarchical.parentReference[t.id],i=0;i<e.length;i++){var n=e[i],o=this.body.nodes[n],r=this.hierarchical.childrenReference[n];if(void 0!==r){var g=this._getCenterPosition(r),s=this.direction.getPosition(o),a=this._getSpaceAroundNode(o),A=pr(a,2),C=A[0],I=A[1],l=s-g;(l<0&&Math.abs(l)<I-this.options.hierarchical.nodeSpacing||l>0&&Math.abs(l)<C-this.options.hierarchical.nodeSpacing)&&this.direction.setPosition(o,g)}}}},{key:"_placeNodesByHierarchy",value:function(t){for(var e in this.positionedNodes={},t)if(t.hasOwnProperty(e)){var i,n=En(t[e]);n=this._indexArrayToNodes(n),nC(i=this.direction).call(i,n);for(var o=0,r=0;r<n.length;r++){var g=n[r];if(void 0===this.positionedNodes[g.id]){var s=this.options.hierarchical.nodeSpacing,a=s*o;o>0&&(a=this.direction.getPosition(n[r-1])+s),this.direction.setPosition(g,a,e),this._validatePositionAndContinue(g,e,a),o++}}}}},{key:"_placeBranchNodes",value:function(t,e){var i,n=this.hierarchical.childrenReference[t];if(void 0!==n){for(var o=[],r=0;r<n.length;r++)o.push(this.body.nodes[n[r]]);nC(i=this.direction).call(i,o);for(var g=0;g<o.length;g++){var s=o[g],a=this.hierarchical.levels[s.id];if(!(a>e&&void 0===this.positionedNodes[s.id]))return;var A=this.options.hierarchical.nodeSpacing,C=void 0;C=0===g?this.direction.getPosition(this.body.nodes[t]):this.direction.getPosition(o[g-1])+A,this.direction.setPosition(s,C,a),this._validatePositionAndContinue(s,a,C)}var I=this._getCenterPosition(o);this.direction.setPosition(this.body.nodes[t],I,e)}}},{key:"_validatePositionAndContinue",value:function(t,e,i){if(this.hierarchical.isTree){if(void 0!==this.lastNodeOnLevel[e]){var n=this.direction.getPosition(this.body.nodes[this.lastNodeOnLevel[e]]);if(i-n<this.options.hierarchical.nodeSpacing){var o=n+this.options.hierarchical.nodeSpacing-i,r=this._findCommonParent(this.lastNodeOnLevel[e],t.id);this._shiftBlock(r.withChild,o)}}this.lastNodeOnLevel[e]=t.id,this.positionedNodes[t.id]=!0,this._placeBranchNodes(t.id,e)}}},{key:"_indexArrayToNodes",value:function(t){for(var e=[],i=0;i<t.length;i++)e.push(this.body.nodes[t[i]]);return e}},{key:"_getDistribution",value:function(){var t,e,i={};for(t in this.body.nodes)if(this.body.nodes.hasOwnProperty(t)){e=this.body.nodes[t];var n=void 0===this.hierarchical.levels[t]?0:this.hierarchical.levels[t];this.direction.fix(e,n),void 0===i[n]&&(i[n]={}),i[n][t]=e}return i}},{key:"_getActiveEdges",value:function(t){var e=this,i=[];return Yr(t.edges,(function(t){var n;-1!==rr(n=e.body.edgeIndices).call(n,t.id)&&i.push(t)})),i}},{key:"_getHubSizes",value:function(){var t=this,e={};Yr(this.body.nodeIndices,(function(i){var n=t.body.nodes[i],o=t._getActiveEdges(n).length;e[o]=!0}));var i=[];return Yr(e,(function(t){i.push(Number(t))})),nC(Fc).call(Fc,i,(function(t,e){return e-t})),i}},{key:"_determineLevelsByHubsize",value:function(){for(var t=this,e=function(e,i){t.hierarchical.levelDownstream(e,i)},i=this._getHubSizes(),n=function(n){var o=i[n];if(0===o)return"break";Yr(t.body.nodeIndices,(function(i){var n=t.body.nodes[i];o===t._getActiveEdges(n).length&&t._crawlNetwork(e,i)}))},o=0;o<i.length;++o){if("break"===n(o))break}}},{key:"_determineLevelsCustomCallback",value:function(){var t=this;this._crawlNetwork((function(e,i,n){var o=t.hierarchical.levels[e.id];void 0===o&&(o=t.hierarchical.levels[e.id]=1e5);var r=(vc.cloneOptions(e,"node"),vc.cloneOptions(i,"node"),void vc.cloneOptions(n,"edge"));t.hierarchical.levels[i.id]=o+r})),this.hierarchical.setMinLevelToZero(this.body.nodes)}},{key:"_determineLevelsDirected",value:function(){var t,e=this,i=jC(t=this.body.nodeIndices).call(t,(function(t,i){return t.set(i,e.body.nodes[i]),t}),new yC),n=this.hierarchical.levels;"roots"===this.options.hierarchical.shakeTowards?this.hierarchical.levels=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Dn(null);return Hc((function(e){var i,n;return Qc(i=wo(n=e.edges).call(n,(function(e){return t.has(e.toId)}))).call(i,(function(t){return t.from===e}))}),(function(t,e){return e<t}),"to",t,e)}(i,n):this.hierarchical.levels=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Dn(null);return Hc((function(e){var i,n;return Qc(i=wo(n=e.edges).call(n,(function(e){return t.has(e.toId)}))).call(i,(function(t){return t.to===e}))}),(function(t,e){return e>t}),"from",t,e)}(i,n),this.hierarchical.setMinLevelToZero(this.body.nodes)}},{key:"_generateMap",value:function(){var t=this;this._crawlNetwork((function(e,i){t.hierarchical.levels[i.id]>t.hierarchical.levels[e.id]&&t.hierarchical.addRelation(e.id,i.id)})),this.hierarchical.checkIfTree()}},{key:"_crawlNetwork",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},i=arguments.length>1?arguments[1]:void 0,n={},o=function i(o,r){if(void 0===n[o.id]){var g;t.hierarchical.setTreeIndex(o,r),n[o.id]=!0;for(var s=t._getActiveEdges(o),a=0;a<s.length;a++){var A=s[a];!0===A.connected&&(g=A.toId==o.id?A.from:A.to,o.id!=g.id&&(e(o,g,A),i(g,r)))}}};if(void 0===i)for(var r=0,g=0;g<this.body.nodeIndices.length;g++){var s=this.body.nodeIndices[g];if(void 0===n[s]){var a=this.body.nodes[s];o(a,r),r+=1}}else{var A=this.body.nodes[i];if(void 0===A)return void console.error("Node not found:",i);o(A)}}},{key:"_shiftBlock",value:function(t,e){var i=this,n={};!function t(o){if(!n[o]){n[o]=!0,i.direction.shift(o,e);var r=i.hierarchical.childrenReference[o];if(void 0!==r)for(var g=0;g<r.length;g++)t(r[g])}}(t)}},{key:"_findCommonParent",value:function(t,e){var i=this,n={};return function t(e,n){var o=i.hierarchical.parentReference[n];if(void 0!==o)for(var r=0;r<o.length;r++){var g=o[r];e[g]=!0,t(e,g)}}(n,t),function t(e,n){var o=i.hierarchical.parentReference[n];if(void 0!==o)for(var r=0;r<o.length;r++){var g=o[r];if(void 0!==e[g])return{foundParent:g,withChild:n};var s=t(e,g);if(null!==s.foundParent)return s}return{foundParent:null,withChild:n}}(n,e)}},{key:"setDirectionStrategy",value:function(){var t="UD"===this.options.hierarchical.direction||"DU"===this.options.hierarchical.direction;this.direction=t?new Rc(this):new zc(this)}},{key:"_getCenterPosition",value:function(t){for(var e=1e9,i=-1e9,n=0;n<t.length;n++){var o=void 0;if(void 0!==t[n].id)o=t[n];else{var r=t[n];o=this.body.nodes[r]}var g=this.direction.getPosition(o);e=Math.min(e,g),i=Math.max(i,g)}return.5*(e+i)}}]),t}();ds("div.vis-network div.vis-manipulation {\n  box-sizing: content-box;\n\n  border-width: 0;\n  border-bottom: 1px;\n  border-style:solid;\n  border-color: #d6d9d8;\n  background: #ffffff; /* Old browsers */\n  background: -moz-linear-gradient(top,  #ffffff 0%, #fcfcfc 48%, #fafafa 50%, #fcfcfc 100%); /* FF3.6+ */\n  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(48%,#fcfcfc), color-stop(50%,#fafafa), color-stop(100%,#fcfcfc)); /* Chrome,Safari4+ */\n  background: -webkit-linear-gradient(top,  #ffffff 0%,#fcfcfc 48%,#fafafa 50%,#fcfcfc 100%); /* Chrome10+,Safari5.1+ */\n  background: -o-linear-gradient(top,  #ffffff 0%,#fcfcfc 48%,#fafafa 50%,#fcfcfc 100%); /* Opera 11.10+ */\n  background: -ms-linear-gradient(top,  #ffffff 0%,#fcfcfc 48%,#fafafa 50%,#fcfcfc 100%); /* IE10+ */\n  background: linear-gradient(to bottom,  #ffffff 0%,#fcfcfc 48%,#fafafa 50%,#fcfcfc 100%); /* W3C */\n  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#fcfcfc',GradientType=0 ); /* IE6-9 */\n\n  padding-top:4px;\n  position: absolute;\n  left: 0;\n  top: 0;\n  width: 100%;\n  height: 28px;\n}\n\ndiv.vis-network div.vis-edit-mode {\n  position:absolute;\n  left: 0;\n  top: 5px;\n  height: 30px;\n}\n\n/* FIXME: shouldn't the vis-close button be a child of the vis-manipulation div? */\n\ndiv.vis-network div.vis-close {\n  position:absolute;\n  right: 0;\n  top: 0;\n  width: 30px;\n  height: 30px;\n\n  background-position: 20px 3px;\n  background-repeat: no-repeat;\n  background-image: url('data:image/png;base64, ');\n  cursor: pointer;\n  -webkit-touch-callout: none;\n  -webkit-user-select: none;\n  -khtml-user-select: none;\n  -moz-user-select: none;\n  -ms-user-select: none;\n  user-select: none;\n}\n\ndiv.vis-network div.vis-close:hover {\n  opacity: 0.6;\n}\n\ndiv.vis-network div.vis-manipulation div.vis-button,\ndiv.vis-network div.vis-edit-mode div.vis-button {\n  float:left;\n  font-family: verdana;\n  font-size: 12px;\n  -moz-border-radius: 15px;\n  border-radius: 15px;\n  display:inline-block;\n  background-position: 0px 0px;\n  background-repeat:no-repeat;\n  height:24px;\n  margin-left: 10px;\n  /*vertical-align:middle;*/\n  cursor: pointer;\n  padding: 0px 8px 0px 8px;\n  -webkit-touch-callout: none;\n  -webkit-user-select: none;\n  -khtml-user-select: none;\n  -moz-user-select: none;\n  -ms-user-select: none;\n  user-select: none;\n}\n\ndiv.vis-network div.vis-manipulation div.vis-button:hover {\n  box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.20);\n}\n\ndiv.vis-network div.vis-manipulation div.vis-button:active {\n  box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.50);\n}\n\ndiv.vis-network div.vis-manipulation div.vis-button.vis-back {\n  background-image: url('data:image/png;base64, ');\n}\n\ndiv.vis-network div.vis-manipulation div.vis-button.vis-none:hover {\n  box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.0);\n  cursor: default;\n}\ndiv.vis-network div.vis-manipulation div.vis-button.vis-none:active {\n  box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.0);\n}\ndiv.vis-network div.vis-manipulation div.vis-button.vis-none {\n  padding: 0;\n}\ndiv.vis-network div.vis-manipulation div.notification {\n  margin: 2px;\n  font-weight: bold;\n}\n\ndiv.vis-network div.vis-manipulation div.vis-button.vis-add {\n  background-image: url('data:image/png;base64, ');\n}\n\ndiv.vis-network div.vis-manipulation div.vis-button.vis-edit,\ndiv.vis-network div.vis-edit-mode div.vis-button.vis-edit {\n  background-image: url('data:image/png;base64, ');\n}\n\ndiv.vis-network div.vis-edit-mode div.vis-button.vis-edit.vis-edit-mode {\n  background-color: #fcfcfc;\n  border: 1px solid #cccccc;\n}\n\ndiv.vis-network div.vis-manipulation div.vis-button.vis-connect {\n  background-image: url('data:image/png;base64, ');\n}\n\ndiv.vis-network div.vis-manipulation div.vis-button.vis-delete {\n  background-image: url('data:image/png;base64, ');\n}\n/* top right bottom left */\ndiv.vis-network div.vis-manipulation div.vis-label,\ndiv.vis-network div.vis-edit-mode div.vis-label {\n  margin: 0 0 0 23px;\n  line-height: 25px;\n}\ndiv.vis-network div.vis-manipulation div.vis-separator-line {\n  float:left;\n  display:inline-block;\n  width:1px;\n  height:21px;\n  background-color: #bdbdbd;\n  margin: 0px 7px 0 15px; /*top right bottom left*/\n}\n\n/* TODO: is this redundant?\ndiv.network-navigation_wrapper {\n  position: absolute;\n  left: 0;\n  top: 0;\n  width: 100%;\n  height: 100%;\n}\n*/\n\n/*# sourceMappingURL=data:application/json;base64,  */");var Kc=function(){function t(e,i,n,o){var r,g,s=this;qa(this,t),this.body=e,this.canvas=i,this.selectionHandler=n,this.interactionHandler=o,this.editMode=!1,this.manipulationDiv=void 0,this.editModeDiv=void 0,this.closeDiv=void 0,this.manipulationHammers=[],this.temporaryUIFunctions={},this.temporaryEventFunctions=[],this.touchTime=0,this.temporaryIds={nodes:[],edges:[]},this.guiEnabled=!1,this.inMode=!1,this.selectedControlNode=void 0,this.options={},this.defaultOptions={enabled:!1,initiallyActive:!1,addNode:!0,addEdge:!0,editNode:void 0,editEdge:!0,deleteNode:!0,deleteEdge:!0,controlNodeStyle:{shape:"dot",size:6,color:{background:"#ff0000",border:"#3c3c3c",highlight:{background:"#07f968",border:"#3c3c3c"}},borderWidth:2,borderWidthSelected:2}},Rr(this.options,this.defaultOptions),this.body.emitter.on("destroy",(function(){s._clean()})),this.body.emitter.on("_dataChanged",et(r=this._restore).call(r,this)),this.body.emitter.on("_resetData",et(g=this._restore).call(g,this))}return tA(t,[{key:"_restore",value:function(){!1!==this.inMode&&(!0===this.options.initiallyActive?this.enableEditMode():this.disableEditMode())}},{key:"setOptions",value:function(t,e,i){void 0!==e&&(void 0!==e.locale?this.options.locale=e.locale:this.options.locale=i.locale,void 0!==e.locales?this.options.locales=e.locales:this.options.locales=i.locales),void 0!==t&&("boolean"==typeof t?this.options.enabled=t:(this.options.enabled=!0,Gr(this.options,t)),!0===this.options.initiallyActive&&(this.editMode=!0),this._setup())}},{key:"toggleEditMode",value:function(){!0===this.editMode?this.disableEditMode():this.enableEditMode()}},{key:"enableEditMode",value:function(){this.editMode=!0,this._clean(),!0===this.guiEnabled&&(this.manipulationDiv.style.display="block",this.closeDiv.style.display="block",this.editModeDiv.style.display="none",this.showManipulatorToolbar())}},{key:"disableEditMode",value:function(){this.editMode=!1,this._clean(),!0===this.guiEnabled&&(this.manipulationDiv.style.display="none",this.closeDiv.style.display="none",this.editModeDiv.style.display="block",this._createEditButton())}},{key:"showManipulatorToolbar",value:function(){if(this._clean(),this.manipulationDOM={},!0===this.guiEnabled){var t,e;this.editMode=!0,this.manipulationDiv.style.display="block",this.closeDiv.style.display="block";var i=this.selectionHandler._getSelectedNodeCount(),n=this.selectionHandler._getSelectedEdgeCount(),o=i+n,r=this.options.locales[this.options.locale],g=!1;!1!==this.options.addNode&&(this._createAddNodeButton(r),g=!0),!1!==this.options.addEdge&&(!0===g?this._createSeperator(1):g=!0,this._createAddEdgeButton(r)),1===i&&"function"==typeof this.options.editNode?(!0===g?this._createSeperator(2):g=!0,this._createEditNodeButton(r)):1===n&&0===i&&!1!==this.options.editEdge&&(!0===g?this._createSeperator(3):g=!0,this._createEditEdgeButton(r)),0!==o&&(i>0&&!1!==this.options.deleteNode||0===i&&!1!==this.options.deleteEdge)&&(!0===g&&this._createSeperator(4),this._createDeleteButton(r)),this._bindHammerToDiv(this.closeDiv,et(t=this.toggleEditMode).call(t,this)),this._temporaryBindEvent("select",et(e=this.showManipulatorToolbar).call(e,this))}this.body.emitter.emit("_redraw")}},{key:"addNodeMode",value:function(){var t;if(!0!==this.editMode&&this.enableEditMode(),this._clean(),this.inMode="addNode",!0===this.guiEnabled){var e,i=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(i),this._createSeperator(),this._createDescription(i.addDescription||this.options.locales.en.addDescription),this._bindHammerToDiv(this.closeDiv,et(e=this.toggleEditMode).call(e,this))}this._temporaryBindEvent("click",et(t=this._performAddNode).call(t,this))}},{key:"editNode",value:function(){var t=this;!0!==this.editMode&&this.enableEditMode(),this._clean();var e=this.selectionHandler._getSelectedNode();if(void 0!==e){if(this.inMode="editNode","function"!=typeof this.options.editNode)throw new Error("No function has been configured to handle the editing of nodes.");if(!0!==e.isCluster){var i=Gr({},e.options,!1);if(i.x=e.x,i.y=e.y,2!==this.options.editNode.length)throw new Error("The function for edit does not support two arguments (data, callback)");this.options.editNode(i,(function(e){null!=e&&"editNode"===t.inMode&&t.body.data.nodes.getDataSet().update(e),t.showManipulatorToolbar()}))}else alert(this.options.locales[this.options.locale].editClusterError||this.options.locales.en.editClusterError)}else this.showManipulatorToolbar()}},{key:"addEdgeMode",value:function(){var t,e,i,n,o;if(!0!==this.editMode&&this.enableEditMode(),this._clean(),this.inMode="addEdge",!0===this.guiEnabled){var r,g=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(g),this._createSeperator(),this._createDescription(g.edgeDescription||this.options.locales.en.edgeDescription),this._bindHammerToDiv(this.closeDiv,et(r=this.toggleEditMode).call(r,this))}this._temporaryBindUI("onTouch",et(t=this._handleConnect).call(t,this)),this._temporaryBindUI("onDragEnd",et(e=this._finishConnect).call(e,this)),this._temporaryBindUI("onDrag",et(i=this._dragControlNode).call(i,this)),this._temporaryBindUI("onRelease",et(n=this._finishConnect).call(n,this)),this._temporaryBindUI("onDragStart",et(o=this._dragStartEdge).call(o,this)),this._temporaryBindUI("onHold",(function(){}))}},{key:"editEdgeMode",value:function(){if(!0!==this.editMode&&this.enableEditMode(),this._clean(),this.inMode="editEdge","object"!==cr(this.options.editEdge)||"function"!=typeof this.options.editEdge.editWithoutDrag||(this.edgeBeingEditedId=this.selectionHandler.getSelectedEdges()[0],void 0===this.edgeBeingEditedId)){if(!0===this.guiEnabled){var t,e=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(e),this._createSeperator(),this._createDescription(e.editEdgeDescription||this.options.locales.en.editEdgeDescription),this._bindHammerToDiv(this.closeDiv,et(t=this.toggleEditMode).call(t,this))}if(this.edgeBeingEditedId=this.selectionHandler.getSelectedEdges()[0],void 0!==this.edgeBeingEditedId){var i,n,o,r,g=this.body.edges[this.edgeBeingEditedId],s=this._getNewTargetNode(g.from.x,g.from.y),a=this._getNewTargetNode(g.to.x,g.to.y);this.temporaryIds.nodes.push(s.id),this.temporaryIds.nodes.push(a.id),this.body.nodes[s.id]=s,this.body.nodeIndices.push(s.id),this.body.nodes[a.id]=a,this.body.nodeIndices.push(a.id),this._temporaryBindUI("onTouch",et(i=this._controlNodeTouch).call(i,this)),this._temporaryBindUI("onTap",(function(){})),this._temporaryBindUI("onHold",(function(){})),this._temporaryBindUI("onDragStart",et(n=this._controlNodeDragStart).call(n,this)),this._temporaryBindUI("onDrag",et(o=this._controlNodeDrag).call(o,this)),this._temporaryBindUI("onDragEnd",et(r=this._controlNodeDragEnd).call(r,this)),this._temporaryBindUI("onMouseMove",(function(){})),this._temporaryBindEvent("beforeDrawing",(function(t){var e=g.edgeType.findBorderPositions(t);!1===s.selected&&(s.x=e.from.x,s.y=e.from.y),!1===a.selected&&(a.x=e.to.x,a.y=e.to.y)})),this.body.emitter.emit("_redraw")}else this.showManipulatorToolbar()}else{var A=this.body.edges[this.edgeBeingEditedId];this._performEditEdge(A.from.id,A.to.id)}}},{key:"deleteSelected",value:function(){var t=this;!0!==this.editMode&&this.enableEditMode(),this._clean(),this.inMode="delete";var e=this.selectionHandler.getSelectedNodes(),i=this.selectionHandler.getSelectedEdges(),n=void 0;if(e.length>0){for(var o=0;o<e.length;o++)if(!0===this.body.nodes[e[o]].isCluster)return void alert(this.options.locales[this.options.locale].deleteClusterError||this.options.locales.en.deleteClusterError);"function"==typeof this.options.deleteNode&&(n=this.options.deleteNode)}else i.length>0&&"function"==typeof this.options.deleteEdge&&(n=this.options.deleteEdge);if("function"==typeof n){var r={nodes:e,edges:i};if(2!==n.length)throw new Error("The function for delete does not support two arguments (data, callback)");n(r,(function(e){null!=e&&"delete"===t.inMode?(t.body.data.edges.getDataSet().remove(e.edges),t.body.data.nodes.getDataSet().remove(e.nodes),t.body.emitter.emit("startSimulation"),t.showManipulatorToolbar()):(t.body.emitter.emit("startSimulation"),t.showManipulatorToolbar())}))}else this.body.data.edges.getDataSet().remove(i),this.body.data.nodes.getDataSet().remove(e),this.body.emitter.emit("startSimulation"),this.showManipulatorToolbar()}},{key:"_setup",value:function(){!0===this.options.enabled?(this.guiEnabled=!0,this._createWrappers(),!1===this.editMode?this._createEditButton():this.showManipulatorToolbar()):(this._removeManipulationDOM(),this.guiEnabled=!1)}},{key:"_createWrappers",value:function(){void 0===this.manipulationDiv&&(this.manipulationDiv=document.createElement("div"),this.manipulationDiv.className="vis-manipulation",!0===this.editMode?this.manipulationDiv.style.display="block":this.manipulationDiv.style.display="none",this.canvas.frame.appendChild(this.manipulationDiv)),void 0===this.editModeDiv&&(this.editModeDiv=document.createElement("div"),this.editModeDiv.className="vis-edit-mode",!0===this.editMode?this.editModeDiv.style.display="none":this.editModeDiv.style.display="block",this.canvas.frame.appendChild(this.editModeDiv)),void 0===this.closeDiv&&(this.closeDiv=document.createElement("div"),this.closeDiv.className="vis-close",this.closeDiv.style.display=this.manipulationDiv.style.display,this.canvas.frame.appendChild(this.closeDiv))}},{key:"_getNewTargetNode",value:function(t,e){var i=Gr({},this.options.controlNodeStyle);i.id="targetNode"+PC(),i.hidden=!1,i.physics=!1,i.x=t,i.y=e;var n=this.body.functions.createNode(i);return n.shape.boundingBox={left:t,right:t,top:e,bottom:e},n}},{key:"_createEditButton",value:function(){var t;this._clean(),this.manipulationDOM={},Er(this.editModeDiv);var e=this.options.locales[this.options.locale],i=this._createButton("editMode","vis-button vis-edit vis-edit-mode",e.edit||this.options.locales.en.edit);this.editModeDiv.appendChild(i),this._bindHammerToDiv(i,et(t=this.toggleEditMode).call(t,this))}},{key:"_clean",value:function(){this.inMode=!1,!0===this.guiEnabled&&(Er(this.editModeDiv),Er(this.manipulationDiv),this._cleanManipulatorHammers()),this._cleanupTemporaryNodesAndEdges(),this._unbindTemporaryUIs(),this._unbindTemporaryEvents(),this.body.emitter.emit("restorePhysics")}},{key:"_cleanManipulatorHammers",value:function(){if(0!=this.manipulationHammers.length){for(var t=0;t<this.manipulationHammers.length;t++)this.manipulationHammers[t].destroy();this.manipulationHammers=[]}}},{key:"_removeManipulationDOM",value:function(){this._clean(),Er(this.manipulationDiv),Er(this.editModeDiv),Er(this.closeDiv),this.manipulationDiv&&this.canvas.frame.removeChild(this.manipulationDiv),this.editModeDiv&&this.canvas.frame.removeChild(this.editModeDiv),this.closeDiv&&this.canvas.frame.removeChild(this.closeDiv),this.manipulationDiv=void 0,this.editModeDiv=void 0,this.closeDiv=void 0}},{key:"_createSeperator",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.manipulationDOM["seperatorLineDiv"+t]=document.createElement("div"),this.manipulationDOM["seperatorLineDiv"+t].className="vis-separator-line",this.manipulationDiv.appendChild(this.manipulationDOM["seperatorLineDiv"+t])}},{key:"_createAddNodeButton",value:function(t){var e,i=this._createButton("addNode","vis-button vis-add",t.addNode||this.options.locales.en.addNode);this.manipulationDiv.appendChild(i),this._bindHammerToDiv(i,et(e=this.addNodeMode).call(e,this))}},{key:"_createAddEdgeButton",value:function(t){var e,i=this._createButton("addEdge","vis-button vis-connect",t.addEdge||this.options.locales.en.addEdge);this.manipulationDiv.appendChild(i),this._bindHammerToDiv(i,et(e=this.addEdgeMode).call(e,this))}},{key:"_createEditNodeButton",value:function(t){var e,i=this._createButton("editNode","vis-button vis-edit",t.editNode||this.options.locales.en.editNode);this.manipulationDiv.appendChild(i),this._bindHammerToDiv(i,et(e=this.editNode).call(e,this))}},{key:"_createEditEdgeButton",value:function(t){var e,i=this._createButton("editEdge","vis-button vis-edit",t.editEdge||this.options.locales.en.editEdge);this.manipulationDiv.appendChild(i),this._bindHammerToDiv(i,et(e=this.editEdgeMode).call(e,this))}},{key:"_createDeleteButton",value:function(t){var e,i;i=this.options.rtl?"vis-button vis-delete-rtl":"vis-button vis-delete";var n=this._createButton("delete",i,t.del||this.options.locales.en.del);this.manipulationDiv.appendChild(n),this._bindHammerToDiv(n,et(e=this.deleteSelected).call(e,this))}},{key:"_createBackButton",value:function(t){var e,i=this._createButton("back","vis-button vis-back",t.back||this.options.locales.en.back);this.manipulationDiv.appendChild(i),this._bindHammerToDiv(i,et(e=this.showManipulatorToolbar).call(e,this))}},{key:"_createButton",value:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"vis-label";return this.manipulationDOM[t+"Div"]=document.createElement("div"),this.manipulationDOM[t+"Div"].className=e,this.manipulationDOM[t+"Label"]=document.createElement("div"),this.manipulationDOM[t+"Label"].className=n,this.manipulationDOM[t+"Label"].innerHTML=i,this.manipulationDOM[t+"Div"].appendChild(this.manipulationDOM[t+"Label"]),this.manipulationDOM[t+"Div"]}},{key:"_createDescription",value:function(t){this.manipulationDiv.appendChild(this._createButton("description","vis-button vis-none",t))}},{key:"_temporaryBindEvent",value:function(t,e){this.temporaryEventFunctions.push({event:t,boundFunction:e}),this.body.emitter.on(t,e)}},{key:"_temporaryBindUI",value:function(t,e){if(void 0===this.body.eventListeners[t])throw new Error("This UI function does not exist. Typo? You tried: "+t+" possible are: "+SA(En(this.body.eventListeners)));this.temporaryUIFunctions[t]=this.body.eventListeners[t],this.body.eventListeners[t]=e}},{key:"_unbindTemporaryUIs",value:function(){for(var t in this.temporaryUIFunctions)this.temporaryUIFunctions.hasOwnProperty(t)&&(this.body.eventListeners[t]=this.temporaryUIFunctions[t],delete this.temporaryUIFunctions[t]);this.temporaryUIFunctions={}}},{key:"_unbindTemporaryEvents",value:function(){for(var t=0;t<this.temporaryEventFunctions.length;t++){var e=this.temporaryEventFunctions[t].event,i=this.temporaryEventFunctions[t].boundFunction;this.body.emitter.off(e,i)}this.temporaryEventFunctions=[]}},{key:"_bindHammerToDiv",value:function(t,e){var i=new Va(t,{});kc.onTouch(i,e),this.manipulationHammers.push(i)}},{key:"_cleanupTemporaryNodesAndEdges",value:function(){for(var t=0;t<this.temporaryIds.edges.length;t++){var e;this.body.edges[this.temporaryIds.edges[t]].disconnect(),delete this.body.edges[this.temporaryIds.edges[t]];var i,n=rr(e=this.body.edgeIndices).call(e,this.temporaryIds.edges[t]);if(-1!==n)yg(i=this.body.edgeIndices).call(i,n,1)}for(var o=0;o<this.temporaryIds.nodes.length;o++){var r;delete this.body.nodes[this.temporaryIds.nodes[o]];var g,s=rr(r=this.body.nodeIndices).call(r,this.temporaryIds.nodes[o]);if(-1!==s)yg(g=this.body.nodeIndices).call(g,s,1)}this.temporaryIds={nodes:[],edges:[]}}},{key:"_controlNodeTouch",value:function(t){this.selectionHandler.unselectAll(),this.lastTouch=this.body.functions.getPointer(t.center),this.lastTouch.translation=Rr({},this.body.view.translation)}},{key:"_controlNodeDragStart",value:function(t){var e=this.lastTouch,i=this.selectionHandler._pointerToPositionObject(e),n=this.body.nodes[this.temporaryIds.nodes[0]],o=this.body.nodes[this.temporaryIds.nodes[1]],r=this.body.edges[this.edgeBeingEditedId];this.selectedControlNode=void 0;var g=n.isOverlappingWith(i),s=o.isOverlappingWith(i);!0===g?(this.selectedControlNode=n,r.edgeType.from=n):!0===s&&(this.selectedControlNode=o,r.edgeType.to=o),void 0!==this.selectedControlNode&&this.selectionHandler.selectObject(this.selectedControlNode),this.body.emitter.emit("_redraw")}},{key:"_controlNodeDrag",value:function(t){this.body.emitter.emit("disablePhysics");var e=this.body.functions.getPointer(t.center),i=this.canvas.DOMtoCanvas(e);void 0!==this.selectedControlNode?(this.selectedControlNode.x=i.x,this.selectedControlNode.y=i.y):this.interactionHandler.onDrag(t),this.body.emitter.emit("_redraw")}},{key:"_controlNodeDragEnd",value:function(t){var e=this.body.functions.getPointer(t.center),i=this.selectionHandler._pointerToPositionObject(e),n=this.body.edges[this.edgeBeingEditedId];if(void 0!==this.selectedControlNode){this.selectionHandler.unselectAll();for(var o=this.selectionHandler._getAllNodesOverlappingWith(i),r=void 0,g=o.length-1;g>=0;g--)if(o[g]!==this.selectedControlNode.id){r=this.body.nodes[o[g]];break}if(void 0!==r&&void 0!==this.selectedControlNode)if(!0===r.isCluster)alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError);else{var s=this.body.nodes[this.temporaryIds.nodes[0]];this.selectedControlNode.id===s.id?this._performEditEdge(r.id,n.to.id):this._performEditEdge(n.from.id,r.id)}else n.updateEdgeType(),this.body.emitter.emit("restorePhysics");this.body.emitter.emit("_redraw")}}},{key:"_handleConnect",value:function(t){if((new Date).valueOf()-this.touchTime>100){this.lastTouch=this.body.functions.getPointer(t.center),this.lastTouch.translation=Rr({},this.body.view.translation);var e=this.lastTouch,i=this.selectionHandler.getNodeAt(e);if(void 0!==i)if(!0===i.isCluster)alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError);else{var n=this._getNewTargetNode(i.x,i.y);this.body.nodes[n.id]=n,this.body.nodeIndices.push(n.id);var o=this.body.functions.createEdge({id:"connectionEdge"+PC(),from:i.id,to:n.id,physics:!1,smooth:{enabled:!0,type:"continuous",roundness:.5}});this.body.edges[o.id]=o,this.body.edgeIndices.push(o.id),this.temporaryIds.nodes.push(n.id),this.temporaryIds.edges.push(o.id)}this.touchTime=(new Date).valueOf()}}},{key:"_dragControlNode",value:function(t){var e=this.body.functions.getPointer(t.center),i=this.selectionHandler._pointerToPositionObject(e),n=void 0;void 0!==this.temporaryIds.edges[0]&&(n=this.body.edges[this.temporaryIds.edges[0]].fromId);for(var o=this.selectionHandler._getAllNodesOverlappingWith(i),r=void 0,g=o.length-1;g>=0;g--){var s;if(-1===rr(s=this.temporaryIds.nodes).call(s,o[g])){r=this.body.nodes[o[g]];break}}if(t.controlEdge={from:n,to:r?r.id:void 0},this.selectionHandler._generateClickEvent("controlNodeDragging",t,e),void 0!==this.temporaryIds.nodes[0]){var a=this.body.nodes[this.temporaryIds.nodes[0]];a.x=this.canvas._XconvertDOMtoCanvas(e.x),a.y=this.canvas._YconvertDOMtoCanvas(e.y),this.body.emitter.emit("_redraw")}else this.interactionHandler.onDrag(t)}},{key:"_finishConnect",value:function(t){var e=this.body.functions.getPointer(t.center),i=this.selectionHandler._pointerToPositionObject(e),n=void 0;void 0!==this.temporaryIds.edges[0]&&(n=this.body.edges[this.temporaryIds.edges[0]].fromId);for(var o=this.selectionHandler._getAllNodesOverlappingWith(i),r=void 0,g=o.length-1;g>=0;g--){var s;if(-1===rr(s=this.temporaryIds.nodes).call(s,o[g])){r=this.body.nodes[o[g]];break}}this._cleanupTemporaryNodesAndEdges(),void 0!==r&&(!0===r.isCluster?alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError):void 0!==this.body.nodes[n]&&void 0!==this.body.nodes[r.id]&&this._performAddEdge(n,r.id)),t.controlEdge={from:n,to:r?r.id:void 0},this.selectionHandler._generateClickEvent("controlNodeDragEnd",t,e),this.body.emitter.emit("_redraw")}},{key:"_dragStartEdge",value:function(t){var e=this.lastTouch;this.selectionHandler._generateClickEvent("dragStart",t,e,void 0,!0)}},{key:"_performAddNode",value:function(t){var e=this,i={id:PC(),x:t.pointer.canvas.x,y:t.pointer.canvas.y,label:"new"};if("function"==typeof this.options.addNode){if(2!==this.options.addNode.length)throw this.showManipulatorToolbar(),new Error("The function for add does not support two arguments (data,callback)");this.options.addNode(i,(function(t){null!=t&&"addNode"===e.inMode&&e.body.data.nodes.getDataSet().add(t),e.showManipulatorToolbar()}))}else this.body.data.nodes.getDataSet().add(i),this.showManipulatorToolbar()}},{key:"_performAddEdge",value:function(t,e){var i=this,n={from:t,to:e};if("function"==typeof this.options.addEdge){if(2!==this.options.addEdge.length)throw new Error("The function for connect does not support two arguments (data,callback)");this.options.addEdge(n,(function(t){null!=t&&"addEdge"===i.inMode&&(i.body.data.edges.getDataSet().add(t),i.selectionHandler.unselectAll(),i.showManipulatorToolbar())}))}else this.body.data.edges.getDataSet().add(n),this.selectionHandler.unselectAll(),this.showManipulatorToolbar()}},{key:"_performEditEdge",value:function(t,e){var i=this,n={id:this.edgeBeingEditedId,from:t,to:e,label:this.body.data.edges.get(this.edgeBeingEditedId).label},o=this.options.editEdge;if("object"===cr(o)&&(o=o.editWithoutDrag),"function"==typeof o){if(2!==o.length)throw new Error("The function for edit does not support two arguments (data, callback)");o(n,(function(t){null==t||"editEdge"!==i.inMode?(i.body.edges[n.id].updateEdgeType(),i.body.emitter.emit("_redraw"),i.showManipulatorToolbar()):(i.body.data.edges.getDataSet().update(t),i.selectionHandler.unselectAll(),i.showManipulatorToolbar())}))}else this.body.data.edges.getDataSet().update(n),this.selectionHandler.unselectAll(),this.showManipulatorToolbar()}}]),t}();ds("div.vis-configuration {\n    position:relative;\n    display:block;\n    float:left;\n    font-size:12px;\n}\n\ndiv.vis-configuration-wrapper {\n    display:block;\n    width:700px;\n}\n\ndiv.vis-configuration-wrapper::after {\n  clear: both;\n  content: \"\";\n  display: block;\n}\n\ndiv.vis-configuration.vis-config-option-container{\n    display:block;\n    width:495px;\n    background-color: #ffffff;\n    border:2px solid #f7f8fa;\n    border-radius:4px;\n    margin-top:20px;\n    left:10px;\n    padding-left:5px;\n}\n\ndiv.vis-configuration.vis-config-button{\n    display:block;\n    width:495px;\n    height:25px;\n    vertical-align: middle;\n    line-height:25px;\n    background-color: #f7f8fa;\n    border:2px solid #ceced0;\n    border-radius:4px;\n    margin-top:20px;\n    left:10px;\n    padding-left:5px;\n    cursor: pointer;\n    margin-bottom:30px;\n}\n\ndiv.vis-configuration.vis-config-button.hover{\n    background-color: #4588e6;\n    border:2px solid #214373;\n    color:#ffffff;\n}\n\ndiv.vis-configuration.vis-config-item{\n    display:block;\n    float:left;\n    width:495px;\n    height:25px;\n    vertical-align: middle;\n    line-height:25px;\n}\n\n\ndiv.vis-configuration.vis-config-item.vis-config-s2{\n    left:10px;\n    background-color: #f7f8fa;\n    padding-left:5px;\n    border-radius:3px;\n}\ndiv.vis-configuration.vis-config-item.vis-config-s3{\n    left:20px;\n    background-color: #e4e9f0;\n    padding-left:5px;\n    border-radius:3px;\n}\ndiv.vis-configuration.vis-config-item.vis-config-s4{\n    left:30px;\n    background-color: #cfd8e6;\n    padding-left:5px;\n    border-radius:3px;\n}\n\ndiv.vis-configuration.vis-config-header{\n    font-size:18px;\n    font-weight: bold;\n}\n\ndiv.vis-configuration.vis-config-label{\n    width:120px;\n    height:25px;\n    line-height: 25px;\n}\n\ndiv.vis-configuration.vis-config-label.vis-config-s3{\n    width:110px;\n}\ndiv.vis-configuration.vis-config-label.vis-config-s4{\n    width:100px;\n}\n\ndiv.vis-configuration.vis-config-colorBlock{\n    top:1px;\n    width:30px;\n    height:19px;\n    border:1px solid #444444;\n    border-radius:2px;\n    padding:0px;\n    margin:0px;\n    cursor:pointer;\n}\n\ninput.vis-configuration.vis-config-checkbox {\n    left:-5px;\n}\n\n\ninput.vis-configuration.vis-config-rangeinput{\n    position:relative;\n    top:-5px;\n    width:60px;\n    /*height:13px;*/\n    padding:1px;\n    margin:0;\n    pointer-events:none;\n}\n\ninput.vis-configuration.vis-config-range{\n    /*removes default webkit styles*/\n    -webkit-appearance: none;\n\n    /*fix for FF unable to apply focus style bug */\n    border: 0px solid white;\n    background-color:rgba(0,0,0,0);\n\n    /*required for proper track sizing in FF*/\n    width: 300px;\n    height:20px;\n}\ninput.vis-configuration.vis-config-range::-webkit-slider-runnable-track {\n    width: 300px;\n    height: 5px;\n    background: #dedede; /* Old browsers */\n    background: -moz-linear-gradient(top,  #dedede 0%, #c8c8c8 99%); /* FF3.6+ */\n    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#dedede), color-stop(99%,#c8c8c8)); /* Chrome,Safari4+ */\n    background: -webkit-linear-gradient(top,  #dedede 0%,#c8c8c8 99%); /* Chrome10+,Safari5.1+ */\n    background: -o-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* Opera 11.10+ */\n    background: -ms-linear-gradient(top,  #dedede 0%,#c8c8c8 99%); /* IE10+ */\n    background: linear-gradient(to bottom,  #dedede 0%,#c8c8c8 99%); /* W3C */\n    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#dedede', endColorstr='#c8c8c8',GradientType=0 ); /* IE6-9 */\n\n    border: 1px solid #999999;\n    box-shadow: #aaaaaa 0px 0px 3px 0px;\n    border-radius: 3px;\n}\ninput.vis-configuration.vis-config-range::-webkit-slider-thumb {\n    -webkit-appearance: none;\n    border: 1px solid #14334b;\n    height: 17px;\n    width: 17px;\n    border-radius: 50%;\n    background: #3876c2; /* Old browsers */\n    background: -moz-linear-gradient(top,  #3876c2 0%, #385380 100%); /* FF3.6+ */\n    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#3876c2), color-stop(100%,#385380)); /* Chrome,Safari4+ */\n    background: -webkit-linear-gradient(top,  #3876c2 0%,#385380 100%); /* Chrome10+,Safari5.1+ */\n    background: -o-linear-gradient(top,  #3876c2 0%,#385380 100%); /* Opera 11.10+ */\n    background: -ms-linear-gradient(top,  #3876c2 0%,#385380 100%); /* IE10+ */\n    background: linear-gradient(to bottom,  #3876c2 0%,#385380 100%); /* W3C */\n    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#3876c2', endColorstr='#385380',GradientType=0 ); /* IE6-9 */\n    box-shadow: #111927 0px 0px 1px 0px;\n    margin-top: -7px;\n}\ninput.vis-configuration.vis-config-range:focus {\n    outline: none;\n}\ninput.vis-configuration.vis-config-range:focus::-webkit-slider-runnable-track {\n    background: #9d9d9d; /* Old browsers */\n    background: -moz-linear-gradient(top, #9d9d9d 0%, #c8c8c8 99%); /* FF3.6+ */\n    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#9d9d9d), color-stop(99%,#c8c8c8)); /* Chrome,Safari4+ */\n    background: -webkit-linear-gradient(top,  #9d9d9d 0%,#c8c8c8 99%); /* Chrome10+,Safari5.1+ */\n    background: -o-linear-gradient(top,  #9d9d9d 0%,#c8c8c8 99%); /* Opera 11.10+ */\n    background: -ms-linear-gradient(top,  #9d9d9d 0%,#c8c8c8 99%); /* IE10+ */\n    background: linear-gradient(to bottom,  #9d9d9d 0%,#c8c8c8 99%); /* W3C */\n    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#9d9d9d', endColorstr='#c8c8c8',GradientType=0 ); /* IE6-9 */\n}\n\ninput.vis-configuration.vis-config-range::-moz-range-track {\n    width: 300px;\n    height: 10px;\n    background: #dedede; /* Old browsers */\n    background: -moz-linear-gradient(top,  #dedede 0%, #c8c8c8 99%); /* FF3.6+ */\n    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#dedede), color-stop(99%,#c8c8c8)); /* Chrome,Safari4+ */\n    background: -webkit-linear-gradient(top,  #dedede 0%,#c8c8c8 99%); /* Chrome10+,Safari5.1+ */\n    background: -o-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* Opera 11.10+ */\n    background: -ms-linear-gradient(top,  #dedede 0%,#c8c8c8 99%); /* IE10+ */\n    background: linear-gradient(to bottom,  #dedede 0%,#c8c8c8 99%); /* W3C */\n    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#dedede', endColorstr='#c8c8c8',GradientType=0 ); /* IE6-9 */\n\n    border: 1px solid #999999;\n    box-shadow: #aaaaaa 0px 0px 3px 0px;\n    border-radius: 3px;\n}\ninput.vis-configuration.vis-config-range::-moz-range-thumb {\n    border: none;\n    height: 16px;\n    width: 16px;\n\n    border-radius: 50%;\n    background:  #385380;\n}\n\n/*hide the outline behind the border*/\ninput.vis-configuration.vis-config-range:-moz-focusring{\n    outline: 1px solid white;\n    outline-offset: -1px;\n}\n\ninput.vis-configuration.vis-config-range::-ms-track {\n    width: 300px;\n    height: 5px;\n\n    /*remove bg colour from the track, we'll use ms-fill-lower and ms-fill-upper instead */\n    background: transparent;\n\n    /*leave room for the larger thumb to overflow with a transparent border */\n    border-color: transparent;\n    border-width: 6px 0;\n\n    /*remove default tick marks*/\n    color: transparent;\n}\ninput.vis-configuration.vis-config-range::-ms-fill-lower {\n    background: #777;\n    border-radius: 10px;\n}\ninput.vis-configuration.vis-config-range::-ms-fill-upper {\n    background: #ddd;\n    border-radius: 10px;\n}\ninput.vis-configuration.vis-config-range::-ms-thumb {\n    border: none;\n    height: 16px;\n    width: 16px;\n    border-radius: 50%;\n    background:  #385380;\n}\ninput.vis-configuration.vis-config-range:focus::-ms-fill-lower {\n    background: #888;\n}\ninput.vis-configuration.vis-config-range:focus::-ms-fill-upper {\n    background: #ccc;\n}\n\n.vis-configuration-popup {\n    position: absolute;\n    background: rgba(57, 76, 89, 0.85);\n    border: 2px solid #f2faff;\n    line-height:30px;\n    height:30px;\n    width:150px;\n    text-align:center;\n    color: #ffffff;\n    font-size:14px;\n    border-radius:4px;\n    -webkit-transition: opacity 0.3s ease-in-out;\n    -moz-transition: opacity 0.3s ease-in-out;\n    transition: opacity 0.3s ease-in-out;\n}\n.vis-configuration-popup:after, .vis-configuration-popup:before {\n    left: 100%;\n    top: 50%;\n    border: solid transparent;\n    content: \" \";\n    height: 0;\n    width: 0;\n    position: absolute;\n    pointer-events: none;\n}\n\n.vis-configuration-popup:after {\n    border-color: rgba(136, 183, 213, 0);\n    border-left-color: rgba(57, 76, 89, 0.85);\n    border-width: 8px;\n    margin-top: -8px;\n}\n.vis-configuration-popup:before {\n    border-color: rgba(194, 225, 245, 0);\n    border-left-color: #f2faff;\n    border-width: 12px;\n    margin-top: -12px;\n}\n/*# sourceMappingURL=data:application/json;base64,  */");ds("\ndiv.vis-color-picker {\n  position:absolute;\n  top: 0px;\n  left: 30px;\n  margin-top:-140px;\n  margin-left:30px;\n  width:310px;\n  height:444px;\n  z-index: 1;\n  padding: 10px;\n  border-radius:15px;\n  background-color:#ffffff;\n  display: none;\n  box-shadow: rgba(0,0,0,0.5) 0px 0px 10px 0px;\n}\n\ndiv.vis-color-picker div.vis-arrow {\n  position: absolute;\n  top:147px;\n  left:5px;\n}\n\ndiv.vis-color-picker div.vis-arrow::after,\ndiv.vis-color-picker div.vis-arrow::before {\n  right: 100%;\n  top: 50%;\n  border: solid transparent;\n  content: \" \";\n  height: 0;\n  width: 0;\n  position: absolute;\n  pointer-events: none;\n}\n\ndiv.vis-color-picker div.vis-arrow:after {\n  border-color: rgba(255, 255, 255, 0);\n  border-right-color: #ffffff;\n  border-width: 30px;\n  margin-top: -30px;\n}\n\ndiv.vis-color-picker div.vis-color {\n  position:absolute;\n  width: 289px;\n  height: 289px;\n  cursor: pointer;\n}\n\n\n\ndiv.vis-color-picker div.vis-brightness {\n  position: absolute;\n  top:313px;\n}\n\ndiv.vis-color-picker div.vis-opacity {\n  position:absolute;\n  top:350px;\n}\n\ndiv.vis-color-picker div.vis-selector {\n  position:absolute;\n  top:137px;\n  left:137px;\n  width:15px;\n  height:15px;\n  border-radius:15px;\n  border:1px solid #ffffff;\n  background: #4c4c4c; /* Old browsers */\n  background: -moz-linear-gradient(top,  #4c4c4c 0%, #595959 12%, #666666 25%, #474747 39%, #2c2c2c 50%, #000000 51%, #111111 60%, #2b2b2b 76%, #1c1c1c 91%, #131313 100%); /* FF3.6+ */\n  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#4c4c4c), color-stop(12%,#595959), color-stop(25%,#666666), color-stop(39%,#474747), color-stop(50%,#2c2c2c), color-stop(51%,#000000), color-stop(60%,#111111), color-stop(76%,#2b2b2b), color-stop(91%,#1c1c1c), color-stop(100%,#131313)); /* Chrome,Safari4+ */\n  background: -webkit-linear-gradient(top,  #4c4c4c 0%,#595959 12%,#666666 25%,#474747 39%,#2c2c2c 50%,#000000 51%,#111111 60%,#2b2b2b 76%,#1c1c1c 91%,#131313 100%); /* Chrome10+,Safari5.1+ */\n  background: -o-linear-gradient(top,  #4c4c4c 0%,#595959 12%,#666666 25%,#474747 39%,#2c2c2c 50%,#000000 51%,#111111 60%,#2b2b2b 76%,#1c1c1c 91%,#131313 100%); /* Opera 11.10+ */\n  background: -ms-linear-gradient(top,  #4c4c4c 0%,#595959 12%,#666666 25%,#474747 39%,#2c2c2c 50%,#000000 51%,#111111 60%,#2b2b2b 76%,#1c1c1c 91%,#131313 100%); /* IE10+ */\n  background: linear-gradient(to bottom,  #4c4c4c 0%,#595959 12%,#666666 25%,#474747 39%,#2c2c2c 50%,#000000 51%,#111111 60%,#2b2b2b 76%,#1c1c1c 91%,#131313 100%); /* W3C */\n  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#4c4c4c', endColorstr='#131313',GradientType=0 ); /* IE6-9 */\n}\n\n\n\ndiv.vis-color-picker div.vis-new-color {\n  position:absolute;\n  width:140px;\n  height:20px;\n  border:1px solid rgba(0,0,0,0.1);\n  border-radius:5px;\n  top:380px;\n  left:159px;\n  text-align:right;\n  padding-right:2px;\n  font-size:10px;\n  color:rgba(0,0,0,0.4);\n  vertical-align:middle;\n  line-height:20px;\n\n}\n\ndiv.vis-color-picker div.vis-initial-color {\n  position:absolute;\n  width:140px;\n  height:20px;\n  border:1px solid rgba(0,0,0,0.1);\n  border-radius:5px;\n  top:380px;\n  left:10px;\n  text-align:left;\n  padding-left:2px;\n  font-size:10px;\n  color:rgba(0,0,0,0.4);\n  vertical-align:middle;\n  line-height:20px;\n}\n\ndiv.vis-color-picker div.vis-label {\n  position:absolute;\n  width:300px;\n  left:10px;\n}\n\ndiv.vis-color-picker div.vis-label.vis-brightness {\n  top:300px;\n}\n\ndiv.vis-color-picker div.vis-label.vis-opacity {\n  top:338px;\n}\n\ndiv.vis-color-picker div.vis-button {\n  position:absolute;\n  width:68px;\n  height:25px;\n  border-radius:10px;\n  vertical-align: middle;\n  text-align:center;\n  line-height: 25px;\n  top:410px;\n  border:2px solid #d9d9d9;\n  background-color: #f7f7f7;\n  cursor:pointer;\n}\n\ndiv.vis-color-picker div.vis-button.vis-cancel {\n  /*border:2px solid #ff4e33;*/\n  /*background-color: #ff7761;*/\n  left:5px;\n}\ndiv.vis-color-picker div.vis-button.vis-load {\n  /*border:2px solid #a153e6;*/\n  /*background-color: #cb8dff;*/\n  left:82px;\n}\ndiv.vis-color-picker div.vis-button.vis-apply {\n  /*border:2px solid #4588e6;*/\n  /*background-color: #82b6ff;*/\n  left:159px;\n}\ndiv.vis-color-picker div.vis-button.vis-save {\n  /*border:2px solid #45e655;*/\n  /*background-color: #6dff7c;*/\n  left:236px;\n}\n\n\ndiv.vis-color-picker input.vis-range {\n  width: 290px;\n  height:20px;\n}\n\n/* TODO: is this redundant?\ndiv.vis-color-picker input.vis-range-brightness {\n  width: 289px !important;\n}\n\n\ndiv.vis-color-picker input.vis-saturation-range {\n  width: 289px !important;\n}*/\n/*# sourceMappingURL=data:application/json;base64,  */");var qc={black:"#000000",navy:"#000080",darkblue:"#00008B",mediumblue:"#0000CD",blue:"#0000FF",darkgreen:"#006400",green:"#008000",teal:"#008080",darkcyan:"#008B8B",deepskyblue:"#00BFFF",darkturquoise:"#00CED1",mediumspringgreen:"#00FA9A",lime:"#00FF00",springgreen:"#00FF7F",aqua:"#00FFFF",cyan:"#00FFFF",midnightblue:"#191970",dodgerblue:"#1E90FF",lightseagreen:"#20B2AA",forestgreen:"#228B22",seagreen:"#2E8B57",darkslategray:"#2F4F4F",limegreen:"#32CD32",mediumseagreen:"#3CB371",turquoise:"#40E0D0",royalblue:"#4169E1",steelblue:"#4682B4",darkslateblue:"#483D8B",mediumturquoise:"#48D1CC",indigo:"#4B0082",darkolivegreen:"#556B2F",cadetblue:"#5F9EA0",cornflowerblue:"#6495ED",mediumaquamarine:"#66CDAA",dimgray:"#696969",slateblue:"#6A5ACD",olivedrab:"#6B8E23",slategray:"#708090",lightslategray:"#778899",mediumslateblue:"#7B68EE",lawngreen:"#7CFC00",chartreuse:"#7FFF00",aquamarine:"#7FFFD4",maroon:"#800000",purple:"#800080",olive:"#808000",gray:"#808080",skyblue:"#87CEEB",lightskyblue:"#87CEFA",blueviolet:"#8A2BE2",darkred:"#8B0000",darkmagenta:"#8B008B",saddlebrown:"#8B4513",darkseagreen:"#8FBC8F",lightgreen:"#90EE90",mediumpurple:"#9370D8",darkviolet:"#9400D3",palegreen:"#98FB98",darkorchid:"#9932CC",yellowgreen:"#9ACD32",sienna:"#A0522D",brown:"#A52A2A",darkgray:"#A9A9A9",lightblue:"#ADD8E6",greenyellow:"#ADFF2F",paleturquoise:"#AFEEEE",lightsteelblue:"#B0C4DE",powderblue:"#B0E0E6",firebrick:"#B22222",darkgoldenrod:"#B8860B",mediumorchid:"#BA55D3",rosybrown:"#BC8F8F",darkkhaki:"#BDB76B",silver:"#C0C0C0",mediumvioletred:"#C71585",indianred:"#CD5C5C",peru:"#CD853F",chocolate:"#D2691E",tan:"#D2B48C",lightgrey:"#D3D3D3",palevioletred:"#D87093",thistle:"#D8BFD8",orchid:"#DA70D6",goldenrod:"#DAA520",crimson:"#DC143C",gainsboro:"#DCDCDC",plum:"#DDA0DD",burlywood:"#DEB887",lightcyan:"#E0FFFF",lavender:"#E6E6FA",darksalmon:"#E9967A",violet:"#EE82EE",palegoldenrod:"#EEE8AA",lightcoral:"#F08080",khaki:"#F0E68C",aliceblue:"#F0F8FF",honeydew:"#F0FFF0",azure:"#F0FFFF",sandybrown:"#F4A460",wheat:"#F5DEB3",beige:"#F5F5DC",whitesmoke:"#F5F5F5",mintcream:"#F5FFFA",ghostwhite:"#F8F8FF",salmon:"#FA8072",antiquewhite:"#FAEBD7",linen:"#FAF0E6",lightgoldenrodyellow:"#FAFAD2",oldlace:"#FDF5E6",red:"#FF0000",fuchsia:"#FF00FF",magenta:"#FF00FF",deeppink:"#FF1493",orangered:"#FF4500",tomato:"#FF6347",hotpink:"#FF69B4",coral:"#FF7F50",darkorange:"#FF8C00",lightsalmon:"#FFA07A",orange:"#FFA500",lightpink:"#FFB6C1",pink:"#FFC0CB",gold:"#FFD700",peachpuff:"#FFDAB9",navajowhite:"#FFDEAD",moccasin:"#FFE4B5",bisque:"#FFE4C4",mistyrose:"#FFE4E1",blanchedalmond:"#FFEBCD",papayawhip:"#FFEFD5",lavenderblush:"#FFF0F5",seashell:"#FFF5EE",cornsilk:"#FFF8DC",lemonchiffon:"#FFFACD",floralwhite:"#FFFAF0",snow:"#FFFAFA",yellow:"#FFFF00",lightyellow:"#FFFFE0",ivory:"#FFFFF0",white:"#FFFFFF"},$c=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;qa(this,t),this.pixelRatio=e,this.generated=!1,this.centerCoordinates={x:144.5,y:144.5},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=function(){},this.closeCallback=function(){},this._create()}return tA(t,[{key:"insertTo",value:function(t){void 0!==this.hammer&&(this.hammer.destroy(),this.hammer=void 0),this.container=t,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(t){if("function"!=typeof t)throw new Error("Function attempted to set as colorPicker update callback is not a function.");this.updateCallback=t}},{key:"setCloseCallback",value:function(t){if("function"!=typeof t)throw new Error("Function attempted to set as colorPicker closing callback is not a function.");this.closeCallback=t}},{key:"_isColorString",value:function(t){if("string"==typeof t)return qc[t]}},{key:"setColor",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if("none"!==t){var i,n=this._isColorString(t);if(void 0!==n&&(t=n),!0===Fr(t)){if(!0===ag(t)){var o=t.substr(4).substr(0,t.length-5).split(",");i={r:o[0],g:o[1],b:o[2],a:1}}else if(!0===Ag(t)){var r=t.substr(5).substr(0,t.length-6).split(",");i={r:r[0],g:r[1],b:r[2],a:r[3]}}else if(!0===sg(t)){var g=Kr(t);i={r:g.r,g:g.g,b:g.b,a:1}}}else if(t instanceof Object&&void 0!==t.r&&void 0!==t.g&&void 0!==t.b){var s=void 0!==t.a?t.a:"1.0";i={r:t.r,g:t.g,b:t.b,a:s}}if(void 0===i)throw new Error("Unknown color passed to the colorPicker. Supported are strings: rgb, hex, rgba. Object: rgb ({r:r,g:g,b:b,[a:a]}). Supplied: "+SA(t));this._setColor(i,e)}}},{key:"show",value:function(){void 0!==this.closeCallback&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];!0===e&&(this.previousColor=Rr({},this.color)),!0===this.applied&&this.updateCallback(this.initialColor),this.frame.style.display="none",sA((function(){void 0!==t.closeCallback&&(t.closeCallback(),t.closeCallback=void 0)}),0)}},{key:"_save",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:"_apply",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:"_loadLast",value:function(){void 0!==this.previousColor?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];!0===e&&(this.initialColor=Rr({},t)),this.color=t;var i=eg(t.r,t.g,t.b),n=2*Math.PI,o=this.r*i.s,r=this.centerCoordinates.x+o*Math.sin(n*i.h),g=this.centerCoordinates.y+o*Math.cos(n*i.h);this.colorPickerSelector.style.left=r-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=g-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(t)}},{key:"_setOpacity",value:function(t){this.color.a=t/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(t){var e=eg(this.color.r,this.color.g,this.color.b);e.v=t/100;var i=og(e.h,e.s,e.v);i.a=this.color.a,this.color=i,this._updatePicker()}},{key:"_updatePicker",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.color,e=eg(t.r,t.g,t.b),i=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(i.webkitBackingStorePixelRatio||i.mozBackingStorePixelRatio||i.msBackingStorePixelRatio||i.oBackingStorePixelRatio||i.backingStorePixelRatio||1)),i.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var n=this.colorPickerCanvas.clientWidth,o=this.colorPickerCanvas.clientHeight;i.clearRect(0,0,n,o),i.putImageData(this.hueCircle,0,0),i.fillStyle="rgba(0,0,0,"+(1-e.v)+")",i.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),wI(i).call(i),this.brightnessRange.value=100*e.v,this.opacityRange.value=100*t.a,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}},{key:"_setSize",value:function(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}},{key:"_create",value:function(){var t,e,i,n;if(this.frame=document.createElement("div"),this.frame.className="vis-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="vis-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){var o=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(o.webkitBackingStorePixelRatio||o.mozBackingStorePixelRatio||o.msBackingStorePixelRatio||o.oBackingStorePixelRatio||o.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var r=document.createElement("DIV");r.style.color="red",r.style.fontWeight="bold",r.style.padding="10px",r.innerHTML="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(r)}this.colorPickerDiv.className="vis-color",this.opacityDiv=document.createElement("div"),this.opacityDiv.className="vis-opacity",this.brightnessDiv=document.createElement("div"),this.brightnessDiv.className="vis-brightness",this.arrowDiv=document.createElement("div"),this.arrowDiv.className="vis-arrow",this.opacityRange=document.createElement("input");try{this.opacityRange.type="range",this.opacityRange.min="0",this.opacityRange.max="100"}catch(t){}this.opacityRange.value="100",this.opacityRange.className="vis-range",this.brightnessRange=document.createElement("input");try{this.brightnessRange.type="range",this.brightnessRange.min="0",this.brightnessRange.max="100"}catch(t){}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var g=this;this.opacityRange.onchange=function(){g._setOpacity(this.value)},this.opacityRange.oninput=function(){g._setOpacity(this.value)},this.brightnessRange.onchange=function(){g._setBrightness(this.value)},this.brightnessRange.oninput=function(){g._setBrightness(this.value)},this.brightnessLabel=document.createElement("div"),this.brightnessLabel.className="vis-label vis-brightness",this.brightnessLabel.innerHTML="brightness:",this.opacityLabel=document.createElement("div"),this.opacityLabel.className="vis-label vis-opacity",this.opacityLabel.innerHTML="opacity:",this.newColorDiv=document.createElement("div"),this.newColorDiv.className="vis-new-color",this.newColorDiv.innerHTML="new",this.initialColorDiv=document.createElement("div"),this.initialColorDiv.className="vis-initial-color",this.initialColorDiv.innerHTML="initial",this.cancelButton=document.createElement("div"),this.cancelButton.className="vis-button vis-cancel",this.cancelButton.innerHTML="cancel",this.cancelButton.onclick=et(t=this._hide).call(t,this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="vis-button vis-apply",this.applyButton.innerHTML="apply",this.applyButton.onclick=et(e=this._apply).call(e,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerHTML="save",this.saveButton.onclick=et(i=this._save).call(i,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerHTML="load last",this.loadButton.onclick=et(n=this._loadLast).call(n,this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}},{key:"_bindHammer",value:function(){var t=this;this.drag={},this.pinch={},this.hammer=new Va(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),kc.onTouch(this.hammer,(function(e){t._moveSelector(e)})),this.hammer.on("tap",(function(e){t._moveSelector(e)})),this.hammer.on("panstart",(function(e){t._moveSelector(e)})),this.hammer.on("panmove",(function(e){t._moveSelector(e)})),this.hammer.on("panend",(function(e){t._moveSelector(e)}))}},{key:"_generateHueCircle",value:function(){if(!1===this.generated){var t=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)),t.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var e,i,n,o,r=this.colorPickerCanvas.clientWidth,g=this.colorPickerCanvas.clientHeight;t.clearRect(0,0,r,g),this.centerCoordinates={x:.5*r,y:.5*g},this.r=.49*r;var s,a=2*Math.PI/360,A=1/this.r;for(n=0;n<360;n++)for(o=0;o<this.r;o++)e=this.centerCoordinates.x+o*Math.sin(a*n),i=this.centerCoordinates.y+o*Math.cos(a*n),s=og(n*(1/360),o*A,1),t.fillStyle="rgb("+s.r+","+s.g+","+s.b+")",t.fillRect(e-.5,i-.5,2,2);t.strokeStyle="rgba(0,0,0,1)",t.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),t.stroke(),this.hueCircle=t.getImageData(0,0,r,g)}this.generated=!0}},{key:"_moveSelector",value:function(t){var e=this.colorPickerDiv.getBoundingClientRect(),i=t.center.x-e.left,n=t.center.y-e.top,o=.5*this.colorPickerDiv.clientHeight,r=.5*this.colorPickerDiv.clientWidth,g=i-r,s=n-o,a=Math.atan2(g,s),A=.98*Math.min(Math.sqrt(g*g+s*s),r),C=Math.cos(a)*A+o,I=Math.sin(a)*A+r;this.colorPickerSelector.style.top=C-.5*this.colorPickerSelector.clientHeight+"px",this.colorPickerSelector.style.left=I-.5*this.colorPickerSelector.clientWidth+"px";var l=a/(2*Math.PI);l=l<0?l+1:l;var c=A/this.r,h=eg(this.color.r,this.color.g,this.color.b);h.h=l,h.s=c;var u=og(h.h,h.s,h.v);u.a=this.color.a,this.color=u,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}}]),t}(),th=function(){function t(e,i,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;qa(this,t),this.parent=e,this.changedOptions=[],this.container=i,this.allowCreation=!1,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},Rr(this.options,this.defaultOptions),this.configureOptions=n,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new $c(o),this.wrapper=void 0}return tA(t,[{key:"setOptions",value:function(t){if(void 0!==t){this.popupHistory={},this._removePopup();var e=!0;if("string"==typeof t)this.options.filter=t;else if(t instanceof Array)this.options.filter=t.join();else if("object"===cr(t)){if(null==t)throw new TypeError("options cannot be null");void 0!==t.container&&(this.options.container=t.container),void 0!==wo(t)&&(this.options.filter=wo(t)),void 0!==t.showButton&&(this.options.showButton=t.showButton),void 0!==t.enabled&&(e=t.enabled)}else"boolean"==typeof t?(this.options.filter=!0,e=t):"function"==typeof t&&(this.options.filter=t,e=!0);!1===wo(this.options)&&(e=!1),this.options.enabled=e}this._clean()}},{key:"setModuleOptions",value:function(t){this.moduleOptions=t,!0===this.options.enabled&&(this._clean(),void 0!==this.options.container&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){this._clean(),this.changedOptions=[];var t=wo(this.options),e=0,i=!1;for(var n in this.configureOptions)this.configureOptions.hasOwnProperty(n)&&(this.allowCreation=!1,i=!1,"function"==typeof t?i=(i=t(n,[]))||this._handleObject(this.configureOptions[n],[n],!0):!0!==t&&-1===rr(t).call(t,n)||(i=!0),!1!==i&&(this.allowCreation=!0,e>0&&this._makeItem([]),this._makeHeader(n),this._handleObject(this.configureOptions[n],[n])),e++);this._makeButton(),this._push()}},{key:"_push",value:function(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(var t=0;t<this.domElements.length;t++)this.wrapper.appendChild(this.domElements[t]);this._showPopupIfNeeded()}},{key:"_clean",value:function(){for(var t=0;t<this.domElements.length;t++)this.wrapper.removeChild(this.domElements[t]);void 0!==this.wrapper&&(this.container.removeChild(this.wrapper),this.wrapper=void 0),this.domElements=[],this._removePopup()}},{key:"_getValue",value:function(t){for(var e=this.moduleOptions,i=0;i<t.length;i++){if(void 0===e[t[i]]){e=void 0;break}e=e[t[i]]}return e}},{key:"_makeItem",value:function(t){if(!0===this.allowCreation){var e=document.createElement("div");e.className="vis-configuration vis-config-item vis-config-s"+t.length;for(var i=arguments.length,n=new Array(i>1?i-1:0),o=1;o<i;o++)n[o-1]=arguments[o];return eo(n).call(n,(function(t){e.appendChild(t)})),this.domElements.push(e),this.domElements.length}return 0}},{key:"_makeHeader",value:function(t){var e=document.createElement("div");e.className="vis-configuration vis-config-header",e.innerHTML=t,this._makeItem([],e)}},{key:"_makeLabel",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=document.createElement("div");return n.className="vis-configuration vis-config-label vis-config-s"+e.length,n.innerHTML=!0===i?"<i><b>"+t+":</b></i>":t+":",n}},{key:"_makeDropdown",value:function(t,e,i){var n=document.createElement("select");n.className="vis-configuration vis-config-select";var o=0;void 0!==e&&-1!==rr(t).call(t,e)&&(o=rr(t).call(t,e));for(var r=0;r<t.length;r++){var g=document.createElement("option");g.value=t[r],r===o&&(g.selected="selected"),g.innerHTML=t[r],n.appendChild(g)}var s=this;n.onchange=function(){s._update(this.value,i)};var a=this._makeLabel(i[i.length-1],i);this._makeItem(i,a,n)}},{key:"_makeRange",value:function(t,e,i){var n=t[0],o=t[1],r=t[2],g=t[3],s=document.createElement("input");s.className="vis-configuration vis-config-range";try{s.type="range",s.min=o,s.max=r}catch(t){}s.step=g;var a="",A=0;if(void 0!==e){e<0&&1.2*e<o?(s.min=Math.ceil(1.2*e),A=s.min,a="range increased"):e/1.2<o&&(s.min=Math.ceil(e/1.2),A=s.min,a="range increased"),1.2*e>r&&1!==r&&(s.max=Math.ceil(1.2*e),A=s.max,a="range increased"),s.value=e}else s.value=n;var C=document.createElement("input");C.className="vis-configuration vis-config-rangeinput",C.value=s.value;var I=this;s.onchange=function(){C.value=this.value,I._update(Number(this.value),i)},s.oninput=function(){C.value=this.value};var l=this._makeLabel(i[i.length-1],i),c=this._makeItem(i,l,s,C);""!==a&&this.popupHistory[c]!==A&&(this.popupHistory[c]=A,this._setupPopup(a,c))}},{key:"_makeButton",value:function(){var t=this;if(!0===this.options.showButton){var e=document.createElement("div");e.className="vis-configuration vis-config-button",e.innerHTML="generate options",e.onclick=function(){t._printOptions()},e.onmouseover=function(){e.className="vis-configuration vis-config-button hover"},e.onmouseout=function(){e.className="vis-configuration vis-config-button"},this.optionsContainer=document.createElement("div"),this.optionsContainer.className="vis-configuration vis-config-option-container",this.domElements.push(this.optionsContainer),this.domElements.push(e)}}},{key:"_setupPopup",value:function(t,e){var i=this;if(!0===this.initialized&&!0===this.allowCreation&&this.popupCounter<this.popupLimit){var n=document.createElement("div");n.id="vis-configuration-popup",n.className="vis-configuration-popup",n.innerHTML=t,n.onclick=function(){i._removePopup()},this.popupCounter+=1,this.popupDiv={html:n,index:e}}}},{key:"_removePopup",value:function(){void 0!==this.popupDiv.html&&(this.popupDiv.html.parentNode.removeChild(this.popupDiv.html),clearTimeout(this.popupDiv.hideTimeout),clearTimeout(this.popupDiv.deleteTimeout),this.popupDiv={})}},{key:"_showPopupIfNeeded",value:function(){var t=this;if(void 0!==this.popupDiv.html){var e=this.domElements[this.popupDiv.index].getBoundingClientRect();this.popupDiv.html.style.left=e.left+"px",this.popupDiv.html.style.top=e.top-30+"px",document.body.appendChild(this.popupDiv.html),this.popupDiv.hideTimeout=sA((function(){t.popupDiv.html.style.opacity=0}),1500),this.popupDiv.deleteTimeout=sA((function(){t._removePopup()}),1800)}}},{key:"_makeCheckbox",value:function(t,e,i){var n=document.createElement("input");n.type="checkbox",n.className="vis-configuration vis-config-checkbox",n.checked=t,void 0!==e&&(n.checked=e,e!==t&&("object"===cr(t)?e!==t.enabled&&this.changedOptions.push({path:i,value:e}):this.changedOptions.push({path:i,value:e})));var o=this;n.onchange=function(){o._update(this.checked,i)};var r=this._makeLabel(i[i.length-1],i);this._makeItem(i,r,n)}},{key:"_makeTextInput",value:function(t,e,i){var n=document.createElement("input");n.type="text",n.className="vis-configuration vis-config-text",n.value=e,e!==t&&this.changedOptions.push({path:i,value:e});var o=this;n.onchange=function(){o._update(this.value,i)};var r=this._makeLabel(i[i.length-1],i);this._makeItem(i,r,n)}},{key:"_makeColorField",value:function(t,e,i){var n=this,o=t[1],r=document.createElement("div");"none"!==(e=void 0===e?o:e)?(r.className="vis-configuration vis-config-colorBlock",r.style.backgroundColor=e):r.className="vis-configuration vis-config-colorBlock none",e=void 0===e?o:e,r.onclick=function(){n._showColorPicker(e,r,i)};var g=this._makeLabel(i[i.length-1],i);this._makeItem(i,g,r)}},{key:"_showColorPicker",value:function(t,e,i){var n=this;e.onclick=function(){},this.colorPicker.insertTo(e),this.colorPicker.show(),this.colorPicker.setColor(t),this.colorPicker.setUpdateCallback((function(t){var o="rgba("+t.r+","+t.g+","+t.b+","+t.a+")";e.style.backgroundColor=o,n._update(o,i)})),this.colorPicker.setCloseCallback((function(){e.onclick=function(){n._showColorPicker(t,e,i)}}))}},{key:"_handleObject",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=!1,o=wo(this.options),r=!1;for(var g in t)if(t.hasOwnProperty(g)){n=!0;var s=t[g],a=Lr(e,g);if("function"==typeof o&&!1===(n=o(g,e))&&!(s instanceof Array)&&"string"!=typeof s&&"boolean"!=typeof s&&s instanceof Object&&(this.allowCreation=!1,n=this._handleObject(s,a,!0),this.allowCreation=!1===i),!1!==n){r=!0;var A=this._getValue(a);if(s instanceof Array)this._handleArray(s,A,a);else if("string"==typeof s)this._makeTextInput(s,A,a);else if("boolean"==typeof s)this._makeCheckbox(s,A,a);else if(s instanceof Object){var C=!0;if(-1!==rr(e).call(e,"physics")&&this.moduleOptions.physics.solver!==g&&"wind"!==g&&(C=!1),!0===C)if(void 0!==s.enabled){var I=Lr(a,"enabled"),l=this._getValue(I);if(!0===l){var c=this._makeLabel(g,a,!0);this._makeItem(a,c),r=this._handleObject(s,a)||r}else this._makeCheckbox(s,l,a)}else{var h=this._makeLabel(g,a,!0);this._makeItem(a,h),r=this._handleObject(s,a)||r}}else console.error("dont know how to handle",s,g,a)}}return r}},{key:"_handleArray",value:function(t,e,i){"string"==typeof t[0]&&"color"===t[0]?(this._makeColorField(t,e,i),t[1]!==e&&this.changedOptions.push({path:i,value:e})):"string"==typeof t[0]?(this._makeDropdown(t,e,i),t[0]!==e&&this.changedOptions.push({path:i,value:e})):"number"==typeof t[0]&&(this._makeRange(t,e,i),t[0]!==e&&this.changedOptions.push({path:i,value:Number(e)}))}},{key:"_update",value:function(t,e){var i=this._constructOptions(t,e);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",i),this.initialized=!0,this.parent.setOptions(i)}},{key:"_constructOptions",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=i;t="false"!==(t="true"===t||t)&&t;for(var o=0;o<e.length;o++)"global"!==e[o]&&(void 0===n[e[o]]&&(n[e[o]]={}),o!==e.length-1?n=n[e[o]]:n[e[o]]=t);return i}},{key:"_printOptions",value:function(){var t=this.getOptions();this.optionsContainer.innerHTML="<pre>var options = "+SA(t,null,2)+"</pre>"}},{key:"getOptions",value:function(){for(var t={},e=0;e<this.changedOptions.length;e++)this._constructOptions(this.changedOptions[e].value,this.changedOptions[e].path,t);return t}}]),t}(),eh="string",ih="boolean",nh="number",oh="object",rh=["arrow","bar","box","circle","crow","curve","diamond","image","inv_curve","inv_triangle","triangle","vee"],gh={configure:{enabled:{boolean:ih},filter:{boolean:ih,string:eh,array:"array",function:"function"},container:{dom:"dom"},showButton:{boolean:ih},__type__:{object:oh,boolean:ih,string:eh,array:"array",function:"function"}},edges:{arrows:{to:{enabled:{boolean:ih},scaleFactor:{number:nh},type:{string:rh},imageHeight:{number:nh},imageWidth:{number:nh},src:{string:eh},__type__:{object:oh,boolean:ih}},middle:{enabled:{boolean:ih},scaleFactor:{number:nh},type:{string:rh},imageWidth:{number:nh},imageHeight:{number:nh},src:{string:eh},__type__:{object:oh,boolean:ih}},from:{enabled:{boolean:ih},scaleFactor:{number:nh},type:{string:rh},imageWidth:{number:nh},imageHeight:{number:nh},src:{string:eh},__type__:{object:oh,boolean:ih}},__type__:{string:["from","to","middle"],object:oh}},arrowStrikethrough:{boolean:ih},background:{enabled:{boolean:ih},color:{string:eh},size:{number:nh},dashes:{boolean:ih,array:"array"},__type__:{object:oh,boolean:ih}},chosen:{label:{boolean:ih,function:"function"},edge:{boolean:ih,function:"function"},__type__:{object:oh,boolean:ih}},color:{color:{string:eh},highlight:{string:eh},hover:{string:eh},inherit:{string:["from","to","both"],boolean:ih},opacity:{number:nh},__type__:{object:oh,string:eh}},dashes:{boolean:ih,array:"array"},font:{color:{string:eh},size:{number:nh},face:{string:eh},background:{string:eh},strokeWidth:{number:nh},strokeColor:{string:eh},align:{string:["horizontal","top","middle","bottom"]},vadjust:{number:nh},multi:{boolean:ih,string:eh},bold:{color:{string:eh},size:{number:nh},face:{string:eh},mod:{string:eh},vadjust:{number:nh},__type__:{object:oh,string:eh}},boldital:{color:{string:eh},size:{number:nh},face:{string:eh},mod:{string:eh},vadjust:{number:nh},__type__:{object:oh,string:eh}},ital:{color:{string:eh},size:{number:nh},face:{string:eh},mod:{string:eh},vadjust:{number:nh},__type__:{object:oh,string:eh}},mono:{color:{string:eh},size:{number:nh},face:{string:eh},mod:{string:eh},vadjust:{number:nh},__type__:{object:oh,string:eh}},__type__:{object:oh,string:eh}},hidden:{boolean:ih},hoverWidth:{function:"function",number:nh},label:{string:eh,undefined:"undefined"},labelHighlightBold:{boolean:ih},length:{number:nh,undefined:"undefined"},physics:{boolean:ih},scaling:{min:{number:nh},max:{number:nh},label:{enabled:{boolean:ih},min:{number:nh},max:{number:nh},maxVisible:{number:nh},drawThreshold:{number:nh},__type__:{object:oh,boolean:ih}},customScalingFunction:{function:"function"},__type__:{object:oh}},selectionWidth:{function:"function",number:nh},selfReferenceSize:{number:nh},selfReference:{size:{number:nh},angle:{number:nh},renderBehindTheNode:{boolean:ih},__type__:{object:oh}},shadow:{enabled:{boolean:ih},color:{string:eh},size:{number:nh},x:{number:nh},y:{number:nh},__type__:{object:oh,boolean:ih}},smooth:{enabled:{boolean:ih},type:{string:["dynamic","continuous","discrete","diagonalCross","straightCross","horizontal","vertical","curvedCW","curvedCCW","cubicBezier"]},roundness:{number:nh},forceDirection:{string:["horizontal","vertical","none"],boolean:ih},__type__:{object:oh,boolean:ih}},title:{string:eh,undefined:"undefined"},width:{number:nh},widthConstraint:{maximum:{number:nh},__type__:{object:oh,boolean:ih,number:nh}},value:{number:nh,undefined:"undefined"},__type__:{object:oh}},groups:{useDefaultGroups:{boolean:ih},__any__:"get from nodes, will be overwritten below",__type__:{object:oh}},interaction:{dragNodes:{boolean:ih},dragView:{boolean:ih},hideEdgesOnDrag:{boolean:ih},hideEdgesOnZoom:{boolean:ih},hideNodesOnDrag:{boolean:ih},hover:{boolean:ih},keyboard:{enabled:{boolean:ih},speed:{x:{number:nh},y:{number:nh},zoom:{number:nh},__type__:{object:oh}},bindToWindow:{boolean:ih},__type__:{object:oh,boolean:ih}},multiselect:{boolean:ih},navigationButtons:{boolean:ih},selectable:{boolean:ih},selectConnectedEdges:{boolean:ih},hoverConnectedEdges:{boolean:ih},tooltipDelay:{number:nh},zoomView:{boolean:ih},zoomSpeed:{number:nh},__type__:{object:oh}},layout:{randomSeed:{undefined:"undefined",number:nh},improvedLayout:{boolean:ih},clusterThreshold:{number:nh},hierarchical:{enabled:{boolean:ih},levelSeparation:{number:nh},nodeSpacing:{number:nh},treeSpacing:{number:nh},blockShifting:{boolean:ih},edgeMinimization:{boolean:ih},parentCentralization:{boolean:ih},direction:{string:["UD","DU","LR","RL"]},sortMethod:{string:["hubsize","directed"]},shakeTowards:{string:["leaves","roots"]},__type__:{object:oh,boolean:ih}},__type__:{object:oh}},manipulation:{enabled:{boolean:ih},initiallyActive:{boolean:ih},addNode:{boolean:ih,function:"function"},addEdge:{boolean:ih,function:"function"},editNode:{function:"function"},editEdge:{editWithoutDrag:{function:"function"},__type__:{object:oh,boolean:ih,function:"function"}},deleteNode:{boolean:ih,function:"function"},deleteEdge:{boolean:ih,function:"function"},controlNodeStyle:"get from nodes, will be overwritten below",__type__:{object:oh,boolean:ih}},nodes:{borderWidth:{number:nh},borderWidthSelected:{number:nh,undefined:"undefined"},brokenImage:{string:eh,undefined:"undefined"},chosen:{label:{boolean:ih,function:"function"},node:{boolean:ih,function:"function"},__type__:{object:oh,boolean:ih}},color:{border:{string:eh},background:{string:eh},highlight:{border:{string:eh},background:{string:eh},__type__:{object:oh,string:eh}},hover:{border:{string:eh},background:{string:eh},__type__:{object:oh,string:eh}},__type__:{object:oh,string:eh}},opacity:{number:nh,undefined:"undefined"},fixed:{x:{boolean:ih},y:{boolean:ih},__type__:{object:oh,boolean:ih}},font:{align:{string:eh},color:{string:eh},size:{number:nh},face:{string:eh},background:{string:eh},strokeWidth:{number:nh},strokeColor:{string:eh},vadjust:{number:nh},multi:{boolean:ih,string:eh},bold:{color:{string:eh},size:{number:nh},face:{string:eh},mod:{string:eh},vadjust:{number:nh},__type__:{object:oh,string:eh}},boldital:{color:{string:eh},size:{number:nh},face:{string:eh},mod:{string:eh},vadjust:{number:nh},__type__:{object:oh,string:eh}},ital:{color:{string:eh},size:{number:nh},face:{string:eh},mod:{string:eh},vadjust:{number:nh},__type__:{object:oh,string:eh}},mono:{color:{string:eh},size:{number:nh},face:{string:eh},mod:{string:eh},vadjust:{number:nh},__type__:{object:oh,string:eh}},__type__:{object:oh,string:eh}},group:{string:eh,number:nh,undefined:"undefined"},heightConstraint:{minimum:{number:nh},valign:{string:eh},__type__:{object:oh,boolean:ih,number:nh}},hidden:{boolean:ih},icon:{face:{string:eh},code:{string:eh},size:{number:nh},color:{string:eh},weight:{string:eh,number:nh},__type__:{object:oh}},id:{string:eh,number:nh},image:{selected:{string:eh,undefined:"undefined"},unselected:{string:eh,undefined:"undefined"},__type__:{object:oh,string:eh}},imagePadding:{top:{number:nh},right:{number:nh},bottom:{number:nh},left:{number:nh},__type__:{object:oh,number:nh}},label:{string:eh,undefined:"undefined"},labelHighlightBold:{boolean:ih},level:{number:nh,undefined:"undefined"},margin:{top:{number:nh},right:{number:nh},bottom:{number:nh},left:{number:nh},__type__:{object:oh,number:nh}},mass:{number:nh},physics:{boolean:ih},scaling:{min:{number:nh},max:{number:nh},label:{enabled:{boolean:ih},min:{number:nh},max:{number:nh},maxVisible:{number:nh},drawThreshold:{number:nh},__type__:{object:oh,boolean:ih}},customScalingFunction:{function:"function"},__type__:{object:oh}},shadow:{enabled:{boolean:ih},color:{string:eh},size:{number:nh},x:{number:nh},y:{number:nh},__type__:{object:oh,boolean:ih}},shape:{string:["ellipse","circle","database","box","text","image","circularImage","diamond","dot","star","triangle","triangleDown","square","icon","hexagon"]},shapeProperties:{borderDashes:{boolean:ih,array:"array"},borderRadius:{number:nh},interpolation:{boolean:ih},useImageSize:{boolean:ih},useBorderWithImage:{boolean:ih},__type__:{object:oh}},size:{number:nh},title:{string:eh,dom:"dom",undefined:"undefined"},value:{number:nh,undefined:"undefined"},widthConstraint:{minimum:{number:nh},maximum:{number:nh},__type__:{object:oh,boolean:ih,number:nh}},x:{number:nh},y:{number:nh},__type__:{object:oh}},physics:{enabled:{boolean:ih},barnesHut:{theta:{number:nh},gravitationalConstant:{number:nh},centralGravity:{number:nh},springLength:{number:nh},springConstant:{number:nh},damping:{number:nh},avoidOverlap:{number:nh},__type__:{object:oh}},forceAtlas2Based:{theta:{number:nh},gravitationalConstant:{number:nh},centralGravity:{number:nh},springLength:{number:nh},springConstant:{number:nh},damping:{number:nh},avoidOverlap:{number:nh},__type__:{object:oh}},repulsion:{centralGravity:{number:nh},springLength:{number:nh},springConstant:{number:nh},nodeDistance:{number:nh},damping:{number:nh},__type__:{object:oh}},hierarchicalRepulsion:{centralGravity:{number:nh},springLength:{number:nh},springConstant:{number:nh},nodeDistance:{number:nh},damping:{number:nh},avoidOverlap:{number:nh},__type__:{object:oh}},maxVelocity:{number:nh},minVelocity:{number:nh},solver:{string:["barnesHut","repulsion","hierarchicalRepulsion","forceAtlas2Based"]},stabilization:{enabled:{boolean:ih},iterations:{number:nh},updateInterval:{number:nh},onlyDynamicEdges:{boolean:ih},fit:{boolean:ih},__type__:{object:oh,boolean:ih}},timestep:{number:nh},adaptiveTimestep:{boolean:ih},wind:{x:{number:nh},y:{number:nh},__type__:{object:oh}},__type__:{object:oh,boolean:ih}},autoResize:{boolean:ih},clickToUse:{boolean:ih},locale:{string:eh},locales:{__any__:{any:"any"},__type__:{object:oh}},height:{string:eh},width:{string:eh},__type__:{object:oh}};gh.groups.__any__=gh.nodes,gh.manipulation.controlNodeStyle=gh.nodes;var sh={nodes:{borderWidth:[1,0,10,1],borderWidthSelected:[2,0,10,1],color:{border:["color","#2B7CE9"],background:["color","#97C2FC"],highlight:{border:["color","#2B7CE9"],background:["color","#D2E5FF"]},hover:{border:["color","#2B7CE9"],background:["color","#D2E5FF"]}},opacity:[0,0,1,.1],fixed:{x:!1,y:!1},font:{color:["color","#343434"],size:[14,0,100,1],face:["arial","verdana","tahoma"],background:["color","none"],strokeWidth:[0,0,50,1],strokeColor:["color","#ffffff"]},hidden:!1,labelHighlightBold:!0,physics:!0,scaling:{min:[10,0,200,1],max:[30,0,200,1],label:{enabled:!1,min:[14,0,200,1],max:[30,0,200,1],maxVisible:[30,0,200,1],drawThreshold:[5,0,20,1]}},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:[10,0,20,1],x:[5,-30,30,1],y:[5,-30,30,1]},shape:["ellipse","box","circle","database","diamond","dot","square","star","text","triangle","triangleDown","hexagon"],shapeProperties:{borderDashes:!1,borderRadius:[6,0,20,1],interpolation:!0,useImageSize:!1},size:[25,0,200,1]},edges:{arrows:{to:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"},middle:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"},from:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"}},arrowStrikethrough:!0,color:{color:["color","#848484"],highlight:["color","#848484"],hover:["color","#848484"],inherit:["from","to","both",!0,!1],opacity:[1,0,1,.05]},dashes:!1,font:{color:["color","#343434"],size:[14,0,100,1],face:["arial","verdana","tahoma"],background:["color","none"],strokeWidth:[2,0,50,1],strokeColor:["color","#ffffff"],align:["horizontal","top","middle","bottom"]},hidden:!1,hoverWidth:[1.5,0,5,.1],labelHighlightBold:!0,physics:!0,scaling:{min:[1,0,100,1],max:[15,0,100,1],label:{enabled:!0,min:[14,0,200,1],max:[30,0,200,1],maxVisible:[30,0,200,1],drawThreshold:[5,0,20,1]}},selectionWidth:[1.5,0,5,.1],selfReferenceSize:[20,0,200,1],selfReference:{size:[20,0,200,1],angle:[Math.PI/2,-6*Math.PI,6*Math.PI,Math.PI/8],renderBehindTheNode:!0},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:[10,0,20,1],x:[5,-30,30,1],y:[5,-30,30,1]},smooth:{enabled:!0,type:["dynamic","continuous","discrete","diagonalCross","straightCross","horizontal","vertical","curvedCW","curvedCCW","cubicBezier"],forceDirection:["horizontal","vertical","none"],roundness:[.5,0,1,.05]},width:[1,0,30,1]},layout:{hierarchical:{enabled:!1,levelSeparation:[150,20,500,5],nodeSpacing:[100,20,500,5],treeSpacing:[200,20,500,5],blockShifting:!0,edgeMinimization:!0,parentCentralization:!0,direction:["UD","DU","LR","RL"],sortMethod:["hubsize","directed"],shakeTowards:["leaves","roots"]}},interaction:{dragNodes:!0,dragView:!0,hideEdgesOnDrag:!1,hideEdgesOnZoom:!1,hideNodesOnDrag:!1,hover:!1,keyboard:{enabled:!1,speed:{x:[10,0,40,1],y:[10,0,40,1],zoom:[.02,0,.1,.005]},bindToWindow:!0},multiselect:!1,navigationButtons:!1,selectable:!0,selectConnectedEdges:!0,hoverConnectedEdges:!0,tooltipDelay:[300,0,1e3,25],zoomView:!0,zoomSpeed:[1,.1,2,.1]},manipulation:{enabled:!1,initiallyActive:!1},physics:{enabled:!0,barnesHut:{theta:[.5,.1,1,.05],gravitationalConstant:[-2e3,-3e4,0,50],centralGravity:[.3,0,10,.05],springLength:[95,0,500,5],springConstant:[.04,0,1.2,.005],damping:[.09,0,1,.01],avoidOverlap:[0,0,1,.01]},forceAtlas2Based:{theta:[.5,.1,1,.05],gravitationalConstant:[-50,-500,0,1],centralGravity:[.01,0,1,.005],springLength:[95,0,500,5],springConstant:[.08,0,1.2,.005],damping:[.4,0,1,.01],avoidOverlap:[0,0,1,.01]},repulsion:{centralGravity:[.2,0,10,.05],springLength:[200,0,500,5],springConstant:[.05,0,1.2,.005],nodeDistance:[100,0,500,5],damping:[.09,0,1,.01]},hierarchicalRepulsion:{centralGravity:[.2,0,10,.05],springLength:[100,0,500,5],springConstant:[.01,0,1.2,.005],nodeDistance:[120,0,500,5],damping:[.09,0,1,.01],avoidOverlap:[0,0,1,.01]},maxVelocity:[50,0,150,1],minVelocity:[.1,.01,.5,.01],solver:["barnesHut","forceAtlas2Based","repulsion","hierarchicalRepulsion"],timestep:[.5,.01,1,.01],wind:{x:[0,-10,10,.1],y:[0,-10,10,.1]}}},ah=Object.freeze({__proto__:null,allOptions:gh,configureOptions:sh}),Ah=function(){function t(){qa(this,t)}return tA(t,[{key:"getDistances",value:function(t,e,i){for(var n={},o=t.edges,r=0;r<e.length;r++){var g={};n[e[r]]=g;for(var s=0;s<e.length;s++)g[e[s]]=r==s?0:1e9}for(var a=0;a<i.length;a++){var A=o[i[a]];!0===A.connected&&void 0!==n[A.fromId]&&void 0!==n[A.toId]&&(n[A.fromId][A.toId]=1,n[A.toId][A.fromId]=1)}for(var C=e.length,I=0;I<C;I++)for(var l=e[I],c=n[l],h=0;h<C-1;h++)for(var u=e[h],d=n[u],p=h+1;p<C;p++){var f=e[p],v=n[f],m=Math.min(d[f],d[l]+c[f]);d[f]=m,v[u]=m}return n}}]),t}(),Ch=function(){function t(e,i,n){qa(this,t),this.body=e,this.springLength=i,this.springConstant=n,this.distanceSolver=new Ah}return tA(t,[{key:"setOptions",value:function(t){t&&(t.springLength&&(this.springLength=t.springLength),t.springConstant&&(this.springConstant=t.springConstant))}},{key:"solve",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=this.distanceSolver.getDistances(this.body,t,e);this._createL_matrix(n),this._createK_matrix(n),this._createE_matrix();for(var o=.01,r=1,g=0,s=Math.max(1e3,Math.min(10*this.body.nodeIndices.length,6e3)),a=5,A=1e9,C=0,I=0,l=0,c=0,h=0;A>o&&g<s;){g+=1;var u=this._getHighestEnergyNode(i),d=pr(u,4);for(C=d[0],A=d[1],I=d[2],l=d[3],c=A,h=0;c>r&&h<a;){h+=1,this._moveNode(C,I,l);var p=this._getEnergy(C),f=pr(p,3);c=f[0],I=f[1],l=f[2]}}}},{key:"_getHighestEnergyNode",value:function(t){for(var e=this.body.nodeIndices,i=this.body.nodes,n=0,o=e[0],r=0,g=0,s=0;s<e.length;s++){var a=e[s];if(!1===i[a].predefinedPosition||!0===i[a].isCluster&&!0===t||!0===i[a].options.fixed.x||!0===i[a].options.fixed.y){var A=this._getEnergy(a),C=pr(A,3),I=C[0],l=C[1],c=C[2];n<I&&(n=I,o=a,r=l,g=c)}}return[o,n,r,g]}},{key:"_getEnergy",value:function(t){var e=pr(this.E_sums[t],2),i=e[0],n=e[1];return[Math.sqrt(Math.pow(i,2)+Math.pow(n,2)),i,n]}},{key:"_moveNode",value:function(t,e,i){for(var n=this.body.nodeIndices,o=this.body.nodes,r=0,g=0,s=0,a=o[t].x,A=o[t].y,C=this.K_matrix[t],I=this.L_matrix[t],l=0;l<n.length;l++){var c=n[l];if(c!==t){var h=o[c].x,u=o[c].y,d=C[c],p=I[c],f=1/Math.pow(Math.pow(a-h,2)+Math.pow(A-u,2),1.5);r+=d*(1-p*Math.pow(A-u,2)*f),g+=d*(p*(a-h)*(A-u)*f),s+=d*(1-p*Math.pow(a-h,2)*f)}}var v=(e/r+i/g)/(g/r-s/g),m=-(g*v+e)/r;o[t].x+=m,o[t].y+=v,this._updateE_matrix(t)}},{key:"_createL_matrix",value:function(t){var e=this.body.nodeIndices,i=this.springLength;this.L_matrix=[];for(var n=0;n<e.length;n++){this.L_matrix[e[n]]={};for(var o=0;o<e.length;o++)this.L_matrix[e[n]][e[o]]=i*t[e[n]][e[o]]}}},{key:"_createK_matrix",value:function(t){var e=this.body.nodeIndices,i=this.springConstant;this.K_matrix=[];for(var n=0;n<e.length;n++){this.K_matrix[e[n]]={};for(var o=0;o<e.length;o++)this.K_matrix[e[n]][e[o]]=i*Math.pow(t[e[n]][e[o]],-2)}}},{key:"_createE_matrix",value:function(){var t=this.body.nodeIndices,e=this.body.nodes;this.E_matrix={},this.E_sums={};for(var i=0;i<t.length;i++)this.E_matrix[t[i]]=[];for(var n=0;n<t.length;n++){for(var o=t[n],r=e[o].x,g=e[o].y,s=0,a=0,A=n;A<t.length;A++){var C=t[A];if(C!==o){var I=e[C].x,l=e[C].y,c=1/Math.sqrt(Math.pow(r-I,2)+Math.pow(g-l,2));this.E_matrix[o][A]=[this.K_matrix[o][C]*(r-I-this.L_matrix[o][C]*(r-I)*c),this.K_matrix[o][C]*(g-l-this.L_matrix[o][C]*(g-l)*c)],this.E_matrix[C][n]=this.E_matrix[o][A],s+=this.E_matrix[o][A][0],a+=this.E_matrix[o][A][1]}}this.E_sums[o]=[s,a]}}},{key:"_updateE_matrix",value:function(t){for(var e=this.body.nodeIndices,i=this.body.nodes,n=this.E_matrix[t],o=this.K_matrix[t],r=this.L_matrix[t],g=i[t].x,s=i[t].y,a=0,A=0,C=0;C<e.length;C++){var I=e[C];if(I!==t){var l=n[C],c=l[0],h=l[1],u=i[I].x,d=i[I].y,p=1/Math.sqrt(Math.pow(g-u,2)+Math.pow(s-d,2)),f=o[I]*(g-u-r[I]*(g-u)*p),v=o[I]*(s-d-r[I]*(s-d)*p);n[C]=[f,v],a+=f,A+=v;var m=this.E_sums[I];m[0]+=f-c,m[1]+=v-h}}this.E_sums[t]=[a,A]}}]),t}();function Ih(t,e,i){var n,o,r,g,s=this;if(!(this instanceof Ih))throw new SyntaxError("Constructor must be called with the new operator");this.options={},this.defaultOptions={locale:"en",locales:Ka,clickToUse:!1},Rr(this.options,this.defaultOptions),this.body={container:t,nodes:{},nodeIndices:[],edges:{},edgeIndices:[],emitter:{on:et(n=this.on).call(n,this),off:et(o=this.off).call(o,this),emit:et(r=this.emit).call(r,this),once:et(g=this.once).call(g,this)},eventListeners:{onTap:function(){},onTouch:function(){},onDoubleTap:function(){},onHold:function(){},onDragStart:function(){},onDrag:function(){},onDragEnd:function(){},onMouseWheel:function(){},onPinch:function(){},onMouseMove:function(){},onRelease:function(){},onContext:function(){}},data:{nodes:null,edges:null},functions:{createNode:function(){},createEdge:function(){},getPointer:function(){}},modules:{},view:{scale:1,translation:{x:0,y:0}}},this.bindEventListeners(),this.images=new iA((function(){return s.body.emitter.emit("_requestRedraw")})),this.groups=new nA,this.canvas=new _c(this.body),this.selectionHandler=new Nc(this.body,this.canvas),this.interactionHandler=new Tc(this.body,this.canvas,this.selectionHandler),this.view=new Dc(this.body,this.canvas),this.renderer=new wc(this.body,this.canvas),this.physics=new cc(this.body),this.layoutEngine=new Jc(this.body),this.clustering=new bc(this.body),this.manipulation=new Kc(this.body,this.canvas,this.selectionHandler,this.interactionHandler),this.nodesHandler=new hl(this.body,this.images,this.groups,this.layoutEngine),this.edgesHandler=new ic(this.body,this.images,this.groups),this.body.modules.kamadaKawai=new Ch(this.body,150,.05),this.body.modules.clustering=this.clustering,this.canvas._create(),this.setOptions(i),this.setData(e)}at(Ih.prototype),Ih.prototype.setOptions=function(t){var e=this;if(null===t&&(t=void 0),void 0!==t){!0===al.validate(t,gh)&&console.log("%cErrors have been found in the supplied options object.",sl);if(zr(["locale","locales","clickToUse"],this.options,t),t=this.layoutEngine.setOptions(t.layout,t),this.canvas.setOptions(t),this.groups.setOptions(t.groups),this.nodesHandler.setOptions(t.nodes),this.edgesHandler.setOptions(t.edges),this.physics.setOptions(t.physics),this.manipulation.setOptions(t.manipulation,t,this.options),this.interactionHandler.setOptions(t.interaction),this.renderer.setOptions(t.interaction),this.selectionHandler.setOptions(t.interaction),void 0!==t.groups&&this.body.emitter.emit("refreshNodes"),"configure"in t&&(this.configurator||(this.configurator=new th(this,this.body.container,sh,this.canvas.pixelRatio)),this.configurator.setOptions(t.configure)),this.configurator&&!0===this.configurator.options.enabled){var i={nodes:{},edges:{},layout:{},interaction:{},manipulation:{},physics:{},global:{}};Gr(i.nodes,this.nodesHandler.options),Gr(i.edges,this.edgesHandler.options),Gr(i.layout,this.layoutEngine.options),Gr(i.interaction,this.selectionHandler.options),Gr(i.interaction,this.renderer.options),Gr(i.interaction,this.interactionHandler.options),Gr(i.manipulation,this.manipulation.options),Gr(i.physics,this.physics.options),Gr(i.global,this.canvas.options),Gr(i.global,this.options),this.configurator.setModuleOptions(i)}void 0!==t.clickToUse?!0===t.clickToUse?void 0===this.activator&&(this.activator=new Ja(this.canvas.frame),this.activator.on("change",(function(){e.body.emitter.emit("activate")}))):(void 0!==this.activator&&(this.activator.destroy(),delete this.activator),this.body.emitter.emit("activate")):this.body.emitter.emit("activate"),this.canvas.setSize(),this.body.emitter.emit("startSimulation")}},Ih.prototype._updateVisibleIndices=function(){var t=this.body.nodes,e=this.body.edges;for(var i in this.body.nodeIndices=[],this.body.edgeIndices=[],t)t.hasOwnProperty(i)&&(this.clustering._isClusteredNode(i)||!1!==t[i].options.hidden||this.body.nodeIndices.push(t[i].id));for(var n in e)if(e.hasOwnProperty(n)){var o=e[n],r=t[o.fromId],g=t[o.toId],s=void 0!==r&&void 0!==g;!this.clustering._isClusteredEdge(n)&&!1===o.options.hidden&&s&&!1===r.options.hidden&&!1===g.options.hidden&&this.body.edgeIndices.push(o.id)}},Ih.prototype.bindEventListeners=function(){var t=this;this.body.emitter.on("_dataChanged",(function(){t.edgesHandler._updateState(),t.body.emitter.emit("_dataUpdated")})),this.body.emitter.on("_dataUpdated",(function(){t.clustering._updateState(),t._updateVisibleIndices(),t._updateValueRange(t.body.nodes),t._updateValueRange(t.body.edges),t.body.emitter.emit("startSimulation"),t.body.emitter.emit("_requestRedraw")}))},Ih.prototype.setData=function(t){if(this.body.emitter.emit("resetPhysics"),this.body.emitter.emit("_resetData"),this.selectionHandler.unselectAll(),t&&t.dot&&(t.nodes||t.edges))throw new SyntaxError('Data must contain either parameter "dot" or  parameter pair "nodes" and "edges", but not both.');if(this.setOptions(t&&t.options),t&&t.dot){console.log("The dot property has been deprecated. Please use the static convertDot method to convert DOT into vis.network format and use the normal data format with nodes and edges. This converter is used like this: var data = vis.network.convertDot(dotString);");var e=ls.DOTToGraph(t.dot);this.setData(e)}else if(t&&t.gephi){console.log("The gephi property has been deprecated. Please use the static convertGephi method to convert gephi into vis.network format and use the normal data format with nodes and edges. This converter is used like this: var data = vis.network.convertGephi(gephiJson);");var i=hs(t.gephi);this.setData(i)}else this.nodesHandler.setData(t&&t.nodes,!0),this.edgesHandler.setData(t&&t.edges,!0),this.body.emitter.emit("_dataChanged"),this.body.emitter.emit("_dataLoaded"),this.body.emitter.emit("initPhysics")},Ih.prototype.destroy=function(){for(var t in this.body.emitter.emit("destroy"),this.body.emitter.off(),this.off(),delete this.groups,delete this.canvas,delete this.selectionHandler,delete this.interactionHandler,delete this.view,delete this.renderer,delete this.physics,delete this.layoutEngine,delete this.clustering,delete this.manipulation,delete this.nodesHandler,delete this.edgesHandler,delete this.configurator,delete this.images,this.body.nodes)this.body.nodes.hasOwnProperty(t)&&delete this.body.nodes[t];for(var e in this.body.edges)this.body.edges.hasOwnProperty(e)&&delete this.body.edges[e];Er(this.body.container)},Ih.prototype._updateValueRange=function(t){var e,i=void 0,n=void 0,o=0;for(e in t)if(t.hasOwnProperty(e)){var r=t[e].getValue();void 0!==r&&(i=void 0===i?r:Math.min(r,i),n=void 0===n?r:Math.max(r,n),o+=r)}if(void 0!==i&&void 0!==n)for(e in t)t.hasOwnProperty(e)&&t[e].setValueRange(i,n,o)},Ih.prototype.isActive=function(){return!this.activator||this.activator.active},Ih.prototype.setSize=function(){return this.canvas.setSize.apply(this.canvas,arguments)},Ih.prototype.canvasToDOM=function(){return this.canvas.canvasToDOM.apply(this.canvas,arguments)},Ih.prototype.DOMtoCanvas=function(){return this.canvas.DOMtoCanvas.apply(this.canvas,arguments)},Ih.prototype.findNode=function(){return this.clustering.findNode.apply(this.clustering,arguments)},Ih.prototype.isCluster=function(){return this.clustering.isCluster.apply(this.clustering,arguments)},Ih.prototype.openCluster=function(){return this.clustering.openCluster.apply(this.clustering,arguments)},Ih.prototype.cluster=function(){return this.clustering.cluster.apply(this.clustering,arguments)},Ih.prototype.getNodesInCluster=function(){return this.clustering.getNodesInCluster.apply(this.clustering,arguments)},Ih.prototype.clusterByConnection=function(){return this.clustering.clusterByConnection.apply(this.clustering,arguments)},Ih.prototype.clusterByHubsize=function(){return this.clustering.clusterByHubsize.apply(this.clustering,arguments)},Ih.prototype.updateClusteredNode=function(){return this.clustering.updateClusteredNode.apply(this.clustering,arguments)},Ih.prototype.getClusteredEdges=function(){return this.clustering.getClusteredEdges.apply(this.clustering,arguments)},Ih.prototype.getBaseEdge=function(){return this.clustering.getBaseEdge.apply(this.clustering,arguments)},Ih.prototype.getBaseEdges=function(){return this.clustering.getBaseEdges.apply(this.clustering,arguments)},Ih.prototype.updateEdge=function(){return this.clustering.updateEdge.apply(this.clustering,arguments)},Ih.prototype.clusterOutliers=function(){return this.clustering.clusterOutliers.apply(this.clustering,arguments)},Ih.prototype.getSeed=function(){return this.layoutEngine.getSeed.apply(this.layoutEngine,arguments)},Ih.prototype.enableEditMode=function(){return this.manipulation.enableEditMode.apply(this.manipulation,arguments)},Ih.prototype.disableEditMode=function(){return this.manipulation.disableEditMode.apply(this.manipulation,arguments)},Ih.prototype.addNodeMode=function(){return this.manipulation.addNodeMode.apply(this.manipulation,arguments)},Ih.prototype.editNode=function(){return this.manipulation.editNode.apply(this.manipulation,arguments)},Ih.prototype.editNodeMode=function(){return console.log("Deprecated: Please use editNode instead of editNodeMode."),this.manipulation.editNode.apply(this.manipulation,arguments)},Ih.prototype.addEdgeMode=function(){return this.manipulation.addEdgeMode.apply(this.manipulation,arguments)},Ih.prototype.editEdgeMode=function(){return this.manipulation.editEdgeMode.apply(this.manipulation,arguments)},Ih.prototype.deleteSelected=function(){return this.manipulation.deleteSelected.apply(this.manipulation,arguments)},Ih.prototype.getPositions=function(){return this.nodesHandler.getPositions.apply(this.nodesHandler,arguments)},Ih.prototype.getPosition=function(){return this.nodesHandler.getPosition.apply(this.nodesHandler,arguments)},Ih.prototype.storePositions=function(){return this.nodesHandler.storePositions.apply(this.nodesHandler,arguments)},Ih.prototype.moveNode=function(){return this.nodesHandler.moveNode.apply(this.nodesHandler,arguments)},Ih.prototype.getBoundingBox=function(){return this.nodesHandler.getBoundingBox.apply(this.nodesHandler,arguments)},Ih.prototype.getConnectedNodes=function(t){return void 0!==this.body.nodes[t]?this.nodesHandler.getConnectedNodes.apply(this.nodesHandler,arguments):this.edgesHandler.getConnectedNodes.apply(this.edgesHandler,arguments)},Ih.prototype.getConnectedEdges=function(){return this.nodesHandler.getConnectedEdges.apply(this.nodesHandler,arguments)},Ih.prototype.startSimulation=function(){return this.physics.startSimulation.apply(this.physics,arguments)},Ih.prototype.stopSimulation=function(){return this.physics.stopSimulation.apply(this.physics,arguments)},Ih.prototype.stabilize=function(){return this.physics.stabilize.apply(this.physics,arguments)},Ih.prototype.getSelection=function(){return this.selectionHandler.getSelection.apply(this.selectionHandler,arguments)},Ih.prototype.setSelection=function(){return this.selectionHandler.setSelection.apply(this.selectionHandler,arguments)},Ih.prototype.getSelectedNodes=function(){return this.selectionHandler.getSelectedNodes.apply(this.selectionHandler,arguments)},Ih.prototype.getSelectedEdges=function(){return this.selectionHandler.getSelectedEdges.apply(this.selectionHandler,arguments)},Ih.prototype.getNodeAt=function(){var t=this.selectionHandler.getNodeAt.apply(this.selectionHandler,arguments);return void 0!==t&&void 0!==t.id?t.id:t},Ih.prototype.getEdgeAt=function(){var t=this.selectionHandler.getEdgeAt.apply(this.selectionHandler,arguments);return void 0!==t&&void 0!==t.id?t.id:t},Ih.prototype.selectNodes=function(){return this.selectionHandler.selectNodes.apply(this.selectionHandler,arguments)},Ih.prototype.selectEdges=function(){return this.selectionHandler.selectEdges.apply(this.selectionHandler,arguments)},Ih.prototype.unselectAll=function(){this.selectionHandler.unselectAll.apply(this.selectionHandler,arguments),this.redraw()},Ih.prototype.redraw=function(){return this.renderer.redraw.apply(this.renderer,arguments)},Ih.prototype.getScale=function(){return this.view.getScale.apply(this.view,arguments)},Ih.prototype.getViewPosition=function(){return this.view.getViewPosition.apply(this.view,arguments)},Ih.prototype.fit=function(){return this.view.fit.apply(this.view,arguments)},Ih.prototype.moveTo=function(){return this.view.moveTo.apply(this.view,arguments)},Ih.prototype.focus=function(){return this.view.focus.apply(this.view,arguments)},Ih.prototype.releaseNode=function(){return this.view.releaseNode.apply(this.view,arguments)},Ih.prototype.getOptionsFromConfigurator=function(){var t={};return this.configurator&&(t=this.configurator.getOptions.apply(this.configurator)),t};var lh=Is}).call(this,i(2))},function(t,e){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"==typeof window&&(i=window)}t.exports=i},function(t,e,i){var n;
/*!
 * jQuery JavaScript Library v3.5.1
 * https://jquery.com/
 *
 * Includes Sizzle.js
 * https://sizzlejs.com/
 *
 * Copyright JS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2020-05-04T22:49Z
 */!function(e,i){"use strict";"object"==typeof t.exports?t.exports=e.document?i(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return i(t)}:i(e)}("undefined"!=typeof window?window:this,(function(i,o){"use strict";var r=[],g=Object.getPrototypeOf,s=r.slice,a=r.flat?function(t){return r.flat.call(t)}:function(t){return r.concat.apply([],t)},A=r.push,C=r.indexOf,I={},l=I.toString,c=I.hasOwnProperty,h=c.toString,u=h.call(Object),d={},p=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType},f=function(t){return null!=t&&t===t.window},v=i.document,m={type:!0,src:!0,nonce:!0,noModule:!0};function y(t,e,i){var n,o,r=(i=i||v).createElement("script");if(r.text=t,e)for(n in m)(o=e[n]||e.getAttribute&&e.getAttribute(n))&&r.setAttribute(n,o);i.head.appendChild(r).parentNode.removeChild(r)}function b(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?I[l.call(t)]||"object":typeof t}var w=function(t,e){return new w.fn.init(t,e)};function x(t){var e=!!t&&"length"in t&&t.length,i=b(t);return!p(t)&&!f(t)&&("array"===i||0===e||"number"==typeof e&&e>0&&e-1 in t)}w.fn=w.prototype={jquery:"3.5.1",constructor:w,length:0,toArray:function(){return s.call(this)},get:function(t){return null==t?s.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=w.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return w.each(this,t)},map:function(t){return this.pushStack(w.map(this,(function(e,i){return t.call(e,i,e)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(w.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(w.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,i=+t+(t<0?e:0);return this.pushStack(i>=0&&i<e?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:A,sort:r.sort,splice:r.splice},w.extend=w.fn.extend=function(){var t,e,i,n,o,r,g=arguments[0]||{},s=1,a=arguments.length,A=!1;for("boolean"==typeof g&&(A=g,g=arguments[s]||{},s++),"object"==typeof g||p(g)||(g={}),s===a&&(g=this,s--);s<a;s++)if(null!=(t=arguments[s]))for(e in t)n=t[e],"__proto__"!==e&&g!==n&&(A&&n&&(w.isPlainObject(n)||(o=Array.isArray(n)))?(i=g[e],r=o&&!Array.isArray(i)?[]:o||w.isPlainObject(i)?i:{},o=!1,g[e]=w.extend(A,r,n)):void 0!==n&&(g[e]=n));return g},w.extend({expando:"jQuery"+("3.5.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,i;return!(!t||"[object Object]"!==l.call(t))&&(!(e=g(t))||"function"==typeof(i=c.call(e,"constructor")&&e.constructor)&&h.call(i)===u)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,i){y(t,{nonce:e&&e.nonce},i)},each:function(t,e){var i,n=0;if(x(t))for(i=t.length;n<i&&!1!==e.call(t[n],n,t[n]);n++);else for(n in t)if(!1===e.call(t[n],n,t[n]))break;return t},makeArray:function(t,e){var i=e||[];return null!=t&&(x(Object(t))?w.merge(i,"string"==typeof t?[t]:t):A.call(i,t)),i},inArray:function(t,e,i){return null==e?-1:C.call(e,t,i)},merge:function(t,e){for(var i=+e.length,n=0,o=t.length;n<i;n++)t[o++]=e[n];return t.length=o,t},grep:function(t,e,i){for(var n=[],o=0,r=t.length,g=!i;o<r;o++)!e(t[o],o)!==g&&n.push(t[o]);return n},map:function(t,e,i){var n,o,r=0,g=[];if(x(t))for(n=t.length;r<n;r++)null!=(o=e(t[r],r,i))&&g.push(o);else for(r in t)null!=(o=e(t[r],r,i))&&g.push(o);return a(g)},guid:1,support:d}),"function"==typeof Symbol&&(w.fn[Symbol.iterator]=r[Symbol.iterator]),w.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){I["[object "+e+"]"]=e.toLowerCase()}));var k=
/*!
 * Sizzle CSS Selector Engine v2.3.5
 * https://sizzlejs.com/
 *
 * Copyright JS Foundation and other contributors
 * Released under the MIT license
 * https://js.foundation/
 *
 * Date: 2020-03-14
 */
function(t){var e,i,n,o,r,g,s,a,A,C,I,l,c,h,u,d,p,f,v,m="sizzle"+1*new Date,y=t.document,b=0,w=0,x=at(),k=at(),_=at(),D=at(),O=function(t,e){return t===e&&(I=!0),0},M={}.hasOwnProperty,T=[],N=T.pop,E=T.push,F=T.push,S=T.slice,j=function(t,e){for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i;return-1},B="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",R="[\\x20\\t\\r\\n\\f]",z="(?:\\\\[\\da-fA-F]{1,6}"+R+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Z="\\["+R+"*("+z+")(?:"+R+"*([*^$|!~]?=)"+R+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+z+"))|)"+R+"*\\]",G=":("+z+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+Z+")*)|.*)\\)|)",P=new RegExp(R+"+","g"),L=new RegExp("^"+R+"+|((?:^|[^\\\\])(?:\\\\.)*)"+R+"+$","g"),W=new RegExp("^"+R+"*,"+R+"*"),Q=new RegExp("^"+R+"*([>+~]|"+R+")"+R+"*"),U=new RegExp(R+"|>"),Y=new RegExp(G),V=new RegExp("^"+z+"$"),H={ID:new RegExp("^#("+z+")"),CLASS:new RegExp("^\\.("+z+")"),TAG:new RegExp("^("+z+"|[*])"),ATTR:new RegExp("^"+Z),PSEUDO:new RegExp("^"+G),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+R+"*(even|odd|(([+-]|)(\\d*)n|)"+R+"*(?:([+-]|)"+R+"*(\\d+)|))"+R+"*\\)|)","i"),bool:new RegExp("^(?:"+B+")$","i"),needsContext:new RegExp("^"+R+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+R+"*((?:-\\d)?\\d*)"+R+"*\\)|)(?=[^-]|$)","i")},X=/HTML$/i,J=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,q=/^[^{]+\{\s*\[native \w/,$=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=new RegExp("\\\\[\\da-fA-F]{1,6}"+R+"?|\\\\([^\\r\\n\\f])","g"),it=function(t,e){var i="0x"+t.slice(1)-65536;return e||(i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320))},nt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ot=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},rt=function(){l()},gt=mt((function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{F.apply(T=S.call(y.childNodes),y.childNodes),T[y.childNodes.length].nodeType}catch(t){F={apply:T.length?function(t,e){E.apply(t,S.call(e))}:function(t,e){for(var i=t.length,n=0;t[i++]=e[n++];);t.length=i-1}}}function st(t,e,n,o){var r,s,A,C,I,h,p,f=e&&e.ownerDocument,y=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==y&&9!==y&&11!==y)return n;if(!o&&(l(e),e=e||c,u)){if(11!==y&&(I=$.exec(t)))if(r=I[1]){if(9===y){if(!(A=e.getElementById(r)))return n;if(A.id===r)return n.push(A),n}else if(f&&(A=f.getElementById(r))&&v(e,A)&&A.id===r)return n.push(A),n}else{if(I[2])return F.apply(n,e.getElementsByTagName(t)),n;if((r=I[3])&&i.getElementsByClassName&&e.getElementsByClassName)return F.apply(n,e.getElementsByClassName(r)),n}if(i.qsa&&!D[t+" "]&&(!d||!d.test(t))&&(1!==y||"object"!==e.nodeName.toLowerCase())){if(p=t,f=e,1===y&&(U.test(t)||Q.test(t))){for((f=tt.test(t)&&pt(e.parentNode)||e)===e&&i.scope||((C=e.getAttribute("id"))?C=C.replace(nt,ot):e.setAttribute("id",C=m)),s=(h=g(t)).length;s--;)h[s]=(C?"#"+C:":scope")+" "+vt(h[s]);p=h.join(",")}try{return F.apply(n,f.querySelectorAll(p)),n}catch(e){D(t,!0)}finally{C===m&&e.removeAttribute("id")}}}return a(t.replace(L,"$1"),e,n,o)}function at(){var t=[];return function e(i,o){return t.push(i+" ")>n.cacheLength&&delete e[t.shift()],e[i+" "]=o}}function At(t){return t[m]=!0,t}function Ct(t){var e=c.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function It(t,e){for(var i=t.split("|"),o=i.length;o--;)n.attrHandle[i[o]]=e}function lt(t,e){var i=e&&t,n=i&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(n)return n;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function ct(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function ht(t){return function(e){var i=e.nodeName.toLowerCase();return("input"===i||"button"===i)&&e.type===t}}function ut(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&gt(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function dt(t){return At((function(e){return e=+e,At((function(i,n){for(var o,r=t([],i.length,e),g=r.length;g--;)i[o=r[g]]&&(i[o]=!(n[o]=i[o]))}))}))}function pt(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in i=st.support={},r=st.isXML=function(t){var e=t.namespaceURI,i=(t.ownerDocument||t).documentElement;return!X.test(e||i&&i.nodeName||"HTML")},l=st.setDocument=function(t){var e,o,g=t?t.ownerDocument||t:y;return g!=c&&9===g.nodeType&&g.documentElement?(h=(c=g).documentElement,u=!r(c),y!=c&&(o=c.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",rt,!1):o.attachEvent&&o.attachEvent("onunload",rt)),i.scope=Ct((function(t){return h.appendChild(t).appendChild(c.createElement("div")),void 0!==t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length})),i.attributes=Ct((function(t){return t.className="i",!t.getAttribute("className")})),i.getElementsByTagName=Ct((function(t){return t.appendChild(c.createComment("")),!t.getElementsByTagName("*").length})),i.getElementsByClassName=q.test(c.getElementsByClassName),i.getById=Ct((function(t){return h.appendChild(t).id=m,!c.getElementsByName||!c.getElementsByName(m).length})),i.getById?(n.filter.ID=function(t){var e=t.replace(et,it);return function(t){return t.getAttribute("id")===e}},n.find.ID=function(t,e){if(void 0!==e.getElementById&&u){var i=e.getElementById(t);return i?[i]:[]}}):(n.filter.ID=function(t){var e=t.replace(et,it);return function(t){var i=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return i&&i.value===e}},n.find.ID=function(t,e){if(void 0!==e.getElementById&&u){var i,n,o,r=e.getElementById(t);if(r){if((i=r.getAttributeNode("id"))&&i.value===t)return[r];for(o=e.getElementsByName(t),n=0;r=o[n++];)if((i=r.getAttributeNode("id"))&&i.value===t)return[r]}return[]}}),n.find.TAG=i.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):i.qsa?e.querySelectorAll(t):void 0}:function(t,e){var i,n=[],o=0,r=e.getElementsByTagName(t);if("*"===t){for(;i=r[o++];)1===i.nodeType&&n.push(i);return n}return r},n.find.CLASS=i.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&u)return e.getElementsByClassName(t)},p=[],d=[],(i.qsa=q.test(c.querySelectorAll))&&(Ct((function(t){var e;h.appendChild(t).innerHTML="<a id='"+m+"'></a><select id='"+m+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&d.push("[*^$]="+R+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||d.push("\\["+R+"*(?:value|"+B+")"),t.querySelectorAll("[id~="+m+"-]").length||d.push("~="),(e=c.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||d.push("\\["+R+"*name"+R+"*="+R+"*(?:''|\"\")"),t.querySelectorAll(":checked").length||d.push(":checked"),t.querySelectorAll("a#"+m+"+*").length||d.push(".#.+[+~]"),t.querySelectorAll("\\\f"),d.push("[\\r\\n\\f]")})),Ct((function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=c.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&d.push("name"+R+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&d.push(":enabled",":disabled"),h.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&d.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),d.push(",.*:")}))),(i.matchesSelector=q.test(f=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&Ct((function(t){i.disconnectedMatch=f.call(t,"*"),f.call(t,"[s!='']:x"),p.push("!=",G)})),d=d.length&&new RegExp(d.join("|")),p=p.length&&new RegExp(p.join("|")),e=q.test(h.compareDocumentPosition),v=e||q.test(h.contains)?function(t,e){var i=9===t.nodeType?t.documentElement:t,n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},O=e?function(t,e){if(t===e)return I=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!i.sortDetached&&e.compareDocumentPosition(t)===n?t==c||t.ownerDocument==y&&v(y,t)?-1:e==c||e.ownerDocument==y&&v(y,e)?1:C?j(C,t)-j(C,e):0:4&n?-1:1)}:function(t,e){if(t===e)return I=!0,0;var i,n=0,o=t.parentNode,r=e.parentNode,g=[t],s=[e];if(!o||!r)return t==c?-1:e==c?1:o?-1:r?1:C?j(C,t)-j(C,e):0;if(o===r)return lt(t,e);for(i=t;i=i.parentNode;)g.unshift(i);for(i=e;i=i.parentNode;)s.unshift(i);for(;g[n]===s[n];)n++;return n?lt(g[n],s[n]):g[n]==y?-1:s[n]==y?1:0},c):c},st.matches=function(t,e){return st(t,null,null,e)},st.matchesSelector=function(t,e){if(l(t),i.matchesSelector&&u&&!D[e+" "]&&(!p||!p.test(e))&&(!d||!d.test(e)))try{var n=f.call(t,e);if(n||i.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){D(e,!0)}return st(e,c,null,[t]).length>0},st.contains=function(t,e){return(t.ownerDocument||t)!=c&&l(t),v(t,e)},st.attr=function(t,e){(t.ownerDocument||t)!=c&&l(t);var o=n.attrHandle[e.toLowerCase()],r=o&&M.call(n.attrHandle,e.toLowerCase())?o(t,e,!u):void 0;return void 0!==r?r:i.attributes||!u?t.getAttribute(e):(r=t.getAttributeNode(e))&&r.specified?r.value:null},st.escape=function(t){return(t+"").replace(nt,ot)},st.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},st.uniqueSort=function(t){var e,n=[],o=0,r=0;if(I=!i.detectDuplicates,C=!i.sortStable&&t.slice(0),t.sort(O),I){for(;e=t[r++];)e===t[r]&&(o=n.push(r));for(;o--;)t.splice(n[o],1)}return C=null,t},o=st.getText=function(t){var e,i="",n=0,r=t.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)i+=o(t)}else if(3===r||4===r)return t.nodeValue}else for(;e=t[n++];)i+=o(e);return i},(n=st.selectors={cacheLength:50,createPseudo:At,match:H,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(et,it),t[3]=(t[3]||t[4]||t[5]||"").replace(et,it),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||st.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&st.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return H.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&Y.test(i)&&(e=g(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(et,it).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=x[t+" "];return e||(e=new RegExp("(^|"+R+")"+t+"("+R+"|$)"))&&x(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,i){return function(n){var o=st.attr(n,t);return null==o?"!="===e:!e||(o+="","="===e?o===i:"!="===e?o!==i:"^="===e?i&&0===o.indexOf(i):"*="===e?i&&o.indexOf(i)>-1:"$="===e?i&&o.slice(-i.length)===i:"~="===e?(" "+o.replace(P," ")+" ").indexOf(i)>-1:"|="===e&&(o===i||o.slice(0,i.length+1)===i+"-"))}},CHILD:function(t,e,i,n,o){var r="nth"!==t.slice(0,3),g="last"!==t.slice(-4),s="of-type"===e;return 1===n&&0===o?function(t){return!!t.parentNode}:function(e,i,a){var A,C,I,l,c,h,u=r!==g?"nextSibling":"previousSibling",d=e.parentNode,p=s&&e.nodeName.toLowerCase(),f=!a&&!s,v=!1;if(d){if(r){for(;u;){for(l=e;l=l[u];)if(s?l.nodeName.toLowerCase()===p:1===l.nodeType)return!1;h=u="only"===t&&!h&&"nextSibling"}return!0}if(h=[g?d.firstChild:d.lastChild],g&&f){for(v=(c=(A=(C=(I=(l=d)[m]||(l[m]={}))[l.uniqueID]||(I[l.uniqueID]={}))[t]||[])[0]===b&&A[1])&&A[2],l=c&&d.childNodes[c];l=++c&&l&&l[u]||(v=c=0)||h.pop();)if(1===l.nodeType&&++v&&l===e){C[t]=[b,c,v];break}}else if(f&&(v=c=(A=(C=(I=(l=e)[m]||(l[m]={}))[l.uniqueID]||(I[l.uniqueID]={}))[t]||[])[0]===b&&A[1]),!1===v)for(;(l=++c&&l&&l[u]||(v=c=0)||h.pop())&&((s?l.nodeName.toLowerCase()!==p:1!==l.nodeType)||!++v||(f&&((C=(I=l[m]||(l[m]={}))[l.uniqueID]||(I[l.uniqueID]={}))[t]=[b,v]),l!==e)););return(v-=o)===n||v%n==0&&v/n>=0}}},PSEUDO:function(t,e){var i,o=n.pseudos[t]||n.setFilters[t.toLowerCase()]||st.error("unsupported pseudo: "+t);return o[m]?o(e):o.length>1?(i=[t,t,"",e],n.setFilters.hasOwnProperty(t.toLowerCase())?At((function(t,i){for(var n,r=o(t,e),g=r.length;g--;)t[n=j(t,r[g])]=!(i[n]=r[g])})):function(t){return o(t,0,i)}):o}},pseudos:{not:At((function(t){var e=[],i=[],n=s(t.replace(L,"$1"));return n[m]?At((function(t,e,i,o){for(var r,g=n(t,null,o,[]),s=t.length;s--;)(r=g[s])&&(t[s]=!(e[s]=r))})):function(t,o,r){return e[0]=t,n(e,null,r,i),e[0]=null,!i.pop()}})),has:At((function(t){return function(e){return st(t,e).length>0}})),contains:At((function(t){return t=t.replace(et,it),function(e){return(e.textContent||o(e)).indexOf(t)>-1}})),lang:At((function(t){return V.test(t||"")||st.error("unsupported lang: "+t),t=t.replace(et,it).toLowerCase(),function(e){var i;do{if(i=u?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(i=i.toLowerCase())===t||0===i.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(e){var i=t.location&&t.location.hash;return i&&i.slice(1)===e.id},root:function(t){return t===h},focus:function(t){return t===c.activeElement&&(!c.hasFocus||c.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:ut(!1),disabled:ut(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!n.pseudos.empty(t)},header:function(t){return K.test(t.nodeName)},input:function(t){return J.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:dt((function(){return[0]})),last:dt((function(t,e){return[e-1]})),eq:dt((function(t,e,i){return[i<0?i+e:i]})),even:dt((function(t,e){for(var i=0;i<e;i+=2)t.push(i);return t})),odd:dt((function(t,e){for(var i=1;i<e;i+=2)t.push(i);return t})),lt:dt((function(t,e,i){for(var n=i<0?i+e:i>e?e:i;--n>=0;)t.push(n);return t})),gt:dt((function(t,e,i){for(var n=i<0?i+e:i;++n<e;)t.push(n);return t}))}}).pseudos.nth=n.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})n.pseudos[e]=ct(e);for(e in{submit:!0,reset:!0})n.pseudos[e]=ht(e);function ft(){}function vt(t){for(var e=0,i=t.length,n="";e<i;e++)n+=t[e].value;return n}function mt(t,e,i){var n=e.dir,o=e.next,r=o||n,g=i&&"parentNode"===r,s=w++;return e.first?function(e,i,o){for(;e=e[n];)if(1===e.nodeType||g)return t(e,i,o);return!1}:function(e,i,a){var A,C,I,l=[b,s];if(a){for(;e=e[n];)if((1===e.nodeType||g)&&t(e,i,a))return!0}else for(;e=e[n];)if(1===e.nodeType||g)if(C=(I=e[m]||(e[m]={}))[e.uniqueID]||(I[e.uniqueID]={}),o&&o===e.nodeName.toLowerCase())e=e[n]||e;else{if((A=C[r])&&A[0]===b&&A[1]===s)return l[2]=A[2];if(C[r]=l,l[2]=t(e,i,a))return!0}return!1}}function yt(t){return t.length>1?function(e,i,n){for(var o=t.length;o--;)if(!t[o](e,i,n))return!1;return!0}:t[0]}function bt(t,e,i,n,o){for(var r,g=[],s=0,a=t.length,A=null!=e;s<a;s++)(r=t[s])&&(i&&!i(r,n,o)||(g.push(r),A&&e.push(s)));return g}function wt(t,e,i,n,o,r){return n&&!n[m]&&(n=wt(n)),o&&!o[m]&&(o=wt(o,r)),At((function(r,g,s,a){var A,C,I,l=[],c=[],h=g.length,u=r||function(t,e,i){for(var n=0,o=e.length;n<o;n++)st(t,e[n],i);return i}(e||"*",s.nodeType?[s]:s,[]),d=!t||!r&&e?u:bt(u,l,t,s,a),p=i?o||(r?t:h||n)?[]:g:d;if(i&&i(d,p,s,a),n)for(A=bt(p,c),n(A,[],s,a),C=A.length;C--;)(I=A[C])&&(p[c[C]]=!(d[c[C]]=I));if(r){if(o||t){if(o){for(A=[],C=p.length;C--;)(I=p[C])&&A.push(d[C]=I);o(null,p=[],A,a)}for(C=p.length;C--;)(I=p[C])&&(A=o?j(r,I):l[C])>-1&&(r[A]=!(g[A]=I))}}else p=bt(p===g?p.splice(h,p.length):p),o?o(null,g,p,a):F.apply(g,p)}))}function xt(t){for(var e,i,o,r=t.length,g=n.relative[t[0].type],s=g||n.relative[" "],a=g?1:0,C=mt((function(t){return t===e}),s,!0),I=mt((function(t){return j(e,t)>-1}),s,!0),l=[function(t,i,n){var o=!g&&(n||i!==A)||((e=i).nodeType?C(t,i,n):I(t,i,n));return e=null,o}];a<r;a++)if(i=n.relative[t[a].type])l=[mt(yt(l),i)];else{if((i=n.filter[t[a].type].apply(null,t[a].matches))[m]){for(o=++a;o<r&&!n.relative[t[o].type];o++);return wt(a>1&&yt(l),a>1&&vt(t.slice(0,a-1).concat({value:" "===t[a-2].type?"*":""})).replace(L,"$1"),i,a<o&&xt(t.slice(a,o)),o<r&&xt(t=t.slice(o)),o<r&&vt(t))}l.push(i)}return yt(l)}return ft.prototype=n.filters=n.pseudos,n.setFilters=new ft,g=st.tokenize=function(t,e){var i,o,r,g,s,a,A,C=k[t+" "];if(C)return e?0:C.slice(0);for(s=t,a=[],A=n.preFilter;s;){for(g in i&&!(o=W.exec(s))||(o&&(s=s.slice(o[0].length)||s),a.push(r=[])),i=!1,(o=Q.exec(s))&&(i=o.shift(),r.push({value:i,type:o[0].replace(L," ")}),s=s.slice(i.length)),n.filter)!(o=H[g].exec(s))||A[g]&&!(o=A[g](o))||(i=o.shift(),r.push({value:i,type:g,matches:o}),s=s.slice(i.length));if(!i)break}return e?s.length:s?st.error(t):k(t,a).slice(0)},s=st.compile=function(t,e){var i,o=[],r=[],s=_[t+" "];if(!s){for(e||(e=g(t)),i=e.length;i--;)(s=xt(e[i]))[m]?o.push(s):r.push(s);(s=_(t,function(t,e){var i=e.length>0,o=t.length>0,r=function(r,g,s,a,C){var I,h,d,p=0,f="0",v=r&&[],m=[],y=A,w=r||o&&n.find.TAG("*",C),x=b+=null==y?1:Math.random()||.1,k=w.length;for(C&&(A=g==c||g||C);f!==k&&null!=(I=w[f]);f++){if(o&&I){for(h=0,g||I.ownerDocument==c||(l(I),s=!u);d=t[h++];)if(d(I,g||c,s)){a.push(I);break}C&&(b=x)}i&&((I=!d&&I)&&p--,r&&v.push(I))}if(p+=f,i&&f!==p){for(h=0;d=e[h++];)d(v,m,g,s);if(r){if(p>0)for(;f--;)v[f]||m[f]||(m[f]=N.call(a));m=bt(m)}F.apply(a,m),C&&!r&&m.length>0&&p+e.length>1&&st.uniqueSort(a)}return C&&(b=x,A=y),v};return i?At(r):r}(r,o))).selector=t}return s},a=st.select=function(t,e,i,o){var r,a,A,C,I,l="function"==typeof t&&t,c=!o&&g(t=l.selector||t);if(i=i||[],1===c.length){if((a=c[0]=c[0].slice(0)).length>2&&"ID"===(A=a[0]).type&&9===e.nodeType&&u&&n.relative[a[1].type]){if(!(e=(n.find.ID(A.matches[0].replace(et,it),e)||[])[0]))return i;l&&(e=e.parentNode),t=t.slice(a.shift().value.length)}for(r=H.needsContext.test(t)?0:a.length;r--&&(A=a[r],!n.relative[C=A.type]);)if((I=n.find[C])&&(o=I(A.matches[0].replace(et,it),tt.test(a[0].type)&&pt(e.parentNode)||e))){if(a.splice(r,1),!(t=o.length&&vt(a)))return F.apply(i,o),i;break}}return(l||s(t,c))(o,e,!u,i,!e||tt.test(t)&&pt(e.parentNode)||e),i},i.sortStable=m.split("").sort(O).join("")===m,i.detectDuplicates=!!I,l(),i.sortDetached=Ct((function(t){return 1&t.compareDocumentPosition(c.createElement("fieldset"))})),Ct((function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")}))||It("type|href|height|width",(function(t,e,i){if(!i)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)})),i.attributes&&Ct((function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")}))||It("value",(function(t,e,i){if(!i&&"input"===t.nodeName.toLowerCase())return t.defaultValue})),Ct((function(t){return null==t.getAttribute("disabled")}))||It(B,(function(t,e,i){var n;if(!i)return!0===t[e]?e.toLowerCase():(n=t.getAttributeNode(e))&&n.specified?n.value:null})),st}(i);w.find=k,w.expr=k.selectors,w.expr[":"]=w.expr.pseudos,w.uniqueSort=w.unique=k.uniqueSort,w.text=k.getText,w.isXMLDoc=k.isXML,w.contains=k.contains,w.escapeSelector=k.escape;var _=function(t,e,i){for(var n=[],o=void 0!==i;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(o&&w(t).is(i))break;n.push(t)}return n},D=function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i},O=w.expr.match.needsContext;function M(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var T=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function N(t,e,i){return p(e)?w.grep(t,(function(t,n){return!!e.call(t,n,t)!==i})):e.nodeType?w.grep(t,(function(t){return t===e!==i})):"string"!=typeof e?w.grep(t,(function(t){return C.call(e,t)>-1!==i})):w.filter(e,t,i)}w.filter=function(t,e,i){var n=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?w.find.matchesSelector(n,t)?[n]:[]:w.find.matches(t,w.grep(e,(function(t){return 1===t.nodeType})))},w.fn.extend({find:function(t){var e,i,n=this.length,o=this;if("string"!=typeof t)return this.pushStack(w(t).filter((function(){for(e=0;e<n;e++)if(w.contains(o[e],this))return!0})));for(i=this.pushStack([]),e=0;e<n;e++)w.find(t,o[e],i);return n>1?w.uniqueSort(i):i},filter:function(t){return this.pushStack(N(this,t||[],!1))},not:function(t){return this.pushStack(N(this,t||[],!0))},is:function(t){return!!N(this,"string"==typeof t&&O.test(t)?w(t):t||[],!1).length}});var E,F=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(w.fn.init=function(t,e,i){var n,o;if(!t)return this;if(i=i||E,"string"==typeof t){if(!(n="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:F.exec(t))||!n[1]&&e)return!e||e.jquery?(e||i).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof w?e[0]:e,w.merge(this,w.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:v,!0)),T.test(n[1])&&w.isPlainObject(e))for(n in e)p(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return(o=v.getElementById(n[2]))&&(this[0]=o,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):p(t)?void 0!==i.ready?i.ready(t):t(w):w.makeArray(t,this)}).prototype=w.fn,E=w(v);var S=/^(?:parents|prev(?:Until|All))/,j={children:!0,contents:!0,next:!0,prev:!0};function B(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}w.fn.extend({has:function(t){var e=w(t,this),i=e.length;return this.filter((function(){for(var t=0;t<i;t++)if(w.contains(this,e[t]))return!0}))},closest:function(t,e){var i,n=0,o=this.length,r=[],g="string"!=typeof t&&w(t);if(!O.test(t))for(;n<o;n++)for(i=this[n];i&&i!==e;i=i.parentNode)if(i.nodeType<11&&(g?g.index(i)>-1:1===i.nodeType&&w.find.matchesSelector(i,t))){r.push(i);break}return this.pushStack(r.length>1?w.uniqueSort(r):r)},index:function(t){return t?"string"==typeof t?C.call(w(t),this[0]):C.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(w.uniqueSort(w.merge(this.get(),w(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),w.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return _(t,"parentNode")},parentsUntil:function(t,e,i){return _(t,"parentNode",i)},next:function(t){return B(t,"nextSibling")},prev:function(t){return B(t,"previousSibling")},nextAll:function(t){return _(t,"nextSibling")},prevAll:function(t){return _(t,"previousSibling")},nextUntil:function(t,e,i){return _(t,"nextSibling",i)},prevUntil:function(t,e,i){return _(t,"previousSibling",i)},siblings:function(t){return D((t.parentNode||{}).firstChild,t)},children:function(t){return D(t.firstChild)},contents:function(t){return null!=t.contentDocument&&g(t.contentDocument)?t.contentDocument:(M(t,"template")&&(t=t.content||t),w.merge([],t.childNodes))}},(function(t,e){w.fn[t]=function(i,n){var o=w.map(this,e,i);return"Until"!==t.slice(-5)&&(n=i),n&&"string"==typeof n&&(o=w.filter(n,o)),this.length>1&&(j[t]||w.uniqueSort(o),S.test(t)&&o.reverse()),this.pushStack(o)}}));var R=/[^\x20\t\r\n\f]+/g;function z(t){return t}function Z(t){throw t}function G(t,e,i,n){var o;try{t&&p(o=t.promise)?o.call(t).done(e).fail(i):t&&p(o=t.then)?o.call(t,e,i):e.apply(void 0,[t].slice(n))}catch(t){i.apply(void 0,[t])}}w.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return w.each(t.match(R)||[],(function(t,i){e[i]=!0})),e}(t):w.extend({},t);var e,i,n,o,r=[],g=[],s=-1,a=function(){for(o=o||t.once,n=e=!0;g.length;s=-1)for(i=g.shift();++s<r.length;)!1===r[s].apply(i[0],i[1])&&t.stopOnFalse&&(s=r.length,i=!1);t.memory||(i=!1),e=!1,o&&(r=i?[]:"")},A={add:function(){return r&&(i&&!e&&(s=r.length-1,g.push(i)),function e(i){w.each(i,(function(i,n){p(n)?t.unique&&A.has(n)||r.push(n):n&&n.length&&"string"!==b(n)&&e(n)}))}(arguments),i&&!e&&a()),this},remove:function(){return w.each(arguments,(function(t,e){for(var i;(i=w.inArray(e,r,i))>-1;)r.splice(i,1),i<=s&&s--})),this},has:function(t){return t?w.inArray(t,r)>-1:r.length>0},empty:function(){return r&&(r=[]),this},disable:function(){return o=g=[],r=i="",this},disabled:function(){return!r},lock:function(){return o=g=[],i||e||(r=i=""),this},locked:function(){return!!o},fireWith:function(t,i){return o||(i=[t,(i=i||[]).slice?i.slice():i],g.push(i),e||a()),this},fire:function(){return A.fireWith(this,arguments),this},fired:function(){return!!n}};return A},w.extend({Deferred:function(t){var e=[["notify","progress",w.Callbacks("memory"),w.Callbacks("memory"),2],["resolve","done",w.Callbacks("once memory"),w.Callbacks("once memory"),0,"resolved"],["reject","fail",w.Callbacks("once memory"),w.Callbacks("once memory"),1,"rejected"]],n="pending",o={state:function(){return n},always:function(){return r.done(arguments).fail(arguments),this},catch:function(t){return o.then(null,t)},pipe:function(){var t=arguments;return w.Deferred((function(i){w.each(e,(function(e,n){var o=p(t[n[4]])&&t[n[4]];r[n[1]]((function(){var t=o&&o.apply(this,arguments);t&&p(t.promise)?t.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[n[0]+"With"](this,o?[t]:arguments)}))})),t=null})).promise()},then:function(t,n,o){var r=0;function g(t,e,n,o){return function(){var s=this,a=arguments,A=function(){var i,A;if(!(t<r)){if((i=n.apply(s,a))===e.promise())throw new TypeError("Thenable self-resolution");A=i&&("object"==typeof i||"function"==typeof i)&&i.then,p(A)?o?A.call(i,g(r,e,z,o),g(r,e,Z,o)):(r++,A.call(i,g(r,e,z,o),g(r,e,Z,o),g(r,e,z,e.notifyWith))):(n!==z&&(s=void 0,a=[i]),(o||e.resolveWith)(s,a))}},C=o?A:function(){try{A()}catch(i){w.Deferred.exceptionHook&&w.Deferred.exceptionHook(i,C.stackTrace),t+1>=r&&(n!==Z&&(s=void 0,a=[i]),e.rejectWith(s,a))}};t?C():(w.Deferred.getStackHook&&(C.stackTrace=w.Deferred.getStackHook()),i.setTimeout(C))}}return w.Deferred((function(i){e[0][3].add(g(0,i,p(o)?o:z,i.notifyWith)),e[1][3].add(g(0,i,p(t)?t:z)),e[2][3].add(g(0,i,p(n)?n:Z))})).promise()},promise:function(t){return null!=t?w.extend(t,o):o}},r={};return w.each(e,(function(t,i){var g=i[2],s=i[5];o[i[1]]=g.add,s&&g.add((function(){n=s}),e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),g.add(i[3].fire),r[i[0]]=function(){return r[i[0]+"With"](this===r?void 0:this,arguments),this},r[i[0]+"With"]=g.fireWith})),o.promise(r),t&&t.call(r,r),r},when:function(t){var e=arguments.length,i=e,n=Array(i),o=s.call(arguments),r=w.Deferred(),g=function(t){return function(i){n[t]=this,o[t]=arguments.length>1?s.call(arguments):i,--e||r.resolveWith(n,o)}};if(e<=1&&(G(t,r.done(g(i)).resolve,r.reject,!e),"pending"===r.state()||p(o[i]&&o[i].then)))return r.then();for(;i--;)G(o[i],g(i),r.reject);return r.promise()}});var P=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;w.Deferred.exceptionHook=function(t,e){i.console&&i.console.warn&&t&&P.test(t.name)&&i.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},w.readyException=function(t){i.setTimeout((function(){throw t}))};var L=w.Deferred();function W(){v.removeEventListener("DOMContentLoaded",W),i.removeEventListener("load",W),w.ready()}w.fn.ready=function(t){return L.then(t).catch((function(t){w.readyException(t)})),this},w.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--w.readyWait:w.isReady)||(w.isReady=!0,!0!==t&&--w.readyWait>0||L.resolveWith(v,[w]))}}),w.ready.then=L.then,"complete"===v.readyState||"loading"!==v.readyState&&!v.documentElement.doScroll?i.setTimeout(w.ready):(v.addEventListener("DOMContentLoaded",W),i.addEventListener("load",W));var Q=function(t,e,i,n,o,r,g){var s=0,a=t.length,A=null==i;if("object"===b(i))for(s in o=!0,i)Q(t,e,s,i[s],!0,r,g);else if(void 0!==n&&(o=!0,p(n)||(g=!0),A&&(g?(e.call(t,n),e=null):(A=e,e=function(t,e,i){return A.call(w(t),i)})),e))for(;s<a;s++)e(t[s],i,g?n:n.call(t[s],s,e(t[s],i)));return o?t:A?e.call(t):a?e(t[0],i):r},U=/^-ms-/,Y=/-([a-z])/g;function V(t,e){return e.toUpperCase()}function H(t){return t.replace(U,"ms-").replace(Y,V)}var X=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function J(){this.expando=w.expando+J.uid++}J.uid=1,J.prototype={cache:function(t){var e=t[this.expando];return e||(e={},X(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,i){var n,o=this.cache(t);if("string"==typeof e)o[H(e)]=i;else for(n in e)o[H(n)]=e[n];return o},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][H(e)]},access:function(t,e,i){return void 0===e||e&&"string"==typeof e&&void 0===i?this.get(t,e):(this.set(t,e,i),void 0!==i?i:e)},remove:function(t,e){var i,n=t[this.expando];if(void 0!==n){if(void 0!==e){i=(e=Array.isArray(e)?e.map(H):(e=H(e))in n?[e]:e.match(R)||[]).length;for(;i--;)delete n[e[i]]}(void 0===e||w.isEmptyObject(n))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!w.isEmptyObject(e)}};var K=new J,q=new J,$=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,tt=/[A-Z]/g;function et(t,e,i){var n;if(void 0===i&&1===t.nodeType)if(n="data-"+e.replace(tt,"-$&").toLowerCase(),"string"==typeof(i=t.getAttribute(n))){try{i=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:$.test(t)?JSON.parse(t):t)}(i)}catch(t){}q.set(t,e,i)}else i=void 0;return i}w.extend({hasData:function(t){return q.hasData(t)||K.hasData(t)},data:function(t,e,i){return q.access(t,e,i)},removeData:function(t,e){q.remove(t,e)},_data:function(t,e,i){return K.access(t,e,i)},_removeData:function(t,e){K.remove(t,e)}}),w.fn.extend({data:function(t,e){var i,n,o,r=this[0],g=r&&r.attributes;if(void 0===t){if(this.length&&(o=q.get(r),1===r.nodeType&&!K.get(r,"hasDataAttrs"))){for(i=g.length;i--;)g[i]&&0===(n=g[i].name).indexOf("data-")&&(n=H(n.slice(5)),et(r,n,o[n]));K.set(r,"hasDataAttrs",!0)}return o}return"object"==typeof t?this.each((function(){q.set(this,t)})):Q(this,(function(e){var i;if(r&&void 0===e)return void 0!==(i=q.get(r,t))||void 0!==(i=et(r,t))?i:void 0;this.each((function(){q.set(this,t,e)}))}),null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each((function(){q.remove(this,t)}))}}),w.extend({queue:function(t,e,i){var n;if(t)return e=(e||"fx")+"queue",n=K.get(t,e),i&&(!n||Array.isArray(i)?n=K.access(t,e,w.makeArray(i)):n.push(i)),n||[]},dequeue:function(t,e){e=e||"fx";var i=w.queue(t,e),n=i.length,o=i.shift(),r=w._queueHooks(t,e);"inprogress"===o&&(o=i.shift(),n--),o&&("fx"===e&&i.unshift("inprogress"),delete r.stop,o.call(t,(function(){w.dequeue(t,e)}),r)),!n&&r&&r.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return K.get(t,i)||K.access(t,i,{empty:w.Callbacks("once memory").add((function(){K.remove(t,[e+"queue",i])}))})}}),w.fn.extend({queue:function(t,e){var i=2;return"string"!=typeof t&&(e=t,t="fx",i--),arguments.length<i?w.queue(this[0],t):void 0===e?this:this.each((function(){var i=w.queue(this,t,e);w._queueHooks(this,t),"fx"===t&&"inprogress"!==i[0]&&w.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){w.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var i,n=1,o=w.Deferred(),r=this,g=this.length,s=function(){--n||o.resolveWith(r,[r])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";g--;)(i=K.get(r[g],t+"queueHooks"))&&i.empty&&(n++,i.empty.add(s));return s(),o.promise(e)}});var it=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,nt=new RegExp("^(?:([+-])=|)("+it+")([a-z%]*)$","i"),ot=["Top","Right","Bottom","Left"],rt=v.documentElement,gt=function(t){return w.contains(t.ownerDocument,t)},st={composed:!0};rt.getRootNode&&(gt=function(t){return w.contains(t.ownerDocument,t)||t.getRootNode(st)===t.ownerDocument});var at=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&gt(t)&&"none"===w.css(t,"display")};function At(t,e,i,n){var o,r,g=20,s=n?function(){return n.cur()}:function(){return w.css(t,e,"")},a=s(),A=i&&i[3]||(w.cssNumber[e]?"":"px"),C=t.nodeType&&(w.cssNumber[e]||"px"!==A&&+a)&&nt.exec(w.css(t,e));if(C&&C[3]!==A){for(a/=2,A=A||C[3],C=+a||1;g--;)w.style(t,e,C+A),(1-r)*(1-(r=s()/a||.5))<=0&&(g=0),C/=r;C*=2,w.style(t,e,C+A),i=i||[]}return i&&(C=+C||+a||0,o=i[1]?C+(i[1]+1)*i[2]:+i[2],n&&(n.unit=A,n.start=C,n.end=o)),o}var Ct={};function It(t){var e,i=t.ownerDocument,n=t.nodeName,o=Ct[n];return o||(e=i.body.appendChild(i.createElement(n)),o=w.css(e,"display"),e.parentNode.removeChild(e),"none"===o&&(o="block"),Ct[n]=o,o)}function lt(t,e){for(var i,n,o=[],r=0,g=t.length;r<g;r++)(n=t[r]).style&&(i=n.style.display,e?("none"===i&&(o[r]=K.get(n,"display")||null,o[r]||(n.style.display="")),""===n.style.display&&at(n)&&(o[r]=It(n))):"none"!==i&&(o[r]="none",K.set(n,"display",i)));for(r=0;r<g;r++)null!=o[r]&&(t[r].style.display=o[r]);return t}w.fn.extend({show:function(){return lt(this,!0)},hide:function(){return lt(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){at(this)?w(this).show():w(this).hide()}))}});var ct,ht,ut=/^(?:checkbox|radio)$/i,dt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,pt=/^$|^module$|\/(?:java|ecma)script/i;ct=v.createDocumentFragment().appendChild(v.createElement("div")),(ht=v.createElement("input")).setAttribute("type","radio"),ht.setAttribute("checked","checked"),ht.setAttribute("name","t"),ct.appendChild(ht),d.checkClone=ct.cloneNode(!0).cloneNode(!0).lastChild.checked,ct.innerHTML="<textarea>x</textarea>",d.noCloneChecked=!!ct.cloneNode(!0).lastChild.defaultValue,ct.innerHTML="<option></option>",d.option=!!ct.lastChild;var ft={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function vt(t,e){var i;return i=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&M(t,e)?w.merge([t],i):i}function mt(t,e){for(var i=0,n=t.length;i<n;i++)K.set(t[i],"globalEval",!e||K.get(e[i],"globalEval"))}ft.tbody=ft.tfoot=ft.colgroup=ft.caption=ft.thead,ft.th=ft.td,d.option||(ft.optgroup=ft.option=[1,"<select multiple='multiple'>","</select>"]);var yt=/<|&#?\w+;/;function bt(t,e,i,n,o){for(var r,g,s,a,A,C,I=e.createDocumentFragment(),l=[],c=0,h=t.length;c<h;c++)if((r=t[c])||0===r)if("object"===b(r))w.merge(l,r.nodeType?[r]:r);else if(yt.test(r)){for(g=g||I.appendChild(e.createElement("div")),s=(dt.exec(r)||["",""])[1].toLowerCase(),a=ft[s]||ft._default,g.innerHTML=a[1]+w.htmlPrefilter(r)+a[2],C=a[0];C--;)g=g.lastChild;w.merge(l,g.childNodes),(g=I.firstChild).textContent=""}else l.push(e.createTextNode(r));for(I.textContent="",c=0;r=l[c++];)if(n&&w.inArray(r,n)>-1)o&&o.push(r);else if(A=gt(r),g=vt(I.appendChild(r),"script"),A&&mt(g),i)for(C=0;r=g[C++];)pt.test(r.type||"")&&i.push(r);return I}var wt=/^key/,xt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,kt=/^([^.]*)(?:\.(.+)|)/;function _t(){return!0}function Dt(){return!1}function Ot(t,e){return t===function(){try{return v.activeElement}catch(t){}}()==("focus"===e)}function Mt(t,e,i,n,o,r){var g,s;if("object"==typeof e){for(s in"string"!=typeof i&&(n=n||i,i=void 0),e)Mt(t,s,i,n,e[s],r);return t}if(null==n&&null==o?(o=i,n=i=void 0):null==o&&("string"==typeof i?(o=n,n=void 0):(o=n,n=i,i=void 0)),!1===o)o=Dt;else if(!o)return t;return 1===r&&(g=o,(o=function(t){return w().off(t),g.apply(this,arguments)}).guid=g.guid||(g.guid=w.guid++)),t.each((function(){w.event.add(this,e,o,n,i)}))}function Tt(t,e,i){i?(K.set(t,e,!1),w.event.add(t,e,{namespace:!1,handler:function(t){var n,o,r=K.get(this,e);if(1&t.isTrigger&&this[e]){if(r.length)(w.event.special[e]||{}).delegateType&&t.stopPropagation();else if(r=s.call(arguments),K.set(this,e,r),n=i(this,e),this[e](),r!==(o=K.get(this,e))||n?K.set(this,e,!1):o={},r!==o)return t.stopImmediatePropagation(),t.preventDefault(),o.value}else r.length&&(K.set(this,e,{value:w.event.trigger(w.extend(r[0],w.Event.prototype),r.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===K.get(t,e)&&w.event.add(t,e,_t)}w.event={global:{},add:function(t,e,i,n,o){var r,g,s,a,A,C,I,l,c,h,u,d=K.get(t);if(X(t))for(i.handler&&(i=(r=i).handler,o=r.selector),o&&w.find.matchesSelector(rt,o),i.guid||(i.guid=w.guid++),(a=d.events)||(a=d.events=Object.create(null)),(g=d.handle)||(g=d.handle=function(e){return void 0!==w&&w.event.triggered!==e.type?w.event.dispatch.apply(t,arguments):void 0}),A=(e=(e||"").match(R)||[""]).length;A--;)c=u=(s=kt.exec(e[A])||[])[1],h=(s[2]||"").split(".").sort(),c&&(I=w.event.special[c]||{},c=(o?I.delegateType:I.bindType)||c,I=w.event.special[c]||{},C=w.extend({type:c,origType:u,data:n,handler:i,guid:i.guid,selector:o,needsContext:o&&w.expr.match.needsContext.test(o),namespace:h.join(".")},r),(l=a[c])||((l=a[c]=[]).delegateCount=0,I.setup&&!1!==I.setup.call(t,n,h,g)||t.addEventListener&&t.addEventListener(c,g)),I.add&&(I.add.call(t,C),C.handler.guid||(C.handler.guid=i.guid)),o?l.splice(l.delegateCount++,0,C):l.push(C),w.event.global[c]=!0)},remove:function(t,e,i,n,o){var r,g,s,a,A,C,I,l,c,h,u,d=K.hasData(t)&&K.get(t);if(d&&(a=d.events)){for(A=(e=(e||"").match(R)||[""]).length;A--;)if(c=u=(s=kt.exec(e[A])||[])[1],h=(s[2]||"").split(".").sort(),c){for(I=w.event.special[c]||{},l=a[c=(n?I.delegateType:I.bindType)||c]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=r=l.length;r--;)C=l[r],!o&&u!==C.origType||i&&i.guid!==C.guid||s&&!s.test(C.namespace)||n&&n!==C.selector&&("**"!==n||!C.selector)||(l.splice(r,1),C.selector&&l.delegateCount--,I.remove&&I.remove.call(t,C));g&&!l.length&&(I.teardown&&!1!==I.teardown.call(t,h,d.handle)||w.removeEvent(t,c,d.handle),delete a[c])}else for(c in a)w.event.remove(t,c+e[A],i,n,!0);w.isEmptyObject(a)&&K.remove(t,"handle events")}},dispatch:function(t){var e,i,n,o,r,g,s=new Array(arguments.length),a=w.event.fix(t),A=(K.get(this,"events")||Object.create(null))[a.type]||[],C=w.event.special[a.type]||{};for(s[0]=a,e=1;e<arguments.length;e++)s[e]=arguments[e];if(a.delegateTarget=this,!C.preDispatch||!1!==C.preDispatch.call(this,a)){for(g=w.event.handlers.call(this,a,A),e=0;(o=g[e++])&&!a.isPropagationStopped();)for(a.currentTarget=o.elem,i=0;(r=o.handlers[i++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!1!==r.namespace&&!a.rnamespace.test(r.namespace)||(a.handleObj=r,a.data=r.data,void 0!==(n=((w.event.special[r.origType]||{}).handle||r.handler).apply(o.elem,s))&&!1===(a.result=n)&&(a.preventDefault(),a.stopPropagation()));return C.postDispatch&&C.postDispatch.call(this,a),a.result}},handlers:function(t,e){var i,n,o,r,g,s=[],a=e.delegateCount,A=t.target;if(a&&A.nodeType&&!("click"===t.type&&t.button>=1))for(;A!==this;A=A.parentNode||this)if(1===A.nodeType&&("click"!==t.type||!0!==A.disabled)){for(r=[],g={},i=0;i<a;i++)void 0===g[o=(n=e[i]).selector+" "]&&(g[o]=n.needsContext?w(o,this).index(A)>-1:w.find(o,this,null,[A]).length),g[o]&&r.push(n);r.length&&s.push({elem:A,handlers:r})}return A=this,a<e.length&&s.push({elem:A,handlers:e.slice(a)}),s},addProp:function(t,e){Object.defineProperty(w.Event.prototype,t,{enumerable:!0,configurable:!0,get:p(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[w.expando]?t:new w.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return ut.test(e.type)&&e.click&&M(e,"input")&&Tt(e,"click",_t),!1},trigger:function(t){var e=this||t;return ut.test(e.type)&&e.click&&M(e,"input")&&Tt(e,"click"),!0},_default:function(t){var e=t.target;return ut.test(e.type)&&e.click&&M(e,"input")&&K.get(e,"click")||M(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},w.removeEvent=function(t,e,i){t.removeEventListener&&t.removeEventListener(e,i)},w.Event=function(t,e){if(!(this instanceof w.Event))return new w.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?_t:Dt,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&w.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[w.expando]=!0},w.Event.prototype={constructor:w.Event,isDefaultPrevented:Dt,isPropagationStopped:Dt,isImmediatePropagationStopped:Dt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=_t,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=_t,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=_t,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},w.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(t){var e=t.button;return null==t.which&&wt.test(t.type)?null!=t.charCode?t.charCode:t.keyCode:!t.which&&void 0!==e&&xt.test(t.type)?1&e?1:2&e?3:4&e?2:0:t.which}},w.event.addProp),w.each({focus:"focusin",blur:"focusout"},(function(t,e){w.event.special[t]={setup:function(){return Tt(this,t,Ot),!1},trigger:function(){return Tt(this,t),!0},delegateType:e}})),w.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){w.event.special[t]={delegateType:e,bindType:e,handle:function(t){var i,n=this,o=t.relatedTarget,r=t.handleObj;return o&&(o===n||w.contains(n,o))||(t.type=r.origType,i=r.handler.apply(this,arguments),t.type=e),i}}})),w.fn.extend({on:function(t,e,i,n){return Mt(this,t,e,i,n)},one:function(t,e,i,n){return Mt(this,t,e,i,n,1)},off:function(t,e,i){var n,o;if(t&&t.preventDefault&&t.handleObj)return n=t.handleObj,w(t.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof t){for(o in t)this.off(o,e,t[o]);return this}return!1!==e&&"function"!=typeof e||(i=e,e=void 0),!1===i&&(i=Dt),this.each((function(){w.event.remove(this,t,i,e)}))}});var Nt=/<script|<style|<link/i,Et=/checked\s*(?:[^=]|=\s*.checked.)/i,Ft=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function St(t,e){return M(t,"table")&&M(11!==e.nodeType?e:e.firstChild,"tr")&&w(t).children("tbody")[0]||t}function jt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Bt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Rt(t,e){var i,n,o,r,g,s;if(1===e.nodeType){if(K.hasData(t)&&(s=K.get(t).events))for(o in K.remove(e,"handle events"),s)for(i=0,n=s[o].length;i<n;i++)w.event.add(e,o,s[o][i]);q.hasData(t)&&(r=q.access(t),g=w.extend({},r),q.set(e,g))}}function zt(t,e){var i=e.nodeName.toLowerCase();"input"===i&&ut.test(t.type)?e.checked=t.checked:"input"!==i&&"textarea"!==i||(e.defaultValue=t.defaultValue)}function Zt(t,e,i,n){e=a(e);var o,r,g,s,A,C,I=0,l=t.length,c=l-1,h=e[0],u=p(h);if(u||l>1&&"string"==typeof h&&!d.checkClone&&Et.test(h))return t.each((function(o){var r=t.eq(o);u&&(e[0]=h.call(this,o,r.html())),Zt(r,e,i,n)}));if(l&&(r=(o=bt(e,t[0].ownerDocument,!1,t,n)).firstChild,1===o.childNodes.length&&(o=r),r||n)){for(s=(g=w.map(vt(o,"script"),jt)).length;I<l;I++)A=o,I!==c&&(A=w.clone(A,!0,!0),s&&w.merge(g,vt(A,"script"))),i.call(t[I],A,I);if(s)for(C=g[g.length-1].ownerDocument,w.map(g,Bt),I=0;I<s;I++)A=g[I],pt.test(A.type||"")&&!K.access(A,"globalEval")&&w.contains(C,A)&&(A.src&&"module"!==(A.type||"").toLowerCase()?w._evalUrl&&!A.noModule&&w._evalUrl(A.src,{nonce:A.nonce||A.getAttribute("nonce")},C):y(A.textContent.replace(Ft,""),A,C))}return t}function Gt(t,e,i){for(var n,o=e?w.filter(e,t):t,r=0;null!=(n=o[r]);r++)i||1!==n.nodeType||w.cleanData(vt(n)),n.parentNode&&(i&&gt(n)&&mt(vt(n,"script")),n.parentNode.removeChild(n));return t}w.extend({htmlPrefilter:function(t){return t},clone:function(t,e,i){var n,o,r,g,s=t.cloneNode(!0),a=gt(t);if(!(d.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||w.isXMLDoc(t)))for(g=vt(s),n=0,o=(r=vt(t)).length;n<o;n++)zt(r[n],g[n]);if(e)if(i)for(r=r||vt(t),g=g||vt(s),n=0,o=r.length;n<o;n++)Rt(r[n],g[n]);else Rt(t,s);return(g=vt(s,"script")).length>0&&mt(g,!a&&vt(t,"script")),s},cleanData:function(t){for(var e,i,n,o=w.event.special,r=0;void 0!==(i=t[r]);r++)if(X(i)){if(e=i[K.expando]){if(e.events)for(n in e.events)o[n]?w.event.remove(i,n):w.removeEvent(i,n,e.handle);i[K.expando]=void 0}i[q.expando]&&(i[q.expando]=void 0)}}}),w.fn.extend({detach:function(t){return Gt(this,t,!0)},remove:function(t){return Gt(this,t)},text:function(t){return Q(this,(function(t){return void 0===t?w.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return Zt(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||St(this,t).appendChild(t)}))},prepend:function(){return Zt(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=St(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return Zt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Zt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(w.cleanData(vt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return w.clone(this,t,e)}))},html:function(t){return Q(this,(function(t){var e=this[0]||{},i=0,n=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Nt.test(t)&&!ft[(dt.exec(t)||["",""])[1].toLowerCase()]){t=w.htmlPrefilter(t);try{for(;i<n;i++)1===(e=this[i]||{}).nodeType&&(w.cleanData(vt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return Zt(this,arguments,(function(e){var i=this.parentNode;w.inArray(this,t)<0&&(w.cleanData(vt(this)),i&&i.replaceChild(e,this))}),t)}}),w.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){w.fn[t]=function(t){for(var i,n=[],o=w(t),r=o.length-1,g=0;g<=r;g++)i=g===r?this:this.clone(!0),w(o[g])[e](i),A.apply(n,i.get());return this.pushStack(n)}}));var Pt=new RegExp("^("+it+")(?!px)[a-z%]+$","i"),Lt=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=i),e.getComputedStyle(t)},Wt=function(t,e,i){var n,o,r={};for(o in e)r[o]=t.style[o],t.style[o]=e[o];for(o in n=i.call(t),e)t.style[o]=r[o];return n},Qt=new RegExp(ot.join("|"),"i");function Ut(t,e,i){var n,o,r,g,s=t.style;return(i=i||Lt(t))&&(""!==(g=i.getPropertyValue(e)||i[e])||gt(t)||(g=w.style(t,e)),!d.pixelBoxStyles()&&Pt.test(g)&&Qt.test(e)&&(n=s.width,o=s.minWidth,r=s.maxWidth,s.minWidth=s.maxWidth=s.width=g,g=i.width,s.width=n,s.minWidth=o,s.maxWidth=r)),void 0!==g?g+"":g}function Yt(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function t(){if(C){A.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",C.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",rt.appendChild(A).appendChild(C);var t=i.getComputedStyle(C);n="1%"!==t.top,a=12===e(t.marginLeft),C.style.right="60%",g=36===e(t.right),o=36===e(t.width),C.style.position="absolute",r=12===e(C.offsetWidth/3),rt.removeChild(A),C=null}}function e(t){return Math.round(parseFloat(t))}var n,o,r,g,s,a,A=v.createElement("div"),C=v.createElement("div");C.style&&(C.style.backgroundClip="content-box",C.cloneNode(!0).style.backgroundClip="",d.clearCloneStyle="content-box"===C.style.backgroundClip,w.extend(d,{boxSizingReliable:function(){return t(),o},pixelBoxStyles:function(){return t(),g},pixelPosition:function(){return t(),n},reliableMarginLeft:function(){return t(),a},scrollboxSize:function(){return t(),r},reliableTrDimensions:function(){var t,e,n,o;return null==s&&(t=v.createElement("table"),e=v.createElement("tr"),n=v.createElement("div"),t.style.cssText="position:absolute;left:-11111px",e.style.height="1px",n.style.height="9px",rt.appendChild(t).appendChild(e).appendChild(n),o=i.getComputedStyle(e),s=parseInt(o.height)>3,rt.removeChild(t)),s}}))}();var Vt=["Webkit","Moz","ms"],Ht=v.createElement("div").style,Xt={};function Jt(t){var e=w.cssProps[t]||Xt[t];return e||(t in Ht?t:Xt[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),i=Vt.length;i--;)if((t=Vt[i]+e)in Ht)return t}(t)||t)}var Kt=/^(none|table(?!-c[ea]).+)/,qt=/^--/,$t={position:"absolute",visibility:"hidden",display:"block"},te={letterSpacing:"0",fontWeight:"400"};function ee(t,e,i){var n=nt.exec(e);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):e}function ie(t,e,i,n,o,r){var g="width"===e?1:0,s=0,a=0;if(i===(n?"border":"content"))return 0;for(;g<4;g+=2)"margin"===i&&(a+=w.css(t,i+ot[g],!0,o)),n?("content"===i&&(a-=w.css(t,"padding"+ot[g],!0,o)),"margin"!==i&&(a-=w.css(t,"border"+ot[g]+"Width",!0,o))):(a+=w.css(t,"padding"+ot[g],!0,o),"padding"!==i?a+=w.css(t,"border"+ot[g]+"Width",!0,o):s+=w.css(t,"border"+ot[g]+"Width",!0,o));return!n&&r>=0&&(a+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-r-a-s-.5))||0),a}function ne(t,e,i){var n=Lt(t),o=(!d.boxSizingReliable()||i)&&"border-box"===w.css(t,"boxSizing",!1,n),r=o,g=Ut(t,e,n),s="offset"+e[0].toUpperCase()+e.slice(1);if(Pt.test(g)){if(!i)return g;g="auto"}return(!d.boxSizingReliable()&&o||!d.reliableTrDimensions()&&M(t,"tr")||"auto"===g||!parseFloat(g)&&"inline"===w.css(t,"display",!1,n))&&t.getClientRects().length&&(o="border-box"===w.css(t,"boxSizing",!1,n),(r=s in t)&&(g=t[s])),(g=parseFloat(g)||0)+ie(t,e,i||(o?"border":"content"),r,n,g)+"px"}function oe(t,e,i,n,o){return new oe.prototype.init(t,e,i,n,o)}w.extend({cssHooks:{opacity:{get:function(t,e){if(e){var i=Ut(t,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,i,n){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var o,r,g,s=H(e),a=qt.test(e),A=t.style;if(a||(e=Jt(s)),g=w.cssHooks[e]||w.cssHooks[s],void 0===i)return g&&"get"in g&&void 0!==(o=g.get(t,!1,n))?o:A[e];"string"===(r=typeof i)&&(o=nt.exec(i))&&o[1]&&(i=At(t,e,o),r="number"),null!=i&&i==i&&("number"!==r||a||(i+=o&&o[3]||(w.cssNumber[s]?"":"px")),d.clearCloneStyle||""!==i||0!==e.indexOf("background")||(A[e]="inherit"),g&&"set"in g&&void 0===(i=g.set(t,i,n))||(a?A.setProperty(e,i):A[e]=i))}},css:function(t,e,i,n){var o,r,g,s=H(e);return qt.test(e)||(e=Jt(s)),(g=w.cssHooks[e]||w.cssHooks[s])&&"get"in g&&(o=g.get(t,!0,i)),void 0===o&&(o=Ut(t,e,n)),"normal"===o&&e in te&&(o=te[e]),""===i||i?(r=parseFloat(o),!0===i||isFinite(r)?r||0:o):o}}),w.each(["height","width"],(function(t,e){w.cssHooks[e]={get:function(t,i,n){if(i)return!Kt.test(w.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?ne(t,e,n):Wt(t,$t,(function(){return ne(t,e,n)}))},set:function(t,i,n){var o,r=Lt(t),g=!d.scrollboxSize()&&"absolute"===r.position,s=(g||n)&&"border-box"===w.css(t,"boxSizing",!1,r),a=n?ie(t,e,n,s,r):0;return s&&g&&(a-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(r[e])-ie(t,e,"border",!1,r)-.5)),a&&(o=nt.exec(i))&&"px"!==(o[3]||"px")&&(t.style[e]=i,i=w.css(t,e)),ee(0,i,a)}}})),w.cssHooks.marginLeft=Yt(d.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(Ut(t,"marginLeft"))||t.getBoundingClientRect().left-Wt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),w.each({margin:"",padding:"",border:"Width"},(function(t,e){w.cssHooks[t+e]={expand:function(i){for(var n=0,o={},r="string"==typeof i?i.split(" "):[i];n<4;n++)o[t+ot[n]+e]=r[n]||r[n-2]||r[0];return o}},"margin"!==t&&(w.cssHooks[t+e].set=ee)})),w.fn.extend({css:function(t,e){return Q(this,(function(t,e,i){var n,o,r={},g=0;if(Array.isArray(e)){for(n=Lt(t),o=e.length;g<o;g++)r[e[g]]=w.css(t,e[g],!1,n);return r}return void 0!==i?w.style(t,e,i):w.css(t,e)}),t,e,arguments.length>1)}}),w.Tween=oe,oe.prototype={constructor:oe,init:function(t,e,i,n,o,r){this.elem=t,this.prop=i,this.easing=o||w.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=r||(w.cssNumber[i]?"":"px")},cur:function(){var t=oe.propHooks[this.prop];return t&&t.get?t.get(this):oe.propHooks._default.get(this)},run:function(t){var e,i=oe.propHooks[this.prop];return this.options.duration?this.pos=e=w.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):oe.propHooks._default.set(this),this}},oe.prototype.init.prototype=oe.prototype,oe.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=w.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){w.fx.step[t.prop]?w.fx.step[t.prop](t):1!==t.elem.nodeType||!w.cssHooks[t.prop]&&null==t.elem.style[Jt(t.prop)]?t.elem[t.prop]=t.now:w.style(t.elem,t.prop,t.now+t.unit)}}},oe.propHooks.scrollTop=oe.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},w.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},w.fx=oe.prototype.init,w.fx.step={};var re,ge,se=/^(?:toggle|show|hide)$/,ae=/queueHooks$/;function Ae(){ge&&(!1===v.hidden&&i.requestAnimationFrame?i.requestAnimationFrame(Ae):i.setTimeout(Ae,w.fx.interval),w.fx.tick())}function Ce(){return i.setTimeout((function(){re=void 0})),re=Date.now()}function Ie(t,e){var i,n=0,o={height:t};for(e=e?1:0;n<4;n+=2-e)o["margin"+(i=ot[n])]=o["padding"+i]=t;return e&&(o.opacity=o.width=t),o}function le(t,e,i){for(var n,o=(ce.tweeners[e]||[]).concat(ce.tweeners["*"]),r=0,g=o.length;r<g;r++)if(n=o[r].call(i,e,t))return n}function ce(t,e,i){var n,o,r=0,g=ce.prefilters.length,s=w.Deferred().always((function(){delete a.elem})),a=function(){if(o)return!1;for(var e=re||Ce(),i=Math.max(0,A.startTime+A.duration-e),n=1-(i/A.duration||0),r=0,g=A.tweens.length;r<g;r++)A.tweens[r].run(n);return s.notifyWith(t,[A,n,i]),n<1&&g?i:(g||s.notifyWith(t,[A,1,0]),s.resolveWith(t,[A]),!1)},A=s.promise({elem:t,props:w.extend({},e),opts:w.extend(!0,{specialEasing:{},easing:w.easing._default},i),originalProperties:e,originalOptions:i,startTime:re||Ce(),duration:i.duration,tweens:[],createTween:function(e,i){var n=w.Tween(t,A.opts,e,i,A.opts.specialEasing[e]||A.opts.easing);return A.tweens.push(n),n},stop:function(e){var i=0,n=e?A.tweens.length:0;if(o)return this;for(o=!0;i<n;i++)A.tweens[i].run(1);return e?(s.notifyWith(t,[A,1,0]),s.resolveWith(t,[A,e])):s.rejectWith(t,[A,e]),this}}),C=A.props;for(!function(t,e){var i,n,o,r,g;for(i in t)if(o=e[n=H(i)],r=t[i],Array.isArray(r)&&(o=r[1],r=t[i]=r[0]),i!==n&&(t[n]=r,delete t[i]),(g=w.cssHooks[n])&&"expand"in g)for(i in r=g.expand(r),delete t[n],r)i in t||(t[i]=r[i],e[i]=o);else e[n]=o}(C,A.opts.specialEasing);r<g;r++)if(n=ce.prefilters[r].call(A,t,C,A.opts))return p(n.stop)&&(w._queueHooks(A.elem,A.opts.queue).stop=n.stop.bind(n)),n;return w.map(C,le,A),p(A.opts.start)&&A.opts.start.call(t,A),A.progress(A.opts.progress).done(A.opts.done,A.opts.complete).fail(A.opts.fail).always(A.opts.always),w.fx.timer(w.extend(a,{elem:t,anim:A,queue:A.opts.queue})),A}w.Animation=w.extend(ce,{tweeners:{"*":[function(t,e){var i=this.createTween(t,e);return At(i.elem,t,nt.exec(e),i),i}]},tweener:function(t,e){p(t)?(e=t,t=["*"]):t=t.match(R);for(var i,n=0,o=t.length;n<o;n++)i=t[n],ce.tweeners[i]=ce.tweeners[i]||[],ce.tweeners[i].unshift(e)},prefilters:[function(t,e,i){var n,o,r,g,s,a,A,C,I="width"in e||"height"in e,l=this,c={},h=t.style,u=t.nodeType&&at(t),d=K.get(t,"fxshow");for(n in i.queue||(null==(g=w._queueHooks(t,"fx")).unqueued&&(g.unqueued=0,s=g.empty.fire,g.empty.fire=function(){g.unqueued||s()}),g.unqueued++,l.always((function(){l.always((function(){g.unqueued--,w.queue(t,"fx").length||g.empty.fire()}))}))),e)if(o=e[n],se.test(o)){if(delete e[n],r=r||"toggle"===o,o===(u?"hide":"show")){if("show"!==o||!d||void 0===d[n])continue;u=!0}c[n]=d&&d[n]||w.style(t,n)}if((a=!w.isEmptyObject(e))||!w.isEmptyObject(c))for(n in I&&1===t.nodeType&&(i.overflow=[h.overflow,h.overflowX,h.overflowY],null==(A=d&&d.display)&&(A=K.get(t,"display")),"none"===(C=w.css(t,"display"))&&(A?C=A:(lt([t],!0),A=t.style.display||A,C=w.css(t,"display"),lt([t]))),("inline"===C||"inline-block"===C&&null!=A)&&"none"===w.css(t,"float")&&(a||(l.done((function(){h.display=A})),null==A&&(C=h.display,A="none"===C?"":C)),h.display="inline-block")),i.overflow&&(h.overflow="hidden",l.always((function(){h.overflow=i.overflow[0],h.overflowX=i.overflow[1],h.overflowY=i.overflow[2]}))),a=!1,c)a||(d?"hidden"in d&&(u=d.hidden):d=K.access(t,"fxshow",{display:A}),r&&(d.hidden=!u),u&&lt([t],!0),l.done((function(){for(n in u||lt([t]),K.remove(t,"fxshow"),c)w.style(t,n,c[n])}))),a=le(u?d[n]:0,n,l),n in d||(d[n]=a.start,u&&(a.end=a.start,a.start=0))}],prefilter:function(t,e){e?ce.prefilters.unshift(t):ce.prefilters.push(t)}}),w.speed=function(t,e,i){var n=t&&"object"==typeof t?w.extend({},t):{complete:i||!i&&e||p(t)&&t,duration:t,easing:i&&e||e&&!p(e)&&e};return w.fx.off?n.duration=0:"number"!=typeof n.duration&&(n.duration in w.fx.speeds?n.duration=w.fx.speeds[n.duration]:n.duration=w.fx.speeds._default),null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){p(n.old)&&n.old.call(this),n.queue&&w.dequeue(this,n.queue)},n},w.fn.extend({fadeTo:function(t,e,i,n){return this.filter(at).css("opacity",0).show().end().animate({opacity:e},t,i,n)},animate:function(t,e,i,n){var o=w.isEmptyObject(t),r=w.speed(e,i,n),g=function(){var e=ce(this,w.extend({},t),r);(o||K.get(this,"finish"))&&e.stop(!0)};return g.finish=g,o||!1===r.queue?this.each(g):this.queue(r.queue,g)},stop:function(t,e,i){var n=function(t){var e=t.stop;delete t.stop,e(i)};return"string"!=typeof t&&(i=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each((function(){var e=!0,o=null!=t&&t+"queueHooks",r=w.timers,g=K.get(this);if(o)g[o]&&g[o].stop&&n(g[o]);else for(o in g)g[o]&&g[o].stop&&ae.test(o)&&n(g[o]);for(o=r.length;o--;)r[o].elem!==this||null!=t&&r[o].queue!==t||(r[o].anim.stop(i),e=!1,r.splice(o,1));!e&&i||w.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,i=K.get(this),n=i[t+"queue"],o=i[t+"queueHooks"],r=w.timers,g=n?n.length:0;for(i.finish=!0,w.queue(this,t,[]),o&&o.stop&&o.stop.call(this,!0),e=r.length;e--;)r[e].elem===this&&r[e].queue===t&&(r[e].anim.stop(!0),r.splice(e,1));for(e=0;e<g;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete i.finish}))}}),w.each(["toggle","show","hide"],(function(t,e){var i=w.fn[e];w.fn[e]=function(t,n,o){return null==t||"boolean"==typeof t?i.apply(this,arguments):this.animate(Ie(e,!0),t,n,o)}})),w.each({slideDown:Ie("show"),slideUp:Ie("hide"),slideToggle:Ie("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){w.fn[t]=function(t,i,n){return this.animate(e,t,i,n)}})),w.timers=[],w.fx.tick=function(){var t,e=0,i=w.timers;for(re=Date.now();e<i.length;e++)(t=i[e])()||i[e]!==t||i.splice(e--,1);i.length||w.fx.stop(),re=void 0},w.fx.timer=function(t){w.timers.push(t),w.fx.start()},w.fx.interval=13,w.fx.start=function(){ge||(ge=!0,Ae())},w.fx.stop=function(){ge=null},w.fx.speeds={slow:600,fast:200,_default:400},w.fn.delay=function(t,e){return t=w.fx&&w.fx.speeds[t]||t,e=e||"fx",this.queue(e,(function(e,n){var o=i.setTimeout(e,t);n.stop=function(){i.clearTimeout(o)}}))},function(){var t=v.createElement("input"),e=v.createElement("select").appendChild(v.createElement("option"));t.type="checkbox",d.checkOn=""!==t.value,d.optSelected=e.selected,(t=v.createElement("input")).value="t",t.type="radio",d.radioValue="t"===t.value}();var he,ue=w.expr.attrHandle;w.fn.extend({attr:function(t,e){return Q(this,w.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){w.removeAttr(this,t)}))}}),w.extend({attr:function(t,e,i){var n,o,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===t.getAttribute?w.prop(t,e,i):(1===r&&w.isXMLDoc(t)||(o=w.attrHooks[e.toLowerCase()]||(w.expr.match.bool.test(e)?he:void 0)),void 0!==i?null===i?void w.removeAttr(t,e):o&&"set"in o&&void 0!==(n=o.set(t,i,e))?n:(t.setAttribute(e,i+""),i):o&&"get"in o&&null!==(n=o.get(t,e))?n:null==(n=w.find.attr(t,e))?void 0:n)},attrHooks:{type:{set:function(t,e){if(!d.radioValue&&"radio"===e&&M(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}}},removeAttr:function(t,e){var i,n=0,o=e&&e.match(R);if(o&&1===t.nodeType)for(;i=o[n++];)t.removeAttribute(i)}}),he={set:function(t,e,i){return!1===e?w.removeAttr(t,i):t.setAttribute(i,i),i}},w.each(w.expr.match.bool.source.match(/\w+/g),(function(t,e){var i=ue[e]||w.find.attr;ue[e]=function(t,e,n){var o,r,g=e.toLowerCase();return n||(r=ue[g],ue[g]=o,o=null!=i(t,e,n)?g:null,ue[g]=r),o}}));var de=/^(?:input|select|textarea|button)$/i,pe=/^(?:a|area)$/i;function fe(t){return(t.match(R)||[]).join(" ")}function ve(t){return t.getAttribute&&t.getAttribute("class")||""}function me(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(R)||[]}w.fn.extend({prop:function(t,e){return Q(this,w.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[w.propFix[t]||t]}))}}),w.extend({prop:function(t,e,i){var n,o,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&w.isXMLDoc(t)||(e=w.propFix[e]||e,o=w.propHooks[e]),void 0!==i?o&&"set"in o&&void 0!==(n=o.set(t,i,e))?n:t[e]=i:o&&"get"in o&&null!==(n=o.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){var e=w.find.attr(t,"tabindex");return e?parseInt(e,10):de.test(t.nodeName)||pe.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),d.optSelected||(w.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),w.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){w.propFix[this.toLowerCase()]=this})),w.fn.extend({addClass:function(t){var e,i,n,o,r,g,s,a=0;if(p(t))return this.each((function(e){w(this).addClass(t.call(this,e,ve(this)))}));if((e=me(t)).length)for(;i=this[a++];)if(o=ve(i),n=1===i.nodeType&&" "+fe(o)+" "){for(g=0;r=e[g++];)n.indexOf(" "+r+" ")<0&&(n+=r+" ");o!==(s=fe(n))&&i.setAttribute("class",s)}return this},removeClass:function(t){var e,i,n,o,r,g,s,a=0;if(p(t))return this.each((function(e){w(this).removeClass(t.call(this,e,ve(this)))}));if(!arguments.length)return this.attr("class","");if((e=me(t)).length)for(;i=this[a++];)if(o=ve(i),n=1===i.nodeType&&" "+fe(o)+" "){for(g=0;r=e[g++];)for(;n.indexOf(" "+r+" ")>-1;)n=n.replace(" "+r+" "," ");o!==(s=fe(n))&&i.setAttribute("class",s)}return this},toggleClass:function(t,e){var i=typeof t,n="string"===i||Array.isArray(t);return"boolean"==typeof e&&n?e?this.addClass(t):this.removeClass(t):p(t)?this.each((function(i){w(this).toggleClass(t.call(this,i,ve(this),e),e)})):this.each((function(){var e,o,r,g;if(n)for(o=0,r=w(this),g=me(t);e=g[o++];)r.hasClass(e)?r.removeClass(e):r.addClass(e);else void 0!==t&&"boolean"!==i||((e=ve(this))&&K.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":K.get(this,"__className__")||""))}))},hasClass:function(t){var e,i,n=0;for(e=" "+t+" ";i=this[n++];)if(1===i.nodeType&&(" "+fe(ve(i))+" ").indexOf(e)>-1)return!0;return!1}});var ye=/\r/g;w.fn.extend({val:function(t){var e,i,n,o=this[0];return arguments.length?(n=p(t),this.each((function(i){var o;1===this.nodeType&&(null==(o=n?t.call(this,i,w(this).val()):t)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=w.map(o,(function(t){return null==t?"":t+""}))),(e=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,o,"value")||(this.value=o))}))):o?(e=w.valHooks[o.type]||w.valHooks[o.nodeName.toLowerCase()])&&"get"in e&&void 0!==(i=e.get(o,"value"))?i:"string"==typeof(i=o.value)?i.replace(ye,""):null==i?"":i:void 0}}),w.extend({valHooks:{option:{get:function(t){var e=w.find.attr(t,"value");return null!=e?e:fe(w.text(t))}},select:{get:function(t){var e,i,n,o=t.options,r=t.selectedIndex,g="select-one"===t.type,s=g?null:[],a=g?r+1:o.length;for(n=r<0?a:g?r:0;n<a;n++)if(((i=o[n]).selected||n===r)&&!i.disabled&&(!i.parentNode.disabled||!M(i.parentNode,"optgroup"))){if(e=w(i).val(),g)return e;s.push(e)}return s},set:function(t,e){for(var i,n,o=t.options,r=w.makeArray(e),g=o.length;g--;)((n=o[g]).selected=w.inArray(w.valHooks.option.get(n),r)>-1)&&(i=!0);return i||(t.selectedIndex=-1),r}}}}),w.each(["radio","checkbox"],(function(){w.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=w.inArray(w(t).val(),e)>-1}},d.checkOn||(w.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})})),d.focusin="onfocusin"in i;var be=/^(?:focusinfocus|focusoutblur)$/,we=function(t){t.stopPropagation()};w.extend(w.event,{trigger:function(t,e,n,o){var r,g,s,a,A,C,I,l,h=[n||v],u=c.call(t,"type")?t.type:t,d=c.call(t,"namespace")?t.namespace.split("."):[];if(g=l=s=n=n||v,3!==n.nodeType&&8!==n.nodeType&&!be.test(u+w.event.triggered)&&(u.indexOf(".")>-1&&(d=u.split("."),u=d.shift(),d.sort()),A=u.indexOf(":")<0&&"on"+u,(t=t[w.expando]?t:new w.Event(u,"object"==typeof t&&t)).isTrigger=o?2:3,t.namespace=d.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:w.makeArray(e,[t]),I=w.event.special[u]||{},o||!I.trigger||!1!==I.trigger.apply(n,e))){if(!o&&!I.noBubble&&!f(n)){for(a=I.delegateType||u,be.test(a+u)||(g=g.parentNode);g;g=g.parentNode)h.push(g),s=g;s===(n.ownerDocument||v)&&h.push(s.defaultView||s.parentWindow||i)}for(r=0;(g=h[r++])&&!t.isPropagationStopped();)l=g,t.type=r>1?a:I.bindType||u,(C=(K.get(g,"events")||Object.create(null))[t.type]&&K.get(g,"handle"))&&C.apply(g,e),(C=A&&g[A])&&C.apply&&X(g)&&(t.result=C.apply(g,e),!1===t.result&&t.preventDefault());return t.type=u,o||t.isDefaultPrevented()||I._default&&!1!==I._default.apply(h.pop(),e)||!X(n)||A&&p(n[u])&&!f(n)&&((s=n[A])&&(n[A]=null),w.event.triggered=u,t.isPropagationStopped()&&l.addEventListener(u,we),n[u](),t.isPropagationStopped()&&l.removeEventListener(u,we),w.event.triggered=void 0,s&&(n[A]=s)),t.result}},simulate:function(t,e,i){var n=w.extend(new w.Event,i,{type:t,isSimulated:!0});w.event.trigger(n,null,e)}}),w.fn.extend({trigger:function(t,e){return this.each((function(){w.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var i=this[0];if(i)return w.event.trigger(t,e,i,!0)}}),d.focusin||w.each({focus:"focusin",blur:"focusout"},(function(t,e){var i=function(t){w.event.simulate(e,t.target,w.event.fix(t))};w.event.special[e]={setup:function(){var n=this.ownerDocument||this.document||this,o=K.access(n,e);o||n.addEventListener(t,i,!0),K.access(n,e,(o||0)+1)},teardown:function(){var n=this.ownerDocument||this.document||this,o=K.access(n,e)-1;o?K.access(n,e,o):(n.removeEventListener(t,i,!0),K.remove(n,e))}}}));var xe=i.location,ke={guid:Date.now()},_e=/\?/;w.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new i.DOMParser).parseFromString(t,"text/xml")}catch(t){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||w.error("Invalid XML: "+t),e};var De=/\[\]$/,Oe=/\r?\n/g,Me=/^(?:submit|button|image|reset|file)$/i,Te=/^(?:input|select|textarea|keygen)/i;function Ne(t,e,i,n){var o;if(Array.isArray(e))w.each(e,(function(e,o){i||De.test(t)?n(t,o):Ne(t+"["+("object"==typeof o&&null!=o?e:"")+"]",o,i,n)}));else if(i||"object"!==b(e))n(t,e);else for(o in e)Ne(t+"["+o+"]",e[o],i,n)}w.param=function(t,e){var i,n=[],o=function(t,e){var i=p(e)?e():e;n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==i?"":i)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!w.isPlainObject(t))w.each(t,(function(){o(this.name,this.value)}));else for(i in t)Ne(i,t[i],e,o);return n.join("&")},w.fn.extend({serialize:function(){return w.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=w.prop(this,"elements");return t?w.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!w(this).is(":disabled")&&Te.test(this.nodeName)&&!Me.test(t)&&(this.checked||!ut.test(t))})).map((function(t,e){var i=w(this).val();return null==i?null:Array.isArray(i)?w.map(i,(function(t){return{name:e.name,value:t.replace(Oe,"\r\n")}})):{name:e.name,value:i.replace(Oe,"\r\n")}})).get()}});var Ee=/%20/g,Fe=/#.*$/,Se=/([?&])_=[^&]*/,je=/^(.*?):[ \t]*([^\r\n]*)$/gm,Be=/^(?:GET|HEAD)$/,Re=/^\/\//,ze={},Ze={},Ge="*/".concat("*"),Pe=v.createElement("a");function Le(t){return function(e,i){"string"!=typeof e&&(i=e,e="*");var n,o=0,r=e.toLowerCase().match(R)||[];if(p(i))for(;n=r[o++];)"+"===n[0]?(n=n.slice(1)||"*",(t[n]=t[n]||[]).unshift(i)):(t[n]=t[n]||[]).push(i)}}function We(t,e,i,n){var o={},r=t===Ze;function g(s){var a;return o[s]=!0,w.each(t[s]||[],(function(t,s){var A=s(e,i,n);return"string"!=typeof A||r||o[A]?r?!(a=A):void 0:(e.dataTypes.unshift(A),g(A),!1)})),a}return g(e.dataTypes[0])||!o["*"]&&g("*")}function Qe(t,e){var i,n,o=w.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((o[i]?t:n||(n={}))[i]=e[i]);return n&&w.extend(!0,t,n),t}Pe.href=xe.href,w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:xe.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(xe.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ge,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":w.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Qe(Qe(t,w.ajaxSettings),e):Qe(w.ajaxSettings,t)},ajaxPrefilter:Le(ze),ajaxTransport:Le(Ze),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,o,r,g,s,a,A,C,I,l,c=w.ajaxSetup({},e),h=c.context||c,u=c.context&&(h.nodeType||h.jquery)?w(h):w.event,d=w.Deferred(),p=w.Callbacks("once memory"),f=c.statusCode||{},m={},y={},b="canceled",x={readyState:0,getResponseHeader:function(t){var e;if(A){if(!g)for(g={};e=je.exec(r);)g[e[1].toLowerCase()+" "]=(g[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=g[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return A?r:null},setRequestHeader:function(t,e){return null==A&&(t=y[t.toLowerCase()]=y[t.toLowerCase()]||t,m[t]=e),this},overrideMimeType:function(t){return null==A&&(c.mimeType=t),this},statusCode:function(t){var e;if(t)if(A)x.always(t[x.status]);else for(e in t)f[e]=[f[e],t[e]];return this},abort:function(t){var e=t||b;return n&&n.abort(e),k(0,e),this}};if(d.promise(x),c.url=((t||c.url||xe.href)+"").replace(Re,xe.protocol+"//"),c.type=e.method||e.type||c.method||c.type,c.dataTypes=(c.dataType||"*").toLowerCase().match(R)||[""],null==c.crossDomain){a=v.createElement("a");try{a.href=c.url,a.href=a.href,c.crossDomain=Pe.protocol+"//"+Pe.host!=a.protocol+"//"+a.host}catch(t){c.crossDomain=!0}}if(c.data&&c.processData&&"string"!=typeof c.data&&(c.data=w.param(c.data,c.traditional)),We(ze,c,e,x),A)return x;for(I in(C=w.event&&c.global)&&0==w.active++&&w.event.trigger("ajaxStart"),c.type=c.type.toUpperCase(),c.hasContent=!Be.test(c.type),o=c.url.replace(Fe,""),c.hasContent?c.data&&c.processData&&0===(c.contentType||"").indexOf("application/x-www-form-urlencoded")&&(c.data=c.data.replace(Ee,"+")):(l=c.url.slice(o.length),c.data&&(c.processData||"string"==typeof c.data)&&(o+=(_e.test(o)?"&":"?")+c.data,delete c.data),!1===c.cache&&(o=o.replace(Se,"$1"),l=(_e.test(o)?"&":"?")+"_="+ke.guid+++l),c.url=o+l),c.ifModified&&(w.lastModified[o]&&x.setRequestHeader("If-Modified-Since",w.lastModified[o]),w.etag[o]&&x.setRequestHeader("If-None-Match",w.etag[o])),(c.data&&c.hasContent&&!1!==c.contentType||e.contentType)&&x.setRequestHeader("Content-Type",c.contentType),x.setRequestHeader("Accept",c.dataTypes[0]&&c.accepts[c.dataTypes[0]]?c.accepts[c.dataTypes[0]]+("*"!==c.dataTypes[0]?", "+Ge+"; q=0.01":""):c.accepts["*"]),c.headers)x.setRequestHeader(I,c.headers[I]);if(c.beforeSend&&(!1===c.beforeSend.call(h,x,c)||A))return x.abort();if(b="abort",p.add(c.complete),x.done(c.success),x.fail(c.error),n=We(Ze,c,e,x)){if(x.readyState=1,C&&u.trigger("ajaxSend",[x,c]),A)return x;c.async&&c.timeout>0&&(s=i.setTimeout((function(){x.abort("timeout")}),c.timeout));try{A=!1,n.send(m,k)}catch(t){if(A)throw t;k(-1,t)}}else k(-1,"No Transport");function k(t,e,g,a){var I,l,v,m,y,b=e;A||(A=!0,s&&i.clearTimeout(s),n=void 0,r=a||"",x.readyState=t>0?4:0,I=t>=200&&t<300||304===t,g&&(m=function(t,e,i){for(var n,o,r,g,s=t.contents,a=t.dataTypes;"*"===a[0];)a.shift(),void 0===n&&(n=t.mimeType||e.getResponseHeader("Content-Type"));if(n)for(o in s)if(s[o]&&s[o].test(n)){a.unshift(o);break}if(a[0]in i)r=a[0];else{for(o in i){if(!a[0]||t.converters[o+" "+a[0]]){r=o;break}g||(g=o)}r=r||g}if(r)return r!==a[0]&&a.unshift(r),i[r]}(c,x,g)),!I&&w.inArray("script",c.dataTypes)>-1&&(c.converters["text script"]=function(){}),m=function(t,e,i,n){var o,r,g,s,a,A={},C=t.dataTypes.slice();if(C[1])for(g in t.converters)A[g.toLowerCase()]=t.converters[g];for(r=C.shift();r;)if(t.responseFields[r]&&(i[t.responseFields[r]]=e),!a&&n&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),a=r,r=C.shift())if("*"===r)r=a;else if("*"!==a&&a!==r){if(!(g=A[a+" "+r]||A["* "+r]))for(o in A)if((s=o.split(" "))[1]===r&&(g=A[a+" "+s[0]]||A["* "+s[0]])){!0===g?g=A[o]:!0!==A[o]&&(r=s[0],C.unshift(s[1]));break}if(!0!==g)if(g&&t.throws)e=g(e);else try{e=g(e)}catch(t){return{state:"parsererror",error:g?t:"No conversion from "+a+" to "+r}}}return{state:"success",data:e}}(c,m,x,I),I?(c.ifModified&&((y=x.getResponseHeader("Last-Modified"))&&(w.lastModified[o]=y),(y=x.getResponseHeader("etag"))&&(w.etag[o]=y)),204===t||"HEAD"===c.type?b="nocontent":304===t?b="notmodified":(b=m.state,l=m.data,I=!(v=m.error))):(v=b,!t&&b||(b="error",t<0&&(t=0))),x.status=t,x.statusText=(e||b)+"",I?d.resolveWith(h,[l,b,x]):d.rejectWith(h,[x,b,v]),x.statusCode(f),f=void 0,C&&u.trigger(I?"ajaxSuccess":"ajaxError",[x,c,I?l:v]),p.fireWith(h,[x,b]),C&&(u.trigger("ajaxComplete",[x,c]),--w.active||w.event.trigger("ajaxStop")))}return x},getJSON:function(t,e,i){return w.get(t,e,i,"json")},getScript:function(t,e){return w.get(t,void 0,e,"script")}}),w.each(["get","post"],(function(t,e){w[e]=function(t,i,n,o){return p(i)&&(o=o||n,n=i,i=void 0),w.ajax(w.extend({url:t,type:e,dataType:o,data:i,success:n},w.isPlainObject(t)&&t))}})),w.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),w._evalUrl=function(t,e,i){return w.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){w.globalEval(t,e,i)}})},w.fn.extend({wrapAll:function(t){var e;return this[0]&&(p(t)&&(t=t.call(this[0])),e=w(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return p(t)?this.each((function(e){w(this).wrapInner(t.call(this,e))})):this.each((function(){var e=w(this),i=e.contents();i.length?i.wrapAll(t):e.append(t)}))},wrap:function(t){var e=p(t);return this.each((function(i){w(this).wrapAll(e?t.call(this,i):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){w(this).replaceWith(this.childNodes)})),this}}),w.expr.pseudos.hidden=function(t){return!w.expr.pseudos.visible(t)},w.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},w.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(t){}};var Ue={0:200,1223:204},Ye=w.ajaxSettings.xhr();d.cors=!!Ye&&"withCredentials"in Ye,d.ajax=Ye=!!Ye,w.ajaxTransport((function(t){var e,n;if(d.cors||Ye&&!t.crossDomain)return{send:function(o,r){var g,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(g in t.xhrFields)s[g]=t.xhrFields[g];for(g in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)s.setRequestHeader(g,o[g]);e=function(t){return function(){e&&(e=n=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===t?s.abort():"error"===t?"number"!=typeof s.status?r(0,"error"):r(s.status,s.statusText):r(Ue[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=e(),n=s.onerror=s.ontimeout=e("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&i.setTimeout((function(){e&&n()}))},e=e("abort");try{s.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}})),w.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),w.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return w.globalEval(t),t}}}),w.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),w.ajaxTransport("script",(function(t){var e,i;if(t.crossDomain||t.scriptAttrs)return{send:function(n,o){e=w("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",i=function(t){e.remove(),i=null,t&&o("error"===t.type?404:200,t.type)}),v.head.appendChild(e[0])},abort:function(){i&&i()}}}));var Ve,He=[],Xe=/(=)\?(?=&|$)|\?\?/;w.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=He.pop()||w.expando+"_"+ke.guid++;return this[t]=!0,t}}),w.ajaxPrefilter("json jsonp",(function(t,e,n){var o,r,g,s=!1!==t.jsonp&&(Xe.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Xe.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return o=t.jsonpCallback=p(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Xe,"$1"+o):!1!==t.jsonp&&(t.url+=(_e.test(t.url)?"&":"?")+t.jsonp+"="+o),t.converters["script json"]=function(){return g||w.error(o+" was not called"),g[0]},t.dataTypes[0]="json",r=i[o],i[o]=function(){g=arguments},n.always((function(){void 0===r?w(i).removeProp(o):i[o]=r,t[o]&&(t.jsonpCallback=e.jsonpCallback,He.push(o)),g&&p(r)&&r(g[0]),g=r=void 0})),"script"})),d.createHTMLDocument=((Ve=v.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Ve.childNodes.length),w.parseHTML=function(t,e,i){return"string"!=typeof t?[]:("boolean"==typeof e&&(i=e,e=!1),e||(d.createHTMLDocument?((n=(e=v.implementation.createHTMLDocument("")).createElement("base")).href=v.location.href,e.head.appendChild(n)):e=v),r=!i&&[],(o=T.exec(t))?[e.createElement(o[1])]:(o=bt([t],e,r),r&&r.length&&w(r).remove(),w.merge([],o.childNodes)));var n,o,r},w.fn.load=function(t,e,i){var n,o,r,g=this,s=t.indexOf(" ");return s>-1&&(n=fe(t.slice(s)),t=t.slice(0,s)),p(e)?(i=e,e=void 0):e&&"object"==typeof e&&(o="POST"),g.length>0&&w.ajax({url:t,type:o||"GET",dataType:"html",data:e}).done((function(t){r=arguments,g.html(n?w("<div>").append(w.parseHTML(t)).find(n):t)})).always(i&&function(t,e){g.each((function(){i.apply(this,r||[t.responseText,e,t])}))}),this},w.expr.pseudos.animated=function(t){return w.grep(w.timers,(function(e){return t===e.elem})).length},w.offset={setOffset:function(t,e,i){var n,o,r,g,s,a,A=w.css(t,"position"),C=w(t),I={};"static"===A&&(t.style.position="relative"),s=C.offset(),r=w.css(t,"top"),a=w.css(t,"left"),("absolute"===A||"fixed"===A)&&(r+a).indexOf("auto")>-1?(g=(n=C.position()).top,o=n.left):(g=parseFloat(r)||0,o=parseFloat(a)||0),p(e)&&(e=e.call(t,i,w.extend({},s))),null!=e.top&&(I.top=e.top-s.top+g),null!=e.left&&(I.left=e.left-s.left+o),"using"in e?e.using.call(t,I):("number"==typeof I.top&&(I.top+="px"),"number"==typeof I.left&&(I.left+="px"),C.css(I))}},w.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){w.offset.setOffset(this,t,e)}));var e,i,n=this[0];return n?n.getClientRects().length?(e=n.getBoundingClientRect(),i=n.ownerDocument.defaultView,{top:e.top+i.pageYOffset,left:e.left+i.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,i,n=this[0],o={top:0,left:0};if("fixed"===w.css(n,"position"))e=n.getBoundingClientRect();else{for(e=this.offset(),i=n.ownerDocument,t=n.offsetParent||i.documentElement;t&&(t===i.body||t===i.documentElement)&&"static"===w.css(t,"position");)t=t.parentNode;t&&t!==n&&1===t.nodeType&&((o=w(t).offset()).top+=w.css(t,"borderTopWidth",!0),o.left+=w.css(t,"borderLeftWidth",!0))}return{top:e.top-o.top-w.css(n,"marginTop",!0),left:e.left-o.left-w.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===w.css(t,"position");)t=t.offsetParent;return t||rt}))}}),w.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var i="pageYOffset"===e;w.fn[t]=function(n){return Q(this,(function(t,n,o){var r;if(f(t)?r=t:9===t.nodeType&&(r=t.defaultView),void 0===o)return r?r[e]:t[n];r?r.scrollTo(i?r.pageXOffset:o,i?o:r.pageYOffset):t[n]=o}),t,n,arguments.length)}})),w.each(["top","left"],(function(t,e){w.cssHooks[e]=Yt(d.pixelPosition,(function(t,i){if(i)return i=Ut(t,e),Pt.test(i)?w(t).position()[e]+"px":i}))})),w.each({Height:"height",Width:"width"},(function(t,e){w.each({padding:"inner"+t,content:e,"":"outer"+t},(function(i,n){w.fn[n]=function(o,r){var g=arguments.length&&(i||"boolean"!=typeof o),s=i||(!0===o||!0===r?"margin":"border");return Q(this,(function(e,i,o){var r;return f(e)?0===n.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+t],r["scroll"+t],e.body["offset"+t],r["offset"+t],r["client"+t])):void 0===o?w.css(e,i,s):w.style(e,i,o,s)}),e,g?o:void 0,g)}}))})),w.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){w.fn[e]=function(t){return this.on(e,t)}})),w.fn.extend({bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,n){return this.on(e,t,i,n)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)},hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),w.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(t,e){w.fn[e]=function(t,i){return arguments.length>0?this.on(e,null,t,i):this.trigger(e)}}));var Je=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;w.proxy=function(t,e){var i,n,o;if("string"==typeof e&&(i=t[e],e=t,t=i),p(t))return n=s.call(arguments,2),(o=function(){return t.apply(e||this,n.concat(s.call(arguments)))}).guid=t.guid=t.guid||w.guid++,o},w.holdReady=function(t){t?w.readyWait++:w.ready(!0)},w.isArray=Array.isArray,w.parseJSON=JSON.parse,w.nodeName=M,w.isFunction=p,w.isWindow=f,w.camelCase=H,w.type=b,w.now=Date.now,w.isNumeric=function(t){var e=w.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},w.trim=function(t){return null==t?"":(t+"").replace(Je,"")},void 0===(n=function(){return w}.apply(e,[]))||(t.exports=n);var Ke=i.jQuery,qe=i.$;return w.noConflict=function(t){return i.$===w&&(i.$=qe),t&&i.jQuery===w&&(i.jQuery=Ke),w},void 0===o&&(i.jQuery=i.$=w),w}))},function(t,e,i){"use strict";i.r(e),i.d(e,"DataSet",(function(){return n.a})),i.d(e,"DataView",(function(){return n.b})),i.d(e,"Network",(function(){return n.c})),i.d(e,"NetworkImages",(function(){return n.d})),i.d(e,"Queue",(function(){return n.e})),i.d(e,"data",(function(){return n.f})),i.d(e,"networkDOTParser",(function(){return n.g})),i.d(e,"networkGephiParser",(function(){return n.h})),i.d(e,"networkOptions",(function(){return n.i})),i.d(e,"parseDOTNetwork",(function(){return n.j})),i.d(e,"parseGephiNetwork",(function(){return n.k})),i.d(e,"util",(function(){return n.l}));var n=i(1)},function(t,e,i){"use strict";function n(t){for(var i in t)e.hasOwnProperty(i)||(e[i]=t[i])}Object.defineProperty(e,"__esModule",{value:!0}),n(i(0)),n(i(7))},function(t){t.exports=JSON.parse('{"name":"graph_notebook_widgets","version":"2.0.9","author":"amazon","description":"A Custom Jupyter Library for rendering NetworkX MultiDiGraphs using vis-network","dependencies":{"@jupyter-widgets/base":"2.0.2","feather-icons":"4.28.0","jquery":"3.5.1","jqueryui":"1.11.1","lodash":"4.17.19","vis-data":"6.5.1","vis-network":"7.6.3","vis-util":"4.0.0"},"devDependencies":{"@phosphor/application":"1.7.3","@phosphor/widgets":"1.9.3","@types/chai":"4.2.11","@types/feather-icons":"4.7.0","@types/jquery":"3.5.0","@types/jqueryui":"1.12.13","@types/mocha":"7.0.2","@types/node":"13.13.5","@types/webpack-env":"1.15.2","@typescript-eslint/eslint-plugin":"2.32.0","@typescript-eslint/parser":"2.32.0","chai":"4.2.0","css-loader":"3.5.3","eslint":"6.8.0","eslint-config-prettier":"6.11.0","eslint-loader":"4.0.2","eslint-plugin-prettier":"3.1.3","fs-extra":"9.0.0","json-schema":"0.2.5","karma":"5.0.5","karma-chai":"0.1.0","karma-firefox-launcher":"1.3.0","karma-mocha":"2.0.1","karma-mocha-reporter":"2.2.5","karma-sinon":"1.0.5","karma-sourcemap-loader":"0.3.7","karma-webpack":"4.0.2","mkdirp":"0.5.5","mocha":"7.1.2","npm-run-all":"4.1.5","opencollective":"1.0.3","prettier":"2.0.5","rimraf":"3.0.2","sinon":"9.0.2","source-map-loader":"0.2.4","style-loader":"1.2.1","ts-loader":"5.4.5","typescript":"3.8.3","webpack":"4.43.0","webpack-cli":"3.3.11","webpack-dev-server":"3.11.0"},"files":["lib/**/*.js","dist/*.js","css/*.css"],"jupyterlab":{"extension":"lib/plugin"},"keywords":["jupyter","widgets","ipython","ipywidgets","jupyterlab-extension"],"main":"lib/index.js","types":"lib/index.d.ts","scripts":{"build":"webpack -p","build:lib":"tsc","build:labextension":"mkdirp labextension && cd labextension && npm pack ../","build:all":"npm run build && npm run build:labextension","clean":"rimraf dist && rimraf docs && rimraf lib && rimraf nbextension && rimraf labextension","dist":"npm run clean && npm run build:all","dev":"npm run clean && webpack -d --config webpack.dev.config.js","lint":"eslint \'src/**/*.{js,ts,tsx}\'","lint:fix":"eslint \'src/**/*.{js,ts,tsx}\' --fix","test":"karma start karma.conf.js","start":"webpack-dev-server --config webpack.dev.config.js","watch":"npm-run-all -p watch:*","watch:lib":"tsc -w","watch:nbextension":"webpack --watch"}}')},function(t,e,i){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=i(8),r=i(4),g=i(9),s=i(0),a=n(i(12)),A=n(i(3));i(13),i(14),a.default.replace();class C extends o.DOMWidgetModel{defaults(){return Object.assign(Object.assign({},super.defaults()),{_model_name:C.model_name,_model_module:C.model_module,_model_module_version:C.model_module_version,_view_name:C.view_name,_view_module:C.view_module,_view_module_version:C.view_module_version})}}e.ForceModel=C,C.serializers=Object.assign({},o.DOMWidgetModel.serializers),C.model_name="ForceModel",C.model_module=s.MODULE_NAME,C.model_module_version=s.MODULE_VERSION,C.view_name="ForceView",C.view_module=s.MODULE_NAME,C.view_module_version=s.MODULE_VERSION;class I extends o.DOMWidgetView{constructor(){super(...arguments),this.networkDiv=document.createElement("div"),this.canvasDiv=document.createElement("div"),this.menu=document.createElement("div"),this.expandDiv=document.createElement("div"),this.searchDiv=document.createElement("div"),this.detailsDiv=document.createElement("div"),this.nodeDataset=new g.NodeDataSet(new Array,{}),this.edgeDataset=new g.EdgeDataSet(new Array,{}),this.visOptions={},this.vis=null,this.detailsPanel=document.createElement("div"),this.detailsHeader=document.createElement("div"),this.graphPropertiesTable=document.createElement("table"),this.emptyDetailsMessage=document.createElement("p"),this.graphTableDiv=document.createElement("div"),this.resizeHandle=document.createElement("div"),this.detailsContainer=document.createElement("div"),this.noDataMessage="No additional data from data source found.",this.noElementSelectedMessage="Select a single node or edge to see more.",this.expandBtn=document.createElement("button"),this.nodeIDSearchMatches=new Array,this.edgeIDSearchMatches=new Array,this.closeButton=document.createElement("button"),this.detailsText=document.createElement("p"),this.searchMatchColorEdge="rgba(9,120,209,1)",this.searchMatchColorNode={background:"rgba(210, 229, 255, 1)",border:"#0978D1"},this.detailsBtn=document.createElement("button"),this.selectedNodeID=""}render(){this.networkDiv.classList.add("network-div"),this.canvasDiv.style.height="600px",this.canvasDiv.style.width="100%",this.networkDiv.appendChild(this.canvasDiv),this.menu.classList.add("menu-div"),this.networkDiv.appendChild(this.menu),this.networkDiv.appendChild(this.detailsPanel),this.el.appendChild(this.networkDiv);const t=this.model.get("network");this.visOptions=this.model.get("options"),this.populateDatasets(t);const e={nodes:this.nodeDataset,edges:this.edgeDataset};this.vis=new r.Network(this.canvasDiv,e,this.visOptions),setTimeout(()=>{var t;null===(t=this.vis)||void 0===t||t.stopSimulation()},1500),this.listenTo(this.model,"msg:custom",this.interceptCustom),this.listenTo(this.model,"change:network",this.changeNetwork),this.listenTo(this.model,"change:options",this.changeOptions),this.buildActions(),this.registerVisEvents(),this.registerWidgetEvents()}populateDatasets(t){const e=this.linksToEdges(t.graph.links);this.nodeDataset.update(t.graph.nodes),this.edgeDataset.update(e)}changeNetwork(){const t=this.model.get("network");this.populateDatasets(t)}changeOptions(){this.visOptions=this.model.get("options"),null!=this.vis&&this.vis.setOptions(this.visOptions)}interceptCustom(t){const e=t.data;switch(t.method){case"add_node":this.addNode(e);break;case"add_node_data":this.addNodeData(e);break;case"add_node_property":this.addNodeProperty(e);break;case"add_edge":this.addEdge(e);break;case"add_edge_data":this.addEdgeData(e);break;default:console.log("unsupported method found",t.method)}}addNode(t){if(!t.hasOwnProperty("node_id"))return;const e=t.node_id;let i=this.nodeDataset.get(e);i=null===i?g.VisNode.fromObject(Object.assign({id:e},t.data)):g.VisNode.mergeObject(i,t.data),i.hasOwnProperty("label")||(i.label=e),this.nodeDataset.update([i])}addNodeData(t){this.addNode(t)}addNodeProperty(t){const e=new g.DynamicObject;e[t.key]=t.value,this.addNode({node_id:t.node_id,data:{properties:e}})}addEdge(t){if(!t.hasOwnProperty("from_id")||!t.hasOwnProperty("to_id")||!t.hasOwnProperty("edge_id"))return;const e=t.hasOwnProperty("label")?t.label:t.edge_id,i=t.hasOwnProperty("data")?t.data:{},n=t.from_id+":"+t.to_id+":"+t.edge_id,o=Object.assign({from:t.from_id,to:t.to_id,id:n,label:e},i);let r=this.edgeDataset.get(n);r=null===r?g.VisEdge.fromObject(o):g.VisEdge.mergeObject(r,o),this.edgeDataset.update([r])}addEdgeData(t){this.addEdge(t)}linksToEdges(t){const e=new Array,i=["source","target","key"];return t.forEach((function(t){const n=new g.VisEdge(t.source,t.target,t.key,t.label);for(const e in t)e in i||(n[e]=t[e]);e.push(n)})),e}registerVisEvents(){var t,e,i,n,o,r;null===(t=this.vis)||void 0===t||t.on("click",t=>{0===t.nodes.length&&1===t.edges.length?this.handleEdgeClick(t.edges[0]):0===t.nodes.length&&0===t.edges.length&&this.handleEmptyClick()}),null===(e=this.vis)||void 0===e||e.on("selectNode",t=>{this.handleNodeClick(t.nodes[0])}),null===(i=this.vis)||void 0===i||i.on("deselectNode",t=>{console.log("deselect"),t.previousSelection.nodes.forEach(t=>{this.handleDeselectNode(t)})}),null===(n=this.vis)||void 0===n||n.on("dragStart",t=>{const e={};t.nodes.forEach(t=>{e[t]=!0}),!e.hasOwnProperty(this.selectedNodeID)&&t.nodes.length>0&&this.handleDeselectNode(this.selectedNodeID),this.handleNodeClick(t.nodes[0])}),null===(o=this.vis)||void 0===o||o.on("startStabilizing",()=>{setTimeout(()=>{var t;null===(t=this.vis)||void 0===t||t.stopSimulation()},1500)}),null===(r=this.vis)||void 0===r||r.on("selectEdge",t=>{t.edges.forEach(e=>{this.handleEdgeClick(t.edges[0])})})}handleDeselectNode(t){var e;console.log("handle deselect");const i=this.nodeDataset.get(t);null!==i&&(null!=t&&i.id===t?i.group||(i.color=this.searchMatchColorNode):i.color=this.visOptions.nodes.color,i.borderWidth=0,this.nodeDataset.update(i),null===(e=this.vis)||void 0===e||e.stopSimulation(),this.selectedNodeID="")}handleEmptyClick(){this.hideGraphProperties(),this.detailsText.innerText="Details",this.setDetailsMessage(this.noElementSelectedMessage)}hideGraphProperties(){this.emptyDetailsMessage.classList.contains("displayNone")&&this.emptyDetailsMessage.classList.toggle("displayNone"),this.graphTableDiv.classList.contains("displayNone")||this.graphTableDiv.classList.toggle("displayNone")}buildGraphPropertiesTable(t){const e=A.default(this.graphPropertiesTable);let i;t.hasOwnProperty("properties")?(i=this.buildTableRows(t.properties),A.default(e).empty(),A.default(e).append(...i),this.showGraphProperties()):(this.hideGraphProperties(),this.setDetailsMessage(this.noDataMessage))}showGraphProperties(){this.graphTableDiv.classList.contains("displayNone")&&this.graphTableDiv.classList.toggle("displayNone"),this.emptyDetailsMessage.classList.contains("displayNone")||this.emptyDetailsMessage.classList.toggle("displayNone")}setDetailsMessage(t){A.default(this.emptyDetailsMessage).text(t)}buildTableRows(t){const e=new Array;if(Object.entries(t).sort((t,e)=>t[0].localeCompare(e[0])).forEach(t=>{const i=document.createElement("tr"),n=document.createElement("td"),o=document.createElement("td");n.appendChild(document.createTextNode(t[0].toString())),o.appendChild(document.createTextNode(t[1].toString())),i.appendChild(n),i.appendChild(o),e.push(i)}),0===e.length){const t=document.createElement("tr"),i=document.createElement("td");i.appendChild(document.createTextNode("No additional data from data source found.")),t.appendChild(i),e.push(t)}return e}handleNodeClick(t){var e;if(void 0===t)return;this.handleDeselectNode(this.selectedNodeID);const i=this.nodeDataset.get(t);null!==i&&(void 0!==i.label&&""!==i.label?this.detailsText.innerText="Details - "+i.title:this.detailsText.innerText="Details",this.buildGraphPropertiesTable(i),i.group?(i.font={bold:!0},i.opacity=1,i.borderWidth=3):i.font={color:"white"},this.nodeDataset.update(i),null===(e=this.vis)||void 0===e||e.stopSimulation(),this.selectedNodeID=t)}handleEdgeClick(t){const e=this.edgeDataset.get(t);null!==e&&(void 0!==e.title&&""!==e.title?this.detailsText.innerText="Details - "+e.title:this.detailsText.innerText="Details",this.buildGraphPropertiesTable(e))}handleSearchInput(t){var e,i,n,o,r;const g=[],s=[],a={},A={},C={};null===(e=this.vis)||void 0===e||e.getSelectedNodes().forEach(t=>{C[t]=!0});const I={};null===(i=this.vis)||void 0===i||i.getSelectedEdges().forEach(t=>{I[t]=!0}),""!==t?(this.nodeDataset.forEach((e,i)=>{if(this.search(t,e,0)){const t=i.toString();g.push({id:t,borderWidth:3}),a[i.toString()]=!0}}),this.edgeDataset.forEach((e,i)=>{this.search(t,e,0)&&(s.push({id:i.toString(),width:3,color:this.searchMatchColorEdge}),A[i.toString()]=!0)})):this.nodeDataset.forEach((t,e)=>{const i=e.toString();g.push({id:i,opacity:1,borderWidth:0}),a[e.toString()]=!0}),this.nodeIDSearchMatches.forEach(t=>{if(!a.hasOwnProperty(t.toString())){const e=C.hasOwnProperty(t.toString());g.push({id:t.toString(),borderWidth:e?this.visOptions.nodes.borderWidthSelected:0,opacity:.35})}}),this.edgeIDSearchMatches.forEach(t=>{A.hasOwnProperty(t.toString())||s.push({id:t.toString(),width:1,color:this.visOptions.edges.color})}),null===(n=this.vis)||void 0===n||n.setOptions({physics:!1}),this.nodeDataset.update(g),this.edgeDataset.update(s),null===(o=this.vis)||void 0===o||o.setOptions({physics:!0}),null===(r=this.vis)||void 0===r||r.stopSimulation(),this.nodeIDSearchMatches=Object.keys(a),this.edgeIDSearchMatches=Object.keys(A)}buildActions(){const t=document.createElement("div");t.classList.add("right-actions"),this.menu.append(t),this.expandDiv.classList.add("menu-action","expand-div"),this.searchDiv.classList.add("menu-action","search-div"),this.detailsDiv.classList.add("menu-action","details-div");const e=document.createElement("input");e.classList.add("search-bar"),e.type="search",e.placeholder="search",e.onkeyup=()=>{this.handleSearchInput(e.value)},this.searchDiv.append(e),t.append(this.searchDiv),this.detailsBtn.innerHTML=a.default.icons.list.toSvg(),this.detailsBtn.title="Details",this.detailsDiv.appendChild(this.detailsBtn),t.append(this.detailsDiv),this.detailsBtn.onclick=()=>{this.handleDetailsToggle()},this.closeButton.onclick=()=>{this.handleDetailsToggle()},this.detailsContainer.classList.add("details-container"),this.detailsPanel.classList.add("details","hidden"),this.detailsPanel.style.top="100px",this.detailsPanel.style.left="100px",this.detailsHeader.classList.add("details-header"),this.detailsText.className="details-text",this.closeButton.className="close-button",this.detailsHeader.append(this.detailsText,this.closeButton),this.closeButton.innerText="x",this.detailsText.innerText="Details";const i=document.createElement("div");i.classList.add("details-footer");const n=document.createElement("button");n.classList.add("details-footer-button"),n.textContent="Close",i.append(n),n.onclick=()=>{this.handleDetailsToggle()},this.detailsPanel.appendChild(this.detailsContainer),this.graphPropertiesTable.classList.add("properties-table"),this.graphTableDiv.classList.add("properties-content","displayNone"),this.graphTableDiv.append(this.graphPropertiesTable),this.emptyDetailsMessage.textContent="Select a single node or edge to see more.",this.emptyDetailsMessage.classList.add("emptyDetails"),this.resizeHandle.classList.add("resizeHandle"),this.detailsContainer.append(this.detailsHeader,this.emptyDetailsMessage,this.graphTableDiv,i),this.expandBtn.innerHTML=a.default.icons["maximize-2"].toSvg(),this.expandBtn.title="Fullscreen",this.expandBtn.onclick=()=>{this.toggleExpand()},this.expandDiv.appendChild(this.expandBtn),t.append(this.expandDiv);const o=new g.ForceDraggableOptions;o.handle=".details-header",o.containment="parent",A.default(this.detailsPanel).draggable(o);const r=new g.ForceResizableOptions;r.handles="s, e, w, se, sw",r.resize=(t,e)=>{this.detailsContainer.style.height=e.size.height.toString()+"px",this.detailsContainer.style.width=e.size.width.toString()+"px"},A.default(this.detailsPanel).resizable(r);const s=document.createElement("div"),C=document.createElement("div"),I=document.createElement("button");I.title="Zoom In",I.onclick=()=>{var t,e;null===(t=this.vis)||void 0===t||t.moveTo({scale:2*(null===(e=this.vis)||void 0===e?void 0:e.getScale()),animation:!0})};const l=document.createElement("button");l.title="Zoom Out",l.onclick=()=>{var t,e;null===(t=this.vis)||void 0===t||t.moveTo({scale:.5*(null===(e=this.vis)||void 0===e?void 0:e.getScale()),animation:!0})},I.innerHTML=a.default.icons.plus.toSvg(),l.innerHTML=a.default.icons.minus.toSvg(),s.classList.add("menu-action","zoom-in-div"),C.classList.add("menu-action","zoom-out-div"),s.append(I),C.append(l);const c=document.createElement("div");c.classList.add("bottom-right"),c.append(s,C),this.networkDiv.append(c)}handleDetailsToggle(){this.detailsBtn.classList.toggle("active"),this.detailsPanel.classList.toggle("hidden")}search(t,e,i){if(Array.isArray(e)){for(let n=0;n<e.length;n++)if(this.search(t,e[n],i+1))return!0;return!1}if("object"==typeof e){let n=!1;return null==e||Object.entries(e).forEach(e=>{if(n)return!0;n=0===i?this.search(t,e[1],i+1):this.search(t,e,i+1)}),n}return null!=e&&-1!==e.toString().indexOf(t)}toggleExpand(){const t=this.networkDiv,e=t=>{const i=parseInt(this.detailsPanel.style.top),n=parseInt(this.detailsPanel.style.left);if(document.fullscreenElement)this.detailsPanel.style.left=n/650*window.innerWidth+"px",this.detailsPanel.style.top=i/650*window.innerHeight+"px",this.expandBtn.innerHTML=a.default.icons["minimize-2"].toSvg(),this.expandBtn.title="Minimize";else{this.detailsPanel.style.left=n/window.innerWidth*650+"px";const t=i/window.innerHeight*650,o=this.detailsPanel.offsetHeight+t<650?t:t-this.detailsPanel.offsetHeight;this.detailsPanel.style.top=o+"px",console.log(o),this.expandBtn.innerHTML=a.default.icons["maximize-2"].toSvg(),this.expandBtn.title="Exit Fullscreen",document.removeEventListener("fullscreenchange",e)}this.expandBtn.classList.toggle("active")};document.fullscreenElement?document.exitFullscreen&&(document.exitFullscreen(),this.canvasDiv.style.height="600px"):t.requestFullscreen&&(document.addEventListener("fullscreenchange",e),t.requestFullscreen(),this.canvasDiv.style.height="100%")}registerWidgetEvents(){let t;t=new MutationObserver((t,e)=>{var i;for(const n of t)"attributes"===n.type&&"width"===n.attributeName&&null===n.oldValue&&null!==n.target[n.attributeName]&&void 0!==n.target[n.attributeName]&&n.target[n.attributeName]>0&&(null===(i=this.vis)||void 0===i||i.fit(),e.disconnect())}),t.observe(this.el,{attributes:!0,childList:!1,subtree:!0})}}e.ForceView=I},function(e,i){e.exports=t},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=i(4),o=i(10);class r{}e.DynamicObject=r;e.VisSelection=class{constructor(t,e){this.nodes=t,this.edges=e}};class g{constructor(t){this.id=t,this.id=t}static fromObject(t){let e=new g(t.id);return e=o.merge({},t,e),e}static mergeObject(t,e){null==e&&(e={});const i=o.clone(t);return o.merge({},i,e)}}e.VisNode=g;class s{constructor(t,e,i,n){this.from=t,this.to=e,this.id=i,this.from=t,this.to=e,this.id=t+":"+e+":"+i,this.label=n}static fromObject(t){const e=t.hasOwnProperty("from")?t.from:"",i=t.hasOwnProperty("to")?t.to:"",n=t.hasOwnProperty("label")?t.label:t.id;let r=new s(e,i,t.id,n);return r=o.merge({},t,r),r}static mergeObject(t,e){null==e&&(e={});const i=o.clone(t);return o.merge({},i,e)}}e.VisEdge=s;e.Message=class{constructor(t,e){this.method=t,this.data=e}};e.IdentifiableDynamicObject=class extends r{constructor(t){super(),this.id=t,this.id=t}};e.Link=class{constructor(t,e,i,n){this.key=t,this.label=e,this.source=i,this.target=n}};class a extends n.DataSet{}e.NodeDataSet=a;class A extends n.DataSet{}e.EdgeDataSet=A;e.Graph=class{constructor(t,e){this.nodes=t,this.links=e}};e.ForceNetwork=class{constructor(t){this.graph=t}};e.ForceDraggableOptions=class{};e.ForceResizableOptions=class{}},function(t,e,i){(function(t,n){var o;
/**
 * @license
 * Lodash <https://lodash.com/>
 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
 * Released under MIT license <https://lodash.com/license>
 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
 */(function(){var r="Expected a function",g="__lodash_placeholder__",s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],a="[object Arguments]",A="[object Array]",C="[object Boolean]",I="[object Date]",l="[object Error]",c="[object Function]",h="[object GeneratorFunction]",u="[object Map]",d="[object Number]",p="[object Object]",f="[object RegExp]",v="[object Set]",m="[object String]",y="[object Symbol]",b="[object WeakMap]",w="[object ArrayBuffer]",x="[object DataView]",k="[object Float32Array]",_="[object Float64Array]",D="[object Int8Array]",O="[object Int16Array]",M="[object Int32Array]",T="[object Uint8Array]",N="[object Uint16Array]",E="[object Uint32Array]",F=/\b__p \+= '';/g,S=/\b(__p \+=) '' \+/g,j=/(__e\(.*?\)|\b__t\)) \+\n'';/g,B=/&(?:amp|lt|gt|quot|#39);/g,R=/[&<>"']/g,z=RegExp(B.source),Z=RegExp(R.source),G=/<%-([\s\S]+?)%>/g,P=/<%([\s\S]+?)%>/g,L=/<%=([\s\S]+?)%>/g,W=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,U=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Y=/[\\^$.*+?()[\]{}|]/g,V=RegExp(Y.source),H=/^\s+|\s+$/g,X=/^\s+/,J=/\s+$/,K=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,q=/\{\n\/\* \[wrapped with (.+)\] \*/,$=/,? & /,tt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,et=/\\(\\)?/g,it=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,nt=/\w*$/,ot=/^[-+]0x[0-9a-f]+$/i,rt=/^0b[01]+$/i,gt=/^\[object .+?Constructor\]$/,st=/^0o[0-7]+$/i,at=/^(?:0|[1-9]\d*)$/,At=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ct=/($^)/,It=/['\n\r\u2028\u2029\\]/g,lt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ct="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ht="[\\ud800-\\udfff]",ut="["+ct+"]",dt="["+lt+"]",pt="\\d+",ft="[\\u2700-\\u27bf]",vt="[a-z\\xdf-\\xf6\\xf8-\\xff]",mt="[^\\ud800-\\udfff"+ct+pt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",yt="\\ud83c[\\udffb-\\udfff]",bt="[^\\ud800-\\udfff]",wt="(?:\\ud83c[\\udde6-\\uddff]){2}",xt="[\\ud800-\\udbff][\\udc00-\\udfff]",kt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",_t="(?:"+vt+"|"+mt+")",Dt="(?:"+kt+"|"+mt+")",Ot="(?:"+dt+"|"+yt+")"+"?",Mt="[\\ufe0e\\ufe0f]?"+Ot+("(?:\\u200d(?:"+[bt,wt,xt].join("|")+")[\\ufe0e\\ufe0f]?"+Ot+")*"),Tt="(?:"+[ft,wt,xt].join("|")+")"+Mt,Nt="(?:"+[bt+dt+"?",dt,wt,xt,ht].join("|")+")",Et=RegExp("['’]","g"),Ft=RegExp(dt,"g"),St=RegExp(yt+"(?="+yt+")|"+Nt+Mt,"g"),jt=RegExp([kt+"?"+vt+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[ut,kt,"$"].join("|")+")",Dt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[ut,kt+_t,"$"].join("|")+")",kt+"?"+_t+"+(?:['’](?:d|ll|m|re|s|t|ve))?",kt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",pt,Tt].join("|"),"g"),Bt=RegExp("[\\u200d\\ud800-\\udfff"+lt+"\\ufe0e\\ufe0f]"),Rt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,zt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Zt=-1,Gt={};Gt[k]=Gt[_]=Gt[D]=Gt[O]=Gt[M]=Gt[T]=Gt["[object Uint8ClampedArray]"]=Gt[N]=Gt[E]=!0,Gt[a]=Gt[A]=Gt[w]=Gt[C]=Gt[x]=Gt[I]=Gt[l]=Gt[c]=Gt[u]=Gt[d]=Gt[p]=Gt[f]=Gt[v]=Gt[m]=Gt[b]=!1;var Pt={};Pt[a]=Pt[A]=Pt[w]=Pt[x]=Pt[C]=Pt[I]=Pt[k]=Pt[_]=Pt[D]=Pt[O]=Pt[M]=Pt[u]=Pt[d]=Pt[p]=Pt[f]=Pt[v]=Pt[m]=Pt[y]=Pt[T]=Pt["[object Uint8ClampedArray]"]=Pt[N]=Pt[E]=!0,Pt[l]=Pt[c]=Pt[b]=!1;var Lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Wt=parseFloat,Qt=parseInt,Ut="object"==typeof t&&t&&t.Object===Object&&t,Yt="object"==typeof self&&self&&self.Object===Object&&self,Vt=Ut||Yt||Function("return this")(),Ht=e&&!e.nodeType&&e,Xt=Ht&&"object"==typeof n&&n&&!n.nodeType&&n,Jt=Xt&&Xt.exports===Ht,Kt=Jt&&Ut.process,qt=function(){try{var t=Xt&&Xt.require&&Xt.require("util").types;return t||Kt&&Kt.binding&&Kt.binding("util")}catch(t){}}(),$t=qt&&qt.isArrayBuffer,te=qt&&qt.isDate,ee=qt&&qt.isMap,ie=qt&&qt.isRegExp,ne=qt&&qt.isSet,oe=qt&&qt.isTypedArray;function re(t,e,i){switch(i.length){case 0:return t.call(e);case 1:return t.call(e,i[0]);case 2:return t.call(e,i[0],i[1]);case 3:return t.call(e,i[0],i[1],i[2])}return t.apply(e,i)}function ge(t,e,i,n){for(var o=-1,r=null==t?0:t.length;++o<r;){var g=t[o];e(n,g,i(g),t)}return n}function se(t,e){for(var i=-1,n=null==t?0:t.length;++i<n&&!1!==e(t[i],i,t););return t}function ae(t,e){for(var i=null==t?0:t.length;i--&&!1!==e(t[i],i,t););return t}function Ae(t,e){for(var i=-1,n=null==t?0:t.length;++i<n;)if(!e(t[i],i,t))return!1;return!0}function Ce(t,e){for(var i=-1,n=null==t?0:t.length,o=0,r=[];++i<n;){var g=t[i];e(g,i,t)&&(r[o++]=g)}return r}function Ie(t,e){return!!(null==t?0:t.length)&&ye(t,e,0)>-1}function le(t,e,i){for(var n=-1,o=null==t?0:t.length;++n<o;)if(i(e,t[n]))return!0;return!1}function ce(t,e){for(var i=-1,n=null==t?0:t.length,o=Array(n);++i<n;)o[i]=e(t[i],i,t);return o}function he(t,e){for(var i=-1,n=e.length,o=t.length;++i<n;)t[o+i]=e[i];return t}function ue(t,e,i,n){var o=-1,r=null==t?0:t.length;for(n&&r&&(i=t[++o]);++o<r;)i=e(i,t[o],o,t);return i}function de(t,e,i,n){var o=null==t?0:t.length;for(n&&o&&(i=t[--o]);o--;)i=e(i,t[o],o,t);return i}function pe(t,e){for(var i=-1,n=null==t?0:t.length;++i<n;)if(e(t[i],i,t))return!0;return!1}var fe=ke("length");function ve(t,e,i){var n;return i(t,(function(t,i,o){if(e(t,i,o))return n=i,!1})),n}function me(t,e,i,n){for(var o=t.length,r=i+(n?1:-1);n?r--:++r<o;)if(e(t[r],r,t))return r;return-1}function ye(t,e,i){return e==e?function(t,e,i){var n=i-1,o=t.length;for(;++n<o;)if(t[n]===e)return n;return-1}(t,e,i):me(t,we,i)}function be(t,e,i,n){for(var o=i-1,r=t.length;++o<r;)if(n(t[o],e))return o;return-1}function we(t){return t!=t}function xe(t,e){var i=null==t?0:t.length;return i?Oe(t,e)/i:NaN}function ke(t){return function(e){return null==e?void 0:e[t]}}function _e(t){return function(e){return null==t?void 0:t[e]}}function De(t,e,i,n,o){return o(t,(function(t,o,r){i=n?(n=!1,t):e(i,t,o,r)})),i}function Oe(t,e){for(var i,n=-1,o=t.length;++n<o;){var r=e(t[n]);void 0!==r&&(i=void 0===i?r:i+r)}return i}function Me(t,e){for(var i=-1,n=Array(t);++i<t;)n[i]=e(i);return n}function Te(t){return function(e){return t(e)}}function Ne(t,e){return ce(e,(function(e){return t[e]}))}function Ee(t,e){return t.has(e)}function Fe(t,e){for(var i=-1,n=t.length;++i<n&&ye(e,t[i],0)>-1;);return i}function Se(t,e){for(var i=t.length;i--&&ye(e,t[i],0)>-1;);return i}function je(t,e){for(var i=t.length,n=0;i--;)t[i]===e&&++n;return n}var Be=_e({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","Ĳ":"IJ","ĳ":"ij","Œ":"Oe","œ":"oe","ŉ":"'n","ſ":"s"}),Re=_e({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function ze(t){return"\\"+Lt[t]}function Ze(t){return Bt.test(t)}function Ge(t){var e=-1,i=Array(t.size);return t.forEach((function(t,n){i[++e]=[n,t]})),i}function Pe(t,e){return function(i){return t(e(i))}}function Le(t,e){for(var i=-1,n=t.length,o=0,r=[];++i<n;){var s=t[i];s!==e&&s!==g||(t[i]=g,r[o++]=i)}return r}function We(t){var e=-1,i=Array(t.size);return t.forEach((function(t){i[++e]=t})),i}function Qe(t){var e=-1,i=Array(t.size);return t.forEach((function(t){i[++e]=[t,t]})),i}function Ue(t){return Ze(t)?function(t){var e=St.lastIndex=0;for(;St.test(t);)++e;return e}(t):fe(t)}function Ye(t){return Ze(t)?function(t){return t.match(St)||[]}(t):function(t){return t.split("")}(t)}var Ve=_e({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var He=function t(e){var i,n=(e=null==e?Vt:He.defaults(Vt.Object(),e,He.pick(Vt,zt))).Array,o=e.Date,lt=e.Error,ct=e.Function,ht=e.Math,ut=e.Object,dt=e.RegExp,pt=e.String,ft=e.TypeError,vt=n.prototype,mt=ct.prototype,yt=ut.prototype,bt=e["__core-js_shared__"],wt=mt.toString,xt=yt.hasOwnProperty,kt=0,_t=(i=/[^.]+$/.exec(bt&&bt.keys&&bt.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"",Dt=yt.toString,Ot=wt.call(ut),Mt=Vt._,Tt=dt("^"+wt.call(xt).replace(Y,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Nt=Jt?e.Buffer:void 0,St=e.Symbol,Bt=e.Uint8Array,Lt=Nt?Nt.allocUnsafe:void 0,Ut=Pe(ut.getPrototypeOf,ut),Yt=ut.create,Ht=yt.propertyIsEnumerable,Xt=vt.splice,Kt=St?St.isConcatSpreadable:void 0,qt=St?St.iterator:void 0,fe=St?St.toStringTag:void 0,_e=function(){try{var t=tr(ut,"defineProperty");return t({},"",{}),t}catch(t){}}(),Xe=e.clearTimeout!==Vt.clearTimeout&&e.clearTimeout,Je=o&&o.now!==Vt.Date.now&&o.now,Ke=e.setTimeout!==Vt.setTimeout&&e.setTimeout,qe=ht.ceil,$e=ht.floor,ti=ut.getOwnPropertySymbols,ei=Nt?Nt.isBuffer:void 0,ii=e.isFinite,ni=vt.join,oi=Pe(ut.keys,ut),ri=ht.max,gi=ht.min,si=o.now,ai=e.parseInt,Ai=ht.random,Ci=vt.reverse,Ii=tr(e,"DataView"),li=tr(e,"Map"),ci=tr(e,"Promise"),hi=tr(e,"Set"),ui=tr(e,"WeakMap"),di=tr(ut,"create"),pi=ui&&new ui,fi={},vi=Dr(Ii),mi=Dr(li),yi=Dr(ci),bi=Dr(hi),wi=Dr(ui),xi=St?St.prototype:void 0,ki=xi?xi.valueOf:void 0,_i=xi?xi.toString:void 0;function Di(t){if(Qg(t)&&!Fg(t)&&!(t instanceof Ni)){if(t instanceof Ti)return t;if(xt.call(t,"__wrapped__"))return Or(t)}return new Ti(t)}var Oi=function(){function t(){}return function(e){if(!Wg(e))return{};if(Yt)return Yt(e);t.prototype=e;var i=new t;return t.prototype=void 0,i}}();function Mi(){}function Ti(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}function Ni(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Ei(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var n=t[e];this.set(n[0],n[1])}}function Fi(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var n=t[e];this.set(n[0],n[1])}}function Si(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var n=t[e];this.set(n[0],n[1])}}function ji(t){var e=-1,i=null==t?0:t.length;for(this.__data__=new Si;++e<i;)this.add(t[e])}function Bi(t){var e=this.__data__=new Fi(t);this.size=e.size}function Ri(t,e){var i=Fg(t),n=!i&&Eg(t),o=!i&&!n&&Rg(t),r=!i&&!n&&!o&&qg(t),g=i||n||o||r,s=g?Me(t.length,pt):[],a=s.length;for(var A in t)!e&&!xt.call(t,A)||g&&("length"==A||o&&("offset"==A||"parent"==A)||r&&("buffer"==A||"byteLength"==A||"byteOffset"==A)||sr(A,a))||s.push(A);return s}function zi(t){var e=t.length;return e?t[Bn(0,e-1)]:void 0}function Zi(t,e){return xr(fo(t),Hi(e,0,t.length))}function Gi(t){return xr(fo(t))}function Pi(t,e,i){(void 0!==i&&!Mg(t[e],i)||void 0===i&&!(e in t))&&Yi(t,e,i)}function Li(t,e,i){var n=t[e];xt.call(t,e)&&Mg(n,i)&&(void 0!==i||e in t)||Yi(t,e,i)}function Wi(t,e){for(var i=t.length;i--;)if(Mg(t[i][0],e))return i;return-1}function Qi(t,e,i,n){return $i(t,(function(t,o,r){e(n,t,i(t),r)})),n}function Ui(t,e){return t&&vo(e,ms(e),t)}function Yi(t,e,i){"__proto__"==e&&_e?_e(t,e,{configurable:!0,enumerable:!0,value:i,writable:!0}):t[e]=i}function Vi(t,e){for(var i=-1,o=e.length,r=n(o),g=null==t;++i<o;)r[i]=g?void 0:us(t,e[i]);return r}function Hi(t,e,i){return t==t&&(void 0!==i&&(t=t<=i?t:i),void 0!==e&&(t=t>=e?t:e)),t}function Xi(t,e,i,n,o,r){var g,s=1&e,A=2&e,l=4&e;if(i&&(g=o?i(t,n,o,r):i(t)),void 0!==g)return g;if(!Wg(t))return t;var b=Fg(t);if(b){if(g=function(t){var e=t.length,i=new t.constructor(e);e&&"string"==typeof t[0]&&xt.call(t,"index")&&(i.index=t.index,i.input=t.input);return i}(t),!s)return fo(t,g)}else{var F=nr(t),S=F==c||F==h;if(Rg(t))return Io(t,s);if(F==p||F==a||S&&!o){if(g=A||S?{}:rr(t),!s)return A?function(t,e){return vo(t,ir(t),e)}(t,function(t,e){return t&&vo(e,ys(e),t)}(g,t)):function(t,e){return vo(t,er(t),e)}(t,Ui(g,t))}else{if(!Pt[F])return o?t:{};g=function(t,e,i){var n=t.constructor;switch(e){case w:return lo(t);case C:case I:return new n(+t);case x:return function(t,e){var i=e?lo(t.buffer):t.buffer;return new t.constructor(i,t.byteOffset,t.byteLength)}(t,i);case k:case _:case D:case O:case M:case T:case"[object Uint8ClampedArray]":case N:case E:return co(t,i);case u:return new n;case d:case m:return new n(t);case f:return function(t){var e=new t.constructor(t.source,nt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case v:return new n;case y:return o=t,ki?ut(ki.call(o)):{}}var o}(t,F,s)}}r||(r=new Bi);var j=r.get(t);if(j)return j;r.set(t,g),Xg(t)?t.forEach((function(n){g.add(Xi(n,e,i,n,t,r))})):Ug(t)&&t.forEach((function(n,o){g.set(o,Xi(n,e,i,o,t,r))}));var B=b?void 0:(l?A?Vo:Yo:A?ys:ms)(t);return se(B||t,(function(n,o){B&&(n=t[o=n]),Li(g,o,Xi(n,e,i,o,t,r))})),g}function Ji(t,e,i){var n=i.length;if(null==t)return!n;for(t=ut(t);n--;){var o=i[n],r=e[o],g=t[o];if(void 0===g&&!(o in t)||!r(g))return!1}return!0}function Ki(t,e,i){if("function"!=typeof t)throw new ft(r);return mr((function(){t.apply(void 0,i)}),e)}function qi(t,e,i,n){var o=-1,r=Ie,g=!0,s=t.length,a=[],A=e.length;if(!s)return a;i&&(e=ce(e,Te(i))),n?(r=le,g=!1):e.length>=200&&(r=Ee,g=!1,e=new ji(e));t:for(;++o<s;){var C=t[o],I=null==i?C:i(C);if(C=n||0!==C?C:0,g&&I==I){for(var l=A;l--;)if(e[l]===I)continue t;a.push(C)}else r(e,I,n)||a.push(C)}return a}Di.templateSettings={escape:G,evaluate:P,interpolate:L,variable:"",imports:{_:Di}},Di.prototype=Mi.prototype,Di.prototype.constructor=Di,Ti.prototype=Oi(Mi.prototype),Ti.prototype.constructor=Ti,Ni.prototype=Oi(Mi.prototype),Ni.prototype.constructor=Ni,Ei.prototype.clear=function(){this.__data__=di?di(null):{},this.size=0},Ei.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Ei.prototype.get=function(t){var e=this.__data__;if(di){var i=e[t];return"__lodash_hash_undefined__"===i?void 0:i}return xt.call(e,t)?e[t]:void 0},Ei.prototype.has=function(t){var e=this.__data__;return di?void 0!==e[t]:xt.call(e,t)},Ei.prototype.set=function(t,e){var i=this.__data__;return this.size+=this.has(t)?0:1,i[t]=di&&void 0===e?"__lodash_hash_undefined__":e,this},Fi.prototype.clear=function(){this.__data__=[],this.size=0},Fi.prototype.delete=function(t){var e=this.__data__,i=Wi(e,t);return!(i<0)&&(i==e.length-1?e.pop():Xt.call(e,i,1),--this.size,!0)},Fi.prototype.get=function(t){var e=this.__data__,i=Wi(e,t);return i<0?void 0:e[i][1]},Fi.prototype.has=function(t){return Wi(this.__data__,t)>-1},Fi.prototype.set=function(t,e){var i=this.__data__,n=Wi(i,t);return n<0?(++this.size,i.push([t,e])):i[n][1]=e,this},Si.prototype.clear=function(){this.size=0,this.__data__={hash:new Ei,map:new(li||Fi),string:new Ei}},Si.prototype.delete=function(t){var e=qo(this,t).delete(t);return this.size-=e?1:0,e},Si.prototype.get=function(t){return qo(this,t).get(t)},Si.prototype.has=function(t){return qo(this,t).has(t)},Si.prototype.set=function(t,e){var i=qo(this,t),n=i.size;return i.set(t,e),this.size+=i.size==n?0:1,this},ji.prototype.add=ji.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},ji.prototype.has=function(t){return this.__data__.has(t)},Bi.prototype.clear=function(){this.__data__=new Fi,this.size=0},Bi.prototype.delete=function(t){var e=this.__data__,i=e.delete(t);return this.size=e.size,i},Bi.prototype.get=function(t){return this.__data__.get(t)},Bi.prototype.has=function(t){return this.__data__.has(t)},Bi.prototype.set=function(t,e){var i=this.__data__;if(i instanceof Fi){var n=i.__data__;if(!li||n.length<199)return n.push([t,e]),this.size=++i.size,this;i=this.__data__=new Si(n)}return i.set(t,e),this.size=i.size,this};var $i=bo(an),tn=bo(An,!0);function en(t,e){var i=!0;return $i(t,(function(t,n,o){return i=!!e(t,n,o)})),i}function nn(t,e,i){for(var n=-1,o=t.length;++n<o;){var r=t[n],g=e(r);if(null!=g&&(void 0===s?g==g&&!Kg(g):i(g,s)))var s=g,a=r}return a}function on(t,e){var i=[];return $i(t,(function(t,n,o){e(t,n,o)&&i.push(t)})),i}function rn(t,e,i,n,o){var r=-1,g=t.length;for(i||(i=gr),o||(o=[]);++r<g;){var s=t[r];e>0&&i(s)?e>1?rn(s,e-1,i,n,o):he(o,s):n||(o[o.length]=s)}return o}var gn=wo(),sn=wo(!0);function an(t,e){return t&&gn(t,e,ms)}function An(t,e){return t&&sn(t,e,ms)}function Cn(t,e){return Ce(e,(function(e){return Gg(t[e])}))}function In(t,e){for(var i=0,n=(e=so(e,t)).length;null!=t&&i<n;)t=t[_r(e[i++])];return i&&i==n?t:void 0}function ln(t,e,i){var n=e(t);return Fg(t)?n:he(n,i(t))}function cn(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":fe&&fe in ut(t)?function(t){var e=xt.call(t,fe),i=t[fe];try{t[fe]=void 0;var n=!0}catch(t){}var o=Dt.call(t);n&&(e?t[fe]=i:delete t[fe]);return o}(t):function(t){return Dt.call(t)}(t)}function hn(t,e){return t>e}function un(t,e){return null!=t&&xt.call(t,e)}function dn(t,e){return null!=t&&e in ut(t)}function pn(t,e,i){for(var o=i?le:Ie,r=t[0].length,g=t.length,s=g,a=n(g),A=1/0,C=[];s--;){var I=t[s];s&&e&&(I=ce(I,Te(e))),A=gi(I.length,A),a[s]=!i&&(e||r>=120&&I.length>=120)?new ji(s&&I):void 0}I=t[0];var l=-1,c=a[0];t:for(;++l<r&&C.length<A;){var h=I[l],u=e?e(h):h;if(h=i||0!==h?h:0,!(c?Ee(c,u):o(C,u,i))){for(s=g;--s;){var d=a[s];if(!(d?Ee(d,u):o(t[s],u,i)))continue t}c&&c.push(u),C.push(h)}}return C}function fn(t,e,i){var n=null==(t=dr(t,e=so(e,t)))?t:t[_r(Zr(e))];return null==n?void 0:re(n,t,i)}function vn(t){return Qg(t)&&cn(t)==a}function mn(t,e,i,n,o){return t===e||(null==t||null==e||!Qg(t)&&!Qg(e)?t!=t&&e!=e:function(t,e,i,n,o,r){var g=Fg(t),s=Fg(e),c=g?A:nr(t),h=s?A:nr(e),b=(c=c==a?p:c)==p,k=(h=h==a?p:h)==p,_=c==h;if(_&&Rg(t)){if(!Rg(e))return!1;g=!0,b=!1}if(_&&!b)return r||(r=new Bi),g||qg(t)?Qo(t,e,i,n,o,r):function(t,e,i,n,o,r,g){switch(i){case x:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case w:return!(t.byteLength!=e.byteLength||!r(new Bt(t),new Bt(e)));case C:case I:case d:return Mg(+t,+e);case l:return t.name==e.name&&t.message==e.message;case f:case m:return t==e+"";case u:var s=Ge;case v:var a=1&n;if(s||(s=We),t.size!=e.size&&!a)return!1;var A=g.get(t);if(A)return A==e;n|=2,g.set(t,e);var c=Qo(s(t),s(e),n,o,r,g);return g.delete(t),c;case y:if(ki)return ki.call(t)==ki.call(e)}return!1}(t,e,c,i,n,o,r);if(!(1&i)){var D=b&&xt.call(t,"__wrapped__"),O=k&&xt.call(e,"__wrapped__");if(D||O){var M=D?t.value():t,T=O?e.value():e;return r||(r=new Bi),o(M,T,i,n,r)}}if(!_)return!1;return r||(r=new Bi),function(t,e,i,n,o,r){var g=1&i,s=Yo(t),a=s.length,A=Yo(e).length;if(a!=A&&!g)return!1;var C=a;for(;C--;){var I=s[C];if(!(g?I in e:xt.call(e,I)))return!1}var l=r.get(t),c=r.get(e);if(l&&c)return l==e&&c==t;var h=!0;r.set(t,e),r.set(e,t);var u=g;for(;++C<a;){I=s[C];var d=t[I],p=e[I];if(n)var f=g?n(p,d,I,e,t,r):n(d,p,I,t,e,r);if(!(void 0===f?d===p||o(d,p,i,n,r):f)){h=!1;break}u||(u="constructor"==I)}if(h&&!u){var v=t.constructor,m=e.constructor;v==m||!("constructor"in t)||!("constructor"in e)||"function"==typeof v&&v instanceof v&&"function"==typeof m&&m instanceof m||(h=!1)}return r.delete(t),r.delete(e),h}(t,e,i,n,o,r)}(t,e,i,n,mn,o))}function yn(t,e,i,n){var o=i.length,r=o,g=!n;if(null==t)return!r;for(t=ut(t);o--;){var s=i[o];if(g&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++o<r;){var a=(s=i[o])[0],A=t[a],C=s[1];if(g&&s[2]){if(void 0===A&&!(a in t))return!1}else{var I=new Bi;if(n)var l=n(A,C,a,t,e,I);if(!(void 0===l?mn(C,A,3,n,I):l))return!1}}return!0}function bn(t){return!(!Wg(t)||(e=t,_t&&_t in e))&&(Gg(t)?Tt:gt).test(Dr(t));var e}function wn(t){return"function"==typeof t?t:null==t?Ys:"object"==typeof t?Fg(t)?Mn(t[0],t[1]):On(t):ea(t)}function xn(t){if(!lr(t))return oi(t);var e=[];for(var i in ut(t))xt.call(t,i)&&"constructor"!=i&&e.push(i);return e}function kn(t){if(!Wg(t))return function(t){var e=[];if(null!=t)for(var i in ut(t))e.push(i);return e}(t);var e=lr(t),i=[];for(var n in t)("constructor"!=n||!e&&xt.call(t,n))&&i.push(n);return i}function _n(t,e){return t<e}function Dn(t,e){var i=-1,o=jg(t)?n(t.length):[];return $i(t,(function(t,n,r){o[++i]=e(t,n,r)})),o}function On(t){var e=$o(t);return 1==e.length&&e[0][2]?hr(e[0][0],e[0][1]):function(i){return i===t||yn(i,t,e)}}function Mn(t,e){return Ar(t)&&cr(e)?hr(_r(t),e):function(i){var n=us(i,t);return void 0===n&&n===e?ds(i,t):mn(e,n,3)}}function Tn(t,e,i,n,o){t!==e&&gn(e,(function(r,g){if(o||(o=new Bi),Wg(r))!function(t,e,i,n,o,r,g){var s=fr(t,i),a=fr(e,i),A=g.get(a);if(A)return void Pi(t,i,A);var C=r?r(s,a,i+"",t,e,g):void 0,I=void 0===C;if(I){var l=Fg(a),c=!l&&Rg(a),h=!l&&!c&&qg(a);C=a,l||c||h?Fg(s)?C=s:Bg(s)?C=fo(s):c?(I=!1,C=Io(a,!0)):h?(I=!1,C=co(a,!0)):C=[]:Vg(a)||Eg(a)?(C=s,Eg(s)?C=gs(s):Wg(s)&&!Gg(s)||(C=rr(a))):I=!1}I&&(g.set(a,C),o(C,a,n,r,g),g.delete(a));Pi(t,i,C)}(t,e,g,i,Tn,n,o);else{var s=n?n(fr(t,g),r,g+"",t,e,o):void 0;void 0===s&&(s=r),Pi(t,g,s)}}),ys)}function Nn(t,e){var i=t.length;if(i)return sr(e+=e<0?i:0,i)?t[e]:void 0}function En(t,e,i){e=e.length?ce(e,(function(t){return Fg(t)?function(e){return In(e,1===t.length?t[0]:t)}:t})):[Ys];var n=-1;return e=ce(e,Te(Ko())),function(t,e){var i=t.length;for(t.sort(e);i--;)t[i]=t[i].value;return t}(Dn(t,(function(t,i,o){return{criteria:ce(e,(function(e){return e(t)})),index:++n,value:t}})),(function(t,e){return function(t,e,i){var n=-1,o=t.criteria,r=e.criteria,g=o.length,s=i.length;for(;++n<g;){var a=ho(o[n],r[n]);if(a){if(n>=s)return a;var A=i[n];return a*("desc"==A?-1:1)}}return t.index-e.index}(t,e,i)}))}function Fn(t,e,i){for(var n=-1,o=e.length,r={};++n<o;){var g=e[n],s=In(t,g);i(s,g)&&Pn(r,so(g,t),s)}return r}function Sn(t,e,i,n){var o=n?be:ye,r=-1,g=e.length,s=t;for(t===e&&(e=fo(e)),i&&(s=ce(t,Te(i)));++r<g;)for(var a=0,A=e[r],C=i?i(A):A;(a=o(s,C,a,n))>-1;)s!==t&&Xt.call(s,a,1),Xt.call(t,a,1);return t}function jn(t,e){for(var i=t?e.length:0,n=i-1;i--;){var o=e[i];if(i==n||o!==r){var r=o;sr(o)?Xt.call(t,o,1):$n(t,o)}}return t}function Bn(t,e){return t+$e(Ai()*(e-t+1))}function Rn(t,e){var i="";if(!t||e<1||e>9007199254740991)return i;do{e%2&&(i+=t),(e=$e(e/2))&&(t+=t)}while(e);return i}function zn(t,e){return yr(ur(t,e,Ys),t+"")}function Zn(t){return zi(Ms(t))}function Gn(t,e){var i=Ms(t);return xr(i,Hi(e,0,i.length))}function Pn(t,e,i,n){if(!Wg(t))return t;for(var o=-1,r=(e=so(e,t)).length,g=r-1,s=t;null!=s&&++o<r;){var a=_r(e[o]),A=i;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(o!=g){var C=s[a];void 0===(A=n?n(C,a,s):void 0)&&(A=Wg(C)?C:sr(e[o+1])?[]:{})}Li(s,a,A),s=s[a]}return t}var Ln=pi?function(t,e){return pi.set(t,e),t}:Ys,Wn=_e?function(t,e){return _e(t,"toString",{configurable:!0,enumerable:!1,value:Ws(e),writable:!0})}:Ys;function Qn(t){return xr(Ms(t))}function Un(t,e,i){var o=-1,r=t.length;e<0&&(e=-e>r?0:r+e),(i=i>r?r:i)<0&&(i+=r),r=e>i?0:i-e>>>0,e>>>=0;for(var g=n(r);++o<r;)g[o]=t[o+e];return g}function Yn(t,e){var i;return $i(t,(function(t,n,o){return!(i=e(t,n,o))})),!!i}function Vn(t,e,i){var n=0,o=null==t?n:t.length;if("number"==typeof e&&e==e&&o<=2147483647){for(;n<o;){var r=n+o>>>1,g=t[r];null!==g&&!Kg(g)&&(i?g<=e:g<e)?n=r+1:o=r}return o}return Hn(t,e,Ys,i)}function Hn(t,e,i,n){var o=0,r=null==t?0:t.length;if(0===r)return 0;for(var g=(e=i(e))!=e,s=null===e,a=Kg(e),A=void 0===e;o<r;){var C=$e((o+r)/2),I=i(t[C]),l=void 0!==I,c=null===I,h=I==I,u=Kg(I);if(g)var d=n||h;else d=A?h&&(n||l):s?h&&l&&(n||!c):a?h&&l&&!c&&(n||!u):!c&&!u&&(n?I<=e:I<e);d?o=C+1:r=C}return gi(r,4294967294)}function Xn(t,e){for(var i=-1,n=t.length,o=0,r=[];++i<n;){var g=t[i],s=e?e(g):g;if(!i||!Mg(s,a)){var a=s;r[o++]=0===g?0:g}}return r}function Jn(t){return"number"==typeof t?t:Kg(t)?NaN:+t}function Kn(t){if("string"==typeof t)return t;if(Fg(t))return ce(t,Kn)+"";if(Kg(t))return _i?_i.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function qn(t,e,i){var n=-1,o=Ie,r=t.length,g=!0,s=[],a=s;if(i)g=!1,o=le;else if(r>=200){var A=e?null:zo(t);if(A)return We(A);g=!1,o=Ee,a=new ji}else a=e?[]:s;t:for(;++n<r;){var C=t[n],I=e?e(C):C;if(C=i||0!==C?C:0,g&&I==I){for(var l=a.length;l--;)if(a[l]===I)continue t;e&&a.push(I),s.push(C)}else o(a,I,i)||(a!==s&&a.push(I),s.push(C))}return s}function $n(t,e){return null==(t=dr(t,e=so(e,t)))||delete t[_r(Zr(e))]}function to(t,e,i,n){return Pn(t,e,i(In(t,e)),n)}function eo(t,e,i,n){for(var o=t.length,r=n?o:-1;(n?r--:++r<o)&&e(t[r],r,t););return i?Un(t,n?0:r,n?r+1:o):Un(t,n?r+1:0,n?o:r)}function io(t,e){var i=t;return i instanceof Ni&&(i=i.value()),ue(e,(function(t,e){return e.func.apply(e.thisArg,he([t],e.args))}),i)}function no(t,e,i){var o=t.length;if(o<2)return o?qn(t[0]):[];for(var r=-1,g=n(o);++r<o;)for(var s=t[r],a=-1;++a<o;)a!=r&&(g[r]=qi(g[r]||s,t[a],e,i));return qn(rn(g,1),e,i)}function oo(t,e,i){for(var n=-1,o=t.length,r=e.length,g={};++n<o;){var s=n<r?e[n]:void 0;i(g,t[n],s)}return g}function ro(t){return Bg(t)?t:[]}function go(t){return"function"==typeof t?t:Ys}function so(t,e){return Fg(t)?t:Ar(t,e)?[t]:kr(ss(t))}var ao=zn;function Ao(t,e,i){var n=t.length;return i=void 0===i?n:i,!e&&i>=n?t:Un(t,e,i)}var Co=Xe||function(t){return Vt.clearTimeout(t)};function Io(t,e){if(e)return t.slice();var i=t.length,n=Lt?Lt(i):new t.constructor(i);return t.copy(n),n}function lo(t){var e=new t.constructor(t.byteLength);return new Bt(e).set(new Bt(t)),e}function co(t,e){var i=e?lo(t.buffer):t.buffer;return new t.constructor(i,t.byteOffset,t.length)}function ho(t,e){if(t!==e){var i=void 0!==t,n=null===t,o=t==t,r=Kg(t),g=void 0!==e,s=null===e,a=e==e,A=Kg(e);if(!s&&!A&&!r&&t>e||r&&g&&a&&!s&&!A||n&&g&&a||!i&&a||!o)return 1;if(!n&&!r&&!A&&t<e||A&&i&&o&&!n&&!r||s&&i&&o||!g&&o||!a)return-1}return 0}function uo(t,e,i,o){for(var r=-1,g=t.length,s=i.length,a=-1,A=e.length,C=ri(g-s,0),I=n(A+C),l=!o;++a<A;)I[a]=e[a];for(;++r<s;)(l||r<g)&&(I[i[r]]=t[r]);for(;C--;)I[a++]=t[r++];return I}function po(t,e,i,o){for(var r=-1,g=t.length,s=-1,a=i.length,A=-1,C=e.length,I=ri(g-a,0),l=n(I+C),c=!o;++r<I;)l[r]=t[r];for(var h=r;++A<C;)l[h+A]=e[A];for(;++s<a;)(c||r<g)&&(l[h+i[s]]=t[r++]);return l}function fo(t,e){var i=-1,o=t.length;for(e||(e=n(o));++i<o;)e[i]=t[i];return e}function vo(t,e,i,n){var o=!i;i||(i={});for(var r=-1,g=e.length;++r<g;){var s=e[r],a=n?n(i[s],t[s],s,i,t):void 0;void 0===a&&(a=t[s]),o?Yi(i,s,a):Li(i,s,a)}return i}function mo(t,e){return function(i,n){var o=Fg(i)?ge:Qi,r=e?e():{};return o(i,t,Ko(n,2),r)}}function yo(t){return zn((function(e,i){var n=-1,o=i.length,r=o>1?i[o-1]:void 0,g=o>2?i[2]:void 0;for(r=t.length>3&&"function"==typeof r?(o--,r):void 0,g&&ar(i[0],i[1],g)&&(r=o<3?void 0:r,o=1),e=ut(e);++n<o;){var s=i[n];s&&t(e,s,n,r)}return e}))}function bo(t,e){return function(i,n){if(null==i)return i;if(!jg(i))return t(i,n);for(var o=i.length,r=e?o:-1,g=ut(i);(e?r--:++r<o)&&!1!==n(g[r],r,g););return i}}function wo(t){return function(e,i,n){for(var o=-1,r=ut(e),g=n(e),s=g.length;s--;){var a=g[t?s:++o];if(!1===i(r[a],a,r))break}return e}}function xo(t){return function(e){var i=Ze(e=ss(e))?Ye(e):void 0,n=i?i[0]:e.charAt(0),o=i?Ao(i,1).join(""):e.slice(1);return n[t]()+o}}function ko(t){return function(e){return ue(Gs(Es(e).replace(Et,"")),t,"")}}function _o(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var i=Oi(t.prototype),n=t.apply(i,e);return Wg(n)?n:i}}function Do(t){return function(e,i,n){var o=ut(e);if(!jg(e)){var r=Ko(i,3);e=ms(e),i=function(t){return r(o[t],t,o)}}var g=t(e,i,n);return g>-1?o[r?e[g]:g]:void 0}}function Oo(t){return Uo((function(e){var i=e.length,n=i,o=Ti.prototype.thru;for(t&&e.reverse();n--;){var g=e[n];if("function"!=typeof g)throw new ft(r);if(o&&!s&&"wrapper"==Xo(g))var s=new Ti([],!0)}for(n=s?n:i;++n<i;){var a=Xo(g=e[n]),A="wrapper"==a?Ho(g):void 0;s=A&&Cr(A[0])&&424==A[1]&&!A[4].length&&1==A[9]?s[Xo(A[0])].apply(s,A[3]):1==g.length&&Cr(g)?s[a]():s.thru(g)}return function(){var t=arguments,n=t[0];if(s&&1==t.length&&Fg(n))return s.plant(n).value();for(var o=0,r=i?e[o].apply(this,t):n;++o<i;)r=e[o].call(this,r);return r}}))}function Mo(t,e,i,o,r,g,s,a,A,C){var I=128&e,l=1&e,c=2&e,h=24&e,u=512&e,d=c?void 0:_o(t);return function p(){for(var f=arguments.length,v=n(f),m=f;m--;)v[m]=arguments[m];if(h)var y=Jo(p),b=je(v,y);if(o&&(v=uo(v,o,r,h)),g&&(v=po(v,g,s,h)),f-=b,h&&f<C){var w=Le(v,y);return Bo(t,e,Mo,p.placeholder,i,v,w,a,A,C-f)}var x=l?i:this,k=c?x[t]:t;return f=v.length,a?v=pr(v,a):u&&f>1&&v.reverse(),I&&A<f&&(v.length=A),this&&this!==Vt&&this instanceof p&&(k=d||_o(k)),k.apply(x,v)}}function To(t,e){return function(i,n){return function(t,e,i,n){return an(t,(function(t,o,r){e(n,i(t),o,r)})),n}(i,t,e(n),{})}}function No(t,e){return function(i,n){var o;if(void 0===i&&void 0===n)return e;if(void 0!==i&&(o=i),void 0!==n){if(void 0===o)return n;"string"==typeof i||"string"==typeof n?(i=Kn(i),n=Kn(n)):(i=Jn(i),n=Jn(n)),o=t(i,n)}return o}}function Eo(t){return Uo((function(e){return e=ce(e,Te(Ko())),zn((function(i){var n=this;return t(e,(function(t){return re(t,n,i)}))}))}))}function Fo(t,e){var i=(e=void 0===e?" ":Kn(e)).length;if(i<2)return i?Rn(e,t):e;var n=Rn(e,qe(t/Ue(e)));return Ze(e)?Ao(Ye(n),0,t).join(""):n.slice(0,t)}function So(t){return function(e,i,o){return o&&"number"!=typeof o&&ar(e,i,o)&&(i=o=void 0),e=is(e),void 0===i?(i=e,e=0):i=is(i),function(t,e,i,o){for(var r=-1,g=ri(qe((e-t)/(i||1)),0),s=n(g);g--;)s[o?g:++r]=t,t+=i;return s}(e,i,o=void 0===o?e<i?1:-1:is(o),t)}}function jo(t){return function(e,i){return"string"==typeof e&&"string"==typeof i||(e=rs(e),i=rs(i)),t(e,i)}}function Bo(t,e,i,n,o,r,g,s,a,A){var C=8&e;e|=C?32:64,4&(e&=~(C?64:32))||(e&=-4);var I=[t,e,o,C?r:void 0,C?g:void 0,C?void 0:r,C?void 0:g,s,a,A],l=i.apply(void 0,I);return Cr(t)&&vr(l,I),l.placeholder=n,br(l,t,e)}function Ro(t){var e=ht[t];return function(t,i){if(t=rs(t),(i=null==i?0:gi(ns(i),292))&&ii(t)){var n=(ss(t)+"e").split("e");return+((n=(ss(e(n[0]+"e"+(+n[1]+i)))+"e").split("e"))[0]+"e"+(+n[1]-i))}return e(t)}}var zo=hi&&1/We(new hi([,-0]))[1]==1/0?function(t){return new hi(t)}:Ks;function Zo(t){return function(e){var i=nr(e);return i==u?Ge(e):i==v?Qe(e):function(t,e){return ce(e,(function(e){return[e,t[e]]}))}(e,t(e))}}function Go(t,e,i,o,s,a,A,C){var I=2&e;if(!I&&"function"!=typeof t)throw new ft(r);var l=o?o.length:0;if(l||(e&=-97,o=s=void 0),A=void 0===A?A:ri(ns(A),0),C=void 0===C?C:ns(C),l-=s?s.length:0,64&e){var c=o,h=s;o=s=void 0}var u=I?void 0:Ho(t),d=[t,e,i,o,s,c,h,a,A,C];if(u&&function(t,e){var i=t[1],n=e[1],o=i|n,r=o<131,s=128==n&&8==i||128==n&&256==i&&t[7].length<=e[8]||384==n&&e[7].length<=e[8]&&8==i;if(!r&&!s)return t;1&n&&(t[2]=e[2],o|=1&i?0:4);var a=e[3];if(a){var A=t[3];t[3]=A?uo(A,a,e[4]):a,t[4]=A?Le(t[3],g):e[4]}(a=e[5])&&(A=t[5],t[5]=A?po(A,a,e[6]):a,t[6]=A?Le(t[5],g):e[6]);(a=e[7])&&(t[7]=a);128&n&&(t[8]=null==t[8]?e[8]:gi(t[8],e[8]));null==t[9]&&(t[9]=e[9]);t[0]=e[0],t[1]=o}(d,u),t=d[0],e=d[1],i=d[2],o=d[3],s=d[4],!(C=d[9]=void 0===d[9]?I?0:t.length:ri(d[9]-l,0))&&24&e&&(e&=-25),e&&1!=e)p=8==e||16==e?function(t,e,i){var o=_o(t);return function r(){for(var g=arguments.length,s=n(g),a=g,A=Jo(r);a--;)s[a]=arguments[a];var C=g<3&&s[0]!==A&&s[g-1]!==A?[]:Le(s,A);if((g-=C.length)<i)return Bo(t,e,Mo,r.placeholder,void 0,s,C,void 0,void 0,i-g);var I=this&&this!==Vt&&this instanceof r?o:t;return re(I,this,s)}}(t,e,C):32!=e&&33!=e||s.length?Mo.apply(void 0,d):function(t,e,i,o){var r=1&e,g=_o(t);return function e(){for(var s=-1,a=arguments.length,A=-1,C=o.length,I=n(C+a),l=this&&this!==Vt&&this instanceof e?g:t;++A<C;)I[A]=o[A];for(;a--;)I[A++]=arguments[++s];return re(l,r?i:this,I)}}(t,e,i,o);else var p=function(t,e,i){var n=1&e,o=_o(t);return function e(){var r=this&&this!==Vt&&this instanceof e?o:t;return r.apply(n?i:this,arguments)}}(t,e,i);return br((u?Ln:vr)(p,d),t,e)}function Po(t,e,i,n){return void 0===t||Mg(t,yt[i])&&!xt.call(n,i)?e:t}function Lo(t,e,i,n,o,r){return Wg(t)&&Wg(e)&&(r.set(e,t),Tn(t,e,void 0,Lo,r),r.delete(e)),t}function Wo(t){return Vg(t)?void 0:t}function Qo(t,e,i,n,o,r){var g=1&i,s=t.length,a=e.length;if(s!=a&&!(g&&a>s))return!1;var A=r.get(t),C=r.get(e);if(A&&C)return A==e&&C==t;var I=-1,l=!0,c=2&i?new ji:void 0;for(r.set(t,e),r.set(e,t);++I<s;){var h=t[I],u=e[I];if(n)var d=g?n(u,h,I,e,t,r):n(h,u,I,t,e,r);if(void 0!==d){if(d)continue;l=!1;break}if(c){if(!pe(e,(function(t,e){if(!Ee(c,e)&&(h===t||o(h,t,i,n,r)))return c.push(e)}))){l=!1;break}}else if(h!==u&&!o(h,u,i,n,r)){l=!1;break}}return r.delete(t),r.delete(e),l}function Uo(t){return yr(ur(t,void 0,Sr),t+"")}function Yo(t){return ln(t,ms,er)}function Vo(t){return ln(t,ys,ir)}var Ho=pi?function(t){return pi.get(t)}:Ks;function Xo(t){for(var e=t.name+"",i=fi[e],n=xt.call(fi,e)?i.length:0;n--;){var o=i[n],r=o.func;if(null==r||r==t)return o.name}return e}function Jo(t){return(xt.call(Di,"placeholder")?Di:t).placeholder}function Ko(){var t=Di.iteratee||Vs;return t=t===Vs?wn:t,arguments.length?t(arguments[0],arguments[1]):t}function qo(t,e){var i,n,o=t.__data__;return("string"==(n=typeof(i=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==i:null===i)?o["string"==typeof e?"string":"hash"]:o.map}function $o(t){for(var e=ms(t),i=e.length;i--;){var n=e[i],o=t[n];e[i]=[n,o,cr(o)]}return e}function tr(t,e){var i=function(t,e){return null==t?void 0:t[e]}(t,e);return bn(i)?i:void 0}var er=ti?function(t){return null==t?[]:(t=ut(t),Ce(ti(t),(function(e){return Ht.call(t,e)})))}:oa,ir=ti?function(t){for(var e=[];t;)he(e,er(t)),t=Ut(t);return e}:oa,nr=cn;function or(t,e,i){for(var n=-1,o=(e=so(e,t)).length,r=!1;++n<o;){var g=_r(e[n]);if(!(r=null!=t&&i(t,g)))break;t=t[g]}return r||++n!=o?r:!!(o=null==t?0:t.length)&&Lg(o)&&sr(g,o)&&(Fg(t)||Eg(t))}function rr(t){return"function"!=typeof t.constructor||lr(t)?{}:Oi(Ut(t))}function gr(t){return Fg(t)||Eg(t)||!!(Kt&&t&&t[Kt])}function sr(t,e){var i=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==i||"symbol"!=i&&at.test(t))&&t>-1&&t%1==0&&t<e}function ar(t,e,i){if(!Wg(i))return!1;var n=typeof e;return!!("number"==n?jg(i)&&sr(e,i.length):"string"==n&&e in i)&&Mg(i[e],t)}function Ar(t,e){if(Fg(t))return!1;var i=typeof t;return!("number"!=i&&"symbol"!=i&&"boolean"!=i&&null!=t&&!Kg(t))||(Q.test(t)||!W.test(t)||null!=e&&t in ut(e))}function Cr(t){var e=Xo(t),i=Di[e];if("function"!=typeof i||!(e in Ni.prototype))return!1;if(t===i)return!0;var n=Ho(i);return!!n&&t===n[0]}(Ii&&nr(new Ii(new ArrayBuffer(1)))!=x||li&&nr(new li)!=u||ci&&"[object Promise]"!=nr(ci.resolve())||hi&&nr(new hi)!=v||ui&&nr(new ui)!=b)&&(nr=function(t){var e=cn(t),i=e==p?t.constructor:void 0,n=i?Dr(i):"";if(n)switch(n){case vi:return x;case mi:return u;case yi:return"[object Promise]";case bi:return v;case wi:return b}return e});var Ir=bt?Gg:ra;function lr(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||yt)}function cr(t){return t==t&&!Wg(t)}function hr(t,e){return function(i){return null!=i&&(i[t]===e&&(void 0!==e||t in ut(i)))}}function ur(t,e,i){return e=ri(void 0===e?t.length-1:e,0),function(){for(var o=arguments,r=-1,g=ri(o.length-e,0),s=n(g);++r<g;)s[r]=o[e+r];r=-1;for(var a=n(e+1);++r<e;)a[r]=o[r];return a[e]=i(s),re(t,this,a)}}function dr(t,e){return e.length<2?t:In(t,Un(e,0,-1))}function pr(t,e){for(var i=t.length,n=gi(e.length,i),o=fo(t);n--;){var r=e[n];t[n]=sr(r,i)?o[r]:void 0}return t}function fr(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var vr=wr(Ln),mr=Ke||function(t,e){return Vt.setTimeout(t,e)},yr=wr(Wn);function br(t,e,i){var n=e+"";return yr(t,function(t,e){var i=e.length;if(!i)return t;var n=i-1;return e[n]=(i>1?"& ":"")+e[n],e=e.join(i>2?", ":" "),t.replace(K,"{\n/* [wrapped with "+e+"] */\n")}(n,function(t,e){return se(s,(function(i){var n="_."+i[0];e&i[1]&&!Ie(t,n)&&t.push(n)})),t.sort()}(function(t){var e=t.match(q);return e?e[1].split($):[]}(n),i)))}function wr(t){var e=0,i=0;return function(){var n=si(),o=16-(n-i);if(i=n,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function xr(t,e){var i=-1,n=t.length,o=n-1;for(e=void 0===e?n:e;++i<e;){var r=Bn(i,o),g=t[r];t[r]=t[i],t[i]=g}return t.length=e,t}var kr=function(t){var e=wg(t,(function(t){return 500===i.size&&i.clear(),t})),i=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(U,(function(t,i,n,o){e.push(n?o.replace(et,"$1"):i||t)})),e}));function _r(t){if("string"==typeof t||Kg(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Dr(t){if(null!=t){try{return wt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Or(t){if(t instanceof Ni)return t.clone();var e=new Ti(t.__wrapped__,t.__chain__);return e.__actions__=fo(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var Mr=zn((function(t,e){return Bg(t)?qi(t,rn(e,1,Bg,!0)):[]})),Tr=zn((function(t,e){var i=Zr(e);return Bg(i)&&(i=void 0),Bg(t)?qi(t,rn(e,1,Bg,!0),Ko(i,2)):[]})),Nr=zn((function(t,e){var i=Zr(e);return Bg(i)&&(i=void 0),Bg(t)?qi(t,rn(e,1,Bg,!0),void 0,i):[]}));function Er(t,e,i){var n=null==t?0:t.length;if(!n)return-1;var o=null==i?0:ns(i);return o<0&&(o=ri(n+o,0)),me(t,Ko(e,3),o)}function Fr(t,e,i){var n=null==t?0:t.length;if(!n)return-1;var o=n-1;return void 0!==i&&(o=ns(i),o=i<0?ri(n+o,0):gi(o,n-1)),me(t,Ko(e,3),o,!0)}function Sr(t){return(null==t?0:t.length)?rn(t,1):[]}function jr(t){return t&&t.length?t[0]:void 0}var Br=zn((function(t){var e=ce(t,ro);return e.length&&e[0]===t[0]?pn(e):[]})),Rr=zn((function(t){var e=Zr(t),i=ce(t,ro);return e===Zr(i)?e=void 0:i.pop(),i.length&&i[0]===t[0]?pn(i,Ko(e,2)):[]})),zr=zn((function(t){var e=Zr(t),i=ce(t,ro);return(e="function"==typeof e?e:void 0)&&i.pop(),i.length&&i[0]===t[0]?pn(i,void 0,e):[]}));function Zr(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}var Gr=zn(Pr);function Pr(t,e){return t&&t.length&&e&&e.length?Sn(t,e):t}var Lr=Uo((function(t,e){var i=null==t?0:t.length,n=Vi(t,e);return jn(t,ce(e,(function(t){return sr(t,i)?+t:t})).sort(ho)),n}));function Wr(t){return null==t?t:Ci.call(t)}var Qr=zn((function(t){return qn(rn(t,1,Bg,!0))})),Ur=zn((function(t){var e=Zr(t);return Bg(e)&&(e=void 0),qn(rn(t,1,Bg,!0),Ko(e,2))})),Yr=zn((function(t){var e=Zr(t);return e="function"==typeof e?e:void 0,qn(rn(t,1,Bg,!0),void 0,e)}));function Vr(t){if(!t||!t.length)return[];var e=0;return t=Ce(t,(function(t){if(Bg(t))return e=ri(t.length,e),!0})),Me(e,(function(e){return ce(t,ke(e))}))}function Hr(t,e){if(!t||!t.length)return[];var i=Vr(t);return null==e?i:ce(i,(function(t){return re(e,void 0,t)}))}var Xr=zn((function(t,e){return Bg(t)?qi(t,e):[]})),Jr=zn((function(t){return no(Ce(t,Bg))})),Kr=zn((function(t){var e=Zr(t);return Bg(e)&&(e=void 0),no(Ce(t,Bg),Ko(e,2))})),qr=zn((function(t){var e=Zr(t);return e="function"==typeof e?e:void 0,no(Ce(t,Bg),void 0,e)})),$r=zn(Vr);var tg=zn((function(t){var e=t.length,i=e>1?t[e-1]:void 0;return i="function"==typeof i?(t.pop(),i):void 0,Hr(t,i)}));function eg(t){var e=Di(t);return e.__chain__=!0,e}function ig(t,e){return e(t)}var ng=Uo((function(t){var e=t.length,i=e?t[0]:0,n=this.__wrapped__,o=function(e){return Vi(e,t)};return!(e>1||this.__actions__.length)&&n instanceof Ni&&sr(i)?((n=n.slice(i,+i+(e?1:0))).__actions__.push({func:ig,args:[o],thisArg:void 0}),new Ti(n,this.__chain__).thru((function(t){return e&&!t.length&&t.push(void 0),t}))):this.thru(o)}));var og=mo((function(t,e,i){xt.call(t,i)?++t[i]:Yi(t,i,1)}));var rg=Do(Er),gg=Do(Fr);function sg(t,e){return(Fg(t)?se:$i)(t,Ko(e,3))}function ag(t,e){return(Fg(t)?ae:tn)(t,Ko(e,3))}var Ag=mo((function(t,e,i){xt.call(t,i)?t[i].push(e):Yi(t,i,[e])}));var Cg=zn((function(t,e,i){var o=-1,r="function"==typeof e,g=jg(t)?n(t.length):[];return $i(t,(function(t){g[++o]=r?re(e,t,i):fn(t,e,i)})),g})),Ig=mo((function(t,e,i){Yi(t,i,e)}));function lg(t,e){return(Fg(t)?ce:Dn)(t,Ko(e,3))}var cg=mo((function(t,e,i){t[i?0:1].push(e)}),(function(){return[[],[]]}));var hg=zn((function(t,e){if(null==t)return[];var i=e.length;return i>1&&ar(t,e[0],e[1])?e=[]:i>2&&ar(e[0],e[1],e[2])&&(e=[e[0]]),En(t,rn(e,1),[])})),ug=Je||function(){return Vt.Date.now()};function dg(t,e,i){return e=i?void 0:e,Go(t,128,void 0,void 0,void 0,void 0,e=t&&null==e?t.length:e)}function pg(t,e){var i;if("function"!=typeof e)throw new ft(r);return t=ns(t),function(){return--t>0&&(i=e.apply(this,arguments)),t<=1&&(e=void 0),i}}var fg=zn((function(t,e,i){var n=1;if(i.length){var o=Le(i,Jo(fg));n|=32}return Go(t,n,e,i,o)})),vg=zn((function(t,e,i){var n=3;if(i.length){var o=Le(i,Jo(vg));n|=32}return Go(e,n,t,i,o)}));function mg(t,e,i){var n,o,g,s,a,A,C=0,I=!1,l=!1,c=!0;if("function"!=typeof t)throw new ft(r);function h(e){var i=n,r=o;return n=o=void 0,C=e,s=t.apply(r,i)}function u(t){return C=t,a=mr(p,e),I?h(t):s}function d(t){var i=t-A;return void 0===A||i>=e||i<0||l&&t-C>=g}function p(){var t=ug();if(d(t))return f(t);a=mr(p,function(t){var i=e-(t-A);return l?gi(i,g-(t-C)):i}(t))}function f(t){return a=void 0,c&&n?h(t):(n=o=void 0,s)}function v(){var t=ug(),i=d(t);if(n=arguments,o=this,A=t,i){if(void 0===a)return u(A);if(l)return Co(a),a=mr(p,e),h(A)}return void 0===a&&(a=mr(p,e)),s}return e=rs(e)||0,Wg(i)&&(I=!!i.leading,g=(l="maxWait"in i)?ri(rs(i.maxWait)||0,e):g,c="trailing"in i?!!i.trailing:c),v.cancel=function(){void 0!==a&&Co(a),C=0,n=A=o=a=void 0},v.flush=function(){return void 0===a?s:f(ug())},v}var yg=zn((function(t,e){return Ki(t,1,e)})),bg=zn((function(t,e,i){return Ki(t,rs(e)||0,i)}));function wg(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new ft(r);var i=function(){var n=arguments,o=e?e.apply(this,n):n[0],r=i.cache;if(r.has(o))return r.get(o);var g=t.apply(this,n);return i.cache=r.set(o,g)||r,g};return i.cache=new(wg.Cache||Si),i}function xg(t){if("function"!=typeof t)throw new ft(r);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}wg.Cache=Si;var kg=ao((function(t,e){var i=(e=1==e.length&&Fg(e[0])?ce(e[0],Te(Ko())):ce(rn(e,1),Te(Ko()))).length;return zn((function(n){for(var o=-1,r=gi(n.length,i);++o<r;)n[o]=e[o].call(this,n[o]);return re(t,this,n)}))})),_g=zn((function(t,e){return Go(t,32,void 0,e,Le(e,Jo(_g)))})),Dg=zn((function(t,e){return Go(t,64,void 0,e,Le(e,Jo(Dg)))})),Og=Uo((function(t,e){return Go(t,256,void 0,void 0,void 0,e)}));function Mg(t,e){return t===e||t!=t&&e!=e}var Tg=jo(hn),Ng=jo((function(t,e){return t>=e})),Eg=vn(function(){return arguments}())?vn:function(t){return Qg(t)&&xt.call(t,"callee")&&!Ht.call(t,"callee")},Fg=n.isArray,Sg=$t?Te($t):function(t){return Qg(t)&&cn(t)==w};function jg(t){return null!=t&&Lg(t.length)&&!Gg(t)}function Bg(t){return Qg(t)&&jg(t)}var Rg=ei||ra,zg=te?Te(te):function(t){return Qg(t)&&cn(t)==I};function Zg(t){if(!Qg(t))return!1;var e=cn(t);return e==l||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!Vg(t)}function Gg(t){if(!Wg(t))return!1;var e=cn(t);return e==c||e==h||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Pg(t){return"number"==typeof t&&t==ns(t)}function Lg(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function Wg(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Qg(t){return null!=t&&"object"==typeof t}var Ug=ee?Te(ee):function(t){return Qg(t)&&nr(t)==u};function Yg(t){return"number"==typeof t||Qg(t)&&cn(t)==d}function Vg(t){if(!Qg(t)||cn(t)!=p)return!1;var e=Ut(t);if(null===e)return!0;var i=xt.call(e,"constructor")&&e.constructor;return"function"==typeof i&&i instanceof i&&wt.call(i)==Ot}var Hg=ie?Te(ie):function(t){return Qg(t)&&cn(t)==f};var Xg=ne?Te(ne):function(t){return Qg(t)&&nr(t)==v};function Jg(t){return"string"==typeof t||!Fg(t)&&Qg(t)&&cn(t)==m}function Kg(t){return"symbol"==typeof t||Qg(t)&&cn(t)==y}var qg=oe?Te(oe):function(t){return Qg(t)&&Lg(t.length)&&!!Gt[cn(t)]};var $g=jo(_n),ts=jo((function(t,e){return t<=e}));function es(t){if(!t)return[];if(jg(t))return Jg(t)?Ye(t):fo(t);if(qt&&t[qt])return function(t){for(var e,i=[];!(e=t.next()).done;)i.push(e.value);return i}(t[qt]());var e=nr(t);return(e==u?Ge:e==v?We:Ms)(t)}function is(t){return t?(t=rs(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function ns(t){var e=is(t),i=e%1;return e==e?i?e-i:e:0}function os(t){return t?Hi(ns(t),0,4294967295):0}function rs(t){if("number"==typeof t)return t;if(Kg(t))return NaN;if(Wg(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Wg(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(H,"");var i=rt.test(t);return i||st.test(t)?Qt(t.slice(2),i?2:8):ot.test(t)?NaN:+t}function gs(t){return vo(t,ys(t))}function ss(t){return null==t?"":Kn(t)}var as=yo((function(t,e){if(lr(e)||jg(e))vo(e,ms(e),t);else for(var i in e)xt.call(e,i)&&Li(t,i,e[i])})),As=yo((function(t,e){vo(e,ys(e),t)})),Cs=yo((function(t,e,i,n){vo(e,ys(e),t,n)})),Is=yo((function(t,e,i,n){vo(e,ms(e),t,n)})),ls=Uo(Vi);var cs=zn((function(t,e){t=ut(t);var i=-1,n=e.length,o=n>2?e[2]:void 0;for(o&&ar(e[0],e[1],o)&&(n=1);++i<n;)for(var r=e[i],g=ys(r),s=-1,a=g.length;++s<a;){var A=g[s],C=t[A];(void 0===C||Mg(C,yt[A])&&!xt.call(t,A))&&(t[A]=r[A])}return t})),hs=zn((function(t){return t.push(void 0,Lo),re(ws,void 0,t)}));function us(t,e,i){var n=null==t?void 0:In(t,e);return void 0===n?i:n}function ds(t,e){return null!=t&&or(t,e,dn)}var ps=To((function(t,e,i){null!=e&&"function"!=typeof e.toString&&(e=Dt.call(e)),t[e]=i}),Ws(Ys)),fs=To((function(t,e,i){null!=e&&"function"!=typeof e.toString&&(e=Dt.call(e)),xt.call(t,e)?t[e].push(i):t[e]=[i]}),Ko),vs=zn(fn);function ms(t){return jg(t)?Ri(t):xn(t)}function ys(t){return jg(t)?Ri(t,!0):kn(t)}var bs=yo((function(t,e,i){Tn(t,e,i)})),ws=yo((function(t,e,i,n){Tn(t,e,i,n)})),xs=Uo((function(t,e){var i={};if(null==t)return i;var n=!1;e=ce(e,(function(e){return e=so(e,t),n||(n=e.length>1),e})),vo(t,Vo(t),i),n&&(i=Xi(i,7,Wo));for(var o=e.length;o--;)$n(i,e[o]);return i}));var ks=Uo((function(t,e){return null==t?{}:function(t,e){return Fn(t,e,(function(e,i){return ds(t,i)}))}(t,e)}));function _s(t,e){if(null==t)return{};var i=ce(Vo(t),(function(t){return[t]}));return e=Ko(e),Fn(t,i,(function(t,i){return e(t,i[0])}))}var Ds=Zo(ms),Os=Zo(ys);function Ms(t){return null==t?[]:Ne(t,ms(t))}var Ts=ko((function(t,e,i){return e=e.toLowerCase(),t+(i?Ns(e):e)}));function Ns(t){return Zs(ss(t).toLowerCase())}function Es(t){return(t=ss(t))&&t.replace(At,Be).replace(Ft,"")}var Fs=ko((function(t,e,i){return t+(i?"-":"")+e.toLowerCase()})),Ss=ko((function(t,e,i){return t+(i?" ":"")+e.toLowerCase()})),js=xo("toLowerCase");var Bs=ko((function(t,e,i){return t+(i?"_":"")+e.toLowerCase()}));var Rs=ko((function(t,e,i){return t+(i?" ":"")+Zs(e)}));var zs=ko((function(t,e,i){return t+(i?" ":"")+e.toUpperCase()})),Zs=xo("toUpperCase");function Gs(t,e,i){return t=ss(t),void 0===(e=i?void 0:e)?function(t){return Rt.test(t)}(t)?function(t){return t.match(jt)||[]}(t):function(t){return t.match(tt)||[]}(t):t.match(e)||[]}var Ps=zn((function(t,e){try{return re(t,void 0,e)}catch(t){return Zg(t)?t:new lt(t)}})),Ls=Uo((function(t,e){return se(e,(function(e){e=_r(e),Yi(t,e,fg(t[e],t))})),t}));function Ws(t){return function(){return t}}var Qs=Oo(),Us=Oo(!0);function Ys(t){return t}function Vs(t){return wn("function"==typeof t?t:Xi(t,1))}var Hs=zn((function(t,e){return function(i){return fn(i,t,e)}})),Xs=zn((function(t,e){return function(i){return fn(t,i,e)}}));function Js(t,e,i){var n=ms(e),o=Cn(e,n);null!=i||Wg(e)&&(o.length||!n.length)||(i=e,e=t,t=this,o=Cn(e,ms(e)));var r=!(Wg(i)&&"chain"in i&&!i.chain),g=Gg(t);return se(o,(function(i){var n=e[i];t[i]=n,g&&(t.prototype[i]=function(){var e=this.__chain__;if(r||e){var i=t(this.__wrapped__),o=i.__actions__=fo(this.__actions__);return o.push({func:n,args:arguments,thisArg:t}),i.__chain__=e,i}return n.apply(t,he([this.value()],arguments))})})),t}function Ks(){}var qs=Eo(ce),$s=Eo(Ae),ta=Eo(pe);function ea(t){return Ar(t)?ke(_r(t)):function(t){return function(e){return In(e,t)}}(t)}var ia=So(),na=So(!0);function oa(){return[]}function ra(){return!1}var ga=No((function(t,e){return t+e}),0),sa=Ro("ceil"),aa=No((function(t,e){return t/e}),1),Aa=Ro("floor");var Ca,Ia=No((function(t,e){return t*e}),1),la=Ro("round"),ca=No((function(t,e){return t-e}),0);return Di.after=function(t,e){if("function"!=typeof e)throw new ft(r);return t=ns(t),function(){if(--t<1)return e.apply(this,arguments)}},Di.ary=dg,Di.assign=as,Di.assignIn=As,Di.assignInWith=Cs,Di.assignWith=Is,Di.at=ls,Di.before=pg,Di.bind=fg,Di.bindAll=Ls,Di.bindKey=vg,Di.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Fg(t)?t:[t]},Di.chain=eg,Di.chunk=function(t,e,i){e=(i?ar(t,e,i):void 0===e)?1:ri(ns(e),0);var o=null==t?0:t.length;if(!o||e<1)return[];for(var r=0,g=0,s=n(qe(o/e));r<o;)s[g++]=Un(t,r,r+=e);return s},Di.compact=function(t){for(var e=-1,i=null==t?0:t.length,n=0,o=[];++e<i;){var r=t[e];r&&(o[n++]=r)}return o},Di.concat=function(){var t=arguments.length;if(!t)return[];for(var e=n(t-1),i=arguments[0],o=t;o--;)e[o-1]=arguments[o];return he(Fg(i)?fo(i):[i],rn(e,1))},Di.cond=function(t){var e=null==t?0:t.length,i=Ko();return t=e?ce(t,(function(t){if("function"!=typeof t[1])throw new ft(r);return[i(t[0]),t[1]]})):[],zn((function(i){for(var n=-1;++n<e;){var o=t[n];if(re(o[0],this,i))return re(o[1],this,i)}}))},Di.conforms=function(t){return function(t){var e=ms(t);return function(i){return Ji(i,t,e)}}(Xi(t,1))},Di.constant=Ws,Di.countBy=og,Di.create=function(t,e){var i=Oi(t);return null==e?i:Ui(i,e)},Di.curry=function t(e,i,n){var o=Go(e,8,void 0,void 0,void 0,void 0,void 0,i=n?void 0:i);return o.placeholder=t.placeholder,o},Di.curryRight=function t(e,i,n){var o=Go(e,16,void 0,void 0,void 0,void 0,void 0,i=n?void 0:i);return o.placeholder=t.placeholder,o},Di.debounce=mg,Di.defaults=cs,Di.defaultsDeep=hs,Di.defer=yg,Di.delay=bg,Di.difference=Mr,Di.differenceBy=Tr,Di.differenceWith=Nr,Di.drop=function(t,e,i){var n=null==t?0:t.length;return n?Un(t,(e=i||void 0===e?1:ns(e))<0?0:e,n):[]},Di.dropRight=function(t,e,i){var n=null==t?0:t.length;return n?Un(t,0,(e=n-(e=i||void 0===e?1:ns(e)))<0?0:e):[]},Di.dropRightWhile=function(t,e){return t&&t.length?eo(t,Ko(e,3),!0,!0):[]},Di.dropWhile=function(t,e){return t&&t.length?eo(t,Ko(e,3),!0):[]},Di.fill=function(t,e,i,n){var o=null==t?0:t.length;return o?(i&&"number"!=typeof i&&ar(t,e,i)&&(i=0,n=o),function(t,e,i,n){var o=t.length;for((i=ns(i))<0&&(i=-i>o?0:o+i),(n=void 0===n||n>o?o:ns(n))<0&&(n+=o),n=i>n?0:os(n);i<n;)t[i++]=e;return t}(t,e,i,n)):[]},Di.filter=function(t,e){return(Fg(t)?Ce:on)(t,Ko(e,3))},Di.flatMap=function(t,e){return rn(lg(t,e),1)},Di.flatMapDeep=function(t,e){return rn(lg(t,e),1/0)},Di.flatMapDepth=function(t,e,i){return i=void 0===i?1:ns(i),rn(lg(t,e),i)},Di.flatten=Sr,Di.flattenDeep=function(t){return(null==t?0:t.length)?rn(t,1/0):[]},Di.flattenDepth=function(t,e){return(null==t?0:t.length)?rn(t,e=void 0===e?1:ns(e)):[]},Di.flip=function(t){return Go(t,512)},Di.flow=Qs,Di.flowRight=Us,Di.fromPairs=function(t){for(var e=-1,i=null==t?0:t.length,n={};++e<i;){var o=t[e];n[o[0]]=o[1]}return n},Di.functions=function(t){return null==t?[]:Cn(t,ms(t))},Di.functionsIn=function(t){return null==t?[]:Cn(t,ys(t))},Di.groupBy=Ag,Di.initial=function(t){return(null==t?0:t.length)?Un(t,0,-1):[]},Di.intersection=Br,Di.intersectionBy=Rr,Di.intersectionWith=zr,Di.invert=ps,Di.invertBy=fs,Di.invokeMap=Cg,Di.iteratee=Vs,Di.keyBy=Ig,Di.keys=ms,Di.keysIn=ys,Di.map=lg,Di.mapKeys=function(t,e){var i={};return e=Ko(e,3),an(t,(function(t,n,o){Yi(i,e(t,n,o),t)})),i},Di.mapValues=function(t,e){var i={};return e=Ko(e,3),an(t,(function(t,n,o){Yi(i,n,e(t,n,o))})),i},Di.matches=function(t){return On(Xi(t,1))},Di.matchesProperty=function(t,e){return Mn(t,Xi(e,1))},Di.memoize=wg,Di.merge=bs,Di.mergeWith=ws,Di.method=Hs,Di.methodOf=Xs,Di.mixin=Js,Di.negate=xg,Di.nthArg=function(t){return t=ns(t),zn((function(e){return Nn(e,t)}))},Di.omit=xs,Di.omitBy=function(t,e){return _s(t,xg(Ko(e)))},Di.once=function(t){return pg(2,t)},Di.orderBy=function(t,e,i,n){return null==t?[]:(Fg(e)||(e=null==e?[]:[e]),Fg(i=n?void 0:i)||(i=null==i?[]:[i]),En(t,e,i))},Di.over=qs,Di.overArgs=kg,Di.overEvery=$s,Di.overSome=ta,Di.partial=_g,Di.partialRight=Dg,Di.partition=cg,Di.pick=ks,Di.pickBy=_s,Di.property=ea,Di.propertyOf=function(t){return function(e){return null==t?void 0:In(t,e)}},Di.pull=Gr,Di.pullAll=Pr,Di.pullAllBy=function(t,e,i){return t&&t.length&&e&&e.length?Sn(t,e,Ko(i,2)):t},Di.pullAllWith=function(t,e,i){return t&&t.length&&e&&e.length?Sn(t,e,void 0,i):t},Di.pullAt=Lr,Di.range=ia,Di.rangeRight=na,Di.rearg=Og,Di.reject=function(t,e){return(Fg(t)?Ce:on)(t,xg(Ko(e,3)))},Di.remove=function(t,e){var i=[];if(!t||!t.length)return i;var n=-1,o=[],r=t.length;for(e=Ko(e,3);++n<r;){var g=t[n];e(g,n,t)&&(i.push(g),o.push(n))}return jn(t,o),i},Di.rest=function(t,e){if("function"!=typeof t)throw new ft(r);return zn(t,e=void 0===e?e:ns(e))},Di.reverse=Wr,Di.sampleSize=function(t,e,i){return e=(i?ar(t,e,i):void 0===e)?1:ns(e),(Fg(t)?Zi:Gn)(t,e)},Di.set=function(t,e,i){return null==t?t:Pn(t,e,i)},Di.setWith=function(t,e,i,n){return n="function"==typeof n?n:void 0,null==t?t:Pn(t,e,i,n)},Di.shuffle=function(t){return(Fg(t)?Gi:Qn)(t)},Di.slice=function(t,e,i){var n=null==t?0:t.length;return n?(i&&"number"!=typeof i&&ar(t,e,i)?(e=0,i=n):(e=null==e?0:ns(e),i=void 0===i?n:ns(i)),Un(t,e,i)):[]},Di.sortBy=hg,Di.sortedUniq=function(t){return t&&t.length?Xn(t):[]},Di.sortedUniqBy=function(t,e){return t&&t.length?Xn(t,Ko(e,2)):[]},Di.split=function(t,e,i){return i&&"number"!=typeof i&&ar(t,e,i)&&(e=i=void 0),(i=void 0===i?4294967295:i>>>0)?(t=ss(t))&&("string"==typeof e||null!=e&&!Hg(e))&&!(e=Kn(e))&&Ze(t)?Ao(Ye(t),0,i):t.split(e,i):[]},Di.spread=function(t,e){if("function"!=typeof t)throw new ft(r);return e=null==e?0:ri(ns(e),0),zn((function(i){var n=i[e],o=Ao(i,0,e);return n&&he(o,n),re(t,this,o)}))},Di.tail=function(t){var e=null==t?0:t.length;return e?Un(t,1,e):[]},Di.take=function(t,e,i){return t&&t.length?Un(t,0,(e=i||void 0===e?1:ns(e))<0?0:e):[]},Di.takeRight=function(t,e,i){var n=null==t?0:t.length;return n?Un(t,(e=n-(e=i||void 0===e?1:ns(e)))<0?0:e,n):[]},Di.takeRightWhile=function(t,e){return t&&t.length?eo(t,Ko(e,3),!1,!0):[]},Di.takeWhile=function(t,e){return t&&t.length?eo(t,Ko(e,3)):[]},Di.tap=function(t,e){return e(t),t},Di.throttle=function(t,e,i){var n=!0,o=!0;if("function"!=typeof t)throw new ft(r);return Wg(i)&&(n="leading"in i?!!i.leading:n,o="trailing"in i?!!i.trailing:o),mg(t,e,{leading:n,maxWait:e,trailing:o})},Di.thru=ig,Di.toArray=es,Di.toPairs=Ds,Di.toPairsIn=Os,Di.toPath=function(t){return Fg(t)?ce(t,_r):Kg(t)?[t]:fo(kr(ss(t)))},Di.toPlainObject=gs,Di.transform=function(t,e,i){var n=Fg(t),o=n||Rg(t)||qg(t);if(e=Ko(e,4),null==i){var r=t&&t.constructor;i=o?n?new r:[]:Wg(t)&&Gg(r)?Oi(Ut(t)):{}}return(o?se:an)(t,(function(t,n,o){return e(i,t,n,o)})),i},Di.unary=function(t){return dg(t,1)},Di.union=Qr,Di.unionBy=Ur,Di.unionWith=Yr,Di.uniq=function(t){return t&&t.length?qn(t):[]},Di.uniqBy=function(t,e){return t&&t.length?qn(t,Ko(e,2)):[]},Di.uniqWith=function(t,e){return e="function"==typeof e?e:void 0,t&&t.length?qn(t,void 0,e):[]},Di.unset=function(t,e){return null==t||$n(t,e)},Di.unzip=Vr,Di.unzipWith=Hr,Di.update=function(t,e,i){return null==t?t:to(t,e,go(i))},Di.updateWith=function(t,e,i,n){return n="function"==typeof n?n:void 0,null==t?t:to(t,e,go(i),n)},Di.values=Ms,Di.valuesIn=function(t){return null==t?[]:Ne(t,ys(t))},Di.without=Xr,Di.words=Gs,Di.wrap=function(t,e){return _g(go(e),t)},Di.xor=Jr,Di.xorBy=Kr,Di.xorWith=qr,Di.zip=$r,Di.zipObject=function(t,e){return oo(t||[],e||[],Li)},Di.zipObjectDeep=function(t,e){return oo(t||[],e||[],Pn)},Di.zipWith=tg,Di.entries=Ds,Di.entriesIn=Os,Di.extend=As,Di.extendWith=Cs,Js(Di,Di),Di.add=ga,Di.attempt=Ps,Di.camelCase=Ts,Di.capitalize=Ns,Di.ceil=sa,Di.clamp=function(t,e,i){return void 0===i&&(i=e,e=void 0),void 0!==i&&(i=(i=rs(i))==i?i:0),void 0!==e&&(e=(e=rs(e))==e?e:0),Hi(rs(t),e,i)},Di.clone=function(t){return Xi(t,4)},Di.cloneDeep=function(t){return Xi(t,5)},Di.cloneDeepWith=function(t,e){return Xi(t,5,e="function"==typeof e?e:void 0)},Di.cloneWith=function(t,e){return Xi(t,4,e="function"==typeof e?e:void 0)},Di.conformsTo=function(t,e){return null==e||Ji(t,e,ms(e))},Di.deburr=Es,Di.defaultTo=function(t,e){return null==t||t!=t?e:t},Di.divide=aa,Di.endsWith=function(t,e,i){t=ss(t),e=Kn(e);var n=t.length,o=i=void 0===i?n:Hi(ns(i),0,n);return(i-=e.length)>=0&&t.slice(i,o)==e},Di.eq=Mg,Di.escape=function(t){return(t=ss(t))&&Z.test(t)?t.replace(R,Re):t},Di.escapeRegExp=function(t){return(t=ss(t))&&V.test(t)?t.replace(Y,"\\$&"):t},Di.every=function(t,e,i){var n=Fg(t)?Ae:en;return i&&ar(t,e,i)&&(e=void 0),n(t,Ko(e,3))},Di.find=rg,Di.findIndex=Er,Di.findKey=function(t,e){return ve(t,Ko(e,3),an)},Di.findLast=gg,Di.findLastIndex=Fr,Di.findLastKey=function(t,e){return ve(t,Ko(e,3),An)},Di.floor=Aa,Di.forEach=sg,Di.forEachRight=ag,Di.forIn=function(t,e){return null==t?t:gn(t,Ko(e,3),ys)},Di.forInRight=function(t,e){return null==t?t:sn(t,Ko(e,3),ys)},Di.forOwn=function(t,e){return t&&an(t,Ko(e,3))},Di.forOwnRight=function(t,e){return t&&An(t,Ko(e,3))},Di.get=us,Di.gt=Tg,Di.gte=Ng,Di.has=function(t,e){return null!=t&&or(t,e,un)},Di.hasIn=ds,Di.head=jr,Di.identity=Ys,Di.includes=function(t,e,i,n){t=jg(t)?t:Ms(t),i=i&&!n?ns(i):0;var o=t.length;return i<0&&(i=ri(o+i,0)),Jg(t)?i<=o&&t.indexOf(e,i)>-1:!!o&&ye(t,e,i)>-1},Di.indexOf=function(t,e,i){var n=null==t?0:t.length;if(!n)return-1;var o=null==i?0:ns(i);return o<0&&(o=ri(n+o,0)),ye(t,e,o)},Di.inRange=function(t,e,i){return e=is(e),void 0===i?(i=e,e=0):i=is(i),function(t,e,i){return t>=gi(e,i)&&t<ri(e,i)}(t=rs(t),e,i)},Di.invoke=vs,Di.isArguments=Eg,Di.isArray=Fg,Di.isArrayBuffer=Sg,Di.isArrayLike=jg,Di.isArrayLikeObject=Bg,Di.isBoolean=function(t){return!0===t||!1===t||Qg(t)&&cn(t)==C},Di.isBuffer=Rg,Di.isDate=zg,Di.isElement=function(t){return Qg(t)&&1===t.nodeType&&!Vg(t)},Di.isEmpty=function(t){if(null==t)return!0;if(jg(t)&&(Fg(t)||"string"==typeof t||"function"==typeof t.splice||Rg(t)||qg(t)||Eg(t)))return!t.length;var e=nr(t);if(e==u||e==v)return!t.size;if(lr(t))return!xn(t).length;for(var i in t)if(xt.call(t,i))return!1;return!0},Di.isEqual=function(t,e){return mn(t,e)},Di.isEqualWith=function(t,e,i){var n=(i="function"==typeof i?i:void 0)?i(t,e):void 0;return void 0===n?mn(t,e,void 0,i):!!n},Di.isError=Zg,Di.isFinite=function(t){return"number"==typeof t&&ii(t)},Di.isFunction=Gg,Di.isInteger=Pg,Di.isLength=Lg,Di.isMap=Ug,Di.isMatch=function(t,e){return t===e||yn(t,e,$o(e))},Di.isMatchWith=function(t,e,i){return i="function"==typeof i?i:void 0,yn(t,e,$o(e),i)},Di.isNaN=function(t){return Yg(t)&&t!=+t},Di.isNative=function(t){if(Ir(t))throw new lt("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return bn(t)},Di.isNil=function(t){return null==t},Di.isNull=function(t){return null===t},Di.isNumber=Yg,Di.isObject=Wg,Di.isObjectLike=Qg,Di.isPlainObject=Vg,Di.isRegExp=Hg,Di.isSafeInteger=function(t){return Pg(t)&&t>=-9007199254740991&&t<=9007199254740991},Di.isSet=Xg,Di.isString=Jg,Di.isSymbol=Kg,Di.isTypedArray=qg,Di.isUndefined=function(t){return void 0===t},Di.isWeakMap=function(t){return Qg(t)&&nr(t)==b},Di.isWeakSet=function(t){return Qg(t)&&"[object WeakSet]"==cn(t)},Di.join=function(t,e){return null==t?"":ni.call(t,e)},Di.kebabCase=Fs,Di.last=Zr,Di.lastIndexOf=function(t,e,i){var n=null==t?0:t.length;if(!n)return-1;var o=n;return void 0!==i&&(o=(o=ns(i))<0?ri(n+o,0):gi(o,n-1)),e==e?function(t,e,i){for(var n=i+1;n--;)if(t[n]===e)return n;return n}(t,e,o):me(t,we,o,!0)},Di.lowerCase=Ss,Di.lowerFirst=js,Di.lt=$g,Di.lte=ts,Di.max=function(t){return t&&t.length?nn(t,Ys,hn):void 0},Di.maxBy=function(t,e){return t&&t.length?nn(t,Ko(e,2),hn):void 0},Di.mean=function(t){return xe(t,Ys)},Di.meanBy=function(t,e){return xe(t,Ko(e,2))},Di.min=function(t){return t&&t.length?nn(t,Ys,_n):void 0},Di.minBy=function(t,e){return t&&t.length?nn(t,Ko(e,2),_n):void 0},Di.stubArray=oa,Di.stubFalse=ra,Di.stubObject=function(){return{}},Di.stubString=function(){return""},Di.stubTrue=function(){return!0},Di.multiply=Ia,Di.nth=function(t,e){return t&&t.length?Nn(t,ns(e)):void 0},Di.noConflict=function(){return Vt._===this&&(Vt._=Mt),this},Di.noop=Ks,Di.now=ug,Di.pad=function(t,e,i){t=ss(t);var n=(e=ns(e))?Ue(t):0;if(!e||n>=e)return t;var o=(e-n)/2;return Fo($e(o),i)+t+Fo(qe(o),i)},Di.padEnd=function(t,e,i){t=ss(t);var n=(e=ns(e))?Ue(t):0;return e&&n<e?t+Fo(e-n,i):t},Di.padStart=function(t,e,i){t=ss(t);var n=(e=ns(e))?Ue(t):0;return e&&n<e?Fo(e-n,i)+t:t},Di.parseInt=function(t,e,i){return i||null==e?e=0:e&&(e=+e),ai(ss(t).replace(X,""),e||0)},Di.random=function(t,e,i){if(i&&"boolean"!=typeof i&&ar(t,e,i)&&(e=i=void 0),void 0===i&&("boolean"==typeof e?(i=e,e=void 0):"boolean"==typeof t&&(i=t,t=void 0)),void 0===t&&void 0===e?(t=0,e=1):(t=is(t),void 0===e?(e=t,t=0):e=is(e)),t>e){var n=t;t=e,e=n}if(i||t%1||e%1){var o=Ai();return gi(t+o*(e-t+Wt("1e-"+((o+"").length-1))),e)}return Bn(t,e)},Di.reduce=function(t,e,i){var n=Fg(t)?ue:De,o=arguments.length<3;return n(t,Ko(e,4),i,o,$i)},Di.reduceRight=function(t,e,i){var n=Fg(t)?de:De,o=arguments.length<3;return n(t,Ko(e,4),i,o,tn)},Di.repeat=function(t,e,i){return e=(i?ar(t,e,i):void 0===e)?1:ns(e),Rn(ss(t),e)},Di.replace=function(){var t=arguments,e=ss(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Di.result=function(t,e,i){var n=-1,o=(e=so(e,t)).length;for(o||(o=1,t=void 0);++n<o;){var r=null==t?void 0:t[_r(e[n])];void 0===r&&(n=o,r=i),t=Gg(r)?r.call(t):r}return t},Di.round=la,Di.runInContext=t,Di.sample=function(t){return(Fg(t)?zi:Zn)(t)},Di.size=function(t){if(null==t)return 0;if(jg(t))return Jg(t)?Ue(t):t.length;var e=nr(t);return e==u||e==v?t.size:xn(t).length},Di.snakeCase=Bs,Di.some=function(t,e,i){var n=Fg(t)?pe:Yn;return i&&ar(t,e,i)&&(e=void 0),n(t,Ko(e,3))},Di.sortedIndex=function(t,e){return Vn(t,e)},Di.sortedIndexBy=function(t,e,i){return Hn(t,e,Ko(i,2))},Di.sortedIndexOf=function(t,e){var i=null==t?0:t.length;if(i){var n=Vn(t,e);if(n<i&&Mg(t[n],e))return n}return-1},Di.sortedLastIndex=function(t,e){return Vn(t,e,!0)},Di.sortedLastIndexBy=function(t,e,i){return Hn(t,e,Ko(i,2),!0)},Di.sortedLastIndexOf=function(t,e){if(null==t?0:t.length){var i=Vn(t,e,!0)-1;if(Mg(t[i],e))return i}return-1},Di.startCase=Rs,Di.startsWith=function(t,e,i){return t=ss(t),i=null==i?0:Hi(ns(i),0,t.length),e=Kn(e),t.slice(i,i+e.length)==e},Di.subtract=ca,Di.sum=function(t){return t&&t.length?Oe(t,Ys):0},Di.sumBy=function(t,e){return t&&t.length?Oe(t,Ko(e,2)):0},Di.template=function(t,e,i){var n=Di.templateSettings;i&&ar(t,e,i)&&(e=void 0),t=ss(t),e=Cs({},e,n,Po);var o,r,g=Cs({},e.imports,n.imports,Po),s=ms(g),a=Ne(g,s),A=0,C=e.interpolate||Ct,I="__p += '",l=dt((e.escape||Ct).source+"|"+C.source+"|"+(C===L?it:Ct).source+"|"+(e.evaluate||Ct).source+"|$","g"),c="//# sourceURL="+(xt.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Zt+"]")+"\n";t.replace(l,(function(e,i,n,g,s,a){return n||(n=g),I+=t.slice(A,a).replace(It,ze),i&&(o=!0,I+="' +\n__e("+i+") +\n'"),s&&(r=!0,I+="';\n"+s+";\n__p += '"),n&&(I+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),A=a+e.length,e})),I+="';\n";var h=xt.call(e,"variable")&&e.variable;h||(I="with (obj) {\n"+I+"\n}\n"),I=(r?I.replace(F,""):I).replace(S,"$1").replace(j,"$1;"),I="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(r?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+I+"return __p\n}";var u=Ps((function(){return ct(s,c+"return "+I).apply(void 0,a)}));if(u.source=I,Zg(u))throw u;return u},Di.times=function(t,e){if((t=ns(t))<1||t>9007199254740991)return[];var i=4294967295,n=gi(t,4294967295);t-=4294967295;for(var o=Me(n,e=Ko(e));++i<t;)e(i);return o},Di.toFinite=is,Di.toInteger=ns,Di.toLength=os,Di.toLower=function(t){return ss(t).toLowerCase()},Di.toNumber=rs,Di.toSafeInteger=function(t){return t?Hi(ns(t),-9007199254740991,9007199254740991):0===t?t:0},Di.toString=ss,Di.toUpper=function(t){return ss(t).toUpperCase()},Di.trim=function(t,e,i){if((t=ss(t))&&(i||void 0===e))return t.replace(H,"");if(!t||!(e=Kn(e)))return t;var n=Ye(t),o=Ye(e);return Ao(n,Fe(n,o),Se(n,o)+1).join("")},Di.trimEnd=function(t,e,i){if((t=ss(t))&&(i||void 0===e))return t.replace(J,"");if(!t||!(e=Kn(e)))return t;var n=Ye(t);return Ao(n,0,Se(n,Ye(e))+1).join("")},Di.trimStart=function(t,e,i){if((t=ss(t))&&(i||void 0===e))return t.replace(X,"");if(!t||!(e=Kn(e)))return t;var n=Ye(t);return Ao(n,Fe(n,Ye(e))).join("")},Di.truncate=function(t,e){var i=30,n="...";if(Wg(e)){var o="separator"in e?e.separator:o;i="length"in e?ns(e.length):i,n="omission"in e?Kn(e.omission):n}var r=(t=ss(t)).length;if(Ze(t)){var g=Ye(t);r=g.length}if(i>=r)return t;var s=i-Ue(n);if(s<1)return n;var a=g?Ao(g,0,s).join(""):t.slice(0,s);if(void 0===o)return a+n;if(g&&(s+=a.length-s),Hg(o)){if(t.slice(s).search(o)){var A,C=a;for(o.global||(o=dt(o.source,ss(nt.exec(o))+"g")),o.lastIndex=0;A=o.exec(C);)var I=A.index;a=a.slice(0,void 0===I?s:I)}}else if(t.indexOf(Kn(o),s)!=s){var l=a.lastIndexOf(o);l>-1&&(a=a.slice(0,l))}return a+n},Di.unescape=function(t){return(t=ss(t))&&z.test(t)?t.replace(B,Ve):t},Di.uniqueId=function(t){var e=++kt;return ss(t)+e},Di.upperCase=zs,Di.upperFirst=Zs,Di.each=sg,Di.eachRight=ag,Di.first=jr,Js(Di,(Ca={},an(Di,(function(t,e){xt.call(Di.prototype,e)||(Ca[e]=t)})),Ca),{chain:!1}),Di.VERSION="4.17.19",se(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Di[t].placeholder=Di})),se(["drop","take"],(function(t,e){Ni.prototype[t]=function(i){i=void 0===i?1:ri(ns(i),0);var n=this.__filtered__&&!e?new Ni(this):this.clone();return n.__filtered__?n.__takeCount__=gi(i,n.__takeCount__):n.__views__.push({size:gi(i,4294967295),type:t+(n.__dir__<0?"Right":"")}),n},Ni.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),se(["filter","map","takeWhile"],(function(t,e){var i=e+1,n=1==i||3==i;Ni.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:Ko(t,3),type:i}),e.__filtered__=e.__filtered__||n,e}})),se(["head","last"],(function(t,e){var i="take"+(e?"Right":"");Ni.prototype[t]=function(){return this[i](1).value()[0]}})),se(["initial","tail"],(function(t,e){var i="drop"+(e?"":"Right");Ni.prototype[t]=function(){return this.__filtered__?new Ni(this):this[i](1)}})),Ni.prototype.compact=function(){return this.filter(Ys)},Ni.prototype.find=function(t){return this.filter(t).head()},Ni.prototype.findLast=function(t){return this.reverse().find(t)},Ni.prototype.invokeMap=zn((function(t,e){return"function"==typeof t?new Ni(this):this.map((function(i){return fn(i,t,e)}))})),Ni.prototype.reject=function(t){return this.filter(xg(Ko(t)))},Ni.prototype.slice=function(t,e){t=ns(t);var i=this;return i.__filtered__&&(t>0||e<0)?new Ni(i):(t<0?i=i.takeRight(-t):t&&(i=i.drop(t)),void 0!==e&&(i=(e=ns(e))<0?i.dropRight(-e):i.take(e-t)),i)},Ni.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Ni.prototype.toArray=function(){return this.take(4294967295)},an(Ni.prototype,(function(t,e){var i=/^(?:filter|find|map|reject)|While$/.test(e),n=/^(?:head|last)$/.test(e),o=Di[n?"take"+("last"==e?"Right":""):e],r=n||/^find/.test(e);o&&(Di.prototype[e]=function(){var e=this.__wrapped__,g=n?[1]:arguments,s=e instanceof Ni,a=g[0],A=s||Fg(e),C=function(t){var e=o.apply(Di,he([t],g));return n&&I?e[0]:e};A&&i&&"function"==typeof a&&1!=a.length&&(s=A=!1);var I=this.__chain__,l=!!this.__actions__.length,c=r&&!I,h=s&&!l;if(!r&&A){e=h?e:new Ni(this);var u=t.apply(e,g);return u.__actions__.push({func:ig,args:[C],thisArg:void 0}),new Ti(u,I)}return c&&h?t.apply(this,g):(u=this.thru(C),c?n?u.value()[0]:u.value():u)})})),se(["pop","push","shift","sort","splice","unshift"],(function(t){var e=vt[t],i=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",n=/^(?:pop|shift)$/.test(t);Di.prototype[t]=function(){var t=arguments;if(n&&!this.__chain__){var o=this.value();return e.apply(Fg(o)?o:[],t)}return this[i]((function(i){return e.apply(Fg(i)?i:[],t)}))}})),an(Ni.prototype,(function(t,e){var i=Di[e];if(i){var n=i.name+"";xt.call(fi,n)||(fi[n]=[]),fi[n].push({name:e,func:i})}})),fi[Mo(void 0,2).name]=[{name:"wrapper",func:void 0}],Ni.prototype.clone=function(){var t=new Ni(this.__wrapped__);return t.__actions__=fo(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=fo(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=fo(this.__views__),t},Ni.prototype.reverse=function(){if(this.__filtered__){var t=new Ni(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Ni.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,i=Fg(t),n=e<0,o=i?t.length:0,r=function(t,e,i){var n=-1,o=i.length;for(;++n<o;){var r=i[n],g=r.size;switch(r.type){case"drop":t+=g;break;case"dropRight":e-=g;break;case"take":e=gi(e,t+g);break;case"takeRight":t=ri(t,e-g)}}return{start:t,end:e}}(0,o,this.__views__),g=r.start,s=r.end,a=s-g,A=n?s:g-1,C=this.__iteratees__,I=C.length,l=0,c=gi(a,this.__takeCount__);if(!i||!n&&o==a&&c==a)return io(t,this.__actions__);var h=[];t:for(;a--&&l<c;){for(var u=-1,d=t[A+=e];++u<I;){var p=C[u],f=p.iteratee,v=p.type,m=f(d);if(2==v)d=m;else if(!m){if(1==v)continue t;break t}}h[l++]=d}return h},Di.prototype.at=ng,Di.prototype.chain=function(){return eg(this)},Di.prototype.commit=function(){return new Ti(this.value(),this.__chain__)},Di.prototype.next=function(){void 0===this.__values__&&(this.__values__=es(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}},Di.prototype.plant=function(t){for(var e,i=this;i instanceof Mi;){var n=Or(i);n.__index__=0,n.__values__=void 0,e?o.__wrapped__=n:e=n;var o=n;i=i.__wrapped__}return o.__wrapped__=t,e},Di.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Ni){var e=t;return this.__actions__.length&&(e=new Ni(this)),(e=e.reverse()).__actions__.push({func:ig,args:[Wr],thisArg:void 0}),new Ti(e,this.__chain__)}return this.thru(Wr)},Di.prototype.toJSON=Di.prototype.valueOf=Di.prototype.value=function(){return io(this.__wrapped__,this.__actions__)},Di.prototype.first=Di.prototype.head,qt&&(Di.prototype[qt]=function(){return this}),Di}();Vt._=He,void 0===(o=function(){return He}.call(e,i,e,n))||(n.exports=o)}).call(this)}).call(this,i(2),i(11)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,i){var n;"undefined"!=typeof self&&self,n=function(){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},i.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=0)}({"./dist/icons.json":
/*!*************************!*\
  !*** ./dist/icons.json ***!
  \*************************/
/*! exports provided: activity, airplay, alert-circle, alert-octagon, alert-triangle, align-center, align-justify, align-left, align-right, anchor, aperture, archive, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, award, bar-chart-2, bar-chart, battery-charging, battery, bell-off, bell, bluetooth, bold, book-open, book, bookmark, box, briefcase, calendar, camera-off, camera, cast, check-circle, check-square, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, chrome, circle, clipboard, clock, cloud-drizzle, cloud-lightning, cloud-off, cloud-rain, cloud-snow, cloud, code, codepen, codesandbox, coffee, columns, command, compass, copy, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, cpu, credit-card, crop, crosshair, database, delete, disc, divide-circle, divide-square, divide, dollar-sign, download-cloud, download, dribbble, droplet, edit-2, edit-3, edit, external-link, eye-off, eye, facebook, fast-forward, feather, figma, file-minus, file-plus, file-text, file, film, filter, flag, folder-minus, folder-plus, folder, framer, frown, gift, git-branch, git-commit, git-merge, git-pull-request, github, gitlab, globe, grid, hard-drive, hash, headphones, heart, help-circle, hexagon, home, image, inbox, info, instagram, italic, key, layers, layout, life-buoy, link-2, link, linkedin, list, loader, lock, log-in, log-out, mail, map-pin, map, maximize-2, maximize, meh, menu, message-circle, message-square, mic-off, mic, minimize-2, minimize, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, mouse-pointer, move, music, navigation-2, navigation, octagon, package, paperclip, pause-circle, pause, pen-tool, percent, phone-call, phone-forwarded, phone-incoming, phone-missed, phone-off, phone-outgoing, phone, pie-chart, play-circle, play, plus-circle, plus-square, plus, pocket, power, printer, radio, refresh-ccw, refresh-cw, repeat, rewind, rotate-ccw, rotate-cw, rss, save, scissors, search, send, server, settings, share-2, share, shield-off, shield, shopping-bag, shopping-cart, shuffle, sidebar, skip-back, skip-forward, slack, slash, sliders, smartphone, smile, speaker, square, star, stop-circle, sun, sunrise, sunset, tablet, tag, target, terminal, thermometer, thumbs-down, thumbs-up, toggle-left, toggle-right, tool, trash-2, trash, trello, trending-down, trending-up, triangle, truck, tv, twitch, twitter, type, umbrella, underline, unlock, upload-cloud, upload, user-check, user-minus, user-plus, user-x, user, users, video-off, video, voicemail, volume-1, volume-2, volume-x, volume, watch, wifi-off, wifi, wind, x-circle, x-octagon, x-square, x, youtube, zap-off, zap, zoom-in, zoom-out, default */function(t){t.exports={activity:'<polyline points="22 12 18 12 15 21 9 3 6 12 2 12"></polyline>',airplay:'<path d="M5 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1"></path><polygon points="12 15 17 21 7 21 12 15"></polygon>',"alert-circle":'<circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line>',"alert-octagon":'<polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"></polygon><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line>',"alert-triangle":'<path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path><line x1="12" y1="9" x2="12" y2="13"></line><line x1="12" y1="17" x2="12.01" y2="17"></line>',"align-center":'<line x1="18" y1="10" x2="6" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="18" y1="18" x2="6" y2="18"></line>',"align-justify":'<line x1="21" y1="10" x2="3" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="21" y1="18" x2="3" y2="18"></line>',"align-left":'<line x1="17" y1="10" x2="3" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="17" y1="18" x2="3" y2="18"></line>',"align-right":'<line x1="21" y1="10" x2="7" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="21" y1="18" x2="7" y2="18"></line>',anchor:'<circle cx="12" cy="5" r="3"></circle><line x1="12" y1="22" x2="12" y2="8"></line><path d="M5 12H2a10 10 0 0 0 20 0h-3"></path>',aperture:'<circle cx="12" cy="12" r="10"></circle><line x1="14.31" y1="8" x2="20.05" y2="17.94"></line><line x1="9.69" y1="8" x2="21.17" y2="8"></line><line x1="7.38" y1="12" x2="13.12" y2="2.06"></line><line x1="9.69" y1="16" x2="3.95" y2="6.06"></line><line x1="14.31" y1="16" x2="2.83" y2="16"></line><line x1="16.62" y1="12" x2="10.88" y2="21.94"></line>',archive:'<polyline points="21 8 21 21 3 21 3 8"></polyline><rect x="1" y="3" width="22" height="5"></rect><line x1="10" y1="12" x2="14" y2="12"></line>',"arrow-down-circle":'<circle cx="12" cy="12" r="10"></circle><polyline points="8 12 12 16 16 12"></polyline><line x1="12" y1="8" x2="12" y2="16"></line>',"arrow-down-left":'<line x1="17" y1="7" x2="7" y2="17"></line><polyline points="17 17 7 17 7 7"></polyline>',"arrow-down-right":'<line x1="7" y1="7" x2="17" y2="17"></line><polyline points="17 7 17 17 7 17"></polyline>',"arrow-down":'<line x1="12" y1="5" x2="12" y2="19"></line><polyline points="19 12 12 19 5 12"></polyline>',"arrow-left-circle":'<circle cx="12" cy="12" r="10"></circle><polyline points="12 8 8 12 12 16"></polyline><line x1="16" y1="12" x2="8" y2="12"></line>',"arrow-left":'<line x1="19" y1="12" x2="5" y2="12"></line><polyline points="12 19 5 12 12 5"></polyline>',"arrow-right-circle":'<circle cx="12" cy="12" r="10"></circle><polyline points="12 16 16 12 12 8"></polyline><line x1="8" y1="12" x2="16" y2="12"></line>',"arrow-right":'<line x1="5" y1="12" x2="19" y2="12"></line><polyline points="12 5 19 12 12 19"></polyline>',"arrow-up-circle":'<circle cx="12" cy="12" r="10"></circle><polyline points="16 12 12 8 8 12"></polyline><line x1="12" y1="16" x2="12" y2="8"></line>',"arrow-up-left":'<line x1="17" y1="17" x2="7" y2="7"></line><polyline points="7 17 7 7 17 7"></polyline>',"arrow-up-right":'<line x1="7" y1="17" x2="17" y2="7"></line><polyline points="7 7 17 7 17 17"></polyline>',"arrow-up":'<line x1="12" y1="19" x2="12" y2="5"></line><polyline points="5 12 12 5 19 12"></polyline>',"at-sign":'<circle cx="12" cy="12" r="4"></circle><path d="M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-3.92 7.94"></path>',award:'<circle cx="12" cy="8" r="7"></circle><polyline points="8.21 13.89 7 23 12 20 17 23 15.79 13.88"></polyline>',"bar-chart-2":'<line x1="18" y1="20" x2="18" y2="10"></line><line x1="12" y1="20" x2="12" y2="4"></line><line x1="6" y1="20" x2="6" y2="14"></line>',"bar-chart":'<line x1="12" y1="20" x2="12" y2="10"></line><line x1="18" y1="20" x2="18" y2="4"></line><line x1="6" y1="20" x2="6" y2="16"></line>',"battery-charging":'<path d="M5 18H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h3.19M15 6h2a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-3.19"></path><line x1="23" y1="13" x2="23" y2="11"></line><polyline points="11 6 7 12 13 12 9 18"></polyline>',battery:'<rect x="1" y="6" width="18" height="12" rx="2" ry="2"></rect><line x1="23" y1="13" x2="23" y2="11"></line>',"bell-off":'<path d="M13.73 21a2 2 0 0 1-3.46 0"></path><path d="M18.63 13A17.89 17.89 0 0 1 18 8"></path><path d="M6.26 6.26A5.86 5.86 0 0 0 6 8c0 7-3 9-3 9h14"></path><path d="M18 8a6 6 0 0 0-9.33-5"></path><line x1="1" y1="1" x2="23" y2="23"></line>',bell:'<path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"></path><path d="M13.73 21a2 2 0 0 1-3.46 0"></path>',bluetooth:'<polyline points="6.5 6.5 17.5 17.5 12 23 12 1 17.5 6.5 6.5 17.5"></polyline>',bold:'<path d="M6 4h8a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z"></path><path d="M6 12h9a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z"></path>',"book-open":'<path d="M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"></path><path d="M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"></path>',book:'<path d="M4 19.5A2.5 2.5 0 0 1 6.5 17H20"></path><path d="M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"></path>',bookmark:'<path d="M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"></path>',box:'<path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line>',briefcase:'<rect x="2" y="7" width="20" height="14" rx="2" ry="2"></rect><path d="M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"></path>',calendar:'<rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line>',"camera-off":'<line x1="1" y1="1" x2="23" y2="23"></line><path d="M21 21H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h3m3-3h6l2 3h4a2 2 0 0 1 2 2v9.34m-7.72-2.06a4 4 0 1 1-5.56-5.56"></path>',camera:'<path d="M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"></path><circle cx="12" cy="13" r="4"></circle>',cast:'<path d="M2 16.1A5 5 0 0 1 5.9 20M2 12.05A9 9 0 0 1 9.95 20M2 8V6a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-6"></path><line x1="2" y1="20" x2="2.01" y2="20"></line>',"check-circle":'<path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline>',"check-square":'<polyline points="9 11 12 14 22 4"></polyline><path d="M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"></path>',check:'<polyline points="20 6 9 17 4 12"></polyline>',"chevron-down":'<polyline points="6 9 12 15 18 9"></polyline>',"chevron-left":'<polyline points="15 18 9 12 15 6"></polyline>',"chevron-right":'<polyline points="9 18 15 12 9 6"></polyline>',"chevron-up":'<polyline points="18 15 12 9 6 15"></polyline>',"chevrons-down":'<polyline points="7 13 12 18 17 13"></polyline><polyline points="7 6 12 11 17 6"></polyline>',"chevrons-left":'<polyline points="11 17 6 12 11 7"></polyline><polyline points="18 17 13 12 18 7"></polyline>',"chevrons-right":'<polyline points="13 17 18 12 13 7"></polyline><polyline points="6 17 11 12 6 7"></polyline>',"chevrons-up":'<polyline points="17 11 12 6 7 11"></polyline><polyline points="17 18 12 13 7 18"></polyline>',chrome:'<circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="4"></circle><line x1="21.17" y1="8" x2="12" y2="8"></line><line x1="3.95" y1="6.06" x2="8.54" y2="14"></line><line x1="10.88" y1="21.94" x2="15.46" y2="14"></line>',circle:'<circle cx="12" cy="12" r="10"></circle>',clipboard:'<path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"></path><rect x="8" y="2" width="8" height="4" rx="1" ry="1"></rect>',clock:'<circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline>',"cloud-drizzle":'<line x1="8" y1="19" x2="8" y2="21"></line><line x1="8" y1="13" x2="8" y2="15"></line><line x1="16" y1="19" x2="16" y2="21"></line><line x1="16" y1="13" x2="16" y2="15"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="12" y1="15" x2="12" y2="17"></line><path d="M20 16.58A5 5 0 0 0 18 7h-1.26A8 8 0 1 0 4 15.25"></path>',"cloud-lightning":'<path d="M19 16.9A5 5 0 0 0 18 7h-1.26a8 8 0 1 0-11.62 9"></path><polyline points="13 11 9 17 15 17 11 23"></polyline>',"cloud-off":'<path d="M22.61 16.95A5 5 0 0 0 18 10h-1.26a8 8 0 0 0-7.05-6M5 5a8 8 0 0 0 4 15h9a5 5 0 0 0 1.7-.3"></path><line x1="1" y1="1" x2="23" y2="23"></line>',"cloud-rain":'<line x1="16" y1="13" x2="16" y2="21"></line><line x1="8" y1="13" x2="8" y2="21"></line><line x1="12" y1="15" x2="12" y2="23"></line><path d="M20 16.58A5 5 0 0 0 18 7h-1.26A8 8 0 1 0 4 15.25"></path>',"cloud-snow":'<path d="M20 17.58A5 5 0 0 0 18 8h-1.26A8 8 0 1 0 4 16.25"></path><line x1="8" y1="16" x2="8.01" y2="16"></line><line x1="8" y1="20" x2="8.01" y2="20"></line><line x1="12" y1="18" x2="12.01" y2="18"></line><line x1="12" y1="22" x2="12.01" y2="22"></line><line x1="16" y1="16" x2="16.01" y2="16"></line><line x1="16" y1="20" x2="16.01" y2="20"></line>',cloud:'<path d="M18 10h-1.26A8 8 0 1 0 9 20h9a5 5 0 0 0 0-10z"></path>',code:'<polyline points="16 18 22 12 16 6"></polyline><polyline points="8 6 2 12 8 18"></polyline>',codepen:'<polygon points="12 2 22 8.5 22 15.5 12 22 2 15.5 2 8.5 12 2"></polygon><line x1="12" y1="22" x2="12" y2="15.5"></line><polyline points="22 8.5 12 15.5 2 8.5"></polyline><polyline points="2 15.5 12 8.5 22 15.5"></polyline><line x1="12" y1="2" x2="12" y2="8.5"></line>',codesandbox:'<path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path><polyline points="7.5 4.21 12 6.81 16.5 4.21"></polyline><polyline points="7.5 19.79 7.5 14.6 3 12"></polyline><polyline points="21 12 16.5 14.6 16.5 19.79"></polyline><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line>',coffee:'<path d="M18 8h1a4 4 0 0 1 0 8h-1"></path><path d="M2 8h16v9a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4V8z"></path><line x1="6" y1="1" x2="6" y2="4"></line><line x1="10" y1="1" x2="10" y2="4"></line><line x1="14" y1="1" x2="14" y2="4"></line>',columns:'<path d="M12 3h7a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-7m0-18H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7m0-18v18"></path>',command:'<path d="M18 3a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3H6a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3V6a3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3h12a3 3 0 0 0 3-3 3 3 0 0 0-3-3z"></path>',compass:'<circle cx="12" cy="12" r="10"></circle><polygon points="16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76"></polygon>',copy:'<rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path>',"corner-down-left":'<polyline points="9 10 4 15 9 20"></polyline><path d="M20 4v7a4 4 0 0 1-4 4H4"></path>',"corner-down-right":'<polyline points="15 10 20 15 15 20"></polyline><path d="M4 4v7a4 4 0 0 0 4 4h12"></path>',"corner-left-down":'<polyline points="14 15 9 20 4 15"></polyline><path d="M20 4h-7a4 4 0 0 0-4 4v12"></path>',"corner-left-up":'<polyline points="14 9 9 4 4 9"></polyline><path d="M20 20h-7a4 4 0 0 1-4-4V4"></path>',"corner-right-down":'<polyline points="10 15 15 20 20 15"></polyline><path d="M4 4h7a4 4 0 0 1 4 4v12"></path>',"corner-right-up":'<polyline points="10 9 15 4 20 9"></polyline><path d="M4 20h7a4 4 0 0 0 4-4V4"></path>',"corner-up-left":'<polyline points="9 14 4 9 9 4"></polyline><path d="M20 20v-7a4 4 0 0 0-4-4H4"></path>',"corner-up-right":'<polyline points="15 14 20 9 15 4"></polyline><path d="M4 20v-7a4 4 0 0 1 4-4h12"></path>',cpu:'<rect x="4" y="4" width="16" height="16" rx="2" ry="2"></rect><rect x="9" y="9" width="6" height="6"></rect><line x1="9" y1="1" x2="9" y2="4"></line><line x1="15" y1="1" x2="15" y2="4"></line><line x1="9" y1="20" x2="9" y2="23"></line><line x1="15" y1="20" x2="15" y2="23"></line><line x1="20" y1="9" x2="23" y2="9"></line><line x1="20" y1="14" x2="23" y2="14"></line><line x1="1" y1="9" x2="4" y2="9"></line><line x1="1" y1="14" x2="4" y2="14"></line>',"credit-card":'<rect x="1" y="4" width="22" height="16" rx="2" ry="2"></rect><line x1="1" y1="10" x2="23" y2="10"></line>',crop:'<path d="M6.13 1L6 16a2 2 0 0 0 2 2h15"></path><path d="M1 6.13L16 6a2 2 0 0 1 2 2v15"></path>',crosshair:'<circle cx="12" cy="12" r="10"></circle><line x1="22" y1="12" x2="18" y2="12"></line><line x1="6" y1="12" x2="2" y2="12"></line><line x1="12" y1="6" x2="12" y2="2"></line><line x1="12" y1="22" x2="12" y2="18"></line>',database:'<ellipse cx="12" cy="5" rx="9" ry="3"></ellipse><path d="M21 12c0 1.66-4 3-9 3s-9-1.34-9-3"></path><path d="M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5"></path>',delete:'<path d="M21 4H8l-7 8 7 8h13a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2z"></path><line x1="18" y1="9" x2="12" y2="15"></line><line x1="12" y1="9" x2="18" y2="15"></line>',disc:'<circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="3"></circle>',"divide-circle":'<line x1="8" y1="12" x2="16" y2="12"></line><line x1="12" y1="16" x2="12" y2="16"></line><line x1="12" y1="8" x2="12" y2="8"></line><circle cx="12" cy="12" r="10"></circle>',"divide-square":'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="8" y1="12" x2="16" y2="12"></line><line x1="12" y1="16" x2="12" y2="16"></line><line x1="12" y1="8" x2="12" y2="8"></line>',divide:'<circle cx="12" cy="6" r="2"></circle><line x1="5" y1="12" x2="19" y2="12"></line><circle cx="12" cy="18" r="2"></circle>',"dollar-sign":'<line x1="12" y1="1" x2="12" y2="23"></line><path d="M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"></path>',"download-cloud":'<polyline points="8 17 12 21 16 17"></polyline><line x1="12" y1="12" x2="12" y2="21"></line><path d="M20.88 18.09A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.29"></path>',download:'<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="7 10 12 15 17 10"></polyline><line x1="12" y1="15" x2="12" y2="3"></line>',dribbble:'<circle cx="12" cy="12" r="10"></circle><path d="M8.56 2.75c4.37 6.03 6.02 9.42 8.03 17.72m2.54-15.38c-3.72 4.35-8.94 5.66-16.88 5.85m19.5 1.9c-3.5-.93-6.63-.82-8.94 0-2.58.92-5.01 2.86-7.44 6.32"></path>',droplet:'<path d="M12 2.69l5.66 5.66a8 8 0 1 1-11.31 0z"></path>',"edit-2":'<path d="M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z"></path>',"edit-3":'<path d="M12 20h9"></path><path d="M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"></path>',edit:'<path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"></path><path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"></path>',"external-link":'<path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path><polyline points="15 3 21 3 21 9"></polyline><line x1="10" y1="14" x2="21" y2="3"></line>',"eye-off":'<path d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"></path><line x1="1" y1="1" x2="23" y2="23"></line>',eye:'<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path><circle cx="12" cy="12" r="3"></circle>',facebook:'<path d="M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z"></path>',"fast-forward":'<polygon points="13 19 22 12 13 5 13 19"></polygon><polygon points="2 19 11 12 2 5 2 19"></polygon>',feather:'<path d="M20.24 12.24a6 6 0 0 0-8.49-8.49L5 10.5V19h8.5z"></path><line x1="16" y1="8" x2="2" y2="22"></line><line x1="17.5" y1="15" x2="9" y2="15"></line>',figma:'<path d="M5 5.5A3.5 3.5 0 0 1 8.5 2H12v7H8.5A3.5 3.5 0 0 1 5 5.5z"></path><path d="M12 2h3.5a3.5 3.5 0 1 1 0 7H12V2z"></path><path d="M12 12.5a3.5 3.5 0 1 1 7 0 3.5 3.5 0 1 1-7 0z"></path><path d="M5 19.5A3.5 3.5 0 0 1 8.5 16H12v3.5a3.5 3.5 0 1 1-7 0z"></path><path d="M5 12.5A3.5 3.5 0 0 1 8.5 9H12v7H8.5A3.5 3.5 0 0 1 5 12.5z"></path>',"file-minus":'<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="9" y1="15" x2="15" y2="15"></line>',"file-plus":'<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="12" y1="18" x2="12" y2="12"></line><line x1="9" y1="15" x2="15" y2="15"></line>',"file-text":'<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="16" y1="13" x2="8" y2="13"></line><line x1="16" y1="17" x2="8" y2="17"></line><polyline points="10 9 9 9 8 9"></polyline>',file:'<path d="M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z"></path><polyline points="13 2 13 9 20 9"></polyline>',film:'<rect x="2" y="2" width="20" height="20" rx="2.18" ry="2.18"></rect><line x1="7" y1="2" x2="7" y2="22"></line><line x1="17" y1="2" x2="17" y2="22"></line><line x1="2" y1="12" x2="22" y2="12"></line><line x1="2" y1="7" x2="7" y2="7"></line><line x1="2" y1="17" x2="7" y2="17"></line><line x1="17" y1="17" x2="22" y2="17"></line><line x1="17" y1="7" x2="22" y2="7"></line>',filter:'<polygon points="22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"></polygon>',flag:'<path d="M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z"></path><line x1="4" y1="22" x2="4" y2="15"></line>',"folder-minus":'<path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path><line x1="9" y1="14" x2="15" y2="14"></line>',"folder-plus":'<path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path><line x1="12" y1="11" x2="12" y2="17"></line><line x1="9" y1="14" x2="15" y2="14"></line>',folder:'<path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path>',framer:'<path d="M5 16V9h14V2H5l14 14h-7m-7 0l7 7v-7m-7 0h7"></path>',frown:'<circle cx="12" cy="12" r="10"></circle><path d="M16 16s-1.5-2-4-2-4 2-4 2"></path><line x1="9" y1="9" x2="9.01" y2="9"></line><line x1="15" y1="9" x2="15.01" y2="9"></line>',gift:'<polyline points="20 12 20 22 4 22 4 12"></polyline><rect x="2" y="7" width="20" height="5"></rect><line x1="12" y1="22" x2="12" y2="7"></line><path d="M12 7H7.5a2.5 2.5 0 0 1 0-5C11 2 12 7 12 7z"></path><path d="M12 7h4.5a2.5 2.5 0 0 0 0-5C13 2 12 7 12 7z"></path>',"git-branch":'<line x1="6" y1="3" x2="6" y2="15"></line><circle cx="18" cy="6" r="3"></circle><circle cx="6" cy="18" r="3"></circle><path d="M18 9a9 9 0 0 1-9 9"></path>',"git-commit":'<circle cx="12" cy="12" r="4"></circle><line x1="1.05" y1="12" x2="7" y2="12"></line><line x1="17.01" y1="12" x2="22.96" y2="12"></line>',"git-merge":'<circle cx="18" cy="18" r="3"></circle><circle cx="6" cy="6" r="3"></circle><path d="M6 21V9a9 9 0 0 0 9 9"></path>',"git-pull-request":'<circle cx="18" cy="18" r="3"></circle><circle cx="6" cy="6" r="3"></circle><path d="M13 6h3a2 2 0 0 1 2 2v7"></path><line x1="6" y1="9" x2="6" y2="21"></line>',github:'<path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"></path>',gitlab:'<path d="M22.65 14.39L12 22.13 1.35 14.39a.84.84 0 0 1-.3-.94l1.22-3.78 2.44-7.51A.42.42 0 0 1 4.82 2a.43.43 0 0 1 .58 0 .42.42 0 0 1 .11.18l2.44 7.49h8.1l2.44-7.51A.42.42 0 0 1 18.6 2a.43.43 0 0 1 .58 0 .42.42 0 0 1 .11.18l2.44 7.51L23 13.45a.84.84 0 0 1-.35.94z"></path>',globe:'<circle cx="12" cy="12" r="10"></circle><line x1="2" y1="12" x2="22" y2="12"></line><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"></path>',grid:'<rect x="3" y="3" width="7" height="7"></rect><rect x="14" y="3" width="7" height="7"></rect><rect x="14" y="14" width="7" height="7"></rect><rect x="3" y="14" width="7" height="7"></rect>',"hard-drive":'<line x1="22" y1="12" x2="2" y2="12"></line><path d="M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"></path><line x1="6" y1="16" x2="6.01" y2="16"></line><line x1="10" y1="16" x2="10.01" y2="16"></line>',hash:'<line x1="4" y1="9" x2="20" y2="9"></line><line x1="4" y1="15" x2="20" y2="15"></line><line x1="10" y1="3" x2="8" y2="21"></line><line x1="16" y1="3" x2="14" y2="21"></line>',headphones:'<path d="M3 18v-6a9 9 0 0 1 18 0v6"></path><path d="M21 19a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3zM3 19a2 2 0 0 0 2 2h1a2 2 0 0 0 2-2v-3a2 2 0 0 0-2-2H3z"></path>',heart:'<path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"></path>',"help-circle":'<circle cx="12" cy="12" r="10"></circle><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path><line x1="12" y1="17" x2="12.01" y2="17"></line>',hexagon:'<path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path>',home:'<path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path><polyline points="9 22 9 12 15 12 15 22"></polyline>',image:'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><circle cx="8.5" cy="8.5" r="1.5"></circle><polyline points="21 15 16 10 5 21"></polyline>',inbox:'<polyline points="22 12 16 12 14 15 10 15 8 12 2 12"></polyline><path d="M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"></path>',info:'<circle cx="12" cy="12" r="10"></circle><line x1="12" y1="16" x2="12" y2="12"></line><line x1="12" y1="8" x2="12.01" y2="8"></line>',instagram:'<rect x="2" y="2" width="20" height="20" rx="5" ry="5"></rect><path d="M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"></path><line x1="17.5" y1="6.5" x2="17.51" y2="6.5"></line>',italic:'<line x1="19" y1="4" x2="10" y2="4"></line><line x1="14" y1="20" x2="5" y2="20"></line><line x1="15" y1="4" x2="9" y2="20"></line>',key:'<path d="M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4"></path>',layers:'<polygon points="12 2 2 7 12 12 22 7 12 2"></polygon><polyline points="2 17 12 22 22 17"></polyline><polyline points="2 12 12 17 22 12"></polyline>',layout:'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="3" y1="9" x2="21" y2="9"></line><line x1="9" y1="21" x2="9" y2="9"></line>',"life-buoy":'<circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="4"></circle><line x1="4.93" y1="4.93" x2="9.17" y2="9.17"></line><line x1="14.83" y1="14.83" x2="19.07" y2="19.07"></line><line x1="14.83" y1="9.17" x2="19.07" y2="4.93"></line><line x1="14.83" y1="9.17" x2="18.36" y2="5.64"></line><line x1="4.93" y1="19.07" x2="9.17" y2="14.83"></line>',"link-2":'<path d="M15 7h3a5 5 0 0 1 5 5 5 5 0 0 1-5 5h-3m-6 0H6a5 5 0 0 1-5-5 5 5 0 0 1 5-5h3"></path><line x1="8" y1="12" x2="16" y2="12"></line>',link:'<path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path>',linkedin:'<path d="M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"></path><rect x="2" y="9" width="4" height="12"></rect><circle cx="4" cy="4" r="2"></circle>',list:'<line x1="8" y1="6" x2="21" y2="6"></line><line x1="8" y1="12" x2="21" y2="12"></line><line x1="8" y1="18" x2="21" y2="18"></line><line x1="3" y1="6" x2="3.01" y2="6"></line><line x1="3" y1="12" x2="3.01" y2="12"></line><line x1="3" y1="18" x2="3.01" y2="18"></line>',loader:'<line x1="12" y1="2" x2="12" y2="6"></line><line x1="12" y1="18" x2="12" y2="22"></line><line x1="4.93" y1="4.93" x2="7.76" y2="7.76"></line><line x1="16.24" y1="16.24" x2="19.07" y2="19.07"></line><line x1="2" y1="12" x2="6" y2="12"></line><line x1="18" y1="12" x2="22" y2="12"></line><line x1="4.93" y1="19.07" x2="7.76" y2="16.24"></line><line x1="16.24" y1="7.76" x2="19.07" y2="4.93"></line>',lock:'<rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 10 0v4"></path>',"log-in":'<path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"></path><polyline points="10 17 15 12 10 7"></polyline><line x1="15" y1="12" x2="3" y2="12"></line>',"log-out":'<path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"></path><polyline points="16 17 21 12 16 7"></polyline><line x1="21" y1="12" x2="9" y2="12"></line>',mail:'<path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path><polyline points="22,6 12,13 2,6"></polyline>',"map-pin":'<path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path><circle cx="12" cy="10" r="3"></circle>',map:'<polygon points="1 6 1 22 8 18 16 22 23 18 23 2 16 6 8 2 1 6"></polygon><line x1="8" y1="2" x2="8" y2="18"></line><line x1="16" y1="6" x2="16" y2="22"></line>',"maximize-2":'<polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" y1="3" x2="14" y2="10"></line><line x1="3" y1="21" x2="10" y2="14"></line>',maximize:'<path d="M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"></path>',meh:'<circle cx="12" cy="12" r="10"></circle><line x1="8" y1="15" x2="16" y2="15"></line><line x1="9" y1="9" x2="9.01" y2="9"></line><line x1="15" y1="9" x2="15.01" y2="9"></line>',menu:'<line x1="3" y1="12" x2="21" y2="12"></line><line x1="3" y1="6" x2="21" y2="6"></line><line x1="3" y1="18" x2="21" y2="18"></line>',"message-circle":'<path d="M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"></path>',"message-square":'<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path>',"mic-off":'<line x1="1" y1="1" x2="23" y2="23"></line><path d="M9 9v3a3 3 0 0 0 5.12 2.12M15 9.34V4a3 3 0 0 0-5.94-.6"></path><path d="M17 16.95A7 7 0 0 1 5 12v-2m14 0v2a7 7 0 0 1-.11 1.23"></path><line x1="12" y1="19" x2="12" y2="23"></line><line x1="8" y1="23" x2="16" y2="23"></line>',mic:'<path d="M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"></path><path d="M19 10v2a7 7 0 0 1-14 0v-2"></path><line x1="12" y1="19" x2="12" y2="23"></line><line x1="8" y1="23" x2="16" y2="23"></line>',"minimize-2":'<polyline points="4 14 10 14 10 20"></polyline><polyline points="20 10 14 10 14 4"></polyline><line x1="14" y1="10" x2="21" y2="3"></line><line x1="3" y1="21" x2="10" y2="14"></line>',minimize:'<path d="M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3"></path>',"minus-circle":'<circle cx="12" cy="12" r="10"></circle><line x1="8" y1="12" x2="16" y2="12"></line>',"minus-square":'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="8" y1="12" x2="16" y2="12"></line>',minus:'<line x1="5" y1="12" x2="19" y2="12"></line>',monitor:'<rect x="2" y="3" width="20" height="14" rx="2" ry="2"></rect><line x1="8" y1="21" x2="16" y2="21"></line><line x1="12" y1="17" x2="12" y2="21"></line>',moon:'<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>',"more-horizontal":'<circle cx="12" cy="12" r="1"></circle><circle cx="19" cy="12" r="1"></circle><circle cx="5" cy="12" r="1"></circle>',"more-vertical":'<circle cx="12" cy="12" r="1"></circle><circle cx="12" cy="5" r="1"></circle><circle cx="12" cy="19" r="1"></circle>',"mouse-pointer":'<path d="M3 3l7.07 16.97 2.51-7.39 7.39-2.51L3 3z"></path><path d="M13 13l6 6"></path>',move:'<polyline points="5 9 2 12 5 15"></polyline><polyline points="9 5 12 2 15 5"></polyline><polyline points="15 19 12 22 9 19"></polyline><polyline points="19 9 22 12 19 15"></polyline><line x1="2" y1="12" x2="22" y2="12"></line><line x1="12" y1="2" x2="12" y2="22"></line>',music:'<path d="M9 18V5l12-2v13"></path><circle cx="6" cy="18" r="3"></circle><circle cx="18" cy="16" r="3"></circle>',"navigation-2":'<polygon points="12 2 19 21 12 17 5 21 12 2"></polygon>',navigation:'<polygon points="3 11 22 2 13 21 11 13 3 11"></polygon>',octagon:'<polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"></polygon>',package:'<line x1="16.5" y1="9.4" x2="7.5" y2="4.21"></line><path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line>',paperclip:'<path d="M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48"></path>',"pause-circle":'<circle cx="12" cy="12" r="10"></circle><line x1="10" y1="15" x2="10" y2="9"></line><line x1="14" y1="15" x2="14" y2="9"></line>',pause:'<rect x="6" y="4" width="4" height="16"></rect><rect x="14" y="4" width="4" height="16"></rect>',"pen-tool":'<path d="M12 19l7-7 3 3-7 7-3-3z"></path><path d="M18 13l-1.5-7.5L2 2l3.5 14.5L13 18l5-5z"></path><path d="M2 2l7.586 7.586"></path><circle cx="11" cy="11" r="2"></circle>',percent:'<line x1="19" y1="5" x2="5" y2="19"></line><circle cx="6.5" cy="6.5" r="2.5"></circle><circle cx="17.5" cy="17.5" r="2.5"></circle>',"phone-call":'<path d="M15.05 5A5 5 0 0 1 19 8.95M15.05 1A9 9 0 0 1 23 8.94m-1 7.98v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',"phone-forwarded":'<polyline points="19 1 23 5 19 9"></polyline><line x1="15" y1="5" x2="23" y2="5"></line><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',"phone-incoming":'<polyline points="16 2 16 8 22 8"></polyline><line x1="23" y1="1" x2="16" y2="8"></line><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',"phone-missed":'<line x1="23" y1="1" x2="17" y2="7"></line><line x1="17" y1="1" x2="23" y2="7"></line><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',"phone-off":'<path d="M10.68 13.31a16 16 0 0 0 3.41 2.6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7 2 2 0 0 1 1.72 2v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.42 19.42 0 0 1-3.33-2.67m-2.67-3.34a19.79 19.79 0 0 1-3.07-8.63A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91"></path><line x1="23" y1="1" x2="1" y2="23"></line>',"phone-outgoing":'<polyline points="23 7 23 1 17 1"></polyline><line x1="16" y1="8" x2="23" y2="1"></line><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',phone:'<path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',"pie-chart":'<path d="M21.21 15.89A10 10 0 1 1 8 2.83"></path><path d="M22 12A10 10 0 0 0 12 2v10z"></path>',"play-circle":'<circle cx="12" cy="12" r="10"></circle><polygon points="10 8 16 12 10 16 10 8"></polygon>',play:'<polygon points="5 3 19 12 5 21 5 3"></polygon>',"plus-circle":'<circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="16"></line><line x1="8" y1="12" x2="16" y2="12"></line>',"plus-square":'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="12" y1="8" x2="12" y2="16"></line><line x1="8" y1="12" x2="16" y2="12"></line>',plus:'<line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line>',pocket:'<path d="M4 3h16a2 2 0 0 1 2 2v6a10 10 0 0 1-10 10A10 10 0 0 1 2 11V5a2 2 0 0 1 2-2z"></path><polyline points="8 10 12 14 16 10"></polyline>',power:'<path d="M18.36 6.64a9 9 0 1 1-12.73 0"></path><line x1="12" y1="2" x2="12" y2="12"></line>',printer:'<polyline points="6 9 6 2 18 2 18 9"></polyline><path d="M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2"></path><rect x="6" y="14" width="12" height="8"></rect>',radio:'<circle cx="12" cy="12" r="2"></circle><path d="M16.24 7.76a6 6 0 0 1 0 8.49m-8.48-.01a6 6 0 0 1 0-8.49m11.31-2.82a10 10 0 0 1 0 14.14m-14.14 0a10 10 0 0 1 0-14.14"></path>',"refresh-ccw":'<polyline points="1 4 1 10 7 10"></polyline><polyline points="23 20 23 14 17 14"></polyline><path d="M20.49 9A9 9 0 0 0 5.64 5.64L1 10m22 4l-4.64 4.36A9 9 0 0 1 3.51 15"></path>',"refresh-cw":'<polyline points="23 4 23 10 17 10"></polyline><polyline points="1 20 1 14 7 14"></polyline><path d="M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"></path>',repeat:'<polyline points="17 1 21 5 17 9"></polyline><path d="M3 11V9a4 4 0 0 1 4-4h14"></path><polyline points="7 23 3 19 7 15"></polyline><path d="M21 13v2a4 4 0 0 1-4 4H3"></path>',rewind:'<polygon points="11 19 2 12 11 5 11 19"></polygon><polygon points="22 19 13 12 22 5 22 19"></polygon>',"rotate-ccw":'<polyline points="1 4 1 10 7 10"></polyline><path d="M3.51 15a9 9 0 1 0 2.13-9.36L1 10"></path>',"rotate-cw":'<polyline points="23 4 23 10 17 10"></polyline><path d="M20.49 15a9 9 0 1 1-2.12-9.36L23 10"></path>',rss:'<path d="M4 11a9 9 0 0 1 9 9"></path><path d="M4 4a16 16 0 0 1 16 16"></path><circle cx="5" cy="19" r="1"></circle>',save:'<path d="M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z"></path><polyline points="17 21 17 13 7 13 7 21"></polyline><polyline points="7 3 7 8 15 8"></polyline>',scissors:'<circle cx="6" cy="6" r="3"></circle><circle cx="6" cy="18" r="3"></circle><line x1="20" y1="4" x2="8.12" y2="15.88"></line><line x1="14.47" y1="14.48" x2="20" y2="20"></line><line x1="8.12" y1="8.12" x2="12" y2="12"></line>',search:'<circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line>',send:'<line x1="22" y1="2" x2="11" y2="13"></line><polygon points="22 2 15 22 11 13 2 9 22 2"></polygon>',server:'<rect x="2" y="2" width="20" height="8" rx="2" ry="2"></rect><rect x="2" y="14" width="20" height="8" rx="2" ry="2"></rect><line x1="6" y1="6" x2="6.01" y2="6"></line><line x1="6" y1="18" x2="6.01" y2="18"></line>',settings:'<circle cx="12" cy="12" r="3"></circle><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"></path>',"share-2":'<circle cx="18" cy="5" r="3"></circle><circle cx="6" cy="12" r="3"></circle><circle cx="18" cy="19" r="3"></circle><line x1="8.59" y1="13.51" x2="15.42" y2="17.49"></line><line x1="15.41" y1="6.51" x2="8.59" y2="10.49"></line>',share:'<path d="M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8"></path><polyline points="16 6 12 2 8 6"></polyline><line x1="12" y1="2" x2="12" y2="15"></line>',"shield-off":'<path d="M19.69 14a6.9 6.9 0 0 0 .31-2V5l-8-3-3.16 1.18"></path><path d="M4.73 4.73L4 5v7c0 6 8 10 8 10a20.29 20.29 0 0 0 5.62-4.38"></path><line x1="1" y1="1" x2="23" y2="23"></line>',shield:'<path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"></path>',"shopping-bag":'<path d="M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z"></path><line x1="3" y1="6" x2="21" y2="6"></line><path d="M16 10a4 4 0 0 1-8 0"></path>',"shopping-cart":'<circle cx="9" cy="21" r="1"></circle><circle cx="20" cy="21" r="1"></circle><path d="M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"></path>',shuffle:'<polyline points="16 3 21 3 21 8"></polyline><line x1="4" y1="20" x2="21" y2="3"></line><polyline points="21 16 21 21 16 21"></polyline><line x1="15" y1="15" x2="21" y2="21"></line><line x1="4" y1="4" x2="9" y2="9"></line>',sidebar:'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="9" y1="3" x2="9" y2="21"></line>',"skip-back":'<polygon points="19 20 9 12 19 4 19 20"></polygon><line x1="5" y1="19" x2="5" y2="5"></line>',"skip-forward":'<polygon points="5 4 15 12 5 20 5 4"></polygon><line x1="19" y1="5" x2="19" y2="19"></line>',slack:'<path d="M14.5 10c-.83 0-1.5-.67-1.5-1.5v-5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5v5c0 .83-.67 1.5-1.5 1.5z"></path><path d="M20.5 10H19V8.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"></path><path d="M9.5 14c.83 0 1.5.67 1.5 1.5v5c0 .83-.67 1.5-1.5 1.5S8 21.33 8 20.5v-5c0-.83.67-1.5 1.5-1.5z"></path><path d="M3.5 14H5v1.5c0 .83-.67 1.5-1.5 1.5S2 16.33 2 15.5 2.67 14 3.5 14z"></path><path d="M14 14.5c0-.83.67-1.5 1.5-1.5h5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-5c-.83 0-1.5-.67-1.5-1.5z"></path><path d="M15.5 19H14v1.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5-.67-1.5-1.5-1.5z"></path><path d="M10 9.5C10 8.67 9.33 8 8.5 8h-5C2.67 8 2 8.67 2 9.5S2.67 11 3.5 11h5c.83 0 1.5-.67 1.5-1.5z"></path><path d="M8.5 5H10V3.5C10 2.67 9.33 2 8.5 2S7 2.67 7 3.5 7.67 5 8.5 5z"></path>',slash:'<circle cx="12" cy="12" r="10"></circle><line x1="4.93" y1="4.93" x2="19.07" y2="19.07"></line>',sliders:'<line x1="4" y1="21" x2="4" y2="14"></line><line x1="4" y1="10" x2="4" y2="3"></line><line x1="12" y1="21" x2="12" y2="12"></line><line x1="12" y1="8" x2="12" y2="3"></line><line x1="20" y1="21" x2="20" y2="16"></line><line x1="20" y1="12" x2="20" y2="3"></line><line x1="1" y1="14" x2="7" y2="14"></line><line x1="9" y1="8" x2="15" y2="8"></line><line x1="17" y1="16" x2="23" y2="16"></line>',smartphone:'<rect x="5" y="2" width="14" height="20" rx="2" ry="2"></rect><line x1="12" y1="18" x2="12.01" y2="18"></line>',smile:'<circle cx="12" cy="12" r="10"></circle><path d="M8 14s1.5 2 4 2 4-2 4-2"></path><line x1="9" y1="9" x2="9.01" y2="9"></line><line x1="15" y1="9" x2="15.01" y2="9"></line>',speaker:'<rect x="4" y="2" width="16" height="20" rx="2" ry="2"></rect><circle cx="12" cy="14" r="4"></circle><line x1="12" y1="6" x2="12.01" y2="6"></line>',square:'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>',star:'<polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"></polygon>',"stop-circle":'<circle cx="12" cy="12" r="10"></circle><rect x="9" y="9" width="6" height="6"></rect>',sun:'<circle cx="12" cy="12" r="5"></circle><line x1="12" y1="1" x2="12" y2="3"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line><line x1="1" y1="12" x2="3" y2="12"></line><line x1="21" y1="12" x2="23" y2="12"></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>',sunrise:'<path d="M17 18a5 5 0 0 0-10 0"></path><line x1="12" y1="2" x2="12" y2="9"></line><line x1="4.22" y1="10.22" x2="5.64" y2="11.64"></line><line x1="1" y1="18" x2="3" y2="18"></line><line x1="21" y1="18" x2="23" y2="18"></line><line x1="18.36" y1="11.64" x2="19.78" y2="10.22"></line><line x1="23" y1="22" x2="1" y2="22"></line><polyline points="8 6 12 2 16 6"></polyline>',sunset:'<path d="M17 18a5 5 0 0 0-10 0"></path><line x1="12" y1="9" x2="12" y2="2"></line><line x1="4.22" y1="10.22" x2="5.64" y2="11.64"></line><line x1="1" y1="18" x2="3" y2="18"></line><line x1="21" y1="18" x2="23" y2="18"></line><line x1="18.36" y1="11.64" x2="19.78" y2="10.22"></line><line x1="23" y1="22" x2="1" y2="22"></line><polyline points="16 5 12 9 8 5"></polyline>',tablet:'<rect x="4" y="2" width="16" height="20" rx="2" ry="2"></rect><line x1="12" y1="18" x2="12.01" y2="18"></line>',tag:'<path d="M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z"></path><line x1="7" y1="7" x2="7.01" y2="7"></line>',target:'<circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="6"></circle><circle cx="12" cy="12" r="2"></circle>',terminal:'<polyline points="4 17 10 11 4 5"></polyline><line x1="12" y1="19" x2="20" y2="19"></line>',thermometer:'<path d="M14 14.76V3.5a2.5 2.5 0 0 0-5 0v11.26a4.5 4.5 0 1 0 5 0z"></path>',"thumbs-down":'<path d="M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17"></path>',"thumbs-up":'<path d="M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3"></path>',"toggle-left":'<rect x="1" y="5" width="22" height="14" rx="7" ry="7"></rect><circle cx="8" cy="12" r="3"></circle>',"toggle-right":'<rect x="1" y="5" width="22" height="14" rx="7" ry="7"></rect><circle cx="16" cy="12" r="3"></circle>',tool:'<path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"></path>',"trash-2":'<polyline points="3 6 5 6 21 6"></polyline><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path><line x1="10" y1="11" x2="10" y2="17"></line><line x1="14" y1="11" x2="14" y2="17"></line>',trash:'<polyline points="3 6 5 6 21 6"></polyline><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path>',trello:'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><rect x="7" y="7" width="3" height="9"></rect><rect x="14" y="7" width="3" height="5"></rect>',"trending-down":'<polyline points="23 18 13.5 8.5 8.5 13.5 1 6"></polyline><polyline points="17 18 23 18 23 12"></polyline>',"trending-up":'<polyline points="23 6 13.5 15.5 8.5 10.5 1 18"></polyline><polyline points="17 6 23 6 23 12"></polyline>',triangle:'<path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path>',truck:'<rect x="1" y="3" width="15" height="13"></rect><polygon points="16 8 20 8 23 11 23 16 16 16 16 8"></polygon><circle cx="5.5" cy="18.5" r="2.5"></circle><circle cx="18.5" cy="18.5" r="2.5"></circle>',tv:'<rect x="2" y="7" width="20" height="15" rx="2" ry="2"></rect><polyline points="17 2 12 7 7 2"></polyline>',twitch:'<path d="M21 2H3v16h5v4l4-4h5l4-4V2zm-10 9V7m5 4V7"></path>',twitter:'<path d="M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z"></path>',type:'<polyline points="4 7 4 4 20 4 20 7"></polyline><line x1="9" y1="20" x2="15" y2="20"></line><line x1="12" y1="4" x2="12" y2="20"></line>',umbrella:'<path d="M23 12a11.05 11.05 0 0 0-22 0zm-5 7a3 3 0 0 1-6 0v-7"></path>',underline:'<path d="M6 3v7a6 6 0 0 0 6 6 6 6 0 0 0 6-6V3"></path><line x1="4" y1="21" x2="20" y2="21"></line>',unlock:'<rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 9.9-1"></path>',"upload-cloud":'<polyline points="16 16 12 12 8 16"></polyline><line x1="12" y1="12" x2="12" y2="21"></line><path d="M20.39 18.39A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.3"></path><polyline points="16 16 12 12 8 16"></polyline>',upload:'<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="17 8 12 3 7 8"></polyline><line x1="12" y1="3" x2="12" y2="15"></line>',"user-check":'<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><polyline points="17 11 19 13 23 9"></polyline>',"user-minus":'<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><line x1="23" y1="11" x2="17" y2="11"></line>',"user-plus":'<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><line x1="20" y1="8" x2="20" y2="14"></line><line x1="23" y1="11" x2="17" y2="11"></line>',"user-x":'<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><line x1="18" y1="8" x2="23" y2="13"></line><line x1="23" y1="8" x2="18" y2="13"></line>',user:'<path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle>',users:'<path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="9" cy="7" r="4"></circle><path d="M23 21v-2a4 4 0 0 0-3-3.87"></path><path d="M16 3.13a4 4 0 0 1 0 7.75"></path>',"video-off":'<path d="M16 16v1a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h2m5.66 0H14a2 2 0 0 1 2 2v3.34l1 1L23 7v10"></path><line x1="1" y1="1" x2="23" y2="23"></line>',video:'<polygon points="23 7 16 12 23 17 23 7"></polygon><rect x="1" y="5" width="15" height="14" rx="2" ry="2"></rect>',voicemail:'<circle cx="5.5" cy="11.5" r="4.5"></circle><circle cx="18.5" cy="11.5" r="4.5"></circle><line x1="5.5" y1="16" x2="18.5" y2="16"></line>',"volume-1":'<polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon><path d="M15.54 8.46a5 5 0 0 1 0 7.07"></path>',"volume-2":'<polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon><path d="M19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07"></path>',"volume-x":'<polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon><line x1="23" y1="9" x2="17" y2="15"></line><line x1="17" y1="9" x2="23" y2="15"></line>',volume:'<polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon>',watch:'<circle cx="12" cy="12" r="7"></circle><polyline points="12 9 12 12 13.5 13.5"></polyline><path d="M16.51 17.35l-.35 3.83a2 2 0 0 1-2 1.82H9.83a2 2 0 0 1-2-1.82l-.35-3.83m.01-10.7l.35-3.83A2 2 0 0 1 9.83 1h4.35a2 2 0 0 1 2 1.82l.35 3.83"></path>',"wifi-off":'<line x1="1" y1="1" x2="23" y2="23"></line><path d="M16.72 11.06A10.94 10.94 0 0 1 19 12.55"></path><path d="M5 12.55a10.94 10.94 0 0 1 5.17-2.39"></path><path d="M10.71 5.05A16 16 0 0 1 22.58 9"></path><path d="M1.42 9a15.91 15.91 0 0 1 4.7-2.88"></path><path d="M8.53 16.11a6 6 0 0 1 6.95 0"></path><line x1="12" y1="20" x2="12.01" y2="20"></line>',wifi:'<path d="M5 12.55a11 11 0 0 1 14.08 0"></path><path d="M1.42 9a16 16 0 0 1 21.16 0"></path><path d="M8.53 16.11a6 6 0 0 1 6.95 0"></path><line x1="12" y1="20" x2="12.01" y2="20"></line>',wind:'<path d="M9.59 4.59A2 2 0 1 1 11 8H2m10.59 11.41A2 2 0 1 0 14 16H2m15.73-8.27A2.5 2.5 0 1 1 19.5 12H2"></path>',"x-circle":'<circle cx="12" cy="12" r="10"></circle><line x1="15" y1="9" x2="9" y2="15"></line><line x1="9" y1="9" x2="15" y2="15"></line>',"x-octagon":'<polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"></polygon><line x1="15" y1="9" x2="9" y2="15"></line><line x1="9" y1="9" x2="15" y2="15"></line>',"x-square":'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="9" y1="9" x2="15" y2="15"></line><line x1="15" y1="9" x2="9" y2="15"></line>',x:'<line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line>',youtube:'<path d="M22.54 6.42a2.78 2.78 0 0 0-1.94-2C18.88 4 12 4 12 4s-6.88 0-8.6.46a2.78 2.78 0 0 0-1.94 2A29 29 0 0 0 1 11.75a29 29 0 0 0 .46 5.33A2.78 2.78 0 0 0 3.4 19c1.72.46 8.6.46 8.6.46s6.88 0 8.6-.46a2.78 2.78 0 0 0 1.94-2 29 29 0 0 0 .46-5.25 29 29 0 0 0-.46-5.33z"></path><polygon points="9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02"></polygon>',"zap-off":'<polyline points="12.41 6.75 13 2 10.57 4.92"></polyline><polyline points="18.57 12.91 21 10 15.66 10"></polyline><polyline points="8 8 3 14 12 14 11 22 16 16"></polyline><line x1="1" y1="1" x2="23" y2="23"></line>',zap:'<polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"></polygon>',"zoom-in":'<circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line><line x1="11" y1="8" x2="11" y2="14"></line><line x1="8" y1="11" x2="14" y2="11"></line>',"zoom-out":'<circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line><line x1="8" y1="11" x2="14" y2="11"></line>'}},"./node_modules/classnames/dedupe.js":
/*!*******************************************!*\
  !*** ./node_modules/classnames/dedupe.js ***!
  \*******************************************/
/*! no static exports found */function(t,e,i){var n;
/*!
  Copyright (c) 2016 Jed Watson.
  Licensed under the MIT License (MIT), see
  http://jedwatson.github.io/classnames
*/!function(){"use strict";var i=function(){function t(){}function e(t,e){for(var i=e.length,n=0;n<i;++n)o(t,e[n])}t.prototype=Object.create(null);var i={}.hasOwnProperty,n=/\s+/;function o(t,o){if(o){var r=typeof o;"string"===r?function(t,e){for(var i=e.split(n),o=i.length,r=0;r<o;++r)t[i[r]]=!0}(t,o):Array.isArray(o)?e(t,o):"object"===r?function(t,e){for(var n in e)i.call(e,n)&&(t[n]=!!e[n])}(t,o):"number"===r&&function(t,e){t[e]=!0}(t,o)}}return function(){for(var i=arguments.length,n=Array(i),o=0;o<i;o++)n[o]=arguments[o];var r=new t;e(r,n);var g=[];for(var s in r)r[s]&&g.push(s);return g.join(" ")}}();void 0!==t&&t.exports?t.exports=i:void 0===(n=function(){return i}.apply(e,[]))||(t.exports=n)}()},"./node_modules/core-js/es/array/from.js":
/*!***********************************************!*\
  !*** ./node_modules/core-js/es/array/from.js ***!
  \***********************************************/
/*! no static exports found */function(t,e,i){i(/*! ../../modules/es.string.iterator */"./node_modules/core-js/modules/es.string.iterator.js"),i(/*! ../../modules/es.array.from */"./node_modules/core-js/modules/es.array.from.js");var n=i(/*! ../../internals/path */"./node_modules/core-js/internals/path.js");t.exports=n.Array.from},"./node_modules/core-js/internals/a-function.js":
/*!******************************************************!*\
  !*** ./node_modules/core-js/internals/a-function.js ***!
  \******************************************************/
/*! no static exports found */function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},"./node_modules/core-js/internals/an-object.js":
/*!*****************************************************!*\
  !*** ./node_modules/core-js/internals/an-object.js ***!
  \*****************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/is-object */"./node_modules/core-js/internals/is-object.js");t.exports=function(t){if(!n(t))throw TypeError(String(t)+" is not an object");return t}},"./node_modules/core-js/internals/array-from.js":
/*!******************************************************!*\
  !*** ./node_modules/core-js/internals/array-from.js ***!
  \******************************************************/
/*! no static exports found */function(t,e,i){"use strict";var n=i(/*! ../internals/bind-context */"./node_modules/core-js/internals/bind-context.js"),o=i(/*! ../internals/to-object */"./node_modules/core-js/internals/to-object.js"),r=i(/*! ../internals/call-with-safe-iteration-closing */"./node_modules/core-js/internals/call-with-safe-iteration-closing.js"),g=i(/*! ../internals/is-array-iterator-method */"./node_modules/core-js/internals/is-array-iterator-method.js"),s=i(/*! ../internals/to-length */"./node_modules/core-js/internals/to-length.js"),a=i(/*! ../internals/create-property */"./node_modules/core-js/internals/create-property.js"),A=i(/*! ../internals/get-iterator-method */"./node_modules/core-js/internals/get-iterator-method.js");t.exports=function(t){var e,i,C,I,l=o(t),c="function"==typeof this?this:Array,h=arguments.length,u=h>1?arguments[1]:void 0,d=void 0!==u,p=0,f=A(l);if(d&&(u=n(u,h>2?arguments[2]:void 0,2)),null==f||c==Array&&g(f))for(i=new c(e=s(l.length));e>p;p++)a(i,p,d?u(l[p],p):l[p]);else for(I=f.call(l),i=new c;!(C=I.next()).done;p++)a(i,p,d?r(I,u,[C.value,p],!0):C.value);return i.length=p,i}},"./node_modules/core-js/internals/array-includes.js":
/*!**********************************************************!*\
  !*** ./node_modules/core-js/internals/array-includes.js ***!
  \**********************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/to-indexed-object */"./node_modules/core-js/internals/to-indexed-object.js"),o=i(/*! ../internals/to-length */"./node_modules/core-js/internals/to-length.js"),r=i(/*! ../internals/to-absolute-index */"./node_modules/core-js/internals/to-absolute-index.js");t.exports=function(t){return function(e,i,g){var s,a=n(e),A=o(a.length),C=r(g,A);if(t&&i!=i){for(;A>C;)if((s=a[C++])!=s)return!0}else for(;A>C;C++)if((t||C in a)&&a[C]===i)return t||C||0;return!t&&-1}}},"./node_modules/core-js/internals/bind-context.js":
/*!********************************************************!*\
  !*** ./node_modules/core-js/internals/bind-context.js ***!
  \********************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/a-function */"./node_modules/core-js/internals/a-function.js");t.exports=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,n){return t.call(e,i,n)};case 3:return function(i,n,o){return t.call(e,i,n,o)}}return function(){return t.apply(e,arguments)}}},"./node_modules/core-js/internals/call-with-safe-iteration-closing.js":
/*!****************************************************************************!*\
  !*** ./node_modules/core-js/internals/call-with-safe-iteration-closing.js ***!
  \****************************************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/an-object */"./node_modules/core-js/internals/an-object.js");t.exports=function(t,e,i,o){try{return o?e(n(i)[0],i[1]):e(i)}catch(e){var r=t.return;throw void 0!==r&&n(r.call(t)),e}}},"./node_modules/core-js/internals/check-correctness-of-iteration.js":
/*!**************************************************************************!*\
  !*** ./node_modules/core-js/internals/check-correctness-of-iteration.js ***!
  \**************************************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/well-known-symbol */"./node_modules/core-js/internals/well-known-symbol.js")("iterator"),o=!1;try{var r=0,g={next:function(){return{done:!!r++}},return:function(){o=!0}};g[n]=function(){return this},Array.from(g,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var i=!1;try{var r={};r[n]=function(){return{next:function(){return{done:i=!0}}}},t(r)}catch(t){}return i}},"./node_modules/core-js/internals/classof-raw.js":
/*!*******************************************************!*\
  !*** ./node_modules/core-js/internals/classof-raw.js ***!
  \*******************************************************/
/*! no static exports found */function(t,e){var i={}.toString;t.exports=function(t){return i.call(t).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":
/*!***************************************************!*\
  !*** ./node_modules/core-js/internals/classof.js ***!
  \***************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/classof-raw */"./node_modules/core-js/internals/classof-raw.js"),o=i(/*! ../internals/well-known-symbol */"./node_modules/core-js/internals/well-known-symbol.js")("toStringTag"),r="Arguments"==n(function(){return arguments}());t.exports=function(t){var e,i,g;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?i:r?n(e):"Object"==(g=n(e))&&"function"==typeof e.callee?"Arguments":g}},"./node_modules/core-js/internals/copy-constructor-properties.js":
/*!***********************************************************************!*\
  !*** ./node_modules/core-js/internals/copy-constructor-properties.js ***!
  \***********************************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/has */"./node_modules/core-js/internals/has.js"),o=i(/*! ../internals/own-keys */"./node_modules/core-js/internals/own-keys.js"),r=i(/*! ../internals/object-get-own-property-descriptor */"./node_modules/core-js/internals/object-get-own-property-descriptor.js"),g=i(/*! ../internals/object-define-property */"./node_modules/core-js/internals/object-define-property.js");t.exports=function(t,e){for(var i=o(e),s=g.f,a=r.f,A=0;A<i.length;A++){var C=i[A];n(t,C)||s(t,C,a(e,C))}}},"./node_modules/core-js/internals/correct-prototype-getter.js":
/*!********************************************************************!*\
  !*** ./node_modules/core-js/internals/correct-prototype-getter.js ***!
  \********************************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/fails */"./node_modules/core-js/internals/fails.js");t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},"./node_modules/core-js/internals/create-iterator-constructor.js":
/*!***********************************************************************!*\
  !*** ./node_modules/core-js/internals/create-iterator-constructor.js ***!
  \***********************************************************************/
/*! no static exports found */function(t,e,i){"use strict";var n=i(/*! ../internals/iterators-core */"./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,o=i(/*! ../internals/object-create */"./node_modules/core-js/internals/object-create.js"),r=i(/*! ../internals/create-property-descriptor */"./node_modules/core-js/internals/create-property-descriptor.js"),g=i(/*! ../internals/set-to-string-tag */"./node_modules/core-js/internals/set-to-string-tag.js"),s=i(/*! ../internals/iterators */"./node_modules/core-js/internals/iterators.js"),a=function(){return this};t.exports=function(t,e,i){var A=e+" Iterator";return t.prototype=o(n,{next:r(1,i)}),g(t,A,!1,!0),s[A]=a,t}},"./node_modules/core-js/internals/create-property-descriptor.js":
/*!**********************************************************************!*\
  !*** ./node_modules/core-js/internals/create-property-descriptor.js ***!
  \**********************************************************************/
/*! no static exports found */function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"./node_modules/core-js/internals/create-property.js":
/*!***********************************************************!*\
  !*** ./node_modules/core-js/internals/create-property.js ***!
  \***********************************************************/
/*! no static exports found */function(t,e,i){"use strict";var n=i(/*! ../internals/to-primitive */"./node_modules/core-js/internals/to-primitive.js"),o=i(/*! ../internals/object-define-property */"./node_modules/core-js/internals/object-define-property.js"),r=i(/*! ../internals/create-property-descriptor */"./node_modules/core-js/internals/create-property-descriptor.js");t.exports=function(t,e,i){var g=n(e);g in t?o.f(t,g,r(0,i)):t[g]=i}},"./node_modules/core-js/internals/define-iterator.js":
/*!***********************************************************!*\
  !*** ./node_modules/core-js/internals/define-iterator.js ***!
  \***********************************************************/
/*! no static exports found */function(t,e,i){"use strict";var n=i(/*! ../internals/export */"./node_modules/core-js/internals/export.js"),o=i(/*! ../internals/create-iterator-constructor */"./node_modules/core-js/internals/create-iterator-constructor.js"),r=i(/*! ../internals/object-get-prototype-of */"./node_modules/core-js/internals/object-get-prototype-of.js"),g=i(/*! ../internals/object-set-prototype-of */"./node_modules/core-js/internals/object-set-prototype-of.js"),s=i(/*! ../internals/set-to-string-tag */"./node_modules/core-js/internals/set-to-string-tag.js"),a=i(/*! ../internals/hide */"./node_modules/core-js/internals/hide.js"),A=i(/*! ../internals/redefine */"./node_modules/core-js/internals/redefine.js"),C=i(/*! ../internals/well-known-symbol */"./node_modules/core-js/internals/well-known-symbol.js"),I=i(/*! ../internals/is-pure */"./node_modules/core-js/internals/is-pure.js"),l=i(/*! ../internals/iterators */"./node_modules/core-js/internals/iterators.js"),c=i(/*! ../internals/iterators-core */"./node_modules/core-js/internals/iterators-core.js"),h=c.IteratorPrototype,u=c.BUGGY_SAFARI_ITERATORS,d=C("iterator"),p=function(){return this};t.exports=function(t,e,i,C,c,f,v){o(i,e,C);var m,y,b,w=function(t){if(t===c&&O)return O;if(!u&&t in _)return _[t];switch(t){case"keys":case"values":case"entries":return function(){return new i(this,t)}}return function(){return new i(this)}},x=e+" Iterator",k=!1,_=t.prototype,D=_[d]||_["@@iterator"]||c&&_[c],O=!u&&D||w(c),M="Array"==e&&_.entries||D;if(M&&(m=r(M.call(new t)),h!==Object.prototype&&m.next&&(I||r(m)===h||(g?g(m,h):"function"!=typeof m[d]&&a(m,d,p)),s(m,x,!0,!0),I&&(l[x]=p))),"values"==c&&D&&"values"!==D.name&&(k=!0,O=function(){return D.call(this)}),I&&!v||_[d]===O||a(_,d,O),l[e]=O,c)if(y={values:w("values"),keys:f?O:w("keys"),entries:w("entries")},v)for(b in y)(u||k||!(b in _))&&A(_,b,y[b]);else n({target:e,proto:!0,forced:u||k},y);return y}},"./node_modules/core-js/internals/descriptors.js":
/*!*******************************************************!*\
  !*** ./node_modules/core-js/internals/descriptors.js ***!
  \*******************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/fails */"./node_modules/core-js/internals/fails.js");t.exports=!n((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"./node_modules/core-js/internals/document-create-element.js":
/*!*******************************************************************!*\
  !*** ./node_modules/core-js/internals/document-create-element.js ***!
  \*******************************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/global */"./node_modules/core-js/internals/global.js"),o=i(/*! ../internals/is-object */"./node_modules/core-js/internals/is-object.js"),r=n.document,g=o(r)&&o(r.createElement);t.exports=function(t){return g?r.createElement(t):{}}},"./node_modules/core-js/internals/enum-bug-keys.js":
/*!*********************************************************!*\
  !*** ./node_modules/core-js/internals/enum-bug-keys.js ***!
  \*********************************************************/
/*! no static exports found */function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/export.js":
/*!**************************************************!*\
  !*** ./node_modules/core-js/internals/export.js ***!
  \**************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/global */"./node_modules/core-js/internals/global.js"),o=i(/*! ../internals/object-get-own-property-descriptor */"./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,r=i(/*! ../internals/hide */"./node_modules/core-js/internals/hide.js"),g=i(/*! ../internals/redefine */"./node_modules/core-js/internals/redefine.js"),s=i(/*! ../internals/set-global */"./node_modules/core-js/internals/set-global.js"),a=i(/*! ../internals/copy-constructor-properties */"./node_modules/core-js/internals/copy-constructor-properties.js"),A=i(/*! ../internals/is-forced */"./node_modules/core-js/internals/is-forced.js");t.exports=function(t,e){var i,C,I,l,c,h=t.target,u=t.global,d=t.stat;if(i=u?n:d?n[h]||s(h,{}):(n[h]||{}).prototype)for(C in e){if(l=e[C],I=t.noTargetGet?(c=o(i,C))&&c.value:i[C],!A(u?C:h+(d?".":"#")+C,t.forced)&&void 0!==I){if(typeof l==typeof I)continue;a(l,I)}(t.sham||I&&I.sham)&&r(l,"sham",!0),g(i,C,l,t)}}},"./node_modules/core-js/internals/fails.js":
/*!*************************************************!*\
  !*** ./node_modules/core-js/internals/fails.js ***!
  \*************************************************/
/*! no static exports found */function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},"./node_modules/core-js/internals/function-to-string.js":
/*!**************************************************************!*\
  !*** ./node_modules/core-js/internals/function-to-string.js ***!
  \**************************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/shared */"./node_modules/core-js/internals/shared.js");t.exports=n("native-function-to-string",Function.toString)},"./node_modules/core-js/internals/get-iterator-method.js":
/*!***************************************************************!*\
  !*** ./node_modules/core-js/internals/get-iterator-method.js ***!
  \***************************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/classof */"./node_modules/core-js/internals/classof.js"),o=i(/*! ../internals/iterators */"./node_modules/core-js/internals/iterators.js"),r=i(/*! ../internals/well-known-symbol */"./node_modules/core-js/internals/well-known-symbol.js")("iterator");t.exports=function(t){if(null!=t)return t[r]||t["@@iterator"]||o[n(t)]}},"./node_modules/core-js/internals/global.js":
/*!**************************************************!*\
  !*** ./node_modules/core-js/internals/global.js ***!
  \**************************************************/
/*! no static exports found */function(t,e,i){(function(e){var i="object",n=function(t){return t&&t.Math==Math&&t};t.exports=n(typeof globalThis==i&&globalThis)||n(typeof window==i&&window)||n(typeof self==i&&self)||n(typeof e==i&&e)||Function("return this")()}).call(this,i(/*! ./../../webpack/buildin/global.js */"./node_modules/webpack/buildin/global.js"))},"./node_modules/core-js/internals/has.js":
/*!***********************************************!*\
  !*** ./node_modules/core-js/internals/has.js ***!
  \***********************************************/
/*! no static exports found */function(t,e){var i={}.hasOwnProperty;t.exports=function(t,e){return i.call(t,e)}},"./node_modules/core-js/internals/hidden-keys.js":
/*!*******************************************************!*\
  !*** ./node_modules/core-js/internals/hidden-keys.js ***!
  \*******************************************************/
/*! no static exports found */function(t,e){t.exports={}},"./node_modules/core-js/internals/hide.js":
/*!************************************************!*\
  !*** ./node_modules/core-js/internals/hide.js ***!
  \************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/descriptors */"./node_modules/core-js/internals/descriptors.js"),o=i(/*! ../internals/object-define-property */"./node_modules/core-js/internals/object-define-property.js"),r=i(/*! ../internals/create-property-descriptor */"./node_modules/core-js/internals/create-property-descriptor.js");t.exports=n?function(t,e,i){return o.f(t,e,r(1,i))}:function(t,e,i){return t[e]=i,t}},"./node_modules/core-js/internals/html.js":
/*!************************************************!*\
  !*** ./node_modules/core-js/internals/html.js ***!
  \************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/global */"./node_modules/core-js/internals/global.js").document;t.exports=n&&n.documentElement},"./node_modules/core-js/internals/ie8-dom-define.js":
/*!**********************************************************!*\
  !*** ./node_modules/core-js/internals/ie8-dom-define.js ***!
  \**********************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/descriptors */"./node_modules/core-js/internals/descriptors.js"),o=i(/*! ../internals/fails */"./node_modules/core-js/internals/fails.js"),r=i(/*! ../internals/document-create-element */"./node_modules/core-js/internals/document-create-element.js");t.exports=!n&&!o((function(){return 7!=Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a}))},"./node_modules/core-js/internals/indexed-object.js":
/*!**********************************************************!*\
  !*** ./node_modules/core-js/internals/indexed-object.js ***!
  \**********************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/fails */"./node_modules/core-js/internals/fails.js"),o=i(/*! ../internals/classof-raw */"./node_modules/core-js/internals/classof-raw.js"),r="".split;t.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?r.call(t,""):Object(t)}:Object},"./node_modules/core-js/internals/internal-state.js":
/*!**********************************************************!*\
  !*** ./node_modules/core-js/internals/internal-state.js ***!
  \**********************************************************/
/*! no static exports found */function(t,e,i){var n,o,r,g=i(/*! ../internals/native-weak-map */"./node_modules/core-js/internals/native-weak-map.js"),s=i(/*! ../internals/global */"./node_modules/core-js/internals/global.js"),a=i(/*! ../internals/is-object */"./node_modules/core-js/internals/is-object.js"),A=i(/*! ../internals/hide */"./node_modules/core-js/internals/hide.js"),C=i(/*! ../internals/has */"./node_modules/core-js/internals/has.js"),I=i(/*! ../internals/shared-key */"./node_modules/core-js/internals/shared-key.js"),l=i(/*! ../internals/hidden-keys */"./node_modules/core-js/internals/hidden-keys.js"),c=s.WeakMap;if(g){var h=new c,u=h.get,d=h.has,p=h.set;n=function(t,e){return p.call(h,t,e),e},o=function(t){return u.call(h,t)||{}},r=function(t){return d.call(h,t)}}else{var f=I("state");l[f]=!0,n=function(t,e){return A(t,f,e),e},o=function(t){return C(t,f)?t[f]:{}},r=function(t){return C(t,f)}}t.exports={set:n,get:o,has:r,enforce:function(t){return r(t)?o(t):n(t,{})},getterFor:function(t){return function(e){var i;if(!a(e)||(i=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return i}}}},"./node_modules/core-js/internals/is-array-iterator-method.js":
/*!********************************************************************!*\
  !*** ./node_modules/core-js/internals/is-array-iterator-method.js ***!
  \********************************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/well-known-symbol */"./node_modules/core-js/internals/well-known-symbol.js"),o=i(/*! ../internals/iterators */"./node_modules/core-js/internals/iterators.js"),r=n("iterator"),g=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||g[r]===t)}},"./node_modules/core-js/internals/is-forced.js":
/*!*****************************************************!*\
  !*** ./node_modules/core-js/internals/is-forced.js ***!
  \*****************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/fails */"./node_modules/core-js/internals/fails.js"),o=/#|\.prototype\./,r=function(t,e){var i=s[g(t)];return i==A||i!=a&&("function"==typeof e?n(e):!!e)},g=r.normalize=function(t){return String(t).replace(o,".").toLowerCase()},s=r.data={},a=r.NATIVE="N",A=r.POLYFILL="P";t.exports=r},"./node_modules/core-js/internals/is-object.js":
/*!*****************************************************!*\
  !*** ./node_modules/core-js/internals/is-object.js ***!
  \*****************************************************/
/*! no static exports found */function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},"./node_modules/core-js/internals/is-pure.js":
/*!***************************************************!*\
  !*** ./node_modules/core-js/internals/is-pure.js ***!
  \***************************************************/
/*! no static exports found */function(t,e){t.exports=!1},"./node_modules/core-js/internals/iterators-core.js":
/*!**********************************************************!*\
  !*** ./node_modules/core-js/internals/iterators-core.js ***!
  \**********************************************************/
/*! no static exports found */function(t,e,i){"use strict";var n,o,r,g=i(/*! ../internals/object-get-prototype-of */"./node_modules/core-js/internals/object-get-prototype-of.js"),s=i(/*! ../internals/hide */"./node_modules/core-js/internals/hide.js"),a=i(/*! ../internals/has */"./node_modules/core-js/internals/has.js"),A=i(/*! ../internals/well-known-symbol */"./node_modules/core-js/internals/well-known-symbol.js"),C=i(/*! ../internals/is-pure */"./node_modules/core-js/internals/is-pure.js"),I=A("iterator"),l=!1;[].keys&&("next"in(r=[].keys())?(o=g(g(r)))!==Object.prototype&&(n=o):l=!0),null==n&&(n={}),C||a(n,I)||s(n,I,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:l}},"./node_modules/core-js/internals/iterators.js":
/*!*****************************************************!*\
  !*** ./node_modules/core-js/internals/iterators.js ***!
  \*****************************************************/
/*! no static exports found */function(t,e){t.exports={}},"./node_modules/core-js/internals/native-symbol.js":
/*!*********************************************************!*\
  !*** ./node_modules/core-js/internals/native-symbol.js ***!
  \*********************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/fails */"./node_modules/core-js/internals/fails.js");t.exports=!!Object.getOwnPropertySymbols&&!n((function(){return!String(Symbol())}))},"./node_modules/core-js/internals/native-weak-map.js":
/*!***********************************************************!*\
  !*** ./node_modules/core-js/internals/native-weak-map.js ***!
  \***********************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/global */"./node_modules/core-js/internals/global.js"),o=i(/*! ../internals/function-to-string */"./node_modules/core-js/internals/function-to-string.js"),r=n.WeakMap;t.exports="function"==typeof r&&/native code/.test(o.call(r))},"./node_modules/core-js/internals/object-create.js":
/*!*********************************************************!*\
  !*** ./node_modules/core-js/internals/object-create.js ***!
  \*********************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/an-object */"./node_modules/core-js/internals/an-object.js"),o=i(/*! ../internals/object-define-properties */"./node_modules/core-js/internals/object-define-properties.js"),r=i(/*! ../internals/enum-bug-keys */"./node_modules/core-js/internals/enum-bug-keys.js"),g=i(/*! ../internals/hidden-keys */"./node_modules/core-js/internals/hidden-keys.js"),s=i(/*! ../internals/html */"./node_modules/core-js/internals/html.js"),a=i(/*! ../internals/document-create-element */"./node_modules/core-js/internals/document-create-element.js"),A=i(/*! ../internals/shared-key */"./node_modules/core-js/internals/shared-key.js")("IE_PROTO"),C=function(){},I=function(){var t,e=a("iframe"),i=r.length;for(e.style.display="none",s.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),I=t.F;i--;)delete I.prototype[r[i]];return I()};t.exports=Object.create||function(t,e){var i;return null!==t?(C.prototype=n(t),i=new C,C.prototype=null,i[A]=t):i=I(),void 0===e?i:o(i,e)},g[A]=!0},"./node_modules/core-js/internals/object-define-properties.js":
/*!********************************************************************!*\
  !*** ./node_modules/core-js/internals/object-define-properties.js ***!
  \********************************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/descriptors */"./node_modules/core-js/internals/descriptors.js"),o=i(/*! ../internals/object-define-property */"./node_modules/core-js/internals/object-define-property.js"),r=i(/*! ../internals/an-object */"./node_modules/core-js/internals/an-object.js"),g=i(/*! ../internals/object-keys */"./node_modules/core-js/internals/object-keys.js");t.exports=n?Object.defineProperties:function(t,e){r(t);for(var i,n=g(e),s=n.length,a=0;s>a;)o.f(t,i=n[a++],e[i]);return t}},"./node_modules/core-js/internals/object-define-property.js":
/*!******************************************************************!*\
  !*** ./node_modules/core-js/internals/object-define-property.js ***!
  \******************************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/descriptors */"./node_modules/core-js/internals/descriptors.js"),o=i(/*! ../internals/ie8-dom-define */"./node_modules/core-js/internals/ie8-dom-define.js"),r=i(/*! ../internals/an-object */"./node_modules/core-js/internals/an-object.js"),g=i(/*! ../internals/to-primitive */"./node_modules/core-js/internals/to-primitive.js"),s=Object.defineProperty;e.f=n?s:function(t,e,i){if(r(t),e=g(e,!0),r(i),o)try{return s(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}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":
/*!******************************************************************************!*\
  !*** ./node_modules/core-js/internals/object-get-own-property-descriptor.js ***!
  \******************************************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/descriptors */"./node_modules/core-js/internals/descriptors.js"),o=i(/*! ../internals/object-property-is-enumerable */"./node_modules/core-js/internals/object-property-is-enumerable.js"),r=i(/*! ../internals/create-property-descriptor */"./node_modules/core-js/internals/create-property-descriptor.js"),g=i(/*! ../internals/to-indexed-object */"./node_modules/core-js/internals/to-indexed-object.js"),s=i(/*! ../internals/to-primitive */"./node_modules/core-js/internals/to-primitive.js"),a=i(/*! ../internals/has */"./node_modules/core-js/internals/has.js"),A=i(/*! ../internals/ie8-dom-define */"./node_modules/core-js/internals/ie8-dom-define.js"),C=Object.getOwnPropertyDescriptor;e.f=n?C:function(t,e){if(t=g(t),e=s(e,!0),A)try{return C(t,e)}catch(t){}if(a(t,e))return r(!o.f.call(t,e),t[e])}},"./node_modules/core-js/internals/object-get-own-property-names.js":
/*!*************************************************************************!*\
  !*** ./node_modules/core-js/internals/object-get-own-property-names.js ***!
  \*************************************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/object-keys-internal */"./node_modules/core-js/internals/object-keys-internal.js"),o=i(/*! ../internals/enum-bug-keys */"./node_modules/core-js/internals/enum-bug-keys.js").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":
/*!***************************************************************************!*\
  !*** ./node_modules/core-js/internals/object-get-own-property-symbols.js ***!
  \***************************************************************************/
/*! no static exports found */function(t,e){e.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":
/*!*******************************************************************!*\
  !*** ./node_modules/core-js/internals/object-get-prototype-of.js ***!
  \*******************************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/has */"./node_modules/core-js/internals/has.js"),o=i(/*! ../internals/to-object */"./node_modules/core-js/internals/to-object.js"),r=i(/*! ../internals/shared-key */"./node_modules/core-js/internals/shared-key.js"),g=i(/*! ../internals/correct-prototype-getter */"./node_modules/core-js/internals/correct-prototype-getter.js"),s=r("IE_PROTO"),a=Object.prototype;t.exports=g?Object.getPrototypeOf:function(t){return t=o(t),n(t,s)?t[s]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},"./node_modules/core-js/internals/object-keys-internal.js":
/*!****************************************************************!*\
  !*** ./node_modules/core-js/internals/object-keys-internal.js ***!
  \****************************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/has */"./node_modules/core-js/internals/has.js"),o=i(/*! ../internals/to-indexed-object */"./node_modules/core-js/internals/to-indexed-object.js"),r=i(/*! ../internals/array-includes */"./node_modules/core-js/internals/array-includes.js"),g=i(/*! ../internals/hidden-keys */"./node_modules/core-js/internals/hidden-keys.js"),s=r(!1);t.exports=function(t,e){var i,r=o(t),a=0,A=[];for(i in r)!n(g,i)&&n(r,i)&&A.push(i);for(;e.length>a;)n(r,i=e[a++])&&(~s(A,i)||A.push(i));return A}},"./node_modules/core-js/internals/object-keys.js":
/*!*******************************************************!*\
  !*** ./node_modules/core-js/internals/object-keys.js ***!
  \*******************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/object-keys-internal */"./node_modules/core-js/internals/object-keys-internal.js"),o=i(/*! ../internals/enum-bug-keys */"./node_modules/core-js/internals/enum-bug-keys.js");t.exports=Object.keys||function(t){return n(t,o)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":
/*!*************************************************************************!*\
  !*** ./node_modules/core-js/internals/object-property-is-enumerable.js ***!
  \*************************************************************************/
/*! no static exports found */function(t,e,i){"use strict";var n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,r=o&&!n.call({1:2},1);e.f=r?function(t){var e=o(this,t);return!!e&&e.enumerable}:n},"./node_modules/core-js/internals/object-set-prototype-of.js":
/*!*******************************************************************!*\
  !*** ./node_modules/core-js/internals/object-set-prototype-of.js ***!
  \*******************************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/validate-set-prototype-of-arguments */"./node_modules/core-js/internals/validate-set-prototype-of-arguments.js");t.exports=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 n(i,o),e?t.call(i,o):i.__proto__=o,i}}():void 0)},"./node_modules/core-js/internals/own-keys.js":
/*!****************************************************!*\
  !*** ./node_modules/core-js/internals/own-keys.js ***!
  \****************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/global */"./node_modules/core-js/internals/global.js"),o=i(/*! ../internals/object-get-own-property-names */"./node_modules/core-js/internals/object-get-own-property-names.js"),r=i(/*! ../internals/object-get-own-property-symbols */"./node_modules/core-js/internals/object-get-own-property-symbols.js"),g=i(/*! ../internals/an-object */"./node_modules/core-js/internals/an-object.js"),s=n.Reflect;t.exports=s&&s.ownKeys||function(t){var e=o.f(g(t)),i=r.f;return i?e.concat(i(t)):e}},"./node_modules/core-js/internals/path.js":
/*!************************************************!*\
  !*** ./node_modules/core-js/internals/path.js ***!
  \************************************************/
/*! no static exports found */function(t,e,i){t.exports=i(/*! ../internals/global */"./node_modules/core-js/internals/global.js")},"./node_modules/core-js/internals/redefine.js":
/*!****************************************************!*\
  !*** ./node_modules/core-js/internals/redefine.js ***!
  \****************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/global */"./node_modules/core-js/internals/global.js"),o=i(/*! ../internals/shared */"./node_modules/core-js/internals/shared.js"),r=i(/*! ../internals/hide */"./node_modules/core-js/internals/hide.js"),g=i(/*! ../internals/has */"./node_modules/core-js/internals/has.js"),s=i(/*! ../internals/set-global */"./node_modules/core-js/internals/set-global.js"),a=i(/*! ../internals/function-to-string */"./node_modules/core-js/internals/function-to-string.js"),A=i(/*! ../internals/internal-state */"./node_modules/core-js/internals/internal-state.js"),C=A.get,I=A.enforce,l=String(a).split("toString");o("inspectSource",(function(t){return a.call(t)})),(t.exports=function(t,e,i,o){var a=!!o&&!!o.unsafe,A=!!o&&!!o.enumerable,C=!!o&&!!o.noTargetGet;"function"==typeof i&&("string"!=typeof e||g(i,"name")||r(i,"name",e),I(i).source=l.join("string"==typeof e?e:"")),t!==n?(a?!C&&t[e]&&(A=!0):delete t[e],A?t[e]=i:r(t,e,i)):A?t[e]=i:s(e,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&C(this).source||a.call(this)}))},"./node_modules/core-js/internals/require-object-coercible.js":
/*!********************************************************************!*\
  !*** ./node_modules/core-js/internals/require-object-coercible.js ***!
  \********************************************************************/
/*! no static exports found */function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},"./node_modules/core-js/internals/set-global.js":
/*!******************************************************!*\
  !*** ./node_modules/core-js/internals/set-global.js ***!
  \******************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/global */"./node_modules/core-js/internals/global.js"),o=i(/*! ../internals/hide */"./node_modules/core-js/internals/hide.js");t.exports=function(t,e){try{o(n,t,e)}catch(i){n[t]=e}return e}},"./node_modules/core-js/internals/set-to-string-tag.js":
/*!*************************************************************!*\
  !*** ./node_modules/core-js/internals/set-to-string-tag.js ***!
  \*************************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/object-define-property */"./node_modules/core-js/internals/object-define-property.js").f,o=i(/*! ../internals/has */"./node_modules/core-js/internals/has.js"),r=i(/*! ../internals/well-known-symbol */"./node_modules/core-js/internals/well-known-symbol.js")("toStringTag");t.exports=function(t,e,i){t&&!o(t=i?t:t.prototype,r)&&n(t,r,{configurable:!0,value:e})}},"./node_modules/core-js/internals/shared-key.js":
/*!******************************************************!*\
  !*** ./node_modules/core-js/internals/shared-key.js ***!
  \******************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/shared */"./node_modules/core-js/internals/shared.js"),o=i(/*! ../internals/uid */"./node_modules/core-js/internals/uid.js"),r=n("keys");t.exports=function(t){return r[t]||(r[t]=o(t))}},"./node_modules/core-js/internals/shared.js":
/*!**************************************************!*\
  !*** ./node_modules/core-js/internals/shared.js ***!
  \**************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/global */"./node_modules/core-js/internals/global.js"),o=i(/*! ../internals/set-global */"./node_modules/core-js/internals/set-global.js"),r=i(/*! ../internals/is-pure */"./node_modules/core-js/internals/is-pure.js"),g=n["__core-js_shared__"]||o("__core-js_shared__",{});(t.exports=function(t,e){return g[t]||(g[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.1.3",mode:r?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-at.js":
/*!*****************************************************!*\
  !*** ./node_modules/core-js/internals/string-at.js ***!
  \*****************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/to-integer */"./node_modules/core-js/internals/to-integer.js"),o=i(/*! ../internals/require-object-coercible */"./node_modules/core-js/internals/require-object-coercible.js");t.exports=function(t,e,i){var r,g,s=String(o(t)),a=n(e),A=s.length;return a<0||a>=A?i?"":void 0:(r=s.charCodeAt(a))<55296||r>56319||a+1===A||(g=s.charCodeAt(a+1))<56320||g>57343?i?s.charAt(a):r:i?s.slice(a,a+2):g-56320+(r-55296<<10)+65536}},"./node_modules/core-js/internals/to-absolute-index.js":
/*!*************************************************************!*\
  !*** ./node_modules/core-js/internals/to-absolute-index.js ***!
  \*************************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/to-integer */"./node_modules/core-js/internals/to-integer.js"),o=Math.max,r=Math.min;t.exports=function(t,e){var i=n(t);return i<0?o(i+e,0):r(i,e)}},"./node_modules/core-js/internals/to-indexed-object.js":
/*!*************************************************************!*\
  !*** ./node_modules/core-js/internals/to-indexed-object.js ***!
  \*************************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/indexed-object */"./node_modules/core-js/internals/indexed-object.js"),o=i(/*! ../internals/require-object-coercible */"./node_modules/core-js/internals/require-object-coercible.js");t.exports=function(t){return n(o(t))}},"./node_modules/core-js/internals/to-integer.js":
/*!******************************************************!*\
  !*** ./node_modules/core-js/internals/to-integer.js ***!
  \******************************************************/
/*! no static exports found */function(t,e){var i=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:i)(t)}},"./node_modules/core-js/internals/to-length.js":
/*!*****************************************************!*\
  !*** ./node_modules/core-js/internals/to-length.js ***!
  \*****************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/to-integer */"./node_modules/core-js/internals/to-integer.js"),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":
/*!*****************************************************!*\
  !*** ./node_modules/core-js/internals/to-object.js ***!
  \*****************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/require-object-coercible */"./node_modules/core-js/internals/require-object-coercible.js");t.exports=function(t){return Object(n(t))}},"./node_modules/core-js/internals/to-primitive.js":
/*!********************************************************!*\
  !*** ./node_modules/core-js/internals/to-primitive.js ***!
  \********************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/is-object */"./node_modules/core-js/internals/is-object.js");t.exports=function(t,e){if(!n(t))return t;var i,o;if(e&&"function"==typeof(i=t.toString)&&!n(o=i.call(t)))return o;if("function"==typeof(i=t.valueOf)&&!n(o=i.call(t)))return o;if(!e&&"function"==typeof(i=t.toString)&&!n(o=i.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/uid.js":
/*!***********************************************!*\
  !*** ./node_modules/core-js/internals/uid.js ***!
  \***********************************************/
/*! no static exports found */function(t,e){var i=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++i+n).toString(36))}},"./node_modules/core-js/internals/validate-set-prototype-of-arguments.js":
/*!*******************************************************************************!*\
  !*** ./node_modules/core-js/internals/validate-set-prototype-of-arguments.js ***!
  \*******************************************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/is-object */"./node_modules/core-js/internals/is-object.js"),o=i(/*! ../internals/an-object */"./node_modules/core-js/internals/an-object.js");t.exports=function(t,e){if(o(t),!n(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype")}},"./node_modules/core-js/internals/well-known-symbol.js":
/*!*************************************************************!*\
  !*** ./node_modules/core-js/internals/well-known-symbol.js ***!
  \*************************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/global */"./node_modules/core-js/internals/global.js"),o=i(/*! ../internals/shared */"./node_modules/core-js/internals/shared.js"),r=i(/*! ../internals/uid */"./node_modules/core-js/internals/uid.js"),g=i(/*! ../internals/native-symbol */"./node_modules/core-js/internals/native-symbol.js"),s=n.Symbol,a=o("wks");t.exports=function(t){return a[t]||(a[t]=g&&s[t]||(g?s:r)("Symbol."+t))}},"./node_modules/core-js/modules/es.array.from.js":
/*!*******************************************************!*\
  !*** ./node_modules/core-js/modules/es.array.from.js ***!
  \*******************************************************/
/*! no static exports found */function(t,e,i){var n=i(/*! ../internals/export */"./node_modules/core-js/internals/export.js"),o=i(/*! ../internals/array-from */"./node_modules/core-js/internals/array-from.js");n({target:"Array",stat:!0,forced:!i(/*! ../internals/check-correctness-of-iteration */"./node_modules/core-js/internals/check-correctness-of-iteration.js")((function(t){Array.from(t)}))},{from:o})},"./node_modules/core-js/modules/es.string.iterator.js":
/*!************************************************************!*\
  !*** ./node_modules/core-js/modules/es.string.iterator.js ***!
  \************************************************************/
/*! no static exports found */function(t,e,i){"use strict";var n=i(/*! ../internals/string-at */"./node_modules/core-js/internals/string-at.js"),o=i(/*! ../internals/internal-state */"./node_modules/core-js/internals/internal-state.js"),r=i(/*! ../internals/define-iterator */"./node_modules/core-js/internals/define-iterator.js"),g=o.set,s=o.getterFor("String Iterator");r(String,"String",(function(t){g(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=s(this),i=e.string,o=e.index;return o>=i.length?{value:void 0,done:!0}:(t=n(i,o,!0),e.index+=t.length,{value:t,done:!1})}))},"./node_modules/webpack/buildin/global.js":
/*!***********************************!*\
  !*** (webpack)/buildin/global.js ***!
  \***********************************/
/*! no static exports found */function(t,e){var i;i=function(){return this}();try{i=i||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(i=window)}t.exports=i},"./src/default-attrs.json":
/*!********************************!*\
  !*** ./src/default-attrs.json ***!
  \********************************/
/*! exports provided: xmlns, width, height, viewBox, fill, stroke, stroke-width, stroke-linecap, stroke-linejoin, default */function(t){t.exports={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"}},"./src/icon.js":
/*!*********************!*\
  !*** ./src/icon.js ***!
  \*********************/
/*! no static exports found */function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},o=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),r=s(i(/*! classnames/dedupe */"./node_modules/classnames/dedupe.js")),g=s(i(/*! ./default-attrs.json */"./src/default-attrs.json"));function s(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var A=function(){function t(e,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];a(this,t),this.name=e,this.contents=i,this.tags=o,this.attrs=n({},g.default,{class:"feather feather-"+e})}return o(t,[{key:"toSvg",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n({},this.attrs,t,{class:(0,r.default)(this.attrs.class,t.class)});return"<svg "+C(e)+">"+this.contents+"</svg>"}},{key:"toString",value:function(){return this.contents}}]),t}();function C(t){return Object.keys(t).map((function(e){return e+'="'+t[e]+'"'})).join(" ")}e.default=A},"./src/icons.js":
/*!**********************!*\
  !*** ./src/icons.js ***!
  \**********************/
/*! no static exports found */function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=g(i(/*! ./icon */"./src/icon.js")),o=g(i(/*! ../dist/icons.json */"./dist/icons.json")),r=g(i(/*! ./tags.json */"./src/tags.json"));function g(t){return t&&t.__esModule?t:{default:t}}e.default=Object.keys(o.default).map((function(t){return new n.default(t,o.default[t],r.default[t])})).reduce((function(t,e){return t[e.name]=e,t}),{})},"./src/index.js":
/*!**********************!*\
  !*** ./src/index.js ***!
  \**********************/
/*! no static exports found */function(t,e,i){"use strict";var n=g(i(/*! ./icons */"./src/icons.js")),o=g(i(/*! ./to-svg */"./src/to-svg.js")),r=g(i(/*! ./replace */"./src/replace.js"));function g(t){return t&&t.__esModule?t:{default:t}}t.exports={icons:n.default,toSvg:o.default,replace:r.default}},"./src/replace.js":
/*!************************!*\
  !*** ./src/replace.js ***!
  \************************/
/*! no static exports found */function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},o=g(i(/*! classnames/dedupe */"./node_modules/classnames/dedupe.js")),r=g(i(/*! ./icons */"./src/icons.js"));function g(t){return t&&t.__esModule?t:{default:t}}function s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=a(t),g=i["data-feather"];delete i["data-feather"];var s=r.default[g].toSvg(n({},e,i,{class:(0,o.default)(e.class,i.class)})),A=(new DOMParser).parseFromString(s,"image/svg+xml"),C=A.querySelector("svg");t.parentNode.replaceChild(C,t)}function a(t){return Array.from(t.attributes).reduce((function(t,e){return t[e.name]=e.value,t}),{})}e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("undefined"==typeof document)throw new Error("`feather.replace()` only works in a browser environment.");var e=document.querySelectorAll("[data-feather]");Array.from(e).forEach((function(e){return s(e,t)}))}},"./src/tags.json":
/*!***********************!*\
  !*** ./src/tags.json ***!
  \***********************/
/*! exports provided: activity, airplay, alert-circle, alert-octagon, alert-triangle, align-center, align-justify, align-left, align-right, anchor, archive, at-sign, award, aperture, bar-chart, bar-chart-2, battery, battery-charging, bell, bell-off, bluetooth, book-open, book, bookmark, box, briefcase, calendar, camera, cast, circle, clipboard, clock, cloud-drizzle, cloud-lightning, cloud-rain, cloud-snow, cloud, codepen, codesandbox, code, coffee, columns, command, compass, copy, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, cpu, credit-card, crop, crosshair, database, delete, disc, dollar-sign, droplet, edit, edit-2, edit-3, eye, eye-off, external-link, facebook, fast-forward, figma, file-minus, file-plus, file-text, film, filter, flag, folder-minus, folder-plus, folder, framer, frown, gift, git-branch, git-commit, git-merge, git-pull-request, github, gitlab, globe, hard-drive, hash, headphones, heart, help-circle, hexagon, home, image, inbox, instagram, key, layers, layout, life-bouy, link, link-2, linkedin, list, lock, log-in, log-out, mail, map-pin, map, maximize, maximize-2, meh, menu, message-circle, message-square, mic-off, mic, minimize, minimize-2, minus, monitor, moon, more-horizontal, more-vertical, mouse-pointer, move, music, navigation, navigation-2, octagon, package, paperclip, pause, pause-circle, pen-tool, percent, phone-call, phone-forwarded, phone-incoming, phone-missed, phone-off, phone-outgoing, phone, play, pie-chart, play-circle, plus, plus-circle, plus-square, pocket, power, printer, radio, refresh-cw, refresh-ccw, repeat, rewind, rotate-ccw, rotate-cw, rss, save, scissors, search, send, settings, share-2, shield, shield-off, shopping-bag, shopping-cart, shuffle, skip-back, skip-forward, slack, slash, sliders, smartphone, smile, speaker, star, stop-circle, sun, sunrise, sunset, tablet, tag, target, terminal, thermometer, thumbs-down, thumbs-up, toggle-left, toggle-right, tool, trash, trash-2, triangle, truck, tv, twitch, twitter, type, umbrella, unlock, user-check, user-minus, user-plus, user-x, user, users, video-off, video, voicemail, volume, volume-1, volume-2, volume-x, watch, wifi-off, wifi, wind, x-circle, x-octagon, x-square, x, youtube, zap-off, zap, zoom-in, zoom-out, default */function(t){t.exports={activity:["pulse","health","action","motion"],airplay:["stream","cast","mirroring"],"alert-circle":["warning","alert","danger"],"alert-octagon":["warning","alert","danger"],"alert-triangle":["warning","alert","danger"],"align-center":["text alignment","center"],"align-justify":["text alignment","justified"],"align-left":["text alignment","left"],"align-right":["text alignment","right"],anchor:[],archive:["index","box"],"at-sign":["mention","at","email","message"],award:["achievement","badge"],aperture:["camera","photo"],"bar-chart":["statistics","diagram","graph"],"bar-chart-2":["statistics","diagram","graph"],battery:["power","electricity"],"battery-charging":["power","electricity"],bell:["alarm","notification","sound"],"bell-off":["alarm","notification","silent"],bluetooth:["wireless"],"book-open":["read","library"],book:["read","dictionary","booklet","magazine","library"],bookmark:["read","clip","marker","tag"],box:["cube"],briefcase:["work","bag","baggage","folder"],calendar:["date"],camera:["photo"],cast:["chromecast","airplay"],circle:["off","zero","record"],clipboard:["copy"],clock:["time","watch","alarm"],"cloud-drizzle":["weather","shower"],"cloud-lightning":["weather","bolt"],"cloud-rain":["weather"],"cloud-snow":["weather","blizzard"],cloud:["weather"],codepen:["logo"],codesandbox:["logo"],code:["source","programming"],coffee:["drink","cup","mug","tea","cafe","hot","beverage"],columns:["layout"],command:["keyboard","cmd","terminal","prompt"],compass:["navigation","safari","travel","direction"],copy:["clone","duplicate"],"corner-down-left":["arrow","return"],"corner-down-right":["arrow"],"corner-left-down":["arrow"],"corner-left-up":["arrow"],"corner-right-down":["arrow"],"corner-right-up":["arrow"],"corner-up-left":["arrow"],"corner-up-right":["arrow"],cpu:["processor","technology"],"credit-card":["purchase","payment","cc"],crop:["photo","image"],crosshair:["aim","target"],database:["storage","memory"],delete:["remove"],disc:["album","cd","dvd","music"],"dollar-sign":["currency","money","payment"],droplet:["water"],edit:["pencil","change"],"edit-2":["pencil","change"],"edit-3":["pencil","change"],eye:["view","watch"],"eye-off":["view","watch","hide","hidden"],"external-link":["outbound"],facebook:["logo","social"],"fast-forward":["music"],figma:["logo","design","tool"],"file-minus":["delete","remove","erase"],"file-plus":["add","create","new"],"file-text":["data","txt","pdf"],film:["movie","video"],filter:["funnel","hopper"],flag:["report"],"folder-minus":["directory"],"folder-plus":["directory"],folder:["directory"],framer:["logo","design","tool"],frown:["emoji","face","bad","sad","emotion"],gift:["present","box","birthday","party"],"git-branch":["code","version control"],"git-commit":["code","version control"],"git-merge":["code","version control"],"git-pull-request":["code","version control"],github:["logo","version control"],gitlab:["logo","version control"],globe:["world","browser","language","translate"],"hard-drive":["computer","server","memory","data"],hash:["hashtag","number","pound"],headphones:["music","audio","sound"],heart:["like","love","emotion"],"help-circle":["question mark"],hexagon:["shape","node.js","logo"],home:["house","living"],image:["picture"],inbox:["email"],instagram:["logo","camera"],key:["password","login","authentication","secure"],layers:["stack"],layout:["window","webpage"],"life-bouy":["help","life ring","support"],link:["chain","url"],"link-2":["chain","url"],linkedin:["logo","social media"],list:["options"],lock:["security","password","secure"],"log-in":["sign in","arrow","enter"],"log-out":["sign out","arrow","exit"],mail:["email","message"],"map-pin":["location","navigation","travel","marker"],map:["location","navigation","travel"],maximize:["fullscreen"],"maximize-2":["fullscreen","arrows","expand"],meh:["emoji","face","neutral","emotion"],menu:["bars","navigation","hamburger"],"message-circle":["comment","chat"],"message-square":["comment","chat"],"mic-off":["record","sound","mute"],mic:["record","sound","listen"],minimize:["exit fullscreen","close"],"minimize-2":["exit fullscreen","arrows","close"],minus:["subtract"],monitor:["tv","screen","display"],moon:["dark","night"],"more-horizontal":["ellipsis"],"more-vertical":["ellipsis"],"mouse-pointer":["arrow","cursor"],move:["arrows"],music:["note"],navigation:["location","travel"],"navigation-2":["location","travel"],octagon:["stop"],package:["box","container"],paperclip:["attachment"],pause:["music","stop"],"pause-circle":["music","audio","stop"],"pen-tool":["vector","drawing"],percent:["discount"],"phone-call":["ring"],"phone-forwarded":["call"],"phone-incoming":["call"],"phone-missed":["call"],"phone-off":["call","mute"],"phone-outgoing":["call"],phone:["call"],play:["music","start"],"pie-chart":["statistics","diagram"],"play-circle":["music","start"],plus:["add","new"],"plus-circle":["add","new"],"plus-square":["add","new"],pocket:["logo","save"],power:["on","off"],printer:["fax","office","device"],radio:["signal"],"refresh-cw":["synchronise","arrows"],"refresh-ccw":["arrows"],repeat:["loop","arrows"],rewind:["music"],"rotate-ccw":["arrow"],"rotate-cw":["arrow"],rss:["feed","subscribe"],save:["floppy disk"],scissors:["cut"],search:["find","magnifier","magnifying glass"],send:["message","mail","email","paper airplane","paper aeroplane"],settings:["cog","edit","gear","preferences"],"share-2":["network","connections"],shield:["security","secure"],"shield-off":["security","insecure"],"shopping-bag":["ecommerce","cart","purchase","store"],"shopping-cart":["ecommerce","cart","purchase","store"],shuffle:["music"],"skip-back":["music"],"skip-forward":["music"],slack:["logo"],slash:["ban","no"],sliders:["settings","controls"],smartphone:["cellphone","device"],smile:["emoji","face","happy","good","emotion"],speaker:["audio","music"],star:["bookmark","favorite","like"],"stop-circle":["media","music"],sun:["brightness","weather","light"],sunrise:["weather","time","morning","day"],sunset:["weather","time","evening","night"],tablet:["device"],tag:["label"],target:["logo","bullseye"],terminal:["code","command line","prompt"],thermometer:["temperature","celsius","fahrenheit","weather"],"thumbs-down":["dislike","bad","emotion"],"thumbs-up":["like","good","emotion"],"toggle-left":["on","off","switch"],"toggle-right":["on","off","switch"],tool:["settings","spanner"],trash:["garbage","delete","remove","bin"],"trash-2":["garbage","delete","remove","bin"],triangle:["delta"],truck:["delivery","van","shipping","transport","lorry"],tv:["television","stream"],twitch:["logo"],twitter:["logo","social"],type:["text"],umbrella:["rain","weather"],unlock:["security"],"user-check":["followed","subscribed"],"user-minus":["delete","remove","unfollow","unsubscribe"],"user-plus":["new","add","create","follow","subscribe"],"user-x":["delete","remove","unfollow","unsubscribe","unavailable"],user:["person","account"],users:["group"],"video-off":["camera","movie","film"],video:["camera","movie","film"],voicemail:["phone"],volume:["music","sound","mute"],"volume-1":["music","sound"],"volume-2":["music","sound"],"volume-x":["music","sound","mute"],watch:["clock","time"],"wifi-off":["disabled"],wifi:["connection","signal","wireless"],wind:["weather","air"],"x-circle":["cancel","close","delete","remove","times","clear"],"x-octagon":["delete","stop","alert","warning","times","clear"],"x-square":["cancel","close","delete","remove","times","clear"],x:["cancel","close","delete","remove","times","clear"],youtube:["logo","video","play"],"zap-off":["flash","camera","lightning"],zap:["flash","camera","lightning"],"zoom-in":["magnifying glass"],"zoom-out":["magnifying glass"]}},"./src/to-svg.js":
/*!***********************!*\
  !*** ./src/to-svg.js ***!
  \***********************/
/*! no static exports found */function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,o=i(/*! ./icons */"./src/icons.js"),r=(n=o)&&n.__esModule?n:{default:n};e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(console.warn("feather.toSvg() is deprecated. Please use feather.icons[name].toSvg() instead."),!t)throw new Error("The required `key` (icon name) parameter is missing.");if(!r.default[t])throw new Error("No icon matching '"+t+"'. See the complete list of icons at https://feathericons.com");return r.default[t].toSvg(e)}},0:
/*!**************************************************!*\
  !*** multi core-js/es/array/from ./src/index.js ***!
  \**************************************************/
/*! no static exports found */function(t,e,i){i(/*! core-js/es/array/from */"./node_modules/core-js/es/array/from.js"),t.exports=i(/*! /home/travis/build/feathericons/feather/src/index.js */"./src/index.js")}})},t.exports=n()},function(t,e,i){var n,o,r;
/*! jQuery UI - v1.11.1 - 2014-08-13
* http://jqueryui.com
* Includes: core.js, widget.js, mouse.js, position.js, accordion.js, autocomplete.js, button.js, datepicker.js, dialog.js, draggable.js, droppable.js, effect.js, effect-blind.js, effect-bounce.js, effect-clip.js, effect-drop.js, effect-explode.js, effect-fade.js, effect-fold.js, effect-highlight.js, effect-puff.js, effect-pulsate.js, effect-scale.js, effect-shake.js, effect-size.js, effect-slide.js, effect-transfer.js, menu.js, progressbar.js, resizable.js, selectable.js, selectmenu.js, slider.js, sortable.js, spinner.js, tabs.js, tooltip.js
* Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */o=[i(3)],void 0===(r="function"==typeof(n=function(t){function e(e,n){var o,r,g,s=e.nodeName.toLowerCase();return"area"===s?(r=(o=e.parentNode).name,!(!e.href||!r||"map"!==o.nodeName.toLowerCase())&&!!(g=t("img[usemap='#"+r+"']")[0])&&i(g)):(/input|select|textarea|button|object/.test(s)?!e.disabled:"a"===s&&e.href||n)&&i(e)}function i(e){return t.expr.filters.visible(e)&&!t(e).parents().addBack().filter((function(){return"hidden"===t.css(this,"visibility")})).length}var n,o,r,g;
/*!
 * jQuery UI Core 1.11.1
 * http://jqueryui.com
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/category/ui-core/
 */
t.ui=t.ui||{},t.extend(t.ui,{version:"1.11.1",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),t.fn.extend({scrollParent:function(e){var i=this.css("position"),n="absolute"===i,o=e?/(auto|scroll|hidden)/:/(auto|scroll)/,r=this.parents().filter((function(){var e=t(this);return(!n||"static"!==e.css("position"))&&o.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))})).eq(0);return"fixed"!==i&&r.length?r:t(this[0].ownerDocument||document)},uniqueId:(n=0,function(){return this.each((function(){this.id||(this.id="ui-id-"+ ++n)}))}),removeUniqueId:function(){return this.each((function(){/^ui-id-\d+$/.test(this.id)&&t(this).removeAttr("id")}))}}),t.extend(t.expr[":"],{data:t.expr.createPseudo?t.expr.createPseudo((function(e){return function(i){return!!t.data(i,e)}})):function(e,i,n){return!!t.data(e,n[3])},focusable:function(i){return e(i,!isNaN(t.attr(i,"tabindex")))},tabbable:function(i){var n=t.attr(i,"tabindex"),o=isNaN(n);return(o||n>=0)&&e(i,!o)}}),t("<a>").outerWidth(1).jquery||t.each(["Width","Height"],(function(e,i){var n="Width"===i?["Left","Right"]:["Top","Bottom"],o=i.toLowerCase(),r={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};function g(e,i,o,r){return t.each(n,(function(){i-=parseFloat(t.css(e,"padding"+this))||0,o&&(i-=parseFloat(t.css(e,"border"+this+"Width"))||0),r&&(i-=parseFloat(t.css(e,"margin"+this))||0)})),i}t.fn["inner"+i]=function(e){return void 0===e?r["inner"+i].call(this):this.each((function(){t(this).css(o,g(this,e)+"px")}))},t.fn["outer"+i]=function(e,n){return"number"!=typeof e?r["outer"+i].call(this,e):this.each((function(){t(this).css(o,g(this,e,!0,n)+"px")}))}})),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(t.fn.removeData=(o=t.fn.removeData,function(e){return arguments.length?o.call(this,t.camelCase(e)):o.call(this)})),t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),t.fn.extend({focus:(g=t.fn.focus,function(e,i){return"number"==typeof e?this.each((function(){var n=this;setTimeout((function(){t(n).focus(),i&&i.call(n)}),e)})):g.apply(this,arguments)}),disableSelection:(r="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.bind(r+".ui-disableSelection",(function(t){t.preventDefault()}))}),enableSelection:function(){return this.unbind(".ui-disableSelection")},zIndex:function(e){if(void 0!==e)return this.css("zIndex",e);if(this.length)for(var i,n,o=t(this[0]);o.length&&o[0]!==document;){if(("absolute"===(i=o.css("position"))||"relative"===i||"fixed"===i)&&(n=parseInt(o.css("zIndex"),10),!isNaN(n)&&0!==n))return n;o=o.parent()}return 0}}),t.ui.plugin={add:function(e,i,n){var o,r=t.ui[e].prototype;for(o in n)r.plugins[o]=r.plugins[o]||[],r.plugins[o].push([i,n[o]])},call:function(t,e,i,n){var o,r=t.plugins[e];if(r&&(n||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(o=0;o<r.length;o++)t.options[r[o][0]]&&r[o][1].apply(t.element,i)}};
/*!
 * jQuery UI Widget 1.11.1
 * http://jqueryui.com
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/jQuery.widget/
 */
var s=0,a=Array.prototype.slice;t.cleanData=function(e){return function(i){var n,o,r;for(r=0;null!=(o=i[r]);r++)try{(n=t._data(o,"events"))&&n.remove&&t(o).triggerHandler("remove")}catch(t){}e(i)}}(t.cleanData),t.widget=function(e,i,n){var o,r,g,s,a={},A=e.split(".")[0];return e=e.split(".")[1],o=A+"-"+e,n||(n=i,i=t.Widget),t.expr[":"][o.toLowerCase()]=function(e){return!!t.data(e,o)},t[A]=t[A]||{},r=t[A][e],g=t[A][e]=function(t,e){if(!this._createWidget)return new g(t,e);arguments.length&&this._createWidget(t,e)},t.extend(g,r,{version:n.version,_proto:t.extend({},n),_childConstructors:[]}),(s=new i).options=t.widget.extend({},s.options),t.each(n,(function(e,n){var o,r;t.isFunction(n)?a[e]=(o=function(){return i.prototype[e].apply(this,arguments)},r=function(t){return i.prototype[e].apply(this,t)},function(){var t,e=this._super,i=this._superApply;return this._super=o,this._superApply=r,t=n.apply(this,arguments),this._super=e,this._superApply=i,t}):a[e]=n})),g.prototype=t.widget.extend(s,{widgetEventPrefix:r&&s.widgetEventPrefix||e},a,{constructor:g,namespace:A,widgetName:e,widgetFullName:o}),r?(t.each(r._childConstructors,(function(e,i){var n=i.prototype;t.widget(n.namespace+"."+n.widgetName,g,i._proto)})),delete r._childConstructors):i._childConstructors.push(g),t.widget.bridge(e,g),g},t.widget.extend=function(e){for(var i,n,o=a.call(arguments,1),r=0,g=o.length;r<g;r++)for(i in o[r])n=o[r][i],o[r].hasOwnProperty(i)&&void 0!==n&&(t.isPlainObject(n)?e[i]=t.isPlainObject(e[i])?t.widget.extend({},e[i],n):t.widget.extend({},n):e[i]=n);return e},t.widget.bridge=function(e,i){var n=i.prototype.widgetFullName||e;t.fn[e]=function(o){var r="string"==typeof o,g=a.call(arguments,1),s=this;return o=!r&&g.length?t.widget.extend.apply(null,[o].concat(g)):o,r?this.each((function(){var i,r=t.data(this,n);return"instance"===o?(s=r,!1):r?t.isFunction(r[o])&&"_"!==o.charAt(0)?(i=r[o].apply(r,g))!==r&&void 0!==i?(s=i&&i.jquery?s.pushStack(i.get()):i,!1):void 0:t.error("no such method '"+o+"' for "+e+" widget instance"):t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+o+"'")})):this.each((function(){var e=t.data(this,n);e?(e.option(o||{}),e._init&&e._init()):t.data(this,n,new i(o,this))})),s}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(e,i){i=t(i||this.defaultElement||this)[0],this.element=t(i),this.uuid=s++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this.bindings=t(),this.hoverable=t(),this.focusable=t(),i!==this&&(t.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===i&&this.destroy()}}),this.document=t(i.style?i.ownerDocument:i.document||i),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:t.noop,_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetFullName).removeData(t.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:t.noop,widget:function(){return this.element},option:function(e,i){var n,o,r,g=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(g={},n=e.split("."),e=n.shift(),n.length){for(o=g[e]=t.widget.extend({},this.options[e]),r=0;r<n.length-1;r++)o[n[r]]=o[n[r]]||{},o=o[n[r]];if(e=n.pop(),1===arguments.length)return void 0===o[e]?null:o[e];o[e]=i}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];g[e]=i}return this._setOptions(g),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return this.options[t]=e,"disabled"===t&&(this.widget().toggleClass(this.widgetFullName+"-disabled",!!e),e&&(this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus"))),this},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_on:function(e,i,n){var o,r=this;"boolean"!=typeof e&&(n=i,i=e,e=!1),n?(i=o=t(i),this.bindings=this.bindings.add(i)):(n=i,i=this.element,o=this.widget()),t.each(n,(function(n,g){function s(){if(e||!0!==r.options.disabled&&!t(this).hasClass("ui-state-disabled"))return("string"==typeof g?r[g]:g).apply(r,arguments)}"string"!=typeof g&&(s.guid=g.guid=g.guid||s.guid||t.guid++);var a=n.match(/^([\w:-]*)\s*(.*)$/),A=a[1]+r.eventNamespace,C=a[2];C?o.delegate(C,A,s):i.bind(A,s)}))},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.unbind(e).undelegate(e)},_delay:function(t,e){var i=this;return setTimeout((function(){return("string"==typeof t?i[t]:t).apply(i,arguments)}),e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){t(e.currentTarget).addClass("ui-state-hover")},mouseleave:function(e){t(e.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){t(e.currentTarget).addClass("ui-state-focus")},focusout:function(e){t(e.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(e,i,n){var o,r,g=this.options[e];if(n=n||{},(i=t.Event(i)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],r=i.originalEvent)for(o in r)o in i||(i[o]=r[o]);return this.element.trigger(i,n),!(t.isFunction(g)&&!1===g.apply(this.element[0],[i].concat(n))||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},(function(e,i){t.Widget.prototype["_"+e]=function(n,o,r){"string"==typeof o&&(o={effect:o});var g,s=o?!0===o||"number"==typeof o?i:o.effect||i:e;"number"==typeof(o=o||{})&&(o={duration:o}),g=!t.isEmptyObject(o),o.complete=r,o.delay&&n.delay(o.delay),g&&t.effects&&t.effects.effect[s]?n[e](o):s!==e&&n[s]?n[s](o.duration,o.easing,r):n.queue((function(i){t(this)[e](),r&&r.call(n[0]),i()}))}})),t.widget;var A=!1;
/*!
 * jQuery UI Mouse 1.11.1
 * http://jqueryui.com
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/mouse/
 */t(document).mouseup((function(){A=!1})),t.widget("ui.mouse",{version:"1.11.1",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.bind("mousedown."+this.widgetName,(function(t){return e._mouseDown(t)})).bind("click."+this.widgetName,(function(i){if(!0===t.data(i.target,e.widgetName+".preventClickEvent"))return t.removeData(i.target,e.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1})),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!A){this._mouseStarted&&this._mouseUp(e),this._mouseDownEvent=e;var i=this,n=1===e.which,o=!("string"!=typeof this.options.cancel||!e.target.nodeName)&&t(e.target).closest(this.options.cancel).length;return!(n&&!o&&this._mouseCapture(e)&&(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout((function(){i.mouseDelayMet=!0}),this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(e),!this._mouseStarted)?(e.preventDefault(),0):(!0===t.data(e.target,this.widgetName+".preventClickEvent")&&t.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return i._mouseMove(t)},this._mouseUpDelegate=function(t){return i._mouseUp(t)},this.document.bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),A=!0,0)))}},_mouseMove:function(e){return t.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button?this._mouseUp(e):e.which?this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted):this._mouseUp(e)},_mouseUp:function(e){return this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&t.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),A=!1,!1},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),
/*!
 * jQuery UI Position 1.11.1
 * http://jqueryui.com
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/position/
 */
function(){t.ui=t.ui||{};var e,i,n=Math.max,o=Math.abs,r=Math.round,g=/left|center|right/,s=/top|center|bottom/,a=/[\+\-]\d+(\.[\d]+)?%?/,A=/^\w+/,C=/%$/,I=t.fn.position;function l(t,e,i){return[parseFloat(t[0])*(C.test(t[0])?e/100:1),parseFloat(t[1])*(C.test(t[1])?i/100:1)]}function c(e,i){return parseInt(t.css(e,i),10)||0}function h(e){var i=e[0];return 9===i.nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:t.isWindow(i)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}t.position={scrollbarWidth:function(){if(void 0!==e)return e;var i,n,o=t("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),r=o.children()[0];return t("body").append(o),i=r.offsetWidth,o.css("overflow","scroll"),i===(n=r.offsetWidth)&&(n=o[0].clientWidth),o.remove(),e=i-n},getScrollInfo:function(e){var i=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),n=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),o="scroll"===i||"auto"===i&&e.width<e.element[0].scrollWidth;return{width:"scroll"===n||"auto"===n&&e.height<e.element[0].scrollHeight?t.position.scrollbarWidth():0,height:o?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var i=t(e||window),n=t.isWindow(i[0]),o=!!i[0]&&9===i[0].nodeType;return{element:i,isWindow:n,isDocument:o,offset:i.offset()||{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:n||o?i.width():i.outerWidth(),height:n||o?i.height():i.outerHeight()}}},t.fn.position=function(e){if(!e||!e.of)return I.apply(this,arguments);e=t.extend({},e);var C,u,d,p,f,v,m=t(e.of),y=t.position.getWithinInfo(e.within),b=t.position.getScrollInfo(y),w=(e.collision||"flip").split(" "),x={};return v=h(m),m[0].preventDefault&&(e.at="left top"),u=v.width,d=v.height,p=v.offset,f=t.extend({},p),t.each(["my","at"],(function(){var t,i,n=(e[this]||"").split(" ");1===n.length&&(n=g.test(n[0])?n.concat(["center"]):s.test(n[0])?["center"].concat(n):["center","center"]),n[0]=g.test(n[0])?n[0]:"center",n[1]=s.test(n[1])?n[1]:"center",t=a.exec(n[0]),i=a.exec(n[1]),x[this]=[t?t[0]:0,i?i[0]:0],e[this]=[A.exec(n[0])[0],A.exec(n[1])[0]]})),1===w.length&&(w[1]=w[0]),"right"===e.at[0]?f.left+=u:"center"===e.at[0]&&(f.left+=u/2),"bottom"===e.at[1]?f.top+=d:"center"===e.at[1]&&(f.top+=d/2),C=l(x.at,u,d),f.left+=C[0],f.top+=C[1],this.each((function(){var g,s,a=t(this),A=a.outerWidth(),I=a.outerHeight(),h=c(this,"marginLeft"),v=c(this,"marginTop"),k=A+h+c(this,"marginRight")+b.width,_=I+v+c(this,"marginBottom")+b.height,D=t.extend({},f),O=l(x.my,a.outerWidth(),a.outerHeight());"right"===e.my[0]?D.left-=A:"center"===e.my[0]&&(D.left-=A/2),"bottom"===e.my[1]?D.top-=I:"center"===e.my[1]&&(D.top-=I/2),D.left+=O[0],D.top+=O[1],i||(D.left=r(D.left),D.top=r(D.top)),g={marginLeft:h,marginTop:v},t.each(["left","top"],(function(i,n){t.ui.position[w[i]]&&t.ui.position[w[i]][n](D,{targetWidth:u,targetHeight:d,elemWidth:A,elemHeight:I,collisionPosition:g,collisionWidth:k,collisionHeight:_,offset:[C[0]+O[0],C[1]+O[1]],my:e.my,at:e.at,within:y,elem:a})})),e.using&&(s=function(t){var i=p.left-D.left,r=i+u-A,g=p.top-D.top,s=g+d-I,C={target:{element:m,left:p.left,top:p.top,width:u,height:d},element:{element:a,left:D.left,top:D.top,width:A,height:I},horizontal:r<0?"left":i>0?"right":"center",vertical:s<0?"top":g>0?"bottom":"middle"};u<A&&o(i+r)<u&&(C.horizontal="center"),d<I&&o(g+s)<d&&(C.vertical="middle"),n(o(i),o(r))>n(o(g),o(s))?C.important="horizontal":C.important="vertical",e.using.call(this,t,C)}),a.offset(t.extend(D,{using:s}))}))},t.ui.position={fit:{left:function(t,e){var i,o=e.within,r=o.isWindow?o.scrollLeft:o.offset.left,g=o.width,s=t.left-e.collisionPosition.marginLeft,a=r-s,A=s+e.collisionWidth-g-r;e.collisionWidth>g?a>0&&A<=0?(i=t.left+a+e.collisionWidth-g-r,t.left+=a-i):t.left=A>0&&a<=0?r:a>A?r+g-e.collisionWidth:r:a>0?t.left+=a:A>0?t.left-=A:t.left=n(t.left-s,t.left)},top:function(t,e){var i,o=e.within,r=o.isWindow?o.scrollTop:o.offset.top,g=e.within.height,s=t.top-e.collisionPosition.marginTop,a=r-s,A=s+e.collisionHeight-g-r;e.collisionHeight>g?a>0&&A<=0?(i=t.top+a+e.collisionHeight-g-r,t.top+=a-i):t.top=A>0&&a<=0?r:a>A?r+g-e.collisionHeight:r:a>0?t.top+=a:A>0?t.top-=A:t.top=n(t.top-s,t.top)}},flip:{left:function(t,e){var i,n,r=e.within,g=r.offset.left+r.scrollLeft,s=r.width,a=r.isWindow?r.scrollLeft:r.offset.left,A=t.left-e.collisionPosition.marginLeft,C=A-a,I=A+e.collisionWidth-s-a,l="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,c="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,h=-2*e.offset[0];C<0?((i=t.left+l+c+h+e.collisionWidth-s-g)<0||i<o(C))&&(t.left+=l+c+h):I>0&&((n=t.left-e.collisionPosition.marginLeft+l+c+h-a)>0||o(n)<I)&&(t.left+=l+c+h)},top:function(t,e){var i,n,r=e.within,g=r.offset.top+r.scrollTop,s=r.height,a=r.isWindow?r.scrollTop:r.offset.top,A=t.top-e.collisionPosition.marginTop,C=A-a,I=A+e.collisionHeight-s-a,l="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,c="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,h=-2*e.offset[1];C<0?(n=t.top+l+c+h+e.collisionHeight-s-g,t.top+l+c+h>C&&(n<0||n<o(C))&&(t.top+=l+c+h)):I>0&&(i=t.top-e.collisionPosition.marginTop+l+c+h-a,t.top+l+c+h>I&&(i>0||o(i)<I)&&(t.top+=l+c+h))}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}},function(){var e,n,o,r,g,s=document.getElementsByTagName("body")[0],a=document.createElement("div");for(g in e=document.createElement(s?"div":"body"),o={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},s&&t.extend(o,{position:"absolute",left:"-1000px",top:"-1000px"}),o)e.style[g]=o[g];e.appendChild(a),(n=s||document.documentElement).insertBefore(e,n.firstChild),a.style.cssText="position: absolute; left: 10.7432222px;",r=t(a).offset().left,i=r>10&&r<11,e.innerHTML="",n.removeChild(e)}()}(),t.ui.position,t.widget("ui.accordion",{version:"1.11.1",options:{active:0,animate:{},collapsible:!1,event:"click",header:"> li > :first-child,> :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var e=this.options;this.prevShow=this.prevHide=t(),this.element.addClass("ui-accordion ui-widget ui-helper-reset").attr("role","tablist"),e.collapsible||!1!==e.active&&null!=e.active||(e.active=0),this._processPanels(),e.active<0&&(e.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():t()}},_createIcons:function(){var e=this.options.icons;e&&(t("<span>").addClass("ui-accordion-header-icon ui-icon "+e.header).prependTo(this.headers),this.active.children(".ui-accordion-header-icon").removeClass(e.header).addClass(e.activeHeader),this.headers.addClass("ui-accordion-icons"))},_destroyIcons:function(){this.headers.removeClass("ui-accordion-icons").children(".ui-accordion-header-icon").remove()},_destroy:function(){var t;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role"),this.headers.removeClass("ui-accordion-header ui-accordion-header-active ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-selected").removeAttr("aria-controls").removeAttr("tabIndex").removeUniqueId(),this._destroyIcons(),t=this.headers.next().removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled").css("display","").removeAttr("role").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&t.css("height","")},_setOption:function(t,e){"active"!==t?("event"===t&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(e)),this._super(t,e),"collapsible"!==t||e||!1!==this.options.active||this._activate(0),"icons"===t&&(this._destroyIcons(),e&&this._createIcons()),"disabled"===t&&(this.element.toggleClass("ui-state-disabled",!!e).attr("aria-disabled",e),this.headers.add(this.headers.next()).toggleClass("ui-state-disabled",!!e))):this._activate(e)},_keydown:function(e){if(!e.altKey&&!e.ctrlKey){var i=t.ui.keyCode,n=this.headers.length,o=this.headers.index(e.target),r=!1;switch(e.keyCode){case i.RIGHT:case i.DOWN:r=this.headers[(o+1)%n];break;case i.LEFT:case i.UP:r=this.headers[(o-1+n)%n];break;case i.SPACE:case i.ENTER:this._eventHandler(e);break;case i.HOME:r=this.headers[0];break;case i.END:r=this.headers[n-1]}r&&(t(e.target).attr("tabIndex",-1),t(r).attr("tabIndex",0),r.focus(),e.preventDefault())}},_panelKeyDown:function(e){e.keyCode===t.ui.keyCode.UP&&e.ctrlKey&&t(e.currentTarget).prev().focus()},refresh:function(){var e=this.options;this._processPanels(),!1===e.active&&!0===e.collapsible||!this.headers.length?(e.active=!1,this.active=t()):!1===e.active?this._activate(0):this.active.length&&!t.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(e.active=!1,this.active=t()):this._activate(Math.max(0,e.active-1)):e.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){this.headers=this.element.find(this.options.header).addClass("ui-accordion-header ui-state-default ui-corner-all"),this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").filter(":not(.ui-accordion-content-active)").hide()},_refresh:function(){var e,i=this.options,n=i.heightStyle,o=this.element.parent();this.active=this._findActive(i.active).addClass("ui-accordion-header-active ui-state-active ui-corner-top").removeClass("ui-corner-all"),this.active.next().addClass("ui-accordion-content-active").show(),this.headers.attr("role","tab").each((function(){var e=t(this),i=e.uniqueId().attr("id"),n=e.next(),o=n.uniqueId().attr("id");e.attr("aria-controls",o),n.attr("aria-labelledby",i)})).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(i.event),"fill"===n?(e=o.height(),this.element.siblings(":visible").each((function(){var i=t(this),n=i.css("position");"absolute"!==n&&"fixed"!==n&&(e-=i.outerHeight(!0))})),this.headers.each((function(){e-=t(this).outerHeight(!0)})),this.headers.next().each((function(){t(this).height(Math.max(0,e-t(this).innerHeight()+t(this).height()))})).css("overflow","auto")):"auto"===n&&(e=0,this.headers.next().each((function(){e=Math.max(e,t(this).css("height","").height())})).height(e))},_activate:function(e){var i=this._findActive(e)[0];i!==this.active[0]&&(i=i||this.active[0],this._eventHandler({target:i,currentTarget:i,preventDefault:t.noop}))},_findActive:function(e){return"number"==typeof e?this.headers.eq(e):t()},_setupEvents:function(e){var i={keydown:"_keydown"};e&&t.each(e.split(" "),(function(t,e){i[e]="_eventHandler"})),this._off(this.headers.add(this.headers.next())),this._on(this.headers,i),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(e){var i=this.options,n=this.active,o=t(e.currentTarget),r=o[0]===n[0],g=r&&i.collapsible,s=g?t():o.next(),a=n.next(),A={oldHeader:n,oldPanel:a,newHeader:g?t():o,newPanel:s};e.preventDefault(),r&&!i.collapsible||!1===this._trigger("beforeActivate",e,A)||(i.active=!g&&this.headers.index(o),this.active=r?t():o,this._toggle(A),n.removeClass("ui-accordion-header-active ui-state-active"),i.icons&&n.children(".ui-accordion-header-icon").removeClass(i.icons.activeHeader).addClass(i.icons.header),r||(o.removeClass("ui-corner-all").addClass("ui-accordion-header-active ui-state-active ui-corner-top"),i.icons&&o.children(".ui-accordion-header-icon").removeClass(i.icons.header).addClass(i.icons.activeHeader),o.next().addClass("ui-accordion-content-active")))},_toggle:function(e){var i=e.newPanel,n=this.prevShow.length?this.prevShow:e.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=i,this.prevHide=n,this.options.animate?this._animate(i,n,e):(n.hide(),i.show(),this._toggleComplete(e)),n.attr({"aria-hidden":"true"}),n.prev().attr("aria-selected","false"),i.length&&n.length?n.prev().attr({tabIndex:-1,"aria-expanded":"false"}):i.length&&this.headers.filter((function(){return 0===t(this).attr("tabIndex")})).attr("tabIndex",-1),i.attr("aria-hidden","false").prev().attr({"aria-selected":"true",tabIndex:0,"aria-expanded":"true"})},_animate:function(t,e,i){var n,o,r,g=this,s=0,a=t.length&&(!e.length||t.index()<e.index()),A=this.options.animate||{},C=a&&A.down||A,I=function(){g._toggleComplete(i)};return"number"==typeof C&&(r=C),"string"==typeof C&&(o=C),o=o||C.easing||A.easing,r=r||C.duration||A.duration,e.length?t.length?(n=t.show().outerHeight(),e.animate(this.hideProps,{duration:r,easing:o,step:function(t,e){e.now=Math.round(t)}}),void t.hide().animate(this.showProps,{duration:r,easing:o,complete:I,step:function(t,i){i.now=Math.round(t),"height"!==i.prop?s+=i.now:"content"!==g.options.heightStyle&&(i.now=Math.round(n-e.outerHeight()-s),s=0)}})):e.animate(this.hideProps,r,o,I):t.animate(this.showProps,r,o,I)},_toggleComplete:function(t){var e=t.oldPanel;e.removeClass("ui-accordion-content-active").prev().removeClass("ui-corner-top").addClass("ui-corner-all"),e.length&&(e.parent()[0].className=e.parent()[0].className),this._trigger("activate",null,t)}}),t.widget("ui.menu",{version:"1.11.1",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},items:"> *",menus:"ul",position:{my:"left-1 top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}),this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item":function(t){t.preventDefault()},"click .ui-menu-item":function(e){var i=t(e.target);!this.mouseHandled&&i.not(".ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),i.has(".ui-menu").length?this.expand(e):!this.element.is(":focus")&&t(this.document[0].activeElement).closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(e){var i=t(e.currentTarget);i.siblings(".ui-state-active").removeClass("ui-state-active"),this.focus(e,i)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this.element.find(this.options.items).eq(0);e||this.focus(t,i)},blur:function(e){this._delay((function(){t.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(e)}))},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t),this.mouseHandled=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeClass("ui-menu ui-widget ui-widget-content ui-menu-icons ui-front").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show(),this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").removeUniqueId().removeClass("ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each((function(){var e=t(this);e.data("ui-menu-submenu-carat")&&e.remove()})),this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(e){var i,n,o,r,g,s=!0;function a(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}switch(e.keyCode){case t.ui.keyCode.PAGE_UP:this.previousPage(e);break;case t.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case t.ui.keyCode.HOME:this._move("first","first",e);break;case t.ui.keyCode.END:this._move("last","last",e);break;case t.ui.keyCode.UP:this.previous(e);break;case t.ui.keyCode.DOWN:this.next(e);break;case t.ui.keyCode.LEFT:this.collapse(e);break;case t.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case t.ui.keyCode.ENTER:case t.ui.keyCode.SPACE:this._activate(e);break;case t.ui.keyCode.ESCAPE:this.collapse(e);break;default:s=!1,n=this.previousFilter||"",o=String.fromCharCode(e.keyCode),r=!1,clearTimeout(this.filterTimer),o===n?r=!0:o=n+o,g=new RegExp("^"+a(o),"i"),i=this.activeMenu.find(this.options.items).filter((function(){return g.test(t(this).text())})),(i=r&&-1!==i.index(this.active.next())?this.active.nextAll(".ui-menu-item"):i).length||(o=String.fromCharCode(e.keyCode),g=new RegExp("^"+a(o),"i"),i=this.activeMenu.find(this.options.items).filter((function(){return g.test(t(this).text())}))),i.length?(this.focus(e,i),i.length>1?(this.previousFilter=o,this.filterTimer=this._delay((function(){delete this.previousFilter}),1e3)):delete this.previousFilter):delete this.previousFilter}s&&e.preventDefault()},_activate:function(t){this.active.is(".ui-state-disabled")||(this.active.is("[aria-haspopup='true']")?this.expand(t):this.select(t))},refresh:function(){var e,i=this,n=this.options.icons.submenu,o=this.element.find(this.options.menus);this.element.toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length),o.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-front").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each((function(){var e=t(this),i=e.parent(),o=t("<span>").addClass("ui-menu-icon ui-icon "+n).data("ui-menu-submenu-carat",!0);i.attr("aria-haspopup","true").prepend(o),e.attr("aria-labelledby",i.attr("id"))})),(e=o.add(this.element).find(this.options.items)).not(".ui-menu-item").each((function(){var e=t(this);i._isDivider(e)&&e.addClass("ui-widget-content ui-menu-divider")})),e.not(".ui-menu-item, .ui-menu-divider").addClass("ui-menu-item").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),e.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!t.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){"icons"===t&&this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(e.submenu),"disabled"===t&&this.element.toggleClass("ui-state-disabled",!!e).attr("aria-disabled",e),this._super(t,e)},focus:function(t,e){var i,n;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),n=this.active.addClass("ui-state-focus").removeClass("ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",n.attr("id")),this.active.parent().closest(".ui-menu-item").addClass("ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay((function(){this._close()}),this.delay),(i=e.children(".ui-menu")).length&&t&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(e){var i,n,o,r,g,s;this._hasScroll()&&(i=parseFloat(t.css(this.activeMenu[0],"borderTopWidth"))||0,n=parseFloat(t.css(this.activeMenu[0],"paddingTop"))||0,o=e.offset().top-this.activeMenu.offset().top-i-n,r=this.activeMenu.scrollTop(),g=this.activeMenu.height(),s=e.outerHeight(),o<0?this.activeMenu.scrollTop(r+o):o+s>g&&this.activeMenu.scrollTop(r+o-g+s))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this.active.removeClass("ui-state-focus"),this.active=null,this._trigger("blur",t,{item:this.active}))},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=this._delay((function(){this._close(),this._open(t)}),this.delay))},_open:function(e){var i=t.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(e,i){clearTimeout(this.timer),this.timer=this._delay((function(){var n=i?this.element:t(e&&e.target).closest(this.element.find(".ui-menu"));n.length||(n=this.element),this._close(n),this.blur(e),this.activeMenu=n}),this.delay)},_close:function(t){t||(t=this.active?this.active.parent():this.element),t.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find(".ui-state-active").not(".ui-state-focus").removeClass("ui-state-active")},_closeOnDocumentClick:function(e){return!t(e.target).closest(".ui-menu").length},_isDivider:function(t){return!/[^\-\u2014\u2013\s]/.test(t.text())},collapse:function(t){var e=this.active&&this.active.parent().closest(".ui-menu-item",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();e&&e.length&&(this._open(e.parent()),this._delay((function(){this.focus(t,e)})))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(t,e,i){var n;this.active&&(n="first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[t+"All"](".ui-menu-item").eq(0)),n&&n.length&&this.active||(n=this.activeMenu.find(this.options.items)[e]()),this.focus(i,n)},nextPage:function(e){var i,n,o;this.active?this.isLastItem()||(this._hasScroll()?(n=this.active.offset().top,o=this.element.height(),this.active.nextAll(".ui-menu-item").each((function(){return(i=t(this)).offset().top-n-o<0})),this.focus(e,i)):this.focus(e,this.activeMenu.find(this.options.items)[this.active?"last":"first"]())):this.next(e)},previousPage:function(e){var i,n,o;this.active?this.isFirstItem()||(this._hasScroll()?(n=this.active.offset().top,o=this.element.height(),this.active.prevAll(".ui-menu-item").each((function(){return(i=t(this)).offset().top-n+o>0})),this.focus(e,i)):this.focus(e,this.activeMenu.find(this.options.items).first())):this.next(e)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(e){this.active=this.active||t(e.target).closest(".ui-menu-item");var i={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,i)}}),
/*!
 * jQuery UI Autocomplete 1.11.1
 * http://jqueryui.com
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/autocomplete/
 */
t.widget("ui.autocomplete",{version:"1.11.1",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var e,i,n,o=this.element[0].nodeName.toLowerCase(),r="textarea"===o,g="input"===o;this.isMultiLine=!!r||!g&&this.element.prop("isContentEditable"),this.valueMethod=this.element[r||g?"val":"text"],this.isNewMenu=!0,this.element.addClass("ui-autocomplete-input").attr("autocomplete","off"),this._on(this.element,{keydown:function(o){if(this.element.prop("readOnly"))return e=!0,n=!0,void(i=!0);e=!1,n=!1,i=!1;var r=t.ui.keyCode;switch(o.keyCode){case r.PAGE_UP:e=!0,this._move("previousPage",o);break;case r.PAGE_DOWN:e=!0,this._move("nextPage",o);break;case r.UP:e=!0,this._keyEvent("previous",o);break;case r.DOWN:e=!0,this._keyEvent("next",o);break;case r.ENTER:this.menu.active&&(e=!0,o.preventDefault(),this.menu.select(o));break;case r.TAB:this.menu.active&&this.menu.select(o);break;case r.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(o),o.preventDefault());break;default:i=!0,this._searchTimeout(o)}},keypress:function(n){if(e)return e=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||n.preventDefault());if(!i){var o=t.ui.keyCode;switch(n.keyCode){case o.PAGE_UP:this._move("previousPage",n);break;case o.PAGE_DOWN:this._move("nextPage",n);break;case o.UP:this._keyEvent("previous",n);break;case o.DOWN:this._keyEvent("next",n)}}},input:function(t){if(n)return n=!1,void t.preventDefault();this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){this.cancelBlur?delete this.cancelBlur:(clearTimeout(this.searching),this.close(t),this._change(t))}}),this._initSource(),this.menu=t("<ul>").addClass("ui-autocomplete ui-front").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault(),this.cancelBlur=!0,this._delay((function(){delete this.cancelBlur}));var i=this.menu.element[0];t(e.target).closest(".ui-menu-item").length||this._delay((function(){var e=this;this.document.one("mousedown",(function(n){n.target===e.element[0]||n.target===i||t.contains(i,n.target)||e.close()}))}))},menufocus:function(e,i){var n,o;if(this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent&&/^mouse/.test(e.originalEvent.type)))return this.menu.blur(),void this.document.one("mousemove",(function(){t(e.target).trigger(e.originalEvent)}));o=i.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:o})&&e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(o.value),(n=i.item.attr("aria-label")||o.value)&&t.trim(n).length&&(this.liveRegion.children().hide(),t("<div>").text(n).appendTo(this.liveRegion))},menuselect:function(t,e){var i=e.item.data("ui-autocomplete-item"),n=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.focus(),this.previous=n,this._delay((function(){this.previous=n,this.selectedItem=i}))),!1!==this._trigger("select",t,{item:i})&&this._value(i.value),this.term=this._value(),this.close(t),this.selectedItem=i}}),this.liveRegion=t("<span>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).addClass("ui-helper-hidden-accessible").appendTo(this.document[0].body),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e&&e[0]||(e=this.element.closest(".ui-front")),e.length||(e=this.document[0].body),e},_initSource:function(){var e,i,n=this;t.isArray(this.options.source)?(e=this.options.source,this.source=function(i,n){n(t.ui.autocomplete.filter(e,i.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(e,o){n.xhr&&n.xhr.abort(),n.xhr=t.ajax({url:i,data:e,dataType:"json",success:function(t){o(t)},error:function(){o([])}})}):this.source=this.options.source},_searchTimeout:function(t){clearTimeout(this.searching),this.searching=this._delay((function(){var e=this.term===this._value(),i=this.menu.element.is(":visible"),n=t.altKey||t.ctrlKey||t.metaKey||t.shiftKey;e&&(!e||i||n)||(this.selectedItem=null,this.search(null,t))}),this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length<this.options.minLength?this.close(e):!1!==this._trigger("search",e)?this._search(t):void 0},_search:function(t){this.pending++,this.element.addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var e=++this.requestIndex;return t.proxy((function(t){e===this.requestIndex&&this.__response(t),this.pending--,this.pending||this.element.removeClass("ui-autocomplete-loading")}),this)},__response:function(t){t&&(t=this._normalize(t)),this._trigger("response",null,{content:t}),!this.options.disabled&&t&&t.length&&!this.cancelSearch?(this._suggest(t),this._trigger("open")):this._close()},close:function(t){this.cancelSearch=!0,this._close(t)},_close:function(t){this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",t))},_change:function(t){this.previous!==this._value()&&this._trigger("change",t,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:t.map(e,(function(e){return"string"==typeof e?{label:e,value:e}:t.extend({},e,{label:e.label||e.value,value:e.value||e.label})}))},_suggest:function(e){var i=this.menu.element.empty();this._renderMenu(i,e),this.isNewMenu=!0,this.menu.refresh(),i.show(),this._resizeMenu(),i.position(t.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next()},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(e,i){var n=this;t.each(i,(function(t,i){n._renderItemData(e,i)}))},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-autocomplete-item",e)},_renderItem:function(e,i){return t("<li>").text(i.label).appendTo(e)},_move:function(t,e){if(this.menu.element.is(":visible"))return this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[t](e);this.search(null,e)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(t,e),e.preventDefault())}}),t.extend(t.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,i){var n=new RegExp(t.ui.autocomplete.escapeRegex(i),"i");return t.grep(e,(function(t){return n.test(t.label||t.value||t)}))}}),t.widget("ui.autocomplete",t.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(t>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var i;this._superApply(arguments),this.options.disabled||this.cancelSearch||(i=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,this.liveRegion.children().hide(),t("<div>").text(i).appendTo(this.liveRegion))}}),t.ui.autocomplete;var C,I,l="ui-button ui-widget ui-state-default ui-corner-all",c="ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only",h=function(){var e=t(this);setTimeout((function(){e.find(":ui-button").button("refresh")}),1)},u=function(e){var i=e.name,n=e.form,o=t([]);return i&&(i=i.replace(/'/g,"\\'"),o=n?t(n).find("[name='"+i+"'][type=radio]"):t("[name='"+i+"'][type=radio]",e.ownerDocument).filter((function(){return!this.form}))),o};
/*!
 * jQuery UI Button 1.11.1
 * http://jqueryui.com
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/button/
 */function d(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},t.extend(this._defaults,this.regional[""]),this.regional.en=t.extend(!0,{},this.regional[""]),this.regional["en-US"]=t.extend(!0,{},this.regional.en),this.dpDiv=p(t("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function p(e){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.delegate(i,"mouseout",(function(){t(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).removeClass("ui-datepicker-next-hover")})).delegate(i,"mouseover",f)}function f(){t.datepicker._isDisabledDatepicker(I.inline?I.dpDiv.parent()[0]:I.input[0])||(t(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),t(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).addClass("ui-datepicker-next-hover"))}function v(e,i){for(var n in t.extend(e,i),i)null==i[n]&&(e[n]=i[n]);return e}t.widget("ui.button",{version:"1.11.1",defaultElement:"<button>",options:{disabled:null,text:!0,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset"+this.eventNamespace).bind("reset"+this.eventNamespace,h),"boolean"!=typeof this.options.disabled?this.options.disabled=!!this.element.prop("disabled"):this.element.prop("disabled",this.options.disabled),this._determineButtonType(),this.hasTitle=!!this.buttonElement.attr("title");var e=this,i=this.options,n="checkbox"===this.type||"radio"===this.type,o=n?"":"ui-state-active";null===i.label&&(i.label="input"===this.type?this.buttonElement.val():this.buttonElement.html()),this._hoverable(this.buttonElement),this.buttonElement.addClass(l).attr("role","button").bind("mouseenter"+this.eventNamespace,(function(){i.disabled||this===C&&t(this).addClass("ui-state-active")})).bind("mouseleave"+this.eventNamespace,(function(){i.disabled||t(this).removeClass(o)})).bind("click"+this.eventNamespace,(function(t){i.disabled&&(t.preventDefault(),t.stopImmediatePropagation())})),this._on({focus:function(){this.buttonElement.addClass("ui-state-focus")},blur:function(){this.buttonElement.removeClass("ui-state-focus")}}),n&&this.element.bind("change"+this.eventNamespace,(function(){e.refresh()})),"checkbox"===this.type?this.buttonElement.bind("click"+this.eventNamespace,(function(){if(i.disabled)return!1})):"radio"===this.type?this.buttonElement.bind("click"+this.eventNamespace,(function(){if(i.disabled)return!1;t(this).addClass("ui-state-active"),e.buttonElement.attr("aria-pressed","true");var n=e.element[0];u(n).not(n).map((function(){return t(this).button("widget")[0]})).removeClass("ui-state-active").attr("aria-pressed","false")})):(this.buttonElement.bind("mousedown"+this.eventNamespace,(function(){if(i.disabled)return!1;t(this).addClass("ui-state-active"),C=this,e.document.one("mouseup",(function(){C=null}))})).bind("mouseup"+this.eventNamespace,(function(){if(i.disabled)return!1;t(this).removeClass("ui-state-active")})).bind("keydown"+this.eventNamespace,(function(e){if(i.disabled)return!1;e.keyCode!==t.ui.keyCode.SPACE&&e.keyCode!==t.ui.keyCode.ENTER||t(this).addClass("ui-state-active")})).bind("keyup"+this.eventNamespace+" blur"+this.eventNamespace,(function(){t(this).removeClass("ui-state-active")})),this.buttonElement.is("a")&&this.buttonElement.keyup((function(e){e.keyCode===t.ui.keyCode.SPACE&&t(this).click()}))),this._setOption("disabled",i.disabled),this._resetButton()},_determineButtonType:function(){var t,e,i;this.element.is("[type=checkbox]")?this.type="checkbox":this.element.is("[type=radio]")?this.type="radio":this.element.is("input")?this.type="input":this.type="button","checkbox"===this.type||"radio"===this.type?(t=this.element.parents().last(),e="label[for='"+this.element.attr("id")+"']",this.buttonElement=t.find(e),this.buttonElement.length||(t=t.length?t.siblings():this.element.siblings(),this.buttonElement=t.filter(e),this.buttonElement.length||(this.buttonElement=t.find(e))),this.element.addClass("ui-helper-hidden-accessible"),(i=this.element.is(":checked"))&&this.buttonElement.addClass("ui-state-active"),this.buttonElement.prop("aria-pressed",i)):this.buttonElement=this.element},widget:function(){return this.buttonElement},_destroy:function(){this.element.removeClass("ui-helper-hidden-accessible"),this.buttonElement.removeClass(l+" ui-state-active "+c).removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html()),this.hasTitle||this.buttonElement.removeAttr("title")},_setOption:function(t,e){if(this._super(t,e),"disabled"===t)return this.widget().toggleClass("ui-state-disabled",!!e),this.element.prop("disabled",!!e),void(e&&("checkbox"===this.type||"radio"===this.type?this.buttonElement.removeClass("ui-state-focus"):this.buttonElement.removeClass("ui-state-focus ui-state-active")));this._resetButton()},refresh:function(){var e=this.element.is("input, button")?this.element.is(":disabled"):this.element.hasClass("ui-button-disabled");e!==this.options.disabled&&this._setOption("disabled",e),"radio"===this.type?u(this.element[0]).each((function(){t(this).is(":checked")?t(this).button("widget").addClass("ui-state-active").attr("aria-pressed","true"):t(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false")})):"checkbox"===this.type&&(this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed","true"):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed","false"))},_resetButton:function(){if("input"!==this.type){var e=this.buttonElement.removeClass(c),i=t("<span></span>",this.document[0]).addClass("ui-button-text").html(this.options.label).appendTo(e.empty()).text(),n=this.options.icons,o=n.primary&&n.secondary,r=[];n.primary||n.secondary?(this.options.text&&r.push("ui-button-text-icon"+(o?"s":n.primary?"-primary":"-secondary")),n.primary&&e.prepend("<span class='ui-button-icon-primary ui-icon "+n.primary+"'></span>"),n.secondary&&e.append("<span class='ui-button-icon-secondary ui-icon "+n.secondary+"'></span>"),this.options.text||(r.push(o?"ui-button-icons-only":"ui-button-icon-only"),this.hasTitle||e.attr("title",t.trim(i)))):r.push("ui-button-text-only"),e.addClass(r.join(" "))}else this.options.label&&this.element.val(this.options.label)}}),t.widget("ui.buttonset",{version:"1.11.1",options:{items:"button, input[type=button], input[type=submit], input[type=reset], input[type=checkbox], input[type=radio], a, :data(ui-button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(t,e){"disabled"===t&&this.buttons.button("option",t,e),this._super(t,e)},refresh:function(){var e="rtl"===this.element.css("direction"),i=this.element.find(this.options.items),n=i.filter(":ui-button");i.not(":ui-button").button(),n.button("refresh"),this.buttons=i.map((function(){return t(this).button("widget")[0]})).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(e?"ui-corner-right":"ui-corner-left").end().filter(":last").addClass(e?"ui-corner-left":"ui-corner-right").end().end()},_destroy:function(){this.element.removeClass("ui-buttonset"),this.buttons.map((function(){return t(this).button("widget")[0]})).removeClass("ui-corner-left ui-corner-right").end().button("destroy")}}),t.ui.button,
/*!
 * jQuery UI Datepicker 1.11.1
 * http://jqueryui.com
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/datepicker/
 */
t.extend(t.ui,{datepicker:{version:"1.11.1"}}),t.extend(d.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return v(this._defaults,t||{}),this},_attachDatepicker:function(e,i){var n,o,r;o="div"===(n=e.nodeName.toLowerCase())||"span"===n,e.id||(this.uuid+=1,e.id="dp"+this.uuid),(r=this._newInst(t(e),o)).settings=t.extend({},i||{}),"input"===n?this._connectDatepicker(e,r):o&&this._inlineDatepicker(e,r)},_newInst:function(e,i){return{id:e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:i?p(t("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(e,i){var n=t(e);i.append=t([]),i.trigger=t([]),n.hasClass(this.markerClassName)||(this._attachments(n,i),n.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp),this._autoSize(i),t.data(e,"datepicker",i),i.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,i){var n,o,r,g=this._get(i,"appendText"),s=this._get(i,"isRTL");i.append&&i.append.remove(),g&&(i.append=t("<span class='"+this._appendClass+"'>"+g+"</span>"),e[s?"before":"after"](i.append)),e.unbind("focus",this._showDatepicker),i.trigger&&i.trigger.remove(),"focus"!==(n=this._get(i,"showOn"))&&"both"!==n||e.focus(this._showDatepicker),"button"!==n&&"both"!==n||(o=this._get(i,"buttonText"),r=this._get(i,"buttonImage"),i.trigger=t(this._get(i,"buttonImageOnly")?t("<img/>").addClass(this._triggerClass).attr({src:r,alt:o,title:o}):t("<button type='button'></button>").addClass(this._triggerClass).html(r?t("<img/>").attr({src:r,alt:o,title:o}):o)),e[s?"before":"after"](i.trigger),i.trigger.click((function(){return t.datepicker._datepickerShowing&&t.datepicker._lastInput===e[0]?t.datepicker._hideDatepicker():t.datepicker._datepickerShowing&&t.datepicker._lastInput!==e[0]?(t.datepicker._hideDatepicker(),t.datepicker._showDatepicker(e[0])):t.datepicker._showDatepicker(e[0]),!1})))},_autoSize:function(t){if(this._get(t,"autoSize")&&!t.inline){var e,i,n,o,r=new Date(2009,11,20),g=this._get(t,"dateFormat");g.match(/[DM]/)&&(e=function(t){for(i=0,n=0,o=0;o<t.length;o++)t[o].length>i&&(i=t[o].length,n=o);return n},r.setMonth(e(this._get(t,g.match(/MM/)?"monthNames":"monthNamesShort"))),r.setDate(e(this._get(t,g.match(/DD/)?"dayNames":"dayNamesShort"))+20-r.getDay())),t.input.attr("size",this._formatDate(t,r).length)}},_inlineDatepicker:function(e,i){var n=t(e);n.hasClass(this.markerClassName)||(n.addClass(this.markerClassName).append(i.dpDiv),t.data(e,"datepicker",i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&&this._disableDatepicker(e),i.dpDiv.css("display","block"))},_dialogDatepicker:function(e,i,n,o,r){var g,s,a,A,C,I=this._dialogInst;return I||(this.uuid+=1,g="dp"+this.uuid,this._dialogInput=t("<input type='text' id='"+g+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.keydown(this._doKeyDown),t("body").append(this._dialogInput),(I=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},t.data(this._dialogInput[0],"datepicker",I)),v(I.settings,o||{}),i=i&&i.constructor===Date?this._formatDate(I,i):i,this._dialogInput.val(i),this._pos=r?r.length?r:[r.pageX,r.pageY]:null,this._pos||(s=document.documentElement.clientWidth,a=document.documentElement.clientHeight,A=document.documentElement.scrollLeft||document.body.scrollLeft,C=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[s/2-100+A,a/2-150+C]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),I.settings.onSelect=n,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),t.blockUI&&t.blockUI(this.dpDiv),t.data(this._dialogInput[0],"datepicker",I),this},_destroyDatepicker:function(e){var i,n=t(e),o=t.data(e,"datepicker");n.hasClass(this.markerClassName)&&(i=e.nodeName.toLowerCase(),t.removeData(e,"datepicker"),"input"===i?(o.append.remove(),o.trigger.remove(),n.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):"div"!==i&&"span"!==i||n.removeClass(this.markerClassName).empty())},_enableDatepicker:function(e){var i,n,o=t(e),r=t.data(e,"datepicker");o.hasClass(this.markerClassName)&&("input"===(i=e.nodeName.toLowerCase())?(e.disabled=!1,r.trigger.filter("button").each((function(){this.disabled=!1})).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==i&&"span"!==i||((n=o.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=t.map(this._disabledInputs,(function(t){return t===e?null:t})))},_disableDatepicker:function(e){var i,n,o=t(e),r=t.data(e,"datepicker");o.hasClass(this.markerClassName)&&("input"===(i=e.nodeName.toLowerCase())?(e.disabled=!0,r.trigger.filter("button").each((function(){this.disabled=!0})).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==i&&"span"!==i||((n=o.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=t.map(this._disabledInputs,(function(t){return t===e?null:t})),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(t){if(!t)return!1;for(var e=0;e<this._disabledInputs.length;e++)if(this._disabledInputs[e]===t)return!0;return!1},_getInst:function(e){try{return t.data(e,"datepicker")}catch(t){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(e,i,n){var o,r,g,s,a=this._getInst(e);if(2===arguments.length&&"string"==typeof i)return"defaults"===i?t.extend({},t.datepicker._defaults):a?"all"===i?t.extend({},a.settings):this._get(a,i):null;o=i||{},"string"==typeof i&&((o={})[i]=n),a&&(this._curInst===a&&this._hideDatepicker(),r=this._getDateDatepicker(e,!0),g=this._getMinMaxDate(a,"min"),s=this._getMinMaxDate(a,"max"),v(a.settings,o),null!==g&&void 0!==o.dateFormat&&void 0===o.minDate&&(a.settings.minDate=this._formatDate(a,g)),null!==s&&void 0!==o.dateFormat&&void 0===o.maxDate&&(a.settings.maxDate=this._formatDate(a,s)),"disabled"in o&&(o.disabled?this._disableDatepicker(e):this._enableDatepicker(e)),this._attachments(t(e),a),this._autoSize(a),this._setDate(a,r),this._updateAlternate(a),this._updateDatepicker(a))},_changeDatepicker:function(t,e,i){this._optionDatepicker(t,e,i)},_refreshDatepicker:function(t){var e=this._getInst(t);e&&this._updateDatepicker(e)},_setDateDatepicker:function(t,e){var i=this._getInst(t);i&&(this._setDate(i,e),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(t,e){var i=this._getInst(t);return i&&!i.inline&&this._setDateFromField(i,e),i?this._getDate(i):null},_doKeyDown:function(e){var i,n,o,r=t.datepicker._getInst(e.target),g=!0,s=r.dpDiv.is(".ui-datepicker-rtl");if(r._keyEvent=!0,t.datepicker._datepickerShowing)switch(e.keyCode){case 9:t.datepicker._hideDatepicker(),g=!1;break;case 13:return(o=t("td."+t.datepicker._dayOverClass+":not(."+t.datepicker._currentClass+")",r.dpDiv))[0]&&t.datepicker._selectDay(e.target,r.selectedMonth,r.selectedYear,o[0]),(i=t.datepicker._get(r,"onSelect"))?(n=t.datepicker._formatDate(r),i.apply(r.input?r.input[0]:null,[n,r])):t.datepicker._hideDatepicker(),!1;case 27:t.datepicker._hideDatepicker();break;case 33:t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(r,"stepBigMonths"):-t.datepicker._get(r,"stepMonths"),"M");break;case 34:t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(r,"stepBigMonths"):+t.datepicker._get(r,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&&t.datepicker._clearDate(e.target),g=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&&t.datepicker._gotoToday(e.target),g=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,s?1:-1,"D"),g=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(r,"stepBigMonths"):-t.datepicker._get(r,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,-7,"D"),g=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,s?-1:1,"D"),g=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(r,"stepBigMonths"):+t.datepicker._get(r,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,7,"D"),g=e.ctrlKey||e.metaKey;break;default:g=!1}else 36===e.keyCode&&e.ctrlKey?t.datepicker._showDatepicker(this):g=!1;g&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var i,n,o=t.datepicker._getInst(e.target);if(t.datepicker._get(o,"constrainInput"))return i=t.datepicker._possibleChars(t.datepicker._get(o,"dateFormat")),n=String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||n<" "||!i||i.indexOf(n)>-1},_doKeyUp:function(e){var i=t.datepicker._getInst(e.target);if(i.input.val()!==i.lastVal)try{t.datepicker.parseDate(t.datepicker._get(i,"dateFormat"),i.input?i.input.val():null,t.datepicker._getFormatConfig(i))&&(t.datepicker._setDateFromField(i),t.datepicker._updateAlternate(i),t.datepicker._updateDatepicker(i))}catch(t){}return!0},_showDatepicker:function(e){var i,n,o,r,g,s,a;"input"!==(e=e.target||e).nodeName.toLowerCase()&&(e=t("input",e.parentNode)[0]),t.datepicker._isDisabledDatepicker(e)||t.datepicker._lastInput===e||(i=t.datepicker._getInst(e),t.datepicker._curInst&&t.datepicker._curInst!==i&&(t.datepicker._curInst.dpDiv.stop(!0,!0),i&&t.datepicker._datepickerShowing&&t.datepicker._hideDatepicker(t.datepicker._curInst.input[0])),!1!==(o=(n=t.datepicker._get(i,"beforeShow"))?n.apply(e,[e,i]):{})&&(v(i.settings,o),i.lastVal=null,t.datepicker._lastInput=e,t.datepicker._setDateFromField(i),t.datepicker._inDialog&&(e.value=""),t.datepicker._pos||(t.datepicker._pos=t.datepicker._findPos(e),t.datepicker._pos[1]+=e.offsetHeight),r=!1,t(e).parents().each((function(){return!(r|="fixed"===t(this).css("position"))})),g={left:t.datepicker._pos[0],top:t.datepicker._pos[1]},t.datepicker._pos=null,i.dpDiv.empty(),i.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),t.datepicker._updateDatepicker(i),g=t.datepicker._checkOffset(i,g,r),i.dpDiv.css({position:t.datepicker._inDialog&&t.blockUI?"static":r?"fixed":"absolute",display:"none",left:g.left+"px",top:g.top+"px"}),i.inline||(s=t.datepicker._get(i,"showAnim"),a=t.datepicker._get(i,"duration"),i.dpDiv.css("z-index",function(t){for(var e,i;t.length&&t[0]!==document;){if(("absolute"===(e=t.css("position"))||"relative"===e||"fixed"===e)&&(i=parseInt(t.css("zIndex"),10),!isNaN(i)&&0!==i))return i;t=t.parent()}return 0}(t(e))+1),t.datepicker._datepickerShowing=!0,t.effects&&t.effects.effect[s]?i.dpDiv.show(s,t.datepicker._get(i,"showOptions"),a):i.dpDiv[s||"show"](s?a:null),t.datepicker._shouldFocusInput(i)&&i.input.focus(),t.datepicker._curInst=i)))},_updateDatepicker:function(e){this.maxRows=4,I=e,e.dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e);var i,n=this._getNumberOfMonths(e),o=n[1],r=e.dpDiv.find("."+this._dayOverClass+" a");r.length>0&&f.apply(r.get(0)),e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),o>1&&e.dpDiv.addClass("ui-datepicker-multi-"+o).css("width",17*o+"em"),e.dpDiv[(1!==n[0]||1!==n[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),e===t.datepicker._curInst&&t.datepicker._datepickerShowing&&t.datepicker._shouldFocusInput(e)&&e.input.focus(),e.yearshtml&&(i=e.yearshtml,setTimeout((function(){i===e.yearshtml&&e.yearshtml&&e.dpDiv.find("select.ui-datepicker-year:first").replaceWith(e.yearshtml),i=e.yearshtml=null}),0))},_shouldFocusInput:function(t){return t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&!t.input.is(":focus")},_checkOffset:function(e,i,n){var o=e.dpDiv.outerWidth(),r=e.dpDiv.outerHeight(),g=e.input?e.input.outerWidth():0,s=e.input?e.input.outerHeight():0,a=document.documentElement.clientWidth+(n?0:t(document).scrollLeft()),A=document.documentElement.clientHeight+(n?0:t(document).scrollTop());return i.left-=this._get(e,"isRTL")?o-g:0,i.left-=n&&i.left===e.input.offset().left?t(document).scrollLeft():0,i.top-=n&&i.top===e.input.offset().top+s?t(document).scrollTop():0,i.left-=Math.min(i.left,i.left+o>a&&a>o?Math.abs(i.left+o-a):0),i.top-=Math.min(i.top,i.top+r>A&&A>r?Math.abs(r+s):0),i},_findPos:function(e){for(var i,n=this._getInst(e),o=this._get(n,"isRTL");e&&("hidden"===e.type||1!==e.nodeType||t.expr.filters.hidden(e));)e=e[o?"previousSibling":"nextSibling"];return[(i=t(e).offset()).left,i.top]},_hideDatepicker:function(e){var i,n,o,r,g=this._curInst;!g||e&&g!==t.data(e,"datepicker")||this._datepickerShowing&&(i=this._get(g,"showAnim"),n=this._get(g,"duration"),o=function(){t.datepicker._tidyDialog(g)},t.effects&&(t.effects.effect[i]||t.effects[i])?g.dpDiv.hide(i,t.datepicker._get(g,"showOptions"),n,o):g.dpDiv["slideDown"===i?"slideUp":"fadeIn"===i?"fadeOut":"hide"](i?n:null,o),i||o(),this._datepickerShowing=!1,(r=this._get(g,"onClose"))&&r.apply(g.input?g.input[0]:null,[g.input?g.input.val():"",g]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),t.blockUI&&(t.unblockUI(),t("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(e){if(t.datepicker._curInst){var i=t(e.target),n=t.datepicker._getInst(i[0]);(i[0].id===t.datepicker._mainDivId||0!==i.parents("#"+t.datepicker._mainDivId).length||i.hasClass(t.datepicker.markerClassName)||i.closest("."+t.datepicker._triggerClass).length||!t.datepicker._datepickerShowing||t.datepicker._inDialog&&t.blockUI)&&(!i.hasClass(t.datepicker.markerClassName)||t.datepicker._curInst===n)||t.datepicker._hideDatepicker()}},_adjustDate:function(e,i,n){var o=t(e),r=this._getInst(o[0]);this._isDisabledDatepicker(o[0])||(this._adjustInstDate(r,i+("M"===n?this._get(r,"showCurrentAtPos"):0),n),this._updateDatepicker(r))},_gotoToday:function(e){var i,n=t(e),o=this._getInst(n[0]);this._get(o,"gotoCurrent")&&o.currentDay?(o.selectedDay=o.currentDay,o.drawMonth=o.selectedMonth=o.currentMonth,o.drawYear=o.selectedYear=o.currentYear):(i=new Date,o.selectedDay=i.getDate(),o.drawMonth=o.selectedMonth=i.getMonth(),o.drawYear=o.selectedYear=i.getFullYear()),this._notifyChange(o),this._adjustDate(n)},_selectMonthYear:function(e,i,n){var o=t(e),r=this._getInst(o[0]);r["selected"+("M"===n?"Month":"Year")]=r["draw"+("M"===n?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10),this._notifyChange(r),this._adjustDate(o)},_selectDay:function(e,i,n,o){var r,g=t(e);t(o).hasClass(this._unselectableClass)||this._isDisabledDatepicker(g[0])||((r=this._getInst(g[0])).selectedDay=r.currentDay=t("a",o).html(),r.selectedMonth=r.currentMonth=i,r.selectedYear=r.currentYear=n,this._selectDate(e,this._formatDate(r,r.currentDay,r.currentMonth,r.currentYear)))},_clearDate:function(e){var i=t(e);this._selectDate(i,"")},_selectDate:function(e,i){var n,o=t(e),r=this._getInst(o[0]);i=null!=i?i:this._formatDate(r),r.input&&r.input.val(i),this._updateAlternate(r),(n=this._get(r,"onSelect"))?n.apply(r.input?r.input[0]:null,[i,r]):r.input&&r.input.trigger("change"),r.inline?this._updateDatepicker(r):(this._hideDatepicker(),this._lastInput=r.input[0],"object"!=typeof r.input[0]&&r.input.focus(),this._lastInput=null)},_updateAlternate:function(e){var i,n,o,r=this._get(e,"altField");r&&(i=this._get(e,"altFormat")||this._get(e,"dateFormat"),n=this._getDate(e),o=this.formatDate(i,n,this._getFormatConfig(e)),t(r).each((function(){t(this).val(o)})))},noWeekends:function(t){var e=t.getDay();return[e>0&&e<6,""]},iso8601Week:function(t){var e,i=new Date(t.getTime());return i.setDate(i.getDate()+4-(i.getDay()||7)),e=i.getTime(),i.setMonth(0),i.setDate(1),Math.floor(Math.round((e-i)/864e5)/7)+1},parseDate:function(e,i,n){if(null==e||null==i)throw"Invalid arguments";if(""===(i="object"==typeof i?i.toString():i+""))return null;var o,r,g,s,a=0,A=(n?n.shortYearCutoff:null)||this._defaults.shortYearCutoff,C="string"!=typeof A?A:(new Date).getFullYear()%100+parseInt(A,10),I=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,l=(n?n.dayNames:null)||this._defaults.dayNames,c=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,h=(n?n.monthNames:null)||this._defaults.monthNames,u=-1,d=-1,p=-1,f=-1,v=!1,m=function(t){var i=o+1<e.length&&e.charAt(o+1)===t;return i&&o++,i},y=function(t){var e=m(t),n="@"===t?14:"!"===t?20:"y"===t&&e?4:"o"===t?3:2,o=new RegExp("^\\d{"+("y"===t?n:1)+","+n+"}"),r=i.substring(a).match(o);if(!r)throw"Missing number at position "+a;return a+=r[0].length,parseInt(r[0],10)},b=function(e,n,o){var r=-1,g=t.map(m(e)?o:n,(function(t,e){return[[e,t]]})).sort((function(t,e){return-(t[1].length-e[1].length)}));if(t.each(g,(function(t,e){var n=e[1];if(i.substr(a,n.length).toLowerCase()===n.toLowerCase())return r=e[0],a+=n.length,!1})),-1!==r)return r+1;throw"Unknown name at position "+a},w=function(){if(i.charAt(a)!==e.charAt(o))throw"Unexpected literal at position "+a;a++};for(o=0;o<e.length;o++)if(v)"'"!==e.charAt(o)||m("'")?w():v=!1;else switch(e.charAt(o)){case"d":p=y("d");break;case"D":b("D",I,l);break;case"o":f=y("o");break;case"m":d=y("m");break;case"M":d=b("M",c,h);break;case"y":u=y("y");break;case"@":u=(s=new Date(y("@"))).getFullYear(),d=s.getMonth()+1,p=s.getDate();break;case"!":u=(s=new Date((y("!")-this._ticksTo1970)/1e4)).getFullYear(),d=s.getMonth()+1,p=s.getDate();break;case"'":m("'")?w():v=!0;break;default:w()}if(a<i.length&&(g=i.substr(a),!/^\s+/.test(g)))throw"Extra/unparsed characters found in date: "+g;if(-1===u?u=(new Date).getFullYear():u<100&&(u+=(new Date).getFullYear()-(new Date).getFullYear()%100+(u<=C?0:-100)),f>-1)for(d=1,p=f;!(p<=(r=this._getDaysInMonth(u,d-1)));)d++,p-=r;if((s=this._daylightSavingAdjust(new Date(u,d-1,p))).getFullYear()!==u||s.getMonth()+1!==d||s.getDate()!==p)throw"Invalid date";return s},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(t,e,i){if(!e)return"";var n,o=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,r=(i?i.dayNames:null)||this._defaults.dayNames,g=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,s=(i?i.monthNames:null)||this._defaults.monthNames,a=function(e){var i=n+1<t.length&&t.charAt(n+1)===e;return i&&n++,i},A=function(t,e,i){var n=""+e;if(a(t))for(;n.length<i;)n="0"+n;return n},C=function(t,e,i,n){return a(t)?n[e]:i[e]},I="",l=!1;if(e)for(n=0;n<t.length;n++)if(l)"'"!==t.charAt(n)||a("'")?I+=t.charAt(n):l=!1;else switch(t.charAt(n)){case"d":I+=A("d",e.getDate(),2);break;case"D":I+=C("D",e.getDay(),o,r);break;case"o":I+=A("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":I+=A("m",e.getMonth()+1,2);break;case"M":I+=C("M",e.getMonth(),g,s);break;case"y":I+=a("y")?e.getFullYear():(e.getYear()%100<10?"0":"")+e.getYear()%100;break;case"@":I+=e.getTime();break;case"!":I+=1e4*e.getTime()+this._ticksTo1970;break;case"'":a("'")?I+="'":l=!0;break;default:I+=t.charAt(n)}return I},_possibleChars:function(t){var e,i="",n=!1,o=function(i){var n=e+1<t.length&&t.charAt(e+1)===i;return n&&e++,n};for(e=0;e<t.length;e++)if(n)"'"!==t.charAt(e)||o("'")?i+=t.charAt(e):n=!1;else switch(t.charAt(e)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":o("'")?i+="'":n=!0;break;default:i+=t.charAt(e)}return i},_get:function(t,e){return void 0!==t.settings[e]?t.settings[e]:this._defaults[e]},_setDateFromField:function(t,e){if(t.input.val()!==t.lastVal){var i=this._get(t,"dateFormat"),n=t.lastVal=t.input?t.input.val():null,o=this._getDefaultDate(t),r=o,g=this._getFormatConfig(t);try{r=this.parseDate(i,n,g)||o}catch(t){n=e?"":n}t.selectedDay=r.getDate(),t.drawMonth=t.selectedMonth=r.getMonth(),t.drawYear=t.selectedYear=r.getFullYear(),t.currentDay=n?r.getDate():0,t.currentMonth=n?r.getMonth():0,t.currentYear=n?r.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(e,i,n){var o=null==i||""===i?n:"string"==typeof i?function(i){try{return t.datepicker.parseDate(t.datepicker._get(e,"dateFormat"),i,t.datepicker._getFormatConfig(e))}catch(t){}for(var n=(i.toLowerCase().match(/^c/)?t.datepicker._getDate(e):null)||new Date,o=n.getFullYear(),r=n.getMonth(),g=n.getDate(),s=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,a=s.exec(i);a;){switch(a[2]||"d"){case"d":case"D":g+=parseInt(a[1],10);break;case"w":case"W":g+=7*parseInt(a[1],10);break;case"m":case"M":r+=parseInt(a[1],10),g=Math.min(g,t.datepicker._getDaysInMonth(o,r));break;case"y":case"Y":o+=parseInt(a[1],10),g=Math.min(g,t.datepicker._getDaysInMonth(o,r))}a=s.exec(i)}return new Date(o,r,g)}(i):"number"==typeof i?isNaN(i)?n:function(t){var e=new Date;return e.setDate(e.getDate()+t),e}(i):new Date(i.getTime());return(o=o&&"Invalid Date"===o.toString()?n:o)&&(o.setHours(0),o.setMinutes(0),o.setSeconds(0),o.setMilliseconds(0)),this._daylightSavingAdjust(o)},_daylightSavingAdjust:function(t){return t?(t.setHours(t.getHours()>12?t.getHours()+2:0),t):null},_setDate:function(t,e,i){var n=!e,o=t.selectedMonth,r=t.selectedYear,g=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=g.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=g.getMonth(),t.drawYear=t.selectedYear=t.currentYear=g.getFullYear(),o===t.selectedMonth&&r===t.selectedYear||i||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(n?"":this._formatDate(t))},_getDate:function(t){return!t.currentYear||t.input&&""===t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay))},_attachHandlers:function(e){var i=this._get(e,"stepMonths"),n="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map((function(){var e={prev:function(){t.datepicker._adjustDate(n,-i,"M")},next:function(){t.datepicker._adjustDate(n,+i,"M")},hide:function(){t.datepicker._hideDatepicker()},today:function(){t.datepicker._gotoToday(n)},selectDay:function(){return t.datepicker._selectDay(n,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return t.datepicker._selectMonthYear(n,this,"M"),!1},selectYear:function(){return t.datepicker._selectMonthYear(n,this,"Y"),!1}};t(this).bind(this.getAttribute("data-event"),e[this.getAttribute("data-handler")])}))},_generateHTML:function(t){var e,i,n,o,r,g,s,a,A,C,I,l,c,h,u,d,p,f,v,m,y,b,w,x,k,_,D,O,M,T,N,E,F,S,j,B,R,z,Z,G=new Date,P=this._daylightSavingAdjust(new Date(G.getFullYear(),G.getMonth(),G.getDate())),L=this._get(t,"isRTL"),W=this._get(t,"showButtonPanel"),Q=this._get(t,"hideIfNoPrevNext"),U=this._get(t,"navigationAsDateFormat"),Y=this._getNumberOfMonths(t),V=this._get(t,"showCurrentAtPos"),H=this._get(t,"stepMonths"),X=1!==Y[0]||1!==Y[1],J=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),K=this._getMinMaxDate(t,"min"),q=this._getMinMaxDate(t,"max"),$=t.drawMonth-V,tt=t.drawYear;if($<0&&($+=12,tt--),q)for(e=this._daylightSavingAdjust(new Date(q.getFullYear(),q.getMonth()-Y[0]*Y[1]+1,q.getDate())),e=K&&e<K?K:e;this._daylightSavingAdjust(new Date(tt,$,1))>e;)--$<0&&($=11,tt--);for(t.drawMonth=$,t.drawYear=tt,i=this._get(t,"prevText"),i=U?this.formatDate(i,this._daylightSavingAdjust(new Date(tt,$-H,1)),this._getFormatConfig(t)):i,n=this._canAdjustMonth(t,-1,tt,$)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(L?"e":"w")+"'>"+i+"</span></a>":Q?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(L?"e":"w")+"'>"+i+"</span></a>",o=this._get(t,"nextText"),o=U?this.formatDate(o,this._daylightSavingAdjust(new Date(tt,$+H,1)),this._getFormatConfig(t)):o,r=this._canAdjustMonth(t,1,tt,$)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+o+"'><span class='ui-icon ui-icon-circle-triangle-"+(L?"w":"e")+"'>"+o+"</span></a>":Q?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+o+"'><span class='ui-icon ui-icon-circle-triangle-"+(L?"w":"e")+"'>"+o+"</span></a>",g=this._get(t,"currentText"),s=this._get(t,"gotoCurrent")&&t.currentDay?J:P,g=U?this.formatDate(g,s,this._getFormatConfig(t)):g,a=t.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(t,"closeText")+"</button>",A=W?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(L?a:"")+(this._isInRange(t,s)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+g+"</button>":"")+(L?"":a)+"</div>":"",C=parseInt(this._get(t,"firstDay"),10),C=isNaN(C)?0:C,I=this._get(t,"showWeek"),l=this._get(t,"dayNames"),c=this._get(t,"dayNamesMin"),h=this._get(t,"monthNames"),u=this._get(t,"monthNamesShort"),d=this._get(t,"beforeShowDay"),p=this._get(t,"showOtherMonths"),f=this._get(t,"selectOtherMonths"),v=this._getDefaultDate(t),m="",b=0;b<Y[0];b++){for(w="",this.maxRows=4,x=0;x<Y[1];x++){if(k=this._daylightSavingAdjust(new Date(tt,$,t.selectedDay)),_=" ui-corner-all",D="",X){if(D+="<div class='ui-datepicker-group",Y[1]>1)switch(x){case 0:D+=" ui-datepicker-group-first",_=" ui-corner-"+(L?"right":"left");break;case Y[1]-1:D+=" ui-datepicker-group-last",_=" ui-corner-"+(L?"left":"right");break;default:D+=" ui-datepicker-group-middle",_=""}D+="'>"}for(D+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+_+"'>"+(/all|left/.test(_)&&0===b?L?r:n:"")+(/all|right/.test(_)&&0===b?L?n:r:"")+this._generateMonthYearHeader(t,$,tt,K,q,b>0||x>0,h,u)+"</div><table class='ui-datepicker-calendar'><thead><tr>",O=I?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",y=0;y<7;y++)O+="<th scope='col'"+((y+C+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+l[M=(y+C)%7]+"'>"+c[M]+"</span></th>";for(D+=O+"</tr></thead><tbody>",T=this._getDaysInMonth(tt,$),tt===t.selectedYear&&$===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,T)),N=(this._getFirstDayOfMonth(tt,$)-C+7)%7,E=Math.ceil((N+T)/7),F=X&&this.maxRows>E?this.maxRows:E,this.maxRows=F,S=this._daylightSavingAdjust(new Date(tt,$,1-N)),j=0;j<F;j++){for(D+="<tr>",B=I?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(S)+"</td>":"",y=0;y<7;y++)R=d?d.apply(t.input?t.input[0]:null,[S]):[!0,""],Z=(z=S.getMonth()!==$)&&!f||!R[0]||K&&S<K||q&&S>q,B+="<td class='"+((y+C+6)%7>=5?" ui-datepicker-week-end":"")+(z?" ui-datepicker-other-month":"")+(S.getTime()===k.getTime()&&$===t.selectedMonth&&t._keyEvent||v.getTime()===S.getTime()&&v.getTime()===k.getTime()?" "+this._dayOverClass:"")+(Z?" "+this._unselectableClass+" ui-state-disabled":"")+(z&&!p?"":" "+R[1]+(S.getTime()===J.getTime()?" "+this._currentClass:"")+(S.getTime()===P.getTime()?" ui-datepicker-today":""))+"'"+(z&&!p||!R[2]?"":" title='"+R[2].replace(/'/g,"&#39;")+"'")+(Z?"":" data-handler='selectDay' data-event='click' data-month='"+S.getMonth()+"' data-year='"+S.getFullYear()+"'")+">"+(z&&!p?"&#xa0;":Z?"<span class='ui-state-default'>"+S.getDate()+"</span>":"<a class='ui-state-default"+(S.getTime()===P.getTime()?" ui-state-highlight":"")+(S.getTime()===J.getTime()?" ui-state-active":"")+(z?" ui-priority-secondary":"")+"' href='#'>"+S.getDate()+"</a>")+"</td>",S.setDate(S.getDate()+1),S=this._daylightSavingAdjust(S);D+=B+"</tr>"}++$>11&&($=0,tt++),w+=D+="</tbody></table>"+(X?"</div>"+(Y[0]>0&&x===Y[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}m+=w}return m+=A,t._keyEvent=!1,m},_generateMonthYearHeader:function(t,e,i,n,o,r,g,s){var a,A,C,I,l,c,h,u,d=this._get(t,"changeMonth"),p=this._get(t,"changeYear"),f=this._get(t,"showMonthAfterYear"),v="<div class='ui-datepicker-title'>",m="";if(r||!d)m+="<span class='ui-datepicker-month'>"+g[e]+"</span>";else{for(a=n&&n.getFullYear()===i,A=o&&o.getFullYear()===i,m+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",C=0;C<12;C++)(!a||C>=n.getMonth())&&(!A||C<=o.getMonth())&&(m+="<option value='"+C+"'"+(C===e?" selected='selected'":"")+">"+s[C]+"</option>");m+="</select>"}if(f||(v+=m+(!r&&d&&p?"":"&#xa0;")),!t.yearshtml)if(t.yearshtml="",r||!p)v+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(I=this._get(t,"yearRange").split(":"),l=(new Date).getFullYear(),h=(c=function(t){var e=t.match(/c[+\-].*/)?i+parseInt(t.substring(1),10):t.match(/[+\-].*/)?l+parseInt(t,10):parseInt(t,10);return isNaN(e)?l:e})(I[0]),u=Math.max(h,c(I[1]||"")),h=n?Math.max(h,n.getFullYear()):h,u=o?Math.min(u,o.getFullYear()):u,t.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";h<=u;h++)t.yearshtml+="<option value='"+h+"'"+(h===i?" selected='selected'":"")+">"+h+"</option>";t.yearshtml+="</select>",v+=t.yearshtml,t.yearshtml=null}return v+=this._get(t,"yearSuffix"),f&&(v+=(!r&&d&&p?"":"&#xa0;")+m),v+="</div>"},_adjustInstDate:function(t,e,i){var n=t.drawYear+("Y"===i?e:0),o=t.drawMonth+("M"===i?e:0),r=Math.min(t.selectedDay,this._getDaysInMonth(n,o))+("D"===i?e:0),g=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(n,o,r)));t.selectedDay=g.getDate(),t.drawMonth=t.selectedMonth=g.getMonth(),t.drawYear=t.selectedYear=g.getFullYear(),"M"!==i&&"Y"!==i||this._notifyChange(t)},_restrictMinMax:function(t,e){var i=this._getMinMaxDate(t,"min"),n=this._getMinMaxDate(t,"max"),o=i&&e<i?i:e;return n&&o>n?n:o},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){var e=this._get(t,"numberOfMonths");return null==e?[1,1]:"number"==typeof e?[1,e]:e},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,i,n){var o=this._getNumberOfMonths(t),r=this._daylightSavingAdjust(new Date(i,n+(e<0?e:o[0]*o[1]),1));return e<0&&r.setDate(this._getDaysInMonth(r.getFullYear(),r.getMonth())),this._isInRange(t,r)},_isInRange:function(t,e){var i,n,o=this._getMinMaxDate(t,"min"),r=this._getMinMaxDate(t,"max"),g=null,s=null,a=this._get(t,"yearRange");return a&&(i=a.split(":"),n=(new Date).getFullYear(),g=parseInt(i[0],10),s=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(g+=n),i[1].match(/[+\-].*/)&&(s+=n)),(!o||e.getTime()>=o.getTime())&&(!r||e.getTime()<=r.getTime())&&(!g||e.getFullYear()>=g)&&(!s||e.getFullYear()<=s)},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return{shortYearCutoff:e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,i,n){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);var o=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(n,i,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),o,this._getFormatConfig(t))}}),t.fn.datepicker=function(e){if(!this.length)return this;t.datepicker.initialized||(t(document).mousedown(t.datepicker._checkExternalClick),t.datepicker.initialized=!0),0===t("#"+t.datepicker._mainDivId).length&&t("body").append(t.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return"string"!=typeof e||"isDisabled"!==e&&"getDate"!==e&&"widget"!==e?"option"===e&&2===arguments.length&&"string"==typeof arguments[1]?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i)):this.each((function(){"string"==typeof e?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this].concat(i)):t.datepicker._attachDatepicker(this,e)})):t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i))},t.datepicker=new d,t.datepicker.initialized=!1,t.datepicker.uuid=(new Date).getTime(),t.datepicker.version="1.11.1",t.datepicker,
/*!
 * jQuery UI Draggable 1.11.1
 * http://jqueryui.com
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/draggable/
 */
t.widget("ui.draggable",t.ui.mouse,{version:"1.11.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"!==this.options.helper||/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative"),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(e){var i=this.document[0],n=this.options;try{i.activeElement&&"body"!==i.activeElement.nodeName.toLowerCase()&&t(i.activeElement).blur()}catch(t){}return!(this.helper||n.disabled||t(e.target).closest(".ui-resizable-handle").length>0||(this.handle=this._getHandle(e),!this.handle||(t(!0===n.iframeFix?"iframe":n.iframeFix).each((function(){t("<div class='ui-draggable-iframeFix' style='background: #fff;'></div>").css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(t(this).offset()).appendTo("body")})),0)))},_mouseStart:function(e){var i=this.options;return this.helper=this._createHelper(e),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.offsetParentCssPosition=this.offsetParent.css("position"),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},this.offset.scroll=!1,t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(e,!1),this.originalPageX=e.pageX,this.originalPageY=e.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),!1===this._trigger("start",e)?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!i.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_mouseDrag:function(e,i){if("fixed"===this.offsetParentCssPosition&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e,!0),this.positionAbs=this._convertPositionTo("absolute"),!i){var n=this._uiHash();if(!1===this._trigger("drag",e,n))return this._mouseUp({}),!1;this.position=n.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var i=this,n=!1;return t.ui.ddmanager&&!this.options.dropBehaviour&&(n=t.ui.ddmanager.drop(this,e)),this.dropped&&(n=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!n||"valid"===this.options.revert&&n||!0===this.options.revert||t.isFunction(this.options.revert)&&this.options.revert.call(this.element,n)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),(function(){!1!==i._trigger("stop",e)&&i._clear()})):!1!==this._trigger("stop",e)&&this._clear(),!1},_mouseUp:function(e){return t("div.ui-draggable-iframeFix").each((function(){this.parentNode.removeChild(this)})),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),this.element.focus(),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(e){return!this.options.handle||!!t(e.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this.handleElement.addClass("ui-draggable-handle")},_removeHandleClassName:function(){this.handleElement.removeClass("ui-draggable-handle")},_createHelper:function(e){var i=this.options,n=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element;return n.parents("body").length||n.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),n[0]===this.element[0]||/(fixed|absolute)/.test(n.css("position"))||n.css("position","absolute"),n},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var e=this.offsetParent.offset(),i=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==i&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var t=this.element.position(),e=this._isRootNode(this.scrollParent[0]);return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,n,o=this.options,r=this.document[0];this.relativeContainer=null,o.containment?"window"!==o.containment?"document"!==o.containment?o.containment.constructor!==Array?("parent"===o.containment&&(o.containment=this.helper[0].parentNode),(n=(i=t(o.containment))[0])&&(e="hidden"!==i.css("overflow"),this.containment=[(parseInt(i.css("borderLeftWidth"),10)||0)+(parseInt(i.css("paddingLeft"),10)||0),(parseInt(i.css("borderTopWidth"),10)||0)+(parseInt(i.css("paddingTop"),10)||0),(e?Math.max(n.scrollWidth,n.offsetWidth):n.offsetWidth)-(parseInt(i.css("borderRightWidth"),10)||0)-(parseInt(i.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(n.scrollHeight,n.offsetHeight):n.offsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=i)):this.containment=o.containment:this.containment=[0,0,t(r).width()-this.helperProportions.width-this.margins.left,(t(r).height()||r.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=[t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(window).height()||r.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=null},_convertPositionTo:function(t,e){e||(e=this.position);var i="absolute"===t?1:-1,n=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.offset.scroll.top:n?0:this.offset.scroll.top)*i,left:e.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.offset.scroll.left:n?0:this.offset.scroll.left)*i}},_generatePosition:function(t,e){var i,n,o,r,g=this.options,s=this._isRootNode(this.scrollParent[0]),a=t.pageX,A=t.pageY;return s&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),e&&(this.containment&&(this.relativeContainer?(n=this.relativeContainer.offset(),i=[this.containment[0]+n.left,this.containment[1]+n.top,this.containment[2]+n.left,this.containment[3]+n.top]):i=this.containment,t.pageX-this.offset.click.left<i[0]&&(a=i[0]+this.offset.click.left),t.pageY-this.offset.click.top<i[1]&&(A=i[1]+this.offset.click.top),t.pageX-this.offset.click.left>i[2]&&(a=i[2]+this.offset.click.left),t.pageY-this.offset.click.top>i[3]&&(A=i[3]+this.offset.click.top)),g.grid&&(o=g.grid[1]?this.originalPageY+Math.round((A-this.originalPageY)/g.grid[1])*g.grid[1]:this.originalPageY,A=i?o-this.offset.click.top>=i[1]||o-this.offset.click.top>i[3]?o:o-this.offset.click.top>=i[1]?o-g.grid[1]:o+g.grid[1]:o,r=g.grid[0]?this.originalPageX+Math.round((a-this.originalPageX)/g.grid[0])*g.grid[0]:this.originalPageX,a=i?r-this.offset.click.left>=i[0]||r-this.offset.click.left>i[2]?r:r-this.offset.click.left>=i[0]?r-g.grid[0]:r+g.grid[0]:r),"y"===g.axis&&(a=this.originalPageX),"x"===g.axis&&(A=this.originalPageY)),{top:A-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:s?0:this.offset.scroll.top),left:a-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:s?0:this.offset.scroll.left)}},_clear:function(){this.helper.removeClass("ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(e,i,n){return n=n||this._uiHash(),t.ui.plugin.call(this,e,[i,n,this],!0),"drag"===e&&(this.positionAbs=this._convertPositionTo("absolute")),t.Widget.prototype._trigger.call(this,e,i,n)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,i,n){var o=n.options,r=t.extend({},i,{item:n.element});n.sortables=[],t(o.connectToSortable).each((function(){var i=t(this).sortable("instance");i&&!i.options.disabled&&(n.sortables.push({instance:i,shouldRevert:i.options.revert}),i.refreshPositions(),i._trigger("activate",e,r))}))},stop:function(e,i,n){var o=t.extend({},i,{item:n.element});t.each(n.sortables,(function(){this.instance.isOver?(this.instance.isOver=0,n.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=this.shouldRevert),this.instance._mouseStop(e),this.instance.options.helper=this.instance.options._helper,"original"===n.options.helper&&this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",e,o))}))},drag:function(e,i,n){var o=this;t.each(n.sortables,(function(){var r=!1,g=this;this.instance.positionAbs=n.positionAbs,this.instance.helperProportions=n.helperProportions,this.instance.offset.click=n.offset.click,this.instance._intersectsWith(this.instance.containerCache)&&(r=!0,t.each(n.sortables,(function(){return this.instance.positionAbs=n.positionAbs,this.instance.helperProportions=n.helperProportions,this.instance.offset.click=n.offset.click,this!==g&&this.instance._intersectsWith(this.instance.containerCache)&&t.contains(g.instance.element[0],this.instance.element[0])&&(r=!1),r}))),r?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=t(o).clone().removeAttr("id").appendTo(this.instance.element).data("ui-sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return i.helper[0]},e.target=this.instance.currentItem[0],this.instance._mouseCapture(e,!0),this.instance._mouseStart(e,!0,!0),this.instance.offset.click.top=n.offset.click.top,this.instance.offset.click.left=n.offset.click.left,this.instance.offset.parent.left-=n.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=n.offset.parent.top-this.instance.offset.parent.top,n._trigger("toSortable",e),n.dropped=this.instance.element,n.currentItem=n.element,this.instance.fromOutside=n),this.instance.currentItem&&this.instance._mouseDrag(e)):this.instance.isOver&&(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",e,this.instance._uiHash(this.instance)),this.instance._mouseStop(e,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),n._trigger("fromSortable",e),n.dropped=!1)}))}}),t.ui.plugin.add("draggable","cursor",{start:function(e,i,n){var o=t("body"),r=n.options;o.css("cursor")&&(r._cursor=o.css("cursor")),o.css("cursor",r.cursor)},stop:function(e,i,n){var o=n.options;o._cursor&&t("body").css("cursor",o._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,i,n){var o=t(i.helper),r=n.options;o.css("opacity")&&(r._opacity=o.css("opacity")),o.css("opacity",r.opacity)},stop:function(e,i,n){var o=n.options;o._opacity&&t(i.helper).css("opacity",o._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(t,e,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1)),i.scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0].tagName&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(e,i,n){var o=n.options,r=!1,g=n.scrollParentNotHidden[0],s=n.document[0];g!==s&&"HTML"!==g.tagName?(o.axis&&"x"===o.axis||(n.overflowOffset.top+g.offsetHeight-e.pageY<o.scrollSensitivity?g.scrollTop=r=g.scrollTop+o.scrollSpeed:e.pageY-n.overflowOffset.top<o.scrollSensitivity&&(g.scrollTop=r=g.scrollTop-o.scrollSpeed)),o.axis&&"y"===o.axis||(n.overflowOffset.left+g.offsetWidth-e.pageX<o.scrollSensitivity?g.scrollLeft=r=g.scrollLeft+o.scrollSpeed:e.pageX-n.overflowOffset.left<o.scrollSensitivity&&(g.scrollLeft=r=g.scrollLeft-o.scrollSpeed))):(o.axis&&"x"===o.axis||(e.pageY-t(s).scrollTop()<o.scrollSensitivity?r=t(s).scrollTop(t(s).scrollTop()-o.scrollSpeed):t(window).height()-(e.pageY-t(s).scrollTop())<o.scrollSensitivity&&(r=t(s).scrollTop(t(s).scrollTop()+o.scrollSpeed))),o.axis&&"y"===o.axis||(e.pageX-t(s).scrollLeft()<o.scrollSensitivity?r=t(s).scrollLeft(t(s).scrollLeft()-o.scrollSpeed):t(window).width()-(e.pageX-t(s).scrollLeft())<o.scrollSensitivity&&(r=t(s).scrollLeft(t(s).scrollLeft()+o.scrollSpeed)))),!1!==r&&t.ui.ddmanager&&!o.dropBehaviour&&t.ui.ddmanager.prepareOffsets(n,e)}}),t.ui.plugin.add("draggable","snap",{start:function(e,i,n){var o=n.options;n.snapElements=[],t(o.snap.constructor!==String?o.snap.items||":data(ui-draggable)":o.snap).each((function(){var e=t(this),i=e.offset();this!==n.element[0]&&n.snapElements.push({item:this,width:e.outerWidth(),height:e.outerHeight(),top:i.top,left:i.left})}))},drag:function(e,i,n){var o,r,g,s,a,A,C,I,l,c,h=n.options,u=h.snapTolerance,d=i.offset.left,p=d+n.helperProportions.width,f=i.offset.top,v=f+n.helperProportions.height;for(l=n.snapElements.length-1;l>=0;l--)A=(a=n.snapElements[l].left)+n.snapElements[l].width,I=(C=n.snapElements[l].top)+n.snapElements[l].height,p<a-u||d>A+u||v<C-u||f>I+u||!t.contains(n.snapElements[l].item.ownerDocument,n.snapElements[l].item)?(n.snapElements[l].snapping&&n.options.snap.release&&n.options.snap.release.call(n.element,e,t.extend(n._uiHash(),{snapItem:n.snapElements[l].item})),n.snapElements[l].snapping=!1):("inner"!==h.snapMode&&(o=Math.abs(C-v)<=u,r=Math.abs(I-f)<=u,g=Math.abs(a-p)<=u,s=Math.abs(A-d)<=u,o&&(i.position.top=n._convertPositionTo("relative",{top:C-n.helperProportions.height,left:0}).top-n.margins.top),r&&(i.position.top=n._convertPositionTo("relative",{top:I,left:0}).top-n.margins.top),g&&(i.position.left=n._convertPositionTo("relative",{top:0,left:a-n.helperProportions.width}).left-n.margins.left),s&&(i.position.left=n._convertPositionTo("relative",{top:0,left:A}).left-n.margins.left)),c=o||r||g||s,"outer"!==h.snapMode&&(o=Math.abs(C-f)<=u,r=Math.abs(I-v)<=u,g=Math.abs(a-d)<=u,s=Math.abs(A-p)<=u,o&&(i.position.top=n._convertPositionTo("relative",{top:C,left:0}).top-n.margins.top),r&&(i.position.top=n._convertPositionTo("relative",{top:I-n.helperProportions.height,left:0}).top-n.margins.top),g&&(i.position.left=n._convertPositionTo("relative",{top:0,left:a}).left-n.margins.left),s&&(i.position.left=n._convertPositionTo("relative",{top:0,left:A-n.helperProportions.width}).left-n.margins.left)),!n.snapElements[l].snapping&&(o||r||g||s||c)&&n.options.snap.snap&&n.options.snap.snap.call(n.element,e,t.extend(n._uiHash(),{snapItem:n.snapElements[l].item})),n.snapElements[l].snapping=o||r||g||s||c)}}),t.ui.plugin.add("draggable","stack",{start:function(e,i,n){var o,r=n.options,g=t.makeArray(t(r.stack)).sort((function(e,i){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(i).css("zIndex"),10)||0)}));g.length&&(o=parseInt(t(g[0]).css("zIndex"),10)||0,t(g).each((function(e){t(this).css("zIndex",o+e)})),this.css("zIndex",o+g.length))}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,i,n){var o=t(i.helper),r=n.options;o.css("zIndex")&&(r._zIndex=o.css("zIndex")),o.css("zIndex",r.zIndex)},stop:function(e,i,n){var o=n.options;o._zIndex&&t(i.helper).css("zIndex",o._zIndex)}}),t.ui.draggable,
/*!
 * jQuery UI Resizable 1.11.1
 * http://jqueryui.com
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/resizable/
 */
t.widget("ui.resizable",t.ui.mouse,{version:"1.11.1",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(t){return parseInt(t,10)||0},_isNumber:function(t){return!isNaN(parseInt(t,10))},_hasScroll:function(e,i){if("hidden"===t(e).css("overflow"))return!1;var n,o=i&&"left"===i?"scrollLeft":"scrollTop";return e[o]>0||(e[o]=1,n=e[o]>0,e[o]=0,n)},_create:function(){var e,i,n,o,r=this,g=this.options;if(this.element.addClass("ui-resizable"),t.extend(this,{_aspectRatio:!!g.aspectRatio,aspectRatio:g.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:g.helper||g.ghost||g.animate?g.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)&&(this.element.wrap(t("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0}),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css({margin:this.originalElement.css("margin")}),this._proportionallyResize()),this.handles=g.handles||(t(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),e=this.handles.split(","),this.handles={},i=0;i<e.length;i++)n=t.trim(e[i]),(o=t("<div class='ui-resizable-handle ui-resizable-"+n+"'></div>")).css({zIndex:g.zIndex}),"se"===n&&o.addClass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[n]=".ui-resizable-"+n,this.element.append(o);this._renderAxis=function(e){var i,n,o,r;for(i in e=e||this.element,this.handles)this.handles[i].constructor===String&&(this.handles[i]=this.element.children(this.handles[i]).first().show()),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)&&(n=t(this.handles[i],this.element),r=/sw|ne|nw|se|n|s/.test(i)?n.outerHeight():n.outerWidth(),o=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),e.css(o,r),this._proportionallyResize()),t(this.handles[i]).length},this._renderAxis(this.element),this._handles=t(".ui-resizable-handle",this.element).disableSelection(),this._handles.mouseover((function(){r.resizing||(this.className&&(o=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),r.axis=o&&o[1]?o[1]:"se")})),g.autoHide&&(this._handles.hide(),t(this.element).addClass("ui-resizable-autohide").mouseenter((function(){g.disabled||(t(this).removeClass("ui-resizable-autohide"),r._handles.show())})).mouseleave((function(){g.disabled||r.resizing||(t(this).addClass("ui-resizable-autohide"),r._handles.hide())}))),this._mouseInit()},_destroy:function(){this._mouseDestroy();var e,i=function(e){t(e).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(i(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),i(this.originalElement),this},_mouseCapture:function(e){var i,n,o=!1;for(i in this.handles)((n=t(this.handles[i])[0])===e.target||t.contains(n,e.target))&&(o=!0);return!this.options.disabled&&o},_mouseStart:function(e){var i,n,o,r=this.options,g=this.element;return this.resizing=!0,this._renderProxy(),i=this._num(this.helper.css("left")),n=this._num(this.helper.css("top")),r.containment&&(i+=t(r.containment).scrollLeft()||0,n+=t(r.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:i,top:n},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:g.width(),height:g.height()},this.originalSize=this._helper?{width:g.outerWidth(),height:g.outerHeight()}:{width:g.width(),height:g.height()},this.sizeDiff={width:g.outerWidth()-g.width(),height:g.outerHeight()-g.height()},this.originalPosition={left:i,top:n},this.originalMousePosition={left:e.pageX,top:e.pageY},this.aspectRatio="number"==typeof r.aspectRatio?r.aspectRatio:this.originalSize.width/this.originalSize.height||1,o=t(".ui-resizable-"+this.axis).css("cursor"),t("body").css("cursor","auto"===o?this.axis+"-resize":o),g.addClass("ui-resizable-resizing"),this._propagate("start",e),!0},_mouseDrag:function(e){var i,n,o=this.originalMousePosition,r=this.axis,g=e.pageX-o.left||0,s=e.pageY-o.top||0,a=this._change[r];return this._updatePrevProperties(),!!a&&(i=a.apply(this,[e,g,s]),this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(i=this._updateRatio(i,e)),i=this._respectSize(i,e),this._updateCache(i),this._propagate("resize",e),n=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),t.isEmptyObject(n)||(this._updatePrevProperties(),this._trigger("resize",e,this.ui()),this._applyChanges()),!1)},_mouseStop:function(e){this.resizing=!1;var i,n,o,r,g,s,a,A=this.options;return this._helper&&(o=(n=(i=this._proportionallyResizeElements).length&&/textarea/i.test(i[0].nodeName))&&this._hasScroll(i[0],"left")?0:this.sizeDiff.height,r=n?0:this.sizeDiff.width,g={width:this.helper.width()-r,height:this.helper.height()-o},s=parseInt(this.element.css("left"),10)+(this.position.left-this.originalPosition.left)||null,a=parseInt(this.element.css("top"),10)+(this.position.top-this.originalPosition.top)||null,A.animate||this.element.css(t.extend(g,{top:a,left:s})),this.helper.height(this.size.height),this.helper.width(this.size.width),this._helper&&!A.animate&&this._proportionallyResize()),t("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var t={};return this.position.top!==this.prevPosition.top&&(t.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(t.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(t.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(t.height=this.size.height+"px"),this.helper.css(t),t},_updateVirtualBoundaries:function(t){var e,i,n,o,r,g=this.options;r={minWidth:this._isNumber(g.minWidth)?g.minWidth:0,maxWidth:this._isNumber(g.maxWidth)?g.maxWidth:1/0,minHeight:this._isNumber(g.minHeight)?g.minHeight:0,maxHeight:this._isNumber(g.maxHeight)?g.maxHeight:1/0},(this._aspectRatio||t)&&(e=r.minHeight*this.aspectRatio,n=r.minWidth/this.aspectRatio,i=r.maxHeight*this.aspectRatio,o=r.maxWidth/this.aspectRatio,e>r.minWidth&&(r.minWidth=e),n>r.minHeight&&(r.minHeight=n),i<r.maxWidth&&(r.maxWidth=i),o<r.maxHeight&&(r.maxHeight=o)),this._vBoundaries=r},_updateCache:function(t){this.offset=this.helper.offset(),this._isNumber(t.left)&&(this.position.left=t.left),this._isNumber(t.top)&&(this.position.top=t.top),this._isNumber(t.height)&&(this.size.height=t.height),this._isNumber(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,i=this.size,n=this.axis;return this._isNumber(t.height)?t.width=t.height*this.aspectRatio:this._isNumber(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===n&&(t.left=e.left+(i.width-t.width),t.top=null),"nw"===n&&(t.top=e.top+(i.height-t.height),t.left=e.left+(i.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,i=this.axis,n=this._isNumber(t.width)&&e.maxWidth&&e.maxWidth<t.width,o=this._isNumber(t.height)&&e.maxHeight&&e.maxHeight<t.height,r=this._isNumber(t.width)&&e.minWidth&&e.minWidth>t.width,g=this._isNumber(t.height)&&e.minHeight&&e.minHeight>t.height,s=this.originalPosition.left+this.originalSize.width,a=this.position.top+this.size.height,A=/sw|nw|w/.test(i),C=/nw|ne|n/.test(i);return r&&(t.width=e.minWidth),g&&(t.height=e.minHeight),n&&(t.width=e.maxWidth),o&&(t.height=e.maxHeight),r&&A&&(t.left=s-e.minWidth),n&&A&&(t.left=s-e.maxWidth),g&&C&&(t.top=a-e.minHeight),o&&C&&(t.top=a-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_getPaddingPlusBorderDimensions:function(t){for(var e=0,i=[],n=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],o=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];e<4;e++)i[e]=parseInt(n[e],10)||0,i[e]+=parseInt(o[e],10)||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,e=0,i=this.helper||this.element;e<this._proportionallyResizeElements.length;e++)t=this._proportionallyResizeElements[e],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(t)),t.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var e=this.element,i=this.options;this.elementOffset=e.offset(),this._helper?(this.helper=this.helper||t("<div style='overflow:hidden;'></div>"),this.helper.addClass(this._helper).css({width:this.element.outerWidth()-1,height:this.element.outerHeight()-1,position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var i=this.originalSize;return{left:this.originalPosition.left+e,width:i.width-e}},n:function(t,e,i){var n=this.originalSize;return{top:this.originalPosition.top+i,height:n.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(e,i,n){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,i,n]))},sw:function(e,i,n){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,i,n]))},ne:function(e,i,n){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,i,n]))},nw:function(e,i,n){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,i,n]))}},_propagate:function(e,i){t.ui.plugin.call(this,e,[i,this.ui()]),"resize"!==e&&this._trigger(e,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),t.ui.plugin.add("resizable","animate",{stop:function(e){var i=t(this).resizable("instance"),n=i.options,o=i._proportionallyResizeElements,r=o.length&&/textarea/i.test(o[0].nodeName),g=r&&i._hasScroll(o[0],"left")?0:i.sizeDiff.height,s=r?0:i.sizeDiff.width,a={width:i.size.width-s,height:i.size.height-g},A=parseInt(i.element.css("left"),10)+(i.position.left-i.originalPosition.left)||null,C=parseInt(i.element.css("top"),10)+(i.position.top-i.originalPosition.top)||null;i.element.animate(t.extend(a,C&&A?{top:C,left:A}:{}),{duration:n.animateDuration,easing:n.animateEasing,step:function(){var n={width:parseInt(i.element.css("width"),10),height:parseInt(i.element.css("height"),10),top:parseInt(i.element.css("top"),10),left:parseInt(i.element.css("left"),10)};o&&o.length&&t(o[0]).css({width:n.width,height:n.height}),i._updateCache(n),i._propagate("resize",e)}})}}),t.ui.plugin.add("resizable","containment",{start:function(){var e,i,n,o,r,g,s,a=t(this).resizable("instance"),A=a.options,C=a.element,I=A.containment,l=I instanceof t?I.get(0):/parent/.test(I)?C.parent().get(0):I;l&&(a.containerElement=t(l),/document/.test(I)||I===document?(a.containerOffset={left:0,top:0},a.containerPosition={left:0,top:0},a.parentData={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight}):(e=t(l),i=[],t(["Top","Right","Left","Bottom"]).each((function(t,n){i[t]=a._num(e.css("padding"+n))})),a.containerOffset=e.offset(),a.containerPosition=e.position(),a.containerSize={height:e.innerHeight()-i[3],width:e.innerWidth()-i[1]},n=a.containerOffset,o=a.containerSize.height,r=a.containerSize.width,g=a._hasScroll(l,"left")?l.scrollWidth:r,s=a._hasScroll(l)?l.scrollHeight:o,a.parentData={element:l,left:n.left,top:n.top,width:g,height:s}))},resize:function(e){var i,n,o,r,g=t(this).resizable("instance"),s=g.options,a=g.containerOffset,A=g.position,C=g._aspectRatio||e.shiftKey,I={top:0,left:0},l=g.containerElement,c=!0;l[0]!==document&&/static/.test(l.css("position"))&&(I=a),A.left<(g._helper?a.left:0)&&(g.size.width=g.size.width+(g._helper?g.position.left-a.left:g.position.left-I.left),C&&(g.size.height=g.size.width/g.aspectRatio,c=!1),g.position.left=s.helper?a.left:0),A.top<(g._helper?a.top:0)&&(g.size.height=g.size.height+(g._helper?g.position.top-a.top:g.position.top),C&&(g.size.width=g.size.height*g.aspectRatio,c=!1),g.position.top=g._helper?a.top:0),o=g.containerElement.get(0)===g.element.parent().get(0),r=/relative|absolute/.test(g.containerElement.css("position")),o&&r?(g.offset.left=g.parentData.left+g.position.left,g.offset.top=g.parentData.top+g.position.top):(g.offset.left=g.element.offset().left,g.offset.top=g.element.offset().top),i=Math.abs(g.sizeDiff.width+(g._helper?g.offset.left-I.left:g.offset.left-a.left)),n=Math.abs(g.sizeDiff.height+(g._helper?g.offset.top-I.top:g.offset.top-a.top)),i+g.size.width>=g.parentData.width&&(g.size.width=g.parentData.width-i,C&&(g.size.height=g.size.width/g.aspectRatio,c=!1)),n+g.size.height>=g.parentData.height&&(g.size.height=g.parentData.height-n,C&&(g.size.width=g.size.height*g.aspectRatio,c=!1)),c||(g.position.left=g.prevPosition.left,g.position.top=g.prevPosition.top,g.size.width=g.prevSize.width,g.size.height=g.prevSize.height)},stop:function(){var e=t(this).resizable("instance"),i=e.options,n=e.containerOffset,o=e.containerPosition,r=e.containerElement,g=t(e.helper),s=g.offset(),a=g.outerWidth()-e.sizeDiff.width,A=g.outerHeight()-e.sizeDiff.height;e._helper&&!i.animate&&/relative/.test(r.css("position"))&&t(this).css({left:s.left-o.left-n.left,width:a,height:A}),e._helper&&!i.animate&&/static/.test(r.css("position"))&&t(this).css({left:s.left-o.left-n.left,width:a,height:A})}}),t.ui.plugin.add("resizable","alsoResize",{start:function(){var e=t(this).resizable("instance").options,i=function(e){t(e).each((function(){var e=t(this);e.data("ui-resizable-alsoresize",{width:parseInt(e.width(),10),height:parseInt(e.height(),10),left:parseInt(e.css("left"),10),top:parseInt(e.css("top"),10)})}))};"object"!=typeof e.alsoResize||e.alsoResize.parentNode?i(e.alsoResize):e.alsoResize.length?(e.alsoResize=e.alsoResize[0],i(e.alsoResize)):t.each(e.alsoResize,(function(t){i(t)}))},resize:function(e,i){var n=t(this).resizable("instance"),o=n.options,r=n.originalSize,g=n.originalPosition,s={height:n.size.height-r.height||0,width:n.size.width-r.width||0,top:n.position.top-g.top||0,left:n.position.left-g.left||0},a=function(e,n){t(e).each((function(){var e=t(this),o=t(this).data("ui-resizable-alsoresize"),r={},g=n&&n.length?n:e.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(g,(function(t,e){var i=(o[e]||0)+(s[e]||0);i&&i>=0&&(r[e]=i||null)})),e.css(r)}))};"object"!=typeof o.alsoResize||o.alsoResize.nodeType?a(o.alsoResize):t.each(o.alsoResize,(function(t,e){a(t,e)}))},stop:function(){t(this).removeData("resizable-alsoresize")}}),t.ui.plugin.add("resizable","ghost",{start:function(){var e=t(this).resizable("instance"),i=e.options,n=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:n.height,width:n.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass("string"==typeof i.ghost?i.ghost:""),e.ghost.appendTo(e.helper)},resize:function(){var e=t(this).resizable("instance");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=t(this).resizable("instance");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(){var e,i=t(this).resizable("instance"),n=i.options,o=i.size,r=i.originalSize,g=i.originalPosition,s=i.axis,a="number"==typeof n.grid?[n.grid,n.grid]:n.grid,A=a[0]||1,C=a[1]||1,I=Math.round((o.width-r.width)/A)*A,l=Math.round((o.height-r.height)/C)*C,c=r.width+I,h=r.height+l,u=n.maxWidth&&n.maxWidth<c,d=n.maxHeight&&n.maxHeight<h,p=n.minWidth&&n.minWidth>c,f=n.minHeight&&n.minHeight>h;n.grid=a,p&&(c+=A),f&&(h+=C),u&&(c-=A),d&&(h-=C),/^(se|s|e)$/.test(s)?(i.size.width=c,i.size.height=h):/^(ne)$/.test(s)?(i.size.width=c,i.size.height=h,i.position.top=g.top-l):/^(sw)$/.test(s)?(i.size.width=c,i.size.height=h,i.position.left=g.left-I):((h-C<=0||c-A<=0)&&(e=i._getPaddingPlusBorderDimensions(this)),h-C>0?(i.size.height=h,i.position.top=g.top-l):(h=C-e.height,i.size.height=h,i.position.top=g.top+r.height-h),c-A>0?(i.size.width=c,i.position.left=g.left-I):(c=C-e.height,i.size.width=c,i.position.left=g.left+r.width-c))}}),t.ui.resizable,t.widget("ui.dialog",{version:"1.11.1",options:{appendTo:"body",autoOpen:!0,buttons:[],closeOnEscape:!0,closeText:"Close",dialogClass:"",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(e){var i=t(this).css(e).offset().top;i<0&&t(this).css("top",e.top-i)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),this.options.title=this.options.title||this.originalTitle,this._createWrapper(),this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(this.uiDialog),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&t.fn.draggable&&this._makeDraggable(),this.options.resizable&&t.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var e=this.options.appendTo;return e&&(e.jquery||e.nodeType)?t(e):this.document.find(e||"body").eq(0)},_destroy:function(){var t,e=this.originalPosition;this._destroyOverlay(),this.element.removeUniqueId().removeClass("ui-dialog-content ui-widget-content").css(this.originalCss).detach(),this.uiDialog.stop(!0,!0).remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),(t=e.parent.children().eq(e.index)).length&&t[0]!==this.element[0]?t.before(this.element):e.parent.append(this.element)},widget:function(){return this.uiDialog},disable:t.noop,enable:t.noop,close:function(e){var i,n=this;if(this._isOpen&&!1!==this._trigger("beforeClose",e)){if(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),!this.opener.filter(":focusable").focus().length)try{(i=this.document[0].activeElement)&&"body"!==i.nodeName.toLowerCase()&&t(i).blur()}catch(t){}this._hide(this.uiDialog,this.options.hide,(function(){n._trigger("close",e)}))}},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(e,i){var n=!1,o=this.uiDialog.siblings(".ui-front:visible").map((function(){return+t(this).css("z-index")})).get(),r=Math.max.apply(null,o);return r>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",r+1),n=!0),n&&!i&&this._trigger("focus",e),n},open:function(){var e=this;this._isOpen?this._moveToTop()&&this._focusTabbable():(this._isOpen=!0,this.opener=t(this.document[0].activeElement),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,(function(){e._focusTabbable(),e._trigger("focus")})),this._makeFocusTarget(),this._trigger("open"))},_focusTabbable:function(){var t=this._focusedElement;t||(t=this.element.find("[autofocus]")),t.length||(t=this.element.find(":tabbable")),t.length||(t=this.uiDialogButtonPane.find(":tabbable")),t.length||(t=this.uiDialogTitlebarClose.filter(":tabbable")),t.length||(t=this.uiDialog),t.eq(0).focus()},_keepFocus:function(e){function i(){var e=this.document[0].activeElement;this.uiDialog[0]===e||t.contains(this.uiDialog[0],e)||this._focusTabbable()}e.preventDefault(),i.call(this),this._delay(i)},_createWrapper:function(){this.uiDialog=t("<div>").addClass("ui-dialog ui-widget ui-widget-content ui-corner-all ui-front "+this.options.dialogClass).hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._on(this.uiDialog,{keydown:function(e){if(this.options.closeOnEscape&&!e.isDefaultPrevented()&&e.keyCode&&e.keyCode===t.ui.keyCode.ESCAPE)return e.preventDefault(),void this.close(e);if(e.keyCode===t.ui.keyCode.TAB&&!e.isDefaultPrevented()){var i=this.uiDialog.find(":tabbable"),n=i.filter(":first"),o=i.filter(":last");e.target!==o[0]&&e.target!==this.uiDialog[0]||e.shiftKey?e.target!==n[0]&&e.target!==this.uiDialog[0]||!e.shiftKey||(this._delay((function(){o.focus()})),e.preventDefault()):(this._delay((function(){n.focus()})),e.preventDefault())}},mousedown:function(t){this._moveToTop(t)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var e;this.uiDialogTitlebar=t("<div>").addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(this.uiDialog),this._on(this.uiDialogTitlebar,{mousedown:function(e){t(e.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.focus()}}),this.uiDialogTitlebarClose=t("<button type='button'></button>").button({label:this.options.closeText,icons:{primary:"ui-icon-closethick"},text:!1}).addClass("ui-dialog-titlebar-close").appendTo(this.uiDialogTitlebar),this._on(this.uiDialogTitlebarClose,{click:function(t){t.preventDefault(),this.close(t)}}),e=t("<span>").uniqueId().addClass("ui-dialog-title").prependTo(this.uiDialogTitlebar),this._title(e),this.uiDialog.attr({"aria-labelledby":e.attr("id")})},_title:function(t){this.options.title||t.html("&#160;"),t.text(this.options.title)},_createButtonPane:function(){this.uiDialogButtonPane=t("<div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),this.uiButtonSet=t("<div>").addClass("ui-dialog-buttonset").appendTo(this.uiDialogButtonPane),this._createButtons()},_createButtons:function(){var e=this,i=this.options.buttons;this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),t.isEmptyObject(i)||t.isArray(i)&&!i.length?this.uiDialog.removeClass("ui-dialog-buttons"):(t.each(i,(function(i,n){var o,r;n=t.isFunction(n)?{click:n,text:i}:n,n=t.extend({type:"button"},n),o=n.click,n.click=function(){o.apply(e.element[0],arguments)},r={icons:n.icons,text:n.showText},delete n.icons,delete n.showText,t("<button></button>",n).button(r).appendTo(e.uiButtonSet)})),this.uiDialog.addClass("ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){var e=this,i=this.options;function n(t){return{position:t.position,offset:t.offset}}this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(i,o){t(this).addClass("ui-dialog-dragging"),e._blockFrames(),e._trigger("dragStart",i,n(o))},drag:function(t,i){e._trigger("drag",t,n(i))},stop:function(o,r){var g=r.offset.left-e.document.scrollLeft(),s=r.offset.top-e.document.scrollTop();i.position={my:"left top",at:"left"+(g>=0?"+":"")+g+" top"+(s>=0?"+":"")+s,of:e.window},t(this).removeClass("ui-dialog-dragging"),e._unblockFrames(),e._trigger("dragStop",o,n(r))}})},_makeResizable:function(){var e=this,i=this.options,n=i.resizable,o=this.uiDialog.css("position"),r="string"==typeof n?n:"n,e,s,w,se,sw,ne,nw";function g(t){return{originalPosition:t.originalPosition,originalSize:t.originalSize,position:t.position,size:t.size}}this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:i.maxWidth,maxHeight:i.maxHeight,minWidth:i.minWidth,minHeight:this._minHeight(),handles:r,start:function(i,n){t(this).addClass("ui-dialog-resizing"),e._blockFrames(),e._trigger("resizeStart",i,g(n))},resize:function(t,i){e._trigger("resize",t,g(i))},stop:function(n,o){var r=e.uiDialog.offset(),s=r.left-e.document.scrollLeft(),a=r.top-e.document.scrollTop();i.height=e.uiDialog.height(),i.width=e.uiDialog.width(),i.position={my:"left top",at:"left"+(s>=0?"+":"")+s+" top"+(a>=0?"+":"")+a,of:e.window},t(this).removeClass("ui-dialog-resizing"),e._unblockFrames(),e._trigger("resizeStop",n,g(o))}}).css("position",o)},_trackFocus:function(){this._on(this.widget(),{focusin:function(e){this._makeFocusTarget(),this._focusedElement=t(e.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var e=this._trackingInstances(),i=t.inArray(this,e);-1!==i&&e.splice(i,1)},_trackingInstances:function(){var t=this.document.data("ui-dialog-instances");return t||(t=[],this.document.data("ui-dialog-instances",t)),t},_minHeight:function(){var t=this.options;return"auto"===t.height?t.minHeight:Math.min(t.minHeight,t.height)},_position:function(){var t=this.uiDialog.is(":visible");t||this.uiDialog.show(),this.uiDialog.position(this.options.position),t||this.uiDialog.hide()},_setOptions:function(e){var i=this,n=!1,o={};t.each(e,(function(t,e){i._setOption(t,e),t in i.sizeRelatedOptions&&(n=!0),t in i.resizableRelatedOptions&&(o[t]=e)})),n&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",o)},_setOption:function(t,e){var i,n,o=this.uiDialog;"dialogClass"===t&&o.removeClass(this.options.dialogClass).addClass(e),"disabled"!==t&&(this._super(t,e),"appendTo"===t&&this.uiDialog.appendTo(this._appendTo()),"buttons"===t&&this._createButtons(),"closeText"===t&&this.uiDialogTitlebarClose.button({label:""+e}),"draggable"===t&&((i=o.is(":data(ui-draggable)"))&&!e&&o.draggable("destroy"),!i&&e&&this._makeDraggable()),"position"===t&&this._position(),"resizable"===t&&((n=o.is(":data(ui-resizable)"))&&!e&&o.resizable("destroy"),n&&"string"==typeof e&&o.resizable("option","handles",e),n||!1===e||this._makeResizable()),"title"===t&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var t,e,i,n=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),n.minWidth>n.width&&(n.width=n.minWidth),t=this.uiDialog.css({height:"auto",width:n.width}).outerHeight(),e=Math.max(0,n.minHeight-t),i="number"==typeof n.maxHeight?Math.max(0,n.maxHeight-t):"none","auto"===n.height?this.element.css({minHeight:e,maxHeight:i,height:"auto"}):this.element.height(Math.max(0,n.height-t)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map((function(){var e=t(this);return t("<div>").css({position:"absolute",width:e.outerWidth(),height:e.outerHeight()}).appendTo(e.parent()).offset(e.offset())[0]}))},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(e){return!!t(e.target).closest(".ui-dialog").length||!!t(e.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var e=!0;this._delay((function(){e=!1})),this.document.data("ui-dialog-overlays")||this._on(this.document,{focusin:function(t){e||this._allowInteraction(t)||(t.preventDefault(),this._trackingInstances()[0]._focusTabbable())}}),this.overlay=t("<div>").addClass("ui-widget-overlay ui-front").appendTo(this._appendTo()),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1)}},_destroyOverlay:function(){if(this.options.modal&&this.overlay){var t=this.document.data("ui-dialog-overlays")-1;t?this.document.data("ui-dialog-overlays",t):this.document.unbind("focusin").removeData("ui-dialog-overlays"),this.overlay.remove(),this.overlay=null}}}),
/*!
 * jQuery UI Droppable 1.11.1
 * http://jqueryui.com
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/droppable/
 */
t.widget("ui.droppable",{version:"1.11.1",widgetEventPrefix:"drop",options:{accept:"*",activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var e,i=this.options,n=i.accept;this.isover=!1,this.isout=!0,this.accept=t.isFunction(n)?n:function(t){return t.is(n)},this.proportions=function(){if(!arguments.length)return e||(e={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight});e=arguments[0]},this._addToManager(i.scope),i.addClasses&&this.element.addClass("ui-droppable")},_addToManager:function(e){t.ui.ddmanager.droppables[e]=t.ui.ddmanager.droppables[e]||[],t.ui.ddmanager.droppables[e].push(this)},_splice:function(t){for(var e=0;e<t.length;e++)t[e]===this&&t.splice(e,1)},_destroy:function(){var e=t.ui.ddmanager.droppables[this.options.scope];this._splice(e),this.element.removeClass("ui-droppable ui-droppable-disabled")},_setOption:function(e,i){if("accept"===e)this.accept=t.isFunction(i)?i:function(t){return t.is(i)};else if("scope"===e){var n=t.ui.ddmanager.droppables[this.options.scope];this._splice(n),this._addToManager(i)}this._super(e,i)},_activate:function(e){var i=t.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass),i&&this._trigger("activate",e,this.ui(i))},_deactivate:function(e){var i=t.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass),i&&this._trigger("deactivate",e,this.ui(i))},_over:function(e){var i=t.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this.options.hoverClass&&this.element.addClass(this.options.hoverClass),this._trigger("over",e,this.ui(i)))},_out:function(e){var i=t.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("out",e,this.ui(i)))},_drop:function(e,i){var n=i||t.ui.ddmanager.current,o=!1;return!(!n||(n.currentItem||n.element)[0]===this.element[0])&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each((function(){var i=t(this).droppable("instance");if(i.options.greedy&&!i.options.disabled&&i.options.scope===n.options.scope&&i.accept.call(i.element[0],n.currentItem||n.element)&&t.ui.intersect(n,t.extend(i,{offset:i.element.offset()}),i.options.tolerance,e))return o=!0,!1})),!o&&!!this.accept.call(this.element[0],n.currentItem||n.element)&&(this.options.activeClass&&this.element.removeClass(this.options.activeClass),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("drop",e,this.ui(n)),this.element))},ui:function(t){return{draggable:t.currentItem||t.element,helper:t.helper,position:t.position,offset:t.positionAbs}}}),t.ui.intersect=function(){function t(t,e,i){return t>=e&&t<e+i}return function(e,i,n,o){if(!i.offset)return!1;var r=(e.positionAbs||e.position.absolute).left,g=(e.positionAbs||e.position.absolute).top,s=r+e.helperProportions.width,a=g+e.helperProportions.height,A=i.offset.left,C=i.offset.top,I=A+i.proportions().width,l=C+i.proportions().height;switch(n){case"fit":return A<=r&&s<=I&&C<=g&&a<=l;case"intersect":return A<r+e.helperProportions.width/2&&s-e.helperProportions.width/2<I&&C<g+e.helperProportions.height/2&&a-e.helperProportions.height/2<l;case"pointer":return t(o.pageY,C,i.proportions().height)&&t(o.pageX,A,i.proportions().width);case"touch":return(g>=C&&g<=l||a>=C&&a<=l||g<C&&a>l)&&(r>=A&&r<=I||s>=A&&s<=I||r<A&&s>I);default:return!1}}}(),t.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(e,i){var n,o,r=t.ui.ddmanager.droppables[e.options.scope]||[],g=i?i.type:null,s=(e.currentItem||e.element).find(":data(ui-droppable)").addBack();t:for(n=0;n<r.length;n++)if(!(r[n].options.disabled||e&&!r[n].accept.call(r[n].element[0],e.currentItem||e.element))){for(o=0;o<s.length;o++)if(s[o]===r[n].element[0]){r[n].proportions().height=0;continue t}r[n].visible="none"!==r[n].element.css("display"),r[n].visible&&("mousedown"===g&&r[n]._activate.call(r[n],i),r[n].offset=r[n].element.offset(),r[n].proportions({width:r[n].element[0].offsetWidth,height:r[n].element[0].offsetHeight}))}},drop:function(e,i){var n=!1;return t.each((t.ui.ddmanager.droppables[e.options.scope]||[]).slice(),(function(){this.options&&(!this.options.disabled&&this.visible&&t.ui.intersect(e,this,this.options.tolerance,i)&&(n=this._drop.call(this,i)||n),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,i)))})),n},dragStart:function(e,i){e.element.parentsUntil("body").bind("scroll.droppable",(function(){e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)}))},drag:function(e,i){e.options.refreshPositions&&t.ui.ddmanager.prepareOffsets(e,i),t.each(t.ui.ddmanager.droppables[e.options.scope]||[],(function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var n,o,r,g=t.ui.intersect(e,this,this.options.tolerance,i),s=!g&&this.isover?"isout":g&&!this.isover?"isover":null;s&&(this.options.greedy&&(o=this.options.scope,(r=this.element.parents(":data(ui-droppable)").filter((function(){return t(this).droppable("instance").options.scope===o}))).length&&((n=t(r[0]).droppable("instance")).greedyChild="isover"===s)),n&&"isover"===s&&(n.isover=!1,n.isout=!0,n._out.call(n,i)),this[s]=!0,this["isout"===s?"isover":"isout"]=!1,this["isover"===s?"_over":"_out"].call(this,i),n&&"isout"===s&&(n.isout=!1,n.isover=!0,n._over.call(n,i)))}}))},dragStop:function(e,i){e.element.parentsUntil("body").unbind("scroll.droppable"),e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)}},t.ui.droppable;var m,y,b=t;
/*!
 * jQuery UI Effects 1.11.1
 * http://jqueryui.com
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/category/effects-core/
 */
/*!
 * jQuery UI Spinner 1.11.1
 * http://jqueryui.com
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/spinner/
 */
function w(t){return function(){var e=this.element.val();t.apply(this,arguments),this._refresh(),e!==this.element.val()&&this._trigger("change")}}t.effects={effect:{}},
/*!
 * jQuery Color Animations v2.1.2
 * https://github.com/jquery/jquery-color
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * Date: Wed Jan 16 08:47:09 2013 -0600
 */
function(t,e){var i,n=/^([\-+])=\s*(\d+\.?\d*)/,o=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(t){return[t[1],t[2]/100,t[3]/100,t[4]]}}],r=t.Color=function(e,i,n,o){return new t.Color.fn.parse(e,i,n,o)},g={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},s={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},a=r.support={},A=t("<p>")[0],C=t.each;function I(t,e,i){var n=s[e.type]||{};return null==t?i||!e.def?null:e.def:(t=n.floor?~~t:parseFloat(t),isNaN(t)?e.def:n.mod?(t+n.mod)%n.mod:0>t?0:n.max<t?n.max:t)}function l(e){var n=r(),s=n._rgba=[];return e=e.toLowerCase(),C(o,(function(t,i){var o,r=i.re.exec(e),a=r&&i.parse(r),A=i.space||"rgba";if(a)return o=n[A](a),n[g[A].cache]=o[g[A].cache],s=n._rgba=o._rgba,!1})),s.length?("0,0,0,0"===s.join()&&t.extend(s,i.transparent),n):i[e]}function c(t,e,i){return 6*(i=(i+1)%1)<1?t+(e-t)*i*6:2*i<1?e:3*i<2?t+(e-t)*(2/3-i)*6:t}A.style.cssText="background-color:rgba(1,1,1,.5)",a.rgba=A.style.backgroundColor.indexOf("rgba")>-1,C(g,(function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}})),r.fn=t.extend(r.prototype,{parse:function(e,n,o,s){if(void 0===e)return this._rgba=[null,null,null,null],this;(e.jquery||e.nodeType)&&(e=t(e).css(n),n=void 0);var a=this,A=t.type(e),c=this._rgba=[];return void 0!==n&&(e=[e,n,o,s],A="array"),"string"===A?this.parse(l(e)||i._default):"array"===A?(C(g.rgba.props,(function(t,i){c[i.idx]=I(e[i.idx],i)})),this):"object"===A?(C(g,e instanceof r?function(t,i){e[i.cache]&&(a[i.cache]=e[i.cache].slice())}:function(i,n){var o=n.cache;C(n.props,(function(t,i){if(!a[o]&&n.to){if("alpha"===t||null==e[t])return;a[o]=n.to(a._rgba)}a[o][i.idx]=I(e[t],i,!0)})),a[o]&&t.inArray(null,a[o].slice(0,3))<0&&(a[o][3]=1,n.from&&(a._rgba=n.from(a[o])))}),this):void 0},is:function(t){var e=r(t),i=!0,n=this;return C(g,(function(t,o){var r,g=e[o.cache];return g&&(r=n[o.cache]||o.to&&o.to(n._rgba)||[],C(o.props,(function(t,e){if(null!=g[e.idx])return i=g[e.idx]===r[e.idx]}))),i})),i},_space:function(){var t=[],e=this;return C(g,(function(i,n){e[n.cache]&&t.push(i)})),t.pop()},transition:function(t,e){var i=r(t),n=i._space(),o=g[n],a=0===this.alpha()?r("transparent"):this,A=a[o.cache]||o.to(a._rgba),l=A.slice();return i=i[o.cache],C(o.props,(function(t,n){var o=n.idx,r=A[o],g=i[o],a=s[n.type]||{};null!==g&&(null===r?l[o]=g:(a.mod&&(g-r>a.mod/2?r+=a.mod:r-g>a.mod/2&&(r-=a.mod)),l[o]=I((g-r)*e+r,n)))})),this[n](l)},blend:function(e){if(1===this._rgba[3])return this;var i=this._rgba.slice(),n=i.pop(),o=r(e)._rgba;return r(t.map(i,(function(t,e){return(1-n)*o[e]+n*t})))},toRgbaString:function(){var e="rgba(",i=t.map(this._rgba,(function(t,e){return null==t?e>2?1:0:t}));return 1===i[3]&&(i.pop(),e="rgb("),e+i.join()+")"},toHslaString:function(){var e="hsla(",i=t.map(this.hsla(),(function(t,e){return null==t&&(t=e>2?1:0),e&&e<3&&(t=Math.round(100*t)+"%"),t}));return 1===i[3]&&(i.pop(),e="hsl("),e+i.join()+")"},toHexString:function(e){var i=this._rgba.slice(),n=i.pop();return e&&i.push(~~(255*n)),"#"+t.map(i,(function(t){return 1===(t=(t||0).toString(16)).length?"0"+t:t})).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),r.fn.parse.prototype=r.fn,g.hsla.to=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e,i,n=t[0]/255,o=t[1]/255,r=t[2]/255,g=t[3],s=Math.max(n,o,r),a=Math.min(n,o,r),A=s-a,C=s+a,I=.5*C;return e=a===s?0:n===s?60*(o-r)/A+360:o===s?60*(r-n)/A+120:60*(n-o)/A+240,i=0===A?0:I<=.5?A/C:A/(2-C),[Math.round(e)%360,i,I,null==g?1:g]},g.hsla.from=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/360,i=t[1],n=t[2],o=t[3],r=n<=.5?n*(1+i):n+i-n*i,g=2*n-r;return[Math.round(255*c(g,r,e+1/3)),Math.round(255*c(g,r,e)),Math.round(255*c(g,r,e-1/3)),o]},C(g,(function(e,i){var o=i.props,g=i.cache,s=i.to,a=i.from;r.fn[e]=function(e){if(s&&!this[g]&&(this[g]=s(this._rgba)),void 0===e)return this[g].slice();var i,n=t.type(e),A="array"===n||"object"===n?e:arguments,l=this[g].slice();return C(o,(function(t,e){var i=A["object"===n?t:e.idx];null==i&&(i=l[e.idx]),l[e.idx]=I(i,e)})),a?((i=r(a(l)))[g]=l,i):r(l)},C(o,(function(i,o){r.fn[i]||(r.fn[i]=function(r){var g,s=t.type(r),a="alpha"===i?this._hsla?"hsla":"rgba":e,A=this[a](),C=A[o.idx];return"undefined"===s?C:("function"===s&&(r=r.call(this,C),s=t.type(r)),null==r&&o.empty?this:("string"===s&&(g=n.exec(r))&&(r=C+parseFloat(g[2])*("+"===g[1]?1:-1)),A[o.idx]=r,this[a](A)))})}))})),r.hook=function(e){var i=e.split(" ");C(i,(function(e,i){t.cssHooks[i]={set:function(e,n){var o,g,s="";if("transparent"!==n&&("string"!==t.type(n)||(o=l(n)))){if(n=r(o||n),!a.rgba&&1!==n._rgba[3]){for(g="backgroundColor"===i?e.parentNode:e;(""===s||"transparent"===s)&&g&&g.style;)try{s=t.css(g,"backgroundColor"),g=g.parentNode}catch(t){}n=n.blend(s&&"transparent"!==s?s:"_default")}n=n.toRgbaString()}try{e.style[i]=n}catch(t){}}},t.fx.step[i]=function(e){e.colorInit||(e.start=r(e.elem,i),e.end=r(e.end),e.colorInit=!0),t.cssHooks[i].set(e.elem,e.start.transition(e.end,e.pos))}}))},r.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),t.cssHooks.borderColor={expand:function(t){var e={};return C(["Top","Right","Bottom","Left"],(function(i,n){e["border"+n+"Color"]=t})),e}},i=t.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(b),function(){var e=["add","remove","toggle"],i={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};function n(e){var i,n,o=e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,null):e.currentStyle,r={};if(o&&o.length&&o[0]&&o[o[0]])for(n=o.length;n--;)"string"==typeof o[i=o[n]]&&(r[t.camelCase(i)]=o[i]);else for(i in o)"string"==typeof o[i]&&(r[i]=o[i]);return r}t.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],(function(e,i){t.fx.step[i]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(b.style(t.elem,i,t.end),t.setAttr=!0)}})),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t.effects.animateClass=function(o,r,g,s){var a=t.speed(r,g,s);return this.queue((function(){var r,g=t(this),s=g.attr("class")||"",A=a.children?g.find("*").addBack():g;A=A.map((function(){return{el:t(this),start:n(this)}})),(r=function(){t.each(e,(function(t,e){o[e]&&g[e+"Class"](o[e])}))})(),A=A.map((function(){return this.end=n(this.el[0]),this.diff=function(e,n){var o,r,g={};for(o in n)r=n[o],e[o]!==r&&(i[o]||!t.fx.step[o]&&isNaN(parseFloat(r))||(g[o]=r));return g}(this.start,this.end),this})),g.attr("class",s),A=A.map((function(){var e=this,i=t.Deferred(),n=t.extend({},a,{queue:!1,complete:function(){i.resolve(e)}});return this.el.animate(this.diff,n),i.promise()})),t.when.apply(t,A.get()).done((function(){r(),t.each(arguments,(function(){var e=this.el;t.each(this.diff,(function(t){e.css(t,"")}))})),a.complete.call(g[0])}))}))},t.fn.extend({addClass:function(e){return function(i,n,o,r){return n?t.effects.animateClass.call(this,{add:i},n,o,r):e.apply(this,arguments)}}(t.fn.addClass),removeClass:function(e){return function(i,n,o,r){return arguments.length>1?t.effects.animateClass.call(this,{remove:i},n,o,r):e.apply(this,arguments)}}(t.fn.removeClass),toggleClass:function(e){return function(i,n,o,r,g){return"boolean"==typeof n||void 0===n?o?t.effects.animateClass.call(this,n?{add:i}:{remove:i},o,r,g):e.apply(this,arguments):t.effects.animateClass.call(this,{toggle:i},n,o,r)}}(t.fn.toggleClass),switchClass:function(e,i,n,o,r){return t.effects.animateClass.call(this,{add:i,remove:e},n,o,r)}})}(),function(){function e(e,i,n,o){return t.isPlainObject(e)&&(i=e,e=e.effect),e={effect:e},null==i&&(i={}),t.isFunction(i)&&(o=i,n=null,i={}),("number"==typeof i||t.fx.speeds[i])&&(o=n,n=i,i={}),t.isFunction(n)&&(o=n,n=null),i&&t.extend(e,i),n=n||i.duration,e.duration=t.fx.off?0:"number"==typeof n?n:n in t.fx.speeds?t.fx.speeds[n]:t.fx.speeds._default,e.complete=o||i.complete,e}function i(e){return!(e&&"number"!=typeof e&&!t.fx.speeds[e])||"string"==typeof e&&!t.effects.effect[e]||!!t.isFunction(e)||"object"==typeof e&&!e.effect}t.extend(t.effects,{version:"1.11.1",save:function(t,e){for(var i=0;i<e.length;i++)null!==e[i]&&t.data("ui-effects-"+e[i],t[0].style[e[i]])},restore:function(t,e){var i,n;for(n=0;n<e.length;n++)null!==e[n]&&(void 0===(i=t.data("ui-effects-"+e[n]))&&(i=""),t.css(e[n],i))},setMode:function(t,e){return"toggle"===e&&(e=t.is(":hidden")?"show":"hide"),e},getBaseline:function(t,e){var i,n;switch(t[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=t[0]/e.height}switch(t[1]){case"left":n=0;break;case"center":n=.5;break;case"right":n=1;break;default:n=t[1]/e.width}return{x:n,y:i}},createWrapper:function(e){if(e.parent().is(".ui-effects-wrapper"))return e.parent();var i={width:e.outerWidth(!0),height:e.outerHeight(!0),float:e.css("float")},n=t("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),o={width:e.width(),height:e.height()},r=document.activeElement;try{r.id}catch(t){r=document.body}return e.wrap(n),(e[0]===r||t.contains(e[0],r))&&t(r).focus(),n=e.parent(),"static"===e.css("position")?(n.css({position:"relative"}),e.css({position:"relative"})):(t.extend(i,{position:e.css("position"),zIndex:e.css("z-index")}),t.each(["top","left","bottom","right"],(function(t,n){i[n]=e.css(n),isNaN(parseInt(i[n],10))&&(i[n]="auto")})),e.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),e.css(o),n.css(i).show()},removeWrapper:function(e){var i=document.activeElement;return e.parent().is(".ui-effects-wrapper")&&(e.parent().replaceWith(e),(e[0]===i||t.contains(e[0],i))&&t(i).focus()),e},setTransition:function(e,i,n,o){return o=o||{},t.each(i,(function(t,i){var r=e.cssUnit(i);r[0]>0&&(o[i]=r[0]*n+r[1])})),o}}),t.fn.extend({effect:function(){var i=e.apply(this,arguments),n=i.mode,o=i.queue,r=t.effects.effect[i.effect];if(t.fx.off||!r)return n?this[n](i.duration,i.complete):this.each((function(){i.complete&&i.complete.call(this)}));function g(e){var n=t(this),o=i.complete,g=i.mode;function s(){t.isFunction(o)&&o.call(n[0]),t.isFunction(e)&&e()}(n.is(":hidden")?"hide"===g:"show"===g)?(n[g](),s()):r.call(n[0],i,s)}return!1===o?this.each(g):this.queue(o||"fx",g)},show:function(t){return function(n){if(i(n))return t.apply(this,arguments);var o=e.apply(this,arguments);return o.mode="show",this.effect.call(this,o)}}(t.fn.show),hide:function(t){return function(n){if(i(n))return t.apply(this,arguments);var o=e.apply(this,arguments);return o.mode="hide",this.effect.call(this,o)}}(t.fn.hide),toggle:function(t){return function(n){if(i(n)||"boolean"==typeof n)return t.apply(this,arguments);var o=e.apply(this,arguments);return o.mode="toggle",this.effect.call(this,o)}}(t.fn.toggle),cssUnit:function(e){var i=this.css(e),n=[];return t.each(["em","px","%","pt"],(function(t,e){i.indexOf(e)>0&&(n=[parseFloat(i),e])})),n}})}(),m={},t.each(["Quad","Cubic","Quart","Quint","Expo"],(function(t,e){m[e]=function(e){return Math.pow(e,t+2)}})),t.extend(m,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,i=4;t<((e=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*e-2)/22-t,2)}}),t.each(m,(function(e,i){t.easing["easeIn"+e]=i,t.easing["easeOut"+e]=function(t){return 1-i(1-t)},t.easing["easeInOut"+e]=function(t){return t<.5?i(2*t)/2:1-i(-2*t+2)/2}})),t.effects,t.effects.effect.blind=function(e,i){var n,o,r,g=t(this),s=["position","top","bottom","left","right","height","width"],a=t.effects.setMode(g,e.mode||"hide"),A=e.direction||"up",C=/up|down|vertical/.test(A),I=C?"height":"width",l=C?"top":"left",c=/up|left|vertical|horizontal/.test(A),h={},u="show"===a;g.parent().is(".ui-effects-wrapper")?t.effects.save(g.parent(),s):t.effects.save(g,s),g.show(),o=(n=t.effects.createWrapper(g).css({overflow:"hidden"}))[I](),r=parseFloat(n.css(l))||0,h[I]=u?o:0,c||(g.css(C?"bottom":"right",0).css(C?"top":"left","auto").css({position:"absolute"}),h[l]=u?r:o+r),u&&(n.css(I,0),c||n.css(l,r+o)),n.animate(h,{duration:e.duration,easing:e.easing,queue:!1,complete:function(){"hide"===a&&g.hide(),t.effects.restore(g,s),t.effects.removeWrapper(g),i()}})},t.effects.effect.bounce=function(e,i){var n,o,r,g=t(this),s=["position","top","bottom","left","right","height","width"],a=t.effects.setMode(g,e.mode||"effect"),A="hide"===a,C="show"===a,I=e.direction||"up",l=e.distance,c=e.times||5,h=2*c+(C||A?1:0),u=e.duration/h,d=e.easing,p="up"===I||"down"===I?"top":"left",f="up"===I||"left"===I,v=g.queue(),m=v.length;for((C||A)&&s.push("opacity"),t.effects.save(g,s),g.show(),t.effects.createWrapper(g),l||(l=g["top"===p?"outerHeight":"outerWidth"]()/3),C&&((r={opacity:1})[p]=0,g.css("opacity",0).css(p,f?2*-l:2*l).animate(r,u,d)),A&&(l/=Math.pow(2,c-1)),(r={})[p]=0,n=0;n<c;n++)(o={})[p]=(f?"-=":"+=")+l,g.animate(o,u,d).animate(r,u,d),l=A?2*l:l/2;A&&((o={opacity:0})[p]=(f?"-=":"+=")+l,g.animate(o,u,d)),g.queue((function(){A&&g.hide(),t.effects.restore(g,s),t.effects.removeWrapper(g),i()})),m>1&&v.splice.apply(v,[1,0].concat(v.splice(m,h+1))),g.dequeue()},t.effects.effect.clip=function(e,i){var n,o,r,g=t(this),s=["position","top","bottom","left","right","height","width"],a="show"===t.effects.setMode(g,e.mode||"hide"),A="vertical"===(e.direction||"vertical"),C=A?"height":"width",I=A?"top":"left",l={};t.effects.save(g,s),g.show(),n=t.effects.createWrapper(g).css({overflow:"hidden"}),r=(o="IMG"===g[0].tagName?n:g)[C](),a&&(o.css(C,0),o.css(I,r/2)),l[C]=a?r:0,l[I]=a?0:r/2,o.animate(l,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){a||g.hide(),t.effects.restore(g,s),t.effects.removeWrapper(g),i()}})},t.effects.effect.drop=function(e,i){var n,o=t(this),r=["position","top","bottom","left","right","opacity","height","width"],g=t.effects.setMode(o,e.mode||"hide"),s="show"===g,a=e.direction||"left",A="up"===a||"down"===a?"top":"left",C="up"===a||"left"===a?"pos":"neg",I={opacity:s?1:0};t.effects.save(o,r),o.show(),t.effects.createWrapper(o),n=e.distance||o["top"===A?"outerHeight":"outerWidth"](!0)/2,s&&o.css("opacity",0).css(A,"pos"===C?-n:n),I[A]=(s?"pos"===C?"+=":"-=":"pos"===C?"-=":"+=")+n,o.animate(I,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===g&&o.hide(),t.effects.restore(o,r),t.effects.removeWrapper(o),i()}})},t.effects.effect.explode=function(e,i){var n,o,r,g,s,a,A=e.pieces?Math.round(Math.sqrt(e.pieces)):3,C=A,I=t(this),l="show"===t.effects.setMode(I,e.mode||"hide"),c=I.show().css("visibility","hidden").offset(),h=Math.ceil(I.outerWidth()/C),u=Math.ceil(I.outerHeight()/A),d=[];function p(){d.push(this),d.length===A*C&&(I.css({visibility:"visible"}),t(d).remove(),l||I.hide(),i())}for(n=0;n<A;n++)for(g=c.top+n*u,a=n-(A-1)/2,o=0;o<C;o++)r=c.left+o*h,s=o-(C-1)/2,I.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-o*h,top:-n*u}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:h,height:u,left:r+(l?s*h:0),top:g+(l?a*u:0),opacity:l?0:1}).animate({left:r+(l?0:s*h),top:g+(l?0:a*u),opacity:l?1:0},e.duration||500,e.easing,p)},t.effects.effect.fade=function(e,i){var n=t(this),o=t.effects.setMode(n,e.mode||"toggle");n.animate({opacity:o},{queue:!1,duration:e.duration,easing:e.easing,complete:i})},t.effects.effect.fold=function(e,i){var n,o,r=t(this),g=["position","top","bottom","left","right","height","width"],s=t.effects.setMode(r,e.mode||"hide"),a="show"===s,A="hide"===s,C=e.size||15,I=/([0-9]+)%/.exec(C),l=!!e.horizFirst,c=a!==l,h=c?["width","height"]:["height","width"],u=e.duration/2,d={},p={};t.effects.save(r,g),r.show(),n=t.effects.createWrapper(r).css({overflow:"hidden"}),o=c?[n.width(),n.height()]:[n.height(),n.width()],I&&(C=parseInt(I[1],10)/100*o[A?0:1]),a&&n.css(l?{height:0,width:C}:{height:C,width:0}),d[h[0]]=a?o[0]:C,p[h[1]]=a?o[1]:0,n.animate(d,u,e.easing).animate(p,u,e.easing,(function(){A&&r.hide(),t.effects.restore(r,g),t.effects.removeWrapper(r),i()}))},t.effects.effect.highlight=function(e,i){var n=t(this),o=["backgroundImage","backgroundColor","opacity"],r=t.effects.setMode(n,e.mode||"show"),g={backgroundColor:n.css("backgroundColor")};"hide"===r&&(g.opacity=0),t.effects.save(n,o),n.show().css({backgroundImage:"none",backgroundColor:e.color||"#ffff99"}).animate(g,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===r&&n.hide(),t.effects.restore(n,o),i()}})},t.effects.effect.size=function(e,i){var n,o,r,g=t(this),s=["position","top","bottom","left","right","width","height","overflow","opacity"],a=["width","height","overflow"],A=["fontSize"],C=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],I=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],l=t.effects.setMode(g,e.mode||"effect"),c=e.restore||"effect"!==l,h=e.scale||"both",u=e.origin||["middle","center"],d=g.css("position"),p=c?s:["position","top","bottom","left","right","overflow","opacity"],f={height:0,width:0,outerHeight:0,outerWidth:0};"show"===l&&g.show(),n={height:g.height(),width:g.width(),outerHeight:g.outerHeight(),outerWidth:g.outerWidth()},"toggle"===e.mode&&"show"===l?(g.from=e.to||f,g.to=e.from||n):(g.from=e.from||("show"===l?f:n),g.to=e.to||("hide"===l?f:n)),r={from:{y:g.from.height/n.height,x:g.from.width/n.width},to:{y:g.to.height/n.height,x:g.to.width/n.width}},"box"!==h&&"both"!==h||(r.from.y!==r.to.y&&(p=p.concat(C),g.from=t.effects.setTransition(g,C,r.from.y,g.from),g.to=t.effects.setTransition(g,C,r.to.y,g.to)),r.from.x!==r.to.x&&(p=p.concat(I),g.from=t.effects.setTransition(g,I,r.from.x,g.from),g.to=t.effects.setTransition(g,I,r.to.x,g.to))),"content"!==h&&"both"!==h||r.from.y!==r.to.y&&(p=p.concat(A).concat(a),g.from=t.effects.setTransition(g,A,r.from.y,g.from),g.to=t.effects.setTransition(g,A,r.to.y,g.to)),t.effects.save(g,p),g.show(),t.effects.createWrapper(g),g.css("overflow","hidden").css(g.from),u&&(o=t.effects.getBaseline(u,n),g.from.top=(n.outerHeight-g.outerHeight())*o.y,g.from.left=(n.outerWidth-g.outerWidth())*o.x,g.to.top=(n.outerHeight-g.to.outerHeight)*o.y,g.to.left=(n.outerWidth-g.to.outerWidth)*o.x),g.css(g.from),"content"!==h&&"both"!==h||(C=C.concat(["marginTop","marginBottom"]).concat(A),I=I.concat(["marginLeft","marginRight"]),a=s.concat(C).concat(I),g.find("*[width]").each((function(){var i=t(this),n=i.height(),o=i.width(),g=i.outerHeight(),s=i.outerWidth();c&&t.effects.save(i,a),i.from={height:n*r.from.y,width:o*r.from.x,outerHeight:g*r.from.y,outerWidth:s*r.from.x},i.to={height:n*r.to.y,width:o*r.to.x,outerHeight:n*r.to.y,outerWidth:o*r.to.x},r.from.y!==r.to.y&&(i.from=t.effects.setTransition(i,C,r.from.y,i.from),i.to=t.effects.setTransition(i,C,r.to.y,i.to)),r.from.x!==r.to.x&&(i.from=t.effects.setTransition(i,I,r.from.x,i.from),i.to=t.effects.setTransition(i,I,r.to.x,i.to)),i.css(i.from),i.animate(i.to,e.duration,e.easing,(function(){c&&t.effects.restore(i,a)}))}))),g.animate(g.to,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){0===g.to.opacity&&g.css("opacity",g.from.opacity),"hide"===l&&g.hide(),t.effects.restore(g,p),c||("static"===d?g.css({position:"relative",top:g.to.top,left:g.to.left}):t.each(["top","left"],(function(t,e){g.css(e,(function(e,i){var n=parseInt(i,10),o=t?g.to.left:g.to.top;return"auto"===i?o+"px":n+o+"px"}))}))),t.effects.removeWrapper(g),i()}})},t.effects.effect.scale=function(e,i){var n=t(this),o=t.extend(!0,{},e),r=t.effects.setMode(n,e.mode||"effect"),g=parseInt(e.percent,10)||(0===parseInt(e.percent,10)||"hide"===r?0:100),s=e.direction||"both",a=e.origin,A={height:n.height(),width:n.width(),outerHeight:n.outerHeight(),outerWidth:n.outerWidth()},C="horizontal"!==s?g/100:1,I="vertical"!==s?g/100:1;o.effect="size",o.queue=!1,o.complete=i,"effect"!==r&&(o.origin=a||["middle","center"],o.restore=!0),o.from=e.from||("show"===r?{height:0,width:0,outerHeight:0,outerWidth:0}:A),o.to={height:A.height*C,width:A.width*I,outerHeight:A.outerHeight*C,outerWidth:A.outerWidth*I},o.fade&&("show"===r&&(o.from.opacity=0,o.to.opacity=1),"hide"===r&&(o.from.opacity=1,o.to.opacity=0)),n.effect(o)},t.effects.effect.puff=function(e,i){var n=t(this),o=t.effects.setMode(n,e.mode||"hide"),r="hide"===o,g=parseInt(e.percent,10)||150,s=g/100,a={height:n.height(),width:n.width(),outerHeight:n.outerHeight(),outerWidth:n.outerWidth()};t.extend(e,{effect:"scale",queue:!1,fade:!0,mode:o,complete:i,percent:r?g:100,from:r?a:{height:a.height*s,width:a.width*s,outerHeight:a.outerHeight*s,outerWidth:a.outerWidth*s}}),n.effect(e)},t.effects.effect.pulsate=function(e,i){var n,o=t(this),r=t.effects.setMode(o,e.mode||"show"),g="show"===r,s="hide"===r,a=g||"hide"===r,A=2*(e.times||5)+(a?1:0),C=e.duration/A,I=0,l=o.queue(),c=l.length;for(!g&&o.is(":visible")||(o.css("opacity",0).show(),I=1),n=1;n<A;n++)o.animate({opacity:I},C,e.easing),I=1-I;o.animate({opacity:I},C,e.easing),o.queue((function(){s&&o.hide(),i()})),c>1&&l.splice.apply(l,[1,0].concat(l.splice(c,A+1))),o.dequeue()},t.effects.effect.shake=function(e,i){var n,o=t(this),r=["position","top","bottom","left","right","height","width"],g=t.effects.setMode(o,e.mode||"effect"),s=e.direction||"left",a=e.distance||20,A=e.times||3,C=2*A+1,I=Math.round(e.duration/C),l="up"===s||"down"===s?"top":"left",c="up"===s||"left"===s,h={},u={},d={},p=o.queue(),f=p.length;for(t.effects.save(o,r),o.show(),t.effects.createWrapper(o),h[l]=(c?"-=":"+=")+a,u[l]=(c?"+=":"-=")+2*a,d[l]=(c?"-=":"+=")+2*a,o.animate(h,I,e.easing),n=1;n<A;n++)o.animate(u,I,e.easing).animate(d,I,e.easing);o.animate(u,I,e.easing).animate(h,I/2,e.easing).queue((function(){"hide"===g&&o.hide(),t.effects.restore(o,r),t.effects.removeWrapper(o),i()})),f>1&&p.splice.apply(p,[1,0].concat(p.splice(f,C+1))),o.dequeue()},t.effects.effect.slide=function(e,i){var n,o=t(this),r=["position","top","bottom","left","right","width","height"],g=t.effects.setMode(o,e.mode||"show"),s="show"===g,a=e.direction||"left",A="up"===a||"down"===a?"top":"left",C="up"===a||"left"===a,I={};t.effects.save(o,r),o.show(),n=e.distance||o["top"===A?"outerHeight":"outerWidth"](!0),t.effects.createWrapper(o).css({overflow:"hidden"}),s&&o.css(A,C?isNaN(n)?"-"+n:-n:n),I[A]=(s?C?"+=":"-=":C?"-=":"+=")+n,o.animate(I,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===g&&o.hide(),t.effects.restore(o,r),t.effects.removeWrapper(o),i()}})},t.effects.effect.transfer=function(e,i){var n=t(this),o=t(e.to),r="fixed"===o.css("position"),g=t("body"),s=r?g.scrollTop():0,a=r?g.scrollLeft():0,A=o.offset(),C={top:A.top-s,left:A.left-a,height:o.innerHeight(),width:o.innerWidth()},I=n.offset(),l=t("<div class='ui-effects-transfer'></div>").appendTo(document.body).addClass(e.className).css({top:I.top-s,left:I.left-a,height:n.innerHeight(),width:n.innerWidth(),position:r?"fixed":"absolute"}).animate(C,e.duration,e.easing,(function(){l.remove(),i()}))},t.widget("ui.progressbar",{version:"1.11.1",options:{max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min}),this.valueDiv=t("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element),this._refreshValue()},_destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.valueDiv.remove()},value:function(t){if(void 0===t)return this.options.value;this.options.value=this._constrainedValue(t),this._refreshValue()},_constrainedValue:function(t){return void 0===t&&(t=this.options.value),this.indeterminate=!1===t,"number"!=typeof t&&(t=0),!this.indeterminate&&Math.min(this.options.max,Math.max(this.min,t))},_setOptions:function(t){var e=t.value;delete t.value,this._super(t),this.options.value=this._constrainedValue(e),this._refreshValue()},_setOption:function(t,e){"max"===t&&(e=Math.max(this.min,e)),"disabled"===t&&this.element.toggleClass("ui-state-disabled",!!e).attr("aria-disabled",e),this._super(t,e)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var e=this.options.value,i=this._percentage();this.valueDiv.toggle(this.indeterminate||e>this.min).toggleClass("ui-corner-right",e===this.options.max).width(i.toFixed(0)+"%"),this.element.toggleClass("ui-progressbar-indeterminate",this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=t("<div class='ui-progressbar-overlay'></div>").appendTo(this.valueDiv))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":e}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==e&&(this.oldValue=e,this._trigger("change")),e===this.options.max&&this._trigger("complete")}}),t.widget("ui.selectable",t.ui.mouse,{version:"1.11.1",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var e,i=this;this.element.addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){(e=t(i.options.filter,i.element[0])).addClass("ui-selectee"),e.each((function(){var e=t(this),i=e.offset();t.data(this,"selectable-item",{element:this,$element:e,left:i.left,top:i.top,right:i.left+e.outerWidth(),bottom:i.top+e.outerHeight(),startselected:!1,selected:e.hasClass("ui-selected"),selecting:e.hasClass("ui-selecting"),unselecting:e.hasClass("ui-unselecting")})}))},this.refresh(),this.selectees=e.addClass("ui-selectee"),this._mouseInit(),this.helper=t("<div class='ui-selectable-helper'></div>")},_destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item"),this.element.removeClass("ui-selectable ui-selectable-disabled"),this._mouseDestroy()},_mouseStart:function(e){var i=this,n=this.options;this.opos=[e.pageX,e.pageY],this.options.disabled||(this.selectees=t(n.filter,this.element[0]),this._trigger("start",e),t(n.appendTo).append(this.helper),this.helper.css({left:e.pageX,top:e.pageY,width:0,height:0}),n.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each((function(){var n=t.data(this,"selectable-item");n.startselected=!0,e.metaKey||e.ctrlKey||(n.$element.removeClass("ui-selected"),n.selected=!1,n.$element.addClass("ui-unselecting"),n.unselecting=!0,i._trigger("unselecting",e,{unselecting:n.element}))})),t(e.target).parents().addBack().each((function(){var n,o=t.data(this,"selectable-item");if(o)return n=!e.metaKey&&!e.ctrlKey||!o.$element.hasClass("ui-selected"),o.$element.removeClass(n?"ui-unselecting":"ui-selected").addClass(n?"ui-selecting":"ui-unselecting"),o.unselecting=!n,o.selecting=n,o.selected=n,n?i._trigger("selecting",e,{selecting:o.element}):i._trigger("unselecting",e,{unselecting:o.element}),!1})))},_mouseDrag:function(e){if(this.dragged=!0,!this.options.disabled){var i,n=this,o=this.options,r=this.opos[0],g=this.opos[1],s=e.pageX,a=e.pageY;return r>s&&(i=s,s=r,r=i),g>a&&(i=a,a=g,g=i),this.helper.css({left:r,top:g,width:s-r,height:a-g}),this.selectees.each((function(){var i=t.data(this,"selectable-item"),A=!1;i&&i.element!==n.element[0]&&("touch"===o.tolerance?A=!(i.left>s||i.right<r||i.top>a||i.bottom<g):"fit"===o.tolerance&&(A=i.left>r&&i.right<s&&i.top>g&&i.bottom<a),A?(i.selected&&(i.$element.removeClass("ui-selected"),i.selected=!1),i.unselecting&&(i.$element.removeClass("ui-unselecting"),i.unselecting=!1),i.selecting||(i.$element.addClass("ui-selecting"),i.selecting=!0,n._trigger("selecting",e,{selecting:i.element}))):(i.selecting&&((e.metaKey||e.ctrlKey)&&i.startselected?(i.$element.removeClass("ui-selecting"),i.selecting=!1,i.$element.addClass("ui-selected"),i.selected=!0):(i.$element.removeClass("ui-selecting"),i.selecting=!1,i.startselected&&(i.$element.addClass("ui-unselecting"),i.unselecting=!0),n._trigger("unselecting",e,{unselecting:i.element}))),i.selected&&(e.metaKey||e.ctrlKey||i.startselected||(i.$element.removeClass("ui-selected"),i.selected=!1,i.$element.addClass("ui-unselecting"),i.unselecting=!0,n._trigger("unselecting",e,{unselecting:i.element})))))})),!1}},_mouseStop:function(e){var i=this;return this.dragged=!1,t(".ui-unselecting",this.element[0]).each((function(){var n=t.data(this,"selectable-item");n.$element.removeClass("ui-unselecting"),n.unselecting=!1,n.startselected=!1,i._trigger("unselected",e,{unselected:n.element})})),t(".ui-selecting",this.element[0]).each((function(){var n=t.data(this,"selectable-item");n.$element.removeClass("ui-selecting").addClass("ui-selected"),n.selecting=!1,n.selected=!0,n.startselected=!0,i._trigger("selected",e,{selected:n.element})})),this._trigger("stop",e),this.helper.remove(),!1}}),t.widget("ui.selectmenu",{version:"1.11.1",defaultElement:"<select>",options:{appendTo:null,disabled:null,icons:{button:"ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"},width:null,change:null,close:null,focus:null,open:null,select:null},_create:function(){var t=this.element.uniqueId().attr("id");this.ids={element:t,button:t+"-button",menu:t+"-menu"},this._drawButton(),this._drawMenu(),this.options.disabled&&this.disable()},_drawButton:function(){var e=this,i=this.element.attr("tabindex");this.label=t("label[for='"+this.ids.element+"']").attr("for",this.ids.button),this._on(this.label,{click:function(t){this.button.focus(),t.preventDefault()}}),this.element.hide(),this.button=t("<span>",{class:"ui-selectmenu-button ui-widget ui-state-default ui-corner-all",tabindex:i||this.options.disabled?-1:0,id:this.ids.button,role:"combobox","aria-expanded":"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":"true"}).insertAfter(this.element),t("<span>",{class:"ui-icon "+this.options.icons.button}).prependTo(this.button),this.buttonText=t("<span>",{class:"ui-selectmenu-text"}).appendTo(this.button),this._setText(this.buttonText,this.element.find("option:selected").text()),this._resizeButton(),this._on(this.button,this._buttonEvents),this.button.one("focusin",(function(){e.menuItems||e._refreshMenu()})),this._hoverable(this.button),this._focusable(this.button)},_drawMenu:function(){var e=this;this.menu=t("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu}),this.menuWrap=t("<div>",{class:"ui-selectmenu-menu ui-front"}).append(this.menu).appendTo(this._appendTo()),this.menuInstance=this.menu.menu({role:"listbox",select:function(t,i){t.preventDefault(),e._select(i.item.data("ui-selectmenu-item"),t)},focus:function(t,i){var n=i.item.data("ui-selectmenu-item");null!=e.focusIndex&&n.index!==e.focusIndex&&(e._trigger("focus",t,{item:n}),e.isOpen||e._select(n,t)),e.focusIndex=n.index,e.button.attr("aria-activedescendant",e.menuItems.eq(n.index).attr("id"))}}).menu("instance"),this.menu.addClass("ui-corner-bottom").removeClass("ui-corner-all"),this.menuInstance._off(this.menu,"mouseleave"),this.menuInstance._closeOnDocumentClick=function(){return!1},this.menuInstance._isDivider=function(){return!1}},refresh:function(){this._refreshMenu(),this._setText(this.buttonText,this._getSelectedItem().text()),this.options.width||this._resizeButton()},_refreshMenu:function(){this.menu.empty();var t,e=this.element.find("option");e.length&&(this._parseOptions(e),this._renderMenu(this.menu,this.items),this.menuInstance.refresh(),this.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup"),t=this._getSelectedItem(),this.menuInstance.focus(null,t),this._setAria(t.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(t){this.options.disabled||(this.menuItems?(this.menu.find(".ui-state-focus").removeClass("ui-state-focus"),this.menuInstance.focus(null,this._getSelectedItem())):this._refreshMenu(),this.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this._position(),this._on(this.document,this._documentClick),this._trigger("open",t))},_position:function(){this.menuWrap.position(t.extend({of:this.button},this.options.position))},close:function(t){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this._off(this.document),this._trigger("close",t))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderMenu:function(e,i){var n=this,o="";t.each(i,(function(i,r){r.optgroup!==o&&(t("<li>",{class:"ui-selectmenu-optgroup ui-menu-divider"+(r.element.parent("optgroup").prop("disabled")?" ui-state-disabled":""),text:r.optgroup}).appendTo(e),o=r.optgroup),n._renderItemData(e,r)}))},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-selectmenu-item",e)},_renderItem:function(e,i){var n=t("<li>");return i.disabled&&n.addClass("ui-state-disabled"),this._setText(n,i.label),n.appendTo(e)},_setText:function(t,e){e?t.text(e):t.html("&#160;")},_move:function(t,e){var i,n,o=".ui-menu-item";this.isOpen?i=this.menuItems.eq(this.focusIndex):(i=this.menuItems.eq(this.element[0].selectedIndex),o+=":not(.ui-state-disabled)"),(n="first"===t||"last"===t?i["first"===t?"prevAll":"nextAll"](o).eq(-1):i[t+"All"](o).eq(0)).length&&this.menuInstance.focus(e,n)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex)},_toggle:function(t){this[this.isOpen?"close":"open"](t)},_documentClick:{mousedown:function(e){this.isOpen&&(t(e.target).closest(".ui-selectmenu-menu, #"+this.ids.button).length||this.close(e))}},_buttonEvents:{mousedown:function(t){t.preventDefault()},click:"_toggle",keydown:function(e){var i=!0;switch(e.keyCode){case t.ui.keyCode.TAB:case t.ui.keyCode.ESCAPE:this.close(e),i=!1;break;case t.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(e);break;case t.ui.keyCode.UP:e.altKey?this._toggle(e):this._move("prev",e);break;case t.ui.keyCode.DOWN:e.altKey?this._toggle(e):this._move("next",e);break;case t.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(e):this._toggle(e);break;case t.ui.keyCode.LEFT:this._move("prev",e);break;case t.ui.keyCode.RIGHT:this._move("next",e);break;case t.ui.keyCode.HOME:case t.ui.keyCode.PAGE_UP:this._move("first",e);break;case t.ui.keyCode.END:case t.ui.keyCode.PAGE_DOWN:this._move("last",e);break;default:this.menu.trigger(e),i=!1}i&&e.preventDefault()}},_selectFocusedItem:function(t){var e=this.menuItems.eq(this.focusIndex);e.hasClass("ui-state-disabled")||this._select(e.data("ui-selectmenu-item"),t)},_select:function(t,e){var i=this.element[0].selectedIndex;this.element[0].selectedIndex=t.index,this._setText(this.buttonText,t.label),this._setAria(t),this._trigger("select",e,{item:t}),t.index!==i&&this._trigger("change",e,{item:t}),this.close(e)},_setAria:function(t){var e=this.menuItems.eq(t.index).attr("id");this.button.attr({"aria-labelledby":e,"aria-activedescendant":e}),this.menu.attr("aria-activedescendant",e)},_setOption:function(t,e){"icons"===t&&this.button.find("span.ui-icon").removeClass(this.options.icons.button).addClass(e.button),this._super(t,e),"appendTo"===t&&this.menuWrap.appendTo(this._appendTo()),"disabled"===t&&(this.menuInstance.option("disabled",e),this.button.toggleClass("ui-state-disabled",e).attr("aria-disabled",e),this.element.prop("disabled",e),e?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)),"width"===t&&this._resizeButton()},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e&&e[0]||(e=this.element.closest(".ui-front")),e.length||(e=this.document[0].body),e},_toggleAttr:function(){this.button.toggleClass("ui-corner-top",this.isOpen).toggleClass("ui-corner-all",!this.isOpen).attr("aria-expanded",this.isOpen),this.menuWrap.toggleClass("ui-selectmenu-open",this.isOpen),this.menu.attr("aria-hidden",!this.isOpen)},_resizeButton:function(){var t=this.options.width;t||(t=this.element.show().outerWidth(),this.element.hide()),this.button.outerWidth(t)},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){return{disabled:this.element.prop("disabled")}},_parseOptions:function(e){var i=[];e.each((function(e,n){var o=t(n),r=o.parent("optgroup");i.push({element:o,index:e,value:o.attr("value"),label:o.text(),optgroup:r.attr("label")||"",disabled:r.prop("disabled")||o.prop("disabled")})})),this.items=i},_destroy:function(){this.menuWrap.remove(),this.button.remove(),this.element.show(),this.element.removeUniqueId(),this.label.attr("for",this.ids.element)}}),t.widget("ui.slider",t.ui.mouse,{version:"1.11.1",widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all"),this._refresh(),this._setOption("disabled",this.options.disabled),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,i,n=this.options,o=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),r=[];for(i=n.values&&n.values.length||1,o.length>i&&(o.slice(i).remove(),o=o.slice(0,i)),e=o.length;e<i;e++)r.push("<span class='ui-slider-handle ui-state-default ui-corner-all' tabindex='0'></span>");this.handles=o.add(t(r.join("")).appendTo(this.element)),this.handle=this.handles.eq(0),this.handles.each((function(e){t(this).data("ui-slider-handle-index",e)}))},_createRange:function(){var e=this.options,i="";e.range?(!0===e.range&&(e.values?e.values.length&&2!==e.values.length?e.values=[e.values[0],e.values[0]]:t.isArray(e.values)&&(e.values=e.values.slice(0)):e.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?this.range.removeClass("ui-slider-range-min ui-slider-range-max").css({left:"",bottom:""}):(this.range=t("<div></div>").appendTo(this.element),i="ui-slider-range ui-widget-header ui-corner-all"),this.range.addClass(i+("min"===e.range||"max"===e.range?" ui-slider-range-"+e.range:""))):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-widget ui-widget-content ui-corner-all"),this._mouseDestroy()},_mouseCapture:function(e){var i,n,o,r,g,s,a,A=this,C=this.options;return!C.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),i={x:e.pageX,y:e.pageY},n=this._normValueFromMouse(i),o=this._valueMax()-this._valueMin()+1,this.handles.each((function(e){var i=Math.abs(n-A.values(e));(o>i||o===i&&(e===A._lastChangedValue||A.values(e)===C.min))&&(o=i,r=t(this),g=e)})),!1!==this._start(e,g)&&(this._mouseSliding=!0,this._handleIndex=g,r.addClass("ui-state-active").focus(),s=r.offset(),a=!t(e.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=a?{left:0,top:0}:{left:e.pageX-s.left-r.width()/2,top:e.pageY-s.top-r.height()/2-(parseInt(r.css("borderTopWidth"),10)||0)-(parseInt(r.css("borderBottomWidth"),10)||0)+(parseInt(r.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,g,n),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},i=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,i),!1},_mouseStop:function(t){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e,i,n,o,r;return"horizontal"===this.orientation?(e=this.elementSize.width,i=t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,i=t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),(n=i/e)>1&&(n=1),n<0&&(n=0),"vertical"===this.orientation&&(n=1-n),o=this._valueMax()-this._valueMin(),r=this._valueMin()+n*o,this._trimAlignValue(r)},_start:function(t,e){var i={handle:this.handles[e],value:this.value()};return this.options.values&&this.options.values.length&&(i.value=this.values(e),i.values=this.values()),this._trigger("start",t,i)},_slide:function(t,e,i){var n,o,r;this.options.values&&this.options.values.length?(n=this.values(e?0:1),2===this.options.values.length&&!0===this.options.range&&(0===e&&i>n||1===e&&i<n)&&(i=n),i!==this.values(e)&&((o=this.values())[e]=i,r=this._trigger("slide",t,{handle:this.handles[e],value:i,values:o}),n=this.values(e?0:1),!1!==r&&this.values(e,i))):i!==this.value()&&!1!==(r=this._trigger("slide",t,{handle:this.handles[e],value:i}))&&this.value(i)},_stop:function(t,e){var i={handle:this.handles[e],value:this.value()};this.options.values&&this.options.values.length&&(i.value=this.values(e),i.values=this.values()),this._trigger("stop",t,i)},_change:function(t,e){if(!this._keySliding&&!this._mouseSliding){var i={handle:this.handles[e],value:this.value()};this.options.values&&this.options.values.length&&(i.value=this.values(e),i.values=this.values()),this._lastChangedValue=e,this._trigger("change",t,i)}},value:function(t){return arguments.length?(this.options.value=this._trimAlignValue(t),this._refreshValue(),void this._change(null,0)):this._value()},values:function(e,i){var n,o,r;if(arguments.length>1)return this.options.values[e]=this._trimAlignValue(i),this._refreshValue(),void this._change(null,e);if(!arguments.length)return this._values();if(!t.isArray(arguments[0]))return this.options.values&&this.options.values.length?this._values(e):this.value();for(n=this.options.values,o=arguments[0],r=0;r<n.length;r+=1)n[r]=this._trimAlignValue(o[r]),this._change(null,r);this._refreshValue()},_setOption:function(e,i){var n,o=0;switch("range"===e&&!0===this.options.range&&("min"===i?(this.options.value=this._values(0),this.options.values=null):"max"===i&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),t.isArray(this.options.values)&&(o=this.options.values.length),"disabled"===e&&this.element.toggleClass("ui-state-disabled",!!i),this._super(e,i),e){case"orientation":this._detectOrientation(),this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation),this._refreshValue(),this.handles.css("horizontal"===i?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),n=0;n<o;n+=1)this._change(null,n);this._animateOff=!1;break;case"min":case"max":this._animateOff=!0,this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_value:function(){var t=this.options.value;return t=this._trimAlignValue(t)},_values:function(t){var e,i,n;if(arguments.length)return e=this.options.values[t],e=this._trimAlignValue(e);if(this.options.values&&this.options.values.length){for(i=this.options.values.slice(),n=0;n<i.length;n+=1)i[n]=this._trimAlignValue(i[n]);return i}return[]},_trimAlignValue:function(t){if(t<=this._valueMin())return this._valueMin();if(t>=this._valueMax())return this._valueMax();var e=this.options.step>0?this.options.step:1,i=(t-this._valueMin())%e,n=t-i;return 2*Math.abs(i)>=e&&(n+=i>0?e:-e),parseFloat(n.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var e,i,n,o,r,g=this.options.range,s=this.options,a=this,A=!this._animateOff&&s.animate,C={};this.options.values&&this.options.values.length?this.handles.each((function(n){i=(a.values(n)-a._valueMin())/(a._valueMax()-a._valueMin())*100,C["horizontal"===a.orientation?"left":"bottom"]=i+"%",t(this).stop(1,1)[A?"animate":"css"](C,s.animate),!0===a.options.range&&("horizontal"===a.orientation?(0===n&&a.range.stop(1,1)[A?"animate":"css"]({left:i+"%"},s.animate),1===n&&a.range[A?"animate":"css"]({width:i-e+"%"},{queue:!1,duration:s.animate})):(0===n&&a.range.stop(1,1)[A?"animate":"css"]({bottom:i+"%"},s.animate),1===n&&a.range[A?"animate":"css"]({height:i-e+"%"},{queue:!1,duration:s.animate}))),e=i})):(n=this.value(),o=this._valueMin(),r=this._valueMax(),i=r!==o?(n-o)/(r-o)*100:0,C["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[A?"animate":"css"](C,s.animate),"min"===g&&"horizontal"===this.orientation&&this.range.stop(1,1)[A?"animate":"css"]({width:i+"%"},s.animate),"max"===g&&"horizontal"===this.orientation&&this.range[A?"animate":"css"]({width:100-i+"%"},{queue:!1,duration:s.animate}),"min"===g&&"vertical"===this.orientation&&this.range.stop(1,1)[A?"animate":"css"]({height:i+"%"},s.animate),"max"===g&&"vertical"===this.orientation&&this.range[A?"animate":"css"]({height:100-i+"%"},{queue:!1,duration:s.animate}))},_handleEvents:{keydown:function(e){var i,n,o,r=t(e.target).data("ui-slider-handle-index");switch(e.keyCode){case t.ui.keyCode.HOME:case t.ui.keyCode.END:case t.ui.keyCode.PAGE_UP:case t.ui.keyCode.PAGE_DOWN:case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(e.preventDefault(),!this._keySliding&&(this._keySliding=!0,t(e.target).addClass("ui-state-active"),!1===this._start(e,r)))return}switch(o=this.options.step,i=n=this.options.values&&this.options.values.length?this.values(r):this.value(),e.keyCode){case t.ui.keyCode.HOME:n=this._valueMin();break;case t.ui.keyCode.END:n=this._valueMax();break;case t.ui.keyCode.PAGE_UP:n=this._trimAlignValue(i+(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.PAGE_DOWN:n=this._trimAlignValue(i-(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:if(i===this._valueMax())return;n=this._trimAlignValue(i+o);break;case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(i===this._valueMin())return;n=this._trimAlignValue(i-o)}this._slide(e,r,n)},keyup:function(e){var i=t(e.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(e,i),this._change(e,i),t(e.target).removeClass("ui-state-active"))}}}),t.widget("ui.sortable",t.ui.mouse,{version:"1.11.1",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(t,e,i){return t>=e&&t<e+i},_isFloating:function(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))},_create:function(){var t=this.options;this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.floating=!!this.items.length&&("x"===t.axis||this._isFloating(this.items[0].item)),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(t,e){this._super(t,e),"handle"===t&&this._setHandleClassName()},_setHandleClassName:function(){this.element.find(".ui-sortable-handle").removeClass("ui-sortable-handle"),t.each(this.items,(function(){(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item).addClass("ui-sortable-handle")}))},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").find(".ui-sortable-handle").removeClass("ui-sortable-handle"),this._mouseDestroy();for(var t=this.items.length-1;t>=0;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(e,i){var n=null,o=!1,r=this;return!(this.reverting||this.options.disabled||"static"===this.options.type||(this._refreshItems(e),t(e.target).parents().each((function(){if(t.data(this,r.widgetName+"-item")===r)return n=t(this),!1})),t.data(e.target,r.widgetName+"-item")===r&&(n=t(e.target)),!n||this.options.handle&&!i&&(t(this.options.handle,n).find("*").addBack().each((function(){this===e.target&&(o=!0)})),!o)||(this.currentItem=n,this._removeCurrentsFromItems(),0)))},_mouseStart:function(e,i,n){var o,r,g=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,g.cursorAt&&this._adjustOffsetFromHelper(g.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),g.containment&&this._setContainment(),g.cursor&&"auto"!==g.cursor&&(r=this.document.find("body"),this.storedCursor=r.css("cursor"),r.css("cursor",g.cursor),this.storedStylesheet=t("<style>*{ cursor: "+g.cursor+" !important; }</style>").appendTo(r)),g.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",g.opacity)),g.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",g.zIndex)),this.scrollParent[0]!==document&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!n)for(o=this.containers.length-1;o>=0;o--)this.containers[o]._trigger("activate",e,this._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!g.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(e),!0},_mouseDrag:function(e){var i,n,o,r,g=this.options,s=!1;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==document&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY<g.scrollSensitivity?this.scrollParent[0].scrollTop=s=this.scrollParent[0].scrollTop+g.scrollSpeed:e.pageY-this.overflowOffset.top<g.scrollSensitivity&&(this.scrollParent[0].scrollTop=s=this.scrollParent[0].scrollTop-g.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX<g.scrollSensitivity?this.scrollParent[0].scrollLeft=s=this.scrollParent[0].scrollLeft+g.scrollSpeed:e.pageX-this.overflowOffset.left<g.scrollSensitivity&&(this.scrollParent[0].scrollLeft=s=this.scrollParent[0].scrollLeft-g.scrollSpeed)):(e.pageY-t(document).scrollTop()<g.scrollSensitivity?s=t(document).scrollTop(t(document).scrollTop()-g.scrollSpeed):t(window).height()-(e.pageY-t(document).scrollTop())<g.scrollSensitivity&&(s=t(document).scrollTop(t(document).scrollTop()+g.scrollSpeed)),e.pageX-t(document).scrollLeft()<g.scrollSensitivity?s=t(document).scrollLeft(t(document).scrollLeft()-g.scrollSpeed):t(window).width()-(e.pageX-t(document).scrollLeft())<g.scrollSensitivity&&(s=t(document).scrollLeft(t(document).scrollLeft()+g.scrollSpeed))),!1!==s&&t.ui.ddmanager&&!g.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e)),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),i=this.items.length-1;i>=0;i--)if(o=(n=this.items[i]).item[0],(r=this._intersectsWithPointer(n))&&n.instance===this.currentContainer&&!(o===this.currentItem[0]||this.placeholder[1===r?"next":"prev"]()[0]===o||t.contains(this.placeholder[0],o)||"semi-dynamic"===this.options.type&&t.contains(this.element[0],o))){if(this.direction=1===r?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(n))break;this._rearrange(e,n),this._trigger("change",e,this._uiHash());break}return this._contactContainers(e),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,i){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var n=this,o=this.placeholder.offset(),r=this.options.axis,g={};r&&"x"!==r||(g.left=o.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollLeft)),r&&"y"!==r||(g.top=o.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,t(this.helper).animate(g,parseInt(this.options.revert,10)||500,(function(){n._clear(e)}))}else this._clear(e,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp({target:null}),"original"===this.options.helper?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},t(i).each((function(){var i=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);i&&n.push((e.key||i[1]+"[]")+"="+(e.key&&e.expression?i[1]:i[2]))})),!n.length&&e.key&&n.push(e.key+"="),n.join("&")},toArray:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},i.each((function(){n.push(t(e.item||this).attr(e.attribute||"id")||"")})),n},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,n=this.positionAbs.top,o=n+this.helperProportions.height,r=t.left,g=r+t.width,s=t.top,a=s+t.height,A=this.offset.click.top,C=this.offset.click.left,I="x"===this.options.axis||n+A>s&&n+A<a,l="y"===this.options.axis||e+C>r&&e+C<g,c=I&&l;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?c:r<e+this.helperProportions.width/2&&i-this.helperProportions.width/2<g&&s<n+this.helperProportions.height/2&&o-this.helperProportions.height/2<a},_intersectsWithPointer:function(t){var e="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),i="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width),n=e&&i,o=this._getDragVerticalDirection(),r=this._getDragHorizontalDirection();return!!n&&(this.floating?r&&"right"===r||"down"===o?2:1:o&&("down"===o?2:1))},_intersectsWithSides:function(t){var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),i=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),n=this._getDragVerticalDirection(),o=this._getDragHorizontalDirection();return this.floating&&o?"right"===o&&i||"left"===o&&!i:n&&("down"===n&&e||"up"===n&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!==t&&(t>0?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!==t&&(t>0?"right":"left")},refresh:function(t){return this._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){var i,n,o,r,g=[],s=[],a=this._connectWith();if(a&&e)for(i=a.length-1;i>=0;i--)for(n=(o=t(a[i])).length-1;n>=0;n--)(r=t.data(o[n],this.widgetFullName))&&r!==this&&!r.options.disabled&&s.push([t.isFunction(r.options.items)?r.options.items.call(r.element):t(r.options.items,r.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),r]);function A(){g.push(this)}for(s.push([t.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),i=s.length-1;i>=0;i--)s[i][0].each(A);return t(g)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,(function(t){for(var i=0;i<e.length;i++)if(e[i]===t.item[0])return!1;return!0}))},_refreshItems:function(e){this.items=[],this.containers=[this];var i,n,o,r,g,s,a,A,C=this.items,I=[[t.isFunction(this.options.items)?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],l=this._connectWith();if(l&&this.ready)for(i=l.length-1;i>=0;i--)for(n=(o=t(l[i])).length-1;n>=0;n--)(r=t.data(o[n],this.widgetFullName))&&r!==this&&!r.options.disabled&&(I.push([t.isFunction(r.options.items)?r.options.items.call(r.element[0],e,{item:this.currentItem}):t(r.options.items,r.element),r]),this.containers.push(r));for(i=I.length-1;i>=0;i--)for(g=I[i][1],n=0,A=(s=I[i][0]).length;n<A;n++)(a=t(s[n])).data(this.widgetName+"-item",g),C.push({item:a,instance:g,width:0,height:0,left:0,top:0})},refreshPositions:function(e){var i,n,o,r;for(this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),i=this.items.length-1;i>=0;i--)(n=this.items[i]).instance!==this.currentContainer&&this.currentContainer&&n.item[0]!==this.currentItem[0]||(o=this.options.toleranceElement?t(this.options.toleranceElement,n.item):n.item,e||(n.width=o.outerWidth(),n.height=o.outerHeight()),r=o.offset(),n.left=r.left,n.top=r.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(i=this.containers.length-1;i>=0;i--)r=this.containers[i].element.offset(),this.containers[i].containerCache.left=r.left,this.containers[i].containerCache.top=r.top,this.containers[i].containerCache.width=this.containers[i].element.outerWidth(),this.containers[i].containerCache.height=this.containers[i].element.outerHeight();return this},_createPlaceholder:function(e){var i,n=(e=e||this).options;n.placeholder&&n.placeholder.constructor!==String||(i=n.placeholder,n.placeholder={element:function(){var n=e.currentItem[0].nodeName.toLowerCase(),o=t("<"+n+">",e.document[0]).addClass(i||e.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper");return"tr"===n?e.currentItem.children().each((function(){t("<td>&#160;</td>",e.document[0]).attr("colspan",t(this).attr("colspan")||1).appendTo(o)})):"img"===n&&o.attr("src",e.currentItem.attr("src")),i||o.css("visibility","hidden"),o},update:function(t,o){i&&!n.forcePlaceholderSize||(o.height()||o.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),o.width()||o.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)))}}),e.placeholder=t(n.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),n.placeholder.update(e,e.placeholder)},_contactContainers:function(e){var i,n,o,r,g,s,a,A,C,I,l=null,c=null;for(i=this.containers.length-1;i>=0;i--)if(!t.contains(this.currentItem[0],this.containers[i].element[0]))if(this._intersectsWith(this.containers[i].containerCache)){if(l&&t.contains(this.containers[i].element[0],l.element[0]))continue;l=this.containers[i],c=i}else this.containers[i].containerCache.over&&(this.containers[i]._trigger("out",e,this._uiHash(this)),this.containers[i].containerCache.over=0);if(l)if(1===this.containers.length)this.containers[c].containerCache.over||(this.containers[c]._trigger("over",e,this._uiHash(this)),this.containers[c].containerCache.over=1);else{for(o=1e4,r=null,g=(C=l.floating||this._isFloating(this.currentItem))?"left":"top",s=C?"width":"height",I=C?"clientX":"clientY",n=this.items.length-1;n>=0;n--)t.contains(this.containers[c].element[0],this.items[n].item[0])&&this.items[n].item[0]!==this.currentItem[0]&&(a=this.items[n].item.offset()[g],A=!1,e[I]-a>this.items[n][s]/2&&(A=!0),Math.abs(e[I]-a)<o&&(o=Math.abs(e[I]-a),r=this.items[n],this.direction=A?"up":"down"));if(!r&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[c])return;r?this._rearrange(e,r,null,!0):this._rearrange(e,null,this.containers[c].element,!0),this._trigger("change",e,this._uiHash()),this.containers[c]._trigger("change",e,this._uiHash(this)),this.currentContainer=this.containers[c],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[c]._trigger("over",e,this._uiHash(this)),this.containers[c].containerCache.over=1}},_createHelper:function(e){var i=this.options,n=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e,this.currentItem])):"clone"===i.helper?this.currentItem.clone():this.currentItem;return n.parents("body").length||t("parent"!==i.appendTo?i.appendTo:this.currentItem[0].parentNode)[0].appendChild(n[0]),n[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),n[0].style.width&&!i.forceHelperSize||n.width(this.currentItem.width()),n[0].style.height&&!i.forceHelperSize||n.height(this.currentItem.height()),n},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&t.ui.ie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,n,o=this.options;"parent"===o.containment&&(o.containment=this.helper[0].parentNode),"document"!==o.containment&&"window"!==o.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,t("document"===o.containment?document:window).width()-this.helperProportions.width-this.margins.left,(t("document"===o.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(o.containment)||(e=t(o.containment)[0],i=t(o.containment).offset(),n="hidden"!==t(e).css("overflow"),this.containment=[i.left+(parseInt(t(e).css("borderLeftWidth"),10)||0)+(parseInt(t(e).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(t(e).css("borderTopWidth"),10)||0)+(parseInt(t(e).css("paddingTop"),10)||0)-this.margins.top,i.left+(n?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(t(e).css("borderLeftWidth"),10)||0)-(parseInt(t(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(n?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(t(e).css("borderTopWidth"),10)||0)-(parseInt(t(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(e,i){i||(i=this.position);var n="absolute"===e?1:-1,o="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,r=/(html|body)/i.test(o[0].tagName);return{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():r?0:o.scrollTop())*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():r?0:o.scrollLeft())*n}},_generatePosition:function(e){var i,n,o=this.options,r=e.pageX,g=e.pageY,s="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,a=/(html|body)/i.test(s[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==document&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(e.pageX-this.offset.click.left<this.containment[0]&&(r=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top<this.containment[1]&&(g=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left>this.containment[2]&&(r=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(g=this.containment[3]+this.offset.click.top)),o.grid&&(i=this.originalPageY+Math.round((g-this.originalPageY)/o.grid[1])*o.grid[1],g=this.containment?i-this.offset.click.top>=this.containment[1]&&i-this.offset.click.top<=this.containment[3]?i:i-this.offset.click.top>=this.containment[1]?i-o.grid[1]:i+o.grid[1]:i,n=this.originalPageX+Math.round((r-this.originalPageX)/o.grid[0])*o.grid[0],r=this.containment?n-this.offset.click.left>=this.containment[0]&&n-this.offset.click.left<=this.containment[2]?n:n-this.offset.click.left>=this.containment[0]?n-o.grid[0]:n+o.grid[0]:n)),{top:g-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():a?0:s.scrollTop()),left:r-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():a?0:s.scrollLeft())}},_rearrange:function(t,e,i,n){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var o=this.counter;this._delay((function(){o===this.counter&&this.refreshPositions(!n)}))},_clear:function(t,e){this.reverting=!1;var i,n=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)"auto"!==this._storedCSS[i]&&"static"!==this._storedCSS[i]||(this._storedCSS[i]="");this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();function o(t,e,i){return function(n){i._trigger(t,n,e._uiHash(e))}}for(this.fromOutside&&!e&&n.push((function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))})),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||n.push((function(t){this._trigger("update",t,this._uiHash())})),this!==this.currentContainer&&(e||(n.push((function(t){this._trigger("remove",t,this._uiHash())})),n.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),n.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer)))),i=this.containers.length-1;i>=0;i--)e||n.push(o("deactivate",this,this.containers[i])),this.containers[i].containerCache.over&&(n.push(o("out",this,this.containers[i])),this.containers[i].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,this.cancelHelperRemoval){if(!e){for(this._trigger("beforeStop",t,this._uiHash()),i=0;i<n.length;i++)n[i].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!1}if(e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null,!e){for(i=0;i<n.length;i++)n[i].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!0},_trigger:function(){!1===t.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(e){var i=e||this;return{helper:i.helper,placeholder:i.placeholder||t([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:e?e.element:null}}}),t.widget("ui.spinner",{version:"1.11.1",defaultElement:"<input>",widgetEventPrefix:"spin",options:{culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),""!==this.value()&&this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var e={},i=this.element;return t.each(["min","max","step"],(function(t,n){var o=i.attr(n);void 0!==o&&o.length&&(e[n]=o)})),e},_events:{keydown:function(t){this._start(t)&&this._keydown(t)&&t.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(t){this.cancelBlur?delete this.cancelBlur:(this._stop(),this._refresh(),this.previous!==this.element.val()&&this._trigger("change",t))},mousewheel:function(t,e){if(e){if(!this.spinning&&!this._start(t))return!1;this._spin((e>0?1:-1)*this.options.step,t),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay((function(){this.spinning&&this._stop(t)}),100),t.preventDefault()}},"mousedown .ui-spinner-button":function(e){var i;function n(){this.element[0]===this.document[0].activeElement||(this.element.focus(),this.previous=i,this._delay((function(){this.previous=i})))}i=this.element[0]===this.document[0].activeElement?this.previous:this.element.val(),e.preventDefault(),n.call(this),this.cancelBlur=!0,this._delay((function(){delete this.cancelBlur,n.call(this)})),!1!==this._start(e)&&this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(e){if(t(e.currentTarget).hasClass("ui-state-active"))return!1!==this._start(e)&&void this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e)},"mouseleave .ui-spinner-button":"_stop"},_draw:function(){var t=this.uiSpinner=this.element.addClass("ui-spinner-input").attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml());this.element.attr("role","spinbutton"),this.buttons=t.find(".ui-spinner-button").attr("tabIndex",-1).button().removeClass("ui-corner-all"),this.buttons.height()>Math.ceil(.5*t.height())&&t.height()>0&&t.height(t.height()),this.options.disabled&&this.disable()},_keydown:function(e){var i=this.options,n=t.ui.keyCode;switch(e.keyCode){case n.UP:return this._repeat(null,1,e),!0;case n.DOWN:return this._repeat(null,-1,e),!0;case n.PAGE_UP:return this._repeat(null,i.page,e),!0;case n.PAGE_DOWN:return this._repeat(null,-i.page,e),!0}return!1},_uiSpinnerHtml:function(){return"<span class='ui-spinner ui-widget ui-widget-content ui-corner-all'></span>"},_buttonHtml:function(){return"<a class='ui-spinner-button ui-spinner-up ui-corner-tr'><span class='ui-icon "+this.options.icons.up+"'>&#9650;</span></a><a class='ui-spinner-button ui-spinner-down ui-corner-br'><span class='ui-icon "+this.options.icons.down+"'>&#9660;</span></a>"},_start:function(t){return!(!this.spinning&&!1===this._trigger("start",t)||(this.counter||(this.counter=1),this.spinning=!0,0))},_repeat:function(t,e,i){t=t||500,clearTimeout(this.timer),this.timer=this._delay((function(){this._repeat(40,e,i)}),t),this._spin(e*this.options.step,i)},_spin:function(t,e){var i=this.value()||0;this.counter||(this.counter=1),i=this._adjustValue(i+t*this._increment(this.counter)),this.spinning&&!1===this._trigger("spin",e,{value:i})||(this._value(i),this.counter++)},_increment:function(e){var i=this.options.incremental;return i?t.isFunction(i)?i(e):Math.floor(e*e*e/5e4-e*e/500+17*e/200+1):1},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min&&(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=t.toString(),i=e.indexOf(".");return-1===i?0:e.length-i-1},_adjustValue:function(t){var e,i,n=this.options;return i=t-(e=null!==n.min?n.min:0),t=e+(i=Math.round(i/n.step)*n.step),t=parseFloat(t.toFixed(this._precision())),null!==n.max&&t>n.max?n.max:null!==n.min&&t<n.min?n.min:t},_stop:function(t){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",t))},_setOption:function(t,e){if("culture"===t||"numberFormat"===t){var i=this._parse(this.element.val());return this.options[t]=e,void this.element.val(this._format(i))}"max"!==t&&"min"!==t&&"step"!==t||"string"==typeof e&&(e=this._parse(e)),"icons"===t&&(this.buttons.first().find(".ui-icon").removeClass(this.options.icons.up).addClass(e.up),this.buttons.last().find(".ui-icon").removeClass(this.options.icons.down).addClass(e.down)),this._super(t,e),"disabled"===t&&(this.widget().toggleClass("ui-state-disabled",!!e),this.element.prop("disabled",!!e),this.buttons.button(e?"disable":"enable"))},_setOptions:w((function(t){this._super(t)})),_parse:function(t){return"string"==typeof t&&""!==t&&(t=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(t,10,this.options.culture):+t),""===t||isNaN(t)?null:t},_format:function(t){return""===t?"":window.Globalize&&this.options.numberFormat?Globalize.format(t,this.options.numberFormat,this.options.culture):t},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var t=this.value();return null!==t&&t===this._adjustValue(t)},_value:function(t,e){var i;""!==t&&null!==(i=this._parse(t))&&(e||(i=this._adjustValue(i)),t=this._format(i)),this.element.val(t),this._refresh()},_destroy:function(){this.element.removeClass("ui-spinner-input").prop("disabled",!1).removeAttr("autocomplete").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:w((function(t){this._stepUp(t)})),_stepUp:function(t){this._start()&&(this._spin((t||1)*this.options.step),this._stop())},stepDown:w((function(t){this._stepDown(t)})),_stepDown:function(t){this._start()&&(this._spin((t||1)*-this.options.step),this._stop())},pageUp:w((function(t){this._stepUp((t||1)*this.options.page)})),pageDown:w((function(t){this._stepDown((t||1)*this.options.page)})),value:function(t){if(!arguments.length)return this._parse(this.element.val());w(this._value).call(this,t)},widget:function(){return this.uiSpinner}}),t.widget("ui.tabs",{version:"1.11.1",delay:300,options:{active:null,collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:(y=/#.*$/,function(t){var e,i;e=(t=t.cloneNode(!1)).href.replace(y,""),i=location.href.replace(y,"");try{e=decodeURIComponent(e)}catch(t){}try{i=decodeURIComponent(i)}catch(t){}return t.hash.length>1&&e===i}),_create:function(){var e=this,i=this.options;this.running=!1,this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all").toggleClass("ui-tabs-collapsible",i.collapsible),this._processTabs(),i.active=this._initialActive(),t.isArray(i.disabled)&&(i.disabled=t.unique(i.disabled.concat(t.map(this.tabs.filter(".ui-state-disabled"),(function(t){return e.tabs.index(t)})))).sort()),!1!==this.options.active&&this.anchors.length?this.active=this._findActive(i.active):this.active=t(),this._refresh(),this.active.length&&this.load(i.active)},_initialActive:function(){var e=this.options.active,i=this.options.collapsible,n=location.hash.substring(1);return null===e&&(n&&this.tabs.each((function(i,o){if(t(o).attr("aria-controls")===n)return e=i,!1})),null===e&&(e=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),null!==e&&-1!==e||(e=!!this.tabs.length&&0)),!1!==e&&-1===(e=this.tabs.index(this.tabs.eq(e)))&&(e=!i&&0),!i&&!1===e&&this.anchors.length&&(e=0),e},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):t()}},_tabKeydown:function(e){var i=t(this.document[0].activeElement).closest("li"),n=this.tabs.index(i),o=!0;if(!this._handlePageNav(e)){switch(e.keyCode){case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:n++;break;case t.ui.keyCode.UP:case t.ui.keyCode.LEFT:o=!1,n--;break;case t.ui.keyCode.END:n=this.anchors.length-1;break;case t.ui.keyCode.HOME:n=0;break;case t.ui.keyCode.SPACE:return e.preventDefault(),clearTimeout(this.activating),void this._activate(n);case t.ui.keyCode.ENTER:return e.preventDefault(),clearTimeout(this.activating),void this._activate(n!==this.options.active&&n);default:return}e.preventDefault(),clearTimeout(this.activating),n=this._focusNextTab(n,o),e.ctrlKey||(i.attr("aria-selected","false"),this.tabs.eq(n).attr("aria-selected","true"),this.activating=this._delay((function(){this.option("active",n)}),this.delay))}},_panelKeydown:function(e){this._handlePageNav(e)||e.ctrlKey&&e.keyCode===t.ui.keyCode.UP&&(e.preventDefault(),this.active.focus())},_handlePageNav:function(e){return e.altKey&&e.keyCode===t.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):e.altKey&&e.keyCode===t.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(e,i){for(var n=this.tabs.length-1;-1!==t.inArray((e>n&&(e=0),e<0&&(e=n),e),this.options.disabled);)e=i?e+1:e-1;return e},_focusNextTab:function(t,e){return t=this._findNextTab(t,e),this.tabs.eq(t).focus(),t},_setOption:function(t,e){"active"!==t?"disabled"!==t?(this._super(t,e),"collapsible"===t&&(this.element.toggleClass("ui-tabs-collapsible",e),e||!1!==this.options.active||this._activate(0)),"event"===t&&this._setupEvents(e),"heightStyle"===t&&this._setupHeightStyle(e)):this._setupDisabled(e):this._activate(e)},_sanitizeSelector:function(t){return t?t.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var e=this.options,i=this.tablist.children(":has(a[href])");e.disabled=t.map(i.filter(".ui-state-disabled"),(function(t){return i.index(t)})),this._processTabs(),!1!==e.active&&this.anchors.length?this.active.length&&!t.contains(this.tablist[0],this.active[0])?this.tabs.length===e.disabled.length?(e.active=!1,this.active=t()):this._activate(this._findNextTab(Math.max(0,e.active-1),!1)):e.active=this.tabs.index(this.active):(e.active=!1,this.active=t()),this._refresh()},_refresh:function(){this._setupDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"}),this.active.length?(this.active.addClass("ui-tabs-active ui-state-active").attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var e=this;this.tablist=this._getList().addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").attr("role","tablist").delegate("> li","mousedown"+this.eventNamespace,(function(e){t(this).is(".ui-state-disabled")&&e.preventDefault()})).delegate(".ui-tabs-anchor","focus"+this.eventNamespace,(function(){t(this).closest("li").is(".ui-state-disabled")&&this.blur()})),this.tabs=this.tablist.find("> li:has(a[href])").addClass("ui-state-default ui-corner-top").attr({role:"tab",tabIndex:-1}),this.anchors=this.tabs.map((function(){return t("a",this)[0]})).addClass("ui-tabs-anchor").attr({role:"presentation",tabIndex:-1}),this.panels=t(),this.anchors.each((function(i,n){var o,r,g,s=t(n).uniqueId().attr("id"),a=t(n).closest("li"),A=a.attr("aria-controls");e._isLocal(n)?(g=(o=n.hash).substring(1),r=e.element.find(e._sanitizeSelector(o))):(o="#"+(g=a.attr("aria-controls")||t({}).uniqueId()[0].id),(r=e.element.find(o)).length||(r=e._createPanel(g)).insertAfter(e.panels[i-1]||e.tablist),r.attr("aria-live","polite")),r.length&&(e.panels=e.panels.add(r)),A&&a.data("ui-tabs-aria-controls",A),a.attr({"aria-controls":g,"aria-labelledby":s}),r.attr("aria-labelledby",s)})),this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").attr("role","tabpanel")},_getList:function(){return this.tablist||this.element.find("ol,ul").eq(0)},_createPanel:function(e){return t("<div>").attr("id",e).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)},_setupDisabled:function(e){t.isArray(e)&&(e.length?e.length===this.anchors.length&&(e=!0):e=!1);for(var i,n=0;i=this.tabs[n];n++)!0===e||-1!==t.inArray(n,e)?t(i).addClass("ui-state-disabled").attr("aria-disabled","true"):t(i).removeClass("ui-state-disabled").removeAttr("aria-disabled");this.options.disabled=e},_setupEvents:function(e){var i={};e&&t.each(e.split(" "),(function(t,e){i[e]="_eventHandler"})),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(t){t.preventDefault()}}),this._on(this.anchors,i),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(e){var i,n=this.element.parent();"fill"===e?(i=n.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each((function(){var e=t(this),n=e.css("position");"absolute"!==n&&"fixed"!==n&&(i-=e.outerHeight(!0))})),this.element.children().not(this.panels).each((function(){i-=t(this).outerHeight(!0)})),this.panels.each((function(){t(this).height(Math.max(0,i-t(this).innerHeight()+t(this).height()))})).css("overflow","auto")):"auto"===e&&(i=0,this.panels.each((function(){i=Math.max(i,t(this).height("").height())})).height(i))},_eventHandler:function(e){var i=this.options,n=this.active,o=t(e.currentTarget).closest("li"),r=o[0]===n[0],g=r&&i.collapsible,s=g?t():this._getPanelForTab(o),a=n.length?this._getPanelForTab(n):t(),A={oldTab:n,oldPanel:a,newTab:g?t():o,newPanel:s};e.preventDefault(),o.hasClass("ui-state-disabled")||o.hasClass("ui-tabs-loading")||this.running||r&&!i.collapsible||!1===this._trigger("beforeActivate",e,A)||(i.active=!g&&this.tabs.index(o),this.active=r?t():o,this.xhr&&this.xhr.abort(),a.length||s.length||t.error("jQuery UI Tabs: Mismatching fragment identifier."),s.length&&this.load(this.tabs.index(o),e),this._toggle(e,A))},_toggle:function(e,i){var n=this,o=i.newPanel,r=i.oldPanel;function g(){n.running=!1,n._trigger("activate",e,i)}function s(){i.newTab.closest("li").addClass("ui-tabs-active ui-state-active"),o.length&&n.options.show?n._show(o,n.options.show,g):(o.show(),g())}this.running=!0,r.length&&this.options.hide?this._hide(r,this.options.hide,(function(){i.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),s()})):(i.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),r.hide(),s()),r.attr("aria-hidden","true"),i.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),o.length&&r.length?i.oldTab.attr("tabIndex",-1):o.length&&this.tabs.filter((function(){return 0===t(this).attr("tabIndex")})).attr("tabIndex",-1),o.attr("aria-hidden","false"),i.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(e){var i,n=this._findActive(e);n[0]!==this.active[0]&&(n.length||(n=this.active),i=n.find(".ui-tabs-anchor")[0],this._eventHandler({target:i,currentTarget:i,preventDefault:t.noop}))},_findActive:function(e){return!1===e?t():this.tabs.eq(e)},_getIndex:function(t){return"string"==typeof t&&(t=this.anchors.index(this.anchors.filter("[href$='"+t+"']"))),t},_destroy:function(){this.xhr&&this.xhr.abort(),this.element.removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible"),this.tablist.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").removeAttr("role"),this.anchors.removeClass("ui-tabs-anchor").removeAttr("role").removeAttr("tabIndex").removeUniqueId(),this.tablist.unbind(this.eventNamespace),this.tabs.add(this.panels).each((function(){t.data(this,"ui-tabs-destroy")?t(this).remove():t(this).removeClass("ui-state-default ui-state-active ui-state-disabled ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel").removeAttr("tabIndex").removeAttr("aria-live").removeAttr("aria-busy").removeAttr("aria-selected").removeAttr("aria-labelledby").removeAttr("aria-hidden").removeAttr("aria-expanded").removeAttr("role")})),this.tabs.each((function(){var e=t(this),i=e.data("ui-tabs-aria-controls");i?e.attr("aria-controls",i).removeData("ui-tabs-aria-controls"):e.removeAttr("aria-controls")})),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(e){var i=this.options.disabled;!1!==i&&(void 0===e?i=!1:(e=this._getIndex(e),i=t.isArray(i)?t.map(i,(function(t){return t!==e?t:null})):t.map(this.tabs,(function(t,i){return i!==e?i:null}))),this._setupDisabled(i))},disable:function(e){var i=this.options.disabled;if(!0!==i){if(void 0===e)i=!0;else{if(e=this._getIndex(e),-1!==t.inArray(e,i))return;i=t.isArray(i)?t.merge([e],i).sort():[e]}this._setupDisabled(i)}},load:function(e,i){e=this._getIndex(e);var n=this,o=this.tabs.eq(e),r=o.find(".ui-tabs-anchor"),g=this._getPanelForTab(o),s={tab:o,panel:g};this._isLocal(r[0])||(this.xhr=t.ajax(this._ajaxSettings(r,i,s)),this.xhr&&"canceled"!==this.xhr.statusText&&(o.addClass("ui-tabs-loading"),g.attr("aria-busy","true"),this.xhr.success((function(t){setTimeout((function(){g.html(t),n._trigger("load",i,s)}),1)})).complete((function(t,e){setTimeout((function(){"abort"===e&&n.panels.stop(!1,!0),o.removeClass("ui-tabs-loading"),g.removeAttr("aria-busy"),t===n.xhr&&delete n.xhr}),1)}))))},_ajaxSettings:function(e,i,n){var o=this;return{url:e.attr("href"),beforeSend:function(e,r){return o._trigger("beforeLoad",i,t.extend({jqXHR:e,ajaxSettings:r},n))}}},_getPanelForTab:function(e){var i=t(e).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+i))}}),t.widget("ui.tooltip",{version:"1.11.1",options:{content:function(){var e=t(this).attr("title")||"";return t("<a>").text(e).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,tooltipClass:null,track:!1,close:null,open:null},_addDescribedBy:function(e,i){var n=(e.attr("aria-describedby")||"").split(/\s+/);n.push(i),e.data("ui-tooltip-id",i).attr("aria-describedby",t.trim(n.join(" ")))},_removeDescribedBy:function(e){var i=e.data("ui-tooltip-id"),n=(e.attr("aria-describedby")||"").split(/\s+/),o=t.inArray(i,n);-1!==o&&n.splice(o,1),e.removeData("ui-tooltip-id"),(n=t.trim(n.join(" ")))?e.attr("aria-describedby",n):e.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.options.disabled&&this._disable(),this.liveRegion=t("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).addClass("ui-helper-hidden-accessible").appendTo(this.document[0].body)},_setOption:function(e,i){var n=this;if("disabled"===e)return this[i?"_disable":"_enable"](),void(this.options[e]=i);this._super(e,i),"content"===e&&t.each(this.tooltips,(function(t,e){n._updateContent(e)}))},_disable:function(){var e=this;t.each(this.tooltips,(function(i,n){var o=t.Event("blur");o.target=o.currentTarget=n[0],e.close(o,!0)})),this.element.find(this.options.items).addBack().each((function(){var e=t(this);e.is("[title]")&&e.data("ui-tooltip-title",e.attr("title")).removeAttr("title")}))},_enable:function(){this.element.find(this.options.items).addBack().each((function(){var e=t(this);e.data("ui-tooltip-title")&&e.attr("title",e.data("ui-tooltip-title"))}))},open:function(e){var i=this,n=t(e?e.target:this.element).closest(this.options.items);n.length&&!n.data("ui-tooltip-id")&&(n.attr("title")&&n.data("ui-tooltip-title",n.attr("title")),n.data("ui-tooltip-open",!0),e&&"mouseover"===e.type&&n.parents().each((function(){var e,n=t(this);n.data("ui-tooltip-open")&&((e=t.Event("blur")).target=e.currentTarget=this,i.close(e,!0)),n.attr("title")&&(n.uniqueId(),i.parents[this.id]={element:this,title:n.attr("title")},n.attr("title",""))})),this._updateContent(n,e))},_updateContent:function(t,e){var i,n=this.options.content,o=this,r=e?e.type:null;if("string"==typeof n)return this._open(e,t,n);(i=n.call(t[0],(function(i){t.data("ui-tooltip-open")&&o._delay((function(){e&&(e.type=r),this._open(e,t,i)}))})))&&this._open(e,t,i)},_open:function(e,i,n){var o,r,g,s,a=t.extend({},this.options.position);function A(t){a.of=t,o.is(":hidden")||o.position(a)}n&&((o=this._find(i)).length?o.find(".ui-tooltip-content").html(n):(i.is("[title]")&&(e&&"mouseover"===e.type?i.attr("title",""):i.removeAttr("title")),o=this._tooltip(i),this._addDescribedBy(i,o.attr("id")),o.find(".ui-tooltip-content").html(n),this.liveRegion.children().hide(),n.clone?(s=n.clone()).removeAttr("id").find("[id]").removeAttr("id"):s=n,t("<div>").html(s).appendTo(this.liveRegion),this.options.track&&e&&/^mouse/.test(e.type)?(this._on(this.document,{mousemove:A}),A(e)):o.position(t.extend({of:i},this.options.position)),this.hiding=!1,this.closing=!1,o.hide(),this._show(o,this.options.show),this.options.show&&this.options.show.delay&&(g=this.delayedShow=setInterval((function(){o.is(":visible")&&(A(a.of),clearInterval(g))}),t.fx.interval)),this._trigger("open",e,{tooltip:o}),r={keyup:function(e){if(e.keyCode===t.ui.keyCode.ESCAPE){var n=t.Event(e);n.currentTarget=i[0],this.close(n,!0)}}},i[0]!==this.element[0]&&(r.remove=function(){this._removeTooltip(o)}),e&&"mouseover"!==e.type||(r.mouseleave="close"),e&&"focusin"!==e.type||(r.focusout="close"),this._on(!0,i,r)))},close:function(e){var i=this,n=t(e?e.currentTarget:this.element),o=this._find(n);this.closing||(clearInterval(this.delayedShow),n.data("ui-tooltip-title")&&!n.attr("title")&&n.attr("title",n.data("ui-tooltip-title")),this._removeDescribedBy(n),this.hiding=!0,o.stop(!0),this._hide(o,this.options.hide,(function(){i._removeTooltip(t(this)),this.hiding=!1,this.closing=!1})),n.removeData("ui-tooltip-open"),this._off(n,"mouseleave focusout keyup"),n[0]!==this.element[0]&&this._off(n,"remove"),this._off(this.document,"mousemove"),e&&"mouseleave"===e.type&&t.each(this.parents,(function(e,n){t(n.element).attr("title",n.title),delete i.parents[e]})),this.closing=!0,this._trigger("close",e,{tooltip:o}),this.hiding||(this.closing=!1))},_tooltip:function(e){var i=t("<div>").attr("role","tooltip").addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipClass||"")),n=i.uniqueId().attr("id");return t("<div>").addClass("ui-tooltip-content").appendTo(i),i.appendTo(this.document[0].body),this.tooltips[n]=e,i},_find:function(e){var i=e.data("ui-tooltip-id");return i?t("#"+i):t()},_removeTooltip:function(t){t.remove(),delete this.tooltips[t.attr("id")]},_destroy:function(){var e=this;t.each(this.tooltips,(function(i,n){var o=t.Event("blur");o.target=o.currentTarget=n[0],e.close(o,!0),t("#"+i).remove(),n.data("ui-tooltip-title")&&(n.attr("title")||n.attr("title",n.data("ui-tooltip-title")),n.removeData("ui-tooltip-title"))})),this.liveRegion.remove()}})})?n.apply(e,o):n)||(t.exports=r)},function(t,e,i){var n=i(15),o=i(16);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[t.i,o,""]]);var r={insert:"head",singleton:!1};n(o,r);t.exports=o.locals||{}},function(t,e,i){"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},r=function(){var t={};return function(e){if(void 0===t[e]){var i=document.querySelector(e);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}t[e]=i}return t[e]}}(),g=[];function s(t){for(var e=-1,i=0;i<g.length;i++)if(g[i].identifier===t){e=i;break}return e}function a(t,e){for(var i={},n=[],o=0;o<t.length;o++){var r=t[o],a=e.base?r[0]+e.base:r[0],A=i[a]||0,C="".concat(a," ").concat(A);i[a]=A+1;var I=s(C),l={css:r[1],media:r[2],sourceMap:r[3]};-1!==I?(g[I].references++,g[I].updater(l)):g.push({identifier:C,updater:d(l,e),references:1}),n.push(C)}return n}function A(t){var e=document.createElement("style"),n=t.attributes||{};if(void 0===n.nonce){var o=i.nc;o&&(n.nonce=o)}if(Object.keys(n).forEach((function(t){e.setAttribute(t,n[t])})),"function"==typeof t.insert)t.insert(e);else{var g=r(t.insert||"head");if(!g)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");g.appendChild(e)}return e}var C,I=(C=[],function(t,e){return C[t]=e,C.filter(Boolean).join("\n")});function l(t,e,i,n){var o=i?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(t.styleSheet)t.styleSheet.cssText=I(e,o);else{var r=document.createTextNode(o),g=t.childNodes;g[e]&&t.removeChild(g[e]),g.length?t.insertBefore(r,g[e]):t.appendChild(r)}}function c(t,e,i){var n=i.css,o=i.media,r=i.sourceMap;if(o?t.setAttribute("media",o):t.removeAttribute("media"),r&&btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}var h=null,u=0;function d(t,e){var i,n,o;if(e.singleton){var r=u++;i=h||(h=A(e)),n=l.bind(null,i,r,!1),o=l.bind(null,i,r,!0)}else i=A(e),n=c.bind(null,i,e),o=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(i)};return n(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;n(t=e)}else o()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=o());var i=a(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var n=0;n<i.length;n++){var o=s(i[n]);g[o].references--}for(var r=a(t,e),A=0;A<i.length;A++){var C=s(i[A]);0===g[C].references&&(g[C].updater(),g.splice(C,1))}i=r}}}},function(t,e,i){(e=i(17)(!1)).push([t.i,'.menu-div {\n    position: absolute;\n    top: 5px;\n    text-align: center;\n    pointer-events: none;\n    width: 100%;\n}\n\n::after {\n    display: none;\n}\n\nsvg {\n    display: inline-block;\n    vertical-align: middle;\n}\n\n\n.menu-action > button {\n    background: white;\n    width: 35px;\n    height: 35px;\n    border: 1px solid gray;\n    border-radius: 2px;\n    pointer-events: all;\n    top: 0;\n    position: center;\n}\n\n.menu-action {\n    background: white;\n    border: none;\n    border-radius: 2px;\n    display: inline;\n    margin: 4px;\n    height: 35px;\n}\n\n.fullscreen {\n    background: white;\n    position: fixed;\n    top: 0;\n    bottom: 0;\n    width: 100vh;\n    height: 100vh;\n    overflow: hidden;\n    object-fit: fill;\n    z-index: 9999;\n}\n\n.hidden {\n    visibility: hidden !important;\n}\n\n.network-div {\n    position: relative;\n    border: none;\n    outline: none;\n    height: 600px;\n}\n\n.vis-network {\n    outline: none;\n    border: none;\n}\n\n.network-div * {\n    font-size: 1em !important;\n    font-family: "Courier New", Courier, monospace !important;\n}\n\n.network-div:fullscreen {\n    background-color: rgba(255, 255, 255, 0);\n}\n\n.network-div:-webkit-full-screen {\n    background-color: rgba(255, 255, 255, 0);\n}\n\n.network-div:-moz-full-screen {\n    background-color: rgba(255, 255, 255, 0);\n}\n\n::backdrop {\n    background-color: white;\n}\n\n.details {\n    position: absolute !important;\n    background-color: white;\n    text-align: center;\n    border: none;\n    visibility: visible;\n    width: 30em;\n    height: 15em;\n    z-index: 9999;\n    top: 100px;\n    left: 100px;\n    display: flex;\n\n    box-shadow: 3px 3px 3px 3px grey;\n    overflow: hidden;\n}\n\n.active {\n    background-color: lightgrey !important;\n\n    -webkit-transition: all .5s;\n    -moz-transition: all .5s;\n    -o-transition: all .5s;\n    transition: all .5s;\n}\n\nbutton:focus {\n    outline: 0;\n}\n\ntd, th {\n    border: none;\n    text-align: left;\n    padding: 8px;\n}\n\ntr:nth-child(odd) {\n    background-color: #f4f4f4;\n}\n\n.collapsible {\n    background-color: #777;\n    color: white;\n    cursor: pointer;\n    padding: 18px;\n    width: 100%;\n    border: none;\n    text-align: left;\n    outline: none;\n    font-size: 15px;\n}\n\n.active, .collapsible:hover {\n    background-color: #555;\n}\n\n.collapsible:after {\n    content: \'\\002B\';\n    color: white;\n    font-weight: bold;\n    float: right;\n    margin-left: 5px;\n}\n\n.active:after {\n    content: "\\2212";\n}\n\n.properties-table {\n    font-family: "Courier New", Courier, monospace;\n    border-collapse: collapse;\n    width: 100%;\n    border-style: hidden;\n}\n\n.properties-content {\n    border: none;\n    transition: max-height 0.2s ease-out;\n    background-color: white;\n    height: calc(100% - 80px);\n    overflow: scroll;\n}\n\n.displayNone {\n    display: none !important;\n\n    width: 0;\n}\n\n.displayBlock {\n    display: block;\n}\n\n.emptyDetails {\n    border: none;\n    display: block;\n    height: calc(100% - 80px);\n    text-align: left;\n    margin: auto auto auto 10px;\n    overflow: hidden;\n    width: 100%;\n}\n\n.details-container {\n    width: 100%;\n}\n\ndiv.menu-action.active::after {\n    display: none;\n}\n\n.feather-list {\n    -moz-transform: translateY(2px);\n}\n\n.feather-maximize {\n    -moz-transform: translateY(2px);\n}\n\n.vis-tooltip {\n    background: white !important;\n    font-size: 1em !important;\n    font-family: "Courier New", Courier, monospace !important;\n\n    -webkit-marquee: auto medium infinite scroll normal !important;\n    overflow-x: -webkit-marquee !important;\n}\n\n.search-div {\n    background: transparent;\n}\n\n.search-bar {\n    height: 35px;\n    width: 100px;\n    border-radius: 2px;\n    color: black;\n    font-size: 15px;\n    pointer-events: all;\n    border: 1px solid gray;\n    text-align: left;\n    vertical-align: bottom;\n\n    -webkit-transition: all .5s;\n    -moz-transition: all .5s;\n    -o-transition: all .5s;\n    transition: all .5s;\n}\n\nbutton.active::after {\n    visibility: hidden;\n}\n\n.details-text {\n    display: inline-block;\n    margin: auto auto auto 10px;\n    font-weight: bold;\n\n    white-space: nowrap;\n    overflow: hidden;\n    text-overflow: ellipsis;\n}\n\n\n.details-header {\n    padding-top: 5px;\n    padding-bottom: 5px;\n    cursor: move;\n    background-color: white;\n    margin: auto;\n    display: flex;\n    justify-content: space-between;\n    flex-direction: row;\n    border-bottom: 1px solid lightgrey;\n}\n\n.close-button {\n    display: inline-block;\n    float: right;\n    background: inherit;\n    border: none;\n    cursor: pointer !important;\n}\n\n.details-footer {\n    background-color: white;\n    display: flex;\n    justify-content: flex-end;\n    flex-direction: row;\n    border-top: 1px solid lightgrey;\n    height: 40px;\n}\n\n.details-footer-button {\n    background: #4c6b9e;\n    color: white;\n    height: 70%;\n    float: right;\n    border-radius: 2px;\n    border: none;\n    margin-right: 20px;\n    margin-top: 10px;\n\n}\n\n.right-actions {\n    float: right;\n}\n\n.left-actions {\n    float: left;\n}\n\n.bottom-right {\n    position: absolute;\n    display: flex;\n    flex-flow: column;\n    bottom: 0;\n    right: 0;\n    margin-bottom: 4px;\n    margin-right: 4px;\n}\n',""]),t.exports=e},function(t,e,i){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i=function(t,e){var i=t[1]||"",n=t[3];if(!n)return i;if(e&&"function"==typeof btoa){var o=(g=n,s=btoa(unescape(encodeURIComponent(JSON.stringify(g)))),a="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(a," */")),r=n.sources.map((function(t){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(t," */")}));return[i].concat(r).concat([o]).join("\n")}var g,s,a;return[i].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(i,"}"):i})).join("")},e.i=function(t,i,n){"string"==typeof t&&(t=[[null,t,""]]);var o={};if(n)for(var r=0;r<this.length;r++){var g=this[r][0];null!=g&&(o[g]=!0)}for(var s=0;s<t.length;s++){var a=[].concat(t[s]);n&&o[a[0]]||(i&&(a[2]?a[2]="".concat(i," and ").concat(a[2]):a[2]=i),e.push(a))}},e}}])}));
//# sourceMappingURL=embed-bundle.js.map