@nebula.js/sn-bar-chart 1.35.12 → 1.35.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * @nebula.js/sn-bar-chart v1.35.12
2
+ * @nebula.js/sn-bar-chart v1.35.13
3
3
  * Copyright (c) 2024 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
@@ -13,14 +13,14 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,i,o,a,s,l,u,c,d,f=e.le
13
13
  * Copyright (c) 2016 Jorik Tangelder;
14
14
  * Licensed under the MIT license */!function(e){!function(t,n,r,i){var o,a=["","webkit","Moz","MS","ms","o"],s=n.createElement("div"),l="function",u=Math.round,c=Math.abs,d=Date.now;function f(e,t,n){return setTimeout(b(e,n),t)}function h(e,t,n){return!!Array.isArray(e)&&(p(e,n[t],n),!0)}function p(e,t,n){var r;if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==i)for(r=0;r<e.length;)t.call(n,e[r],r,e),r++;else for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e)}function m(e,n,r){var i="DEPRECATED METHOD: "+n+"\n"+r+" AT \n";return function(){var n=new Error("get-stack-trace"),r=n&&n.stack?n.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=t.console&&(t.console.warn||t.console.log);return o&&o.call(t.console,i,r),e.apply(this,arguments)}}o="function"!=typeof Object.assign?function(e){if(e===i||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(r!==i&&null!==r)for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])}return t}:Object.assign;var g=m((function(e,t,n){for(var r=Object.keys(t),o=0;o<r.length;)(!n||n&&e[r[o]]===i)&&(e[r[o]]=t[r[o]]),o++;return e}),"extend","Use `assign`."),y=m((function(e,t){return g(e,t,!0)}),"merge","Use `assign`.");function v(e,t,n){var r,i=t.prototype;(r=e.prototype=Object.create(i)).constructor=e,r._super=i,n&&o(r,n)}function b(e,t){return function(){return e.apply(t,arguments)}}function x(e,t){return typeof e==l?e.apply(t&&t[0]||i,t):e}function w(e,t){return e===i?t:e}function S(e,t,n){p(q(t),(function(t){e.addEventListener(t,n,!1)}))}function M(e,t,n){p(q(t),(function(t){e.removeEventListener(t,n,!1)}))}function k(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function C(e,t){return e.indexOf(t)>-1}function q(e){return e.trim().split(/\s+/g)}function E(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var r=0;r<e.length;){if(n&&e[r][n]==t||!n&&e[r]===t)return r;r++}return-1}function D(e){return Array.prototype.slice.call(e,0)}function T(e,t,n){for(var r=[],i=[],o=0;o<e.length;){var a=t?e[o][t]:e[o];E(i,a)<0&&r.push(e[o]),i[o]=a,o++}return n&&(r=t?r.sort((function(e,n){return e[t]>n[t]})):r.sort()),r}function N(e,t){for(var n,r,o=t[0].toUpperCase()+t.slice(1),s=0;s<a.length;){if((r=(n=a[s])?n+o:t)in e)return r;s++}return i}var O=1;function A(e){var n=e.ownerDocument||e;return n.defaultView||n.parentWindow||t}var _="ontouchstart"in t,L=N(t,"PointerEvent")!==i,I=_&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),R="touch",P="mouse",z=25,F=1,j=4,B=8,H=1,V=2,$=4,U=8,W=16,Y=V|$,K=U|W,G=Y|K,X=["x","y"],J=["clientX","clientY"];function Q(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){x(e.options.enable,[e])&&n.handler(t)},this.init()}function Z(e,t,n){var r=n.pointers.length,o=n.changedPointers.length,a=t&F&&r-o==0,s=t&(j|B)&&r-o==0;n.isFirst=!!a,n.isFinal=!!s,a&&(e.session={}),n.eventType=t,function(e,t){var n=e.session,r=t.pointers,o=r.length;n.firstInput||(n.firstInput=ee(t));o>1&&!n.firstMultiple?n.firstMultiple=ee(t):1===o&&(n.firstMultiple=!1);var a=n.firstInput,s=n.firstMultiple,l=s?s.center:a.center,u=t.center=te(r);t.timeStamp=d(),t.deltaTime=t.timeStamp-a.timeStamp,t.angle=oe(l,u),t.distance=ie(l,u),function(e,t){var n=t.center,r=e.offsetDelta||{},i=e.prevDelta||{},o=e.prevInput||{};t.eventType!==F&&o.eventType!==j||(i=e.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=e.offsetDelta={x:n.x,y:n.y});t.deltaX=i.x+(n.x-r.x),t.deltaY=i.y+(n.y-r.y)}(n,t),t.offsetDirection=re(t.deltaX,t.deltaY);var f=ne(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=f.x,t.overallVelocityY=f.y,t.overallVelocity=c(f.x)>c(f.y)?f.x:f.y,t.scale=s?function(e,t){return ie(t[0],t[1],J)/ie(e[0],e[1],J)}(s.pointers,r):1,t.rotation=s?function(e,t){return oe(t[1],t[0],J)+oe(e[1],e[0],J)}(s.pointers,r):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,r,o,a,s=e.lastInterval||t,l=t.timeStamp-s.timeStamp;if(t.eventType!=B&&(l>z||s.velocity===i)){var u=t.deltaX-s.deltaX,d=t.deltaY-s.deltaY,f=ne(l,u,d);r=f.x,o=f.y,n=c(f.x)>c(f.y)?f.x:f.y,a=re(u,d),e.lastInterval=t}else n=s.velocity,r=s.velocityX,o=s.velocityY,a=s.direction;t.velocity=n,t.velocityX=r,t.velocityY=o,t.direction=a}(n,t);var h=e.element;k(t.srcEvent.target,h)&&(h=t.srcEvent.target);t.target=h}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function ee(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:u(e.pointers[n].clientX),clientY:u(e.pointers[n].clientY)},n++;return{timeStamp:d(),pointers:t,center:te(t),deltaX:e.deltaX,deltaY:e.deltaY}}function te(e){var t=e.length;if(1===t)return{x:u(e[0].clientX),y:u(e[0].clientY)};for(var n=0,r=0,i=0;i<t;)n+=e[i].clientX,r+=e[i].clientY,i++;return{x:u(n/t),y:u(r/t)}}function ne(e,t,n){return{x:t/e||0,y:n/e||0}}function re(e,t){return e===t?H:c(e)>=c(t)?e<0?V:$:t<0?U:W}function ie(e,t,n){n||(n=X);var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return Math.sqrt(r*r+i*i)}function oe(e,t,n){n||(n=X);var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return 180*Math.atan2(i,r)/Math.PI}Q.prototype={handler:function(){},init:function(){this.evEl&&S(this.element,this.evEl,this.domHandler),this.evTarget&&S(this.target,this.evTarget,this.domHandler),this.evWin&&S(A(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&M(this.element,this.evEl,this.domHandler),this.evTarget&&M(this.target,this.evTarget,this.domHandler),this.evWin&&M(A(this.element),this.evWin,this.domHandler)}};var ae={mousedown:F,mousemove:2,mouseup:j},se="mousedown",le="mousemove mouseup";function ue(){this.evEl=se,this.evWin=le,this.pressed=!1,Q.apply(this,arguments)}v(ue,Q,{handler:function(e){var t=ae[e.type];t&F&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=j),this.pressed&&(t&j&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:P,srcEvent:e}))}});var ce={pointerdown:F,pointermove:2,pointerup:j,pointercancel:B,pointerout:B},de={2:R,3:"pen",4:P,5:"kinect"},fe="pointerdown",he="pointermove pointerup pointercancel";function pe(){this.evEl=fe,this.evWin=he,Q.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}t.MSPointerEvent&&!t.PointerEvent&&(fe="MSPointerDown",he="MSPointerMove MSPointerUp MSPointerCancel"),v(pe,Q,{handler:function(e){var t=this.store,n=!1,r=e.type.toLowerCase().replace("ms",""),i=ce[r],o=de[e.pointerType]||e.pointerType,a=o==R,s=E(t,e.pointerId,"pointerId");i&F&&(0===e.button||a)?s<0&&(t.push(e),s=t.length-1):i&(j|B)&&(n=!0),s<0||(t[s]=e,this.callback(this.manager,i,{pointers:t,changedPointers:[e],pointerType:o,srcEvent:e}),n&&t.splice(s,1))}});var me={touchstart:F,touchmove:2,touchend:j,touchcancel:B};function ge(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,Q.apply(this,arguments)}function ye(e,t){var n=D(e.touches),r=D(e.changedTouches);return t&(j|B)&&(n=T(n.concat(r),"identifier",!0)),[n,r]}v(ge,Q,{handler:function(e){var t=me[e.type];if(t===F&&(this.started=!0),this.started){var n=ye.call(this,e,t);t&(j|B)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:R,srcEvent:e})}}});var ve={touchstart:F,touchmove:2,touchend:j,touchcancel:B},be="touchstart touchmove touchend touchcancel";function xe(){this.evTarget=be,this.targetIds={},Q.apply(this,arguments)}function we(e,t){var n=D(e.touches),r=this.targetIds;if(t&(2|F)&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,o,a=D(e.changedTouches),s=[],l=this.target;if(o=n.filter((function(e){return k(e.target,l)})),t===F)for(i=0;i<o.length;)r[o[i].identifier]=!0,i++;for(i=0;i<a.length;)r[a[i].identifier]&&s.push(a[i]),t&(j|B)&&delete r[a[i].identifier],i++;return s.length?[T(o.concat(s),"identifier",!0),s]:void 0}v(xe,Q,{handler:function(e){var t=ve[e.type],n=we.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:R,srcEvent:e})}});var Se=2500;function Me(){Q.apply(this,arguments);var e=b(this.handler,this);this.touch=new xe(this.manager,e),this.mouse=new ue(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function ke(e,t){e&F?(this.primaryTouch=t.changedPointers[0].identifier,Ce.call(this,t)):e&(j|B)&&Ce.call(this,t)}function Ce(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY};this.lastTouches.push(n);var r=this.lastTouches;setTimeout((function(){var e=r.indexOf(n);e>-1&&r.splice(e,1)}),Se)}}function qe(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var i=this.lastTouches[r],o=Math.abs(t-i.x),a=Math.abs(n-i.y);if(o<=25&&a<=25)return!0}return!1}v(Me,Q,{handler:function(e,t,n){var r=n.pointerType==R,i=n.pointerType==P;if(!(i&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)ke.call(this,t,n);else if(i&&qe.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Ee=N(s.style,"touchAction"),De=Ee!==i,Te="compute",Ne="auto",Oe="manipulation",Ae="none",_e="pan-x",Le="pan-y",Ie=function(){if(!De)return!1;var e={},n=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(r){e[r]=!n||t.CSS.supports("touch-action",r)})),e}();function Re(e,t){this.manager=e,this.set(t)}Re.prototype={set:function(e){e==Te&&(e=this.compute()),De&&this.manager.element.style&&Ie[e]&&(this.manager.element.style[Ee]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return p(this.manager.recognizers,(function(t){x(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))})),function(e){if(C(e,Ae))return Ae;var t=C(e,_e),n=C(e,Le);if(t&&n)return Ae;if(t||n)return t?_e:Le;if(C(e,Oe))return Oe;return Ne}(e.join(" "))},preventDefaults:function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)t.preventDefault();else{var r=this.actions,i=C(r,Ae)&&!Ie[Ae],o=C(r,Le)&&!Ie[Le],a=C(r,_e)&&!Ie[_e];if(i){var s=1===e.pointers.length,l=e.distance<2,u=e.deltaTime<250;if(s&&l&&u)return}if(!a||!o)return i||o&&n&Y||a&&n&K?this.preventSrc(t):void 0}},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};var Pe=1,ze=32;function Fe(e){this.options=o({},this.defaults,e||{}),this.id=O++,this.manager=null,this.options.enable=w(this.options.enable,!0),this.state=Pe,this.simultaneous={},this.requireFail=[]}function je(e){return 16&e?"cancel":8&e?"end":4&e?"move":2&e?"start":""}function Be(e){return e==W?"down":e==U?"up":e==V?"left":e==$?"right":""}function He(e,t){var n=t.manager;return n?n.get(e):e}function Ve(){Fe.apply(this,arguments)}function $e(){Ve.apply(this,arguments),this.pX=null,this.pY=null}function Ue(){Ve.apply(this,arguments)}function We(){Fe.apply(this,arguments),this._timer=null,this._input=null}function Ye(){Ve.apply(this,arguments)}function Ke(){Ve.apply(this,arguments)}function Ge(){Fe.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Xe(e,t){return(t=t||{}).recognizers=w(t.recognizers,Xe.defaults.preset),new Je(e,t)}Fe.prototype={defaults:{},set:function(e){return o(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(h(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=He(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return h(e,"dropRecognizeWith",this)||(e=He(e,this),delete this.simultaneous[e.id]),this},requireFailure:function(e){if(h(e,"requireFailure",this))return this;var t=this.requireFail;return-1===E(t,e=He(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(h(e,"dropRequireFailure",this))return this;e=He(e,this);var t=E(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){var t=this,n=this.state;function r(n){t.manager.emit(n,e)}n<8&&r(t.options.event+je(n)),r(t.options.event),e.additionalEvent&&r(e.additionalEvent),n>=8&&r(t.options.event+je(n))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=ze},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(this.requireFail[e].state&(ze|Pe)))return!1;e++}return!0},recognize:function(e){var t=o({},e);if(!x(this.options.enable,[this,t]))return this.reset(),void(this.state=ze);56&this.state&&(this.state=Pe),this.state=this.process(t),30&this.state&&this.tryEmit(t)},process:function(e){},getTouchAction:function(){},reset:function(){}},v(Ve,Fe,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,n=e.eventType,r=6&t,i=this.attrTest(e);return r&&(n&B||!i)?16|t:r||i?n&j?8|t:2&t?4|t:2:ze}}),v($e,Ve,{defaults:{event:"pan",threshold:10,pointers:1,direction:G},getTouchAction:function(){var e=this.options.direction,t=[];return e&Y&&t.push(Le),e&K&&t.push(_e),t},directionTest:function(e){var t=this.options,n=!0,r=e.distance,i=e.direction,o=e.deltaX,a=e.deltaY;return i&t.direction||(t.direction&Y?(i=0===o?H:o<0?V:$,n=o!=this.pX,r=Math.abs(e.deltaX)):(i=0===a?H:a<0?U:W,n=a!=this.pY,r=Math.abs(e.deltaY))),e.direction=i,n&&r>t.threshold&&i&t.direction},attrTest:function(e){return Ve.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=Be(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),v(Ue,Ve,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Ae]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),v(We,Fe,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Ne]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,i=e.deltaTime>t.time;if(this._input=e,!r||!n||e.eventType&(j|B)&&!i)this.reset();else if(e.eventType&F)this.reset(),this._timer=f((function(){this.state=8,this.tryEmit()}),t.time,this);else if(e.eventType&j)return 8;return ze},reset:function(){clearTimeout(this._timer)},emit:function(e){8===this.state&&(e&&e.eventType&j?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=d(),this.manager.emit(this.options.event,this._input)))}}),v(Ye,Ve,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Ae]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)}}),v(Ke,Ve,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Y|K,pointers:1},getTouchAction:function(){return $e.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return n&(Y|K)?t=e.overallVelocity:n&Y?t=e.overallVelocityX:n&K&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&c(t)>this.options.velocity&&e.eventType&j},emit:function(e){var t=Be(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),v(Ge,Fe,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Oe]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,i=e.deltaTime<t.time;if(this.reset(),e.eventType&F&&0===this.count)return this.failTimeout();if(r&&i&&n){if(e.eventType!=j)return this.failTimeout();var o=!this.pTime||e.timeStamp-this.pTime<t.interval,a=!this.pCenter||ie(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,a&&o?this.count+=1:this.count=1,this._input=e,0===this.count%t.taps)return this.hasRequireFailures()?(this._timer=f((function(){this.state=8,this.tryEmit()}),t.interval,this),2):8}return ze},failTimeout:function(){return this._timer=f((function(){this.state=ze}),this.options.interval,this),ze},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Xe.VERSION="2.0.7",Xe.defaults={domEvents:!1,touchAction:Te,enable:!0,inputTarget:null,inputClass:null,preset:[[Ye,{enable:!1}],[Ue,{enable:!1},["rotate"]],[Ke,{direction:Y}],[$e,{direction:Y},["swipe"]],[Ge],[Ge,{event:"doubletap",taps:2},["tap"]],[We]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function Je(e,t){var n;this.options=o({},Xe.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=new((n=this).options.inputClass||(L?pe:I?xe:_?Me:ue))(n,Z),this.touchAction=new Re(this,this.options.touchAction),Qe(this,!0),p(this.options.recognizers,(function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])}),this)}function Qe(e,t){var n,r=e.element;r.style&&(p(e.options.cssProps,(function(i,o){n=N(r.style,o),t?(e.oldCssProps[n]=r.style[n],r.style[n]=i):r.style[n]=e.oldCssProps[n]||""})),t||(e.oldCssProps={}))}Je.prototype={set:function(e){return o(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?2:1},recognize:function(e){var t=this.session;if(!t.stopped){var n;this.touchAction.preventDefaults(e);var r=this.recognizers,i=t.curRecognizer;(!i||i&&8&i.state)&&(i=t.curRecognizer=null);for(var o=0;o<r.length;)n=r[o],2===t.stopped||i&&n!=i&&!n.canRecognizeWith(i)?n.reset():n.recognize(e),!i&&14&n.state&&(i=t.curRecognizer=n),o++}},get:function(e){if(e instanceof Fe)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event==e)return t[n];return null},add:function(e){if(h(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(h(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,n=E(t,e);-1!==n&&(t.splice(n,1),this.touchAction.update())}return this},on:function(e,t){if(e!==i&&t!==i){var n=this.handlers;return p(q(e),(function(e){n[e]=n[e]||[],n[e].push(t)})),this}},off:function(e,t){if(e!==i){var n=this.handlers;return p(q(e),(function(e){t?n[e]&&n[e].splice(E(n[e],t),1):delete n[e]})),this}},emit:function(e,t){this.options.domEvents&&function(e,t){var r=n.createEvent("Event");r.initEvent(e,!0,!0),r.gesture=t,t.target.dispatchEvent(r)}(e,t);var r=this.handlers[e]&&this.handlers[e].slice();if(r&&r.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var i=0;i<r.length;)r[i](t),i++}},destroy:function(){this.element&&Qe(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},o(Xe,{INPUT_START:F,INPUT_MOVE:2,INPUT_END:j,INPUT_CANCEL:B,STATE_POSSIBLE:Pe,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:ze,DIRECTION_NONE:H,DIRECTION_LEFT:V,DIRECTION_RIGHT:$,DIRECTION_UP:U,DIRECTION_DOWN:W,DIRECTION_HORIZONTAL:Y,DIRECTION_VERTICAL:K,DIRECTION_ALL:G,Manager:Je,Input:Q,TouchAction:Re,TouchInput:xe,MouseInput:ue,PointerEventInput:pe,TouchMouseInput:Me,SingleTouchInput:ge,Recognizer:Fe,AttrRecognizer:Ve,Tap:Ge,Pan:$e,Swipe:Ke,Pinch:Ue,Rotate:Ye,Press:We,on:S,off:M,each:p,merge:y,extend:g,assign:o,inherit:v,bindFn:b,prefixed:N}),(void 0!==t?t:"undefined"!=typeof self?self:{}).Hammer=Xe,"function"==typeof i&&i.amd?i((function(){return Xe})):e.exports?e.exports=Xe:t.Hammer=Xe}(window,document)}(pg);var mg=fg(pg.exports),gg=Object.prototype.hasOwnProperty,yg=Object.prototype.toString,vg=Object.defineProperty,bg=Object.getOwnPropertyDescriptor,xg=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===yg.call(e)},wg=function(e){if(!e||"[object Object]"!==yg.call(e))return!1;var t,n=gg.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&gg.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||gg.call(e,t)},Sg=function(e,t){vg&&"__proto__"===t.name?vg(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Mg=function(e,t){if("__proto__"===t){if(!gg.call(e,t))return;if(bg)return bg(e,t).value}return e[t]},kg=function e(){var t,n,r,i,o,a,s=arguments[0],l=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<u;++l)if(null!=(t=arguments[l]))for(n in t)r=Mg(s,n),s!==(i=Mg(t,n))&&(c&&i&&(wg(i)||(o=xg(i)))?(o?(o=!1,a=r&&xg(r)?r:[]):a=r&&wg(r)?r:{},Sg(s,{name:n,newValue:e(c,a,i)})):void 0!==i&&Sg(s,{name:n,newValue:i}));return s},Cg=fg(kg);const qg=[["FULL",{width:550,height:450}],["MEDIUM",{width:400,height:220}],["SMALL",{width:300,height:150}],["XSMALL",{width:150,height:75}],["SPARK",{width:0,height:0}]],Eg={};qg.forEach((([e,{width:t,height:n}])=>{Eg[e]={width:t,height:n}}));const Dg={getLayoutModes:()=>Eg,getLayoutMode(e,t){let n;for(n=0;n<qg.length;++n)if(e>=qg[n][1].width&&t>=qg[n][1].height)return qg[n][0];return"SPARK"}};function Tg(e,t){return{layoutModes:Dg.getLayoutModes(),center:void 0!==t.minCenterRatio?{minWidthRatio:t.minCenterRatio,minHeightRatio:t.minCenterRatio}:void 0,logicalSize:t.logicalSize?{align:.5,preserveAspectRatio:!0,...t.logicalSize}:void 0}}const Ng=["$date","$timestamp","$time"],Og=["D","TS","T"],Ag={hasTimeTag:e=>!!(e&&e.qTags&&e.qTags.some((e=>Ng.some((t=>t===e))))),hasUnknownFormat:e=>!(!e||!e.qNumFormat||"U"!==e.qNumFormat.qType),hasTimeFormat:e=>!!(e&&e.qNumFormat&&Og.some((t=>t===e.qNumFormat.qType))),isTimeDimension:(e,t)=>!!(e&&t&&(Ag.hasTimeTag(t)&&Ag.hasUnknownFormat(t)||Ag.hasTimeFormat(t))),isTime:(e,t)=>!!(t&&t.qHyperCube.qDimensionInfo&&t.qHyperCube.qDimensionInfo.length)&&(e&&Ag.isTimeDimension(e,t.qHyperCube.qDimensionInfo.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)}))[0])),canBeContinuousDimension(e){if(!e)return!1;const t=e.qTags||[];return!(!e.qContinuousAxes||!t.some((e=>"$numeric"===e)))},canBeContinuous(e){var t,n;const r=null==e||null===(t=e.qHyperCube)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t?void 0:t.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)}));return!((null!==(n=null==r?void 0:r.length)&&void 0!==n?n:0)<1)&&Ag.canBeContinuousDimension(r[0])},maxNumberOfLines:12},_g=/^[A-Z][A-z0-9_]*$/i,Lg={setValue:(e,t,n)=>{if(!t)return!1;const r=t.split("."),i=r[r.length-1];let o,a=e;for(o=0;o<r.length-1;++o)void 0===a[r[o]]&&(a[r[o]]=Number.isNaN(+r[o+1])?{}:[]),a=a[r[o]];if(void 0!==n){const e=a[i];return a[i]=n,{updated:n,previous:e}}return delete a[i],!1},getValue:(e,t,n)=>{const r=t.split(".");let i,o=e;if(void 0===o)return n;for(i=0;i<r.length;++i){if(void 0===o[r[i]])return n;o=o[r[i]]}return o},moveArrayElement:(e,t,n)=>{if(n>=e.length){let t=n-e.length;for(;1+t--;)e.push(void 0)}e.splice(n,0,e.splice(t,1)[0])},escapeField:e=>{let t;return t=!e||"]"===e||_g.test(e)?e:`[${e.replace(/\]/g,"]]")}]`,t},deleteUndefinedProperties:e=>{Object.keys(e).forEach((t=>{void 0===e[t]&&delete e[t]}))},shouldUseFormat:e=>!e.isCustomFormatted&&(e.qIsAutoFormat||"U"===e.qNumFormat.qType)},Ig=e=>Lg.getValue(e,"qHyperCube.qDimensionInfo",[]),Rg=e=>Lg.getValue(e,"qHyperCube.qMeasureInfo",[]),Pg=e=>Lg.getValue(e,"barGrouping.grouping"),zg={continuous:(e,t=!1)=>!!Ag.canBeContinuous(e)&&(Lg.getValue(e,"dimensionAxis.continuousAuto")?"function"==typeof t?t():t:!!e.preferContinuousAxis),dimensionless:e=>!Ig(e).length,grouped(e){return!this.dimensionless(e)&&"grouped"===Pg(e)&&(Ig(e).length>1||Rg(e).length>1)&&!this.continuous(e)},groupedByDimension(e){return this.grouped(e)&&Ig(e).length>1&&1===Rg(e).length},groupedByMeasure(e){return this.grouped(e)&&1===Ig(e).length&&Rg(e).length>1},stacked(e){return(!this.dimensionless(e)&&"grouped"!==Pg(e)||this.continuous(e))&&(Ig(e).length>1||Rg(e).length>1)},stackedByDimension(e){return this.stacked(e)&&Ig(e).length>1&&1===Rg(e).length},stackedByMeasure(e){return this.stacked(e)&&1===Ig(e).length&&Rg(e).length>1},simple:e=>0===Ig(e).length||1===Ig(e).length&&1===Rg(e).length,snapshot:e=>!!Lg.getValue(e,"snapshotData")};function Fg(e,t){const n=e.component(t);return n&&n._DO_NOT_USE_getInfo&&n._DO_NOT_USE_getInfo().offset}const jg=e=>{throw e.isHandled=!0,e};const Bg={getDockValue:e=>"near"===e||"left"===e||"top"===e?0:1,getOppositeDock(e){switch(e){case"left":return"right";case"right":return"left";case"top":return"bottom";case"bottom":return"top";case"near":default:return"far";case"far":return"near"}},getHorizontalDock:e=>"near"===e||"left"===e?"left":"right",getVerticalDock:e=>"near"===e||"bottom"===e?"bottom":"top",getDock:(e,t,n)=>"vertical"===e||"y"===e?Bg.getVerticalDock(t):n?Bg.getOppositeDock(Bg.getHorizontalDock(t)):Bg.getHorizontalDock(t),getInvertedOrientation:e=>"vertical"===e?"horizontal":"vertical",getMinorScaleAxis:e=>"vertical"===e?"y":"x",getMajorScaleAxis:e=>"vertical"===e?"x":"y",getAlignment:(e,t)=>"vertical"===e?"near"===t||"bottom"===t?1:0:"near"===t||"left"===t?0:1,getMeasureScaleInvert:(e,t)=>"vertical"===e||t,getDimensionScaleInvert:(e,t)=>"horizontal"===e&&t,getSize:(e,{width:t,height:n})=>"vertical"===e?t:n};var Hg=(e,t)=>{if("function"==typeof t.defaultValue)return t.defaultValue();if(void 0!==t.defaultValue)return t.defaultValue;if(Array.isArray(t.options))return t.options[0].value;switch(e){case"array":return[];case"string":return"";case"integer":case"number":return 0;case"boolean":return!1;default:return null}};const Vg={stringWidthOverMWidth:e=>(12*Math.min(e,3)+6.384615384615385*Math.max(e-3,0))/11,getCharacterRatios(e){if(!e)return{latin:0,cjk:0};let t=e.match(/[\u4E00-\u9FFF]/g),n=e.match(/[\u3040-\u309F]/g),r=e.match(/[\u30A0-\u30FF]/g);t=t?t.length:0,n=n?n.length:0,r=r?r.length:0;const i=t+n+r;return{latin:e.length-i,cjk:i}},getTotalCharacterRatios(e,t,n="qText"){if(!e)return{latinRatio:1,cjkRatio:0};const r={latin:0,cjk:0};let i;void 0===t?e.forEach((e=>{i=Vg.getCharacterRatios(e[n]),r.latin+=i.latin,r.cjk+=i.cjk})):e.forEach((e=>{i=Vg.getCharacterRatios(e[t][n]),r.latin+=i.latin,r.cjk+=i.cjk}));const o=Math.max(1,r.latin+r.cjk);return r.latinRatio=r.latin/o,r.cjkRatio=r.cjk/o,r},getAdjustedMaxGlyphCount(e,t,n,r="qText"){const i=Vg.getTotalCharacterRatios(t,n,r),o=i.latinRatio*e,a=i.cjkRatio*e;return Math.ceil(Vg.stringWidthOverMWidth(o)+1.0909090909090908*a)}},$g="#la-vie-tooltip";function Ug(){if(!document.querySelector($g)){const e=document.createElement("div");e.id="la-vie-tooltip",e.style.overflow="hidden",e.style.position="fixed",e.style.pointerEvents="none",e.style.left="0px",e.style.top="0px",e.style.width="100%",e.style.height="100%",e.style.zIndex=1020,document.body.appendChild(e)}}function Wg({key:e="tooltip",rtl:t}){return{show:!0,key:e,type:"tooltip",layout:{displayOrder:3},beforeMount(){Ug()},beforeUpdate(){Ug()},destroyed(){!function(){const e=document.querySelector($g);e&&e.parentElement&&e.childElementCount<1&&e.parentElement.removeChild(e)}()},settings:{appendTo:()=>document.querySelector($g),content:({h:e,data:t,style:n})=>t[0].map((t=>e("tr",{},function(e,{h:t,style:n}){return e.map((e=>{const r={style:{...n.cell||{},...e.style||{}},class:e.class};return e.colspan&&(r.colspan=e.colspan),t("td",r,e.content)}))}(t,{h:e,style:n})))),direction:t?"rtl":"ltr"},style:{arrow:{color:"#404040"},content:{display:"table","border-spacing":"4px",background:"rgba(64, 64, 64, 0.9)",opacity:"1",fontSize:"13px",fontFamily:'"Source Sans Pro", "Arial", "sans-serif"',"empty-cells":"show"},cell:{"max-width":"180px","word-break":"break-word","word-wrap":"break-word","overflow-wrap":"break-word",hyphens:"auto"}}}}const Yg=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),Kg=new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞‏יִײַ-ﬨשׁ-ﭏ]"),Gg=new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]"),Xg={lrm:String.fromCharCode(8206),rlm:String.fromCharCode(8207),isLtrChar:e=>Yg.test(e),isRtlChar:e=>Kg.test(e)||Gg.test(e),detectTextDirection(e){const t=e?e.length:0;let n,r;for(n=0;n<t;n++){if(r=e[n],Xg.isLtrChar(r))return"ltr";if(Xg.isRtlChar(r))return"rtl"}return"ltr"}},Jg={getColorSymbol:(e,t)=>e.h("div",{style:{display:"inline-block",width:"10px",height:"10px","background-color":t.color.fill,margin:"0 8px"}}),getNodeFillColor:e=>e.attrs&&void 0!==e.attrs.fill?e.attrs.fill:e.children&&e.children[0]&&e.children[0].attrs&&void 0!==e.children[0].attrs.fill?e.children[0].attrs.fill:void 0,getColor(e,t,n){const r=t.data,i=e.resources.formatter,o=e.resources.dataset,a={};if(n.coloring.label&&(a.label=`${n.coloring.label}`),"color"!==n.coloring.type&&r.fillTooltip){const e=i("fill"),t="measure"===n.coloring.fieldType;if(a.value=t&&e?e(r.fillTooltip.value):r.fillTooltip.label?r.fillTooltip.label:r.fillTooltip.value,!n.coloring.label){const e=o(r.fillTooltip.source.key).field(r.fillTooltip.source.field).title();a.label=`${e}`}}return a.fill=void 0===r._fillColor?Jg.getNodeFillColor(t):r._fillColor,a},getMeasure:(e,t)=>({label:`${e(t.source.key).field(t.source.field).title()}`,value:""===t.label||"NaN"===t.label?"-":t.label,field:t.source.field}),hideColorRow:(e,t)=>void 0===e.color.value||e.measures.some((e=>e.field===t.coloring.field)),getTitleRow(e,t){const n=Xg.detectTextDirection(e.title);return[{content:e.title,style:{"font-weight":"bold","text-align":t?"right":"left",direction:n},colspan:2},{}]},getDescriptionRow(e,t){const n=Xg.detectTextDirection(e.value);return[{content:e.value,style:{"text-align":t?"right":"left",direction:n},colspan:2},{}]},getNMoreRow(e,t,n){const r=t?t.get("Object.ChartTooltip.NMore",e):`+${e} more`;return[{content:r,style:{"font-weight":"bold","text-align":n?"right":"left",direction:Xg.detectTextDirection(r)},colspan:2},{}]},getSeparatorRow:()=>[{content:"",style:{"background-image":"linear-gradient(transparent 8px, rgba(255, 255, 255, 0.4) 8px, rgba(255, 255, 255, 0.4) 9.2px, transparent 9.2px)",height:"17px"},colspan:2},{}],getColorRow(e,t,n){const r=Xg.detectTextDirection(t.color.label),i=n?[":",t.color.label]:[t.color.label,":"],o=Xg.detectTextDirection(t.color.value);return[{content:i,style:{"text-align":n?"right":"left",direction:r}},{content:n?[t.color.value,Jg.getColorSymbol(e,t)]:[Jg.getColorSymbol(e,t),t.color.value],style:{"text-align":n?"left":"right",direction:o,"vertical-align":"middle"}}]},getMeasureRow(e,t,n,r,i=!1){const o=Xg.detectTextDirection(e.label),a=r?[":",e.label]:[e.label,":"],s=Xg.detectTextDirection(e.value);let l;return l=i?r?[e.value,Jg.getColorSymbol(t,n)]:[Jg.getColorSymbol(t,n),e.value]:[e.value],[{content:a,style:{"text-align":r?"right":"left",direction:o}},{content:l,style:{"text-align":r?"left":"right",direction:s,"vertical-align":"middle"}}]}};function Qg(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Zg(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ey(){}var ty=.7,ny=1/ty,ry="\\s*([+-]?\\d+)\\s*",iy="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",oy="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ay=/^#([0-9a-f]{3,8})$/,sy=new RegExp(`^rgb\\(${ry},${ry},${ry}\\)$`),ly=new RegExp(`^rgb\\(${oy},${oy},${oy}\\)$`),uy=new RegExp(`^rgba\\(${ry},${ry},${ry},${iy}\\)$`),cy=new RegExp(`^rgba\\(${oy},${oy},${oy},${iy}\\)$`),dy=new RegExp(`^hsl\\(${iy},${oy},${oy}\\)$`),fy=new RegExp(`^hsla\\(${iy},${oy},${oy},${iy}\\)$`),hy={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function py(){return this.rgb().formatHex()}function my(){return this.rgb().formatRgb()}function gy(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=ay.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?yy(t):3===n?new xy(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?vy(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?vy(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=sy.exec(e))?new xy(t[1],t[2],t[3],1):(t=ly.exec(e))?new xy(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=uy.exec(e))?vy(t[1],t[2],t[3],t[4]):(t=cy.exec(e))?vy(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=dy.exec(e))?qy(t[1],t[2]/100,t[3]/100,1):(t=fy.exec(e))?qy(t[1],t[2]/100,t[3]/100,t[4]):hy.hasOwnProperty(e)?yy(hy[e]):"transparent"===e?new xy(NaN,NaN,NaN,0):null}function yy(e){return new xy(e>>16&255,e>>8&255,255&e,1)}function vy(e,t,n,r){return r<=0&&(e=t=n=NaN),new xy(e,t,n,r)}function by(e){return e instanceof ey||(e=gy(e)),e?new xy((e=e.rgb()).r,e.g,e.b,e.opacity):new xy}function xy(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function wy(){return`#${Cy(this.r)}${Cy(this.g)}${Cy(this.b)}`}function Sy(){const e=My(this.opacity);return`${1===e?"rgb(":"rgba("}${ky(this.r)}, ${ky(this.g)}, ${ky(this.b)}${1===e?")":`, ${e})`}`}function My(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ky(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Cy(e){return((e=ky(e))<16?"0":"")+e.toString(16)}function qy(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Dy(e,t,n,r)}function Ey(e){if(e instanceof Dy)return new Dy(e.h,e.s,e.l,e.opacity);if(e instanceof ey||(e=gy(e)),!e)return new Dy;if(e instanceof Dy)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new Dy(a,s,l,e.opacity)}function Dy(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Ty(e){return(e=(e||0)%360)<0?e+360:e}function Ny(e){return Math.max(0,Math.min(1,e||0))}function Oy(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Qg(ey,gy,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:py,formatHex:py,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ey(this).formatHsl()},formatRgb:my,toString:my}),Qg(xy,(function(e,t,n,r){return 1===arguments.length?by(e):new xy(e,t,n,null==r?1:r)}),Zg(ey,{brighter(e){return e=null==e?ny:Math.pow(ny,e),new xy(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?ty:Math.pow(ty,e),new xy(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new xy(ky(this.r),ky(this.g),ky(this.b),My(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:wy,formatHex:wy,formatHex8:function(){return`#${Cy(this.r)}${Cy(this.g)}${Cy(this.b)}${Cy(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Sy,toString:Sy})),Qg(Dy,(function(e,t,n,r){return 1===arguments.length?Ey(e):new Dy(e,t,n,null==r?1:r)}),Zg(ey,{brighter(e){return e=null==e?ny:Math.pow(ny,e),new Dy(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?ty:Math.pow(ty,e),new Dy(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new xy(Oy(e>=240?e-240:e+120,i,r),Oy(e,i,r),Oy(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Dy(Ty(this.h),Ny(this.s),Ny(this.l),My(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=My(this.opacity);return`${1===e?"hsl(":"hsla("}${Ty(this.h)}, ${100*Ny(this.s)}%, ${100*Ny(this.l)}%${1===e?")":`, ${e})`}`}}));const Ay=Math.PI/180,_y=180/Math.PI,Ly=.96422,Iy=1,Ry=.82521,Py=4/29,zy=6/29,Fy=3*zy*zy,jy=zy*zy*zy;function By(e){if(e instanceof Hy)return new Hy(e.l,e.a,e.b,e.opacity);if(e instanceof Ky)return Gy(e);e instanceof xy||(e=by(e));var t,n,r=Wy(e.r),i=Wy(e.g),o=Wy(e.b),a=Vy((.2225045*r+.7168786*i+.0606169*o)/Iy);return r===i&&i===o?t=n=a:(t=Vy((.4360747*r+.3850649*i+.1430804*o)/Ly),n=Vy((.0139322*r+.0971045*i+.7141733*o)/Ry)),new Hy(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Hy(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Vy(e){return e>jy?Math.pow(e,1/3):e/Fy+Py}function $y(e){return e>zy?e*e*e:Fy*(e-Py)}function Uy(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Wy(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Yy(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Ky)return new Ky(e.h,e.c,e.l,e.opacity);if(e instanceof Hy||(e=By(e)),0===e.a&&0===e.b)return new Ky(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*_y;return new Ky(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Ky(e,t,n,null==r?1:r)}function Ky(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Gy(e){if(isNaN(e.h))return new Hy(e.l,0,0,e.opacity);var t=e.h*Ay;return new Hy(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Qg(Hy,(function(e,t,n,r){return 1===arguments.length?By(e):new Hy(e,t,n,null==r?1:r)}),Zg(ey,{brighter(e){return new Hy(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Hy(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new xy(Uy(3.1338561*(t=Ly*$y(t))-1.6168667*(e=Iy*$y(e))-.4906146*(n=Ry*$y(n))),Uy(-.9787684*t+1.9161415*e+.033454*n),Uy(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Qg(Ky,Yy,Zg(ey,{brighter(e){return new Ky(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Ky(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Gy(this).rgb()}}));var Xy={isDark:function(e){return Yy(e).l<70}};function Jy(e){const t=e.qDef;!0===t.autoSort&&t.qSortCriterias.forEach((e=>{e.qSortByNumeric=1,e.qSortByAscii=1}))}function Qy(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Zy(e){return 1===e.length&&(e=function(e){return function(t,n){return Qy(e(t),n)}}(e)),{left:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){var o=r+i>>>1;e(t[o],n)<0?r=o+1:i=o}return r},right:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){var o=r+i>>>1;e(t[o],n)>0?i=o:r=o+1}return r}}}var ev=Zy(Qy).right,tv=Math.sqrt(50),nv=Math.sqrt(10),rv=Math.sqrt(2);function iv(e,t,n){var r=(t-e)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=tv?10:o>=nv?5:o>=rv?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=tv?10:o>=nv?5:o>=rv?2:1)}function ov(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=tv?i*=10:o>=nv?i*=5:o>=rv&&(i*=2),t<e?-i:i}function av(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}var sv="$";function lv(){}function uv(e,t){var n=new lv;if(e instanceof lv)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var r,i=-1,o=e.length;if(null==t)for(;++i<o;)n.set(i,e[i]);else for(;++i<o;)n.set(t(r=e[i],i,e),r)}else if(e)for(var a in e)n.set(a,e[a]);return n}function cv(){}lv.prototype=uv.prototype={constructor:lv,has:function(e){return sv+e in this},get:function(e){return this[sv+e]},set:function(e,t){return this[sv+e]=t,this},remove:function(e){var t=sv+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===sv&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===sv&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===sv&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===sv&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===sv&&++e;return e},empty:function(){for(var e in this)if(e[0]===sv)return!1;return!0},each:function(e){for(var t in this)t[0]===sv&&e(this[t],t.slice(1),this)}};var dv=uv.prototype;cv.prototype={constructor:cv,has:dv.has,add:function(e){return this[sv+(e+="")]=e,this},remove:dv.remove,clear:dv.clear,values:dv.keys,size:dv.size,empty:dv.empty,each:dv.each};var fv=Array.prototype,hv=fv.map,pv=fv.slice;function mv(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function gv(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function yv(){}var vv=.7,bv=1/vv,xv="\\s*([+-]?\\d+)\\s*",wv="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Sv="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Mv=/^#([0-9a-f]{3})$/,kv=/^#([0-9a-f]{6})$/,Cv=new RegExp("^rgb\\("+[xv,xv,xv]+"\\)$"),qv=new RegExp("^rgb\\("+[Sv,Sv,Sv]+"\\)$"),Ev=new RegExp("^rgba\\("+[xv,xv,xv,wv]+"\\)$"),Dv=new RegExp("^rgba\\("+[Sv,Sv,Sv,wv]+"\\)$"),Tv=new RegExp("^hsl\\("+[wv,Sv,Sv]+"\\)$"),Nv=new RegExp("^hsla\\("+[wv,Sv,Sv,wv]+"\\)$"),Ov={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Av(e){var t;return e=(e+"").trim().toLowerCase(),(t=Mv.exec(e))?new Pv((t=parseInt(t[1],16))>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):(t=kv.exec(e))?_v(parseInt(t[1],16)):(t=Cv.exec(e))?new Pv(t[1],t[2],t[3],1):(t=qv.exec(e))?new Pv(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Ev.exec(e))?Lv(t[1],t[2],t[3],t[4]):(t=Dv.exec(e))?Lv(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Tv.exec(e))?Fv(t[1],t[2]/100,t[3]/100,1):(t=Nv.exec(e))?Fv(t[1],t[2]/100,t[3]/100,t[4]):Ov.hasOwnProperty(e)?_v(Ov[e]):"transparent"===e?new Pv(NaN,NaN,NaN,0):null}function _v(e){return new Pv(e>>16&255,e>>8&255,255&e,1)}function Lv(e,t,n,r){return r<=0&&(e=t=n=NaN),new Pv(e,t,n,r)}function Iv(e){return e instanceof yv||(e=Av(e)),e?new Pv((e=e.rgb()).r,e.g,e.b,e.opacity):new Pv}function Rv(e,t,n,r){return 1===arguments.length?Iv(e):new Pv(e,t,n,null==r?1:r)}function Pv(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function zv(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Fv(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new jv(e,t,n,r)}function jv(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Bv(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}mv(yv,Av,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),mv(Pv,Rv,gv(yv,{brighter:function(e){return e=null==e?bv:Math.pow(bv,e),new Pv(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?vv:Math.pow(vv,e),new Pv(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function(){return"#"+zv(this.r)+zv(this.g)+zv(this.b)},toString:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}})),mv(jv,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof jv)return new jv(e.h,e.s,e.l,e.opacity);if(e instanceof yv||(e=Av(e)),!e)return new jv;if(e instanceof jv)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new jv(a,s,l,e.opacity)}(e):new jv(e,t,n,null==r?1:r)}),gv(yv,{brighter:function(e){return e=null==e?bv:Math.pow(bv,e),new jv(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?vv:Math.pow(vv,e),new jv(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Pv(Bv(e>=240?e-240:e+120,i,r),Bv(e,i,r),Bv(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var Hv=Math.PI/180,Vv=180/Math.PI,$v=.96422,Uv=1,Wv=.82521,Yv=4/29,Kv=6/29,Gv=3*Kv*Kv,Xv=Kv*Kv*Kv;function Jv(e){if(e instanceof Qv)return new Qv(e.l,e.a,e.b,e.opacity);if(e instanceof rb){if(isNaN(e.h))return new Qv(e.l,0,0,e.opacity);var t=e.h*Hv;return new Qv(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}e instanceof Pv||(e=Iv(e));var n,r,i=nb(e.r),o=nb(e.g),a=nb(e.b),s=Zv((.2225045*i+.7168786*o+.0606169*a)/Uv);return i===o&&o===a?n=r=s:(n=Zv((.4360747*i+.3850649*o+.1430804*a)/$v),r=Zv((.0139322*i+.0971045*o+.7141733*a)/Wv)),new Qv(116*s-16,500*(n-s),200*(s-r),e.opacity)}function Qv(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Zv(e){return e>Xv?Math.pow(e,1/3):e/Gv+Yv}function eb(e){return e>Kv?e*e*e:Gv*(e-Yv)}function tb(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function nb(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function rb(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}mv(Qv,(function(e,t,n,r){return 1===arguments.length?Jv(e):new Qv(e,t,n,null==r?1:r)}),gv(yv,{brighter:function(e){return new Qv(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new Qv(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new Pv(tb(3.1338561*(t=$v*eb(t))-1.6168667*(e=Uv*eb(e))-.4906146*(n=Wv*eb(n))),tb(-.9787684*t+1.9161415*e+.033454*n),tb(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),mv(rb,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof rb)return new rb(e.h,e.c,e.l,e.opacity);if(e instanceof Qv||(e=Jv(e)),0===e.a&&0===e.b)return new rb(NaN,0,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Vv;return new rb(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new rb(e,t,n,null==r?1:r)}),gv(yv,{brighter:function(e){return new rb(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new rb(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return Jv(this).rgb()}}));var ib=-.14861,ob=1.78277,ab=-.29227,sb=-.90649,lb=1.97294,ub=lb*sb,cb=lb*ob,db=ob*ab-sb*ib;function fb(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof hb)return new hb(e.h,e.s,e.l,e.opacity);e instanceof Pv||(e=Iv(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(db*r+ub*t-cb*n)/(db+ub-cb),o=r-i,a=(lb*(n-i)-ab*o)/sb,s=Math.sqrt(a*a+o*o)/(lb*i*(1-i)),l=s?Math.atan2(a,o)*Vv-120:NaN;return new hb(l<0?l+360:l,s,i,e.opacity)}(e):new hb(e,t,n,null==r?1:r)}function hb(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function pb(e){return function(){return e}}function mb(e,t){return function(n){return e+n*t}}function gb(e){return 1==(e=+e)?yb:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):pb(isNaN(t)?n:t)}}function yb(e,t){var n=t-e;return n?mb(e,n):pb(isNaN(e)?t:e)}mv(hb,fb,gv(yv,{brighter:function(e){return e=null==e?bv:Math.pow(bv,e),new hb(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?vv:Math.pow(vv,e),new hb(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*Hv,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new Pv(255*(t+n*(ib*r+ob*i)),255*(t+n*(ab*r+sb*i)),255*(t+n*(lb*r)),this.opacity)}}));var vb=function e(t){var n=gb(t);function r(e,t){var r=n((e=Rv(e)).r,(t=Rv(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=yb(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function bb(e,t){var n,r=t?t.length:0,i=e?Math.min(r,e.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=qb(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<i;++n)a[n]=o[n](e);return a}}function xb(e,t){var n=new Date;return t-=e=+e,function(r){return n.setTime(e+t*r),n}}function wb(e,t){return t-=e=+e,function(n){return e+t*n}}function Sb(e,t){var n,r={},i={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=qb(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}}var Mb=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,kb=new RegExp(Mb.source,"g");function Cb(e,t){var n,r,i,o=Mb.lastIndex=kb.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(n=Mb.exec(e))&&(r=kb.exec(t));)(i=r.index)>o&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:wb(n,r)})),o=kb.lastIndex;return o<t.length&&(i=t.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,r=0;r<t;++r)s[(n=l[r]).i]=n.x(e);return s.join("")})}function qb(e,t){var n,r=typeof t;return null==t||"boolean"===r?pb(t):("number"===r?wb:"string"===r?(n=Av(t))?(t=n,vb):Cb:t instanceof Av?vb:t instanceof Date?xb:Array.isArray(t)?bb:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?Sb:wb)(e,t)}function Eb(e,t){return t-=e=+e,function(n){return Math.round(e+t*n)}}function Db(e){return function t(n){function r(t,r){var i=e((t=fb(t)).h,(r=fb(r)).h),o=yb(t.s,r.s),a=yb(t.l,r.l),s=yb(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=o(e),t.l=a(Math.pow(e,n)),t.opacity=s(e),t+""}}return n=+n,r.gamma=t,r}(1)}function Tb(e){return+e}Db((function(e,t){var n=t-e;return n?mb(e,n>180||n<-180?n-360*Math.round(n/360):n):pb(isNaN(e)?t:e)})),Db(yb);var Nb=[0,1];function Ob(e){return e}function Ab(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function _b(e){var t,n=e[0],r=e[e.length-1];return n>r&&(t=n,n=r,r=t),function(e){return Math.max(n,Math.min(r,e))}}function Lb(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=Ab(i,r),o=n(a,o)):(r=Ab(r,i),o=n(o,a)),function(e){return o(r(e))}}function Ib(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=Ab(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(t){var n=ev(e,t,1,r)-1;return o[n](i[n](t))}}function Rb(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Pb(e,t){return function(){var e,t,n,r,i,o,a=Nb,s=Nb,l=qb,u=Ob;function c(){return r=Math.min(a.length,s.length)>2?Ib:Lb,i=o=null,d}function d(t){return isNaN(t=+t)?n:(i||(i=r(a.map(e),s,l)))(e(u(t)))}return d.invert=function(n){return u(t((o||(o=r(s,a.map(e),wb)))(n)))},d.domain=function(e){return arguments.length?(a=hv.call(e,Tb),u===Ob||(u=_b(a)),c()):a.slice()},d.range=function(e){return arguments.length?(s=pv.call(e),c()):s.slice()},d.rangeRound=function(e){return s=pv.call(e),l=Eb,c()},d.clamp=function(e){return arguments.length?(u=e?_b(a):Ob,d):u!==Ob},d.interpolate=function(e){return arguments.length?(l=e,c()):l},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,c()}}()(e,t)}function zb(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Fb(e){return(e=zb(Math.abs(e)))?e[1]:NaN}var jb,Bb=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Hb(e){return new Vb(e)}function Vb(e){if(!(t=Bb.exec(e)))throw new Error("invalid format: "+e);var t;this.fill=t[1]||" ",this.align=t[2]||">",this.sign=t[3]||"-",this.symbol=t[4]||"",this.zero=!!t[5],this.width=t[6]&&+t[6],this.comma=!!t[7],this.precision=t[8]&&+t[8].slice(1),this.trim=!!t[9],this.type=t[10]||""}function $b(e,t){var n=zb(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}Hb.prototype=Vb.prototype,Vb.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Ub={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return $b(100*e,t)},r:$b,s:function(e,t){var n=zb(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(jb=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+zb(e,Math.max(0,t+o-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function Wb(e){return e}var Yb,Kb,Gb,Xb=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Jb(e){var t,n,r=e.grouping&&e.thousands?(t=e.grouping,n=e.thousands,function(e,r){for(var i=e.length,o=[],a=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(e.substring(i-=s,i+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}):Wb,i=e.currency,o=e.decimal,a=e.numerals?function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(e.numerals):Wb,s=e.percent||"%";function l(e){var t=(e=Hb(e)).fill,n=e.align,l=e.sign,u=e.symbol,c=e.zero,d=e.width,f=e.comma,h=e.precision,p=e.trim,m=e.type;"n"===m?(f=!0,m="g"):Ub[m]||(null==h&&(h=12),p=!0,m="g"),(c||"0"===t&&"="===n)&&(c=!0,t="0",n="=");var g="$"===u?i[0]:"#"===u&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",y="$"===u?i[1]:/[%p]/.test(m)?s:"",v=Ub[m],b=/[defgprs%]/.test(m);function x(e){var i,s,u,x=g,w=y;if("c"===m)w=v(e)+w,e="";else{var S=(e=+e)<0;if(e=v(Math.abs(e),h),p&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(i>0){if(!+e[r])break e;i=0}}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),S&&0==+e&&(S=!1),x=(S?"("===l?l:"-":"-"===l||"("===l?"":l)+x,w=("s"===m?Xb[8+jb/3]:"")+w+(S&&"("===l?")":""),b)for(i=-1,s=e.length;++i<s;)if(48>(u=e.charCodeAt(i))||u>57){w=(46===u?o+e.slice(i+1):e.slice(i))+w,e=e.slice(0,i);break}}f&&!c&&(e=r(e,1/0));var M=x.length+e.length+w.length,k=M<d?new Array(d-M+1).join(t):"";switch(f&&c&&(e=r(k+e,k.length?d-w.length:1/0),k=""),n){case"<":e=x+e+w+k;break;case"=":e=x+k+e+w;break;case"^":e=k.slice(0,M=k.length>>1)+x+e+w+k.slice(M);break;default:e=k+x+e+w}return a(e)}return h=null==h?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,h)):Math.max(0,Math.min(20,h)),x.toString=function(){return e+""},x}return{format:l,formatPrefix:function(e,t){var n=l(((e=Hb(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(Fb(t)/3))),i=Math.pow(10,-r),o=Xb[8+r/3];return function(e){return n(i*e)+o}}}}function Qb(e,t,n,r){var i,o=ov(e,t,n);switch((r=Hb(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(i=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Fb(t)/3)))-Fb(Math.abs(e)))}(o,a))||(r.precision=i),Gb(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Fb(t)-Fb(e))+1}(o,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(e){return Math.max(0,-Fb(Math.abs(e)))}(o))||(r.precision=i-2*("%"===r.type))}return Kb(r)}function Zb(e){var t=e.domain;return e.ticks=function(e){var n=t();return function(e,t,n){var r,i,o,a,s=-1;if(n=+n,(e=+e)==(t=+t)&&n>0)return[e];if((r=t<e)&&(i=e,e=t,t=i),0===(a=iv(e,t,n))||!isFinite(a))return[];if(a>0)for(e=Math.ceil(e/a),t=Math.floor(t/a),o=new Array(i=Math.ceil(t-e+1));++s<i;)o[s]=(e+s)*a;else for(e=Math.floor(e*a),t=Math.ceil(t*a),o=new Array(i=Math.ceil(e-t+1));++s<i;)o[s]=(e-s)/a;return r&&o.reverse(),o}(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return Qb(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,i=t(),o=0,a=i.length-1,s=i[o],l=i[a];return l<s&&(r=s,s=l,l=r,r=o,o=a,a=r),(r=iv(s,l,n))>0?r=iv(s=Math.floor(s/r)*r,l=Math.ceil(l/r)*r,n):r<0&&(r=iv(s=Math.ceil(s*r)/r,l=Math.floor(l*r)/r,n)),r>0?(i[o]=Math.floor(s/r)*r,i[a]=Math.ceil(l/r)*r,t(i)):r<0&&(i[o]=Math.ceil(s*r)/r,i[a]=Math.floor(l*r)/r,t(i)),e},e}function ex(){var e=Pb(Ob,Ob);return e.copy=function(){return Rb(e,ex())},av.apply(e,arguments),Zb(e)}!function(e){Yb=Jb(e),Kb=Yb.format,Gb=Yb.formatPrefix}({decimal:".",thousands:",",grouping:[3],currency:["$",""]});var tx=new Date,nx=new Date;function rx(e,t,n,r){function i(t){return e(t=new Date(+t)),t}return i.floor=i,i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},i.range=function(n,r,o){var a,s=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return s;do{s.push(a=new Date(+n)),t(n,o),e(n)}while(a<n&&n<r);return s},i.filter=function(n){return rx((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(i.count=function(t,r){return tx.setTime(+t),nx.setTime(+r),e(tx),e(nx),Math.floor(n(tx,nx))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e==0}:function(t){return i.count(0,t)%e==0}):i:null}),i}var ix=rx((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));ix.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?rx((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):ix:null},ix.range;var ox=1e3,ax=6e4,sx=36e5,lx=864e5,ux=6048e5,cx=rx((function(e){e.setTime(Math.floor(e/ox)*ox)}),(function(e,t){e.setTime(+e+t*ox)}),(function(e,t){return(t-e)/ox}),(function(e){return e.getUTCSeconds()}));cx.range;var dx=rx((function(e){e.setTime(Math.floor(e/ax)*ax)}),(function(e,t){e.setTime(+e+t*ax)}),(function(e,t){return(t-e)/ax}),(function(e){return e.getMinutes()}));dx.range;var fx=rx((function(e){var t=e.getTimezoneOffset()*ax%sx;t<0&&(t+=sx),e.setTime(Math.floor((+e-t)/sx)*sx+t)}),(function(e,t){e.setTime(+e+t*sx)}),(function(e,t){return(t-e)/sx}),(function(e){return e.getHours()}));fx.range;var hx=rx((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ax)/lx}),(function(e){return e.getDate()-1}));function px(e){return rx((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ax)/ux}))}hx.range;var mx=px(0),gx=px(1),yx=px(2),vx=px(3),bx=px(4),xx=px(5),wx=px(6);mx.range,gx.range,yx.range,vx.range,bx.range,xx.range,wx.range;var Sx=rx((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()}));Sx.range;var Mx=rx((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));Mx.every=function(e){return isFinite(e=Math.floor(e))&&e>0?rx((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null},Mx.range;var kx=rx((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*ax)}),(function(e,t){return(t-e)/ax}),(function(e){return e.getUTCMinutes()}));kx.range;var Cx=rx((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*sx)}),(function(e,t){return(t-e)/sx}),(function(e){return e.getUTCHours()}));Cx.range;var qx=rx((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/lx}),(function(e){return e.getUTCDate()-1}));function Ex(e){return rx((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/ux}))}qx.range;var Dx=Ex(0),Tx=Ex(1),Nx=Ex(2),Ox=Ex(3),Ax=Ex(4),_x=Ex(5),Lx=Ex(6);Dx.range,Tx.range,Nx.range,Ox.range,Ax.range,_x.range,Lx.range;var Ix=rx((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()}));Ix.range;var Rx=rx((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));function Px(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function zx(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Fx(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}Rx.every=function(e){return isFinite(e=Math.floor(e))&&e>0?rx((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null},Rx.range;var jx,Bx,Hx,Vx={"-":"",_:" ",0:"0"},$x=/^\s*\d+/,Ux=/^%/,Wx=/[\\^$*+?|[\]().{}]/g;function Yx(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function Kx(e){return e.replace(Wx,"\\$&")}function Gx(e){return new RegExp("^(?:"+e.map(Kx).join("|")+")","i")}function Xx(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function Jx(e,t,n){var r=$x.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Qx(e,t,n){var r=$x.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Zx(e,t,n){var r=$x.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function ew(e,t,n){var r=$x.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function tw(e,t,n){var r=$x.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function nw(e,t,n){var r=$x.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function rw(e,t,n){var r=$x.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function iw(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function ow(e,t,n){var r=$x.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function aw(e,t,n){var r=$x.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function sw(e,t,n){var r=$x.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function lw(e,t,n){var r=$x.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function uw(e,t,n){var r=$x.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function cw(e,t,n){var r=$x.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function dw(e,t,n){var r=$x.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function fw(e,t,n){var r=$x.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function hw(e,t,n){var r=Ux.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function pw(e,t,n){var r=$x.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function mw(e,t,n){var r=$x.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function gw(e,t){return Yx(e.getDate(),t,2)}function yw(e,t){return Yx(e.getHours(),t,2)}function vw(e,t){return Yx(e.getHours()%12||12,t,2)}function bw(e,t){return Yx(1+hx.count(Mx(e),e),t,3)}function xw(e,t){return Yx(e.getMilliseconds(),t,3)}function ww(e,t){return xw(e,t)+"000"}function Sw(e,t){return Yx(e.getMonth()+1,t,2)}function Mw(e,t){return Yx(e.getMinutes(),t,2)}function kw(e,t){return Yx(e.getSeconds(),t,2)}function Cw(e){var t=e.getDay();return 0===t?7:t}function qw(e,t){return Yx(mx.count(Mx(e),e),t,2)}function Ew(e,t){var n=e.getDay();return e=n>=4||0===n?bx(e):bx.ceil(e),Yx(bx.count(Mx(e),e)+(4===Mx(e).getDay()),t,2)}function Dw(e){return e.getDay()}function Tw(e,t){return Yx(gx.count(Mx(e),e),t,2)}function Nw(e,t){return Yx(e.getFullYear()%100,t,2)}function Ow(e,t){return Yx(e.getFullYear()%1e4,t,4)}function Aw(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Yx(t/60|0,"0",2)+Yx(t%60,"0",2)}function _w(e,t){return Yx(e.getUTCDate(),t,2)}function Lw(e,t){return Yx(e.getUTCHours(),t,2)}function Iw(e,t){return Yx(e.getUTCHours()%12||12,t,2)}function Rw(e,t){return Yx(1+qx.count(Rx(e),e),t,3)}function Pw(e,t){return Yx(e.getUTCMilliseconds(),t,3)}function zw(e,t){return Pw(e,t)+"000"}function Fw(e,t){return Yx(e.getUTCMonth()+1,t,2)}function jw(e,t){return Yx(e.getUTCMinutes(),t,2)}function Bw(e,t){return Yx(e.getUTCSeconds(),t,2)}function Hw(e){var t=e.getUTCDay();return 0===t?7:t}function Vw(e,t){return Yx(Dx.count(Rx(e),e),t,2)}function $w(e,t){var n=e.getUTCDay();return e=n>=4||0===n?Ax(e):Ax.ceil(e),Yx(Ax.count(Rx(e),e)+(4===Rx(e).getUTCDay()),t,2)}function Uw(e){return e.getUTCDay()}function Ww(e,t){return Yx(Tx.count(Rx(e),e),t,2)}function Yw(e,t){return Yx(e.getUTCFullYear()%100,t,2)}function Kw(e,t){return Yx(e.getUTCFullYear()%1e4,t,4)}function Gw(){return"+0000"}function Xw(){return"%"}function Jw(e){return+e}function Qw(e){return Math.floor(+e/1e3)}!function(e){jx=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,u=Gx(i),c=Xx(i),d=Gx(o),f=Xx(o),h=Gx(a),p=Xx(a),m=Gx(s),g=Xx(s),y=Gx(l),v=Xx(l),b={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:gw,e:gw,f:ww,H:yw,I:vw,j:bw,L:xw,m:Sw,M:Mw,p:function(e){return i[+(e.getHours()>=12)]},Q:Jw,s:Qw,S:kw,u:Cw,U:qw,V:Ew,w:Dw,W:Tw,x:null,X:null,y:Nw,Y:Ow,Z:Aw,"%":Xw},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:_w,e:_w,f:zw,H:Lw,I:Iw,j:Rw,L:Pw,m:Fw,M:jw,p:function(e){return i[+(e.getUTCHours()>=12)]},Q:Jw,s:Qw,S:Bw,u:Hw,U:Vw,V:$w,w:Uw,W:Ww,x:null,X:null,y:Yw,Y:Kw,Z:Gw,"%":Xw},w={a:function(e,t,n){var r=h.exec(t.slice(n));return r?(e.w=p[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=v[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=g[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return k(e,t,n,r)},d:aw,e:aw,f:fw,H:lw,I:lw,j:sw,L:dw,m:ow,M:uw,p:function(e,t,n){var r=u.exec(t.slice(n));return r?(e.p=c[r[0].toLowerCase()],n+r[0].length):-1},Q:pw,s:mw,S:cw,u:Qx,U:Zx,V:ew,w:Jx,W:tw,x:function(e,t,r){return k(e,n,t,r)},X:function(e,t,n){return k(e,r,t,n)},y:rw,Y:nw,Z:iw,"%":hw};function S(e,t){return function(n){var r,i,o,a=[],s=-1,l=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++s<u;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(i=Vx[r=e.charAt(++s)])?r=e.charAt(++s):i="e"===r?" ":"0",(o=t[r])&&(r=o(n,i)),a.push(r),l=s+1);return a.push(e.slice(l,s)),a.join("")}}function M(e,t){return function(n){var r,i,o=Fx(1900);if(k(o,e,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("p"in o&&(o.H=o.H%12+12*o.p),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=zx(Fx(o.y))).getUTCDay(),r=i>4||0===i?Tx.ceil(r):Tx(r),r=qx.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=t(Fx(o.y))).getDay(),r=i>4||0===i?gx.ceil(r):gx(r),r=hx.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?zx(Fx(o.y)).getUTCDay():t(Fx(o.y)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,zx(o)):t(o)}}function k(e,t,n,r){for(var i,o,a=0,s=t.length,l=n.length;a<s;){if(r>=l)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=w[i in Vx?t.charAt(a++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=S(n,b),b.X=S(r,b),b.c=S(t,b),x.x=S(n,x),x.X=S(r,x),x.c=S(t,x),{format:function(e){var t=S(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=M(e+="",Px);return t.toString=function(){return e},t},utcFormat:function(e){var t=S(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=M(e,zx);return t.toString=function(){return e},t}}}(e),jx.format,jx.parse,Bx=jx.utcFormat,Hx=jx.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var Zw="%Y-%m-%dT%H:%M:%S.%LZ";Date.prototype.toISOString||Bx(Zw),+new Date("2000-01-01T00:00:00.000Z")||Hx(Zw);var eS=1e3,tS=60*eS,nS=60*tS,rS=24*nS,iS=7*rS,oS=30*rS,aS=365*rS;function sS(e){return new Date(e)}function lS(e){return e instanceof Date?+e:+new Date(+e)}function uS(e,t,n,r,i,o,a,s,l){var u=Pb(Ob,Ob),c=u.invert,d=u.domain,f=l(".%L"),h=l(":%S"),p=l("%I:%M"),m=l("%I %p"),g=l("%a %d"),y=l("%b %d"),v=l("%B"),b=l("%Y"),x=[[a,1,eS],[a,5,5*eS],[a,15,15*eS],[a,30,30*eS],[o,1,tS],[o,5,5*tS],[o,15,15*tS],[o,30,30*tS],[i,1,nS],[i,3,3*nS],[i,6,6*nS],[i,12,12*nS],[r,1,rS],[r,2,2*rS],[n,1,iS],[t,1,oS],[t,3,3*oS],[e,1,aS]];function w(s){return(a(s)<s?f:o(s)<s?h:i(s)<s?p:r(s)<s?m:t(s)<s?n(s)<s?g:y:e(s)<s?v:b)(s)}function S(t,n,r,i){if(null==t&&(t=10),"number"==typeof t){var o=Math.abs(r-n)/t,a=Zy((function(e){return e[2]})).right(x,o);a===x.length?(i=ov(n/aS,r/aS,t),t=e):a?(i=(a=x[o/x[a-1][2]<x[a][2]/o?a-1:a])[1],t=a[0]):(i=Math.max(ov(n,r,t),1),t=s)}return null==i?t:t.every(i)}return u.invert=function(e){return new Date(c(e))},u.domain=function(e){return arguments.length?d(hv.call(e,lS)):d().map(sS)},u.ticks=function(e,t){var n,r=d(),i=r[0],o=r[r.length-1],a=o<i;return a&&(n=i,i=o,o=n),n=(n=S(e,i,o,t))?n.range(i,o+1):[],a?n.reverse():n},u.tickFormat=function(e,t){return null==t?w:l(t)},u.nice=function(e,t){var n=d();return(e=S(e,n[0],n[n.length-1],t))?d(function(e,t){var n,r=0,i=(e=e.slice()).length-1,o=e[r],a=e[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),e[r]=t.floor(o),e[i]=t.ceil(a),e}(n,e)):u},u.copy=function(){return Rb(u,uS(e,t,n,r,i,o,a,s,l))},u}function cS(){return av.apply(uS(Rx,Ix,Dx,qx,Cx,kx,cx,ix,Bx).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}const dS={horizontal:{major:"width",minor:"height",start:"left",end:"right",shadow:{startOffset:"12px 0",endOffset:"-12px 0"}},vertical:{major:"height",minor:"width",start:"top",end:"bottom",shadow:{startOffset:"0 12px",endOffset:"0 -12px"}}},fS=e=>`${e} 12px -12px inset rgba(0, 0, 0, 0.0625)`;var hS={defaultSettings:{settings:{orientation:"horizontal",rtl:!1,range:()=>[0,1]}},renderer:"dom",render(e){const{range:t,orientation:n,rtl:r}=this.settings.settings,[i,o]=t(),a=Math.abs(i)<1e-15,s=Math.abs(o-1)<1e-15,l=(e=>{const t=dS[e];return{base:{position:"absolute",[t.major]:12,[t.minor]:"100%"},towardsStart:{[t.start]:0,[t.end]:"auto",boxShadow:fS(t.shadow.startOffset)},towardsEnd:{[t.start]:"auto",[t.end]:0,boxShadow:fS(t.shadow.endOffset)}}})(n),u="horizontal"===n&&r,c=[];return a||c.push(e("div",{style:{...l.base,...u?l.towardsEnd:l.towardsStart},class:"scroll-hint--towards-start"})),s||c.push(e("div",{style:{...l.base,...u?l.towardsStart:l.towardsEnd},class:"scroll-hint--towards-end"})),c}};function pS({viewState:e,viewCache:t,layoutService:n,dockService:r,rtl:i}){return!n.meta.isSnapshot&&{key:"scroll-hint",type:"scroll-hint",settings:{orientation:r.meta.major.orientation,rtl:i,range:()=>function({layoutService:e,viewState:t,viewCache:n}){return e.meta.isContinuous?function(e,t){const n=e.get("zoom"),r=t.get("continuousMin"),i=t.get("continuousMax");return[(n.min-r)/(i-r),(n.max-r)/(i-r)]}(t,n):function(e){return e.get("viewRange")}(t)}({layoutService:n,viewState:e,viewCache:t})}}}let mS;function gS(){mS=mS||document.createElement("canvas").getContext("2d")}const yS={measureTextWidth(e){gS();const{width:t}=mS.measureText(e);return t},lineWrap(e,t,n,r){let i,o;gS();const a=e?e.split(/\n+|\r+|\r\n/):[],s=[];let l,u,c,d,f=e?e.split(/\s+/):[],h=a[0];if("number"!=typeof t||t<=0)return[e];if("number"==typeof r&&a.length>=r)return a.slice(0,r);for(n&&(mS.font=n),o=0;o<a.length;o++){for(d=a[o]||"",f=d.split(/\s+/),[h]=f,c="",i=1;i<f.length;i++)if(l=`${h} ${f[i]}`,u=yS.measureTextWidth(l),u>t&&("number"!=typeof r||r>s.length)?(s.push(h),h=f[i]):h=l,"number"==typeof r&&s.length>=r){c=f.slice(i+1).join(" ");break}"number"!=typeof r||s.length<r?s.push(h):s[Math.max(0,s.length-1)]=`${s[Math.max(0,s.length-1)]||""} ${h} ${c}`}return s},wordWrap(e,t,n,r,i){if(gS(),!e||!e.length)return[];n&&(mS.font=n);let o=[];const a=e.slice();let s,l,u,c;if(a.filter((e=>!!e)),"number"!=typeof t||t<0)return e.slice();for(c=0;c<a.length;c++)u=a[c],l=null,u&&(u.length<=1||yS.measureTextWidth(u)<=t?o.push(u):(s=yS.splitWord(u,t,void 0,r-o.length),s.length<=1?o.push(s[0]):(l=s.pop(),o=o.concat(s),a[c+1]?yS.measureTextWidth(`${l} ${a[c+1]}`)>t&&o.length+a.length-c<=r?a.splice(c+1,0,l):a[c+1]=`${l} ${a[c+1]}`:a.push(l))));return o.forEach(((e,t,n)=>{n[t]=e?e.trim():e})),o.length>r?(o=o.splice(0,r),o[o.length-1]=yS.truncate(o[o.length-1],t,n,i).text):(u=o[o.length-1],u&&u.length>1&&yS.measureTextWidth(u)>t&&(o[o.length-1]=yS.truncate(u,t,n,i).text)),o},truncate(e,t,n,r="…"){gS();let i,o,a,s,l=e;const u=yS.measureTextWidth("i"),c=Math.ceil(t/u);if(n&&(mS.font=n),e&&t){if(yS.measureTextWidth(l)>t){for(i=Math.min(c,l.length);i>0;i--)if(o=l.substring(0,i-1),a=o.trim()+r,yS.measureTextWidth(a)<=t){s=l.substring(i-1),l=a;break}i||(s=l,l="…")}}else s=void 0;return{text:l,rest:s}},isNumber:e=>"number"==typeof e&&Number.isFinite(e),explodeWord(e,t,n,r){let i;gS();let o,a=e,s="",l=[];if(yS.isNumber(n)&&n<=1)return[e];const u=Math.ceil(t/r);for(i=Math.min(e.length,u);i>0&&(a=e.substring(0,i),o=e.substring(i-1,i)," "===o?a=e.substring(0,i-1):a+="-",s=e.substring(i),!(yS.measureTextWidth(a)<=t));i--);return(!i&&!a||yS.measureTextWidth(a)>t)&&(a=e.substring(0,1),s=e.substring(1)),l.push(a),s?(yS.measureTextWidth(s)>t?(s=yS.explodeWord(s,t,n-1,r),l=l.concat(s)):l.push(s),l.filter((e=>""!==e.trim()))):l},splitWord:(e,t,n,r)=>(gS(),e&&t?(n&&(mS.font=n),yS.explodeWord(e,t,r,Math.max(1,yS.measureTextWidth("i")))):[]),wrapText(e,t,n,r,i){let o;return Number.isNaN(t)?[e]:(o=r>1?yS.lineWrap(e,t,n,r):[e],o=yS.wordWrap(o,t,n,r,i),o)},getFontHeight:e=>(gS(),e&&(mS.font=e),1.5*yS.measureTextWidth("m")),tokenize(e,t,n,r,i,o,a=1){gS(),t&&(mS.font=t);const s=yS.getFontHeight(),l=a*s;let u=[],c=0,d=[];if(o<s)return[];const f=o?Math.max(1,Math.floor(o/l)):r||1;return Array.isArray(r)?(r.forEach((e=>{c+=Number.isNaN(e)||e<=0?0:e})),r.forEach((e=>{u.push(Number.isNaN(e)||e<=0?f-c:e)}))):u=[Number.isNaN(r)||r<=0?f:Math.min(f,r)],Array.isArray(e)?e.forEach(((e,n)=>{d.length<f&&(d=d.concat(yS.wrapText(e,i,t,u[n])))})):d=yS.wrapText(e,i,t,u[0],n),d}},vS={getDefaultSettings:({size:e=10,fill:t="#999",alignment:n}={})=>({show:!0,type:"n-polygon",fill:t,stroke:"#000",strokeWidth:0,size:e,sides:3,startAngle:-90,alignment:n}),createOob({oob:e,dockValue:t,boxCenter:n,rendWidth:r,rendHeight:i,flipXY:o,symbol:a}){let s="x",l="y",u=r,c=i,d=t<.5?90:-90;return o&&(s="y",l="x",u=i,c=r,d=t<.5?180:0),a(Cg({},e,{[s]:n*u,[l]:Math.max(e.size/2,Math.min(t*c,c-e.size/2)),startAngle:d}))}},bS=Cg.bind(null,!0),xS={},{isArray:wS}=Array;function SS(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function MS(e){return void 0===e}function kS(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function CS(e,t){const n=t.substring(1).split("/").slice(0,-1);let r;return n.forEach(((t,i)=>{if(i===n.length)return;r=+t;const o=isNaN(r)?{}:[];e[r||t]=MS(e[r||t])?o:e[t],e=e[r||t]})),e}function qS(e,t){return t?Object.keys(e).filter((t=>void 0!==e[t])).length:Object.keys(e).length}function ES(e,t,n){let r=!0;if(SS(e)&&SS(t))return qS(e,n)===qS(t,n)&&(Object.keys(e).forEach((i=>{ES(e[i],t[i],n)||(r=!1)})),r);if(wS(e)&&wS(t)){if(e.length!==t.length)return!1;for(let r=0,i=e.length;r<i;r+=1)if(!ES(e[r],t[r],n))return!1;return!0}return e===t}xS.compare=ES,xS.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((i=>{const o=function(e){return e?bS({},{val:e}).val:e}(t[i]),a=e[i],s=`${n}/${i}`;ES(o,a)||kS(t,i)||(MS(a)?r.push({op:"add",path:s,value:o}):SS(o)&&SS(a)?r=r.concat(xS.generate(a,o,s)):wS(o)&&wS(a)?r=r.concat(function(e,t,n){let r=[];const i=e.slice();let o=-1;function a(e,t,n){if(e[n]&&MS(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(let n=0,r=e.length;n<r;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(ES(t,i))return r;if(!MS(t[0])&&MS(t[0].qInfo)||0===t.length)return r.push({op:"replace",path:n,value:t}),r;for(let e=i.length-1;e>=0;e-=1)o=a(t,i[e].qInfo&&i[e].qInfo.qId,e),-1===o?(r.push({op:"remove",path:`${n}/${e}`}),i.splice(e,1)):r=r.concat(xS.generate(i[e],t[o],`${n}/${e}`));for(let e=0,s=t.length;e<s;e+=1)o=a(i,t[e].qInfo&&t[e].qInfo.qId),-1===o?(r.push({op:"add",path:`${n}/${e}`,value:t[e]}),i.splice(e,0,t[e])):o!==e&&(r.push({op:"move",path:`${n}/${e}`,from:`${n}/${o}`}),i.splice(e,0,i.splice(o,1)[0]));return r}(a,o,s)):r.push({op:"replace",path:`${n}/${i}`,value:o}))})),Object.keys(e).forEach((i=>{MS(t[i])&&!kS(e,i)&&r.push({op:"remove",path:`${n}/${i}`})})),r},xS.apply=function(e,t){t.forEach((t=>{let n=CS(e,t.path),r=t.path.split("/").splice(-1)[0],i=r&&isNaN(+r)?n[r]:n[+r]||n;const o=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,i=e),"add"===t.op||"replace"===t.op)if(wS(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(wS(i)&&wS(t.value)){const e=t.value.slice();i.length=0,i.push(...e)}else if(SS(i)&&SS(t.value))a=i,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!kS(a,e)&&delete a[e]})),bS(i,t.value);else{if(!n)throw new Error("Patchee is not an object we can patch");n[r]=t.value}else if("move"===t.op){const i=CS(e,t.from);wS(n)?n.splice(+r,0,i.splice(+o,1)[0]):(n[r]=i[o],delete i[o])}else"remove"===t.op&&(wS(n)?n.splice(+r,1):delete n[r]);var a}))},xS.clone=function(e){return bS({},e)},xS.createPatch=function(e,t,n){const r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},xS.updateObject=function(e,t){Object.keys(e).length?xS.apply(e,xS.generate(e,t)):bS(e,t)};const DS=Math.log(10);function TS(e){return 10**e}const NS={pow10:TS,log:(e,t)=>e<=0||t<=0?NaN:Math.log(e)/Math.log(t),log10:e=>e<=0?NaN:Math.log(e)/DS,eliminateFloatingError(e){const t=Math.round(e);return Math.abs(e-t)<1e-12?t:e},getNiceNumber(e){let t;if(0===e)return 0;const n=Math.floor(Math.log(Math.abs(e))/DS),r=e/TS(n);return t=r<=1?1:r<=2?2:r<=5?5:10,t*TS(n)*(e<0?-1:1)},getSmallNiceNumber(e){let t,n;if(0===e)return 0;t=Math.floor(Math.log(Math.abs(e))/DS);const r=e/TS(t);return r<1?(n=5,t--):n=r<2?1:r<5?2:5,n*TS(t)*(e<0?-1:1)},getMagnitude(e){if(0===e)return 0;return TS(Math.floor(Math.log(Math.abs(e))/DS))},getFraction(e){if(0===e)return 0;return e/TS(Math.floor(Math.log(Math.abs(e))/DS))},getGoodNumber(e){let t;if(0===e)return 0;const n=Math.floor(Math.log(Math.abs(e))/DS),r=e/TS(n);return t=Math.ceil(r),7!==t&&9!==t||t++,r>1&&r<=1.5?t=1.5:r>2&&r<=2.5&&(t=2.5),t*TS(n)*(e<0?-1:1)},getValueWithOffset:(e,t=0)=>e+Math.abs(e)*t,isNumber:e=>"number"==typeof e&&!Number.isNaN(e)},OS=[[2,4,6],[2,4],[3]],AS=[,[,,[[1,2]],[[1,2,3],[1,3]],[[1,2,4],[1,4]],[[1,2,4],[1,5]],[[1,2,4,6],[2,4,6],[1,3,6],[1,6]],[[1,2,4,6],[2,4,6],[1,3,6],[1,7]],[[1,2,4,8],[2,4,8],[1,8]],[[1,2,4,8],[2,4,8],[1,3,9],[1,9]],[[1,2,4,6,10],[1,2,4,10],[1,3,10],[3,10],[1,10]]],[,,,[[2,3]],[[2,3,4],[2,4]],[[2,3,4],[2,4],[2,5]],[[2,4,6],[2,6]],[[2,4,6],[2,6],[2,7]],[[2,4,8],[2,8]],[[2,4,8],[2,8],[2,9]],[[2,4,6,10],[2,4,10],[5,10],[3,10]]],[,,,,[[3,4]],[[3,4,5],[3,5]],[[3,4,5,6],[3,6]],[[3,4,5,6],[3,5,7],[3,7]],[[3,4,5,6,8],[3,5,7],[4,8],[3,8]],[[3,4,5,6,8],[3,4,6,9],[3,4,6,8],[3,6,9],[4,8],[3,9]],[[4,6,10],[5,10],[3,10]]],[,,,,,[[4,5]],[[4,5,6],[4,6]],[[4,5,6,7],[4,5,6],[4,6]],[[4,5,6,7,8],[4,5,6,7],[4,6,8],[4,8]],[[4,5,6,7,8],[4,6,9],[4,6,8],[4,8]],[[4,6,10],[5,7,9],[5,10],[4,10]]],[,,,,,,[[5,6]],[[5,6,7],[5,7]],[[5,6,7,8],[5,6,7],[6,8]],[[5,6,7,8,9],[5,6,7,8],[5,7,9],[5,9]],[[6,8,10],[5,10]]],[,,,,,,,[[6,7]],[[6,7,8],[6,8]],[[6,7,8,9],[6,7,8],[6,9]],[[6,7,8,9,10],[6,8,10],[6,10]]],[,,,,,,,,[[7,8]],[[7,8,9],[7,9]],[[7,8,9,10],[8,10],[7,10],[7,9]]],[,,,,,,,,,[[8,9]],[[8,9,10],[8,10]]],[,,,,,,,,,,[[9,10]]]];function _S(e,t,n){const r=e?e.length:0;let i,o=void 0===t?Number.MAX_VALUE:e[0]/t;for(i=1;i<r;i++)o=Math.min(o,e[i]/e[i-1]);void 0!==n&&(o=Math.min(o,n/e[r-1])),e.splice(0,0,o)}function LS(e,t,n){let r;const i=e?e.length:0;for(r=0;r<i;r++)_S(e[r],t,n)}!function(){let e,t;for(LS(OS,1,10),e=0;e<AS.length;e++)if(AS[e])for(t=0;t<AS[e].length;t++)Array.isArray(AS[e][t])&&LS(AS[e][t])}();const IS={isInside(e,t,n,r){if(!r)return!0;const i=e.position-e.radius,o=e.position+e.radius;return i>=t&&o<=n},getCenterDistance:(e,t)=>Math.abs(e.center-t.center),getGap(e,t){const n=e.position<t.position?e:t,r=e.position<t.position?t:e;return r.position-r.radius-(n.position+n.radius)},findSegmentPositionMeetMax(e,t){const n=Math.max(0,e.max-t);return e.center-n},findSegmentPositionMeetMin(e,t){const n=Math.max(0,t-e.min);return e.center+n},findSegmentPositionMeetMinThenMax(e,t,n){const r=IS.findSegmentPositionMeetMin(e,t);return IS.findSegmentPositionMeetMax({center:r,max:r+e.radius},n)},findSegmentPositionMeetMaxThenMin(e,t,n){const r=IS.findSegmentPositionMeetMax(e,n);return IS.findSegmentPositionMeetMin({center:r,min:r-e.radius},t)},layoutPositionFromMin(e,t,n,r=0){const i=e.length-1;let o,a,s=t;for(let t=0;t<i;t++)o=e[t],a=e[t+1],o.position=IS.findSegmentPositionMeetMaxThenMin(o,s,(o.center+a.center-r)/2),s=o.position+o.radius+r/2;a.position=IS.findSegmentPositionMeetMaxThenMin(a,s,n)},adjustPositionFromMax(e,t,n,r=0){const i=e.length-1;let o,a,s;const l=Math.max(0,e[i].position+e[i].radius-n);if(0===l)return;let u,c=0;for(o=i;o>0&&(a=e[o],s=e[o-1],u=Math.max(0,IS.getGap(s,a)-r),u-=Math.max(0,c+u-l),c+=u,a.move=u,!(c>=l));o--);for(c<l&&(u=Math.max(0,s.position-s.radius-t),u-=Math.max(0,c+u-l),c+=u,s.move=u),c=0,o=0;o<=i;o++)a=e[o],c+=a.move||0,a.move=c,a.position-=c},layout(e,t,n,r=0){const i=e.length-1;if(!(i<0))if(0!==i)IS.layoutPositionFromMin(e,t,n,r),IS.adjustPositionFromMax(e,t,n,r);else{const r=e[0];r.position=IS.findSegmentPositionMeetMaxThenMin(r,t,n)}}},RS=(e,t,n,r=1)=>{const i=e.bandwidth();return n?"start"===t?i:"end"===t?i*(1-r):i*(2-r)/2:"start"===t?0:"end"===t?i*r:i*r/2},PS=e=>!1!==e.show&&0!==e.show&&"0"!==e.show,zS=e=>e.filter(PS),FS=(e,t)=>zS(Lg.getValue(e,t,[])),jS=e=>PS(e)&&(!1!==e.showValue||!1!==e.showLabel),BS=e=>e.filter(jS),HS=(e,t)=>BS(Lg.getValue(e,t,[])),VS=({refLineLayout:e,layoutService:t})=>t.meta.canBeContinuous?e.refLineExpr.value:e.refLineExpr.stringValue,$S=(e,t,n)=>{const{dimensionRefLineInfo:r}=t;if(r[e])return r[e][n]},US=({label:e,dataPages:t})=>{const{qArea:n={}}=t||{},{qTop:r,qHeight:i}=n;return void 0!==r&&void 0!==i&&void 0!==e.valueInfo&&e.valueInfo.maxOrder<r},WS=({label:e,dataPages:t})=>{const{qArea:n={}}=t||{},{qTop:r,qHeight:i}=n;return void 0!==r&&void 0!==i&&void 0!==e.valueInfo&&e.valueInfo.minOrder>=r+i},YS=({value:e,qMin:t})=>"NaN"!==t&&e<t,KS=({value:e,qMax:t})=>"NaN"!==t&&e>t,GS={isRefLineVisible:PS,getVisibleRefLines:zS,getRefLines:FS,getMeasureRefLines:e=>FS(e,"refLine.refLines"),getDimensionRefLines:(e,t)=>t?[]:FS(e,"refLine.dimRefLines"),isRefLineLabelVisible:jS,getVisibleRefLineLabels:BS,getRefLineLabels:HS,getMeasureRefLineLabels:e=>HS(e,"refLine.refLines"),getDimensionRefLineLabels:(e,t)=>t?[]:HS(e,"refLine.dimRefLines"),getScaledPosition:({scale:e,size:t,value:n,valueInfo:r,align:i,invert:o=!1,layoutService:a,isContinuous:s})=>{if(!s){const s=e.pxScale(t);let l;if(a.meta.isGroupedByMeasure)return l=RS(s,i,o,a.meta.measureCount),s([n,0])+l;if(a.meta.isGroupedByDimension){if(!r)return NaN;const{innerValues:e,numInnerValues:t,minOrder:a}=r;let u;return l=RS(s,i,o,t),e&&e.length&&(u=(({pxScale:e,value:t,innerValues:n,invert:r,minOrder:i})=>{const o=(({pxScale:e,invert:t})=>e.bandwidth()*(t?-1:1))({pxScale:e,invert:r});for(let r=0;r<n.length;r++){const{id:a,order:s}=n[r],l=e([t,a]);if(void 0!==l)return l-o*(s-i)}})({pxScale:s,value:n,innerValues:e,invert:o,minOrder:a})),(void 0===u?s(n):u)+l}return l=RS(s,i,o),s(n)+l}return e(n)},getDimensionValuesInfo:({layout:e,canBeContinuous:t,discreteModel:n,layoutService:r})=>{const{isGroupedByDimension:i}=r.meta,o={},a=Lg.getValue(e,"qHyperCube"),s="K"===a.qMode,l=n?n.query.getCurrentDataPage():Lg.getValue(a,"S"===a.qMode?"qDataPages.0":"qStackedDataPages.0",[]);const u=s?"qData.0.qSubNodes":"qMatrix",c=Lg.getValue(l,u,[]),d=((e,t)=>e?t?"qValue":"qNum":"qText")(t,s),f=(e=>e.qArea.qTop)(l);return s?(()=>{for(let e=0;e<c.length;e++){const t=c[e],n=e+f,r=t[d];o[r]||(o[r]={id:t.qElemNo,qText:t.qText,minOrder:n,maxOrder:n})}})():i?(()=>{let e;for(let t=0;t<c.length;t++){const n=c[t][0],r=c[t][1],i=t+f,a=n[d];o[a]?(o[a].minOrder=Math.min(o[a].minOrder,i),o[a].maxOrder=Math.max(o[a].maxOrder,i),o[a].innerValues[o[a].innerValues.length]={id:r.qElemNumber,order:i}):o[a]={id:n.qElemNumber,qText:n.qText,minOrder:i,maxOrder:i,innerValues:[{id:r.qElemNumber,order:i}]},0===t?0===i&&(o[a].isMinOrderOk=!0):a!==e&&(o[a].isMinOrderOk=!0,o[e].isMaxOrderOk=!0),e=a}})():(()=>{for(let e=0;e<c.length;e++){const t=c[e][0],n=e+f,r=t[d];o[r]||(o[r]={id:t.qElemNumber,qText:t.qText,minOrder:n,maxOrder:n})}})(),o},getInputValue:VS,extractInfoFromInputValue:$S,resolveValue:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const r=VS({refLineLayout:e,layoutService:n});return $S(r,t,"id")},isDiscreteMinOutOfBounds:US,isDiscreteMaxOutOfBounds:WS,isContinuousMinOutOfBounds:YS,isContinuousMaxOutOfBounds:KS,isOutOfRange:({value:e,qMin:t,qMax:n})=>YS({value:e,qMin:t})||KS({value:e,qMax:n}),isOutOfDataPages:({label:e,dataPages:t})=>e.valueInfo.isMinOrderOk&&WS({label:e,dataPages:t})||e.valueInfo.isMaxOrderOk&&US({label:e,dataPages:t}),getInvert:({orientation:e,rtl:t,isContinuous:n})=>"horizontal"===e?t:n},XS="…";function JS(e,t,n=70){for(let r=0;r<e.length;r++){const i=e[r];i.lines=yS.tokenize(i.title,t,`${XS} ${i.valueString}`,3,n),i.maxNumLines=i.lines.length}}function QS({title:e,font:t,ellipsis:n,maxNumLines:r=5,maxWidth:i=200}){const o=yS.tokenize(e,t,n,r,i),a=o.length;let s="";if(a){[s]=o;for(let e=1;e<a;e++)s=`${s}\n${o[e]}`}return s}function ZS({oobs:e,font:t,ellipsis:n,maxNumLines:r=5,maxWidth:i=200}){const o=e.map((e=>QS({title:e.title,font:t,ellipsis:`${n} ${e.valueString}`,maxNumLines:r,maxWidth:i}))),a=o.length;let s="";if(a){[s]=o;for(let e=1;e<a;e++)s=`${s}\n\n${o[e]}`}return s}function eM(e,t="value"){e.sort(((e,n)=>e[t]-n[t]))}const tM=3,nM=2;function rM({inputValue:e,inputValueLabel:t,localeInfo:n}){if(void 0===e||void 0===t||e.toString()===t)return!1;if(!n)return!0;const r=`+-${n.qDecimalSep||""}${n.qThousandSep||""}`.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&");return t.replace(new RegExp(`[0-9e${r}]`,"g"),"").length>0||function(e){if(e.indexOf("e")>-1)return!1;const t=e.indexOf("-");return-1!==t&&(e.lastIndexOf("-")!==t||0!==t)}(t)}const iM=({label:e,dataPages:t,qMin:n,qMax:r})=>{if(void 0!==n&&void 0!==r){const{inputValue:t}=e;if(GS.isContinuousMaxOutOfBounds({value:t,qMax:r}))return 1;if(GS.isContinuousMinOutOfBounds({value:t,qMin:n}))return-1}return GS.isDiscreteMaxOutOfBounds({label:e,dataPages:t})?1:GS.isDiscreteMinOutOfBounds({label:e,dataPages:t})?-1:0},oM={hasEngineFormat:rM,calculateLabelPositions({labels:e,scale:t,size:n,layoutService:r,orientation:i,rtl:o,isContinuous:a,isDimension:s}){const l=GS.getInvert({orientation:i,rtl:o,isContinuous:a}),u="S"===r.getHyperCubeValue("qMode")?"qDataPages.0":"qStackedDataPages.0",c=r.getHyperCubeValue(u),{canBeContinuous:d}=r.meta;let f,h;if(s&&d){const e=r.getLayoutValue("qHyperCube.qDimensionInfo.0");f=e.qMin,h=e.qMax}for(let i=0;i<e.length;i++){const o=e[i],{value:s,align:u,valueInfo:d}=o,p=iM({label:o,dataPages:c,qMin:f,qMax:h});o.scaledValue=1===p?l?-.1:1.1:-1===p?l?1.1:-.1:GS.getScaledPosition({scale:t,size:n,value:s,valueInfo:d,align:u,invert:l,layoutService:r,isContinuous:a}),o.center=o.scaledValue*n}},getTitle:e=>!1!==e.showValue?!1!==e.showLabel?`${e.text} ${e.valueString}`:e.valueString:!1!==e.showLabel?e.text:"",addLabelTitles({labels:e,formatter:t,isContinuous:n,canBeContinuous:r,localeInfo:i}){let o;if(n)for(let n=0;n<e.length;n++){const r=e[n],{value:a,inputValue:s,inputValueLabel:l}=r;o=rM({inputValue:s,inputValueLabel:l,localeInfo:i})?l:t?t(a):a,r.valueString=`${Xg.lrm}(${o})${Xg.lrm}`,r.title=oM.getTitle(r)}else if(r)for(let t=0;t<e.length;t++){const n=e[t],{valueText:r,inputValue:a,inputValueLabel:s}=n;o=rM({inputValue:a,inputValueLabel:s,localeInfo:i})?s:r,n.valueString=`${Xg.lrm}(${o})${Xg.lrm}`,n.title=oM.getTitle(n)}else for(let t=0;t<e.length;t++){const n=e[t];o=n.valueText,n.valueString=`${Xg.lrm}(${o})${Xg.lrm}`,n.title=oM.getTitle(n)}},measureLabelsWidth(e,t){for(let n=0;n<e.length;n++){const r=e[n];r.totalWidth=t(r.title).width}},measureLabelMaxLineWidth(e,t){const n=Math.max(...e.lines.map((e=>t(e).width)));return n},getMaxTextWidth(e){const t=e.map((e=>e.totalWidth));return Math.max(...t)},addLabelsNeighborInfo(e,t,n,r=0){const i=e.length-1;if(i<0)return;let o,a;if([o]=e,o.cMin=t,0!==i){for(let t=0;t<i;t++)o=e[t],a=e[t+1],o.cMax=(o.center+a.center-r)/2,a.cMin=o.cMax+r;a.cMax=n}else o.cMax=n},getTotalNumLines(e){let t=0;return e.forEach((e=>{t+=e.maxNumLines})),t},reduceLabelsHavingMaxNumLines(e,t,n){const r=t-1,i=e.filter((e=>e.maxNumLines===t)),o=Math.min(n,i.length);for(let e=i.length-1;e>=i.length-o;e--)i[e].maxNumLines=r},reduceTotalMaxNumLines(e,t,n){const r=Math.floor(n/t);let i=3;do{const t=oM.getTotalNumLines(e)-r;if(t<=0)return;oM.reduceLabelsHavingMaxNumLines(e,i,t),i--}while(i>1)},reduceMaxNumLines(e,t,n=0){for(let r=0;r<e.length;r++){const i=e[r];i.maxNumLines=Math.max(1,Math.min(i.maxNumLines,Math.floor((Math.max(0,i.cMax-i.cMin)+n)/t)))}},addLabelsSize(e,t,n=15,r){for(let i=0;i<e.length;i++){const o=e[i];o.width=Math.min(t,oM.measureLabelMaxLineWidth(o,r)),o.height=o.lines.length*n}},addLabelSegments(e,t){for(let n=0;n<e.length;n++){const r=e[n],{center:i}=r,o=r[t],a=o/2;r.segment={center:i,range:o,min:i-a,max:i+a,radius:a}}},addLabelsInfo({labels:e,scale:t,majorSize:n,lowerLimit:r,upperLimit:i,gap:o,font:a,maxLabelWidth:s,lineHeight:l,majorDimension:u,orientation:c,measureText:d,rtl:f,layoutService:h,isContinuous:p,isDimension:m}){const g=e.map((e=>e)),y=n;oM.calculateLabelPositions({labels:e,scale:t,size:y,layoutService:h,orientation:c,rtl:f,isContinuous:p,isDimension:m}),eM(e,"center"),oM.addLabelsNeighborInfo(e,r,i,o),JS(e,a,s),oM.reduceTotalMaxNumLines(g,l,i-(g.length-1)*o),"vertical"===c&&(oM.reduceMaxNumLines(e,l,.05*o),function(e,t,n=70){for(let r=0;r<e.length;r++){const i=e[r];i.lines.length>i.maxNumLines&&(i.lines=yS.tokenize(i.title,t,`${XS} ${i.valueString}`,i.maxNumLines,n))}}(e,a,s)),oM.addLabelsSize(e,s,l,d),oM.addLabelSegments(e,u)},createLabels({labels:e,style:t,maxLabelWidth:n,areaProps:r,area:i,lineHeight:o=15,font:a}){const{majorAxis:s,minorAxis:l,dock:u}=r,{minorCenter:c}=i,{fontSize:d,fontFamily:f,background:h}=t;let p=[];return e.forEach((e=>{const{lines:t}=e,r=t.length,i=t.map(((t,i)=>{const h={type:"text",text:t,title:QS({title:e.title,font:a,ellipsis:`… ${e.valueString}`}),dx:0,dy:0,maxWidth:n,width:n,fontSize:d,fontFamily:f,fill:e.fill,baseline:"central",anchor:"middle",value:e.value,dock:u};return h[l]=c,h[s]=e.segment.position,h.y+=(i-(r-1)/2)*o,h}));e.background&&p.push(function({minorCenter:e,majorAxis:t,minorAxis:n,dock:r,label:i,lineHeight:o,background:a}){const{lines:s}=i,{borderRadius:l=tM,padding:u={}}=a,{top:c=nM,bottom:d=nM,left:f=nM,right:h=nM}=u,p=s.length,m={type:"rect",rx:l,ry:l,fill:i.background.fill,width:i.width+(f+h),height:i.height+(c+d),value:i.value,dock:r};return m[n]=e,m[t]=i.segment.position,m.x-=i.width/2+f,m.y-=p*o/2+c,m}({minorCenter:c,majorAxis:s,minorAxis:l,dock:u,label:e,lineHeight:o,background:h})),p=p.concat(i)})),p}};function aM(e,t,n){let r;const i=typeof t;if("string"===i||"object"===i)r=e.formatter(t);else if(void 0!==n&&n.data){const e=n.data()&&n.data().fields;r=e&&e[0]?e[0].formatter():null}return r}function sM(e,t,n){return"top"===e||"bottom"===e?function(e,t){const{font:n,lineHeight:r,top:i,bottom:o,maxLabelWidth:a}=t;let s=1;return oM.getMaxTextWidth(e)>a&&(JS(e,n,a),s=Math.max(...e.map((e=>e.lines.length)))),s*r+i+o}(t,n):function(e,t){const{left:n,right:r,maxLabelWidth:i}=t;return Math.min(i,oM.getMaxTextWidth(e))+n+r}(t,n)}function lM(e,t){return t?e.domain():[0,1]}function uM(e,t,n,r="value"){let i=e.filter((e=>e[r]>=t));i=i.filter((e=>e[r]<=n));const o=e.filter((e=>e[r]<t)),a=e.filter((e=>e[r]>n));return{filteredLabels:i,minOobs:o,maxOobs:a,numMinOobs:o.length,numMaxOobs:a.length}}function cM(e){let t,n=0;for(let r=1;r<10;r++)t=e(r),n=Math.max(n,Math.sqrt(t.width*t.width+t.height*t.height));return t=e("9+"),[n,Math.max(n,Math.sqrt(t.width*t.width+t.height*t.height))]}function dM(e,t){return e>9?t[1]:t[0]}function fM({alignment:e,dockValue:t,oobs:n,style:r,rect:i,symbol:o,position:a,areaProps:s,radius:l,font:u}){const c=n?n.length:0;if(c<1)return[];const{flipXY:d,majorAxis:f,minorAxis:h,minorDimension:p,dock:m}=s,g=i[p],y=vS.createOob({oob:vS.getDefaultSettings({size:r.size,fill:r.fill,alignment:e}),dockValue:t,boxCenter:.5,rendWidth:i.width,rendHeight:i.height,flipXY:d,symbol:o});y.dock=m;const v=`c${f}`,b=`c${h}`,x={type:"circle",r:l,stroke:"transparent",fill:r.text.background.fill,strokeWidth:0,dock:m};x[b]=g/2,x[v]=a;const w={type:"text",text:c>9?"9+":c,title:ZS({oobs:n,font:u,ellipsis:"…"}),dx:0,dy:0,maxWidth:g,width:g,fontSize:r.text.fontSize,fontFamily:r.text.fontFamily,fill:r.text.fill,baseline:"central",anchor:"middle",dock:m};return w[h]=g/2,w[f]=a,[y,x,w]}function hM(e){const t=`normal ${e.fontSize} '${e.fontFamily}'`;return{font:t,lineHeight:yS.getFontHeight(t)*(e.lineHeightMultiplicator||1),gap:e.gap||12,maxLabelWidth:e.maxWidth||75,top:e.padding.top||0,bottom:e.padding.bottom||0,left:e.padding.left||0,right:e.padding.right||0}}const pM=e=>e.map((e=>({...e,value:"function"==typeof e.value?e.value():e.value,valueText:"function"==typeof e.valueText?e.valueText():e.valueText,valueInfo:"function"==typeof e.valueInfo?e.valueInfo():e.valueInfo})));var mM={require:["renderer","chart","symbol"],defaultSettings:{layout:{displayOrder:0,prioOrder:0}},preferredSize(){const{scale:e}=this,{style:t,layoutService:n,isContinuous:r,localeInfo:i}=this.settings,o=!!r||n.meta.canBeContinuous,a=pM(this.settings.labels),s=aM(this.chart,this.settings.formatter,e);oM.addLabelTitles({labels:a,formatter:s,isContinuous:r,canBeContinuous:o,localeInfo:i});const{numMaxOobs:l,numMinOobs:u,filteredLabels:c}=(({labels:e,scale:t,isContinuous:n,canBeContinuous:r,layoutService:i})=>{if(n){const[r,i]=lM(t,n);return uM(e,r,i)}if(r){const t=i.getLayoutValue("qHyperCube.qDimensionInfo.0"),{qMin:n,qMax:r}=t;if("NaN"!==n&&"NaN"!==r)return uM(e,n,r,"inputValue")}return{filteredLabels:e}})({labels:a,scale:e,isContinuous:r,canBeContinuous:o,layoutService:n});let d;if(this.measureText=e=>this.renderer.measureText({text:e,fontSize:t.label.fontSize,fontFamily:t.label.fontFamily}),c&&c.length){const e=hM(t.label),{dock:n}=this.settings.layout;return oM.measureLabelsWidth(c,this.measureText),d=sM(n,c,e),d}const f=cM(this.measureText),h=l?dM(l,f):0,p=u?dM(u,f):0;return d=Math.max(h,p),d},render(){const{scale:e}=this;if(!e.domain().length)return;const{symbol:t}=this,{style:n,layoutService:r,theme:i,isContinuous:o,isDimension:a,localeInfo:s}=this.settings,l=!!o||r.meta.canBeContinuous,u=pM(this.settings.labels),{dock:c,rtl:d}=this.settings.layout,{padding:f}=n.label,h=function(e){return"left"===e||"right"===e?(e=>({dock:e,orientation:"vertical",majorAxis:"y",minorAxis:"x",majorDimension:"height",minorDimension:"width",flipXY:!1}))(e):(e=>({dock:e,orientation:"horizontal",majorAxis:"x",minorAxis:"y",majorDimension:"width",minorDimension:"height",flipXY:!0}))(e)}(c),p=function(e,t,n){const r=e[t.minorDimension];return{minorSize:r,majorSize:e[t.majorDimension],minorCenter:"vertical"===t.orientation?(r-n.right-n.left)/2+n.left:(r-n.top-n.bottom)/2+n.top}}(this.rect,h,f),{orientation:m,majorDimension:g}=h,{majorSize:y}=p,{font:v,lineHeight:b,gap:x,maxLabelWidth:w}=hM(n.label),S=aM(this.chart,this.settings.formatter,e),M=y;oM.addLabelTitles({labels:u,formatter:S,isContinuous:o,canBeContinuous:l,localeInfo:s}),oM.calculateLabelPositions({labels:u,scale:e,size:M,layoutService:r,orientation:m,rtl:d,isContinuous:o,isDimension:a});const[k,C]=lM(e,o),{filteredLabels:q,lowerOobs:E,upperOobs:D,lowerCircleSize:T,upperCircleSize:N,lowerOobSpace:O,upperOobSpace:A}=function({labels:e,minValue:t,maxValue:n,orientation:r,rtl:i,isContinuous:o,style:a,padding:s,measureText:l,prop:u="value"}){const{maxOobs:c,minOobs:d,filteredLabels:f}=uM(e,t,n,u),h="scaledValue"!==u&&GS.getInvert({orientation:r,rtl:i,isContinuous:o}),p=function(e,t,n){return n?t:e}(d,c,h),m=function(e,t,n){return n?e:t}(d,c,h),g=p.length,y=m.length,v=cM(l),b=dM(g,v),x=dM(y,v),w=function(e,t,n,r,i){return("vertical"===r?i.top:i.left)+(e>0?t+n:0)}(g,a.oob.size,b,r,s),S=function(e,t,n,r,i){return("vertical"===r?i.bottom:i.right)+(e>0?t+n:0)}(y,a.oob.size,x,r,s);return{filteredLabels:f,lowerOobs:p,upperOobs:m,lowerCircleSize:b,upperCircleSize:x,lowerOobSpace:w,upperOobSpace:S}}({labels:u,minValue:k,maxValue:C,orientation:m,rtl:d,isContinuous:o,style:n,padding:f,measureText:this.measureText,prop:o?"value":"scaledValue"}),_=O,L=y-A;eM(E),eM(D);const I=fM({alignment:0,dockValue:0,oobs:E,style:n.oob,rect:this.rect,symbol:t,position:n.oob.size+T/2,areaProps:h,radius:T/2,font:v}),R=fM({alignment:1,dockValue:1,oobs:D,style:n.oob,rect:this.rect,symbol:t,position:y-(n.oob.size+N/2),areaProps:h,radius:N/2,font:v});oM.addLabelsInfo({labels:q,scale:e,majorSize:y,lowerLimit:_,upperLimit:L,font:v,lineHeight:b,gap:x,maxLabelWidth:w,majorDimension:g,orientation:m,measureText:this.measureText,rtl:d,layoutService:r,isContinuous:o,isDimension:a}),IS.layout(q.map((e=>e.segment)),_,L,n.label.gap);const P=q.filter((e=>IS.isInside(e.segment,_,L,o)));return oM.createLabels({labels:P,style:n.label,maxLabelWidth:w,areaProps:h,area:p,lineHeight:b,font:v,theme:i}).concat([...I,...R])}};function gM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gM(Object(n),!0).forEach((function(t){SM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vM(){vM=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,a=Object.create(o.prototype),s=new T(r||[]);return i(a,"_invoke",{value:C(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var f="suspendedStart",h="executing",p="completed",m={};function g(){}function y(){}function v(){}var b={};u(b,a,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x(N([])));w&&w!==n&&r.call(w,a)&&(b=w);var S=v.prototype=g.prototype=Object.create(b);function M(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(i,o,a,s){var l=d(e[i],e,o);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==typeof c&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(c).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var o;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return o=o?o.then(i,i):i()}})}function C(t,n,r){var i=f;return function(o,a){if(i===h)throw Error("Generator is already running");if(i===p){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var l=q(s,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===f)throw i=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=h;var u=d(t,n,r);if("normal"===u.type){if(i=r.done?p:"suspendedYield",u.arg===m)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=p,r.method="throw",r.arg=u.arg)}}}function q(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,q(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var o=d(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function N(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return y.prototype=v,i(S,"constructor",{value:v,configurable:!0}),i(v,"constructor",{value:y,configurable:!0}),y.displayName=u(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,u(e,l,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},M(k.prototype),u(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new k(c(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},M(S),u(S,l,"Generator"),u(S,a,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=N,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(D),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),D(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;D(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:N(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}function bM(e){return bM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bM(e)}function xM(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function wM(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){xM(o,r,i,a,s,"next",e)}function s(e){xM(o,r,i,a,s,"throw",e)}a(void 0)}))}}function SM(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MM(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function kM(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||qM(e,t)||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.")}()}function CM(e){return function(e){if(Array.isArray(e))return EM(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||qM(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qM(e,t){if(e){if("string"==typeof e)return EM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?EM(e,t):void 0}}function EM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var DM=["American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Source Sans Pro, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],TM=["Abril Fatface, serif","Bangers, fantasy","Bebas Neue, sans serif","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Indie Flower, fantasy","Inter, sans-serif","Lobster, fantasy","Montserrat, sans-serif","Nixie One, sans-serif","Noto Sans, sans-serif","Open Sans, sans-serif","PT Serif, serif","Pacifico, cursive","Permanent Marker, fantasy","QlikView Sans, sans-serif","Raleway, sans-serif","Rammetto One, fantasy","Roboto, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Yanone Kaffeesatz, sans-serif"];var NM=function(e){return{value:e,label:e.charAt(0).toUpperCase()+e.slice(1),groupHeader:!1,disabled:!1,styles:{fontFamily:e}}};function OM(e){var t=e.theme,n=e.translator,r=e.defaultValue,i=e.flags,o=[],a=t.getStyle("","","fontFamilies");return Array.isArray(a)&&a.length?o.push.apply(o,CM(new Set([r].concat(CM(a.map((function(e){return e.split(",").map((function(e){return e.trim()})).map((function(e){return e.replace(/\s+/g," ").trim()})).filter(Boolean).join(", ")}))))))):o.push(r),[{value:"ThemeHeader",label:n.get("properties.themeFonts"),metaText:n.get("properties.theme"),groupHeader:!0}].concat(CM(o.map((function(e){return NM(e)}))),[{value:"DefaultHeader",label:n.get("properties.allFonts"),metaText:n.get("properties.default"),groupHeader:!0}],CM(function(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?TM:DM}(i).map((function(e){return NM(e)}))))}function AM(e){var t=e.theme,n=e.translator,r=e.id,i=e.path,o=e.flags,a=function(){return t.getStyle(r,i,"fontFamily")};return{getDefaultValue:function(){return a()},getOptions:function(){return OM({theme:t,translator:n,defaultValue:a(),flags:o})}}}var _M=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],LM=function(e){return{value:e,label:e,groupHeader:!1,disabled:!1}};function IM(e){var t=e.theme,n=e.translator,r=e.id,i=e.path,o=function(){return t.getStyle(r,i,"fontSize")};return{getDefaultValue:function(){return o()},getOptions:function(){return function(e){var t=e.translator,n=e.defaultValue,r=[],i=e.theme.getStyle("","","fontSizes");return Array.isArray(i)&&i.length?r.push.apply(r,CM(new Set([n].concat(CM(i))))):r.push(n),[{value:"ThemeHeader",label:t.get("properties.themeFontSizes"),metaText:t.get("properties.theme"),groupHeader:!0}].concat(CM(r.map((function(e){return LM(e)}))),[{value:"DefaultHeader",label:t.get("properties.allFontSizes"),metaText:t.get("properties.default"),groupHeader:!0}],CM(_M.map((function(e){return LM(e)}))))}({theme:t,translator:n,defaultValue:o()})}}}function RM(e){var t=e.theme,n=e.translator,r=e.id,i=e.path;return{fontFamily:AM({theme:t,translator:n,id:r,path:i,flags:e.flags}),fontSize:IM({theme:t,translator:n,id:r,path:i})}}var PM=Object.prototype.hasOwnProperty,zM=Object.prototype.toString,FM=Object.defineProperty,jM=Object.getOwnPropertyDescriptor,BM=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===zM.call(e)},HM=function(e){if(!e||"[object Object]"!==zM.call(e))return!1;var t,n=PM.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&PM.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||PM.call(e,t)},VM=function(e,t){FM&&"__proto__"===t.name?FM(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},$M=function(e,t){if("__proto__"===t){if(!PM.call(e,t))return;if(jM)return jM(e,t).value}return e[t]},UM=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}((function e(){var t,n,r,i,o,a,s=arguments[0],l=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<u;++l)if(null!=(t=arguments[l]))for(n in t)r=$M(s,n),s!==(i=$M(t,n))&&(c&&i&&(HM(i)||(o=BM(i)))?(o?(o=!1,a=r&&BM(r)?r:[]):a=r&&HM(r)?r:{},VM(s,{name:n,newValue:e(c,a,i)})):void 0!==i&&VM(s,{name:n,newValue:i}));return s}));function WM(e,t){return{range:function(e){var n=e.resources,r=e.data,i=n.theme.palette("categorical",0===t?r.items.length:t);return r.items.map((function(e){return i[e.value%i.length]}))},valueAccessor:e.value}}function YM(e,t){return{range:function(e){var n=e.resources,r=e.data,i=n.theme.palette("categorical",0===t?r.items.length:t);return r.items.map((function(e){return i[e.row.value%i.length]}))},valueAccessor:e.value}}function KM(e,t,n,r,i){var o,a,s=i.byRow,l=i.byElemNo;if(r&&(t.input.persistent||e.hc.qDimensionInfo.length>1||void 0===n.activeDimensionIndex&&e.hc.qSize.qcy>((null===(a=(o=e.hc).qDataPages[0]||o.qStackedDataPages[0])||void 0===a?void 0:a.qArea.qHeight)||0)))return l(r,r.raw().qCardinal);if(r){var u=t.pic.extract({field:r.key(),trackBy:r.value}).length;return s(r,u)}return{}}function GM(e,t){var n=e.hc.qDimensionInfo,r=t.input.byDimDef||{activeDimensionIndex:n.length-1};if(r.activeDimensionIndex>=0){var i=n[r.activeDimensionIndex];r=i.coloring&&i.coloring.colorMapRef?{type:"libraryItem",key:i.coloring.colorMapRef,activeDimensionIndex:r.activeDimensionIndex}:{activeDimensionIndex:r.activeDimensionIndex}}return r}function XM(e,t){var n;return t.activeDimensionIndex>=0?n=e.pic.fields().filter((function(e){return"dimension"===e.type()}))[t.activeDimensionIndex]:"libraryItem"===t.type?!1===(n=t.key?e.pic.field((function(e){return e.raw().colorMapRef===t.key})):void 0)&&(n=e.pic.field((function(e){return"colorByAlternative"===e.raw().id}))):"expression"===t.type&&(n=e.pic.field((function(e){return"colorByAlternative"===e.raw().id}))),n}function JM(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function QM(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ZM(){}var ek=1/.7,tk="\\s*([+-]?\\d+)\\s*",nk="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",rk="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ik=/^#([0-9a-f]{3,8})$/,ok=new RegExp(`^rgb\\(${tk},${tk},${tk}\\)$`),ak=new RegExp(`^rgb\\(${rk},${rk},${rk}\\)$`),sk=new RegExp(`^rgba\\(${tk},${tk},${tk},${nk}\\)$`),lk=new RegExp(`^rgba\\(${rk},${rk},${rk},${nk}\\)$`),uk=new RegExp(`^hsl\\(${nk},${rk},${rk}\\)$`),ck=new RegExp(`^hsla\\(${nk},${rk},${rk},${nk}\\)$`),dk={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function fk(){return this.rgb().formatHex()}function hk(){return this.rgb().formatRgb()}function pk(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=ik.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?mk(t):3===n?new bk(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?gk(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?gk(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=ok.exec(e))?new bk(t[1],t[2],t[3],1):(t=ak.exec(e))?new bk(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=sk.exec(e))?gk(t[1],t[2],t[3],t[4]):(t=lk.exec(e))?gk(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=uk.exec(e))?Ck(t[1],t[2]/100,t[3]/100,1):(t=ck.exec(e))?Ck(t[1],t[2]/100,t[3]/100,t[4]):dk.hasOwnProperty(e)?mk(dk[e]):"transparent"===e?new bk(NaN,NaN,NaN,0):null}function mk(e){return new bk(e>>16&255,e>>8&255,255&e,1)}function gk(e,t,n,r){return r<=0&&(e=t=n=NaN),new bk(e,t,n,r)}function yk(e){return e instanceof ZM||(e=pk(e)),e?new bk((e=e.rgb()).r,e.g,e.b,e.opacity):new bk}function vk(e,t,n,r){return 1===arguments.length?yk(e):new bk(e,t,n,null==r?1:r)}function bk(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function xk(){return`#${kk(this.r)}${kk(this.g)}${kk(this.b)}`}function wk(){const e=Sk(this.opacity);return`${1===e?"rgb(":"rgba("}${Mk(this.r)}, ${Mk(this.g)}, ${Mk(this.b)}${1===e?")":`, ${e})`}`}function Sk(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Mk(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function kk(e){return((e=Mk(e))<16?"0":"")+e.toString(16)}function Ck(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ek(e,t,n,r)}function qk(e){if(e instanceof Ek)return new Ek(e.h,e.s,e.l,e.opacity);if(e instanceof ZM||(e=pk(e)),!e)return new Ek;if(e instanceof Ek)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new Ek(a,s,l,e.opacity)}function Ek(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Dk(e){return(e=(e||0)%360)<0?e+360:e}function Tk(e){return Math.max(0,Math.min(1,e||0))}function Nk(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}JM(ZM,pk,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:fk,formatHex:fk,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return qk(this).formatHsl()},formatRgb:hk,toString:hk}),JM(bk,vk,QM(ZM,{brighter(e){return e=null==e?ek:Math.pow(ek,e),new bk(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new bk(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new bk(Mk(this.r),Mk(this.g),Mk(this.b),Sk(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:xk,formatHex:xk,formatHex8:function(){return`#${kk(this.r)}${kk(this.g)}${kk(this.b)}${kk(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:wk,toString:wk})),JM(Ek,(function(e,t,n,r){return 1===arguments.length?qk(e):new Ek(e,t,n,null==r?1:r)}),QM(ZM,{brighter(e){return e=null==e?ek:Math.pow(ek,e),new Ek(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Ek(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new bk(Nk(e>=240?e-240:e+120,i,r),Nk(e,i,r),Nk(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Ek(Dk(this.h),Tk(this.s),Tk(this.l),Sk(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Sk(this.opacity);return`${1===e?"hsl(":"hsla("}${Dk(this.h)}, ${100*Tk(this.s)}%, ${100*Tk(this.l)}%${1===e?")":`, ${e})`}`}}));const Ok=Math.PI/180,Ak=180/Math.PI,_k=4/29,Lk=6/29,Ik=3*Lk*Lk;function Rk(e){if(e instanceof Pk)return new Pk(e.l,e.a,e.b,e.opacity);if(e instanceof Hk)return Vk(e);e instanceof bk||(e=yk(e));var t,n,r=Bk(e.r),i=Bk(e.g),o=Bk(e.b),a=zk((.2225045*r+.7168786*i+.0606169*o)/1);return r===i&&i===o?t=n=a:(t=zk((.4360747*r+.3850649*i+.1430804*o)/.96422),n=zk((.0139322*r+.0971045*i+.7141733*o)/.82521)),new Pk(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Pk(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function zk(e){return e>.008856451679035631?Math.pow(e,1/3):e/Ik+_k}function Fk(e){return e>Lk?e*e*e:Ik*(e-_k)}function jk(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Bk(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Hk(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Vk(e){if(isNaN(e.h))return new Pk(e.l,0,0,e.opacity);var t=e.h*Ok;return new Pk(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}JM(Pk,(function(e,t,n,r){return 1===arguments.length?Rk(e):new Pk(e,t,n,null==r?1:r)}),QM(ZM,{brighter(e){return new Pk(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Pk(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new bk(jk(3.1338561*(t=.96422*Fk(t))-1.6168667*(e=1*Fk(e))-.4906146*(n=.82521*Fk(n))),jk(-.9787684*t+1.9161415*e+.033454*n),jk(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),JM(Hk,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Hk)return new Hk(e.h,e.c,e.l,e.opacity);if(e instanceof Pk||(e=Rk(e)),0===e.a&&0===e.b)return new Hk(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Ak;return new Hk(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Hk(e,t,n,null==r?1:r)}),QM(ZM,{brighter(e){return new Hk(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Hk(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Vk(this).rgb()}}));var $k=e=>()=>e;function Uk(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):$k(isNaN(e)?t:e)}var Wk=function e(t){var n=function(e){return 1==(e=+e)?Uk:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):$k(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=vk(e)).r,(t=vk(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=Uk(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1),Yk=/^class(-pyramid)?/,Kk=function(e,t,n,r){var i=void 0!==n.min?n.min:r.min(),o=void 0!==n.max?n.max:r.max(),a=i,s=o,l=t.limits,u={},c="percent"===t.limitType?l.map((function(e){return i+(o-i)*e})):l,d=t.colors.map((function(t){return e.resolveUIColor(t)}));if(i=Math.min.apply(Math,[i].concat(CM(c))),o=Math.max.apply(Math,[o].concat(CM(c))),u.min=i,u.max=o,t.breakTypes&&-1===t.breakTypes.indexOf(!0))u.type="categorical",Object.assign(u,function(e){var t=e.min,n=e.max,r=e.limits,i=e.range,o=[],a=[];if(r.length)if(r[r.length-1]<t)a.push(t,n),o.push(i[i.length-1],i[i.length-1],i[i.length-1]);else if(r[0]>n)a.push(t,n),o.push(i[0],i[0],i[0]);else{if(r[0]>t)a.push(t),o.push(i[0]);else{a.push(t);for(var s=0;s<r.length;s++)if(t<r[s]){o.push(i[s]);break}}for(var l=0;l<r.length;l++)t<r[l]&&r[l]<n&&(a.push(r[l]),o.push(i[l]));if(r[r.length-1]<n)a.push(n),o.push(i[r.length]),o.push(i[r.length]);else{a.push(n);for(var u=0;u<r.length;u++)if(r[u]>n){o.push(i[u]),o.push(i[u]);break}}}else o.push(i[0]);return{min:t,max:n,range:o,domain:a}}({min:"percent"===t.limitType?i:a,max:"percent"===t.limitType?o:s,range:d,limits:"percent"===t.limitType?c:l}));else if(t.breakTypes){var f=t.breakTypes;u.type="continuous",u.domain=[i],u.range=[d[0]];for(var h=0;h<c.length;h+=1)if(f[h]){var p=d[h],m=d[h+1],g=Wk(p,m)(.5);u.range.push(g),u.domain.push(c[h]),h<c.length-1&&f[h+1]&&(u.range.push(d[h+1]),u.domain.push((c[h]+c[h+1])/2))}else u.range.push(d[h]),u.range.push(d[h+1]),u.domain.push(c[h]),u.domain.push(c[h]+Math.min(1e-6,(o-i)/1e6));u.range.push(d[d.length-1]),u.domain.push(o)}else u.domain=c,u.range=d;return u};function Gk(e,t,n,r,i){var o,a,s,l=0,u=[],c=(e-t)/(r+1);if(0===c)return 1;for(o=0;o<n.length;o+=1)a=.99*(n[o]-t),s=n[o]>e?Math.floor(e/c):n[o]<t?0:Math.floor(a/c),Number.isNaN(s)||(u[s]?u[s]+=1:u[s]=1);for(o=0;o<u.length;o+=1)u[o]&&(l+=1);return l<=r||l>=i?Math.max(l,r):Gk(e,t,n,r+1,i)}var Xk=function(e,t,n,r){var i,o,a=t.theme,s=t.hc,l=r.f,u={mode:"field",fieldType:"measure",field:l?l.key():void 0,reverse:n.input.reverseScheme||!1,type:"continuous",range:function(e){return e.resources.theme.palette("quant")}},c=[],d=!0;if(l){if(Number.isNaN(+l.min())||Number.isNaN(+l.max()))return{invalid:!0};(d=!("S"===(i=n.pic.raw()).qMode&&(i.qDataPages[0]&&i.qSize.qcy>i.qDataPages[0].qArea.qHeight||!i.qDataPages.length&&i.qSize.qcy>0)||"K"===i.qMode&&i.qStackedDataPages[0]&&i.qSize.qcy>i.qStackedDataPages[0].qArea.qHeight||"T"===i.qMode&&i.qSize.qcy>i.qTreeDataPages[0].qGroupSize))&&(c=n.pic.extract({field:0,props:{num:{field:l.key()},exclude:{fields:s.qDimensionInfo.map((function(e,t){return{field:"qDimensionInfo/".concat(t)}})),value:function(e){return Math.min.apply(Math,CM(e))<0}}}}).filter((function(e){return e.value>=0&&!e.exclude.value})).map((function(e){return e.num.value})).filter((function(e){return"number"==typeof e})))}if(!1===n.input.autoMinMax){if(u.min=n.input.measureMin,u.max=n.input.measureMax,u.max<u.min)return{invalid:!0}}else if(l&&!d)u.min=l.min(),u.max=l.max();else if(l){if(!c.length)return{invalid:!0};u.min=Math.min.apply(Math,CM(c)),u.max=Math.max.apply(Math,CM(c))}if(n.input.measureScheme&&(u.palettes={quant:n.input.measureScheme}),a){var f=a.getDataColorScales().filter((function(e){return e.key===n.input.measureScheme}))[0];u.type=f&&Yk.test(f.type)?"categorical":"continuous","categorical"===u.type&&(o=f.colors.some((function(e){return Array.isArray(e)}))?Math.max.apply(Math,CM(f.colors.map((function(e){return e?e.length:0})))):f.colors.length)}if("categorical"===u.type){for(var h=d?Gk(u.max,u.min,c,1,o):o,p=(u.max-u.min)/h,m=[],g=0;g<h+1;g+=1)m.push(u.min+p*g);u.domain=m,u.range=function(e){for(var t=e.resources.theme.palette("quant",h),n=Math.max(1,Math.floor(t.length/h)),r=[],i=0;i<h;i+=1)r.push(t[i*n]);return[r[0]].concat(r,[r[r.length-1]])}}return u};function Jk(e,t){var n;return t.activeMeasureIndex>=0?n=e.pic.fields().filter((function(e){return"measure"===e.type()}))[t.activeMeasureIndex]:"libraryItem"===t.type?n=e.pic.field((function(e){return e.raw().colorMapRef===t.key&&void 0!==t.key})):"expression"===t.type&&(n=e.pic.field((function(e){return"colorByAlternative"===e.raw().id}))),n||(n=e.pic.field((function(e){return void 0!==e.raw().matchMeasure})))&&(n=e.pic.fields().filter((function(e){return"measure"===e.type()}))[n.raw().matchMeasure]),n}function Qk(e){e.measureOverrides.every((function(e){return!e}))&&(e.measureOverrides=null)}function Zk(e,t){for(var n=(null==t?void 0:t.domain)||[],r=(null==t?void 0:t.range)||[],i=[],o=0;o<e.length;++o){var a=e[o];if("constant"===(null==a?void 0:a.mode)){var s=n.indexOf(o);-1===s?(n.push(o),r.push(a.primary)):r[s]=a.primary,e[o]=null}else if(a){i.push(o);var l=n.indexOf(o);-1!==l&&(n.splice(l,1),r.splice(l,1))}}return{domain:n,range:r,exclude:i}}function eC(e,t,n,r){var i,o=function(e,t,n,r){if(t.input&&!t.input.auto){if("byMeasure"===t.input.mode)return function(e,t,n){var r=t.theme,i=t.hc,o=(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).getCField,a=void 0===o?Jk:o,s=n.input.byMeasureDef||{activeMeasureIndex:0},l=a(n,s),u=Xk(0,{theme:r,hc:i},n,{f:l});if(u.invalid)return u;"expression"===s.type&&(s.activeMeasureIndex<0||void 0===s.activeMeasureIndex)&&(u.label=s.label,l&&"color.altLabel"===l.raw().labelExpRef&&(u.label=n.input.altLabel)),!u.label&&l&&(u.label=l.title());var c=s.activeMeasureIndex>=0?l:null;if(!c&&l&&void 0!==l.raw().matchMeasure&&l.raw().matchMeasure>-1&&(c=n.pic.fields().filter((function(e){return"measure"===e.type()}))[l.raw().matchMeasure]),n.input.useMeasureGradient&&"libraryItem"===s.type)if(c){var d=c.raw().coloring;d&&d.gradient&&UM(u,Kk(e,d.gradient,u,c))}else u.auxiliary=s;return u}(e,n,t);if("byDimension"===t.input.mode)return function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r.getCDef,o=void 0===i?GM:i,a=r.getCByField,s=void 0===a?XM:a,l=r.getPersistence,u=void 0===l?KM:l,c=o(t,n),d=s(n,c),f=d?d.raw():{},h=n&&n.pic?n.pic.raw():{};if(f.qError||f.qSize&&0===f.qSize.qcy&&!h.qHasOtherValues)return{invalid:!0};var p={mode:"field",fieldType:"dimension",type:"categorical",field:d?d.key():void 0,isFieldLocked:f.qLocked};return("expression"===c.type||c.activeDimensionIndex<0)&&(p.label=c.label,"color.altLabel"===f.labelExpRef&&(p.label=n.input.altLabel)),!p.label&&d&&(p.label=d.title()),n.input.dimensionScheme&&(p.palettes={categorical:n.input.dimensionScheme}),n.input.useDimColVal&&"libraryItem"===c.type&&(p.auxiliary=c),UM(p,u(t,n,c,d,{byRow:YM,byElemNo:WM})),p}(e,n,t);if("byExpression"===t.input.mode)return function(e,t,n,r){var i=t.hc,o=t.theme,a=t.translator,s=n.pic.field((function(e){return"colorByExpression"===e.raw().id}));if(!s||!s.raw().qFallbackTitle&&!n.input.colorExpression||!(Number.isFinite(s.raw().qMin)&&Number.isFinite(s.raw().qMax)||n.input.expressionIsColor))return{mode:"constant",type:"constant",primary:r.nil};if(n.input.expressionIsColor)return{mode:"field",fieldType:"expression",field:s?s.key():void 0,type:"color"};var l=Xk(0,{hc:i,theme:o},n,{f:s});return l.invalid||(l.label=n.input.expressionLabel||a.get("Object.ChartTooltip.ColorExpression")),l}(0,n,t,r);if("byMultiple"===t.input.mode||"primary"===t.input.mode)return function(e,t,n,r){var i=t.hc,o=t.theme,a=t.translator,s=n.input.useBaseColors;if(("byMultiple"===n.input.mode||"primary"===n.input.mode&&"measure"===n.input.useBaseColors)&&i.qMeasureInfo.length>1&&(s="measure"),"measure"===s){var l=[],u=[];"measure"===n.input.useBaseColors&&i.qMeasureInfo.forEach((function(t,n){if(t.baseColor||t.coloring&&t.coloring.baseColor){l.push(n);var i=e.resolveUIColor(t.baseColor||t.coloring.baseColor);"none"===i?u.push(r.primary):u.push(i)}}));var c=n.input.dimensionScheme?{categorical:n.input.dimensionScheme}:void 0,d=o?o.getDataColorPalettes()[0]:void 0;return"measure"===n.input.useBaseColors&&d&&(c={categorical:d.key}),{mode:"measure",type:"categorical",palettes:c,label:a?a.get("Common.Measures"):void 0,explicit:l.length?{domain:l,range:u}:void 0}}if("dimension"===s){var f=[],h=[];return i.qDimensionInfo.forEach((function(t,n){if(t.baseColor||t.coloring&&t.coloring.baseColor){f.push(n);var i=e.resolveUIColor(t.baseColor||t.coloring.baseColor);"none"===i?h.push(r.primary):h.push(i)}})),{mode:"dimension",type:"categorical",field:f.length?f[0]:void 0,explicit:f.length?{domain:f,range:h}:void 0}}var p=r.primary;if(void 0!==n.input.paletteColor)n.input.paletteColor&&(p=e.resolveUIColor(n.input.paletteColor));else{var m=n.input.singleColor;"number"!=typeof m||Number.isNaN(m)||(p=["#b0afae","#7b7a78","#545352","#4477aa","#7db8da","#b6d7ea","#46c646","#f93f17","#ffcf02","#276e27","#ffffff","#000000"][m])}return{mode:"constant",type:"constant",primary:p}}(e,n,t,r)}return{}}(e,t,n,r);return null!==(i=t.input)&&void 0!==i&&i.measureOverrides?(o.measureOverrides=t.input.measureOverrides.map((function(n,i){return function(e){var t,n=e.cm,r=e.defaults,i=e.index,o=e.input,a=e.pic;if(!o||!o.on)return null;var s=null!==(t=o.mode)&&void 0!==t?t:"primary";return"primary"===s?function(e,t,n){var r=n.primary;return void 0!==t.paletteColor&&t.paletteColor&&(r=e.resolveUIColor(t.paletteColor)),yM(yM({},n),{},{mode:"constant",type:"constant",primary:r})}(n,o,r):"byExpression"===s?function(e,t,n){var r="qMeasureInfo/".concat(e,"/"),i=t.field((function(e){return e.id().startsWith(r)&&"colorByMeasureExpression"===e.raw().id})),o=i;return yM(yM({},n),{},o?{mode:"field",fieldType:"expression",field:i?i.key():void 0,type:"color"}:{mode:"constant",type:"constant",primary:n.nil})}(i,a,r):null}({cm:e,input:n,defaults:r,index:i,pic:t.pic})})),function(e,t){var n,r,i,o=t.translator;if(Qk(e),1===(null===(n=e.measureOverrides)||void 0===n?void 0:n.length))return e.measureOverrides[0];if("measure"===e.mode&&e.measureOverrides&&(e.explicit=Zk(e.measureOverrides,e.explicit),Qk(e)),null!==(r=e.measureOverrides)&&void 0!==r&&r.every((function(e){return"constant"===(null==e?void 0:e.mode)}))){var a={mode:"measure",type:"categorical",label:null==o?void 0:o.get("Common.Measures")};return a.explicit=Zk(e.measureOverrides),a}return null!==(i=e.measureOverrides)&&void 0!==i&&i.every((function(e){return e}))?{invalid:!0,measureOverrides:e.measureOverrides}:e}(o,n)):o}var tC=function(e,t){var n=e.fieldType,r={};if(t)if("measure"===n){var i=t.coloring;i&&(r.measureGradient=i.gradient)}else if("dimension"===n){var o=t[0],a=t[1];o&&(r.legendDataPage=o),a&&(r.dimValsData=a.colorMap)}return r},nC=function(e){throw e.isHandled=!0,e},rC=function(e,t){var n=t.layout,r=t.app;return n&&n.snapshotData?n.snapshotData.content&&n.snapshotData.content.chartData&&n.snapshotData.content.chartData.dimValsData?Promise.resolve({colorMap:n.snapshotData.content.chartData.dimValsData}):Promise.reject():r&&r.getObject?r.getObject("ColorMapModel_".concat(e)).then((function(e){return e.getLayout()})):Promise.reject()},iC=function(e,t){var n=t.layout,r=t.app;return n&&n.snapshotData?n.snapshotData.content&&n.snapshotData.content.chartData&&n.snapshotData.content.chartData.measureGradient?Promise.resolve({coloring:{gradient:n.snapshotData.content.chartData.measureGradient}}):Promise.reject():r&&r.getMeasure?r.getMeasure(e).then((function(e){return e.getMeasure()})):Promise.reject()},oC=function(e,t){var n=t.layout,r=t.model,i=t.app;return n&&n.snapshotData?n.snapshotData.content&&n.snapshotData.content.chartData&&n.snapshotData.content.chartData.legendDataPage?Promise.resolve(n.snapshotData.content.chartData.legendDataPage):Promise.reject():r&&r.session&&i?r.getHyperCubeData(e,[{qHeight:100,qLeft:0,qTop:0,qWidth:2}]).catch(nC):Promise.reject()};function aC(e){return function(t){return"object"===bM(t.datum[e])?t.datum[e].value:void 0}}function sC(e){return"object"===bM(e.datum.isNull)?e.datum.isNull.value:-2===e.datum.value}function lC(e){return-3===e.datum.value}var uC={TITLE:{COLOR:void 0,FONT_SIZE:"16px",FONT_FAMILY:"'Source Sans Pro', 'Arial', 'sans-serif'"},LABEL:{COLOR:void 0,FONT_SIZE:void 0,FONT_FAMILY:"'Source Sans Pro', 'Arial', 'sans-serif'"}};function cC(e){var t=e.theme,n=e.key,r=e.styleOverrides,i={title:{color:uC.TITLE.COLOR,fontSize:uC.TITLE.FONT_SIZE,fontFamily:uC.TITLE.FONT_FAMILY},label:{color:uC.LABEL.COLOR,fontSize:uC.LABEL.FONT_SIZE,fontFamily:uC.LABEL.FONT_FAMILY}};if(!t&&!r)return i;var o=r||{},a=o.title,s=o.label,l=function(e){var t=e.theme,n=e.key;return function(e,r,i,o){return void 0!==e?e:t?t.getStyle(n,r,i):o}}({theme:t,key:n});return i.title.color=l(null==a?void 0:a.color,"legend.title","color",uC.TITLE.COLOR),i.title.fontSize=l(null==a?void 0:a.fontSize,"legend.title","fontSize",uC.TITLE.FONT_SIZE),i.title.fontFamily=l(null==a?void 0:a.fontFamily,"legend.title","fontFamily",uC.TITLE.FONT_FAMILY),i.label.color=l(null==s?void 0:s.color,"legend.label","color",uC.LABEL.COLOR),i.label.fontSize=l(null==s?void 0:s.fontSize,"legend.label","fontSize",uC.LABEL.FONT_SIZE),i.label.fontFamily=l(null==s?void 0:s.fontFamily,"legend.label","fontFamily",uC.LABEL.FONT_FAMILY),i}var dC=function(e,t,n){var r=e&&e.dock||void 0;if("auto"!==r)return r||"right";if(t){var i=t.element.getBoundingClientRect();if(i.height>i.width)return"bottom"}return n?"left":"right"},fC=function(e,t,n){return!(n.invalid||"color"===n.type||"measure"===n.mode&&t.qMeasureInfo.length<=1||"dimension"===n.mode)&&("function"==typeof e.show?e.show():!1!==e.show)};function hC(e,t){var n=e.styleReference,r=e.styleOverrides,i=e.chart,o=e.rtl,a=t.legendProps,s=t.coloring,l=t.theme,u=t.hc,c=cC({theme:l,key:n,styleOverrides:r});return{layout:{minimumLayoutMode:"MEDIUM",dock:dC(a,i,o)},show:"function"==typeof a.show?function(){return fC(a,u,s)}:fC(a,u,s),renderer:"svg",mounted:function(e){e.childNodes[0].style.pointerEvents="none",e.style.overflow="hidden"},settings:{title:{show:!1!==a.showTitle,wordBreak:"break-word",maxLines:2,lineHeight:1.2,text:s.label||"",fill:c.title.color,fontSize:c.title.fontSize,fontFamily:c.title.fontFamily}}}}function pC(e,t,n){var r=[],i=[],o=function(e,t,n){return"categorical"===t.coloring.type?function(e,t,n){var r=hC(e,t);if(!r.show)return!1;var i,o=e.key,a=e.styleReference,s=e.styleOverrides,l=e.viewState,u=e.rtl,c=e.settings,d=e.style,f=t.scaleKey,h=t.theme,p=t.scales,m=cC({theme:h,key:a,styleOverrides:s}),g=r.layout.dock,y="left"===g||"right"===g?{maxLines:2,wordBreak:"break-word"}:{},v={up:"M13.6,11 L2.4,11 C2.28954305,11 2.2,10.9104569 2.2,10.8 C2.2,10.756726 2.21403557,10.7146192 2.24,10.68 L7.84,3.21333333 C7.90627417,3.12496777 8.03163444,3.10705916 8.12,3.17333333 C8.13516113,3.18470418 8.14862915,3.1981722 8.16,3.21333333 L13.76,10.68 C13.8262742,10.7683656 13.8083656,10.8937258 13.72,10.96 C13.6853808,10.9859644 13.643274,11 13.6,11 Z",down:"M2.4,4 L13.6,4 C13.7104569,4 13.8,4.08954305 13.8,4.2 C13.8,4.24327404 13.7859644,4.28538077 13.76,4.32 L8.16,11.7866667 C8.09372583,11.8750322 7.96836556,11.8929408 7.88,11.8266667 C7.86483887,11.8152958 7.85137085,11.8018278 7.84,11.7866667 L2.24,4.32 C2.17372583,4.23163444 2.19163444,4.10627417 2.28,4.04 C2.31461923,4.01403557 2.35672596,4 2.4,4 Z",left:"M11,2.4 L11,13.6 C11,13.7104569 10.9104569,13.8 10.8,13.8 C10.756726,13.8 10.7146192,13.7859644 10.68,13.76 L3.21333333,8.16 C3.12496777,8.09372583 3.10705916,7.96836556 3.17333333,7.88 C3.18470418,7.86483887 3.1981722,7.85137085 3.21333333,7.84 L10.68,2.24 C10.7683656,2.17372583 10.8937258,2.19163444 10.96,2.28 C10.9859644,2.31461923 11,2.35672596 11,2.4 Z",right:"M4,13.6 L4,2.4 C4,2.28954305 4.08954305,2.2 4.2,2.2 C4.24327404,2.2 4.28538077,2.21403557 4.32,2.24 L11.7866667,7.84 C11.8750322,7.90627417 11.8929408,8.03163444 11.8266667,8.12 C11.8152958,8.13516113 11.8018278,8.14862915 11.7866667,8.16 L4.32,13.76 C4.23163444,13.8262742 4.10627417,13.8083656 4.04,13.72 C4.01403557,13.6853808 4,13.643274 4,13.6 Z"};"dimension"===t.coloring.fieldType&&(i=function(e){return e.datum.value>=0||-3===e.datum.value});var b="".concat(f,"Legend");return UM(!0,r,{type:"legend-cat",key:"".concat(o,"-cat"),scale:b in p?b:f,settings:{layout:{scrollOffset:function(){return l?l.get("legendScrollOffset"):void 0},size:-1!==["top","bottom"].indexOf(r.layout.dock)?2:1,direction:u?"rtl":"ltr",horizontal:20},item:{show:i,label:yM({fill:m.label.color,fontSize:m.label.fontSize,fontFamily:m.label.fontFamily},y)},navigation:{disabled:n,button:{content:function(e,t){var n=t.direction;return e("i",{style:{"pointer-events":"none",fontSize:"12px",display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizelegibility",margin:"0px"}},[e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor"},[e("path",{d:v[n]})])])}}}},brush:{consume:[{context:"selection",data:["",o],style:{inactive:{opacity:.3}}}]}},{settings:c,style:d})}(e,t,n):"continuous"===t.coloring.type&&function(e,t){var n,r=e.key,i=e.styleReference,o=e.styleOverrides,a=e.rtl,s=e.settings,l=e.style,u=t.scaleKey,c=t.theme,d="".concat(u,"Range"),f=hC(e,t);if(!f.show)return!1;var h=cC({theme:c,key:i,styleOverrides:o}),p=f.layout.dock,m="right"===p||"left"===p,g=null===(n=t.scales)||void 0===n?void 0:n[d];return m&&g&&(g.invert=!0),UM(!0,f,{type:"legend-seq",key:"".concat(r,"-seq"),settings:{fill:u,major:d,length:1,tick:{fill:h.label.color,fontSize:h.label.fontSize,fontFamily:h.label.fontFamily},title:{anchor:!a||"top"!==f.layout.dock&&"bottom"!==f.layout.dock?void 0:"right",padding:parseFloat(f.settings.title.fontSize)||16}}},{settings:s,style:l})}(e,t)}(e,t,n&&n.navigationDisabled);return r.push(o),o&&"legend-cat"===o.type&&(i.push(function(e){var t=e.key,n=e.requireFailure,r=e.recognizeWith,i=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).actions;return{key:"event:tap-".concat(t),type:"Tap",requireFailure:n,recognizeWith:r,options:{event:"legendtap",interval:10,pointers:1,enable:function(e,n){var r;if(!n)return!0;if(null!=i&&null!==(r=i.interact)&&void 0!==r&&r.enabled&&!i.interact.enabled())return!1;if(!this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((function(e){return e.key==="".concat(t,"-cat")})))return!1;var o=n.srcEvent.target;return!!(o&&o.hasAttribute("data-action")&&o.hasAttribute("data-component-key"))||!(!o||!o.childNodes[0]||"BUTTON"!==o.childNodes[0].nodeName)}},events:{legendtap:function(e){e.preventDefault();var t=e.srcEvent.target;t&&t.hasAttribute("data-action")&&t.hasAttribute("data-component-key")&&this.chart.component(t.getAttribute("data-component-key")).emit(t.getAttribute("data-action"))}}}}(e,n)),i.push(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.eventName,n=e.key,r=e.requireFailure,i=e.recognizeWith,o=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).actions;return{key:"event:pan-".concat(n),type:"Pan",requireFailure:r,recognizeWith:i,options:{event:t,pointers:1,threshold:10,enable:function(e,r){var i;return this.started===t||!r||!(null!=o&&null!==(i=o.interact)&&void 0!==i&&i.enabled&&!o.interact.enabled())&&this.chart.componentsFromPoint({x:r.center.x,y:r.center.y}).some((function(e){return e.key==="".concat(n,"-cat")}))}},events:SM(SM(SM({},"".concat(t,"start"),(function(e){e.preventDefault(),this.started!==t&&(this.started=t,this.chart.component("".concat(n,"-cat")).emit("panstart",e))})),"".concat(t,"move"),(function(e){e.preventDefault(),this.chart.component("".concat(n,"-cat")).emit("panmove",e)})),"".concat(t,"end"),(function(e){e.preventDefault(),this.chart.component("".concat(n,"-cat")).emit("panend",e),this.started=!1}))}}(e,n))),{interactions:i,components:r}}var mC=function(e){return"rgba(".concat([(16711680&e)>>16,(65280&e)>>8,255&e,((4278190080&e)>>>24)/255].join(","),")")};function gC(e){var t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.auto,n=function(e){var t=yM({hc:null,colorProps:null,layout:null,theme:null},e),n={},r={auto:function(){return{mode:"primary"}},getDimensionColorMap:function(){return Promise.reject()},getMeasure:function(){return Promise.reject()},getAttributeDimension:function(){return Promise.reject()}},i={auto:function(e){return e?(r.auto=e,i):r.auto},getDimensionColorMap:function(e){return e?(r.getDimensionColorMap=e,i):r.getDimensionColorMap},getAttributeDimension:function(e){return e?(r.getAttributeDimension=e,i):r.getAttributeDimension},getMeasure:function(e){return e?(r.getMeasure=e,i):r.getMeasure},set:function(e){var i;if(!e.colorProps)throw new Error('Missing "colorProps"');if(UM(t,e),(n={pic:t.picasso.data("q")({data:t.hc,config:{localeInfo:t.localeInfo}}),input:t.colorProps}).input.auto){var o=r.auto(e.layout);n.input=UM(!0,{},n.input,o,{auto:!1});var a=t.theme?t.theme.getDataColorPalettes():[];a[0]&&(n.input.dimensionScheme=a[0].key);var s=0;n.input.byDimDef&&+n.input.byDimDef.activeDimensionIndex>=0&&(s=+n.input.byDimDef.activeDimensionIndex),t.hc&&t.hc.qDimensionInfo[s]&&t.hc.qDimensionInfo[s].coloring&&t.hc.qDimensionInfo[s].coloring.colorMapRef&&n.input.byDimDef&&(n.input.byDimDef.type="libraryItem",n.input.byDimDef.key=t.hc.qDimensionInfo[s].coloring.colorMapRef)}null!==(i=n.input.measureOverrides)&&void 0!==i&&i.every((function(e){return!e||!e.on}))&&(n.input=UM(!1,{},n.input,{measureOverrides:null}))},palettes:function(){if(!n.palettes){var e=t.theme,r=[];(e&&e.getDataColorPickerPalettes()||[]).forEach((function(e){r.push({key:"ui",colors:e.colors})})),n.palettes=r}return n.palettes},getAuxiliaryData:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/qHyperCubeDef";if(!e.auxiliary&&!/qAttrDimInfo/.test(e.field))return Promise.resolve();var i=(e.auxiliary||{}).key;if("measure"===e.fieldType)return r.getMeasure(i,t).catch((function(){}));if("dimension"===e.fieldType){var o="".concat(n,"/").concat(e.field).replace("qDimensionInfo","qDimensions").replace("qAttrDimInfo","qAttributeDimensions");return Promise.all([/qAttrDimInfo/.test(e.field)?r.getAttributeDimension(o,t).catch((function(){})):Promise.resolve(),i?r.getDimensionColorMap(i,t).catch((function(){})):Promise.resolve()])}return Promise.resolve()},getAuxiliarySettings:function(e,r){var i=this;return e.auxiliary||/qAttrDimInfo/.test(e.field)?(this.palettes(),this.getAuxiliaryData(e,r).then((function(r){if(!r)return{};if("measure"===e.fieldType){if(r.coloring&&r.coloring.gradient){var o=n.pic.field(e.field);return Kk(i,r.coloring.gradient,e,o)}return{}}if("dimension"===e.fieldType){var a={nil:e.nil,others:e.others},s=r[0],l=r[1]?r[1].colorMap:null;if(s){var u=t.picasso.data("q")({data:{qDimensionInfo:[n.pic.field(e.field).raw(),n.pic.field(e.field).raw()],qMeasureInfo:[],qDataPages:s,qInterColumnSortOrder:[0,1],qMode:"S"}});a.legendDataset=u}return l?function(e,t,n,r){var i=r.external,o=r.field,a=yM({},e);UM(a,WM(o,o.raw().qCardinal));var s=i.theme?i.theme.getDataColorPalettes()[0]:null;return t.nul&&(a.nil=n.resolveUIColor(t.nul)),t.oth&&(a.others=n.resolveUIColor(t.oth)),t.usePal?(a.palettes={categorical:t.pal},s&&!t.pal&&(a.palettes.categorical=s.key,UM(a,WM(o)))):!1===t.autoFill&&t.single?a.range=[n.resolveUIColor(t.single)]:t.autoFill&&(s&&(a.palettes={categorical:s.key}),UM(a,WM(o))),t.colors&&t.colors.length&&(a.explicit=function(e,t,n){for(var r={},i=0;i<e.length;i+=1)r[e[i].value]=e[i].baseColor;var o=[];return{domain:function(e){var i=e.data,a=[];o=[];for(var s=0;s<i.items.length;s++){var l=i.items[s],u=(l.text||l).label;r[u]&&-1===a.indexOf(l.value)&&(a.push(l.value),o.push(t.resolveUIColor(r[u])))}return a.push(-3,-2),o.push(n.others),o.push(n.nil),a},range:function(){return o}}}(t.colors,n,a)),a}(a,l,i,{external:t,field:n.pic.field(e.field)}):a}return{}}))):Promise.resolve()},resolveUIColor:function(e){if(e.index<0||void 0===e.index)return e.color;if(void 0===n.uiPalette&&(n.uiPalette=this.palettes().filter((function(e){return"ui"===e.key}))[0]||!1),!n.uiPalette)return e.color;var t="none"===n.uiPalette.colors[0]?e.index:e.index-1;return void 0===n.uiPalette.colors[t]?e.color:n.uiPalette.colors[t]},settings:function(){if(this.palettes(),!n.settings){var e={primary:"steelblue",others:"#aaa",nil:"#ddd"},r=t.theme;r&&(e=yM(yM({},e),r.getDataColorSpecials())),n.settings=UM(e,eC(this,n,t,e))}return n.settings}};return i}(e.resources).auto(t||function(){return{mode:"byDimension",persistent:!1,useDimColVal:!0,byDimDef:{activeDimensionIndex:0,type:"expression",label:""}}}).getDimensionColorMap((function(e,t){var n=t.layout,r=t.app;return rC(e,{layout:n,app:r})})).getMeasure((function(e,t){var n=t.layout,r=t.app;return iC(e,{layout:n,app:r})})).getAttributeDimension((function(e,t){var n=t.layout,r=t.model,i=t.app;return oC(e,{layout:n,model:r,app:i})}));return n.getSnapshotData=tC,n}({resources:e}),n={},r={},i=function(e){return r.settings||(e||console.warn("settings() called before auxiliarySettings()"),r.settings=t.settings()),r.settings},o={config:function(i){if(n=yM({},i),r={},!n.key)throw new Error("Missing key");t.set(yM(yM({},e),n))},auto:function(e){return e?(t.auto(e),o):t.auto()},getAuxiliarySettings:function(e){return r.auxiliarySettings?Promise.resolve(r.auxiliarySettings):t.getAuxiliarySettings(i(!0),e).then((function(e){return r.auxiliarySettings=e||{},r.settings=yM(yM({},r.settings),r.auxiliarySettings),r.scales=void 0,r.color=void 0,r.auxiliarySettings}))},getAuxiliaryData:function(){return t.getAuxiliaryData(i())},getSnapshotData:function(e){var n=i();return t.getAuxiliaryData(n,e).then((function(e){return t.getSnapshotData(n,e)}))},resolveUIColor:function(e){return t.resolveUIColor(e)},settings:function(){var e=i();return{mode:e.mode,type:e.type,label:e.label,field:e.field,fieldType:e.fieldType,nil:e.nil,others:e.others,primary:e.primary}},settingsForMeasure:function(e){var t;return(null===(t=i().measureOverrides)||void 0===t?void 0:t[e])||this.settings()},isSelectionLocked:function(e){var t=e.isMeasureSelectionLocked;return function(e,t){var n=t.isMeasureSelectionLocked;return"field"!==e.mode||("dimension"===e.fieldType?e.isFieldLocked:"measure"!==e.fieldType||n)}(i(),{isMeasureSelectionLocked:t})},palettes:function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.colorProps,n=e.coloring,r=e.theme,i=[];if(n&&n.palettes&&r){var o=n.palettes.categorical||t.dimensionScheme,a=r.getDataColorPalettes().filter((function(e){return e.key===o}))[0]||r.getDataColorPalettes()[0];o&&a&&i.push({key:"categorical",colors:a.colors});var s=n.palettes.metric||t.measureScheme,l=r.getDataColorScales().filter((function(e){return e.key===s}))[0]||r.getDataColorScales()[0];if(l){var u=l.colors[0]?l.colors:[[]].concat(CM(l.colors.slice(1)));u=Array.isArray(u[0])?u.map((function(e){return e.slice().reverse()})):u.slice().reverse(),i.push({key:"quant",colors:u})}}return i}({coloring:i(),colorProps:n.colorProps,theme:n.theme})},scales:function(){return r.scales=r.scales||function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.hc,n=e.coloring,r=e.rtl,i=e.key,o=e.source,a=e.picasso,s={},l=i;if(n){var u={override:!0,domain:n.explicit&&"function"==typeof n.explicit.domain?n.explicit.domain:[].concat(CM((n.explicit||{}).domain||[]),[-3,-2]),range:n.explicit&&"function"==typeof n.explicit.range?n.explicit.range:[].concat(CM((n.explicit||{}).range||[]),[n.others,n.nil])};if("field"===n.mode){if("dimension"===n.fieldType){var c,d=function(e){var t=e.hc,n=e.source,r=e.coloring,i={data:{extract:[{source:"dummy",field:0,filter:function(){return i.expando=t.qDataPages[0]?t.qDataPages[0].qArea.qTop:0,!1}},{source:n,field:r.field,trackBy:r.valueAccessor,reduce:"first",props:{row:{reduce:function(){return i.expando++}},text:{value:function(e){return e.qText},reduce:"first"}}}]},expando:0};return i}({hc:t,source:o,coloring:n}).data;if(n.legendDataset){var f=0,h={};a.data("q")({data:t}).extract({field:n.field,trackBy:n.valueAccessor,reduce:function(e){var t=e[0];return h[t]=f++,e[0]}}),c={source:"attrDim",extract:{field:"qDimensionInfo/0",filter:function(e){return e.qElemNumber>=0},props:{row:{value:function(e){return h[e.qElemNumber]}}}}}}var p={data:d,range:n.range,domain:n.domain,explicit:u,type:"categorical-color",label:function(e){return e.datum.text&&e.datum.text.value?e.datum.text.value:e.datum.label}};s[l]=p,c&&(s["".concat(l,"Legend")]=yM(yM({},p),{},{data:c})),t&&t.qHasOtherValues&&c&&((c||p.data).amend=[{label:t.qDimensionInfo[0].othersLabel,source:{key:"qHyperCube",field:"qDimensionInfo/0"},row:{value:-3},value:-3}])}else if("measure"===n.fieldType){var m={data:{field:n.field},min:n.min,max:n.max};s[l]=UM({},m,{type:"categorical"===n.type?"threshold-color":"sequential-color",range:n.range,domain:n.domain,invert:n.reverse}),"sequential-color"===s[l].type&&(s["".concat(l,"Range")]=UM({},m,{invert:!!r}))}else if("color"!==n.type)throw new Error("UNUSED FIELD")}else if("dimension"===n.mode){var g={data:t.qDimensionInfo.map((function(e,t){return t})),label:function(e){return t.qDimensionInfo[e.datum.value].qFallbackTitle},explicit:u,type:"categorical-color"};s[l]=g}else if("measure"===n.mode){var y={data:t.qMeasureInfo.map((function(e,t){return t})).filter((function(e){var t;return!(null!==(t=n.explicit)&&void 0!==t&&null!==(t=t.exclude)&&void 0!==t&&t.includes(e))})),label:function(e){return t.qMeasureInfo[e.datum.value].qFallbackTitle},explicit:u,type:"categorical-color"};s[l]=y}}return s}({hc:n.hc,coloring:i(),key:n.key,source:n.source,picasso:e.picasso}),r.scales},color:function(){return r.color=r.color||function(e){var t=e.coloring,n=e.scales,r=e.key,i=aC(r),o=aC("".concat(r,"IsAnOther")),a=function(e,t){var r=e.fieldType,a=e.invalid,s=e.mode,l=e.nil,u=e.others,c=e.primary,d=e.type;return a?function(e){return lC(e)||o(e)?u:l}:n[t]?function(e){return lC(e)?u:sC(e)||-2===i(e)&&"dimension"===r||"NaN"===i(e)?l:o(e)?u:e.resources.scale(t)(i(e))||u}:"constant"===s?function(e){return lC(e)||o(e)?u:sC(e)?l:c}:"color"===d?function(e){return lC(e)||o(e)?u:sC(e)?l:i(e)||u}:null},s=a(t,r);if(t.measureOverrides){var l=aC("".concat(r,"MeasureIdx")),u=t.measureOverrides.map((function(e){return e&&a(e)}));return function(e){var t=l(e);return u[t]?u[t](e):s(e)}}return s}({coloring:i(),scales:this.scales(),key:n.key}),r.color},datumProps:function(e){return function(e){var t,n,r=e.hc,i=e.coloring,o=e.scales,a=e.key,s=e.addMeasureIx,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,u=a,c=i.nil;"field"===i.mode&&i.field?t=i.field:o[a]&&"field"===i.mode&&(t=o[a].data.field||i.field),t?(n={field:t,reduce:"first"},"color"===i.type&&(n.value=function(e){return"NaN"!==e.qNum?mC(e.qNum):e.qText&&pk(e.qText)?e.qText:c})):"dimension"===i.mode?n=void 0!==i.field?i.field:r.qDimensionInfo.length-1:"measure"===i.mode&&(n=l);var d=SM({},u,n);return r.qDimensionInfo.length>1&&(d["".concat(u,"IsAnOther")]={fields:r.qDimensionInfo.map((function(e,t){return{field:"qDimensionInfo/".concat(t)}})),value:function(e){return-1!==e.indexOf(-3)}}),s&&(d["".concat(u,"MeasureIdx")]=l),d}({coloring:this.settingsForMeasure(e),scales:this.scales(),key:n.key,hc:n.hc,addMeasureIx:i().measureOverrides},e)},data:function(){var e=i(),t={key:"dummy",data:[["field"],["a"]]};return e.legendDataset?[t,{type:"q",key:"attrDim",data:e.legendDataset.raw(),config:{localeInfo:n.localeInfo}}]:[t]},legend:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.eventName,r=e.key,o=e.viewState,a=e.chart,s=e.rtl,l=e.styleReference,u=void 0===l?"object.legend":l,c=e.styleOverrides,d=e.settings,f=void 0===d?{}:d,h=e.style,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return pC({eventName:t,key:r,rtl:s,viewState:o,chart:a,styleReference:u,styleOverrides:c,settings:f,style:void 0===h?{}:h},{legendProps:n.legendProps,scaleKey:n.key,coloring:i(),theme:n.theme,hc:n.hc,scales:this.scales()},p)}};return o}var yC=function(e){return e.baseColor||e.coloring&&e.coloring.baseColor};function vC(e){var t=e.qHyperCube,n=t.qDimensionInfo,r=t.qMeasureInfo,i=n.some(yC),o=r.some(yC),a=e.color.useBaseColors;return"measure"===a&&!o||"dimension"===a&&!i?"off":a}var bC=function(e){return e.baseColor||e.coloring&&e.coloring.baseColor};function xC(e){var t,n=e.qHyperCube.qDimensionInfo.some(bC),r=e.qHyperCube.qMeasureInfo.some(bC),i=n?"dimension":void 0;return{mode:"primary",useBaseColors:null!==(t=null!=i?i:r?"measure":void 0)&&void 0!==t?t:"off",paletteColor:null}}var wC=function(){};function SC(e){var t,n,r,i,o=e.picasso,a=e.model,s=e.app,l=e.translator,u=e.layoutService,c=void 0===u?void 0:u,d=e.createConfig,f=void 0===d?wC:d,h=e.config,p=void 0===h?{}:h,m=e.custom,g=void 0===m?{}:m,y=p.localeInfo,v=p.key,b=p.theme,x=void 0===b?void 0:b,w=p.auto,S=void 0===w?void 0:w,M=p.definitionPath,k=null==c||null===(t=c.getLayout)||void 0===t?void 0:t.call(c),C={theme:x,key:v,localeInfo:y,layout:k,hc:null==c||null===(n=c.getHyperCube)||void 0===n?void 0:n.call(c),legendProps:null==c||null===(r=c.getLayoutValue)||void 0===r?void 0:r.call(c,"legend"),colorProps:yM(yM({},null==c||null===(i=c.getLayoutValue)||void 0===i?void 0:i.call(c,"color")),{},{useBaseColors:k?vC(k):void 0})},q=gC({picasso:o,model:a,app:s,translator:l,auto:S});!1!==S&&q.auto((function(e){return S?S({layout:e,defaultAuto:xC}):xC(e)}));var E=!1,D={getColor:function(){return q.color()},getPaletteColor:function(e){var t=e.index,n=e.color;return q.resolveUIColor({index:t,color:n})},getData:function(){return q.data()},getDatumProps:function(e){return q.datumProps(e)},getSnapshotData:function(){return q.getSnapshotData(M)},getSettingsForMeasure:function(e){return q.settingsForMeasure(e)},getSettings:function(){return q.settings()},getLegend:function(e,t){return q.legend(e,t)},getScales:function(){return q.scales()},getPalettes:function(){return q.palettes()},isSelectionLocked:function(e){var t=e.isMeasureSelectionLocked;return q.isSelectionLocked({isMeasureSelectionLocked:t})},isInitialized:function(){return E},custom:yM({},g),initialize:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).createConfig,t=(void 0===e?f:e)({getUseBaseColors:vC}),n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return yM(yM(yM({},e),t),{},{colorProps:yM(yM({},e.colorProps),t.colorProps||{})})}(C,t);return q.config(n),q.getAuxiliarySettings(M).then((function(){E=!0}))}};return D}var MC="center",kC="bottom",CC=[{key:"NoDataExist",alignment:MC,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:MC,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return"NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:MC,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:MC},{key:"DataRangeIncludingZero",alignment:kC},{key:"LimitedData",alignment:kC},{key:"NegativeOrZeroValues",alignment:kC}].reduce((function(e,t){return e[t.key]=t,e}),{}),qC=function(){return!1};function EC(e){var t,n=e.layout,r=e.config,i=void 0===r?{}:r,o={disclaimer:void 0,isSuppressing:!1,showDisclaimer:null!==(t=i.args)&&void 0!==t&&t.layoutService?i.args.layoutService.getLayoutValue("showDisclaimer"):null==n?void 0:n.showDisclaimer};return{initialize:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).args;o.disclaimer=function(e){var t=e.args,n=e.disclaimers,r=[];return Object.keys(n).forEach((function(e){var i=CC[e],o=n[e];o&&(o.condition||(null==i?void 0:i.condition)||qC)(t)&&r.push({key:(null==i?void 0:i.translationKey)||(null==i?void 0:i.key)||e,alignment:o.alignment||(null==i?void 0:i.alignment)||kC})})),r.find((function(e){return e.alignment===MC}))||r[0]}({args:yM(yM({layout:n},i.args),e),disclaimers:i.disclaimers||{}}),o.isSuppressing=!(!o.disclaimer||o.disclaimer.alignment!==MC)},getDisclaimer:function(){return o.isSuppressing?o.disclaimer:!1===o.showDisclaimer?void 0:o.disclaimer},getHasSuppressingDisclaimer:function(){return o.isSuppressing}}}function DC(e){var t=e.chart,n=e.logicalSize;if(n)return n;var r=t?t.element.getBoundingClientRect():{};return{width:r.width,height:r.height}}var TC=[{key:"FULL",size:{width:550,height:450}},{key:"MEDIUM",size:{width:400,height:220}},{key:"SMALL",size:{width:300,height:150}},{key:"XSMALL",size:{width:150,height:75}}];function NC(e){var t=e.width,n=e.height,r=TC.filter((function(e){return t>=e.size.width&&n>=e.size.height})).shift();return r?r.key:"SPARK"}var OC={left:"right",right:"left",top:"bottom",bottom:"top",near:"far",far:"near"};function AC(e){var t=e.orientation,n=e.dock,r=e.btt,i=e.rtl,o="horizontal"===t?function(e){return"bottom"===e||"near"===e?"bottom":"top"}(n):function(e,t){var n="left"===e||"near"===e?"left":"right";return t?OC[n]:n}(n,i),a=function(e,t,n){return"vertical"===e?t?"bottom":"top":n?"right":"left"}(t,r,i);return{current:o,opposite:OC[o],start:a,end:OC[a]}}function _C(e){var t=e.chart,n=e.layoutService,r=e.config,i=void 0===r?{}:r,o=i.logicalSize,a=void 0!==o&&o,s=i.rtl,l=void 0!==s&&s,u={chart:{size:void 0,mode:void 0},x:{dock:void 0,opposite:void 0,size:void 0},y:{dock:void 0,opposite:void 0,size:void 0}},c={type:"x-y",config:yM({},i),meta:u,update:function(e){u.chart.size={width:e.width,height:e.height},u.chart.mode=NC(e);var t=AC({orientation:"horizontal",dock:n.getLayoutValue("xAxis.dock"),btt:!1,rtl:l}),r=t.current,i=t.opposite;u.x.dock=r,u.x.opposite=i,u.x.size=e.width;var o=AC({orientation:"vertical",dock:n.getLayoutValue("yAxis.dock"),btt:!0,rtl:l}),a=o.current,s=o.opposite;u.y.dock=a,u.y.opposite=s,u.y.size=e.height}};return c.update(DC({chart:t,logicalSize:a})),c}var LC="vertical",IC="horizontal";function RC(e){var t=e.chart,n=e.layoutService,r=e.config,i=void 0===r?{}:r,o=e.typeConfig,a=void 0===o?{}:o,s=i.logicalSize,l=void 0!==s&&s,u=i.rtl,c=void 0!==u&&u,d=a.fallback===LC?LC:IC,f=!!a.invert,h=a.measureAxes||[{ref:"measureAxis",name:"minor"}],p={chart:{orientation:void 0,size:void 0,mode:void 0},major:{orientation:void 0,dock:void 0,opposite:void 0,size:void 0}},m={type:"major-minor",config:yM({},i),meta:p,update:function(e){p.chart.orientation=n.getLayoutValue("orientation",d),p.chart.size={width:e.width,height:e.height},p.chart.mode=NC(e),p.major.orientation=function(e){var t=e.chartOrientation,n=e.invert;return e.layoutService.meta.isContinuous?IC:n?t===LC?IC:LC:t}({layoutService:n,chartOrientation:p.chart.orientation,invert:f});var t=AC({orientation:p.major.orientation,dock:n.getLayoutValue("dimensionAxis.dock"),btt:!1,rtl:c}),r=t.current,i=t.opposite;p.major.dock=r,p.major.opposite=i,p.major.size=p.major.orientation===LC?e.height:e.width,h.forEach((function(t){var r={};r.orientation=p.major.orientation===LC?IC:LC;var i=AC({orientation:r.orientation,dock:n.getLayoutValue("".concat(t.ref,".dock")),btt:!0,rtl:c}),o=i.current,a=i.opposite,s=i.start,l=i.end;r.dock=o,r.opposite=a,r.start=s,r.end=l,r.size=r.orientation===LC?e.height:e.width,p[t.name]=r}))}};return m.update(DC({chart:t,logicalSize:l})),m}function PC(e){var t=e.chart,n=e.layoutService,r=e.config,i=void 0===r?{}:r,o=e.typeConfig,a=void 0===o?{}:o;return("x-y"===a.type?_C:RC)({chart:t,layoutService:n,config:i,typeConfig:a})}function zC(e,t,n){if(void 0===e||void 0===t)return n;for(var r=t.split("."),i=e,o=0;o<r.length;++o){var a=r[o];if(void 0===i[a])return n;i=i[a]}return i}var FC=["__proto__","constructor"];function jC(e,t,n){if(void 0!==e&&void 0!==t){var r=t.split("."),i=r[r.length-1];if(!FC.some((function(e){return r.includes(e)}))){for(var o=e,a=0;a<r.length-1;++a){var s=r[a];void 0===o[s]&&(o[s]=Number.isNaN(+r[a+1])?{}:[]),o=o[s]}void 0!==n?o[i]=n:delete o[i]}}}function BC(){var e={};return{get:function(t){return e[t]},set:function(t,n){return e[t]=n,n},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}function HC(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=BC();return function(r){var i=t(r);return n.has(i)?n.get(i):n.set(i,e(r))}}function VC(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var r=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(r,o)}),n)}}function $C(e){var t,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,o=0;return function(){t=this;for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];n=s;var u=Date.now()-o,c=function(){o=Date.now(),r=0,e.apply(t,n)};r||(u>=i?c():r=setTimeout(c,i-u))}}var UC={ERROR_CODES:[7005],DIMENSION:"qDimensionInfo",MEASURE:"qMeasureInfo"},WC=function(e,t){return e[t].reduce((function(e,t,n){var r;return r=t,UC.ERROR_CODES.some((function(e){var t;return e===(null===(t=r.qError)||void 0===t?void 0:t.qErrorCode)}))?e.filtered.push(n):e.reduced.push(t),e}),{reduced:[],filtered:[]})};function YC(e){var t;return((null==e||null===(t=e.qHyperCube)||void 0===t?void 0:t.qDimensionInfo)||[]).map((function(e){var t,n=null===(t=e.qCardinalities)||void 0===t?void 0:t.qHypercubeCardinal;if(n)return n;var r=e.qStateCounts||{},i=r.qLocked,o=void 0===i?0:i,a=r.qOption,s=void 0===a?0:a,l=r.qSelected;return o+s+(void 0===l?0:l)}))}function KC(e){switch(e.qHyperCube.qMode){case"S":return function(e){var t=e.qHyperCube.qSize;return{refs:{dataPages:"qHyperCube.qDataPages"},size:{x:t.qcx,y:t.qcy,dimensions:YC(e)}}}(e);case"K":return function(e){var t=YC(e);return{refs:{dataPages:"qHyperCube.qStackedDataPages"},size:{x:e.qHyperCube.qSize.qcx,y:t[0],dimensions:t}}}(e);case"T":return function(e){var t=YC(e);return{refs:{dataPages:"qHyperCube.qTreeDataPages"},size:{x:e.qHyperCube.qSize.qcx,y:t[0],dimensions:t}}}(e);default:throw new Error("Mode not supported")}}function GC(e){var t=e.source,n=e.metaAdditionsFn,r=e.experimental,i=void 0===r?{filter:!1}:r,o=UM(!0,{},t),a=i.filter?function(e){var t=e.qHyperCube,n=WC(t,UC.DIMENSION),r=n.reduced,i=n.filtered;t[UC.DIMENSION]=r;var o=WC(t,UC.MEASURE),a=o.reduced,s=o.filtered;return t[UC.MEASURE]=a,{dimensions:i,measures:s}}(o):{dimensions:[],measures:[]},s=KC(o),l=function(){var e=function(e){var t=e.layout,n=e.additionsFn,r=void 0===n?function(){return{}}:n,i=e.additionsProps,o=void 0===i?{}:i,a=t.qHyperCube,s=a.qDimensionInfo,l=a.qMeasureInfo,u=a.qMode,c=s.length,d=l.length,f=yM({mode:{S:"S"===u,P:"P"===u,K:"K"===u,T:"T"===u},dimensionCount:c,measureCount:d,hasMultipleDimensions:c>1,hasMultipleMeasures:d>1,isOneDimensional:1===c,isTwoDimensional:2===c},o);return yM(yM({},f),r({layout:t,meta:f}))}({layout:o,additionsFn:n,additionsProps:{size:s.size}});return e.filteredFields=a,e},u={refs:yM({},s.refs),meta:l(),getLayout:function(){return o},getLayoutValue:function(e,t){return zC(o,e,t)},setLayoutValue:function(e,t){jC(o,e,t),s=KC(o),u.meta=l()},getHyperCube:function(){return o.qHyperCube},getHyperCubeValue:function(e,t){return zC(o.qHyperCube,e,t)},setHyperCubeValue:function(e,t){jC(o.qHyperCube,e,t),s=KC(o),u.meta=l()},getDataPages:function(){return zC(o,s.refs.dataPages)},setDataPages:function(e){jC(o,s.refs.dataPages,e),u.meta=l()}};return u}function XC(e){var t=e.originalArray,n=e.newArray,r=e.matchKey;return Array.isArray(t)&&t.length?(n.forEach((function(e){var n=-1;t.some((function(t,i){return t[r]&&t[r]===e[r]&&(n=i),n})),n>-1?t[n]=e:t.push(e)})),t):n}function JC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function QC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?JC(Object(n),!0).forEach((function(t){ZC(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ZC(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var eq=Object.prototype.hasOwnProperty,tq=Object.prototype.toString,nq=Object.defineProperty,rq=Object.getOwnPropertyDescriptor,iq=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===tq.call(e)},oq=function(e){if(!e||"[object Object]"!==tq.call(e))return!1;var t,n=eq.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&eq.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||eq.call(e,t)},aq=function(e,t){nq&&"__proto__"===t.name?nq(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},sq=function(e,t){if("__proto__"===t){if(!eq.call(e,t))return;if(rq)return rq(e,t).value}return e[t]},lq=function e(){var t,n,r,i,o,a,s=arguments[0],l=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<u;++l)if(null!=(t=arguments[l]))for(n in t)r=sq(s,n),s!==(i=sq(t,n))&&(c&&i&&(oq(i)||(o=iq(i)))?(o?(o=!1,a=r&&iq(r)?r:[]):a=r&&oq(r)?r:{},aq(s,{name:n,newValue:e(c,a,i)})):void 0!==i&&aq(s,{name:n,newValue:i}));return s};function uq(e,t,n,r){if(!e)return-1;const i=n.cache,o=e.origin?e.origin():null;o&&(e=o);let a=i.fields.indexOf(e),s=-1,l=-1;if(-1===a)for(let t=0;t<i.wrappedFields.length;t++)if(l=i.wrappedFields[t].attrDims.map((e=>e.instance)).indexOf(e),s=i.wrappedFields[t].attrExps.map((e=>e.instance)).indexOf(e),-1!==l||-1!==s){a=t;break}if(Array.isArray(r)&&r.some(((e,t)=>e!==t))){const e=r.indexOf(a);-1!==e&&(a=e)}return a-=t.qArea.qLeft,a<0||a>=t.qArea.qWidth?-1:l>=0?e=>e[a].qAttrDims.qValues[l]:s>=0?e=>e[a].qAttrExps.qValues[s]:e=>e[a]}function cq(e,t,n){let{key:r}=n;const i={value:"function"==typeof e.value?e.value(t):void 0!==e.value?e.value:t};return i.label="function"==typeof e.label?e.label(t):void 0!==e.label?String(e.label):String(i.value),e.field&&(i.source={key:r,field:e.field.key()}),i}function dq(e){let{cache:t,f:n,mainCell:r,p:i,prop:o,page:a,rowIdx:s,row:l,sourceKey:u,target:c,targetProp:d,columnOrder:f}=e,h=r;if(i.field&&i.field!==n){const e=uq(i.field,a,{cache:t},f);if(-1===e)return;h=lq({qRow:s},e(l))}c[d]=cq(i,h,{key:u})}function fq(e,t,n,r){const i=Array.isArray(e)?e:[e];let o=[];for(let e=0;e<i.length;e++)if(void 0!==i[e].field){const a=t.raw(),s=t.key(),l="object"==typeof i[e].field?i[e].field:t.field(i[e].field),{props:u,main:c}=r.normalizeConfig(i[e],t),d=Object.keys(u),f=!!i[e].trackBy,h=typeof i[e].trackBy,p={},m=[],g=[];for(let t=0;t<a.qDataPages.length;t++){const o=uq(l,a.qDataPages[t],{cache:n},a.qColumnOrder);if(-1!==o)for(let y=0;y<a.qDataPages[t].qMatrix.length;y++){const v=a.qDataPages[t].qArea.qTop+y,b=lq({qRow:v},o(a.qDataPages[t].qMatrix[y])),x=cq(c,b,{key:s});if(!c.filter||c.filter(b)){for(let e=0;e<d.length;e++){const r=u[d[e]];let i=r.fields||[r];r.fields&&(x[d[e]]=[]);for(let o=0;o<i.length;o++)dq({cache:n,f:l,mainCell:b,p:i[o],prop:d[e],props:u,page:a.qDataPages[t],rowIdx:v,row:a.qDataPages[t].qMatrix[y],sourceKey:s,target:r.fields?x[d[e]]:x,targetProp:r.fields?o:d[e],columnOrder:a.qColumnOrder});if(r.fields){const t=x[d[e]].map((e=>e.value)),n=x[d[e]].map((e=>e.label));x[d[e]]={value:"function"==typeof r.value?r.value(t):void 0!==r.value?r.value:t,label:"function"==typeof r.label?r.label(n):void 0!==r.label?String(r.label):String(x[d[e]].value)}}}f&&r.track({cfg:i[e],itemData:b,obj:x,target:m,tracker:p,trackType:h}),g.push(x)}}}const y=f?r.collect(m,{main:c,propsArr:d,props:u}):g;o=[...o,...y]}return o}function hq(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function pq(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=gq)):void 0===t&&(t=mq);for(var n,r,i,o,a,s=new bq(e),l=[s];n=l.pop();)if((i=t(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)l.push(r=i[o]=new bq(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(vq)}function mq(e){return e.children}function gq(e){return Array.isArray(e)?e[1]:null}function yq(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function vq(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function bq(e){this.data=e,this.depth=this.height=0,this.parent=null}function xq(e){return null==e?null:function(e){if("function"!=typeof e)throw new Error;return e}(e)}bq.prototype=pq.prototype={constructor:bq,count:function(){return this.eachAfter(hq)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,i,o=this,a=[o],s=[],l=-1;o=a.pop();)if(s.push(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r]);for(;o=s.pop();)e.call(t,o,++l,this);return this},eachBefore:function(e,t){for(var n,r,i=this,o=[i],a=-1;i=o.pop();)if(e.call(t,i,++a,this),n=i.children)for(r=n.length-1;r>=0;--r)o.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return pq(this).eachBefore(yq)},[Symbol.iterator]:function*(){var e,t,n,r,i=this,o=[i];do{for(e=o.reverse(),o=[];i=e.pop();)if(yield i,t=i.children)for(n=0,r=t.length;n<r;++n)o.push(t[n])}while(o.length)}};var wq={depth:-1},Sq={},Mq={};function kq(e){return e.id}function Cq(e){return e.parentId}function qq(e){let t=e.length;if(t<2)return"";for(;--t>1&&!Eq(e,t););return e.slice(0,t)}function Eq(e,t){if("/"===e[t]){let n=0;for(;t>0&&"\\"===e[--t];)++n;if(0==(1&n))return!0}return!1}function Dq(e,t){"/"===e.charAt(0)&&(e=e.substring(1));const n=e.split("/");let r,i=t;for(let e=0;e<n.length;e++){if("*"===n[e]&&Array.isArray(i)){const t=[];r=n.slice(e+1).join("/");for(let e=0;e<i.length;e++){let n=Dq(r,i[e]);Array.isArray(n)?t.push(...n):t.push(n)}return t}if(!n[e]&&Array.isArray(i)){const t=new Array(i.length);r=n.slice(e+1).join("/");for(let e=0;e<i.length;e++)t[e]=Dq(r,i[e]);return t}n[e]in i&&(i=i[n[e]])}return i}function Tq(e,t,n){let r=[];if(!e||!e.length)return r;if(t<=0){const t=n>=0?[e[n]]:e;r=[...r,...t]}else for(let i=0;i<e.length;i++)e[i].children&&e[i].children.length&&(r=[...r,...Tq(e[i].children,t-1,n)]);return r}function Nq(e,t,n){if(e===t)return e=>e;if(e>t){const n=Math.max(0,Math.min(100,e-t));return e=>{let t=e;for(let e=0;e<n;++e)t=t.parent;return t}}if(t>e){const r=Math.max(0,Math.min(100,t-e));return e=>Tq(e.children,r-1,n)}return!1}const Oq=/^qDimensionInfo(?:\/(\d+))?/,Aq=/^\/?qMeasureInfo\/(\d+)/,_q=/\/qAttrExprInfo\/(\d+)/,Lq=/\/qAttrDimInfo\/(\d+)/;function Iq(e){return(e.qColumnOrder&&e.qColumnOrder.length?e.qColumnOrder:e.qDimensionInfo.map(((e,t)=>t))).filter((t=>t<e.qDimensionInfo.length))}function Rq(e,t){let{cube:n}=t;if(!e)return-1;let r=e.origin&&e.origin()?e.origin().key():e.key(),i=!1,o=-1,a=-1,s=-1,l=-1,u=-1,c=-1,d=r;const f=n.qEffectiveInterColumnSortOrder,h=Iq(n);return Oq.test(d)&&(i=!0,o=+Oq.exec(d)[1],d=r.replace(Oq,"")),Aq.test(d)&&("K"===n.qMode?u=+Aq.exec(d)[1]:f&&-1!==f.indexOf(-1)?(u=+Aq.exec(d)[1],c=0):c=+Aq.exec(d)[1],d=d.replace(Aq,"")),d&&(Lq.exec(d)?s=+Lq.exec(d)[1]:_q.exec(d)&&(a=+_q.exec(d)[1])),l=i?"S"===n.qMode?h[o]:f?f.indexOf(o):o:f&&-1!==f.indexOf(-1)?f.indexOf(-1):n.qDimensionInfo.length-("K"===n.qMode?0:1),{fieldDepth:l+1,pseudoMeasureIndex:u,measureIdx:c,attrDimIdx:s,attrIdx:a}}function Pq(e,t){let n,r,i=Nq(e.fieldDepth,t.fieldDepth,t.pseudoMeasureIndex);return n=t.measureIdx>=0?e=>e.data.qValues[t.measureIdx]:e=>e.data,t.attrDimIdx>=0?r=e=>{var n;return null==e||null===(n=e.qAttrDims)||void 0===n?void 0:n.qValues[t.attrDimIdx]}:t.attrIdx>=0&&(r=e=>{var n;return null==e||null===(n=e.qAttrExps)||void 0===n?void 0:n.qValues[t.attrIdx]}),{nodeFn:i,attrFn:r,valueFn:n}}function zq(e,t,n){let{key:r}=n;const i={value:"function"==typeof e.value?e.value(t):void 0!==e.value?e.value:t};return i.label="function"==typeof e.label?e.label(t):void 0!==e.label?String(e.label):String(i.value),e.field&&(i.source={key:r,field:e.field.key()}),i}function Fq(e){let{propsArr:t,props:n,item:r,itemData:i,ret:o,sourceKey:a}=e;for(let e=0;e<t.length;e++){const s=n[t[e]],l=s.fields||[s];let u,c;s.fields&&(u=[],c=[]);for(let n=0;n<l.length;n++){const d=l[n];let f,h,p,m,g,y;if("primitive"===d.type?(p=d.value,y=String(d.value)):("function"==typeof d.value&&(f=e=>d.value(e,r)),"function"==typeof d.label&&(h=e=>d.label(e,r)),d.accessor?(m=d.accessor(r),Array.isArray(m)?(g=m.map(d.valueAccessor),d.attrAccessor&&(g=g.map(d.attrAccessor)),f&&(p=g.map(f),f=null),h&&(y=g.map(h),h=null),p=d.reduce?d.reduce(p):p,y=d.reduceLabel?d.reduceLabel(y,p):String(p)):(p=d.attrAccessor?d.attrAccessor(d.valueAccessor(m)):d.valueAccessor(m),y=p)):(p=i,y=i)),s.fields){const e=f?f(p):p;u.push(e),c.push(h&&null!=y?h(y):null!=y?y:String(e))}else{const n=f?f(p):p;o[t[e]]={value:n,label:h?h(y):null!=y?y:String(n)},d.field&&(o[t[e]].source={field:d.field.key(),key:a})}}u&&(o[t[e]]={value:"function"==typeof s.value?s.value(u,r):u,label:"function"==typeof s.label?s.label(c,r):c})}}const jq=(e,t,n)=>{const r="K"===e.qMode?"/qStackedDataPages/*/qData":"/qTreeDataPages/*",i="K"===e.qMode?"qSubNodes":"qNodes",o=Dq(r,e);return o&&o[0]?(t.tree=pq(o[0],n.children||(e=>e[i])),t.tree):null};function Bq(e){const t=e.raw().qDataPages.length?e.raw().qDataPages[0].qMatrix:[],n=function(e){const t=e.raw().qColumnOrder,n=e.fields();return t&&t.length===n.length?t:n.map(((e,t)=>t))}(e),r=e.fields(),i=e.fields().filter((e=>"dimension"===e.type())).map((e=>n.indexOf(r.indexOf(e)))),o=e.fields().filter((e=>"measure"===e.type())).map((e=>n.indexOf(r.indexOf(e)))),a={__root:{__id:"__root",qValues:[]}};for(let e=0;e<t.length;e++){const n=t[e];let r="__root",l=!1;for(let e=0;e<i.length;e++){var s;const t=n[i[e]],o="".concat(r,"__").concat(null!==(s=t.qElemNumber)&&void 0!==s?s:t.qElemNo);a[o]||(a[o]=QC({__id:o,__parent:r,qValues:[]},t),l=!0),r=o}if(l)for(let e=0;e<o.length;e++){const t=n[o[e]];a[r].qValues.push(t)}}const l=Object.keys(a).map((e=>a[e]));return function(){var e,t=kq,n=Cq;function r(r){var i,o,a,s,l,u,c,d,f=Array.from(r),h=t,p=n,m=new Map;if(null!=e){const t=f.map(((t,n)=>function(e){let t=(e=`${e}`).length;return Eq(e,t-1)&&!Eq(e,t-2)&&(e=e.slice(0,-1)),"/"===e[0]?e:`/${e}`}(e(t,n,r)))),n=t.map(qq),i=new Set(t).add("");for(const e of n)i.has(e)||(i.add(e),t.push(e),n.push(qq(e)),f.push(Mq));h=(e,n)=>t[n],p=(e,t)=>n[t]}for(a=0,i=f.length;a<i;++a)o=f[a],u=f[a]=new bq(o),null!=(c=h(o,a,r))&&(c+="")&&(d=u.id=c,m.set(d,m.has(d)?Sq:u)),null!=(c=p(o,a,r))&&(c+="")&&(u.parent=c);for(a=0;a<i;++a)if(c=(u=f[a]).parent){if(!(l=m.get(c)))throw new Error("missing: "+c);if(l===Sq)throw new Error("ambiguous: "+c);l.children?l.children.push(u):l.children=[u],u.parent=l}else{if(s)throw new Error("multiple roots");s=u}if(!s)throw new Error("no root");if(null!=e){for(;s.data===Mq&&1===s.children.length;)s=s.children[0],--i;for(let e=f.length-1;e>=0&&(u=f[e]).data===Mq;--e)u.data=null}if(s.parent=wq,s.eachBefore((function(e){e.depth=e.parent.depth+1,--i})).eachBefore(vq),s.parent=null,i>0)throw new Error("cycle");return s}return r.id=function(e){return arguments.length?(t=xq(e),r):t},r.parentId=function(e){return arguments.length?(n=xq(e),r):n},r.path=function(t){return arguments.length?(e=xq(t),r):e},r}().id((e=>e.__id)).parentId((e=>e.__parent))(l)}const Hq=e=>{let{propsArr:t,props:n,cube:r,cache:i,itemDepthObject:o,f:a}=e;for(let e=0;e<t.length;e++){const s=n[t[e]],l=s.fields?s.fields:[s];for(let e=0;e<l.length;e++){const t=l[e];if(t.field!==a){const e=Pq(o,Rq(t.field,{cube:r,cache:i}));t.accessor=e.nodeFn,t.valueAccessor=e.valueFn,t.attrAccessor=e.attrFn}}}};function Vq(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;const i=t.raw(),o=t.key(),a="S"===i.qMode?Bq(t):jq(i,n,e);if(!a)return null;const s=a.height,l=[];for(let o=0;o<=s;o++){let a=null;if(o>0)if("S"===i.qMode){let e=Iq(i)[o-1];a=n.fields[e]}else{let e=i.qEffectiveInterColumnSortOrder[o-1];o>i.qEffectiveInterColumnSortOrder.length&&(e=i.qDimensionInfo.length),a=n.fields[e]}const{props:s,main:u}=r.normalizeConfig(QC(QC({},e),{},{field:a?a.key():void 0}),t),c=Object.keys(s);l[o]={propsArr:c,props:s,main:u};const d=a?Rq(a,{cube:i,cache:n}):{fieldDepth:0};Hq({propsArr:c,props:s,cube:i,cache:n,itemDepthObject:d,f:a})}const u=a.copy().descendants(),c=a.descendants();for(let e=0;e<c.length;e++){const t=l[c[e].depth].propsArr,n=l[c[e].depth].props,r=l[c[e].depth].main,i=u[e],a=i.data,s=zq(r,a,{key:o});Fq({propsArr:t,props:n,item:i,itemData:a,ret:s,sourceKey:o,isTree:!0}),c[e].data=s}return a}function $q(e,t,n,r){const i=Array.isArray(e)?e:[e];let o=[];for(let a=0;a<i.length;a++)if(void 0!==i[a].field){const s=t.raw(),l=t.key();if(!jq(s,n,e))continue;const u="object"==typeof i[a].field?i[a].field:t.field(i[a].field),{props:c,main:d}=r.normalizeConfig(i[a],t),f=Object.keys(c),h=Rq(u,{cube:s,cache:n}),{nodeFn:p,attrFn:m,valueFn:g}=Pq({fieldDepth:0},h);Hq({propsArr:f,props:c,cube:s,cache:n,itemDepthObject:h,f:u});const y=!!i[a].trackBy,v=typeof i[a].trackBy,b={},x=[],w=p(n.tree),S=[];for(let e=0;e<w.length;e++){const t=w[e],n=m?m(g(t)):g(t);if(d.filter&&!d.filter(n))continue;const o=zq(d,n,{key:l});Fq({propsArr:f,props:c,item:t,itemData:n,ret:o,sourceKey:l}),y&&r.track({cfg:i[a],itemData:n,obj:o,target:x,tracker:b,trackType:v}),S.push(o)}const M=y?r.collect(x,{main:d,propsArr:f,props:c}):S;o=[...o,...M]}return o}var Uq,Wq,Yq=(Uq=function(e){
15
15
  /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
16
- e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,i,o,a,s,l,u,c,d,f=e.length,h=e.search(/[0-9\-\+#]/),p=h>0?e.substring(0,h):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),y=f-g,v=e.substring(y,y+1),b=y+("."===v||","===v?1:0),x=g>0?e.substring(b,f):"";if(n=(t="-"===(e=e.substring(h,b)).charAt(0)?-t:+t)<0?t=-t:0,i=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",o=r&&r[1]&&r[0]||",",e=e.split(i),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=s)&&(t=(+t).toFixed(s+1)),c=e[0].split(o),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],l=c[1]&&c[c.length-1].length){for(m="",y=(d=t[0]).length%l,f=d.length,b=0;b<f;b++)m+=d.charAt(b),!((b-y+1)%l)&&b<f-l&&(m+=o);t[0]=m}return t[1]=e[1]&&t[1]?i+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),p+(n?"-":"")+r+x}},Uq(Wq={exports:{}}),Wq.exports);function Kq(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}const Gq={3:"k",6:"M",9:"G",12:"T",15:"P",18:"E",21:"Z",24:"Y","-3":"m","-6":"μ","-9":"n","-12":"p","-15":"f","-18":"a","-21":"z","-24":"y"},Xq=/%\)?$/,Jq=/^\(r(0[2-9]|[12]\d|3[0-6])\)/i,Qq=/^\(oct\)/i,Zq=/^\(dec\)/i,eE=/^\(hex\)/i,tE=/^\(bin\)/i,nE=/^\(rom\)/i,rE=/^(\(rom\)|\(bin\)|\(hex\)|\(dec\)|\(oct\)|\(r(0[2-9]|[12]\d|3[0-6])\))/i,iE=/#|0/g;function oE(e,t,n,r){return e=e.toString(t),n[1]===n[1].toUpperCase()&&(e=e.toUpperCase()),e.length-e.indexOf(".")>10&&(e=e.slice(0,e.indexOf(".")+11)),e.replace(".",r||".")}function aE(e,t,n){const r=Kq(e);return n?r:new RegExp(r||"",t)}function sE(e,t,n,r){let i,o,a,s,l,u,c,d,f,h=e.pattern;var p,m;r&&(e.abbreviate=!0),p=t,(m=n)&&(m=Kq(m)),p&&(p=Kq(p)),f=new RegExp("(?:[#0]+".concat(p,")?[#0]+(?:").concat(m,"[#0]+)?")),a=h.match(f),a=a?a[0]:"",s=a?h.substr(0,h.indexOf(a)):h,l=a?h.substring(h.indexOf(a)+a.length):"",a||(a=h?"#":"##########"),t&&t===n&&(i=a.split(n),o=i.pop(),a=i.join("")+n+o,t=""),u=t,t=/,/.test(n)?"¤":",",u&&(a=a.replace(aE(u,"g"),t)),c=n,n=".",c&&(a=a.replace(aE(c,"g"),n)),d=a.match(/#/g),d=d?d.length:0;const g=h.split(c);let y;g[1]&&(y=g[1].match(iE)),e.prefix=s||"",e.postfix=l||"",e.pattern=h,e.maxPrecision=y?y.length:2,e.percentage=Xq.test(h),e.numericPattern=a||"",e.numericRegex=new RegExp("".concat(aE(t,null,!0),"|").concat(aE(n,null,!0)),"g"),e.groupTemp=u,e.decTemp=c,e.t=t,e.d=n,e.temp=d}class lE{constructor(e,t,n,r,i){this.localeInfo=e,this.pattern=t,this.thousandDelimiter=n||",",this.decimalDelimiter=r||".",this.type=i||"numeric",this.patternSeparator=";",this.abbreviations=function(e,t){if(!e||!e.qNumericalAbbreviation)return Gq;const n={};return e.qNumericalAbbreviation.split(t).forEach((e=>{let t=e.split(":");2===t.length&&(n[t[0]]=t[1])})),n}(e,this.patternSeparator),this.prepare()}clone(){const e=new lE(this.localeInfo,this.pattern,this.thousandDelimiter,this.decimalDelimiter,this.type);return e.subtype=this.subtype,e}format(e,t,n,r){return this.prepare(t,n,r),this.formatValue(e)}prepare(e,t,n){let r;if(void 0===e&&(e=this.pattern),void 0===t&&(t=this.thousandDelimiter),void 0===n&&(n=this.decimalDelimiter),!e)return void(this._prepared={pattern:!1});this._prepared={positive:{d:n,t:t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""},negative:{d:n,t:t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""},zero:{d:n,t:t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""}},r=this._prepared,e=e.split(this.patternSeparator),r.positive.pattern=e[0],r.negative.pattern=e[1],r.zero.pattern=e[2],rE.test(e[0])&&(r.positive.isFunctional=!0),e[1]?rE.test(e[1])&&(r.negative.isFunctional=!0):r.negative=!1,e[2]?rE.test(e[2])&&(r.zero.isFunctional=!0):r.zero=!1;const i="U"===this.type;r.positive.isFunctional||sE(r.positive,t,n,i),r.negative&&!r.negative.isFunctional&&sE(r.negative,t,n,i),r.zero&&!r.zero.isFunctional&&sE(r.zero,t,n,i)}formatValue(e){let t,n,r,i,o,a,s,l,u,c=this._prepared,d="",f="",h=e;if(isNaN(e))return"".concat(h);if(e=+e,!1===c.pattern)return e.toString();if(0===e&&c.zero)return c=c.zero,c.pattern;if(e<0&&c.negative?(c=c.negative,e=-e):c=c.positive,o=c.d,a=c.t,c.isFunctional)e=function(e,t,n){let r;return Jq.test(t)?e=oE(e,Number(/\d{2}/.exec(t)[0]),t,n):Qq.test(t)?e=oE(e,8,t,n):Zq.test(t)?e=oE(e,10,t,n):eE.test(t)?e=oE(e,16,t,n):tE.test(t)?e=oE(e,2,t,n):nE.test(t)&&(r="",e<0&&(r="-",e=-e),0===(e=Math.floor(e))?e="0":e<=5e5?(e=function(e,t){let n,r="",i=Number(String(e).slice(-3)),o=(e-i)/1e3,a=[0,1,4,5,9,10,40,50,90,100,400,500,900].reverse(),s=["0","I","IV","V","IX","X","XL","L","XC","C","CD","D","CM"].reverse();for(;i>0;)for(n=0;n<a.length;n++)if(a[n]<=i){r+=s[n],i-=a[n];break}for(n=0;n<o;n++)r="M".concat(r);return t[1]!==t[1].toUpperCase()&&(r=r.toLowerCase()),r}(e,t),e=r+e):e=t+r+e.toExponential(0)),e}(e,c.pattern,o);else{if(c.percentage&&(e*=100),c.abbreviate){const t=Object.keys(this.abbreviations).map((e=>parseInt(e,10))).sort(((e,t)=>e-t));let r,i,o=t[0];for(s=0,n=Number(Number(e).toExponential().split("e")[1]);o<=n&&s<t.length;)s++,o=t[s];s>0&&(r=t[s-1]),r&&n>0&&r>0?i=r:(n<0&&r<0||!r)&&(o<0&&o-n<=c.maxPrecision?i=o:r<=n&&!(o>0&&-n<=c.maxPrecision)&&(i=r)),i&&(d=this.abbreviations[i],e/=10**i)}if(r=Math.abs(e),t=c.temp,l=c.numericPattern,u=l.split(o)[1],"I"===this.type&&(e=Math.round(e)),i=e,u||"#"!==l.slice(-1)[0])if(r>=1e15||r>0&&r<=1e-14)e=r?r.toExponential(15).replace(/\.?0+(?=e)/,""):"0";else{const t=Number(e.toFixed(Math.min(20,u?u.length:0)).split(".")[0]);let n=l.split(o)[0];if(n+=o,e=Yq(n,t)||"0",u){const t=Math.max(0,Math.min(14,u.length)),n=u.replace(/#+$/,"").length;let i=("I"===this.type?0:r%1+1e-15).toFixed(t).slice(2).replace(/0+$/,"");for(s=i.length;s<n;s++)i+="0";i&&(e+=o+i)}else 0===t&&(i=0)}else if(r>=10**t||r<1||r<1e-4)0===e?e="0":r<1e-4||r>=1e20?(e=(e=i.toExponential(Math.max(1,Math.min(14,t))-1)).replace(/\.?0+(?=e)/,""),f=""):(e=e.toPrecision(Math.max(1,Math.min(14,t)))).indexOf(".")>=0&&(e=(e=e.replace(e.indexOf("e")<0?/0+$/:/\.?0+(?=e)/,"")).replace(".",o));else{for(l+=o,t=Math.max(0,Math.min(20,t-Math.ceil(Math.log(r)/Math.log(10)))),s=0;s<t;s++)l+="#";e=Yq(l,e)}e=e.replace(c.numericRegex,(e=>e===a?c.groupTemp:e===o?c.decTemp:"")),i<0&&!/^-/.test(e)&&(e="-".concat(e))}return c.prefix+e+f+d+c.postfix}static getStaticFormatter(){return{prepare(){},formatValue:e=>"".concat(e)}}}function uE(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{size:n=5e3,multipleArguments:r=!1,toKey:i=(e=>e)}=t;let o,a,s=Object.create(null),l=Object.create(null),u=0,c=0;return o=r?function(){return a=i(...arguments),o.has(a)?o.get(a):o.set(a,e(...arguments))}:t=>(a=i(t),o.has(a)?o.get(a):o.set(a,e(t))),o.set=(e,t)=>(u>=n&&(delete s[l[c]],delete l[c],u--,c++),s[e]=t,l[u]=e,u++,t),o.get=e=>s[e],o.has=e=>e in s,o.clear=()=>{s=Object.create(null),l=Object.create(null),u=0,c=0},o.size=()=>u,o}function cE(e,t,n,r,i){const o=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new lE(...t)}(i,e,t,n,r),a=uE(o.formatValue.bind(o),{toKey:e=>isNaN(e)?e:+e});function s(e){return a(e)}return s.format=function(e,t,n,r){return a.clear(),o.format(t,e,n,r)},s.pattern=function(e){return e&&(a.clear(),o.pattern=e,o.prepare()),o.pattern},s}const dE="IV",fE=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],hE=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],pE=["January","February","March","April","May","June","July","August","September","October","November","December"],mE=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function gE(e,t){for(let n=e.length;n<t;n++)e="0".concat(e);return e}function yE(e){let t=e.toString().split(".");return t[1]?(t=Number("0.".concat(t[1])),t):0}class vE{constructor(e,t,n){const r=e||{};r.qCalendarStrings||(r.qCalendarStrings={qLongDayNames:fE,qDayNames:hE,qLongMonthNames:pE,qMonthNames:mE}),this.localeInfo=r,this.locale_days=r.qCalendarStrings.qLongDayNames.slice(),this.locale_days_abbr=r.qCalendarStrings.qDayNames.slice(),this.locale_months=r.qCalendarStrings.qLongMonthNames.slice(),this.locale_months_abbr=r.qCalendarStrings.qMonthNames.slice(),t||(t={T:r.qTimeFmt||"hh:mm:ss",D:r.qDateFmt||"YYYY-MM-DD",TS:r.qTimestampFmt||"YYYY-MM-DD hh:mm:ss"}[n]),this.pattern=t}clone(){const e=new vE(this.localeInfo,this.pattern);return e.subtype=this.subtype,e}format(e,t){t||(t=this.pattern?this.pattern:"YYYY-MM-DD hh:mm:ss"),t=t.replace(/\[.+]|\[|]/g,"");const n=/t+/gi.test(t);let r;e instanceof Date?r=function(e,t){let n=e.getUTCHours(),r=e.getUTCDay()-1;return t&&(n%=12,n||(n=12)),r<0&&(r=6),{year:e.getUTCFullYear(),month:e.getUTCMonth(),day:r,date:e.getUTCDate(),h:n,m:e.getUTCMinutes(),s:e.getUTCSeconds(),f:e.getUTCMilliseconds(),t:e.getUTCHours()>=12?"pm":"am"}}(e,n):(e<0&&(e=-e,t="-".concat(t)),r=function(e,t){let n,r=function(e){const t=e,n=24*yE(t),r=60*yE(n),i=60*yE(r),o=1e3*yE(i);return{d:Math.floor(t),h:Math.floor(n),m:Math.floor(r),s:Math.floor(i),f:Math.round(o)}}(e),i=r.d,o=r.h,a=r.m,s=r.s,l=r.f,u=0;/w+|t+/gi.test(t)&&(n=new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,Math.round(86400*(e-Math.floor(e))))),isNaN(n.getTime())&&(n=null)),/D+/gi.test(t)||(o+=24*i),/h+/gi.test(t)||(a+=60*o),/m+/gi.test(t)||(s+=60*a),/w+/gi.test(t)&&(u=n?n.getDay()-1:0,u<0&&(u=6));let c="";return n&&(c=n.getUTCHours()>=12?"pm":"am"),{year:0,month:0,day:u,date:i,h:o,m:a,s:s,f:l,t:c}}(e,t));const i=(o=this,a=r,{"Y+|y+":{Y:"".concat(Number("".concat(a.year).slice(-2))),YY:gE("".concat(a.year).slice(-2),2),YYY:gE("".concat(a.year).slice(-3),3),def:e=>gE("".concat(a.year),e.length)},"M+":{M:a.month+1,MM:gE("".concat(a.month+1),2),MMM:o.locale_months_abbr[a.month],def:o.locale_months[a.month]},"W+|w+":{W:a.day,WW:gE("".concat(a.day),2),WWW:o.locale_days_abbr[a.day],def:o.locale_days[a.day]},"D+|d+":{D:a.date,def:e=>gE("".concat(a.date),e.length)},"h+|H+":{h:a.h,def:e=>gE("".concat(a.h),e.length)},"m+":{m:a.m,def:e=>gE("".concat(a.m),e.length)},"s+|S+":{s:a.s,def:e=>gE("".concat(a.s),e.length)},"f+|F+":{def(e){let t="".concat(a.f),n=e.length-t.length;if(n>0)for(let e=0;e<n;e++)t+="0";else n<0&&(t=t.slice(0,e.length));return t}},"t{1,2}|T{1,2}":{def(e){let t=a.t;return e[0].toUpperCase()===e[0]&&(t=t.toUpperCase()),t=t.slice(0,e.length),t}}});var o,a;const s=[];for(const e in i)Object.prototype.hasOwnProperty.call(i,e)&&s.push(e);const l=new RegExp(s.join("|"),"g");return t.replace(l,(e=>{let t,n,r;for(n in i)if(Object.prototype.hasOwnProperty.call(i,n)&&(t=new RegExp(n),t.test(e)))break;if(!t)return"";for(const t in i[n])if(t===e||t.toLowerCase()===e){r=i[n][t],void 0===r&&(r=i[n][t.toLowerCase()]);break}return void 0===r&&(r=i[n].def),"function"==typeof r&&(r=r(e)),r}))}}function bE(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new vE(...t)}function xE(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"TS",n=bE(arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,e,t),r=uE(n.format.bind(n),{toKey:e=>"object"==typeof e&&"function"==typeof e.getTime?e.getTime():e});function i(e){return t!==dE?function(e){return new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,0,Math.round(864e5*(e-Math.floor(e)))))}(e):e}function o(e){return e=i(e),r(e)}return o.format=function(e,t){return r.clear(),t=i(t),n.format(t,e)},o.locale=function(i){return n=bE(i,e,t),r=uE(n.format.bind(n),{toKey:e=>"object"==typeof e?e.getTime():e}),this},o.qtype=function(e){return void 0!==e&&(t=e,r.clear()),t},o}function wE(){let e,{meta:t,id:n,key:r,localeInfo:i,fieldExtractor:o,value:a,type:s,sourceField:l}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const u=a||("dimension"===s?e=>null==e?void 0:e.qElemNo:e=>null==e?void 0:e.qValue),c="dimension"===s?"first":"avg",d=function(e,t){if(e&&e.qNumFormat&&-1!==["D","T","TS","IV"].indexOf(e.qNumFormat.qType))return xE(e.qNumFormat.qFmt,e.qNumFormat.qType,t);let n="#",r=t&&void 0!==t.qThousandSep?t.qThousandSep:",",i=t&&void 0!==t.qDecimalSep?t.qDecimalSep:".",o="U",a=e&&!!e.qIsAutoFormat;return e&&e.qNumFormat?(n=e.qNumFormat.qFmt||n,r=e.qNumFormat.qThou||r,i=e.qNumFormat.qDec||i,o=e.qNumFormat.qType||o,a=a&&-1===["M"].indexOf(e.qNumFormat.qType)):a=!0,(a||"U"===o)&&(n="#".concat(i,"##"),o="U"),cE(n,r,i,o,t)}(t,i),f="dimension"===s?"first":(e,t)=>d(t),h={id:()=>n,key:()=>r,raw:()=>t,title:()=>t.qFallbackTitle||t.label,type:()=>s,origin:()=>l,items:()=>(e||(e=o(h)),e),min:()=>t.qMin,max:()=>t.qMax,value:u,label:e=>(null==e?void 0:e.qText)||"",reduce:c,reduceLabel:f,formatter:()=>d,tags:()=>t.qTags};return h}function SE(e,t,n,r,i){return(t[e]||[]).map(((t,o)=>{const a="".concat(r?"".concat(r,"/"):"").concat(e,"/").concat(o),s={instance:wE(lq({id:"".concat(n?"".concat(n,"/"):"").concat(a),key:a,meta:t},i))};return s.attrDims=SE("qAttrDimInfo",t,n,a,lq({},i,{value:e=>null==e?void 0:e.qElemNo,type:"dimension"})),s.attrExps=SE("qAttrExprInfo",t,n,a,lq({},i,{value:e=>null==e?void 0:e.qNum,type:"measure"})),s.measures=SE("qMeasureInfo",t,n,a,lq({},i,{value:e=>null==e?void 0:e.qValue,type:"measure"})),s}))}function ME(){let{key:e,data:t,config:n={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r={fields:[],wrappedFields:[],allFields:[],virtualFields:[]},i=t;if(!i)throw new Error('Missing "data" input');if(!i.qDimensionInfo)throw new Error('The "data" input is not recognized as a hypercube');const o=ME.util,a={cache:r,cube:i,localeInfo:n.localeInfo,fieldExtractor:null,pages:null,hierarchy:()=>null,virtualFields:n.virtualFields},s={key:()=>e,raw:()=>i,field:e=>function(e,t){let{cache:n}=t;if("number"==typeof e)return n.fields[e];const r=n.allFields;if("function"==typeof e){for(let t=0;t<r.length;t++)if(e(r[t]))return r[t];return!1}if("string"==typeof e){for(let t=0;t<r.length;t++)if(r[t].key()===e||r[t].title()===e)return r[t]}else if(e&&-1!==r.indexOf(e))return e;throw Error("Field not found: ".concat(e))}(e,a),fields:()=>r.fields.slice(),extract:e=>a.extractor(e,s,r,o),hierarchy:e=>a.hierarchy(e,s,r,o),_cache:()=>r};"K"===i.qMode||"T"===i.qMode||!i.qMode&&i.qNodesOnDim?(a.extractor=$q,a.hierarchy=Vq,a.pages="K"===i.qMode?i.qStackedDataPages:i.qTreeDataPages):"S"===i.qMode?(a.extractor=fq,a.pages=i.qDataPages,a.hierarchy=Vq):a.extractor=()=>[],a.fieldExtractor=e=>a.extractor({field:e},s,r,o);const l="S"===i.qMode?e=>e.qElemNumber:void 0,u="S"===i.qMode?e=>e.qNum:void 0;r.wrappedFields.push(...SE("qDimensionInfo",i,e,"",lq({},a,{value:l,type:"dimension"}))),r.wrappedFields.push(...SE("qMeasureInfo",i,e,"",lq({},a,{value:u,type:"measure"}))),r.fields=r.wrappedFields.map((e=>e.instance));const c=e=>{e.forEach((e=>{r.allFields.push(e.instance),c(e.measures),c(e.attrDims),c(e.attrExps)}))};return c(r.wrappedFields),(n.virtualFields||[]).forEach((t=>{const n=s.field(t.from),i=wE(QC({meta:n.raw(),id:"".concat(e,"/").concat(t.key),sourceField:n,fieldExtractor:e=>a.extractor({field:e},s,r,o),key:t.key,type:n.type(),localeInfo:a.localeInfo,value:n.value},t.override||{}));r.virtualFields.push(i)})),r.allFields.push(...r.virtualFields),s}const kE=[["qHyperCube","qHyperCubeDef"],["qTreeData","qTreeDataDef"],["qDimensionInfo","qDimensions"],["qMeasureInfo","qMeasures"],["qAttrDimInfo","qAttributeDimensions"],["qAttrExprInfo","qAttributeExpressions"]],CE=/\/qDimensionInfo(?:\/(\d+))?/,qE=/\/qMeasureInfo\/(\d+)/,EE=/\/qAttrDimInfo\/(\d+)(?:\/(\d+))?/,DE=/\/qAttrExprInfo\/(\d+)/,TE=/\/?qHyperCube/,NE=/\/?qTreeData/,OE=e=>"".concat(e.substr(0,e.indexOf("/qHyperCubeDef")+14)),AE=e=>"".concat(e.substr(0,e.indexOf("/qTreeDataDef")+13));function _E(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r=t.byCells,i=t.primarySource,o=[],a={},s=e.isActive();let l=!1;return e.brushes().forEach((e=>{const t=function(e,t){let n=e,r=-1,i=-1,o="",a=e=>e;TE.test(e)?(o="".concat(n.substr(0,n.indexOf("qHyperCube")+10)),a=OE):NE.test(e)&&(o="".concat(n.substr(0,n.indexOf("qTreeData")+9)),a=AE);let s=!0;if(CE.test(e)&&(r=+CE.exec(e)[1]),qE.test(e)&&(i=+qE.exec(e)[1]),EE.test(e)){i=-1,r=0;const e=+EE.exec(n)[2];isNaN(e)||(r=e,n=n.replace(/\/\d+$/,"")),s=!1}if(DE.test(e)){const e=i;if(t){i=0;const a=Dq(o,t);i+=(a.qMeasureInfo||[]).length,r>-1?(i=a.qDimensionInfo.slice(0,r).reduce(((e,t)=>e+t.qAttrExprInfo.length),i),r=-1):(i=a.qDimensionInfo.reduce(((e,t)=>e+t.qAttrExprInfo.length),i),i=a.qMeasureInfo.slice(0,e).reduce(((e,t)=>e+t.qAttrExprInfo.length),i)),i+=+DE.exec(n)[1]}else r>-1?(r=-1,i=+DE.exec(n)[1]):i+=+DE.exec(n)[1]+1}return kE.forEach((e=>{let[t,r]=e;n=n.replace(t,r)})),s&&(n=a(n)),n&&"/"!==n[0]&&(n="/".concat(n)),{measureIdx:i,dimensionIdx:r,path:n}}(e.id,n);if("range"===e.type&&t.measureIdx>-1&&t.dimensionIdx>-1){const n=e.brush.ranges();n.length&&(l=!0,a.multiRangeSelectTreeDataValues||(a.multiRangeSelectTreeDataValues={path:t.path,ranges:[]}),n.forEach((e=>a.multiRangeSelectTreeDataValues.ranges.push({qMeasureIx:t.measureIdx,qDimensionIx:t.dimensionIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!0}}))))}else{if("range"===e.type&&t.measureIdx>-1){const n=e.brush.ranges();n.length&&(l=!0,a.rangeSelectHyperCubeValues||(a.rangeSelectHyperCubeValues={path:t.path,ranges:[]}),n.forEach((e=>a.rangeSelectHyperCubeValues.ranges.push({qMeasureIx:t.measureIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!0}}))))}if("range"===e.type&&t.dimensionIdx>-1){const n=e.brush.ranges();n.length&&(l=!0,a.selectHyperCubeContinuousRange||(a.selectHyperCubeContinuousRange={path:t.path,ranges:[]}),n.forEach((e=>a.selectHyperCubeContinuousRange.ranges.push({qDimIx:t.dimensionIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!1}}))))}if("value"===e.type&&t.dimensionIdx>-1)if(r)if(n&&n.qHyperCube&&("P"===n.qHyperCube.qMode||"T"===n.qHyperCube.qMode||"K"===n.qHyperCube.qMode)){const r=n.qHyperCube,o=r.qNoOfLeftDims,s=r.qEffectiveInterColumnSortOrder.indexOf(t.dimensionIdx);if(a.selectPivotCells||(a.selectPivotCells={path:t.path,cells:[]}),e.id===i||!i){const n=e.brush.values().map((e=>+e)).filter((e=>!isNaN(e)));(0===o||s>=o)&&o>-1?n.forEach((e=>{a.selectPivotCells.cells.push({qType:"T",qCol:e,qRow:s-o})})):n.forEach((e=>{a.selectPivotCells.cells.push({qType:"L",qCol:t.dimensionIdx,qRow:e})})),l=!!a.selectPivotCells.cells.length}}else a.selectHyperCubeCells||(a.selectHyperCubeCells={path:t.path,cols:[]}),a.selectHyperCubeCells.cols.push(t.dimensionIdx),e.id!==i&&(i||a.selectHyperCubeCells.values)||(a.selectHyperCubeCells.values=e.brush.values().map((e=>+e)).filter((e=>!isNaN(e))),l=!!a.selectHyperCubeCells.values.length);else{const n=e.brush.values().map((e=>+e)).filter((e=>!isNaN(e)));l=!!n.length,o.push({params:[t.path,t.dimensionIdx,n,!1],method:"selectHyperCubeValues"})}}})),!l&&s?[{method:"resetMadeSelections",params:[]}]:(a.rangeSelectHyperCubeValues&&o.push({method:"rangeSelectHyperCubeValues",params:[a.rangeSelectHyperCubeValues.path,a.rangeSelectHyperCubeValues.ranges,[],null===(u=t.orMode)||void 0===u||u]}),a.selectHyperCubeContinuousRange&&o.push({method:"selectHyperCubeContinuousRange",params:[a.selectHyperCubeContinuousRange.path,a.selectHyperCubeContinuousRange.ranges]}),a.selectHyperCubeCells&&o.push({method:"selectHyperCubeCells",params:[a.selectHyperCubeCells.path,a.selectHyperCubeCells.values,a.selectHyperCubeCells.cols]}),a.selectPivotCells&&o.push({method:"selectPivotCells",params:[a.selectPivotCells.path,a.selectPivotCells.cells]}),a.multiRangeSelectTreeDataValues&&o.push({method:"multiRangeSelectTreeDataValues",params:[a.multiRangeSelectTreeDataValues.path,a.multiRangeSelectTreeDataValues.ranges]}),o);var u}function LE(e){ME.util=e.data("matrix").util,e.data("q",ME),e.formatter("q-number",cE),e.formatter("q-time",xE)}function IE(e){var t=zC(e.layout||{},e.path.split("/").join("."));if(!t)return!1;var n=t.qIsOneAndOnlyOne;return void 0!==n&&n}function RE(e){var t=e.brush,n=e.colorField,r=e.legendAlias,i=e.useLegendCube,o=void 0!==i&&i;!n||/qAttrDimInfo/.test(n)?(t.removeKeyAlias("attrDim/qDimensionInfo/0"),r&&t.removeKeyAlias(r),t.addKeyAlias("attrDim/qDimensionInfo/0","qHyperCube/".concat(n))):o&&t.addKeyAlias(r,"qHyperCube/".concat(n))}LE.qBrushHelper=_E,LE.selections=_E;var PE="Shift";var zE=function e(t,n){return n[t]?e(t+1,n):t},FE=function(e,t){var n=t.reduce((function(e,t){return e[t]=!0,e}),{});return e.reduce((function(e,t,r){var i=zE(r,n);return n[i]=!0,e[r]=i,e}),{})};function jE(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.layout,n=e.filtered,r=void 0===n?{}:n,i=(null==t?void 0:t.qHyperCube)||{},o=i.qDimensionInfo,a=void 0===o?[]:o,s=i.qMeasureInfo,l=void 0===s?[]:s;return{dimensions:FE(a,r.dimensions||[]),measures:FE(l,r.measures||[])}}var BE="selectHyperCubeValues",HE="selectHyperCubeContinuousRange";function VE(e){var t=e.selection,n=e.fieldMap,r=t.method,i=t.params;if(r===BE){var o=n.dimensions[i[1]];void 0!==o&&(i[1]=o)}return r===HE&&i[1].forEach((function(e){var t=n.dimensions[e.qDimIx];void 0!==t&&(e.qDimIx=t)})),t}var $E=[],UE=0,WE=function(e){var t=$E.filter((function(e){var t;return null===(t=e.selections)||void 0===t?void 0:t.isActive()}));t.length&&("Enter"===e.key?t.forEach((function(e){return e.selections.confirm()})):"Escape"!==e.key&&"Esc"!==e.key||t.forEach((function(e){return e.selections.cancel()})))},YE=function(){document.addEventListener("keyup",WE)},KE=function(){document.removeEventListener("keyup",WE)},GE=function(e,t){Object.keys(t).forEach((function(n){e.on(n,t[n])}))},XE=function(e,t){Object.keys(t).forEach((function(n){e.removeListener(n,t[n])}))};function JE(e){var t=e.chart,n=e.document,r=e.selectionInfo,i=e.eventName,o=e.componentName,a=e.brushName,s=void 0===a?"selection":a,l=e.emit,u=void 0===l?"rangeClear":l,c=r.event===i,d=n.querySelector("[data-key='".concat(o,"-edge-0']"));if(c||!d)return!1;var f=t.component(o);return!!f&&(f.emit(u),"string"==typeof s&&t.brush(s).clear(),f)}var QE=["chart","document","selections","selectionInfo"],ZE=function(e){e.chart,e.document,e.selections,e.selectionInfo;var t=MM(e,QE);t.clearDiscrete(),t.clearContinuous(),t.clearMinor(),t.clearRange(),t.clearTap(),t.clearLegend()};function eD(e){var t,n=e.lasso;null!=n&&null!==(t=n.active)&&void 0!==t&&t.call(n)&&(null==n||n.action(!1))}function tD(e){var t,n=e.chart,r=e.selectionInfo,i=e.selectionActions,o=e.actions,a=void 0===o?{}:o,s=e.selections,l=e.selectionEvents;if(!1===i||!1===l)return function(){};var u=i.reset,c=void 0===u?eD:u,d=i.clear,f=!1!==d&&function(e){var t=e.clear,n=void 0===t?ZE:t,r=e.selections,i=e.selectionInfo,o=e.chart;return function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).cleared,t={selections:r,selectionInfo:i,chart:o,document:document,cleared:e};return n(yM({clearDiscrete:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e){var t=e.selectionInfo,n=e.chart,r=e.document,i=e.eventName,o=void 0===i?"discreteRange":i,a=e.componentName,s=void 0===a?"discrete-range-brush":a,l=e.cleared;return JE({selectionInfo:t,chart:n,document:r,eventName:void 0!==l&&l?void 0:o,componentName:s,emit:"areaClear",brushName:e.brushName})}(yM(yM({},t),e))},clearContinuous:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e){var t=e.selectionInfo,n=e.chart,r=e.document,i=e.eventName,o=void 0===i?"continuousRange":i,a=e.componentName,s=void 0===a?"continuous-range-brush":a,l=e.cleared;return JE({selectionInfo:t,chart:n,document:r,eventName:void 0!==l&&l?void 0:o,componentName:s,brushName:e.brushName})}(yM(yM({},t),e))},clearMinor:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e){var t=e.selectionInfo,n=e.chart,r=e.document,i=e.componentName,o=void 0===i?"minor-range-brush":i,a=e.eventName,s=void 0===a?"minorRange":a,l=e.cleared,u=void 0!==l&&l,c=e.brushName,d=JE({selectionInfo:t,chart:n,document:r,eventName:u?void 0:s,componentName:o,brushName:void 0!==c&&c});if(d){var f=d.settings.settings,h=f.scale,p=f.brush,m=n.scale(h).data().fields.map((function(e){return e.id()})),g=n.brush(p),y=g.brushes().filter((function(e){return"range"===e.type&&m.some((function(t){return t===e.id}))}));g&&y.length&&y.forEach((function(e){g.removeRanges(e.brush.ranges().map((function(t){return{key:e.id,range:t}})))}))}}(yM(yM({},t),e))},clearRange:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e){var t=e.selectionInfo,n=e.chart,r=e.document,i=e.selections,o=e.eventName,a=void 0===o?"xAxis":o,s=e.cleared;JE({selectionInfo:t,chart:n,document:r,eventName:void 0!==s&&s?void 0:a,componentName:"".concat(a,"-range-brush"),emit:"areaClear",brushName:!1})&&i.clear()}(yM(yM({},t),e))},clearTap:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e){var t=e.chart,n=e.selectionInfo,r=e.selections,i=e.events,o=void 0===i?["tap"]:i,a=e.brushNames,s=void 0===a?[]:a;if(n&&o.includes(n.event)){var l=n.currentComponent;n.previousComponent!==l&&(r.clear(),s.forEach((function(e){return t.brush(e).end()})))}}(yM(yM({},t),e))},clearLegend:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e){var t=e.selectionInfo,n=e.chart,r=e.document,i=e.selections,o=e.eventName,a=void 0===o?"legendRange":o,s=e.componentName,l=void 0===s?"legend-range-brush":s,u=e.cleared,c=void 0!==u&&u,d=e.brushName;JE({selectionInfo:t,chart:n,document:r,eventName:c?void 0:a,componentName:l,brushName:void 0!==d&&d})&&i.clear()}(yM(yM({},t),e))}},t))}}({clear:d,selections:s,selectionInfo:r,chart:n}),h=function(e){var t=e.chart,n=e.actions,r=e.reset,i=e.clear,o=!1,a={deactivated:function(e){var t=(n||{}).lasso;r({e:e,lasso:void 0!==t&&t})},canceled:function(e){var o=(n||{}).lasso;r({e:e,lasso:void 0!==o&&o}),i({e:e,chart:t,document:document})},cleared:function(e){o||(o=!0,i({e:e,chart:t,document:document,cleared:!0}),o=!1)}};return!1===r&&delete a.deactivated,!1===i&&delete a.cleared,!1===r&&!1===i&&delete a.canceled,a}({chart:n,clear:f,reset:c,actions:a}),p={};Object.entries(h).forEach((function(e){var t=kM(e,2),n=t[0],r=t[1];p[n]=function(e,t){return t?function(n){return t({event:n,defaultFunc:e})}:e}(r,l[n])}));var m=function(e){var t=e.selectionEvents,n=e.selections,r=e.selectionInfo,i=e.clear,o=e.chart,a=e.document,s=t.start,l={selections:n,selectionInfo:r,chart:o,document:a},u=function(e){return Object.assign(r,e||{})},c=function(e){var t=e.event,n=e.components;return function(){return function(e){var t=e.selectionInfo,n=e.clear,r=e.event,i=e.components,o=void 0===i?[]:i;(0,e.setSelectionInfo)(yM(yM({},void 0===t?{}:t),{},{event:r,components:o.map((function(e){return e.key})).filter(Boolean)})),n()}({event:t,components:n,clear:i,chart:o,selectionInfo:r,setSelectionInfo:u})}};return"function"==typeof s?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];s(yM(yM({defaultFunc:c({event:e,components:t}),setSelectionInfo:u,clear:i},l),{},{event:e,components:t}))}:function(e){c({event:e,components:arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]})()}}({selectionEvents:l,selections:s,selectionInfo:r,clear:f,chart:n,document:document});return null==a||null===(t=a.select)||void 0===t||t.on("start",m),Object.entries(p).forEach((function(e){var t=kM(e,2),n=t[0],r=t[1];null==s||s.on(n,r)})),function(){var e;null==a||null===(e=a.select)||void 0===e||e.removeListener("start",m),Object.entries(p).forEach((function(e){var t=kM(e,2),n=t[0],r=t[1];null==s||s.removeListener(n,r)}))}}var nD=[{key:"qHyperCube/qDimensionInfo/0:numeric",includeMax:!1}];function rD(e){var t=e.chart,n=e.actions,r=e.selections,i=e.picassoQ,o=e.config,a=o.allowSimultaneous,s=void 0!==a&&a,l=o.majorScale,u=void 0===l?void 0:l,c=o.selectionActions,d=void 0===c?{}:c,f=d.clear,h=d.reset,p=o.selectionEvents,m=void 0===p?{deactivated:void 0,canceled:void 0,cleared:void 0,start:void 0}:p,g=o.brushEvents,y=void 0===g?{}:g,v=o.brushName,b=void 0===v?"selection":v,x=o.brushMaxListeners,w=void 0===x?20:x,S=o.brushRanges,M=void 0!==S&&S,k=o.interceptors,C=void 0===k?{}:k,q=o.selectionsFn,E=void 0===q?i.selections:q,D=t.brush(b);if("number"==typeof w&&D.setMaxListeners(w),M){var T=!0===M?nD:M;D.configure({ranges:T})}var N={canSelect:!0,getIsSelectionLocked:!1,isInnerDimensionLocked:!1,lockedDimensions:[],singleSelectIndex:0,selectionInfo:{colorField:void 0,components:[],event:void 0,currentComponent:void 0,previousComponent:void 0}},O=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.selections,r=t.brush,i=t.majorScale,o=t.actions,a=t.selectionsFn,s=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).path,l=void 0===s?"/qHyperCubeDef":s;if(!n)return{layout:function(){},filteredFields:function(){},allowSimultaneous:function(){},release:function(){}};var u=++UE,c=null,d={dimensions:[],measures:[]},f=[],h={};n.on=n.on.bind(n),n.isActive=n.isActive.bind(n),n.addListener=n.addListener.bind(n),n.removeListener=n.removeListener.bind(n);var p=function(e){var t=e.brush,n=e.getConfig;return{interceptor:function(e){var r=t.brushes(),i=n(),o=i.allowSimultaneous,a=i.layout,s=void 0===a?{}:a;r.forEach((function(n){var r,i,a;("range"===n.type||null!==(r=e[0])&&void 0!==r&&r.key&&(null===(i=e[0])||void 0===i?void 0:i.key)!==n.id&&0!==o.indexOf(null===(a=e[0])||void 0===a?void 0:a.key))&&t.clear([])}));var l=e.filter((function(e){return-2!==e.value}));if(l.length>1){var u=function(e){var t=e.layout,n=void 0===t?{}:t,r=e.values,i=void 0===r?[]:r;if(null==i||!i.length)return[];var o=Array.from(new Set(i.map((function(e){return e.key})))),a=[];return o.forEach((function(e){var t=IE({layout:n,path:e}),r=i.filter((function(t){return t.key===e})),o=t?[r.pop()]:r;a.push.apply(a,CM(o))})),a.filter(Boolean)}({layout:s,values:l});return u}return l},rangeInterceptor:function(e){var r=t.brushes(),i=n().allowSimultaneous;return r.filter((function(e){return"value"===e.type})).length?(t.clear([]),e):(r.forEach((function(n){var r=n.id===e[0].key||i.includes(n.id)&&i.includes(e[0].key);"range"!==n.type||r||t.clear([])})),e)}}}({brush:r,getConfig:function(){return{layout:c,allowSimultaneous:f}}}),m=p.rangeInterceptor,g=p.interceptor;r.intercept("set-ranges",m),r.intercept("toggle-ranges",m),r.intercept("toggle-values",g),r.intercept("set-values",g),r.intercept("add-values",g),r.on("start",(function(){return n.begin(l)}));var y={activate:function(){},deactivated:function(){return r.end()},cleared:function(){return r.clear()},canceled:function(){return r.end()}};GE(n,y);var v=null==i||null===(e=i.max)||void 0===e?void 0:e.call(i);return null!=o&&o.select?(o.select.on("start",(function(){var e;r.start(),"function"==typeof o.select.getBrushOptions&&(h=(e=o.select).getBrushOptions.apply(e,arguments))})),o.select.on("end",(function(){var e=a(r,h,c),t=jE({layout:c,filtered:d});e.forEach((function(e){var r=VE({selection:e,fieldMap:t});(function(e,t,n){if(t&&void 0!==n&&"selectHyperCubeContinuousRange"===e.method){var r=e.params;if(r&&r[1]&&r[1][0]){var i=r[1][0],o=i.qDimIx,a=i.qRange;"undefined"!==o&&a&&!1===a.qMaxInclEq&&a.qMax>=n&&(a.qMaxInclEq=!0)}}})(r,o.select.brushSelectionIncludeMax,v),n.select(r)}))}))):r.on("update",(function(){var e=a(r,h,c),t=jE({layout:c,filtered:d});e.forEach((function(e){n.select(VE({selection:e,fieldMap:t}))}))})),0===$E.length&&YE(),$E.push({key:u,selections:n}),{layout:function(e){c=e},filteredFields:function(e){d=e},allowSimultaneous:function(e){f=e},release:function(){c=null;var e=$E.indexOf($E.filter((function(e){return e.key===u}))[0]);-1!==e&&$E.splice(e,1),$E.length||KE(),XE(n,y)}}}({brush:D,majorScale:u,actions:n,selections:r,picassoQ:i,selectionsFn:E});!function(e){var t=e.brush,n=e.interceptors,r=void 0===n?{}:n;Object.entries(r).forEach((function(e){var n=kM(e,2),r=n[0],i=n[1];(Array.isArray(i)?i:[i]).forEach((function(e){t.intercept(r,e)}))}))}({brush:D,interceptors:C});var A=function(e){var t=e.chart,n=e.selectionActions,r=e.brush,i=e.actions,o=e.selectionInfo,a=e.selections,s=e.selectionEvents,l=function(e){var t=e.brush,n=e.chart,r=e.selectionInfo,i=e.brushEvents,o=void 0===i?{}:i,a=Object.entries(o).map((function(e){var i=kM(e,2),o=i[0],a=i[1],s=function(){return a({chart:n,selectionInfo:r})};return t.on(o,s),[o,s]}));return function(){a.forEach((function(e){var n=kM(e,2),r=n[0],i=n[1];t.removeListener(r,i)}))}}({brush:r,chart:t,selectionInfo:o,brushEvents:e.brushEvents}),u=tD({chart:t,selectionInfo:o,selectionActions:n,actions:i,selections:a,selectionEvents:s}),c=function(e){var t=e.actions;if(null==t||!t.lasso)return function(){};var n=!1,r=function(e){n||e.key!==PE||(t.lasso.action(!0),n=!0)},i=function(e){e.key===PE&&(t.lasso.action(!1),n=!1)};return document.addEventListener("keydown",r),document.addEventListener("keyup",i),function(){document.removeEventListener("keydown",r),document.removeEventListener("keyup",i)}}({actions:i});return function(){l(),u(),c()}}({chart:t,brush:D,actions:n,selections:r,selectionInfo:N.selectionInfo,selectionActions:{clear:f,reset:h},selectionEvents:m,brushEvents:y});if(s){var _=!0===s?CM(Array(15)).map((function(e,t){return"qHyperCube/qMeasureInfo/".concat(t)})):s;O.allowSimultaneous(_)}return{unbindEvents:A,state:N,picassoSelections:O,brush:D}}var iD=["colorField","useLegendCube"];function oD(e){var t=e.chart,n=e.selections,r=e.actions,i=void 0!==r&&r,o=e.config,a=void 0===o?{}:o,s=rD({chart:t,actions:i,selections:n,picassoQ:LE,config:a}),l=s.unbindEvents,u=s.state,c=s.picassoSelections,d=s.brush,f=a.custom,h=void 0===f?{}:f,p=a.legendAlias,m=void 0===p?void 0:p,g=a.setBrushAliases,y=void 0===g?RE:g;return{getIsDimensionLocked:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return u.lockedDimensions[e]},getIsSelectionLocked:function(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return null!==(e=null==n||null===(t=n.isLocked)||void 0===t?void 0:t.call(n))&&void 0!==e?e:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(null==e||!e.length)return!1;var t=e.filter((function(e){return"object"===bM(e.data)&&Array.isArray(e.data.fields)})).every((function(e){return e.data.fields.every((function(e){var t=e.raw();return!(!t.qLocked&&t.qCardinal)}))}));return t}(r)},getIsSingleSelect:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.singleSelectIndex;return u.singleSelectDimensions[e]},getCanSelect:function(){return u.canSelect},getSelectionsObject:function(){return n},getSelectionInfo:function(){return u.selectionInfo},setLayout:function(e){var t=function(e){var t,n,r,i=e.selections,o=e.picassoSelections,a=e.layout,s={lockedDimensions:[],singleSelectDimensions:[]};null!=i&&null!==(t=i.isModal)&&void 0!==t&&t.call(i)&&i.confirm(),o.layout(a);var l=(null!==(n=null==a?void 0:a.qHyperCube)&&void 0!==n?n:{}).qDimensionInfo,u=void 0===l?[]:l;return s.lockedDimensions=u.map((function(e){return!!e.qLocked})),s.singleSelectDimensions=u.map((function(e,t){return IE({layout:a,path:"qHyperCube/qDimensionInfo/".concat(t)})})),s.singleSelectIndex=function(e){var t,n=((null==e?void 0:e.qHyperCube)||{}).qDimensionInfo,r=void 0===n?[]:n;return null!==(t=r.map((function(e,t){var n;return!(e.qLocked||(null===(n=e.qCardinalities)||void 0===n?void 0:n.qHypercubeCardinal)<=1)&&t})).filter((function(e){return"number"==typeof e}))[0])&&void 0!==t?t:Math.max(r.length-1,0)}(a),s.canSelect=0===u.length||u.some((function(e){return!e.qLocked})),s.dimensionLocked=!(null===(r=u[0])||void 0===r||!r.qLocked),s}({selections:n,picassoSelections:c,layout:e});Object.assign(u,t)},setFilteredFields:function(e){c.filteredFields(e)},setBrushAliases:function(e){var t=e.colorField,n=e.useLegendCube,r=void 0!==n&&n,i=MM(e,iD),o=yM({useLegendCube:r,colorField:t,brush:d,legendAlias:m},i);y(yM(yM({},o),{},{defaultFunc:function(){return RE(o)}}))},destroy:function(){l(),c.release()},custom:yM({},h)}}var aD="'Source Sans Pro', 'Arial', 'sans-serif'",sD="#333333",lD="#595959",uD="#737373",cD="#cccccc",dD="#e6e6e6";function fD(e){var t={};return[].concat(CM(e),CM([["","","color"],["object","","fontFamily"],["object","axis.label.name","color",lD],["object","axis.label.name","fontFamily",aD],["object","axis.label.name","fontSize","12px"],["object","axis.line.major","color",cD],["object","axis.line.minor","color",dD],["object","axis.title","color"],["object","axis.title","fontFamily",aD],["object","axis.title","fontSize","13px"],["object","grid.line.highContrast","color",dD],["object","grid.line.major","color",cD],["object","grid.line.minor","color",dD],["object","label.value","color",lD],["object","label.value","fontFamily",aD],["object","label.value","fontSize","12px"],[!1,"label.value","darkColor",lD],[!1,"label.value","lightColor",dD],["object","outOfRange","color","#999"],["object","legend.title","color",sD],["object","legend.title","fontFamily",aD],["object","legend.title","fontSize","15px"],["object","legend.label","color",lD],["object","legend.label","fontFamily",aD],["object","legend.label","fontSize","13px"],["object","referenceLine.label.name","color",sD],["object","referenceLine.label.name","fontFamily",aD],["object","referenceLine.label.name","fontSize","12px"],["object","referenceLine.outOfBounds","color",dD],["object","referenceLine.outOfBounds","fontFamily",aD],["object","referenceLine.outOfBounds","fontSize","12px"],["object","referenceLine.outOfBounds","backgroundColor",uD,function(e){return"transparent"===e?uD:e}]])).reduce((function(e,n){var r="".concat(n[0],"-").concat(n[1],"-").concat(n[2],"}");return t[r]||(t[r]=!0,e.push(n)),e}),[]).sort((function(e,t){return(e[0].split?e[0].split(".").length:0)-(t[0].split?t[0].split(".").length:0)}))}var hD=function(e){return e};function pD(e){var t=e.theme,n=e.id,r=e.transform,i=e.extend,o=e.matrix,a={},s=r.reduce((function(e,t){var n=kM(t,2),r=n[0],i=n[1];return e[r]=i,e}),{});return o.forEach((function(e){var r=kM(e,5),i=r[0],o=r[1],l=r[2],u=r[3],c=r[4],d=void 0===c?function(e){return e}:c,f=function(e){var t=e.theme,n=e.base,r=e.path,i=e.attribute,o=e.defaultValue,a=void 0===o?void 0:o;if(!t||!1===n)return a;var s=t.getStyle(n,r,i);return void 0===s?a:s}({theme:t,base:"object"===i&&n?"".concat("object",".").concat(n):i,path:o,attribute:l,defaultValue:u}),h=(s["".concat(o,".").concat(l)]||hD)(d(f));jC(a,[o,l].filter(Boolean).join("."),h)})),i.forEach((function(e){var t=kM(e,2),n=t[0],r=t[1];jC(a,n,r)})),a}var mD={dataRelatedPropertiesPaths:["qHyperCube.qGrandTotalRow","qHyperCube.qHasOtherValues","qHyperCube.qSize","qHyperCube.qDimensionInfo[].qAttrDimInfo","qHyperCube.qDimensionInfo[].qCardinalities","qHyperCube.qDimensionInfo[].qMax","qHyperCube.qDimensionInfo[].qMin","qHyperCube.qDimensionInfo[].qStateCounts","qHyperCube.qMeasureInfo[].qApprMaxGlyphCount","qHyperCube.qMeasureInfo[].qAttrExprInfo","qHyperCube.qMeasureInfo[].qMax","qHyperCube.qMeasureInfo[].qMin","qHyperCube.qMeasureInfo[].qTrendLines","qHyperCube.qTreeNodesOnDim","qSelectionInfo"]};function gD(e){const{qHyperCube:t,...n}=e,{qAxisData:r,qDataPages:i,qStackedDataPages:o,qTreeDataPages:a,...s}=t,l=Cg(!0,{},{...n,qHyperCube:{...s,qAxisData:null,qDataPages:null,qStackedDataPages:null,qTreeDataPages:null}}),{dataRelatedPropertiesPaths:u}=mD;return u.forEach((e=>{const t=e.split("[");if(1===t.length)void 0!==zC(l,e)&&jC(l,e,null);else{const e=t[0],n=t[1].split("].")[1];zC(l,e,[]).forEach((e=>{void 0!==zC(e,n)&&jC(e,n,null)}))}})),l}var yD={axes:{trackBy:function({isTime:e,isContinuous:t,isMeasure:n,isMajor:r}){return i=>{if(e||t||n){var o;if("line"===i.type)return null!==(o=i.tickValue)&&void 0!==o?o:"axis";if("text"===i.type)return`${i.tickValue} ${i.text}`;if("container"===i.type){const e=i.children.filter((e=>"text"===e.type)).map((e=>e.text));return`${i.data.value} ${e.join("")}`}return Math.random()}if(r){if("line"===i.type&&void 0===i.tickValue)return"axis";const e=i.transform&&i.transform.match(/rotate/gi)?"rotated":"horizontal";return`${i.data.group?`${i.data.group.value} `:""}${i.data.value} ${i.text} ${e}`}return Math.random()}},compensateForLayoutChanges:function({isMeasure:e,isTime:t,isContinuous:n,isHorizontal:r,dock:i}){return({currentNodes:o,currentRect:a,previousRect:s})=>{const l=a.x-s.x,u=a.y-s.y,c=a.width-s.width,d=a.height-s.height;e?("left"===i&&o.forEach((e=>{"line"===e.type?(e.x1+=c,e.x2+=c):"text"===e.type&&(e.x+=c)})),"left"!==i&&"right"!==i||o.forEach((e=>{var t;("line"===e.type&&(e.x1===e.x2?(e.y1=a.y,e.y2=e.y1+a.height):(Math.round(e.y1)<a.y||e.y1>a.y+a.height)&&(e.strokeWidth=0)),"text"===e.type)&&((e.y<a.y||e.y>a.y+a.height)&&(e.fontSize="1px","#"===(null===(t=e.fill)||void 0===t?void 0:t[0])&&(e.fill=`${e.fill.slice(0,1)}00${e.fill.slice(1)}`)))})),"top"!==i&&"bottom"!==i||o.forEach((e=>{var t;("line"===e.type&&(e.y1===e.y2?(e.x1=a.x,e.x2=e.x1+a.width):(Math.round(e.x1)<a.x||e.x1>a.x+a.width)&&(e.strokeWidth=0)),"text"===e.type)&&((e.x<a.x||e.x>a.x+a.width)&&(e.fontSize="1px","#"===(null===(t=e.fill)||void 0===t?void 0:t[0])&&(e.fill=`${e.fill.slice(0,1)}00${e.fill.slice(1)}`)))}))):t?o.forEach((e=>{"line"===e.type?e.y1===e.y2?e.x2+=c:e.x1===e.x2&&(e.x1-=l,e.x2-=l):"text"===e.type&&(e.x-=l)})):n||r?o.forEach((e=>{"line"===e.type&&e.y1===e.y2&&(e.x1+=l,e.x2+=l+c)})):o.forEach((e=>{"line"===e.type&&e.x1===e.x2&&(e.y1+=u,e.y2+=u+d)}))}}},bars:{trackBy:function(e){return e.data.typeIndex?`${e.data.value} ${e.data.typeIndex.value}`:e.data.measureIndex?`${e.data.value} ${e.data.measureIndex.value}`:e.data.group?`${e.data.value} ${e.data.group.value}`:e.data.stack?`${e.data.value} ${e.data.stack.value}`:`${e.data.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y;0===r&&0===i||e.forEach((e=>{e.children&&e.children.length>0&&e.children.forEach((e=>{void 0!==e.x&&void 0!==e.y?(e.x-=r,e.y-=i):e.transform=`translate(${-r}, ${-i})`}))}))}},barOobs:{compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x;0===t.y-n.y&&0===r||e.forEach((e=>{e.children&&e.children.length>0&&e.children.forEach((e=>{e.opacity=0}))}))}},labels:{trackBy:function(e){if("rect"===e.type)return"-3"===e.data?Math.random():`${e.type} ${e.data} ${e.rotation}`;const t=e.transform&&e.transform.match(/rotate/gi)?"rotated":"horizontal";return`${e.type} ${e.data} ${e.text} ${t}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y;0===r&&0===i||e.forEach((e=>{e.transform&&e.transform.match(/rotate\(-90/gi)?(e.x+=i,e.y-=r):(e.x-=r,e.y-=i)}))},linkData:function(e){return e.data.measureIndex?`${e.data.value} ${e.data.measureIndex.value}`:e.data.group?`${e.data.value} ${e.data.group.value}`:e.data.stack?`${e.data.value} ${e.data.stack.value}`:`${e.data.value}`}},lines:{trackBy:function(e){var t;return"line"===e.type?null!==(t=e.value)&&void 0!==t?t:Math.random():"path"===e.type?`${e.generatorType} ${e.layerObj.id} ${e.data.source.key}`:Math.random()},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y;e.forEach((e=>{if(void 0!==e.x1&&void 0!==e.y1)e.y1===e.y2?(e.x2=e.x1+t.width,e.y1-=i,e.y2-=i):e.x1===e.x2&&(e.y2=e.y1+t.height,e.x1-=r,e.x2-=r);else{const t="x"===e.major.p?r/e.major.size:i/e.major.size,n="y"===e.minor.p?i/e.minor.size:r/e.minor.size;e.points.forEach((e=>{e.modified||(e.major-=t,e.minor-=n,e.minor0-=n,e.modified=!0)}))}}))}},lineOobs:{compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x;0===t.y-n.y&&0===r||e.forEach((e=>{e.opacity=0}))}},markers:{trackBy:function(e){return e.data.line?`${e.data.line.value} ${e.data.major.value}`:`${e.data.major.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y;0===r&&0===i||e.forEach((e=>{switch(e.type){case"circle":e.cx-=r,e.cy-=i;break;case"rect":e.x-=r,e.y-=i;break;case"path":e.transform=`translate(${-r}, ${-i})`}}))}},points:{trackBy:function(e){return e.data.line?`${e.data.line.value} ${e.data.major.value}`:`${e.data.major.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y;0===r&&0===i||e.forEach((e=>{e.cx-=r,e.cy-=i}))}},refLineLabels:{trackBy:function(e){if(void 0!==e.value){if("rect"===e.type)return`${e.value}`;if("text"===e.type)return`${e.value} ${e.text}`}return Math.random()},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y,o=t.width-n.width,a=t.height-n.height;let s=-r,l=-i;e.forEach((e=>{switch(e.dock){case"right":r>0&&(s=t.width);break;case"left":o<0&&(s=-n.width);break;case"top":a<0&&(l=-n.height);break;case"bottom":i>0&&(l=t.height)}switch(e.type){case"text":case"rect":e.x+=s,e.y+=l;break;case"circle":e.cx+=s,e.cy+=l;break;case"path":e.transform=`translate(${s}, ${l})`}}))}},shadowBars:{trackBy:function(){return Math.random()}},cacheProperties:function({viewCache:e,layout:t}){const n=gD(t);e.set("dataIndependentProperties",JSON.stringify(n))},propertiesHaveChanged:function({viewCache:e,layout:t}){const n=gD(t);return e.get("dataIndependentProperties")!==JSON.stringify(n)},nonUpdatingNode:{trackBy:function(){return Math.random()}}};const{getInputValue:vD,extractInfoFromInputValue:bD,resolveValue:xD}=GS;var wD={resolveValue:xD,resolveInnerValues:({refLineLayout:e,refLineModel:t,layoutService:n})=>{if(n.meta.isGroupedByDimension){const r=vD({refLineLayout:e,layoutService:n});return bD(r,t,"innerValues")}},resolveNumInnerValues:({refLineLayout:e,refLineModel:t,layoutService:n})=>{if(n.meta.mode.K)return 0;const r=vD({refLineLayout:e,layoutService:n});return bD(r,t,"numInnerValues")||0},resolveValueText:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const{dimensionValuesInfo:r}=t,{canBeContinuous:i}=n.meta,o=vD({refLineLayout:e,layoutService:n});return r[o]&&i?r[o].qText:o},resolveValueInfo:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const r=vD({refLineLayout:e,layoutService:n}),{dimensionRefLineInfo:i}=t;return i[r]}};const SD=({isDimension:e,refLineLayout:t,refLineModel:n,layoutService:r,colorModel:i,dockService:o,chart:a,scale:s,axis:l,invert:u,component:c,isContinuous:d})=>{var f,h;const p={dir:l,line:{strokeWidth:(null==t||null===(f=t.style)||void 0===f?void 0:f.lineThickness)||2,strokeDasharray:null==t||null===(h=t.style)||void 0===h?void 0:h.lineType,stroke:i.resolveUIColor(t.paletteColor||{index:t.color})}};return!e||r.meta.isContinuous?(p.scale=s,p.value=t.refLineExpr.value):(p.valueInfo=wD.resolveValueInfo({refLineLayout:t,refLineModel:n,layoutService:r}),p.value=()=>{var e;const i=GS.getScaledPosition({scale:a.scale(s),value:wD.resolveValue({refLineLayout:t,refLineModel:n,layoutService:r}),valueInfo:p.valueInfo,size:null===(e=a.component(c))||void 0===e?void 0:e.rect["horizontal"===o.meta.major.orientation?"width":"height"],align:t.align,invert:u,layoutService:r,isContinuous:d});return Number.isNaN(i)?void 0:i}),p};function MD({isDimension:e,refLineModel:t={},layoutService:n,colorModel:r,dockService:i,animationsEnabled:o,chart:a,scale:s,axis:l,rtl:u,key:c,mainComponentKey:d,path:f,minimumLayoutMode:h}){const p=e?t.dimensionRefLines:f?t.query.getRefLines(f):t.measureRefLines;if(!p.length)return!1;const m={key:c,type:"ref-line",layout:{minimumLayoutMode:h},lines:{y:[],x:[]},style:{oob:{show:!1}},preferredSize:()=>({size:0,edgeBleed:{left:1,right:1,top:1,bottom:1}}),animations:{enabled:o,trackBy:yD.lines.trackBy,compensateForLayoutChanges:yD.lines.compensateForLayoutChanges}},g=!(!e||"horizontal"!==i.meta.major.orientation||!u),y=!e||n.meta.isContinuous;return p.forEach((o=>{m.lines[l].push(SD({isDimension:e,refLineLayout:o,refLineModel:t,layoutService:n,colorModel:r,dockService:i,chart:a,scale:s,axis:l,invert:g,component:d,isContinuous:y}))})),m}const kD={referenceLine:{label:{name:{fontFamily:"Source Sans Pro, sans-serif",fontSize:"12px"}},outOfBounds:{backgroundColor:"#737373",color:"#e6e6e6",fontFamily:"Source Sans Pro, sans-serif",fontSize:"10px"}}},CD=({isDimension:e,layoutService:t,animationsEnabled:n,style:r,labels:i,scale:o,formatter:a,dock:s,key:l,rtl:u,theme:c,isContinuous:d,localeInfo:f})=>({key:l,type:"reference-line-labels",renderer:"svg",labels:i,formatter:a,scale:o,layoutService:t,layout:{dock:s,rtl:u},theme:c,isContinuous:d,isDimension:e,localeInfo:f,style:{label:{fontFamily:r.referenceLine.label.name.fontFamily,fontSize:r.referenceLine.label.name.fontSize,padding:{top:2,bottom:2,left:u?2:4,right:u?4:2},background:{padding:{top:1,bottom:1,left:2,right:2}},maxWidth:100,gap:"left"===s||"right"===s?10:16},oob:{size:8,fill:r.referenceLine.outOfBounds.backgroundColor,text:{fontFamily:r.referenceLine.outOfBounds.fontFamily,fontSize:r.referenceLine.outOfBounds.fontSize,fill:r.referenceLine.outOfBounds.color,background:{fill:r.referenceLine.outOfBounds.backgroundColor}}}},animations:{enabled:n,trackBy:yD.refLineLabels.trackBy,compensateForLayoutChanges:yD.refLineLabels.compensateForLayoutChanges}}),qD=({refLineLayout:e,refLineModel:t,layoutService:n,colorModel:r,scale:i,theme:o,isContinuous:a})=>{const s=r.resolveUIColor(e.paletteColor||{index:e.color}),l={align:e.align,text:e.label,fill:e.coloredBackground?o.getContrastingColorTo(s):s,showValue:!1!==e.showValue,showLabel:!1!==e.showLabel,inputValue:e.refLineExpr.value,inputValueLabel:e.refLineExpr.label};return e.coloredBackground&&(l.background={fill:s}),a?(l.scale=i,l.value=e.refLineExpr.value):(l.value=()=>wD.resolveValue({refLineLayout:e,refLineModel:t,layoutService:n}),l.valueText=()=>wD.resolveValueText({refLineLayout:e,refLineModel:t,layoutService:n}),l.valueInfo=()=>wD.resolveValueInfo({refLineLayout:e,refLineModel:t,layoutService:n})),l};function ED({isDimension:e,refLineModel:t={},layoutService:n,colorModel:r,animationsEnabled:i,dock:o,scale:a,style:s,formatter:l,theme:u,localeInfo:c,rtl:d,key:f,path:h}){const p=e?t.dimensionRefLineLabels:h?t.query.getRefLineLabels(h):t.measureRefLineLabels;if(!p.length)return[];const m=[],g=!e||n.meta.isContinuous,y=p.map((e=>qD({refLineLayout:e,refLineModel:t,layoutService:n,colorModel:r,scale:a,theme:u,isContinuous:g})));return m.push(CD({isDimension:e,rtl:d,style:Cg(!0,kD,s),dock:o,key:f,labels:y,scale:a,formatter:l,layoutService:n,animationsEnabled:i,theme:u,isContinuous:g,localeInfo:c})),m}function DD({layoutService:e,discreteModel:t}){const{isContinuous:n,canBeContinuous:r,isGroupedByDimension:i}=e.meta,o=e.getLayout(),a="K"===o.qHyperCube.qMode,s=zg.dimensionless(o),l=GS.getMeasureRefLines(o),u=GS.getDimensionRefLines(o,s),c=GS.getMeasureRefLineLabels(o),d=GS.getDimensionRefLineLabels(o,s);let f={},h={};const p=()=>!(!u||!u.length)&&!u.every((t=>{const o=GS.getInputValue({refLineLayout:t,layoutService:e});return(t=>{if(r){const n=e.getLayoutValue("qHyperCube.qDimensionInfo.0"),{qMin:r,qMax:i}=n;return GS.isOutOfRange({value:t,qMin:r,qMax:i})}return!1})(o)||(t=>{if(!h[t])return!1;if(!n&&i){const n={valueInfo:h[t]},r="S"===e.getHyperCubeValue("qMode")?"qDataPages.0":"qStackedDataPages.0",i=e.getHyperCubeValue(r);return GS.isOutOfDataPages({label:n,dataPages:i})}return!0})(o)})),m={isKMode:a,canBeContinuous:r,measureRefLines:l,dimensionRefLines:u,measureRefLineLabels:c,dimensionRefLineLabels:d,dimensionRefLineInfo:h,dimensionValuesInfo:f,query:{getRefLines:e=>GS.getRefLines(o,e),getRefLineLabels:e=>GS.getRefLineLabels(o,e)},update:()=>{h=m.dimensionRefLineInfo,p()&&(f=GS.getDimensionValuesInfo({layout:o,canBeContinuous:r,discreteModel:t,layoutService:e}),m.dimensionValuesInfo=f,u.forEach((t=>{const n=GS.getInputValue({refLineLayout:t,layoutService:e});f[n]&&(h[n]?(h[n].innerValues=f[n].innerValues,h[n].minOrder=Math.min(h[n].minOrder,f[n].minOrder),h[n].maxOrder=Math.max(h[n].maxOrder,f[n].maxOrder),h[n].isMinOrderOk=h[n].isMinOrderOk||f[n].isMinOrderOk,h[n].isMaxOrderOk=h[n].isMaxOrderOk||f[n].isMaxOrderOk):h[n]={id:f[n].id,qText:f[n].qText,innerValues:f[n].innerValues,minOrder:f[n].minOrder,maxOrder:f[n].maxOrder,isMinOrderOk:f[n].isMinOrderOk,isMaxOrderOk:f[n].isMaxOrderOk},h[n].numInnerValues=(h[n].maxOrder||0)-(h[n].minOrder||0)+1)})))}};return m.update(),m}const TD={combineBounds(e){let t=Number.MAX_VALUE,n=-Number.MAX_VALUE,r=Number.MAX_VALUE,i=-Number.MAX_VALUE;return e.forEach((e=>{e&&(t=Math.min(t,e.x,e.x+e.width),n=Math.max(n,e.x,e.x+e.width),r=Math.min(r,e.y,e.y+e.height),i=Math.max(i,e.y,e.y+e.height))})),{x:t,y:r,width:n-t,height:i-r}}},ND=(e,t,n)=>{if(!e)return Promise.resolve();let r=xS.generate(t,n);return Cg(!0,t,n),r&&r.length?(r=r.map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}))),e.applyPatches(r,!0)):Promise.resolve()},OD=e=>{var t;return!(!e||e.qHasSoftPatches||e.qExtendsId||!(((null===(t=e.qMeta)||void 0===t?void 0:t.privileges)||[]).indexOf("update")>-1))};function AD(e,t=!1){const n=t?"IM_5791_SVG_LABEL_RENDERING":"IM_4962_SVG_CHART_LABELS";if(null!=e&&e.isEnabled(n))return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?void 0:"svg"}const _D={ref:null,refFn:e=>{var t;const n=null===(t=e.qHyperCubeDef.qMeasures)||void 0===t?void 0:t.findIndex((e=>{var t;return"colorByExpression"===(null===(t=e.qAttributeExpressions)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.id)}));return`qHyperCubeDef.qMeasures.${-1===n?0:n}.qAttributeExpressions.0.qExpression`},change(e){var t;const n=null===(t=e.qHyperCubeDef)||void 0===t||null===(t=t.qMeasures)||void 0===t?void 0:t.findIndex((e=>{var t;return"colorByExpression"===(null===(t=e.qAttributeExpressions)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.id)})),r=Lg.getValue(e,`qHyperCubeDef.qMeasures.${-1===n?0:n}.qAttributeExpressions.0`),i=Lg.getValue(e,"color");r&&(r.id="colorByExpression",i&&(i.colorExpression=r.qExpression))}};var LD={exports:{}},ID={},RD=Symbol.for("react.element"),PD=Symbol.for("react.portal"),zD=Symbol.for("react.fragment"),FD=Symbol.for("react.strict_mode"),jD=Symbol.for("react.profiler"),BD=Symbol.for("react.provider"),HD=Symbol.for("react.context"),VD=Symbol.for("react.forward_ref"),$D=Symbol.for("react.suspense"),UD=Symbol.for("react.memo"),WD=Symbol.for("react.lazy"),YD=Symbol.iterator;var KD={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},GD=Object.assign,XD={};function JD(e,t,n){this.props=e,this.context=t,this.refs=XD,this.updater=n||KD}function QD(){}function ZD(e,t,n){this.props=e,this.context=t,this.refs=XD,this.updater=n||KD}JD.prototype.isReactComponent={},JD.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},JD.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},QD.prototype=JD.prototype;var eT=ZD.prototype=new QD;eT.constructor=ZD,GD(eT,JD.prototype),eT.isPureReactComponent=!0;var tT=Array.isArray,nT=Object.prototype.hasOwnProperty,rT={current:null},iT={key:!0,ref:!0,__self:!0,__source:!0};function oT(e,t,n){var r,i={},o=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(o=""+t.key),t)nT.call(t,r)&&!iT.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(1===s)i.children=n;else if(1<s){for(var l=Array(s),u=0;u<s;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===i[r]&&(i[r]=s[r]);return{$$typeof:RD,type:e,key:o,ref:a,props:i,_owner:rT.current}}function aT(e){return"object"==typeof e&&null!==e&&e.$$typeof===RD}var sT=/\/+/g;function lT(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function uT(e,t,n,r,i){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var a=!1;if(null===e)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case RD:case PD:a=!0}}if(a)return i=i(a=e),e=""===r?"."+lT(a,0):r,tT(i)?(n="",null!=e&&(n=e.replace(sT,"$&/")+"/"),uT(i,t,n,"",(function(e){return e}))):null!=i&&(aT(i)&&(i=function(e,t){return{$$typeof:RD,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(sT,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=""===r?".":r+":",tT(e))for(var s=0;s<e.length;s++){var l=r+lT(o=e[s],s);a+=uT(o,t,n,l,i)}else if(l=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=YD&&e[YD]||e["@@iterator"])?e:null}(e),"function"==typeof l)for(e=l.call(e),s=0;!(o=e.next()).done;)a+=uT(o=o.value,t,n,l=r+lT(o,s++),i);else if("object"===o)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function cT(e,t,n){if(null==e)return e;var r=[],i=0;return uT(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function dT(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var fT={current:null},hT={transition:null},pT={ReactCurrentDispatcher:fT,ReactCurrentBatchConfig:hT,ReactCurrentOwner:rT};ID.Children={map:cT,forEach:function(e,t,n){cT(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return cT(e,(function(){t++})),t},toArray:function(e){return cT(e,(function(e){return e}))||[]},only:function(e){if(!aT(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},ID.Component=JD,ID.Fragment=zD,ID.Profiler=jD,ID.PureComponent=ZD,ID.StrictMode=FD,ID.Suspense=$D,ID.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=pT,ID.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=GD({},e.props),i=e.key,o=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(o=t.ref,a=rT.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)nT.call(t,l)&&!iT.hasOwnProperty(l)&&(r[l]=void 0===t[l]&&void 0!==s?s[l]:t[l])}var l=arguments.length-2;if(1===l)r.children=n;else if(1<l){s=Array(l);for(var u=0;u<l;u++)s[u]=arguments[u+2];r.children=s}return{$$typeof:RD,type:e.type,key:i,ref:o,props:r,_owner:a}},ID.createContext=function(e){return(e={$$typeof:HD,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:BD,_context:e},e.Consumer=e},ID.createElement=oT,ID.createFactory=function(e){var t=oT.bind(null,e);return t.type=e,t},ID.createRef=function(){return{current:null}},ID.forwardRef=function(e){return{$$typeof:VD,render:e}},ID.isValidElement=aT,ID.lazy=function(e){return{$$typeof:WD,_payload:{_status:-1,_result:e},_init:dT}},ID.memo=function(e,t){return{$$typeof:UD,type:e,compare:void 0===t?null:t}},ID.startTransition=function(e){var t=hT.transition;hT.transition={};try{e()}finally{hT.transition=t}},ID.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},ID.useCallback=function(e,t){return fT.current.useCallback(e,t)},ID.useContext=function(e){return fT.current.useContext(e)},ID.useDebugValue=function(){},ID.useDeferredValue=function(e){return fT.current.useDeferredValue(e)},ID.useEffect=function(e,t){return fT.current.useEffect(e,t)},ID.useId=function(){return fT.current.useId()},ID.useImperativeHandle=function(e,t,n){return fT.current.useImperativeHandle(e,t,n)},ID.useInsertionEffect=function(e,t){return fT.current.useInsertionEffect(e,t)},ID.useLayoutEffect=function(e,t){return fT.current.useLayoutEffect(e,t)},ID.useMemo=function(e,t){return fT.current.useMemo(e,t)},ID.useReducer=function(e,t,n){return fT.current.useReducer(e,t,n)},ID.useRef=function(e){return fT.current.useRef(e)},ID.useState=function(e){return fT.current.useState(e)},ID.useSyncExternalStore=function(e,t,n){return fT.current.useSyncExternalStore(e,t,n)},ID.useTransition=function(){return fT.current.useTransition()},ID.version="18.2.0",LD.exports=ID;var mT=LD.exports,gT=fg(mT),yT=t({__proto__:null,default:gT},[mT]);const vT={d:"M7 4h9v1H7zm2 4h7v1H9zm2 4h5v1h-5zM1 4v3.526a3.5 3.5 0 0 0 3.5 3.5h2.31L5.22 9.402l.715-.7L8.7 11.527 5.935 14.35l-.714-.7 1.59-1.624H4.5a4.5 4.5 0 0 1-4.5-4.5V4z"},bT={d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7Z"},xT={d:"M 6 2 h 10 V 1 H 6 Z m 5 5 h 5 V 6 h -5 Z m 5 5 h -5 v -1 h 5 Z M 5 10 h 1 v 2.663 a 3.5 3.5 0 1 0 -2.922 0.036 l -0.406 0.914 A 4.501 4.501 0 1 1 7.329 13 H 9 v 1 H 5 Z"},wT={d:"M13,7 L8,7 L13,7 L13,4.98151367 C13,2.23029964 10.7614237,0 8,0 C5.23857625,0 3,2.23029964 3,4.98151367 L3,7 L3.75,7 L3,7 L4.5,7 L4.5,5.33193359 C4.5,3.21561511 5.54860291,1.5 8,1.5 C10.4513971,1.5 11.5,3.21561511 11.5,5.33193359 L11.5,7 L12.25,7 L3,7 C2.44771525,7 2,7.44771525 2,8 L2,15 C2,15.5522847 2.44771525,16 3,16 L13,16 C13.5522847,16 14,15.5522847 14,15 L14,8 C14,7.44771525 13.5522847,7 13,7 L3,7 L13,7 Z"},ST={d:"m 13.914 4.5 l -7.707 7.707 L 2 8 l 0.707 -0.707 l 3.5 3.5 l 7 -7 Z"},MT={d:"M2.4,4 L13.6,4 C13.7104569,4 13.8,4.08954305 13.8,4.2 C13.8,4.24327404 13.7859644,4.28538077 13.76,4.32 L8.16,11.7866667 C8.09372583,11.8750322 7.96836556,11.8929408 7.88,11.8266667 C7.86483887,11.8152958 7.85137085,11.8018278 7.84,11.7866667 L2.24,4.32 C2.17372583,4.23163444 2.19163444,4.10627417 2.28,4.04 C2.31461923,4.01403557 2.35672596,4 2.4,4 Z"},kT={d:"M4,13.6 L4,2.4 C4,2.28954305 4.08954305,2.2 4.2,2.2 C4.24327404,2.2 4.28538077,2.21403557 4.32,2.24 L11.7866667,7.84 C11.8750322,7.90627417 11.8929408,8.03163444 11.8266667,8.12 C11.8152958,8.13516113 11.8018278,8.14862915 11.7866667,8.16 L4.32,13.76 C4.23163444,13.8262742 4.10627417,13.8083656 4.04,13.72 C4.01403557,13.6853808 4,13.643274 4,13.6 Z"},CT={single:"N",drillDown:"H",cyclic:"C"},qT={N:void 0,H:vT,C:xT},ET=(e,t)=>{switch(e.qGrouping){case CT.single:return;case CT.drillDown:return{path:vT,tooltip:"Tooltip.dimensions.drilldown",onClick:void 0};case CT.cyclic:return{path:t?bT:xT,tooltip:"Tooltip.dimensions.cyclic",onClick:t?({onError:n})=>{t.getDimension(e.qLibraryId).then((e=>{e.stepCycle?e.stepCycle(1):n()})).catch((()=>null))}:void 0};default:return}};function DT(e,t,n){(function({model:e,properties:t}){return e.modifiers?e.modifiers.apply({model:e,properties:t}):Promise.resolve()})({model:e,properties:n}).then((()=>{e.colorSupport&&e.colorSupport.colorByUpdater(n,"qHyperCubeDef.");let r=xS.generate(t,n);r&&r.length&&(r=r.map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}))),e.applyPatches(r,!0))}))}function TT(e,t,n,r,i,o){e.getEffectiveProperties().then((a=>{const s=a.qHyperCubeDef[r].findIndex((e=>e.qDef.cId===t)),l=a.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r].findIndex((e=>e.qDef.cId===n)),u=Cg(!0,{},a),c=u.qHyperCubeDef[r][s],d=u.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l];d.qAttributeDimensions=c.qAttributeDimensions,c.qAttributeDimensions=[],o||(d.qAttributeExpressions=c.qAttributeExpressions,c.qAttributeExpressions=[]),u.qHyperCubeDef[r][s]=d,u.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l]=c,i&&i({oldItem:c,newItem:d,oldProperties:a,newProperties:u,model:e}),DT(e,a,u)}))}function NT(e){return e.qGrouping===CT.single?e.qFallbackTitle||"":e.title||""}const OT=async(e,t,n,r,i="/qHyperCubeDef")=>{switch(e.qGrouping){case CT.drillDown:{const n=e.qGroupFallbackTitles.slice(0,e.qGroupPos+1).map(((n,o)=>({id:`${e.cId}-${o}`,title:n,selected:e.qGroupPos===o,onSelect:()=>{t.drillUp(i,r,e.qGroupPos-o)}})));return{id:e.cId,icon:vT,groupItem:!0,title:e.title,selected:!1,children:n}}case CT.cyclic:{const t=await(null==n?void 0:n.getDimension(e.qLibraryId)),r=!(null!=t&&t.setActiveField)?[]:e.qGroupFallbackTitles.map(((n,r)=>({id:`${e.cId}-${r}`,title:n,selected:e.qGroupPos===r,onSelect:()=>{t.setActiveField(r).catch((()=>null))}})));return{id:e.cId,icon:xT,groupItem:!0,title:e.title,selected:!1,children:r}}default:return{selected:!0,id:e.cId,title:NT(e)}}},AT=(e,t)=>{const n=[],r=[];return t.forEach((t=>{t.qCalcCondition.qCond.qv&&r.push(e.evaluate(t.qCalcCondition.qCond.qv).then((e=>{"0"===e&&n.push(t.qDef.cId)})))})),Promise.all(r).then((()=>n))},_T=async(e,t,n,r,i)=>{const o=await AT(e,n),a=n.filter((e=>!o.includes(e.qDef.cId))),s=await Promise.all(a.map((async n=>{const o=await((e,t)=>{if(e.qLibraryId)return t.getDimension(e.qLibraryId).then((e=>e.getLayout())).catch((()=>null))})(n,e),a=await function(e,t,n,r){if(e.qLibraryId)return r?r.qDim.qGrouping===CT.single&&r.qDim.qLabelExpression?Promise.resolve(r.qDim.qLabelExpression):Promise.resolve(r.qDim.title):Promise.resolve(n.get("Object.ErrorMessage.MissingDimension"));const i=e.qDef.qLabelExpression;if(i)return t.evaluate(i);const o=e.qDef.qFieldLabels[0]||e.qDef.qFieldDefs[0];return Promise.resolve(o)}(n,e,r,o),s=(null==o?void 0:o.qDim.qGrouping)||n.qDef.qGrouping,l=qT[s],u=s!==CT.single;return{id:n.qDef.cId,icon:l,groupItem:u,selected:!1,title:a,onSelect(e){TT(t,e,n.qDef.cId,"qDimensions",i)}}})));return s};function LT({column:e,dir:t,dock:n,altList:r,model:i,translator:o,app:a,onChange:s,activeInfo:l,allowChangeOfAlternatives:u}){const c=l.qGrouping===CT.single;return 0===r.length&&c?null:{dir:t,dock:n,getPopoverOptions:async()=>{const t=await OT(l,i,a,e),n=u?await _T(a,i,r,o,s):[];return(c||0===t.children.length)&&0===n.length?[]:[t,...n]}}}function IT(e,t,n,r,i="/qHyperCubeDef"){return{breadcrumbs:e.qGrouping===CT.drillDown?e.qGroupFallbackTitles.slice(0,e.qGroupPos):[],icon:ET(e,r),index:t,locked:!!e.qLocked,text:e.qGrouping===CT.single?e.qFallbackTitle:e.qGroupFallbackTitles[e.qGroupPos],popoverText:NT(e),...n&&{drillUp(e){n.drillUp(i,t,e)}},id:e.cId}}function RT({activeInfo:e,altList:t,app:n,dir:r,dock:i,model:o,onChange:a,skipAttributeExpressions:s,translator:l,allowChangeOfAlternatives:u}){return 0===t.length?null:{dir:r,dock:i,getPopoverOptions:async()=>{const r=[{id:e.cId,title:e.qFallbackTitle,selected:!0,onSelect:()=>{}}],i=await AT(n,t),c=t.filter((e=>!i.includes(e.qDef.cId))),d=u?await Promise.all(c.map((async e=>{const t=await function(e,t,n){if(e.qLibraryId)return t.getMeasure(e.qLibraryId).then((e=>e.getLayout())).catch((()=>null)).then((e=>e?e.qMeasure.qLabelExpression?e.qMeasure.qLabelExpression:e.qMeasure.qLabel||e.qMeasure.qDef:n.get("Object.ErrorMessage.MissingMeasure")));const r=e.qDef.qLabelExpression;if(r)return t.evaluate(r);const i=e.qDef.qLabel||e.qDef.qDef;return Promise.resolve(i)}(e,n,l);return{id:e.qDef.cId,selected:!1,title:t,onSelect(t){TT(o,t,e.qDef.cId,"qMeasures",a,s)}}}))):[];return 0===d.length?[]:[...r,...d]}}}function PT(e,t){return{breadcrumbs:[],index:t,locked:!1,text:e.qFallbackTitle,popoverText:e.qFallbackTitle,id:e.cId}}function zT(){return zT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zT.apply(this,arguments)}var FT={exports:{}};function jT(){}function BT(){}BT.resetWarningCache=jT;FT.exports=function(){function e(e,t,n,r,i,o){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==o){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:BT,resetWarningCache:jT};return n.PropTypes=n,n}();var HT=fg(FT.exports),VT={black:"#000",white:"#fff"},$T={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},UT={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},WT={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},YT={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},KT={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},GT={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},XT={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};function JT(){return JT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},JT.apply(this,arguments)}function QT(e){return QT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},QT(e)}function ZT(e){return e&&"object"===QT(e)&&e.constructor===Object}function eN(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?JT({},e):e;return ZT(e)&&ZT(t)&&Object.keys(t).forEach((function(i){"__proto__"!==i&&(ZT(t[i])&&i in e?r[i]=eN(e[i],t[i],n):r[i]=t[i])})),r}function tN(e){var t=function(e,t){if("object"!==QT(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==QT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===QT(t)?t:String(t)}function nN(e,t,n){return(t=tN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rN(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}function iN(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function oN(e){if(e.type)return e;if("#"===e.charAt(0))return oN(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(rN(3,e));var r=e.substring(t+1,e.length-1).split(",");return r=r.map((function(e){return parseFloat(e)})),{type:n,values:r}}function aN(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function sN(e){var t="hsl"===(e=oN(e)).type?oN(function(e){var t=(e=oN(e)).values,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return i-o*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),aN({type:s,values:l})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function lN(e,t){return e=oN(e),t=iN(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,aN(e)}function uN(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function cN(e,t){if(null==e)return{};var n,r,i=uN(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var dN=["xs","sm","md","lg","xl"];function fN(e,t,n){var r;return JT({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),JT({paddingLeft:t(2),paddingRight:t(2)},n,nN({},e.up("sm"),JT({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},nN(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),nN(r,e.up("sm"),{minHeight:64}),r)},n)}var hN={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:VT.white,default:XT[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},pN={text:{primary:VT.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:XT[800],default:"#303030"},action:{active:VT.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function mN(e,t,n,r){var i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=oN(e),t=iN(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return aN(e)}(e.main,i):"dark"===t&&(e.dark=function(e,t){if(e=oN(e),t=iN(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return aN(e)}(e.main,o)))}function gN(e){var t=e.primary,n=void 0===t?{light:WT[300],main:WT[500],dark:WT[700]}:t,r=e.secondary,i=void 0===r?{light:UT.A200,main:UT.A400,dark:UT.A700}:r,o=e.error,a=void 0===o?{light:$T[300],main:$T[500],dark:$T[700]}:o,s=e.warning,l=void 0===s?{light:GT[300],main:GT[500],dark:GT[700]}:s,u=e.info,c=void 0===u?{light:YT[300],main:YT[500],dark:YT[700]}:u,d=e.success,f=void 0===d?{light:KT[300],main:KT[500],dark:KT[700]}:d,h=e.type,p=void 0===h?"light":h,m=e.contrastThreshold,g=void 0===m?3:m,y=e.tonalOffset,v=void 0===y?.2:y,b=cN(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function x(e){var t=function(e,t){var n=sN(e),r=sN(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,pN.text.primary)>=g?pN.text.primary:hN.text.primary;return t}var w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=JT({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(rN(4,t));if("string"!=typeof e.main)throw new Error(rN(5,JSON.stringify(e.main)));return mN(e,"light",n,v),mN(e,"dark",r,v),e.contrastText||(e.contrastText=x(e.main)),e},S={dark:pN,light:hN};return eN(JT({common:VT,type:p,primary:w(n),secondary:w(i,"A400","A200","A700"),error:w(a),warning:w(l),info:w(c),success:w(f),grey:XT,contrastThreshold:g,getContrastText:x,augmentColor:w,tonalOffset:v},S[p]),b)}function yN(e){return Math.round(1e5*e)/1e5}function vN(e){return yN(e)}var bN={textTransform:"uppercase"},xN='"Roboto", "Helvetica", "Arial", sans-serif';function wN(e,t){var n="function"==typeof t?t(e):t,r=n.fontFamily,i=void 0===r?xN:r,o=n.fontSize,a=void 0===o?14:o,s=n.fontWeightLight,l=void 0===s?300:s,u=n.fontWeightRegular,c=void 0===u?400:u,d=n.fontWeightMedium,f=void 0===d?500:d,h=n.fontWeightBold,p=void 0===h?700:h,m=n.htmlFontSize,g=void 0===m?16:m,y=n.allVariants,v=n.pxToRem,b=cN(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),x=a/14,w=v||function(e){return"".concat(e/g*x,"rem")},S=function(e,t,n,r,o){return JT({fontFamily:i,fontWeight:e,fontSize:w(t),lineHeight:n},i===xN?{letterSpacing:"".concat(yN(r/t),"em")}:{},o,y)},M={h1:S(l,96,1.167,-1.5),h2:S(l,60,1.2,-.5),h3:S(c,48,1.167,0),h4:S(c,34,1.235,.25),h5:S(c,24,1.334,0),h6:S(f,20,1.6,.15),subtitle1:S(c,16,1.75,.15),subtitle2:S(f,14,1.57,.1),body1:S(c,16,1.5,.15),body2:S(c,14,1.43,.15),button:S(f,14,1.75,.4,bN),caption:S(c,12,1.66,.4),overline:S(c,12,2.66,1,bN)};return eN(JT({htmlFontSize:g,pxToRem:w,round:vN,fontFamily:i,fontSize:a,fontWeightLight:l,fontWeightRegular:c,fontWeightMedium:f,fontWeightBold:p},M),b,{clone:!1})}function SN(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var MN=["none",SN(0,2,1,-1,0,1,1,0,0,1,3,0),SN(0,3,1,-2,0,2,2,0,0,1,5,0),SN(0,3,3,-2,0,3,4,0,0,1,8,0),SN(0,2,4,-1,0,4,5,0,0,1,10,0),SN(0,3,5,-1,0,5,8,0,0,1,14,0),SN(0,3,5,-1,0,6,10,0,0,1,18,0),SN(0,4,5,-2,0,7,10,1,0,2,16,1),SN(0,5,5,-3,0,8,10,1,0,3,14,2),SN(0,5,6,-3,0,9,12,1,0,3,16,2),SN(0,6,6,-3,0,10,14,1,0,4,18,3),SN(0,6,7,-4,0,11,15,1,0,4,20,3),SN(0,7,8,-4,0,12,17,2,0,5,22,4),SN(0,7,8,-4,0,13,19,2,0,5,24,4),SN(0,7,9,-4,0,14,21,2,0,5,26,4),SN(0,8,9,-5,0,15,22,2,0,6,28,5),SN(0,8,10,-5,0,16,24,2,0,6,30,5),SN(0,8,11,-5,0,17,26,2,0,6,32,5),SN(0,9,11,-5,0,18,28,2,0,7,34,6),SN(0,9,12,-6,0,19,29,2,0,7,36,6),SN(0,10,13,-6,0,20,31,3,0,8,38,7),SN(0,10,13,-6,0,21,33,3,0,8,40,7),SN(0,10,14,-6,0,22,35,3,0,8,42,7),SN(0,11,14,-7,0,23,36,3,0,9,44,8),SN(0,11,15,-7,0,24,38,3,0,9,46,8)],kN={borderRadius:4};function CN(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qN(e,t){if(e){if("string"==typeof e)return CN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?CN(e,t):void 0}}function EN(e){return function(e){if(Array.isArray(e))return CN(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||qN(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function DN(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||qN(e,t)||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.")}()}function TN(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=function(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===n.length?t(1):1===n.length?t(n[0]):n.map((function(e){if("string"==typeof e)return e;var n=t(e);return"number"==typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n}var NN={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},ON={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function AN(e){return"".concat(Math.round(e),"ms")}var _N={easing:NN,duration:ON,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,r=void 0===n?ON.standard:n,i=t.easing,o=void 0===i?NN.easeInOut:i,a=t.delay,s=void 0===a?0:a;return cN(t,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof r?r:AN(r)," ").concat(o," ").concat("string"==typeof s?s:AN(s))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}},LN={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function IN(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,i=void 0===r?{}:r,o=e.palette,a=void 0===o?{}:o,s=e.spacing,l=e.typography,u=void 0===l?{}:l,c=cN(e,["breakpoints","mixins","palette","spacing","typography"]),d=gN(a),f=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,r=e.unit,i=void 0===r?"px":r,o=e.step,a=void 0===o?5:o,s=cN(e,["values","unit","step"]);function l(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(i,")")}function u(e,t){var r=dN.indexOf(t);return r===dN.length-1?l(e):"@media (min-width:".concat("number"==typeof n[e]?n[e]:e).concat(i,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof n[dN[r+1]]?n[dN[r+1]]:t)-a/100).concat(i,")")}return JT({keys:dN,values:n,up:l,down:function(e){var t=dN.indexOf(e)+1,r=n[dN[t]];return t===dN.length?l("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-a/100).concat(i,")")},between:u,only:function(e){return u(e,e)},width:function(e){return n[e]}},s)}(n),h=TN(s),p=eN({breakpoints:f,direction:"ltr",mixins:fN(f,h,i),overrides:{},palette:d,props:{},shadows:MN,typography:wN(d,u),spacing:h,shape:kN,transitions:_N,zIndex:LN},c),m=arguments.length,g=new Array(m>1?m-1:0),y=1;y<m;y++)g[y-1]=arguments[y];return p=g.reduce((function(e,t){return eN(e,t)}),p)}var RN="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",PN=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function zN(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,i=void 0===r?"jss":r,o=e.seed,a=void 0===o?"":o,s=""===a?"":"".concat(a,"-"),l=0,u=function(){return l+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==PN.indexOf(e.key))return"Mui-".concat(e.key);var o="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[RN]&&""===a?"".concat(o,"-").concat(u()):o}return"".concat(s).concat(i).concat(u())}}function FN(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var i,o=t.props[n];for(i in o)void 0===r[i]&&(r[i]=o[i]);return r}var jN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},BN="object"===("undefined"==typeof window?"undefined":jN(window))&&"object"===("undefined"==typeof document?"undefined":jN(document))&&9===document.nodeType;function HN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,tN(r.key),r)}}function VN(e,t,n){return t&&HN(e.prototype,t),n&&HN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function $N(e,t){return $N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$N(e,t)}function UN(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,$N(e,t)}function WN(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var YN={}.constructor;function KN(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(KN);if(e.constructor!==YN)return e;var t={};for(var n in e)t[n]=KN(e[n]);return t}function GN(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,i=KN(t),o=r.plugins.onCreateRule(e,i,n);return o||(e[0],null)}var XN=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},JN=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=XN(e[n]," ");else t=XN(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function QN(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function ZN(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function eO(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var i=n.indent,o=void 0===i?0:i,a=t.fallbacks;!1===n.format&&(o=-1/0);var s=QN(n),l=s.linebreak,u=s.space;if(e&&o++,a)if(Array.isArray(a))for(var c=0;c<a.length;c++){var d=a[c];for(var f in d){var h=d[f];null!=h&&(r&&(r+=l),r+=ZN(f+":"+u+JN(h)+";",o))}}else for(var p in a){var m=a[p];null!=m&&(r&&(r+=l),r+=ZN(p+":"+u+JN(m)+";",o))}for(var g in t){var y=t[g];null!=y&&"fallbacks"!==g&&(r&&(r+=l),r+=ZN(g+":"+u+JN(y)+";",o))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),ZN(""+e+u+"{"+r,--o)+ZN("}",o)):r}var tO=/([[\].#*$><+~=|^:(),"'`\s])/g,nO="undefined"!=typeof CSS&&CSS.escape,rO=function(e){return nO?nO(e):e.replace(tO,"\\$1")},iO=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,i=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:i&&(this.renderer=new i)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var i=t;n&&!1===n.process||(i=this.options.jss.plugins.onChangeValue(t,e,this));var o=null==i||!1===i,a=e in this.style;if(o&&!a&&!r)return this;var s=o&&a;if(s?delete this.style[e]:this.style[e]=i,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,i),this;var l=this.options.sheet;return l&&l.attached,this},e}(),oO=function(e){function t(t,n,r){var i;i=e.call(this,t,n,r)||this;var o=r.selector,a=r.scoped,s=r.sheet,l=r.generateId;return o?i.selectorText=o:!1!==a&&(i.id=l(WN(WN(i)),s),i.selectorText="."+rO(i.id)),i}UN(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=JN(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?JT({},e,{allowEmpty:!0}):e;return eO(this.selectorText,this.style,n)},VN(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(iO),aO={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new oO(e,t,n)}},sO={indent:1,children:!0},lO=/@([\w-]+)/,uO=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(lO);for(var i in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new _O(JT({},n,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=sO);var t=QN(e).linebreak;if(null==e.indent&&(e.indent=sO.indent),null==e.children&&(e.children=sO.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),cO=/@container|@media|@supports\s+/,dO={onCreateRule:function(e,t,n){return cO.test(e)?new uO(e,t,n):null}},fO={indent:1,children:!0},hO=/@keyframes\s+([\w-]+)/,pO=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(hO);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var i=n.scoped,o=n.sheet,a=n.generateId;for(var s in this.id=!1===i?this.name:rO(a(this,o)),this.rules=new _O(JT({},n,{parent:this})),t)this.rules.add(s,t[s],JT({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=fO);var t=QN(e).linebreak;if(null==e.indent&&(e.indent=fO.indent),null==e.children&&(e.children=fO.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),mO=/@keyframes\s+/,gO=/\$([\w-]+)/g,yO=function(e,t){return"string"==typeof e?e.replace(gO,(function(e,n){return n in t?t[n]:e})):e},vO=function(e,t,n){var r=e[t],i=yO(r,n);i!==r&&(e[t]=i)},bO={onCreateRule:function(e,t,n){return"string"==typeof e&&mO.test(e)?new pO(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&vO(e,"animation-name",n.keyframes),"animation"in e&&vO(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return yO(e,r.keyframes);default:return e}}},xO=function(e){function t(){return e.apply(this,arguments)||this}return UN(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?JT({},e,{allowEmpty:!0}):e;return eO(this.key,this.style,n)},t}(iO),wO={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new xO(e,t,n):null}},SO=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=QN(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=eO(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return eO(this.at,this.style,e)},e}(),MO=/@font-face/,kO={onCreateRule:function(e,t,n){return MO.test(e)?new SO(e,t,n):null}},CO=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return eO(this.key,this.style,e)},e}(),qO={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new CO(e,t,n):null}},EO=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),DO={"@charset":!0,"@import":!0,"@namespace":!0},TO={onCreateRule:function(e,t,n){return e in DO?new EO(e,t,n):null}},NO=[aO,dO,bO,wO,kO,qO,TO],OO={process:!0},AO={force:!0,process:!0},_O=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,i=r.parent,o=r.sheet,a=r.jss,s=r.Renderer,l=r.generateId,u=r.scoped,c=JT({classes:this.classes,parent:i,sheet:o,jss:a,Renderer:s,generateId:l,scoped:u,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(c.selector="."+rO(this.classes[d]));var f=GN(d,t,c);if(!f)return null;this.register(f);var h=void 0===c.index?this.index.length:c.index;return this.index.splice(h,0,f),f},t.replace=function(e,t,n){var r=this.get(e),i=this.index.indexOf(r);r&&this.remove(r);var o=n;return-1!==i&&(o=JT({},n,{index:i})),this.add(e,t,o)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof oO?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof pO&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof oO?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof pO&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=OO);var i=this.options,o=i.jss.plugins,a=i.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t.style;if(o.onUpdate(n,t,a,r),r.process&&s&&s!==t.style){for(var l in o.onProcessStyle(t.style,t,a),t.style){var u=t.style[l];u!==s[l]&&t.prop(l,u,AO)}for(var c in s){var d=t.style[c],f=s[c];null==d&&d!==f&&t.prop(c,null,AO)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,i=QN(e).linebreak,o=0;o<this.index.length;o++){var a=this.index[o].toString(e);(a||r)&&(t&&(t+=i),t+=a)}return t},e}(),LO=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=JT({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new _O(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var i=this.rules.add(e,t,n);return i?(this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(r?r.push(i):(this.insertRule(i),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),i):i:(this.deployed=!1,i)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var i=this.rules.replace(e,t,n);return i&&this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(this.renderer&&(i?r.renderable&&this.renderer.replaceRule(r.renderable,i):this.renderer.deleteRule(r)),i):i:(this.deployed=!1,i)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var i=this.addRule(r,e[r],t);i&&n.push(i)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),IO=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var i=this.registry.onCreateRule[r](e,t,n);if(i)return i}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var i=0;i<this.registry.onUpdate.length;i++)this.registry.onUpdate[i](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,i=0;i<this.registry.onChangeValue.length;i++)r=this.registry.onChangeValue[i](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),RO=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=uN(t,["attached"]),i=QN(r).linebreak,o="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=n&&s.attached!==n||(o&&(o+=i),o+=s.toString(r))}return o},VN(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),PO=new RO,zO="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),FO="2f1acc6c3a606b082e5eef5e54414ffb";null==zO[FO]&&(zO[FO]=0);var jO=zO[FO]++,BO=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var i="",o="";return r&&(r.options.classNamePrefix&&(o=r.options.classNamePrefix),null!=r.options.jss.id&&(i=String(r.options.jss.id))),e.minify?""+(o||"c")+jO+i+t:o+n.key+"-"+jO+(i?"-"+i:"")+"-"+t}},HO=function(e){var t;return function(){return t||(t=e()),t}},VO=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},$O=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=JN(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var i=r?r.indexOf("!important"):-1,o=i>-1?r.substr(0,i-1):r;e.style.setProperty(t,o,i>-1?"important":"")}}catch(e){return!1}return!0},UO=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},WO=function(e,t){return e.selectorText=t,e.selectorText===t},YO=HO((function(){return document.querySelector("head")}));function KO(e){var t=PO.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var i=function(e){for(var t=YO(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}var GO=HO((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),XO=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[n]},JO=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},QO=function(){function e(e){this.getPropertyValue=VO,this.setProperty=$O,this.removeProperty=UO,this.setSelector=WO,this.hasInsertedRules=!1,this.cssRules=[],e&&PO.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,i=t.element;this.element=i||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var o=GO();o&&this.element.setAttribute("nonce",o)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=KO(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var i=n,o=i.parentNode;o&&o.insertBefore(e,i.nextSibling)}else YO().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,i=n;if("conditional"===e.type||"keyframes"===e.type){var o=JO(n,t);if(!1===(i=XO(n,r.toString({children:!1}),o)))return!1;this.refCssRule(e,o,i)}return this.insertRules(r.rules,i),i}var a=e.toString();if(!a)return!1;var s=JO(n,t),l=XO(n,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof LO&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),ZO=0,eA=function(){function e(e){this.id=ZO++,this.version="10.10.0",this.plugins=new IO,this.options={id:{minify:!1},createGenerateId:BO,Renderer:BN?QO:null,plugins:[]},this.generateId=BO({minify:!1});for(var t=0;t<NO.length;t++)this.plugins.use(NO[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=JT({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!=typeof n&&(n=0===PO.index?0:PO.index+1);var r=new LO(e,JT({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),PO.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var r=JT({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var i=GN(e,t,r);return i&&this.plugins.onProcessRule(i),i},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}(),tA=function(e){return new eA(e)},nA="object"==typeof CSS&&null!=CSS&&"number"in CSS;function rA(e){var t=null;for(var n in e){var r=e[n],i=typeof r;if("function"===i)t||(t={}),t[n]=r;else if("object"===i&&null!==r&&!Array.isArray(r)){var o=rA(r);o&&(t||(t={}),t[n]=o)}}return t}
16
+ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,i,o,a,s,l,u,c,d,f=e.length,h=e.search(/[0-9\-\+#]/),p=h>0?e.substring(0,h):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),y=f-g,v=e.substring(y,y+1),b=y+("."===v||","===v?1:0),x=g>0?e.substring(b,f):"";if(n=(t="-"===(e=e.substring(h,b)).charAt(0)?-t:+t)<0?t=-t:0,i=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",o=r&&r[1]&&r[0]||",",e=e.split(i),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=s)&&(t=(+t).toFixed(s+1)),c=e[0].split(o),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],l=c[1]&&c[c.length-1].length){for(m="",y=(d=t[0]).length%l,f=d.length,b=0;b<f;b++)m+=d.charAt(b),!((b-y+1)%l)&&b<f-l&&(m+=o);t[0]=m}return t[1]=e[1]&&t[1]?i+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),p+(n?"-":"")+r+x}},Uq(Wq={exports:{}}),Wq.exports);function Kq(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}const Gq={3:"k",6:"M",9:"G",12:"T",15:"P",18:"E",21:"Z",24:"Y","-3":"m","-6":"μ","-9":"n","-12":"p","-15":"f","-18":"a","-21":"z","-24":"y"},Xq=/%\)?$/,Jq=/^\(r(0[2-9]|[12]\d|3[0-6])\)/i,Qq=/^\(oct\)/i,Zq=/^\(dec\)/i,eE=/^\(hex\)/i,tE=/^\(bin\)/i,nE=/^\(rom\)/i,rE=/^(\(rom\)|\(bin\)|\(hex\)|\(dec\)|\(oct\)|\(r(0[2-9]|[12]\d|3[0-6])\))/i,iE=/#|0/g;function oE(e,t,n,r){return e=e.toString(t),n[1]===n[1].toUpperCase()&&(e=e.toUpperCase()),e.length-e.indexOf(".")>10&&(e=e.slice(0,e.indexOf(".")+11)),e.replace(".",r||".")}function aE(e,t,n){const r=Kq(e);return n?r:new RegExp(r||"",t)}function sE(e,t,n,r){let i,o,a,s,l,u,c,d,f,h=e.pattern;var p,m;r&&(e.abbreviate=!0),p=t,(m=n)&&(m=Kq(m)),p&&(p=Kq(p)),f=new RegExp("(?:[#0]+".concat(p,")?[#0]+(?:").concat(m,"[#0]+)?")),a=h.match(f),a=a?a[0]:"",s=a?h.substr(0,h.indexOf(a)):h,l=a?h.substring(h.indexOf(a)+a.length):"",a||(a=h?"#":"##########"),t&&t===n&&(i=a.split(n),o=i.pop(),a=i.join("")+n+o,t=""),u=t,t=/,/.test(n)?"¤":",",u&&(a=a.replace(aE(u,"g"),t)),c=n,n=".",c&&(a=a.replace(aE(c,"g"),n)),d=a.match(/#/g),d=d?d.length:0;const g=h.split(c);let y;g[1]&&(y=g[1].match(iE)),e.prefix=s||"",e.postfix=l||"",e.pattern=h,e.maxPrecision=y?y.length:2,e.percentage=Xq.test(h),e.numericPattern=a||"",e.numericRegex=new RegExp("".concat(aE(t,null,!0),"|").concat(aE(n,null,!0)),"g"),e.groupTemp=u,e.decTemp=c,e.t=t,e.d=n,e.temp=d}class lE{constructor(e,t,n,r,i){this.localeInfo=e,this.pattern=t,this.thousandDelimiter=n||",",this.decimalDelimiter=r||".",this.type=i||"numeric",this.patternSeparator=";",this.abbreviations=function(e,t){if(!e||!e.qNumericalAbbreviation)return Gq;const n={};return e.qNumericalAbbreviation.split(t).forEach((e=>{let t=e.split(":");2===t.length&&(n[t[0]]=t[1])})),n}(e,this.patternSeparator),this.prepare()}clone(){const e=new lE(this.localeInfo,this.pattern,this.thousandDelimiter,this.decimalDelimiter,this.type);return e.subtype=this.subtype,e}format(e,t,n,r){return this.prepare(t,n,r),this.formatValue(e)}prepare(e,t,n){let r;if(void 0===e&&(e=this.pattern),void 0===t&&(t=this.thousandDelimiter),void 0===n&&(n=this.decimalDelimiter),!e)return void(this._prepared={pattern:!1});this._prepared={positive:{d:n,t:t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""},negative:{d:n,t:t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""},zero:{d:n,t:t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""}},r=this._prepared,e=e.split(this.patternSeparator),r.positive.pattern=e[0],r.negative.pattern=e[1],r.zero.pattern=e[2],rE.test(e[0])&&(r.positive.isFunctional=!0),e[1]?rE.test(e[1])&&(r.negative.isFunctional=!0):r.negative=!1,e[2]?rE.test(e[2])&&(r.zero.isFunctional=!0):r.zero=!1;const i="U"===this.type;r.positive.isFunctional||sE(r.positive,t,n,i),r.negative&&!r.negative.isFunctional&&sE(r.negative,t,n,i),r.zero&&!r.zero.isFunctional&&sE(r.zero,t,n,i)}formatValue(e){let t,n,r,i,o,a,s,l,u,c=this._prepared,d="",f="",h=e;if(isNaN(e))return"".concat(h);if(e=+e,!1===c.pattern)return e.toString();if(0===e&&c.zero)return c=c.zero,c.pattern;if(e<0&&c.negative?(c=c.negative,e=-e):c=c.positive,o=c.d,a=c.t,c.isFunctional)e=function(e,t,n){let r;return Jq.test(t)?e=oE(e,Number(/\d{2}/.exec(t)[0]),t,n):Qq.test(t)?e=oE(e,8,t,n):Zq.test(t)?e=oE(e,10,t,n):eE.test(t)?e=oE(e,16,t,n):tE.test(t)?e=oE(e,2,t,n):nE.test(t)&&(r="",e<0&&(r="-",e=-e),0===(e=Math.floor(e))?e="0":e<=5e5?(e=function(e,t){let n,r="",i=Number(String(e).slice(-3)),o=(e-i)/1e3,a=[0,1,4,5,9,10,40,50,90,100,400,500,900].reverse(),s=["0","I","IV","V","IX","X","XL","L","XC","C","CD","D","CM"].reverse();for(;i>0;)for(n=0;n<a.length;n++)if(a[n]<=i){r+=s[n],i-=a[n];break}for(n=0;n<o;n++)r="M".concat(r);return t[1]!==t[1].toUpperCase()&&(r=r.toLowerCase()),r}(e,t),e=r+e):e=t+r+e.toExponential(0)),e}(e,c.pattern,o);else{if(c.percentage&&(e*=100),c.abbreviate){const t=Object.keys(this.abbreviations).map((e=>parseInt(e,10))).sort(((e,t)=>e-t));let r,i,o=t[0];for(s=0,n=Number(Number(e).toExponential().split("e")[1]);o<=n&&s<t.length;)s++,o=t[s];s>0&&(r=t[s-1]),r&&n>0&&r>0?i=r:(n<0&&r<0||!r)&&(o<0&&o-n<=c.maxPrecision?i=o:r<=n&&!(o>0&&-n<=c.maxPrecision)&&(i=r)),i&&(d=this.abbreviations[i],e/=10**i)}if(r=Math.abs(e),t=c.temp,l=c.numericPattern,u=l.split(o)[1],"I"===this.type&&(e=Math.round(e)),i=e,u||"#"!==l.slice(-1)[0])if(r>=1e15||r>0&&r<=1e-14)e=r?r.toExponential(15).replace(/\.?0+(?=e)/,""):"0";else{const t=Number(e.toFixed(Math.min(20,u?u.length:0)).split(".")[0]);let n=l.split(o)[0];if(n+=o,e=Yq(n,t)||"0",u){const t=Math.max(0,Math.min(14,u.length)),n=u.replace(/#+$/,"").length;let i=("I"===this.type?0:r%1+1e-15).toFixed(t).slice(2).replace(/0+$/,"");for(s=i.length;s<n;s++)i+="0";i&&(e+=o+i)}else 0===t&&(i=0)}else if(r>=10**t||r<1||r<1e-4)0===e?e="0":r<1e-4||r>=1e20?(e=(e=i.toExponential(Math.max(1,Math.min(14,t))-1)).replace(/\.?0+(?=e)/,""),f=""):(e=e.toPrecision(Math.max(1,Math.min(14,t)))).indexOf(".")>=0&&(e=(e=e.replace(e.indexOf("e")<0?/0+$/:/\.?0+(?=e)/,"")).replace(".",o));else{for(l+=o,t=Math.max(0,Math.min(20,t-Math.ceil(Math.log(r)/Math.log(10)))),s=0;s<t;s++)l+="#";e=Yq(l,e)}e=e.replace(c.numericRegex,(e=>e===a?c.groupTemp:e===o?c.decTemp:"")),i<0&&!/^-/.test(e)&&(e="-".concat(e))}return c.prefix+e+f+d+c.postfix}static getStaticFormatter(){return{prepare(){},formatValue:e=>"".concat(e)}}}function uE(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{size:n=5e3,multipleArguments:r=!1,toKey:i=(e=>e)}=t;let o,a,s=Object.create(null),l=Object.create(null),u=0,c=0;return o=r?function(){return a=i(...arguments),o.has(a)?o.get(a):o.set(a,e(...arguments))}:t=>(a=i(t),o.has(a)?o.get(a):o.set(a,e(t))),o.set=(e,t)=>(u>=n&&(delete s[l[c]],delete l[c],u--,c++),s[e]=t,l[u]=e,u++,t),o.get=e=>s[e],o.has=e=>e in s,o.clear=()=>{s=Object.create(null),l=Object.create(null),u=0,c=0},o.size=()=>u,o}function cE(e,t,n,r,i){const o=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new lE(...t)}(i,e,t,n,r),a=uE(o.formatValue.bind(o),{toKey:e=>isNaN(e)?e:+e});function s(e){return a(e)}return s.format=function(e,t,n,r){return a.clear(),o.format(t,e,n,r)},s.pattern=function(e){return e&&(a.clear(),o.pattern=e,o.prepare()),o.pattern},s}const dE="IV",fE=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],hE=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],pE=["January","February","March","April","May","June","July","August","September","October","November","December"],mE=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function gE(e,t){for(let n=e.length;n<t;n++)e="0".concat(e);return e}function yE(e){let t=e.toString().split(".");return t[1]?(t=Number("0.".concat(t[1])),t):0}class vE{constructor(e,t,n){const r=e||{};r.qCalendarStrings||(r.qCalendarStrings={qLongDayNames:fE,qDayNames:hE,qLongMonthNames:pE,qMonthNames:mE}),this.localeInfo=r,this.locale_days=r.qCalendarStrings.qLongDayNames.slice(),this.locale_days_abbr=r.qCalendarStrings.qDayNames.slice(),this.locale_months=r.qCalendarStrings.qLongMonthNames.slice(),this.locale_months_abbr=r.qCalendarStrings.qMonthNames.slice(),t||(t={T:r.qTimeFmt||"hh:mm:ss",D:r.qDateFmt||"YYYY-MM-DD",TS:r.qTimestampFmt||"YYYY-MM-DD hh:mm:ss"}[n]),this.pattern=t}clone(){const e=new vE(this.localeInfo,this.pattern);return e.subtype=this.subtype,e}format(e,t){t||(t=this.pattern?this.pattern:"YYYY-MM-DD hh:mm:ss"),t=t.replace(/\[.+]|\[|]/g,"");const n=/t+/gi.test(t);let r;e instanceof Date?r=function(e,t){let n=e.getUTCHours(),r=e.getUTCDay()-1;return t&&(n%=12,n||(n=12)),r<0&&(r=6),{year:e.getUTCFullYear(),month:e.getUTCMonth(),day:r,date:e.getUTCDate(),h:n,m:e.getUTCMinutes(),s:e.getUTCSeconds(),f:e.getUTCMilliseconds(),t:e.getUTCHours()>=12?"pm":"am"}}(e,n):(e<0&&(e=-e,t="-".concat(t)),r=function(e,t){let n,r=function(e){const t=e,n=24*yE(t),r=60*yE(n),i=60*yE(r),o=1e3*yE(i);return{d:Math.floor(t),h:Math.floor(n),m:Math.floor(r),s:Math.floor(i),f:Math.round(o)}}(e),i=r.d,o=r.h,a=r.m,s=r.s,l=r.f,u=0;/w+|t+/gi.test(t)&&(n=new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,Math.round(86400*(e-Math.floor(e))))),isNaN(n.getTime())&&(n=null)),/D+/gi.test(t)||(o+=24*i),/h+/gi.test(t)||(a+=60*o),/m+/gi.test(t)||(s+=60*a),/w+/gi.test(t)&&(u=n?n.getDay()-1:0,u<0&&(u=6));let c="";return n&&(c=n.getUTCHours()>=12?"pm":"am"),{year:0,month:0,day:u,date:i,h:o,m:a,s:s,f:l,t:c}}(e,t));const i=(o=this,a=r,{"Y+|y+":{Y:"".concat(Number("".concat(a.year).slice(-2))),YY:gE("".concat(a.year).slice(-2),2),YYY:gE("".concat(a.year).slice(-3),3),def:e=>gE("".concat(a.year),e.length)},"M+":{M:a.month+1,MM:gE("".concat(a.month+1),2),MMM:o.locale_months_abbr[a.month],def:o.locale_months[a.month]},"W+|w+":{W:a.day,WW:gE("".concat(a.day),2),WWW:o.locale_days_abbr[a.day],def:o.locale_days[a.day]},"D+|d+":{D:a.date,def:e=>gE("".concat(a.date),e.length)},"h+|H+":{h:a.h,def:e=>gE("".concat(a.h),e.length)},"m+":{m:a.m,def:e=>gE("".concat(a.m),e.length)},"s+|S+":{s:a.s,def:e=>gE("".concat(a.s),e.length)},"f+|F+":{def(e){let t="".concat(a.f),n=e.length-t.length;if(n>0)for(let e=0;e<n;e++)t+="0";else n<0&&(t=t.slice(0,e.length));return t}},"t{1,2}|T{1,2}":{def(e){let t=a.t;return e[0].toUpperCase()===e[0]&&(t=t.toUpperCase()),t=t.slice(0,e.length),t}}});var o,a;const s=[];for(const e in i)Object.prototype.hasOwnProperty.call(i,e)&&s.push(e);const l=new RegExp(s.join("|"),"g");return t.replace(l,(e=>{let t,n,r;for(n in i)if(Object.prototype.hasOwnProperty.call(i,n)&&(t=new RegExp(n),t.test(e)))break;if(!t)return"";for(const t in i[n])if(t===e||t.toLowerCase()===e){r=i[n][t],void 0===r&&(r=i[n][t.toLowerCase()]);break}return void 0===r&&(r=i[n].def),"function"==typeof r&&(r=r(e)),r}))}}function bE(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new vE(...t)}function xE(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"TS",n=bE(arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,e,t),r=uE(n.format.bind(n),{toKey:e=>"object"==typeof e&&"function"==typeof e.getTime?e.getTime():e});function i(e){return t!==dE?function(e){return new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,0,Math.round(864e5*(e-Math.floor(e)))))}(e):e}function o(e){return e=i(e),r(e)}return o.format=function(e,t){return r.clear(),t=i(t),n.format(t,e)},o.locale=function(i){return n=bE(i,e,t),r=uE(n.format.bind(n),{toKey:e=>"object"==typeof e?e.getTime():e}),this},o.qtype=function(e){return void 0!==e&&(t=e,r.clear()),t},o}function wE(){let e,{meta:t,id:n,key:r,localeInfo:i,fieldExtractor:o,value:a,type:s,sourceField:l}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const u=a||("dimension"===s?e=>null==e?void 0:e.qElemNo:e=>null==e?void 0:e.qValue),c="dimension"===s?"first":"avg",d=function(e,t){if(e&&e.qNumFormat&&-1!==["D","T","TS","IV"].indexOf(e.qNumFormat.qType))return xE(e.qNumFormat.qFmt,e.qNumFormat.qType,t);let n="#",r=t&&void 0!==t.qThousandSep?t.qThousandSep:",",i=t&&void 0!==t.qDecimalSep?t.qDecimalSep:".",o="U",a=e&&!!e.qIsAutoFormat;return e&&e.qNumFormat?(n=e.qNumFormat.qFmt||n,r=e.qNumFormat.qThou||r,i=e.qNumFormat.qDec||i,o=e.qNumFormat.qType||o,a=a&&-1===["M"].indexOf(e.qNumFormat.qType)):a=!0,(a||"U"===o)&&(n="#".concat(i,"##"),o="U"),cE(n,r,i,o,t)}(t,i),f="dimension"===s?"first":(e,t)=>d(t),h={id:()=>n,key:()=>r,raw:()=>t,title:()=>t.qFallbackTitle||t.label,type:()=>s,origin:()=>l,items:()=>(e||(e=o(h)),e),min:()=>t.qMin,max:()=>t.qMax,value:u,label:e=>(null==e?void 0:e.qText)||"",reduce:c,reduceLabel:f,formatter:()=>d,tags:()=>t.qTags};return h}function SE(e,t,n,r,i){return(t[e]||[]).map(((t,o)=>{const a="".concat(r?"".concat(r,"/"):"").concat(e,"/").concat(o),s={instance:wE(lq({id:"".concat(n?"".concat(n,"/"):"").concat(a),key:a,meta:t},i))};return s.attrDims=SE("qAttrDimInfo",t,n,a,lq({},i,{value:e=>null==e?void 0:e.qElemNo,type:"dimension"})),s.attrExps=SE("qAttrExprInfo",t,n,a,lq({},i,{value:e=>null==e?void 0:e.qNum,type:"measure"})),s.measures=SE("qMeasureInfo",t,n,a,lq({},i,{value:e=>null==e?void 0:e.qValue,type:"measure"})),s}))}function ME(){let{key:e,data:t,config:n={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r={fields:[],wrappedFields:[],allFields:[],virtualFields:[]},i=t;if(!i)throw new Error('Missing "data" input');if(!i.qDimensionInfo)throw new Error('The "data" input is not recognized as a hypercube');const o=ME.util,a={cache:r,cube:i,localeInfo:n.localeInfo,fieldExtractor:null,pages:null,hierarchy:()=>null,virtualFields:n.virtualFields},s={key:()=>e,raw:()=>i,field:e=>function(e,t){let{cache:n}=t;if("number"==typeof e)return n.fields[e];const r=n.allFields;if("function"==typeof e){for(let t=0;t<r.length;t++)if(e(r[t]))return r[t];return!1}if("string"==typeof e){for(let t=0;t<r.length;t++)if(r[t].key()===e||r[t].title()===e)return r[t]}else if(e&&-1!==r.indexOf(e))return e;throw Error("Field not found: ".concat(e))}(e,a),fields:()=>r.fields.slice(),extract:e=>a.extractor(e,s,r,o),hierarchy:e=>a.hierarchy(e,s,r,o),_cache:()=>r};"K"===i.qMode||"T"===i.qMode||!i.qMode&&i.qNodesOnDim?(a.extractor=$q,a.hierarchy=Vq,a.pages="K"===i.qMode?i.qStackedDataPages:i.qTreeDataPages):"S"===i.qMode?(a.extractor=fq,a.pages=i.qDataPages,a.hierarchy=Vq):a.extractor=()=>[],a.fieldExtractor=e=>a.extractor({field:e},s,r,o);const l="S"===i.qMode?e=>e.qElemNumber:void 0,u="S"===i.qMode?e=>e.qNum:void 0;r.wrappedFields.push(...SE("qDimensionInfo",i,e,"",lq({},a,{value:l,type:"dimension"}))),r.wrappedFields.push(...SE("qMeasureInfo",i,e,"",lq({},a,{value:u,type:"measure"}))),r.fields=r.wrappedFields.map((e=>e.instance));const c=e=>{e.forEach((e=>{r.allFields.push(e.instance),c(e.measures),c(e.attrDims),c(e.attrExps)}))};return c(r.wrappedFields),(n.virtualFields||[]).forEach((t=>{const n=s.field(t.from),i=wE(QC({meta:n.raw(),id:"".concat(e,"/").concat(t.key),sourceField:n,fieldExtractor:e=>a.extractor({field:e},s,r,o),key:t.key,type:n.type(),localeInfo:a.localeInfo,value:n.value},t.override||{}));r.virtualFields.push(i)})),r.allFields.push(...r.virtualFields),s}const kE=[["qHyperCube","qHyperCubeDef"],["qTreeData","qTreeDataDef"],["qDimensionInfo","qDimensions"],["qMeasureInfo","qMeasures"],["qAttrDimInfo","qAttributeDimensions"],["qAttrExprInfo","qAttributeExpressions"]],CE=/\/qDimensionInfo(?:\/(\d+))?/,qE=/\/qMeasureInfo\/(\d+)/,EE=/\/qAttrDimInfo\/(\d+)(?:\/(\d+))?/,DE=/\/qAttrExprInfo\/(\d+)/,TE=/\/?qHyperCube/,NE=/\/?qTreeData/,OE=e=>"".concat(e.substr(0,e.indexOf("/qHyperCubeDef")+14)),AE=e=>"".concat(e.substr(0,e.indexOf("/qTreeDataDef")+13));function _E(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r=t.byCells,i=t.primarySource,o=[],a={},s=e.isActive();let l=!1;return e.brushes().forEach((e=>{const t=function(e,t){let n=e,r=-1,i=-1,o="",a=e=>e;TE.test(e)?(o="".concat(n.substr(0,n.indexOf("qHyperCube")+10)),a=OE):NE.test(e)&&(o="".concat(n.substr(0,n.indexOf("qTreeData")+9)),a=AE);let s=!0;if(CE.test(e)&&(r=+CE.exec(e)[1]),qE.test(e)&&(i=+qE.exec(e)[1]),EE.test(e)){i=-1,r=0;const e=+EE.exec(n)[2];isNaN(e)||(r=e,n=n.replace(/\/\d+$/,"")),s=!1}if(DE.test(e)){const e=i;if(t){i=0;const a=Dq(o,t);i+=(a.qMeasureInfo||[]).length,r>-1?(i=a.qDimensionInfo.slice(0,r).reduce(((e,t)=>e+t.qAttrExprInfo.length),i),r=-1):(i=a.qDimensionInfo.reduce(((e,t)=>e+t.qAttrExprInfo.length),i),i=a.qMeasureInfo.slice(0,e).reduce(((e,t)=>e+t.qAttrExprInfo.length),i)),i+=+DE.exec(n)[1]}else r>-1?(r=-1,i=+DE.exec(n)[1]):i+=+DE.exec(n)[1]+1}return kE.forEach((e=>{let[t,r]=e;n=n.replace(t,r)})),s&&(n=a(n)),n&&"/"!==n[0]&&(n="/".concat(n)),{measureIdx:i,dimensionIdx:r,path:n}}(e.id,n);if("range"===e.type&&t.measureIdx>-1&&t.dimensionIdx>-1){const n=e.brush.ranges();n.length&&(l=!0,a.multiRangeSelectTreeDataValues||(a.multiRangeSelectTreeDataValues={path:t.path,ranges:[]}),n.forEach((e=>a.multiRangeSelectTreeDataValues.ranges.push({qMeasureIx:t.measureIdx,qDimensionIx:t.dimensionIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!0}}))))}else{if("range"===e.type&&t.measureIdx>-1){const n=e.brush.ranges();n.length&&(l=!0,a.rangeSelectHyperCubeValues||(a.rangeSelectHyperCubeValues={path:t.path,ranges:[]}),n.forEach((e=>a.rangeSelectHyperCubeValues.ranges.push({qMeasureIx:t.measureIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!0}}))))}if("range"===e.type&&t.dimensionIdx>-1){const n=e.brush.ranges();n.length&&(l=!0,a.selectHyperCubeContinuousRange||(a.selectHyperCubeContinuousRange={path:t.path,ranges:[]}),n.forEach((e=>a.selectHyperCubeContinuousRange.ranges.push({qDimIx:t.dimensionIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!1}}))))}if("value"===e.type&&t.dimensionIdx>-1)if(r)if(n&&n.qHyperCube&&("P"===n.qHyperCube.qMode||"T"===n.qHyperCube.qMode||"K"===n.qHyperCube.qMode)){const r=n.qHyperCube,o=r.qNoOfLeftDims,s=r.qEffectiveInterColumnSortOrder.indexOf(t.dimensionIdx);if(a.selectPivotCells||(a.selectPivotCells={path:t.path,cells:[]}),e.id===i||!i){const n=e.brush.values().map((e=>+e)).filter((e=>!isNaN(e)));(0===o||s>=o)&&o>-1?n.forEach((e=>{a.selectPivotCells.cells.push({qType:"T",qCol:e,qRow:s-o})})):n.forEach((e=>{a.selectPivotCells.cells.push({qType:"L",qCol:t.dimensionIdx,qRow:e})})),l=!!a.selectPivotCells.cells.length}}else a.selectHyperCubeCells||(a.selectHyperCubeCells={path:t.path,cols:[]}),a.selectHyperCubeCells.cols.push(t.dimensionIdx),e.id!==i&&(i||a.selectHyperCubeCells.values)||(a.selectHyperCubeCells.values=e.brush.values().map((e=>+e)).filter((e=>!isNaN(e))),l=!!a.selectHyperCubeCells.values.length);else{const n=e.brush.values().map((e=>+e)).filter((e=>!isNaN(e)));l=!!n.length,o.push({params:[t.path,t.dimensionIdx,n,!1],method:"selectHyperCubeValues"})}}})),!l&&s?[{method:"resetMadeSelections",params:[]}]:(a.rangeSelectHyperCubeValues&&o.push({method:"rangeSelectHyperCubeValues",params:[a.rangeSelectHyperCubeValues.path,a.rangeSelectHyperCubeValues.ranges,[],null===(u=t.orMode)||void 0===u||u]}),a.selectHyperCubeContinuousRange&&o.push({method:"selectHyperCubeContinuousRange",params:[a.selectHyperCubeContinuousRange.path,a.selectHyperCubeContinuousRange.ranges]}),a.selectHyperCubeCells&&o.push({method:"selectHyperCubeCells",params:[a.selectHyperCubeCells.path,a.selectHyperCubeCells.values,a.selectHyperCubeCells.cols]}),a.selectPivotCells&&o.push({method:"selectPivotCells",params:[a.selectPivotCells.path,a.selectPivotCells.cells]}),a.multiRangeSelectTreeDataValues&&o.push({method:"multiRangeSelectTreeDataValues",params:[a.multiRangeSelectTreeDataValues.path,a.multiRangeSelectTreeDataValues.ranges]}),o);var u}function LE(e){ME.util=e.data("matrix").util,e.data("q",ME),e.formatter("q-number",cE),e.formatter("q-time",xE)}function IE(e){var t=zC(e.layout||{},e.path.split("/").join("."));if(!t)return!1;var n=t.qIsOneAndOnlyOne;return void 0!==n&&n}function RE(e){var t=e.brush,n=e.colorField,r=e.legendAlias,i=e.useLegendCube,o=void 0!==i&&i;!n||/qAttrDimInfo/.test(n)?(t.removeKeyAlias("attrDim/qDimensionInfo/0"),r&&t.removeKeyAlias(r),t.addKeyAlias("attrDim/qDimensionInfo/0","qHyperCube/".concat(n))):o&&t.addKeyAlias(r,"qHyperCube/".concat(n))}LE.qBrushHelper=_E,LE.selections=_E;var PE="Shift";var zE=function e(t,n){return n[t]?e(t+1,n):t},FE=function(e,t){var n=t.reduce((function(e,t){return e[t]=!0,e}),{});return e.reduce((function(e,t,r){var i=zE(r,n);return n[i]=!0,e[r]=i,e}),{})};function jE(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.layout,n=e.filtered,r=void 0===n?{}:n,i=(null==t?void 0:t.qHyperCube)||{},o=i.qDimensionInfo,a=void 0===o?[]:o,s=i.qMeasureInfo,l=void 0===s?[]:s;return{dimensions:FE(a,r.dimensions||[]),measures:FE(l,r.measures||[])}}var BE="selectHyperCubeValues",HE="selectHyperCubeContinuousRange";function VE(e){var t=e.selection,n=e.fieldMap,r=t.method,i=t.params;if(r===BE){var o=n.dimensions[i[1]];void 0!==o&&(i[1]=o)}return r===HE&&i[1].forEach((function(e){var t=n.dimensions[e.qDimIx];void 0!==t&&(e.qDimIx=t)})),t}var $E=[],UE=0,WE=function(e){var t=$E.filter((function(e){var t;return null===(t=e.selections)||void 0===t?void 0:t.isActive()}));t.length&&("Enter"===e.key?t.forEach((function(e){return e.selections.confirm()})):"Escape"!==e.key&&"Esc"!==e.key||t.forEach((function(e){return e.selections.cancel()})))},YE=function(){document.addEventListener("keyup",WE)},KE=function(){document.removeEventListener("keyup",WE)},GE=function(e,t){Object.keys(t).forEach((function(n){e.on(n,t[n])}))},XE=function(e,t){Object.keys(t).forEach((function(n){e.removeListener(n,t[n])}))};function JE(e){var t=e.chart,n=e.document,r=e.selectionInfo,i=e.eventName,o=e.componentName,a=e.brushName,s=void 0===a?"selection":a,l=e.emit,u=void 0===l?"rangeClear":l,c=r.event===i,d=n.querySelector("[data-key='".concat(o,"-edge-0']"));if(c||!d)return!1;var f=t.component(o);return!!f&&(f.emit(u),"string"==typeof s&&t.brush(s).clear(),f)}var QE=["chart","document","selections","selectionInfo"],ZE=function(e){e.chart,e.document,e.selections,e.selectionInfo;var t=MM(e,QE);t.clearDiscrete(),t.clearContinuous(),t.clearMinor(),t.clearRange(),t.clearTap(),t.clearLegend()};function eD(e){var t,n=e.lasso;null!=n&&null!==(t=n.active)&&void 0!==t&&t.call(n)&&(null==n||n.action(!1))}function tD(e){var t,n=e.chart,r=e.selectionInfo,i=e.selectionActions,o=e.actions,a=void 0===o?{}:o,s=e.selections,l=e.selectionEvents;if(!1===i||!1===l)return function(){};var u=i.reset,c=void 0===u?eD:u,d=i.clear,f=!1!==d&&function(e){var t=e.clear,n=void 0===t?ZE:t,r=e.selections,i=e.selectionInfo,o=e.chart;return function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).cleared,t={selections:r,selectionInfo:i,chart:o,document:document,cleared:e};return n(yM({clearDiscrete:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e){var t=e.selectionInfo,n=e.chart,r=e.document,i=e.eventName,o=void 0===i?"discreteRange":i,a=e.componentName,s=void 0===a?"discrete-range-brush":a,l=e.cleared;return JE({selectionInfo:t,chart:n,document:r,eventName:void 0!==l&&l?void 0:o,componentName:s,emit:"areaClear",brushName:e.brushName})}(yM(yM({},t),e))},clearContinuous:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e){var t=e.selectionInfo,n=e.chart,r=e.document,i=e.eventName,o=void 0===i?"continuousRange":i,a=e.componentName,s=void 0===a?"continuous-range-brush":a,l=e.cleared;return JE({selectionInfo:t,chart:n,document:r,eventName:void 0!==l&&l?void 0:o,componentName:s,brushName:e.brushName})}(yM(yM({},t),e))},clearMinor:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e){var t=e.selectionInfo,n=e.chart,r=e.document,i=e.componentName,o=void 0===i?"minor-range-brush":i,a=e.eventName,s=void 0===a?"minorRange":a,l=e.cleared,u=void 0!==l&&l,c=e.brushName,d=JE({selectionInfo:t,chart:n,document:r,eventName:u?void 0:s,componentName:o,brushName:void 0!==c&&c});if(d){var f=d.settings.settings,h=f.scale,p=f.brush,m=n.scale(h).data().fields.map((function(e){return e.id()})),g=n.brush(p),y=g.brushes().filter((function(e){return"range"===e.type&&m.some((function(t){return t===e.id}))}));g&&y.length&&y.forEach((function(e){g.removeRanges(e.brush.ranges().map((function(t){return{key:e.id,range:t}})))}))}}(yM(yM({},t),e))},clearRange:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e){var t=e.selectionInfo,n=e.chart,r=e.document,i=e.selections,o=e.eventName,a=void 0===o?"xAxis":o,s=e.cleared;JE({selectionInfo:t,chart:n,document:r,eventName:void 0!==s&&s?void 0:a,componentName:"".concat(a,"-range-brush"),emit:"areaClear",brushName:!1})&&i.clear()}(yM(yM({},t),e))},clearTap:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e){var t=e.chart,n=e.selectionInfo,r=e.selections,i=e.events,o=void 0===i?["tap"]:i,a=e.brushNames,s=void 0===a?[]:a;if(n&&o.includes(n.event)){var l=n.currentComponent;n.previousComponent!==l&&(r.clear(),s.forEach((function(e){return t.brush(e).end()})))}}(yM(yM({},t),e))},clearLegend:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e){var t=e.selectionInfo,n=e.chart,r=e.document,i=e.selections,o=e.eventName,a=void 0===o?"legendRange":o,s=e.componentName,l=void 0===s?"legend-range-brush":s,u=e.cleared,c=void 0!==u&&u,d=e.brushName;JE({selectionInfo:t,chart:n,document:r,eventName:c?void 0:a,componentName:l,brushName:void 0!==d&&d})&&i.clear()}(yM(yM({},t),e))}},t))}}({clear:d,selections:s,selectionInfo:r,chart:n}),h=function(e){var t=e.chart,n=e.actions,r=e.reset,i=e.clear,o=!1,a={deactivated:function(e){var t=(n||{}).lasso;r({e:e,lasso:void 0!==t&&t})},canceled:function(e){var o=(n||{}).lasso;r({e:e,lasso:void 0!==o&&o}),i({e:e,chart:t,document:document})},cleared:function(e){o||(o=!0,i({e:e,chart:t,document:document,cleared:!0}),o=!1)}};return!1===r&&delete a.deactivated,!1===i&&delete a.cleared,!1===r&&!1===i&&delete a.canceled,a}({chart:n,clear:f,reset:c,actions:a}),p={};Object.entries(h).forEach((function(e){var t=kM(e,2),n=t[0],r=t[1];p[n]=function(e,t){return t?function(n){return t({event:n,defaultFunc:e})}:e}(r,l[n])}));var m=function(e){var t=e.selectionEvents,n=e.selections,r=e.selectionInfo,i=e.clear,o=e.chart,a=e.document,s=t.start,l={selections:n,selectionInfo:r,chart:o,document:a},u=function(e){return Object.assign(r,e||{})},c=function(e){var t=e.event,n=e.components;return function(){return function(e){var t=e.selectionInfo,n=e.clear,r=e.event,i=e.components,o=void 0===i?[]:i;(0,e.setSelectionInfo)(yM(yM({},void 0===t?{}:t),{},{event:r,components:o.map((function(e){return e.key})).filter(Boolean)})),n()}({event:t,components:n,clear:i,chart:o,selectionInfo:r,setSelectionInfo:u})}};return"function"==typeof s?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];s(yM(yM({defaultFunc:c({event:e,components:t}),setSelectionInfo:u,clear:i},l),{},{event:e,components:t}))}:function(e){c({event:e,components:arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]})()}}({selectionEvents:l,selections:s,selectionInfo:r,clear:f,chart:n,document:document});return null==a||null===(t=a.select)||void 0===t||t.on("start",m),Object.entries(p).forEach((function(e){var t=kM(e,2),n=t[0],r=t[1];null==s||s.on(n,r)})),function(){var e;null==a||null===(e=a.select)||void 0===e||e.removeListener("start",m),Object.entries(p).forEach((function(e){var t=kM(e,2),n=t[0],r=t[1];null==s||s.removeListener(n,r)}))}}var nD=[{key:"qHyperCube/qDimensionInfo/0:numeric",includeMax:!1}];function rD(e){var t=e.chart,n=e.actions,r=e.selections,i=e.picassoQ,o=e.config,a=o.allowSimultaneous,s=void 0!==a&&a,l=o.majorScale,u=void 0===l?void 0:l,c=o.selectionActions,d=void 0===c?{}:c,f=d.clear,h=d.reset,p=o.selectionEvents,m=void 0===p?{deactivated:void 0,canceled:void 0,cleared:void 0,start:void 0}:p,g=o.brushEvents,y=void 0===g?{}:g,v=o.brushName,b=void 0===v?"selection":v,x=o.brushMaxListeners,w=void 0===x?20:x,S=o.brushRanges,M=void 0!==S&&S,k=o.interceptors,C=void 0===k?{}:k,q=o.selectionsFn,E=void 0===q?i.selections:q,D=t.brush(b);if("number"==typeof w&&D.setMaxListeners(w),M){var T=!0===M?nD:M;D.configure({ranges:T})}var N={canSelect:!0,getIsSelectionLocked:!1,isInnerDimensionLocked:!1,lockedDimensions:[],singleSelectIndex:0,selectionInfo:{colorField:void 0,components:[],event:void 0,currentComponent:void 0,previousComponent:void 0}},O=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.selections,r=t.brush,i=t.majorScale,o=t.actions,a=t.selectionsFn,s=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).path,l=void 0===s?"/qHyperCubeDef":s;if(!n)return{layout:function(){},filteredFields:function(){},allowSimultaneous:function(){},release:function(){}};var u=++UE,c=null,d={dimensions:[],measures:[]},f=[],h={};n.on=n.on.bind(n),n.isActive=n.isActive.bind(n),n.addListener=n.addListener.bind(n),n.removeListener=n.removeListener.bind(n);var p=function(e){var t=e.brush,n=e.getConfig;return{interceptor:function(e){var r=t.brushes(),i=n(),o=i.allowSimultaneous,a=i.layout,s=void 0===a?{}:a;r.forEach((function(n){var r,i,a;("range"===n.type||null!==(r=e[0])&&void 0!==r&&r.key&&(null===(i=e[0])||void 0===i?void 0:i.key)!==n.id&&0!==o.indexOf(null===(a=e[0])||void 0===a?void 0:a.key))&&t.clear([])}));var l=e.filter((function(e){return-2!==e.value}));if(l.length>1){var u=function(e){var t=e.layout,n=void 0===t?{}:t,r=e.values,i=void 0===r?[]:r;if(null==i||!i.length)return[];var o=Array.from(new Set(i.map((function(e){return e.key})))),a=[];return o.forEach((function(e){var t=IE({layout:n,path:e}),r=i.filter((function(t){return t.key===e})),o=t?[r.pop()]:r;a.push.apply(a,CM(o))})),a.filter(Boolean)}({layout:s,values:l});return u}return l},rangeInterceptor:function(e){var r=t.brushes(),i=n().allowSimultaneous;return r.filter((function(e){return"value"===e.type})).length?(t.clear([]),e):(r.forEach((function(n){var r=n.id===e[0].key||i.includes(n.id)&&i.includes(e[0].key);"range"!==n.type||r||t.clear([])})),e)}}}({brush:r,getConfig:function(){return{layout:c,allowSimultaneous:f}}}),m=p.rangeInterceptor,g=p.interceptor;r.intercept("set-ranges",m),r.intercept("toggle-ranges",m),r.intercept("toggle-values",g),r.intercept("set-values",g),r.intercept("add-values",g),r.on("start",(function(){return n.begin(l)}));var y={activate:function(){},deactivated:function(){return r.end()},cleared:function(){return r.clear()},canceled:function(){return r.end()}};GE(n,y);var v=null==i||null===(e=i.max)||void 0===e?void 0:e.call(i);return null!=o&&o.select?(o.select.on("start",(function(){var e;r.start(),"function"==typeof o.select.getBrushOptions&&(h=(e=o.select).getBrushOptions.apply(e,arguments))})),o.select.on("end",(function(){var e=a(r,h,c),t=jE({layout:c,filtered:d});e.forEach((function(e){var r=VE({selection:e,fieldMap:t});(function(e,t,n){if(t&&void 0!==n&&"selectHyperCubeContinuousRange"===e.method){var r=e.params;if(r&&r[1]&&r[1][0]){var i=r[1][0],o=i.qDimIx,a=i.qRange;"undefined"!==o&&a&&!1===a.qMaxInclEq&&a.qMax>=n&&(a.qMaxInclEq=!0)}}})(r,o.select.brushSelectionIncludeMax,v),n.select(r)}))}))):r.on("update",(function(){var e=a(r,h,c),t=jE({layout:c,filtered:d});e.forEach((function(e){n.select(VE({selection:e,fieldMap:t}))}))})),0===$E.length&&YE(),$E.push({key:u,selections:n}),{layout:function(e){c=e},filteredFields:function(e){d=e},allowSimultaneous:function(e){f=e},release:function(){c=null;var e=$E.indexOf($E.filter((function(e){return e.key===u}))[0]);-1!==e&&$E.splice(e,1),$E.length||KE(),XE(n,y)}}}({brush:D,majorScale:u,actions:n,selections:r,picassoQ:i,selectionsFn:E});!function(e){var t=e.brush,n=e.interceptors,r=void 0===n?{}:n;Object.entries(r).forEach((function(e){var n=kM(e,2),r=n[0],i=n[1];(Array.isArray(i)?i:[i]).forEach((function(e){t.intercept(r,e)}))}))}({brush:D,interceptors:C});var A=function(e){var t=e.chart,n=e.selectionActions,r=e.brush,i=e.actions,o=e.selectionInfo,a=e.selections,s=e.selectionEvents,l=function(e){var t=e.brush,n=e.chart,r=e.selectionInfo,i=e.brushEvents,o=void 0===i?{}:i,a=Object.entries(o).map((function(e){var i=kM(e,2),o=i[0],a=i[1],s=function(){return a({chart:n,selectionInfo:r})};return t.on(o,s),[o,s]}));return function(){a.forEach((function(e){var n=kM(e,2),r=n[0],i=n[1];t.removeListener(r,i)}))}}({brush:r,chart:t,selectionInfo:o,brushEvents:e.brushEvents}),u=tD({chart:t,selectionInfo:o,selectionActions:n,actions:i,selections:a,selectionEvents:s}),c=function(e){var t=e.actions;if(null==t||!t.lasso)return function(){};var n=!1,r=function(e){n||e.key!==PE||(t.lasso.action(!0),n=!0)},i=function(e){e.key===PE&&(t.lasso.action(!1),n=!1)};return document.addEventListener("keydown",r),document.addEventListener("keyup",i),function(){document.removeEventListener("keydown",r),document.removeEventListener("keyup",i)}}({actions:i});return function(){l(),u(),c()}}({chart:t,brush:D,actions:n,selections:r,selectionInfo:N.selectionInfo,selectionActions:{clear:f,reset:h},selectionEvents:m,brushEvents:y});if(s){var _=!0===s?CM(Array(15)).map((function(e,t){return"qHyperCube/qMeasureInfo/".concat(t)})):s;O.allowSimultaneous(_)}return{unbindEvents:A,state:N,picassoSelections:O,brush:D}}var iD=["colorField","useLegendCube"];function oD(e){var t=e.chart,n=e.selections,r=e.actions,i=void 0!==r&&r,o=e.config,a=void 0===o?{}:o,s=rD({chart:t,actions:i,selections:n,picassoQ:LE,config:a}),l=s.unbindEvents,u=s.state,c=s.picassoSelections,d=s.brush,f=a.custom,h=void 0===f?{}:f,p=a.legendAlias,m=void 0===p?void 0:p,g=a.setBrushAliases,y=void 0===g?RE:g;return{getIsDimensionLocked:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return u.lockedDimensions[e]},getIsSelectionLocked:function(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return null!==(e=null==n||null===(t=n.isLocked)||void 0===t?void 0:t.call(n))&&void 0!==e?e:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(null==e||!e.length)return!1;var t=e.filter((function(e){return"object"===bM(e.data)&&Array.isArray(e.data.fields)})).every((function(e){return e.data.fields.every((function(e){var t=e.raw();return!(!t.qLocked&&t.qCardinal)}))}));return t}(r)},getIsSingleSelect:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.singleSelectIndex;return u.singleSelectDimensions[e]},getCanSelect:function(){return u.canSelect},getSelectionsObject:function(){return n},getSelectionInfo:function(){return u.selectionInfo},setLayout:function(e){var t=function(e){var t,n,r,i=e.selections,o=e.picassoSelections,a=e.layout,s={lockedDimensions:[],singleSelectDimensions:[]};null!=i&&null!==(t=i.isModal)&&void 0!==t&&t.call(i)&&i.confirm(),o.layout(a);var l=(null!==(n=null==a?void 0:a.qHyperCube)&&void 0!==n?n:{}).qDimensionInfo,u=void 0===l?[]:l;return s.lockedDimensions=u.map((function(e){return!!e.qLocked})),s.singleSelectDimensions=u.map((function(e,t){return IE({layout:a,path:"qHyperCube/qDimensionInfo/".concat(t)})})),s.singleSelectIndex=function(e){var t,n=((null==e?void 0:e.qHyperCube)||{}).qDimensionInfo,r=void 0===n?[]:n;return null!==(t=r.map((function(e,t){var n;return!(e.qLocked||(null===(n=e.qCardinalities)||void 0===n?void 0:n.qHypercubeCardinal)<=1)&&t})).filter((function(e){return"number"==typeof e}))[0])&&void 0!==t?t:Math.max(r.length-1,0)}(a),s.canSelect=0===u.length||u.some((function(e){return!e.qLocked})),s.dimensionLocked=!(null===(r=u[0])||void 0===r||!r.qLocked),s}({selections:n,picassoSelections:c,layout:e});Object.assign(u,t)},setFilteredFields:function(e){c.filteredFields(e)},setBrushAliases:function(e){var t=e.colorField,n=e.useLegendCube,r=void 0!==n&&n,i=MM(e,iD),o=yM({useLegendCube:r,colorField:t,brush:d,legendAlias:m},i);y(yM(yM({},o),{},{defaultFunc:function(){return RE(o)}}))},destroy:function(){l(),c.release()},custom:yM({},h)}}var aD="'Source Sans Pro', 'Arial', 'sans-serif'",sD="#333333",lD="#595959",uD="#737373",cD="#cccccc",dD="#e6e6e6";function fD(e){var t={};return[].concat(CM(e),CM([["","","color"],["object","","fontFamily"],["object","axis.label.name","color",lD],["object","axis.label.name","fontFamily",aD],["object","axis.label.name","fontSize","12px"],["object","axis.line.major","color",cD],["object","axis.line.minor","color",dD],["object","axis.title","color"],["object","axis.title","fontFamily",aD],["object","axis.title","fontSize","13px"],["object","grid.line.highContrast","color",dD],["object","grid.line.major","color",cD],["object","grid.line.minor","color",dD],["object","label.value","color",lD],["object","label.value","fontFamily",aD],["object","label.value","fontSize","12px"],[!1,"label.value","darkColor",lD],[!1,"label.value","lightColor",dD],["object","outOfRange","color","#999"],["object","legend.title","color",sD],["object","legend.title","fontFamily",aD],["object","legend.title","fontSize","15px"],["object","legend.label","color",lD],["object","legend.label","fontFamily",aD],["object","legend.label","fontSize","13px"],["object","referenceLine.label.name","color",sD],["object","referenceLine.label.name","fontFamily",aD],["object","referenceLine.label.name","fontSize","12px"],["object","referenceLine.outOfBounds","color",dD],["object","referenceLine.outOfBounds","fontFamily",aD],["object","referenceLine.outOfBounds","fontSize","12px"],["object","referenceLine.outOfBounds","backgroundColor",uD,function(e){return"transparent"===e?uD:e}]])).reduce((function(e,n){var r="".concat(n[0],"-").concat(n[1],"-").concat(n[2],"}");return t[r]||(t[r]=!0,e.push(n)),e}),[]).sort((function(e,t){return(e[0].split?e[0].split(".").length:0)-(t[0].split?t[0].split(".").length:0)}))}var hD=function(e){return e};function pD(e){var t=e.theme,n=e.id,r=e.transform,i=e.extend,o=e.matrix,a={},s=r.reduce((function(e,t){var n=kM(t,2),r=n[0],i=n[1];return e[r]=i,e}),{});return o.forEach((function(e){var r=kM(e,5),i=r[0],o=r[1],l=r[2],u=r[3],c=r[4],d=void 0===c?function(e){return e}:c,f=function(e){var t=e.theme,n=e.base,r=e.path,i=e.attribute,o=e.defaultValue,a=void 0===o?void 0:o;if(!t||!1===n)return a;var s=t.getStyle(n,r,i);return void 0===s?a:s}({theme:t,base:"object"===i&&n?"".concat("object",".").concat(n):i,path:o,attribute:l,defaultValue:u}),h=(s["".concat(o,".").concat(l)]||hD)(d(f));jC(a,[o,l].filter(Boolean).join("."),h)})),i.forEach((function(e){var t=kM(e,2),n=t[0],r=t[1];jC(a,n,r)})),a}var mD={dataRelatedPropertiesPaths:["qHyperCube.qGrandTotalRow","qHyperCube.qHasOtherValues","qHyperCube.qSize","qHyperCube.qDimensionInfo[].qAttrDimInfo","qHyperCube.qDimensionInfo[].qCardinalities","qHyperCube.qDimensionInfo[].qMax","qHyperCube.qDimensionInfo[].qMin","qHyperCube.qDimensionInfo[].qStateCounts","qHyperCube.qMeasureInfo[].qApprMaxGlyphCount","qHyperCube.qMeasureInfo[].qAttrExprInfo","qHyperCube.qMeasureInfo[].qMax","qHyperCube.qMeasureInfo[].qMin","qHyperCube.qMeasureInfo[].qTrendLines","qHyperCube.qTreeNodesOnDim","qSelectionInfo"]};function gD(e){const{qHyperCube:t,...n}=e,{qAxisData:r,qDataPages:i,qStackedDataPages:o,qTreeDataPages:a,...s}=t,l=Cg(!0,{},{...n,qHyperCube:{...s,qAxisData:null,qDataPages:null,qStackedDataPages:null,qTreeDataPages:null}}),{dataRelatedPropertiesPaths:u}=mD;return u.forEach((e=>{const t=e.split("[");if(1===t.length)void 0!==zC(l,e)&&jC(l,e,null);else{const e=t[0],n=t[1].split("].")[1];zC(l,e,[]).forEach((e=>{void 0!==zC(e,n)&&jC(e,n,null)}))}})),l}var yD={axes:{trackBy:function({isTime:e,isContinuous:t,isMeasure:n,isMajor:r}){return i=>{if(e||t||n){var o;if("line"===i.type)return null!==(o=i.tickValue)&&void 0!==o?o:"axis";if("text"===i.type)return`${i.tickValue} ${i.text}`;if("container"===i.type){const e=i.children.filter((e=>"text"===e.type)).map((e=>e.text));return`${i.data.value} ${e.join("")}`}return Math.random()}if(r){if("line"===i.type&&void 0===i.tickValue)return"axis";const e=i.transform&&i.transform.match(/rotate/gi)?"rotated":"horizontal";return`${i.data.group?`${i.data.group.value} `:""}${i.data.value} ${i.text} ${e}`}return Math.random()}},compensateForLayoutChanges:function({isMeasure:e,isTime:t,isContinuous:n,isHorizontal:r,dock:i}){return({currentNodes:o,currentRect:a,previousRect:s})=>{const l=a.x-s.x,u=a.y-s.y,c=a.width-s.width,d=a.height-s.height;e?("left"===i&&o.forEach((e=>{"line"===e.type?(e.x1+=c,e.x2+=c):"text"===e.type&&(e.x+=c)})),"left"!==i&&"right"!==i||o.forEach((e=>{var t;("line"===e.type&&(e.x1===e.x2?(e.y1=a.y,e.y2=e.y1+a.height):(Math.round(e.y1)<a.y||e.y1>a.y+a.height)&&(e.strokeWidth=0)),"text"===e.type)&&((e.y<a.y||e.y>a.y+a.height)&&(e.fontSize="1px","#"===(null===(t=e.fill)||void 0===t?void 0:t[0])&&(e.fill=`${e.fill.slice(0,1)}00${e.fill.slice(1)}`)))})),"top"!==i&&"bottom"!==i||o.forEach((e=>{var t;("line"===e.type&&(e.y1===e.y2?(e.x1=a.x,e.x2=e.x1+a.width):(Math.round(e.x1)<a.x||e.x1>a.x+a.width)&&(e.strokeWidth=0)),"text"===e.type)&&((e.x<a.x||e.x>a.x+a.width)&&(e.fontSize="1px","#"===(null===(t=e.fill)||void 0===t?void 0:t[0])&&(e.fill=`${e.fill.slice(0,1)}00${e.fill.slice(1)}`)))}))):t?o.forEach((e=>{"line"===e.type?e.y1===e.y2?e.x2+=c:e.x1===e.x2&&(e.x1-=l,e.x2-=l):"text"===e.type&&(e.x-=l)})):n||r?o.forEach((e=>{"line"===e.type&&e.y1===e.y2&&(e.x1+=l,e.x2+=l+c)})):o.forEach((e=>{"line"===e.type&&e.x1===e.x2&&(e.y1+=u,e.y2+=u+d)}))}}},bars:{trackBy:function(e){return e.data.typeIndex?`${e.data.value} ${e.data.typeIndex.value}`:e.data.measureIndex?`${e.data.value} ${e.data.measureIndex.value}`:e.data.group?`${e.data.value} ${e.data.group.value}`:e.data.stack?`${e.data.value} ${e.data.stack.value}`:`${e.data.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y;0===r&&0===i||e.forEach((e=>{e.children&&e.children.length>0&&e.children.forEach((e=>{void 0!==e.x&&void 0!==e.y?(e.x-=r,e.y-=i):e.transform=`translate(${-r}, ${-i})`}))}))}},barOobs:{compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x;0===t.y-n.y&&0===r||e.forEach((e=>{e.children&&e.children.length>0&&e.children.forEach((e=>{e.opacity=0}))}))}},labels:{trackBy:function(e){if("rect"===e.type)return"-3"===e.data?Math.random():`${e.type} ${e.data} ${e.rotation}`;const t=e.transform&&e.transform.match(/rotate/gi)?"rotated":"horizontal";return`${e.type} ${e.data} ${e.text} ${t}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y;0===r&&0===i||e.forEach((e=>{e.transform&&e.transform.match(/rotate\(-90/gi)?(e.x+=i,e.y-=r):(e.x-=r,e.y-=i)}))},linkData:function(e){return e.data.measureIndex?`${e.data.value} ${e.data.measureIndex.value}`:e.data.group?`${e.data.value} ${e.data.group.value}`:e.data.stack?`${e.data.value} ${e.data.stack.value}`:`${e.data.value}`}},lines:{trackBy:function(e){var t;return"line"===e.type?null!==(t=e.value)&&void 0!==t?t:Math.random():"path"===e.type?`${e.generatorType} ${e.layerObj.id} ${e.data.source.key}`:Math.random()},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y;e.forEach((e=>{if(void 0!==e.x1&&void 0!==e.y1)e.y1===e.y2?(e.x2=e.x1+t.width,e.y1-=i,e.y2-=i):e.x1===e.x2&&(e.y2=e.y1+t.height,e.x1-=r,e.x2-=r);else{const t="x"===e.major.p?r/e.major.size:i/e.major.size,n="y"===e.minor.p?i/e.minor.size:r/e.minor.size;e.points.forEach((e=>{e.modified||(e.major-=t,e.minor-=n,e.minor0-=n,e.modified=!0)}))}}))}},lineOobs:{compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x;0===t.y-n.y&&0===r||e.forEach((e=>{e.opacity=0}))}},markers:{trackBy:function(e){return e.data.line?`${e.data.line.value} ${e.data.major.value}`:`${e.data.major.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y;0===r&&0===i||e.forEach((e=>{switch(e.type){case"circle":e.cx-=r,e.cy-=i;break;case"rect":e.x-=r,e.y-=i;break;case"path":e.transform=`translate(${-r}, ${-i})`}}))}},points:{trackBy:function(e){return e.data.line?`${e.data.line.value} ${e.data.major.value}`:`${e.data.major.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y;0===r&&0===i||e.forEach((e=>{e.cx-=r,e.cy-=i}))}},refLineLabels:{trackBy:function(e){if(void 0!==e.value){if("rect"===e.type)return`${e.value}`;if("text"===e.type)return`${e.value} ${e.text}`}return Math.random()},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y,o=t.width-n.width,a=t.height-n.height;let s=-r,l=-i;e.forEach((e=>{switch(e.dock){case"right":r>0&&(s=t.width);break;case"left":o<0&&(s=-n.width);break;case"top":a<0&&(l=-n.height);break;case"bottom":i>0&&(l=t.height)}switch(e.type){case"text":case"rect":e.x+=s,e.y+=l;break;case"circle":e.cx+=s,e.cy+=l;break;case"path":e.transform=`translate(${s}, ${l})`}}))}},shadowBars:{trackBy:function(){return Math.random()}},cacheProperties:function({viewCache:e,layout:t}){const n=gD(t);e.set("dataIndependentProperties",JSON.stringify(n))},propertiesHaveChanged:function({viewCache:e,layout:t}){const n=gD(t);return e.get("dataIndependentProperties")!==JSON.stringify(n)},nonUpdatingNode:{trackBy:function(){return Math.random()}}};const{getInputValue:vD,extractInfoFromInputValue:bD,resolveValue:xD}=GS;var wD={resolveValue:xD,resolveInnerValues:({refLineLayout:e,refLineModel:t,layoutService:n})=>{if(n.meta.isGroupedByDimension){const r=vD({refLineLayout:e,layoutService:n});return bD(r,t,"innerValues")}},resolveNumInnerValues:({refLineLayout:e,refLineModel:t,layoutService:n})=>{if(n.meta.mode.K)return 0;const r=vD({refLineLayout:e,layoutService:n});return bD(r,t,"numInnerValues")||0},resolveValueText:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const{dimensionValuesInfo:r}=t,{canBeContinuous:i}=n.meta,o=vD({refLineLayout:e,layoutService:n});return r[o]&&i?r[o].qText:o},resolveValueInfo:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const r=vD({refLineLayout:e,layoutService:n}),{dimensionRefLineInfo:i}=t;return i[r]}};const SD=({isDimension:e,refLineLayout:t,refLineModel:n,layoutService:r,colorModel:i,dockService:o,chart:a,scale:s,axis:l,invert:u,component:c,isContinuous:d})=>{var f,h;const p={dir:l,line:{strokeWidth:(null==t||null===(f=t.style)||void 0===f?void 0:f.lineThickness)||2,strokeDasharray:null==t||null===(h=t.style)||void 0===h?void 0:h.lineType,stroke:i.resolveUIColor(t.paletteColor||{index:t.color})}};return!e||r.meta.isContinuous?(p.scale=s,p.value=t.refLineExpr.value):(p.valueInfo=wD.resolveValueInfo({refLineLayout:t,refLineModel:n,layoutService:r}),p.value=()=>{var e;const i=GS.getScaledPosition({scale:a.scale(s),value:wD.resolveValue({refLineLayout:t,refLineModel:n,layoutService:r}),valueInfo:p.valueInfo,size:null===(e=a.component(c))||void 0===e?void 0:e.rect["horizontal"===o.meta.major.orientation?"width":"height"],align:t.align,invert:u,layoutService:r,isContinuous:d});return Number.isNaN(i)?void 0:i}),p};function MD({isDimension:e,refLineModel:t={},layoutService:n,colorModel:r,dockService:i,animationsEnabled:o,chart:a,scale:s,axis:l,rtl:u,key:c,mainComponentKey:d,path:f,minimumLayoutMode:h}){const p=e?t.dimensionRefLines:f?t.query.getRefLines(f):t.measureRefLines;if(!p.length)return!1;const m={key:c,type:"ref-line",layout:{minimumLayoutMode:h},lines:{y:[],x:[]},style:{oob:{show:!1}},preferredSize:()=>({size:0,edgeBleed:{left:1,right:1,top:1,bottom:1}}),animations:{enabled:o,trackBy:yD.lines.trackBy,compensateForLayoutChanges:yD.lines.compensateForLayoutChanges}},g=!(!e||"horizontal"!==i.meta.major.orientation||!u),y=!e||n.meta.isContinuous;return p.forEach((o=>{m.lines[l].push(SD({isDimension:e,refLineLayout:o,refLineModel:t,layoutService:n,colorModel:r,dockService:i,chart:a,scale:s,axis:l,invert:g,component:d,isContinuous:y}))})),m}const kD={referenceLine:{label:{name:{fontFamily:"Source Sans Pro, sans-serif",fontSize:"12px"}},outOfBounds:{backgroundColor:"#737373",color:"#e6e6e6",fontFamily:"Source Sans Pro, sans-serif",fontSize:"10px"}}},CD=({isDimension:e,layoutService:t,animationsEnabled:n,style:r,labels:i,scale:o,formatter:a,dock:s,key:l,rtl:u,theme:c,isContinuous:d,localeInfo:f})=>({key:l,type:"reference-line-labels",renderer:"svg",labels:i,formatter:a,scale:o,layoutService:t,layout:{dock:s,rtl:u},theme:c,isContinuous:d,isDimension:e,localeInfo:f,style:{label:{fontFamily:r.referenceLine.label.name.fontFamily,fontSize:r.referenceLine.label.name.fontSize,padding:{top:2,bottom:2,left:u?2:4,right:u?4:2},background:{padding:{top:1,bottom:1,left:2,right:2}},maxWidth:100,gap:"left"===s||"right"===s?10:16},oob:{size:8,fill:r.referenceLine.outOfBounds.backgroundColor,text:{fontFamily:r.referenceLine.outOfBounds.fontFamily,fontSize:r.referenceLine.outOfBounds.fontSize,fill:r.referenceLine.outOfBounds.color,background:{fill:r.referenceLine.outOfBounds.backgroundColor}}}},animations:{enabled:n,trackBy:yD.refLineLabels.trackBy,compensateForLayoutChanges:yD.refLineLabels.compensateForLayoutChanges}}),qD=({refLineLayout:e,refLineModel:t,layoutService:n,colorModel:r,scale:i,theme:o,isContinuous:a})=>{const s=r.resolveUIColor(e.paletteColor||{index:e.color}),l={align:e.align,text:e.label,fill:e.coloredBackground?o.getContrastingColorTo(s):s,showValue:!1!==e.showValue,showLabel:!1!==e.showLabel,inputValue:e.refLineExpr.value,inputValueLabel:e.refLineExpr.label};return e.coloredBackground&&(l.background={fill:s}),a?(l.scale=i,l.value=e.refLineExpr.value):(l.value=()=>wD.resolveValue({refLineLayout:e,refLineModel:t,layoutService:n}),l.valueText=()=>wD.resolveValueText({refLineLayout:e,refLineModel:t,layoutService:n}),l.valueInfo=()=>wD.resolveValueInfo({refLineLayout:e,refLineModel:t,layoutService:n})),l};function ED({isDimension:e,refLineModel:t={},layoutService:n,colorModel:r,animationsEnabled:i,dock:o,scale:a,style:s,formatter:l,theme:u,localeInfo:c,rtl:d,key:f,path:h}){const p=e?t.dimensionRefLineLabels:h?t.query.getRefLineLabels(h):t.measureRefLineLabels;if(!p.length)return[];const m=[],g=!e||n.meta.isContinuous,y=p.map((e=>qD({refLineLayout:e,refLineModel:t,layoutService:n,colorModel:r,scale:a,theme:u,isContinuous:g})));return m.push(CD({isDimension:e,rtl:d,style:Cg(!0,kD,s),dock:o,key:f,labels:y,scale:a,formatter:l,layoutService:n,animationsEnabled:i,theme:u,isContinuous:g,localeInfo:c})),m}function DD({layoutService:e,discreteModel:t}){const{isContinuous:n,canBeContinuous:r,isGroupedByDimension:i}=e.meta,o=e.getLayout(),a="K"===o.qHyperCube.qMode,s=zg.dimensionless(o),l=GS.getMeasureRefLines(o),u=GS.getDimensionRefLines(o,s),c=GS.getMeasureRefLineLabels(o),d=GS.getDimensionRefLineLabels(o,s);let f={},h={};const p=()=>!(!u||!u.length)&&!u.every((t=>{const o=GS.getInputValue({refLineLayout:t,layoutService:e});return(t=>{if(r){const n=e.getLayoutValue("qHyperCube.qDimensionInfo.0"),{qMin:r,qMax:i}=n;return GS.isOutOfRange({value:t,qMin:r,qMax:i})}return!1})(o)||(t=>{if(!h[t])return!1;if(!n&&i){const n={valueInfo:h[t]},r="S"===e.getHyperCubeValue("qMode")?"qDataPages.0":"qStackedDataPages.0",i=e.getHyperCubeValue(r);return GS.isOutOfDataPages({label:n,dataPages:i})}return!0})(o)})),m={isKMode:a,canBeContinuous:r,measureRefLines:l,dimensionRefLines:u,measureRefLineLabels:c,dimensionRefLineLabels:d,dimensionRefLineInfo:h,dimensionValuesInfo:f,query:{getRefLines:e=>GS.getRefLines(o,e),getRefLineLabels:e=>GS.getRefLineLabels(o,e)},update:()=>{h=m.dimensionRefLineInfo,p()&&(f=GS.getDimensionValuesInfo({layout:o,canBeContinuous:r,discreteModel:t,layoutService:e}),m.dimensionValuesInfo=f,u.forEach((t=>{const n=GS.getInputValue({refLineLayout:t,layoutService:e});f[n]&&(h[n]?(h[n].innerValues=f[n].innerValues,h[n].minOrder=Math.min(h[n].minOrder,f[n].minOrder),h[n].maxOrder=Math.max(h[n].maxOrder,f[n].maxOrder),h[n].isMinOrderOk=h[n].isMinOrderOk||f[n].isMinOrderOk,h[n].isMaxOrderOk=h[n].isMaxOrderOk||f[n].isMaxOrderOk):h[n]={id:f[n].id,qText:f[n].qText,innerValues:f[n].innerValues,minOrder:f[n].minOrder,maxOrder:f[n].maxOrder,isMinOrderOk:f[n].isMinOrderOk,isMaxOrderOk:f[n].isMaxOrderOk},h[n].numInnerValues=(h[n].maxOrder||0)-(h[n].minOrder||0)+1)})))}};return m.update(),m}const TD={combineBounds(e){let t=Number.MAX_VALUE,n=-Number.MAX_VALUE,r=Number.MAX_VALUE,i=-Number.MAX_VALUE;return e.forEach((e=>{e&&(t=Math.min(t,e.x,e.x+e.width),n=Math.max(n,e.x,e.x+e.width),r=Math.min(r,e.y,e.y+e.height),i=Math.max(i,e.y,e.y+e.height))})),{x:t,y:r,width:n-t,height:i-r}}},ND=(e,t,n)=>{if(!e)return Promise.resolve();let r=xS.generate(t,n);return Cg(!0,t,n),r&&r.length?(r=r.map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}))),e.applyPatches(r,!0)):Promise.resolve()},OD=e=>{var t;return!(!e||e.qHasSoftPatches||e.qExtendsId||!(((null===(t=e.qMeta)||void 0===t?void 0:t.privileges)||[]).indexOf("update")>-1))};function AD(e,t=!1){const n=t?"IM_5791_SVG_LABEL_RENDERING":"IM_4962_SVG_CHART_LABELS";if(null!=e&&e.isEnabled(n))return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?void 0:"svg"}const _D={ref:null,refFn:e=>{var t;const n=null===(t=e.qHyperCubeDef.qMeasures)||void 0===t?void 0:t.findIndex((e=>{var t;return"colorByExpression"===(null===(t=e.qAttributeExpressions)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.id)}));return`qHyperCubeDef.qMeasures.${-1===n?0:n}.qAttributeExpressions.0.qExpression`},change(e){var t;const n=null===(t=e.qHyperCubeDef)||void 0===t||null===(t=t.qMeasures)||void 0===t?void 0:t.findIndex((e=>{var t;return"colorByExpression"===(null===(t=e.qAttributeExpressions)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.id)})),r=Lg.getValue(e,`qHyperCubeDef.qMeasures.${-1===n?0:n}.qAttributeExpressions.0`),i=Lg.getValue(e,"color");r&&(r.id="colorByExpression",i&&(i.colorExpression=r.qExpression))}};var LD={exports:{}},ID={},RD=Symbol.for("react.element"),PD=Symbol.for("react.portal"),zD=Symbol.for("react.fragment"),FD=Symbol.for("react.strict_mode"),jD=Symbol.for("react.profiler"),BD=Symbol.for("react.provider"),HD=Symbol.for("react.context"),VD=Symbol.for("react.forward_ref"),$D=Symbol.for("react.suspense"),UD=Symbol.for("react.memo"),WD=Symbol.for("react.lazy"),YD=Symbol.iterator;var KD={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},GD=Object.assign,XD={};function JD(e,t,n){this.props=e,this.context=t,this.refs=XD,this.updater=n||KD}function QD(){}function ZD(e,t,n){this.props=e,this.context=t,this.refs=XD,this.updater=n||KD}JD.prototype.isReactComponent={},JD.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},JD.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},QD.prototype=JD.prototype;var eT=ZD.prototype=new QD;eT.constructor=ZD,GD(eT,JD.prototype),eT.isPureReactComponent=!0;var tT=Array.isArray,nT=Object.prototype.hasOwnProperty,rT={current:null},iT={key:!0,ref:!0,__self:!0,__source:!0};function oT(e,t,n){var r,i={},o=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(o=""+t.key),t)nT.call(t,r)&&!iT.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(1===s)i.children=n;else if(1<s){for(var l=Array(s),u=0;u<s;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===i[r]&&(i[r]=s[r]);return{$$typeof:RD,type:e,key:o,ref:a,props:i,_owner:rT.current}}function aT(e){return"object"==typeof e&&null!==e&&e.$$typeof===RD}var sT=/\/+/g;function lT(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function uT(e,t,n,r,i){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var a=!1;if(null===e)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case RD:case PD:a=!0}}if(a)return i=i(a=e),e=""===r?"."+lT(a,0):r,tT(i)?(n="",null!=e&&(n=e.replace(sT,"$&/")+"/"),uT(i,t,n,"",(function(e){return e}))):null!=i&&(aT(i)&&(i=function(e,t){return{$$typeof:RD,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(sT,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=""===r?".":r+":",tT(e))for(var s=0;s<e.length;s++){var l=r+lT(o=e[s],s);a+=uT(o,t,n,l,i)}else if(l=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=YD&&e[YD]||e["@@iterator"])?e:null}(e),"function"==typeof l)for(e=l.call(e),s=0;!(o=e.next()).done;)a+=uT(o=o.value,t,n,l=r+lT(o,s++),i);else if("object"===o)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function cT(e,t,n){if(null==e)return e;var r=[],i=0;return uT(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function dT(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var fT={current:null},hT={transition:null},pT={ReactCurrentDispatcher:fT,ReactCurrentBatchConfig:hT,ReactCurrentOwner:rT};function mT(){throw Error("act(...) is not supported in production builds of React.")}ID.Children={map:cT,forEach:function(e,t,n){cT(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return cT(e,(function(){t++})),t},toArray:function(e){return cT(e,(function(e){return e}))||[]},only:function(e){if(!aT(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},ID.Component=JD,ID.Fragment=zD,ID.Profiler=jD,ID.PureComponent=ZD,ID.StrictMode=FD,ID.Suspense=$D,ID.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=pT,ID.act=mT,ID.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=GD({},e.props),i=e.key,o=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(o=t.ref,a=rT.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)nT.call(t,l)&&!iT.hasOwnProperty(l)&&(r[l]=void 0===t[l]&&void 0!==s?s[l]:t[l])}var l=arguments.length-2;if(1===l)r.children=n;else if(1<l){s=Array(l);for(var u=0;u<l;u++)s[u]=arguments[u+2];r.children=s}return{$$typeof:RD,type:e.type,key:i,ref:o,props:r,_owner:a}},ID.createContext=function(e){return(e={$$typeof:HD,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:BD,_context:e},e.Consumer=e},ID.createElement=oT,ID.createFactory=function(e){var t=oT.bind(null,e);return t.type=e,t},ID.createRef=function(){return{current:null}},ID.forwardRef=function(e){return{$$typeof:VD,render:e}},ID.isValidElement=aT,ID.lazy=function(e){return{$$typeof:WD,_payload:{_status:-1,_result:e},_init:dT}},ID.memo=function(e,t){return{$$typeof:UD,type:e,compare:void 0===t?null:t}},ID.startTransition=function(e){var t=hT.transition;hT.transition={};try{e()}finally{hT.transition=t}},ID.unstable_act=mT,ID.useCallback=function(e,t){return fT.current.useCallback(e,t)},ID.useContext=function(e){return fT.current.useContext(e)},ID.useDebugValue=function(){},ID.useDeferredValue=function(e){return fT.current.useDeferredValue(e)},ID.useEffect=function(e,t){return fT.current.useEffect(e,t)},ID.useId=function(){return fT.current.useId()},ID.useImperativeHandle=function(e,t,n){return fT.current.useImperativeHandle(e,t,n)},ID.useInsertionEffect=function(e,t){return fT.current.useInsertionEffect(e,t)},ID.useLayoutEffect=function(e,t){return fT.current.useLayoutEffect(e,t)},ID.useMemo=function(e,t){return fT.current.useMemo(e,t)},ID.useReducer=function(e,t,n){return fT.current.useReducer(e,t,n)},ID.useRef=function(e){return fT.current.useRef(e)},ID.useState=function(e){return fT.current.useState(e)},ID.useSyncExternalStore=function(e,t,n){return fT.current.useSyncExternalStore(e,t,n)},ID.useTransition=function(){return fT.current.useTransition()},ID.version="18.3.1",LD.exports=ID;var gT=LD.exports,yT=fg(gT),vT=t({__proto__:null,default:yT},[gT]);const bT={d:"M7 4h9v1H7zm2 4h7v1H9zm2 4h5v1h-5zM1 4v3.526a3.5 3.5 0 0 0 3.5 3.5h2.31L5.22 9.402l.715-.7L8.7 11.527 5.935 14.35l-.714-.7 1.59-1.624H4.5a4.5 4.5 0 0 1-4.5-4.5V4z"},xT={d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7Z"},wT={d:"M 6 2 h 10 V 1 H 6 Z m 5 5 h 5 V 6 h -5 Z m 5 5 h -5 v -1 h 5 Z M 5 10 h 1 v 2.663 a 3.5 3.5 0 1 0 -2.922 0.036 l -0.406 0.914 A 4.501 4.501 0 1 1 7.329 13 H 9 v 1 H 5 Z"},ST={d:"M13,7 L8,7 L13,7 L13,4.98151367 C13,2.23029964 10.7614237,0 8,0 C5.23857625,0 3,2.23029964 3,4.98151367 L3,7 L3.75,7 L3,7 L4.5,7 L4.5,5.33193359 C4.5,3.21561511 5.54860291,1.5 8,1.5 C10.4513971,1.5 11.5,3.21561511 11.5,5.33193359 L11.5,7 L12.25,7 L3,7 C2.44771525,7 2,7.44771525 2,8 L2,15 C2,15.5522847 2.44771525,16 3,16 L13,16 C13.5522847,16 14,15.5522847 14,15 L14,8 C14,7.44771525 13.5522847,7 13,7 L3,7 L13,7 Z"},MT={d:"m 13.914 4.5 l -7.707 7.707 L 2 8 l 0.707 -0.707 l 3.5 3.5 l 7 -7 Z"},kT={d:"M2.4,4 L13.6,4 C13.7104569,4 13.8,4.08954305 13.8,4.2 C13.8,4.24327404 13.7859644,4.28538077 13.76,4.32 L8.16,11.7866667 C8.09372583,11.8750322 7.96836556,11.8929408 7.88,11.8266667 C7.86483887,11.8152958 7.85137085,11.8018278 7.84,11.7866667 L2.24,4.32 C2.17372583,4.23163444 2.19163444,4.10627417 2.28,4.04 C2.31461923,4.01403557 2.35672596,4 2.4,4 Z"},CT={d:"M4,13.6 L4,2.4 C4,2.28954305 4.08954305,2.2 4.2,2.2 C4.24327404,2.2 4.28538077,2.21403557 4.32,2.24 L11.7866667,7.84 C11.8750322,7.90627417 11.8929408,8.03163444 11.8266667,8.12 C11.8152958,8.13516113 11.8018278,8.14862915 11.7866667,8.16 L4.32,13.76 C4.23163444,13.8262742 4.10627417,13.8083656 4.04,13.72 C4.01403557,13.6853808 4,13.643274 4,13.6 Z"},qT={single:"N",drillDown:"H",cyclic:"C"},ET={N:void 0,H:bT,C:wT},DT=(e,t)=>{switch(e.qGrouping){case qT.single:return;case qT.drillDown:return{path:bT,tooltip:"Tooltip.dimensions.drilldown",onClick:void 0};case qT.cyclic:return{path:t?xT:wT,tooltip:"Tooltip.dimensions.cyclic",onClick:t?({onError:n})=>{t.getDimension(e.qLibraryId).then((e=>{e.stepCycle?e.stepCycle(1):n()})).catch((()=>null))}:void 0};default:return}};function TT(e,t,n){(function({model:e,properties:t}){return e.modifiers?e.modifiers.apply({model:e,properties:t}):Promise.resolve()})({model:e,properties:n}).then((()=>{e.colorSupport&&e.colorSupport.colorByUpdater(n,"qHyperCubeDef.");let r=xS.generate(t,n);r&&r.length&&(r=r.map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}))),e.applyPatches(r,!0))}))}function NT(e,t,n,r,i,o){e.getEffectiveProperties().then((a=>{const s=a.qHyperCubeDef[r].findIndex((e=>e.qDef.cId===t)),l=a.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r].findIndex((e=>e.qDef.cId===n)),u=Cg(!0,{},a),c=u.qHyperCubeDef[r][s],d=u.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l];d.qAttributeDimensions=c.qAttributeDimensions,c.qAttributeDimensions=[],o||(d.qAttributeExpressions=c.qAttributeExpressions,c.qAttributeExpressions=[]),u.qHyperCubeDef[r][s]=d,u.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l]=c,i&&i({oldItem:c,newItem:d,oldProperties:a,newProperties:u,model:e}),TT(e,a,u)}))}function OT(e){return e.qGrouping===qT.single?e.qFallbackTitle||"":e.title||""}const AT=async(e,t,n,r,i="/qHyperCubeDef")=>{switch(e.qGrouping){case qT.drillDown:{const n=e.qGroupFallbackTitles.slice(0,e.qGroupPos+1).map(((n,o)=>({id:`${e.cId}-${o}`,title:n,selected:e.qGroupPos===o,onSelect:()=>{t.drillUp(i,r,e.qGroupPos-o)}})));return{id:e.cId,icon:bT,groupItem:!0,title:e.title,selected:!1,children:n}}case qT.cyclic:{const t=await(null==n?void 0:n.getDimension(e.qLibraryId)),r=!(null!=t&&t.setActiveField)?[]:e.qGroupFallbackTitles.map(((n,r)=>({id:`${e.cId}-${r}`,title:n,selected:e.qGroupPos===r,onSelect:()=>{t.setActiveField(r).catch((()=>null))}})));return{id:e.cId,icon:wT,groupItem:!0,title:e.title,selected:!1,children:r}}default:return{selected:!0,id:e.cId,title:OT(e)}}},_T=(e,t)=>{const n=[],r=[];return t.forEach((t=>{t.qCalcCondition.qCond.qv&&r.push(e.evaluate(t.qCalcCondition.qCond.qv).then((e=>{"0"===e&&n.push(t.qDef.cId)})))})),Promise.all(r).then((()=>n))},LT=async(e,t,n,r,i)=>{const o=await _T(e,n),a=n.filter((e=>!o.includes(e.qDef.cId))),s=await Promise.all(a.map((async n=>{const o=await((e,t)=>{if(e.qLibraryId)return t.getDimension(e.qLibraryId).then((e=>e.getLayout())).catch((()=>null))})(n,e),a=await function(e,t,n,r){if(e.qLibraryId)return r?r.qDim.qGrouping===qT.single&&r.qDim.qLabelExpression?Promise.resolve(r.qDim.qLabelExpression):Promise.resolve(r.qDim.title):Promise.resolve(n.get("Object.ErrorMessage.MissingDimension"));const i=e.qDef.qLabelExpression;if(i)return t.evaluate(i);const o=e.qDef.qFieldLabels[0]||e.qDef.qFieldDefs[0];return Promise.resolve(o)}(n,e,r,o),s=(null==o?void 0:o.qDim.qGrouping)||n.qDef.qGrouping,l=ET[s],u=s!==qT.single;return{id:n.qDef.cId,icon:l,groupItem:u,selected:!1,title:a,onSelect(e){NT(t,e,n.qDef.cId,"qDimensions",i)}}})));return s};function IT({column:e,dir:t,dock:n,altList:r,model:i,translator:o,app:a,onChange:s,activeInfo:l,allowChangeOfAlternatives:u}){const c=l.qGrouping===qT.single;return 0===r.length&&c?null:{dir:t,dock:n,getPopoverOptions:async()=>{const t=await AT(l,i,a,e),n=u?await LT(a,i,r,o,s):[];return(c||0===t.children.length)&&0===n.length?[]:[t,...n]}}}function RT(e,t,n,r,i="/qHyperCubeDef"){return{breadcrumbs:e.qGrouping===qT.drillDown?e.qGroupFallbackTitles.slice(0,e.qGroupPos):[],icon:DT(e,r),index:t,locked:!!e.qLocked,text:e.qGrouping===qT.single?e.qFallbackTitle:e.qGroupFallbackTitles[e.qGroupPos],popoverText:OT(e),...n&&{drillUp(e){n.drillUp(i,t,e)}},id:e.cId}}function PT({activeInfo:e,altList:t,app:n,dir:r,dock:i,model:o,onChange:a,skipAttributeExpressions:s,translator:l,allowChangeOfAlternatives:u}){return 0===t.length?null:{dir:r,dock:i,getPopoverOptions:async()=>{const r=[{id:e.cId,title:e.qFallbackTitle,selected:!0,onSelect:()=>{}}],i=await _T(n,t),c=t.filter((e=>!i.includes(e.qDef.cId))),d=u?await Promise.all(c.map((async e=>{const t=await function(e,t,n){if(e.qLibraryId)return t.getMeasure(e.qLibraryId).then((e=>e.getLayout())).catch((()=>null)).then((e=>e?e.qMeasure.qLabelExpression?e.qMeasure.qLabelExpression:e.qMeasure.qLabel||e.qMeasure.qDef:n.get("Object.ErrorMessage.MissingMeasure")));const r=e.qDef.qLabelExpression;if(r)return t.evaluate(r);const i=e.qDef.qLabel||e.qDef.qDef;return Promise.resolve(i)}(e,n,l);return{id:e.qDef.cId,selected:!1,title:t,onSelect(t){NT(o,t,e.qDef.cId,"qMeasures",a,s)}}}))):[];return 0===d.length?[]:[...r,...d]}}}function zT(e,t){return{breadcrumbs:[],index:t,locked:!1,text:e.qFallbackTitle,popoverText:e.qFallbackTitle,id:e.cId}}function FT(){return FT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},FT.apply(this,arguments)}var jT={exports:{}};function BT(){}function HT(){}HT.resetWarningCache=BT;jT.exports=function(){function e(e,t,n,r,i,o){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==o){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:HT,resetWarningCache:BT};return n.PropTypes=n,n}();var VT=fg(jT.exports),$T={black:"#000",white:"#fff"},UT={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},WT={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},YT={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},KT={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},GT={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},XT={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},JT={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};function QT(){return QT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},QT.apply(this,arguments)}function ZT(e){return ZT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ZT(e)}function eN(e){return e&&"object"===ZT(e)&&e.constructor===Object}function tN(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?QT({},e):e;return eN(e)&&eN(t)&&Object.keys(t).forEach((function(i){"__proto__"!==i&&(eN(t[i])&&i in e?r[i]=tN(e[i],t[i],n):r[i]=t[i])})),r}function nN(e){var t=function(e,t){if("object"!==ZT(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ZT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ZT(t)?t:String(t)}function rN(e,t,n){return(t=nN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iN(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}function oN(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function aN(e){if(e.type)return e;if("#"===e.charAt(0))return aN(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(iN(3,e));var r=e.substring(t+1,e.length-1).split(",");return r=r.map((function(e){return parseFloat(e)})),{type:n,values:r}}function sN(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function lN(e){var t="hsl"===(e=aN(e)).type?aN(function(e){var t=(e=aN(e)).values,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return i-o*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),sN({type:s,values:l})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function uN(e,t){return e=aN(e),t=oN(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,sN(e)}function cN(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function dN(e,t){if(null==e)return{};var n,r,i=cN(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var fN=["xs","sm","md","lg","xl"];function hN(e,t,n){var r;return QT({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),QT({paddingLeft:t(2),paddingRight:t(2)},n,rN({},e.up("sm"),QT({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},rN(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),rN(r,e.up("sm"),{minHeight:64}),r)},n)}var pN={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:$T.white,default:JT[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},mN={text:{primary:$T.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:JT[800],default:"#303030"},action:{active:$T.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function gN(e,t,n,r){var i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=aN(e),t=oN(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return sN(e)}(e.main,i):"dark"===t&&(e.dark=function(e,t){if(e=aN(e),t=oN(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return sN(e)}(e.main,o)))}function yN(e){var t=e.primary,n=void 0===t?{light:YT[300],main:YT[500],dark:YT[700]}:t,r=e.secondary,i=void 0===r?{light:WT.A200,main:WT.A400,dark:WT.A700}:r,o=e.error,a=void 0===o?{light:UT[300],main:UT[500],dark:UT[700]}:o,s=e.warning,l=void 0===s?{light:XT[300],main:XT[500],dark:XT[700]}:s,u=e.info,c=void 0===u?{light:KT[300],main:KT[500],dark:KT[700]}:u,d=e.success,f=void 0===d?{light:GT[300],main:GT[500],dark:GT[700]}:d,h=e.type,p=void 0===h?"light":h,m=e.contrastThreshold,g=void 0===m?3:m,y=e.tonalOffset,v=void 0===y?.2:y,b=dN(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function x(e){var t=function(e,t){var n=lN(e),r=lN(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,mN.text.primary)>=g?mN.text.primary:pN.text.primary;return t}var w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=QT({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(iN(4,t));if("string"!=typeof e.main)throw new Error(iN(5,JSON.stringify(e.main)));return gN(e,"light",n,v),gN(e,"dark",r,v),e.contrastText||(e.contrastText=x(e.main)),e},S={dark:mN,light:pN};return tN(QT({common:$T,type:p,primary:w(n),secondary:w(i,"A400","A200","A700"),error:w(a),warning:w(l),info:w(c),success:w(f),grey:JT,contrastThreshold:g,getContrastText:x,augmentColor:w,tonalOffset:v},S[p]),b)}function vN(e){return Math.round(1e5*e)/1e5}function bN(e){return vN(e)}var xN={textTransform:"uppercase"},wN='"Roboto", "Helvetica", "Arial", sans-serif';function SN(e,t){var n="function"==typeof t?t(e):t,r=n.fontFamily,i=void 0===r?wN:r,o=n.fontSize,a=void 0===o?14:o,s=n.fontWeightLight,l=void 0===s?300:s,u=n.fontWeightRegular,c=void 0===u?400:u,d=n.fontWeightMedium,f=void 0===d?500:d,h=n.fontWeightBold,p=void 0===h?700:h,m=n.htmlFontSize,g=void 0===m?16:m,y=n.allVariants,v=n.pxToRem,b=dN(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),x=a/14,w=v||function(e){return"".concat(e/g*x,"rem")},S=function(e,t,n,r,o){return QT({fontFamily:i,fontWeight:e,fontSize:w(t),lineHeight:n},i===wN?{letterSpacing:"".concat(vN(r/t),"em")}:{},o,y)},M={h1:S(l,96,1.167,-1.5),h2:S(l,60,1.2,-.5),h3:S(c,48,1.167,0),h4:S(c,34,1.235,.25),h5:S(c,24,1.334,0),h6:S(f,20,1.6,.15),subtitle1:S(c,16,1.75,.15),subtitle2:S(f,14,1.57,.1),body1:S(c,16,1.5,.15),body2:S(c,14,1.43,.15),button:S(f,14,1.75,.4,xN),caption:S(c,12,1.66,.4),overline:S(c,12,2.66,1,xN)};return tN(QT({htmlFontSize:g,pxToRem:w,round:bN,fontFamily:i,fontSize:a,fontWeightLight:l,fontWeightRegular:c,fontWeightMedium:f,fontWeightBold:p},M),b,{clone:!1})}function MN(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var kN=["none",MN(0,2,1,-1,0,1,1,0,0,1,3,0),MN(0,3,1,-2,0,2,2,0,0,1,5,0),MN(0,3,3,-2,0,3,4,0,0,1,8,0),MN(0,2,4,-1,0,4,5,0,0,1,10,0),MN(0,3,5,-1,0,5,8,0,0,1,14,0),MN(0,3,5,-1,0,6,10,0,0,1,18,0),MN(0,4,5,-2,0,7,10,1,0,2,16,1),MN(0,5,5,-3,0,8,10,1,0,3,14,2),MN(0,5,6,-3,0,9,12,1,0,3,16,2),MN(0,6,6,-3,0,10,14,1,0,4,18,3),MN(0,6,7,-4,0,11,15,1,0,4,20,3),MN(0,7,8,-4,0,12,17,2,0,5,22,4),MN(0,7,8,-4,0,13,19,2,0,5,24,4),MN(0,7,9,-4,0,14,21,2,0,5,26,4),MN(0,8,9,-5,0,15,22,2,0,6,28,5),MN(0,8,10,-5,0,16,24,2,0,6,30,5),MN(0,8,11,-5,0,17,26,2,0,6,32,5),MN(0,9,11,-5,0,18,28,2,0,7,34,6),MN(0,9,12,-6,0,19,29,2,0,7,36,6),MN(0,10,13,-6,0,20,31,3,0,8,38,7),MN(0,10,13,-6,0,21,33,3,0,8,40,7),MN(0,10,14,-6,0,22,35,3,0,8,42,7),MN(0,11,14,-7,0,23,36,3,0,9,44,8),MN(0,11,15,-7,0,24,38,3,0,9,46,8)],CN={borderRadius:4};function qN(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function EN(e,t){if(e){if("string"==typeof e)return qN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qN(e,t):void 0}}function DN(e){return function(e){if(Array.isArray(e))return qN(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||EN(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function TN(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||EN(e,t)||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.")}()}function NN(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=function(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===n.length?t(1):1===n.length?t(n[0]):n.map((function(e){if("string"==typeof e)return e;var n=t(e);return"number"==typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n}var ON={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},AN={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function _N(e){return"".concat(Math.round(e),"ms")}var LN={easing:ON,duration:AN,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,r=void 0===n?AN.standard:n,i=t.easing,o=void 0===i?ON.easeInOut:i,a=t.delay,s=void 0===a?0:a;return dN(t,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof r?r:_N(r)," ").concat(o," ").concat("string"==typeof s?s:_N(s))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}},IN={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function RN(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,i=void 0===r?{}:r,o=e.palette,a=void 0===o?{}:o,s=e.spacing,l=e.typography,u=void 0===l?{}:l,c=dN(e,["breakpoints","mixins","palette","spacing","typography"]),d=yN(a),f=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,r=e.unit,i=void 0===r?"px":r,o=e.step,a=void 0===o?5:o,s=dN(e,["values","unit","step"]);function l(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(i,")")}function u(e,t){var r=fN.indexOf(t);return r===fN.length-1?l(e):"@media (min-width:".concat("number"==typeof n[e]?n[e]:e).concat(i,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof n[fN[r+1]]?n[fN[r+1]]:t)-a/100).concat(i,")")}return QT({keys:fN,values:n,up:l,down:function(e){var t=fN.indexOf(e)+1,r=n[fN[t]];return t===fN.length?l("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-a/100).concat(i,")")},between:u,only:function(e){return u(e,e)},width:function(e){return n[e]}},s)}(n),h=NN(s),p=tN({breakpoints:f,direction:"ltr",mixins:hN(f,h,i),overrides:{},palette:d,props:{},shadows:kN,typography:SN(d,u),spacing:h,shape:CN,transitions:LN,zIndex:IN},c),m=arguments.length,g=new Array(m>1?m-1:0),y=1;y<m;y++)g[y-1]=arguments[y];return p=g.reduce((function(e,t){return tN(e,t)}),p)}var PN="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",zN=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function FN(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,i=void 0===r?"jss":r,o=e.seed,a=void 0===o?"":o,s=""===a?"":"".concat(a,"-"),l=0,u=function(){return l+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==zN.indexOf(e.key))return"Mui-".concat(e.key);var o="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[PN]&&""===a?"".concat(o,"-").concat(u()):o}return"".concat(s).concat(i).concat(u())}}function jN(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var i,o=t.props[n];for(i in o)void 0===r[i]&&(r[i]=o[i]);return r}var BN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},HN="object"===("undefined"==typeof window?"undefined":BN(window))&&"object"===("undefined"==typeof document?"undefined":BN(document))&&9===document.nodeType;function VN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,nN(r.key),r)}}function $N(e,t,n){return t&&VN(e.prototype,t),n&&VN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function UN(e,t){return UN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},UN(e,t)}function WN(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,UN(e,t)}function YN(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var KN={}.constructor;function GN(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(GN);if(e.constructor!==KN)return e;var t={};for(var n in e)t[n]=GN(e[n]);return t}function XN(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,i=GN(t),o=r.plugins.onCreateRule(e,i,n);return o||(e[0],null)}var JN=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},QN=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=JN(e[n]," ");else t=JN(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function ZN(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function eO(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function tO(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var i=n.indent,o=void 0===i?0:i,a=t.fallbacks;!1===n.format&&(o=-1/0);var s=ZN(n),l=s.linebreak,u=s.space;if(e&&o++,a)if(Array.isArray(a))for(var c=0;c<a.length;c++){var d=a[c];for(var f in d){var h=d[f];null!=h&&(r&&(r+=l),r+=eO(f+":"+u+QN(h)+";",o))}}else for(var p in a){var m=a[p];null!=m&&(r&&(r+=l),r+=eO(p+":"+u+QN(m)+";",o))}for(var g in t){var y=t[g];null!=y&&"fallbacks"!==g&&(r&&(r+=l),r+=eO(g+":"+u+QN(y)+";",o))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),eO(""+e+u+"{"+r,--o)+eO("}",o)):r}var nO=/([[\].#*$><+~=|^:(),"'`\s])/g,rO="undefined"!=typeof CSS&&CSS.escape,iO=function(e){return rO?rO(e):e.replace(nO,"\\$1")},oO=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,i=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:i&&(this.renderer=new i)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var i=t;n&&!1===n.process||(i=this.options.jss.plugins.onChangeValue(t,e,this));var o=null==i||!1===i,a=e in this.style;if(o&&!a&&!r)return this;var s=o&&a;if(s?delete this.style[e]:this.style[e]=i,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,i),this;var l=this.options.sheet;return l&&l.attached,this},e}(),aO=function(e){function t(t,n,r){var i;i=e.call(this,t,n,r)||this;var o=r.selector,a=r.scoped,s=r.sheet,l=r.generateId;return o?i.selectorText=o:!1!==a&&(i.id=l(YN(YN(i)),s),i.selectorText="."+iO(i.id)),i}WN(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=QN(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?QT({},e,{allowEmpty:!0}):e;return tO(this.selectorText,this.style,n)},$N(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(oO),sO={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new aO(e,t,n)}},lO={indent:1,children:!0},uO=/@([\w-]+)/,cO=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(uO);for(var i in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new LO(QT({},n,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=lO);var t=ZN(e).linebreak;if(null==e.indent&&(e.indent=lO.indent),null==e.children&&(e.children=lO.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),dO=/@container|@media|@supports\s+/,fO={onCreateRule:function(e,t,n){return dO.test(e)?new cO(e,t,n):null}},hO={indent:1,children:!0},pO=/@keyframes\s+([\w-]+)/,mO=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(pO);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var i=n.scoped,o=n.sheet,a=n.generateId;for(var s in this.id=!1===i?this.name:iO(a(this,o)),this.rules=new LO(QT({},n,{parent:this})),t)this.rules.add(s,t[s],QT({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=hO);var t=ZN(e).linebreak;if(null==e.indent&&(e.indent=hO.indent),null==e.children&&(e.children=hO.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),gO=/@keyframes\s+/,yO=/\$([\w-]+)/g,vO=function(e,t){return"string"==typeof e?e.replace(yO,(function(e,n){return n in t?t[n]:e})):e},bO=function(e,t,n){var r=e[t],i=vO(r,n);i!==r&&(e[t]=i)},xO={onCreateRule:function(e,t,n){return"string"==typeof e&&gO.test(e)?new mO(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&bO(e,"animation-name",n.keyframes),"animation"in e&&bO(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return vO(e,r.keyframes);default:return e}}},wO=function(e){function t(){return e.apply(this,arguments)||this}return WN(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?QT({},e,{allowEmpty:!0}):e;return tO(this.key,this.style,n)},t}(oO),SO={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new wO(e,t,n):null}},MO=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=ZN(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=tO(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return tO(this.at,this.style,e)},e}(),kO=/@font-face/,CO={onCreateRule:function(e,t,n){return kO.test(e)?new MO(e,t,n):null}},qO=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return tO(this.key,this.style,e)},e}(),EO={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new qO(e,t,n):null}},DO=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),TO={"@charset":!0,"@import":!0,"@namespace":!0},NO={onCreateRule:function(e,t,n){return e in TO?new DO(e,t,n):null}},OO=[sO,fO,xO,SO,CO,EO,NO],AO={process:!0},_O={force:!0,process:!0},LO=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,i=r.parent,o=r.sheet,a=r.jss,s=r.Renderer,l=r.generateId,u=r.scoped,c=QT({classes:this.classes,parent:i,sheet:o,jss:a,Renderer:s,generateId:l,scoped:u,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(c.selector="."+iO(this.classes[d]));var f=XN(d,t,c);if(!f)return null;this.register(f);var h=void 0===c.index?this.index.length:c.index;return this.index.splice(h,0,f),f},t.replace=function(e,t,n){var r=this.get(e),i=this.index.indexOf(r);r&&this.remove(r);var o=n;return-1!==i&&(o=QT({},n,{index:i})),this.add(e,t,o)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof aO?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof mO&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof aO?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof mO&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=AO);var i=this.options,o=i.jss.plugins,a=i.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t.style;if(o.onUpdate(n,t,a,r),r.process&&s&&s!==t.style){for(var l in o.onProcessStyle(t.style,t,a),t.style){var u=t.style[l];u!==s[l]&&t.prop(l,u,_O)}for(var c in s){var d=t.style[c],f=s[c];null==d&&d!==f&&t.prop(c,null,_O)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,i=ZN(e).linebreak,o=0;o<this.index.length;o++){var a=this.index[o].toString(e);(a||r)&&(t&&(t+=i),t+=a)}return t},e}(),IO=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=QT({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new LO(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var i=this.rules.add(e,t,n);return i?(this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(r?r.push(i):(this.insertRule(i),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),i):i:(this.deployed=!1,i)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var i=this.rules.replace(e,t,n);return i&&this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(this.renderer&&(i?r.renderable&&this.renderer.replaceRule(r.renderable,i):this.renderer.deleteRule(r)),i):i:(this.deployed=!1,i)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var i=this.addRule(r,e[r],t);i&&n.push(i)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),RO=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var i=this.registry.onCreateRule[r](e,t,n);if(i)return i}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var i=0;i<this.registry.onUpdate.length;i++)this.registry.onUpdate[i](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,i=0;i<this.registry.onChangeValue.length;i++)r=this.registry.onChangeValue[i](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),PO=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=cN(t,["attached"]),i=ZN(r).linebreak,o="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=n&&s.attached!==n||(o&&(o+=i),o+=s.toString(r))}return o},$N(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),zO=new PO,FO="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),jO="2f1acc6c3a606b082e5eef5e54414ffb";null==FO[jO]&&(FO[jO]=0);var BO=FO[jO]++,HO=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var i="",o="";return r&&(r.options.classNamePrefix&&(o=r.options.classNamePrefix),null!=r.options.jss.id&&(i=String(r.options.jss.id))),e.minify?""+(o||"c")+BO+i+t:o+n.key+"-"+BO+(i?"-"+i:"")+"-"+t}},VO=function(e){var t;return function(){return t||(t=e()),t}},$O=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},UO=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=QN(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var i=r?r.indexOf("!important"):-1,o=i>-1?r.substr(0,i-1):r;e.style.setProperty(t,o,i>-1?"important":"")}}catch(e){return!1}return!0},WO=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},YO=function(e,t){return e.selectorText=t,e.selectorText===t},KO=VO((function(){return document.querySelector("head")}));function GO(e){var t=zO.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var i=function(e){for(var t=KO(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}var XO=VO((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),JO=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[n]},QO=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},ZO=function(){function e(e){this.getPropertyValue=$O,this.setProperty=UO,this.removeProperty=WO,this.setSelector=YO,this.hasInsertedRules=!1,this.cssRules=[],e&&zO.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,i=t.element;this.element=i||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var o=XO();o&&this.element.setAttribute("nonce",o)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=GO(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var i=n,o=i.parentNode;o&&o.insertBefore(e,i.nextSibling)}else KO().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,i=n;if("conditional"===e.type||"keyframes"===e.type){var o=QO(n,t);if(!1===(i=JO(n,r.toString({children:!1}),o)))return!1;this.refCssRule(e,o,i)}return this.insertRules(r.rules,i),i}var a=e.toString();if(!a)return!1;var s=QO(n,t),l=JO(n,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof IO&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),eA=0,tA=function(){function e(e){this.id=eA++,this.version="10.10.0",this.plugins=new RO,this.options={id:{minify:!1},createGenerateId:HO,Renderer:HN?ZO:null,plugins:[]},this.generateId=HO({minify:!1});for(var t=0;t<OO.length;t++)this.plugins.use(OO[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=QT({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!=typeof n&&(n=0===zO.index?0:zO.index+1);var r=new IO(e,QT({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),zO.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var r=QT({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var i=XN(e,t,r);return i&&this.plugins.onProcessRule(i),i},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}(),nA=function(e){return new tA(e)},rA="object"==typeof CSS&&null!=CSS&&"number"in CSS;function iA(e){var t=null;for(var n in e){var r=e[n],i=typeof r;if("function"===i)t||(t={}),t[n]=r;else if("object"===i&&null!==r&&!Array.isArray(r)){var o=iA(r);o&&(t||(t={}),t[n]=o)}}return t}
17
17
  /**
18
18
  * A better abstraction over CSS.
19
19
  *
20
20
  * @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
21
21
  * @website https://github.com/cssinjs/jss
22
22
  * @license MIT
23
- */tA();var iA=Date.now(),oA="fnValues"+iA,aA="fnStyle"+ ++iA,sA=function(){return{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=GN(e,{},n);return r[aA]=t,r},onProcessStyle:function(e,t){if(oA in t||aA in t)return e;var n={};for(var r in e){var i=e[r];"function"==typeof i&&(delete e[r],n[r]=i)}return t[oA]=n,e},onUpdate:function(e,t,n,r){var i=t,o=i[aA];o&&(i.style=o(e)||{});var a=i[oA];if(a)for(var s in a)i.prop(s,a[s](e),r)}}},lA="@global",uA="@global ",cA=function(){function e(e,t,n){for(var r in this.type="global",this.at=lA,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new _O(JT({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),dA=function(){function e(e,t,n){this.type="global",this.at=lA,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(uA.length);this.rule=n.jss.createRule(r,t,JT({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),fA=/\s*,\s*/g;function hA(e,t){for(var n=e.split(fA),r="",i=0;i<n.length;i++)r+=t+" "+n[i].trim(),n[i+1]&&(r+=", ");return r}function pA(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===lA)return new cA(e,t,n);if("@"===e[0]&&e.substr(0,uA.length)===uA)return new dA(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,i=r?r[lA]:null;if(i){for(var o in i)t.addRule(o,i[o],JT({},n,{selector:hA(o,e.selector)}));delete r[lA]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var i in r)if("@"===i[0]&&i.substr(0,lA.length)===lA){var o=hA(i.substr(lA.length),e.selector);t.addRule(o,r[i],JT({},n,{selector:o})),delete r[i]}}(e,t))}}}var mA=/\s*,\s*/g,gA=/&/g,yA=/\$([\w-]+)/g;function vA(){function e(e,t){return function(n,r){var i=e.getRule(r)||t&&t.getRule(r);return i?i.selector:r}}function t(e,t){for(var n=t.split(mA),r=e.split(mA),i="",o=0;o<n.length;o++)for(var a=n[o],s=0;s<r.length;s++){var l=r[s];i&&(i+=", "),i+=-1!==l.indexOf("&")?l.replace(gA,a):a+" "+l}return i}function n(e,t,n){if(n)return JT({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var i=JT({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete i.name,i}return{onProcessStyle:function(r,i,o){if("style"!==i.type)return r;var a,s,l=i,u=l.options.parent;for(var c in r){var d=-1!==c.indexOf("&"),f="@"===c[0];if(d||f){if(a=n(l,u,a),d){var h=t(c,l.selector);s||(s=e(u,o)),h=h.replace(yA,s);var p=l.key+"-"+c;"replaceRule"in u?u.replaceRule(p,r[c],JT({},a,{selector:h})):u.addRule(p,r[c],JT({},a,{selector:h}))}else f&&u.addRule(c,{},a).addRule(l.key,r[c],{selector:l.selector});delete r[c]}}return r}}}var bA=/[A-Z]/g,xA=/^ms-/,wA={};function SA(e){return"-"+e.toLowerCase()}function MA(e){if(wA.hasOwnProperty(e))return wA[e];var t=e.replace(bA,SA);return wA[e]=xA.test(t)?"-"+t:t}function kA(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:MA(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(kA):t.fallbacks=kA(e.fallbacks)),t}var CA=nA&&CSS?CSS.px:"px",qA=nA&&CSS?CSS.ms:"ms",EA=nA&&CSS?CSS.percent:"%";function DA(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var i in e)r[i]=e[i],r[i.replace(t,n)]=e[i];return r}var TA=DA({"animation-delay":qA,"animation-duration":qA,"background-position":CA,"background-position-x":CA,"background-position-y":CA,"background-size":CA,border:CA,"border-bottom":CA,"border-bottom-left-radius":CA,"border-bottom-right-radius":CA,"border-bottom-width":CA,"border-left":CA,"border-left-width":CA,"border-radius":CA,"border-right":CA,"border-right-width":CA,"border-top":CA,"border-top-left-radius":CA,"border-top-right-radius":CA,"border-top-width":CA,"border-width":CA,"border-block":CA,"border-block-end":CA,"border-block-end-width":CA,"border-block-start":CA,"border-block-start-width":CA,"border-block-width":CA,"border-inline":CA,"border-inline-end":CA,"border-inline-end-width":CA,"border-inline-start":CA,"border-inline-start-width":CA,"border-inline-width":CA,"border-start-start-radius":CA,"border-start-end-radius":CA,"border-end-start-radius":CA,"border-end-end-radius":CA,margin:CA,"margin-bottom":CA,"margin-left":CA,"margin-right":CA,"margin-top":CA,"margin-block":CA,"margin-block-end":CA,"margin-block-start":CA,"margin-inline":CA,"margin-inline-end":CA,"margin-inline-start":CA,padding:CA,"padding-bottom":CA,"padding-left":CA,"padding-right":CA,"padding-top":CA,"padding-block":CA,"padding-block-end":CA,"padding-block-start":CA,"padding-inline":CA,"padding-inline-end":CA,"padding-inline-start":CA,"mask-position-x":CA,"mask-position-y":CA,"mask-size":CA,height:CA,width:CA,"min-height":CA,"max-height":CA,"min-width":CA,"max-width":CA,bottom:CA,left:CA,top:CA,right:CA,inset:CA,"inset-block":CA,"inset-block-end":CA,"inset-block-start":CA,"inset-inline":CA,"inset-inline-end":CA,"inset-inline-start":CA,"box-shadow":CA,"text-shadow":CA,"column-gap":CA,"column-rule":CA,"column-rule-width":CA,"column-width":CA,"font-size":CA,"font-size-delta":CA,"letter-spacing":CA,"text-decoration-thickness":CA,"text-indent":CA,"text-stroke":CA,"text-stroke-width":CA,"word-spacing":CA,motion:CA,"motion-offset":CA,outline:CA,"outline-offset":CA,"outline-width":CA,perspective:CA,"perspective-origin-x":EA,"perspective-origin-y":EA,"transform-origin":EA,"transform-origin-x":EA,"transform-origin-y":EA,"transform-origin-z":EA,"transition-delay":qA,"transition-duration":qA,"vertical-align":CA,"flex-basis":CA,"shape-margin":CA,size:CA,gap:CA,grid:CA,"grid-gap":CA,"row-gap":CA,"grid-row-gap":CA,"grid-column-gap":CA,"grid-template-rows":CA,"grid-template-columns":CA,"grid-auto-rows":CA,"grid-auto-columns":CA,"box-shadow-x":CA,"box-shadow-y":CA,"box-shadow-blur":CA,"box-shadow-spread":CA,"font-line-height":CA,"text-shadow-x":CA,"text-shadow-y":CA,"text-shadow-blur":CA});function NA(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=NA(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var i in t)t[i]=NA(i,t[i],n);else for(var o in t)t[o]=NA(e+"-"+o,t[o],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||TA[e];return!a||0===t&&a===CA?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function OA(e){void 0===e&&(e={});var t=DA(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=NA(r,e[r],t);return e},onChangeValue:function(e,n){return NA(n,e,t)}}}var AA="",_A="",LA="",IA="",RA=BN&&"ontouchstart"in document.documentElement;if(BN){var PA={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},zA=document.createElement("p").style;for(var FA in PA)if(FA+"Transform"in zA){AA=FA,_A=PA[FA];break}"Webkit"===AA&&"msHyphens"in zA&&(AA="ms",_A=PA.ms,IA="edge"),"Webkit"===AA&&"-apple-trailing-word"in zA&&(LA="apple")}var jA={js:AA,css:_A,vendor:LA,browser:IA,isTouch:RA};var BA={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===jA.js?"-webkit-"+e:jA.css+e)}},HA={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===jA.js?jA.css+"print-"+e:e)}},VA=/[-\s]+(.)?/g;function $A(e,t){return t?t.toUpperCase():""}function UA(e){return e.replace(VA,$A)}function WA(e){return UA("-"+e)}var YA,KA={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===jA.js){var n="mask-image";if(UA(n)in t)return e;if(jA.js+WA(n)in t)return jA.css+e}return e}},GA={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==jA.vendor||jA.isTouch?e:jA.css+e)}},XA={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:jA.css+e)}},JA={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:jA.css+e)}},QA={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===jA.js||"ms"===jA.js&&"edge"!==jA.browser?jA.css+e:e)}},ZA={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===jA.js||"ms"===jA.js||"apple"===jA.vendor?jA.css+e:e)}},e_={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===jA.js?"WebkitColumn"+WA(e)in t&&jA.css+"column-"+e:"Moz"===jA.js&&("page"+WA(e)in t&&"page-"+e))}},t_={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===jA.js)return e;var n=e.replace("-inline","");return jA.js+WA(n)in t&&jA.css+n}},n_={supportedProperty:function(e,t){return UA(e)in t&&e}},r_={supportedProperty:function(e,t){var n=WA(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:jA.js+n in t?jA.css+e:"Webkit"!==jA.js&&"Webkit"+n in t&&"-webkit-"+e}},i_={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===jA.js?""+jA.css+e:e)}},o_={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===jA.js?jA.css+"scroll-chaining":e)}},a_={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},s_={supportedProperty:function(e,t){var n=a_[e];return!!n&&(jA.js+WA(n)in t&&jA.css+n)}},l_={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},u_=Object.keys(l_),c_=function(e){return jA.css+e},d_={supportedProperty:function(e,t,n){var r=n.multiple;if(u_.indexOf(e)>-1){var i=l_[e];if(!Array.isArray(i))return jA.js+WA(i)in t&&jA.css+i;if(!r)return!1;for(var o=0;o<i.length;o++)if(!(jA.js+WA(i[0])in t))return!1;return i.map(c_)}return!1}},f_=[BA,HA,KA,GA,XA,JA,QA,ZA,e_,t_,n_,r_,i_,o_,s_,d_],h_=f_.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),p_=f_.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,EN(t.noPrefill)),e}),[]),m_={};if(BN){YA=document.createElement("p");var g_=window.getComputedStyle(document.documentElement,"");for(var y_ in g_)isNaN(y_)||(m_[g_[y_]]=g_[y_]);p_.forEach((function(e){return delete m_[e]}))}function v_(e,t){if(void 0===t&&(t={}),!YA)return e;if(null!=m_[e])return m_[e];"transition"!==e&&"transform"!==e||(t[e]=e in YA.style);for(var n=0;n<h_.length&&(m_[e]=h_[n](e,YA.style,t),!m_[e]);n++);try{YA.style[e]=""}catch(e){return!1}return m_[e]}var b_,x_={},w_={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},S_=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function M_(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?v_(t):", "+v_(n);return r||(t||n)}function k_(e,t){var n=t;if(!b_||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=x_[r])return x_[r];try{b_.style[e]=n}catch(e){return x_[r]=!1,!1}if(w_[e])n=n.replace(S_,M_);else if(""===b_.style[e]&&("-ms-flex"===(n=jA.css+n)&&(b_.style[e]="-ms-flexbox"),b_.style[e]=n,""===b_.style[e]))return x_[r]=!1,!1;return b_.style[e]="",x_[r]=n,x_[r]}function C_(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var i=!1,o=v_(n);o&&o!==n&&(i=!0);var a=!1,s=k_(o,JN(r));s&&s!==r&&(a=!0),(i||a)&&(i&&delete t[n],t[o||n]=s||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===jA.js?e:"@"+jA.css+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return k_(t,JN(e))||e}}}function q_(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},i=Object.keys(t).sort(e),o=0;o<i.length;o++)r[i[o]]=t[i[o]];return r}}}function E_(){return{plugins:[sA(),pA(),vA(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=kA(e[t]);return e}return kA(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=MA(t);return t===r?e:(n.prop(r,e),null)}},OA(),"undefined"==typeof window?null:C_(),q_()]}}function D_(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;if(e.Component,!n)return t;var r=JT({},t);return Object.keys(n).forEach((function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))})),r}BN&&(b_=document.createElement("p"));var T_={set:function(e,t,n,r){var i=e.get(t);i||(i=new Map,e.set(t,i)),i.set(n,r)},get:function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},delete:function(e,t,n){e.get(t).delete(n)}},N_=T_,O_=gT.createContext(null);function A_(){return gT.useContext(O_)}var __,L_=tA(E_()),I_={disableGeneration:!1,generateClassName:zN(),jss:L_,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},R_=gT.createContext(I_);function P_(e){var t=e.children,n=e.injectFirst,r=void 0!==n&&n,i=e.disableGeneration,o=void 0!==i&&i,a=cN(e,["children","injectFirst","disableGeneration"]),s=JT({},gT.useContext(R_),{disableGeneration:o},a);if(!s.jss.options.insertionPoint&&r&&"undefined"!=typeof window){if(!__){var l=document.head;__=document.createComment("mui-inject-first"),l.insertBefore(__,l.firstChild)}s.jss=tA({plugins:E_().plugins,insertionPoint:__})}return gT.createElement(R_.Provider,{value:s},t)}var z_=-1e9;var F_={};function j_(e,t){var n=e.state,r=e.theme,i=e.stylesOptions,o=e.stylesCreator,a=e.name;if(!i.disableGeneration){var s=N_.get(i.sheetsManager,o,r);s||(s={refs:0,staticSheet:null,dynamicStyles:null},N_.set(i.sheetsManager,o,r,s));var l=JT({},o.options,i,{theme:r,flip:"boolean"==typeof i.flip?i.flip:"rtl"===r.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var u=i.sheetsRegistry;if(0===s.refs){var c;i.sheetsCache&&(c=N_.get(i.sheetsCache,o,r));var d=o.create(r,a);c||((c=i.jss.createStyleSheet(d,JT({link:!1},l))).attach(),i.sheetsCache&&N_.set(i.sheetsCache,o,r,c)),u&&u.add(c),s.staticSheet=c,s.dynamicStyles=rA(d)}if(s.dynamicStyles){var f=i.jss.createStyleSheet(s.dynamicStyles,JT({link:!0},l));f.update(t),f.attach(),n.dynamicSheet=f,n.classes=D_({baseClasses:s.staticSheet.classes,newClasses:f.classes}),u&&u.add(f)}else n.classes=s.staticSheet.classes;s.refs+=1}}function B_(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,r=t.classNamePrefix,i=t.Component,o=t.defaultTheme,a=void 0===o?F_:o,s=cN(t,["name","classNamePrefix","Component","defaultTheme"]),l=function(e){var t="function"==typeof e;return{create:function(n,r){var i;try{i=t?e(n):e}catch(e){throw e}if(!r||!n.overrides||!n.overrides[r])return i;var o=n.overrides[r],a=JT({},i);return Object.keys(o).forEach((function(e){a[e]=eN(a[e],o[e])})),a},options:{}}}(e),u=n||r||"makeStyles";l.options={index:z_+=1,name:n,meta:u,classNamePrefix:u};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=A_()||a,r=JT({},gT.useContext(R_),s),o=gT.useRef(),u=gT.useRef();!function(e,t){var n,r=gT.useRef([]),i=gT.useMemo((function(){return{}}),t);r.current!==i&&(r.current=i,n=e()),gT.useEffect((function(){return function(){n&&n()}}),[i])}((function(){var i={name:n,state:{},stylesCreator:l,stylesOptions:r,theme:t};return j_(i,e),u.current=!1,o.current=i,function(){!function(e){var t=e.state,n=e.theme,r=e.stylesOptions,i=e.stylesCreator;if(!r.disableGeneration){var o=N_.get(r.sheetsManager,i,n);o.refs-=1;var a=r.sheetsRegistry;0===o.refs&&(N_.delete(r.sheetsManager,i,n),r.jss.removeStyleSheet(o.staticSheet),a&&a.remove(o.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(i)}}),[t,l]),gT.useEffect((function(){u.current&&function(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}(o.current,e),u.current=!0}));var c=function(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var i=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,i=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,i=!0),i&&(r.cacheClasses.value=D_({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(o.current,e.classes,i);return c}}function H_(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=H_(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function V_(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=H_(e))&&(r&&(r+=" "),r+=t);return r}var $_={exports:{}},U_={},W_="function"==typeof Symbol&&Symbol.for,Y_=W_?Symbol.for("react.element"):60103,K_=W_?Symbol.for("react.portal"):60106,G_=W_?Symbol.for("react.fragment"):60107,X_=W_?Symbol.for("react.strict_mode"):60108,J_=W_?Symbol.for("react.profiler"):60114,Q_=W_?Symbol.for("react.provider"):60109,Z_=W_?Symbol.for("react.context"):60110,eL=W_?Symbol.for("react.async_mode"):60111,tL=W_?Symbol.for("react.concurrent_mode"):60111,nL=W_?Symbol.for("react.forward_ref"):60112,rL=W_?Symbol.for("react.suspense"):60113,iL=W_?Symbol.for("react.suspense_list"):60120,oL=W_?Symbol.for("react.memo"):60115,aL=W_?Symbol.for("react.lazy"):60116,sL=W_?Symbol.for("react.block"):60121,lL=W_?Symbol.for("react.fundamental"):60117,uL=W_?Symbol.for("react.responder"):60118,cL=W_?Symbol.for("react.scope"):60119;function dL(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Y_:switch(e=e.type){case eL:case tL:case G_:case J_:case X_:case rL:return e;default:switch(e=e&&e.$$typeof){case Z_:case nL:case aL:case oL:case Q_:return e;default:return t}}case K_:return t}}}function fL(e){return dL(e)===tL}U_.AsyncMode=eL,U_.ConcurrentMode=tL,U_.ContextConsumer=Z_,U_.ContextProvider=Q_,U_.Element=Y_,U_.ForwardRef=nL,U_.Fragment=G_,U_.Lazy=aL,U_.Memo=oL,U_.Portal=K_,U_.Profiler=J_,U_.StrictMode=X_,U_.Suspense=rL,U_.isAsyncMode=function(e){return fL(e)||dL(e)===eL},U_.isConcurrentMode=fL,U_.isContextConsumer=function(e){return dL(e)===Z_},U_.isContextProvider=function(e){return dL(e)===Q_},U_.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Y_},U_.isForwardRef=function(e){return dL(e)===nL},U_.isFragment=function(e){return dL(e)===G_},U_.isLazy=function(e){return dL(e)===aL},U_.isMemo=function(e){return dL(e)===oL},U_.isPortal=function(e){return dL(e)===K_},U_.isProfiler=function(e){return dL(e)===J_},U_.isStrictMode=function(e){return dL(e)===X_},U_.isSuspense=function(e){return dL(e)===rL},U_.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===G_||e===tL||e===J_||e===X_||e===rL||e===iL||"object"==typeof e&&null!==e&&(e.$$typeof===aL||e.$$typeof===oL||e.$$typeof===Q_||e.$$typeof===Z_||e.$$typeof===nL||e.$$typeof===lL||e.$$typeof===uL||e.$$typeof===cL||e.$$typeof===sL)},U_.typeOf=dL,$_.exports=U_;var hL=$_.exports,pL={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},mL={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},gL={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},yL={};function vL(e){return hL.isMemo(e)?gL:yL[e.$$typeof]||pL}yL[hL.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},yL[hL.Memo]=gL;var bL=Object.defineProperty,xL=Object.getOwnPropertyNames,wL=Object.getOwnPropertySymbols,SL=Object.getOwnPropertyDescriptor,ML=Object.getPrototypeOf,kL=Object.prototype;var CL=function e(t,n,r){if("string"!=typeof n){if(kL){var i=ML(n);i&&i!==kL&&e(t,i,r)}var o=xL(n);wL&&(o=o.concat(wL(n)));for(var a=vL(t),s=vL(n),l=0;l<o.length;++l){var u=o[l];if(!(mL[u]||r&&r[u]||s&&s[u]||a&&a[u])){var c=SL(n,u);try{bL(t,u,c)}catch(e){}}}}return t},qL=fg(CL);function EL(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.name,o=cN(r,["name"]),a=i,s="function"==typeof t?function(e){return{root:function(n){return t(JT({theme:e},n))}}}:{root:t},l=B_(s,JT({Component:e,name:i||e.displayName,classNamePrefix:a},o));t.filterProps&&(n=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var u=gT.forwardRef((function(t,r){var i,o,a,s=t.children,u=t.className,c=t.clone,d=t.component,f=cN(t,["children","className","clone","component"]),h=V_(l(t).root,u),p=f;if(n&&(i=p,o=n,a={},Object.keys(i).forEach((function(e){-1===o.indexOf(e)&&(a[e]=i[e])})),p=a),c)return gT.cloneElement(s,JT({className:V_(s.props.className,h)},p));if("function"==typeof s)return s(JT({className:h},p));var m=d||e;return gT.createElement(m,JT({ref:r,className:h},p),s)}));return qL(u,e),u}}function DL(e){var t=e.children,n=e.theme,r=A_(),i=gT.useMemo((function(){var e=null===r?n:function(e,t){return"function"==typeof t?t(e):JT({},e,t)}(r,n);return null!=e&&(e[RN]=null!==r),e}),[n,r]);return gT.createElement(O_.Provider,{value:i},t)}var TL=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r=t.defaultTheme,i=t.withTheme,o=void 0!==i&&i,a=t.name,s=cN(t,["defaultTheme","withTheme","name"]),l=a,u=B_(e,JT({defaultTheme:r,Component:n,name:a||n.displayName,classNamePrefix:l},s)),c=gT.forwardRef((function(e,t){e.classes;var i,s=e.innerRef,l=cN(e,["classes","innerRef"]),c=u(JT({},n.defaultProps,e)),d=l;return("string"==typeof a||o)&&(i=A_()||r,a&&(d=FN({theme:i,name:a,props:l})),o&&!d.theme&&(d.theme=i)),gT.createElement(n,JT({ref:s||t,classes:c},d))}));return qL(c,n),c}},NL=IN(),OL=function(e){var t=EL(e);return function(e,n){return t(e,JT({defaultTheme:NL},n))}};function AL(e,t){return TL(e,JT({defaultTheme:NL},t))}function _L(e){if("string"!=typeof e)throw new Error(rN(7));return e.charAt(0).toUpperCase()+e.slice(1)}function LL(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r),t.apply(this,r)}}),(function(){}))}function IL(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=IL(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function RL(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=IL(e))&&(r&&(r+=" "),r+=t);return r}function PL(e){return e&&e.ownerDocument||document}function zL(e){return PL(e).defaultView||window}function FL(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var jL="undefined"!=typeof window?mT.useLayoutEffect:mT.useEffect;function BL(e){var t=mT.useRef(e);return jL((function(){t.current=e})),mT.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}function HL(e,t){return mT.useMemo((function(){return null==e&&null==t?null:function(n){FL(e,n),FL(t,n)}}),[e,t])}var VL={exports:{}},$L={},UL={exports:{}},WL={};
23
+ */nA();var oA=Date.now(),aA="fnValues"+oA,sA="fnStyle"+ ++oA,lA=function(){return{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=XN(e,{},n);return r[sA]=t,r},onProcessStyle:function(e,t){if(aA in t||sA in t)return e;var n={};for(var r in e){var i=e[r];"function"==typeof i&&(delete e[r],n[r]=i)}return t[aA]=n,e},onUpdate:function(e,t,n,r){var i=t,o=i[sA];o&&(i.style=o(e)||{});var a=i[aA];if(a)for(var s in a)i.prop(s,a[s](e),r)}}},uA="@global",cA="@global ",dA=function(){function e(e,t,n){for(var r in this.type="global",this.at=uA,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new LO(QT({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),fA=function(){function e(e,t,n){this.type="global",this.at=uA,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(cA.length);this.rule=n.jss.createRule(r,t,QT({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),hA=/\s*,\s*/g;function pA(e,t){for(var n=e.split(hA),r="",i=0;i<n.length;i++)r+=t+" "+n[i].trim(),n[i+1]&&(r+=", ");return r}function mA(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===uA)return new dA(e,t,n);if("@"===e[0]&&e.substr(0,cA.length)===cA)return new fA(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,i=r?r[uA]:null;if(i){for(var o in i)t.addRule(o,i[o],QT({},n,{selector:pA(o,e.selector)}));delete r[uA]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var i in r)if("@"===i[0]&&i.substr(0,uA.length)===uA){var o=pA(i.substr(uA.length),e.selector);t.addRule(o,r[i],QT({},n,{selector:o})),delete r[i]}}(e,t))}}}var gA=/\s*,\s*/g,yA=/&/g,vA=/\$([\w-]+)/g;function bA(){function e(e,t){return function(n,r){var i=e.getRule(r)||t&&t.getRule(r);return i?i.selector:r}}function t(e,t){for(var n=t.split(gA),r=e.split(gA),i="",o=0;o<n.length;o++)for(var a=n[o],s=0;s<r.length;s++){var l=r[s];i&&(i+=", "),i+=-1!==l.indexOf("&")?l.replace(yA,a):a+" "+l}return i}function n(e,t,n){if(n)return QT({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var i=QT({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete i.name,i}return{onProcessStyle:function(r,i,o){if("style"!==i.type)return r;var a,s,l=i,u=l.options.parent;for(var c in r){var d=-1!==c.indexOf("&"),f="@"===c[0];if(d||f){if(a=n(l,u,a),d){var h=t(c,l.selector);s||(s=e(u,o)),h=h.replace(vA,s);var p=l.key+"-"+c;"replaceRule"in u?u.replaceRule(p,r[c],QT({},a,{selector:h})):u.addRule(p,r[c],QT({},a,{selector:h}))}else f&&u.addRule(c,{},a).addRule(l.key,r[c],{selector:l.selector});delete r[c]}}return r}}}var xA=/[A-Z]/g,wA=/^ms-/,SA={};function MA(e){return"-"+e.toLowerCase()}function kA(e){if(SA.hasOwnProperty(e))return SA[e];var t=e.replace(xA,MA);return SA[e]=wA.test(t)?"-"+t:t}function CA(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:kA(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(CA):t.fallbacks=CA(e.fallbacks)),t}var qA=rA&&CSS?CSS.px:"px",EA=rA&&CSS?CSS.ms:"ms",DA=rA&&CSS?CSS.percent:"%";function TA(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var i in e)r[i]=e[i],r[i.replace(t,n)]=e[i];return r}var NA=TA({"animation-delay":EA,"animation-duration":EA,"background-position":qA,"background-position-x":qA,"background-position-y":qA,"background-size":qA,border:qA,"border-bottom":qA,"border-bottom-left-radius":qA,"border-bottom-right-radius":qA,"border-bottom-width":qA,"border-left":qA,"border-left-width":qA,"border-radius":qA,"border-right":qA,"border-right-width":qA,"border-top":qA,"border-top-left-radius":qA,"border-top-right-radius":qA,"border-top-width":qA,"border-width":qA,"border-block":qA,"border-block-end":qA,"border-block-end-width":qA,"border-block-start":qA,"border-block-start-width":qA,"border-block-width":qA,"border-inline":qA,"border-inline-end":qA,"border-inline-end-width":qA,"border-inline-start":qA,"border-inline-start-width":qA,"border-inline-width":qA,"border-start-start-radius":qA,"border-start-end-radius":qA,"border-end-start-radius":qA,"border-end-end-radius":qA,margin:qA,"margin-bottom":qA,"margin-left":qA,"margin-right":qA,"margin-top":qA,"margin-block":qA,"margin-block-end":qA,"margin-block-start":qA,"margin-inline":qA,"margin-inline-end":qA,"margin-inline-start":qA,padding:qA,"padding-bottom":qA,"padding-left":qA,"padding-right":qA,"padding-top":qA,"padding-block":qA,"padding-block-end":qA,"padding-block-start":qA,"padding-inline":qA,"padding-inline-end":qA,"padding-inline-start":qA,"mask-position-x":qA,"mask-position-y":qA,"mask-size":qA,height:qA,width:qA,"min-height":qA,"max-height":qA,"min-width":qA,"max-width":qA,bottom:qA,left:qA,top:qA,right:qA,inset:qA,"inset-block":qA,"inset-block-end":qA,"inset-block-start":qA,"inset-inline":qA,"inset-inline-end":qA,"inset-inline-start":qA,"box-shadow":qA,"text-shadow":qA,"column-gap":qA,"column-rule":qA,"column-rule-width":qA,"column-width":qA,"font-size":qA,"font-size-delta":qA,"letter-spacing":qA,"text-decoration-thickness":qA,"text-indent":qA,"text-stroke":qA,"text-stroke-width":qA,"word-spacing":qA,motion:qA,"motion-offset":qA,outline:qA,"outline-offset":qA,"outline-width":qA,perspective:qA,"perspective-origin-x":DA,"perspective-origin-y":DA,"transform-origin":DA,"transform-origin-x":DA,"transform-origin-y":DA,"transform-origin-z":DA,"transition-delay":EA,"transition-duration":EA,"vertical-align":qA,"flex-basis":qA,"shape-margin":qA,size:qA,gap:qA,grid:qA,"grid-gap":qA,"row-gap":qA,"grid-row-gap":qA,"grid-column-gap":qA,"grid-template-rows":qA,"grid-template-columns":qA,"grid-auto-rows":qA,"grid-auto-columns":qA,"box-shadow-x":qA,"box-shadow-y":qA,"box-shadow-blur":qA,"box-shadow-spread":qA,"font-line-height":qA,"text-shadow-x":qA,"text-shadow-y":qA,"text-shadow-blur":qA});function OA(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=OA(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var i in t)t[i]=OA(i,t[i],n);else for(var o in t)t[o]=OA(e+"-"+o,t[o],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||NA[e];return!a||0===t&&a===qA?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function AA(e){void 0===e&&(e={});var t=TA(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=OA(r,e[r],t);return e},onChangeValue:function(e,n){return OA(n,e,t)}}}var _A="",LA="",IA="",RA="",PA=HN&&"ontouchstart"in document.documentElement;if(HN){var zA={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},FA=document.createElement("p").style;for(var jA in zA)if(jA+"Transform"in FA){_A=jA,LA=zA[jA];break}"Webkit"===_A&&"msHyphens"in FA&&(_A="ms",LA=zA.ms,RA="edge"),"Webkit"===_A&&"-apple-trailing-word"in FA&&(IA="apple")}var BA={js:_A,css:LA,vendor:IA,browser:RA,isTouch:PA};var HA={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===BA.js?"-webkit-"+e:BA.css+e)}},VA={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===BA.js?BA.css+"print-"+e:e)}},$A=/[-\s]+(.)?/g;function UA(e,t){return t?t.toUpperCase():""}function WA(e){return e.replace($A,UA)}function YA(e){return WA("-"+e)}var KA,GA={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===BA.js){var n="mask-image";if(WA(n)in t)return e;if(BA.js+YA(n)in t)return BA.css+e}return e}},XA={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==BA.vendor||BA.isTouch?e:BA.css+e)}},JA={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:BA.css+e)}},QA={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:BA.css+e)}},ZA={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===BA.js||"ms"===BA.js&&"edge"!==BA.browser?BA.css+e:e)}},e_={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===BA.js||"ms"===BA.js||"apple"===BA.vendor?BA.css+e:e)}},t_={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===BA.js?"WebkitColumn"+YA(e)in t&&BA.css+"column-"+e:"Moz"===BA.js&&("page"+YA(e)in t&&"page-"+e))}},n_={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===BA.js)return e;var n=e.replace("-inline","");return BA.js+YA(n)in t&&BA.css+n}},r_={supportedProperty:function(e,t){return WA(e)in t&&e}},i_={supportedProperty:function(e,t){var n=YA(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:BA.js+n in t?BA.css+e:"Webkit"!==BA.js&&"Webkit"+n in t&&"-webkit-"+e}},o_={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===BA.js?""+BA.css+e:e)}},a_={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===BA.js?BA.css+"scroll-chaining":e)}},s_={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},l_={supportedProperty:function(e,t){var n=s_[e];return!!n&&(BA.js+YA(n)in t&&BA.css+n)}},u_={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},c_=Object.keys(u_),d_=function(e){return BA.css+e},f_={supportedProperty:function(e,t,n){var r=n.multiple;if(c_.indexOf(e)>-1){var i=u_[e];if(!Array.isArray(i))return BA.js+YA(i)in t&&BA.css+i;if(!r)return!1;for(var o=0;o<i.length;o++)if(!(BA.js+YA(i[0])in t))return!1;return i.map(d_)}return!1}},h_=[HA,VA,GA,XA,JA,QA,ZA,e_,t_,n_,r_,i_,o_,a_,l_,f_],p_=h_.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),m_=h_.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,DN(t.noPrefill)),e}),[]),g_={};if(HN){KA=document.createElement("p");var y_=window.getComputedStyle(document.documentElement,"");for(var v_ in y_)isNaN(v_)||(g_[y_[v_]]=y_[v_]);m_.forEach((function(e){return delete g_[e]}))}function b_(e,t){if(void 0===t&&(t={}),!KA)return e;if(null!=g_[e])return g_[e];"transition"!==e&&"transform"!==e||(t[e]=e in KA.style);for(var n=0;n<p_.length&&(g_[e]=p_[n](e,KA.style,t),!g_[e]);n++);try{KA.style[e]=""}catch(e){return!1}return g_[e]}var x_,w_={},S_={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},M_=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function k_(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?b_(t):", "+b_(n);return r||(t||n)}function C_(e,t){var n=t;if(!x_||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=w_[r])return w_[r];try{x_.style[e]=n}catch(e){return w_[r]=!1,!1}if(S_[e])n=n.replace(M_,k_);else if(""===x_.style[e]&&("-ms-flex"===(n=BA.css+n)&&(x_.style[e]="-ms-flexbox"),x_.style[e]=n,""===x_.style[e]))return w_[r]=!1,!1;return x_.style[e]="",w_[r]=n,w_[r]}function q_(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var i=!1,o=b_(n);o&&o!==n&&(i=!0);var a=!1,s=C_(o,QN(r));s&&s!==r&&(a=!0),(i||a)&&(i&&delete t[n],t[o||n]=s||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===BA.js?e:"@"+BA.css+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return C_(t,QN(e))||e}}}function E_(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},i=Object.keys(t).sort(e),o=0;o<i.length;o++)r[i[o]]=t[i[o]];return r}}}function D_(){return{plugins:[lA(),mA(),bA(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=CA(e[t]);return e}return CA(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=kA(t);return t===r?e:(n.prop(r,e),null)}},AA(),"undefined"==typeof window?null:q_(),E_()]}}function T_(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;if(e.Component,!n)return t;var r=QT({},t);return Object.keys(n).forEach((function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))})),r}HN&&(x_=document.createElement("p"));var N_={set:function(e,t,n,r){var i=e.get(t);i||(i=new Map,e.set(t,i)),i.set(n,r)},get:function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},delete:function(e,t,n){e.get(t).delete(n)}},O_=N_,A_=yT.createContext(null);function __(){return yT.useContext(A_)}var L_,I_=nA(D_()),R_={disableGeneration:!1,generateClassName:FN(),jss:I_,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},P_=yT.createContext(R_);function z_(e){var t=e.children,n=e.injectFirst,r=void 0!==n&&n,i=e.disableGeneration,o=void 0!==i&&i,a=dN(e,["children","injectFirst","disableGeneration"]),s=QT({},yT.useContext(P_),{disableGeneration:o},a);if(!s.jss.options.insertionPoint&&r&&"undefined"!=typeof window){if(!L_){var l=document.head;L_=document.createComment("mui-inject-first"),l.insertBefore(L_,l.firstChild)}s.jss=nA({plugins:D_().plugins,insertionPoint:L_})}return yT.createElement(P_.Provider,{value:s},t)}var F_=-1e9;var j_={};function B_(e,t){var n=e.state,r=e.theme,i=e.stylesOptions,o=e.stylesCreator,a=e.name;if(!i.disableGeneration){var s=O_.get(i.sheetsManager,o,r);s||(s={refs:0,staticSheet:null,dynamicStyles:null},O_.set(i.sheetsManager,o,r,s));var l=QT({},o.options,i,{theme:r,flip:"boolean"==typeof i.flip?i.flip:"rtl"===r.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var u=i.sheetsRegistry;if(0===s.refs){var c;i.sheetsCache&&(c=O_.get(i.sheetsCache,o,r));var d=o.create(r,a);c||((c=i.jss.createStyleSheet(d,QT({link:!1},l))).attach(),i.sheetsCache&&O_.set(i.sheetsCache,o,r,c)),u&&u.add(c),s.staticSheet=c,s.dynamicStyles=iA(d)}if(s.dynamicStyles){var f=i.jss.createStyleSheet(s.dynamicStyles,QT({link:!0},l));f.update(t),f.attach(),n.dynamicSheet=f,n.classes=T_({baseClasses:s.staticSheet.classes,newClasses:f.classes}),u&&u.add(f)}else n.classes=s.staticSheet.classes;s.refs+=1}}function H_(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,r=t.classNamePrefix,i=t.Component,o=t.defaultTheme,a=void 0===o?j_:o,s=dN(t,["name","classNamePrefix","Component","defaultTheme"]),l=function(e){var t="function"==typeof e;return{create:function(n,r){var i;try{i=t?e(n):e}catch(e){throw e}if(!r||!n.overrides||!n.overrides[r])return i;var o=n.overrides[r],a=QT({},i);return Object.keys(o).forEach((function(e){a[e]=tN(a[e],o[e])})),a},options:{}}}(e),u=n||r||"makeStyles";l.options={index:F_+=1,name:n,meta:u,classNamePrefix:u};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=__()||a,r=QT({},yT.useContext(P_),s),o=yT.useRef(),u=yT.useRef();!function(e,t){var n,r=yT.useRef([]),i=yT.useMemo((function(){return{}}),t);r.current!==i&&(r.current=i,n=e()),yT.useEffect((function(){return function(){n&&n()}}),[i])}((function(){var i={name:n,state:{},stylesCreator:l,stylesOptions:r,theme:t};return B_(i,e),u.current=!1,o.current=i,function(){!function(e){var t=e.state,n=e.theme,r=e.stylesOptions,i=e.stylesCreator;if(!r.disableGeneration){var o=O_.get(r.sheetsManager,i,n);o.refs-=1;var a=r.sheetsRegistry;0===o.refs&&(O_.delete(r.sheetsManager,i,n),r.jss.removeStyleSheet(o.staticSheet),a&&a.remove(o.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(i)}}),[t,l]),yT.useEffect((function(){u.current&&function(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}(o.current,e),u.current=!0}));var c=function(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var i=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,i=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,i=!0),i&&(r.cacheClasses.value=T_({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(o.current,e.classes,i);return c}}function V_(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=V_(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function $_(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=V_(e))&&(r&&(r+=" "),r+=t);return r}var U_={exports:{}},W_={},Y_="function"==typeof Symbol&&Symbol.for,K_=Y_?Symbol.for("react.element"):60103,G_=Y_?Symbol.for("react.portal"):60106,X_=Y_?Symbol.for("react.fragment"):60107,J_=Y_?Symbol.for("react.strict_mode"):60108,Q_=Y_?Symbol.for("react.profiler"):60114,Z_=Y_?Symbol.for("react.provider"):60109,eL=Y_?Symbol.for("react.context"):60110,tL=Y_?Symbol.for("react.async_mode"):60111,nL=Y_?Symbol.for("react.concurrent_mode"):60111,rL=Y_?Symbol.for("react.forward_ref"):60112,iL=Y_?Symbol.for("react.suspense"):60113,oL=Y_?Symbol.for("react.suspense_list"):60120,aL=Y_?Symbol.for("react.memo"):60115,sL=Y_?Symbol.for("react.lazy"):60116,lL=Y_?Symbol.for("react.block"):60121,uL=Y_?Symbol.for("react.fundamental"):60117,cL=Y_?Symbol.for("react.responder"):60118,dL=Y_?Symbol.for("react.scope"):60119;function fL(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case K_:switch(e=e.type){case tL:case nL:case X_:case Q_:case J_:case iL:return e;default:switch(e=e&&e.$$typeof){case eL:case rL:case sL:case aL:case Z_:return e;default:return t}}case G_:return t}}}function hL(e){return fL(e)===nL}W_.AsyncMode=tL,W_.ConcurrentMode=nL,W_.ContextConsumer=eL,W_.ContextProvider=Z_,W_.Element=K_,W_.ForwardRef=rL,W_.Fragment=X_,W_.Lazy=sL,W_.Memo=aL,W_.Portal=G_,W_.Profiler=Q_,W_.StrictMode=J_,W_.Suspense=iL,W_.isAsyncMode=function(e){return hL(e)||fL(e)===tL},W_.isConcurrentMode=hL,W_.isContextConsumer=function(e){return fL(e)===eL},W_.isContextProvider=function(e){return fL(e)===Z_},W_.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===K_},W_.isForwardRef=function(e){return fL(e)===rL},W_.isFragment=function(e){return fL(e)===X_},W_.isLazy=function(e){return fL(e)===sL},W_.isMemo=function(e){return fL(e)===aL},W_.isPortal=function(e){return fL(e)===G_},W_.isProfiler=function(e){return fL(e)===Q_},W_.isStrictMode=function(e){return fL(e)===J_},W_.isSuspense=function(e){return fL(e)===iL},W_.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===X_||e===nL||e===Q_||e===J_||e===iL||e===oL||"object"==typeof e&&null!==e&&(e.$$typeof===sL||e.$$typeof===aL||e.$$typeof===Z_||e.$$typeof===eL||e.$$typeof===rL||e.$$typeof===uL||e.$$typeof===cL||e.$$typeof===dL||e.$$typeof===lL)},W_.typeOf=fL,U_.exports=W_;var pL=U_.exports,mL={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},gL={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},yL={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},vL={};function bL(e){return pL.isMemo(e)?yL:vL[e.$$typeof]||mL}vL[pL.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},vL[pL.Memo]=yL;var xL=Object.defineProperty,wL=Object.getOwnPropertyNames,SL=Object.getOwnPropertySymbols,ML=Object.getOwnPropertyDescriptor,kL=Object.getPrototypeOf,CL=Object.prototype;var qL=function e(t,n,r){if("string"!=typeof n){if(CL){var i=kL(n);i&&i!==CL&&e(t,i,r)}var o=wL(n);SL&&(o=o.concat(SL(n)));for(var a=bL(t),s=bL(n),l=0;l<o.length;++l){var u=o[l];if(!(gL[u]||r&&r[u]||s&&s[u]||a&&a[u])){var c=ML(n,u);try{xL(t,u,c)}catch(e){}}}}return t},EL=fg(qL);function DL(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.name,o=dN(r,["name"]),a=i,s="function"==typeof t?function(e){return{root:function(n){return t(QT({theme:e},n))}}}:{root:t},l=H_(s,QT({Component:e,name:i||e.displayName,classNamePrefix:a},o));t.filterProps&&(n=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var u=yT.forwardRef((function(t,r){var i,o,a,s=t.children,u=t.className,c=t.clone,d=t.component,f=dN(t,["children","className","clone","component"]),h=$_(l(t).root,u),p=f;if(n&&(i=p,o=n,a={},Object.keys(i).forEach((function(e){-1===o.indexOf(e)&&(a[e]=i[e])})),p=a),c)return yT.cloneElement(s,QT({className:$_(s.props.className,h)},p));if("function"==typeof s)return s(QT({className:h},p));var m=d||e;return yT.createElement(m,QT({ref:r,className:h},p),s)}));return EL(u,e),u}}function TL(e){var t=e.children,n=e.theme,r=__(),i=yT.useMemo((function(){var e=null===r?n:function(e,t){return"function"==typeof t?t(e):QT({},e,t)}(r,n);return null!=e&&(e[PN]=null!==r),e}),[n,r]);return yT.createElement(A_.Provider,{value:i},t)}var NL=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r=t.defaultTheme,i=t.withTheme,o=void 0!==i&&i,a=t.name,s=dN(t,["defaultTheme","withTheme","name"]),l=a,u=H_(e,QT({defaultTheme:r,Component:n,name:a||n.displayName,classNamePrefix:l},s)),c=yT.forwardRef((function(e,t){e.classes;var i,s=e.innerRef,l=dN(e,["classes","innerRef"]),c=u(QT({},n.defaultProps,e)),d=l;return("string"==typeof a||o)&&(i=__()||r,a&&(d=jN({theme:i,name:a,props:l})),o&&!d.theme&&(d.theme=i)),yT.createElement(n,QT({ref:s||t,classes:c},d))}));return EL(c,n),c}},OL=RN(),AL=function(e){var t=DL(e);return function(e,n){return t(e,QT({defaultTheme:OL},n))}};function _L(e,t){return NL(e,QT({defaultTheme:OL},t))}function LL(e){if("string"!=typeof e)throw new Error(iN(7));return e.charAt(0).toUpperCase()+e.slice(1)}function IL(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r),t.apply(this,r)}}),(function(){}))}function RL(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=RL(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function PL(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=RL(e))&&(r&&(r+=" "),r+=t);return r}function zL(e){return e&&e.ownerDocument||document}function FL(e){return zL(e).defaultView||window}function jL(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var BL="undefined"!=typeof window?gT.useLayoutEffect:gT.useEffect;function HL(e){var t=gT.useRef(e);return BL((function(){t.current=e})),gT.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}function VL(e,t){return gT.useMemo((function(){return null==e&&null==t?null:function(n){jL(e,n),jL(t,n)}}),[e,t])}var $L={exports:{}},UL={},WL={exports:{}},YL={};
24
24
  /**
25
25
  * @license React
26
26
  * scheduler.production.min.js
@@ -30,7 +30,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,i,o,a,s,l,u,c,d,f=e.le
30
30
  * This source code is licensed under the MIT license found in the
31
31
  * LICENSE file in the root directory of this source tree.
32
32
  */
33
- !function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>i(l,n))u<o&&0>i(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<o&&0>i(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,d=null,f=3,h=!1,p=!1,m=!1,g="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var i=n(u);null!==i;){if(null===i.callback)r(u);else{if(!(i.startTime<=e))break;r(u),i.sortIndex=i.expirationTime,t(l,i)}i=n(u)}}function x(e){if(m=!1,b(e),!p)if(null!==n(l))p=!0,A(w);else{var t=n(u);null!==t&&_(x,t.startTime-e)}}function w(t,i){p=!1,m&&(m=!1,y(C),C=-1),h=!0;var o=f;try{for(b(i),d=n(l);null!==d&&(!(d.expirationTime>i)||t&&!D());){var a=d.callback;if("function"==typeof a){d.callback=null,f=d.priorityLevel;var s=a(d.expirationTime<=i);i=e.unstable_now(),"function"==typeof s?d.callback=s:d===n(l)&&r(l),b(i)}else r(l);d=n(l)}if(null!==d)var c=!0;else{var g=n(u);null!==g&&_(x,g.startTime-i),c=!1}return c}finally{d=null,f=o,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,M=!1,k=null,C=-1,q=5,E=-1;function D(){return!(e.unstable_now()-E<q)}function T(){if(null!==k){var t=e.unstable_now();E=t;var n=!0;try{n=k(!0,t)}finally{n?S():(M=!1,k=null)}}else M=!1}if("function"==typeof v)S=function(){v(T)};else if("undefined"!=typeof MessageChannel){var N=new MessageChannel,O=N.port2;N.port1.onmessage=T,S=function(){O.postMessage(null)}}else S=function(){g(T,0)};function A(e){k=e,M||(M=!0,S())}function _(t,n){C=g((function(){t(e.unstable_now())}),n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){p||h||(p=!0,A(w))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):q=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,o){var a=e.unstable_now();switch("object"==typeof o&&null!==o?o="number"==typeof(o=o.delay)&&0<o?a+o:a:o=a,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return r={id:c++,callback:i,priorityLevel:r,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(r.sortIndex=o,t(u,r),null===n(l)&&r===n(u)&&(m?(y(C),C=-1):m=!0,_(x,o-a))):(r.sortIndex=s,t(l,r),p||h||(p=!0,A(w))),r},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}(WL),UL.exports=WL;var YL=UL.exports,KL=mT,GL=YL;
33
+ !function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>i(l,n))u<o&&0>i(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<o&&0>i(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,d=null,f=3,h=!1,p=!1,m=!1,g="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var i=n(u);null!==i;){if(null===i.callback)r(u);else{if(!(i.startTime<=e))break;r(u),i.sortIndex=i.expirationTime,t(l,i)}i=n(u)}}function x(e){if(m=!1,b(e),!p)if(null!==n(l))p=!0,A(w);else{var t=n(u);null!==t&&_(x,t.startTime-e)}}function w(t,i){p=!1,m&&(m=!1,y(C),C=-1),h=!0;var o=f;try{for(b(i),d=n(l);null!==d&&(!(d.expirationTime>i)||t&&!D());){var a=d.callback;if("function"==typeof a){d.callback=null,f=d.priorityLevel;var s=a(d.expirationTime<=i);i=e.unstable_now(),"function"==typeof s?d.callback=s:d===n(l)&&r(l),b(i)}else r(l);d=n(l)}if(null!==d)var c=!0;else{var g=n(u);null!==g&&_(x,g.startTime-i),c=!1}return c}finally{d=null,f=o,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,M=!1,k=null,C=-1,q=5,E=-1;function D(){return!(e.unstable_now()-E<q)}function T(){if(null!==k){var t=e.unstable_now();E=t;var n=!0;try{n=k(!0,t)}finally{n?S():(M=!1,k=null)}}else M=!1}if("function"==typeof v)S=function(){v(T)};else if("undefined"!=typeof MessageChannel){var N=new MessageChannel,O=N.port2;N.port1.onmessage=T,S=function(){O.postMessage(null)}}else S=function(){g(T,0)};function A(e){k=e,M||(M=!0,S())}function _(t,n){C=g((function(){t(e.unstable_now())}),n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){p||h||(p=!0,A(w))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):q=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,o){var a=e.unstable_now();switch("object"==typeof o&&null!==o?o="number"==typeof(o=o.delay)&&0<o?a+o:a:o=a,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return r={id:c++,callback:i,priorityLevel:r,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(r.sortIndex=o,t(u,r),null===n(l)&&r===n(u)&&(m?(y(C),C=-1):m=!0,_(x,o-a))):(r.sortIndex=s,t(l,r),p||h||(p=!0,A(w))),r},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}(YL),WL.exports=YL;var KL=WL.exports,GL=gT,XL=KL;
34
34
  /**
35
35
  * @license React
36
36
  * react-dom.production.min.js
@@ -39,14 +39,14 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,i,o,a,s,l,u,c,d,f=e.le
39
39
  *
40
40
  * This source code is licensed under the MIT license found in the
41
41
  * LICENSE file in the root directory of this source tree.
42
- */function XL(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var JL=new Set,QL={};function ZL(e,t){eI(e,t),eI(e+"Capture",t)}function eI(e,t){for(QL[e]=t,e=0;e<t.length;e++)JL.add(t[e])}var tI=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),nI=Object.prototype.hasOwnProperty,rI=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,iI={},oI={};function aI(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var sI={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){sI[e]=new aI(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];sI[t]=new aI(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){sI[e]=new aI(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){sI[e]=new aI(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){sI[e]=new aI(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){sI[e]=new aI(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){sI[e]=new aI(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){sI[e]=new aI(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){sI[e]=new aI(e,5,!1,e.toLowerCase(),null,!1,!1)}));var lI=/[\-:]([a-z])/g;function uI(e){return e[1].toUpperCase()}function cI(e,t,n,r){var i=sI.hasOwnProperty(t)?sI[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!nI.call(oI,e)||!nI.call(iI,e)&&(rI.test(e)?oI[e]=!0:(iI[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(lI,uI);sI[t]=new aI(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(lI,uI);sI[t]=new aI(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(lI,uI);sI[t]=new aI(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){sI[e]=new aI(e,1,!1,e.toLowerCase(),null,!1,!1)})),sI.xlinkHref=new aI("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){sI[e]=new aI(e,1,!1,e.toLowerCase(),null,!0,!0)}));var dI=KL.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,fI=Symbol.for("react.element"),hI=Symbol.for("react.portal"),pI=Symbol.for("react.fragment"),mI=Symbol.for("react.strict_mode"),gI=Symbol.for("react.profiler"),yI=Symbol.for("react.provider"),vI=Symbol.for("react.context"),bI=Symbol.for("react.forward_ref"),xI=Symbol.for("react.suspense"),wI=Symbol.for("react.suspense_list"),SI=Symbol.for("react.memo"),MI=Symbol.for("react.lazy"),kI=Symbol.for("react.offscreen"),CI=Symbol.iterator;function qI(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=CI&&e[CI]||e["@@iterator"])?e:null}var EI,DI=Object.assign;function TI(e){if(void 0===EI)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);EI=t&&t[1]||""}return"\n"+EI+e}var NI=!1;function OI(e,t){if(!e||NI)return"";NI=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var i=t.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{NI=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?TI(e):""}function AI(e){switch(e.tag){case 5:return TI(e.type);case 16:return TI("Lazy");case 13:return TI("Suspense");case 19:return TI("SuspenseList");case 0:case 2:case 15:return e=OI(e.type,!1);case 11:return e=OI(e.type.render,!1);case 1:return e=OI(e.type,!0);default:return""}}function _I(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case pI:return"Fragment";case hI:return"Portal";case gI:return"Profiler";case mI:return"StrictMode";case xI:return"Suspense";case wI:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case vI:return(e.displayName||"Context")+".Consumer";case yI:return(e._context.displayName||"Context")+".Provider";case bI:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case SI:return null!==(t=e.displayName||null)?t:_I(e.type)||"Memo";case MI:t=e._payload,e=e._init;try{return _I(e(t))}catch(e){}}return null}function LI(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return _I(t);case 8:return t===mI?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function II(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function RI(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function PI(e){e._valueTracker||(e._valueTracker=function(e){var t=RI(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function zI(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=RI(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function FI(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function jI(e,t){var n=t.checked;return DI({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function BI(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=II(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function HI(e,t){null!=(t=t.checked)&&cI(e,"checked",t,!1)}function VI(e,t){HI(e,t);var n=II(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?UI(e,t.type,n):t.hasOwnProperty("defaultValue")&&UI(e,t.type,II(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function $I(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function UI(e,t,n){"number"===t&&FI(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var WI=Array.isArray;function YI(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+II(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function KI(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(XL(91));return DI({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function GI(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(XL(92));if(WI(n)){if(1<n.length)throw Error(XL(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:II(n)}}function XI(e,t){var n=II(t.value),r=II(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function JI(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function QI(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ZI(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?QI(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var eR,tR=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((eR=eR||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=eR.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function nR(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var rR={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},iR=["Webkit","ms","Moz","O"];function oR(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||rR.hasOwnProperty(e)&&rR[e]?(""+t).trim():t+"px"}function aR(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=oR(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(rR).forEach((function(e){iR.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),rR[t]=rR[e]}))}));var sR=DI({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function lR(e,t){if(t){if(sR[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(XL(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(XL(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(XL(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(XL(62))}}function uR(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var cR=null;function dR(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var fR=null,hR=null,pR=null;function mR(e){if(e=lj(e)){if("function"!=typeof fR)throw Error(XL(280));var t=e.stateNode;t&&(t=cj(t),fR(e.stateNode,e.type,t))}}function gR(e){hR?pR?pR.push(e):pR=[e]:hR=e}function yR(){if(hR){var e=hR,t=pR;if(pR=hR=null,mR(e),t)for(e=0;e<t.length;e++)mR(t[e])}}function vR(e,t){return e(t)}function bR(){}var xR=!1;function wR(e,t,n){if(xR)return e(t,n);xR=!0;try{return vR(e,t,n)}finally{xR=!1,(null!==hR||null!==pR)&&(bR(),yR())}}function SR(e,t){var n=e.stateNode;if(null===n)return null;var r=cj(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(XL(231,t,typeof n));return n}var MR=!1;if(tI)try{var kR={};Object.defineProperty(kR,"passive",{get:function(){MR=!0}}),window.addEventListener("test",kR,kR),window.removeEventListener("test",kR,kR)}catch(a5){MR=!1}function CR(e,t,n,r,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var qR=!1,ER=null,DR=!1,TR=null,NR={onError:function(e){qR=!0,ER=e}};function OR(e,t,n,r,i,o,a,s,l){qR=!1,ER=null,CR.apply(NR,arguments)}function AR(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function _R(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function LR(e){if(AR(e)!==e)throw Error(XL(188))}function IR(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=AR(e)))throw Error(XL(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return LR(i),e;if(o===r)return LR(i),t;o=o.sibling}throw Error(XL(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a)throw Error(XL(189))}}if(n.alternate!==r)throw Error(XL(190))}if(3!==n.tag)throw Error(XL(188));return n.stateNode.current===n?e:t}(e),null!==e?RR(e):null}function RR(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=RR(e);if(null!==t)return t;e=e.sibling}return null}var PR=GL.unstable_scheduleCallback,zR=GL.unstable_cancelCallback,FR=GL.unstable_shouldYield,jR=GL.unstable_requestPaint,BR=GL.unstable_now,HR=GL.unstable_getCurrentPriorityLevel,VR=GL.unstable_ImmediatePriority,$R=GL.unstable_UserBlockingPriority,UR=GL.unstable_NormalPriority,WR=GL.unstable_LowPriority,YR=GL.unstable_IdlePriority,KR=null,GR=null;var XR=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(JR(e)/QR|0)|0},JR=Math.log,QR=Math.LN2;var ZR=64,eP=4194304;function tP(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function nP(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=tP(s):0!==(o&=a)&&(r=tP(o))}else 0!==(a=n&~i)?r=tP(a):0!==o&&(r=tP(o));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&0!=(4194240&o)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-XR(t)),r|=e[n],t&=~i;return r}function rP(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function iP(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function oP(){var e=ZR;return 0==(4194240&(ZR<<=1))&&(ZR=64),e}function aP(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function sP(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-XR(t)]=n}function lP(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-XR(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var uP=0;function cP(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var dP,fP,hP,pP,mP,gP=!1,yP=[],vP=null,bP=null,xP=null,wP=new Map,SP=new Map,MP=[],kP="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function CP(e,t){switch(e){case"focusin":case"focusout":vP=null;break;case"dragenter":case"dragleave":bP=null;break;case"mouseover":case"mouseout":xP=null;break;case"pointerover":case"pointerout":wP.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":SP.delete(t.pointerId)}}function qP(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&(null!==(t=lj(t))&&fP(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function EP(e){var t=sj(e.target);if(null!==t){var n=AR(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=_R(n)))return e.blockedOn=t,void mP(e.priority,(function(){hP(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function DP(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=FP(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=lj(n))&&fP(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);cR=r,n.target.dispatchEvent(r),cR=null,t.shift()}return!0}function TP(e,t,n){DP(e)&&n.delete(t)}function NP(){gP=!1,null!==vP&&DP(vP)&&(vP=null),null!==bP&&DP(bP)&&(bP=null),null!==xP&&DP(xP)&&(xP=null),wP.forEach(TP),SP.forEach(TP)}function OP(e,t){e.blockedOn===t&&(e.blockedOn=null,gP||(gP=!0,GL.unstable_scheduleCallback(GL.unstable_NormalPriority,NP)))}function AP(e){function t(t){return OP(t,e)}if(0<yP.length){OP(yP[0],e);for(var n=1;n<yP.length;n++){var r=yP[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==vP&&OP(vP,e),null!==bP&&OP(bP,e),null!==xP&&OP(xP,e),wP.forEach(t),SP.forEach(t),n=0;n<MP.length;n++)(r=MP[n]).blockedOn===e&&(r.blockedOn=null);for(;0<MP.length&&null===(n=MP[0]).blockedOn;)EP(n),null===n.blockedOn&&MP.shift()}var _P=dI.ReactCurrentBatchConfig,LP=!0;function IP(e,t,n,r){var i=uP,o=_P.transition;_P.transition=null;try{uP=1,PP(e,t,n,r)}finally{uP=i,_P.transition=o}}function RP(e,t,n,r){var i=uP,o=_P.transition;_P.transition=null;try{uP=4,PP(e,t,n,r)}finally{uP=i,_P.transition=o}}function PP(e,t,n,r){if(LP){var i=FP(e,t,n,r);if(null===i)_F(e,t,r,zP,n),CP(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return vP=qP(vP,e,t,n,r,i),!0;case"dragenter":return bP=qP(bP,e,t,n,r,i),!0;case"mouseover":return xP=qP(xP,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return wP.set(o,qP(wP.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,SP.set(o,qP(SP.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(CP(e,r),4&t&&-1<kP.indexOf(e)){for(;null!==i;){var o=lj(i);if(null!==o&&dP(o),null===(o=FP(e,t,n,r))&&_F(e,t,r,zP,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else _F(e,t,r,null,n)}}var zP=null;function FP(e,t,n,r){if(zP=null,null!==(e=sj(e=dR(r))))if(null===(t=AR(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=_R(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return zP=e,null}function jP(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(HR()){case VR:return 1;case $R:return 4;case UR:case WR:return 16;case YR:return 536870912;default:return 16}default:return 16}}var BP=null,HP=null,VP=null;function $P(){if(VP)return VP;var e,t,n=HP,r=n.length,i="value"in BP?BP.value:BP.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return VP=i.slice(e,1<t?1-t:void 0)}function UP(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function WP(){return!0}function YP(){return!1}function KP(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?WP:YP,this.isPropagationStopped=YP,this}return DI(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=WP)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=WP)},persist:function(){},isPersistent:WP}),t}var GP,XP,JP,QP={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ZP=KP(QP),ez=DI({},QP,{view:0,detail:0}),tz=KP(ez),nz=DI({},ez,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:pz,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==JP&&(JP&&"mousemove"===e.type?(GP=e.screenX-JP.screenX,XP=e.screenY-JP.screenY):XP=GP=0,JP=e),GP)},movementY:function(e){return"movementY"in e?e.movementY:XP}}),rz=KP(nz),iz=KP(DI({},nz,{dataTransfer:0})),oz=KP(DI({},ez,{relatedTarget:0})),az=KP(DI({},QP,{animationName:0,elapsedTime:0,pseudoElement:0})),sz=DI({},QP,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),lz=KP(sz),uz=KP(DI({},QP,{data:0})),cz={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},dz={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},fz={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function hz(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=fz[e])&&!!t[e]}function pz(){return hz}var mz=DI({},ez,{key:function(e){if(e.key){var t=cz[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=UP(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?dz[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:pz,charCode:function(e){return"keypress"===e.type?UP(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?UP(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),gz=KP(mz),yz=KP(DI({},nz,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),vz=KP(DI({},ez,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:pz})),bz=KP(DI({},QP,{propertyName:0,elapsedTime:0,pseudoElement:0})),xz=DI({},nz,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),wz=KP(xz),Sz=[9,13,27,32],Mz=tI&&"CompositionEvent"in window,kz=null;tI&&"documentMode"in document&&(kz=document.documentMode);var Cz=tI&&"TextEvent"in window&&!kz,qz=tI&&(!Mz||kz&&8<kz&&11>=kz),Ez=String.fromCharCode(32),Dz=!1;function Tz(e,t){switch(e){case"keyup":return-1!==Sz.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Nz(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Oz=!1;var Az={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function _z(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Az[e.type]:"textarea"===t}function Lz(e,t,n,r){gR(r),0<(t=IF(t,"onChange")).length&&(n=new ZP("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Iz=null,Rz=null;function Pz(e){EF(e,0)}function zz(e){if(zI(uj(e)))return e}function Fz(e,t){if("change"===e)return t}var jz=!1;if(tI){var Bz;if(tI){var Hz="oninput"in document;if(!Hz){var Vz=document.createElement("div");Vz.setAttribute("oninput","return;"),Hz="function"==typeof Vz.oninput}Bz=Hz}else Bz=!1;jz=Bz&&(!document.documentMode||9<document.documentMode)}function $z(){Iz&&(Iz.detachEvent("onpropertychange",Uz),Rz=Iz=null)}function Uz(e){if("value"===e.propertyName&&zz(Rz)){var t=[];Lz(t,Rz,e,dR(e)),wR(Pz,t)}}function Wz(e,t,n){"focusin"===e?($z(),Rz=n,(Iz=t).attachEvent("onpropertychange",Uz)):"focusout"===e&&$z()}function Yz(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return zz(Rz)}function Kz(e,t){if("click"===e)return zz(t)}function Gz(e,t){if("input"===e||"change"===e)return zz(t)}var Xz="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function Jz(e,t){if(Xz(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!nI.call(t,i)||!Xz(e[i],t[i]))return!1}return!0}function Qz(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Zz(e,t){var n,r=Qz(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Qz(r)}}function eF(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?eF(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function tF(){for(var e=window,t=FI();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=FI((e=t.contentWindow).document)}return t}function nF(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function rF(e){var t=tF(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&eF(n.ownerDocument.documentElement,n)){if(null!==r&&nF(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Zz(n,o);var a=Zz(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var iF=tI&&"documentMode"in document&&11>=document.documentMode,oF=null,aF=null,sF=null,lF=!1;function uF(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;lF||null==oF||oF!==FI(r)||("selectionStart"in(r=oF)&&nF(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},sF&&Jz(sF,r)||(sF=r,0<(r=IF(aF,"onSelect")).length&&(t=new ZP("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=oF)))}function cF(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var dF={animationend:cF("Animation","AnimationEnd"),animationiteration:cF("Animation","AnimationIteration"),animationstart:cF("Animation","AnimationStart"),transitionend:cF("Transition","TransitionEnd")},fF={},hF={};function pF(e){if(fF[e])return fF[e];if(!dF[e])return e;var t,n=dF[e];for(t in n)if(n.hasOwnProperty(t)&&t in hF)return fF[e]=n[t];return e}tI&&(hF=document.createElement("div").style,"AnimationEvent"in window||(delete dF.animationend.animation,delete dF.animationiteration.animation,delete dF.animationstart.animation),"TransitionEvent"in window||delete dF.transitionend.transition);var mF=pF("animationend"),gF=pF("animationiteration"),yF=pF("animationstart"),vF=pF("transitionend"),bF=new Map,xF="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function wF(e,t){bF.set(e,t),ZL(t,[e])}for(var SF=0;SF<xF.length;SF++){var MF=xF[SF];wF(MF.toLowerCase(),"on"+(MF[0].toUpperCase()+MF.slice(1)))}wF(mF,"onAnimationEnd"),wF(gF,"onAnimationIteration"),wF(yF,"onAnimationStart"),wF("dblclick","onDoubleClick"),wF("focusin","onFocus"),wF("focusout","onBlur"),wF(vF,"onTransitionEnd"),eI("onMouseEnter",["mouseout","mouseover"]),eI("onMouseLeave",["mouseout","mouseover"]),eI("onPointerEnter",["pointerout","pointerover"]),eI("onPointerLeave",["pointerout","pointerover"]),ZL("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ZL("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ZL("onBeforeInput",["compositionend","keypress","textInput","paste"]),ZL("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ZL("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ZL("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var kF="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),CF=new Set("cancel close invalid load scroll toggle".split(" ").concat(kF));function qF(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,o,a,s,l){if(OR.apply(this,arguments),qR){if(!qR)throw Error(XL(198));var u=ER;qR=!1,ER=null,DR||(DR=!0,TR=u)}}(r,t,void 0,e),e.currentTarget=null}function EF(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;qF(i,s,u),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;qF(i,s,u),o=l}}}if(DR)throw e=TR,DR=!1,TR=null,e}function DF(e,t){var n=t[ij];void 0===n&&(n=t[ij]=new Set);var r=e+"__bubble";n.has(r)||(AF(t,e,2,!1),n.add(r))}function TF(e,t,n){var r=0;t&&(r|=4),AF(n,e,r,t)}var NF="_reactListening"+Math.random().toString(36).slice(2);function OF(e){if(!e[NF]){e[NF]=!0,JL.forEach((function(t){"selectionchange"!==t&&(CF.has(t)||TF(t,!1,e),TF(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[NF]||(t[NF]=!0,TF("selectionchange",!1,t))}}function AF(e,t,n,r){switch(jP(t)){case 1:var i=IP;break;case 4:i=RP;break;default:i=PP}n=i.bind(null,t,n,e),i=void 0,!MR||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function _F(e,t,n,r,i){var o=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=sj(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}wR((function(){var r=o,i=dR(n),a=[];e:{var s=bF.get(e);if(void 0!==s){var l=ZP,u=e;switch(e){case"keypress":if(0===UP(n))break e;case"keydown":case"keyup":l=gz;break;case"focusin":u="focus",l=oz;break;case"focusout":u="blur",l=oz;break;case"beforeblur":case"afterblur":l=oz;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=rz;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=iz;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=vz;break;case mF:case gF:case yF:l=az;break;case vF:l=bz;break;case"scroll":l=tz;break;case"wheel":l=wz;break;case"copy":case"cut":case"paste":l=lz;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=yz}var c=0!=(4&t),d=!c&&"scroll"===e,f=c?null!==s?s+"Capture":null:s;c=[];for(var h,p=r;null!==p;){var m=(h=p).stateNode;if(5===h.tag&&null!==m&&(h=m,null!==f&&(null!=(m=SR(p,f))&&c.push(LF(p,m,h)))),d)break;p=p.return}0<c.length&&(s=new l(s,u,null,n,i),a.push({event:s,listeners:c}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===cR||!(u=n.relatedTarget||n.fromElement)||!sj(u)&&!u[rj])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?sj(u):null)&&(u!==(d=AR(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=rz,m="onMouseLeave",f="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(c=yz,m="onPointerLeave",f="onPointerEnter",p="pointer"),d=null==l?s:uj(l),h=null==u?s:uj(u),(s=new c(m,p+"leave",l,n,i)).target=d,s.relatedTarget=h,m=null,sj(i)===r&&((c=new c(f,p+"enter",u,n,i)).target=h,c.relatedTarget=d,m=c),d=m,l&&u)e:{for(f=u,p=0,h=c=l;h;h=RF(h))p++;for(h=0,m=f;m;m=RF(m))h++;for(;0<p-h;)c=RF(c),p--;for(;0<h-p;)f=RF(f),h--;for(;p--;){if(c===f||null!==f&&c===f.alternate)break e;c=RF(c),f=RF(f)}c=null}else c=null;null!==l&&PF(a,s,l,c,!1),null!==u&&null!==d&&PF(a,d,u,c,!0)}if("select"===(l=(s=r?uj(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Fz;else if(_z(s))if(jz)g=Gz;else{g=Yz;var y=Wz}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=Kz);switch(g&&(g=g(e,r))?Lz(a,g,n,i):(y&&y(e,s,r),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&UI(s,"number",s.value)),y=r?uj(r):window,e){case"focusin":(_z(y)||"true"===y.contentEditable)&&(oF=y,aF=r,sF=null);break;case"focusout":sF=aF=oF=null;break;case"mousedown":lF=!0;break;case"contextmenu":case"mouseup":case"dragend":lF=!1,uF(a,n,i);break;case"selectionchange":if(iF)break;case"keydown":case"keyup":uF(a,n,i)}var v;if(Mz)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Oz?Tz(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(qz&&"ko"!==n.locale&&(Oz||"onCompositionStart"!==b?"onCompositionEnd"===b&&Oz&&(v=$P()):(HP="value"in(BP=i)?BP.value:BP.textContent,Oz=!0)),0<(y=IF(r,b)).length&&(b=new uz(b,e,null,n,i),a.push({event:b,listeners:y}),v?b.data=v:null!==(v=Nz(n))&&(b.data=v))),(v=Cz?function(e,t){switch(e){case"compositionend":return Nz(t);case"keypress":return 32!==t.which?null:(Dz=!0,Ez);case"textInput":return(e=t.data)===Ez&&Dz?null:e;default:return null}}(e,n):function(e,t){if(Oz)return"compositionend"===e||!Mz&&Tz(e,t)?(e=$P(),VP=HP=BP=null,Oz=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return qz&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=IF(r,"onBeforeInput")).length&&(i=new uz("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=v))}EF(a,t)}))}function LF(e,t,n){return{instance:e,listener:t,currentTarget:n}}function IF(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=SR(e,n))&&r.unshift(LF(e,o,i)),null!=(o=SR(e,t))&&r.push(LF(e,o,i))),e=e.return}return r}function RF(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function PF(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,i?null!=(l=SR(n,o))&&a.unshift(LF(n,l,s)):i||null!=(l=SR(n,o))&&a.push(LF(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var zF=/\r\n?/g,FF=/\u0000|\uFFFD/g;function jF(e){return("string"==typeof e?e:""+e).replace(zF,"\n").replace(FF,"")}function BF(e,t,n){if(t=jF(t),jF(e)!==t&&n)throw Error(XL(425))}function HF(){}var VF=null,$F=null;function UF(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var WF="function"==typeof setTimeout?setTimeout:void 0,YF="function"==typeof clearTimeout?clearTimeout:void 0,KF="function"==typeof Promise?Promise:void 0,GF="function"==typeof queueMicrotask?queueMicrotask:void 0!==KF?function(e){return KF.resolve(null).then(e).catch(XF)}:WF;function XF(e){setTimeout((function(){throw e}))}function JF(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void AP(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);AP(t)}function QF(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ZF(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var ej=Math.random().toString(36).slice(2),tj="__reactFiber$"+ej,nj="__reactProps$"+ej,rj="__reactContainer$"+ej,ij="__reactEvents$"+ej,oj="__reactListeners$"+ej,aj="__reactHandles$"+ej;function sj(e){var t=e[tj];if(t)return t;for(var n=e.parentNode;n;){if(t=n[rj]||n[tj]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ZF(e);null!==e;){if(n=e[tj])return n;e=ZF(e)}return t}n=(e=n).parentNode}return null}function lj(e){return!(e=e[tj]||e[rj])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function uj(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(XL(33))}function cj(e){return e[nj]||null}var dj=[],fj=-1;function hj(e){return{current:e}}function pj(e){0>fj||(e.current=dj[fj],dj[fj]=null,fj--)}function mj(e,t){fj++,dj[fj]=e.current,e.current=t}var gj={},yj=hj(gj),vj=hj(!1),bj=gj;function xj(e,t){var n=e.type.contextTypes;if(!n)return gj;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function wj(e){return null!=(e=e.childContextTypes)}function Sj(){pj(vj),pj(yj)}function Mj(e,t,n){if(yj.current!==gj)throw Error(XL(168));mj(yj,t),mj(vj,n)}function kj(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(XL(108,LI(e)||"Unknown",i));return DI({},n,r)}function Cj(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||gj,bj=yj.current,mj(yj,e),mj(vj,vj.current),!0}function qj(e,t,n){var r=e.stateNode;if(!r)throw Error(XL(169));n?(e=kj(e,t,bj),r.__reactInternalMemoizedMergedChildContext=e,pj(vj),pj(yj),mj(yj,e)):pj(vj),mj(vj,n)}var Ej=null,Dj=!1,Tj=!1;function Nj(e){null===Ej?Ej=[e]:Ej.push(e)}function Oj(){if(!Tj&&null!==Ej){Tj=!0;var e=0,t=uP;try{var n=Ej;for(uP=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Ej=null,Dj=!1}catch(t){throw null!==Ej&&(Ej=Ej.slice(e+1)),PR(VR,Oj),t}finally{uP=t,Tj=!1}}return null}var Aj=[],_j=0,Lj=null,Ij=0,Rj=[],Pj=0,zj=null,Fj=1,jj="";function Bj(e,t){Aj[_j++]=Ij,Aj[_j++]=Lj,Lj=e,Ij=t}function Hj(e,t,n){Rj[Pj++]=Fj,Rj[Pj++]=jj,Rj[Pj++]=zj,zj=e;var r=Fj;e=jj;var i=32-XR(r)-1;r&=~(1<<i),n+=1;var o=32-XR(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Fj=1<<32-XR(t)+i|n<<i|r,jj=o+e}else Fj=1<<o|n<<i|r,jj=e}function Vj(e){null!==e.return&&(Bj(e,1),Hj(e,1,0))}function $j(e){for(;e===Lj;)Lj=Aj[--_j],Aj[_j]=null,Ij=Aj[--_j],Aj[_j]=null;for(;e===zj;)zj=Rj[--Pj],Rj[Pj]=null,jj=Rj[--Pj],Rj[Pj]=null,Fj=Rj[--Pj],Rj[Pj]=null}var Uj=null,Wj=null,Yj=!1,Kj=null;function Gj(e,t){var n=xU(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function Xj(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,Uj=e,Wj=QF(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,Uj=e,Wj=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==zj?{id:Fj,overflow:jj}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=xU(18,null,null,0)).stateNode=t,n.return=e,e.child=n,Uj=e,Wj=null,!0);default:return!1}}function Jj(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function Qj(e){if(Yj){var t=Wj;if(t){var n=t;if(!Xj(e,t)){if(Jj(e))throw Error(XL(418));t=QF(n.nextSibling);var r=Uj;t&&Xj(e,t)?Gj(r,n):(e.flags=-4097&e.flags|2,Yj=!1,Uj=e)}}else{if(Jj(e))throw Error(XL(418));e.flags=-4097&e.flags|2,Yj=!1,Uj=e}}}function Zj(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Uj=e}function eB(e){if(e!==Uj)return!1;if(!Yj)return Zj(e),Yj=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!UF(e.type,e.memoizedProps)),t&&(t=Wj)){if(Jj(e))throw tB(),Error(XL(418));for(;t;)Gj(e,t),t=QF(t.nextSibling)}if(Zj(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(XL(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Wj=QF(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Wj=null}}else Wj=Uj?QF(e.stateNode.nextSibling):null;return!0}function tB(){for(var e=Wj;e;)e=QF(e.nextSibling)}function nB(){Wj=Uj=null,Yj=!1}function rB(e){null===Kj?Kj=[e]:Kj.push(e)}var iB=dI.ReactCurrentBatchConfig;function oB(e,t){if(e&&e.defaultProps){for(var n in t=DI({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var aB=hj(null),sB=null,lB=null,uB=null;function cB(){uB=lB=sB=null}function dB(e){var t=aB.current;pj(aB),e._currentValue=t}function fB(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function hB(e,t){sB=e,uB=lB=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(lV=!0),e.firstContext=null)}function pB(e){var t=e._currentValue;if(uB!==e)if(e={context:e,memoizedValue:t,next:null},null===lB){if(null===sB)throw Error(XL(308));lB=e,sB.dependencies={lanes:0,firstContext:e}}else lB=lB.next=e;return t}var mB=null;function gB(e){null===mB?mB=[e]:mB.push(e)}function yB(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,gB(t)):(n.next=i.next,i.next=n),t.interleaved=n,vB(e,r)}function vB(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var bB=!1;function xB(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function wB(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function SB(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function MB(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&y$)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,vB(e,n)}return null===(i=r.interleaved)?(t.next=t,gB(r)):(t.next=i.next,i.next=t),r.interleaved=t,vB(e,n)}function kB(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,lP(e,n)}}function CB(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function qB(e,t,n,r){var i=e.updateQueue;bB=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?o=u:a.next=u,a=l;var c=e.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(null!==o){var d=i.baseState;for(a=0,c=u=l=null,s=o;;){var f=s.lane,h=s.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,m=s;switch(f=t,h=n,m.tag){case 1:if("function"==typeof(p=m.payload)){d=p.call(h,d,f);break e}d=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null==(f="function"==typeof(p=m.payload)?p.call(h,d,f):p))break e;d=DI({},d,f);break e;case 2:bB=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=i.effects)?i.effects=[s]:f.push(s))}else h={eventTime:h,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=h,l=d):c=c.next=h,a|=f;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(f=s).next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}if(null===c&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);C$|=a,e.lanes=a,e.memoizedState=d}}function EB(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(XL(191,i));i.call(r)}}}var DB=(new KL.Component).refs;function TB(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:DI({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var NB={isMounted:function(e){return!!(e=e._reactInternals)&&AR(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=V$(),i=$$(e),o=SB(r,i);o.payload=t,null!=n&&(o.callback=n),null!==(t=MB(e,o,i))&&(U$(t,e,i,r),kB(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=V$(),i=$$(e),o=SB(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=MB(e,o,i))&&(U$(t,e,i,r),kB(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=V$(),r=$$(e),i=SB(n,r);i.tag=2,null!=t&&(i.callback=t),null!==(t=MB(e,i,r))&&(U$(t,e,r,n),kB(t,e,r))}};function OB(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!Jz(n,r)||!Jz(i,o))}function AB(e,t,n){var r=!1,i=gj,o=t.contextType;return"object"==typeof o&&null!==o?o=pB(o):(i=wj(t)?bj:yj.current,o=(r=null!=(r=t.contextTypes))?xj(e,i):gj),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=NB,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function _B(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&NB.enqueueReplaceState(t,t.state,null)}function LB(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=DB,xB(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=pB(o):(o=wj(t)?bj:yj.current,i.context=xj(e,o)),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(TB(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&NB.enqueueReplaceState(i,i.state,null),qB(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function IB(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(XL(309));var r=n.stateNode}if(!r)throw Error(XL(147,e));var i=r,o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=i.refs;t===DB&&(t=i.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!=typeof e)throw Error(XL(284));if(!n._owner)throw Error(XL(290,e))}return e}function RB(e,t){throw e=Object.prototype.toString.call(t),Error(XL(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function PB(e){return(0,e._init)(e._payload)}function zB(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=SU(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=qU(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function l(e,t,n,r){var o=n.type;return o===pI?c(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===MI&&PB(o)===t.type)?((r=i(t,n.props)).ref=IB(e,t,n),r.return=e,r):((r=MU(n.type,n.key,n.props,null,e.mode,r)).ref=IB(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=EU(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function c(e,t,n,r,o){return null===t||7!==t.tag?((t=kU(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=qU(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case fI:return(n=MU(t.type,t.key,t.props,null,e.mode,n)).ref=IB(e,null,t),n.return=e,n;case hI:return(t=EU(t,e.mode,n)).return=e,t;case MI:return d(e,(0,t._init)(t._payload),n)}if(WI(t)||qI(t))return(t=kU(t,e.mode,n,null)).return=e,t;RB(e,t)}return null}function f(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case fI:return n.key===i?l(e,t,n,r):null;case hI:return n.key===i?u(e,t,n,r):null;case MI:return f(e,t,(i=n._init)(n._payload),r)}if(WI(n)||qI(n))return null!==i?null:c(e,t,n,r,null);RB(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case fI:return l(t,e=e.get(null===r.key?n:r.key)||null,r,i);case hI:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case MI:return h(e,t,n,(0,r._init)(r._payload),i)}if(WI(r)||qI(r))return c(t,e=e.get(n)||null,r,i,null);RB(t,r)}return null}function p(i,a,s,l){for(var u=null,c=null,p=a,m=a=0,g=null;null!==p&&m<s.length;m++){p.index>m?(g=p,p=null):g=p.sibling;var y=f(i,p,s[m],l);if(null===y){null===p&&(p=g);break}e&&p&&null===y.alternate&&t(i,p),a=o(y,a,m),null===c?u=y:c.sibling=y,c=y,p=g}if(m===s.length)return n(i,p),Yj&&Bj(i,m),u;if(null===p){for(;m<s.length;m++)null!==(p=d(i,s[m],l))&&(a=o(p,a,m),null===c?u=p:c.sibling=p,c=p);return Yj&&Bj(i,m),u}for(p=r(i,p);m<s.length;m++)null!==(g=h(p,i,m,s[m],l))&&(e&&null!==g.alternate&&p.delete(null===g.key?m:g.key),a=o(g,a,m),null===c?u=g:c.sibling=g,c=g);return e&&p.forEach((function(e){return t(i,e)})),Yj&&Bj(i,m),u}function m(i,a,s,l){var u=qI(s);if("function"!=typeof u)throw Error(XL(150));if(null==(s=u.call(s)))throw Error(XL(151));for(var c=u=null,p=a,m=a=0,g=null,y=s.next();null!==p&&!y.done;m++,y=s.next()){p.index>m?(g=p,p=null):g=p.sibling;var v=f(i,p,y.value,l);if(null===v){null===p&&(p=g);break}e&&p&&null===v.alternate&&t(i,p),a=o(v,a,m),null===c?u=v:c.sibling=v,c=v,p=g}if(y.done)return n(i,p),Yj&&Bj(i,m),u;if(null===p){for(;!y.done;m++,y=s.next())null!==(y=d(i,y.value,l))&&(a=o(y,a,m),null===c?u=y:c.sibling=y,c=y);return Yj&&Bj(i,m),u}for(p=r(i,p);!y.done;m++,y=s.next())null!==(y=h(p,i,m,y.value,l))&&(e&&null!==y.alternate&&p.delete(null===y.key?m:y.key),a=o(y,a,m),null===c?u=y:c.sibling=y,c=y);return e&&p.forEach((function(e){return t(i,e)})),Yj&&Bj(i,m),u}return function e(r,o,s,l){if("object"==typeof s&&null!==s&&s.type===pI&&null===s.key&&(s=s.props.children),"object"==typeof s&&null!==s){switch(s.$$typeof){case fI:e:{for(var u=s.key,c=o;null!==c;){if(c.key===u){if((u=s.type)===pI){if(7===c.tag){n(r,c.sibling),(o=i(c,s.props.children)).return=r,r=o;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===MI&&PB(u)===c.type){n(r,c.sibling),(o=i(c,s.props)).ref=IB(r,c,s),o.return=r,r=o;break e}n(r,c);break}t(r,c),c=c.sibling}s.type===pI?((o=kU(s.props.children,r.mode,l,s.key)).return=r,r=o):((l=MU(s.type,s.key,s.props,null,r.mode,l)).ref=IB(r,o,s),l.return=r,r=l)}return a(r);case hI:e:{for(c=s.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===s.containerInfo&&o.stateNode.implementation===s.implementation){n(r,o.sibling),(o=i(o,s.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=EU(s,r.mode,l)).return=r,r=o}return a(r);case MI:return e(r,o,(c=s._init)(s._payload),l)}if(WI(s))return p(r,o,s,l);if(qI(s))return m(r,o,s,l);RB(r,s)}return"string"==typeof s&&""!==s||"number"==typeof s?(s=""+s,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,s)).return=r,r=o):(n(r,o),(o=qU(s,r.mode,l)).return=r,r=o),a(r)):n(r,o)}}var FB=zB(!0),jB=zB(!1),BB={},HB=hj(BB),VB=hj(BB),$B=hj(BB);function UB(e){if(e===BB)throw Error(XL(174));return e}function WB(e,t){switch(mj($B,t),mj(VB,e),mj(HB,BB),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ZI(null,"");break;default:t=ZI(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}pj(HB),mj(HB,t)}function YB(){pj(HB),pj(VB),pj($B)}function KB(e){UB($B.current);var t=UB(HB.current),n=ZI(t,e.type);t!==n&&(mj(VB,e),mj(HB,n))}function GB(e){VB.current===e&&(pj(HB),pj(VB))}var XB=hj(0);function JB(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var QB=[];function ZB(){for(var e=0;e<QB.length;e++)QB[e]._workInProgressVersionPrimary=null;QB.length=0}var eH=dI.ReactCurrentDispatcher,tH=dI.ReactCurrentBatchConfig,nH=0,rH=null,iH=null,oH=null,aH=!1,sH=!1,lH=0,uH=0;function cH(){throw Error(XL(321))}function dH(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Xz(e[n],t[n]))return!1;return!0}function fH(e,t,n,r,i,o){if(nH=o,rH=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,eH.current=null===e||null===e.memoizedState?GH:XH,e=n(r,i),sH){o=0;do{if(sH=!1,lH=0,25<=o)throw Error(XL(301));o+=1,oH=iH=null,t.updateQueue=null,eH.current=JH,e=n(r,i)}while(sH)}if(eH.current=KH,t=null!==iH&&null!==iH.next,nH=0,oH=iH=rH=null,aH=!1,t)throw Error(XL(300));return e}function hH(){var e=0!==lH;return lH=0,e}function pH(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===oH?rH.memoizedState=oH=e:oH=oH.next=e,oH}function mH(){if(null===iH){var e=rH.alternate;e=null!==e?e.memoizedState:null}else e=iH.next;var t=null===oH?rH.memoizedState:oH.next;if(null!==t)oH=t,iH=e;else{if(null===e)throw Error(XL(310));e={memoizedState:(iH=e).memoizedState,baseState:iH.baseState,baseQueue:iH.baseQueue,queue:iH.queue,next:null},null===oH?rH.memoizedState=oH=e:oH=oH.next=e}return oH}function gH(e,t){return"function"==typeof t?t(e):t}function yH(e){var t=mH(),n=t.queue;if(null===n)throw Error(XL(311));n.lastRenderedReducer=e;var r=iH,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(null!==i){o=i.next,r=r.baseState;var s=a=null,l=null,u=o;do{var c=u.lane;if((nH&c)===c)null!==l&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===l?(s=l=d,a=r):l=l.next=d,rH.lanes|=c,C$|=c}u=u.next}while(null!==u&&u!==o);null===l?a=r:l.next=s,Xz(r,t.memoizedState)||(lV=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{o=i.lane,rH.lanes|=o,C$|=o,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function vH(e){var t=mH(),n=t.queue;if(null===n)throw Error(XL(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var a=i=i.next;do{o=e(o,a.action),a=a.next}while(a!==i);Xz(o,t.memoizedState)||(lV=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function bH(){}function xH(e,t){var n=rH,r=mH(),i=t(),o=!Xz(r.memoizedState,i);if(o&&(r.memoizedState=i,lV=!0),r=r.queue,AH(MH.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||null!==oH&&1&oH.memoizedState.tag){if(n.flags|=2048,EH(9,SH.bind(null,n,r,i,t),void 0,null),null===v$)throw Error(XL(349));0!=(30&nH)||wH(n,t,i)}return i}function wH(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=rH.updateQueue)?(t={lastEffect:null,stores:null},rH.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function SH(e,t,n,r){t.value=n,t.getSnapshot=r,kH(t)&&CH(e)}function MH(e,t,n){return n((function(){kH(t)&&CH(e)}))}function kH(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Xz(e,n)}catch(e){return!0}}function CH(e){var t=vB(e,1);null!==t&&U$(t,e,1,-1)}function qH(e){var t=pH();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:gH,lastRenderedState:e},t.queue=e,e=e.dispatch=$H.bind(null,rH,e),[t.memoizedState,e]}function EH(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=rH.updateQueue)?(t={lastEffect:null,stores:null},rH.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function DH(){return mH().memoizedState}function TH(e,t,n,r){var i=pH();rH.flags|=e,i.memoizedState=EH(1|t,n,void 0,void 0===r?null:r)}function NH(e,t,n,r){var i=mH();r=void 0===r?null:r;var o=void 0;if(null!==iH){var a=iH.memoizedState;if(o=a.destroy,null!==r&&dH(r,a.deps))return void(i.memoizedState=EH(t,n,o,r))}rH.flags|=e,i.memoizedState=EH(1|t,n,o,r)}function OH(e,t){return TH(8390656,8,e,t)}function AH(e,t){return NH(2048,8,e,t)}function _H(e,t){return NH(4,2,e,t)}function LH(e,t){return NH(4,4,e,t)}function IH(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function RH(e,t,n){return n=null!=n?n.concat([e]):null,NH(4,4,IH.bind(null,t,e),n)}function PH(){}function zH(e,t){var n=mH();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&dH(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function FH(e,t){var n=mH();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&dH(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function jH(e,t,n){return 0==(21&nH)?(e.baseState&&(e.baseState=!1,lV=!0),e.memoizedState=n):(Xz(n,t)||(n=oP(),rH.lanes|=n,C$|=n,e.baseState=!0),t)}function BH(e,t){var n=uP;uP=0!==n&&4>n?n:4,e(!0);var r=tH.transition;tH.transition={};try{e(!1),t()}finally{uP=n,tH.transition=r}}function HH(){return mH().memoizedState}function VH(e,t,n){var r=$$(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},UH(e))WH(t,n);else if(null!==(n=yB(e,t,n,r))){U$(n,e,r,V$()),YH(n,t,r)}}function $H(e,t,n){var r=$$(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(UH(e))WH(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,Xz(s,a)){var l=t.interleaved;return null===l?(i.next=i,gB(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(e){}null!==(n=yB(e,t,i,r))&&(U$(n,e,r,i=V$()),YH(n,t,r))}}function UH(e){var t=e.alternate;return e===rH||null!==t&&t===rH}function WH(e,t){sH=aH=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function YH(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,lP(e,n)}}var KH={readContext:pB,useCallback:cH,useContext:cH,useEffect:cH,useImperativeHandle:cH,useInsertionEffect:cH,useLayoutEffect:cH,useMemo:cH,useReducer:cH,useRef:cH,useState:cH,useDebugValue:cH,useDeferredValue:cH,useTransition:cH,useMutableSource:cH,useSyncExternalStore:cH,useId:cH,unstable_isNewReconciler:!1},GH={readContext:pB,useCallback:function(e,t){return pH().memoizedState=[e,void 0===t?null:t],e},useContext:pB,useEffect:OH,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,TH(4194308,4,IH.bind(null,t,e),n)},useLayoutEffect:function(e,t){return TH(4194308,4,e,t)},useInsertionEffect:function(e,t){return TH(4,2,e,t)},useMemo:function(e,t){var n=pH();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=pH();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=VH.bind(null,rH,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},pH().memoizedState=e},useState:qH,useDebugValue:PH,useDeferredValue:function(e){return pH().memoizedState=e},useTransition:function(){var e=qH(!1),t=e[0];return e=BH.bind(null,e[1]),pH().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=rH,i=pH();if(Yj){if(void 0===n)throw Error(XL(407));n=n()}else{if(n=t(),null===v$)throw Error(XL(349));0!=(30&nH)||wH(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,OH(MH.bind(null,r,o,e),[e]),r.flags|=2048,EH(9,SH.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=pH(),t=v$.identifierPrefix;if(Yj){var n=jj;t=":"+t+"R"+(n=(Fj&~(1<<32-XR(Fj)-1)).toString(32)+n),0<(n=lH++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=uH++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},XH={readContext:pB,useCallback:zH,useContext:pB,useEffect:AH,useImperativeHandle:RH,useInsertionEffect:_H,useLayoutEffect:LH,useMemo:FH,useReducer:yH,useRef:DH,useState:function(){return yH(gH)},useDebugValue:PH,useDeferredValue:function(e){return jH(mH(),iH.memoizedState,e)},useTransition:function(){return[yH(gH)[0],mH().memoizedState]},useMutableSource:bH,useSyncExternalStore:xH,useId:HH,unstable_isNewReconciler:!1},JH={readContext:pB,useCallback:zH,useContext:pB,useEffect:AH,useImperativeHandle:RH,useInsertionEffect:_H,useLayoutEffect:LH,useMemo:FH,useReducer:vH,useRef:DH,useState:function(){return vH(gH)},useDebugValue:PH,useDeferredValue:function(e){var t=mH();return null===iH?t.memoizedState=e:jH(t,iH.memoizedState,e)},useTransition:function(){return[vH(gH)[0],mH().memoizedState]},useMutableSource:bH,useSyncExternalStore:xH,useId:HH,unstable_isNewReconciler:!1};function QH(e,t){try{var n="",r=t;do{n+=AI(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i,digest:null}}function ZH(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function eV(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var tV="function"==typeof WeakMap?WeakMap:Map;function nV(e,t,n){(n=SB(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){_$||(_$=!0,L$=r),eV(0,t)},n}function rV(e,t,n){(n=SB(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){eV(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){eV(0,t),"function"!=typeof r&&(null===I$?I$=new Set([this]):I$.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function iV(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new tV;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=pU.bind(null,e,t,n),t.then(e,e))}function oV(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function aV(e,t,n,r,i){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=SB(-1,1)).tag=2,MB(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var sV=dI.ReactCurrentOwner,lV=!1;function uV(e,t,n,r){t.child=null===e?jB(t,null,n,r):FB(t,e.child,n,r)}function cV(e,t,n,r,i){n=n.render;var o=t.ref;return hB(t,i),r=fH(e,t,n,r,o,i),n=hH(),null===e||lV?(Yj&&n&&Vj(t),t.flags|=1,uV(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,_V(e,t,i))}function dV(e,t,n,r,i){if(null===e){var o=n.type;return"function"!=typeof o||wU(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=MU(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,fV(e,t,o,r,i))}if(o=e.child,0==(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:Jz)(a,r)&&e.ref===t.ref)return _V(e,t,i)}return t.flags|=1,(e=SU(o,r)).ref=t.ref,e.return=t,t.child=e}function fV(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(Jz(o,r)&&e.ref===t.ref){if(lV=!1,t.pendingProps=r=o,0==(e.lanes&i))return t.lanes=e.lanes,_V(e,t,i);0!=(131072&e.flags)&&(lV=!0)}}return mV(e,t,n,r,i)}function hV(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},mj(S$,w$),w$|=n;else{if(0==(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,mj(S$,w$),w$|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,mj(S$,w$),w$|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,mj(S$,w$),w$|=r;return uV(e,t,i,n),t.child}function pV(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function mV(e,t,n,r,i){var o=wj(n)?bj:yj.current;return o=xj(t,o),hB(t,i),n=fH(e,t,n,r,o,i),r=hH(),null===e||lV?(Yj&&r&&Vj(t),t.flags|=1,uV(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,_V(e,t,i))}function gV(e,t,n,r,i){if(wj(n)){var o=!0;Cj(t)}else o=!1;if(hB(t,i),null===t.stateNode)AV(e,t),AB(t,n,r),LB(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=pB(u):u=xj(t,u=wj(n)?bj:yj.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&_B(t,a,r,u),bB=!1;var f=t.memoizedState;a.state=f,qB(t,r,a,i),l=t.memoizedState,s!==r||f!==l||vj.current||bB?("function"==typeof c&&(TB(t,n,c,r),l=t.memoizedState),(s=bB||OB(t,n,s,r,f,l,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,wB(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:oB(t.type,s),a.props=u,d=t.pendingProps,f=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=pB(l):l=xj(t,l=wj(n)?bj:yj.current);var h=n.getDerivedStateFromProps;(c="function"==typeof h||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==l)&&_B(t,a,r,l),bB=!1,f=t.memoizedState,a.state=f,qB(t,r,a,i);var p=t.memoizedState;s!==d||f!==p||vj.current||bB?("function"==typeof h&&(TB(t,n,h,r),p=t.memoizedState),(u=bB||OB(t,n,u,r,f,p,l)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=l,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return yV(e,t,n,r,o,i)}function yV(e,t,n,r,i,o){pV(e,t);var a=0!=(128&t.flags);if(!r&&!a)return i&&qj(t,n,!1),_V(e,t,o);r=t.stateNode,sV.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=FB(t,e.child,null,o),t.child=FB(t,null,s,o)):uV(e,t,s,o),t.memoizedState=r.state,i&&qj(t,n,!0),t.child}function vV(e){var t=e.stateNode;t.pendingContext?Mj(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Mj(0,t.context,!1),WB(e,t.containerInfo)}function bV(e,t,n,r,i){return nB(),rB(i),t.flags|=256,uV(e,t,n,r),t.child}var xV,wV,SV,MV,kV={dehydrated:null,treeContext:null,retryLane:0};function CV(e){return{baseLanes:e,cachePool:null,transitions:null}}function qV(e,t,n){var r,i=t.pendingProps,o=XB.current,a=!1,s=0!=(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&0!=(2&o)),r?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(o|=1),mj(XB,1&o),null===e)return Qj(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(s=i.children,e=i.fallback,a?(i=t.mode,a=t.child,s={mode:"hidden",children:s},0==(1&i)&&null!==a?(a.childLanes=0,a.pendingProps=s):a=CU(s,i,0,null),e=kU(e,i,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=CV(n),t.memoizedState=kV,e):EV(t,s));if(null!==(o=e.memoizedState)&&null!==(r=o.dehydrated))return function(e,t,n,r,i,o,a){if(n)return 256&t.flags?(t.flags&=-257,DV(e,t,a,r=ZH(Error(XL(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=CU({mode:"visible",children:r.children},i,0,null),(o=kU(o,i,a,null)).flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,0!=(1&t.mode)&&FB(t,e.child,null,a),t.child.memoizedState=CV(a),t.memoizedState=kV,o);if(0==(1&t.mode))return DV(e,t,a,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var s=r.dgst;return r=s,DV(e,t,a,r=ZH(o=Error(XL(419)),r,void 0))}if(s=0!=(a&e.childLanes),lV||s){if(null!==(r=v$)){switch(a&-a){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!=(i&(r.suspendedLanes|a))?0:i)&&i!==o.retryLane&&(o.retryLane=i,vB(e,i),U$(r,e,i,-1))}return iU(),DV(e,t,a,r=ZH(Error(XL(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=gU.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Wj=QF(i.nextSibling),Uj=t,Yj=!0,Kj=null,null!==e&&(Rj[Pj++]=Fj,Rj[Pj++]=jj,Rj[Pj++]=zj,Fj=e.id,jj=e.overflow,zj=t),t=EV(t,r.children),t.flags|=4096,t)}(e,t,s,i,r,o,n);if(a){a=i.fallback,s=t.mode,r=(o=e.child).sibling;var l={mode:"hidden",children:i.children};return 0==(1&s)&&t.child!==o?((i=t.child).childLanes=0,i.pendingProps=l,t.deletions=null):(i=SU(o,l)).subtreeFlags=14680064&o.subtreeFlags,null!==r?a=SU(r,a):(a=kU(a,s,n,null)).flags|=2,a.return=t,i.return=t,i.sibling=a,t.child=i,i=a,a=t.child,s=null===(s=e.child.memoizedState)?CV(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},a.memoizedState=s,a.childLanes=e.childLanes&~n,t.memoizedState=kV,i}return e=(a=e.child).sibling,i=SU(a,{mode:"visible",children:i.children}),0==(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function EV(e,t){return(t=CU({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function DV(e,t,n,r){return null!==r&&rB(r),FB(t,e.child,null,n),(e=EV(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function TV(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),fB(e.return,t,n)}function NV(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function OV(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(uV(e,t,r.children,n),0!=(2&(r=XB.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&TV(e,n,t);else if(19===e.tag)TV(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(mj(XB,r),0==(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===JB(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),NV(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===JB(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}NV(t,!0,n,null,o);break;case"together":NV(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function AV(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function _V(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),C$|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(XL(153));if(null!==t.child){for(n=SU(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=SU(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function LV(e,t){if(!Yj)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function IV(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function RV(e,t,n){var r=t.pendingProps;switch($j(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return IV(t),null;case 1:case 17:return wj(t.type)&&Sj(),IV(t),null;case 3:return r=t.stateNode,YB(),pj(vj),pj(yj),ZB(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(eB(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==Kj&&(G$(Kj),Kj=null))),wV(e,t),IV(t),null;case 5:GB(t);var i=UB($B.current);if(n=t.type,null!==e&&null!=t.stateNode)SV(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(XL(166));return IV(t),null}if(e=UB(HB.current),eB(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[tj]=t,r[nj]=o,e=0!=(1&t.mode),n){case"dialog":DF("cancel",r),DF("close",r);break;case"iframe":case"object":case"embed":DF("load",r);break;case"video":case"audio":for(i=0;i<kF.length;i++)DF(kF[i],r);break;case"source":DF("error",r);break;case"img":case"image":case"link":DF("error",r),DF("load",r);break;case"details":DF("toggle",r);break;case"input":BI(r,o),DF("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},DF("invalid",r);break;case"textarea":GI(r,o),DF("invalid",r)}for(var a in lR(n,o),i=null,o)if(o.hasOwnProperty(a)){var s=o[a];"children"===a?"string"==typeof s?r.textContent!==s&&(!0!==o.suppressHydrationWarning&&BF(r.textContent,s,e),i=["children",s]):"number"==typeof s&&r.textContent!==""+s&&(!0!==o.suppressHydrationWarning&&BF(r.textContent,s,e),i=["children",""+s]):QL.hasOwnProperty(a)&&null!=s&&"onScroll"===a&&DF("scroll",r)}switch(n){case"input":PI(r),$I(r,o,!0);break;case"textarea":PI(r),JI(r);break;case"select":case"option":break;default:"function"==typeof o.onClick&&(r.onclick=HF)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{a=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=QI(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=a.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),"select"===n&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[tj]=t,e[nj]=r,xV(e,t,!1,!1),t.stateNode=e;e:{switch(a=uR(n,r),n){case"dialog":DF("cancel",e),DF("close",e),i=r;break;case"iframe":case"object":case"embed":DF("load",e),i=r;break;case"video":case"audio":for(i=0;i<kF.length;i++)DF(kF[i],e);i=r;break;case"source":DF("error",e),i=r;break;case"img":case"image":case"link":DF("error",e),DF("load",e),i=r;break;case"details":DF("toggle",e),i=r;break;case"input":BI(e,r),i=jI(e,r),DF("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=DI({},r,{value:void 0}),DF("invalid",e);break;case"textarea":GI(e,r),i=KI(e,r),DF("invalid",e)}for(o in lR(n,i),s=i)if(s.hasOwnProperty(o)){var l=s[o];"style"===o?aR(e,l):"dangerouslySetInnerHTML"===o?null!=(l=l?l.__html:void 0)&&tR(e,l):"children"===o?"string"==typeof l?("textarea"!==n||""!==l)&&nR(e,l):"number"==typeof l&&nR(e,""+l):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(QL.hasOwnProperty(o)?null!=l&&"onScroll"===o&&DF("scroll",e):null!=l&&cI(e,o,l,a))}switch(n){case"input":PI(e),$I(e,r,!1);break;case"textarea":PI(e),JI(e);break;case"option":null!=r.value&&e.setAttribute("value",""+II(r.value));break;case"select":e.multiple=!!r.multiple,null!=(o=r.value)?YI(e,!!r.multiple,o,!1):null!=r.defaultValue&&YI(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=HF)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return IV(t),null;case 6:if(e&&null!=t.stateNode)MV(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(XL(166));if(n=UB($B.current),UB(HB.current),eB(t)){if(r=t.stateNode,n=t.memoizedProps,r[tj]=t,(o=r.nodeValue!==n)&&null!==(e=Uj))switch(e.tag){case 3:BF(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&BF(r.nodeValue,n,0!=(1&e.mode))}o&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[tj]=t,t.stateNode=r}return IV(t),null;case 13:if(pj(XB),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(Yj&&null!==Wj&&0!=(1&t.mode)&&0==(128&t.flags))tB(),nB(),t.flags|=98560,o=!1;else if(o=eB(t),null!==r&&null!==r.dehydrated){if(null===e){if(!o)throw Error(XL(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(XL(317));o[tj]=t}else nB(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;IV(t),o=!1}else null!==Kj&&(G$(Kj),Kj=null),o=!0;if(!o)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&XB.current)?0===M$&&(M$=3):iU())),null!==t.updateQueue&&(t.flags|=4),IV(t),null);case 4:return YB(),wV(e,t),null===e&&OF(t.stateNode.containerInfo),IV(t),null;case 10:return dB(t.type._context),IV(t),null;case 19:if(pj(XB),null===(o=t.memoizedState))return IV(t),null;if(r=0!=(128&t.flags),null===(a=o.rendering))if(r)LV(o,!1);else{if(0!==M$||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(a=JB(e))){for(t.flags|=128,LV(o,!1),null!==(r=a.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(o=n).flags&=14680066,null===(a=o.alternate)?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return mj(XB,1&XB.current|2),t.child}e=e.sibling}null!==o.tail&&BR()>O$&&(t.flags|=128,r=!0,LV(o,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=JB(a))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),LV(o,!0),null===o.tail&&"hidden"===o.tailMode&&!a.alternate&&!Yj)return IV(t),null}else 2*BR()-o.renderingStartTime>O$&&1073741824!==n&&(t.flags|=128,r=!0,LV(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(null!==(n=o.last)?n.sibling=a:t.child=a,o.last=a)}return null!==o.tail?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=BR(),t.sibling=null,n=XB.current,mj(XB,r?1&n|2:1&n),t):(IV(t),null);case 22:case 23:return eU(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&w$)&&(IV(t),6&t.subtreeFlags&&(t.flags|=8192)):IV(t),null;case 24:case 25:return null}throw Error(XL(156,t.tag))}function PV(e,t){switch($j(t),t.tag){case 1:return wj(t.type)&&Sj(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return YB(),pj(vj),pj(yj),ZB(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return GB(t),null;case 13:if(pj(XB),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(XL(340));nB()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return pj(XB),null;case 4:return YB(),null;case 10:return dB(t.type._context),null;case 22:case 23:return eU(),null;default:return null}}xV=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},wV=function(){},SV=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,UB(HB.current);var o,a=null;switch(n){case"input":i=jI(e,i),r=jI(e,r),a=[];break;case"select":i=DI({},i,{value:void 0}),r=DI({},r,{value:void 0}),a=[];break;case"textarea":i=KI(e,i),r=KI(e,r),a=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=HF)}for(u in lR(n,r),n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&null!=i[u])if("style"===u){var s=i[u];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(QL.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var l=r[u];if(s=null!=i?i[u]:void 0,r.hasOwnProperty(u)&&l!==s&&(null!=l||null!=s))if("style"===u)if(s){for(o in s)!s.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&s[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(a||(a=[]),a.push(u,n)),n=l;else"dangerouslySetInnerHTML"===u?(l=l?l.__html:void 0,s=s?s.__html:void 0,null!=l&&s!==l&&(a=a||[]).push(u,l)):"children"===u?"string"!=typeof l&&"number"!=typeof l||(a=a||[]).push(u,""+l):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(QL.hasOwnProperty(u)?(null!=l&&"onScroll"===u&&DF("scroll",e),a||s===l||(a=[])):(a=a||[]).push(u,l))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},MV=function(e,t,n,r){n!==r&&(t.flags|=4)};var zV=!1,FV=!1,jV="function"==typeof WeakSet?WeakSet:Set,BV=null;function HV(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){hU(e,t,n)}else n.current=null}function VV(e,t,n){try{n()}catch(n){hU(e,t,n)}}var $V=!1;function UV(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&VV(t,n,o)}i=i.next}while(i!==r)}}function WV(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function YV(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function KV(e){var t=e.alternate;null!==t&&(e.alternate=null,KV(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[tj],delete t[nj],delete t[ij],delete t[oj],delete t[aj])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function GV(e){return 5===e.tag||3===e.tag||4===e.tag}function XV(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||GV(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function JV(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=HF));else if(4!==r&&null!==(e=e.child))for(JV(e,t,n),e=e.sibling;null!==e;)JV(e,t,n),e=e.sibling}function QV(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(QV(e,t,n),e=e.sibling;null!==e;)QV(e,t,n),e=e.sibling}var ZV=null,e$=!1;function t$(e,t,n){for(n=n.child;null!==n;)n$(e,t,n),n=n.sibling}function n$(e,t,n){if(GR&&"function"==typeof GR.onCommitFiberUnmount)try{GR.onCommitFiberUnmount(KR,n)}catch(e){}switch(n.tag){case 5:FV||HV(n,t);case 6:var r=ZV,i=e$;ZV=null,t$(e,t,n),e$=i,null!==(ZV=r)&&(e$?(e=ZV,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ZV.removeChild(n.stateNode));break;case 18:null!==ZV&&(e$?(e=ZV,n=n.stateNode,8===e.nodeType?JF(e.parentNode,n):1===e.nodeType&&JF(e,n),AP(e)):JF(ZV,n.stateNode));break;case 4:r=ZV,i=e$,ZV=n.stateNode.containerInfo,e$=!0,t$(e,t,n),ZV=r,e$=i;break;case 0:case 11:case 14:case 15:if(!FV&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(0!=(2&o)||0!=(4&o))&&VV(n,t,a),i=i.next}while(i!==r)}t$(e,t,n);break;case 1:if(!FV&&(HV(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){hU(n,t,e)}t$(e,t,n);break;case 21:t$(e,t,n);break;case 22:1&n.mode?(FV=(r=FV)||null!==n.memoizedState,t$(e,t,n),FV=r):t$(e,t,n);break;default:t$(e,t,n)}}function r$(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new jV),t.forEach((function(t){var r=yU.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function i$(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,a=t,s=a;e:for(;null!==s;){switch(s.tag){case 5:ZV=s.stateNode,e$=!1;break e;case 3:case 4:ZV=s.stateNode.containerInfo,e$=!0;break e}s=s.return}if(null===ZV)throw Error(XL(160));n$(o,a,i),ZV=null,e$=!1;var l=i.alternate;null!==l&&(l.return=null),i.return=null}catch(e){hU(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)o$(t,e),t=t.sibling}function o$(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(i$(t,e),a$(e),4&r){try{UV(3,e,e.return),WV(3,e)}catch(t){hU(e,e.return,t)}try{UV(5,e,e.return)}catch(t){hU(e,e.return,t)}}break;case 1:i$(t,e),a$(e),512&r&&null!==n&&HV(n,n.return);break;case 5:if(i$(t,e),a$(e),512&r&&null!==n&&HV(n,n.return),32&e.flags){var i=e.stateNode;try{nR(i,"")}catch(t){hU(e,e.return,t)}}if(4&r&&null!=(i=e.stateNode)){var o=e.memoizedProps,a=null!==n?n.memoizedProps:o,s=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===s&&"radio"===o.type&&null!=o.name&&HI(i,o),uR(s,a);var u=uR(s,o);for(a=0;a<l.length;a+=2){var c=l[a],d=l[a+1];"style"===c?aR(i,d):"dangerouslySetInnerHTML"===c?tR(i,d):"children"===c?nR(i,d):cI(i,c,d,u)}switch(s){case"input":VI(i,o);break;case"textarea":XI(i,o);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var h=o.value;null!=h?YI(i,!!o.multiple,h,!1):f!==!!o.multiple&&(null!=o.defaultValue?YI(i,!!o.multiple,o.defaultValue,!0):YI(i,!!o.multiple,o.multiple?[]:"",!1))}i[nj]=o}catch(t){hU(e,e.return,t)}}break;case 6:if(i$(t,e),a$(e),4&r){if(null===e.stateNode)throw Error(XL(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(t){hU(e,e.return,t)}}break;case 3:if(i$(t,e),a$(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{AP(t.containerInfo)}catch(t){hU(e,e.return,t)}break;case 4:default:i$(t,e),a$(e);break;case 13:i$(t,e),a$(e),8192&(i=e.child).flags&&(o=null!==i.memoizedState,i.stateNode.isHidden=o,!o||null!==i.alternate&&null!==i.alternate.memoizedState||(N$=BR())),4&r&&r$(e);break;case 22:if(c=null!==n&&null!==n.memoizedState,1&e.mode?(FV=(u=FV)||c,i$(t,e),FV=u):i$(t,e),a$(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!c&&0!=(1&e.mode))for(BV=e,c=e.child;null!==c;){for(d=BV=c;null!==BV;){switch(h=(f=BV).child,f.tag){case 0:case 11:case 14:case 15:UV(4,f,f.return);break;case 1:HV(f,f.return);var p=f.stateNode;if("function"==typeof p.componentWillUnmount){r=f,n=f.return;try{t=r,p.props=t.memoizedProps,p.state=t.memoizedState,p.componentWillUnmount()}catch(e){hU(r,n,e)}}break;case 5:HV(f,f.return);break;case 22:if(null!==f.memoizedState){c$(d);continue}}null!==h?(h.return=f,BV=h):c$(d)}c=c.sibling}e:for(c=null,d=e;;){if(5===d.tag){if(null===c){c=d;try{i=d.stateNode,u?"function"==typeof(o=i.style).setProperty?o.setProperty("display","none","important"):o.display="none":(s=d.stateNode,a=null!=(l=d.memoizedProps.style)&&l.hasOwnProperty("display")?l.display:null,s.style.display=oR("display",a))}catch(t){hU(e,e.return,t)}}}else if(6===d.tag){if(null===c)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(t){hU(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:i$(t,e),a$(e),4&r&&r$(e);case 21:}}function a$(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(GV(n)){var r=n;break e}n=n.return}throw Error(XL(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(nR(i,""),r.flags&=-33),QV(e,XV(e),i);break;case 3:case 4:var o=r.stateNode.containerInfo;JV(e,XV(e),o);break;default:throw Error(XL(161))}}catch(t){hU(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function s$(e,t,n){BV=e,l$(e)}function l$(e,t,n){for(var r=0!=(1&e.mode);null!==BV;){var i=BV,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||zV;if(!a){var s=i.alternate,l=null!==s&&null!==s.memoizedState||FV;s=zV;var u=FV;if(zV=a,(FV=l)&&!u)for(BV=i;null!==BV;)l=(a=BV).child,22===a.tag&&null!==a.memoizedState?d$(i):null!==l?(l.return=a,BV=l):d$(i);for(;null!==o;)BV=o,l$(o),o=o.sibling;BV=i,zV=s,FV=u}u$(e)}else 0!=(8772&i.subtreeFlags)&&null!==o?(o.return=i,BV=o):u$(e)}}function u$(e){for(;null!==BV;){var t=BV;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:FV||WV(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!FV)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:oB(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;null!==o&&EB(t,o,r);break;case 3:var a=t.updateQueue;if(null!==a){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}EB(t,a,n)}break;case 5:var s=t.stateNode;if(null===n&&4&t.flags){n=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var c=u.memoizedState;if(null!==c){var d=c.dehydrated;null!==d&&AP(d)}}}break;default:throw Error(XL(163))}FV||512&t.flags&&YV(t)}catch(e){hU(t,t.return,e)}}if(t===e){BV=null;break}if(null!==(n=t.sibling)){n.return=t.return,BV=n;break}BV=t.return}}function c$(e){for(;null!==BV;){var t=BV;if(t===e){BV=null;break}var n=t.sibling;if(null!==n){n.return=t.return,BV=n;break}BV=t.return}}function d$(e){for(;null!==BV;){var t=BV;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{WV(4,t)}catch(e){hU(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(e){hU(t,i,e)}}var o=t.return;try{YV(t)}catch(e){hU(t,o,e)}break;case 5:var a=t.return;try{YV(t)}catch(e){hU(t,a,e)}}}catch(e){hU(t,t.return,e)}if(t===e){BV=null;break}var s=t.sibling;if(null!==s){s.return=t.return,BV=s;break}BV=t.return}}var f$,h$=Math.ceil,p$=dI.ReactCurrentDispatcher,m$=dI.ReactCurrentOwner,g$=dI.ReactCurrentBatchConfig,y$=0,v$=null,b$=null,x$=0,w$=0,S$=hj(0),M$=0,k$=null,C$=0,q$=0,E$=0,D$=null,T$=null,N$=0,O$=1/0,A$=null,_$=!1,L$=null,I$=null,R$=!1,P$=null,z$=0,F$=0,j$=null,B$=-1,H$=0;function V$(){return 0!=(6&y$)?BR():-1!==B$?B$:B$=BR()}function $$(e){return 0==(1&e.mode)?1:0!=(2&y$)&&0!==x$?x$&-x$:null!==iB.transition?(0===H$&&(H$=oP()),H$):0!==(e=uP)?e:e=void 0===(e=window.event)?16:jP(e.type)}function U$(e,t,n,r){if(50<F$)throw F$=0,j$=null,Error(XL(185));sP(e,n,r),0!=(2&y$)&&e===v$||(e===v$&&(0==(2&y$)&&(q$|=n),4===M$&&X$(e,x$)),W$(e,r),1===n&&0===y$&&0==(1&t.mode)&&(O$=BR()+500,Dj&&Oj()))}function W$(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-XR(o),s=1<<a,l=i[a];-1===l?0!=(s&n)&&0==(s&r)||(i[a]=rP(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=nP(e,e===v$?x$:0);if(0===r)null!==n&&zR(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&zR(n),1===t)0===e.tag?function(e){Dj=!0,Nj(e)}(J$.bind(null,e)):Nj(J$.bind(null,e)),GF((function(){0==(6&y$)&&Oj()})),n=null;else{switch(cP(r)){case 1:n=VR;break;case 4:n=$R;break;case 16:default:n=UR;break;case 536870912:n=YR}n=vU(n,Y$.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Y$(e,t){if(B$=-1,H$=0,0!=(6&y$))throw Error(XL(327));var n=e.callbackNode;if(dU()&&e.callbackNode!==n)return null;var r=nP(e,e===v$?x$:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=oU(e,r);else{t=r;var i=y$;y$|=2;var o=rU();for(v$===e&&x$===t||(A$=null,O$=BR()+500,tU(e,t));;)try{sU();break}catch(t){nU(e,t)}cB(),p$.current=o,y$=i,null!==b$?t=0:(v$=null,x$=0,t=M$)}if(0!==t){if(2===t&&(0!==(i=iP(e))&&(r=i,t=K$(e,i))),1===t)throw n=k$,tU(e,0),X$(e,r),W$(e,BR()),n;if(6===t)X$(e,r);else{if(i=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!Xz(o(),i))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)&&(2===(t=oU(e,r))&&(0!==(o=iP(e))&&(r=o,t=K$(e,o))),1===t))throw n=k$,tU(e,0),X$(e,r),W$(e,BR()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(XL(345));case 2:case 5:cU(e,T$,A$);break;case 3:if(X$(e,r),(130023424&r)===r&&10<(t=N$+500-BR())){if(0!==nP(e,0))break;if(((i=e.suspendedLanes)&r)!==r){V$(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=WF(cU.bind(null,e,T$,A$),t);break}cU(e,T$,A$);break;case 4:if(X$(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-XR(r);o=1<<a,(a=t[a])>i&&(i=a),r&=~o}if(r=i,10<(r=(120>(r=BR()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*h$(r/1960))-r)){e.timeoutHandle=WF(cU.bind(null,e,T$,A$),r);break}cU(e,T$,A$);break;default:throw Error(XL(329))}}}return W$(e,BR()),e.callbackNode===n?Y$.bind(null,e):null}function K$(e,t){var n=D$;return e.current.memoizedState.isDehydrated&&(tU(e,t).flags|=256),2!==(e=oU(e,t))&&(t=T$,T$=n,null!==t&&G$(t)),e}function G$(e){null===T$?T$=e:T$.push.apply(T$,e)}function X$(e,t){for(t&=~E$,t&=~q$,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-XR(t),r=1<<n;e[n]=-1,t&=~r}}function J$(e){if(0!=(6&y$))throw Error(XL(327));dU();var t=nP(e,0);if(0==(1&t))return W$(e,BR()),null;var n=oU(e,t);if(0!==e.tag&&2===n){var r=iP(e);0!==r&&(t=r,n=K$(e,r))}if(1===n)throw n=k$,tU(e,0),X$(e,t),W$(e,BR()),n;if(6===n)throw Error(XL(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,cU(e,T$,A$),W$(e,BR()),null}function Q$(e,t){var n=y$;y$|=1;try{return e(t)}finally{0===(y$=n)&&(O$=BR()+500,Dj&&Oj())}}function Z$(e){null!==P$&&0===P$.tag&&0==(6&y$)&&dU();var t=y$;y$|=1;var n=g$.transition,r=uP;try{if(g$.transition=null,uP=1,e)return e()}finally{uP=r,g$.transition=n,0==(6&(y$=t))&&Oj()}}function eU(){w$=S$.current,pj(S$)}function tU(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,YF(n)),null!==b$)for(n=b$.return;null!==n;){var r=n;switch($j(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Sj();break;case 3:YB(),pj(vj),pj(yj),ZB();break;case 5:GB(r);break;case 4:YB();break;case 13:case 19:pj(XB);break;case 10:dB(r.type._context);break;case 22:case 23:eU()}n=n.return}if(v$=e,b$=e=SU(e.current,null),x$=w$=t,M$=0,k$=null,E$=q$=C$=0,T$=D$=null,null!==mB){for(t=0;t<mB.length;t++)if(null!==(r=(n=mB[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}mB=null}return e}function nU(e,t){for(;;){var n=b$;try{if(cB(),eH.current=KH,aH){for(var r=rH.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}aH=!1}if(nH=0,oH=iH=rH=null,sH=!1,lH=0,m$.current=null,null===n||null===n.return){M$=1,k$=t,b$=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=x$,s.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var u=l,c=s,d=c.tag;if(0==(1&c.mode)&&(0===d||11===d||15===d)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var h=oV(a);if(null!==h){h.flags&=-257,aV(h,a,s,0,t),1&h.mode&&iV(o,u,t),l=u;var p=(t=h).updateQueue;if(null===p){var m=new Set;m.add(l),t.updateQueue=m}else p.add(l);break e}if(0==(1&t)){iV(o,u,t),iU();break e}l=Error(XL(426))}else if(Yj&&1&s.mode){var g=oV(a);if(null!==g){0==(65536&g.flags)&&(g.flags|=256),aV(g,a,s,0,t),rB(QH(l,s));break e}}o=l=QH(l,s),4!==M$&&(M$=2),null===D$?D$=[o]:D$.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t,CB(o,nV(0,l,t));break e;case 1:s=l;var y=o.type,v=o.stateNode;if(0==(128&o.flags)&&("function"==typeof y.getDerivedStateFromError||null!==v&&"function"==typeof v.componentDidCatch&&(null===I$||!I$.has(v)))){o.flags|=65536,t&=-t,o.lanes|=t,CB(o,rV(o,s,t));break e}}o=o.return}while(null!==o)}uU(n)}catch(e){t=e,b$===n&&null!==n&&(b$=n=n.return);continue}break}}function rU(){var e=p$.current;return p$.current=KH,null===e?KH:e}function iU(){0!==M$&&3!==M$&&2!==M$||(M$=4),null===v$||0==(268435455&C$)&&0==(268435455&q$)||X$(v$,x$)}function oU(e,t){var n=y$;y$|=2;var r=rU();for(v$===e&&x$===t||(A$=null,tU(e,t));;)try{aU();break}catch(t){nU(e,t)}if(cB(),y$=n,p$.current=r,null!==b$)throw Error(XL(261));return v$=null,x$=0,M$}function aU(){for(;null!==b$;)lU(b$)}function sU(){for(;null!==b$&&!FR();)lU(b$)}function lU(e){var t=f$(e.alternate,e,w$);e.memoizedProps=e.pendingProps,null===t?uU(e):b$=t,m$.current=null}function uU(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=RV(n,t,w$)))return void(b$=n)}else{if(null!==(n=PV(n,t)))return n.flags&=32767,void(b$=n);if(null===e)return M$=6,void(b$=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(b$=t);b$=t=e}while(null!==t);0===M$&&(M$=5)}function cU(e,t,n){var r=uP,i=g$.transition;try{g$.transition=null,uP=1,function(e,t,n,r){do{dU()}while(null!==P$);if(0!=(6&y$))throw Error(XL(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(XL(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-XR(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,o),e===v$&&(b$=v$=null,x$=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||R$||(R$=!0,vU(UR,(function(){return dU(),null}))),o=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||o){o=g$.transition,g$.transition=null;var a=uP;uP=1;var s=y$;y$|=4,m$.current=null,function(e,t){if(VF=LP,nF(e=tF())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch(e){n=null;break e}var a=0,s=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var h;d!==n||0!==i&&3!==d.nodeType||(s=a+i),d!==o||0!==r&&3!==d.nodeType||(l=a+r),3===d.nodeType&&(a+=d.nodeValue.length),null!==(h=d.firstChild);)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++u===i&&(s=a),f===o&&++c===r&&(l=a),null!==(h=d.nextSibling))break;f=(d=f).parentNode}d=h}n=-1===s||-1===l?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for($F={focusedElem:e,selectionRange:n},LP=!1,BV=t;null!==BV;)if(e=(t=BV).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,BV=e;else for(;null!==BV;){t=BV;try{var p=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==p){var m=p.memoizedProps,g=p.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?m:oB(t.type,m),g);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var b=t.stateNode.containerInfo;1===b.nodeType?b.textContent="":9===b.nodeType&&b.documentElement&&b.removeChild(b.documentElement);break;default:throw Error(XL(163))}}catch(e){hU(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,BV=e;break}BV=t.return}p=$V,$V=!1}(e,n),o$(n,e),rF($F),LP=!!VF,$F=VF=null,e.current=n,s$(n),jR(),y$=s,uP=a,g$.transition=o}else e.current=n;if(R$&&(R$=!1,P$=e,z$=i),o=e.pendingLanes,0===o&&(I$=null),function(e){if(GR&&"function"==typeof GR.onCommitFiberRoot)try{GR.onCommitFiberRoot(KR,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),W$(e,BR()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(_$)throw _$=!1,e=L$,L$=null,e;0!=(1&z$)&&0!==e.tag&&dU(),o=e.pendingLanes,0!=(1&o)?e===j$?F$++:(F$=0,j$=e):F$=0,Oj()}(e,t,n,r)}finally{g$.transition=i,uP=r}return null}function dU(){if(null!==P$){var e=cP(z$),t=g$.transition,n=uP;try{if(g$.transition=null,uP=16>e?16:e,null===P$)var r=!1;else{if(e=P$,P$=null,z$=0,0!=(6&y$))throw Error(XL(331));var i=y$;for(y$|=4,BV=e.current;null!==BV;){var o=BV,a=o.child;if(0!=(16&BV.flags)){var s=o.deletions;if(null!==s){for(var l=0;l<s.length;l++){var u=s[l];for(BV=u;null!==BV;){var c=BV;switch(c.tag){case 0:case 11:case 15:UV(8,c,o)}var d=c.child;if(null!==d)d.return=c,BV=d;else for(;null!==BV;){var f=(c=BV).sibling,h=c.return;if(KV(c),c===u){BV=null;break}if(null!==f){f.return=h,BV=f;break}BV=h}}}var p=o.alternate;if(null!==p){var m=p.child;if(null!==m){p.child=null;do{var g=m.sibling;m.sibling=null,m=g}while(null!==m)}}BV=o}}if(0!=(2064&o.subtreeFlags)&&null!==a)a.return=o,BV=a;else e:for(;null!==BV;){if(0!=(2048&(o=BV).flags))switch(o.tag){case 0:case 11:case 15:UV(9,o,o.return)}var y=o.sibling;if(null!==y){y.return=o.return,BV=y;break e}BV=o.return}}var v=e.current;for(BV=v;null!==BV;){var b=(a=BV).child;if(0!=(2064&a.subtreeFlags)&&null!==b)b.return=a,BV=b;else e:for(a=v;null!==BV;){if(0!=(2048&(s=BV).flags))try{switch(s.tag){case 0:case 11:case 15:WV(9,s)}}catch(e){hU(s,s.return,e)}if(s===a){BV=null;break e}var x=s.sibling;if(null!==x){x.return=s.return,BV=x;break e}BV=s.return}}if(y$=i,Oj(),GR&&"function"==typeof GR.onPostCommitFiberRoot)try{GR.onPostCommitFiberRoot(KR,e)}catch(e){}r=!0}return r}finally{uP=n,g$.transition=t}}return!1}function fU(e,t,n){e=MB(e,t=nV(0,t=QH(n,t),1),1),t=V$(),null!==e&&(sP(e,1,t),W$(e,t))}function hU(e,t,n){if(3===e.tag)fU(e,e,n);else for(;null!==t;){if(3===t.tag){fU(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===I$||!I$.has(r))){t=MB(t,e=rV(t,e=QH(n,e),1),1),e=V$(),null!==t&&(sP(t,1,e),W$(t,e));break}}t=t.return}}function pU(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=V$(),e.pingedLanes|=e.suspendedLanes&n,v$===e&&(x$&n)===n&&(4===M$||3===M$&&(130023424&x$)===x$&&500>BR()-N$?tU(e,0):E$|=n),W$(e,t)}function mU(e,t){0===t&&(0==(1&e.mode)?t=1:(t=eP,0==(130023424&(eP<<=1))&&(eP=4194304)));var n=V$();null!==(e=vB(e,t))&&(sP(e,t,n),W$(e,n))}function gU(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),mU(e,n)}function yU(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(XL(314))}null!==r&&r.delete(t),mU(e,n)}function vU(e,t){return PR(e,t)}function bU(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xU(e,t,n,r){return new bU(e,t,n,r)}function wU(e){return!(!(e=e.prototype)||!e.isReactComponent)}function SU(e,t){var n=e.alternate;return null===n?((n=xU(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function MU(e,t,n,r,i,o){var a=2;if(r=e,"function"==typeof e)wU(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case pI:return kU(n.children,i,o,t);case mI:a=8,i|=8;break;case gI:return(e=xU(12,n,t,2|i)).elementType=gI,e.lanes=o,e;case xI:return(e=xU(13,n,t,i)).elementType=xI,e.lanes=o,e;case wI:return(e=xU(19,n,t,i)).elementType=wI,e.lanes=o,e;case kI:return CU(n,i,o,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case yI:a=10;break e;case vI:a=9;break e;case bI:a=11;break e;case SI:a=14;break e;case MI:a=16,r=null;break e}throw Error(XL(130,null==e?e:typeof e,""))}return(t=xU(a,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function kU(e,t,n,r){return(e=xU(7,e,r,t)).lanes=n,e}function CU(e,t,n,r){return(e=xU(22,e,r,t)).elementType=kI,e.lanes=n,e.stateNode={isHidden:!1},e}function qU(e,t,n){return(e=xU(6,e,null,t)).lanes=n,e}function EU(e,t,n){return(t=xU(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function DU(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=aP(0),this.expirationTimes=aP(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=aP(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function TU(e,t,n,r,i,o,a,s,l){return e=new DU(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=xU(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},xB(o),e}function NU(e){if(!e)return gj;e:{if(AR(e=e._reactInternals)!==e||1!==e.tag)throw Error(XL(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(wj(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(XL(171))}if(1===e.tag){var n=e.type;if(wj(n))return kj(e,n,t)}return t}function OU(e,t,n,r,i,o,a,s,l){return(e=TU(n,r,!0,e,0,o,0,s,l)).context=NU(null),n=e.current,(o=SB(r=V$(),i=$$(n))).callback=null!=t?t:null,MB(n,o,i),e.current.lanes=i,sP(e,i,r),W$(e,r),e}function AU(e,t,n,r){var i=t.current,o=V$(),a=$$(i);return n=NU(n),null===t.context?t.context=n:t.pendingContext=n,(t=SB(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=MB(i,t,a))&&(U$(e,i,a,o),kB(e,i,a)),a}function _U(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function LU(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function IU(e,t){LU(e,t),(e=e.alternate)&&LU(e,t)}f$=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||vj.current)lV=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return lV=!1,function(e,t,n){switch(t.tag){case 3:vV(t),nB();break;case 5:KB(t);break;case 1:wj(t.type)&&Cj(t);break;case 4:WB(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;mj(aB,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(mj(XB,1&XB.current),t.flags|=128,null):0!=(n&t.child.childLanes)?qV(e,t,n):(mj(XB,1&XB.current),null!==(e=_V(e,t,n))?e.sibling:null);mj(XB,1&XB.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return OV(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),mj(XB,XB.current),r)break;return null;case 22:case 23:return t.lanes=0,hV(e,t,n)}return _V(e,t,n)}(e,t,n);lV=0!=(131072&e.flags)}else lV=!1,Yj&&0!=(1048576&t.flags)&&Hj(t,Ij,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;AV(e,t),e=t.pendingProps;var i=xj(t,yj.current);hB(t,n),i=fH(null,t,r,e,i,n);var o=hH();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,wj(r)?(o=!0,Cj(t)):o=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,xB(t),i.updater=NB,t.stateNode=i,i._reactInternals=t,LB(t,r,e,n),t=yV(null,t,r,!0,o,n)):(t.tag=0,Yj&&o&&Vj(t),uV(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(AV(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"==typeof e)return wU(e)?1:0;if(null!=e){if((e=e.$$typeof)===bI)return 11;if(e===SI)return 14}return 2}(r),e=oB(r,e),i){case 0:t=mV(null,t,r,e,n);break e;case 1:t=gV(null,t,r,e,n);break e;case 11:t=cV(null,t,r,e,n);break e;case 14:t=dV(null,t,r,oB(r.type,e),n);break e}throw Error(XL(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,mV(e,t,r,i=t.elementType===r?i:oB(r,i),n);case 1:return r=t.type,i=t.pendingProps,gV(e,t,r,i=t.elementType===r?i:oB(r,i),n);case 3:e:{if(vV(t),null===e)throw Error(XL(387));r=t.pendingProps,i=(o=t.memoizedState).element,wB(e,t),qB(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=bV(e,t,r,n,i=QH(Error(XL(423)),t));break e}if(r!==i){t=bV(e,t,r,n,i=QH(Error(XL(424)),t));break e}for(Wj=QF(t.stateNode.containerInfo.firstChild),Uj=t,Yj=!0,Kj=null,n=jB(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(nB(),r===i){t=_V(e,t,n);break e}uV(e,t,r,n)}t=t.child}return t;case 5:return KB(t),null===e&&Qj(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,a=i.children,UF(r,i)?a=null:null!==o&&UF(r,o)&&(t.flags|=32),pV(e,t),uV(e,t,a,n),t.child;case 6:return null===e&&Qj(t),null;case 13:return qV(e,t,n);case 4:return WB(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=FB(t,null,r,n):uV(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,cV(e,t,r,i=t.elementType===r?i:oB(r,i),n);case 7:return uV(e,t,t.pendingProps,n),t.child;case 8:case 12:return uV(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,mj(aB,r._currentValue),r._currentValue=a,null!==o)if(Xz(o.value,a)){if(o.children===i.children&&!vj.current){t=_V(e,t,n);break e}}else for(null!==(o=t.child)&&(o.return=t);null!==o;){var s=o.dependencies;if(null!==s){a=o.child;for(var l=s.firstContext;null!==l;){if(l.context===r){if(1===o.tag){(l=SB(-1,n&-n)).tag=2;var u=o.updateQueue;if(null!==u){var c=(u=u.shared).pending;null===c?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}o.lanes|=n,null!==(l=o.alternate)&&(l.lanes|=n),fB(o.return,n,t),s.lanes|=n;break}l=l.next}}else if(10===o.tag)a=o.type===t.type?null:o.child;else if(18===o.tag){if(null===(a=o.return))throw Error(XL(341));a.lanes|=n,null!==(s=a.alternate)&&(s.lanes|=n),fB(a,n,t),a=o.sibling}else a=o.child;if(null!==a)a.return=o;else for(a=o;null!==a;){if(a===t){a=null;break}if(null!==(o=a.sibling)){o.return=a.return,a=o;break}a=a.return}o=a}uV(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,hB(t,n),r=r(i=pB(i)),t.flags|=1,uV(e,t,r,n),t.child;case 14:return i=oB(r=t.type,t.pendingProps),dV(e,t,r,i=oB(r.type,i),n);case 15:return fV(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:oB(r,i),AV(e,t),t.tag=1,wj(r)?(e=!0,Cj(t)):e=!1,hB(t,n),AB(t,r,i),LB(t,r,i,n),yV(null,t,r,!0,e,n);case 19:return OV(e,t,n);case 22:return hV(e,t,n)}throw Error(XL(156,t.tag))};var RU="function"==typeof reportError?reportError:function(e){console.error(e)};function PU(e){this._internalRoot=e}function zU(e){this._internalRoot=e}function FU(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function jU(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function BU(){}function HU(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"==typeof i){var s=i;i=function(){var e=_U(a);s.call(e)}}AU(t,a,e,i)}else a=function(e,t,n,r,i){if(i){if("function"==typeof r){var o=r;r=function(){var e=_U(a);o.call(e)}}var a=OU(t,r,e,0,null,!1,0,"",BU);return e._reactRootContainer=a,e[rj]=a.current,OF(8===e.nodeType?e.parentNode:e),Z$(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"==typeof r){var s=r;r=function(){var e=_U(l);s.call(e)}}var l=TU(e,0,!1,null,0,!1,0,"",BU);return e._reactRootContainer=l,e[rj]=l.current,OF(8===e.nodeType?e.parentNode:e),Z$((function(){AU(t,l,n,r)})),l}(n,t,e,i,r);return _U(a)}zU.prototype.render=PU.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(XL(409));AU(e,t,null,null)},zU.prototype.unmount=PU.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;Z$((function(){AU(null,e,null,null)})),t[rj]=null}},zU.prototype.unstable_scheduleHydration=function(e){if(e){var t=pP();e={blockedOn:null,target:e,priority:t};for(var n=0;n<MP.length&&0!==t&&t<MP[n].priority;n++);MP.splice(n,0,e),0===n&&EP(e)}},dP=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=tP(t.pendingLanes);0!==n&&(lP(t,1|n),W$(t,BR()),0==(6&y$)&&(O$=BR()+500,Oj()))}break;case 13:Z$((function(){var t=vB(e,1);if(null!==t){var n=V$();U$(t,e,1,n)}})),IU(e,1)}},fP=function(e){if(13===e.tag){var t=vB(e,134217728);if(null!==t)U$(t,e,134217728,V$());IU(e,134217728)}},hP=function(e){if(13===e.tag){var t=$$(e),n=vB(e,t);if(null!==n)U$(n,e,t,V$());IU(e,t)}},pP=function(){return uP},mP=function(e,t){var n=uP;try{return uP=e,t()}finally{uP=n}},fR=function(e,t,n){switch(t){case"input":if(VI(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=cj(r);if(!i)throw Error(XL(90));zI(r),VI(r,i)}}}break;case"textarea":XI(e,n);break;case"select":null!=(t=n.value)&&YI(e,!!n.multiple,t,!1)}},vR=Q$,bR=Z$;var VU={usingClientEntryPoint:!1,Events:[lj,uj,cj,gR,yR,Q$]},$U={findFiberByHostInstance:sj,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},UU={bundleType:$U.bundleType,version:$U.version,rendererPackageName:$U.rendererPackageName,rendererConfig:$U.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:dI.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=IR(e))?null:e.stateNode},findFiberByHostInstance:$U.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var WU=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!WU.isDisabled&&WU.supportsFiber)try{KR=WU.inject(UU),GR=WU}catch(a5){}}$L.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=VU,$L.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!FU(t))throw Error(XL(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:hI,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},$L.createRoot=function(e,t){if(!FU(e))throw Error(XL(299));var n=!1,r="",i=RU;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=TU(e,1,!1,null,0,n,0,r,i),e[rj]=t.current,OF(8===e.nodeType?e.parentNode:e),new PU(t)},$L.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(XL(188));throw e=Object.keys(e).join(","),Error(XL(268,e))}return e=null===(e=IR(t))?null:e.stateNode},$L.flushSync=function(e){return Z$(e)},$L.hydrate=function(e,t,n){if(!jU(t))throw Error(XL(200));return HU(null,e,t,!0,n)},$L.hydrateRoot=function(e,t,n){if(!FU(e))throw Error(XL(405));var r=null!=n&&n.hydratedSources||null,i=!1,o="",a=RU;if(null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(o=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=OU(t,null,e,1,null!=n?n:null,i,0,o,a),e[rj]=t.current,OF(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new zU(t)},$L.render=function(e,t,n){if(!jU(t))throw Error(XL(200));return HU(null,e,t,!1,n)},$L.unmountComponentAtNode=function(e){if(!jU(e))throw Error(XL(40));return!!e._reactRootContainer&&(Z$((function(){HU(null,null,e,!1,(function(){e._reactRootContainer=null,e[rj]=null}))})),!0)},$L.unstable_batchedUpdates=Q$,$L.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!jU(n))throw Error(XL(200));if(null==e||void 0===e._reactInternals)throw Error(XL(38));return HU(e,t,n,!1,r)},$L.version="18.2.0-next-9e3b772b8-20220608",function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),VL.exports=$L;var YU=VL.exports,KU=fg(YU),GU=!0,XU=!1,JU=null,QU={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function ZU(e){e.metaKey||e.altKey||e.ctrlKey||(GU=!0)}function eW(){GU=!1}function tW(){"hidden"===this.visibilityState&&XU&&(GU=!0)}function nW(e){var t=e.target;try{return t.matches(":focus-visible")}catch(e){}return GU||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!QU[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function rW(){XU=!0,window.clearTimeout(JU),JU=window.setTimeout((function(){XU=!1}),100)}function iW(){var e=mT.useCallback((function(e){var t,n=YU.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",ZU,!0),t.addEventListener("mousedown",eW,!0),t.addEventListener("pointerdown",eW,!0),t.addEventListener("touchstart",eW,!0),t.addEventListener("visibilitychange",tW,!0))}),[]);return{isFocusVisible:nW,onBlurVisible:rW,ref:e}}var oW=!1,aW=gT.createContext(null),sW="unmounted",lW="exited",uW="entering",cW="entered",dW="exiting",fW=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=lW,r.appearStatus=uW):i=cW:i=t.unmountOnExit||t.mountOnEnter?sW:lW,r.state={status:i},r.nextCallback=null,r}UN(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===sW?{status:lW}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==uW&&n!==cW&&(t=uW):n!==uW&&n!==cW||(t=dW)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===uW){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:KU.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===lW&&this.setState({status:sW})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[KU.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||oW?this.safeSetState({status:cW},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:uW},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:cW},(function(){t.props.onEntered(o,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:KU.findDOMNode(this);t&&!oW?(this.props.onExit(r),this.safeSetState({status:dW},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:lW},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:lW},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:KU.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===sW)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=uN(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return gT.createElement(aW.Provider,{value:null},"function"==typeof n?n(e,r):gT.cloneElement(gT.Children.only(n),r))},t}(gT.Component);function hW(){}fW.contextType=aW,fW.propTypes={},fW.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:hW,onEntering:hW,onEntered:hW,onExit:hW,onExiting:hW,onExited:hW},fW.UNMOUNTED=sW,fW.EXITED=lW,fW.ENTERING=uW,fW.ENTERED=cW,fW.EXITING=dW;var pW=fW;function mW(e,t){var n=Object.create(null);return e&&mT.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&mT.isValidElement(e)?t(e):e}(e)})),n}function gW(e,t,n){return null!=n[t]?n[t]:e.props[t]}function yW(e,t,n){var r=mW(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var u=i[l][r];s[i[l][r]]=n(u)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(t,r);return Object.keys(i).forEach((function(o){var a=i[o];if(mT.isValidElement(a)){var s=o in t,l=o in r,u=t[o],c=mT.isValidElement(u)&&!u.props.in;!l||s&&!c?l||!s||c?l&&s&&mT.isValidElement(u)&&(i[o]=mT.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:gW(a,"exit",e),enter:gW(a,"enter",e)})):i[o]=mT.cloneElement(a,{in:!1}):i[o]=mT.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:gW(a,"exit",e),enter:gW(a,"enter",e)})}})),i}var vW=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},bW=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(WN(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}UN(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,o=t.handleExited;return{children:t.firstRender?(n=e,r=o,mW(n.children,(function(e){return mT.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:gW(e,"appear",n),enter:gW(e,"enter",n),exit:gW(e,"exit",n)})}))):yW(e,i,o),firstRender:!1}},n.handleExited=function(e,t){var n=mW(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=JT({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=uN(e,["component","childFactory"]),i=this.state.contextValue,o=vW(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?gT.createElement(aW.Provider,{value:i},o):gT.createElement(aW.Provider,{value:i},gT.createElement(t,r,o))},t}(gT.Component);bW.propTypes={},bW.defaultProps={component:"div",childFactory:function(e){return e}};var xW=bW;function wW(e,t){var n=e.timeout,r=e.style,i=void 0===r?{}:r;return{duration:i.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:i.transitionDelay}}var SW=mT.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,o=void 0===i?"div":i,a=e.square,s=void 0!==a&&a,l=e.elevation,u=void 0===l?1:l,c=e.variant,d=void 0===c?"elevation":c,f=cN(e,["classes","className","component","square","elevation","variant"]);return mT.createElement(o,JT({className:RL(n.root,r,"outlined"===d?n.outlined:n["elevation".concat(u)],!s&&n.rounded),ref:t},f))})),MW=AL((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),JT({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(SW),kW="undefined"==typeof window?mT.useEffect:mT.useLayoutEffect;function CW(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,i=e.rippleX,o=e.rippleY,a=e.rippleSize,s=e.in,l=e.onExited,u=void 0===l?function(){}:l,c=e.timeout,d=mT.useState(!1),f=d[0],h=d[1],p=RL(t.ripple,t.rippleVisible,r&&t.ripplePulsate),m={width:a,height:a,top:-a/2+o,left:-a/2+i},g=RL(t.child,f&&t.childLeaving,r&&t.childPulsate),y=BL(u);return kW((function(){if(!s){h(!0);var e=setTimeout(y,c);return function(){clearTimeout(e)}}}),[y,s,c]),mT.createElement("span",{className:p,style:m},mT.createElement("span",{className:g}))}var qW=mT.forwardRef((function(e,t){var n=e.center,r=void 0!==n&&n,i=e.classes,o=e.className,a=cN(e,["center","classes","className"]),s=mT.useState([]),l=s[0],u=s[1],c=mT.useRef(0),d=mT.useRef(null);mT.useEffect((function(){d.current&&(d.current(),d.current=null)}),[l]);var f=mT.useRef(!1),h=mT.useRef(null),p=mT.useRef(null),m=mT.useRef(null);mT.useEffect((function(){return function(){clearTimeout(h.current)}}),[]);var g=mT.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,o=e.rippleSize,a=e.cb;u((function(e){return[].concat(EN(e),[mT.createElement(CW,{key:c.current,classes:i,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o})])})),c.current+=1,d.current=a}),[i]),y=mT.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,i=t.pulsate,o=void 0!==i&&i,a=t.center,s=void 0===a?r||t.pulsate:a,l=t.fakeElement,u=void 0!==l&&l;if("mousedown"===e.type&&f.current)f.current=!1;else{"touchstart"===e.type&&(f.current=!0);var c,d,y,v=u?null:m.current,b=v?v.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(b.width/2),d=Math.round(b.height/2);else{var x=e.touches?e.touches[0]:e,w=x.clientX,S=x.clientY;c=Math.round(w-b.left),d=Math.round(S-b.top)}if(s)(y=Math.sqrt((2*Math.pow(b.width,2)+Math.pow(b.height,2))/3))%2==0&&(y+=1);else{var M=2*Math.max(Math.abs((v?v.clientWidth:0)-c),c)+2,k=2*Math.max(Math.abs((v?v.clientHeight:0)-d),d)+2;y=Math.sqrt(Math.pow(M,2)+Math.pow(k,2))}e.touches?null===p.current&&(p.current=function(){g({pulsate:o,rippleX:c,rippleY:d,rippleSize:y,cb:n})},h.current=setTimeout((function(){p.current&&(p.current(),p.current=null)}),80)):g({pulsate:o,rippleX:c,rippleY:d,rippleSize:y,cb:n})}}),[r,g]),v=mT.useCallback((function(){y({},{pulsate:!0})}),[y]),b=mT.useCallback((function(e,t){if(clearTimeout(h.current),"touchend"===e.type&&p.current)return e.persist(),p.current(),p.current=null,void(h.current=setTimeout((function(){b(e,t)})));p.current=null,u((function(e){return e.length>0?e.slice(1):e})),d.current=t}),[]);return mT.useImperativeHandle(t,(function(){return{pulsate:v,start:y,stop:b}}),[v,y,b]),mT.createElement("span",JT({className:RL(i.root,o),ref:m},a),mT.createElement(xW,{component:null,exit:!0},l))})),EW=AL((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(mT.memo(qW)),DW=mT.forwardRef((function(e,t){var n=e.action,r=e.buttonRef,i=e.centerRipple,o=void 0!==i&&i,a=e.children,s=e.classes,l=e.className,u=e.component,c=void 0===u?"button":u,d=e.disabled,f=void 0!==d&&d,h=e.disableRipple,p=void 0!==h&&h,m=e.disableTouchRipple,g=void 0!==m&&m,y=e.focusRipple,v=void 0!==y&&y,b=e.focusVisibleClassName,x=e.onBlur,w=e.onClick,S=e.onFocus,M=e.onFocusVisible,k=e.onKeyDown,C=e.onKeyUp,q=e.onMouseDown,E=e.onMouseLeave,D=e.onMouseUp,T=e.onTouchEnd,N=e.onTouchMove,O=e.onTouchStart,A=e.onDragLeave,_=e.tabIndex,L=void 0===_?0:_,I=e.TouchRippleProps,R=e.type,P=void 0===R?"button":R,z=cN(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),F=mT.useRef(null);var j=mT.useRef(null),B=mT.useState(!1),H=B[0],V=B[1];f&&H&&V(!1);var $=iW(),U=$.isFocusVisible,W=$.onBlurVisible,Y=$.ref;function K(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g;return BL((function(r){return t&&t(r),!n&&j.current&&j.current[e](r),!0}))}mT.useImperativeHandle(n,(function(){return{focusVisible:function(){V(!0),F.current.focus()}}}),[]),mT.useEffect((function(){H&&v&&!p&&j.current.pulsate()}),[p,v,H]);var G=K("start",q),X=K("stop",A),J=K("stop",D),Q=K("stop",(function(e){H&&e.preventDefault(),E&&E(e)})),Z=K("start",O),ee=K("stop",T),te=K("stop",N),ne=K("stop",(function(e){H&&(W(e),V(!1)),x&&x(e)}),!1),re=BL((function(e){F.current||(F.current=e.currentTarget),U(e)&&(V(!0),M&&M(e)),S&&S(e)})),ie=function(){var e=YU.findDOMNode(F.current);return c&&"button"!==c&&!("A"===e.tagName&&e.href)},oe=mT.useRef(!1),ae=BL((function(e){v&&!oe.current&&H&&j.current&&" "===e.key&&(oe.current=!0,e.persist(),j.current.stop(e,(function(){j.current.start(e)}))),e.target===e.currentTarget&&ie()&&" "===e.key&&e.preventDefault(),k&&k(e),e.target===e.currentTarget&&ie()&&"Enter"===e.key&&!f&&(e.preventDefault(),w&&w(e))})),se=BL((function(e){v&&" "===e.key&&j.current&&H&&!e.defaultPrevented&&(oe.current=!1,e.persist(),j.current.stop(e,(function(){j.current.pulsate(e)}))),C&&C(e),w&&e.target===e.currentTarget&&ie()&&" "===e.key&&!e.defaultPrevented&&w(e)})),le=c;"button"===le&&z.href&&(le="a");var ue={};"button"===le?(ue.type=P,ue.disabled=f):("a"===le&&z.href||(ue.role="button"),ue["aria-disabled"]=f);var ce=HL(r,t),de=HL(Y,F),fe=HL(ce,de),he=mT.useState(!1),pe=he[0],me=he[1];mT.useEffect((function(){me(!0)}),[]);var ge=pe&&!p&&!f;return mT.createElement(le,JT({className:RL(s.root,l,H&&[s.focusVisible,b],f&&s.disabled),onBlur:ne,onClick:w,onFocus:re,onKeyDown:ae,onKeyUp:se,onMouseDown:G,onMouseLeave:Q,onMouseUp:J,onDragLeave:X,onTouchEnd:ee,onTouchMove:te,onTouchStart:Z,ref:fe,tabIndex:f?-1:L},ue,z),a,ge?mT.createElement(EW,JT({ref:j,center:o},I)):null)})),TW=AL({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(DW),NW={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},OW=mT.forwardRef((function(e,t){var n=e.align,r=void 0===n?"inherit":n,i=e.classes,o=e.className,a=e.color,s=void 0===a?"initial":a,l=e.component,u=e.display,c=void 0===u?"initial":u,d=e.gutterBottom,f=void 0!==d&&d,h=e.noWrap,p=void 0!==h&&h,m=e.paragraph,g=void 0!==m&&m,y=e.variant,v=void 0===y?"body1":y,b=e.variantMapping,x=void 0===b?NW:b,w=cN(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),S=l||(g?"p":x[v]||NW[v])||"span";return mT.createElement(S,JT({className:RL(i.root,o,"inherit"!==v&&i[v],"initial"!==s&&i["color".concat(_L(s))],p&&i.noWrap,f&&i.gutterBottom,g&&i.paragraph,"inherit"!==r&&i["align".concat(_L(r))],"initial"!==c&&i["display".concat(_L(c))]),ref:t},w))})),AW=AL((function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(OW),_W=mT.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.color,a=void 0===o?"default":o,s=e.component,l=void 0===s?"button":s,u=e.disabled,c=void 0!==u&&u,d=e.disableElevation,f=void 0!==d&&d,h=e.disableFocusRipple,p=void 0!==h&&h,m=e.endIcon,g=e.focusVisibleClassName,y=e.fullWidth,v=void 0!==y&&y,b=e.size,x=void 0===b?"medium":b,w=e.startIcon,S=e.type,M=void 0===S?"button":S,k=e.variant,C=void 0===k?"text":k,q=cN(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),E=w&&mT.createElement("span",{className:RL(r.startIcon,r["iconSize".concat(_L(x))])},w),D=m&&mT.createElement("span",{className:RL(r.endIcon,r["iconSize".concat(_L(x))])},m);return mT.createElement(TW,JT({className:RL(r.root,r[C],i,"inherit"===a?r.colorInherit:"default"!==a&&r["".concat(C).concat(_L(a))],"medium"!==x&&[r["".concat(C,"Size").concat(_L(x))],r["size".concat(_L(x))]],f&&r.disableElevation,c&&r.disabled,v&&r.fullWidth),component:l,disabled:c,focusRipple:!p,focusVisibleClassName:RL(r.focusVisible,g),ref:t,type:M},q),mT.createElement("span",{className:r.label},E,n,D))})),LW=AL((function(e){return{root:JT({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:lN(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:lN(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:lN(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(lN(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:lN(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(lN(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:lN(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(_W);var IW="undefined"!=typeof window?mT.useLayoutEffect:mT.useEffect,RW=mT.forwardRef((function(e,t){var n=e.children,r=e.container,i=e.disablePortal,o=void 0!==i&&i,a=e.onRendered,s=mT.useState(null),l=s[0],u=s[1],c=HL(mT.isValidElement(n)?n.ref:null,t);return IW((function(){o||u(function(e){return e="function"==typeof e?e():e,YU.findDOMNode(e)}(r)||document.body)}),[r,o]),IW((function(){if(l&&!o)return FL(t,l),function(){FL(t,null)}}),[t,l,o]),IW((function(){a&&(l||o)&&a()}),[a,l,o]),o?mT.isValidElement(n)?mT.cloneElement(n,{ref:c}):n:l?YU.createPortal(n,l):l})),PW=RW;function zW(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function FW(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function jW(e,t,n){var r=arguments.length>4?arguments[4]:void 0,i=[t,n].concat(EN(arguments.length>3&&void 0!==arguments[3]?arguments[3]:[])),o=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===i.indexOf(e)&&-1===o.indexOf(e.tagName)&&zW(e,r)}))}function BW(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function HW(e,t){var n,r=[],i=[],o=e.container;if(!t.disableScrollLock){if(function(e){var t=PL(e);return t.body===e?zL(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o)){var a=function(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}();r.push({value:o.style.paddingRight,key:"padding-right",el:o}),o.style["padding-right"]="".concat(FW(o)+a,"px"),n=PL(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){i.push(e.style.paddingRight),e.style.paddingRight="".concat(FW(e)+a,"px")}))}var s=o.parentElement,l="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:o;r.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){i[t]?e.style.paddingRight=i[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var VW=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modals=[],this.containers=[]}return VN(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&zW(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);jW(t,e.mountNode,e.modalRef,r,!0);var i=BW(this.containers,(function(e){return e.container===t}));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=BW(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=HW(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=BW(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&zW(e.modalRef,!0),jW(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var i=r.modals[r.modals.length-1];i.modalRef&&zW(i.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();function $W(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,i=e.disableEnforceFocus,o=void 0!==i&&i,a=e.disableRestoreFocus,s=void 0!==a&&a,l=e.getDoc,u=e.isEnabled,c=e.open,d=mT.useRef(),f=mT.useRef(null),h=mT.useRef(null),p=mT.useRef(),m=mT.useRef(null),g=mT.useCallback((function(e){m.current=YU.findDOMNode(e)}),[]),y=HL(t.ref,g),v=mT.useRef();return mT.useEffect((function(){v.current=c}),[c]),!v.current&&c&&"undefined"!=typeof window&&(p.current=l().activeElement),mT.useEffect((function(){if(c){var e=PL(m.current);r||!m.current||m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex",-1),m.current.focus());var t=function(){null!==m.current&&(e.hasFocus()&&!o&&u()&&!d.current?m.current&&!m.current.contains(e.activeElement)&&m.current.focus():d.current=!1)},n=function(t){!o&&u()&&9===t.keyCode&&e.activeElement===m.current&&(d.current=!0,t.shiftKey?h.current.focus():f.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var i=setInterval((function(){t()}),50);return function(){clearInterval(i),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),s||(p.current&&p.current.focus&&p.current.focus(),p.current=null)}}}),[r,o,s,u,c]),mT.createElement(mT.Fragment,null,mT.createElement("div",{tabIndex:0,ref:f,"data-test":"sentinelStart"}),mT.cloneElement(t,{ref:y}),mT.createElement("div",{tabIndex:0,ref:h,"data-test":"sentinelEnd"}))}var UW={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},WW=mT.forwardRef((function(e,t){var n=e.invisible,r=void 0!==n&&n,i=e.open,o=cN(e,["invisible","open"]);return i?mT.createElement("div",JT({"aria-hidden":!0,ref:t},o,{style:JT({},UW.root,r?UW.invisible:{},o.style)})):null}));var YW=new VW,KW=mT.forwardRef((function(e,t){var n=A_(),r=FN({name:"MuiModal",props:JT({},e),theme:n}),i=r.BackdropComponent,o=void 0===i?WW:i,a=r.BackdropProps,s=r.children,l=r.closeAfterTransition,u=void 0!==l&&l,c=r.container,d=r.disableAutoFocus,f=void 0!==d&&d,h=r.disableBackdropClick,p=void 0!==h&&h,m=r.disableEnforceFocus,g=void 0!==m&&m,y=r.disableEscapeKeyDown,v=void 0!==y&&y,b=r.disablePortal,x=void 0!==b&&b,w=r.disableRestoreFocus,S=void 0!==w&&w,M=r.disableScrollLock,k=void 0!==M&&M,C=r.hideBackdrop,q=void 0!==C&&C,E=r.keepMounted,D=void 0!==E&&E,T=r.manager,N=void 0===T?YW:T,O=r.onBackdropClick,A=r.onClose,_=r.onEscapeKeyDown,L=r.onRendered,I=r.open,R=cN(r,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),P=mT.useState(!0),z=P[0],F=P[1],j=mT.useRef({}),B=mT.useRef(null),H=mT.useRef(null),V=HL(H,t),$=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),U=function(){return PL(B.current)},W=function(){return j.current.modalRef=H.current,j.current.mountNode=B.current,j.current},Y=function(){N.mount(W(),{disableScrollLock:k}),H.current.scrollTop=0},K=BL((function(){var e=function(e){return e="function"==typeof e?e():e,YU.findDOMNode(e)}(c)||U().body;N.add(W(),e),H.current&&Y()})),G=mT.useCallback((function(){return N.isTopModal(W())}),[N]),X=BL((function(e){B.current=e,e&&(L&&L(),I&&G()?Y():zW(H.current,!0))})),J=mT.useCallback((function(){N.remove(W())}),[N]);if(mT.useEffect((function(){return function(){J()}}),[J]),mT.useEffect((function(){I?K():$&&u||J()}),[I,J,$,u,K]),!D&&!I&&(!$||z))return null;var Q=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:LN}),Z={};return void 0===s.props.tabIndex&&(Z.tabIndex=s.props.tabIndex||"-1"),$&&(Z.onEnter=LL((function(){F(!1)}),s.props.onEnter),Z.onExited=LL((function(){F(!0),u&&J()}),s.props.onExited)),mT.createElement(PW,{ref:X,container:c,disablePortal:x},mT.createElement("div",JT({ref:V,onKeyDown:function(e){"Escape"===e.key&&G()&&(_&&_(e),v||(e.stopPropagation(),A&&A(e,"escapeKeyDown")))},role:"presentation"},R,{style:JT({},Q.root,!I&&z?Q.hidden:{},R.style)}),q?null:mT.createElement(o,JT({open:I,onClick:function(e){e.target===e.currentTarget&&(O&&O(e),!p&&A&&A(e,"backdropClick"))}},a)),mT.createElement($W,{disableEnforceFocus:g,disableAutoFocus:f,disableRestoreFocus:S,getDoc:U,isEnabled:G,open:I},mT.cloneElement(s,Z))))})),GW=KW,XW=mT.forwardRef((function(e,t){var n=e.absolute,r=void 0!==n&&n,i=e.classes,o=e.className,a=e.component,s=void 0===a?"hr":a,l=e.flexItem,u=void 0!==l&&l,c=e.light,d=void 0!==c&&c,f=e.orientation,h=void 0===f?"horizontal":f,p=e.role,m=void 0===p?"hr"!==s?"separator":void 0:p,g=e.variant,y=void 0===g?"fullWidth":g,v=cN(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return mT.createElement(s,JT({className:RL(i.root,o,"fullWidth"!==y&&i[y],r&&i.absolute,u&&i.flexItem,d&&i.light,"vertical"===h&&i.vertical),role:m,ref:t},v))})),JW=AL((function(e){return{root:{height:1,margin:0,border:"none",flexShrink:0,backgroundColor:e.palette.divider},absolute:{position:"absolute",bottom:0,left:0,width:"100%"},inset:{marginLeft:72},light:{backgroundColor:lN(e.palette.divider,.08)},middle:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},vertical:{height:"100%",width:1},flexItem:{alignSelf:"stretch",height:"auto"}}}),{name:"MuiDivider"})(XW);function QW(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var ZW={entering:{opacity:1,transform:QW(1)},entered:{opacity:1,transform:"none"}},eY=mT.forwardRef((function(e,t){var n=e.children,r=e.disableStrictModeCompat,i=void 0!==r&&r,o=e.in,a=e.onEnter,s=e.onEntered,l=e.onEntering,u=e.onExit,c=e.onExited,d=e.onExiting,f=e.style,h=e.timeout,p=void 0===h?"auto":h,m=e.TransitionComponent,g=void 0===m?pW:m,y=cN(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),v=mT.useRef(),b=mT.useRef(),x=A_()||NL,w=x.unstable_strictMode&&!i,S=mT.useRef(null),M=HL(n.ref,t),k=HL(w?S:void 0,M),C=function(e){return function(t,n){if(e){var r=DN(w?[S.current,t]:[t,n],2),i=r[0],o=r[1];void 0===o?e(i):e(i,o)}}},q=C(l),E=C((function(e,t){!function(e){e.scrollTop}(e);var n,r=wW({style:f,timeout:p},{mode:"enter"}),i=r.duration,o=r.delay;"auto"===p?(n=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=n):n=i,e.style.transition=[x.transitions.create("opacity",{duration:n,delay:o}),x.transitions.create("transform",{duration:.666*n,delay:o})].join(","),a&&a(e,t)})),D=C(s),T=C(d),N=C((function(e){var t,n=wW({style:f,timeout:p},{mode:"exit"}),r=n.duration,i=n.delay;"auto"===p?(t=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=t):t=r,e.style.transition=[x.transitions.create("opacity",{duration:t,delay:i}),x.transitions.create("transform",{duration:.666*t,delay:i||.333*t})].join(","),e.style.opacity="0",e.style.transform=QW(.75),u&&u(e)})),O=C(c);return mT.useEffect((function(){return function(){clearTimeout(v.current)}}),[]),mT.createElement(g,JT({appear:!0,in:o,nodeRef:w?S:void 0,onEnter:E,onEntered:D,onEntering:q,onExit:N,onExited:O,onExiting:T,addEndListener:function(e,t){var n=w?e:t;"auto"===p&&(v.current=setTimeout(n,b.current||0))},timeout:"auto"===p?null:p},y),(function(e,t){return mT.cloneElement(n,JT({style:JT({opacity:0,transform:QW(.75),visibility:"exited"!==e||o?void 0:"hidden"},ZW[e],f,n.props.style),ref:k},t))}))}));eY.muiSupportAuto=!0;var tY=eY,nY=mT.createContext({}),rY=mT.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.component,a=void 0===o?"ul":o,s=e.dense,l=void 0!==s&&s,u=e.disablePadding,c=void 0!==u&&u,d=e.subheader,f=cN(e,["children","classes","className","component","dense","disablePadding","subheader"]),h=mT.useMemo((function(){return{dense:l}}),[l]);return mT.createElement(nY.Provider,{value:h},mT.createElement(a,JT({className:RL(r.root,i,l&&r.dense,!c&&r.padding,d&&r.subheader),ref:t},f),d,n))})),iY=AL({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(rY),oY="undefined"==typeof window?mT.useEffect:mT.useLayoutEffect,aY=mT.forwardRef((function(e,t){var n=e.alignItems,r=void 0===n?"center":n,i=e.autoFocus,o=void 0!==i&&i,a=e.button,s=void 0!==a&&a,l=e.children,u=e.classes,c=e.className,d=e.component,f=e.ContainerComponent,h=void 0===f?"li":f,p=e.ContainerProps,m=(p=void 0===p?{}:p).className,g=cN(p,["className"]),y=e.dense,v=void 0!==y&&y,b=e.disabled,x=void 0!==b&&b,w=e.disableGutters,S=void 0!==w&&w,M=e.divider,k=void 0!==M&&M,C=e.focusVisibleClassName,q=e.selected,E=void 0!==q&&q,D=cN(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),T=mT.useContext(nY),N={dense:v||T.dense||!1,alignItems:r},O=mT.useRef(null);oY((function(){o&&O.current&&O.current.focus()}),[o]);var A,_,L=mT.Children.toArray(l),I=L.length&&(A=L[L.length-1],_=["ListItemSecondaryAction"],mT.isValidElement(A)&&-1!==_.indexOf(A.type.muiName)),R=mT.useCallback((function(e){O.current=YU.findDOMNode(e)}),[]),P=HL(R,t),z=JT({className:RL(u.root,c,N.dense&&u.dense,!S&&u.gutters,k&&u.divider,x&&u.disabled,s&&u.button,"center"!==r&&u.alignItemsFlexStart,I&&u.secondaryAction,E&&u.selected),disabled:x},D),F=d||"li";return s&&(z.component=d||"div",z.focusVisibleClassName=RL(u.focusVisible,C),F=TW),I?(F=z.component||d?F:"div","li"===h&&("li"===F?F="div":"li"===z.component&&(z.component="div")),mT.createElement(nY.Provider,{value:N},mT.createElement(h,JT({className:RL(u.container,m),ref:P},g),mT.createElement(F,z,L),L.pop()))):mT.createElement(nY.Provider,{value:N},mT.createElement(F,JT({ref:P},z),L))})),sY=AL((function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}}),{name:"MuiListItem"})(aY),lY=mT.forwardRef((function(e,t){var n=e.classes,r=e.className,i=cN(e,["classes","className"]),o=mT.useContext(nY);return mT.createElement("div",JT({className:RL(n.root,r,"flex-start"===o.alignItems&&n.alignItemsFlexStart),ref:t},i))})),uY=AL((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(lY),cY=mT.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.disableTypography,a=void 0!==o&&o,s=e.inset,l=void 0!==s&&s,u=e.primary,c=e.primaryTypographyProps,d=e.secondary,f=e.secondaryTypographyProps,h=cN(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),p=mT.useContext(nY).dense,m=null!=u?u:n;null==m||m.type===AW||a||(m=mT.createElement(AW,JT({variant:p?"body2":"body1",className:r.primary,component:"span",display:"block"},c),m));var g=d;return null==g||g.type===AW||a||(g=mT.createElement(AW,JT({variant:"body2",className:r.secondary,color:"textSecondary",display:"block"},f),g)),mT.createElement("div",JT({className:RL(r.root,i,p&&r.dense,l&&r.inset,m&&g&&r.multiline),ref:t},h),m,g)})),dY=AL({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(cY);function fY(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function hY(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function pY(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function mY(e){return"function"==typeof e?e():e}var gY=mT.forwardRef((function(e,t){var n=e.action,r=e.anchorEl,i=e.anchorOrigin,o=void 0===i?{vertical:"top",horizontal:"left"}:i,a=e.anchorPosition,s=e.anchorReference,l=void 0===s?"anchorEl":s,u=e.children,c=e.classes,d=e.className,f=e.container,h=e.elevation,p=void 0===h?8:h,m=e.getContentAnchorEl,g=e.marginThreshold,y=void 0===g?16:g,v=e.onEnter,b=e.onEntered,x=e.onEntering,w=e.onExit,S=e.onExited,M=e.onExiting,k=e.open,C=e.PaperProps,q=void 0===C?{}:C,E=e.transformOrigin,D=void 0===E?{vertical:"top",horizontal:"left"}:E,T=e.TransitionComponent,N=void 0===T?tY:T,O=e.transitionDuration,A=void 0===O?"auto":O,_=e.TransitionProps,L=void 0===_?{}:_,I=cN(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),R=mT.useRef(),P=mT.useCallback((function(e){if("anchorPosition"===l)return a;var t=mY(r),n=(t&&1===t.nodeType?t:PL(R.current).body).getBoundingClientRect(),i=0===e?o.vertical:"center";return{top:n.top+fY(n,i),left:n.left+hY(n,o.horizontal)}}),[r,o.horizontal,o.vertical,a,l]),z=mT.useCallback((function(e){var t=0;if(m&&"anchorEl"===l){var n=m(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}}return t}),[o.vertical,l,m]),F=mT.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:fY(e,D.vertical)+t,horizontal:hY(e,D.horizontal)}}),[D.horizontal,D.vertical]),j=mT.useCallback((function(e){var t=z(e),n={width:e.offsetWidth,height:e.offsetHeight},i=F(n,t);if("none"===l)return{top:null,left:null,transformOrigin:pY(i)};var o=P(t),a=o.top-i.vertical,s=o.left-i.horizontal,u=a+n.height,c=s+n.width,d=zL(mY(r)),f=d.innerHeight-y,h=d.innerWidth-y;if(a<y){var p=a-y;a-=p,i.vertical+=p}else if(u>f){var m=u-f;a-=m,i.vertical+=m}if(s<y){var g=s-y;s-=g,i.horizontal+=g}else if(c>h){var v=c-h;s-=v,i.horizontal+=v}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:pY(i)}}),[r,l,P,z,F,y]),B=mT.useCallback((function(){var e=R.current;if(e){var t=j(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[j]),H=mT.useCallback((function(e){R.current=YU.findDOMNode(e)}),[]);mT.useEffect((function(){k&&B()})),mT.useImperativeHandle(n,(function(){return k?{updatePosition:function(){B()}}:null}),[k,B]),mT.useEffect((function(){if(k){var e=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=this;clearTimeout(t),t=setTimeout((function(){e.apply(a,i)}),n)}return r.clear=function(){clearTimeout(t)},r}((function(){B()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[k,B]);var V=A;"auto"!==A||N.muiSupportAuto||(V=void 0);var $=f||(r?PL(mY(r)).body:void 0);return mT.createElement(GW,JT({container:$,open:k,ref:t,BackdropProps:{invisible:!0},className:RL(c.root,d)},I),mT.createElement(N,JT({appear:!0,in:k,onEnter:v,onEntered:b,onExit:w,onExited:S,onExiting:M,timeout:V},L,{onEntering:LL((function(e,t){x&&x(e,t),B()}),L.onEntering)}),mT.createElement(MW,JT({elevation:p,ref:H},q,{className:RL(c.paper,q.className)}),u)))})),yY=AL({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(gY);function vY(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function bY({d:e,size:t,style:n={},viewBox:r="0 0 16 16"}){const i={fontSize:vY(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",...n};return gT.createElement("i",{style:i},gT.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},gT.createElement("path",{d:e})))}const xY={menuItem:"alternative-menu-item"},wY=e=>{const{nested:t,className:n,...r}=e,i=(({nested:e,dir:t})=>B_((n=>({root:{textAlign:"ltr"===t?"start":"end","&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"},...e&&"ltr"===t&&{paddingLeft:n.spacing(4)},...e&&"rtl"===t&&{paddingRight:n.spacing(4)}}}))))(e)();return gT.createElement(sY,zT({className:`${i.root} ${n}`},r))},SY=e=>{if("Tab"===e.key){const t=document.querySelectorAll(`.${xY.menuItem}`);let n;e.shiftKey?null!=t&&t.length&&t[0]===e.target&&(n=t[t.length-1]):null!=t&&t.length&&t[t.length-1]===e.target&&([n]=t),n&&setTimeout((()=>{n.focus()}),50)}};function MY({title:e,selected:t,onClick:n,nested:r,icon:i,bold:o,dir:a}){const s=Xg.detectTextDirection(e);return gT.createElement(wY,{nested:r,role:"menuitem",button:!0,onClick:n,className:xY.menuItem,onKeyDown:SY,dir:a,autoFocus:t},gT.createElement(dY,{primary:e,primaryTypographyProps:{dir:s,...o&&{style:{fontWeight:600}}}}),gT.createElement(uY,{style:{minWidth:16}},gT.createElement(bY,{d:t?ST.d:""})),i&&gT.createElement(uY,{style:{minWidth:16}},gT.createElement(bY,{d:i.d})))}MY.propTypes={title:HT.string.isRequired,selected:HT.bool,onClick:HT.func.isRequired,nested:HT.bool,icon:HT.shape({d:HT.string.isRequired}),bold:HT.bool,dir:HT.string.isRequired},MY.defaultProps={selected:!1,nested:!1,icon:void 0,bold:!1},wY.propTypes={nested:HT.bool,className:HT.string},wY.defaultProps={nested:!1,className:xY.menuItem};const kY={bottom:{anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},top:{anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"}},left:{anchorOrigin:{vertical:"center",horizontal:"left"},transformOrigin:{vertical:"center",horizontal:"right"}},right:{anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"}}};function CY({chartId:e,alignTo:t,currentId:n,dir:r,dock:i,list:o,onClose:a,show:s,instruction:l}){const u=o.map(((t,i)=>{var s;return gT.createElement(gT.Fragment,{key:t.id},gT.createElement(MY,{icon:t.icon,title:t.title,bold:t.groupItem,selected:t.selected,onClick:()=>{t.onSelect&&t.onSelect(n),a(`${e}-${t.id}`)},dir:r}),(null===(s=t.children)||void 0===s?void 0:s.length)>0&&gT.createElement(iY,{dense:!0,dir:r,component:"div",disablePadding:!0},t.children.map((e=>gT.createElement(MY,{key:e.id,nested:!0,title:e.title,selected:e.selected,onClick:()=>{e.onSelect(),a(t.id)},dir:r})))),i<o.length-1&&gT.createElement(JW,{key:`divider-${t.id}`}))}));return gT.createElement(yY,zT({anchorEl:t,open:s,onClose:a},kY[i],{PaperProps:{style:{minWidth:"250px",maxHeight:"300px"}}}),gT.createElement(iY,{dense:!0,disablePadding:!0,dir:r,"aria-label":l,component:"nav"},u))}CY.propTypes={chartId:HT.string.isRequired,alignTo:HT.any,currentId:HT.string.isRequired,dir:HT.string.isRequired,dock:HT.string.isRequired,list:HT.array,onClose:HT.func.isRequired,show:HT.bool.isRequired,instruction:HT.string.isRequired},CY.defaultProps={list:[],alignTo:null};const qY="title-button",EY="active-title-button",DY=OL((({children:e,...t})=>gT.createElement(LW,zT({size:"small",disableRipple:!0,disableTouchRipple:!0},t),e)))((()=>({"&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"}}))),TY=OL(LW)((()=>({borderRadius:"4px",width:"24px",height:"24px",minWidth:"22px",padding:0})));class NY extends gT.Component{constructor(e){super(e),this.state={open:!1,inSelection:e.selections&&e.selections.isActive(),hasPopoverOptions:!1,disableCyclicButton:!1},this.openPopover=this.openPopover.bind(this),this.closePopover=this.closePopover.bind(this),this.alignToRef=gT.createRef()}componentDidMount(){const{popover:e,selections:t,supportConditional:n,showGroupDimOptions:r}=this.props;t&&(this.onSelectionsActivated=()=>this.setState({inSelection:!0}),this.onSelectionsDeactivated=()=>this.setState({inSelection:!1}),t.addListener("activated",this.onSelectionsActivated),t.addListener("deactivated",this.onSelectionsDeactivated),t.addListener("canceled",this.onSelectionsDeactivated)),e&&(n||r)&&e.getPopoverOptions().then((e=>{this.setState({hasPopoverOptions:0!==e.length})}))}componentDidUpdate(e,t){const{popover:n,supportConditional:r,showGroupDimOptions:i}=this.props;n&&(r||i)&&n.getPopoverOptions().then((e=>{t.hasPopoverOptions!==(0!==e.length)&&this.setState({hasPopoverOptions:0!==e.length})}))}componentWillUnmount(){const{selections:e}=this.props;e&&(e.removeListener("activated",this.onSelectionsActivated),e.removeListener("deactivated",this.onSelectionsDeactivated),e.removeListener("canceled",this.onSelectionsDeactivated))}openPopover(e){if(!(this.state.closeTime&&Date.now()-this.state.closeTime<20)){if(e.target){const t=e.target.closest(`.${qY}`);t&&t.classList.add(EY)}this.props.popover.getPopoverOptions().then((e=>{this.setState({open:!0,list:e})}))}}closePopover(e){if(this.setState({open:!1,closeTime:Date.now()}),"string"==typeof e)setTimeout((()=>{const t=document.querySelector(`.${qY}[data-id="${e}"]`);t&&t.focus()}),1e3);else{const e=document.querySelector(`.${EY}`);e&&(e.classList.remove(EY),setTimeout((()=>{e.focus()}),50))}}render(){const{chartId:e,titleData:t,popover:n,translator:r,disabled:i,isDimension:o,padding:a,minWidth:s,hasAlternative:l,supportConditional:u,showGroupDimOptions:c}=this.props,d={flex:"1 1 auto",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontWeight:"normal",lineHeight:"normal",...this.props.style},f=t.breadcrumbs.length,h=i||Boolean(!t.drillUp)||this.state.inSelection,p=t.breadcrumbs.map(((e,n)=>gT.createElement(DY,{style:{display:"flex",alignItems:"center",color:h&&"rgba(89, 89, 89, 0.8)",pointerEvents:h?"none":"auto",paddingTop:0,paddingBottom:0,height:"100%"},key:n,onClick:()=>h?void 0:t.drillUp(f-n),title:e},gT.createElement("span",{style:d},e),gT.createElement(bY,zT({},kT,{size:"small",style:{margin:"0 8px"}}))))),m=u||c?this.state.hasPopoverOptions:l,g=n&&!this.state.open?this.openPopover:this.closePopover,y=!n||i||this.state.inSelection,v={display:"flex",alignItems:"center",width:"100%",color:y&&"rgba(89, 89, 89, 0.8)",height:"100%",border:!o&&y&&"none",...a?{padding:a}:{paddingTop:0,paddingBottom:0},...s&&{minWidth:s}};this.state.open&&(v.background="rgba(0,0,0,0.08)");const b=()=>{this.setState({disableCyclicButton:!0})},x=Xg.detectTextDirection(t.text),w=gT.createElement(DY,{"aria-label":r.get(`Accessibility.${n&&m?"Alternative":"Normal"}.Instructions`,[t.text]),style:v,onClick:y?void 0:g,title:t.text,tabIndex:y?-1:0,onFocus:y?void 0:e=>{e.currentTarget.style.boxShadow="0px 0px 0px 2px #177FE6 inset",e.currentTarget.style.borderRadius="2px"},onBlur:y?void 0:e=>{e.currentTarget.style.boxShadow="none",e.currentTarget.style.borderRadius="0px"},onMouseDown:e=>{e.preventDefault()},className:`${qY} ${t.id}`,"data-id":`${e}-${t.id}`},t.locked&&gT.createElement(bY,zT({},wT,{size:"small",title:r.get("Tooltip.selections.locked")})),gT.createElement("span",{style:d,dir:x},t.text),n&&m&&gT.createElement(bY,zT({},MT,{size:"small",style:{margin:"0 8px"}})));return gT.createElement(gT.Fragment,null,t.icon&&t.icon.onClick&&gT.createElement(TY,{variant:"outlined",disabled:this.state.disableCyclicButton||this.state.inSelection,onClick:i?void 0:()=>t.icon.onClick({onError:b})},gT.createElement(bY,zT({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip)}))),t.icon&&!t.icon.onClick&&gT.createElement(bY,zT({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip),style:{margin:"0 4px 0 0"}})),p,gT.createElement("div",{ref:this.alignToRef,style:{overflow:"hidden",pointerEvents:m?"auto":"none",height:"100%"}},w),n&&m&&gT.createElement(CY,{chartId:e,dock:n.dock,dir:n.dir,currentId:t.id,alignTo:this.alignToRef.current,show:this.state.open,list:this.state.list,onClose:this.closePopover,changeTo:this.changeTo,instruction:r.get("Accessibility.Popover.Instructions")}))}}function OY(e){return{top:"bottom",bottom:"top",left:"right",right:"left"}[e]}function AY(e){function t(e){return!e.isDimension&&Lg.getValue(e,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.length")>0}return{renderer:"react",disableTriggers:!0,preferredSize:function(){const{height:n}=e.measureText({text:"M",fontSize:this.style.fontSize,fontFamily:this.style.fontFamily});return this.settings.settings.isDimension||t(this.settings.settings)?Math.max(28,n):Math.max(20,n)},render(){const{settings:{app:e,disabled:n,explicitItemInfos:r,hyperCube:i,hyperCubeDef:o,isDimension:a,minWidth:s,model:l,onChangeToAlternative:u,padding:c,rtl:d,selections:f,skipAttributeExpressions:h,translator:p,supportConditional:m=!1},layout:{dock:g}}=this.settings,y="top"!==g&&"bottom"!==g||!d?"ltr":"rtl",v=function(e,t){const n={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",height:"100%"};return"left"===e?(n.width=`${t.height}px`,n.height=`${t.width}px`,n.transform=`rotate(-90deg) translate(-${t.height}px, 0)`,n.transformOrigin="top left"):"right"===e&&(n.width=`${t.height}px`,n.height=`${t.width}px`,n.transform=`rotate(90deg) translate(0, -${t.width}px)`,n.transformOrigin="top left"),n}(g,this.rect),b=o&&o.qLayoutExclude&&o.qLayoutExclude.qHyperCubeDef,x=b&&b[a?"qDimensions":"qMeasures"]||[],w=r||i[a?"qDimensionInfo":"qMeasureInfo"],S=a?LT:RT,M=a?IT:PT,k=Boolean(l&&l.colorSupport&&l.modifiers),C=k&&((q=this.settings.settings).isDimension&&Lg.getValue(q,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.length")>0||t(this.settings.settings));var q;const E=w.map(((t,r)=>{var i;const o="number"==typeof t.explicitColumn?t.explicitColumn:r,y=M(t,o,l,e),v=r===w.length-1,b=Boolean(e)&&a&&"N"!==t.qGrouping,q=k||b?S({column:o,activeInfo:t,altList:x,app:e,dir:d?"rtl":"ltr",dock:OY(g),model:l,onChange:u,skipAttributeExpressions:h,translator:p,allowChangeOfAlternatives:k}):void 0;return gT.createElement(gT.Fragment,{key:t.cId},gT.createElement(NY,{chartId:null!==(i=null==l?void 0:l.id)&&void 0!==i?i:"",showGroupDimOptions:b,popover:q,titleData:y,model:l,translator:p,selections:f,disabled:n(),style:this.style,isDimension:a,padding:c,minWidth:s,hasAlternative:C,supportConditional:m}),!v&&gT.createElement("span",{style:{lineHeight:"normal",...this.style}},", "))}));return gT.createElement("div",{style:v,dir:y},E)}}}NY.propTypes={chartId:HT.string.isRequired,disabled:HT.bool.isRequired,padding:HT.string,minWidth:HT.string,titleData:HT.shape({breadcrumbs:HT.arrayOf(HT.string).isRequired,icon:HT.shape({path:HT.shape({d:HT.string.isRequired}),tooltip:HT.string.isRequired,onClick:HT.func}),index:HT.number.isRequired,locked:HT.bool.isRequired,text:HT.string.isRequired,popoverText:HT.string.isRequired,drillUp:HT.func,id:HT.string.isRequired}).isRequired,popover:HT.shape({dir:HT.string.isRequired,dock:HT.string.isRequired,getPopoverOptions:HT.func.isRequired}),translator:HT.shape({get:HT.func.isRequired}).isRequired,selections:HT.shape({isActive:HT.func,addListener:HT.func,removeListener:HT.func}),style:HT.shape({fontSize:HT.string,color:HT.string,fontFamily:HT.string}).isRequired,isDimension:HT.bool.isRequired,hasAlternative:HT.bool.isRequired,supportConditional:HT.bool.isRequired,showGroupDimOptions:HT.bool.isRequired},NY.defaultProps={popover:null,selections:null,padding:"",minWidth:""};const _Y=IN({palette:{text:{primary:"rgba(89, 89, 89, 0.8)",secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)"},action:{disabled:"rgba(0, 0, 0, 0.3)"}},typography:{fontFamily:'"Source Sans Pro", "Arial", "sans-serif"',button:{textTransform:"initial",fontWeight:400}},shape:{borderRadius:2},shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],props:{MuiButtonBase:{disableRipple:!0}}});const LY=zN({productionPrefix:"q6e20",disableGlobal:!0,seed:""});function IY(){function e({x:e,y:t,width:n,height:r,scaleRatio:i,margin:o}={}){const a={x:0,y:0,width:0,height:0,scaleRatio:{x:1,y:1},margin:{left:0,top:0}};return a.x=Number.isNaN(e)?a.x:e,a.y=Number.isNaN(t)?a.y:t,a.width=Number.isNaN(n)?a.width:n,a.height=Number.isNaN(r)?a.height:r,void 0!==i&&(a.scaleRatio.x=Number.isNaN(i.x)?a.scaleRatio.x:i.x,a.scaleRatio.y=Number.isNaN(i.y)?a.scaleRatio.y:i.y),void 0!==o&&(a.margin.left=Number.isNaN(o.left)?0:o.left,a.margin.top=Number.isNaN(o.top)?0:o.top),a}return function(t={}){const{createElement:n=document.createElement.bind(document)}=t;let r,i=e();const o={element:()=>r,root:()=>r,appendTo:e=>(r||(r=n("div"),r.style.position="absolute",r.style["-webkit-font-smoothing"]="antialiased",r.style["-moz-osx-font-smoothing"]="antialiased",r.style.pointerEvents="none"),e.appendChild(r),r),render(e){if(!r)return!1;const t=i.scaleRatio.x,n=i.scaleRatio.y;return r.style.left=`${Math.round(i.margin.left+i.x*t)}px`,r.style.top=`${Math.round(i.margin.top+i.y*n)}px`,r.style.width=`${Math.round(i.width)}px`,r.style.height=`${Math.round(i.height)}px`,r.style.transform=`scale(${t}, ${n})`,r.style.transformOrigin="top left",KU.render(function(e,t){return gT.createElement(P_,{generateClassName:t},gT.createElement(DL,{theme:_Y},e))}(e,LY),r),!0},itemsAt:()=>[],findShapes:()=>[],clear:()=>(r&&KU.unmountComponentAtNode(r),o),destroy(){r&&r.parentElement&&(KU.unmountComponentAtNode(r),r.parentElement.removeChild(r)),r=null},size:t=>(t&&(i=e(t)),i)};return o}}var RY={MAX_NUM_POINTS:5e4,DEFAULT_NUM_POINTS:2e3,DEFAULT_NUM_LINES:12};const{DEFAULT_NUM_POINTS:PY}=RY;function zY({layoutService:e,largeDataService:t}){const{maxNumPoints:n=PY}=(null==t?void 0:t.meta)||{},{qHyperCube:r}=e.getLayout();return r.qSize.qcy*r.qMeasureInfo.length>n}const{DEFAULT_NUM_LINES:FY}=RY,jY=({layoutService:e,largeDataService:t})=>{const{maxNumLines:n=FY}=(null==t?void 0:t.meta)||{},{qHyperCube:r}=e.getLayout();return r.qDimensionInfo.length>1&&!zY({layoutService:e,largeDataService:t})?e.meta.size.dimensions[1]+1:n},{DEFAULT_NUM_POINTS:BY}=RY,{MAX_NUM_POINTS:HY,DEFAULT_NUM_POINTS:VY,DEFAULT_NUM_LINES:$Y}=RY,{DEFAULT_NUM_POINTS:UY}=RY,WY=({layoutService:e,largeDataService:t})=>{if(!zY({layoutService:e,largeDataService:t})){const{maxNumPoints:e=UY}=(null==t?void 0:t.meta)||{};return e}const{dimensionCount:n}=e.meta;return n>1?(({layoutService:e,largeDataService:t})=>{var n;const{dimensions:r=[]}=(null==e||null===(n=e.meta)||void 0===n?void 0:n.size)||{},{maxNumLines:i=$Y,maxNumPoints:o=VY,hasInjectedData:a=!1}=(null==t?void 0:t.meta)||{};if(jY({layoutService:e,largeDataService:t})*r[0]<=o)return r[0];const s=Math.max(1,Math.min(i,r[1])),l=o/s,u=Math.floor(r[0]<=l?l:l/4),c=2*s*(s+1);return a&&(s>$Y||o>VY)?Math.min(u,Math.ceil(HY/c)):u})({layoutService:e,largeDataService:t}):(({layoutService:e,largeDataService:t})=>{const{maxNumPoints:n=BY}=(null==t?void 0:t.meta)||{},{measureCount:r=1}=(null==e?void 0:e.meta)||{},i=4+2*(r-1);return Math.floor(n/(r*i))})({layoutService:e,largeDataService:t})},YY=({start:e,end:t,model:n,layoutService:r,largeDataService:i,definitionPath:o})=>{const a={qStart:e,qEnd:t,qNbrPoints:WY({layoutService:r,largeDataService:i}),qMaxNbrTicks:300,qMaxNumberLines:jY({layoutService:r,largeDataService:i})};return n.getHyperCubeContinuousData(o,a,!1)};function KY({model:e,layoutService:t,largeDataService:n,definitionPath:r="/qHyperCubeDef"}){return{shouldFetchReduced:()=>zY({layoutService:t,largeDataService:n}),computeNbrOfBins:()=>WY({layoutService:t,largeDataService:n}),computeMaxNumberLines:()=>jY({layoutService:t,largeDataService:n}),fetch:(i,o)=>YY({start:i,end:o,model:e,layoutService:t,largeDataService:n,definitionPath:r})}}function GY(e={}){const{cache:t={}}=e;return{fetch:()=>Promise.resolve(t.merged)}}function XY({layoutService:e,viewCache:t}){return{fetch:()=>{const{qAxisData:t,qDataPages:n}=e.getHyperCube();return Promise.resolve({qAxisData:t,qDataPages:n})},getSnapshotData(){const n=e.getLayoutValue("snapshotData.content.chartData",{});return"zoom"in n&&"min"in n.zoom&&"max"in n.zoom?function({zoom:e}){return{zoom:e}}(n):function({scrollOffset:e=0,viewRange:t=0},n){let r=n+e,i=r+t;return 1===t&&0===e&&(r=n-.5,i=n+.5),{zoom:{min:r,max:i}}}(n,t.get("continuousMin"))}}}function JY(){const e=()=>{},t=[],n={};return e.set=(e,r)=>{const i=t.indexOf(e);i>-1&&t.splice(i,1),t.push(e),n[e]=r},e.forEach=e=>{t.forEach(((t,r)=>e(n[t],r)))},e.has=e=>e in n,e}function QY(e,t,n){return n[0]&&n[0][1]&&n[0][1].qElemNumber>-1?function({start:e,end:t,matrix:n}){const r=[],i=JY(),o=JY();for(let a=0;a<n.length;a++){const s=n[a],l=s[1].qElemNumber.toString();s[0].qNum<e?i.set(l,s):s[0].qNum>t&&(o.has(l)||o.set(l,s)),s[0].qNum>=e&&s[0].qNum<=t&&r.push(s)}return i.forEach(((e,t)=>r.splice(t,0,e))),o.forEach((e=>r.push(e))),r}({start:e,end:t,matrix:n}):function({start:e,end:t,matrix:n}){const r=[];let i,o;for(let a=0;a<n.length;a++){const s=n[a];s[0].qNum<e?i=s:s[0].qNum>t&&(o||(o=s)),s[0].qNum>=e&&s[0].qNum<=t&&r.push(s)}return i&&r.unshift(i),o&&r.push(o),r}({start:e,end:t,matrix:n})}function ZY(e,t){return{...e,qWidth:t[0]?t[0].length:0,qHeight:t.length}}function eK(e,t,n){const r={qDataPages:(n.qDataPages||[]).map((n=>{const r=QY(e,t,n.qMatrix),i=ZY(n.qArea,r);return{...n,qArea:i,qMatrix:r}}))};return n.qAxisData&&n.qAxisData.qAxis&&(r.qAxisData=function(e,t,n){return{qAxis:n.qAxis.map((n=>({qName:n.qName,qTags:n.qTags,qTicks:n.qTicks.reduce(((n,r)=>((r.qStart>=e&&r.qStart<=t||r.qEnd>=e&&r.qEnd<=t||r.qStart<e&&r.qEnd>t)&&n.push(r),n)),[])})))}}(e,t,n.qAxisData)),r}const tK=2**.5,nK=1/tK,rK=1e-6,iK=nK**44;function oK(e){return e.qIsOtherCell}function aK({qDataPages:e=[]}={},t={}){const n=e.length?e[0].qMatrix:[];return t.isStackedByDimension?function(e){const t={};return e.forEach((e=>{if(!e.some(oK)){const n=e[0].qElemNumber;t[n]=void 0}})),Object.keys(t).length}(n):function(e){let t=0;return e.forEach((e=>{e.some(oK)||t++})),t}(n)}const sK={query:{getShouldProcess:()=>!1},command:{processDataPage:()=>{}}};var lK={created(){this.state={}},beforeUpdate(){this.state={}},beforeRender({size:e}){this.state.ticks=this.scale.ticks({distance:e.width}).filter((e=>!e.isMinor)),"linear"===this.scale.type&&function(e,t){const[,n]=e.domain();for(let e=0;e<t.length;e++){const r=t[e],i=t[e+1];r.data={},i||1===r.end?i?(r.data.start=r.value,r.data.end=i.value,r.end=i.position):(r.data.start=r.value,r.data.end=r.value):(r.data.start=r.value,r.data.end=n,r.end=1)}}(this.scale,this.state.ticks)},render(){const e=this.scale.data().fields.length?this.scale.data().fields[0].id():"",{ticks:t}=this.state,n=t.map((t=>({type:"rect",fill:"none",data:{source:{field:e},value:[t.data.start,t.data.end]},x:t.start*this.rect.width,y:0,width:(t.end-t.start)*this.rect.width,height:this.rect.height})));if(t.length&&t[0].start>0){const r=t[0];n.unshift({type:"rect",fill:"none",data:{source:{field:e},value:[this.scale.domain()[0],r.data.start]},x:0,y:0,width:r.start*this.rect.width,height:this.rect.height})}return n}};const uK="…";function cK(e,t=1){if(t%2==0)return e;let n=Math.round(e);return e-n>0?n+=.5:n-=.5,n}function dK(e,t){const{localProps:{size:n},props:{anchor:r}}=t,i=function({props:e,localProps:{size:t},style:n,renderer:r}){const i=e.label.padding,o=Math.max(0,Math.min(e.label.justify,1)),a=Math.max(0,Math.min(e.label.align,1)),s=e=>r.measureText({text:e,fontSize:n.label.fontSize,fontFamily:n.label.fontFamily});return{resolve:(e,r)=>{const l="string"==typeof e.label?e.label:"",u=s(l);let{x:c,width:d}=r;e.start===e.end&&(d=u.width+2*i,1===e.end&&(c-=d));const f={x:c+i,y:i,width:d-2*i,height:t.height-2*i},h=s(`${l[0]}${uK}`).width,p=Math.max(0,f.width-u.width),m=Math.max(0,f.height-u.height),g=o*p,y=a*m;return{show:f.width>=Math.min(h,u.width),text:l,dx:g,dy:y,rect:f,style:n.label,segment:{x:c+g,width:u.width+2*i},tickValue:e.value}}}}(t),o=function({localProps:{size:e},style:t,scale:n,props:r}){const[i,o]=n.domain(),a=Math.max(0,Math.min(1,r.guideLine.major.justify));return{resolve:(n,r)=>{const s=a*r.width,l=cK(r.x+s,t.majorGuideLine.strokeWidth);return{show:n.value>=i&&n.value<=o,x1:l,y1:0,x2:l,y2:cK(e.height,t.majorGuideLine.strokeWidth),style:t.majorGuideLine,tickValue:n.value}}}}(t),a=e.map((e=>{const t=function(e,t,n){const r=Math.abs(Math.max(e.start,0)-Math.min(e.end,1))*t.width;return{x:Math.max(e[n],0)*t.width,y:0,width:r,height:t.height}}(e,n,r);return{rect:t,label:i.resolve(e,t),guideLine:o.resolve(e,t)}}));return function(e,t){const n=e.length;if(n<2)return;const r=e[n-1],i=t[n-1].label;if(r&&r.start===r.end)for(let e=n-2;e>-1;e--){const n=t[e].label;n.show=n.show&&(o=n.segment,a=i.segment,!(o.x<a.x?o.x+o.width>=a.x:a.x+a.width>=o.x))}var o,a}(e,a),a}function fK(e,t){const n=function({localProps:{size:e},props:t,style:n}){return{resolve:r=>{const i=Math.max(e.height-t.guideLine.minor.size,0)*Math.max(0,Math.min(t.guideLine.minor.align,1)),o=cK(r.position*e.width,n.minorGuideLine.strokeWidth);return{guideLine:{show:!0,x1:o,y1:cK(i,n.minorGuideLine.strokeWidth),x2:o,y2:cK(t.guideLine.minor.size+i,n.minorGuideLine.strokeWidth),style:n.minorGuideLine}}}}}(t);return t.props.guideLine.minor.show?e.map(n.resolve):[]}function hK(e){return e.filter((e=>e.show)).map((e=>Cg({strokeWidth:1},e.style,{type:"line",x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,tickValue:e.tickValue})))}var pK={require:["renderer"],defaultSettings:{layout:{displayOrder:0,prioOrder:0},settings:{anchor:"start",label:{show:!0,padding:4,align:0,justify:0},line:{show:!0},guideLine:{major:{justify:0},minor:{show:!0,size:4,align:0}}},style:{label:"$label",line:"$guide-line",majorGuideLine:"$guide-line",minorGuideLine:"$guide-line"}},preferredSize:()=>({size:30,edgeBleed:{left:1,right:1}}),init(){this.props=this.settings.settings,this.localProps={},this.state={major:[],minor:[]}},created(){this.init()},beforeUpdate(){this.init()},beforeRender({size:e}){this.localProps.size=e;const t=this.scale.ticks({distance:e.width}),n=t.filter((e=>!e.isMinor)),r=t.filter((e=>e.isMinor));this.state.line=function({localProps:{size:e},style:t,props:n}){const r=cK(1,t.line.strokeWidth);return{show:n.line.show,x1:cK(0,t.line.strokeWidth),y1:r,x2:cK(e.width,t.line.strokeWidth),y2:r,style:t.line}}(this),this.state.major=dK(n,this),this.state.minor=fK(r,this)},render(){return[...hK([this.state.line]),...(e=this.state.major.map((e=>e.label)),e.filter((e=>e.show)).map((e=>Cg({},e.style,{type:"text",x:e.rect.x,y:e.rect.y,dx:e.dx,dy:e.dy,maxWidth:e.rect.width,text:e.text,title:e.text,baseline:"text-before-edge",tickValue:e.tickValue})))),...hK(this.state.major.map((e=>e.guideLine))),...hK(this.state.minor.map((e=>e.guideLine)))];var e}};function mK(e,t){return e&&t&&e.qTicks.length===t.qTicks.length&&e.qTicks.every(((e,n)=>e.qStart===t.qTicks[n].qStart&&e.qEnd===t.qTicks[n].qEnd))}function gK(e){return e.qTags.indexOf("$qualified")>-1}function yK({qAxis:e}){const t=[],n=[];for(let r=0;r<e.length;r++){const i=r+1,o=e[r],a=e[i];mK(o,a)?(gK(a)?(t.push(i),n.push(r)):(t.push(r),n.push(i)),r++):(t.push(r),n.push(r))}return{qualified:t,nonQualified:n}}function vK({qualifiedMeta:e,nonQualifiedMeta:t}){return{resolve(n){let r,i=NaN,o=NaN,a=NaN,s=!1;for(let l=e.length-1;l>=0;l--){const u=e[l];if(u.queries.outer(n)){const e=t[l+1];if(i=u.index,r=l,u.attrs.isDayOrShorter()&&u.queries.canFitHalfDayTicks(n)){o="auto",s=!0;break}if(e&&e.queries.inner(n)){o=e.index;const r=t[l+2];r&&r.queries.minor(n)&&(a=r.index);break}}}if(!Number.isNaN(i)&&Number.isNaN(o)&&"auto"!==o){o=i,i=NaN;const e=t[r+1];e&&e.queries.minor(n)&&(a=e.index)}else Number.isNaN(i)&&(i="auto",o="auto");return{outer:i,inner:o,minor:a,isDayOrShorter:s}}}}const bK=16;function xK({qTicks:e,measureText:t=(()=>({width:0})),cache:n={},scale:r}){const i=n;return{isDayOrShorter:()=>(i.isDayOrShorter=e.length>0&&Math.abs(e[0].qStart-e[0].qEnd)<=1,i.isDayOrShorter),count:()=>e.length,maxRange:()=>(i.maxRange=e.length?Math.max(...e.map((e=>Math.abs(r(e.qStart)-r(e.qEnd))))):0,i.maxRange),rangeAndWidth(){const n=r.clamp();return r.clamp(!1),i.rangeAndWidth=e.map((e=>({range:Math.abs(r(e.qStart)-r(e.qEnd)),width:t(`${e.qText}`).width+bK}))),r.clamp(n),i.rangeAndWidth}}}const wK=6;function SK({attrs:e,reqAutoFitWidth:t}){return{outer:t=>!e.rangeAndWidth().some((({width:e,range:n})=>e>n*t)),inner:t=>!e.rangeAndWidth().some((({width:e,range:n})=>e>n*t)),minor:t=>e.maxRange()*t>=wK,canFitHalfDayTicks:n=>n>=t*e.count()}}function MK({qualified:e,nonQualified:t,qAxis:n,measureText:r,reqAutoFitWidth:i,scale:o},{attributesFactory:a=xK,queryFactory:s=SK}={attributesFactory:xK,queryFactory:SK}){const l=n.map(((e,t)=>function(e,t){const{qTicks:n}=e,l=a({qTicks:n,measureText:r,scale:o});return{data:e,index:t,attrs:l,queries:s({attrs:l,reqAutoFitWidth:i})}}(e,t))),u=e.map((e=>l[e])),c=t.map((e=>l[e]));return{qAxisMeta:l,qualifiedMeta:u,nonQualifiedMeta:c}}function kK({qAxis:e=[],measureText:t=(()=>({width:0})),cache:n={},reqAutoFitWidth:r=0,scale:i},{metaFactory:o=MK,mapper:a=yK,resolver:s=vK}={metaFactory:MK,mapper:yK,resolver:vK}){const{qualified:l,nonQualified:u}=a({qAxis:e}),{qualifiedMeta:c,nonQualifiedMeta:d}=o({qAxis:e,qualified:l,nonQualified:u,measureText:t,reqAutoFitWidth:r,scale:i}),f=s({qualifiedMeta:c,nonQualifiedMeta:d});return{resolve:t=>{const r=n.key({distance:t});if(n.get(r))return n.get(r);if(function(e){return!Array.isArray(e)||0===e.length||e.every((e=>0===e.qTicks.length))}(e))return{outer:"auto",inner:"auto",minor:NaN,isDayOrShorter:!1};const i=f.resolve(t);return n.set(r,i),i}}}const CK=86400,qK=864e5;function EK(e){return new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,0,Math.round(qK*(e-Math.floor(e)))))}const DK=EK(0).getTime();function TK(e){return(e.getTime()-DK)/CK/1e3}const NK=new Date,OK=new Date;function AK(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{const t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),i.range=(n,r,o)=>{const a=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return a;let s;do{a.push(s=new Date(+n)),t(n,o),e(n)}while(s<n&&n<r);return a},i.filter=n=>AK((t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),((e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})),n&&(i.count=(t,r)=>(NK.setTime(+t),OK.setTime(+r),e(NK),e(OK),Math.floor(n(NK,OK))),i.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?t=>r(t)%e==0:t=>i.count(0,t)%e==0):i:null)),i}const _K=1e3,LK=6e4,IK=36e5,RK=864e5,PK=6048e5,zK=AK((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*_K)}),((e,t)=>(t-e)/_K),(e=>e.getUTCSeconds()));zK.range;const FK=AK((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*_K)}),((e,t)=>{e.setTime(+e+t*LK)}),((e,t)=>(t-e)/LK),(e=>e.getMinutes()));FK.range;const jK=AK((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*LK)}),((e,t)=>(t-e)/LK),(e=>e.getUTCMinutes()));jK.range;const BK=AK((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*_K-e.getMinutes()*LK)}),((e,t)=>{e.setTime(+e+t*IK)}),((e,t)=>(t-e)/IK),(e=>e.getHours()));BK.range;const HK=AK((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*IK)}),((e,t)=>(t-e)/IK),(e=>e.getUTCHours()));HK.range;const VK=AK((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*LK)/RK),(e=>e.getDate()-1));VK.range;const $K=AK((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/RK),(e=>e.getUTCDate()-1));$K.range;const UK=AK((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/RK),(e=>Math.floor(e/RK)));function WK(e){return AK((t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),((e,t)=>{e.setDate(e.getDate()+7*t)}),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*LK)/PK))}UK.range;const YK=WK(0),KK=WK(1),GK=WK(2),XK=WK(3),JK=WK(4),QK=WK(5),ZK=WK(6);function eG(e){return AK((t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)}),((e,t)=>(t-e)/PK))}YK.range,KK.range,GK.range,XK.range,JK.range,QK.range,ZK.range;const tG=eG(0),nG=eG(1),rG=eG(2),iG=eG(3),oG=eG(4),aG=eG(5),sG=eG(6);tG.range,nG.range,rG.range,iG.range,oG.range,aG.range,sG.range;const lG=AK((e=>{e.setDate(1),e.setHours(0,0,0,0)}),((e,t)=>{e.setMonth(e.getMonth()+t)}),((e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())),(e=>e.getMonth()));lG.range;const uG=AK((e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)}),((e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())),(e=>e.getUTCMonth()));uG.range;const cG=AK((e=>{e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,t)=>{e.setFullYear(e.getFullYear()+t)}),((e,t)=>t.getFullYear()-e.getFullYear()),(e=>e.getFullYear()));cG.every=e=>isFinite(e=Math.floor(e))&&e>0?AK((t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,n)=>{t.setFullYear(t.getFullYear()+n*e)})):null,cG.range;const dG=AK((e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)}),((e,t)=>t.getUTCFullYear()-e.getUTCFullYear()),(e=>e.getUTCFullYear()));dG.every=e=>isFinite(e=Math.floor(e))&&e>0?AK((t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null,dG.range;const fG={second:1,minute:2,hour:3,day:4,month:5,year:6};function hG({timeScale:e,labels:t,distance:n,isDayOrShorter:r,cache:i,timeOnly:o,initialMin:a}){const[s,l]=e.domain(),u=i.key({distance:n});let c;i.get(u,1)?c=i.get(u,1):(c=function(e,t,n,r,i,o){function a(e){return dG.filter((t=>(t.getUTCFullYear()-o.getUTCFullYear())%e==0))}const s=zK.count(e,t),l=jK.count(e,t),u=HK.count(e,t),c=$K.count(e,t),d=tG.count(e,t),f=uG.count(e,t),h=dG.count(e,t),p=n/r.second.width-1,m=n/r.minute.width-1,g=n/r.date.width-1,y=n/r.year.width-1,v={type:"year",desc:"year",count:h,interval:dG.every(1),formatter:r.year.formatter,offset:e=>dG.offset(e,-1),floor:dG.floor};if(s<=p)v.type=fG.second,v.desc="second",v.count=s,v.interval=zK.every(1),v.formatter=r.second.formatter,v.offset=e=>zK.offset(e,-1),v.floor=zK.floor;else if(s/2<=p)v.type=fG.second,v.desc="every other second",v.count=s/2,v.interval=zK.every(2),v.formatter=r.second.formatter,v.offset=e=>zK.offset(e,-2),v.floor=zK.floor;else if(s/5<=p)v.type=fG.second,v.desc="every 5 second",v.count=s/5,v.interval=zK.every(5),v.formatter=r.second.formatter,v.offset=e=>zK.offset(e,-5),v.floor=zK.floor;else if(s/15<=p)v.type=fG.second,v.desc="every 15 second",v.count=s/15,v.interval=zK.every(15),v.formatter=r.second.formatter,v.offset=e=>zK.offset(e,-15),v.floor=zK.floor;else if(s/30<=p)v.type=fG.second,v.desc="every 30 second",v.count=s/30,v.interval=zK.every(30),v.formatter=r.second.formatter,v.offset=e=>zK.offset(e,-30),v.floor=zK.floor;else if(l<=m)v.type=fG.minute,v.desc="minute",v.count=l,v.interval=jK.every(1),v.formatter=r.minute.formatter,v.offset=e=>jK.offset(e,-1),v.floor=jK.floor;else if(l/2<=m)v.type=fG.minute,v.desc="every 2 minute",v.count=l/2,v.interval=jK.every(2),v.formatter=r.minute.formatter,v.offset=e=>jK.offset(e,-2),v.floor=jK.floor;else if(l/5<=m)v.type=fG.minute,v.desc="every 5 minute",v.count=l/5,v.interval=jK.every(5),v.formatter=r.minute.formatter,v.offset=e=>jK.offset(e,-5),v.floor=jK.floor;else if(l/10<=m)v.type=fG.minute,v.desc="every 10 minute",v.count=l/10,v.interval=jK.every(10),v.formatter=r.minute.formatter,v.offset=e=>jK.offset(e,-10),v.floor=jK.floor;else if(l/15<=m)v.type=fG.minute,v.desc="every 15 minute",v.count=l/15,v.interval=jK.every(15),v.formatter=r.minute.formatter,v.offset=e=>jK.offset(e,-15),v.floor=jK.floor;else if(l/30<=m)v.type=fG.minute,v.desc="every 30 minute",v.count=l/30,v.interval=jK.every(30),v.formatter=r.minute.formatter,v.offset=e=>jK.offset(e,-30),v.floor=jK.floor;else if(u<=m)v.type=fG.hour,v.desc="hour",v.count=u,v.interval=HK.every(1),v.formatter=r.minute.formatter,v.offset=e=>HK.offset(e,-1),v.floor=HK.floor;else if(u/2<=m)v.type=fG.hour,v.desc="every 2 hour",v.count=u/2,v.interval=HK.every(2),v.formatter=r.minute.formatter,v.offset=e=>HK.offset(e,-2),v.floor=HK.floor;else if(u/3<=m)v.type=fG.hour,v.desc="every 3 hour",v.count=u/3,v.interval=HK.every(3),v.formatter=r.minute.formatter,v.offset=e=>HK.offset(e,-3),v.floor=HK.floor;else if(u/6<=m)v.type=fG.hour,v.desc="every 6 hour",v.count=u/6,v.interval=HK.every(6),v.formatter=r.minute.formatter,v.offset=e=>HK.offset(e,-6),v.floor=HK.floor;else if(u/12<=m||i)v.type=fG.hour,v.desc="every 12 hour",v.count=u/12,v.interval=HK.every(12),v.formatter=r.minute.formatter,v.offset=e=>HK.offset(e,-12),v.floor=HK.floor;else if(c<=g)v.type=fG.day,v.desc="day",v.count=c,v.interval=$K.every(1),v.formatter=r.date.formatter,v.offset=e=>$K.offset(e,-1),v.floor=$K.floor;else if(c/2<=g)v.type=fG.day,v.desc="every 2 day",v.count=c/2,v.interval=$K.every(2),v.formatter=r.date.formatter,v.offset=e=>$K.offset(e,-2),v.floor=$K.floor;else if(c/3<=g)v.type=fG.day,v.desc="every 3 day",v.count=c/3,v.interval=$K.every(3),v.formatter=r.date.formatter,v.offset=e=>$K.offset(e,-3),v.floor=$K.floor;else if(d<=g)v.type=fG.day,v.desc="week",v.count=d,v.interval=tG.every(1),v.formatter=r.date.formatter,v.offset=e=>tG.offset(e,-1),v.floor=$K.floor;else if(d/2<=g)v.type=fG.day,v.desc="every 2 week",v.count=d/2,v.interval=tG.every(2),v.formatter=r.date.formatter,v.offset=e=>tG.offset(e,-2),v.floor=$K.floor;else if(f<=g)v.type=fG.month,v.desc="month",v.count=f,v.interval=uG.every(1),v.formatter=r.date.formatter,v.offset=e=>uG.offset(e,-1),v.floor=$K.floor;else if(f/3<=g)v.type=fG.month,v.desc="quarter",v.count=f/3,v.interval=uG.every(3),v.formatter=r.date.formatter,v.offset=e=>uG.offset(e,-3),v.floor=$K.floor;else if(f/6<=g)v.type=fG.month,v.desc="half year",v.count=f/6,v.interval=uG.every(6),v.formatter=r.date.formatter,v.offset=e=>uG.offset(e,-6),v.floor=$K.floor;else if(h<=y)v.type=fG.year,v.desc="year",v.count=h,v.interval=dG.every(1),v.formatter=r.year.formatter,v.offset=e=>dG.offset(e,-1),v.floor=dG.floor;else if(h/2<=y)v.type=fG.year,v.desc="every 2 year",v.count=h/2,v.interval=a(2),v.formatter=r.year.formatter,v.offset=e=>dG.offset(e,-2),v.floor=dG.floor;else if(h/5<=y)v.type=fG.year,v.desc="every 5 year",v.count=h/5,v.interval=a(5),v.formatter=r.year.formatter,v.offset=e=>dG.offset(e,-5),v.floor=dG.floor;else if(h/10<=y)v.type=fG.year,v.desc="every 10 year",v.count=h/10,v.interval=a(10),v.formatter=r.year.formatter,v.offset=e=>dG.offset(e,-10),v.floor=dG.floor;else{const e=Math.max(1,Math.floor(h/y));v.type=fG.year,v.desc="every nth year",v.count=e,v.interval=a(e),v.formatter=r.year.formatter,v.offset=t=>dG.offset(t,-e),v.floor=dG.floor}return v}(s,l,n,t.all(),r,a),i.set(u,c,1));const d=e.ticks(c.interval);d.length?s.getTime()!==d[0].getTime()&&d.unshift(c.offset(d[0])):d.push(c.floor(s));const f=d.map(((e,t,n)=>{const r=n[t+1]?n[t+1]-e:l-e;return{start:e,end:new Date(e.getTime()+r),formatter:c.formatter}}));let h=[];if(!o&&c.type<=fG.hour){const n=t.getFormat("date"),r=e.ticks($K.every(1));r.length&&s.getUTCDate()!==r[0].getUTCDate()&&r.unshift($K.offset(r[0],-1)),h=(r.length?r:[$K.floor(s)]).map(((e,t,r)=>{const i=r[t+1]?r[t+1]-e:l-e;return{start:e,end:new Date(e.getTime()+i),formatter:n.formatter}}))}return{inner:f,outer:h}}const pG=86400,mG=1440,gG={};function yG(e,t,n,r){return{type:e,start:new Date(Date.UTC(...t)),end:new Date(Date.UTC(...n)),formatter:r}}function vG(e,t,n){const{generator:r,anchor:i,clamp:o,level:a}=t.ticks,{qNumFormat:s}=t.formatter;e.clamp(o);const[l,u]=e.domain(),c=cS().domain([EK(l),EK(u)]);c.clamp(o),c.range(t.invert?[1,0]:[0,1]);const d="object"==typeof r?r:{type:r};let f;f="d3"===d.type?(e,i)=>hG({timeScale:c,labels:n,distance:e,isDayOrShorter:i,cache:t.cache,timeOnly:"T"===s.qType,initialMin:void 0===d.initialMin?c.domain()[0]:EK(r.initialMin)}):e=>function(e,t,n,r,i,o=!1){if(gG[[t,n,r,r,o]])return gG[[t,n,r,r,o]];const a={year:e.getFormat("year"),date:e.getFormat("date"),minute:e.getFormat("minute"),second:e.getFormat("second")},s=EK(n),l=s.getFullYear(),u=s.getMonth(),c=s.getDate(),d=r-n,f=t/(i-r),h=f/1440,p=f/pG,m=366*f,g=3*f*30,y=a.second.width/p,v=a.minute.width/h,b=a.date.width/g,x=a.year.width/m;let w,S,M,k=0,C=0,q=null,E=null,D=null,T=null,N=null,O=null;const A={outer:[],inner:[]};for(y<1?(q=1,C=1/pG):y<2?(q=2,C=1/pG*2):y<5?(q=5,C=1/pG*5):y<10?(q=10,C=1/pG*10):y<30?(q=30,C=1/pG*30):v<1?(E=1,C=1/mG):v<2?(E=2,C=1/mG*2):v<5?(E=5,C=1/mG*5):v<10?(E=10,C=1/mG*10):v<30?(E=30,C=1/mG*30):v<60?(D=1,C=1/24):v<120?(D=2,C=2/24):v<360?(D=6,C=.25):v<720?(D=12,C=.5):b<1/90?(C=1,T=1):b<2/90?(C=2,T=2):b<7/90?(C=7,T=7):b<31/90?(N=1,C=31):b<1?(N=3,C=90):x<1?(O=1,C=366):x<2?(O=2,C=732):x<5?(O=5,C=1826.25):(O=10,C=3652.5),S=Math.floor((d+n%1)/C);k<i;){M=S+1,w=O?yG("year",[l+S*O,0,1],[l+M*O,0,1],a.year.formatter):N?yG("month",[l,u+S*N,1],[l,u+M*N,1],a.date.formatter):T?yG("day",[l,u,c+S*T],[l,u,c+M*T],a.date.formatter):D?yG("hour",[l,u,c,0+S*D],[l,u,c,0+M*D],a.minute.formatter):E?yG("minute",[l,u,c,0,0+S*E],[l,u,c,0,0+M*E],a.minute.formatter):yG("second",[l,u,c,0,0,0+S*q],[l,u,c,0,0,0+M*q],a.second.formatter),k=TK(w.start),A.inner.push(w);const e=Math.floor(k);if(!(o||O||N||T)){const t={type:"day",start:EK(e),end:EK(e+1),formatter:a.date.formatter,qStart:e};A.outer[A.outer.length-1]&&A.outer[A.outer.length-1].qStart===t.qStart||A.outer.push(t)}S++}return A.min=r,A.max=i,gG[[t,n,r,r,o]]=A,A}(n,e,d.min,l,u,"T"===s.qType);const h={transform:(t=[],{isMinor:n=!1}={})=>t.map((t=>{let r;r="start"===i?t.qStart:"end"===i?t.qEnd:(t.qStart+t.qEnd)/2;const o=e.clamp();n&&e.clamp(!1);const a=e(r),s=e(t.qStart),l=e(t.qEnd);return e.clamp(o),{value:r,position:a,start:s,end:l,label:t.qText,isMinor:n,data:n?void 0:{start:t.qStart,end:t.qEnd,scaleStart:e.domain()[0]}}})).filter((e=>e.position>=0&&e.position<=1)),generate:(t=100,n)=>f(t,n)[a].map((t=>{let n;return n="start"===i?TK(t.start):"end"===i?TK(t.end):(TK(t.start)+TK(t.end))/2,{position:c(t.start),start:c(t.start),end:c(t.end),value:n,label:t.formatter(n),isMinor:!1,data:{start:TK(t.start),end:TK(t.end),scaleStart:e.domain()[0]}}})).filter((e=>e.position>=0&&e.position<=1))};return h}const bG=41000.2343433,xG=/t+/i,wG=16,SG=60;const MG={min:NaN,max:NaN,invert:!1,qAxis:[],field:void 0,formatter:{fn:()=>e=>e,measureText:()=>({width:0,height:0}),localeInfo:{},qNumFormat:{}},ticks:{generator:"d3",level:"outer",anchor:void 0,clamp:!1},cache:{get:()=>!1,set:()=>{},key:()=>""}};function kG(e,t){e.instance||(e.instance=t.copy(),e.instance.domain(t.domain()),e.instance.clamp(!0),e.instance.range(e.invert?[1,0]:[0,1]))}const CG="continuousPan";var qG={model:function({model:e,layoutService:t,largeDataService:n,dataProcessorModel:r=sK,viewCache:i,viewState:o,definitionPath:a},s={}){const{engineFetcherFactory:l=KY,snapshotFetcherFactory:u=XY,cacheFetcherFactory:c=GY,cache:d={initial:{},merged:{}}}=s,f=l({model:e,layoutService:t,largeDataService:n,definitionPath:a}),h=u({layoutService:t,viewCache:i}),p=c({cache:d}),m=e=>{throw e.isHandled=!0,e};let g,y,v;return{update(e){({initialMin:y,initialMax:v}=function(e={}){let{qMin:t,qMax:n}=e;return t=Number.isNaN(+t)?0:t,n=Number.isNaN(+n)?0:n,{initialMin:t,initialMax:n}}(e.qHyperCube.qDimensionInfo[0])),i.set("continuousMin",y),i.set("continuousMax",v),i.set("minimiumZoomSpan",function(e,t){return Math.max(rK,(t-e)*iK)}(y,v)),g=t.meta.isSnapshot?h:f,t.meta.isSnapshot&&({zoom:{min:y,max:v}}=h.getSnapshotData()),o.preventSet("zoom",{min:y,max:v})},updateLayout(e){const{qDataPages:n,qAxisData:r}=e;return t.setHyperCubeValue("qDataPages",n),t.setHyperCubeValue("qAxisData",r),t.setHyperCubeValue("qMode","S"),t.setHyperCubeValue("qColumnOrder",[]),e},initialFetch(){return g.fetch(y,v).then((e=>{const t=function(e){return{qDataPages:e.qDataPages.map((e=>{const t=ZY(e.qArea,e.qMatrix);return{...e,qArea:t}})),qAxisData:e.qAxisData}}(e);return r.command.processDataPage({dataPage:t.qDataPages.length?t.qDataPages[0]:[]}),d.initial=t,d.merged=t,e})).then((e=>eK(y,v,e))).then((e=>this.updateLayout(e))).catch(m)},fetch:(e,t)=>g.fetch(e,t).then((e=>function(e,t){const n={};return n.qDataPages=(e.qDataPages||[]).map(((e,n)=>{const r=function(e,t){if(!t||!t.length||!t[0].length)return e;const n=t[0][0].qNum,r=t[t.length-1][0].qNum,i=[],o=[];for(let t=0,a=e.length;t<a;t++){const a=e[t][0];a.qNum<n?i.push(e[t]):a.qNum>r&&o.push(e[t])}return[...i,...t,...o]}(e.qMatrix,t.qDataPages[n].qMatrix),i=ZY(e.qArea,r);return{...e,qArea:i,qMatrix:r}})),e.qAxisData&&e.qAxisData.qAxis&&(n.qAxisData=function(e,t){if(!t||!t.qAxis.length||t.qAxis.every((e=>!e.qTicks.length)))return e;const n=t.qAxis.map((e=>e.qName)),r=t.qAxis.map((e=>({start:e.qTicks[0].qStart,end:e.qTicks[e.qTicks.length-1].qStart}))),i=t.qAxis.map((e=>({qName:e.qName,qTags:[...e.qTags],qTicks:[...e.qTicks]})));for(let t=0,o=e.qAxis.length;t<o;t++){const o=e.qAxis[t],a=n.indexOf(o.qName),s=[],l=[];if(a>-1){const{start:e,end:t}=r[a];for(let n=0,r=o.qTicks.length;n<r;n++){const r=o.qTicks[n];r.qStart<e?s.push(r):r.qStart>t&&l.push(r)}i[a].qTicks=[...s,...i[a].qTicks,...l]}}return{qAxis:i}}(e.qAxisData,t.qAxisData)),n}(d.initial,e))).then((e=>(r.command.processDataPage({dataPage:e.qDataPages.length?e.qDataPages[0]:[]}),d.merged=e,e))).then((n=>eK(e,t,n))).catch(m),fetchFromCache:(e,t)=>p.fetch(e,t).then((n=>eK(e,t,n))),fetchMinMaxData:()=>Promise.resolve(d.initial.qDataPages||[]),getInitialCube(){const e=t.getHyperCube();return Cg({},e,{...d.initial})},getInitialLayout(){const e=this.getInitialCube();return Cg({},t.getLayout(),{qHyperCube:e})},getDimensionCardinality:()=>aK(d.initial,t.meta),setSnapshotData(e){const{qHyperCube:t}=e,n=r.query.getShouldProcess()?[r.query.getFilteredDataPage({dataPage:d.merged.qDataPages[0]})]:d.merged.qDataPages;t.qDataPages=n,t.qAxisData=d.merged.qAxisData}}},event:{onZoomChange:function(e,t){const{layoutService:n,continuousDataModel:r}=e;function i(e,n,i){return r[e](n,i).then((e=>(r.updateLayout(e),t(),e)))}const o=VC(((e,t)=>i("fetch",e,t)),50);return({min:e,max:t},{min:r,max:a})=>!n.meta.isContinuous||e===r&&t===a?Promise.resolve(null):i("fetchFromCache",e,t).then((n=>(o(e,t),n)))},onZoomIntercept:function({viewCache:e}){let t=NaN,n=NaN,r=NaN;return(i,o)=>(t=e.get("continuousMin"),n=e.get("continuousMax"),r=e.get("minimiumZoomSpan"),Math.abs(i.max-i.min)<r?o:{min:Math.min(i.max,Math.max(t,i.min)),max:Math.max(i.min,Math.min(n,i.max))})},onZoom:function({viewCache:e,viewState:t,chart:n},{threshold:r=50,rtl:i=!1,targetKey:o}){const a=e.get("continuousMin"),s=e.get("continuousMax");return $C(((e,r)=>{const l=(e=>n.componentsFromPoint(e).filter((e=>e.key===o))[0])(e);if(l){const o=function(e,t,n){let{x:r}=e;return r-=t.element.getBoundingClientRect().left,r-=n.rect.x,Math.max(0,Math.min(1,r/n.rect.width))}(e,n,l),u=i?1-o:o,{min:c,max:d}=t.get("zoom"),f=Math.abs(d-c),h=f-(r>0?nK:tK)*f,p=c+h*u,m=d-h*(1-u),g=p<a?a-p:0,y=m>s?m-s:0;t.set("zoom",{min:Math.max(p-y,a),max:Math.min(m+g,s)})}}),r)}},interactions:{areaPan:function({targetKey:e,chart:t,actions:n,viewState:r,viewCache:i}){return{type:"Pan",key:"continuous:pan",options:{event:CG,pointers:1,threshold:10,enable(r,i){return this.started===CG||!i||!!n.scroll.enabled()&&t.componentsFromPoint({x:i.center.x,y:i.center.y}).some((t=>t.key===e))}},events:{[`${CG}start`](n){n.preventDefault(),this.started=CG;const{min:i,max:o}=r.get("zoom");this[CG]={min:i,max:o,size:t.component(e).rect.computedInner.width,span:o-i}},[`${CG}move`](e){e.preventDefault();const{span:t,min:n,max:o,size:a}=this[CG],s=-e.deltaX/a;r.set("zoom",{min:Math.min(n+s*t,i.get("continuousMax")-t),max:Math.max(o+s*t,i.get("continuousMin")+t)})},[`${CG}end`](e){e.preventDefault(),this.started=!1},[`${CG}cancel`](e){e.preventDefault(),this.started=!1}}}}},picassoComponents:{axisOverlay:lK,timeAxis:pK},picassoScales:{time:function e(t,n={}){const r=function(e,t,n){const r={};return Object.keys(t).forEach((i=>{const o=e[i],a=typeof o;"function"===a?r[i]=o(n):"object"!==a||Array.isArray(o)?r[i]="undefined"===a?t[i]:o:r[i]=Cg(!0,{},t[i],o)})),r}(t,MG,n),{qAxis:i}=r,o=ex(),a={instance:null,invert:!1},{min:s,max:l}=function(e,t){let n=+e.min,r=+e.max;return Number.isNaN(n)&&Number.isNaN(r)&&Array.isArray(t)&&t.length&&(n=Math.min(...t[t.length-1].qTicks.map((e=>e.qStart))),r=Math.max(...t[t.length-1].qTicks.map((e=>e.qEnd)))),n===r&&(n-=.5,r+=.5),{min:Number.isNaN(+n)?0:n,max:Number.isNaN(+r)?1:r}}(r,i);let u,c,d=[];const f=function(e){return Number.isNaN(+e)?NaN:o(e)};f.ticks=({distance:e,resolve:t=u.resolve}={})=>{const n=t(e),o=n[r.ticks.level];if(Number.isNaN(+o)||(d=c.transform(i[o].qTicks,{isMinor:!1})),!Number.isNaN(+n.minor)){const e=c.transform(i[n.minor].qTicks,{isMinor:!0});d=d.concat(e)}return"auto"===o&&(d=c.generate(e,n.isDayOrShorter)),d},f.invert=e=>o.invert(e),f.domain=e=>Array.isArray(e)?o.domain(e):o.domain(),f.range=e=>Array.isArray(e)?o.range(e):o.range(),f.norm=e=>(kG(a,f),a.instance(e)),f.normInvert=e=>(kG(a,f),a.instance.invert(e)),f.copy=()=>e(t,n),f.clamp=(e=!0)=>(o.clamp(e),o.clamp()),f.min=()=>Math.min(s,l),f.max=()=>Math.max(s,l),o.range(r.invert?[1,0]:[0,1]),o.domain([s,l]),a.invert=r.invert;const h=function(e){const t={},{measureText:n,fn:r,localeInfo:i}=e.formatter,o={second:{type:"second",pattern:"hh:mm:ss",width:SG,formatter:void 0},minute:{type:"minute",pattern:"hh:mm",width:SG,formatter:void 0},date:{type:"date",pattern:"YYYY-MM-DD",width:SG,formatter:void 0},year:{type:"year",pattern:"YYYY",width:SG,formatter:void 0}};return i&&xG.test(i.qTimestampFmt)&&(o.minute.pattern+=" tt",o.second.pattern+=" tt"),o.date.pattern=i&&i.qDateFmt?i.qDateFmt:o.date.pattern,Object.keys(o).forEach((e=>{o[e].formatter=r(o[e].pattern),o[e].width=Math.max(o[e].width,n(o[e].formatter(bG)).width+wG)})),t.getFormat=e=>o[e],t.all=()=>o,t.getFormatFromTicks=e=>{const t=e.filter((e=>!e.isMinor)),{length:n}=t;if(!n)return o.date;const r=EK(t[0].data.start),i=EK(t[n-1].data.start);return $K.count(r,i)/n>=1?o.date:HK.count(r,i)/n>0?o.minute:jK.count(r,i)/n>0?o.second:o.date},t}(r);return c=vG(o.copy(),r,h),u=kK({qAxis:i,measureText:r.formatter.measureText,reqAutoFitWidth:2*h.getFormat("minute").width,cache:r.cache,scale:f}),f.data=()=>({fields:[{formatter:f.formatter,id:()=>`qHyperCube/${r.field}`,key:()=>r.field,raw:zC(n,"fields.0.raw",(()=>({})))}]}),f.formatter=()=>h.getFormatFromTicks(d).formatter,f}}};const EG={MINI_CHART:{value:"miniChart",translation:"properties.scrollbar.miniChart"},BAR:{value:"bar",translation:"properties.scrollbar.bar"},NONE:{value:"none",translation:"properties.scrollbar.none"}};var DG={OPTIONS:EG,DEFAULT:EG.MINI_CHART};function TG({layoutService:e,discrete:t}){return({h:n,rect:r,orientation:i,minThumbSize:o})=>{const a=t.query.getCurrentDataPage(),s=e.meta.size.y,l="horizontal"===i,u=r[l?"width":"height"];let c=a.qArea.qTop/s*u,d=a.qArea.qHeight/s*u;if(d<o){const e=(o-d)/2;c=c-e+(Math.max(0,0-(c-e))-Math.max(0,c+d+e-u)),d=o}return n("div",{style:{position:"absolute",right:0,bottom:0,background:"red",opacity:.2,...l?{top:0,left:c,width:d}:{top:c,left:0,height:d}}})}}function NG({layoutService:e,viewState:t,viewCache:n}){return e.meta.isContinuous?function(e,t){const n=e.get("zoom"),r=t.get("continuousMin"),i=t.get("continuousMax");return[(n.min-r)/(i-r),(n.max-r)/(i-r)]}(t,n):function(e){return e.get("viewRange")}(t)}const OG=e=>({miniChart:e===DG.OPTIONS.MINI_CHART.value,bar:e===DG.OPTIONS.BAR.value,none:e===DG.OPTIONS.NONE.value}),AG=({layoutService:e})=>{const t=e.getLayoutValue("scrollbar");if(t)return OG(t);const n=e.getLayoutValue("showMiniChartForContinuousAxis");if(void 0===n)return OG(DG.DEFAULT.value);const r=e.getLayoutValue("dimensionAxis.continuousAuto"),i=e.getLayoutValue("preferContinuousAxis");return OG(!n&&(r||!r&&i)?DG.OPTIONS.NONE.value:DG.OPTIONS.MINI_CHART.value)};function _G({layoutService:e,override:t}){const n=AG({layoutService:e});return t&&t.predicate({layoutService:e,scrollbar:n})&&(n.miniChart=t.value===DG.OPTIONS.MINI_CHART.value,n.bar=t.value===DG.OPTIONS.BAR.value,n.none=t.value===DG.OPTIONS.NONE.value),n}function LG({layoutService:e,dockService:t,discrete:n,continuousDataModel:r,viewState:i,viewCache:o,themeService:a,rtl:s,scrollbarOverride:l,visualizeCache:u=!1,deviceType:c}){const d=_G({layoutService:e,override:l});if(d.none)return!1;const{orientation:f}=t.meta.major,h={key:"scrollbar",type:"scrollbar",layout:{dock:"horizontal"===f?t.meta.minor.start:t.meta.minor.end,minimumLayoutMode:"XSMALL"},show:()=>e.meta.isContinuous?r.getDimensionCardinality()>1:n.query.getCanScroll(),settings:{orientation:f,rtl:s,isContinuous:e.meta.isContinuous,range:()=>NG({layoutService:e,viewState:i,viewCache:o})}};d.bar&&(h.settings.style="slim",h.settings.size={area:"touch"===c?{max:16,min:16}:{max:8,min:8}},e.meta.isContinuous||(h.settings.size.thumb={min:4}));const p=a.getStyles();return p.color&&(h.style={standard:{thumb:{"border-color":p.color,opacity:.4},before:{background:p.color,opacity:.1},after:{background:p.color,opacity:.1}}}),e.meta.isDiscrete&&u&&(h.settings.injections=()=>[TG({layoutService:e,discrete:n})]),h}function IG({componentKey:e,chart:t,viewState:n,viewCache:r,layoutService:i,dockService:o,rtl:a}){return s=>{const{x:l,y:u}=s.center,c=t.element.getBoundingClientRect(),d=t.component(e),f="horizontal"===o.meta.major.orientation,h=f?l-c.left-d.rect.computedInner.x:u-c.top-d.rect.computedInner.y,p=f?d.rect.computedInner.width:d.rect.computedInner.height,m=f&&a?p-h:h,g=Math.max(0,Math.min(m/p,1)),[y,v]=NG({layoutService:i,viewState:n,viewCache:r}),b=g<y,x=g>v,w=!b&&!x;return{pixel:m,relative:g,thumb:w?m-y*p:0,beforeThumb:b,afterThumb:x,onThumb:w}}}function RG({componentKey:e,chart:t,viewState:n,viewCache:r,layoutService:i,dockService:o}){return()=>{const a=t.component(e),{orientation:s}=o.meta.major,{width:l,height:u}=a.rect.computedInner,c="horizontal"===s?l:u,[d,f]=NG({layoutService:i,viewState:n,viewCache:r});return{size:c,thumbSize:(f-d)*c}}}function PG({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}){const u=IG({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:l}),c=RG({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a});return{type:"Tap",options:{event:"scrollbarTap",enable:(r,i)=>!i||!!n.scroll.enabled()&&t.componentsFromPoint({x:i.center.x,y:i.center.y}).some((t=>t.key===e))},events:{scrollbarTap(n){n.preventDefault();const a=u(n);if(o.meta.isContinuous){const e=r.get("zoom"),t=e.max-e.min,n=i.get("continuousMin"),o=i.get("continuousMax"),s=n+(o-n)*a.relative;r.set("zoom",{min:Math.min(s-t/2,o-t),max:Math.max(s+t/2,n+t)})}else{const e=c(),t=a.pixel-e.thumbSize/2,n=Math.max(0,t/e.size);s.command.scrollTo(n)}t.component(e).emit("render")}}}}const zG="data-scrollbar-handle";function FG({e:e}){return(e.srcEvent||e).srcElement.getAttribute(zG)||""}const jG="scrollbarResize",BG=e=>{const[t]=e.changedPointers;return t&&("pointerdown"===t.type||"mousedown"===t.type)};function HG({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:s}){const l=IG({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:s});return{type:"Pan",key:`event:${jG}`,options:{event:jG,threshold:0,enable(e,t){return!(!o.meta.isContinuous||!n.scroll.enabled())&&(!t||(this[jG]=this[jG]||{},BG(t)&&FG({e:t})&&(this[jG].panningEvent=t.srcEvent),!!this[jG].panningEvent))}},events:{[`${jG}start`](n){n.preventDefault(),this[jG]=this[jG]||{},this[jG].panningEvent&&t.component(e).emit("dragStart",this[jG].panningEvent)},[`${jG}move`](n){if(n.preventDefault(),this[jG]=this[jG]||{},!this[jG].panningEvent)return;const o=r.get("zoom"),a=i.get("continuousMin"),s=i.get("continuousMax"),u=i.get("minimiumZoomSpan"),c=(s-a)*l(n).relative+a,d=FG({e:this[jG].panningEvent});let f="start"===d?Math.min(c,o.max):o.min,h="end"===d?Math.max(c,o.min):o.max;f===h&&(f-="start"===d?u:0,h+="end"===d?u:0),r.set("zoom",{min:f,max:h}),t.component(e).emit("render")},[`${jG}end`](n){n.preventDefault(),this[jG]=this[jG]||{},delete this[jG].panningEvent,t.component(e).emit("dragEnd")},[`${jG}cancel`](n){n.preventDefault(),this[jG]=this[jG]||{},delete this[jG].panningEvent,t.component(e).emit("dragEnd")}}}}const VG="scrollbarPan";function $G({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}){const u=IG({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:l}),c=RG({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a});return{type:"Pan",key:`event:${VG}`,options:{event:VG,threshold:0,enable(r,i){return this[VG]=this[VG]||{},!(i&&!this[VG].isPanning)||!!n.scroll.enabled()&&((!i||i.target===t.element)&&t.componentsFromPoint({x:i.center.x,y:i.center.y}).some((t=>t.key===e)))}},events:{[`${VG}start`](n){n.preventDefault();const a=u(n);if(this[VG]=this[VG]||{},this[VG].isPanning=!0,t.component(e).emit("lockState"),o.meta.isContinuous){const e=r.get("zoom"),t=e.max-e.min,n=i.get("continuousMin"),o=i.get("continuousMax"),s=n+(o-n)*a.relative;s<e.min?r.set("zoom",{min:Math.min(s,o-t),max:Math.max(s+t,n+t)}):s>e.max&&r.set("zoom",{min:Math.min(s-t,o-t),max:Math.max(s,n+t)}),this[VG].relative=a.relative,this[VG].zoom=r.get("zoom"),this[VG].zoom.span=this[VG].zoom.max-this[VG].zoom.min,this[VG].zoom.fullSpan=o-n}else if(a.onThumb)this[VG].offset=a.thumb;else{const e=c();this[VG].offset=a.beforeThumb?0:e.thumbSize}},[`${VG}move`](n){n.preventDefault();const a=u(n);if(this[VG]=this[VG]||{},o.meta.isContinuous){const e=a.relative-this[VG].relative,{fullSpan:t,span:n,min:o,max:s}=this[VG].zoom,l=i.get("continuousMin"),u=i.get("continuousMax");r.set("zoom",{min:Math.min(o+e*t,u-n),max:Math.max(s+e*t,l+n)})}else{const e=a.pixel-(this[VG].offset||0),t=c(),n=Math.max(0,e/t.size);s.command.scrollTo(n)}t.component(e).emit("render")},[`${VG}end`](n){n.preventDefault(),this[VG]=this[VG]||{},this[VG].isPanning=!1,t.component(e).emit("unlockState")},[`${VG}cancel`](n){n.preventDefault(),this[VG]=this[VG]||{},this[VG].isPanning=!1,t.component(e).emit("unlockState")}}}}function UG({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}){return[PG({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}),HG({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:l}),$G({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l})]}function WG({componentKey:e,chart:t,actions:n,layoutService:r}){const i=(i,o)=>{if(!r.meta.isContinuous)return;const a=t.component(e);a&&a.emit&&n.scroll.enabled()&&a.emit(i,o)};return{type:"native",events:{mousemove:e=>i("hover",e),mouseleave:()=>i("leave")}}}function YG({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}){return{gestures:[...UG({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l})],native:WG({componentKey:e,chart:t,actions:n,layoutService:o})}}const KG={background:"rgba(0, 0, 0, 0.1)"},GG={top:-1,bottom:-1,width:6},XG={width:2,background:"#595959"};var JG={before:KG,after:KG,thumb:{background:"transparent",border:"1px solid rgba(68, 68, 68, 0.4)"},startHandle:GG,endHandle:GG,startHandleBorder:XG,endHandleBorder:XG};const QG={background:"rgba(0, 0, 0, 0.1)"},ZG={top:-1,bottom:-1,width:6},eX={width:2,background:"#595959"};var tX={before:QG,after:QG,thumb:{background:"#B0AFAE",border:"transparent"},startHandle:ZG,endHandle:ZG,startHandleBorder:eX,endHandleBorder:eX};const nX={position:"absolute",top:0,right:0,bottom:0,left:0,boxSizing:"border-box"},rX={pointerEvents:"initial"},iX={pointerEvents:"none"};const oX="ew-resize",aX="default";function sX(){const{rect:e}=this,{settings:t}=this.settings,n="horizontal"===t.orientation,r=n?e.computedInner.width:e.computedInner.height,i=t.range(),o=n&&t.rtl;return{size:r,start:(o?1-i[1]:i[0])*r,end:(o?1-i[0]:i[1])*r}}function lX(){const e=this.state.hover.start||this.state.hover.end||this.state.drag.start||this.state.drag.end;this.renderer.element().ownerDocument.body.style.cursor=e?oX:aX}function uX(e,t,n){const{min:r}=this.settings.settings.size.thumb;if(n-t<r){const i=(r-(n-t))/2,o=Math.max(0,0-(t-i))-Math.max(0,n+i-e);return{size:e,start:t-i+o,end:n+i+o}}return{size:e,start:t,end:n}}function cX(e){const t=(e.srcEvent||e).srcElement;return this.renderer.element().contains(t)}function dX(){const{size:e,start:t,end:n}=sX.call(this);this.renderer.render(this.elements(this.h,uX.call(this,e,t,n)))}function fX(){const{state:e,settings:t,style:n}=this,r=t.settings.style;return e.style[r]||(e.style[r]=function({id:e,style:t}){const n="slim"===e?tX:JG;return{container:{...nX},before:{...nX,...n.before,...t.before},after:{...nX,...n.after,...t.after},thumb:{...nX,...n.thumb,...t.thumb},startHandle:{...nX,...rX,...n.startHandle},endHandle:{...nX,...rX,...n.endHandle},startHandleBorder:{...nX,...iX,...n.startHandleBorder},endHandleBorder:{...nX,...iX,...n.endHandleBorder}}}({id:t.settings.style,style:n[r]})),e.style[r]}var hX={require:["renderer"],defaultSettings:{settings:{style:"standard",size:{area:{min:30,max:40,ratio:1/8},thumb:{min:4}},orientation:"horizontal",rtl:!1,isContinuous:!1,range:()=>[0,1],injections:()=>[]},style:{standard:{before:{},thumb:{},after:{}},slim:{before:{},thumb:{},after:{}}}},renderer:"dom",on:{render(){dX.call(this)},lockState(){this.state.locked=!0},unlockState(){this.state.locked=!1},hover(e){if(this.state.locked||this.state.drag.start||this.state.drag.end||!cX.call(this,e)&&this.state.hover.isPristine())return;this.state.hover.reset();const t=FG({e:e});t&&(this.state.hover[t]=!0),lX.call(this),dX.call(this)},leave(){this.state.locked||(this.state.hover.reset(),lX.call(this),dX.call(this))},dragStart(e){if(this.state.locked)return;this.state.drag.reset();const t=FG({e:e});t&&(this.state.drag[t]=!0),lX.call(this)},dragEnd(){this.state.locked||(this.state.drag.reset(),lX.call(this),dX.call(this))}},preferredSize({outer:e}){const{min:t,max:n,ratio:r}=this.settings.settings.size.area,i="horizontal"===this.settings.settings.orientation?"height":"width";return Math.max(t,Math.min(n,e[i]*r))},created(){this.state={style:{},locked:!1,hover:{start:!1,end:!1,reset(){this.start=!1,this.end=!1},isPristine(){return!this.start&&!this.end}},drag:{start:!1,end:!1,reset(){this.start=!1,this.end=!1}}}},render(e){this.h=e;const{size:t,start:n,end:r}=sX.call(this);return this.elements(e,uX.call(this,t,n,r))},properties(){return"horizontal"===this.settings.settings.orientation?{start:"left",end:"right"}:{start:"top",end:"bottom"}},elements(e,{size:t,start:n,end:r}){const{settings:i}=this.settings,o=i.injections().map((t=>t({h:e,rect:this.rect,orientation:i.orientation,minThumbSize:i.size.thumb.min})));return function({h:e,size:t,start:n,end:r,properties:i,startHandleActive:o,endHandleActive:a,style:s,continuous:l,invert:u,injections:c}){const d={[i.end]:t-n},f={[i.start]:r},h={left:-3},p={left:1},m={right:-3,left:"auto"},g={left:3},y=e("div",{style:{...s.before,...u?f:d},class:"scrollbar--before"}),v=e("div",{style:{...s.after,...u?d:f},class:"scrollbar--after"}),b=[];if(l){const t=e("div",{style:{...s.startHandle,...u?m:h},class:"scrollbar--start-handle",[zG]:"start"},o?e("div",{style:{...s.startHandleBorder,...u?g:p}}):void 0);b.push(t);const n=e("div",{style:{...s.endHandle,...u?h:m},class:"scrollbar--end-handle",[zG]:"end"},a?e("div",{style:{...s.endHandleBorder,...u?p:g}}):void 0);b.push(n)}const x=e("div",{style:{...s.thumb,[i.start]:n,[i.end]:t-r},class:"scrollbar--thumb"},b);return e("div",{style:{...s.container}},[y,x,v,...c])}({h:e,size:t,start:n,end:r,properties:this.properties(),startHandleActive:this.state.hover.start||this.state.drag.start,endHandleActive:this.state.hover.end||this.state.drag.end,style:fX.call(this),continuous:i.isContinuous,invert:"horizontal"===i.orientation&&i.rtl,injections:o})}};var pX={black:"#000",white:"#fff"};var mX={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var gX={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var yX={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var vX={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var bX={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};var xX={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var wX={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function SX(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var MX=Object.freeze({__proto__:null,default:SX}),kX="$$material";function CX(){return CX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},CX.apply(this,arguments)}function qX(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function EX(){return EX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},EX.apply(this,arguments)}function DX(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var TX=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,NX=DX((function(e){return TX.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var OX=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),AX="-ms-",_X="-moz-",LX="-webkit-",IX="comm",RX="rule",PX="decl",zX="@keyframes",FX=Math.abs,jX=String.fromCharCode,BX=Object.assign;function HX(e){return e.trim()}function VX(e,t,n){return e.replace(t,n)}function $X(e,t){return e.indexOf(t)}function UX(e,t){return 0|e.charCodeAt(t)}function WX(e,t,n){return e.slice(t,n)}function YX(e){return e.length}function KX(e){return e.length}function GX(e,t){return t.push(e),e}var XX=1,JX=1,QX=0,ZX=0,eJ=0,tJ="";function nJ(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:XX,column:JX,length:a,return:""}}function rJ(e,t){return BX(nJ("",null,null,"",null,null,0),e,{length:-e.length},t)}function iJ(){return eJ=ZX>0?UX(tJ,--ZX):0,JX--,10===eJ&&(JX=1,XX--),eJ}function oJ(){return eJ=ZX<QX?UX(tJ,ZX++):0,JX++,10===eJ&&(JX=1,XX++),eJ}function aJ(){return UX(tJ,ZX)}function sJ(){return ZX}function lJ(e,t){return WX(tJ,e,t)}function uJ(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function cJ(e){return XX=JX=1,QX=YX(tJ=e),ZX=0,[]}function dJ(e){return tJ="",e}function fJ(e){return HX(lJ(ZX-1,mJ(91===e?e+2:40===e?e+1:e)))}function hJ(e){for(;(eJ=aJ())&&eJ<33;)oJ();return uJ(e)>2||uJ(eJ)>3?"":" "}function pJ(e,t){for(;--t&&oJ()&&!(eJ<48||eJ>102||eJ>57&&eJ<65||eJ>70&&eJ<97););return lJ(e,sJ()+(t<6&&32==aJ()&&32==oJ()))}function mJ(e){for(;oJ();)switch(eJ){case e:return ZX;case 34:case 39:34!==e&&39!==e&&mJ(eJ);break;case 40:41===e&&mJ(e);break;case 92:oJ()}return ZX}function gJ(e,t){for(;oJ()&&e+eJ!==57&&(e+eJ!==84||47!==aJ()););return"/*"+lJ(t,ZX-1)+"*"+jX(47===e?e:oJ())}function yJ(e){for(;!uJ(aJ());)oJ();return lJ(e,ZX)}function vJ(e){return dJ(bJ("",null,null,null,[""],e=cJ(e),0,[0],e))}function bJ(e,t,n,r,i,o,a,s,l){for(var u=0,c=0,d=a,f=0,h=0,p=0,m=1,g=1,y=1,v=0,b="",x=i,w=o,S=r,M=b;g;)switch(p=v,v=oJ()){case 40:if(108!=p&&58==UX(M,d-1)){-1!=$X(M+=VX(fJ(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:M+=fJ(v);break;case 9:case 10:case 13:case 32:M+=hJ(p);break;case 92:M+=pJ(sJ()-1,7);continue;case 47:switch(aJ()){case 42:case 47:GX(wJ(gJ(oJ(),sJ()),t,n),l);break;default:M+="/"}break;case 123*m:s[u++]=YX(M)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==y&&(M=VX(M,/\f/g,"")),h>0&&YX(M)-d&&GX(h>32?SJ(M+";",r,n,d-1):SJ(VX(M," ","")+";",r,n,d-2),l);break;case 59:M+=";";default:if(GX(S=xJ(M,t,n,u,c,i,s,b,x=[],w=[],d),o),123===v)if(0===c)bJ(M,t,S,S,x,o,d,s,w);else switch(99===f&&110===UX(M,3)?100:f){case 100:case 108:case 109:case 115:bJ(e,S,S,r&&GX(xJ(e,S,S,0,0,i,s,b,i,x=[],d),w),i,w,d,s,r?x:w);break;default:bJ(M,S,S,S,[""],w,0,s,w)}}u=c=h=0,m=y=1,b=M="",d=a;break;case 58:d=1+YX(M),h=p;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==iJ())continue;switch(M+=jX(v),v*m){case 38:y=c>0?1:(M+="\f",-1);break;case 44:s[u++]=(YX(M)-1)*y,y=1;break;case 64:45===aJ()&&(M+=fJ(oJ())),f=aJ(),c=d=YX(b=M+=yJ(sJ())),v++;break;case 45:45===p&&2==YX(M)&&(m=0)}}return o}function xJ(e,t,n,r,i,o,a,s,l,u,c){for(var d=i-1,f=0===i?o:[""],h=KX(f),p=0,m=0,g=0;p<r;++p)for(var y=0,v=WX(e,d+1,d=FX(m=a[p])),b=e;y<h;++y)(b=HX(m>0?f[y]+" "+v:VX(v,/&\f/g,f[y])))&&(l[g++]=b);return nJ(e,t,n,0===i?RX:s,l,u,c)}function wJ(e,t,n){return nJ(e,t,n,IX,jX(eJ),WX(e,2,-2),0)}function SJ(e,t,n,r){return nJ(e,t,n,PX,WX(e,0,r),WX(e,r+1,-1),r)}function MJ(e,t){for(var n="",r=KX(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function kJ(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case PX:return e.return=e.return||e.value;case IX:return"";case zX:return e.return=e.value+"{"+MJ(e.children,r)+"}";case RX:e.value=e.props.join(",")}return YX(n=MJ(e.children,r))?e.return=e.value+"{"+n+"}":""}function CJ(e){var t=KX(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}var qJ=function(e,t,n){for(var r=0,i=0;r=i,i=aJ(),38===r&&12===i&&(t[n]=1),!uJ(i);)oJ();return lJ(e,ZX)},EJ=function(e,t){return dJ(function(e,t){var n=-1,r=44;do{switch(uJ(r)){case 0:38===r&&12===aJ()&&(t[n]=1),e[n]+=qJ(ZX-1,t,n);break;case 2:e[n]+=fJ(r);break;case 4:if(44===r){e[++n]=58===aJ()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=jX(r)}}while(r=oJ());return e}(cJ(e),t))},DJ=new WeakMap,TJ=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||DJ.get(n))&&!r){DJ.set(e,!0);for(var i=[],o=EJ(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var u=0;u<a.length;u++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[u]):a[u]+" "+o[s]}}},NJ=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function OJ(e,t){switch(function(e,t){return 45^UX(e,0)?(((t<<2^UX(e,0))<<2^UX(e,1))<<2^UX(e,2))<<2^UX(e,3):0}(e,t)){case 5103:return LX+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return LX+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return LX+e+_X+e+AX+e+e;case 6828:case 4268:return LX+e+AX+e+e;case 6165:return LX+e+AX+"flex-"+e+e;case 5187:return LX+e+VX(e,/(\w+).+(:[^]+)/,LX+"box-$1$2"+AX+"flex-$1$2")+e;case 5443:return LX+e+AX+"flex-item-"+VX(e,/flex-|-self/,"")+e;case 4675:return LX+e+AX+"flex-line-pack"+VX(e,/align-content|flex-|-self/,"")+e;case 5548:return LX+e+AX+VX(e,"shrink","negative")+e;case 5292:return LX+e+AX+VX(e,"basis","preferred-size")+e;case 6060:return LX+"box-"+VX(e,"-grow","")+LX+e+AX+VX(e,"grow","positive")+e;case 4554:return LX+VX(e,/([^-])(transform)/g,"$1"+LX+"$2")+e;case 6187:return VX(VX(VX(e,/(zoom-|grab)/,LX+"$1"),/(image-set)/,LX+"$1"),e,"")+e;case 5495:case 3959:return VX(e,/(image-set\([^]*)/,LX+"$1$`$1");case 4968:return VX(VX(e,/(.+:)(flex-)?(.*)/,LX+"box-pack:$3"+AX+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+LX+e+e;case 4095:case 3583:case 4068:case 2532:return VX(e,/(.+)-inline(.+)/,LX+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(YX(e)-1-t>6)switch(UX(e,t+1)){case 109:if(45!==UX(e,t+4))break;case 102:return VX(e,/(.+:)(.+)-([^]+)/,"$1"+LX+"$2-$3$1"+_X+(108==UX(e,t+3)?"$3":"$2-$3"))+e;case 115:return~$X(e,"stretch")?OJ(VX(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==UX(e,t+1))break;case 6444:switch(UX(e,YX(e)-3-(~$X(e,"!important")&&10))){case 107:return VX(e,":",":"+LX)+e;case 101:return VX(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+LX+(45===UX(e,14)?"inline-":"")+"box$3$1"+LX+"$2$3$1"+AX+"$2box$3")+e}break;case 5936:switch(UX(e,t+11)){case 114:return LX+e+AX+VX(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return LX+e+AX+VX(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return LX+e+AX+VX(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return LX+e+AX+e+e}return e}var AJ="undefined"!=typeof document,_J=AJ?void 0:function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}((function(){return DX((function(){var e={};return function(t){return e[t]}}))})),LJ=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case PX:e.return=OJ(e.value,e.length);break;case zX:return MJ([rJ(e,{value:VX(e.value,"@","@"+LX)})],r);case RX:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return MJ([rJ(e,{props:[VX(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return MJ([rJ(e,{props:[VX(t,/:(plac\w+)/,":"+LX+"input-$1")]}),rJ(e,{props:[VX(t,/:(plac\w+)/,":-moz-$1")]}),rJ(e,{props:[VX(t,/:(plac\w+)/,AX+"input-$1")]})],r)}return""}))}}],IJ=function(e){var t=e.key;if(AJ&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,i,o=e.stylisPlugins||LJ,a={},s=[];AJ&&(r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)})));var l,u=[TJ,NJ];if(AJ){var c,d=[kJ,(l=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&l(e)})],f=CJ(u.concat(o,d));i=function(e,t,n,r){c=n,function(e){MJ(vJ(e),f)}(e?e+"{"+t.styles+"}":t.styles),r&&(y.inserted[t.name]=!0)}}else{var h=[kJ],p=CJ(u.concat(o,h)),m=_J(o)(t),g=function(e,t){var n=t.name;return void 0===m[n]&&(m[n]=function(e){return MJ(vJ(e),p)}(e?e+"{"+t.styles+"}":t.styles)),m[n]};i=function(e,t,n,r){var i=t.name,o=g(e,t);return void 0===y.compat?(r&&(y.inserted[i]=!0),o):r?void(y.inserted[i]=o):o}}var y={key:t,sheet:new OX({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return y.sheet.hydrate(s),y},RJ="undefined"!=typeof document;var PJ=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===RJ&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},zJ=function(e,t,n){PJ(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i="",o=t;do{var a=e.insert(t===o?"."+r:"",o,e.sheet,!0);RJ||void 0===a||(i+=a),o=o.next}while(void 0!==o);if(!RJ&&0!==i.length)return i}};var FJ={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},jJ=/[A-Z]|^ms/g,BJ=/_EMO_([^_]+?)_([^]*?)_EMO_/g,HJ=function(e){return 45===e.charCodeAt(1)},VJ=function(e){return null!=e&&"boolean"!=typeof e},$J=DX((function(e){return HJ(e)?e:e.replace(jJ,"-$&").toLowerCase()})),UJ=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(BJ,(function(e,t,n){return YJ={name:t,styles:n,next:YJ},t}))}return 1===FJ[e]||HJ(e)||"number"!=typeof t||0===t?t:t+"px"};function WJ(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return YJ={name:n.name,styles:n.styles,next:YJ},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)YJ={name:r.name,styles:r.styles,next:YJ},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=WJ(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":VJ(a)&&(r+=$J(o)+":"+UJ(o,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=WJ(e,t,a);switch(o){case"animation":case"animationName":r+=$J(o)+":"+s+";";break;default:r+=o+"{"+s+"}"}}else for(var l=0;l<a.length;l++)VJ(a[l])&&(r+=$J(o)+":"+UJ(o,a[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var i=YJ,o=n(e);return YJ=i,WJ(e,t,o)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var YJ,KJ=/label:\s*([^\s;\n{]+)\s*(;|$)/g,GJ=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";YJ=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=WJ(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++)i+=WJ(n,t,e[a]),r&&(i+=o[a]);KJ.lastIndex=0;for(var s,l="";null!==(s=KJ.exec(i));)l+="-"+s[1];var u=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:u,styles:i,next:YJ}},XJ="undefined"!=typeof document,JJ=function(e){return e()},QJ=!!yT.useInsertionEffect&&yT.useInsertionEffect,ZJ=XJ&&QJ||JJ,eQ=QJ||mT.useLayoutEffect,tQ="undefined"!=typeof document,nQ=mT.createContext("undefined"!=typeof HTMLElement?IJ({key:"css"}):null),rQ=nQ.Provider,iQ=function(e){return mT.forwardRef((function(t,n){var r=mT.useContext(nQ);return e(t,r,n)}))};tQ||(iQ=function(e){return function(t){var n=mT.useContext(nQ);return null===n?(n=IJ({key:"css"}),mT.createElement(nQ.Provider,{value:n},e(t,n))):e(t,n)}});var oQ=mT.createContext({}),aQ=iQ((function(e,t){var n=e.styles,r=GJ([n],void 0,mT.useContext(oQ));if(!tQ){for(var i,o=r.name,a=r.styles,s=r.next;void 0!==s;)o+=" "+s.name,a+=s.styles,s=s.next;var l=!0===t.compat,u=t.insert("",{name:o,styles:a},t.sheet,l);return l?null:mT.createElement("style",((i={})["data-emotion"]=t.key+"-global "+o,i.dangerouslySetInnerHTML={__html:u},i.nonce=t.sheet.nonce,i))}var c=mT.useRef();return eQ((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,o=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==o&&(i=!0,o.setAttribute("data-emotion",e),n.hydrate([o])),c.current=[n,i],function(){n.flush()}}),[t]),eQ((function(){var e=c.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&zJ(t,r.next,!0),n.tags.length){var i=n.tags[n.tags.length-1].nextElementSibling;n.before=i,n.flush()}t.insert("",r,n,!1)}}),[t,r.name]),null}));function sQ(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return GJ(t)}var lQ=function(){var e=sQ.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},uQ=NX,cQ=function(e){return"theme"!==e},dQ=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?uQ:cQ},fQ=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},hQ="undefined"!=typeof document,pQ=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;PJ(t,n,r);var i=ZJ((function(){return zJ(t,n,r)}));if(!hQ&&void 0!==i){for(var o,a=n.name,s=n.next;void 0!==s;)a+=" "+s.name,s=s.next;return mT.createElement("style",((o={})["data-emotion"]=t.key+" "+a,o.dangerouslySetInnerHTML={__html:i},o.nonce=t.sheet.nonce,o))}return null},mQ=function e(t,n){var r,i,o=t.__emotion_real===t,a=o&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var s=fQ(t,n,o),l=s||dQ(a),u=!l("as");return function(){var c=arguments,d=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==c[0]||void 0===c[0].raw)d.push.apply(d,c);else{d.push(c[0][0]);for(var f=c.length,h=1;h<f;h++)d.push(c[h],c[0][h])}var p=iQ((function(e,t,n){var r,o,c,f,h=u&&e.as||a,p="",m=[],g=e;if(null==e.theme){for(var y in g={},e)g[y]=e[y];g.theme=mT.useContext(oQ)}"string"==typeof e.className?(r=t.registered,o=m,c=e.className,f="",c.split(" ").forEach((function(e){void 0!==r[e]?o.push(r[e]+";"):f+=e+" "})),p=f):null!=e.className&&(p=e.className+" ");var v=GJ(d.concat(m),t.registered,g);p+=t.key+"-"+v.name,void 0!==i&&(p+=" "+i);var b=u&&void 0===s?dQ(h):l,x={};for(var w in e)u&&"as"===w||b(w)&&(x[w]=e[w]);return x.className=p,x.ref=n,mT.createElement(mT.Fragment,null,mT.createElement(pQ,{cache:t,serialized:v,isStringTag:"string"==typeof h}),mT.createElement(h,x))}));return p.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",p.defaultProps=t.defaultProps,p.__emotion_real=p,p.__emotion_base=a,p.__emotion_styles=d,p.__emotion_forwardProp=s,Object.defineProperty(p,"toString",{value:function(){return"."+i}}),p.withComponent=function(t,r){return e(t,EX({},n,r,{shouldForwardProp:fQ(p,r,!0)})).apply(void 0,d)},p}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){mQ[e]=mQ(e)}));var gQ={exports:{}},yQ={},vQ=mT,bQ=Symbol.for("react.element"),xQ=Symbol.for("react.fragment"),wQ=Object.prototype.hasOwnProperty,SQ=vQ.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,MQ={key:!0,ref:!0,__self:!0,__source:!0};function kQ(e,t,n){var r,i={},o=null,a=null;for(r in void 0!==n&&(o=""+n),void 0!==t.key&&(o=""+t.key),void 0!==t.ref&&(a=t.ref),t)wQ.call(t,r)&&!MQ.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:bQ,type:e,key:o,ref:a,props:i,_owner:SQ.current}}yQ.Fragment=xQ,yQ.jsx=kQ,yQ.jsxs=kQ,gQ.exports=yQ;var CQ=gQ.exports;let qQ;"object"==typeof document&&(qQ=IJ({key:"css",prepend:!0}));var EQ=Object.freeze({__proto__:null,GlobalStyles:function(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return CQ.jsx(aQ,{styles:r})}
42
+ */function JL(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var QL=new Set,ZL={};function eI(e,t){tI(e,t),tI(e+"Capture",t)}function tI(e,t){for(ZL[e]=t,e=0;e<t.length;e++)QL.add(t[e])}var nI=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),rI=Object.prototype.hasOwnProperty,iI=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,oI={},aI={};function sI(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var lI={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){lI[e]=new sI(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];lI[t]=new sI(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){lI[e]=new sI(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){lI[e]=new sI(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){lI[e]=new sI(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){lI[e]=new sI(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){lI[e]=new sI(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){lI[e]=new sI(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){lI[e]=new sI(e,5,!1,e.toLowerCase(),null,!1,!1)}));var uI=/[\-:]([a-z])/g;function cI(e){return e[1].toUpperCase()}function dI(e,t,n,r){var i=lI.hasOwnProperty(t)?lI[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!rI.call(aI,e)||!rI.call(oI,e)&&(iI.test(e)?aI[e]=!0:(oI[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(uI,cI);lI[t]=new sI(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(uI,cI);lI[t]=new sI(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(uI,cI);lI[t]=new sI(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){lI[e]=new sI(e,1,!1,e.toLowerCase(),null,!1,!1)})),lI.xlinkHref=new sI("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){lI[e]=new sI(e,1,!1,e.toLowerCase(),null,!0,!0)}));var fI=GL.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,hI=Symbol.for("react.element"),pI=Symbol.for("react.portal"),mI=Symbol.for("react.fragment"),gI=Symbol.for("react.strict_mode"),yI=Symbol.for("react.profiler"),vI=Symbol.for("react.provider"),bI=Symbol.for("react.context"),xI=Symbol.for("react.forward_ref"),wI=Symbol.for("react.suspense"),SI=Symbol.for("react.suspense_list"),MI=Symbol.for("react.memo"),kI=Symbol.for("react.lazy"),CI=Symbol.for("react.offscreen"),qI=Symbol.iterator;function EI(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=qI&&e[qI]||e["@@iterator"])?e:null}var DI,TI=Object.assign;function NI(e){if(void 0===DI)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);DI=t&&t[1]||""}return"\n"+DI+e}var OI=!1;function AI(e,t){if(!e||OI)return"";OI=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var i=t.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{OI=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?NI(e):""}function _I(e){switch(e.tag){case 5:return NI(e.type);case 16:return NI("Lazy");case 13:return NI("Suspense");case 19:return NI("SuspenseList");case 0:case 2:case 15:return e=AI(e.type,!1);case 11:return e=AI(e.type.render,!1);case 1:return e=AI(e.type,!0);default:return""}}function LI(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case mI:return"Fragment";case pI:return"Portal";case yI:return"Profiler";case gI:return"StrictMode";case wI:return"Suspense";case SI:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case bI:return(e.displayName||"Context")+".Consumer";case vI:return(e._context.displayName||"Context")+".Provider";case xI:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case MI:return null!==(t=e.displayName||null)?t:LI(e.type)||"Memo";case kI:t=e._payload,e=e._init;try{return LI(e(t))}catch(e){}}return null}function II(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return LI(t);case 8:return t===gI?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function RI(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function PI(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function zI(e){e._valueTracker||(e._valueTracker=function(e){var t=PI(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function FI(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=PI(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function jI(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function BI(e,t){var n=t.checked;return TI({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function HI(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=RI(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function VI(e,t){null!=(t=t.checked)&&dI(e,"checked",t,!1)}function $I(e,t){VI(e,t);var n=RI(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?WI(e,t.type,n):t.hasOwnProperty("defaultValue")&&WI(e,t.type,RI(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function UI(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function WI(e,t,n){"number"===t&&jI(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var YI=Array.isArray;function KI(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+RI(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function GI(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(JL(91));return TI({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function XI(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(JL(92));if(YI(n)){if(1<n.length)throw Error(JL(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:RI(n)}}function JI(e,t){var n=RI(t.value),r=RI(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function QI(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ZI(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function eR(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ZI(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var tR,nR=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((tR=tR||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=tR.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function rR(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var iR={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},oR=["Webkit","ms","Moz","O"];function aR(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||iR.hasOwnProperty(e)&&iR[e]?(""+t).trim():t+"px"}function sR(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=aR(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(iR).forEach((function(e){oR.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),iR[t]=iR[e]}))}));var lR=TI({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function uR(e,t){if(t){if(lR[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(JL(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(JL(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(JL(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(JL(62))}}function cR(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var dR=null;function fR(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var hR=null,pR=null,mR=null;function gR(e){if(e=uj(e)){if("function"!=typeof hR)throw Error(JL(280));var t=e.stateNode;t&&(t=dj(t),hR(e.stateNode,e.type,t))}}function yR(e){pR?mR?mR.push(e):mR=[e]:pR=e}function vR(){if(pR){var e=pR,t=mR;if(mR=pR=null,gR(e),t)for(e=0;e<t.length;e++)gR(t[e])}}function bR(e,t){return e(t)}function xR(){}var wR=!1;function SR(e,t,n){if(wR)return e(t,n);wR=!0;try{return bR(e,t,n)}finally{wR=!1,(null!==pR||null!==mR)&&(xR(),vR())}}function MR(e,t){var n=e.stateNode;if(null===n)return null;var r=dj(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(JL(231,t,typeof n));return n}var kR=!1;if(nI)try{var CR={};Object.defineProperty(CR,"passive",{get:function(){kR=!0}}),window.addEventListener("test",CR,CR),window.removeEventListener("test",CR,CR)}catch(s5){kR=!1}function qR(e,t,n,r,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var ER=!1,DR=null,TR=!1,NR=null,OR={onError:function(e){ER=!0,DR=e}};function AR(e,t,n,r,i,o,a,s,l){ER=!1,DR=null,qR.apply(OR,arguments)}function _R(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function LR(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function IR(e){if(_R(e)!==e)throw Error(JL(188))}function RR(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=_R(e)))throw Error(JL(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return IR(i),e;if(o===r)return IR(i),t;o=o.sibling}throw Error(JL(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a)throw Error(JL(189))}}if(n.alternate!==r)throw Error(JL(190))}if(3!==n.tag)throw Error(JL(188));return n.stateNode.current===n?e:t}(e),null!==e?PR(e):null}function PR(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=PR(e);if(null!==t)return t;e=e.sibling}return null}var zR=XL.unstable_scheduleCallback,FR=XL.unstable_cancelCallback,jR=XL.unstable_shouldYield,BR=XL.unstable_requestPaint,HR=XL.unstable_now,VR=XL.unstable_getCurrentPriorityLevel,$R=XL.unstable_ImmediatePriority,UR=XL.unstable_UserBlockingPriority,WR=XL.unstable_NormalPriority,YR=XL.unstable_LowPriority,KR=XL.unstable_IdlePriority,GR=null,XR=null;var JR=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(QR(e)/ZR|0)|0},QR=Math.log,ZR=Math.LN2;var eP=64,tP=4194304;function nP(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function rP(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=nP(s):0!==(o&=a)&&(r=nP(o))}else 0!==(a=n&~i)?r=nP(a):0!==o&&(r=nP(o));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&0!=(4194240&o)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-JR(t)),r|=e[n],t&=~i;return r}function iP(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function oP(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function aP(){var e=eP;return 0==(4194240&(eP<<=1))&&(eP=64),e}function sP(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function lP(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-JR(t)]=n}function uP(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-JR(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var cP=0;function dP(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var fP,hP,pP,mP,gP,yP=!1,vP=[],bP=null,xP=null,wP=null,SP=new Map,MP=new Map,kP=[],CP="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function qP(e,t){switch(e){case"focusin":case"focusout":bP=null;break;case"dragenter":case"dragleave":xP=null;break;case"mouseover":case"mouseout":wP=null;break;case"pointerover":case"pointerout":SP.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":MP.delete(t.pointerId)}}function EP(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&(null!==(t=uj(t))&&hP(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function DP(e){var t=lj(e.target);if(null!==t){var n=_R(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=LR(n)))return e.blockedOn=t,void gP(e.priority,(function(){pP(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function TP(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=jP(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=uj(n))&&hP(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);dR=r,n.target.dispatchEvent(r),dR=null,t.shift()}return!0}function NP(e,t,n){TP(e)&&n.delete(t)}function OP(){yP=!1,null!==bP&&TP(bP)&&(bP=null),null!==xP&&TP(xP)&&(xP=null),null!==wP&&TP(wP)&&(wP=null),SP.forEach(NP),MP.forEach(NP)}function AP(e,t){e.blockedOn===t&&(e.blockedOn=null,yP||(yP=!0,XL.unstable_scheduleCallback(XL.unstable_NormalPriority,OP)))}function _P(e){function t(t){return AP(t,e)}if(0<vP.length){AP(vP[0],e);for(var n=1;n<vP.length;n++){var r=vP[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==bP&&AP(bP,e),null!==xP&&AP(xP,e),null!==wP&&AP(wP,e),SP.forEach(t),MP.forEach(t),n=0;n<kP.length;n++)(r=kP[n]).blockedOn===e&&(r.blockedOn=null);for(;0<kP.length&&null===(n=kP[0]).blockedOn;)DP(n),null===n.blockedOn&&kP.shift()}var LP=fI.ReactCurrentBatchConfig,IP=!0;function RP(e,t,n,r){var i=cP,o=LP.transition;LP.transition=null;try{cP=1,zP(e,t,n,r)}finally{cP=i,LP.transition=o}}function PP(e,t,n,r){var i=cP,o=LP.transition;LP.transition=null;try{cP=4,zP(e,t,n,r)}finally{cP=i,LP.transition=o}}function zP(e,t,n,r){if(IP){var i=jP(e,t,n,r);if(null===i)LF(e,t,r,FP,n),qP(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return bP=EP(bP,e,t,n,r,i),!0;case"dragenter":return xP=EP(xP,e,t,n,r,i),!0;case"mouseover":return wP=EP(wP,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return SP.set(o,EP(SP.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,MP.set(o,EP(MP.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(qP(e,r),4&t&&-1<CP.indexOf(e)){for(;null!==i;){var o=uj(i);if(null!==o&&fP(o),null===(o=jP(e,t,n,r))&&LF(e,t,r,FP,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else LF(e,t,r,null,n)}}var FP=null;function jP(e,t,n,r){if(FP=null,null!==(e=lj(e=fR(r))))if(null===(t=_R(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=LR(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return FP=e,null}function BP(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(VR()){case $R:return 1;case UR:return 4;case WR:case YR:return 16;case KR:return 536870912;default:return 16}default:return 16}}var HP=null,VP=null,$P=null;function UP(){if($P)return $P;var e,t,n=VP,r=n.length,i="value"in HP?HP.value:HP.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return $P=i.slice(e,1<t?1-t:void 0)}function WP(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function YP(){return!0}function KP(){return!1}function GP(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?YP:KP,this.isPropagationStopped=KP,this}return TI(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=YP)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=YP)},persist:function(){},isPersistent:YP}),t}var XP,JP,QP,ZP={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ez=GP(ZP),tz=TI({},ZP,{view:0,detail:0}),nz=GP(tz),rz=TI({},tz,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:mz,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==QP&&(QP&&"mousemove"===e.type?(XP=e.screenX-QP.screenX,JP=e.screenY-QP.screenY):JP=XP=0,QP=e),XP)},movementY:function(e){return"movementY"in e?e.movementY:JP}}),iz=GP(rz),oz=GP(TI({},rz,{dataTransfer:0})),az=GP(TI({},tz,{relatedTarget:0})),sz=GP(TI({},ZP,{animationName:0,elapsedTime:0,pseudoElement:0})),lz=TI({},ZP,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),uz=GP(lz),cz=GP(TI({},ZP,{data:0})),dz={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},fz={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},hz={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function pz(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=hz[e])&&!!t[e]}function mz(){return pz}var gz=TI({},tz,{key:function(e){if(e.key){var t=dz[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=WP(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?fz[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:mz,charCode:function(e){return"keypress"===e.type?WP(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?WP(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),yz=GP(gz),vz=GP(TI({},rz,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),bz=GP(TI({},tz,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:mz})),xz=GP(TI({},ZP,{propertyName:0,elapsedTime:0,pseudoElement:0})),wz=TI({},rz,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Sz=GP(wz),Mz=[9,13,27,32],kz=nI&&"CompositionEvent"in window,Cz=null;nI&&"documentMode"in document&&(Cz=document.documentMode);var qz=nI&&"TextEvent"in window&&!Cz,Ez=nI&&(!kz||Cz&&8<Cz&&11>=Cz),Dz=String.fromCharCode(32),Tz=!1;function Nz(e,t){switch(e){case"keyup":return-1!==Mz.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Oz(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Az=!1;var _z={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Lz(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!_z[e.type]:"textarea"===t}function Iz(e,t,n,r){yR(r),0<(t=RF(t,"onChange")).length&&(n=new ez("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Rz=null,Pz=null;function zz(e){DF(e,0)}function Fz(e){if(FI(cj(e)))return e}function jz(e,t){if("change"===e)return t}var Bz=!1;if(nI){var Hz;if(nI){var Vz="oninput"in document;if(!Vz){var $z=document.createElement("div");$z.setAttribute("oninput","return;"),Vz="function"==typeof $z.oninput}Hz=Vz}else Hz=!1;Bz=Hz&&(!document.documentMode||9<document.documentMode)}function Uz(){Rz&&(Rz.detachEvent("onpropertychange",Wz),Pz=Rz=null)}function Wz(e){if("value"===e.propertyName&&Fz(Pz)){var t=[];Iz(t,Pz,e,fR(e)),SR(zz,t)}}function Yz(e,t,n){"focusin"===e?(Uz(),Pz=n,(Rz=t).attachEvent("onpropertychange",Wz)):"focusout"===e&&Uz()}function Kz(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Fz(Pz)}function Gz(e,t){if("click"===e)return Fz(t)}function Xz(e,t){if("input"===e||"change"===e)return Fz(t)}var Jz="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function Qz(e,t){if(Jz(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!rI.call(t,i)||!Jz(e[i],t[i]))return!1}return!0}function Zz(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function eF(e,t){var n,r=Zz(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Zz(r)}}function tF(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?tF(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function nF(){for(var e=window,t=jI();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=jI((e=t.contentWindow).document)}return t}function rF(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function iF(e){var t=nF(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&tF(n.ownerDocument.documentElement,n)){if(null!==r&&rF(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=eF(n,o);var a=eF(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var oF=nI&&"documentMode"in document&&11>=document.documentMode,aF=null,sF=null,lF=null,uF=!1;function cF(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;uF||null==aF||aF!==jI(r)||("selectionStart"in(r=aF)&&rF(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},lF&&Qz(lF,r)||(lF=r,0<(r=RF(sF,"onSelect")).length&&(t=new ez("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=aF)))}function dF(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var fF={animationend:dF("Animation","AnimationEnd"),animationiteration:dF("Animation","AnimationIteration"),animationstart:dF("Animation","AnimationStart"),transitionend:dF("Transition","TransitionEnd")},hF={},pF={};function mF(e){if(hF[e])return hF[e];if(!fF[e])return e;var t,n=fF[e];for(t in n)if(n.hasOwnProperty(t)&&t in pF)return hF[e]=n[t];return e}nI&&(pF=document.createElement("div").style,"AnimationEvent"in window||(delete fF.animationend.animation,delete fF.animationiteration.animation,delete fF.animationstart.animation),"TransitionEvent"in window||delete fF.transitionend.transition);var gF=mF("animationend"),yF=mF("animationiteration"),vF=mF("animationstart"),bF=mF("transitionend"),xF=new Map,wF="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function SF(e,t){xF.set(e,t),eI(t,[e])}for(var MF=0;MF<wF.length;MF++){var kF=wF[MF];SF(kF.toLowerCase(),"on"+(kF[0].toUpperCase()+kF.slice(1)))}SF(gF,"onAnimationEnd"),SF(yF,"onAnimationIteration"),SF(vF,"onAnimationStart"),SF("dblclick","onDoubleClick"),SF("focusin","onFocus"),SF("focusout","onBlur"),SF(bF,"onTransitionEnd"),tI("onMouseEnter",["mouseout","mouseover"]),tI("onMouseLeave",["mouseout","mouseover"]),tI("onPointerEnter",["pointerout","pointerover"]),tI("onPointerLeave",["pointerout","pointerover"]),eI("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),eI("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),eI("onBeforeInput",["compositionend","keypress","textInput","paste"]),eI("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),eI("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),eI("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var CF="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),qF=new Set("cancel close invalid load scroll toggle".split(" ").concat(CF));function EF(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,o,a,s,l){if(AR.apply(this,arguments),ER){if(!ER)throw Error(JL(198));var u=DR;ER=!1,DR=null,TR||(TR=!0,NR=u)}}(r,t,void 0,e),e.currentTarget=null}function DF(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;EF(i,s,u),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;EF(i,s,u),o=l}}}if(TR)throw e=NR,TR=!1,NR=null,e}function TF(e,t){var n=t[oj];void 0===n&&(n=t[oj]=new Set);var r=e+"__bubble";n.has(r)||(_F(t,e,2,!1),n.add(r))}function NF(e,t,n){var r=0;t&&(r|=4),_F(n,e,r,t)}var OF="_reactListening"+Math.random().toString(36).slice(2);function AF(e){if(!e[OF]){e[OF]=!0,QL.forEach((function(t){"selectionchange"!==t&&(qF.has(t)||NF(t,!1,e),NF(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[OF]||(t[OF]=!0,NF("selectionchange",!1,t))}}function _F(e,t,n,r){switch(BP(t)){case 1:var i=RP;break;case 4:i=PP;break;default:i=zP}n=i.bind(null,t,n,e),i=void 0,!kR||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function LF(e,t,n,r,i){var o=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=lj(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}SR((function(){var r=o,i=fR(n),a=[];e:{var s=xF.get(e);if(void 0!==s){var l=ez,u=e;switch(e){case"keypress":if(0===WP(n))break e;case"keydown":case"keyup":l=yz;break;case"focusin":u="focus",l=az;break;case"focusout":u="blur",l=az;break;case"beforeblur":case"afterblur":l=az;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=iz;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=oz;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=bz;break;case gF:case yF:case vF:l=sz;break;case bF:l=xz;break;case"scroll":l=nz;break;case"wheel":l=Sz;break;case"copy":case"cut":case"paste":l=uz;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=vz}var c=0!=(4&t),d=!c&&"scroll"===e,f=c?null!==s?s+"Capture":null:s;c=[];for(var h,p=r;null!==p;){var m=(h=p).stateNode;if(5===h.tag&&null!==m&&(h=m,null!==f&&(null!=(m=MR(p,f))&&c.push(IF(p,m,h)))),d)break;p=p.return}0<c.length&&(s=new l(s,u,null,n,i),a.push({event:s,listeners:c}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===dR||!(u=n.relatedTarget||n.fromElement)||!lj(u)&&!u[ij])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?lj(u):null)&&(u!==(d=_R(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=iz,m="onMouseLeave",f="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(c=vz,m="onPointerLeave",f="onPointerEnter",p="pointer"),d=null==l?s:cj(l),h=null==u?s:cj(u),(s=new c(m,p+"leave",l,n,i)).target=d,s.relatedTarget=h,m=null,lj(i)===r&&((c=new c(f,p+"enter",u,n,i)).target=h,c.relatedTarget=d,m=c),d=m,l&&u)e:{for(f=u,p=0,h=c=l;h;h=PF(h))p++;for(h=0,m=f;m;m=PF(m))h++;for(;0<p-h;)c=PF(c),p--;for(;0<h-p;)f=PF(f),h--;for(;p--;){if(c===f||null!==f&&c===f.alternate)break e;c=PF(c),f=PF(f)}c=null}else c=null;null!==l&&zF(a,s,l,c,!1),null!==u&&null!==d&&zF(a,d,u,c,!0)}if("select"===(l=(s=r?cj(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=jz;else if(Lz(s))if(Bz)g=Xz;else{g=Kz;var y=Yz}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=Gz);switch(g&&(g=g(e,r))?Iz(a,g,n,i):(y&&y(e,s,r),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&WI(s,"number",s.value)),y=r?cj(r):window,e){case"focusin":(Lz(y)||"true"===y.contentEditable)&&(aF=y,sF=r,lF=null);break;case"focusout":lF=sF=aF=null;break;case"mousedown":uF=!0;break;case"contextmenu":case"mouseup":case"dragend":uF=!1,cF(a,n,i);break;case"selectionchange":if(oF)break;case"keydown":case"keyup":cF(a,n,i)}var v;if(kz)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Az?Nz(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Ez&&"ko"!==n.locale&&(Az||"onCompositionStart"!==b?"onCompositionEnd"===b&&Az&&(v=UP()):(VP="value"in(HP=i)?HP.value:HP.textContent,Az=!0)),0<(y=RF(r,b)).length&&(b=new cz(b,e,null,n,i),a.push({event:b,listeners:y}),v?b.data=v:null!==(v=Oz(n))&&(b.data=v))),(v=qz?function(e,t){switch(e){case"compositionend":return Oz(t);case"keypress":return 32!==t.which?null:(Tz=!0,Dz);case"textInput":return(e=t.data)===Dz&&Tz?null:e;default:return null}}(e,n):function(e,t){if(Az)return"compositionend"===e||!kz&&Nz(e,t)?(e=UP(),$P=VP=HP=null,Az=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ez&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=RF(r,"onBeforeInput")).length&&(i=new cz("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=v))}DF(a,t)}))}function IF(e,t,n){return{instance:e,listener:t,currentTarget:n}}function RF(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=MR(e,n))&&r.unshift(IF(e,o,i)),null!=(o=MR(e,t))&&r.push(IF(e,o,i))),e=e.return}return r}function PF(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function zF(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,i?null!=(l=MR(n,o))&&a.unshift(IF(n,l,s)):i||null!=(l=MR(n,o))&&a.push(IF(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var FF=/\r\n?/g,jF=/\u0000|\uFFFD/g;function BF(e){return("string"==typeof e?e:""+e).replace(FF,"\n").replace(jF,"")}function HF(e,t,n){if(t=BF(t),BF(e)!==t&&n)throw Error(JL(425))}function VF(){}var $F=null,UF=null;function WF(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var YF="function"==typeof setTimeout?setTimeout:void 0,KF="function"==typeof clearTimeout?clearTimeout:void 0,GF="function"==typeof Promise?Promise:void 0,XF="function"==typeof queueMicrotask?queueMicrotask:void 0!==GF?function(e){return GF.resolve(null).then(e).catch(JF)}:YF;function JF(e){setTimeout((function(){throw e}))}function QF(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void _P(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);_P(t)}function ZF(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ej(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var tj=Math.random().toString(36).slice(2),nj="__reactFiber$"+tj,rj="__reactProps$"+tj,ij="__reactContainer$"+tj,oj="__reactEvents$"+tj,aj="__reactListeners$"+tj,sj="__reactHandles$"+tj;function lj(e){var t=e[nj];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ij]||n[nj]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ej(e);null!==e;){if(n=e[nj])return n;e=ej(e)}return t}n=(e=n).parentNode}return null}function uj(e){return!(e=e[nj]||e[ij])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function cj(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(JL(33))}function dj(e){return e[rj]||null}var fj=[],hj=-1;function pj(e){return{current:e}}function mj(e){0>hj||(e.current=fj[hj],fj[hj]=null,hj--)}function gj(e,t){hj++,fj[hj]=e.current,e.current=t}var yj={},vj=pj(yj),bj=pj(!1),xj=yj;function wj(e,t){var n=e.type.contextTypes;if(!n)return yj;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Sj(e){return null!=(e=e.childContextTypes)}function Mj(){mj(bj),mj(vj)}function kj(e,t,n){if(vj.current!==yj)throw Error(JL(168));gj(vj,t),gj(bj,n)}function Cj(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(JL(108,II(e)||"Unknown",i));return TI({},n,r)}function qj(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||yj,xj=vj.current,gj(vj,e),gj(bj,bj.current),!0}function Ej(e,t,n){var r=e.stateNode;if(!r)throw Error(JL(169));n?(e=Cj(e,t,xj),r.__reactInternalMemoizedMergedChildContext=e,mj(bj),mj(vj),gj(vj,e)):mj(bj),gj(bj,n)}var Dj=null,Tj=!1,Nj=!1;function Oj(e){null===Dj?Dj=[e]:Dj.push(e)}function Aj(){if(!Nj&&null!==Dj){Nj=!0;var e=0,t=cP;try{var n=Dj;for(cP=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Dj=null,Tj=!1}catch(t){throw null!==Dj&&(Dj=Dj.slice(e+1)),zR($R,Aj),t}finally{cP=t,Nj=!1}}return null}var _j=[],Lj=0,Ij=null,Rj=0,Pj=[],zj=0,Fj=null,jj=1,Bj="";function Hj(e,t){_j[Lj++]=Rj,_j[Lj++]=Ij,Ij=e,Rj=t}function Vj(e,t,n){Pj[zj++]=jj,Pj[zj++]=Bj,Pj[zj++]=Fj,Fj=e;var r=jj;e=Bj;var i=32-JR(r)-1;r&=~(1<<i),n+=1;var o=32-JR(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,jj=1<<32-JR(t)+i|n<<i|r,Bj=o+e}else jj=1<<o|n<<i|r,Bj=e}function $j(e){null!==e.return&&(Hj(e,1),Vj(e,1,0))}function Uj(e){for(;e===Ij;)Ij=_j[--Lj],_j[Lj]=null,Rj=_j[--Lj],_j[Lj]=null;for(;e===Fj;)Fj=Pj[--zj],Pj[zj]=null,Bj=Pj[--zj],Pj[zj]=null,jj=Pj[--zj],Pj[zj]=null}var Wj=null,Yj=null,Kj=!1,Gj=null;function Xj(e,t){var n=wU(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function Jj(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,Wj=e,Yj=ZF(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,Wj=e,Yj=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Fj?{id:jj,overflow:Bj}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=wU(18,null,null,0)).stateNode=t,n.return=e,e.child=n,Wj=e,Yj=null,!0);default:return!1}}function Qj(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function Zj(e){if(Kj){var t=Yj;if(t){var n=t;if(!Jj(e,t)){if(Qj(e))throw Error(JL(418));t=ZF(n.nextSibling);var r=Wj;t&&Jj(e,t)?Xj(r,n):(e.flags=-4097&e.flags|2,Kj=!1,Wj=e)}}else{if(Qj(e))throw Error(JL(418));e.flags=-4097&e.flags|2,Kj=!1,Wj=e}}}function eB(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Wj=e}function tB(e){if(e!==Wj)return!1;if(!Kj)return eB(e),Kj=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!WF(e.type,e.memoizedProps)),t&&(t=Yj)){if(Qj(e))throw nB(),Error(JL(418));for(;t;)Xj(e,t),t=ZF(t.nextSibling)}if(eB(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(JL(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Yj=ZF(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Yj=null}}else Yj=Wj?ZF(e.stateNode.nextSibling):null;return!0}function nB(){for(var e=Yj;e;)e=ZF(e.nextSibling)}function rB(){Yj=Wj=null,Kj=!1}function iB(e){null===Gj?Gj=[e]:Gj.push(e)}var oB=fI.ReactCurrentBatchConfig;function aB(e,t){if(e&&e.defaultProps){for(var n in t=TI({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var sB=pj(null),lB=null,uB=null,cB=null;function dB(){cB=uB=lB=null}function fB(e){var t=sB.current;mj(sB),e._currentValue=t}function hB(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function pB(e,t){lB=e,cB=uB=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(uV=!0),e.firstContext=null)}function mB(e){var t=e._currentValue;if(cB!==e)if(e={context:e,memoizedValue:t,next:null},null===uB){if(null===lB)throw Error(JL(308));uB=e,lB.dependencies={lanes:0,firstContext:e}}else uB=uB.next=e;return t}var gB=null;function yB(e){null===gB?gB=[e]:gB.push(e)}function vB(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,yB(t)):(n.next=i.next,i.next=n),t.interleaved=n,bB(e,r)}function bB(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var xB=!1;function wB(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function SB(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function MB(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function kB(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&v$)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,bB(e,n)}return null===(i=r.interleaved)?(t.next=t,yB(r)):(t.next=i.next,i.next=t),r.interleaved=t,bB(e,n)}function CB(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,uP(e,n)}}function qB(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function EB(e,t,n,r){var i=e.updateQueue;xB=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?o=u:a.next=u,a=l;var c=e.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(null!==o){var d=i.baseState;for(a=0,c=u=l=null,s=o;;){var f=s.lane,h=s.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,m=s;switch(f=t,h=n,m.tag){case 1:if("function"==typeof(p=m.payload)){d=p.call(h,d,f);break e}d=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null==(f="function"==typeof(p=m.payload)?p.call(h,d,f):p))break e;d=TI({},d,f);break e;case 2:xB=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=i.effects)?i.effects=[s]:f.push(s))}else h={eventTime:h,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=h,l=d):c=c.next=h,a|=f;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(f=s).next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}if(null===c&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);q$|=a,e.lanes=a,e.memoizedState=d}}function DB(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(JL(191,i));i.call(r)}}}var TB=(new GL.Component).refs;function NB(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:TI({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var OB={isMounted:function(e){return!!(e=e._reactInternals)&&_R(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=$$(),i=U$(e),o=MB(r,i);o.payload=t,null!=n&&(o.callback=n),null!==(t=kB(e,o,i))&&(W$(t,e,i,r),CB(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=$$(),i=U$(e),o=MB(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=kB(e,o,i))&&(W$(t,e,i,r),CB(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=$$(),r=U$(e),i=MB(n,r);i.tag=2,null!=t&&(i.callback=t),null!==(t=kB(e,i,r))&&(W$(t,e,r,n),CB(t,e,r))}};function AB(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!Qz(n,r)||!Qz(i,o))}function _B(e,t,n){var r=!1,i=yj,o=t.contextType;return"object"==typeof o&&null!==o?o=mB(o):(i=Sj(t)?xj:vj.current,o=(r=null!=(r=t.contextTypes))?wj(e,i):yj),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=OB,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function LB(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&OB.enqueueReplaceState(t,t.state,null)}function IB(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=TB,wB(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=mB(o):(o=Sj(t)?xj:vj.current,i.context=wj(e,o)),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(NB(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&OB.enqueueReplaceState(i,i.state,null),EB(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function RB(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(JL(309));var r=n.stateNode}if(!r)throw Error(JL(147,e));var i=r,o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=i.refs;t===TB&&(t=i.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!=typeof e)throw Error(JL(284));if(!n._owner)throw Error(JL(290,e))}return e}function PB(e,t){throw e=Object.prototype.toString.call(t),Error(JL(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function zB(e){return(0,e._init)(e._payload)}function FB(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=MU(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=EU(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function l(e,t,n,r){var o=n.type;return o===mI?c(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===kI&&zB(o)===t.type)?((r=i(t,n.props)).ref=RB(e,t,n),r.return=e,r):((r=kU(n.type,n.key,n.props,null,e.mode,r)).ref=RB(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=DU(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function c(e,t,n,r,o){return null===t||7!==t.tag?((t=CU(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=EU(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case hI:return(n=kU(t.type,t.key,t.props,null,e.mode,n)).ref=RB(e,null,t),n.return=e,n;case pI:return(t=DU(t,e.mode,n)).return=e,t;case kI:return d(e,(0,t._init)(t._payload),n)}if(YI(t)||EI(t))return(t=CU(t,e.mode,n,null)).return=e,t;PB(e,t)}return null}function f(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case hI:return n.key===i?l(e,t,n,r):null;case pI:return n.key===i?u(e,t,n,r):null;case kI:return f(e,t,(i=n._init)(n._payload),r)}if(YI(n)||EI(n))return null!==i?null:c(e,t,n,r,null);PB(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case hI:return l(t,e=e.get(null===r.key?n:r.key)||null,r,i);case pI:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case kI:return h(e,t,n,(0,r._init)(r._payload),i)}if(YI(r)||EI(r))return c(t,e=e.get(n)||null,r,i,null);PB(t,r)}return null}function p(i,a,s,l){for(var u=null,c=null,p=a,m=a=0,g=null;null!==p&&m<s.length;m++){p.index>m?(g=p,p=null):g=p.sibling;var y=f(i,p,s[m],l);if(null===y){null===p&&(p=g);break}e&&p&&null===y.alternate&&t(i,p),a=o(y,a,m),null===c?u=y:c.sibling=y,c=y,p=g}if(m===s.length)return n(i,p),Kj&&Hj(i,m),u;if(null===p){for(;m<s.length;m++)null!==(p=d(i,s[m],l))&&(a=o(p,a,m),null===c?u=p:c.sibling=p,c=p);return Kj&&Hj(i,m),u}for(p=r(i,p);m<s.length;m++)null!==(g=h(p,i,m,s[m],l))&&(e&&null!==g.alternate&&p.delete(null===g.key?m:g.key),a=o(g,a,m),null===c?u=g:c.sibling=g,c=g);return e&&p.forEach((function(e){return t(i,e)})),Kj&&Hj(i,m),u}function m(i,a,s,l){var u=EI(s);if("function"!=typeof u)throw Error(JL(150));if(null==(s=u.call(s)))throw Error(JL(151));for(var c=u=null,p=a,m=a=0,g=null,y=s.next();null!==p&&!y.done;m++,y=s.next()){p.index>m?(g=p,p=null):g=p.sibling;var v=f(i,p,y.value,l);if(null===v){null===p&&(p=g);break}e&&p&&null===v.alternate&&t(i,p),a=o(v,a,m),null===c?u=v:c.sibling=v,c=v,p=g}if(y.done)return n(i,p),Kj&&Hj(i,m),u;if(null===p){for(;!y.done;m++,y=s.next())null!==(y=d(i,y.value,l))&&(a=o(y,a,m),null===c?u=y:c.sibling=y,c=y);return Kj&&Hj(i,m),u}for(p=r(i,p);!y.done;m++,y=s.next())null!==(y=h(p,i,m,y.value,l))&&(e&&null!==y.alternate&&p.delete(null===y.key?m:y.key),a=o(y,a,m),null===c?u=y:c.sibling=y,c=y);return e&&p.forEach((function(e){return t(i,e)})),Kj&&Hj(i,m),u}return function e(r,o,s,l){if("object"==typeof s&&null!==s&&s.type===mI&&null===s.key&&(s=s.props.children),"object"==typeof s&&null!==s){switch(s.$$typeof){case hI:e:{for(var u=s.key,c=o;null!==c;){if(c.key===u){if((u=s.type)===mI){if(7===c.tag){n(r,c.sibling),(o=i(c,s.props.children)).return=r,r=o;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===kI&&zB(u)===c.type){n(r,c.sibling),(o=i(c,s.props)).ref=RB(r,c,s),o.return=r,r=o;break e}n(r,c);break}t(r,c),c=c.sibling}s.type===mI?((o=CU(s.props.children,r.mode,l,s.key)).return=r,r=o):((l=kU(s.type,s.key,s.props,null,r.mode,l)).ref=RB(r,o,s),l.return=r,r=l)}return a(r);case pI:e:{for(c=s.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===s.containerInfo&&o.stateNode.implementation===s.implementation){n(r,o.sibling),(o=i(o,s.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=DU(s,r.mode,l)).return=r,r=o}return a(r);case kI:return e(r,o,(c=s._init)(s._payload),l)}if(YI(s))return p(r,o,s,l);if(EI(s))return m(r,o,s,l);PB(r,s)}return"string"==typeof s&&""!==s||"number"==typeof s?(s=""+s,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,s)).return=r,r=o):(n(r,o),(o=EU(s,r.mode,l)).return=r,r=o),a(r)):n(r,o)}}var jB=FB(!0),BB=FB(!1),HB={},VB=pj(HB),$B=pj(HB),UB=pj(HB);function WB(e){if(e===HB)throw Error(JL(174));return e}function YB(e,t){switch(gj(UB,t),gj($B,e),gj(VB,HB),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:eR(null,"");break;default:t=eR(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}mj(VB),gj(VB,t)}function KB(){mj(VB),mj($B),mj(UB)}function GB(e){WB(UB.current);var t=WB(VB.current),n=eR(t,e.type);t!==n&&(gj($B,e),gj(VB,n))}function XB(e){$B.current===e&&(mj(VB),mj($B))}var JB=pj(0);function QB(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ZB=[];function eH(){for(var e=0;e<ZB.length;e++)ZB[e]._workInProgressVersionPrimary=null;ZB.length=0}var tH=fI.ReactCurrentDispatcher,nH=fI.ReactCurrentBatchConfig,rH=0,iH=null,oH=null,aH=null,sH=!1,lH=!1,uH=0,cH=0;function dH(){throw Error(JL(321))}function fH(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Jz(e[n],t[n]))return!1;return!0}function hH(e,t,n,r,i,o){if(rH=o,iH=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,tH.current=null===e||null===e.memoizedState?XH:JH,e=n(r,i),lH){o=0;do{if(lH=!1,uH=0,25<=o)throw Error(JL(301));o+=1,aH=oH=null,t.updateQueue=null,tH.current=QH,e=n(r,i)}while(lH)}if(tH.current=GH,t=null!==oH&&null!==oH.next,rH=0,aH=oH=iH=null,sH=!1,t)throw Error(JL(300));return e}function pH(){var e=0!==uH;return uH=0,e}function mH(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===aH?iH.memoizedState=aH=e:aH=aH.next=e,aH}function gH(){if(null===oH){var e=iH.alternate;e=null!==e?e.memoizedState:null}else e=oH.next;var t=null===aH?iH.memoizedState:aH.next;if(null!==t)aH=t,oH=e;else{if(null===e)throw Error(JL(310));e={memoizedState:(oH=e).memoizedState,baseState:oH.baseState,baseQueue:oH.baseQueue,queue:oH.queue,next:null},null===aH?iH.memoizedState=aH=e:aH=aH.next=e}return aH}function yH(e,t){return"function"==typeof t?t(e):t}function vH(e){var t=gH(),n=t.queue;if(null===n)throw Error(JL(311));n.lastRenderedReducer=e;var r=oH,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(null!==i){o=i.next,r=r.baseState;var s=a=null,l=null,u=o;do{var c=u.lane;if((rH&c)===c)null!==l&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===l?(s=l=d,a=r):l=l.next=d,iH.lanes|=c,q$|=c}u=u.next}while(null!==u&&u!==o);null===l?a=r:l.next=s,Jz(r,t.memoizedState)||(uV=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{o=i.lane,iH.lanes|=o,q$|=o,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function bH(e){var t=gH(),n=t.queue;if(null===n)throw Error(JL(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var a=i=i.next;do{o=e(o,a.action),a=a.next}while(a!==i);Jz(o,t.memoizedState)||(uV=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function xH(){}function wH(e,t){var n=iH,r=gH(),i=t(),o=!Jz(r.memoizedState,i);if(o&&(r.memoizedState=i,uV=!0),r=r.queue,_H(kH.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||null!==aH&&1&aH.memoizedState.tag){if(n.flags|=2048,DH(9,MH.bind(null,n,r,i,t),void 0,null),null===b$)throw Error(JL(349));0!=(30&rH)||SH(n,t,i)}return i}function SH(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=iH.updateQueue)?(t={lastEffect:null,stores:null},iH.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function MH(e,t,n,r){t.value=n,t.getSnapshot=r,CH(t)&&qH(e)}function kH(e,t,n){return n((function(){CH(t)&&qH(e)}))}function CH(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Jz(e,n)}catch(e){return!0}}function qH(e){var t=bB(e,1);null!==t&&W$(t,e,1,-1)}function EH(e){var t=mH();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:yH,lastRenderedState:e},t.queue=e,e=e.dispatch=UH.bind(null,iH,e),[t.memoizedState,e]}function DH(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=iH.updateQueue)?(t={lastEffect:null,stores:null},iH.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function TH(){return gH().memoizedState}function NH(e,t,n,r){var i=mH();iH.flags|=e,i.memoizedState=DH(1|t,n,void 0,void 0===r?null:r)}function OH(e,t,n,r){var i=gH();r=void 0===r?null:r;var o=void 0;if(null!==oH){var a=oH.memoizedState;if(o=a.destroy,null!==r&&fH(r,a.deps))return void(i.memoizedState=DH(t,n,o,r))}iH.flags|=e,i.memoizedState=DH(1|t,n,o,r)}function AH(e,t){return NH(8390656,8,e,t)}function _H(e,t){return OH(2048,8,e,t)}function LH(e,t){return OH(4,2,e,t)}function IH(e,t){return OH(4,4,e,t)}function RH(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function PH(e,t,n){return n=null!=n?n.concat([e]):null,OH(4,4,RH.bind(null,t,e),n)}function zH(){}function FH(e,t){var n=gH();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&fH(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function jH(e,t){var n=gH();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&fH(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function BH(e,t,n){return 0==(21&rH)?(e.baseState&&(e.baseState=!1,uV=!0),e.memoizedState=n):(Jz(n,t)||(n=aP(),iH.lanes|=n,q$|=n,e.baseState=!0),t)}function HH(e,t){var n=cP;cP=0!==n&&4>n?n:4,e(!0);var r=nH.transition;nH.transition={};try{e(!1),t()}finally{cP=n,nH.transition=r}}function VH(){return gH().memoizedState}function $H(e,t,n){var r=U$(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},WH(e))YH(t,n);else if(null!==(n=vB(e,t,n,r))){W$(n,e,r,$$()),KH(n,t,r)}}function UH(e,t,n){var r=U$(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(WH(e))YH(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,Jz(s,a)){var l=t.interleaved;return null===l?(i.next=i,yB(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(e){}null!==(n=vB(e,t,i,r))&&(W$(n,e,r,i=$$()),KH(n,t,r))}}function WH(e){var t=e.alternate;return e===iH||null!==t&&t===iH}function YH(e,t){lH=sH=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function KH(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,uP(e,n)}}var GH={readContext:mB,useCallback:dH,useContext:dH,useEffect:dH,useImperativeHandle:dH,useInsertionEffect:dH,useLayoutEffect:dH,useMemo:dH,useReducer:dH,useRef:dH,useState:dH,useDebugValue:dH,useDeferredValue:dH,useTransition:dH,useMutableSource:dH,useSyncExternalStore:dH,useId:dH,unstable_isNewReconciler:!1},XH={readContext:mB,useCallback:function(e,t){return mH().memoizedState=[e,void 0===t?null:t],e},useContext:mB,useEffect:AH,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,NH(4194308,4,RH.bind(null,t,e),n)},useLayoutEffect:function(e,t){return NH(4194308,4,e,t)},useInsertionEffect:function(e,t){return NH(4,2,e,t)},useMemo:function(e,t){var n=mH();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=mH();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=$H.bind(null,iH,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},mH().memoizedState=e},useState:EH,useDebugValue:zH,useDeferredValue:function(e){return mH().memoizedState=e},useTransition:function(){var e=EH(!1),t=e[0];return e=HH.bind(null,e[1]),mH().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=iH,i=mH();if(Kj){if(void 0===n)throw Error(JL(407));n=n()}else{if(n=t(),null===b$)throw Error(JL(349));0!=(30&rH)||SH(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,AH(kH.bind(null,r,o,e),[e]),r.flags|=2048,DH(9,MH.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=mH(),t=b$.identifierPrefix;if(Kj){var n=Bj;t=":"+t+"R"+(n=(jj&~(1<<32-JR(jj)-1)).toString(32)+n),0<(n=uH++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=cH++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},JH={readContext:mB,useCallback:FH,useContext:mB,useEffect:_H,useImperativeHandle:PH,useInsertionEffect:LH,useLayoutEffect:IH,useMemo:jH,useReducer:vH,useRef:TH,useState:function(){return vH(yH)},useDebugValue:zH,useDeferredValue:function(e){return BH(gH(),oH.memoizedState,e)},useTransition:function(){return[vH(yH)[0],gH().memoizedState]},useMutableSource:xH,useSyncExternalStore:wH,useId:VH,unstable_isNewReconciler:!1},QH={readContext:mB,useCallback:FH,useContext:mB,useEffect:_H,useImperativeHandle:PH,useInsertionEffect:LH,useLayoutEffect:IH,useMemo:jH,useReducer:bH,useRef:TH,useState:function(){return bH(yH)},useDebugValue:zH,useDeferredValue:function(e){var t=gH();return null===oH?t.memoizedState=e:BH(t,oH.memoizedState,e)},useTransition:function(){return[bH(yH)[0],gH().memoizedState]},useMutableSource:xH,useSyncExternalStore:wH,useId:VH,unstable_isNewReconciler:!1};function ZH(e,t){try{var n="",r=t;do{n+=_I(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i,digest:null}}function eV(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function tV(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var nV="function"==typeof WeakMap?WeakMap:Map;function rV(e,t,n){(n=MB(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){L$||(L$=!0,I$=r),tV(0,t)},n}function iV(e,t,n){(n=MB(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){tV(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){tV(0,t),"function"!=typeof r&&(null===R$?R$=new Set([this]):R$.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function oV(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new nV;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=mU.bind(null,e,t,n),t.then(e,e))}function aV(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function sV(e,t,n,r,i){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=MB(-1,1)).tag=2,kB(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var lV=fI.ReactCurrentOwner,uV=!1;function cV(e,t,n,r){t.child=null===e?BB(t,null,n,r):jB(t,e.child,n,r)}function dV(e,t,n,r,i){n=n.render;var o=t.ref;return pB(t,i),r=hH(e,t,n,r,o,i),n=pH(),null===e||uV?(Kj&&n&&$j(t),t.flags|=1,cV(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,LV(e,t,i))}function fV(e,t,n,r,i){if(null===e){var o=n.type;return"function"!=typeof o||SU(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=kU(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,hV(e,t,o,r,i))}if(o=e.child,0==(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:Qz)(a,r)&&e.ref===t.ref)return LV(e,t,i)}return t.flags|=1,(e=MU(o,r)).ref=t.ref,e.return=t,t.child=e}function hV(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(Qz(o,r)&&e.ref===t.ref){if(uV=!1,t.pendingProps=r=o,0==(e.lanes&i))return t.lanes=e.lanes,LV(e,t,i);0!=(131072&e.flags)&&(uV=!0)}}return gV(e,t,n,r,i)}function pV(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},gj(M$,S$),S$|=n;else{if(0==(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,gj(M$,S$),S$|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,gj(M$,S$),S$|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,gj(M$,S$),S$|=r;return cV(e,t,i,n),t.child}function mV(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function gV(e,t,n,r,i){var o=Sj(n)?xj:vj.current;return o=wj(t,o),pB(t,i),n=hH(e,t,n,r,o,i),r=pH(),null===e||uV?(Kj&&r&&$j(t),t.flags|=1,cV(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,LV(e,t,i))}function yV(e,t,n,r,i){if(Sj(n)){var o=!0;qj(t)}else o=!1;if(pB(t,i),null===t.stateNode)_V(e,t),_B(t,n,r),IB(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=mB(u):u=wj(t,u=Sj(n)?xj:vj.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&LB(t,a,r,u),xB=!1;var f=t.memoizedState;a.state=f,EB(t,r,a,i),l=t.memoizedState,s!==r||f!==l||bj.current||xB?("function"==typeof c&&(NB(t,n,c,r),l=t.memoizedState),(s=xB||AB(t,n,s,r,f,l,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,SB(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:aB(t.type,s),a.props=u,d=t.pendingProps,f=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=mB(l):l=wj(t,l=Sj(n)?xj:vj.current);var h=n.getDerivedStateFromProps;(c="function"==typeof h||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==l)&&LB(t,a,r,l),xB=!1,f=t.memoizedState,a.state=f,EB(t,r,a,i);var p=t.memoizedState;s!==d||f!==p||bj.current||xB?("function"==typeof h&&(NB(t,n,h,r),p=t.memoizedState),(u=xB||AB(t,n,u,r,f,p,l)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=l,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return vV(e,t,n,r,o,i)}function vV(e,t,n,r,i,o){mV(e,t);var a=0!=(128&t.flags);if(!r&&!a)return i&&Ej(t,n,!1),LV(e,t,o);r=t.stateNode,lV.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=jB(t,e.child,null,o),t.child=jB(t,null,s,o)):cV(e,t,s,o),t.memoizedState=r.state,i&&Ej(t,n,!0),t.child}function bV(e){var t=e.stateNode;t.pendingContext?kj(0,t.pendingContext,t.pendingContext!==t.context):t.context&&kj(0,t.context,!1),YB(e,t.containerInfo)}function xV(e,t,n,r,i){return rB(),iB(i),t.flags|=256,cV(e,t,n,r),t.child}var wV,SV,MV,kV,CV={dehydrated:null,treeContext:null,retryLane:0};function qV(e){return{baseLanes:e,cachePool:null,transitions:null}}function EV(e,t,n){var r,i=t.pendingProps,o=JB.current,a=!1,s=0!=(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&0!=(2&o)),r?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(o|=1),gj(JB,1&o),null===e)return Zj(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(s=i.children,e=i.fallback,a?(i=t.mode,a=t.child,s={mode:"hidden",children:s},0==(1&i)&&null!==a?(a.childLanes=0,a.pendingProps=s):a=qU(s,i,0,null),e=CU(e,i,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=qV(n),t.memoizedState=CV,e):DV(t,s));if(null!==(o=e.memoizedState)&&null!==(r=o.dehydrated))return function(e,t,n,r,i,o,a){if(n)return 256&t.flags?(t.flags&=-257,TV(e,t,a,r=eV(Error(JL(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=qU({mode:"visible",children:r.children},i,0,null),(o=CU(o,i,a,null)).flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,0!=(1&t.mode)&&jB(t,e.child,null,a),t.child.memoizedState=qV(a),t.memoizedState=CV,o);if(0==(1&t.mode))return TV(e,t,a,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var s=r.dgst;return r=s,TV(e,t,a,r=eV(o=Error(JL(419)),r,void 0))}if(s=0!=(a&e.childLanes),uV||s){if(null!==(r=b$)){switch(a&-a){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!=(i&(r.suspendedLanes|a))?0:i)&&i!==o.retryLane&&(o.retryLane=i,bB(e,i),W$(r,e,i,-1))}return oU(),TV(e,t,a,r=eV(Error(JL(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=yU.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Yj=ZF(i.nextSibling),Wj=t,Kj=!0,Gj=null,null!==e&&(Pj[zj++]=jj,Pj[zj++]=Bj,Pj[zj++]=Fj,jj=e.id,Bj=e.overflow,Fj=t),t=DV(t,r.children),t.flags|=4096,t)}(e,t,s,i,r,o,n);if(a){a=i.fallback,s=t.mode,r=(o=e.child).sibling;var l={mode:"hidden",children:i.children};return 0==(1&s)&&t.child!==o?((i=t.child).childLanes=0,i.pendingProps=l,t.deletions=null):(i=MU(o,l)).subtreeFlags=14680064&o.subtreeFlags,null!==r?a=MU(r,a):(a=CU(a,s,n,null)).flags|=2,a.return=t,i.return=t,i.sibling=a,t.child=i,i=a,a=t.child,s=null===(s=e.child.memoizedState)?qV(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},a.memoizedState=s,a.childLanes=e.childLanes&~n,t.memoizedState=CV,i}return e=(a=e.child).sibling,i=MU(a,{mode:"visible",children:i.children}),0==(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function DV(e,t){return(t=qU({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function TV(e,t,n,r){return null!==r&&iB(r),jB(t,e.child,null,n),(e=DV(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function NV(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),hB(e.return,t,n)}function OV(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function AV(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(cV(e,t,r.children,n),0!=(2&(r=JB.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&NV(e,n,t);else if(19===e.tag)NV(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(gj(JB,r),0==(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===QB(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),OV(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===QB(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}OV(t,!0,n,null,o);break;case"together":OV(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function _V(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function LV(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),q$|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(JL(153));if(null!==t.child){for(n=MU(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=MU(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function IV(e,t){if(!Kj)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function RV(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function PV(e,t,n){var r=t.pendingProps;switch(Uj(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return RV(t),null;case 1:case 17:return Sj(t.type)&&Mj(),RV(t),null;case 3:return r=t.stateNode,KB(),mj(bj),mj(vj),eH(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(tB(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==Gj&&(X$(Gj),Gj=null))),SV(e,t),RV(t),null;case 5:XB(t);var i=WB(UB.current);if(n=t.type,null!==e&&null!=t.stateNode)MV(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(JL(166));return RV(t),null}if(e=WB(VB.current),tB(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[nj]=t,r[rj]=o,e=0!=(1&t.mode),n){case"dialog":TF("cancel",r),TF("close",r);break;case"iframe":case"object":case"embed":TF("load",r);break;case"video":case"audio":for(i=0;i<CF.length;i++)TF(CF[i],r);break;case"source":TF("error",r);break;case"img":case"image":case"link":TF("error",r),TF("load",r);break;case"details":TF("toggle",r);break;case"input":HI(r,o),TF("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},TF("invalid",r);break;case"textarea":XI(r,o),TF("invalid",r)}for(var a in uR(n,o),i=null,o)if(o.hasOwnProperty(a)){var s=o[a];"children"===a?"string"==typeof s?r.textContent!==s&&(!0!==o.suppressHydrationWarning&&HF(r.textContent,s,e),i=["children",s]):"number"==typeof s&&r.textContent!==""+s&&(!0!==o.suppressHydrationWarning&&HF(r.textContent,s,e),i=["children",""+s]):ZL.hasOwnProperty(a)&&null!=s&&"onScroll"===a&&TF("scroll",r)}switch(n){case"input":zI(r),UI(r,o,!0);break;case"textarea":zI(r),QI(r);break;case"select":case"option":break;default:"function"==typeof o.onClick&&(r.onclick=VF)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{a=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ZI(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=a.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),"select"===n&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[nj]=t,e[rj]=r,wV(e,t,!1,!1),t.stateNode=e;e:{switch(a=cR(n,r),n){case"dialog":TF("cancel",e),TF("close",e),i=r;break;case"iframe":case"object":case"embed":TF("load",e),i=r;break;case"video":case"audio":for(i=0;i<CF.length;i++)TF(CF[i],e);i=r;break;case"source":TF("error",e),i=r;break;case"img":case"image":case"link":TF("error",e),TF("load",e),i=r;break;case"details":TF("toggle",e),i=r;break;case"input":HI(e,r),i=BI(e,r),TF("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=TI({},r,{value:void 0}),TF("invalid",e);break;case"textarea":XI(e,r),i=GI(e,r),TF("invalid",e)}for(o in uR(n,i),s=i)if(s.hasOwnProperty(o)){var l=s[o];"style"===o?sR(e,l):"dangerouslySetInnerHTML"===o?null!=(l=l?l.__html:void 0)&&nR(e,l):"children"===o?"string"==typeof l?("textarea"!==n||""!==l)&&rR(e,l):"number"==typeof l&&rR(e,""+l):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(ZL.hasOwnProperty(o)?null!=l&&"onScroll"===o&&TF("scroll",e):null!=l&&dI(e,o,l,a))}switch(n){case"input":zI(e),UI(e,r,!1);break;case"textarea":zI(e),QI(e);break;case"option":null!=r.value&&e.setAttribute("value",""+RI(r.value));break;case"select":e.multiple=!!r.multiple,null!=(o=r.value)?KI(e,!!r.multiple,o,!1):null!=r.defaultValue&&KI(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=VF)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return RV(t),null;case 6:if(e&&null!=t.stateNode)kV(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(JL(166));if(n=WB(UB.current),WB(VB.current),tB(t)){if(r=t.stateNode,n=t.memoizedProps,r[nj]=t,(o=r.nodeValue!==n)&&null!==(e=Wj))switch(e.tag){case 3:HF(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&HF(r.nodeValue,n,0!=(1&e.mode))}o&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[nj]=t,t.stateNode=r}return RV(t),null;case 13:if(mj(JB),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(Kj&&null!==Yj&&0!=(1&t.mode)&&0==(128&t.flags))nB(),rB(),t.flags|=98560,o=!1;else if(o=tB(t),null!==r&&null!==r.dehydrated){if(null===e){if(!o)throw Error(JL(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(JL(317));o[nj]=t}else rB(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;RV(t),o=!1}else null!==Gj&&(X$(Gj),Gj=null),o=!0;if(!o)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&JB.current)?0===k$&&(k$=3):oU())),null!==t.updateQueue&&(t.flags|=4),RV(t),null);case 4:return KB(),SV(e,t),null===e&&AF(t.stateNode.containerInfo),RV(t),null;case 10:return fB(t.type._context),RV(t),null;case 19:if(mj(JB),null===(o=t.memoizedState))return RV(t),null;if(r=0!=(128&t.flags),null===(a=o.rendering))if(r)IV(o,!1);else{if(0!==k$||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(a=QB(e))){for(t.flags|=128,IV(o,!1),null!==(r=a.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(o=n).flags&=14680066,null===(a=o.alternate)?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return gj(JB,1&JB.current|2),t.child}e=e.sibling}null!==o.tail&&HR()>A$&&(t.flags|=128,r=!0,IV(o,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=QB(a))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),IV(o,!0),null===o.tail&&"hidden"===o.tailMode&&!a.alternate&&!Kj)return RV(t),null}else 2*HR()-o.renderingStartTime>A$&&1073741824!==n&&(t.flags|=128,r=!0,IV(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(null!==(n=o.last)?n.sibling=a:t.child=a,o.last=a)}return null!==o.tail?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=HR(),t.sibling=null,n=JB.current,gj(JB,r?1&n|2:1&n),t):(RV(t),null);case 22:case 23:return tU(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&S$)&&(RV(t),6&t.subtreeFlags&&(t.flags|=8192)):RV(t),null;case 24:case 25:return null}throw Error(JL(156,t.tag))}function zV(e,t){switch(Uj(t),t.tag){case 1:return Sj(t.type)&&Mj(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return KB(),mj(bj),mj(vj),eH(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return XB(t),null;case 13:if(mj(JB),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(JL(340));rB()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return mj(JB),null;case 4:return KB(),null;case 10:return fB(t.type._context),null;case 22:case 23:return tU(),null;default:return null}}wV=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},SV=function(){},MV=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,WB(VB.current);var o,a=null;switch(n){case"input":i=BI(e,i),r=BI(e,r),a=[];break;case"select":i=TI({},i,{value:void 0}),r=TI({},r,{value:void 0}),a=[];break;case"textarea":i=GI(e,i),r=GI(e,r),a=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=VF)}for(u in uR(n,r),n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&null!=i[u])if("style"===u){var s=i[u];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(ZL.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var l=r[u];if(s=null!=i?i[u]:void 0,r.hasOwnProperty(u)&&l!==s&&(null!=l||null!=s))if("style"===u)if(s){for(o in s)!s.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&s[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(a||(a=[]),a.push(u,n)),n=l;else"dangerouslySetInnerHTML"===u?(l=l?l.__html:void 0,s=s?s.__html:void 0,null!=l&&s!==l&&(a=a||[]).push(u,l)):"children"===u?"string"!=typeof l&&"number"!=typeof l||(a=a||[]).push(u,""+l):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(ZL.hasOwnProperty(u)?(null!=l&&"onScroll"===u&&TF("scroll",e),a||s===l||(a=[])):(a=a||[]).push(u,l))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},kV=function(e,t,n,r){n!==r&&(t.flags|=4)};var FV=!1,jV=!1,BV="function"==typeof WeakSet?WeakSet:Set,HV=null;function VV(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){pU(e,t,n)}else n.current=null}function $V(e,t,n){try{n()}catch(n){pU(e,t,n)}}var UV=!1;function WV(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&$V(t,n,o)}i=i.next}while(i!==r)}}function YV(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function KV(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function GV(e){var t=e.alternate;null!==t&&(e.alternate=null,GV(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[nj],delete t[rj],delete t[oj],delete t[aj],delete t[sj])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function XV(e){return 5===e.tag||3===e.tag||4===e.tag}function JV(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||XV(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function QV(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=VF));else if(4!==r&&null!==(e=e.child))for(QV(e,t,n),e=e.sibling;null!==e;)QV(e,t,n),e=e.sibling}function ZV(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ZV(e,t,n),e=e.sibling;null!==e;)ZV(e,t,n),e=e.sibling}var e$=null,t$=!1;function n$(e,t,n){for(n=n.child;null!==n;)r$(e,t,n),n=n.sibling}function r$(e,t,n){if(XR&&"function"==typeof XR.onCommitFiberUnmount)try{XR.onCommitFiberUnmount(GR,n)}catch(e){}switch(n.tag){case 5:jV||VV(n,t);case 6:var r=e$,i=t$;e$=null,n$(e,t,n),t$=i,null!==(e$=r)&&(t$?(e=e$,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):e$.removeChild(n.stateNode));break;case 18:null!==e$&&(t$?(e=e$,n=n.stateNode,8===e.nodeType?QF(e.parentNode,n):1===e.nodeType&&QF(e,n),_P(e)):QF(e$,n.stateNode));break;case 4:r=e$,i=t$,e$=n.stateNode.containerInfo,t$=!0,n$(e,t,n),e$=r,t$=i;break;case 0:case 11:case 14:case 15:if(!jV&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(0!=(2&o)||0!=(4&o))&&$V(n,t,a),i=i.next}while(i!==r)}n$(e,t,n);break;case 1:if(!jV&&(VV(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){pU(n,t,e)}n$(e,t,n);break;case 21:n$(e,t,n);break;case 22:1&n.mode?(jV=(r=jV)||null!==n.memoizedState,n$(e,t,n),jV=r):n$(e,t,n);break;default:n$(e,t,n)}}function i$(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new BV),t.forEach((function(t){var r=vU.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function o$(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,a=t,s=a;e:for(;null!==s;){switch(s.tag){case 5:e$=s.stateNode,t$=!1;break e;case 3:case 4:e$=s.stateNode.containerInfo,t$=!0;break e}s=s.return}if(null===e$)throw Error(JL(160));r$(o,a,i),e$=null,t$=!1;var l=i.alternate;null!==l&&(l.return=null),i.return=null}catch(e){pU(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)a$(t,e),t=t.sibling}function a$(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(o$(t,e),s$(e),4&r){try{WV(3,e,e.return),YV(3,e)}catch(t){pU(e,e.return,t)}try{WV(5,e,e.return)}catch(t){pU(e,e.return,t)}}break;case 1:o$(t,e),s$(e),512&r&&null!==n&&VV(n,n.return);break;case 5:if(o$(t,e),s$(e),512&r&&null!==n&&VV(n,n.return),32&e.flags){var i=e.stateNode;try{rR(i,"")}catch(t){pU(e,e.return,t)}}if(4&r&&null!=(i=e.stateNode)){var o=e.memoizedProps,a=null!==n?n.memoizedProps:o,s=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===s&&"radio"===o.type&&null!=o.name&&VI(i,o),cR(s,a);var u=cR(s,o);for(a=0;a<l.length;a+=2){var c=l[a],d=l[a+1];"style"===c?sR(i,d):"dangerouslySetInnerHTML"===c?nR(i,d):"children"===c?rR(i,d):dI(i,c,d,u)}switch(s){case"input":$I(i,o);break;case"textarea":JI(i,o);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var h=o.value;null!=h?KI(i,!!o.multiple,h,!1):f!==!!o.multiple&&(null!=o.defaultValue?KI(i,!!o.multiple,o.defaultValue,!0):KI(i,!!o.multiple,o.multiple?[]:"",!1))}i[rj]=o}catch(t){pU(e,e.return,t)}}break;case 6:if(o$(t,e),s$(e),4&r){if(null===e.stateNode)throw Error(JL(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(t){pU(e,e.return,t)}}break;case 3:if(o$(t,e),s$(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{_P(t.containerInfo)}catch(t){pU(e,e.return,t)}break;case 4:default:o$(t,e),s$(e);break;case 13:o$(t,e),s$(e),8192&(i=e.child).flags&&(o=null!==i.memoizedState,i.stateNode.isHidden=o,!o||null!==i.alternate&&null!==i.alternate.memoizedState||(O$=HR())),4&r&&i$(e);break;case 22:if(c=null!==n&&null!==n.memoizedState,1&e.mode?(jV=(u=jV)||c,o$(t,e),jV=u):o$(t,e),s$(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!c&&0!=(1&e.mode))for(HV=e,c=e.child;null!==c;){for(d=HV=c;null!==HV;){switch(h=(f=HV).child,f.tag){case 0:case 11:case 14:case 15:WV(4,f,f.return);break;case 1:VV(f,f.return);var p=f.stateNode;if("function"==typeof p.componentWillUnmount){r=f,n=f.return;try{t=r,p.props=t.memoizedProps,p.state=t.memoizedState,p.componentWillUnmount()}catch(e){pU(r,n,e)}}break;case 5:VV(f,f.return);break;case 22:if(null!==f.memoizedState){d$(d);continue}}null!==h?(h.return=f,HV=h):d$(d)}c=c.sibling}e:for(c=null,d=e;;){if(5===d.tag){if(null===c){c=d;try{i=d.stateNode,u?"function"==typeof(o=i.style).setProperty?o.setProperty("display","none","important"):o.display="none":(s=d.stateNode,a=null!=(l=d.memoizedProps.style)&&l.hasOwnProperty("display")?l.display:null,s.style.display=aR("display",a))}catch(t){pU(e,e.return,t)}}}else if(6===d.tag){if(null===c)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(t){pU(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:o$(t,e),s$(e),4&r&&i$(e);case 21:}}function s$(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(XV(n)){var r=n;break e}n=n.return}throw Error(JL(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(rR(i,""),r.flags&=-33),ZV(e,JV(e),i);break;case 3:case 4:var o=r.stateNode.containerInfo;QV(e,JV(e),o);break;default:throw Error(JL(161))}}catch(t){pU(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function l$(e,t,n){HV=e,u$(e)}function u$(e,t,n){for(var r=0!=(1&e.mode);null!==HV;){var i=HV,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||FV;if(!a){var s=i.alternate,l=null!==s&&null!==s.memoizedState||jV;s=FV;var u=jV;if(FV=a,(jV=l)&&!u)for(HV=i;null!==HV;)l=(a=HV).child,22===a.tag&&null!==a.memoizedState?f$(i):null!==l?(l.return=a,HV=l):f$(i);for(;null!==o;)HV=o,u$(o),o=o.sibling;HV=i,FV=s,jV=u}c$(e)}else 0!=(8772&i.subtreeFlags)&&null!==o?(o.return=i,HV=o):c$(e)}}function c$(e){for(;null!==HV;){var t=HV;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:jV||YV(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!jV)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:aB(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;null!==o&&DB(t,o,r);break;case 3:var a=t.updateQueue;if(null!==a){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}DB(t,a,n)}break;case 5:var s=t.stateNode;if(null===n&&4&t.flags){n=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var c=u.memoizedState;if(null!==c){var d=c.dehydrated;null!==d&&_P(d)}}}break;default:throw Error(JL(163))}jV||512&t.flags&&KV(t)}catch(e){pU(t,t.return,e)}}if(t===e){HV=null;break}if(null!==(n=t.sibling)){n.return=t.return,HV=n;break}HV=t.return}}function d$(e){for(;null!==HV;){var t=HV;if(t===e){HV=null;break}var n=t.sibling;if(null!==n){n.return=t.return,HV=n;break}HV=t.return}}function f$(e){for(;null!==HV;){var t=HV;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{YV(4,t)}catch(e){pU(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(e){pU(t,i,e)}}var o=t.return;try{KV(t)}catch(e){pU(t,o,e)}break;case 5:var a=t.return;try{KV(t)}catch(e){pU(t,a,e)}}}catch(e){pU(t,t.return,e)}if(t===e){HV=null;break}var s=t.sibling;if(null!==s){s.return=t.return,HV=s;break}HV=t.return}}var h$,p$=Math.ceil,m$=fI.ReactCurrentDispatcher,g$=fI.ReactCurrentOwner,y$=fI.ReactCurrentBatchConfig,v$=0,b$=null,x$=null,w$=0,S$=0,M$=pj(0),k$=0,C$=null,q$=0,E$=0,D$=0,T$=null,N$=null,O$=0,A$=1/0,_$=null,L$=!1,I$=null,R$=null,P$=!1,z$=null,F$=0,j$=0,B$=null,H$=-1,V$=0;function $$(){return 0!=(6&v$)?HR():-1!==H$?H$:H$=HR()}function U$(e){return 0==(1&e.mode)?1:0!=(2&v$)&&0!==w$?w$&-w$:null!==oB.transition?(0===V$&&(V$=aP()),V$):0!==(e=cP)?e:e=void 0===(e=window.event)?16:BP(e.type)}function W$(e,t,n,r){if(50<j$)throw j$=0,B$=null,Error(JL(185));lP(e,n,r),0!=(2&v$)&&e===b$||(e===b$&&(0==(2&v$)&&(E$|=n),4===k$&&J$(e,w$)),Y$(e,r),1===n&&0===v$&&0==(1&t.mode)&&(A$=HR()+500,Tj&&Aj()))}function Y$(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-JR(o),s=1<<a,l=i[a];-1===l?0!=(s&n)&&0==(s&r)||(i[a]=iP(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=rP(e,e===b$?w$:0);if(0===r)null!==n&&FR(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&FR(n),1===t)0===e.tag?function(e){Tj=!0,Oj(e)}(Q$.bind(null,e)):Oj(Q$.bind(null,e)),XF((function(){0==(6&v$)&&Aj()})),n=null;else{switch(dP(r)){case 1:n=$R;break;case 4:n=UR;break;case 16:default:n=WR;break;case 536870912:n=KR}n=bU(n,K$.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function K$(e,t){if(H$=-1,V$=0,0!=(6&v$))throw Error(JL(327));var n=e.callbackNode;if(fU()&&e.callbackNode!==n)return null;var r=rP(e,e===b$?w$:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=aU(e,r);else{t=r;var i=v$;v$|=2;var o=iU();for(b$===e&&w$===t||(_$=null,A$=HR()+500,nU(e,t));;)try{lU();break}catch(t){rU(e,t)}dB(),m$.current=o,v$=i,null!==x$?t=0:(b$=null,w$=0,t=k$)}if(0!==t){if(2===t&&(0!==(i=oP(e))&&(r=i,t=G$(e,i))),1===t)throw n=C$,nU(e,0),J$(e,r),Y$(e,HR()),n;if(6===t)J$(e,r);else{if(i=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!Jz(o(),i))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)&&(2===(t=aU(e,r))&&(0!==(o=oP(e))&&(r=o,t=G$(e,o))),1===t))throw n=C$,nU(e,0),J$(e,r),Y$(e,HR()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(JL(345));case 2:case 5:dU(e,N$,_$);break;case 3:if(J$(e,r),(130023424&r)===r&&10<(t=O$+500-HR())){if(0!==rP(e,0))break;if(((i=e.suspendedLanes)&r)!==r){$$(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=YF(dU.bind(null,e,N$,_$),t);break}dU(e,N$,_$);break;case 4:if(J$(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-JR(r);o=1<<a,(a=t[a])>i&&(i=a),r&=~o}if(r=i,10<(r=(120>(r=HR()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*p$(r/1960))-r)){e.timeoutHandle=YF(dU.bind(null,e,N$,_$),r);break}dU(e,N$,_$);break;default:throw Error(JL(329))}}}return Y$(e,HR()),e.callbackNode===n?K$.bind(null,e):null}function G$(e,t){var n=T$;return e.current.memoizedState.isDehydrated&&(nU(e,t).flags|=256),2!==(e=aU(e,t))&&(t=N$,N$=n,null!==t&&X$(t)),e}function X$(e){null===N$?N$=e:N$.push.apply(N$,e)}function J$(e,t){for(t&=~D$,t&=~E$,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-JR(t),r=1<<n;e[n]=-1,t&=~r}}function Q$(e){if(0!=(6&v$))throw Error(JL(327));fU();var t=rP(e,0);if(0==(1&t))return Y$(e,HR()),null;var n=aU(e,t);if(0!==e.tag&&2===n){var r=oP(e);0!==r&&(t=r,n=G$(e,r))}if(1===n)throw n=C$,nU(e,0),J$(e,t),Y$(e,HR()),n;if(6===n)throw Error(JL(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,dU(e,N$,_$),Y$(e,HR()),null}function Z$(e,t){var n=v$;v$|=1;try{return e(t)}finally{0===(v$=n)&&(A$=HR()+500,Tj&&Aj())}}function eU(e){null!==z$&&0===z$.tag&&0==(6&v$)&&fU();var t=v$;v$|=1;var n=y$.transition,r=cP;try{if(y$.transition=null,cP=1,e)return e()}finally{cP=r,y$.transition=n,0==(6&(v$=t))&&Aj()}}function tU(){S$=M$.current,mj(M$)}function nU(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,KF(n)),null!==x$)for(n=x$.return;null!==n;){var r=n;switch(Uj(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Mj();break;case 3:KB(),mj(bj),mj(vj),eH();break;case 5:XB(r);break;case 4:KB();break;case 13:case 19:mj(JB);break;case 10:fB(r.type._context);break;case 22:case 23:tU()}n=n.return}if(b$=e,x$=e=MU(e.current,null),w$=S$=t,k$=0,C$=null,D$=E$=q$=0,N$=T$=null,null!==gB){for(t=0;t<gB.length;t++)if(null!==(r=(n=gB[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}gB=null}return e}function rU(e,t){for(;;){var n=x$;try{if(dB(),tH.current=GH,sH){for(var r=iH.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}sH=!1}if(rH=0,aH=oH=iH=null,lH=!1,uH=0,g$.current=null,null===n||null===n.return){k$=1,C$=t,x$=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=w$,s.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var u=l,c=s,d=c.tag;if(0==(1&c.mode)&&(0===d||11===d||15===d)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var h=aV(a);if(null!==h){h.flags&=-257,sV(h,a,s,0,t),1&h.mode&&oV(o,u,t),l=u;var p=(t=h).updateQueue;if(null===p){var m=new Set;m.add(l),t.updateQueue=m}else p.add(l);break e}if(0==(1&t)){oV(o,u,t),oU();break e}l=Error(JL(426))}else if(Kj&&1&s.mode){var g=aV(a);if(null!==g){0==(65536&g.flags)&&(g.flags|=256),sV(g,a,s,0,t),iB(ZH(l,s));break e}}o=l=ZH(l,s),4!==k$&&(k$=2),null===T$?T$=[o]:T$.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t,qB(o,rV(0,l,t));break e;case 1:s=l;var y=o.type,v=o.stateNode;if(0==(128&o.flags)&&("function"==typeof y.getDerivedStateFromError||null!==v&&"function"==typeof v.componentDidCatch&&(null===R$||!R$.has(v)))){o.flags|=65536,t&=-t,o.lanes|=t,qB(o,iV(o,s,t));break e}}o=o.return}while(null!==o)}cU(n)}catch(e){t=e,x$===n&&null!==n&&(x$=n=n.return);continue}break}}function iU(){var e=m$.current;return m$.current=GH,null===e?GH:e}function oU(){0!==k$&&3!==k$&&2!==k$||(k$=4),null===b$||0==(268435455&q$)&&0==(268435455&E$)||J$(b$,w$)}function aU(e,t){var n=v$;v$|=2;var r=iU();for(b$===e&&w$===t||(_$=null,nU(e,t));;)try{sU();break}catch(t){rU(e,t)}if(dB(),v$=n,m$.current=r,null!==x$)throw Error(JL(261));return b$=null,w$=0,k$}function sU(){for(;null!==x$;)uU(x$)}function lU(){for(;null!==x$&&!jR();)uU(x$)}function uU(e){var t=h$(e.alternate,e,S$);e.memoizedProps=e.pendingProps,null===t?cU(e):x$=t,g$.current=null}function cU(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=PV(n,t,S$)))return void(x$=n)}else{if(null!==(n=zV(n,t)))return n.flags&=32767,void(x$=n);if(null===e)return k$=6,void(x$=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(x$=t);x$=t=e}while(null!==t);0===k$&&(k$=5)}function dU(e,t,n){var r=cP,i=y$.transition;try{y$.transition=null,cP=1,function(e,t,n,r){do{fU()}while(null!==z$);if(0!=(6&v$))throw Error(JL(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(JL(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-JR(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,o),e===b$&&(x$=b$=null,w$=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||P$||(P$=!0,bU(WR,(function(){return fU(),null}))),o=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||o){o=y$.transition,y$.transition=null;var a=cP;cP=1;var s=v$;v$|=4,g$.current=null,function(e,t){if($F=IP,rF(e=nF())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch(e){n=null;break e}var a=0,s=-1,l=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var h;d!==n||0!==i&&3!==d.nodeType||(s=a+i),d!==o||0!==r&&3!==d.nodeType||(l=a+r),3===d.nodeType&&(a+=d.nodeValue.length),null!==(h=d.firstChild);)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++u===i&&(s=a),f===o&&++c===r&&(l=a),null!==(h=d.nextSibling))break;f=(d=f).parentNode}d=h}n=-1===s||-1===l?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(UF={focusedElem:e,selectionRange:n},IP=!1,HV=t;null!==HV;)if(e=(t=HV).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,HV=e;else for(;null!==HV;){t=HV;try{var p=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==p){var m=p.memoizedProps,g=p.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?m:aB(t.type,m),g);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var b=t.stateNode.containerInfo;1===b.nodeType?b.textContent="":9===b.nodeType&&b.documentElement&&b.removeChild(b.documentElement);break;default:throw Error(JL(163))}}catch(e){pU(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,HV=e;break}HV=t.return}p=UV,UV=!1}(e,n),a$(n,e),iF(UF),IP=!!$F,UF=$F=null,e.current=n,l$(n),BR(),v$=s,cP=a,y$.transition=o}else e.current=n;if(P$&&(P$=!1,z$=e,F$=i),o=e.pendingLanes,0===o&&(R$=null),function(e){if(XR&&"function"==typeof XR.onCommitFiberRoot)try{XR.onCommitFiberRoot(GR,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),Y$(e,HR()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(L$)throw L$=!1,e=I$,I$=null,e;0!=(1&F$)&&0!==e.tag&&fU(),o=e.pendingLanes,0!=(1&o)?e===B$?j$++:(j$=0,B$=e):j$=0,Aj()}(e,t,n,r)}finally{y$.transition=i,cP=r}return null}function fU(){if(null!==z$){var e=dP(F$),t=y$.transition,n=cP;try{if(y$.transition=null,cP=16>e?16:e,null===z$)var r=!1;else{if(e=z$,z$=null,F$=0,0!=(6&v$))throw Error(JL(331));var i=v$;for(v$|=4,HV=e.current;null!==HV;){var o=HV,a=o.child;if(0!=(16&HV.flags)){var s=o.deletions;if(null!==s){for(var l=0;l<s.length;l++){var u=s[l];for(HV=u;null!==HV;){var c=HV;switch(c.tag){case 0:case 11:case 15:WV(8,c,o)}var d=c.child;if(null!==d)d.return=c,HV=d;else for(;null!==HV;){var f=(c=HV).sibling,h=c.return;if(GV(c),c===u){HV=null;break}if(null!==f){f.return=h,HV=f;break}HV=h}}}var p=o.alternate;if(null!==p){var m=p.child;if(null!==m){p.child=null;do{var g=m.sibling;m.sibling=null,m=g}while(null!==m)}}HV=o}}if(0!=(2064&o.subtreeFlags)&&null!==a)a.return=o,HV=a;else e:for(;null!==HV;){if(0!=(2048&(o=HV).flags))switch(o.tag){case 0:case 11:case 15:WV(9,o,o.return)}var y=o.sibling;if(null!==y){y.return=o.return,HV=y;break e}HV=o.return}}var v=e.current;for(HV=v;null!==HV;){var b=(a=HV).child;if(0!=(2064&a.subtreeFlags)&&null!==b)b.return=a,HV=b;else e:for(a=v;null!==HV;){if(0!=(2048&(s=HV).flags))try{switch(s.tag){case 0:case 11:case 15:YV(9,s)}}catch(e){pU(s,s.return,e)}if(s===a){HV=null;break e}var x=s.sibling;if(null!==x){x.return=s.return,HV=x;break e}HV=s.return}}if(v$=i,Aj(),XR&&"function"==typeof XR.onPostCommitFiberRoot)try{XR.onPostCommitFiberRoot(GR,e)}catch(e){}r=!0}return r}finally{cP=n,y$.transition=t}}return!1}function hU(e,t,n){e=kB(e,t=rV(0,t=ZH(n,t),1),1),t=$$(),null!==e&&(lP(e,1,t),Y$(e,t))}function pU(e,t,n){if(3===e.tag)hU(e,e,n);else for(;null!==t;){if(3===t.tag){hU(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===R$||!R$.has(r))){t=kB(t,e=iV(t,e=ZH(n,e),1),1),e=$$(),null!==t&&(lP(t,1,e),Y$(t,e));break}}t=t.return}}function mU(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=$$(),e.pingedLanes|=e.suspendedLanes&n,b$===e&&(w$&n)===n&&(4===k$||3===k$&&(130023424&w$)===w$&&500>HR()-O$?nU(e,0):D$|=n),Y$(e,t)}function gU(e,t){0===t&&(0==(1&e.mode)?t=1:(t=tP,0==(130023424&(tP<<=1))&&(tP=4194304)));var n=$$();null!==(e=bB(e,t))&&(lP(e,t,n),Y$(e,n))}function yU(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),gU(e,n)}function vU(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(JL(314))}null!==r&&r.delete(t),gU(e,n)}function bU(e,t){return zR(e,t)}function xU(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function wU(e,t,n,r){return new xU(e,t,n,r)}function SU(e){return!(!(e=e.prototype)||!e.isReactComponent)}function MU(e,t){var n=e.alternate;return null===n?((n=wU(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function kU(e,t,n,r,i,o){var a=2;if(r=e,"function"==typeof e)SU(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case mI:return CU(n.children,i,o,t);case gI:a=8,i|=8;break;case yI:return(e=wU(12,n,t,2|i)).elementType=yI,e.lanes=o,e;case wI:return(e=wU(13,n,t,i)).elementType=wI,e.lanes=o,e;case SI:return(e=wU(19,n,t,i)).elementType=SI,e.lanes=o,e;case CI:return qU(n,i,o,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case vI:a=10;break e;case bI:a=9;break e;case xI:a=11;break e;case MI:a=14;break e;case kI:a=16,r=null;break e}throw Error(JL(130,null==e?e:typeof e,""))}return(t=wU(a,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function CU(e,t,n,r){return(e=wU(7,e,r,t)).lanes=n,e}function qU(e,t,n,r){return(e=wU(22,e,r,t)).elementType=CI,e.lanes=n,e.stateNode={isHidden:!1},e}function EU(e,t,n){return(e=wU(6,e,null,t)).lanes=n,e}function DU(e,t,n){return(t=wU(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function TU(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=sP(0),this.expirationTimes=sP(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=sP(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function NU(e,t,n,r,i,o,a,s,l){return e=new TU(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=wU(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},wB(o),e}function OU(e){if(!e)return yj;e:{if(_R(e=e._reactInternals)!==e||1!==e.tag)throw Error(JL(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Sj(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(JL(171))}if(1===e.tag){var n=e.type;if(Sj(n))return Cj(e,n,t)}return t}function AU(e,t,n,r,i,o,a,s,l){return(e=NU(n,r,!0,e,0,o,0,s,l)).context=OU(null),n=e.current,(o=MB(r=$$(),i=U$(n))).callback=null!=t?t:null,kB(n,o,i),e.current.lanes=i,lP(e,i,r),Y$(e,r),e}function _U(e,t,n,r){var i=t.current,o=$$(),a=U$(i);return n=OU(n),null===t.context?t.context=n:t.pendingContext=n,(t=MB(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=kB(i,t,a))&&(W$(e,i,a,o),CB(e,i,a)),a}function LU(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function IU(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function RU(e,t){IU(e,t),(e=e.alternate)&&IU(e,t)}h$=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||bj.current)uV=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return uV=!1,function(e,t,n){switch(t.tag){case 3:bV(t),rB();break;case 5:GB(t);break;case 1:Sj(t.type)&&qj(t);break;case 4:YB(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;gj(sB,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(gj(JB,1&JB.current),t.flags|=128,null):0!=(n&t.child.childLanes)?EV(e,t,n):(gj(JB,1&JB.current),null!==(e=LV(e,t,n))?e.sibling:null);gj(JB,1&JB.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return AV(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),gj(JB,JB.current),r)break;return null;case 22:case 23:return t.lanes=0,pV(e,t,n)}return LV(e,t,n)}(e,t,n);uV=0!=(131072&e.flags)}else uV=!1,Kj&&0!=(1048576&t.flags)&&Vj(t,Rj,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;_V(e,t),e=t.pendingProps;var i=wj(t,vj.current);pB(t,n),i=hH(null,t,r,e,i,n);var o=pH();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Sj(r)?(o=!0,qj(t)):o=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,wB(t),i.updater=OB,t.stateNode=i,i._reactInternals=t,IB(t,r,e,n),t=vV(null,t,r,!0,o,n)):(t.tag=0,Kj&&o&&$j(t),cV(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(_V(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"==typeof e)return SU(e)?1:0;if(null!=e){if((e=e.$$typeof)===xI)return 11;if(e===MI)return 14}return 2}(r),e=aB(r,e),i){case 0:t=gV(null,t,r,e,n);break e;case 1:t=yV(null,t,r,e,n);break e;case 11:t=dV(null,t,r,e,n);break e;case 14:t=fV(null,t,r,aB(r.type,e),n);break e}throw Error(JL(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,gV(e,t,r,i=t.elementType===r?i:aB(r,i),n);case 1:return r=t.type,i=t.pendingProps,yV(e,t,r,i=t.elementType===r?i:aB(r,i),n);case 3:e:{if(bV(t),null===e)throw Error(JL(387));r=t.pendingProps,i=(o=t.memoizedState).element,SB(e,t),EB(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=xV(e,t,r,n,i=ZH(Error(JL(423)),t));break e}if(r!==i){t=xV(e,t,r,n,i=ZH(Error(JL(424)),t));break e}for(Yj=ZF(t.stateNode.containerInfo.firstChild),Wj=t,Kj=!0,Gj=null,n=BB(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(rB(),r===i){t=LV(e,t,n);break e}cV(e,t,r,n)}t=t.child}return t;case 5:return GB(t),null===e&&Zj(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,a=i.children,WF(r,i)?a=null:null!==o&&WF(r,o)&&(t.flags|=32),mV(e,t),cV(e,t,a,n),t.child;case 6:return null===e&&Zj(t),null;case 13:return EV(e,t,n);case 4:return YB(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=jB(t,null,r,n):cV(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,dV(e,t,r,i=t.elementType===r?i:aB(r,i),n);case 7:return cV(e,t,t.pendingProps,n),t.child;case 8:case 12:return cV(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,gj(sB,r._currentValue),r._currentValue=a,null!==o)if(Jz(o.value,a)){if(o.children===i.children&&!bj.current){t=LV(e,t,n);break e}}else for(null!==(o=t.child)&&(o.return=t);null!==o;){var s=o.dependencies;if(null!==s){a=o.child;for(var l=s.firstContext;null!==l;){if(l.context===r){if(1===o.tag){(l=MB(-1,n&-n)).tag=2;var u=o.updateQueue;if(null!==u){var c=(u=u.shared).pending;null===c?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}o.lanes|=n,null!==(l=o.alternate)&&(l.lanes|=n),hB(o.return,n,t),s.lanes|=n;break}l=l.next}}else if(10===o.tag)a=o.type===t.type?null:o.child;else if(18===o.tag){if(null===(a=o.return))throw Error(JL(341));a.lanes|=n,null!==(s=a.alternate)&&(s.lanes|=n),hB(a,n,t),a=o.sibling}else a=o.child;if(null!==a)a.return=o;else for(a=o;null!==a;){if(a===t){a=null;break}if(null!==(o=a.sibling)){o.return=a.return,a=o;break}a=a.return}o=a}cV(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,pB(t,n),r=r(i=mB(i)),t.flags|=1,cV(e,t,r,n),t.child;case 14:return i=aB(r=t.type,t.pendingProps),fV(e,t,r,i=aB(r.type,i),n);case 15:return hV(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:aB(r,i),_V(e,t),t.tag=1,Sj(r)?(e=!0,qj(t)):e=!1,pB(t,n),_B(t,r,i),IB(t,r,i,n),vV(null,t,r,!0,e,n);case 19:return AV(e,t,n);case 22:return pV(e,t,n)}throw Error(JL(156,t.tag))};var PU="function"==typeof reportError?reportError:function(e){console.error(e)};function zU(e){this._internalRoot=e}function FU(e){this._internalRoot=e}function jU(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function BU(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function HU(){}function VU(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"==typeof i){var s=i;i=function(){var e=LU(a);s.call(e)}}_U(t,a,e,i)}else a=function(e,t,n,r,i){if(i){if("function"==typeof r){var o=r;r=function(){var e=LU(a);o.call(e)}}var a=AU(t,r,e,0,null,!1,0,"",HU);return e._reactRootContainer=a,e[ij]=a.current,AF(8===e.nodeType?e.parentNode:e),eU(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"==typeof r){var s=r;r=function(){var e=LU(l);s.call(e)}}var l=NU(e,0,!1,null,0,!1,0,"",HU);return e._reactRootContainer=l,e[ij]=l.current,AF(8===e.nodeType?e.parentNode:e),eU((function(){_U(t,l,n,r)})),l}(n,t,e,i,r);return LU(a)}FU.prototype.render=zU.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(JL(409));_U(e,t,null,null)},FU.prototype.unmount=zU.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;eU((function(){_U(null,e,null,null)})),t[ij]=null}},FU.prototype.unstable_scheduleHydration=function(e){if(e){var t=mP();e={blockedOn:null,target:e,priority:t};for(var n=0;n<kP.length&&0!==t&&t<kP[n].priority;n++);kP.splice(n,0,e),0===n&&DP(e)}},fP=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=nP(t.pendingLanes);0!==n&&(uP(t,1|n),Y$(t,HR()),0==(6&v$)&&(A$=HR()+500,Aj()))}break;case 13:eU((function(){var t=bB(e,1);if(null!==t){var n=$$();W$(t,e,1,n)}})),RU(e,1)}},hP=function(e){if(13===e.tag){var t=bB(e,134217728);if(null!==t)W$(t,e,134217728,$$());RU(e,134217728)}},pP=function(e){if(13===e.tag){var t=U$(e),n=bB(e,t);if(null!==n)W$(n,e,t,$$());RU(e,t)}},mP=function(){return cP},gP=function(e,t){var n=cP;try{return cP=e,t()}finally{cP=n}},hR=function(e,t,n){switch(t){case"input":if($I(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=dj(r);if(!i)throw Error(JL(90));FI(r),$I(r,i)}}}break;case"textarea":JI(e,n);break;case"select":null!=(t=n.value)&&KI(e,!!n.multiple,t,!1)}},bR=Z$,xR=eU;var $U={usingClientEntryPoint:!1,Events:[uj,cj,dj,yR,vR,Z$]},UU={findFiberByHostInstance:lj,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},WU={bundleType:UU.bundleType,version:UU.version,rendererPackageName:UU.rendererPackageName,rendererConfig:UU.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:fI.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=RR(e))?null:e.stateNode},findFiberByHostInstance:UU.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var YU=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!YU.isDisabled&&YU.supportsFiber)try{GR=YU.inject(WU),XR=YU}catch(s5){}}UL.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$U,UL.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!jU(t))throw Error(JL(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:pI,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},UL.createRoot=function(e,t){if(!jU(e))throw Error(JL(299));var n=!1,r="",i=PU;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=NU(e,1,!1,null,0,n,0,r,i),e[ij]=t.current,AF(8===e.nodeType?e.parentNode:e),new zU(t)},UL.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(JL(188));throw e=Object.keys(e).join(","),Error(JL(268,e))}return e=null===(e=RR(t))?null:e.stateNode},UL.flushSync=function(e){return eU(e)},UL.hydrate=function(e,t,n){if(!BU(t))throw Error(JL(200));return VU(null,e,t,!0,n)},UL.hydrateRoot=function(e,t,n){if(!jU(e))throw Error(JL(405));var r=null!=n&&n.hydratedSources||null,i=!1,o="",a=PU;if(null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(o=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=AU(t,null,e,1,null!=n?n:null,i,0,o,a),e[ij]=t.current,AF(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new FU(t)},UL.render=function(e,t,n){if(!BU(t))throw Error(JL(200));return VU(null,e,t,!1,n)},UL.unmountComponentAtNode=function(e){if(!BU(e))throw Error(JL(40));return!!e._reactRootContainer&&(eU((function(){VU(null,null,e,!1,(function(){e._reactRootContainer=null,e[ij]=null}))})),!0)},UL.unstable_batchedUpdates=Z$,UL.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!BU(n))throw Error(JL(200));if(null==e||void 0===e._reactInternals)throw Error(JL(38));return VU(e,t,n,!1,r)},UL.version="18.2.0-next-9e3b772b8-20220608",function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),$L.exports=UL;var KU=$L.exports,GU=fg(KU),XU=!0,JU=!1,QU=null,ZU={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function eW(e){e.metaKey||e.altKey||e.ctrlKey||(XU=!0)}function tW(){XU=!1}function nW(){"hidden"===this.visibilityState&&JU&&(XU=!0)}function rW(e){var t=e.target;try{return t.matches(":focus-visible")}catch(e){}return XU||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!ZU[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function iW(){JU=!0,window.clearTimeout(QU),QU=window.setTimeout((function(){JU=!1}),100)}function oW(){var e=gT.useCallback((function(e){var t,n=KU.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",eW,!0),t.addEventListener("mousedown",tW,!0),t.addEventListener("pointerdown",tW,!0),t.addEventListener("touchstart",tW,!0),t.addEventListener("visibilitychange",nW,!0))}),[]);return{isFocusVisible:rW,onBlurVisible:iW,ref:e}}var aW=!1,sW=yT.createContext(null),lW="unmounted",uW="exited",cW="entering",dW="entered",fW="exiting",hW=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=uW,r.appearStatus=cW):i=dW:i=t.unmountOnExit||t.mountOnEnter?lW:uW,r.state={status:i},r.nextCallback=null,r}WN(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===lW?{status:uW}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==cW&&n!==dW&&(t=cW):n!==cW&&n!==dW||(t=fW)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===cW){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:GU.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===uW&&this.setState({status:lW})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[GU.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||aW?this.safeSetState({status:dW},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:cW},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:dW},(function(){t.props.onEntered(o,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:GU.findDOMNode(this);t&&!aW?(this.props.onExit(r),this.safeSetState({status:fW},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:uW},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:uW},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:GU.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===lW)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=cN(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return yT.createElement(sW.Provider,{value:null},"function"==typeof n?n(e,r):yT.cloneElement(yT.Children.only(n),r))},t}(yT.Component);function pW(){}hW.contextType=sW,hW.propTypes={},hW.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:pW,onEntering:pW,onEntered:pW,onExit:pW,onExiting:pW,onExited:pW},hW.UNMOUNTED=lW,hW.EXITED=uW,hW.ENTERING=cW,hW.ENTERED=dW,hW.EXITING=fW;var mW=hW;function gW(e,t){var n=Object.create(null);return e&&gT.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&gT.isValidElement(e)?t(e):e}(e)})),n}function yW(e,t,n){return null!=n[t]?n[t]:e.props[t]}function vW(e,t,n){var r=gW(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var u=i[l][r];s[i[l][r]]=n(u)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(t,r);return Object.keys(i).forEach((function(o){var a=i[o];if(gT.isValidElement(a)){var s=o in t,l=o in r,u=t[o],c=gT.isValidElement(u)&&!u.props.in;!l||s&&!c?l||!s||c?l&&s&&gT.isValidElement(u)&&(i[o]=gT.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:yW(a,"exit",e),enter:yW(a,"enter",e)})):i[o]=gT.cloneElement(a,{in:!1}):i[o]=gT.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:yW(a,"exit",e),enter:yW(a,"enter",e)})}})),i}var bW=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},xW=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(YN(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}WN(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,o=t.handleExited;return{children:t.firstRender?(n=e,r=o,gW(n.children,(function(e){return gT.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:yW(e,"appear",n),enter:yW(e,"enter",n),exit:yW(e,"exit",n)})}))):vW(e,i,o),firstRender:!1}},n.handleExited=function(e,t){var n=gW(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=QT({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=cN(e,["component","childFactory"]),i=this.state.contextValue,o=bW(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?yT.createElement(sW.Provider,{value:i},o):yT.createElement(sW.Provider,{value:i},yT.createElement(t,r,o))},t}(yT.Component);xW.propTypes={},xW.defaultProps={component:"div",childFactory:function(e){return e}};var wW=xW;function SW(e,t){var n=e.timeout,r=e.style,i=void 0===r?{}:r;return{duration:i.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:i.transitionDelay}}var MW=gT.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,o=void 0===i?"div":i,a=e.square,s=void 0!==a&&a,l=e.elevation,u=void 0===l?1:l,c=e.variant,d=void 0===c?"elevation":c,f=dN(e,["classes","className","component","square","elevation","variant"]);return gT.createElement(o,QT({className:PL(n.root,r,"outlined"===d?n.outlined:n["elevation".concat(u)],!s&&n.rounded),ref:t},f))})),kW=_L((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),QT({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(MW),CW="undefined"==typeof window?gT.useEffect:gT.useLayoutEffect;function qW(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,i=e.rippleX,o=e.rippleY,a=e.rippleSize,s=e.in,l=e.onExited,u=void 0===l?function(){}:l,c=e.timeout,d=gT.useState(!1),f=d[0],h=d[1],p=PL(t.ripple,t.rippleVisible,r&&t.ripplePulsate),m={width:a,height:a,top:-a/2+o,left:-a/2+i},g=PL(t.child,f&&t.childLeaving,r&&t.childPulsate),y=HL(u);return CW((function(){if(!s){h(!0);var e=setTimeout(y,c);return function(){clearTimeout(e)}}}),[y,s,c]),gT.createElement("span",{className:p,style:m},gT.createElement("span",{className:g}))}var EW=gT.forwardRef((function(e,t){var n=e.center,r=void 0!==n&&n,i=e.classes,o=e.className,a=dN(e,["center","classes","className"]),s=gT.useState([]),l=s[0],u=s[1],c=gT.useRef(0),d=gT.useRef(null);gT.useEffect((function(){d.current&&(d.current(),d.current=null)}),[l]);var f=gT.useRef(!1),h=gT.useRef(null),p=gT.useRef(null),m=gT.useRef(null);gT.useEffect((function(){return function(){clearTimeout(h.current)}}),[]);var g=gT.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,o=e.rippleSize,a=e.cb;u((function(e){return[].concat(DN(e),[gT.createElement(qW,{key:c.current,classes:i,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o})])})),c.current+=1,d.current=a}),[i]),y=gT.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,i=t.pulsate,o=void 0!==i&&i,a=t.center,s=void 0===a?r||t.pulsate:a,l=t.fakeElement,u=void 0!==l&&l;if("mousedown"===e.type&&f.current)f.current=!1;else{"touchstart"===e.type&&(f.current=!0);var c,d,y,v=u?null:m.current,b=v?v.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(b.width/2),d=Math.round(b.height/2);else{var x=e.touches?e.touches[0]:e,w=x.clientX,S=x.clientY;c=Math.round(w-b.left),d=Math.round(S-b.top)}if(s)(y=Math.sqrt((2*Math.pow(b.width,2)+Math.pow(b.height,2))/3))%2==0&&(y+=1);else{var M=2*Math.max(Math.abs((v?v.clientWidth:0)-c),c)+2,k=2*Math.max(Math.abs((v?v.clientHeight:0)-d),d)+2;y=Math.sqrt(Math.pow(M,2)+Math.pow(k,2))}e.touches?null===p.current&&(p.current=function(){g({pulsate:o,rippleX:c,rippleY:d,rippleSize:y,cb:n})},h.current=setTimeout((function(){p.current&&(p.current(),p.current=null)}),80)):g({pulsate:o,rippleX:c,rippleY:d,rippleSize:y,cb:n})}}),[r,g]),v=gT.useCallback((function(){y({},{pulsate:!0})}),[y]),b=gT.useCallback((function(e,t){if(clearTimeout(h.current),"touchend"===e.type&&p.current)return e.persist(),p.current(),p.current=null,void(h.current=setTimeout((function(){b(e,t)})));p.current=null,u((function(e){return e.length>0?e.slice(1):e})),d.current=t}),[]);return gT.useImperativeHandle(t,(function(){return{pulsate:v,start:y,stop:b}}),[v,y,b]),gT.createElement("span",QT({className:PL(i.root,o),ref:m},a),gT.createElement(wW,{component:null,exit:!0},l))})),DW=_L((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(gT.memo(EW)),TW=gT.forwardRef((function(e,t){var n=e.action,r=e.buttonRef,i=e.centerRipple,o=void 0!==i&&i,a=e.children,s=e.classes,l=e.className,u=e.component,c=void 0===u?"button":u,d=e.disabled,f=void 0!==d&&d,h=e.disableRipple,p=void 0!==h&&h,m=e.disableTouchRipple,g=void 0!==m&&m,y=e.focusRipple,v=void 0!==y&&y,b=e.focusVisibleClassName,x=e.onBlur,w=e.onClick,S=e.onFocus,M=e.onFocusVisible,k=e.onKeyDown,C=e.onKeyUp,q=e.onMouseDown,E=e.onMouseLeave,D=e.onMouseUp,T=e.onTouchEnd,N=e.onTouchMove,O=e.onTouchStart,A=e.onDragLeave,_=e.tabIndex,L=void 0===_?0:_,I=e.TouchRippleProps,R=e.type,P=void 0===R?"button":R,z=dN(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),F=gT.useRef(null);var j=gT.useRef(null),B=gT.useState(!1),H=B[0],V=B[1];f&&H&&V(!1);var $=oW(),U=$.isFocusVisible,W=$.onBlurVisible,Y=$.ref;function K(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g;return HL((function(r){return t&&t(r),!n&&j.current&&j.current[e](r),!0}))}gT.useImperativeHandle(n,(function(){return{focusVisible:function(){V(!0),F.current.focus()}}}),[]),gT.useEffect((function(){H&&v&&!p&&j.current.pulsate()}),[p,v,H]);var G=K("start",q),X=K("stop",A),J=K("stop",D),Q=K("stop",(function(e){H&&e.preventDefault(),E&&E(e)})),Z=K("start",O),ee=K("stop",T),te=K("stop",N),ne=K("stop",(function(e){H&&(W(e),V(!1)),x&&x(e)}),!1),re=HL((function(e){F.current||(F.current=e.currentTarget),U(e)&&(V(!0),M&&M(e)),S&&S(e)})),ie=function(){var e=KU.findDOMNode(F.current);return c&&"button"!==c&&!("A"===e.tagName&&e.href)},oe=gT.useRef(!1),ae=HL((function(e){v&&!oe.current&&H&&j.current&&" "===e.key&&(oe.current=!0,e.persist(),j.current.stop(e,(function(){j.current.start(e)}))),e.target===e.currentTarget&&ie()&&" "===e.key&&e.preventDefault(),k&&k(e),e.target===e.currentTarget&&ie()&&"Enter"===e.key&&!f&&(e.preventDefault(),w&&w(e))})),se=HL((function(e){v&&" "===e.key&&j.current&&H&&!e.defaultPrevented&&(oe.current=!1,e.persist(),j.current.stop(e,(function(){j.current.pulsate(e)}))),C&&C(e),w&&e.target===e.currentTarget&&ie()&&" "===e.key&&!e.defaultPrevented&&w(e)})),le=c;"button"===le&&z.href&&(le="a");var ue={};"button"===le?(ue.type=P,ue.disabled=f):("a"===le&&z.href||(ue.role="button"),ue["aria-disabled"]=f);var ce=VL(r,t),de=VL(Y,F),fe=VL(ce,de),he=gT.useState(!1),pe=he[0],me=he[1];gT.useEffect((function(){me(!0)}),[]);var ge=pe&&!p&&!f;return gT.createElement(le,QT({className:PL(s.root,l,H&&[s.focusVisible,b],f&&s.disabled),onBlur:ne,onClick:w,onFocus:re,onKeyDown:ae,onKeyUp:se,onMouseDown:G,onMouseLeave:Q,onMouseUp:J,onDragLeave:X,onTouchEnd:ee,onTouchMove:te,onTouchStart:Z,ref:fe,tabIndex:f?-1:L},ue,z),a,ge?gT.createElement(DW,QT({ref:j,center:o},I)):null)})),NW=_L({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(TW),OW={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},AW=gT.forwardRef((function(e,t){var n=e.align,r=void 0===n?"inherit":n,i=e.classes,o=e.className,a=e.color,s=void 0===a?"initial":a,l=e.component,u=e.display,c=void 0===u?"initial":u,d=e.gutterBottom,f=void 0!==d&&d,h=e.noWrap,p=void 0!==h&&h,m=e.paragraph,g=void 0!==m&&m,y=e.variant,v=void 0===y?"body1":y,b=e.variantMapping,x=void 0===b?OW:b,w=dN(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),S=l||(g?"p":x[v]||OW[v])||"span";return gT.createElement(S,QT({className:PL(i.root,o,"inherit"!==v&&i[v],"initial"!==s&&i["color".concat(LL(s))],p&&i.noWrap,f&&i.gutterBottom,g&&i.paragraph,"inherit"!==r&&i["align".concat(LL(r))],"initial"!==c&&i["display".concat(LL(c))]),ref:t},w))})),_W=_L((function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(AW),LW=gT.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.color,a=void 0===o?"default":o,s=e.component,l=void 0===s?"button":s,u=e.disabled,c=void 0!==u&&u,d=e.disableElevation,f=void 0!==d&&d,h=e.disableFocusRipple,p=void 0!==h&&h,m=e.endIcon,g=e.focusVisibleClassName,y=e.fullWidth,v=void 0!==y&&y,b=e.size,x=void 0===b?"medium":b,w=e.startIcon,S=e.type,M=void 0===S?"button":S,k=e.variant,C=void 0===k?"text":k,q=dN(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),E=w&&gT.createElement("span",{className:PL(r.startIcon,r["iconSize".concat(LL(x))])},w),D=m&&gT.createElement("span",{className:PL(r.endIcon,r["iconSize".concat(LL(x))])},m);return gT.createElement(NW,QT({className:PL(r.root,r[C],i,"inherit"===a?r.colorInherit:"default"!==a&&r["".concat(C).concat(LL(a))],"medium"!==x&&[r["".concat(C,"Size").concat(LL(x))],r["size".concat(LL(x))]],f&&r.disableElevation,c&&r.disabled,v&&r.fullWidth),component:l,disabled:c,focusRipple:!p,focusVisibleClassName:PL(r.focusVisible,g),ref:t,type:M},q),gT.createElement("span",{className:r.label},E,n,D))})),IW=_L((function(e){return{root:QT({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:uN(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:uN(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:uN(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(uN(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:uN(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(uN(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:uN(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(LW);var RW="undefined"!=typeof window?gT.useLayoutEffect:gT.useEffect,PW=gT.forwardRef((function(e,t){var n=e.children,r=e.container,i=e.disablePortal,o=void 0!==i&&i,a=e.onRendered,s=gT.useState(null),l=s[0],u=s[1],c=VL(gT.isValidElement(n)?n.ref:null,t);return RW((function(){o||u(function(e){return e="function"==typeof e?e():e,KU.findDOMNode(e)}(r)||document.body)}),[r,o]),RW((function(){if(l&&!o)return jL(t,l),function(){jL(t,null)}}),[t,l,o]),RW((function(){a&&(l||o)&&a()}),[a,l,o]),o?gT.isValidElement(n)?gT.cloneElement(n,{ref:c}):n:l?KU.createPortal(n,l):l})),zW=PW;function FW(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function jW(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function BW(e,t,n){var r=arguments.length>4?arguments[4]:void 0,i=[t,n].concat(DN(arguments.length>3&&void 0!==arguments[3]?arguments[3]:[])),o=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===i.indexOf(e)&&-1===o.indexOf(e.tagName)&&FW(e,r)}))}function HW(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function VW(e,t){var n,r=[],i=[],o=e.container;if(!t.disableScrollLock){if(function(e){var t=zL(e);return t.body===e?FL(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o)){var a=function(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}();r.push({value:o.style.paddingRight,key:"padding-right",el:o}),o.style["padding-right"]="".concat(jW(o)+a,"px"),n=zL(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){i.push(e.style.paddingRight),e.style.paddingRight="".concat(jW(e)+a,"px")}))}var s=o.parentElement,l="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:o;r.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){i[t]?e.style.paddingRight=i[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var $W=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modals=[],this.containers=[]}return $N(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&FW(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);BW(t,e.mountNode,e.modalRef,r,!0);var i=HW(this.containers,(function(e){return e.container===t}));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=HW(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=VW(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=HW(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&FW(e.modalRef,!0),BW(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var i=r.modals[r.modals.length-1];i.modalRef&&FW(i.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();function UW(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,i=e.disableEnforceFocus,o=void 0!==i&&i,a=e.disableRestoreFocus,s=void 0!==a&&a,l=e.getDoc,u=e.isEnabled,c=e.open,d=gT.useRef(),f=gT.useRef(null),h=gT.useRef(null),p=gT.useRef(),m=gT.useRef(null),g=gT.useCallback((function(e){m.current=KU.findDOMNode(e)}),[]),y=VL(t.ref,g),v=gT.useRef();return gT.useEffect((function(){v.current=c}),[c]),!v.current&&c&&"undefined"!=typeof window&&(p.current=l().activeElement),gT.useEffect((function(){if(c){var e=zL(m.current);r||!m.current||m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex",-1),m.current.focus());var t=function(){null!==m.current&&(e.hasFocus()&&!o&&u()&&!d.current?m.current&&!m.current.contains(e.activeElement)&&m.current.focus():d.current=!1)},n=function(t){!o&&u()&&9===t.keyCode&&e.activeElement===m.current&&(d.current=!0,t.shiftKey?h.current.focus():f.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var i=setInterval((function(){t()}),50);return function(){clearInterval(i),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),s||(p.current&&p.current.focus&&p.current.focus(),p.current=null)}}}),[r,o,s,u,c]),gT.createElement(gT.Fragment,null,gT.createElement("div",{tabIndex:0,ref:f,"data-test":"sentinelStart"}),gT.cloneElement(t,{ref:y}),gT.createElement("div",{tabIndex:0,ref:h,"data-test":"sentinelEnd"}))}var WW={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},YW=gT.forwardRef((function(e,t){var n=e.invisible,r=void 0!==n&&n,i=e.open,o=dN(e,["invisible","open"]);return i?gT.createElement("div",QT({"aria-hidden":!0,ref:t},o,{style:QT({},WW.root,r?WW.invisible:{},o.style)})):null}));var KW=new $W,GW=gT.forwardRef((function(e,t){var n=__(),r=jN({name:"MuiModal",props:QT({},e),theme:n}),i=r.BackdropComponent,o=void 0===i?YW:i,a=r.BackdropProps,s=r.children,l=r.closeAfterTransition,u=void 0!==l&&l,c=r.container,d=r.disableAutoFocus,f=void 0!==d&&d,h=r.disableBackdropClick,p=void 0!==h&&h,m=r.disableEnforceFocus,g=void 0!==m&&m,y=r.disableEscapeKeyDown,v=void 0!==y&&y,b=r.disablePortal,x=void 0!==b&&b,w=r.disableRestoreFocus,S=void 0!==w&&w,M=r.disableScrollLock,k=void 0!==M&&M,C=r.hideBackdrop,q=void 0!==C&&C,E=r.keepMounted,D=void 0!==E&&E,T=r.manager,N=void 0===T?KW:T,O=r.onBackdropClick,A=r.onClose,_=r.onEscapeKeyDown,L=r.onRendered,I=r.open,R=dN(r,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),P=gT.useState(!0),z=P[0],F=P[1],j=gT.useRef({}),B=gT.useRef(null),H=gT.useRef(null),V=VL(H,t),$=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),U=function(){return zL(B.current)},W=function(){return j.current.modalRef=H.current,j.current.mountNode=B.current,j.current},Y=function(){N.mount(W(),{disableScrollLock:k}),H.current.scrollTop=0},K=HL((function(){var e=function(e){return e="function"==typeof e?e():e,KU.findDOMNode(e)}(c)||U().body;N.add(W(),e),H.current&&Y()})),G=gT.useCallback((function(){return N.isTopModal(W())}),[N]),X=HL((function(e){B.current=e,e&&(L&&L(),I&&G()?Y():FW(H.current,!0))})),J=gT.useCallback((function(){N.remove(W())}),[N]);if(gT.useEffect((function(){return function(){J()}}),[J]),gT.useEffect((function(){I?K():$&&u||J()}),[I,J,$,u,K]),!D&&!I&&(!$||z))return null;var Q=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:IN}),Z={};return void 0===s.props.tabIndex&&(Z.tabIndex=s.props.tabIndex||"-1"),$&&(Z.onEnter=IL((function(){F(!1)}),s.props.onEnter),Z.onExited=IL((function(){F(!0),u&&J()}),s.props.onExited)),gT.createElement(zW,{ref:X,container:c,disablePortal:x},gT.createElement("div",QT({ref:V,onKeyDown:function(e){"Escape"===e.key&&G()&&(_&&_(e),v||(e.stopPropagation(),A&&A(e,"escapeKeyDown")))},role:"presentation"},R,{style:QT({},Q.root,!I&&z?Q.hidden:{},R.style)}),q?null:gT.createElement(o,QT({open:I,onClick:function(e){e.target===e.currentTarget&&(O&&O(e),!p&&A&&A(e,"backdropClick"))}},a)),gT.createElement(UW,{disableEnforceFocus:g,disableAutoFocus:f,disableRestoreFocus:S,getDoc:U,isEnabled:G,open:I},gT.cloneElement(s,Z))))})),XW=GW,JW=gT.forwardRef((function(e,t){var n=e.absolute,r=void 0!==n&&n,i=e.classes,o=e.className,a=e.component,s=void 0===a?"hr":a,l=e.flexItem,u=void 0!==l&&l,c=e.light,d=void 0!==c&&c,f=e.orientation,h=void 0===f?"horizontal":f,p=e.role,m=void 0===p?"hr"!==s?"separator":void 0:p,g=e.variant,y=void 0===g?"fullWidth":g,v=dN(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return gT.createElement(s,QT({className:PL(i.root,o,"fullWidth"!==y&&i[y],r&&i.absolute,u&&i.flexItem,d&&i.light,"vertical"===h&&i.vertical),role:m,ref:t},v))})),QW=_L((function(e){return{root:{height:1,margin:0,border:"none",flexShrink:0,backgroundColor:e.palette.divider},absolute:{position:"absolute",bottom:0,left:0,width:"100%"},inset:{marginLeft:72},light:{backgroundColor:uN(e.palette.divider,.08)},middle:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},vertical:{height:"100%",width:1},flexItem:{alignSelf:"stretch",height:"auto"}}}),{name:"MuiDivider"})(JW);function ZW(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var eY={entering:{opacity:1,transform:ZW(1)},entered:{opacity:1,transform:"none"}},tY=gT.forwardRef((function(e,t){var n=e.children,r=e.disableStrictModeCompat,i=void 0!==r&&r,o=e.in,a=e.onEnter,s=e.onEntered,l=e.onEntering,u=e.onExit,c=e.onExited,d=e.onExiting,f=e.style,h=e.timeout,p=void 0===h?"auto":h,m=e.TransitionComponent,g=void 0===m?mW:m,y=dN(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),v=gT.useRef(),b=gT.useRef(),x=__()||OL,w=x.unstable_strictMode&&!i,S=gT.useRef(null),M=VL(n.ref,t),k=VL(w?S:void 0,M),C=function(e){return function(t,n){if(e){var r=TN(w?[S.current,t]:[t,n],2),i=r[0],o=r[1];void 0===o?e(i):e(i,o)}}},q=C(l),E=C((function(e,t){!function(e){e.scrollTop}(e);var n,r=SW({style:f,timeout:p},{mode:"enter"}),i=r.duration,o=r.delay;"auto"===p?(n=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=n):n=i,e.style.transition=[x.transitions.create("opacity",{duration:n,delay:o}),x.transitions.create("transform",{duration:.666*n,delay:o})].join(","),a&&a(e,t)})),D=C(s),T=C(d),N=C((function(e){var t,n=SW({style:f,timeout:p},{mode:"exit"}),r=n.duration,i=n.delay;"auto"===p?(t=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=t):t=r,e.style.transition=[x.transitions.create("opacity",{duration:t,delay:i}),x.transitions.create("transform",{duration:.666*t,delay:i||.333*t})].join(","),e.style.opacity="0",e.style.transform=ZW(.75),u&&u(e)})),O=C(c);return gT.useEffect((function(){return function(){clearTimeout(v.current)}}),[]),gT.createElement(g,QT({appear:!0,in:o,nodeRef:w?S:void 0,onEnter:E,onEntered:D,onEntering:q,onExit:N,onExited:O,onExiting:T,addEndListener:function(e,t){var n=w?e:t;"auto"===p&&(v.current=setTimeout(n,b.current||0))},timeout:"auto"===p?null:p},y),(function(e,t){return gT.cloneElement(n,QT({style:QT({opacity:0,transform:ZW(.75),visibility:"exited"!==e||o?void 0:"hidden"},eY[e],f,n.props.style),ref:k},t))}))}));tY.muiSupportAuto=!0;var nY=tY,rY=gT.createContext({}),iY=gT.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.component,a=void 0===o?"ul":o,s=e.dense,l=void 0!==s&&s,u=e.disablePadding,c=void 0!==u&&u,d=e.subheader,f=dN(e,["children","classes","className","component","dense","disablePadding","subheader"]),h=gT.useMemo((function(){return{dense:l}}),[l]);return gT.createElement(rY.Provider,{value:h},gT.createElement(a,QT({className:PL(r.root,i,l&&r.dense,!c&&r.padding,d&&r.subheader),ref:t},f),d,n))})),oY=_L({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(iY),aY="undefined"==typeof window?gT.useEffect:gT.useLayoutEffect,sY=gT.forwardRef((function(e,t){var n=e.alignItems,r=void 0===n?"center":n,i=e.autoFocus,o=void 0!==i&&i,a=e.button,s=void 0!==a&&a,l=e.children,u=e.classes,c=e.className,d=e.component,f=e.ContainerComponent,h=void 0===f?"li":f,p=e.ContainerProps,m=(p=void 0===p?{}:p).className,g=dN(p,["className"]),y=e.dense,v=void 0!==y&&y,b=e.disabled,x=void 0!==b&&b,w=e.disableGutters,S=void 0!==w&&w,M=e.divider,k=void 0!==M&&M,C=e.focusVisibleClassName,q=e.selected,E=void 0!==q&&q,D=dN(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),T=gT.useContext(rY),N={dense:v||T.dense||!1,alignItems:r},O=gT.useRef(null);aY((function(){o&&O.current&&O.current.focus()}),[o]);var A,_,L=gT.Children.toArray(l),I=L.length&&(A=L[L.length-1],_=["ListItemSecondaryAction"],gT.isValidElement(A)&&-1!==_.indexOf(A.type.muiName)),R=gT.useCallback((function(e){O.current=KU.findDOMNode(e)}),[]),P=VL(R,t),z=QT({className:PL(u.root,c,N.dense&&u.dense,!S&&u.gutters,k&&u.divider,x&&u.disabled,s&&u.button,"center"!==r&&u.alignItemsFlexStart,I&&u.secondaryAction,E&&u.selected),disabled:x},D),F=d||"li";return s&&(z.component=d||"div",z.focusVisibleClassName=PL(u.focusVisible,C),F=NW),I?(F=z.component||d?F:"div","li"===h&&("li"===F?F="div":"li"===z.component&&(z.component="div")),gT.createElement(rY.Provider,{value:N},gT.createElement(h,QT({className:PL(u.container,m),ref:P},g),gT.createElement(F,z,L),L.pop()))):gT.createElement(rY.Provider,{value:N},gT.createElement(F,QT({ref:P},z),L))})),lY=_L((function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}}),{name:"MuiListItem"})(sY),uY=gT.forwardRef((function(e,t){var n=e.classes,r=e.className,i=dN(e,["classes","className"]),o=gT.useContext(rY);return gT.createElement("div",QT({className:PL(n.root,r,"flex-start"===o.alignItems&&n.alignItemsFlexStart),ref:t},i))})),cY=_L((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(uY),dY=gT.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.disableTypography,a=void 0!==o&&o,s=e.inset,l=void 0!==s&&s,u=e.primary,c=e.primaryTypographyProps,d=e.secondary,f=e.secondaryTypographyProps,h=dN(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),p=gT.useContext(rY).dense,m=null!=u?u:n;null==m||m.type===_W||a||(m=gT.createElement(_W,QT({variant:p?"body2":"body1",className:r.primary,component:"span",display:"block"},c),m));var g=d;return null==g||g.type===_W||a||(g=gT.createElement(_W,QT({variant:"body2",className:r.secondary,color:"textSecondary",display:"block"},f),g)),gT.createElement("div",QT({className:PL(r.root,i,p&&r.dense,l&&r.inset,m&&g&&r.multiline),ref:t},h),m,g)})),fY=_L({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(dY);function hY(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function pY(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function mY(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function gY(e){return"function"==typeof e?e():e}var yY=gT.forwardRef((function(e,t){var n=e.action,r=e.anchorEl,i=e.anchorOrigin,o=void 0===i?{vertical:"top",horizontal:"left"}:i,a=e.anchorPosition,s=e.anchorReference,l=void 0===s?"anchorEl":s,u=e.children,c=e.classes,d=e.className,f=e.container,h=e.elevation,p=void 0===h?8:h,m=e.getContentAnchorEl,g=e.marginThreshold,y=void 0===g?16:g,v=e.onEnter,b=e.onEntered,x=e.onEntering,w=e.onExit,S=e.onExited,M=e.onExiting,k=e.open,C=e.PaperProps,q=void 0===C?{}:C,E=e.transformOrigin,D=void 0===E?{vertical:"top",horizontal:"left"}:E,T=e.TransitionComponent,N=void 0===T?nY:T,O=e.transitionDuration,A=void 0===O?"auto":O,_=e.TransitionProps,L=void 0===_?{}:_,I=dN(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),R=gT.useRef(),P=gT.useCallback((function(e){if("anchorPosition"===l)return a;var t=gY(r),n=(t&&1===t.nodeType?t:zL(R.current).body).getBoundingClientRect(),i=0===e?o.vertical:"center";return{top:n.top+hY(n,i),left:n.left+pY(n,o.horizontal)}}),[r,o.horizontal,o.vertical,a,l]),z=gT.useCallback((function(e){var t=0;if(m&&"anchorEl"===l){var n=m(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}}return t}),[o.vertical,l,m]),F=gT.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:hY(e,D.vertical)+t,horizontal:pY(e,D.horizontal)}}),[D.horizontal,D.vertical]),j=gT.useCallback((function(e){var t=z(e),n={width:e.offsetWidth,height:e.offsetHeight},i=F(n,t);if("none"===l)return{top:null,left:null,transformOrigin:mY(i)};var o=P(t),a=o.top-i.vertical,s=o.left-i.horizontal,u=a+n.height,c=s+n.width,d=FL(gY(r)),f=d.innerHeight-y,h=d.innerWidth-y;if(a<y){var p=a-y;a-=p,i.vertical+=p}else if(u>f){var m=u-f;a-=m,i.vertical+=m}if(s<y){var g=s-y;s-=g,i.horizontal+=g}else if(c>h){var v=c-h;s-=v,i.horizontal+=v}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:mY(i)}}),[r,l,P,z,F,y]),B=gT.useCallback((function(){var e=R.current;if(e){var t=j(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[j]),H=gT.useCallback((function(e){R.current=KU.findDOMNode(e)}),[]);gT.useEffect((function(){k&&B()})),gT.useImperativeHandle(n,(function(){return k?{updatePosition:function(){B()}}:null}),[k,B]),gT.useEffect((function(){if(k){var e=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=this;clearTimeout(t),t=setTimeout((function(){e.apply(a,i)}),n)}return r.clear=function(){clearTimeout(t)},r}((function(){B()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[k,B]);var V=A;"auto"!==A||N.muiSupportAuto||(V=void 0);var $=f||(r?zL(gY(r)).body:void 0);return gT.createElement(XW,QT({container:$,open:k,ref:t,BackdropProps:{invisible:!0},className:PL(c.root,d)},I),gT.createElement(N,QT({appear:!0,in:k,onEnter:v,onEntered:b,onExit:w,onExited:S,onExiting:M,timeout:V},L,{onEntering:IL((function(e,t){x&&x(e,t),B()}),L.onEntering)}),gT.createElement(kW,QT({elevation:p,ref:H},q,{className:PL(c.paper,q.className)}),u)))})),vY=_L({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(yY);function bY(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function xY({d:e,size:t,style:n={},viewBox:r="0 0 16 16"}){const i={fontSize:bY(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",...n};return yT.createElement("i",{style:i},yT.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},yT.createElement("path",{d:e})))}const wY={menuItem:"alternative-menu-item"},SY=e=>{const{nested:t,className:n,...r}=e,i=(({nested:e,dir:t})=>H_((n=>({root:{textAlign:"ltr"===t?"start":"end","&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"},...e&&"ltr"===t&&{paddingLeft:n.spacing(4)},...e&&"rtl"===t&&{paddingRight:n.spacing(4)}}}))))(e)();return yT.createElement(lY,FT({className:`${i.root} ${n}`},r))},MY=e=>{if("Tab"===e.key){const t=document.querySelectorAll(`.${wY.menuItem}`);let n;e.shiftKey?null!=t&&t.length&&t[0]===e.target&&(n=t[t.length-1]):null!=t&&t.length&&t[t.length-1]===e.target&&([n]=t),n&&setTimeout((()=>{n.focus()}),50)}};function kY({title:e,selected:t,onClick:n,nested:r,icon:i,bold:o,dir:a}){const s=Xg.detectTextDirection(e);return yT.createElement(SY,{nested:r,role:"menuitem",button:!0,onClick:n,className:wY.menuItem,onKeyDown:MY,dir:a,autoFocus:t},yT.createElement(fY,{primary:e,primaryTypographyProps:{dir:s,...o&&{style:{fontWeight:600}}}}),yT.createElement(cY,{style:{minWidth:16}},yT.createElement(xY,{d:t?MT.d:""})),i&&yT.createElement(cY,{style:{minWidth:16}},yT.createElement(xY,{d:i.d})))}kY.propTypes={title:VT.string.isRequired,selected:VT.bool,onClick:VT.func.isRequired,nested:VT.bool,icon:VT.shape({d:VT.string.isRequired}),bold:VT.bool,dir:VT.string.isRequired},kY.defaultProps={selected:!1,nested:!1,icon:void 0,bold:!1},SY.propTypes={nested:VT.bool,className:VT.string},SY.defaultProps={nested:!1,className:wY.menuItem};const CY={bottom:{anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},top:{anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"bottom",horizontal:"center"}},left:{anchorOrigin:{vertical:"center",horizontal:"left"},transformOrigin:{vertical:"center",horizontal:"right"}},right:{anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"}}};function qY({chartId:e,alignTo:t,currentId:n,dir:r,dock:i,list:o,onClose:a,show:s,instruction:l}){const u=o.map(((t,i)=>{var s;return yT.createElement(yT.Fragment,{key:t.id},yT.createElement(kY,{icon:t.icon,title:t.title,bold:t.groupItem,selected:t.selected,onClick:()=>{t.onSelect&&t.onSelect(n),a(`${e}-${t.id}`)},dir:r}),(null===(s=t.children)||void 0===s?void 0:s.length)>0&&yT.createElement(oY,{dense:!0,dir:r,component:"div",disablePadding:!0},t.children.map((e=>yT.createElement(kY,{key:e.id,nested:!0,title:e.title,selected:e.selected,onClick:()=>{e.onSelect(),a(t.id)},dir:r})))),i<o.length-1&&yT.createElement(QW,{key:`divider-${t.id}`}))}));return yT.createElement(vY,FT({anchorEl:t,open:s,onClose:a},CY[i],{PaperProps:{style:{minWidth:"250px",maxHeight:"300px"}}}),yT.createElement(oY,{dense:!0,disablePadding:!0,dir:r,"aria-label":l,component:"nav"},u))}qY.propTypes={chartId:VT.string.isRequired,alignTo:VT.any,currentId:VT.string.isRequired,dir:VT.string.isRequired,dock:VT.string.isRequired,list:VT.array,onClose:VT.func.isRequired,show:VT.bool.isRequired,instruction:VT.string.isRequired},qY.defaultProps={list:[],alignTo:null};const EY="title-button",DY="active-title-button",TY=AL((({children:e,...t})=>yT.createElement(IW,FT({size:"small",disableRipple:!0,disableTouchRipple:!0},t),e)))((()=>({"&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"}}))),NY=AL(IW)((()=>({borderRadius:"4px",width:"24px",height:"24px",minWidth:"22px",padding:0})));class OY extends yT.Component{constructor(e){super(e),this.state={open:!1,inSelection:e.selections&&e.selections.isActive(),hasPopoverOptions:!1,disableCyclicButton:!1},this.openPopover=this.openPopover.bind(this),this.closePopover=this.closePopover.bind(this),this.alignToRef=yT.createRef()}componentDidMount(){const{popover:e,selections:t,supportConditional:n,showGroupDimOptions:r}=this.props;t&&(this.onSelectionsActivated=()=>this.setState({inSelection:!0}),this.onSelectionsDeactivated=()=>this.setState({inSelection:!1}),t.addListener("activated",this.onSelectionsActivated),t.addListener("deactivated",this.onSelectionsDeactivated),t.addListener("canceled",this.onSelectionsDeactivated)),e&&(n||r)&&e.getPopoverOptions().then((e=>{this.setState({hasPopoverOptions:0!==e.length})}))}componentDidUpdate(e,t){const{popover:n,supportConditional:r,showGroupDimOptions:i}=this.props;n&&(r||i)&&n.getPopoverOptions().then((e=>{t.hasPopoverOptions!==(0!==e.length)&&this.setState({hasPopoverOptions:0!==e.length})}))}componentWillUnmount(){const{selections:e}=this.props;e&&(e.removeListener("activated",this.onSelectionsActivated),e.removeListener("deactivated",this.onSelectionsDeactivated),e.removeListener("canceled",this.onSelectionsDeactivated))}openPopover(e){if(!(this.state.closeTime&&Date.now()-this.state.closeTime<20)){if(e.target){const t=e.target.closest(`.${EY}`);t&&t.classList.add(DY)}this.props.popover.getPopoverOptions().then((e=>{this.setState({open:!0,list:e})}))}}closePopover(e){if(this.setState({open:!1,closeTime:Date.now()}),"string"==typeof e)setTimeout((()=>{const t=document.querySelector(`.${EY}[data-id="${e}"]`);t&&t.focus()}),1e3);else{const e=document.querySelector(`.${DY}`);e&&(e.classList.remove(DY),setTimeout((()=>{e.focus()}),50))}}render(){const{chartId:e,titleData:t,popover:n,translator:r,disabled:i,isDimension:o,padding:a,minWidth:s,hasAlternative:l,supportConditional:u,showGroupDimOptions:c}=this.props,d={flex:"1 1 auto",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontWeight:"normal",lineHeight:"normal",...this.props.style},f=t.breadcrumbs.length,h=i||Boolean(!t.drillUp)||this.state.inSelection,p=t.breadcrumbs.map(((e,n)=>yT.createElement(TY,{style:{display:"flex",alignItems:"center",color:h&&"rgba(89, 89, 89, 0.8)",pointerEvents:h?"none":"auto",paddingTop:0,paddingBottom:0,height:"100%"},key:n,onClick:()=>h?void 0:t.drillUp(f-n),title:e},yT.createElement("span",{style:d},e),yT.createElement(xY,FT({},CT,{size:"small",style:{margin:"0 8px"}}))))),m=u||c?this.state.hasPopoverOptions:l,g=n&&!this.state.open?this.openPopover:this.closePopover,y=!n||i||this.state.inSelection,v={display:"flex",alignItems:"center",width:"100%",color:y&&"rgba(89, 89, 89, 0.8)",height:"100%",border:!o&&y&&"none",...a?{padding:a}:{paddingTop:0,paddingBottom:0},...s&&{minWidth:s}};this.state.open&&(v.background="rgba(0,0,0,0.08)");const b=()=>{this.setState({disableCyclicButton:!0})},x=Xg.detectTextDirection(t.text),w=yT.createElement(TY,{"aria-label":r.get(`Accessibility.${n&&m?"Alternative":"Normal"}.Instructions`,[t.text]),style:v,onClick:y?void 0:g,title:t.text,tabIndex:y?-1:0,onFocus:y?void 0:e=>{e.currentTarget.style.boxShadow="0px 0px 0px 2px #177FE6 inset",e.currentTarget.style.borderRadius="2px"},onBlur:y?void 0:e=>{e.currentTarget.style.boxShadow="none",e.currentTarget.style.borderRadius="0px"},onMouseDown:e=>{e.preventDefault()},className:`${EY} ${t.id}`,"data-id":`${e}-${t.id}`},t.locked&&yT.createElement(xY,FT({},ST,{size:"small",title:r.get("Tooltip.selections.locked")})),yT.createElement("span",{style:d,dir:x},t.text),n&&m&&yT.createElement(xY,FT({},kT,{size:"small",style:{margin:"0 8px"}})));return yT.createElement(yT.Fragment,null,t.icon&&t.icon.onClick&&yT.createElement(NY,{variant:"outlined",disabled:this.state.disableCyclicButton||this.state.inSelection,onClick:i?void 0:()=>t.icon.onClick({onError:b})},yT.createElement(xY,FT({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip)}))),t.icon&&!t.icon.onClick&&yT.createElement(xY,FT({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip),style:{margin:"0 4px 0 0"}})),p,yT.createElement("div",{ref:this.alignToRef,style:{overflow:"hidden",pointerEvents:m?"auto":"none",height:"100%"}},w),n&&m&&yT.createElement(qY,{chartId:e,dock:n.dock,dir:n.dir,currentId:t.id,alignTo:this.alignToRef.current,show:this.state.open,list:this.state.list,onClose:this.closePopover,changeTo:this.changeTo,instruction:r.get("Accessibility.Popover.Instructions")}))}}function AY(e){return{top:"bottom",bottom:"top",left:"right",right:"left"}[e]}function _Y(e){function t(e){return!e.isDimension&&Lg.getValue(e,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.length")>0}return{renderer:"react",disableTriggers:!0,preferredSize:function(){const{height:n}=e.measureText({text:"M",fontSize:this.style.fontSize,fontFamily:this.style.fontFamily});return this.settings.settings.isDimension||t(this.settings.settings)?Math.max(28,n):Math.max(20,n)},render(){const{settings:{app:e,disabled:n,explicitItemInfos:r,hyperCube:i,hyperCubeDef:o,isDimension:a,minWidth:s,model:l,onChangeToAlternative:u,padding:c,rtl:d,selections:f,skipAttributeExpressions:h,translator:p,supportConditional:m=!1},layout:{dock:g}}=this.settings,y="top"!==g&&"bottom"!==g||!d?"ltr":"rtl",v=function(e,t){const n={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",height:"100%"};return"left"===e?(n.width=`${t.height}px`,n.height=`${t.width}px`,n.transform=`rotate(-90deg) translate(-${t.height}px, 0)`,n.transformOrigin="top left"):"right"===e&&(n.width=`${t.height}px`,n.height=`${t.width}px`,n.transform=`rotate(90deg) translate(0, -${t.width}px)`,n.transformOrigin="top left"),n}(g,this.rect),b=o&&o.qLayoutExclude&&o.qLayoutExclude.qHyperCubeDef,x=b&&b[a?"qDimensions":"qMeasures"]||[],w=r||i[a?"qDimensionInfo":"qMeasureInfo"],S=a?IT:PT,M=a?RT:zT,k=Boolean(l&&l.colorSupport&&l.modifiers),C=k&&((q=this.settings.settings).isDimension&&Lg.getValue(q,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.length")>0||t(this.settings.settings));var q;const E=w.map(((t,r)=>{var i;const o="number"==typeof t.explicitColumn?t.explicitColumn:r,y=M(t,o,l,e),v=r===w.length-1,b=Boolean(e)&&a&&"N"!==t.qGrouping,q=k||b?S({column:o,activeInfo:t,altList:x,app:e,dir:d?"rtl":"ltr",dock:AY(g),model:l,onChange:u,skipAttributeExpressions:h,translator:p,allowChangeOfAlternatives:k}):void 0;return yT.createElement(yT.Fragment,{key:t.cId},yT.createElement(OY,{chartId:null!==(i=null==l?void 0:l.id)&&void 0!==i?i:"",showGroupDimOptions:b,popover:q,titleData:y,model:l,translator:p,selections:f,disabled:n(),style:this.style,isDimension:a,padding:c,minWidth:s,hasAlternative:C,supportConditional:m}),!v&&yT.createElement("span",{style:{lineHeight:"normal",...this.style}},", "))}));return yT.createElement("div",{style:v,dir:y},E)}}}OY.propTypes={chartId:VT.string.isRequired,disabled:VT.bool.isRequired,padding:VT.string,minWidth:VT.string,titleData:VT.shape({breadcrumbs:VT.arrayOf(VT.string).isRequired,icon:VT.shape({path:VT.shape({d:VT.string.isRequired}),tooltip:VT.string.isRequired,onClick:VT.func}),index:VT.number.isRequired,locked:VT.bool.isRequired,text:VT.string.isRequired,popoverText:VT.string.isRequired,drillUp:VT.func,id:VT.string.isRequired}).isRequired,popover:VT.shape({dir:VT.string.isRequired,dock:VT.string.isRequired,getPopoverOptions:VT.func.isRequired}),translator:VT.shape({get:VT.func.isRequired}).isRequired,selections:VT.shape({isActive:VT.func,addListener:VT.func,removeListener:VT.func}),style:VT.shape({fontSize:VT.string,color:VT.string,fontFamily:VT.string}).isRequired,isDimension:VT.bool.isRequired,hasAlternative:VT.bool.isRequired,supportConditional:VT.bool.isRequired,showGroupDimOptions:VT.bool.isRequired},OY.defaultProps={popover:null,selections:null,padding:"",minWidth:""};const LY=RN({palette:{text:{primary:"rgba(89, 89, 89, 0.8)",secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)"},action:{disabled:"rgba(0, 0, 0, 0.3)"}},typography:{fontFamily:'"Source Sans Pro", "Arial", "sans-serif"',button:{textTransform:"initial",fontWeight:400}},shape:{borderRadius:2},shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],props:{MuiButtonBase:{disableRipple:!0}}});const IY=FN({productionPrefix:"q0232",disableGlobal:!0,seed:""});function RY(){function e({x:e,y:t,width:n,height:r,scaleRatio:i,margin:o}={}){const a={x:0,y:0,width:0,height:0,scaleRatio:{x:1,y:1},margin:{left:0,top:0}};return a.x=Number.isNaN(e)?a.x:e,a.y=Number.isNaN(t)?a.y:t,a.width=Number.isNaN(n)?a.width:n,a.height=Number.isNaN(r)?a.height:r,void 0!==i&&(a.scaleRatio.x=Number.isNaN(i.x)?a.scaleRatio.x:i.x,a.scaleRatio.y=Number.isNaN(i.y)?a.scaleRatio.y:i.y),void 0!==o&&(a.margin.left=Number.isNaN(o.left)?0:o.left,a.margin.top=Number.isNaN(o.top)?0:o.top),a}return function(t={}){const{createElement:n=document.createElement.bind(document)}=t;let r,i=e();const o={element:()=>r,root:()=>r,appendTo:e=>(r||(r=n("div"),r.style.position="absolute",r.style["-webkit-font-smoothing"]="antialiased",r.style["-moz-osx-font-smoothing"]="antialiased",r.style.pointerEvents="none"),e.appendChild(r),r),render(e){if(!r)return!1;const t=i.scaleRatio.x,n=i.scaleRatio.y;return r.style.left=`${Math.round(i.margin.left+i.x*t)}px`,r.style.top=`${Math.round(i.margin.top+i.y*n)}px`,r.style.width=`${Math.round(i.width)}px`,r.style.height=`${Math.round(i.height)}px`,r.style.transform=`scale(${t}, ${n})`,r.style.transformOrigin="top left",GU.render(function(e,t){return yT.createElement(z_,{generateClassName:t},yT.createElement(TL,{theme:LY},e))}(e,IY),r),!0},itemsAt:()=>[],findShapes:()=>[],clear:()=>(r&&GU.unmountComponentAtNode(r),o),destroy(){r&&r.parentElement&&(GU.unmountComponentAtNode(r),r.parentElement.removeChild(r)),r=null},size:t=>(t&&(i=e(t)),i)};return o}}var PY={MAX_NUM_POINTS:5e4,DEFAULT_NUM_POINTS:2e3,DEFAULT_NUM_LINES:12};const{DEFAULT_NUM_POINTS:zY}=PY;function FY({layoutService:e,largeDataService:t}){const{maxNumPoints:n=zY}=(null==t?void 0:t.meta)||{},{qHyperCube:r}=e.getLayout();return r.qSize.qcy*r.qMeasureInfo.length>n}const{DEFAULT_NUM_LINES:jY}=PY,BY=({layoutService:e,largeDataService:t})=>{const{maxNumLines:n=jY}=(null==t?void 0:t.meta)||{},{qHyperCube:r}=e.getLayout();return r.qDimensionInfo.length>1&&!FY({layoutService:e,largeDataService:t})?e.meta.size.dimensions[1]+1:n},{DEFAULT_NUM_POINTS:HY}=PY,{MAX_NUM_POINTS:VY,DEFAULT_NUM_POINTS:$Y,DEFAULT_NUM_LINES:UY}=PY,{DEFAULT_NUM_POINTS:WY}=PY,YY=({layoutService:e,largeDataService:t})=>{if(!FY({layoutService:e,largeDataService:t})){const{maxNumPoints:e=WY}=(null==t?void 0:t.meta)||{};return e}const{dimensionCount:n}=e.meta;return n>1?(({layoutService:e,largeDataService:t})=>{var n;const{dimensions:r=[]}=(null==e||null===(n=e.meta)||void 0===n?void 0:n.size)||{},{maxNumLines:i=UY,maxNumPoints:o=$Y,hasInjectedData:a=!1}=(null==t?void 0:t.meta)||{};if(BY({layoutService:e,largeDataService:t})*r[0]<=o)return r[0];const s=Math.max(1,Math.min(i,r[1])),l=o/s,u=Math.floor(r[0]<=l?l:l/4),c=2*s*(s+1);return a&&(s>UY||o>$Y)?Math.min(u,Math.ceil(VY/c)):u})({layoutService:e,largeDataService:t}):(({layoutService:e,largeDataService:t})=>{const{maxNumPoints:n=HY}=(null==t?void 0:t.meta)||{},{measureCount:r=1}=(null==e?void 0:e.meta)||{},i=4+2*(r-1);return Math.floor(n/(r*i))})({layoutService:e,largeDataService:t})},KY=({start:e,end:t,model:n,layoutService:r,largeDataService:i,definitionPath:o})=>{const a={qStart:e,qEnd:t,qNbrPoints:YY({layoutService:r,largeDataService:i}),qMaxNbrTicks:300,qMaxNumberLines:BY({layoutService:r,largeDataService:i})};return n.getHyperCubeContinuousData(o,a,!1)};function GY({model:e,layoutService:t,largeDataService:n,definitionPath:r="/qHyperCubeDef"}){return{shouldFetchReduced:()=>FY({layoutService:t,largeDataService:n}),computeNbrOfBins:()=>YY({layoutService:t,largeDataService:n}),computeMaxNumberLines:()=>BY({layoutService:t,largeDataService:n}),fetch:(i,o)=>KY({start:i,end:o,model:e,layoutService:t,largeDataService:n,definitionPath:r})}}function XY(e={}){const{cache:t={}}=e;return{fetch:()=>Promise.resolve(t.merged)}}function JY({layoutService:e,viewCache:t}){return{fetch:()=>{const{qAxisData:t,qDataPages:n}=e.getHyperCube();return Promise.resolve({qAxisData:t,qDataPages:n})},getSnapshotData(){const n=e.getLayoutValue("snapshotData.content.chartData",{});return"zoom"in n&&"min"in n.zoom&&"max"in n.zoom?function({zoom:e}){return{zoom:e}}(n):function({scrollOffset:e=0,viewRange:t=0},n){let r=n+e,i=r+t;return 1===t&&0===e&&(r=n-.5,i=n+.5),{zoom:{min:r,max:i}}}(n,t.get("continuousMin"))}}}function QY(){const e=()=>{},t=[],n={};return e.set=(e,r)=>{const i=t.indexOf(e);i>-1&&t.splice(i,1),t.push(e),n[e]=r},e.forEach=e=>{t.forEach(((t,r)=>e(n[t],r)))},e.has=e=>e in n,e}function ZY(e,t,n){return n[0]&&n[0][1]&&n[0][1].qElemNumber>-1?function({start:e,end:t,matrix:n}){const r=[],i=QY(),o=QY();for(let a=0;a<n.length;a++){const s=n[a],l=s[1].qElemNumber.toString();s[0].qNum<e?i.set(l,s):s[0].qNum>t&&(o.has(l)||o.set(l,s)),s[0].qNum>=e&&s[0].qNum<=t&&r.push(s)}return i.forEach(((e,t)=>r.splice(t,0,e))),o.forEach((e=>r.push(e))),r}({start:e,end:t,matrix:n}):function({start:e,end:t,matrix:n}){const r=[];let i,o;for(let a=0;a<n.length;a++){const s=n[a];s[0].qNum<e?i=s:s[0].qNum>t&&(o||(o=s)),s[0].qNum>=e&&s[0].qNum<=t&&r.push(s)}return i&&r.unshift(i),o&&r.push(o),r}({start:e,end:t,matrix:n})}function eK(e,t){return{...e,qWidth:t[0]?t[0].length:0,qHeight:t.length}}function tK(e,t,n){const r={qDataPages:(n.qDataPages||[]).map((n=>{const r=ZY(e,t,n.qMatrix),i=eK(n.qArea,r);return{...n,qArea:i,qMatrix:r}}))};return n.qAxisData&&n.qAxisData.qAxis&&(r.qAxisData=function(e,t,n){return{qAxis:n.qAxis.map((n=>({qName:n.qName,qTags:n.qTags,qTicks:n.qTicks.reduce(((n,r)=>((r.qStart>=e&&r.qStart<=t||r.qEnd>=e&&r.qEnd<=t||r.qStart<e&&r.qEnd>t)&&n.push(r),n)),[])})))}}(e,t,n.qAxisData)),r}const nK=2**.5,rK=1/nK,iK=1e-6,oK=rK**44;function aK(e){return e.qIsOtherCell}function sK({qDataPages:e=[]}={},t={}){const n=e.length?e[0].qMatrix:[];return t.isStackedByDimension?function(e){const t={};return e.forEach((e=>{if(!e.some(aK)){const n=e[0].qElemNumber;t[n]=void 0}})),Object.keys(t).length}(n):function(e){let t=0;return e.forEach((e=>{e.some(aK)||t++})),t}(n)}const lK={query:{getShouldProcess:()=>!1},command:{processDataPage:()=>{}}};var uK={created(){this.state={}},beforeUpdate(){this.state={}},beforeRender({size:e}){this.state.ticks=this.scale.ticks({distance:e.width}).filter((e=>!e.isMinor)),"linear"===this.scale.type&&function(e,t){const[,n]=e.domain();for(let e=0;e<t.length;e++){const r=t[e],i=t[e+1];r.data={},i||1===r.end?i?(r.data.start=r.value,r.data.end=i.value,r.end=i.position):(r.data.start=r.value,r.data.end=r.value):(r.data.start=r.value,r.data.end=n,r.end=1)}}(this.scale,this.state.ticks)},render(){const e=this.scale.data().fields.length?this.scale.data().fields[0].id():"",{ticks:t}=this.state,n=t.map((t=>({type:"rect",fill:"none",data:{source:{field:e},value:[t.data.start,t.data.end]},x:t.start*this.rect.width,y:0,width:(t.end-t.start)*this.rect.width,height:this.rect.height})));if(t.length&&t[0].start>0){const r=t[0];n.unshift({type:"rect",fill:"none",data:{source:{field:e},value:[this.scale.domain()[0],r.data.start]},x:0,y:0,width:r.start*this.rect.width,height:this.rect.height})}return n}};const cK="…";function dK(e,t=1){if(t%2==0)return e;let n=Math.round(e);return e-n>0?n+=.5:n-=.5,n}function fK(e,t){const{localProps:{size:n},props:{anchor:r}}=t,i=function({props:e,localProps:{size:t},style:n,renderer:r}){const i=e.label.padding,o=Math.max(0,Math.min(e.label.justify,1)),a=Math.max(0,Math.min(e.label.align,1)),s=e=>r.measureText({text:e,fontSize:n.label.fontSize,fontFamily:n.label.fontFamily});return{resolve:(e,r)=>{const l="string"==typeof e.label?e.label:"",u=s(l);let{x:c,width:d}=r;e.start===e.end&&(d=u.width+2*i,1===e.end&&(c-=d));const f={x:c+i,y:i,width:d-2*i,height:t.height-2*i},h=s(`${l[0]}${cK}`).width,p=Math.max(0,f.width-u.width),m=Math.max(0,f.height-u.height),g=o*p,y=a*m;return{show:f.width>=Math.min(h,u.width),text:l,dx:g,dy:y,rect:f,style:n.label,segment:{x:c+g,width:u.width+2*i},tickValue:e.value}}}}(t),o=function({localProps:{size:e},style:t,scale:n,props:r}){const[i,o]=n.domain(),a=Math.max(0,Math.min(1,r.guideLine.major.justify));return{resolve:(n,r)=>{const s=a*r.width,l=dK(r.x+s,t.majorGuideLine.strokeWidth);return{show:n.value>=i&&n.value<=o,x1:l,y1:0,x2:l,y2:dK(e.height,t.majorGuideLine.strokeWidth),style:t.majorGuideLine,tickValue:n.value}}}}(t),a=e.map((e=>{const t=function(e,t,n){const r=Math.abs(Math.max(e.start,0)-Math.min(e.end,1))*t.width;return{x:Math.max(e[n],0)*t.width,y:0,width:r,height:t.height}}(e,n,r);return{rect:t,label:i.resolve(e,t),guideLine:o.resolve(e,t)}}));return function(e,t){const n=e.length;if(n<2)return;const r=e[n-1],i=t[n-1].label;if(r&&r.start===r.end)for(let e=n-2;e>-1;e--){const n=t[e].label;n.show=n.show&&(o=n.segment,a=i.segment,!(o.x<a.x?o.x+o.width>=a.x:a.x+a.width>=o.x))}var o,a}(e,a),a}function hK(e,t){const n=function({localProps:{size:e},props:t,style:n}){return{resolve:r=>{const i=Math.max(e.height-t.guideLine.minor.size,0)*Math.max(0,Math.min(t.guideLine.minor.align,1)),o=dK(r.position*e.width,n.minorGuideLine.strokeWidth);return{guideLine:{show:!0,x1:o,y1:dK(i,n.minorGuideLine.strokeWidth),x2:o,y2:dK(t.guideLine.minor.size+i,n.minorGuideLine.strokeWidth),style:n.minorGuideLine}}}}}(t);return t.props.guideLine.minor.show?e.map(n.resolve):[]}function pK(e){return e.filter((e=>e.show)).map((e=>Cg({strokeWidth:1},e.style,{type:"line",x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,tickValue:e.tickValue})))}var mK={require:["renderer"],defaultSettings:{layout:{displayOrder:0,prioOrder:0},settings:{anchor:"start",label:{show:!0,padding:4,align:0,justify:0},line:{show:!0},guideLine:{major:{justify:0},minor:{show:!0,size:4,align:0}}},style:{label:"$label",line:"$guide-line",majorGuideLine:"$guide-line",minorGuideLine:"$guide-line"}},preferredSize:()=>({size:30,edgeBleed:{left:1,right:1}}),init(){this.props=this.settings.settings,this.localProps={},this.state={major:[],minor:[]}},created(){this.init()},beforeUpdate(){this.init()},beforeRender({size:e}){this.localProps.size=e;const t=this.scale.ticks({distance:e.width}),n=t.filter((e=>!e.isMinor)),r=t.filter((e=>e.isMinor));this.state.line=function({localProps:{size:e},style:t,props:n}){const r=dK(1,t.line.strokeWidth);return{show:n.line.show,x1:dK(0,t.line.strokeWidth),y1:r,x2:dK(e.width,t.line.strokeWidth),y2:r,style:t.line}}(this),this.state.major=fK(n,this),this.state.minor=hK(r,this)},render(){return[...pK([this.state.line]),...(e=this.state.major.map((e=>e.label)),e.filter((e=>e.show)).map((e=>Cg({},e.style,{type:"text",x:e.rect.x,y:e.rect.y,dx:e.dx,dy:e.dy,maxWidth:e.rect.width,text:e.text,title:e.text,baseline:"text-before-edge",tickValue:e.tickValue})))),...pK(this.state.major.map((e=>e.guideLine))),...pK(this.state.minor.map((e=>e.guideLine)))];var e}};function gK(e,t){return e&&t&&e.qTicks.length===t.qTicks.length&&e.qTicks.every(((e,n)=>e.qStart===t.qTicks[n].qStart&&e.qEnd===t.qTicks[n].qEnd))}function yK(e){return e.qTags.indexOf("$qualified")>-1}function vK({qAxis:e}){const t=[],n=[];for(let r=0;r<e.length;r++){const i=r+1,o=e[r],a=e[i];gK(o,a)?(yK(a)?(t.push(i),n.push(r)):(t.push(r),n.push(i)),r++):(t.push(r),n.push(r))}return{qualified:t,nonQualified:n}}function bK({qualifiedMeta:e,nonQualifiedMeta:t}){return{resolve(n){let r,i=NaN,o=NaN,a=NaN,s=!1;for(let l=e.length-1;l>=0;l--){const u=e[l];if(u.queries.outer(n)){const e=t[l+1];if(i=u.index,r=l,u.attrs.isDayOrShorter()&&u.queries.canFitHalfDayTicks(n)){o="auto",s=!0;break}if(e&&e.queries.inner(n)){o=e.index;const r=t[l+2];r&&r.queries.minor(n)&&(a=r.index);break}}}if(!Number.isNaN(i)&&Number.isNaN(o)&&"auto"!==o){o=i,i=NaN;const e=t[r+1];e&&e.queries.minor(n)&&(a=e.index)}else Number.isNaN(i)&&(i="auto",o="auto");return{outer:i,inner:o,minor:a,isDayOrShorter:s}}}}const xK=16;function wK({qTicks:e,measureText:t=(()=>({width:0})),cache:n={},scale:r}){const i=n;return{isDayOrShorter:()=>(i.isDayOrShorter=e.length>0&&Math.abs(e[0].qStart-e[0].qEnd)<=1,i.isDayOrShorter),count:()=>e.length,maxRange:()=>(i.maxRange=e.length?Math.max(...e.map((e=>Math.abs(r(e.qStart)-r(e.qEnd))))):0,i.maxRange),rangeAndWidth(){const n=r.clamp();return r.clamp(!1),i.rangeAndWidth=e.map((e=>({range:Math.abs(r(e.qStart)-r(e.qEnd)),width:t(`${e.qText}`).width+xK}))),r.clamp(n),i.rangeAndWidth}}}const SK=6;function MK({attrs:e,reqAutoFitWidth:t}){return{outer:t=>!e.rangeAndWidth().some((({width:e,range:n})=>e>n*t)),inner:t=>!e.rangeAndWidth().some((({width:e,range:n})=>e>n*t)),minor:t=>e.maxRange()*t>=SK,canFitHalfDayTicks:n=>n>=t*e.count()}}function kK({qualified:e,nonQualified:t,qAxis:n,measureText:r,reqAutoFitWidth:i,scale:o},{attributesFactory:a=wK,queryFactory:s=MK}={attributesFactory:wK,queryFactory:MK}){const l=n.map(((e,t)=>function(e,t){const{qTicks:n}=e,l=a({qTicks:n,measureText:r,scale:o});return{data:e,index:t,attrs:l,queries:s({attrs:l,reqAutoFitWidth:i})}}(e,t))),u=e.map((e=>l[e])),c=t.map((e=>l[e]));return{qAxisMeta:l,qualifiedMeta:u,nonQualifiedMeta:c}}function CK({qAxis:e=[],measureText:t=(()=>({width:0})),cache:n={},reqAutoFitWidth:r=0,scale:i},{metaFactory:o=kK,mapper:a=vK,resolver:s=bK}={metaFactory:kK,mapper:vK,resolver:bK}){const{qualified:l,nonQualified:u}=a({qAxis:e}),{qualifiedMeta:c,nonQualifiedMeta:d}=o({qAxis:e,qualified:l,nonQualified:u,measureText:t,reqAutoFitWidth:r,scale:i}),f=s({qualifiedMeta:c,nonQualifiedMeta:d});return{resolve:t=>{const r=n.key({distance:t});if(n.get(r))return n.get(r);if(function(e){return!Array.isArray(e)||0===e.length||e.every((e=>0===e.qTicks.length))}(e))return{outer:"auto",inner:"auto",minor:NaN,isDayOrShorter:!1};const i=f.resolve(t);return n.set(r,i),i}}}const qK=86400,EK=864e5;function DK(e){return new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,0,Math.round(EK*(e-Math.floor(e)))))}const TK=DK(0).getTime();function NK(e){return(e.getTime()-TK)/qK/1e3}const OK=new Date,AK=new Date;function _K(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{const t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),i.range=(n,r,o)=>{const a=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return a;let s;do{a.push(s=new Date(+n)),t(n,o),e(n)}while(s<n&&n<r);return a},i.filter=n=>_K((t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),((e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})),n&&(i.count=(t,r)=>(OK.setTime(+t),AK.setTime(+r),e(OK),e(AK),Math.floor(n(OK,AK))),i.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?t=>r(t)%e==0:t=>i.count(0,t)%e==0):i:null)),i}const LK=1e3,IK=6e4,RK=36e5,PK=864e5,zK=6048e5,FK=_K((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*LK)}),((e,t)=>(t-e)/LK),(e=>e.getUTCSeconds()));FK.range;const jK=_K((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*LK)}),((e,t)=>{e.setTime(+e+t*IK)}),((e,t)=>(t-e)/IK),(e=>e.getMinutes()));jK.range;const BK=_K((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*IK)}),((e,t)=>(t-e)/IK),(e=>e.getUTCMinutes()));BK.range;const HK=_K((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*LK-e.getMinutes()*IK)}),((e,t)=>{e.setTime(+e+t*RK)}),((e,t)=>(t-e)/RK),(e=>e.getHours()));HK.range;const VK=_K((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*RK)}),((e,t)=>(t-e)/RK),(e=>e.getUTCHours()));VK.range;const $K=_K((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*IK)/PK),(e=>e.getDate()-1));$K.range;const UK=_K((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/PK),(e=>e.getUTCDate()-1));UK.range;const WK=_K((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/PK),(e=>Math.floor(e/PK)));function YK(e){return _K((t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),((e,t)=>{e.setDate(e.getDate()+7*t)}),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*IK)/zK))}WK.range;const KK=YK(0),GK=YK(1),XK=YK(2),JK=YK(3),QK=YK(4),ZK=YK(5),eG=YK(6);function tG(e){return _K((t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)}),((e,t)=>(t-e)/zK))}KK.range,GK.range,XK.range,JK.range,QK.range,ZK.range,eG.range;const nG=tG(0),rG=tG(1),iG=tG(2),oG=tG(3),aG=tG(4),sG=tG(5),lG=tG(6);nG.range,rG.range,iG.range,oG.range,aG.range,sG.range,lG.range;const uG=_K((e=>{e.setDate(1),e.setHours(0,0,0,0)}),((e,t)=>{e.setMonth(e.getMonth()+t)}),((e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())),(e=>e.getMonth()));uG.range;const cG=_K((e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)}),((e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())),(e=>e.getUTCMonth()));cG.range;const dG=_K((e=>{e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,t)=>{e.setFullYear(e.getFullYear()+t)}),((e,t)=>t.getFullYear()-e.getFullYear()),(e=>e.getFullYear()));dG.every=e=>isFinite(e=Math.floor(e))&&e>0?_K((t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,n)=>{t.setFullYear(t.getFullYear()+n*e)})):null,dG.range;const fG=_K((e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)}),((e,t)=>t.getUTCFullYear()-e.getUTCFullYear()),(e=>e.getUTCFullYear()));fG.every=e=>isFinite(e=Math.floor(e))&&e>0?_K((t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null,fG.range;const hG={second:1,minute:2,hour:3,day:4,month:5,year:6};function pG({timeScale:e,labels:t,distance:n,isDayOrShorter:r,cache:i,timeOnly:o,initialMin:a}){const[s,l]=e.domain(),u=i.key({distance:n});let c;i.get(u,1)?c=i.get(u,1):(c=function(e,t,n,r,i,o){function a(e){return fG.filter((t=>(t.getUTCFullYear()-o.getUTCFullYear())%e==0))}const s=FK.count(e,t),l=BK.count(e,t),u=VK.count(e,t),c=UK.count(e,t),d=nG.count(e,t),f=cG.count(e,t),h=fG.count(e,t),p=n/r.second.width-1,m=n/r.minute.width-1,g=n/r.date.width-1,y=n/r.year.width-1,v={type:"year",desc:"year",count:h,interval:fG.every(1),formatter:r.year.formatter,offset:e=>fG.offset(e,-1),floor:fG.floor};if(s<=p)v.type=hG.second,v.desc="second",v.count=s,v.interval=FK.every(1),v.formatter=r.second.formatter,v.offset=e=>FK.offset(e,-1),v.floor=FK.floor;else if(s/2<=p)v.type=hG.second,v.desc="every other second",v.count=s/2,v.interval=FK.every(2),v.formatter=r.second.formatter,v.offset=e=>FK.offset(e,-2),v.floor=FK.floor;else if(s/5<=p)v.type=hG.second,v.desc="every 5 second",v.count=s/5,v.interval=FK.every(5),v.formatter=r.second.formatter,v.offset=e=>FK.offset(e,-5),v.floor=FK.floor;else if(s/15<=p)v.type=hG.second,v.desc="every 15 second",v.count=s/15,v.interval=FK.every(15),v.formatter=r.second.formatter,v.offset=e=>FK.offset(e,-15),v.floor=FK.floor;else if(s/30<=p)v.type=hG.second,v.desc="every 30 second",v.count=s/30,v.interval=FK.every(30),v.formatter=r.second.formatter,v.offset=e=>FK.offset(e,-30),v.floor=FK.floor;else if(l<=m)v.type=hG.minute,v.desc="minute",v.count=l,v.interval=BK.every(1),v.formatter=r.minute.formatter,v.offset=e=>BK.offset(e,-1),v.floor=BK.floor;else if(l/2<=m)v.type=hG.minute,v.desc="every 2 minute",v.count=l/2,v.interval=BK.every(2),v.formatter=r.minute.formatter,v.offset=e=>BK.offset(e,-2),v.floor=BK.floor;else if(l/5<=m)v.type=hG.minute,v.desc="every 5 minute",v.count=l/5,v.interval=BK.every(5),v.formatter=r.minute.formatter,v.offset=e=>BK.offset(e,-5),v.floor=BK.floor;else if(l/10<=m)v.type=hG.minute,v.desc="every 10 minute",v.count=l/10,v.interval=BK.every(10),v.formatter=r.minute.formatter,v.offset=e=>BK.offset(e,-10),v.floor=BK.floor;else if(l/15<=m)v.type=hG.minute,v.desc="every 15 minute",v.count=l/15,v.interval=BK.every(15),v.formatter=r.minute.formatter,v.offset=e=>BK.offset(e,-15),v.floor=BK.floor;else if(l/30<=m)v.type=hG.minute,v.desc="every 30 minute",v.count=l/30,v.interval=BK.every(30),v.formatter=r.minute.formatter,v.offset=e=>BK.offset(e,-30),v.floor=BK.floor;else if(u<=m)v.type=hG.hour,v.desc="hour",v.count=u,v.interval=VK.every(1),v.formatter=r.minute.formatter,v.offset=e=>VK.offset(e,-1),v.floor=VK.floor;else if(u/2<=m)v.type=hG.hour,v.desc="every 2 hour",v.count=u/2,v.interval=VK.every(2),v.formatter=r.minute.formatter,v.offset=e=>VK.offset(e,-2),v.floor=VK.floor;else if(u/3<=m)v.type=hG.hour,v.desc="every 3 hour",v.count=u/3,v.interval=VK.every(3),v.formatter=r.minute.formatter,v.offset=e=>VK.offset(e,-3),v.floor=VK.floor;else if(u/6<=m)v.type=hG.hour,v.desc="every 6 hour",v.count=u/6,v.interval=VK.every(6),v.formatter=r.minute.formatter,v.offset=e=>VK.offset(e,-6),v.floor=VK.floor;else if(u/12<=m||i)v.type=hG.hour,v.desc="every 12 hour",v.count=u/12,v.interval=VK.every(12),v.formatter=r.minute.formatter,v.offset=e=>VK.offset(e,-12),v.floor=VK.floor;else if(c<=g)v.type=hG.day,v.desc="day",v.count=c,v.interval=UK.every(1),v.formatter=r.date.formatter,v.offset=e=>UK.offset(e,-1),v.floor=UK.floor;else if(c/2<=g)v.type=hG.day,v.desc="every 2 day",v.count=c/2,v.interval=UK.every(2),v.formatter=r.date.formatter,v.offset=e=>UK.offset(e,-2),v.floor=UK.floor;else if(c/3<=g)v.type=hG.day,v.desc="every 3 day",v.count=c/3,v.interval=UK.every(3),v.formatter=r.date.formatter,v.offset=e=>UK.offset(e,-3),v.floor=UK.floor;else if(d<=g)v.type=hG.day,v.desc="week",v.count=d,v.interval=nG.every(1),v.formatter=r.date.formatter,v.offset=e=>nG.offset(e,-1),v.floor=UK.floor;else if(d/2<=g)v.type=hG.day,v.desc="every 2 week",v.count=d/2,v.interval=nG.every(2),v.formatter=r.date.formatter,v.offset=e=>nG.offset(e,-2),v.floor=UK.floor;else if(f<=g)v.type=hG.month,v.desc="month",v.count=f,v.interval=cG.every(1),v.formatter=r.date.formatter,v.offset=e=>cG.offset(e,-1),v.floor=UK.floor;else if(f/3<=g)v.type=hG.month,v.desc="quarter",v.count=f/3,v.interval=cG.every(3),v.formatter=r.date.formatter,v.offset=e=>cG.offset(e,-3),v.floor=UK.floor;else if(f/6<=g)v.type=hG.month,v.desc="half year",v.count=f/6,v.interval=cG.every(6),v.formatter=r.date.formatter,v.offset=e=>cG.offset(e,-6),v.floor=UK.floor;else if(h<=y)v.type=hG.year,v.desc="year",v.count=h,v.interval=fG.every(1),v.formatter=r.year.formatter,v.offset=e=>fG.offset(e,-1),v.floor=fG.floor;else if(h/2<=y)v.type=hG.year,v.desc="every 2 year",v.count=h/2,v.interval=a(2),v.formatter=r.year.formatter,v.offset=e=>fG.offset(e,-2),v.floor=fG.floor;else if(h/5<=y)v.type=hG.year,v.desc="every 5 year",v.count=h/5,v.interval=a(5),v.formatter=r.year.formatter,v.offset=e=>fG.offset(e,-5),v.floor=fG.floor;else if(h/10<=y)v.type=hG.year,v.desc="every 10 year",v.count=h/10,v.interval=a(10),v.formatter=r.year.formatter,v.offset=e=>fG.offset(e,-10),v.floor=fG.floor;else{const e=Math.max(1,Math.floor(h/y));v.type=hG.year,v.desc="every nth year",v.count=e,v.interval=a(e),v.formatter=r.year.formatter,v.offset=t=>fG.offset(t,-e),v.floor=fG.floor}return v}(s,l,n,t.all(),r,a),i.set(u,c,1));const d=e.ticks(c.interval);d.length?s.getTime()!==d[0].getTime()&&d.unshift(c.offset(d[0])):d.push(c.floor(s));const f=d.map(((e,t,n)=>{const r=n[t+1]?n[t+1]-e:l-e;return{start:e,end:new Date(e.getTime()+r),formatter:c.formatter}}));let h=[];if(!o&&c.type<=hG.hour){const n=t.getFormat("date"),r=e.ticks(UK.every(1));r.length&&s.getUTCDate()!==r[0].getUTCDate()&&r.unshift(UK.offset(r[0],-1)),h=(r.length?r:[UK.floor(s)]).map(((e,t,r)=>{const i=r[t+1]?r[t+1]-e:l-e;return{start:e,end:new Date(e.getTime()+i),formatter:n.formatter}}))}return{inner:f,outer:h}}const mG=86400,gG=1440,yG={};function vG(e,t,n,r){return{type:e,start:new Date(Date.UTC(...t)),end:new Date(Date.UTC(...n)),formatter:r}}function bG(e,t,n){const{generator:r,anchor:i,clamp:o,level:a}=t.ticks,{qNumFormat:s}=t.formatter;e.clamp(o);const[l,u]=e.domain(),c=cS().domain([DK(l),DK(u)]);c.clamp(o),c.range(t.invert?[1,0]:[0,1]);const d="object"==typeof r?r:{type:r};let f;f="d3"===d.type?(e,i)=>pG({timeScale:c,labels:n,distance:e,isDayOrShorter:i,cache:t.cache,timeOnly:"T"===s.qType,initialMin:void 0===d.initialMin?c.domain()[0]:DK(r.initialMin)}):e=>function(e,t,n,r,i,o=!1){if(yG[[t,n,r,r,o]])return yG[[t,n,r,r,o]];const a={year:e.getFormat("year"),date:e.getFormat("date"),minute:e.getFormat("minute"),second:e.getFormat("second")},s=DK(n),l=s.getFullYear(),u=s.getMonth(),c=s.getDate(),d=r-n,f=t/(i-r),h=f/1440,p=f/mG,m=366*f,g=3*f*30,y=a.second.width/p,v=a.minute.width/h,b=a.date.width/g,x=a.year.width/m;let w,S,M,k=0,C=0,q=null,E=null,D=null,T=null,N=null,O=null;const A={outer:[],inner:[]};for(y<1?(q=1,C=1/mG):y<2?(q=2,C=1/mG*2):y<5?(q=5,C=1/mG*5):y<10?(q=10,C=1/mG*10):y<30?(q=30,C=1/mG*30):v<1?(E=1,C=1/gG):v<2?(E=2,C=1/gG*2):v<5?(E=5,C=1/gG*5):v<10?(E=10,C=1/gG*10):v<30?(E=30,C=1/gG*30):v<60?(D=1,C=1/24):v<120?(D=2,C=2/24):v<360?(D=6,C=.25):v<720?(D=12,C=.5):b<1/90?(C=1,T=1):b<2/90?(C=2,T=2):b<7/90?(C=7,T=7):b<31/90?(N=1,C=31):b<1?(N=3,C=90):x<1?(O=1,C=366):x<2?(O=2,C=732):x<5?(O=5,C=1826.25):(O=10,C=3652.5),S=Math.floor((d+n%1)/C);k<i;){M=S+1,w=O?vG("year",[l+S*O,0,1],[l+M*O,0,1],a.year.formatter):N?vG("month",[l,u+S*N,1],[l,u+M*N,1],a.date.formatter):T?vG("day",[l,u,c+S*T],[l,u,c+M*T],a.date.formatter):D?vG("hour",[l,u,c,0+S*D],[l,u,c,0+M*D],a.minute.formatter):E?vG("minute",[l,u,c,0,0+S*E],[l,u,c,0,0+M*E],a.minute.formatter):vG("second",[l,u,c,0,0,0+S*q],[l,u,c,0,0,0+M*q],a.second.formatter),k=NK(w.start),A.inner.push(w);const e=Math.floor(k);if(!(o||O||N||T)){const t={type:"day",start:DK(e),end:DK(e+1),formatter:a.date.formatter,qStart:e};A.outer[A.outer.length-1]&&A.outer[A.outer.length-1].qStart===t.qStart||A.outer.push(t)}S++}return A.min=r,A.max=i,yG[[t,n,r,r,o]]=A,A}(n,e,d.min,l,u,"T"===s.qType);const h={transform:(t=[],{isMinor:n=!1}={})=>t.map((t=>{let r;r="start"===i?t.qStart:"end"===i?t.qEnd:(t.qStart+t.qEnd)/2;const o=e.clamp();n&&e.clamp(!1);const a=e(r),s=e(t.qStart),l=e(t.qEnd);return e.clamp(o),{value:r,position:a,start:s,end:l,label:t.qText,isMinor:n,data:n?void 0:{start:t.qStart,end:t.qEnd,scaleStart:e.domain()[0]}}})).filter((e=>e.position>=0&&e.position<=1)),generate:(t=100,n)=>f(t,n)[a].map((t=>{let n;return n="start"===i?NK(t.start):"end"===i?NK(t.end):(NK(t.start)+NK(t.end))/2,{position:c(t.start),start:c(t.start),end:c(t.end),value:n,label:t.formatter(n),isMinor:!1,data:{start:NK(t.start),end:NK(t.end),scaleStart:e.domain()[0]}}})).filter((e=>e.position>=0&&e.position<=1))};return h}const xG=41000.2343433,wG=/t+/i,SG=16,MG=60;const kG={min:NaN,max:NaN,invert:!1,qAxis:[],field:void 0,formatter:{fn:()=>e=>e,measureText:()=>({width:0,height:0}),localeInfo:{},qNumFormat:{}},ticks:{generator:"d3",level:"outer",anchor:void 0,clamp:!1},cache:{get:()=>!1,set:()=>{},key:()=>""}};function CG(e,t){e.instance||(e.instance=t.copy(),e.instance.domain(t.domain()),e.instance.clamp(!0),e.instance.range(e.invert?[1,0]:[0,1]))}const qG="continuousPan";var EG={model:function({model:e,layoutService:t,largeDataService:n,dataProcessorModel:r=lK,viewCache:i,viewState:o,definitionPath:a},s={}){const{engineFetcherFactory:l=GY,snapshotFetcherFactory:u=JY,cacheFetcherFactory:c=XY,cache:d={initial:{},merged:{}}}=s,f=l({model:e,layoutService:t,largeDataService:n,definitionPath:a}),h=u({layoutService:t,viewCache:i}),p=c({cache:d}),m=e=>{throw e.isHandled=!0,e};let g,y,v;return{update(e){({initialMin:y,initialMax:v}=function(e={}){let{qMin:t,qMax:n}=e;return t=Number.isNaN(+t)?0:t,n=Number.isNaN(+n)?0:n,{initialMin:t,initialMax:n}}(e.qHyperCube.qDimensionInfo[0])),i.set("continuousMin",y),i.set("continuousMax",v),i.set("minimiumZoomSpan",function(e,t){return Math.max(iK,(t-e)*oK)}(y,v)),g=t.meta.isSnapshot?h:f,t.meta.isSnapshot&&({zoom:{min:y,max:v}}=h.getSnapshotData()),o.preventSet("zoom",{min:y,max:v})},updateLayout(e){const{qDataPages:n,qAxisData:r}=e;return t.setHyperCubeValue("qDataPages",n),t.setHyperCubeValue("qAxisData",r),t.setHyperCubeValue("qMode","S"),t.setHyperCubeValue("qColumnOrder",[]),e},initialFetch(){return g.fetch(y,v).then((e=>{const t=function(e){return{qDataPages:e.qDataPages.map((e=>{const t=eK(e.qArea,e.qMatrix);return{...e,qArea:t}})),qAxisData:e.qAxisData}}(e);return r.command.processDataPage({dataPage:t.qDataPages.length?t.qDataPages[0]:[]}),d.initial=t,d.merged=t,e})).then((e=>tK(y,v,e))).then((e=>this.updateLayout(e))).catch(m)},fetch:(e,t)=>g.fetch(e,t).then((e=>function(e,t){const n={};return n.qDataPages=(e.qDataPages||[]).map(((e,n)=>{const r=function(e,t){if(!t||!t.length||!t[0].length)return e;const n=t[0][0].qNum,r=t[t.length-1][0].qNum,i=[],o=[];for(let t=0,a=e.length;t<a;t++){const a=e[t][0];a.qNum<n?i.push(e[t]):a.qNum>r&&o.push(e[t])}return[...i,...t,...o]}(e.qMatrix,t.qDataPages[n].qMatrix),i=eK(e.qArea,r);return{...e,qArea:i,qMatrix:r}})),e.qAxisData&&e.qAxisData.qAxis&&(n.qAxisData=function(e,t){if(!t||!t.qAxis.length||t.qAxis.every((e=>!e.qTicks.length)))return e;const n=t.qAxis.map((e=>e.qName)),r=t.qAxis.map((e=>({start:e.qTicks[0].qStart,end:e.qTicks[e.qTicks.length-1].qStart}))),i=t.qAxis.map((e=>({qName:e.qName,qTags:[...e.qTags],qTicks:[...e.qTicks]})));for(let t=0,o=e.qAxis.length;t<o;t++){const o=e.qAxis[t],a=n.indexOf(o.qName),s=[],l=[];if(a>-1){const{start:e,end:t}=r[a];for(let n=0,r=o.qTicks.length;n<r;n++){const r=o.qTicks[n];r.qStart<e?s.push(r):r.qStart>t&&l.push(r)}i[a].qTicks=[...s,...i[a].qTicks,...l]}}return{qAxis:i}}(e.qAxisData,t.qAxisData)),n}(d.initial,e))).then((e=>(r.command.processDataPage({dataPage:e.qDataPages.length?e.qDataPages[0]:[]}),d.merged=e,e))).then((n=>tK(e,t,n))).catch(m),fetchFromCache:(e,t)=>p.fetch(e,t).then((n=>tK(e,t,n))),fetchMinMaxData:()=>Promise.resolve(d.initial.qDataPages||[]),getInitialCube(){const e=t.getHyperCube();return Cg({},e,{...d.initial})},getInitialLayout(){const e=this.getInitialCube();return Cg({},t.getLayout(),{qHyperCube:e})},getDimensionCardinality:()=>sK(d.initial,t.meta),setSnapshotData(e){const{qHyperCube:t}=e,n=r.query.getShouldProcess()?[r.query.getFilteredDataPage({dataPage:d.merged.qDataPages[0]})]:d.merged.qDataPages;t.qDataPages=n,t.qAxisData=d.merged.qAxisData}}},event:{onZoomChange:function(e,t){const{layoutService:n,continuousDataModel:r}=e;function i(e,n,i){return r[e](n,i).then((e=>(r.updateLayout(e),t(),e)))}const o=VC(((e,t)=>i("fetch",e,t)),50);return({min:e,max:t},{min:r,max:a})=>!n.meta.isContinuous||e===r&&t===a?Promise.resolve(null):i("fetchFromCache",e,t).then((n=>(o(e,t),n)))},onZoomIntercept:function({viewCache:e}){let t=NaN,n=NaN,r=NaN;return(i,o)=>(t=e.get("continuousMin"),n=e.get("continuousMax"),r=e.get("minimiumZoomSpan"),Math.abs(i.max-i.min)<r?o:{min:Math.min(i.max,Math.max(t,i.min)),max:Math.max(i.min,Math.min(n,i.max))})},onZoom:function({viewCache:e,viewState:t,chart:n},{threshold:r=50,rtl:i=!1,targetKey:o}){const a=e.get("continuousMin"),s=e.get("continuousMax");return $C(((e,r)=>{const l=(e=>n.componentsFromPoint(e).filter((e=>e.key===o))[0])(e);if(l){const o=function(e,t,n){let{x:r}=e;return r-=t.element.getBoundingClientRect().left,r-=n.rect.x,Math.max(0,Math.min(1,r/n.rect.width))}(e,n,l),u=i?1-o:o,{min:c,max:d}=t.get("zoom"),f=Math.abs(d-c),h=f-(r>0?rK:nK)*f,p=c+h*u,m=d-h*(1-u),g=p<a?a-p:0,y=m>s?m-s:0;t.set("zoom",{min:Math.max(p-y,a),max:Math.min(m+g,s)})}}),r)}},interactions:{areaPan:function({targetKey:e,chart:t,actions:n,viewState:r,viewCache:i}){return{type:"Pan",key:"continuous:pan",options:{event:qG,pointers:1,threshold:10,enable(r,i){return this.started===qG||!i||!!n.scroll.enabled()&&t.componentsFromPoint({x:i.center.x,y:i.center.y}).some((t=>t.key===e))}},events:{[`${qG}start`](n){n.preventDefault(),this.started=qG;const{min:i,max:o}=r.get("zoom");this[qG]={min:i,max:o,size:t.component(e).rect.computedInner.width,span:o-i}},[`${qG}move`](e){e.preventDefault();const{span:t,min:n,max:o,size:a}=this[qG],s=-e.deltaX/a;r.set("zoom",{min:Math.min(n+s*t,i.get("continuousMax")-t),max:Math.max(o+s*t,i.get("continuousMin")+t)})},[`${qG}end`](e){e.preventDefault(),this.started=!1},[`${qG}cancel`](e){e.preventDefault(),this.started=!1}}}}},picassoComponents:{axisOverlay:uK,timeAxis:mK},picassoScales:{time:function e(t,n={}){const r=function(e,t,n){const r={};return Object.keys(t).forEach((i=>{const o=e[i],a=typeof o;"function"===a?r[i]=o(n):"object"!==a||Array.isArray(o)?r[i]="undefined"===a?t[i]:o:r[i]=Cg(!0,{},t[i],o)})),r}(t,kG,n),{qAxis:i}=r,o=ex(),a={instance:null,invert:!1},{min:s,max:l}=function(e,t){let n=+e.min,r=+e.max;return Number.isNaN(n)&&Number.isNaN(r)&&Array.isArray(t)&&t.length&&(n=Math.min(...t[t.length-1].qTicks.map((e=>e.qStart))),r=Math.max(...t[t.length-1].qTicks.map((e=>e.qEnd)))),n===r&&(n-=.5,r+=.5),{min:Number.isNaN(+n)?0:n,max:Number.isNaN(+r)?1:r}}(r,i);let u,c,d=[];const f=function(e){return Number.isNaN(+e)?NaN:o(e)};f.ticks=({distance:e,resolve:t=u.resolve}={})=>{const n=t(e),o=n[r.ticks.level];if(Number.isNaN(+o)||(d=c.transform(i[o].qTicks,{isMinor:!1})),!Number.isNaN(+n.minor)){const e=c.transform(i[n.minor].qTicks,{isMinor:!0});d=d.concat(e)}return"auto"===o&&(d=c.generate(e,n.isDayOrShorter)),d},f.invert=e=>o.invert(e),f.domain=e=>Array.isArray(e)?o.domain(e):o.domain(),f.range=e=>Array.isArray(e)?o.range(e):o.range(),f.norm=e=>(CG(a,f),a.instance(e)),f.normInvert=e=>(CG(a,f),a.instance.invert(e)),f.copy=()=>e(t,n),f.clamp=(e=!0)=>(o.clamp(e),o.clamp()),f.min=()=>Math.min(s,l),f.max=()=>Math.max(s,l),o.range(r.invert?[1,0]:[0,1]),o.domain([s,l]),a.invert=r.invert;const h=function(e){const t={},{measureText:n,fn:r,localeInfo:i}=e.formatter,o={second:{type:"second",pattern:"hh:mm:ss",width:MG,formatter:void 0},minute:{type:"minute",pattern:"hh:mm",width:MG,formatter:void 0},date:{type:"date",pattern:"YYYY-MM-DD",width:MG,formatter:void 0},year:{type:"year",pattern:"YYYY",width:MG,formatter:void 0}};return i&&wG.test(i.qTimestampFmt)&&(o.minute.pattern+=" tt",o.second.pattern+=" tt"),o.date.pattern=i&&i.qDateFmt?i.qDateFmt:o.date.pattern,Object.keys(o).forEach((e=>{o[e].formatter=r(o[e].pattern),o[e].width=Math.max(o[e].width,n(o[e].formatter(xG)).width+SG)})),t.getFormat=e=>o[e],t.all=()=>o,t.getFormatFromTicks=e=>{const t=e.filter((e=>!e.isMinor)),{length:n}=t;if(!n)return o.date;const r=DK(t[0].data.start),i=DK(t[n-1].data.start);return UK.count(r,i)/n>=1?o.date:VK.count(r,i)/n>0?o.minute:BK.count(r,i)/n>0?o.second:o.date},t}(r);return c=bG(o.copy(),r,h),u=CK({qAxis:i,measureText:r.formatter.measureText,reqAutoFitWidth:2*h.getFormat("minute").width,cache:r.cache,scale:f}),f.data=()=>({fields:[{formatter:f.formatter,id:()=>`qHyperCube/${r.field}`,key:()=>r.field,raw:zC(n,"fields.0.raw",(()=>({})))}]}),f.formatter=()=>h.getFormatFromTicks(d).formatter,f}}};const DG={MINI_CHART:{value:"miniChart",translation:"properties.scrollbar.miniChart"},BAR:{value:"bar",translation:"properties.scrollbar.bar"},NONE:{value:"none",translation:"properties.scrollbar.none"}};var TG={OPTIONS:DG,DEFAULT:DG.MINI_CHART};function NG({layoutService:e,discrete:t}){return({h:n,rect:r,orientation:i,minThumbSize:o})=>{const a=t.query.getCurrentDataPage(),s=e.meta.size.y,l="horizontal"===i,u=r[l?"width":"height"];let c=a.qArea.qTop/s*u,d=a.qArea.qHeight/s*u;if(d<o){const e=(o-d)/2;c=c-e+(Math.max(0,0-(c-e))-Math.max(0,c+d+e-u)),d=o}return n("div",{style:{position:"absolute",right:0,bottom:0,background:"red",opacity:.2,...l?{top:0,left:c,width:d}:{top:c,left:0,height:d}}})}}function OG({layoutService:e,viewState:t,viewCache:n}){return e.meta.isContinuous?function(e,t){const n=e.get("zoom"),r=t.get("continuousMin"),i=t.get("continuousMax");return[(n.min-r)/(i-r),(n.max-r)/(i-r)]}(t,n):function(e){return e.get("viewRange")}(t)}const AG=e=>({miniChart:e===TG.OPTIONS.MINI_CHART.value,bar:e===TG.OPTIONS.BAR.value,none:e===TG.OPTIONS.NONE.value}),_G=({layoutService:e})=>{const t=e.getLayoutValue("scrollbar");if(t)return AG(t);const n=e.getLayoutValue("showMiniChartForContinuousAxis");if(void 0===n)return AG(TG.DEFAULT.value);const r=e.getLayoutValue("dimensionAxis.continuousAuto"),i=e.getLayoutValue("preferContinuousAxis");return AG(!n&&(r||!r&&i)?TG.OPTIONS.NONE.value:TG.OPTIONS.MINI_CHART.value)};function LG({layoutService:e,override:t}){const n=_G({layoutService:e});return t&&t.predicate({layoutService:e,scrollbar:n})&&(n.miniChart=t.value===TG.OPTIONS.MINI_CHART.value,n.bar=t.value===TG.OPTIONS.BAR.value,n.none=t.value===TG.OPTIONS.NONE.value),n}function IG({layoutService:e,dockService:t,discrete:n,continuousDataModel:r,viewState:i,viewCache:o,themeService:a,rtl:s,scrollbarOverride:l,visualizeCache:u=!1,deviceType:c}){const d=LG({layoutService:e,override:l});if(d.none)return!1;const{orientation:f}=t.meta.major,h={key:"scrollbar",type:"scrollbar",layout:{dock:"horizontal"===f?t.meta.minor.start:t.meta.minor.end,minimumLayoutMode:"XSMALL"},show:()=>e.meta.isContinuous?r.getDimensionCardinality()>1:n.query.getCanScroll(),settings:{orientation:f,rtl:s,isContinuous:e.meta.isContinuous,range:()=>OG({layoutService:e,viewState:i,viewCache:o})}};d.bar&&(h.settings.style="slim",h.settings.size={area:"touch"===c?{max:16,min:16}:{max:8,min:8}},e.meta.isContinuous||(h.settings.size.thumb={min:4}));const p=a.getStyles();return p.color&&(h.style={standard:{thumb:{"border-color":p.color,opacity:.4},before:{background:p.color,opacity:.1},after:{background:p.color,opacity:.1}}}),e.meta.isDiscrete&&u&&(h.settings.injections=()=>[NG({layoutService:e,discrete:n})]),h}function RG({componentKey:e,chart:t,viewState:n,viewCache:r,layoutService:i,dockService:o,rtl:a}){return s=>{const{x:l,y:u}=s.center,c=t.element.getBoundingClientRect(),d=t.component(e),f="horizontal"===o.meta.major.orientation,h=f?l-c.left-d.rect.computedInner.x:u-c.top-d.rect.computedInner.y,p=f?d.rect.computedInner.width:d.rect.computedInner.height,m=f&&a?p-h:h,g=Math.max(0,Math.min(m/p,1)),[y,v]=OG({layoutService:i,viewState:n,viewCache:r}),b=g<y,x=g>v,w=!b&&!x;return{pixel:m,relative:g,thumb:w?m-y*p:0,beforeThumb:b,afterThumb:x,onThumb:w}}}function PG({componentKey:e,chart:t,viewState:n,viewCache:r,layoutService:i,dockService:o}){return()=>{const a=t.component(e),{orientation:s}=o.meta.major,{width:l,height:u}=a.rect.computedInner,c="horizontal"===s?l:u,[d,f]=OG({layoutService:i,viewState:n,viewCache:r});return{size:c,thumbSize:(f-d)*c}}}function zG({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}){const u=RG({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:l}),c=PG({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a});return{type:"Tap",options:{event:"scrollbarTap",enable:(r,i)=>!i||!!n.scroll.enabled()&&t.componentsFromPoint({x:i.center.x,y:i.center.y}).some((t=>t.key===e))},events:{scrollbarTap(n){n.preventDefault();const a=u(n);if(o.meta.isContinuous){const e=r.get("zoom"),t=e.max-e.min,n=i.get("continuousMin"),o=i.get("continuousMax"),s=n+(o-n)*a.relative;r.set("zoom",{min:Math.min(s-t/2,o-t),max:Math.max(s+t/2,n+t)})}else{const e=c(),t=a.pixel-e.thumbSize/2,n=Math.max(0,t/e.size);s.command.scrollTo(n)}t.component(e).emit("render")}}}}const FG="data-scrollbar-handle";function jG({e:e}){return(e.srcEvent||e).srcElement.getAttribute(FG)||""}const BG="scrollbarResize",HG=e=>{const[t]=e.changedPointers;return t&&("pointerdown"===t.type||"mousedown"===t.type)};function VG({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:s}){const l=RG({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:s});return{type:"Pan",key:`event:${BG}`,options:{event:BG,threshold:0,enable(e,t){return!(!o.meta.isContinuous||!n.scroll.enabled())&&(!t||(this[BG]=this[BG]||{},HG(t)&&jG({e:t})&&(this[BG].panningEvent=t.srcEvent),!!this[BG].panningEvent))}},events:{[`${BG}start`](n){n.preventDefault(),this[BG]=this[BG]||{},this[BG].panningEvent&&t.component(e).emit("dragStart",this[BG].panningEvent)},[`${BG}move`](n){if(n.preventDefault(),this[BG]=this[BG]||{},!this[BG].panningEvent)return;const o=r.get("zoom"),a=i.get("continuousMin"),s=i.get("continuousMax"),u=i.get("minimiumZoomSpan"),c=(s-a)*l(n).relative+a,d=jG({e:this[BG].panningEvent});let f="start"===d?Math.min(c,o.max):o.min,h="end"===d?Math.max(c,o.min):o.max;f===h&&(f-="start"===d?u:0,h+="end"===d?u:0),r.set("zoom",{min:f,max:h}),t.component(e).emit("render")},[`${BG}end`](n){n.preventDefault(),this[BG]=this[BG]||{},delete this[BG].panningEvent,t.component(e).emit("dragEnd")},[`${BG}cancel`](n){n.preventDefault(),this[BG]=this[BG]||{},delete this[BG].panningEvent,t.component(e).emit("dragEnd")}}}}const $G="scrollbarPan";function UG({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}){const u=RG({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:l}),c=PG({componentKey:e,chart:t,viewState:r,viewCache:i,layoutService:o,dockService:a});return{type:"Pan",key:`event:${$G}`,options:{event:$G,threshold:0,enable(r,i){return this[$G]=this[$G]||{},!(i&&!this[$G].isPanning)||!!n.scroll.enabled()&&((!i||i.target===t.element)&&t.componentsFromPoint({x:i.center.x,y:i.center.y}).some((t=>t.key===e)))}},events:{[`${$G}start`](n){n.preventDefault();const a=u(n);if(this[$G]=this[$G]||{},this[$G].isPanning=!0,t.component(e).emit("lockState"),o.meta.isContinuous){const e=r.get("zoom"),t=e.max-e.min,n=i.get("continuousMin"),o=i.get("continuousMax"),s=n+(o-n)*a.relative;s<e.min?r.set("zoom",{min:Math.min(s,o-t),max:Math.max(s+t,n+t)}):s>e.max&&r.set("zoom",{min:Math.min(s-t,o-t),max:Math.max(s,n+t)}),this[$G].relative=a.relative,this[$G].zoom=r.get("zoom"),this[$G].zoom.span=this[$G].zoom.max-this[$G].zoom.min,this[$G].zoom.fullSpan=o-n}else if(a.onThumb)this[$G].offset=a.thumb;else{const e=c();this[$G].offset=a.beforeThumb?0:e.thumbSize}},[`${$G}move`](n){n.preventDefault();const a=u(n);if(this[$G]=this[$G]||{},o.meta.isContinuous){const e=a.relative-this[$G].relative,{fullSpan:t,span:n,min:o,max:s}=this[$G].zoom,l=i.get("continuousMin"),u=i.get("continuousMax");r.set("zoom",{min:Math.min(o+e*t,u-n),max:Math.max(s+e*t,l+n)})}else{const e=a.pixel-(this[$G].offset||0),t=c(),n=Math.max(0,e/t.size);s.command.scrollTo(n)}t.component(e).emit("render")},[`${$G}end`](n){n.preventDefault(),this[$G]=this[$G]||{},this[$G].isPanning=!1,t.component(e).emit("unlockState")},[`${$G}cancel`](n){n.preventDefault(),this[$G]=this[$G]||{},this[$G].isPanning=!1,t.component(e).emit("unlockState")}}}}function WG({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}){return[zG({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}),VG({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,rtl:l}),UG({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l})]}function YG({componentKey:e,chart:t,actions:n,layoutService:r}){const i=(i,o)=>{if(!r.meta.isContinuous)return;const a=t.component(e);a&&a.emit&&n.scroll.enabled()&&a.emit(i,o)};return{type:"native",events:{mousemove:e=>i("hover",e),mouseleave:()=>i("leave")}}}function KG({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l}){return{gestures:[...WG({componentKey:e,chart:t,actions:n,viewState:r,viewCache:i,layoutService:o,dockService:a,discrete:s,rtl:l})],native:YG({componentKey:e,chart:t,actions:n,layoutService:o})}}const GG={background:"rgba(0, 0, 0, 0.1)"},XG={top:-1,bottom:-1,width:6},JG={width:2,background:"#595959"};var QG={before:GG,after:GG,thumb:{background:"transparent",border:"1px solid rgba(68, 68, 68, 0.4)"},startHandle:XG,endHandle:XG,startHandleBorder:JG,endHandleBorder:JG};const ZG={background:"rgba(0, 0, 0, 0.1)"},eX={top:-1,bottom:-1,width:6},tX={width:2,background:"#595959"};var nX={before:ZG,after:ZG,thumb:{background:"#B0AFAE",border:"transparent"},startHandle:eX,endHandle:eX,startHandleBorder:tX,endHandleBorder:tX};const rX={position:"absolute",top:0,right:0,bottom:0,left:0,boxSizing:"border-box"},iX={pointerEvents:"initial"},oX={pointerEvents:"none"};const aX="ew-resize",sX="default";function lX(){const{rect:e}=this,{settings:t}=this.settings,n="horizontal"===t.orientation,r=n?e.computedInner.width:e.computedInner.height,i=t.range(),o=n&&t.rtl;return{size:r,start:(o?1-i[1]:i[0])*r,end:(o?1-i[0]:i[1])*r}}function uX(){const e=this.state.hover.start||this.state.hover.end||this.state.drag.start||this.state.drag.end;this.renderer.element().ownerDocument.body.style.cursor=e?aX:sX}function cX(e,t,n){const{min:r}=this.settings.settings.size.thumb;if(n-t<r){const i=(r-(n-t))/2,o=Math.max(0,0-(t-i))-Math.max(0,n+i-e);return{size:e,start:t-i+o,end:n+i+o}}return{size:e,start:t,end:n}}function dX(e){const t=(e.srcEvent||e).srcElement;return this.renderer.element().contains(t)}function fX(){const{size:e,start:t,end:n}=lX.call(this);this.renderer.render(this.elements(this.h,cX.call(this,e,t,n)))}function hX(){const{state:e,settings:t,style:n}=this,r=t.settings.style;return e.style[r]||(e.style[r]=function({id:e,style:t}){const n="slim"===e?nX:QG;return{container:{...rX},before:{...rX,...n.before,...t.before},after:{...rX,...n.after,...t.after},thumb:{...rX,...n.thumb,...t.thumb},startHandle:{...rX,...iX,...n.startHandle},endHandle:{...rX,...iX,...n.endHandle},startHandleBorder:{...rX,...oX,...n.startHandleBorder},endHandleBorder:{...rX,...oX,...n.endHandleBorder}}}({id:t.settings.style,style:n[r]})),e.style[r]}var pX={require:["renderer"],defaultSettings:{settings:{style:"standard",size:{area:{min:30,max:40,ratio:1/8},thumb:{min:4}},orientation:"horizontal",rtl:!1,isContinuous:!1,range:()=>[0,1],injections:()=>[]},style:{standard:{before:{},thumb:{},after:{}},slim:{before:{},thumb:{},after:{}}}},renderer:"dom",on:{render(){fX.call(this)},lockState(){this.state.locked=!0},unlockState(){this.state.locked=!1},hover(e){if(this.state.locked||this.state.drag.start||this.state.drag.end||!dX.call(this,e)&&this.state.hover.isPristine())return;this.state.hover.reset();const t=jG({e:e});t&&(this.state.hover[t]=!0),uX.call(this),fX.call(this)},leave(){this.state.locked||(this.state.hover.reset(),uX.call(this),fX.call(this))},dragStart(e){if(this.state.locked)return;this.state.drag.reset();const t=jG({e:e});t&&(this.state.drag[t]=!0),uX.call(this)},dragEnd(){this.state.locked||(this.state.drag.reset(),uX.call(this),fX.call(this))}},preferredSize({outer:e}){const{min:t,max:n,ratio:r}=this.settings.settings.size.area,i="horizontal"===this.settings.settings.orientation?"height":"width";return Math.max(t,Math.min(n,e[i]*r))},created(){this.state={style:{},locked:!1,hover:{start:!1,end:!1,reset(){this.start=!1,this.end=!1},isPristine(){return!this.start&&!this.end}},drag:{start:!1,end:!1,reset(){this.start=!1,this.end=!1}}}},render(e){this.h=e;const{size:t,start:n,end:r}=lX.call(this);return this.elements(e,cX.call(this,t,n,r))},properties(){return"horizontal"===this.settings.settings.orientation?{start:"left",end:"right"}:{start:"top",end:"bottom"}},elements(e,{size:t,start:n,end:r}){const{settings:i}=this.settings,o=i.injections().map((t=>t({h:e,rect:this.rect,orientation:i.orientation,minThumbSize:i.size.thumb.min})));return function({h:e,size:t,start:n,end:r,properties:i,startHandleActive:o,endHandleActive:a,style:s,continuous:l,invert:u,injections:c}){const d={[i.end]:t-n},f={[i.start]:r},h={left:-3},p={left:1},m={right:-3,left:"auto"},g={left:3},y=e("div",{style:{...s.before,...u?f:d},class:"scrollbar--before"}),v=e("div",{style:{...s.after,...u?d:f},class:"scrollbar--after"}),b=[];if(l){const t=e("div",{style:{...s.startHandle,...u?m:h},class:"scrollbar--start-handle",[FG]:"start"},o?e("div",{style:{...s.startHandleBorder,...u?g:p}}):void 0);b.push(t);const n=e("div",{style:{...s.endHandle,...u?h:m},class:"scrollbar--end-handle",[FG]:"end"},a?e("div",{style:{...s.endHandleBorder,...u?p:g}}):void 0);b.push(n)}const x=e("div",{style:{...s.thumb,[i.start]:n,[i.end]:t-r},class:"scrollbar--thumb"},b);return e("div",{style:{...s.container}},[y,x,v,...c])}({h:e,size:t,start:n,end:r,properties:this.properties(),startHandleActive:this.state.hover.start||this.state.drag.start,endHandleActive:this.state.hover.end||this.state.drag.end,style:hX.call(this),continuous:i.isContinuous,invert:"horizontal"===i.orientation&&i.rtl,injections:o})}};var mX={black:"#000",white:"#fff"};var gX={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var yX={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var vX={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var bX={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var xX={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};var wX={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var SX={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function MX(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var kX=Object.freeze({__proto__:null,default:MX}),CX="$$material";function qX(){return qX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qX.apply(this,arguments)}function EX(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function DX(){return DX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},DX.apply(this,arguments)}function TX(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var NX=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,OX=TX((function(e){return NX.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var AX=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),_X="-ms-",LX="-moz-",IX="-webkit-",RX="comm",PX="rule",zX="decl",FX="@keyframes",jX=Math.abs,BX=String.fromCharCode,HX=Object.assign;function VX(e){return e.trim()}function $X(e,t,n){return e.replace(t,n)}function UX(e,t){return e.indexOf(t)}function WX(e,t){return 0|e.charCodeAt(t)}function YX(e,t,n){return e.slice(t,n)}function KX(e){return e.length}function GX(e){return e.length}function XX(e,t){return t.push(e),e}var JX=1,QX=1,ZX=0,eJ=0,tJ=0,nJ="";function rJ(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:JX,column:QX,length:a,return:""}}function iJ(e,t){return HX(rJ("",null,null,"",null,null,0),e,{length:-e.length},t)}function oJ(){return tJ=eJ>0?WX(nJ,--eJ):0,QX--,10===tJ&&(QX=1,JX--),tJ}function aJ(){return tJ=eJ<ZX?WX(nJ,eJ++):0,QX++,10===tJ&&(QX=1,JX++),tJ}function sJ(){return WX(nJ,eJ)}function lJ(){return eJ}function uJ(e,t){return YX(nJ,e,t)}function cJ(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function dJ(e){return JX=QX=1,ZX=KX(nJ=e),eJ=0,[]}function fJ(e){return nJ="",e}function hJ(e){return VX(uJ(eJ-1,gJ(91===e?e+2:40===e?e+1:e)))}function pJ(e){for(;(tJ=sJ())&&tJ<33;)aJ();return cJ(e)>2||cJ(tJ)>3?"":" "}function mJ(e,t){for(;--t&&aJ()&&!(tJ<48||tJ>102||tJ>57&&tJ<65||tJ>70&&tJ<97););return uJ(e,lJ()+(t<6&&32==sJ()&&32==aJ()))}function gJ(e){for(;aJ();)switch(tJ){case e:return eJ;case 34:case 39:34!==e&&39!==e&&gJ(tJ);break;case 40:41===e&&gJ(e);break;case 92:aJ()}return eJ}function yJ(e,t){for(;aJ()&&e+tJ!==57&&(e+tJ!==84||47!==sJ()););return"/*"+uJ(t,eJ-1)+"*"+BX(47===e?e:aJ())}function vJ(e){for(;!cJ(sJ());)aJ();return uJ(e,eJ)}function bJ(e){return fJ(xJ("",null,null,null,[""],e=dJ(e),0,[0],e))}function xJ(e,t,n,r,i,o,a,s,l){for(var u=0,c=0,d=a,f=0,h=0,p=0,m=1,g=1,y=1,v=0,b="",x=i,w=o,S=r,M=b;g;)switch(p=v,v=aJ()){case 40:if(108!=p&&58==WX(M,d-1)){-1!=UX(M+=$X(hJ(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:M+=hJ(v);break;case 9:case 10:case 13:case 32:M+=pJ(p);break;case 92:M+=mJ(lJ()-1,7);continue;case 47:switch(sJ()){case 42:case 47:XX(SJ(yJ(aJ(),lJ()),t,n),l);break;default:M+="/"}break;case 123*m:s[u++]=KX(M)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==y&&(M=$X(M,/\f/g,"")),h>0&&KX(M)-d&&XX(h>32?MJ(M+";",r,n,d-1):MJ($X(M," ","")+";",r,n,d-2),l);break;case 59:M+=";";default:if(XX(S=wJ(M,t,n,u,c,i,s,b,x=[],w=[],d),o),123===v)if(0===c)xJ(M,t,S,S,x,o,d,s,w);else switch(99===f&&110===WX(M,3)?100:f){case 100:case 108:case 109:case 115:xJ(e,S,S,r&&XX(wJ(e,S,S,0,0,i,s,b,i,x=[],d),w),i,w,d,s,r?x:w);break;default:xJ(M,S,S,S,[""],w,0,s,w)}}u=c=h=0,m=y=1,b=M="",d=a;break;case 58:d=1+KX(M),h=p;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==oJ())continue;switch(M+=BX(v),v*m){case 38:y=c>0?1:(M+="\f",-1);break;case 44:s[u++]=(KX(M)-1)*y,y=1;break;case 64:45===sJ()&&(M+=hJ(aJ())),f=sJ(),c=d=KX(b=M+=vJ(lJ())),v++;break;case 45:45===p&&2==KX(M)&&(m=0)}}return o}function wJ(e,t,n,r,i,o,a,s,l,u,c){for(var d=i-1,f=0===i?o:[""],h=GX(f),p=0,m=0,g=0;p<r;++p)for(var y=0,v=YX(e,d+1,d=jX(m=a[p])),b=e;y<h;++y)(b=VX(m>0?f[y]+" "+v:$X(v,/&\f/g,f[y])))&&(l[g++]=b);return rJ(e,t,n,0===i?PX:s,l,u,c)}function SJ(e,t,n){return rJ(e,t,n,RX,BX(tJ),YX(e,2,-2),0)}function MJ(e,t,n,r){return rJ(e,t,n,zX,YX(e,0,r),YX(e,r+1,-1),r)}function kJ(e,t){for(var n="",r=GX(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function CJ(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case zX:return e.return=e.return||e.value;case RX:return"";case FX:return e.return=e.value+"{"+kJ(e.children,r)+"}";case PX:e.value=e.props.join(",")}return KX(n=kJ(e.children,r))?e.return=e.value+"{"+n+"}":""}function qJ(e){var t=GX(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}var EJ=function(e,t,n){for(var r=0,i=0;r=i,i=sJ(),38===r&&12===i&&(t[n]=1),!cJ(i);)aJ();return uJ(e,eJ)},DJ=function(e,t){return fJ(function(e,t){var n=-1,r=44;do{switch(cJ(r)){case 0:38===r&&12===sJ()&&(t[n]=1),e[n]+=EJ(eJ-1,t,n);break;case 2:e[n]+=hJ(r);break;case 4:if(44===r){e[++n]=58===sJ()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=BX(r)}}while(r=aJ());return e}(dJ(e),t))},TJ=new WeakMap,NJ=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||TJ.get(n))&&!r){TJ.set(e,!0);for(var i=[],o=DJ(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var u=0;u<a.length;u++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[u]):a[u]+" "+o[s]}}},OJ=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function AJ(e,t){switch(function(e,t){return 45^WX(e,0)?(((t<<2^WX(e,0))<<2^WX(e,1))<<2^WX(e,2))<<2^WX(e,3):0}(e,t)){case 5103:return IX+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return IX+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return IX+e+LX+e+_X+e+e;case 6828:case 4268:return IX+e+_X+e+e;case 6165:return IX+e+_X+"flex-"+e+e;case 5187:return IX+e+$X(e,/(\w+).+(:[^]+)/,IX+"box-$1$2"+_X+"flex-$1$2")+e;case 5443:return IX+e+_X+"flex-item-"+$X(e,/flex-|-self/,"")+e;case 4675:return IX+e+_X+"flex-line-pack"+$X(e,/align-content|flex-|-self/,"")+e;case 5548:return IX+e+_X+$X(e,"shrink","negative")+e;case 5292:return IX+e+_X+$X(e,"basis","preferred-size")+e;case 6060:return IX+"box-"+$X(e,"-grow","")+IX+e+_X+$X(e,"grow","positive")+e;case 4554:return IX+$X(e,/([^-])(transform)/g,"$1"+IX+"$2")+e;case 6187:return $X($X($X(e,/(zoom-|grab)/,IX+"$1"),/(image-set)/,IX+"$1"),e,"")+e;case 5495:case 3959:return $X(e,/(image-set\([^]*)/,IX+"$1$`$1");case 4968:return $X($X(e,/(.+:)(flex-)?(.*)/,IX+"box-pack:$3"+_X+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+IX+e+e;case 4095:case 3583:case 4068:case 2532:return $X(e,/(.+)-inline(.+)/,IX+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(KX(e)-1-t>6)switch(WX(e,t+1)){case 109:if(45!==WX(e,t+4))break;case 102:return $X(e,/(.+:)(.+)-([^]+)/,"$1"+IX+"$2-$3$1"+LX+(108==WX(e,t+3)?"$3":"$2-$3"))+e;case 115:return~UX(e,"stretch")?AJ($X(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==WX(e,t+1))break;case 6444:switch(WX(e,KX(e)-3-(~UX(e,"!important")&&10))){case 107:return $X(e,":",":"+IX)+e;case 101:return $X(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+IX+(45===WX(e,14)?"inline-":"")+"box$3$1"+IX+"$2$3$1"+_X+"$2box$3")+e}break;case 5936:switch(WX(e,t+11)){case 114:return IX+e+_X+$X(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return IX+e+_X+$X(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return IX+e+_X+$X(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return IX+e+_X+e+e}return e}var _J="undefined"!=typeof document,LJ=_J?void 0:function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}((function(){return TX((function(){var e={};return function(t){return e[t]}}))})),IJ=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case zX:e.return=AJ(e.value,e.length);break;case FX:return kJ([iJ(e,{value:$X(e.value,"@","@"+IX)})],r);case PX:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return kJ([iJ(e,{props:[$X(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return kJ([iJ(e,{props:[$X(t,/:(plac\w+)/,":"+IX+"input-$1")]}),iJ(e,{props:[$X(t,/:(plac\w+)/,":-moz-$1")]}),iJ(e,{props:[$X(t,/:(plac\w+)/,_X+"input-$1")]})],r)}return""}))}}],RJ=function(e){var t=e.key;if(_J&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,i,o=e.stylisPlugins||IJ,a={},s=[];_J&&(r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)})));var l,u=[NJ,OJ];if(_J){var c,d=[CJ,(l=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&l(e)})],f=qJ(u.concat(o,d));i=function(e,t,n,r){c=n,function(e){kJ(bJ(e),f)}(e?e+"{"+t.styles+"}":t.styles),r&&(y.inserted[t.name]=!0)}}else{var h=[CJ],p=qJ(u.concat(o,h)),m=LJ(o)(t),g=function(e,t){var n=t.name;return void 0===m[n]&&(m[n]=function(e){return kJ(bJ(e),p)}(e?e+"{"+t.styles+"}":t.styles)),m[n]};i=function(e,t,n,r){var i=t.name,o=g(e,t);return void 0===y.compat?(r&&(y.inserted[i]=!0),o):r?void(y.inserted[i]=o):o}}var y={key:t,sheet:new AX({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return y.sheet.hydrate(s),y},PJ="undefined"!=typeof document;var zJ=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===PJ&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},FJ=function(e,t,n){zJ(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i="",o=t;do{var a=e.insert(t===o?"."+r:"",o,e.sheet,!0);PJ||void 0===a||(i+=a),o=o.next}while(void 0!==o);if(!PJ&&0!==i.length)return i}};var jJ={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},BJ=/[A-Z]|^ms/g,HJ=/_EMO_([^_]+?)_([^]*?)_EMO_/g,VJ=function(e){return 45===e.charCodeAt(1)},$J=function(e){return null!=e&&"boolean"!=typeof e},UJ=TX((function(e){return VJ(e)?e:e.replace(BJ,"-$&").toLowerCase()})),WJ=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(HJ,(function(e,t,n){return KJ={name:t,styles:n,next:KJ},t}))}return 1===jJ[e]||VJ(e)||"number"!=typeof t||0===t?t:t+"px"};function YJ(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return KJ={name:n.name,styles:n.styles,next:KJ},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)KJ={name:r.name,styles:r.styles,next:KJ},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=YJ(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":$J(a)&&(r+=UJ(o)+":"+WJ(o,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=YJ(e,t,a);switch(o){case"animation":case"animationName":r+=UJ(o)+":"+s+";";break;default:r+=o+"{"+s+"}"}}else for(var l=0;l<a.length;l++)$J(a[l])&&(r+=UJ(o)+":"+WJ(o,a[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var i=KJ,o=n(e);return KJ=i,YJ(e,t,o)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var KJ,GJ=/label:\s*([^\s;\n{]+)\s*(;|$)/g,XJ=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";KJ=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=YJ(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++)i+=YJ(n,t,e[a]),r&&(i+=o[a]);GJ.lastIndex=0;for(var s,l="";null!==(s=GJ.exec(i));)l+="-"+s[1];var u=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:u,styles:i,next:KJ}},JJ="undefined"!=typeof document,QJ=function(e){return e()},ZJ=!!vT.useInsertionEffect&&vT.useInsertionEffect,eQ=JJ&&ZJ||QJ,tQ=ZJ||gT.useLayoutEffect,nQ="undefined"!=typeof document,rQ=gT.createContext("undefined"!=typeof HTMLElement?RJ({key:"css"}):null),iQ=rQ.Provider,oQ=function(e){return gT.forwardRef((function(t,n){var r=gT.useContext(rQ);return e(t,r,n)}))};nQ||(oQ=function(e){return function(t){var n=gT.useContext(rQ);return null===n?(n=RJ({key:"css"}),gT.createElement(rQ.Provider,{value:n},e(t,n))):e(t,n)}});var aQ=gT.createContext({}),sQ=oQ((function(e,t){var n=e.styles,r=XJ([n],void 0,gT.useContext(aQ));if(!nQ){for(var i,o=r.name,a=r.styles,s=r.next;void 0!==s;)o+=" "+s.name,a+=s.styles,s=s.next;var l=!0===t.compat,u=t.insert("",{name:o,styles:a},t.sheet,l);return l?null:gT.createElement("style",((i={})["data-emotion"]=t.key+"-global "+o,i.dangerouslySetInnerHTML={__html:u},i.nonce=t.sheet.nonce,i))}var c=gT.useRef();return tQ((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,o=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==o&&(i=!0,o.setAttribute("data-emotion",e),n.hydrate([o])),c.current=[n,i],function(){n.flush()}}),[t]),tQ((function(){var e=c.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&FJ(t,r.next,!0),n.tags.length){var i=n.tags[n.tags.length-1].nextElementSibling;n.before=i,n.flush()}t.insert("",r,n,!1)}}),[t,r.name]),null}));function lQ(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return XJ(t)}var uQ=function(){var e=lQ.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},cQ=OX,dQ=function(e){return"theme"!==e},fQ=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?cQ:dQ},hQ=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},pQ="undefined"!=typeof document,mQ=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;zJ(t,n,r);var i=eQ((function(){return FJ(t,n,r)}));if(!pQ&&void 0!==i){for(var o,a=n.name,s=n.next;void 0!==s;)a+=" "+s.name,s=s.next;return gT.createElement("style",((o={})["data-emotion"]=t.key+" "+a,o.dangerouslySetInnerHTML={__html:i},o.nonce=t.sheet.nonce,o))}return null},gQ=function e(t,n){var r,i,o=t.__emotion_real===t,a=o&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var s=hQ(t,n,o),l=s||fQ(a),u=!l("as");return function(){var c=arguments,d=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==c[0]||void 0===c[0].raw)d.push.apply(d,c);else{d.push(c[0][0]);for(var f=c.length,h=1;h<f;h++)d.push(c[h],c[0][h])}var p=oQ((function(e,t,n){var r,o,c,f,h=u&&e.as||a,p="",m=[],g=e;if(null==e.theme){for(var y in g={},e)g[y]=e[y];g.theme=gT.useContext(aQ)}"string"==typeof e.className?(r=t.registered,o=m,c=e.className,f="",c.split(" ").forEach((function(e){void 0!==r[e]?o.push(r[e]+";"):f+=e+" "})),p=f):null!=e.className&&(p=e.className+" ");var v=XJ(d.concat(m),t.registered,g);p+=t.key+"-"+v.name,void 0!==i&&(p+=" "+i);var b=u&&void 0===s?fQ(h):l,x={};for(var w in e)u&&"as"===w||b(w)&&(x[w]=e[w]);return x.className=p,x.ref=n,gT.createElement(gT.Fragment,null,gT.createElement(mQ,{cache:t,serialized:v,isStringTag:"string"==typeof h}),gT.createElement(h,x))}));return p.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",p.defaultProps=t.defaultProps,p.__emotion_real=p,p.__emotion_base=a,p.__emotion_styles=d,p.__emotion_forwardProp=s,Object.defineProperty(p,"toString",{value:function(){return"."+i}}),p.withComponent=function(t,r){return e(t,DX({},n,r,{shouldForwardProp:hQ(p,r,!0)})).apply(void 0,d)},p}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){gQ[e]=gQ(e)}));var yQ={exports:{}},vQ={},bQ=gT,xQ=Symbol.for("react.element"),wQ=Symbol.for("react.fragment"),SQ=Object.prototype.hasOwnProperty,MQ=bQ.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,kQ={key:!0,ref:!0,__self:!0,__source:!0};function CQ(e,t,n){var r,i={},o=null,a=null;for(r in void 0!==n&&(o=""+n),void 0!==t.key&&(o=""+t.key),void 0!==t.ref&&(a=t.ref),t)SQ.call(t,r)&&!kQ.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:xQ,type:e,key:o,ref:a,props:i,_owner:MQ.current}}vQ.Fragment=wQ,vQ.jsx=CQ,vQ.jsxs=CQ,yQ.exports=vQ;var qQ=yQ.exports;let EQ;"object"==typeof document&&(EQ=RJ({key:"css",prepend:!0}));var DQ=Object.freeze({__proto__:null,GlobalStyles:function(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return qQ.jsx(sQ,{styles:r})}
43
43
  /**
44
44
  * @mui/styled-engine v5.15.14
45
45
  *
46
46
  * @license MIT
47
47
  * This source code is licensed under the MIT license found in the
48
48
  * LICENSE file in the root directory of this source tree.
49
- */,StyledEngineProvider:function(e){const{injectFirst:t,children:n}=e;return t&&qQ?CQ.jsx(rQ,{value:qQ,children:n}):n},ThemeContext:oQ,css:sQ,default:function(e,t){return mQ(e,t)},internal_processStyles:(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},keyframes:lQ});function DQ(){return DQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},DQ.apply(this,arguments)}function TQ(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function NQ(){return NQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},NQ.apply(this,arguments)}function OQ(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function AQ(e){if(!OQ(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=AQ(e[n])})),t}function _Q(e,t,n={clone:!0}){const r=n.clone?NQ({},e):e;return OQ(e)&&OQ(t)&&Object.keys(t).forEach((i=>{"__proto__"!==i&&(OQ(t[i])&&i in e&&OQ(e[i])?r[i]=_Q(e[i],t[i],n):n.clone?r[i]=OQ(t[i])?AQ(t[i]):t[i]:r[i]=t[i])})),r}var LQ=Object.freeze({__proto__:null,default:_Q,isPlainObject:OQ});const IQ=["values","unit","step"],RQ=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>DQ({},e,{[t.key]:t.val})),{})};function PQ(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=TQ(e,IQ),o=RQ(t),a=Object.keys(o);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,i){const o=a.indexOf(i);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==o&&"number"==typeof t[a[o]]?t[a[o]]:i)-r/100}${n})`}return DQ({keys:a,values:o,up:s,down:l,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},i)}var zQ={borderRadius:4};function FQ(e,t){return t?_Q(e,t,{clone:!1}):e}const jQ={xs:0,sm:600,md:900,lg:1200,xl:1536},BQ={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${jQ[e]}px)`};function HQ(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||BQ;return t.reduce(((r,i,o)=>(r[e.up(e.keys[o])]=n(t[o]),r)),{})}if("object"==typeof t){const e=r.breakpoints||BQ;return Object.keys(t).reduce(((r,i)=>{if(-1!==Object.keys(e.values||jQ).indexOf(i)){r[e.up(i)]=n(t[i],i)}else{const e=i;r[e]=t[e]}return r}),{})}return n(t)}function VQ(e){if("string"!=typeof e)throw new Error(SX(7));return e.charAt(0).toUpperCase()+e.slice(1)}var $Q=Object.freeze({__proto__:null,default:VQ});function UQ(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function WQ(e,t,n,r=n){let i;return i="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:UQ(e,n)||r,t&&(i=t(i,r,e)),i}function YQ(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=e=>{if(null==e[t])return null;const o=e[t],a=UQ(e.theme,r)||{};return HQ(e,o,(e=>{let r=WQ(a,i,e);return e===r&&"string"==typeof e&&(r=WQ(a,i,`${t}${"default"===e?"":VQ(e)}`,e)),!1===n?r:{[n]:r}}))};return o.propTypes={},o.filterProps=[t],o}const KQ={m:"margin",p:"padding"},GQ={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},XQ={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},JQ=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!XQ[e])return[e];e=XQ[e]}const[t,n]=e.split(""),r=KQ[t],i=GQ[n]||"";return Array.isArray(i)?i.map((e=>r+e)):[r+i]})),QQ=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ZQ=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function eZ(e,t,n,r){var i;const o=null!=(i=UQ(e,t,!1))?i:n;return"number"==typeof o?e=>"string"==typeof e?e:o*e:Array.isArray(o)?e=>"string"==typeof e?e:o[e]:"function"==typeof o?o:()=>{}}function tZ(e){return eZ(e,"spacing",8)}function nZ(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function rZ(e,t,n,r){if(-1===t.indexOf(n))return null;const i=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=nZ(t,n),e)),{})}(JQ(n),r);return HQ(e,e[n],i)}function iZ(e,t){const n=tZ(e.theme);return Object.keys(e).map((r=>rZ(e,t,r,n))).reduce(FQ,{})}function oZ(e){return iZ(e,QQ)}function aZ(e){return iZ(e,ZQ)}function sZ(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?FQ(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function lZ(e){return"number"!=typeof e?e:`${e}px solid`}function uZ(e,t){return YQ({prop:e,themeKey:"borders",transform:t})}oZ.propTypes={},oZ.filterProps=QQ,aZ.propTypes={},aZ.filterProps=ZQ;const cZ=uZ("border",lZ),dZ=uZ("borderTop",lZ),fZ=uZ("borderRight",lZ),hZ=uZ("borderBottom",lZ),pZ=uZ("borderLeft",lZ),mZ=uZ("borderColor"),gZ=uZ("borderTopColor"),yZ=uZ("borderRightColor"),vZ=uZ("borderBottomColor"),bZ=uZ("borderLeftColor"),xZ=uZ("outline",lZ),wZ=uZ("outlineColor"),SZ=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=eZ(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:nZ(t,e)});return HQ(e,e.borderRadius,n)}return null};SZ.propTypes={},SZ.filterProps=["borderRadius"],sZ(cZ,dZ,fZ,hZ,pZ,mZ,gZ,yZ,vZ,bZ,SZ,xZ,wZ);const MZ=e=>{if(void 0!==e.gap&&null!==e.gap){const t=eZ(e.theme,"spacing",8),n=e=>({gap:nZ(t,e)});return HQ(e,e.gap,n)}return null};MZ.propTypes={},MZ.filterProps=["gap"];const kZ=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=eZ(e.theme,"spacing",8),n=e=>({columnGap:nZ(t,e)});return HQ(e,e.columnGap,n)}return null};kZ.propTypes={},kZ.filterProps=["columnGap"];const CZ=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=eZ(e.theme,"spacing",8),n=e=>({rowGap:nZ(t,e)});return HQ(e,e.rowGap,n)}return null};CZ.propTypes={},CZ.filterProps=["rowGap"];function qZ(e,t){return"grey"===t?t:e}sZ(MZ,kZ,CZ,YQ({prop:"gridColumn"}),YQ({prop:"gridRow"}),YQ({prop:"gridAutoFlow"}),YQ({prop:"gridAutoColumns"}),YQ({prop:"gridAutoRows"}),YQ({prop:"gridTemplateColumns"}),YQ({prop:"gridTemplateRows"}),YQ({prop:"gridTemplateAreas"}),YQ({prop:"gridArea"}));function EZ(e){return e<=1&&0!==e?100*e+"%":e}sZ(YQ({prop:"color",themeKey:"palette",transform:qZ}),YQ({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:qZ}),YQ({prop:"backgroundColor",themeKey:"palette",transform:qZ}));const DZ=YQ({prop:"width",transform:EZ}),TZ=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const i=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||jQ[t];return i?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:EZ(t)}};return HQ(e,e.maxWidth,t)}return null};TZ.filterProps=["maxWidth"];const NZ=YQ({prop:"minWidth",transform:EZ}),OZ=YQ({prop:"height",transform:EZ}),AZ=YQ({prop:"maxHeight",transform:EZ}),_Z=YQ({prop:"minHeight",transform:EZ});YQ({prop:"size",cssProperty:"width",transform:EZ}),YQ({prop:"size",cssProperty:"height",transform:EZ});sZ(DZ,TZ,NZ,OZ,AZ,_Z,YQ({prop:"boxSizing"}));const LZ={border:{themeKey:"borders",transform:lZ},borderTop:{themeKey:"borders",transform:lZ},borderRight:{themeKey:"borders",transform:lZ},borderBottom:{themeKey:"borders",transform:lZ},borderLeft:{themeKey:"borders",transform:lZ},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:lZ},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:SZ},color:{themeKey:"palette",transform:qZ},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:qZ},backgroundColor:{themeKey:"palette",transform:qZ},p:{style:aZ},pt:{style:aZ},pr:{style:aZ},pb:{style:aZ},pl:{style:aZ},px:{style:aZ},py:{style:aZ},padding:{style:aZ},paddingTop:{style:aZ},paddingRight:{style:aZ},paddingBottom:{style:aZ},paddingLeft:{style:aZ},paddingX:{style:aZ},paddingY:{style:aZ},paddingInline:{style:aZ},paddingInlineStart:{style:aZ},paddingInlineEnd:{style:aZ},paddingBlock:{style:aZ},paddingBlockStart:{style:aZ},paddingBlockEnd:{style:aZ},m:{style:oZ},mt:{style:oZ},mr:{style:oZ},mb:{style:oZ},ml:{style:oZ},mx:{style:oZ},my:{style:oZ},margin:{style:oZ},marginTop:{style:oZ},marginRight:{style:oZ},marginBottom:{style:oZ},marginLeft:{style:oZ},marginX:{style:oZ},marginY:{style:oZ},marginInline:{style:oZ},marginInlineStart:{style:oZ},marginInlineEnd:{style:oZ},marginBlock:{style:oZ},marginBlockStart:{style:oZ},marginBlockEnd:{style:oZ},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:MZ},rowGap:{style:CZ},columnGap:{style:kZ},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:EZ},maxWidth:{style:TZ},minWidth:{transform:EZ},height:{transform:EZ},maxHeight:{transform:EZ},minHeight:{transform:EZ},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};var IZ=LZ;function RZ(){function e(e,t,n,r){const i={[e]:t,theme:n},o=r[e];if(!o)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:u}=o;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const c=UQ(n,s)||{};if(u)return u(i);return HQ(i,t,(t=>{let n=WQ(c,l,t);return t===n&&"string"==typeof t&&(n=WQ(c,l,`${e}${"default"===t?"":VQ(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:i,theme:o={}}=n||{};if(!i)return null;const a=null!=(r=o.unstable_sxConfig)?r:IZ;function s(n){let r=n;if("function"==typeof n)r=n(o);else if("object"!=typeof n)return n;if(!r)return null;const i=function(e={}){var t;const n=null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{});return n||{}}(o.breakpoints),s=Object.keys(i);let l=i;return Object.keys(r).forEach((n=>{const i=(s=r[n],u=o,"function"==typeof s?s(u):s);var s,u;if(null!=i)if("object"==typeof i)if(a[n])l=FQ(l,e(n,i,o,a));else{const e=HQ({theme:o},i,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,i)?l=FQ(l,e):l[n]=t({sx:i,theme:o})}else l=FQ(l,e(n,i,o,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(s,l)}return Array.isArray(i)?i.map(s):s(i)}}const PZ=RZ();PZ.filterProps=["sx"];var zZ=PZ;function FZ(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){return{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}}return n.palette.mode===e?t:{}}const jZ=["breakpoints","palette","spacing","shape"];function BZ(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,a=TQ(e,jZ),s=PQ(n),l=function(e=8){if(e.mui)return e;const t=tZ({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(i);let u=_Q({breakpoints:s,direction:"ltr",components:{},palette:DQ({mode:"light"},r),spacing:l,shape:DQ({},zQ,o)},a);return u.applyStyles=FZ,u=t.reduce(((e,t)=>_Q(e,t)),u),u.unstable_sxConfig=DQ({},IZ,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return zZ({sx:e,theme:this})},u}var HZ=Object.freeze({__proto__:null,default:BZ,private_createBreakpoints:PQ,unstable_applyStyles:FZ});function VZ(e=null){const t=mT.useContext(oQ);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const $Z=BZ();const UZ=["sx"];var WZ=Object.freeze({__proto__:null,default:zZ,extendSxProp:function(e){const{sx:t}=e,n=TQ(e,UZ),{systemProps:r,otherProps:i}=(e=>{var t,n;const r={systemProps:{},otherProps:{}},i=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:IZ;return Object.keys(e).forEach((t=>{i[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r})(n);let o;return o=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return OQ(n)?DQ({},r,n):r}:DQ({},r,t),DQ({},i,{sx:o})},unstable_createStyleFunctionSx:RZ,unstable_defaultSxConfig:IZ});const YZ=e=>e;var KZ=(()=>{let e=YZ;return{configure(t){e=t},generate:t=>e(t),reset(){e=YZ}}})();function GZ(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=GZ(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function XZ(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=GZ(e))&&(r&&(r+=" "),r+=t);return r}const JZ={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function QZ(e,t,n="Mui"){const r=JZ[t];return r?`${n}-${r}`:`${KZ.generate(e)}-${t}`}function ZZ(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=QZ(e,t,n)})),r}var e0,t0={exports:{}},n0={},r0=Symbol.for("react.element"),i0=Symbol.for("react.portal"),o0=Symbol.for("react.fragment"),a0=Symbol.for("react.strict_mode"),s0=Symbol.for("react.profiler"),l0=Symbol.for("react.provider"),u0=Symbol.for("react.context"),c0=Symbol.for("react.server_context"),d0=Symbol.for("react.forward_ref"),f0=Symbol.for("react.suspense"),h0=Symbol.for("react.suspense_list"),p0=Symbol.for("react.memo"),m0=Symbol.for("react.lazy"),g0=Symbol.for("react.offscreen");function y0(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r0:switch(e=e.type){case o0:case s0:case a0:case f0:case h0:return e;default:switch(e=e&&e.$$typeof){case c0:case u0:case d0:case m0:case p0:case l0:return e;default:return t}}case i0:return t}}}e0=Symbol.for("react.module.reference"),n0.ContextConsumer=u0,n0.ContextProvider=l0,n0.Element=r0,n0.ForwardRef=d0,n0.Fragment=o0,n0.Lazy=m0,n0.Memo=p0,n0.Portal=i0,n0.Profiler=s0,n0.StrictMode=a0,n0.Suspense=f0,n0.SuspenseList=h0,n0.isAsyncMode=function(){return!1},n0.isConcurrentMode=function(){return!1},n0.isContextConsumer=function(e){return y0(e)===u0},n0.isContextProvider=function(e){return y0(e)===l0},n0.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r0},n0.isForwardRef=function(e){return y0(e)===d0},n0.isFragment=function(e){return y0(e)===o0},n0.isLazy=function(e){return y0(e)===m0},n0.isMemo=function(e){return y0(e)===p0},n0.isPortal=function(e){return y0(e)===i0},n0.isProfiler=function(e){return y0(e)===s0},n0.isStrictMode=function(e){return y0(e)===a0},n0.isSuspense=function(e){return y0(e)===f0},n0.isSuspenseList=function(e){return y0(e)===h0},n0.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o0||e===s0||e===a0||e===f0||e===h0||e===g0||"object"==typeof e&&null!==e&&(e.$$typeof===m0||e.$$typeof===p0||e.$$typeof===l0||e.$$typeof===u0||e.$$typeof===d0||e.$$typeof===e0||void 0!==e.getModuleId)},n0.typeOf=y0,t0.exports=n0;var v0=t0.exports;const b0=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function x0(e){const t=`${e}`.match(b0);return t&&t[1]||""}function w0(e,t=""){return e.displayName||e.name||x0(e)||t}function S0(e,t,n){const r=w0(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var M0=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return w0(e,"Component");if("object"==typeof e)switch(e.$$typeof){case v0.ForwardRef:return S0(e,e.render,"ForwardRef");case v0.Memo:return S0(e,e.type,"memo");default:return}}},getFunctionName:x0});function k0(e,t){const n=NQ({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=NQ({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},o=t[r];n[r]={},o&&Object.keys(o)?i&&Object.keys(i)?(n[r]=NQ({},o),Object.keys(i).forEach((e=>{n[r][e]=k0(i[e],o[e])}))):n[r]=o:n[r]=i}else void 0===n[r]&&(n[r]=e[r])})),n}function C0({props:e,name:t,defaultTheme:n,themeId:r}){let i=function(e=$Z){return VZ(e)}(n);r&&(i=i[r]||i);const o=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?k0(t.components[n].defaultProps,r):r}({theme:i,name:t,props:e});return o}var q0="undefined"!=typeof window?mT.useLayoutEffect:mT.useEffect;var E0=Object.freeze({__proto__:null,default:function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}});function D0(){return D0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},D0.apply(this,arguments)}function T0(e){const t=mT.useRef(e);return q0((()=>{t.current=e})),mT.useRef(((...e)=>(0,t.current)(...e))).current}function N0(...e){return mT.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{!function(e,t){"function"==typeof e?e(t):e&&(e.current=t)}(e,t)}))}),e)}const O0={};const A0=[];class _0{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new _0}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function L0(){const e=function(e,t){const n=mT.useRef(O0);return n.current===O0&&(n.current=e(t)),n}(_0.create).current;return function(e){mT.useEffect(e,A0)}(e.disposeEffect),e}let I0=!0,R0=!1;const P0=new _0,z0={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function F0(e){e.metaKey||e.altKey||e.ctrlKey||(I0=!0)}function j0(){I0=!1}function B0(){"hidden"===this.visibilityState&&R0&&(I0=!0)}function H0(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return I0||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!z0[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function V0(){const e=mT.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",F0,!0),t.addEventListener("mousedown",j0,!0),t.addEventListener("pointerdown",j0,!0),t.addEventListener("touchstart",j0,!0),t.addEventListener("visibilitychange",B0,!0))}),[]),t=mT.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!H0(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(R0=!0,P0.start(100,(()=>{R0=!1})),t.current=!1,!0)},ref:e}}function $0(e,t,n=void 0){const r={};return Object.keys(e).forEach((i=>{r[i]=e[i].reduce(((e,r)=>{if(r){const i=t(r);""!==i&&e.push(i),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}var U0=mT.createContext(null);function W0(){return mT.useContext(U0)}var Y0="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function K0(e){const{children:t,theme:n}=e,r=W0(),i=mT.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return D0({},e,t)}(r,n);return null!=e&&(e[Y0]=null!==r),e}),[n,r]);return CQ.jsx(U0.Provider,{value:i,children:t})}const G0=["value"],X0=mT.createContext();function J0(e){let{value:t}=e,n=TQ(e,G0);return CQ.jsx(X0.Provider,DQ({value:null==t||t},n))}const Q0={};function Z0(e,t,n,r=!1){return mT.useMemo((()=>{const i=e&&t[e]||t;if("function"==typeof n){const o=n(i),a=e?DQ({},t,{[e]:o}):o;return r?()=>a:a}return DQ({},t,e?{[e]:n}:n)}),[e,t,n,r])}function e1(e){const{children:t,theme:n,themeId:r}=e,i=VZ(Q0),o=W0()||Q0,a=Z0(r,i,n),s=Z0(r,o,n,!0),l="rtl"===a.direction;return CQ.jsx(K0,{theme:s,children:CQ.jsx(oQ.Provider,{value:a,children:CQ.jsx(J0,{value:l,children:t})})})}var t1={},n1={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(n1);var r1=n1.exports,i1=hg(MX),o1=hg(E0),a1=r1;Object.defineProperty(t1,"__esModule",{value:!0});var s1=t1.alpha=x1;t1.blend=function(e,t,n,r=1){const i=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),o=m1(e),a=m1(t),s=[i(o.values[0],a.values[0]),i(o.values[1],a.values[1]),i(o.values[2],a.values[2])];return y1({type:"rgb",values:s})},t1.colorChannel=void 0;var l1=t1.darken=w1;t1.decomposeColor=m1,t1.emphasize=function(e,t=.15){return b1(e)>.5?w1(e,t):S1(e,t)};var u1=t1.getContrastRatio=function(e,t){const n=b1(e),r=b1(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};t1.getLuminance=b1,t1.hexToRgb=p1,t1.hslToRgb=v1;var c1=t1.lighten=S1;t1.private_safeAlpha=function(e,t,n){try{return x1(e,t)}catch(t){return e}},t1.private_safeColorChannel=void 0,t1.private_safeDarken=function(e,t,n){try{return w1(e,t)}catch(t){return e}},t1.private_safeEmphasize=function e(t,n,r){try{return e(t,n)}catch(e){return t}},t1.private_safeLighten=function(e,t,n){try{return S1(e,t)}catch(t){return e}},t1.recomposeColor=y1,t1.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=m1(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var d1=a1(i1),f1=a1(o1);function h1(e,t=0,n=1){return(0,f1.default)(e,t,n)}function p1(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function m1(e){if(e.type)return e;if("#"===e.charAt(0))return m1(p1(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,d1.default)(9,e));let r,i=e.substring(t+1,e.length-1);if("color"===n){if(i=i.split(" "),r=i.shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,d1.default)(10,r))}else i=i.split(",");return i=i.map((e=>parseFloat(e))),{type:n,values:i,colorSpace:r}}const g1=e=>{const t=m1(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};t1.colorChannel=g1;function y1(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function v1(e){e=m1(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=(e,t=(e+n/30)%12)=>i-o*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),y1({type:s,values:l})}function b1(e){let t="hsl"===(e=m1(e)).type||"hsla"===e.type?m1(v1(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function x1(e,t){return e=m1(e),t=h1(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,y1(e)}function w1(e,t){if(e=m1(e),t=h1(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return y1(e)}function S1(e,t){if(e=m1(e),t=h1(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return y1(e)}t1.private_safeColorChannel=(e,t)=>{try{return g1(e)}catch(t){return e}};const M1=["mode","contrastThreshold","tonalOffset"],k1={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:pX.white,default:pX.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},C1={text:{primary:pX.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:pX.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function q1(e,t,n,r){const i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=c1(e.main,i):"dark"===t&&(e.dark=l1(e.main,o)))}function E1(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=qX(e,M1),o=e.primary||function(e="light"){return"dark"===e?{main:yX[200],light:yX[50],dark:yX[400]}:{main:yX[700],light:yX[400],dark:yX[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:gX[200],light:gX[50],dark:gX[400]}:{main:gX[500],light:gX[300],dark:gX[700]}}(t),s=e.error||function(e="light"){return"dark"===e?{main:mX[500],light:mX[300],dark:mX[700]}:{main:mX[700],light:mX[400],dark:mX[800]}}(t),l=e.info||function(e="light"){return"dark"===e?{main:vX[400],light:vX[300],dark:vX[700]}:{main:vX[700],light:vX[500],dark:vX[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:bX[400],light:bX[300],dark:bX[700]}:{main:bX[800],light:bX[500],dark:bX[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:xX[400],light:xX[300],dark:xX[700]}:{main:"#ed6c02",light:xX[500],dark:xX[900]}}(t);function d(e){return u1(e,C1.text.primary)>=n?C1.text.primary:k1.text.primary}const f=({color:e,name:t,mainShade:n=500,lightShade:i=300,darkShade:o=700})=>{if(!(e=CX({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(SX(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(SX(12,t?` (${t})`:"",JSON.stringify(e.main)));return q1(e,"light",i,r),q1(e,"dark",o,r),e.contrastText||(e.contrastText=d(e.main)),e},h={dark:C1,light:k1};return _Q(CX({common:CX({},pX),mode:t,primary:f({color:o,name:"primary"}),secondary:f({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:s,name:"error"}),warning:f({color:c,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:u,name:"success"}),grey:wX,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},h[t]),i)}const D1=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function T1(e){return Math.round(1e5*e)/1e5}const N1={textTransform:"uppercase"},O1='"Roboto", "Helvetica", "Arial", sans-serif';function A1(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=O1,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,f=qX(n,D1),h=i/14,p=d||(e=>e/u*h+"rem"),m=(e,t,n,i,o)=>CX({fontFamily:r,fontWeight:e,fontSize:p(t),lineHeight:n},r===O1?{letterSpacing:`${T1(i/t)}em`}:{},o,c),g={h1:m(o,96,1.167,-1.5),h2:m(o,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,N1),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,N1),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return _Q(CX({htmlFontSize:u,pxToRem:p,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),f,{clone:!1})}function _1(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var L1=["none",_1(0,2,1,-1,0,1,1,0,0,1,3,0),_1(0,3,1,-2,0,2,2,0,0,1,5,0),_1(0,3,3,-2,0,3,4,0,0,1,8,0),_1(0,2,4,-1,0,4,5,0,0,1,10,0),_1(0,3,5,-1,0,5,8,0,0,1,14,0),_1(0,3,5,-1,0,6,10,0,0,1,18,0),_1(0,4,5,-2,0,7,10,1,0,2,16,1),_1(0,5,5,-3,0,8,10,1,0,3,14,2),_1(0,5,6,-3,0,9,12,1,0,3,16,2),_1(0,6,6,-3,0,10,14,1,0,4,18,3),_1(0,6,7,-4,0,11,15,1,0,4,20,3),_1(0,7,8,-4,0,12,17,2,0,5,22,4),_1(0,7,8,-4,0,13,19,2,0,5,24,4),_1(0,7,9,-4,0,14,21,2,0,5,26,4),_1(0,8,9,-5,0,15,22,2,0,6,28,5),_1(0,8,10,-5,0,16,24,2,0,6,30,5),_1(0,8,11,-5,0,17,26,2,0,6,32,5),_1(0,9,11,-5,0,18,28,2,0,7,34,6),_1(0,9,12,-6,0,19,29,2,0,7,36,6),_1(0,10,13,-6,0,20,31,3,0,8,38,7),_1(0,10,13,-6,0,21,33,3,0,8,40,7),_1(0,10,14,-6,0,22,35,3,0,8,42,7),_1(0,11,14,-7,0,23,36,3,0,9,44,8),_1(0,11,15,-7,0,24,38,3,0,9,46,8)];const I1=["duration","easing","delay"],R1={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},P1={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function z1(e){return`${Math.round(e)}ms`}function F1(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function j1(e){const t=CX({},R1,e.easing),n=CX({},P1,e.duration);return CX({getAutoHeightDuration:F1,create:(e=["all"],r={})=>{const{duration:i=n.standard,easing:o=t.easeInOut,delay:a=0}=r;return qX(r,I1),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof i?i:z1(i)} ${o} ${"string"==typeof a?a:z1(a)}`)).join(",")}},e,{easing:t,duration:n})}var B1={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const H1=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function V1(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,a=qX(e,H1);if(e.vars)throw new Error(SX(18));const s=E1(r),l=BZ(e);let u=_Q(l,{mixins:(c=l.breakpoints,d=n,CX({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:L1.slice(),typography:A1(s,o),transitions:j1(i),zIndex:CX({},B1)});var c,d;return u=_Q(u,a),u=t.reduce(((e,t)=>_Q(e,t)),u),u.unstable_sxConfig=CX({},IZ,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return zZ({sx:e,theme:this})},u}var $1=V1();function U1({props:e,name:t}){return C0({props:e,name:t,defaultTheme:$1,themeId:kX})}var W1,Y1={},K1={exports:{}};var G1,X1={exports:{}};var J1=hg(EQ),Q1=hg(LQ),Z1=hg($Q),e2=hg(M0),t2=hg(HZ),n2=hg(WZ),r2=r1;Object.defineProperty(Y1,"__esModule",{value:!0});var i2=Y1.default=function(e={}){const{themeId:t,defaultTheme:n=g2,rootShouldForwardProp:r=m2,slotShouldForwardProp:i=m2}=e,o=e=>(0,c2.default)((0,o2.default)({},e,{theme:v2((0,o2.default)({},e,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(e,a={})=>{(0,s2.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d=b2(y2(l))}=a,f=(0,a2.default)(a,h2),h=void 0!==u?u:l&&"Root"!==l&&"root"!==l||!1,p=c||!1;let m=m2;"Root"===l||"root"===l?m=r:l?m=i:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=(0,s2.default)(e,(0,o2.default)({shouldForwardProp:m,label:undefined},f)),y=e=>"function"==typeof e&&e.__emotion_real!==e||(0,l2.isPlainObject)(e)?r=>x2(e,(0,o2.default)({},r,{theme:v2({theme:r.theme,defaultTheme:n,themeId:t})})):e,v=(r,...i)=>{let a=y(r);const l=i?i.map(y):[];s&&d&&l.push((e=>{const r=v2((0,o2.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[s]||!r.components[s].styleOverrides)return null;const i=r.components[s].styleOverrides,o={};return Object.entries(i).forEach((([t,n])=>{o[t]=x2(n,(0,o2.default)({},e,{theme:r}))})),d(e,o)})),s&&!h&&l.push((e=>{var r;const i=v2((0,o2.default)({},e,{defaultTheme:n,themeId:t}));return x2({variants:null==i||null==(r=i.components)||null==(r=r[s])?void 0:r.variants},(0,o2.default)({},e,{theme:i}))})),p||l.push(o);const u=l.length-i.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const c=g(a,...l);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}};Y1.shouldForwardProp=m2,Y1.systemDefaultTheme=void 0;var o2=r2((W1||(W1=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(K1)),K1.exports)),a2=r2((G1||(G1=1,function(e){e.exports=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i},e.exports.__esModule=!0,e.exports.default=e.exports}(X1)),X1.exports)),s2=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=p2(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(J1),l2=Q1;r2(Z1),r2(e2);var u2=r2(t2),c2=r2(n2);const d2=["ownerState"],f2=["variants"],h2=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function p2(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p2=function(e){return e?n:t})(e)}function m2(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const g2=Y1.systemDefaultTheme=(0,u2.default)(),y2=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function v2({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function b2(e){return e?(t,n)=>n[e]:null}function x2(e,t){let{ownerState:n}=t,r=(0,a2.default)(t,d2);const i="function"==typeof e?e((0,o2.default)({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap((e=>x2(e,(0,o2.default)({ownerState:n},r))));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,a2.default)(i,f2);return e.forEach((e=>{let i=!0;"function"==typeof e.props?i=e.props((0,o2.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(i=!1)})),i&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,o2.default)({ownerState:n},r,n)):e.style))})),t}return i}var w2=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e;var S2=i2({themeId:kX,defaultTheme:$1,rootShouldForwardProp:w2});const M2=["theme"];function k2(e){let{theme:t}=e,n=qX(e,M2);const r=t[kX];return CQ.jsx(e1,CX({},n,{themeId:r?kX:void 0,theme:r||t}))}function C2(e){return QZ("MuiSvgIcon",e)}ZZ("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const q2=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],E2=S2("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${VQ(n.color)}`],t[`fontSize${VQ(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,i,o,a,s,l,u,c,d,f,h,p;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(i=e.transitions)||null==(i=i.duration)?void 0:i.shorter}),fontSize:{inherit:"inherit",small:(null==(o=e.typography)||null==(a=o.pxToRem)?void 0:a.call(o,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(f=(e.vars||e).palette)||null==(f=f[t.color])?void 0:f.main)?d:{action:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.active,disabled:null==(p=(e.vars||e).palette)||null==(p=p.action)?void 0:p.disabled,inherit:void 0}[t.color]}})),D2=mT.forwardRef((function(e,t){const n=U1({props:e,name:"MuiSvgIcon"}),{children:r,className:i,color:o="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=n,f=qX(n,q2),h=mT.isValidElement(r)&&"svg"===r.type,p=CX({},n,{color:o,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:h}),m={};u||(m.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return $0({root:["root","inherit"!==t&&`color${VQ(t)}`,`fontSize${VQ(n)}`]},C2,r)})(p);return CQ.jsxs(E2,CX({as:a,className:XZ(g.root,i),focusable:"false",color:l,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},m,f,h&&r.props,{ownerState:p,children:[h?r.props.children:r,c?CQ.jsx("title",{children:c}):null]}))}));D2.muiName="SvgIcon";var T2=D2;var N2=ZZ("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const O2=["center","classes","className"];let A2,_2,L2,I2,R2=e=>e;const P2=lQ(A2||(A2=R2`
49
+ */,StyledEngineProvider:function(e){const{injectFirst:t,children:n}=e;return t&&EQ?qQ.jsx(iQ,{value:EQ,children:n}):n},ThemeContext:aQ,css:lQ,default:function(e,t){return gQ(e,t)},internal_processStyles:(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},keyframes:uQ});function TQ(){return TQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},TQ.apply(this,arguments)}function NQ(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function OQ(){return OQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},OQ.apply(this,arguments)}function AQ(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function _Q(e){if(!AQ(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=_Q(e[n])})),t}function LQ(e,t,n={clone:!0}){const r=n.clone?OQ({},e):e;return AQ(e)&&AQ(t)&&Object.keys(t).forEach((i=>{"__proto__"!==i&&(AQ(t[i])&&i in e&&AQ(e[i])?r[i]=LQ(e[i],t[i],n):n.clone?r[i]=AQ(t[i])?_Q(t[i]):t[i]:r[i]=t[i])})),r}var IQ=Object.freeze({__proto__:null,default:LQ,isPlainObject:AQ});const RQ=["values","unit","step"],PQ=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>TQ({},e,{[t.key]:t.val})),{})};function zQ(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=NQ(e,RQ),o=PQ(t),a=Object.keys(o);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,i){const o=a.indexOf(i);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==o&&"number"==typeof t[a[o]]?t[a[o]]:i)-r/100}${n})`}return TQ({keys:a,values:o,up:s,down:l,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},i)}var FQ={borderRadius:4};function jQ(e,t){return t?LQ(e,t,{clone:!1}):e}const BQ={xs:0,sm:600,md:900,lg:1200,xl:1536},HQ={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${BQ[e]}px)`};function VQ(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||HQ;return t.reduce(((r,i,o)=>(r[e.up(e.keys[o])]=n(t[o]),r)),{})}if("object"==typeof t){const e=r.breakpoints||HQ;return Object.keys(t).reduce(((r,i)=>{if(-1!==Object.keys(e.values||BQ).indexOf(i)){r[e.up(i)]=n(t[i],i)}else{const e=i;r[e]=t[e]}return r}),{})}return n(t)}function $Q(e){if("string"!=typeof e)throw new Error(MX(7));return e.charAt(0).toUpperCase()+e.slice(1)}var UQ=Object.freeze({__proto__:null,default:$Q});function WQ(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function YQ(e,t,n,r=n){let i;return i="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:WQ(e,n)||r,t&&(i=t(i,r,e)),i}function KQ(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=e=>{if(null==e[t])return null;const o=e[t],a=WQ(e.theme,r)||{};return VQ(e,o,(e=>{let r=YQ(a,i,e);return e===r&&"string"==typeof e&&(r=YQ(a,i,`${t}${"default"===e?"":$Q(e)}`,e)),!1===n?r:{[n]:r}}))};return o.propTypes={},o.filterProps=[t],o}const GQ={m:"margin",p:"padding"},XQ={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},JQ={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},QQ=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!JQ[e])return[e];e=JQ[e]}const[t,n]=e.split(""),r=GQ[t],i=XQ[n]||"";return Array.isArray(i)?i.map((e=>r+e)):[r+i]})),ZQ=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],eZ=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function tZ(e,t,n,r){var i;const o=null!=(i=WQ(e,t,!1))?i:n;return"number"==typeof o?e=>"string"==typeof e?e:o*e:Array.isArray(o)?e=>"string"==typeof e?e:o[e]:"function"==typeof o?o:()=>{}}function nZ(e){return tZ(e,"spacing",8)}function rZ(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function iZ(e,t,n,r){if(-1===t.indexOf(n))return null;const i=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=rZ(t,n),e)),{})}(QQ(n),r);return VQ(e,e[n],i)}function oZ(e,t){const n=nZ(e.theme);return Object.keys(e).map((r=>iZ(e,t,r,n))).reduce(jQ,{})}function aZ(e){return oZ(e,ZQ)}function sZ(e){return oZ(e,eZ)}function lZ(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?jQ(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function uZ(e){return"number"!=typeof e?e:`${e}px solid`}function cZ(e,t){return KQ({prop:e,themeKey:"borders",transform:t})}aZ.propTypes={},aZ.filterProps=ZQ,sZ.propTypes={},sZ.filterProps=eZ;const dZ=cZ("border",uZ),fZ=cZ("borderTop",uZ),hZ=cZ("borderRight",uZ),pZ=cZ("borderBottom",uZ),mZ=cZ("borderLeft",uZ),gZ=cZ("borderColor"),yZ=cZ("borderTopColor"),vZ=cZ("borderRightColor"),bZ=cZ("borderBottomColor"),xZ=cZ("borderLeftColor"),wZ=cZ("outline",uZ),SZ=cZ("outlineColor"),MZ=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=tZ(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:rZ(t,e)});return VQ(e,e.borderRadius,n)}return null};MZ.propTypes={},MZ.filterProps=["borderRadius"],lZ(dZ,fZ,hZ,pZ,mZ,gZ,yZ,vZ,bZ,xZ,MZ,wZ,SZ);const kZ=e=>{if(void 0!==e.gap&&null!==e.gap){const t=tZ(e.theme,"spacing",8),n=e=>({gap:rZ(t,e)});return VQ(e,e.gap,n)}return null};kZ.propTypes={},kZ.filterProps=["gap"];const CZ=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=tZ(e.theme,"spacing",8),n=e=>({columnGap:rZ(t,e)});return VQ(e,e.columnGap,n)}return null};CZ.propTypes={},CZ.filterProps=["columnGap"];const qZ=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=tZ(e.theme,"spacing",8),n=e=>({rowGap:rZ(t,e)});return VQ(e,e.rowGap,n)}return null};qZ.propTypes={},qZ.filterProps=["rowGap"];function EZ(e,t){return"grey"===t?t:e}lZ(kZ,CZ,qZ,KQ({prop:"gridColumn"}),KQ({prop:"gridRow"}),KQ({prop:"gridAutoFlow"}),KQ({prop:"gridAutoColumns"}),KQ({prop:"gridAutoRows"}),KQ({prop:"gridTemplateColumns"}),KQ({prop:"gridTemplateRows"}),KQ({prop:"gridTemplateAreas"}),KQ({prop:"gridArea"}));function DZ(e){return e<=1&&0!==e?100*e+"%":e}lZ(KQ({prop:"color",themeKey:"palette",transform:EZ}),KQ({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:EZ}),KQ({prop:"backgroundColor",themeKey:"palette",transform:EZ}));const TZ=KQ({prop:"width",transform:DZ}),NZ=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const i=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||BQ[t];return i?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:DZ(t)}};return VQ(e,e.maxWidth,t)}return null};NZ.filterProps=["maxWidth"];const OZ=KQ({prop:"minWidth",transform:DZ}),AZ=KQ({prop:"height",transform:DZ}),_Z=KQ({prop:"maxHeight",transform:DZ}),LZ=KQ({prop:"minHeight",transform:DZ});KQ({prop:"size",cssProperty:"width",transform:DZ}),KQ({prop:"size",cssProperty:"height",transform:DZ});lZ(TZ,NZ,OZ,AZ,_Z,LZ,KQ({prop:"boxSizing"}));const IZ={border:{themeKey:"borders",transform:uZ},borderTop:{themeKey:"borders",transform:uZ},borderRight:{themeKey:"borders",transform:uZ},borderBottom:{themeKey:"borders",transform:uZ},borderLeft:{themeKey:"borders",transform:uZ},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:uZ},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:MZ},color:{themeKey:"palette",transform:EZ},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:EZ},backgroundColor:{themeKey:"palette",transform:EZ},p:{style:sZ},pt:{style:sZ},pr:{style:sZ},pb:{style:sZ},pl:{style:sZ},px:{style:sZ},py:{style:sZ},padding:{style:sZ},paddingTop:{style:sZ},paddingRight:{style:sZ},paddingBottom:{style:sZ},paddingLeft:{style:sZ},paddingX:{style:sZ},paddingY:{style:sZ},paddingInline:{style:sZ},paddingInlineStart:{style:sZ},paddingInlineEnd:{style:sZ},paddingBlock:{style:sZ},paddingBlockStart:{style:sZ},paddingBlockEnd:{style:sZ},m:{style:aZ},mt:{style:aZ},mr:{style:aZ},mb:{style:aZ},ml:{style:aZ},mx:{style:aZ},my:{style:aZ},margin:{style:aZ},marginTop:{style:aZ},marginRight:{style:aZ},marginBottom:{style:aZ},marginLeft:{style:aZ},marginX:{style:aZ},marginY:{style:aZ},marginInline:{style:aZ},marginInlineStart:{style:aZ},marginInlineEnd:{style:aZ},marginBlock:{style:aZ},marginBlockStart:{style:aZ},marginBlockEnd:{style:aZ},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:kZ},rowGap:{style:qZ},columnGap:{style:CZ},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:DZ},maxWidth:{style:NZ},minWidth:{transform:DZ},height:{transform:DZ},maxHeight:{transform:DZ},minHeight:{transform:DZ},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};var RZ=IZ;function PZ(){function e(e,t,n,r){const i={[e]:t,theme:n},o=r[e];if(!o)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:u}=o;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const c=WQ(n,s)||{};if(u)return u(i);return VQ(i,t,(t=>{let n=YQ(c,l,t);return t===n&&"string"==typeof t&&(n=YQ(c,l,`${e}${"default"===t?"":$Q(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:i,theme:o={}}=n||{};if(!i)return null;const a=null!=(r=o.unstable_sxConfig)?r:RZ;function s(n){let r=n;if("function"==typeof n)r=n(o);else if("object"!=typeof n)return n;if(!r)return null;const i=function(e={}){var t;const n=null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{});return n||{}}(o.breakpoints),s=Object.keys(i);let l=i;return Object.keys(r).forEach((n=>{const i=(s=r[n],u=o,"function"==typeof s?s(u):s);var s,u;if(null!=i)if("object"==typeof i)if(a[n])l=jQ(l,e(n,i,o,a));else{const e=VQ({theme:o},i,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,i)?l=jQ(l,e):l[n]=t({sx:i,theme:o})}else l=jQ(l,e(n,i,o,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(s,l)}return Array.isArray(i)?i.map(s):s(i)}}const zZ=PZ();zZ.filterProps=["sx"];var FZ=zZ;function jZ(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){return{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}}return n.palette.mode===e?t:{}}const BZ=["breakpoints","palette","spacing","shape"];function HZ(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,a=NQ(e,BZ),s=zQ(n),l=function(e=8){if(e.mui)return e;const t=nZ({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(i);let u=LQ({breakpoints:s,direction:"ltr",components:{},palette:TQ({mode:"light"},r),spacing:l,shape:TQ({},FQ,o)},a);return u.applyStyles=jZ,u=t.reduce(((e,t)=>LQ(e,t)),u),u.unstable_sxConfig=TQ({},RZ,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return FZ({sx:e,theme:this})},u}var VZ=Object.freeze({__proto__:null,default:HZ,private_createBreakpoints:zQ,unstable_applyStyles:jZ});function $Z(e=null){const t=gT.useContext(aQ);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const UZ=HZ();const WZ=["sx"];var YZ=Object.freeze({__proto__:null,default:FZ,extendSxProp:function(e){const{sx:t}=e,n=NQ(e,WZ),{systemProps:r,otherProps:i}=(e=>{var t,n;const r={systemProps:{},otherProps:{}},i=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:RZ;return Object.keys(e).forEach((t=>{i[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r})(n);let o;return o=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return AQ(n)?TQ({},r,n):r}:TQ({},r,t),TQ({},i,{sx:o})},unstable_createStyleFunctionSx:PZ,unstable_defaultSxConfig:RZ});const KZ=e=>e;var GZ=(()=>{let e=KZ;return{configure(t){e=t},generate:t=>e(t),reset(){e=KZ}}})();function XZ(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=XZ(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function JZ(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=XZ(e))&&(r&&(r+=" "),r+=t);return r}const QZ={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function ZZ(e,t,n="Mui"){const r=QZ[t];return r?`${n}-${r}`:`${GZ.generate(e)}-${t}`}function e0(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=ZZ(e,t,n)})),r}var t0,n0={exports:{}},r0={},i0=Symbol.for("react.element"),o0=Symbol.for("react.portal"),a0=Symbol.for("react.fragment"),s0=Symbol.for("react.strict_mode"),l0=Symbol.for("react.profiler"),u0=Symbol.for("react.provider"),c0=Symbol.for("react.context"),d0=Symbol.for("react.server_context"),f0=Symbol.for("react.forward_ref"),h0=Symbol.for("react.suspense"),p0=Symbol.for("react.suspense_list"),m0=Symbol.for("react.memo"),g0=Symbol.for("react.lazy"),y0=Symbol.for("react.offscreen");function v0(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i0:switch(e=e.type){case a0:case l0:case s0:case h0:case p0:return e;default:switch(e=e&&e.$$typeof){case d0:case c0:case f0:case g0:case m0:case u0:return e;default:return t}}case o0:return t}}}t0=Symbol.for("react.module.reference"),r0.ContextConsumer=c0,r0.ContextProvider=u0,r0.Element=i0,r0.ForwardRef=f0,r0.Fragment=a0,r0.Lazy=g0,r0.Memo=m0,r0.Portal=o0,r0.Profiler=l0,r0.StrictMode=s0,r0.Suspense=h0,r0.SuspenseList=p0,r0.isAsyncMode=function(){return!1},r0.isConcurrentMode=function(){return!1},r0.isContextConsumer=function(e){return v0(e)===c0},r0.isContextProvider=function(e){return v0(e)===u0},r0.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i0},r0.isForwardRef=function(e){return v0(e)===f0},r0.isFragment=function(e){return v0(e)===a0},r0.isLazy=function(e){return v0(e)===g0},r0.isMemo=function(e){return v0(e)===m0},r0.isPortal=function(e){return v0(e)===o0},r0.isProfiler=function(e){return v0(e)===l0},r0.isStrictMode=function(e){return v0(e)===s0},r0.isSuspense=function(e){return v0(e)===h0},r0.isSuspenseList=function(e){return v0(e)===p0},r0.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a0||e===l0||e===s0||e===h0||e===p0||e===y0||"object"==typeof e&&null!==e&&(e.$$typeof===g0||e.$$typeof===m0||e.$$typeof===u0||e.$$typeof===c0||e.$$typeof===f0||e.$$typeof===t0||void 0!==e.getModuleId)},r0.typeOf=v0,n0.exports=r0;var b0=n0.exports;const x0=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function w0(e){const t=`${e}`.match(x0);return t&&t[1]||""}function S0(e,t=""){return e.displayName||e.name||w0(e)||t}function M0(e,t,n){const r=S0(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var k0=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return S0(e,"Component");if("object"==typeof e)switch(e.$$typeof){case b0.ForwardRef:return M0(e,e.render,"ForwardRef");case b0.Memo:return M0(e,e.type,"memo");default:return}}},getFunctionName:w0});function C0(e,t){const n=OQ({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=OQ({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},o=t[r];n[r]={},o&&Object.keys(o)?i&&Object.keys(i)?(n[r]=OQ({},o),Object.keys(i).forEach((e=>{n[r][e]=C0(i[e],o[e])}))):n[r]=o:n[r]=i}else void 0===n[r]&&(n[r]=e[r])})),n}function q0({props:e,name:t,defaultTheme:n,themeId:r}){let i=function(e=UZ){return $Z(e)}(n);r&&(i=i[r]||i);const o=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?C0(t.components[n].defaultProps,r):r}({theme:i,name:t,props:e});return o}var E0="undefined"!=typeof window?gT.useLayoutEffect:gT.useEffect;var D0=Object.freeze({__proto__:null,default:function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}});function T0(){return T0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T0.apply(this,arguments)}function N0(e){const t=gT.useRef(e);return E0((()=>{t.current=e})),gT.useRef(((...e)=>(0,t.current)(...e))).current}function O0(...e){return gT.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{!function(e,t){"function"==typeof e?e(t):e&&(e.current=t)}(e,t)}))}),e)}const A0={};const _0=[];class L0{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new L0}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function I0(){const e=function(e,t){const n=gT.useRef(A0);return n.current===A0&&(n.current=e(t)),n}(L0.create).current;return function(e){gT.useEffect(e,_0)}(e.disposeEffect),e}let R0=!0,P0=!1;const z0=new L0,F0={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function j0(e){e.metaKey||e.altKey||e.ctrlKey||(R0=!0)}function B0(){R0=!1}function H0(){"hidden"===this.visibilityState&&P0&&(R0=!0)}function V0(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return R0||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!F0[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function $0(){const e=gT.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",j0,!0),t.addEventListener("mousedown",B0,!0),t.addEventListener("pointerdown",B0,!0),t.addEventListener("touchstart",B0,!0),t.addEventListener("visibilitychange",H0,!0))}),[]),t=gT.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!V0(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(P0=!0,z0.start(100,(()=>{P0=!1})),t.current=!1,!0)},ref:e}}function U0(e,t,n=void 0){const r={};return Object.keys(e).forEach((i=>{r[i]=e[i].reduce(((e,r)=>{if(r){const i=t(r);""!==i&&e.push(i),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}var W0=gT.createContext(null);function Y0(){return gT.useContext(W0)}var K0="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function G0(e){const{children:t,theme:n}=e,r=Y0(),i=gT.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return T0({},e,t)}(r,n);return null!=e&&(e[K0]=null!==r),e}),[n,r]);return qQ.jsx(W0.Provider,{value:i,children:t})}const X0=["value"],J0=gT.createContext();function Q0(e){let{value:t}=e,n=NQ(e,X0);return qQ.jsx(J0.Provider,TQ({value:null==t||t},n))}const Z0={};function e1(e,t,n,r=!1){return gT.useMemo((()=>{const i=e&&t[e]||t;if("function"==typeof n){const o=n(i),a=e?TQ({},t,{[e]:o}):o;return r?()=>a:a}return TQ({},t,e?{[e]:n}:n)}),[e,t,n,r])}function t1(e){const{children:t,theme:n,themeId:r}=e,i=$Z(Z0),o=Y0()||Z0,a=e1(r,i,n),s=e1(r,o,n,!0),l="rtl"===a.direction;return qQ.jsx(G0,{theme:s,children:qQ.jsx(aQ.Provider,{value:a,children:qQ.jsx(Q0,{value:l,children:t})})})}var n1={},r1={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(r1);var i1=r1.exports,o1=hg(kX),a1=hg(D0),s1=i1;Object.defineProperty(n1,"__esModule",{value:!0});var l1=n1.alpha=w1;n1.blend=function(e,t,n,r=1){const i=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),o=g1(e),a=g1(t),s=[i(o.values[0],a.values[0]),i(o.values[1],a.values[1]),i(o.values[2],a.values[2])];return v1({type:"rgb",values:s})},n1.colorChannel=void 0;var u1=n1.darken=S1;n1.decomposeColor=g1,n1.emphasize=function(e,t=.15){return x1(e)>.5?S1(e,t):M1(e,t)};var c1=n1.getContrastRatio=function(e,t){const n=x1(e),r=x1(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};n1.getLuminance=x1,n1.hexToRgb=m1,n1.hslToRgb=b1;var d1=n1.lighten=M1;n1.private_safeAlpha=function(e,t,n){try{return w1(e,t)}catch(t){return e}},n1.private_safeColorChannel=void 0,n1.private_safeDarken=function(e,t,n){try{return S1(e,t)}catch(t){return e}},n1.private_safeEmphasize=function e(t,n,r){try{return e(t,n)}catch(e){return t}},n1.private_safeLighten=function(e,t,n){try{return M1(e,t)}catch(t){return e}},n1.recomposeColor=v1,n1.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=g1(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var f1=s1(o1),h1=s1(a1);function p1(e,t=0,n=1){return(0,h1.default)(e,t,n)}function m1(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function g1(e){if(e.type)return e;if("#"===e.charAt(0))return g1(m1(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,f1.default)(9,e));let r,i=e.substring(t+1,e.length-1);if("color"===n){if(i=i.split(" "),r=i.shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,f1.default)(10,r))}else i=i.split(",");return i=i.map((e=>parseFloat(e))),{type:n,values:i,colorSpace:r}}const y1=e=>{const t=g1(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};n1.colorChannel=y1;function v1(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function b1(e){e=g1(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=(e,t=(e+n/30)%12)=>i-o*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),v1({type:s,values:l})}function x1(e){let t="hsl"===(e=g1(e)).type||"hsla"===e.type?g1(b1(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function w1(e,t){return e=g1(e),t=p1(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,v1(e)}function S1(e,t){if(e=g1(e),t=p1(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return v1(e)}function M1(e,t){if(e=g1(e),t=p1(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return v1(e)}n1.private_safeColorChannel=(e,t)=>{try{return y1(e)}catch(t){return e}};const k1=["mode","contrastThreshold","tonalOffset"],C1={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:mX.white,default:mX.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},q1={text:{primary:mX.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:mX.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function E1(e,t,n,r){const i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=d1(e.main,i):"dark"===t&&(e.dark=u1(e.main,o)))}function D1(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=EX(e,k1),o=e.primary||function(e="light"){return"dark"===e?{main:vX[200],light:vX[50],dark:vX[400]}:{main:vX[700],light:vX[400],dark:vX[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:yX[200],light:yX[50],dark:yX[400]}:{main:yX[500],light:yX[300],dark:yX[700]}}(t),s=e.error||function(e="light"){return"dark"===e?{main:gX[500],light:gX[300],dark:gX[700]}:{main:gX[700],light:gX[400],dark:gX[800]}}(t),l=e.info||function(e="light"){return"dark"===e?{main:bX[400],light:bX[300],dark:bX[700]}:{main:bX[700],light:bX[500],dark:bX[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:xX[400],light:xX[300],dark:xX[700]}:{main:xX[800],light:xX[500],dark:xX[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:wX[400],light:wX[300],dark:wX[700]}:{main:"#ed6c02",light:wX[500],dark:wX[900]}}(t);function d(e){return c1(e,q1.text.primary)>=n?q1.text.primary:C1.text.primary}const f=({color:e,name:t,mainShade:n=500,lightShade:i=300,darkShade:o=700})=>{if(!(e=qX({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(MX(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(MX(12,t?` (${t})`:"",JSON.stringify(e.main)));return E1(e,"light",i,r),E1(e,"dark",o,r),e.contrastText||(e.contrastText=d(e.main)),e},h={dark:q1,light:C1};return LQ(qX({common:qX({},mX),mode:t,primary:f({color:o,name:"primary"}),secondary:f({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:s,name:"error"}),warning:f({color:c,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:u,name:"success"}),grey:SX,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},h[t]),i)}const T1=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function N1(e){return Math.round(1e5*e)/1e5}const O1={textTransform:"uppercase"},A1='"Roboto", "Helvetica", "Arial", sans-serif';function _1(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=A1,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,f=EX(n,T1),h=i/14,p=d||(e=>e/u*h+"rem"),m=(e,t,n,i,o)=>qX({fontFamily:r,fontWeight:e,fontSize:p(t),lineHeight:n},r===A1?{letterSpacing:`${N1(i/t)}em`}:{},o,c),g={h1:m(o,96,1.167,-1.5),h2:m(o,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,O1),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,O1),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return LQ(qX({htmlFontSize:u,pxToRem:p,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),f,{clone:!1})}function L1(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var I1=["none",L1(0,2,1,-1,0,1,1,0,0,1,3,0),L1(0,3,1,-2,0,2,2,0,0,1,5,0),L1(0,3,3,-2,0,3,4,0,0,1,8,0),L1(0,2,4,-1,0,4,5,0,0,1,10,0),L1(0,3,5,-1,0,5,8,0,0,1,14,0),L1(0,3,5,-1,0,6,10,0,0,1,18,0),L1(0,4,5,-2,0,7,10,1,0,2,16,1),L1(0,5,5,-3,0,8,10,1,0,3,14,2),L1(0,5,6,-3,0,9,12,1,0,3,16,2),L1(0,6,6,-3,0,10,14,1,0,4,18,3),L1(0,6,7,-4,0,11,15,1,0,4,20,3),L1(0,7,8,-4,0,12,17,2,0,5,22,4),L1(0,7,8,-4,0,13,19,2,0,5,24,4),L1(0,7,9,-4,0,14,21,2,0,5,26,4),L1(0,8,9,-5,0,15,22,2,0,6,28,5),L1(0,8,10,-5,0,16,24,2,0,6,30,5),L1(0,8,11,-5,0,17,26,2,0,6,32,5),L1(0,9,11,-5,0,18,28,2,0,7,34,6),L1(0,9,12,-6,0,19,29,2,0,7,36,6),L1(0,10,13,-6,0,20,31,3,0,8,38,7),L1(0,10,13,-6,0,21,33,3,0,8,40,7),L1(0,10,14,-6,0,22,35,3,0,8,42,7),L1(0,11,14,-7,0,23,36,3,0,9,44,8),L1(0,11,15,-7,0,24,38,3,0,9,46,8)];const R1=["duration","easing","delay"],P1={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},z1={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function F1(e){return`${Math.round(e)}ms`}function j1(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function B1(e){const t=qX({},P1,e.easing),n=qX({},z1,e.duration);return qX({getAutoHeightDuration:j1,create:(e=["all"],r={})=>{const{duration:i=n.standard,easing:o=t.easeInOut,delay:a=0}=r;return EX(r,R1),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof i?i:F1(i)} ${o} ${"string"==typeof a?a:F1(a)}`)).join(",")}},e,{easing:t,duration:n})}var H1={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const V1=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function $1(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,a=EX(e,V1);if(e.vars)throw new Error(MX(18));const s=D1(r),l=HZ(e);let u=LQ(l,{mixins:(c=l.breakpoints,d=n,qX({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:I1.slice(),typography:_1(s,o),transitions:B1(i),zIndex:qX({},H1)});var c,d;return u=LQ(u,a),u=t.reduce(((e,t)=>LQ(e,t)),u),u.unstable_sxConfig=qX({},RZ,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return FZ({sx:e,theme:this})},u}var U1=$1();function W1({props:e,name:t}){return q0({props:e,name:t,defaultTheme:U1,themeId:CX})}var Y1,K1={},G1={exports:{}};var X1,J1={exports:{}};var Q1=hg(DQ),Z1=hg(IQ),e2=hg(UQ),t2=hg(k0),n2=hg(VZ),r2=hg(YZ),i2=i1;Object.defineProperty(K1,"__esModule",{value:!0});var o2=K1.default=function(e={}){const{themeId:t,defaultTheme:n=y2,rootShouldForwardProp:r=g2,slotShouldForwardProp:i=g2}=e,o=e=>(0,d2.default)((0,a2.default)({},e,{theme:b2((0,a2.default)({},e,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(e,a={})=>{(0,l2.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d=x2(v2(l))}=a,f=(0,s2.default)(a,p2),h=void 0!==u?u:l&&"Root"!==l&&"root"!==l||!1,p=c||!1;let m=g2;"Root"===l||"root"===l?m=r:l?m=i:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=(0,l2.default)(e,(0,a2.default)({shouldForwardProp:m,label:undefined},f)),y=e=>"function"==typeof e&&e.__emotion_real!==e||(0,u2.isPlainObject)(e)?r=>w2(e,(0,a2.default)({},r,{theme:b2({theme:r.theme,defaultTheme:n,themeId:t})})):e,v=(r,...i)=>{let a=y(r);const l=i?i.map(y):[];s&&d&&l.push((e=>{const r=b2((0,a2.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[s]||!r.components[s].styleOverrides)return null;const i=r.components[s].styleOverrides,o={};return Object.entries(i).forEach((([t,n])=>{o[t]=w2(n,(0,a2.default)({},e,{theme:r}))})),d(e,o)})),s&&!h&&l.push((e=>{var r;const i=b2((0,a2.default)({},e,{defaultTheme:n,themeId:t}));return w2({variants:null==i||null==(r=i.components)||null==(r=r[s])?void 0:r.variants},(0,a2.default)({},e,{theme:i}))})),p||l.push(o);const u=l.length-i.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const c=g(a,...l);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}};K1.shouldForwardProp=g2,K1.systemDefaultTheme=void 0;var a2=i2((Y1||(Y1=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(G1)),G1.exports)),s2=i2((X1||(X1=1,function(e){e.exports=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i},e.exports.__esModule=!0,e.exports.default=e.exports}(J1)),J1.exports)),l2=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=m2(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(Q1),u2=Z1;i2(e2),i2(t2);var c2=i2(n2),d2=i2(r2);const f2=["ownerState"],h2=["variants"],p2=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function m2(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(m2=function(e){return e?n:t})(e)}function g2(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const y2=K1.systemDefaultTheme=(0,c2.default)(),v2=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function b2({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function x2(e){return e?(t,n)=>n[e]:null}function w2(e,t){let{ownerState:n}=t,r=(0,s2.default)(t,f2);const i="function"==typeof e?e((0,a2.default)({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap((e=>w2(e,(0,a2.default)({ownerState:n},r))));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,s2.default)(i,h2);return e.forEach((e=>{let i=!0;"function"==typeof e.props?i=e.props((0,a2.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(i=!1)})),i&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,a2.default)({ownerState:n},r,n)):e.style))})),t}return i}var S2=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e;var M2=o2({themeId:CX,defaultTheme:U1,rootShouldForwardProp:S2});const k2=["theme"];function C2(e){let{theme:t}=e,n=EX(e,k2);const r=t[CX];return qQ.jsx(t1,qX({},n,{themeId:r?CX:void 0,theme:r||t}))}function q2(e){return ZZ("MuiSvgIcon",e)}e0("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const E2=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],D2=M2("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${$Q(n.color)}`],t[`fontSize${$Q(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,i,o,a,s,l,u,c,d,f,h,p;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(i=e.transitions)||null==(i=i.duration)?void 0:i.shorter}),fontSize:{inherit:"inherit",small:(null==(o=e.typography)||null==(a=o.pxToRem)?void 0:a.call(o,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(f=(e.vars||e).palette)||null==(f=f[t.color])?void 0:f.main)?d:{action:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.active,disabled:null==(p=(e.vars||e).palette)||null==(p=p.action)?void 0:p.disabled,inherit:void 0}[t.color]}})),T2=gT.forwardRef((function(e,t){const n=W1({props:e,name:"MuiSvgIcon"}),{children:r,className:i,color:o="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=n,f=EX(n,E2),h=gT.isValidElement(r)&&"svg"===r.type,p=qX({},n,{color:o,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:h}),m={};u||(m.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return U0({root:["root","inherit"!==t&&`color${$Q(t)}`,`fontSize${$Q(n)}`]},q2,r)})(p);return qQ.jsxs(D2,qX({as:a,className:JZ(g.root,i),focusable:"false",color:l,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},m,f,h&&r.props,{ownerState:p,children:[h?r.props.children:r,c?qQ.jsx("title",{children:c}):null]}))}));T2.muiName="SvgIcon";var N2=T2;var O2=e0("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const A2=["center","classes","className"];let _2,L2,I2,R2,P2=e=>e;const z2=uQ(_2||(_2=P2`
50
50
  0% {
51
51
  transform: scale(0);
52
52
  opacity: 0.1;
@@ -56,7 +56,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,i,o,a,s,l,u,c,d,f=e.le
56
56
  transform: scale(1);
57
57
  opacity: 0.3;
58
58
  }
59
- `)),z2=lQ(_2||(_2=R2`
59
+ `)),F2=uQ(L2||(L2=P2`
60
60
  0% {
61
61
  opacity: 1;
62
62
  }
@@ -64,7 +64,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,i,o,a,s,l,u,c,d,f=e.le
64
64
  100% {
65
65
  opacity: 0;
66
66
  }
67
- `)),F2=lQ(L2||(L2=R2`
67
+ `)),j2=uQ(I2||(I2=P2`
68
68
  0% {
69
69
  transform: scale(1);
70
70
  }
@@ -76,7 +76,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,i,o,a,s,l,u,c,d,f=e.le
76
76
  100% {
77
77
  transform: scale(1);
78
78
  }
79
- `)),j2=S2("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),B2=S2((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:o,rippleSize:a,in:s,onExited:l,timeout:u}=e,[c,d]=mT.useState(!1),f=XZ(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),h={width:a,height:a,top:-a/2+o,left:-a/2+i},p=XZ(n.child,c&&n.childLeaving,r&&n.childPulsate);return s||c||d(!0),mT.useEffect((()=>{if(!s&&null!=l){const e=setTimeout(l,u);return()=>{clearTimeout(e)}}}),[l,s,u]),CQ.jsx("span",{className:f,style:h,children:CQ.jsx("span",{className:p})})}),{name:"MuiTouchRipple",slot:"Ripple"})(I2||(I2=R2`
79
+ `)),B2=M2("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),H2=M2((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:o,rippleSize:a,in:s,onExited:l,timeout:u}=e,[c,d]=gT.useState(!1),f=JZ(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),h={width:a,height:a,top:-a/2+o,left:-a/2+i},p=JZ(n.child,c&&n.childLeaving,r&&n.childPulsate);return s||c||d(!0),gT.useEffect((()=>{if(!s&&null!=l){const e=setTimeout(l,u);return()=>{clearTimeout(e)}}}),[l,s,u]),qQ.jsx("span",{className:f,style:h,children:qQ.jsx("span",{className:p})})}),{name:"MuiTouchRipple",slot:"Ripple"})(R2||(R2=P2`
80
80
  opacity: 0;
81
81
  position: absolute;
82
82
 
@@ -119,4 +119,4 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,i,o,a,s,l,u,c,d,f=e.le
119
119
  animation-iteration-count: infinite;
120
120
  animation-delay: 200ms;
121
121
  }
122
- `),N2.rippleVisible,P2,550,(({theme:e})=>e.transitions.easing.easeInOut),N2.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),N2.child,N2.childLeaving,z2,550,(({theme:e})=>e.transitions.easing.easeInOut),N2.childPulsate,F2,(({theme:e})=>e.transitions.easing.easeInOut)),H2=mT.forwardRef((function(e,t){const n=U1({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:i={},className:o}=n,a=qX(n,O2),[s,l]=mT.useState([]),u=mT.useRef(0),c=mT.useRef(null);mT.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[s]);const d=mT.useRef(!1),f=L0(),h=mT.useRef(null),p=mT.useRef(null),m=mT.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:o,cb:a}=e;l((e=>[...e,CQ.jsx(B2,{classes:{ripple:XZ(i.ripple,N2.ripple),rippleVisible:XZ(i.rippleVisible,N2.rippleVisible),ripplePulsate:XZ(i.ripplePulsate,N2.ripplePulsate),child:XZ(i.child,N2.child),childLeaving:XZ(i.childLeaving,N2.childLeaving),childPulsate:XZ(i.childPulsate,N2.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},u.current)])),u.current+=1,c.current=a}),[i]),g=mT.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:i=!1,center:o=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const s=a?null:p.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(o||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(n-l.top)}if(o)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===h.current&&(h.current=()=>{m({pulsate:i,rippleX:u,rippleY:c,rippleSize:g,cb:n})},f.start(80,(()=>{h.current&&(h.current(),h.current=null)}))):m({pulsate:i,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,m,f]),y=mT.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=mT.useCallback(((e,t)=>{if(f.clear(),"touchend"===(null==e?void 0:e.type)&&h.current)return h.current(),h.current=null,void f.start(0,(()=>{v(e,t)}));h.current=null,l((e=>e.length>0?e.slice(1):e)),c.current=t}),[f]);return mT.useImperativeHandle(t,(()=>({pulsate:y,start:g,stop:v})),[y,g,v]),CQ.jsx(j2,CX({className:XZ(N2.root,i.root,o),ref:p},a,{children:CQ.jsx(xW,{component:null,exit:!0,children:s})}))}));var V2=H2;function $2(e){return QZ("MuiButtonBase",e)}var U2=ZZ("MuiButtonBase",["root","disabled","focusVisible"]);const W2=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Y2=S2("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${U2.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),K2=mT.forwardRef((function(e,t){const n=U1({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:i=!1,children:o,className:a,component:s="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:f="a",onBlur:h,onClick:p,onContextMenu:m,onDragLeave:g,onFocus:y,onFocusVisible:v,onKeyDown:b,onKeyUp:x,onMouseDown:w,onMouseLeave:S,onMouseUp:M,onTouchEnd:k,onTouchMove:C,onTouchStart:q,tabIndex:E=0,TouchRippleProps:D,touchRippleRef:T,type:N}=n,O=qX(n,W2),A=mT.useRef(null),_=mT.useRef(null),L=N0(_,T),{isFocusVisibleRef:I,onFocus:R,onBlur:P,ref:z}=V0(),[F,j]=mT.useState(!1);l&&F&&j(!1),mT.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),A.current.focus()}})),[]);const[B,H]=mT.useState(!1);mT.useEffect((()=>{H(!0)}),[]);const V=B&&!u&&!l;function $(e,t,n=c){return T0((r=>{t&&t(r);return!n&&_.current&&_.current[e](r),!0}))}mT.useEffect((()=>{F&&d&&!u&&B&&_.current.pulsate()}),[u,d,F,B]);const U=$("start",w),W=$("stop",m),Y=$("stop",g),K=$("stop",M),G=$("stop",(e=>{F&&e.preventDefault(),S&&S(e)})),X=$("start",q),J=$("stop",k),Q=$("stop",C),Z=$("stop",(e=>{P(e),!1===I.current&&j(!1),h&&h(e)}),!1),ee=T0((e=>{A.current||(A.current=e.currentTarget),R(e),!0===I.current&&(j(!0),v&&v(e)),y&&y(e)})),te=()=>{const e=A.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=mT.useRef(!1),re=T0((e=>{d&&!ne.current&&F&&_.current&&" "===e.key&&(ne.current=!0,_.current.stop(e,(()=>{_.current.start(e)}))),e.target===e.currentTarget&&te()&&" "===e.key&&e.preventDefault(),b&&b(e),e.target===e.currentTarget&&te()&&"Enter"===e.key&&!l&&(e.preventDefault(),p&&p(e))})),ie=T0((e=>{d&&" "===e.key&&_.current&&F&&!e.defaultPrevented&&(ne.current=!1,_.current.stop(e,(()=>{_.current.pulsate(e)}))),x&&x(e),p&&e.target===e.currentTarget&&te()&&" "===e.key&&!e.defaultPrevented&&p(e)}));let oe=s;"button"===oe&&(O.href||O.to)&&(oe=f);const ae={};"button"===oe?(ae.type=void 0===N?"button":N,ae.disabled=l):(O.href||O.to||(ae.role="button"),l&&(ae["aria-disabled"]=l));const se=N0(t,z,A),le=CX({},n,{centerRipple:i,component:s,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:E,focusVisible:F}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,o=$0({root:["root",t&&"disabled",n&&"focusVisible"]},$2,i);return n&&r&&(o.root+=` ${r}`),o})(le);return CQ.jsxs(Y2,CX({as:oe,className:XZ(ue.root,a),ownerState:le,onBlur:Z,onClick:p,onContextMenu:W,onFocus:ee,onKeyDown:re,onKeyUp:ie,onMouseDown:U,onMouseLeave:G,onMouseUp:K,onDragLeave:Y,onTouchEnd:J,onTouchMove:Q,onTouchStart:X,ref:se,tabIndex:l?-1:E,type:N},ae,O,{children:[o,V?CQ.jsx(V2,CX({ref:L,center:i},D)):null]}))}));var G2=K2;function X2(e){return QZ("MuiButton",e)}var J2=ZZ("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var Q2=mT.createContext({});var Z2=mT.createContext(void 0);const e5=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],t5=e=>CX({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),n5=S2(G2,{shouldForwardProp:e=>w2(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${VQ(n.color)}`],t[`size${VQ(n.size)}`],t[`${n.variant}Size${VQ(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const i="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],o="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return CX({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":CX({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:s1(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:s1(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:s1(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:o,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":CX({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${J2.focusVisible}`]:CX({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${J2.disabled}`]:CX({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${s1(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${J2.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${J2.disabled}`]:{boxShadow:"none"}})),r5=S2("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${VQ(n.size)}`]]}})((({ownerState:e})=>CX({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},t5(e)))),i5=S2("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${VQ(n.size)}`]]}})((({ownerState:e})=>CX({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},t5(e)))),o5=mT.forwardRef((function(e,t){const n=mT.useContext(Q2),r=mT.useContext(Z2),i=U1({props:k0(n,e),name:"MuiButton"}),{children:o,color:a="primary",component:s="button",className:l,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:f,focusVisibleClassName:h,fullWidth:p=!1,size:m="medium",startIcon:g,type:y,variant:v="text"}=i,b=qX(i,e5),x=CX({},i,{color:a,component:s,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:p,size:m,type:y,variant:v}),w=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,classes:a}=e;return CX({},a,$0({root:["root",o,`${o}${VQ(t)}`,`size${VQ(i)}`,`${o}Size${VQ(i)}`,`color${VQ(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${VQ(i)}`],endIcon:["icon","endIcon",`iconSize${VQ(i)}`]},X2,a))})(x),S=g&&CQ.jsx(r5,{className:w.startIcon,ownerState:x,children:g}),M=f&&CQ.jsx(i5,{className:w.endIcon,ownerState:x,children:f}),k=r||"";return CQ.jsxs(n5,CX({ownerState:x,className:XZ(n.className,w.root,l,k),component:s,disabled:u,focusRipple:!d,focusVisibleClassName:XZ(w.focusVisible,h),ref:t,type:y},b,{classes:w,children:[S,o,M]}))}));var a5=o5;var s5=mT.createContext({});function l5(e){return QZ("MuiListItemButton",e)}var u5=ZZ("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);const c5=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],d5=S2(G2,{shouldForwardProp:e=>w2(e)||"classes"===e,name:"MuiListItemButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>CX({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${u5.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:s1(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${u5.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:s1(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${u5.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:s1(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:s1(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${u5.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${u5.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},"flex-start"===t.alignItems&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4}))),f5=mT.forwardRef((function(e,t){const n=U1({props:e,name:"MuiListItemButton"}),{alignItems:r="center",autoFocus:i=!1,component:o="div",children:a,dense:s=!1,disableGutters:l=!1,divider:u=!1,focusVisibleClassName:c,selected:d=!1,className:f}=n,h=qX(n,c5),p=mT.useContext(s5),m=mT.useMemo((()=>({dense:s||p.dense||!1,alignItems:r,disableGutters:l})),[r,p.dense,s,l]),g=mT.useRef(null);q0((()=>{i&&g.current&&g.current.focus()}),[i]);const y=CX({},n,{alignItems:r,dense:m.dense,disableGutters:l,divider:u,selected:d}),v=(e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:o,divider:a,selected:s}=e;return CX({},n,$0({root:["root",r&&"dense",!o&&"gutters",a&&"divider",i&&"disabled","flex-start"===t&&"alignItemsFlexStart",s&&"selected"]},l5,n))})(y),b=N0(g,t);return CQ.jsx(s5.Provider,{value:m,children:CQ.jsx(d5,CX({ref:b,href:h.href||h.to,component:(h.href||h.to)&&"div"===o?"button":o,focusVisibleClassName:XZ(v.focusVisible,c),ownerState:y,className:XZ(v.root,f)},h,{classes:v,children:a}))})}));var h5=f5;function p5(e){return QZ("MuiListItemIcon",e)}ZZ("MuiListItemIcon",["root","alignItemsFlexStart"]);const m5=["className"],g5=S2("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>CX({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),y5=mT.forwardRef((function(e,t){const n=U1({props:e,name:"MuiListItemIcon"}),{className:r}=n,i=qX(n,m5),o=CX({},n,{alignItems:mT.useContext(s5).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return $0({root:["root","flex-start"===t&&"alignItemsFlexStart"]},p5,n)})(o);return CQ.jsx(g5,CX({className:XZ(a.root,r),ownerState:o,ref:t},i))}));var v5=y5;function b5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x5(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b5(Object(n),!0).forEach((function(t){w5(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b5(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w5(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S5=function(e){var t=e.className,n=e.path,r=e.fillRule;return gT.createElement(T2,{className:t,viewBox:"0 0 16 16",fontSize:"small",role:"img",style:{height:12,width:12}},gT.createElement("path",{d:n}),r?gT.createElement("use",{fillRule:r}):void 0)},M5={ELLIPSIS:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},FOCUS:{boxShadow:"inset 0 0 0 2px #177FE6"},ICONS:{COLOR:{PRIMARY:"rgba(89, 89, 89)",SECONDARY:"rgba(89, 89, 89, 0.8)",DISABLED:"rgba(89, 89, 89, 0.4)"}}};S2(a5,{shouldForwardProp:function(e){return"direction"!==e&&"padding"!==e&&"styling"!==e}})((function(e){var t=e.direction,n=e.padding,r=e.styling,i=r.fontSize,o=r.fontFamily,a=r.color;return{fontWeight:"normal",lineHeight:"normal",fontSize:i,fontFamily:o,color:a,height:"100%",minWidth:"45px",padding:n,"&:disabled":{color:a,opacity:1},"& .MuiButton-startIcon":{margin:"ltr"===t?"0 2px":void 0},"& .MuiButton-endIcon":{margin:"rtl"===t?"0 2px":void 0}}})),S2((function(e){var t=e.className;return gT.createElement(S5,{className:t,path:"M13,7 L8,7 L13,7 L13,4.98151367 C13,2.23029964 10.7614237,0 8,0 C5.23857625,0 3,2.23029964 3,4.98151367 L3,7 L3.75,7 L3,7 L4.5,7 L4.5,5.33193359 C4.5,3.21561511 5.54860291,1.5 8,1.5 C10.4513971,1.5 11.5,3.21561511 11.5,5.33193359 L11.5,7 L12.25,7 L3,7 C2.44771525,7 2,7.44771525 2,8 L2,15 C2,15.5522847 2.44771525,16 3,16 L13,16 C13.5522847,16 14,15.5522847 14,15 L14,8 C14,7.44771525 13.5522847,7 13,7 L3,7 L13,7 Z",fillRule:"evenodd"})}))((function(){return{color:M5.ICONS.COLOR.SECONDARY}})),S2((function(e){var t=e.className;return gT.createElement(S5,{className:t,path:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})}))((function(){return{color:M5.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:M5.ICONS.COLOR.DISABLED}}})),S2(a5,{shouldForwardProp:function(e){return"styling"!==e}})((function(e){var t=e.styling,n=t.fontSize,r=t.fontFamily,i=t.color;return{fontWeight:"normal",lineHeight:"normal",fontSize:n,fontFamily:r,color:i,padding:"0px 5px",height:"100%",minWidth:"45px","&:disabled":{color:i}}}));var k5={color:M5.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:M5.ICONS.COLOR.DISABLED}};S2((function(e){var t=e.className;return gT.createElement(S5,{className:t,path:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5 8.5 8z"})}))((function(){return k5})),S2((function(e){var t=e.className;return gT.createElement(S5,{className:t,path:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))((function(){return k5})),S2((function(e){var t=e.className;return gT.createElement(S5,{className:t,path:"M15.9993744,3 L15.9993744,5 L4.99937445,5 L4.99937445,3 L15.9993744,3 Z M8.99937445,7 L15.9993744,7 L15.9993744,9 L8.99937445,9 L8.99937445,7 Z M11.9993744,11 L15.9993744,11 L15.9993744,13 L11.9993744,13 L11.9993744,11 Z M2.2,11 L7,11 L7,9.00369263 C7,8.89323568 7.08954305,8.80369263 7.2,8.80369263 C7.2549016,8.80369263 7.30738916,8.82626165 7.34515712,8.86610844 L10.1852182,11.8624926 C10.2583124,11.93961 10.258346,12.0604218 10.1852948,12.13758 L7.34523376,15.1373102 C7.2692928,15.2175206 7.14270711,15.2209817 7.06249671,15.1450407 C7.02260076,15.1072683 7,15.0547472 7,14.9998069 L7,12.9043747 C4.79351111,12.9043747 2.8018683,12.9266213 1.02507156,12.9711145 L1.02507252,12.9711526 C0.472939773,12.9849787 0.014139487,12.5485949 0.000313396522,11.9964622 C0.000104473692,11.988119 -1.32268838e-12,11.9797736 -1.3231638e-12,11.9714278 L-1.83320026e-12,3 L2,3 L2,10.8 C2,10.9104569 2.08954305,11 2.2,11 Z"})}),{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast;return{color:M5.ICONS.COLOR.PRIMARY,marginTop:"1px",marginLeft:"ltr"!==t||n?void 0:"2px",marginRight:"rtl"!==t||r?void 0:"2px"}})),S2(h5)((function(){return{padding:"4px 12px","&:focus":x5({},M5.FOCUS)}})),S2(v5)((function(){return{marginRight:0,justifyContent:"center"}})),S2((function(e){var t=e.className;return gT.createElement(S5,{className:t,path:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2 3 3Z"})}))((function(){return{color:M5.ICONS.COLOR.SECONDARY}}));var C5=Object.prototype.hasOwnProperty,q5=Object.prototype.toString,E5=Object.defineProperty,D5=Object.getOwnPropertyDescriptor,T5=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===q5.call(e)},N5=function(e){if(!e||"[object Object]"!==q5.call(e))return!1;var t,n=C5.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&C5.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||C5.call(e,t)},O5=function(e,t){E5&&"__proto__"===t.name?E5(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},A5=function(e,t){if("__proto__"===t){if(!C5.call(e,t))return;if(D5)return D5(e,t).value}return e[t]};!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,n,r,i,o,a,s=arguments[0],l=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<u;++l)if(null!=(t=arguments[l]))for(n in t)r=A5(s,n),s!==(i=A5(t,n))&&(c&&i&&(N5(i)||(o=T5(i)))?(o?(o=!1,a=r&&T5(r)?r:[]):a=r&&N5(r)?r:{},O5(s,{name:n,newValue:e(c,a,i)})):void 0!==i&&O5(s,{name:n,newValue:i}));return s}));var _5,L5=function(e){var t=e.dock,n=e.settings.label,r="center"===t,i=r?{}:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};return gT.createElement("span",{style:i,title:n},r?n:"* ".concat(n))},I5={renderer:"react",disableTriggers:!0,key:"disclaimer",defaultSettings:{settings:{isRTL:!1,label:void 0},style:{fontFamily:'"Source Sans Pro", "Arial", "sans-serif"'}},preferredSize:function(){return 22},render:function(){var e=this.rect,t=this.settings,n=t.layout,r=t.settings,i=t.style;return function(e){var t=e.dock,n=e.rect,r=e.settings,i=e.styling,o=function(e){var t=e.dock;return"top"!==t&&"bottom"!==t||!e.isRTL?"ltr":"rtl"}({dock:t,isRTL:r.isRTL}),a=function(e){var t=e.dock,n=e.rect,r={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",color:"#7b7a78",fontStyle:"italic",fontSize:"13px",fontFamily:e.styling.fontFamily};return"left"===t&&(r.width="".concat(n.height,"px"),r.transform="rotate(-90deg) translate(-".concat(n.height,"px, 0)"),r.transformOrigin="top left"),"right"===t&&(r.width="".concat(n.height,"px"),r.transform="rotate(90deg) translate(0, -".concat(n.width,"px)"),r.transformOrigin="top left"),"center"===t&&(r.width="".concat(n.width,"px"),r.height="".concat(n.height,"px"),r.color="#595959",r.fontStyle="normal",r.fontSize="1.2em",r.textAlign="center"),"bottom"!==t&&"top"!==t||(r.justifyContent="flex-start",r.alignItems="flex-start"),r}({dock:t,rect:n,styling:i});return gT.createElement("div",{dir:o,style:a},gT.createElement(L5,{dock:t,settings:r}))}({dock:n.dock,rect:e,settings:r,styling:i})}},R5=KU;_5=R5.createRoot,R5.hydrateRoot;var P5=V1({spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:14,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:600,fontWeightBold:700,htmlFontSize:14,fontFamily:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif",button:{fontWeight:600,fontSize:14,textTransform:"none"}},shape:{borderRadius:3},components:{MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"qcm-focus-visible"}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"qcm-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"116px",minWidth:"24px",fontSize:141,borderRadius:3,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transform:"translate3d(0,0,0)"},text:{padding:"8px 16px","&:active":{backgroundColor:"rgba(0, 0, 0, 0.1)"},"&.Mui-focusVisible":{boxShadow:"inset 0 0 0 2px ".concat("#177FE6")}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"}},variants:[]},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:14,height:"32px"}}},MuiListItemIcon:{styleOverrides:{root:{color:"#404040",minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:14,color:"#404040",lineHeight:"16px",fontWeight:600},secondary:{fontSize:12,color:"#737373",fontWeight:400,lineHeight:"16px"}}}}});function z5(e){var t={x:0,y:0,width:0,height:0,scaleRatio:{x:1,y:1},margin:{left:0,top:0}},n=e||{},r=n.x,i=n.y,o=n.width,a=n.height,s=n.scaleRatio,l=n.margin;return t.x=Number.isNaN(r)||void 0===r?t.x:r,t.y=Number.isNaN(i)||void 0===i?t.y:i,t.width=Number.isNaN(o)||void 0===o?t.width:o,t.height=Number.isNaN(a)||void 0===a?t.height:a,void 0!==s&&(t.scaleRatio.x=Number.isNaN(s.x)?t.scaleRatio.x:s.x,t.scaleRatio.y=Number.isNaN(s.y)?t.scaleRatio.y:s.y),void 0!==l&&(t.margin.left=Number.isNaN(l.left)?0:l.left,t.margin.top=Number.isNaN(l.top)?0:l.top),t}function F5(){var e={rendererBox:z5(),container:void 0,root:void 0},t=function(){var t,n;null===(t=e.root)||void 0===t||t.unmount(),null===(n=e.container)||void 0===n||null===(n=n.parentElement)||void 0===n||n.removeChild(e.container),e.container=void 0};return{size:function(t){return t&&(e.rendererBox=z5(t)),e.rendererBox},element:function(){return e.container},appendTo:function(t){return e.container||(e.container=document.createElement("div"),e.container.style.position="absolute",e.container.style["-webkit-font-smoothing"]="antialiased",e.container.style["-moz-osx-font-smoothing"]="antialiased",e.container.style.pointerEvents="none",e.root=_5(e.container)),t.appendChild(e.container),e.container},setKey:function(t){e.container&&e.container.setAttribute("data-key",t)},render:function(t){if(!e.container)return!1;var n=e.rendererBox,r=n.scaleRatio.x,i=n.scaleRatio.y;return e.container.style.left="".concat(Math.round(n.margin.left+n.x*r),"px"),e.container.style.top="".concat(Math.round(n.margin.top+n.y*i),"px"),e.container.style.width="".concat(Math.round(n.width),"px"),e.container.style.height="".concat(Math.round(n.height),"px"),e.container.style.transform="scale(".concat(r,", ").concat(i,")"),e.container.style.transformOrigin="top left",e.root.render(function(e){var t=e.nodes;return gT.createElement(gT.StrictMode,null,gT.createElement(k2,{theme:P5},t))}({nodes:t})),!0},findShapes:function(){return[]},itemsAt:function(){return[]},clear:function(){t()},destroy:function(){t()}}}const j5={getDefaultSettings:({size:e=10,fill:t="#999",alignment:n}={})=>({show:!0,type:"n-polygon",fill:t,stroke:"#000",strokeWidth:0,size:e,sides:3,startAngle:-90,alignment:n}),createOob({oob:e,dockValue:t,boxCenter:n,rendWidth:r,rendHeight:i,flipXY:o,symbol:a}){let s="x",l="y",u=r,c=i,d=t<.5?90:-90;return o&&(s="y",l="x",u=i,c=r,d=t<.5?180:0),a(Cg({},e,{[s]:n*u,[l]:c-Math.max(e.size/2,Math.min(t*c,c-e.size/2)),startAngle:d}))}};function B5({i:e,width:t,height:n,resolved:r,keys:i,flipXY:o,calcKey:a="box"}){let s,l=null,u=null;void 0!==r.major.settings.binStart?(l=r.major.items[e].binStart,u=r.major.items[e].binEnd,s=r.major.settings.binStart.scale):(s=r.major.settings.major.scale,l=s?r.major.items[e].major:0);let c=0;s?s.bandwidth?(c=s.bandwidth(),l-=c/2):c=u-l:c=1;const d=Cg({},{major:l,majorEnd:u},r.minor.items[e]);i.forEach((t=>{d[t]=r[t].items[e]}));const f=o?n:t,h=function({bandwidth:e,width:t,minWidthPx:n,maxWidthPx:r,maxMajorWidth:i}){const o=e>=0?1:-1;let a=Math.min(o*e*t,Number.isNaN(Number(r))?i:r/i);return a=Number.isNaN(Number(n))?a:Math.max(n/i,a),a*o}({bandwidth:c,width:d[a].width,minWidthPx:d[a].minWidthPx,maxWidthPx:d[a].maxWidthPx,maxMajorWidth:f}),p=(c-h)/2,m=p+d.major+h/2;return{item:d,boxCenter:m,boxWidth:h,boxPadding:p,rendWidth:t,rendHeight:n}}function H5({keys:e,data:t,defaultSettings:n,style:r,settings:i,width:o,height:a,resolver:s}){const l=Cg(!0,{},n||{},r||{}),u={major:"horizontal"===i.orientation?a:o,minor:"horizontal"===i.orientation?o:a},c=i.major;let d;d="object"==typeof c&&"object"==typeof c.ref&&void 0!==c.ref.start&&void 0!==c.ref.end?s.resolve({data:t,defaults:{start:0,end:1},scaled:u,settings:Cg(!0,{},{binStart:{scale:i.major.scale,ref:i.major.ref.start},binEnd:{scale:i.major.scale,ref:i.major.ref.end}})}):"object"==typeof c&&void 0!==c.binStart&&void 0!==c.binEnd?s.resolve({data:t,defaults:{start:0,end:1},scaled:u,settings:Cg(!0,{},{binStart:{scale:i.major.scale,ref:"binStart"},binEnd:{scale:i.major.scale,ref:"binEnd"}},i.major)}):s.resolve({data:t,scaled:u,defaults:{major:.5},settings:{major:i.major}});const f=i.minor||{};let h;const p={major:d,minor:s.resolve({data:t,defaults:{start:0,end:1},scaled:u,settings:Cg(!0,{},{start:{scale:f.scale,ref:"start"},end:{scale:f.scale,ref:"end"},min:{scale:f.scale,ref:"min"},max:{scale:f.scale,ref:"max"},med:{scale:f.scale,ref:"med"}},f)})};for(let n=0,r=e.length;n<r;n++)h=e[n],p[h]=s.resolve({data:t,defaults:l[h],settings:i[h],scaled:u});return p}const V5=["oob"];const $5={require:["chart","resolver","symbol"],defaultSettings:{settings:{size:10},data:{},style:{}},created(){this.state={}},preferredSize(){return this.settings.settings.size},render(){const{width:e,height:t}=this.rect,{dockValue:n}=this.settings.settings,r="horizontal"===this.settings.settings.orientation,{data:i,style:o,resolver:a,symbol:s}=this,l=H5({keys:V5,data:i,defaultSettings:{oob:j5.getDefaultSettings()},style:o,settings:this.settings.settings,width:e,height:t,resolver:a}),{settings:u,items:c}=l,d=function({width:e,height:t,flipXY:n,resolved:r,keys:i,symbol:o,dockValue:a,_calcItemRenderingOpts:s=B5}){const l=[],{items:u}=r.major;for(let c=0,d=u.length;c<d;c++){const{item:d,boxCenter:f,rendWidth:h,rendHeight:p}=s({i:c,width:e,height:t,resolved:r,keys:i,flipXY:n,calcKey:"oob"}),m=u[c].data,g=[];if(d.oob.show){g.push(j5.createOob({oob:d.oob,dockValue:a,boxCenter:f,rendWidth:h,rendHeight:p,flipXY:n,symbol:o}));const e={type:"container",data:m,collider:{type:"bounds"},children:g};l.push(e)}}return l}({items:c,settings:u,width:e,height:t,flipXY:r,resolved:l,keys:V5,symbol:s,dockValue:n});return d}},U5={size:25,hat:{show:!0,fill:"#999",stroke:"#000",strokeWidth:0,strokeLinejoin:"miter",width:1,maxWidthPx:void 0,minWidthPx:1,minHeightPx:1,alignment:0}},W5=["hat"];function Y5(e,t=!0){let n="";for(let t=0;t<e.length;t++){const r=e[t];n+=0===t?`M${r.x} ${r.y}`:`L${r.x} ${r.y}`,n+=" "}return t&&(n+="Z"),n}function K5({item:e,boxWidth:t,boxPadding:n,rendWidth:r,rendHeight:i,flipXY:o}){let a="x",s="y",l=r,u=i,c=e.hat.alignment||0;o&&(a="y",s="x",l=i,u=r,c=1-c);const d=(n+e.major)*l;let f=[{[a]:d,[s]:0+u},{[a]:d+t*c*l,[s]:8},{[a]:d+t*l,[s]:0+u},{[a]:d+t*l,[s]:0+u+10},{[a]:d,[s]:0+u+10}];const h=Cg({},e.hat,{type:"path",d:Y5(f)});f=[{[a]:d,[s]:0},{[a]:d+t*(1-c)*l,[s]:0+u-8},{[a]:d+t*l,[s]:0},{[a]:d+t*l,[s]:-10},{[a]:d,[s]:-10}];return[h,Cg({},e.hat,{type:"path",d:Y5(f)})]}const G5={require:["chart","resolver","symbol"],defaultSettings:{settings:{size:25},data:{},style:{hat:"$shape"}},created(){this.state={}},preferredSize(){return this.settings.settings.size},render(){const{width:e,height:t}=this.rect,n="horizontal"===this.settings.settings.orientation,{data:r,style:i,resolver:o}=this,a=H5({keys:W5,data:r,defaultSettings:U5,style:i,settings:this.settings.settings,width:e,height:t,resolver:o}),{settings:s,items:l}=a,u=function({width:e,height:t,flipXY:n,resolved:r,keys:i,_calcItemRenderingOpts:o=B5}){const a=[],{items:s}=r.major;for(let l=0,u=s.length;l<u;l++){const{item:u,boxWidth:c,boxPadding:d,rendWidth:f,rendHeight:h}=o({i:l,width:e,height:t,resolved:r,keys:i,flipXY:n,calcKey:"hat"}),p=s[l].data,m=[];u.hat.show&&m.push(...K5({item:u,boxWidth:c,boxPadding:d,rendWidth:f,rendHeight:h,flipXY:n}));const g={type:"container",data:p,collider:{type:"bounds"},children:m};a.push(g)}return a}({items:l,settings:s,width:e,height:t,flipXY:n,resolved:a,keys:W5});return u}};function X5(e,t,n,r){const i=function(t){const n=String(t);return e(n)};return i.ticks=()=>t.map((t=>{const o=i([t.data.value,r?n-1:0]),a=i([t.data.value,r?0:n-1])+e.bandwidth();return{position:(o+a)/2,label:t.label,data:t.data,start:o,end:a}})),i.bandwidth=()=>e.bandwidth(),i.data=()=>e.data(),i.domain=()=>e.domain(),i.pxScale=function(r){const i=e.pxScale(r);return i===e?this:X5(i,t,n)},i}function J5(e){const t=e.scale("band");e.scale("group-by-measure",(function(e={},n={},r={}){const i=t(e,n,r),o=i.domain(),a=i.ticks(),s=[],l=e.measureCount;return o.forEach(((e,t)=>{for(let t=0;t<l;++t)s.push(String([e,t]));s.push(`SPACER_${t}_SPACER`)})),s.splice(-1),i.domain(s),X5(i,a,l,e.invert)}))}function Q5(){const e=Sp();return e.use(lg),e.use(function(e){if("function"!=typeof e.interaction)return t=>{t.interaction("hammer",dg(e))};e.interaction("hammer",dg(Hammer))}(mg)),e.use((function(e){e.renderer("react",IY()),e.component("data-title",AY(e.renderer("svg")()))})),e.use(J5),e.renderer("react-qcm",F5),e.component("box-sliced-hat",G5),e.component("box-out-of-bounds",$5),e.component("disclaimer",I5),e.component("scrollbar",hX),e.component("scroll-hint",hS),e.component("reference-line-labels",mM),e.component("axis-overlay",qG.picassoComponents.axisOverlay),e.component("time-axis",qG.picassoComponents.timeAxis),e.scale("q-time-axis",qG.picassoScales.time),e}const Z5=()=>({version:"1.35.12",barGrouping:{grouping:"grouped"},color:{auto:!0,autoMinMax:!0,byDimDef:void 0,byMeasureDef:void 0,colorExpression:void 0,dimensionScheme:"12",expressionIsColor:!0,expressionLabel:"",formatting:{numFormatFromTemplate:!0,isCustomFormatted:void 0},measureMin:void 0,measureMax:void 0,measureScheme:"sg",mode:"primary",paletteColor:{index:6},persistent:!1,reverseScheme:!1,singleColor:void 0,useBaseColors:"off",useDimColVal:!0,useMeasureGradient:!0},components:[],dataPoint:{showLabels:!1,showSegmentLabels:!1,showTotalLabels:!0},dimensionAxis:{axisDisplayMode:"auto",continuousAuto:!0,dock:"near",label:"auto",maxVisibleItems:10,show:"all"},footnote:"",gridLine:{auto:!0,spacing:2},legend:{dock:"auto",show:!0,showTitle:!0},measureAxis:{autoMinMax:!0,dock:"near",max:10,min:0,minMax:"min",show:"all",spacing:1},orientation:"vertical",preferContinuousAxis:!0,qHyperCubeDef:{qDimensions:[],qMeasures:[],qInitialDataFetch:[{qWidth:17,qHeight:500}],qSuppressMissing:!0,qSuppressZero:!1},refLine:{refLines:[],dimRefLines:[]},scrollbar:"miniChart",scrollStartPos:0,showDetails:!0,showDisclaimer:!0,showMiniChartForContinuousAxis:!0,showTitles:!0,subtitle:"",title:"",tooltip:{auto:!0,hideBasic:!1,data:{qHyperCubeDef:void 0},chart:void 0,imageComponents:void 0}}),e3={CUSTOM:{EXPRESSION:"customTooltipExpression",TITLE:"customTooltipTitle",DESCRIPTION:"customTooltipDescription",QUARANTINE:"customTooltip",IMAGES:"customTooltipImages"},CHART:{CONTAINER_ID:"tooltipContainerId",STATE:"customTooltipSessionState",CHART_OBJECT_ID:"customTooltipSessionObjectId",CHART_PARENT_TYPE:"TooltipChartParent",CHART_CHILD_TYPE:"TooltipChart",STYLE:{small:"140px",medium:"200px",large:"340px"}}};function t3(e){const t=e.split("/");return"qmem:"===t[0]&&""===t[1]}const n3={getImageSize(e,t){let n;function r(){n&&(clearTimeout(n),n=null)}function i(e){const t=e;t.onload=null,t.onerror=null,r()}const o={small:50,medium:200,large:340,original:340};return new Promise((a=>{const s=new Image;s.referrerPolicy="no-referrer",s.onload=()=>{let e;const{height:n,width:l}=s,u=o[t]*(n>l?1:n/l),c=o[t]*(l>n?1:l/n);!n||!l||0===n&&0===l?(e={height:20,width:20,imageError:!0},i(s)):"original"===t?(e={height:Math.min(u,n),width:Math.min(c,l)},r()):(e={height:u,width:c},r()),a(e)},s.onerror=()=>{i(s),a({height:20,width:20,imageError:!0})},s.src=e,n=setTimeout((()=>{i(s),a({height:20,width:20,imageError:!0})}),3e3)}))}};async function r3(e,t,n){let r=e.ref.qStaticContentUrl.qUrl;const i=function(e){var t,n,r;let i,o,a,s,l,u;if(e&&(null!==(t=e.session)&&void 0!==t&&t.options||null!==(n=e.enigmaModel)&&void 0!==n&&null!==(n=n.session)&&void 0!==n&&n.sessionConfig||null!==(r=e.session)&&void 0!==r&&null!==(r=r.config)&&void 0!==r&&r.url)){var c;if(i=e.session.options||(null===(c=e.enigmaModel)||void 0===c?void 0:c.session.sessionConfig),!i){var d;i=null===(d=e.session)||void 0===d?void 0:d.config;const t=new URL(i.url);i.host=t.hostname,i.port=t.port,i.isSecure="wss:"===t.protocol}return u=void 0!==i.secure?i.secure:i.isSecure,o=u?"https://":"http://",a=i.host||"localhost",s=i.port?`:${i.port}`:"",l=i.prefix?i.prefix:"/","/"!==l[l.length-1]&&(l=`${l}/`),o+a+s+l}return""}(n);i&&(!function(e,t){const n=e.replace(t,"").replace(/^\.\.\//i,"/");n[0]}(r,i),r=r.replace(/"/g,'\\"'),r=r.replace(/'/g,"\\'"),r=function(e,t){return t+("/"===e[0]?e.substr(1):e)}(r,i));const{height:o,width:a,imageError:s}=await n3.getImageSize(r,t);return{src:r,size:t,height:o,width:a,imageError:s}}async function i3(e,t,n,r){var i,o,a;const{app:s,flags:l}=t,u=null===(i=e.layout)||void 0===i||null===(i=i.tooltip)||void 0===i?void 0:i.imageComponents;if(!u)return[];const[c]=u,d=c.size||"small",f=c.type||"media";let h=-1;for(let e=0;e<n.length;e++)if(n[e].cId===c.cId){h=e;break}const p=(null===(o=r.data)||void 0===o||null===(o=o.customTooltipAttrExps)||void 0===o?void 0:o.value)||[];let m;if(-1!==h&&p[h]&&(m=p[h]),"media"===f&&null!==(a=c.ref)&&void 0!==a&&null!==(a=a.qStaticContentUrl)&&void 0!==a&&a.qUrl)return r3(c,d,s);if("url"===f)return async function(e,t,n,r,i){let o,a=n.ref;if(i&&i.label&&(a=i.label),t.isEnabled("IMAGE_BUNDLE_LOAD")&&null!=e&&e.getImage&&t3(a))try{const t=`data:image/png;base64, ${await e.getImage(a)}`,{height:n,width:i,imageError:s}=await n3.getImageSize(t,r);o={src:t,size:r,height:n,width:i,imageError:s}}catch(e){}else{const{height:e,width:t,imageError:n}=await n3.getImageSize(a,r);o={src:a,size:r,height:e,width:t,imageError:n}}return o}(s,l,c,d,m);if(l.isEnabled("IMAGE_BUNDLE_LOAD")&&"field"===f&&m&&m.label){return async function(e,t,n,r){let i;const o=r.label,a=`qmem://${t.qFallbackTitle}/${o}`;if(t3(a))try{const t=await e.getImage(a);if(t){const e=`data:image/png;base64, ${t}`,{height:r,width:o,imageError:a}=await n3.getImageSize(e,n);i={src:e,size:n,height:r,width:o,imageError:a}}}catch(e){}return i}(s,n[h],d,m)}return[]}const o3={async addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){const i=t,o=[];for(let t=0;t<i.length;t++)o.push(i3(e,r,n,i[t]));const a=await Promise.all(o);for(let e=0;e<i.length;e++)i[e].data.customTooltipImages=[a[e]];return i},checkIfPromisesExist({customTooltipModel:e}){var t;const n=null===(t=e.layout)||void 0===t||null===(t=t.tooltip)||void 0===t?void 0:t.imageComponents;return!!n&&n.length>0}},a3={async handlePromises({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){let i=t;return i=await o3.addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}),i},checkIfPromisesExist:({customTooltipModel:e})=>o3.checkIfPromisesExist({customTooltipModel:e})};const s3=(e,t)=>{var n,r,i;const o=null==e||null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qDimensions,a=null==e||null===(r=e.qHyperCubeDef)||void 0===r?void 0:r.qMeasures,s=null==e||null===(i=e.qHyperCubeDef)||void 0===i?void 0:i.qInterColumnSortOrder,l=t;return{qInfo:{qType:e3.CHART.CHART_PARENT_TYPE,qId:e3.CHART.CHART_OBJECT_ID},qHyperCubeDef:{qDimensions:o,qMeasures:a,qInterColumnSortOrder:s,qInitialDataFetch:[{qWidth:0,qHeight:0}]},qStateName:l}},l3=e=>{var t;const n=null===(t=e.tooltip)||void 0===t||null===(t=t.chart)||void 0===t||null===(t=t.object)||void 0===t?void 0:t.refId;return{qInfo:{qType:e3.CHART.CHART_CHILD_TYPE},qExtendsId:n}};const u3={createContainer:({ctx:e,layout:t})=>{var n;if(!((null===(n=t.qHyperCube)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.length)<=0))return function(e,t){var n,r;const i=null!==(n=null===(r=t.tooltip)||void 0===r||null===(r=r.chart)||void 0===r||null===(r=r.style)||void 0===r?void 0:r.size)&&void 0!==n?n:"medium",o=e3.CHART.STYLE[i];return[{content:[e.h("div",{style:{display:"flex",width:o,height:o,backgroundColor:"#FFFFFF",borderRadius:"5px",padding:"2px",color:"#595959"},colspan:2,id:e3.CHART.CONTAINER_ID})],colspan:2,style:{"text-align":e.rtl?"right":"left","max-width":o,width:"100%"}},{}]}(e,t)},show:async({app:e,properties:t,selectedNodes:n,dimIndex:r,customTooltipModel:i,rtl:o})=>{var a;const s=i,l=null==t||null===(a=t.tooltip)||void 0===a||null===(a=a.chart)||void 0===a||null===(a=a.object)||void 0===a?void 0:a.refId;if(null!=s&&s.embed&&e.removeSessionAlternateState&&e.addSessionAlternateState&&l&&!(t.qHyperCubeDef.qDimensions.length<=0)){await u3.hide({app:e,customTooltipModel:i});try{await async function({app:e,properties:t,customTooltipModel:n}){const r=n,i=e3.CHART.STATE,o=t.qStateName;r.miniChartToken.alternateState||(r.miniChartToken.alternateState=i,await e.addSessionAlternateState(i,o),r.miniChartToken.alternateState=i)}({app:e,properties:t,customTooltipModel:i});const a=await async function({app:e,properties:t,customTooltipModel:n}){var r;const i=n;null!==(r=i.miniChartToken.sessionObj)&&void 0!==r&&r.id&&await e.destroySessionObject(i.miniChartToken.sessionObj.id);const o=e3.CHART.STATE,a=s3(t,o),s=await e.createSessionObject(a),l=l3(t);if(s.id!==e3.CHART.CHART_OBJECT_ID)return void e.destroySessionObject(s.id);i.miniChartToken.sessionObj=s;const u=await s.createChild(l);if(i.miniChartToken.sessionObj&&i.miniChartToken.sessionObj.id===s.id)return i.miniChartToken.model=u,u;e.destroySessionObject(s.id)}({app:e,properties:t,customTooltipModel:i});if(s.miniChartToken.alternateState&&s.miniChartToken.sessionObj&&a){var u,c,d,f;const e=n.length>0&&void 0!==(null===(u=n[0].data)||void 0===u?void 0:u.value)?[null===(c=n[0].data)||void 0===c?void 0:c.value]:[],a=void 0!==r?r:t.qHyperCubeDef.qDimensions.length-1;if(2===t.qHyperCubeDef.qDimensions.length&&void 0===r&&n.length>0){var h,p;const e=null!==(h=n[0].data.selectionOuterDimension)&&void 0!==h?h:n[0].data.selectionDimension;if(null!=e&&null!==(p=e.source)&&void 0!==p&&p.field){var m;const t=null==e||null===(m=e.source)||void 0===m?void 0:m.field.split("/"),n=t[t.length-1],r=void 0!==e.value?[e.value]:[];r.length>0&&void 0!==n&&s.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",Number(n),r,!1)}}e.length>0&&s.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",a,e,!1);const l=document.getElementById(e3.CHART.CONTAINER_ID),g={direction:o?"rtl":"ltr",isReadonly:!0,isPopover:!0,navigation:!1,selections:!1};s.miniChartToken.vis=await i.embed.render({element:l,model:s.miniChartToken.model,options:g,id:null===(d=s.miniChartToken.model)||void 0===d?void 0:d.id,type:null===(f=s.miniChartToken.model)||void 0===f?void 0:f.genericType})}}catch(t){await u3.hide({app:e,customTooltipModel:i})}}},hide:async({app:e,customTooltipModel:t})=>{const n=t;null!=n&&n.embed&&(u3.destroyVisualization({customTooltipModel:t}),await e.destroySessionObject(e3.CHART.CHART_OBJECT_ID),n.miniChartToken.sessionObj=void 0,await async function({app:e,customTooltipModel:t}){const n=t,r=e3.CHART.STATE;n.miniChartToken.alternateState=void 0,await e.removeSessionAlternateState(r)}({app:e,customTooltipModel:t}))},destroyVisualization:({customTooltipModel:e})=>{var t;const n=e;"function"==typeof(null===(t=n.miniChartToken)||void 0===t||null===(t=t.vis)||void 0===t?void 0:t.destroy)&&(n.miniChartToken.vis.destroy(),n.miniChartToken.vis=void 0)}};function c3(e){const t=e.qHyperCubeDef?e.qHyperCubeDef.qDimensions:e.qHyperCube.qDimensionInfo;if(t&&t.length>0)return t}function d3(){const{EXPRESSION:e,TITLE:t,DESCRIPTION:n,IMAGES:r}=e3.CUSTOM,i={};return i[e]=!0,i[t]=!0,i[n]=!0,i[r]=!0,i}function f3(e){const t=d3();return e.filter((e=>t[e.id]))}const h3={getNodes(e,t){const n=function(e,t){let n=0,r=0;e.center?(n+=e.center.x,r+=e.center.y):(n+=e.clientX,r+=e.clientY);const i=t.element.getBoundingClientRect();return{cx:n-i.left,cy:r-i.top}}(e,t);return t.shapesAt({x:n.cx,y:n.cy})},getDataNodes(e,t){let n,r=[];const i={container:{bar:!0,"bullet-axis":!0},circle:{"point-component":!0}};return t.forEach((t=>{var o,a,s,l;const u=null!==(o=null===(a=t.data)||void 0===a?void 0:a.selectionDimension)&&void 0!==o?o:t.data;if(!u||null!==(s=t.data)&&void 0!==s&&s.customTooltipAttrExps||i[t.type]){if(null!==(l=t.data)&&void 0!==l&&l.customTooltipAttrExps&&!t.data.customTooltipImages){const e=t;e.data.customTooltipImages=[],r.push(e)}}else{n||(n=[],Object.keys(i).forEach((t=>{n=n.concat(e.findShapes(t).filter((e=>e.data&&e.data.customTooltipAttrExps&&!e.data.customTooltipImages&&i[t][e.key])))})));const t=n.filter((e=>{var t,n;const r=null!==(t=null!==(n=e.data.stack)&&void 0!==n?n:e.data.selectionOuterDimension)&&void 0!==t?t:e.data.selectionDimension;return r&&r.value===u.value&&r.label===u.label}));t.length>0&&(r=r.concat(t[0]))}})),r},displayTooltip(e,t,{nodes:n,opts:r={},customTooltipModel:i,extractedNodes:o=[],hide:a}){if(i&&!a){const{layout:a,chart:s}=i,{attrExps:l}=h3.getAttrExprData(a);o.length||n.length?a3.handlePromises({customTooltipModel:i,nodes:h3.getDataNodes(s,o.length>0?o:n),attrExps:l,opts:r}).then((()=>{t.emit("show",e,n.length?{nodes:n}:void 0)})):t.emit("show",e,n.length?{nodes:n}:void 0)}else{var s;null!=i&&null!==(s=i.miniChartToken)&&void 0!==s&&s.alternateState&&u3.hide({app:r.app,customTooltipModel:i}),t.emit("hide")}},checkIfPromisesExist:({customTooltipModel:e})=>a3.checkIfPromisesExist({customTooltipModel:e}),getAttrExps(e,t){var n;const r=t,i=null!==(n=e.qHyperCubeDef)&&void 0!==n&&n.qDimensions?"qAttributeExpressions":"qAttrExprInfo";return r[i]||(r[i]=[]),r[i]},getAttrExprData(e){var t;let n=[],r="";const i=(null===(t=e.qHyperCube)||void 0===t?void 0:t.qDimensionInfo)||[];if(i.length>0){var o;const t=i.length-1;n=(null===(o=e.qHyperCube)||void 0===o||null===(o=o.qDimensionInfo)||void 0===o||null===(o=o[t])||void 0===o?void 0:o.qAttrExprInfo)||[],r=`qDimensionInfo/${t}/qAttrExprInfo`}return{attrExps:n,fieldPath:r}},quarantineCustomTooltipAttrs(e,t={}){var n;if(!(null===(n=e.qLayoutExclude)||void 0===n||null===(n=n.quarantine)||void 0===n?void 0:n[e3.CUSTOM.QUARANTINE])){!function(e,t){const n=t;let r=n.qLayoutExclude;r||(n.qLayoutExclude={quarantine:{}},r=n.qLayoutExclude),r.quarantine||(r.quarantine={}),r.quarantine[e3.CUSTOM.QUARANTINE]=[],e.forEach((e=>{r.quarantine[e3.CUSTOM.QUARANTINE].push(e)})),n.qLayoutExclude=r}(f3(t.qAttributeExpressions||[]),e)}},unquarantineCustomTooltipAttrs(e){var t;const n=e;(null===(t=e.qLayoutExclude)||void 0===t||null===(t=t.quarantine)||void 0===t?void 0:t[e3.CUSTOM.QUARANTINE])&&delete n.qLayoutExclude.quarantine[e3.CUSTOM.QUARANTINE]},setAttrsFromQuarantine(e,t){const n=c3(e);if(!n)return;const r=void 0!==t?t:n.length-1;if(!n[r])return;const i=this.getAttrExps(e,n[r]);if(0===f3(i).length){var o;const t=(null===(o=e.qLayoutExclude)||void 0===o||null===(o=o.quarantine)||void 0===o?void 0:o.customTooltip)||[],n=[...i,...t],a=e;a.qHyperCubeDef?a.qHyperCubeDef.qDimensions[r].qAttributeExpressions=n:a.qHyperCube.qDimensionInfo[r].qAttrExprInfo=n}},moveCustomTooltipAttrs(e,t={},n){let r=[];const i=c3(e)||[];[...i,t].forEach((e=>{const t=f3(e.qAttributeExpressions||[]);t.length>0&&(r=t)}));const o=d3(),a=i.map((e=>{const t=e,n=e.qAttributeExpressions||[];return t.qAttributeExpressions=n.filter((e=>!o[e.id])),t})),s=void 0!==n?n:a.length-1;a.length>0&&(a[s].qAttributeExpressions=a[s].qAttributeExpressions.concat(r));const l=e;e.qHyperCubeDef?l.qHyperCubeDef.qDimensions=a:l.qHyperCube.qDimensionInfo=a},addCallbackCustomTooltip(e){e.qHyperCubeDef.qDimensions.length>1?this.moveCustomTooltipAttrs(e):(this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e))},moveCallbackCustomTooltip(e,t){1===e.qHyperCubeDef.qDimensions.length&&(this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e)),e.qHyperCubeDef.qDimensions.length>1&&this.moveCustomTooltipAttrs(e,t)},removeCallbackCustomTooltip(e,t){e.qHyperCubeDef.qDimensions.length>0?this.moveCustomTooltipAttrs(e,t):this.quarantineCustomTooltipAttrs(e,t)},replaceCallbackCustomTooltip(e,t){e.qHyperCubeDef.qDimensions.length>1?this.moveCustomTooltipAttrs(e,t):(this.quarantineCustomTooltipAttrs(e,t),this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e))},shouldIgnoreDefaultRows(e){var t;return(null===(t=e.tooltip)||void 0===t?void 0:t.hideBasic)||0},DEBOUNCE_THRESHOLD:50,getFooterRow:(e,t)=>[{content:e,style:{"font-style":"italic","font-size":"12px","line-height":"16px",color:"rgba(255, 255, 255, 0.6)","text-align":t?"right":"left",direction:Xg.detectTextDirection(e)},colspan:2},{}],getImageRow(e,t){const n=Xg.detectTextDirection(e.src),r=[],i={style:{display:"block","margin-left":"auto","margin-right":"auto",overflow:"hidden",width:e.width,height:e.height}};if("original"===e.size||e.imageError){r.push(t.h("span",{style:{display:"inline-block",height:"100%","vertical-align":"middle"}}));const n=e.imageError?`${e.src}?${Math.random()}`:e.src;r.push(t.h("img",{style:{"max-width":e.width,"max-height":e.height,"vertical-align":"middle"},src:n,referrerpolicy:"no-referrer"})),i.style["text-align"]="center",i.style["white-space"]="nowrap"}else i.style["background-size"]="contain",i.style["background-repeat"]="no-repeat",i.style["background-position"]="center",i.style["background-image"]=`url('${e.src}')`;return[{content:[t.h("div",i,r),""],style:{"text-align":t.rtl?"right":"left",direction:n,"max-width":e.width},colspan:2},{}]}};function p3(e,t,n,r){var i;const o=(null===(i=t.qHyperCube)||void 0===i||null===(i=i[n])||void 0===i||null===(i=i[r])||void 0===i?void 0:i.qAttrExprInfo)||[],a=[],s=e.qSubNodes&&e.qSubNodes[r]?e.qSubNodes[r].qAttrExps:e.qAttrExps;return s?(o.forEach(((e,t)=>{const i=s.qValues&&s.qValues[t]?s.qValues[t]:void 0,o=void 0===i?"NaN":function(e,t){let n;switch(e.id){case e3.CUSTOM.EXPRESSION:n="NaN"===t.qNum||e.isCustomFormatted?void 0===t.qText?"NaN":t.qText:t.qNum;break;case e3.CUSTOM.TITLE:case e3.CUSTOM.DESCRIPTION:case e3.CUSTOM.IMAGES:n=void 0===t.qText?e.qFallbackTitle:t.qText;break;default:n="NaN"}return n}(e,i);a.push({source:{key:"qHyperCube",field:`${n}/${r}/qAttrExprInfo/${t}`},label:o,value:"value"})})),a):a}const m3={getNode(e,{dimensionCount:t}){if(!t||t<1)return;const n=t-1,r="qDimensionInfo";return{field:`${r}/${n}`,value:t=>p3(t,e,r,n)}}};const g3={getCustomAttrExps(e,t,n){var r;const i={customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]},o=(null===(r=t.data)||void 0===r||null===(r=r.customTooltipAttrExps)||void 0===r?void 0:r.value)||[];if(Number.isNaN(o))return i;return function(e,t,n,r){const i={[e3.CUSTOM.TITLE]:!0,[e3.CUSTOM.DESCRIPTION]:!0},{attrExps:o,fieldPath:a}=h3.getAttrExprData(e);return 0===t.length||0===o.length||""===a||o.forEach(((e,o)=>{const s=t[o];if(e.id===e3.CUSTOM.EXPRESSION&&s){const t=e.qFallbackTitle,i="NaN"===s.value||e.isCustomFormatted?s.value:n("qHyperCube").field(`${a}/${o}`).formatter()(s.value);r.customTooltipAttrExpsArr.push({label:t,value:i})}else if(i[e.id]&&s){const t="-"!==s.value&&"NaN"!==s.value?s.value:s.label;t&&"undefined"!==t&&r.customTooltipInfoAttrExpsArr.push({...e.id===e3.CUSTOM.TITLE&&{title:t},value:t,id:e.id})}})),r}(n,o.map((t=>Jg.getMeasure(e,t))),e,i)}};function y3({nodes:e,layout:t,dataset:n}){const r=function(e,t,n){const r=[];return e.forEach((e=>{r.push(g3.getCustomAttrExps(n,e,t))})),r}(e,t,n);return r.reduce(((e,t)=>({customTooltipAttrExpsArr:e.customTooltipAttrExpsArr.concat(t.customTooltipAttrExpsArr),customTooltipInfoAttrExpsArr:e.customTooltipInfoAttrExpsArr.concat(t.customTooltipInfoAttrExpsArr)})),{customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]})}function v3(e){const t=e3.CUSTOM.EXPRESSION,{qNumFormat:n,qLabel:r,qLabelExpression:i,cId:o}=e.qDef;return e.qLibraryId?{qLibraryId:e.qLibraryId,id:t,qNumFormat:n,qLabel:r,qLabelExpression:i,cId:o}:{qExpression:e.qDef.qDef,id:t,qNumFormat:n,qLabel:r,qLabelExpression:i,cId:o}}function b3(e){var t;const n=null===(t=e.qHyperCubeDef)||void 0===t?void 0:t.qDimensions;return n[n.length-1].qAttributeExpressions||[]}const x3={migrateProperties(e){var t,n;const r=Cg(!0,{},e),i=(null===(t=r.tooltip)||void 0===t||null===(t=t.data)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qMeasures)||[];let o=b3(r);return o=function(e,t){return t.concat(e.map((e=>v3(e))))}(i,o),function(e,t){var n;const r=null===(n=t.qHyperCubeDef)||void 0===n?void 0:n.qDimensions;r[r.length-1].qAttributeExpressions=e}(o,r),null===(n=r.tooltip)||void 0===n||delete n.data,r},getPatches(e){var t,n;const r=(null===(t=e.tooltip)||void 0===t||null===(t=t.data)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qMeasures)||[],i=(null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qDimensions.length)-1,o=function(e,t,n){let r=e.length;const i=[];return t.forEach((e=>{const t=v3(e),o=JSON.stringify(t);i.push({qPath:`/qHyperCubeDef/qDimensions/${n}/qAttributeExpressions/${r}`,qOp:"add",qValue:o}),r++})),i.push({qPath:"/tooltip/data",qOp:"remove"}),i}(b3(e),r,i);return o},checkForBackwardCompatibility:(e,t)=>(e.qMeasureInfo||[]).length>0&&t.length>0,updateProperties(e,t){const n=new Promise((n=>{var r,i,o;const a=(null===(r=t.qHyperCube)||void 0===r?void 0:r.qDimensionInfo)||[],s=(null===(i=t.tooltip)||void 0===i||null===(i=i.data)||void 0===i?void 0:i.qHyperCube)||{},l=null===(o=t.qMeta)||void 0===o||null===(o=o.privileges)||void 0===o?void 0:o.includes("update");e&&e.getEffectiveProperties&&this.checkForBackwardCompatibility(s,a)&&e.getEffectiveProperties().then((t=>{if(l){const r=this.migrateProperties(t);e.setProperties(r).then((()=>{e.app.clearUndoBuffer(),n(!0)}))}else{const r=this.getPatches(t);e.applyPatches(r,!0).then((()=>{e.app.clearUndoBuffer(),n(!0)}))}})),n(!1)}));return n}};var w3={attrExpr:x3},S3=7005;const M3=e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==S3},k3=e=>{if(e.qHyperCubeDef.qDimensions.length>1&&1===e.qHyperCubeDef.qMeasures.length){const t=e.qHyperCubeDef.qInterColumnSortOrder.indexOf(0);0!==t&&Lg.moveArrayElement(e.qHyperCubeDef.qInterColumnSortOrder,t,0)}},C3=(e,t)=>{t>10?1!==e.qHyperCubeDef.qInterColumnSortOrder[0]&&Lg.moveArrayElement(e.qHyperCubeDef.qInterColumnSortOrder,1,0):0!==e.qHyperCubeDef.qInterColumnSortOrder[0]&&Lg.moveArrayElement(e.qHyperCubeDef.qInterColumnSortOrder,1,0)},q3=e=>{if(!e.qHyperCubeDef)return;const t=e.qHyperCubeDef.qDimensions,n=e.qHyperCubeDef.qMeasures;1===t.length&&1===n.length&&(n[0].qSortBy.qSortByNumeric=-1,e.qHyperCubeDef.qInterColumnSortOrder.splice(0,e.qHyperCubeDef.qInterColumnSortOrder.length,1,0))},E3=(e,t)=>{const n=e.qHyperCubeDef.qDimensions,r=e.qHyperCubeDef.qMeasures;if(1===n.length&&1===r.length){const r=n[0];return r.qLibraryId?t.getDimension(r.qLibraryId).then((e=>e.getLayout())).then((t=>{if(t&&t.qDimInfos&&t.qDimInfos[0]){const n=t.qDimInfos[0].qCardinal;C3(e,n)}return r})):t.getField(r.qDef.qFieldDefs[0]).then((t=>t.getCardinal().then((t=>(C3(e,t),r)))),(()=>r))}return k3(e),Promise.resolve()};function D3(e){const t=e.qHyperCubeDef.qDimensions,n=e.qHyperCubeDef.qMeasures,{color:{mode:r}}=e;t.length>1&&e.color?jC(e,"color.persistent",!0):"byDimension"===r&&n.length>1?jC(e,"color.mode","byMultiple"):"byExpression"===r&&0===n.length?jC(e,"color.mode","primary"):0===t.length&&n.length>0&&(jC(e,"color.byMeasureDef",void 0),jC(e,"color.byDimDef",void 0),1===n.length&&"byExpression"!==r&&jC(e,"color.mode","primary"))}const T3=(e,t)=>{D3(t),Jy(e),h3.addCallbackCustomTooltip(t)},N3=e=>{D3(e)};function O3({translator:e}){return{dimensions:{min:0,max:e=>e>1?1:2,description(t,n,r,i){let o;const a=null!=i&&i.layout?i.layout.qHyperCube.qDimensionInfo.filter((e=>M3(e))).length:t.qHyperCubeDef.qDimensions.length;return r.isAutoChart&&n>a-1?o="Visualizations.Descriptions.Color":a>1&&0===n?"stacked"===t.barGrouping.grouping?o="Visualizations.Descriptions.Stack":(o="Visualizations.Descriptions.Group",t.qHyperCubeDef.qColumnOrder=[0,1,2]):o="Visualizations.Descriptions.Bars",e.get(o)},add:(e,t,n)=>(t.qHyperCubeDef.qDimensions.length>1&&"stacked"===t.barGrouping.grouping&&(t.qHyperCubeDef.qMode="K",t.qHyperCubeDef.qAlwaysFullyExpanded=!0),null!=n&&n.app?E3(t,n.app).then((()=>(T3(e,t),e))):(q3(t),T3(e,t),e)),move(e,t,n){const r=n.layout.qHyperCube.qDimensionInfo.filter((e=>M3(e))).length;r>1&&"stacked"===t.barGrouping.grouping&&(t.qHyperCubeDef.qMode="K",t.qHyperCubeDef.qAlwaysFullyExpanded=!0),k3(t),D3(t),h3.moveCallbackCustomTooltip(t,e)},remove(e,t){const n=t.qHyperCubeDef.qDimensions;D3(t),1===n.length&&(t.qHyperCubeDef.qMode="S"),h3.removeCallbackCustomTooltip(t,e)},replace(e,t,n,r){h3.replaceCallbackCustomTooltip(r,t)}},measures:{min:1,max:e=>e>1?1:15,description:()=>e.get("Visualizations.Descriptions.LengthBars"),add:(e,t,n)=>null!=n&&n.app?E3(t,n.app).then((()=>(e.qSortBy.qSortByNumeric=-1,N3(t),e))):(q3(t),N3(t),e),move(e,t){k3(t),D3(t)},remove(e,t){const n=t.qHyperCubeDef.qDimensions;D3(t),n.length>1&&"stacked"===t.barGrouping.grouping?(t.qHyperCubeDef.qMode="K",t.qHyperCubeDef.qAlwaysFullyExpanded=!0):1===n.length&&(t.qHyperCubeDef.qMode="S")}}}}function A3(e){return{properties:Z5(),data:{targets:[{path:"/qHyperCubeDef",...O3(e)}]}}}var _3={properties_dataPoints_labelmode_share:{id:"properties.dataPoints.labelmode.share",locale:{"en-US":"Share","zh-TW":"佔有率","zh-CN":"份额","tr-TR":"Pay","sv-SE":"Andel","it-IT":"Percentuale","es-ES":"Cuota","de-DE":"Anteil","pl-PL":"Udział","nl-NL":"Aandeel","ko-KR":"공유","pt-BR":"Percentual","fr-FR":"Part","ja-JP":"割合","ru-RU":"Доля"}},Tooltip_selections_locked:{id:"Tooltip.selections.locked",locale:{"en-US":"Selections on this dimension are locked","zh-TW":"已鎖定此維度上的選項","zh-CN":"相关维度的选择已锁定","tr-TR":"Bu boyuttaki seçimler kilitli","sv-SE":"Urval i den här dimensionen är låsta","it-IT":"Le selezioni in questa dimensione sono bloccate","es-ES":"Las selecciones de esta dimensión están bloqueadas.","de-DE":"Auswahlen sind für diese Dimension gesperrt","pl-PL":"Selekcje dotyczące tego wymiaru są zablokowane","nl-NL":"Selecties voor deze dimensie zijn vergrendeld","ko-KR":"이 차원의 선택은 잠겨 있습니다.","pt-BR":"Seleções estão bloqueadas nesta dimensão","fr-FR":"Sélections verrouillées pour cette dimension","ja-JP":"この軸での選択はロックされています","ru-RU":"Выборки для данного измерения заблокированы"}},Tooltip_dimensions_drilldown:{id:"Tooltip.dimensions.drilldown",locale:{"en-US":"Drill-down dimension","zh-TW":"向下探查維度","zh-CN":"下钻维度","tr-TR":"Detaya inme boyutu","sv-SE":"Hierarkisk dimension","it-IT":"Dimensione di drill-down","es-ES":"Dimensión jerárquica","de-DE":"Drilldown-Dimension:","pl-PL":"Wymiar hierarchiczny","nl-NL":"Drill-downdimensie","ko-KR":"드릴다운 차원","pt-BR":"Dimensão da hierarquia","fr-FR":"Descendre dans la hiérarchie de la dimension","ja-JP":"軸のドリルダウン","ru-RU":"Измерение с детализацией"}},Object_ErrorMessage_MissingDimension:{id:"Object.ErrorMessage.MissingDimension",locale:{"en-US":"Dimension not found","zh-TW":"找不到維度","zh-CN":"未找到维度","tr-TR":"Boyut bulunamadı","sv-SE":"Dimensionen hittades inte","it-IT":"Dimensione non trovata","es-ES":"No se ha encontrado la dimensión","de-DE":"Dimension nicht gefunden","pl-PL":"Wymiar nie został znaleziony","nl-NL":"Dimensie niet gevonden","ko-KR":"차원을 찾지 못했습니다.","pt-BR":"Dimensão não encontrada","fr-FR":"Dimension introuvable","ja-JP":"軸が見つかりません","ru-RU":"Измерение не найдено"}},Object_ErrorMessage_MissingMeasure:{id:"Object.ErrorMessage.MissingMeasure",locale:{"en-US":"Measure not found","zh-TW":"找不到量值","zh-CN":"未找到度量","tr-TR":"Hesaplama bulunamadı","sv-SE":"Måttet hittades inte","it-IT":"Misura non trovata","es-ES":"No se ha encontrado la medida","de-DE":"Kennzahl nicht gefunden","pl-PL":"Miara nie została znaleziona","nl-NL":"Meting niet gevonden","ko-KR":"측정값을 찾지 못했습니다.","pt-BR":"Medida não encontrada","fr-FR":"Mesure introuvable","ja-JP":"メジャーが見つかりません","ru-RU":"Мера не найдена"}},Object_Disclaimer_LimitedData:{id:"Object.Disclaimer.LimitedData",locale:{"en-US":"Currently showing a limited data set.","zh-TW":"目前顯示的是有限的資料集。","zh-CN":"当前正显示有限的数据集。","tr-TR":"Şu anda sınırlı bir veri kümesi gösteriliyor.","sv-SE":"Just nu visas en begränsad uppsättning data.","it-IT":"Attualmente viene visualizzata una serie di dati limitata.","es-ES":"Mostrando actualmente un conjunto limitado de datos.","de-DE":"Zurzeit wird nur ein beschränkter Datensatz angezeigt.","pl-PL":"Aktualnie przedstawiany jest ograniczony zestaw danych.","nl-NL":"Momenteel wordt een beperkte gegevensverzameling getoond.","ko-KR":"현재 제한된 데이터 집합을 표시하고 있습니다.","pt-BR":"Mostrando um conjunto de dados limitado.","fr-FR":"Affichage d'un ensemble de données limité pour l'instant.","ja-JP":"現在、限定的なデータ セットを表示しています。","ru-RU":"В настоящее время отображается ограниченный набор данных."}},Object_Disclaimer_OnlyNegativeOrZeroValues:{id:"Object.Disclaimer.OnlyNegativeOrZeroValues",locale:{"en-US":"The chart is not displayed because it contains only negative or zero values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含負值或零值。","zh-CN":"未显示图表,因为它仅包含负值或零值。","tr-TR":"Yalnızca negatif veya sıfır değerlerini içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det enbart innehåller negativa eller nollvärden","it-IT":"Il grafico non viene visualizzato poiché contiene solo valori negativi o uguali a zero.","es-ES":"El gráfico no se muestra porque sólo contiene valores negativos o valores cero.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur negative oder 0-Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wartości ujemne lub zerowe.","nl-NL":"De grafiek wordt niet weergegeven omdat het alleen negatieve waarden of nulwaarden bevat.","ko-KR":"음수 또는 zero 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não foi exibido, porque contém apenas valores negativos ou zero.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs négatives ou égales à zéro.","ja-JP":"チャートは負の値またはゼロ値しか含まれていないため、表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только отрицательные или нулевые значения."}},Object_Disclaimer_NegativeOrZeroValues:{id:"Object.Disclaimer.NegativeOrZeroValues",locale:{"en-US":"The data set contains negative or zero values that cannot be shown in this chart.","zh-TW":"資料集包含無法在此圖表中顯示的負值或零值。","zh-CN":"数据集中包含无法在此图表中显示的负值或零值。","tr-TR":"Veri kümesi, bu grafikte gösterilemeyen negatif veya sıfır değerlerini içeriyor.","sv-SE":"Datauppsättningen innehåller negativa värden eller nollvärden som inte kan visas i detta diagram.","it-IT":"La serie di dati contiene valori negativi o uguali a zero che non possono essere visualizzati in questo grafico.","es-ES":"El conjunto de datos contiene valores negativos o cero que no se pueden mostrar en este gráfico.","de-DE":"Die in den Datensätzen enthaltenen negativen oder 0-Werte können nicht in diesem Diagramm dargestellt werden.","pl-PL":"Zestaw danych zawiera wartości ujemne lub zerowe, których nie można przedstawić w tym wykresie.","nl-NL":"De gegevensverzameling bevat negatieve waarden of nulwaarden die niet kunnen worden weergegeven in deze grafiek.","ko-KR":"데이터 집합에 해당 차트에 표시할 수 없는 음수 값 또는 zero 값이 포함되어 있습니다.","pt-BR":"O conjunto de dados contém valores negativos ou iguais a zero que não podem ser mostrados neste gráfico.","fr-FR":"L'ensemble de données contient des valeurs négatives ou égales à zéro impossibles à afficher dans ce graphique.","ja-JP":"データ セットには、本チャートに表示できない負の値またはゼロ値が含まれています。","ru-RU":"Набор данных содержит отрицательные или нулевые значения, которые невозможно показать в этой диаграмме."}},Object_Disclaimer_DataRangeIncludingZero:{id:"Object.Disclaimer.DataRangeIncludingZero",locale:{"en-US":"The logarithmic scale has been replaced by a linear scale because the data range includes zero.","zh-TW":"對數刻度已遭線性刻度取代,因為資料範圍包含零。","zh-CN":"对数刻度已替换为线性刻度,因为该数据范围包括零。","tr-TR":"Veri aralığı sıfır değerini içerdiğinden, logaritmik ölçek yerine doğrusal ölçek kullanıldı.","sv-SE":"Den logaritmiska skalan har ersatts av en linjär skala eftersom dataintervallet innehåller värdet noll.","it-IT":"La scala logaritmica è stata sostituita da una scala lineare perché l'intervallo di dati include zero.","es-ES":"La escala logarítmica ha sido reemplazada por una escala lineal porque el rango de datos incluye cero.","de-DE":"Die logarithmische Skala wurde durch die lineare Skala ersetzt, weil der Datenbereich NULL enthält.","pl-PL":"Skala logarytmiczna została zastąpiona liniową, ponieważ zakres danych zawiera zero.","nl-NL":"De logaritmische schaal is vervangen door een lineaire schaal omdat het gegevensbereik nullen bevat.","ko-KR":"데이터 범위에 0이 포함되어 있으므로 로그 눈금이 선형 눈금으로 바뀌었습니다.","pt-BR":"A escala logarítmica foi substituída por uma escala linear, pois o intervalo de dados inclui zero.","fr-FR":"L'échelle logarithmique a été remplacée par une échelle linéaire, car la plage de données comprend la valeur zéro.","ja-JP":"データ範囲にゼロが含まれるため、Log スケールは Linear スケールで置換されています。","ru-RU":"Логарифмический масштаб заменен линейным масштабом, поскольку диапазон данных включает ноль."}},Object_Disclaimer_NoDataExist:{id:"Object.Disclaimer.NoDataExist",locale:{"en-US":"The selections generated no data for this chart.","zh-TW":"此選項無法產生任何適用於此圖表的資料。","zh-CN":"选择未生成此图表的数据。","tr-TR":"Seçimler bu grafik için hiç veri oluşturmadı.","sv-SE":"Urvalen genererade inga data för detta diagram.","it-IT":"Le selezioni non hanno generato dati per questo grafico.","es-ES":"Las selecciones no han generado datos para este gráfico.","de-DE":"Die Auswahlen haben für dieses Diagramm keine Daten generiert.","pl-PL":"Selekcje nie spowodowały wygenerowania danych dla tego wykresu.","nl-NL":"De selecties hebben geen gegevens voor de grafiek gegenereerd.","ko-KR":"선택 내용으로 해당 차트에 대한 데이터가 생성되지 않았습니다.","pt-BR":"As seleções não geraram dados para este gráfico.","fr-FR":"Les sélections n'ont pas généré de données pour ce graphique.","ja-JP":"このチャートには選択からデータが生成されませんでした。","ru-RU":"В результате выборок данные для этой диаграммы не созданы."}},Object_Disclaimer_OnlyNanData:{id:"Object.Disclaimer.OnlyNanData",locale:{"en-US":"The chart is not displayed because it contains only undefined values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含未定義的值。","zh-CN":"未显示图表,因为它仅包含未定义的值。","tr-TR":"Yalnızca tanımsız değerleri içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det enbart innehåller odefinierade värden.","it-IT":"Il grafico non è visualizzato poiché contiene solo valori non definiti.","es-ES":"El gráfico no se muestra porque solo contiene valores indefinidos.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur nicht definierte Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wartości niezdefiniowane.","nl-NL":"De grafiek wordt niet weergegeven omdat deze alleen ongedefinieerde waarden bevat.","ko-KR":"정의되지 않은 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não foi exibido, porque contém apenas valores não definidos.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs non définies.","ja-JP":"未定義の値しか含まれていないため、チャートは表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только неопределенные значения."}},Object_ChartTooltip_NMore:{id:"Object.ChartTooltip.NMore",locale:{"en-US":"+{0} more","zh-TW":"再加 {0} 個","zh-CN":"+{0} 个","tr-TR":"+{0} öğe daha","sv-SE":"+{0} till","it-IT":"Altre +{0}","es-ES":"+{0} más","de-DE":"+{0} mehr","pl-PL":"+ {0} więcej","nl-NL":"+ {0} meer","ko-KR":"+추가 {0}개","pt-BR":"+{0} mais","fr-FR":"+ {0} de plus","ja-JP":"さらに {0}","ru-RU":"+ дополнительно: {0}"}},Object_ChartTooltip_sumOfPositives:{id:"Object.ChartTooltip.sumOfPositives",locale:{"en-US":"Sum of positives","zh-TW":"正數總和","zh-CN":"正值总和","tr-TR":"Pozitif değerlerin toplamı","sv-SE":"Summan av positiva","it-IT":"Somma valori positivi","es-ES":"Suma de positivos","de-DE":"Summe positiver Werte","pl-PL":"Suma dodatnich","nl-NL":"Som positieven","ko-KR":"양수 합계","pt-BR":"Soma de positivos","fr-FR":"Sommes des valeurs positives","ja-JP":"正の合計","ru-RU":"Сумма положительных значений"}},Object_ChartTooltip_sumOfNegatives:{id:"Object.ChartTooltip.sumOfNegatives",locale:{"en-US":"Sum of negatives","zh-TW":"負數總和","zh-CN":"负值总和","tr-TR":"Negatif değerlerin toplamı","sv-SE":"Summan av negativa","it-IT":"Somma valori negativi","es-ES":"Suma de negativos","de-DE":"Summe negativer Werte","pl-PL":"Suma ujemnych","nl-NL":"Som negatieven","ko-KR":"음수 합계","pt-BR":"Soma de negativos","fr-FR":"Somme des valeurs négatives","ja-JP":"負の合計","ru-RU":"Сумма отрицательных значений"}},Object_ChartTooltip_ColorExpression:{id:"Object.ChartTooltip.ColorExpression",locale:{"en-US":"Color expression","zh-TW":"色彩運算式","zh-CN":"颜色表达式","tr-TR":"Renk ifadesi","sv-SE":"Färguttryck","it-IT":"Espressione colore","es-ES":"Expresión de color","de-DE":"Farbformel","pl-PL":"Wyrażenie koloru","nl-NL":"Kleuruitdrukking","ko-KR":"색상 표현식","pt-BR":"Expressão de cor","fr-FR":"Expression de couleur","ja-JP":"カラー表現","ru-RU":"Выражение для цвета"}},Object_Disclaimer_OnlyNanColor:{id:"Object.Disclaimer.OnlyNanColor",locale:{"en-US":"The data used to color this visualization only contains undefined values.","zh-TW":"用以定義此視覺化的色彩的資料只包含未定義的值。","zh-CN":"用于将该可视化着色的数据仅包含未定义的值。","tr-TR":"Bu görselleştirmeyi renklendirmek için kullanılan veriler yalnızca tanımlanmamış değerler içeriyor.","sv-SE":"Data som används för att färgsätta denna visualisering innehåller enbart odefinierade värden.","it-IT":"I dati utilizzati per colorare questa visualizzazione contengono solo valori non definiti.","es-ES":"Los datos utilizados para colorear esta visualización solo contienen valores indefinidos.","de-DE":"Die verwendeten Daten für die Farbgebung dieser Visualisierung enthalten undefinierte Werte.","pl-PL":"Dane używane do kolorowania tej wizualizacji zawierają wyłącznie niezdefiniowane wartości.","nl-NL":"De gegevens die worden gebruikt om deze visualisatie kleur te geven bevatten uitsluitend ongedefinieerde waarden.","ko-KR":"이 시각화에 색을 지정하는 데 사용된 데이터에는 정의되지 않은 값만 포함되어 있습니다.","pt-BR":"Os dados usados para colorir esse visualização contém somente valores indefinidos.","fr-FR":"Les données utilisées pour colorer cette visualisation ne comportent que des valeurs non définies.","ja-JP":"このビジュアライゼーションの色の割り当てに使用したデータには、未定義の値が含まれています。","ru-RU":"Данные, используемые для выбора цвета визуализации, содержат только неопределенные значения."}},properties_trendlines_types_average:{id:"properties.trendlines.types.average",locale:{"en-US":"Average","zh-TW":"平均值","zh-CN":"平均值","tr-TR":"Ortalama","sv-SE":"Medel","it-IT":"Media","es-ES":"Media","de-DE":"Durchschnitt","pl-PL":"Średnia","nl-NL":"Gemiddelde","ko-KR":"평균","pt-BR":"Média","fr-FR":"Moyenne","ja-JP":"平均値","ru-RU":"Среднее"}},properties_trendlines_types_linear:{id:"properties.trendlines.types.linear",locale:{"en-US":"Linear","zh-TW":"線性","zh-CN":"线性","tr-TR":"Doğrusal","sv-SE":"Linjär","it-IT":"Lineare","es-ES":"Lineal","de-DE":"Linear","pl-PL":"Liniowa","nl-NL":"Lineair","ko-KR":"선형","pt-BR":"Linear","fr-FR":"Linéaire","ja-JP":"線形","ru-RU":"Линейный"}},properties_trendlines_types_polynomial2:{id:"properties.trendlines.types.polynomial2",locale:{"en-US":"Second degree polynomial","zh-TW":"第二度多項式","zh-CN":"二次多项式","tr-TR":"İkinci derece polinom","sv-SE":"Polynomial, andra graden","it-IT":"Polinomio di secondo grado","es-ES":"Polinómica de segundo grado","de-DE":"Polynom zweiten Grades","pl-PL":"Wielomianowa drugiego stopnia","nl-NL":"Tweedegraadspolynoom","ko-KR":"2차 다항식","pt-BR":"Polinômio de segundo grau","fr-FR":"Polynomial du 2ème degré","ja-JP":"2 番目の角度の多項式近似","ru-RU":"Полиномиальный второй степени"}},properties_trendlines_types_polynomial3:{id:"properties.trendlines.types.polynomial3",locale:{"en-US":"Third degree polynomial","zh-TW":"第三度多項式","zh-CN":"三次多项式","tr-TR":"Üçüncü derece polinom","sv-SE":"Polynomial, tredje graden","it-IT":"Polinomio di terzo grado","es-ES":"Polinómica de tercer grado","de-DE":"Polynom dritten Grades","pl-PL":"Wielomianowa trzeciego stopnia","nl-NL":"Derdegraadspolynoom","ko-KR":"3차 다항식","pt-BR":"Polinômio de terceiro grau","fr-FR":"Polynomial du 3ème degré","ja-JP":"3 番目の角度の多項式近似","ru-RU":"Полиномиальный третьей степени"}},properties_trendlines_types_polynomial4:{id:"properties.trendlines.types.polynomial4",locale:{"en-US":"Fourth degree polynomial","zh-TW":"第四度多項式","zh-CN":"四次多项式","tr-TR":"Dördüncü derece polinom","sv-SE":"Polynomial, fjärde graden","it-IT":"Polinomio di quarto grado","es-ES":"Polinómica de cuarto grado","de-DE":"Polynom vierten Grades","pl-PL":"Wielomianowa czwartego stopnia","nl-NL":"Vierdegraadspolynoom","ko-KR":"4차 다항식","pt-BR":"Polinômio de quarto grau","fr-FR":"Polynomial du 4ème degré","ja-JP":"4 番目の角度の多項式近似","ru-RU":"Полиномиальный четвертой степени"}},properties_trendlines_types_exponential:{id:"properties.trendlines.types.exponential",locale:{"en-US":"Exponential","zh-TW":"指數","zh-CN":"指数","tr-TR":"Üstel","sv-SE":"Exponentiell","it-IT":"Esponenziale","es-ES":"Exponencial","de-DE":"Exponentiell","pl-PL":"Wykładnicze","nl-NL":"Exponentieel","ko-KR":"지수","pt-BR":"Exponencial","fr-FR":"Exponentiel","ja-JP":"指数","ru-RU":"Экспоненциальный"}},properties_trendlines_types_logarithmic:{id:"properties.trendlines.types.logarithmic",locale:{"en-US":"Logarithmic","zh-TW":"對數","zh-CN":"对数","tr-TR":"Logaritmik","sv-SE":"Logaritmisk","it-IT":"Logaritmica","es-ES":"Logarítmica","de-DE":"Logarithmisch","pl-PL":"Logarytmiczna","nl-NL":"Logaritmisch","ko-KR":"로그","pt-BR":"Logarítmico","fr-FR":"Logarithmique","ja-JP":"対数","ru-RU":"Логарифмический"}},properties_trendlines_types_power:{id:"properties.trendlines.types.power",locale:{"en-US":"Power","zh-TW":"乘冪","zh-CN":"幂","tr-TR":"Üs","sv-SE":"Potens","it-IT":"Potenza","es-ES":"Potencia","de-DE":"Potenz","pl-PL":"Potęgowa","nl-NL":"Macht","ko-KR":"거듭제곱","pt-BR":"Potência","fr-FR":"Puissance","ja-JP":"累乗","ru-RU":"Силовой"}},Common_Measures:{id:"Common.Measures",locale:{"en-US":"Measures","de-DE":"Kennzahlen","fr-FR":"Mesures","it-IT":"Misure","ja-JP":"メジャー","ko-KR":"측정값","es-ES":"Medidas","nl-NL":"Metingen","pl-PL":"Miary","pt-BR":"Medidas","sv-SE":"Mått","tr-TR":"Hesaplamalar","zh-CN":"度量","zh-TW":"量值","ru-RU":"Меры"}},Tooltip_ToggleOnLassoSelection:{id:"Tooltip.ToggleOnLassoSelection",locale:{"en-US":"Turn on lasso selection","de-DE":"Lasso-Auswahl aktivieren","fr-FR":"Activer la sélection au lasso","it-IT":"Attiva selezione lazo","ja-JP":"囲み選択をオンにする","ko-KR":"올가미 선택 켜기","es-ES":"Activar la selección de contorno","nl-NL":"Lassoselectie inschakelen","pl-PL":"Włącz zaznaczenie lasso","pt-BR":"Ativar seleção de laço","sv-SE":"Slå på lassourval","tr-TR":"Serbest seçimi aç","zh-CN":"开启套索选择方法","zh-TW":"開啟套索選取","ru-RU":"Включить выбор лассо"}},Tooltip_ToggleOffLassoSelection:{id:"Tooltip.ToggleOffLassoSelection",locale:{"en-US":"Turn off lasso selection","de-DE":"Lasso-Auswahl deaktivieren","fr-FR":"Désactiver la sélection au lasso","it-IT":"Disattiva selezione lazo","ja-JP":"囲み選択をオフにする","ko-KR":"올가미 선택 끄기","es-ES":"Desactivar la selección de contorno","nl-NL":"Lassoselectie uitschakelen","pl-PL":"Wyłącz zaznaczenie lasso","pt-BR":"Desativar seleção de laço","sv-SE":"Stäng av lassourval","tr-TR":"Serbest seçimi kapat","zh-CN":"关闭套索选择方法","zh-TW":"關閉套索選取","ru-RU":"Выключить выбор лассо"}}};function L3({env:t}){var n;const{flags:r}=t,i=null===(n=t.anything)||void 0===n||null===(n=n.sense)||void 0===n?void 0:n.isUnsupportedFeature,o=e.useTranslator();!function(e){if(e&&e.get&&e.add){const t="Object.Disclaimer.LimitedData";if(e.get(t)!==t)return;Object.keys(_3).forEach((t=>{e.add(_3[t])}))}}(t.translator);const a=e.useEmbed(),s=e.useTheme(),[l,u]=e.useState(),c=e.useDeviceType(),d=e.useAppLayout(),{qLocaleInfo:f}=d;return e.useEffect((()=>{u({translator:o,theme:s,embed:a,deviceType:c,localeInfo:f,isUnsupportedFeature:i,flags:r})}),[f,i,o.language(),s.name(),c]),l}function I3(){const[t]=e.useState((()=>BC())),[n]=e.useState((()=>function(e){var t=yM({},e),n={},r={},i=!1,o={get:function(e){return t[e]},set:function(e,o){var a=t[e];!i&&n[e]?t[e]=n[e](o,a):t[e]=o,!i&&r[e]&&r[e](t[e],a)},preventSet:function(e,t){i=!0,o.set(e,t),i=!1},intercept:function(e,t){n[e]=t},onChanged:function(e,t){r[e]=t}};return o}({viewRange:[0,1],scrollOffset:void 0})));return{viewCache:t,viewState:n}}const R3="REJECTED",P3=()=>{},z3=1e4,F3={MULTIPLIER:2,MINIMUM:20,MAXIMUM:200},j3=50,B3=10,H3=100;var V3={contains:function(e,t){if(!e)return!1;const{qArea:n}=e;return!!n&&(n.qLeft<=t.qLeft&&n.qLeft+n.qWidth>=t.qLeft+t.qWidth&&n.qTop<=t.qTop&&n.qTop+n.qHeight>=t.qTop+t.qHeight)},patcher:function({layoutService:e}){const t=t=>{t.qArea.qHeight=t.qMatrix.length,t.qArea.qWidth=e.meta.size.x};return t.should=e=>0===e.qArea.qHeight&&0===e.qArea.qWidth&&!!e.qMatrix.length,t},slicer:function(e,t){const n=Math.max(0,t.qHeight)-Math.abs(Math.min(0,t.qTop-e.qArea.qTop)),r=Math.max(0,t.qWidth)-Math.abs(Math.min(0,t.qLeft-e.qArea.qLeft)),i=Math.max(t.qTop,e.qArea.qTop),o=Math.max(t.qLeft,e.qArea.qLeft),a=Math.max(0,i-e.qArea.qTop),s=Math.min(i+n-e.qArea.qTop,e.qArea.qHeight),l=Math.max(0,o-e.qArea.qLeft),u=Math.min(o+r-e.qArea.qLeft,e.qArea.qWidth),c={qArea:{qHeight:s-a,qWidth:u-l,qTop:i,qLeft:o},qMatrix:[]};for(let t=a;t<s;t++)c.qMatrix.push(e.qMatrix[t].slice(l,u));return c},cacheWarden:function({bounds:e={width:0,height:0}}){return{release(t,n){const r=n.qTop-B3<=t.qTop,i=n.qLeft+n.qWidth+B3>=t.qLeft+t.qWidth,o=n.qTop+n.qHeight+B3>=t.qTop+t.qHeight,a=n.qLeft-B3<=t.qLeft;return r&&t.qTop>0||i&&t.qLeft+t.qWidth<e.width||o&&t.qTop+t.qHeight<e.height||a&&t.qLeft>0}}},request:function({definitionPath:e}){return t=>({method:"getHyperCubeData",args:[e,[t]]})}};var $3={contains:function(e,t){if(!e)return!1;const{qArea:n}=e;return!!n&&(n.qTop<=t.qTop&&n.qTop+n.qHeight>=t.qTop+t.qHeight)},patcher:function({layoutService:e}){const t=t=>{t.qArea.qHeight=t.qData[0].qSubNodes.length,t.qArea.qWidth=e.meta.size.x};return t.should=e=>0===e.qArea.qHeight&&0===e.qArea.qWidth&&!!e.qData.length,t},slicer:function(e,t){const n=Math.max(0,t.qHeight)-Math.abs(Math.min(0,t.qTop-e.qArea.qTop)),r=Math.max(t.qTop,e.qArea.qTop),i=Math.max(t.qLeft,e.qArea.qLeft),o=Math.max(0,r-e.qArea.qTop),a=Math.min(r+n-e.qArea.qTop,e.qArea.qHeight),s=e.qData[0].qUp+e.qArea.qHeight+e.qData[0].qDown-r-(a-o),l={qArea:{qHeight:a-o,qWidth:e.qArea.qWidth,qTop:r,qLeft:i},qData:[{...e.qData[0],qUp:r,qDown:s,qSubNodes:[]}]};for(let t=o;t<a;t++)l.qData[0].qSubNodes.push(e.qData[0].qSubNodes[t]);return l},cacheWarden:function({bounds:e={height:0}}){return{release(t,n){const r=n.qTop-B3<=t.qTop,i=n.qTop+n.qHeight+B3>=t.qTop+t.qHeight;return r&&t.qTop>0||i&&t.qTop+t.qHeight<e.height}}},request:function({definitionPath:e}){return t=>({method:"getHyperCubeStackData",args:[e,[t]]})}};var U3={contains:function(){return!1},patcher:function(){const e=e=>e;return e.should=()=>!1,e},slicer:function(e){return e},cacheWarden:function(){return{release:()=>!0}},request:function({definitionPath:e}){return t=>({method:"getHyperCubeTreeData",args:[e,[t]]})}};const W3="pages";const Y3="discretePan",K3=10;function G3({chart:e,actions:t,componentKey:n,dockService:r,rtl:i,scroller:o}){return{type:"Pan",key:"discrete:pan",options:{event:Y3,pointers:1,threshold:K3,enable(r,i){return this.started===Y3||!i||!(!t.scroll.enabled()||!o.enabled())&&e.componentsFromPoint({x:i.center.x,y:i.center.y}).some((e=>e.key===n))}},events:{[`${Y3}start`](e){e.preventDefault(),this.started=Y3;const t="horizontal"===r.meta.major.orientation?e.deltaX:e.deltaY;this.previousTotalDelta=t<0?-K3:K3},[`${Y3}move`](e){e.preventDefault();const t="horizontal"===r.meta.major.orientation,n=t?e.deltaX:e.deltaY,a=t&&i?-1:1,s=(n-this.previousTotalDelta)*a;this.previousTotalDelta=n,o.scroll(s)},[`${Y3}end`](e){e.preventDefault(),this.started=!1},[`${Y3}cancel`](e){e.preventDefault(),this.started=!1}}}}function X3({chart:e,componentKey:t,actions:n,scroller:r}){return function(i){if(!n.scroll.enabled()||!r.enabled())return;const[o]=e.componentsFromPoint({x:i.clientX,y:i.clientY}).filter((e=>e.key===t));if(!o)return;i.preventDefault();const a=Math.abs(i.deltaY)>Math.abs(i.deltaX)?i.deltaY:i.deltaX,s=Math.sign(-a)*H3;r.scroll(s)}}function J3({layoutService:e}){const t=function({layoutService:e}){const t=Math.floor(z3/(e.meta.dimensionCount+e.meta.measureCount));return function({width:e,height:n}){const r=Math.min(t,Math.max(F3.MAXIMUM,n));return{width:e,height:Math.max(F3.MINIMUM,Math.min(n*F3.MULTIPLIER,r))}}}({layoutService:e}),n={width:e.meta.size.x,height:e.meta.size.y};return function(e){const{width:r,height:i}=t({width:e.qWidth,height:e.qHeight}),o=i?Math.ceil((i-e.qHeight)/2):0,a=r?Math.ceil((r-e.qWidth)/2):0;return{qHeight:i?Math.min(i,n.height):e.qHeight,qWidth:r?Math.min(r,n.width):e.qWidth,qTop:i?Math.max(0,Math.min(e.qTop-o,n.height-i)):e.qTop,qLeft:r?Math.max(0,Math.min(e.qLeft-a,n.width-r)):e.qLeft}}}function Q3(e){let t,n;const r=i=>{t=i;const{method:o,args:a}=t.request;e[o](...a).then((e=>{if(t.canceled||n)return t.reject(R3),t=null,void(n&&(r(n),n=null));t.resolve(e[0]),t=null}))},i=e=>new Promise(((i,o)=>{const a={request:e,resolve:i,reject:o,canceled:!1,cancel:()=>{a.canceled=!0}};t?(e=>{n&&n.reject(R3),n=e})(a):r(a)}));return i.isProcessing=()=>!!t,i.hasQueued=()=>!!n,i.cancel=()=>{i.isProcessing()&&t.cancel(),i.hasQueued()&&(n.reject(R3),n=null)},i}const Z3={command:{update:()=>{}}};function e4({dataStore:e,composition:t,enigmaModel:n,layoutService:r,trendLineModel:i=Z3,definitionPath:o,processDataPage:a}){const{slicer:s,cacheWarden:l,request:u}=t,c=function({dataStore:e,slice:t,warden:n,expand:r,request:i,process:o,connectionless:a,processDataPage:s}){return(l,{onProcessing:u}={})=>{if(e.contains(l)){const r=e.getCurrent();if(a)return Promise.resolve(t(r,l));const i=n.release(r.qArea,l),s=o.isProcessing();if(!i&&s&&o.cancel(),!i||s)return Promise.resolve(t(r,l))}if(a)return Promise.resolve(e.getCurrent());o.isProcessing()&&u&&u();const c=r(l);return o(i(c)).then((n=>(s(n),e.add(n),t(n,l))))}}({dataStore:e,slice:s,warden:l({bounds:{width:r.meta.size.x,height:r.meta.size.y}}),expand:J3({layoutService:r}),request:u({definitionPath:o}),process:Q3(n),connectionless:r.meta.isSnapshot,processDataPage:a}),d=$C(((e,{onProcessing:t,onData:n})=>{c(e,{onProcessing:t}).then((e=>n(e))).catch((e=>{if(e!==R3)throw e}))}),j3);return function(e,{onProcessing:t=P3,onDataPage:n=P3}={}){d(e,{onProcessing:t,onData:e=>{r.setDataPages(e?[e]:[]),i.command.update(),n(e)}})}}var t4={inTotal:function({layoutService:e}){return e.meta.size.x},area:function({layoutService:e}){return{qTop:0,qHeight:1,qLeft:0,qWidth:e.meta.size.x}},scaleRange:function({layoutService:e,offsets:t,items:n,viewSize:r}){const{pixel:i}=t,o=e.getDataPages()[0],a=i/r;return[a,n.inView>=n.inTotal?a+1:a+o.qArea.qWidth/n.inView]}};var n4={inTotal:function({layoutService:e}){if(e.meta.isSnapshot&&!e.getLayoutValue("reducedHyperCube")){const[t]=e.getDataPages();if(t)return t.qArea.qHeight}return e.meta.size.y},area:function({layoutService:e,itemOffset:t,inView:n,areaBuffer:r}){const i=void 0===r?4:r,o=Math.max(0,Math.floor(t)-i/2);return{qTop:o,qHeight:Math.min(e.meta.size.y-o,Math.max(0,Math.ceil(n+i))),qLeft:0,qWidth:e.meta.size.x}},scaleRange:function({layoutService:e,offsets:t,items:n,viewSize:r}){const{pixel:i}=t,o=e.getDataPages()[0],a=r/n.inView,s=(i+o.qArea.qTop*a)/r;return[s,n.inView>=n.inTotal?s+1:s+o.qArea.qHeight/n.inView]}};function r4(e){const{groupSize:t,measureCount:n}=e.meta;return null!=t?t:n}function i4(e,t){const n=[];for(let r=0;r<e.length;r++){const i=t(e[r]);-1===n.indexOf(i)&&n.push(i)}return n.length}function o4(e){return i4(e.qMatrix,(e=>e[0].qElemNumber))-1}var a4={inTotal:function({layoutService:e}){const t=r4(e);return e.meta.size.y*t*(1+1/t)-1},area:function({layoutService:e,itemOffset:t,inView:n,areaBuffer:r}){const i=r4(e),o=void 0===r?i:r,a=t/(i+1),s=Math.max(0,Math.floor((t-a-o/2)/i));return{qTop:s,qHeight:Math.min(e.meta.size.y-s,Math.max(0,Math.ceil((n+o)/i+1))),qLeft:0,qWidth:e.meta.size.x}},scaleRange:function({layoutService:e,offsets:t,items:n,viewSize:r}){const i=r4(e),o=e.getDataPages()[0],a=r/n.inView,{pixel:s}=t,l=o4(o),u=o.qArea.qHeight*i+l,c=(s+(o.qArea.qTop*i+o.qArea.qTop)*a)/r;return[c,n.inView>=n.inTotal?c+1:c+u/n.inView]}};const s4=(e,t)=>t/(e.meta.size.y/e.meta.size.dimensions[0]+1),l4=(e,t)=>{const n={successful:!0,count:0};let r=Math.abs(Math.floor(t));const i=[];for(let t=0;t<=r;t++){if(!e[t])return n.successful=!1,n;const o=e[t][0].qElemNumber;-1===i.indexOf(o)&&(i.push(o),r--)}return n.count=i.length-1,n};function u4(e){return{itemOffset(t,n){if(0!==t.qArea.qTop)return s4(e,n);const r=l4(t.qMatrix,n);return r.successful?r.count:s4(e,n)},area(t,n,r){if(0!==t.qArea.qTop)return s4(e,n);return i4(t.qMatrix.slice(0,r.qTop+1),(e=>e[0].qElemNumber))-1}}}var c4={inTotal:function({layoutService:e}){return e.meta.size.y+e.meta.size.dimensions[0]-1},area:function({getDataPages:e,layoutService:t,itemOffset:n,inView:r}){const i=u4(t).itemOffset(e(),n),o=Math.max(0,Math.floor(n-i));return{qTop:o,qHeight:Math.min(t.meta.size.y-o,Math.max(0,Math.ceil(r+1))),qLeft:0,qWidth:t.meta.size.x}},scaleRange:function({getDataPages:e,layoutService:t,offsets:n,items:r,viewSize:i,upperBound:o}){const a=t.getDataPages()[0],s=i/r.inView,{item:l,pixel:u}=n,c=u4(t).area(e(),l,a.qArea),d=o4(a),f=a.qArea.qHeight+d,h=u===o?(r.inView-f)*s/i:(u+(a.qArea.qTop+c)*s)/i;return[h,r.inView>=r.inTotal?h+1:h+f/r.inView]}};function d4({chart:e,rect:t,dockService:n,itemWidths:r,axisKey:i,renderer:o,isGrouped:a,dimensionAxis:s,inTotal:l,isMajorLabelless:u,maxDataRows:c}){const{DEFAULT:d,SQUEEZE:f,LABELLESS:h}=r[n.meta.chart.mode],p="horizontal"===n.meta.major.orientation,{axisDisplayMode:m="auto",maxVisibleItems:g=10,label:y}=s,v=p?t.width:t.height,b=v/l>=f;switch(m){case"max":return Math.min(l,c);case"custom":return Math.min(g,c);default:return u?v/h:b?function({chart:e,isHorizontal:t,axisKey:n,renderer:r={},isGrouped:i,itemSize:o,label:a}){if(i||"auto"!==a&&"tilted"!==a)return!1;const s=e.component(n),{measureText:l}=r;if(!s||!l)return!0;const{fontFamily:u,fontSize:c,tiltAngle:d}=s.settings.settings.labels,{height:f}=l({fontFamily:u,fontSize:c,text:"M"});if(!t)return f>o;const h=(90-d)*(Math.PI/180);return f>Math.cos(h)*o}({chart:e,isHorizontal:p,axisKey:i,renderer:o,isGrouped:a,itemSize:f,label:y})?v/d:l:v/d}}function f4({chart:e,getRect:t,getDataPages:n,layoutService:r,dockService:i,getItemWidths:o,axisKey:a,renderer:s,areaBuffer:l,rtl:u}){const{inTotal:c,area:d,scaleRange:f}=function({layoutService:e}){const{isDimensionless:t,isGrouped:n,isGroupedByMeasure:r}=e.meta;return t?t4:n?r?a4:c4:n4}({layoutService:r}),h=()=>"horizontal"===i.meta.major.orientation?t().width:t().height,p=e=>e?h()/e:0,m=(e,t)=>-(e-t)*p(t);return{getItems(){const n=r.getLayoutValue("dimensionAxis"),l=c({layoutService:r});return{inTotal:l,inView:d4({chart:e,rect:t(),dockService:i,itemWidths:o(),axisKey:a,renderer:s,isGrouped:r.meta.isGrouped,dimensionAxis:n,inTotal:l,isMajorLabelless:"none"===n.show||"title"===n.show,maxDataRows:Math.floor(z3/(r.meta.dimensionCount+r.meta.measureCount))})}},getItemSize({items:e}){const{inView:t}=e;return p(t)},getOffsets({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t,i=Math.min(0,Math.max(e,m(n,r))),o=r?Math.abs(r*i/h()):0;return{start:{pixel:i,item:o},end:{item:Math.min(o+(r||0),n)}}},getUpperBound({items:e}){const{inTotal:t,inView:n}=e;return m(t,n)},getViewRange({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t;return function({viewSize:e,inTotal:t,inView:n,pixelOffset:r}){const i=e/n*t,o=Math.abs(r)/i;return[o,Math.min(1,o+e/i)]}({viewSize:h(),inTotal:n,inView:r,pixelOffset:e})},getArea:({itemOffset:e,items:t})=>d({getDataPages:n,layoutService:r,itemOffset:e,inView:t.inView,areaBuffer:l}),getScaleRange({offsets:e,items:t}){const o=f({getDataPages:n,layoutService:r,offsets:e,items:t,viewSize:h(),upperBound:m(t.inTotal,t.inView)});return"horizontal"===i.meta.major.orientation&&u?function(e){return[1-e[1],1-e[0]]}(o):o},validate:{offset({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t;return e<=0&&e>=m(n,r)}},convert:{itemToPixelOffset({itemOffset:e,items:t}){const{inView:n}=t,r=e*p(n);return Number.isFinite(r)?-r:0},relativeToPixelOffset({relativeOffset:e,items:t}){const{inTotal:n,inView:r}=t;return-e*(p(r)*n)}}}}function h4({chart:e,componentKey:t,state:n,dataStore:r,pageData:i,layoutService:o,dockService:a,itemWidths:s,getRect:l,axisKey:u,renderer:c,areaBuffer:d,viewState:f,rtl:h}){n.set("rect",{width:0,height:0}),n.set("itemWidths",{}),n.set("itemSize",0),n.set("items",{}),n.set("offsets",{}),n.set("finished",0),n.set("scaleRange",[0,1]);const p=f4({chart:e,getRect:()=>n.get("rect"),getDataPages:r.getCurrent,layoutService:o,dockService:a,getItemWidths:()=>n.get("itemWidths"),axisKey:u,renderer:c,areaBuffer:d,rtl:h}),m=()=>{const e=p.getItems();return n.set("items",e),e},g=({pixelOffset:e,items:t})=>{const r=p.getOffsets({pixelOffset:e,items:t});return n.set("offsets",r),r},y=e=>{const t=Date.now(),r=m(),a=g({pixelOffset:e,items:r}),s=p.getArea({itemOffset:a.start.item,items:r});if((e=>{const[{qArea:t}]=o.getDataPages();return!!t&&Object.keys(e).every((n=>e[n]===t[n]))})(s))return void((p.validate.offset({pixelOffset:e,items:r})||f.get("scrollOffset").start!==a.start.item)&&(n.set("finished",t),n.set("scaleRange",p.getScaleRange({offsets:a.start,items:r})),f.preventSet("viewRange",p.getViewRange({pixelOffset:a.start.pixel,items:r})),f.set("scrollOffset",{start:a.start.item,end:a.end.item})));f.preventSet("viewRange",p.getViewRange({pixelOffset:a.start.pixel,items:r}));const l=()=>{n.get("finished")>t||(n.set("finished",t),n.set("scaleRange",p.getScaleRange({offsets:a.start,items:r})),f.set("scrollOffset",{start:a.start.item,end:a.end.item}))};i(s,{onProcessing:l,onDataPage:l})};return{enabled(){const{inTotal:e,inView:t}=n.get("items");return e>t},itemSize:()=>n.get("itemSize"),scaleRange:()=>n.get("scaleRange"),initialize(){const r=e.component(t);if(!r)return Promise.resolve();n.set("rect","function"==typeof l?l():r.rect),n.set("itemWidths","function"==typeof s?s():s);const a=m();n.set("itemSize",p.getItemSize({items:a}));const u=(({items:e})=>{const t=o.getLayoutValue("scrollStartPos"),n=f.get("scrollOffset");if(void 0===n)return 1===t?p.getUpperBound({items:e}):0;if("number"==typeof n)return p.convert.itemToPixelOffset({itemOffset:n,items:e});const{start:r,end:i}=n,a=1===t&&i?i-e.inView:r;return p.convert.itemToPixelOffset({itemOffset:a,items:e})})({items:a}),c=g({pixelOffset:u,items:a});f.preventSet("viewRange",p.getViewRange({pixelOffset:c.start.pixel,items:a}));const d=p.getArea({itemOffset:c.start.item,items:a});return new Promise((e=>{i(d,{onDataPage:()=>{n.set("scaleRange",p.getScaleRange({offsets:c.start,items:a})),f.preventSet("scrollOffset",{start:c.start.item,end:c.end.item}),e()}})}))},scroll(e){const t=n.get("offsets").start.pixel+e;y(t)},scrollToRelative(e){const t=n.get("items"),r=p.convert.relativeToPixelOffset({relativeOffset:e,items:t});y(r)}}}function p4({chart:e,actions:t,componentKey:n,enigmaModel:r,layoutService:i,dockService:o,trendLineModel:a,itemWidths:s,viewState:l,rtl:u,options:{definitionPath:c="/qHyperCubeDef",getRect:d,axisKey:f,renderer:h,areaBuffer:p,processDataPage:m=(()=>{})}={}}){const g=BC(),y=function({qMode:e}){switch(e){case"S":default:return V3;case"K":return $3;case"T":return U3}}({qMode:i.getHyperCubeValue("qMode")}),v=function({state:e,contains:t}){return e.set(W3,[]),{add:t=>{const n=e.get(W3);n.length=0,n.push(t)},getCurrent:()=>e.get(W3)[0],getAll:()=>e.get(W3),contains:n=>t(e.get(W3)[0],n)}}({state:g,contains:y.contains});!function({layoutService:e,dataStore:t,composition:n}){const r=e.getDataPages()[0];if(!r)return;const i=n.patcher({layoutService:e});i.should(r)&&i(r),t.add(r)}({layoutService:i,dataStore:v,composition:y});const b=function({buffer:e}){return void 0===e?void 0:2*Math.round(e/2)}({buffer:p}),x=e4({dataStore:v,composition:y,enigmaModel:r,layoutService:i,trendLineModel:a,definitionPath:c,processDataPage:m}),w=h4({chart:e,componentKey:n,state:g,dataStore:v,pageData:x,layoutService:i,dockService:o,itemWidths:s,getRect:d,axisKey:f,renderer:h,areaBuffer:b,viewState:l,rtl:u}),S=function({layoutService:e,dataStore:t}){return function(n){const r=zC(n,`${e.refs.dataPages}`);r.length=0,r.push(t.getCurrent())}}({layoutService:i,dataStore:v}),M=function({chart:e,actions:t,componentKey:n,dockService:r,rtl:i,scroller:o}){return{gestures:[G3({chart:e,actions:t,componentKey:n,dockService:r,rtl:i,scroller:o})],native:{type:"native",events:{wheel:X3({chart:e,actions:t,componentKey:n,scroller:o})}}}}({chart:e,actions:t,componentKey:n,dockService:o,rtl:u,scroller:w});return{interactions:M,query:{getCanScroll:()=>w.enabled(),getItemSize:()=>w.itemSize(),getScaleRange:()=>w.scaleRange(),getCurrentDataPage:()=>v.getCurrent()},command:{initialize:()=>w.initialize(),scrollTo:e=>w.scrollToRelative(e),setSnapshotData:e=>S(e)}}}var m4="AVERAGE",g4="LINEAR",y4="POLYNOMIAL2",v4="POLYNOMIAL3",b4="POLYNOMIAL4",x4="EXPONENTIAL",w4="LOG",S4="POWER";function M4({dimValue:e,value:t,qTrendLine:n}){const{qType:r,qCoeff:i}=n,o={x:e,y:i[2]*t**2+i[1]*t+i[0]};switch(r){default:case y4:return o;case v4:return o.y+=i[3]*t**3,o;case b4:return o.y+=i[4]*t**4+i[3]*t**3,o}}var k4={average:function({dimValue:e,qTrendLine:t}){return{x:e,y:t.qCoeff[0]}},linear:function({dimValue:e,value:t,qTrendLine:n}){return{x:e,y:n.qCoeff[1]*t+n.qCoeff[0]}},polynomial2:M4,polynomial3:M4,polynomial4:M4,exponential:function({dimValue:e,value:t,qTrendLine:n}){return{x:e,y:Math.exp(n.qCoeff[0]+t*n.qCoeff[1])}},log:function({dimValue:e,value:t,qTrendLine:n}){return{x:e,y:n.qCoeff[1]+n.qCoeff[0]*Math.log(t)}},power:function({dimValue:e,value:t,qTrendLine:n}){return{x:e,y:10**(n.qCoeff[0]+n.qCoeff[1]*Math.log(t)*Math.LOG10E)}}};const C4=500;function q4(e,t){const n=k4[t.qType.toLowerCase()],r=Math.max(1,e/C4);let i=1/0,o=-1/0;for(let a=0;a<e;a+=r){const{y:e}=n({dimValue:null,value:a+1,qTrendLine:t});i=Math.min(e,i),o=Math.max(e,o)}return{min:i,max:o}}const E4=100;function D4(e){return k4[e.qType.toLowerCase()]}function T4(e,t){return e.meta.isContinuous?function(e,t){return{generate:(e,n,r)=>{const i=[],o=D4(e),{min:a,max:s}=t.get("zoom"),l=(s-a)/E4;if(l>0){const t=t=>{const a=o({dimValue:t,value:t,qTrendLine:e});a.layerId=n,a.measureIndex=r,a.dimValue=t,i.push(a)};let u=a;for(let e=a;e<=s;e+=l)t(e),u=e;u!==s&&t(s)}return i},calculate:(e,t)=>D4(e)({dimValue:t,value:t,qTrendLine:e}),findMinMax(e,t){const n=this.generate(t).map((({y:e})=>e));return{min:Math.min(...n),max:Math.max(...n)}}}}(0,t):e.meta.mode.K?function(e){return{generate:(t,n,r)=>{const i=[],o=e.getDataPages()[0],a=o.qData[0].qSubNodes,s=o.qArea.qTop,l=k4[t.qType.toLowerCase()];for(let e=0;e<a.length;e++){const o=a[e],u=l({dimValue:o.qElemNo,value:e+s+1,qTrendLine:t});u.layerId=n,u.measureIndex=r,u.dimValue=o.qText,i.push(u)}return i},findMinMax:q4}}(e):function(e){return{generate:(t,n,r)=>{const i=[],o=e.getDataPages()[0],a=o.qMatrix,s=o.qArea.qTop,l=k4[t.qType.toLowerCase()];for(let e=0;e<a.length;e++){const o=a[e][0],u=e+s+1,c=l({dimValue:o.qElemNumber,value:u,qTrendLine:t});c.layerId=n,c.measureIndex=r,c.dimValue=o.qText,i.push(c)}return i},calculate:(e,t,n)=>(0,k4[e.qType.toLowerCase()])({dimValue:n,value:t,qTrendLine:e}),findMinMax:q4}}(e)}var N4={TYPES:{AVERAGE:"properties.trendlines.types.average",LINEAR:"properties.trendlines.types.linear",POLYNOMIAL2:"properties.trendlines.types.polynomial2",POLYNOMIAL3:"properties.trendlines.types.polynomial3",POLYNOMIAL4:"properties.trendlines.types.polynomial4",EXPONENTIAL:"properties.trendlines.types.exponential",LOG:"properties.trendlines.types.logarithmic",POWER:"properties.trendlines.types.power"},STYLE:{DASHED:"properties.trendlines.style.dashed"},TYPE:"properties.trendlines.type",HEADER:"properties.trendlines",ADD_BUTTON:"properties.trendlines.button.add"},O4={color:"#f93f17",index:9};const{isDark:A4}=Xy,_4={x:NaN,y:NaN,layerId:NaN,measureIndex:NaN},L4=({layoutService:e,viewState:t,colorModel:n,chart:r,env:i,keys:{colorScale:o},isEnabled:a=(()=>!1)})=>{const{translator:s}=i,l=[_4],u=[],c=[],d=T4(e,t);e.getLayoutValue("qHyperCube.qMeasureInfo",[]).forEach(((e,t)=>{Array.isArray(e.qTrendLines)&&(u.push(...e.qTrendLines),c.push(...e.qTrendLines.map((()=>t))))}));const f=HC((e=>{const{style:t}=u[e]||{},i=n.settings();if(t.autoColor){if("measure"===i.mode){const t=c[e],n=r.scale(o)(t);return A4(n)?function(e){const t=Yy(e);return t.l<30?t.l+=15:t.l<50?t.l+=10:t.l+=5,t.toString()}(n):function(e){const t=Yy(e);return t.l-=5,t.toString()}(n)}return n.resolveUIColor(O4)}return t.paletteColor?n.resolveUIColor(t.paletteColor):"none"}));return{query:{hasTrendLines:()=>!!u.length&&a(),getData:()=>l,getStroke:f,getLineDash:e=>{const{style:t}=u[e]||{};return t.lineDash},getLabel:e=>(u[e]||{}).label,getType:e=>{const{qType:t}=u[e]||{};return s.get(N4.TYPES[t])},getMinMax:()=>{let t=1/0,n=-1/0;return u.forEach((r=>{const i=d.findMinMax(e.meta.size.y,r);t=Math.min(i.min,t),n=Math.max(i.max,n)})),{min:t,max:n}},getCalculatedValue:(e,t,n)=>{const r=u[e];return d.calculate(r,t,n)}},command:{update:()=>{l.length=0,u.forEach(((e,t)=>{const n=d.generate(e,t,c[t]);l.push(...n)}))}}}};var I4={source:"trend",extract:{field:"x",props:{minor:{field:"y"},layer:{field:"layerId"},measureIndex:{field:"measureIndex"},dimValue:{field:"dimValue"}}}};const R4=({meta:e})=>e.isContinuous?({scale:e,datum:t})=>e(t.value):e.isGroupedByMeasure?({scale:e,datum:t})=>e([t.value,t.measureIndex.value])+e.bandwidth()/2:({scale:e,datum:t})=>e(t.value)+e.bandwidth()/2,P4=(e,{layoutService:t,trendLineModel:n,dockService:r,animationsEnabled:i})=>{if(!n.query.hasTrendLines())return[];const o=(({majorScale:e,minorScale:t},{trendLineModel:n,layoutService:r,dockService:i,animationsEnabled:o})=>{const a=R4(r);return{key:"trend-lines",type:"line",layout:{dock:"center"},data:I4,settings:{connect:!0,orientation:i.meta.major.orientation,coordinates:{major:{scale:e,fn:a},minor:{scale:t},layerId:{ref:"layer"}},layers:{curve:"monotone",line:{strokeWidth:2,stroke:({datum:e})=>n.query.getStroke(e.layer.value),strokeDasharray:({datum:e})=>n.query.getLineDash(e.layer.value)}}},animations:{enabled:o,trackBy:yD.nonUpdatingNode.trackBy,compensateForLayoutChanges:yD.lines.compensateForLayoutChanges}}})(e,{trendLineModel:n,layoutService:t,dockService:r,animationsEnabled:i}),a=(({majorScale:e,minorScale:t,tooltipOverlay:n="trend-lines-tooltip-overlay"},{layoutService:r,dockService:i})=>{const o=R4(r),a="horizontal"===i.meta.major.orientation,s={scale:e,fn:o},l={scale:t,ref:"minor"};return{key:n,type:"point",layout:{dock:"center"},data:I4,settings:{x:a?s:l,y:a?l:s,opacity:0,size:1,sizeLimits:{maxPx:8,minPx:8}}}})(e,{layoutService:t,dockService:r});return[o,a]};function z4(e,t){const{getLabel:n,getType:r,getLineDash:i,getStroke:o}=t.query;return({node:t,resources:a})=>{const s={type:"icon",style:{stroke:o(t.data.layer.value),"min-width":"16px","vertical-align":"middle","stroke-dasharray":i(t.data.layer.value)}},l={content:[{content:n(t.data.layer.value),style:{"font-weight":"bold"}},{content:r(t.data.layer.value)}],style:{"min-width":"136px"}};return{title:t.data.dimValue.label,row:[s,l,{content:a.formatter(e.formatter)(t.data.minor.value)}]}}}const F4=16,j4=2;function B4(e,t){return Array.isArray(t.content)?e("div",{style:{display:"flex","flex-direction":"column"}},t.content.map((t=>e("span",{style:t.style,direction:Xg.detectTextDirection(t.content)},t.content)))):"icon"===t.type?function(e){const t=e("line",{x1:"0px",y1:`${F4}px`,x2:`${F4}px`,y2:"0px","stroke-width":"3px"});return e("svg",{xlms:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:`0 0 ${F4} ${F4}`},t)}(e):t.content}function H4(e,t){return({h:n,data:r,style:i})=>{const o=r[0].title,a=r.filter((e=>e.title===o)),s=function(e,t){const n=e("td",{colspan:3,style:{"font-weight":"bold"},direction:Xg.detectTextDirection(t)},t);return e("tr",{},n)}(n,o),l=[s];if(a.slice(0,j4).forEach((e=>{l.push(n("tr",{},function(e,{h:t,style:n}){return e.map((e=>{const r={style:{direction:"string"==typeof e.content?Xg.detectTextDirection(e.content):void 0,...n.cell||{},...e.style||{}},class:e.class};e.colspan&&(r.colspan=e.colspan);const i=B4(t,e);return t("td",r,i)}))}(e.row,{h:n,style:i})))})),r.length>j4){const i=r.length-j4;l.push(...function(e,t,n,r){const i=t?t.get("Object.ChartTooltip.NMore",r):`+${r} more`,o=Xg.detectTextDirection(i);return[e("tr",{},e("td",{style:{"background-image":"linear-gradient(transparent 8px, rgba(255, 255, 255, 0.4) 8px, rgba(255, 255, 255, 0.4) 9.2px, transparent 9.2px)",height:"17px"},colspan:3},"")),e("tr",{},e("td",{style:{"font-weight":"bold","text-align":n?"right":"left",direction:o},colspan:3},i))]}(n,e,t,i))}return l}}function V4(e,{trendLineModel:t,translator:n},r={}){if(!t.query.hasTrendLines())return!1;const{rtl:i}=r,o=Wg({key:e.tooltip,rtl:i});return Cg(!0,o,{settings:{extract:z4(e,t),content:H4(n,i),placement:"pointer",direction:r.rtl?"rtl":"ltr"}})}function $4(e,t){const n=t.element.getBoundingClientRect();return{x:(e.center?e.center.x:e.clientX)-n.left,y:(e.center?e.center.y:e.clientY)-n.top}}function U4(e,{chart:t,viewState:n,trendLineModel:r,layoutService:i,rtl:o}){const{isContinuous:a}=i.meta;let s={components:[{key:e.tooltipOverlay}],propagation:"stop"},l=e=>{const n=$4(e,t);return t.shapesAt(n,s)};if(a){const{getCalculatedValue:i}=r.query;s={components:[{key:"trend-lines"}],propagation:"stop"},l=(r,a)=>{const l=$4(r,t),u=t.shapesAt(function(e){return{cx:e.x,cy:e.y,r:3}}(l),s);if(u.length){const r=function(e,t,n,r){let i=(e.x-t.rect.computed.x)/t.rect.computed.width;i=r?1-i:i;const{min:o,max:a}=n.get("zoom");return o+(a-o)*i}(l,a,n,o),s=t.scale(e.majorInnerScale),c=(null!=s&&s.formatter?s.formatter():t.formatter({data:{fields:["qDimensionInfo/0"]}}))(r);u.forEach((e=>{e.data.dimValue.value=r,e.data.dimValue.label=c,e.data.minor.value=i(e.data.layer.value,r).y}))}return u}}return n=>{const r=t.component(e.tooltip);if(r&&(n=>t.componentsFromPoint({x:n.center?n.center.x:n.clientX,y:n.center?n.center.y:n.clientY}).some((t=>t.key===e.tooltipOverlay)))(n)){const e=l(n,r);return e.length?(r.emit("show",n,{nodes:e}),!0):(r.emit("hide"),!1)}return!1}}const W4=e=>{e.style.dashed?e.style.lineDash="8, 4":e.style.lineDash=""},Y4=e=>{W4(e),e.qMultiDimMode="Sum",e.qXColIx=0};function K4(e={}){const{translator:t,events:n={onGlobalChange:()=>{}},allowStackedByDimension:r=!1}=e;return{show:(e,t,{layout:n})=>!zg.dimensionless(n)&&!zg.groupedByDimension(n)&&(r||!zg.stackedByDimension(n)),type:"array",ref:"qTrendLines",titleTranslation:N4.HEADER,itemTitleRef:e=>{const n=typeof e.label;return"string"===n&&e.label?e.label:"object"===n?e.label.qStringExpression?e.label.qStringExpression.qExpr:e.label.qValueExpression.qExpr:t.get(N4.TYPES[e.qType])},max:8,allowAdd:!0,allowRemove:!0,allowMove:!1,addTranslation:N4.ADD_BUTTON,add:Y4,globalChange:e=>{const t=zC(e,"qHyperCubeDef.qMeasures",[]).reduce(((e,t)=>(Array.isArray(t.qTrendLines)&&e.push(...t.qTrendLines),e)),[]),r=(e=>!zC(e,"dimensionAxis.continuousAuto",!1)&&e.preferContinuousAxis)(e)?"Possible":"Never";t.forEach((e=>{e.qContinuousXAxis=r})),n.onGlobalChange(e,t)},items:{label:{ref:"label",type:"string",expression:"optional",translation:"Common.Label",defaultValue:""},type:{ref:"qType",type:"string",component:"dropdown",translation:N4.TYPE,options:[{value:m4,translation:N4.TYPES.AVERAGE},{value:g4,translation:N4.TYPES.LINEAR},{value:y4,translation:N4.TYPES.POLYNOMIAL2},{value:v4,translation:N4.TYPES.POLYNOMIAL3},{value:b4,translation:N4.TYPES.POLYNOMIAL4},{value:x4,translation:N4.TYPES.EXPONENTIAL},{value:w4,translation:N4.TYPES.LOG},{value:S4,translation:N4.TYPES.POWER}],defaultValue:m4},autoColor:{ref:"style.autoColor",type:"boolean",translation:"properties.colors",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}]},paletteColor:{ref:"style.paletteColor",translation:"properties.color",type:"object",component:"color-picker",dualOutput:!0,defaultValue:O4,show:e=>!e.style.autoColor},dashed:{ref:"style.dashed",translation:N4.STYLE.DASHED,type:"boolean",defaultValue:!0,change:W4}}}}var G4={};function X4(){X4.init.call(this)}G4.isObject=function(e){return"object"==typeof e&&null!==e},G4.isNumber=function(e){return"number"==typeof e},G4.isUndefined=function(e){return void 0===e},G4.isFunction=function(e){return"function"==typeof e};var J4=X4;X4.EventEmitter=X4,X4.prototype._events=void 0,X4.prototype._maxListeners=void 0,X4.defaultMaxListeners=10,X4.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},X4.prototype.setMaxListeners=function(e){if(!G4.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},X4.prototype.emit=function(e){var t,n,r,i,o,a;if(this._events||(this._events={}),"error"===e&&!this._events.error)throw(t=arguments[1])instanceof Error?t:Error('Uncaught, unspecified "error" event.');if(n=this._events[e],G4.isUndefined(n))return!1;if(G4.isFunction(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:for(r=arguments.length,i=new Array(r-1),o=1;o<r;o++)i[o-1]=arguments[o];n.apply(this,i)}else if(G4.isObject(n)){for(r=arguments.length,i=new Array(r-1),o=1;o<r;o++)i[o-1]=arguments[o];for(r=(a=n.slice()).length,o=0;o<r;o++)a[o].apply(this,i)}return!0},X4.prototype.addListener=function(e,t){var n;if(!G4.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,G4.isFunction(t.listener)?t.listener:t),this._events[e]?G4.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,G4.isObject(this._events[e])&&!this._events[e].warned)&&((n=G4.isUndefined(this._maxListeners)?X4.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,G4.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),G4.isFunction(console.trace)&&console.trace()));return this},X4.prototype.on=X4.prototype.addListener,X4.prototype.once=function(e,t){if(!G4.isFunction(t))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}return r.listener=t,this.on(e,r),this},X4.prototype.removeListener=function(e,t){var n,r,i,o;if(!G4.isFunction(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(i=(n=this._events[e]).length,r=-1,n===t||G4.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(G4.isObject(n)){for(o=i;o-- >0;)if(n[o]===t||n[o].listener&&n[o].listener===t){r=o;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},X4.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],G4.isFunction(n))this.removeListener(e,n);else if(Array.isArray(n))for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},X4.prototype.listeners=function(e){return this._events&&this._events[e]?G4.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},X4.listenerCount=function(e,t){return e._events&&e._events[t]?G4.isFunction(e._events[t])?1:e._events[t].length:0};var Q4=fg(J4);const Z4={shapes:[{type:"path",attrs:{d:"M15.9488039,5.20769129 C16.0487326,6.70662306 15.3492311,8.30548361 14.050157,9.30477145 C12.651154,10.5039169 10.8524359,10.8037032 8.85386017,10.4039881 L7.3549284,10.0042729 L5.75606786,9.70448659 C5.75606786,9.90434416 5.65613907,10.0042729 5.4562815,10.2041305 C5.05656637,10.6038456 4.55692244,10.8037032 4.05727852,10.8037032 C3.75749217,10.8037032 3.45770582,10.7037744 3.15791946,10.6038456 C3.05799068,10.903632 3.15791946,11.2034184 3.45770582,11.7030623 C5.05656637,14.0014243 3.85742095,15.9000712 3.75749217,16 L2.2585604,15.3004985 C2.2585604,15.2005697 2.95806189,14.0014243 1.95877405,12.6024213 C1.6589877,12.0028486 1.15934378,11.0035608 1.55905891,10.0042729 C1.6589877,9.80441537 1.75891648,9.6045578 1.95877405,9.40470024 C1.6589877,8.90505631 1.55905891,8.30548361 1.85884527,7.7059109 C1.55905891,7.40612455 1.25927256,7.1063382 1.15934378,6.70662306 C0.859557424,5.90719279 0.959486209,4.5081898 1.6589877,3.30904439 C1.95877405,2.6095429 2.55834676,2.0099702 3.15791946,1.51032628 C3.95734974,0.91075357 4.95663758,0.610967217 6.15578299,0.311180864 C9.05371774,-0.388320626 11.9516525,0.111323295 13.9502282,1.61025506 C15.1493736,2.50961412 15.8488751,3.80868831 15.9488039,5.20769129 Z M13.0508691,8.10562604 C13.8502994,7.40612455 14.3499433,6.40683671 14.3499433,5.30762008 C14.2500145,4.20840345 13.550513,3.40897318 12.9509403,2.90932926 C12.1515101,2.40968533 11.252151,2.0099702 10.1529344,1.81011263 C8.95378895,1.61025506 7.75464354,1.71018384 6.45556935,1.91004141 C4.75678001,2.30975655 3.65756338,3.00925804 3.05799068,4.10847467 C2.55834676,5.00783373 2.65827554,5.90719279 2.75820433,6.20697914 C2.75820433,6.30690792 2.85813311,6.40683671 3.05799068,6.40683671 C3.15791946,6.40683671 3.25784825,6.40683671 3.35777703,6.40683671 C3.45770582,6.40683671 3.45770582,6.40683671 3.45770582,6.40683671 L3.5576346,6.40683671 L3.65756338,6.40683671 C4.65685123,6.40683671 5.4562815,6.90648063 5.85599664,7.80583969 L5.85599664,8.00569726 C6.35564056,8.10562604 7.05514205,8.30548361 7.75464354,8.50534118 L9.25357531,8.90505631 C10.0530056,9.0049851 10.7525071,9.0049851 11.4520086,8.80512753 C12.0515813,8.70519875 12.5512252,8.40541239 13.0508691,8.10562604 Z"}}]};const e6=e=>(Object.keys(Q4.prototype).forEach((t=>{e[t]=Q4.prototype[t]})),Q4.init(e),e);function t6(){const[t]=e.useState({}),[n]=e.useState({}),r=function(){var t,n;const r=e.useLayout(),i=e.useTranslator(),o=!(null==r||null===(t=r.qSelectionInfo)||void 0===t||!t.qInSelections),a=!(null==r||null===(n=r.qHyperCube)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n||null===(n=n[0])||void 0===n||!n.qIsOneAndOnlyOne),[s,l]=e.useState(!1),[u,c]=e.useState(!1),[d,f]=e.useState({key:"lasso",enabled:()=>!1,active:()=>!1,action:()=>!1}),h=e=>{c("boolean"==typeof e?e:!u)};return e.useAction((()=>(f({key:"lasso",action:h,enabled:()=>s,active:()=>u}),{key:"lasso",label:i.get(u?"Tooltip.ToggleOffLassoSelection":"Tooltip.ToggleOnLassoSelection"),icon:Z4,hidden:!s||!o||a,active:u,action:h})),[o,a,u,s,i.language()]),{get:()=>d,setAllows:e=>{l(!!e)}}}(),[i,o]=e.useState();return e.useEffect((()=>{const e={};e.scroll={key:"scroll",isActive:!0,isEnabled:!0,action(){this.isActive=!this.isActive},active(){return this.isActive},enabled(){const{layoutService:e,discrete:r}=t;return n.allowScroll&&((null==e?void 0:e.meta.isContinuous)||(null==r?void 0:r.query.getCanScroll()))}},e.interact={key:"interact",isEnabled:!0,enabled:()=>n.allowInteract},e.tooltip={key:"tooltip",isActive:!0,isEnabled:!0,action(e){this.isActive=!!e},active(){return this.isActive},enabled:()=>n.allowTooltip},e.select={key:"select",isActive:!1,isEnabled:!0,action(){this.isActive=!this.isActive},active(){return this.isActive},enabled:()=>n.allowSelect},e.lasso=r.get(),Object.keys(e).forEach((t=>e6(e[t]))),o(e)}),[]),e.useEffect((()=>{i&&r&&(i.lasso={...i.lasso,...r.get()})}),[r]),{get:()=>i,setAllows:e=>{Object.assign(n,e),r.setAllows(null==e?void 0:e.allowSelect)},setContext:e=>{Object.assign(t,e)},destroy:()=>{Object.keys(i).forEach((e=>i[e].removeAllListeners()))}}}var n6={SPARK:{DEFAULT:7,SQUEEZE:7,LABELLESS:7},XSMALL:{DEFAULT:28,SQUEEZE:24,LABELLESS:20},SMALL:{DEFAULT:28,SQUEEZE:24,LABELLESS:20},MEDIUM:{DEFAULT:28,SQUEEZE:24,LABELLESS:20},FULL:{DEFAULT:28,SQUEEZE:24,LABELLESS:20}},r6={SCALE:{MAIN:{MINOR:"minor",MAJOR:"major",MAJOR_INNER:"majorInner",MAJOR_NUM:"majorNum",COLOR:"fill"},REDUCED:{MINOR:"miniMinor",MAJOR:"miniMajor",COLOR:"reducedFill"}},COMPONENT:{BAR:"bar",GHOST_BAR_OOB:"ghost-bar",STACK:"stack",BAR_AXIS:"bar-axis",GROUP_AXIS:"group-axis",BAR_OOB_MAX:"bar-oob-max",BAR_OOB_MIN:"bar-oob-min",STACK_TOTAL_BAR:"stack-total-bar",BASE_TOOLTIP:"tooltip",LEGEND_CAT_TOOLTIP:"legend-cat-tooltip",LEGEND_COLOR_CAT:"legend-color-cat",MEASURE_REF_LINE:"mes-ref-line",DIMENSION_REF_LINE:"dim-ref-line",MEASURE_REF_LINE_LABEL:"mes-ref-line-label",DIMENSION_REF_LINE_LABEL:"dim-ref-line-label",TREND_LINES_TOOLTIP:"trend-lines-tooltip",TREND_LINES_TOOLTIP_OVERLAY:"trend-lines-tooltip-overlay"},COLLECTION:{MAIN:"main-collection",MINI:"mini-collection",MINI_STACK:"mini-stack-collection",MINI_CONTINUOUS:"mini-continuous-collection",STACK_TOTAL:"stack-total-collection"},FORMATTER:{MINOR:"bar",COLOR:"fill"},STYLING:{AXIS:"axis"}};function i6({layout:e}){const t=Ag.canBeContinuous(e),n=zg.continuous(e),r=zg.dimensionless(e);return{canBeContinuous:t,isDiscrete:!n,isContinuous:n,isTime:Ag.isTime(n,e),isDimensionless:r,isSimple:zg.simple(e),isGrouped:zg.grouped(e),isGroupedByMeasure:zg.groupedByMeasure(e),isGroupedByDimension:zg.groupedByDimension(e),isStacked:zg.stacked(e),isStackedByDimension:zg.stackedByDimension(e),isStackedByMeasure:zg.stackedByMeasure(e),isSnapshot:zg.snapshot(e)}}const o6={extractDimsAndNode(e){const t=[];let n;return e.forEach((e=>{if(e.key===r6.COMPONENT.BAR){n=e;const r=zC(e,"data.selectionDimension",!1);r&&(t.push(r.label),r.label!==e.data.label&&t.push(e.data.label))}})),{nodeDims:t,node:n}}};function a6(e,t,n="/qHyperCubeDef"){return{fetch(){return function(e,t,n){return e.getHyperCubeReducedData(n.path,[n.rect],n.zoomLevel,n.filter).catch(jg).then((e=>{var n;const r=t.getHyperCubeValue("qMode"),i=t.getHyperCubeValue("qDimensionInfo"),o="K"===r&&i.length>1&&(null===(n=e[0])||void 0===n?void 0:n.qIsReduced),a=e.slice(),s=t.getHyperCubeValue("qMeasureInfo"),l=o?[]:t.getHyperCubeValue("qColumnOrder");return{reducedCube:{qDataPages:a,qDimensionInfo:i.slice(),qEffectiveInterColumnSortOrder:[1,0],qMeasureInfo:o?[s[0],s[0]]:s.slice(),qStackedDataPages:[],qMode:"S",qHasOtherValues:t.getHyperCubeValue("qHasOtherValues"),qSize:t.getHyperCubeValue("qSize"),qColumnOrder:l}}}))}(e,t,this.settings())},settings(){const e=t.getHyperCubeValue("qDimensionInfo"),r=t.meta.isStacked&&e.length>1?1:0,i=t.getHyperCubeValue("qMeasureInfo");return{path:n,rect:{qTop:0,qLeft:r,qWidth:e.length+i.length+r,qHeight:Math.min(2e3,1e4/(i.length+1))},zoomLevel:-1,filter:"D1"}}}}function s6({enigma:e,layoutService:t,viewModel:n,definitionPath:r,reducedHyperCubePath:i},o={}){const a=a6(e,t,r),s=function(e,t="reducedHyperCube"){return{fetch:()=>Promise.resolve({reducedCube:e.getLayoutValue(t)||e.getHyperCube()})}}(t,i),l=function(e){return{fetch:()=>{const t=e.getHyperCube(),n={...t,qDataPages:t.qDataPages.slice()};return Promise.resolve({reducedCube:n})}}}(t),u=function({layoutService:e}){const{isSnapshot:t,isStackedByDimension:n}=e.meta,r=e=>{e.qDimensionInfo.unshift({key:"dummy-patch-dimension"})};return r.should=e=>t&&n&&1===e.qDimensionInfo.length,r}({layoutService:t}),c={mode:{isReduced:!1}};return{fetch(){if(t.meta.isSnapshot)return s.fetch();if(t.meta.isContinuous)return l.fetch();if(!t.meta.isStacked){if(t.getHyperCubeValue("qSize.qcy",NaN)===t.getHyperCubeValue("qDataPages.0.qArea.qHeight",NaN))return l.fetch()}return a.fetch()},model:()=>c,update(e){var r;u.should(e)&&u(e),c.mode=Cg(c.mode,t.meta),c.mode.isReduced=e.qDataPages[0]&&e.qDataPages[0].qIsReduced,c.mode.isStackedByDimension=c.mode.isStacked&&(2===(r=e).qDimensionInfo.length&&2===r.qMeasureInfo.length),c.mode.isStackedByMeasure=c.mode.isStacked&&function(e){return e.qMeasureInfo.length>1&&1===e.qDimensionInfo.length}(e),c.fields={major:c.mode.isStackedByDimension?"qDimensionInfo/"+(e.qDimensionInfo.length-1):n.fields.major,majorGroup:n.fields.majorGroup,minor:c.mode.isStackedByDimension?e.qMeasureInfo.map(((e,t)=>`qMeasureInfo/${t}`)):n.fields.minor},c.scales={major:r6.SCALE.REDUCED.MAJOR,minor:r6.SCALE.REDUCED.MINOR},c.cube=e,o.qDataPages=e.qDataPages},fetchMinMaxData(){if(o.qDataPages)return Promise.resolve(o.qDataPages);let n=a.settings();const r="K"===t.getHyperCubeValue("qMode")?1:n.rect.qHeight;return n=Cg(!0,{},n,{rect:{qHeight:r}}),e.getHyperCubeReducedData(n.path,[n.rect],n.zoomLevel,n.filter).then((e=>e))},setSnapshotData(e){e.reducedHyperCube=c.cube}}}function l6({clearMinor:e,clearLegend:t,clearDiscrete:n,clearContinuous:r,selectionInfo:i}){t({componentName:"legendRangeBrush"}),e({eventName:"measureRange",componentName:"measureRangeBrush"}),n({eventName:"discreteRange",componentName:"discreteRangeBrush",brushName:!1}),"tap"!==i.event&&r({componentName:"continuousRangeBrush",brushName:!1})}const u6=e=>{const t=e.qDimensionInfo.length;for(let n=0;n<t;n++){const r=e.qDimensionInfo[n];if(!(r.qLocked||r.qCardinalities.qHypercubeCardinal<=1&&n<t-1))return n}};function c6({layout:e,defaultAuto:t}){return e.qHyperCube.qDimensionInfo.length>1?{mode:"byDimension",useDimColVal:!0,useBaseColors:"dimension",byDimDef:{activeDimensionIndex:1}}:e.qHyperCube.qMeasureInfo.length>1?{mode:"primary",useBaseColors:"measure",paletteColor:null}:t(e)}const d6={getMaxGlyphCount(e,t){const{qDimensionInfo:n}=e,{qApprMaxGlyphCount:r}=n[t];return r},getDimensionSize(e){var t;const n=null==e||null===(t=e.qCardinalities)||void 0===t?void 0:t.qHypercubeCardinal,{qLocked:r=0,qOption:i=0,qSelected:o=0}=(null==e?void 0:e.qStateCounts)||{};return[void 0,0].includes(n)?r+i+o:n}};function f6({picasso:t,chart:n,environment:r,viewState:i,viewCache:o}){const a=e.useStaleLayout(),s=e.useModel(),l=e.useApp(),u=e.usePlugins(),c=e.useSelections(),d=e.useOptions(),[f,h]=e.useState(),[p,m]=e.useState(),[g,y]=e.useState(),v=e.useConstraints(),b=t6();return e.useEffect((()=>{if(!n)return()=>{};const e=b.get(),t=function({chart:e,actions:t,selections:n}){const r=e.scale(r6.SCALE.MAIN.MAJOR),i=oD({chart:e,actions:t,selections:n,config:{allowSimultaneous:!0,brushRanges:!0,majorScale:r,selectionActions:{reset(){e.brushSelectionIncludeMax=void 0,t.lasso.active()&&t.lasso.action(!1)},clear:l6},custom:{getActions:()=>t},setBrushAliases({defaultFunc:e,brush:t}){e(),t.addKeyAlias("miniCube/qDimensionInfo/0","qHyperCube/qDimensionInfo/0"),t.addKeyAlias("miniCube/qDimensionInfo/1","qHyperCube/qDimensionInfo/1")}}});return i}({chart:n,actions:e,selections:c});return m(e),y(t),()=>{t.destroy(),b.destroy()}}),[n]),e.useEffect((()=>{if(!v)return;const e={allowScroll:!v.active,allowInteract:!v.active,allowTooltip:!v.passive,allowSelect:!v.select&&!v.active};b.setAllows(e)}),[v]),e.useEffect((()=>{if(!g||!r)return;const{theme:e,translator:c,localeInfo:f,flags:m,embed:y}=r,{direction:v="ltr"}=d,x=GC({source:a,metaAdditionsFn:i6,experimental:{filter:m.isEnabled("IM_1579_HIDE_DIM_MEA")}});g.setFilteredFields(x.meta.filteredFields);const w=function(e){return e.color.auto?e.qHyperCube.qDimensionInfo.length>1:"byDimension"===e.color.mode&&e.color.byDimDef&&e.color.byDimDef.activeDimensionIndex>-1}(x.getLayout())?GC({source:x.getLayout()}):void 0,S=function({layout:e,options:t={}}){return!(null==e||!e.snapshotData||t.freeResize)&&{width:e.snapshotData.content.size.w,height:e.snapshotData.content.size.h}}({layout:a,options:d}),M=function({layoutService:e,viewCache:t,flags:n,options:r}){const i={};return i.fields=function(e){const{meta:t}=e,n={majorGroup:t.isGroupedByDimension?"qDimensionInfo/0":void 0,majorStack:t.isStacked?"qDimensionInfo/0":void 0,major:t.isDimensionless?void 0:"qDimensionInfo/"+(t.dimensionCount-1),majors:e.getHyperCubeValue("qDimensionInfo").map(((e,t)=>`qDimensionInfo/${t}`)),minor:e.getHyperCubeValue("qMeasureInfo").map(((e,t)=>`qMeasureInfo/${t}`))};return n.majorNumeric=`${t.isStackedByDimension?n.majorStack:n.major}:numeric`,n}(e),i.selectionDimensionIdx=u6(e.getHyperCube()),i.isDimensionLocked=t=>e.getHyperCube().qDimensionInfo[t].qLocked,i.selectionDimensionProp=e=>void 0===i.selectionDimensionIdx||void 0!==e&&i.selectionDimensionIdx!==e?{}:{selectionDimension:{field:i.selectionDimensionIdx}},i.animations={enabled:()=>!1!==r.chartAnimations&&!!n.isEnabled("IM_1355_ANIMATIONS_BAR")&&!(i.animations.isPartialUpdating||i.animations.isSizeChanging||i.animations.hasSlicedHats)&&!yD.propertiesHaveChanged({viewCache:t,layout:e.getLayout()}),isPartialUpdating:!1,isSizeChanging:!1,hasSlicedHats:!1},i}({layoutService:x,viewCache:o,flags:m,options:d}),k=PC({chart:n,layoutService:x,config:{logicalSize:S,rtl:"rtl"===v},typeConfig:{type:"major-minor",fallback:"vertical",invert:!0}}),C=function({layoutService:e}){return EC({config:{args:{layoutService:e},disclaimers:{NoDataExist:!0,OnlyNanDataMeasure:!0,OnlyNanDataDimensionContinuous:!0,LimitedData:{condition:()=>{const{isContinuous:t,isTwoDimensional:n}=e.meta;if(!t||!n)return!1;const r=e.getLayout().qHyperCube.qDimensionInfo[1];return d6.getDimensionSize(r)>Ag.maxNumberOfLines}}}}})}({layoutService:x}),q=function(e){var t=e.theme,n=e.config,r=void 0===n?{}:n,i=r.id,o=r.resolve,a=void 0===o?[]:o,s=r.transform,l=void 0===s?[]:s,u=r.extend,c=void 0===u?[]:u,d={theme:t,matrix:fD(a),styles:void 0};return d.styles=pD({theme:t,id:i,transform:l,extend:c,matrix:d.matrix}),{getStyles:function(){return d.styles},getTheme:function(){return d.theme},setTheme:function(e){d.theme=e,d.styles=pD({theme:e,id:i,transform:l,extend:c,matrix:d.matrix})}}}({theme:e,config:{id:"barChart",transform:[["label.value.fontSize",e=>parseInt(e,10)]]}}),E=function({layoutService:e,themeService:t}){const n=t.getStyles(),r=t=>(e.getLayoutValue("components",[])||[]).find((e=>e.key===t));return{axis:{title:{getStyle:()=>{var e,t,i,o,a,s;return{fontFamily:null!==(e=null===(t=r("axis"))||void 0===t||null===(t=t.axis)||void 0===t||null===(t=t.title)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:n.axis.title.fontFamily,fontSize:null!==(i=null===(o=r("axis"))||void 0===o||null===(o=o.axis)||void 0===o||null===(o=o.title)||void 0===o?void 0:o.fontSize)&&void 0!==i?i:n.axis.title.fontSize,color:null!==(a=null===(s=r("axis"))||void 0===s||null===(s=s.axis)||void 0===s||null===(s=s.title)||void 0===s||null===(s=s.color)||void 0===s?void 0:s.color)&&void 0!==a?a:n.axis.title.color}}},label:{getStyle:()=>{var e,t,i,o,a,s;return{fill:null!==(e=null===(t=r("axis"))||void 0===t||null===(t=t.axis)||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.name)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:n.axis.label.name.color,fontSize:null!==(i=null===(o=r("axis"))||void 0===o||null===(o=o.axis)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.name)||void 0===o?void 0:o.fontSize)&&void 0!==i?i:n.axis.label.name.fontSize,fontFamily:null!==(a=null===(s=r("axis"))||void 0===s||null===(s=s.axis)||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.name)||void 0===s?void 0:s.fontFamily)&&void 0!==a?a:n.axis.label.name.fontFamily}}}},legend:{title:{getStyle:()=>{var e,t,i,o,a,s;return{fontFamily:null!==(e=null===(t=r("legend"))||void 0===t||null===(t=t.legend)||void 0===t||null===(t=t.title)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:n.legend.title.fontFamily,fontSize:null!==(i=null===(o=r("legend"))||void 0===o||null===(o=o.legend)||void 0===o||null===(o=o.title)||void 0===o?void 0:o.fontSize)&&void 0!==i?i:n.legend.title.fontSize,color:null!==(a=null===(s=r("legend"))||void 0===s||null===(s=s.legend)||void 0===s||null===(s=s.title)||void 0===s||null===(s=s.color)||void 0===s?void 0:s.color)&&void 0!==a?a:n.legend.title.color}}},label:{getStyle:()=>{var e,t,i,o,a,s;return{fontFamily:null!==(e=null===(t=r("legend"))||void 0===t||null===(t=t.legend)||void 0===t||null===(t=t.label)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:n.legend.label.fontFamily,fontSize:null!==(i=null===(o=r("legend"))||void 0===o||null===(o=o.legend)||void 0===o||null===(o=o.label)||void 0===o?void 0:o.fontSize)&&void 0!==i?i:n.legend.label.fontSize,color:null!==(a=null===(s=r("legend"))||void 0===s||null===(s=s.legend)||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.color)||void 0===s?void 0:s.color)&&void 0!==a?a:n.legend.label.color}}}},label:{getStyle:()=>{var e,t,i,o,a,s,l,u;return{fill:null!==(e=null===(t=r("label"))||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.value)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:n.label.value.color,useContrastColor:null===(i=null===(o=r("label"))||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o.useContrastColor)||void 0===i||i,fontSize:null!==(a=null===(s=r("label"))||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.value)||void 0===s?void 0:s.fontSize)&&void 0!==a?a:n.label.value.fontSize,fontFamily:null!==(l=null===(u=r("label"))||void 0===u||null===(u=u.label)||void 0===u||null===(u=u.value)||void 0===u?void 0:u.fontFamily)&&void 0!==l?l:n.label.value.fontFamily}}}}}({layoutService:x,themeService:q}),D=qG.model({model:s,layoutService:x,viewCache:o,viewState:i}),T=s6({enigma:s,layoutService:x,viewModel:M});!function({layoutService:e,viewState:t,viewStateOptions:n={}}){const r=e.meta.isSnapshot?e.getLayoutValue("snapshotData.content.chartData",{}):n;t.preventSet("scrollOffset",r.scrollOffset),t.preventSet("legendScrollOffset",r.legendScrollOffset||0),r.zoom&&t.preventSet("zoom",r.zoom)}({layoutService:x,viewState:i,viewStateOptions:null==d?void 0:d.viewState});const N=function({app:e,model:t,translator:n,picasso:r,localeInfo:i,theme:o,continuousDataModel:a,layoutService:s,legendLayoutService:l,reducedDataModel:u}){const{isContinuous:c,isStacked:d}=s.meta,f={main:void 0,mini:{getScales:()=>({}),getColor:()=>e=>e,getDatumProps:()=>({}),getAuxiliarySettings:()=>{}}};return{initialize:()=>{const h=[],{isReduced:p}=u.model().mode,m=c||p||d,g=!c&&(p||d)&&l?l.getHyperCube():void 0,y=g?"legendCube":void 0;return f.main=SC({app:e,model:t,translator:n,picasso:r,layoutService:s,config:{localeInfo:i,auto:c6,key:r6.SCALE.MAIN.COLOR},createConfig:()=>({hc:m?g||s.getHyperCube():u.model().cube,source:m?y:"miniCube",theme:o})}),h.push(f.main.initialize()),c&&(f.mini=SC({app:e,model:t,translator:n,picasso:r,layoutService:s,config:{localeInfo:i,auto:c6,key:r6.SCALE.REDUCED.COLOR},createConfig:()=>({layout:a.getInitialLayout(),hc:a.getInitialCube(),source:"miniCube",theme:o})}),h.push(f.mini.initialize())),Promise.all(h)},getMain:()=>f.main,getMini:()=>f.mini}}({picasso:t,model:s,app:l,translator:c,localeInfo:f,theme:e,continuousDataModel:D,layoutService:x,legendLayoutService:w,reducedDataModel:T}),O=L4({layoutService:x,viewState:i,colorModel:{settings:()=>N.getMain().getSettings(),resolveUIColor:e=>N.getMain().getPaletteColor(e)},chart:n,env:r,keys:{colorScale:r6.SCALE.MAIN.COLOR},isEnabled:()=>!x.meta.isGroupedByDimension&&(!x.meta.isStackedByDimension||m.isEnabled("TRENDLINES_STACKED_DIM"))&&!x.meta.isDimensionless});w3.attrExpr.updateProperties(s,a);const A=function({layout:e,app:t,picasso:n,model:r,chart:i,translator:o,localeInfo:a,embed:s}){return{layout:e,app:t,picasso:n,model:r,chart:i,translator:o,localeInfo:a,useCustomTooltip:e.tooltip&&!e.tooltip.auto,utils:h3,miniChartToken:{},embed:s}}({layout:a,app:l,model:s,picasso:t,chart:n,translator:c,localeInfo:f,embed:y,extractDimsAndNode:o6.extractDimsAndNode});let _;x.meta.isDiscrete&&(_=p4({chart:n,actions:p,componentKey:r6.COMPONENT.BAR,enigmaModel:s,layoutService:x,dockService:k,trendLineModel:O,itemWidths:n6,viewState:i,rtl:"rtl"===v,options:{axisKey:r6.COMPONENT.BAR_AXIS,renderer:t.renderer("svg")()}}));const L=DD({layoutService:x,discreteModel:_}),I=function(e){return{layout:e.getLayout(),keys:{SCALE:{MAIN:{MINOR:r6.SCALE.MAIN.MINOR,MAJOR:r6.SCALE.MAIN.MAJOR}},COMPONENT:{BAR:r6.COMPONENT.BAR,BAR_AXIS:r6.COMPONENT.BAR_AXIS,Y_AXIS:"y-axis",MEASURE_TITLE:"measure-title",DIMENSION_TITLE:"dimension-title"},COLLECTION:{MAIN:r6.COLLECTION.MAIN}}}}(x),R=function(e){var t=e.picassoInstance,n=e.plugins,r=e.pluginArgs,i=void 0===r?{}:r,o={initialized:!1,definitions:[]};return{initialize:function(){return wM(vM().mark((function e(){var r,a,s,l;return vM().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!o.initialized){e.next=2;break}return e.abrupt("return");case 2:return a=Promise.all(n.filter((function(e){return"custom-component"===e.info.type})).map(function(){var e=wM(vM().mark((function e(n){var r;return vM().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.info.componentName){e.next=2;break}throw new Error("plugin-service: Custom component is missing componentName");case 2:return e.next=4,n.fn(yM({},i));case 4:if("object"===bM(r=e.sent)){e.next=7;break}throw new Error("plugin-service: Custom component needs to be an object");case 7:t.component(n.info.componentName,r);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())),s=Promise.all(n.filter((function(e){return"component-definition"===e.info.type})).map((function(e){return e.fn(yM({},i))}))),e.next=6,Promise.all([a,s]);case 6:l=e.sent,o.initialized=!0,(r=o.definitions).push.apply(r,CM(l[1]));case 9:case"end":return e.stop()}}),e)})))()},extendComponents:function(e){return o.initialized?(o.definitions.filter(Boolean).forEach((function(t){var n=kM(e.filter((function(e){return e.key&&e.key===t.key})),1)[0];if(n){var r=UM(!0,{},n.brush);UM(!0,n,t),t.brush&&(n.brush=function(e,t){return"object"===bM(e)&&Object.keys(e).length?(Array.isArray(t.consume)&&(e.consume=XC({originalArray:e.consume,newArray:t.consume,matchKey:"context"})),Array.isArray(t.trigger)&&(e.trigger=XC({originalArray:e.trigger,newArray:t.trigger,matchKey:"on"})),e):t}(r,t.brush))}else e.push(t)})),e):e}}}({picassoInstance:t,plugins:u||[],pluginArgs:I});b.setContext({discrete:_,layoutService:x}),h({discrete:_,continuous:qG,legendLayoutService:w,layoutService:x,viewModel:M,dockService:k,themeService:q,styleService:E,continuousDataModel:D,reducedDataModel:T,colorService:N,trendLineModel:O,refLineModel:L,pluginService:R,customTooltipModel:A,selectionService:g,logicalSize:S,disclaimerService:C})}),[g,d,r,a]),f}function h6(e){return e.qIsOtherCell||-3===e.qElemNumber||-3===e.qElemNo}function p6(e){return e.some(h6)}function m6(e,t){let n=NaN,r=NaN;return e.forEach((e=>{p6(e)||e.slice(-t).forEach((e=>{"NaN"!==e.qNum&&(n=Number.isNaN(n)?e.qNum:Math.min(e.qNum,n),r=Number.isNaN(r)?e.qNum:Math.max(e.qNum,r))}))})),{min:n,max:r}}function g6(e){let t=NaN,n=NaN;if(!e.getLayoutValue("measureAxis.autoMinMax",!1)){const r=e.getLayoutValue("measureAxis.minMax");"min"!==r&&"minMax"!==r||(t=+e.getLayoutValue("measureAxis.min")),"max"!==r&&"minMax"!==r||(n=+e.getLayoutValue("measureAxis.max"))}return{min:t,max:n,isExplicitMin:!Number.isNaN(t),isExplicitMax:!Number.isNaN(n)}}function y6(e,t){let n=NaN,r=NaN;return e.forEach((e=>{if(!p6(e)){let i=0,o=0;e.slice(-t).forEach((e=>{"NaN"!==e.qNum&&(e.qNum>=0?o+=e.qNum:i+=e.qNum)})),n=Number.isNaN(n)?i:Math.min(i,n),r=Number.isNaN(r)?o:Math.max(o,r)}})),{min:n,max:r}}function v6(e,t){const n={};e.forEach((e=>{if(!p6(e)){const r=e[0].qElemNumber;n[r]=n[r]?n[r]:{min:0,max:0,cId:r},e.slice(t).forEach((e=>{"NaN"!==e.qNum&&(e.qNum>=0?n[r].max+=e.qNum:n[r].min+=e.qNum)}))}}));let r=NaN,i=NaN;return Object.keys(n).forEach((e=>{r=Number.isNaN(r)?n[e].min:Math.min(n[e].min,r),i=Number.isNaN(i)?n[e].max:Math.max(n[e].max,i)})),{min:r,max:i}}function b6(e){return"number"==typeof e&&!Number.isNaN(e)}function x6(e){const t=e.getHyperCubeValue("qMeasureInfo");return{min:Math.min(...t.filter((e=>b6(e.qMin))).map((e=>e.qMin))),max:Math.max(...t.filter((e=>b6(e.qMax))).map((e=>e.qMax)))}}function w6(e,t,n){for(let n=e.length-1;n>-1;n--)if(t(e[n]))return e[n];return n}function S6(e){return!Number.isNaN(+e.qNum)}function M6(e){return e.qNum}function k6(e){return!Number.isNaN(+e.qNum)}function C6(e){return e.qNum}function q6(e,t){return e.push(...t),e}const{getValueWithOffset:E6,isNumber:D6}=NS,T6=5,N6=.2;function O6(e,t){return Math.abs(e/t)<T6||0===t}function A6({layoutService:e,trendLineModel:t},n={}){const{stackedByMeasureExtractor:r=y6,stackedByDimensionExtractor:i=v6,straightExtractor:o=m6,measureInfoExtractor:a=x6,explicitExtractor:s=g6}=n,{meta:l}=e;return{extract({qDataPages:e,qStackedDataPages:n,others:r,count:i}){let o,a;if(Array.isArray(n)?({min:o,max:a}=this.extractFromStacked(n)):({min:o,max:a}=this.extractFromStraight(e,i)),t.query.hasTrendLines()){const{min:e,max:n}=t.query.getMinMax();o=Number.isFinite(e)?Math.min(o,e):o,a=Number.isFinite(n)?Math.max(a,n):a}const{min:s,max:l}=this.extractOthers(r),u=this.extractExplicit(),c=[0,o,a].filter((e=>D6(e)));let d=Math.min(...c),f=Math.max(...c);d=O6(s,d)?Math.min(d,s):d,f=O6(l,f)?Math.max(f,l):f;const h=[u.explicitMin,u.explicitMax,d,f].filter((e=>D6(e)));return o=Number.isNaN(u.explicitMin)?Math.min(...h):u.explicitMin,a=Number.isNaN(u.explicitMax)?Math.max(...h):u.explicitMax,o===a&&(Number.isNaN(u.explicitMin)?o=E6(o,-N6):Number.isNaN(u.explicitMax)&&(a=E6(a,N6))),{min:o,max:a,implicitMin:d,implicitMax:f,otherMin:s,otherMax:l,hasOtherMin:s<o,hasOtherMax:l>a,...u}},extractExplicit(){const{min:t,max:n,isExplicitMin:r,isExplicitMax:i}=s(e);return{hasExplicitMinMax:r||i,hasExplicitMin:r,hasExplicitMax:i,explicitMin:t,explicitMax:n}},extractFromStacked:e=>function(e){return e.length?{min:Math.min(...e[0].qSubNodes.map((e=>e.qMinNeg))),max:Math.max(...e[0].qSubNodes.map((e=>e.qMaxPos)))}:{min:0,max:0}}(e.length?e[0].qData:[]),extractFromStraight(t,n){const s=t.length?t[0].qMatrix:[];return l.isStackedByMeasure?r(s,n):l.isStackedByDimension?i(s,n):e.getHyperCubeValue("qHasOtherValues")?o(s,n):a(e)},extractOthers:e=>l.isStackedByDimension?function(e){const t=w6(zC(e,"0.qData.0.qSubNodes",[]),h6,{qMaxPos:0,qMinNeg:0});return{min:t.qMinNeg,max:t.qMaxPos}}(e):l.isGroupedByDimension?function(e){const t=zC(e,"0.qMatrix",[]).filter(p6).reduce(q6,[]).filter(k6).map(C6);return{min:Math.min(0,...t),max:Math.max(0,...t)}}(e):function(e){const t=w6(zC(e,"0.qMatrix",[]),p6,[]).filter(S6).map(M6);return{min:Math.min(0,...t),max:Math.max(0,...t)}}(e)}}function _6(e){const t=function({reducedDataModel:e,layoutService:t,continuousDataModel:n}){const{meta:r,getHyperCubeValue:i}=t,o=e=>!e.length&&r.mode.K,a=e=>{const t=i("qStackedDataPages",[]);return{qStackedDataPages:t,others:e?t:[]}};return{resolve(){const t=i("qMeasureInfo").length,s=i("qDimensionInfo").length,l=i("qHasOtherValues");if(!r.isStacked&&!l)return Promise.resolve({qDataPages:[{}],count:t});if(r.isContinuous){const e=r.isStackedByDimension?s:t;return n.fetchMinMaxData().then((t=>({qDataPages:t,count:e})))}const u=r.isStackedByDimension?1:t;return e.fetchMinMaxData().then((e=>{if(o(e))return a(l);let t=[];return l&&(t=r.mode.K?i("qStackedDataPages",[]):i("qDataPages",[])),{qDataPages:e,count:u,others:t}}))}}}(e),n=A6(e);return t.resolve().then((e=>n.extract(e)))}const L6=({key:e,components:t})=>({key:e,type:"brush-lasso",layout:{displayOrder:99},settings:{brush:{components:t},lasso:{fill:"rgba(0, 0, 0, 0)",stroke:"black",strokeWidth:2,opacity:.7,strokeDasharray:[]},snapIndicator:{threshold:75,strokeDasharray:"5, 5",stroke:"black",strokeWidth:2,opacity:.7},startPoint:{r:10,stroke:"rgba(77, 192, 78, 1)",strokeWidth:0,opacity:1}}}),I6="lasso",R6=({key:e,componentTargetKey:t,requireFailure:n,recognizeWith:r},i)=>({key:`event:${e}`,type:"Pan",requireFailure:n,recognizeWith:r,options:{event:I6,enable(e,n){if(this.started===I6||!n)return!0;if(!i.actions.select.enabled()||!i.actions.lasso.enabled()||!i.actions.lasso.active())return!1;return this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).filter((e=>e.key===t)).length>0}},events:{lassostart(t){t.preventDefault(),this.started!==I6&&(i.actions.select.emit("start",I6),this.chart.component(e).emit("lassoStart",t),this.started=I6)},lassomove(t){t.preventDefault(),this.chart.component(e).emit("lassoMove",t),"function"==typeof i.updateOnMove&&i.updateOnMove(this.chart)},lassoend(t){t.preventDefault(),this.started=!1,this.chart.component(e).emit("lassoEnd",t),i.actions.select.emit("end",I6),"function"==typeof i.updateOnEnd&&i.updateOnEnd()}}});const P6=({targets:e,requireFailure:t,recognizeWith:n,components:r,eventName:i="tap"},o)=>{let a;const s=o.customTooltipModel?o.customTooltipModel.utils:void 0,l=s?o.debouncer(s.displayTooltip,s.DEBOUNCE_THRESHOLD):void 0;return{key:"event:tap",type:"Tap",requireFailure:t,recognizeWith:n,options:{event:i,interval:10,pointers:1,enable(t,n){return!n||!(!o.actions.select.enabled()&&!o.actions.tooltip.enabled())&&(a=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).filter((t=>-1!==e.indexOf(t.key))),a.length>0)}},events:{[i](t){t.preventDefault();const n=function(e,t){const n=t.element.getBoundingClientRect();let r,i;return e.center?(({x:r}=e.center),({y:i}=e.center)):(r=e.clientX,i=e.clientY),{x:r-n.left,y:i-n.top}}(t,this.chart),u=o.hitRadius?o.hitRadius(a):0,c=u>0?{cx:n.x,cy:n.y,r:u}:n,d=o.shapesAt?o.shapesAt(c):this.chart.shapesAt(c,{components:e.map((e=>({key:e,propagation:"stop"}))),propagation:"stop"}),f=this.chart.component("tooltip"),h="mouse"!==t.pointerType&&f&&f.show;if(!o.isLocked(a)&&!o.tooltipOnly&&o.actions.select.enabled()){const e=this.chart.componentsFromPoint({x:t.center.x,y:t.center.y}),n=e.some((e=>"legend-cat"===e.type));if(!d.length&&n||(this.chart.brushSelectionIncludeMax=!1,o.actions.select.brushSelectionIncludeMax=!1,o.actions.select.emit("start",i,e)),d.length&&r){this.chart.brushSelectionIncludeMax=!1,o.actions.select.brushSelectionIncludeMax=!1;const e="function"==typeof r?r(t,d):r;this.chart.brushFromShapes(d,{components:e}),o.actions.select.emit("end",i),(({largeDataService:e,chart:t})=>{((null==e?void 0:e.meta)||{}).isLargeNumPoints&&t.brush("lazySelection")._state(t.brush("selection")._state())})({largeDataService:o.largeDataService,chart:this.chart})}}if(f&&o.actions.tooltip.enabled())if(d.length){const{customTooltipModel:e}=o;if(null!=e&&e.useCustomTooltip&&s.checkIfPromisesExist({customTooltipModel:e})){const n=s.getNodes(t,this.chart);l(t,f,{nodes:n,opts:o,customTooltipModel:e})}else f.emit("show",t,{nodes:d})}else h&&f.emit("hide")}}}};const z6=({key:e,requireFailure:t,recognizeWith:n,eventName:r="tap"},i)=>({prio:1,key:`event:${e}-tap`,type:"Tap",requireFailure:t,recognizeWith:n,options:{event:`${r}-${e}-tap`,interval:10,pointers:1,enable:(t,n)=>!!n&&(!!i.actions.select.enabled()&&(!(!n.target||"INPUT"!==n.target.nodeName)||!(!n.target||!n.target.hasAttribute("data-other-value"))&&(n.target.getAttribute("data-key")||"").split("-bubble")[0]===e))},events:{[`${r}-${e}-tap`](t){(t.target.getAttribute("data-key")||"").split("-bubble")[0]&&(t.preventDefault(),this.chart.component(e).emit("bubbleStart",t))}}});const F6=({eventName:e,key:t,fillTargets:n=[],requireFailure:r,recognizeWith:i},o,a)=>({key:`event:${t}`,type:"Pan",requireFailure:r,recognizeWith:i,options:{event:e,enable(r,i){if(this.started===e||!i)return!0;if(!o.actions.select.enabled())return!1;const a=this.chart.componentsFromPoint({x:i.center.x,y:i.center.y}).filter((e=>-1!==n.indexOf(e.key))),s=0===a.length&&function(e,t){const{target:n}=e.srcEvent;return!(!n||0!==(n.getAttribute("data-key")||"").indexOf(`${t}-`))}(i,t);return s?(this.started=e,!0):a.length>0}},events:{[`${e}start`](n){void 0===this.chart.brushSelectionIncludeMax&&(this.chart.brushSelectionIncludeMax=!0,o.actions.select.brushSelectionIncludeMax=!0),n.preventDefault(),o.actions.select.emit("start",e),this.chart.component(t).emit(`${a}Start`,n),this.started=e},[`${e}move`](e){e.preventDefault(),this.chart.component(t).emit(`${a}Move`,e),"function"==typeof o.updateOnMove&&o.updateOnMove(this.chart)},[`${e}end`](n){void 0===this.chart.brushSelectionIncludeMax&&(this.chart.brushSelectionIncludeMax=!0,o.actions.select.brushSelectionIncludeMax=!0),n.preventDefault(),this.chart.component(t).emit(`${a}End`,n),o.actions.select.emit("end",e),this.started=!1,"function"==typeof o.updateOnEnd&&o.updateOnEnd()}}});function j6(e,t){const n=function(e){const{key:t,targets:n,fillTargets:r,targetSelector:i,targetFillSelector:o,dock:a,scale:s,bubblesPlacement:l="inside",observeBrush:u=!1,multiple:c=!1,toLabel:d,onEdited:f}=e;return{key:t,type:"brush-range",layout:{dock:n.map((e=>`@${e}`)).join(",")},on:f?{bubbleEnd(){f()}}:{},settings:{brush:u?{context:"selection",observe:!0}:"selection",scale:s,multiple:c,direction:"left"===a||"right"===a?"vertical":"horizontal",bubbles:{align:"left"===a||"top"===a?"end":"start",placement:l,label:d},target:{components:r,selector:i,fillSelector:o,fill:"rgba(82,204,82,0.2)"}}}}(e),r=F6(e,t,"range");return{interactions:[e.onEdited?z6(e,t):null,r].filter(Boolean),components:[n]}}const B6={refLines:{minimumLayoutMode:"SPARK"},measureAxisTitle:{minimumLayoutMode:"XSMALL"},dimensionAxisTitle:{minimumLayoutMode:"XSMALL"},measureAxis:{minimumLayoutMode:"XSMALL"},dimensionAxis:{minimumLayoutMode:"XSMALL"},gridLines:{minimumLayoutMode:"XSMALL"},refLinesLabels:{minimumLayoutMode:"SMALL"},horizontalDimensionAxis:{minimumLayoutMode:{width:"XSMALL",height:"SMALL"}},verticalDimensionAxis:{minimumLayoutMode:{width:"SMALL",height:"XSMALL"}},horizontalDimensionAxisTitle:{minimumLayoutMode:{width:"XSMALL",height:"MEDIUM"}},verticalDimensionAxisTitle:{minimumLayoutMode:{width:"MEDIUM",height:"XSMALL"}}},H6="inner-time-axis",V6="outer-time-axis";const $6={getMajorAxisMaxGlyphCount(e,t){let n=0;if(e.qDimensionInfo.length){const r=t?0:e.qDimensionInfo.length-1;n=d6.getMaxGlyphCount(e,r)}else e.qMeasureInfo.forEach((e=>{n=Math.max(n,e.qFallbackTitle.length)}));return n},getAxisData(e,t){let n;return n=e.qDimensionInfo.length?zC(e,t?"qStackedDataPages.0.qData.0.qSubNodes":"qDataPages.0.qMatrix"):e.qMeasureInfo,n},getBarAxisMaxGlyphCount(e,t){if(!e)return;const n=$6.getAxisData(e,t),r=!e.qDimensionInfo.length,i=r||t?void 0:e.qDimensionInfo.length-1,o=$6.getMajorAxisMaxGlyphCount(e,t),a=r?"qFallbackTitle":"qText";return Vg.getAdjustedMaxGlyphCount(o,n,i,a)},getGroupAxisMaxGlyphCount(e){if(!e)return;const t=$6.getAxisData(e),n=d6.getMaxGlyphCount(e,0);return Vg.getAdjustedMaxGlyphCount(n,t,0)}};var U6={LOWERGLYPHCOUNT:3,UPPERGLYPHCOUNT:13};function W6(e,t,n,r){const{meta:i}=t.layoutService,o=[],a=!("none"===e.measureAxis.show),s=!("title"===e.measureAxis.show);i.isContinuous?o.push(...function(e,t,n,r){const{meta:i}=t.layoutService,{axis:o,grid:a}=t.themeService.getStyles(),s=t.styleService.axis.label.getStyle(),{auto:l,spacing:u}=t.layoutService.getLayoutValue("gridLine",{}),c=[],d="none"!==e.dimensionAxis.show&&"title"!==e.dimensionAxis.show,f=B6[`${t.dockService.meta.major.orientation}DimensionAxis`].minimumLayoutMode,h={type:"grid-line",x:{},layout:{minimumLayoutMode:B6.gridLines.minimumLayoutMode},ticks:{stroke:a.line.major.color},minorTicks:{show:!1,stroke:a.line.minor.color},animations:{enabled:t.viewModel.animations.enabled,trackBy:yD.lines.trackBy,compensateForLayoutChanges:yD.lines.compensateForLayoutChanges}},p=!!e.showMiniChartForContinuousAxis&&{type:"range",key:"range-brush-highlighter",layout:{dock:"@scrollbar"},settings:{scale:t.reducedDataModel.scales.major,brush:"selection",fill:"#6CB33F",opacity:.2}};if(i.isTime){if(d){const e=n?"end":"start",r=n?1:0,i="bottom"===t.dockService.meta.major.dock?0:1,a={label:{fill:s.fill,fontSize:s.fontSize,fontFamily:s.fontFamily},majorGuideLine:{stroke:o.line.major.color},minorGuideLine:{stroke:o.line.minor.color}},d={type:"time-axis",renderer:"svg",layout:{dock:t.dockService.meta.major.dock,minimumLayoutMode:f},preferredSize:()=>({size:2*parseFloat(s.fontSize),edgeBleed:{left:1,right:1}}),settings:{anchor:e,label:{align:i,justify:r},guideLine:{major:{justify:r},minor:{align:i}}},style:a,animations:{enabled:t.viewModel.animations.enabled,trackBy:yD.axes.trackBy({isTime:!0}),compensateForLayoutChanges:yD.axes.compensateForLayoutChanges({isTime:!0})}};c.push(Cg(!0,{},d,{key:H6,scale:r6.SCALE.MAIN.MAJOR_INNER,settings:{guideLine:{minor:{show:!0}},line:{show:!l&&0===u}},style:Cg(!0,{},a,{line:{stroke:o.line.major.color},majorGuideLine:{stroke:o.line.minor.color},minorGuideLine:{stroke:o.line.major.color}})})),c.push(Cg(!0,{},d,{key:V6,scale:r6.SCALE.MAIN.MAJOR,settings:{guideLine:{minor:{show:!1}},line:{show:!1}}})),c.push({type:"axis-overlay",key:"outer-axis-overlay",scale:r6.SCALE.MAIN.MAJOR,layout:{dock:`@${V6}`,minimumLayoutMode:f}}),c.push({type:"axis-overlay",key:"inner-axis-overlay",scale:r6.SCALE.MAIN.MAJOR_INNER,layout:{dock:`@${H6}`,minimumLayoutMode:f}}),c.push(p)}return c.push(Cg(!0,{},h,{key:"inner-time-grid",x:{scale:r6.SCALE.MAIN.MAJOR_INNER},ticks:{stroke:a.line.minor.color}})),c.push(Cg(!0,{},h,{key:"outer-time-grid",x:{scale:r6.SCALE.MAIN.MAJOR}})),c}if(i.isContinuous){const e="continuous-axis";d&&(c.push({type:"axis",key:e,renderer:AD(t.flags),scale:r6.SCALE.MAIN.MAJOR,layout:{dock:t.dockService.meta.major.dock,minimumLayoutMode:f},settings:{labels:{align:0,offset:4,fill:s.fill,fontSize:s.fontSize,fontFamily:s.fontFamily},ticks:{show:!0,stroke:o.line.major.color},line:{show:!r},minorTicks:{show:!1}},animations:{enabled:t.viewModel.animations.enabled,trackBy:yD.axes.trackBy({isContinuous:!0}),compensateForLayoutChanges:yD.axes.compensateForLayoutChanges({isContinuous:!0})}}),c.push({type:"axis-overlay",key:"inner-axis-overlay",scale:r6.SCALE.MAIN.MAJOR,layout:{dock:`@${e}`,minimumLayoutMode:f}}),c.push(p)),c.push(Cg(!0,{},h,{key:"continuous-grid",x:{scale:r6.SCALE.MAIN.MAJOR},minorTicks:{show:!0}}))}return c}(e,t,n,r)):o.push(...function(e,t,n,r){if("none"===e.dimensionAxis.show)return[];const{meta:i}=t.layoutService,o=t.themeService.getStyles(),a=[],s=function(e,t){return!t.layoutService.meta.isGroupedByDimension||!e.legend.show||t.colorService.getMain().getSettings().field!==t.viewModel.fields.major}(e,t),l=function(e,t){return!(!t.layoutService.meta.isGroupedByDimension||e.legend.show&&t.colorService.getMain().getSettings().field===t.viewModel.fields.majorGroup)}(e,t),u="horizontal"===t.dockService.meta.major.orientation,c=u?e.dimensionAxis.label:"auto",d="horizontal"===c?void 0:t.dockService.meta.minor.size/4,f=t.styleService.axis.label.getStyle(),h={type:"axis",renderer:AD(t.flags),layout:{dock:t.dockService.meta.major.dock,minimumLayoutMode:B6[`${t.dockService.meta.major.orientation}DimensionAxis`].minimumLayoutMode},settings:{labels:{show:!("title"===e.dimensionAxis.show),mode:c,tiltAngle:n?-40:40,maxEdgeBleed:50,maxLengthPx:d,...f},line:{show:!r,stroke:o.axis.line.major.color}},brush:{consume:[{context:"selection",data:["selectionDimension","axisSelectionDimension"],style:{inactive:{opacity:.3}}}]},animations:{enabled:t.viewModel.animations.enabled,trackBy:yD.axes.trackBy({isMajor:!0}),compensateForLayoutChanges:yD.axes.compensateForLayoutChanges({isHorizontal:u})}};l&&a.push(Cg(!0,{},h,{key:"group-axis",scale:r6.SCALE.MAIN.MAJOR_INNER,settings:{paddingEnd:s?10:4,labels:{mode:s?"horizontal":h.settings.labels.mode,maxGlyphCount:$6.getGroupAxisMaxGlyphCount(e.qHyperCube),maxLengthPx:d},line:{show:(u||!s)&&h.settings.line.show}}}));const p=$6.getBarAxisMaxGlyphCount(e.qHyperCube,i.isStackedByDimension);return s&&a.push(Cg(!0,{},h,{key:r6.COMPONENT.BAR_AXIS,scale:r6.SCALE.MAIN.MAJOR,settings:{paddingEnd:4,labels:{maxGlyphCount:p,maxLengthPx:d,tiltThreshold:p>U6.LOWERGLYPHCOUNT&&p<U6.UPPERGLYPHCOUNT?1:void 0},line:{show:!(u&&l)&&h.settings.line.show}}})),u||2!==a.length?a:[a[1],a[0]]}(e,t,n,r));const l=t.themeService.getStyles(),u=t.styleService.axis.label.getStyle();return a&&o.push({type:"axis",key:"y-axis",renderer:AD(t.flags),formatter:r6.FORMATTER.MINOR,layout:{dock:t.dockService.meta.minor.dock,minimumLayoutMode:B6.measureAxis.minimumLayoutMode},scale:r6.SCALE.MAIN.MINOR,settings:{labels:{show:s,...u},line:{stroke:l.axis.line.major.color},ticks:{stroke:l.axis.line.major.color},minorTicks:{stroke:l.axis.line.minor.color}},animations:{enabled:t.viewModel.animations.enabled,trackBy:yD.axes.trackBy({isMeasure:!0}),compensateForLayoutChanges:yD.axes.compensateForLayoutChanges({isMeasure:!0,dock:t.dockService.meta.minor.dock})}}),o}var Y6={BAR:{WIDTH:.7,STROKE:{COLOR:"#205891",WIDTH:{NONE:0,SMALL:1,MEDIUM:2,LARGE:4}}}};const K6=.7,G6=.9;function X6({layoutService:e,discrete:t,componentKey:n}){var r;const{isContinuous:i,isGrouped:o}=e.meta;if(i)return 1;const a=(e.getLayoutValue("components",[])||[]).filter((e=>e.key===n))[0];if(null!=a&&null!==(r=a.style)&&void 0!==r&&r.width){const{style:e}=a;return e.strokeWidth&&"none"!==e.strokeWidth?function(){const n=Y6.BAR.STROKE.WIDTH[e.strokeWidth.toUpperCase()]/t.query.getItemSize(),r=e.width+n;return r>1?e.width-(r-1):e.width}:e.width}return o?G6:K6}const J6={FULL:16,MEDIUM:14,SMALL:12,XSMALL:8,SPARK:4};function Q6(e,t,n={}){return({data:r})=>{const i=e.chart.component(t).rect;if(!r.items.length||!i)return 2;const{min:o,max:a}=e.viewState.get("zoom");if(n[[o,a]])return n[[o,a]];const s=J6[Dg.getLayoutMode(i.width,Number.MAX_VALUE)];n={};const l=Math.abs(a-o),u=Math.abs(e.viewCache.get("continuousMax")-e.viewCache.get("continuousMin"));if(0===u)return s;const c=function(e,t,n){return e*(1-n)+t*n}(2,s,1-Math.min(l/u/.2,1));return n[[o,a]]=Math.max(2,Math.min(s,c)),n[[o,a]]}}function Z6(e,t){const{hasExplicitMax:n,explicitMax:r}=t;return!!n&&e>r&&r<=0}function e7(e,t){const{hasExplicitMin:n,explicitMin:r}=t;return!!n&&e<r&&r>=0}function t7(e,t){const{hasExplicitMax:n,explicitMax:r}=t;return!!n&&e>r&&r>0}function n7(e,t){const{hasExplicitMin:n,explicitMin:r}=t;return!!n&&e<r&&r<0}const r7={MAX:"max",MIN:"min"},i7={min:"Min",max:"Max"};function o7(e,t,n){return void 0===n?Z6(e,t)||e7(e,t):n===r7.MAX?Z6(e,t):e7(e,t)}function a7({minorMinMax:e,type:t}){return!(function({minorMinMax:e,type:t}){return!e[`hasExplicit${i7[t]}`]}({minorMinMax:e,type:t})||function({minorMinMax:e,type:t}){const n=t===r7.MAX?e.implicitMax:e.implicitMin;return!o7(Number(n.toFixed(13)),e,t)}({minorMinMax:e,type:t}))}function s7(e,{barComponent:t,type:n,isStacked:r}){const{viewCache:i,dockService:o,themeService:a}=e,s=i.get("minorMinMax");if(!s.hasExplicitMinMax)return!1;const l=n===r7.MAX?s.implicitMax:s.implicitMin;if(!o7(Number(l.toFixed(13)),s,n))return!1;const{orientation:u}=t.settings,c=n===r7.MAX?o.meta.minor.end:o.meta.minor.start;let d="end";r&&(d=n===r7.MAX?"sumOfPositives":"sumOfNegatives");const f=a.getStyles();return{type:"box-out-of-bounds",key:`bar-oob-${n}`,layout:{dock:c},data:t.data,brush:t.brush,settings:{orientation:u,major:t.settings.major,minor:t.settings.minor,dockValue:Bg.getDockValue(c),oob:Cg({},t.settings.box,{fill:f.outOfRange.color,alignment:1,opacity:1,show:function(e){var t;return!0!==(null===(t=e.datum.null)||void 0===t?void 0:t.value)&&((!r||0!==e.datum[d].value)&&o7(e.datum[d].value,s,n))}})},animations:{enabled:e.viewModel.animations.enabled,compensateForLayoutChanges:yD.barOobs.compensateForLayoutChanges}}}function l7(e){return Math.min(Math.max(0,e),1)}const u7=(e,{chart:t,type:n,componentKey:r,collectionKey:i})=>{const{layoutService:o,dockService:a,viewCache:s}=e,{isStacked:l}=o.meta,u=s.get("minorMinMax"),{meta:c}=e.layoutService;if(!a7({minorMinMax:u,type:n}))return!1;let d;c.isGroupedByDimension?d=({scale:e,datum:t})=>e([t.group.value,t.value])+e.bandwidth([t.group.value,t.value])/2:c.isGroupedByMeasure&&(d=({scale:e,datum:t})=>e([t.value,t.measureIndex.value])+e.bandwidth()/2);const f={type:"box",key:`${r6.COMPONENT.GHOST_BAR_OOB}-${n}`,data:{collection:i},settings:{orientation:a.meta.minor.orientation,major:{scale:r6.SCALE.MAIN.MAJOR,fn:d},minor:{scale:r6.SCALE.MAIN.MINOR,start(e){var n;return l7(t.scale(r6.SCALE.MAIN.MINOR)((null==e||null===(n=e.datum)||void 0===n||null===(n=n.start)||void 0===n?void 0:n.value)||0))},end(e){const r=t.scale(r6.SCALE.MAIN.MINOR);let i="end";l&&(i="max"===n?"sumOfPositives":"sumOfNegatives");const o=e.datum[i]?e.datum[i].value:r[n]();return l7(r(o))}},box:{width:X6({layoutService:e.layoutService,discrete:e.discrete,componentKey:r}),minWidthPx:2,fill:"none",stroke:"transparent",show:e=>{const r=t.scale(r6.SCALE.MAIN.MINOR);let i="end";l&&(i="max"===n?"sumOfPositives":"sumOfNegatives");const o=e.datum[i]?e.datum[i].value:r.max();return"max"===n?o>r.max():o<r.min()}},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}}};return f};function c7(e,t){const{style:n,styleService:r,dockService:i}=t,o=r.label.getStyle(),a=o.useContrastColor&&!e.onBackground?function(e){return function(t){return Xy.isDark(t.node.attrs.fill)?e.lightColor:e.darkColor}}(n):o.fill,s="horizontal"===i.meta.major.orientation,l=e.padding||{left:s?0:4,right:s?0:4,top:s?4:0,bottom:s?4:0};return{position:e.position,justify:e.justify,fill:a,overflow:e.overflow,background:e.background,padding:l}}function d7(e){return{placements:e.simplifiedPlacements.map((t=>c7(t,e))),label:e.label}}function f7(e,t){if(t){if(function(e,t){return Z6(e,t)}(e,t))return-1;if(function(e,t){return e7(e,t)}(e,t))return 1}return function(e,t){if(t&&0===e){const{min:e,max:n}=t;return 0===n&&0===e?1:n<=0?-1:e>=0||n>=-e?1:-1}return e>=0?1:-1}(e,t)}const h7="vertical",p7="horizontal";function m7(e,t,n,r){const i=f7(e,r);let o="up";return t===h7&&i<0?o="down":t===p7&&(o=i>=0&&!n||i<0&&n?"right":"left"),o}function g7(e,t){const{dataPoint:n}=e;if(!n.showLabels)return!1;const{isStacked:r,isContinuous:i}=t.layoutService.meta;return!r||!i&&!!n.showSegmentLabels}function y7(e,t){const{dataPoint:n}=e;if(!n.showLabels)return!1;const{isStacked:r,isContinuous:i}=t.layoutService.meta;return!!r&&(!!i||!1!==n.showTotalLabels)}function v7(e,t,n,r){const i=[];return void 0!==e&&(i[e]={position:"outside",onBackground:!0,justify:0,overflow:r}),void 0!==t&&(i[t]={position:"inside",onBackground:!1,justify:n}),i}function b7({layout:e,component:t,minorScale:n},r,i){if(!g7(e,r))return!1;const{viewModel:o,ds:a,viewCache:s,layoutService:l,dockService:u,themeService:c}=r,{meta:d}=l,f=s.get("minorMinMax"),h=c.getStyles(),p=r.styleService.label.getStyle();let m;!d.isStacked&&(m=d.isStacked?1:0);const g=0===m?1:0,y=d.isStacked?.5:1,v=o.fields.minor[0],b=void 0===v?void 0:a.field(v).formatter();let x,w=-1;x=d.isStacked?d.isStackedByMeasure||!b?function(e){return e.data.segment.label}:function(e){return Math.abs(e.data.segment.value)>w?b(e.data.segment.value):""}:function(e){return e.data.end.label};const S={label:x,simplifiedPlacements:v7(m,g,y,d.isContinuous),style:h.label.value},M=[d7(Cg(r,S))],k={component:t,selector:"rect",strategy:{type:"bar",settings:{direction:e=>m7(e.data.end.value,u.meta.minor.orientation,i,f),labels:M,fontSize:parseInt(p.fontSize,10),fontFamily:p.fontFamily,linkData:yD.labels.linkData}}},C=[k],q={key:"bar-labels",type:"labels",renderer:AD(r.flags),layout:{minimumLayoutMode:"XSMALL"},settings:{sources:C},animations:{enabled:r.viewModel.animations.enabled,trackBy:yD.labels.trackBy,compensateForLayoutChanges:yD.labels.compensateForLayoutChanges}};return d.isStackedByDimension&&b&&(q.beforeRender=()=>{w=function(e,t,n){const r="vertical"===t.dockService.meta.minor.orientation?"height":"width",i=t.chart.component(e),o=i&&i.rect?i.rect[r]:1,a=n?n.min():0;return 9.999*((n?n.max():0)-a)/o}(t,r,n)}),q}const x7={isSameMeasureAndColorRow:(e,t,n)=>t&&e&&t[0].content[0]===e[0].content[0]&&t[0].content[1]===e[0].content[1]&&t[1].content[n?0:1]===e[1].content[0],getTitle(e,t){const n=e.data;let r;return t.isStackedByDimension?r=n.stack?n.stack.label:void 0:t.isGroupedByDimension&&(r=n.group?n.group.label:void 0),void 0!==r?`${n.label}, ${r}`:n.label},getMeasure(e,t,n,r,i){if(n.isStacked&&("bar-oob-max"===t.key||"bar-oob-min"===t.key))return!1;const o=t.data,a=n.isStacked?r.viewModel.fields.minor[n.isStackedByDimension?0:o.measureIndex.value]:void 0,s=n.isStacked?{source:{key:o.source.key,field:a},label:!0===(null===(l=o.null)||void 0===l?void 0:l.value)?"":n.isStackedByDimension&&i?i(o.segment.value):o.segment.label}:o.end;var l;return Jg.getMeasure(e,s)},getMeasures(e,t,n,r,i){const o=e.resources.dataset;return t.map((e=>x7.getMeasure(o,e,n,r,i))).filter(Boolean)},getCustomTooltipAttrExps(e,t,n){const r=e.resources.dataset;return y3({nodes:t,layout:n.layoutService.getLayout(),dataset:r})},extractBarTooltipData(e,t,n,r,i){const o={title:x7.getTitle(t,n),color:Jg.getColor(e,t,r),measures:x7.getMeasures(e,t.childrenNodes?t.childrenNodes:[t],n,r,i)};if(x7.useCustomTooltip(r)){var a,s;const n=x7.getCustomTooltipAttrExps(e,t.childrenNodes?t.childrenNodes:[t],r);o.customMeasures=n.customTooltipAttrExpsArr,o.customTitle=n.customTooltipInfoAttrExpsArr.filter((e=>e.id===e3.CUSTOM.TITLE)),o.customDescription=n.customTooltipInfoAttrExpsArr.filter((e=>e.id===e3.CUSTOM.DESCRIPTION));let i=[];(t.childrenNodes?t.childrenNodes:[t]).forEach((e=>{var t;(null===(t=e.data.customTooltipImages)||void 0===t?void 0:t.length)>0&&!Array.isArray(e.data.customTooltipImages[0])&&(i=e.data.customTooltipImages)})),i.length>0&&(o.customImages=i);const d=r.layoutService.getLayout();var l,u,c;if(null!==(a=d.tooltip)&&void 0!==a&&null!==(a=a.chart)&&void 0!==a&&null!==(a=a.object)&&void 0!==a&&a.refId&&r.app&&r.customTooltipModel.embed&&"function"==typeof(null===(s=r.customTooltipModel.model)||void 0===s?void 0:s.getEffectiveProperties))if(null!==(l=(u=r.app).isInModalSelection)&&void 0!==l&&l.call(u)){if((null==d||null===(c=d.qHyperCube)||void 0===c||null===(c=c.qDimensionInfo)||void 0===c?void 0:c.length)>0){u3.destroyVisualization({customTooltipModel:r.customTooltipModel});const e=r.customTooltipModel.translator.get("properties.tooltip.notselectedmessage");o.customLimitation=e}}else{const t=u3.createContainer({ctx:e,layout:d});o.customChart=t}}return o},getTotalStackTitle:(e,t)=>e>0?t?t.get("Object.ChartTooltip.sumOfPositives"):"Sum of positives":e<0?t?t.get("Object.ChartTooltip.sumOfNegatives"):"Sum of negatives":"",extractStackTotalBarTooltipData(e,t,n){const r=e.data.label,i=[e.data.sumOfPositives.value,e.data.sumOfNegatives.value].filter((e=>0!==e)).map((e=>({label:`${x7.getTotalStackTitle(e,t)}`,value:n?n(e):e})));return{title:r,measures:i}},extractTooltipData(e,t){const n=t.chart.formatter(r6.FORMATTER.MINOR),{meta:r}=t.layoutService,i=e.node.childrenNodes?e.node.childrenNodes:[e.node],o=Math.max(0,i.length-6);i.length=Math.min(i.length,6);const{stackTotalBarNodes:a}=e.node,s=a&&a.length?a.map((e=>x7.extractStackTotalBarTooltipData(e,t.translator,n))):[];return{barTooltipData:i.map((i=>x7.extractBarTooltipData(e,i,r,t,n))),stackTotalBarTooltipData:s,numInvisibleNodesPhase1:o}},extractBarNodeData(e,t,n,r,i,o,a){let s=!i&&Jg.getTitleRow(t,r);const l=Jg.hideColorRow(t,n),u=!o&&!l&&Jg.getColorRow(e,t,r),c=t.measures.map((i=>!a&&Jg.getMeasureRow(i,e,t,r,l&&i.field===n.coloring.field))),d=c.filter((e=>!x7.isSameMeasureAndColorRow(e,u,r)));if(x7.useCustomTooltip(n)){const n=i?[]:t.customMeasures.map((n=>Jg.getMeasureRow(n,e,t,r,!1))),o=!(!t.customTitle[0]||i)&&Jg.getTitleRow(t.customTitle[0],r),a=!(!t.customDescription[0]||i)&&Jg.getDescriptionRow(t.customDescription[0],r);s=!x7.shouldIgnoreTitleRowForCtt(o,a,d,n)&&s;const l=[o,a,s,u,...d,...n];if(t.customChart&&l.push(t.customChart),t.customLimitation&&l.push(h3.getFooterRow(t.customLimitation,r)),t.customImages){const n=t.customImages.map((t=>h3.getImageRow(t,e)));l.push(...n)}return l.filter(Boolean)}return[s,u,...d].filter(Boolean)},extractStackTotalBarNodeData(e,t,n){const r=!!t.measures.length&&Jg.getTitleRow(t,n),i=t.measures.map((r=>Jg.getMeasureRow(r,e,t,n,!1)));return[r,...i].filter(Boolean)},useCustomTooltip:e=>zC(e,"customTooltipModel.useCustomTooltip",!1),shouldIgnoreTitleRow:(e,t)=>e.isDimensionless||t>0&&!e.isGroupedByDimension&&!e.isStackedByDimension,shouldIgnoreTitleRowForCtt:(e,t,n,r)=>!1===n[0]&&0===r.length&&(e.length>0||t.length>0),shouldIgnoreColorRow:(e,t)=>t>0&&(e.isGroupedByMeasure||e.isStackedByMeasure),shouldIgnoreMeasureRow:(e,t,n)=>e&&t.measures.some((e=>e.field===n.coloring.field)),shouldIgnoreDefaultRows:(e,t)=>x7.useCustomTooltip(t)&&zC(e,"tooltip.hideBasic",0),extractBarsData(e,t,n,r){const{meta:i}=t.layoutService,o=t.layoutService.getLayout(),a=r.length;let s,l,u=[];const c=x7.shouldIgnoreDefaultRows(o,t);for(s=0;s<a;s++){l=r[s];const o=x7.shouldIgnoreTitleRow(i,s),d=c||x7.shouldIgnoreColorRow(i,s),f=c||x7.shouldIgnoreMeasureRow(d,l,t);if(u=u.concat(x7.extractBarNodeData(e,l,t,n,o,d,f)),u.length>=6||l.customImages||l.customChart||l.customLimitation)return{barsData:u,numInvisibleNodesPhase2:a-(s+1)}}return{barsData:u,numInvisibleNodesPhase2:0}},extractStackTotalBarsData(e,t,n){let r=[];return n.some((e=>e.measures.length))&&n.forEach((n=>{r=r.concat(x7.extractStackTotalBarNodeData(e,n,t))})),r},extractData(e,t,n){const{barTooltipData:r,numInvisibleNodesPhase1:i,stackTotalBarTooltipData:o}=x7.extractTooltipData(e,t),a=x7.extractStackTotalBarsData(e,n,o);a.length&&a.push(Jg.getSeparatorRow());const{barsData:s,numInvisibleNodesPhase2:l}=x7.extractBarsData(e,t,n,r),u=a.concat(s),c=i+l;return c&&u.push(Jg.getNMoreRow(c,t.translator,n)),u},calculateBoundsFromBars(e){const t=e.filter((e=>{const t=e.bounds;return t.width>0&&t.height>0})),n=t.length?t:e;return TD.combineBounds(n.map((e=>e.bounds)))},calculateBoundsFromScale({opts:e,barKey:t,scale:n,majorScale:r,data:i,groupProp:o}){const a=e.chart.component(t).rect,{orientation:s}=e.dockService.meta.major,l="horizontal"===s?"width":"height",u=e.chart.scale(n).pxScale(a[l]);let c,d,f;if(e.layoutService.meta.isGroupedByMeasure){const t=e.viewModel.fields.minor.length;c=i.value,d=n===r&&void 0!==c?(u([c,0])+u([c,t-1]))/2:0,f=n===r&&void 0!==c?u.bandwidth([c,0]):0}else{const{value:e}=i;c=i[o]?i[o].value:void 0,d=u(n===r&&void 0!==c?[c,e]:e),f=n===r&&void 0!==c?u.bandwidth([c,e]):u.bandwidth(e)}const h=(d+f/2)*a[l],p={width:0,height:0};return"horizontal"===s?(p.x=h,p.y=a.height):(p.y=h,p.x=0),p},calculateTotalBounds({opts:e,labels:t,bars:n,barKey:r,barAxisKey:i,majorScale:o,majorInnerScale:a,groupProp:s}){const l=n.filter((e=>e.children&&e.children.length));let u;return u=l.length?x7.calculateBoundsFromBars(l):x7.calculateBoundsFromScale({opts:e,barKey:r,scale:t[0].key===i?o:a,majorScale:o,data:t[0].data,groupProp:s}),u},filterNodesOnKeys:(e,t)=>e.filter((e=>e.data&&t.indexOf(e.key)>-1)),isBarMatchingLabel:(e,t)=>t.data.value===e.data.value,isBarMatchingLabelOnProp:(e,t,n)=>t.data.value===(e.data[n]?e.data[n].value:e.data.value),findBarsMatchingLabels(e,t,n,r){const i=e.filter((e=>t.some((t=>n(e,t,r)))));return i},findBarsFromGroupLabelsInGroupedByDim(e,t,n){const r=x7.isBarMatchingLabelOnProp;return x7.findBarsMatchingLabels(e,t,r,n)},findBarsFromBarLabelsInGroupedByDim:(e,t,n)=>e.filter((e=>t.some((t=>t.data.group&&t.data.group.value===e.data[n].value&&t.data.value===e.data.value)))),findBarsFromLabelsInSingleDim(e,t){const n=x7.isBarMatchingLabel;return x7.findBarsMatchingLabels(e,t,n)},findBarsFromLabelsInGroupedByDim(e,t,n,r){const i=t.filter((e=>e.key===n)),o=t.filter((e=>e.key!==n)),a=x7.findBarsFromBarLabelsInGroupedByDim(e,i,r),s=x7.findBarsFromGroupLabelsInGroupedByDim(e,o,r);return a.concat(s)},findStackTotalBarsFromLabelsInStackedByDim(e,t){const n=x7.isBarMatchingLabel;return x7.findBarsMatchingLabels(e,t,n)},findStackTotalBarsFromLabelsInStackedByMeasure(e,t){const n=x7.isBarMatchingLabel;return x7.findBarsMatchingLabels(e,t,n)},findBarsFromLabelsInStackedByDim(e,t,n){const r=x7.isBarMatchingLabelOnProp;return x7.findBarsMatchingLabels(e,t,r,n)},findBarsFromLabelsInStackedByMeasure:(e,t)=>x7.findBarsFromLabelsInSingleDim(e,t),findBarsFromLabels({labels:e,opts:t,filterKeys:n,barAxisKey:r,groupProp:i,stackProp:o}){const{meta:a}=t.layoutService,s=x7.filterNodesOnKeys(t.chart.findShapes("container"),n);return a.isStackedByDimension?x7.findBarsFromLabelsInStackedByDim(s,e,o):a.isStackedByMeasure?x7.findBarsFromLabelsInStackedByMeasure(s,e):a.isGroupedByDimension?x7.findBarsFromLabelsInGroupedByDim(s,e,r,i):x7.findBarsFromLabelsInSingleDim(s,e)},findStackTotalBarsFromLabels({labels:e,opts:t,stackTotalBarKey:n}){const{meta:r}=t.layoutService;if(r.isStacked){const i=x7.filterNodesOnKeys(t.chart.findShapes("container"),[n]);return r.isStackedByDimension?x7.findStackTotalBarsFromLabelsInStackedByDim(i,e):x7.findStackTotalBarsFromLabelsInStackedByMeasure(i,e)}return[]},isSingleBarMode:(e,t)=>(e.isSimple||1===t.length)&&t[0].children&&t[0].children.length,filterNodesOnLabels({labels:e,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:i,barOobMaxKey:o,barOobMinKey:a,groupProp:s,stackProp:l,majorScale:u,majorInnerScale:c,filterFn:d}){const{meta:f}=t.layoutService;if(e.length){let h=x7.findBarsFromLabels({labels:e,opts:t,filterKeys:[n],stackTotalBarKey:r,barAxisKey:i,barOobMaxKey:o,barOobMinKey:a,groupProp:s,stackProp:l});if(d&&(h=h.filter(d)),x7.isSingleBarMode(f,h))return[h[0]];if(h.length){let f=x7.findBarsFromLabels({labels:e,opts:t,filterKeys:[n,o,a],stackTotalBarKey:r,barAxisKey:i,barOobMaxKey:o,barOobMinKey:a,groupProp:s,stackProp:l});d&&(f=f.filter(d));const p=x7.calculateTotalBounds({opts:t,labels:e,bars:f,barKey:n,barAxisKey:i,groupProp:s,majorScale:u,majorInnerScale:c}),m=x7.findStackTotalBarsFromLabels({labels:e,opts:t,stackTotalBarKey:r}),g={key:n,bounds:p,childrenNodes:h,data:h.map((e=>e.data)),stackTotalBarNodes:m};return[g]}return[]}return[]},filterNodesForOob:(e,t,n)=>e.key===t&&0===e.children.length||e.key===n,filterNodes({nodes:e,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:i,groupAxisKey:o,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:u,majorScale:c,majorInnerScale:d}){let f=x7.filterNodesOnKeys(e,[i,o]),h=f&&f.length?[f[0]]:[];const p=x7.filterNodesOnLabels({labels:h,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:i,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:u,majorScale:c,majorInnerScale:d});if(p&&p.length)return p;const{meta:m}=t.layoutService;if(m.isStackedByMeasure){f=x7.filterNodesOnKeys(e,[a,s]),h=f&&f.length?[f[0]]:[];const o=e=>x7.filterNodesForOob(e,n,a),p=x7.filterNodesOnLabels({labels:f,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:i,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:u,majorScale:c,majorInnerScale:d,filterFn:o});if(p&&p.length)return p[0].stackTotalBarNodes=void 0,p}if(m.isStackedByDimension){f=x7.filterNodesOnKeys(e,[a,s]),h=f&&f.length?[f[0]]:[];const o=e=>x7.filterNodesForOob(e,n,a),p=x7.filterNodesOnLabels({labels:f,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:i,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:u,majorScale:c,majorInnerScale:d,filterFn:o});if(p&&p.length)return p[0].stackTotalBarNodes=void 0,p}const g=x7.filterNodesOnKeys(e,[n,a,s]);return g.length?[g[0]]:[]}};function w7(e,t={},n){let r=[];const i=Wg({key:r6.COMPONENT.BASE_TOOLTIP,rtl:n});return Cg(!0,i,{scale:r6.SCALE.MAIN.COLOR,settings:{filter:e=>x7.filterNodes({nodes:e,opts:t,barKey:r6.COMPONENT.BAR,stackTotalBarKey:r6.COMPONENT.STACK_TOTAL_BAR,barAxisKey:r6.COMPONENT.BAR_AXIS,groupAxisKey:r6.COMPONENT.GROUP_AXIS,barOobMaxKey:r6.COMPONENT.BAR_OOB_MAX,barOobMinKey:r6.COMPONENT.BAR_OOB_MIN,groupProp:"group",stackProp:"stack",majorScale:"major",majorInnerScale:"majorInner"}),extract:e=>(r=e.node.childrenNodes?e.node.childrenNodes:[e.node],x7.extractData(e,t,n)),placement:"bounds",afterShow:()=>{var e;const{app:i,properties:o,customTooltipModel:a}=t;i&&(null===(e=i.isInModalSelection)||void 0===e||!e.call(i))&&a.useCustomTooltip&&a.embed&&u3.show({app:i,properties:o,selectedNodes:r,customTooltipModel:a,rtl:n})}},style:{content:{fontFamily:t.themeService.getStyles().fontFamily}}})}const S7={extractData:(e,t)=>[Jg.getTitleRow({title:e.node.data.label},t)],filterNodes(e,t){const n=e.filter((e=>e.data&&e.key===t));return n.length?[n[0]]:[]}};function M7(e,t={},n){if("categorical"!==t.colorService.getMain().getSettings().type)return!1;const r=Wg({key:r6.COMPONENT.LEGEND_CAT_TOOLTIP,rtl:n});return Cg(!0,r,{scale:r6.SCALE.MAIN.COLOR,settings:{filter:e=>S7.filterNodes(e,r6.COMPONENT.LEGEND_COLOR_CAT),extract:e=>S7.extractData(e,n),placement:"pointer",direction:n?"rtl":"ltr"},style:{content:{fontFamily:t.themeService.getStyles().fontFamily}}})}function k7(e,{fill:t}){return{[r6.FORMATTER.MINOR]:{data:{fields:e.viewModel.fields.minor}},[r6.FORMATTER.COLOR]:t&&t.data&&t.data.field?{data:{field:t.data.field}}:{}}}const C7=1,q7=3;function E7(e){return e.getLayoutValue("gridLine.auto")}function D7(e){return!E7(e)&&e.getLayoutValue("gridLine.spacing")===C7}function T7(e){return!E7(e)&&e.getLayoutValue("gridLine.spacing")===q7}const N7=e=>({enabled:e.animations.enabled,trackBy:yD.lines.trackBy,compensateForLayoutChanges:yD.lines.compensateForLayoutChanges}),O7=(e,{themeService:t,layoutService:n,dockService:r,viewModel:i})=>{if(!E7(n)&&function(e){return!e.getLayoutValue("gridLine.spacing")}(n))return!1;const{grid:o}=t.getStyles(),a={key:"grid-line",type:"grid-line",layout:{minimumLayoutMode:B6.measureAxis.minimumLayoutMode},preferredSize:()=>({size:0,edgeBleed:{left:1,right:1,top:1,bottom:1}}),ticks:{show:!D7(n)||((e,t)=>t%2==0),stroke:o.line.major.color},minorTicks:{show:T7(n),stroke:o.line.minor.color},animations:N7(i)};return a["horizontal"===r.meta.major.orientation?"y":"x"]=r6.SCALE.MAIN.MINOR,a};function A7(e,t){const n=[O7(0,t)];return n[0]&&n.push((({dockService:e,themeService:t,viewCache:n,viewModel:r})=>{const i=n.get("minorMinMax");if(i.min>0||i.max<0)return!1;const o=t.getStyles(),a={};return a["horizontal"===e.meta.minor.orientation?"x":"y"]=[{value:0,scale:r6.SCALE.MAIN.MINOR,line:{stroke:o.grid.line.highContrast.color}}],{key:"high-contrast-grid-line",type:"ref-line",scale:r6.SCALE.MAIN.MINOR,lines:a,animations:N7(r)}})(t)),n}const _7="areaPan",L7=e=>({type:"Pan",key:"panorama",options:{event:_7,pointers:1,threshold:10,enable(t,n){return this.started===_7||!n||!!e.actions.scroll.enabled()&&e.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>e.key===r6.COMPONENT.BAR))}},events:{areaPanstart(t){t.preventDefault(),this.started=_7;const n=e.viewState.get("zoom");this[_7]={min:n.min,max:n.max,size:e.chart.component(r6.COMPONENT.BAR).rect.computedInner.width,span:n.max-n.min}},areaPanmove(t){t.preventDefault();const{span:n,min:r,max:i,size:o}=this[_7],a=-t.deltaX/o;e.viewState.set("zoom",{min:Math.min(r+a*n,e.viewCache.get("continuousMax")-n),max:Math.max(i+a*n,e.viewCache.get("continuousMin")+n)})},areaPanend(e){e.preventDefault(),this.started=!1},areaPancancel(e){e.preventDefault(),this.started=!1}}});function I7(e,t){if(e.layoutService.meta.isDiscrete)return{};const{viewCache:n,viewState:r,chart:i}=e,{rtl:o}=t,a=qG.event.onZoom({viewCache:n,viewState:r,chart:i},{threshold:100,rtl:o,targetKey:r6.COMPONENT.BAR}),s={last:0,diff:0};return{type:"Pinch",key:"continuous-pinch-zoom",options:{event:"zoom",pointers:2,threshold:0,enable:(t,n)=>!n||!!e.actions.scroll.enabled()&&e.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>e.key===r6.COMPONENT.BAR))},events:{zoomstart(e){s.last=e.scale,e.preventDefault()},zoommove(e){const t=e.scale-s.last;(function(e){return Math.abs(e)>.01})(t)&&a(e.center,t>0?1:-1),e.preventDefault(),s.last=e.scale}}}}function R7({chart:e},t,n){const r=e.component(r6.COMPONENT.BASE_TOOLTIP);var i;r&&r.show&&(r.emit("hide"),null!=n&&null!==(i=n.customTooltipModel)&&void 0!==i&&i.useCustomTooltip&&t&&t({},r,{nodes:[],opts:n,customTooltipModel:n.customTooltipModel,hide:!0}));const o=e.component(r6.COMPONENT.LEGEND_CAT_TOOLTIP);o&&o.show&&o.emit("hide");const a=e.component(r6.COMPONENT.TREND_LINES_TOOLTIP);a&&a.show&&a.emit("hide")}function P7(e,t){const{viewCache:n,viewState:r,chart:i,trendLineModel:o,layoutService:a}=e,{rtl:s}=t,l=e.layoutService.meta.isContinuous?qG.event.onZoom({viewCache:n,viewState:r,chart:i},{rtl:s,threshold:50,targetKey:r6.COMPONENT.BAR}):void 0,u=U4({majorInnerScale:r6.SCALE.MAIN.MAJOR_INNER,tooltip:r6.COMPONENT.TREND_LINES_TOOLTIP,tooltipOverlay:r6.COMPONENT.TREND_LINES_TOOLTIP_OVERLAY},{chart:i,viewState:r,trendLineModel:o,layoutService:a,rtl:s}),c=[r6.COMPONENT.BAR,r6.COMPONENT.BAR_AXIS,r6.COMPONENT.GROUP_AXIS,r6.COMPONENT.BAR_OOB_MAX,r6.COMPONENT.BAR_OOB_MIN],d=e.customTooltipModel.utils,f=e.debouncer(d.displayTooltip,d.DEBOUNCE_THRESHOLD);return{type:"native",events:{wheel(t){let n,r=!1;if(e.actions.scroll.enabled()){const i={x:t.clientX,y:t.clientY};[n]=e.chart.componentsFromPoint(i).filter((e=>e.key===r6.COMPONENT.BAR)),n&&(e.layoutService.meta.isContinuous&&l(i,Math.sign(-t.deltaY)),r=!0)}!r&&e.actions.interact.enabled()&&([n]=e.chart.componentsFromPoint(t).filter((e=>e.key===r6.COMPONENT.LEGEND_COLOR_CAT)),n&&(r=!0,function(e,t){const n=(Math.abs(e.deltaX)>Math.abs(e.deltaY)?e.deltaX:e.deltaY)>=0?"next":"prev";t.emit(n)}(t,n))),r&&t.preventDefault(),R7(e,f,e)},mousemove(t){if(e.actions.tooltip.enabled()){if(u(t))return;const n=this.chart.componentsFromPoint({x:t.clientX,y:t.clientY}),r=this.chart.component(r6.COMPONENT.BASE_TOOLTIP);if(r&&r.show)if(n.some((e=>c.indexOf(e.key)>-1))){const{customTooltipModel:n}=e;if(n.useCustomTooltip&&d.checkIfPromisesExist({customTooltipModel:n})){const i=d.getNodes(t,this.chart);f(t,r,{nodes:i,opts:e,customTooltipModel:n})}else r.emit("show",t)}else r.emit("hide");const i=this.chart.component(r6.COMPONENT.LEGEND_CAT_TOOLTIP);i&&i.show&&(n.some((e=>e.key===r6.COMPONENT.LEGEND_COLOR_CAT))?i.emit("show",t):i.emit("hide"))}},mouseup(t){2===t.button&&R7(this,f,e)},mouseleave(){R7(this,f,e)}}}}const z7=(e,t)=>({type:"hammer",enable:!0,gestures:[...(t.hammer||{}).gestures||[],...YG({...e,componentKey:"scrollbar",rtl:t.rtl}).gestures,...e.layoutService.meta.isDiscrete?e.discrete.interactions.gestures:[L7(e,t.rtl),I7(e,t)]]});function F7(e,t){const n=[z7(e,t),P7(e,t),YG({...e,componentKey:"scrollbar",rtl:t.rtl}).native];return e.layoutService.meta.isDiscrete&&n.push(e.discrete.interactions.native),n}const j7=e=>({enabled:e.animations.enabled,compensateForLayoutChanges:yD.bars.compensateForLayoutChanges});const B7=(e,t,{collectionKey:n})=>{if(!_G({layoutService:t.layoutService}).miniChart)return!1;if(t.reducedDataModel.mode.isContinuous)return function(e,{reducedDataModel:t,colorService:n,continuousDataModel:r,viewModel:i},{collectionKey:o}){return{type:"box",key:"mini-marker",layout:{dock:"@scrollbar"},show:()=>r.getDimensionCardinality()>1,data:{collection:o},settings:{box:Cg(!0,{},e.settings.box,{minWidthPx:2,fill:n.getMini().getColor(),strokeWidth:0}),major:Cg(!0,{},e.settings.major,{scale:t.scales.major}),minor:e.settings.minor,orientation:e.settings.orientation,oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},animations:j7(i)}}(e,t,{collectionKey:n});const{mode:r,scales:i}=t.reducedDataModel;let o;return r.isGroupedByDimension&&!r.isReduced?o=({scale:e,datum:t})=>e([t.group.value,t.value])+e.bandwidth([t.group.value,t.value])/2:r.isGroupedByMeasure&&(o=({scale:e,datum:t})=>e([t.value,t.measureIndex.value])+e.bandwidth()/2),{type:"box",key:"mini-marker",layout:{dock:"@scrollbar"},show:()=>t.discrete.query.getCanScroll(),data:{collection:n},settings:{box:{...e.settings.box,fill:r.isReduced||r.isStackedByDimension?t.colorService.getMain().getSettings().others:t.colorService.getMain().getColor(),strokeWidth:0},major:{scale:i.major,fn:o},minor:{scale:i.minor},orientation:e.settings.orientation,oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},animations:j7(t.viewModel)}},{measureText:H7}=Sp.renderer("svg")();function V7(e,t,n){const r=function(e){const t=Cg(!0,{},e);return delete t.data,t}(t.minor),i=function(e,t,{majorScaleInvert:n,maxPxStep:r,align:i,getProp:o}){let a={invert:n,data:{extract:e.mode.isDimensionless?e.fields.minor.map(((e,t)=>({field:e,value:t}))):{source:"miniCube",field:"qDimensionInfo/0"}},type:e.mode.isDimensionless?"band":void 0,maxPxStep:r,align:i};return e.mode.isStackedByDimension?a.data.extract.field="qDimensionInfo/1":e.mode.isGroupedByDimension?e.mode.isReduced||(a.data={source:"miniCube",hierarchy:{value:e=>e.qElemNumber}}):e.mode.isGroupedByMeasure?(a=Cg(!0,{},t),a.data.extract.source="miniCube"):e.mode.isContinuous&&(a=Cg(!0,{},t,{min:()=>o("continuousMin"),max:()=>o("continuousMax")})),a}(e,t.major,n);return{reducedMinor:r,reducedMajor:i}}const $7=125,U7={NARROW:50,MEDIUM:100,WIDE:200};function W7(e,t){const n=function(e){const t=e.getLayoutValue("measureAxis.spacing",1);switch(t){case.5:return U7.NARROW;case 1:return U7.MEDIUM;case 2:return U7.WIDE;default:return t*$7}}(t);return Math.max(1,Math.round(e/n))}const Y7=10;function K7(e,t,n){return 0===t||t===Math.floor((n.length-1)/2)||t===n.length-1}function G7(e,t,n){return 0===t||0===e||t===n.length-1}function X7(e){for(let t=1;t<e.length;t++)if(e[t]===e[t-1])return!0;return!1}function J7(e,t,n,r,i){e.domain([t,n]),e.nice(Y7);const[o,a]=e.domain();let s=e.ticks(Y7);const l=function(e){return e.length%2==0}(s),u=function(e){const t=Math.round(.3*e.length),n=t,r=e.length-t;return e.slice(n,r).some((e=>0===e))}(s),c=u?G7:K7;s=s.filter(c),l&&!u&&!r&&s.length>1&&(s=[s[0],(s[0]+s[s.length-1])/2,s[s.length-1]]);const d=i?i.formatter(r6.FORMATTER.MINOR):void 0;return X7(d?s.map(d):s)&&(s=[s[0],s[s.length-1]]),{roundedMin:o,roundedMax:a,ticks:s}}function Q7(e,t,n,r,i,o,a,s){const l=o.formatter(r6.FORMATTER.MINOR),u=s.getStyles(),c="horizontal"===a.meta.major.orientation?"height":"width",d=e=>H7({text:e,fontSize:u.axis.label.name.fontSize,fontFamily:u.axis.label.name.fontFamily})[c];let[f,h]=e.domain(),p=e.ticks(r);function m(){const e=p.map(l);return!X7(e)&&function(e){const t=i/p.length;return Math.max(...e.map(d))<=t}(e)}for(let i=r-1;i>0&&!m();i--)e.domain([t,n]),e.nice(i),[f,h]=e.domain(),p=e.ticks(i);return{roundedMin:f,roundedMax:h,ticks:p}}const Z7=(e,t)=>e.value-t.value,e8=e=>({value:e,isMinor:!1}),t8=e=>({value:e,isMinor:!0});function n8(e,t,n){const r=Number.isNaN(t)&&Number.isNaN(n)?3:2;return e.filter((e=>(e=>Number.isNaN(t)||e>=t)(e)&&(e=>Number.isNaN(n)||e<=n)(e))).length<=r}function r8({chart:e,viewCache:t,dockService:n,layoutService:r,themeService:i}){const{explicitMin:o,explicitMax:a,hasExplicitMin:s,hasExplicitMax:l}=t.get("minorMinMax"),{min:u,max:c}=function(e){let{min:t,max:n}=e.get("minorMinMax");return t===n&&0===t&&(t-=1,n+=1),{min:t,max:n}}(t),d=HC((()=>{const d=function(e,t,n){let r;return e?r=n.meta.chart.size:({rect:r}=t.component(r6.COMPONENT.BAR)),"horizontal"===n.meta.major.orientation?r.height:r.width}(t.get("isPreRender"),e,n),f=W7(d,r),h=function(e,t,n){const r=ex().domain([e,t]);return r.nice(n),r}(u,c,f);let p,m,g=[];"SPARK"===n.meta.chart.mode?({roundedMin:p,roundedMax:m}=function(e,t){return{roundedMin:e,roundedMax:t}}(u,c)):(({roundedMin:p,roundedMax:m,ticks:g}=Q7(h,u,c,f,d,e,n,i)),n8(g,o,a)&&({roundedMin:p,roundedMax:m,ticks:g}=J7(h,u,c,s||l,e)));const y=function(e,t){const n=[];for(let r=0;r<e.length-1;r++){const i=e[r],o=(e[r+1]-i)/(t+1);for(let e=1;e<=t;e++)n.push(i+o*e)}return n}(g,1);g=function(e,t,n){return e&&n.length&&!n.some((e=>e===t))?(n.unshift(t),n.filter((e=>e>=t))):n}(s,o,g),g=function(e,t,n){return e&&n.length&&!n.some((e=>e===t))?(n.push(t),n.filter((e=>e<=t))):n}(l,a,g);const v=function(e,t){return[...e.map(e8),...t.map(t8)].sort(Z7)}(g,y);return{roundedMin:p,roundedMax:m,ticks:v}}),(()=>t.get("isPreRender")));return{values:()=>d().ticks,min:()=>s?o:d().roundedMin,max:()=>l?a:d().roundedMax}}function i8(e,{picasso:t,discrete:n,layoutService:r,dockService:i,viewModel:o,viewCache:a,reducedDataModel:s,colorService:l,themeService:u,viewState:c,chart:d},{localeInfo:f,rtl:h}){const{meta:p}=r,{fields:m}=o,g=()=>{if("custom"!==r.getLayoutValue("dimensionAxis.axisDisplayMode"))return Math.min(200,i.meta.chart.size["horizontal"===i.meta.major.orientation?"height":"width"]/4)},y=!("none"===r.getLayoutValue("measureAxis.show"))?(v=i.meta.minor.orientation,b=i.meta.minor.dock,"vertical"===v?"near"===b||"left"===b?0:1:"near"===b||"bottom"===b?1:0):.5;var v,b;const x={},w="vertical"===i.meta.minor.orientation&&h,S=l.getMain().getScales(),M=l.getMini().getScales();if(Object.assign(x,S,{reducedFill:M.reducedFill}),x[r6.SCALE.MAIN.MINOR]=function({chart:e,viewModel:{fields:t},dockService:n,viewCache:r,layoutService:i,themeService:o},{rtl:a}){const s=r8({chart:e,dockService:n,viewCache:r,layoutService:i,themeService:o}),l={invert:"vertical"===n.meta.minor.orientation||a,ticks:{values:s.values},minorTicks:{count:1},min:s.min,max:s.max};return i.meta.isStacked||(l.data={source:"qHyperCube",fields:t.minor}),l}({chart:d,viewModel:o,dockService:i,viewCache:a,layoutService:r,themeService:u},{rtl:h}),p.isGroupedByDimension)[r6.SCALE.MAIN.MAJOR_INNER,r6.SCALE.MAIN.MAJOR].forEach(((e,t)=>{x[e]={invert:w,data:{source:"qHyperCube",hierarchy:{label:e=>e.qText?e.qText:"",value:e=>e.qElemNumber,props:{...o.selectionDimensionProp(t),group:p.isGroupedByDimension?{field:m.majorGroup}:void 0}}},label:({datum:e})=>e.label,ticks:{depth:t+1},maxPxStep:g,align:y}})),o.isDimensionLocked(0)||(x[r6.SCALE.MAIN.MAJOR_INNER].data.hierarchy.props.axisSelectionDimension={field:0});else if(p.isGroupedByMeasure)x[r6.SCALE.MAIN.MAJOR]={type:"group-by-measure",invert:w,data:{extract:{source:"qHyperCube",field:"qDimensionInfo/0",props:{axisSelectionDimension:{field:0}}}},measureCount:e.qHyperCube.qMeasureInfo.length,maxPxStep:g,align:y};else if(p.isTime){const{innerTime:e,outerTime:n}=function(e,t){const{layoutService:n,viewModel:r,viewCache:i,picasso:o,viewState:a,localeInfo:s,themeService:l}=e,u=()=>n.getHyperCubeValue("qAxisData.qAxis",[]),c=o.formatter("q-time"),d=l.getStyles(),f=e=>H7({text:e,fontSize:d.axis.label.name.fontSize,fontFamily:d.axis.label.name.fontFamily});i.set("qTimeAxisCache",[]);const h={get:(e,t=0)=>{const n=i.get("qTimeAxisCache");return n[t]&&n[t][0]===e?n[t][1]:void 0},set:(e,t,n=0)=>{i.get("qTimeAxisCache")[n]=[e,t]},key:({distance:e})=>{const{min:t,max:n}=a.get("zoom"),r=(n-t)/(i.get("continuousMax")-i.get("continuousMin")),o=u().map((e=>e.qName));return[e,Number.parseFloat(r).toFixed(12),...o].toString()}};return{innerTime:{data:{field:r.fields.majorNumeric},type:"q-time-axis",qAxis:u,field:r.fields.majorNumeric,min:()=>a.get("zoom").min,max:()=>a.get("zoom").max,invert:!!t,formatter:{fn:c,localeInfo:s,qNumFormat:n.getHyperCubeValue("qDimensionInfo.0",{}).qNumFormat,measureText:f},ticks:{generator:{type:"d3",initialMin:a.get("zoom").min},level:"inner",anchor:"start",clamp:!0},cache:h},outerTime:{data:{field:r.fields.majorNumeric},type:"q-time-axis",qAxis:u,field:r.fields.majorNumeric,min:()=>a.get("zoom").min,max:()=>a.get("zoom").max,invert:!!t,formatter:{fn:c,localeInfo:s,qNumFormat:n.getHyperCubeValue("qDimensionInfo.0",{}).qNumFormat,measureText:f},ticks:{generator:{type:"d3"},level:"outer",anchor:"start",clamp:!0},cache:h}}}({picasso:t,localeInfo:f,viewState:c,viewModel:o,viewCache:a,themeService:u,layoutService:r},h);x[r6.SCALE.MAIN.MAJOR_INNER]=e,x[r6.SCALE.MAIN.MAJOR]=n}else p.isContinuous?x[r6.SCALE.MAIN.MAJOR]={type:"linear",invert:w,data:{extract:{key:"qHyperCube",field:m.majorNumeric}},ticks:{forceBounds:!0,count:c.get("zoom").min===c.get("zoom").max?1:void 0},minorTicks:{count:1},min:()=>c.get("zoom").min,max:()=>c.get("zoom").max}:x[r6.SCALE.MAIN.MAJOR]={invert:w,data:{extract:p.isDimensionless?m.minor.map(((t,n)=>({field:t,label:()=>e.qHyperCube.qMeasureInfo[n].qFallbackTitle,value:n}))):{source:"qHyperCube",field:"qDimensionInfo/0",props:{axisSelectionDimension:{field:0}}}},type:p.isDimensionless?"band":void 0,maxPxStep:g,align:y};const{reducedMinor:k,reducedMajor:C}=V7(s,{major:x[r6.SCALE.MAIN.MAJOR],minor:x[r6.SCALE.MAIN.MINOR]},{majorScaleInvert:w,maxPxStep:g,align:y,getProp:a.get});return p.isDiscrete&&(x[r6.SCALE.MAIN.MAJOR].range=n.query.getScaleRange,p.isGroupedByDimension&&(x[r6.SCALE.MAIN.MAJOR_INNER].range=n.query.getScaleRange)),x[s.scales.major]=C,x[s.scales.minor]=k,x}function o8(e,t,n){const{layoutService:r,colorService:i}=e;return function(e,t){if(!e.targets)throw new Error("Missing 'targets' property");return{interactions:[P6(e,t)],components:[]}}({targets:[r.meta.isStackedByDimension&&r.getHyperCubeValue("qStackedDataPages.0.qArea.qHeight",NaN)>1?r6.COMPONENT.STACK_TOTAL_BAR:r6.COMPONENT.BAR,r6.COMPONENT.BAR_AXIS,r6.COMPONENT.GROUP_AXIS,"outer-axis-overlay","inner-axis-overlay",r6.COMPONENT.LEGEND_COLOR_CAT],components(e,t){const r={action:e.srcEvent.ctrlKey||n?"set":"toggle",contexts:["selection"],key:t[0].key};return r6.COMPONENT.BAR===t[0].key?[{...r,data:["selectionDimension"]}]:[r6.COMPONENT.BAR_AXIS,r6.COMPONENT.GROUP_AXIS].includes(t[0].key)?[{...r,data:["selectionDimension","axisSelectionDimension"]}]:[r]}},{...e,isLocked:n=>n.some((e=>e.key===r6.COMPONENT.LEGEND_COLOR_CAT))?i.getMain().isSelectionLocked({isMeasureSelectionLocked:t}):e.isLocked(n)})}function a8(e){const t=e.layoutService.meta.isStackedByDimension&&e.layoutService.getHyperCubeValue("qStackedDataPages.0.qArea.qHeight",NaN)>1;return function(e,t){if(!e.componentTargetKey)throw new Error("Missing 'componentTargetKey' property");const n={key:"lasso",...e},r=L6(n);return{interactions:[R6(n,t)],components:[r]}}({key:"lasso",componentTargetKey:r6.COMPONENT.BAR,components:[t?{key:r6.COMPONENT.STACK_TOTAL_BAR,contexts:["selection"],action:"add"}:{key:r6.COMPONENT.BAR,contexts:["selection"],action:"add",data:["selectionDimension"]}]},e)}function s8(e){return function(e,t){const n=function(e){const{key:t,targets:n,components:r,fillTargets:i,dock:o}=e;return{key:t,type:"brush-area-dir",layout:{dock:n.map((e=>`@${e}`)).join(",")},settings:{multiple:!0,brush:{components:r},direction:"left"===o||"right"===o?"vertical":"horizontal",bubbles:{align:"left"===o||"top"===o?"end":"start",placement:"inside"},target:{components:i,fill:"rgba(82,204,82,0.2)"}}}}(e);return{interactions:[F6(e,t,"area")],components:[n]}}({eventName:"discreteRange",components:[{key:r6.COMPONENT.BAR,contexts:["selection"],action:"set",data:["selectionDimension"]}],key:"discreteRangeBrush",targets:["group-axis",r6.COMPONENT.BAR_AXIS,r6.COMPONENT.BAR],fillTargets:["group-axis",r6.COMPONENT.BAR_AXIS],dock:e.dockService.meta.major.dock},e)}function l8(e,t,n){const{selectionService:r}=e,{isUnsupportedFeature:i}=t,o=void 0===n,a=r.getIsSingleSelect(n),s=o8(e,o,a);if(o||a)return{components:[...s.components],gestures:[...s.interactions]};const l=a8(e),u=function(e,t){return e.layoutService.meta.isStacked||null!=t&&t("rangeSelections")?{components:[],interactions:[]}:j6({eventName:"measureRange",key:"measureRangeBrush",targets:["y-axis",r6.COMPONENT.BAR],fillTargets:["y-axis"],dock:e.dockService.meta.minor.dock,scale:r6.SCALE.MAIN.MINOR,onEdited(){e.actions.select.emit("end","measureRange")}},e)}(e,i),c=function(e){return e.layoutService.meta.isContinuous?j6({eventName:"continuousRange",key:"continuousRangeBrush",targets:e.layoutService.meta.isTime?["outer-time-axis","inner-time-axis",r6.COMPONENT.BAR]:["continuous-axis",r6.COMPONENT.BAR],fillTargets:e.layoutService.meta.isTime?["outer-time-axis","inner-time-axis"]:["continuous-axis"],observeBrush:!0,multiple:!0,dock:e.dockService.meta.major.dock,scale:e.layoutService.meta.isTime?r6.SCALE.MAIN.MAJOR_INNER:r6.SCALE.MAIN.MAJOR,toLabel({datum:t,data:n,scale:r}){const i=e.layoutService.meta.isTime?r.formatter():e.chart.formatter(r6.FORMATTER.MINOR),o=e.chart&&e.chart.brushSelectionIncludeMax;return`${t!==Math.max(...n)||o?"":"<"}${i(t)}`}},e):{components:[],interactions:[]}}(e),d=s8(e);return{components:[...s.components,...l.components,...u.components,...d.components,...c.components],gestures:[...l.interactions,...s.interactions,...u.interactions,...d.interactions,...c.interactions]}}function u8({layoutService:e,viewModel:t,dockService:n}){var r;const{meta:i}=e;if(!i.isStackedByDimension||i.isContinuous)return!1;const{fields:o}=t,a=e.getLayoutValue("components",null),s=a?a.filter((e=>"bar"===e.key))[0]:null;return{key:"shadow-bar",type:"box",data:{extract:[{field:o.majorStack,filter:e=>0!==e.qDown||0!==e.qUp,props:{start:{value:e=>(e=>Number(e.map((e=>e.qMaxPos)).reduce(((e,t)=>e+t),0).toFixed(13)))(e.qSubNodes)},end:{value:e=>Number(e.qMaxPos.toFixed(13))}}},{field:o.majorStack,filter:e=>0!==e.qDown||0!==e.qUp,props:{start:{value:e=>(e=>Number(e.map((e=>e.qMinNeg)).reduce(((e,t)=>e+t),0).toFixed(13)))(e.qSubNodes)},end:{value:e=>Number(e.qMinNeg.toFixed(13))}}}]},settings:{major:{scale:r6.SCALE.MAIN.MAJOR},minor:{scale:r6.SCALE.MAIN.MINOR},orientation:n.meta.minor.orientation,box:{width:null!=s&&null!==(r=s.style)&&void 0!==r&&r.width&&s.style.width>0?s.style.width:.7,fill:()=>({type:"pattern",fill:"rgba(165, 165, 165, 0.8)",width:4,height:4,shapes:[{type:"rect",x:0,y:3,width:1,height:1},{type:"rect",x:1,y:2,width:1,height:1},{type:"rect",x:2,y:1,width:1,height:1},{type:"rect",x:3,y:0,width:1,height:1}]})},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},animations:{enabled:t.animations.enabled,trackBy:yD.shadowBars.trackBy,compensateForLayoutChanges:yD.bars.compensateForLayoutChanges}}}const c8={min:"Min",max:"Max"};function d8(e,t,n){const r=n?e.implicitMax:e.implicitMin;return!function(e,t,n){return void 0===n?t7(e,t)||n7(e,t):n===r7.MAX?t7(e,t):n7(e,t)}(Number(r.toFixed(13)),e,t)}function f8(e,{barComponent:t,type:n,isStacked:r}){var i,o,a;const{viewCache:s,layoutService:l,dockService:u}=e,c=s.get("minorMinMax"),d=n===r7.MAX;if(function(e,t){return!e[`hasOther${c8[t]}`]}(c,n)){if(function(e,t){return!e[`hasExplicit${c8[t]}`]}(c,n))return!1;if(d8(c,n,d))return!1}if(function(e,t,n){const r=n?e=>e<0:e=>e>0;return e[`hasExplicit${c8[t]}`]&&r(e[`explicit${c8[t]}`])}(c,n,d))return!1;let f="end";r&&(f=d?"sumOfPositives":"sumOfNegatives");const h=function(e){let t;return()=>(void 0===t&&(t=e()),t)}((()=>e.chart.scale(r6.SCALE.MAIN.MINOR)[n]())),p=d?e=>e.datum[f].value>h():e=>e.datum[f].value<h(),m=r6.COMPONENT.BAR,g=e.layoutService.getLayoutValue("components",[]),y=g?g.filter((e=>e.key===m))[0]:null;return{type:"box-sliced-hat",key:`sliced-hat-${n}`,layout:{dock:d?u.meta.minor.end:u.meta.minor.start},data:t.data,brush:t.brush,settings:{orientation:t.settings.orientation,major:t.settings.major,minor:t.settings.minor,hat:Cg({},t.settings.box,{fill:l.meta.isStacked?"#999":t.settings.box.fill,alignment:1,opacity:1,show:p,width:X6({layoutService:e.layoutService,discrete:e.discrete,componentKey:m}),strokeWidth:null!=y&&null!==(i=y.style)&&void 0!==i&&i.strokeWidth?Y6.BAR.STROKE.WIDTH[y.style.strokeWidth.toUpperCase()]:Y6.BAR.STROKE.WIDTH.NONE,stroke:null!==(o=null==y||null===(a=y.style)||void 0===a||null===(a=a.strokeColor)||void 0===a?void 0:a.color)&&void 0!==o?o:Y6.BAR.STROKE.COLOR})}}}function h8(e,t){var n;let r;return r=e.isContinuous?1:.7,!e.isContinuous&&null!=t&&null!==(n=t.style)&&void 0!==n&&n.width&&t.style.width>0?t.style.width:r}function p8(e,{collectionKey:t},n){const{meta:r}=e.layoutService,{fields:i}=e.viewModel,o=r.isStackedByDimension&&!r.isContinuous?"qValue":"qNum",a=e=>"NaN"===e[o]?0:e[o];function s(t){const n=e.ds.field(t).raw(),r=e.ds.field(t).formatter(),i=Lg.shouldUseFormat(n);return{field:t,reduceLabel:"none",value:a,label:e=>i?(e=>"NaN"===e[o]?"-":r(e[o]))(e):e.qText}}const l=r.isStackedByDimension?e=>"NaN"===e.qValue:e=>!!e.qIsNull;function u(e){return{field:e,reduceLabel:"none",reduce:"first",value:l}}const c={key:t,data:{extract:i.minor.map(((t,o)=>{const a=e.colorService.getMain().getDatumProps(o),l=e.colorService.getMini().getDatumProps(o),c=a[Object.keys(a)[0]],d=null==c?void 0:c.field,f=d?{field:d,reduceLabel:"none",value:e=>void 0!==e.qNum&&"NaN"!==e.qNum?e.qNum:e.qText||"-"}:void 0,h={field:r.isDimensionless?t:i.major,props:{...e.viewModel.selectionDimensionProp(),axisSelectionDimension:{field:0},start:0,end:s(t),null:u(t),segment:r.isStacked?s(t):void 0,group:r.isGroupedByDimension?{field:i.majorGroup}:void 0,stack:r.isStacked?{field:i.majorStack}:void 0,measureIndex:r.isGroupedByDimension||r.isStackedByDimension?void 0:o,timeStart:r.isContinuous?{field:i.majorNumeric}:void 0,timeEnd:r.isContinuous?{field:i.majorNumeric}:void 0,fillTooltip:f,...a,...l,id:{value:e=>`r${e.qRow}e${e.qElemNumber}m${o}`},customTooltipAttrExps:0!==r.dimensionCount?m3.getNode(e.layoutService.getLayout(),r):void 0}};return r.isDimensionless&&(h.value=o),void 0!==n&&(h.source=n),Lg.deleteUndefinedProperties(h.props),h}))}};return r.isStacked&&(c.data.stack={stackKey:e=>e.stack.value,value:e=>e.end.value,offset:"diverging"}),c}function m8({layoutService:e,viewModel:t},{collectionKey:n}){const{meta:r}=e,{fields:i}=t;if(!r.isStacked)return!1;let o;return o=r.isStackedByMeasure?function(e,t){const n={field:0,props:{sumOfPositives:{fields:t.minor.map((e=>({field:e}))),value:e=>e.reduce(((e,t)=>t>0?e+t:e),0),reduceLabel:"none"},sumOfNegatives:{fields:t.minor.map((e=>({field:e}))),value:e=>e.reduce(((e,t)=>t<0?e+t:e),0),reduceLabel:"none"},null:{fields:t.minor.map((e=>({field:e}))),value:e=>Array.isArray(e)&&e.every((e=>"NaN"===e)),reduceLabel:"none"}}};if(e.isContinuous){const e={field:t.major,value:e=>e.qNum,reduceLabel:"none"};n.props.timeStart=e,n.props.timeEnd=e,n.value=e=>e.qNum}return n}(r,i):function(e,t){if(!e.isContinuous)return{field:t.majorStack,reduceLabel:"none",props:{sumOfPositives:{value:e=>Number(e.qMaxPos.toFixed(13))},sumOfNegatives:{value:e=>Number(e.qMinNeg.toFixed(13))},null:{value:e=>{const{qSubNodes:t=[]}=e;return t.every((e=>"NaN"===((e.qSubNodes||[])[0]||{}).qValue))}}}};const n={field:t.majors[0],value:e=>e.qNum,reduceLabel:"none"};return{field:t.majorStack,trackBy:e=>e.qNum,reduce:e=>e[0],props:{sumOfPositives:{field:t.minor[0],reduceLabel:"none",reduce:e=>e.reduce(((e,t)=>t>0?e+t:e),0)},sumOfNegatives:{field:t.minor[0],reduceLabel:"none",reduce:e=>e.reduce(((e,t)=>t<0?e+t:e),0)},timeStart:n,timeEnd:n}}}(r,i),{key:n,data:{extract:o}}}const g8="main-collection",y8="stack-total-collection";const v8="mini-collection",b8="mini-stack-collection",x8="mini-continuous-collection",w8="miniCube",S8=(e,t)=>{const n=(e=>{const t=[p8(e,{collectionKey:g8})];return e.layoutService.meta.isStacked&&t.push(m8(e,{collectionKey:y8})),t})(t),r=((e,t)=>{const n=[];return _G({layoutService:t.layoutService}).miniChart&&(t.reducedDataModel.mode.isContinuous?n.push(p8(t,{collectionKey:x8},w8)):t.layoutService.meta.isStacked?n.push(function(e,{collectionKey:t}){const{colorService:n,reducedDataModel:{fields:r,mode:i}}=e;return{key:t,data:{extract:r.minor.map(((e,t)=>{const o={end:{field:e,reduceLabel:"none"},...i.isStackedByMeasure&&!i.isReduced?n.getMain().getDatumProps(t):{}};return i.isContinuous&&(o.timeStart={field:r.major,value:e=>e.qNum},o.timeEnd=o.timeStart),{source:"miniCube",field:r.major,props:o}})),stack:{stackKey:e=>e.value,value:e=>e.end.value,offset:"diverging"}}}}(t,{collectionKey:b8})):n.push(function(e,{collectionKey:t}){const{colorService:n,reducedDataModel:{fields:r,mode:i}}=e;return{key:t,data:{extract:r.minor.map(((e,t)=>{const o=i.isReduced?{}:n.getMain().getDatumProps(t),a={end:{field:e},start:0,group:{field:r.majorGroup},measureIndex:t,...o},s={source:"miniCube",field:i.isDimensionless?e:r.major,props:a};return i.isDimensionless&&(s.value=t),s}))}}}(t,{collectionKey:v8}))),n})(0,t);return n.concat(r)};function M8(e,t,n,r){const i=[{position:e,onBackground:!0,justify:0,overflow:r}];if(t){const t={fill:"#e6e6e6",padding:{left:2,right:2,top:2,bottom:2}};i.push({position:"inside",onBackground:!1,justify:"outside"===e?1:0,background:n?t:void 0})}return i}function k8({layout:e,component:t},n,r){if(!y7(e,n))return!1;const{layoutService:i,chart:o,dockService:a,viewModel:s,themeService:l,styleService:u}=n,{meta:c}=i,d=!g7(e,n),f=l.getStyles(),h=u.label.getStyle(),p=h.useContrastColor;function m(e){const t=o.formatter(r6.FORMATTER.MINOR);return t?t(e):e}const g={label:function(e){return 0===e.data.sumOfPositives.value&&0!==e.data.sumOfNegatives.value?"":m(e.data.sumOfPositives.value)},simplifiedPlacements:M8("outside",d,p,c.isContinuous),style:f.label.value},y={label:function(e){return 0===e.data.sumOfNegatives.value&&0!==e.data.sumOfPositives.value?"":m(e.data.sumOfNegatives.value)},simplifiedPlacements:M8("opposite",d,p,c.isContinuous),style:f.label.value},v=[d7(Cg(n,g)),d7(Cg(n,y))];return{key:"stack-total-labels",type:"labels",renderer:AD(n.flags),layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:t,selector:"rect",strategy:{type:"bar",settings:{direction:e=>m7(e.data.sumOfPositives.value,a.meta.minor.orientation,r),labels:v,fontSize:parseInt(h.fontSize,10),fontFamily:h.fontFamily,linkData:yD.labels.linkData}}}]},animations:{enabled:s.animations.enabled,trackBy:yD.labels.trackBy,compensateForLayoutChanges:yD.labels.compensateForLayoutChanges}}}function C8(e,t,n){const r=[{position:e,justify:0,overflow:n,background:{padding:{left:1,right:1,top:1,bottom:1}}}];return t&&r.push({position:"inside",onBackground:!1,justify:1,background:{padding:{left:2,right:2,top:2,bottom:2}}}),r}function q8({layout:e,type:t},n){const{layoutService:r,viewCache:i,themeService:o,styleService:a}=n,{meta:s}=r,{isStacked:l}=s;if(!l&&!g7(e,n)||l&&!y7(e,n))return!1;const u=i.get("minorMinMax");if(!u.hasExplicitMinMax||t===r7.MAX&&0===u.max||t===r7.MIN&&0===u.min)return!1;if(!o7(t===r7.MAX?u.implicitMax:u.implicitMin,u,t))return!1;const c=o.getStyles(),d=a.label.getStyle();let f=e=>e.data.end.label;s.isStacked&&(f=t===r7.MAX?function(e){if(o7(e.data.sumOfNegatives.value,u,t)){const t=0===e.data.sumOfNegatives.value?e.data.sumOfPositives.value:e.data.sumOfNegatives.value,r=n.chart.formatter(r6.FORMATTER.MINOR);return r?r(t):t}return""}:function(e){if(o7(e.data.sumOfPositives.value,u,t)){const t=0===e.data.sumOfPositives.value?e.data.sumOfNegatives.value:e.data.sumOfPositives.value,r=n.chart.formatter(r6.FORMATTER.MINOR);return r?r(t):t}return""});const h={label:f,simplifiedPlacements:C8("outside",true,s.isContinuous),styles:c},p={label:f,simplifiedPlacements:C8("opposite",true,s.isContinuous),styles:c},m=[d7(Cg(n,h)),d7(Cg(n,p))],g="vertical"===n.dockService.meta.minor.orientation?"down":"right",y=[{component:`${r6.COMPONENT.GHOST_BAR_OOB}-${t}`,selector:"rect",strategy:{type:"bar",settings:{direction:g,labels:m,fontSize:parseInt(d.fontSize,10),fontFamily:d.fontFamily,linkData:yD.labels.linkData}}}];return{key:`bar-oob-labels-${t}`,type:"labels",renderer:AD(n.flags),layout:{minimumLayoutMode:"XSMALL"},settings:{sources:y},animations:{enabled:n.viewModel.animations.enabled,trackBy:yD.labels.trackBy,compensateForLayoutChanges:yD.labels.compensateForLayoutChanges}}}function E8(e){return"all"===e||"title"===e}function D8(e,t,n){if(!E8(e.dimensionAxis.show)||t.layoutService.meta.isDimensionless)return!1;const{actions:r,properties:i}=t,o={hyperCube:e.qHyperCube,hyperCubeDef:i&&i.qHyperCubeDef,isDimension:!0,disabled:()=>{var e;return!(null!=r&&null!==(e=r.interact)&&void 0!==e&&e.enabled())},model:t.model,app:t.app,translator:t.translator,rtl:n,selections:t.selections,supportConditional:t.flags.isEnabled("IM_1579_HIDE_DIM_MEA"),isEnabled:t.flags.isEnabled},a=t.styleService.axis.title.getStyle();return t.layoutService.meta.hasMultipleDimensions&&(o.padding="0",o.minWidth="auto"),{key:"dimension-title",type:"data-title",layout:{minimumLayoutMode:B6[`${t.dockService.meta.major.orientation}DimensionAxisTitle`].minimumLayoutMode,dock:t.dockService.meta.major.dock},settings:o,style:a}}function T8(e,t,n){if(!E8(e.measureAxis.show))return!1;const{layoutService:r,actions:i}=t,o=t.properties,a=r.getLayoutValue("qUndoExclude")?"qUndoExclude.qHyperCubeDef":"qHyperCubeDef",s={hyperCube:r.getHyperCube(),hyperCubeDef:zC(o,a),isDimension:!1,disabled:()=>!i.interact.enabled(),model:t.model,app:t.app,translator:t.translator,rtl:n,selections:t.selections,supportConditional:t.flags.isEnabled("IM_1579_HIDE_DIM_MEA"),isEnabled:t.flags.isEnabled},l=t.styleService.axis.title.getStyle();return t.layoutService.meta.hasMultipleMeasures&&(s.padding="0",s.minWidth="auto"),{key:"measure-title",type:"data-title",layout:{minimumLayoutMode:"SMALL",dock:t.dockService.meta.minor.dock},settings:s,style:l}}function N8({environment:e,rtl:t,refLineModel:n,layoutService:r,colorService:i,dockService:o,themeService:a,viewModel:s,chart:l}){const{theme:u,localeInfo:c}=e,d={resolveUIColor:i.getMain().getPaletteColor},f=a.getStyles(),h=s.animations.enabled;return[MD({refLineModel:n,layoutService:r,colorModel:d,dockService:o,animationsEnabled:h,chart:l,scale:r6.SCALE.MAIN.MINOR,axis:"horizontal"===o.meta.major.orientation?"y":"x",key:r6.COMPONENT.MEASURE_REF_LINE,minimumLayoutMode:B6.refLines.minimumLayoutMode}),MD({isDimension:!0,refLineModel:n,layoutService:r,colorModel:d,dockService:o,animationsEnabled:h,chart:l,scale:r6.SCALE.MAIN.MAJOR,axis:"horizontal"===o.meta.major.orientation?"x":"y",rtl:t,key:r6.COMPONENT.DIMENSION_REF_LINE,mainComponentKey:r6.COMPONENT.BAR,minimumLayoutMode:B6.refLines.minimumLayoutMode}),...ED({refLineModel:n,layoutService:r,colorModel:d,animationsEnabled:h,dock:o.meta.minor.opposite,scale:r6.SCALE.MAIN.MINOR,style:f,formatter:r6.FORMATTER.MINOR,theme:u,localeInfo:c,rtl:t,key:r6.COMPONENT.MEASURE_REF_LINE_LABEL}),...ED({isDimension:!0,refLineModel:n,layoutService:r,colorModel:d,animationsEnabled:h,dock:o.meta.major.opposite,scale:r6.SCALE.MAIN.MAJOR,style:f,theme:u,localeInfo:c,rtl:t,key:r6.COMPONENT.DIMENSION_REF_LINE_LABEL})]}const O8=(e,t,n)=>{var r;const{layoutService:i,dockService:o,colorService:a,chart:s,actions:l,discrete:u,continuousDataModel:c,reducedDataModel:d,viewModel:f,viewState:h,viewCache:p,themeService:m,refLineModel:g,pluginService:y,rtl:v,logicalSize:b,trendLineModel:x,disclaimerService:w}=t,{localeInfo:S}=n,M=function(e,t){const{disclaimerService:n,themeService:r,translator:i}=e,o=n.getDisclaimer();if(!o)return!1;const{fontFamily:a}=r.getStyles();return{key:"disclaimer",type:"disclaimer",layout:{dock:o.alignment},settings:{isRTL:t,label:i.get(`Object.Disclaimer.${o.key}`)},style:{fontFamily:a}}}(t,v);if(w.getHasSuppressingDisclaimer())return{components:[M]};const k=i8(e,t,{localeInfo:S,rtl:v}),C=!(null!=l&&null!==(r=l.interact)&&void 0!==r&&r.enabled()),q=a.getMain().getLegend({eventName:"legend-c",key:"legend-color",viewState:h,chart:s,styleReference:"object.barChart",styleOverrides:{title:t.styleService.legend.title.getStyle(),label:t.styleService.legend.label.getStyle()},rtl:v,settings:{item:{shape:{size:10}}}},{actions:l,navigationDisabled:C}),E=q.components[0];if(E){const{dock:e}=E.layout;if(k.fillRange&&(["right","left"].includes(e)||v)&&(k.fillRange.invert=!0),"legend-seq"===E.type&&void 0!==f.selectionDimensionIdx&&k.fillRange&&k.fillRange.min<k.fillRange.max){const e=j6({eventName:"legendRange",key:"legendRangeBrush",targets:[E.key],fillTargets:[E.key],targetSelector:'[id="legend-seq-target"]',targetFillSelector:'[id="legend-seq-ticks"]',dock:E.layout.dock,scale:"fillRange",bubblesPlacement:"outside",onEdited:()=>{l.select.emit("end","legendRange")}},t);q.components.push(...e.components),q.interactions.unshift(...e.interactions)}}else k.fillRange&&v&&(k.fillRange.invert=!0);const D=((e,{componentKey:t,collectionKey:n})=>{var r,i,o;const{meta:a}=e.layoutService;let s,l;a.isGroupedByDimension?s=({scale:e,datum:t})=>e([t.group.value,t.value])+e.bandwidth([t.group.value,t.value])/2:a.isGroupedByMeasure&&(s=({scale:e,datum:t})=>e([t.value,t.measureIndex.value])+e.bandwidth()/2);let u=2;a.isContinuous?(l={start:"timeStart",end:"timeEnd"},u=Q6(e,t)):a.isStacked&&(l="stack");const c=a.isStackedByDimension&&e.layoutService.getHyperCubeValue("qStackedDataPages.0.qArea.qHeight",NaN)>1,d=e=>{var t;return!0===(null===(t=e.datum.null)||void 0===t?void 0:t.value)},f=e.layoutService.getLayoutValue("components",null),h=f?f.filter((e=>e.key===t))[0]:null;return{key:t,type:"box",data:{collection:n},preferredSize:a.isContinuous?()=>({size:0,edgeBleed:{left:1,right:1}}):void 0,brush:{consume:[{context:"selection",data:["selectionDimension","axisSelectionDimension","end","fill","timeEnd"],style:{active:{strokeWidth:a.isContinuous||c?0:2,stroke:"#000"},inactive:{opacity:.3}}}]},settings:{major:{scale:r6.SCALE.MAIN.MAJOR,fn:s,ref:l},minor:{scale:r6.SCALE.MAIN.MINOR},orientation:e.dockService.meta.minor.orientation,box:{width:X6({layoutService:e.layoutService,discrete:e.discrete,componentKey:t}),minWidthPx:u,fill:e.colorService.getMain().getColor(),opacity:e=>d(e)?0:void 0,minHeightPx:function(e){return a.isStacked?.1:d(e)?.01:.3},strokeWidth:null!=h&&null!==(r=h.style)&&void 0!==r&&r.strokeWidth?Y6.BAR.STROKE.WIDTH[h.style.strokeWidth.toUpperCase()]:Y6.BAR.STROKE.WIDTH.NONE,stroke:null!==(i=null==h||null===(o=h.style)||void 0===o||null===(o=o.strokeColor)||void 0===o?void 0:o.color)&&void 0!==i?i:Y6.BAR.STROKE.COLOR},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},animations:{enabled:e.viewModel.animations.enabled,isMainComponent:!0,trackBy:yD.bars.trackBy,compensateForLayoutChanges:yD.bars.compensateForLayoutChanges}}})(t,{componentKey:r6.COMPONENT.BAR,collectionKey:r6.COLLECTION.MAIN}),T=((e,{componentKey:t,collectionKey:n})=>{const{meta:r}=e.layoutService;if(!r.isStacked)return!1;let i=2;r.isContinuous&&(i=Q6(e,t));const o=e.layoutService.getLayoutValue("components",null),a=o?o.filter((e=>e.key===t))[0]:null,s={key:t,type:"box",data:{collection:n},settings:{major:{scale:r6.SCALE.MAIN.MAJOR},minor:{scale:r6.SCALE.MAIN.MINOR,start:{ref:"sumOfNegatives"},end:{ref:"sumOfPositives"}},orientation:e.dockService.meta.minor.orientation,box:{width:h8(r,a),minWidthPx:i,opacity:0,fill:"none"},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},brush:{consume:[{context:"selection",data:[""],style:{active:{strokeWidth:2,stroke:"#000",opacity:e=>{var t;return!0===(null===(t=e.data)||void 0===t||null===(t=t.null)||void 0===t?void 0:t.value)?0:1}},inactive:{opacity:e=>{var t;return!0===(null===(t=e.data)||void 0===t||null===(t=t.null)||void 0===t?void 0:t.value)?0:.3}}}}]}};return r.isContinuous&&(s.settings.major.ref={start:"timeStart",end:"timeEnd"}),s})(t,{componentKey:r6.COMPONENT.STACK_TOTAL_BAR,collectionKey:r6.COLLECTION.STACK_TOTAL}),N=l8(t,n,f.selectionDimensionIdx),{isStacked:O}=i.meta;let A;A=d.mode.isContinuous?r6.COLLECTION.MINI_CONTINUOUS:O?r6.COLLECTION.MINI_STACK:r6.COLLECTION.MINI;const _=O?T:D,L=A7(0,t),I=[...L,f8(t,{barComponent:_,type:"max",isStacked:O}),f8(t,{barComponent:_,type:"min",isStacked:O}),s7(t,{barComponent:_,type:"max",isStacked:O}),s7(t,{barComponent:_,type:"min",isStacked:O}),u7(t,{chart:s,barComponent:_,type:"max",scales:k,collectionKey:O?r6.COLLECTION.STACK_TOTAL:r6.COLLECTION.MAIN}),u7(t,{chart:s,barComponent:_,type:"min",scales:k,collectionKey:O?r6.COLLECTION.STACK_TOTAL:r6.COLLECTION.MAIN}),...W6(e,t,v,!!L[0]),D,T,u8({layoutService:i,viewModel:f,layout:e,dockService:o}),D8(e,t,v),T8(e,t,v),...N8({environment:n,rtl:v,refLineModel:g,layoutService:i,colorService:a,dockService:o,themeService:m,viewModel:f,chart:s}),pS({viewState:h,viewCache:p,layoutService:i,dockService:o,rtl:v}),B7(D,t,{collectionKey:A}),LG({layoutService:i,dockService:o,discrete:u,continuousDataModel:c,viewState:h,viewCache:p,themeService:m,rtl:v,deviceType:n.deviceType}),...P4({majorScale:r6.SCALE.MAIN.MAJOR,minorScale:r6.SCALE.MAIN.MINOR,tooltipOverlay:r6.COMPONENT.TREND_LINES_TOOLTIP_OVERLAY},{layoutService:i,trendLineModel:x,dockService:o,animationsEnabled:f.animations.enabled}),...q.components,b7({layout:e,component:r6.COMPONENT.BAR,minorScale:k.minor},t,v),k8({layout:e,component:r6.COMPONENT.STACK_TOTAL_BAR},t,v),q8({layout:e,component:"bar-oob-max",type:"max"},t),q8({layout:e,component:"bar-oob-min",type:"min"},t),...N.components,w7(0,{...t,coloring:a.getMain().getSettings()},v),M7(0,{...t,coloring:a.getMain().getSettings()},v),!1!==e.showDisclaimer&&M,V4({tooltip:r6.COMPONENT.TREND_LINES_TOOLTIP,formatter:r6.FORMATTER.MINOR,majorScale:r6.SCALE.MAIN.MAJOR},t,{rtl:v})].filter(Boolean);!function(e){if(e&&0!==e.length)for(let t=0;t<e.length;t++)e[t].layout=e[t].layout||{},e[t].layout.displayOrder=t}(I);const R=[...q.interactions,...N.gestures].sort(((e,t)=>(t.prio||0)-(e.prio||0)));return{interactions:F7(t,{rtl:v,hammer:{gestures:R}}),scales:k,palettes:a.getMain().getPalettes(),components:y.extendComponents(I),strategy:Tg(0,{logicalSize:b,minCenterRatio:0}),formatters:k7(t,k),collections:S8(0,t)}};function A8({picasso:t,chart:n,services:r,environment:i,viewState:o,viewCache:a,bootstrapped:s}){const{width:l,height:u}=e.useRect(),c=e.useModel(),d=e.useSelections(),f=e.useOptions(),[h,p]=e.useState(),[m,g]=e.useState(),[y,v]=e.useState(),[b,x]=e.useState(),w=e.useApp();function S(){if(!n.layoutComponents)return Promise.resolve();const{discrete:e,layoutService:s,viewModel:l}=r;a.set("isPreRender",!0);const u=function(e={}){const{selectionService:s,refLineModel:l,discrete:u,reducedDataModel:p,continuousDataModel:m,trendLineModel:g,pluginService:y,colorService:v,viewModel:b,dockService:x,themeService:S,customTooltipModel:M,layoutService:k,logicalSize:C,styleService:q,disclaimerService:E}=r,D=s.custom.getActions(),T=t.data("q")(h.prepPicassoDataSet()),N={picasso:t,ds:T,rtl:"rtl"===(null==f?void 0:f.direction),model:c,app:w,chart:n,actions:D,localeInfo:i.localeInfo,logicalSize:C,flags:i.flags,translator:i.translator,selections:d,isLocked:s.getIsSelectionLocked,viewCache:a,viewState:o,layoutService:k,dockService:x,viewModel:b,colorService:v,selectionService:s,themeService:S,trendLineModel:g,discrete:u,continuousDataModel:m,reducedDataModel:p.model(),customTooltipModel:M,debouncer:VC,refLineModel:l,pluginService:y,styleService:q,disclaimerService:E,...e};return O8(k.getLayout(),N,i)}(m);h.extractDataPages(),n.layoutComponents({settings:u,data:y}),a.set("isPreRender",!1),h.insertDataPages(),l.animations.hasSlicedHats=u.components.filter((e=>"box-sliced-hat"===e.type)).length>0;const p=[];return 1!==u.components.length&&s.meta.isDiscrete&&p.push(e.command.initialize()),Promise.all(p)}const[[M,k]=[]]=e.usePromise((()=>{var e,l;if(!(t&&n&&r&&i&&o&&a&&s))return Promise.resolve();const{layoutService:u,selectionService:c,refLineModel:d,discrete:f,continuous:h,reducedDataModel:p,continuousDataModel:m,trendLineModel:g,legendLayoutService:y,colorService:v,pluginService:b,viewModel:w,customTooltipModel:S,disclaimerService:M}=r;if(null==c||null===(e=c.custom)||void 0===e||!e.getActions())return Promise.resolve();const{flags:k}=i;if(null!=k&&null!==(l=k.isEnabled)&&void 0!==l&&l.call(k,"IM_1579_HIDE_DIM_MEA")){const{properties:e}=s,t=null==e?void 0:e.qHyperCubeDef.qDimensions.some((e=>{var t;return null===(t=e.qCalcCondition)||void 0===t||null===(t=t.qCond)||void 0===t?void 0:t.qv}));t&&(S.useCustomTooltip=!1)}const C=()=>{x(Date.now()),w.animations.isPartialUpdating=!0};o.onChanged("scrollOffset",(()=>{y&&y.setDataPages([f.query.getCurrentDataPage()]),d&&d.update(),C()})),o.onChanged("legendScrollOffset",C),o.intercept("zoom",h.event.onZoomIntercept({viewCache:a})),o.onChanged("zoom",h.event.onZoomChange({layoutService:u,continuousDataModel:m},C)),c.setLayout(u.getLayout());const q=[];u.meta.isContinuous&&(m.update(u.getLayout()),q.push(m.initialFetch())),g.command.update(),q.push(p.fetch().then((({reducedCube:e})=>{p.update(e)}))),M.initialize(),q.push(Promise.resolve({properties:s.properties}));return Promise.all(q).then((e=>Promise.all([b.initialize(),v.initialize(),_6({reducedDataModel:p,layoutService:u,continuousDataModel:m,trendLineModel:g})]).then((t=>[e,t.pop()]))))}),[s]);e.useEffect((()=>{var e;if(null==r||null===(e=r.colorService)||void 0===e||!e.getMain()||!k)return;const{layoutService:t,selectionService:n,reducedDataModel:o,continuousDataModel:s,trendLineModel:l,legendLayoutService:u,colorService:c,viewModel:d}=r;a.set("minorMinMax",k);const f=t.getHyperCube(),h=t.meta.isContinuous?s.getInitialCube():o.model().cube,{field:m}=c.getMain().getSettings(),y=!t.meta.isContinuous&&(o.model().mode.isReduced||t.meta.isStacked)&&u,v=y?u.getHyperCube():void 0;n.setBrushAliases({colorField:m,useLegendCube:y,legendAlias:`legendCube/${m}`});const b=function({mainCube:e,miniCube:t,legendCube:n,localeInfo:r,layoutService:i,viewModel:o,trendLineModel:a}){const s=i.refs.dataPages.split(".").pop();let l=[],u=[];const c=i.meta.isContinuous?[{key:o.fields.majorNumeric,from:i.meta.isStackedByDimension?o.fields.majorStack:o.fields.major,override:{value:e=>e.qNum}}]:void 0;return{prepPicassoDataSet:()=>({key:"qHyperCube",data:e,config:{localeInfo:r,virtualFields:c}}),prepPicassoData(i){const o=[{type:"q",key:"qHyperCube",data:e,config:{localeInfo:r,virtualFields:c}},{type:"q",key:"miniCube",data:t,config:{localeInfo:r,virtualFields:c}},...i];return n&&o.push({type:"q",key:"legendCube",data:n,config:{localeInfo:r,virtualFields:c}}),a.query.hasTrendLines()&&o.push({key:"trend",data:a.query.getData()}),o},extractDataPages(){l=e[s],u=t.qDataPages,e[s]=[],t.qDataPages=[]},insertDataPages(){e[s]=l,t.qDataPages=u}}}({mainCube:f,miniCube:h,legendCube:v,localeInfo:i.localeInfo,layoutService:t,viewModel:d,trendLineModel:l}),x=M[M.length-1];g({localeInfo:i.localeInfo,...x}),p(b)}),[k]),e.useEffect((()=>{if(!r||!m||!h)return;const e=r.colorService.getMain();if(!e)return;h.prepPicassoDataSet();const t=h.prepPicassoData(e.getData());v(t)}),[m]),e.useEffect((()=>{var e;null!=r&&null!==(e=r.colorService)&&void 0!==e&&e.getMain()&&n.update&&h&&y&&S().then((()=>{const{layoutService:e,discrete:t,legendLayoutService:i}=r;if(i){1===e.getLayoutValue("scrollStartPos")&&i.setDataPages([t.query.getCurrentDataPage()])}n.update(),yD.cacheProperties({viewCache:a,layout:e.getLayout()})}))}),[y]),e.useEffect((()=>{if(!(l&&u&&h&&null!=n&&n.update&&null!=r&&r.colorService.getMain()))return;const{viewModel:e}=r;e.animations.isSizeChanging=!0;const{dockService:t,themeService:o}=r;t.update({width:l,height:u}),o.setTheme(i.theme),S().then((()=>{n.update&&n.update()}))}),[l,u]),e.useEffect((()=>{if(null==n||!n.update)return;const{viewModel:e}=r;n.update({partialData:!0,excludeFromUpdate:["mini-marker","dim-title","measure-title","ref-line","grid-line"]}),e.animations.isPartialUpdating=!1}),[b])}const _8=e=>"[object Object]"===Object.prototype.toString.call(e),L8=e=>Array.isArray(e);function I8(e,t){if(e===t)return!0;if(L8(e)){if(!L8(t))return!1;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!I8(e[n],t[n]))return!1;return!0}if(_8(e)){if(!_8(t))return!1;const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r<n.length;r++){if(!Object.hasOwn(t,n[r]))return!1;if(!I8(e[n[r]],t[n[r]]))return!1}return!0}return e===t}function R8({enable:t=!0}={}){const n=e.useModel(),r=()=>Date.now().toString()+Math.random(),[i,o]=e.useState(r()),a={properties:void 0};return e.useEffect((()=>{if(!n||!n.getEffectiveProperties||!t)return()=>{};const e=()=>{n.getEffectiveProperties().then((e=>{const t=Cg(!0,{},e);if(!a.properties)return void(a.properties=t);const n=function(e,t){var n,r,i,o;const a={properties:!1,exclude:!1};if(e===t)return a;const s=Cg(!0,{},e),l=Cg(!0,{},t);return a.exclude=!I8(null===(n=s.qHyperCubeDef)||void 0===n?void 0:n.qLayoutExclude,null===(r=l.qHyperCubeDef)||void 0===r?void 0:r.qLayoutExclude),null===(i=s.qHyperCubeDef)||void 0===i||delete i.qLayoutExclude,null===(o=l.qHyperCubeDef)||void 0===o||delete o.qLayoutExclude,a.properties=!I8(s,l),a}(a.properties,t);a.properties=t,n.exclude&&!n.properties&&o(r())}))};return n.on("changed",e),e(),()=>{n.removeListener("changed",e)}}),[t]),i}const P8=({properties:e,layout:t,isStacked:n,isContinuous:r,model:i,layoutService:o})=>{var a,s;const l=t.qHyperCube.qDimensionInfo.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)})),u=t.qHyperCube.qMeasureInfo.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)})),c=Cg(!0,{},e);return((e,t,n)=>{const{color:{mode:r}}=n;e.length>1&&n.color?n.color.persistent=!0:"byDimension"===r&&t.length>1?n.color.mode="byMultiple":"byExpression"===r&&0===t.length?n.color.mode="primary":0===e.length&&t.length>0&&(n.color.byMeasureDef=void 0,n.color.byDimDef=void 0,1===t.length&&"byExpression"!==r&&(n.color.mode="primary"))})(l,u,e),l.length>1&&n&&!r&&"S"===e.qHyperCubeDef.qMode&&(e.qHyperCubeDef.qMode="K"),l.length<2&&"K"===e.qHyperCubeDef.qMode&&(e.qHyperCubeDef.qMode="S"),null===(a=i.colorSupport)||void 0===a||null===(s=a.colorByUpdater)||void 0===s||s.call(a,e,"qHyperCubeDef.",t),function({properties:e,layoutService:t}){const{filteredFields:n}=t.meta;if(!(n.measures.length>0))return;const{mode:r}=e.color||{};if("byExpression"===r){var i;if("colorByExpression"===(null===(i=t.getLayout().qHyperCube.qMeasureInfo)||void 0===i||null===(i=i[0])||void 0===i||null===(i=i.qAttrExprInfo)||void 0===i||null===(i=i[0])||void 0===i?void 0:i.id))return;const{current:r,target:o}=function({properties:e,filtered:t}){const{qMeasures:n}=e.qHyperCubeDef||[],{current:r,target:i}=n.reduce(((e,n,r)=>{var i;return"colorByExpression"===(null===(i=n.qAttributeExpressions[0])||void 0===i?void 0:i.id)&&(e.current=r),void 0!==e.target||t.includes(r)||(e.target=r),e}),{current:void 0,target:void 0});return{current:r,target:i}}({properties:e,filtered:n.measures});if(void 0===r)return;const a=e.qHyperCubeDef.qMeasures[r].qAttributeExpressions[0];e.qHyperCubeDef.qMeasures[r].qAttributeExpressions.splice(0,1),e.qHyperCubeDef.qMeasures[o].qAttributeExpressions.splice(0,0,a)}}({properties:e,layoutService:o}),!xS.compare(c,e,!0)&&JSON.stringify(c)!==JSON.stringify(e)&&(e.hash=Math.random(),!0)};var z8={exports:{}};!function(e,t){self,e.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,u,c,d=arguments[0],f=1,h=arguments.length,p=!1;for("boolean"==typeof d&&(p=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<h;++f)if(null!=(t=arguments[f]))for(n in t)r=l(d,n),d!==(i=l(t,n))&&(p&&i&&(a(i)||(u=o(i)))?(u?(u=!1,c=r&&o(r)?r:[]):c=r&&a(r)?r:{},s(d,{name:n,newValue:e(p,c,i)})):void 0!==i&&s(d,{name:n,newValue:i}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,u,c,d=arguments[0],f=1,h=arguments.length,p=!1;for("boolean"==typeof d&&(p=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<h;++f)if(null!=(t=arguments[f]))for(n in t)r=l(d,n),d!==(i=l(t,n))&&(p&&i&&(a(i)||(u=o(i)))?(u?(u=!1,c=r&&o(r)?r:[]):c=r&&a(r)?r:{},s(d,{name:n,newValue:e(p,c,i)})):void 0!==i&&s(d,{name:n,newValue:i}));return d}}},n={};function r(t){var i=n[t];if(void 0!==i)return i.exports;var o=n[t]={exports:{}};return e[t](o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};(()=>{r.r(i),r.d(i,{default:()=>Oe});var e=r(229),t=r.n(e);const n=function(e,t,n){if(!t)return!1;var r,i=t.split("."),o=i[i.length-1],a=e;for(r=0;r<i.length-1;++r)void 0===a[i[r]]&&(a[i[r]]=Number.isNaN(+i[r+1])?{}:[]),a=a[i[r]];if(void 0!==n){var s=a[o];return a[o]=n,{updated:n,previous:s}}return delete a[o],!1},o=function(e,t,n){var r,i=t.split("."),o=e;if(void 0===o)return n;for(r=0;r<i.length;++r){if(void 0===o[i[r]])return n;o=o[i[r]]}return o},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var s="".concat(" ","(").concat(" "),l="".concat(" ",")").concat(" ");function u(e){return s+e+l}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,i=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===i)return r;if(r.qDerivedFieldData)for(var o=0;o<r.qDerivedFieldData.qDerivedFieldLists.length;++o)for(var a=r.qDerivedFieldData.qDerivedFieldLists[o],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===i)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return r&&r.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function f(e,t){var n=e.crossAllDimensions;return 2===t&&n?"RowNo(Total)":"RowNo()"}function h(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function p(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(e,t){var n=e.crossAllDimensions;return 2===t&&n?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function y(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(y("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(y("MaxString(".concat(t,")")),")'\"}")}function b(e){var t=e.modifier,n=void 0===t?{}:t,r=e.dimensions,i=e.dimensionAndFieldList,o=e.funcComp,a=void 0===o?"Sum":o,s=e.valueComp,l=void 0===s?"0":s;if(!n.showExcludedValues)return"";if(r&&1===r.length){var u=v(c(r[0],i),p(0));return"".concat(a,"({1<").concat(u,">}").concat(l,")")}if(r&&2===r.length){var d=c(r[0],i),f=c(r[1],i),h=p(0),m=p(1),g=v(d,h),y=v(f,m);return"".concat(a,"({1<").concat(g,",").concat(y,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function x(e){return"".concat(e,"(")}function w(e){var t=e.properties,n=e.layout;return o(t,"qHyperCubeDef.qDimensions",o(n,"qHyperCube.qDimensionInfo",[])).length}const S={isFullRange:d,getNumDimensions:w,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,i=e.dimensionAndFieldList,o=e.treatMissingAsNull,a=u(h(t));if(!n.showExcludedValues)return a;var s=b({modifier:n,dimensions:r,dimensionAndFieldList:i}),l=o?"":", 0";if(r&&1===r.length){var c=p(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(r&&2===r.length){var d=p(0),f=p(1);return"If(Count(".concat(d,") * Count(").concat(f,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:f,getNumStepComp:function(e,t){if(!d(e)){var n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return f(e,t)},getAboveCompPrefix:m,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return m(e,t)+n+g(r)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:b,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,i=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===i&&2===w({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=p(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var i=["Descending","Ascending"],o=n.qSortByNumeric?"(Numeric, ".concat(i[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(i[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(o,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(o,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:h,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(s);if(-1!==n){var r=t.indexOf(l);if(-1!==r)return t.substring(n+s.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach((function(n){void 0===e[n]&&(e[n]=t[n])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,i=void 0===r?1:r,o=e.maxDimensions,a=void 0===o?2:o;if(!t&&!n)return!0;var s=w({properties:t,layout:n});return s>=i&&s<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(s),n=e.indexOf(l);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:p,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,n){var r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var i=n.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));i&&t!==i.qDef.qLabel&&(r=i.qLibraryId||i.qDef.base.qLibraryId?"[".concat(i.qDef.qLabel,"]"):i.qDef.base.qDef);var o=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);r=r.startsWith("=")?r.substr(1):r,r="".concat(o,"(").concat(r,", ").concat(e.steps,")")}return r},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[n]&&r.includes(a.EXPRESSIONS[n].toLowerCase())&&(t=n),n})),t}};function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function k(e){return k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},k(e)}var C=t().bind(null,!0),q={},E=Array.isArray;function D(e){return null!=e&&!Array.isArray(e)&&"object"===k(e)}function T(e){return void 0===e}function N(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function O(e,t){var n,r=t.substring(1).split("/").slice(0,-1);return r.forEach((function(t,i){if(i!==r.length){n=+t;var o=Number.isNaN(n)?{}:[];e[n||t]=T(e[n||t])?o:e[t],e=e[n||t]}})),e}function A(e,t){var n=!0;if(D(e)&&D(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(r){A(e[r],t[r])||(n=!1)})),n);if(E(e)&&E(t)){if(e.length!==t.length)return!1;for(var r=0,i=e.length;r<i;r+=1)if(!A(e[r],t[r]))return!1;return!0}return e===t}q.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach((function(i){var o=function(e){return e?C({},{val:e}).val:e}(t[i]),a=e[i],s="".concat(n,"/").concat(i);A(o,a)||N(t,i)||(T(a)?r.push({op:"add",path:s,value:o}):D(o)&&D(a)?r=r.concat(q.generate(a,o,s)):E(o)&&E(a)?r=r.concat(function(e,t,n){var r=[],i=e.slice(),o=-1;function a(e,t,n){if(e[n]&&T(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,i=e.length;r<i;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(A(t,i))return r;if(!T(t[0])&&T(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var s=i.length-1;s>=0;s-=1)-1===(o=a(t,i[s].qInfo&&i[s].qInfo.qId,s))?(r.push({op:"remove",path:"".concat(n,"/").concat(s)}),i.splice(s,1)):r=r.concat(q.generate(i[s],t[o],"".concat(n,"/").concat(s)));for(var l=0,u=t.length;l<u;l+=1)-1===(o=a(i,t[l].qInfo&&t[l].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(l),value:t[l]}),i.splice(l,0,t[l])):o!==l&&(r.push({op:"move",path:"".concat(n,"/").concat(l),from:"".concat(n,"/").concat(o)}),i.splice(l,0,i.splice(o,1)[0]));return r}(a,o,s)):r.push({op:"replace",path:"".concat(n,"/").concat(i),value:o}))})),Object.keys(e).forEach((function(i){T(t[i])&&!N(e,i)&&r.push({op:"remove",path:"".concat(n,"/").concat(i)})})),r},q.apply=function(e,t){t.forEach((function(t){var n,r,i=O(e,t.path),o=t.path.split("/").splice(-1)[0],a=o&&Number.isNaN(+o)?i[o]:i[+o]||i,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(i=null,a=e),"add"===t.op||"replace"===t.op)if(E(i))"-"===o&&(o=i.length),i.splice(+o,"add"===t.op?0:1,t.value);else if(E(a)&&E(t.value)){var l,u=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return M(e)}(r=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return M(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?M(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(D(a)&&D(t.value))n=a,Object.keys(n).forEach((function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!N(n,e)&&delete n[e]})),C(a,t.value);else{if(!i)throw new Error("Patchee is not an object we can patch");i[o]=t.value}else if("move"===t.op){var c=O(e,t.from);E(i)?i.splice(+o,0,c.splice(+s,1)[0]):(i[o]=c[s],delete c[s])}else"remove"===t.op&&(E(i)?i.splice(+o,1):delete i[o])}))},q.clone=function(e){return C({},e)},q.createPatch=function(e,t,n){var r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},q.updateObject=function(e,t){Object.keys(e).length?q.apply(e,q.generate(e,t)):C(e,t)};const _=q,L=function(e,n,r){if(!e)return Promise.resolve();var i=_.generate(n,r);return t()(!0,n,r),i&&i.length?(i=i.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(i,!0)):Promise.resolve()};var I="accumulation";function R(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===I)return n[r]}function P(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===I)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var z={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const F={translationKey:"properties.modifier.accumulation",needDimension:S.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return S.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=S.getNumDimensions({properties:r,layout:i}));var u=o(r,"qHyperCubeDef.qDimensions",[]),c=S.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:s}),d=S.getNumStepComp(n,l),f=S.getAboveComp(n,l,c,d),h=S.getRangeComp("RangeSum",f);if(S.needDimension({modifier:n,properties:r,layout:i})){var p=S.getDimComp(u,1),m=S.getDimComp(u,0),g=S.getAggrComp(h,p,m);h=n.showExcludedValues?S.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:s,valueComp:g}):g}return h},extractInputExpression:S.extractInputExpression,initModifier:function(e){S.initModifier(e,z)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!S.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(P(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(P(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(P(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(P(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=R(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=R(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(P(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return S.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(I))return!1;var o=R(t,e);return o&&!o.disabled}};return n}};var j="movingAverage";function B(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===j)return n[r]}function H(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===j)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var V={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const $={translationKey:"properties.modifier.movingAverage",needDimension:S.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return S.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,i=e.properties,a=e.layout,s=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return n;var u=s;void 0===u&&(u=S.getNumDimensions({properties:i,layout:a}));var c=o(i,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,f=S.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:c,dimensionAndFieldList:l,treatMissingAsNull:d}),h=S.getNumStepComp(r,u),p=S.getAboveComp(r,u,f,h);if(r.nullSuppression)t=S.getRangeComp("RangeAvg",p);else{var m=S.getRangeComp("RangeSum",p),g=function(e,t){var n=S.getRowNoComp(e,t);if(!S.isFullRange(e)){var r=e.steps,i="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(i,", ").concat(n,")")}return n}(r,u);t="".concat(m," / ").concat(g)}var y=t;if(S.needDimension({modifier:r,properties:i,layout:a})){var v=S.getDimComp(c,1),b=S.getDimComp(c,0),x=S.getAggrComp(y,v,b);y=r.showExcludedValues?S.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return y},extractInputExpression:S.extractInputExpression,initModifier:function(e){S.initModifier(e,V)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!S.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(H(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(H(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(H(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(H(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=B(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=B(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(H(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(H(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return S.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(j))return!1;var o=B(t,e);return o&&!o.disabled}};return n}};var U="timeSeriesDecomposition";function W(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===U)return n[r]}function Y(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===U)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var K={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const G={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:S.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return S.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?S.generateTSDExpression(n,t,r):t},extractInputExpression:S.extractInputExpression,initModifier:function(e,t){S.initModifier(e,K),""===e.decomposition&&t&&(e.decomposition=S.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!S.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(Y(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(Y(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,n){var r=W(t,e);if(r){var i=r.steps;r.steps="number"!=typeof i||Number.isNaN(i)?2:Math.abs(i),n.properties.qHyperCubeDef.qMeasures=n.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=i:e.steps=e.steps,e})),e}))}},show:function(t){var n=W(t,e);return n&&!n.fullRange}}},show:function(e,t){return S.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(U))return!1;var o=W(t,e);return o&&!o.disabled}};return n}};var X="difference";function J(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===X)return n[r]}function Q(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===X)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Z={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:S.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return S.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:S.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=S.getNumDimensions({properties:r,layout:i}));var u=o(r,"qHyperCubeDef.qDimensions",[]),c=S.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:s}),d=S.getAboveComp(n,l,c),f="".concat(c," - ").concat(d);if(S.needDimension({modifier:n,properties:r,layout:i})){var h=S.getDimComp(u,1),p=S.getDimComp(u,0),m=S.getAggrComp(f,h,p);f=n.showExcludedValues?S.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:s,funcComp:"Only",valueComp:m}):m}return f},initModifier:function(e){Object.keys(Z).forEach((function(t){void 0===e[t]&&(e[t]=Z[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!S.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Q(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Q(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Q(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return S.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(X))return!1;var o=J(t,e);return o&&!o.disabled}};return n}};var te="normalization";function ne(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===te)return n[r]}function re(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===te)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function ie(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var oe={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,n){return 1===e?"{$<".concat(S.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,n){return 0===e&&t>1?"<".concat(S.getDimDefWithWrapper(n),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return S.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:S.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=S.getNumDimensions({properties:r,layout:i}));var u=o(r,"qHyperCubeDef.qDimensions",[]),c=S.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:s}),d=n.selectionScope,f=n.dimensionalScope;return function(e,t,n,r,i,o,a){var s=ae(t),l=se(t,n,r),u=""===s&&""===l?"":s||l,c=le(i,o),d=ue(i,o,a),f=function(e){for(var t=[],n=0;n<e;n++)t[n]=S.getDimDefWithWrapper(n);return t.join(", ")}(o);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(f,"))")}(c,d,n.field,n.value,f,l,n.primaryDimension)},initModifier:function(e){Object.keys(oe).forEach((function(t){void 0===e[t]&&(e[t]=oe[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!S.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(re(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(n){return function(e,t,n){var r=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return r=function(e,t,n){if(1===e){var r=ie(t,0);t.splice(r,1)}return t}(ne(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(re(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===ne(t,e).selectionScope}},value:{refFn:function(t){return"".concat(re(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===ne(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(re(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(n,r){return function(e,t,n,r){var i=t.layout.qHyperCube.qDimensionInfo.length,o=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===i?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===i?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===i?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===i?"disregardAllDimensions":"disregardDimension",".tooltip")}];return o=function(e,t,n){if(e<2){var r=ie(t,0);t.splice(r,1)}return t}(i,o),o=function(e,t,n){if(0===e){var r=ie(t,1);t.splice(r,1)}return t}(ne(e,r).selectionScope,o),o}(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(re(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,n){return 0===(ne(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return S.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(te))return!1;var o=ne(t,e);return o&&!o.disabled}};return n},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ue};var de="qDef.base",fe="qDef.qDef",he="qDef.base.qDef",pe="qLibraryId",me="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=o(e,he);return void 0!==t?t:o(e,fe)},getExpressionRef:function(e){return void 0!==o(e,he)?he:fe},getLibraryIdRef:function(e){return o(e,me)?me:pe},getLibraryId:function(e){return o(e,me)||o(e,pe)},getLabelRef:function(e){return o(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return o(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var ye="qDef.qDef",ve="qDef.base.qDef",be="qLibraryId",xe="qDef.base.qLibraryId",we="qDef.qLabel",Se="qDef.qLabelExpression",Me="qDef.base.qLabel",ke="qDef.base.qLabelExpression",Ce="qDef.qAggrFunc",qe="qDef.base.qAggrFunc",Ee={initBase:function(e,t){(t||Ee.isValid(e))&&(n(e,ve,o(e,ye)),n(e,xe,o(e,be)),n(e,Me,o(e,we)),n(e,ke,o(e,Se)))},restoreBase:function(e){Ee.isValid(e)&&(n(e,ye,o(e,ve)),n(e,be,o(e,xe)),n(e,we,o(e,Me)),n(e,Se,o(e,ke)),o(e,Ce)&&o(e,qe)&&n(e,Ce,o(e,qe)),delete e.qDef.base)},isValid:function(e){var t=o(e,ve),n=o(e,xe);return void 0!==t||void 0!==n}};const De=Ee;function Te(e){return Te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Te(e)}var Ne={accumulation:F,movingAverage:$,difference:ee,normalization:ce,timeSeriesDecomposition:G};const Oe={modifiers:Ne,apply:_e,applyModifiers:Le,cleanUpMeasure:Ie,destroy:function(e){e&&Ae[e.id]&&Ae[e.id].masterItemSubscriber&&(Ae[e.id].masterItemSubscriber&&Ae[e.id].masterItemSubscriber.unsubscribe(),delete Ae[e.id])},hasActiveModifiers:Re,getActiveModifier:Pe,initBase:De.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Ne[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return Ne[e]&&Ne[e].isApplicable({properties:n,layout:r})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,i=!1,o=!1;return t.forEach((function(e){var t=je(e);Ye({modifiers:t,properties:n,layout:r})&&(i=!0,o=o||Qe({modifiers:t,properties:n,layout:r}))})),i&&!o},ifEnableTotalsFunction:ze};var Ae={};function _e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,i=e.isSnapshot,a=void 0!==i&&i,s=e.masterItem,l=!1;Ae[n.id]=Ae[n.id]||{isFirstTime:!0};var u=Ae[n.id].isFirstTime;if(Ae[n.id].isFirstTime=!1,r&&"object"===Te(r))return Le({model:n,properties:r});var c=n?n.layout:void 0,d=o(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var f=o(c,"qHyperCube.qMeasureInfo"),h=Ae[n.id].lastReloadTime;if(Ae[n.id].lastReloadTime=o(n,"app.layout.qLastReloadTime"),Re({measures:f,layout:c})){var p=function(e){var t=e.measures,n=e.layout,r=e.lastReloadTime;return o(e.model,"app.layout.qLastReloadTime")!==r&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return We({measure:e,properties:n,layout:r})}))}({measures:t,layout:n})}({measures:f,layout:c,model:n,lastReloadTime:h});return p||function(e){var t=e.measures,n=e.layout,r=e.masterItem,i=e.isFirstTime;return!!Array.isArray(t)&&(i||r||t.some((function(e){return function(e){var t=e.measure,n=e.layout;return Ye({modifiers:je(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})})))}({measures:f,layout:c,masterItem:s,isFirstTime:u})?n.getEffectiveProperties().then((function(e){var r=t()(!0,{},e);He(r);var i=Ze(r);return Ke({model:n}).then((function(t){return Ge({libraryIds:i,model:n}).then((function(i){return p&&function(e){var t=e.properties;Fe(t).forEach((function(e){return function(e){var t=e.measure;if(We({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach((function(e){if("object"===Te(e)&&!e.disabled){if(n++,"object"!==Te(Ne[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(n>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var r=Ne[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&$e(t)&&S.simplifyExpression(t.qDef.base.qDef)!==S.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}({properties:r}),Le({model:n,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:s,libraryItemsProps:i,dimensionAndFieldList:t})}))}))})):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Te(e.base)}))}(f)?n.getEffectiveProperties().then((function(e){return function(e){var n=e.model,r=e.properties,i=Ze(r);return et({model:n,libraryIds:i}).then((function(){var e=t()(!0,{},r);return Fe(r).forEach((function(e){return Ie(e)})),Je({oldProperties:e,newProperties:r,model:n})}))}({model:n,properties:e})})):Promise.resolve(l)}function Le(e){var n=e.model,r=e.oldProperties,i=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=l?t()(!0,{},i):i),He(i);var f=Ze(i);return et({model:n,libraryIds:f,masterItem:u}).then((function(){return function(e){var n=e.measures,r=e.properties,i=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(n||(n=Fe(r)),!n.length)return Promise.resolve();if(!Re({measures:n,properties:r}))return n.forEach((function(e){return Ie(e)})),Promise.resolve();var l=a?void 0:Ze(r);return Ke({model:i,dimensionAndFieldList:s}).then((function(e){return Ge({libraryIds:l,model:i,libraryItemsProps:a}).then((function(i){n.forEach((function(n){Ye({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,i=e.libraryItemsProps,a=e.dimensionAndFieldList,s=0;De.isValid(n)||De.initBase(n,!0);var l=n.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Te(e)&&!e.disabled){if(s++,"object"!==Te(Ne[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(s>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Ne[e.type].initModifier(e,n);var l=n.qLibraryId||c&&c.qLibraryId;l?function(e){var n=e.measure,r=e.modifier,i=e.properties,o=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:Ne[r.type].generateExpression({expression:s,modifier:r,properties:i,dimensionAndFieldList:o});r.outputExpression=l,n.qDef.qDef=r.outputExpression,(n.qDef.qLabel||a.qMeasure.qLabel)&&(n.qDef.qLabel=a.qMeasure.qLabel),(n.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(n.qDef.qLabelExpression=a.qMeasure.qLabelExpression),n.qDef.quarantine&&n.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(n.qDef.qNumFormat=a.qMeasure.qNumFormat,n.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete n.qLibraryId,n.qDef.coloring=a.qMeasure.coloring,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,libraryId:l,properties:r,libraryItemsProps:i,dimensionAndFieldList:a}):function(e){var n=e.measure,r=e.modifier,i=e.properties,o=e.dimensionAndFieldList;"function"==typeof Ne[r.type].updateModifier&&Ne[r.type].updateModifier(r,i.qHyperCubeDef);var a=ge.getExpression(n),s=""===a?a:Ne[r.type].generateExpression({expression:a,modifier:r,properties:i,dimensionAndFieldList:o});r.outputExpression=s,n.qDef.qDef=r.outputExpression,n.qDef.base.qLabelExpression?n.qDef.qLabelExpression=n.qDef.base.qLabelExpression:n.qDef.qLabel=n.qDef.base.qLabel||a,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,properties:r,dimensionAndFieldList:a}),function(e){var t=o(e,"qDef.qAggrFunc");"Expr"!==t||ze(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&ze(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(n)}}))}({measure:n,properties:r,libraryItemsProps:i,dimensionAndFieldList:e}),Ve(n)):Ie(n)}))}))}))}({measures:a,properties:i,model:n,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return l?Je({oldProperties:r,newProperties:i,model:n}):Promise.resolve(!1)}))}))}function Ie(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some((function(e){return"object"===Te(e)&&!e.disabled&&!Ne[e.type]}))}(e)?De.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Ve(e)}function Re(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ye({modifiers:je(e),properties:n,layout:r})}))}function Pe(e){var t=je(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(Ne[r.type]&&!r.disabled)return r}}function ze(e){var t=Pe(e);return!t||Ne[t.type].enableTotalsFunction(e)}function Fe(e){return o(e,"qHyperCubeDef.qMeasures",[]).concat(o(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function Be(e){return o(e,"outputExpression.qValueExpression.qExpr")||o(e,"outputExpression")}function He(e){Fe(e).forEach((function(e){return function(e){var n=Pe(e);n&&(void 0!==n.outputExpression&&Be(n)!==e.qDef.qDef?delete e.qDef.base:!De.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)}))}function Ve(e){var t=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===Te(t)&&(t.disabled||!Ne[t.type]&&Be(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function $e(e){return e.base||e.qDef&&e.qDef.base}function Ue(e){var t=$e(e);return e.qLibraryId||t&&t.qLibraryId}function We(e){var t=e.measure,n=e.properties,r=e.layout;return!Ue(t)&&Ye({modifiers:je(t),properties:n,layout:r})}function Ye(e){var t=e.modifiers,n=e.properties,r=e.layout,i={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Te(e)||e.disabled||!Ne[e.type])&&(void 0===i[e.type]&&(i[e.type]=Ne[e.type].isApplicable({properties:n,layout:r})),i[e.type])}))}function Ke(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],i={},o=t.app.getDimensionList().then((function(e){i.dimensionList=e}));r.push(o);var a=t.app.getFieldList().then((function(e){i.fieldList=e}));return r.push(a),Promise.all(r).then((function(){return i}))}function Ge(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var i=t.measureLibraryIds,o=t.dimensionLibraryIds,a={},s=[];return i.forEach((function(e){var t=n.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),o.forEach((function(e){var t=n.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),Promise.all(s).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,n=e.newProperties,r=e.model,i=JSON.stringify(o(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(o(n,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(o(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(o(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return i?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,i=t.layout;return i&&!i.qHasSoftPatches&&!i.qExtendsId&&o(i,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):L(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then((function(){return i})):Promise.resolve(i)}function Qe(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Te(e)&&!e.disabled&&Ne[e.type]&&Ne[e.type].needDimension({modifier:e,properties:n,layout:r})}))}function Ze(e){var t=Fe(e),n=[],r=[],i=!1;return t.forEach((function(t){var r=je(t);if(Ye({modifiers:r,properties:e})){var o=Ue(t);o&&n.push(o),i=i||Qe({modifiers:r,properties:e})}})),o(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&r.push(t)})),{measureLibraryIds:n,dimensionLibraryIds:r}}function et(e){var t=e.model,n=e.libraryIds;return!e.masterItem&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(Ae[t.id].masterItemSubscriber=Ae[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},i={},a={},s={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},n=o(e,"qInfo.qType");return n&&s[n]&&s[n].forEach((function(n){t[n]=o(e,n)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(r[t]){var i=l(e);r[t].properties!==i&&(r[t].properties=i,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function c(e,n){return t.app[n](e).then((function(t){r[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:l(t.layout)}}))}return{subscribe:function(e){var n=e.measureLibraryIds,o=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;i={},e.measureLibraryIds.forEach((function(e){i[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:n,dimensionLibraryIds:o}),Object.keys(r).forEach((function(e){i[e]||a[e]||(r[e].listener.dispose(),delete r[e])})),t.app&&(Object.keys(i).forEach((function(e){i[e]&&!r[e]&&s.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!r[e]&&s.push(c(e,"getDimension"))}))),Promise.all(s)},unsubscribe:function(){Object.keys(r).forEach((function(e){r[e].listener.dispose()})),r={}}}}({model:t,callback:function(e){return _e({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Ae[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),t.default=i.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{function e(t){var n,r=t;return r>9?(n=65+r-10)>90&&(n+=6):r="".concat(r).charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?e(r+1):String.fromCharCode(n)}function t(n){var r=e(n%62),i=Math.floor(n/62);return i>0?t(i)+r:r}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}n.d(r,{default:()=>He});const o={getValue:function(e,t,n){if(null==e||null==t)return n;for(var r=t.split("."),i=e,o=0;o<r.length;++o){var a=r[o];if(""!==a){if(void 0===i[a]||null===i[a])return n;i=i[a]}}return i},setValue:function(e,t,n){if(null!=e&&null!=t){for(var r=t.split("."),i=r[r.length-1],o=e,a=0;a<r.length-1;++a){var s=r[a];void 0!==o[s]&&null!==o[s]||(o[s]=Number.isNaN(+r[a+1])?{}:[]),o=o[s]}void 0!==n?o[i]=n:delete o[i]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(i(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return r;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var n=e.indexOf(t[0]);if(-1!==n){for(var r=0;r<t.length;r++){var i=e.indexOf(t[r]);if(n>i)return!1;n=i}return!0}return!1},indexAdded:function(e,t){var n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){var n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r},findItemByPropertyValue:function(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return e[r];return null}return null},findIndexByPropertyValue:c};var f=n(645),h=n.n(f);const p=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,i=n.data[0];(t=i.dimensions).push.apply(t,a(r.qDimensions));var s,l=o.getValue(r,"qLayoutExclude.qHyperCubeDef.qDimensions");l&&(s=i.excludedDimensions).push.apply(s,a(l))},m=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,i=n.data[0];(t=i.measures).push.apply(t,l(r.qMeasures));var a,s=o.getValue(r,"qLayoutExclude.qHyperCubeDef.qMeasures");s&&(a=i.excludedMeasures).push.apply(a,l(s))},g=function(e){var t=e.exportFormat,n=e.qHyperCubeDef,r=t.data[0];n.qInterColumnSortOrder||(n.qInterColumnSortOrder=[]),r.interColumnSortOrder=n.qInterColumnSortOrder.concat();var i=o.getValue(n,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");i&&d.isOrderedSubset(i,r.interColumnSortOrder)&&(r.interColumnSortOrder=i.concat())},y=function(e){var t=e.exportFormat,n=e.properties;Object.keys(n).forEach((function(e){t.properties[e]=n[e]}))},v=function(e){var t=e.exportFormat,n=e.properties;n.qLayoutExclude||(n.qLayoutExclude={}),n.qLayoutExclude.disabled&&(Object.keys(n.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=n.qLayoutExclude.disabled[e])})),delete n.qLayoutExclude.disabled),n.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===o.getValue(e,t)&&o.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(n),delete n.qLayoutExclude.changed),n.qLayoutExclude.quarantine&&!o.isEmpty(n.qLayoutExclude.quarantine)||delete n.qLayoutExclude},b=function(e){e.forEach((function(e){h().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,n){var r,i,a=o.getValue(e,t);if(!o.isAtomicValue(a))try{if((i=(i=(r=JSON.stringify(a)).match(/:\{/g))?i.length:0)>2)return;a=JSON.parse(r)}catch(e){return}o.getValue(e,"qLayoutExclude.quarantine")||o.setValue(e,"qLayoutExclude.quarantine",{});var s=o.getValue(e,"qLayoutExclude.quarantine");s[n]||(s[n]={}),s[n][t]=a}var w=n(229),S=n.n(w);function M(e,t){var n=S()(!0,{},t,e);return o.getValue(n,"qOtherTotalSpec.qOtherCounted")||o.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),o.getValue(n,"qOtherTotalSpec.qOtherLimit")||o.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function k(e,t){return S()(!0,{},t,e)}function C(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var q=Math.pow(2,53)-1;function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const T=function(e,t,n){var r="masterobject"===o.getValue(t,"properties.qInfo.qType")?"masterobject":o.getValue(n,"qInfo.qType");o.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},N=function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},O=function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},A=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},_=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},L=function(e){var t,n=e.exportFormat,r=e.maxDimensions,i=e.minDimensions,o=e.newHyperCubeDef,a=e.defaultDimension,s=n.data[0];for(t=0;t<s.dimensions.length;++t){var l=M(s.dimensions[t],a);o.qDimensions.length<r?o.qDimensions.push(l):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(l)}for(t=0;t<s.excludedDimensions.length;++t){var u=M(s.excludedDimensions[t],a);o.qDimensions.length<i?o.qDimensions.push(u):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},I=function(e){var t,n=e.exportFormat,r=e.maxMeasures,i=e.minMeasures,o=e.newHyperCubeDef,a=e.defaultMeasure,s=n.data[0];for(t=0;t<s.measures.length;++t){var l=k(s.measures[t],a);o.qMeasures.length<r?o.qMeasures.push(l):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(l)}for(t=0;t<s.excludedMeasures.length;++t){var u=k(s.excludedMeasures[t],a);o.qMeasures.length<i?o.qMeasures.push(u):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},R=function(e){var t=e.exportFormat,n=e.dataDefinition,r=void 0===n?{}:n,i=t.data[0],o=r.dimensions||{max:0},a=r.measures||{max:0},s=C(a.max,i.dimensions.length,q),l=C(a.min,i.dimensions.length,0);return{maxDimensions:C(o.max,s,q),minDimensions:C(o.min,l,0),maxMeasures:s,minMeasures:l}},P=function(e){var t=e.exportFormat,n=e.newHyperCubeDef,r=t.data[0],i=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();var o=n.qInterColumnSortOrder.length;if(o!==i)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());o!==i;)o<i?(d.indexAdded(n.qInterColumnSortOrder,o),++o):(--o,d.indexRemoved(n.qInterColumnSortOrder,o))},z=function(e){var t=e.exportFormat,n=e.initialProperties,r=e.hypercubePath,i={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(i.qLayoutExclude.quarantine=S()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?o.setValue(i,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?i[e]=t.properties[e]:i.qLayoutExclude.disabled[e]=t.properties[e]})),null===(i=S()(!0,{},n,i)).components&&(i.components=[]),i},F=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,i=e.maxMeasures,o=e.minMeasures,a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>i&&i>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>o||!i&&a.measures.length>0||!n&&a.dimensions.length>0},j=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,i=e.maxMeasures,o=e.minMeasures,a=e.newHyperCubeDef,s=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>n&&n>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>i&&i>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>o)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!i&&s.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&s.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},B=function(e){var t,n=e.newProperties,r=e.dataDefinition,i=e.hypercubePath;if(r.dimensions&&"function"==typeof r.dimensions.added){var a=o.getValue(n,i||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return E(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return E(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],s.forEach((function(e){a.qDimensions.push(e),r.dimensions.added(e,n)}))}},H=function(e){var t,n=e.newProperties,r=e.dataDefinition,i=e.hypercubePath;if(r.measures&&"function"==typeof r.measures.added){var a=o.getValue(n,i||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return D(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return D(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?D(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],s.forEach((function(e){a.qMeasures.push(e),r.measures.added(e,n)}))}},V=function(e){var t=e.measures,n=e.modifierTypes;t&&n&&h().isSupportedModifiers(n)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function $(e,t){var n=o.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!n&&(Object.keys(n).forEach((function(t){o.setValue(e,t,n[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const U={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,s=o.getValue(a,n||""),l=s.qHyperCubeDef;return l.qInterColumnSortOrder||(l.qInterColumnSortOrder=[]),p({exportFormat:i,qHyperCubeDef:l}),m({exportFormat:i,qHyperCubeDef:l}),g({exportFormat:i,qHyperCubeDef:l}),delete l.qLayoutExclude,y({exportFormat:i,properties:a}),n&&(i.properties.qHyperCubeDef=l,delete s.qHyperCubeDef),v({exportFormat:i,properties:a}),r||b(i.properties.qHyperCubeDef.qMeasures),Array.isArray(i.properties.filters)&&(x(i.properties,"filters","storedFilters"),delete i.properties.filters),i.properties.qHyperCubeDef.qContextSetExpression&&(x(i.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),i.properties.qHyperCubeDef.qContextSetExpression=""),i.properties.qHyperCubeDef.qDynamicScript&&i.properties.qHyperCubeDef.qDynamicScript.length&&(x(i.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),i.properties.qHyperCubeDef.qDynamicScript=[]),i},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=void 0===n?{}:n,i=e.dataDefinition,a=void 0===i?{}:i,s=e.defaultPropertyValues,l=void 0===s?{}:s,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,f=void 0===d||d,h=e.isHCModifierSupported,p=void 0===h||h,m={qChildren:[]},g=z({exportFormat:t,initialProperties:r,hypercubePath:u}),y=o.getValue(r,u||"").qHyperCubeDef,v=o.getValue(g,u||"").qHyperCubeDef,b=R({exportFormat:t,dataDefinition:a}),x=b.maxDimensions,w=b.minDimensions,S=b.maxMeasures,M=b.minMeasures,k=l.defaultDimension,C=void 0===k?A():k,q=l.defaultMeasure,E=void 0===q?_():q;v.qDimensions.length=0,v.qMeasures.length=0,F({exportFormat:t,maxDimensions:x,minDimensions:w,maxMeasures:S,minMeasures:M})&&j({exportFormat:t,maxDimensions:x,minDimensions:w,maxMeasures:S,minMeasures:M,newHyperCubeDef:v}),L({exportFormat:t,maxDimensions:x,minDimensions:w,newHyperCubeDef:v,defaultDimension:C}),I({exportFormat:t,maxMeasures:S,minMeasures:M,newHyperCubeDef:v,defaultMeasure:E}),B({newProperties:g,dataDefinition:a,hypercubePath:u}),H({newProperties:g,dataDefinition:a,hypercubePath:u}),P({exportFormat:t,newHyperCubeDef:v}),N("qMaxStackedCells",y,v),N("qNoOfLeftDims",y,v),O("qInitialDataFetch",y,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),O("qMode",y,v,"S"),O("qReductionMode",y,v,"N"),O("qSortbyYValue",y,v),O("qIndentMode",y,v),O("qShowTotalsAbove",y,v),T(g,t,r),m.qProperty=g;var D=o.getValue(c||{},"support.modifiers");return V({measures:v.qMeasures,modifierTypes:D}),f&&$(m.qProperty,"storedFilters"),"S"===v.qMode&&p&&$(m.qProperty,"dynamicScript"),m}};var W={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function Y(e,t,n,r){t=t||[];var i=c(e,r,n),o=c(t,r,n);if(-1!==i&&-1===o){var a=e.splice(i,1);t.push(a[0])}return t}function K(e,t){return e.length!==t}const G={create:function(e,t){if(!e||!W[e])throw new Error("Attribute Expressions Util: ID required");var n={};return t&&Object.keys(t).forEach((function(e){n[e]=t[e]})),n.id=e,n.qAttribute=!0,n},moveByIdFromGroup:function(e,t,n,r,i){n=n||"qAttributeExpressions",i=i||"id";for(var o=0;o<e.length;o++){var a=e[o][n],s=t.length;if(Y(a,t,r,i),K(t,s))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return o.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return o.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},J={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},Q={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Z={scatterplot:Q,"sn-scatter-plot":Q,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,n){if(Array.isArray(e[t])){var r=d.findIndexByPropertyValue(e[t],"id",n);r>=0&&e[t].splice(r,1)}else e[t]=[]}function te(e,t){var n=G.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)})),t.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)}))}function ne(e,t){if(t){var n="="===t.charAt(0);e.color.altLabel=n?{qStringExpression:{qExpr:t.substr(1)}}:t}}function re(e){var t=e.properties,n=e.isDimension,r=e.dimensions,i=e.excludedDimensions,a=e.measures,s=e.label;te(r,i);var l=r[r.length-1];if(l){var u=n?o.getValue(t,"color.byDimDef"):o.getValue(t,"color.byMeasureDef"),c=o.getValue(t,"color.formatting.qNumFormat"),f=o.getValue(t,"color.formatting.isCustomFormatted");if(u){var h=G.create(G.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,n=e.label,r=e.item,i=e.isDimension,o=e.qNumFormat,a=e.isCustomFormatted;t.label=n||r.label,i?t.qDef=r.key:(t.qExpression=r.key,o&&(t.qNumFormat=o,t.isCustomFormatted=a)),t.matchMeasure=r.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:h,label:s,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:f});break;case"libraryItem":!function(e){var t=e.attributeExpression,n=e.measures,r=e.item,i=e.qNumFormat,o=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(n,"qLibraryId",r.key),i&&(t.qNumFormat=i,t.isCustomFormatted=o)),void 0!==r.expression?t.qExpression=r.expression:t.qLibraryId=r.key,t.colorMapRef=r.key}({attributeExpression:h,measures:a,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:f})}n?(h.qSortBy={qSortByAscii:1},l.qAttributeDimensions.push(h)):l.qAttributeExpressions.push(h)}}}function ie(e,t,n,r){var i,o,a,s={};switch(e){case"dimension":n.qLibraryId?(s.type="dimension",s.name=n.qLibraryId,s.id=n.qLibraryId):(s.type="field",t?(s.name=n.label||n.qDef,s.id=n.qDef):(s.name=n.qDef.qFieldDefs[0],s.label=(a=n.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":i=function(e,t){return t?e.qLibraryId:h().measureBase.getLibraryId(e)}(n,t),i?(s.type="measure",s.name=i,s.id=i,o=function(e,t){return h().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(n,r),o&&(s.expression=o)):(s.type="expression",t?(s.name=n.label||n.qExpression,s.id=n.qExpression):(s.name=n.qDef.qDef,s.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(n)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return s}const oe={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,n,r){var i=n?"expression":t.type,o=e.color,a=o.mode,s=X.getItemLabel(t);switch(ne(e,s||""),i){case"field":a="byDimension",o.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",o.byMeasureDef={label:n||s,key:n||t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",o.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",o.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},o.formatting&&oe.useMasterNumberFormat(o.formatting)}r||(o.auto=!1,o.mode=a)}function se(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=o.getValue(e,"color.byDimDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"color.byDimDef");r.activeDimensionIndex=Math.min(r.activeDimensionIndex,n.length-1);var i=ie("dimension",!1,n[r.activeDimensionIndex]);i.activeDimensionIndex=r.activeDimensionIndex,ae(e,i)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=n[function(e,t,n){var r=o.getValue(t,"visualization"),i=n.split("."),a=Number(i[1]),s=o.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===r&&"point"===s}(n,e,t)?0:n.length-1],i=G.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(r.qAttributeDimensions,"id",i);return ae(e,ie("dimension",!!a,a||r)),!!a}(e,t))return;re({properties:e,isDimension:!0,dimensions:n,excludedDimensions:i,measures:r,label:o.getValue(e,"color.byDimDef.label")})}const le=function(e,t,n){o.setValue(e,t,n),o.isAtomicValue(n)&&function(e,t,n){var r=e.qLayoutExclude;r&&(r.changed||(r.changed={}),r.changed[t]={from:o.getValue(e,t),to:n})}(e,t,n)},ue=function(e,t){var n={primary:!0};if(e){var r=(Z[t]||J).colorModeOptions||J.colorModeOptions;n.byDimension=r.dimension(e),n.byMeasure=r.measure(e),n.byMultiple=r.multiColor(e),n.byExpression=r.expression(e)}return n},ce=function(e){var t=e.canColorBy,n=e.autoColor,r=e.colorMode,i=e.dimensions;return!(t[r]&&!n&&("byDimension"!==r&&"byMeasure"!==r||!i.length))},de=function(e,t){var n,r=o.getValue(e,"color.mode"),i=o.getValue(e,"color.auto"),a=o.getValue(e,"".concat(t,"qDimensions"),[]),s=o.getValue(e,"".concat(t,"qMeasures"),[]),l=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);i?te(a,l):!(n={auto:i,colorMode:r,dimensions:a}).auto&&"byDimension"===n.colorMode&&n.dimensions.length>0?se(e,t):function(e){var t=e.auto,n=e.colorMode,r=e.dimensions,i=e.measures,a=e.properties,s=o.getValue(a,"visualization");return!(t||"byMeasure"!==n||!r.length||"map"!==s&&!i.length)}({auto:i,colorMode:r,dimensions:a,measures:s,properties:e})?function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=o.getValue(e,"color.byMeasureDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var n=o.getValue(e,"".concat(t,"qMeasures"),[]),r=o.getValue(e,"color.byMeasureDef");if(r.activeMeasureIndex=Math.min(r.activeMeasureIndex,n.length-1),r.activeMeasureIndex>-1){var i=ie("measure",!1,n[r.activeMeasureIndex],!0);i.activeMeasureIndex=r.activeMeasureIndex,ae(e,i)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,r)&&function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=n[n.length-1],a=G.IDMAP.COLOR_BY_ALTERNATIVE,s=d.findItemByPropertyValue(i.qAttributeExpressions,"id",a);return ae(e,ie("measure",!!s,s||r[0])),!!s}(e,t))return;re({properties:e,isDimension:!1,dimensions:n,excludedDimensions:i,measures:r,label:o.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var n=o.getValue(e,"color.mode"),r=o.getValue(e,"".concat(t,"qDimensions"),[]),i=o.getValue(e,"".concat(t,"qMeasures"),[]),a=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===n&&i.length<2&&o.setValue(e,"color.mode","primary"),te(r,a)}(e,t)},fe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},he=function(e){var t=e.shouldUpdateColorBy,n=e.properties,r=o.getValue(n,"qHyperCubeDef.qMeasures",[]),i=o.getValue(n,"color.mode","");return!t&&"byExpression"===i&&r.length>0},pe=function(e){var t=o.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),n=o.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:n,id:"colorByExpression"}),o.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},me=function(e){o.setValue(e,"color.mode","primary"),o.setValue(e,"color.auto",!0)},ge=function(e){var t=o.getValue(e,"qHyperCubeDef.qDimensions",[]),n=o.getValue(e,"color.persistent",!1);return t.length>1&&!n},ye={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=U.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),o=i.data[0],a=o.dimensions.concat(o.excludedDimensions),s=o.measures.concat(o.excludedMeasures),l=G.IDMAP,u=l.COLOR_BY_ALTERNATIVE,c=l.COLOR_BY_EXPRESSION;return G.moveByIdFromGroup(a,[],"qAttributeDimensions",u),G.moveByIdFromGroup(a,[],"qAttributeExpressions",u),G.moveByIdFromGroup(s,[],"qAttributeExpressions",c),i},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,i=e.defaultPropertyValues,a=e.hypercubePath,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=U.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:i,hypercubePath:a,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty,f=o.getValue(d,"visualization"),h=o.getValue(d,"qHyperCubeDef.qDimensions",[]),p=o.getValue(d,"color.mode",""),m=o.getValue(d,"color.auto",""),g=ue(d,f),y=ce({canColorBy:g,autoColor:m,colorMode:p,dimensions:h});return g[p]?he({shouldUpdateColorBy:y,properties:d})&&pe(d):me(d),y&&de(d,"qHyperCubeDef."),ge(d)&&le(d,"color.persistent",!0),fe(h),c}};var ve=["bar","marker","line"];const be=function(e){var t=e.initialProperties,n=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?$(n,"unsupportedAutoMinMax")||S()(n.measureAxis,t.measureAxis):$(n,"supportedAutoMinMax")||S()(n.measureAxis,t.measureAxis)},xe=function(e){var t,n=e.exportFormat,r=e.initialProperties,i=e.properties,o=e.measureType,a=i.qHyperCubeDef,s=i.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:n,initialProperties:r})){var l=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var n=e.qDef.series,r=n.type,i=n.axis;t[i]||(t[i]={axis:i,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(r)&&t[i].type[r]++,t[i].type.total++}})),t}(a);l.length?(o&&(t=l.filter((function(e){return e.type[o]>0})).sort((function(e,t){return t.type[o]-e.type[o]}))),t&&t.length||(t=l.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&S()(s,n.properties.measureAxes[t[0].axis])):S()(s,n.properties.measureAxes[0])}},we=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var n=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=n}}},Se={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=e.supportedAutoMinMax,o=void 0===i||i,a=ye.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),s=a.properties;return o?(x(s,"measureAxis.min","supportedAutoMinMax"),x(s,"measureAxis.max","supportedAutoMinMax")):(x(s,"measureAxis.min","unsupportedAutoMinMax"),x(s,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,i=e.defaultPropertyValues,o=e.hypercubePath,a=e.measureType,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=ye.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:i,hypercubePath:o,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty;return be({initialProperties:n,properties:d}),xe({exportFormat:t,initialProperties:n,properties:d,measureType:a}),we(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Me(e,t,n){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(n)}function ke(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,i=e.arrayName,a=e.itemPath;o.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,i=e.item,a=e.itemPath,s=o.getValue(i,a);if(void 0!==s){var l=o.getValue(i,"qDef.cId");l||(l=o.generateId(),o.setValue(i,"qDef.cId",l));var u=Me(n,r,l);o.setValue(t,u,s),o.setValue(i,a,void 0)}}({properties:t,quarantineName:r,arrayName:i,item:e,itemPath:a})}))}function Ce(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,i=e.arrayName,a=e.itemPath;o.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,i=e.item,a=e.itemPath,s=o.getValue(i,"qDef.cId");if(s){var l=Me(n,r,s),u=o.getValue(t,l);void 0!==u&&(o.setValue(i,a,u),o.setValue(t,l,void 0))}}({properties:t,quarantineName:r,arrayName:i,item:e,itemPath:a})}))}var qe="qHyperCubeDef.qMeasures",Ee="conditionalColoring",De="measures",Te="qDef.conditionalColoring";const Ne={quarantine:function(e){ke({properties:e,arrayPath:qe,quarantineName:Ee,arrayName:De,itemPath:Te})},unquarantine:function(e){Ce({properties:e,arrayPath:qe,itemPath:Te,arrayName:De,quarantineName:Ee})}};var Oe="qHyperCubeDef.qMeasures",Ae="measures",_e="qHyperCubeDef.qDimensions",Le="dimensions",Ie="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Re="alternativeMeasures",Pe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",ze="alternativeDimensions",Fe="qCalcCondition",je="conditionalShowHide";const Be={quarantine:function(e){ke({properties:e,arrayPath:Oe,quarantineName:je,arrayName:Ae,itemPath:Fe}),ke({properties:e,arrayPath:_e,quarantineName:je,arrayName:Le,itemPath:Fe})},unquarantine:function(e){Ce({properties:e,arrayPath:Oe,quarantineName:je,arrayName:Ae,itemPath:Fe}),Ce({properties:e,arrayPath:_e,quarantineName:je,arrayName:Le,itemPath:Fe})},quarantineAlternative:function(e){ke({properties:e,arrayPath:Ie,quarantineName:je,arrayName:Re,itemPath:Fe}),ke({properties:e,arrayPath:Pe,quarantineName:je,arrayName:ze,itemPath:Fe})},unquarantineAlternative:function(e){Ce({properties:e,arrayPath:Ie,quarantineName:je,arrayName:Re,itemPath:Fe}),Ce({properties:e,arrayPath:Pe,quarantineName:je,arrayName:ze,itemPath:Fe})}},He={hypercube:U,colorChart:ye,axisChart:Se,quarantineProperty:x,unquarantineProperty:$,quarantineArrayProp:ke,unquarantineArrayProp:Ce,conditionalColoring:Ne,conditionalShow:Be}})(),r.default})()}(z8);var F8=fg(z8.exports);function j8(e,t){if("custom"===e.dimensionAxis.axisDisplayMode){const n=t.layout.qHyperCube.qMeasureInfo.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==S3})).length,r=t.layout.qHyperCube.qDimensionInfo.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==S3})).length,i=e.dimensionAxis.maxVisibleItems;i<1?e.dimensionAxis.maxVisibleItems=10:i>1e4/(r+n)&&(e.dimensionAxis.maxVisibleItems=Math.min(i,Math.floor(1e4/(r+n))))}}const B8=.7,H8=.9,V8=[{translation:"Common.None",value:"none"},{translation:"Common.Small",value:"small"},{translation:"Common.Medium",value:"medium"},{translation:"Common.Large",value:"large"}],$8=(e,t)=>{var n,r,i;const o=null===(n=t.qHyperCube)||void 0===n||null===(n=n.qMeasureInfo)||void 0===n?void 0:n.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==S3})).length,a=null===(r=t.qHyperCube)||void 0===r||null===(r=r.qDimensionInfo)||void 0===r?void 0:r.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==S3})).length,s="grouped"===(null===(i=e.barGrouping)||void 0===i?void 0:i.grouping)&&a>0&&o+a>2;return zg.continuous(t)?1:s?H8:B8},U8=(e,t,n)=>{const r=`${e}.fontFamily`,i=`${e}.fontSize`;return{fontFamilyItem:{component:"dropdown",ref:r,options:()=>t.getOptions(r),defaultValue:()=>t.getDefaultValue(r)},fontWrapperItem:{component:"inline-wrapper",items:{fontSizeItem:{component:"dropdown",ref:i,options:()=>t.getOptions(i),defaultValue:()=>t.getDefaultValue(i)},fontColorItem:{component:"color-picker",width:!1,ref:`${e}.color`,defaultValue:()=>({color:n.getStyle("object.barChart",e,"color")})}}}}};function W8(e,t,n){const r=function(e){var t=e.theme,n=e.translator,r=e.config,i=void 0===r?{}:r,o=e.flags,a=function(e){var t=e.config,n=void 0===t?{}:t,r=n.id,i=n.paths;return{id:void 0===r?"object":"".concat("object",".").concat(r),paths:Array.isArray(i)?i:[]}}({config:i}),s=a.id,l=a.paths,u={};l.forEach((function(e){for(var r=e.split("."),i=u,a=0;a<r.length;a++){var l=r[a];a===r.length-1?i[l]=RM({theme:t,translator:n,id:s,path:e,flags:o}):void 0===i[l]&&(i[l]={}),i=i[l]}}));var c=function(e){for(var t=e.split("."),n=u,r=0;r<t.length;r++){var i=t[r];if(void 0===n[i])throw new Error("font-resolver: Path '".concat(e,"' could not be resolved."));n=n[i]}return n};return u.getDefaultValue=function(e){return c(e).getDefaultValue()},u.getOptions=function(e){return c(e).getOptions()},u}({theme:e,translator:n,config:{id:"barChart",paths:["axis.title","axis.label.name","label.value","legend.title","legend.label"]},flags:t});return{component:"styling-panel",show:!0,chartType:"barchart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.BarChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:null==t?void 0:t.isEnabled("SENSECLIENT_IM_2428_BARCHART_BG"),items:{outlineSection:{translation:"properties.Outline",component:"panel-section",items:{wrapperItem:{component:"items",ref:"components",key:"bar",items:{barStroke:{component:"inline-wrapper",items:{strokeWidth:{ref:"style.strokeWidth",width:!0,component:"dropdown",options:Object.keys(V8).map((e=>V8[e])),defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",defaultValue:{color:"#205891"},schemaIgnore:!0,width:"auto",component:"color-picker"}}}}}}},widthSection:{translation:"LayerStyleEditor.style.barWidth",component:"panel-section",show:(e,t)=>!zg.continuous(t.layout),items:{barWidth:{component:"items",ref:"components",key:"bar",items:{width:{ref:"style.width",component:"slider",min:.01,max:1,step:.01,defaultValue(e,t,n){const{properties:r}=n,{barGrouping:i,qHyperCubeDef:o}=r,a=o.qMeasures.length,s=o.qDimensions.length,l="grouped"===i.grouping&&s>0&&a+s>2;return zg.continuous(r)?1:l?H8:B8},schemaIgnore:!0}}}}},axisTitleSection:{translation:"properties.axis.title",component:"panel-section",items:{axisTitleItems:{component:"items",ref:"components",key:"axis",items:U8("axis.title",r,e)}}},axisLabelSection:{translation:"properties.axis.label",component:"panel-section",items:{axisLabelItems:{component:"items",ref:"components",key:"axis",items:U8("axis.label.name",r,e)}}},labelSection:null!=t&&t.isEnabled("CLIENT_IM_3050")?{translation:"properties.dataPoints.labelmode",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"label",items:{...U8("label.value",r,e),contrastColor:{component:"checkbox",type:"boolean",ref:"label.value.useContrastColor",translation:"properties.dataPoints.valuelabel.contrast",defaultValue:!0}}}}}:void 0,legendTitleSection:null!=t&&t.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.title",component:"panel-section",items:{legendTitleSection:{component:"items",ref:"components",key:"legend",items:U8("legend.title",r,e)}}}:void 0,legendLabelSection:null!=t&&t.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.label",component:"panel-section",items:{legendLabelSection:{component:"items",ref:"components",key:"legend",items:U8("legend.label",r,e)}}}:void 0}}}function Y8(e=!1,t,n,r){return e?function(e){return{classification:{section:"styling",tags:["simple"],exclusive:!0},component:"items",show:!0,chartType:"barchart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.BarChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:null==e?void 0:e.isEnabled("SENSECLIENT_IM_2428_BARCHART_BG"),items:{outlineSection:{translation:"LayerStyleEditor.style.strokeWidth",component:"items",items:{wrapperItem:{component:"items",ref:"components",key:"bar",items:{barStroke:{component:"inline-wrapper",items:{strokeWidth:{ref:"style.strokeWidth",width:!0,component:"dropdown",translation:"LayerStyleEditor.style.strokeWidth",options:Object.keys(V8).map((e=>V8[e])),schemaIgnore:!0,defaultValue:V8[0].value},strokeColor:{ref:"style.strokeColor",schemaIgnore:!0,defaultValue:{color:"#205891",index:-1},width:"auto",component:"color-picker"}}}}}}},widthSection:{translation:"LayerStyleEditor.style.barWidth",component:"items",show:(e,t)=>!zg.continuous(t.layout),items:{barWidth:{component:"items",ref:"components",key:"bar",items:{width:{ref:"style.width",translation:"LayerStyleEditor.style.barWidth",component:"slider",min:.01,max:1,step:.01,schemaIgnore:!0,defaultValue:(e,t,n)=>$8(n.properties,n.layout)}}}}},optionsSection:{translation:"LayerStyleEditor.label.Options",component:"items",items:{wrapperItem:{component:"items",items:{optionsHeader:{component:"header",translation:"LayerStyleEditor.label.Options"},scrollbar:{ref:"scrollbar",translation:"properties.scrollbar",component:"dropdown",type:"string",options:Object.keys(DG.OPTIONS).map((e=>DG.OPTIONS[e])),schemaIgnore:!0,defaultValue:DG.DEFAULT.value},scrollAlignment:{ref:"scrollStartPos",translation:"properties.ScrollAlignment",component:"dropdown",schemaIgnore:!0,defaultValue:0,options:[{value:0,translation:"properties.ScrollAlignStart"},{value:1,translation:"properties.ScrollAlignEnd"}]},gridLines:{type:"items",items:{showGridLines:{ref:"gridLine.auto",type:"boolean",translation:"properties.gridLine.spacing",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}]},gridSpacing:{ref:"gridLine.spacing",type:"number",component:"dropdown",defaultValue:2,options:[{value:0,translation:"properties.gridLine.noLines"},{value:1,translation:"properties.gridLine.wide"},{value:2,translation:"properties.gridLine.medium"},{value:3,translation:"properties.gridLine.narrow"}],show:e=>e.gridLine&&!e.gridLine.auto}}}}}}}}}}(n):W8(t,n,r)}const K8={component:"style-editor",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",resetBtnTranslation:"LayerStyleEditor.component.resetAll",key:"bar",ref:"components",defaultValues:(e,t)=>({key:"bar",style:{width:$8(e,t.layout),strokeColor:{index:-1,color:"#205891"},strokeWidth:"none"}}),items:{bar:{components:"items",type:"items",uses:"styling.box",items:{strokeWidth:{show:!0,component:"dropdown",type:"string",options:[{value:"none",translation:"LayerStyleEditor.style.strokeWidth.none"},{value:"small",translation:"LayerStyleEditor.style.strokeWidth.small"},{value:"medium",translation:"LayerStyleEditor.style.strokeWidth.medium"},{value:"large",translation:"LayerStyleEditor.style.strokeWidth.large"}],defaultValue:"none"},strokeColor:{show:e=>"none"!==e.style.strokeWidth},width:{show:(e,t,n)=>!zg.continuous(n.layout),component:"slider",min:.01,max:1,step:.01,defaultValue:B8}}}}},G8=e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==S3},X8=(e,t)=>e.qHyperCube[t].filter((e=>G8(e))),J8=e=>({get:(t,n,r)=>zg.continuous(r.layout)?e:t(n.type),set(e,t,n){const r=Hg(n.type,n);t(n.type,e,r)}}),Q8=e=>{if(!e)return!1;const t=Cg(!0,{},e);return t.qHyperCube.qMeasureInfo=X8(e,"qMeasureInfo"),t.qHyperCube.qDimensionInfo=X8(e,"qDimensionInfo"),t&&!zg.continuous(t)&&zg.stacked(t)},Z8=({translator:e,flags:t,anything:n})=>{var r,i,o;const a=null==n||null===(r=n.sense)||void 0===r||null===(i=r.isUnsupportedFeature)||void 0===i?void 0:i.call(r,"continuousData"),s={items:{labels:{items:{header:{show:(e,t,n)=>X8(n.layout,"qMeasureInfo").length},pointLabels:{component:"checkbox",ref:"dataPoint.showLabels",type:"boolean",translation:"Simple.Label.Value",show:(e,t,n)=>!Q8(t.layout)&&X8(n.layout,"qMeasureInfo").length},segmentLabels:{component:"checkbox",ref:"dataPoint.showSegmentLabels",type:"boolean",translation:"properties.dataPoints.segmentLabelMode",defaultValue:!1,show:(e,t)=>Q8(t.layout),convertFunctions:{get:(e,t,n,r)=>r.dataPoint.showLabels&&r.dataPoint.showSegmentLabels,set(e,t,n,r,i){i.dataPoint.showSegmentLabels=e,i.dataPoint.showLabels=i.dataPoint.showSegmentLabels||i.dataPoint.showTotalLabels}}},totalLabels:{component:"checkbox",ref:"dataPoint.showTotalLabels",type:"boolean",translation:"properties.dataPoints.totalLabelMode",defaultValue:!0,show:(e,t)=>Q8(t.layout),convertFunctions:{get:(e,t,n,r)=>r.dataPoint.showLabels&&r.dataPoint.showTotalLabels,set(e,t,n,r,i){i.dataPoint.showTotalLabels=e,i.dataPoint.showLabels=i.dataPoint.showSegmentLabels||i.dataPoint.showTotalLabels}}},dimensionTitle:{component:"checkbox",ref:"dimensionAxis.show",type:"string",translation:"Simple.Label.Dimension.Hide",defaultValue:"all",show:(e,t,n)=>X8(n.layout,"qDimensionInfo").length&&X8(n.layout,"qMeasureInfo").length,convertFunctions:{get:(e,t,n,r)=>"labels"===r.dimensionAxis.show||"none"===r.dimensionAxis.show,set(e,t,n,r,i){i.dimensionAxis.show=e?"labels":"all"}}},measureTitle:{component:"checkbox",ref:"measureAxis.show",type:"string",translation:"Simple.Label.Measure.Hide",defaultValue:"all",show:(e,t,n)=>X8(n.layout,"qMeasureInfo").length,convertFunctions:{get:(e,t,n,r)=>"labels"===r.measureAxis.show||"none"===r.measureAxis.show,set(e,t,n,r,i){i.measureAxis.show=e?"labels":"all"}}}}}}},l=null==n||null===(o=n.sense)||void 0===o?void 0:o.theme,u={uses:"settings",items:{simpleStyling:Y8(!0,l,t,e),simpleLabels:s,general:{items:{showDisclaimer:{translation:"properties.showDisclaimer",type:"boolean",ref:"showDisclaimer",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Show"},{value:!1,translation:"properties.hide"}]}}},presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:{boxStyling:null!=t&&t.isEnabled("SENSECLIENT_PS_17478_STYLINGPANEL_BARCHART")?Y8(!1,l,t,e):K8,grouping:{ref:"barGrouping.grouping",type:"string",component:"item-selection-list",defaultValue:"grouped",horizontal:!0,items:[{icon:"grouped",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.grouped",value:"grouped"},{icon:"stacked",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.stacked",value:"stacked"}],show(e,t){const n=X8(t.layout,"qMeasureInfo").length,r=X8(t.layout,"qDimensionInfo").length;return r>0&&n+r>2},change(e,t){X8(t.layout,"qDimensionInfo").length>1&&"stacked"===e.barGrouping.grouping?(e.qHyperCubeDef.qMode="K",e.qHyperCubeDef.qAlwaysFullyExpanded=!0):e.qHyperCubeDef.qMode="S"},readOnly:(e,t,n)=>zg.continuous(n.layout),convertFunctions:J8("stacked")},orientation:{ref:"orientation",type:"string",component:"item-selection-list",defaultValue:"vertical",horizontal:!0,items:[{component:"icon-item",icon:"bars_vertical",labelPlacement:"bottom",translation:"properties.orientation.vertical",value:"vertical"},{icon:"bars_horizontal",component:"icon-item",labelPlacement:"bottom",translation:"Common.Horizontal",value:"horizontal"}],readOnly:(e,t,n)=>zg.continuous(n.layout),convertFunctions:J8("vertical")},scroll:{type:"items",items:{scrollbar:{type:"string",component:"dropdown",ref:"scrollbar",translation:"properties.scrollbar",options:Object.keys(DG.OPTIONS).map((e=>DG.OPTIONS[e])),defaultValue:DG.DEFAULT.value},scrollStartPos:{ref:"scrollStartPos",type:"number",translation:"properties.ScrollAlignment",component:"dropdown",defaultValue:0,options:[{value:0,translation:"properties.ScrollAlignStart"},{value:1,translation:"properties.ScrollAlignEnd"}],show:(e,t,n)=>!zg.continuous(n.layout)}}},gridLines:{type:"items",snapshot:{tid:"property-gridLines"},items:{showGridLines:{ref:"gridLine.auto",type:"boolean",translation:"properties.gridLine.spacing",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}]},gridSpacing:{ref:"gridLine.spacing",type:"number",component:"dropdown",defaultValue:2,options:[{value:0,translation:"properties.gridLine.noLines"},{value:1,translation:"properties.gridLine.wide"},{value:2,translation:"properties.gridLine.medium"},{value:3,translation:"properties.gridLine.narrow"}],show:e=>e.gridLine&&!e.gridLine.auto}}},valueLabels:{type:"items",snapshot:{tid:"property-valueLabels"},items:{showLabels:{ref:"dataPoint.showLabels",type:"boolean",translation:"properties.dataPoints.labelmode",component:"switch",defaultValue:!1,options:[{value:!0,label:(t,n)=>((e,t,n)=>n&&n.get(Q8(t.layout)?"properties.on":"Common.Auto"))(0,n,e)},{value:!1,translation:"properties.off"}]},showSegmentLabels:{ref:"dataPoint.showSegmentLabels",type:"boolean",translation:"properties.dataPoints.segmentLabelMode",component:"switch",defaultValue:!1,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}],show:(e,t,n)=>e.dataPoint.showLabels&&Q8(n.layout)},showTotalLabels:{ref:"dataPoint.showTotalLabels",type:"boolean",translation:"properties.dataPoints.totalLabelMode",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}],show:(e,t,n)=>e.dataPoint.showLabels&&Q8(n.layout)}}}}},colorsAndLegend:{uses:"colorsAndLegend",items:{colors:{items:{attributeExpression:_D}},legend:{items:{show:{snapshot:{tid:"property-legend"}}}}}},dimensionAxis:{uses:"axis.dimensionAxis",items:{axisDisplaySettings:{components:"items",type:"items",show:(e,n,r)=>t&&t.isEnabled("BC_XAXIS_MODE")&&!zg.continuous(r.layout),items:{axisDisplayMode:{ref:"dimensionAxis.axisDisplayMode",type:"string",translation:"properties.axis.displaymode",component:"dropdown",defaultValue:"auto",options:[{value:"auto",translation:"properties.axis.displaymode.auto"},{value:"max",translation:"properties.axis.displaymode.max"},{value:"custom",translation:"properties.axis.displaymode.custom"}]},maxVisibleItems:{ref:"dimensionAxis.maxVisibleItems",translation:"properties.axis.maxvisiblevalues",expression:"optional",type:"integer",invalid(e,t,n){const r=X8(n.layout,"qMeasureInfo").length,i=X8(n.layout,"qDimensionInfo").length,o=e.dimensionAxis.maxVisibleItems;return o<0||o>1e4/(i+r)},globalChange:j8,defaultValue:10,show:e=>"custom"===e.dimensionAxis.axisDisplayMode},hint:{component:"text",translation:"properties.axis.maxvisiblevalues.hint",style:"hint",show:e=>["custom","max"].indexOf(e.dimensionAxis.axisDisplayMode)>-1}}},continuousGroup:{items:{miniChart:null},show:!a}}},measureAxis:{uses:"axis.flippableMeasureAxis"},tooltip:{uses:"tooltip"}}};return null!=t&&t.isEnabled("SENSECLIENT_LAYERED_LABELS")&&(u.items.dimensionAxis.items.othersGroup={items:{label:{options:[{value:"auto",translation:"Common.Auto"},{value:"horizontal",translation:"Common.Horizontal"},{value:"tilted",translation:"properties.labels.tilted"},{value:"layered",translation:"properties.labels.layered"}]}}}),u},e9={uses:"sortingWithDisclaimer",items:{defaultSorting:{items:{dimensions:{locked:(e,t,n)=>1===n.getMeasures().length&&2===n.getDimensions().length&&0===e,items:{autoSort:{change(e){Jy(e)}}}},interColumnSorting:{reset:(e,t)=>{const{qDimensions:n,qMeasures:r,qInterColumnSortOrder:i}=e.qHyperCubeDef,{qCardinal:o}=t.layout.qHyperCube.qDimensionInfo[0],a=i.length,s=[...Array(a).keys()];1===n.length&&r.length>=1&&o>10&&([s[0],s[1]]=[s[1],s[0]]),e.qHyperCubeDef.qInterColumnSortOrder=s}}}}}},t9={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}},refLines:{uses:"reflines"},dimRefLines:{uses:"dimReflines"}}},n9=({translator:e,flags:t,anything:n})=>{var r,i;return{uses:"data",items:{dimensions:{items:{nullSuppression:{show(e,t,r){var i,o;if(null!=n&&null!==(i=n.sense)&&void 0!==i&&null!==(o=i.isUnsupportedFeature)&&void 0!==o&&o.call(i,"includeZeroValues"))return!1;const a=((e,t)=>{var n,r;const i=null===(n=t.layout)||void 0===n||null===(n=n.qHyperCube)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.findIndex((e=>G8(e)));return(null===(r=t.properties)||void 0===r||null===(r=r.qHyperCubeDef)||void 0===r||null===(r=r.qDimensions)||void 0===r?void 0:r[i])===e})(e,t),s=zg.continuous(r.layout);return!(a&&s)}},visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Chart.Dimensions.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0,show:()=>t.isEnabled("IM_1579_HIDE_DIM_MEA")}}},measures:{items:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Chart.Measures.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0,show:()=>t.isEnabled("IM_1579_HIDE_DIM_MEA")},trendLines:null!=n&&null!==(r=n.sense)&&void 0!==r&&null!==(i=r.isUnsupportedFeature)&&void 0!==i&&i.call(r,"trendlines")?void 0:K4({translator:e,allowStackedByDimension:t&&t.isEnabled("TRENDLINES_STACKED_DIM")})}}}}};function r9({translator:e,flags:t,anything:n}){return{type:"items",component:"accordion",items:{data:n9({translator:e,flags:t,anything:n}),sorting:e9,addons:t9,settings:Z8({translator:e,flags:t,anything:n})}}}const i9=e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==S3};function o9(){return{type:"items",component:"accordion",items:{data:{uses:"data"},sort:{uses:"sortWithDisclaimer",items:{sort:{items:{dimensions:{locked(e,t,n){const r=n.qHyperCube.qMeasureInfo.length,i=n.qHyperCube.qDimensionInfo.filter((e=>i9(e))).length;return 1===r&&2===i&&0===e}}}}}},presentation:{uses:"presentation",items:{showLabels:{ref:"dataPoint.showLabels",type:"boolean",translation:"properties.dataPoints.labelmode",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]},grouping:{ref:"barGrouping.grouping",type:"string",component:"item-selection-list",horizontal:!0,items:[{icon:"grouped",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.grouped",value:"grouped"},{icon:"stacked",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.stacked",value:"stacked"}],show(e,t){const n=t.qHyperCube.qMeasureInfo.filter((e=>i9(e))).length,r=t.qHyperCube.qDimensionInfo.filter((e=>i9(e))).length;return n+r>2&&!zg.continuous(t)&&!((null==(i=t)||null===(o=i.qHyperCube)||void 0===o||null===(o=o.qDimensionInfo)||void 0===o?void 0:o.filter((e=>i9(e))).length)>1&&(null==i||null===(a=i.qHyperCube)||void 0===a?void 0:a.isHCEnabled));var i,o,a},change(e){e.qHyperCubeDef.qDimensions.length>1&&"stacked"===e.barGrouping.grouping?(e.qHyperCubeDef.qMode="K",e.qHyperCubeDef.qAlwaysFullyExpanded=!0):e.qHyperCubeDef.qMode="S"}},orientation:{ref:"orientation",type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"bars_vertical",labelPlacement:"bottom",translation:"properties.orientation.vertical",value:"vertical"},{icon:"bars_horizontal",component:"icon-item",labelPlacement:"bottom",translation:"Common.Horizontal",value:"horizontal"}],show:(e,t)=>!zg.continuous(t)}}},color:{uses:"color"}}}}function a9(e){const t={},n=zC(e,"components"),r=zC(e,"dimensionAxis.axisDisplayMode"),i=zC(e,"dimensionAxis.maxVisibleItems"),o=n?n.filter((e=>"bar"===e.key))[0]:void 0,a=zC(e,"tooltip");if(o&&o.style&&Object.keys(o.style).forEach((e=>{t[`chart_style_${e}`]=o.style[e]})),i&&(t.chart_dimaxis_maxVisibleItems=i),r&&(t.chart_dimaxis_axisDisplayMode=r),a){t.chart_tooltip_custom=!a.auto;const e=zC(a,"chart.object.refId");!a.auto&&e&&(t.chart_tooltip_custom_mini_chart=e)}return t}const s9=e=>!!(e&&e.qHyperCube.qSize.qcy>0),l9={ACCUMULATIONS:"accumulation",MOVING_AVERAGE:"movingAverage",DIFFERENCE:"difference",NORMALIZATION:"normalization"};function u9(){const e=[];return Object.keys(l9).forEach((t=>{e.push(l9[t])})),e}function c9(e){const{flags:t}=e;return{definition:r9(e),softDefinition:o9(),support:{snapshot:s9,export:s9,exportData:!0,sharing:s9,viewData:!0,effects:!0,modifiers:u9()},importProperties:(n,r,i,o)=>{const a={layout:{templateId:r.templateId}};i.mapProperties(a);const s={defaultDimension:i.getDefaultDimensionProperties(),defaultMeasure:i.getDefaultMeasureProperties()},l=F8.axisChart.importProperties({exportFormat:n,initialProperties:r,dataDefinition:O3(e),defaultPropertyValues:s,hypercubePath:o,extension:i}),u=l.qProperty;return u.qHyperCubeDef.qDimensions.length>1&&"stacked"===u.barGrouping.grouping&&(u.qHyperCubeDef.qMode="K",u.qHyperCubeDef.qAlwaysFullyExpanded=!0),t.isEnabled("IM_1579_HIDE_DIM_MEA")&&(F8.conditionalShow.unquarantine(u),F8.conditionalShow.unquarantineAlternative(u)),l},exportProperties:(e,n,r)=>{t.isEnabled("IM_1579_HIDE_DIM_MEA")&&(F8.conditionalShow.quarantine(e.qProperty),F8.conditionalShow.quarantineAlternative(e.qProperty));return F8.axisChart.exportProperties({propertyTree:e,hyperCubePath:n,viewDataMode:r})},migrate:{properties:e=>(e.qExtendsId||(function(e){var t;e.qHyperCubeDef.qDimensions.forEach(Jy),null!==(t=e.qHyperCubeDef.qLayoutExclude)&&void 0!==t&&null!==(t=t.qHyperCubeDef)&&void 0!==t&&t.qDimensions&&e.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.forEach(Jy)}(e),function({properties:e}){const{scrollbar:t,dimensionAxis:n,preferContinuousAxis:r,showMiniChartForContinuousAxis:i}=e;if(t||!1!==i)return;const{continuousAuto:o}=n;(o||!o&&r)&&(e.scrollbar=DG.OPTIONS.NONE.value)}({properties:e})),e)},extendMetrics:a9}}return function(t){const n=Q5();return{qae:A3(t),ext:c9(t),component(){const r=L3({env:t}),{viewState:i,viewCache:o}=I3(),a=function({picasso:t}){const n=e.useElement(),r=e.useOptions(),[i,o]=e.useState();return e.useEffect((()=>{if(!t)return()=>{};n.style.overflow="hidden";const e=t({renderer:{prio:[(null==r?void 0:r.renderer)||"canvas"]}}).chart({element:n,data:[],settings:{}});o(e);const{destroy:i}=e;return()=>{i()}}),[r.renderer]),i}({picasso:n}),s=f6({picasso:n,chart:a,environment:r,viewState:i,viewCache:o}),l=function({env:t,services:n}){var r;const i=e.useApp(),o=e.useModel(),a=e.useRenderState(),s=R8({enable:!1===(null==n||null===(r=n.layoutService)||void 0===r||null===(r=r.meta)||void 0===r?void 0:r.isSnapshot)}),[l,u]=e.usePromise((async()=>{if(!t||!n)return Promise.resolve();const{flags:e}=t,{layoutService:r}=n,{isSnapshot:s,isStacked:l,isContinuous:u}=r.meta,c=[];return s||c.push(o.getEffectiveProperties()),Promise.all(c).then((async t=>{const n=t[0]||void 0;if(e.isEnabled("IM_1579_HIDE_DIM_MEA")&&null!=n&&n.qHyperCubeDef){const e=r.getLayout(),t=Cg(!0,{},n);if(P8({properties:n,layout:e,isStacked:l,isContinuous:u,model:o,layoutService:r}))return a.pending(),OD(e)?o.setProperties(n).then((()=>{i.clearUndoBuffer()})):void await ND(o,t,n);a.restore()}return{properties:n}}))}),[t,n,s]);if(u&&!u.isHandled)throw u;return l}({env:t,services:s});A8({picasso:n,chart:a,services:s,environment:r,viewState:i,viewCache:o,bootstrapped:l}),(({environment:t,services:n,chart:r,viewState:i,bootstrapped:o})=>{e.onTakeSnapshot((e=>{var a;if(!t||!n||!o)return;const{flags:s}=t,{layoutService:l,dockService:u,colorService:c,discrete:d,continuousDataModel:f,reducedDataModel:h}=n,{width:p,height:m}=u.meta.chart.size;if(e.snapshotData=e.snapshotData||{},e.snapshotData.content={size:{w:p,h:m}},l.meta.isSnapshot)return Promise.resolve();if(e.snapshotData.content.chartData={scrollOffset:i.get("scrollOffset"),zoom:i.get("zoom"),legendScrollOffset:Fg(r,r6.COMPONENT.LEGEND_COLOR_CAT)},null!=s&&null!==(a=s.isEnabled)&&void 0!==a&&a.call(s,"IM_1579_HIDE_DIM_MEA")){const{properties:t}=o,n=null==t?void 0:t.qHyperCubeDef.qDimensions.some((e=>{var t;return null===(t=e.qCalcCondition)||void 0===t||null===(t=t.qCond)||void 0===t?void 0:t.qv}));n&&(e.tooltip.auto=!0)}return l.meta.isDiscrete?(d.command.setSnapshotData(e),h.setSnapshotData(e)):f.setSnapshotData(e),c.getMain().getSnapshotData().then((t=>{e.snapshotData.content.chartData={...e.snapshotData.content.chartData,...t}})).catch((()=>{}))})),e.useImperativeHandle((()=>({getViewState(){if(i&&r)return{scrollOffset:i.get("scrollOffset"),zoom:i.get("zoom"),legendScrollOffset:Fg(r,r6.COMPONENT.LEGEND_COLOR_CAT)}}})),[i,r])})({environment:r,services:s,chart:a,viewState:i,bootstrapped:l})}}}}));
122
+ `),O2.rippleVisible,z2,550,(({theme:e})=>e.transitions.easing.easeInOut),O2.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),O2.child,O2.childLeaving,F2,550,(({theme:e})=>e.transitions.easing.easeInOut),O2.childPulsate,j2,(({theme:e})=>e.transitions.easing.easeInOut)),V2=gT.forwardRef((function(e,t){const n=W1({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:i={},className:o}=n,a=EX(n,A2),[s,l]=gT.useState([]),u=gT.useRef(0),c=gT.useRef(null);gT.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[s]);const d=gT.useRef(!1),f=I0(),h=gT.useRef(null),p=gT.useRef(null),m=gT.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:o,cb:a}=e;l((e=>[...e,qQ.jsx(H2,{classes:{ripple:JZ(i.ripple,O2.ripple),rippleVisible:JZ(i.rippleVisible,O2.rippleVisible),ripplePulsate:JZ(i.ripplePulsate,O2.ripplePulsate),child:JZ(i.child,O2.child),childLeaving:JZ(i.childLeaving,O2.childLeaving),childPulsate:JZ(i.childPulsate,O2.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},u.current)])),u.current+=1,c.current=a}),[i]),g=gT.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:i=!1,center:o=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const s=a?null:p.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(o||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(n-l.top)}if(o)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===h.current&&(h.current=()=>{m({pulsate:i,rippleX:u,rippleY:c,rippleSize:g,cb:n})},f.start(80,(()=>{h.current&&(h.current(),h.current=null)}))):m({pulsate:i,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,m,f]),y=gT.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=gT.useCallback(((e,t)=>{if(f.clear(),"touchend"===(null==e?void 0:e.type)&&h.current)return h.current(),h.current=null,void f.start(0,(()=>{v(e,t)}));h.current=null,l((e=>e.length>0?e.slice(1):e)),c.current=t}),[f]);return gT.useImperativeHandle(t,(()=>({pulsate:y,start:g,stop:v})),[y,g,v]),qQ.jsx(B2,qX({className:JZ(O2.root,i.root,o),ref:p},a,{children:qQ.jsx(wW,{component:null,exit:!0,children:s})}))}));var $2=V2;function U2(e){return ZZ("MuiButtonBase",e)}var W2=e0("MuiButtonBase",["root","disabled","focusVisible"]);const Y2=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],K2=M2("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${W2.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),G2=gT.forwardRef((function(e,t){const n=W1({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:i=!1,children:o,className:a,component:s="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:f="a",onBlur:h,onClick:p,onContextMenu:m,onDragLeave:g,onFocus:y,onFocusVisible:v,onKeyDown:b,onKeyUp:x,onMouseDown:w,onMouseLeave:S,onMouseUp:M,onTouchEnd:k,onTouchMove:C,onTouchStart:q,tabIndex:E=0,TouchRippleProps:D,touchRippleRef:T,type:N}=n,O=EX(n,Y2),A=gT.useRef(null),_=gT.useRef(null),L=O0(_,T),{isFocusVisibleRef:I,onFocus:R,onBlur:P,ref:z}=$0(),[F,j]=gT.useState(!1);l&&F&&j(!1),gT.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),A.current.focus()}})),[]);const[B,H]=gT.useState(!1);gT.useEffect((()=>{H(!0)}),[]);const V=B&&!u&&!l;function $(e,t,n=c){return N0((r=>{t&&t(r);return!n&&_.current&&_.current[e](r),!0}))}gT.useEffect((()=>{F&&d&&!u&&B&&_.current.pulsate()}),[u,d,F,B]);const U=$("start",w),W=$("stop",m),Y=$("stop",g),K=$("stop",M),G=$("stop",(e=>{F&&e.preventDefault(),S&&S(e)})),X=$("start",q),J=$("stop",k),Q=$("stop",C),Z=$("stop",(e=>{P(e),!1===I.current&&j(!1),h&&h(e)}),!1),ee=N0((e=>{A.current||(A.current=e.currentTarget),R(e),!0===I.current&&(j(!0),v&&v(e)),y&&y(e)})),te=()=>{const e=A.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=gT.useRef(!1),re=N0((e=>{d&&!ne.current&&F&&_.current&&" "===e.key&&(ne.current=!0,_.current.stop(e,(()=>{_.current.start(e)}))),e.target===e.currentTarget&&te()&&" "===e.key&&e.preventDefault(),b&&b(e),e.target===e.currentTarget&&te()&&"Enter"===e.key&&!l&&(e.preventDefault(),p&&p(e))})),ie=N0((e=>{d&&" "===e.key&&_.current&&F&&!e.defaultPrevented&&(ne.current=!1,_.current.stop(e,(()=>{_.current.pulsate(e)}))),x&&x(e),p&&e.target===e.currentTarget&&te()&&" "===e.key&&!e.defaultPrevented&&p(e)}));let oe=s;"button"===oe&&(O.href||O.to)&&(oe=f);const ae={};"button"===oe?(ae.type=void 0===N?"button":N,ae.disabled=l):(O.href||O.to||(ae.role="button"),l&&(ae["aria-disabled"]=l));const se=O0(t,z,A),le=qX({},n,{centerRipple:i,component:s,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:E,focusVisible:F}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,o=U0({root:["root",t&&"disabled",n&&"focusVisible"]},U2,i);return n&&r&&(o.root+=` ${r}`),o})(le);return qQ.jsxs(K2,qX({as:oe,className:JZ(ue.root,a),ownerState:le,onBlur:Z,onClick:p,onContextMenu:W,onFocus:ee,onKeyDown:re,onKeyUp:ie,onMouseDown:U,onMouseLeave:G,onMouseUp:K,onDragLeave:Y,onTouchEnd:J,onTouchMove:Q,onTouchStart:X,ref:se,tabIndex:l?-1:E,type:N},ae,O,{children:[o,V?qQ.jsx($2,qX({ref:L,center:i},D)):null]}))}));var X2=G2;function J2(e){return ZZ("MuiButton",e)}var Q2=e0("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var Z2=gT.createContext({});var e5=gT.createContext(void 0);const t5=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],n5=e=>qX({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),r5=M2(X2,{shouldForwardProp:e=>S2(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${$Q(n.color)}`],t[`size${$Q(n.size)}`],t[`${n.variant}Size${$Q(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const i="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],o="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return qX({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":qX({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:l1(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:l1(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:l1(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:o,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":qX({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Q2.focusVisible}`]:qX({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Q2.disabled}`]:qX({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${l1(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Q2.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Q2.disabled}`]:{boxShadow:"none"}})),i5=M2("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${$Q(n.size)}`]]}})((({ownerState:e})=>qX({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},n5(e)))),o5=M2("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${$Q(n.size)}`]]}})((({ownerState:e})=>qX({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},n5(e)))),a5=gT.forwardRef((function(e,t){const n=gT.useContext(Z2),r=gT.useContext(e5),i=W1({props:C0(n,e),name:"MuiButton"}),{children:o,color:a="primary",component:s="button",className:l,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:f,focusVisibleClassName:h,fullWidth:p=!1,size:m="medium",startIcon:g,type:y,variant:v="text"}=i,b=EX(i,t5),x=qX({},i,{color:a,component:s,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:p,size:m,type:y,variant:v}),w=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,classes:a}=e;return qX({},a,U0({root:["root",o,`${o}${$Q(t)}`,`size${$Q(i)}`,`${o}Size${$Q(i)}`,`color${$Q(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${$Q(i)}`],endIcon:["icon","endIcon",`iconSize${$Q(i)}`]},J2,a))})(x),S=g&&qQ.jsx(i5,{className:w.startIcon,ownerState:x,children:g}),M=f&&qQ.jsx(o5,{className:w.endIcon,ownerState:x,children:f}),k=r||"";return qQ.jsxs(r5,qX({ownerState:x,className:JZ(n.className,w.root,l,k),component:s,disabled:u,focusRipple:!d,focusVisibleClassName:JZ(w.focusVisible,h),ref:t,type:y},b,{classes:w,children:[S,o,M]}))}));var s5=a5;var l5=gT.createContext({});function u5(e){return ZZ("MuiListItemButton",e)}var c5=e0("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);const d5=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],f5=M2(X2,{shouldForwardProp:e=>S2(e)||"classes"===e,name:"MuiListItemButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>qX({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${c5.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:l1(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${c5.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:l1(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${c5.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:l1(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:l1(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${c5.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${c5.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},"flex-start"===t.alignItems&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4}))),h5=gT.forwardRef((function(e,t){const n=W1({props:e,name:"MuiListItemButton"}),{alignItems:r="center",autoFocus:i=!1,component:o="div",children:a,dense:s=!1,disableGutters:l=!1,divider:u=!1,focusVisibleClassName:c,selected:d=!1,className:f}=n,h=EX(n,d5),p=gT.useContext(l5),m=gT.useMemo((()=>({dense:s||p.dense||!1,alignItems:r,disableGutters:l})),[r,p.dense,s,l]),g=gT.useRef(null);E0((()=>{i&&g.current&&g.current.focus()}),[i]);const y=qX({},n,{alignItems:r,dense:m.dense,disableGutters:l,divider:u,selected:d}),v=(e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:o,divider:a,selected:s}=e;return qX({},n,U0({root:["root",r&&"dense",!o&&"gutters",a&&"divider",i&&"disabled","flex-start"===t&&"alignItemsFlexStart",s&&"selected"]},u5,n))})(y),b=O0(g,t);return qQ.jsx(l5.Provider,{value:m,children:qQ.jsx(f5,qX({ref:b,href:h.href||h.to,component:(h.href||h.to)&&"div"===o?"button":o,focusVisibleClassName:JZ(v.focusVisible,c),ownerState:y,className:JZ(v.root,f)},h,{classes:v,children:a}))})}));var p5=h5;function m5(e){return ZZ("MuiListItemIcon",e)}e0("MuiListItemIcon",["root","alignItemsFlexStart"]);const g5=["className"],y5=M2("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>qX({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),v5=gT.forwardRef((function(e,t){const n=W1({props:e,name:"MuiListItemIcon"}),{className:r}=n,i=EX(n,g5),o=qX({},n,{alignItems:gT.useContext(l5).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return U0({root:["root","flex-start"===t&&"alignItemsFlexStart"]},m5,n)})(o);return qQ.jsx(y5,qX({className:JZ(a.root,r),ownerState:o,ref:t},i))}));var b5=v5;function x5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w5(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x5(Object(n),!0).forEach((function(t){S5(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x5(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function S5(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var M5=function(e){var t=e.className,n=e.path,r=e.fillRule;return yT.createElement(N2,{className:t,viewBox:"0 0 16 16",fontSize:"small",role:"img",style:{height:12,width:12}},yT.createElement("path",{d:n}),r?yT.createElement("use",{fillRule:r}):void 0)},k5={ELLIPSIS:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},FOCUS:{boxShadow:"inset 0 0 0 2px #177FE6"},ICONS:{COLOR:{PRIMARY:"rgba(89, 89, 89)",SECONDARY:"rgba(89, 89, 89, 0.8)",DISABLED:"rgba(89, 89, 89, 0.4)"}}};M2(s5,{shouldForwardProp:function(e){return"direction"!==e&&"padding"!==e&&"styling"!==e}})((function(e){var t=e.direction,n=e.padding,r=e.styling,i=r.fontSize,o=r.fontFamily,a=r.color;return{fontWeight:"normal",lineHeight:"normal",fontSize:i,fontFamily:o,color:a,height:"100%",minWidth:"45px",padding:n,"&:disabled":{color:a,opacity:1},"& .MuiButton-startIcon":{margin:"ltr"===t?"0 2px":void 0},"& .MuiButton-endIcon":{margin:"rtl"===t?"0 2px":void 0}}})),M2((function(e){var t=e.className;return yT.createElement(M5,{className:t,path:"M13,7 L8,7 L13,7 L13,4.98151367 C13,2.23029964 10.7614237,0 8,0 C5.23857625,0 3,2.23029964 3,4.98151367 L3,7 L3.75,7 L3,7 L4.5,7 L4.5,5.33193359 C4.5,3.21561511 5.54860291,1.5 8,1.5 C10.4513971,1.5 11.5,3.21561511 11.5,5.33193359 L11.5,7 L12.25,7 L3,7 C2.44771525,7 2,7.44771525 2,8 L2,15 C2,15.5522847 2.44771525,16 3,16 L13,16 C13.5522847,16 14,15.5522847 14,15 L14,8 C14,7.44771525 13.5522847,7 13,7 L3,7 L13,7 Z",fillRule:"evenodd"})}))((function(){return{color:k5.ICONS.COLOR.SECONDARY}})),M2((function(e){var t=e.className;return yT.createElement(M5,{className:t,path:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})}))((function(){return{color:k5.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:k5.ICONS.COLOR.DISABLED}}})),M2(s5,{shouldForwardProp:function(e){return"styling"!==e}})((function(e){var t=e.styling,n=t.fontSize,r=t.fontFamily,i=t.color;return{fontWeight:"normal",lineHeight:"normal",fontSize:n,fontFamily:r,color:i,padding:"0px 5px",height:"100%",minWidth:"45px","&:disabled":{color:i}}}));var C5={color:k5.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:k5.ICONS.COLOR.DISABLED}};M2((function(e){var t=e.className;return yT.createElement(M5,{className:t,path:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5 8.5 8z"})}))((function(){return C5})),M2((function(e){var t=e.className;return yT.createElement(M5,{className:t,path:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))((function(){return C5})),M2((function(e){var t=e.className;return yT.createElement(M5,{className:t,path:"M15.9993744,3 L15.9993744,5 L4.99937445,5 L4.99937445,3 L15.9993744,3 Z M8.99937445,7 L15.9993744,7 L15.9993744,9 L8.99937445,9 L8.99937445,7 Z M11.9993744,11 L15.9993744,11 L15.9993744,13 L11.9993744,13 L11.9993744,11 Z M2.2,11 L7,11 L7,9.00369263 C7,8.89323568 7.08954305,8.80369263 7.2,8.80369263 C7.2549016,8.80369263 7.30738916,8.82626165 7.34515712,8.86610844 L10.1852182,11.8624926 C10.2583124,11.93961 10.258346,12.0604218 10.1852948,12.13758 L7.34523376,15.1373102 C7.2692928,15.2175206 7.14270711,15.2209817 7.06249671,15.1450407 C7.02260076,15.1072683 7,15.0547472 7,14.9998069 L7,12.9043747 C4.79351111,12.9043747 2.8018683,12.9266213 1.02507156,12.9711145 L1.02507252,12.9711526 C0.472939773,12.9849787 0.014139487,12.5485949 0.000313396522,11.9964622 C0.000104473692,11.988119 -1.32268838e-12,11.9797736 -1.3231638e-12,11.9714278 L-1.83320026e-12,3 L2,3 L2,10.8 C2,10.9104569 2.08954305,11 2.2,11 Z"})}),{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast;return{color:k5.ICONS.COLOR.PRIMARY,marginTop:"1px",marginLeft:"ltr"!==t||n?void 0:"2px",marginRight:"rtl"!==t||r?void 0:"2px"}})),M2(p5)((function(){return{padding:"4px 12px","&:focus":w5({},k5.FOCUS)}})),M2(b5)((function(){return{marginRight:0,justifyContent:"center"}})),M2((function(e){var t=e.className;return yT.createElement(M5,{className:t,path:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2 3 3Z"})}))((function(){return{color:k5.ICONS.COLOR.SECONDARY}}));var q5=Object.prototype.hasOwnProperty,E5=Object.prototype.toString,D5=Object.defineProperty,T5=Object.getOwnPropertyDescriptor,N5=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===E5.call(e)},O5=function(e){if(!e||"[object Object]"!==E5.call(e))return!1;var t,n=q5.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&q5.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||q5.call(e,t)},A5=function(e,t){D5&&"__proto__"===t.name?D5(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},_5=function(e,t){if("__proto__"===t){if(!q5.call(e,t))return;if(T5)return T5(e,t).value}return e[t]};!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,n,r,i,o,a,s=arguments[0],l=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<u;++l)if(null!=(t=arguments[l]))for(n in t)r=_5(s,n),s!==(i=_5(t,n))&&(c&&i&&(O5(i)||(o=N5(i)))?(o?(o=!1,a=r&&N5(r)?r:[]):a=r&&O5(r)?r:{},A5(s,{name:n,newValue:e(c,a,i)})):void 0!==i&&A5(s,{name:n,newValue:i}));return s}));var L5,I5=function(e){var t=e.dock,n=e.settings.label,r="center"===t,i=r?{}:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};return yT.createElement("span",{style:i,title:n},r?n:"* ".concat(n))},R5={renderer:"react",disableTriggers:!0,key:"disclaimer",defaultSettings:{settings:{isRTL:!1,label:void 0},style:{fontFamily:'"Source Sans Pro", "Arial", "sans-serif"'}},preferredSize:function(){return 22},render:function(){var e=this.rect,t=this.settings,n=t.layout,r=t.settings,i=t.style;return function(e){var t=e.dock,n=e.rect,r=e.settings,i=e.styling,o=function(e){var t=e.dock;return"top"!==t&&"bottom"!==t||!e.isRTL?"ltr":"rtl"}({dock:t,isRTL:r.isRTL}),a=function(e){var t=e.dock,n=e.rect,r={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",color:"#7b7a78",fontStyle:"italic",fontSize:"13px",fontFamily:e.styling.fontFamily};return"left"===t&&(r.width="".concat(n.height,"px"),r.transform="rotate(-90deg) translate(-".concat(n.height,"px, 0)"),r.transformOrigin="top left"),"right"===t&&(r.width="".concat(n.height,"px"),r.transform="rotate(90deg) translate(0, -".concat(n.width,"px)"),r.transformOrigin="top left"),"center"===t&&(r.width="".concat(n.width,"px"),r.height="".concat(n.height,"px"),r.color="#595959",r.fontStyle="normal",r.fontSize="1.2em",r.textAlign="center"),"bottom"!==t&&"top"!==t||(r.justifyContent="flex-start",r.alignItems="flex-start"),r}({dock:t,rect:n,styling:i});return yT.createElement("div",{dir:o,style:a},yT.createElement(I5,{dock:t,settings:r}))}({dock:n.dock,rect:e,settings:r,styling:i})}},P5=GU;L5=P5.createRoot,P5.hydrateRoot;var z5=$1({spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:14,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:600,fontWeightBold:700,htmlFontSize:14,fontFamily:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif",button:{fontWeight:600,fontSize:14,textTransform:"none"}},shape:{borderRadius:3},components:{MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"qcm-focus-visible"}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"qcm-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"116px",minWidth:"24px",fontSize:141,borderRadius:3,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transform:"translate3d(0,0,0)"},text:{padding:"8px 16px","&:active":{backgroundColor:"rgba(0, 0, 0, 0.1)"},"&.Mui-focusVisible":{boxShadow:"inset 0 0 0 2px ".concat("#177FE6")}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"}},variants:[]},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:14,height:"32px"}}},MuiListItemIcon:{styleOverrides:{root:{color:"#404040",minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:14,color:"#404040",lineHeight:"16px",fontWeight:600},secondary:{fontSize:12,color:"#737373",fontWeight:400,lineHeight:"16px"}}}}});function F5(e){var t={x:0,y:0,width:0,height:0,scaleRatio:{x:1,y:1},margin:{left:0,top:0}},n=e||{},r=n.x,i=n.y,o=n.width,a=n.height,s=n.scaleRatio,l=n.margin;return t.x=Number.isNaN(r)||void 0===r?t.x:r,t.y=Number.isNaN(i)||void 0===i?t.y:i,t.width=Number.isNaN(o)||void 0===o?t.width:o,t.height=Number.isNaN(a)||void 0===a?t.height:a,void 0!==s&&(t.scaleRatio.x=Number.isNaN(s.x)?t.scaleRatio.x:s.x,t.scaleRatio.y=Number.isNaN(s.y)?t.scaleRatio.y:s.y),void 0!==l&&(t.margin.left=Number.isNaN(l.left)?0:l.left,t.margin.top=Number.isNaN(l.top)?0:l.top),t}function j5(){var e={rendererBox:F5(),container:void 0,root:void 0},t=function(){var t,n;null===(t=e.root)||void 0===t||t.unmount(),null===(n=e.container)||void 0===n||null===(n=n.parentElement)||void 0===n||n.removeChild(e.container),e.container=void 0};return{size:function(t){return t&&(e.rendererBox=F5(t)),e.rendererBox},element:function(){return e.container},appendTo:function(t){return e.container||(e.container=document.createElement("div"),e.container.style.position="absolute",e.container.style["-webkit-font-smoothing"]="antialiased",e.container.style["-moz-osx-font-smoothing"]="antialiased",e.container.style.pointerEvents="none",e.root=L5(e.container)),t.appendChild(e.container),e.container},setKey:function(t){e.container&&e.container.setAttribute("data-key",t)},render:function(t){if(!e.container)return!1;var n=e.rendererBox,r=n.scaleRatio.x,i=n.scaleRatio.y;return e.container.style.left="".concat(Math.round(n.margin.left+n.x*r),"px"),e.container.style.top="".concat(Math.round(n.margin.top+n.y*i),"px"),e.container.style.width="".concat(Math.round(n.width),"px"),e.container.style.height="".concat(Math.round(n.height),"px"),e.container.style.transform="scale(".concat(r,", ").concat(i,")"),e.container.style.transformOrigin="top left",e.root.render(function(e){var t=e.nodes;return yT.createElement(yT.StrictMode,null,yT.createElement(C2,{theme:z5},t))}({nodes:t})),!0},findShapes:function(){return[]},itemsAt:function(){return[]},clear:function(){t()},destroy:function(){t()}}}const B5={getDefaultSettings:({size:e=10,fill:t="#999",alignment:n}={})=>({show:!0,type:"n-polygon",fill:t,stroke:"#000",strokeWidth:0,size:e,sides:3,startAngle:-90,alignment:n}),createOob({oob:e,dockValue:t,boxCenter:n,rendWidth:r,rendHeight:i,flipXY:o,symbol:a}){let s="x",l="y",u=r,c=i,d=t<.5?90:-90;return o&&(s="y",l="x",u=i,c=r,d=t<.5?180:0),a(Cg({},e,{[s]:n*u,[l]:c-Math.max(e.size/2,Math.min(t*c,c-e.size/2)),startAngle:d}))}};function H5({i:e,width:t,height:n,resolved:r,keys:i,flipXY:o,calcKey:a="box"}){let s,l=null,u=null;void 0!==r.major.settings.binStart?(l=r.major.items[e].binStart,u=r.major.items[e].binEnd,s=r.major.settings.binStart.scale):(s=r.major.settings.major.scale,l=s?r.major.items[e].major:0);let c=0;s?s.bandwidth?(c=s.bandwidth(),l-=c/2):c=u-l:c=1;const d=Cg({},{major:l,majorEnd:u},r.minor.items[e]);i.forEach((t=>{d[t]=r[t].items[e]}));const f=o?n:t,h=function({bandwidth:e,width:t,minWidthPx:n,maxWidthPx:r,maxMajorWidth:i}){const o=e>=0?1:-1;let a=Math.min(o*e*t,Number.isNaN(Number(r))?i:r/i);return a=Number.isNaN(Number(n))?a:Math.max(n/i,a),a*o}({bandwidth:c,width:d[a].width,minWidthPx:d[a].minWidthPx,maxWidthPx:d[a].maxWidthPx,maxMajorWidth:f}),p=(c-h)/2,m=p+d.major+h/2;return{item:d,boxCenter:m,boxWidth:h,boxPadding:p,rendWidth:t,rendHeight:n}}function V5({keys:e,data:t,defaultSettings:n,style:r,settings:i,width:o,height:a,resolver:s}){const l=Cg(!0,{},n||{},r||{}),u={major:"horizontal"===i.orientation?a:o,minor:"horizontal"===i.orientation?o:a},c=i.major;let d;d="object"==typeof c&&"object"==typeof c.ref&&void 0!==c.ref.start&&void 0!==c.ref.end?s.resolve({data:t,defaults:{start:0,end:1},scaled:u,settings:Cg(!0,{},{binStart:{scale:i.major.scale,ref:i.major.ref.start},binEnd:{scale:i.major.scale,ref:i.major.ref.end}})}):"object"==typeof c&&void 0!==c.binStart&&void 0!==c.binEnd?s.resolve({data:t,defaults:{start:0,end:1},scaled:u,settings:Cg(!0,{},{binStart:{scale:i.major.scale,ref:"binStart"},binEnd:{scale:i.major.scale,ref:"binEnd"}},i.major)}):s.resolve({data:t,scaled:u,defaults:{major:.5},settings:{major:i.major}});const f=i.minor||{};let h;const p={major:d,minor:s.resolve({data:t,defaults:{start:0,end:1},scaled:u,settings:Cg(!0,{},{start:{scale:f.scale,ref:"start"},end:{scale:f.scale,ref:"end"},min:{scale:f.scale,ref:"min"},max:{scale:f.scale,ref:"max"},med:{scale:f.scale,ref:"med"}},f)})};for(let n=0,r=e.length;n<r;n++)h=e[n],p[h]=s.resolve({data:t,defaults:l[h],settings:i[h],scaled:u});return p}const $5=["oob"];const U5={require:["chart","resolver","symbol"],defaultSettings:{settings:{size:10},data:{},style:{}},created(){this.state={}},preferredSize(){return this.settings.settings.size},render(){const{width:e,height:t}=this.rect,{dockValue:n}=this.settings.settings,r="horizontal"===this.settings.settings.orientation,{data:i,style:o,resolver:a,symbol:s}=this,l=V5({keys:$5,data:i,defaultSettings:{oob:B5.getDefaultSettings()},style:o,settings:this.settings.settings,width:e,height:t,resolver:a}),{settings:u,items:c}=l,d=function({width:e,height:t,flipXY:n,resolved:r,keys:i,symbol:o,dockValue:a,_calcItemRenderingOpts:s=H5}){const l=[],{items:u}=r.major;for(let c=0,d=u.length;c<d;c++){const{item:d,boxCenter:f,rendWidth:h,rendHeight:p}=s({i:c,width:e,height:t,resolved:r,keys:i,flipXY:n,calcKey:"oob"}),m=u[c].data,g=[];if(d.oob.show){g.push(B5.createOob({oob:d.oob,dockValue:a,boxCenter:f,rendWidth:h,rendHeight:p,flipXY:n,symbol:o}));const e={type:"container",data:m,collider:{type:"bounds"},children:g};l.push(e)}}return l}({items:c,settings:u,width:e,height:t,flipXY:r,resolved:l,keys:$5,symbol:s,dockValue:n});return d}},W5={size:25,hat:{show:!0,fill:"#999",stroke:"#000",strokeWidth:0,strokeLinejoin:"miter",width:1,maxWidthPx:void 0,minWidthPx:1,minHeightPx:1,alignment:0}},Y5=["hat"];function K5(e,t=!0){let n="";for(let t=0;t<e.length;t++){const r=e[t];n+=0===t?`M${r.x} ${r.y}`:`L${r.x} ${r.y}`,n+=" "}return t&&(n+="Z"),n}function G5({item:e,boxWidth:t,boxPadding:n,rendWidth:r,rendHeight:i,flipXY:o}){let a="x",s="y",l=r,u=i,c=e.hat.alignment||0;o&&(a="y",s="x",l=i,u=r,c=1-c);const d=(n+e.major)*l;let f=[{[a]:d,[s]:0+u},{[a]:d+t*c*l,[s]:8},{[a]:d+t*l,[s]:0+u},{[a]:d+t*l,[s]:0+u+10},{[a]:d,[s]:0+u+10}];const h=Cg({},e.hat,{type:"path",d:K5(f)});f=[{[a]:d,[s]:0},{[a]:d+t*(1-c)*l,[s]:0+u-8},{[a]:d+t*l,[s]:0},{[a]:d+t*l,[s]:-10},{[a]:d,[s]:-10}];return[h,Cg({},e.hat,{type:"path",d:K5(f)})]}const X5={require:["chart","resolver","symbol"],defaultSettings:{settings:{size:25},data:{},style:{hat:"$shape"}},created(){this.state={}},preferredSize(){return this.settings.settings.size},render(){const{width:e,height:t}=this.rect,n="horizontal"===this.settings.settings.orientation,{data:r,style:i,resolver:o}=this,a=V5({keys:Y5,data:r,defaultSettings:W5,style:i,settings:this.settings.settings,width:e,height:t,resolver:o}),{settings:s,items:l}=a,u=function({width:e,height:t,flipXY:n,resolved:r,keys:i,_calcItemRenderingOpts:o=H5}){const a=[],{items:s}=r.major;for(let l=0,u=s.length;l<u;l++){const{item:u,boxWidth:c,boxPadding:d,rendWidth:f,rendHeight:h}=o({i:l,width:e,height:t,resolved:r,keys:i,flipXY:n,calcKey:"hat"}),p=s[l].data,m=[];u.hat.show&&m.push(...G5({item:u,boxWidth:c,boxPadding:d,rendWidth:f,rendHeight:h,flipXY:n}));const g={type:"container",data:p,collider:{type:"bounds"},children:m};a.push(g)}return a}({items:l,settings:s,width:e,height:t,flipXY:n,resolved:a,keys:Y5});return u}};function J5(e,t,n,r){const i=function(t){const n=String(t);return e(n)};return i.ticks=()=>t.map((t=>{const o=i([t.data.value,r?n-1:0]),a=i([t.data.value,r?0:n-1])+e.bandwidth();return{position:(o+a)/2,label:t.label,data:t.data,start:o,end:a}})),i.bandwidth=()=>e.bandwidth(),i.data=()=>e.data(),i.domain=()=>e.domain(),i.pxScale=function(r){const i=e.pxScale(r);return i===e?this:J5(i,t,n)},i}function Q5(e){const t=e.scale("band");e.scale("group-by-measure",(function(e={},n={},r={}){const i=t(e,n,r),o=i.domain(),a=i.ticks(),s=[],l=e.measureCount;return o.forEach(((e,t)=>{for(let t=0;t<l;++t)s.push(String([e,t]));s.push(`SPACER_${t}_SPACER`)})),s.splice(-1),i.domain(s),J5(i,a,l,e.invert)}))}function Z5(){const e=Sp();return e.use(lg),e.use(function(e){if("function"!=typeof e.interaction)return t=>{t.interaction("hammer",dg(e))};e.interaction("hammer",dg(Hammer))}(mg)),e.use((function(e){e.renderer("react",RY()),e.component("data-title",_Y(e.renderer("svg")()))})),e.use(Q5),e.renderer("react-qcm",j5),e.component("box-sliced-hat",X5),e.component("box-out-of-bounds",U5),e.component("disclaimer",R5),e.component("scrollbar",pX),e.component("scroll-hint",hS),e.component("reference-line-labels",mM),e.component("axis-overlay",EG.picassoComponents.axisOverlay),e.component("time-axis",EG.picassoComponents.timeAxis),e.scale("q-time-axis",EG.picassoScales.time),e}const e3=()=>({version:"1.35.13",barGrouping:{grouping:"grouped"},color:{auto:!0,autoMinMax:!0,byDimDef:void 0,byMeasureDef:void 0,colorExpression:void 0,dimensionScheme:"12",expressionIsColor:!0,expressionLabel:"",formatting:{numFormatFromTemplate:!0,isCustomFormatted:void 0},measureMin:void 0,measureMax:void 0,measureScheme:"sg",mode:"primary",paletteColor:{index:6},persistent:!1,reverseScheme:!1,singleColor:void 0,useBaseColors:"off",useDimColVal:!0,useMeasureGradient:!0},components:[],dataPoint:{showLabels:!1,showSegmentLabels:!1,showTotalLabels:!0},dimensionAxis:{axisDisplayMode:"auto",continuousAuto:!0,dock:"near",label:"auto",maxVisibleItems:10,show:"all"},footnote:"",gridLine:{auto:!0,spacing:2},legend:{dock:"auto",show:!0,showTitle:!0},measureAxis:{autoMinMax:!0,dock:"near",max:10,min:0,minMax:"min",show:"all",spacing:1},orientation:"vertical",preferContinuousAxis:!0,qHyperCubeDef:{qDimensions:[],qMeasures:[],qInitialDataFetch:[{qWidth:17,qHeight:500}],qSuppressMissing:!0,qSuppressZero:!1},refLine:{refLines:[],dimRefLines:[]},scrollbar:"miniChart",scrollStartPos:0,showDetails:!0,showDisclaimer:!0,showMiniChartForContinuousAxis:!0,showTitles:!0,subtitle:"",title:"",tooltip:{auto:!0,hideBasic:!1,data:{qHyperCubeDef:void 0},chart:void 0,imageComponents:void 0}}),t3={CUSTOM:{EXPRESSION:"customTooltipExpression",TITLE:"customTooltipTitle",DESCRIPTION:"customTooltipDescription",QUARANTINE:"customTooltip",IMAGES:"customTooltipImages"},CHART:{CONTAINER_ID:"tooltipContainerId",STATE:"customTooltipSessionState",CHART_OBJECT_ID:"customTooltipSessionObjectId",CHART_PARENT_TYPE:"TooltipChartParent",CHART_CHILD_TYPE:"TooltipChart",STYLE:{small:"140px",medium:"200px",large:"340px"}}};function n3(e){const t=e.split("/");return"qmem:"===t[0]&&""===t[1]}const r3={getImageSize(e,t){let n;function r(){n&&(clearTimeout(n),n=null)}function i(e){const t=e;t.onload=null,t.onerror=null,r()}const o={small:50,medium:200,large:340,original:340};return new Promise((a=>{const s=new Image;s.referrerPolicy="no-referrer",s.onload=()=>{let e;const{height:n,width:l}=s,u=o[t]*(n>l?1:n/l),c=o[t]*(l>n?1:l/n);!n||!l||0===n&&0===l?(e={height:20,width:20,imageError:!0},i(s)):"original"===t?(e={height:Math.min(u,n),width:Math.min(c,l)},r()):(e={height:u,width:c},r()),a(e)},s.onerror=()=>{i(s),a({height:20,width:20,imageError:!0})},s.src=e,n=setTimeout((()=>{i(s),a({height:20,width:20,imageError:!0})}),3e3)}))}};async function i3(e,t,n){let r=e.ref.qStaticContentUrl.qUrl;const i=function(e){var t,n,r;let i,o,a,s,l,u;if(e&&(null!==(t=e.session)&&void 0!==t&&t.options||null!==(n=e.enigmaModel)&&void 0!==n&&null!==(n=n.session)&&void 0!==n&&n.sessionConfig||null!==(r=e.session)&&void 0!==r&&null!==(r=r.config)&&void 0!==r&&r.url)){var c;if(i=e.session.options||(null===(c=e.enigmaModel)||void 0===c?void 0:c.session.sessionConfig),!i){var d;i=null===(d=e.session)||void 0===d?void 0:d.config;const t=new URL(i.url);i.host=t.hostname,i.port=t.port,i.isSecure="wss:"===t.protocol}return u=void 0!==i.secure?i.secure:i.isSecure,o=u?"https://":"http://",a=i.host||"localhost",s=i.port?`:${i.port}`:"",l=i.prefix?i.prefix:"/","/"!==l[l.length-1]&&(l=`${l}/`),o+a+s+l}return""}(n);i&&(!function(e,t){const n=e.replace(t,"").replace(/^\.\.\//i,"/");n[0]}(r,i),r=r.replace(/"/g,'\\"'),r=r.replace(/'/g,"\\'"),r=function(e,t){return t+("/"===e[0]?e.substr(1):e)}(r,i));const{height:o,width:a,imageError:s}=await r3.getImageSize(r,t);return{src:r,size:t,height:o,width:a,imageError:s}}async function o3(e,t,n,r){var i,o,a;const{app:s,flags:l}=t,u=null===(i=e.layout)||void 0===i||null===(i=i.tooltip)||void 0===i?void 0:i.imageComponents;if(!u)return[];const[c]=u,d=c.size||"small",f=c.type||"media";let h=-1;for(let e=0;e<n.length;e++)if(n[e].cId===c.cId){h=e;break}const p=(null===(o=r.data)||void 0===o||null===(o=o.customTooltipAttrExps)||void 0===o?void 0:o.value)||[];let m;if(-1!==h&&p[h]&&(m=p[h]),"media"===f&&null!==(a=c.ref)&&void 0!==a&&null!==(a=a.qStaticContentUrl)&&void 0!==a&&a.qUrl)return i3(c,d,s);if("url"===f)return async function(e,t,n,r,i){let o,a=n.ref;if(i&&i.label&&(a=i.label),t.isEnabled("IMAGE_BUNDLE_LOAD")&&null!=e&&e.getImage&&n3(a))try{const t=`data:image/png;base64, ${await e.getImage(a)}`,{height:n,width:i,imageError:s}=await r3.getImageSize(t,r);o={src:t,size:r,height:n,width:i,imageError:s}}catch(e){}else{const{height:e,width:t,imageError:n}=await r3.getImageSize(a,r);o={src:a,size:r,height:e,width:t,imageError:n}}return o}(s,l,c,d,m);if(l.isEnabled("IMAGE_BUNDLE_LOAD")&&"field"===f&&m&&m.label){return async function(e,t,n,r){let i;const o=r.label,a=`qmem://${t.qFallbackTitle}/${o}`;if(n3(a))try{const t=await e.getImage(a);if(t){const e=`data:image/png;base64, ${t}`,{height:r,width:o,imageError:a}=await r3.getImageSize(e,n);i={src:e,size:n,height:r,width:o,imageError:a}}}catch(e){}return i}(s,n[h],d,m)}return[]}const a3={async addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){const i=t,o=[];for(let t=0;t<i.length;t++)o.push(o3(e,r,n,i[t]));const a=await Promise.all(o);for(let e=0;e<i.length;e++)i[e].data.customTooltipImages=[a[e]];return i},checkIfPromisesExist({customTooltipModel:e}){var t;const n=null===(t=e.layout)||void 0===t||null===(t=t.tooltip)||void 0===t?void 0:t.imageComponents;return!!n&&n.length>0}},s3={async handlePromises({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){let i=t;return i=await a3.addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}),i},checkIfPromisesExist:({customTooltipModel:e})=>a3.checkIfPromisesExist({customTooltipModel:e})};const l3=(e,t)=>{var n,r,i;const o=null==e||null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qDimensions,a=null==e||null===(r=e.qHyperCubeDef)||void 0===r?void 0:r.qMeasures,s=null==e||null===(i=e.qHyperCubeDef)||void 0===i?void 0:i.qInterColumnSortOrder,l=t;return{qInfo:{qType:t3.CHART.CHART_PARENT_TYPE,qId:t3.CHART.CHART_OBJECT_ID},qHyperCubeDef:{qDimensions:o,qMeasures:a,qInterColumnSortOrder:s,qInitialDataFetch:[{qWidth:0,qHeight:0}]},qStateName:l}},u3=e=>{var t;const n=null===(t=e.tooltip)||void 0===t||null===(t=t.chart)||void 0===t||null===(t=t.object)||void 0===t?void 0:t.refId;return{qInfo:{qType:t3.CHART.CHART_CHILD_TYPE},qExtendsId:n}};const c3={createContainer:({ctx:e,layout:t})=>{var n;if(!((null===(n=t.qHyperCube)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.length)<=0))return function(e,t){var n,r;const i=null!==(n=null===(r=t.tooltip)||void 0===r||null===(r=r.chart)||void 0===r||null===(r=r.style)||void 0===r?void 0:r.size)&&void 0!==n?n:"medium",o=t3.CHART.STYLE[i];return[{content:[e.h("div",{style:{display:"flex",width:o,height:o,backgroundColor:"#FFFFFF",borderRadius:"5px",padding:"2px",color:"#595959"},colspan:2,id:t3.CHART.CONTAINER_ID})],colspan:2,style:{"text-align":e.rtl?"right":"left","max-width":o,width:"100%"}},{}]}(e,t)},show:async({app:e,properties:t,selectedNodes:n,dimIndex:r,customTooltipModel:i,rtl:o})=>{var a;const s=i,l=null==t||null===(a=t.tooltip)||void 0===a||null===(a=a.chart)||void 0===a||null===(a=a.object)||void 0===a?void 0:a.refId;if(null!=s&&s.embed&&e.removeSessionAlternateState&&e.addSessionAlternateState&&l&&!(t.qHyperCubeDef.qDimensions.length<=0)){await c3.hide({app:e,customTooltipModel:i});try{await async function({app:e,properties:t,customTooltipModel:n}){const r=n,i=t3.CHART.STATE,o=t.qStateName;r.miniChartToken.alternateState||(r.miniChartToken.alternateState=i,await e.addSessionAlternateState(i,o),r.miniChartToken.alternateState=i)}({app:e,properties:t,customTooltipModel:i});const a=await async function({app:e,properties:t,customTooltipModel:n}){var r;const i=n;null!==(r=i.miniChartToken.sessionObj)&&void 0!==r&&r.id&&await e.destroySessionObject(i.miniChartToken.sessionObj.id);const o=t3.CHART.STATE,a=l3(t,o),s=await e.createSessionObject(a),l=u3(t);if(s.id!==t3.CHART.CHART_OBJECT_ID)return void e.destroySessionObject(s.id);i.miniChartToken.sessionObj=s;const u=await s.createChild(l);if(i.miniChartToken.sessionObj&&i.miniChartToken.sessionObj.id===s.id)return i.miniChartToken.model=u,u;e.destroySessionObject(s.id)}({app:e,properties:t,customTooltipModel:i});if(s.miniChartToken.alternateState&&s.miniChartToken.sessionObj&&a){var u,c,d,f;const e=n.length>0&&void 0!==(null===(u=n[0].data)||void 0===u?void 0:u.value)?[null===(c=n[0].data)||void 0===c?void 0:c.value]:[],a=void 0!==r?r:t.qHyperCubeDef.qDimensions.length-1;if(2===t.qHyperCubeDef.qDimensions.length&&void 0===r&&n.length>0){var h,p;const e=null!==(h=n[0].data.selectionOuterDimension)&&void 0!==h?h:n[0].data.selectionDimension;if(null!=e&&null!==(p=e.source)&&void 0!==p&&p.field){var m;const t=null==e||null===(m=e.source)||void 0===m?void 0:m.field.split("/"),n=t[t.length-1],r=void 0!==e.value?[e.value]:[];r.length>0&&void 0!==n&&s.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",Number(n),r,!1)}}e.length>0&&s.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",a,e,!1);const l=document.getElementById(t3.CHART.CONTAINER_ID),g={direction:o?"rtl":"ltr",isReadonly:!0,isPopover:!0,navigation:!1,selections:!1};s.miniChartToken.vis=await i.embed.render({element:l,model:s.miniChartToken.model,options:g,id:null===(d=s.miniChartToken.model)||void 0===d?void 0:d.id,type:null===(f=s.miniChartToken.model)||void 0===f?void 0:f.genericType})}}catch(t){await c3.hide({app:e,customTooltipModel:i})}}},hide:async({app:e,customTooltipModel:t})=>{const n=t;null!=n&&n.embed&&(c3.destroyVisualization({customTooltipModel:t}),await e.destroySessionObject(t3.CHART.CHART_OBJECT_ID),n.miniChartToken.sessionObj=void 0,await async function({app:e,customTooltipModel:t}){const n=t,r=t3.CHART.STATE;n.miniChartToken.alternateState=void 0,await e.removeSessionAlternateState(r)}({app:e,customTooltipModel:t}))},destroyVisualization:({customTooltipModel:e})=>{var t;const n=e;"function"==typeof(null===(t=n.miniChartToken)||void 0===t||null===(t=t.vis)||void 0===t?void 0:t.destroy)&&(n.miniChartToken.vis.destroy(),n.miniChartToken.vis=void 0)}};function d3(e){const t=e.qHyperCubeDef?e.qHyperCubeDef.qDimensions:e.qHyperCube.qDimensionInfo;if(t&&t.length>0)return t}function f3(){const{EXPRESSION:e,TITLE:t,DESCRIPTION:n,IMAGES:r}=t3.CUSTOM,i={};return i[e]=!0,i[t]=!0,i[n]=!0,i[r]=!0,i}function h3(e){const t=f3();return e.filter((e=>t[e.id]))}const p3={getNodes(e,t){const n=function(e,t){let n=0,r=0;e.center?(n+=e.center.x,r+=e.center.y):(n+=e.clientX,r+=e.clientY);const i=t.element.getBoundingClientRect();return{cx:n-i.left,cy:r-i.top}}(e,t);return t.shapesAt({x:n.cx,y:n.cy})},getDataNodes(e,t){let n,r=[];const i={container:{bar:!0,"bullet-axis":!0},circle:{"point-component":!0}};return t.forEach((t=>{var o,a,s,l;const u=null!==(o=null===(a=t.data)||void 0===a?void 0:a.selectionDimension)&&void 0!==o?o:t.data;if(!u||null!==(s=t.data)&&void 0!==s&&s.customTooltipAttrExps||i[t.type]){if(null!==(l=t.data)&&void 0!==l&&l.customTooltipAttrExps&&!t.data.customTooltipImages){const e=t;e.data.customTooltipImages=[],r.push(e)}}else{n||(n=[],Object.keys(i).forEach((t=>{n=n.concat(e.findShapes(t).filter((e=>e.data&&e.data.customTooltipAttrExps&&!e.data.customTooltipImages&&i[t][e.key])))})));const t=n.filter((e=>{var t,n;const r=null!==(t=null!==(n=e.data.stack)&&void 0!==n?n:e.data.selectionOuterDimension)&&void 0!==t?t:e.data.selectionDimension;return r&&r.value===u.value&&r.label===u.label}));t.length>0&&(r=r.concat(t[0]))}})),r},displayTooltip(e,t,{nodes:n,opts:r={},customTooltipModel:i,extractedNodes:o=[],hide:a}){if(i&&!a){const{layout:a,chart:s}=i,{attrExps:l}=p3.getAttrExprData(a);o.length||n.length?s3.handlePromises({customTooltipModel:i,nodes:p3.getDataNodes(s,o.length>0?o:n),attrExps:l,opts:r}).then((()=>{t.emit("show",e,n.length?{nodes:n}:void 0)})):t.emit("show",e,n.length?{nodes:n}:void 0)}else{var s;null!=i&&null!==(s=i.miniChartToken)&&void 0!==s&&s.alternateState&&c3.hide({app:r.app,customTooltipModel:i}),t.emit("hide")}},checkIfPromisesExist:({customTooltipModel:e})=>s3.checkIfPromisesExist({customTooltipModel:e}),getAttrExps(e,t){var n;const r=t,i=null!==(n=e.qHyperCubeDef)&&void 0!==n&&n.qDimensions?"qAttributeExpressions":"qAttrExprInfo";return r[i]||(r[i]=[]),r[i]},getAttrExprData(e){var t;let n=[],r="";const i=(null===(t=e.qHyperCube)||void 0===t?void 0:t.qDimensionInfo)||[];if(i.length>0){var o;const t=i.length-1;n=(null===(o=e.qHyperCube)||void 0===o||null===(o=o.qDimensionInfo)||void 0===o||null===(o=o[t])||void 0===o?void 0:o.qAttrExprInfo)||[],r=`qDimensionInfo/${t}/qAttrExprInfo`}return{attrExps:n,fieldPath:r}},quarantineCustomTooltipAttrs(e,t={}){var n;if(!(null===(n=e.qLayoutExclude)||void 0===n||null===(n=n.quarantine)||void 0===n?void 0:n[t3.CUSTOM.QUARANTINE])){!function(e,t){const n=t;let r=n.qLayoutExclude;r||(n.qLayoutExclude={quarantine:{}},r=n.qLayoutExclude),r.quarantine||(r.quarantine={}),r.quarantine[t3.CUSTOM.QUARANTINE]=[],e.forEach((e=>{r.quarantine[t3.CUSTOM.QUARANTINE].push(e)})),n.qLayoutExclude=r}(h3(t.qAttributeExpressions||[]),e)}},unquarantineCustomTooltipAttrs(e){var t;const n=e;(null===(t=e.qLayoutExclude)||void 0===t||null===(t=t.quarantine)||void 0===t?void 0:t[t3.CUSTOM.QUARANTINE])&&delete n.qLayoutExclude.quarantine[t3.CUSTOM.QUARANTINE]},setAttrsFromQuarantine(e,t){const n=d3(e);if(!n)return;const r=void 0!==t?t:n.length-1;if(!n[r])return;const i=this.getAttrExps(e,n[r]);if(0===h3(i).length){var o;const t=(null===(o=e.qLayoutExclude)||void 0===o||null===(o=o.quarantine)||void 0===o?void 0:o.customTooltip)||[],n=[...i,...t],a=e;a.qHyperCubeDef?a.qHyperCubeDef.qDimensions[r].qAttributeExpressions=n:a.qHyperCube.qDimensionInfo[r].qAttrExprInfo=n}},moveCustomTooltipAttrs(e,t={},n){let r=[];const i=d3(e)||[];[...i,t].forEach((e=>{const t=h3(e.qAttributeExpressions||[]);t.length>0&&(r=t)}));const o=f3(),a=i.map((e=>{const t=e,n=e.qAttributeExpressions||[];return t.qAttributeExpressions=n.filter((e=>!o[e.id])),t})),s=void 0!==n?n:a.length-1;a.length>0&&(a[s].qAttributeExpressions=a[s].qAttributeExpressions.concat(r));const l=e;e.qHyperCubeDef?l.qHyperCubeDef.qDimensions=a:l.qHyperCube.qDimensionInfo=a},addCallbackCustomTooltip(e){e.qHyperCubeDef.qDimensions.length>1?this.moveCustomTooltipAttrs(e):(this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e))},moveCallbackCustomTooltip(e,t){1===e.qHyperCubeDef.qDimensions.length&&(this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e)),e.qHyperCubeDef.qDimensions.length>1&&this.moveCustomTooltipAttrs(e,t)},removeCallbackCustomTooltip(e,t){e.qHyperCubeDef.qDimensions.length>0?this.moveCustomTooltipAttrs(e,t):this.quarantineCustomTooltipAttrs(e,t)},replaceCallbackCustomTooltip(e,t){e.qHyperCubeDef.qDimensions.length>1?this.moveCustomTooltipAttrs(e,t):(this.quarantineCustomTooltipAttrs(e,t),this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e))},shouldIgnoreDefaultRows(e){var t;return(null===(t=e.tooltip)||void 0===t?void 0:t.hideBasic)||0},DEBOUNCE_THRESHOLD:50,getFooterRow:(e,t)=>[{content:e,style:{"font-style":"italic","font-size":"12px","line-height":"16px",color:"rgba(255, 255, 255, 0.6)","text-align":t?"right":"left",direction:Xg.detectTextDirection(e)},colspan:2},{}],getImageRow(e,t){const n=Xg.detectTextDirection(e.src),r=[],i={style:{display:"block","margin-left":"auto","margin-right":"auto",overflow:"hidden",width:e.width,height:e.height}};if("original"===e.size||e.imageError){r.push(t.h("span",{style:{display:"inline-block",height:"100%","vertical-align":"middle"}}));const n=e.imageError?`${e.src}?${Math.random()}`:e.src;r.push(t.h("img",{style:{"max-width":e.width,"max-height":e.height,"vertical-align":"middle"},src:n,referrerpolicy:"no-referrer"})),i.style["text-align"]="center",i.style["white-space"]="nowrap"}else i.style["background-size"]="contain",i.style["background-repeat"]="no-repeat",i.style["background-position"]="center",i.style["background-image"]=`url('${e.src}')`;return[{content:[t.h("div",i,r),""],style:{"text-align":t.rtl?"right":"left",direction:n,"max-width":e.width},colspan:2},{}]}};function m3(e,t,n,r){var i;const o=(null===(i=t.qHyperCube)||void 0===i||null===(i=i[n])||void 0===i||null===(i=i[r])||void 0===i?void 0:i.qAttrExprInfo)||[],a=[],s=e.qSubNodes&&e.qSubNodes[r]?e.qSubNodes[r].qAttrExps:e.qAttrExps;return s?(o.forEach(((e,t)=>{const i=s.qValues&&s.qValues[t]?s.qValues[t]:void 0,o=void 0===i?"NaN":function(e,t){let n;switch(e.id){case t3.CUSTOM.EXPRESSION:n="NaN"===t.qNum||e.isCustomFormatted?void 0===t.qText?"NaN":t.qText:t.qNum;break;case t3.CUSTOM.TITLE:case t3.CUSTOM.DESCRIPTION:case t3.CUSTOM.IMAGES:n=void 0===t.qText?e.qFallbackTitle:t.qText;break;default:n="NaN"}return n}(e,i);a.push({source:{key:"qHyperCube",field:`${n}/${r}/qAttrExprInfo/${t}`},label:o,value:"value"})})),a):a}const g3={getNode(e,{dimensionCount:t}){if(!t||t<1)return;const n=t-1,r="qDimensionInfo";return{field:`${r}/${n}`,value:t=>m3(t,e,r,n)}}};const y3={getCustomAttrExps(e,t,n){var r;const i={customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]},o=(null===(r=t.data)||void 0===r||null===(r=r.customTooltipAttrExps)||void 0===r?void 0:r.value)||[];if(Number.isNaN(o))return i;return function(e,t,n,r){const i={[t3.CUSTOM.TITLE]:!0,[t3.CUSTOM.DESCRIPTION]:!0},{attrExps:o,fieldPath:a}=p3.getAttrExprData(e);return 0===t.length||0===o.length||""===a||o.forEach(((e,o)=>{const s=t[o];if(e.id===t3.CUSTOM.EXPRESSION&&s){const t=e.qFallbackTitle,i="NaN"===s.value||e.isCustomFormatted?s.value:n("qHyperCube").field(`${a}/${o}`).formatter()(s.value);r.customTooltipAttrExpsArr.push({label:t,value:i})}else if(i[e.id]&&s){const t="-"!==s.value&&"NaN"!==s.value?s.value:s.label;t&&"undefined"!==t&&r.customTooltipInfoAttrExpsArr.push({...e.id===t3.CUSTOM.TITLE&&{title:t},value:t,id:e.id})}})),r}(n,o.map((t=>Jg.getMeasure(e,t))),e,i)}};function v3({nodes:e,layout:t,dataset:n}){const r=function(e,t,n){const r=[];return e.forEach((e=>{r.push(y3.getCustomAttrExps(n,e,t))})),r}(e,t,n);return r.reduce(((e,t)=>({customTooltipAttrExpsArr:e.customTooltipAttrExpsArr.concat(t.customTooltipAttrExpsArr),customTooltipInfoAttrExpsArr:e.customTooltipInfoAttrExpsArr.concat(t.customTooltipInfoAttrExpsArr)})),{customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]})}function b3(e){const t=t3.CUSTOM.EXPRESSION,{qNumFormat:n,qLabel:r,qLabelExpression:i,cId:o}=e.qDef;return e.qLibraryId?{qLibraryId:e.qLibraryId,id:t,qNumFormat:n,qLabel:r,qLabelExpression:i,cId:o}:{qExpression:e.qDef.qDef,id:t,qNumFormat:n,qLabel:r,qLabelExpression:i,cId:o}}function x3(e){var t;const n=null===(t=e.qHyperCubeDef)||void 0===t?void 0:t.qDimensions;return n[n.length-1].qAttributeExpressions||[]}const w3={migrateProperties(e){var t,n;const r=Cg(!0,{},e),i=(null===(t=r.tooltip)||void 0===t||null===(t=t.data)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qMeasures)||[];let o=x3(r);return o=function(e,t){return t.concat(e.map((e=>b3(e))))}(i,o),function(e,t){var n;const r=null===(n=t.qHyperCubeDef)||void 0===n?void 0:n.qDimensions;r[r.length-1].qAttributeExpressions=e}(o,r),null===(n=r.tooltip)||void 0===n||delete n.data,r},getPatches(e){var t,n;const r=(null===(t=e.tooltip)||void 0===t||null===(t=t.data)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qMeasures)||[],i=(null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qDimensions.length)-1,o=function(e,t,n){let r=e.length;const i=[];return t.forEach((e=>{const t=b3(e),o=JSON.stringify(t);i.push({qPath:`/qHyperCubeDef/qDimensions/${n}/qAttributeExpressions/${r}`,qOp:"add",qValue:o}),r++})),i.push({qPath:"/tooltip/data",qOp:"remove"}),i}(x3(e),r,i);return o},checkForBackwardCompatibility:(e,t)=>(e.qMeasureInfo||[]).length>0&&t.length>0,updateProperties(e,t){const n=new Promise((n=>{var r,i,o;const a=(null===(r=t.qHyperCube)||void 0===r?void 0:r.qDimensionInfo)||[],s=(null===(i=t.tooltip)||void 0===i||null===(i=i.data)||void 0===i?void 0:i.qHyperCube)||{},l=null===(o=t.qMeta)||void 0===o||null===(o=o.privileges)||void 0===o?void 0:o.includes("update");e&&e.getEffectiveProperties&&this.checkForBackwardCompatibility(s,a)&&e.getEffectiveProperties().then((t=>{if(l){const r=this.migrateProperties(t);e.setProperties(r).then((()=>{e.app.clearUndoBuffer(),n(!0)}))}else{const r=this.getPatches(t);e.applyPatches(r,!0).then((()=>{e.app.clearUndoBuffer(),n(!0)}))}})),n(!1)}));return n}};var S3={attrExpr:w3},M3=7005;const k3=e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==M3},C3=e=>{if(e.qHyperCubeDef.qDimensions.length>1&&1===e.qHyperCubeDef.qMeasures.length){const t=e.qHyperCubeDef.qInterColumnSortOrder.indexOf(0);0!==t&&Lg.moveArrayElement(e.qHyperCubeDef.qInterColumnSortOrder,t,0)}},q3=(e,t)=>{t>10?1!==e.qHyperCubeDef.qInterColumnSortOrder[0]&&Lg.moveArrayElement(e.qHyperCubeDef.qInterColumnSortOrder,1,0):0!==e.qHyperCubeDef.qInterColumnSortOrder[0]&&Lg.moveArrayElement(e.qHyperCubeDef.qInterColumnSortOrder,1,0)},E3=e=>{if(!e.qHyperCubeDef)return;const t=e.qHyperCubeDef.qDimensions,n=e.qHyperCubeDef.qMeasures;1===t.length&&1===n.length&&(n[0].qSortBy.qSortByNumeric=-1,e.qHyperCubeDef.qInterColumnSortOrder.splice(0,e.qHyperCubeDef.qInterColumnSortOrder.length,1,0))},D3=(e,t)=>{const n=e.qHyperCubeDef.qDimensions,r=e.qHyperCubeDef.qMeasures;if(1===n.length&&1===r.length){const r=n[0];return r.qLibraryId?t.getDimension(r.qLibraryId).then((e=>e.getLayout())).then((t=>{if(t&&t.qDimInfos&&t.qDimInfos[0]){const n=t.qDimInfos[0].qCardinal;q3(e,n)}return r})):t.getField(r.qDef.qFieldDefs[0]).then((t=>t.getCardinal().then((t=>(q3(e,t),r)))),(()=>r))}return C3(e),Promise.resolve()};function T3(e){const t=e.qHyperCubeDef.qDimensions,n=e.qHyperCubeDef.qMeasures,{color:{mode:r}}=e;t.length>1&&e.color?jC(e,"color.persistent",!0):"byDimension"===r&&n.length>1?jC(e,"color.mode","byMultiple"):"byExpression"===r&&0===n.length?jC(e,"color.mode","primary"):0===t.length&&n.length>0&&(jC(e,"color.byMeasureDef",void 0),jC(e,"color.byDimDef",void 0),1===n.length&&"byExpression"!==r&&jC(e,"color.mode","primary"))}const N3=(e,t)=>{T3(t),Jy(e),p3.addCallbackCustomTooltip(t)},O3=e=>{T3(e)};function A3({translator:e}){return{dimensions:{min:0,max:e=>e>1?1:2,description(t,n,r,i){let o;const a=null!=i&&i.layout?i.layout.qHyperCube.qDimensionInfo.filter((e=>k3(e))).length:t.qHyperCubeDef.qDimensions.length;return r.isAutoChart&&n>a-1?o="Visualizations.Descriptions.Color":a>1&&0===n?"stacked"===t.barGrouping.grouping?o="Visualizations.Descriptions.Stack":(o="Visualizations.Descriptions.Group",t.qHyperCubeDef.qColumnOrder=[0,1,2]):o="Visualizations.Descriptions.Bars",e.get(o)},add:(e,t,n)=>(t.qHyperCubeDef.qDimensions.length>1&&"stacked"===t.barGrouping.grouping&&(t.qHyperCubeDef.qMode="K",t.qHyperCubeDef.qAlwaysFullyExpanded=!0),null!=n&&n.app?D3(t,n.app).then((()=>(N3(e,t),e))):(E3(t),N3(e,t),e)),move(e,t,n){const r=n.layout.qHyperCube.qDimensionInfo.filter((e=>k3(e))).length;r>1&&"stacked"===t.barGrouping.grouping&&(t.qHyperCubeDef.qMode="K",t.qHyperCubeDef.qAlwaysFullyExpanded=!0),C3(t),T3(t),p3.moveCallbackCustomTooltip(t,e)},remove(e,t){const n=t.qHyperCubeDef.qDimensions;T3(t),1===n.length&&(t.qHyperCubeDef.qMode="S"),p3.removeCallbackCustomTooltip(t,e)},replace(e,t,n,r){p3.replaceCallbackCustomTooltip(r,t)}},measures:{min:1,max:e=>e>1?1:15,description:()=>e.get("Visualizations.Descriptions.LengthBars"),add:(e,t,n)=>null!=n&&n.app?D3(t,n.app).then((()=>(e.qSortBy.qSortByNumeric=-1,O3(t),e))):(E3(t),O3(t),e),move(e,t){C3(t),T3(t)},remove(e,t){const n=t.qHyperCubeDef.qDimensions;T3(t),n.length>1&&"stacked"===t.barGrouping.grouping?(t.qHyperCubeDef.qMode="K",t.qHyperCubeDef.qAlwaysFullyExpanded=!0):1===n.length&&(t.qHyperCubeDef.qMode="S")}}}}function _3(e){return{properties:e3(),data:{targets:[{path:"/qHyperCubeDef",...A3(e)}]}}}var L3={properties_dataPoints_labelmode_share:{id:"properties.dataPoints.labelmode.share",locale:{"en-US":"Share","zh-TW":"佔有率","zh-CN":"份额","tr-TR":"Pay","sv-SE":"Andel","it-IT":"Percentuale","es-ES":"Cuota","de-DE":"Anteil","pl-PL":"Udział","nl-NL":"Aandeel","ko-KR":"공유","pt-BR":"Percentual","fr-FR":"Part","ja-JP":"割合","ru-RU":"Доля"}},Tooltip_selections_locked:{id:"Tooltip.selections.locked",locale:{"en-US":"Selections on this dimension are locked","zh-TW":"已鎖定此維度上的選項","zh-CN":"相关维度的选择已锁定","tr-TR":"Bu boyuttaki seçimler kilitli","sv-SE":"Urval i den här dimensionen är låsta","it-IT":"Le selezioni in questa dimensione sono bloccate","es-ES":"Las selecciones de esta dimensión están bloqueadas.","de-DE":"Auswahlen sind für diese Dimension gesperrt","pl-PL":"Selekcje dotyczące tego wymiaru są zablokowane","nl-NL":"Selecties voor deze dimensie zijn vergrendeld","ko-KR":"이 차원의 선택은 잠겨 있습니다.","pt-BR":"Seleções estão bloqueadas nesta dimensão","fr-FR":"Sélections verrouillées pour cette dimension","ja-JP":"この軸での選択はロックされています","ru-RU":"Выборки для данного измерения заблокированы"}},Tooltip_dimensions_drilldown:{id:"Tooltip.dimensions.drilldown",locale:{"en-US":"Drill-down dimension","zh-TW":"向下探查維度","zh-CN":"下钻维度","tr-TR":"Detaya inme boyutu","sv-SE":"Hierarkisk dimension","it-IT":"Dimensione di drill-down","es-ES":"Dimensión jerárquica","de-DE":"Drilldown-Dimension:","pl-PL":"Wymiar hierarchiczny","nl-NL":"Drill-downdimensie","ko-KR":"드릴다운 차원","pt-BR":"Dimensão da hierarquia","fr-FR":"Descendre dans la hiérarchie de la dimension","ja-JP":"軸のドリルダウン","ru-RU":"Измерение с детализацией"}},Object_ErrorMessage_MissingDimension:{id:"Object.ErrorMessage.MissingDimension",locale:{"en-US":"Dimension not found","zh-TW":"找不到維度","zh-CN":"未找到维度","tr-TR":"Boyut bulunamadı","sv-SE":"Dimensionen hittades inte","it-IT":"Dimensione non trovata","es-ES":"No se ha encontrado la dimensión","de-DE":"Dimension nicht gefunden","pl-PL":"Wymiar nie został znaleziony","nl-NL":"Dimensie niet gevonden","ko-KR":"차원을 찾지 못했습니다.","pt-BR":"Dimensão não encontrada","fr-FR":"Dimension introuvable","ja-JP":"軸が見つかりません","ru-RU":"Измерение не найдено"}},Object_ErrorMessage_MissingMeasure:{id:"Object.ErrorMessage.MissingMeasure",locale:{"en-US":"Measure not found","zh-TW":"找不到量值","zh-CN":"未找到度量","tr-TR":"Hesaplama bulunamadı","sv-SE":"Måttet hittades inte","it-IT":"Misura non trovata","es-ES":"No se ha encontrado la medida","de-DE":"Kennzahl nicht gefunden","pl-PL":"Miara nie została znaleziona","nl-NL":"Meting niet gevonden","ko-KR":"측정값을 찾지 못했습니다.","pt-BR":"Medida não encontrada","fr-FR":"Mesure introuvable","ja-JP":"メジャーが見つかりません","ru-RU":"Мера не найдена"}},Object_Disclaimer_LimitedData:{id:"Object.Disclaimer.LimitedData",locale:{"en-US":"Currently showing a limited data set.","zh-TW":"目前顯示的是有限的資料集。","zh-CN":"当前正显示有限的数据集。","tr-TR":"Şu anda sınırlı bir veri kümesi gösteriliyor.","sv-SE":"Just nu visas en begränsad uppsättning data.","it-IT":"Attualmente viene visualizzata una serie di dati limitata.","es-ES":"Mostrando actualmente un conjunto limitado de datos.","de-DE":"Zurzeit wird nur ein beschränkter Datensatz angezeigt.","pl-PL":"Aktualnie przedstawiany jest ograniczony zestaw danych.","nl-NL":"Momenteel wordt een beperkte gegevensverzameling getoond.","ko-KR":"현재 제한된 데이터 집합을 표시하고 있습니다.","pt-BR":"Mostrando um conjunto de dados limitado.","fr-FR":"Affichage d'un ensemble de données limité pour l'instant.","ja-JP":"現在、限定的なデータ セットを表示しています。","ru-RU":"В настоящее время отображается ограниченный набор данных."}},Object_Disclaimer_OnlyNegativeOrZeroValues:{id:"Object.Disclaimer.OnlyNegativeOrZeroValues",locale:{"en-US":"The chart is not displayed because it contains only negative or zero values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含負值或零值。","zh-CN":"未显示图表,因为它仅包含负值或零值。","tr-TR":"Yalnızca negatif veya sıfır değerlerini içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det enbart innehåller negativa eller nollvärden","it-IT":"Il grafico non viene visualizzato poiché contiene solo valori negativi o uguali a zero.","es-ES":"El gráfico no se muestra porque sólo contiene valores negativos o valores cero.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur negative oder 0-Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wartości ujemne lub zerowe.","nl-NL":"De grafiek wordt niet weergegeven omdat het alleen negatieve waarden of nulwaarden bevat.","ko-KR":"음수 또는 zero 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não foi exibido, porque contém apenas valores negativos ou zero.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs négatives ou égales à zéro.","ja-JP":"チャートは負の値またはゼロ値しか含まれていないため、表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только отрицательные или нулевые значения."}},Object_Disclaimer_NegativeOrZeroValues:{id:"Object.Disclaimer.NegativeOrZeroValues",locale:{"en-US":"The data set contains negative or zero values that cannot be shown in this chart.","zh-TW":"資料集包含無法在此圖表中顯示的負值或零值。","zh-CN":"数据集中包含无法在此图表中显示的负值或零值。","tr-TR":"Veri kümesi, bu grafikte gösterilemeyen negatif veya sıfır değerlerini içeriyor.","sv-SE":"Datauppsättningen innehåller negativa värden eller nollvärden som inte kan visas i detta diagram.","it-IT":"La serie di dati contiene valori negativi o uguali a zero che non possono essere visualizzati in questo grafico.","es-ES":"El conjunto de datos contiene valores negativos o cero que no se pueden mostrar en este gráfico.","de-DE":"Die in den Datensätzen enthaltenen negativen oder 0-Werte können nicht in diesem Diagramm dargestellt werden.","pl-PL":"Zestaw danych zawiera wartości ujemne lub zerowe, których nie można przedstawić w tym wykresie.","nl-NL":"De gegevensverzameling bevat negatieve waarden of nulwaarden die niet kunnen worden weergegeven in deze grafiek.","ko-KR":"데이터 집합에 해당 차트에 표시할 수 없는 음수 값 또는 zero 값이 포함되어 있습니다.","pt-BR":"O conjunto de dados contém valores negativos ou iguais a zero que não podem ser mostrados neste gráfico.","fr-FR":"L'ensemble de données contient des valeurs négatives ou égales à zéro impossibles à afficher dans ce graphique.","ja-JP":"データ セットには、本チャートに表示できない負の値またはゼロ値が含まれています。","ru-RU":"Набор данных содержит отрицательные или нулевые значения, которые невозможно показать в этой диаграмме."}},Object_Disclaimer_DataRangeIncludingZero:{id:"Object.Disclaimer.DataRangeIncludingZero",locale:{"en-US":"The logarithmic scale has been replaced by a linear scale because the data range includes zero.","zh-TW":"對數刻度已遭線性刻度取代,因為資料範圍包含零。","zh-CN":"对数刻度已替换为线性刻度,因为该数据范围包括零。","tr-TR":"Veri aralığı sıfır değerini içerdiğinden, logaritmik ölçek yerine doğrusal ölçek kullanıldı.","sv-SE":"Den logaritmiska skalan har ersatts av en linjär skala eftersom dataintervallet innehåller värdet noll.","it-IT":"La scala logaritmica è stata sostituita da una scala lineare perché l'intervallo di dati include zero.","es-ES":"La escala logarítmica ha sido reemplazada por una escala lineal porque el rango de datos incluye cero.","de-DE":"Die logarithmische Skala wurde durch die lineare Skala ersetzt, weil der Datenbereich NULL enthält.","pl-PL":"Skala logarytmiczna została zastąpiona liniową, ponieważ zakres danych zawiera zero.","nl-NL":"De logaritmische schaal is vervangen door een lineaire schaal omdat het gegevensbereik nullen bevat.","ko-KR":"데이터 범위에 0이 포함되어 있으므로 로그 눈금이 선형 눈금으로 바뀌었습니다.","pt-BR":"A escala logarítmica foi substituída por uma escala linear, pois o intervalo de dados inclui zero.","fr-FR":"L'échelle logarithmique a été remplacée par une échelle linéaire, car la plage de données comprend la valeur zéro.","ja-JP":"データ範囲にゼロが含まれるため、Log スケールは Linear スケールで置換されています。","ru-RU":"Логарифмический масштаб заменен линейным масштабом, поскольку диапазон данных включает ноль."}},Object_Disclaimer_NoDataExist:{id:"Object.Disclaimer.NoDataExist",locale:{"en-US":"The selections generated no data for this chart.","zh-TW":"此選項無法產生任何適用於此圖表的資料。","zh-CN":"选择未生成此图表的数据。","tr-TR":"Seçimler bu grafik için hiç veri oluşturmadı.","sv-SE":"Urvalen genererade inga data för detta diagram.","it-IT":"Le selezioni non hanno generato dati per questo grafico.","es-ES":"Las selecciones no han generado datos para este gráfico.","de-DE":"Die Auswahlen haben für dieses Diagramm keine Daten generiert.","pl-PL":"Selekcje nie spowodowały wygenerowania danych dla tego wykresu.","nl-NL":"De selecties hebben geen gegevens voor de grafiek gegenereerd.","ko-KR":"선택 내용으로 해당 차트에 대한 데이터가 생성되지 않았습니다.","pt-BR":"As seleções não geraram dados para este gráfico.","fr-FR":"Les sélections n'ont pas généré de données pour ce graphique.","ja-JP":"このチャートには選択からデータが生成されませんでした。","ru-RU":"В результате выборок данные для этой диаграммы не созданы."}},Object_Disclaimer_OnlyNanData:{id:"Object.Disclaimer.OnlyNanData",locale:{"en-US":"The chart is not displayed because it contains only undefined values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含未定義的值。","zh-CN":"未显示图表,因为它仅包含未定义的值。","tr-TR":"Yalnızca tanımsız değerleri içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det enbart innehåller odefinierade värden.","it-IT":"Il grafico non è visualizzato poiché contiene solo valori non definiti.","es-ES":"El gráfico no se muestra porque solo contiene valores indefinidos.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur nicht definierte Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wartości niezdefiniowane.","nl-NL":"De grafiek wordt niet weergegeven omdat deze alleen ongedefinieerde waarden bevat.","ko-KR":"정의되지 않은 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não foi exibido, porque contém apenas valores não definidos.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs non définies.","ja-JP":"未定義の値しか含まれていないため、チャートは表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только неопределенные значения."}},Object_ChartTooltip_NMore:{id:"Object.ChartTooltip.NMore",locale:{"en-US":"+{0} more","zh-TW":"再加 {0} 個","zh-CN":"+{0} 个","tr-TR":"+{0} öğe daha","sv-SE":"+{0} till","it-IT":"Altre +{0}","es-ES":"+{0} más","de-DE":"+{0} mehr","pl-PL":"+ {0} więcej","nl-NL":"+ {0} meer","ko-KR":"+추가 {0}개","pt-BR":"+{0} mais","fr-FR":"+ {0} de plus","ja-JP":"さらに {0}","ru-RU":"+ дополнительно: {0}"}},Object_ChartTooltip_sumOfPositives:{id:"Object.ChartTooltip.sumOfPositives",locale:{"en-US":"Sum of positives","zh-TW":"正數總和","zh-CN":"正值总和","tr-TR":"Pozitif değerlerin toplamı","sv-SE":"Summan av positiva","it-IT":"Somma valori positivi","es-ES":"Suma de positivos","de-DE":"Summe positiver Werte","pl-PL":"Suma dodatnich","nl-NL":"Som positieven","ko-KR":"양수 합계","pt-BR":"Soma de positivos","fr-FR":"Sommes des valeurs positives","ja-JP":"正の合計","ru-RU":"Сумма положительных значений"}},Object_ChartTooltip_sumOfNegatives:{id:"Object.ChartTooltip.sumOfNegatives",locale:{"en-US":"Sum of negatives","zh-TW":"負數總和","zh-CN":"负值总和","tr-TR":"Negatif değerlerin toplamı","sv-SE":"Summan av negativa","it-IT":"Somma valori negativi","es-ES":"Suma de negativos","de-DE":"Summe negativer Werte","pl-PL":"Suma ujemnych","nl-NL":"Som negatieven","ko-KR":"음수 합계","pt-BR":"Soma de negativos","fr-FR":"Somme des valeurs négatives","ja-JP":"負の合計","ru-RU":"Сумма отрицательных значений"}},Object_ChartTooltip_ColorExpression:{id:"Object.ChartTooltip.ColorExpression",locale:{"en-US":"Color expression","zh-TW":"色彩運算式","zh-CN":"颜色表达式","tr-TR":"Renk ifadesi","sv-SE":"Färguttryck","it-IT":"Espressione colore","es-ES":"Expresión de color","de-DE":"Farbformel","pl-PL":"Wyrażenie koloru","nl-NL":"Kleuruitdrukking","ko-KR":"색상 표현식","pt-BR":"Expressão de cor","fr-FR":"Expression de couleur","ja-JP":"カラー表現","ru-RU":"Выражение для цвета"}},Object_Disclaimer_OnlyNanColor:{id:"Object.Disclaimer.OnlyNanColor",locale:{"en-US":"The data used to color this visualization only contains undefined values.","zh-TW":"用以定義此視覺化的色彩的資料只包含未定義的值。","zh-CN":"用于将该可视化着色的数据仅包含未定义的值。","tr-TR":"Bu görselleştirmeyi renklendirmek için kullanılan veriler yalnızca tanımlanmamış değerler içeriyor.","sv-SE":"Data som används för att färgsätta denna visualisering innehåller enbart odefinierade värden.","it-IT":"I dati utilizzati per colorare questa visualizzazione contengono solo valori non definiti.","es-ES":"Los datos utilizados para colorear esta visualización solo contienen valores indefinidos.","de-DE":"Die verwendeten Daten für die Farbgebung dieser Visualisierung enthalten undefinierte Werte.","pl-PL":"Dane używane do kolorowania tej wizualizacji zawierają wyłącznie niezdefiniowane wartości.","nl-NL":"De gegevens die worden gebruikt om deze visualisatie kleur te geven bevatten uitsluitend ongedefinieerde waarden.","ko-KR":"이 시각화에 색을 지정하는 데 사용된 데이터에는 정의되지 않은 값만 포함되어 있습니다.","pt-BR":"Os dados usados para colorir esse visualização contém somente valores indefinidos.","fr-FR":"Les données utilisées pour colorer cette visualisation ne comportent que des valeurs non définies.","ja-JP":"このビジュアライゼーションの色の割り当てに使用したデータには、未定義の値が含まれています。","ru-RU":"Данные, используемые для выбора цвета визуализации, содержат только неопределенные значения."}},properties_trendlines_types_average:{id:"properties.trendlines.types.average",locale:{"en-US":"Average","zh-TW":"平均值","zh-CN":"平均值","tr-TR":"Ortalama","sv-SE":"Medel","it-IT":"Media","es-ES":"Media","de-DE":"Durchschnitt","pl-PL":"Średnia","nl-NL":"Gemiddelde","ko-KR":"평균","pt-BR":"Média","fr-FR":"Moyenne","ja-JP":"平均値","ru-RU":"Среднее"}},properties_trendlines_types_linear:{id:"properties.trendlines.types.linear",locale:{"en-US":"Linear","zh-TW":"線性","zh-CN":"线性","tr-TR":"Doğrusal","sv-SE":"Linjär","it-IT":"Lineare","es-ES":"Lineal","de-DE":"Linear","pl-PL":"Liniowa","nl-NL":"Lineair","ko-KR":"선형","pt-BR":"Linear","fr-FR":"Linéaire","ja-JP":"線形","ru-RU":"Линейный"}},properties_trendlines_types_polynomial2:{id:"properties.trendlines.types.polynomial2",locale:{"en-US":"Second degree polynomial","zh-TW":"第二度多項式","zh-CN":"二次多项式","tr-TR":"İkinci derece polinom","sv-SE":"Polynomial, andra graden","it-IT":"Polinomio di secondo grado","es-ES":"Polinómica de segundo grado","de-DE":"Polynom zweiten Grades","pl-PL":"Wielomianowa drugiego stopnia","nl-NL":"Tweedegraadspolynoom","ko-KR":"2차 다항식","pt-BR":"Polinômio de segundo grau","fr-FR":"Polynomial du 2ème degré","ja-JP":"2 番目の角度の多項式近似","ru-RU":"Полиномиальный второй степени"}},properties_trendlines_types_polynomial3:{id:"properties.trendlines.types.polynomial3",locale:{"en-US":"Third degree polynomial","zh-TW":"第三度多項式","zh-CN":"三次多项式","tr-TR":"Üçüncü derece polinom","sv-SE":"Polynomial, tredje graden","it-IT":"Polinomio di terzo grado","es-ES":"Polinómica de tercer grado","de-DE":"Polynom dritten Grades","pl-PL":"Wielomianowa trzeciego stopnia","nl-NL":"Derdegraadspolynoom","ko-KR":"3차 다항식","pt-BR":"Polinômio de terceiro grau","fr-FR":"Polynomial du 3ème degré","ja-JP":"3 番目の角度の多項式近似","ru-RU":"Полиномиальный третьей степени"}},properties_trendlines_types_polynomial4:{id:"properties.trendlines.types.polynomial4",locale:{"en-US":"Fourth degree polynomial","zh-TW":"第四度多項式","zh-CN":"四次多项式","tr-TR":"Dördüncü derece polinom","sv-SE":"Polynomial, fjärde graden","it-IT":"Polinomio di quarto grado","es-ES":"Polinómica de cuarto grado","de-DE":"Polynom vierten Grades","pl-PL":"Wielomianowa czwartego stopnia","nl-NL":"Vierdegraadspolynoom","ko-KR":"4차 다항식","pt-BR":"Polinômio de quarto grau","fr-FR":"Polynomial du 4ème degré","ja-JP":"4 番目の角度の多項式近似","ru-RU":"Полиномиальный четвертой степени"}},properties_trendlines_types_exponential:{id:"properties.trendlines.types.exponential",locale:{"en-US":"Exponential","zh-TW":"指數","zh-CN":"指数","tr-TR":"Üstel","sv-SE":"Exponentiell","it-IT":"Esponenziale","es-ES":"Exponencial","de-DE":"Exponentiell","pl-PL":"Wykładnicze","nl-NL":"Exponentieel","ko-KR":"지수","pt-BR":"Exponencial","fr-FR":"Exponentiel","ja-JP":"指数","ru-RU":"Экспоненциальный"}},properties_trendlines_types_logarithmic:{id:"properties.trendlines.types.logarithmic",locale:{"en-US":"Logarithmic","zh-TW":"對數","zh-CN":"对数","tr-TR":"Logaritmik","sv-SE":"Logaritmisk","it-IT":"Logaritmica","es-ES":"Logarítmica","de-DE":"Logarithmisch","pl-PL":"Logarytmiczna","nl-NL":"Logaritmisch","ko-KR":"로그","pt-BR":"Logarítmico","fr-FR":"Logarithmique","ja-JP":"対数","ru-RU":"Логарифмический"}},properties_trendlines_types_power:{id:"properties.trendlines.types.power",locale:{"en-US":"Power","zh-TW":"乘冪","zh-CN":"幂","tr-TR":"Üs","sv-SE":"Potens","it-IT":"Potenza","es-ES":"Potencia","de-DE":"Potenz","pl-PL":"Potęgowa","nl-NL":"Macht","ko-KR":"거듭제곱","pt-BR":"Potência","fr-FR":"Puissance","ja-JP":"累乗","ru-RU":"Силовой"}},Common_Measures:{id:"Common.Measures",locale:{"en-US":"Measures","de-DE":"Kennzahlen","fr-FR":"Mesures","it-IT":"Misure","ja-JP":"メジャー","ko-KR":"측정값","es-ES":"Medidas","nl-NL":"Metingen","pl-PL":"Miary","pt-BR":"Medidas","sv-SE":"Mått","tr-TR":"Hesaplamalar","zh-CN":"度量","zh-TW":"量值","ru-RU":"Меры"}},Tooltip_ToggleOnLassoSelection:{id:"Tooltip.ToggleOnLassoSelection",locale:{"en-US":"Turn on lasso selection","de-DE":"Lasso-Auswahl aktivieren","fr-FR":"Activer la sélection au lasso","it-IT":"Attiva selezione lazo","ja-JP":"囲み選択をオンにする","ko-KR":"올가미 선택 켜기","es-ES":"Activar la selección de contorno","nl-NL":"Lassoselectie inschakelen","pl-PL":"Włącz zaznaczenie lasso","pt-BR":"Ativar seleção de laço","sv-SE":"Slå på lassourval","tr-TR":"Serbest seçimi aç","zh-CN":"开启套索选择方法","zh-TW":"開啟套索選取","ru-RU":"Включить выбор лассо"}},Tooltip_ToggleOffLassoSelection:{id:"Tooltip.ToggleOffLassoSelection",locale:{"en-US":"Turn off lasso selection","de-DE":"Lasso-Auswahl deaktivieren","fr-FR":"Désactiver la sélection au lasso","it-IT":"Disattiva selezione lazo","ja-JP":"囲み選択をオフにする","ko-KR":"올가미 선택 끄기","es-ES":"Desactivar la selección de contorno","nl-NL":"Lassoselectie uitschakelen","pl-PL":"Wyłącz zaznaczenie lasso","pt-BR":"Desativar seleção de laço","sv-SE":"Stäng av lassourval","tr-TR":"Serbest seçimi kapat","zh-CN":"关闭套索选择方法","zh-TW":"關閉套索選取","ru-RU":"Выключить выбор лассо"}}};function I3({env:t}){var n;const{flags:r}=t,i=null===(n=t.anything)||void 0===n||null===(n=n.sense)||void 0===n?void 0:n.isUnsupportedFeature,o=e.useTranslator();!function(e){if(e&&e.get&&e.add){const t="Object.Disclaimer.LimitedData";if(e.get(t)!==t)return;Object.keys(L3).forEach((t=>{e.add(L3[t])}))}}(t.translator);const a=e.useEmbed(),s=e.useTheme(),[l,u]=e.useState(),c=e.useDeviceType(),d=e.useAppLayout(),{qLocaleInfo:f}=d;return e.useEffect((()=>{u({translator:o,theme:s,embed:a,deviceType:c,localeInfo:f,isUnsupportedFeature:i,flags:r})}),[f,i,o.language(),s.name(),c]),l}function R3(){const[t]=e.useState((()=>BC())),[n]=e.useState((()=>function(e){var t=yM({},e),n={},r={},i=!1,o={get:function(e){return t[e]},set:function(e,o){var a=t[e];!i&&n[e]?t[e]=n[e](o,a):t[e]=o,!i&&r[e]&&r[e](t[e],a)},preventSet:function(e,t){i=!0,o.set(e,t),i=!1},intercept:function(e,t){n[e]=t},onChanged:function(e,t){r[e]=t}};return o}({viewRange:[0,1],scrollOffset:void 0})));return{viewCache:t,viewState:n}}const P3="REJECTED",z3=()=>{},F3=1e4,j3={MULTIPLIER:2,MINIMUM:20,MAXIMUM:200},B3=50,H3=10,V3=100;var $3={contains:function(e,t){if(!e)return!1;const{qArea:n}=e;return!!n&&(n.qLeft<=t.qLeft&&n.qLeft+n.qWidth>=t.qLeft+t.qWidth&&n.qTop<=t.qTop&&n.qTop+n.qHeight>=t.qTop+t.qHeight)},patcher:function({layoutService:e}){const t=t=>{t.qArea.qHeight=t.qMatrix.length,t.qArea.qWidth=e.meta.size.x};return t.should=e=>0===e.qArea.qHeight&&0===e.qArea.qWidth&&!!e.qMatrix.length,t},slicer:function(e,t){const n=Math.max(0,t.qHeight)-Math.abs(Math.min(0,t.qTop-e.qArea.qTop)),r=Math.max(0,t.qWidth)-Math.abs(Math.min(0,t.qLeft-e.qArea.qLeft)),i=Math.max(t.qTop,e.qArea.qTop),o=Math.max(t.qLeft,e.qArea.qLeft),a=Math.max(0,i-e.qArea.qTop),s=Math.min(i+n-e.qArea.qTop,e.qArea.qHeight),l=Math.max(0,o-e.qArea.qLeft),u=Math.min(o+r-e.qArea.qLeft,e.qArea.qWidth),c={qArea:{qHeight:s-a,qWidth:u-l,qTop:i,qLeft:o},qMatrix:[]};for(let t=a;t<s;t++)c.qMatrix.push(e.qMatrix[t].slice(l,u));return c},cacheWarden:function({bounds:e={width:0,height:0}}){return{release(t,n){const r=n.qTop-H3<=t.qTop,i=n.qLeft+n.qWidth+H3>=t.qLeft+t.qWidth,o=n.qTop+n.qHeight+H3>=t.qTop+t.qHeight,a=n.qLeft-H3<=t.qLeft;return r&&t.qTop>0||i&&t.qLeft+t.qWidth<e.width||o&&t.qTop+t.qHeight<e.height||a&&t.qLeft>0}}},request:function({definitionPath:e}){return t=>({method:"getHyperCubeData",args:[e,[t]]})}};var U3={contains:function(e,t){if(!e)return!1;const{qArea:n}=e;return!!n&&(n.qTop<=t.qTop&&n.qTop+n.qHeight>=t.qTop+t.qHeight)},patcher:function({layoutService:e}){const t=t=>{t.qArea.qHeight=t.qData[0].qSubNodes.length,t.qArea.qWidth=e.meta.size.x};return t.should=e=>0===e.qArea.qHeight&&0===e.qArea.qWidth&&!!e.qData.length,t},slicer:function(e,t){const n=Math.max(0,t.qHeight)-Math.abs(Math.min(0,t.qTop-e.qArea.qTop)),r=Math.max(t.qTop,e.qArea.qTop),i=Math.max(t.qLeft,e.qArea.qLeft),o=Math.max(0,r-e.qArea.qTop),a=Math.min(r+n-e.qArea.qTop,e.qArea.qHeight),s=e.qData[0].qUp+e.qArea.qHeight+e.qData[0].qDown-r-(a-o),l={qArea:{qHeight:a-o,qWidth:e.qArea.qWidth,qTop:r,qLeft:i},qData:[{...e.qData[0],qUp:r,qDown:s,qSubNodes:[]}]};for(let t=o;t<a;t++)l.qData[0].qSubNodes.push(e.qData[0].qSubNodes[t]);return l},cacheWarden:function({bounds:e={height:0}}){return{release(t,n){const r=n.qTop-H3<=t.qTop,i=n.qTop+n.qHeight+H3>=t.qTop+t.qHeight;return r&&t.qTop>0||i&&t.qTop+t.qHeight<e.height}}},request:function({definitionPath:e}){return t=>({method:"getHyperCubeStackData",args:[e,[t]]})}};var W3={contains:function(){return!1},patcher:function(){const e=e=>e;return e.should=()=>!1,e},slicer:function(e){return e},cacheWarden:function(){return{release:()=>!0}},request:function({definitionPath:e}){return t=>({method:"getHyperCubeTreeData",args:[e,[t]]})}};const Y3="pages";const K3="discretePan",G3=10;function X3({chart:e,actions:t,componentKey:n,dockService:r,rtl:i,scroller:o}){return{type:"Pan",key:"discrete:pan",options:{event:K3,pointers:1,threshold:G3,enable(r,i){return this.started===K3||!i||!(!t.scroll.enabled()||!o.enabled())&&e.componentsFromPoint({x:i.center.x,y:i.center.y}).some((e=>e.key===n))}},events:{[`${K3}start`](e){e.preventDefault(),this.started=K3;const t="horizontal"===r.meta.major.orientation?e.deltaX:e.deltaY;this.previousTotalDelta=t<0?-G3:G3},[`${K3}move`](e){e.preventDefault();const t="horizontal"===r.meta.major.orientation,n=t?e.deltaX:e.deltaY,a=t&&i?-1:1,s=(n-this.previousTotalDelta)*a;this.previousTotalDelta=n,o.scroll(s)},[`${K3}end`](e){e.preventDefault(),this.started=!1},[`${K3}cancel`](e){e.preventDefault(),this.started=!1}}}}function J3({chart:e,componentKey:t,actions:n,scroller:r}){return function(i){if(!n.scroll.enabled()||!r.enabled())return;const[o]=e.componentsFromPoint({x:i.clientX,y:i.clientY}).filter((e=>e.key===t));if(!o)return;i.preventDefault();const a=Math.abs(i.deltaY)>Math.abs(i.deltaX)?i.deltaY:i.deltaX,s=Math.sign(-a)*V3;r.scroll(s)}}function Q3({layoutService:e}){const t=function({layoutService:e}){const t=Math.floor(F3/(e.meta.dimensionCount+e.meta.measureCount));return function({width:e,height:n}){const r=Math.min(t,Math.max(j3.MAXIMUM,n));return{width:e,height:Math.max(j3.MINIMUM,Math.min(n*j3.MULTIPLIER,r))}}}({layoutService:e}),n={width:e.meta.size.x,height:e.meta.size.y};return function(e){const{width:r,height:i}=t({width:e.qWidth,height:e.qHeight}),o=i?Math.ceil((i-e.qHeight)/2):0,a=r?Math.ceil((r-e.qWidth)/2):0;return{qHeight:i?Math.min(i,n.height):e.qHeight,qWidth:r?Math.min(r,n.width):e.qWidth,qTop:i?Math.max(0,Math.min(e.qTop-o,n.height-i)):e.qTop,qLeft:r?Math.max(0,Math.min(e.qLeft-a,n.width-r)):e.qLeft}}}function Z3(e){let t,n;const r=i=>{t=i;const{method:o,args:a}=t.request;e[o](...a).then((e=>{if(t.canceled||n)return t.reject(P3),t=null,void(n&&(r(n),n=null));t.resolve(e[0]),t=null}))},i=e=>new Promise(((i,o)=>{const a={request:e,resolve:i,reject:o,canceled:!1,cancel:()=>{a.canceled=!0}};t?(e=>{n&&n.reject(P3),n=e})(a):r(a)}));return i.isProcessing=()=>!!t,i.hasQueued=()=>!!n,i.cancel=()=>{i.isProcessing()&&t.cancel(),i.hasQueued()&&(n.reject(P3),n=null)},i}const e4={command:{update:()=>{}}};function t4({dataStore:e,composition:t,enigmaModel:n,layoutService:r,trendLineModel:i=e4,definitionPath:o,processDataPage:a}){const{slicer:s,cacheWarden:l,request:u}=t,c=function({dataStore:e,slice:t,warden:n,expand:r,request:i,process:o,connectionless:a,processDataPage:s}){return(l,{onProcessing:u}={})=>{if(e.contains(l)){const r=e.getCurrent();if(a)return Promise.resolve(t(r,l));const i=n.release(r.qArea,l),s=o.isProcessing();if(!i&&s&&o.cancel(),!i||s)return Promise.resolve(t(r,l))}if(a)return Promise.resolve(e.getCurrent());o.isProcessing()&&u&&u();const c=r(l);return o(i(c)).then((n=>(s(n),e.add(n),t(n,l))))}}({dataStore:e,slice:s,warden:l({bounds:{width:r.meta.size.x,height:r.meta.size.y}}),expand:Q3({layoutService:r}),request:u({definitionPath:o}),process:Z3(n),connectionless:r.meta.isSnapshot,processDataPage:a}),d=$C(((e,{onProcessing:t,onData:n})=>{c(e,{onProcessing:t}).then((e=>n(e))).catch((e=>{if(e!==P3)throw e}))}),B3);return function(e,{onProcessing:t=z3,onDataPage:n=z3}={}){d(e,{onProcessing:t,onData:e=>{r.setDataPages(e?[e]:[]),i.command.update(),n(e)}})}}var n4={inTotal:function({layoutService:e}){return e.meta.size.x},area:function({layoutService:e}){return{qTop:0,qHeight:1,qLeft:0,qWidth:e.meta.size.x}},scaleRange:function({layoutService:e,offsets:t,items:n,viewSize:r}){const{pixel:i}=t,o=e.getDataPages()[0],a=i/r;return[a,n.inView>=n.inTotal?a+1:a+o.qArea.qWidth/n.inView]}};var r4={inTotal:function({layoutService:e}){if(e.meta.isSnapshot&&!e.getLayoutValue("reducedHyperCube")){const[t]=e.getDataPages();if(t)return t.qArea.qHeight}return e.meta.size.y},area:function({layoutService:e,itemOffset:t,inView:n,areaBuffer:r}){const i=void 0===r?4:r,o=Math.max(0,Math.floor(t)-i/2);return{qTop:o,qHeight:Math.min(e.meta.size.y-o,Math.max(0,Math.ceil(n+i))),qLeft:0,qWidth:e.meta.size.x}},scaleRange:function({layoutService:e,offsets:t,items:n,viewSize:r}){const{pixel:i}=t,o=e.getDataPages()[0],a=r/n.inView,s=(i+o.qArea.qTop*a)/r;return[s,n.inView>=n.inTotal?s+1:s+o.qArea.qHeight/n.inView]}};function i4(e){const{groupSize:t,measureCount:n}=e.meta;return null!=t?t:n}function o4(e,t){const n=[];for(let r=0;r<e.length;r++){const i=t(e[r]);-1===n.indexOf(i)&&n.push(i)}return n.length}function a4(e){return o4(e.qMatrix,(e=>e[0].qElemNumber))-1}var s4={inTotal:function({layoutService:e}){const t=i4(e);return e.meta.size.y*t*(1+1/t)-1},area:function({layoutService:e,itemOffset:t,inView:n,areaBuffer:r}){const i=i4(e),o=void 0===r?i:r,a=t/(i+1),s=Math.max(0,Math.floor((t-a-o/2)/i));return{qTop:s,qHeight:Math.min(e.meta.size.y-s,Math.max(0,Math.ceil((n+o)/i+1))),qLeft:0,qWidth:e.meta.size.x}},scaleRange:function({layoutService:e,offsets:t,items:n,viewSize:r}){const i=i4(e),o=e.getDataPages()[0],a=r/n.inView,{pixel:s}=t,l=a4(o),u=o.qArea.qHeight*i+l,c=(s+(o.qArea.qTop*i+o.qArea.qTop)*a)/r;return[c,n.inView>=n.inTotal?c+1:c+u/n.inView]}};const l4=(e,t)=>t/(e.meta.size.y/e.meta.size.dimensions[0]+1),u4=(e,t)=>{const n={successful:!0,count:0};let r=Math.abs(Math.floor(t));const i=[];for(let t=0;t<=r;t++){if(!e[t])return n.successful=!1,n;const o=e[t][0].qElemNumber;-1===i.indexOf(o)&&(i.push(o),r--)}return n.count=i.length-1,n};function c4(e){return{itemOffset(t,n){if(0!==t.qArea.qTop)return l4(e,n);const r=u4(t.qMatrix,n);return r.successful?r.count:l4(e,n)},area(t,n,r){if(0!==t.qArea.qTop)return l4(e,n);return o4(t.qMatrix.slice(0,r.qTop+1),(e=>e[0].qElemNumber))-1}}}var d4={inTotal:function({layoutService:e}){return e.meta.size.y+e.meta.size.dimensions[0]-1},area:function({getDataPages:e,layoutService:t,itemOffset:n,inView:r}){const i=c4(t).itemOffset(e(),n),o=Math.max(0,Math.floor(n-i));return{qTop:o,qHeight:Math.min(t.meta.size.y-o,Math.max(0,Math.ceil(r+1))),qLeft:0,qWidth:t.meta.size.x}},scaleRange:function({getDataPages:e,layoutService:t,offsets:n,items:r,viewSize:i,upperBound:o}){const a=t.getDataPages()[0],s=i/r.inView,{item:l,pixel:u}=n,c=c4(t).area(e(),l,a.qArea),d=a4(a),f=a.qArea.qHeight+d,h=u===o?(r.inView-f)*s/i:(u+(a.qArea.qTop+c)*s)/i;return[h,r.inView>=r.inTotal?h+1:h+f/r.inView]}};function f4({chart:e,rect:t,dockService:n,itemWidths:r,axisKey:i,renderer:o,isGrouped:a,dimensionAxis:s,inTotal:l,isMajorLabelless:u,maxDataRows:c}){const{DEFAULT:d,SQUEEZE:f,LABELLESS:h}=r[n.meta.chart.mode],p="horizontal"===n.meta.major.orientation,{axisDisplayMode:m="auto",maxVisibleItems:g=10,label:y}=s,v=p?t.width:t.height,b=v/l>=f;switch(m){case"max":return Math.min(l,c);case"custom":return Math.min(g,c);default:return u?v/h:b?function({chart:e,isHorizontal:t,axisKey:n,renderer:r={},isGrouped:i,itemSize:o,label:a}){if(i||"auto"!==a&&"tilted"!==a)return!1;const s=e.component(n),{measureText:l}=r;if(!s||!l)return!0;const{fontFamily:u,fontSize:c,tiltAngle:d}=s.settings.settings.labels,{height:f}=l({fontFamily:u,fontSize:c,text:"M"});if(!t)return f>o;const h=(90-d)*(Math.PI/180);return f>Math.cos(h)*o}({chart:e,isHorizontal:p,axisKey:i,renderer:o,isGrouped:a,itemSize:f,label:y})?v/d:l:v/d}}function h4({chart:e,getRect:t,getDataPages:n,layoutService:r,dockService:i,getItemWidths:o,axisKey:a,renderer:s,areaBuffer:l,rtl:u}){const{inTotal:c,area:d,scaleRange:f}=function({layoutService:e}){const{isDimensionless:t,isGrouped:n,isGroupedByMeasure:r}=e.meta;return t?n4:n?r?s4:d4:r4}({layoutService:r}),h=()=>"horizontal"===i.meta.major.orientation?t().width:t().height,p=e=>e?h()/e:0,m=(e,t)=>-(e-t)*p(t);return{getItems(){const n=r.getLayoutValue("dimensionAxis"),l=c({layoutService:r});return{inTotal:l,inView:f4({chart:e,rect:t(),dockService:i,itemWidths:o(),axisKey:a,renderer:s,isGrouped:r.meta.isGrouped,dimensionAxis:n,inTotal:l,isMajorLabelless:"none"===n.show||"title"===n.show,maxDataRows:Math.floor(F3/(r.meta.dimensionCount+r.meta.measureCount))})}},getItemSize({items:e}){const{inView:t}=e;return p(t)},getOffsets({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t,i=Math.min(0,Math.max(e,m(n,r))),o=r?Math.abs(r*i/h()):0;return{start:{pixel:i,item:o},end:{item:Math.min(o+(r||0),n)}}},getUpperBound({items:e}){const{inTotal:t,inView:n}=e;return m(t,n)},getViewRange({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t;return function({viewSize:e,inTotal:t,inView:n,pixelOffset:r}){const i=e/n*t,o=Math.abs(r)/i;return[o,Math.min(1,o+e/i)]}({viewSize:h(),inTotal:n,inView:r,pixelOffset:e})},getArea:({itemOffset:e,items:t})=>d({getDataPages:n,layoutService:r,itemOffset:e,inView:t.inView,areaBuffer:l}),getScaleRange({offsets:e,items:t}){const o=f({getDataPages:n,layoutService:r,offsets:e,items:t,viewSize:h(),upperBound:m(t.inTotal,t.inView)});return"horizontal"===i.meta.major.orientation&&u?function(e){return[1-e[1],1-e[0]]}(o):o},validate:{offset({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t;return e<=0&&e>=m(n,r)}},convert:{itemToPixelOffset({itemOffset:e,items:t}){const{inView:n}=t,r=e*p(n);return Number.isFinite(r)?-r:0},relativeToPixelOffset({relativeOffset:e,items:t}){const{inTotal:n,inView:r}=t;return-e*(p(r)*n)}}}}function p4({chart:e,componentKey:t,state:n,dataStore:r,pageData:i,layoutService:o,dockService:a,itemWidths:s,getRect:l,axisKey:u,renderer:c,areaBuffer:d,viewState:f,rtl:h}){n.set("rect",{width:0,height:0}),n.set("itemWidths",{}),n.set("itemSize",0),n.set("items",{}),n.set("offsets",{}),n.set("finished",0),n.set("scaleRange",[0,1]);const p=h4({chart:e,getRect:()=>n.get("rect"),getDataPages:r.getCurrent,layoutService:o,dockService:a,getItemWidths:()=>n.get("itemWidths"),axisKey:u,renderer:c,areaBuffer:d,rtl:h}),m=()=>{const e=p.getItems();return n.set("items",e),e},g=({pixelOffset:e,items:t})=>{const r=p.getOffsets({pixelOffset:e,items:t});return n.set("offsets",r),r},y=e=>{const t=Date.now(),r=m(),a=g({pixelOffset:e,items:r}),s=p.getArea({itemOffset:a.start.item,items:r});if((e=>{const[{qArea:t}]=o.getDataPages();return!!t&&Object.keys(e).every((n=>e[n]===t[n]))})(s))return void((p.validate.offset({pixelOffset:e,items:r})||f.get("scrollOffset").start!==a.start.item)&&(n.set("finished",t),n.set("scaleRange",p.getScaleRange({offsets:a.start,items:r})),f.preventSet("viewRange",p.getViewRange({pixelOffset:a.start.pixel,items:r})),f.set("scrollOffset",{start:a.start.item,end:a.end.item})));f.preventSet("viewRange",p.getViewRange({pixelOffset:a.start.pixel,items:r}));const l=()=>{n.get("finished")>t||(n.set("finished",t),n.set("scaleRange",p.getScaleRange({offsets:a.start,items:r})),f.set("scrollOffset",{start:a.start.item,end:a.end.item}))};i(s,{onProcessing:l,onDataPage:l})};return{enabled(){const{inTotal:e,inView:t}=n.get("items");return e>t},itemSize:()=>n.get("itemSize"),scaleRange:()=>n.get("scaleRange"),initialize(){const r=e.component(t);if(!r)return Promise.resolve();n.set("rect","function"==typeof l?l():r.rect),n.set("itemWidths","function"==typeof s?s():s);const a=m();n.set("itemSize",p.getItemSize({items:a}));const u=(({items:e})=>{const t=o.getLayoutValue("scrollStartPos"),n=f.get("scrollOffset");if(void 0===n)return 1===t?p.getUpperBound({items:e}):0;if("number"==typeof n)return p.convert.itemToPixelOffset({itemOffset:n,items:e});const{start:r,end:i}=n,a=1===t&&i?i-e.inView:r;return p.convert.itemToPixelOffset({itemOffset:a,items:e})})({items:a}),c=g({pixelOffset:u,items:a});f.preventSet("viewRange",p.getViewRange({pixelOffset:c.start.pixel,items:a}));const d=p.getArea({itemOffset:c.start.item,items:a});return new Promise((e=>{i(d,{onDataPage:()=>{n.set("scaleRange",p.getScaleRange({offsets:c.start,items:a})),f.preventSet("scrollOffset",{start:c.start.item,end:c.end.item}),e()}})}))},scroll(e){const t=n.get("offsets").start.pixel+e;y(t)},scrollToRelative(e){const t=n.get("items"),r=p.convert.relativeToPixelOffset({relativeOffset:e,items:t});y(r)}}}function m4({chart:e,actions:t,componentKey:n,enigmaModel:r,layoutService:i,dockService:o,trendLineModel:a,itemWidths:s,viewState:l,rtl:u,options:{definitionPath:c="/qHyperCubeDef",getRect:d,axisKey:f,renderer:h,areaBuffer:p,processDataPage:m=(()=>{})}={}}){const g=BC(),y=function({qMode:e}){switch(e){case"S":default:return $3;case"K":return U3;case"T":return W3}}({qMode:i.getHyperCubeValue("qMode")}),v=function({state:e,contains:t}){return e.set(Y3,[]),{add:t=>{const n=e.get(Y3);n.length=0,n.push(t)},getCurrent:()=>e.get(Y3)[0],getAll:()=>e.get(Y3),contains:n=>t(e.get(Y3)[0],n)}}({state:g,contains:y.contains});!function({layoutService:e,dataStore:t,composition:n}){const r=e.getDataPages()[0];if(!r)return;const i=n.patcher({layoutService:e});i.should(r)&&i(r),t.add(r)}({layoutService:i,dataStore:v,composition:y});const b=function({buffer:e}){return void 0===e?void 0:2*Math.round(e/2)}({buffer:p}),x=t4({dataStore:v,composition:y,enigmaModel:r,layoutService:i,trendLineModel:a,definitionPath:c,processDataPage:m}),w=p4({chart:e,componentKey:n,state:g,dataStore:v,pageData:x,layoutService:i,dockService:o,itemWidths:s,getRect:d,axisKey:f,renderer:h,areaBuffer:b,viewState:l,rtl:u}),S=function({layoutService:e,dataStore:t}){return function(n){const r=zC(n,`${e.refs.dataPages}`);r.length=0,r.push(t.getCurrent())}}({layoutService:i,dataStore:v}),M=function({chart:e,actions:t,componentKey:n,dockService:r,rtl:i,scroller:o}){return{gestures:[X3({chart:e,actions:t,componentKey:n,dockService:r,rtl:i,scroller:o})],native:{type:"native",events:{wheel:J3({chart:e,actions:t,componentKey:n,scroller:o})}}}}({chart:e,actions:t,componentKey:n,dockService:o,rtl:u,scroller:w});return{interactions:M,query:{getCanScroll:()=>w.enabled(),getItemSize:()=>w.itemSize(),getScaleRange:()=>w.scaleRange(),getCurrentDataPage:()=>v.getCurrent()},command:{initialize:()=>w.initialize(),scrollTo:e=>w.scrollToRelative(e),setSnapshotData:e=>S(e)}}}var g4="AVERAGE",y4="LINEAR",v4="POLYNOMIAL2",b4="POLYNOMIAL3",x4="POLYNOMIAL4",w4="EXPONENTIAL",S4="LOG",M4="POWER";function k4({dimValue:e,value:t,qTrendLine:n}){const{qType:r,qCoeff:i}=n,o={x:e,y:i[2]*t**2+i[1]*t+i[0]};switch(r){default:case v4:return o;case b4:return o.y+=i[3]*t**3,o;case x4:return o.y+=i[4]*t**4+i[3]*t**3,o}}var C4={average:function({dimValue:e,qTrendLine:t}){return{x:e,y:t.qCoeff[0]}},linear:function({dimValue:e,value:t,qTrendLine:n}){return{x:e,y:n.qCoeff[1]*t+n.qCoeff[0]}},polynomial2:k4,polynomial3:k4,polynomial4:k4,exponential:function({dimValue:e,value:t,qTrendLine:n}){return{x:e,y:Math.exp(n.qCoeff[0]+t*n.qCoeff[1])}},log:function({dimValue:e,value:t,qTrendLine:n}){return{x:e,y:n.qCoeff[1]+n.qCoeff[0]*Math.log(t)}},power:function({dimValue:e,value:t,qTrendLine:n}){return{x:e,y:10**(n.qCoeff[0]+n.qCoeff[1]*Math.log(t)*Math.LOG10E)}}};const q4=500;function E4(e,t){const n=C4[t.qType.toLowerCase()],r=Math.max(1,e/q4);let i=1/0,o=-1/0;for(let a=0;a<e;a+=r){const{y:e}=n({dimValue:null,value:a+1,qTrendLine:t});i=Math.min(e,i),o=Math.max(e,o)}return{min:i,max:o}}const D4=100;function T4(e){return C4[e.qType.toLowerCase()]}function N4(e,t){return e.meta.isContinuous?function(e,t){return{generate:(e,n,r)=>{const i=[],o=T4(e),{min:a,max:s}=t.get("zoom"),l=(s-a)/D4;if(l>0){const t=t=>{const a=o({dimValue:t,value:t,qTrendLine:e});a.layerId=n,a.measureIndex=r,a.dimValue=t,i.push(a)};let u=a;for(let e=a;e<=s;e+=l)t(e),u=e;u!==s&&t(s)}return i},calculate:(e,t)=>T4(e)({dimValue:t,value:t,qTrendLine:e}),findMinMax(e,t){const n=this.generate(t).map((({y:e})=>e));return{min:Math.min(...n),max:Math.max(...n)}}}}(0,t):e.meta.mode.K?function(e){return{generate:(t,n,r)=>{const i=[],o=e.getDataPages()[0],a=o.qData[0].qSubNodes,s=o.qArea.qTop,l=C4[t.qType.toLowerCase()];for(let e=0;e<a.length;e++){const o=a[e],u=l({dimValue:o.qElemNo,value:e+s+1,qTrendLine:t});u.layerId=n,u.measureIndex=r,u.dimValue=o.qText,i.push(u)}return i},findMinMax:E4}}(e):function(e){return{generate:(t,n,r)=>{const i=[],o=e.getDataPages()[0],a=o.qMatrix,s=o.qArea.qTop,l=C4[t.qType.toLowerCase()];for(let e=0;e<a.length;e++){const o=a[e][0],u=e+s+1,c=l({dimValue:o.qElemNumber,value:u,qTrendLine:t});c.layerId=n,c.measureIndex=r,c.dimValue=o.qText,i.push(c)}return i},calculate:(e,t,n)=>(0,C4[e.qType.toLowerCase()])({dimValue:n,value:t,qTrendLine:e}),findMinMax:E4}}(e)}var O4={TYPES:{AVERAGE:"properties.trendlines.types.average",LINEAR:"properties.trendlines.types.linear",POLYNOMIAL2:"properties.trendlines.types.polynomial2",POLYNOMIAL3:"properties.trendlines.types.polynomial3",POLYNOMIAL4:"properties.trendlines.types.polynomial4",EXPONENTIAL:"properties.trendlines.types.exponential",LOG:"properties.trendlines.types.logarithmic",POWER:"properties.trendlines.types.power"},STYLE:{DASHED:"properties.trendlines.style.dashed"},TYPE:"properties.trendlines.type",HEADER:"properties.trendlines",ADD_BUTTON:"properties.trendlines.button.add"},A4={color:"#f93f17",index:9};const{isDark:_4}=Xy,L4={x:NaN,y:NaN,layerId:NaN,measureIndex:NaN},I4=({layoutService:e,viewState:t,colorModel:n,chart:r,env:i,keys:{colorScale:o},isEnabled:a=(()=>!1)})=>{const{translator:s}=i,l=[L4],u=[],c=[],d=N4(e,t);e.getLayoutValue("qHyperCube.qMeasureInfo",[]).forEach(((e,t)=>{Array.isArray(e.qTrendLines)&&(u.push(...e.qTrendLines),c.push(...e.qTrendLines.map((()=>t))))}));const f=HC((e=>{const{style:t}=u[e]||{},i=n.settings();if(t.autoColor){if("measure"===i.mode){const t=c[e],n=r.scale(o)(t);return _4(n)?function(e){const t=Yy(e);return t.l<30?t.l+=15:t.l<50?t.l+=10:t.l+=5,t.toString()}(n):function(e){const t=Yy(e);return t.l-=5,t.toString()}(n)}return n.resolveUIColor(A4)}return t.paletteColor?n.resolveUIColor(t.paletteColor):"none"}));return{query:{hasTrendLines:()=>!!u.length&&a(),getData:()=>l,getStroke:f,getLineDash:e=>{const{style:t}=u[e]||{};return t.lineDash},getLabel:e=>(u[e]||{}).label,getType:e=>{const{qType:t}=u[e]||{};return s.get(O4.TYPES[t])},getMinMax:()=>{let t=1/0,n=-1/0;return u.forEach((r=>{const i=d.findMinMax(e.meta.size.y,r);t=Math.min(i.min,t),n=Math.max(i.max,n)})),{min:t,max:n}},getCalculatedValue:(e,t,n)=>{const r=u[e];return d.calculate(r,t,n)}},command:{update:()=>{l.length=0,u.forEach(((e,t)=>{const n=d.generate(e,t,c[t]);l.push(...n)}))}}}};var R4={source:"trend",extract:{field:"x",props:{minor:{field:"y"},layer:{field:"layerId"},measureIndex:{field:"measureIndex"},dimValue:{field:"dimValue"}}}};const P4=({meta:e})=>e.isContinuous?({scale:e,datum:t})=>e(t.value):e.isGroupedByMeasure?({scale:e,datum:t})=>e([t.value,t.measureIndex.value])+e.bandwidth()/2:({scale:e,datum:t})=>e(t.value)+e.bandwidth()/2,z4=(e,{layoutService:t,trendLineModel:n,dockService:r,animationsEnabled:i})=>{if(!n.query.hasTrendLines())return[];const o=(({majorScale:e,minorScale:t},{trendLineModel:n,layoutService:r,dockService:i,animationsEnabled:o})=>{const a=P4(r);return{key:"trend-lines",type:"line",layout:{dock:"center"},data:R4,settings:{connect:!0,orientation:i.meta.major.orientation,coordinates:{major:{scale:e,fn:a},minor:{scale:t},layerId:{ref:"layer"}},layers:{curve:"monotone",line:{strokeWidth:2,stroke:({datum:e})=>n.query.getStroke(e.layer.value),strokeDasharray:({datum:e})=>n.query.getLineDash(e.layer.value)}}},animations:{enabled:o,trackBy:yD.nonUpdatingNode.trackBy,compensateForLayoutChanges:yD.lines.compensateForLayoutChanges}}})(e,{trendLineModel:n,layoutService:t,dockService:r,animationsEnabled:i}),a=(({majorScale:e,minorScale:t,tooltipOverlay:n="trend-lines-tooltip-overlay"},{layoutService:r,dockService:i})=>{const o=P4(r),a="horizontal"===i.meta.major.orientation,s={scale:e,fn:o},l={scale:t,ref:"minor"};return{key:n,type:"point",layout:{dock:"center"},data:R4,settings:{x:a?s:l,y:a?l:s,opacity:0,size:1,sizeLimits:{maxPx:8,minPx:8}}}})(e,{layoutService:t,dockService:r});return[o,a]};function F4(e,t){const{getLabel:n,getType:r,getLineDash:i,getStroke:o}=t.query;return({node:t,resources:a})=>{const s={type:"icon",style:{stroke:o(t.data.layer.value),"min-width":"16px","vertical-align":"middle","stroke-dasharray":i(t.data.layer.value)}},l={content:[{content:n(t.data.layer.value),style:{"font-weight":"bold"}},{content:r(t.data.layer.value)}],style:{"min-width":"136px"}};return{title:t.data.dimValue.label,row:[s,l,{content:a.formatter(e.formatter)(t.data.minor.value)}]}}}const j4=16,B4=2;function H4(e,t){return Array.isArray(t.content)?e("div",{style:{display:"flex","flex-direction":"column"}},t.content.map((t=>e("span",{style:t.style,direction:Xg.detectTextDirection(t.content)},t.content)))):"icon"===t.type?function(e){const t=e("line",{x1:"0px",y1:`${j4}px`,x2:`${j4}px`,y2:"0px","stroke-width":"3px"});return e("svg",{xlms:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:`0 0 ${j4} ${j4}`},t)}(e):t.content}function V4(e,t){return({h:n,data:r,style:i})=>{const o=r[0].title,a=r.filter((e=>e.title===o)),s=function(e,t){const n=e("td",{colspan:3,style:{"font-weight":"bold"},direction:Xg.detectTextDirection(t)},t);return e("tr",{},n)}(n,o),l=[s];if(a.slice(0,B4).forEach((e=>{l.push(n("tr",{},function(e,{h:t,style:n}){return e.map((e=>{const r={style:{direction:"string"==typeof e.content?Xg.detectTextDirection(e.content):void 0,...n.cell||{},...e.style||{}},class:e.class};e.colspan&&(r.colspan=e.colspan);const i=H4(t,e);return t("td",r,i)}))}(e.row,{h:n,style:i})))})),r.length>B4){const i=r.length-B4;l.push(...function(e,t,n,r){const i=t?t.get("Object.ChartTooltip.NMore",r):`+${r} more`,o=Xg.detectTextDirection(i);return[e("tr",{},e("td",{style:{"background-image":"linear-gradient(transparent 8px, rgba(255, 255, 255, 0.4) 8px, rgba(255, 255, 255, 0.4) 9.2px, transparent 9.2px)",height:"17px"},colspan:3},"")),e("tr",{},e("td",{style:{"font-weight":"bold","text-align":n?"right":"left",direction:o},colspan:3},i))]}(n,e,t,i))}return l}}function $4(e,{trendLineModel:t,translator:n},r={}){if(!t.query.hasTrendLines())return!1;const{rtl:i}=r,o=Wg({key:e.tooltip,rtl:i});return Cg(!0,o,{settings:{extract:F4(e,t),content:V4(n,i),placement:"pointer",direction:r.rtl?"rtl":"ltr"}})}function U4(e,t){const n=t.element.getBoundingClientRect();return{x:(e.center?e.center.x:e.clientX)-n.left,y:(e.center?e.center.y:e.clientY)-n.top}}function W4(e,{chart:t,viewState:n,trendLineModel:r,layoutService:i,rtl:o}){const{isContinuous:a}=i.meta;let s={components:[{key:e.tooltipOverlay}],propagation:"stop"},l=e=>{const n=U4(e,t);return t.shapesAt(n,s)};if(a){const{getCalculatedValue:i}=r.query;s={components:[{key:"trend-lines"}],propagation:"stop"},l=(r,a)=>{const l=U4(r,t),u=t.shapesAt(function(e){return{cx:e.x,cy:e.y,r:3}}(l),s);if(u.length){const r=function(e,t,n,r){let i=(e.x-t.rect.computed.x)/t.rect.computed.width;i=r?1-i:i;const{min:o,max:a}=n.get("zoom");return o+(a-o)*i}(l,a,n,o),s=t.scale(e.majorInnerScale),c=(null!=s&&s.formatter?s.formatter():t.formatter({data:{fields:["qDimensionInfo/0"]}}))(r);u.forEach((e=>{e.data.dimValue.value=r,e.data.dimValue.label=c,e.data.minor.value=i(e.data.layer.value,r).y}))}return u}}return n=>{const r=t.component(e.tooltip);if(r&&(n=>t.componentsFromPoint({x:n.center?n.center.x:n.clientX,y:n.center?n.center.y:n.clientY}).some((t=>t.key===e.tooltipOverlay)))(n)){const e=l(n,r);return e.length?(r.emit("show",n,{nodes:e}),!0):(r.emit("hide"),!1)}return!1}}const Y4=e=>{e.style.dashed?e.style.lineDash="8, 4":e.style.lineDash=""},K4=e=>{Y4(e),e.qMultiDimMode="Sum",e.qXColIx=0};function G4(e={}){const{translator:t,events:n={onGlobalChange:()=>{}},allowStackedByDimension:r=!1}=e;return{show:(e,t,{layout:n})=>!zg.dimensionless(n)&&!zg.groupedByDimension(n)&&(r||!zg.stackedByDimension(n)),type:"array",ref:"qTrendLines",titleTranslation:O4.HEADER,itemTitleRef:e=>{const n=typeof e.label;return"string"===n&&e.label?e.label:"object"===n?e.label.qStringExpression?e.label.qStringExpression.qExpr:e.label.qValueExpression.qExpr:t.get(O4.TYPES[e.qType])},max:8,allowAdd:!0,allowRemove:!0,allowMove:!1,addTranslation:O4.ADD_BUTTON,add:K4,globalChange:e=>{const t=zC(e,"qHyperCubeDef.qMeasures",[]).reduce(((e,t)=>(Array.isArray(t.qTrendLines)&&e.push(...t.qTrendLines),e)),[]),r=(e=>!zC(e,"dimensionAxis.continuousAuto",!1)&&e.preferContinuousAxis)(e)?"Possible":"Never";t.forEach((e=>{e.qContinuousXAxis=r})),n.onGlobalChange(e,t)},items:{label:{ref:"label",type:"string",expression:"optional",translation:"Common.Label",defaultValue:""},type:{ref:"qType",type:"string",component:"dropdown",translation:O4.TYPE,options:[{value:g4,translation:O4.TYPES.AVERAGE},{value:y4,translation:O4.TYPES.LINEAR},{value:v4,translation:O4.TYPES.POLYNOMIAL2},{value:b4,translation:O4.TYPES.POLYNOMIAL3},{value:x4,translation:O4.TYPES.POLYNOMIAL4},{value:w4,translation:O4.TYPES.EXPONENTIAL},{value:S4,translation:O4.TYPES.LOG},{value:M4,translation:O4.TYPES.POWER}],defaultValue:g4},autoColor:{ref:"style.autoColor",type:"boolean",translation:"properties.colors",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}]},paletteColor:{ref:"style.paletteColor",translation:"properties.color",type:"object",component:"color-picker",dualOutput:!0,defaultValue:A4,show:e=>!e.style.autoColor},dashed:{ref:"style.dashed",translation:O4.STYLE.DASHED,type:"boolean",defaultValue:!0,change:Y4}}}}var X4={};function J4(){J4.init.call(this)}X4.isObject=function(e){return"object"==typeof e&&null!==e},X4.isNumber=function(e){return"number"==typeof e},X4.isUndefined=function(e){return void 0===e},X4.isFunction=function(e){return"function"==typeof e};var Q4=J4;J4.EventEmitter=J4,J4.prototype._events=void 0,J4.prototype._maxListeners=void 0,J4.defaultMaxListeners=10,J4.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},J4.prototype.setMaxListeners=function(e){if(!X4.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},J4.prototype.emit=function(e){var t,n,r,i,o,a;if(this._events||(this._events={}),"error"===e&&!this._events.error)throw(t=arguments[1])instanceof Error?t:Error('Uncaught, unspecified "error" event.');if(n=this._events[e],X4.isUndefined(n))return!1;if(X4.isFunction(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:for(r=arguments.length,i=new Array(r-1),o=1;o<r;o++)i[o-1]=arguments[o];n.apply(this,i)}else if(X4.isObject(n)){for(r=arguments.length,i=new Array(r-1),o=1;o<r;o++)i[o-1]=arguments[o];for(r=(a=n.slice()).length,o=0;o<r;o++)a[o].apply(this,i)}return!0},J4.prototype.addListener=function(e,t){var n;if(!X4.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,X4.isFunction(t.listener)?t.listener:t),this._events[e]?X4.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,X4.isObject(this._events[e])&&!this._events[e].warned)&&((n=X4.isUndefined(this._maxListeners)?J4.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,X4.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),X4.isFunction(console.trace)&&console.trace()));return this},J4.prototype.on=J4.prototype.addListener,J4.prototype.once=function(e,t){if(!X4.isFunction(t))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}return r.listener=t,this.on(e,r),this},J4.prototype.removeListener=function(e,t){var n,r,i,o;if(!X4.isFunction(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(i=(n=this._events[e]).length,r=-1,n===t||X4.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(X4.isObject(n)){for(o=i;o-- >0;)if(n[o]===t||n[o].listener&&n[o].listener===t){r=o;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},J4.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],X4.isFunction(n))this.removeListener(e,n);else if(Array.isArray(n))for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},J4.prototype.listeners=function(e){return this._events&&this._events[e]?X4.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},J4.listenerCount=function(e,t){return e._events&&e._events[t]?X4.isFunction(e._events[t])?1:e._events[t].length:0};var Z4=fg(Q4);const e6={shapes:[{type:"path",attrs:{d:"M15.9488039,5.20769129 C16.0487326,6.70662306 15.3492311,8.30548361 14.050157,9.30477145 C12.651154,10.5039169 10.8524359,10.8037032 8.85386017,10.4039881 L7.3549284,10.0042729 L5.75606786,9.70448659 C5.75606786,9.90434416 5.65613907,10.0042729 5.4562815,10.2041305 C5.05656637,10.6038456 4.55692244,10.8037032 4.05727852,10.8037032 C3.75749217,10.8037032 3.45770582,10.7037744 3.15791946,10.6038456 C3.05799068,10.903632 3.15791946,11.2034184 3.45770582,11.7030623 C5.05656637,14.0014243 3.85742095,15.9000712 3.75749217,16 L2.2585604,15.3004985 C2.2585604,15.2005697 2.95806189,14.0014243 1.95877405,12.6024213 C1.6589877,12.0028486 1.15934378,11.0035608 1.55905891,10.0042729 C1.6589877,9.80441537 1.75891648,9.6045578 1.95877405,9.40470024 C1.6589877,8.90505631 1.55905891,8.30548361 1.85884527,7.7059109 C1.55905891,7.40612455 1.25927256,7.1063382 1.15934378,6.70662306 C0.859557424,5.90719279 0.959486209,4.5081898 1.6589877,3.30904439 C1.95877405,2.6095429 2.55834676,2.0099702 3.15791946,1.51032628 C3.95734974,0.91075357 4.95663758,0.610967217 6.15578299,0.311180864 C9.05371774,-0.388320626 11.9516525,0.111323295 13.9502282,1.61025506 C15.1493736,2.50961412 15.8488751,3.80868831 15.9488039,5.20769129 Z M13.0508691,8.10562604 C13.8502994,7.40612455 14.3499433,6.40683671 14.3499433,5.30762008 C14.2500145,4.20840345 13.550513,3.40897318 12.9509403,2.90932926 C12.1515101,2.40968533 11.252151,2.0099702 10.1529344,1.81011263 C8.95378895,1.61025506 7.75464354,1.71018384 6.45556935,1.91004141 C4.75678001,2.30975655 3.65756338,3.00925804 3.05799068,4.10847467 C2.55834676,5.00783373 2.65827554,5.90719279 2.75820433,6.20697914 C2.75820433,6.30690792 2.85813311,6.40683671 3.05799068,6.40683671 C3.15791946,6.40683671 3.25784825,6.40683671 3.35777703,6.40683671 C3.45770582,6.40683671 3.45770582,6.40683671 3.45770582,6.40683671 L3.5576346,6.40683671 L3.65756338,6.40683671 C4.65685123,6.40683671 5.4562815,6.90648063 5.85599664,7.80583969 L5.85599664,8.00569726 C6.35564056,8.10562604 7.05514205,8.30548361 7.75464354,8.50534118 L9.25357531,8.90505631 C10.0530056,9.0049851 10.7525071,9.0049851 11.4520086,8.80512753 C12.0515813,8.70519875 12.5512252,8.40541239 13.0508691,8.10562604 Z"}}]};const t6=e=>(Object.keys(Z4.prototype).forEach((t=>{e[t]=Z4.prototype[t]})),Z4.init(e),e);function n6(){const[t]=e.useState({}),[n]=e.useState({}),r=function(){var t,n;const r=e.useLayout(),i=e.useTranslator(),o=!(null==r||null===(t=r.qSelectionInfo)||void 0===t||!t.qInSelections),a=!(null==r||null===(n=r.qHyperCube)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n||null===(n=n[0])||void 0===n||!n.qIsOneAndOnlyOne),[s,l]=e.useState(!1),[u,c]=e.useState(!1),[d,f]=e.useState({key:"lasso",enabled:()=>!1,active:()=>!1,action:()=>!1}),h=e=>{c("boolean"==typeof e?e:!u)};return e.useAction((()=>(f({key:"lasso",action:h,enabled:()=>s,active:()=>u}),{key:"lasso",label:i.get(u?"Tooltip.ToggleOffLassoSelection":"Tooltip.ToggleOnLassoSelection"),icon:e6,hidden:!s||!o||a,active:u,action:h})),[o,a,u,s,i.language()]),{get:()=>d,setAllows:e=>{l(!!e)}}}(),[i,o]=e.useState();return e.useEffect((()=>{const e={};e.scroll={key:"scroll",isActive:!0,isEnabled:!0,action(){this.isActive=!this.isActive},active(){return this.isActive},enabled(){const{layoutService:e,discrete:r}=t;return n.allowScroll&&((null==e?void 0:e.meta.isContinuous)||(null==r?void 0:r.query.getCanScroll()))}},e.interact={key:"interact",isEnabled:!0,enabled:()=>n.allowInteract},e.tooltip={key:"tooltip",isActive:!0,isEnabled:!0,action(e){this.isActive=!!e},active(){return this.isActive},enabled:()=>n.allowTooltip},e.select={key:"select",isActive:!1,isEnabled:!0,action(){this.isActive=!this.isActive},active(){return this.isActive},enabled:()=>n.allowSelect},e.lasso=r.get(),Object.keys(e).forEach((t=>t6(e[t]))),o(e)}),[]),e.useEffect((()=>{i&&r&&(i.lasso={...i.lasso,...r.get()})}),[r]),{get:()=>i,setAllows:e=>{Object.assign(n,e),r.setAllows(null==e?void 0:e.allowSelect)},setContext:e=>{Object.assign(t,e)},destroy:()=>{Object.keys(i).forEach((e=>i[e].removeAllListeners()))}}}var r6={SPARK:{DEFAULT:7,SQUEEZE:7,LABELLESS:7},XSMALL:{DEFAULT:28,SQUEEZE:24,LABELLESS:20},SMALL:{DEFAULT:28,SQUEEZE:24,LABELLESS:20},MEDIUM:{DEFAULT:28,SQUEEZE:24,LABELLESS:20},FULL:{DEFAULT:28,SQUEEZE:24,LABELLESS:20}},i6={SCALE:{MAIN:{MINOR:"minor",MAJOR:"major",MAJOR_INNER:"majorInner",MAJOR_NUM:"majorNum",COLOR:"fill"},REDUCED:{MINOR:"miniMinor",MAJOR:"miniMajor",COLOR:"reducedFill"}},COMPONENT:{BAR:"bar",GHOST_BAR_OOB:"ghost-bar",STACK:"stack",BAR_AXIS:"bar-axis",GROUP_AXIS:"group-axis",BAR_OOB_MAX:"bar-oob-max",BAR_OOB_MIN:"bar-oob-min",STACK_TOTAL_BAR:"stack-total-bar",BASE_TOOLTIP:"tooltip",LEGEND_CAT_TOOLTIP:"legend-cat-tooltip",LEGEND_COLOR_CAT:"legend-color-cat",MEASURE_REF_LINE:"mes-ref-line",DIMENSION_REF_LINE:"dim-ref-line",MEASURE_REF_LINE_LABEL:"mes-ref-line-label",DIMENSION_REF_LINE_LABEL:"dim-ref-line-label",TREND_LINES_TOOLTIP:"trend-lines-tooltip",TREND_LINES_TOOLTIP_OVERLAY:"trend-lines-tooltip-overlay"},COLLECTION:{MAIN:"main-collection",MINI:"mini-collection",MINI_STACK:"mini-stack-collection",MINI_CONTINUOUS:"mini-continuous-collection",STACK_TOTAL:"stack-total-collection"},FORMATTER:{MINOR:"bar",COLOR:"fill"},STYLING:{AXIS:"axis"}};function o6({layout:e}){const t=Ag.canBeContinuous(e),n=zg.continuous(e),r=zg.dimensionless(e);return{canBeContinuous:t,isDiscrete:!n,isContinuous:n,isTime:Ag.isTime(n,e),isDimensionless:r,isSimple:zg.simple(e),isGrouped:zg.grouped(e),isGroupedByMeasure:zg.groupedByMeasure(e),isGroupedByDimension:zg.groupedByDimension(e),isStacked:zg.stacked(e),isStackedByDimension:zg.stackedByDimension(e),isStackedByMeasure:zg.stackedByMeasure(e),isSnapshot:zg.snapshot(e)}}const a6={extractDimsAndNode(e){const t=[];let n;return e.forEach((e=>{if(e.key===i6.COMPONENT.BAR){n=e;const r=zC(e,"data.selectionDimension",!1);r&&(t.push(r.label),r.label!==e.data.label&&t.push(e.data.label))}})),{nodeDims:t,node:n}}};function s6(e,t,n="/qHyperCubeDef"){return{fetch(){return function(e,t,n){return e.getHyperCubeReducedData(n.path,[n.rect],n.zoomLevel,n.filter).catch(jg).then((e=>{var n;const r=t.getHyperCubeValue("qMode"),i=t.getHyperCubeValue("qDimensionInfo"),o="K"===r&&i.length>1&&(null===(n=e[0])||void 0===n?void 0:n.qIsReduced),a=e.slice(),s=t.getHyperCubeValue("qMeasureInfo"),l=o?[]:t.getHyperCubeValue("qColumnOrder");return{reducedCube:{qDataPages:a,qDimensionInfo:i.slice(),qEffectiveInterColumnSortOrder:[1,0],qMeasureInfo:o?[s[0],s[0]]:s.slice(),qStackedDataPages:[],qMode:"S",qHasOtherValues:t.getHyperCubeValue("qHasOtherValues"),qSize:t.getHyperCubeValue("qSize"),qColumnOrder:l}}}))}(e,t,this.settings())},settings(){const e=t.getHyperCubeValue("qDimensionInfo"),r=t.meta.isStacked&&e.length>1?1:0,i=t.getHyperCubeValue("qMeasureInfo");return{path:n,rect:{qTop:0,qLeft:r,qWidth:e.length+i.length+r,qHeight:Math.min(2e3,1e4/(i.length+1))},zoomLevel:-1,filter:"D1"}}}}function l6({enigma:e,layoutService:t,viewModel:n,definitionPath:r,reducedHyperCubePath:i},o={}){const a=s6(e,t,r),s=function(e,t="reducedHyperCube"){return{fetch:()=>Promise.resolve({reducedCube:e.getLayoutValue(t)||e.getHyperCube()})}}(t,i),l=function(e){return{fetch:()=>{const t=e.getHyperCube(),n={...t,qDataPages:t.qDataPages.slice()};return Promise.resolve({reducedCube:n})}}}(t),u=function({layoutService:e}){const{isSnapshot:t,isStackedByDimension:n}=e.meta,r=e=>{e.qDimensionInfo.unshift({key:"dummy-patch-dimension"})};return r.should=e=>t&&n&&1===e.qDimensionInfo.length,r}({layoutService:t}),c={mode:{isReduced:!1}};return{fetch(){if(t.meta.isSnapshot)return s.fetch();if(t.meta.isContinuous)return l.fetch();if(!t.meta.isStacked){if(t.getHyperCubeValue("qSize.qcy",NaN)===t.getHyperCubeValue("qDataPages.0.qArea.qHeight",NaN))return l.fetch()}return a.fetch()},model:()=>c,update(e){var r;u.should(e)&&u(e),c.mode=Cg(c.mode,t.meta),c.mode.isReduced=e.qDataPages[0]&&e.qDataPages[0].qIsReduced,c.mode.isStackedByDimension=c.mode.isStacked&&(2===(r=e).qDimensionInfo.length&&2===r.qMeasureInfo.length),c.mode.isStackedByMeasure=c.mode.isStacked&&function(e){return e.qMeasureInfo.length>1&&1===e.qDimensionInfo.length}(e),c.fields={major:c.mode.isStackedByDimension?"qDimensionInfo/"+(e.qDimensionInfo.length-1):n.fields.major,majorGroup:n.fields.majorGroup,minor:c.mode.isStackedByDimension?e.qMeasureInfo.map(((e,t)=>`qMeasureInfo/${t}`)):n.fields.minor},c.scales={major:i6.SCALE.REDUCED.MAJOR,minor:i6.SCALE.REDUCED.MINOR},c.cube=e,o.qDataPages=e.qDataPages},fetchMinMaxData(){if(o.qDataPages)return Promise.resolve(o.qDataPages);let n=a.settings();const r="K"===t.getHyperCubeValue("qMode")?1:n.rect.qHeight;return n=Cg(!0,{},n,{rect:{qHeight:r}}),e.getHyperCubeReducedData(n.path,[n.rect],n.zoomLevel,n.filter).then((e=>e))},setSnapshotData(e){e.reducedHyperCube=c.cube}}}function u6({clearMinor:e,clearLegend:t,clearDiscrete:n,clearContinuous:r,selectionInfo:i}){t({componentName:"legendRangeBrush"}),e({eventName:"measureRange",componentName:"measureRangeBrush"}),n({eventName:"discreteRange",componentName:"discreteRangeBrush",brushName:!1}),"tap"!==i.event&&r({componentName:"continuousRangeBrush",brushName:!1})}const c6=e=>{const t=e.qDimensionInfo.length;for(let n=0;n<t;n++){const r=e.qDimensionInfo[n];if(!(r.qLocked||r.qCardinalities.qHypercubeCardinal<=1&&n<t-1))return n}};function d6({layout:e,defaultAuto:t}){return e.qHyperCube.qDimensionInfo.length>1?{mode:"byDimension",useDimColVal:!0,useBaseColors:"dimension",byDimDef:{activeDimensionIndex:1}}:e.qHyperCube.qMeasureInfo.length>1?{mode:"primary",useBaseColors:"measure",paletteColor:null}:t(e)}const f6={getMaxGlyphCount(e,t){const{qDimensionInfo:n}=e,{qApprMaxGlyphCount:r}=n[t];return r},getDimensionSize(e){var t;const n=null==e||null===(t=e.qCardinalities)||void 0===t?void 0:t.qHypercubeCardinal,{qLocked:r=0,qOption:i=0,qSelected:o=0}=(null==e?void 0:e.qStateCounts)||{};return[void 0,0].includes(n)?r+i+o:n}};function h6({picasso:t,chart:n,environment:r,viewState:i,viewCache:o}){const a=e.useStaleLayout(),s=e.useModel(),l=e.useApp(),u=e.usePlugins(),c=e.useSelections(),d=e.useOptions(),[f,h]=e.useState(),[p,m]=e.useState(),[g,y]=e.useState(),v=e.useConstraints(),b=n6();return e.useEffect((()=>{if(!n)return()=>{};const e=b.get(),t=function({chart:e,actions:t,selections:n}){const r=e.scale(i6.SCALE.MAIN.MAJOR),i=oD({chart:e,actions:t,selections:n,config:{allowSimultaneous:!0,brushRanges:!0,majorScale:r,selectionActions:{reset(){e.brushSelectionIncludeMax=void 0,t.lasso.active()&&t.lasso.action(!1)},clear:u6},custom:{getActions:()=>t},setBrushAliases({defaultFunc:e,brush:t}){e(),t.addKeyAlias("miniCube/qDimensionInfo/0","qHyperCube/qDimensionInfo/0"),t.addKeyAlias("miniCube/qDimensionInfo/1","qHyperCube/qDimensionInfo/1")}}});return i}({chart:n,actions:e,selections:c});return m(e),y(t),()=>{t.destroy(),b.destroy()}}),[n]),e.useEffect((()=>{if(!v)return;const e={allowScroll:!v.active,allowInteract:!v.active,allowTooltip:!v.passive,allowSelect:!v.select&&!v.active};b.setAllows(e)}),[v]),e.useEffect((()=>{if(!g||!r)return;const{theme:e,translator:c,localeInfo:f,flags:m,embed:y}=r,{direction:v="ltr"}=d,x=GC({source:a,metaAdditionsFn:o6,experimental:{filter:m.isEnabled("IM_1579_HIDE_DIM_MEA")}});g.setFilteredFields(x.meta.filteredFields);const w=function(e){return e.color.auto?e.qHyperCube.qDimensionInfo.length>1:"byDimension"===e.color.mode&&e.color.byDimDef&&e.color.byDimDef.activeDimensionIndex>-1}(x.getLayout())?GC({source:x.getLayout()}):void 0,S=function({layout:e,options:t={}}){return!(null==e||!e.snapshotData||t.freeResize)&&{width:e.snapshotData.content.size.w,height:e.snapshotData.content.size.h}}({layout:a,options:d}),M=function({layoutService:e,viewCache:t,flags:n,options:r}){const i={};return i.fields=function(e){const{meta:t}=e,n={majorGroup:t.isGroupedByDimension?"qDimensionInfo/0":void 0,majorStack:t.isStacked?"qDimensionInfo/0":void 0,major:t.isDimensionless?void 0:"qDimensionInfo/"+(t.dimensionCount-1),majors:e.getHyperCubeValue("qDimensionInfo").map(((e,t)=>`qDimensionInfo/${t}`)),minor:e.getHyperCubeValue("qMeasureInfo").map(((e,t)=>`qMeasureInfo/${t}`))};return n.majorNumeric=`${t.isStackedByDimension?n.majorStack:n.major}:numeric`,n}(e),i.selectionDimensionIdx=c6(e.getHyperCube()),i.isDimensionLocked=t=>e.getHyperCube().qDimensionInfo[t].qLocked,i.selectionDimensionProp=e=>void 0===i.selectionDimensionIdx||void 0!==e&&i.selectionDimensionIdx!==e?{}:{selectionDimension:{field:i.selectionDimensionIdx}},i.animations={enabled:()=>!1!==r.chartAnimations&&!!n.isEnabled("IM_1355_ANIMATIONS_BAR")&&!(i.animations.isPartialUpdating||i.animations.isSizeChanging||i.animations.hasSlicedHats)&&!yD.propertiesHaveChanged({viewCache:t,layout:e.getLayout()}),isPartialUpdating:!1,isSizeChanging:!1,hasSlicedHats:!1},i}({layoutService:x,viewCache:o,flags:m,options:d}),k=PC({chart:n,layoutService:x,config:{logicalSize:S,rtl:"rtl"===v},typeConfig:{type:"major-minor",fallback:"vertical",invert:!0}}),C=function({layoutService:e}){return EC({config:{args:{layoutService:e},disclaimers:{NoDataExist:!0,OnlyNanDataMeasure:!0,OnlyNanDataDimensionContinuous:!0,LimitedData:{condition:()=>{const{isContinuous:t,isTwoDimensional:n}=e.meta;if(!t||!n)return!1;const r=e.getLayout().qHyperCube.qDimensionInfo[1];return f6.getDimensionSize(r)>Ag.maxNumberOfLines}}}}})}({layoutService:x}),q=function(e){var t=e.theme,n=e.config,r=void 0===n?{}:n,i=r.id,o=r.resolve,a=void 0===o?[]:o,s=r.transform,l=void 0===s?[]:s,u=r.extend,c=void 0===u?[]:u,d={theme:t,matrix:fD(a),styles:void 0};return d.styles=pD({theme:t,id:i,transform:l,extend:c,matrix:d.matrix}),{getStyles:function(){return d.styles},getTheme:function(){return d.theme},setTheme:function(e){d.theme=e,d.styles=pD({theme:e,id:i,transform:l,extend:c,matrix:d.matrix})}}}({theme:e,config:{id:"barChart",transform:[["label.value.fontSize",e=>parseInt(e,10)]]}}),E=function({layoutService:e,themeService:t}){const n=t.getStyles(),r=t=>(e.getLayoutValue("components",[])||[]).find((e=>e.key===t));return{axis:{title:{getStyle:()=>{var e,t,i,o,a,s;return{fontFamily:null!==(e=null===(t=r("axis"))||void 0===t||null===(t=t.axis)||void 0===t||null===(t=t.title)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:n.axis.title.fontFamily,fontSize:null!==(i=null===(o=r("axis"))||void 0===o||null===(o=o.axis)||void 0===o||null===(o=o.title)||void 0===o?void 0:o.fontSize)&&void 0!==i?i:n.axis.title.fontSize,color:null!==(a=null===(s=r("axis"))||void 0===s||null===(s=s.axis)||void 0===s||null===(s=s.title)||void 0===s||null===(s=s.color)||void 0===s?void 0:s.color)&&void 0!==a?a:n.axis.title.color}}},label:{getStyle:()=>{var e,t,i,o,a,s;return{fill:null!==(e=null===(t=r("axis"))||void 0===t||null===(t=t.axis)||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.name)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:n.axis.label.name.color,fontSize:null!==(i=null===(o=r("axis"))||void 0===o||null===(o=o.axis)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.name)||void 0===o?void 0:o.fontSize)&&void 0!==i?i:n.axis.label.name.fontSize,fontFamily:null!==(a=null===(s=r("axis"))||void 0===s||null===(s=s.axis)||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.name)||void 0===s?void 0:s.fontFamily)&&void 0!==a?a:n.axis.label.name.fontFamily}}}},legend:{title:{getStyle:()=>{var e,t,i,o,a,s;return{fontFamily:null!==(e=null===(t=r("legend"))||void 0===t||null===(t=t.legend)||void 0===t||null===(t=t.title)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:n.legend.title.fontFamily,fontSize:null!==(i=null===(o=r("legend"))||void 0===o||null===(o=o.legend)||void 0===o||null===(o=o.title)||void 0===o?void 0:o.fontSize)&&void 0!==i?i:n.legend.title.fontSize,color:null!==(a=null===(s=r("legend"))||void 0===s||null===(s=s.legend)||void 0===s||null===(s=s.title)||void 0===s||null===(s=s.color)||void 0===s?void 0:s.color)&&void 0!==a?a:n.legend.title.color}}},label:{getStyle:()=>{var e,t,i,o,a,s;return{fontFamily:null!==(e=null===(t=r("legend"))||void 0===t||null===(t=t.legend)||void 0===t||null===(t=t.label)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:n.legend.label.fontFamily,fontSize:null!==(i=null===(o=r("legend"))||void 0===o||null===(o=o.legend)||void 0===o||null===(o=o.label)||void 0===o?void 0:o.fontSize)&&void 0!==i?i:n.legend.label.fontSize,color:null!==(a=null===(s=r("legend"))||void 0===s||null===(s=s.legend)||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.color)||void 0===s?void 0:s.color)&&void 0!==a?a:n.legend.label.color}}}},label:{getStyle:()=>{var e,t,i,o,a,s,l,u;return{fill:null!==(e=null===(t=r("label"))||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.value)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:n.label.value.color,useContrastColor:null===(i=null===(o=r("label"))||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o.useContrastColor)||void 0===i||i,fontSize:null!==(a=null===(s=r("label"))||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.value)||void 0===s?void 0:s.fontSize)&&void 0!==a?a:n.label.value.fontSize,fontFamily:null!==(l=null===(u=r("label"))||void 0===u||null===(u=u.label)||void 0===u||null===(u=u.value)||void 0===u?void 0:u.fontFamily)&&void 0!==l?l:n.label.value.fontFamily}}}}}({layoutService:x,themeService:q}),D=EG.model({model:s,layoutService:x,viewCache:o,viewState:i}),T=l6({enigma:s,layoutService:x,viewModel:M});!function({layoutService:e,viewState:t,viewStateOptions:n={}}){const r=e.meta.isSnapshot?e.getLayoutValue("snapshotData.content.chartData",{}):n;t.preventSet("scrollOffset",r.scrollOffset),t.preventSet("legendScrollOffset",r.legendScrollOffset||0),r.zoom&&t.preventSet("zoom",r.zoom)}({layoutService:x,viewState:i,viewStateOptions:null==d?void 0:d.viewState});const N=function({app:e,model:t,translator:n,picasso:r,localeInfo:i,theme:o,continuousDataModel:a,layoutService:s,legendLayoutService:l,reducedDataModel:u}){const{isContinuous:c,isStacked:d}=s.meta,f={main:void 0,mini:{getScales:()=>({}),getColor:()=>e=>e,getDatumProps:()=>({}),getAuxiliarySettings:()=>{}}};return{initialize:()=>{const h=[],{isReduced:p}=u.model().mode,m=c||p||d,g=!c&&(p||d)&&l?l.getHyperCube():void 0,y=g?"legendCube":void 0;return f.main=SC({app:e,model:t,translator:n,picasso:r,layoutService:s,config:{localeInfo:i,auto:d6,key:i6.SCALE.MAIN.COLOR},createConfig:()=>({hc:m?g||s.getHyperCube():u.model().cube,source:m?y:"miniCube",theme:o})}),h.push(f.main.initialize()),c&&(f.mini=SC({app:e,model:t,translator:n,picasso:r,layoutService:s,config:{localeInfo:i,auto:d6,key:i6.SCALE.REDUCED.COLOR},createConfig:()=>({layout:a.getInitialLayout(),hc:a.getInitialCube(),source:"miniCube",theme:o})}),h.push(f.mini.initialize())),Promise.all(h)},getMain:()=>f.main,getMini:()=>f.mini}}({picasso:t,model:s,app:l,translator:c,localeInfo:f,theme:e,continuousDataModel:D,layoutService:x,legendLayoutService:w,reducedDataModel:T}),O=I4({layoutService:x,viewState:i,colorModel:{settings:()=>N.getMain().getSettings(),resolveUIColor:e=>N.getMain().getPaletteColor(e)},chart:n,env:r,keys:{colorScale:i6.SCALE.MAIN.COLOR},isEnabled:()=>!x.meta.isGroupedByDimension&&(!x.meta.isStackedByDimension||m.isEnabled("TRENDLINES_STACKED_DIM"))&&!x.meta.isDimensionless});S3.attrExpr.updateProperties(s,a);const A=function({layout:e,app:t,picasso:n,model:r,chart:i,translator:o,localeInfo:a,embed:s}){return{layout:e,app:t,picasso:n,model:r,chart:i,translator:o,localeInfo:a,useCustomTooltip:e.tooltip&&!e.tooltip.auto,utils:p3,miniChartToken:{},embed:s}}({layout:a,app:l,model:s,picasso:t,chart:n,translator:c,localeInfo:f,embed:y,extractDimsAndNode:a6.extractDimsAndNode});let _;x.meta.isDiscrete&&(_=m4({chart:n,actions:p,componentKey:i6.COMPONENT.BAR,enigmaModel:s,layoutService:x,dockService:k,trendLineModel:O,itemWidths:r6,viewState:i,rtl:"rtl"===v,options:{axisKey:i6.COMPONENT.BAR_AXIS,renderer:t.renderer("svg")()}}));const L=DD({layoutService:x,discreteModel:_}),I=function(e){return{layout:e.getLayout(),keys:{SCALE:{MAIN:{MINOR:i6.SCALE.MAIN.MINOR,MAJOR:i6.SCALE.MAIN.MAJOR}},COMPONENT:{BAR:i6.COMPONENT.BAR,BAR_AXIS:i6.COMPONENT.BAR_AXIS,Y_AXIS:"y-axis",MEASURE_TITLE:"measure-title",DIMENSION_TITLE:"dimension-title"},COLLECTION:{MAIN:i6.COLLECTION.MAIN}}}}(x),R=function(e){var t=e.picassoInstance,n=e.plugins,r=e.pluginArgs,i=void 0===r?{}:r,o={initialized:!1,definitions:[]};return{initialize:function(){return wM(vM().mark((function e(){var r,a,s,l;return vM().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!o.initialized){e.next=2;break}return e.abrupt("return");case 2:return a=Promise.all(n.filter((function(e){return"custom-component"===e.info.type})).map(function(){var e=wM(vM().mark((function e(n){var r;return vM().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.info.componentName){e.next=2;break}throw new Error("plugin-service: Custom component is missing componentName");case 2:return e.next=4,n.fn(yM({},i));case 4:if("object"===bM(r=e.sent)){e.next=7;break}throw new Error("plugin-service: Custom component needs to be an object");case 7:t.component(n.info.componentName,r);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())),s=Promise.all(n.filter((function(e){return"component-definition"===e.info.type})).map((function(e){return e.fn(yM({},i))}))),e.next=6,Promise.all([a,s]);case 6:l=e.sent,o.initialized=!0,(r=o.definitions).push.apply(r,CM(l[1]));case 9:case"end":return e.stop()}}),e)})))()},extendComponents:function(e){return o.initialized?(o.definitions.filter(Boolean).forEach((function(t){var n=kM(e.filter((function(e){return e.key&&e.key===t.key})),1)[0];if(n){var r=UM(!0,{},n.brush);UM(!0,n,t),t.brush&&(n.brush=function(e,t){return"object"===bM(e)&&Object.keys(e).length?(Array.isArray(t.consume)&&(e.consume=XC({originalArray:e.consume,newArray:t.consume,matchKey:"context"})),Array.isArray(t.trigger)&&(e.trigger=XC({originalArray:e.trigger,newArray:t.trigger,matchKey:"on"})),e):t}(r,t.brush))}else e.push(t)})),e):e}}}({picassoInstance:t,plugins:u||[],pluginArgs:I});b.setContext({discrete:_,layoutService:x}),h({discrete:_,continuous:EG,legendLayoutService:w,layoutService:x,viewModel:M,dockService:k,themeService:q,styleService:E,continuousDataModel:D,reducedDataModel:T,colorService:N,trendLineModel:O,refLineModel:L,pluginService:R,customTooltipModel:A,selectionService:g,logicalSize:S,disclaimerService:C})}),[g,d,r,a]),f}function p6(e){return e.qIsOtherCell||-3===e.qElemNumber||-3===e.qElemNo}function m6(e){return e.some(p6)}function g6(e,t){let n=NaN,r=NaN;return e.forEach((e=>{m6(e)||e.slice(-t).forEach((e=>{"NaN"!==e.qNum&&(n=Number.isNaN(n)?e.qNum:Math.min(e.qNum,n),r=Number.isNaN(r)?e.qNum:Math.max(e.qNum,r))}))})),{min:n,max:r}}function y6(e){let t=NaN,n=NaN;if(!e.getLayoutValue("measureAxis.autoMinMax",!1)){const r=e.getLayoutValue("measureAxis.minMax");"min"!==r&&"minMax"!==r||(t=+e.getLayoutValue("measureAxis.min")),"max"!==r&&"minMax"!==r||(n=+e.getLayoutValue("measureAxis.max"))}return{min:t,max:n,isExplicitMin:!Number.isNaN(t),isExplicitMax:!Number.isNaN(n)}}function v6(e,t){let n=NaN,r=NaN;return e.forEach((e=>{if(!m6(e)){let i=0,o=0;e.slice(-t).forEach((e=>{"NaN"!==e.qNum&&(e.qNum>=0?o+=e.qNum:i+=e.qNum)})),n=Number.isNaN(n)?i:Math.min(i,n),r=Number.isNaN(r)?o:Math.max(o,r)}})),{min:n,max:r}}function b6(e,t){const n={};e.forEach((e=>{if(!m6(e)){const r=e[0].qElemNumber;n[r]=n[r]?n[r]:{min:0,max:0,cId:r},e.slice(t).forEach((e=>{"NaN"!==e.qNum&&(e.qNum>=0?n[r].max+=e.qNum:n[r].min+=e.qNum)}))}}));let r=NaN,i=NaN;return Object.keys(n).forEach((e=>{r=Number.isNaN(r)?n[e].min:Math.min(n[e].min,r),i=Number.isNaN(i)?n[e].max:Math.max(n[e].max,i)})),{min:r,max:i}}function x6(e){return"number"==typeof e&&!Number.isNaN(e)}function w6(e){const t=e.getHyperCubeValue("qMeasureInfo");return{min:Math.min(...t.filter((e=>x6(e.qMin))).map((e=>e.qMin))),max:Math.max(...t.filter((e=>x6(e.qMax))).map((e=>e.qMax)))}}function S6(e,t,n){for(let n=e.length-1;n>-1;n--)if(t(e[n]))return e[n];return n}function M6(e){return!Number.isNaN(+e.qNum)}function k6(e){return e.qNum}function C6(e){return!Number.isNaN(+e.qNum)}function q6(e){return e.qNum}function E6(e,t){return e.push(...t),e}const{getValueWithOffset:D6,isNumber:T6}=NS,N6=5,O6=.2;function A6(e,t){return Math.abs(e/t)<N6||0===t}function _6({layoutService:e,trendLineModel:t},n={}){const{stackedByMeasureExtractor:r=v6,stackedByDimensionExtractor:i=b6,straightExtractor:o=g6,measureInfoExtractor:a=w6,explicitExtractor:s=y6}=n,{meta:l}=e;return{extract({qDataPages:e,qStackedDataPages:n,others:r,count:i}){let o,a;if(Array.isArray(n)?({min:o,max:a}=this.extractFromStacked(n)):({min:o,max:a}=this.extractFromStraight(e,i)),t.query.hasTrendLines()){const{min:e,max:n}=t.query.getMinMax();o=Number.isFinite(e)?Math.min(o,e):o,a=Number.isFinite(n)?Math.max(a,n):a}const{min:s,max:l}=this.extractOthers(r),u=this.extractExplicit(),c=[0,o,a].filter((e=>T6(e)));let d=Math.min(...c),f=Math.max(...c);d=A6(s,d)?Math.min(d,s):d,f=A6(l,f)?Math.max(f,l):f;const h=[u.explicitMin,u.explicitMax,d,f].filter((e=>T6(e)));return o=Number.isNaN(u.explicitMin)?Math.min(...h):u.explicitMin,a=Number.isNaN(u.explicitMax)?Math.max(...h):u.explicitMax,o===a&&(Number.isNaN(u.explicitMin)?o=D6(o,-O6):Number.isNaN(u.explicitMax)&&(a=D6(a,O6))),{min:o,max:a,implicitMin:d,implicitMax:f,otherMin:s,otherMax:l,hasOtherMin:s<o,hasOtherMax:l>a,...u}},extractExplicit(){const{min:t,max:n,isExplicitMin:r,isExplicitMax:i}=s(e);return{hasExplicitMinMax:r||i,hasExplicitMin:r,hasExplicitMax:i,explicitMin:t,explicitMax:n}},extractFromStacked:e=>function(e){return e.length?{min:Math.min(...e[0].qSubNodes.map((e=>e.qMinNeg))),max:Math.max(...e[0].qSubNodes.map((e=>e.qMaxPos)))}:{min:0,max:0}}(e.length?e[0].qData:[]),extractFromStraight(t,n){const s=t.length?t[0].qMatrix:[];return l.isStackedByMeasure?r(s,n):l.isStackedByDimension?i(s,n):e.getHyperCubeValue("qHasOtherValues")?o(s,n):a(e)},extractOthers:e=>l.isStackedByDimension?function(e){const t=S6(zC(e,"0.qData.0.qSubNodes",[]),p6,{qMaxPos:0,qMinNeg:0});return{min:t.qMinNeg,max:t.qMaxPos}}(e):l.isGroupedByDimension?function(e){const t=zC(e,"0.qMatrix",[]).filter(m6).reduce(E6,[]).filter(C6).map(q6);return{min:Math.min(0,...t),max:Math.max(0,...t)}}(e):function(e){const t=S6(zC(e,"0.qMatrix",[]),m6,[]).filter(M6).map(k6);return{min:Math.min(0,...t),max:Math.max(0,...t)}}(e)}}function L6(e){const t=function({reducedDataModel:e,layoutService:t,continuousDataModel:n}){const{meta:r,getHyperCubeValue:i}=t,o=e=>!e.length&&r.mode.K,a=e=>{const t=i("qStackedDataPages",[]);return{qStackedDataPages:t,others:e?t:[]}};return{resolve(){const t=i("qMeasureInfo").length,s=i("qDimensionInfo").length,l=i("qHasOtherValues");if(!r.isStacked&&!l)return Promise.resolve({qDataPages:[{}],count:t});if(r.isContinuous){const e=r.isStackedByDimension?s:t;return n.fetchMinMaxData().then((t=>({qDataPages:t,count:e})))}const u=r.isStackedByDimension?1:t;return e.fetchMinMaxData().then((e=>{if(o(e))return a(l);let t=[];return l&&(t=r.mode.K?i("qStackedDataPages",[]):i("qDataPages",[])),{qDataPages:e,count:u,others:t}}))}}}(e),n=_6(e);return t.resolve().then((e=>n.extract(e)))}const I6=({key:e,components:t})=>({key:e,type:"brush-lasso",layout:{displayOrder:99},settings:{brush:{components:t},lasso:{fill:"rgba(0, 0, 0, 0)",stroke:"black",strokeWidth:2,opacity:.7,strokeDasharray:[]},snapIndicator:{threshold:75,strokeDasharray:"5, 5",stroke:"black",strokeWidth:2,opacity:.7},startPoint:{r:10,stroke:"rgba(77, 192, 78, 1)",strokeWidth:0,opacity:1}}}),R6="lasso",P6=({key:e,componentTargetKey:t,requireFailure:n,recognizeWith:r},i)=>({key:`event:${e}`,type:"Pan",requireFailure:n,recognizeWith:r,options:{event:R6,enable(e,n){if(this.started===R6||!n)return!0;if(!i.actions.select.enabled()||!i.actions.lasso.enabled()||!i.actions.lasso.active())return!1;return this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).filter((e=>e.key===t)).length>0}},events:{lassostart(t){t.preventDefault(),this.started!==R6&&(i.actions.select.emit("start",R6),this.chart.component(e).emit("lassoStart",t),this.started=R6)},lassomove(t){t.preventDefault(),this.chart.component(e).emit("lassoMove",t),"function"==typeof i.updateOnMove&&i.updateOnMove(this.chart)},lassoend(t){t.preventDefault(),this.started=!1,this.chart.component(e).emit("lassoEnd",t),i.actions.select.emit("end",R6),"function"==typeof i.updateOnEnd&&i.updateOnEnd()}}});const z6=({targets:e,requireFailure:t,recognizeWith:n,components:r,eventName:i="tap"},o)=>{let a;const s=o.customTooltipModel?o.customTooltipModel.utils:void 0,l=s?o.debouncer(s.displayTooltip,s.DEBOUNCE_THRESHOLD):void 0;return{key:"event:tap",type:"Tap",requireFailure:t,recognizeWith:n,options:{event:i,interval:10,pointers:1,enable(t,n){return!n||!(!o.actions.select.enabled()&&!o.actions.tooltip.enabled())&&(a=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).filter((t=>-1!==e.indexOf(t.key))),a.length>0)}},events:{[i](t){t.preventDefault();const n=function(e,t){const n=t.element.getBoundingClientRect();let r,i;return e.center?(({x:r}=e.center),({y:i}=e.center)):(r=e.clientX,i=e.clientY),{x:r-n.left,y:i-n.top}}(t,this.chart),u=o.hitRadius?o.hitRadius(a):0,c=u>0?{cx:n.x,cy:n.y,r:u}:n,d=o.shapesAt?o.shapesAt(c):this.chart.shapesAt(c,{components:e.map((e=>({key:e,propagation:"stop"}))),propagation:"stop"}),f=this.chart.component("tooltip"),h="mouse"!==t.pointerType&&f&&f.show;if(!o.isLocked(a)&&!o.tooltipOnly&&o.actions.select.enabled()){const e=this.chart.componentsFromPoint({x:t.center.x,y:t.center.y}),n=e.some((e=>"legend-cat"===e.type));if(!d.length&&n||(this.chart.brushSelectionIncludeMax=!1,o.actions.select.brushSelectionIncludeMax=!1,o.actions.select.emit("start",i,e)),d.length&&r){this.chart.brushSelectionIncludeMax=!1,o.actions.select.brushSelectionIncludeMax=!1;const e="function"==typeof r?r(t,d):r;this.chart.brushFromShapes(d,{components:e}),o.actions.select.emit("end",i),(({largeDataService:e,chart:t})=>{((null==e?void 0:e.meta)||{}).isLargeNumPoints&&t.brush("lazySelection")._state(t.brush("selection")._state())})({largeDataService:o.largeDataService,chart:this.chart})}}if(f&&o.actions.tooltip.enabled())if(d.length){const{customTooltipModel:e}=o;if(null!=e&&e.useCustomTooltip&&s.checkIfPromisesExist({customTooltipModel:e})){const n=s.getNodes(t,this.chart);l(t,f,{nodes:n,opts:o,customTooltipModel:e})}else f.emit("show",t,{nodes:d})}else h&&f.emit("hide")}}}};const F6=({key:e,requireFailure:t,recognizeWith:n,eventName:r="tap"},i)=>({prio:1,key:`event:${e}-tap`,type:"Tap",requireFailure:t,recognizeWith:n,options:{event:`${r}-${e}-tap`,interval:10,pointers:1,enable:(t,n)=>!!n&&(!!i.actions.select.enabled()&&(!(!n.target||"INPUT"!==n.target.nodeName)||!(!n.target||!n.target.hasAttribute("data-other-value"))&&(n.target.getAttribute("data-key")||"").split("-bubble")[0]===e))},events:{[`${r}-${e}-tap`](t){(t.target.getAttribute("data-key")||"").split("-bubble")[0]&&(t.preventDefault(),this.chart.component(e).emit("bubbleStart",t))}}});const j6=({eventName:e,key:t,fillTargets:n=[],requireFailure:r,recognizeWith:i},o,a)=>({key:`event:${t}`,type:"Pan",requireFailure:r,recognizeWith:i,options:{event:e,enable(r,i){if(this.started===e||!i)return!0;if(!o.actions.select.enabled())return!1;const a=this.chart.componentsFromPoint({x:i.center.x,y:i.center.y}).filter((e=>-1!==n.indexOf(e.key))),s=0===a.length&&function(e,t){const{target:n}=e.srcEvent;return!(!n||0!==(n.getAttribute("data-key")||"").indexOf(`${t}-`))}(i,t);return s?(this.started=e,!0):a.length>0}},events:{[`${e}start`](n){void 0===this.chart.brushSelectionIncludeMax&&(this.chart.brushSelectionIncludeMax=!0,o.actions.select.brushSelectionIncludeMax=!0),n.preventDefault(),o.actions.select.emit("start",e),this.chart.component(t).emit(`${a}Start`,n),this.started=e},[`${e}move`](e){e.preventDefault(),this.chart.component(t).emit(`${a}Move`,e),"function"==typeof o.updateOnMove&&o.updateOnMove(this.chart)},[`${e}end`](n){void 0===this.chart.brushSelectionIncludeMax&&(this.chart.brushSelectionIncludeMax=!0,o.actions.select.brushSelectionIncludeMax=!0),n.preventDefault(),this.chart.component(t).emit(`${a}End`,n),o.actions.select.emit("end",e),this.started=!1,"function"==typeof o.updateOnEnd&&o.updateOnEnd()}}});function B6(e,t){const n=function(e){const{key:t,targets:n,fillTargets:r,targetSelector:i,targetFillSelector:o,dock:a,scale:s,bubblesPlacement:l="inside",observeBrush:u=!1,multiple:c=!1,toLabel:d,onEdited:f}=e;return{key:t,type:"brush-range",layout:{dock:n.map((e=>`@${e}`)).join(",")},on:f?{bubbleEnd(){f()}}:{},settings:{brush:u?{context:"selection",observe:!0}:"selection",scale:s,multiple:c,direction:"left"===a||"right"===a?"vertical":"horizontal",bubbles:{align:"left"===a||"top"===a?"end":"start",placement:l,label:d},target:{components:r,selector:i,fillSelector:o,fill:"rgba(82,204,82,0.2)"}}}}(e),r=j6(e,t,"range");return{interactions:[e.onEdited?F6(e,t):null,r].filter(Boolean),components:[n]}}const H6={refLines:{minimumLayoutMode:"SPARK"},measureAxisTitle:{minimumLayoutMode:"XSMALL"},dimensionAxisTitle:{minimumLayoutMode:"XSMALL"},measureAxis:{minimumLayoutMode:"XSMALL"},dimensionAxis:{minimumLayoutMode:"XSMALL"},gridLines:{minimumLayoutMode:"XSMALL"},refLinesLabels:{minimumLayoutMode:"SMALL"},horizontalDimensionAxis:{minimumLayoutMode:{width:"XSMALL",height:"SMALL"}},verticalDimensionAxis:{minimumLayoutMode:{width:"SMALL",height:"XSMALL"}},horizontalDimensionAxisTitle:{minimumLayoutMode:{width:"XSMALL",height:"MEDIUM"}},verticalDimensionAxisTitle:{minimumLayoutMode:{width:"MEDIUM",height:"XSMALL"}}},V6="inner-time-axis",$6="outer-time-axis";const U6={getMajorAxisMaxGlyphCount(e,t){let n=0;if(e.qDimensionInfo.length){const r=t?0:e.qDimensionInfo.length-1;n=f6.getMaxGlyphCount(e,r)}else e.qMeasureInfo.forEach((e=>{n=Math.max(n,e.qFallbackTitle.length)}));return n},getAxisData(e,t){let n;return n=e.qDimensionInfo.length?zC(e,t?"qStackedDataPages.0.qData.0.qSubNodes":"qDataPages.0.qMatrix"):e.qMeasureInfo,n},getBarAxisMaxGlyphCount(e,t){if(!e)return;const n=U6.getAxisData(e,t),r=!e.qDimensionInfo.length,i=r||t?void 0:e.qDimensionInfo.length-1,o=U6.getMajorAxisMaxGlyphCount(e,t),a=r?"qFallbackTitle":"qText";return Vg.getAdjustedMaxGlyphCount(o,n,i,a)},getGroupAxisMaxGlyphCount(e){if(!e)return;const t=U6.getAxisData(e),n=f6.getMaxGlyphCount(e,0);return Vg.getAdjustedMaxGlyphCount(n,t,0)}};var W6={LOWERGLYPHCOUNT:3,UPPERGLYPHCOUNT:13};function Y6(e,t,n,r){const{meta:i}=t.layoutService,o=[],a=!("none"===e.measureAxis.show),s=!("title"===e.measureAxis.show);i.isContinuous?o.push(...function(e,t,n,r){const{meta:i}=t.layoutService,{axis:o,grid:a}=t.themeService.getStyles(),s=t.styleService.axis.label.getStyle(),{auto:l,spacing:u}=t.layoutService.getLayoutValue("gridLine",{}),c=[],d="none"!==e.dimensionAxis.show&&"title"!==e.dimensionAxis.show,f=H6[`${t.dockService.meta.major.orientation}DimensionAxis`].minimumLayoutMode,h={type:"grid-line",x:{},layout:{minimumLayoutMode:H6.gridLines.minimumLayoutMode},ticks:{stroke:a.line.major.color},minorTicks:{show:!1,stroke:a.line.minor.color},animations:{enabled:t.viewModel.animations.enabled,trackBy:yD.lines.trackBy,compensateForLayoutChanges:yD.lines.compensateForLayoutChanges}},p=!!e.showMiniChartForContinuousAxis&&{type:"range",key:"range-brush-highlighter",layout:{dock:"@scrollbar"},settings:{scale:t.reducedDataModel.scales.major,brush:"selection",fill:"#6CB33F",opacity:.2}};if(i.isTime){if(d){const e=n?"end":"start",r=n?1:0,i="bottom"===t.dockService.meta.major.dock?0:1,a={label:{fill:s.fill,fontSize:s.fontSize,fontFamily:s.fontFamily},majorGuideLine:{stroke:o.line.major.color},minorGuideLine:{stroke:o.line.minor.color}},d={type:"time-axis",renderer:"svg",layout:{dock:t.dockService.meta.major.dock,minimumLayoutMode:f},preferredSize:()=>({size:2*parseFloat(s.fontSize),edgeBleed:{left:1,right:1}}),settings:{anchor:e,label:{align:i,justify:r},guideLine:{major:{justify:r},minor:{align:i}}},style:a,animations:{enabled:t.viewModel.animations.enabled,trackBy:yD.axes.trackBy({isTime:!0}),compensateForLayoutChanges:yD.axes.compensateForLayoutChanges({isTime:!0})}};c.push(Cg(!0,{},d,{key:V6,scale:i6.SCALE.MAIN.MAJOR_INNER,settings:{guideLine:{minor:{show:!0}},line:{show:!l&&0===u}},style:Cg(!0,{},a,{line:{stroke:o.line.major.color},majorGuideLine:{stroke:o.line.minor.color},minorGuideLine:{stroke:o.line.major.color}})})),c.push(Cg(!0,{},d,{key:$6,scale:i6.SCALE.MAIN.MAJOR,settings:{guideLine:{minor:{show:!1}},line:{show:!1}}})),c.push({type:"axis-overlay",key:"outer-axis-overlay",scale:i6.SCALE.MAIN.MAJOR,layout:{dock:`@${$6}`,minimumLayoutMode:f}}),c.push({type:"axis-overlay",key:"inner-axis-overlay",scale:i6.SCALE.MAIN.MAJOR_INNER,layout:{dock:`@${V6}`,minimumLayoutMode:f}}),c.push(p)}return c.push(Cg(!0,{},h,{key:"inner-time-grid",x:{scale:i6.SCALE.MAIN.MAJOR_INNER},ticks:{stroke:a.line.minor.color}})),c.push(Cg(!0,{},h,{key:"outer-time-grid",x:{scale:i6.SCALE.MAIN.MAJOR}})),c}if(i.isContinuous){const e="continuous-axis";d&&(c.push({type:"axis",key:e,renderer:AD(t.flags),scale:i6.SCALE.MAIN.MAJOR,layout:{dock:t.dockService.meta.major.dock,minimumLayoutMode:f},settings:{labels:{align:0,offset:4,fill:s.fill,fontSize:s.fontSize,fontFamily:s.fontFamily},ticks:{show:!0,stroke:o.line.major.color},line:{show:!r},minorTicks:{show:!1}},animations:{enabled:t.viewModel.animations.enabled,trackBy:yD.axes.trackBy({isContinuous:!0}),compensateForLayoutChanges:yD.axes.compensateForLayoutChanges({isContinuous:!0})}}),c.push({type:"axis-overlay",key:"inner-axis-overlay",scale:i6.SCALE.MAIN.MAJOR,layout:{dock:`@${e}`,minimumLayoutMode:f}}),c.push(p)),c.push(Cg(!0,{},h,{key:"continuous-grid",x:{scale:i6.SCALE.MAIN.MAJOR},minorTicks:{show:!0}}))}return c}(e,t,n,r)):o.push(...function(e,t,n,r){if("none"===e.dimensionAxis.show)return[];const{meta:i}=t.layoutService,o=t.themeService.getStyles(),a=[],s=function(e,t){return!t.layoutService.meta.isGroupedByDimension||!e.legend.show||t.colorService.getMain().getSettings().field!==t.viewModel.fields.major}(e,t),l=function(e,t){return!(!t.layoutService.meta.isGroupedByDimension||e.legend.show&&t.colorService.getMain().getSettings().field===t.viewModel.fields.majorGroup)}(e,t),u="horizontal"===t.dockService.meta.major.orientation,c=u?e.dimensionAxis.label:"auto",d="horizontal"===c?void 0:t.dockService.meta.minor.size/4,f=t.styleService.axis.label.getStyle(),h={type:"axis",renderer:AD(t.flags),layout:{dock:t.dockService.meta.major.dock,minimumLayoutMode:H6[`${t.dockService.meta.major.orientation}DimensionAxis`].minimumLayoutMode},settings:{labels:{show:!("title"===e.dimensionAxis.show),mode:c,tiltAngle:n?-40:40,maxEdgeBleed:50,maxLengthPx:d,...f},line:{show:!r,stroke:o.axis.line.major.color}},brush:{consume:[{context:"selection",data:["selectionDimension","axisSelectionDimension"],style:{inactive:{opacity:.3}}}]},animations:{enabled:t.viewModel.animations.enabled,trackBy:yD.axes.trackBy({isMajor:!0}),compensateForLayoutChanges:yD.axes.compensateForLayoutChanges({isHorizontal:u})}};l&&a.push(Cg(!0,{},h,{key:"group-axis",scale:i6.SCALE.MAIN.MAJOR_INNER,settings:{paddingEnd:s?10:4,labels:{mode:s?"horizontal":h.settings.labels.mode,maxGlyphCount:U6.getGroupAxisMaxGlyphCount(e.qHyperCube),maxLengthPx:d},line:{show:(u||!s)&&h.settings.line.show}}}));const p=U6.getBarAxisMaxGlyphCount(e.qHyperCube,i.isStackedByDimension);return s&&a.push(Cg(!0,{},h,{key:i6.COMPONENT.BAR_AXIS,scale:i6.SCALE.MAIN.MAJOR,settings:{paddingEnd:4,labels:{maxGlyphCount:p,maxLengthPx:d,tiltThreshold:p>W6.LOWERGLYPHCOUNT&&p<W6.UPPERGLYPHCOUNT?1:void 0},line:{show:!(u&&l)&&h.settings.line.show}}})),u||2!==a.length?a:[a[1],a[0]]}(e,t,n,r));const l=t.themeService.getStyles(),u=t.styleService.axis.label.getStyle();return a&&o.push({type:"axis",key:"y-axis",renderer:AD(t.flags),formatter:i6.FORMATTER.MINOR,layout:{dock:t.dockService.meta.minor.dock,minimumLayoutMode:H6.measureAxis.minimumLayoutMode},scale:i6.SCALE.MAIN.MINOR,settings:{labels:{show:s,...u},line:{stroke:l.axis.line.major.color},ticks:{stroke:l.axis.line.major.color},minorTicks:{stroke:l.axis.line.minor.color}},animations:{enabled:t.viewModel.animations.enabled,trackBy:yD.axes.trackBy({isMeasure:!0}),compensateForLayoutChanges:yD.axes.compensateForLayoutChanges({isMeasure:!0,dock:t.dockService.meta.minor.dock})}}),o}var K6={BAR:{WIDTH:.7,STROKE:{COLOR:"#205891",WIDTH:{NONE:0,SMALL:1,MEDIUM:2,LARGE:4}}}};const G6=.7,X6=.9;function J6({layoutService:e,discrete:t,componentKey:n}){var r;const{isContinuous:i,isGrouped:o}=e.meta;if(i)return 1;const a=(e.getLayoutValue("components",[])||[]).filter((e=>e.key===n))[0];if(null!=a&&null!==(r=a.style)&&void 0!==r&&r.width){const{style:e}=a;return e.strokeWidth&&"none"!==e.strokeWidth?function(){const n=K6.BAR.STROKE.WIDTH[e.strokeWidth.toUpperCase()]/t.query.getItemSize(),r=e.width+n;return r>1?e.width-(r-1):e.width}:e.width}return o?X6:G6}const Q6={FULL:16,MEDIUM:14,SMALL:12,XSMALL:8,SPARK:4};function Z6(e,t,n={}){return({data:r})=>{const i=e.chart.component(t).rect;if(!r.items.length||!i)return 2;const{min:o,max:a}=e.viewState.get("zoom");if(n[[o,a]])return n[[o,a]];const s=Q6[Dg.getLayoutMode(i.width,Number.MAX_VALUE)];n={};const l=Math.abs(a-o),u=Math.abs(e.viewCache.get("continuousMax")-e.viewCache.get("continuousMin"));if(0===u)return s;const c=function(e,t,n){return e*(1-n)+t*n}(2,s,1-Math.min(l/u/.2,1));return n[[o,a]]=Math.max(2,Math.min(s,c)),n[[o,a]]}}function e7(e,t){const{hasExplicitMax:n,explicitMax:r}=t;return!!n&&e>r&&r<=0}function t7(e,t){const{hasExplicitMin:n,explicitMin:r}=t;return!!n&&e<r&&r>=0}function n7(e,t){const{hasExplicitMax:n,explicitMax:r}=t;return!!n&&e>r&&r>0}function r7(e,t){const{hasExplicitMin:n,explicitMin:r}=t;return!!n&&e<r&&r<0}const i7={MAX:"max",MIN:"min"},o7={min:"Min",max:"Max"};function a7(e,t,n){return void 0===n?e7(e,t)||t7(e,t):n===i7.MAX?e7(e,t):t7(e,t)}function s7({minorMinMax:e,type:t}){return!(function({minorMinMax:e,type:t}){return!e[`hasExplicit${o7[t]}`]}({minorMinMax:e,type:t})||function({minorMinMax:e,type:t}){const n=t===i7.MAX?e.implicitMax:e.implicitMin;return!a7(Number(n.toFixed(13)),e,t)}({minorMinMax:e,type:t}))}function l7(e,{barComponent:t,type:n,isStacked:r}){const{viewCache:i,dockService:o,themeService:a}=e,s=i.get("minorMinMax");if(!s.hasExplicitMinMax)return!1;const l=n===i7.MAX?s.implicitMax:s.implicitMin;if(!a7(Number(l.toFixed(13)),s,n))return!1;const{orientation:u}=t.settings,c=n===i7.MAX?o.meta.minor.end:o.meta.minor.start;let d="end";r&&(d=n===i7.MAX?"sumOfPositives":"sumOfNegatives");const f=a.getStyles();return{type:"box-out-of-bounds",key:`bar-oob-${n}`,layout:{dock:c},data:t.data,brush:t.brush,settings:{orientation:u,major:t.settings.major,minor:t.settings.minor,dockValue:Bg.getDockValue(c),oob:Cg({},t.settings.box,{fill:f.outOfRange.color,alignment:1,opacity:1,show:function(e){var t;return!0!==(null===(t=e.datum.null)||void 0===t?void 0:t.value)&&((!r||0!==e.datum[d].value)&&a7(e.datum[d].value,s,n))}})},animations:{enabled:e.viewModel.animations.enabled,compensateForLayoutChanges:yD.barOobs.compensateForLayoutChanges}}}function u7(e){return Math.min(Math.max(0,e),1)}const c7=(e,{chart:t,type:n,componentKey:r,collectionKey:i})=>{const{layoutService:o,dockService:a,viewCache:s}=e,{isStacked:l}=o.meta,u=s.get("minorMinMax"),{meta:c}=e.layoutService;if(!s7({minorMinMax:u,type:n}))return!1;let d;c.isGroupedByDimension?d=({scale:e,datum:t})=>e([t.group.value,t.value])+e.bandwidth([t.group.value,t.value])/2:c.isGroupedByMeasure&&(d=({scale:e,datum:t})=>e([t.value,t.measureIndex.value])+e.bandwidth()/2);const f={type:"box",key:`${i6.COMPONENT.GHOST_BAR_OOB}-${n}`,data:{collection:i},settings:{orientation:a.meta.minor.orientation,major:{scale:i6.SCALE.MAIN.MAJOR,fn:d},minor:{scale:i6.SCALE.MAIN.MINOR,start(e){var n;return u7(t.scale(i6.SCALE.MAIN.MINOR)((null==e||null===(n=e.datum)||void 0===n||null===(n=n.start)||void 0===n?void 0:n.value)||0))},end(e){const r=t.scale(i6.SCALE.MAIN.MINOR);let i="end";l&&(i="max"===n?"sumOfPositives":"sumOfNegatives");const o=e.datum[i]?e.datum[i].value:r[n]();return u7(r(o))}},box:{width:J6({layoutService:e.layoutService,discrete:e.discrete,componentKey:r}),minWidthPx:2,fill:"none",stroke:"transparent",show:e=>{const r=t.scale(i6.SCALE.MAIN.MINOR);let i="end";l&&(i="max"===n?"sumOfPositives":"sumOfNegatives");const o=e.datum[i]?e.datum[i].value:r.max();return"max"===n?o>r.max():o<r.min()}},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}}};return f};function d7(e,t){const{style:n,styleService:r,dockService:i}=t,o=r.label.getStyle(),a=o.useContrastColor&&!e.onBackground?function(e){return function(t){return Xy.isDark(t.node.attrs.fill)?e.lightColor:e.darkColor}}(n):o.fill,s="horizontal"===i.meta.major.orientation,l=e.padding||{left:s?0:4,right:s?0:4,top:s?4:0,bottom:s?4:0};return{position:e.position,justify:e.justify,fill:a,overflow:e.overflow,background:e.background,padding:l}}function f7(e){return{placements:e.simplifiedPlacements.map((t=>d7(t,e))),label:e.label}}function h7(e,t){if(t){if(function(e,t){return e7(e,t)}(e,t))return-1;if(function(e,t){return t7(e,t)}(e,t))return 1}return function(e,t){if(t&&0===e){const{min:e,max:n}=t;return 0===n&&0===e?1:n<=0?-1:e>=0||n>=-e?1:-1}return e>=0?1:-1}(e,t)}const p7="vertical",m7="horizontal";function g7(e,t,n,r){const i=h7(e,r);let o="up";return t===p7&&i<0?o="down":t===m7&&(o=i>=0&&!n||i<0&&n?"right":"left"),o}function y7(e,t){const{dataPoint:n}=e;if(!n.showLabels)return!1;const{isStacked:r,isContinuous:i}=t.layoutService.meta;return!r||!i&&!!n.showSegmentLabels}function v7(e,t){const{dataPoint:n}=e;if(!n.showLabels)return!1;const{isStacked:r,isContinuous:i}=t.layoutService.meta;return!!r&&(!!i||!1!==n.showTotalLabels)}function b7(e,t,n,r){const i=[];return void 0!==e&&(i[e]={position:"outside",onBackground:!0,justify:0,overflow:r}),void 0!==t&&(i[t]={position:"inside",onBackground:!1,justify:n}),i}function x7({layout:e,component:t,minorScale:n},r,i){if(!y7(e,r))return!1;const{viewModel:o,ds:a,viewCache:s,layoutService:l,dockService:u,themeService:c}=r,{meta:d}=l,f=s.get("minorMinMax"),h=c.getStyles(),p=r.styleService.label.getStyle();let m;!d.isStacked&&(m=d.isStacked?1:0);const g=0===m?1:0,y=d.isStacked?.5:1,v=o.fields.minor[0],b=void 0===v?void 0:a.field(v).formatter();let x,w=-1;x=d.isStacked?d.isStackedByMeasure||!b?function(e){return e.data.segment.label}:function(e){return Math.abs(e.data.segment.value)>w?b(e.data.segment.value):""}:function(e){return e.data.end.label};const S={label:x,simplifiedPlacements:b7(m,g,y,d.isContinuous),style:h.label.value},M=[f7(Cg(r,S))],k={component:t,selector:"rect",strategy:{type:"bar",settings:{direction:e=>g7(e.data.end.value,u.meta.minor.orientation,i,f),labels:M,fontSize:parseInt(p.fontSize,10),fontFamily:p.fontFamily,linkData:yD.labels.linkData}}},C=[k],q={key:"bar-labels",type:"labels",renderer:AD(r.flags),layout:{minimumLayoutMode:"XSMALL"},settings:{sources:C},animations:{enabled:r.viewModel.animations.enabled,trackBy:yD.labels.trackBy,compensateForLayoutChanges:yD.labels.compensateForLayoutChanges}};return d.isStackedByDimension&&b&&(q.beforeRender=()=>{w=function(e,t,n){const r="vertical"===t.dockService.meta.minor.orientation?"height":"width",i=t.chart.component(e),o=i&&i.rect?i.rect[r]:1,a=n?n.min():0;return 9.999*((n?n.max():0)-a)/o}(t,r,n)}),q}const w7={isSameMeasureAndColorRow:(e,t,n)=>t&&e&&t[0].content[0]===e[0].content[0]&&t[0].content[1]===e[0].content[1]&&t[1].content[n?0:1]===e[1].content[0],getTitle(e,t){const n=e.data;let r;return t.isStackedByDimension?r=n.stack?n.stack.label:void 0:t.isGroupedByDimension&&(r=n.group?n.group.label:void 0),void 0!==r?`${n.label}, ${r}`:n.label},getMeasure(e,t,n,r,i){if(n.isStacked&&("bar-oob-max"===t.key||"bar-oob-min"===t.key))return!1;const o=t.data,a=n.isStacked?r.viewModel.fields.minor[n.isStackedByDimension?0:o.measureIndex.value]:void 0,s=n.isStacked?{source:{key:o.source.key,field:a},label:!0===(null===(l=o.null)||void 0===l?void 0:l.value)?"":n.isStackedByDimension&&i?i(o.segment.value):o.segment.label}:o.end;var l;return Jg.getMeasure(e,s)},getMeasures(e,t,n,r,i){const o=e.resources.dataset;return t.map((e=>w7.getMeasure(o,e,n,r,i))).filter(Boolean)},getCustomTooltipAttrExps(e,t,n){const r=e.resources.dataset;return v3({nodes:t,layout:n.layoutService.getLayout(),dataset:r})},extractBarTooltipData(e,t,n,r,i){const o={title:w7.getTitle(t,n),color:Jg.getColor(e,t,r),measures:w7.getMeasures(e,t.childrenNodes?t.childrenNodes:[t],n,r,i)};if(w7.useCustomTooltip(r)){var a,s;const n=w7.getCustomTooltipAttrExps(e,t.childrenNodes?t.childrenNodes:[t],r);o.customMeasures=n.customTooltipAttrExpsArr,o.customTitle=n.customTooltipInfoAttrExpsArr.filter((e=>e.id===t3.CUSTOM.TITLE)),o.customDescription=n.customTooltipInfoAttrExpsArr.filter((e=>e.id===t3.CUSTOM.DESCRIPTION));let i=[];(t.childrenNodes?t.childrenNodes:[t]).forEach((e=>{var t;(null===(t=e.data.customTooltipImages)||void 0===t?void 0:t.length)>0&&!Array.isArray(e.data.customTooltipImages[0])&&(i=e.data.customTooltipImages)})),i.length>0&&(o.customImages=i);const d=r.layoutService.getLayout();var l,u,c;if(null!==(a=d.tooltip)&&void 0!==a&&null!==(a=a.chart)&&void 0!==a&&null!==(a=a.object)&&void 0!==a&&a.refId&&r.app&&r.customTooltipModel.embed&&"function"==typeof(null===(s=r.customTooltipModel.model)||void 0===s?void 0:s.getEffectiveProperties))if(null!==(l=(u=r.app).isInModalSelection)&&void 0!==l&&l.call(u)){if((null==d||null===(c=d.qHyperCube)||void 0===c||null===(c=c.qDimensionInfo)||void 0===c?void 0:c.length)>0){c3.destroyVisualization({customTooltipModel:r.customTooltipModel});const e=r.customTooltipModel.translator.get("properties.tooltip.notselectedmessage");o.customLimitation=e}}else{const t=c3.createContainer({ctx:e,layout:d});o.customChart=t}}return o},getTotalStackTitle:(e,t)=>e>0?t?t.get("Object.ChartTooltip.sumOfPositives"):"Sum of positives":e<0?t?t.get("Object.ChartTooltip.sumOfNegatives"):"Sum of negatives":"",extractStackTotalBarTooltipData(e,t,n){const r=e.data.label,i=[e.data.sumOfPositives.value,e.data.sumOfNegatives.value].filter((e=>0!==e)).map((e=>({label:`${w7.getTotalStackTitle(e,t)}`,value:n?n(e):e})));return{title:r,measures:i}},extractTooltipData(e,t){const n=t.chart.formatter(i6.FORMATTER.MINOR),{meta:r}=t.layoutService,i=e.node.childrenNodes?e.node.childrenNodes:[e.node],o=Math.max(0,i.length-6);i.length=Math.min(i.length,6);const{stackTotalBarNodes:a}=e.node,s=a&&a.length?a.map((e=>w7.extractStackTotalBarTooltipData(e,t.translator,n))):[];return{barTooltipData:i.map((i=>w7.extractBarTooltipData(e,i,r,t,n))),stackTotalBarTooltipData:s,numInvisibleNodesPhase1:o}},extractBarNodeData(e,t,n,r,i,o,a){let s=!i&&Jg.getTitleRow(t,r);const l=Jg.hideColorRow(t,n),u=!o&&!l&&Jg.getColorRow(e,t,r),c=t.measures.map((i=>!a&&Jg.getMeasureRow(i,e,t,r,l&&i.field===n.coloring.field))),d=c.filter((e=>!w7.isSameMeasureAndColorRow(e,u,r)));if(w7.useCustomTooltip(n)){const n=i?[]:t.customMeasures.map((n=>Jg.getMeasureRow(n,e,t,r,!1))),o=!(!t.customTitle[0]||i)&&Jg.getTitleRow(t.customTitle[0],r),a=!(!t.customDescription[0]||i)&&Jg.getDescriptionRow(t.customDescription[0],r);s=!w7.shouldIgnoreTitleRowForCtt(o,a,d,n)&&s;const l=[o,a,s,u,...d,...n];if(t.customChart&&l.push(t.customChart),t.customLimitation&&l.push(p3.getFooterRow(t.customLimitation,r)),t.customImages){const n=t.customImages.map((t=>p3.getImageRow(t,e)));l.push(...n)}return l.filter(Boolean)}return[s,u,...d].filter(Boolean)},extractStackTotalBarNodeData(e,t,n){const r=!!t.measures.length&&Jg.getTitleRow(t,n),i=t.measures.map((r=>Jg.getMeasureRow(r,e,t,n,!1)));return[r,...i].filter(Boolean)},useCustomTooltip:e=>zC(e,"customTooltipModel.useCustomTooltip",!1),shouldIgnoreTitleRow:(e,t)=>e.isDimensionless||t>0&&!e.isGroupedByDimension&&!e.isStackedByDimension,shouldIgnoreTitleRowForCtt:(e,t,n,r)=>!1===n[0]&&0===r.length&&(e.length>0||t.length>0),shouldIgnoreColorRow:(e,t)=>t>0&&(e.isGroupedByMeasure||e.isStackedByMeasure),shouldIgnoreMeasureRow:(e,t,n)=>e&&t.measures.some((e=>e.field===n.coloring.field)),shouldIgnoreDefaultRows:(e,t)=>w7.useCustomTooltip(t)&&zC(e,"tooltip.hideBasic",0),extractBarsData(e,t,n,r){const{meta:i}=t.layoutService,o=t.layoutService.getLayout(),a=r.length;let s,l,u=[];const c=w7.shouldIgnoreDefaultRows(o,t);for(s=0;s<a;s++){l=r[s];const o=w7.shouldIgnoreTitleRow(i,s),d=c||w7.shouldIgnoreColorRow(i,s),f=c||w7.shouldIgnoreMeasureRow(d,l,t);if(u=u.concat(w7.extractBarNodeData(e,l,t,n,o,d,f)),u.length>=6||l.customImages||l.customChart||l.customLimitation)return{barsData:u,numInvisibleNodesPhase2:a-(s+1)}}return{barsData:u,numInvisibleNodesPhase2:0}},extractStackTotalBarsData(e,t,n){let r=[];return n.some((e=>e.measures.length))&&n.forEach((n=>{r=r.concat(w7.extractStackTotalBarNodeData(e,n,t))})),r},extractData(e,t,n){const{barTooltipData:r,numInvisibleNodesPhase1:i,stackTotalBarTooltipData:o}=w7.extractTooltipData(e,t),a=w7.extractStackTotalBarsData(e,n,o);a.length&&a.push(Jg.getSeparatorRow());const{barsData:s,numInvisibleNodesPhase2:l}=w7.extractBarsData(e,t,n,r),u=a.concat(s),c=i+l;return c&&u.push(Jg.getNMoreRow(c,t.translator,n)),u},calculateBoundsFromBars(e){const t=e.filter((e=>{const t=e.bounds;return t.width>0&&t.height>0})),n=t.length?t:e;return TD.combineBounds(n.map((e=>e.bounds)))},calculateBoundsFromScale({opts:e,barKey:t,scale:n,majorScale:r,data:i,groupProp:o}){const a=e.chart.component(t).rect,{orientation:s}=e.dockService.meta.major,l="horizontal"===s?"width":"height",u=e.chart.scale(n).pxScale(a[l]);let c,d,f;if(e.layoutService.meta.isGroupedByMeasure){const t=e.viewModel.fields.minor.length;c=i.value,d=n===r&&void 0!==c?(u([c,0])+u([c,t-1]))/2:0,f=n===r&&void 0!==c?u.bandwidth([c,0]):0}else{const{value:e}=i;c=i[o]?i[o].value:void 0,d=u(n===r&&void 0!==c?[c,e]:e),f=n===r&&void 0!==c?u.bandwidth([c,e]):u.bandwidth(e)}const h=(d+f/2)*a[l],p={width:0,height:0};return"horizontal"===s?(p.x=h,p.y=a.height):(p.y=h,p.x=0),p},calculateTotalBounds({opts:e,labels:t,bars:n,barKey:r,barAxisKey:i,majorScale:o,majorInnerScale:a,groupProp:s}){const l=n.filter((e=>e.children&&e.children.length));let u;return u=l.length?w7.calculateBoundsFromBars(l):w7.calculateBoundsFromScale({opts:e,barKey:r,scale:t[0].key===i?o:a,majorScale:o,data:t[0].data,groupProp:s}),u},filterNodesOnKeys:(e,t)=>e.filter((e=>e.data&&t.indexOf(e.key)>-1)),isBarMatchingLabel:(e,t)=>t.data.value===e.data.value,isBarMatchingLabelOnProp:(e,t,n)=>t.data.value===(e.data[n]?e.data[n].value:e.data.value),findBarsMatchingLabels(e,t,n,r){const i=e.filter((e=>t.some((t=>n(e,t,r)))));return i},findBarsFromGroupLabelsInGroupedByDim(e,t,n){const r=w7.isBarMatchingLabelOnProp;return w7.findBarsMatchingLabels(e,t,r,n)},findBarsFromBarLabelsInGroupedByDim:(e,t,n)=>e.filter((e=>t.some((t=>t.data.group&&t.data.group.value===e.data[n].value&&t.data.value===e.data.value)))),findBarsFromLabelsInSingleDim(e,t){const n=w7.isBarMatchingLabel;return w7.findBarsMatchingLabels(e,t,n)},findBarsFromLabelsInGroupedByDim(e,t,n,r){const i=t.filter((e=>e.key===n)),o=t.filter((e=>e.key!==n)),a=w7.findBarsFromBarLabelsInGroupedByDim(e,i,r),s=w7.findBarsFromGroupLabelsInGroupedByDim(e,o,r);return a.concat(s)},findStackTotalBarsFromLabelsInStackedByDim(e,t){const n=w7.isBarMatchingLabel;return w7.findBarsMatchingLabels(e,t,n)},findStackTotalBarsFromLabelsInStackedByMeasure(e,t){const n=w7.isBarMatchingLabel;return w7.findBarsMatchingLabels(e,t,n)},findBarsFromLabelsInStackedByDim(e,t,n){const r=w7.isBarMatchingLabelOnProp;return w7.findBarsMatchingLabels(e,t,r,n)},findBarsFromLabelsInStackedByMeasure:(e,t)=>w7.findBarsFromLabelsInSingleDim(e,t),findBarsFromLabels({labels:e,opts:t,filterKeys:n,barAxisKey:r,groupProp:i,stackProp:o}){const{meta:a}=t.layoutService,s=w7.filterNodesOnKeys(t.chart.findShapes("container"),n);return a.isStackedByDimension?w7.findBarsFromLabelsInStackedByDim(s,e,o):a.isStackedByMeasure?w7.findBarsFromLabelsInStackedByMeasure(s,e):a.isGroupedByDimension?w7.findBarsFromLabelsInGroupedByDim(s,e,r,i):w7.findBarsFromLabelsInSingleDim(s,e)},findStackTotalBarsFromLabels({labels:e,opts:t,stackTotalBarKey:n}){const{meta:r}=t.layoutService;if(r.isStacked){const i=w7.filterNodesOnKeys(t.chart.findShapes("container"),[n]);return r.isStackedByDimension?w7.findStackTotalBarsFromLabelsInStackedByDim(i,e):w7.findStackTotalBarsFromLabelsInStackedByMeasure(i,e)}return[]},isSingleBarMode:(e,t)=>(e.isSimple||1===t.length)&&t[0].children&&t[0].children.length,filterNodesOnLabels({labels:e,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:i,barOobMaxKey:o,barOobMinKey:a,groupProp:s,stackProp:l,majorScale:u,majorInnerScale:c,filterFn:d}){const{meta:f}=t.layoutService;if(e.length){let h=w7.findBarsFromLabels({labels:e,opts:t,filterKeys:[n],stackTotalBarKey:r,barAxisKey:i,barOobMaxKey:o,barOobMinKey:a,groupProp:s,stackProp:l});if(d&&(h=h.filter(d)),w7.isSingleBarMode(f,h))return[h[0]];if(h.length){let f=w7.findBarsFromLabels({labels:e,opts:t,filterKeys:[n,o,a],stackTotalBarKey:r,barAxisKey:i,barOobMaxKey:o,barOobMinKey:a,groupProp:s,stackProp:l});d&&(f=f.filter(d));const p=w7.calculateTotalBounds({opts:t,labels:e,bars:f,barKey:n,barAxisKey:i,groupProp:s,majorScale:u,majorInnerScale:c}),m=w7.findStackTotalBarsFromLabels({labels:e,opts:t,stackTotalBarKey:r}),g={key:n,bounds:p,childrenNodes:h,data:h.map((e=>e.data)),stackTotalBarNodes:m};return[g]}return[]}return[]},filterNodesForOob:(e,t,n)=>e.key===t&&0===e.children.length||e.key===n,filterNodes({nodes:e,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:i,groupAxisKey:o,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:u,majorScale:c,majorInnerScale:d}){let f=w7.filterNodesOnKeys(e,[i,o]),h=f&&f.length?[f[0]]:[];const p=w7.filterNodesOnLabels({labels:h,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:i,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:u,majorScale:c,majorInnerScale:d});if(p&&p.length)return p;const{meta:m}=t.layoutService;if(m.isStackedByMeasure){f=w7.filterNodesOnKeys(e,[a,s]),h=f&&f.length?[f[0]]:[];const o=e=>w7.filterNodesForOob(e,n,a),p=w7.filterNodesOnLabels({labels:f,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:i,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:u,majorScale:c,majorInnerScale:d,filterFn:o});if(p&&p.length)return p[0].stackTotalBarNodes=void 0,p}if(m.isStackedByDimension){f=w7.filterNodesOnKeys(e,[a,s]),h=f&&f.length?[f[0]]:[];const o=e=>w7.filterNodesForOob(e,n,a),p=w7.filterNodesOnLabels({labels:f,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:i,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:u,majorScale:c,majorInnerScale:d,filterFn:o});if(p&&p.length)return p[0].stackTotalBarNodes=void 0,p}const g=w7.filterNodesOnKeys(e,[n,a,s]);return g.length?[g[0]]:[]}};function S7(e,t={},n){let r=[];const i=Wg({key:i6.COMPONENT.BASE_TOOLTIP,rtl:n});return Cg(!0,i,{scale:i6.SCALE.MAIN.COLOR,settings:{filter:e=>w7.filterNodes({nodes:e,opts:t,barKey:i6.COMPONENT.BAR,stackTotalBarKey:i6.COMPONENT.STACK_TOTAL_BAR,barAxisKey:i6.COMPONENT.BAR_AXIS,groupAxisKey:i6.COMPONENT.GROUP_AXIS,barOobMaxKey:i6.COMPONENT.BAR_OOB_MAX,barOobMinKey:i6.COMPONENT.BAR_OOB_MIN,groupProp:"group",stackProp:"stack",majorScale:"major",majorInnerScale:"majorInner"}),extract:e=>(r=e.node.childrenNodes?e.node.childrenNodes:[e.node],w7.extractData(e,t,n)),placement:"bounds",afterShow:()=>{var e;const{app:i,properties:o,customTooltipModel:a}=t;i&&(null===(e=i.isInModalSelection)||void 0===e||!e.call(i))&&a.useCustomTooltip&&a.embed&&c3.show({app:i,properties:o,selectedNodes:r,customTooltipModel:a,rtl:n})}},style:{content:{fontFamily:t.themeService.getStyles().fontFamily}}})}const M7={extractData:(e,t)=>[Jg.getTitleRow({title:e.node.data.label},t)],filterNodes(e,t){const n=e.filter((e=>e.data&&e.key===t));return n.length?[n[0]]:[]}};function k7(e,t={},n){if("categorical"!==t.colorService.getMain().getSettings().type)return!1;const r=Wg({key:i6.COMPONENT.LEGEND_CAT_TOOLTIP,rtl:n});return Cg(!0,r,{scale:i6.SCALE.MAIN.COLOR,settings:{filter:e=>M7.filterNodes(e,i6.COMPONENT.LEGEND_COLOR_CAT),extract:e=>M7.extractData(e,n),placement:"pointer",direction:n?"rtl":"ltr"},style:{content:{fontFamily:t.themeService.getStyles().fontFamily}}})}function C7(e,{fill:t}){return{[i6.FORMATTER.MINOR]:{data:{fields:e.viewModel.fields.minor}},[i6.FORMATTER.COLOR]:t&&t.data&&t.data.field?{data:{field:t.data.field}}:{}}}const q7=1,E7=3;function D7(e){return e.getLayoutValue("gridLine.auto")}function T7(e){return!D7(e)&&e.getLayoutValue("gridLine.spacing")===q7}function N7(e){return!D7(e)&&e.getLayoutValue("gridLine.spacing")===E7}const O7=e=>({enabled:e.animations.enabled,trackBy:yD.lines.trackBy,compensateForLayoutChanges:yD.lines.compensateForLayoutChanges}),A7=(e,{themeService:t,layoutService:n,dockService:r,viewModel:i})=>{if(!D7(n)&&function(e){return!e.getLayoutValue("gridLine.spacing")}(n))return!1;const{grid:o}=t.getStyles(),a={key:"grid-line",type:"grid-line",layout:{minimumLayoutMode:H6.measureAxis.minimumLayoutMode},preferredSize:()=>({size:0,edgeBleed:{left:1,right:1,top:1,bottom:1}}),ticks:{show:!T7(n)||((e,t)=>t%2==0),stroke:o.line.major.color},minorTicks:{show:N7(n),stroke:o.line.minor.color},animations:O7(i)};return a["horizontal"===r.meta.major.orientation?"y":"x"]=i6.SCALE.MAIN.MINOR,a};function _7(e,t){const n=[A7(0,t)];return n[0]&&n.push((({dockService:e,themeService:t,viewCache:n,viewModel:r})=>{const i=n.get("minorMinMax");if(i.min>0||i.max<0)return!1;const o=t.getStyles(),a={};return a["horizontal"===e.meta.minor.orientation?"x":"y"]=[{value:0,scale:i6.SCALE.MAIN.MINOR,line:{stroke:o.grid.line.highContrast.color}}],{key:"high-contrast-grid-line",type:"ref-line",scale:i6.SCALE.MAIN.MINOR,lines:a,animations:O7(r)}})(t)),n}const L7="areaPan",I7=e=>({type:"Pan",key:"panorama",options:{event:L7,pointers:1,threshold:10,enable(t,n){return this.started===L7||!n||!!e.actions.scroll.enabled()&&e.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>e.key===i6.COMPONENT.BAR))}},events:{areaPanstart(t){t.preventDefault(),this.started=L7;const n=e.viewState.get("zoom");this[L7]={min:n.min,max:n.max,size:e.chart.component(i6.COMPONENT.BAR).rect.computedInner.width,span:n.max-n.min}},areaPanmove(t){t.preventDefault();const{span:n,min:r,max:i,size:o}=this[L7],a=-t.deltaX/o;e.viewState.set("zoom",{min:Math.min(r+a*n,e.viewCache.get("continuousMax")-n),max:Math.max(i+a*n,e.viewCache.get("continuousMin")+n)})},areaPanend(e){e.preventDefault(),this.started=!1},areaPancancel(e){e.preventDefault(),this.started=!1}}});function R7(e,t){if(e.layoutService.meta.isDiscrete)return{};const{viewCache:n,viewState:r,chart:i}=e,{rtl:o}=t,a=EG.event.onZoom({viewCache:n,viewState:r,chart:i},{threshold:100,rtl:o,targetKey:i6.COMPONENT.BAR}),s={last:0,diff:0};return{type:"Pinch",key:"continuous-pinch-zoom",options:{event:"zoom",pointers:2,threshold:0,enable:(t,n)=>!n||!!e.actions.scroll.enabled()&&e.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>e.key===i6.COMPONENT.BAR))},events:{zoomstart(e){s.last=e.scale,e.preventDefault()},zoommove(e){const t=e.scale-s.last;(function(e){return Math.abs(e)>.01})(t)&&a(e.center,t>0?1:-1),e.preventDefault(),s.last=e.scale}}}}function P7({chart:e},t,n){const r=e.component(i6.COMPONENT.BASE_TOOLTIP);var i;r&&r.show&&(r.emit("hide"),null!=n&&null!==(i=n.customTooltipModel)&&void 0!==i&&i.useCustomTooltip&&t&&t({},r,{nodes:[],opts:n,customTooltipModel:n.customTooltipModel,hide:!0}));const o=e.component(i6.COMPONENT.LEGEND_CAT_TOOLTIP);o&&o.show&&o.emit("hide");const a=e.component(i6.COMPONENT.TREND_LINES_TOOLTIP);a&&a.show&&a.emit("hide")}function z7(e,t){const{viewCache:n,viewState:r,chart:i,trendLineModel:o,layoutService:a}=e,{rtl:s}=t,l=e.layoutService.meta.isContinuous?EG.event.onZoom({viewCache:n,viewState:r,chart:i},{rtl:s,threshold:50,targetKey:i6.COMPONENT.BAR}):void 0,u=W4({majorInnerScale:i6.SCALE.MAIN.MAJOR_INNER,tooltip:i6.COMPONENT.TREND_LINES_TOOLTIP,tooltipOverlay:i6.COMPONENT.TREND_LINES_TOOLTIP_OVERLAY},{chart:i,viewState:r,trendLineModel:o,layoutService:a,rtl:s}),c=[i6.COMPONENT.BAR,i6.COMPONENT.BAR_AXIS,i6.COMPONENT.GROUP_AXIS,i6.COMPONENT.BAR_OOB_MAX,i6.COMPONENT.BAR_OOB_MIN],d=e.customTooltipModel.utils,f=e.debouncer(d.displayTooltip,d.DEBOUNCE_THRESHOLD);return{type:"native",events:{wheel(t){let n,r=!1;if(e.actions.scroll.enabled()){const i={x:t.clientX,y:t.clientY};[n]=e.chart.componentsFromPoint(i).filter((e=>e.key===i6.COMPONENT.BAR)),n&&(e.layoutService.meta.isContinuous&&l(i,Math.sign(-t.deltaY)),r=!0)}!r&&e.actions.interact.enabled()&&([n]=e.chart.componentsFromPoint(t).filter((e=>e.key===i6.COMPONENT.LEGEND_COLOR_CAT)),n&&(r=!0,function(e,t){const n=(Math.abs(e.deltaX)>Math.abs(e.deltaY)?e.deltaX:e.deltaY)>=0?"next":"prev";t.emit(n)}(t,n))),r&&t.preventDefault(),P7(e,f,e)},mousemove(t){if(e.actions.tooltip.enabled()){if(u(t))return;const n=this.chart.componentsFromPoint({x:t.clientX,y:t.clientY}),r=this.chart.component(i6.COMPONENT.BASE_TOOLTIP);if(r&&r.show)if(n.some((e=>c.indexOf(e.key)>-1))){const{customTooltipModel:n}=e;if(n.useCustomTooltip&&d.checkIfPromisesExist({customTooltipModel:n})){const i=d.getNodes(t,this.chart);f(t,r,{nodes:i,opts:e,customTooltipModel:n})}else r.emit("show",t)}else r.emit("hide");const i=this.chart.component(i6.COMPONENT.LEGEND_CAT_TOOLTIP);i&&i.show&&(n.some((e=>e.key===i6.COMPONENT.LEGEND_COLOR_CAT))?i.emit("show",t):i.emit("hide"))}},mouseup(t){2===t.button&&P7(this,f,e)},mouseleave(){P7(this,f,e)}}}}const F7=(e,t)=>({type:"hammer",enable:!0,gestures:[...(t.hammer||{}).gestures||[],...KG({...e,componentKey:"scrollbar",rtl:t.rtl}).gestures,...e.layoutService.meta.isDiscrete?e.discrete.interactions.gestures:[I7(e,t.rtl),R7(e,t)]]});function j7(e,t){const n=[F7(e,t),z7(e,t),KG({...e,componentKey:"scrollbar",rtl:t.rtl}).native];return e.layoutService.meta.isDiscrete&&n.push(e.discrete.interactions.native),n}const B7=e=>({enabled:e.animations.enabled,compensateForLayoutChanges:yD.bars.compensateForLayoutChanges});const H7=(e,t,{collectionKey:n})=>{if(!LG({layoutService:t.layoutService}).miniChart)return!1;if(t.reducedDataModel.mode.isContinuous)return function(e,{reducedDataModel:t,colorService:n,continuousDataModel:r,viewModel:i},{collectionKey:o}){return{type:"box",key:"mini-marker",layout:{dock:"@scrollbar"},show:()=>r.getDimensionCardinality()>1,data:{collection:o},settings:{box:Cg(!0,{},e.settings.box,{minWidthPx:2,fill:n.getMini().getColor(),strokeWidth:0}),major:Cg(!0,{},e.settings.major,{scale:t.scales.major}),minor:e.settings.minor,orientation:e.settings.orientation,oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},animations:B7(i)}}(e,t,{collectionKey:n});const{mode:r,scales:i}=t.reducedDataModel;let o;return r.isGroupedByDimension&&!r.isReduced?o=({scale:e,datum:t})=>e([t.group.value,t.value])+e.bandwidth([t.group.value,t.value])/2:r.isGroupedByMeasure&&(o=({scale:e,datum:t})=>e([t.value,t.measureIndex.value])+e.bandwidth()/2),{type:"box",key:"mini-marker",layout:{dock:"@scrollbar"},show:()=>t.discrete.query.getCanScroll(),data:{collection:n},settings:{box:{...e.settings.box,fill:r.isReduced||r.isStackedByDimension?t.colorService.getMain().getSettings().others:t.colorService.getMain().getColor(),strokeWidth:0},major:{scale:i.major,fn:o},minor:{scale:i.minor},orientation:e.settings.orientation,oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},animations:B7(t.viewModel)}},{measureText:V7}=Sp.renderer("svg")();function $7(e,t,n){const r=function(e){const t=Cg(!0,{},e);return delete t.data,t}(t.minor),i=function(e,t,{majorScaleInvert:n,maxPxStep:r,align:i,getProp:o}){let a={invert:n,data:{extract:e.mode.isDimensionless?e.fields.minor.map(((e,t)=>({field:e,value:t}))):{source:"miniCube",field:"qDimensionInfo/0"}},type:e.mode.isDimensionless?"band":void 0,maxPxStep:r,align:i};return e.mode.isStackedByDimension?a.data.extract.field="qDimensionInfo/1":e.mode.isGroupedByDimension?e.mode.isReduced||(a.data={source:"miniCube",hierarchy:{value:e=>e.qElemNumber}}):e.mode.isGroupedByMeasure?(a=Cg(!0,{},t),a.data.extract.source="miniCube"):e.mode.isContinuous&&(a=Cg(!0,{},t,{min:()=>o("continuousMin"),max:()=>o("continuousMax")})),a}(e,t.major,n);return{reducedMinor:r,reducedMajor:i}}const U7=125,W7={NARROW:50,MEDIUM:100,WIDE:200};function Y7(e,t){const n=function(e){const t=e.getLayoutValue("measureAxis.spacing",1);switch(t){case.5:return W7.NARROW;case 1:return W7.MEDIUM;case 2:return W7.WIDE;default:return t*U7}}(t);return Math.max(1,Math.round(e/n))}const K7=10;function G7(e,t,n){return 0===t||t===Math.floor((n.length-1)/2)||t===n.length-1}function X7(e,t,n){return 0===t||0===e||t===n.length-1}function J7(e){for(let t=1;t<e.length;t++)if(e[t]===e[t-1])return!0;return!1}function Q7(e,t,n,r,i){e.domain([t,n]),e.nice(K7);const[o,a]=e.domain();let s=e.ticks(K7);const l=function(e){return e.length%2==0}(s),u=function(e){const t=Math.round(.3*e.length),n=t,r=e.length-t;return e.slice(n,r).some((e=>0===e))}(s),c=u?X7:G7;s=s.filter(c),l&&!u&&!r&&s.length>1&&(s=[s[0],(s[0]+s[s.length-1])/2,s[s.length-1]]);const d=i?i.formatter(i6.FORMATTER.MINOR):void 0;return J7(d?s.map(d):s)&&(s=[s[0],s[s.length-1]]),{roundedMin:o,roundedMax:a,ticks:s}}function Z7(e,t,n,r,i,o,a,s){const l=o.formatter(i6.FORMATTER.MINOR),u=s.getStyles(),c="horizontal"===a.meta.major.orientation?"height":"width",d=e=>V7({text:e,fontSize:u.axis.label.name.fontSize,fontFamily:u.axis.label.name.fontFamily})[c];let[f,h]=e.domain(),p=e.ticks(r);function m(){const e=p.map(l);return!J7(e)&&function(e){const t=i/p.length;return Math.max(...e.map(d))<=t}(e)}for(let i=r-1;i>0&&!m();i--)e.domain([t,n]),e.nice(i),[f,h]=e.domain(),p=e.ticks(i);return{roundedMin:f,roundedMax:h,ticks:p}}const e8=(e,t)=>e.value-t.value,t8=e=>({value:e,isMinor:!1}),n8=e=>({value:e,isMinor:!0});function r8(e,t,n){const r=Number.isNaN(t)&&Number.isNaN(n)?3:2;return e.filter((e=>(e=>Number.isNaN(t)||e>=t)(e)&&(e=>Number.isNaN(n)||e<=n)(e))).length<=r}function i8({chart:e,viewCache:t,dockService:n,layoutService:r,themeService:i}){const{explicitMin:o,explicitMax:a,hasExplicitMin:s,hasExplicitMax:l}=t.get("minorMinMax"),{min:u,max:c}=function(e){let{min:t,max:n}=e.get("minorMinMax");return t===n&&0===t&&(t-=1,n+=1),{min:t,max:n}}(t),d=HC((()=>{const d=function(e,t,n){let r;return e?r=n.meta.chart.size:({rect:r}=t.component(i6.COMPONENT.BAR)),"horizontal"===n.meta.major.orientation?r.height:r.width}(t.get("isPreRender"),e,n),f=Y7(d,r),h=function(e,t,n){const r=ex().domain([e,t]);return r.nice(n),r}(u,c,f);let p,m,g=[];"SPARK"===n.meta.chart.mode?({roundedMin:p,roundedMax:m}=function(e,t){return{roundedMin:e,roundedMax:t}}(u,c)):(({roundedMin:p,roundedMax:m,ticks:g}=Z7(h,u,c,f,d,e,n,i)),r8(g,o,a)&&({roundedMin:p,roundedMax:m,ticks:g}=Q7(h,u,c,s||l,e)));const y=function(e,t){const n=[];for(let r=0;r<e.length-1;r++){const i=e[r],o=(e[r+1]-i)/(t+1);for(let e=1;e<=t;e++)n.push(i+o*e)}return n}(g,1);g=function(e,t,n){return e&&n.length&&!n.some((e=>e===t))?(n.unshift(t),n.filter((e=>e>=t))):n}(s,o,g),g=function(e,t,n){return e&&n.length&&!n.some((e=>e===t))?(n.push(t),n.filter((e=>e<=t))):n}(l,a,g);const v=function(e,t){return[...e.map(t8),...t.map(n8)].sort(e8)}(g,y);return{roundedMin:p,roundedMax:m,ticks:v}}),(()=>t.get("isPreRender")));return{values:()=>d().ticks,min:()=>s?o:d().roundedMin,max:()=>l?a:d().roundedMax}}function o8(e,{picasso:t,discrete:n,layoutService:r,dockService:i,viewModel:o,viewCache:a,reducedDataModel:s,colorService:l,themeService:u,viewState:c,chart:d},{localeInfo:f,rtl:h}){const{meta:p}=r,{fields:m}=o,g=()=>{if("custom"!==r.getLayoutValue("dimensionAxis.axisDisplayMode"))return Math.min(200,i.meta.chart.size["horizontal"===i.meta.major.orientation?"height":"width"]/4)},y=!("none"===r.getLayoutValue("measureAxis.show"))?(v=i.meta.minor.orientation,b=i.meta.minor.dock,"vertical"===v?"near"===b||"left"===b?0:1:"near"===b||"bottom"===b?1:0):.5;var v,b;const x={},w="vertical"===i.meta.minor.orientation&&h,S=l.getMain().getScales(),M=l.getMini().getScales();if(Object.assign(x,S,{reducedFill:M.reducedFill}),x[i6.SCALE.MAIN.MINOR]=function({chart:e,viewModel:{fields:t},dockService:n,viewCache:r,layoutService:i,themeService:o},{rtl:a}){const s=i8({chart:e,dockService:n,viewCache:r,layoutService:i,themeService:o}),l={invert:"vertical"===n.meta.minor.orientation||a,ticks:{values:s.values},minorTicks:{count:1},min:s.min,max:s.max};return i.meta.isStacked||(l.data={source:"qHyperCube",fields:t.minor}),l}({chart:d,viewModel:o,dockService:i,viewCache:a,layoutService:r,themeService:u},{rtl:h}),p.isGroupedByDimension)[i6.SCALE.MAIN.MAJOR_INNER,i6.SCALE.MAIN.MAJOR].forEach(((e,t)=>{x[e]={invert:w,data:{source:"qHyperCube",hierarchy:{label:e=>e.qText?e.qText:"",value:e=>e.qElemNumber,props:{...o.selectionDimensionProp(t),group:p.isGroupedByDimension?{field:m.majorGroup}:void 0}}},label:({datum:e})=>e.label,ticks:{depth:t+1},maxPxStep:g,align:y}})),o.isDimensionLocked(0)||(x[i6.SCALE.MAIN.MAJOR_INNER].data.hierarchy.props.axisSelectionDimension={field:0});else if(p.isGroupedByMeasure)x[i6.SCALE.MAIN.MAJOR]={type:"group-by-measure",invert:w,data:{extract:{source:"qHyperCube",field:"qDimensionInfo/0",props:{axisSelectionDimension:{field:0}}}},measureCount:e.qHyperCube.qMeasureInfo.length,maxPxStep:g,align:y};else if(p.isTime){const{innerTime:e,outerTime:n}=function(e,t){const{layoutService:n,viewModel:r,viewCache:i,picasso:o,viewState:a,localeInfo:s,themeService:l}=e,u=()=>n.getHyperCubeValue("qAxisData.qAxis",[]),c=o.formatter("q-time"),d=l.getStyles(),f=e=>V7({text:e,fontSize:d.axis.label.name.fontSize,fontFamily:d.axis.label.name.fontFamily});i.set("qTimeAxisCache",[]);const h={get:(e,t=0)=>{const n=i.get("qTimeAxisCache");return n[t]&&n[t][0]===e?n[t][1]:void 0},set:(e,t,n=0)=>{i.get("qTimeAxisCache")[n]=[e,t]},key:({distance:e})=>{const{min:t,max:n}=a.get("zoom"),r=(n-t)/(i.get("continuousMax")-i.get("continuousMin")),o=u().map((e=>e.qName));return[e,Number.parseFloat(r).toFixed(12),...o].toString()}};return{innerTime:{data:{field:r.fields.majorNumeric},type:"q-time-axis",qAxis:u,field:r.fields.majorNumeric,min:()=>a.get("zoom").min,max:()=>a.get("zoom").max,invert:!!t,formatter:{fn:c,localeInfo:s,qNumFormat:n.getHyperCubeValue("qDimensionInfo.0",{}).qNumFormat,measureText:f},ticks:{generator:{type:"d3",initialMin:a.get("zoom").min},level:"inner",anchor:"start",clamp:!0},cache:h},outerTime:{data:{field:r.fields.majorNumeric},type:"q-time-axis",qAxis:u,field:r.fields.majorNumeric,min:()=>a.get("zoom").min,max:()=>a.get("zoom").max,invert:!!t,formatter:{fn:c,localeInfo:s,qNumFormat:n.getHyperCubeValue("qDimensionInfo.0",{}).qNumFormat,measureText:f},ticks:{generator:{type:"d3"},level:"outer",anchor:"start",clamp:!0},cache:h}}}({picasso:t,localeInfo:f,viewState:c,viewModel:o,viewCache:a,themeService:u,layoutService:r},h);x[i6.SCALE.MAIN.MAJOR_INNER]=e,x[i6.SCALE.MAIN.MAJOR]=n}else p.isContinuous?x[i6.SCALE.MAIN.MAJOR]={type:"linear",invert:w,data:{extract:{key:"qHyperCube",field:m.majorNumeric}},ticks:{forceBounds:!0,count:c.get("zoom").min===c.get("zoom").max?1:void 0},minorTicks:{count:1},min:()=>c.get("zoom").min,max:()=>c.get("zoom").max}:x[i6.SCALE.MAIN.MAJOR]={invert:w,data:{extract:p.isDimensionless?m.minor.map(((t,n)=>({field:t,label:()=>e.qHyperCube.qMeasureInfo[n].qFallbackTitle,value:n}))):{source:"qHyperCube",field:"qDimensionInfo/0",props:{axisSelectionDimension:{field:0}}}},type:p.isDimensionless?"band":void 0,maxPxStep:g,align:y};const{reducedMinor:k,reducedMajor:C}=$7(s,{major:x[i6.SCALE.MAIN.MAJOR],minor:x[i6.SCALE.MAIN.MINOR]},{majorScaleInvert:w,maxPxStep:g,align:y,getProp:a.get});return p.isDiscrete&&(x[i6.SCALE.MAIN.MAJOR].range=n.query.getScaleRange,p.isGroupedByDimension&&(x[i6.SCALE.MAIN.MAJOR_INNER].range=n.query.getScaleRange)),x[s.scales.major]=C,x[s.scales.minor]=k,x}function a8(e,t,n){const{layoutService:r,colorService:i}=e;return function(e,t){if(!e.targets)throw new Error("Missing 'targets' property");return{interactions:[z6(e,t)],components:[]}}({targets:[r.meta.isStackedByDimension&&r.getHyperCubeValue("qStackedDataPages.0.qArea.qHeight",NaN)>1?i6.COMPONENT.STACK_TOTAL_BAR:i6.COMPONENT.BAR,i6.COMPONENT.BAR_AXIS,i6.COMPONENT.GROUP_AXIS,"outer-axis-overlay","inner-axis-overlay",i6.COMPONENT.LEGEND_COLOR_CAT],components(e,t){const r={action:e.srcEvent.ctrlKey||n?"set":"toggle",contexts:["selection"],key:t[0].key};return i6.COMPONENT.BAR===t[0].key?[{...r,data:["selectionDimension"]}]:[i6.COMPONENT.BAR_AXIS,i6.COMPONENT.GROUP_AXIS].includes(t[0].key)?[{...r,data:["selectionDimension","axisSelectionDimension"]}]:[r]}},{...e,isLocked:n=>n.some((e=>e.key===i6.COMPONENT.LEGEND_COLOR_CAT))?i.getMain().isSelectionLocked({isMeasureSelectionLocked:t}):e.isLocked(n)})}function s8(e){const t=e.layoutService.meta.isStackedByDimension&&e.layoutService.getHyperCubeValue("qStackedDataPages.0.qArea.qHeight",NaN)>1;return function(e,t){if(!e.componentTargetKey)throw new Error("Missing 'componentTargetKey' property");const n={key:"lasso",...e},r=I6(n);return{interactions:[P6(n,t)],components:[r]}}({key:"lasso",componentTargetKey:i6.COMPONENT.BAR,components:[t?{key:i6.COMPONENT.STACK_TOTAL_BAR,contexts:["selection"],action:"add"}:{key:i6.COMPONENT.BAR,contexts:["selection"],action:"add",data:["selectionDimension"]}]},e)}function l8(e){return function(e,t){const n=function(e){const{key:t,targets:n,components:r,fillTargets:i,dock:o}=e;return{key:t,type:"brush-area-dir",layout:{dock:n.map((e=>`@${e}`)).join(",")},settings:{multiple:!0,brush:{components:r},direction:"left"===o||"right"===o?"vertical":"horizontal",bubbles:{align:"left"===o||"top"===o?"end":"start",placement:"inside"},target:{components:i,fill:"rgba(82,204,82,0.2)"}}}}(e);return{interactions:[j6(e,t,"area")],components:[n]}}({eventName:"discreteRange",components:[{key:i6.COMPONENT.BAR,contexts:["selection"],action:"set",data:["selectionDimension"]}],key:"discreteRangeBrush",targets:["group-axis",i6.COMPONENT.BAR_AXIS,i6.COMPONENT.BAR],fillTargets:["group-axis",i6.COMPONENT.BAR_AXIS],dock:e.dockService.meta.major.dock},e)}function u8(e,t,n){const{selectionService:r}=e,{isUnsupportedFeature:i}=t,o=void 0===n,a=r.getIsSingleSelect(n),s=a8(e,o,a);if(o||a)return{components:[...s.components],gestures:[...s.interactions]};const l=s8(e),u=function(e,t){return e.layoutService.meta.isStacked||null!=t&&t("rangeSelections")?{components:[],interactions:[]}:B6({eventName:"measureRange",key:"measureRangeBrush",targets:["y-axis",i6.COMPONENT.BAR],fillTargets:["y-axis"],dock:e.dockService.meta.minor.dock,scale:i6.SCALE.MAIN.MINOR,onEdited(){e.actions.select.emit("end","measureRange")}},e)}(e,i),c=function(e){return e.layoutService.meta.isContinuous?B6({eventName:"continuousRange",key:"continuousRangeBrush",targets:e.layoutService.meta.isTime?["outer-time-axis","inner-time-axis",i6.COMPONENT.BAR]:["continuous-axis",i6.COMPONENT.BAR],fillTargets:e.layoutService.meta.isTime?["outer-time-axis","inner-time-axis"]:["continuous-axis"],observeBrush:!0,multiple:!0,dock:e.dockService.meta.major.dock,scale:e.layoutService.meta.isTime?i6.SCALE.MAIN.MAJOR_INNER:i6.SCALE.MAIN.MAJOR,toLabel({datum:t,data:n,scale:r}){const i=e.layoutService.meta.isTime?r.formatter():e.chart.formatter(i6.FORMATTER.MINOR),o=e.chart&&e.chart.brushSelectionIncludeMax;return`${t!==Math.max(...n)||o?"":"<"}${i(t)}`}},e):{components:[],interactions:[]}}(e),d=l8(e);return{components:[...s.components,...l.components,...u.components,...d.components,...c.components],gestures:[...l.interactions,...s.interactions,...u.interactions,...d.interactions,...c.interactions]}}function c8({layoutService:e,viewModel:t,dockService:n}){var r;const{meta:i}=e;if(!i.isStackedByDimension||i.isContinuous)return!1;const{fields:o}=t,a=e.getLayoutValue("components",null),s=a?a.filter((e=>"bar"===e.key))[0]:null;return{key:"shadow-bar",type:"box",data:{extract:[{field:o.majorStack,filter:e=>0!==e.qDown||0!==e.qUp,props:{start:{value:e=>(e=>Number(e.map((e=>e.qMaxPos)).reduce(((e,t)=>e+t),0).toFixed(13)))(e.qSubNodes)},end:{value:e=>Number(e.qMaxPos.toFixed(13))}}},{field:o.majorStack,filter:e=>0!==e.qDown||0!==e.qUp,props:{start:{value:e=>(e=>Number(e.map((e=>e.qMinNeg)).reduce(((e,t)=>e+t),0).toFixed(13)))(e.qSubNodes)},end:{value:e=>Number(e.qMinNeg.toFixed(13))}}}]},settings:{major:{scale:i6.SCALE.MAIN.MAJOR},minor:{scale:i6.SCALE.MAIN.MINOR},orientation:n.meta.minor.orientation,box:{width:null!=s&&null!==(r=s.style)&&void 0!==r&&r.width&&s.style.width>0?s.style.width:.7,fill:()=>({type:"pattern",fill:"rgba(165, 165, 165, 0.8)",width:4,height:4,shapes:[{type:"rect",x:0,y:3,width:1,height:1},{type:"rect",x:1,y:2,width:1,height:1},{type:"rect",x:2,y:1,width:1,height:1},{type:"rect",x:3,y:0,width:1,height:1}]})},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},animations:{enabled:t.animations.enabled,trackBy:yD.shadowBars.trackBy,compensateForLayoutChanges:yD.bars.compensateForLayoutChanges}}}const d8={min:"Min",max:"Max"};function f8(e,t,n){const r=n?e.implicitMax:e.implicitMin;return!function(e,t,n){return void 0===n?n7(e,t)||r7(e,t):n===i7.MAX?n7(e,t):r7(e,t)}(Number(r.toFixed(13)),e,t)}function h8(e,{barComponent:t,type:n,isStacked:r}){var i,o,a;const{viewCache:s,layoutService:l,dockService:u}=e,c=s.get("minorMinMax"),d=n===i7.MAX;if(function(e,t){return!e[`hasOther${d8[t]}`]}(c,n)){if(function(e,t){return!e[`hasExplicit${d8[t]}`]}(c,n))return!1;if(f8(c,n,d))return!1}if(function(e,t,n){const r=n?e=>e<0:e=>e>0;return e[`hasExplicit${d8[t]}`]&&r(e[`explicit${d8[t]}`])}(c,n,d))return!1;let f="end";r&&(f=d?"sumOfPositives":"sumOfNegatives");const h=function(e){let t;return()=>(void 0===t&&(t=e()),t)}((()=>e.chart.scale(i6.SCALE.MAIN.MINOR)[n]())),p=d?e=>e.datum[f].value>h():e=>e.datum[f].value<h(),m=i6.COMPONENT.BAR,g=e.layoutService.getLayoutValue("components",[]),y=g?g.filter((e=>e.key===m))[0]:null;return{type:"box-sliced-hat",key:`sliced-hat-${n}`,layout:{dock:d?u.meta.minor.end:u.meta.minor.start},data:t.data,brush:t.brush,settings:{orientation:t.settings.orientation,major:t.settings.major,minor:t.settings.minor,hat:Cg({},t.settings.box,{fill:l.meta.isStacked?"#999":t.settings.box.fill,alignment:1,opacity:1,show:p,width:J6({layoutService:e.layoutService,discrete:e.discrete,componentKey:m}),strokeWidth:null!=y&&null!==(i=y.style)&&void 0!==i&&i.strokeWidth?K6.BAR.STROKE.WIDTH[y.style.strokeWidth.toUpperCase()]:K6.BAR.STROKE.WIDTH.NONE,stroke:null!==(o=null==y||null===(a=y.style)||void 0===a||null===(a=a.strokeColor)||void 0===a?void 0:a.color)&&void 0!==o?o:K6.BAR.STROKE.COLOR})}}}function p8(e,t){var n;let r;return r=e.isContinuous?1:.7,!e.isContinuous&&null!=t&&null!==(n=t.style)&&void 0!==n&&n.width&&t.style.width>0?t.style.width:r}function m8(e,{collectionKey:t},n){const{meta:r}=e.layoutService,{fields:i}=e.viewModel,o=r.isStackedByDimension&&!r.isContinuous?"qValue":"qNum",a=e=>"NaN"===e[o]?0:e[o];function s(t){const n=e.ds.field(t).raw(),r=e.ds.field(t).formatter(),i=Lg.shouldUseFormat(n);return{field:t,reduceLabel:"none",value:a,label:e=>i?(e=>"NaN"===e[o]?"-":r(e[o]))(e):e.qText}}const l=r.isStackedByDimension?e=>"NaN"===e.qValue:e=>!!e.qIsNull;function u(e){return{field:e,reduceLabel:"none",reduce:"first",value:l}}const c={key:t,data:{extract:i.minor.map(((t,o)=>{const a=e.colorService.getMain().getDatumProps(o),l=e.colorService.getMini().getDatumProps(o),c=a[Object.keys(a)[0]],d=null==c?void 0:c.field,f=d?{field:d,reduceLabel:"none",value:e=>void 0!==e.qNum&&"NaN"!==e.qNum?e.qNum:e.qText||"-"}:void 0,h={field:r.isDimensionless?t:i.major,props:{...e.viewModel.selectionDimensionProp(),axisSelectionDimension:{field:0},start:0,end:s(t),null:u(t),segment:r.isStacked?s(t):void 0,group:r.isGroupedByDimension?{field:i.majorGroup}:void 0,stack:r.isStacked?{field:i.majorStack}:void 0,measureIndex:r.isGroupedByDimension||r.isStackedByDimension?void 0:o,timeStart:r.isContinuous?{field:i.majorNumeric}:void 0,timeEnd:r.isContinuous?{field:i.majorNumeric}:void 0,fillTooltip:f,...a,...l,id:{value:e=>`r${e.qRow}e${e.qElemNumber}m${o}`},customTooltipAttrExps:0!==r.dimensionCount?g3.getNode(e.layoutService.getLayout(),r):void 0}};return r.isDimensionless&&(h.value=o),void 0!==n&&(h.source=n),Lg.deleteUndefinedProperties(h.props),h}))}};return r.isStacked&&(c.data.stack={stackKey:e=>e.stack.value,value:e=>e.end.value,offset:"diverging"}),c}function g8({layoutService:e,viewModel:t},{collectionKey:n}){const{meta:r}=e,{fields:i}=t;if(!r.isStacked)return!1;let o;return o=r.isStackedByMeasure?function(e,t){const n={field:0,props:{sumOfPositives:{fields:t.minor.map((e=>({field:e}))),value:e=>e.reduce(((e,t)=>t>0?e+t:e),0),reduceLabel:"none"},sumOfNegatives:{fields:t.minor.map((e=>({field:e}))),value:e=>e.reduce(((e,t)=>t<0?e+t:e),0),reduceLabel:"none"},null:{fields:t.minor.map((e=>({field:e}))),value:e=>Array.isArray(e)&&e.every((e=>"NaN"===e)),reduceLabel:"none"}}};if(e.isContinuous){const e={field:t.major,value:e=>e.qNum,reduceLabel:"none"};n.props.timeStart=e,n.props.timeEnd=e,n.value=e=>e.qNum}return n}(r,i):function(e,t){if(!e.isContinuous)return{field:t.majorStack,reduceLabel:"none",props:{sumOfPositives:{value:e=>Number(e.qMaxPos.toFixed(13))},sumOfNegatives:{value:e=>Number(e.qMinNeg.toFixed(13))},null:{value:e=>{const{qSubNodes:t=[]}=e;return t.every((e=>"NaN"===((e.qSubNodes||[])[0]||{}).qValue))}}}};const n={field:t.majors[0],value:e=>e.qNum,reduceLabel:"none"};return{field:t.majorStack,trackBy:e=>e.qNum,reduce:e=>e[0],props:{sumOfPositives:{field:t.minor[0],reduceLabel:"none",reduce:e=>e.reduce(((e,t)=>t>0?e+t:e),0)},sumOfNegatives:{field:t.minor[0],reduceLabel:"none",reduce:e=>e.reduce(((e,t)=>t<0?e+t:e),0)},timeStart:n,timeEnd:n}}}(r,i),{key:n,data:{extract:o}}}const y8="main-collection",v8="stack-total-collection";const b8="mini-collection",x8="mini-stack-collection",w8="mini-continuous-collection",S8="miniCube",M8=(e,t)=>{const n=(e=>{const t=[m8(e,{collectionKey:y8})];return e.layoutService.meta.isStacked&&t.push(g8(e,{collectionKey:v8})),t})(t),r=((e,t)=>{const n=[];return LG({layoutService:t.layoutService}).miniChart&&(t.reducedDataModel.mode.isContinuous?n.push(m8(t,{collectionKey:w8},S8)):t.layoutService.meta.isStacked?n.push(function(e,{collectionKey:t}){const{colorService:n,reducedDataModel:{fields:r,mode:i}}=e;return{key:t,data:{extract:r.minor.map(((e,t)=>{const o={end:{field:e,reduceLabel:"none"},...i.isStackedByMeasure&&!i.isReduced?n.getMain().getDatumProps(t):{}};return i.isContinuous&&(o.timeStart={field:r.major,value:e=>e.qNum},o.timeEnd=o.timeStart),{source:"miniCube",field:r.major,props:o}})),stack:{stackKey:e=>e.value,value:e=>e.end.value,offset:"diverging"}}}}(t,{collectionKey:x8})):n.push(function(e,{collectionKey:t}){const{colorService:n,reducedDataModel:{fields:r,mode:i}}=e;return{key:t,data:{extract:r.minor.map(((e,t)=>{const o=i.isReduced?{}:n.getMain().getDatumProps(t),a={end:{field:e},start:0,group:{field:r.majorGroup},measureIndex:t,...o},s={source:"miniCube",field:i.isDimensionless?e:r.major,props:a};return i.isDimensionless&&(s.value=t),s}))}}}(t,{collectionKey:b8}))),n})(0,t);return n.concat(r)};function k8(e,t,n,r){const i=[{position:e,onBackground:!0,justify:0,overflow:r}];if(t){const t={fill:"#e6e6e6",padding:{left:2,right:2,top:2,bottom:2}};i.push({position:"inside",onBackground:!1,justify:"outside"===e?1:0,background:n?t:void 0})}return i}function C8({layout:e,component:t},n,r){if(!v7(e,n))return!1;const{layoutService:i,chart:o,dockService:a,viewModel:s,themeService:l,styleService:u}=n,{meta:c}=i,d=!y7(e,n),f=l.getStyles(),h=u.label.getStyle(),p=h.useContrastColor;function m(e){const t=o.formatter(i6.FORMATTER.MINOR);return t?t(e):e}const g={label:function(e){return 0===e.data.sumOfPositives.value&&0!==e.data.sumOfNegatives.value?"":m(e.data.sumOfPositives.value)},simplifiedPlacements:k8("outside",d,p,c.isContinuous),style:f.label.value},y={label:function(e){return 0===e.data.sumOfNegatives.value&&0!==e.data.sumOfPositives.value?"":m(e.data.sumOfNegatives.value)},simplifiedPlacements:k8("opposite",d,p,c.isContinuous),style:f.label.value},v=[f7(Cg(n,g)),f7(Cg(n,y))];return{key:"stack-total-labels",type:"labels",renderer:AD(n.flags),layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:t,selector:"rect",strategy:{type:"bar",settings:{direction:e=>g7(e.data.sumOfPositives.value,a.meta.minor.orientation,r),labels:v,fontSize:parseInt(h.fontSize,10),fontFamily:h.fontFamily,linkData:yD.labels.linkData}}}]},animations:{enabled:s.animations.enabled,trackBy:yD.labels.trackBy,compensateForLayoutChanges:yD.labels.compensateForLayoutChanges}}}function q8(e,t,n){const r=[{position:e,justify:0,overflow:n,background:{padding:{left:1,right:1,top:1,bottom:1}}}];return t&&r.push({position:"inside",onBackground:!1,justify:1,background:{padding:{left:2,right:2,top:2,bottom:2}}}),r}function E8({layout:e,type:t},n){const{layoutService:r,viewCache:i,themeService:o,styleService:a}=n,{meta:s}=r,{isStacked:l}=s;if(!l&&!y7(e,n)||l&&!v7(e,n))return!1;const u=i.get("minorMinMax");if(!u.hasExplicitMinMax||t===i7.MAX&&0===u.max||t===i7.MIN&&0===u.min)return!1;if(!a7(t===i7.MAX?u.implicitMax:u.implicitMin,u,t))return!1;const c=o.getStyles(),d=a.label.getStyle();let f=e=>e.data.end.label;s.isStacked&&(f=t===i7.MAX?function(e){if(a7(e.data.sumOfNegatives.value,u,t)){const t=0===e.data.sumOfNegatives.value?e.data.sumOfPositives.value:e.data.sumOfNegatives.value,r=n.chart.formatter(i6.FORMATTER.MINOR);return r?r(t):t}return""}:function(e){if(a7(e.data.sumOfPositives.value,u,t)){const t=0===e.data.sumOfPositives.value?e.data.sumOfNegatives.value:e.data.sumOfPositives.value,r=n.chart.formatter(i6.FORMATTER.MINOR);return r?r(t):t}return""});const h={label:f,simplifiedPlacements:q8("outside",true,s.isContinuous),styles:c},p={label:f,simplifiedPlacements:q8("opposite",true,s.isContinuous),styles:c},m=[f7(Cg(n,h)),f7(Cg(n,p))],g="vertical"===n.dockService.meta.minor.orientation?"down":"right",y=[{component:`${i6.COMPONENT.GHOST_BAR_OOB}-${t}`,selector:"rect",strategy:{type:"bar",settings:{direction:g,labels:m,fontSize:parseInt(d.fontSize,10),fontFamily:d.fontFamily,linkData:yD.labels.linkData}}}];return{key:`bar-oob-labels-${t}`,type:"labels",renderer:AD(n.flags),layout:{minimumLayoutMode:"XSMALL"},settings:{sources:y},animations:{enabled:n.viewModel.animations.enabled,trackBy:yD.labels.trackBy,compensateForLayoutChanges:yD.labels.compensateForLayoutChanges}}}function D8(e){return"all"===e||"title"===e}function T8(e,t,n){if(!D8(e.dimensionAxis.show)||t.layoutService.meta.isDimensionless)return!1;const{actions:r,properties:i}=t,o={hyperCube:e.qHyperCube,hyperCubeDef:i&&i.qHyperCubeDef,isDimension:!0,disabled:()=>{var e;return!(null!=r&&null!==(e=r.interact)&&void 0!==e&&e.enabled())},model:t.model,app:t.app,translator:t.translator,rtl:n,selections:t.selections,supportConditional:t.flags.isEnabled("IM_1579_HIDE_DIM_MEA"),isEnabled:t.flags.isEnabled},a=t.styleService.axis.title.getStyle();return t.layoutService.meta.hasMultipleDimensions&&(o.padding="0",o.minWidth="auto"),{key:"dimension-title",type:"data-title",layout:{minimumLayoutMode:H6[`${t.dockService.meta.major.orientation}DimensionAxisTitle`].minimumLayoutMode,dock:t.dockService.meta.major.dock},settings:o,style:a}}function N8(e,t,n){if(!D8(e.measureAxis.show))return!1;const{layoutService:r,actions:i}=t,o=t.properties,a=r.getLayoutValue("qUndoExclude")?"qUndoExclude.qHyperCubeDef":"qHyperCubeDef",s={hyperCube:r.getHyperCube(),hyperCubeDef:zC(o,a),isDimension:!1,disabled:()=>!i.interact.enabled(),model:t.model,app:t.app,translator:t.translator,rtl:n,selections:t.selections,supportConditional:t.flags.isEnabled("IM_1579_HIDE_DIM_MEA"),isEnabled:t.flags.isEnabled},l=t.styleService.axis.title.getStyle();return t.layoutService.meta.hasMultipleMeasures&&(s.padding="0",s.minWidth="auto"),{key:"measure-title",type:"data-title",layout:{minimumLayoutMode:"SMALL",dock:t.dockService.meta.minor.dock},settings:s,style:l}}function O8({environment:e,rtl:t,refLineModel:n,layoutService:r,colorService:i,dockService:o,themeService:a,viewModel:s,chart:l}){const{theme:u,localeInfo:c}=e,d={resolveUIColor:i.getMain().getPaletteColor},f=a.getStyles(),h=s.animations.enabled;return[MD({refLineModel:n,layoutService:r,colorModel:d,dockService:o,animationsEnabled:h,chart:l,scale:i6.SCALE.MAIN.MINOR,axis:"horizontal"===o.meta.major.orientation?"y":"x",key:i6.COMPONENT.MEASURE_REF_LINE,minimumLayoutMode:H6.refLines.minimumLayoutMode}),MD({isDimension:!0,refLineModel:n,layoutService:r,colorModel:d,dockService:o,animationsEnabled:h,chart:l,scale:i6.SCALE.MAIN.MAJOR,axis:"horizontal"===o.meta.major.orientation?"x":"y",rtl:t,key:i6.COMPONENT.DIMENSION_REF_LINE,mainComponentKey:i6.COMPONENT.BAR,minimumLayoutMode:H6.refLines.minimumLayoutMode}),...ED({refLineModel:n,layoutService:r,colorModel:d,animationsEnabled:h,dock:o.meta.minor.opposite,scale:i6.SCALE.MAIN.MINOR,style:f,formatter:i6.FORMATTER.MINOR,theme:u,localeInfo:c,rtl:t,key:i6.COMPONENT.MEASURE_REF_LINE_LABEL}),...ED({isDimension:!0,refLineModel:n,layoutService:r,colorModel:d,animationsEnabled:h,dock:o.meta.major.opposite,scale:i6.SCALE.MAIN.MAJOR,style:f,theme:u,localeInfo:c,rtl:t,key:i6.COMPONENT.DIMENSION_REF_LINE_LABEL})]}const A8=(e,t,n)=>{var r;const{layoutService:i,dockService:o,colorService:a,chart:s,actions:l,discrete:u,continuousDataModel:c,reducedDataModel:d,viewModel:f,viewState:h,viewCache:p,themeService:m,refLineModel:g,pluginService:y,rtl:v,logicalSize:b,trendLineModel:x,disclaimerService:w}=t,{localeInfo:S}=n,M=function(e,t){const{disclaimerService:n,themeService:r,translator:i}=e,o=n.getDisclaimer();if(!o)return!1;const{fontFamily:a}=r.getStyles();return{key:"disclaimer",type:"disclaimer",layout:{dock:o.alignment},settings:{isRTL:t,label:i.get(`Object.Disclaimer.${o.key}`)},style:{fontFamily:a}}}(t,v);if(w.getHasSuppressingDisclaimer())return{components:[M]};const k=o8(e,t,{localeInfo:S,rtl:v}),C=!(null!=l&&null!==(r=l.interact)&&void 0!==r&&r.enabled()),q=a.getMain().getLegend({eventName:"legend-c",key:"legend-color",viewState:h,chart:s,styleReference:"object.barChart",styleOverrides:{title:t.styleService.legend.title.getStyle(),label:t.styleService.legend.label.getStyle()},rtl:v,settings:{item:{shape:{size:10}}}},{actions:l,navigationDisabled:C}),E=q.components[0];if(E){const{dock:e}=E.layout;if(k.fillRange&&(["right","left"].includes(e)||v)&&(k.fillRange.invert=!0),"legend-seq"===E.type&&void 0!==f.selectionDimensionIdx&&k.fillRange&&k.fillRange.min<k.fillRange.max){const e=B6({eventName:"legendRange",key:"legendRangeBrush",targets:[E.key],fillTargets:[E.key],targetSelector:'[id="legend-seq-target"]',targetFillSelector:'[id="legend-seq-ticks"]',dock:E.layout.dock,scale:"fillRange",bubblesPlacement:"outside",onEdited:()=>{l.select.emit("end","legendRange")}},t);q.components.push(...e.components),q.interactions.unshift(...e.interactions)}}else k.fillRange&&v&&(k.fillRange.invert=!0);const D=((e,{componentKey:t,collectionKey:n})=>{var r,i,o;const{meta:a}=e.layoutService;let s,l;a.isGroupedByDimension?s=({scale:e,datum:t})=>e([t.group.value,t.value])+e.bandwidth([t.group.value,t.value])/2:a.isGroupedByMeasure&&(s=({scale:e,datum:t})=>e([t.value,t.measureIndex.value])+e.bandwidth()/2);let u=2;a.isContinuous?(l={start:"timeStart",end:"timeEnd"},u=Z6(e,t)):a.isStacked&&(l="stack");const c=a.isStackedByDimension&&e.layoutService.getHyperCubeValue("qStackedDataPages.0.qArea.qHeight",NaN)>1,d=e=>{var t;return!0===(null===(t=e.datum.null)||void 0===t?void 0:t.value)},f=e.layoutService.getLayoutValue("components",null),h=f?f.filter((e=>e.key===t))[0]:null;return{key:t,type:"box",data:{collection:n},preferredSize:a.isContinuous?()=>({size:0,edgeBleed:{left:1,right:1}}):void 0,brush:{consume:[{context:"selection",data:["selectionDimension","axisSelectionDimension","end","fill","timeEnd"],style:{active:{strokeWidth:a.isContinuous||c?0:2,stroke:"#000"},inactive:{opacity:.3}}}]},settings:{major:{scale:i6.SCALE.MAIN.MAJOR,fn:s,ref:l},minor:{scale:i6.SCALE.MAIN.MINOR},orientation:e.dockService.meta.minor.orientation,box:{width:J6({layoutService:e.layoutService,discrete:e.discrete,componentKey:t}),minWidthPx:u,fill:e.colorService.getMain().getColor(),opacity:e=>d(e)?0:void 0,minHeightPx:function(e){return a.isStacked?.1:d(e)?.01:.3},strokeWidth:null!=h&&null!==(r=h.style)&&void 0!==r&&r.strokeWidth?K6.BAR.STROKE.WIDTH[h.style.strokeWidth.toUpperCase()]:K6.BAR.STROKE.WIDTH.NONE,stroke:null!==(i=null==h||null===(o=h.style)||void 0===o||null===(o=o.strokeColor)||void 0===o?void 0:o.color)&&void 0!==i?i:K6.BAR.STROKE.COLOR},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},animations:{enabled:e.viewModel.animations.enabled,isMainComponent:!0,trackBy:yD.bars.trackBy,compensateForLayoutChanges:yD.bars.compensateForLayoutChanges}}})(t,{componentKey:i6.COMPONENT.BAR,collectionKey:i6.COLLECTION.MAIN}),T=((e,{componentKey:t,collectionKey:n})=>{const{meta:r}=e.layoutService;if(!r.isStacked)return!1;let i=2;r.isContinuous&&(i=Z6(e,t));const o=e.layoutService.getLayoutValue("components",null),a=o?o.filter((e=>e.key===t))[0]:null,s={key:t,type:"box",data:{collection:n},settings:{major:{scale:i6.SCALE.MAIN.MAJOR},minor:{scale:i6.SCALE.MAIN.MINOR,start:{ref:"sumOfNegatives"},end:{ref:"sumOfPositives"}},orientation:e.dockService.meta.minor.orientation,box:{width:p8(r,a),minWidthPx:i,opacity:0,fill:"none"},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},brush:{consume:[{context:"selection",data:[""],style:{active:{strokeWidth:2,stroke:"#000",opacity:e=>{var t;return!0===(null===(t=e.data)||void 0===t||null===(t=t.null)||void 0===t?void 0:t.value)?0:1}},inactive:{opacity:e=>{var t;return!0===(null===(t=e.data)||void 0===t||null===(t=t.null)||void 0===t?void 0:t.value)?0:.3}}}}]}};return r.isContinuous&&(s.settings.major.ref={start:"timeStart",end:"timeEnd"}),s})(t,{componentKey:i6.COMPONENT.STACK_TOTAL_BAR,collectionKey:i6.COLLECTION.STACK_TOTAL}),N=u8(t,n,f.selectionDimensionIdx),{isStacked:O}=i.meta;let A;A=d.mode.isContinuous?i6.COLLECTION.MINI_CONTINUOUS:O?i6.COLLECTION.MINI_STACK:i6.COLLECTION.MINI;const _=O?T:D,L=_7(0,t),I=[...L,h8(t,{barComponent:_,type:"max",isStacked:O}),h8(t,{barComponent:_,type:"min",isStacked:O}),l7(t,{barComponent:_,type:"max",isStacked:O}),l7(t,{barComponent:_,type:"min",isStacked:O}),c7(t,{chart:s,barComponent:_,type:"max",scales:k,collectionKey:O?i6.COLLECTION.STACK_TOTAL:i6.COLLECTION.MAIN}),c7(t,{chart:s,barComponent:_,type:"min",scales:k,collectionKey:O?i6.COLLECTION.STACK_TOTAL:i6.COLLECTION.MAIN}),...Y6(e,t,v,!!L[0]),D,T,c8({layoutService:i,viewModel:f,layout:e,dockService:o}),T8(e,t,v),N8(e,t,v),...O8({environment:n,rtl:v,refLineModel:g,layoutService:i,colorService:a,dockService:o,themeService:m,viewModel:f,chart:s}),pS({viewState:h,viewCache:p,layoutService:i,dockService:o,rtl:v}),H7(D,t,{collectionKey:A}),IG({layoutService:i,dockService:o,discrete:u,continuousDataModel:c,viewState:h,viewCache:p,themeService:m,rtl:v,deviceType:n.deviceType}),...z4({majorScale:i6.SCALE.MAIN.MAJOR,minorScale:i6.SCALE.MAIN.MINOR,tooltipOverlay:i6.COMPONENT.TREND_LINES_TOOLTIP_OVERLAY},{layoutService:i,trendLineModel:x,dockService:o,animationsEnabled:f.animations.enabled}),...q.components,x7({layout:e,component:i6.COMPONENT.BAR,minorScale:k.minor},t,v),C8({layout:e,component:i6.COMPONENT.STACK_TOTAL_BAR},t,v),E8({layout:e,component:"bar-oob-max",type:"max"},t),E8({layout:e,component:"bar-oob-min",type:"min"},t),...N.components,S7(0,{...t,coloring:a.getMain().getSettings()},v),k7(0,{...t,coloring:a.getMain().getSettings()},v),!1!==e.showDisclaimer&&M,$4({tooltip:i6.COMPONENT.TREND_LINES_TOOLTIP,formatter:i6.FORMATTER.MINOR,majorScale:i6.SCALE.MAIN.MAJOR},t,{rtl:v})].filter(Boolean);!function(e){if(e&&0!==e.length)for(let t=0;t<e.length;t++)e[t].layout=e[t].layout||{},e[t].layout.displayOrder=t}(I);const R=[...q.interactions,...N.gestures].sort(((e,t)=>(t.prio||0)-(e.prio||0)));return{interactions:j7(t,{rtl:v,hammer:{gestures:R}}),scales:k,palettes:a.getMain().getPalettes(),components:y.extendComponents(I),strategy:Tg(0,{logicalSize:b,minCenterRatio:0}),formatters:C7(t,k),collections:M8(0,t)}};function _8({picasso:t,chart:n,services:r,environment:i,viewState:o,viewCache:a,bootstrapped:s}){const{width:l,height:u}=e.useRect(),c=e.useModel(),d=e.useSelections(),f=e.useOptions(),[h,p]=e.useState(),[m,g]=e.useState(),[y,v]=e.useState(),[b,x]=e.useState(),w=e.useApp();function S(){if(!n.layoutComponents)return Promise.resolve();const{discrete:e,layoutService:s,viewModel:l}=r;a.set("isPreRender",!0);const u=function(e={}){const{selectionService:s,refLineModel:l,discrete:u,reducedDataModel:p,continuousDataModel:m,trendLineModel:g,pluginService:y,colorService:v,viewModel:b,dockService:x,themeService:S,customTooltipModel:M,layoutService:k,logicalSize:C,styleService:q,disclaimerService:E}=r,D=s.custom.getActions(),T=t.data("q")(h.prepPicassoDataSet()),N={picasso:t,ds:T,rtl:"rtl"===(null==f?void 0:f.direction),model:c,app:w,chart:n,actions:D,localeInfo:i.localeInfo,logicalSize:C,flags:i.flags,translator:i.translator,selections:d,isLocked:s.getIsSelectionLocked,viewCache:a,viewState:o,layoutService:k,dockService:x,viewModel:b,colorService:v,selectionService:s,themeService:S,trendLineModel:g,discrete:u,continuousDataModel:m,reducedDataModel:p.model(),customTooltipModel:M,debouncer:VC,refLineModel:l,pluginService:y,styleService:q,disclaimerService:E,...e};return A8(k.getLayout(),N,i)}(m);h.extractDataPages(),n.layoutComponents({settings:u,data:y}),a.set("isPreRender",!1),h.insertDataPages(),l.animations.hasSlicedHats=u.components.filter((e=>"box-sliced-hat"===e.type)).length>0;const p=[];return 1!==u.components.length&&s.meta.isDiscrete&&p.push(e.command.initialize()),Promise.all(p)}const[[M,k]=[]]=e.usePromise((()=>{var e,l;if(!(t&&n&&r&&i&&o&&a&&s))return Promise.resolve();const{layoutService:u,selectionService:c,refLineModel:d,discrete:f,continuous:h,reducedDataModel:p,continuousDataModel:m,trendLineModel:g,legendLayoutService:y,colorService:v,pluginService:b,viewModel:w,customTooltipModel:S,disclaimerService:M}=r;if(null==c||null===(e=c.custom)||void 0===e||!e.getActions())return Promise.resolve();const{flags:k}=i;if(null!=k&&null!==(l=k.isEnabled)&&void 0!==l&&l.call(k,"IM_1579_HIDE_DIM_MEA")){const{properties:e}=s,t=null==e?void 0:e.qHyperCubeDef.qDimensions.some((e=>{var t;return null===(t=e.qCalcCondition)||void 0===t||null===(t=t.qCond)||void 0===t?void 0:t.qv}));t&&(S.useCustomTooltip=!1)}const C=()=>{x(Date.now()),w.animations.isPartialUpdating=!0};o.onChanged("scrollOffset",(()=>{y&&y.setDataPages([f.query.getCurrentDataPage()]),d&&d.update(),C()})),o.onChanged("legendScrollOffset",C),o.intercept("zoom",h.event.onZoomIntercept({viewCache:a})),o.onChanged("zoom",h.event.onZoomChange({layoutService:u,continuousDataModel:m},C)),c.setLayout(u.getLayout());const q=[];u.meta.isContinuous&&(m.update(u.getLayout()),q.push(m.initialFetch())),g.command.update(),q.push(p.fetch().then((({reducedCube:e})=>{p.update(e)}))),M.initialize(),q.push(Promise.resolve({properties:s.properties}));return Promise.all(q).then((e=>Promise.all([b.initialize(),v.initialize(),L6({reducedDataModel:p,layoutService:u,continuousDataModel:m,trendLineModel:g})]).then((t=>[e,t.pop()]))))}),[s]);e.useEffect((()=>{var e;if(null==r||null===(e=r.colorService)||void 0===e||!e.getMain()||!k)return;const{layoutService:t,selectionService:n,reducedDataModel:o,continuousDataModel:s,trendLineModel:l,legendLayoutService:u,colorService:c,viewModel:d}=r;a.set("minorMinMax",k);const f=t.getHyperCube(),h=t.meta.isContinuous?s.getInitialCube():o.model().cube,{field:m}=c.getMain().getSettings(),y=!t.meta.isContinuous&&(o.model().mode.isReduced||t.meta.isStacked)&&u,v=y?u.getHyperCube():void 0;n.setBrushAliases({colorField:m,useLegendCube:y,legendAlias:`legendCube/${m}`});const b=function({mainCube:e,miniCube:t,legendCube:n,localeInfo:r,layoutService:i,viewModel:o,trendLineModel:a}){const s=i.refs.dataPages.split(".").pop();let l=[],u=[];const c=i.meta.isContinuous?[{key:o.fields.majorNumeric,from:i.meta.isStackedByDimension?o.fields.majorStack:o.fields.major,override:{value:e=>e.qNum}}]:void 0;return{prepPicassoDataSet:()=>({key:"qHyperCube",data:e,config:{localeInfo:r,virtualFields:c}}),prepPicassoData(i){const o=[{type:"q",key:"qHyperCube",data:e,config:{localeInfo:r,virtualFields:c}},{type:"q",key:"miniCube",data:t,config:{localeInfo:r,virtualFields:c}},...i];return n&&o.push({type:"q",key:"legendCube",data:n,config:{localeInfo:r,virtualFields:c}}),a.query.hasTrendLines()&&o.push({key:"trend",data:a.query.getData()}),o},extractDataPages(){l=e[s],u=t.qDataPages,e[s]=[],t.qDataPages=[]},insertDataPages(){e[s]=l,t.qDataPages=u}}}({mainCube:f,miniCube:h,legendCube:v,localeInfo:i.localeInfo,layoutService:t,viewModel:d,trendLineModel:l}),x=M[M.length-1];g({localeInfo:i.localeInfo,...x}),p(b)}),[k]),e.useEffect((()=>{if(!r||!m||!h)return;const e=r.colorService.getMain();if(!e)return;h.prepPicassoDataSet();const t=h.prepPicassoData(e.getData());v(t)}),[m]),e.useEffect((()=>{var e;null!=r&&null!==(e=r.colorService)&&void 0!==e&&e.getMain()&&n.update&&h&&y&&S().then((()=>{const{layoutService:e,discrete:t,legendLayoutService:i}=r;if(i){1===e.getLayoutValue("scrollStartPos")&&i.setDataPages([t.query.getCurrentDataPage()])}n.update(),yD.cacheProperties({viewCache:a,layout:e.getLayout()})}))}),[y]),e.useEffect((()=>{if(!(l&&u&&h&&null!=n&&n.update&&null!=r&&r.colorService.getMain()))return;const{viewModel:e}=r;e.animations.isSizeChanging=!0;const{dockService:t,themeService:o}=r;t.update({width:l,height:u}),o.setTheme(i.theme),S().then((()=>{n.update&&n.update()}))}),[l,u]),e.useEffect((()=>{if(null==n||!n.update)return;const{viewModel:e}=r;n.update({partialData:!0,excludeFromUpdate:["mini-marker","dim-title","measure-title","ref-line","grid-line"]}),e.animations.isPartialUpdating=!1}),[b])}const L8=e=>"[object Object]"===Object.prototype.toString.call(e),I8=e=>Array.isArray(e);function R8(e,t){if(e===t)return!0;if(I8(e)){if(!I8(t))return!1;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!R8(e[n],t[n]))return!1;return!0}if(L8(e)){if(!L8(t))return!1;const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r=0;r<n.length;r++){if(!Object.hasOwn(t,n[r]))return!1;if(!R8(e[n[r]],t[n[r]]))return!1}return!0}return e===t}function P8({enable:t=!0}={}){const n=e.useModel(),r=()=>Date.now().toString()+Math.random(),[i,o]=e.useState(r()),a={properties:void 0};return e.useEffect((()=>{if(!n||!n.getEffectiveProperties||!t)return()=>{};const e=()=>{n.getEffectiveProperties().then((e=>{const t=Cg(!0,{},e);if(!a.properties)return void(a.properties=t);const n=function(e,t){var n,r,i,o;const a={properties:!1,exclude:!1};if(e===t)return a;const s=Cg(!0,{},e),l=Cg(!0,{},t);return a.exclude=!R8(null===(n=s.qHyperCubeDef)||void 0===n?void 0:n.qLayoutExclude,null===(r=l.qHyperCubeDef)||void 0===r?void 0:r.qLayoutExclude),null===(i=s.qHyperCubeDef)||void 0===i||delete i.qLayoutExclude,null===(o=l.qHyperCubeDef)||void 0===o||delete o.qLayoutExclude,a.properties=!R8(s,l),a}(a.properties,t);a.properties=t,n.exclude&&!n.properties&&o(r())}))};return n.on("changed",e),e(),()=>{n.removeListener("changed",e)}}),[t]),i}const z8=({properties:e,layout:t,isStacked:n,isContinuous:r,model:i,layoutService:o})=>{var a,s;const l=t.qHyperCube.qDimensionInfo.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)})),u=t.qHyperCube.qMeasureInfo.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)})),c=Cg(!0,{},e);return((e,t,n)=>{const{color:{mode:r}}=n;e.length>1&&n.color?n.color.persistent=!0:"byDimension"===r&&t.length>1?n.color.mode="byMultiple":"byExpression"===r&&0===t.length?n.color.mode="primary":0===e.length&&t.length>0&&(n.color.byMeasureDef=void 0,n.color.byDimDef=void 0,1===t.length&&"byExpression"!==r&&(n.color.mode="primary"))})(l,u,e),l.length>1&&n&&!r&&"S"===e.qHyperCubeDef.qMode&&(e.qHyperCubeDef.qMode="K"),l.length<2&&"K"===e.qHyperCubeDef.qMode&&(e.qHyperCubeDef.qMode="S"),null===(a=i.colorSupport)||void 0===a||null===(s=a.colorByUpdater)||void 0===s||s.call(a,e,"qHyperCubeDef.",t),function({properties:e,layoutService:t}){const{filteredFields:n}=t.meta;if(!(n.measures.length>0))return;const{mode:r}=e.color||{};if("byExpression"===r){var i;if("colorByExpression"===(null===(i=t.getLayout().qHyperCube.qMeasureInfo)||void 0===i||null===(i=i[0])||void 0===i||null===(i=i.qAttrExprInfo)||void 0===i||null===(i=i[0])||void 0===i?void 0:i.id))return;const{current:r,target:o}=function({properties:e,filtered:t}){const{qMeasures:n}=e.qHyperCubeDef||[],{current:r,target:i}=n.reduce(((e,n,r)=>{var i;return"colorByExpression"===(null===(i=n.qAttributeExpressions[0])||void 0===i?void 0:i.id)&&(e.current=r),void 0!==e.target||t.includes(r)||(e.target=r),e}),{current:void 0,target:void 0});return{current:r,target:i}}({properties:e,filtered:n.measures});if(void 0===r)return;const a=e.qHyperCubeDef.qMeasures[r].qAttributeExpressions[0];e.qHyperCubeDef.qMeasures[r].qAttributeExpressions.splice(0,1),e.qHyperCubeDef.qMeasures[o].qAttributeExpressions.splice(0,0,a)}}({properties:e,layoutService:o}),!xS.compare(c,e,!0)&&JSON.stringify(c)!==JSON.stringify(e)&&(e.hash=Math.random(),!0)};var F8={exports:{}};!function(e,t){self,e.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,u,c,d=arguments[0],f=1,h=arguments.length,p=!1;for("boolean"==typeof d&&(p=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<h;++f)if(null!=(t=arguments[f]))for(n in t)r=l(d,n),d!==(i=l(t,n))&&(p&&i&&(a(i)||(u=o(i)))?(u?(u=!1,c=r&&o(r)?r:[]):c=r&&a(r)?r:{},s(d,{name:n,newValue:e(p,c,i)})):void 0!==i&&s(d,{name:n,newValue:i}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,u,c,d=arguments[0],f=1,h=arguments.length,p=!1;for("boolean"==typeof d&&(p=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<h;++f)if(null!=(t=arguments[f]))for(n in t)r=l(d,n),d!==(i=l(t,n))&&(p&&i&&(a(i)||(u=o(i)))?(u?(u=!1,c=r&&o(r)?r:[]):c=r&&a(r)?r:{},s(d,{name:n,newValue:e(p,c,i)})):void 0!==i&&s(d,{name:n,newValue:i}));return d}}},n={};function r(t){var i=n[t];if(void 0!==i)return i.exports;var o=n[t]={exports:{}};return e[t](o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};(()=>{r.r(i),r.d(i,{default:()=>Oe});var e=r(229),t=r.n(e);const n=function(e,t,n){if(!t)return!1;var r,i=t.split("."),o=i[i.length-1],a=e;for(r=0;r<i.length-1;++r)void 0===a[i[r]]&&(a[i[r]]=Number.isNaN(+i[r+1])?{}:[]),a=a[i[r]];if(void 0!==n){var s=a[o];return a[o]=n,{updated:n,previous:s}}return delete a[o],!1},o=function(e,t,n){var r,i=t.split("."),o=e;if(void 0===o)return n;for(r=0;r<i.length;++r){if(void 0===o[i[r]])return n;o=o[i[r]]}return o},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var s="".concat(" ","(").concat(" "),l="".concat(" ",")").concat(" ");function u(e){return s+e+l}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,i=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===i)return r;if(r.qDerivedFieldData)for(var o=0;o<r.qDerivedFieldData.qDerivedFieldLists.length;++o)for(var a=r.qDerivedFieldData.qDerivedFieldLists[o],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===i)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return r&&r.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function f(e,t){var n=e.crossAllDimensions;return 2===t&&n?"RowNo(Total)":"RowNo()"}function h(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function p(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(e,t){var n=e.crossAllDimensions;return 2===t&&n?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function y(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(y("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(y("MaxString(".concat(t,")")),")'\"}")}function b(e){var t=e.modifier,n=void 0===t?{}:t,r=e.dimensions,i=e.dimensionAndFieldList,o=e.funcComp,a=void 0===o?"Sum":o,s=e.valueComp,l=void 0===s?"0":s;if(!n.showExcludedValues)return"";if(r&&1===r.length){var u=v(c(r[0],i),p(0));return"".concat(a,"({1<").concat(u,">}").concat(l,")")}if(r&&2===r.length){var d=c(r[0],i),f=c(r[1],i),h=p(0),m=p(1),g=v(d,h),y=v(f,m);return"".concat(a,"({1<").concat(g,",").concat(y,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function x(e){return"".concat(e,"(")}function w(e){var t=e.properties,n=e.layout;return o(t,"qHyperCubeDef.qDimensions",o(n,"qHyperCube.qDimensionInfo",[])).length}const S={isFullRange:d,getNumDimensions:w,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,i=e.dimensionAndFieldList,o=e.treatMissingAsNull,a=u(h(t));if(!n.showExcludedValues)return a;var s=b({modifier:n,dimensions:r,dimensionAndFieldList:i}),l=o?"":", 0";if(r&&1===r.length){var c=p(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(r&&2===r.length){var d=p(0),f=p(1);return"If(Count(".concat(d,") * Count(").concat(f,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:f,getNumStepComp:function(e,t){if(!d(e)){var n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return f(e,t)},getAboveCompPrefix:m,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return m(e,t)+n+g(r)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:b,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,i=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===i&&2===w({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=p(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var i=["Descending","Ascending"],o=n.qSortByNumeric?"(Numeric, ".concat(i[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(i[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(o,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(o,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:h,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(s);if(-1!==n){var r=t.indexOf(l);if(-1!==r)return t.substring(n+s.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach((function(n){void 0===e[n]&&(e[n]=t[n])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,i=void 0===r?1:r,o=e.maxDimensions,a=void 0===o?2:o;if(!t&&!n)return!0;var s=w({properties:t,layout:n});return s>=i&&s<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(s),n=e.indexOf(l);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:p,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,n){var r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var i=n.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));i&&t!==i.qDef.qLabel&&(r=i.qLibraryId||i.qDef.base.qLibraryId?"[".concat(i.qDef.qLabel,"]"):i.qDef.base.qDef);var o=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);r=r.startsWith("=")?r.substr(1):r,r="".concat(o,"(").concat(r,", ").concat(e.steps,")")}return r},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[n]&&r.includes(a.EXPRESSIONS[n].toLowerCase())&&(t=n),n})),t}};function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function k(e){return k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},k(e)}var C=t().bind(null,!0),q={},E=Array.isArray;function D(e){return null!=e&&!Array.isArray(e)&&"object"===k(e)}function T(e){return void 0===e}function N(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function O(e,t){var n,r=t.substring(1).split("/").slice(0,-1);return r.forEach((function(t,i){if(i!==r.length){n=+t;var o=Number.isNaN(n)?{}:[];e[n||t]=T(e[n||t])?o:e[t],e=e[n||t]}})),e}function A(e,t){var n=!0;if(D(e)&&D(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(r){A(e[r],t[r])||(n=!1)})),n);if(E(e)&&E(t)){if(e.length!==t.length)return!1;for(var r=0,i=e.length;r<i;r+=1)if(!A(e[r],t[r]))return!1;return!0}return e===t}q.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach((function(i){var o=function(e){return e?C({},{val:e}).val:e}(t[i]),a=e[i],s="".concat(n,"/").concat(i);A(o,a)||N(t,i)||(T(a)?r.push({op:"add",path:s,value:o}):D(o)&&D(a)?r=r.concat(q.generate(a,o,s)):E(o)&&E(a)?r=r.concat(function(e,t,n){var r=[],i=e.slice(),o=-1;function a(e,t,n){if(e[n]&&T(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,i=e.length;r<i;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(A(t,i))return r;if(!T(t[0])&&T(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var s=i.length-1;s>=0;s-=1)-1===(o=a(t,i[s].qInfo&&i[s].qInfo.qId,s))?(r.push({op:"remove",path:"".concat(n,"/").concat(s)}),i.splice(s,1)):r=r.concat(q.generate(i[s],t[o],"".concat(n,"/").concat(s)));for(var l=0,u=t.length;l<u;l+=1)-1===(o=a(i,t[l].qInfo&&t[l].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(l),value:t[l]}),i.splice(l,0,t[l])):o!==l&&(r.push({op:"move",path:"".concat(n,"/").concat(l),from:"".concat(n,"/").concat(o)}),i.splice(l,0,i.splice(o,1)[0]));return r}(a,o,s)):r.push({op:"replace",path:"".concat(n,"/").concat(i),value:o}))})),Object.keys(e).forEach((function(i){T(t[i])&&!N(e,i)&&r.push({op:"remove",path:"".concat(n,"/").concat(i)})})),r},q.apply=function(e,t){t.forEach((function(t){var n,r,i=O(e,t.path),o=t.path.split("/").splice(-1)[0],a=o&&Number.isNaN(+o)?i[o]:i[+o]||i,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(i=null,a=e),"add"===t.op||"replace"===t.op)if(E(i))"-"===o&&(o=i.length),i.splice(+o,"add"===t.op?0:1,t.value);else if(E(a)&&E(t.value)){var l,u=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return M(e)}(r=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return M(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?M(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(D(a)&&D(t.value))n=a,Object.keys(n).forEach((function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!N(n,e)&&delete n[e]})),C(a,t.value);else{if(!i)throw new Error("Patchee is not an object we can patch");i[o]=t.value}else if("move"===t.op){var c=O(e,t.from);E(i)?i.splice(+o,0,c.splice(+s,1)[0]):(i[o]=c[s],delete c[s])}else"remove"===t.op&&(E(i)?i.splice(+o,1):delete i[o])}))},q.clone=function(e){return C({},e)},q.createPatch=function(e,t,n){var r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},q.updateObject=function(e,t){Object.keys(e).length?q.apply(e,q.generate(e,t)):C(e,t)};const _=q,L=function(e,n,r){if(!e)return Promise.resolve();var i=_.generate(n,r);return t()(!0,n,r),i&&i.length?(i=i.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(i,!0)):Promise.resolve()};var I="accumulation";function R(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===I)return n[r]}function P(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===I)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var z={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const F={translationKey:"properties.modifier.accumulation",needDimension:S.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return S.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=S.getNumDimensions({properties:r,layout:i}));var u=o(r,"qHyperCubeDef.qDimensions",[]),c=S.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:s}),d=S.getNumStepComp(n,l),f=S.getAboveComp(n,l,c,d),h=S.getRangeComp("RangeSum",f);if(S.needDimension({modifier:n,properties:r,layout:i})){var p=S.getDimComp(u,1),m=S.getDimComp(u,0),g=S.getAggrComp(h,p,m);h=n.showExcludedValues?S.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:s,valueComp:g}):g}return h},extractInputExpression:S.extractInputExpression,initModifier:function(e){S.initModifier(e,z)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!S.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(P(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(P(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(P(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(P(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=R(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=R(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(P(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return S.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(I))return!1;var o=R(t,e);return o&&!o.disabled}};return n}};var j="movingAverage";function B(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===j)return n[r]}function H(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===j)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var V={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const $={translationKey:"properties.modifier.movingAverage",needDimension:S.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return S.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,i=e.properties,a=e.layout,s=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return n;var u=s;void 0===u&&(u=S.getNumDimensions({properties:i,layout:a}));var c=o(i,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,f=S.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:c,dimensionAndFieldList:l,treatMissingAsNull:d}),h=S.getNumStepComp(r,u),p=S.getAboveComp(r,u,f,h);if(r.nullSuppression)t=S.getRangeComp("RangeAvg",p);else{var m=S.getRangeComp("RangeSum",p),g=function(e,t){var n=S.getRowNoComp(e,t);if(!S.isFullRange(e)){var r=e.steps,i="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(i,", ").concat(n,")")}return n}(r,u);t="".concat(m," / ").concat(g)}var y=t;if(S.needDimension({modifier:r,properties:i,layout:a})){var v=S.getDimComp(c,1),b=S.getDimComp(c,0),x=S.getAggrComp(y,v,b);y=r.showExcludedValues?S.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return y},extractInputExpression:S.extractInputExpression,initModifier:function(e){S.initModifier(e,V)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!S.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(H(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(H(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(H(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(H(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=B(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=B(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(H(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(H(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return S.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(j))return!1;var o=B(t,e);return o&&!o.disabled}};return n}};var U="timeSeriesDecomposition";function W(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===U)return n[r]}function Y(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===U)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var K={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const G={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:S.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return S.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?S.generateTSDExpression(n,t,r):t},extractInputExpression:S.extractInputExpression,initModifier:function(e,t){S.initModifier(e,K),""===e.decomposition&&t&&(e.decomposition=S.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!S.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(Y(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(Y(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,n){var r=W(t,e);if(r){var i=r.steps;r.steps="number"!=typeof i||Number.isNaN(i)?2:Math.abs(i),n.properties.qHyperCubeDef.qMeasures=n.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=i:e.steps=e.steps,e})),e}))}},show:function(t){var n=W(t,e);return n&&!n.fullRange}}},show:function(e,t){return S.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(U))return!1;var o=W(t,e);return o&&!o.disabled}};return n}};var X="difference";function J(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===X)return n[r]}function Q(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===X)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Z={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:S.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return S.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:S.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=S.getNumDimensions({properties:r,layout:i}));var u=o(r,"qHyperCubeDef.qDimensions",[]),c=S.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:s}),d=S.getAboveComp(n,l,c),f="".concat(c," - ").concat(d);if(S.needDimension({modifier:n,properties:r,layout:i})){var h=S.getDimComp(u,1),p=S.getDimComp(u,0),m=S.getAggrComp(f,h,p);f=n.showExcludedValues?S.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:s,funcComp:"Only",valueComp:m}):m}return f},initModifier:function(e){Object.keys(Z).forEach((function(t){void 0===e[t]&&(e[t]=Z[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!S.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Q(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Q(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Q(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return S.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(X))return!1;var o=J(t,e);return o&&!o.disabled}};return n}};var te="normalization";function ne(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===te)return n[r]}function re(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===te)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function ie(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var oe={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,n){return 1===e?"{$<".concat(S.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,n){return 0===e&&t>1?"<".concat(S.getDimDefWithWrapper(n),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return S.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:S.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=S.getNumDimensions({properties:r,layout:i}));var u=o(r,"qHyperCubeDef.qDimensions",[]),c=S.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:s}),d=n.selectionScope,f=n.dimensionalScope;return function(e,t,n,r,i,o,a){var s=ae(t),l=se(t,n,r),u=""===s&&""===l?"":s||l,c=le(i,o),d=ue(i,o,a),f=function(e){for(var t=[],n=0;n<e;n++)t[n]=S.getDimDefWithWrapper(n);return t.join(", ")}(o);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(f,"))")}(c,d,n.field,n.value,f,l,n.primaryDimension)},initModifier:function(e){Object.keys(oe).forEach((function(t){void 0===e[t]&&(e[t]=oe[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!S.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(re(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(n){return function(e,t,n){var r=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return r=function(e,t,n){if(1===e){var r=ie(t,0);t.splice(r,1)}return t}(ne(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(re(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===ne(t,e).selectionScope}},value:{refFn:function(t){return"".concat(re(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===ne(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(re(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(n,r){return function(e,t,n,r){var i=t.layout.qHyperCube.qDimensionInfo.length,o=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===i?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===i?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===i?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===i?"disregardAllDimensions":"disregardDimension",".tooltip")}];return o=function(e,t,n){if(e<2){var r=ie(t,0);t.splice(r,1)}return t}(i,o),o=function(e,t,n){if(0===e){var r=ie(t,1);t.splice(r,1)}return t}(ne(e,r).selectionScope,o),o}(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(re(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,n){return 0===(ne(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return S.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(te))return!1;var o=ne(t,e);return o&&!o.disabled}};return n},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ue};var de="qDef.base",fe="qDef.qDef",he="qDef.base.qDef",pe="qLibraryId",me="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=o(e,he);return void 0!==t?t:o(e,fe)},getExpressionRef:function(e){return void 0!==o(e,he)?he:fe},getLibraryIdRef:function(e){return o(e,me)?me:pe},getLibraryId:function(e){return o(e,me)||o(e,pe)},getLabelRef:function(e){return o(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return o(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var ye="qDef.qDef",ve="qDef.base.qDef",be="qLibraryId",xe="qDef.base.qLibraryId",we="qDef.qLabel",Se="qDef.qLabelExpression",Me="qDef.base.qLabel",ke="qDef.base.qLabelExpression",Ce="qDef.qAggrFunc",qe="qDef.base.qAggrFunc",Ee={initBase:function(e,t){(t||Ee.isValid(e))&&(n(e,ve,o(e,ye)),n(e,xe,o(e,be)),n(e,Me,o(e,we)),n(e,ke,o(e,Se)))},restoreBase:function(e){Ee.isValid(e)&&(n(e,ye,o(e,ve)),n(e,be,o(e,xe)),n(e,we,o(e,Me)),n(e,Se,o(e,ke)),o(e,Ce)&&o(e,qe)&&n(e,Ce,o(e,qe)),delete e.qDef.base)},isValid:function(e){var t=o(e,ve),n=o(e,xe);return void 0!==t||void 0!==n}};const De=Ee;function Te(e){return Te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Te(e)}var Ne={accumulation:F,movingAverage:$,difference:ee,normalization:ce,timeSeriesDecomposition:G};const Oe={modifiers:Ne,apply:_e,applyModifiers:Le,cleanUpMeasure:Ie,destroy:function(e){e&&Ae[e.id]&&Ae[e.id].masterItemSubscriber&&(Ae[e.id].masterItemSubscriber&&Ae[e.id].masterItemSubscriber.unsubscribe(),delete Ae[e.id])},hasActiveModifiers:Re,getActiveModifier:Pe,initBase:De.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Ne[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return Ne[e]&&Ne[e].isApplicable({properties:n,layout:r})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,i=!1,o=!1;return t.forEach((function(e){var t=je(e);Ye({modifiers:t,properties:n,layout:r})&&(i=!0,o=o||Qe({modifiers:t,properties:n,layout:r}))})),i&&!o},ifEnableTotalsFunction:ze};var Ae={};function _e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,i=e.isSnapshot,a=void 0!==i&&i,s=e.masterItem,l=!1;Ae[n.id]=Ae[n.id]||{isFirstTime:!0};var u=Ae[n.id].isFirstTime;if(Ae[n.id].isFirstTime=!1,r&&"object"===Te(r))return Le({model:n,properties:r});var c=n?n.layout:void 0,d=o(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var f=o(c,"qHyperCube.qMeasureInfo"),h=Ae[n.id].lastReloadTime;if(Ae[n.id].lastReloadTime=o(n,"app.layout.qLastReloadTime"),Re({measures:f,layout:c})){var p=function(e){var t=e.measures,n=e.layout,r=e.lastReloadTime;return o(e.model,"app.layout.qLastReloadTime")!==r&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return We({measure:e,properties:n,layout:r})}))}({measures:t,layout:n})}({measures:f,layout:c,model:n,lastReloadTime:h});return p||function(e){var t=e.measures,n=e.layout,r=e.masterItem,i=e.isFirstTime;return!!Array.isArray(t)&&(i||r||t.some((function(e){return function(e){var t=e.measure,n=e.layout;return Ye({modifiers:je(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})})))}({measures:f,layout:c,masterItem:s,isFirstTime:u})?n.getEffectiveProperties().then((function(e){var r=t()(!0,{},e);He(r);var i=Ze(r);return Ke({model:n}).then((function(t){return Ge({libraryIds:i,model:n}).then((function(i){return p&&function(e){var t=e.properties;Fe(t).forEach((function(e){return function(e){var t=e.measure;if(We({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach((function(e){if("object"===Te(e)&&!e.disabled){if(n++,"object"!==Te(Ne[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(n>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var r=Ne[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&$e(t)&&S.simplifyExpression(t.qDef.base.qDef)!==S.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}({properties:r}),Le({model:n,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:s,libraryItemsProps:i,dimensionAndFieldList:t})}))}))})):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Te(e.base)}))}(f)?n.getEffectiveProperties().then((function(e){return function(e){var n=e.model,r=e.properties,i=Ze(r);return et({model:n,libraryIds:i}).then((function(){var e=t()(!0,{},r);return Fe(r).forEach((function(e){return Ie(e)})),Je({oldProperties:e,newProperties:r,model:n})}))}({model:n,properties:e})})):Promise.resolve(l)}function Le(e){var n=e.model,r=e.oldProperties,i=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=l?t()(!0,{},i):i),He(i);var f=Ze(i);return et({model:n,libraryIds:f,masterItem:u}).then((function(){return function(e){var n=e.measures,r=e.properties,i=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(n||(n=Fe(r)),!n.length)return Promise.resolve();if(!Re({measures:n,properties:r}))return n.forEach((function(e){return Ie(e)})),Promise.resolve();var l=a?void 0:Ze(r);return Ke({model:i,dimensionAndFieldList:s}).then((function(e){return Ge({libraryIds:l,model:i,libraryItemsProps:a}).then((function(i){n.forEach((function(n){Ye({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,i=e.libraryItemsProps,a=e.dimensionAndFieldList,s=0;De.isValid(n)||De.initBase(n,!0);var l=n.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Te(e)&&!e.disabled){if(s++,"object"!==Te(Ne[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(s>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Ne[e.type].initModifier(e,n);var l=n.qLibraryId||c&&c.qLibraryId;l?function(e){var n=e.measure,r=e.modifier,i=e.properties,o=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:Ne[r.type].generateExpression({expression:s,modifier:r,properties:i,dimensionAndFieldList:o});r.outputExpression=l,n.qDef.qDef=r.outputExpression,(n.qDef.qLabel||a.qMeasure.qLabel)&&(n.qDef.qLabel=a.qMeasure.qLabel),(n.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(n.qDef.qLabelExpression=a.qMeasure.qLabelExpression),n.qDef.quarantine&&n.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(n.qDef.qNumFormat=a.qMeasure.qNumFormat,n.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete n.qLibraryId,n.qDef.coloring=a.qMeasure.coloring,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,libraryId:l,properties:r,libraryItemsProps:i,dimensionAndFieldList:a}):function(e){var n=e.measure,r=e.modifier,i=e.properties,o=e.dimensionAndFieldList;"function"==typeof Ne[r.type].updateModifier&&Ne[r.type].updateModifier(r,i.qHyperCubeDef);var a=ge.getExpression(n),s=""===a?a:Ne[r.type].generateExpression({expression:a,modifier:r,properties:i,dimensionAndFieldList:o});r.outputExpression=s,n.qDef.qDef=r.outputExpression,n.qDef.base.qLabelExpression?n.qDef.qLabelExpression=n.qDef.base.qLabelExpression:n.qDef.qLabel=n.qDef.base.qLabel||a,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,properties:r,dimensionAndFieldList:a}),function(e){var t=o(e,"qDef.qAggrFunc");"Expr"!==t||ze(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&ze(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(n)}}))}({measure:n,properties:r,libraryItemsProps:i,dimensionAndFieldList:e}),Ve(n)):Ie(n)}))}))}))}({measures:a,properties:i,model:n,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return l?Je({oldProperties:r,newProperties:i,model:n}):Promise.resolve(!1)}))}))}function Ie(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some((function(e){return"object"===Te(e)&&!e.disabled&&!Ne[e.type]}))}(e)?De.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Ve(e)}function Re(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ye({modifiers:je(e),properties:n,layout:r})}))}function Pe(e){var t=je(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(Ne[r.type]&&!r.disabled)return r}}function ze(e){var t=Pe(e);return!t||Ne[t.type].enableTotalsFunction(e)}function Fe(e){return o(e,"qHyperCubeDef.qMeasures",[]).concat(o(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function Be(e){return o(e,"outputExpression.qValueExpression.qExpr")||o(e,"outputExpression")}function He(e){Fe(e).forEach((function(e){return function(e){var n=Pe(e);n&&(void 0!==n.outputExpression&&Be(n)!==e.qDef.qDef?delete e.qDef.base:!De.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)}))}function Ve(e){var t=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===Te(t)&&(t.disabled||!Ne[t.type]&&Be(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function $e(e){return e.base||e.qDef&&e.qDef.base}function Ue(e){var t=$e(e);return e.qLibraryId||t&&t.qLibraryId}function We(e){var t=e.measure,n=e.properties,r=e.layout;return!Ue(t)&&Ye({modifiers:je(t),properties:n,layout:r})}function Ye(e){var t=e.modifiers,n=e.properties,r=e.layout,i={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Te(e)||e.disabled||!Ne[e.type])&&(void 0===i[e.type]&&(i[e.type]=Ne[e.type].isApplicable({properties:n,layout:r})),i[e.type])}))}function Ke(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],i={},o=t.app.getDimensionList().then((function(e){i.dimensionList=e}));r.push(o);var a=t.app.getFieldList().then((function(e){i.fieldList=e}));return r.push(a),Promise.all(r).then((function(){return i}))}function Ge(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var i=t.measureLibraryIds,o=t.dimensionLibraryIds,a={},s=[];return i.forEach((function(e){var t=n.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),o.forEach((function(e){var t=n.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),Promise.all(s).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,n=e.newProperties,r=e.model,i=JSON.stringify(o(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(o(n,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(o(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(o(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return i?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,i=t.layout;return i&&!i.qHasSoftPatches&&!i.qExtendsId&&o(i,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):L(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then((function(){return i})):Promise.resolve(i)}function Qe(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Te(e)&&!e.disabled&&Ne[e.type]&&Ne[e.type].needDimension({modifier:e,properties:n,layout:r})}))}function Ze(e){var t=Fe(e),n=[],r=[],i=!1;return t.forEach((function(t){var r=je(t);if(Ye({modifiers:r,properties:e})){var o=Ue(t);o&&n.push(o),i=i||Qe({modifiers:r,properties:e})}})),o(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&r.push(t)})),{measureLibraryIds:n,dimensionLibraryIds:r}}function et(e){var t=e.model,n=e.libraryIds;return!e.masterItem&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(Ae[t.id].masterItemSubscriber=Ae[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},i={},a={},s={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},n=o(e,"qInfo.qType");return n&&s[n]&&s[n].forEach((function(n){t[n]=o(e,n)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(r[t]){var i=l(e);r[t].properties!==i&&(r[t].properties=i,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function c(e,n){return t.app[n](e).then((function(t){r[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:l(t.layout)}}))}return{subscribe:function(e){var n=e.measureLibraryIds,o=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;i={},e.measureLibraryIds.forEach((function(e){i[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:n,dimensionLibraryIds:o}),Object.keys(r).forEach((function(e){i[e]||a[e]||(r[e].listener.dispose(),delete r[e])})),t.app&&(Object.keys(i).forEach((function(e){i[e]&&!r[e]&&s.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!r[e]&&s.push(c(e,"getDimension"))}))),Promise.all(s)},unsubscribe:function(){Object.keys(r).forEach((function(e){r[e].listener.dispose()})),r={}}}}({model:t,callback:function(e){return _e({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Ae[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),t.default=i.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{function e(t){var n,r=t;return r>9?(n=65+r-10)>90&&(n+=6):r="".concat(r).charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?e(r+1):String.fromCharCode(n)}function t(n){var r=e(n%62),i=Math.floor(n/62);return i>0?t(i)+r:r}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}n.d(r,{default:()=>He});const o={getValue:function(e,t,n){if(null==e||null==t)return n;for(var r=t.split("."),i=e,o=0;o<r.length;++o){var a=r[o];if(""!==a){if(void 0===i[a]||null===i[a])return n;i=i[a]}}return i},setValue:function(e,t,n){if(null!=e&&null!=t){for(var r=t.split("."),i=r[r.length-1],o=e,a=0;a<r.length-1;++a){var s=r[a];void 0!==o[s]&&null!==o[s]||(o[s]=Number.isNaN(+r[a+1])?{}:[]),o=o[s]}void 0!==n?o[i]=n:delete o[i]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(i(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return r;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var n=e.indexOf(t[0]);if(-1!==n){for(var r=0;r<t.length;r++){var i=e.indexOf(t[r]);if(n>i)return!1;n=i}return!0}return!1},indexAdded:function(e,t){var n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){var n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r},findItemByPropertyValue:function(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return e[r];return null}return null},findIndexByPropertyValue:c};var f=n(645),h=n.n(f);const p=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,i=n.data[0];(t=i.dimensions).push.apply(t,a(r.qDimensions));var s,l=o.getValue(r,"qLayoutExclude.qHyperCubeDef.qDimensions");l&&(s=i.excludedDimensions).push.apply(s,a(l))},m=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,i=n.data[0];(t=i.measures).push.apply(t,l(r.qMeasures));var a,s=o.getValue(r,"qLayoutExclude.qHyperCubeDef.qMeasures");s&&(a=i.excludedMeasures).push.apply(a,l(s))},g=function(e){var t=e.exportFormat,n=e.qHyperCubeDef,r=t.data[0];n.qInterColumnSortOrder||(n.qInterColumnSortOrder=[]),r.interColumnSortOrder=n.qInterColumnSortOrder.concat();var i=o.getValue(n,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");i&&d.isOrderedSubset(i,r.interColumnSortOrder)&&(r.interColumnSortOrder=i.concat())},y=function(e){var t=e.exportFormat,n=e.properties;Object.keys(n).forEach((function(e){t.properties[e]=n[e]}))},v=function(e){var t=e.exportFormat,n=e.properties;n.qLayoutExclude||(n.qLayoutExclude={}),n.qLayoutExclude.disabled&&(Object.keys(n.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=n.qLayoutExclude.disabled[e])})),delete n.qLayoutExclude.disabled),n.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===o.getValue(e,t)&&o.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(n),delete n.qLayoutExclude.changed),n.qLayoutExclude.quarantine&&!o.isEmpty(n.qLayoutExclude.quarantine)||delete n.qLayoutExclude},b=function(e){e.forEach((function(e){h().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,n){var r,i,a=o.getValue(e,t);if(!o.isAtomicValue(a))try{if((i=(i=(r=JSON.stringify(a)).match(/:\{/g))?i.length:0)>2)return;a=JSON.parse(r)}catch(e){return}o.getValue(e,"qLayoutExclude.quarantine")||o.setValue(e,"qLayoutExclude.quarantine",{});var s=o.getValue(e,"qLayoutExclude.quarantine");s[n]||(s[n]={}),s[n][t]=a}var w=n(229),S=n.n(w);function M(e,t){var n=S()(!0,{},t,e);return o.getValue(n,"qOtherTotalSpec.qOtherCounted")||o.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),o.getValue(n,"qOtherTotalSpec.qOtherLimit")||o.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function k(e,t){return S()(!0,{},t,e)}function C(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var q=Math.pow(2,53)-1;function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const T=function(e,t,n){var r="masterobject"===o.getValue(t,"properties.qInfo.qType")?"masterobject":o.getValue(n,"qInfo.qType");o.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},N=function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},O=function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},A=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},_=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},L=function(e){var t,n=e.exportFormat,r=e.maxDimensions,i=e.minDimensions,o=e.newHyperCubeDef,a=e.defaultDimension,s=n.data[0];for(t=0;t<s.dimensions.length;++t){var l=M(s.dimensions[t],a);o.qDimensions.length<r?o.qDimensions.push(l):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(l)}for(t=0;t<s.excludedDimensions.length;++t){var u=M(s.excludedDimensions[t],a);o.qDimensions.length<i?o.qDimensions.push(u):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},I=function(e){var t,n=e.exportFormat,r=e.maxMeasures,i=e.minMeasures,o=e.newHyperCubeDef,a=e.defaultMeasure,s=n.data[0];for(t=0;t<s.measures.length;++t){var l=k(s.measures[t],a);o.qMeasures.length<r?o.qMeasures.push(l):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(l)}for(t=0;t<s.excludedMeasures.length;++t){var u=k(s.excludedMeasures[t],a);o.qMeasures.length<i?o.qMeasures.push(u):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},R=function(e){var t=e.exportFormat,n=e.dataDefinition,r=void 0===n?{}:n,i=t.data[0],o=r.dimensions||{max:0},a=r.measures||{max:0},s=C(a.max,i.dimensions.length,q),l=C(a.min,i.dimensions.length,0);return{maxDimensions:C(o.max,s,q),minDimensions:C(o.min,l,0),maxMeasures:s,minMeasures:l}},P=function(e){var t=e.exportFormat,n=e.newHyperCubeDef,r=t.data[0],i=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();var o=n.qInterColumnSortOrder.length;if(o!==i)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());o!==i;)o<i?(d.indexAdded(n.qInterColumnSortOrder,o),++o):(--o,d.indexRemoved(n.qInterColumnSortOrder,o))},z=function(e){var t=e.exportFormat,n=e.initialProperties,r=e.hypercubePath,i={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(i.qLayoutExclude.quarantine=S()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?o.setValue(i,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?i[e]=t.properties[e]:i.qLayoutExclude.disabled[e]=t.properties[e]})),null===(i=S()(!0,{},n,i)).components&&(i.components=[]),i},F=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,i=e.maxMeasures,o=e.minMeasures,a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>i&&i>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>o||!i&&a.measures.length>0||!n&&a.dimensions.length>0},j=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,i=e.maxMeasures,o=e.minMeasures,a=e.newHyperCubeDef,s=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>n&&n>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>i&&i>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>o)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!i&&s.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&s.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},B=function(e){var t,n=e.newProperties,r=e.dataDefinition,i=e.hypercubePath;if(r.dimensions&&"function"==typeof r.dimensions.added){var a=o.getValue(n,i||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return E(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return E(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],s.forEach((function(e){a.qDimensions.push(e),r.dimensions.added(e,n)}))}},H=function(e){var t,n=e.newProperties,r=e.dataDefinition,i=e.hypercubePath;if(r.measures&&"function"==typeof r.measures.added){var a=o.getValue(n,i||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return D(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return D(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?D(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],s.forEach((function(e){a.qMeasures.push(e),r.measures.added(e,n)}))}},V=function(e){var t=e.measures,n=e.modifierTypes;t&&n&&h().isSupportedModifiers(n)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function $(e,t){var n=o.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!n&&(Object.keys(n).forEach((function(t){o.setValue(e,t,n[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const U={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,s=o.getValue(a,n||""),l=s.qHyperCubeDef;return l.qInterColumnSortOrder||(l.qInterColumnSortOrder=[]),p({exportFormat:i,qHyperCubeDef:l}),m({exportFormat:i,qHyperCubeDef:l}),g({exportFormat:i,qHyperCubeDef:l}),delete l.qLayoutExclude,y({exportFormat:i,properties:a}),n&&(i.properties.qHyperCubeDef=l,delete s.qHyperCubeDef),v({exportFormat:i,properties:a}),r||b(i.properties.qHyperCubeDef.qMeasures),Array.isArray(i.properties.filters)&&(x(i.properties,"filters","storedFilters"),delete i.properties.filters),i.properties.qHyperCubeDef.qContextSetExpression&&(x(i.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),i.properties.qHyperCubeDef.qContextSetExpression=""),i.properties.qHyperCubeDef.qDynamicScript&&i.properties.qHyperCubeDef.qDynamicScript.length&&(x(i.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),i.properties.qHyperCubeDef.qDynamicScript=[]),i},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=void 0===n?{}:n,i=e.dataDefinition,a=void 0===i?{}:i,s=e.defaultPropertyValues,l=void 0===s?{}:s,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,f=void 0===d||d,h=e.isHCModifierSupported,p=void 0===h||h,m={qChildren:[]},g=z({exportFormat:t,initialProperties:r,hypercubePath:u}),y=o.getValue(r,u||"").qHyperCubeDef,v=o.getValue(g,u||"").qHyperCubeDef,b=R({exportFormat:t,dataDefinition:a}),x=b.maxDimensions,w=b.minDimensions,S=b.maxMeasures,M=b.minMeasures,k=l.defaultDimension,C=void 0===k?A():k,q=l.defaultMeasure,E=void 0===q?_():q;v.qDimensions.length=0,v.qMeasures.length=0,F({exportFormat:t,maxDimensions:x,minDimensions:w,maxMeasures:S,minMeasures:M})&&j({exportFormat:t,maxDimensions:x,minDimensions:w,maxMeasures:S,minMeasures:M,newHyperCubeDef:v}),L({exportFormat:t,maxDimensions:x,minDimensions:w,newHyperCubeDef:v,defaultDimension:C}),I({exportFormat:t,maxMeasures:S,minMeasures:M,newHyperCubeDef:v,defaultMeasure:E}),B({newProperties:g,dataDefinition:a,hypercubePath:u}),H({newProperties:g,dataDefinition:a,hypercubePath:u}),P({exportFormat:t,newHyperCubeDef:v}),N("qMaxStackedCells",y,v),N("qNoOfLeftDims",y,v),O("qInitialDataFetch",y,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),O("qMode",y,v,"S"),O("qReductionMode",y,v,"N"),O("qSortbyYValue",y,v),O("qIndentMode",y,v),O("qShowTotalsAbove",y,v),T(g,t,r),m.qProperty=g;var D=o.getValue(c||{},"support.modifiers");return V({measures:v.qMeasures,modifierTypes:D}),f&&$(m.qProperty,"storedFilters"),"S"===v.qMode&&p&&$(m.qProperty,"dynamicScript"),m}};var W={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function Y(e,t,n,r){t=t||[];var i=c(e,r,n),o=c(t,r,n);if(-1!==i&&-1===o){var a=e.splice(i,1);t.push(a[0])}return t}function K(e,t){return e.length!==t}const G={create:function(e,t){if(!e||!W[e])throw new Error("Attribute Expressions Util: ID required");var n={};return t&&Object.keys(t).forEach((function(e){n[e]=t[e]})),n.id=e,n.qAttribute=!0,n},moveByIdFromGroup:function(e,t,n,r,i){n=n||"qAttributeExpressions",i=i||"id";for(var o=0;o<e.length;o++){var a=e[o][n],s=t.length;if(Y(a,t,r,i),K(t,s))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return o.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return o.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},J={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},Q={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Z={scatterplot:Q,"sn-scatter-plot":Q,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,n){if(Array.isArray(e[t])){var r=d.findIndexByPropertyValue(e[t],"id",n);r>=0&&e[t].splice(r,1)}else e[t]=[]}function te(e,t){var n=G.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)})),t.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)}))}function ne(e,t){if(t){var n="="===t.charAt(0);e.color.altLabel=n?{qStringExpression:{qExpr:t.substr(1)}}:t}}function re(e){var t=e.properties,n=e.isDimension,r=e.dimensions,i=e.excludedDimensions,a=e.measures,s=e.label;te(r,i);var l=r[r.length-1];if(l){var u=n?o.getValue(t,"color.byDimDef"):o.getValue(t,"color.byMeasureDef"),c=o.getValue(t,"color.formatting.qNumFormat"),f=o.getValue(t,"color.formatting.isCustomFormatted");if(u){var h=G.create(G.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,n=e.label,r=e.item,i=e.isDimension,o=e.qNumFormat,a=e.isCustomFormatted;t.label=n||r.label,i?t.qDef=r.key:(t.qExpression=r.key,o&&(t.qNumFormat=o,t.isCustomFormatted=a)),t.matchMeasure=r.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:h,label:s,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:f});break;case"libraryItem":!function(e){var t=e.attributeExpression,n=e.measures,r=e.item,i=e.qNumFormat,o=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(n,"qLibraryId",r.key),i&&(t.qNumFormat=i,t.isCustomFormatted=o)),void 0!==r.expression?t.qExpression=r.expression:t.qLibraryId=r.key,t.colorMapRef=r.key}({attributeExpression:h,measures:a,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:f})}n?(h.qSortBy={qSortByAscii:1},l.qAttributeDimensions.push(h)):l.qAttributeExpressions.push(h)}}}function ie(e,t,n,r){var i,o,a,s={};switch(e){case"dimension":n.qLibraryId?(s.type="dimension",s.name=n.qLibraryId,s.id=n.qLibraryId):(s.type="field",t?(s.name=n.label||n.qDef,s.id=n.qDef):(s.name=n.qDef.qFieldDefs[0],s.label=(a=n.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":i=function(e,t){return t?e.qLibraryId:h().measureBase.getLibraryId(e)}(n,t),i?(s.type="measure",s.name=i,s.id=i,o=function(e,t){return h().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(n,r),o&&(s.expression=o)):(s.type="expression",t?(s.name=n.label||n.qExpression,s.id=n.qExpression):(s.name=n.qDef.qDef,s.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(n)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return s}const oe={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,n,r){var i=n?"expression":t.type,o=e.color,a=o.mode,s=X.getItemLabel(t);switch(ne(e,s||""),i){case"field":a="byDimension",o.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",o.byMeasureDef={label:n||s,key:n||t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",o.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",o.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},o.formatting&&oe.useMasterNumberFormat(o.formatting)}r||(o.auto=!1,o.mode=a)}function se(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=o.getValue(e,"color.byDimDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"color.byDimDef");r.activeDimensionIndex=Math.min(r.activeDimensionIndex,n.length-1);var i=ie("dimension",!1,n[r.activeDimensionIndex]);i.activeDimensionIndex=r.activeDimensionIndex,ae(e,i)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=n[function(e,t,n){var r=o.getValue(t,"visualization"),i=n.split("."),a=Number(i[1]),s=o.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===r&&"point"===s}(n,e,t)?0:n.length-1],i=G.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(r.qAttributeDimensions,"id",i);return ae(e,ie("dimension",!!a,a||r)),!!a}(e,t))return;re({properties:e,isDimension:!0,dimensions:n,excludedDimensions:i,measures:r,label:o.getValue(e,"color.byDimDef.label")})}const le=function(e,t,n){o.setValue(e,t,n),o.isAtomicValue(n)&&function(e,t,n){var r=e.qLayoutExclude;r&&(r.changed||(r.changed={}),r.changed[t]={from:o.getValue(e,t),to:n})}(e,t,n)},ue=function(e,t){var n={primary:!0};if(e){var r=(Z[t]||J).colorModeOptions||J.colorModeOptions;n.byDimension=r.dimension(e),n.byMeasure=r.measure(e),n.byMultiple=r.multiColor(e),n.byExpression=r.expression(e)}return n},ce=function(e){var t=e.canColorBy,n=e.autoColor,r=e.colorMode,i=e.dimensions;return!(t[r]&&!n&&("byDimension"!==r&&"byMeasure"!==r||!i.length))},de=function(e,t){var n,r=o.getValue(e,"color.mode"),i=o.getValue(e,"color.auto"),a=o.getValue(e,"".concat(t,"qDimensions"),[]),s=o.getValue(e,"".concat(t,"qMeasures"),[]),l=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);i?te(a,l):!(n={auto:i,colorMode:r,dimensions:a}).auto&&"byDimension"===n.colorMode&&n.dimensions.length>0?se(e,t):function(e){var t=e.auto,n=e.colorMode,r=e.dimensions,i=e.measures,a=e.properties,s=o.getValue(a,"visualization");return!(t||"byMeasure"!==n||!r.length||"map"!==s&&!i.length)}({auto:i,colorMode:r,dimensions:a,measures:s,properties:e})?function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=o.getValue(e,"color.byMeasureDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var n=o.getValue(e,"".concat(t,"qMeasures"),[]),r=o.getValue(e,"color.byMeasureDef");if(r.activeMeasureIndex=Math.min(r.activeMeasureIndex,n.length-1),r.activeMeasureIndex>-1){var i=ie("measure",!1,n[r.activeMeasureIndex],!0);i.activeMeasureIndex=r.activeMeasureIndex,ae(e,i)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,r)&&function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=n[n.length-1],a=G.IDMAP.COLOR_BY_ALTERNATIVE,s=d.findItemByPropertyValue(i.qAttributeExpressions,"id",a);return ae(e,ie("measure",!!s,s||r[0])),!!s}(e,t))return;re({properties:e,isDimension:!1,dimensions:n,excludedDimensions:i,measures:r,label:o.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var n=o.getValue(e,"color.mode"),r=o.getValue(e,"".concat(t,"qDimensions"),[]),i=o.getValue(e,"".concat(t,"qMeasures"),[]),a=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===n&&i.length<2&&o.setValue(e,"color.mode","primary"),te(r,a)}(e,t)},fe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},he=function(e){var t=e.shouldUpdateColorBy,n=e.properties,r=o.getValue(n,"qHyperCubeDef.qMeasures",[]),i=o.getValue(n,"color.mode","");return!t&&"byExpression"===i&&r.length>0},pe=function(e){var t=o.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),n=o.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:n,id:"colorByExpression"}),o.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},me=function(e){o.setValue(e,"color.mode","primary"),o.setValue(e,"color.auto",!0)},ge=function(e){var t=o.getValue(e,"qHyperCubeDef.qDimensions",[]),n=o.getValue(e,"color.persistent",!1);return t.length>1&&!n},ye={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=U.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),o=i.data[0],a=o.dimensions.concat(o.excludedDimensions),s=o.measures.concat(o.excludedMeasures),l=G.IDMAP,u=l.COLOR_BY_ALTERNATIVE,c=l.COLOR_BY_EXPRESSION;return G.moveByIdFromGroup(a,[],"qAttributeDimensions",u),G.moveByIdFromGroup(a,[],"qAttributeExpressions",u),G.moveByIdFromGroup(s,[],"qAttributeExpressions",c),i},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,i=e.defaultPropertyValues,a=e.hypercubePath,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=U.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:i,hypercubePath:a,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty,f=o.getValue(d,"visualization"),h=o.getValue(d,"qHyperCubeDef.qDimensions",[]),p=o.getValue(d,"color.mode",""),m=o.getValue(d,"color.auto",""),g=ue(d,f),y=ce({canColorBy:g,autoColor:m,colorMode:p,dimensions:h});return g[p]?he({shouldUpdateColorBy:y,properties:d})&&pe(d):me(d),y&&de(d,"qHyperCubeDef."),ge(d)&&le(d,"color.persistent",!0),fe(h),c}};var ve=["bar","marker","line"];const be=function(e){var t=e.initialProperties,n=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?$(n,"unsupportedAutoMinMax")||S()(n.measureAxis,t.measureAxis):$(n,"supportedAutoMinMax")||S()(n.measureAxis,t.measureAxis)},xe=function(e){var t,n=e.exportFormat,r=e.initialProperties,i=e.properties,o=e.measureType,a=i.qHyperCubeDef,s=i.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:n,initialProperties:r})){var l=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var n=e.qDef.series,r=n.type,i=n.axis;t[i]||(t[i]={axis:i,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(r)&&t[i].type[r]++,t[i].type.total++}})),t}(a);l.length?(o&&(t=l.filter((function(e){return e.type[o]>0})).sort((function(e,t){return t.type[o]-e.type[o]}))),t&&t.length||(t=l.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&S()(s,n.properties.measureAxes[t[0].axis])):S()(s,n.properties.measureAxes[0])}},we=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var n=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=n}}},Se={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=e.supportedAutoMinMax,o=void 0===i||i,a=ye.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),s=a.properties;return o?(x(s,"measureAxis.min","supportedAutoMinMax"),x(s,"measureAxis.max","supportedAutoMinMax")):(x(s,"measureAxis.min","unsupportedAutoMinMax"),x(s,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,i=e.defaultPropertyValues,o=e.hypercubePath,a=e.measureType,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=ye.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:i,hypercubePath:o,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty;return be({initialProperties:n,properties:d}),xe({exportFormat:t,initialProperties:n,properties:d,measureType:a}),we(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Me(e,t,n){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(n)}function ke(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,i=e.arrayName,a=e.itemPath;o.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,i=e.item,a=e.itemPath,s=o.getValue(i,a);if(void 0!==s){var l=o.getValue(i,"qDef.cId");l||(l=o.generateId(),o.setValue(i,"qDef.cId",l));var u=Me(n,r,l);o.setValue(t,u,s),o.setValue(i,a,void 0)}}({properties:t,quarantineName:r,arrayName:i,item:e,itemPath:a})}))}function Ce(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,i=e.arrayName,a=e.itemPath;o.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,i=e.item,a=e.itemPath,s=o.getValue(i,"qDef.cId");if(s){var l=Me(n,r,s),u=o.getValue(t,l);void 0!==u&&(o.setValue(i,a,u),o.setValue(t,l,void 0))}}({properties:t,quarantineName:r,arrayName:i,item:e,itemPath:a})}))}var qe="qHyperCubeDef.qMeasures",Ee="conditionalColoring",De="measures",Te="qDef.conditionalColoring";const Ne={quarantine:function(e){ke({properties:e,arrayPath:qe,quarantineName:Ee,arrayName:De,itemPath:Te})},unquarantine:function(e){Ce({properties:e,arrayPath:qe,itemPath:Te,arrayName:De,quarantineName:Ee})}};var Oe="qHyperCubeDef.qMeasures",Ae="measures",_e="qHyperCubeDef.qDimensions",Le="dimensions",Ie="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Re="alternativeMeasures",Pe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",ze="alternativeDimensions",Fe="qCalcCondition",je="conditionalShowHide";const Be={quarantine:function(e){ke({properties:e,arrayPath:Oe,quarantineName:je,arrayName:Ae,itemPath:Fe}),ke({properties:e,arrayPath:_e,quarantineName:je,arrayName:Le,itemPath:Fe})},unquarantine:function(e){Ce({properties:e,arrayPath:Oe,quarantineName:je,arrayName:Ae,itemPath:Fe}),Ce({properties:e,arrayPath:_e,quarantineName:je,arrayName:Le,itemPath:Fe})},quarantineAlternative:function(e){ke({properties:e,arrayPath:Ie,quarantineName:je,arrayName:Re,itemPath:Fe}),ke({properties:e,arrayPath:Pe,quarantineName:je,arrayName:ze,itemPath:Fe})},unquarantineAlternative:function(e){Ce({properties:e,arrayPath:Ie,quarantineName:je,arrayName:Re,itemPath:Fe}),Ce({properties:e,arrayPath:Pe,quarantineName:je,arrayName:ze,itemPath:Fe})}},He={hypercube:U,colorChart:ye,axisChart:Se,quarantineProperty:x,unquarantineProperty:$,quarantineArrayProp:ke,unquarantineArrayProp:Ce,conditionalColoring:Ne,conditionalShow:Be}})(),r.default})()}(F8);var j8=fg(F8.exports);function B8(e,t){if("custom"===e.dimensionAxis.axisDisplayMode){const n=t.layout.qHyperCube.qMeasureInfo.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==M3})).length,r=t.layout.qHyperCube.qDimensionInfo.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==M3})).length,i=e.dimensionAxis.maxVisibleItems;i<1?e.dimensionAxis.maxVisibleItems=10:i>1e4/(r+n)&&(e.dimensionAxis.maxVisibleItems=Math.min(i,Math.floor(1e4/(r+n))))}}const H8=.7,V8=.9,$8=[{translation:"Common.None",value:"none"},{translation:"Common.Small",value:"small"},{translation:"Common.Medium",value:"medium"},{translation:"Common.Large",value:"large"}],U8=(e,t)=>{var n,r,i;const o=null===(n=t.qHyperCube)||void 0===n||null===(n=n.qMeasureInfo)||void 0===n?void 0:n.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==M3})).length,a=null===(r=t.qHyperCube)||void 0===r||null===(r=r.qDimensionInfo)||void 0===r?void 0:r.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==M3})).length,s="grouped"===(null===(i=e.barGrouping)||void 0===i?void 0:i.grouping)&&a>0&&o+a>2;return zg.continuous(t)?1:s?V8:H8},W8=(e,t,n)=>{const r=`${e}.fontFamily`,i=`${e}.fontSize`;return{fontFamilyItem:{component:"dropdown",ref:r,options:()=>t.getOptions(r),defaultValue:()=>t.getDefaultValue(r)},fontWrapperItem:{component:"inline-wrapper",items:{fontSizeItem:{component:"dropdown",ref:i,options:()=>t.getOptions(i),defaultValue:()=>t.getDefaultValue(i)},fontColorItem:{component:"color-picker",width:!1,ref:`${e}.color`,defaultValue:()=>({color:n.getStyle("object.barChart",e,"color")})}}}}};function Y8(e,t,n){const r=function(e){var t=e.theme,n=e.translator,r=e.config,i=void 0===r?{}:r,o=e.flags,a=function(e){var t=e.config,n=void 0===t?{}:t,r=n.id,i=n.paths;return{id:void 0===r?"object":"".concat("object",".").concat(r),paths:Array.isArray(i)?i:[]}}({config:i}),s=a.id,l=a.paths,u={};l.forEach((function(e){for(var r=e.split("."),i=u,a=0;a<r.length;a++){var l=r[a];a===r.length-1?i[l]=RM({theme:t,translator:n,id:s,path:e,flags:o}):void 0===i[l]&&(i[l]={}),i=i[l]}}));var c=function(e){for(var t=e.split("."),n=u,r=0;r<t.length;r++){var i=t[r];if(void 0===n[i])throw new Error("font-resolver: Path '".concat(e,"' could not be resolved."));n=n[i]}return n};return u.getDefaultValue=function(e){return c(e).getDefaultValue()},u.getOptions=function(e){return c(e).getOptions()},u}({theme:e,translator:n,config:{id:"barChart",paths:["axis.title","axis.label.name","label.value","legend.title","legend.label"]},flags:t});return{component:"styling-panel",show:!0,chartType:"barchart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.BarChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:null==t?void 0:t.isEnabled("SENSECLIENT_IM_2428_BARCHART_BG"),items:{outlineSection:{translation:"properties.Outline",component:"panel-section",items:{wrapperItem:{component:"items",ref:"components",key:"bar",items:{barStroke:{component:"inline-wrapper",items:{strokeWidth:{ref:"style.strokeWidth",width:!0,component:"dropdown",options:Object.keys($8).map((e=>$8[e])),defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",defaultValue:{color:"#205891"},schemaIgnore:!0,width:"auto",component:"color-picker"}}}}}}},widthSection:{translation:"LayerStyleEditor.style.barWidth",component:"panel-section",show:(e,t)=>!zg.continuous(t.layout),items:{barWidth:{component:"items",ref:"components",key:"bar",items:{width:{ref:"style.width",component:"slider",min:.01,max:1,step:.01,defaultValue(e,t,n){const{properties:r}=n,{barGrouping:i,qHyperCubeDef:o}=r,a=o.qMeasures.length,s=o.qDimensions.length,l="grouped"===i.grouping&&s>0&&a+s>2;return zg.continuous(r)?1:l?V8:H8},schemaIgnore:!0}}}}},axisTitleSection:{translation:"properties.axis.title",component:"panel-section",items:{axisTitleItems:{component:"items",ref:"components",key:"axis",items:W8("axis.title",r,e)}}},axisLabelSection:{translation:"properties.axis.label",component:"panel-section",items:{axisLabelItems:{component:"items",ref:"components",key:"axis",items:W8("axis.label.name",r,e)}}},labelSection:null!=t&&t.isEnabled("CLIENT_IM_3050")?{translation:"properties.dataPoints.labelmode",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"label",items:{...W8("label.value",r,e),contrastColor:{component:"checkbox",type:"boolean",ref:"label.value.useContrastColor",translation:"properties.dataPoints.valuelabel.contrast",defaultValue:!0}}}}}:void 0,legendTitleSection:null!=t&&t.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.title",component:"panel-section",items:{legendTitleSection:{component:"items",ref:"components",key:"legend",items:W8("legend.title",r,e)}}}:void 0,legendLabelSection:null!=t&&t.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.label",component:"panel-section",items:{legendLabelSection:{component:"items",ref:"components",key:"legend",items:W8("legend.label",r,e)}}}:void 0}}}function K8(e=!1,t,n,r){return e?function(e){return{classification:{section:"styling",tags:["simple"],exclusive:!0},component:"items",show:!0,chartType:"barchart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.BarChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:null==e?void 0:e.isEnabled("SENSECLIENT_IM_2428_BARCHART_BG"),items:{outlineSection:{translation:"LayerStyleEditor.style.strokeWidth",component:"items",items:{wrapperItem:{component:"items",ref:"components",key:"bar",items:{barStroke:{component:"inline-wrapper",items:{strokeWidth:{ref:"style.strokeWidth",width:!0,component:"dropdown",translation:"LayerStyleEditor.style.strokeWidth",options:Object.keys($8).map((e=>$8[e])),schemaIgnore:!0,defaultValue:$8[0].value},strokeColor:{ref:"style.strokeColor",schemaIgnore:!0,defaultValue:{color:"#205891",index:-1},width:"auto",component:"color-picker"}}}}}}},widthSection:{translation:"LayerStyleEditor.style.barWidth",component:"items",show:(e,t)=>!zg.continuous(t.layout),items:{barWidth:{component:"items",ref:"components",key:"bar",items:{width:{ref:"style.width",translation:"LayerStyleEditor.style.barWidth",component:"slider",min:.01,max:1,step:.01,schemaIgnore:!0,defaultValue:(e,t,n)=>U8(n.properties,n.layout)}}}}},optionsSection:{translation:"LayerStyleEditor.label.Options",component:"items",items:{wrapperItem:{component:"items",items:{optionsHeader:{component:"header",translation:"LayerStyleEditor.label.Options"},scrollbar:{ref:"scrollbar",translation:"properties.scrollbar",component:"dropdown",type:"string",options:Object.keys(TG.OPTIONS).map((e=>TG.OPTIONS[e])),schemaIgnore:!0,defaultValue:TG.DEFAULT.value},scrollAlignment:{ref:"scrollStartPos",translation:"properties.ScrollAlignment",component:"dropdown",schemaIgnore:!0,defaultValue:0,options:[{value:0,translation:"properties.ScrollAlignStart"},{value:1,translation:"properties.ScrollAlignEnd"}]},gridLines:{type:"items",items:{showGridLines:{ref:"gridLine.auto",type:"boolean",translation:"properties.gridLine.spacing",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}]},gridSpacing:{ref:"gridLine.spacing",type:"number",component:"dropdown",defaultValue:2,options:[{value:0,translation:"properties.gridLine.noLines"},{value:1,translation:"properties.gridLine.wide"},{value:2,translation:"properties.gridLine.medium"},{value:3,translation:"properties.gridLine.narrow"}],show:e=>e.gridLine&&!e.gridLine.auto}}}}}}}}}}(n):Y8(t,n,r)}const G8={component:"style-editor",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",resetBtnTranslation:"LayerStyleEditor.component.resetAll",key:"bar",ref:"components",defaultValues:(e,t)=>({key:"bar",style:{width:U8(e,t.layout),strokeColor:{index:-1,color:"#205891"},strokeWidth:"none"}}),items:{bar:{components:"items",type:"items",uses:"styling.box",items:{strokeWidth:{show:!0,component:"dropdown",type:"string",options:[{value:"none",translation:"LayerStyleEditor.style.strokeWidth.none"},{value:"small",translation:"LayerStyleEditor.style.strokeWidth.small"},{value:"medium",translation:"LayerStyleEditor.style.strokeWidth.medium"},{value:"large",translation:"LayerStyleEditor.style.strokeWidth.large"}],defaultValue:"none"},strokeColor:{show:e=>"none"!==e.style.strokeWidth},width:{show:(e,t,n)=>!zg.continuous(n.layout),component:"slider",min:.01,max:1,step:.01,defaultValue:H8}}}}},X8=e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==M3},J8=(e,t)=>e.qHyperCube[t].filter((e=>X8(e))),Q8=e=>({get:(t,n,r)=>zg.continuous(r.layout)?e:t(n.type),set(e,t,n){const r=Hg(n.type,n);t(n.type,e,r)}}),Z8=e=>{if(!e)return!1;const t=Cg(!0,{},e);return t.qHyperCube.qMeasureInfo=J8(e,"qMeasureInfo"),t.qHyperCube.qDimensionInfo=J8(e,"qDimensionInfo"),t&&!zg.continuous(t)&&zg.stacked(t)},e9=({translator:e,flags:t,anything:n})=>{var r,i,o;const a=null==n||null===(r=n.sense)||void 0===r||null===(i=r.isUnsupportedFeature)||void 0===i?void 0:i.call(r,"continuousData"),s={items:{labels:{items:{header:{show:(e,t,n)=>J8(n.layout,"qMeasureInfo").length},pointLabels:{component:"checkbox",ref:"dataPoint.showLabels",type:"boolean",translation:"Simple.Label.Value",show:(e,t,n)=>!Z8(t.layout)&&J8(n.layout,"qMeasureInfo").length},segmentLabels:{component:"checkbox",ref:"dataPoint.showSegmentLabels",type:"boolean",translation:"properties.dataPoints.segmentLabelMode",defaultValue:!1,show:(e,t)=>Z8(t.layout),convertFunctions:{get:(e,t,n,r)=>r.dataPoint.showLabels&&r.dataPoint.showSegmentLabels,set(e,t,n,r,i){i.dataPoint.showSegmentLabels=e,i.dataPoint.showLabels=i.dataPoint.showSegmentLabels||i.dataPoint.showTotalLabels}}},totalLabels:{component:"checkbox",ref:"dataPoint.showTotalLabels",type:"boolean",translation:"properties.dataPoints.totalLabelMode",defaultValue:!0,show:(e,t)=>Z8(t.layout),convertFunctions:{get:(e,t,n,r)=>r.dataPoint.showLabels&&r.dataPoint.showTotalLabels,set(e,t,n,r,i){i.dataPoint.showTotalLabels=e,i.dataPoint.showLabels=i.dataPoint.showSegmentLabels||i.dataPoint.showTotalLabels}}},dimensionTitle:{component:"checkbox",ref:"dimensionAxis.show",type:"string",translation:"Simple.Label.Dimension.Hide",defaultValue:"all",show:(e,t,n)=>J8(n.layout,"qDimensionInfo").length&&J8(n.layout,"qMeasureInfo").length,convertFunctions:{get:(e,t,n,r)=>"labels"===r.dimensionAxis.show||"none"===r.dimensionAxis.show,set(e,t,n,r,i){i.dimensionAxis.show=e?"labels":"all"}}},measureTitle:{component:"checkbox",ref:"measureAxis.show",type:"string",translation:"Simple.Label.Measure.Hide",defaultValue:"all",show:(e,t,n)=>J8(n.layout,"qMeasureInfo").length,convertFunctions:{get:(e,t,n,r)=>"labels"===r.measureAxis.show||"none"===r.measureAxis.show,set(e,t,n,r,i){i.measureAxis.show=e?"labels":"all"}}}}}}},l=null==n||null===(o=n.sense)||void 0===o?void 0:o.theme,u={uses:"settings",items:{simpleStyling:K8(!0,l,t,e),simpleLabels:s,general:{items:{showDisclaimer:{translation:"properties.showDisclaimer",type:"boolean",ref:"showDisclaimer",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Show"},{value:!1,translation:"properties.hide"}]}}},presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:{boxStyling:null!=t&&t.isEnabled("SENSECLIENT_PS_17478_STYLINGPANEL_BARCHART")?K8(!1,l,t,e):G8,grouping:{ref:"barGrouping.grouping",type:"string",component:"item-selection-list",defaultValue:"grouped",horizontal:!0,items:[{icon:"grouped",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.grouped",value:"grouped"},{icon:"stacked",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.stacked",value:"stacked"}],show(e,t){const n=J8(t.layout,"qMeasureInfo").length,r=J8(t.layout,"qDimensionInfo").length;return r>0&&n+r>2},change(e,t){J8(t.layout,"qDimensionInfo").length>1&&"stacked"===e.barGrouping.grouping?(e.qHyperCubeDef.qMode="K",e.qHyperCubeDef.qAlwaysFullyExpanded=!0):e.qHyperCubeDef.qMode="S"},readOnly:(e,t,n)=>zg.continuous(n.layout),convertFunctions:Q8("stacked")},orientation:{ref:"orientation",type:"string",component:"item-selection-list",defaultValue:"vertical",horizontal:!0,items:[{component:"icon-item",icon:"bars_vertical",labelPlacement:"bottom",translation:"properties.orientation.vertical",value:"vertical"},{icon:"bars_horizontal",component:"icon-item",labelPlacement:"bottom",translation:"Common.Horizontal",value:"horizontal"}],readOnly:(e,t,n)=>zg.continuous(n.layout),convertFunctions:Q8("vertical")},scroll:{type:"items",items:{scrollbar:{type:"string",component:"dropdown",ref:"scrollbar",translation:"properties.scrollbar",options:Object.keys(TG.OPTIONS).map((e=>TG.OPTIONS[e])),defaultValue:TG.DEFAULT.value},scrollStartPos:{ref:"scrollStartPos",type:"number",translation:"properties.ScrollAlignment",component:"dropdown",defaultValue:0,options:[{value:0,translation:"properties.ScrollAlignStart"},{value:1,translation:"properties.ScrollAlignEnd"}],show:(e,t,n)=>!zg.continuous(n.layout)}}},gridLines:{type:"items",snapshot:{tid:"property-gridLines"},items:{showGridLines:{ref:"gridLine.auto",type:"boolean",translation:"properties.gridLine.spacing",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}]},gridSpacing:{ref:"gridLine.spacing",type:"number",component:"dropdown",defaultValue:2,options:[{value:0,translation:"properties.gridLine.noLines"},{value:1,translation:"properties.gridLine.wide"},{value:2,translation:"properties.gridLine.medium"},{value:3,translation:"properties.gridLine.narrow"}],show:e=>e.gridLine&&!e.gridLine.auto}}},valueLabels:{type:"items",snapshot:{tid:"property-valueLabels"},items:{showLabels:{ref:"dataPoint.showLabels",type:"boolean",translation:"properties.dataPoints.labelmode",component:"switch",defaultValue:!1,options:[{value:!0,label:(t,n)=>((e,t,n)=>n&&n.get(Z8(t.layout)?"properties.on":"Common.Auto"))(0,n,e)},{value:!1,translation:"properties.off"}]},showSegmentLabels:{ref:"dataPoint.showSegmentLabels",type:"boolean",translation:"properties.dataPoints.segmentLabelMode",component:"switch",defaultValue:!1,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}],show:(e,t,n)=>e.dataPoint.showLabels&&Z8(n.layout)},showTotalLabels:{ref:"dataPoint.showTotalLabels",type:"boolean",translation:"properties.dataPoints.totalLabelMode",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}],show:(e,t,n)=>e.dataPoint.showLabels&&Z8(n.layout)}}}}},colorsAndLegend:{uses:"colorsAndLegend",items:{colors:{items:{attributeExpression:_D}},legend:{items:{show:{snapshot:{tid:"property-legend"}}}}}},dimensionAxis:{uses:"axis.dimensionAxis",items:{axisDisplaySettings:{components:"items",type:"items",show:(e,n,r)=>t&&t.isEnabled("BC_XAXIS_MODE")&&!zg.continuous(r.layout),items:{axisDisplayMode:{ref:"dimensionAxis.axisDisplayMode",type:"string",translation:"properties.axis.displaymode",component:"dropdown",defaultValue:"auto",options:[{value:"auto",translation:"properties.axis.displaymode.auto"},{value:"max",translation:"properties.axis.displaymode.max"},{value:"custom",translation:"properties.axis.displaymode.custom"}]},maxVisibleItems:{ref:"dimensionAxis.maxVisibleItems",translation:"properties.axis.maxvisiblevalues",expression:"optional",type:"integer",invalid(e,t,n){const r=J8(n.layout,"qMeasureInfo").length,i=J8(n.layout,"qDimensionInfo").length,o=e.dimensionAxis.maxVisibleItems;return o<0||o>1e4/(i+r)},globalChange:B8,defaultValue:10,show:e=>"custom"===e.dimensionAxis.axisDisplayMode},hint:{component:"text",translation:"properties.axis.maxvisiblevalues.hint",style:"hint",show:e=>["custom","max"].indexOf(e.dimensionAxis.axisDisplayMode)>-1}}},continuousGroup:{items:{miniChart:null},show:!a}}},measureAxis:{uses:"axis.flippableMeasureAxis"},tooltip:{uses:"tooltip"}}};return null!=t&&t.isEnabled("SENSECLIENT_LAYERED_LABELS")&&(u.items.dimensionAxis.items.othersGroup={items:{label:{options:[{value:"auto",translation:"Common.Auto"},{value:"horizontal",translation:"Common.Horizontal"},{value:"tilted",translation:"properties.labels.tilted"},{value:"layered",translation:"properties.labels.layered"}]}}}),u},t9={uses:"sortingWithDisclaimer",items:{defaultSorting:{items:{dimensions:{locked:(e,t,n)=>1===n.getMeasures().length&&2===n.getDimensions().length&&0===e,items:{autoSort:{change(e){Jy(e)}}}},interColumnSorting:{reset:(e,t)=>{const{qDimensions:n,qMeasures:r,qInterColumnSortOrder:i}=e.qHyperCubeDef,{qCardinal:o}=t.layout.qHyperCube.qDimensionInfo[0],a=i.length,s=[...Array(a).keys()];1===n.length&&r.length>=1&&o>10&&([s[0],s[1]]=[s[1],s[0]]),e.qHyperCubeDef.qInterColumnSortOrder=s}}}}}},n9={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}},refLines:{uses:"reflines"},dimRefLines:{uses:"dimReflines"}}},r9=({translator:e,flags:t,anything:n})=>{var r,i;return{uses:"data",items:{dimensions:{items:{nullSuppression:{show(e,t,r){var i,o;if(null!=n&&null!==(i=n.sense)&&void 0!==i&&null!==(o=i.isUnsupportedFeature)&&void 0!==o&&o.call(i,"includeZeroValues"))return!1;const a=((e,t)=>{var n,r;const i=null===(n=t.layout)||void 0===n||null===(n=n.qHyperCube)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.findIndex((e=>X8(e)));return(null===(r=t.properties)||void 0===r||null===(r=r.qHyperCubeDef)||void 0===r||null===(r=r.qDimensions)||void 0===r?void 0:r[i])===e})(e,t),s=zg.continuous(r.layout);return!(a&&s)}},visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Chart.Dimensions.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0,show:()=>t.isEnabled("IM_1579_HIDE_DIM_MEA")}}},measures:{items:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Chart.Measures.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0,show:()=>t.isEnabled("IM_1579_HIDE_DIM_MEA")},trendLines:null!=n&&null!==(r=n.sense)&&void 0!==r&&null!==(i=r.isUnsupportedFeature)&&void 0!==i&&i.call(r,"trendlines")?void 0:G4({translator:e,allowStackedByDimension:t&&t.isEnabled("TRENDLINES_STACKED_DIM")})}}}}};function i9({translator:e,flags:t,anything:n}){return{type:"items",component:"accordion",items:{data:r9({translator:e,flags:t,anything:n}),sorting:t9,addons:n9,settings:e9({translator:e,flags:t,anything:n})}}}const o9=e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==M3};function a9(){return{type:"items",component:"accordion",items:{data:{uses:"data"},sort:{uses:"sortWithDisclaimer",items:{sort:{items:{dimensions:{locked(e,t,n){const r=n.qHyperCube.qMeasureInfo.length,i=n.qHyperCube.qDimensionInfo.filter((e=>o9(e))).length;return 1===r&&2===i&&0===e}}}}}},presentation:{uses:"presentation",items:{showLabels:{ref:"dataPoint.showLabels",type:"boolean",translation:"properties.dataPoints.labelmode",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]},grouping:{ref:"barGrouping.grouping",type:"string",component:"item-selection-list",horizontal:!0,items:[{icon:"grouped",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.grouped",value:"grouped"},{icon:"stacked",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.stacked",value:"stacked"}],show(e,t){const n=t.qHyperCube.qMeasureInfo.filter((e=>o9(e))).length,r=t.qHyperCube.qDimensionInfo.filter((e=>o9(e))).length;return n+r>2&&!zg.continuous(t)&&!((null==(i=t)||null===(o=i.qHyperCube)||void 0===o||null===(o=o.qDimensionInfo)||void 0===o?void 0:o.filter((e=>o9(e))).length)>1&&(null==i||null===(a=i.qHyperCube)||void 0===a?void 0:a.isHCEnabled));var i,o,a},change(e){e.qHyperCubeDef.qDimensions.length>1&&"stacked"===e.barGrouping.grouping?(e.qHyperCubeDef.qMode="K",e.qHyperCubeDef.qAlwaysFullyExpanded=!0):e.qHyperCubeDef.qMode="S"}},orientation:{ref:"orientation",type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"bars_vertical",labelPlacement:"bottom",translation:"properties.orientation.vertical",value:"vertical"},{icon:"bars_horizontal",component:"icon-item",labelPlacement:"bottom",translation:"Common.Horizontal",value:"horizontal"}],show:(e,t)=>!zg.continuous(t)}}},color:{uses:"color"}}}}function s9(e){const t={},n=zC(e,"components"),r=zC(e,"dimensionAxis.axisDisplayMode"),i=zC(e,"dimensionAxis.maxVisibleItems"),o=n?n.filter((e=>"bar"===e.key))[0]:void 0,a=zC(e,"tooltip");if(o&&o.style&&Object.keys(o.style).forEach((e=>{t[`chart_style_${e}`]=o.style[e]})),i&&(t.chart_dimaxis_maxVisibleItems=i),r&&(t.chart_dimaxis_axisDisplayMode=r),a){t.chart_tooltip_custom=!a.auto;const e=zC(a,"chart.object.refId");!a.auto&&e&&(t.chart_tooltip_custom_mini_chart=e)}return t}const l9=e=>!!(e&&e.qHyperCube.qSize.qcy>0),u9={ACCUMULATIONS:"accumulation",MOVING_AVERAGE:"movingAverage",DIFFERENCE:"difference",NORMALIZATION:"normalization"};function c9(){const e=[];return Object.keys(u9).forEach((t=>{e.push(u9[t])})),e}function d9(e){const{flags:t}=e;return{definition:i9(e),softDefinition:a9(),support:{snapshot:l9,export:l9,exportData:!0,sharing:l9,viewData:!0,effects:!0,modifiers:c9()},importProperties:(n,r,i,o)=>{const a={layout:{templateId:r.templateId}};i.mapProperties(a);const s={defaultDimension:i.getDefaultDimensionProperties(),defaultMeasure:i.getDefaultMeasureProperties()},l=j8.axisChart.importProperties({exportFormat:n,initialProperties:r,dataDefinition:A3(e),defaultPropertyValues:s,hypercubePath:o,extension:i}),u=l.qProperty;return u.qHyperCubeDef.qDimensions.length>1&&"stacked"===u.barGrouping.grouping&&(u.qHyperCubeDef.qMode="K",u.qHyperCubeDef.qAlwaysFullyExpanded=!0),t.isEnabled("IM_1579_HIDE_DIM_MEA")&&(j8.conditionalShow.unquarantine(u),j8.conditionalShow.unquarantineAlternative(u)),l},exportProperties:(e,n,r)=>{t.isEnabled("IM_1579_HIDE_DIM_MEA")&&(j8.conditionalShow.quarantine(e.qProperty),j8.conditionalShow.quarantineAlternative(e.qProperty));return j8.axisChart.exportProperties({propertyTree:e,hyperCubePath:n,viewDataMode:r})},migrate:{properties:e=>(e.qExtendsId||(function(e){var t;e.qHyperCubeDef.qDimensions.forEach(Jy),null!==(t=e.qHyperCubeDef.qLayoutExclude)&&void 0!==t&&null!==(t=t.qHyperCubeDef)&&void 0!==t&&t.qDimensions&&e.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.forEach(Jy)}(e),function({properties:e}){const{scrollbar:t,dimensionAxis:n,preferContinuousAxis:r,showMiniChartForContinuousAxis:i}=e;if(t||!1!==i)return;const{continuousAuto:o}=n;(o||!o&&r)&&(e.scrollbar=TG.OPTIONS.NONE.value)}({properties:e})),e)},extendMetrics:s9}}return function(t){const n=Z5();return{qae:_3(t),ext:d9(t),component(){const r=I3({env:t}),{viewState:i,viewCache:o}=R3(),a=function({picasso:t}){const n=e.useElement(),r=e.useOptions(),[i,o]=e.useState();return e.useEffect((()=>{if(!t)return()=>{};n.style.overflow="hidden";const e=t({renderer:{prio:[(null==r?void 0:r.renderer)||"canvas"]}}).chart({element:n,data:[],settings:{}});o(e);const{destroy:i}=e;return()=>{i()}}),[r.renderer]),i}({picasso:n}),s=h6({picasso:n,chart:a,environment:r,viewState:i,viewCache:o}),l=function({env:t,services:n}){var r;const i=e.useApp(),o=e.useModel(),a=e.useRenderState(),s=P8({enable:!1===(null==n||null===(r=n.layoutService)||void 0===r||null===(r=r.meta)||void 0===r?void 0:r.isSnapshot)}),[l,u]=e.usePromise((async()=>{if(!t||!n)return Promise.resolve();const{flags:e}=t,{layoutService:r}=n,{isSnapshot:s,isStacked:l,isContinuous:u}=r.meta,c=[];return s||c.push(o.getEffectiveProperties()),Promise.all(c).then((async t=>{const n=t[0]||void 0;if(e.isEnabled("IM_1579_HIDE_DIM_MEA")&&null!=n&&n.qHyperCubeDef){const e=r.getLayout(),t=Cg(!0,{},n);if(z8({properties:n,layout:e,isStacked:l,isContinuous:u,model:o,layoutService:r}))return a.pending(),OD(e)?o.setProperties(n).then((()=>{i.clearUndoBuffer()})):void await ND(o,t,n);a.restore()}return{properties:n}}))}),[t,n,s]);if(u&&!u.isHandled)throw u;return l}({env:t,services:s});_8({picasso:n,chart:a,services:s,environment:r,viewState:i,viewCache:o,bootstrapped:l}),(({environment:t,services:n,chart:r,viewState:i,bootstrapped:o})=>{e.onTakeSnapshot((e=>{var a;if(!t||!n||!o)return;const{flags:s}=t,{layoutService:l,dockService:u,colorService:c,discrete:d,continuousDataModel:f,reducedDataModel:h}=n,{width:p,height:m}=u.meta.chart.size;if(e.snapshotData=e.snapshotData||{},e.snapshotData.content={size:{w:p,h:m}},l.meta.isSnapshot)return Promise.resolve();if(e.snapshotData.content.chartData={scrollOffset:i.get("scrollOffset"),zoom:i.get("zoom"),legendScrollOffset:Fg(r,i6.COMPONENT.LEGEND_COLOR_CAT)},null!=s&&null!==(a=s.isEnabled)&&void 0!==a&&a.call(s,"IM_1579_HIDE_DIM_MEA")){const{properties:t}=o,n=null==t?void 0:t.qHyperCubeDef.qDimensions.some((e=>{var t;return null===(t=e.qCalcCondition)||void 0===t||null===(t=t.qCond)||void 0===t?void 0:t.qv}));n&&(e.tooltip.auto=!0)}return l.meta.isDiscrete?(d.command.setSnapshotData(e),h.setSnapshotData(e)):f.setSnapshotData(e),c.getMain().getSnapshotData().then((t=>{e.snapshotData.content.chartData={...e.snapshotData.content.chartData,...t}})).catch((()=>{}))})),e.useImperativeHandle((()=>({getViewState(){if(i&&r)return{scrollOffset:i.get("scrollOffset"),zoom:i.get("zoom"),legendScrollOffset:Fg(r,i6.COMPONENT.LEGEND_COLOR_CAT)}}})),[i,r])})({environment:r,services:s,chart:a,viewState:i,bootstrapped:l})}}}}));