UNPKG

317 kBJavaScriptView Raw
1/**
2 * vis-graph3d - graph3d
3 * http://visjs.org/
4 *
5 * Create interactive, animated 3d graphs. Surfaces, lines, dots and block styling out of the box.
6 *
7 * @version 5.3.5
8 * @date 2019-11-28T20:28:48Z
9 *
10 * @copyright (c) 2011-2017 Almende B.V, http://almende.com
11 * @copyright (c) 2018-2019 visjs contributors, https://github.com/visjs
12 *
13 * @license
14 * vis.js is dual licensed under both
15 *
16 * 1. The Apache 2.0 License
17 * http://www.apache.org/licenses/LICENSE-2.0
18 *
19 * and
20 *
21 * 2. The MIT License
22 * http://opensource.org/licenses/MIT
23 *
24 * vis.js may be distributed under either license.
25 */
26
27!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).vis=t.vis||{})}(this,function(t){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,e){return t(e={exports:{}},e.exports),e.exports}function r(t){return t&&t.Math==Math&&t}function i(t){try{return!!t()}catch(t){return!0}}function m(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}function o(t){return x.call(t).slice(8,-1)}function u(t){if(null==t)throw TypeError("Can't call method on "+t);return t}function l(t){return k(u(t))}function c(t){return"object"==typeof t?null!==t:"function"==typeof t}function a(t,e){if(!c(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!c(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!c(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!c(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}function g(t,e){return D.call(t,e)}function s(t){return T?M.createElement(t):{}}function h(t,e){var n=C[L(t)];return n==j||n!=R&&("function"==typeof e?i(e):!!e)}function w(r,i,t){if(function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function")}(r),void 0===i)return r;switch(t){case 0:return function(){return r.call(i)};case 1:return function(t){return r.call(i,t)};case 2:return function(t,e){return r.call(i,t,e)};case 3:return function(t,e,n){return r.call(i,t,e,n)}}return function(){return r.apply(i,arguments)}}function f(t){if(!c(t))throw TypeError(String(t)+" is not an object");return t}function _(r){function t(t,e,n){if(this instanceof r){switch(arguments.length){case 0:return new r;case 1:return new r(t);case 2:return new r(t,e)}return new r(t,e,n)}return r.apply(this,arguments)}return t.prototype=r.prototype,t}function b(t,e){var n,r,i,o,a,s,u,l,c=t.target,h=t.global,f=t.stat,d=t.proto,p=h?S:f?S[c]:(S[c]||{}).prototype,v=h?N:N[c]||(N[c]={}),y=v.prototype;for(i in e)n=!I(h?i:c+(f?".":"#")+i,t.forced)&&p&&g(p,i),a=v[i],n&&(s=t.noTargetGet?(l=V(p,i))&&l.value:p[i]),o=n&&s?s:e[i],n&&typeof a==typeof o||(u=t.bind&&n?w(o,S):t.wrap&&n?_(o):d&&"function"==typeof o?w(Function.call,o):o,(t.sham||o&&o.sham||a&&a.sham)&&z(u,"sham",!0),v[i]=u,d&&(g(N,r=c+"Prototype")||z(N,r,{}),N[r][i]=o,t.real&&y&&!y[i]&&z(y,i,o)))}var S=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||Function("return this")(),d=!i(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),p={}.propertyIsEnumerable,v=Object.getOwnPropertyDescriptor,y={f:v&&!p.call({1:2},1)?function(t){var e=v(this,t);return!!e&&e.enumerable}:p},x={}.toString,O="".split,k=i(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==o(t)?O.call(t,""):Object(t)}:Object,D={}.hasOwnProperty,M=S.document,T=c(M)&&c(M.createElement),P=!d&&!i(function(){return 7!=Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a}),E=Object.getOwnPropertyDescriptor,A={f:d?E:function(t,e){if(t=l(t),e=a(e,!0),P)try{return E(t,e)}catch(t){}if(g(t,e))return m(!y.f.call(t,e),t[e])}},Y=/#|\.prototype\./,L=h.normalize=function(t){return String(t).replace(Y,".").toLowerCase()},C=h.data={},R=h.NATIVE="N",j=h.POLYFILL="P",I=h,N={},F=Object.defineProperty,W={f:d?F:function(t,e,n){if(f(t),e=a(e,!0),f(n),P)try{return F(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},z=d?function(t,e,n){return W.f(t,e,m(1,n))}:function(t,e,n){return t[e]=n,t},V=A.f;b({target:"Object",stat:!0,forced:!d,sham:!d},{defineProperty:W.f});function G(t){return isNaN(t=+t)?0:(0<t?J:$)(t)}function H(t){return 0<t?Q(G(t),9007199254740991):0}function U(t,e){var n=G(t);return n<0?K(n+e,0):tt(n,e)}function B(s){return function(t,e,n){var r,i=l(t),o=H(i.length),a=U(n,o);if(s&&e!=e){for(;a<o;)if((r=i[a++])!=r)return!0}else for(;a<o;a++)if((s||a in i)&&i[a]===e)return s||a||0;return!s&&-1}}function Z(t,e){var n,r=l(t),i=0,o=[];for(n in r)!g(nt,n)&&g(r,n)&&o.push(n);for(;e.length>i;)g(r,n=e[i++])&&(~rt(o,n)||o.push(n));return o}var X=n(function(t){var r=N.Object,e=t.exports=function(t,e,n){return r.defineProperty(t,e,n)};r.defineProperty.sham&&(e.sham=!0)}),q=X,$=Math.ceil,J=Math.floor,Q=Math.min,K=Math.max,tt=Math.min,et={includes:B(!0),indexOf:B(!1)},nt={},rt=et.indexOf,it=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ot=Object.keys||function(t){return Z(t,it)},at=d?Object.defineProperties:function(t,e){f(t);for(var n,r=ot(e),i=r.length,o=0;o<i;)W.f(t,n=r[o++],e[n]);return t};b({target:"Object",stat:!0,forced:!d,sham:!d},{defineProperties:at});function st(t){return"function"==typeof t?t:void 0}function ut(t,e){return arguments.length<2?st(N[t])||st(S[t]):N[t]&&N[t][e]||S[t]&&S[t][e]}function lt(t,e,n){var r=a(e);r in t?W.f(t,r,m(0,n)):t[r]=n}var ct=n(function(t){var n=N.Object,e=t.exports=function(t,e){return n.defineProperties(t,e)};n.defineProperties.sham&&(e.sham=!0)}),ht=it.concat("length","prototype"),ft={f:Object.getOwnPropertyNames||function(t){return Z(t,ht)}},dt={f:Object.getOwnPropertySymbols},pt=ut("Reflect","ownKeys")||function(t){var e=ft.f(f(t)),n=dt.f;return n?e.concat(n(t)):e};b({target:"Object",stat:!0,sham:!d},{getOwnPropertyDescriptors:function(t){for(var e,n,r=l(t),i=A.f,o=pt(r),a={},s=0;o.length>s;)void 0!==(n=i(r,e=o[s++]))&&lt(a,e,n);return a}});var vt=N.Object.getOwnPropertyDescriptors,yt=A.f,mt=i(function(){yt(1)});b({target:"Object",stat:!0,forced:!d||mt,sham:!d},{getOwnPropertyDescriptor:function(t,e){return yt(l(t),e)}});function gt(t){return Object(u(t))}function _t(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++Pt+Et).toString(36)}function wt(t){return At[t]||(At[t]=_t(t))}function bt(){}var St=n(function(t){var n=N.Object,e=t.exports=function(t,e){return n.getOwnPropertyDescriptor(t,e)};n.getOwnPropertyDescriptor.sham&&(e.sham=!0)}),xt=!!Object.getOwnPropertySymbols&&!i(function(){return!String(Symbol())}),Ot=Array.isArray||function(t){return"Array"==o(t)},kt=ut("document","documentElement"),Dt="__core-js_shared__",Mt=S[Dt]||function(e,n){try{z(S,e,n)}catch(t){S[e]=n}return n}(Dt,{}),Tt=n(function(t){(t.exports=function(t,e){return Mt[t]||(Mt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.4.1",mode:"pure",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}),Pt=0,Et=Math.random(),At=Tt("keys"),Yt=wt("IE_PROTO"),Lt="prototype",Ct=function(){var t,e=s("iframe"),n=it.length,r="script";for(e.style.display="none",kt.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write("<script>document.F=Object</"+r+">"),t.close(),Ct=t.F;n--;)delete Ct[Lt][it[n]];return Ct()},Rt=Object.create||function(t,e){var n;return null!==t?(bt[Lt]=f(t),n=new bt,bt[Lt]=null,n[Yt]=t):n=Ct(),void 0===e?n:at(n,e)};nt[Yt]=!0;function jt(t,e,n,r){r&&r.enumerable?t[e]=n:z(t,e,n)}function It(t){return Ut[t]||(Ut[t]=xt&&Ht[t]||(xt?Ht:_t)("Symbol."+t))}function Nt(t){var e=N.Symbol||(N.Symbol={});g(e,t)||Zt(e,t,{value:Bt.f(t)})}function Ft(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),Xt))?n:qt?o(e):"Object"==(r=o(e))&&"function"==typeof e.callee?"Arguments":r}var Wt=ft.f,zt={}.toString,Vt="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Gt={f:function(t){return Vt&&"[object Window]"==zt.call(t)?function(t){try{return Wt(t)}catch(t){return Vt.slice()}}(t):Wt(l(t))}},Ht=S.Symbol,Ut=Tt("wks"),Bt={f:It},Zt=W.f,Xt=It("toStringTag"),qt="Arguments"==o(function(){return arguments}()),$t={};$t[It("toStringTag")]="z";function Jt(t,e,n,r){if(t){var i=n?t:t.prototype;g(i,re)||ne(i,re,{configurable:!0,value:e}),r&&ie&&z(i,"toString",ee)}}var Qt,Kt,te,ee="[object z]"!==String($t)?function(){return"[object "+Ft(this)+"]"}:$t.toString,ne=W.f,re=It("toStringTag"),ie=ee!=={}.toString,oe=Tt("native-function-to-string",Function.toString),ae=S.WeakMap,se="function"==typeof ae&&/native code/.test(oe.call(ae)),ue=S.WeakMap;if(se){var le=new ue,ce=le.get,he=le.has,fe=le.set;Qt=function(t,e){return fe.call(le,t,e),e},Kt=function(t){return ce.call(le,t)||{}},te=function(t){return he.call(le,t)}}else{var de=wt("state");nt[de]=!0,Qt=function(t,e){return z(t,de,e),e},Kt=function(t){return g(t,de)?t[de]:{}},te=function(t){return g(t,de)}}function pe(t,e){var n;return Ot(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!Ot(n.prototype)?c(n)&&null===(n=n[be])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}function ve(d){var p=1==d,v=2==d,y=3==d,m=4==d,g=6==d,_=5==d||g;return function(t,e,n,r){for(var i,o,a=gt(t),s=k(a),u=w(e,n,3),l=H(s.length),c=0,h=r||pe,f=p?h(t,l):v?h(t,0):void 0;c<l;c++)if((_||c in s)&&(o=u(i=s[c],c,a),d))if(p)f[c]=o;else if(o)switch(d){case 3:return!0;case 5:return i;case 6:return c;case 2:Se.call(f,i)}else if(m)return!1;return g?-1:y||m?m:f}}function ye(t,e){var n=Ne[t]=Rt(Ye[Me]);return Pe(n,{type:De,tag:t,description:e}),d||(n.description=e),n}function me(e,t){f(e);var n=l(t),r=ot(n).concat(qe(n));return Oe(r,function(t){d&&!Xe.call(n,t)||Ze(e,t,n[t])}),e}function ge(t,e){var n=l(t),r=a(e,!0);if(n!==Ae||!g(Ne,r)||g(Fe,r)){var i=Ce(n,r);return!i||!g(Ne,r)||g(n,ke)&&n[ke][r]||(i.enumerable=!0),i}}function _e(t){var e=je(l(t)),n=[];return Oe(e,function(t){g(Ne,t)||g(nt,t)||n.push(t)}),n}var we={set:Qt,get:Kt,has:te,enforce:function(t){return te(t)?Kt(t):Qt(t,{})},getterFor:function(n){return function(t){var e;if(!c(t)||(e=Kt(t)).type!==n)throw TypeError("Incompatible receiver, "+n+" required");return e}}},be=It("species"),Se=[].push,xe={forEach:ve(0),map:ve(1),filter:ve(2),some:ve(3),every:ve(4),find:ve(5),findIndex:ve(6)},Oe=xe.forEach,ke=wt("hidden"),De="Symbol",Me="prototype",Te=It("toPrimitive"),Pe=we.set,Ee=we.getterFor(De),Ae=Object[Me],Ye=S.Symbol,Le=ut("JSON","stringify"),Ce=A.f,Re=W.f,je=Gt.f,Ie=y.f,Ne=Tt("symbols"),Fe=Tt("op-symbols"),We=Tt("string-to-symbol-registry"),ze=Tt("symbol-to-string-registry"),Ve=Tt("wks"),Ge=S.QObject,He=!Ge||!Ge[Me]||!Ge[Me].findChild,Ue=d&&i(function(){return 7!=Rt(Re({},"a",{get:function(){return Re(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=Ce(Ae,e);r&&delete Ae[e],Re(t,e,n),r&&t!==Ae&&Re(Ae,e,r)}:Re,Be=xt&&"symbol"==typeof Ye.iterator?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof Ye},Ze=function(t,e,n){t===Ae&&Ze(Fe,e,n),f(t);var r=a(e,!0);return f(n),g(Ne,r)?(n.enumerable?(g(t,ke)&&t[ke][r]&&(t[ke][r]=!1),n=Rt(n,{enumerable:m(0,!1)})):(g(t,ke)||Re(t,ke,m(1,{})),t[ke][r]=!0),Ue(t,r,n)):Re(t,r,n)},Xe=function(t){var e=a(t,!0),n=Ie.call(this,e);return!(this===Ae&&g(Ne,e)&&!g(Fe,e))&&(!(n||!g(this,e)||!g(Ne,e)||g(this,ke)&&this[ke][e])||n)},qe=function(t){var e=t===Ae,n=je(e?Fe:l(t)),r=[];return Oe(n,function(t){!g(Ne,t)||e&&!g(Ae,t)||r.push(Ne[t])}),r};if(xt||(jt((Ye=function(t){if(this instanceof Ye)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==t?String(t):void 0,n=_t(e),r=function(t){this===Ae&&r.call(Fe,t),g(this,ke)&&g(this[ke],n)&&(this[ke][n]=!1),Ue(this,n,m(1,t))};return d&&He&&Ue(Ae,n,{configurable:!0,set:r}),ye(n,e)})[Me],"toString",function(){return Ee(this).tag}),y.f=Xe,W.f=Ze,A.f=ge,ft.f=Gt.f=_e,dt.f=qe,d&&Re(Ye[Me],"description",{configurable:!0,get:function(){return Ee(this).description}}),Bt.f=function(t){return ye(It(t),t)}),b({global:!0,wrap:!0,forced:!xt,sham:!xt},{Symbol:Ye}),Oe(ot(Ve),function(t){Nt(t)}),b({target:De,stat:!0,forced:!xt},{for:function(t){var e=String(t);if(g(We,e))return We[e];var n=Ye(e);return We[e]=n,ze[n]=e,n},keyFor:function(t){if(!Be(t))throw TypeError(t+" is not a symbol");if(g(ze,t))return ze[t]},useSetter:function(){He=!0},useSimple:function(){He=!1}}),b({target:"Object",stat:!0,forced:!xt,sham:!d},{create:function(t,e){return void 0===e?Rt(t):me(Rt(t),e)},defineProperty:Ze,defineProperties:me,getOwnPropertyDescriptor:ge}),b({target:"Object",stat:!0,forced:!xt},{getOwnPropertyNames:_e,getOwnPropertySymbols:qe}),b({target:"Object",stat:!0,forced:i(function(){dt.f(1)})},{getOwnPropertySymbols:function(t){return dt.f(gt(t))}}),Le){var $e=!xt||i(function(){var t=Ye();return"[null]"!=Le([t])||"{}"!=Le({a:t})||"{}"!=Le(Object(t))});b({target:"JSON",stat:!0,forced:$e},{stringify:function(t,e,n){for(var r,i=[t],o=1;o<arguments.length;)i.push(arguments[o++]);if((c(r=e)||void 0!==t)&&!Be(t))return Ot(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!Be(e))return e}),i[1]=e,Le.apply(null,i)}})}Ye[Me][Te]||z(Ye[Me],Te,Ye[Me].valueOf),Jt(Ye,De),nt[ke]=!0;var Je,Qe,Ke,tn=N.Object.getOwnPropertySymbols,en={},nn=!i(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),rn=wt("IE_PROTO"),on=Object.prototype,an=nn?Object.getPrototypeOf:function(t){return t=gt(t),g(t,rn)?t[rn]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?on:null},sn=(It("iterator"),!1);[].keys&&("next"in(Ke=[].keys())?(Qe=an(an(Ke)))!==Object.prototype&&(Je=Qe):sn=!0),null==Je&&(Je={});function un(){return this}function ln(){return this}function cn(t,e,n,r,i,o,a){function s(t){if(t===i&&v)return v;if(!pn&&t in d)return d[t];switch(t){case"keys":case yn:case mn:return function(){return new n(this,t)}}return function(){return new n(this)}}!function(t,e,n){var r=e+" Iterator";t.prototype=Rt(fn,{next:m(1,n)}),Jt(t,r,!1,!0),en[r]=un}(n,e,r);var u,l,c,h=e+" Iterator",f=!1,d=t.prototype,p=d[vn]||d["@@iterator"]||i&&d[i],v=!pn&&p||s(i),y="Array"==e&&d.entries||p;if(y&&(u=an(y.call(new t)),dn!==Object.prototype&&u.next&&(Jt(u,h,!0,!0),en[h]=ln)),i==yn&&p&&p.name!==yn&&(f=!0,v=function(){return p.call(this)}),a&&d[vn]!==v&&z(d,vn,v),en[e]=v,i)if(l={values:s(yn),keys:o?v:s("keys"),entries:s(mn)},a)for(c in l)!pn&&!f&&c in d||jt(d,c,l[c]);else b({target:e,proto:!0,forced:pn||f},l);return l}var hn={IteratorPrototype:Je,BUGGY_SAFARI_ITERATORS:sn},fn=hn.IteratorPrototype,dn=(Object.setPrototypeOf||"__proto__"in{}&&function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}}(),hn.IteratorPrototype),pn=hn.BUGGY_SAFARI_ITERATORS,vn=It("iterator"),yn="values",mn="entries",gn="Array Iterator",_n=we.set,wn=we.getterFor(gn);cn(Array,"Array",function(t,e){_n(this,{type:gn,target:l(t),index:0,kind:e})},function(){var t=wn(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?{value:t.target=void 0,done:!0}:"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");en.Arguments=en.Array;var bn=It("toStringTag");for(var Sn 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 xn=S[Sn],On=xn&&xn.prototype;On&&!On[bn]&&z(On,bn,Sn),en[Sn]=en.Array}function kn(s){return function(t,e){var n,r,i=String(u(t)),o=G(e),a=i.length;return o<0||a<=o?s?"":void 0:(n=i.charCodeAt(o))<55296||56319<n||o+1===a||(r=i.charCodeAt(o+1))<56320||57343<r?s?i.charAt(o):n:s?i.slice(o,o+2):r-56320+(n-55296<<10)+65536}}var Dn={codeAt:kn(!1),charAt:kn(!0)}.charAt,Mn="String Iterator",Tn=we.set,Pn=we.getterFor(Mn);cn(String,"String",function(t){Tn(this,{type:Mn,string:String(t),index:0})},function(){var t,e=Pn(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=Dn(n,r),e.index+=t.length,{value:t,done:!1})});function En(t){if(null!=t)return t[An]||t["@@iterator"]||en[Ft(t)]}var An=It("iterator"),Yn=function(t){var e=En(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return f(e.call(t))};b({target:"Object",stat:!0,sham:!d},{create:Rt});var Ln=N.Object,Cn=function(t,e){return Ln.create(t,e)},Rn=X;var jn=function(t,e,n){return e in t?Rn(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},In=i(function(){ot(1)});b({target:"Object",stat:!0,forced:In},{keys:function(t){return ot(gt(t))}});function Nn(n){return function(t){var e=String(u(t));return 1&n&&(e=e.replace(Gn,"")),2&n&&(e=e.replace(Hn,"")),e}}var Fn,Wn=N.Object.keys,zn="\t\n\v\f\r                 \u2028\u2029\ufeff",Vn="["+zn+"]",Gn=RegExp("^"+Vn+Vn+"*"),Hn=RegExp(Vn+Vn+"*$"),Un={start:Nn(1),end:Nn(2),trim:Nn(3)},Bn=Un.trim;b({target:"String",proto:!0,forced:(Fn="trim",i(function(){return!!zn[Fn]()||"​…᠎"!="​…᠎"[Fn]()||zn[Fn].name!==Fn}))},{trim:function(){return Bn(this)}});function Zn(t){return N[t+"Prototype"]}function Xn(t,e){var n=[][t];return!n||!i(function(){n.call(null,e||function(){throw 1},1)})}var qn=Zn("String").trim,$n=String.prototype,Jn=function(t){var e=t.trim;return"string"==typeof t||t===$n||t instanceof String&&e===$n.trim?qn:e},Qn=xe.forEach,Kn=Xn("forEach")?function(t,e){return Qn(this,t,1<arguments.length?e:void 0)}:[].forEach;b({target:"Array",proto:!0,forced:[].forEach!=Kn},{forEach:Kn});var tr,er,nr=Zn("Array").forEach,rr=Array.prototype,ir={DOMTokenList:!0,NodeList:!0},or=function(t){var e=t.forEach;return t===rr||t instanceof Array&&e===rr.forEach||ir.hasOwnProperty(Ft(t))?nr:e},ar=ut("navigator","userAgent")||"",sr=S.process,ur=sr&&sr.versions,lr=ur&&ur.v8;lr?er=(tr=lr.split("."))[0]+tr[1]:ar&&(!(tr=ar.match(/Edge\/(\d+)/))||74<=tr[1])&&(tr=ar.match(/Chrome\/(\d+)/))&&(er=tr[1]);function cr(e){return 51<=hr||!i(function(){var t=[];return(t.constructor={})[fr]=function(){return{foo:1}},1!==t[e](Boolean).foo})}var hr=er&&+er,fr=It("species"),dr=xe.map;b({target:"Array",proto:!0,forced:!cr("map")},{map:function(t,e){return dr(this,t,1<arguments.length?e:void 0)}});var pr=Zn("Array").map,vr=Array.prototype,yr=function(t){var e=t.map;return t===vr||t instanceof Array&&e===vr.map?pr:e},mr=Un.trim,gr=S.parseInt,_r=/^[+-]?0[Xx]/,wr=8!==gr(zn+"08")||22!==gr(zn+"0x16")?function(t,e){var n=mr(String(t));return gr(n,e>>>0||(_r.test(n)?16:10))}:gr;b({global:!0,forced:parseInt!=wr},{parseInt:wr});function br(s){return function(t){for(var e,n=l(t),r=ot(n),i=r.length,o=0,a=[];o<i;)e=r[o++],d&&!xr.call(n,e)||a.push(s?[e,n[e]]:n[e]);return a}}var Sr=N.parseInt,xr=y.f,Or={entries:br(!0),values:br(!1)}.values;b({target:"Object",stat:!0},{values:function(t){return Or(t)}});var kr=N.Object.values,Dr=xe.filter;b({target:"Array",proto:!0,forced:!cr("filter")},{filter:function(t,e){return Dr(this,t,1<arguments.length?e:void 0)}});function Mr(t){if(!c(t))return!1;var e=t[Ar];return void 0!==e?!!e:Ot(t)}var Tr=Zn("Array").filter,Pr=Array.prototype,Er=function(t){var e=t.filter;return t===Pr||t instanceof Array&&e===Pr.filter?Tr:e},Ar=It("isConcatSpreadable"),Yr=9007199254740991,Lr="Maximum allowed index exceeded",Cr=51<=hr||!i(function(){var t=[];return t[Ar]=!1,t.concat()[0]!==t}),Rr=cr("concat");b({target:"Array",proto:!0,forced:!Cr||!Rr},{concat:function(t){var e,n,r,i,o,a=gt(this),s=pe(a,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(Mr(o=-1===e?a:arguments[e])){if(i=H(o.length),Yr<u+i)throw TypeError(Lr);for(n=0;n<i;n++,u++)n in o&&lt(s,u,o[n])}else{if(Yr<=u)throw TypeError(Lr);lt(s,u++,o)}return s.length=u,s}});var jr=Zn("Array").concat,Ir=Array.prototype,Nr=function(t){var e=t.concat;return t===Ir||t instanceof Array&&e===Ir.concat?jr:e};b({target:"Array",stat:!0},{isArray:Ot});var Fr=N.Array.isArray,Wr=Fr;function zr(e,t,n,r){try{return r?t(f(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&f(i.call(e)),t}}var Vr=function(t){if(Wr(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}},Gr=It("iterator"),Hr=Array.prototype,Ur=It("iterator"),Br=!1;try{var Zr=0,Xr={next:function(){return{done:!!Zr++}},return:function(){Br=!0}};Xr[Ur]=function(){return this},Array.from(Xr,function(){throw 2})}catch(t){}var qr=!function(t,e){if(!e&&!Br)return!1;var n=!1;try{var r={};r[Ur]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n}(function(t){Array.from(t)});b({target:"Array",stat:!0,forced:qr},{from:function(t,e,n){var r,i,o,a,s,u=gt(t),l="function"==typeof this?this:Array,c=arguments.length,h=1<c?e:void 0,f=void 0!==h,d=0,p=En(u);if(f&&(h=w(h,2<c?n:void 0,2)),null==p||l==Array&&function(t){return void 0!==t&&(en.Array===t||Hr[Gr]===t)}(p))for(i=new l(r=H(u.length));d<r;d++)lt(i,d,f?h(u[d],d):u[d]);else for(s=(a=p.call(u)).next,i=new l;!(o=s.call(a)).done;d++)lt(i,d,f?zr(a,h,[o.value,d],!0):o.value);return i.length=d,i}});var $r=N.Array.from,Jr=It("iterator"),Qr=function(t){var e=Object(t);return void 0!==e[Jr]||"@@iterator"in e||en.hasOwnProperty(Ft(e))};var Kr=function(t){if(Qr(Object(t))||"[object Arguments]"===Object.prototype.toString.call(t))return $r(t)};var ti=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")};var ei=function(t){return Vr(t)||Kr(t)||ti()},ni=It("species"),ri=[].slice,ii=Math.max;b({target:"Array",proto:!0,forced:!cr("slice")},{slice:function(t,e){var n,r,i,o=l(this),a=H(o.length),s=U(t,a),u=U(void 0===e?a:e,a);if(Ot(o)&&("function"!=typeof(n=o.constructor)||n!==Array&&!Ot(n.prototype)?c(n)&&null===(n=n[ni])&&(n=void 0):n=void 0,n===Array||void 0===n))return ri.call(o,s,u);for(r=new(void 0===n?Array:n)(ii(u-s,0)),i=0;s<u;s++,i++)s in o&&lt(r,i,o[s]);return r.length=i,r}});var oi=Zn("Array").slice,ai=Array.prototype,si=function(t){var e=t.slice;return t===ai||t instanceof Array&&e===ai.slice?oi:e},ui=i(function(){an(1)});b({target:"Object",stat:!0,forced:ui,sham:!nn},{getPrototypeOf:function(t){return an(gt(t))}});var li=N.Object.getPrototypeOf,ci=et.indexOf,hi=[].indexOf,fi=!!hi&&1/[1].indexOf(1,-0)<0,di=Xn("indexOf");b({target:"Array",proto:!0,forced:fi||di},{indexOf:function(t,e){return fi?hi.apply(this,arguments)||0:ci(this,t,1<arguments.length?e:void 0)}});var pi=Zn("Array").indexOf,vi=Array.prototype,yi=function(t){var e=t.indexOf;return t===vi||t instanceof Array&&e===vi.indexOf?pi:e},mi=Fr,gi=Object.assign,_i=!gi||i(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=gi({},t)[n]||ot(gi({},e)).join("")!=r})?function(t,e){for(var n=gt(t),r=arguments.length,i=1,o=dt.f,a=y.f;i<r;)for(var s,u=k(arguments[i++]),l=o?ot(u).concat(o(u)):ot(u),c=l.length,h=0;h<c;)s=l[h++],d&&!a.call(u,s)||(n[s]=u[s]);return n}:gi;b({target:"Object",stat:!0,forced:Object.assign!==_i},{assign:_i});var wi=N.Object.assign;Nt("iterator");var bi=Bt.f("iterator");Nt("asyncIterator"),Nt("hasInstance"),Nt("isConcatSpreadable"),Nt("match"),Nt("matchAll"),Nt("replace"),Nt("search"),Nt("species"),Nt("split"),Nt("toPrimitive"),Nt("toStringTag"),Nt("unscopables"),Jt(Math,"Math",!0),Jt(S.JSON,"JSON",!0);var Si=N.Symbol;Nt("asyncDispose"),Nt("dispose"),Nt("observable"),Nt("patternMatch"),Nt("replaceAll");for(var xi=Si,Oi=n(function(e){function n(t){return(n="function"==typeof xi&&"symbol"==typeof bi?function(t){return typeof t}:function(t){return t&&"function"==typeof xi&&t.constructor===xi&&t!==xi.prototype?"symbol":typeof t})(t)}function r(t){return"function"==typeof xi&&"symbol"===n(bi)?e.exports=r=function(t){return n(t)}:e.exports=r=function(t){return t&&"function"==typeof xi&&t.constructor===xi&&t!==xi.prototype?"symbol":n(t)},r(t)}e.exports=r}),ki=[],Di=0;Di<256;Di++)ki[Di]=(Di+256).toString(16).substr(1);for(var Mi=function(){if("undefined"!=typeof crypto&&crypto.getRandomValues){var t=new Uint8Array(16);return function(){return crypto.getRandomValues(t),t}}var n=new Array(16);return function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),n[e]=t>>>((3&e)<<3)&255;return n}}(),Ti=[],Pi=0;Pi<256;Pi++)Ti[Pi]=(Pi+256).toString(16).substr(1);var Ei=Mi();Ei[0],Ei[1],Ei[2],Ei[3],Ei[4],Ei[5],Ei[6],Ei[7];function Ai(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=1<arguments.length?arguments[1]:void 0,n=e&&(2<arguments.length?arguments[2]:void 0)||0;"string"==typeof t&&(e="binary"===t?new Array(16):void 0,t={});var r=t.random||(t.rng||Mi)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e)for(var i=0;i<16;i++)e[n+i]=r[i];return e||function(t,e){var n=e||0,r=ki;return r[t[n++]]+r[t[n++]]+r[t[n++]]+r[t[n++]]+"-"+r[t[n++]]+r[t[n++]]+"-"+r[t[n++]]+r[t[n++]]+"-"+r[t[n++]]+r[t[n++]]+"-"+r[t[n++]]+r[t[n++]]+r[t[n++]]+r[t[n++]]+r[t[n++]]+r[t[n++]]}(r)}function Yi(e,t){var n=Wn(e);if(tn){var r=tn(e);t&&(r=Er(r).call(r,function(t){return St(e,t).enumerable})),n.push.apply(n,r)}return n}var Li=/^\/?Date\((-?\d+)/i,Ci=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,Ri=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,ji=/^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,Ii=/^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 Ni(t){return t instanceof Number||"number"==typeof t}function Fi(t){if(t)for(;!0===t.hasChildNodes();){var e=t.firstChild;e&&(Fi(e),t.removeChild(e))}}function Wi(t){return t instanceof String||"string"==typeof t}function zi(t){return"object"===Oi(t)&&null!==t}function Vi(t){if(t instanceof Date)return!0;if(Wi(t)){if(Li.exec(t))return!0;if(!isNaN(Date.parse(t)))return!0}return!1}function Gi(t,e,n,r){var i=!1;!0===r&&(i=null===e[n]&&void 0!==t[n]),i?delete t[n]:t[n]=e[n]}function Hi(t,e){var n=2<arguments.length&&void 0!==arguments[2]&&arguments[2];for(var r in t)if(void 0!==e[r])if(null===e[r]||"object"!==Oi(e[r]))Gi(t,e,r,n);else{var i=t[r],o=e[r];zi(i)&&zi(o)&&Hi(i,o,n)}}var Ui=wi;function Bi(t,e){if(!mi(t))throw new Error("Array with property names expected as first argument");for(var n=arguments.length,r=new Array(2<n?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];for(var o=0,a=r;o<a.length;o++)for(var s=a[o],u=0;u<t.length;u++){var l=t[u];s&&Object.prototype.hasOwnProperty.call(s,l)&&(e[l]=s[l])}return e}function Zi(t,e,n){var r=3<arguments.length&&void 0!==arguments[3]&&arguments[3];if(mi(n))throw new TypeError("Arrays are not supported by deepExtend");for(var i=0;i<t.length;i++){var o=t[i];if(Object.prototype.hasOwnProperty.call(n,o))if(n[o]&&n[o].constructor===Object)void 0===e[o]&&(e[o]={}),e[o].constructor===Object?qi(e[o],n[o],!1,r):Gi(e,n,o,r);else{if(mi(n[o]))throw new TypeError("Arrays are not supported by deepExtend");Gi(e,n,o,r)}}return e}function Xi(t,e,n){var r=3<arguments.length&&void 0!==arguments[3]&&arguments[3];if(mi(n))throw new TypeError("Arrays are not supported by deepExtend");for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&-1===yi(t).call(t,i))if(n[i]&&n[i].constructor===Object)void 0===e[i]&&(e[i]={}),e[i].constructor===Object?qi(e[i],n[i]):Gi(e,n,i,r);else if(mi(n[i])){e[i]=[];for(var o=0;o<n[i].length;o++)e[i].push(n[i][o])}else Gi(e,n,i,r);return e}function qi(t,e){var n=2<arguments.length&&void 0!==arguments[2]&&arguments[2],r=3<arguments.length&&void 0!==arguments[3]&&arguments[3];for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)||!0===n)if("object"===Oi(e[i])&&null!==e[i]&&li(e[i])===Object.prototype)void 0===t[i]?t[i]=qi({},e[i],n):"object"===Oi(t[i])&&null!==t[i]&&li(t[i])===Object.prototype?qi(t[i],e[i],n):Gi(t,e,i,r);else if(mi(e[i])){var o;t[i]=si(o=e[i]).call(o)}else Gi(t,e,i,r);return t}function $i(t,e){if(t.length!==e.length)return!1;for(var n=0,r=t.length;n<r;n++)if(t[n]!=e[n])return!1;return!0}function Ji(t){var e=Oi(t);return"object"===e?null===t?"null":t instanceof Boolean?"Boolean":t instanceof Number?"Number":t instanceof String?"String":mi(t)?"Array":t instanceof Date?"Date":"Object":"number"===e?"Number":"boolean"===e?"Boolean":"string"===e?"String":void 0===e?"undefined":e}function Qi(t,e){var n;return Nr(n=[]).call(n,ei(t),[e])}function Ki(t){return si(t).call(t)}function to(t){return t.getBoundingClientRect().left}function eo(t){return t.getBoundingClientRect().right}function no(t){return t.getBoundingClientRect().top}function ro(t,e){var n=t.className.split(" "),r=e.split(" ");n=Nr(n).call(n,Er(r).call(r,function(t){return yi(n).call(n,t)<0})),t.className=n.join(" ")}function io(t,e){var n=t.className.split(" "),r=e.split(" ");n=Er(n).call(n,function(t){return yi(r).call(r,t)<0}),t.className=n.join(" ")}function oo(t,e){if(mi(t))for(var n=t.length,r=0;r<n;r++)e(t[r],r,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e(t[i],i,t)}var ao=kr;function so(t,e,n){return t[e]!==n&&(t[e]=n,!0)}function uo(t){var e=!1;return function(){e||(e=!0,requestAnimationFrame(function(){e=!1,t()}))}}function lo(t,e,n,r){var i;t.addEventListener?(void 0===r&&(r=!1),"mousewheel"===e&&0<=yi(i=navigator.userAgent).call(i,"Firefox")&&(e="DOMMouseScroll"),t.addEventListener(e,n,r)):t.attachEvent("on"+e,n)}function co(t,e,n,r){var i;t.removeEventListener?(void 0===r&&(r=!1),"mousewheel"===e&&0<=yi(i=navigator.userAgent).call(i,"Firefox")&&(e="DOMMouseScroll"),t.removeEventListener(e,n,r)):t.detachEvent("on"+e,n)}function ho(t){(t=t||window.event)&&(t.preventDefault?t.preventDefault():t.returnValue=!1)}function fo(){var t=0<arguments.length&&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}function po(t,e){for(var n=t;n;){if(n===e)return!0;if(!n.parentNode)return!1;n=n.parentNode}return!1}var vo={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()),Wi(t)?t:Ni(t)?t+"px":e||null},asElement:function(t,e){return"function"==typeof t&&(t=t()),t||e||null}};function yo(t){var e;switch(t.length){case 3:case 4:return(e=Ri.exec(t))?{r:Sr(e[1]+e[1],16),g:Sr(e[2]+e[2],16),b:Sr(e[3]+e[3],16)}:null;case 6:case 7:return(e=Ci.exec(t))?{r:Sr(e[1],16),g:Sr(e[2],16),b:Sr(e[3],16)}:null;default:return null}}function mo(t,e){if(-1!==yi(t).call(t,"rgba"))return t;if(-1!==yi(t).call(t,"rgb")){var n=t.substr(yi(t).call(t,"(")+1).replace(")","").split(",");return"rgba("+n[0]+","+n[1]+","+n[2]+","+e+")"}var r=yo(t);return null==r?t:"rgba("+r.r+","+r.g+","+r.b+","+e+")"}function go(t,e,n){var r;return"#"+si(r=((1<<24)+(t<<16)+(e<<8)+n).toString(16)).call(r,1)}function _o(t,e){if(Wi(t)){var n=t;if(Po(n)){var r,i=yr(r=n.substr(4).substr(0,n.length-5).split(",")).call(r,function(t){return Sr(t)});n=go(i[0],i[1],i[2])}if(!0!==To(n))return{background:n,border:n,highlight:{background:n,border:n},hover:{background:n,border:n}};var o=Mo(n),a={h:o.h,s:.8*o.s,v:Math.min(1,1.02*o.v)},s={h:o.h,s:Math.min(1,1.25*o.s),v:.8*o.v},u=Do(s.h,s.s,s.v),l=Do(a.h,a.s,a.v);return{background:n,border:u,highlight:{background:l,border:u},hover:{background:l,border:u}}}return e?{background:t.background||e.background,border:t.border||e.border,highlight:Wi(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:Wi(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:Wi(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:Wi(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 wo(t,e,n){t/=255,e/=255,n/=255;var r=Math.min(t,Math.min(e,n)),i=Math.max(t,Math.max(e,n));return r===i?{h:0,s:0,v:r}:{h:60*((t===r?3:n===r?1:5)-(t===r?e-n:n===r?t-e:n-t)/(i-r))/360,s:(i-r)/i,v:i}}var bo=function(t){var e,a={};return or(e=t.split(";")).call(e,function(t){if(""!=Jn(t).call(t)){var e,n,r=t.split(":"),i=Jn(e=r[0]).call(e),o=Jn(n=r[1]).call(n);a[i]=o}}),a},So=function(e){var t;return yr(t=Wn(e)).call(t,function(t){return t+": "+e[t]}).join("; ")};function xo(t,e){var n=function(e){for(var t=1;t<arguments.length;t++){var n,r=null!=arguments[t]?arguments[t]:{};if(t%2)or(n=Yi(r,!0)).call(n,function(t){jn(e,t,r[t])});else if(vt)ct(e,vt(r));else{var i;or(i=Yi(r)).call(i,function(t){q(e,t,St(r,t))})}}return e}({},bo(t.style.cssText),{},bo(e));t.style.cssText=So(n)}function Oo(t,e){var n=bo(t.style.cssText),r=bo(e);for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&delete n[i];t.style.cssText=So(n)}function ko(t,e,n){var r,i,o,a=Math.floor(6*t),s=6*t-a,u=n*(1-e),l=n*(1-s*e),c=n*(1-(1-s)*e);switch(a%6){case 0:r=n,i=c,o=u;break;case 1:r=l,i=n,o=u;break;case 2:r=u,i=n,o=c;break;case 3:r=u,i=l,o=n;break;case 4:r=c,i=u,o=n;break;case 5:r=n,i=u,o=l}return{r:Math.floor(255*r),g:Math.floor(255*i),b:Math.floor(255*o)}}function Do(t,e,n){var r=ko(t,e,n);return go(r.r,r.g,r.b)}function Mo(t){var e=yo(t);if(!e)throw new TypeError("'".concat(t,"' is not a valid color."));return wo(e.r,e.g,e.b)}function To(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)}function Po(t){return ji.test(t)}function Eo(t){return Ii.test(t)}function Ao(t,e){if(null===e||"object"!==Oi(e))return null;for(var n=Cn(e),r=0;r<t.length;r++)Object.prototype.hasOwnProperty.call(e,t[r])&&"object"==Oi(e[t[r]])&&(n[t[r]]=Yo(e[t[r]]));return n}function Yo(t){if(null===t||"object"!==Oi(t))return null;if(t instanceof Element)return t;var e=Cn(t);for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&"object"==Oi(t[n])&&(e[n]=Yo(t[n]));return e}function Lo(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=void 0;for(i=n;0<i&&e(r,t[i-1])<0;i--)t[i]=t[i-1];t[i]=r}return t}function Co(t,e,n){function r(t){return null!=t}function a(t){return null!==t&&"object"===Oi(t)}var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};if(!a(t))throw new Error("Parameter mergeTarget must be an object");if(!a(e))throw new Error("Parameter options must be an object");if(!r(n))throw new Error("Parameter option must have a value");if(!a(i))throw new Error("Parameter globalOptions must be an object");var o=e[n],s=a(i)&&!function(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}(i)?i[n]:void 0,u=s?s.enabled:void 0;if(void 0!==o){if("boolean"==typeof o)return a(t[n])||(t[n]={}),void(t[n].enabled=o);if(null===o&&!a(t[n])){if(!r(s))return;t[n]=Cn(s)}if(a(o)){var l=!0;void 0!==o.enabled?l=o.enabled:void 0!==u&&(l=s.enabled),function(t,e,n){a(t[n])||(t[n]={});var r=e[n],i=t[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(i[o]=r[o])}(t,e,n),t[n].enabled=l}}}function Ro(t,e,n,r){for(var i=0,o=0,a=t.length-1;o<=a&&i<1e4;){var s=Math.floor((o+a)/2),u=t[s],l=e(void 0===r?u[n]:u[n][r]);if(0==l)return s;-1==l?o=s+1:a=s-1,i++}return-1}function jo(t,e,n,r,i){var o,a,s,u,l=0,c=0,h=t.length-1;for(i=null!=i?i:function(t,e){return t==e?0:t<e?-1:1};c<=h&&l<1e4;){if(u=Math.floor(.5*(h+c)),o=t[Math.max(0,u-1)][n],a=t[u][n],s=t[Math.min(t.length-1,u+1)][n],0==i(a,e))return u;if(i(o,e)<0&&0<i(a,e))return"before"==r?Math.max(0,u-1):u;if(i(a,e)<0&&0<i(s,e))return"before"==r?u:Math.min(t.length-1,u+1);i(a,e)<0?c=u+1:h=u-1,l++}return-1}var Io={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 No(){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 n=t.offsetWidth;e.style.overflow="scroll";var r=t.offsetWidth;return n==r&&(r=e.clientWidth),document.body.removeChild(e),n-r}function Fo(t,e){var n;mi(e)||(e=[e]);var r=!0,i=!1,o=void 0;try{for(var a,s=Yn(t);!(r=(a=s.next()).done);r=!0){var u=a.value;if(u){n=u[e[0]];for(var l=1;l<e.length;l++)n=n&&n[e[l]];if(void 0!==n)break}}}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}var Wo=Object.freeze({__proto__:null,isNumber:Ni,recursiveDOMDelete:Fi,isString:Wi,isObject:zi,isDate:Vi,fillIfDefined:Hi,extend:Ui,selectiveExtend:Bi,selectiveDeepExtend:Zi,selectiveNotDeepExtend:Xi,deepExtend:qi,equalArray:$i,getType:Ji,copyAndExtendArray:Qi,copyArray:Ki,getAbsoluteLeft:to,getAbsoluteRight:eo,getAbsoluteTop:no,addClassName:ro,removeClassName:io,forEach:oo,toArray:ao,updateProperty:so,throttle:uo,addEventListener:lo,removeEventListener:co,preventDefault:ho,getTarget:fo,hasParent:po,option:vo,hexToRGB:yo,overrideOpacity:mo,RGBToHex:go,parseColor:_o,RGBToHSV:wo,addCssText:xo,removeCssText:Oo,HSVToRGB:ko,HSVToHex:Do,hexToHSV:Mo,isValidHex:To,isValidRGB:Po,isValidRGBA:Eo,selectiveBridgeObject:Ao,bridgeObject:Yo,insertSort:Lo,mergeOptions:Co,binarySearchCustom:Ro,binarySearchValue:jo,easingFunctions:Io,getScrollBarWidth:No,topMost:Fo,randomUUID:Ai}),zo=Object.freeze({default:Wo,HSVToHex:Do,HSVToRGB:ko,RGBToHSV:wo,RGBToHex:go,addClassName:ro,addCssText:xo,addEventListener:lo,binarySearchCustom:Ro,binarySearchValue:jo,bridgeObject:Yo,copyAndExtendArray:Qi,copyArray:Ki,deepExtend:qi,easingFunctions:Io,equalArray:$i,extend:Ui,fillIfDefined:Hi,forEach:oo,getAbsoluteLeft:to,getAbsoluteRight:eo,getAbsoluteTop:no,getScrollBarWidth:No,getTarget:fo,getType:Ji,hasParent:po,hexToHSV:Mo,hexToRGB:yo,insertSort:Lo,isDate:Vi,isNumber:Ni,isObject:zi,isString:Wi,isValidHex:To,isValidRGB:Po,isValidRGBA:Eo,mergeOptions:Co,option:vo,overrideOpacity:mo,parseColor:_o,preventDefault:ho,randomUUID:Ai,recursiveDOMDelete:Fi,removeClassName:io,removeCssText:Oo,removeEventListener:co,selectiveBridgeObject:Ao,selectiveDeepExtend:Zi,selectiveExtend:Bi,selectiveNotDeepExtend:Xi,throttle:uo,toArray:ao,topMost:Fo,updateProperty:so});"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function Vo(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function Go(t,e){return t(e={exports:{}},e.exports),e.exports}function Ho(t){return t&&t.default||t}var Uo=Go(function(t,l){l.prepareElements=function(t){for(var e in t)t.hasOwnProperty(e)&&(t[e].redundant=t[e].used,t[e].used=[])},l.cleanupElements=function(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e].redundant){for(var n=0;n<t[e].redundant.length;n++)t[e].redundant[n].parentNode.removeChild(t[e].redundant[n]);t[e].redundant=[]}},l.resetElements=function(t){l.prepareElements(t),l.cleanupElements(t),l.prepareElements(t)},l.getSVGElement=function(t,e,n){var r;return e.hasOwnProperty(t)?0<e[t].redundant.length?(r=e[t].redundant[0],e[t].redundant.shift()):(r=document.createElementNS("http://www.w3.org/2000/svg",t),n.appendChild(r)):(r=document.createElementNS("http://www.w3.org/2000/svg",t),e[t]={used:[],redundant:[]},n.appendChild(r)),e[t].used.push(r),r},l.getDOMElement=function(t,e,n,r){var i;return e.hasOwnProperty(t)?0<e[t].redundant.length?(i=e[t].redundant[0],e[t].redundant.shift()):(i=document.createElement(t),void 0!==r?n.insertBefore(i,r):n.appendChild(i)):(i=document.createElement(t),e[t]={used:[],redundant:[]},void 0!==r?n.insertBefore(i,r):n.appendChild(i)),e[t].used.push(i),i},l.drawPoint=function(t,e,n,r,i,o){var a;if("circle"==n.style?((a=l.getSVGElement("circle",r,i)).setAttributeNS(null,"cx",t),a.setAttributeNS(null,"cy",e),a.setAttributeNS(null,"r",.5*n.size)):((a=l.getSVGElement("rect",r,i)).setAttributeNS(null,"x",t-.5*n.size),a.setAttributeNS(null,"y",e-.5*n.size),a.setAttributeNS(null,"width",n.size),a.setAttributeNS(null,"height",n.size)),void 0!==n.styles&&a.setAttributeNS(null,"style",n.styles),a.setAttributeNS(null,"class",n.className+" vis-point"),o){var s=l.getSVGElement("text",r,i);o.xOffset&&(t+=o.xOffset),o.yOffset&&(e+=o.yOffset),o.content&&(s.textContent=o.content),o.className&&s.setAttributeNS(null,"class",o.className+" vis-label"),s.setAttributeNS(null,"x",t),s.setAttributeNS(null,"y",e)}return a},l.drawBar=function(t,e,n,r,i,o,a,s){if(0!=r){r<0&&(e-=r*=-1);var u=l.getSVGElement("rect",o,a);u.setAttributeNS(null,"x",t-.5*n),u.setAttributeNS(null,"y",e),u.setAttributeNS(null,"width",n),u.setAttributeNS(null,"height",r),u.setAttributeNS(null,"class",i),s&&u.setAttributeNS(null,"style",s)}}}),Bo=(Uo.prepareElements,Uo.cleanupElements,Uo.resetElements,Uo.getSVGElement,Uo.getDOMElement,Uo.drawPoint,Uo.drawBar,"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{});function Zo(t,e){return t(e={exports:{}},e.exports),e.exports}function Xo(t){return t&&t.Math==Math&&t}function qo(t){try{return!!t()}catch(t){return!0}}function $o(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}function Jo(t){return va.call(t).slice(8,-1)}function Qo(t){if(null==t)throw TypeError("Can't call method on "+t);return t}function Ko(t){return ma(Qo(t))}function ta(t){return"object"==typeof t?null!==t:"function"==typeof t}function ea(t,e){if(!ta(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!ta(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!ta(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!ta(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}function na(t,e){return ga.call(t,e)}function ra(t){return wa?_a.createElement(t):{}}function ia(t,e){var n=Da[ka(t)];return n==Ta||n!=Ma&&("function"==typeof e?qo(e):!!e)}function oa(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}function aa(r,i,t){if(oa(r),void 0===i)return r;switch(t){case 0:return function(){return r.call(i)};case 1:return function(t){return r.call(i,t)};case 2:return function(t,e){return r.call(i,t,e)};case 3:return function(t,e,n){return r.call(i,t,e,n)}}return function(){return r.apply(i,arguments)}}function sa(t){if(!ta(t))throw TypeError(String(t)+" is not an object");return t}function ua(r){function t(t,e,n){if(this instanceof r){switch(arguments.length){case 0:return new r;case 1:return new r(t);case 2:return new r(t,e)}return new r(t,e,n)}return r.apply(this,arguments)}return t.prototype=r.prototype,t}function la(t,e){var n,r,i,o,a,s,u,l,c=t.target,h=t.global,f=t.stat,d=t.proto,p=h?ca:f?ca[c]:(ca[c]||{}).prototype,v=h?Ea:Ea[c]||(Ea[c]={}),y=v.prototype;for(i in e)n=!Pa(h?i:c+(f?".":"#")+i,t.forced)&&p&&na(p,i),a=v[i],n&&(s=t.noTargetGet?(l=Ca(p,i))&&l.value:p[i]),o=n&&s?s:e[i],n&&typeof a==typeof o||(u=t.bind&&n?aa(o,ca):t.wrap&&n?ua(o):d&&"function"==typeof o?aa(Function.call,o):o,(t.sham||o&&o.sham||a&&a.sham)&&La(u,"sham",!0),v[i]=u,d&&(na(Ea,r=c+"Prototype")||La(Ea,r,{}),Ea[r][i]=o,t.real&&y&&!y[i]&&La(y,i,o)))}var ca=Xo("object"==typeof globalThis&&globalThis)||Xo("object"==typeof window&&window)||Xo("object"==typeof self&&self)||Xo("object"==typeof Bo&&Bo)||Function("return this")(),ha=!qo(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),fa={}.propertyIsEnumerable,da=Object.getOwnPropertyDescriptor,pa={f:da&&!fa.call({1:2},1)?function(t){var e=da(this,t);return!!e&&e.enumerable}:fa},va={}.toString,ya="".split,ma=qo(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==Jo(t)?ya.call(t,""):Object(t)}:Object,ga={}.hasOwnProperty,_a=ca.document,wa=ta(_a)&&ta(_a.createElement),ba=!ha&&!qo(function(){return 7!=Object.defineProperty(ra("div"),"a",{get:function(){return 7}}).a}),Sa=Object.getOwnPropertyDescriptor,xa={f:ha?Sa:function(t,e){if(t=Ko(t),e=ea(e,!0),ba)try{return Sa(t,e)}catch(t){}if(na(t,e))return $o(!pa.f.call(t,e),t[e])}},Oa=/#|\.prototype\./,ka=ia.normalize=function(t){return String(t).replace(Oa,".").toLowerCase()},Da=ia.data={},Ma=ia.NATIVE="N",Ta=ia.POLYFILL="P",Pa=ia,Ea={},Aa=Object.defineProperty,Ya={f:ha?Aa:function(t,e,n){if(sa(t),e=ea(e,!0),sa(n),ba)try{return Aa(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},La=ha?function(t,e,n){return Ya.f(t,e,$o(1,n))}:function(t,e,n){return t[e]=n,t},Ca=xa.f;la({target:"Object",stat:!0,forced:!ha,sham:!ha},{defineProperty:Ya.f});function Ra(t){return isNaN(t=+t)?0:(0<t?Ga:Va)(t)}function ja(t){return 0<t?Ha(Ra(t),9007199254740991):0}function Ia(t,e){var n=Ra(t);return n<0?Ua(n+e,0):Ba(n,e)}function Na(s){return function(t,e,n){var r,i=Ko(t),o=ja(i.length),a=Ia(n,o);if(s&&e!=e){for(;a<o;)if((r=i[a++])!=r)return!0}else for(;a<o;a++)if((s||a in i)&&i[a]===e)return s||a||0;return!s&&-1}}function Fa(t,e){var n,r=Ko(t),i=0,o=[];for(n in r)!na(Xa,n)&&na(r,n)&&o.push(n);for(;e.length>i;)na(r,n=e[i++])&&(~qa(o,n)||o.push(n));return o}var Wa=Zo(function(t){var r=Ea.Object,e=t.exports=function(t,e,n){return r.defineProperty(t,e,n)};r.defineProperty.sham&&(e.sham=!0)}),za=Wa,Va=Math.ceil,Ga=Math.floor,Ha=Math.min,Ua=Math.max,Ba=Math.min,Za={includes:Na(!0),indexOf:Na(!1)},Xa={},qa=Za.indexOf,$a=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ja=Object.keys||function(t){return Fa(t,$a)},Qa=ha?Object.defineProperties:function(t,e){sa(t);for(var n,r=Ja(e),i=r.length,o=0;o<i;)Ya.f(t,n=r[o++],e[n]);return t};la({target:"Object",stat:!0,forced:!ha,sham:!ha},{defineProperties:Qa});function Ka(t){return"function"==typeof t?t:void 0}function ts(t,e){return arguments.length<2?Ka(Ea[t])||Ka(ca[t]):Ea[t]&&Ea[t][e]||ca[t]&&ca[t][e]}function es(t,e,n){var r=ea(e);r in t?Ya.f(t,r,$o(0,n)):t[r]=n}var ns=Zo(function(t){var n=Ea.Object,e=t.exports=function(t,e){return n.defineProperties(t,e)};n.defineProperties.sham&&(e.sham=!0)}),rs=$a.concat("length","prototype"),is={f:Object.getOwnPropertyNames||function(t){return Fa(t,rs)}},os={f:Object.getOwnPropertySymbols},as=ts("Reflect","ownKeys")||function(t){var e=is.f(sa(t)),n=os.f;return n?e.concat(n(t)):e};la({target:"Object",stat:!0,sham:!ha},{getOwnPropertyDescriptors:function(t){for(var e,n,r=Ko(t),i=xa.f,o=as(r),a={},s=0;o.length>s;)void 0!==(n=i(r,e=o[s++]))&&es(a,e,n);return a}});function ss(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++ws+bs).toString(36)}function us(t){return Ss[t]||(Ss[t]=ss(t))}var ls,cs,hs,fs=Ea.Object.getOwnPropertyDescriptors,ds={},ps="__core-js_shared__",vs=ca[ps]||function(e,n){try{La(ca,e,n)}catch(t){ca[e]=n}return n}(ps,{}),ys=Zo(function(t){(t.exports=function(t,e){return vs[t]||(vs[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.4.0",mode:"pure",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}),ms=ys("native-function-to-string",Function.toString),gs=ca.WeakMap,_s="function"==typeof gs&&/native code/.test(ms.call(gs)),ws=0,bs=Math.random(),Ss=ys("keys"),xs=ca.WeakMap;if(_s){var Os=new xs,ks=Os.get,Ds=Os.has,Ms=Os.set;ls=function(t,e){return Ms.call(Os,t,e),e},cs=function(t){return ks.call(Os,t)||{}},hs=function(t){return Ds.call(Os,t)}}else{var Ts=us("state");Xa[Ts]=!0,ls=function(t,e){return La(t,Ts,e),e},cs=function(t){return na(t,Ts)?t[Ts]:{}},hs=function(t){return na(t,Ts)}}function Ps(t){return Object(Qo(t))}function Es(t){return zs[t]||(zs[t]=Fs&&Ws[t]||(Fs?Ws:ss)("Symbol."+t))}var As,Ys,Ls,Cs={set:ls,get:cs,has:hs,enforce:function(t){return hs(t)?cs(t):ls(t,{})},getterFor:function(n){return function(t){var e;if(!ta(t)||(e=cs(t)).type!==n)throw TypeError("Incompatible receiver, "+n+" required");return e}}},Rs=!qo(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),js=us("IE_PROTO"),Is=Object.prototype,Ns=Rs?Object.getPrototypeOf:function(t){return t=Ps(t),na(t,js)?t[js]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Is:null},Fs=!!Object.getOwnPropertySymbols&&!qo(function(){return!String(Symbol())}),Ws=ca.Symbol,zs=ys("wks"),Vs=(Es("iterator"),!1);[].keys&&("next"in(Ls=[].keys())?(Ys=Ns(Ns(Ls)))!==Object.prototype&&(As=Ys):Vs=!0),null==As&&(As={});function Gs(){}var Hs={IteratorPrototype:As,BUGGY_SAFARI_ITERATORS:Vs},Us=ts("document","documentElement"),Bs=us("IE_PROTO"),Zs="prototype",Xs=function(){var t,e=ra("iframe"),n=$a.length,r="script";for(e.style.display="none",Us.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write("<script>document.F=Object</"+r+">"),t.close(),Xs=t.F;n--;)delete Xs[Zs][$a[n]];return Xs()},qs=Object.create||function(t,e){var n;return null!==t?(Gs[Zs]=sa(t),n=new Gs,Gs[Zs]=null,n[Bs]=t):n=Xs(),void 0===e?n:Qa(n,e)};Xa[Bs]=!0;function $s(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),Js))?n:Qs?Jo(e):"Object"==(r=Jo(e))&&"function"==typeof e.callee?"Arguments":r}var Js=Es("toStringTag"),Qs="Arguments"==Jo(function(){return arguments}()),Ks={};Ks[Es("toStringTag")]="z";function tu(t,e,n,r){if(t){var i=n?t:t.prototype;na(i,su)||au(i,su,{configurable:!0,value:e}),r&&uu&&La(i,"toString",ou)}}function eu(){return this}function nu(t,e,n,r){r&&r.enumerable?t[e]=n:La(t,e,n)}function ru(){return this}function iu(t,e,n,r,i,o,a){function s(t){if(t===i&&v)return v;if(!fu&&t in d)return d[t];switch(t){case"keys":case pu:case vu:return function(){return new n(this,t)}}return function(){return new n(this)}}!function(t,e,n){var r=e+" Iterator";t.prototype=qs(lu,{next:$o(1,n)}),tu(t,r,!1,!0),ds[r]=eu}(n,e,r);var u,l,c,h=e+" Iterator",f=!1,d=t.prototype,p=d[du]||d["@@iterator"]||i&&d[i],v=!fu&&p||s(i),y="Array"==e&&d.entries||p;if(y&&(u=Ns(y.call(new t)),hu!==Object.prototype&&u.next&&(tu(u,h,!0,!0),ds[h]=ru)),i==pu&&p&&p.name!==pu&&(f=!0,v=function(){return p.call(this)}),a&&d[du]!==v&&La(d,du,v),ds[e]=v,i)if(l={values:s(pu),keys:o?v:s("keys"),entries:s(vu)},a)for(c in l)!fu&&!f&&c in d||nu(d,c,l[c]);else la({target:e,proto:!0,forced:fu||f},l);return l}var ou="[object z]"!==String(Ks)?function(){return"[object "+$s(this)+"]"}:Ks.toString,au=Ya.f,su=Es("toStringTag"),uu=ou!=={}.toString,lu=Hs.IteratorPrototype,cu=Object.setPrototypeOf||("__proto__"in{}?function(){var n,r=!1,t={};try{(n=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(t,[]),r=t instanceof Array}catch(t){}return function(t,e){return sa(t),function(t){if(!ta(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(e),r?n.call(t,e):t.__proto__=e,t}}():void 0),hu=Hs.IteratorPrototype,fu=Hs.BUGGY_SAFARI_ITERATORS,du=Es("iterator"),pu="values",vu="entries",yu="Array Iterator",mu=Cs.set,gu=Cs.getterFor(yu);iu(Array,"Array",function(t,e){mu(this,{type:yu,target:Ko(t),index:0,kind:e})},function(){var t=gu(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?{value:t.target=void 0,done:!0}:"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");ds.Arguments=ds.Array;var _u=Es("toStringTag");for(var wu 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 bu=ca[wu],Su=bu&&bu.prototype;Su&&!Su[_u]&&La(Su,_u,wu),ds[wu]=ds.Array}function xu(t,e){var n;return Du(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!Du(n.prototype)?ta(n)&&null===(n=n[Mu])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}function Ou(d){var p=1==d,v=2==d,y=3==d,m=4==d,g=6==d,_=5==d||g;return function(t,e,n,r){for(var i,o,a=Ps(t),s=ma(a),u=aa(e,n,3),l=ja(s.length),c=0,h=r||xu,f=p?h(t,l):v?h(t,0):void 0;c<l;c++)if((_||c in s)&&(o=u(i=s[c],c,a),d))if(p)f[c]=o;else if(o)switch(d){case 3:return!0;case 5:return i;case 6:return c;case 2:Tu.call(f,i)}else if(m)return!1;return g?-1:y||m?m:f}}function ku(t,e){var n=[][t];return!n||!qo(function(){n.call(null,e||function(){throw 1},1)})}var Du=Array.isArray||function(t){return"Array"==Jo(t)},Mu=Es("species"),Tu=[].push,Pu={forEach:Ou(0),map:Ou(1),filter:Ou(2),some:Ou(3),every:Ou(4),find:Ou(5),findIndex:Ou(6)},Eu=Pu.forEach,Au=ku("forEach")?function(t,e){return Eu(this,t,1<arguments.length?e:void 0)}:[].forEach;la({target:"Array",proto:!0,forced:[].forEach!=Au},{forEach:Au});function Yu(t){return Ea[t+"Prototype"]}var Lu=Yu("Array").forEach,Cu=Array.prototype,Ru={DOMTokenList:!0,NodeList:!0},ju=function(t){var e=t.forEach;return t===Cu||t instanceof Array&&e===Cu.forEach||Ru.hasOwnProperty($s(t))?Lu:e},Iu=xa.f,Nu=qo(function(){Iu(1)});la({target:"Object",stat:!0,forced:!ha||Nu,sham:!ha},{getOwnPropertyDescriptor:function(t,e){return Iu(Ko(t),e)}});function Fu(t){var e=Ea.Symbol||(Ea.Symbol={});na(e,t)||$u(e,t,{value:qu.f(t)})}function Wu(t,e){var n=hl[t]=qs(ol[tl]);return nl(n,{type:Ku,tag:t,description:e}),ha||(n.description=e),n}function zu(e,t){sa(e);var n=Ko(t),r=Ja(n).concat(Sl(n));return Ju(r,function(t){ha&&!bl.call(n,t)||wl(e,t,n[t])}),e}function Vu(t,e){var n=Ko(t),r=ea(e,!0);if(n!==il||!na(hl,r)||na(fl,r)){var i=sl(n,r);return!i||!na(hl,r)||na(n,Qu)&&n[Qu][r]||(i.enumerable=!0),i}}function Gu(t){var e=ll(Ko(t)),n=[];return Ju(e,function(t){na(hl,t)||na(Xa,t)||n.push(t)}),n}var Hu=Zo(function(t){var n=Ea.Object,e=t.exports=function(t,e){return n.getOwnPropertyDescriptor(t,e)};n.getOwnPropertyDescriptor.sham&&(e.sham=!0)}),Uu=is.f,Bu={}.toString,Zu="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Xu={f:function(t){return Zu&&"[object Window]"==Bu.call(t)?function(t){try{return Uu(t)}catch(t){return Zu.slice()}}(t):Uu(Ko(t))}},qu={f:Es},$u=Ya.f,Ju=Pu.forEach,Qu=us("hidden"),Ku="Symbol",tl="prototype",el=Es("toPrimitive"),nl=Cs.set,rl=Cs.getterFor(Ku),il=Object[tl],ol=ca.Symbol,al=ts("JSON","stringify"),sl=xa.f,ul=Ya.f,ll=Xu.f,cl=pa.f,hl=ys("symbols"),fl=ys("op-symbols"),dl=ys("string-to-symbol-registry"),pl=ys("symbol-to-string-registry"),vl=ys("wks"),yl=ca.QObject,ml=!yl||!yl[tl]||!yl[tl].findChild,gl=ha&&qo(function(){return 7!=qs(ul({},"a",{get:function(){return ul(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=sl(il,e);r&&delete il[e],ul(t,e,n),r&&t!==il&&ul(il,e,r)}:ul,_l=Fs&&"symbol"==typeof ol.iterator?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof ol},wl=function(t,e,n){t===il&&wl(fl,e,n),sa(t);var r=ea(e,!0);return sa(n),na(hl,r)?(n.enumerable?(na(t,Qu)&&t[Qu][r]&&(t[Qu][r]=!1),n=qs(n,{enumerable:$o(0,!1)})):(na(t,Qu)||ul(t,Qu,$o(1,{})),t[Qu][r]=!0),gl(t,r,n)):ul(t,r,n)},bl=function(t){var e=ea(t,!0),n=cl.call(this,e);return!(this===il&&na(hl,e)&&!na(fl,e))&&(!(n||!na(this,e)||!na(hl,e)||na(this,Qu)&&this[Qu][e])||n)},Sl=function(t){var e=t===il,n=ll(e?fl:Ko(t)),r=[];return Ju(n,function(t){!na(hl,t)||e&&!na(il,t)||r.push(hl[t])}),r};if(Fs||(nu((ol=function(t){if(this instanceof ol)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==t?String(t):void 0,n=ss(e),r=function(t){this===il&&r.call(fl,t),na(this,Qu)&&na(this[Qu],n)&&(this[Qu][n]=!1),gl(this,n,$o(1,t))};return ha&&ml&&gl(il,n,{configurable:!0,set:r}),Wu(n,e)})[tl],"toString",function(){return rl(this).tag}),pa.f=bl,Ya.f=wl,xa.f=Vu,is.f=Xu.f=Gu,os.f=Sl,ha&&ul(ol[tl],"description",{configurable:!0,get:function(){return rl(this).description}}),qu.f=function(t){return Wu(Es(t),t)}),la({global:!0,wrap:!0,forced:!Fs,sham:!Fs},{Symbol:ol}),Ju(Ja(vl),function(t){Fu(t)}),la({target:Ku,stat:!0,forced:!Fs},{for:function(t){var e=String(t);if(na(dl,e))return dl[e];var n=ol(e);return dl[e]=n,pl[n]=e,n},keyFor:function(t){if(!_l(t))throw TypeError(t+" is not a symbol");if(na(pl,t))return pl[t]},useSetter:function(){ml=!0},useSimple:function(){ml=!1}}),la({target:"Object",stat:!0,forced:!Fs,sham:!ha},{create:function(t,e){return void 0===e?qs(t):zu(qs(t),e)},defineProperty:wl,defineProperties:zu,getOwnPropertyDescriptor:Vu}),la({target:"Object",stat:!0,forced:!Fs},{getOwnPropertyNames:Gu,getOwnPropertySymbols:Sl}),la({target:"Object",stat:!0,forced:qo(function(){os.f(1)})},{getOwnPropertySymbols:function(t){return os.f(Ps(t))}}),al){var xl=!Fs||qo(function(){var t=ol();return"[null]"!=al([t])||"{}"!=al({a:t})||"{}"!=al(Object(t))});la({target:"JSON",stat:!0,forced:xl},{stringify:function(t,e,n){for(var r,i=[t],o=1;o<arguments.length;)i.push(arguments[o++]);if((ta(r=e)||void 0!==t)&&!_l(t))return Du(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!_l(e))return e}),i[1]=e,al.apply(null,i)}})}ol[tl][el]||La(ol[tl],el,ol[tl].valueOf),tu(ol,Ku),Xa[Qu]=!0;var Ol=Ea.Object.getOwnPropertySymbols,kl=Yu("Array").entries,Dl=Array.prototype,Ml={DOMTokenList:!0,NodeList:!0},Tl=function(t){var e=t.entries;return t===Dl||t instanceof Array&&e===Dl.entries||Ml.hasOwnProperty($s(t))?kl:e},Pl=[].slice,El={},Al=Function.bind||function(e){var n=oa(this),r=Pl.call(arguments,1),i=function(){var t=r.concat(Pl.call(arguments));return this instanceof i?function(t,e,n){if(!(e in El)){for(var r=[],i=0;i<e;i++)r[i]="a["+i+"]";El[e]=Function("C,a","return new C("+r.join(",")+")")}return El[e](t,n)}(n,t.length,t):n.apply(e,t)};return ta(n.prototype)&&(i.prototype=n.prototype),i};la({target:"Function",proto:!0},{bind:Al});var Yl=Yu("Function").bind,Ll=Function.prototype,Cl=function(t){var e=t.bind;return t===Ll||t instanceof Function&&e===Ll.bind?Yl:e},Rl=Zo(function(t){var e=function(o){var u,t=Object.prototype,l=t.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},i=e.iterator||"@@iterator",n=e.asyncIterator||"@@asyncIterator",r=e.toStringTag||"@@toStringTag";function a(t,e,n,r){var i=e&&e.prototype instanceof s?e:s,o=Object.create(i.prototype),a=new M(r||[]);return o._invoke=function(o,a,s){var u=h;return function(t,e){if(u===d)throw new Error("Generator is already running");if(u===p){if("throw"===t)throw e;return P()}for(s.method=t,s.arg=e;;){var n=s.delegate;if(n){var r=O(n,s);if(r){if(r===v)continue;return r}}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if(u===h)throw u=p,s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);u=d;var i=c(o,a,s);if("normal"===i.type){if(u=s.done?p:f,i.arg===v)continue;return{value:i.arg,done:s.done}}"throw"===i.type&&(u=p,s.method="throw",s.arg=i.arg)}}}(t,n,a),o}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}o.wrap=a;var h="suspendedStart",f="suspendedYield",d="executing",p="completed",v={};function s(){}function y(){}function m(){}var g={};g[i]=function(){return this};var _=Object.getPrototypeOf,w=_&&_(_(T([])));w&&w!==t&&l.call(w,i)&&(g=w);var b=m.prototype=s.prototype=Object.create(g);function S(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function x(u){var e;this._invoke=function(n,r){function t(){return new Promise(function(t,e){!function e(t,n,r,i){var o=c(u[t],u,n);if("throw"!==o.type){var a=o.arg,s=a.value;return s&&"object"==typeof s&&l.call(s,"__await")?Promise.resolve(s.__await).then(function(t){e("next",t,r,i)},function(t){e("throw",t,r,i)}):Promise.resolve(s).then(function(t){a.value=t,r(a)},function(t){return e("throw",t,r,i)})}i(o.arg)}(n,r,t,e)})}return e=e?e.then(t,t):t()}}function O(t,e){var n=t.iterator[e.method];if(n===u){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=u,O(t,e),"throw"===e.method))return v;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var r=c(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,v;var i=r.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=u),e.delegate=null,v):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function k(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 D(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function M(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function T(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(l.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=u,t.done=!0,t};return r.next=r}}return{next:P}}function P(){return{value:u,done:!0}}return y.prototype=b.constructor=m,m.constructor=y,m[r]=y.displayName="GeneratorFunction",o.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},o.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,r in t||(t[r]="GeneratorFunction")),t.prototype=Object.create(b),t},o.awrap=function(t){return{__await:t}},S(x.prototype),x.prototype[n]=function(){return this},o.AsyncIterator=x,o.async=function(t,e,n,r){var i=new x(a(t,e,n,r));return o.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},S(b),b[r]="Generator",b[i]=function(){return this},b.toString=function(){return"[object Generator]"},o.keys=function(n){var r=[];for(var t in n)r.push(t);return r.reverse(),function t(){for(;r.length;){var e=r.pop();if(e in n)return t.value=e,t.done=!1,t}return t.done=!0,t}},o.values=T,M.prototype={constructor:M,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=u,this.done=!1,this.delegate=null,this.method="next",this.arg=u,this.tryEntries.forEach(D),!t)for(var e in this)"t"===e.charAt(0)&&l.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=u)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var r=this;function t(t,e){return o.type="throw",o.arg=n,r.next=t,e&&(r.method="next",r.arg=u),!!e}for(var e=this.tryEntries.length-1;0<=e;--e){var i=this.tryEntries[e],o=i.completion;if("root"===i.tryLoc)return t("end");if(i.tryLoc<=this.prev){var a=l.call(i,"catchLoc"),s=l.call(i,"finallyLoc");if(a&&s){if(this.prev<i.catchLoc)return t(i.catchLoc,!0);if(this.prev<i.finallyLoc)return t(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return t(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return t(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;0<=n;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&l.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(o)},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),v},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),D(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;D(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:T(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=u),v}},o}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}});Fu("iterator");function jl(s){return function(t,e){var n,r,i=String(Qo(t)),o=Ra(e),a=i.length;return o<0||a<=o?s?"":void 0:(n=i.charCodeAt(o))<55296||56319<n||o+1===a||(r=i.charCodeAt(o+1))<56320||57343<r?s?i.charAt(o):n:s?i.slice(o,o+2):r-56320+(n-55296<<10)+65536}}var Il={codeAt:jl(!1),charAt:jl(!0)}.charAt,Nl="String Iterator",Fl=Cs.set,Wl=Cs.getterFor(Nl);iu(String,"String",function(t){Fl(this,{type:Nl,string:String(t),index:0})},function(){var t,e=Wl(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=Il(n,r),e.index+=t.length,{value:t,done:!1})});function zl(t,e,n){var r=n.charAt(e-1),i=n.charAt(e+1);return Bl.test(t)&&!Zl.test(i)||Zl.test(t)&&!Bl.test(r)?"\\u"+t.charCodeAt(0).toString(16):t}var Vl=qu.f("iterator"),Gl=Vl,Hl=ts("JSON","stringify"),Ul=/[\uD800-\uDFFF]/g,Bl=/^[\uD800-\uDBFF]$/,Zl=/^[\uDC00-\uDFFF]$/,Xl=qo(function(){return'"\\udf06\\ud834"'!==Hl("\udf06\ud834")||'"\\udead"'!==Hl("\udead")});Hl&&la({target:"JSON",stat:!0,forced:Xl},{stringify:function(t,e,n){var r=Hl.apply(null,arguments);return"string"==typeof r?r.replace(Ul,zl):r}}),Ea.JSON||(Ea.JSON={stringify:JSON.stringify});var ql=function(t,e,n){return Ea.JSON.stringify.apply(null,arguments)},$l=Wa;function Jl(t){if(null!=t)return t[rc]||t["@@iterator"]||ds[$s(t)]}var Ql=function(t,e,n){return e in t?$l(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},Kl=Yu("Array").values,tc=Array.prototype,ec={DOMTokenList:!0,NodeList:!0},nc=function(t){var e=t.values;return t===tc||t instanceof Array&&e===tc.values||ec.hasOwnProperty($s(t))?Kl:e},rc=Es("iterator"),ic=function(t){var e=Jl(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return sa(e.call(t))},oc=[].sort,ac=[1,2,3],sc=qo(function(){ac.sort(void 0)}),uc=qo(function(){ac.sort(null)}),lc=ku("sort");la({target:"Array",proto:!0,forced:sc||!uc||lc},{sort:function(t){return void 0===t?oc.call(Ps(this)):oc.call(Ps(this),oa(t))}});function cc(l){return function(t,e,n,r){oa(e);var i=Ps(t),o=ma(i),a=ja(i.length),s=l?a-1:0,u=l?-1:1;if(n<2)for(;;){if(s in o){r=o[s],s+=u;break}if(s+=u,l?s<0:a<=s)throw TypeError("Reduce of empty array with no initial value")}for(;l?0<=s:s<a;s+=u)s in o&&(r=e(r,o[s],s,i));return r}}var hc=Yu("Array").sort,fc=Array.prototype,dc=function(t){var e=t.sort;return t===fc||t instanceof Array&&e===fc.sort?hc:e},pc={left:cc(!1),right:cc(!0)}.left;la({target:"Array",proto:!0,forced:ku("reduce")},{reduce:function(t,e){return pc(this,t,arguments.length,1<arguments.length?e:void 0)}});var vc=Yu("Array").reduce,yc=Array.prototype,mc=function(t){var e=t.reduce;return t===yc||t instanceof Array&&e===yc.reduce?vc:e},gc=Yu("Array").keys,_c=Array.prototype,wc={DOMTokenList:!0,NodeList:!0},bc=function(t){var e=t.keys;return t===_c||t instanceof Array&&e===_c.keys||wc.hasOwnProperty($s(t))?gc:e};la({target:"Array",stat:!0},{isArray:Du});var Sc=Ea.Array.isArray,xc=Sc;function Oc(e,t,n,r){try{return r?t(sa(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&sa(i.call(e)),t}}function kc(t){return void 0!==t&&(ds.Array===t||Tc[Mc]===t)}var Dc=function(t){if(xc(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}},Mc=Es("iterator"),Tc=Array.prototype,Pc=Es("iterator"),Ec=!1;try{var Ac=0,Yc={next:function(){return{done:!!Ac++}},return:function(){Ec=!0}};Yc[Pc]=function(){return this},Array.from(Yc,function(){throw 2})}catch(t){}var Lc=!function(t,e){if(!e&&!Ec)return!1;var n=!1;try{var r={};r[Pc]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n}(function(t){Array.from(t)});la({target:"Array",stat:!0,forced:Lc},{from:function(t,e,n){var r,i,o,a,s,u=Ps(t),l="function"==typeof this?this:Array,c=arguments.length,h=1<c?e:void 0,f=void 0!==h,d=0,p=Jl(u);if(f&&(h=aa(h,2<c?n:void 0,2)),null==p||l==Array&&kc(p))for(i=new l(r=ja(u.length));d<r;d++)es(i,d,f?h(u[d],d):u[d]);else for(s=(a=p.call(u)).next,i=new l;!(o=s.call(a)).done;d++)es(i,d,f?Oc(a,h,[o.value,d],!0):o.value);return i.length=d,i}});var Cc=Ea.Array.from,Rc=Es("iterator"),jc=function(t){var e=Object(t);return void 0!==e[Rc]||"@@iterator"in e||ds.hasOwnProperty($s(e))};var Ic=function(t){if(jc(Object(t))||"[object Arguments]"===Object.prototype.toString.call(t))return Cc(t)};var Nc=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")};var Fc,Wc,zc=function(t){return Dc(t)||Ic(t)||Nc()},Vc=ts("navigator","userAgent")||"",Gc=ca.process,Hc=Gc&&Gc.versions,Uc=Hc&&Hc.v8;Uc?Wc=(Fc=Uc.split("."))[0]+Fc[1]:Vc&&(!(Fc=Vc.match(/Edge\/(\d+)/))||74<=Fc[1])&&(Fc=Vc.match(/Chrome\/(\d+)/))&&(Wc=Fc[1]);function Bc(e){return 51<=Zc||!qo(function(){var t=[];return(t.constructor={})[Xc]=function(){return{foo:1}},1!==t[e](Boolean).foo})}var Zc=Wc&&+Wc,Xc=Es("species"),qc=Pu.filter;la({target:"Array",proto:!0,forced:!Bc("filter")},{filter:function(t,e){return qc(this,t,1<arguments.length?e:void 0)}});function $c(t){if(!ta(t))return!1;var e=t[th];return void 0!==e?!!e:Du(t)}var Jc=Yu("Array").filter,Qc=Array.prototype,Kc=function(t){var e=t.filter;return t===Qc||t instanceof Array&&e===Qc.filter?Jc:e},th=Es("isConcatSpreadable"),eh=9007199254740991,nh="Maximum allowed index exceeded",rh=51<=Zc||!qo(function(){var t=[];return t[th]=!1,t.concat()[0]!==t}),ih=Bc("concat");la({target:"Array",proto:!0,forced:!rh||!ih},{concat:function(t){var e,n,r,i,o,a=Ps(this),s=xu(a,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if($c(o=-1===e?a:arguments[e])){if(i=ja(o.length),eh<u+i)throw TypeError(nh);for(n=0;n<i;n++,u++)n in o&&es(s,u,o[n])}else{if(eh<=u)throw TypeError(nh);es(s,u++,o)}return s.length=u,s}});var oh=Yu("Array").concat,ah=Array.prototype,sh=function(t){var e=t.concat;return t===ah||t instanceof Array&&e===ah.concat?oh:e},uh=Object.assign,lh=!uh||qo(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=uh({},t)[n]||Ja(uh({},e)).join("")!=r})?function(t,e){for(var n=Ps(t),r=arguments.length,i=1,o=os.f,a=pa.f;i<r;)for(var s,u=ma(arguments[i++]),l=o?Ja(u).concat(o(u)):Ja(u),c=l.length,h=0;h<c;)s=l[h++],ha&&!a.call(u,s)||(n[s]=u[s]);return n}:uh;la({target:"Object",stat:!0,forced:Object.assign!==lh},{assign:lh});var ch=Ea.Object.assign,hh=Pu.some;la({target:"Array",proto:!0,forced:ku("some")},{some:function(t,e){return hh(this,t,1<arguments.length?e:void 0)}});var fh=Yu("Array").some,dh=Array.prototype,ph=function(t){var e=t.some;return t===dh||t instanceof Array&&e===dh.some?fh:e},vh=Pu.map;la({target:"Array",proto:!0,forced:!Bc("map")},{map:function(t,e){return vh(this,t,1<arguments.length?e:void 0)}});var yh=Yu("Array").map,mh=Array.prototype,gh=function(t){var e=t.map;return t===mh||t instanceof Array&&e===mh.map?yh:e},_h=Vl;Fu("asyncIterator"),Fu("hasInstance"),Fu("isConcatSpreadable"),Fu("match"),Fu("matchAll"),Fu("replace"),Fu("search"),Fu("species"),Fu("split"),Fu("toPrimitive"),Fu("toStringTag"),Fu("unscopables"),tu(Math,"Math",!0),tu(ca.JSON,"JSON",!0);var wh=Ea.Symbol;Fu("asyncDispose"),Fu("dispose"),Fu("observable"),Fu("patternMatch"),Fu("replaceAll");var bh=wh,Sh=Zo(function(e){function n(t){return(n="function"==typeof bh&&"symbol"==typeof _h?function(t){return typeof t}:function(t){return t&&"function"==typeof bh&&t.constructor===bh&&t!==bh.prototype?"symbol":typeof t})(t)}function r(t){return"function"==typeof bh&&"symbol"===n(_h)?e.exports=r=function(t){return n(t)}:e.exports=r=function(t){return t&&"function"==typeof bh&&t.constructor===bh&&t!==bh.prototype?"symbol":n(t)},r(t)}e.exports=r}),xh=qo(function(){Ja(1)});la({target:"Object",stat:!0,forced:xh},{keys:function(t){return Ja(Ps(t))}});function Oh(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}function kh(n,t,e,r,a){var s,i=ca[n],u=i&&i.prototype,o=r?"set":"add",l={};if(ha&&"function"==typeof i&&(a||u.forEach&&!qo(function(){(new i).entries().next()}))){s=t(function(t,e){Lh(Oh(t,s,n),{type:n,collection:new i}),null!=e&&Eh(e,t[o],t,r)});var c=Ch(n);Yh(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(i){var o="add"==i||"set"==i;i in u&&(!a||"clear"!=i)&&La(s.prototype,i,function(t,e){var n=c(this).collection;if(!o&&a&&!ta(t))return"get"==i&&void 0;var r=n[i](0===t?0:t,e);return o?this:r})}),a||Ah(s.prototype,"size",{get:function(){return c(this).collection.size}})}else s=e.getConstructor(t,n,r,o),Ph.REQUIRED=!0;return tu(s,n,!1,!0),l[n]=s,la({global:!0,forced:!0},l),a||e.setStrong(s,n,r),s}function Dh(t,e,n){for(var r in e)n&&n.unsafe&&t[r]?t[r]=e[r]:nu(t,r,e[r],n);return t}var Mh=Ea.Object.keys,Th=!qo(function(){return Object.isExtensible(Object.preventExtensions({}))}),Ph=Zo(function(t){function n(t){e(t,r,{value:{objectID:"O"+ ++i,weakData:{}}})}var e=Ya.f,r=ss("meta"),i=0,o=Object.isExtensible||function(){return!0},a=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!ta(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!na(t,r)){if(!o(t))return"F";if(!e)return"E";n(t)}return t[r].objectID},getWeakData:function(t,e){if(!na(t,r)){if(!o(t))return!0;if(!e)return!1;n(t)}return t[r].weakData},onFreeze:function(t){return Th&&a.REQUIRED&&o(t)&&!na(t,r)&&n(t),t}};Xa[r]=!0}),Eh=(Ph.REQUIRED,Ph.fastKey,Ph.getWeakData,Ph.onFreeze,Zo(function(t){function d(t,e){this.stopped=t,this.result=e}(t.exports=function(t,e,n,r,i){var o,a,s,u,l,c,h,f=aa(e,n,r?2:1);if(i)o=t;else{if("function"!=typeof(a=Jl(t)))throw TypeError("Target is not iterable");if(kc(a)){for(s=0,u=ja(t.length);s<u;s++)if((l=r?f(sa(h=t[s])[0],h[1]):f(t[s]))&&l instanceof d)return l;return new d(!1)}o=a.call(t)}for(c=o.next;!(h=c.call(o)).done;)if("object"==typeof(l=Oc(o,f,h.value,r))&&l&&l instanceof d)return l;return new d(!1)}).stop=function(t){return new d(!0,t)}})),Ah=Ya.f,Yh=Pu.forEach,Lh=Cs.set,Ch=Cs.getterFor,Rh=Es("species"),jh=Ya.f,Ih=Ph.fastKey,Nh=Cs.set,Fh=Cs.getterFor,Wh={getConstructor:function(t,n,r,i){function o(t,e,n){var r,i,o=s(t),a=u(t,e);return a?a.value=n:(o.last=a={index:i=Ih(e,!0),key:e,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=a),r&&(r.next=a),ha?o.size++:t.size++,"F"!==i&&(o.index[i]=a)),t}var a=t(function(t,e){Oh(t,a,n),Nh(t,{type:n,index:qs(null),first:void 0,last:void 0,size:0}),ha||(t.size=0),null!=e&&Eh(e,t[i],t,r)}),s=Fh(n),u=function(t,e){var n,r=s(t),i=Ih(e);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==e)return n};return Dh(a.prototype,{clear:function(){for(var t=s(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,ha?t.size=0:this.size=0},delete:function(t){var e=s(this),n=u(this,t);if(n){var r=n.next,i=n.previous;delete e.index[n.index],n.removed=!0,i&&(i.next=r),r&&(r.previous=i),e.first==n&&(e.first=r),e.last==n&&(e.last=i),ha?e.size--:this.size--}return!!n},forEach:function(t,e){for(var n,r=s(this),i=aa(t,1<arguments.length?e:void 0,3);n=n?n.next:r.first;)for(i(n.value,n.key,this);n&&n.removed;)n=n.previous},has:function(t){return!!u(this,t)}}),Dh(a.prototype,r?{get:function(t){var e=u(this,t);return e&&e.value},set:function(t,e){return o(this,0===t?0:t,e)}}:{add:function(t){return o(this,t=0===t?0:t,t)}}),ha&&jh(a.prototype,"size",{get:function(){return s(this).size}}),a},setStrong:function(t,e,n){var r=e+" Iterator",i=Fh(e),o=Fh(r);iu(t,e,function(t,e){Nh(this,{type:r,target:t,state:i(t),kind:e,last:void 0})},function(){for(var t=o(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:{value:t.target=void 0,done:!0}},n?"entries":"values",!n,!0),function(t){var e=ts(t),n=Ya.f;ha&&e&&!e[Rh]&&n(e,Rh,{configurable:!0,get:function(){return this}})}(e)}},zh=(kh("Map",function(e){return function(t){return e(this,arguments.length?t:void 0)}},Wh,!0),Ea.Map),Vh=Sc;var Gh=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")};function Hh(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),$l(t,r.key,r)}}var Uh=function(t,e,n){return e&&Hh(t.prototype,e),n&&Hh(t,n),t};var Bh=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t};var Zh=function(t,e){return!e||"object"!==Sh(e)&&"function"!=typeof e?Bh(t):e},Xh=qo(function(){Ns(1)});la({target:"Object",stat:!0,forced:Xh,sham:!Rs},{getPrototypeOf:function(t){return Ns(Ps(t))}});var qh=Ea.Object.getPrototypeOf;la({target:"Object",stat:!0},{setPrototypeOf:cu});var $h=Ea.Object.setPrototypeOf,Jh=Zo(function(e){function n(t){return e.exports=n=$h?qh:function(t){return t.__proto__||qh(t)},n(t)}e.exports=n});la({target:"Object",stat:!0,sham:!ha},{create:qs});function Qh(t,e){return Kh.create(t,e)}var Kh=Ea.Object,tf=Qh,ef=Zo(function(n){function r(t,e){return n.exports=r=$h||function(t,e){return t.__proto__=e,t},r(t,e)}n.exports=r});for(var nf=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=tf(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ef(t,e)},rf=[],of=0;of<256;of++)rf[of]=(of+256).toString(16).substr(1);for(var af=function(){if("undefined"!=typeof crypto&&crypto.getRandomValues){var t=new Uint8Array(16);return function(){return crypto.getRandomValues(t),t}}var n=new Array(16);return function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),n[e]=t>>>((3&e)<<3)&255;return n}}(),sf=[],uf=0;uf<256;uf++)sf[uf]=(uf+256).toString(16).substr(1);var lf=af();lf[0],lf[1],lf[2],lf[3],lf[4],lf[5],lf[6],lf[7];function cf(t,e,n){var r=0<arguments.length&&void 0!==t?t:{},i=1<arguments.length?e:void 0,o=i&&(2<arguments.length?n:void 0)||0;"string"==typeof r&&(i="binary"===r?new Array(16):void 0,r={});var a=r.random||(r.rng||af)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,i)for(var s=0;s<16;s++)i[o+s]=a[s];return i||function(t,e){var n=e||0,r=rf;return r[t[n++]]+r[t[n++]]+r[t[n++]]+r[t[n++]]+"-"+r[t[n++]]+r[t[n++]]+"-"+r[t[n++]]+r[t[n++]]+"-"+r[t[n++]]+r[t[n++]]+"-"+r[t[n++]]+r[t[n++]]+r[t[n++]]+r[t[n++]]+r[t[n++]]+r[t[n++]]}(a)}var hf="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function ff(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function df(t,e){return t(e={exports:{}},e.exports),e.exports}function pf(t){return t&&t.Math==Math&&t}function vf(t){try{return!!t()}catch(t){return!0}}function yf(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}function mf(t){return Rf.call(t).slice(8,-1)}function gf(t){if(null==t)throw TypeError("Can't call method on "+t);return t}function _f(t){return If(gf(t))}function wf(t){return"object"==typeof t?null!==t:"function"==typeof t}function bf(t,e){if(!wf(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!wf(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!wf(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!wf(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}function Sf(t,e){return Nf.call(t,e)}function xf(t){return Wf?Ff.createElement(t):{}}function Of(t,e){var n=Bf[Uf(t)];return n==Xf||n!=Zf&&("function"==typeof e?vf(e):!!e)}function kf(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}function Df(r,i,t){if(kf(r),void 0===i)return r;switch(t){case 0:return function(){return r.call(i)};case 1:return function(t){return r.call(i,t)};case 2:return function(t,e){return r.call(i,t,e)};case 3:return function(t,e,n){return r.call(i,t,e,n)}}return function(){return r.apply(i,arguments)}}function Mf(t){if(!wf(t))throw TypeError(String(t)+" is not an object");return t}function Tf(r){function t(t,e,n){if(this instanceof r){switch(arguments.length){case 0:return new r;case 1:return new r(t);case 2:return new r(t,e)}return new r(t,e,n)}return r.apply(this,arguments)}return t.prototype=r.prototype,t}function Pf(t,e){var n,r,i,o,a,s,u,l,c=t.target,h=t.global,f=t.stat,d=t.proto,p=h?Ef:f?Ef[c]:(Ef[c]||{}).prototype,v=h?$f:$f[c]||($f[c]={}),y=v.prototype;for(i in e)n=!qf(h?i:c+(f?".":"#")+i,t.forced)&&p&&Sf(p,i),a=v[i],n&&(s=t.noTargetGet?(l=td(p,i))&&l.value:p[i]),o=n&&s?s:e[i],n&&typeof a==typeof o||(u=t.bind&&n?Df(o,Ef):t.wrap&&n?Tf(o):d&&"function"==typeof o?Df(Function.call,o):o,(t.sham||o&&o.sham||a&&a.sham)&&Kf(u,"sham",!0),v[i]=u,d&&(Sf($f,r=c+"Prototype")||Kf($f,r,{}),$f[r][i]=o,t.real&&y&&!y[i]&&Kf(y,i,o)))}var Ef=pf("object"==typeof globalThis&&globalThis)||pf("object"==typeof window&&window)||pf("object"==typeof self&&self)||pf("object"==typeof hf&&hf)||Function("return this")(),Af=!vf(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),Yf={}.propertyIsEnumerable,Lf=Object.getOwnPropertyDescriptor,Cf={f:Lf&&!Yf.call({1:2},1)?function(t){var e=Lf(this,t);return!!e&&e.enumerable}:Yf},Rf={}.toString,jf="".split,If=vf(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==mf(t)?jf.call(t,""):Object(t)}:Object,Nf={}.hasOwnProperty,Ff=Ef.document,Wf=wf(Ff)&&wf(Ff.createElement),zf=!Af&&!vf(function(){return 7!=Object.defineProperty(xf("div"),"a",{get:function(){return 7}}).a}),Vf=Object.getOwnPropertyDescriptor,Gf={f:Af?Vf:function(t,e){if(t=_f(t),e=bf(e,!0),zf)try{return Vf(t,e)}catch(t){}if(Sf(t,e))return yf(!Cf.f.call(t,e),t[e])}},Hf=/#|\.prototype\./,Uf=Of.normalize=function(t){return String(t).replace(Hf,".").toLowerCase()},Bf=Of.data={},Zf=Of.NATIVE="N",Xf=Of.POLYFILL="P",qf=Of,$f={},Jf=Object.defineProperty,Qf={f:Af?Jf:function(t,e,n){if(Mf(t),e=bf(e,!0),Mf(n),zf)try{return Jf(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Kf=Af?function(t,e,n){return Qf.f(t,e,yf(1,n))}:function(t,e,n){return t[e]=n,t},td=Gf.f;Pf({target:"Object",stat:!0,forced:!Af,sham:!Af},{defineProperty:Qf.f});df(function(t){var r=$f.Object,e=t.exports=function(t,e,n){return r.defineProperty(t,e,n)};r.defineProperty.sham&&(e.sham=!0)});function ed(t){return isNaN(t=+t)?0:(0<t?sd:ad)(t)}function nd(t){return 0<t?ud(ed(t),9007199254740991):0}function rd(t,e){var n=ed(t);return n<0?ld(n+e,0):cd(n,e)}function id(s){return function(t,e,n){var r,i=_f(t),o=nd(i.length),a=rd(n,o);if(s&&e!=e){for(;a<o;)if((r=i[a++])!=r)return!0}else for(;a<o;a++)if((s||a in i)&&i[a]===e)return s||a||0;return!s&&-1}}function od(t,e){var n,r=_f(t),i=0,o=[];for(n in r)!Sf(fd,n)&&Sf(r,n)&&o.push(n);for(;e.length>i;)Sf(r,n=e[i++])&&(~dd(o,n)||o.push(n));return o}var ad=Math.ceil,sd=Math.floor,ud=Math.min,ld=Math.max,cd=Math.min,hd={includes:id(!0),indexOf:id(!1)},fd={},dd=hd.indexOf,pd=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],vd=Object.keys||function(t){return od(t,pd)},yd=Af?Object.defineProperties:function(t,e){Mf(t);for(var n,r=vd(e),i=r.length,o=0;o<i;)Qf.f(t,n=r[o++],e[n]);return t};Pf({target:"Object",stat:!0,forced:!Af,sham:!Af},{defineProperties:yd});function md(t){return"function"==typeof t?t:void 0}function gd(t,e){return arguments.length<2?md($f[t])||md(Ef[t]):$f[t]&&$f[t][e]||Ef[t]&&Ef[t][e]}df(function(t){var n=$f.Object,e=t.exports=function(t,e){return n.defineProperties(t,e)};n.defineProperties.sham&&(e.sham=!0)});function _d(t,e,n){var r=bf(e);r in t?Qf.f(t,r,yf(0,n)):t[r]=n}var wd=pd.concat("length","prototype"),bd={f:Object.getOwnPropertyNames||function(t){return od(t,wd)}},Sd={f:Object.getOwnPropertySymbols},xd=gd("Reflect","ownKeys")||function(t){var e=bd.f(Mf(t)),n=Sd.f;return n?e.concat(n(t)):e};Pf({target:"Object",stat:!0,sham:!Af},{getOwnPropertyDescriptors:function(t){for(var e,n,r=_f(t),i=Gf.f,o=xd(r),a={},s=0;o.length>s;)void 0!==(n=i(r,e=o[s++]))&&_d(a,e,n);return a}});$f.Object.getOwnPropertyDescriptors;var Od=Gf.f,kd=vf(function(){Od(1)});Pf({target:"Object",stat:!0,forced:!Af||kd,sham:!Af},{getOwnPropertyDescriptor:function(t,e){return Od(_f(t),e)}});df(function(t){var n=$f.Object,e=t.exports=function(t,e){return n.getOwnPropertyDescriptor(t,e)};n.getOwnPropertyDescriptor.sham&&(e.sham=!0)});function Dd(t){return Object(gf(t))}function Md(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++jd+Id).toString(36)}function Td(t){return Nd[t]||(Nd[t]=Md(t))}function Pd(){}var Ed=!!Object.getOwnPropertySymbols&&!vf(function(){return!String(Symbol())}),Ad=Array.isArray||function(t){return"Array"==mf(t)},Yd=gd("document","documentElement"),Ld="__core-js_shared__",Cd=Ef[Ld]||function(e,n){try{Kf(Ef,e,n)}catch(t){Ef[e]=n}return n}(Ld,{}),Rd=df(function(t){(t.exports=function(t,e){return Cd[t]||(Cd[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.4.1",mode:"pure",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}),jd=0,Id=Math.random(),Nd=Rd("keys"),Fd=Td("IE_PROTO"),Wd="prototype",zd=function(){var t,e=xf("iframe"),n=pd.length,r="script";for(e.style.display="none",Yd.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write("<script>document.F=Object</"+r+">"),t.close(),zd=t.F;n--;)delete zd[Wd][pd[n]];return zd()},Vd=Object.create||function(t,e){var n;return null!==t?(Pd[Wd]=Mf(t),n=new Pd,Pd[Wd]=null,n[Fd]=t):n=zd(),void 0===e?n:yd(n,e)};fd[Fd]=!0;function Gd(t,e,n,r){r&&r.enumerable?t[e]=n:Kf(t,e,n)}function Hd(t){return Qd[t]||(Qd[t]=Ed&&Jd[t]||(Ed?Jd:Md)("Symbol."+t))}function Ud(t){var e=$f.Symbol||($f.Symbol={});Sf(e,t)||tp(e,t,{value:Kd.f(t)})}function Bd(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),ep))?n:np?mf(e):"Object"==(r=mf(e))&&"function"==typeof e.callee?"Arguments":r}var Zd=bd.f,Xd={}.toString,qd="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],$d={f:function(t){return qd&&"[object Window]"==Xd.call(t)?function(t){try{return Zd(t)}catch(t){return qd.slice()}}(t):Zd(_f(t))}},Jd=Ef.Symbol,Qd=Rd("wks"),Kd={f:Hd},tp=Qf.f,ep=Hd("toStringTag"),np="Arguments"==mf(function(){return arguments}()),rp={};rp[Hd("toStringTag")]="z";function ip(t,e,n,r){if(t){var i=n?t:t.prototype;Sf(i,cp)||lp(i,cp,{configurable:!0,value:e}),r&&hp&&Kf(i,"toString",up)}}var op,ap,sp,up="[object z]"!==String(rp)?function(){return"[object "+Bd(this)+"]"}:rp.toString,lp=Qf.f,cp=Hd("toStringTag"),hp=up!=={}.toString,fp=Rd("native-function-to-string",Function.toString),dp=Ef.WeakMap,pp="function"==typeof dp&&/native code/.test(fp.call(dp)),vp=Ef.WeakMap;if(pp){var yp=new vp,mp=yp.get,gp=yp.has,_p=yp.set;op=function(t,e){return _p.call(yp,t,e),e},ap=function(t){return mp.call(yp,t)||{}},sp=function(t){return gp.call(yp,t)}}else{var wp=Td("state");fd[wp]=!0,op=function(t,e){return Kf(t,wp,e),e},ap=function(t){return Sf(t,wp)?t[wp]:{}},sp=function(t){return Sf(t,wp)}}function bp(t,e){var n;return Ad(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!Ad(n.prototype)?wf(n)&&null===(n=n[Tp])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}function Sp(d){var p=1==d,v=2==d,y=3==d,m=4==d,g=6==d,_=5==d||g;return function(t,e,n,r){for(var i,o,a=Dd(t),s=If(a),u=Df(e,n,3),l=nd(s.length),c=0,h=r||bp,f=p?h(t,l):v?h(t,0):void 0;c<l;c++)if((_||c in s)&&(o=u(i=s[c],c,a),d))if(p)f[c]=o;else if(o)switch(d){case 3:return!0;case 5:return i;case 6:return c;case 2:Pp.call(f,i)}else if(m)return!1;return g?-1:y||m?m:f}}function xp(t,e){var n=Up[t]=Vd(Fp[Cp]);return jp(n,{type:Lp,tag:t,description:e}),Af||(n.description=e),n}function Op(e,t){Mf(e);var n=_f(t),r=vd(n).concat(nv(n));return Ap(r,function(t){Af&&!ev.call(n,t)||tv(e,t,n[t])}),e}function kp(t,e){var n=_f(t),r=bf(e,!0);if(n!==Np||!Sf(Up,r)||Sf(Bp,r)){var i=zp(n,r);return!i||!Sf(Up,r)||Sf(n,Yp)&&n[Yp][r]||(i.enumerable=!0),i}}function Dp(t){var e=Gp(_f(t)),n=[];return Ap(e,function(t){Sf(Up,t)||Sf(fd,t)||n.push(t)}),n}var Mp={set:op,get:ap,has:sp,enforce:function(t){return sp(t)?ap(t):op(t,{})},getterFor:function(n){return function(t){var e;if(!wf(t)||(e=ap(t)).type!==n)throw TypeError("Incompatible receiver, "+n+" required");return e}}},Tp=Hd("species"),Pp=[].push,Ep={forEach:Sp(0),map:Sp(1),filter:Sp(2),some:Sp(3),every:Sp(4),find:Sp(5),findIndex:Sp(6)},Ap=Ep.forEach,Yp=Td("hidden"),Lp="Symbol",Cp="prototype",Rp=Hd("toPrimitive"),jp=Mp.set,Ip=Mp.getterFor(Lp),Np=Object[Cp],Fp=Ef.Symbol,Wp=gd("JSON","stringify"),zp=Gf.f,Vp=Qf.f,Gp=$d.f,Hp=Cf.f,Up=Rd("symbols"),Bp=Rd("op-symbols"),Zp=Rd("string-to-symbol-registry"),Xp=Rd("symbol-to-string-registry"),qp=Rd("wks"),$p=Ef.QObject,Jp=!$p||!$p[Cp]||!$p[Cp].findChild,Qp=Af&&vf(function(){return 7!=Vd(Vp({},"a",{get:function(){return Vp(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=zp(Np,e);r&&delete Np[e],Vp(t,e,n),r&&t!==Np&&Vp(Np,e,r)}:Vp,Kp=Ed&&"symbol"==typeof Fp.iterator?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof Fp},tv=function(t,e,n){t===Np&&tv(Bp,e,n),Mf(t);var r=bf(e,!0);return Mf(n),Sf(Up,r)?(n.enumerable?(Sf(t,Yp)&&t[Yp][r]&&(t[Yp][r]=!1),n=Vd(n,{enumerable:yf(0,!1)})):(Sf(t,Yp)||Vp(t,Yp,yf(1,{})),t[Yp][r]=!0),Qp(t,r,n)):Vp(t,r,n)},ev=function(t){var e=bf(t,!0),n=Hp.call(this,e);return!(this===Np&&Sf(Up,e)&&!Sf(Bp,e))&&(!(n||!Sf(this,e)||!Sf(Up,e)||Sf(this,Yp)&&this[Yp][e])||n)},nv=function(t){var e=t===Np,n=Gp(e?Bp:_f(t)),r=[];return Ap(n,function(t){!Sf(Up,t)||e&&!Sf(Np,t)||r.push(Up[t])}),r};if(Ed||(Gd((Fp=function(t){if(this instanceof Fp)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==t?String(t):void 0,n=Md(e),r=function(t){this===Np&&r.call(Bp,t),Sf(this,Yp)&&Sf(this[Yp],n)&&(this[Yp][n]=!1),Qp(this,n,yf(1,t))};return Af&&Jp&&Qp(Np,n,{configurable:!0,set:r}),xp(n,e)})[Cp],"toString",function(){return Ip(this).tag}),Cf.f=ev,Qf.f=tv,Gf.f=kp,bd.f=$d.f=Dp,Sd.f=nv,Af&&Vp(Fp[Cp],"description",{configurable:!0,get:function(){return Ip(this).description}}),Kd.f=function(t){return xp(Hd(t),t)}),Pf({global:!0,wrap:!0,forced:!Ed,sham:!Ed},{Symbol:Fp}),Ap(vd(qp),function(t){Ud(t)}),Pf({target:Lp,stat:!0,forced:!Ed},{for:function(t){var e=String(t);if(Sf(Zp,e))return Zp[e];var n=Fp(e);return Zp[e]=n,Xp[n]=e,n},keyFor:function(t){if(!Kp(t))throw TypeError(t+" is not a symbol");if(Sf(Xp,t))return Xp[t]},useSetter:function(){Jp=!0},useSimple:function(){Jp=!1}}),Pf({target:"Object",stat:!0,forced:!Ed,sham:!Af},{create:function(t,e){return void 0===e?Vd(t):Op(Vd(t),e)},defineProperty:tv,defineProperties:Op,getOwnPropertyDescriptor:kp}),Pf({target:"Object",stat:!0,forced:!Ed},{getOwnPropertyNames:Dp,getOwnPropertySymbols:nv}),Pf({target:"Object",stat:!0,forced:vf(function(){Sd.f(1)})},{getOwnPropertySymbols:function(t){return Sd.f(Dd(t))}}),Wp){var rv=!Ed||vf(function(){var t=Fp();return"[null]"!=Wp([t])||"{}"!=Wp({a:t})||"{}"!=Wp(Object(t))});Pf({target:"JSON",stat:!0,forced:rv},{stringify:function(t,e,n){for(var r,i=[t],o=1;o<arguments.length;)i.push(arguments[o++]);if((wf(r=e)||void 0!==t)&&!Kp(t))return Ad(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!Kp(e))return e}),i[1]=e,Wp.apply(null,i)}})}Fp[Cp][Rp]||Kf(Fp[Cp],Rp,Fp[Cp].valueOf),ip(Fp,Lp),fd[Yp]=!0;$f.Object.getOwnPropertySymbols;var iv,ov,av,sv={},uv=!vf(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),lv=Td("IE_PROTO"),cv=Object.prototype,hv=uv?Object.getPrototypeOf:function(t){return t=Dd(t),Sf(t,lv)?t[lv]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?cv:null},fv=(Hd("iterator"),!1);[].keys&&("next"in(av=[].keys())?(ov=hv(hv(av)))!==Object.prototype&&(iv=ov):fv=!0),null==iv&&(iv={});function dv(){return this}function pv(){return this}function vv(t,e,n,r,i,o,a){function s(t){if(t===i&&v)return v;if(!_v&&t in d)return d[t];switch(t){case"keys":case bv:case Sv:return function(){return new n(this,t)}}return function(){return new n(this)}}!function(t,e,n){var r=e+" Iterator";t.prototype=Vd(mv,{next:yf(1,n)}),ip(t,r,!1,!0),sv[r]=dv}(n,e,r);var u,l,c,h=e+" Iterator",f=!1,d=t.prototype,p=d[wv]||d["@@iterator"]||i&&d[i],v=!_v&&p||s(i),y="Array"==e&&d.entries||p;if(y&&(u=hv(y.call(new t)),gv!==Object.prototype&&u.next&&(ip(u,h,!0,!0),sv[h]=pv)),i==bv&&p&&p.name!==bv&&(f=!0,v=function(){return p.call(this)}),a&&d[wv]!==v&&Kf(d,wv,v),sv[e]=v,i)if(l={values:s(bv),keys:o?v:s("keys"),entries:s(Sv)},a)for(c in l)!_v&&!f&&c in d||Gd(d,c,l[c]);else Pf({target:e,proto:!0,forced:_v||f},l);return l}var yv={IteratorPrototype:iv,BUGGY_SAFARI_ITERATORS:fv},mv=yv.IteratorPrototype,gv=(Object.setPrototypeOf||"__proto__"in{}&&function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}}(),yv.IteratorPrototype),_v=yv.BUGGY_SAFARI_ITERATORS,wv=Hd("iterator"),bv="values",Sv="entries",xv="Array Iterator",Ov=Mp.set,kv=Mp.getterFor(xv);vv(Array,"Array",function(t,e){Ov(this,{type:xv,target:_f(t),index:0,kind:e})},function(){var t=kv(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?{value:t.target=void 0,done:!0}:"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");sv.Arguments=sv.Array;var Dv=Hd("toStringTag");for(var Mv 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 Tv=Ef[Mv],Pv=Tv&&Tv.prototype;Pv&&!Pv[Dv]&&Kf(Pv,Dv,Mv),sv[Mv]=sv.Array}function Ev(s){return function(t,e){var n,r,i=String(gf(t)),o=ed(e),a=i.length;return o<0||a<=o?s?"":void 0:(n=i.charCodeAt(o))<55296||56319<n||o+1===a||(r=i.charCodeAt(o+1))<56320||57343<r?s?i.charAt(o):n:s?i.slice(o,o+2):r-56320+(n-55296<<10)+65536}}var Av={codeAt:Ev(!1),charAt:Ev(!0)}.charAt,Yv="String Iterator",Lv=Mp.set,Cv=Mp.getterFor(Yv);vv(String,"String",function(t){Lv(this,{type:Yv,string:String(t),index:0})},function(){var t,e=Cv(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=Av(n,r),e.index+=t.length,{value:t,done:!1})});var Rv=Hd("iterator");Pf({target:"Object",stat:!0,sham:!Af},{create:Vd});var jv=vf(function(){vd(1)});Pf({target:"Object",stat:!0,forced:jv},{keys:function(t){return vd(Dd(t))}});function Iv(n){return function(t){var e=String(gf(t));return 1&n&&(e=e.replace(Vv,"")),2&n&&(e=e.replace(Gv,"")),e}}var Nv,Fv=$f.Object.keys,Wv="\t\n\v\f\r                 \u2028\u2029\ufeff",zv="["+Wv+"]",Vv=RegExp("^"+zv+zv+"*"),Gv=RegExp(zv+zv+"*$"),Hv={start:Iv(1),end:Iv(2),trim:Iv(3)},Uv=Hv.trim;Pf({target:"String",proto:!0,forced:(Nv="trim",vf(function(){return!!Wv[Nv]()||"​…᠎"!="​…᠎"[Nv]()||Wv[Nv].name!==Nv}))},{trim:function(){return Uv(this)}});function Bv(t){return $f[t+"Prototype"]}function Zv(t,e){var n=[][t];return!n||!vf(function(){n.call(null,e||function(){throw 1},1)})}Bv("String").trim;var Xv=Ep.forEach,qv=Zv("forEach")?function(t,e){return Xv(this,t,1<arguments.length?e:void 0)}:[].forEach;Pf({target:"Array",proto:!0,forced:[].forEach!=qv},{forEach:qv});var $v,Jv,Qv=Bv("Array").forEach,Kv=Array.prototype,ty={DOMTokenList:!0,NodeList:!0},ey=function(t){var e=t.forEach;return t===Kv||t instanceof Array&&e===Kv.forEach||ty.hasOwnProperty(Bd(t))?Qv:e},ny=gd("navigator","userAgent")||"",ry=Ef.process,iy=ry&&ry.versions,oy=iy&&iy.v8;oy?Jv=($v=oy.split("."))[0]+$v[1]:ny&&(!($v=ny.match(/Edge\/(\d+)/))||74<=$v[1])&&($v=ny.match(/Chrome\/(\d+)/))&&(Jv=$v[1]);function ay(e){return 51<=sy||!vf(function(){var t=[];return(t.constructor={})[uy]=function(){return{foo:1}},1!==t[e](Boolean).foo})}var sy=Jv&&+Jv,uy=Hd("species"),ly=Ep.map;Pf({target:"Array",proto:!0,forced:!ay("map")},{map:function(t,e){return ly(this,t,1<arguments.length?e:void 0)}});Bv("Array").map;var cy=Hv.trim,hy=Ef.parseInt,fy=/^[+-]?0[Xx]/,dy=8!==hy(Wv+"08")||22!==hy(Wv+"0x16")?function(t,e){var n=cy(String(t));return hy(n,e>>>0||(fy.test(n)?16:10))}:hy;Pf({global:!0,forced:parseInt!=dy},{parseInt:dy});function py(s){return function(t){for(var e,n=_f(t),r=vd(n),i=r.length,o=0,a=[];o<i;)e=r[o++],Af&&!yy.call(n,e)||a.push(s?[e,n[e]]:n[e]);return a}}var vy=$f.parseInt,yy=Cf.f,my={entries:py(!0),values:py(!1)}.values;Pf({target:"Object",stat:!0},{values:function(t){return my(t)}});$f.Object.values;var gy=Ep.filter;Pf({target:"Array",proto:!0,forced:!ay("filter")},{filter:function(t,e){return gy(this,t,1<arguments.length?e:void 0)}});Bv("Array").filter;function _y(t){if(!wf(t))return!1;var e=t[wy];return void 0!==e?!!e:Ad(t)}var wy=Hd("isConcatSpreadable"),by=9007199254740991,Sy="Maximum allowed index exceeded",xy=51<=sy||!vf(function(){var t=[];return t[wy]=!1,t.concat()[0]!==t}),Oy=ay("concat");Pf({target:"Array",proto:!0,forced:!xy||!Oy},{concat:function(t){var e,n,r,i,o,a=Dd(this),s=bp(a,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(_y(o=-1===e?a:arguments[e])){if(i=nd(o.length),by<u+i)throw TypeError(Sy);for(n=0;n<i;n++,u++)n in o&&_d(s,u,o[n])}else{if(by<=u)throw TypeError(Sy);_d(s,u++,o)}return s.length=u,s}});var ky=Bv("Array").concat,Dy=Array.prototype,My=function(t){var e=t.concat;return t===Dy||t instanceof Array&&e===Dy.concat?ky:e};Pf({target:"Array",stat:!0},{isArray:Ad});function Ty(e,t,n,r){try{return r?t(Mf(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&Mf(i.call(e)),t}}var Py=$f.Array.isArray,Ey=Hd("iterator"),Ay=Array.prototype,Yy=Hd("iterator"),Ly=!1;try{var Cy=0,Ry={next:function(){return{done:!!Cy++}},return:function(){Ly=!0}};Ry[Yy]=function(){return this},Array.from(Ry,function(){throw 2})}catch(t){}var jy=!function(t,e){if(!e&&!Ly)return!1;var n=!1;try{var r={};r[Yy]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n}(function(t){Array.from(t)});Pf({target:"Array",stat:!0,forced:jy},{from:function(t,e,n){var r,i,o,a,s,u=Dd(t),l="function"==typeof this?this:Array,c=arguments.length,h=1<c?e:void 0,f=void 0!==h,d=0,p=function(t){if(null!=t)return t[Rv]||t["@@iterator"]||sv[Bd(t)]}(u);if(f&&(h=Df(h,2<c?n:void 0,2)),null==p||l==Array&&function(t){return void 0!==t&&(sv.Array===t||Ay[Ey]===t)}(p))for(i=new l(r=nd(u.length));d<r;d++)_d(i,d,f?h(u[d],d):u[d]);else for(s=(a=p.call(u)).next,i=new l;!(o=s.call(a)).done;d++)_d(i,d,f?Ty(a,h,[o.value,d],!0):o.value);return i.length=d,i}});$f.Array.from,Hd("iterator");var Iy=Hd("species"),Ny=[].slice,Fy=Math.max;Pf({target:"Array",proto:!0,forced:!ay("slice")},{slice:function(t,e){var n,r,i,o=_f(this),a=nd(o.length),s=rd(t,a),u=rd(void 0===e?a:e,a);if(Ad(o)&&("function"!=typeof(n=o.constructor)||n!==Array&&!Ad(n.prototype)?wf(n)&&null===(n=n[Iy])&&(n=void 0):n=void 0,n===Array||void 0===n))return Ny.call(o,s,u);for(r=new(void 0===n?Array:n)(Fy(u-s,0)),i=0;s<u;s++,i++)s in o&&_d(r,i,o[s]);return r.length=i,r}});var Wy=Bv("Array").slice,zy=Array.prototype,Vy=function(t){var e=t.slice;return t===zy||t instanceof Array&&e===zy.slice?Wy:e},Gy=vf(function(){hv(1)});Pf({target:"Object",stat:!0,forced:Gy,sham:!uv},{getPrototypeOf:function(t){return hv(Dd(t))}});var Hy=$f.Object.getPrototypeOf,Uy=hd.indexOf,By=[].indexOf,Zy=!!By&&1/[1].indexOf(1,-0)<0,Xy=Zv("indexOf");Pf({target:"Array",proto:!0,forced:Zy||Xy},{indexOf:function(t,e){return Zy?By.apply(this,arguments)||0:Uy(this,t,1<arguments.length?e:void 0)}});var qy=Bv("Array").indexOf,$y=Array.prototype,Jy=function(t){var e=t.indexOf;return t===$y||t instanceof Array&&e===$y.indexOf?qy:e},Qy=Py,Ky=Object.assign,tm=!Ky||vf(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=Ky({},t)[n]||vd(Ky({},e)).join("")!=r})?function(t,e){for(var n=Dd(t),r=arguments.length,i=1,o=Sd.f,a=Cf.f;i<r;)for(var s,u=If(arguments[i++]),l=o?vd(u).concat(o(u)):vd(u),c=l.length,h=0;h<c;)s=l[h++],Af&&!a.call(u,s)||(n[s]=u[s]);return n}:Ky;Pf({target:"Object",stat:!0,forced:Object.assign!==tm},{assign:tm});$f.Object.assign;Ud("iterator");var em=Kd.f("iterator");Ud("asyncIterator"),Ud("hasInstance"),Ud("isConcatSpreadable"),Ud("match"),Ud("matchAll"),Ud("replace"),Ud("search"),Ud("species"),Ud("split"),Ud("toPrimitive"),Ud("toStringTag"),Ud("unscopables"),ip(Math,"Math",!0),ip(Ef.JSON,"JSON",!0);var nm=$f.Symbol;Ud("asyncDispose"),Ud("dispose"),Ud("observable"),Ud("patternMatch"),Ud("replaceAll");var rm=nm,im=df(function(e){function n(t){return(n="function"==typeof rm&&"symbol"==typeof em?function(t){return typeof t}:function(t){return t&&"function"==typeof rm&&t.constructor===rm&&t!==rm.prototype?"symbol":typeof t})(t)}function r(t){return"function"==typeof rm&&"symbol"===n(em)?e.exports=r=function(t){return n(t)}:e.exports=r=function(t){return t&&"function"==typeof rm&&t.constructor===rm&&t!==rm.prototype?"symbol":n(t)},r(t)}e.exports=r}),om=Hv.trim,am=Ef.parseFloat,sm=1/am(Wv+"-0")!=-1/0?function(t){var e=om(String(t)),n=am(e);return 0===n&&"-"==e.charAt(0)?-0:n}:am;Pf({global:!0,forced:parseFloat!=sm},{parseFloat:sm});var um=$f.parseFloat;Pf({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}});var lm=$f.Date.now,cm=[],hm=cm.sort,fm=vf(function(){cm.sort(void 0)}),dm=vf(function(){cm.sort(null)}),pm=Zv("sort");Pf({target:"Array",proto:!0,forced:fm||!dm||pm},{sort:function(t){return void 0===t?hm.call(Dd(this)):hm.call(Dd(this),kf(t))}});var vm=Bv("Array").sort,ym=Array.prototype,mm=function(t){var e=t.sort;return t===ym||t instanceof Array&&e===ym.sort?vm:e},gm=Object.isFrozen,_m=vf(function(){gm(1)});Pf({target:"Object",stat:!0,forced:_m},{isFrozen:function(t){return!wf(t)||!!gm&&gm(t)}});var wm=$f.Object.isFrozen,bm=Ep.some;Pf({target:"Array",proto:!0,forced:Zv("some")},{some:function(t,e){return bm(this,t,1<arguments.length?e:void 0)}});var Sm=Bv("Array").some,xm=Array.prototype,Om=function(t){var e=t.some;return t===xm||t instanceof Array&&e===xm.some?Sm:e},km=$d.f,Dm=vf(function(){return!Object.getOwnPropertyNames(1)});Pf({target:"Object",stat:!0,forced:Dm},{getOwnPropertyNames:km});for(var Mm=$f.Object,Tm=function(t){return Mm.getOwnPropertyNames(t)},Pm=df(function(tr,t){tr.exports=function(){var e,i;function c(){return e.apply(null,arguments)}function a(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function s(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function o(t){return void 0===t}function u(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function l(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function r(t,e){var n,r=[];for(n=0;n<t.length;++n)r.push(e(t[n],n));return r}function h(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function f(t,e){for(var n in e)h(e,n)&&(t[n]=e[n]);return h(e,"toString")&&(t.toString=e.toString),h(e,"valueOf")&&(t.valueOf=e.valueOf),t}function d(t,e,n,r){return Ye(t,e,n,r,!0).utc()}function p(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 v(t){if(null==t._isValid){var e=p(t),n=i.call(e.parsedDateParts,function(t){return null!=t}),r=!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&&(r=r&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=wm&&wm(t))return r;t._isValid=r}return t._isValid}function y(t){var e=d(NaN);return null!=t?f(p(e),t):p(e).userInvalidated=!0,e}i=Om(Array.prototype)?Om(Array.prototype):function(t){for(var e=Object(this),n=e.length>>>0,r=0;r<n;r++)if(r in e&&t.call(this,e[r],r,e))return!0;return!1};var m=c.momentProperties=[];function g(t,e){var n,r,i;if(o(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),o(e._i)||(t._i=e._i),o(e._f)||(t._f=e._f),o(e._l)||(t._l=e._l),o(e._strict)||(t._strict=e._strict),o(e._tzm)||(t._tzm=e._tzm),o(e._isUTC)||(t._isUTC=e._isUTC),o(e._offset)||(t._offset=e._offset),o(e._pf)||(t._pf=p(e)),o(e._locale)||(t._locale=e._locale),0<m.length)for(n=0;n<m.length;n++)r=m[n],o(i=e[r])||(t[r]=i);return t}var n=!1;function _(t){g(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===n&&(n=!0,c.updateOffset(this),n=!1)}function w(t){return t instanceof _||null!=t&&null!=t._isAMomentObject}function b(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function S(t){var e=+t,n=0;return 0!=e&&isFinite(e)&&(n=b(e)),n}function x(t,e,n){var r,i=Math.min(t.length,e.length),o=Math.abs(t.length-e.length),a=0;for(r=0;r<i;r++)(n&&t[r]!==e[r]||!n&&S(t[r])!==S(e[r]))&&a++;return a+o}function O(t){!1===c.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function t(i,o){var a=!0;return f(function(){if(null!=c.deprecationHandler&&c.deprecationHandler(null,i),a){for(var t,e=[],n=0;n<arguments.length;n++){if(t="","object"===im(arguments[n])){for(var r in t+="\n["+n+"] ",arguments[0])t+=r+": "+arguments[0][r]+", ";t=Vy(t).call(t,0,-2)}else t=arguments[n];e.push(t)}O(i+"\nArguments: "+Vy(Array.prototype).call(e).join("")+"\n"+(new Error).stack),a=!1}return o.apply(this,arguments)},o)}var k,D={};function M(t,e){null!=c.deprecationHandler&&c.deprecationHandler(t,e),D[t]||(O(e),D[t]=!0)}function T(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function P(t,e){var n,r=f({},t);for(n in e)h(e,n)&&(s(t[n])&&s(e[n])?(r[n]={},f(r[n],t[n]),f(r[n],e[n])):null!=e[n]?r[n]=e[n]:delete r[n]);for(n in t)h(t,n)&&!h(e,n)&&s(t[n])&&(r[n]=f({},r[n]));return r}function E(t){null!=t&&this.set(t)}c.suppressDeprecationWarnings=!1,c.deprecationHandler=null,k=Fv||function(t){var e,n=[];for(e in t)h(t,e)&&n.push(e);return n};var A={};function Y(t,e){var n=t.toLowerCase();A[n]=A[n+"s"]=A[e]=t}function L(t){return"string"==typeof t?A[t]||A[t.toLowerCase()]:void 0}function C(t){var e,n,r={};for(n in t)h(t,n)&&(e=L(n))&&(r[e]=t[n]);return r}var R={};function j(t,e){R[t]=e}function I(t){var e=[];for(var n in t)e.push({unit:n,priority:R[n]});return mm(e).call(e,function(t,e){return t.priority-e.priority}),e}function N(t,e,n){var r=""+Math.abs(t),i=e-r.length,o=0<=t;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var F=/(\[[^\[]*\])|(\\)?([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,W=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,z={},V={};function G(t,e,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),t&&(V[t]=i),e&&(V[e[0]]=function(){return N(i.apply(this,arguments),e[1],e[2])}),n&&(V[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),t)})}function H(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function U(t,e){return t.isValid()?(e=B(e,t.localeData()),z[e]=z[e]||function(r){var t,i,o=r.match(F);for(t=0,i=o.length;t<i;t++)V[o[t]]?o[t]=V[o[t]]:o[t]=H(o[t]);return function(t){var e,n="";for(e=0;e<i;e++)n+=T(o[e])?o[e].call(t,r):o[e];return n}}(e),z[e](t)):t.localeData().invalidDate()}function B(t,e){var n=5;function r(t){return e.longDateFormat(t)||t}for(W.lastIndex=0;0<=n&&W.test(t);)t=t.replace(W,r),W.lastIndex=0,n-=1;return t}var Z=/\d/,X=/\d\d/,q=/\d{3}/,$=/\d{4}/,J=/[+-]?\d{6}/,Q=/\d\d?/,K=/\d\d\d\d?/,tt=/\d\d\d\d\d\d?/,et=/\d{1,3}/,nt=/\d{1,4}/,rt=/[+-]?\d{1,6}/,it=/\d+/,ot=/[+-]?\d+/,at=/Z|[+-]\d\d:?\d\d/gi,st=/Z|[+-]\d\d(?::?\d\d)?/gi,ut=/[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,lt={};function ct(t,n,r){lt[t]=T(n)?n:function(t,e){return t&&r?r:n}}function ht(t,e){return h(lt,t)?lt[t](e._strict,e._locale):new RegExp(function(t){return ft(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,r,i){return e||n||r||i}))}(t))}function ft(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var dt={};function pt(t,n){var e,r=n;for("string"==typeof t&&(t=[t]),u(n)&&(r=function(t,e){e[n]=S(t)}),e=0;e<t.length;e++)dt[t[e]]=r}function vt(t,i){pt(t,function(t,e,n,r){n._w=n._w||{},i(t,n._w,n,r)})}function yt(t,e,n){null!=e&&h(dt,t)&&dt[t](e,n._a,n,t)}var mt=0,gt=1,_t=2,wt=3,bt=4,St=5,xt=6,Ot=7,kt=8;function Dt(t){return Mt(t)?366:365}function Mt(t){return t%4==0&&t%100!=0||t%400==0}G("Y",0,0,function(){var t=this.year();return t<=9999?""+t:"+"+t}),G(0,["YY",2],0,function(){return this.year()%100}),G(0,["YYYY",4],0,"year"),G(0,["YYYYY",5],0,"year"),G(0,["YYYYYY",6,!0],0,"year"),Y("year","y"),j("year",1),ct("Y",ot),ct("YY",Q,X),ct("YYYY",nt,$),ct("YYYYY",rt,J),ct("YYYYYY",rt,J),pt(["YYYYY","YYYYYY"],mt),pt("YYYY",function(t,e){e[mt]=2===t.length?c.parseTwoDigitYear(t):S(t)}),pt("YY",function(t,e){e[mt]=c.parseTwoDigitYear(t)}),pt("Y",function(t,e){e[mt]=vy(t,10)}),c.parseTwoDigitYear=function(t){return S(t)+(68<S(t)?1900:2e3)};var Tt,Pt=Et("FullYear",!0);function Et(e,n){return function(t){return null!=t?(Yt(this,e,t),c.updateOffset(this,n),this):At(this,e)}}function At(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function Yt(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&Mt(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),Lt(n,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function Lt(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=function(t,e){return(t%e+e)%e}(e,12);return t+=(e-n)/12,1===n?Mt(t)?29:28:31-n%7%2}Tt=Jy(Array.prototype)?Jy(Array.prototype):function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},G("M",["MM",2],"Mo",function(){return this.month()+1}),G("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),G("MMMM",0,0,function(t){return this.localeData().months(this,t)}),Y("month","M"),j("month",8),ct("M",Q),ct("MM",Q,X),ct("MMM",function(t,e){return e.monthsShortRegex(t)}),ct("MMMM",function(t,e){return e.monthsRegex(t)}),pt(["M","MM"],function(t,e){e[gt]=S(t)-1}),pt(["MMM","MMMM"],function(t,e,n,r){var i=n._locale.monthsParse(t,r,n._strict);null!=i?e[gt]=i:p(n).invalidMonth=t});var Ct=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Rt="January_February_March_April_May_June_July_August_September_October_November_December".split("_");var jt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function It(t,e,n){var r,i,o,a=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=d([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(i=Tt.call(this._shortMonthsParse,a))?i:null:-1!==(i=Tt.call(this._longMonthsParse,a))?i:null:"MMM"===e?-1!==(i=Tt.call(this._shortMonthsParse,a))?i:-1!==(i=Tt.call(this._longMonthsParse,a))?i:null:-1!==(i=Tt.call(this._longMonthsParse,a))?i:-1!==(i=Tt.call(this._shortMonthsParse,a))?i:null}function Nt(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=S(e);else if(!u(e=t.localeData().monthsParse(e)))return t;return n=Math.min(t.date(),Lt(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function Ft(t){return null!=t?(Nt(this,t),c.updateOffset(this,!0),this):At(this,"Month")}var Wt=ut;var zt=ut;function Vt(){function t(t,e){return e.length-t.length}var e,n,r=[],i=[],o=[];for(e=0;e<12;e++)n=d([2e3,e]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(mm(r).call(r,t),mm(i).call(i,t),mm(o).call(o,t),e=0;e<12;e++)r[e]=ft(r[e]),i[e]=ft(i[e]);for(e=0;e<24;e++)o[e]=ft(o[e]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Gt(t){var e;if(t<100&&0<=t){var n=Vy(Array.prototype).call(arguments);n[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)}else e=new Date(Date.UTC.apply(null,arguments));return e}function Ht(t,e,n){var r=7+e-n,i=(7+Gt(t,0,r).getUTCDay()-e)%7;return r-i-1}function Ut(t,e,n,r,i){var o,a,s=(7+n-r)%7,u=Ht(t,r,i),l=1+7*(e-1)+s+u;return a=l<=0?Dt(o=t-1)+l:l>Dt(t)?(o=t+1,l-Dt(t)):(o=t,l),{year:o,dayOfYear:a}}function Bt(t,e,n){var r,i,o=Ht(t.year(),e,n),a=Math.floor((t.dayOfYear()-o-1)/7)+1;return a<1?(i=t.year()-1,r=a+Zt(i,e,n)):a>Zt(t.year(),e,n)?(r=a-Zt(t.year(),e,n),i=t.year()+1):(i=t.year(),r=a),{week:r,year:i}}function Zt(t,e,n){var r=Ht(t,e,n),i=Ht(t+1,e,n);return(Dt(t)-r+i)/7}G("w",["ww",2],"wo","week"),G("W",["WW",2],"Wo","isoWeek"),Y("week","w"),Y("isoWeek","W"),j("week",5),j("isoWeek",5),ct("w",Q),ct("ww",Q,X),ct("W",Q),ct("WW",Q,X),vt(["w","ww","W","WW"],function(t,e,n,r){e[r.substr(0,1)]=S(t)});function Xt(t,e){var n;return My(n=Vy(t).call(t,e,7)).call(n,Vy(t).call(t,0,e))}G("d",0,"do","day"),G("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),G("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),G("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),G("e",0,0,"weekday"),G("E",0,0,"isoWeekday"),Y("day","d"),Y("weekday","e"),Y("isoWeekday","E"),j("day",11),j("weekday",11),j("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)}),vt(["dd","ddd","dddd"],function(t,e,n,r){var i=n._locale.weekdaysParse(t,r,n._strict);null!=i?e.d=i:p(n).invalidWeekday=t}),vt(["d","e","E"],function(t,e,n,r){e[r]=S(t)});var qt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");var $t="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");var Jt="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function Qt(t,e,n){var r,i,o,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=d([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(i=Tt.call(this._weekdaysParse,a))?i:null:"ddd"===e?-1!==(i=Tt.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=Tt.call(this._minWeekdaysParse,a))?i:null:"dddd"===e?-1!==(i=Tt.call(this._weekdaysParse,a))?i:-1!==(i=Tt.call(this._shortWeekdaysParse,a))?i:-1!==(i=Tt.call(this._minWeekdaysParse,a))?i:null:"ddd"===e?-1!==(i=Tt.call(this._shortWeekdaysParse,a))?i:-1!==(i=Tt.call(this._weekdaysParse,a))?i:-1!==(i=Tt.call(this._minWeekdaysParse,a))?i:null:-1!==(i=Tt.call(this._minWeekdaysParse,a))?i:-1!==(i=Tt.call(this._weekdaysParse,a))?i:-1!==(i=Tt.call(this._shortWeekdaysParse,a))?i:null}var Kt=ut;var te=ut;var ee=ut;function ne(){function t(t,e){return e.length-t.length}var e,n,r,i,o,a=[],s=[],u=[],l=[];for(e=0;e<7;e++)n=d([2e3,1]).day(e),r=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),o=this.weekdays(n,""),a.push(r),s.push(i),u.push(o),l.push(r),l.push(i),l.push(o);for(mm(a).call(a,t),mm(s).call(s,t),mm(u).call(u,t),mm(l).call(l,t),e=0;e<7;e++)s[e]=ft(s[e]),u[e]=ft(u[e]),l[e]=ft(l[e]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function re(){return this.hours()%12||12}function ie(t,e){G(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function oe(t,e){return e._meridiemParse}G("H",["HH",2],0,"hour"),G("h",["hh",2],0,re),G("k",["kk",2],0,function(){return this.hours()||24}),G("hmm",0,0,function(){return""+re.apply(this)+N(this.minutes(),2)}),G("hmmss",0,0,function(){return""+re.apply(this)+N(this.minutes(),2)+N(this.seconds(),2)}),G("Hmm",0,0,function(){return""+this.hours()+N(this.minutes(),2)}),G("Hmmss",0,0,function(){return""+this.hours()+N(this.minutes(),2)+N(this.seconds(),2)}),ie("a",!0),ie("A",!1),Y("hour","h"),j("hour",13),ct("a",oe),ct("A",oe),ct("H",Q),ct("h",Q),ct("k",Q),ct("HH",Q,X),ct("hh",Q,X),ct("kk",Q,X),ct("hmm",K),ct("hmmss",tt),ct("Hmm",K),ct("Hmmss",tt),pt(["H","HH"],wt),pt(["k","kk"],function(t,e,n){var r=S(t);e[wt]=24===r?0:r}),pt(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),pt(["h","hh"],function(t,e,n){e[wt]=S(t),p(n).bigHour=!0}),pt("hmm",function(t,e,n){var r=t.length-2;e[wt]=S(t.substr(0,r)),e[bt]=S(t.substr(r)),p(n).bigHour=!0}),pt("hmmss",function(t,e,n){var r=t.length-4,i=t.length-2;e[wt]=S(t.substr(0,r)),e[bt]=S(t.substr(r,2)),e[St]=S(t.substr(i)),p(n).bigHour=!0}),pt("Hmm",function(t,e,n){var r=t.length-2;e[wt]=S(t.substr(0,r)),e[bt]=S(t.substr(r))}),pt("Hmmss",function(t,e,n){var r=t.length-4,i=t.length-2;e[wt]=S(t.substr(0,r)),e[bt]=S(t.substr(r,2)),e[St]=S(t.substr(i))});var ae,se=Et("Hours",!0),ue={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:Rt,monthsShort:jt,week:{dow:0,doy:6},weekdays:qt,weekdaysMin:Jt,weekdaysShort:$t,meridiemParse:/[ap]\.?m?\.?/i},le={},ce={};function he(t){return t?t.toLowerCase().replace("_","-"):t}function fe(t){var e=null;if(!le[t]&&tr&&tr.exports)try{e=ae._abbr;var n=ff;n("./locale/"+t),de(e)}catch(t){}return le[t]}function de(t,e){var n;return t&&((n=o(e)?ve(t):pe(t,e))?ae=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),ae._abbr}function pe(t,e){if(null===e)return delete le[t],null;var n,r,i=ue;if(e.abbr=t,null!=le[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."),i=le[t]._config;else if(null!=e.parentLocale)if(null!=le[e.parentLocale])i=le[e.parentLocale]._config;else{if(null==(n=fe(e.parentLocale)))return ce[e.parentLocale]||(ce[e.parentLocale]=[]),ce[e.parentLocale].push({name:t,config:e}),null;i=n._config}return le[t]=new E(P(i,e)),ce[t]&&ey(r=ce[t]).call(r,function(t){pe(t.name,t.config)}),de(t),le[t]}function ve(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return ae;if(!a(t)){if(e=fe(t))return e;t=[t]}return function(t){var e,n,r,i,o=0;for(;o<t.length;){for(i=he(t[o]).split("-"),e=i.length,n=(n=he(t[o+1]))?n.split("-"):null;0<e;){if(r=fe(Vy(i).call(i,0,e).join("-")))return r;if(n&&n.length>=e&&x(i,n,!0)>=e-1)break;e--}o++}return ae}(t)}function ye(t){var e,n=t._a;return n&&-2===p(t).overflow&&(e=n[gt]<0||11<n[gt]?gt:n[_t]<1||n[_t]>Lt(n[mt],n[gt])?_t:n[wt]<0||24<n[wt]||24===n[wt]&&(0!==n[bt]||0!==n[St]||0!==n[xt])?wt:n[bt]<0||59<n[bt]?bt:n[St]<0||59<n[St]?St:n[xt]<0||999<n[xt]?xt:-1,p(t)._overflowDayOfYear&&(e<mt||_t<e)&&(e=_t),p(t)._overflowWeeks&&-1===e&&(e=Ot),p(t)._overflowWeekday&&-1===e&&(e=kt),p(t).overflow=e),t}function me(t,e,n){return null!=t?t:null!=e?e:n}function ge(t){var e,n,r,i,o,a=[];if(!t._d){for(r=function(t){var e=new Date(c.now());if(t._useUTC)return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()];return[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[_t]&&null==t._a[gt]&&function(t){var e,n,r,i,o,a,s,u;if(null!=(e=t._w).GG||null!=e.W||null!=e.E)o=1,a=4,n=me(e.GG,t._a[mt],Bt(Le(),1,4).year),r=me(e.W,1),((i=me(e.E,1))<1||7<i)&&(u=!0);else{o=t._locale._week.dow,a=t._locale._week.doy;var l=Bt(Le(),o,a);n=me(e.gg,t._a[mt],l.year),r=me(e.w,l.week),null!=e.d?((i=e.d)<0||6<i)&&(u=!0):null!=e.e?(i=e.e+o,(e.e<0||6<e.e)&&(u=!0)):i=o}r<1||r>Zt(n,o,a)?p(t)._overflowWeeks=!0:null!=u?p(t)._overflowWeekday=!0:(s=Ut(n,r,i,o,a),t._a[mt]=s.year,t._dayOfYear=s.dayOfYear)}(t),null!=t._dayOfYear&&(o=me(t._a[mt],r[mt]),(t._dayOfYear>Dt(o)||0===t._dayOfYear)&&(p(t)._overflowDayOfYear=!0),n=Gt(o,0,t._dayOfYear),t._a[gt]=n.getUTCMonth(),t._a[_t]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=r[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[wt]&&0===t._a[bt]&&0===t._a[St]&&0===t._a[xt]&&(t._nextDay=!0,t._a[wt]=0),t._d=(t._useUTC?Gt:function(t,e,n,r,i,o,a){var s;t<100&&0<=t?(s=new Date(t+400,e,n,r,i,o,a),isFinite(s.getFullYear())&&s.setFullYear(t)):s=new Date(t,e,n,r,i,o,a);return s}).apply(null,a),i=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[wt]=24),t._w&&void 0!==t._w.d&&t._w.d!==i&&(p(t).weekdayMismatch=!0)}}var _e=/^\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)?)?$/,we=/^\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)?)?$/,be=/Z|[+-]\d\d(?::?\d\d)?/,Se=[["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}/]],xe=[["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/]],Oe=/^\/?Date\((\-?\d+)/i;function ke(t){var e,n,r,i,o,a,s=t._i,u=_e.exec(s)||we.exec(s);if(u){for(p(t).iso=!0,e=0,n=Se.length;e<n;e++)if(Se[e][1].exec(u[1])){i=Se[e][0],r=!1!==Se[e][2];break}if(null==i)return void(t._isValid=!1);if(u[3]){for(e=0,n=xe.length;e<n;e++)if(xe[e][1].exec(u[3])){o=(u[2]||" ")+xe[e][0];break}if(null==o)return void(t._isValid=!1)}if(!r&&null!=o)return void(t._isValid=!1);if(u[4]){if(!be.exec(u[4]))return void(t._isValid=!1);a="Z"}t._f=i+(o||"")+(a||""),Ee(t)}else t._isValid=!1}var De=/^(?:(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 Me(t,e,n,r,i,o){var a=[function(t){var e=vy(t,10);{if(e<=49)return 2e3+e;if(e<=999)return 1900+e}return e}(t),Jy(jt).call(jt,e),vy(n,10),vy(r,10),vy(i,10)];return o&&a.push(vy(o,10)),a}var Te={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Pe(t){var e=De.exec(function(t){return t.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}(t._i));if(e){var n=Me(e[4],e[3],e[2],e[5],e[6],e[7]);if(!function(t,e,n){if(t){var r=Jy($t).call($t,t),i=new Date(e[0],e[1],e[2]).getDay();if(r!==i)return p(n).weekdayMismatch=!0,n._isValid=!1}return!0}(e[1],n,t))return;t._a=n,t._tzm=function(t,e,n){{if(t)return Te[t];if(e)return 0;var r=vy(n,10),i=r%100;return 60*((r-i)/100)+i}}(e[8],e[9],e[10]),t._d=Gt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),p(t).rfc2822=!0}else t._isValid=!1}function Ee(t){var e;if(t._f!==c.ISO_8601)if(t._f!==c.RFC_2822){t._a=[],p(t).empty=!0;var n,r,i,o,a,s=""+t._i,u=s.length,l=0;for(i=B(t._f,t._locale).match(F)||[],n=0;n<i.length;n++)o=i[n],(r=(s.match(ht(o,t))||[])[0])&&(0<(a=s.substr(0,Jy(s).call(s,r))).length&&p(t).unusedInput.push(a),s=Vy(s).call(s,Jy(s).call(s,r)+r.length),l+=r.length),V[o]?(r?p(t).empty=!1:p(t).unusedTokens.push(o),yt(o,r,t)):t._strict&&!r&&p(t).unusedTokens.push(o);p(t).charsLeftOver=u-l,0<s.length&&p(t).unusedInput.push(s),t._a[wt]<=12&&!0===p(t).bigHour&&0<t._a[wt]&&(p(t).bigHour=void 0),p(t).parsedDateParts=Vy(e=t._a).call(e,0),p(t).meridiem=t._meridiem,t._a[wt]=function(t,e,n){var r;if(null==n)return e;return null!=t.meridiemHour?t.meridiemHour(e,n):(null!=t.isPM&&((r=t.isPM(n))&&e<12&&(e+=12),r||12!==e||(e=0)),e)}(t._locale,t._a[wt],t._meridiem),ge(t),ye(t)}else Pe(t);else ke(t)}function Ae(t){var e=t._i,n=t._f;return t._locale=t._locale||ve(t._l),null===e||void 0===n&&""===e?y({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),w(e)?new _(ye(e)):(l(e)?t._d=e:a(n)?function(t){var e,n,r,i,o;if(0===t._f.length)return p(t).invalidFormat=!0,t._d=new Date(NaN);for(i=0;i<t._f.length;i++)o=0,e=g({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[i],Ee(e),v(e)&&(o+=p(e).charsLeftOver,o+=10*p(e).unusedTokens.length,p(e).score=o,(null==r||o<r)&&(r=o,n=e));f(t,n||e)}(t):n?Ee(t):function(t){var e=t._i;o(e)?t._d=new Date(c.now()):l(e)?t._d=new Date(e.valueOf()):"string"==typeof e?function(t){var e=Oe.exec(t._i);if(null!==e)return t._d=new Date(+e[1]);{if(ke(t),!1!==t._isValid)return;delete t._isValid}{if(Pe(t),!1!==t._isValid)return;delete t._isValid}c.createFromInputFallback(t)}(t):a(e)?(t._a=r(Vy(e).call(e,0),function(t){return vy(t,10)}),ge(t)):s(e)?function(t){if(t._d)return;var e=C(t._i);t._a=r([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&vy(t,10)}),ge(t)}(t):u(e)?t._d=new Date(e):c.createFromInputFallback(t)}(t),v(t)||(t._d=null),t))}function Ye(t,e,n,r,i){var o={};return!0!==n&&!1!==n||(r=n,n=void 0),(s(t)&&function(t){{if(Tm)return 0===Tm(t).length;var e;for(e in t)if(t.hasOwnProperty(e))return!1;return!0}}(t)||a(t)&&0===t.length)&&(t=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=i,o._l=n,o._i=t,o._f=e,o._strict=r,function(t){var e=new _(ye(Ae(t)));e._nextDay&&(e.add(1,"d"),e._nextDay=void 0);return e}(o)}function Le(t,e,n,r){return Ye(t,e,n,r,!1)}c.createFromInputFallback=t("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":""))}),c.ISO_8601=function(){},c.RFC_2822=function(){};var Ce=t("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Le.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:y()}),Re=t("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Le.apply(null,arguments);return this.isValid()&&t.isValid()?this<t?this:t:y()});function je(t,e){var n,r;if(1===e.length&&a(e[0])&&(e=e[0]),!e.length)return Le();for(n=e[0],r=1;r<e.length;++r)e[r].isValid()&&!e[r][t](n)||(n=e[r]);return n}var Ie=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ne(t){var e=C(t),n=e.year||0,r=e.quarter||0,i=e.month||0,o=e.week||e.isoWeek||0,a=e.day||0,s=e.hour||0,u=e.minute||0,l=e.second||0,c=e.millisecond||0;this._isValid=function(t){for(var e in t)if(-1===Tt.call(Ie,e)||null!=t[e]&&isNaN(t[e]))return!1;for(var n=!1,r=0;r<Ie.length;++r)if(t[Ie[r]]){if(n)return!1;um(t[Ie[r]])!==S(t[Ie[r]])&&(n=!0)}return!0}(e),this._milliseconds=+c+1e3*l+6e4*u+1e3*s*60*60,this._days=+a+7*o,this._months=+i+3*r+12*n,this._data={},this._locale=ve(),this._bubble()}function Fe(t){return t instanceof Ne}function We(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function ze(t,n){G(t,0,0,function(){var t=this.utcOffset(),e="+";return t<0&&(t=-t,e="-"),e+N(~~(t/60),2)+n+N(~~t%60,2)})}ze("Z",":"),ze("ZZ",""),ct("Z",st),ct("ZZ",st),pt(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=Ge(st,t)});var Ve=/([\+\-]|\d\d)/gi;function Ge(t,e){var n=(e||"").match(t);if(null===n)return null;var r=n[n.length-1]||[],i=(r+"").match(Ve)||["-",0,0],o=60*i[1]+S(i[2]);return 0===o?0:"+"===i[0]?o:-o}function He(t,e){var n,r;return e._isUTC?(n=e.clone(),r=(w(t)||l(t)?t.valueOf():Le(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),c.updateOffset(n,!1),n):Le(t).local()}function Ue(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function Be(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}c.updateOffset=function(){};var Ze=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Xe=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function qe(t,e){var n,r,i,o=t,a=null;return Fe(t)?o={ms:t._milliseconds,d:t._days,M:t._months}:u(t)?(o={},e?o[e]=t:o.milliseconds=t):(a=Ze.exec(t))?(n="-"===a[1]?-1:1,o={y:0,d:S(a[_t])*n,h:S(a[wt])*n,m:S(a[bt])*n,s:S(a[St])*n,ms:S(We(1e3*a[xt]))*n}):(a=Xe.exec(t))?(n="-"===a[1]?-1:1,o={y:$e(a[2],n),M:$e(a[3],n),w:$e(a[4],n),d:$e(a[5],n),h:$e(a[6],n),m:$e(a[7],n),s:$e(a[8],n)}):null==o?o={}:"object"===im(o)&&("from"in o||"to"in o)&&(i=function(t,e){var n;if(!t.isValid()||!e.isValid())return{milliseconds:0,months:0};e=He(e,t),t.isBefore(e)?n=Je(t,e):((n=Je(e,t)).milliseconds=-n.milliseconds,n.months=-n.months);return n}(Le(o.from),Le(o.to)),(o={}).ms=i.milliseconds,o.M=i.months),r=new Ne(o),Fe(t)&&h(t,"_locale")&&(r._locale=t._locale),r}function $e(t,e){var n=t&&um(t.replace(",","."));return(isNaN(n)?0:n)*e}function Je(t,e){var n={};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Qe(r,i){return function(t,e){var n;return null===e||isNaN(+e)||(M(i,"moment()."+i+"(period, number) is deprecated. Please use moment()."+i+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=t,t=e,e=n),Ke(this,qe(t="string"==typeof t?+t:t,e),r),this}}function Ke(t,e,n,r){var i=e._milliseconds,o=We(e._days),a=We(e._months);t.isValid()&&(r=null==r||r,a&&Nt(t,At(t,"Month")+a*n),o&&Yt(t,"Date",At(t,"Date")+o*n),i&&t._d.setTime(t._d.valueOf()+i*n),r&&c.updateOffset(t,o||a))}qe.fn=Ne.prototype,qe.invalid=function(){return qe(NaN)};var tn=Qe(1,"add"),en=Qe(-1,"subtract");function nn(t,e){var n,r,i=12*(e.year()-t.year())+(e.month()-t.month()),o=t.clone().add(i,"months");return r=e-o<0?(n=t.clone().add(i-1,"months"),(e-o)/(o-n)):(n=t.clone().add(1+i,"months"),(e-o)/(n-o)),-(i+r)||0}function rn(t){var e;return void 0===t?this._locale._abbr:(null!=(e=ve(t))&&(this._locale=e),this)}c.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",c.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var on=t("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 an(){return this._locale}var sn=126227808e5;function un(t,e){return(t%e+e)%e}function ln(t,e,n){return t<100&&0<=t?new Date(t+400,e,n)-sn:new Date(t,e,n).valueOf()}function cn(t,e,n){return t<100&&0<=t?Date.UTC(t+400,e,n)-sn:Date.UTC(t,e,n)}function hn(t,e){G(0,[t,t.length],0,e)}function fn(t,e,n,r,i){var o;return null==t?Bt(this,r,i).year:((o=Zt(t,r,i))<e&&(e=o),function(t,e,n,r,i){var o=Ut(t,e,n,r,i),a=Gt(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,t,e,n,r,i))}G(0,["gg",2],0,function(){return this.weekYear()%100}),G(0,["GG",2],0,function(){return this.isoWeekYear()%100}),hn("gggg","weekYear"),hn("ggggg","weekYear"),hn("GGGG","isoWeekYear"),hn("GGGGG","isoWeekYear"),Y("weekYear","gg"),Y("isoWeekYear","GG"),j("weekYear",1),j("isoWeekYear",1),ct("G",ot),ct("g",ot),ct("GG",Q,X),ct("gg",Q,X),ct("GGGG",nt,$),ct("gggg",nt,$),ct("GGGGG",rt,J),ct("ggggg",rt,J),vt(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,r){e[r.substr(0,2)]=S(t)}),vt(["gg","GG"],function(t,e,n,r){e[r]=c.parseTwoDigitYear(t)}),G("Q",0,"Qo","quarter"),Y("quarter","Q"),j("quarter",7),ct("Q",Z),pt("Q",function(t,e){e[gt]=3*(S(t)-1)}),G("D",["DD",2],"Do","date"),Y("date","D"),j("date",9),ct("D",Q),ct("DD",Q,X),ct("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),pt(["D","DD"],_t),pt("Do",function(t,e){e[_t]=S(t.match(Q)[0])});var dn=Et("Date",!0);G("DDD",["DDDD",3],"DDDo","dayOfYear"),Y("dayOfYear","DDD"),j("dayOfYear",4),ct("DDD",et),ct("DDDD",q),pt(["DDD","DDDD"],function(t,e,n){n._dayOfYear=S(t)}),G("m",["mm",2],0,"minute"),Y("minute","m"),j("minute",14),ct("m",Q),ct("mm",Q,X),pt(["m","mm"],bt);var pn=Et("Minutes",!1);G("s",["ss",2],0,"second"),Y("second","s"),j("second",15),ct("s",Q),ct("ss",Q,X),pt(["s","ss"],St);var vn,yn=Et("Seconds",!1);for(G("S",0,0,function(){return~~(this.millisecond()/100)}),G(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),G(0,["SSS",3],0,"millisecond"),G(0,["SSSS",4],0,function(){return 10*this.millisecond()}),G(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),G(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),G(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),G(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),G(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Y("millisecond","ms"),j("millisecond",16),ct("S",et,Z),ct("SS",et,X),ct("SSS",et,q),vn="SSSS";vn.length<=9;vn+="S")ct(vn,it);function mn(t,e){e[xt]=S(1e3*("0."+t))}for(vn="S";vn.length<=9;vn+="S")pt(vn,mn);var gn=Et("Milliseconds",!1);G("z",0,0,"zoneAbbr"),G("zz",0,0,"zoneName");var _n=_.prototype;function wn(t){return t}_n.add=tn,_n.calendar=function(t,e){var n=t||Le(),r=He(n,this).startOf("day"),i=c.calendarFormat(this,r)||"sameElse",o=e&&(T(e[i])?e[i].call(this,n):e[i]);return this.format(o||this.localeData().calendar(i,this,Le(n)))},_n.clone=function(){return new _(this)},_n.diff=function(t,e,n){var r,i,o;if(!this.isValid())return NaN;if(!(r=He(t,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),e=L(e)){case"year":o=nn(this,r)/12;break;case"month":o=nn(this,r);break;case"quarter":o=nn(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:b(o)},_n.endOf=function(t){var e;if(void 0===(t=L(t))||"millisecond"===t||!this.isValid())return this;var n=this._isUTC?cn:ln;switch(t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=36e5-un(e+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":e=this._d.valueOf(),e+=6e4-un(e,6e4)-1;break;case"second":e=this._d.valueOf(),e+=1e3-un(e,1e3)-1}return this._d.setTime(e),c.updateOffset(this,!0),this},_n.format=function(t){t=t||(this.isUtc()?c.defaultFormatUtc:c.defaultFormat);var e=U(this,t);return this.localeData().postformat(e)},_n.from=function(t,e){return this.isValid()&&(w(t)&&t.isValid()||Le(t).isValid())?qe({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},_n.fromNow=function(t){return this.from(Le(),t)},_n.to=function(t,e){return this.isValid()&&(w(t)&&t.isValid()||Le(t).isValid())?qe({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},_n.toNow=function(t){return this.to(Le(),t)},_n.get=function(t){if(T(this[t=L(t)]))return this[t]();return this},_n.invalidAt=function(){return p(this).overflow},_n.isAfter=function(t,e){var n=w(t)?t:Le(t);if(!this.isValid()||!n.isValid())return!1;return"millisecond"===(e=L(e)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf()},_n.isBefore=function(t,e){var n=w(t)?t:Le(t);if(!this.isValid()||!n.isValid())return!1;return"millisecond"===(e=L(e)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf()},_n.isBetween=function(t,e,n,r){var i=w(t)?t:Le(t),o=w(e)?e:Le(e);return!!(this.isValid()&&i.isValid()&&o.isValid())&&(("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(o,n):!this.isAfter(o,n)))},_n.isSame=function(t,e){var n,r=w(t)?t:Le(t);if(!this.isValid()||!r.isValid())return!1;return"millisecond"===(e=L(e)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf())},_n.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},_n.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},_n.isValid=function(){return v(this)},_n.lang=on,_n.locale=rn,_n.localeData=an,_n.max=Re,_n.min=Ce,_n.parsingFlags=function(){return f({},p(this))},_n.set=function(t,e){if("object"===im(t))for(var n=I(t=C(t)),r=0;r<n.length;r++)this[n[r].unit](t[n[r].unit]);else if(T(this[t=L(t)]))return this[t](e);return this},_n.startOf=function(t){var e;if(void 0===(t=L(t))||"millisecond"===t||!this.isValid())return this;var n=this._isUTC?cn:ln;switch(t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=un(e+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":e=this._d.valueOf(),e-=un(e,6e4);break;case"second":e=this._d.valueOf(),e-=un(e,1e3)}return this._d.setTime(e),c.updateOffset(this,!0),this},_n.subtract=en,_n.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},_n.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},_n.toDate=function(){return new Date(this.valueOf())},_n.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;if(n.year()<0||9999<n.year())return U(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ");if(T(Date.prototype.toISOString))return e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",U(n,"Z"));return U(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},_n.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 n="["+t+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=e+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+i)},_n.toJSON=function(){return this.isValid()?this.toISOString():null},_n.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},_n.unix=function(){return Math.floor(this.valueOf()/1e3)},_n.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},_n.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},_n.year=Pt,_n.isLeapYear=function(){return Mt(this.year())},_n.weekYear=function(t){return fn.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},_n.isoWeekYear=function(t){return fn.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},_n.quarter=_n.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},_n.month=Ft,_n.daysInMonth=function(){return Lt(this.year(),this.month())},_n.week=_n.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},_n.isoWeek=_n.isoWeeks=function(t){var e=Bt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},_n.weeksInYear=function(){var t=this.localeData()._week;return Zt(this.year(),t.dow,t.doy)},_n.isoWeeksInYear=function(){return Zt(this.year(),1,4)},_n.date=dn,_n.day=_n.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(n=t,r=this.localeData(),t="string"==typeof n?isNaN(n)?"number"!=typeof(n=r.weekdaysParse(n))?null:n:vy(n,10):n,this.add(t-e,"d")):e;var n,r},_n.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")},_n.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;{if(null==t)return this.day()||7;var e=(n=t,r=this.localeData(),"string"!=typeof n?isNaN(n)?null:n:r.weekdaysParse(n)%7||7);return this.day(this.day()%7?e:e-7)}var n,r},_n.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")},_n.hour=_n.hours=se,_n.minute=_n.minutes=pn,_n.second=_n.seconds=yn,_n.millisecond=_n.milliseconds=gn,_n.utcOffset=function(t,e,n){var r,i=this._offset||0;if(!this.isValid())return null!=t?this:NaN;{if(null==t)return this._isUTC?i:Ue(this);if("string"==typeof t){if(null===(t=Ge(st,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(r=Ue(this)),this._offset=t,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==t&&(!e||this._changeInProgress?Ke(this,qe(t-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,c.updateOffset(this,!0),this._changeInProgress=null)),this}},_n.utc=function(t){return this.utcOffset(0,t)},_n.local=function(t){this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Ue(this),"m"));return this},_n.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=Ge(at,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},_n.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Le(t).utcOffset():0,(this.utcOffset()-t)%60==0)},_n.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},_n.isLocal=function(){return!!this.isValid()&&!this._isUTC},_n.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},_n.isUtc=Be,_n.isUTC=Be,_n.zoneAbbr=function(){return this._isUTC?"UTC":""},_n.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},_n.dates=t("dates accessor is deprecated. Use date instead.",dn),_n.months=t("months accessor is deprecated. Use month instead",Ft),_n.years=t("years accessor is deprecated. Use year instead",Pt),_n.zone=t("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()}),_n.isDSTShifted=t("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!o(this._isDSTShifted))return this._isDSTShifted;var t={};if(g(t,this),(t=Ae(t))._a){var e=t._isUTC?d(t._a):Le(t._a);this._isDSTShifted=this.isValid()&&0<x(t._a,e.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted});var bn=E.prototype;function Sn(t,e,n,r){var i=ve(),o=d().set(r,e);return i[n](o,t)}function xn(t,e,n){if(u(t)&&(e=t,t=void 0),t=t||"",null!=e)return Sn(t,e,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=Sn(t,r,n,"month");return i}function On(t,e,n,r){e=("boolean"==typeof t?u(e)&&(n=e,e=void 0):(e=t,t=!1,u(n=e)&&(n=e,e=void 0)),e||"");var i,o=ve(),a=t?o._week.dow:0;if(null!=n)return Sn(e,(n+a)%7,r,"day");var s=[];for(i=0;i<7;i++)s[i]=Sn(e,(i+a)%7,r,"day");return s}bn.calendar=function(t,e,n){var r=this._calendar[t]||this._calendar.sameElse;return T(r)?r.call(e,n):r},bn.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return!e&&n?(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,function(t){return Vy(t).call(t,1)}),this._longDateFormat[t]):e},bn.invalidDate=function(){return this._invalidDate},bn.ordinal=function(t){return this._ordinal.replace("%d",t)},bn.preparse=wn,bn.postformat=wn,bn.relativeTime=function(t,e,n,r){var i=this._relativeTime[n];return T(i)?i(t,e,n,r):i.replace(/%d/i,t)},bn.pastFuture=function(t,e){var n=this._relativeTime[0<t?"future":"past"];return T(n)?n(e):n.replace(/%s/i,e)},bn.set=function(t){var e,n;for(n in t)T(e=t[n])?this[n]=e:this["_"+n]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},bn.months=function(t,e){return t?a(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Ct).test(e)?"format":"standalone"][t.month()]:a(this._months)?this._months:this._months.standalone},bn.monthsShort=function(t,e){return t?a(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Ct.test(e)?"format":"standalone"][t.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},bn.monthsParse=function(t,e,n){var r,i,o;if(this._monthsParseExact)return It.call(this,t,e,n);this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]);for(r=0;r<12;r++){if(i=d([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[r].test(t))return r;if(n&&"MMM"===e&&this._shortMonthsParse[r].test(t))return r;if(!n&&this._monthsParse[r].test(t))return r}},bn.monthsRegex=function(t){return this._monthsParseExact?(h(this,"_monthsRegex")||Vt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(h(this,"_monthsRegex")||(this._monthsRegex=zt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},bn.monthsShortRegex=function(t){return this._monthsParseExact?(h(this,"_monthsRegex")||Vt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(h(this,"_monthsShortRegex")||(this._monthsShortRegex=Wt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},bn.week=function(t){return Bt(t,this._week.dow,this._week.doy).week},bn.firstDayOfYear=function(){return this._week.doy},bn.firstDayOfWeek=function(){return this._week.dow},bn.weekdays=function(t,e){var n=a(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Xt(n,this._week.dow):t?n[t.day()]:n},bn.weekdaysMin=function(t){return!0===t?Xt(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},bn.weekdaysShort=function(t){return!0===t?Xt(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},bn.weekdaysParse=function(t,e,n){var r,i,o;if(this._weekdaysParseExact)return Qt.call(this,t,e,n);this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]);for(r=0;r<7;r++){if(i=d([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[r].test(t))return r;if(n&&"ddd"===e&&this._shortWeekdaysParse[r].test(t))return r;if(n&&"dd"===e&&this._minWeekdaysParse[r].test(t))return r;if(!n&&this._weekdaysParse[r].test(t))return r}},bn.weekdaysRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||ne.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(h(this,"_weekdaysRegex")||(this._weekdaysRegex=Kt),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},bn.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||ne.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(h(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=te),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},bn.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||ne.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(h(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ee),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},bn.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},bn.meridiem=function(t,e,n){return 11<t?n?"pm":"PM":n?"am":"AM"},de("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,n=1===S(t%100/10)?"th":1==e?"st":2==e?"nd":3==e?"rd":"th";return t+n}}),c.lang=t("moment.lang is deprecated. Use moment.locale instead.",de),c.langData=t("moment.langData is deprecated. Use moment.localeData instead.",ve);var kn=Math.abs;function Dn(t,e,n,r){var i=qe(e,n);return t._milliseconds+=r*i._milliseconds,t._days+=r*i._days,t._months+=r*i._months,t._bubble()}function Mn(t){return t<0?Math.floor(t):Math.ceil(t)}function Tn(t){return 4800*t/146097}function Pn(t){return 146097*t/4800}function En(t){return function(){return this.as(t)}}var An=En("ms"),Yn=En("s"),Ln=En("m"),Cn=En("h"),Rn=En("d"),jn=En("w"),In=En("M"),Nn=En("Q"),Fn=En("y");function Wn(t){return function(){return this.isValid()?this._data[t]:NaN}}var zn=Wn("milliseconds"),Vn=Wn("seconds"),Gn=Wn("minutes"),Hn=Wn("hours"),Un=Wn("days"),Bn=Wn("months"),Zn=Wn("years");var Xn=Math.round,qn={ss:44,s:45,m:45,h:22,d:26,M:11};var $n=Math.abs;function Jn(t){return(0<t)-(t<0)||+t}function Qn(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n=$n(this._milliseconds)/1e3,r=$n(this._days),i=$n(this._months);t=b(n/60),e=b(t/60),n%=60,t%=60;var o=b(i/12),a=i%=12,s=r,u=e,l=t,c=n?n.toFixed(3).replace(/\.?0+$/,""):"",h=this.asSeconds();if(!h)return"P0D";var f=h<0?"-":"",d=Jn(this._months)!==Jn(h)?"-":"",p=Jn(this._days)!==Jn(h)?"-":"",v=Jn(this._milliseconds)!==Jn(h)?"-":"";return f+"P"+(o?d+o+"Y":"")+(a?d+a+"M":"")+(s?p+s+"D":"")+(u||l||c?"T":"")+(u?v+u+"H":"")+(l?v+l+"M":"")+(c?v+c+"S":"")}var Kn=Ne.prototype;return Kn.isValid=function(){return this._isValid},Kn.abs=function(){var t=this._data;return this._milliseconds=kn(this._milliseconds),this._days=kn(this._days),this._months=kn(this._months),t.milliseconds=kn(t.milliseconds),t.seconds=kn(t.seconds),t.minutes=kn(t.minutes),t.hours=kn(t.hours),t.months=kn(t.months),t.years=kn(t.years),this},Kn.add=function(t,e){return Dn(this,t,e,1)},Kn.subtract=function(t,e){return Dn(this,t,e,-1)},Kn.as=function(t){if(!this.isValid())return NaN;var e,n,r=this._milliseconds;if("month"===(t=L(t))||"quarter"===t||"year"===t)switch(e=this._days+r/864e5,n=this._months+Tn(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(Pn(this._months)),t){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return 24*e+r/36e5;case"minute":return 1440*e+r/6e4;case"second":return 86400*e+r/1e3;case"millisecond":return Math.floor(864e5*e)+r;default:throw new Error("Unknown unit "+t)}},Kn.asMilliseconds=An,Kn.asSeconds=Yn,Kn.asMinutes=Ln,Kn.asHours=Cn,Kn.asDays=Rn,Kn.asWeeks=jn,Kn.asMonths=In,Kn.asQuarters=Nn,Kn.asYears=Fn,Kn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*S(this._months/12):NaN},Kn._bubble=function(){var t,e,n,r,i,o=this._milliseconds,a=this._days,s=this._months,u=this._data;return 0<=o&&0<=a&&0<=s||o<=0&&a<=0&&s<=0||(o+=864e5*Mn(Pn(s)+a),s=a=0),u.milliseconds=o%1e3,t=b(o/1e3),u.seconds=t%60,e=b(t/60),u.minutes=e%60,n=b(e/60),u.hours=n%24,a+=b(n/24),i=b(Tn(a)),s+=i,a-=Mn(Pn(i)),r=b(s/12),s%=12,u.days=a,u.months=s,u.years=r,this},Kn.clone=function(){return qe(this)},Kn.get=function(t){return t=L(t),this.isValid()?this[t+"s"]():NaN},Kn.milliseconds=zn,Kn.seconds=Vn,Kn.minutes=Gn,Kn.hours=Hn,Kn.days=Un,Kn.weeks=function(){return b(this.days()/7)},Kn.months=Bn,Kn.years=Zn,Kn.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),n=function(t,e,n){var r=qe(t).abs(),i=Xn(r.as("s")),o=Xn(r.as("m")),a=Xn(r.as("h")),s=Xn(r.as("d")),u=Xn(r.as("M")),l=Xn(r.as("y")),c=i<=qn.ss&&["s",i]||i<qn.s&&["ss",i]||o<=1&&["m"]||o<qn.m&&["mm",o]||a<=1&&["h"]||a<qn.h&&["hh",a]||s<=1&&["d"]||s<qn.d&&["dd",s]||u<=1&&["M"]||u<qn.M&&["MM",u]||l<=1&&["y"]||["yy",l];return c[2]=e,c[3]=0<+t,c[4]=n,function(t,e,n,r,i){return i.relativeTime(e||1,!!n,t,r)}.apply(null,c)}(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)},Kn.toISOString=Qn,Kn.toString=Qn,Kn.toJSON=Qn,Kn.locale=rn,Kn.localeData=an,Kn.toIsoString=t("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Qn),Kn.lang=on,G("X",0,0,"unix"),G("x",0,0,"valueOf"),ct("x",ot),ct("X",/[+-]?\d+(\.\d{1,3})?/),pt("X",function(t,e,n){n._d=new Date(1e3*um(t,10))}),pt("x",function(t,e,n){n._d=new Date(S(t))}),c.version="2.24.0",function(t){e=t}(Le),c.fn=_n,c.min=function(){return je("isBefore",Vy([]).call(arguments,0))},c.max=function(){return je("isAfter",Vy([]).call(arguments,0))},c.now=function(){return lm?lm():+new Date},c.utc=d,c.unix=function(t){return Le(1e3*t)},c.months=function(t,e){return xn(t,e,"months")},c.isDate=l,c.locale=de,c.invalid=y,c.duration=qe,c.isMoment=w,c.weekdays=function(t,e,n){return On(t,e,n,"weekdays")},c.parseZone=function(){return Le.apply(null,arguments).parseZone()},c.localeData=ve,c.isDuration=Fe,c.monthsShort=function(t,e){return xn(t,e,"monthsShort")},c.weekdaysMin=function(t,e,n){return On(t,e,n,"weekdaysMin")},c.defineLocale=pe,c.updateLocale=function(t,e){if(null!=e){var n,r,i=ue;null!=(r=fe(t))&&(i=r._config),e=P(i,e),(n=new E(e)).parentLocale=le[t],le[t]=n,de(t)}else null!=le[t]&&(null!=le[t].parentLocale?le[t]=le[t].parentLocale:null!=le[t]&&delete le[t]);return le[t]},c.locales=function(){return k(le)},c.weekdaysShort=function(t,e,n){return On(t,e,n,"weekdaysShort")},c.normalizeUnits=L,c.relativeTimeRounding=function(t){return void 0!==t?"function"==typeof t&&(Xn=t,!0):Xn},c.relativeTimeThreshold=function(t,e){return void 0!==qn[t]&&(void 0===e?qn[t]:(qn[t]=e,"s"===t&&(qn.ss=e-1),!0))},c.calendarFormat=function(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},c.prototype=_n,c.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"},c}()}),Em=[],Am=0;Am<256;Am++)Em[Am]=(Am+256).toString(16).substr(1);for(var Ym=function(){if("undefined"!=typeof crypto&&crypto.getRandomValues){var t=new Uint8Array(16);return function(){return crypto.getRandomValues(t),t}}var n=new Array(16);return function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),n[e]=t>>>((3&e)<<3)&255;return n}}(),Lm=[],Cm=0;Cm<256;Cm++)Lm[Cm]=(Cm+256).toString(16).substr(1);var Rm=Ym(),jm=(Rm[0],Rm[1],Rm[2],Rm[3],Rm[4],Rm[5],Rm[6],Rm[7],/^\/?Date\((-?\d+)/i);function Im(t){return t instanceof Number||"number"==typeof t}function Nm(t){return t instanceof String||"string"==typeof t}function Fm(t){return Pm.isMoment(t)}function Wm(t,e,n,r){var i=!1;!0===r&&(i=null===e[n]&&void 0!==t[n]),i?delete t[n]:t[n]=e[n]}function zm(t,e,n,r){var i=2<arguments.length&&void 0!==n&&n,o=3<arguments.length&&void 0!==r&&r;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)||!0===i)if("object"===im(e[a])&&null!==e[a]&&Hy(e[a])===Object.prototype)void 0===t[a]?t[a]=zm({},e[a],i):"object"===im(t[a])&&null!==t[a]&&Hy(t[a])===Object.prototype?zm(t[a],e[a],i):Wm(t,e,a,o);else if(Qy(e[a])){var s;t[a]=Vy(s=e[a]).call(s)}else Wm(t,e,a,o);return t}function Vm(t,e){var n;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 Nm(t)&&!isNaN(Date.parse(t))?Pm(t).valueOf():Number(t.valueOf());case"string":case"String":return String(t);case"Date":if(Im(t))return new Date(t);if(t instanceof Date)return new Date(t.valueOf());if(Fm(t))return new Date(t.valueOf());if(Nm(t))return(n=jm.exec(t))?new Date(Number(n[1])):Pm(new Date(t)).toDate();throw new Error("Cannot convert object of type "+Gm(t)+" to type Date");case"Moment":if(Im(t))return Pm(t);if(t instanceof Date)return Pm(t.valueOf());if(Fm(t))return Pm(t);if(Nm(t))return n=jm.exec(t),Pm(n?Number(n[1]):t);throw new Error("Cannot convert object of type "+Gm(t)+" to type Date");case"ISODate":if(Im(t))return new Date(t);if(t instanceof Date)return t.toISOString();if(Fm(t))return t.toDate().toISOString();if(Nm(t))return(n=jm.exec(t))?new Date(Number(n[1])).toISOString():Pm(t).format();throw new Error("Cannot convert object of type "+Gm(t)+" to type ISODate");case"ASPDate":if(Im(t))return"/Date("+t+")/";if(t instanceof Date||Fm(t))return"/Date("+t.valueOf()+")/";if(Nm(t))return"/Date("+((n=jm.exec(t))?new Date(Number(n[1])).valueOf():new Date(t).valueOf())+")/";throw new Error("Cannot convert object of type "+Gm(t)+" to type ASPDate");default:throw new Error("Unknown type ".concat(e))}}}function Gm(t){var e=im(t);return"object"===e?null===t?"null":t instanceof Boolean?"Boolean":t instanceof Number?"Number":t instanceof String?"String":Qy(t)?"Array":t instanceof Date?"Date":"Object":"number"===e?"Number":"boolean"===e?"Boolean":"string"===e?"String":void 0===e?"undefined":e}function Hm(t){return"string"==typeof t||"number"==typeof t}var Um=Math.max,Bm=Math.min;la({target:"Array",proto:!0,forced:!Bc("splice")},{splice:function(t,e){var n,r,i,o,a,s,u=Ps(this),l=ja(u.length),c=Ia(t,l),h=arguments.length;if(0===h?n=r=0:r=1===h?(n=0,l-c):(n=h-2,Bm(Um(Ra(e),0),l-c)),9007199254740991<l+n-r)throw TypeError("Maximum allowed length exceeded");for(i=xu(u,r),o=0;o<r;o++)(a=c+o)in u&&es(i,o,u[a]);if(n<(i.length=r)){for(o=c;o<l-r;o++)s=o+n,(a=o+r)in u?u[s]=u[a]:delete u[s];for(o=l;l-r+n<o;o--)delete u[o-1]}else if(r<n)for(o=l-r;c<o;o--)s=o+n-1,(a=o+r-1)in u?u[s]=u[a]:delete u[s];for(o=0;o<n;o++)u[o+c]=arguments[o+2];return u.length=l-r+n,i}});function Zm(i){return function(t,e){var n=2<arguments.length,r=n?Jm.call(arguments,2):void 0;return i(n?function(){("function"==typeof t?t:Function(t)).apply(this,r)}:t,e)}}var Xm=Yu("Array").splice,qm=Array.prototype,$m=function(t){var e=t.splice;return t===qm||t instanceof Array&&e===qm.splice?Xm:e},Jm=[].slice,Qm=/MSIE .\./.test(Vc);la({global:!0,bind:!0,forced:Qm},{setTimeout:Zm(ca.setTimeout),setInterval:Zm(ca.setInterval)});var Km=Ea.setTimeout,tg=function(){function a(t){Gh(this,a),this._queue=[],this._timeout=null,this._extended=null,this.delay=null,this.max=1/0,this.setOptions(t)}return Uh(a,[{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,n=0;n<e.length;n++){var r=e[n];r.original?t[r.name]=r.original:delete t[r.name]}this._extended=null}}},{key:"replace",value:function(t,e){var r=this,i=t[e];if(!i)throw new Error("Method "+e+" undefined");t[e]=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];r.queue({args:e,fn:i,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),0<this.queue.length&&"number"==typeof this.delay&&(this._timeout=Km(function(){t.flush()},this.delay))}},{key:"flush",value:function(){var t,e;ju(t=$m(e=this._queue).call(e,0)).call(t,function(t){t.fn.apply(t.context||t.fn,t.args||[])})}}],[{key:"extend",value:function(t,e){var n=new a(e);if(void 0!==t.flush)throw new Error("Target object already has a property flush");t.flush=function(){n.flush()};var r=[{name:"flush",original:void 0}];if(e&&e.replace)for(var i=0;i<e.replace.length;i++){var o=e.replace[i];r.push({name:o,original:t[o]}),n.replace(t,o)}return n._extended={object:t,methods:r},n}}]),a}(),eg=function(){function t(){Gh(this,t),this._subscribers={"*":[],add:[],remove:[],update:[]},this.subscribe=t.prototype.on,this.unsubscribe=t.prototype.off}return Uh(t,[{key:"_trigger",value:function(e,n,r){var t,i;if("*"===e)throw new Error("Cannot trigger event *");ju(t=sh(i=[]).call(i,zc(this._subscribers[e]),zc(this._subscribers["*"]))).call(t,function(t){t(e,n,null!=r?r:null)})}},{key:"on",value:function(t,e){"function"==typeof e&&this._subscribers[t].push(e)}},{key:"off",value:function(t,e){var n;this._subscribers[t]=Kc(n=this._subscribers[t]).call(n,function(t){return t!==e})}}]),t}(),ng=(kh("Set",function(e){return function(t){return e(this,arguments.length?t:void 0)}},Wh),Ea.Set),rg=Qh;var ig=function(t){if(xc(t))return t};var og=function(t,e){if(jc(Object(t))||"[object Arguments]"===Object.prototype.toString.call(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=ic(t);!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}};var ag=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")};var sg=function(t,e){return ig(t)||og(t,e)||ag()},ug=function(){function n(t){Gh(this,n),this._pairs=t}return Uh(n,[{key:Gl,value:Rl.mark(function t(){var e,n,r,i,o,a,s,u;return Rl.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=!(e=!0),r=void 0,t.prev=3,i=ic(this._pairs);case 5:if(e=(o=i.next()).done){t.next=12;break}return a=sg(o.value,2),s=a[0],u=a[1],t.next=9,[s,u];case 9:e=!0,t.next=5;break;case 12:t.next=18;break;case 14:t.prev=14,t.t0=t.catch(3),n=!0,r=t.t0;case 18:t.prev=18,t.prev=19,e||null==i.return||i.return();case 21:if(t.prev=21,n)throw r;t.next=24;break;case 24:return t.finish(21);case 25:return t.finish(18);case 26:case"end":return t.stop()}},t,this,[[3,14,18,26],[19,,21,25]])})},{key:"entries",value:Rl.mark(function t(){var e,n,r,i,o,a,s,u;return Rl.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=!(e=!0),r=void 0,t.prev=3,i=ic(this._pairs);case 5:if(e=(o=i.next()).done){t.next=12;break}return a=sg(o.value,2),s=a[0],u=a[1],t.next=9,[s,u];case 9:e=!0,t.next=5;break;case 12:t.next=18;break;case 14:t.prev=14,t.t0=t.catch(3),n=!0,r=t.t0;case 18:t.prev=18,t.prev=19,e||null==i.return||i.return();case 21:if(t.prev=21,n)throw r;t.next=24;break;case 24:return t.finish(21);case 25:return t.finish(18);case 26:case"end":return t.stop()}},t,this,[[3,14,18,26],[19,,21,25]])})},{key:"keys",value:Rl.mark(function t(){var e,n,r,i,o,a,s;return Rl.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=!(e=!0),r=void 0,t.prev=3,i=ic(this._pairs);case 5:if(e=(o=i.next()).done){t.next=12;break}return a=sg(o.value,1),s=a[0],t.next=9,s;case 9:e=!0,t.next=5;break;case 12:t.next=18;break;case 14:t.prev=14,t.t0=t.catch(3),n=!0,r=t.t0;case 18:t.prev=18,t.prev=19,e||null==i.return||i.return();case 21:if(t.prev=21,n)throw r;t.next=24;break;case 24:return t.finish(21);case 25:return t.finish(18);case 26:case"end":return t.stop()}},t,this,[[3,14,18,26],[19,,21,25]])})},{key:"values",value:Rl.mark(function t(){var e,n,r,i,o,a,s;return Rl.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=!(e=!0),r=void 0,t.prev=3,i=ic(this._pairs);case 5:if(e=(o=i.next()).done){t.next=12;break}return a=sg(o.value,2),s=a[1],t.next=9,s;case 9:e=!0,t.next=5;break;case 12:t.next=18;break;case 14:t.prev=14,t.t0=t.catch(3),n=!0,r=t.t0;case 18:t.prev=18,t.prev=19,e||null==i.return||i.return();case 21:if(t.prev=21,n)throw r;t.next=24;break;case 24:return t.finish(21);case 25:return t.finish(18);case 26:case"end":return t.stop()}},t,this,[[3,14,18,26],[19,,21,25]])})},{key:"toIdArray",value:function(){var t;return gh(t=zc(this._pairs)).call(t,function(t){return t[0]})}},{key:"toItemArray",value:function(){var t;return gh(t=zc(this._pairs)).call(t,function(t){return t[1]})}},{key:"toEntryArray",value:function(){return zc(this._pairs)}},{key:"toObjectMap",value:function(){var t=rg(null),e=!0,n=!1,r=void 0;try{for(var i,o=ic(this._pairs);!(e=(i=o.next()).done);e=!0){var a=sg(i.value,2),s=a[0],u=a[1];t[s]=u}}catch(t){n=!0,r=t}finally{try{e||null==o.return||o.return()}finally{if(n)throw r}}return t}},{key:"toMap",value:function(){return new zh(this._pairs)}},{key:"toIdSet",value:function(){return new ng(this.toIdArray())}},{key:"toItemSet",value:function(){return new ng(this.toItemArray())}},{key:"cache",value:function(){return new n(zc(this._pairs))}},{key:"distinct",value:function(t){var e=new ng,n=!0,r=!1,i=void 0;try{for(var o,a=ic(this._pairs);!(n=(o=a.next()).done);n=!0){var s=sg(o.value,2),u=s[0],l=s[1];e.add(t(l,u))}}catch(t){r=!0,i=t}finally{try{n||null==a.return||a.return()}finally{if(r)throw i}}return e}},{key:"filter",value:function(l){var c=this._pairs;return new n(Ql({},Gl,Rl.mark(function t(){var e,n,r,i,o,a,s,u;return Rl.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=!(e=!0),r=void 0,t.prev=3,i=ic(c);case 5:if(e=(o=i.next()).done){t.next=13;break}if(a=sg(o.value,2),s=a[0],u=a[1],l(u,s))return t.next=10,[s,u];t.next=10;break;case 10:e=!0,t.next=5;break;case 13:t.next=19;break;case 15:t.prev=15,t.t0=t.catch(3),n=!0,r=t.t0;case 19:t.prev=19,t.prev=20,e||null==i.return||i.return();case 22:if(t.prev=22,n)throw r;t.next=25;break;case 25:return t.finish(22);case 26:return t.finish(19);case 27:case"end":return t.stop()}},t,null,[[3,15,19,27],[20,,22,26]])})))}},{key:"forEach",value:function(t){var e=!0,n=!1,r=void 0;try{for(var i,o=ic(this._pairs);!(e=(i=o.next()).done);e=!0){var a=sg(i.value,2),s=a[0];t(a[1],s)}}catch(t){n=!0,r=t}finally{try{e||null==o.return||o.return()}finally{if(n)throw r}}}},{key:"map",value:function(l){var c=this._pairs;return new n(Ql({},Gl,Rl.mark(function t(){var e,n,r,i,o,a,s,u;return Rl.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=!(e=!0),r=void 0,t.prev=3,i=ic(c);case 5:if(e=(o=i.next()).done){t.next=12;break}return a=sg(o.value,2),s=a[0],u=a[1],t.next=9,[s,l(u,s)];case 9:e=!0,t.next=5;break;case 12:t.next=18;break;case 14:t.prev=14,t.t0=t.catch(3),n=!0,r=t.t0;case 18:t.prev=18,t.prev=19,e||null==i.return||i.return();case 21:if(t.prev=21,n)throw r;t.next=24;break;case 24:return t.finish(21);case 25:return t.finish(18);case 26:case"end":return t.stop()}},t,null,[[3,14,18,26],[19,,21,25]])})))}},{key:"max",value:function(t){var e=ic(this._pairs),n=e.next();if(n.done)return null;for(var r=n.value[1],i=t(n.value[1],n.value[0]);!(n=e.next()).done;){var o=sg(n.value,2),a=o[0],s=o[1],u=t(s,a);i<u&&(i=u,r=s)}return r}},{key:"min",value:function(t){var e=ic(this._pairs),n=e.next();if(n.done)return null;for(var r=n.value[1],i=t(n.value[1],n.value[0]);!(n=e.next()).done;){var o=sg(n.value,2),a=o[0],s=o[1],u=t(s,a);u<i&&(i=u,r=s)}return r}},{key:"reduce",value:function(t,e){var n=!0,r=!1,i=void 0;try{for(var o,a=ic(this._pairs);!(n=(o=a.next()).done);n=!0){var s=sg(o.value,2),u=s[0];e=t(e,s[1],u)}}catch(t){r=!0,i=t}finally{try{n||null==a.return||a.return()}finally{if(r)throw i}}return e}},{key:"sort",value:function(u){var e=this;return new n(Ql({},Gl,function(){var t;return ic(dc(t=zc(e._pairs)).call(t,function(t,e){var n=sg(t,2),r=n[0],i=n[1],o=sg(e,2),a=o[0],s=o[1];return u(i,s,r,a)}))}))}}]),n}();function lg(e,t){var n=Mh(e);if(Ol){var r=Ol(e);t&&(r=Kc(r).call(r,function(t){return Hu(e,t).enumerable})),n.push.apply(n,r)}return n}var cg=function(){function u(t,e){var n;if(Gh(this,u),n=Zh(this,Jh(u).call(this)),t&&!Vh(t)&&(e=t,t=[]),n._options=e||{},n._data=new zh,n.length=0,n._idProp=n._options.fieldId||"id",n._type={},n._options.type)for(var r=Mh(n._options.type),i=0,o=r.length;i<o;i++){var a=r[i],s=n._options.type[a];n._type[a]="Date"==s||"ISODate"==s||"ASPDate"==s?"Date":s}return t&&t.length&&n.add(t),n.setOptions(e),n}return nf(u,eg),Uh(u,[{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=tg.extend(this,{replace:["add","update","remove"]})),t.queue&&"object"===Sh(t.queue)&&this._queue.setOptions(t.queue)))}},{key:"add",value:function(t,e){var n,r=this,i=[];if(Vh(t)){var o=gh(t).call(t,function(t){return t[r._idProp]});if(ph(o).call(o,function(t){return r._data.has(t)}))throw new Error("A duplicate id was found in the parameter array.");for(var a=0,s=t.length;a<s;a++)n=this._addItem(t[a]),i.push(n)}else{if(!t||"object"!==Sh(t))throw new Error("Unknown dataType");n=this._addItem(t),i.push(n)}return i.length&&this._trigger("add",{items:i},e),i}},{key:"update",value:function(t,e){function n(t){var e=t[h];if(null!=e&&a._data.has(e)){var n=t,r=ch({},a._data.get(e)),i=a._updateItem(n);u.push(i),c.push(n),l.push(r)}else{var o=a._addItem(t);s.push(o)}}var a=this,s=[],u=[],l=[],c=[],h=this._idProp;if(Vh(t))for(var r=0,i=t.length;r<i;r++)t[r]&&"object"===Sh(t[r])?n(t[r]):console.warn("Ignoring input item, which is not an object at index "+r);else{if(!t||"object"!==Sh(t))throw new Error("Unknown dataType");n(t)}if(s.length&&this._trigger("add",{items:s},e),u.length){var o={items:u,oldData:l,data:c};this._trigger("update",o,e)}return sh(s).call(s,u)}},{key:"updateOnly",value:function(t,e){var n,o=this;Vh(t)||(t=[t]);var r=gh(n=gh(t).call(t,function(t){var e=o._data.get(t[o._idProp]);if(null==e)throw new Error("Updating non-existent items is not allowed.");return{oldData:e,update:t}})).call(n,function(t){var e=t.oldData,n=t.update,r=e[o._idProp],i=zm(zm({},e),n);return o._data.set(r,i),{id:r,oldData:e,updatedData:i}});if(r.length){var i={items:gh(r).call(r,function(t){return t.id}),oldData:gh(r).call(r,function(t){return t.oldData}),data:gh(r).call(r,function(t){return t.updatedData})};return this._trigger("update",i,e),i.items}return[]}},{key:"get",value:function(t,e){var n=void 0,r=void 0,i=void 0,o=(i=Hm(t)?(n=t,e):Vh(t)?(r=t,e):t)&&"Object"===i.returnType?"Object":"Array",a=i&&i.type||this._options.type,s=i&&Kc(i),u=[],l=null,c=null,h=null;if(null!=n)(l=this._getItem(n,a))&&s&&!s(l)&&(l=null);else if(null!=r)for(var f=0,d=r.length;f<d;f++)null==(l=this._getItem(r[f],a))||s&&!s(l)||u.push(l);else for(var p,v=0,y=(c=zc(bc(p=this._data).call(p))).length;v<y;v++)h=c[v],null==(l=this._getItem(h,a))||s&&!s(l)||u.push(l);if(i&&i.order&&null==n&&this._sort(u,i.order),i&&i.fields){var m=i.fields;if(null!=n&&null!=l)l=this._filterFields(l,m);else for(var g=0,_=u.length;g<_;g++)u[g]=this._filterFields(u[g],m)}if("Object"!=o)return null!=n?l:u;for(var w={},b=0,S=u.length;b<S;b++){var x=u[b];w[x[this._idProp]]=x}return w}},{key:"getIds",value:function(t){var e,n,r=this._data,i=t&&Kc(t),o=t&&t.order,a=t&&t.type||this._options.type,s=zc(bc(r).call(r)),u=[];if(i)if(o){n=[];for(var l=0,c=s.length;l<c;l++){var h=s[l];i(e=this._getItem(h,a))&&n.push(e)}this._sort(n,o);for(var f=0,d=n.length;f<d;f++)u.push(n[f][this._idProp])}else for(var p=0,v=s.length;p<v;p++){var y=s[p];i(e=this._getItem(y,a))&&u.push(e[this._idProp])}else if(o){n=[];for(var m=0,g=s.length;m<g;m++){var _=s[m];n.push(r.get(_))}this._sort(n,o);for(var w=0,b=n.length;w<b;w++)u.push(n[w][this._idProp])}else for(var S=0,x=s.length;S<x;S++){var O=s[S];e=r.get(O),u.push(e[this._idProp])}return u}},{key:"getDataSet",value:function(){return this}},{key:"forEach",value:function(t,e){var n=e&&Kc(e),r=e&&e.type||this._options.type,i=this._data,o=zc(bc(i).call(i));if(e&&e.order)for(var a=this.get(e),s=0,u=a.length;s<u;s++){var l=a[s];t(l,l[this._idProp])}else for(var c=0,h=o.length;c<h;c++){var f=o[c],d=this._getItem(f,r);n&&!n(d)||t(d,f)}}},{key:"map",value:function(t,e){for(var n=e&&Kc(e),r=e&&e.type||this._options.type,i=[],o=this._data,a=zc(bc(o).call(o)),s=0,u=a.length;s<u;s++){var l=a[s],c=this._getItem(l,r);n&&!n(c)||i.push(t(c,l))}return e&&e.order&&this._sort(i,e.order),i}},{key:"_filterFields",value:function(n,t){var e;return n?mc(e=Vh(t)?t:Mh(t)).call(e,function(t,e){return t[e]=n[e],t},{}):n}},{key:"_sort",value:function(t,e){if("string"==typeof e){var i=e;dc(t).call(t,function(t,e){var n=t[i],r=e[i];return r<n?1:n<r?-1:0})}else{if("function"!=typeof e)throw new TypeError("Order must be a function or a string");dc(t).call(t,e)}}},{key:"remove",value:function(t,e){for(var n=[],r=[],i=Vh(t)?t:[t],o=0,a=i.length;o<a;o++){var s=this._remove(i[o]);if(s){var u=s[this._idProp];null!=u&&(n.push(u),r.push(s))}}return n.length&&this._trigger("remove",{items:n,oldData:r},e),n}},{key:"_remove",value:function(t){var e;if(Hm(t)?e=t:t&&"object"===Sh(t)&&(e=t[this._idProp]),null!=e&&this._data.has(e)){var n=this._data.get(e)||null;return this._data.delete(e),--this.length,n}return null}},{key:"clear",value:function(t){for(var e,n=zc(bc(e=this._data).call(e)),r=[],i=0,o=n.length;i<o;i++)r.push(this._data.get(n[i]));return this._data.clear(),this.length=0,this._trigger("remove",{items:n,oldData:r},t),n}},{key:"max",value:function(t){var e=null,n=null,r=!0,i=!1,o=void 0;try{for(var a,s=ic(nc(u=this._data).call(u));!(r=(a=s.next()).done);r=!0){var u,l=a.value,c=l[t];"number"==typeof c&&(null==n||n<c)&&(e=l,n=c)}}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return e||null}},{key:"min",value:function(t){var e=null,n=null,r=!0,i=!1,o=void 0;try{for(var a,s=ic(nc(u=this._data).call(u));!(r=(a=s.next()).done);r=!0){var u,l=a.value,c=l[t];"number"==typeof c&&(null==n||c<n)&&(e=l,n=c)}}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return e||null}},{key:"distinct",value:function(t){for(var e=this._data,n=zc(bc(e).call(e)),r=[],i=this._options.type&&this._options.type[t]||null,o=0,a=0,s=n.length;a<s;a++){for(var u=n[a],l=e.get(u)[t],c=!1,h=0;h<o;h++)if(r[h]==l){c=!0;break}c||void 0===l||(r[o]=l,o++)}if(i)for(var f=0,d=r.length;f<d;f++)r[f]=Vm(r[f],i);return r}},{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=cf(),t[this._idProp]=e;for(var n={},r=Mh(t),i=0,o=r.length;i<o;i++){var a=r[i],s=this._type[a];n[a]=Vm(t[a],s)}return this._data.set(e,n),++this.length,e}},{key:"_getItem",value:function(t,e){var n,r=this._data.get(t);if(!r)return null;var i=Mh(r);if(e){n={};for(var o=0,a=i.length;o<a;o++){var s=i[o],u=r[s];n[s]=Vm(u,e[s])}}else n=function(e){for(var t=1;t<arguments.length;t++){var n,r=null!=arguments[t]?arguments[t]:{};if(t%2)ju(n=lg(r,!0)).call(n,function(t){Ql(e,t,r[t])});else if(fs)ns(e,fs(r));else{var i;ju(i=lg(r)).call(i,function(t){za(e,t,Hu(r,t))})}}return e}({},r);return null==n[this._idProp]&&(n[this._idProp]=r.id),n}},{key:"_updateItem",value:function(t){var e=t[this._idProp];if(null==e)throw new Error("Cannot update item: item has no id (item: "+ql(t)+")");var n=this._data.get(e);if(!n)throw new Error("Cannot update item: no item with id "+e+" found");for(var r=Mh(t),i=0,o=r.length;i<o;i++){var a=r[i],s=this._type[a];n[a]=Vm(t[a],s)}return e}},{key:"stream",value:function(u){if(u){var l=this._data;return new ug(Ql({},Gl,Rl.mark(function t(){var e,n,r,i,o,a,s;return Rl.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=!(e=!0),r=void 0,t.prev=3,i=ic(u);case 5:if(e=(o=i.next()).done){t.next=14;break}if(a=o.value,null!=(s=l.get(a)))return t.next=11,[a,s];t.next=11;break;case 11:e=!0,t.next=5;break;case 14:t.next=20;break;case 16:t.prev=16,t.t0=t.catch(3),n=!0,r=t.t0;case 20:t.prev=20,t.prev=21,e||null==i.return||i.return();case 23:if(t.prev=23,n)throw r;t.next=26;break;case 26:return t.finish(23);case 27:return t.finish(20);case 28:case"end":return t.stop()}},t,null,[[3,16,20,28],[21,,23,27]])})))}var t;return new ug(Ql({},Gl,Cl(t=Tl(this._data)).call(t,this._data)))}}]),u}(),hg=function(){function i(t,e){var n,r;return Gh(this,i),(r=Zh(this,Jh(i).call(this))).length=0,r._ids=new ng,r._options=e||{},r._listener=Cl(n=r._onEvent).call(n,Bh(r)),r.setData(t),r}return nf(i,eg),Uh(i,[{key:"setData",value:function(t){if(this._data){this._data.off&&this._data.off("*",this._listener);var e=this._data.getIds({filter:Kc(this._options)}),n=this._data.get(e);this._ids.clear(),this.length=0,this._trigger("remove",{items:e,oldData:n})}if(null!=t){this._data=t;for(var r=this._data.getIds({filter:Kc(this._options)}),i=0,o=r.length;i<o;i++){var a=r[i];this._ids.add(a)}this.length=r.length,this._trigger("add",{items:r})}else this._data=new cg;this._data.on&&this._data.on("*",this._listener)}},{key:"refresh",value:function(){for(var t=this._data.getIds({filter:Kc(this._options)}),e=zc(this._ids),n={},r=[],i=[],o=[],a=0,s=t.length;a<s;a++){var u=t[a];n[u]=!0,this._ids.has(u)||(r.push(u),this._ids.add(u))}for(var l=0,c=e.length;l<c;l++){var h=e[l],f=this._data.get(h);null==f?console.error("If you see this, report it please."):n[h]||(i.push(h),o.push(f),this._ids.delete(h))}this.length+=r.length-i.length,r.length&&this._trigger("add",{items:r}),i.length&&this._trigger("remove",{items:i,oldData:o})}},{key:"get",value:function(t,e){if(null==this._data)return null;var n,r=null;n=Hm(t)||Vh(t)?(r=t,e):t;var i=ch({},this._options,n),o=Kc(this._options),a=n&&Kc(n);return o&&a&&(i.filter=function(t){return o(t)&&a(t)}),null==r?this._data.get(i):this._data.get(r,i)}},{key:"getIds",value:function(t){if(this._data.length){var e,n=Kc(this._options),r=null!=t?Kc(t):null;return e=r?n?function(t){return n(t)&&r(t)}:r:n,this._data.getIds({filter:e,order:t&&t.order})}return[]}},{key:"forEach",value:function(t,e){if(this._data){var n,r,i=Kc(this._options),o=e&&Kc(e);r=o?i?function(t){return i(t)&&o(t)}:o:i,ju(n=this._data).call(n,t,{filter:r,order:e&&e.order})}}},{key:"map",value:function(t,e){if(this._data){var n,r,i=Kc(this._options),o=e&&Kc(e);return r=o?i?function(t){return i(t)&&o(t)}:o:i,gh(n=this._data).call(n,t,{filter:r,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||Ql({},Gl,Cl(e=bc(this._ids)).call(e,this._ids)))}},{key:"_onEvent",value:function(t,e,n){if(e&&e.items&&this._data){var r=e.items,i=[],o=[],a=[],s=[],u=[],l=[];switch(t){case"add":for(var c=0,h=r.length;c<h;c++){var f=r[c];this.get(f)&&(this._ids.add(f),i.push(f))}break;case"update":for(var d=0,p=r.length;d<p;d++){var v=r[d];this.get(v)?this._ids.has(v)?(o.push(v),u.push(e.data[d]),s.push(e.oldData[d])):(this._ids.add(v),i.push(v)):this._ids.has(v)&&(this._ids.delete(v),a.push(v),l.push(e.oldData[d]))}break;case"remove":for(var y=0,m=r.length;y<m;y++){var g=r[y];this._ids.has(g)&&(this._ids.delete(g),a.push(g),l.push(e.oldData[y]))}}this.length+=i.length-a.length,i.length&&this._trigger("add",{items:i},n),o.length&&this._trigger("update",{items:o,oldData:s,data:u},n),a.length&&this._trigger("remove",{items:a,oldData:l},n)}}}]),i}(),fg={DataSet:cg,DataView:hg,Queue:tg},dg=Object.freeze({default:fg,DataSet:cg,DataStream:ug,DataView:hg,Queue:tg});function pg(t){return(pg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function vg(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var yg=mg;function mg(t){if(t)return function(t){for(var e in mg.prototype)t[e]=mg.prototype[e];return t}(t)}function gg(t,e,n){this.x=void 0!==t?t:0,this.y=void 0!==e?e:0,this.z=void 0!==n?n:0}mg.prototype.on=mg.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks[t]=this._callbacks[t]||[]).push(e),this},mg.prototype.once=function(t,e){var n=this;function r(){n.off(t,r),e.apply(this,arguments)}return this._callbacks=this._callbacks||{},r.fn=e,this.on(t,r),this},mg.prototype.off=mg.prototype.removeListener=mg.prototype.removeAllListeners=mg.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks[t];if(!r)return this;if(1==arguments.length)return delete this._callbacks[t],this;for(var i=0;i<r.length;i++)if((n=r[i])===e||n.fn===e){r.splice(i,1);break}return this},mg.prototype.emit=function(t){this._callbacks=this._callbacks||{};var e=[].slice.call(arguments,1),n=this._callbacks[t];if(n)for(var r=0,i=(n=n.slice(0)).length;r<i;++r)n[r].apply(this,e);return this},mg.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks[t]||[]},mg.prototype.hasListeners=function(t){return!!this.listeners(t).length},gg.subtract=function(t,e){var n=new gg;return n.x=t.x-e.x,n.y=t.y-e.y,n.z=t.z-e.z,n},gg.add=function(t,e){var n=new gg;return n.x=t.x+e.x,n.y=t.y+e.y,n.z=t.z+e.z,n},gg.avg=function(t,e){return new gg((t.x+e.x)/2,(t.y+e.y)/2,(t.z+e.z)/2)},gg.crossProduct=function(t,e){var n=new gg;return n.x=t.y*e.z-t.z*e.y,n.y=t.z*e.x-t.x*e.z,n.z=t.x*e.y-t.y*e.x,n},gg.prototype.length=function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)};var _g=gg;var wg=function(t,e){this.x=void 0!==t?t:0,this.y=void 0!==e?e:0},bg=Ho(zo);function Sg(t,e){if(void 0===t)throw new Error("No container element defined");if(this.container=t,this.visible=!e||null==e.visible||e.visible,this.visible){this.frame=document.createElement("DIV"),this.frame.style.width="100%",this.frame.style.position="relative",this.container.appendChild(this.frame),this.frame.prev=document.createElement("INPUT"),this.frame.prev.type="BUTTON",this.frame.prev.value="Prev",this.frame.appendChild(this.frame.prev),this.frame.play=document.createElement("INPUT"),this.frame.play.type="BUTTON",this.frame.play.value="Play",this.frame.appendChild(this.frame.play),this.frame.next=document.createElement("INPUT"),this.frame.next.type="BUTTON",this.frame.next.value="Next",this.frame.appendChild(this.frame.next),this.frame.bar=document.createElement("INPUT"),this.frame.bar.type="BUTTON",this.frame.bar.style.position="absolute",this.frame.bar.style.border="1px solid red",this.frame.bar.style.width="100px",this.frame.bar.style.height="6px",this.frame.bar.style.borderRadius="2px",this.frame.bar.style.MozBorderRadius="2px",this.frame.bar.style.border="1px solid #7F7F7F",this.frame.bar.style.backgroundColor="#E5E5E5",this.frame.appendChild(this.frame.bar),this.frame.slide=document.createElement("INPUT"),this.frame.slide.type="BUTTON",this.frame.slide.style.margin="0px",this.frame.slide.value=" ",this.frame.slide.style.position="relative",this.frame.slide.style.left="-100px",this.frame.appendChild(this.frame.slide);var n=this;this.frame.slide.onmousedown=function(t){n._onMouseDown(t)},this.frame.prev.onclick=function(t){n.prev(t)},this.frame.play.onclick=function(t){n.togglePlay(t)},this.frame.next.onclick=function(t){n.next(t)}}this.onChangeCallback=void 0,this.values=[],this.index=void 0,this.playTimeout=void 0,this.playInterval=1e3,this.playLoop=!0}Sg.prototype.prev=function(){var t=this.getIndex();0<t&&(t--,this.setIndex(t))},Sg.prototype.next=function(){var t=this.getIndex();t<this.values.length-1&&(t++,this.setIndex(t))},Sg.prototype.playNext=function(){var t=new Date,e=this.getIndex();e<this.values.length-1?(e++,this.setIndex(e)):this.playLoop&&(e=0,this.setIndex(e));var n=new Date-t,r=Math.max(this.playInterval-n,0),i=this;this.playTimeout=setTimeout(function(){i.playNext()},r)},Sg.prototype.togglePlay=function(){void 0===this.playTimeout?this.play():this.stop()},Sg.prototype.play=function(){this.playTimeout||(this.playNext(),this.frame&&(this.frame.play.value="Stop"))},Sg.prototype.stop=function(){clearInterval(this.playTimeout),this.playTimeout=void 0,this.frame&&(this.frame.play.value="Play")},Sg.prototype.setOnChangeCallback=function(t){this.onChangeCallback=t},Sg.prototype.setPlayInterval=function(t){this.playInterval=t},Sg.prototype.getPlayInterval=function(){return this.playInterval},Sg.prototype.setPlayLoop=function(t){this.playLoop=t},Sg.prototype.onChange=function(){void 0!==this.onChangeCallback&&this.onChangeCallback()},Sg.prototype.redraw=function(){if(this.frame){this.frame.bar.style.top=this.frame.clientHeight/2-this.frame.bar.offsetHeight/2+"px",this.frame.bar.style.width=this.frame.clientWidth-this.frame.prev.clientWidth-this.frame.play.clientWidth-this.frame.next.clientWidth-30+"px";var t=this.indexToLeft(this.index);this.frame.slide.style.left=t+"px"}},Sg.prototype.setValues=function(t){this.values=t,0<this.values.length?this.setIndex(0):this.index=void 0},Sg.prototype.setIndex=function(t){if(!(t<this.values.length))throw new Error("Index out of range");this.index=t,this.redraw(),this.onChange()},Sg.prototype.getIndex=function(){return this.index},Sg.prototype.get=function(){return this.values[this.index]},Sg.prototype._onMouseDown=function(t){if(t.which?1===t.which:1===t.button){this.startClientX=t.clientX,this.startSlideX=parseFloat(this.frame.slide.style.left),this.frame.style.cursor="move";var e=this;this.onmousemove=function(t){e._onMouseMove(t)},this.onmouseup=function(t){e._onMouseUp(t)},bg.addEventListener(document,"mousemove",this.onmousemove),bg.addEventListener(document,"mouseup",this.onmouseup),bg.preventDefault(t)}},Sg.prototype.leftToIndex=function(t){var e=parseFloat(this.frame.bar.style.width)-this.frame.slide.clientWidth-10,n=t-3,r=Math.round(n/e*(this.values.length-1));return r<0&&(r=0),r>this.values.length-1&&(r=this.values.length-1),r},Sg.prototype.indexToLeft=function(t){var e=parseFloat(this.frame.bar.style.width)-this.frame.slide.clientWidth-10;return 3+t/(this.values.length-1)*e},Sg.prototype._onMouseMove=function(t){var e=t.clientX-this.startClientX,n=this.startSlideX+e,r=this.leftToIndex(n);this.setIndex(r),bg.preventDefault()},Sg.prototype._onMouseUp=function(t){this.frame.style.cursor="auto",bg.removeEventListener(document,"mousemove",this.onmousemove),bg.removeEventListener(document,"mouseup",this.onmouseup),bg.preventDefault()};var xg=Sg;function Og(t,e,n,r){this._start=0,this._end=0,this._step=1,this.prettyStep=!0,this.precision=5,this._current=0,this.setRange(t,e,n,r)}Og.prototype.isNumeric=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},Og.prototype.setRange=function(t,e,n,r){if(!this.isNumeric(t))throw new Error("Parameter 'start' is not numeric; value: "+t);if(!this.isNumeric(e))throw new Error("Parameter 'end' is not numeric; value: "+t);if(!this.isNumeric(n))throw new Error("Parameter 'step' is not numeric; value: "+t);this._start=t||0,this._end=e||0,this.setStep(n,r)},Og.prototype.setStep=function(t,e){void 0===t||t<=0||(void 0!==e&&(this.prettyStep=e),!0===this.prettyStep?this._step=Og.calculatePrettyStep(t):this._step=t)},Og.calculatePrettyStep=function(t){function e(t){return Math.log(t)/Math.LN10}var n=Math.pow(10,Math.round(e(t))),r=2*Math.pow(10,Math.round(e(t/2))),i=5*Math.pow(10,Math.round(e(t/5))),o=n;return Math.abs(r-t)<=Math.abs(o-t)&&(o=r),Math.abs(i-t)<=Math.abs(o-t)&&(o=i),o<=0&&(o=1),o},Og.prototype.getCurrent=function(){return parseFloat(this._current.toPrecision(this.precision))},Og.prototype.getStep=function(){return this._step},Og.prototype.start=function(t){void 0===t&&(t=!1),this._current=this._start-this._start%this._step,t&&this.getCurrent()<this._start&&this.next()},Og.prototype.next=function(){this._current+=this._step},Og.prototype.end=function(){return this._current>this._end};var kg=Og;function Dg(){this.armLocation=new _g,this.armRotation={},this.armRotation.horizontal=0,this.armRotation.vertical=0,this.armLength=1.7,this.cameraOffset=new _g,this.offsetMultiplier=.6,this.cameraLocation=new _g,this.cameraRotation=new _g(.5*Math.PI,0,0),this.calculateCameraOrientation()}Dg.prototype.setOffset=function(t,e){var n=Math.abs,r=Math.sign,i=this.offsetMultiplier,o=this.armLength*i;n(t)>o&&(t=r(t)*o),n(e)>o&&(e=r(e)*o),this.cameraOffset.x=t,this.cameraOffset.y=e,this.calculateCameraOrientation()},Dg.prototype.getOffset=function(){return this.cameraOffset},Dg.prototype.setArmLocation=function(t,e,n){this.armLocation.x=t,this.armLocation.y=e,this.armLocation.z=n,this.calculateCameraOrientation()},Dg.prototype.setArmRotation=function(t,e){void 0!==t&&(this.armRotation.horizontal=t),void 0!==e&&(this.armRotation.vertical=e,this.armRotation.vertical<0&&(this.armRotation.vertical=0),this.armRotation.vertical>.5*Math.PI&&(this.armRotation.vertical=.5*Math.PI)),void 0===t&&void 0===e||this.calculateCameraOrientation()},Dg.prototype.getArmRotation=function(){var t={};return t.horizontal=this.armRotation.horizontal,t.vertical=this.armRotation.vertical,t},Dg.prototype.setArmLength=function(t){void 0!==t&&(this.armLength=t,this.armLength<.71&&(this.armLength=.71),5<this.armLength&&(this.armLength=5),this.setOffset(this.cameraOffset.x,this.cameraOffset.y),this.calculateCameraOrientation())},Dg.prototype.getArmLength=function(){return this.armLength},Dg.prototype.getCameraLocation=function(){return this.cameraLocation},Dg.prototype.getCameraRotation=function(){return this.cameraRotation},Dg.prototype.calculateCameraOrientation=function(){this.cameraLocation.x=this.armLocation.x-this.armLength*Math.sin(this.armRotation.horizontal)*Math.cos(this.armRotation.vertical),this.cameraLocation.y=this.armLocation.y-this.armLength*Math.cos(this.armRotation.horizontal)*Math.cos(this.armRotation.vertical),this.cameraLocation.z=this.armLocation.z+this.armLength*Math.sin(this.armRotation.vertical),this.cameraRotation.x=Math.PI/2-this.armRotation.vertical,this.cameraRotation.y=0,this.cameraRotation.z=-this.armRotation.horizontal;var t=this.cameraRotation.x,e=this.cameraRotation.z,n=this.cameraOffset.x,r=this.cameraOffset.y,i=Math.sin,o=Math.cos;this.cameraLocation.x=this.cameraLocation.x+n*o(e)+r*-i(e)*o(t),this.cameraLocation.y=this.cameraLocation.y+n*i(e)+r*o(e)*o(t),this.cameraLocation.z=this.cameraLocation.z+r*i(t)};var Mg=Dg,Tg={BAR:0,BARCOLOR:1,BARSIZE:2,DOT:3,DOTLINE:4,DOTCOLOR:5,DOTSIZE:6,GRID:7,LINE:8,SURFACE:9},Pg={dot:Tg.DOT,"dot-line":Tg.DOTLINE,"dot-color":Tg.DOTCOLOR,"dot-size":Tg.DOTSIZE,line:Tg.LINE,grid:Tg.GRID,surface:Tg.SURFACE,bar:Tg.BAR,"bar-color":Tg.BARCOLOR,"bar-size":Tg.BARSIZE},Eg=["width","height","filterLabel","legendLabel","xLabel","yLabel","zLabel","xValueLabel","yValueLabel","zValueLabel","showXAxis","showYAxis","showZAxis","showGrid","showPerspective","showShadow","keepAspectRatio","rotateAxisLabels","verticalRatio","dotSizeRatio","dotSizeMinFraction","dotSizeMaxFraction","showAnimationControls","animationInterval","animationPreload","animationAutoStart","axisColor","axisFontSize","axisFontType","gridColor","xCenter","yCenter","zoomable","tooltipDelay","ctrlToZoom"],Ag=["xBarWidth","yBarWidth","valueMin","valueMax","xMin","xMax","xStep","yMin","yMax","yStep","zMin","zMax","zStep"],Yg=void 0;function Lg(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}function Cg(t,e){return void 0===t||""===t?e:t+function(t){return void 0===t||""===t||"string"!=typeof t?t:t.charAt(0).toUpperCase()+t.slice(1)}(e)}function Rg(t,e,n,r){for(var i,o=0;o<n.length;++o)e[Cg(r,i=n[o])]=t[i]}function jg(t,e,n,r){for(var i,o=0;o<n.length;++o)void 0!==t[i=n[o]]&&(e[Cg(r,i)]=t[i])}function Ig(t,e){void 0!==t.backgroundColor&&function(t,e){var n="white",r="gray",i=1;if("string"==typeof t)n=t,r="none",i=0;else{if("object"!==pg(t))throw new Error("Unsupported type of backgroundColor");void 0!==t.fill&&(n=t.fill),void 0!==t.stroke&&(r=t.stroke),void 0!==t.strokeWidth&&(i=t.strokeWidth)}e.frame.style.backgroundColor=n,e.frame.style.borderColor=r,e.frame.style.borderWidth=i+"px",e.frame.style.borderStyle="solid"}(t.backgroundColor,e),function(t,e){if(void 0===t)return;void 0===e.dataColor&&(e.dataColor={});"string"==typeof t?(e.dataColor.fill=t,e.dataColor.stroke=t):(t.fill&&(e.dataColor.fill=t.fill),t.stroke&&(e.dataColor.stroke=t.stroke),void 0!==t.strokeWidth&&(e.dataColor.strokeWidth=t.strokeWidth))}(t.dataColor,e),function(t,e){if(void 0===t)return;var n;if("string"==typeof t){if(-1===(n=function(t){var e=Pg[t];return void 0!==e?e:-1}(t)))throw new Error("Style '"+t+"' is invalid")}else{if(!function(t){var e=!1;for(var n in Tg)if(Tg[n]===t){e=!0;break}return e}(t))throw new Error("Style '"+t+"' is invalid");n=t}e.style=n}(t.style,e),function(t,e){if(void 0===t){if(void 0===Yg.showLegend){var n=e.style===Tg.DOTCOLOR||e.style===Tg.DOTSIZE;e.showLegend=n}}else e.showLegend=t}(t.showLegend,e),Ng(t.cameraPosition,e),void 0!==t.tooltip&&(e.showTooltip=t.tooltip),null!=t.onclick&&(e.onclick_callback=t.onclick),void 0!==t.tooltipStyle&&bg.selectiveDeepExtend(["tooltipStyle"],e,t)}function Ng(t,e){var n=t;void 0!==n&&(void 0===e.camera&&(e.camera=new Mg),e.camera.setArmRotation(n.horizontal,n.vertical),e.camera.setArmLength(n.distance))}var Fg,Wg={STYLE:Tg,setDefaults:function(t,e){if(void 0===t||Lg(t))throw new Error("No DEFAULTS passed");if(void 0===e)throw new Error("No dst passed");Rg(Yg=t,e,Eg),Rg(t,e,Ag,"default"),Ig(t,e),e.margin=10,e.showGrayBottom=!1,e.showTooltip=!1,e.onclick_callback=null,e.eye=new _g(0,0,-1)},setOptions:function(t,e){if(void 0!==t){if(void 0===e)throw new Error("No dst passed");if(void 0===Yg||Lg(Yg))throw new Error("DEFAULTS not set for module Settings");jg(t,e,Eg),jg(t,e,Ag,"default"),Ig(t,e)}},setCameraPosition:Ng},zg=!1,Vg="background: #FFeeee; color: #dd0000",Gg=function(){function d(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d)}return function(t,e,n){e&&vg(t.prototype,e),n&&vg(t,n)}(d,null,[{key:"validate",value:function(t,e,n){zg=!1;var r=Fg=e;return void 0!==n&&(r=e[n]),d.parse(t,r,[]),zg}},{key:"parse",value:function(t,e,n){for(var r in t)t.hasOwnProperty(r)&&d.check(r,t,e,n)}},{key:"check",value:function(t,e,n,r){if(void 0!==n[t]||void 0!==n.__any__){var i=t,o=!0;void 0===n[t]&&void 0!==n.__any__&&(i="__any__",o="object"===d.getType(e[t]));var a=n[i];o&&void 0!==a.__type__&&(a=a.__type__),d.checkFields(t,e,n,i,a,r)}else d.getSuggestion(t,n,r)}},{key:"checkFields",value:function(e,t,n,r,i,o){function a(t){console.log("%c"+t+d.printLocation(o,e),Vg)}var s=d.getType(t[e]),u=i[s];void 0!==u?"array"===d.getType(u)&&-1===u.indexOf(t[e])?(a('Invalid option detected in "'+e+'". Allowed values are:'+d.print(u)+' not "'+t[e]+'". '),zg=!0):"object"===s&&"__any__"!==r&&(o=Wo.copyAndExtendArray(o,e),d.parse(t[e],n[r],o)):void 0===i.any&&(a('Invalid type received for "'+e+'". Expected: '+d.print(Object.keys(i))+". Received ["+s+'] "'+t[e]+'"'),zg=!0)}},{key:"getType",value:function(t){var e=pg(t);return"object"===e?null===t?"null":t instanceof Boolean?"boolean":t instanceof Number?"number":t instanceof String?"string":Array.isArray(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(t,e,n){var r,i=d.findInOptions(t,e,n,!1),o=d.findInOptions(t,Fg,[],!0);r=void 0!==i.indexMatch?" in "+d.printLocation(i.path,t,"")+'Perhaps it was incomplete? Did you mean: "'+i.indexMatch+'"?\n\n':o.distance<=4&&i.distance>o.distance?" in "+d.printLocation(i.path,t,"")+"Perhaps it was misplaced? Matching option found at: "+d.printLocation(o.path,o.closestMatch,""):i.distance<=8?'. Did you mean "'+i.closestMatch+'"?'+d.printLocation(i.path,t):". Did you mean one of these: "+d.print(Object.keys(e))+d.printLocation(n,t),console.log('%cUnknown option detected: "'+t+'"'+r,Vg),zg=!0}},{key:"findInOptions",value:function(t,e,n,r){var i=3<arguments.length&&void 0!==r&&r,o=1e9,a="",s=[],u=t.toLowerCase(),l=void 0;for(var c in e){var h=void 0;if(void 0!==e[c].__type__&&!0===i){var f=d.findInOptions(t,e[c],Wo.copyAndExtendArray(n,c));o>f.distance&&(a=f.closestMatch,s=f.path,o=f.distance,l=f.indexMatch)}else-1!==c.toLowerCase().indexOf(u)&&(l=c),(h=d.levenshteinDistance(t,c))<o&&(a=c,s=Wo.copyArray(n),o=h)}return{closestMatch:a,path:s,distance:o,indexMatch:l}}},{key:"printLocation",value:function(t,e,n){for(var r="\n\n"+(2<arguments.length&&void 0!==n?n:"Problem value found at: \n")+"options = {\n",i=0;i<t.length;i++){for(var o=0;o<i+1;o++)r+=" ";r+=t[i]+": {\n"}for(var a=0;a<t.length+1;a++)r+=" ";r+=e+"\n";for(var s=0;s<t.length+1;s++){for(var u=0;u<t.length-s;u++)r+=" ";r+="}\n"}return r+"\n\n"}},{key:"print",value:function(t){return JSON.stringify(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 n,r,i=[];for(n=0;n<=e.length;n++)i[n]=[n];for(r=0;r<=t.length;r++)i[0][r]=r;for(n=1;n<=e.length;n++)for(r=1;r<=t.length;r++)e.charAt(n-1)==t.charAt(r-1)?i[n][r]=i[n-1][r-1]:i[n][r]=Math.min(i[n-1][r-1]+1,Math.min(i[n][r-1]+1,i[n-1][r]+1));return i[e.length][t.length]}}]),d}(),Hg=Object.freeze({Validator:Gg,printStyle:Vg}),Ug="string",Bg="boolean",Zg="number",Xg="object",qg={fill:{string:Ug},stroke:{string:Ug},strokeWidth:{number:Zg},__type__:{string:Ug,object:Xg,undefined:"undefined"}},$g={animationAutoStart:{boolean:Bg,undefined:"undefined"},animationInterval:{number:Zg},animationPreload:{boolean:Bg},axisColor:{string:Ug},axisFontSize:{number:Zg},axisFontType:{string:Ug},backgroundColor:qg,xBarWidth:{number:Zg,undefined:"undefined"},yBarWidth:{number:Zg,undefined:"undefined"},cameraPosition:{distance:{number:Zg},horizontal:{number:Zg},vertical:{number:Zg},__type__:{object:Xg}},zoomable:{boolean:Bg},ctrlToZoom:{boolean:Bg},xCenter:{string:Ug},yCenter:{string:Ug},dataColor:qg,dotSizeMinFraction:{number:Zg},dotSizeMaxFraction:{number:Zg},dotSizeRatio:{number:Zg},filterLabel:{string:Ug},gridColor:{string:Ug},onclick:{function:"function"},keepAspectRatio:{boolean:Bg},xLabel:{string:Ug},yLabel:{string:Ug},zLabel:{string:Ug},legendLabel:{string:Ug},xMin:{number:Zg,undefined:"undefined"},yMin:{number:Zg,undefined:"undefined"},zMin:{number:Zg,undefined:"undefined"},xMax:{number:Zg,undefined:"undefined"},yMax:{number:Zg,undefined:"undefined"},zMax:{number:Zg,undefined:"undefined"},showAnimationControls:{boolean:Bg,undefined:"undefined"},showGrid:{boolean:Bg},showLegend:{boolean:Bg,undefined:"undefined"},showPerspective:{boolean:Bg},showShadow:{boolean:Bg},showXAxis:{boolean:Bg},showYAxis:{boolean:Bg},showZAxis:{boolean:Bg},rotateAxisLabels:{boolean:Bg},xStep:{number:Zg,undefined:"undefined"},yStep:{number:Zg,undefined:"undefined"},zStep:{number:Zg,undefined:"undefined"},style:{number:Zg,string:["bar","bar-color","bar-size","dot","dot-line","dot-color","dot-size","line","grid","surface"]},tooltip:{boolean:Bg,function:"function"},tooltipDelay:{number:Zg},tooltipStyle:{content:{color:{string:Ug},background:{string:Ug},border:{string:Ug},borderRadius:{string:Ug},boxShadow:{string:Ug},padding:{string:Ug},__type__:{object:Xg}},line:{borderLeft:{string:Ug},height:{string:Ug},width:{string:Ug},pointerEvents:{string:Ug},__type__:{object:Xg}},dot:{border:{string:Ug},borderRadius:{string:Ug},height:{string:Ug},width:{string:Ug},pointerEvents:{string:Ug},__type__:{object:Xg}},__type__:{object:Xg}},xValueLabel:{function:"function"},yValueLabel:{function:"function"},zValueLabel:{function:"function"},valueMax:{number:Zg,undefined:"undefined"},valueMin:{number:Zg,undefined:"undefined"},verticalRatio:{number:Zg},height:{string:Ug},width:{string:Ug},__type__:{object:Xg}},Jg=Object.freeze({allOptions:$g});function Qg(){this.min=void 0,this.max=void 0}Qg.prototype.adjust=function(t){void 0!==t&&((void 0===this.min||this.min>t)&&(this.min=t),(void 0===this.max||this.max<t)&&(this.max=t))},Qg.prototype.combine=function(t){this.add(t.min),this.add(t.max)},Qg.prototype.expand=function(t){if(void 0!==t){var e=this.min-t,n=this.max+t;if(n<e)throw new Error("Passed expansion value makes range invalid");this.min=e,this.max=n}},Qg.prototype.range=function(){return this.max-this.min},Qg.prototype.center=function(){return(this.min+this.max)/2};var Kg=Qg,t_=Ho(dg),e_=t_.DataView;function n_(t,e,n){this.dataGroup=t,this.column=e,this.graph=n,this.index=void 0,this.value=void 0,this.values=t.getDistinctValues(this.column),0<this.values.length&&this.selectValue(0),this.dataPoints=[],this.loaded=!1,this.onLoadCallback=void 0,n.animationPreload?(this.loaded=!1,this.loadInBackground()):this.loaded=!0}n_.prototype.isLoaded=function(){return this.loaded},n_.prototype.getLoadedProgress=function(){for(var t=this.values.length,e=0;this.dataPoints[e];)e++;return Math.round(e/t*100)},n_.prototype.getLabel=function(){return this.graph.filterLabel},n_.prototype.getColumn=function(){return this.column},n_.prototype.getSelectedValue=function(){if(void 0!==this.index)return this.values[this.index]},n_.prototype.getValues=function(){return this.values},n_.prototype.getValue=function(t){if(t>=this.values.length)throw new Error("Index out of range");return this.values[t]},n_.prototype._getDataPoints=function(t){if(void 0===t&&(t=this.index),void 0===t)return[];var e;if(this.dataPoints[t])e=this.dataPoints[t];else{var n={};n.column=this.column,n.value=this.values[t];var r=new e_(this.dataGroup.getDataSet(),{filter:function(t){return t[n.column]==n.value}}).get();e=this.dataGroup._getDataPoints(r),this.dataPoints[t]=e}return e},n_.prototype.setOnLoadCallback=function(t){this.onLoadCallback=t},n_.prototype.selectValue=function(t){if(t>=this.values.length)throw new Error("Index out of range");this.index=t,this.value=this.values[t]},n_.prototype.loadInBackground=function(t){void 0===t&&(t=0);var e=this.graph.frame;if(t<this.values.length){void 0===e.progress&&(e.progress=document.createElement("DIV"),e.progress.style.position="absolute",e.progress.style.color="gray",e.appendChild(e.progress));var n=this.getLoadedProgress();e.progress.innerHTML="Loading animation... "+n+"%",e.progress.style.bottom="60px",e.progress.style.left="10px";var r=this;setTimeout(function(){r.loadInBackground(t+1)},10),this.loaded=!1}else this.loaded=!0,void 0!==e.progress&&(e.removeChild(e.progress),e.progress=void 0),this.onLoadCallback&&this.onLoadCallback()};var r_=n_,i_=t_.DataSet,o_=t_.DataView;function a_(){this.dataTable=null}a_.prototype.initializeData=function(t,e,n){if(void 0!==e){var r;if(Array.isArray(e)&&(e=new i_(e)),!(e instanceof i_||e instanceof o_))throw new Error("Array, DataSet, or DataView expected");if(0!=(r=e.get()).length){this.style=n,this.dataSet&&this.dataSet.off("*",this._onChange),this.dataSet=e,this.dataTable=r;var i=this;this._onChange=function(){t.setData(i.dataSet)},this.dataSet.on("*",this._onChange),this.colX="x",this.colY="y",this.colZ="z";var o=t.hasBars(n);if(o&&(void 0!==t.defaultXBarWidth?this.xBarWidth=t.defaultXBarWidth:this.xBarWidth=this.getSmallestDifference(r,this.colX)||1,void 0!==t.defaultYBarWidth?this.yBarWidth=t.defaultYBarWidth:this.yBarWidth=this.getSmallestDifference(r,this.colY)||1),this._initializeRange(r,this.colX,t,o),this._initializeRange(r,this.colY,t,o),this._initializeRange(r,this.colZ,t,!1),r[0].hasOwnProperty("style")){this.colValue="style";var a=this.getColumnRange(r,this.colValue);this._setRangeDefaults(a,t.defaultValueMin,t.defaultValueMax),this.valueRange=a}return this.getDataTable()[0].hasOwnProperty("filter")&&void 0===this.dataFilter&&(this.dataFilter=new r_(this,"filter",t),this.dataFilter.setOnLoadCallback(function(){t.redraw()})),this.dataFilter?this.dataFilter._getDataPoints():this._getDataPoints(this.getDataTable())}}},a_.prototype._collectRangeSettings=function(t,e){if(-1==["x","y","z"].indexOf(t))throw new Error("Column '"+t+"' invalid");var n=t.toUpperCase();return{barWidth:this[t+"BarWidth"],min:e["default"+n+"Min"],max:e["default"+n+"Max"],step:e["default"+n+"Step"],range_label:t+"Range",step_label:t+"Step"}},a_.prototype._initializeRange=function(t,e,n,r){var i=this._collectRangeSettings(e,n),o=this.getColumnRange(t,e);r&&"z"!=e&&o.expand(i.barWidth/2),this._setRangeDefaults(o,i.min,i.max),this[i.range_label]=o,this[i.step_label]=void 0!==i.step?i.step:o.range()/5},a_.prototype.getDistinctValues=function(t,e){void 0===e&&(e=this.dataTable);for(var n=[],r=0;r<e.length;r++){var i=e[r][t]||0;-1===n.indexOf(i)&&n.push(i)}return n.sort(function(t,e){return t-e})},a_.prototype.getSmallestDifference=function(t,e){for(var n=this.getDistinctValues(t,e),r=null,i=1;i<n.length;i++){var o=n[i]-n[i-1];(null==r||o<r)&&(r=o)}return r},a_.prototype.getColumnRange=function(t,e){for(var n=new Kg,r=0;r<t.length;r++){var i=t[r][e];n.adjust(i)}return n},a_.prototype.getNumberOfRows=function(){return this.dataTable.length},a_.prototype._setRangeDefaults=function(t,e,n){void 0!==e&&(t.min=e),void 0!==n&&(t.max=n),t.max<=t.min&&(t.max=t.min+1)},a_.prototype.getDataTable=function(){return this.dataTable},a_.prototype.getDataSet=function(){return this.dataSet},a_.prototype.getDataPoints=function(t){for(var e=[],n=0;n<t.length;n++){var r=new _g;r.x=t[n][this.colX]||0,r.y=t[n][this.colY]||0,r.z=t[n][this.colZ]||0,r.data=t[n],void 0!==this.colValue&&(r.value=t[n][this.colValue]||0);var i={};i.point=r,i.bottom=new _g(r.x,r.y,this.zRange.min),i.trans=void 0,i.screen=void 0,e.push(i)}return e},a_.prototype.initDataAsMatrix=function(t){var e,n,r,i,o=this.getDistinctValues(this.colX,t),a=this.getDistinctValues(this.colY,t),s=this.getDataPoints(t),u=[];for(r=0;r<s.length;r++){i=s[r];var l=o.indexOf(i.point.x),c=a.indexOf(i.point.y);void 0===u[l]&&(u[l]=[]),u[l][c]=i}for(e=0;e<u.length;e++)for(n=0;n<u[e].length;n++)u[e][n]&&(u[e][n].pointRight=e<u.length-1?u[e+1][n]:void 0,u[e][n].pointTop=n<u[e].length-1?u[e][n+1]:void 0,u[e][n].pointCross=e<u.length-1&&n<u[e].length-1?u[e+1][n+1]:void 0);return s},a_.prototype.getInfo=function(){var t=this.dataFilter;if(t)return t.getLabel()+": "+t.getSelectedValue()},a_.prototype.reload=function(){this.dataTable&&this.setData(this.dataTable)},a_.prototype._getDataPoints=function(t){var e=[];if(this.style===Wg.STYLE.GRID||this.style===Wg.STYLE.SURFACE)e=this.initDataAsMatrix(t);else if(this._checkValueField(t),e=this.getDataPoints(t),this.style===Wg.STYLE.LINE)for(var n=0;n<e.length;n++)0<n&&(e[n-1].pointNext=e[n]);return e},a_.prototype._checkValueField=function(t){if(this.style===Wg.STYLE.BARCOLOR||this.style===Wg.STYLE.BARSIZE||this.style===Wg.STYLE.DOTCOLOR||this.style===Wg.STYLE.DOTSIZE){if(void 0===this.colValue)throw new Error("Expected data to have field 'style' for graph style '"+this.style+"'");if(void 0===t[0][this.colValue])throw new Error("Expected data to have field '"+this.colValue+"' for graph style '"+this.style+"'")}};var s_=a_,u_=Ho(Hg),l_=Ho(Jg),c_=u_.Validator,h_=u_.printStyle,f_=l_.allOptions;p_.STYLE=Wg.STYLE;var d_=void 0;function p_(t,e,n){if(!(this instanceof p_))throw new SyntaxError("Constructor must be called with the new operator");this.containerElement=t,this.dataGroup=new s_,this.dataPoints=null,this.create(),Wg.setDefaults(p_.DEFAULTS,this),this.colX=void 0,this.colY=void 0,this.colZ=void 0,this.colValue=void 0,this.setOptions(n),this.setData(e)}function v_(t){return"clientX"in t?t.clientX:t.targetTouches[0]&&t.targetTouches[0].clientX||0}function y_(t){return"clientY"in t?t.clientY:t.targetTouches[0]&&t.targetTouches[0].clientY||0}p_.DEFAULTS={width:"400px",height:"400px",filterLabel:"time",legendLabel:"value",xLabel:"x",yLabel:"y",zLabel:"z",xValueLabel:function(t){return t},yValueLabel:function(t){return t},zValueLabel:function(t){return t},showXAxis:!0,showYAxis:!0,showZAxis:!0,showGrid:!0,showPerspective:!0,showShadow:!1,keepAspectRatio:!0,rotateAxisLabels:!0,verticalRatio:.5,dotSizeRatio:.02,dotSizeMinFraction:.5,dotSizeMaxFraction:2.5,showAnimationControls:d_,animationInterval:1e3,animationPreload:!1,animationAutoStart:d_,axisFontSize:14,axisFontType:"arial",axisColor:"#4D4D4D",gridColor:"#D3D3D3",xCenter:"55%",yCenter:"50%",style:p_.STYLE.DOT,tooltip:!1,tooltipDelay:300,tooltipStyle:{content:{padding:"10px",border:"1px solid #4d4d4d",color:"#1a1a1a",background:"rgba(255,255,255,0.7)",borderRadius:"2px",boxShadow:"5px 5px 10px rgba(128,128,128,0.5)"},line:{height:"40px",width:"0",borderLeft:"1px solid #4d4d4d",pointerEvents:"none"},dot:{height:"0",width:"0",border:"5px solid #4d4d4d",borderRadius:"5px",pointerEvents:"none"}},dataColor:{fill:"#7DC1FF",stroke:"#3267D2",strokeWidth:1},cameraPosition:{horizontal:1,vertical:.5,distance:1.7},zoomable:!0,ctrlToZoom:!1,showLegend:d_,backgroundColor:d_,xBarWidth:d_,yBarWidth:d_,valueMin:d_,valueMax:d_,xMin:d_,xMax:d_,xStep:d_,yMin:d_,yMax:d_,yStep:d_,zMin:d_,zMax:d_,zStep:d_},yg(p_.prototype),p_.prototype._setScale=function(){this.scale=new _g(1/this.xRange.range(),1/this.yRange.range(),1/this.zRange.range()),this.keepAspectRatio&&(this.scale.x<this.scale.y?this.scale.y=this.scale.x:this.scale.x=this.scale.y),this.scale.z*=this.verticalRatio,void 0!==this.valueRange&&(this.scale.value=1/this.valueRange.range());var t=this.xRange.center()*this.scale.x,e=this.yRange.center()*this.scale.y,n=this.zRange.center()*this.scale.z;this.camera.setArmLocation(t,e,n)},p_.prototype._convert3Dto2D=function(t){var e=this._convertPointToTranslation(t);return this._convertTranslationToScreen(e)},p_.prototype._convertPointToTranslation=function(t){var e=this.camera.getCameraLocation(),n=this.camera.getCameraRotation(),r=t.x*this.scale.x,i=t.y*this.scale.y,o=t.z*this.scale.z,a=e.x,s=e.y,u=e.z,l=Math.sin(n.x),c=Math.cos(n.x),h=Math.sin(n.y),f=Math.cos(n.y),d=Math.sin(n.z),p=Math.cos(n.z);return new _g(f*(d*(i-s)+p*(r-a))-h*(o-u),l*(f*(o-u)+h*(d*(i-s)+p*(r-a)))+c*(p*(i-s)-d*(r-a)),c*(f*(o-u)+h*(d*(i-s)+p*(r-a)))-l*(p*(i-s)-d*(r-a)))},p_.prototype._convertTranslationToScreen=function(t){var e,n,r=this.eye.x,i=this.eye.y,o=this.eye.z,a=t.x,s=t.y,u=t.z;return n=this.showPerspective?(e=o/u*(a-r),o/u*(s-i)):(e=a*(-o/this.camera.getArmLength()),s*(-o/this.camera.getArmLength())),new wg(this.currentXCenter+e*this.frame.canvas.clientWidth,this.currentYCenter-n*this.frame.canvas.clientWidth)},p_.prototype._calcTranslations=function(t){for(var e=0;e<t.length;e++){var n=t[e];n.trans=this._convertPointToTranslation(n.point),n.screen=this._convertTranslationToScreen(n.trans);var r=this._convertPointToTranslation(n.bottom);n.dist=this.showPerspective?r.length():-r.z}t.sort(function(t,e){return e.dist-t.dist})},p_.prototype._initializeRanges=function(){var t=this.dataGroup;this.xRange=t.xRange,this.yRange=t.yRange,this.zRange=t.zRange,this.valueRange=t.valueRange,this.xStep=t.xStep,this.yStep=t.yStep,this.zStep=t.zStep,this.xBarWidth=t.xBarWidth,this.yBarWidth=t.yBarWidth,this.colX=t.colX,this.colY=t.colY,this.colZ=t.colZ,this.colValue=t.colValue,this._setScale()},p_.prototype.getDataPoints=function(t){for(var e=[],n=0;n<t.length;n++){var r=new _g;r.x=t[n][this.colX]||0,r.y=t[n][this.colY]||0,r.z=t[n][this.colZ]||0,r.data=t[n],void 0!==this.colValue&&(r.value=t[n][this.colValue]||0);var i={};i.point=r,i.bottom=new _g(r.x,r.y,this.zRange.min),i.trans=void 0,i.screen=void 0,e.push(i)}return e},p_.prototype._getDataPoints=function(t){var e,n,r,i,o=[];if(this.style===p_.STYLE.GRID||this.style===p_.STYLE.SURFACE){var a=this.dataGroup.getDistinctValues(this.colX,t),s=this.dataGroup.getDistinctValues(this.colY,t);o=this.getDataPoints(t);var u=[];for(r=0;r<o.length;r++){i=o[r];var l=a.indexOf(i.point.x),c=s.indexOf(i.point.y);void 0===u[l]&&(u[l]=[]),u[l][c]=i}for(e=0;e<u.length;e++)for(n=0;n<u[e].length;n++)u[e][n]&&(u[e][n].pointRight=e<u.length-1?u[e+1][n]:void 0,u[e][n].pointTop=n<u[e].length-1?u[e][n+1]:void 0,u[e][n].pointCross=e<u.length-1&&n<u[e].length-1?u[e+1][n+1]:void 0)}else if(this._checkValueField(t),o=this.getDataPoints(t),this.style===p_.STYLE.LINE)for(r=0;r<o.length;r++)0<r&&(o[r-1].pointNext=o[r]);return o},p_.prototype.create=function(){for(;this.containerElement.hasChildNodes();)this.containerElement.removeChild(this.containerElement.firstChild);this.frame=document.createElement("div"),this.frame.style.position="relative",this.frame.style.overflow="hidden",this.frame.canvas=document.createElement("canvas"),this.frame.canvas.style.position="relative",this.frame.appendChild(this.frame.canvas);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.frame.filter=document.createElement("div"),this.frame.filter.style.position="absolute",this.frame.filter.style.bottom="0px",this.frame.filter.style.left="0px",this.frame.filter.style.width="100%",this.frame.appendChild(this.frame.filter);var e=this;bg.addEventListener(this.frame.canvas,"mousedown",function(t){e._onMouseDown(t)}),bg.addEventListener(this.frame.canvas,"touchstart",function(t){e._onTouchStart(t)}),bg.addEventListener(this.frame.canvas,"mousewheel",function(t){e._onWheel(t)}),bg.addEventListener(this.frame.canvas,"mousemove",function(t){e._onTooltip(t)}),bg.addEventListener(this.frame.canvas,"click",function(t){e._onClick(t)}),this.containerElement.appendChild(this.frame)},p_.prototype._setSize=function(t,e){this.frame.style.width=t,this.frame.style.height=e,this._resizeCanvas()},p_.prototype._resizeCanvas=function(){this.frame.canvas.style.width="100%",this.frame.canvas.style.height="100%",this.frame.canvas.width=this.frame.canvas.clientWidth,this.frame.canvas.height=this.frame.canvas.clientHeight,this.frame.filter.style.width=this.frame.canvas.clientWidth-20+"px"},p_.prototype.animationStart=function(){if(this.animationAutoStart&&this.dataGroup.dataFilter){if(!this.frame.filter||!this.frame.filter.slider)throw new Error("No animation available");this.frame.filter.slider.play()}},p_.prototype.animationStop=function(){this.frame.filter&&this.frame.filter.slider&&this.frame.filter.slider.stop()},p_.prototype._resizeCenter=function(){"%"===this.xCenter.charAt(this.xCenter.length-1)?this.currentXCenter=parseFloat(this.xCenter)/100*this.frame.canvas.clientWidth:this.currentXCenter=parseFloat(this.xCenter),"%"===this.yCenter.charAt(this.yCenter.length-1)?this.currentYCenter=parseFloat(this.yCenter)/100*(this.frame.canvas.clientHeight-this.frame.filter.clientHeight):this.currentYCenter=parseFloat(this.yCenter)},p_.prototype.getCameraPosition=function(){var t=this.camera.getArmRotation();return t.distance=this.camera.getArmLength(),t},p_.prototype._readData=function(t){this.dataPoints=this.dataGroup.initializeData(this,t,this.style),this._initializeRanges(),this._redrawFilter()},p_.prototype.setData=function(t){null!=t&&(this._readData(t),this.redraw(),this.animationStart())},p_.prototype.setOptions=function(t){void 0!==t&&(!0===c_.validate(t,f_)&&console.log("%cErrors have been found in the supplied options object.",h_),this.animationStop(),Wg.setOptions(t,this),this.setPointDrawingMethod(),this._setSize(this.width,this.height),this.setAxisLabelMethod(),this.setData(this.dataGroup.getDataTable()),this.animationStart())},p_.prototype.setPointDrawingMethod=function(){var t=void 0;switch(this.style){case p_.STYLE.BAR:t=p_.prototype._redrawBarGraphPoint;break;case p_.STYLE.BARCOLOR:t=p_.prototype._redrawBarColorGraphPoint;break;case p_.STYLE.BARSIZE:t=p_.prototype._redrawBarSizeGraphPoint;break;case p_.STYLE.DOT:t=p_.prototype._redrawDotGraphPoint;break;case p_.STYLE.DOTLINE:t=p_.prototype._redrawDotLineGraphPoint;break;case p_.STYLE.DOTCOLOR:t=p_.prototype._redrawDotColorGraphPoint;break;case p_.STYLE.DOTSIZE:t=p_.prototype._redrawDotSizeGraphPoint;break;case p_.STYLE.SURFACE:t=p_.prototype._redrawSurfaceGraphPoint;break;case p_.STYLE.GRID:t=p_.prototype._redrawGridGraphPoint;break;case p_.STYLE.LINE:t=p_.prototype._redrawLineGraphPoint;break;default:throw new Error("Can not determine point drawing method for graph style '"+this.style+"'")}this._pointDrawingMethod=t},p_.prototype.setAxisLabelMethod=function(){var t,e,n;t=e=n=void 0,n=1==this.rotateAxisLabels?(t=p_.prototype.drawAxisLabelXRotate,e=p_.prototype.drawAxisLabelYRotate,p_.prototype.drawAxisLabelZRotate):(t=p_.prototype.drawAxisLabelX,e=p_.prototype.drawAxisLabelY,p_.prototype.drawAxisLabelZ),this._drawAxisLabelX=t,this._drawAxisLabelY=e,this._drawAxisLabelZ=n},p_.prototype.redraw=function(){if(void 0===this.dataPoints)throw new Error("Graph data not initialized");this._resizeCanvas(),this._resizeCenter(),this._redrawSlider(),this._redrawClear(),this._redrawAxis(),this._redrawDataGraph(),this._redrawInfo(),this._redrawLegend()},p_.prototype._getContext=function(){var t=this.frame.canvas.getContext("2d");return t.lineJoin="round",t.lineCap="round",t},p_.prototype._redrawClear=function(){var t=this.frame.canvas;t.getContext("2d").clearRect(0,0,t.width,t.height)},p_.prototype._dotSize=function(){return this.frame.clientWidth*this.dotSizeRatio},p_.prototype._getLegendWidth=function(){var t;this.style===p_.STYLE.DOTSIZE?t=this._dotSize()*this.dotSizeMaxFraction:t=this.style===p_.STYLE.BARSIZE?this.xBarWidth:20;return t},p_.prototype._redrawLegend=function(){if(!0===this.showLegend&&this.style!==p_.STYLE.LINE&&this.style!==p_.STYLE.BARSIZE){var t=this.style===p_.STYLE.BARSIZE||this.style===p_.STYLE.DOTSIZE,e=this.style===p_.STYLE.DOTSIZE||this.style===p_.STYLE.DOTCOLOR||this.style===p_.STYLE.BARCOLOR,n=Math.max(.25*this.frame.clientHeight,100),r=this.margin,i=this._getLegendWidth(),o=this.frame.clientWidth-this.margin,a=o-i,s=r+n,u=this._getContext();if(u.lineWidth=1,!(u.font="14px arial")==t){var l,c=n;for(l=0;l<c;l++){var h=240*((l-0)/(c-0)),f=this._hsv2rgb(h,1,1);u.strokeStyle=f,u.beginPath(),u.moveTo(a,r+l),u.lineTo(o,r+l),u.stroke()}u.strokeStyle=this.axisColor,u.strokeRect(a,r,i,n)}else{var d;this.style===p_.STYLE.DOTSIZE?d=i*(this.dotSizeMinFraction/this.dotSizeMaxFraction):(this.style,p_.STYLE.BARSIZE),u.strokeStyle=this.axisColor,u.fillStyle=this.dataColor.fill,u.beginPath(),u.moveTo(a,r),u.lineTo(o,r),u.lineTo(a+d,s),u.lineTo(a,s),u.closePath(),u.fill(),u.stroke()}var p,v,y=e?this.valueRange.min:this.zRange.min,m=e?this.valueRange.max:this.zRange.max,g=new kg(y,m,(m-y)/5,!0);for(g.start(!0);!g.end();)l=s-(g.getCurrent()-y)/(m-y)*n,p=new wg(a-5,l),v=new wg(a,l),this._line(u,p,v),u.textAlign="right",u.textBaseline="middle",u.fillStyle=this.axisColor,u.fillText(g.getCurrent(),a-10,l),g.next();u.textAlign="right",u.textBaseline="top";var _=this.legendLabel;u.fillText(_,o,s+this.margin)}},p_.prototype._redrawFilter=function(){var t=this.dataGroup.dataFilter,e=this.frame.filter;if(e.innerHTML="",t){var n={visible:this.showAnimationControls},r=new xg(e,n);e.slider=r,e.style.padding="10px",r.setValues(t.values),r.setPlayInterval(this.animationInterval);var i=this;r.setOnChangeCallback(function(){var t=i.dataGroup.dataFilter,e=r.getIndex();t.selectValue(e),i.dataPoints=t._getDataPoints(),i.redraw()})}else e.slider=void 0},p_.prototype._redrawSlider=function(){void 0!==this.frame.filter.slider&&this.frame.filter.slider.redraw()},p_.prototype._redrawInfo=function(){var t=this.dataGroup.getInfo();if(void 0!==t){var e=this._getContext();e.font="14px arial",e.lineStyle="gray",e.fillStyle="gray",e.textAlign="left",e.textBaseline="top";var n=this.margin,r=this.margin;e.fillText(t,n,r)}},p_.prototype._line=function(t,e,n,r){void 0!==r&&(t.strokeStyle=r),t.beginPath(),t.moveTo(e.x,e.y),t.lineTo(n.x,n.y),t.stroke()},p_.prototype.drawAxisLabelX=function(t,e,n,r,i){void 0===i&&(i=0);var o=this._convert3Dto2D(e);0<Math.cos(2*r)?(t.textAlign="center",t.textBaseline="top",o.y+=i):(Math.sin(2*r)<0?t.textAlign="right":t.textAlign="left",t.textBaseline="middle"),t.fillStyle=this.axisColor,t.fillText(n,o.x,o.y)},p_.prototype.drawAxisLabelY=function(t,e,n,r,i){void 0===i&&(i=0);var o=this._convert3Dto2D(e);Math.cos(2*r)<0?(t.textAlign="center",t.textBaseline="top",o.y+=i):(0<Math.sin(2*r)?t.textAlign="right":t.textAlign="left",t.textBaseline="middle"),t.fillStyle=this.axisColor,t.fillText(n,o.x,o.y)},p_.prototype.drawAxisLabelZ=function(t,e,n,r){void 0===r&&(r=0);var i=this._convert3Dto2D(e);t.textAlign="right",t.textBaseline="middle",t.fillStyle=this.axisColor,t.fillText(n,i.x-r,i.y)},p_.prototype.drawAxisLabelXRotate=function(t,e,n,r,i){void 0===i&&(i=0);var o=this._convert3Dto2D(e);0<Math.cos(2*r)?(t.save(),t.get,t.translate(o.x,o.y),t.rotate(Math.PI/2),t.fillText(n,o.x/100,o.y/100),t.textAlign="center",t.textBaseline="top",o.y+=i,t.restore()):(Math.sin(2*r)<0?t.textAlign="right":t.textAlign="left",t.textBaseline="middle",t.fillStyle=this.axisColor,t.fillText(n,o.x,o.y))},p_.prototype.drawAxisLabelYRotate=function(t,e,n,r,i){void 0===i&&(i=0);var o=this._convert3Dto2D(e);Math.cos(2*r)<0&&Math.sin(2*r)<0?(t.save(),t.get,t.translate(o.x,o.y),t.rotate(Math.PI/2*-1),t.fillText(n,o.x/100,o.y/100),t.textAlign="center",t.textBaseline="top",o.y+=i,t.restore()):Math.cos(2*r)<0?(t.save(),t.get,t.translate(o.x,o.y),t.rotate(Math.PI/2),t.fillText(n,o.x/100,o.y/100),t.textAlign="center",t.textBaseline="top",o.y+=i,t.restore()):(0<Math.sin(2*r)?t.textAlign="right":t.textAlign="left",t.textBaseline="middle",t.fillStyle=this.axisColor,t.fillText(n,o.x,o.y))},p_.prototype.drawAxisLabelZRotate=function(t,e,n,r){void 0===r&&(r=0);var i=this._convert3Dto2D(e);t.textAlign="right",t.textBaseline="middle",t.fillStyle=this.axisColor,t.fillText(n,i.x-r,i.y)},p_.prototype._line3d=function(t,e,n,r){var i=this._convert3Dto2D(e),o=this._convert3Dto2D(n);this._line(t,i,o,r)},p_.prototype._redrawAxis=function(){var t,e,n,r,i,o,a,s,u,l,c=this._getContext();c.font=this.axisFontSize/this.camera.getArmLength()+"px "+this.axisFontType;var h,f,d,p=.025/this.scale.x,v=.025/this.scale.y,y=5/this.camera.getArmLength(),m=this.camera.getArmRotation().horizontal,g=new wg(Math.cos(m),Math.sin(m)),_=this.xRange,w=this.yRange,b=this.zRange;for(c.lineWidth=1,r=void 0===this.defaultXStep,(n=new kg(_.min,_.max,this.xStep,r)).start(!0);!n.end();){var S=n.getCurrent();if(this.showGrid?(t=new _g(S,w.min,b.min),e=new _g(S,w.max,b.min),this._line3d(c,t,e,this.gridColor)):this.showXAxis&&(t=new _g(S,w.min,b.min),e=new _g(S,w.min+p,b.min),this._line3d(c,t,e,this.axisColor),t=new _g(S,w.max,b.min),e=new _g(S,w.max-p,b.min),this._line3d(c,t,e,this.axisColor)),this.showXAxis){a=0<g.x?w.min:w.max,h=new _g(S,a,b.min);var x=" "+this.xValueLabel(S)+" ";this._drawAxisLabelX.call(this,c,h,x,m,y)}n.next()}for(c.lineWidth=1,r=void 0===this.defaultYStep,(n=new kg(w.min,w.max,this.yStep,r)).start(!0);!n.end();){var O=n.getCurrent();if(this.showGrid?(t=new _g(_.min,O,b.min),e=new _g(_.max,O,b.min),this._line3d(c,t,e,this.gridColor)):this.showYAxis&&(t=new _g(_.min,O,b.min),e=new _g(_.min+v,O,b.min),this._line3d(c,t,e,this.axisColor),t=new _g(_.max,O,b.min),e=new _g(_.max-v,O,b.min),this._line3d(c,t,e,this.axisColor)),this.showYAxis){o=0<g.y?_.min:_.max,h=new _g(o,O,b.min);var k=" "+this.yValueLabel(O)+" ";this._drawAxisLabelY.call(this,c,h,k,m,y)}n.next()}if(this.showZAxis){for(c.lineWidth=1,r=void 0===this.defaultZStep,(n=new kg(b.min,b.max,this.zStep,r)).start(!0),o=0<g.x?_.min:_.max,a=g.y<0?w.min:w.max;!n.end();){var D=n.getCurrent(),M=new _g(o,a,D),T=this._convert3Dto2D(M);e=new wg(T.x-y,T.y),this._line(c,T,e,this.axisColor);var P=this.zValueLabel(D)+" ";this._drawAxisLabelZ.call(this,c,M,P,5),n.next()}c.lineWidth=1,t=new _g(o,a,b.min),e=new _g(o,a,b.max),this._line3d(c,t,e,this.axisColor)}this.showXAxis&&(c.lineWidth=1,f=new _g(_.min,w.min,b.min),d=new _g(_.max,w.min,b.min),this._line3d(c,f,d,this.axisColor),f=new _g(_.min,w.max,b.min),d=new _g(_.max,w.max,b.min),this._line3d(c,f,d,this.axisColor));this.showYAxis&&(c.lineWidth=1,t=new _g(_.min,w.min,b.min),e=new _g(_.min,w.max,b.min),this._line3d(c,t,e,this.axisColor),t=new _g(_.max,w.min,b.min),e=new _g(_.max,w.max,b.min),this._line3d(c,t,e,this.axisColor));var E=this.xLabel;0<E.length&&this.showXAxis&&(l=.1/this.scale.y,o=(_.max+3*_.min)/4,a=0<g.x?w.min-l:w.max+l,i=new _g(o,a,b.min),this.drawAxisLabelX(c,i,E,m));var A=this.yLabel;0<A.length&&this.showYAxis&&(u=.1/this.scale.x,o=0<g.y?_.min-u:_.max+u,a=(w.max+3*w.min)/4,i=new _g(o,a,b.min),this.drawAxisLabelY(c,i,A,m));var Y=this.zLabel;0<Y.length&&this.showZAxis&&(o=0<g.x?_.min:_.max,a=g.y<0?w.min:w.max,s=(b.max+3*b.min)/4,i=new _g(o,a,s),this.drawAxisLabelZ(c,i,Y,30))},p_.prototype._hsv2rgb=function(t,e,n){var r,i,o,a,s,u;switch(a=n*e,s=Math.floor(t/60),u=a*(1-Math.abs(t/60%2-1)),s){case 0:r=a,i=u,o=0;break;case 1:r=u,i=a,o=0;break;case 2:r=0,i=a,o=u;break;case 3:r=0,i=u,o=a;break;case 4:r=u,i=0,o=a;break;case 5:r=a,i=0,o=u;break;default:o=i=r=0}return"RGB("+parseInt(255*r)+","+parseInt(255*i)+","+parseInt(255*o)+")"},p_.prototype._getStrokeWidth=function(t){return void 0!==t?this.showPerspective?1/-t.trans.z*this.dataColor.strokeWidth:-this.eye.z/this.camera.getArmLength()*this.dataColor.strokeWidth:this.dataColor.strokeWidth},p_.prototype._redrawBar=function(t,e,n,r,i,o){var a,s=this,u=e.point,l=this.zRange.min,c=[{point:new _g(u.x-n,u.y-r,u.z)},{point:new _g(u.x+n,u.y-r,u.z)},{point:new _g(u.x+n,u.y+r,u.z)},{point:new _g(u.x-n,u.y+r,u.z)}],h=[{point:new _g(u.x-n,u.y-r,l)},{point:new _g(u.x+n,u.y-r,l)},{point:new _g(u.x+n,u.y+r,l)},{point:new _g(u.x-n,u.y+r,l)}];c.forEach(function(t){t.screen=s._convert3Dto2D(t.point)}),h.forEach(function(t){t.screen=s._convert3Dto2D(t.point)});var f=[{corners:c,center:_g.avg(h[0].point,h[2].point)},{corners:[c[0],c[1],h[1],h[0]],center:_g.avg(h[1].point,h[0].point)},{corners:[c[1],c[2],h[2],h[1]],center:_g.avg(h[2].point,h[1].point)},{corners:[c[2],c[3],h[3],h[2]],center:_g.avg(h[3].point,h[2].point)},{corners:[c[3],c[0],h[0],h[3]],center:_g.avg(h[0].point,h[3].point)}];e.surfaces=f;for(var d=0;d<f.length;d++){a=f[d];var p=this._convertPointToTranslation(a.center);a.dist=this.showPerspective?p.length():-p.z}f.sort(function(t,e){var n=e.dist-t.dist;return n||(t.corners===c?1:e.corners===c?-1:0)}),t.lineWidth=this._getStrokeWidth(e),t.strokeStyle=o,t.fillStyle=i;for(var v=2;v<f.length;v++)a=f[v],this._polygon(t,a.corners)},p_.prototype._polygon=function(t,e,n,r){if(!(e.length<2)){void 0!==n&&(t.fillStyle=n),void 0!==r&&(t.strokeStyle=r),t.beginPath(),t.moveTo(e[0].screen.x,e[0].screen.y);for(var i=1;i<e.length;++i){var o=e[i];t.lineTo(o.screen.x,o.screen.y)}t.closePath(),t.fill(),t.stroke()}},p_.prototype._drawCircle=function(t,e,n,r,i){var o=this._calcRadius(e,i);t.lineWidth=this._getStrokeWidth(e),t.strokeStyle=r,t.fillStyle=n,t.beginPath(),t.arc(e.screen.x,e.screen.y,o,0,2*Math.PI,!0),t.fill(),t.stroke()},p_.prototype._getColorsRegular=function(t){var e=240*(1-(t.point.z-this.zRange.min)*this.scale.z/this.verticalRatio);return{fill:this._hsv2rgb(e,1,1),border:this._hsv2rgb(e,1,.8)}},p_.prototype._getColorsColor=function(t){var e,n,r;if(t&&t.point&&t.point.data&&t.point.data.style&&(r=t.point.data.style),r&&"object"===pg(r)&&r.fill&&r.stroke)return{fill:r.fill,border:r.stroke};if("string"==typeof t.point.value)e=t.point.value,n=t.point.value;else{var i=240*(1-(t.point.value-this.valueRange.min)*this.scale.value);e=this._hsv2rgb(i,1,1),n=this._hsv2rgb(i,1,.8)}return{fill:e,border:n}},p_.prototype._getColorsSize=function(){return{fill:this.dataColor.fill,border:this.dataColor.stroke}},p_.prototype._calcRadius=function(t,e){var n;return void 0===e&&(e=this._dotSize()),(n=this.showPerspective?e/-t.trans.z:e*(-this.eye.z/this.camera.getArmLength()))<0&&(n=0),n},p_.prototype._redrawBarGraphPoint=function(t,e){var n=this.xBarWidth/2,r=this.yBarWidth/2,i=this._getColorsRegular(e);this._redrawBar(t,e,n,r,i.fill,i.border)},p_.prototype._redrawBarColorGraphPoint=function(t,e){var n=this.xBarWidth/2,r=this.yBarWidth/2,i=this._getColorsColor(e);this._redrawBar(t,e,n,r,i.fill,i.border)},p_.prototype._redrawBarSizeGraphPoint=function(t,e){var n=(e.point.value-this.valueRange.min)/this.valueRange.range(),r=this.xBarWidth/2*(.8*n+.2),i=this.yBarWidth/2*(.8*n+.2),o=this._getColorsSize();this._redrawBar(t,e,r,i,o.fill,o.border)},p_.prototype._redrawDotGraphPoint=function(t,e){var n=this._getColorsRegular(e);this._drawCircle(t,e,n.fill,n.border)},p_.prototype._redrawDotLineGraphPoint=function(t,e){var n=this._convert3Dto2D(e.bottom);t.lineWidth=1,this._line(t,n,e.screen,this.gridColor),this._redrawDotGraphPoint(t,e)},p_.prototype._redrawDotColorGraphPoint=function(t,e){var n=this._getColorsColor(e);this._drawCircle(t,e,n.fill,n.border)},p_.prototype._redrawDotSizeGraphPoint=function(t,e){var n=this._dotSize(),r=(e.point.value-this.valueRange.min)/this.valueRange.range(),i=n*this.dotSizeMinFraction,o=i+(n*this.dotSizeMaxFraction-i)*r,a=this._getColorsSize();this._drawCircle(t,e,a.fill,a.border,o)},p_.prototype._redrawSurfaceGraphPoint=function(t,e){var n=e.pointRight,r=e.pointTop,i=e.pointCross;if(void 0!==e&&void 0!==n&&void 0!==r&&void 0!==i){var o,a,s=!0;if(this.showGrayBottom||this.showShadow){var u=_g.subtract(i.trans,e.trans),l=_g.subtract(r.trans,n.trans),c=_g.crossProduct(u,l),h=c.length();s=0<c.z}if(s){var f,d=240*(1-((e.point.z+n.point.z+r.point.z+i.point.z)/4-this.zRange.min)*this.scale.z/this.verticalRatio);a=this.showShadow?(f=Math.min(1+c.x/h/2,1),o=this._hsv2rgb(d,1,f)):(f=1,o=this._hsv2rgb(d,1,f),this.axisColor)}else o="gray",a=this.axisColor;t.lineWidth=this._getStrokeWidth(e);var p=[e,n,i,r];this._polygon(t,p,o,a)}},p_.prototype._drawGridLine=function(t,e,n){if(void 0!==e&&void 0!==n){var r=240*(1-((e.point.z+n.point.z)/2-this.zRange.min)*this.scale.z/this.verticalRatio);t.lineWidth=2*this._getStrokeWidth(e),t.strokeStyle=this._hsv2rgb(r,1,1),this._line(t,e.screen,n.screen)}},p_.prototype._redrawGridGraphPoint=function(t,e){this._drawGridLine(t,e,e.pointRight),this._drawGridLine(t,e,e.pointTop)},p_.prototype._redrawLineGraphPoint=function(t,e){void 0!==e.pointNext&&(t.lineWidth=this._getStrokeWidth(e),t.strokeStyle=this.dataColor.stroke,this._line(t,e.screen,e.pointNext.screen))},p_.prototype._redrawDataGraph=function(){var t,e=this._getContext();if(!(void 0===this.dataPoints||this.dataPoints.length<=0))for(this._calcTranslations(this.dataPoints),t=0;t<this.dataPoints.length;t++){var n=this.dataPoints[t];this._pointDrawingMethod.call(this,e,n)}},p_.prototype._storeMousePosition=function(t){this.startMouseX=v_(t),this.startMouseY=y_(t),this._startCameraOffset=this.camera.getOffset()},p_.prototype._onMouseDown=function(t){if(t=t||window.event,this.leftButtonDown&&this._onMouseUp(t),this.leftButtonDown=t.which?1===t.which:1===t.button,this.leftButtonDown||this.touchDown){this._storeMousePosition(t),this.startStart=new Date(this.start),this.startEnd=new Date(this.end),this.startArmRotation=this.camera.getArmRotation(),this.frame.style.cursor="move";var e=this;this.onmousemove=function(t){e._onMouseMove(t)},this.onmouseup=function(t){e._onMouseUp(t)},bg.addEventListener(document,"mousemove",e.onmousemove),bg.addEventListener(document,"mouseup",e.onmouseup),bg.preventDefault(t)}},p_.prototype._onMouseMove=function(t){this.moving=!0,t=t||window.event;var e=parseFloat(v_(t))-this.startMouseX,n=parseFloat(y_(t))-this.startMouseY;if(t&&!0===t.ctrlKey){var r=.5*this.frame.clientWidth,i=.5*this.frame.clientHeight,o=(this._startCameraOffset.x||0)-e/r*this.camera.armLength*.8,a=(this._startCameraOffset.y||0)+n/i*this.camera.armLength*.8;this.camera.setOffset(o,a),this._storeMousePosition(t)}else{var s=this.startArmRotation.horizontal+e/200,u=this.startArmRotation.vertical+n/200,l=Math.sin(4/360*2*Math.PI);Math.abs(Math.sin(s))<l&&(s=Math.round(s/Math.PI)*Math.PI-.001),Math.abs(Math.cos(s))<l&&(s=(Math.round(s/Math.PI-.5)+.5)*Math.PI-.001),Math.abs(Math.sin(u))<l&&(u=Math.round(u/Math.PI)*Math.PI),Math.abs(Math.cos(u))<l&&(u=(Math.round(u/Math.PI-.5)+.5)*Math.PI),this.camera.setArmRotation(s,u)}this.redraw();var c=this.getCameraPosition();this.emit("cameraPositionChange",c),bg.preventDefault(t)},p_.prototype._onMouseUp=function(t){this.frame.style.cursor="auto",this.leftButtonDown=!1,bg.removeEventListener(document,"mousemove",this.onmousemove),bg.removeEventListener(document,"mouseup",this.onmouseup),bg.preventDefault(t)},p_.prototype._onClick=function(t){if(this.onclick_callback){if(this.moving)this.moving=!1;else{var e=this.frame.getBoundingClientRect(),n=v_(t)-e.left,r=y_(t)-e.top,i=this._dataPointFromXY(n,r);i&&this.onclick_callback(i.point.data)}bg.preventDefault(t)}},p_.prototype._onTooltip=function(t){var e=this.tooltipDelay,n=this.frame.getBoundingClientRect(),r=v_(t)-n.left,i=y_(t)-n.top;if(this.showTooltip)if(this.tooltipTimeout&&clearTimeout(this.tooltipTimeout),this.leftButtonDown)this._hideTooltip();else if(this.tooltip&&this.tooltip.dataPoint){var o=this._dataPointFromXY(r,i);o!==this.tooltip.dataPoint&&(o?this._showTooltip(o):this._hideTooltip())}else{var a=this;this.tooltipTimeout=setTimeout(function(){a.tooltipTimeout=null;var t=a._dataPointFromXY(r,i);t&&a._showTooltip(t)},e)}},p_.prototype._onTouchStart=function(t){this.touchDown=!0;var e=this;this.ontouchmove=function(t){e._onTouchMove(t)},this.ontouchend=function(t){e._onTouchEnd(t)},bg.addEventListener(document,"touchmove",e.ontouchmove),bg.addEventListener(document,"touchend",e.ontouchend),this._onMouseDown(t)},p_.prototype._onTouchMove=function(t){this._onMouseMove(t)},p_.prototype._onTouchEnd=function(t){this.touchDown=!1,bg.removeEventListener(document,"touchmove",this.ontouchmove),bg.removeEventListener(document,"touchend",this.ontouchend),this._onMouseUp(t)},p_.prototype._onWheel=function(t){if(t=t||window.event,this.zoomable&&(!this.ctrlToZoom||t.ctrlKey)){var e=0;if(t.wheelDelta?e=t.wheelDelta/120:t.detail&&(e=-t.detail/3),e){var n=this.camera.getArmLength()*(1-e/10);this.camera.setArmLength(n),this.redraw(),this._hideTooltip()}var r=this.getCameraPosition();this.emit("cameraPositionChange",r),bg.preventDefault(t)}},p_.prototype._insideTriangle=function(t,e){var n=e[0],r=e[1],i=e[2];function o(t){return 0<t?1:t<0?-1:0}var a=o((r.x-n.x)*(t.y-n.y)-(r.y-n.y)*(t.x-n.x)),s=o((i.x-r.x)*(t.y-r.y)-(i.y-r.y)*(t.x-r.x)),u=o((n.x-i.x)*(t.y-i.y)-(n.y-i.y)*(t.x-i.x));return!(0!=a&&0!=s&&a!=s||0!=s&&0!=u&&s!=u||0!=a&&0!=u&&a!=u)},p_.prototype._dataPointFromXY=function(t,e){var n,r=null,i=null,o=null,a=new wg(t,e);if(this.style===p_.STYLE.BAR||this.style===p_.STYLE.BARCOLOR||this.style===p_.STYLE.BARSIZE)for(n=this.dataPoints.length-1;0<=n;n--){var s=(r=this.dataPoints[n]).surfaces;if(s)for(var u=s.length-1;0<=u;u--){var l=s[u].corners,c=[l[0].screen,l[1].screen,l[2].screen],h=[l[2].screen,l[3].screen,l[0].screen];if(this._insideTriangle(a,c)||this._insideTriangle(a,h))return r}}else for(n=0;n<this.dataPoints.length;n++){var f=(r=this.dataPoints[n]).screen;if(f){var d=Math.abs(t-f.x),p=Math.abs(e-f.y),v=Math.sqrt(d*d+p*p);(null===o||v<o)&&v<100&&(o=v,i=r)}}return i},p_.prototype.hasBars=function(t){return t==p_.STYLE.BAR||t==p_.STYLE.BARCOLOR||t==p_.STYLE.BARSIZE},p_.prototype._showTooltip=function(t){var e,n,r;this.tooltip?(e=this.tooltip.dom.content,n=this.tooltip.dom.line,r=this.tooltip.dom.dot):(e=document.createElement("div"),Object.assign(e.style,{},this.tooltipStyle.content),e.style.position="absolute",n=document.createElement("div"),Object.assign(n.style,{},this.tooltipStyle.line),n.style.position="absolute",r=document.createElement("div"),Object.assign(r.style,{},this.tooltipStyle.dot),r.style.position="absolute",this.tooltip={dataPoint:null,dom:{content:e,line:n,dot:r}}),this._hideTooltip(),this.tooltip.dataPoint=t,"function"==typeof this.showTooltip?e.innerHTML=this.showTooltip(t.point):e.innerHTML="<table><tr><td>"+this.xLabel+":</td><td>"+t.point.x+"</td></tr><tr><td>"+this.yLabel+":</td><td>"+t.point.y+"</td></tr><tr><td>"+this.zLabel+":</td><td>"+t.point.z+"</td></tr></table>",e.style.left="0",e.style.top="0",this.frame.appendChild(e),this.frame.appendChild(n),this.frame.appendChild(r);var i=e.offsetWidth,o=e.offsetHeight,a=n.offsetHeight,s=r.offsetWidth,u=r.offsetHeight,l=t.screen.x-i/2;l=Math.min(Math.max(l,10),this.frame.clientWidth-10-i),n.style.left=t.screen.x+"px",n.style.top=t.screen.y-a+"px",e.style.left=l+"px",e.style.top=t.screen.y-a-o+"px",r.style.left=t.screen.x-s/2+"px",r.style.top=t.screen.y-u/2+"px"},p_.prototype._hideTooltip=function(){if(this.tooltip)for(var t in this.tooltip.dataPoint=null,this.tooltip.dom)if(this.tooltip.dom.hasOwnProperty(t)){var e=this.tooltip.dom[t];e&&e.parentNode&&e.parentNode.removeChild(e)}},p_.prototype.setCameraPosition=function(t){Wg.setCameraPosition(t,this),this.redraw()},p_.prototype.setSize=function(t,e){this._setSize(t,e),this.redraw()};var m_=p_,g_=Go(function(tr,t){tr.exports=function(){var e,i;function l(){return e.apply(null,arguments)}function a(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function s(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function o(t){return void 0===t}function u(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function c(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function r(t,e){var n,r=[];for(n=0;n<t.length;++n)r.push(e(t[n],n));return r}function h(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function f(t,e){for(var n in e)h(e,n)&&(t[n]=e[n]);return h(e,"toString")&&(t.toString=e.toString),h(e,"valueOf")&&(t.valueOf=e.valueOf),t}function d(t,e,n,r){return Ye(t,e,n,r,!0).utc()}function p(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 v(t){if(null==t._isValid){var e=p(t),n=i.call(e.parsedDateParts,function(t){return null!=t}),r=!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&&(r=r&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return r;t._isValid=r}return t._isValid}function y(t){var e=d(NaN);return null!=t?f(p(e),t):p(e).userInvalidated=!0,e}i=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),n=e.length>>>0,r=0;r<n;r++)if(r in e&&t.call(this,e[r],r,e))return!0;return!1};var m=l.momentProperties=[];function g(t,e){var n,r,i;if(o(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),o(e._i)||(t._i=e._i),o(e._f)||(t._f=e._f),o(e._l)||(t._l=e._l),o(e._strict)||(t._strict=e._strict),o(e._tzm)||(t._tzm=e._tzm),o(e._isUTC)||(t._isUTC=e._isUTC),o(e._offset)||(t._offset=e._offset),o(e._pf)||(t._pf=p(e)),o(e._locale)||(t._locale=e._locale),0<m.length)for(n=0;n<m.length;n++)r=m[n],o(i=e[r])||(t[r]=i);return t}var n=!1;function _(t){g(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===n&&(n=!0,l.updateOffset(this),n=!1)}function w(t){return t instanceof _||null!=t&&null!=t._isAMomentObject}function b(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function S(t){var e=+t,n=0;return 0!=e&&isFinite(e)&&(n=b(e)),n}function x(t,e,n){var r,i=Math.min(t.length,e.length),o=Math.abs(t.length-e.length),a=0;for(r=0;r<i;r++)(n&&t[r]!==e[r]||!n&&S(t[r])!==S(e[r]))&&a++;return a+o}function O(t){!1===l.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function t(i,o){var a=!0;return f(function(){if(null!=l.deprecationHandler&&l.deprecationHandler(null,i),a){for(var t,e=[],n=0;n<arguments.length;n++){if(t="","object"==typeof arguments[n]){for(var r in t+="\n["+n+"] ",arguments[0])t+=r+": "+arguments[0][r]+", ";t=t.slice(0,-2)}else t=arguments[n];e.push(t)}O(i+"\nArguments: "+Array.prototype.slice.call(e).join("")+"\n"+(new Error).stack),a=!1}return o.apply(this,arguments)},o)}var k,D={};function M(t,e){null!=l.deprecationHandler&&l.deprecationHandler(t,e),D[t]||(O(e),D[t]=!0)}function T(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function P(t,e){var n,r=f({},t);for(n in e)h(e,n)&&(s(t[n])&&s(e[n])?(r[n]={},f(r[n],t[n]),f(r[n],e[n])):null!=e[n]?r[n]=e[n]:delete r[n]);for(n in t)h(t,n)&&!h(e,n)&&s(t[n])&&(r[n]=f({},r[n]));return r}function E(t){null!=t&&this.set(t)}l.suppressDeprecationWarnings=!1,l.deprecationHandler=null,k=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)h(t,e)&&n.push(e);return n};var A={};function Y(t,e){var n=t.toLowerCase();A[n]=A[n+"s"]=A[e]=t}function L(t){return"string"==typeof t?A[t]||A[t.toLowerCase()]:void 0}function C(t){var e,n,r={};for(n in t)h(t,n)&&(e=L(n))&&(r[e]=t[n]);return r}var R={};function j(t,e){R[t]=e}function I(t){var e=[];for(var n in t)e.push({unit:n,priority:R[n]});return e.sort(function(t,e){return t.priority-e.priority}),e}function N(t,e,n){var r=""+Math.abs(t),i=e-r.length,o=0<=t;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var F=/(\[[^\[]*\])|(\\)?([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,W=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,z={},V={};function G(t,e,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),t&&(V[t]=i),e&&(V[e[0]]=function(){return N(i.apply(this,arguments),e[1],e[2])}),n&&(V[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),t)})}function H(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function U(t,e){return t.isValid()?(e=B(e,t.localeData()),z[e]=z[e]||function(r){var t,i,o=r.match(F);for(t=0,i=o.length;t<i;t++)V[o[t]]?o[t]=V[o[t]]:o[t]=H(o[t]);return function(t){var e,n="";for(e=0;e<i;e++)n+=T(o[e])?o[e].call(t,r):o[e];return n}}(e),z[e](t)):t.localeData().invalidDate()}function B(t,e){var n=5;function r(t){return e.longDateFormat(t)||t}for(W.lastIndex=0;0<=n&&W.test(t);)t=t.replace(W,r),W.lastIndex=0,n-=1;return t}var Z=/\d/,X=/\d\d/,q=/\d{3}/,$=/\d{4}/,J=/[+-]?\d{6}/,Q=/\d\d?/,K=/\d\d\d\d?/,tt=/\d\d\d\d\d\d?/,et=/\d{1,3}/,nt=/\d{1,4}/,rt=/[+-]?\d{1,6}/,it=/\d+/,ot=/[+-]?\d+/,at=/Z|[+-]\d\d:?\d\d/gi,st=/Z|[+-]\d\d(?::?\d\d)?/gi,ut=/[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,lt={};function ct(t,n,r){lt[t]=T(n)?n:function(t,e){return t&&r?r:n}}function ht(t,e){return h(lt,t)?lt[t](e._strict,e._locale):new RegExp(function(t){return ft(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,r,i){return e||n||r||i}))}(t))}function ft(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var dt={};function pt(t,n){var e,r=n;for("string"==typeof t&&(t=[t]),u(n)&&(r=function(t,e){e[n]=S(t)}),e=0;e<t.length;e++)dt[t[e]]=r}function vt(t,i){pt(t,function(t,e,n,r){n._w=n._w||{},i(t,n._w,n,r)})}function yt(t,e,n){null!=e&&h(dt,t)&&dt[t](e,n._a,n,t)}var mt=0,gt=1,_t=2,wt=3,bt=4,St=5,xt=6,Ot=7,kt=8;function Dt(t){return Mt(t)?366:365}function Mt(t){return t%4==0&&t%100!=0||t%400==0}G("Y",0,0,function(){var t=this.year();return t<=9999?""+t:"+"+t}),G(0,["YY",2],0,function(){return this.year()%100}),G(0,["YYYY",4],0,"year"),G(0,["YYYYY",5],0,"year"),G(0,["YYYYYY",6,!0],0,"year"),Y("year","y"),j("year",1),ct("Y",ot),ct("YY",Q,X),ct("YYYY",nt,$),ct("YYYYY",rt,J),ct("YYYYYY",rt,J),pt(["YYYYY","YYYYYY"],mt),pt("YYYY",function(t,e){e[mt]=2===t.length?l.parseTwoDigitYear(t):S(t)}),pt("YY",function(t,e){e[mt]=l.parseTwoDigitYear(t)}),pt("Y",function(t,e){e[mt]=parseInt(t,10)}),l.parseTwoDigitYear=function(t){return S(t)+(68<S(t)?1900:2e3)};var Tt,Pt=Et("FullYear",!0);function Et(e,n){return function(t){return null!=t?(Yt(this,e,t),l.updateOffset(this,n),this):At(this,e)}}function At(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function Yt(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&Mt(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),Lt(n,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function Lt(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=function(t,e){return(t%e+e)%e}(e,12);return t+=(e-n)/12,1===n?Mt(t)?29:28:31-n%7%2}Tt=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},G("M",["MM",2],"Mo",function(){return this.month()+1}),G("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),G("MMMM",0,0,function(t){return this.localeData().months(this,t)}),Y("month","M"),j("month",8),ct("M",Q),ct("MM",Q,X),ct("MMM",function(t,e){return e.monthsShortRegex(t)}),ct("MMMM",function(t,e){return e.monthsRegex(t)}),pt(["M","MM"],function(t,e){e[gt]=S(t)-1}),pt(["MMM","MMMM"],function(t,e,n,r){var i=n._locale.monthsParse(t,r,n._strict);null!=i?e[gt]=i:p(n).invalidMonth=t});var Ct=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Rt="January_February_March_April_May_June_July_August_September_October_November_December".split("_");var jt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function It(t,e,n){var r,i,o,a=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=d([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(i=Tt.call(this._shortMonthsParse,a))?i:null:-1!==(i=Tt.call(this._longMonthsParse,a))?i:null:"MMM"===e?-1!==(i=Tt.call(this._shortMonthsParse,a))?i:-1!==(i=Tt.call(this._longMonthsParse,a))?i:null:-1!==(i=Tt.call(this._longMonthsParse,a))?i:-1!==(i=Tt.call(this._shortMonthsParse,a))?i:null}function Nt(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=S(e);else if(!u(e=t.localeData().monthsParse(e)))return t;return n=Math.min(t.date(),Lt(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function Ft(t){return null!=t?(Nt(this,t),l.updateOffset(this,!0),this):At(this,"Month")}var Wt=ut;var zt=ut;function Vt(){function t(t,e){return e.length-t.length}var e,n,r=[],i=[],o=[];for(e=0;e<12;e++)n=d([2e3,e]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(r.sort(t),i.sort(t),o.sort(t),e=0;e<12;e++)r[e]=ft(r[e]),i[e]=ft(i[e]);for(e=0;e<24;e++)o[e]=ft(o[e]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Gt(t){var e;if(t<100&&0<=t){var n=Array.prototype.slice.call(arguments);n[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)}else e=new Date(Date.UTC.apply(null,arguments));return e}function Ht(t,e,n){var r=7+e-n,i=(7+Gt(t,0,r).getUTCDay()-e)%7;return r-i-1}function Ut(t,e,n,r,i){var o,a,s=(7+n-r)%7,u=Ht(t,r,i),l=1+7*(e-1)+s+u;return a=l<=0?Dt(o=t-1)+l:l>Dt(t)?(o=t+1,l-Dt(t)):(o=t,l),{year:o,dayOfYear:a}}function Bt(t,e,n){var r,i,o=Ht(t.year(),e,n),a=Math.floor((t.dayOfYear()-o-1)/7)+1;return a<1?(i=t.year()-1,r=a+Zt(i,e,n)):a>Zt(t.year(),e,n)?(r=a-Zt(t.year(),e,n),i=t.year()+1):(i=t.year(),r=a),{week:r,year:i}}function Zt(t,e,n){var r=Ht(t,e,n),i=Ht(t+1,e,n);return(Dt(t)-r+i)/7}G("w",["ww",2],"wo","week"),G("W",["WW",2],"Wo","isoWeek"),Y("week","w"),Y("isoWeek","W"),j("week",5),j("isoWeek",5),ct("w",Q),ct("ww",Q,X),ct("W",Q),ct("WW",Q,X),vt(["w","ww","W","WW"],function(t,e,n,r){e[r.substr(0,1)]=S(t)});function Xt(t,e){return t.slice(e,7).concat(t.slice(0,e))}G("d",0,"do","day"),G("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),G("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),G("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),G("e",0,0,"weekday"),G("E",0,0,"isoWeekday"),Y("day","d"),Y("weekday","e"),Y("isoWeekday","E"),j("day",11),j("weekday",11),j("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)}),vt(["dd","ddd","dddd"],function(t,e,n,r){var i=n._locale.weekdaysParse(t,r,n._strict);null!=i?e.d=i:p(n).invalidWeekday=t}),vt(["d","e","E"],function(t,e,n,r){e[r]=S(t)});var qt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");var $t="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");var Jt="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function Qt(t,e,n){var r,i,o,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=d([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(i=Tt.call(this._weekdaysParse,a))?i:null:"ddd"===e?-1!==(i=Tt.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=Tt.call(this._minWeekdaysParse,a))?i:null:"dddd"===e?-1!==(i=Tt.call(this._weekdaysParse,a))?i:-1!==(i=Tt.call(this._shortWeekdaysParse,a))?i:-1!==(i=Tt.call(this._minWeekdaysParse,a))?i:null:"ddd"===e?-1!==(i=Tt.call(this._shortWeekdaysParse,a))?i:-1!==(i=Tt.call(this._weekdaysParse,a))?i:-1!==(i=Tt.call(this._minWeekdaysParse,a))?i:null:-1!==(i=Tt.call(this._minWeekdaysParse,a))?i:-1!==(i=Tt.call(this._weekdaysParse,a))?i:-1!==(i=Tt.call(this._shortWeekdaysParse,a))?i:null}var Kt=ut;var te=ut;var ee=ut;function ne(){function t(t,e){return e.length-t.length}var e,n,r,i,o,a=[],s=[],u=[],l=[];for(e=0;e<7;e++)n=d([2e3,1]).day(e),r=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),o=this.weekdays(n,""),a.push(r),s.push(i),u.push(o),l.push(r),l.push(i),l.push(o);for(a.sort(t),s.sort(t),u.sort(t),l.sort(t),e=0;e<7;e++)s[e]=ft(s[e]),u[e]=ft(u[e]),l[e]=ft(l[e]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function re(){return this.hours()%12||12}function ie(t,e){G(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function oe(t,e){return e._meridiemParse}G("H",["HH",2],0,"hour"),G("h",["hh",2],0,re),G("k",["kk",2],0,function(){return this.hours()||24}),G("hmm",0,0,function(){return""+re.apply(this)+N(this.minutes(),2)}),G("hmmss",0,0,function(){return""+re.apply(this)+N(this.minutes(),2)+N(this.seconds(),2)}),G("Hmm",0,0,function(){return""+this.hours()+N(this.minutes(),2)}),G("Hmmss",0,0,function(){return""+this.hours()+N(this.minutes(),2)+N(this.seconds(),2)}),ie("a",!0),ie("A",!1),Y("hour","h"),j("hour",13),ct("a",oe),ct("A",oe),ct("H",Q),ct("h",Q),ct("k",Q),ct("HH",Q,X),ct("hh",Q,X),ct("kk",Q,X),ct("hmm",K),ct("hmmss",tt),ct("Hmm",K),ct("Hmmss",tt),pt(["H","HH"],wt),pt(["k","kk"],function(t,e,n){var r=S(t);e[wt]=24===r?0:r}),pt(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),pt(["h","hh"],function(t,e,n){e[wt]=S(t),p(n).bigHour=!0}),pt("hmm",function(t,e,n){var r=t.length-2;e[wt]=S(t.substr(0,r)),e[bt]=S(t.substr(r)),p(n).bigHour=!0}),pt("hmmss",function(t,e,n){var r=t.length-4,i=t.length-2;e[wt]=S(t.substr(0,r)),e[bt]=S(t.substr(r,2)),e[St]=S(t.substr(i)),p(n).bigHour=!0}),pt("Hmm",function(t,e,n){var r=t.length-2;e[wt]=S(t.substr(0,r)),e[bt]=S(t.substr(r))}),pt("Hmmss",function(t,e,n){var r=t.length-4,i=t.length-2;e[wt]=S(t.substr(0,r)),e[bt]=S(t.substr(r,2)),e[St]=S(t.substr(i))});var ae,se=Et("Hours",!0),ue={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:Rt,monthsShort:jt,week:{dow:0,doy:6},weekdays:qt,weekdaysMin:Jt,weekdaysShort:$t,meridiemParse:/[ap]\.?m?\.?/i},le={},ce={};function he(t){return t?t.toLowerCase().replace("_","-"):t}function fe(t){var e=null;if(!le[t]&&tr&&tr.exports)try{e=ae._abbr;var n=Vo;n("./locale/"+t),de(e)}catch(t){}return le[t]}function de(t,e){var n;return t&&((n=o(e)?ve(t):pe(t,e))?ae=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),ae._abbr}function pe(t,e){if(null===e)return delete le[t],null;var n,r=ue;if(e.abbr=t,null!=le[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."),r=le[t]._config;else if(null!=e.parentLocale)if(null!=le[e.parentLocale])r=le[e.parentLocale]._config;else{if(null==(n=fe(e.parentLocale)))return ce[e.parentLocale]||(ce[e.parentLocale]=[]),ce[e.parentLocale].push({name:t,config:e}),null;r=n._config}return le[t]=new E(P(r,e)),ce[t]&&ce[t].forEach(function(t){pe(t.name,t.config)}),de(t),le[t]}function ve(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return ae;if(!a(t)){if(e=fe(t))return e;t=[t]}return function(t){var e,n,r,i,o=0;for(;o<t.length;){for(i=he(t[o]).split("-"),e=i.length,n=(n=he(t[o+1]))?n.split("-"):null;0<e;){if(r=fe(i.slice(0,e).join("-")))return r;if(n&&n.length>=e&&x(i,n,!0)>=e-1)break;e--}o++}return ae}(t)}function ye(t){var e,n=t._a;return n&&-2===p(t).overflow&&(e=n[gt]<0||11<n[gt]?gt:n[_t]<1||n[_t]>Lt(n[mt],n[gt])?_t:n[wt]<0||24<n[wt]||24===n[wt]&&(0!==n[bt]||0!==n[St]||0!==n[xt])?wt:n[bt]<0||59<n[bt]?bt:n[St]<0||59<n[St]?St:n[xt]<0||999<n[xt]?xt:-1,p(t)._overflowDayOfYear&&(e<mt||_t<e)&&(e=_t),p(t)._overflowWeeks&&-1===e&&(e=Ot),p(t)._overflowWeekday&&-1===e&&(e=kt),p(t).overflow=e),t}function me(t,e,n){return null!=t?t:null!=e?e:n}function ge(t){var e,n,r,i,o,a=[];if(!t._d){for(r=function(t){var e=new Date(l.now());if(t._useUTC)return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()];return[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[_t]&&null==t._a[gt]&&function(t){var e,n,r,i,o,a,s,u;if(null!=(e=t._w).GG||null!=e.W||null!=e.E)o=1,a=4,n=me(e.GG,t._a[mt],Bt(Le(),1,4).year),r=me(e.W,1),((i=me(e.E,1))<1||7<i)&&(u=!0);else{o=t._locale._week.dow,a=t._locale._week.doy;var l=Bt(Le(),o,a);n=me(e.gg,t._a[mt],l.year),r=me(e.w,l.week),null!=e.d?((i=e.d)<0||6<i)&&(u=!0):null!=e.e?(i=e.e+o,(e.e<0||6<e.e)&&(u=!0)):i=o}r<1||r>Zt(n,o,a)?p(t)._overflowWeeks=!0:null!=u?p(t)._overflowWeekday=!0:(s=Ut(n,r,i,o,a),t._a[mt]=s.year,t._dayOfYear=s.dayOfYear)}(t),null!=t._dayOfYear&&(o=me(t._a[mt],r[mt]),(t._dayOfYear>Dt(o)||0===t._dayOfYear)&&(p(t)._overflowDayOfYear=!0),n=Gt(o,0,t._dayOfYear),t._a[gt]=n.getUTCMonth(),t._a[_t]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=r[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[wt]&&0===t._a[bt]&&0===t._a[St]&&0===t._a[xt]&&(t._nextDay=!0,t._a[wt]=0),t._d=(t._useUTC?Gt:function(t,e,n,r,i,o,a){var s;t<100&&0<=t?(s=new Date(t+400,e,n,r,i,o,a),isFinite(s.getFullYear())&&s.setFullYear(t)):s=new Date(t,e,n,r,i,o,a);return s}).apply(null,a),i=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[wt]=24),t._w&&void 0!==t._w.d&&t._w.d!==i&&(p(t).weekdayMismatch=!0)}}var _e=/^\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)?)?$/,we=/^\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)?)?$/,be=/Z|[+-]\d\d(?::?\d\d)?/,Se=[["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}/]],xe=[["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/]],Oe=/^\/?Date\((\-?\d+)/i;function ke(t){var e,n,r,i,o,a,s=t._i,u=_e.exec(s)||we.exec(s);if(u){for(p(t).iso=!0,e=0,n=Se.length;e<n;e++)if(Se[e][1].exec(u[1])){i=Se[e][0],r=!1!==Se[e][2];break}if(null==i)return void(t._isValid=!1);if(u[3]){for(e=0,n=xe.length;e<n;e++)if(xe[e][1].exec(u[3])){o=(u[2]||" ")+xe[e][0];break}if(null==o)return void(t._isValid=!1)}if(!r&&null!=o)return void(t._isValid=!1);if(u[4]){if(!be.exec(u[4]))return void(t._isValid=!1);a="Z"}t._f=i+(o||"")+(a||""),Ee(t)}else t._isValid=!1}var De=/^(?:(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 Me(t,e,n,r,i,o){var a=[function(t){var e=parseInt(t,10);{if(e<=49)return 2e3+e;if(e<=999)return 1900+e}return e}(t),jt.indexOf(e),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&a.push(parseInt(o,10)),a}var Te={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Pe(t){var e=De.exec(function(t){return t.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}(t._i));if(e){var n=Me(e[4],e[3],e[2],e[5],e[6],e[7]);if(!function(t,e,n){if(t){var r=$t.indexOf(t),i=new Date(e[0],e[1],e[2]).getDay();if(r!==i)return p(n).weekdayMismatch=!0,n._isValid=!1}return!0}(e[1],n,t))return;t._a=n,t._tzm=function(t,e,n){{if(t)return Te[t];if(e)return 0;var r=parseInt(n,10),i=r%100;return 60*((r-i)/100)+i}}(e[8],e[9],e[10]),t._d=Gt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),p(t).rfc2822=!0}else t._isValid=!1}function Ee(t){if(t._f!==l.ISO_8601)if(t._f!==l.RFC_2822){t._a=[],p(t).empty=!0;var e,n,r,i,o,a=""+t._i,s=a.length,u=0;for(r=B(t._f,t._locale).match(F)||[],e=0;e<r.length;e++)i=r[e],(n=(a.match(ht(i,t))||[])[0])&&(0<(o=a.substr(0,a.indexOf(n))).length&&p(t).unusedInput.push(o),a=a.slice(a.indexOf(n)+n.length),u+=n.length),V[i]?(n?p(t).empty=!1:p(t).unusedTokens.push(i),yt(i,n,t)):t._strict&&!n&&p(t).unusedTokens.push(i);p(t).charsLeftOver=s-u,0<a.length&&p(t).unusedInput.push(a),t._a[wt]<=12&&!0===p(t).bigHour&&0<t._a[wt]&&(p(t).bigHour=void 0),p(t).parsedDateParts=t._a.slice(0),p(t).meridiem=t._meridiem,t._a[wt]=function(t,e,n){var r;if(null==n)return e;return null!=t.meridiemHour?t.meridiemHour(e,n):(null!=t.isPM&&((r=t.isPM(n))&&e<12&&(e+=12),r||12!==e||(e=0)),e)}(t._locale,t._a[wt],t._meridiem),ge(t),ye(t)}else Pe(t);else ke(t)}function Ae(t){var e=t._i,n=t._f;return t._locale=t._locale||ve(t._l),null===e||void 0===n&&""===e?y({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),w(e)?new _(ye(e)):(c(e)?t._d=e:a(n)?function(t){var e,n,r,i,o;if(0===t._f.length)return p(t).invalidFormat=!0,t._d=new Date(NaN);for(i=0;i<t._f.length;i++)o=0,e=g({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[i],Ee(e),v(e)&&(o+=p(e).charsLeftOver,o+=10*p(e).unusedTokens.length,p(e).score=o,(null==r||o<r)&&(r=o,n=e));f(t,n||e)}(t):n?Ee(t):function(t){var e=t._i;o(e)?t._d=new Date(l.now()):c(e)?t._d=new Date(e.valueOf()):"string"==typeof e?function(t){var e=Oe.exec(t._i);if(null!==e)return t._d=new Date(+e[1]);{if(ke(t),!1!==t._isValid)return;delete t._isValid}{if(Pe(t),!1!==t._isValid)return;delete t._isValid}l.createFromInputFallback(t)}(t):a(e)?(t._a=r(e.slice(0),function(t){return parseInt(t,10)}),ge(t)):s(e)?function(t){if(t._d)return;var e=C(t._i);t._a=r([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),ge(t)}(t):u(e)?t._d=new Date(e):l.createFromInputFallback(t)}(t),v(t)||(t._d=null),t))}function Ye(t,e,n,r,i){var o={};return!0!==n&&!1!==n||(r=n,n=void 0),(s(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)||a(t)&&0===t.length)&&(t=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=i,o._l=n,o._i=t,o._f=e,o._strict=r,function(t){var e=new _(ye(Ae(t)));e._nextDay&&(e.add(1,"d"),e._nextDay=void 0);return e}(o)}function Le(t,e,n,r){return Ye(t,e,n,r,!1)}l.createFromInputFallback=t("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":""))}),l.ISO_8601=function(){},l.RFC_2822=function(){};var Ce=t("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Le.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:y()}),Re=t("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Le.apply(null,arguments);return this.isValid()&&t.isValid()?this<t?this:t:y()});function je(t,e){var n,r;if(1===e.length&&a(e[0])&&(e=e[0]),!e.length)return Le();for(n=e[0],r=1;r<e.length;++r)e[r].isValid()&&!e[r][t](n)||(n=e[r]);return n}var Ie=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ne(t){var e=C(t),n=e.year||0,r=e.quarter||0,i=e.month||0,o=e.week||e.isoWeek||0,a=e.day||0,s=e.hour||0,u=e.minute||0,l=e.second||0,c=e.millisecond||0;this._isValid=function(t){for(var e in t)if(-1===Tt.call(Ie,e)||null!=t[e]&&isNaN(t[e]))return!1;for(var n=!1,r=0;r<Ie.length;++r)if(t[Ie[r]]){if(n)return!1;parseFloat(t[Ie[r]])!==S(t[Ie[r]])&&(n=!0)}return!0}(e),this._milliseconds=+c+1e3*l+6e4*u+1e3*s*60*60,this._days=+a+7*o,this._months=+i+3*r+12*n,this._data={},this._locale=ve(),this._bubble()}function Fe(t){return t instanceof Ne}function We(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function ze(t,n){G(t,0,0,function(){var t=this.utcOffset(),e="+";return t<0&&(t=-t,e="-"),e+N(~~(t/60),2)+n+N(~~t%60,2)})}ze("Z",":"),ze("ZZ",""),ct("Z",st),ct("ZZ",st),pt(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=Ge(st,t)});var Ve=/([\+\-]|\d\d)/gi;function Ge(t,e){var n=(e||"").match(t);if(null===n)return null;var r=n[n.length-1]||[],i=(r+"").match(Ve)||["-",0,0],o=60*i[1]+S(i[2]);return 0===o?0:"+"===i[0]?o:-o}function He(t,e){var n,r;return e._isUTC?(n=e.clone(),r=(w(t)||c(t)?t.valueOf():Le(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),l.updateOffset(n,!1),n):Le(t).local()}function Ue(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function Be(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}l.updateOffset=function(){};var Ze=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Xe=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function qe(t,e){var n,r,i,o=t,a=null;return Fe(t)?o={ms:t._milliseconds,d:t._days,M:t._months}:u(t)?(o={},e?o[e]=t:o.milliseconds=t):(a=Ze.exec(t))?(n="-"===a[1]?-1:1,o={y:0,d:S(a[_t])*n,h:S(a[wt])*n,m:S(a[bt])*n,s:S(a[St])*n,ms:S(We(1e3*a[xt]))*n}):(a=Xe.exec(t))?(n="-"===a[1]?-1:1,o={y:$e(a[2],n),M:$e(a[3],n),w:$e(a[4],n),d:$e(a[5],n),h:$e(a[6],n),m:$e(a[7],n),s:$e(a[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(i=function(t,e){var n;if(!t.isValid()||!e.isValid())return{milliseconds:0,months:0};e=He(e,t),t.isBefore(e)?n=Je(t,e):((n=Je(e,t)).milliseconds=-n.milliseconds,n.months=-n.months);return n}(Le(o.from),Le(o.to)),(o={}).ms=i.milliseconds,o.M=i.months),r=new Ne(o),Fe(t)&&h(t,"_locale")&&(r._locale=t._locale),r}function $e(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Je(t,e){var n={};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Qe(r,i){return function(t,e){var n;return null===e||isNaN(+e)||(M(i,"moment()."+i+"(period, number) is deprecated. Please use moment()."+i+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=t,t=e,e=n),Ke(this,qe(t="string"==typeof t?+t:t,e),r),this}}function Ke(t,e,n,r){var i=e._milliseconds,o=We(e._days),a=We(e._months);t.isValid()&&(r=null==r||r,a&&Nt(t,At(t,"Month")+a*n),o&&Yt(t,"Date",At(t,"Date")+o*n),i&&t._d.setTime(t._d.valueOf()+i*n),r&&l.updateOffset(t,o||a))}qe.fn=Ne.prototype,qe.invalid=function(){return qe(NaN)};var tn=Qe(1,"add"),en=Qe(-1,"subtract");function nn(t,e){var n,r,i=12*(e.year()-t.year())+(e.month()-t.month()),o=t.clone().add(i,"months");return r=e-o<0?(n=t.clone().add(i-1,"months"),(e-o)/(o-n)):(n=t.clone().add(1+i,"months"),(e-o)/(n-o)),-(i+r)||0}function rn(t){var e;return void 0===t?this._locale._abbr:(null!=(e=ve(t))&&(this._locale=e),this)}l.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",l.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var on=t("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 an(){return this._locale}var sn=126227808e5;function un(t,e){return(t%e+e)%e}function ln(t,e,n){return t<100&&0<=t?new Date(t+400,e,n)-sn:new Date(t,e,n).valueOf()}function cn(t,e,n){return t<100&&0<=t?Date.UTC(t+400,e,n)-sn:Date.UTC(t,e,n)}function hn(t,e){G(0,[t,t.length],0,e)}function fn(t,e,n,r,i){var o;return null==t?Bt(this,r,i).year:((o=Zt(t,r,i))<e&&(e=o),function(t,e,n,r,i){var o=Ut(t,e,n,r,i),a=Gt(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,t,e,n,r,i))}G(0,["gg",2],0,function(){return this.weekYear()%100}),G(0,["GG",2],0,function(){return this.isoWeekYear()%100}),hn("gggg","weekYear"),hn("ggggg","weekYear"),hn("GGGG","isoWeekYear"),hn("GGGGG","isoWeekYear"),Y("weekYear","gg"),Y("isoWeekYear","GG"),j("weekYear",1),j("isoWeekYear",1),ct("G",ot),ct("g",ot),ct("GG",Q,X),ct("gg",Q,X),ct("GGGG",nt,$),ct("gggg",nt,$),ct("GGGGG",rt,J),ct("ggggg",rt,J),vt(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,r){e[r.substr(0,2)]=S(t)}),vt(["gg","GG"],function(t,e,n,r){e[r]=l.parseTwoDigitYear(t)}),G("Q",0,"Qo","quarter"),Y("quarter","Q"),j("quarter",7),ct("Q",Z),pt("Q",function(t,e){e[gt]=3*(S(t)-1)}),G("D",["DD",2],"Do","date"),Y("date","D"),j("date",9),ct("D",Q),ct("DD",Q,X),ct("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),pt(["D","DD"],_t),pt("Do",function(t,e){e[_t]=S(t.match(Q)[0])});var dn=Et("Date",!0);G("DDD",["DDDD",3],"DDDo","dayOfYear"),Y("dayOfYear","DDD"),j("dayOfYear",4),ct("DDD",et),ct("DDDD",q),pt(["DDD","DDDD"],function(t,e,n){n._dayOfYear=S(t)}),G("m",["mm",2],0,"minute"),Y("minute","m"),j("minute",14),ct("m",Q),ct("mm",Q,X),pt(["m","mm"],bt);var pn=Et("Minutes",!1);G("s",["ss",2],0,"second"),Y("second","s"),j("second",15),ct("s",Q),ct("ss",Q,X),pt(["s","ss"],St);var vn,yn=Et("Seconds",!1);for(G("S",0,0,function(){return~~(this.millisecond()/100)}),G(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),G(0,["SSS",3],0,"millisecond"),G(0,["SSSS",4],0,function(){return 10*this.millisecond()}),G(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),G(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),G(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),G(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),G(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Y("millisecond","ms"),j("millisecond",16),ct("S",et,Z),ct("SS",et,X),ct("SSS",et,q),vn="SSSS";vn.length<=9;vn+="S")ct(vn,it);function mn(t,e){e[xt]=S(1e3*("0."+t))}for(vn="S";vn.length<=9;vn+="S")pt(vn,mn);var gn=Et("Milliseconds",!1);G("z",0,0,"zoneAbbr"),G("zz",0,0,"zoneName");var _n=_.prototype;function wn(t){return t}_n.add=tn,_n.calendar=function(t,e){var n=t||Le(),r=He(n,this).startOf("day"),i=l.calendarFormat(this,r)||"sameElse",o=e&&(T(e[i])?e[i].call(this,n):e[i]);return this.format(o||this.localeData().calendar(i,this,Le(n)))},_n.clone=function(){return new _(this)},_n.diff=function(t,e,n){var r,i,o;if(!this.isValid())return NaN;if(!(r=He(t,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),e=L(e)){case"year":o=nn(this,r)/12;break;case"month":o=nn(this,r);break;case"quarter":o=nn(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:b(o)},_n.endOf=function(t){var e;if(void 0===(t=L(t))||"millisecond"===t||!this.isValid())return this;var n=this._isUTC?cn:ln;switch(t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=36e5-un(e+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":e=this._d.valueOf(),e+=6e4-un(e,6e4)-1;break;case"second":e=this._d.valueOf(),e+=1e3-un(e,1e3)-1}return this._d.setTime(e),l.updateOffset(this,!0),this},_n.format=function(t){t=t||(this.isUtc()?l.defaultFormatUtc:l.defaultFormat);var e=U(this,t);return this.localeData().postformat(e)},_n.from=function(t,e){return this.isValid()&&(w(t)&&t.isValid()||Le(t).isValid())?qe({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},_n.fromNow=function(t){return this.from(Le(),t)},_n.to=function(t,e){return this.isValid()&&(w(t)&&t.isValid()||Le(t).isValid())?qe({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},_n.toNow=function(t){return this.to(Le(),t)},_n.get=function(t){if(T(this[t=L(t)]))return this[t]();return this},_n.invalidAt=function(){return p(this).overflow},_n.isAfter=function(t,e){var n=w(t)?t:Le(t);if(!this.isValid()||!n.isValid())return!1;return"millisecond"===(e=L(e)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf()},_n.isBefore=function(t,e){var n=w(t)?t:Le(t);if(!this.isValid()||!n.isValid())return!1;return"millisecond"===(e=L(e)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf()},_n.isBetween=function(t,e,n,r){var i=w(t)?t:Le(t),o=w(e)?e:Le(e);return!!(this.isValid()&&i.isValid()&&o.isValid())&&(("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(o,n):!this.isAfter(o,n)))},_n.isSame=function(t,e){var n,r=w(t)?t:Le(t);if(!this.isValid()||!r.isValid())return!1;return"millisecond"===(e=L(e)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf())},_n.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},_n.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},_n.isValid=function(){return v(this)},_n.lang=on,_n.locale=rn,_n.localeData=an,_n.max=Re,_n.min=Ce,_n.parsingFlags=function(){return f({},p(this))},_n.set=function(t,e){if("object"==typeof t)for(var n=I(t=C(t)),r=0;r<n.length;r++)this[n[r].unit](t[n[r].unit]);else if(T(this[t=L(t)]))return this[t](e);return this},_n.startOf=function(t){var e;if(void 0===(t=L(t))||"millisecond"===t||!this.isValid())return this;var n=this._isUTC?cn:ln;switch(t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=un(e+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":e=this._d.valueOf(),e-=un(e,6e4);break;case"second":e=this._d.valueOf(),e-=un(e,1e3)}return this._d.setTime(e),l.updateOffset(this,!0),this},_n.subtract=en,_n.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},_n.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},_n.toDate=function(){return new Date(this.valueOf())},_n.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;if(n.year()<0||9999<n.year())return U(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ");if(T(Date.prototype.toISOString))return e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",U(n,"Z"));return U(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},_n.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 n="["+t+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=e+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+i)},_n.toJSON=function(){return this.isValid()?this.toISOString():null},_n.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},_n.unix=function(){return Math.floor(this.valueOf()/1e3)},_n.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},_n.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},_n.year=Pt,_n.isLeapYear=function(){return Mt(this.year())},_n.weekYear=function(t){return fn.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},_n.isoWeekYear=function(t){return fn.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},_n.quarter=_n.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},_n.month=Ft,_n.daysInMonth=function(){return Lt(this.year(),this.month())},_n.week=_n.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},_n.isoWeek=_n.isoWeeks=function(t){var e=Bt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},_n.weeksInYear=function(){var t=this.localeData()._week;return Zt(this.year(),t.dow,t.doy)},_n.isoWeeksInYear=function(){return Zt(this.year(),1,4)},_n.date=dn,_n.day=_n.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(n=t,r=this.localeData(),t="string"==typeof n?isNaN(n)?"number"!=typeof(n=r.weekdaysParse(n))?null:n:parseInt(n,10):n,this.add(t-e,"d")):e;var n,r},_n.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")},_n.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;{if(null==t)return this.day()||7;var e=(n=t,r=this.localeData(),"string"!=typeof n?isNaN(n)?null:n:r.weekdaysParse(n)%7||7);return this.day(this.day()%7?e:e-7)}var n,r},_n.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")},_n.hour=_n.hours=se,_n.minute=_n.minutes=pn,_n.second=_n.seconds=yn,_n.millisecond=_n.milliseconds=gn,_n.utcOffset=function(t,e,n){var r,i=this._offset||0;if(!this.isValid())return null!=t?this:NaN;{if(null==t)return this._isUTC?i:Ue(this);if("string"==typeof t){if(null===(t=Ge(st,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(r=Ue(this)),this._offset=t,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==t&&(!e||this._changeInProgress?Ke(this,qe(t-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,l.updateOffset(this,!0),this._changeInProgress=null)),this}},_n.utc=function(t){return this.utcOffset(0,t)},_n.local=function(t){this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Ue(this),"m"));return this},_n.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=Ge(at,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},_n.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Le(t).utcOffset():0,(this.utcOffset()-t)%60==0)},_n.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},_n.isLocal=function(){return!!this.isValid()&&!this._isUTC},_n.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},_n.isUtc=Be,_n.isUTC=Be,_n.zoneAbbr=function(){return this._isUTC?"UTC":""},_n.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},_n.dates=t("dates accessor is deprecated. Use date instead.",dn),_n.months=t("months accessor is deprecated. Use month instead",Ft),_n.years=t("years accessor is deprecated. Use year instead",Pt),_n.zone=t("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()}),_n.isDSTShifted=t("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!o(this._isDSTShifted))return this._isDSTShifted;var t={};if(g(t,this),(t=Ae(t))._a){var e=t._isUTC?d(t._a):Le(t._a);this._isDSTShifted=this.isValid()&&0<x(t._a,e.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted});var bn=E.prototype;function Sn(t,e,n,r){var i=ve(),o=d().set(r,e);return i[n](o,t)}function xn(t,e,n){if(u(t)&&(e=t,t=void 0),t=t||"",null!=e)return Sn(t,e,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=Sn(t,r,n,"month");return i}function On(t,e,n,r){e=("boolean"==typeof t?u(e)&&(n=e,e=void 0):(e=t,t=!1,u(n=e)&&(n=e,e=void 0)),e||"");var i,o=ve(),a=t?o._week.dow:0;if(null!=n)return Sn(e,(n+a)%7,r,"day");var s=[];for(i=0;i<7;i++)s[i]=Sn(e,(i+a)%7,r,"day");return s}bn.calendar=function(t,e,n){var r=this._calendar[t]||this._calendar.sameElse;return T(r)?r.call(e,n):r},bn.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return!e&&n?(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t]):e},bn.invalidDate=function(){return this._invalidDate},bn.ordinal=function(t){return this._ordinal.replace("%d",t)},bn.preparse=wn,bn.postformat=wn,bn.relativeTime=function(t,e,n,r){var i=this._relativeTime[n];return T(i)?i(t,e,n,r):i.replace(/%d/i,t)},bn.pastFuture=function(t,e){var n=this._relativeTime[0<t?"future":"past"];return T(n)?n(e):n.replace(/%s/i,e)},bn.set=function(t){var e,n;for(n in t)T(e=t[n])?this[n]=e:this["_"+n]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},bn.months=function(t,e){return t?a(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Ct).test(e)?"format":"standalone"][t.month()]:a(this._months)?this._months:this._months.standalone},bn.monthsShort=function(t,e){return t?a(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Ct.test(e)?"format":"standalone"][t.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},bn.monthsParse=function(t,e,n){var r,i,o;if(this._monthsParseExact)return It.call(this,t,e,n);this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]);for(r=0;r<12;r++){if(i=d([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[r].test(t))return r;if(n&&"MMM"===e&&this._shortMonthsParse[r].test(t))return r;if(!n&&this._monthsParse[r].test(t))return r}},bn.monthsRegex=function(t){return this._monthsParseExact?(h(this,"_monthsRegex")||Vt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(h(this,"_monthsRegex")||(this._monthsRegex=zt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},bn.monthsShortRegex=function(t){return this._monthsParseExact?(h(this,"_monthsRegex")||Vt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(h(this,"_monthsShortRegex")||(this._monthsShortRegex=Wt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},bn.week=function(t){return Bt(t,this._week.dow,this._week.doy).week},bn.firstDayOfYear=function(){return this._week.doy},bn.firstDayOfWeek=function(){return this._week.dow},bn.weekdays=function(t,e){var n=a(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Xt(n,this._week.dow):t?n[t.day()]:n},bn.weekdaysMin=function(t){return!0===t?Xt(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},bn.weekdaysShort=function(t){return!0===t?Xt(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},bn.weekdaysParse=function(t,e,n){var r,i,o;if(this._weekdaysParseExact)return Qt.call(this,t,e,n);this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]);for(r=0;r<7;r++){if(i=d([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[r].test(t))return r;if(n&&"ddd"===e&&this._shortWeekdaysParse[r].test(t))return r;if(n&&"dd"===e&&this._minWeekdaysParse[r].test(t))return r;if(!n&&this._weekdaysParse[r].test(t))return r}},bn.weekdaysRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||ne.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(h(this,"_weekdaysRegex")||(this._weekdaysRegex=Kt),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},bn.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||ne.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(h(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=te),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},bn.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||ne.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(h(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ee),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},bn.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},bn.meridiem=function(t,e,n){return 11<t?n?"pm":"PM":n?"am":"AM"},de("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,n=1===S(t%100/10)?"th":1==e?"st":2==e?"nd":3==e?"rd":"th";return t+n}}),l.lang=t("moment.lang is deprecated. Use moment.locale instead.",de),l.langData=t("moment.langData is deprecated. Use moment.localeData instead.",ve);var kn=Math.abs;function Dn(t,e,n,r){var i=qe(e,n);return t._milliseconds+=r*i._milliseconds,t._days+=r*i._days,t._months+=r*i._months,t._bubble()}function Mn(t){return t<0?Math.floor(t):Math.ceil(t)}function Tn(t){return 4800*t/146097}function Pn(t){return 146097*t/4800}function En(t){return function(){return this.as(t)}}var An=En("ms"),Yn=En("s"),Ln=En("m"),Cn=En("h"),Rn=En("d"),jn=En("w"),In=En("M"),Nn=En("Q"),Fn=En("y");function Wn(t){return function(){return this.isValid()?this._data[t]:NaN}}var zn=Wn("milliseconds"),Vn=Wn("seconds"),Gn=Wn("minutes"),Hn=Wn("hours"),Un=Wn("days"),Bn=Wn("months"),Zn=Wn("years");var Xn=Math.round,qn={ss:44,s:45,m:45,h:22,d:26,M:11};var $n=Math.abs;function Jn(t){return(0<t)-(t<0)||+t}function Qn(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n=$n(this._milliseconds)/1e3,r=$n(this._days),i=$n(this._months);t=b(n/60),e=b(t/60),n%=60,t%=60;var o=b(i/12),a=i%=12,s=r,u=e,l=t,c=n?n.toFixed(3).replace(/\.?0+$/,""):"",h=this.asSeconds();if(!h)return"P0D";var f=h<0?"-":"",d=Jn(this._months)!==Jn(h)?"-":"",p=Jn(this._days)!==Jn(h)?"-":"",v=Jn(this._milliseconds)!==Jn(h)?"-":"";return f+"P"+(o?d+o+"Y":"")+(a?d+a+"M":"")+(s?p+s+"D":"")+(u||l||c?"T":"")+(u?v+u+"H":"")+(l?v+l+"M":"")+(c?v+c+"S":"")}var Kn=Ne.prototype;return Kn.isValid=function(){return this._isValid},Kn.abs=function(){var t=this._data;return this._milliseconds=kn(this._milliseconds),this._days=kn(this._days),this._months=kn(this._months),t.milliseconds=kn(t.milliseconds),t.seconds=kn(t.seconds),t.minutes=kn(t.minutes),t.hours=kn(t.hours),t.months=kn(t.months),t.years=kn(t.years),this},Kn.add=function(t,e){return Dn(this,t,e,1)},Kn.subtract=function(t,e){return Dn(this,t,e,-1)},Kn.as=function(t){if(!this.isValid())return NaN;var e,n,r=this._milliseconds;if("month"===(t=L(t))||"quarter"===t||"year"===t)switch(e=this._days+r/864e5,n=this._months+Tn(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(Pn(this._months)),t){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return 24*e+r/36e5;case"minute":return 1440*e+r/6e4;case"second":return 86400*e+r/1e3;case"millisecond":return Math.floor(864e5*e)+r;default:throw new Error("Unknown unit "+t)}},Kn.asMilliseconds=An,Kn.asSeconds=Yn,Kn.asMinutes=Ln,Kn.asHours=Cn,Kn.asDays=Rn,Kn.asWeeks=jn,Kn.asMonths=In,Kn.asQuarters=Nn,Kn.asYears=Fn,Kn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*S(this._months/12):NaN},Kn._bubble=function(){var t,e,n,r,i,o=this._milliseconds,a=this._days,s=this._months,u=this._data;return 0<=o&&0<=a&&0<=s||o<=0&&a<=0&&s<=0||(o+=864e5*Mn(Pn(s)+a),s=a=0),u.milliseconds=o%1e3,t=b(o/1e3),u.seconds=t%60,e=b(t/60),u.minutes=e%60,n=b(e/60),u.hours=n%24,a+=b(n/24),i=b(Tn(a)),s+=i,a-=Mn(Pn(i)),r=b(s/12),s%=12,u.days=a,u.months=s,u.years=r,this},Kn.clone=function(){return qe(this)},Kn.get=function(t){return t=L(t),this.isValid()?this[t+"s"]():NaN},Kn.milliseconds=zn,Kn.seconds=Vn,Kn.minutes=Gn,Kn.hours=Hn,Kn.days=Un,Kn.weeks=function(){return b(this.days()/7)},Kn.months=Bn,Kn.years=Zn,Kn.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),n=function(t,e,n){var r=qe(t).abs(),i=Xn(r.as("s")),o=Xn(r.as("m")),a=Xn(r.as("h")),s=Xn(r.as("d")),u=Xn(r.as("M")),l=Xn(r.as("y")),c=i<=qn.ss&&["s",i]||i<qn.s&&["ss",i]||o<=1&&["m"]||o<qn.m&&["mm",o]||a<=1&&["h"]||a<qn.h&&["hh",a]||s<=1&&["d"]||s<qn.d&&["dd",s]||u<=1&&["M"]||u<qn.M&&["MM",u]||l<=1&&["y"]||["yy",l];return c[2]=e,c[3]=0<+t,c[4]=n,function(t,e,n,r,i){return i.relativeTime(e||1,!!n,t,r)}.apply(null,c)}(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)},Kn.toISOString=Qn,Kn.toString=Qn,Kn.toJSON=Qn,Kn.locale=rn,Kn.localeData=an,Kn.toIsoString=t("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Qn),Kn.lang=on,G("X",0,0,"unix"),G("x",0,0,"valueOf"),ct("x",ot),ct("X",/[+-]?\d+(\.\d{1,3})?/),pt("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),pt("x",function(t,e,n){n._d=new Date(S(t))}),l.version="2.24.0",function(t){e=t}(Le),l.fn=_n,l.min=function(){return je("isBefore",[].slice.call(arguments,0))},l.max=function(){return je("isAfter",[].slice.call(arguments,0))},l.now=function(){return Date.now?Date.now():+new Date},l.utc=d,l.unix=function(t){return Le(1e3*t)},l.months=function(t,e){return xn(t,e,"months")},l.isDate=c,l.locale=de,l.invalid=y,l.duration=qe,l.isMoment=w,l.weekdays=function(t,e,n){return On(t,e,n,"weekdays")},l.parseZone=function(){return Le.apply(null,arguments).parseZone()},l.localeData=ve,l.isDuration=Fe,l.monthsShort=function(t,e){return xn(t,e,"monthsShort")},l.weekdaysMin=function(t,e,n){return On(t,e,n,"weekdaysMin")},l.defineLocale=pe,l.updateLocale=function(t,e){if(null!=e){var n,r,i=ue;null!=(r=fe(t))&&(i=r._config),e=P(i,e),(n=new E(e)).parentLocale=le[t],le[t]=n,de(t)}else null!=le[t]&&(null!=le[t].parentLocale?le[t]=le[t].parentLocale:null!=le[t]&&delete le[t]);return le[t]},l.locales=function(){return k(le)},l.weekdaysShort=function(t,e,n){return On(t,e,n,"weekdaysShort")},l.normalizeUnits=L,l.relativeTimeRounding=function(t){return void 0!==t?"function"==typeof t&&(Xn=t,!0):Xn},l.relativeTimeThreshold=function(t,e){return void 0!==qn[t]&&(void 0===e?qn[t]:(qn[t]=e,"s"===t&&(qn.ss=e-1),!0))},l.calendarFormat=function(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},l.prototype=_n,l.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"},l}()}),__="undefined"!=typeof window&&window.moment||g_,w_=Go(function(t,e){var c;t.exports=(c=null,function r(i,t){var o=t||{preventDefault:!1};if(i.Manager){var a=i,e=function(t,e){var n=Object.create(o);return e&&a.assign(n,e),r(new a(t,n),n)};return a.assign(e,a),e.Manager=function(t,e){var n=Object.create(o);return e&&a.assign(n,e),r(new a.Manager(t,n),n)},e}var s=Object.create(i),n=i.element;function u(t){return t.match(/[^ ]+/g)}function l(t){if("hammer.input"!==t.type){if(t.srcEvent._handled||(t.srcEvent._handled={}),t.srcEvent._handled[t.type])return;t.srcEvent._handled[t.type]=!0}var e=!1;t.stopPropagation=function(){e=!0};var n=t.srcEvent.stopPropagation.bind(t.srcEvent);"function"==typeof n&&(t.srcEvent.stopPropagation=function(){n(),t.stopPropagation()});for(var r=t.firstTarget=c;r&&!e;){var i=r.hammer;if(i)for(var o,a=0;a<i.length;a++)if(o=i[a]._handlers[t.type])for(var s=0;s<o.length&&!e;s++)o[s](t);r=r.parentNode}}return n.hammer||(n.hammer=[]),n.hammer.push(s),i.on("hammer.input",function(t){!0!==o.preventDefault&&o.preventDefault!==t.pointerType||t.preventDefault(),t.isFirst&&(c=t.target)}),s._handlers={},s.on=function(t,n){return u(t).forEach(function(t){var e=s._handlers[t];e||(s._handlers[t]=e=[],i.on(t,l)),e.push(n)}),s},s.off=function(t,n){return u(t).forEach(function(t){var e=s._handlers[t];e&&(0<(e=n?e.filter(function(t){return t!==n}):[]).length?s._handlers[t]=e:(i.off(t,l),delete s._handlers[t]))}),s},s.emit=function(t,e){c=e.target,i.emit(t,e)},s.destroy=function(){var t=i.element.hammer,e=t.indexOf(s);-1!==e&&t.splice(e,1),t.length||delete i.element.hammer,s._handlers={},i.destroy()},s})}),b_=Go(function(Ht){!function(o,i,t,h){var a,s=["","webkit","Moz","MS","ms","o"],e=i.createElement("div"),n="function",u=Math.round,f=Math.abs,d=Date.now;function l(t,e,n){return setTimeout(g(t,n),e)}function r(t,e,n){return!!Array.isArray(t)&&(c(t,n[e],n),!0)}function c(t,e,n){var r;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==h)for(r=0;r<t.length;)e.call(n,t[r],r,t),r++;else for(r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r,t)}function p(r,t,e){var i="DEPRECATED METHOD: "+t+"\n"+e+" AT \n";return function(){var t=new Error("get-stack-trace"),e=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",n=o.console&&(o.console.warn||o.console.log);return n&&n.call(o.console,i,e),r.apply(this,arguments)}}a="function"!=typeof Object.assign?function(t){if(t===h||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var r=arguments[n];if(r!==h&&null!==r)for(var i in r)r.hasOwnProperty(i)&&(e[i]=r[i])}return e}:Object.assign;var v=p(function(t,e,n){for(var r=Object.keys(e),i=0;i<r.length;)(!n||n&&t[r[i]]===h)&&(t[r[i]]=e[r[i]]),i++;return t},"extend","Use `assign`."),y=p(function(t,e){return v(t,e,!0)},"merge","Use `assign`.");function m(t,e,n){var r,i=e.prototype;(r=t.prototype=Object.create(i)).constructor=t,r._super=i,n&&a(r,n)}function g(t,e){return function(){return t.apply(e,arguments)}}function _(t,e){return typeof t==n?t.apply(e&&e[0]||h,e):t}function w(t,e){return t===h?e:t}function b(e,t,n){c(k(t),function(t){e.addEventListener(t,n,!1)})}function S(e,t,n){c(k(t),function(t){e.removeEventListener(t,n,!1)})}function x(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function O(t,e){return-1<t.indexOf(e)}function k(t){return t.trim().split(/\s+/g)}function D(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var r=0;r<t.length;){if(n&&t[r][n]==e||!n&&t[r]===e)return r;r++}return-1}function M(t){return Array.prototype.slice.call(t,0)}function T(t,n,e){for(var r=[],i=[],o=0;o<t.length;){var a=n?t[o][n]:t[o];D(i,a)<0&&r.push(t[o]),i[o]=a,o++}return e&&(r=n?r.sort(function(t,e){return t[n]>e[n]}):r.sort()),r}function P(t,e){for(var n,r,i=e[0].toUpperCase()+e.slice(1),o=0;o<s.length;){if((r=(n=s[o])?n+i:e)in t)return r;o++}return h}var E=1;function A(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||o}var Y="ontouchstart"in o,L=P(o,"PointerEvent")!==h,C=Y&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),R="touch",j=25,I=1,N=4,F=8,W=1,z=2,V=4,G=8,H=16,U=z|V,B=G|H,Z=U|B,X=["x","y"],q=["clientX","clientY"];function $(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){_(e.options.enable,[e])&&n.handler(t)},this.init()}function J(t,e,n){var r=n.pointers.length,i=n.changedPointers.length,o=e&I&&r-i==0,a=e&(N|F)&&r-i==0;n.isFirst=!!o,n.isFinal=!!a,o&&(t.session={}),n.eventType=e,function(t,e){var n=t.session,r=e.pointers,i=r.length;n.firstInput||(n.firstInput=Q(e));1<i&&!n.firstMultiple?n.firstMultiple=Q(e):1===i&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,s=a?a.center:o.center,u=e.center=K(r);e.timeStamp=d(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=rt(s,u),e.distance=nt(s,u),function(t,e){var n=e.center,r=t.offsetDelta||{},i=t.prevDelta||{},o=t.prevInput||{};e.eventType!==I&&o.eventType!==N||(i=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=t.offsetDelta={x:n.x,y:n.y});e.deltaX=i.x+(n.x-r.x),e.deltaY=i.y+(n.y-r.y)}(n,e),e.offsetDirection=et(e.deltaX,e.deltaY);var l=tt(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=l.x,e.overallVelocityY=l.y,e.overallVelocity=f(l.x)>f(l.y)?l.x:l.y,e.scale=a?function(t,e){return nt(e[0],e[1],q)/nt(t[0],t[1],q)}(a.pointers,r):1,e.rotation=a?function(t,e){return rt(e[1],e[0],q)+rt(t[1],t[0],q)}(a.pointers,r):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,r,i,o,a=t.lastInterval||e,s=e.timeStamp-a.timeStamp;if(e.eventType!=F&&(j<s||a.velocity===h)){var u=e.deltaX-a.deltaX,l=e.deltaY-a.deltaY,c=tt(s,u,l);r=c.x,i=c.y,n=f(c.x)>f(c.y)?c.x:c.y,o=et(u,l),t.lastInterval=e}else n=a.velocity,r=a.velocityX,i=a.velocityY,o=a.direction;e.velocity=n,e.velocityX=r,e.velocityY=i,e.direction=o}(n,e);var c=t.element;x(e.srcEvent.target,c)&&(c=e.srcEvent.target);e.target=c}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function Q(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:u(t.pointers[n].clientX),clientY:u(t.pointers[n].clientY)},n++;return{timeStamp:d(),pointers:e,center:K(e),deltaX:t.deltaX,deltaY:t.deltaY}}function K(t){var e=t.length;if(1===e)return{x:u(t[0].clientX),y:u(t[0].clientY)};for(var n=0,r=0,i=0;i<e;)n+=t[i].clientX,r+=t[i].clientY,i++;return{x:u(n/e),y:u(r/e)}}function tt(t,e,n){return{x:e/t||0,y:n/t||0}}function et(t,e){return t===e?W:f(t)>=f(e)?t<0?z:V:e<0?G:H}function nt(t,e,n){var r=e[(n=n||X)[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return Math.sqrt(r*r+i*i)}function rt(t,e,n){var r=e[(n=n||X)[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return 180*Math.atan2(i,r)/Math.PI}$.prototype={handler:function(){},init:function(){this.evEl&&b(this.element,this.evEl,this.domHandler),this.evTarget&&b(this.target,this.evTarget,this.domHandler),this.evWin&&b(A(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&S(this.element,this.evEl,this.domHandler),this.evTarget&&S(this.target,this.evTarget,this.domHandler),this.evWin&&S(A(this.element),this.evWin,this.domHandler)}};var it={mousedown:I,mousemove:2,mouseup:N},ot="mousedown",at="mousemove mouseup";function st(){this.evEl=ot,this.evWin=at,this.pressed=!1,$.apply(this,arguments)}m(st,$,{handler:function(t){var e=it[t.type];e&I&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=N),this.pressed&&(e&N&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:"mouse",srcEvent:t}))}});var ut={pointerdown:I,pointermove:2,pointerup:N,pointercancel:F,pointerout:F},lt={2:R,3:"pen",4:"mouse",5:"kinect"},ct="pointerdown",ht="pointermove pointerup pointercancel";function ft(){this.evEl=ct,this.evWin=ht,$.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}o.MSPointerEvent&&!o.PointerEvent&&(ct="MSPointerDown",ht="MSPointerMove MSPointerUp MSPointerCancel"),m(ft,$,{handler:function(t){var e=this.store,n=!1,r=t.type.toLowerCase().replace("ms",""),i=ut[r],o=lt[t.pointerType]||t.pointerType,a=o==R,s=D(e,t.pointerId,"pointerId");i&I&&(0===t.button||a)?s<0&&(e.push(t),s=e.length-1):i&(N|F)&&(n=!0),s<0||(e[s]=t,this.callback(this.manager,i,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(s,1))}});var dt={touchstart:I,touchmove:2,touchend:N,touchcancel:F};function pt(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,$.apply(this,arguments)}m(pt,$,{handler:function(t){var e=dt[t.type];if(e===I&&(this.started=!0),this.started){var n=function(t,e){var n=M(t.touches),r=M(t.changedTouches);e&(N|F)&&(n=T(n.concat(r),"identifier",!0));return[n,r]}.call(this,t,e);e&(N|F)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:R,srcEvent:t})}}});var vt={touchstart:I,touchmove:2,touchend:N,touchcancel:F},yt="touchstart touchmove touchend touchcancel";function mt(){this.evTarget=yt,this.targetIds={},$.apply(this,arguments)}m(mt,$,{handler:function(t){var e=vt[t.type],n=function(t,e){var n=M(t.touches),r=this.targetIds;if(e&(2|I)&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,o,a=M(t.changedTouches),s=[],u=this.target;if(o=n.filter(function(t){return x(t.target,u)}),e===I)for(i=0;i<o.length;)r[o[i].identifier]=!0,i++;i=0;for(;i<a.length;)r[a[i].identifier]&&s.push(a[i]),e&(N|F)&&delete r[a[i].identifier],i++;return s.length?[T(o.concat(s),"identifier",!0),s]:void 0}.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:R,srcEvent:t})}});var gt=2500;function _t(){$.apply(this,arguments);var t=g(this.handler,this);this.touch=new mt(this.manager,t),this.mouse=new st(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function wt(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY};this.lastTouches.push(n);var r=this.lastTouches;setTimeout(function(){var t=r.indexOf(n);-1<t&&r.splice(t,1)},gt)}}m(_t,$,{handler:function(t,e,n){var r=n.pointerType==R,i="mouse"==n.pointerType;if(!(i&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)(function(t,e){t&I?(this.primaryTouch=e.changedPointers[0].identifier,wt.call(this,e)):t&(N|F)&&wt.call(this,e)}).call(this,e,n);else if(i&&function(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var i=this.lastTouches[r],o=Math.abs(e-i.x),a=Math.abs(n-i.y);if(o<=25&&a<=25)return!0}return!1}.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var bt=P(e.style,"touchAction"),St=bt!==h,xt="manipulation",Ot="none",kt="pan-x",Dt="pan-y",Mt=function(){if(!St)return!1;var e={},n=o.CSS&&o.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(t){e[t]=!n||o.CSS.supports("touch-action",t)}),e}();function Tt(t,e){this.manager=t,this.set(e)}Tt.prototype={set:function(t){"compute"==t&&(t=this.compute()),St&&this.manager.element.style&&Mt[t]&&(this.manager.element.style[bt]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return c(this.manager.recognizers,function(t){_(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))}),function(t){if(O(t,Ot))return Ot;var e=O(t,kt),n=O(t,Dt);if(e&&n)return Ot;if(e||n)return e?kt:Dt;if(O(t,xt))return xt;return"auto"}(e.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var r=this.actions,i=O(r,Ot)&&!Mt.none,o=O(r,Dt)&&!Mt[Dt],a=O(r,kt)&&!Mt[kt];if(i){var s=1===t.pointers.length,u=t.distance<2,l=t.deltaTime<250;if(s&&u&&l)return}if(!a||!o)return i||o&&n&U||a&&n&B?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var Pt=1;function Et(t){this.options=a({},this.defaults,t||{}),this.id=E++,this.manager=null,this.options.enable=w(this.options.enable,!0),this.state=Pt,this.simultaneous={},this.requireFail=[]}function At(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}function Yt(t){return t==H?"down":t==G?"up":t==z?"left":t==V?"right":""}function Lt(t,e){var n=e.manager;return n?n.get(t):t}function Ct(){Et.apply(this,arguments)}function Rt(){Ct.apply(this,arguments),this.pX=null,this.pY=null}function jt(){Ct.apply(this,arguments)}function It(){Et.apply(this,arguments),this._timer=null,this._input=null}function Nt(){Ct.apply(this,arguments)}function Ft(){Ct.apply(this,arguments)}function Wt(){Et.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function zt(t,e){return(e=e||{}).recognizers=w(e.recognizers,zt.defaults.preset),new Vt(t,e)}Et.prototype={defaults:{},set:function(t){return a(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(r(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=Lt(t,this)).id]||(e[t.id]=t).recognizeWith(this),this},dropRecognizeWith:function(t){return r(t,"dropRecognizeWith",this)||(t=Lt(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(r(t,"requireFailure",this))return this;var e=this.requireFail;return-1===D(e,t=Lt(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(r(t,"dropRequireFailure",this))return this;t=Lt(t,this);var e=D(this.requireFail,t);return-1<e&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return 0<this.requireFail.length},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(e){var n=this,t=this.state;function r(t){n.manager.emit(t,e)}t<8&&r(n.options.event+At(t)),r(n.options.event),e.additionalEvent&&r(e.additionalEvent),8<=t&&r(n.options.event+At(t))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=32},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(32|Pt)))return!1;t++}return!0},recognize:function(t){var e=a({},t);if(!_(this.options.enable,[this,e]))return this.reset(),void(this.state=32);56&this.state&&(this.state=Pt),this.state=this.process(e),30&this.state&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},m(Ct,Et,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,r=6&e,i=this.attrTest(t);return r&&(n&F||!i)?16|e:r||i?n&N?8|e:2&e?4|e:2:32}}),m(Rt,Ct,{defaults:{event:"pan",threshold:10,pointers:1,direction:Z},getTouchAction:function(){var t=this.options.direction,e=[];return t&U&&e.push(Dt),t&B&&e.push(kt),e},directionTest:function(t){var e=this.options,n=!0,r=t.distance,i=t.direction,o=t.deltaX,a=t.deltaY;return i&e.direction||(r=e.direction&U?(i=0===o?W:o<0?z:V,n=o!=this.pX,Math.abs(t.deltaX)):(i=0===a?W:a<0?G:H,n=a!=this.pY,Math.abs(t.deltaY))),t.direction=i,n&&r>e.threshold&&i&e.direction},attrTest:function(t){return Ct.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=Yt(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),m(jt,Ct,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Ot]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),m(It,Et,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distance<e.threshold,i=t.deltaTime>e.time;if(this._input=t,!r||!n||t.eventType&(N|F)&&!i)this.reset();else if(t.eventType&I)this.reset(),this._timer=l(function(){this.state=8,this.tryEmit()},e.time,this);else if(t.eventType&N)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){8===this.state&&(t&&t.eventType&N?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=d(),this.manager.emit(this.options.event,this._input)))}}),m(Nt,Ct,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Ot]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),m(Ft,Ct,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:U|B,pointers:1},getTouchAction:function(){return Rt.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(U|B)?e=t.overallVelocity:n&U?e=t.overallVelocityX:n&B&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&f(e)>this.options.velocity&&t.eventType&N},emit:function(t){var e=Yt(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),m(Wt,Et,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[xt]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distance<e.threshold,i=t.deltaTime<e.time;if(this.reset(),t.eventType&I&&0===this.count)return this.failTimeout();if(r&&i&&n){if(t.eventType!=N)return this.failTimeout();var o=!this.pTime||t.timeStamp-this.pTime<e.interval,a=!this.pCenter||nt(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,a&&o?this.count+=1:this.count=1,this._input=t,0==this.count%e.taps)return this.hasRequireFailures()?(this._timer=l(function(){this.state=8,this.tryEmit()},e.interval,this),2):8}return 32},failTimeout:function(){return this._timer=l(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),zt.VERSION="2.0.7",zt.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[Nt,{enable:!1}],[jt,{enable:!1},["rotate"]],[Ft,{direction:U}],[Rt,{direction:U},["swipe"]],[Wt],[Wt,{event:"doubletap",taps:2},["tap"]],[It]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function Vt(t,e){this.options=a({},zt.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=function(t){var e=t.options.inputClass;return new(e||(L?ft:C?mt:Y?_t:st))(t,J)}(this),this.touchAction=new Tt(this,this.options.touchAction),Gt(this,!0),c(this.options.recognizers,function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])},this)}function Gt(n,r){var i,o=n.element;o.style&&(c(n.options.cssProps,function(t,e){i=P(o.style,e),r?(n.oldCssProps[i]=o.style[i],o.style[i]=t):o.style[i]=n.oldCssProps[i]||""}),r||(n.oldCssProps={}))}Vt.prototype={set:function(t){return a(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){var n;this.touchAction.preventDefaults(t);var r=this.recognizers,i=e.curRecognizer;(!i||i&&8&i.state)&&(i=e.curRecognizer=null);for(var o=0;o<r.length;)n=r[o],2===e.stopped||i&&n!=i&&!n.canRecognizeWith(i)?n.reset():n.recognize(t),!i&&14&n.state&&(i=e.curRecognizer=n),o++}},get:function(t){if(t instanceof Et)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(r(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),(t.manager=this).touchAction.update(),t},remove:function(t){if(r(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,n=D(e,t);-1!==n&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){if(t!==h&&e!==h){var n=this.handlers;return c(k(t),function(t){n[t]=n[t]||[],n[t].push(e)}),this}},off:function(t,e){if(t!==h){var n=this.handlers;return c(k(t),function(t){e?n[t]&&n[t].splice(D(n[t],e),1):delete n[t]}),this}},emit:function(t,e){this.options.domEvents&&function(t,e){var n=i.createEvent("Event");n.initEvent(t,!0,!0),(n.gesture=e).target.dispatchEvent(n)}(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](e),r++}},destroy:function(){this.element&&Gt(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},a(zt,{INPUT_START:I,INPUT_MOVE:2,INPUT_END:N,INPUT_CANCEL:F,STATE_POSSIBLE:Pt,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:W,DIRECTION_LEFT:z,DIRECTION_RIGHT:V,DIRECTION_UP:G,DIRECTION_DOWN:H,DIRECTION_HORIZONTAL:U,DIRECTION_VERTICAL:B,DIRECTION_ALL:Z,Manager:Vt,Input:$,TouchAction:Tt,TouchInput:mt,MouseInput:st,PointerEventInput:ft,TouchMouseInput:_t,SingleTouchInput:pt,Recognizer:Et,AttrRecognizer:Ct,Tap:Wt,Pan:Rt,Swipe:Ft,Pinch:jt,Rotate:Nt,Press:It,on:b,off:S,each:c,merge:y,extend:v,assign:a,inherit:m,bindFn:g,prefixed:P}),(void 0!==o?o:"undefined"!=typeof self?self:{}).Hammer=zt,"function"==typeof h&&h.amd?h(function(){return zt}):Ht.exports?Ht.exports=zt:o.Hammer=zt}(window,document)}),S_=Go(function(t){if("undefined"!=typeof window){var e=w_,n=window.Hammer||b_;t.exports=e(n,{preventDefault:"mouse"})}else t.exports=function(){return function(){function e(){}return{on:e,off:e,destroy:e,emit:e,get:function(t){return{set:e}}}}()}}),x_=Go(function(t,e){t.exports=function(t){var e,i=t&&t.preventDefault||!1,n=t&&t.container||window,r={},a={keydown:{},keyup:{}},s={};for(e=97;e<=122;e++)s[String.fromCharCode(e)]={code:e-97+65,shift:!1};for(e=65;e<=90;e++)s[String.fromCharCode(e)]={code:e,shift:!0};for(e=0;e<=9;e++)s[""+e]={code:48+e,shift:!1};for(e=1;e<=12;e++)s["F"+e]={code:111+e,shift:!1};for(e=0;e<=9;e++)s["num"+e]={code:96+e,shift:!1};function o(t){l(t,"keydown")}function u(t){l(t,"keyup")}s["num*"]={code:106,shift:!1},s["num+"]={code:107,shift:!1},s["num-"]={code:109,shift:!1},s["num/"]={code:111,shift:!1},s["num."]={code:110,shift:!1},s.left={code:37,shift:!1},s.up={code:38,shift:!1},s.right={code:39,shift:!1},s.down={code:40,shift:!1},s.space={code:32,shift:!1},s.enter={code:13,shift:!1},s.shift={code:16,shift:void 0},s.esc={code:27,shift:!1},s.backspace={code:8,shift:!1},s.tab={code:9,shift:!1},s.ctrl={code:17,shift:!1},s.alt={code:18,shift:!1},s.delete={code:46,shift:!1},s.pageup={code:33,shift:!1},s.pagedown={code:34,shift:!1},s["="]={code:187,shift:!1},s["-"]={code:189,shift:!1},s["]"]={code:221,shift:!1},s["["]={code:219,shift:!1};var l=function(t,e){if(void 0!==a[e][t.keyCode]){for(var n=a[e][t.keyCode],r=0;r<n.length;r++)void 0===n[r].shift?n[r].fn(t):1==n[r].shift&&1==t.shiftKey?n[r].fn(t):0==n[r].shift&&0==t.shiftKey&&n[r].fn(t);1==i&&t.preventDefault()}};return r.bind=function(t,e,n){if(void 0===n&&(n="keydown"),void 0===s[t])throw new Error("unsupported key: "+t);void 0===a[n][s[t].code]&&(a[n][s[t].code]=[]),a[n][s[t].code].push({fn:e,shift:s[t].shift})},r.bindAll=function(t,e){for(var n in void 0===e&&(e="keydown"),s)s.hasOwnProperty(n)&&r.bind(n,t,e)},r.getKey=function(t){for(var e in s)if(s.hasOwnProperty(e)){if(1==t.shiftKey&&1==s[e].shift&&t.keyCode==s[e].code)return e;if(0==t.shiftKey&&0==s[e].shift&&t.keyCode==s[e].code)return e;if(t.keyCode==s[e].code&&"shift"==e)return e}return"unknown key, currently not supported"},r.unbind=function(t,e,n){if(void 0===n&&(n="keydown"),void 0===s[t])throw new Error("unsupported key: "+t);if(void 0!==e){var r=[],i=a[n][s[t].code];if(void 0!==i)for(var o=0;o<i.length;o++)i[o].fn==e&&i[o].shift==s[t].shift||r.push(a[n][s[t].code][o]);a[n][s[t].code]=r}else a[n][s[t].code]=[]},r.reset=function(){a={keydown:{},keyup:{}}},r.destroy=function(){a={keydown:{},keyup:{}},n.removeEventListener("keydown",o,!0),n.removeEventListener("keyup",u,!0)},n.addEventListener("keydown",o,!0),n.addEventListener("keyup",u,!0),r}}),O_=bg,k_=Uo,D_=t_.DataSet,M_=t_.DataView,T_=t_.Queue,P_=m_,E_={Camera:Mg,Filter:r_,Point2d:wg,Point3d:_g,Slider:xg,StepNumber:kg},A_=__,Y_=S_,L_=x_,C_={util:O_,DOMutil:k_,DataSet:D_,DataView:M_,Queue:T_,Graph3d:P_,graph3d:E_,moment:A_,Hammer:Y_,keycharm:L_};t.DOMutil=k_,t.DataSet=D_,t.DataView=M_,t.Graph3d=P_,t.Hammer=Y_,t.Queue=T_,t.default=C_,t.graph3d=E_,t.keycharm=L_,t.moment=A_,t.util=O_,Object.defineProperty(t,"__esModule",{value:!0})});