vis-graph3d
Version:
Create interactive, animated 3d graphs. Surfaces, lines, dots and block styling out of the box.
28 lines • 219 kB
JavaScript
/**
* vis-graph3d
* https://visjs.github.io/vis-graph3d/
*
* Create interactive, animated 3d graphs. Surfaces, lines, dots and block styling out of the box.
*
* @version 7.0.4
* @date 2026-10-25T13:37:47.656Z
*
* @copyright (c) 2011-2017 Almende B.V, http://almende.com
* @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
*
* @license
* vis.js is dual licensed under both
*
* 1. The Apache 2.0 License
* http://www.apache.org/licenses/LICENSE-2.0
*
* and
*
* 2. The MIT License
* http://opensource.org/licenses/MIT
*
* vis.js may be distributed under either license.
*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).vis=t.vis||{})}(this,function(t){"use strict";function e(){return e=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},e.apply(this,arguments)}function n(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var i;i="function"!=typeof Object.assign?function(t){if(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(null!=r)for(var i in r)r.hasOwnProperty(i)&&(e[i]=r[i])}return e}:Object.assign;var o,s=i,a=["","webkit","Moz","MS","ms","o"],u="undefined"==typeof document?{style:{}}:document.createElement("div"),c=Math.round,l=Math.abs,h=Date.now;function f(t,e){for(var n,r,i=e[0].toUpperCase()+e.slice(1),o=0;o<a.length;){if((r=(n=a[o])?n+i:e)in t)return r;o++}}o="undefined"==typeof window?{}:window;var d=f(u.style,"touchAction"),p=void 0!==d;var v="compute",m="auto",g="manipulation",y="none",b="pan-x",w="pan-y",x=function(){if(!p)return!1;var t={},e=o.CSS&&o.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(n){return t[n]=!e||o.CSS.supports("touch-action",n)}),t}(),_="ontouchstart"in o,C=void 0!==f(o,"PointerEvent"),S=_&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),E="touch",T="mouse",k=16,O=24,A=["x","y"],D=["clientX","clientY"];function P(t,e,n){var r;if(t)if(t.forEach)t.forEach(e,n);else if(void 0!==t.length)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 L(t,e){return"function"==typeof t?t.apply(e&&e[0]||void 0,e):t}function R(t,e){return t.indexOf(e)>-1}var F=function(){function t(t,e){this.manager=t,this.set(e)}var e=t.prototype;return e.set=function(t){t===v&&(t=this.compute()),p&&this.manager.element.style&&x[t]&&(this.manager.element.style[d]=t),this.actions=t.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var t=[];return P(this.manager.recognizers,function(e){L(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))}),function(t){if(R(t,y))return y;var e=R(t,b),n=R(t,w);return e&&n?y:e||n?e?b:w:R(t,g)?g:m}(t.join(" "))},e.preventDefaults=function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var r=this.actions,i=R(r,y)&&!x[y],o=R(r,w)&&!x[w],s=R(r,b)&&!x[b];if(i){var a=1===t.pointers.length,u=t.distance<2,c=t.deltaTime<250;if(a&&u&&c)return}if(!s||!o)return i||o&&6&n||s&&n&O?this.preventSrc(e):void 0}},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t}();function M(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function I(t){var e=t.length;if(1===e)return{x:c(t[0].clientX),y:c(t[0].clientY)};for(var n=0,r=0,i=0;i<e;)n+=t[i].clientX,r+=t[i].clientY,i++;return{x:c(n/e),y:c(r/e)}}function j(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:c(t.pointers[n].clientX),clientY:c(t.pointers[n].clientY)},n++;return{timeStamp:h(),pointers:e,center:I(e),deltaX:t.deltaX,deltaY:t.deltaY}}function z(t,e,n){n||(n=A);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return Math.sqrt(r*r+i*i)}function N(t,e,n){n||(n=A);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return 180*Math.atan2(i,r)/Math.PI}function B(t,e){return t===e?1:l(t)>=l(e)?t<0?2:4:e<0?8:k}function W(t,e,n){return{x:e/t||0,y:n/t||0}}function Y(t,e){var n=t.session,r=e.pointers,i=r.length;n.firstInput||(n.firstInput=j(e)),i>1&&!n.firstMultiple?n.firstMultiple=j(e):1===i&&(n.firstMultiple=!1);var o=n.firstInput,s=n.firstMultiple,a=s?s.center:o.center,u=e.center=I(r);e.timeStamp=h(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=N(a,u),e.distance=z(a,u),function(t,e){var n=e.center,r=t.offsetDelta||{},i=t.prevDelta||{},o=t.prevInput||{};1!==e.eventType&&4!==o.eventType||(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=B(e.deltaX,e.deltaY);var c,f,d=W(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=d.x,e.overallVelocityY=d.y,e.overallVelocity=l(d.x)>l(d.y)?d.x:d.y,e.scale=s?(c=s.pointers,z((f=r)[0],f[1],D)/z(c[0],c[1],D)):1,e.rotation=s?function(t,e){return N(e[1],e[0],D)+N(t[1],t[0],D)}(s.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,s=t.lastInterval||e,a=e.timeStamp-s.timeStamp;if(8!==e.eventType&&(a>25||void 0===s.velocity)){var u=e.deltaX-s.deltaX,c=e.deltaY-s.deltaY,h=W(a,u,c);r=h.x,i=h.y,n=l(h.x)>l(h.y)?h.x:h.y,o=B(u,c),t.lastInterval=e}else n=s.velocity,r=s.velocityX,i=s.velocityY,o=s.direction;e.velocity=n,e.velocityX=r,e.velocityY=i,e.direction=o}(n,e);var p,v=t.element,m=e.srcEvent;M(p=m.composedPath?m.composedPath()[0]:m.path?m.path[0]:m.target,v)&&(v=p),e.target=v}function G(t,e,n){var r=n.pointers.length,i=n.changedPointers.length,o=1&e&&r-i===0,s=12&e&&r-i===0;n.isFirst=!!o,n.isFinal=!!s,o&&(t.session={}),n.eventType=e,Y(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function V(t){return t.trim().split(/\s+/g)}function U(t,e,n){P(V(e),function(e){t.addEventListener(e,n,!1)})}function X(t,e,n){P(V(e),function(e){t.removeEventListener(e,n,!1)})}function H(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var q=function(){function t(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){L(t.options.enable,[t])&&n.handler(e)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&U(this.element,this.evEl,this.domHandler),this.evTarget&&U(this.target,this.evTarget,this.domHandler),this.evWin&&U(H(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&X(this.element,this.evEl,this.domHandler),this.evTarget&&X(this.target,this.evTarget,this.domHandler),this.evWin&&X(H(this.element),this.evWin,this.domHandler)},t}();function Z(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}var J={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},K={2:E,3:"pen",4:T,5:"kinect"},Q="pointerdown",$="pointermove pointerup pointercancel";o.MSPointerEvent&&!o.PointerEvent&&(Q="MSPointerDown",$="MSPointerMove MSPointerUp MSPointerCancel");var tt=function(t){function e(){var n,r=e.prototype;return r.evEl=Q,r.evWin=$,(n=t.apply(this,arguments)||this).store=n.manager.session.pointerEvents=[],n}return n(e,t),e.prototype.handler=function(t){var e=this.store,n=!1,r=t.type.toLowerCase().replace("ms",""),i=J[r],o=K[t.pointerType]||t.pointerType,s=o===E,a=Z(e,t.pointerId,"pointerId");1&i&&(0===t.button||s)?a<0&&(e.push(t),a=e.length-1):12&i&&(n=!0),a<0||(e[a]=t,this.callback(this.manager,i,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(a,1))},e}(q);function et(t){return Array.prototype.slice.call(t,0)}function nt(t,e,n){for(var r=[],i=[],o=0;o<t.length;){var s=e?t[o][e]:t[o];Z(i,s)<0&&r.push(t[o]),i[o]=s,o++}return n&&(r=e?r.sort(function(t,n){return t[e]>n[e]}):r.sort()),r}var rt={touchstart:1,touchmove:2,touchend:4,touchcancel:8},it=function(t){function e(){var n;return e.prototype.evTarget="touchstart touchmove touchend touchcancel",(n=t.apply(this,arguments)||this).targetIds={},n}return n(e,t),e.prototype.handler=function(t){var e=rt[t.type],n=ot.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:E,srcEvent:t})},e}(q);function ot(t,e){var n,r,i=et(t.touches),o=this.targetIds;if(3&e&&1===i.length)return o[i[0].identifier]=!0,[i,i];var s=et(t.changedTouches),a=[],u=this.target;if(r=i.filter(function(t){return M(t.target,u)}),1===e)for(n=0;n<r.length;)o[r[n].identifier]=!0,n++;for(n=0;n<s.length;)o[s[n].identifier]&&a.push(s[n]),12&e&&delete o[s[n].identifier],n++;return a.length?[nt(r.concat(a),"identifier",!0),a]:void 0}var st={mousedown:1,mousemove:2,mouseup:4},at=function(t){function e(){var n,r=e.prototype;return r.evEl="mousedown",r.evWin="mousemove mouseup",(n=t.apply(this,arguments)||this).pressed=!1,n}return n(e,t),e.prototype.handler=function(t){var e=st[t.type];1&e&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=4),this.pressed&&(4&e&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:T,srcEvent:t}))},e}(q);function ut(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY},r=this.lastTouches;this.lastTouches.push(n);setTimeout(function(){var t=r.indexOf(n);t>-1&&r.splice(t,1)},2500)}}function ct(t,e){1&t?(this.primaryTouch=e.changedPointers[0].identifier,ut.call(this,e)):12&t&&ut.call(this,e)}function lt(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),s=Math.abs(n-i.y);if(o<=25&&s<=25)return!0}return!1}var ht=function(){return function(t){function e(e,n){var i;return(i=t.call(this,e,n)||this).handler=function(t,e,n){var o=n.pointerType===E,s=n.pointerType===T;if(!(s&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(o)ct.call(r(r(i)),e,n);else if(s&<.call(r(r(i)),n))return;i.callback(t,e,n)}},i.touch=new it(i.manager,i.handler),i.mouse=new at(i.manager,i.handler),i.primaryTouch=null,i.lastTouches=[],i}return n(e,t),e.prototype.destroy=function(){this.touch.destroy(),this.mouse.destroy()},e}(q)}();function ft(t,e,n){return!!Array.isArray(t)&&(P(t,n[e],n),!0)}var dt=32,pt=1;function vt(t,e){var n=e.manager;return n?n.get(t):t}function mt(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}var gt=function(){function t(t){void 0===t&&(t={}),this.options=e({enable:!0},t),this.id=pt++,this.manager=null,this.state=1,this.simultaneous={},this.requireFail=[]}var n=t.prototype;return n.set=function(t){return s(this.options,t),this.manager&&this.manager.touchAction.update(),this},n.recognizeWith=function(t){if(ft(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=vt(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},n.dropRecognizeWith=function(t){return ft(t,"dropRecognizeWith",this)||(t=vt(t,this),delete this.simultaneous[t.id]),this},n.requireFailure=function(t){if(ft(t,"requireFailure",this))return this;var e=this.requireFail;return-1===Z(e,t=vt(t,this))&&(e.push(t),t.requireFailure(this)),this},n.dropRequireFailure=function(t){if(ft(t,"dropRequireFailure",this))return this;t=vt(t,this);var e=Z(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},n.hasRequireFailures=function(){return this.requireFail.length>0},n.canRecognizeWith=function(t){return!!this.simultaneous[t.id]},n.emit=function(t){var e=this,n=this.state;function r(n){e.manager.emit(n,t)}n<8&&r(e.options.event+mt(n)),r(e.options.event),t.additionalEvent&&r(t.additionalEvent),n>=8&&r(e.options.event+mt(n))},n.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=dt},n.canEmit=function(){for(var t=0;t<this.requireFail.length;){if(!(33&this.requireFail[t].state))return!1;t++}return!0},n.recognize=function(t){var e=s({},t);if(!L(this.options.enable,[this,e]))return this.reset(),void(this.state=dt);56&this.state&&(this.state=1),this.state=this.process(e),30&this.state&&this.tryEmit(e)},n.process=function(t){},n.getTouchAction=function(){},n.reset=function(){},t}(),yt=function(t){function r(n){var r;return void 0===n&&(n={}),(r=t.call(this,e({event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},n))||this).pTime=!1,r.pCenter=!1,r._timer=null,r._input=null,r.count=0,r}n(r,t);var i=r.prototype;return i.getTouchAction=function(){return[g]},i.process=function(t){var e=this,n=this.options,r=t.pointers.length===n.pointers,i=t.distance<n.threshold,o=t.deltaTime<n.time;if(this.reset(),1&t.eventType&&0===this.count)return this.failTimeout();if(i&&o&&r){if(4!==t.eventType)return this.failTimeout();var s=!this.pTime||t.timeStamp-this.pTime<n.interval,a=!this.pCenter||z(this.pCenter,t.center)<n.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,a&&s?this.count+=1:this.count=1,this._input=t,0===this.count%n.taps)return this.hasRequireFailures()?(this._timer=setTimeout(function(){e.state=8,e.tryEmit()},n.interval),2):8}return dt},i.failTimeout=function(){var t=this;return this._timer=setTimeout(function(){t.state=dt},this.options.interval),dt},i.reset=function(){clearTimeout(this._timer)},i.emit=function(){8===this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},r}(gt),bt=function(t){function r(n){return void 0===n&&(n={}),t.call(this,e({pointers:1},n))||this}n(r,t);var i=r.prototype;return i.attrTest=function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},i.process=function(t){var e=this.state,n=t.eventType,r=6&e,i=this.attrTest(t);return r&&(8&n||!i)?16|e:r||i?4&n?8|e:2&e?4|e:2:dt},r}(gt);function wt(t){return t===k?"down":8===t?"up":2===t?"left":4===t?"right":""}var xt=function(t){function r(n){var r;return void 0===n&&(n={}),(r=t.call(this,e({event:"pan",threshold:10,pointers:1,direction:30},n))||this).pX=null,r.pY=null,r}n(r,t);var i=r.prototype;return i.getTouchAction=function(){var t=this.options.direction,e=[];return 6&t&&e.push(w),t&O&&e.push(b),e},i.directionTest=function(t){var e=this.options,n=!0,r=t.distance,i=t.direction,o=t.deltaX,s=t.deltaY;return i&e.direction||(6&e.direction?(i=0===o?1:o<0?2:4,n=o!==this.pX,r=Math.abs(t.deltaX)):(i=0===s?1:s<0?8:k,n=s!==this.pY,r=Math.abs(t.deltaY))),t.direction=i,n&&r>e.threshold&&i&e.direction},i.attrTest=function(t){return bt.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},i.emit=function(e){this.pX=e.deltaX,this.pY=e.deltaY;var n=wt(e.direction);n&&(e.additionalEvent=this.options.event+n),t.prototype.emit.call(this,e)},r}(bt),_t=function(t){function r(n){return void 0===n&&(n={}),t.call(this,e({event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},n))||this}n(r,t);var i=r.prototype;return i.getTouchAction=function(){return xt.prototype.getTouchAction.call(this)},i.attrTest=function(e){var n,r=this.options.direction;return 30&r?n=e.overallVelocity:6&r?n=e.overallVelocityX:r&O&&(n=e.overallVelocityY),t.prototype.attrTest.call(this,e)&&r&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers===this.options.pointers&&l(n)>this.options.velocity&&4&e.eventType},i.emit=function(t){var e=wt(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)},r}(bt),Ct=function(t){function r(n){return void 0===n&&(n={}),t.call(this,e({event:"pinch",threshold:0,pointers:2},n))||this}n(r,t);var i=r.prototype;return i.getTouchAction=function(){return[y]},i.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},i.emit=function(e){if(1!==e.scale){var n=e.scale<1?"in":"out";e.additionalEvent=this.options.event+n}t.prototype.emit.call(this,e)},r}(bt),St=function(t){function r(n){return void 0===n&&(n={}),t.call(this,e({event:"rotate",threshold:0,pointers:2},n))||this}n(r,t);var i=r.prototype;return i.getTouchAction=function(){return[y]},i.attrTest=function(e){return t.prototype.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)},r}(bt),Et=function(t){function r(n){var r;return void 0===n&&(n={}),(r=t.call(this,e({event:"press",pointers:1,time:251,threshold:9},n))||this)._timer=null,r._input=null,r}n(r,t);var i=r.prototype;return i.getTouchAction=function(){return[m]},i.process=function(t){var e=this,n=this.options,r=t.pointers.length===n.pointers,i=t.distance<n.threshold,o=t.deltaTime>n.time;if(this._input=t,!i||!r||12&t.eventType&&!o)this.reset();else if(1&t.eventType)this.reset(),this._timer=setTimeout(function(){e.state=8,e.tryEmit()},n.time);else if(4&t.eventType)return 8;return dt},i.reset=function(){clearTimeout(this._timer)},i.emit=function(t){8===this.state&&(t&&4&t.eventType?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=h(),this.manager.emit(this.options.event,this._input)))},r}(gt),Tt={domEvents:!1,touchAction:v,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},kt=[[St,{enable:!1}],[Ct,{enable:!1},["rotate"]],[_t,{direction:6}],[xt,{direction:6},["swipe"]],[yt],[yt,{event:"doubletap",taps:2},["tap"]],[Et]];function Ot(t,e){var n,r=t.element;r.style&&(P(t.options.cssProps,function(i,o){n=f(r.style,o),e?(t.oldCssProps[n]=r.style[n],r.style[n]=i):r.style[n]=t.oldCssProps[n]||""}),e||(t.oldCssProps={}))}var At=function(){function t(t,e){var n,r=this;this.options=s({},Tt,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((n=this).options.inputClass||(C?tt:S?it:_?ht:at))(n,G),this.touchAction=new F(this,this.options.touchAction),Ot(this,!0),P(this.options.recognizers,function(t){var e=r.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])},this)}var e=t.prototype;return e.set=function(t){return s(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},e.stop=function(t){this.session.stopped=t?2:1},e.recognize=function(t){var e=this.session;if(!e.stopped){var n;this.touchAction.preventDefaults(t);var r=this.recognizers,i=e.curRecognizer;(!i||i&&8&i.state)&&(e.curRecognizer=null,i=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&&(e.curRecognizer=n,i=n),o++}},e.get=function(t){if(t instanceof gt)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event===t)return e[n];return null},e.add=function(t){if(ft(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},e.remove=function(t){if(ft(t,"remove",this))return this;var e=this.get(t);if(t){var n=this.recognizers,r=Z(n,e);-1!==r&&(n.splice(r,1),this.touchAction.update())}return this},e.on=function(t,e){if(void 0===t||void 0===e)return this;var n=this.handlers;return P(V(t),function(t){n[t]=n[t]||[],n[t].push(e)}),this},e.off=function(t,e){if(void 0===t)return this;var n=this.handlers;return P(V(t),function(t){e?n[t]&&n[t].splice(Z(n[t],e),1):delete n[t]}),this},e.emit=function(t,e){this.options.domEvents&&function(t,e){var n=document.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,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++}},e.destroy=function(){this.element&&Ot(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},t}(),Dt={touchstart:1,touchmove:2,touchend:4,touchcancel:8},Pt=function(t){function e(){var n,r=e.prototype;return r.evTarget="touchstart",r.evWin="touchstart touchmove touchend touchcancel",(n=t.apply(this,arguments)||this).started=!1,n}return n(e,t),e.prototype.handler=function(t){var e=Dt[t.type];if(1===e&&(this.started=!0),this.started){var n=Lt.call(this,t,e);12&e&&n[0].length-n[1].length===0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:E,srcEvent:t})}},e}(q);function Lt(t,e){var n=et(t.touches),r=et(t.changedTouches);return 12&e&&(n=nt(n.concat(r),"identifier",!0)),[n,r]}function Rt(t,e,n){var r="DEPRECATED METHOD: "+e+"\n"+n+" AT \n";return function(){var e=new Error("get-stack-trace"),n=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",i=window.console&&(window.console.warn||window.console.log);return i&&i.call(window.console,r,n),t.apply(this,arguments)}}var Ft=Rt(function(t,e,n){for(var r=Object.keys(e),i=0;i<r.length;)(!n||n&&void 0===t[r[i]])&&(t[r[i]]=e[r[i]]),i++;return t},"extend","Use `assign`."),Mt=Rt(function(t,e){return Ft(t,e,!0)},"merge","Use `assign`.");function It(t,e,n){var r,i=e.prototype;(r=t.prototype=Object.create(i)).constructor=t,r._super=i,n&&s(r,n)}function jt(t,e){return function(){return t.apply(e,arguments)}}var zt=function(){var t=function(t,n){return void 0===n&&(n={}),new At(t,e({recognizers:kt.concat()},n))};return t.VERSION="2.0.17-rc",t.DIRECTION_ALL=30,t.DIRECTION_DOWN=k,t.DIRECTION_LEFT=2,t.DIRECTION_RIGHT=4,t.DIRECTION_UP=8,t.DIRECTION_HORIZONTAL=6,t.DIRECTION_VERTICAL=O,t.DIRECTION_NONE=1,t.DIRECTION_DOWN=k,t.INPUT_START=1,t.INPUT_MOVE=2,t.INPUT_END=4,t.INPUT_CANCEL=8,t.STATE_POSSIBLE=1,t.STATE_BEGAN=2,t.STATE_CHANGED=4,t.STATE_ENDED=8,t.STATE_RECOGNIZED=8,t.STATE_CANCELLED=16,t.STATE_FAILED=dt,t.Manager=At,t.Input=q,t.TouchAction=F,t.TouchInput=it,t.MouseInput=at,t.PointerEventInput=tt,t.TouchMouseInput=ht,t.SingleTouchInput=Pt,t.Recognizer=gt,t.AttrRecognizer=bt,t.Tap=yt,t.Pan=xt,t.Swipe=_t,t.Pinch=Ct,t.Rotate=St,t.Press=Et,t.on=U,t.off=X,t.each=P,t.merge=Mt,t.extend=Ft,t.bindFn=jt,t.assign=s,t.inherit=It,t.bindFn=jt,t.prefixed=f,t.toArray=et,t.inArray=Z,t.uniqueArray=nt,t.splitStr=V,t.boolOrFn=L,t.hasParent=M,t.addEventListeners=U,t.removeEventListeners=X,t.defaults=s({},Tt,{preset:kt}),t}();function Nt(t){var e,n=t&&t.preventDefault||!1,r=t&&t.container||window,i={},o={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};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 a=function(t){c(t,"keydown")},u=function(t){c(t,"keyup")},c=function(t,e){if(void 0!==o[e][t.keyCode]){for(var r=o[e][t.keyCode],i=0;i<r.length;i++)(void 0===r[i].shift||1==r[i].shift&&1==t.shiftKey||0==r[i].shift&&0==t.shiftKey)&&r[i].fn(t);1==n&&t.preventDefault()}};return i.bind=function(t,e,n){if(void 0===n&&(n="keydown"),void 0===s[t])throw new Error("unsupported key: "+t);void 0===o[n][s[t].code]&&(o[n][s[t].code]=[]),o[n][s[t].code].push({fn:e,shift:s[t].shift})},i.bindAll=function(t,e){for(var n in void 0===e&&(e="keydown"),s)s.hasOwnProperty(n)&&i.bind(n,t,e)},i.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"},i.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=o[n][s[t].code];if(void 0!==i)for(var a=0;a<i.length;a++)i[a].fn==e&&i[a].shift==s[t].shift||r.push(o[n][s[t].code][a]);o[n][s[t].code]=r}else o[n][s[t].code]=[]},i.reset=function(){o={keydown:{},keyup:{}}},i.destroy=function(){o={keydown:{},keyup:{}},r.removeEventListener("keydown",a,!0),r.removeEventListener("keyup",u,!0)},r.addEventListener("keydown",a,!0),r.addEventListener("keyup",u,!0),i}zt.defaults;var Bt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Wt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Yt,Gt,Vt,Ut,Xt,Ht,qt,Zt,Jt,Kt,Qt,$t,te,ee,ne,re,ie={},oe={};function se(){if(Gt)return Yt;Gt=1;var t=function(t){return t&&t.Math===Math&&t};return Yt=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof Bt&&Bt)||t("object"==typeof Yt&&Yt)||function(){return this}()||Function("return this")()}function ae(){return Ut?Vt:(Ut=1,Vt=function(t){try{return!!t()}catch(t){return!0}})}function ue(){return Ht?Xt:(Ht=1,Xt=!ae()(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))}function ce(){if(Zt)return qt;Zt=1;var t=ue(),e=Function.prototype,n=e.apply,r=e.call;return qt="object"==typeof Reflect&&Reflect.apply||(t?r.bind(n):function(){return r.apply(n,arguments)}),qt}function le(){if(Kt)return Jt;Kt=1;var t=ue(),e=Function.prototype,n=e.call,r=t&&e.bind.bind(n,n);return Jt=t?r:function(t){return function(){return n.apply(t,arguments)}},Jt}function he(){if($t)return Qt;$t=1;var t=le(),e=t({}.toString),n=t("".slice);return Qt=function(t){return n(e(t),8,-1)}}function fe(){if(ee)return te;ee=1;var t=he(),e=le();return te=function(n){if("Function"===t(n))return e(n)}}function de(){if(re)return ne;re=1;var t="object"==typeof document&&document.all;return ne=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(t){return"function"==typeof t}}var pe,ve,me,ge,ye={};function be(){return ve?pe:(ve=1,pe=!ae()(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))}function we(){if(ge)return me;ge=1;var t=ue(),e=Function.prototype.call;return me=t?e.bind(e):function(){return e.apply(e,arguments)},me}var xe,_e,Ce,Se,Ee,Te,ke,Oe,Ae,De,Pe,Le,Re,Fe,Me,Ie,je,ze,Ne,Be,We,Ye,Ge,Ve,Ue,Xe,He,qe,Ze,Je,Ke,Qe,$e,tn,en,nn,rn,on={};function sn(){if(xe)return on;xe=1;var t={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,n=e&&!t.call({1:2},1);return on.f=n?function(t){var n=e(this,t);return!!n&&n.enumerable}:t,on}function an(){return Ce?_e:(Ce=1,_e=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}})}function un(){if(Ee)return Se;Ee=1;var t=le(),e=ae(),n=he(),r=Object,i=t("".split);return Se=e(function(){return!r("z").propertyIsEnumerable(0)})?function(t){return"String"===n(t)?i(t,""):r(t)}:r}function cn(){return ke?Te:(ke=1,Te=function(t){return null==t})}function ln(){if(Ae)return Oe;Ae=1;var t=cn(),e=TypeError;return Oe=function(n){if(t(n))throw new e("Can't call method on "+n);return n}}function hn(){if(Pe)return De;Pe=1;var t=un(),e=ln();return De=function(n){return t(e(n))}}function fn(){if(Re)return Le;Re=1;var t=de();return Le=function(e){return"object"==typeof e?null!==e:t(e)}}function dn(){return Me?Fe:(Me=1,Fe={})}function pn(){if(je)return Ie;je=1;var t=dn(),e=se(),n=de(),r=function(t){return n(t)?t:void 0};return Ie=function(n,i){return arguments.length<2?r(t[n])||r(e[n]):t[n]&&t[n][i]||e[n]&&e[n][i]},Ie}function vn(){return Ne?ze:(Ne=1,ze=le()({}.isPrototypeOf))}function mn(){if(We)return Be;We=1;var t=se().navigator,e=t&&t.userAgent;return Be=e?String(e):""}function gn(){if(Ge)return Ye;Ge=1;var t,e,n=se(),r=mn(),i=n.process,o=n.Deno,s=i&&i.versions||o&&o.version,a=s&&s.v8;return a&&(e=(t=a.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1])),!e&&r&&(!(t=r.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=r.match(/Chrome\/(\d+)/))&&(e=+t[1]),Ye=e}function yn(){if(Ue)return Ve;Ue=1;var t=gn(),e=ae(),n=se().String;return Ve=!!Object.getOwnPropertySymbols&&!e(function(){var e=Symbol("symbol detection");return!n(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&t&&t<41}),Ve}function bn(){return He?Xe:(He=1,Xe=yn()&&!Symbol.sham&&"symbol"==typeof Symbol.iterator)}function wn(){if(Ze)return qe;Ze=1;var t=pn(),e=de(),n=vn(),r=Object;return qe=bn()?function(t){return"symbol"==typeof t}:function(i){var o=t("Symbol");return e(o)&&n(o.prototype,r(i))}}function xn(){if(Ke)return Je;Ke=1;var t=String;return Je=function(e){try{return t(e)}catch(t){return"Object"}}}function _n(){if($e)return Qe;$e=1;var t=de(),e=xn(),n=TypeError;return Qe=function(r){if(t(r))return r;throw new n(e(r)+" is not a function")}}function Cn(){if(en)return tn;en=1;var t=_n(),e=cn();return tn=function(n,r){var i=n[r];return e(i)?void 0:t(i)}}function Sn(){if(rn)return nn;rn=1;var t=we(),e=de(),n=fn(),r=TypeError;return nn=function(i,o){var s,a;if("string"===o&&e(s=i.toString)&&!n(a=t(s,i)))return a;if(e(s=i.valueOf)&&!n(a=t(s,i)))return a;if("string"!==o&&e(s=i.toString)&&!n(a=t(s,i)))return a;throw new r("Can't convert object to primitive value")}}var En,Tn,kn,On,An,Dn,Pn,Ln,Rn,Fn,Mn,In,jn,zn,Nn,Bn,Wn,Yn,Gn,Vn,Un,Xn,Hn,qn,Zn,Jn,Kn,Qn,$n={exports:{}};function tr(){return Tn?En:(Tn=1,En=!0)}function er(){if(On)return kn;On=1;var t=se(),e=Object.defineProperty;return kn=function(n,r){try{e(t,n,{value:r,configurable:!0,writable:!0})}catch(e){t[n]=r}return r}}function nr(){if(An)return $n.exports;An=1;var t=tr(),e=se(),n=er(),r="__core-js_shared__",i=$n.exports=e[r]||n(r,{});return(i.versions||(i.versions=[])).push({version:"3.50.0",mode:t?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.50.0/LICENSE",source:"https://github.com/zloirock/core-js"}),$n.exports}function rr(){if(Pn)return Dn;Pn=1;var t=nr(),e=Object.create||Object;return Dn=function(n,r){return t[n]||(t[n]=r||e(null))}}function ir(){if(Rn)return Ln;Rn=1;var t=ln(),e=Object;return Ln=function(n){return e(t(n))}}function or(){if(Mn)return Fn;Mn=1;var t=le(),e=ir(),n=t({}.hasOwnProperty);return Fn=Object.hasOwn||function(t,r){return n(e(t),r)}}function sr(){if(jn)return In;jn=1;var t=le(),e=0,n=Math.random(),r=t(1.1.toString);return In=function(t){return"Symbol("+(void 0===t?"":t)+")_"+r(++e+n,36)}}function ar(){if(Nn)return zn;Nn=1;var t=se(),e=rr(),n=or(),r=sr(),i=yn(),o=bn(),s=t.Symbol,a=e("wks"),u=o?s.for||s:s&&s.withoutSetter||r;return zn=function(t){return n(a,t)||(a[t]=i&&n(s,t)?s[t]:u("Symbol."+t)),a[t]}}function ur(){if(Wn)return Bn;Wn=1;var t=we(),e=fn(),n=wn(),r=Cn(),i=Sn(),o=TypeError,s=ar()("toPrimitive");return Bn=function(a,u){if(!e(a)||n(a))return a;var c,l=r(a,s);if(l){if(void 0===u&&(u="default"),c=t(l,a,u),!e(c)||n(c))return c;throw new o("Can't convert object to primitive value")}return void 0===u&&(u="number"),i(a,u)}}function cr(){if(Gn)return Yn;Gn=1;var t=ur(),e=wn();return Yn=function(n){var r=t(n,"string");return e(r)?r:r+""}}function lr(){if(Un)return Vn;Un=1;var t=se(),e=fn(),n=t.document,r=e(n)&&e(n.createElement);return Vn=function(t){return r?n.createElement(t):{}}}function hr(){if(Hn)return Xn;Hn=1;var t=be(),e=ae(),n=lr();return Xn=!t&&!e(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})}function fr(){if(qn)return ye;qn=1;var t=be(),e=we(),n=sn(),r=an(),i=hn(),o=cr(),s=or(),a=hr(),u=Object.getOwnPropertyDescriptor;return ye.f=t?u:function(t,c){if(t=i(t),c=o(c),a)try{return u(t,c)}catch(t){}if(s(t,c))return r(!e(n.f,t,c),t[c])},ye}function dr(){if(Jn)return Zn;Jn=1;var t=ae(),e=de(),n=/#|\.prototype\./,r=function(n,r){var u=o[i(n)];return u===a||u!==s&&(e(r)?t(r):!!r)},i=r.normalize=function(t){return String(t).replace(n,".").toLowerCase()},o=r.data={},s=r.NATIVE="N",a=r.POLYFILL="P";return Zn=r}function pr(){if(Qn)return Kn;Qn=1;var t=fe(),e=_n(),n=ue(),r=t(t.bind);return Kn=function(t,i){return e(t),void 0===i?t:n?r(t,i):function(){return t.apply(i,arguments)}},Kn}var vr,mr,gr,yr,br,wr,xr,_r,Cr,Sr,Er,Tr,kr,Or,Ar,Dr={};function Pr(){return mr?vr:(mr=1,vr=be()&&ae()(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}))}function Lr(){if(yr)return gr;yr=1;var t=fn(),e=String,n=TypeError;return gr=function(r){if(t(r))return r;throw new n(e(r)+" is not an object")}}function Rr(){if(br)return Dr;br=1;var t=be(),e=hr(),n=Pr(),r=Lr(),i=cr(),o=TypeError,s=Object.defineProperty,a=Object.getOwnPropertyDescriptor,u="enumerable",c="configurable",l="writable";return Dr.f=t?n?function(t,e,n){if(r(t),e=i(e),r(n),"function"==typeof t&&"prototype"===e&&"value"in n&&l in n&&!n[l]){var o=a(t,e);o&&o[l]&&(t[e]=n.value,n={configurable:c in n?n[c]:o[c],enumerable:u in n?n[u]:o[u],writable:!1})}return s(t,e,n)}:s:function(t,n,a){if(r(t),n=i(n),r(a),e)try{return s(t,n,a)}catch(t){}if("get"in a||"set"in a)throw new o("Accessors not supported");return"value"in a&&(t[n]=a.value),t},Dr}function Fr(){if(xr)return wr;xr=1;var t=be(),e=Rr(),n=an();return wr=t?function(t,r,i){return e.f(t,r,n(1,i))}:function(t,e,n){return t[e]=n,t},wr}function Mr(){if(Cr)return _r;Cr=1;var t=se(),e=ce(),n=fe(),r=de(),i=fr().f,o=dr(),s=dn(),a=pr(),u=Fr(),c=or(),l=function(t){var n=function(r,i,o){if(this instanceof n){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,i)}return new t(r,i,o)}return e(t,this,arguments)};return n.prototype=t.prototype,n};return _r=function(e,h){var f,d,p,v,m,g,y,b,w,x=e.target,_=e.global,C=e.stat,S=e.proto,E=_?t:C?t[x]:t[x]&&t[x].prototype,T=_?s:s[x]||u(s,x,{})[x],k=T.prototype;for(v in h)d=!(f=o(_?v:x+(C?".":"#")+v,e.forced))&&E&&c(E,v),g=T[v],d&&(y=e.dontCallGetSet?(w=i(E,v))&&w.value:E[v]),m=d&&y?y:h[v],(f||S||typeof g!=typeof m)&&(b=e.bind&&d?a(m,t):e.wrap&&d?l(m):S&&r(m)?n(m):m,(e.sham||m&&m.sham||g&&g.sham)&&u(b,"sham",!0),u(T,v,b),S&&(c(s,p=x+"Prototype")||u(s,p,{}),u(s[p],v,m),e.real&&k&&(f||!k[v])&&u(k,v,m)))}}function Ir(){if(Er)return Sr;Er=1;var t={};return t[ar()("toStringTag")]="z",Sr="[object z]"===String(t)}function jr(){if(kr)return Tr;kr=1;var t=Ir(),e=de(),n=he(),r=ar()("toStringTag"),i=Object,o="Arguments"===n(function(){return arguments}());return Tr=t?n:function(t){var s,a,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(a=function(t,e){try{return t[e]}catch(t){}}(s=i(t),r))?a:o?n(s):"Object"===(u=n(s))&&e(s.callee)?"Arguments":u}}function zr(){if(Ar)return Or;Ar=1;var t=jr(),e=String;return Or=function(n){if("Symbol"===t(n))throw new TypeError("Cannot convert a Symbol value to a string");return e(n)}}var Nr,Br,Wr,Yr,Gr,Vr,Ur,Xr,Hr,qr,Zr,Jr,Kr,Qr,$r,ti,ei,ni,ri,ii,oi,si,ai,ui,ci,li,hi,fi={};function di(){if(Br)return Nr;Br=1;var t=Math.ceil,e=Math.floor;return Nr=Math.trunc||function(n){var r=+n;return(r>0?e:t)(r)}}function pi(){if(Yr)return Wr;Yr=1;var t=di();return Wr=function(e){var n=+e;return n!=n||0===n?0:t(n)},Wr}function vi(){if(Vr)return Gr;Vr=1;var t=pi(),e=Math.max,n=Math.min;return Gr=function(r,i){var o=t(r);return o<0?e(o+i,0):n(o,i)},Gr}function mi(){if(Xr)return Ur;Xr=1;var t=pi(),e=Math.min;return Ur=function(n){var r=t(n);return r>0?e(r,9007199254740991):0}}function gi(){if(qr)return Hr;qr=1;var t=mi();return Hr=function(e){return t(e.length)}}function yi(){if(Jr)return Zr;Jr=1;var t=hn(),e=vi(),n=gi(),r=function(r){return function(i,o,s){var a=t(i),u=n(a);if(0===u)return!r&&-1;var c,l=e(s,u);if(r&&o!=o){for(;u>l;)if((c=a[l++])!=c)return!0}else for(;u>l;l++)if((r||l in a)&&a[l]===o)return r||l||0;return!r&&-1}};return Zr={includes:r(!0),indexOf:r(!1)}}function bi(){return Qr?Kr:(Qr=1,Kr={})}function wi(){if(ti)return $r;ti=1;var t=le(),e=or(),n=hn(),r=yi().indexOf,i=bi(),o=t([].push);return $r=function(t,s){var a,u=n(t),c=0,l=[];for(a in u)!e(i,a)&&e(u,a)&&o(l,a);for(;s.length>c;)e(u,a=s[c++])&&(~r(l,a)||o(l,a));return l},$r}function xi(){return ni?ei:(ni=1,ei=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function _i(){if(ii)return ri;ii=1;var t=wi(),e=xi();return ri=Object.keys||function(n){return t(n,e)}}function Ci(){if(oi)return fi;oi=1;var t=be(),e=Pr(),n=Rr(),r=Lr(),i=hn(),o=_i();return fi.f=t&&!e?Object.defineProperties:function(t,e){r(t);for(var s,a=i(e),u=o(e),c=u.length,l=0;c>l;)n.f(t,s=u[l++],a[s]);return t},fi}function Si(){return ai?si:(ai=1,si=pn()("document","documentElement"))}function Ei(){if(ci)return ui;ci=1;var t=rr(),e=sr(),n=t("keys");return ui=function(t){return n[t]||(n[t]=e(t))}}function Ti(){if(hi)return li;hi=1;var t,e=Lr(),n=Ci(),r=xi(),i=bi(),o=Si(),s=lr(),a="prototype",u="script",c=Ei()("IE_PROTO"),l=function(){},h=function(t){return"<"+u+">"+t+"</"+u+">"},f=function(t){t.write(h("")),t.close();var e=t.parentWindow.Object;return t=null,e},d=function(){try{t=new ActiveXObject("htmlfile")}catch(t){}var e,n,i;d="undefined"!=typeof document?document.domain&&t?f(t):(n=s("iframe"),i="java"+u+":",n.style.display="none",o.appendChild(n),n.src=String(i),(e=n.contentWindow.document).open(),e.write(h("document.F=Object")),e.close(),e.F):f(t);for(var c=r.length;c--;)delete d[a][r[c]];return d()};return i[c]=!0,li=Object.create||function(t,r){var i;return null!==t?(l[a]=e(t),i=new l,l[a]=null,i[c]=t):i=d(),void 0===r?i:n.f(i,r)}}var ki,Oi={};function Ai(){if(ki)return Oi;ki=1;var t=wi(),e=xi().concat("length","prototype");return Oi.f=Object.getOwnPropertyNames||function(n){return t(n,e)},Oi}var Di,Pi,Li,Ri={};function Fi(){return Pi?Di:(Pi=1,Di=le()([].slice))}function Mi(){if(Li)return Ri;Li=1;var t=he(),e=hn(),n=Ai().f,r=Fi(),i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];return Ri.f=function(o){return i&&"Window"===t(o)?function(t){try{return n(t)}catch(t){return r(i)}}(o):n(e(o))},Ri}var Ii,ji,zi,Ni,Bi,Wi={};function Yi(){return Ii||(Ii=1,Wi.f=Object.getOwnPropertySymbols),Wi}function Gi(){if(zi)return ji;zi=1;var t=Fr();return ji=function(e,n,r,i){return i&&i.enumerable?e[n]=r:t(e,n,r),e}}function Vi(){if(Bi)return Ni;Bi=1;var t=Rr();return Ni=function(e,n,r){return t.f(e,n,r)}}var Ui,Xi,Hi,qi,Zi,Ji,Ki,Qi,$i,to,eo,no,ro,io,oo,so,ao,uo,co,lo,ho,fo,po,vo,mo,go,yo,bo,wo={};function xo(){if(Ui)return wo;Ui=1;var t=ar();return wo.f=t,wo}function _o(){if(Hi)return Xi;Hi=1;var t=dn(),e=or(),n=xo(),r=Rr().f;return Xi=function(i){var o=t.Symbol||(t.Symbol={});e(o,i)||r(o,i,{value:n.f(i)})}}function Co(){if(Zi)return qi;Zi=1;var t=we(),e=pn(),n=ar(),r=Gi();return qi=function(){var i=e("Symbol"),o=i&&i.prototype,s=o&&o.valueOf,a=n("toPrimitive");o&&!o[a]&&r(o,a,function(e){return t(s,this)},{arity:1})}}function So(){if(Ki)return Ji;Ki=1;var t=Ir(),e=jr();return Ji=t?{}.toString:function(){return"[object "+e(this)+"]"}}function Eo(){if($i)return Qi;$i=1;var t=Ir(),e=Rr().f,n=Fr(),r=or(),i=So(),o=ar()("toStringTag");return Qi=function(s,a,u,c){var l=u?s:s&&s.prototype;l&&(r(l,o)||e(l,o,{configurable:!0,value:a}),c&&!t&&n(l,"toString",i))}}function To(){if(eo)return to;eo=1;var t=se(),e=de(),n=t.WeakMap;return to=e(n)&&/native code/.test(String(n))}function ko(){if(ro)return no;ro=1;var t,e,n,r=To(),i=se(),o=fn(),s=Fr(),a=or(),u=nr(),c=Ei(),l=bi(),h="Object already initialized",f=i.TypeError,d=i.WeakMap;if(r||u.state){var p=u.state||(u.state=new d);p.get=p.get,p.has=p.has,p.set=p.set,t=function(t,e){if(p.has(t))throw new f(h);return e.facade=t,p.set(t,e),e},e=function(t){return p.get(t)||{}},n=function(t){return p.has(t)}}else{var v=c("state");l[v]=!0,t=function(t,e){if(a(t,v))throw new f(h);return e.facade=t,s(t,v,e),e},e=function(t){return a(t,v)?t[v]:{}},n=function(t){return a(t,v)}}return no={set:t,get:e,has:n,enforce:function(r){return n(r)?e(r):t(r,{})},getterFor:function(t){return function(n){var r;if(!o(n)||(r=e(n)).type!==t)throw new f("Incompatible receiver, "+t+" required");return r}}}}function Oo(){if(oo)return io;oo=1;var t=he();return io=Array.isArray||function(e){return"Array"===t(e)}}function Ao(){if(ao)return so;ao=1;var t=le(),e=de(),n=nr(),r=t(Function.toString);return e(n.inspectSource)||(n.inspectSource=function(t){return r(t)}),so=n.inspectSource}function Do(){if(co)return uo;co=1;var t=le(),e=ae(),n=de(),r=jr(),i=pn(),o=Ao(),s=function(){},a=i("Reflect","construct"),u=/^\s*(?:class|function)\b/,c=t(u.exec),l=!u.test(s),h=function(t){if(!n(t))return!1;try{return a(s,[],t),!0}catch(t){return!1}},f=function(t){if(!n(t))return!1;switch(r(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return l||!!c(u,o(t))}catch(t){return!0}};return f.sham=!0,uo=!a||e(function(){var t;return h(h.call)||!h(Object)||!h(function(){t=!0})||t})?f:h}function Po(){if(ho)return lo;ho=1;var t=Oo(),e=Do(),n=fn(),r=ar()("species"),i=Array;return lo=function(o){var s;return t(o)&&(s=o.constructor,(e(s)&&(s===i||t(s.prototype))||n(s)&&null===(s=s[r]))&&(s=void 0)),void 0===s?i:s}}function Lo(){if(po)return fo;po=1;var t=Po();return fo=function(e,n){return new(t(e))(0===n?0:n)}}function Ro(){if(mo)return vo;mo=1;var t=be(),e=Rr(),n=an();return vo=function(r,i,o){t?e.f(r,i,n(0,o)):r[i]=o},vo}function Fo(){if(yo)return go;yo=1;var t=pr(),e=un(),n=ir(),r=gi(),i=Lo(),o=Ro(),s=function(s){var a=1===s,u=2===s,c=3===s,l=4===s,h=6===s,f=7===s,d=5===s||h;return function(p,v,m){for(var g,y,b=n(p),w=e(b),x=r(w),_=t(v,m),C=0,S=0,E=a?i(p,x):u||f?i(p,0):void 0;x>C;C++)if((d||C in w)&&(y=_(g=w[C],C,b),s))if(a)o(E,C,y);else if(y)switch(s){case 3:return!0;case 5:return g;case 6:return C;case 2:o(E,S++,g)}else switch(s){case 4:return!1;case 7:o(E,S++,g)}return h?-1:c||l?l:E}};return go={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6),filterReject:s(7)}}var Mo,Io,jo,zo={};function No(){return Io?Mo:(Io=1,Mo=yn()&&!!Symbol.for&&!!Symbol.keyFor)}var Bo,Wo={};var Yo,Go,Vo,Uo,Xo,Ho,qo,Zo,Jo,Ko={};function Qo(){if(Go)return Yo;Go=1;var t=fn(),e=ko().get;return Yo=function(n){if(!t(n))return!1;var r=e(n);return!!r&&"RawJSON"===r.type}}function $o(){return Uo?Vo:(Uo=1,Vo=le()(1.1.valueOf))}function ts(){if(Ho)return Xo;Ho=1;var t=le(),e=or(),n=SyntaxError,r=parseInt,i=String.fromCharCode,o=t("".charAt),s=t("".slice),a=t(/./.exec),u={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},c=/^[\da-f]{4}$/i,l=/^[\u0000-\u001F]$/;return Xo=function(t,h){for(var f=!0,d="";h<t.length;){var p=o(t,h);if("\\"===p){var v=s(t,h,h+2);if(e(u,v))d+=u[v],h+=2;else{if("\\u"!==v)throw new n('Unknown escape sequence: "'+v+'"');var m=s(t,h+=2,h+4);if(!a(c,m))throw new n("Bad Unicode escape at: "+h);d+=i(r(m,16)),h+=4}}else{if('"'===p){f=!1,h++;break}if(a(l,p))throw new n("Bad control character in string literal at: "+h);d+=p,h++}}if(f)throw new n("Unterminated string at: "+h);return{value:d,end:h}}}function es(){return Zo?qo:(Zo=1,qo=!ae()(function(){var t="9007199254740993",e=JSON.rawJSON(t);return!JSON.isRawJSON(e)||JSON.stringify(e)!==t}))}function ns(){if(Jo)return Ko;Jo=1;var t=Mr(),e=pn(),n=we(),r=le(),i=ae(),o=Oo(),s=de(),a=fn(),u=Ti(),c=Qo(),l=wn(),h=he(),f=$o(),d=yi().includes,p=or(),v=zr(),m=ts(),g=sr(),y=yn(),b=es(),w=String,x=TypeError,_=e("JSON","stringify"),C=e("BigInt"),S=r("".valueOf),E=r((!0).valueOf),T=C&&r(C.prototype.valueOf),k=r(/./.exec),O=r("".charAt),A=r("".charCodeAt),D=r("".replace),P=r("".slice),L=r([].push),R=r([].pop),F=r(1.1.toString),M=/[\uD800-\uDFFF]/g,I=/^[\uD800-\uDBFF]$/,j=/^[\uDC00-\uDFFF]$/,z=/^\d+$/,N=g(),B=g(),W=g(),Y=N.length,G=B.length,V=!y||i(function(){var t=e("Symbol")("stringify detection");return"[null]"!==_([t])||"{}"!==_({a:t})||"{}"!==_(Object(t))}),U=i(function(){return'"\\udf06\\ud834"'!==_("\udf06\ud834")||'"\\udead"'!==_("\udead")}),X=b?e("JSON","isRawJSON"):c,H=V?function(t,e,r){return _(t,function(t,r){var i=n(e,this,t,r);if(!l(i))return i},r)}:_,q=function(t,e,n){var r=O(n,e-1),i=O(n,e+1);return k(I,t)&&!k(j,i)||k(j,t)&&!k(I,r)?"\\u"+F(A(t,0),16):t},Z=function(t,e){try{return t(e),!0}catch(t){return!1}},J=function(t){if(!a(t)||s(t)||o(t))return!1;try{return!function(t){var e=h(t);return"Number"===e&&Z(f,t)||"String"===e&&Z(S,t)||"Boolean"===e&&Z(E,t)||!!T&&"BigInt"===e&&Z(T,t)}(t)}catch(t){return!0}},K=function(t,e){return{toJSON:function(){var r=t[e];if(a(r)||"bigint"==typeof r){var i=r.toJSON;s(i)&&(r=n(i,r,e))}return r}}};return _&&t({target:"JSON",stat:!0,arity:3,forced:V||U||!b},{stringify:function(t,e,r){var i,a=s(e)?e:void 0,c=a?void 0:function(t){if(o(t)){for(var e=t.length,n=[],r=u(null),i=0;i<e;i++){var s,a=t[i];if("string"==typeof a)s=a;else{if("number"!=typeof a&&"Number"!==h(a)&&"String"!==h(a))continue;s=v(a)}p(r,s)||(r[s]=!0,L(n,s))}return n}}(e),l=c&&function(t){for(var e=0,n=t.length;e<n;e++)if(k(z,t[e]))return B;return""}(c),f=[],g=[],y=[],_=!1,C=!0,S=H(t,function(t,e){if(t=w(t),c){if(t===W)return R(g),void(i=R(y));if(C)C=!1;else if(this!==i&&!o(this)&&!d(c,t))return}else a&&(e=n(a,this,t,e));if(X(e))return b?e:(_=!0,N+(L(f,e.rawJSON)-1));if(c&&J(e)){if(d(g,e))throw new x("Converting circular structure to JSON");var r=function(t,e,n){for(var r=u(null),i=0,o=e.length;i<o;i++){var s=e[i];r[n+s]=K(t,s)}return r[W]=null,r}(e,c,l);return L(g,e),L(y,i),i=r,l&&(_=!0),r}return e},r);if("string"!=typeof S)return S;if(U&&(S=D(S,M,q)),!_)return S;for(var E="",T=S.length,A=0;A<T;A++){var F=O(S,A);if('"'===F){var I=m(S,++A).end-1,j=P(S,A,I);P(j,0,Y)===N?E+=f[P(j,Y)]:P(j,0,G)===B?E+='"'+P(j,G)+'"':E+='"'+j+'"',A=I}else E+=F}return E}}),Ko}var rs,is,os,ss,as,us,cs,ls,hs={};function fs(){return is||(is=1,function(){if(bo)return oe;bo=1;var t=Mr(),e=se(),n=we(),r=le(),i=tr(),o=be(),s=yn(),a=ae(),u=or(),c=vn(),l=Lr(),h=hn(),f=cr(),d=zr(),p=an(),v=Ti(),m=_i(),g=Ai(),y=Mi(),b=Yi(),w=fr(),x=Rr(),_=Ci(),C=sn(),S=Gi(),E=Vi(),T=rr(),k=Ei(),O=bi(),A=sr(),D=ar(),P=xo(),L=_o(),R=Co(),F=Eo(),M=ko(),I=Fo().forEach,j=k("hidden"),z="Symbol",N="prototype",B=M.set,W=M.getterFor(z),Y=Object[N],G=e.Symbol,V=G&&G[N],U=e.RangeError,X=e.TypeError,H=e.QObject,q=w.f,Z=x.f,J=y.f,K=C.f,Q=r([].push),$=T("symbols"),tt=T("op-symbols"),et=T("wks"),nt=!H||!H[N]||!H[N].findChild,rt=function(t,e,n){var r=q(Y,e);return r&&delete Y[e],Z(t,e,n),r&&t!==Y&&Z(Y,e,r),t},it=o&&a(function(){return 7!==v(Z({},"a",{get:function(){return Z(this,"a",{value:7}).a}})).a})?rt:Z,ot=function(t,e){var n=$[t]=v(V);return B(n,{type:z,tag:t,description:e}),o||(n.description=e),n},st=function(t,e,n){t===Y&&st(tt,e,n),l(t);var r=f(e);return l(n),u($,r)?(("enumerable"in n?!n.enumerable:!u(t,r)||u(t,j)&&t[j][r])?(u(t,j)||Z(t,j,p(1,v(null))),t[j][r]=!0):(u(t,j)&&t[j][r]&&(t[j][r]=!1),n=v(n,{enumerable:p(0,!1)})),it(t,r,n)):Z(t,r,n)},at=function(t,e){l(t);var r=h(e),i=m(r).concat(ht(r));return I(i,function(e){o&&!n(ut,r,e)||st(t,e,r[e])}),t},ut=function(t){var e=f(t),r=n(K,this,e);return!(this===Y&&u($,e)&&!u(tt,e))&&(!(r||!u(this,e)||!u($,e)||u(this,j)&&this[j][e])||r)},ct=function(t,e){var n=h(t),r=f(e);if(n!==Y||!u($,r)||u(tt,r)){var i=q(n,r);return!i||!u($,r)||u(n,j)&&n[j][r]||(i.enumerable=!0),i}},lt=function(t){var e=J(h(t)),n=[];return I(e,function(t){u($,t)||u(O,t)||Q(n,t)}),n},ht=function(t){var e=t===Y,n=J(e?tt:h(t)),r=[];return I(n,function(t){!u($,t)||e&&!u(Y,t)||Q(r,$[t])}),r};s||(G=function(){if(c(V,this))throw new X("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?d(arguments[0]):void 0,r=A(t),i=function(t){var o=void 0===this?e:this;o===Y&&n(i,tt,t),u(o,j)&&u(o[j],r)&&(o[j][r]=!1);var s=p(1,t);try{it(o,r,s)}catch(t){if(!(t instanceof U))throw t;rt(o,r,s)}};return o&&nt&&it(Y,r,{configurable:!0,set:i}),ot(r,t)},S(V=G[N],"toString",function(){return W(this).tag}),S(G,"withoutSetter",function(t){return ot(A(t),t)}),C.f=ut,x.f=st,_.f=at,w.f=ct,g.f=y.f=lt,b.f=ht,P.f=function(t){return ot(D(t),t)},o&&(E(V,"description",{configurable:!0,get:function(){return W(this).description}}),i||S(Y,"propertyIsEnumerable",ut,{unsafe:!0}))),t({global:!0,constructor:!0,wrap:!0,forced:!s,sham:!s},{Symbol:G}),I(m(et),function(t){L(t)}),t({target:z,stat:!0,forced:!s},{useSetter:function(){nt=!0},useSimple:function(){nt=!1}}),t({target:"Object",stat:!0,forced:!s,sham:!o},{create:function(t,e){return void 0===e?v(t):at(v(t),e)},defineProperty:st,defineProperties:at,getOwnPropertyDescriptor:ct}),t({target:"Object",stat:!0,forced:!s},{getOwnPropertyNames:lt}),R(),F(G,z),O[j]=!0}(),function(){if(jo)return zo;jo=1;var t=Mr(),e=pn(),n=or(),r=zr(),i=rr(),o=No(),s=i("string-to-symbol-registry"),a=i("symbol-to-string-registry");t({target:"Symbol",stat:!0,forced:!o},{for:function(t){var i=r(t);if(n(s,i))return s[i];var o=e("Symbol")(i);return s[i]=o,a[o]=i,o}})}(),function(){if(Bo)return Wo;Bo=1;var t=Mr(),e=or(),n=wn(),r=xn(),i=rr(),o=No(),s=i("symbol-to-string-registry");t({target:"Symbol",stat:!0,forced:!o},{keyFor:function(t){if(!n(t))throw new TypeError(r(t)+" is not a symbol");if(e(s,t))return s[t]}})}(),ns(),function(){if(rs)return hs;rs=1;var t=Mr(),e=yn(),n=ae(),r=Yi(),i=ir();t({target:"Object",stat:!0,forced:!e||n(function(){r.f(1)})},{getOwnPropertySymbols:function(t){var e=r.f;return e?e(i(t)):[]}})}()),ie}function ds(){return ss?os:(ss=1,fs(),os=dn().Object.getOwnPropertySymbols)}function ps(){return us?as:(us=1,as=ds())}var vs,ms,gs,ys,bs,ws,xs=Wt(ls?cs:(ls=1,cs=ps())),_s={exports:{}},Cs={};function Ss(){if(ms)return _s.exports;ms=1,function(){if(vs)return Cs;vs=1;var t=Mr(),e=ae(),n=hn(),r=fr().f,i=be();t({target:"Object",stat:!0,forced:!i||e(function(){r(1)}),sham:!i},{getOwnPropertyDescriptor:function(t,e){return r(n(t),e)}})}();var t=dn().Object,e=_s.exports=function(e,n){return t.getOwnPropertyDescriptor(e,n)};return t.getOwnPropertyDescriptor.sham&&(e.sham=!0),_s.exports}function Es(){return ys?gs:(ys=1,gs=Ss())}var Ts,ks,Os,As,Ds,Ps,Ls,Rs,Fs,Ms=Wt(ws?bs:(ws=1,bs=Es())),Is={};function js(){if(ks)return Ts;ks=1;var t=pn(),e=le(),n=Ai(),r=Yi(),i=Lr(),o=e([].concat);return Ts=t("Reflect","ownKeys")||function(t){var e=n.f(i(t)),s=r.f;return s?o(e,s(t)):e},Ts}function zs(){return Ds?As:(Ds=1,function(){if(Os)return Is;Os=1;var t=Mr(),e=be(),n=js(),r=hn(),i=fr(),o=Ro();t({target:"Object",stat:!0,sham:!e},{getOwnPropertyDescriptors:function(t){for(var e,s,a=r(t),u=i.f,c=n(a),l={},h=0;c.length>h;)void 0!==(s=u(a,e=c[h++]))&&o(l,e,s);return l}})}(),As=dn().Object.getOwnPropertyDescriptors)}function Ns(){return Ls?Ps:(Ls=1,Ps=zs())}var Bs,Ws,Ys,Gs,Vs,Us,Xs=Wt(Fs?Rs:(Fs=1,Rs=Ns())),Hs={exports:{}},qs={};function Zs(){if(Bs)return qs;Bs=1;var t=Mr(),e=be(),n=Ci().f;return t({target:"Object",stat:!0,forced:Object.defineProperties!==n,sham:!e},{defineProperties:n}),qs}function Js(){if(Ws)return Hs.exports;Ws=1,Zs();var t=dn().Object,e=Hs.exports=function(e,n){return t.defineProperties(e,n)};return t.defineProperties.sham&&(e.sham=!0),Hs.exports}function Ks(){return Gs?Ys:(Gs=1,Ys=Js())}var Qs,$s,ta,ea,na,ra,ia,oa,sa,aa,ua,ca=Wt(Us?Vs:(Us=1,Vs=Ks()));function la(){return ta?$s:(ta=1,Qs||(Qs=1,Mr()({target:"Array",stat:!0},{isArray:Oo()})),$s=dn().Array.isArray)}function ha(){return na?ea:(na=1,ea=la())}function fa(){return ia?ra:(ia=1,ra=ha())}function da(){return sa?oa:(sa=1,oa=fa())}function pa(){return ua?aa:(ua=1,aa=da())}var va=Wt(pa());var ma,ga,ya,ba,wa,xa,_a,Ca={};function Sa(){if(ga)return ma;ga=1;var t=TypeError;return ma=function(e){if(e>9007199254740991)throw new t("Maximum allowed index exceeded");return e}}function Ea(){if(ba)return ya;ba=1;var t=be(),e=Oo(),n=TypeError,r=Object.getOwnPropertyDescriptor,i=t&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();return ya=i?function(t,i){if(e(t)&&!r(t,"length").writable)throw new n("Cannot set read only .length");return t.length=i}:function(t,e){return t.length=e}}function Ta(){if(xa)return wa;xa=1;var t=ae(),e=ar(),n=gn(),r=e("species");return wa=function(e){return n>=51||!t(function(){var t=[];return(t.constructor={})[r]=function(){return{foo:1}},1!==t[e](Boolean).foo})},wa}function ka(){if(_a)return Ca;_a=1;var t=Mr(),e=ae(),n=Oo(),r=fn(),i=ir(),o=gi(),s=Sa(),a=Ro(),u=Ea(),c=Lo(),l=Ta(),h=ar(),f=gn(),d=h("isConcatSpreadable"),p=f>=51||!e(function(){var t=[];return t[d]=!1,t.concat()[0]!==t}),v=function(t){if(!r(t))return!1;var e=t[d];return void 0!==e?!!e:n(t)};return t({target:"Array",proto:!0,arity:1,forced:!p||!l("concat")},{concat:function(t){var e,n,r,l,h,f=i(this),d=c(f,0),p=0;for(e=-1,r=arguments.length;e<r;e++)if(v(h=-1===e?f:arguments[e]))for(l=o(h),s(p+l),n=0;n<l;n++,p++)n in h&&a(d,p,h[n]);else s(p+1),a(d,p++,h);return u(d,p),d}}),Ca}var Oa,Aa={};function Da(){return Oa||(Oa=1,_o()("asyncDispose")),Aa}var Pa;var La,Ra={};function Fa(){return La||(La=1,_o()("dispose")),Ra}var Ma;var Ia;var ja,za={};function Na(){return ja||(ja=1,_o()("iterator")),za}var Ba;var Wa;var Ya;var Ga;var Va;var Ua;var Xa,Ha={};function qa(){if(Xa)return Ha;Xa=1;var t=_o(),e=Co();return t("toPrimitive"),e(),Ha}var Za,Ja={};var Ka;var Qa,$a,tu,eu={};function nu(){return tu?$a:(tu=1,ka(),fs(),Da(),Pa||(Pa=1,_o()("asyncIterator")),Fa(),Ma||(Ma=1,_o()("hasInstance")),Ia||(Ia=1,_o()("isConcatSpreadable")),Na(),Ba||(Ba=1,_o()("match")),Wa||(Wa=1,_o()("matchAll")),Ya||(Ya=1,_o()("replace")),Ga||(Ga=1,_o()("search")),Va||(Va=1,_o()("species")),Ua||(Ua=1,_o()("split")),qa(),function(){if(Za)return Ja;Za=1;var t=pn(),e=_o(),n=Eo();e("toStringTag"),n(t("Symbol"),"Symbol")}(),Ka||(Ka=1,_o()("unscopables")),function(){if(Qa)return eu;Qa=1;var t=se();Eo()(t.JSON,"JSON",!0)}(),$a=dn().Symbol)}var ru,iu,ou,su,au,uu,cu,lu,hu,fu,du,pu,vu,mu,gu,yu,bu,wu,xu,_u,Cu,Su,Eu,Tu,ku,Ou,Au,Du,Pu,Lu,Ru,Fu,Mu,Iu={};function ju(){return iu?ru:(iu=1,ru=function(){})}function zu(){return su?ou:(su=1,ou=Object.create?Object.create(null):{})}function Nu(){if(uu)return au;uu=1;var t=be(),e=or(),n=Function.prototype,r=t&&Object.getOwnPropertyDescriptor,i=e(n,"name"),o=i&&"something"===function(){}.name,s=i&&(!t||t&&r(n,"name").configurable);return au={EXISTS:i,PROPER:o,CONFIGURABLE:s}}function Bu(){return lu?cu:(lu=1,cu=!ae()(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))}function Wu(){if(fu)return hu;fu=1;var t=or(),e=de(),n=ir(),r=Ei(),i=Bu(),o=r("IE_PROTO"),s=Object,a=s.prototype;return hu=i?s.getPrototypeOf:function(r){var i=n(r);if(t(i,o))return i[o];var u=i.constructor;return e(u)&&i instanceof u?u.prototype:i instanceof s?a:null},hu}function Yu(){if(pu)return du;pu=1;var t,e,n,r=ae(),i=de(),o=fn(),s=Ti(),a=Wu(),u=Gi(),c=ar(),l=tr(),h=c("iterator"),f=!1;return[].keys&&("next"in(n=[].keys())?(e=a(a(n)))!==Object.prototype&&(t=e):f=!0),!o(t)||r(function(){var e={};return t[h].call(e)!==e})?t={}:l&&(t=s(t)),i(t[h])||u(t,h,function(){return this}),du={IteratorPrototype:t,BUGGY_SAFARI_ITERATORS:f}}function Gu(){if(mu)return vu;mu=1;var t=Yu().IteratorPrototype,e=Ti(),n=an(),r=Eo(),i=zu(),o=function(){return this};return vu=function(s,a,u,c){var l=a+" Iterator";return s.prototype=e(t,{next:n(+!c,u)}),r(s,l,!1,!0),i[l]=o,s}}function Vu(){if(yu)return gu;yu=1;var t=le(),e=_n();return gu=function(n,r,i){try{return t(e(Object.getOwnPropertyDescriptor(n,r)[i]))}catch(t){}},gu}function Uu(){if(wu)return bu;wu=1;var t=fn();return bu=function(e){return t(e)||null===e}}function Xu(){if(_u)return xu;_u=1;var t=Uu(),e=String,n=TypeError;return xu=function(r){if(t(r))return r;throw new n("Can't set "+e(r)+" as a prototype")}}function Hu(){if(Su)return Cu;Su=1;var t=Vu(),e=fn(),n=ln(),r=Xu();return Cu=Object.setPrototypeOf||("__proto__"in{}?function(){var i,o=!1,s={};try{(i=t(Object.prototype,"__proto__","set"))(s,[]),o=s instanceof Array}catch(t){}return function(t,s){return n(t),r(s),e(t)?(o?i(t,s):t.__proto__=s,t):t}}():void 0)}function qu(){if(Tu)return Eu;Tu=1;var t=Mr(),e=we(),n=tr(),r=Nu(),i=de(),o=Gu(),s=Wu(),a=Hu(),u=Eo(),c=Fr(),l=Gi(),h=ar(),f=zu(),d=Yu(),p=r.PROPER,v=r.CONFIGURABLE,m=d.IteratorPrototype,g=d.BUGGY_SAFARI_ITERATORS,y=h("iterator"),b="keys",w="values",x="entries",_=function(){return this};return Eu=function(r,h,d,C,S,E,T){o(d,h,C);var k,O,A,D=function(t){if(t===S&&M)return M;if(!g&&t&&t in R)return R[t];switch(t){case b:case w:case x:return function(){return new d(this,t)}}return function(){return new d(this)}},P=h+" Iterator",L=!1,R=r.prototype,F=R[y]||R["@@iterator"]||S&&R[S],M=!g&&F||D(S),I="Array"===h&&R.entries||F;if(I&&(k=s(I.call(new r)))!==Object.prototype&&k.next&&(n||s(k)===m||(a?a(k,m):i(k[y])||l(k,y,_)),u(k,P,!0,!0),n&&(f[P]=_)),p&&S===w&&F&&F.name!==w&&(!n&&v?c(R,"name",w):(L=!0,M=function(){return e(F,this)})),S)if(O={values:D(w),keys:E?M:D(b),entries:D(x)},T)for(A in O)(g||L||!(A in R))&&l(R,A,O[A]);else t({target:h,proto:!0,forced:g||L},O);return n&&!T||R[y]===M||l(R,y,M,{name:S}),f[h]=M,O}}function Zu(){return Ou?ku:(Ou=1,ku=function(t,e){return{value:t,done:e}})}function Ju(){if(Du)return Au;Du=1;var t=hn(),e=ju(),n=zu(),r=ko(),i=Rr().f,o=qu(),s=Zu(),a=tr(),u=be(),c="Array Iterator",l=r.set,h=r.getterFor(c);Au=o(Array,"Array",function(e,n){l(this,{type:c,target:t(e),index:0,kind:n})},function(){var t=h(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=null,s(void 0,!0);switch(t.kind){case"keys":return s(n,!1);case"values":return s(e[n],!1)}return s([n,e[n]],!1)},"values");var f=n.Arguments=n.Array;if(e("keys"),e("values"),e("entries"),!a&&u&&"values"!==f.name)try{i(f,"name",{value:"values"})}catch(t){}return Au}function Ku(){return Lu?Pu:(Lu=1,Pu={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})}function Qu(){if(Ru)return Iu;Ru=1,Ju();var t=Ku(),e=se(),n=Eo(),r=zu();for(var i in t)n(e[i],i),r[i]=r.Array;return Iu}function $u(){if(Mu)return Fu;Mu=1;var t=nu();return Qu(),Fu=t}var tc,ec={};var nc;var rc;var ic,oc,sc;function ac(){if(sc)return oc;sc=1;var t=$u();return function(){if(tc)return ec;tc=1;var t=ar(),e=Rr().f,n=t("metadata"),r=Function.prototype;void 0===r[n]&&e(r,n,{value:null})}(),nc||(nc=1,Da()),rc||(rc=1,Fa()),ic||(ic=1,_o()("metadata")),oc=t}var uc,cc,lc;function hc(){if(cc)return uc;cc=1;var t=pn(),e=le(),n=t("Symbol"),r=n.keyFor,i=e(n.prototype.valueOf);return uc=n.isRegisteredSymbol||function(t){try{return void 0!==r(i(t))}catch(t){return!1}}}var fc,dc,pc;function vc(){if(dc)return fc;dc=1;for(var t=rr(),e=pn(),n=le(),r=wn(),i=ar(),o=e("Symbol"),s=o.isWellKnownSymbol,a=e("Object","getOwnPropertyNames"),u=n(o.prototype.valueOf),c=t("wks"),l=0,h=a(o),f=h.length;l<f;l++)try{var d=h[l];r(o[d])&&i(d)}catch(t){}return fc=function(t){if(s&&s(t))return!0;try{for(var e=u(t),n=0,r=a(c),i=r.length;n<i;n++)if(c[r[n]]==e)return!0}catch(t){}return!1},fc}var mc;var gc;var yc;var bc;var wc;var xc;var _c;var Cc,Sc,Ec,Tc,kc;function Oc(){if(Ec)return Sc;Ec=1;var t=ac();return lc||(lc=1,Mr()({target:"Symbol",stat:!0},{isRegisteredSymbol:hc()})),pc||(pc=1,Mr()({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:vc()})),mc||(mc=1,_o()("customMatcher")),gc||(gc=1,_o()("observable")),yc||(yc=1,Mr()({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:hc()})),bc||(bc=1,Mr()({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:vc()})),wc||(wc=1,_o()("matcher")),xc||(xc=1,_o()("metadataKey")),_c||(_c=1,_o()("patternMatch")),Cc||(Cc=1,_o()("replaceAll")),Sc=t}function Ac(){return kc?Tc:(kc=1,Tc=Oc())}var Dc,Pc,Lc,Rc,Fc,Mc,Ic,jc,zc,Nc,Bc,Wc,Yc,Gc,Vc,Uc,Xc,Hc=Wt(Ac()),qc={};function Zc(){if(Pc)return Dc;Pc=1;var t=le(),e=pi(),n=zr(),r=ln(),i=t("".charAt),o=t("".charCodeAt),s=t("".slice),a=function(t){return function(a,u){var c,l,h=n(r(a)),f=e(u),d=h.length;return f<0||f>=d?t?"":void 0:(c=o(h,f))<55296||c>56319||f+1===d||(l=o(h,f+1))<56320||l>57343?t?i(h,f):c:t?s(h,f,f+2):l-56320+(c-55296<<10)+65536}};return Dc={codeAt:a(!1),charAt:a(!0)}}function Jc(){if(Lc)return qc;Lc=1;var t=Zc().charAt,e=zr(),n=ko(),r=qu(),i=Zu(),o="String Iterator",s=n.set,a=n.getterFor(o);return r(String,"String",function(t){s(this,{type:o,string:e(t),index:0})},function(){var e,n=a(this),r=n.string,o=n.index;return o>=r.length?i(void 0,!0):(e=t(r,o),n.index+=e.length,i(e,!1))}),qc}function Kc(){if(Fc)return Rc;Fc=1;var t=jr(),e=or(),n=zu();return Rc=function(r){var i=t(r);return"Arguments"===i&&(i="Array"),e(n,i)?n[i]:void 0}}function Qc(){if(Ic)return Mc;Ic=1;var t=Kc(),e=ar()("iterator");return Mc=function(n){return n[e]||n["@@iterator"]||t(n)}}function $c(){return zc?jc:(zc=1,Ju(),Jc(),jc=Qc())}function tl(){if(Bc)return Nc;Bc=1;var t=$c();return Qu(),Nc=t}function el(){return Yc?Wc:(Yc=1,Wc=tl())}function nl(){return Vc?Gc:(Vc=1,Gc=el())}function rl(){return Xc?Uc:(Xc=1,Uc=nl())}var il,ol,sl,al,ul,cl,ll,hl,fl,dl,pl,vl,ml,gl,yl,bl=Wt(rl()),wl={};function xl(){if(sl)return ol;sl=1;var t=se(),e=dn();return ol=function(n,r){var i=e[n+"Prototype"],o=i&&i[r];if(o)return o;var s=t[n],a=s&&s.prototype;return a&&a[r]}}function _l(){return ul?al:(ul=1,function(){if(il)return wl;il=1;var t=Mr(),e=ir(),n=gi(),r=Ea(),i=Sa();t({target:"Array",proto:!0,arity:1,forced:ae()(function(){return 4294967297!==[].push.call({length:4294967296},1)})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var o=e(this),s=n(o),a=arguments.length;i(s+a);for(var u=0;u<a;u++)o[s]=arguments[u],s++;return r(o,s),s}})}(),al=xl()("Array","push"))}function Cl(){if(ll)return cl;ll=1;var t=vn(),e=_l(),n=Array.prototype;return cl=function(r){var i=r.push;return r===n||t(n,r)&&i===n.push?e:i}}function Sl(){return fl?hl:(fl=1,hl=Cl())}function El(){return pl?dl:(pl=1,dl=Sl())}function Tl(){return ml?vl:(ml=1,vl=El())}function kl(){return yl?gl:(yl=1,gl=Tl())}var Ol=Wt(kl());var Al,Dl,Pl,Ll,Rl,Fl,Ml,Il,jl,zl,Nl,Bl,Wl,Yl={};function Gl(){return Pl?Dl:(Pl=1,function(){if(Al)return Yl;Al=1;var t=Mr(),e=Oo(),n=Do(),r=fn(),i=vi(),o=gi(),s=hn(),a=Ro(),u=Ea(),c=ar(),l=Ta(),h=Fi(),f=l("slice"),d=c("species"),p=Array,v=Math.max;t({target:"Array",proto:!0,forced:!f},{slice:function(t,c){var l,f,m,g=s(this),y=o(g),b=i(t,y),w=i(void 0===c?y:c,y);if(e(g)&&(l=g.constructor,(n(l)&&(l===p||e(l.prototype))||r(l)&&null===(l=l[d]))&&(l=void 0),l===p||void 0===l))return h(g,b,w);for(f=new(void 0===l?p:l)(v(w-b,0)),m=0;b<w;b++,m++)b in g&&a(f,m,g[b]);return u(f,m),f}})}(),Dl=xl()("Array","slice"))}function Vl(){if(Rl)return Ll;Rl=1;var t=vn(),e=Gl(),n=Array.prototype;return Ll=function(r){var i=r.slice;return r===n||t(n,r)&&i===n.slice?e:i}}function Ul(){return Ml?Fl:(Ml=1,Fl=Vl())}function Xl(){return jl?Il:(jl=1,Il=Ul())}function Hl(){return Nl?zl:(Nl=1,zl=Xl())}function ql(){return Wl?Bl:(Wl=1,Bl=Hl())}var Zl,Jl,Kl,Ql,$l,th,eh,nh,rh,ih,oh,sh,ah,uh,ch,lh,hh,fh,dh,ph,vh,mh,gh,yh,bh,wh=Wt(ql()),xh={};function _h(){if(Jl)return Zl;Jl=1;var t=we(),e=Lr(),n=Cn();return Zl=function(r,i,o){var s,a;e(r);try{if(!(s=n(r,"return"))){if("throw"===i)throw o;return o}s=t(s,r)}catch(t){a=!0,s=t}if("throw"===i)throw o;if(a)throw s;return e(s),o},Zl}function Ch(){if(Ql)return Kl;Ql=1;var t=Lr(),e=_h();return Kl=function(n,r,i,o){try{return o?r(t(i)[0],i[1]):r(i)}catch(t){e(n,"throw",t)}},Kl}function Sh(){if(th)return $l;th=1;var t=ar(),e=zu(),n=t("iterator"),r=Array.prototype;return $l=function(t){return void 0!==t&&(e.Array===t||r[n]===t)}}function Eh(){if(nh)return eh;nh=1;var t=Cn(),e=cn(),n=Kc(),r=ar()("iterator");return eh=function(i){if(!e(i))return t(i,r)||t(i,"@@iterator")||n(i)}}function Th(){if(ih)return rh;ih=1;var t=we(),e=de(),n=Lr(),r=xn(),i=Eh(),o=TypeError;return rh=function(s,a){var u=arguments.length<2?i(s):a;if(e(u))return n(t(u,s));throw new o(r(s)+" is not iterable")},rh}function kh(){if(sh)return oh;sh=1;var t=pr(),e=we(),n=ir(),r=Ch(),i=Sh(),o=Do(),s=gi(),a=Ro(),u=Ea(),c=Th(),l=Eh(),h=_h(),f=Sa(),d=Array;return oh=function(p){var v=o(this),m=arguments.length,g=m>1?arguments[1]:void 0,y=void 0!==g;y&&(g=t(g,m>2?arguments[2]:void 0));var b,w,x,_,C,S,E=n(p),T=l(E),k=0;if(!T||this===d&&i(T))for(b=s(E),w=v?new this(b):d(b);b>k;k++)S=y?g(E[k],k):E[k],a(w,k,S);else for(w=v?new this:[],C=(_=c(E,T)).next;!(x=e(C,_)).done;k++){try{f(k)}catch(t){h(_,"throw",t)}S=y?r(_,g,[x.value,k],!0):x.value;try{a(w,k,S)}catch(t){h(_,"throw",t)}}return u(w,k),w},oh}function Oh(){if(uh)return ah;uh=1;var t=ar()("iterator"),e=!1;try{var n=0,r={next:function(){return{done:!!n++}},return:function(){e=!0}};r[t]=function(){return this},Array.from(r,function(){throw 2})}catch(t){}return ah=function(n,r){try{if(!r&&!e)return!1}catch(t){return!1}var i=!1;try{var o={};o[t]=function(){return{next:function(){return{done:i=!0}}}},n(o)}catch(t){}return i},ah}function Ah(){return hh?lh:(hh=1,Jc(),function(){if(ch)return xh;ch=1;var t=Mr(),e=kh();t({target:"Array",stat:!0,forced:!Oh()(function(t){Array.from(t)})},{from:e})}(),lh=dn().Array.from)}function Dh(){return dh?fh:(dh=1,fh=Ah())}function Ph(){return vh?ph:(vh=1,ph=Dh())}function Lh(){return gh?mh:(gh=1,mh=Ph())}function Rh(){return bh?yh:(bh=1,yh=Lh())}var Fh=Wt(Rh());function Mh(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Ih(t,e){return function(t){if(va(t))return t}(t)||function(t,e){var n=null==t?null:void 0!==Hc&&bl(t)||t["@@iterator"];if(null!=n){var r,i,o,s,a=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(Ol(a).call(a,r.value),a.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}}(t,e)||function(t,e){if(t){var n;if("string"==typeof t)return Mh(t,e);var r=wh(n={}.toString.call(t)).call(n,8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Fh(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Mh(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var jh,zh,Nh,Bh,Wh,Yh,Gh,Vh,Uh,Xh,Hh={exports:{}},qh={};function Zh(){if(jh)return qh;jh=1;var t=Mr(),e=be(),n=Rr().f;return t({target:"Object",stat:!0,forced:Object.defineProperty!==n,sham:!e},{defineProperty:n}),qh}function Jh(){if(zh)return Hh.exports;zh=1,Zh();var t=dn().Object,e=Hh.exports=function(e,n,r){return t.defineProperty(e,n,r)};return t.defineProperty.sham&&(e.sham=!0),Hh.exports}function Kh(){return Bh?Nh:(Bh=1,Nh=Jh())}function Qh(){return Yh?Wh:(Yh=1,Wh=Kh())}function $h(){return Vh?Gh:(Vh=1,Gh=Qh())}function tf(){return Xh?Uh:(Xh=1,Uh=$h())}var ef,nf,rf,of,sf,af,uf,cf,lf,hf,ff=Wt(tf());function df(){return nf?ef:(nf=1,Ju(),Jc(),Na(),ef=xo().f("iterator"))}function pf(){if(of)return rf;of=1;var t=df();return Qu(),rf=t}function vf(){return af?sf:(af=1,sf=pf())}function mf(){return cf?uf:(cf=1,uf=vf())}function gf(){return hf?lf:(hf=1,lf=mf())}var yf,bf,wf,xf,_f,Cf,Sf,Ef,Tf,kf,Of=Wt(gf());function Af(t){return Af="function"==typeof Hc&&"symbol"==typeof Of?function(t){return typeof t}:function(t){return t&&"function"==typeof Hc&&t.constructor===Hc&&t!==Hc.prototype?"symbol":typeof t},Af(t)}function Df(){return bf?yf:(bf=1,qa(),yf=xo().f("toPrimitive"))}function Pf(){return xf?wf:(xf=1,wf=Df())}function Lf(){return Cf?_f:(Cf=1,_f=Pf())}function Rf(){return Ef?Sf:(Ef=1,Sf=Lf())}function Ff(){return kf?Tf:(kf=1,Tf=Rf())}var Mf=Wt(Ff());function If(t){var e=function(t,e){if("object"!=Af(t)||!t)return t;var n=t[Mf];if(void 0!==n){var r=n.call(t,e);if("object"!=Af(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Af(e)?e:e+""}function jf(t,e,n){return(e=If(e))in t?ff(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var zf,Nf,Bf,Wf,Yf,Gf,Vf,Uf,Xf,Hf,qf,Zf={};function Jf(){if(Nf)return zf;Nf=1;var t=le(),e=_n(),n=fn(),r=or(),i=Fi(),o=ue(),s=Function,a=t([].concat),u=t([].join),c={};return zf=o?s.bind:function(t){var o=e(this),l=o.prototype,h=i(arguments,1),f=function(){var e=a(h,i(arguments));return this instanceof f?function(t,e,n){if(!r(c,e)){for(var i=[],o=0;o<e;o++)i[o]="a["+o+"]";c[e]=s("C,a","return new C("+u(i,",")+")")}return c[e](t,n)}(o,e.length,e):o.apply(t,e)};return n(l)&&(f.prototype=l),f},zf}function Kf(){return Yf?Wf:(Yf=1,function(){if(Bf)return Zf;Bf=1;var t=Mr(),e=Jf();t({target:"Function",proto:!0,forced:Function.bind!==e},{bind:e})}(),Wf=xl()("Function","bind"))}function Qf(){if(Vf)return Gf;Vf=1;var t=vn(),e=Kf(),n=Function.prototype;return Gf=function(r){var i=r.bind;return r===n||t(n,r)&&i===n.bind?e:i}}function $f(){return Xf?Uf:(Xf=1,Uf=Qf())}var td,ed,nd,rd,id,od,sd,ad,ud,cd,ld,hd,fd,dd,pd,vd,md,gd=Wt(qf?Hf:(qf=1,Hf=$f())),yd={};function bd(){if(ed)return td;ed=1;var t=_n(),e=ir(),n=un(),r=gi(),i=TypeError,o="Reduce of empty array with no initial value",s=function(s){return function(a,u,c,l){var h=e(a),f=n(h),d=r(h);if(t(u),0===d&&c<2)throw new i(o);var p=s?d-1:0,v=s?-1:1;if(c<2)for(;;){if(p in f){l=f[p],p+=v;break}if(p+=v,s?p<0:d<=p)throw new i(o)}for(;s?p>=0:d>p;p+=v)p in f&&(l=u(l,f[p],p,h));return l}};return td={left:s(!1),right:s(!0)}}function wd(){if(rd)return nd;rd=1;var t=ae();return nd=function(e,n){var r=[][e];return!!r&&t(function(){r.call(null,n||function(){return 1},1)})}}function xd(){if(od)return id;od=1;var t=se(),e=mn(),n=he(),r=function(t){return e.slice(0,t.length)===t};return id=r("Bun/")?"BUN":r("Cloudflare-Workers")?"CLOUDFLARE":r("Deno/")?"DENO":r("Node.js/")?"NODE":t.Bun&&"string"==typeof Bun.version?"BUN":t.Deno&&"object"==typeof Deno.version?"DENO":"process"===n(t.process)?"NODE":t.window&&t.document?"BROWSER":"REST"}function _d(){return ad?sd:(ad=1,sd="NODE"===xd())}function Cd(){return ld?cd:(ld=1,function(){if(ud)return yd;ud=1;var t=Mr(),e=bd().left,n=wd(),r=gn();t({target:"Array",proto:!0,forced:!_d()&&r>79&&r<83||!n("reduce")},{reduce:function(t){var n=arguments.length;return e(this,t,n,n>1?arguments[1]:void 0)}})}(),cd=xl()("Array","reduce"))}function Sd(){if(fd)return hd;fd=1;var t=vn(),e=Cd(),n=Array.prototype;return hd=function(r){var i=r.reduce;return r===n||t(n,r)&&i===n.reduce?e:i}}function Ed(){return pd?dd:(pd=1,dd=Sd())}var Td,kd,Od,Ad,Dd,Pd,Ld,Rd,Fd,Md=Wt(md?vd:(md=1,vd=Ed())),Id={};function jd(){return Od?kd:(Od=1,function(){if(Td)return Id;Td=1;var t=Mr(),e=Fo().filter;t({target:"Array",proto:!0,forced:!Ta()("filter")},{filter:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}})}(),kd=xl()("Array","filter"))}function zd(){if(Dd)return Ad;Dd=1;var t=vn(),e=jd(),n=Array.prototype;return Ad=function(r){var i=r.filter;return r===n||t(n,r)&&i===n.filter?e:i}}function Nd(){return Ld?Pd:(Ld=1,Pd=zd())}var Bd,Wd,Yd,Gd,Vd,Ud,Xd,Hd,qd,Zd=Wt(Fd?Rd:(Fd=1,Rd=Nd())),Jd={};function Kd(){return Yd?Wd:(Yd=1,function(){if(Bd)return Jd;Bd=1;var t=Mr(),e=Fo().map;t({target:"Array",proto:!0,forced:!Ta()("map")},{map:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}})}(),Wd=xl()("Array","map"))}function Qd(){if(Vd)return Gd;Vd=1;var t=vn(),e=Kd(),n=Array.prototype;return Gd=function(r){var i=r.map;return r===n||t(n,r)&&i===n.map?e:i}}function $d(){return Xd?Ud:(Xd=1,Ud=Qd())}var tp,ep,np,rp,ip,op,sp,ap,up,cp,lp,hp=Wt(qd?Hd:(qd=1,Hd=$d())),fp={};function dp(){if(ep)return tp;ep=1;var t=Fo().forEach,e=wd()("forEach");return tp=e?[].forEach:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)},tp}function pp(){return ip?rp:(ip=1,function(){if(np)return fp;np=1;var t=Mr(),e=dp();t({target:"Array",proto:!0,forced:[].forEach!==e},{forEach:e})}(),rp=xl()("Array","forEach"))}function vp(){return sp?op:(sp=1,op=pp())}function mp(){if(up)return ap;up=1;var t=jr(),e=or(),n=vn(),r=vp(),i=Array.prototype,o={DOMTokenList:!0,NodeList:!0};return ap=function(s){var a=s.forEach;return s===i||n(i,s)&&a===i.forEach||e(o,t(s))?r:a}}var gp,yp,bp=Wt(lp?cp:(lp=1,cp=mp()));var wp,xp,_p,Cp,Sp,Ep,Tp,kp=Wt(yp?gp:(yp=1,gp=pf()));function Op(){if(_p)return xp;_p=1,wp||(wp=1,Mr()({target:"Object",stat:!0,sham:!be()},{create:Ti()}));var t=dn().Object;return xp=function(e,n){return t.create(e,n)}}function Ap(){return Sp?Cp:(Sp=1,Cp=Op())}var Dp,Pp,Lp,Rp,Fp,Mp,Ip,jp,zp,Np,Bp,Wp,Yp,Gp,Vp,Up,Xp,Hp,qp,Zp,Jp,Kp=Wt(Tp?Ep:(Tp=1,Ep=Ap())),Qp={},$p={exports:{}};function tv(){return Pp?Dp:(Pp=1,Dp=ae()(function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))}function ev(){if(Rp)return Lp;Rp=1;var t=ae(),e=fn(),n=he(),r=tv(),i=Object.isExtensible,o=t(function(){});return Lp=o||r?function(t){return!!e(t)&&((!r||"ArrayBuffer"!==n(t))&&(!i||i(t)))}:i}function nv(){return Mp?Fp:(Mp=1,Fp=!ae()(function(){return Object.isExtensible(Object.preventExtensions({}))}))}function rv(){if(Ip)return $p.exports;Ip=1;var t=Mr(),e=le(),n=bi(),r=fn(),i=or(),o=Rr().f,s=Ai(),a=Mi(),u=ev(),c=sr(),l=nv(),h=!1,f=c("meta"),d=0,p=function(t){o(t,f,{value:{objectID:"O"+d++,weakData:{}}})},v=$p.exports={enable:function(){v.enable=function(){},h=!0;var n=s.f,r=e([].splice),i={};i[f]=1,n(i).length&&(s.f=function(t){for(var e=n(t),i=0,o=e.length;i<o;i++)if(e[i]===f){r(e,i,1);break}return e},t({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:a.f}))},fastKey:function(t,e){if(!r(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,f)){if(!u(t))return"F";if(!e)return"E";p(t)}return t[f].objectID},getWeakData:function(t,e){if(!i(t,f)){if(!u(t))return!0;if(!e)return!1;p(t)}return t[f].weakData},onFreeze:function(t){return l&&h&&u(t)&&!i(t,f)&&p(t),t}};return n[f]=!0,$p.exports}function iv(){if(zp)return jp;zp=1;var t=pr(),e=we(),n=Lr(),r=xn(),i=Sh(),o=gi(),s=vn(),a=Th(),u=Eh(),c=_h(),l=TypeError,h=function(t,e){this.stopped=t,this.result=e},f=h.prototype;return jp=function(d,p,v){var m,g,y,b,w,x,_,C=v&&v.that,S=!(!v||!v.AS_ENTRIES),E=!(!v||!v.IS_RECORD),T=!(!v||!v.IS_ITERATOR),k=!(!v||!v.INTERRUPTED),O=t(p,C),A=function(t){var e=m;return m=void 0,e&&c(e,"normal"),new h(!0,t)},D=function(t){return S?(n(t),k?O(t[0],t[1],A):O(t[0],t[1])):k?O(t,A):O(t)};if(E)m=d.iterator;else if(T)m=d;else{if(!(g=u(d)))throw new l(r(d)+" is not iterable");if(i(g)){for(y=0,b=o(d);b>y;y++)if((w=D(d[y]))&&s(f,w))return w;return new h(!1)}m=a(d,g)}for(x=E?d.next:m.next;!(_=e(x,m)).done;){var P=_.value;try{w=D(P)}catch(t){if(!m)throw t;c(m,"throw",t)}if("object"==typeof w&&w&&s(f,w))return w}return new h(!1)},jp}function ov(){if(Bp)return Np;Bp=1;var t=vn(),e=TypeError;return Np=function(n,r){if(t(r,n))return n;throw new e("Incorrect invocation")}}function sv(){if(Yp)return Wp;Yp=1;var t=Mr(),e=se(),n=rv(),r=we(),i=ae(),o=Fr(),s=iv(),a=ov(),u=de(),c=fn(),l=cn(),h=Eo(),f=Rr().f,d=Fo().forEach,p=be(),v=ko(),m=v.set,g=v.getterFor;return Wp=function(v,y,b){var w,x=-1!==v.indexOf("Map"),_=-1!==v.indexOf("Weak"),C=x?"set":"add",S=e[v],E=S&&S.prototype,T={};if(p&&u(S)&&(_||E.forEach&&!i(function(){(new S).entries().next()}))){var k=(w=y(function(t,e){m(a(t,k),{type:v,collection:new S}),l(e)||s(e,t[C],{that:t,AS_ENTRIES:x})})).prototype,O=g(v);d(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(t){var e="add"===t||"set"===t;!(t in E)||_&&"clear"===t||o(k,t,function(n,i){var o=this,s=O(o).collection;if(!e&&_&&!c(n))return"get"===t&&void 0;var a=s[t]("forEach"===t?function(t,e){r(n,i,t,e,o)}:0===n?0:n,i);return e?o:a})}),_||f(k,"size",{configurable:!0,get:function(){return O(this).collection.size}})}else w=b.getConstructor(y,v,x,C),n.enable();return h(w,v,!1,!0),T[v]=w,t({global:!0,forced:!0},T),_||b.setStrong(w,v,x),w}}function av(){if(Vp)return Gp;Vp=1;var t=Gi();return Gp=function(e,n,r){for(var i in n)r&&r.unsafe&&e[i]?e[i]=n[i]:t(e,i,n[i],r);return e}}function uv(){if(Xp)return Up;Xp=1;var t=pn(),e=Vi(),n=ar(),r=be(),i=n("species");return Up=function(n){var o=t(n);r&&o&&!o[i]&&e(o,i,{configurable:!0,get:function(){return this}})}}function cv(){if(qp)return Hp;qp=1;var t=Ti(),e=Vi(),n=av(),r=pr(),i=ov(),o=cn(),s=iv(),a=qu(),u=Zu(),c=uv(),l=be(),h=rv().fastKey,f=ko(),d=f.set,p=f.getterFor;return Hp={getConstructor:function(a,u,c,f){var v=a(function(e,n){i(e,m),d(e,{type:u,index:t(null),first:null,last:null,size:0}),l||(e.size=0),o(n)||s(n,e[f],{that:e,AS_ENTRIES:c})}),m=v.prototype,g=p(u),y=function(t,e,n){var r,i,o=g(t),s=b(t,e);return s?s.value=n:(o.last=s={index:i=h(e,!0),key:e,value:n,previous:r=o.last,next:null,removed:!1},o.first||(o.first=s),r&&(r.next=s),l?o.size++:t.size++,"F"!==i&&(o.index[i]=s)),t},b=function(t,e){var n,r=g(t),i=h(e);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key===e)return n};return n(m,{clear:function(){for(var e=g(this),n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=null),n=n.next;e.first=e.last=null,e.index=t(null),l?e.size=0:this.size=0},delete:function(t){var e=this,n=g(e),r=b(e,t);if(r){var i=r.next,o=r.previous;delete n.index[r.index],r.removed=!0,o&&(o.next=i),i&&(i.previous=o),n.first===r&&(n.first=i),n.last===r&&(n.last=o),l?n.size--:e.size--}return!!r},forEach:function(t){for(var e,n=g(this),i=r(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:n.first;)for(i(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!b(this,t)}}),n(m,c?{get:function(t){var e=b(this,t);return e&&e.value},set:function(t,e){return y(this,0===t?0:t,e)}}:{add:function(t){return y(this,t=0===t?0:t,t)}}),l&&e(m,"size",{configurable:!0,get:function(){return g(this).size}}),v},setStrong:function(t,e,n){var r=e+" Iterator",i=p(e),o=p(r);a(t,e,function(t,e){d(this,{type:r,target:t,state:i(t),kind:e,last:null})},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)?u("keys"===e?n.key:"values"===e?n.value:[n.key,n.value],!1):(t.target=null,u(void 0,!0))},n?"entries":"values",!n,!0),c(e)}},Hp}function lv(){return Jp||(Jp=1,Zp||(Zp=1,sv()("Map",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},cv()))),Qp}var hv,fv,dv,pv,vv,mv={};function gv(){return fv||(fv=1,hv=function(t,e){return 1===e?function(e,n){return e[t](n)}:function(e,n,r){return e[t](n,r)}}),hv}function yv(){if(pv)return dv;pv=1;var t=pn(),e=gv(),n=t("Map");return dv={Map:n,set:e("set",2),get:e("get",1),has:e("has",1),remove:e("delete",1),proto:n.prototype}}var bv,wv={};var xv,_v,Cv,Sv,Ev,Tv,kv,Ov={};function Av(){return Cv?_v:(Cv=1,Ju(),lv(),function(){if(vv)return mv;vv=1;var t=Mr(),e=le(),n=_n(),r=ln(),i=iv(),o=Sa(),s=yv(),a=tr(),u=ae(),c=s.Map,l=s.has,h=s.get,f=s.set,d=e([].push),p=a||u(function(){return 1!==c.groupBy("ab",function(t){return t}).get("a").length});t({target:"Map",stat:!0,forced:a||p},{groupBy:function(t,e){r(t),n(e);var s=new c,a=0;return i(t,function(t){o(a);var n=e(t,a++);l(s,n)?d(h(s,n),t):f(s,n,[t])}),s}})}(),function(){if(bv)return wv;bv=1;var t=Mr(),e=yv(),n=tr(),r=e.get,i=e.has,o=e.set;t({target:"Map",proto:!0,real:!0,forced:n},{getOrInsert:function(t,e){return i(this,t)?r(this,t):(o(this,t,e),e)}})}(),function(){if(xv)return Ov;xv=1;var t=Mr(),e=_n(),n=yv(),r=tr(),i=n.get,o=n.has,s=n.set;t({target:"Map",proto:!0,real:!0,forced:r},{getOrInsertComputed:function(t,n){var r=o(this,t);if(e(n),r)return i(this,t);0===t&&1/t==-1/0&&(t=0);var a=n(t);return s(this,t,a),a}})}(),Jc(),_v=dn().Map)}function Dv(){if(Ev)return Sv;Ev=1;var t=Av();return Qu(),Sv=t}var Pv,Lv,Rv=Wt(kv?Tv:(kv=1,Tv=Dv())),Fv={};function Mv(){return Lv||(Lv=1,Pv||(Pv=1,sv()("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},cv()))),Fv}var Iv,jv,zv,Nv,Bv,Wv,Yv,Gv,Vv,Uv,Xv,Hv,qv,Zv,Jv,Kv,Qv,$v,tm,em,nm,rm={};function im(){if(jv)return Iv;jv=1;var t=xn(),e=TypeError;return Iv=function(n){if("object"==typeof n&&"size"in n&&"has"in n&&"add"in n&&"delete"in n&&"keys"in n)return n;throw new e(t(n)+" is not a set")}}function om(){if(Nv)return zv;Nv=1;var t=pn(),e=gv(),n=t("Set"),r=n.prototype;return zv={Set:n,add:e("add",1),has:e("has",1),remove:e("delete",1),proto:r}}function sm(){if(Wv)return Bv;Wv=1;var t=we();return Bv=function(e,n,r){for(var i,o,s=r?e:e.iterator,a=e.next;!(i=t(a,s)).done;)if(void 0!==(o=n(i.value)))return o},Bv}function am(){if(Gv)return Yv;Gv=1;var t=sm();return Yv=function(e,n,r){return r?t(e.keys(),n,!0):e.forEach(n)},Yv}function um(){if(Uv)return Vv;Uv=1;var t=om(),e=am(),n=t.Set,r=t.add;return Vv=function(t){var i=new n;return e(t,function(t){r(i,t)}),i},Vv}function cm(){return Hv||(Hv=1,Xv=function(t){return t.size}),Xv}function lm(){return Zv?qv:(Zv=1,qv=function(t){return{iterator:t,next:t.next,done:!1}})}function hm(){if(Kv)return Jv;Kv=1;var t=_n(),e=Lr(),n=we(),r=pi(),i=lm(),o="Invalid size",s=RangeError,a=TypeError,u=Math.max,c=function(e,n){this.set=e,this.size=u(n,0),this.has=t(e.has),this.keys=t(e.keys)};return c.prototype={getIterator:function(){return i(e(n(this.keys,this.set)))},includes:function(t){return n(this.has,this.set,t)}},Jv=function(t){e(t);var n=+t.size;if(n!=n)throw new a(o);var i=r(n);if(i<0)throw new s(o);return new c(t,i)}}function fm(){if($v)return Qv;$v=1;var t=im(),e=om(),n=um(),r=cm(),i=hm(),o=am(),s=sm(),a=e.has,u=e.remove;return Qv=function(e){var c=t(this),l=i(e),h=n(c);return r(h)<=l.size?o(h,function(t){l.includes(t)&&u(h,t)}):s(l.getIterator(),function(t){a(h,t)&&u(h,t)}),h}}function dm(){return em?tm:(em=1,tm=function(){return!1})}var pm,vm,mm,gm={};function ym(){if(vm)return pm;vm=1;var t=im(),e=om(),n=cm(),r=hm(),i=am(),o=sm(),s=e.Set,a=e.add,u=e.has;return pm=function(e){var c=t(this),l=r(e),h=new s;return n(c)>l.size?o(l.getIterator(),function(t){u(c,t)&&a(h,t)}):i(c,function(t){l.includes(t)&&a(h,t)}),h}}var bm,wm,xm,_m={};function Cm(){if(wm)return bm;wm=1;var t=im(),e=om().has,n=cm(),r=hm(),i=am(),o=sm(),s=_h();return bm=function(a){var u=t(this),c=r(a);if(n(u)<=c.size)return!1!==i(u,function(t){if(c.includes(t))return!1},!0);var l=c.getIterator();return!1!==o(l,function(t){if(e(u,t))return s(l.iterator,"normal",!1)})},bm}var Sm,Em,Tm,km={};function Om(){if(Em)return Sm;Em=1;var t=im(),e=cm(),n=am(),r=hm();return Sm=function(i){var o=t(this),s=r(i);return!(e(o)>s.size)&&!1!==n(o,function(t){if(!s.includes(t))return!1},!0)}}var Am,Dm,Pm,Lm={};function Rm(){if(Dm)return Am;Dm=1;var t=im(),e=om().has,n=cm(),r=hm(),i=sm(),o=_h();return Am=function(s){var a=t(this),u=r(s);if(n(a)<u.size)return!1;var c=u.getIterator();return!1!==i(c,function(t){if(!e(a,t))return o(c.iterator,"normal",!1)})},Am}var Fm,Mm,Im,jm,zm,Nm={};function Bm(){if(Mm)return Fm;Mm=1;var t=im(),e=om(),n=um(),r=hm(),i=sm(),o=e.add,s=e.has,a=e.remove;return Fm=function(e){var u=t(this),c=r(e).getIterator(),l=n(u);return i(c,function(t){s(u,t)?a(l,t):o(l,t)}),l}}function Wm(){return jm?Im:(jm=1,Im=function(t){try{var e=new Set,n={size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){return e.clear(),e.add(4),function(){return{done:!0}}}})}},r=e[t](n);return 1===r.size&&4===r.values().next().value}catch(t){return!1}})}var Ym,Gm,Vm,Um,Xm,Hm,qm,Zm,Jm,Km={};function Qm(){if(Gm)return Ym;Gm=1;var t=im(),e=om().add,n=um(),r=hm(),i=sm();return Ym=function(o){var s=t(this),a=r(o).getIterator(),u=n(s);return i(a,function(t){e(u,t)}),u}}function $m(){return Xm?Um:(Xm=1,Ju(),Mv(),function(){if(nm)return rm;nm=1;var t=Mr(),e=fm(),n=ae(),r=!dm()("difference",function(t){return 0===t.size})||n(function(){var t={size:1,has:function(){return!0},keys:function(){var t=0;return{next:function(){var n=t++>1;return e.has(1)&&e.clear(),{done:n,value:2}}}}},e=new Set([1,2,3,4]);return 3!==e.difference(t).size});t({target:"Set",proto:!0,real:!0,forced:r},{difference:e})}(),function(){if(mm)return gm;mm=1;var t=Mr(),e=ae(),n=ym();t({target:"Set",proto:!0,real:!0,forced:!dm()("intersection",function(t){return 2===t.size&&t.has(1)&&t.has(2)})||e(function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))})},{intersection:n})}(),function(){if(xm)return _m;xm=1;var t=Mr(),e=Cm();t({target:"Set",proto:!0,real:!0,forced:!dm()("isDisjointFrom",function(t){return!t})},{isDisjointFrom:e})}(),function(){if(Tm)return km;Tm=1;var t=Mr(),e=Om();t({target:"Set",proto:!0,real:!0,forced:!dm()("isSubsetOf",function(t){return t})},{isSubsetOf:e})}(),function(){if(Pm)return Lm;Pm=1;var t=Mr(),e=Rm();t({target:"Set",proto:!0,real:!0,forced:!dm()("isSupersetOf",function(t){return!t})},{isSupersetOf:e})}(),function(){if(zm)return Nm;zm=1;var t=Mr(),e=Bm(),n=Wm();t({target:"Set",proto:!0,real:!0,forced:!dm()("symmetricDifference")||!n("symmetricDifference")},{symmetricDifference:e})}(),function(){if(Vm)return Km;Vm=1;var t=Mr(),e=Qm(),n=Wm();t({target:"Set",proto:!0,real:!0,forced:!dm()("union")||!n("union")},{union:e})}(),Jc(),Um=dn().Set)}function tg(){if(qm)return Hm;qm=1;var t=$m();return Qu(),Hm=t}var eg,ng,rg,ig,og,sg,ag,ug,cg,lg,hg,fg,dg,pg,vg=Wt(Jm?Zm:(Jm=1,Zm=tg()));function mg(){if(ng)return eg;ng=1;var t=we(),e=de(),n=xn(),r=Qc(),i=TypeError;return eg=function(o){var s=r(o);if(e(s))return t(s,o);throw new i(n(o)+" is not iterable")}}function gg(){return ig?rg:(ig=1,Ju(),Jc(),rg=mg())}function yg(){if(sg)return og;sg=1;var t=gg();return Qu(),og=t}function bg(){return ug?ag:(ug=1,ag=yg())}function wg(){return lg?cg:(lg=1,cg=bg())}function xg(){return fg?hg:(fg=1,hg=wg())}var _g,Cg,Sg,Eg,Tg,kg=Wt(pg?dg:(pg=1,dg=xg())),Og={},Ag={};function Dg(){if(Cg)return _g;Cg=1;var t=TypeError;return _g=function(e,n){if(e<n)throw new t("Not enough arguments");return e}}function Pg(){if(Eg)return Sg;Eg=1;var t,e=se(),n=ce(),r=de(),i=xd(),o=mn(),s=Fi(),a=Dg(),u=e.Function,c=/MSIE .\./.test(o)||"BUN"===i&&((t=e.Bun.version.split(".")).length<3||"0"===t[0]&&(t[1]<3||"3"===t[1]&&"0"===t[2]));return Sg=function(t,e){var i=e?2:1;return c?function(o,c){var l=a(arguments.length,1)>i,h=r(o)?o:u(o),f=l?s(arguments,i):[],d=l?function(){n(h,this,f)}:h;return e?t(d,c):t(d)}:t},Sg}var Lg,Rg,Fg,Mg,Ig,jg,zg={};function Ng(){return Rg||(Rg=1,function(){if(Tg)return Ag;Tg=1;var t=Mr(),e=se(),n=Pg()(e.setInterval,!0);t({global:!0,bind:!0,forced:e.setInterval!==n},{setInterval:n})}(),function(){if(Lg)return zg;Lg=1;var t=Mr(),e=se(),n=Pg()(e.setTimeout,!0);t({global:!0,bind:!0,forced:e.setTimeout!==n},{setTimeout:n})}()),Og}function Bg(){return Mg?Fg:(Mg=1,Ng(),Fg=dn().setTimeout)}var Wg,Yg,Gg,Vg,Ug,Xg,Hg,qg,Zg,Jg,Kg,Qg=Wt(jg?Ig:(jg=1,Ig=Bg())),$g={};function ty(){if(Yg)return Wg;Yg=1;var t=xn(),e=TypeError;return Wg=function(n,r){if(!delete n[r])throw new e("Cannot delete property "+t(r)+" of "+t(n))}}function ey(){return Ug?Vg:(Ug=1,function(){if(Gg)return $g;Gg=1;var t=Mr(),e=ir(),n=vi(),r=pi(),i=gi(),o=Ea(),s=Sa(),a=Lo(),u=Ro(),c=ty(),l=Ta()("splice"),h=Math.max,f=Math.min;t({target:"Array",proto:!0,forced:!l},{splice:function(t,l){var d,p,v,m,g,y,b=e(this),w=i(b),x=n(t,w),_=arguments.length;for(0===_?d=p=0:1===_?(d=0,p=w-x):(d=_-2,p=f(h(r(l),0),w-x)),s(w+d-p),v=a(b,p),m=0;m<p;m++)(g=x+m)in b&&u(v,m,b[g]);if(o(v,p),d<p){for(m=x;m<w-p;m++)y=m+d,(g=m+p)in b?b[y]=b[g]:c(b,y);for(m=w;m>w-p+d;m--)c(b,m-1)}else if(d>p)for(m=w-p;m>x;m--)y=m+d-1,(g=m+p-1)in b?b[y]=b[g]:c(b,y);for(m=0;m<d;m++)b[m+x]=arguments[m+2];return o(b,w-p+d),v}})}(),Vg=xl()("Array","splice"))}function ny(){if(Hg)return Xg;Hg=1;var t=vn(),e=ey(),n=Array.prototype;return Xg=function(r){var i=r.splice;return r===n||t(n,r)&&i===n.splice?e:i}}function ry(){return Zg?qg:(Zg=1,qg=ny())}var iy,oy,sy=Wt(Kg?Jg:(Kg=1,Jg=ry()));var ay,uy,cy,ly,hy,fy,dy,py,vy,my=Wt(oy?iy:(oy=1,iy=ha())),gy={};function yy(){return cy?uy:(cy=1,function(){if(ay)return gy;ay=1;var t=Mr(),e=Fo().some;t({target:"Array",proto:!0,forced:!wd()("some")},{some:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}})}(),uy=xl()("Array","some"))}function by(){if(hy)return ly;hy=1;var t=vn(),e=yy(),n=Array.prototype;return ly=function(r){var i=r.some;return r===n||t(n,r)&&i===n.some?e:i}}function wy(){return dy?fy:(dy=1,fy=by())}var xy,_y,Cy,Sy,Ey,Ty,ky,Oy,Ay,Dy=Wt(vy?py:(vy=1,py=wy())),Py={};function Ly(){if(_y)return xy;_y=1;var t=be(),e=le(),n=we(),r=ae(),i=_i(),o=Yi(),s=sn(),a=ir(),u=un(),c=Object.assign,l=Object.defineProperty,h=e([].concat);return xy=!c||r(function(){if(t&&1!==c({b:1},c(l({},"a",{enumerable:!0,get:function(){l(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},n={},r=Symbol("assign detection"),o="abcdefghijklmnopqrst";return e[r]=7,o.split("").forEach(function(t){n[t]=t}),7!==c({},e)[r]||i(c({},n)).join("")!==o})?function(e,r){for(var c=a(e),l=arguments.length,f=1,d=o.f,p=s.f;l>f;)for(var v,m=u(arguments[f++]),g=d?h(i(m),d(m)):i(m),y=g.length,b=0;y>b;)v=g[b++],t&&!n(p,m,v)||(c[v]=m[v]);return c}:c,xy}function Ry(){return Ey?Sy:(Ey=1,function(){if(Cy)return Py;Cy=1;var t=Mr(),e=Ly();t({target:"Object",stat:!0,arity:2,forced:Object.assign!==e},{assign:e})}(),Sy=dn().Object.assign)}function Fy(){return ky?Ty:(ky=1,Ty=Ry())}var My,Iy,jy,zy,Ny,By,Wy,Yy,Gy=Wt(Ay?Oy:(Ay=1,Oy=Fy()));function Vy(){return Iy?My:(Iy=1,ka(),My=xl()("Array","concat"))}function Uy(){if(zy)return jy;zy=1;var t=vn(),e=Vy(),n=Array.prototype;return jy=function(r){var i=r.concat;return r===n||t(n,r)&&i===n.concat?e:i}}function Xy(){return By?Ny:(By=1,Ny=Uy())}var Hy,qy,Zy,Jy,Ky,Qy,$y,tb,eb=Wt(Yy?Wy:(Yy=1,Wy=Xy()));function nb(){return qy?Hy:(qy=1,Ju(),Hy=xl()("Array","keys"))}function rb(){return Jy?Zy:(Jy=1,Zy=nb())}function ib(){if(Qy)return Ky;Qy=1,Qu();var t=jr(),e=or(),n=vn(),r=rb(),i=Array.prototype,o={DOMTokenList:!0,NodeList:!0};return Ky=function(s){var a=s.keys;return s===i||n(i,s)&&a===i.keys||e(o,t(s))?r:a}}var ob,sb,ab,ub,cb,lb,hb,fb=Wt(tb?$y:(tb=1,$y=ib())),db={};function pb(){return ab?sb:(ab=1,function(){if(ob)return db;ob=1;var t=Mr(),e=ir(),n=_i();t({target:"Object",stat:!0,forced:ae()(function(){n(1)})},{keys:function(t){return n(e(t))}})}(),sb=dn().Object.keys)}function vb(){return cb?ub:(cb=1,ub=pb())}var mb,gb,yb,bb,wb,xb,_b,Cb,Sb,Eb,Tb,kb,Ob,Ab,Db,Pb,Lb,Rb=Wt(hb?lb:(hb=1,lb=vb())),Fb={};function Mb(){if(gb)return mb;gb=1;var t=Fi(),e=Math.floor,n=function(r,i){var o=r.length;if(o<8)for(var s,a,u=1;u<o;){for(a=u,s=r[u];a&&i(r[a-1],s)>0;)r[a]=r[--a];a!==u++&&(r[a]=s)}else for(var c=e(o/2),l=n(t(r,0,c),i),h=n(t(r,c),i),f=l.length,d=h.length,p=0,v=0;p<f||v<d;)r[p+v]=p<f&&v<d?i(l[p],h[v])<=0?l[p++]:h[v++]:p<f?l[p++]:h[v++];return r};return mb=n}function Ib(){if(bb)return yb;bb=1;var t=mn().match(/firefox\/(\d+)/i);return yb=!!t&&+t[1]}function jb(){return xb?wb:(xb=1,wb=/MSIE|Trident/.test(mn()))}function zb(){if(Cb)return _b;Cb=1;var t=mn().match(/AppleWebKit\/(\d+)\./);return _b=!!t&&+t[1]}function Nb(){if(Sb)return Fb;Sb=1;var t=Mr(),e=le(),n=_n(),r=ir(),i=gi(),o=ty(),s=zr(),a=ae(),u=Mb(),c=wd(),l=Ib(),h=jb(),f=gn(),d=zb(),p=[],v=e(p.sort),m=e(p.push),g=a(function(){p.sort(void 0)}),y=a(function(){p.sort(null)}),b=c("sort"),w=!a(function(){if(f)return f<70;if(!(l&&l>3)){if(h)return!0;if(d)return d<603;var t,e,n,r,i="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)p.push({k:e+r,v:n})}for(p.sort(function(t,e){return e.v-t.v}),r=0;r<p.length;r++)e=p[r].k.charAt(0),i.charAt(i.length-1)!==e&&(i+=e);return"DGBEFHACIJK"!==i}});return t({target:"Array",proto:!0,forced:g||!y||!b||!w},{sort:function(t){void 0!==t&&n(t);var e=r(this);if(w)return void 0===t?v(e):v(e,t);var a,c,l=[],h=i(e);for(c=0;c<h;c++)c in e&&m(l,e[c]);for(u(l,function(t){return function(e,n){if(void 0===n)return-1;if(void 0===e)return 1;if(void 0!==t)return+t(e,n)||0;var r=s(e),i=s(n);return r===i?0:r>i?1:-1}}(t)),a=i(l),c=0;c<a;)e[c]=l[c++];for(;c<h;)o(e,c++);return e}}),Fb}function Bb(){return Tb?Eb:(Tb=1,Nb(),Eb=xl()("Array","sort"))}function Wb(){if(Ob)return kb;Ob=1;var t=vn(),e=Bb(),n=Array.prototype;return kb=function(r){var i=r.sort;return r===n||t(n,r)&&i===n.sort?e:i}}function Yb(){return Db?Ab:(Db=1,Ab=Wb())}var Gb,Vb,Ub,Xb,Hb,qb,Zb,Jb,Kb=Wt(Lb?Pb:(Lb=1,Pb=Yb()));function Qb(){return Vb?Gb:(Vb=1,Ju(),Gb=xl()("Array","values"))}function $b(){return Xb?Ub:(Xb=1,Ub=Qb())}function tw(){if(qb)return Hb;qb=1,Qu();var t=jr(),e=or(),n=vn(),r=$b(),i=Array.prototype,o={DOMTokenList:!0,NodeList:!0};return Hb=function(s){var a=s.values;return s===i||n(i,s)&&a===i.values||e(o,t(s))?r:a}}var ew,nw,rw,iw,ow,sw,aw,uw,cw,lw,hw,fw,dw,pw=Wt(Jb?Zb:(Jb=1,Zb=tw())),vw={};function mw(){if(nw)return ew;nw=1;var t=pi(),e=zr(),n=ln(),r=RangeError,i=Math.floor;return ew=function(o){var s=e(n(this)),a="",u=t(o);if(u<0||u===1/0)throw new r("Wrong number of repetitions");for(;u>0;(u=i(u/2))&&(s+=s))u%2&&(a+=s);return a}}function gw(){if(iw)return rw;iw=1;var t=le(),e=mi(),n=zr(),r=mw(),i=ln(),o=t(r),s=t("".slice),a=Math.ceil,u=function(t){return function(r,u,c){var l=n(i(r)),h=e(u),f=l.length;if(h<=f)return l;var d,p,v=void 0===c?" ":n(c);return""===v?l:((p=o(v,a((d=h-f)/v.length))).length>d&&(p=s(p,0,d)),t?l+p:p+l)}};return rw={start:u(!1),end:u(!0)}}function yw(){if(sw)return ow;sw=1;var t=le(),e=ae(),n=gw().start,r=RangeError,i=isFinite,o=Math.abs,s=Date.prototype,a=s.toISOString,u=t(s.getTime),c=t(s.getUTCDate),l=t(s.getUTCFullYear),h=t(s.getUTCHours),f=t(s.getUTCMilliseconds),d=t(s.getUTCMinutes),p=t(s.getUTCMonth),v=t(s.getUTCSeconds);return ow=e(function(){return"0385-07-25T07:06:39.999Z"!==a.call(new Date(-50000000000001))})||!e(function(){a.call(new Date(NaN))})?function(){if(!i(u(this)))throw new r("Invalid time value");var t=this,e=l(t),s=f(t),a=e<0?"-":e>9999?"+":"";return a+n(o(e),a?6:4,0)+"-"+n(p(t)+1,2,0)+"-"+n(c(t),2,0)+"T"+n(h(t),2,0)+":"+n(d(t),2,0)+":"+n(v(t),2,0)+"."+n(s,3,0)+"Z"}:a,ow}function bw(){if(cw)return uw;cw=1,function(){if(aw)return vw;aw=1;var t=Mr(),e=we(),n=ir(),r=ur(),i=yw(),o=he();t({target:"Date",proto:!0,forced:ae()(function(){return null!==new Date(NaN).toJSON()||1!==e(Date.prototype.toJSON,{toISOString:function(){return 1}})})},{toJSON:function(t){var s=n(this),a=r(s,"number");return"number"!=typeof a||isFinite(a)?"toISOString"in s||"Date"!==o(s)?s.toISOString():e(i,s):null}})}(),ns();var t=dn(),e=ce();return t.JSON||(t.JSON={stringify:JSON.stringify}),uw=function(n,r,i){return e(t.JSON.stringify,null,arguments)},uw}function ww(){return hw?lw:(hw=1,lw=bw())}var xw,_w,Cw,Sw,Ew,Tw,kw,Ow,Aw=Wt(dw?fw:(dw=1,fw=ww()));function Dw(){return _w?xw:(_w=1,Ju(),xw=xl()("Array","entries"))}function Pw(){return Sw?Cw:(Sw=1,Cw=Dw())}function Lw(){if(Tw)return Ew;Tw=1,Qu();var t=jr(),e=or(),n=vn(),r=Pw(),i=Array.prototype,o={DOMTokenList:!0,NodeList:!0};return Ew=function(s){var a=s.entries;return s===i||n(i,s)&&a===i.entries||e(o,t(s))?r:a}}var Rw,Fw,Mw,Iw,jw,zw,Nw,Bw=Wt(Ow?kw:(Ow=1,kw=Lw()));function Ww(){return Mw?Fw:(Mw=1,Rw||(Rw=1,Mr()({target:"Reflect",stat:!0},{ownKeys:js()})),Fw=dn().Reflect.ownKeys)}function Yw(){return jw?Iw:(jw=1,Iw=Ww())}var Gw,Vw,Uw=Wt(Nw?zw:(Nw=1,zw=Yw()));var Xw,Hw,qw=Wt(Vw?Gw:(Vw=1,Gw=Kh()));var Zw,Jw,Kw=Wt(Hw?Xw:(Hw=1,Xw=$u()));var Qw,$w,tx,ex,nx,rx,ix,ox=Wt(Jw?Zw:(Jw=1,Zw=Ul())),sx={};function ax(){return tx?$w:(tx=1,function(){if(Qw)return sx;Qw=1;var t=Mr(),e=Date,n=le()(e.prototype.getTime);t({target:"Date",stat:!0},{now:function(){return n(new e)}})}(),$w=dn().Date.now)}function ux(){return nx?ex:(nx=1,ex=ax())}var cx,lx,hx,fx=Wt(ix?rx:(ix=1,rx=ux())),dx={};function px(){return hx?lx:(hx=1,function(){if(cx)return dx;cx=1;var t=Mr(),e=yi().includes,n=ae(),r=ju(),i=n(function(){return!Array(1).includes()}),o=n(function(){return[,1].includes(void 0,1)});t({target:"Array",proto:!0,forced:i||o},{includes:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}}),r("includes")}(),lx=xl()("Array","includes"))}var vx,mx,gx,yx,bx,wx,xx,_x,Cx,Sx,Ex,Tx,kx,Ox,Ax,Dx={};function Px(){if(mx)return vx;mx=1;var t=fn(),e=he(),n=ar()("match");return vx=function(r){var i;return t(r)&&(void 0!==(i=r[n])?!!i:"RegExp"===e(r))}}function Lx(){if(yx)return gx;yx=1;var t=Px(),e=TypeError;return gx=function(n){if(t(n))throw new e("The method doesn't accept regular expressions");return n}}function Rx(){if(wx)return bx;wx=1;var t=ar()("match");return bx=function(e){var n=/./;try{"/./"[e](n)}catch(r){try{return n[t]=!1,"/./"[e](n)}catch(t){}}return!1}}function Fx(){return Cx?_x:(Cx=1,function(){if(xx)return Dx;xx=1;var t=Mr(),e=le(),n=Lx(),r=ln(),i=zr(),o=Rx(),s=e("".indexOf);t({target:"String",proto:!0,forced:!o("includes")},{includes:function(t){return!!~s(i(r(this)),i(n(t)),arguments.length>1?arguments[1]:void 0)}})}(),_x=xl()("String","includes"))}function Mx(){if(Ex)return Sx;Ex=1;var t=vn(),e=px(),n=Fx(),r=Array.prototype,i=String.prototype;return Sx=function(o){var s=o.includes;return o===r||t(r,o)&&s===r.includes?e:"string"==typeof o||o===i||t(i,o)&&s===i.includes?n:s}}function Ix(){return kx?Tx:(kx=1,Tx=Mx())}var jx,zx,Nx,Bx,Wx,Yx,Gx,Vx=Wt(Ax?Ox:(Ax=1,Ox=Ix())),Ux={};function Xx(){return Nx?zx:(Nx=1,function(){if(jx)return Ux;jx=1;var t=Mr(),e=ae(),n=ir(),r=Wu(),i=Bu();t({target:"Object",stat:!0,forced:e(function(){r(1)}),sham:!i},{getPrototypeOf:function(t){return r(n(t))}})}(),zx=dn().Object.getPrototypeOf)}function Hx(){return Wx?Bx:(Wx=1,Bx=Xx())}var qx,Zx,Jx,Kx,Qx,$x,t_,e_,n_,r_=Wt(Gx?Yx:(Gx=1,Yx=Hx())),i_={};function o_(){if(Zx)return qx;Zx=1;var t=be(),e=ae(),n=le(),r=Wu(),i=_i(),o=hn(),s=n(sn().f),a=n([].push),u=t&&e(function(){var t=Object.create(null);return t[2]=2,!s(t,2)}),c=function(e){return function(n){for(var c,l=o(n),h=i(l),f=u&&null===r(l),d=h.length,p=0,v=[];d>p;)c=h[p++],t&&!(f?c in l:s(l,c))||a(v,e?[c,l[c]]:l[c]);return v}};return qx={entries:c(!0),values:c(!1)}}function s_(){return Qx?Kx:(Qx=1,function(){if(Jx)return i_;Jx=1;var t=Mr(),e=o_().values;t({target:"Object",stat:!0},{values:function(t){return e(t)}})}(),Kx=dn().Object.values)}function a_(){return t_?$x:(t_=1,$x=s_())}var u_,c_,l_,h_,f_,d_,p_,v_,m_,g_,y_,b_,w_,x_=Wt(n_?e_:(n_=1,e_=a_())),__={};function C_(){return c_?u_:(c_=1,u_="\t\n\v\f\r \u2028\u2029\ufeff")}function S_(){if(h_)return l_;h_=1;var t=le(),e=ln(),n=zr(),r=C_(),i=t("".replace),o=RegExp("^["+r+"]+"),s=RegExp("(^|[^"+r+"])["+r+"]+$"),a=function(t){return function(r){var a=n(e(r));return 1&t&&(a=i(a,o,"")),2&t&&(a=i(a,s,"$1")),a}};return l_={start:a(1),end:a(2),trim:a(3)}}function E_(){if(d_)return f_;d_=1;var t=se(),e=ae(),n=le(),r=zr(),i=S_().trim,o=C_(),s=t.parseInt,a=t.Symbol,u=a&&a.iterator,c=/^[+-]?0x/i,l=n(c.exec),h=8!==s(o+"08")||22!==s(o+"0x16")||u&&!e(function(){s(Object(u))});return f_=h?function(t,e){var n=i(r(t));return s(n,e>>>0||(l(c,n)?16:10))}:s,f_}function T_(){return m_?v_:(m_=1,function(){if(p_)return __;p_=1;var t=Mr(),e=E_();t({global:!0,forced:parseInt!==e},{parseInt:e})}(),v_=dn().parseInt)}function k_(){return y_?g_:(y_=1,g_=T_())}var O_,A_,D_,P_,L_,R_,F_,M_,I_,j_=Wt(w_?b_:(w_=1,b_=k_())),z_={};function N_(){return D_?A_:(D_=1,function(){if(O_)return z_;O_=1;var t=Mr(),e=fe(),n=yi().indexOf,r=wd(),i=e([].indexOf),o=!!i&&1/i([1],1,-0)<0;t({target:"Array",proto:!0,forced:o||!r("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return o?i(this,t,e)||0:n(this,t,e)}})}(),A_=xl()("Array","indexOf"))}function B_(){if(L_)return P_;L_=1;var t=vn(),e=N_(),n=Array.prototype;return P_=function(r){var i=r.indexOf;return r===n||t(n,r)&&i===n.indexOf?e:i}}function W_(){return F_?R_:(F_=1,R_=B_())}var Y_,G_,V_,U_,X_,H_,q_,Z_=Wt(I_?M_:(I_=1,M_=W_())),J_={};function K_(){return V_?G_:(V_=1,function(){if(Y_)return J_;Y_=1;var t=Mr(),e=o_().entries;t({target:"Object",stat:!0},{entries:function(t){return e(t)}})}(),G_=dn().Object.entries)}function Q_(){return X_?U_:(X_=1,U_=K_())}var $_,tC,eC,nC,rC,iC,oC,sC,aC,uC,cC,lC=Wt(q_?H_:(q_=1,H_=Q_())),hC={};function fC(){if(tC)return $_;tC=1;var t=ir(),e=vi(),n=gi();return $_=[].fill||function(r){for(var i=t(this),o=n(i),s=arguments.length,a=e(s>1?arguments[1]:void 0,o),u=s>2?arguments[2]:void 0,c=void 0===u?o:e(u,o);c>a;)i[a++]=r;return i},$_}function dC(){return rC?nC:(rC=1,function(){if(eC)return hC;eC=1;var t=Mr(),e=fC(),n=ju();t({target:"Array",proto:!0},{fill:e}),n("fill")}(),nC=xl()("Array","fill"))}function pC(){if(oC)return iC;oC=1;var t=vn(),e=dC(),n=Array.prototype;return iC=function(r){var i=r.fill;return r===n||t(n,r)&&i===n.fill?e:i}}function vC(){return aC?sC:(aC=1,sC=pC())}var mC,gC=Wt(cC?uC:(cC=1,uC=vC())),yC={exports:{}};function bC(){return mC||(mC=1,function(t){function e(t){if(t)return function(t){return Object.assign(t,e.prototype),t._callbacks=new Map,t}(t);this._callbacks=new Map}e.prototype.on=function(t,e){const n=this._callbacks.get(t)??[];return n.push(e),this._callbacks.set(t,n),this},e.prototype.once=function(t,e){const n=(...r)=>{this.off(t,n),e.apply(this,r)};return n.fn=e,this.on(t,n),this},e.prototype.off=function(t,e){if(void 0===t&&void 0===e)return this._callbacks.clear(),this;if(void 0===e)return this._callbacks.delete(t),this;const n=this._callbacks.get(t);if(n){for(const[t,r]of n.entries())if(r===e||r.fn===e){n.splice(t,1);break}0===n.length?this._callbacks.delete(t):this._callbacks.set(t,n)}return this},e.prototype.emit=function(t,...e){const n=this._callbacks.get(t);if(n){const t=[...n];for(const n of t)n.apply(this,e)}return this},e.prototype.listeners=function(t){return this._callbacks.get(t)??[]},e.prototype.listenerCount=function(t){if(t)return this.listeners(t).length;let e=0;for(const t of this._callbacks.values())e+=t.length;return e},e.prototype.hasListeners=function(t){return this.listenerCount(t)>0},e.prototype.addEventListener=e.prototype.on,e.prototype.removeListener=e.prototype.off,e.prototype.removeEventListener=e.prototype.off,e.prototype.removeAllListeners=e.prototype.off,t.exports=e}(yC)),yC.exports}var wC=Wt(bC());const xC=Kw("DELETE");function _C(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return CC({},t,...n)}function CC(){const t=SC(...arguments);return TC(t),t}function SC(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(e.length<2)return e[0];if(e.length>2)return SC(CC(e[0],e[1]),...ox(e).call(e,2));const r=e[0],i=e[1];if(r instanceof Date&&i instanceof Date)return r.setTime(i.getTime()),r;for(const t of Uw(i))Object.prototype.propertyIsEnumerable.call(i,t)&&(i[t]===xC?delete r[t]:null===r[t]||null===i[t]||"object"!=typeof r[t]||"object"!=typeof i[t]||my(r[t])||my(i[t])?r[t]=EC(i[t]):r[t]=SC(r[t],i[t]));return r}function EC(t){return my(t)?hp(t).call(t,t=>EC(t)):"object"==typeof t&&null!==t?t instanceof Date?new Date(t.getTime()):SC({},t):t}function TC(t){for(const e of Rb(t))t[e]===xC?delete t[e]:"object"==typeof t[e]&&null!==t[e]&&TC(t[e])}const kC="undefined"!=typeof window?window.Hammer||zt:function(){return function(){const t=()=>{};return{on:t,off:t,destroy:t,emit:t,get:()=>({set:t})}}()};function OC(t){var e;this._cleanupQueue=[],this.active=!1,this._dom={container:t,overlay:document.createElement("div")},this._dom.overlay.classList.add("vis-overlay"),this._dom.container.appendChild(this._dom.overlay),this._cleanupQueue.push(()=>{this._dom.overlay.parentNode.removeChild(this._dom.overlay)});const n=kC(this._dom.overlay);n.on("tap",gd(e=this._onTapOverlay).call(e,this)),this._cleanupQueue.push(()=>{n.destroy()});const r=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];bp(r).call(r,t=>{n.on(t,t=>{t.srcEvent.stopPropagation()})}),document&&document.body&&(this._onClick=e=>{(function(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1})(e.target,t)||this.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push(()=>{document.body.removeEventListener("click",this._onClick)})),this._escListener=t=>{("key"in t?"Escape"===t.key:27===t.keyCode)&&this.deactivate()}}wC(OC.prototype),OC.current=null,OC.prototype.destroy=function(){this.deactivate();for(const e of sy(t=this._cleanupQueue).call(t,0).toReversed()){var t;e()}},OC.prototype.activate=function(){OC.current&&OC.current.deactivate(),OC.current=this,this.active=!0,this._dom.overlay.style.display="none",this._dom.container.classList.add("vis-active"),this.emit("change"),this.emit("activate"),document.body.addEventListener("keydown",this._escListener)},OC.prototype.deactivate=function(){this.active=!1,this._dom.overlay.style.display="block",this._dom.container.classList.remove("vis-active"),document.body.removeEventListener("keydown",this._escListener),this.emit("change"),this.emit("deactivate")},OC.prototype._onTapOverlay=function(t){this.activate(),t.srcEvent.stopPropagation()};const AC=/^\/?Date\((-?\d+)/i,DC=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,PC=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,LC=/^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,RC=/^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 FC(t){return t instanceof Number||"number"==typeof t}function MC(t){return t instanceof String||"string"==typeof t}function IC(t){return"object"==typeof t&&null!==t}function jC(t,e,n,r){let i=!1;!0===r&&(i=null===e[n]&&void 0!==t[n]),i?delete t[n]:t[n]=e[n]}const zC=Gy;function NC(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(my(n))throw new TypeError("Arrays are not supported by deepExtend");for(let i=0;i<t.length;i++){const 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?BC(e[o],n[o],!1,r):jC(e,n,o,r);else{if(my(n[o]))throw new TypeError("Arrays are not supported by deepExtend");jC(e,n,o,r)}}return e}function BC(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)||!0===n)if("object"==typeof e[o]&&null!==e[o]&&r_(e[o])===Object.prototype)void 0===t[o]?t[o]=BC({},e[o],n):"object"==typeof t[o]&&null!==t[o]&&r_(t[o])===Object.prototype?BC(t[o],e[o],n):jC(t,e,o,r);else if(my(e[o])){var i;t[o]=ox(i=e[o]).call(i)}else jC(t,e,o,r);return t}function WC(t,e){return[...t,e]}function YC(t){return ox(t).call(t)}const GC=x_;function VC(t){t||(t=window.event),t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)}const UC={asBoolean:(t,e)=>("function"==typeof t&&(t=t()),null!=t?0!=t:e||null),asNumber:(t,e)=>("function"==typeof t&&(t=t()),null!=t?Number(t)||e||null:e||null),asString:(t,e)=>("function"==typeof t&&(t=t()),null!=t?String(t):e||null),asSize:(t,e)=>("function"==typeof t&&(t=t()),MC(t)?t:FC(t)?t+"px":e||null),asElement:(t,e)=>("function"==typeof t&&(t=t()),t||e||null)};function XC(t){let e;switch(t.length){case 3:case 4:return e=PC.exec(t),e?{r:j_(e[1]+e[1],16),g:j_(e[2]+e[2],16),b:j_(e[3]+e[3],16)}:null;case 6:case 7:return e=DC.exec(t),e?{r:j_(e[1],16),g:j_(e[2],16),b:j_(e[3],16)}:null;default:return null}}function HC(t,e,n){var r;return"#"+ox(r=((1<<24)+(t<<16)+(e<<8)+n).toString(16)).call(r,1)}function qC(t,e,n){t/=255,e/=255,n/=255;const r=Math.min(t,Math.min(e,n)),i=Math.max(t,Math.max(e,n));if(r===i)return{h:0,s:0,v:r};return{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}}function ZC(t){const e=document.createElement("div"),n={};e.style.cssText=t;for(let t=0;t<e.style.length;++t)n[e.style[t]]=e.style.getPropertyValue(e.style[t]);return n}function JC(t,e,n){let r,i,o;const s=Math.floor(6*t),a=6*t-s,u=n*(1-e),c=n*(1-a*e),l=n*(1-(1-a)*e);switch(s%6){case 0:r=n,i=l,o=u;break;case 1:r=c,i=n,o=u;break;case 2:r=u,i=n,o=l;break;case 3:r=u,i=c,o=n;break;case 4:r=l,i=u,o=n;break;case 5:r=n,i=u,o=c}return{r:Math.floor(255*r),g:Math.floor(255*i),b:Math.floor(255*o)}}function KC(t,e,n){const r=JC(t,e,n);return HC(r.r,r.g,r.b)}function QC(t){const e=XC(t);if(!e)throw new TypeError("'".concat(t,"' is not a valid color."));return qC(e.r,e.g,e.b)}function $C(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)}function tS(t){return LC.test(t)}function eS(t){return RC.test(t)}function nS(t){if(null===t||"object"!=typeof t)return null;if(t instanceof Element)return t;const e=Kp(t);for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&"object"==typeof t[n]&&(e[n]=nS(t[n]));return e}const rS={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>t*(2-t),easeInOutQuad:t=>t<.5?2*t*t:(4-2*t)*t-1,easeInCubic:t=>t*t*t,easeOutCubic:t=>--t*t*t+1,easeInOutCubic:t=>t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1,easeInQuart:t=>t*t*t*t,easeOutQuart:t=>1- --t*t*t*t,easeInOutQuart:t=>t<.5?8*t*t*t*t:1-8*--t*t*t*t,easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>1+--t*t*t*t*t,easeInOutQuint:t=>t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t};const iS={black:"#000000",navy:"#000080",darkblue:"#00008B",mediumblue:"#0000CD",blue:"#0000FF",darkgreen:"#006400",green:"#008000",teal:"#008080",darkcyan:"#008B8B",deepskyblue:"#00BFFF",darkturquoise:"#00CED1",mediumspringgreen:"#00FA9A",lime:"#00FF00",springgreen:"#00FF7F",aqua:"#00FFFF",cyan:"#00FFFF",midnightblue:"#191970",dodgerblue:"#1E90FF",lightseagreen:"#20B2AA",forestgreen:"#228B22",seagreen:"#2E8B57",darkslategray:"#2F4F4F",limegreen:"#32CD32",mediumseagreen:"#3CB371",turquoise:"#40E0D0",royalblue:"#4169E1",steelblue:"#4682B4",darkslateblue:"#483D8B",mediumturquoise:"#48D1CC",indigo:"#4B0082",darkolivegreen:"#556B2F",cadetblue:"#5F9EA0",cornflowerblue:"#6495ED",mediumaquamarine:"#66CDAA",dimgray:"#696969",slateblue:"#6A5ACD",olivedrab:"#6B8E23",slategray:"#708090",lightslategray:"#778899",mediumslateblue:"#7B68EE",lawngreen:"#7CFC00",chartreuse:"#7FFF00",aquamarine:"#7FFFD4",maroon:"#800000",purple:"#800080",olive:"#808000",gray:"#808080",skyblue:"#87CEEB",lightskyblue:"#87CEFA",blueviolet:"#8A2BE2",darkred:"#8B0000",darkmagenta:"#8B008B",saddlebrown:"#8B4513",darkseagreen:"#8FBC8F",lightgreen:"#90EE90",mediumpurple:"#9370D8",darkviolet:"#9400D3",palegreen:"#98FB98",darkorchid:"#9932CC",yellowgreen:"#9ACD32",sienna:"#A0522D",brown:"#A52A2A",darkgray:"#A9A9A9",lightblue:"#ADD8E6",greenyellow:"#ADFF2F",paleturquoise:"#AFEEEE",lightsteelblue:"#B0C4DE",powderblue:"#B0E0E6",firebrick:"#B22222",darkgoldenrod:"#B8860B",mediumorchid:"#BA55D3",rosybrown:"#BC8F8F",darkkhaki:"#BDB76B",silver:"#C0C0C0",mediumvioletred:"#C71585",indianred:"#CD5C5C",peru:"#CD853F",chocolate:"#D2691E",tan:"#D2B48C",lightgrey:"#D3D3D3",palevioletred:"#D87093",thistle:"#D8BFD8",orchid:"#DA70D6",goldenrod:"#DAA520",crimson:"#DC143C",gainsboro:"#DCDCDC",plum:"#DDA0DD",burlywood:"#DEB887",lightcyan:"#E0FFFF",lavender:"#E6E6FA",darksalmon:"#E9967A",violet:"#EE82EE",palegoldenrod:"#EEE8AA",lightcoral:"#F08080",khaki:"#F0E68C",aliceblue:"#F0F8FF",honeydew:"#F0FFF0",azure:"#F0FFFF",sandybrown:"#F4A460",wheat:"#F5DEB3",beige:"#F5F5DC",whitesmoke:"#F5F5F5",mintcream:"#F5FFFA",ghostwhite:"#F8F8FF",salmon:"#FA8072",antiquewhite:"#FAEBD7",linen:"#FAF0E6",lightgoldenrodyellow:"#FAFAD2",oldlace:"#FDF5E6",red:"#FF0000",fuchsia:"#FF00FF",magenta:"#FF00FF",deeppink:"#FF1493",orangered:"#FF4500",tomato:"#FF6347",hotpink:"#FF69B4",coral:"#FF7F50",darkorange:"#FF8C00",lightsalmon:"#FFA07A",orange:"#FFA500",lightpink:"#FFB6C1",pink:"#FFC0CB",gold:"#FFD700",peachpuff:"#FFDAB9",navajowhite:"#FFDEAD",moccasin:"#FFE4B5",bisque:"#FFE4C4",mistyrose:"#FFE4E1",blanchedalmond:"#FFEBCD",papayawhip:"#FFEFD5",lavenderblush:"#FFF0F5",seashell:"#FFF5EE",cornsilk:"#FFF8DC",lemonchiffon:"#FFFACD",floralwhite:"#FFFAF0",snow:"#FFFAFA",yellow:"#FFFF00",lightyellow:"#FFFFE0",ivory:"#FFFFF0",white:"#FFFFFF"};let oS=class{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.pixelRatio=t,this.generated=!1,this.centerCoordinates={x:144.5,y:144.5},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=()=>{},this.closeCallback=()=>{},this._create()}insertTo(t){void 0!==this.hammer&&(this.hammer.destroy(),this.hammer=void 0),this.container=t,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}setUpdateCallback(t){if("function"!=typeof t)throw new Error("Function attempted to set as colorPicker update callback is not a function.");this.updateCallback=t}setCloseCallback(t){if("function"!=typeof t)throw new Error("Function attempted to set as colorPicker closing callback is not a function.");this.closeCallback=t}_isColorString(t){if("string"==typeof t)return iS[t]}setColor(t){let e,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if("none"===t)return;const r=this._isColorString(t);if(void 0!==r&&(t=r),!0===MC(t)){if(!0===tS(t)){const n=t.substr(4).substr(0,t.length-5).split(",");e={r:n[0],g:n[1],b:n[2],a:1}}else if(!0===eS(t)){const n=t.substr(5).substr(0,t.length-6).split(",");e={r:n[0],g:n[1],b:n[2],a:n[3]}}else if(!0===$C(t)){const n=XC(t);e={r:n.r,g:n.g,b:n.b,a:1}}}else if(t instanceof Object&&void 0!==t.r&&void 0!==t.g&&void 0!==t.b){const n=void 0!==t.a?t.a:"1.0";e={r:t.r,g:t.g,b:t.b,a:n}}if(void 0===e)throw new Error("Unknown color passed to the colorPicker. Supported are strings: rgb, hex, rgba. Object: rgb ({r:r,g:g,b:b,[a:a]}). Supplied: "+Aw(t));this._setColor(e,n)}show(){void 0!==this.closeCallback&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}_hide(){!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&(this.previousColor=Gy({},this.color)),!0===this.applied&&this.updateCallback(this.initialColor),this.frame.style.display="none",Qg(()=>{void 0!==this.closeCallback&&(this.closeCallback(),this.closeCallback=void 0)},0)}_save(){this.updateCallback(this.color),this.applied=!1,this._hide()}_apply(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}_loadLast(){void 0!==this.previousColor?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}_setColor(t){!0===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(this.initialColor=Gy({},t)),this.color=t;const e=qC(t.r,t.g,t.b),n=2*Math.PI,r=this.r*e.s,i=this.centerCoordinates.x+r*Math.sin(n*e.h),o=this.centerCoordinates.y+r*Math.cos(n*e.h);this.colorPickerSelector.style.left=i-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=o-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(t)}_setOpacity(t){this.color.a=t/100,this._updatePicker(this.color)}_setBrightness(t){const e=qC(this.color.r,this.color.g,this.color.b);e.v=t/100;const n=JC(e.h,e.s,e.v);n.a=this.color.a,this.color=n,this._updatePicker()}_updatePicker(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.color;const e=qC(t.r,t.g,t.b),n=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(n.webkitBackingStorePixelRatio||n.mozBackingStorePixelRatio||n.msBackingStorePixelRatio||n.oBackingStorePixelRatio||n.backingStorePixelRatio||1)),n.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);const r=this.colorPickerCanvas.clientWidth,i=this.colorPickerCanvas.clientHeight;n.clearRect(0,0,r,i),n.putImageData(this.hueCircle,0,0),n.fillStyle="rgba(0,0,0,"+(1-e.v)+")",n.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),gC(n).call(n),this.brightnessRange.value=100*e.v,this.opacityRange.value=100*t.a,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}_setSize(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}_create(){var t,e,n,r;if(this.frame=document.createElement("div"),this.frame.className="vis-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="vis-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){const t=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{const t=document.createElement("DIV");t.style.color="red",t.style.fontWeight="bold",t.style.padding="10px",t.innerText="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(t)}this.colorPickerDiv.className="vis-color",this.opacityDiv=document.createElement("div"),this.opacityDiv.className="vis-opacity",this.brightnessDiv=document.createElement("div"),this.brightnessDiv.className="vis-brightness",this.arrowDiv=document.createElement("div"),this.arrowDiv.className="vis-arrow",this.opacityRange=document.createElement("input");try{this.opacityRange.type="range",this.opacityRange.min="0",this.opacityRange.max="100"}catch(t){}this.opacityRange.value="100",this.opacityRange.className="vis-range",this.brightnessRange=document.createElement("input");try{this.brightnessRange.type="range",this.brightnessRange.min="0",this.brightnessRange.max="100"}catch(t){}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);const i=this;this.opacityRange.onchange=function(){i._setOpacity(this.value)},this.opacityRange.oninput=function(){i._setOpacity(this.value)},this.brightnessRange.onchange=function(){i._setBrightness(this.value)},this.brightnessRange.oninput=function(){i._setBrightness(this.value)},this.brightnessLabel=document.createElement("div"),this.brightnessLabel.className="vis-label vis-brightness",this.brightnessLabel.innerText="brightness:",this.opacityLabel=document.createElement("div"),this.opacityLabel.className="vis-label vis-opacity",this.opacityLabel.innerText="opacity:",this.newColorDiv=document.createElement("div"),this.newColorDiv.className="vis-new-color",this.newColorDiv.innerText="new",this.initialColorDiv=document.createElement("div"),this.initialColorDiv.className="vis-initial-color",this.initialColorDiv.innerText="initial",this.cancelButton=document.createElement("div"),this.cancelButton.className="vis-button vis-cancel",this.cancelButton.innerText="cancel",this.cancelButton.onclick=gd(t=this._hide).call(t,this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="vis-button vis-apply",this.applyButton.innerText="apply",this.applyButton.onclick=gd(e=this._apply).call(e,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerText="save",this.saveButton.onclick=gd(n=this._save).call(n,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerText="load last",this.loadButton.onclick=gd(r=this._loadLast).call(r,this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}_bindHammer(){this.drag={},this.pinch={},this.hammer=new kC(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.on("hammer.input",t=>{t.isFirst&&this._moveSelector(t)}),this.hammer.on("tap",t=>{this._moveSelector(t)}),this.hammer.on("panstart",t=>{this._moveSelector(t)}),this.hammer.on("panmove",t=>{this._moveSelector(t)}),this.hammer.on("panend",t=>{this._moveSelector(t)})}_generateHueCircle(){if(!1===this.generated){const t=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1)),t.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);const e=this.colorPickerCanvas.clientWidth,n=this.colorPickerCanvas.clientHeight;let r,i,o,s;t.clearRect(0,0,e,n),this.centerCoordinates={x:.5*e,y:.5*n},this.r=.49*e;const a=2*Math.PI/360,u=1/360,c=1/this.r;let l;for(o=0;o<360;o++)for(s=0;s<this.r;s++)r=this.centerCoordinates.x+s*Math.sin(a*o),i=this.centerCoordinates.y+s*Math.cos(a*o),l=JC(o*u,s*c,1),t.fillStyle="rgb("+l.r+","+l.g+","+l.b+")",t.fillRect(r-.5,i-.5,2,2);t.strokeStyle="rgba(0,0,0,1)",t.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),t.stroke(),this.hueCircle=t.getImageData(0,0,e,n)}this.generated=!0}_moveSelector(t){const e=this.colorPickerDiv.getBoundingClientRect(),n=t.center.x-e.left,r=t.center.y-e.top,i=.5*this.colorPickerDiv.clientHeight,o=.5*this.colorPickerDiv.clientWidth,s=n-o,a=r-i,u=Math.atan2(s,a),c=.98*Math.min(Math.sqrt(s*s+a*a),o),l=Math.cos(u)*c+i,h=Math.sin(u)*c+o;this.colorPickerSelector.style.top=l-.5*this.colorPickerSelector.clientHeight+"px",this.colorPickerSelector.style.left=h-.5*this.colorPickerSelector.clientWidth+"px";let f=u/(2*Math.PI);f=f<0?f+1:f;const d=c/this.r,p=qC(this.color.r,this.color.g,this.color.b);p.h=f,p.s=d;const v=JC(p.h,p.s,p.v);v.a=this.color.a,this.color=v,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}};function sS(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(e.length<1)throw new TypeError("Invalid arguments.");if(1===e.length)return document.createTextNode(e[0]);{const t=document.createElement(e[0]);return t.appendChild(sS(...ox(e).call(e,1))),t}}let aS,uS=!1;const cS="background: #FFeeee; color: #dd0000";const lS=OC,hS=oS,fS=class{constructor(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:()=>!1;this.parent=t,this.changedOptions=[],this.container=e,this.allowCreation=!1,this.hideOption=i,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},Gy(this.options,this.defaultOptions),this.configureOptions=n,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new oS(r),this.wrapper=void 0}setOptions(t){if(void 0!==t){this.popupHistory={},this._removePopup();let e=!0;if("string"==typeof t)this.options.filter=t;else if(my(t))this.options.filter=t.join();else if("object"==typeof t){if(null==t)throw new TypeError("options cannot be null");void 0!==t.container&&(this.options.container=t.container),void 0!==Zd(t)&&(this.options.filter=Zd(t)),void 0!==t.showButton&&(this.options.showButton=t.showButton),void 0!==t.enabled&&(e=t.enabled)}else"boolean"==typeof t?(this.options.filter=!0,e=t):"function"==typeof t&&(this.options.filter=t,e=!0);!1===Zd(this.options)&&(e=!1),this.options.enabled=e}this._clean()}setModuleOptions(t){this.moduleOptions=t,!0===this.options.enabled&&(this._clean(),void 0!==this.options.container&&(this.container=this.options.container),this._create())}_create(){this._clean(),this.changedOptions=[];const t=Zd(this.options);let e=0,n=!1;for(const r in this.configureOptions)Object.prototype.hasOwnProperty.call(this.configureOptions,r)&&(this.allowCreation=!1,n=!1,"function"==typeof t?(n=t(r,[]),n=n||this._handleObject(this.configureOptions[r],[r],!0)):!0!==t&&-1===Z_(t).call(t,r)||(n=!0),!1!==n&&(this.allowCreation=!0,e>0&&this._makeItem([]),this._makeHeader(r),this._handleObject(this.configureOptions[r],[r])),e++);this._makeButton(),this._push()}_push(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(let t=0;t<this.domElements.length;t++)this.wrapper.appendChild(this.domElements[t]);this._showPopupIfNeeded()}_clean(){for(let t=0;t<this.domElements.length;t++)this.wrapper.removeChild(this.domElements[t]);void 0!==this.wrapper&&(this.container.removeChild(this.wrapper),this.wrapper=void 0),this.domElements=[],this._removePopup()}_getValue(t){let e=this.moduleOptions;for(let n=0;n<t.length;n++){if(void 0===e[t[n]]){e=void 0;break}e=e[t[n]]}return e}_makeItem(t){if(!0===this.allowCreation){const i=document.createElement("div");i.className="vis-configuration vis-config-item vis-config-s"+t.length;for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return bp(n).call(n,t=>{i.appendChild(t)}),this.domElements.push(i),this.domElements.length}return 0}_makeHeader(t){const e=document.createElement("div");e.className="vis-configuration vis-config-header",e.innerText=t,this._makeItem([],e)}_makeLabel(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=document.createElement("div");if(r.className="vis-configuration vis-config-label vis-config-s"+e.length,!0===n){for(;r.firstChild;)r.removeChild(r.firstChild);r.appendChild(sS("i","b",t))}else r.innerText=t+":";return r}_makeDropdown(t,e,n){const r=document.createElement("select");r.className="vis-configuration vis-config-select";let i=0;void 0!==e&&-1!==Z_(t).call(t,e)&&(i=Z_(t).call(t,e));for(let e=0;e<t.length;e++){const n=document.createElement("option");n.value=t[e],e===i&&(n.selected="selected"),n.innerText=t[e],r.appendChild(n)}const o=this;r.onchange=function(){o._update(this.value,n)};const s=this._makeLabel(n[n.length-1],n);this._makeItem(n,s,r)}_makeRange(t,e,n){const r=t[0],i=t[1],o=t[2],s=t[3],a=document.createElement("input");a.className="vis-configuration vis-config-range";try{a.type="range",a.min=i,a.max=o}catch(t){}a.step=s;let u="",c=0;if(void 0!==e){const t=1.2;e<0&&e*t<i?(a.min=Math.ceil(e*t),c=a.min,u="range increased"):e/t<i&&(a.min=Math.ceil(e/t),c=a.min,u="range increased"),e*t>o&&1!==o&&(a.max=Math.ceil(e*t),c=a.max,u="range increased"),a.value=e}else a.value=r;const l=document.createElement("input");l.className="vis-configuration vis-config-rangeinput",l.value=a.value;const h=this;a.onchange=function(){l.value=this.value,h._update(Number(this.value),n)},a.oninput=function(){l.value=this.value};const f=this._makeLabel(n[n.length-1],n),d=this._makeItem(n,f,a,l);""!==u&&this.popupHistory[d]!==c&&(this.popupHistory[d]=c,this._setupPopup(u,d))}_makeButton(){if(!0===this.options.showButton){const t=document.createElement("div");t.className="vis-configuration vis-config-button",t.innerText="generate options",t.onclick=()=>{this._printOptions()},t.onmouseover=()=>{t.className="vis-configuration vis-config-button hover"},t.onmouseout=()=>{t.className="vis-configuration vis-config-button"},this.optionsContainer=document.createElement("div"),this.optionsContainer.className="vis-configuration vis-config-option-container",this.domElements.push(this.optionsContainer),this.domElements.push(t)}}_setupPopup(t,e){if(!0===this.initialized&&!0===this.allowCreation&&this.popupCounter<this.popupLimit){const n=document.createElement("div");n.id="vis-configuration-popup",n.className="vis-configuration-popup",n.innerText=t,n.onclick=()=>{this._removePopup()},this.popupCounter+=1,this.popupDiv={html:n,index:e}}}_removePopup(){void 0!==this.popupDiv.html&&(this.popupDiv.html.parentNode.removeChild(this.popupDiv.html),clearTimeout(this.popupDiv.hideTimeout),clearTimeout(this.popupDiv.deleteTimeout),this.popupDiv={})}_showPopupIfNeeded(){if(void 0!==this.popupDiv.html){const t=this.domElements[this.popupDiv.index].getBoundingClientRect();this.popupDiv.html.style.left=t.left+"px",this.popupDiv.html.style.top=t.top-30+"px",document.body.appendChild(this.popupDiv.html),this.popupDiv.hideTimeout=Qg(()=>{this.popupDiv.html.style.opacity=0},1500),this.popupDiv.deleteTimeout=Qg(()=>{this._removePopup()},1800)}}_makeCheckbox(t,e,n){const r=document.createElement("input");r.type="checkbox",r.className="vis-configuration vis-config-checkbox",r.checked=t,void 0!==e&&(r.checked=e,e!==t&&("object"==typeof t?e!==t.enabled&&this.changedOptions.push({path:n,value:e}):this.changedOptions.push({path:n,value:e})));const i=this;r.onchange=function(){i._update(this.checked,n)};const o=this._makeLabel(n[n.length-1],n);this._makeItem(n,o,r)}_makeTextInput(t,e,n){const r=document.createElement("input");r.type="text",r.className="vis-configuration vis-config-text",r.value=e,e!==t&&this.changedOptions.push({path:n,value:e});const i=this;r.onchange=function(){i._update(this.value,n)};const o=this._makeLabel(n[n.length-1],n);this._makeItem(n,o,r)}_makeColorField(t,e,n){const r=t[1],i=document.createElement("div");"none"!==(e=void 0===e?r:e)?(i.className="vis-configuration vis-config-colorBlock",i.style.backgroundColor=e):i.className="vis-configuration vis-config-colorBlock none",e=void 0===e?r:e,i.onclick=()=>{this._showColorPicker(e,i,n)};const o=this._makeLabel(n[n.length-1],n);this._makeItem(n,o,i)}_showColorPicker(t,e,n){e.onclick=function(){},this.colorPicker.insertTo(e),this.colorPicker.show(),this.colorPicker.setColor(t),this.colorPicker.setUpdateCallback(t=>{const r="rgba("+t.r+","+t.g+","+t.b+","+t.a+")";e.style.backgroundColor=r,this._update(r,n)}),this.colorPicker.setCloseCallback(()=>{e.onclick=()=>{this._showColorPicker(t,e,n)}})}_handleObject(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!1;const i=Zd(this.options);let o=!1;for(const s in t)if(Object.prototype.hasOwnProperty.call(t,s)){r=!0;const a=t[s],u=WC(e,s);if("function"==typeof i&&(r=i(s,e),!1===r&&!my(a)&&"string"!=typeof a&&"boolean"!=typeof a&&a instanceof Object&&(this.allowCreation=!1,r=this._handleObject(a,u,!0),this.allowCreation=!1===n)),!1!==r){o=!0;const t=this._getValue(u);if(my(a))this._handleArray(a,t,u);else if("string"==typeof a)this._makeTextInput(a,t,u);else if("boolean"==typeof a)this._makeCheckbox(a,t,u);else if(a instanceof Object){if(!this.hideOption(e,s,this.moduleOptions))if(void 0!==a.enabled){const t=WC(u,"enabled"),e=this._getValue(t);if(!0===e){const t=this._makeLabel(s,u,!0);this._makeItem(u,t),o=this._handleObject(a,u)||o}else this._makeCheckbox(a,e,u)}else{const t=this._makeLabel(s,u,!0);this._makeItem(u,t),o=this._handleObject(a,u)||o}}else console.error("dont know how to handle",a,s,u)}}return o}_handleArray(t,e,n){"string"==typeof t[0]&&"color"===t[0]?(this._makeColorField(t,e,n),t[1]!==e&&this.changedOptions.push({path:n,value:e})):"string"==typeof t[0]?(this._makeDropdown(t,e,n),t[0]!==e&&this.changedOptions.push({path:n,value:e})):"number"==typeof t[0]&&(this._makeRange(t,e,n),t[0]!==e&&this.changedOptions.push({path:n,value:Number(e)}))}_update(t,e){const n=this._constructOptions(t,e);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",n),this.initialized=!0,this.parent.setOptions(n)}_constructOptions(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n;t="false"!==(t="true"===t||t)&&t;for(let n=0;n<e.length;n++)"global"!==e[n]&&(void 0===r[e[n]]&&(r[e[n]]={}),n!==e.length-1?r=r[e[n]]:r[e[n]]=t);return n}_printOptions(){const t=this.getOptions();for(;this.optionsContainer.firstChild;)this.optionsContainer.removeChild(this.optionsContainer.firstChild);this.optionsContainer.appendChild(sS("pre","const options = "+Aw(t,null,2)))}getOptions(){const t={};for(let e=0;e<this.changedOptions.length;e++)this._constructOptions(this.changedOptions[e].value,this.changedOptions[e].path,t);return t}},dS=kC,pS=class{constructor(t,e){this.container=t,this.overflowMethod=e||"cap",this.x=0,this.y=0,this.padding=5,this.hidden=!1,this.frame=document.createElement("div"),this.frame.className="vis-tooltip",this.container.appendChild(this.frame)}setPosition(t,e){this.x=j_(t),this.y=j_(e)}setText(t){if(t instanceof Element){for(;this.frame.firstChild;)this.frame.removeChild(this.frame.firstChild);this.frame.appendChild(t)}else this.frame.innerText=t}show(t){if(void 0===t&&(t=!0),!0===t){const t=this.frame.clientHeight,e=this.frame.clientWidth,n=this.frame.parentNode.clientHeight,r=this.frame.parentNode.clientWidth;let i=0,o=0;if("flip"==this.overflowMethod){let n=!1,s=!0;this.y-t<this.padding&&(s=!1),this.x+e>r-this.padding&&(n=!0),i=n?this.x-e:this.x,o=s?this.y-t:this.y}else o=this.y-t,o+t+this.padding>n&&(o=n-t-this.padding),o<this.padding&&(o=this.padding),i=this.x,i+e+this.padding>r&&(i=r-e-this.padding),i<this.padding&&(i=this.padding);this.frame.style.left=i+"px",this.frame.style.top=o+"px",this.frame.style.visibility="visible",this.hidden=!1}else this.hide()}hide(){this.hidden=!0,this.frame.style.left="0",this.frame.style.top="0",this.frame.style.visibility="hidden"}destroy(){this.frame.parentNode.removeChild(this.frame)}},vS=cS,mS=class t{static validate(e,n,r){uS=!1,aS=n;let i=n;return void 0!==r&&(i=n[r]),t.parse(e,i,[]),uS}static parse(e,n,r){for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.check(i,e,n,r)}static check(e,n,r,i){if(void 0===r[e]&&void 0===r.__any__)return void t.getSuggestion(e,r,i);let o=e,s=!0;void 0===r[e]&&void 0!==r.__any__&&(o="__any__",s="object"===t.getType(n[e]));let a=r[o];s&&void 0!==a.__type__&&(a=a.__type__),t.checkFields(e,n,r,o,a,i)}static checkFields(e,n,r,i,o,s){const a=function(n){console.error("%c"+n+t.printLocation(s,e),cS)},u=t.getType(n[e]),c=o[u];void 0!==c?"array"===t.getType(c)&&-1===Z_(c).call(c,n[e])?(a('Invalid option detected in "'+e+'". Allowed values are:'+t.print(c)+' not "'+n[e]+'". '),uS=!0):"object"===u&&"__any__"!==i&&(s=WC(s,e),t.parse(n[e],r[i],s)):void 0===o.any&&(a('Invalid type received for "'+e+'". Expected: '+t.print(Rb(o))+". Received ["+u+'] "'+n[e]+'"'),uS=!0)}static getType(t){const e=typeof t;return"object"===e?null===t?"null":t instanceof Boolean?"boolean":t instanceof Number?"number":t instanceof String?"string":my(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}static getSuggestion(e,n,r){const i=t.findInOptions(e,n,r,!1),o=t.findInOptions(e,aS,[],!0);let s;s=void 0!==i.indexMatch?" in "+t.printLocation(i.path,e,"")+'Perhaps it was incomplete? Did you mean: "'+i.indexMatch+'"?\n\n':o.distance<=4&&i.distance>o.distance?" in "+t.printLocation(i.path,e,"")+"Perhaps it was misplaced? Matching option found at: "+t.printLocation(o.path,o.closestMatch,""):i.distance<=8?'. Did you mean "'+i.closestMatch+'"?'+t.printLocation(i.path,e):". Did you mean one of these: "+t.print(Rb(n))+t.printLocation(r,e),console.error('%cUnknown option detected: "'+e+'"'+s,cS),uS=!0}static findInOptions(e,n,r){let i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=1e9,s="",a=[];const u=e.toLowerCase();let c;for(const h in n){let f;if(void 0!==n[h].__type__&&!0===i){const i=t.findInOptions(e,n[h],WC(r,h));o>i.distance&&(s=i.closestMatch,a=i.path,o=i.distance,c=i.indexMatch)}else{var l;-1!==Z_(l=h.toLowerCase()).call(l,u)&&(c=h),f=t.levenshteinDistance(e,h),o>f&&(s=h,a=YC(r),o=f)}}return{closestMatch:s,path:a,distance:o,indexMatch:c}}static printLocation(t,e){let n="\n\n"+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Problem value found at: \n")+"options = {\n";for(let e=0;e<t.length;e++){for(let t=0;t<e+1;t++)n+=" ";n+=t[e]+": {\n"}for(let e=0;e<t.length+1;e++)n+=" ";n+=e+"\n";for(let e=0;e<t.length+1;e++){for(let r=0;r<t.length-e;r++)n+=" ";n+="}\n"}return n+"\n\n"}static print(t){return Aw(t).replace(/(")|(\[)|(\])|(,"__type__")/g,"").replace(/(,)/g,", ")}static levenshteinDistance(t,e){if(0===t.length)return e.length;if(0===e.length)return t.length;const n=[];let r,i;for(r=0;r<=e.length;r++)n[r]=[r];for(i=0;i<=t.length;i++)n[0][i]=i;for(r=1;r<=e.length;r++)for(i=1;i<=t.length;i++)e.charAt(r-1)==t.charAt(i-1)?n[r][i]=n[r-1][i-1]:n[r][i]=Math.min(n[r-1][i-1]+1,Math.min(n[r][i-1]+1,n[r-1][i]+1));return n[e.length][t.length]}};var gS=Object.freeze({__proto__:null,Activator:lS,Alea:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){let e=function(){const t=function(){let t=4022871197;return function(e){const n=e.toString();for(let e=0;e<n.length;e++){t+=n.charCodeAt(e);let r=.02519603282416938*t;t=r>>>0,r-=t,r*=t,t=r>>>0,r-=t,t+=4294967296*r}return 2.3283064365386963e-10*(t>>>0)}}();let e=t(" "),n=t(" "),r=t(" ");for(let i=0;i<arguments.length;i++)e-=t(i<0||arguments.length<=i?void 0:arguments[i]),e<0&&(e+=1),n-=t(i<0||arguments.length<=i?void 0:arguments[i]),n<0&&(n+=1),r-=t(i<0||arguments.length<=i?void 0:arguments[i]),r<0&&(r+=1);return[e,n,r]}(t),n=Ih(e,3),r=n[0],i=n[1],o=n[2],s=1;const a=()=>{const t=2091639*r+2.3283064365386963e-10*s;return r=i,i=o,o=t-(s=0|t)};return a.uint32=()=>4294967296*a(),a.fract53=()=>a()+11102230246251565e-32*(2097152*a()|0),a.algorithm="Alea",a.seed=t,a.version="0.9",a}(e.length?e:[fx()])},ColorPicker:hS,Configurator:fS,DELETE:xC,HSVToHex:KC,HSVToRGB:JC,Hammer:dS,Popup:pS,RGBToHSV:qC,RGBToHex:HC,VALIDATOR_PRINT_STYLE:vS,Validator:mS,addClassName:function(t,e){let n=t.className.split(" ");const r=e.split(" ");n=eb(n).call(n,Zd(r).call(r,function(t){return!Vx(n).call(n,t)})),t.className=n.join(" ")},addCssText:function(t,e){const n=ZC(e);for(const e of lC(n)){var r=Ih(e,2);const n=r[0],i=r[1];t.style.setProperty(n,i)}},binarySearchCustom:function(t,e,n,r){let i=0,o=0,s=t.length-1;for(;o<=s&&i<1e4;){const a=Math.floor((o+s)/2),u=t[a],c=e(void 0===r?u[n]:u[n][r]);if(0==c)return a;-1==c?o=a+1:s=a-1,i++}return-1},binarySearchValue:function(t,e,n,r,i){let o,s,a,u,c=0,l=0,h=t.length-1;for(i=null!=i?i:function(t,e){return t==e?0:t<e?-1:1};l<=h&&c<1e4;){if(u=Math.floor(.5*(h+l)),o=t[Math.max(0,u-1)][n],s=t[u][n],a=t[Math.min(t.length-1,u+1)][n],0==i(s,e))return u;if(i(o,e)<0&&i(s,e)>0)return"before"==r?Math.max(0,u-1):u;if(i(s,e)<0&&i(a,e)>0)return"before"==r?u:Math.min(t.length-1,u+1);i(s,e)<0?l=u+1:h=u-1,c++}return-1},bridgeObject:nS,copyAndExtendArray:WC,copyArray:YC,deepExtend:BC,deepObjectAssign:CC,easingFunctions:rS,equalArray:function(t,e){if(t.length!==e.length)return!1;for(let n=0,r=t.length;n<r;n++)if(t[n]!=e[n])return!1;return!0},extend:zC,fillIfDefined:function t(e,n){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(const i in e)if(void 0!==n[i])if(null===n[i]||"object"!=typeof n[i])jC(e,n,i,r);else{const o=e[i],s=n[i];IC(o)&&IC(s)&&t(o,s,r)}},forEach:function(t,e){if(my(t)){const n=t.length;for(let r=0;r<n;r++)e(t[r],r,t)}else for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&e(t[n],n,t)},getAbsoluteLeft:function(t){return t.getBoundingClientRect().left},getAbsoluteRight:function(t){return t.getBoundingClientRect().right},getAbsoluteTop:function(t){return t.getBoundingClientRect().top},getScrollBarWidth:function(){const t=document.createElement("p");t.style.width="100%",t.style.height="200px";const 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);const n=t.offsetWidth;e.style.overflow="scroll";let r=t.offsetWidth;return n==r&&(r=e.clientWidth),document.body.removeChild(e),n-r},getTarget:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.event,e=null;return t&&(t.target?e=t.target:t.srcElement&&(e=t.srcElement)),e instanceof Element&&(null==e.nodeType||3!=e.nodeType||(e=e.parentNode,e instanceof Element))?e:null},getType:function(t){const e=typeof t;return"object"===e?null===t?"null":t instanceof Boolean?"Boolean":t instanceof Number?"Number":t instanceof String?"String":my(t)?"Array":t instanceof Date?"Date":"Object":"number"===e?"Number":"boolean"===e?"Boolean":"string"===e?"String":void 0===e?"undefined":e},hasParent:function(t,e){let n=t;for(;n;){if(n===e)return!0;if(!n.parentNode)return!1;n=n.parentNode}return!1},hexToHSV:QC,hexToRGB:XC,insertSort:function(t,e){for(let n=0;n<t.length;n++){const r=t[n];let i;for(i=n;i>0&&e(r,t[i-1])<0;i--)t[i]=t[i-1];t[i]=r}return t},isDate:function(t){if(t instanceof Date)return!0;if(MC(t)){if(AC.exec(t))return!0;if(!isNaN(Date.parse(t)))return!0}return!1},isNumber:FC,isObject:IC,isString:MC,isValidHex:$C,isValidRGB:tS,isValidRGBA:eS,mergeOptions:function(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=function(t){return null!=t},o=function(t){return null!==t&&"object"==typeof t};if(!o(t))throw new Error("Parameter mergeTarget must be an object");if(!o(e))throw new Error("Parameter options must be an object");if(!i(n))throw new Error("Parameter option must have a value");if(!o(r))throw new Error("Parameter globalOptions must be an object");const s=e[n],a=o(r)&&!function(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}(r)?r[n]:void 0,u=a?a.enabled:void 0;if(void 0===s)return;if("boolean"==typeof s)return o(t[n])||(t[n]={}),void(t[n].enabled=s);if(null===s&&!o(t[n])){if(!i(a))return;t[n]=Kp(a)}if(!o(s))return;let c=!0;void 0!==s.enabled?c=s.enabled:void 0!==u&&(c=a.enabled),function(t,e,n){o(t[n])||(t[n]={});const r=e[n],i=t[n];for(const t in r)Object.prototype.hasOwnProperty.call(r,t)&&(i[t]=r[t])}(t,e,n),t[n].enabled=c},option:UC,overrideOpacity:function(t,e){if(Vx(t).call(t,"rgba"))return t;if(Vx(t).call(t,"rgb")){const n=t.substr(Z_(t).call(t,"(")+1).replace(")","").split(",");return"rgba("+n[0]+","+n[1]+","+n[2]+","+e+")"}{const n=XC(t);return null==n?t:"rgba("+n.r+","+n.g+","+n.b+","+e+")"}},parseColor:function(t,e){if(MC(t)){let e=t;if(tS(e)){var n;const t=hp(n=e.substr(4).substr(0,e.length-5).split(",")).call(n,function(t){return j_(t)});e=HC(t[0],t[1],t[2])}if(!0===$C(e)){const t=QC(e),n={h:t.h,s:.8*t.s,v:Math.min(1,1.02*t.v)},r={h:t.h,s:Math.min(1,1.25*t.s),v:.8*t.v},i=KC(r.h,r.s,r.v),o=KC(n.h,n.s,n.v);return{background:e,border:i,highlight:{background:o,border:i},hover:{background:o,border:i}}}return{background:e,border:e,highlight:{background:e,border:e},hover:{background:e,border:e}}}if(e){return{background:t.background||e.background,border:t.border||e.border,highlight:MC(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:MC(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}}}return{background:t.background||void 0,border:t.border||void 0,highlight:MC(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:MC(t.hover)?{border:t.hover,background:t.hover}:{border:t.hover&&t.hover.border||void 0,background:t.hover&&t.hover.background||void 0}}},preventDefault:VC,pureDeepObjectAssign:_C,recursiveDOMDelete:function t(e){if(e)for(;!0===e.hasChildNodes();){const n=e.firstChild;n&&(t(n),e.removeChild(n))}},removeClassName:function(t,e){let n=t.className.split(" ");const r=e.split(" ");n=Zd(n).call(n,function(t){return!Vx(r).call(r,t)}),t.className=n.join(" ")},removeCssText:function(t,e){const n=ZC(e);for(const e of Rb(n))t.style.removeProperty(e)},selectiveBridgeObject:function(t,e){if(null!==e&&"object"==typeof e){const n=Kp(e);for(let r=0;r<t.length;r++)Object.prototype.hasOwnProperty.call(e,t[r])&&"object"==typeof e[t[r]]&&(n[t[r]]=nS(e[t[r]]));return n}return null},selectiveDeepExtend:NC,selectiveExtend:function(t,e){if(!my(t))throw new Error("Array with property names expected as first argument");for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];for(const n of r)for(let r=0;r<t.length;r++){const i=t[r];n&&Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},selectiveNotDeepExtend:function(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(my(n))throw new TypeError("Arrays are not supported by deepExtend");for(const i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&!Vx(t).call(t,i))if(n[i]&&n[i].constructor===Object)void 0===e[i]&&(e[i]={}),e[i].constructor===Object?BC(e[i],n[i]):jC(e,n,i,r);else if(my(n[i])){e[i]=[];for(let t=0;t<n[i].length;t++)e[i].push(n[i][t])}else jC(e,n,i,r);return e},throttle:function(t){let e=!1;return()=>{e||(e=!0,requestAnimationFrame(()=>{e=!1,t()}))}},toArray:GC,topMost:function(t,e){let n;my(e)||(e=[e]);for(const r of t)if(r){n=r[e[0]];for(let t=1;t<e.length;t++)n&&(n=n[e[t]]);if(void 0!==n)break}return n},updateProperty:function(t,e,n){return t[e]!==n&&(t[e]=n,!0)}});const yS=[];for(let t=0;t<256;++t)yS.push((t+256).toString(16).slice(1));const bS=new Uint8Array(16);function wS(t,e,n){return crypto.randomUUID?crypto.randomUUID():function(t){t=t||{};const e=t.random??t.rng?.()??crypto.getRandomValues(bS);if(e.length<16)throw new Error("Random bytes length must be >= 16");return e[6]=15&e[6]|64,e[8]=63&e[8]|128,function(t,e=0){return(yS[t[e+0]]+yS[t[e+1]]+yS[t[e+2]]+yS[t[e+3]]+"-"+yS[t[e+4]]+yS[t[e+5]]+"-"+yS[t[e+6]]+yS[t[e+7]]+"-"+yS[t[e+8]]+yS[t[e+9]]+"-"+yS[t[e+10]]+yS[t[e+11]]+yS[t[e+12]]+yS[t[e+13]]+yS[t[e+14]]+yS[t[e+15]]).toLowerCase()}(e)}(t)}function xS(t,e){var n=Rb(t);if(xs){var r=xs(t);e&&(r=Zd(r).call(r,function(e){return Ms(t,e).enumerable})),n.push.apply(n,r)}return n}function _S(t){for(var e=1;e<arguments.length;e++){var n,r,i=null!=arguments[e]?arguments[e]:{};e%2?bp(n=xS(Object(i),!0)).call(n,function(e){jf(t,e,i[e])}):Xs?ca(t,Xs(i)):bp(r=xS(Object(i))).call(r,function(e){qw(t,e,Ms(i,e))})}return t}function CS(t){return"string"==typeof t||"number"==typeof t}class SS{constructor(){jf(this,"_subscribers",{"*":[],add:[],remove:[],update:[]}),jf(this,"subscribe",SS.prototype.on),jf(this,"unsubscribe",SS.prototype.off)}_trigger(t,e,n){var r;if("*"===t)throw new Error("Cannot trigger event *");bp(r=[...this._subscribers[t],...this._subscribers["*"]]).call(r,r=>{r(t,e,null!=n?n:null)})}on(t,e){"function"==typeof e&&this._subscribers[t].push(e)}off(t,e){var n;this._subscribers[t]=Zd(n=this._subscribers[t]).call(n,t=>t!==e)}}class ES{constructor(t){jf(this,"_pairs",void 0),this._pairs=t}*[kp](){for(const e of this._pairs){var t=Ih(e,2);const n=t[0],r=t[1];yield[n,r]}}*entries(){for(const e of this._pairs){var t=Ih(e,2);const n=t[0],r=t[1];yield[n,r]}}*keys(){for(const t of this._pairs){const e=Ih(t,1)[0];yield e}}*values(){for(const t of this._pairs){const e=Ih(t,2)[1];yield e}}toIdArray(){var t;return hp(t=[...this._pairs]).call(t,t=>t[0])}toItemArray(){var t;return hp(t=[...this._pairs]).call(t,t=>t[1])}toEntryArray(){return[...this._pairs]}toObjectMap(){const t=Kp(null);for(const n of this._pairs){var e=Ih(n,2);const r=e[0],i=e[1];t[r]=i}return t}toMap(){return new Rv(this._pairs)}toIdSet(){return new vg(this.toIdArray())}toItemSet(){return new vg(this.toItemArray())}cache(){return new ES([...this._pairs])}distinct(t){const e=new vg;for(const r of this._pairs){var n=Ih(r,2);const i=n[0],o=n[1];e.add(t(o,i))}return e}filter(t){const e=this._pairs;return new ES({*[kp](){for(const r of e){var n=Ih(r,2);const e=n[0],i=n[1];t(i,e)&&(yield[e,i])}}})}forEach(t){for(const n of this._pairs){var e=Ih(n,2);const r=e[0];t(e[1],r)}}map(t){const e=this._pairs;return new ES({*[kp](){for(const r of e){var n=Ih(r,2);const e=n[0],i=n[1];yield[e,t(i,e)]}}})}max(t){const e=kg(this._pairs);let n=e.next();if(n.done)return null;let r=n.value[1],i=t(n.value[1],n.value[0]);for(;!(n=e.next()).done;){const e=Ih(n.value,2),o=e[0],s=e[1],a=t(s,o);a>i&&(i=a,r=s)}return r}min(t){const e=kg(this._pairs);let n=e.next();if(n.done)return null;let r=n.value[1],i=t(n.value[1],n.value[0]);for(;!(n=e.next()).done;){const e=Ih(n.value,2),o=e[0],s=e[1],a=t(s,o);a<i&&(i=a,r=s)}return r}reduce(t,e){for(const r of this._pairs){var n=Ih(r,2);const i=n[0];e=t(e,n[1],i)}return e}sort(t){return new ES({[kp]:()=>kg([...this._pairs].toSorted((e,n)=>{let r=Ih(e,2),i=r[0],o=r[1],s=Ih(n,2),a=s[0],u=s[1];return t(o,u,i,a)}))})}}class TS{constructor(t){jf(this,"delay",void 0),jf(this,"max",void 0),jf(this,"_queue",[]),jf(this,"_timeout",null),jf(this,"_extended",null),this.delay=null,this.max=1/0,this.setOptions(t)}setOptions(t){t&&void 0!==t.delay&&(this.delay=t.delay),t&&void 0!==t.max&&(this.max=t.max),this._flushIfNeeded()}static extend(t,e){const n=new TS(e);if(void 0!==t.flush)throw new Error("Target object already has a property flush");t.flush=()=>{n.flush()};const r=[{name:"flush",original:void 0}];if(e&&e.replace)for(let i=0;i<e.replace.length;i++){const o=e.replace[i];r.push({name:o,original:t[o]}),n.replace(t,o)}return n._extended={object:t,methods:r},n}destroy(){if(this.flush(),this._extended){const t=this._extended.object,e=this._extended.methods;for(let n=0;n<e.length;n++){const r=e[n];r.original?t[r.name]=r.original:delete t[r.name]}this._extended=null}}replace(t,e){const n=this,r=t[e];if(!r)throw new Error("Method "+e+" undefined");t[e]=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];n.queue({args:e,fn:r,context:this})}}queue(t){"function"==typeof t?this._queue.push({fn:t}):this._queue.push(t),this._flushIfNeeded()}_flushIfNeeded(){this._queue.length>this.max&&this.flush(),null!=this._timeout&&(clearTimeout(this._timeout),this._timeout=null),this.queue.length>0&&"number"==typeof this.delay&&(this._timeout=Qg(()=>{this.flush()},this.delay))}flush(){var t,e;bp(t=sy(e=this._queue).call(e,0)).call(t,t=>{t.fn.apply(t.context||t.fn,t.args||[])})}}class kS extends SS{get idProp(){return this._idProp}constructor(t,e){super(),jf(this,"flush",void 0),jf(this,"length",void 0),jf(this,"_options",void 0),jf(this,"_data",void 0),jf(this,"_idProp",void 0),jf(this,"_queue",null),t&&!my(t)&&(e=t,t=[]),this._options=e||{},this._data=new Rv,this.length=0,this._idProp=this._options.fieldId||"id",t&&t.length&&this.add(t),this.setOptions(e)}setOptions(t){t&&void 0!==t.queue&&(!1===t.queue?this._queue&&(this._queue.destroy(),this._queue=null):(this._queue||(this._queue=TS.extend(this,{replace:["add","update","remove"]})),t.queue&&"object"==typeof t.queue&&this._queue.setOptions(t.queue)))}add(t,e){const n=[];let r;if(my(t)){const e=hp(t).call(t,t=>t[this._idProp]);if(Dy(e).call(e,t=>this._data.has(t)))throw new Error("A duplicate id was found in the parameter array.");for(let e=0,i=t.length;e<i;e++)r=this._addItem(t[e]),n.push(r)}else{if(!t||"object"!=typeof t)throw new Error("Unknown dataType");r=this._addItem(t),n.push(r)}return n.length&&this._trigger("add",{items:n},e),n}update(t,e){const n=[],r=[],i=[],o=[],s=this._idProp,a=t=>{const e=t[s];if(null!=e&&this._data.has(e)){const n=t,s=Gy({},this._data.get(e)),a=this._updateItem(n);r.push(a),o.push(n),i.push(s)}else{const e=this._addItem(t);n.push(e)}};if(my(t))for(let e=0,n=t.length;e<n;e++)t[e]&&"object"==typeof t[e]?a(t[e]):console.warn("Ignoring input item, which is not an object at index "+e);else{if(!t||"object"!=typeof t)throw new Error("Unknown dataType");a(t)}if(n.length&&this._trigger("add",{items:n},e),r.length){const t={items:r,oldData:i,data:o};this._trigger("update",t,e)}return eb(n).call(n,r)}updateOnly(t,e){var n;my(t)||(t=[t]);const r=hp(n=hp(t).call(t,t=>{const e=this._data.get(t[this._idProp]);if(null==e)throw new Error("Updating non-existent items is not allowed.");return{oldData:e,update:t}})).call(n,t=>{let e=t.oldData,n=t.update;const r=e[this._idProp],i=_C(e,n);return this._data.set(r,i),{id:r,oldData:e,updatedData:i}});if(r.length){const t={items:hp(r).call(r,t=>t.id),oldData:hp(r).call(r,t=>t.oldData),data:hp(r).call(r,t=>t.updatedData)};return this._trigger("update",t,e),t.items}return[]}get(t,e){let n,r,i;CS(t)?(n=t,i=e):my(t)?(r=t,i=e):i=t;const o=i&&"Object"===i.returnType?"Object":"Array",s=i&&Zd(i),a=[];let u,c,l;if(null!=n)u=this._data.get(n),u&&s&&!s(u)&&(u=void 0);else if(null!=r)for(let t=0,e=r.length;t<e;t++)u=this._data.get(r[t]),null==u||s&&!s(u)||a.push(u);else{var h;c=[...fb(h=this._data).call(h)];for(let t=0,e=c.length;t<e;t++)l=c[t],u=this._data.get(l),null==u||s&&!s(u)||a.push(u)}if(i&&i.order&&null==n&&this._sort(a,i.order),i&&i.fields){const t=i.fields;if(null!=n&&null!=u)u=this._filterFields(u,t);else for(let e=0,n=a.length;e<n;e++)a[e]=this._filterFields(a[e],t)}if("Object"==o){const t={};for(let e=0,n=a.length;e<n;e++){const n=a[e];t[n[this._idProp]]=n}return t}return null!=n?null!=u?u:null:a}getIds(t){const e=this._data,n=t&&Zd(t),r=t&&t.order,i=[...fb(e).call(e)],o=[];if(n)if(r){const t=[];for(let e=0,r=i.length;e<r;e++){const r=i[e],o=this._data.get(r);null!=o&&n(o)&&t.push(o)}this._sort(t,r);for(let e=0,n=t.length;e<n;e++)o.push(t[e][this._idProp])}else for(let t=0,e=i.length;t<e;t++){const e=i[t],r=this._data.get(e);null!=r&&n(r)&&o.push(r[this._idProp])}else if(r){const t=[];for(let n=0,r=i.length;n<r;n++){const r=i[n];t.push(e.get(r))}this._sort(t,r);for(let e=0,n=t.length;e<n;e++)o.push(t[e][this._idProp])}else for(let t=0,n=i.length;t<n;t++){const n=i[t],r=e.get(n);null!=r&&o.push(r[this._idProp])}return o}getDataSet(){return this}forEach(t,e){const n=e&&Zd(e),r=this._data,i=[...fb(r).call(r)];if(e&&e.order){const n=this.get(e);for(let e=0,r=n.length;e<r;e++){const r=n[e];t(r,r[this._idProp])}}else for(let e=0,r=i.length;e<r;e++){const r=i[e],o=this._data.get(r);null==o||n&&!n(o)||t(o,r)}}map(t,e){const n=e&&Zd(e),r=[],i=this._data,o=[...fb(i).call(i)];for(let e=0,i=o.length;e<i;e++){const i=o[e],s=this._data.get(i);null==s||n&&!n(s)||r.push(t(s,i))}return e&&e.order&&this._sort(r,e.order),r}_filterFields(t,e){var n;return t?Md(n=my(e)?e:Rb(e)).call(n,(e,n)=>(e[n]=t[n],e),{}):t}_sort(t,e){if("string"==typeof e){const n=e;Kb(t).call(t,(t,e)=>{const r=t[n],i=e[n];return r>i?1:r<i?-1:0})}else{if("function"!=typeof e)throw new TypeError("Order must be a function or a string");Kb(t).call(t,e)}}remove(t,e){const n=[],r=[],i=my(t)?t:[t];for(let t=0,e=i.length;t<e;t++){const e=this._remove(i[t]);if(e){const t=e[this._idProp];null!=t&&(n.push(t),r.push(e))}}return n.length&&this._trigger("remove",{items:n,oldData:r},e),n}_remove(t){let e;if(CS(t)?e=t:t&&"object"==typeof t&&(e=t[this._idProp]),null!=e&&this._data.has(e)){const t=this._data.get(e)||null;return this._data.delete(e),--this.length,t}return null}clear(t){var e;const n=[...fb(e=this._data).call(e)],r=[];for(let t=0,e=n.length;t<e;t++)r.push(this._data.get(n[t]));return this._data.clear(),this.length=0,this._trigger("remove",{items:n,oldData:r},t),n}max(t){let e=null,n=null;for(const i of pw(r=this._data).call(r)){var r;const o=i[t];"number"==typeof o&&(null==n||o>n)&&(e=i,n=o)}return e||null}min(t){let e=null,n=null;for(const i of pw(r=this._data).call(r)){var r;const o=i[t];"number"==typeof o&&(null==n||o<n)&&(e=i,n=o)}return e||null}distinct(t){const e=this._data,n=[...fb(e).call(e)],r=[];let i=0;for(let o=0,s=n.length;o<s;o++){const s=n[o],a=e.get(s)[t];let u=!1;for(let t=0;t<i;t++)if(r[t]==a){u=!0;break}u||void 0===a||(r[i]=a,i++)}return r}_addItem(t){const e=function(t,e){return null==t[e]&&(t[e]=wS()),t}(t,this._idProp),n=e[this._idProp];if(this._data.has(n))throw new Error("Cannot add item: item with id "+n+" already exists");return this._data.set(n,e),++this.length,n}_updateItem(t){const e=t[this._idProp];if(null==e)throw new Error("Cannot update item: item has no id (item: "+Aw(t)+")");const n=this._data.get(e);if(!n)throw new Error("Cannot update item: no item with id "+e+" found");return this._data.set(e,_S(_S({},n),t)),e}stream(t){if(t){const e=this._data;return new ES({*[kp](){for(const n of t){const t=e.get(n);null!=t&&(yield[n,t])}}})}var e;return new ES({[kp]:gd(e=Bw(this._data)).call(e,this._data)})}}class OS extends SS{get idProp(){return this.getDataSet().idProp}constructor(t,e){var n;super(),jf(this,"length",0),jf(this,"_listener",void 0),jf(this,"_data",void 0),jf(this,"_ids",new vg),jf(this,"_options",void 0),this._options=e||{},this._listener=gd(n=this._onEvent).call(n,this),this.setData(t)}setData(t){if(this._data){this._data.off&&this._data.off("*",this._listener);const t=this._data.getIds({filter:Zd(this._options)}),e=this._data.get(t);this._ids.clear(),this.length=0,this._trigger("remove",{items:t,oldData:e})}if(null!=t){this._data=t;const e=this._data.getIds({filter:Zd(this._options)});for(let t=0,n=e.length;t<n;t++){const n=e[t];this._ids.add(n)}this.length=e.length,this._trigger("add",{items:e})}else this._data=new kS;this._data.on&&this._data.on("*",this._listener)}refresh(){const t=this._data.getIds({filter:Zd(this._options)}),e=[...this._ids],n={},r=[],i=[],o=[];for(let e=0,i=t.length;e<i;e++){const i=t[e];n[i]=!0,this._ids.has(i)||(r.push(i),this._ids.add(i))}for(let t=0,r=e.length;t<r;t++){const r=e[t],s=this._data.get(r);null==s?console.error("If you see this, report it please."):n[r]||(i.push(r),o.push(s),this._ids.delete(r))}this.length+=r.length-i.length,r.length&&this._trigger("add",{items:r}),i.length&&this._trigger("remove",{items:i,oldData:o})}get(t,e){if(null==this._data)return null;let n,r=null;CS(t)||my(t)?(r=t,n=e):n=t;const i=Gy({},this._options,n),o=Zd(this._options),s=n&&Zd(n);return o&&s&&(i.filter=t=>o(t)&&s(t)),null==r?this._data.get(i):this._data.get(r,i)}getIds(t){if(this._data.length){const e=Zd(this._options),n=null!=t?Zd(t):null;let r;return r=n?e?t=>e(t)&&n(t):n:e,this._data.getIds({filter:r,order:t&&t.order})}return[]}forEach(t,e){if(this._data){var n;const r=Zd(this._options),i=e&&Zd(e);let o;o=i?r?function(t){return r(t)&&i(t)}:i:r,bp(n=this._data).call(n,t,{filter:o,order:e&&e.order})}}map(t,e){if(this._data){var n;const r=Zd(this._options),i=e&&Zd(e);let o;return o=i?r?t=>r(t)&&i(t):i:r,hp(n=this._data).call(n,t,{filter:o,order:e&&e.order})}return[]}getDataSet(){return this._data.getDataSet()}stream(t){var e;return this._data.stream(t||{[kp]:gd(e=fb(this._ids)).call(e,this._ids)})}dispose(){var t;null!==(t=this._data)&&void 0!==t&&t.off&&this._data.off("*",this._listener);const e="This data view has already been disposed of.",n={get:()=>{throw new Error(e)},set:()=>{throw new Error(e)},configurable:!1};for(const t of Uw(OS.prototype))qw(this,t,n)}_onEvent(t,e,n){if(!e||!e.items||!this._data)return;const r=e.items,i=[],o=[],s=[],a=[],u=[],c=[];switch(t){case"add":for(let t=0,e=r.length;t<e;t++){const e=r[t];this.get(e)&&(this._ids.add(e),i.push(e))}break;case"update":for(let t=0,n=r.length;t<n;t++){const n=r[t];this.get(n)?this._ids.has(n)?(o.push(n),u.push(e.data[t]),a.push(e.oldData[t])):(this._ids.add(n),i.push(n)):this._ids.has(n)&&(this._ids.delete(n),s.push(n),c.push(e.oldData[t]))}break;case"remove":for(let t=0,n=r.length;t<n;t++){const n=r[t];this._ids.has(n)&&(this._ids.delete(n),s.push(n),c.push(e.oldData[t]))}}this.length+=i.length-s.length,i.length&&this._trigger("add",{items:i},n),o.length&&this._trigger("update",{items:o,oldData:a,data:u},n),s.length&&this._trigger("remove",{items:s,oldData:c},n)}}var AS,DS={};var PS,LS,RS,FS,MS,IS,jS,zS,NS,BS=(AS||(AS=1,function(t){t.prepareElements=function(t){for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(t[e].redundant=t[e].used,t[e].used=[])},t.cleanupElements=function(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(e)&&t[e].redundant){for(let n=0;n<t[e].redundant.length;n++)t[e].redundant[n].parentNode.removeChild(t[e].redundant[n]);t[e].redundant=[]}},t.resetElements=function(e){t.prepareElements(e),t.cleanupElements(e),t.prepareElements(e)},t.getSVGElement=function(t,e,n){let r;return Object.prototype.hasOwnProperty.call(t)?e[t].redundant.length>0?(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},t.getDOMElement=function(t,e,n,r){let i;return Object.prototype.hasOwnProperty.call(t)?e[t].redundant.length>0?(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},t.drawPoint=function(e,n,r,i,o,s){let a;if("circle"==r.style?(a=t.getSVGElement("circle",i,o),a.setAttributeNS(null,"cx",e),a.setAttributeNS(null,"cy",n),a.setAttributeNS(null,"r",.5*r.size)):(a=t.getSVGElement("rect",i,o),a.setAttributeNS(null,"x",e-.5*r.size),a.setAttributeNS(null,"y",n-.5*r.size),a.setAttributeNS(null,"width",r.size),a.setAttributeNS(null,"height",r.size)),void 0!==r.styles&&a.setAttributeNS(null,"style",r.styles),a.setAttributeNS(null,"class",r.className+" vis-point"),s){const r=t.getSVGElement("text",i,o);s.xOffset&&(e+=s.xOffset),s.yOffset&&(n+=s.yOffset),s.content&&(r.textContent=s.content),s.className&&r.setAttributeNS(null,"class",s.className+" vis-label"),r.setAttributeNS(null,"x",e),r.setAttributeNS(null,"y",n)}return a},t.drawBar=function(e,n,r,i,o,s,a,u){if(0!=i){i<0&&(n-=i*=-1);const c=t.getSVGElement("rect",s,a);c.setAttributeNS(null,"x",e-.5*r),c.setAttributeNS(null,"y",n),c.setAttributeNS(null,"width",r),c.setAttributeNS(null,"height",i),c.setAttributeNS(null,"class",o),u&&c.setAttributeNS(null,"style",u)}}}(DS)),DS),WS=Wt(BS);function YS(){return LS?PS:(LS=1,PS=Math.sign||function(t){var e=+t;return 0===e||e!=e?e:e<0?-1:1})}function GS(){return MS?FS:(MS=1,RS||(RS=1,Mr()({target:"Math",stat:!0},{sign:YS()})),FS=dn().Math.sign)}function VS(){return jS?IS:(jS=1,IS=GS())}var US=Wt(NS?zS:(NS=1,zS=VS()));function XS(t,e,n){this.x=void 0!==t?t:0,this.y=void 0!==e?e:0,this.z=void 0!==n?n:0}function HS(){this.armLocation=new XS,this.armRotation={},this.armRotation.horizontal=0,this.armRotation.vertical=0,this.armLength=1.7,this.cameraOffset=new XS,this.offsetMultiplier=.6,this.cameraLocation=new XS,this.cameraRotation=new XS(.5*Math.PI,0,0),this.calculateCameraOrientation()}function qS(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),pw(this).length>0&&this.selectValue(0),this.dataPoints=[],this.loaded=!1,this.onLoadCallback=void 0,n.animationPreload?(this.loaded=!1,this.loadInBackground()):this.loaded=!0}XS.subtract=function(t,e){const n=new XS;return n.x=t.x-e.x,n.y=t.y-e.y,n.z=t.z-e.z,n},XS.add=function(t,e){const n=new XS;return n.x=t.x+e.x,n.y=t.y+e.y,n.z=t.z+e.z,n},XS.avg=function(t,e){return new XS((t.x+e.x)/2,(t.y+e.y)/2,(t.z+e.z)/2)},XS.scalarProduct=function(t,e){return new XS(t.x*e,t.y*e,t.z*e)},XS.dotProduct=function(t,e){return t.x*e.x+t.y*e.y+t.z*e.z},XS.crossProduct=function(t,e){const n=new XS;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},XS.prototype.length=function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)},XS.prototype.normalize=function(){return XS.scalarProduct(this,1/this.length())},HS.prototype.setOffset=function(t,e){const n=Math.abs,r=US,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()},HS.prototype.getOffset=function(){return this.cameraOffset},HS.prototype.setArmLocation=function(t,e,n){this.armLocation.x=t,this.armLocation.y=e,this.armLocation.z=n,this.calculateCameraOrientation()},HS.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()},HS.prototype.getArmRotation=function(){const t={};return t.horizontal=this.armRotation.horizontal,t.vertical=this.armRotation.vertical,t},HS.prototype.setArmLength=function(t){void 0!==t&&(this.armLength=t,this.armLength<.71&&(this.armLength=.71),this.armLength>5&&(this.armLength=5),this.setOffset(this.cameraOffset.x,this.cameraOffset.y),this.calculateCameraOrientation())},HS.prototype.getArmLength=function(){return this.armLength},HS.prototype.getCameraLocation=function(){return this.cameraLocation},HS.prototype.getCameraRotation=function(){return this.cameraRotation},HS.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;const 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)},qS.prototype.isLoaded=function(){return this.loaded},qS.prototype.getLoadedProgress=function(){const t=pw(this).length;let e=0;for(;this.dataPoints[e];)e++;return Math.round(e/t*100)},qS.prototype.getLabel=function(){return this.graph.filterLabel},qS.prototype.getColumn=function(){return this.column},qS.prototype.getSelectedValue=function(){if(void 0!==this.index)return pw(this)[this.index]},qS.prototype.getValues=function(){return pw(this)},qS.prototype.getValue=function(t){if(t>=pw(this).length)throw new Error("Index out of range");return pw(this)[t]},qS.prototype._getDataPoints=function(t){if(void 0===t&&(t=this.index),void 0===t)return[];let e;if(this.dataPoints[t])e=this.dataPoints[t];else{const n={};n.column=this.column,n.value=pw(this)[t];const r=new OS(this.dataGroup.getDataSet(),{filter:function(t){return t[n.column]==n.value}}).get();e=this.dataGroup._getDataPoints(r),this.dataPoints[t]=e}return e},qS.prototype.setOnLoadCallback=function(t){this.onLoadCallback=t},qS.prototype.selectValue=function(t){if(t>=pw(this).length)throw new Error("Index out of range");this.index=t,this.value=pw(this)[t]},qS.prototype.loadInBackground=function(t){void 0===t&&(t=0);const e=this.graph.frame;if(t<pw(this).length){void 0===e.progress&&(e.progress=document.createElement("DIV"),e.progress.style.position="absolute",e.progress.style.color="gray",e.appendChild(e.progress));const n=this.getLoadedProgress();e.progress.innerHTML="Loading animation... "+n+"%",e.progress.style.bottom="60px",e.progress.style.left="10px";const r=this;Qg(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 ZS,JS,KS,QS,$S,tE,eE,nE,rE,iE={};function oE(){if(JS)return ZS;JS=1;var t=se(),e=ae(),n=le(),r=zr(),i=S_().trim,o=C_(),s=n("".charAt),a=t.parseFloat,u=t.Symbol,c=u&&u.iterator,l=1/a(o+"-0")!=-1/0||c&&!e(function(){a(Object(c))});return ZS=l?function(t){var e=i(r(t)),n=a(e);return 0===n&&"-"===s(e,0)?-0:n}:a,ZS}function sE(){return $S?QS:($S=1,function(){if(KS)return iE;KS=1;var t=Mr(),e=oE();t({global:!0,forced:parseFloat!==e},{parseFloat:e})}(),QS=dn().parseFloat)}function aE(){return eE?tE:(eE=1,tE=sE())}var uE,cE,lE,hE,fE,dE,pE,vE=Wt(rE?nE:(rE=1,nE=aE()));function mE(){return lE?cE:(lE=1,uE||(uE=1,Mr()({target:"Number",stat:!0},{isNaN:function(t){return t!=t}})),cE=dn().Number.isNaN)}function gE(){return fE?hE:(fE=1,hE=mE())}var yE=Wt(pE?dE:(pE=1,dE=gE()));function bE(){this.min=void 0,this.max=void 0}bE.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))},bE.prototype.combine=function(t){this.add(t.min),this.add(t.max)},bE.prototype.expand=function(t){if(void 0===t)return;const e=this.min-t,n=this.max+t;if(e>n)throw new Error("Passed expansion value makes range invalid");this.min=e,this.max=n},bE.prototype.range=function(){return this.max-this.min},bE.prototype.center=function(){return(this.min+this.max)/2};var wE,xE,_E,CE,SE,EE,TE,kE,OE,AE={};function DE(){return _E?xE:(_E=1,function(){if(wE)return AE;wE=1;var t=Mr(),e=le(),n=Oo(),r=e([].reverse),i=[1,2];t({target:"Array",proto:!0,forced:String(i)===String(i.reverse())},{reverse:function(){return n(this)&&(this.length=this.length),r(this)}})}(),xE=xl()("Array","reverse"))}function PE(){if(SE)return CE;SE=1;var t=vn(),e=DE(),n=Array.prototype;return CE=function(r){var i=r.reverse;return r===n||t(n,r)&&i===n.reverse?e:i}}function LE(){return TE?EE:(TE=1,EE=PE())}var RE=Wt(OE?kE:(OE=1,kE=LE()));const FE={BAR:0,BARCOLOR:1,BARSIZE:2,DOT:3,DOTLINE:4,DOTCOLOR:5,DOTSIZE:6,GRID:7,LINE:8,SURFACE:9},ME={dot:FE.DOT,"dot-line":FE.DOTLINE,"dot-color":FE.DOTCOLOR,"dot-size":FE.DOTSIZE,line:FE.LINE,grid:FE.GRID,surface:FE.SURFACE,bar:FE.BAR,"bar-color":FE.BARCOLOR,"bar-size":FE.BARSIZE},IE=["width","height","filterLabel","legendLabel","xLabel","yLabel","zLabel","xValueLabel","yValueLabel","zValueLabel","showXAxis","showYAxis","showZAxis","showGrayBottom","showGrid","showPerspective","showShadow","showSurfaceGrid","keepAspectRatio","rotateAxisLabels","verticalRatio","dotSizeRatio","dotSizeMinFraction","dotSizeMaxFraction","showAnimationControls","animationInterval","animationPreload","animationAutoStart","axisColor","axisFontSize","axisFontType","gridColor","xCenter","yCenter","zoomable","tooltipDelay","ctrlToZoom"],jE=["xBarWidth","yBarWidth","valueMin","valueMax","xMin","xMax","xStep","yMin","yMax","yStep","zMin","zMax","zStep"];let zE;function NE(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}function BE(t,e){return void 0===t||""===t?e:t+(void 0===(n=e)||""===n||"string"!=typeof n?n:n.charAt(0).toUpperCase()+ox(n).call(n,1));var n}function WE(t,e,n,r){let i,o;for(let s=0;s<n.length;++s)i=n[s],o=BE(r,i),e[o]=t[i]}function YE(t,e,n,r){let i,o;for(let s=0;s<n.length;++s)i=n[s],void 0!==t[i]&&(o=BE(r,i),e[o]=t[i])}function GE(t,e){if(void 0!==t.backgroundColor&&function(t,e){let n="white",r="gray",i=1;if("string"==typeof t)n=t,r="none",i=0;else{if("object"!=typeof t)throw new Error("Unsupported type of backgroundColor");void 0!==gC(t)&&(n=gC(t)),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):(gC(t)&&(e.dataColor.fill=gC(t)),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;let n;if("string"==typeof t){if(n=function(t){const e=ME[t];if(void 0===e)return-1;return e}(t),-1===n)throw new Error("Style '"+t+"' is invalid")}else{if(!function(t){let e=!1;for(const n in FE)if(FE[n]===t){e=!0;break}return e}(t))throw new Error("Style '"+t+"' is invalid");n=t}e.style=n}(t.style,e),void 0!==t.surfaceColors){if(console.warn("`options.surfaceColors` is deprecated and may be removed in a future version. Please use `options.colormap` instead. Note that the `colormap` option uses the inverse array ordering (running from vMin to vMax)."),void 0!==t.colormap)throw new Error("The `colormap` and `surfaceColors` options are mutually exclusive.");"surface"!==e.style?console.warn("Ignoring `surfaceColors` in graph style `"+e.style+"` for backward compatibility (only effective in `surface` plots)."):function(t,e){if(void 0===t||!0===t)return;if(!1===t)return void(e.surfaceColors=void 0);void 0===e.surfaceColors&&(e.surfaceColors={});let n;if(my(t))n=VE(t);else{if("object"!=typeof t)throw new Error("Unsupported type of surfaceColors");n=UE(t.hue)}RE(n).call(n),e.colormap=n}(t.surfaceColors,e)}else!function(t,e){if(void 0===t)return;let n;if(my(t))n=VE(t);else if("object"==typeof t)n=UE(t.hue);else{if("function"!=typeof t)throw new Error("Unsupported type of colormap");n=t}e.colormap=n}(t.colormap,e);!function(t,e){if(void 0===t){if(void 0===zE.showLegend){const t=e.style===FE.DOTCOLOR||e.style===FE.DOTSIZE;e.showLegend=t}}else e.showLegend=t}(t.showLegend,e),XE(t.cameraPosition,e),void 0!==t.tooltip&&(e.showTooltip=t.tooltip),null!=t.onclick&&(e.onclick_callback=t.onclick,console.warn("`options.onclick` is deprecated and may be removed in a future version. Please use `Graph3d.on('click', handler)` instead.")),void 0!==t.tooltipStyle&&NC(["tooltipStyle"],e,t)}function VE(t){if(t.length<2)throw new Error("Colormap array length must be 2 or above.");return hp(t).call(t,function(t){if(!$C(t))throw new Error("Invalid hex color code supplied to colormap.");return XC(t)})}function UE(t){if(void 0===t)throw new Error("Unsupported type of colormap");if(!(t.saturation>=0&&t.saturation<=100))throw new Error("Saturation is out of bounds. Expected range is 0-100.");if(!(t.brightness>=0&&t.brightness<=100))throw new Error("Brightness is out of bounds. Expected range is 0-100.");if(!(t.colorStops>=2))throw new Error("colorStops is out of bounds. Expected 2 or above.");const e=(t.end-t.start)/(t.colorStops-1),n=[];for(let r=0;r<t.colorStops;++r){const i=(t.start+e*r)%360/360;n.push(JC(i<0?i+1:i,t.saturation/100,t.brightness/100))}return n}function XE(t,e){const n=t;void 0!==n&&(void 0===e.camera&&(e.camera=new HS),e.camera.setArmRotation(n.horizontal,n.vertical),e.camera.setArmLength(n.distance))}function HE(){this.dataTable=null}HE.prototype.initializeData=function(t,e,n){if(void 0===e)return;let r;if(my(e)&&(e=new kS(e)),!(e instanceof kS||e instanceof OS))throw new Error("Array, DataSet, or DataView expected");if(r=e.get(),0==r.length)return;this.style=n,this.dataSet&&this.dataSet.off("*",this._onChange),this.dataSet=e,this.dataTable=r;const i=this;this._onChange=function(){t.setData(i.dataSet)},this.dataSet.on("*",this._onChange),this.colX="x",this.colY="y",this.colZ="z";const 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),Object.prototype.hasOwnProperty.call(r[0],"style")){this.colValue="style";const e=this.getColumnRange(r,this.colValue);this._setRangeDefaults(e,t.defaultValueMin,t.defaultValueMax),this.valueRange=e}else this.colValue="z",this.valueRange=this.zRange;const s=this.getDataTable();let a;return Object.prototype.hasOwnProperty.call(s[0],"filter")&&void 0===this.dataFilter&&(this.dataFilter=new qS(this,"filter",t),this.dataFilter.setOnLoadCallback(function(){t.redraw()})),a=this.dataFilter?this.dataFilter._getDataPoints():this._getDataPoints(this.getDataTable()),a},HE.prototype._collectRangeSettings=function(t,e){var n;if(-1==Z_(n=["x","y","z"]).call(n,t))throw new Error("Column '"+t+"' invalid");const r=t.toUpperCase();return{barWidth:this[t+"BarWidth"],min:e["default"+r+"Min"],max:e["default"+r+"Max"],step:e["default"+r+"Step"],range_label:t+"Range",step_label:t+"Step"}},HE.prototype._initializeRange=function(t,e,n,r){const 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},HE.prototype.getDistinctValues=function(t,e){void 0===e&&(e=this.dataTable);const n=[];for(let r=0;r<e.length;r++){const i=e[r][t]||0;-1===Z_(n).call(n,i)&&n.push(i)}return n.toSorted(function(t,e){return t-e})},HE.prototype.getSmallestDifference=function(t,e){const n=this.getDistinctValues(t,e);let r=null;for(let t=1;t<n.length;t++){const e=n[t]-n[t-1];(null==r||r>e)&&(r=e)}return r},HE.prototype.getColumnRange=function(t,e){const n=new bE;for(let r=0;r<t.length;r++){const i=t[r][e];n.adjust(i)}return n},HE.prototype.getNumberOfRows=function(){return this.dataTable.length},HE.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)},HE.prototype.getDataTable=function(){return this.dataTable},HE.prototype.getDataSet=function(){return this.dataSet},HE.prototype.getDataPoints=function(t){const e=[];for(let n=0;n<t.length;n++){const r=new XS;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],r.value=t[n][this.colValue]||0;const i={};i.point=r,i.bottom=new XS(r.x,r.y,this.zRange.min),i.trans=void 0,i.screen=void 0,e.push(i)}return e},HE.prototype.initDataAsMatrix=function(t){let e,n,r,i;const o=this.getDistinctValues(this.colX,t),s=this.getDistinctValues(this.colY,t),a=this.getDataPoints(t),u=[];for(r=0;r<a.length;r++){i=a[r];const t=Z_(o).call(o,i.point.x),e=Z_(s).call(s,i.point.y);void 0===u[t]&&(u[t]=[]),u[t][e]=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 a},HE.prototype.getInfo=function(){const t=this.dataFilter;if(t)return t.getLabel()+": "+t.getSelectedValue()},HE.prototype.reload=function(){this.dataTable&&this.setData(this.dataTable)},HE.prototype._getDataPoints=function(t){let e=[];if(this.style===FE.GRID||this.style===FE.SURFACE)e=this.initDataAsMatrix(t);else if(e=this.getDataPoints(t),this.style===FE.LINE)for(let t=0;t<e.length;t++)t>0&&(e[t-1].pointNext=e[t]);return e};const qE="string",ZE="boolean",JE="number",KE="object",QE="array",$E={fill:{string:qE},stroke:{string:qE},strokeWidth:{number:JE},__type__:{string:qE,object:KE,undefined:"undefined"}},tT={animationAutoStart:{boolean:ZE,undefined:"undefined"},animationInterval:{number:JE},animationPreload:{boolean:ZE},axisColor:{string:qE},axisFontSize:{number:JE},axisFontType:{string:qE},backgroundColor:$E,xBarWidth:{number:JE,undefined:"undefined"},yBarWidth:{number:JE,undefined:"undefined"},cameraPosition:{distance:{number:JE},horizontal:{number:JE},vertical:{number:JE},__type__:{object:KE}},zoomable:{boolean:ZE},ctrlToZoom:{boolean:ZE},xCenter:{string:qE},yCenter:{string:qE},colormap:{hue:{start:{number:JE},end:{number:JE},saturation:{number:JE},brightness:{number:JE},colorStops:{number:JE},__type__:{object:KE}},__type__:{array:QE,object:KE,function:"function",undefined:"undefined"}},dataColor:$E,dotSizeMinFraction:{number:JE},dotSizeMaxFraction:{number:JE},dotSizeRatio:{number:JE},filterLabel:{string:qE},gridColor:{string:qE},onclick:{function:"function"},keepAspectRatio:{boolean:ZE},xLabel:{string:qE},yLabel:{string:qE},zLabel:{string:qE},legendLabel:{string:qE},xMin:{number:JE,undefined:"undefined"},yMin:{number:JE,undefined:"undefined"},zMin:{number:JE,undefined:"undefined"},xMax:{number:JE,undefined:"undefined"},yMax:{number:JE,undefined:"undefined"},zMax:{number:JE,undefined:"undefined"},showAnimationControls:{boolean:ZE,undefined:"undefined"},showGrayBottom:{boolean:ZE},showGrid:{boolean:ZE},showLegend:{boolean:ZE,undefined:"undefined"},showPerspective:{boolean:ZE},showShadow:{boolean:ZE},showSurfaceGrid:{boolean:ZE},showXAxis:{boolean:ZE},showYAxis:{boolean:ZE},showZAxis:{boolean:ZE},rotateAxisLabels:{boolean:ZE},surfaceColors:{hue:{start:{number:JE},end:{number:JE},saturation:{number:JE},brightness:{number:JE},colorStops:{number:JE},__type__:{object:KE}},__type__:{boolean:ZE,array:QE,object:KE,undefined:"undefined"}},xStep:{number:JE,undefined:"undefined"},yStep:{number:JE,undefined:"undefined"},zStep:{number:JE,undefined:"undefined"},style:{number:JE,string:["bar","bar-color","bar-size","dot","dot-line","dot-color","dot-size","line","grid","surface"]},tooltip:{boolean:ZE,function:"function"},tooltipDelay:{number:JE},tooltipStyle:{content:{color:{string:qE},background:{string:qE},border:{string:qE},borderRadius:{string:qE},boxShadow:{string:qE},padding:{string:qE},__type__:{object:KE}},line:{borderLeft:{string:qE},height:{string:qE},width:{string:qE},pointerEvents:{string:qE},__type__:{object:KE}},dot:{border:{string:qE},borderRadius:{string:qE},height:{string:qE},width:{string:qE},pointerEvents:{string:qE},__type__:{object:KE}},__type__:{object:KE}},xValueLabel:{function:"function"},yValueLabel:{function:"function"},zValueLabel:{function:"function"},valueMax:{number:JE,undefined:"undefined"},valueMin:{number:JE,undefined:"undefined"},verticalRatio:{number:JE},height:{string:qE},width:{string:qE},__type__:{object:KE}};function eT(t,e){this.x=void 0!==t?t:0,this.y=void 0!==e?e:0}function nT(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);const t=this;this.frame.slide.onmousedown=function(e){t._onMouseDown(e)},this.frame.prev.onclick=function(e){t.prev(e)},this.frame.play.onclick=function(e){t.togglePlay(e)},this.frame.next.onclick=function(e){t.next(e)}}this.onChangeCallback=void 0,this.values=[],this.index=void 0,this.playTimeout=void 0,this.playInterval=1e3,this.playLoop=!0}function rT(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)}nT.prototype.prev=function(){let t=this.getIndex();t>0&&(t--,this.setIndex(t))},nT.prototype.next=function(){let t=this.getIndex();t<pw(this).length-1&&(t++,this.setIndex(t))},nT.prototype.playNext=function(){const t=new Date;let e=this.getIndex();e<pw(this).length-1?(e++,this.setIndex(e)):this.playLoop&&(e=0,this.setIndex(e));const n=new Date-t,r=Math.max(this.playInterval-n,0),i=this;this.playTimeout=Qg(function(){i.playNext()},r)},nT.prototype.togglePlay=function(){void 0===this.playTimeout?this.play():this.stop()},nT.prototype.play=function(){this.playTimeout||(this.playNext(),this.frame&&(this.frame.play.value="Stop"))},nT.prototype.stop=function(){clearInterval(this.playTimeout),this.playTimeout=void 0,this.frame&&(this.frame.play.value="Play")},nT.prototype.setOnChangeCallback=function(t){this.onChangeCallback=t},nT.prototype.setPlayInterval=function(t){this.playInterval=t},nT.prototype.getPlayInterval=function(){return this.playInterval},nT.prototype.setPlayLoop=function(t){this.playLoop=t},nT.prototype.onChange=function(){void 0!==this.onChangeCallback&&this.onChangeCallback()},nT.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";const t=this.indexToLeft(this.index);this.frame.slide.style.left=t+"px"}},nT.prototype.setValues=function(t){this.values=t,pw(this).length>0?this.setIndex(0):this.index=void 0},nT.prototype.setIndex=function(t){if(!(t<pw(this).length))throw new Error("Index out of range");this.index=t,this.redraw(),this.onChange()},nT.prototype.getIndex=function(){return this.index},nT.prototype.get=function(){return pw(this)[this.index]},nT.prototype._onMouseDown=function(t){if(!(t.which?1===t.which:1===t.button))return;this.startClientX=t.clientX,this.startSlideX=vE(this.frame.slide.style.left),this.frame.style.cursor="move";const e=this;this.onmousemove=function(t){e._onMouseMove(t)},this.onmouseup=function(t){e._onMouseUp(t)},document.addEventListener("mousemove",this.onmousemove),document.addEventListener("mouseup",this.onmouseup),VC(t)},nT.prototype.leftToIndex=function(t){const e=vE(this.frame.bar.style.width)-this.frame.slide.clientWidth-10,n=t-3;let r=Math.round(n/e*(pw(this).length-1));return r<0&&(r=0),r>pw(this).length-1&&(r=pw(this).length-1),r},nT.prototype.indexToLeft=function(t){const e=vE(this.frame.bar.style.width)-this.frame.slide.clientWidth-10;return t/(pw(this).length-1)*e+3},nT.prototype._onMouseMove=function(t){const e=t.clientX-this.startClientX,n=this.startSlideX+e,r=this.leftToIndex(n);this.setIndex(r),VC()},nT.prototype._onMouseUp=function(){this.frame.style.cursor="auto",document.removeEventListener("mousemove",this.onmousemove),document.removeEventListener("mouseup",this.onmouseup),VC()},rT.prototype.isNumeric=function(t){return!isNaN(vE(t))&&isFinite(t)},rT.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)},rT.prototype.setStep=function(t,e){void 0===t||t<=0||(void 0!==e&&(this.prettyStep=e),!0===this.prettyStep?this._step=rT.calculatePrettyStep(t):this._step=t)},rT.calculatePrettyStep=function(t){const e=function(t){return Math.log(t)/Math.LN10},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)));let 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},rT.prototype.getCurrent=function(){return vE(this._current.toPrecision(this.precision))},rT.prototype.getStep=function(){return this._step},rT.prototype.start=function(t){void 0===t&&(t=!1),this._current=this._start-this._start%this._step,t&&this.getCurrent()<this._start&&this.next()},rT.prototype.next=function(){this._current+=this._step},rT.prototype.end=function(){return this._current>this._end},oT.STYLE=FE;const iT=void 0;function oT(t,e,n){if(!(this instanceof oT))throw new SyntaxError("Constructor must be called with the new operator");this.containerElement=t,this.dataGroup=new HE,this.dataPoints=null,this.create(),function(t,e){if(void 0===t||NE(t))throw new Error("No DEFAULTS passed");if(void 0===e)throw new Error("No dst passed");zE=t,WE(t,e,IE),WE(t,e,jE,"default"),GE(t,e),e.margin=10,e.showTooltip=!1,e.onclick_callback=null,e.eye=new XS(0,0,-1)}(oT.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 sT(t){return"clientX"in t?t.clientX:t.targetTouches[0]&&t.targetTouches[0].clientX||0}function aT(t){return"clientY"in t?t.clientY:t.targetTouches[0]&&t.targetTouches[0].clientY||0}oT.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,showGrayBottom:!1,showGrid:!0,showPerspective:!0,showShadow:!1,showSurfaceGrid:!0,keepAspectRatio:!0,rotateAxisLabels:!0,verticalRatio:.5,dotSizeRatio:.02,dotSizeMinFraction:.5,dotSizeMaxFraction:2.5,showAnimationControls:iT,animationInterval:1e3,animationPreload:!1,animationAutoStart:iT,axisFontSize:14,axisFontType:"arial",axisColor:"#4D4D4D",gridColor:"#D3D3D3",xCenter:"55%",yCenter:"50%",style:oT.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},surfaceColors:iT,colormap:iT,cameraPosition:{horizontal:1,vertical:.5,distance:1.7},zoomable:!0,ctrlToZoom:!1,showLegend:iT,backgroundColor:iT,xBarWidth:iT,yBarWidth:iT,valueMin:iT,valueMax:iT,xMin:iT,xMax:iT,xStep:iT,yMin:iT,yMax:iT,yStep:iT,zMin:iT,zMax:iT,zStep:iT},wC(oT.prototype),oT.prototype._setScale=function(){this.scale=new XS(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());const 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)},oT.prototype._convert3Dto2D=function(t){const e=this._convertPointToTranslation(t);return this._convertTranslationToScreen(e)},oT.prototype._convertPointToTranslation=function(t){const 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,s=e.x,a=e.y,u=e.z,c=Math.sin(n.x),l=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 XS(f*(d*(i-a)+p*(r-s))-h*(o-u),c*(f*(o-u)+h*(d*(i-a)+p*(r-s)))+l*(p*(i-a)-d*(r-s)),l*(f*(o-u)+h*(d*(i-a)+p*(r-s)))-c*(p*(i-a)-d*(r-s)))},oT.prototype._convertTranslationToScreen=function(t){const e=this.eye.x,n=this.eye.y,r=this.eye.z,i=t.x,o=t.y,s=t.z;let a,u;return this.showPerspective?(a=r/s*(i-e),u=r/s*(o-n)):(a=i*(-r/this.camera.getArmLength()),u=o*(-r/this.camera.getArmLength())),new eT(this.currentXCenter+a*this.frame.canvas.clientWidth,this.currentYCenter-u*this.frame.canvas.clientWidth)},oT.prototype._calcTranslations=function(t){for(let e=0;e<t.length;e++){const n=t[e];n.trans=this._convertPointToTranslation(n.point),n.screen=this._convertTranslationToScreen(n.trans);const r=this._convertPointToTranslation(n.bottom);n.dist=this.showPerspective?r.length():-r.z}Kb(t).call(t,function(t,e){return e.dist-t.dist})},oT.prototype._initializeRanges=function(){const 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()},oT.prototype.getDataPoints=function(t){const e=[];for(let n=0;n<t.length;n++){const r=new XS;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],r.value=t[n][this.colValue]||0;const i={};i.point=r,i.bottom=new XS(r.x,r.y,this.zRange.min),i.trans=void 0,i.screen=void 0,e.push(i)}return e},oT.prototype._getDataPoints=function(t){let e,n,r,i,o=[];if(this.style===oT.STYLE.GRID||this.style===oT.STYLE.SURFACE){const s=this.dataGroup.getDistinctValues(this.colX,t),a=this.dataGroup.getDistinctValues(this.colY,t);o=this.getDataPoints(t);const u=[];for(r=0;r<o.length;r++){i=o[r];const t=Z_(s).call(s,i.point.x),e=Z_(a).call(a,i.point.y);void 0===u[t]&&(u[t]=[]),u[t][e]=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(o=this.getDataPoints(t),this.style===oT.STYLE.LINE)for(r=0;r<o.length;r++)r>0&&(o[r-1].pointNext=o[r]);return o},oT.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);{const 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"),Zd(this.frame).style.position="absolute",Zd(this.frame).style.bottom="0px",Zd(this.frame).style.left="0px",Zd(this.frame).style.width="100%",this.frame.appendChild(Zd(this.frame));const t=this;this.frame.canvas.addEventListener("mousedown",function(e){t._onMouseDown(e)}),this.frame.canvas.addEventListener("touchstart",function(e){t._onTouchStart(e)}),this.frame.canvas.addEventListener("mousewheel",function(e){t._onWheel(e)}),this.frame.canvas.addEventListener("mousemove",function(e){t._onTooltip(e)}),this.frame.canvas.addEventListener("click",function(e){t._onClick(e)}),this.containerElement.appendChild(this.frame)},oT.prototype._setSize=function(t,e){this.frame.style.width=t,this.frame.style.height=e,this._resizeCanvas()},oT.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,Zd(this.frame).style.width=this.frame.canvas.clientWidth-20+"px"},oT.prototype.animationStart=function(){if(this.animationAutoStart&&this.dataGroup.dataFilter){if(!Zd(this.frame)||!Zd(this.frame).slider)throw new Error("No animation available");Zd(this.frame).slider.play()}},oT.prototype.animationStop=function(){Zd(this.frame)&&Zd(this.frame).slider&&Zd(this.frame).slider.stop()},oT.prototype._resizeCenter=function(){"%"===this.xCenter.charAt(this.xCenter.length-1)?this.currentXCenter=vE(this.xCenter)/100*this.frame.canvas.clientWidth:this.currentXCenter=vE(this.xCenter),"%"===this.yCenter.charAt(this.yCenter.length-1)?this.currentYCenter=vE(this.yCenter)/100*(this.frame.canvas.clientHeight-Zd(this.frame).clientHeight):this.currentYCenter=vE(this.yCenter)},oT.prototype.getCameraPosition=function(){const t=this.camera.getArmRotation();return t.distance=this.camera.getArmLength(),t},oT.prototype._readData=function(t){this.dataPoints=this.dataGroup.initializeData(this,t,this.style),this._initializeRanges(),this._redrawFilter()},oT.prototype.setData=function(t){null!=t&&(this._readData(t),this.redraw(),this.animationStart())},oT.prototype.setOptions=function(t){if(void 0===t)return;!0===mS.validate(t,tT)&&console.error("%cErrors have been found in the supplied options object.",vS),this.animationStop(),function(t,e){if(void 0!==t){if(void 0===e)throw new Error("No dst passed");if(void 0===zE||NE(zE))throw new Error("DEFAULTS not set for module Settings");YE(t,e,IE),YE(t,e,jE,"default"),GE(t,e)}}(t,this),this.setPointDrawingMethod(),this._setSize(this.width,this.height),this.setAxisLabelMethod(),this.setData(this.dataGroup.getDataTable()),this.animationStart()},oT.prototype.setPointDrawingMethod=function(){let t;switch(this.style){case oT.STYLE.BAR:t=this._redrawBarGraphPoint;break;case oT.STYLE.BARCOLOR:t=this._redrawBarColorGraphPoint;break;case oT.STYLE.BARSIZE:t=this._redrawBarSizeGraphPoint;break;case oT.STYLE.DOT:t=this._redrawDotGraphPoint;break;case oT.STYLE.DOTLINE:t=this._redrawDotLineGraphPoint;break;case oT.STYLE.DOTCOLOR:t=this._redrawDotColorGraphPoint;break;case oT.STYLE.DOTSIZE:t=this._redrawDotSizeGraphPoint;break;case oT.STYLE.SURFACE:t=this._redrawSurfaceGraphPoint;break;case oT.STYLE.GRID:t=this._redrawGridGraphPoint;break;case oT.STYLE.LINE:t=this._redrawLineGraphPoint;break;default:throw new Error("Can not determine point drawing method for graph style '"+this.style+"'")}this._pointDrawingMethod=t},oT.prototype.setAxisLabelMethod=function(){this.rotateAxisLabels?(this._drawAxisLabelX=this.drawAxisLabelXRotate,this._drawAxisLabelY=this.drawAxisLabelYRotate,this._drawAxisLabelZ=this.drawAxisLabelZRotate):(this._drawAxisLabelX=this.drawAxisLabelX,this._drawAxisLabelY=this.drawAxisLabelY,this._drawAxisLabelZ=this.drawAxisLabelZ)},oT.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()},oT.prototype._getContext=function(){const t=this.frame.canvas.getContext("2d");return t.lineJoin="round",t.lineCap="round",t},oT.prototype._redrawClear=function(){const t=this.frame.canvas;t.getContext("2d").clearRect(0,0,t.width,t.height)},oT.prototype._dotSize=function(){return this.frame.clientWidth*this.dotSizeRatio},oT.prototype._getLegendWidth=function(){let t;if(this.style===oT.STYLE.DOTSIZE){t=this._dotSize()*this.dotSizeMaxFraction}else t=this.style===oT.STYLE.BARSIZE?this.xBarWidth:20;return t},oT.prototype._redrawLegend=function(){if(!0!==this.showLegend)return;if(this.style===oT.STYLE.LINE||this.style===oT.STYLE.BARSIZE)return;const t=this.style===oT.STYLE.BARSIZE||this.style===oT.STYLE.DOTSIZE,e=this.style===oT.STYLE.DOTSIZE||this.style===oT.STYLE.DOTCOLOR||this.style===oT.STYLE.SURFACE||this.style===oT.STYLE.BARCOLOR,n=Math.max(.25*this.frame.clientHeight,100),r=this.margin,i=this._getLegendWidth(),o=this.frame.clientWidth-this.margin,s=o-i,a=r+n,u=this._getContext();if(u.lineWidth=1,u.font="14px arial",!1===t){const t=0,e=n;let a;for(a=t;a<e;a++){const n=1-(a-t)/(e-t),i=this._colormap(n,1);u.strokeStyle=i,u.beginPath(),u.moveTo(s,r+a),u.lineTo(o,r+a),u.stroke()}u.strokeStyle=this.axisColor,u.strokeRect(s,r,i,n)}else{let t;this.style===oT.STYLE.DOTSIZE?t=i*(this.dotSizeMinFraction/this.dotSizeMaxFraction):(this.style,oT.STYLE.BARSIZE),u.strokeStyle=this.axisColor,u.fillStyle=gC(this.dataColor),u.beginPath(),u.moveTo(s,r),u.lineTo(o,r),u.lineTo(s+t,a),u.lineTo(s,a),u.closePath(),gC(u).call(u),u.stroke()}const c=e?this.valueRange.min:this.zRange.min,l=e?this.valueRange.max:this.zRange.max,h=new rT(c,l,(l-c)/5,!0);for(h.start(!0);!h.end();){const t=a-(h.getCurrent()-c)/(l-c)*n,e=new eT(s-5,t),r=new eT(s,t);this._line(u,e,r),u.textAlign="right",u.textBaseline="middle",u.fillStyle=this.axisColor,u.fillText(h.getCurrent(),s-10,t),h.next()}u.textAlign="right",u.textBaseline="top";const f=this.legendLabel;u.fillText(f,o,a+this.margin)},oT.prototype._redrawFilter=function(){const t=this.dataGroup.dataFilter,e=Zd(this.frame);if(e.innerHTML="",!t)return void(e.slider=void 0);const n=new nT(e,{visible:this.showAnimationControls});e.slider=n,e.style.padding="10px",n.setValues(pw(t)),n.setPlayInterval(this.animationInterval);const r=this;n.setOnChangeCallback(function(){const t=r.dataGroup.dataFilter,e=n.getIndex();t.selectValue(e),r.dataPoints=t._getDataPoints(),r.redraw()})},oT.prototype._redrawSlider=function(){void 0!==Zd(this.frame).slider&&Zd(this.frame).slider.redraw()},oT.prototype._redrawInfo=function(){const t=this.dataGroup.getInfo();if(void 0===t)return;const e=this._getContext();e.font="14px arial",e.lineStyle="gray",e.fillStyle="gray",e.textAlign="left",e.textBaseline="top";const n=this.margin,r=this.margin;e.fillText(t,n,r)},oT.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()},oT.prototype.drawAxisLabelX=function(t,e,n,r,i){void 0===i&&(i=0);const o=this._convert3Dto2D(e);Math.cos(2*r)>0?(t.textAlign="center",t.textBaseline="top",o.y+=i):Math.sin(2*r)<0?(t.textAlign="right",t.textBaseline="middle"):(t.textAlign="left",t.textBaseline="middle"),t.fillStyle=this.axisColor,t.fillText(n,o.x,o.y)},oT.prototype.drawAxisLabelY=function(t,e,n,r,i){void 0===i&&(i=0);const o=this._convert3Dto2D(e);Math.cos(2*r)<0?(t.textAlign="center",t.textBaseline="top",o.y+=i):Math.sin(2*r)>0?(t.textAlign="right",t.textBaseline="middle"):(t.textAlign="left",t.textBaseline="middle"),t.fillStyle=this.axisColor,t.fillText(n,o.x,o.y)},oT.prototype.drawAxisLabelZ=function(t,e,n,r){void 0===r&&(r=0);const i=this._convert3Dto2D(e);t.textAlign="right",t.textBaseline="middle",t.fillStyle=this.axisColor,t.fillText(n,i.x-r,i.y)},oT.prototype.drawAxisLabelXRotate=function(t,e,n,r,i){const o=this._convert3Dto2D(e);Math.cos(2*r)>0?(t.save(),t.translate(o.x,o.y),t.rotate(-Math.PI/2),t.textAlign="right",t.textBaseline="middle",t.fillStyle=this.axisColor,t.fillText(n,0,0),t.restore()):Math.sin(2*r)<0?(t.textAlign="right",t.textBaseline="middle",t.fillStyle=this.axisColor,t.fillText(n,o.x,o.y)):(t.textAlign="left",t.textBaseline="middle",t.fillStyle=this.axisColor,t.fillText(n,o.x,o.y))},oT.prototype.drawAxisLabelYRotate=function(t,e,n,r,i){const o=this._convert3Dto2D(e);Math.cos(2*r)<0?(t.save(),t.translate(o.x,o.y),t.rotate(-Math.PI/2),t.textAlign="right",t.textBaseline="middle",t.fillStyle=this.axisColor,t.fillText(n,0,0),t.restore()):Math.sin(2*r)>0?(t.textAlign="right",t.textBaseline="middle",t.fillStyle=this.axisColor,t.fillText(n,o.x,o.y)):(t.textAlign="left",t.textBaseline="middle",t.fillStyle=this.axisColor,t.fillText(n,o.x,o.y))},oT.prototype.drawAxisLabelZRotate=function(t,e,n,r){void 0===r&&(r=0);const i=this._convert3Dto2D(e);t.textAlign="right",t.textBaseline="middle",t.fillStyle=this.axisColor,t.fillText(n,i.x-r,i.y)},oT.prototype._line3d=function(t,e,n,r){const i=this._convert3Dto2D(e),o=this._convert3Dto2D(n);this._line(t,i,o,r)},oT.prototype._redrawAxis=function(){const t=this._getContext();let e,n,r,i,o,s,a,u,c,l,h;t.font=this.axisFontSize/this.camera.getArmLength()+"px "+this.axisFontType;const f=.025/this.scale.x,d=.025/this.scale.y,p=5/this.camera.getArmLength(),v=this.camera.getArmRotation().horizontal,m=new eT(Math.cos(v),Math.sin(v)),g=this.xRange,y=this.yRange,b=this.zRange;let w;for(t.lineWidth=1,i=void 0===this.defaultXStep,r=new rT(g.min,g.max,this.xStep,i),r.start(!0);!r.end();){const i=r.getCurrent();if(this.showGrid?(e=new XS(i,y.min,b.min),n=new XS(i,y.max,b.min),this._line3d(t,e,n,this.gridColor)):this.showXAxis&&(e=new XS(i,y.min,b.min),n=new XS(i,y.min+f,b.min),this._line3d(t,e,n,this.axisColor),e=new XS(i,y.max,b.min),n=new XS(i,y.max-f,b.min),this._line3d(t,e,n,this.axisColor)),this.showXAxis){a=m.x>0?y.min:y.max,w=new XS(i,a,b.min);const e=" "+this.xValueLabel(i)+" ";this._drawAxisLabelX.call(this,t,w,e,v,p)}r.next()}for(t.lineWidth=1,i=void 0===this.defaultYStep,r=new rT(y.min,y.max,this.yStep,i),r.start(!0);!r.end();){const i=r.getCurrent();if(this.showGrid?(e=new XS(g.min,i,b.min),n=new XS(g.max,i,b.min),this._line3d(t,e,n,this.gridColor)):this.showYAxis&&(e=new XS(g.min,i,b.min),n=new XS(g.min+d,i,b.min),this._line3d(t,e,n,this.axisColor),e=new XS(g.max,i,b.min),n=new XS(g.max-d,i,b.min),this._line3d(t,e,n,this.axisColor)),this.showYAxis){s=m.y>0?g.min:g.max,w=new XS(s,i,b.min);const e=" "+this.yValueLabel(i)+" ";this._drawAxisLabelY.call(this,t,w,e,v,p)}r.next()}if(this.showZAxis){for(t.lineWidth=1,i=void 0===this.defaultZStep,r=new rT(b.min,b.max,this.zStep,i),r.start(!0),s=m.x>0?g.min:g.max,a=m.y<0?y.min:y.max;!r.end();){const e=r.getCurrent(),i=new XS(s,a,e),o=this._convert3Dto2D(i);n=new eT(o.x-p,o.y),this._line(t,o,n,this.axisColor);const u=this.zValueLabel(e)+" ";this._drawAxisLabelZ.call(this,t,i,u,5),r.next()}t.lineWidth=1,e=new XS(s,a,b.min),n=new XS(s,a,b.max),this._line3d(t,e,n,this.axisColor)}if(this.showXAxis){let e,n;t.lineWidth=1,e=new XS(g.min,y.min,b.min),n=new XS(g.max,y.min,b.min),this._line3d(t,e,n,this.axisColor),e=new XS(g.min,y.max,b.min),n=new XS(g.max,y.max,b.min),this._line3d(t,e,n,this.axisColor)}this.showYAxis&&(t.lineWidth=1,e=new XS(g.min,y.min,b.min),n=new XS(g.min,y.max,b.min),this._line3d(t,e,n,this.axisColor),e=new XS(g.max,y.min,b.min),n=new XS(g.max,y.max,b.min),this._line3d(t,e,n,this.axisColor));const x=this.xLabel;x.length>0&&this.showXAxis&&(h=.1/this.scale.y,s=(g.max+3*g.min)/4,a=m.x>0?y.min-h:y.max+h,o=new XS(s,a,b.min),this.drawAxisLabelX(t,o,x,v));const _=this.yLabel;_.length>0&&this.showYAxis&&(l=.1/this.scale.x,s=m.y>0?g.min-l:g.max+l,a=(y.max+3*y.min)/4,o=new XS(s,a,b.min),this.drawAxisLabelY(t,o,_,v));const C=this.zLabel;C.length>0&&this.showZAxis&&(c=30,s=m.x>0?g.min:g.max,a=m.y<0?y.min:y.max,u=(b.max+3*b.min)/4,o=new XS(s,a,u),this.drawAxisLabelZ(t,o,C,30))},oT.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},oT.prototype._redrawBar=function(t,e,n,r,i,o){let s;const a=this,u=e.point,c=this.zRange.min,l=[{point:new XS(u.x-n,u.y-r,u.z)},{point:new XS(u.x+n,u.y-r,u.z)},{point:new XS(u.x+n,u.y+r,u.z)},{point:new XS(u.x-n,u.y+r,u.z)}],h=[{point:new XS(u.x-n,u.y-r,c)},{point:new XS(u.x+n,u.y-r,c)},{point:new XS(u.x+n,u.y+r,c)},{point:new XS(u.x-n,u.y+r,c)}];bp(l).call(l,function(t){t.screen=a._convert3Dto2D(t.point)}),bp(h).call(h,function(t){t.screen=a._convert3Dto2D(t.point)});const f=[{corners:l,center:XS.avg(h[0].point,h[2].point)},{corners:[l[0],l[1],h[1],h[0]],center:XS.avg(h[1].point,h[0].point)},{corners:[l[1],l[2],h[2],h[1]],center:XS.avg(h[2].point,h[1].point)},{corners:[l[2],l[3],h[3],h[2]],center:XS.avg(h[3].point,h[2].point)},{corners:[l[3],l[0],h[0],h[3]],center:XS.avg(h[0].point,h[3].point)}];e.surfaces=f;for(let t=0;t<f.length;t++){s=f[t];const e=this._convertPointToTranslation(s.center);s.dist=this.showPerspective?e.length():-e.z}Kb(f).call(f,function(t,e){const n=e.dist-t.dist;return n||(t.corners===l?1:e.corners===l?-1:0)}),t.lineWidth=this._getStrokeWidth(e),t.strokeStyle=o,t.fillStyle=i;for(let e=2;e<f.length;e++)s=f[e],this._polygon(t,s.corners)},oT.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(let n=1;n<e.length;++n){const r=e[n];t.lineTo(r.screen.x,r.screen.y)}t.closePath(),gC(t).call(t),t.stroke()}},oT.prototype._drawCircle=function(t,e,n,r,i){const 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),gC(t).call(t),t.stroke()},oT.prototype._getColorsRegular=function(t){const e=(t.point.value-this.valueRange.min)*this.scale.value;return{fill:this._colormap(e,1),border:this._colormap(e,.8)}},oT.prototype._getColorsColor=function(t){let e,n,r;if(t&&t.point&&t.point.data&&t.point.data.style&&(r=t.point.data.style),r&&"object"==typeof r&&gC(r)&&r.stroke)return{fill:gC(r),border:r.stroke};if("string"==typeof t.point.value)e=t.point.value,n=t.point.value;else{const r=(t.point.value-this.valueRange.min)*this.scale.value;e=this._colormap(r,1),n=this._colormap(r,.8)}return{fill:e,border:n}},oT.prototype._getColorsSize=function(){return{fill:gC(this.dataColor),border:this.dataColor.stroke}},oT.prototype._colormap=function(t){let e,n,r,i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const s=this.colormap;if(my(s)){const i=s.length-1,o=Math.max(Math.floor(t*i),0),a=Math.min(o+1,i),u=t*i-o,c=s[o],l=s[a];e=c.r+u*(l.r-c.r),n=c.g+u*(l.g-c.g),r=c.b+u*(l.b-c.b)}else if("function"==typeof s){var a=s(t);e=a.r,n=a.g,r=a.b,i=a.a}else{var u=JC(240*(1-t)/360,1,1);e=u.r,n=u.g,r=u.b}var c,l,h,f,d;return"number"!=typeof i||yE(i)?eb(c=eb(l="RGB(".concat(Math.round(e*o),", ")).call(l,Math.round(n*o),", ")).call(c,Math.round(r*o),")"):eb(h=eb(f=eb(d="RGBA(".concat(Math.round(e*o),", ")).call(d,Math.round(n*o),", ")).call(f,Math.round(r*o),", ")).call(h,i,")")},oT.prototype._calcRadius=function(t,e){let n;return void 0===e&&(e=this._dotSize()),n=this.showPerspective?e/-t.trans.z:e*(-this.eye.z/this.camera.getArmLength()),n<0&&(n=0),n},oT.prototype._redrawBarGraphPoint=function(t,e){const n=this.xBarWidth/2,r=this.yBarWidth/2,i=this._getColorsRegular(e);this._redrawBar(t,e,n,r,gC(i),i.border)},oT.prototype._redrawBarColorGraphPoint=function(t,e){const n=this.xBarWidth/2,r=this.yBarWidth/2,i=this._getColorsColor(e);this._redrawBar(t,e,n,r,gC(i),i.border)},oT.prototype._redrawBarSizeGraphPoint=function(t,e){const 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,gC(o),o.border)},oT.prototype._redrawDotGraphPoint=function(t,e){const n=this._getColorsRegular(e);this._drawCircle(t,e,gC(n),n.border)},oT.prototype._redrawDotLineGraphPoint=function(t,e){const n=this._convert3Dto2D(e.bottom);t.lineWidth=1,this._line(t,n,e.screen,this.gridColor),this._redrawDotGraphPoint(t,e)},oT.prototype._redrawDotColorGraphPoint=function(t,e){const n=this._getColorsColor(e);this._drawCircle(t,e,gC(n),n.border)},oT.prototype._redrawDotSizeGraphPoint=function(t,e){const n=this._dotSize(),r=(e.point.value-this.valueRange.min)/this.valueRange.range(),i=n*this.dotSizeMinFraction,o=i+(n*this.dotSizeMaxFraction-i)*r,s=this._getColorsSize();this._drawCircle(t,e,gC(s),s.border,o)},oT.prototype._redrawSurfaceGraphPoint=function(t,e){const n=e.pointRight,r=e.pointTop,i=e.pointCross;if(void 0===e||void 0===n||void 0===r||void 0===i)return;let o,s,a,u=!0;if(this.showGrayBottom||this.showShadow){const t=XS.subtract(i.trans,e.trans),o=XS.subtract(r.trans,n.trans),s=XS.crossProduct(t,o);if(this.showPerspective){const t=XS.avg(XS.avg(e.trans,i.trans),XS.avg(n.trans,r.trans));a=-XS.dotProduct(s.normalize(),t.normalize())}else a=s.z/s.length();u=a>0}if(u||!this.showGrayBottom){const t=((e.point.value+n.point.value+r.point.value+i.point.value)/4-this.valueRange.min)*this.scale.value,s=this.showShadow?(1+a)/2:1;o=this._colormap(t,s)}else o="gray";s=this.showSurfaceGrid?this.axisColor:o,t.lineWidth=this._getStrokeWidth(e);const c=[e,n,i,r];this._polygon(t,c,o,s)},oT.prototype._drawGridLine=function(t,e,n){if(void 0===e||void 0===n)return;const r=((e.point.value+n.point.value)/2-this.valueRange.min)*this.scale.value;t.lineWidth=2*this._getStrokeWidth(e),t.strokeStyle=this._colormap(r,1),this._line(t,e.screen,n.screen)},oT.prototype._redrawGridGraphPoint=function(t,e){this._drawGridLine(t,e,e.pointRight),this._drawGridLine(t,e,e.pointTop)},oT.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))},oT.prototype._redrawDataGraph=function(){const t=this._getContext();let e;if(!(void 0===this.dataPoints||this.dataPoints.length<=0))for(this._calcTranslations(this.dataPoints),e=0;e<this.dataPoints.length;e++){const n=this.dataPoints[e];this._pointDrawingMethod.call(this,t,n)}},oT.prototype._storeMousePosition=function(t){this.startMouseX=sT(t),this.startMouseY=aT(t),this._startCameraOffset=this.camera.getOffset()},oT.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)return;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";const e=this;this.onmousemove=function(t){e._onMouseMove(t)},this.onmouseup=function(t){e._onMouseUp(t)},document.addEventListener("mousemove",e.onmousemove),document.addEventListener("mouseup",e.onmouseup),VC(t)},oT.prototype._onMouseMove=function(t){this.moving=!0,t=t||window.event;const e=vE(sT(t))-this.startMouseX,n=vE(aT(t))-this.startMouseY;if(t&&!0===t.ctrlKey){const r=.5*this.frame.clientWidth,i=.5*this.frame.clientHeight,o=(this._startCameraOffset.x||0)-e/r*this.camera.armLength*.8,s=(this._startCameraOffset.y||0)+n/i*this.camera.armLength*.8;this.camera.setOffset(o,s),this._storeMousePosition(t)}else{let t=this.startArmRotation.horizontal+e/200,r=this.startArmRotation.vertical+n/200;const i=4,o=Math.sin(i/360*2*Math.PI);Math.abs(Math.sin(t))<o&&(t=Math.round(t/Math.PI)*Math.PI-.001),Math.abs(Math.cos(t))<o&&(t=(Math.round(t/Math.PI-.5)+.5)*Math.PI-.001),Math.abs(Math.sin(r))<o&&(r=Math.round(r/Math.PI)*Math.PI),Math.abs(Math.cos(r))<o&&(r=(Math.round(r/Math.PI-.5)+.5)*Math.PI),this.camera.setArmRotation(t,r)}this.redraw();const r=this.getCameraPosition();this.emit("cameraPositionChange",r),VC(t)},oT.prototype._onMouseUp=function(t){this.frame.style.cursor="auto",this.leftButtonDown=!1,document.removeEventListener("mousemove",this.onmousemove),document.removeEventListener("mouseup",this.onmouseup),VC(t)},oT.prototype._onClick=function(t){if(this.onclick_callback||this.hasListeners("click")){if(this.moving)this.moving=!1;else{const e=this.frame.getBoundingClientRect(),n=sT(t)-e.left,r=aT(t)-e.top,i=this._dataPointFromXY(n,r);i&&(this.onclick_callback&&this.onclick_callback(i.point.data),this.emit("click",i.point.data))}VC(t)}},oT.prototype._onTooltip=function(t){const e=this.tooltipDelay,n=this.frame.getBoundingClientRect(),r=sT(t)-n.left,i=aT(t)-n.top;if(this.showTooltip)if(this.tooltipTimeout&&clearTimeout(this.tooltipTimeout),this.leftButtonDown)this._hideTooltip();else if(this.tooltip&&this.tooltip.dataPoint){const t=this._dataPointFromXY(r,i);t!==this.tooltip.dataPoint&&(t?this._showTooltip(t):this._hideTooltip())}else{const t=this;this.tooltipTimeout=Qg(function(){t.tooltipTimeout=null;const e=t._dataPointFromXY(r,i);e&&t._showTooltip(e)},e)}},oT.prototype._onTouchStart=function(t){this.touchDown=!0;const e=this;this.ontouchmove=function(t){e._onTouchMove(t)},this.ontouchend=function(t){e._onTouchEnd(t)},document.addEventListener("touchmove",e.ontouchmove),document.addEventListener("touchend",e.ontouchend),this._onMouseDown(t)},oT.prototype._onTouchMove=function(t){this._onMouseMove(t)},oT.prototype._onTouchEnd=function(t){this.touchDown=!1,document.removeEventListener("touchmove",this.ontouchmove),document.removeEventListener("touchend",this.ontouchend),this._onMouseUp(t)},oT.prototype._onWheel=function(t){if(t||(t=window.event),this.zoomable&&(!this.ctrlToZoom||t.ctrlKey)){let e=0;if(t.wheelDelta?e=t.wheelDelta/120:t.detail&&(e=-t.detail/3),e){const t=this.camera.getArmLength()*(1-e/10);this.camera.setArmLength(t),this.redraw(),this._hideTooltip()}const n=this.getCameraPosition();this.emit("cameraPositionChange",n),VC(t)}},oT.prototype._insideTriangle=function(t,e){const n=e[0],r=e[1],i=e[2];function o(t){return t>0?1:t<0?-1:0}const s=o((r.x-n.x)*(t.y-n.y)-(r.y-n.y)*(t.x-n.x)),a=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!=s&&0!=a&&s!=a||0!=a&&0!=u&&a!=u||0!=s&&0!=u&&s!=u)},oT.prototype._dataPointFromXY=function(t,e){const n=new eT(t,e);let r,i=null,o=null,s=null;if(this.style===oT.STYLE.BAR||this.style===oT.STYLE.BARCOLOR||this.style===oT.STYLE.BARSIZE)for(r=this.dataPoints.length-1;r>=0;r--){i=this.dataPoints[r];const t=i.surfaces;if(t)for(let e=t.length-1;e>=0;e--){const r=t[e].corners,o=[r[0].screen,r[1].screen,r[2].screen],s=[r[2].screen,r[3].screen,r[0].screen];if(this._insideTriangle(n,o)||this._insideTriangle(n,s))return i}}else for(r=0;r<this.dataPoints.length;r++){i=this.dataPoints[r];const n=i.screen;if(n){const r=Math.abs(t-n.x),a=Math.abs(e-n.y),u=Math.sqrt(r*r+a*a);(null===s||u<s)&&u<100&&(s=u,o=i)}}return o},oT.prototype.hasBars=function(t){return t==oT.STYLE.BAR||t==oT.STYLE.BARCOLOR||t==oT.STYLE.BARSIZE},oT.prototype._showTooltip=function(t){let e,n,r;this.tooltip?(e=this.tooltip.dom.content,n=this.tooltip.dom.line,r=this.tooltip.dom.dot):(e=document.createElement("div"),Gy(e.style,{},this.tooltipStyle.content),e.style.position="absolute",n=document.createElement("div"),Gy(n.style,{},this.tooltipStyle.line),n.style.position="absolute",r=document.createElement("div"),Gy(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);const i=e.offsetWidth,o=e.offsetHeight,s=n.offsetHeight,a=r.offsetWidth,u=r.offsetHeight;let c=t.screen.x-i/2;c=Math.min(Math.max(c,10),this.frame.clientWidth-10-i),n.style.left=t.screen.x+"px",n.style.top=t.screen.y-s+"px",e.style.left=c+"px",e.style.top=t.screen.y-s-o+"px",r.style.left=t.screen.x-a/2+"px",r.style.top=t.screen.y-u/2+"px"},oT.prototype._hideTooltip=function(){if(this.tooltip){this.tooltip.dataPoint=null;for(const t in this.tooltip.dom)if(Object.prototype.hasOwnProperty.call(this.tooltip.dom,t)){const e=this.tooltip.dom[t];e&&e.parentNode&&e.parentNode.removeChild(e)}}},oT.prototype.setCameraPosition=function(t){XE(t,this),this.redraw()},oT.prototype.setSize=function(t,e){this._setSize(t,e),this.redraw()};const uT={Camera:HS,Filter:qS,Point2d:eT,Point3d:XS,Slider:nT,StepNumber:rT};var cT={util:gS,DOMutil:WS,DataSet:kS,DataView:OS,Queue:TS,Graph3d:oT,Hammer:zt,keycharm:Nt,graph3d:{Camera:HS,Filter:qS,Point2d:eT,Point3d:XS,Slider:nT,StepNumber:rT}};t.DOMutil=WS,t.DataSet=kS,t.DataView=OS,t.Graph3d=oT,t.Hammer=zt,t.Queue=TS,t.default=cT,t.graph3d=uT,t.keycharm=Nt,t.util=gS,Object.defineProperty(t,"__esModule",{value:!0})});
//# sourceMappingURL=vis-graph3d.min.js.map