@nebula.js/sn-bar-chart 1.38.3 → 1.38.4
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.
- package/api-specifications/plugins.json +1 -1
- package/api-specifications/properties.json +1 -1
- package/core/esm/index.js +2 -2
- package/dist/sn-bar-chart.js +4 -4
- package/dist/sn-bar-chart.systemjs.js +3 -3
- package/package.json +1 -1
- package/sn-bar-chart-ext/dist/sn-bar-chart.js +4 -4
- package/sn-bar-chart-ext/sn-bar-chart.qext +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-bar-chart v1.38.
|
|
2
|
+
* @nebula.js/sn-bar-chart v1.38.4
|
|
3
3
|
* Copyright (c) 2025 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
@@ -11,7 +11,7 @@ System.register(["picasso.js","picasso-plugin-q","hammerjs","qlik-chart-modules"
|
|
|
11
11
|
* @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
|
|
12
12
|
* @website https://github.com/cssinjs/jss
|
|
13
13
|
* @license MIT
|
|
14
|
-
*/Gc();var Jc=Date.now(),Zc="fnValues"+Jc,Qc="fnStyle"+ ++Jc,eu=function(){return{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=Hl(e,{},n);return r[Qc]=t,r},onProcessStyle:function(e,t){if(Zc in t||Qc in t)return e;var n={};for(var r in e){var o=e[r];"function"==typeof o&&(delete e[r],n[r]=o)}return t[Zc]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[Qc];i&&(o.style=i(e)||{});var a=o[Zc];if(a)for(var s in a)o.prop(s,a[s](e),r)}}},tu="@global",nu="@global ",ru=function(){function e(e,t,n){for(var r in this.type="global",this.at=tu,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new Ec(Ws({},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}(),ou=function(){function e(e,t,n){this.type="global",this.at=tu,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(nu.length);this.rule=n.jss.createRule(r,t,Ws({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),iu=/\s*,\s*/g;function au(e,t){for(var n=e.split(iu),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}function su(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===tu)return new ru(e,t,n);if("@"===e[0]&&e.substr(0,nu.length)===nu)return new ou(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,o=r?r[tu]:null;if(o){for(var i in o)t.addRule(i,o[i],Ws({},n,{selector:au(i,e.selector)}));delete r[tu]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,tu.length)===tu){var i=au(o.substr(tu.length),e.selector);t.addRule(i,r[o],Ws({},n,{selector:i})),delete r[o]}}(e,t))}}}var lu=/\s*,\s*/g,cu=/&/g,uu=/\$([\w-]+)/g;function du(){function e(e,t){return function(n,r){var o=e.getRule(r)||t&&t.getRule(r);return o?o.selector:r}}function t(e,t){for(var n=t.split(lu),r=e.split(lu),o="",i=0;i<n.length;i++)for(var a=n[i],s=0;s<r.length;s++){var l=r[s];o&&(o+=", "),o+=-1!==l.indexOf("&")?l.replace(cu,a):a+" "+l}return o}function n(e,t,n){if(n)return Ws({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=Ws({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(r,o,i){if("style"!==o.type)return r;var a,s,l=o,c=l.options.parent;for(var u in r){var d=-1!==u.indexOf("&"),p="@"===u[0];if(d||p){if(a=n(l,c,a),d){var f=t(u,l.selector);s||(s=e(c,i)),f=f.replace(uu,s);var m=l.key+"-"+u;"replaceRule"in c?c.replaceRule(m,r[u],Ws({},a,{selector:f})):c.addRule(m,r[u],Ws({},a,{selector:f}))}else p&&c.addRule(u,{},a).addRule(l.key,r[u],{selector:l.selector});delete r[u]}}return r}}}var pu=/[A-Z]/g,fu=/^ms-/,mu={};function hu(e){return"-"+e.toLowerCase()}function gu(e){if(mu.hasOwnProperty(e))return mu[e];var t=e.replace(pu,hu);return mu[e]=fu.test(t)?"-"+t:t}function yu(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:gu(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(yu):t.fallbacks=yu(e.fallbacks)),t}var vu=Yc&&CSS?CSS.px:"px",bu=Yc&&CSS?CSS.ms:"ms",xu=Yc&&CSS?CSS.percent:"%";function Su(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var o in e)r[o]=e[o],r[o.replace(t,n)]=e[o];return r}var Mu=Su({"animation-delay":bu,"animation-duration":bu,"background-position":vu,"background-position-x":vu,"background-position-y":vu,"background-size":vu,border:vu,"border-bottom":vu,"border-bottom-left-radius":vu,"border-bottom-right-radius":vu,"border-bottom-width":vu,"border-left":vu,"border-left-width":vu,"border-radius":vu,"border-right":vu,"border-right-width":vu,"border-top":vu,"border-top-left-radius":vu,"border-top-right-radius":vu,"border-top-width":vu,"border-width":vu,"border-block":vu,"border-block-end":vu,"border-block-end-width":vu,"border-block-start":vu,"border-block-start-width":vu,"border-block-width":vu,"border-inline":vu,"border-inline-end":vu,"border-inline-end-width":vu,"border-inline-start":vu,"border-inline-start-width":vu,"border-inline-width":vu,"border-start-start-radius":vu,"border-start-end-radius":vu,"border-end-start-radius":vu,"border-end-end-radius":vu,margin:vu,"margin-bottom":vu,"margin-left":vu,"margin-right":vu,"margin-top":vu,"margin-block":vu,"margin-block-end":vu,"margin-block-start":vu,"margin-inline":vu,"margin-inline-end":vu,"margin-inline-start":vu,padding:vu,"padding-bottom":vu,"padding-left":vu,"padding-right":vu,"padding-top":vu,"padding-block":vu,"padding-block-end":vu,"padding-block-start":vu,"padding-inline":vu,"padding-inline-end":vu,"padding-inline-start":vu,"mask-position-x":vu,"mask-position-y":vu,"mask-size":vu,height:vu,width:vu,"min-height":vu,"max-height":vu,"min-width":vu,"max-width":vu,bottom:vu,left:vu,top:vu,right:vu,inset:vu,"inset-block":vu,"inset-block-end":vu,"inset-block-start":vu,"inset-inline":vu,"inset-inline-end":vu,"inset-inline-start":vu,"box-shadow":vu,"text-shadow":vu,"column-gap":vu,"column-rule":vu,"column-rule-width":vu,"column-width":vu,"font-size":vu,"font-size-delta":vu,"letter-spacing":vu,"text-decoration-thickness":vu,"text-indent":vu,"text-stroke":vu,"text-stroke-width":vu,"word-spacing":vu,motion:vu,"motion-offset":vu,outline:vu,"outline-offset":vu,"outline-width":vu,perspective:vu,"perspective-origin-x":xu,"perspective-origin-y":xu,"transform-origin":xu,"transform-origin-x":xu,"transform-origin-y":xu,"transform-origin-z":xu,"transition-delay":bu,"transition-duration":bu,"vertical-align":vu,"flex-basis":vu,"shape-margin":vu,size:vu,gap:vu,grid:vu,"grid-gap":vu,"row-gap":vu,"grid-row-gap":vu,"grid-column-gap":vu,"grid-template-rows":vu,"grid-template-columns":vu,"grid-auto-rows":vu,"grid-auto-columns":vu,"box-shadow-x":vu,"box-shadow-y":vu,"box-shadow-blur":vu,"box-shadow-spread":vu,"font-line-height":vu,"text-shadow-x":vu,"text-shadow-y":vu,"text-shadow-blur":vu});function Cu(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=Cu(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=Cu(o,t[o],n);else for(var i in t)t[i]=Cu(e+"-"+i,t[i],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||Mu[e];return!a||0===t&&a===vu?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function wu(e){void 0===e&&(e={});var t=Su(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=Cu(r,e[r],t);return e},onChangeValue:function(e,n){return Cu(n,e,t)}}}var ku="",Eu="",Tu="",qu="",Lu=Pl&&"ontouchstart"in document.documentElement;if(Pl){var Nu={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Ou=document.createElement("p").style;for(var Du in Nu)if(Du+"Transform"in Ou){ku=Du,Eu=Nu[Du];break}"Webkit"===ku&&"msHyphens"in Ou&&(ku="ms",Eu=Nu.ms,qu="edge"),"Webkit"===ku&&"-apple-trailing-word"in Ou&&(Tu="apple")}var Au={js:ku,css:Eu,vendor:Tu,browser:qu,isTouch:Lu};var Ru={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===Au.js?"-webkit-"+e:Au.css+e)}},Pu={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===Au.js?Au.css+"print-"+e:e)}},Iu=/[-\s]+(.)?/g;function zu(e,t){return t?t.toUpperCase():""}function ju(e){return e.replace(Iu,zu)}function Fu(e){return ju("-"+e)}var Bu,_u={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===Au.js){var n="mask-image";if(ju(n)in t)return e;if(Au.js+Fu(n)in t)return Au.css+e}return e}},Hu={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==Au.vendor||Au.isTouch?e:Au.css+e)}},$u={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:Au.css+e)}},Vu={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:Au.css+e)}},Wu={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===Au.js||"ms"===Au.js&&"edge"!==Au.browser?Au.css+e:e)}},Uu={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===Au.js||"ms"===Au.js||"apple"===Au.vendor?Au.css+e:e)}},Ku={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===Au.js?"WebkitColumn"+Fu(e)in t&&Au.css+"column-"+e:"Moz"===Au.js&&("page"+Fu(e)in t&&"page-"+e))}},Gu={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===Au.js)return e;var n=e.replace("-inline","");return Au.js+Fu(n)in t&&Au.css+n}},Yu={supportedProperty:function(e,t){return ju(e)in t&&e}},Xu={supportedProperty:function(e,t){var n=Fu(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:Au.js+n in t?Au.css+e:"Webkit"!==Au.js&&"Webkit"+n in t&&"-webkit-"+e}},Ju={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===Au.js?""+Au.css+e:e)}},Zu={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===Au.js?Au.css+"scroll-chaining":e)}},Qu={"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"},ed={supportedProperty:function(e,t){var n=Qu[e];return!!n&&(Au.js+Fu(n)in t&&Au.css+n)}},td={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"},nd=Object.keys(td),rd=function(e){return Au.css+e},od={supportedProperty:function(e,t,n){var r=n.multiple;if(nd.indexOf(e)>-1){var o=td[e];if(!Array.isArray(o))return Au.js+Fu(o)in t&&Au.css+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(Au.js+Fu(o[0])in t))return!1;return o.map(rd)}return!1}},id=[Ru,Pu,_u,Hu,$u,Vu,Wu,Uu,Ku,Gu,Yu,Xu,Ju,Zu,ed,od],ad=id.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),sd=id.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,Sl(t.noPrefill)),e}),[]),ld={};if(Pl){Bu=document.createElement("p");var cd=window.getComputedStyle(document.documentElement,"");for(var ud in cd)isNaN(ud)||(ld[cd[ud]]=cd[ud]);sd.forEach((function(e){return delete ld[e]}))}function dd(e,t){if(void 0===t&&(t={}),!Bu)return e;if(null!=ld[e])return ld[e];"transition"!==e&&"transform"!==e||(t[e]=e in Bu.style);for(var n=0;n<ad.length&&(ld[e]=ad[n](e,Bu.style,t),!ld[e]);n++);try{Bu.style[e]=""}catch(e){return!1}return ld[e]}var pd,fd={},md={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},hd=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function gd(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?dd(t):", "+dd(n);return r||(t||n)}function yd(e,t){var n=t;if(!pd||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=fd[r])return fd[r];try{pd.style[e]=n}catch(e){return fd[r]=!1,!1}if(md[e])n=n.replace(hd,gd);else if(""===pd.style[e]&&("-ms-flex"===(n=Au.css+n)&&(pd.style[e]="-ms-flexbox"),pd.style[e]=n,""===pd.style[e]))return fd[r]=!1,!1;return pd.style[e]="",fd[r]=n,fd[r]}function vd(){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 o=!1,i=dd(n);i&&i!==n&&(o=!0);var a=!1,s=yd(i,Vl(r));s&&s!==r&&(a=!0),(o||a)&&(o&&delete t[n],t[i||n]=s||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===Au.js?e:"@"+Au.css+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return yd(t,Vl(e))||e}}}function bd(){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={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)r[o[i]]=t[o[i]];return r}}}function xd(){return{plugins:[eu(),su(),du(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=yu(e[t]);return e}return yu(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=gu(t);return t===r?e:(n.prop(r,e),null)}},wu(),"undefined"==typeof window?null:vd(),bd()]}}function Sd(){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=Ws({},t);return Object.keys(n).forEach((function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))})),r}Pl&&(pd=document.createElement("p"));var Md=function(e,t,n,r){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},Cd=function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},wd=function(e,t,n){e.get(t).delete(n)},kd=x.createContext(null);function Ed(){return x.useContext(kd)}var Td,qd=Gc(xd()),Ld={disableGeneration:!1,generateClassName:Dl(),jss:qd,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},Nd=x.createContext(Ld);function Od(e){var t=e.children,n=e.injectFirst,r=void 0!==n&&n,o=e.disableGeneration,i=void 0!==o&&o,a=ol(e,["children","injectFirst","disableGeneration"]),s=Ws({},x.useContext(Nd),{disableGeneration:i},a);if(!s.jss.options.insertionPoint&&r&&"undefined"!=typeof window){if(!Td){var l=document.head;Td=document.createComment("mui-inject-first"),l.insertBefore(Td,l.firstChild)}s.jss=Gc({plugins:xd().plugins,insertionPoint:Td})}return x.createElement(Nd.Provider,{value:s},t)}var Dd=-1e9;var Ad={};function Rd(e,t){var n=e.state,r=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=Cd(o.sheetsManager,i,r);s||(s={refs:0,staticSheet:null,dynamicStyles:null},Md(o.sheetsManager,i,r,s));var l=Ws({},i.options,o,{theme:r,flip:"boolean"==typeof o.flip?o.flip:"rtl"===r.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var c=o.sheetsRegistry;if(0===s.refs){var u;o.sheetsCache&&(u=Cd(o.sheetsCache,i,r));var d=i.create(r,a);u||((u=o.jss.createStyleSheet(d,Ws({link:!1},l))).attach(),o.sheetsCache&&Md(o.sheetsCache,i,r,u)),c&&c.add(u),s.staticSheet=u,s.dynamicStyles=Xc(d)}if(s.dynamicStyles){var p=o.jss.createStyleSheet(s.dynamicStyles,Ws({link:!0},l));p.update(t),p.attach(),n.dynamicSheet=p,n.classes=Sd({baseClasses:s.staticSheet.classes,newClasses:p.classes}),c&&c.add(p)}else n.classes=s.staticSheet.classes;s.refs+=1}}function Pd(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,r=t.classNamePrefix,o=t.Component,i=t.defaultTheme,a=void 0===i?Ad:i,s=ol(t,["name","classNamePrefix","Component","defaultTheme"]),l=function(e){var t="function"==typeof e;return{create:function(n,r){var o;try{o=t?e(n):e}catch(e){throw e}if(!r||!n.overrides||!n.overrides[r])return o;var i=n.overrides[r],a=Ws({},o);return Object.keys(i).forEach((function(e){a[e]=Gs(a[e],i[e])})),a},options:{}}}(e),c=n||r||"makeStyles";l.options={index:Dd+=1,name:n,meta:c,classNamePrefix:c};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Ed()||a,r=Ws({},x.useContext(Nd),s),i=x.useRef(),c=x.useRef();!function(e,t){var n,r=x.useRef([]),o=x.useMemo((function(){return{}}),t);r.current!==o&&(r.current=o,n=e()),x.useEffect((function(){return function(){n&&n()}}),[o])}((function(){var o={name:n,state:{},stylesCreator:l,stylesOptions:r,theme:t};return Rd(o,e),c.current=!1,i.current=o,function(){!function(e){var t=e.state,n=e.theme,r=e.stylesOptions,o=e.stylesCreator;if(!r.disableGeneration){var i=Cd(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&(wd(r.sheetsManager,o,n),r.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(o)}}),[t,l]),x.useEffect((function(){c.current&&function(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}(i.current,e),c.current=!0}));var u=function(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,o=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,o=!0),o&&(r.cacheClasses.value=Sd({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(i.current,e.classes,o);return u}}function Id(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=Id(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function zd(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Id(e))&&(r&&(r+=" "),r+=t);return r}var jd={exports:{}},Fd={},Bd="function"==typeof Symbol&&Symbol.for,_d=Bd?Symbol.for("react.element"):60103,Hd=Bd?Symbol.for("react.portal"):60106,$d=Bd?Symbol.for("react.fragment"):60107,Vd=Bd?Symbol.for("react.strict_mode"):60108,Wd=Bd?Symbol.for("react.profiler"):60114,Ud=Bd?Symbol.for("react.provider"):60109,Kd=Bd?Symbol.for("react.context"):60110,Gd=Bd?Symbol.for("react.async_mode"):60111,Yd=Bd?Symbol.for("react.concurrent_mode"):60111,Xd=Bd?Symbol.for("react.forward_ref"):60112,Jd=Bd?Symbol.for("react.suspense"):60113,Zd=Bd?Symbol.for("react.suspense_list"):60120,Qd=Bd?Symbol.for("react.memo"):60115,ep=Bd?Symbol.for("react.lazy"):60116,tp=Bd?Symbol.for("react.block"):60121,np=Bd?Symbol.for("react.fundamental"):60117,rp=Bd?Symbol.for("react.responder"):60118,op=Bd?Symbol.for("react.scope"):60119;function ip(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case _d:switch(e=e.type){case Gd:case Yd:case $d:case Wd:case Vd:case Jd:return e;default:switch(e=e&&e.$$typeof){case Kd:case Xd:case ep:case Qd:case Ud:return e;default:return t}}case Hd:return t}}}function ap(e){return ip(e)===Yd}Fd.AsyncMode=Gd,Fd.ConcurrentMode=Yd,Fd.ContextConsumer=Kd,Fd.ContextProvider=Ud,Fd.Element=_d,Fd.ForwardRef=Xd,Fd.Fragment=$d,Fd.Lazy=ep,Fd.Memo=Qd,Fd.Portal=Hd,Fd.Profiler=Wd,Fd.StrictMode=Vd,Fd.Suspense=Jd,Fd.isAsyncMode=function(e){return ap(e)||ip(e)===Gd},Fd.isConcurrentMode=ap,Fd.isContextConsumer=function(e){return ip(e)===Kd},Fd.isContextProvider=function(e){return ip(e)===Ud},Fd.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===_d},Fd.isForwardRef=function(e){return ip(e)===Xd},Fd.isFragment=function(e){return ip(e)===$d},Fd.isLazy=function(e){return ip(e)===ep},Fd.isMemo=function(e){return ip(e)===Qd},Fd.isPortal=function(e){return ip(e)===Hd},Fd.isProfiler=function(e){return ip(e)===Wd},Fd.isStrictMode=function(e){return ip(e)===Vd},Fd.isSuspense=function(e){return ip(e)===Jd},Fd.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===$d||e===Yd||e===Wd||e===Vd||e===Jd||e===Zd||"object"==typeof e&&null!==e&&(e.$$typeof===ep||e.$$typeof===Qd||e.$$typeof===Ud||e.$$typeof===Kd||e.$$typeof===Xd||e.$$typeof===np||e.$$typeof===rp||e.$$typeof===op||e.$$typeof===tp)},Fd.typeOf=ip,jd.exports=Fd;var sp=jd.exports,lp={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},cp={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},up={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},dp={};function pp(e){return sp.isMemo(e)?up:dp[e.$$typeof]||lp}dp[sp.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},dp[sp.Memo]=up;var fp=Object.defineProperty,mp=Object.getOwnPropertyNames,hp=Object.getOwnPropertySymbols,gp=Object.getOwnPropertyDescriptor,yp=Object.getPrototypeOf,vp=Object.prototype;var bp=function e(t,n,r){if("string"!=typeof n){if(vp){var o=yp(n);o&&o!==vp&&e(t,o,r)}var i=mp(n);hp&&(i=i.concat(hp(n)));for(var a=pp(t),s=pp(n),l=0;l<i.length;++l){var c=i[l];if(!(cp[c]||r&&r[c]||s&&s[c]||a&&a[c])){var u=gp(n,c);try{fp(t,c,u)}catch(e){}}}}return t},xp=oe(bp);function Sp(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.name,i=ol(r,["name"]),a=o,s="function"==typeof t?function(e){return{root:function(n){return t(Ws({theme:e},n))}}}:{root:t},l=Pd(s,Ws({Component:e,name:o||e.displayName,classNamePrefix:a},i));t.filterProps&&(n=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var c=x.forwardRef((function(t,r){var o,i,a,s=t.children,c=t.className,u=t.clone,d=t.component,p=ol(t,["children","className","clone","component"]),f=zd(l(t).root,c),m=p;if(n&&(o=m,i=n,a={},Object.keys(o).forEach((function(e){-1===i.indexOf(e)&&(a[e]=o[e])})),m=a),u)return x.cloneElement(s,Ws({className:zd(s.props.className,f)},m));if("function"==typeof s)return s(Ws({className:f},m));var h=d||e;return x.createElement(h,Ws({ref:r,className:f},m),s)}));return xp(c,e),c}}function Mp(e){var t=e.children,n=e.theme,r=Ed(),o=x.useMemo((function(){var e=null===r?n:function(e,t){return"function"==typeof t?t(e):Ws({},e,t)}(r,n);return null!=e&&(e[Nl]=null!==r),e}),[n,r]);return x.createElement(kd.Provider,{value:o},t)}var Cp=Ll(),wp=function(e){var t=Sp(e);return function(e,n){return t(e,Ws({defaultTheme:Cp},n))}};function kp(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r=t.defaultTheme,o=t.withTheme,i=void 0!==o&&o,a=t.name,s=ol(t,["defaultTheme","withTheme","name"]),l=a,c=Pd(e,Ws({defaultTheme:r,Component:n,name:a||n.displayName,classNamePrefix:l},s)),u=x.forwardRef((function(e,t){e.classes;var o,s=e.innerRef,l=ol(e,["classes","innerRef"]),u=c(Ws({},n.defaultProps,e)),d=l;return("string"==typeof a||i)&&(o=Ed()||r,a&&(d=Al({theme:o,name:a,props:l})),i&&!d.theme&&(d.theme=o)),x.createElement(n,Ws({ref:s||t,classes:u},d))}));return xp(u,n),u}}(e,Ws({defaultTheme:Cp},t))}function Ep(e){if("string"!=typeof e)throw new Error(Js(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Tp(){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),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r),t.apply(this,r)}}),(function(){}))}function qp(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=qp(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Lp(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=qp(e))&&(r&&(r+=" "),r+=t);return r}function Np(e){return e&&e.ownerDocument||document}function Op(e){return Np(e).defaultView||window}function Dp(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var Ap="undefined"!=typeof window?S.useLayoutEffect:S.useEffect;function Rp(e){var t=S.useRef(e);return Ap((function(){t.current=e})),S.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}function Pp(e,t){return S.useMemo((function(){return null==e&&null==t?null:function(n){Dp(e,n),Dp(t,n)}}),[e,t])}var Ip=!0,zp=!1,jp=null,Fp={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 Bp(e){e.metaKey||e.altKey||e.ctrlKey||(Ip=!0)}function _p(){Ip=!1}function Hp(){"hidden"===this.visibilityState&&zp&&(Ip=!0)}function $p(e){var t=e.target;try{return t.matches(":focus-visible")}catch(e){}return Ip||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!Fp[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Vp(){zp=!0,window.clearTimeout(jp),jp=window.setTimeout((function(){zp=!1}),100)}function Wp(){var e=S.useCallback((function(e){var t,n=N.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",Bp,!0),t.addEventListener("mousedown",_p,!0),t.addEventListener("pointerdown",_p,!0),t.addEventListener("touchstart",_p,!0),t.addEventListener("visibilitychange",Hp,!0))}),[]);return{isFocusVisible:$p,onBlurVisible:Vp,ref:e}}var Up=!1,Kp=x.createContext(null),Gp="unmounted",Yp="exited",Xp="entering",Jp="entered",Zp="exiting",Qp=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=Yp,r.appearStatus=Xp):o=Jp:o=t.unmountOnExit||t.mountOnEnter?Gp:Yp,r.state={status:o},r.nextCallback=null,r}jl(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Gp?{status:Yp}: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!==Xp&&n!==Jp&&(t=Xp):n!==Xp&&n!==Jp||(t=Zp)}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===Xp){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:O.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Yp&&this.setState({status:Gp})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[O.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||Up?this.safeSetState({status:Jp},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Xp},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Jp},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:O.findDOMNode(this);t&&!Up?(this.props.onExit(r),this.safeSetState({status:Zp},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Yp},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Yp},(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:O.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Gp)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=rl(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return x.createElement(Kp.Provider,{value:null},"function"==typeof n?n(e,r):x.cloneElement(x.Children.only(n),r))},t}(x.Component);function ef(){}function tf(e,t){var n=Object.create(null);return e&&w.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&M(e)?t(e):e}(e)})),n}function nf(e,t,n){return null!=n[t]?n[t]:e.props[t]}function rf(e,t,n){var r=tf(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach((function(i){var a=o[i];if(M(a)){var s=i in t,l=i in r,c=t[i],u=M(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&M(c)&&(o[i]=C(a,{onExited:n.bind(null,a),in:c.props.in,exit:nf(a,"exit",e),enter:nf(a,"enter",e)})):o[i]=C(a,{in:!1}):o[i]=C(a,{onExited:n.bind(null,a),in:!0,exit:nf(a,"exit",e),enter:nf(a,"enter",e)})}})),o}Qp.contextType=Kp,Qp.propTypes={},Qp.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ef,onEntering:ef,onEntered:ef,onExit:ef,onExiting:ef,onExited:ef},Qp.UNMOUNTED=Gp,Qp.EXITED=Yp,Qp.ENTERING=Xp,Qp.ENTERED=Jp,Qp.EXITING=Zp;var of=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},af=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(Fl(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}jl(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,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,tf(n.children,(function(e){return C(e,{onExited:r.bind(null,e),in:!0,appear:nf(e,"appear",n),enter:nf(e,"enter",n),exit:nf(e,"exit",n)})}))):rf(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=tf(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Ws({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=rl(e,["component","childFactory"]),o=this.state.contextValue,i=of(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?x.createElement(Kp.Provider,{value:o},i):x.createElement(Kp.Provider,{value:o},x.createElement(t,r,i))},t}(x.Component);af.propTypes={},af.defaultProps={component:"div",childFactory:function(e){return e}};function sf(e,t){var n=e.timeout,r=e.style,o=void 0===r?{}:r;return{duration:o.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:o.transitionDelay}}var lf=S.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,i=void 0===o?"div":o,a=e.square,s=void 0!==a&&a,l=e.elevation,c=void 0===l?1:l,u=e.variant,d=void 0===u?"elevation":u,p=ol(e,["classes","className","component","square","elevation","variant"]);return S.createElement(i,Ws({className:Lp(n.root,r,"outlined"===d?n.outlined:n["elevation".concat(c)],!s&&n.rounded),ref:t},p))})),cf=kp((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),Ws({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"})(lf),uf="undefined"==typeof window?S.useEffect:S.useLayoutEffect;function df(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,o=e.rippleX,i=e.rippleY,a=e.rippleSize,s=e.in,l=e.onExited,c=void 0===l?function(){}:l,u=e.timeout,d=S.useState(!1),p=d[0],f=d[1],m=Lp(t.ripple,t.rippleVisible,r&&t.ripplePulsate),h={width:a,height:a,top:-a/2+i,left:-a/2+o},g=Lp(t.child,p&&t.childLeaving,r&&t.childPulsate),y=Rp(c);return uf((function(){if(!s){f(!0);var e=setTimeout(y,u);return function(){clearTimeout(e)}}}),[y,s,u]),S.createElement("span",{className:m,style:h},S.createElement("span",{className:g}))}var pf=S.forwardRef((function(e,t){var n=e.center,r=void 0!==n&&n,o=e.classes,i=e.className,a=ol(e,["center","classes","className"]),s=S.useState([]),l=s[0],c=s[1],u=S.useRef(0),d=S.useRef(null);S.useEffect((function(){d.current&&(d.current(),d.current=null)}),[l]);var p=S.useRef(!1),f=S.useRef(null),m=S.useRef(null),h=S.useRef(null);S.useEffect((function(){return function(){clearTimeout(f.current)}}),[]);var g=S.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,i=e.rippleSize,a=e.cb;c((function(e){return[].concat(Sl(e),[S.createElement(df,{key:u.current,classes:o,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i})])})),u.current+=1,d.current=a}),[o]),y=S.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,o=t.pulsate,i=void 0!==o&&o,a=t.center,s=void 0===a?r||t.pulsate:a,l=t.fakeElement,c=void 0!==l&&l;if("mousedown"===e.type&&p.current)p.current=!1;else{"touchstart"===e.type&&(p.current=!0);var u,d,y,v=c?null:h.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)u=Math.round(b.width/2),d=Math.round(b.height/2);else{var x=e.touches?e.touches[0]:e,S=x.clientX,M=x.clientY;u=Math.round(S-b.left),d=Math.round(M-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 C=2*Math.max(Math.abs((v?v.clientWidth:0)-u),u)+2,w=2*Math.max(Math.abs((v?v.clientHeight:0)-d),d)+2;y=Math.sqrt(Math.pow(C,2)+Math.pow(w,2))}e.touches?null===m.current&&(m.current=function(){g({pulsate:i,rippleX:u,rippleY:d,rippleSize:y,cb:n})},f.current=setTimeout((function(){m.current&&(m.current(),m.current=null)}),80)):g({pulsate:i,rippleX:u,rippleY:d,rippleSize:y,cb:n})}}),[r,g]),v=S.useCallback((function(){y({},{pulsate:!0})}),[y]),b=S.useCallback((function(e,t){if(clearTimeout(f.current),"touchend"===e.type&&m.current)return e.persist(),m.current(),m.current=null,void(f.current=setTimeout((function(){b(e,t)})));m.current=null,c((function(e){return e.length>0?e.slice(1):e})),d.current=t}),[]);return S.useImperativeHandle(t,(function(){return{pulsate:v,start:y,stop:b}}),[v,y,b]),S.createElement("span",Ws({className:Lp(o.root,i),ref:h},a),S.createElement(af,{component:null,exit:!0},l))})),ff=kp((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"})(S.memo(pf)),mf=S.forwardRef((function(e,t){var n=e.action,r=e.buttonRef,o=e.centerRipple,i=void 0!==o&&o,a=e.children,s=e.classes,l=e.className,c=e.component,u=void 0===c?"button":c,d=e.disabled,p=void 0!==d&&d,f=e.disableRipple,m=void 0!==f&&f,h=e.disableTouchRipple,g=void 0!==h&&h,y=e.focusRipple,v=void 0!==y&&y,b=e.focusVisibleClassName,x=e.onBlur,M=e.onClick,C=e.onFocus,w=e.onFocusVisible,k=e.onKeyDown,E=e.onKeyUp,T=e.onMouseDown,q=e.onMouseLeave,L=e.onMouseUp,O=e.onTouchEnd,D=e.onTouchMove,A=e.onTouchStart,R=e.onDragLeave,P=e.tabIndex,I=void 0===P?0:P,z=e.TouchRippleProps,j=e.type,F=void 0===j?"button":j,B=ol(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"]),_=S.useRef(null);var H=S.useRef(null),$=S.useState(!1),V=$[0],W=$[1];p&&V&&W(!1);var U=Wp(),K=U.isFocusVisible,G=U.onBlurVisible,Y=U.ref;function X(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g;return Rp((function(r){return t&&t(r),!n&&H.current&&H.current[e](r),!0}))}S.useImperativeHandle(n,(function(){return{focusVisible:function(){W(!0),_.current.focus()}}}),[]),S.useEffect((function(){V&&v&&!m&&H.current.pulsate()}),[m,v,V]);var J=X("start",T),Z=X("stop",R),Q=X("stop",L),ee=X("stop",(function(e){V&&e.preventDefault(),q&&q(e)})),te=X("start",A),ne=X("stop",O),re=X("stop",D),oe=X("stop",(function(e){V&&(G(e),W(!1)),x&&x(e)}),!1),ie=Rp((function(e){_.current||(_.current=e.currentTarget),K(e)&&(W(!0),w&&w(e)),C&&C(e)})),ae=function(){var e=N.findDOMNode(_.current);return u&&"button"!==u&&!("A"===e.tagName&&e.href)},se=S.useRef(!1),le=Rp((function(e){v&&!se.current&&V&&H.current&&" "===e.key&&(se.current=!0,e.persist(),H.current.stop(e,(function(){H.current.start(e)}))),e.target===e.currentTarget&&ae()&&" "===e.key&&e.preventDefault(),k&&k(e),e.target===e.currentTarget&&ae()&&"Enter"===e.key&&!p&&(e.preventDefault(),M&&M(e))})),ce=Rp((function(e){v&&" "===e.key&&H.current&&V&&!e.defaultPrevented&&(se.current=!1,e.persist(),H.current.stop(e,(function(){H.current.pulsate(e)}))),E&&E(e),M&&e.target===e.currentTarget&&ae()&&" "===e.key&&!e.defaultPrevented&&M(e)})),ue=u;"button"===ue&&B.href&&(ue="a");var de={};"button"===ue?(de.type=F,de.disabled=p):("a"===ue&&B.href||(de.role="button"),de["aria-disabled"]=p);var pe=Pp(r,t),fe=Pp(Y,_),me=Pp(pe,fe),he=S.useState(!1),ge=he[0],ye=he[1];S.useEffect((function(){ye(!0)}),[]);var ve=ge&&!m&&!p;return S.createElement(ue,Ws({className:Lp(s.root,l,V&&[s.focusVisible,b],p&&s.disabled),onBlur:oe,onClick:M,onFocus:ie,onKeyDown:le,onKeyUp:ce,onMouseDown:J,onMouseLeave:ee,onMouseUp:Q,onDragLeave:Z,onTouchEnd:ne,onTouchMove:re,onTouchStart:te,ref:me,tabIndex:p?-1:I},de,B),a,ve?S.createElement(ff,Ws({ref:H,center:i},z)):null)})),hf=kp({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"})(mf),gf={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},yf=S.forwardRef((function(e,t){var n=e.align,r=void 0===n?"inherit":n,o=e.classes,i=e.className,a=e.color,s=void 0===a?"initial":a,l=e.component,c=e.display,u=void 0===c?"initial":c,d=e.gutterBottom,p=void 0!==d&&d,f=e.noWrap,m=void 0!==f&&f,h=e.paragraph,g=void 0!==h&&h,y=e.variant,v=void 0===y?"body1":y,b=e.variantMapping,x=void 0===b?gf:b,M=ol(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),C=l||(g?"p":x[v]||gf[v])||"span";return S.createElement(C,Ws({className:Lp(o.root,i,"inherit"!==v&&o[v],"initial"!==s&&o["color".concat(Ep(s))],m&&o.noWrap,p&&o.gutterBottom,g&&o.paragraph,"inherit"!==r&&o["align".concat(Ep(r))],"initial"!==u&&o["display".concat(Ep(u))]),ref:t},M))})),vf=kp((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"})(yf),bf=S.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.color,a=void 0===i?"default":i,s=e.component,l=void 0===s?"button":s,c=e.disabled,u=void 0!==c&&c,d=e.disableElevation,p=void 0!==d&&d,f=e.disableFocusRipple,m=void 0!==f&&f,h=e.endIcon,g=e.focusVisibleClassName,y=e.fullWidth,v=void 0!==y&&y,b=e.size,x=void 0===b?"medium":b,M=e.startIcon,C=e.type,w=void 0===C?"button":C,k=e.variant,E=void 0===k?"text":k,T=ol(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),q=M&&S.createElement("span",{className:Lp(r.startIcon,r["iconSize".concat(Ep(x))])},M),L=h&&S.createElement("span",{className:Lp(r.endIcon,r["iconSize".concat(Ep(x))])},h);return S.createElement(hf,Ws({className:Lp(r.root,r[E],o,"inherit"===a?r.colorInherit:"default"!==a&&r["".concat(E).concat(Ep(a))],"medium"!==x&&[r["".concat(E,"Size").concat(Ep(x))],r["size".concat(Ep(x))]],p&&r.disableElevation,u&&r.disabled,v&&r.fullWidth),component:l,disabled:u,focusRipple:!m,focusVisibleClassName:Lp(r.focusVisible,g),ref:t,type:w},T),S.createElement("span",{className:r.label},q,n,L))})),xf=kp((function(e){return{root:Ws({},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:nl(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:nl(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:nl(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(nl(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:nl(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(nl(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:nl(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"})(bf);var Sf="undefined"!=typeof window?S.useLayoutEffect:S.useEffect,Mf=S.forwardRef((function(e,t){var n=e.children,r=e.container,o=e.disablePortal,i=void 0!==o&&o,a=e.onRendered,s=S.useState(null),l=s[0],c=s[1],u=Pp(S.isValidElement(n)?n.ref:null,t);return Sf((function(){i||c(function(e){return e="function"==typeof e?e():e,N.findDOMNode(e)}(r)||document.body)}),[r,i]),Sf((function(){if(l&&!i)return Dp(t,l),function(){Dp(t,null)}}),[t,l,i]),Sf((function(){a&&(l||i)&&a()}),[a,l,i]),i?S.isValidElement(n)?S.cloneElement(n,{ref:u}):n:l?N.createPortal(n,l):l}));function Cf(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function wf(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function kf(e,t,n){var r=arguments.length>4?arguments[4]:void 0,o=[t,n].concat(Sl(arguments.length>3&&void 0!==arguments[3]?arguments[3]:[])),i=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===o.indexOf(e)&&-1===i.indexOf(e.tagName)&&Cf(e,r)}))}function Ef(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function Tf(e,t){var n,r=[],o=[],i=e.container;if(!t.disableScrollLock){if(function(e){var t=Np(e);return t.body===e?Op(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(i)){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:i.style.paddingRight,key:"padding-right",el:i}),i.style["padding-right"]="".concat(wf(i)+a,"px"),n=Np(i).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){o.push(e.style.paddingRight),e.style.paddingRight="".concat(wf(e)+a,"px")}))}var s=i.parentElement,l="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:i;r.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){o[t]?e.style.paddingRight=o[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 qf=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 Il(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&&Cf(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);kf(t,e.mountNode,e.modalRef,r,!0);var o=Ef(this.containers,(function(e){return e.container===t}));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=Ef(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=Tf(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=Ef(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&&Cf(e.modalRef,!0),kf(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var o=r.modals[r.modals.length-1];o.modalRef&&Cf(o.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();function Lf(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,o=e.disableEnforceFocus,i=void 0!==o&&o,a=e.disableRestoreFocus,s=void 0!==a&&a,l=e.getDoc,c=e.isEnabled,u=e.open,d=S.useRef(),p=S.useRef(null),f=S.useRef(null),m=S.useRef(),h=S.useRef(null),g=S.useCallback((function(e){h.current=N.findDOMNode(e)}),[]),y=Pp(t.ref,g),v=S.useRef();return S.useEffect((function(){v.current=u}),[u]),!v.current&&u&&"undefined"!=typeof window&&(m.current=l().activeElement),S.useEffect((function(){if(u){var e=Np(h.current);r||!h.current||h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex",-1),h.current.focus());var t=function(){null!==h.current&&(e.hasFocus()&&!i&&c()&&!d.current?h.current&&!h.current.contains(e.activeElement)&&h.current.focus():d.current=!1)},n=function(t){!i&&c()&&9===t.keyCode&&e.activeElement===h.current&&(d.current=!0,t.shiftKey?f.current.focus():p.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var o=setInterval((function(){t()}),50);return function(){clearInterval(o),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),s||(m.current&&m.current.focus&&m.current.focus(),m.current=null)}}}),[r,i,s,c,u]),S.createElement(S.Fragment,null,S.createElement("div",{tabIndex:0,ref:p,"data-test":"sentinelStart"}),S.cloneElement(t,{ref:y}),S.createElement("div",{tabIndex:0,ref:f,"data-test":"sentinelEnd"}))}var Nf={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"}},Of=S.forwardRef((function(e,t){var n=e.invisible,r=void 0!==n&&n,o=e.open,i=ol(e,["invisible","open"]);return o?S.createElement("div",Ws({"aria-hidden":!0,ref:t},i,{style:Ws({},Nf.root,r?Nf.invisible:{},i.style)})):null}));var Df=new qf,Af=S.forwardRef((function(e,t){var n=Ed(),r=Al({name:"MuiModal",props:Ws({},e),theme:n}),o=r.BackdropComponent,i=void 0===o?Of:o,a=r.BackdropProps,s=r.children,l=r.closeAfterTransition,c=void 0!==l&&l,u=r.container,d=r.disableAutoFocus,p=void 0!==d&&d,f=r.disableBackdropClick,m=void 0!==f&&f,h=r.disableEnforceFocus,g=void 0!==h&&h,y=r.disableEscapeKeyDown,v=void 0!==y&&y,b=r.disablePortal,x=void 0!==b&&b,M=r.disableRestoreFocus,C=void 0!==M&&M,w=r.disableScrollLock,k=void 0!==w&&w,E=r.hideBackdrop,T=void 0!==E&&E,q=r.keepMounted,L=void 0!==q&&q,O=r.manager,D=void 0===O?Df:O,A=r.onBackdropClick,R=r.onClose,P=r.onEscapeKeyDown,I=r.onRendered,z=r.open,j=ol(r,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),F=S.useState(!0),B=F[0],_=F[1],H=S.useRef({}),$=S.useRef(null),V=S.useRef(null),W=Pp(V,t),U=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),K=function(){return Np($.current)},G=function(){return H.current.modalRef=V.current,H.current.mountNode=$.current,H.current},Y=function(){D.mount(G(),{disableScrollLock:k}),V.current.scrollTop=0},X=Rp((function(){var e=function(e){return e="function"==typeof e?e():e,N.findDOMNode(e)}(u)||K().body;D.add(G(),e),V.current&&Y()})),J=S.useCallback((function(){return D.isTopModal(G())}),[D]),Z=Rp((function(e){$.current=e,e&&(I&&I(),z&&J()?Y():Cf(V.current,!0))})),Q=S.useCallback((function(){D.remove(G())}),[D]);if(S.useEffect((function(){return function(){Q()}}),[Q]),S.useEffect((function(){z?X():U&&c||Q()}),[z,Q,U,c,X]),!L&&!z&&(!U||B))return null;var ee=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:ql}),te={};return void 0===s.props.tabIndex&&(te.tabIndex=s.props.tabIndex||"-1"),U&&(te.onEnter=Tp((function(){_(!1)}),s.props.onEnter),te.onExited=Tp((function(){_(!0),c&&Q()}),s.props.onExited)),S.createElement(Mf,{ref:Z,container:u,disablePortal:x},S.createElement("div",Ws({ref:W,onKeyDown:function(e){"Escape"===e.key&&J()&&(P&&P(e),v||(e.stopPropagation(),R&&R(e,"escapeKeyDown")))},role:"presentation"},j,{style:Ws({},ee.root,!z&&B?ee.hidden:{},j.style)}),T?null:S.createElement(i,Ws({open:z,onClick:function(e){e.target===e.currentTarget&&(A&&A(e),!m&&R&&R(e,"backdropClick"))}},a)),S.createElement(Lf,{disableEnforceFocus:g,disableAutoFocus:p,disableRestoreFocus:C,getDoc:K,isEnabled:J,open:z},S.cloneElement(s,te))))})),Rf=S.forwardRef((function(e,t){var n=e.absolute,r=void 0!==n&&n,o=e.classes,i=e.className,a=e.component,s=void 0===a?"hr":a,l=e.flexItem,c=void 0!==l&&l,u=e.light,d=void 0!==u&&u,p=e.orientation,f=void 0===p?"horizontal":p,m=e.role,h=void 0===m?"hr"!==s?"separator":void 0:m,g=e.variant,y=void 0===g?"fullWidth":g,v=ol(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return S.createElement(s,Ws({className:Lp(o.root,i,"fullWidth"!==y&&o[y],r&&o.absolute,c&&o.flexItem,d&&o.light,"vertical"===f&&o.vertical),role:h,ref:t},v))})),Pf=kp((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:nl(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"})(Rf);function If(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var zf={entering:{opacity:1,transform:If(1)},entered:{opacity:1,transform:"none"}},jf=S.forwardRef((function(e,t){var n=e.children,r=e.disableStrictModeCompat,o=void 0!==r&&r,i=e.in,a=e.onEnter,s=e.onEntered,l=e.onEntering,c=e.onExit,u=e.onExited,d=e.onExiting,p=e.style,f=e.timeout,m=void 0===f?"auto":f,h=e.TransitionComponent,g=void 0===h?Qp:h,y=ol(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),v=S.useRef(),b=S.useRef(),x=Ed()||Cp,M=x.unstable_strictMode&&!o,C=S.useRef(null),w=Pp(n.ref,t),k=Pp(M?C:void 0,w),E=function(e){return function(t,n){if(e){var r=Ml(M?[C.current,t]:[t,n],2),o=r[0],i=r[1];void 0===i?e(o):e(o,i)}}},T=E(l),q=E((function(e,t){!function(e){e.scrollTop}(e);var n,r=sf({style:p,timeout:m},{mode:"enter"}),o=r.duration,i=r.delay;"auto"===m?(n=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=n):n=o,e.style.transition=[x.transitions.create("opacity",{duration:n,delay:i}),x.transitions.create("transform",{duration:.666*n,delay:i})].join(","),a&&a(e,t)})),L=E(s),N=E(d),O=E((function(e){var t,n=sf({style:p,timeout:m},{mode:"exit"}),r=n.duration,o=n.delay;"auto"===m?(t=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=t):t=r,e.style.transition=[x.transitions.create("opacity",{duration:t,delay:o}),x.transitions.create("transform",{duration:.666*t,delay:o||.333*t})].join(","),e.style.opacity="0",e.style.transform=If(.75),c&&c(e)})),D=E(u);return S.useEffect((function(){return function(){clearTimeout(v.current)}}),[]),S.createElement(g,Ws({appear:!0,in:i,nodeRef:M?C:void 0,onEnter:q,onEntered:L,onEntering:T,onExit:O,onExited:D,onExiting:N,addEndListener:function(e,t){var n=M?e:t;"auto"===m&&(v.current=setTimeout(n,b.current||0))},timeout:"auto"===m?null:m},y),(function(e,t){return S.cloneElement(n,Ws({style:Ws({opacity:0,transform:If(.75),visibility:"exited"!==e||i?void 0:"hidden"},zf[e],p,n.props.style),ref:k},t))}))}));jf.muiSupportAuto=!0;var Ff=S.createContext({}),Bf=S.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.component,a=void 0===i?"ul":i,s=e.dense,l=void 0!==s&&s,c=e.disablePadding,u=void 0!==c&&c,d=e.subheader,p=ol(e,["children","classes","className","component","dense","disablePadding","subheader"]),f=S.useMemo((function(){return{dense:l}}),[l]);return S.createElement(Ff.Provider,{value:f},S.createElement(a,Ws({className:Lp(r.root,o,l&&r.dense,!u&&r.padding,d&&r.subheader),ref:t},p),d,n))})),_f=kp({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(Bf),Hf="undefined"==typeof window?S.useEffect:S.useLayoutEffect,$f=S.forwardRef((function(e,t){var n=e.alignItems,r=void 0===n?"center":n,o=e.autoFocus,i=void 0!==o&&o,a=e.button,s=void 0!==a&&a,l=e.children,c=e.classes,u=e.className,d=e.component,p=e.ContainerComponent,f=void 0===p?"li":p,m=e.ContainerProps,h=(m=void 0===m?{}:m).className,g=ol(m,["className"]),y=e.dense,v=void 0!==y&&y,b=e.disabled,x=void 0!==b&&b,M=e.disableGutters,C=void 0!==M&&M,w=e.divider,k=void 0!==w&&w,E=e.focusVisibleClassName,T=e.selected,q=void 0!==T&&T,L=ol(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),O=S.useContext(Ff),D={dense:v||O.dense||!1,alignItems:r},A=S.useRef(null);Hf((function(){i&&A.current&&A.current.focus()}),[i]);var R,P,I=S.Children.toArray(l),z=I.length&&(R=I[I.length-1],P=["ListItemSecondaryAction"],S.isValidElement(R)&&-1!==P.indexOf(R.type.muiName)),j=Pp(S.useCallback((function(e){A.current=N.findDOMNode(e)}),[]),t),F=Ws({className:Lp(c.root,u,D.dense&&c.dense,!C&&c.gutters,k&&c.divider,x&&c.disabled,s&&c.button,"center"!==r&&c.alignItemsFlexStart,z&&c.secondaryAction,q&&c.selected),disabled:x},L),B=d||"li";return s&&(F.component=d||"div",F.focusVisibleClassName=Lp(c.focusVisible,E),B=hf),z?(B=F.component||d?B:"div","li"===f&&("li"===B?B="div":"li"===F.component&&(F.component="div")),S.createElement(Ff.Provider,{value:D},S.createElement(f,Ws({className:Lp(c.container,h),ref:j},g),S.createElement(B,F,I),I.pop()))):S.createElement(Ff.Provider,{value:D},S.createElement(B,Ws({ref:j},F),I))})),Vf=kp((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"})($f),Wf=S.forwardRef((function(e,t){var n=e.classes,r=e.className,o=ol(e,["classes","className"]),i=S.useContext(Ff);return S.createElement("div",Ws({className:Lp(n.root,r,"flex-start"===i.alignItems&&n.alignItemsFlexStart),ref:t},o))})),Uf=kp((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(Wf),Kf=S.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.disableTypography,a=void 0!==i&&i,s=e.inset,l=void 0!==s&&s,c=e.primary,u=e.primaryTypographyProps,d=e.secondary,p=e.secondaryTypographyProps,f=ol(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),m=S.useContext(Ff).dense,h=null!=c?c:n;null==h||h.type===vf||a||(h=S.createElement(vf,Ws({variant:m?"body2":"body1",className:r.primary,component:"span",display:"block"},u),h));var g=d;return null==g||g.type===vf||a||(g=S.createElement(vf,Ws({variant:"body2",className:r.secondary,color:"textSecondary",display:"block"},p),g)),S.createElement("div",Ws({className:Lp(r.root,o,m&&r.dense,l&&r.inset,h&&g&&r.multiline),ref:t},f),h,g)})),Gf=kp({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(Kf);function Yf(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Xf(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Jf(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function Zf(e){return"function"==typeof e?e():e}var Qf=S.forwardRef((function(e,t){var n=e.action,r=e.anchorEl,o=e.anchorOrigin,i=void 0===o?{vertical:"top",horizontal:"left"}:o,a=e.anchorPosition,s=e.anchorReference,l=void 0===s?"anchorEl":s,c=e.children,u=e.classes,d=e.className,p=e.container,f=e.elevation,m=void 0===f?8:f,h=e.getContentAnchorEl,g=e.marginThreshold,y=void 0===g?16:g,v=e.onEnter,b=e.onEntered,x=e.onEntering,M=e.onExit,C=e.onExited,w=e.onExiting,k=e.open,E=e.PaperProps,T=void 0===E?{}:E,q=e.transformOrigin,L=void 0===q?{vertical:"top",horizontal:"left"}:q,O=e.TransitionComponent,D=void 0===O?jf:O,A=e.transitionDuration,R=void 0===A?"auto":A,P=e.TransitionProps,I=void 0===P?{}:P,z=ol(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"]),j=S.useRef(),F=S.useCallback((function(e){if("anchorPosition"===l)return a;var t=Zf(r),n=(t&&1===t.nodeType?t:Np(j.current).body).getBoundingClientRect(),o=0===e?i.vertical:"center";return{top:n.top+Yf(n,o),left:n.left+Xf(n,i.horizontal)}}),[r,i.horizontal,i.vertical,a,l]),B=S.useCallback((function(e){var t=0;if(h&&"anchorEl"===l){var n=h(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}),[i.vertical,l,h]),_=S.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:Yf(e,L.vertical)+t,horizontal:Xf(e,L.horizontal)}}),[L.horizontal,L.vertical]),H=S.useCallback((function(e){var t=B(e),n={width:e.offsetWidth,height:e.offsetHeight},o=_(n,t);if("none"===l)return{top:null,left:null,transformOrigin:Jf(o)};var i=F(t),a=i.top-o.vertical,s=i.left-o.horizontal,c=a+n.height,u=s+n.width,d=Op(Zf(r)),p=d.innerHeight-y,f=d.innerWidth-y;if(a<y){var m=a-y;a-=m,o.vertical+=m}else if(c>p){var h=c-p;a-=h,o.vertical+=h}if(s<y){var g=s-y;s-=g,o.horizontal+=g}else if(u>f){var v=u-f;s-=v,o.horizontal+=v}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:Jf(o)}}),[r,l,F,B,_,y]),$=S.useCallback((function(){var e=j.current;if(e){var t=H(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[H]),V=S.useCallback((function(e){j.current=N.findDOMNode(e)}),[]);S.useEffect((function(){k&&$()})),S.useImperativeHandle(n,(function(){return k?{updatePosition:function(){$()}}:null}),[k,$]),S.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,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=this;clearTimeout(t),t=setTimeout((function(){e.apply(a,o)}),n)}return r.clear=function(){clearTimeout(t)},r}((function(){$()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[k,$]);var W=R;"auto"!==R||D.muiSupportAuto||(W=void 0);var U=p||(r?Np(Zf(r)).body:void 0);return S.createElement(Af,Ws({container:U,open:k,ref:t,BackdropProps:{invisible:!0},className:Lp(u.root,d)},z),S.createElement(D,Ws({appear:!0,in:k,onEnter:v,onEntered:b,onExit:M,onExited:C,onExiting:w,timeout:W},I,{onEntering:Tp((function(e,t){x&&x(e,t),$()}),I.onEntering)}),S.createElement(cf,Ws({elevation:m,ref:V},T,{className:Lp(u.paper,T.className)}),c)))})),em=kp({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(Qf);function tm(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function nm({d:e,size:t,style:n={},viewBox:r="0 0 16 16"}){const o={fontSize:tm(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",...n};return x.createElement("i",{style:o},x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},x.createElement("path",{d:e})))}const rm="alternative-menu-item",om=e=>{const{nested:t,className:n,...r}=e,o=(({nested:e,dir:t})=>Pd((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 x.createElement(Vf,xs({className:`${o.root} ${n}`},r))},im=e=>{if("Tab"===e.key){const t=document.querySelectorAll(`.${rm}`);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 am({title:e,selected:t,onClick:n,nested:r,icon:o,bold:i,dir:a}){const s=$e.detectTextDirection(e);return x.createElement(om,{nested:r,role:"menuitem",button:!0,onClick:n,className:rm,onKeyDown:im,dir:a,autoFocus:t},x.createElement(Gf,{primary:e,primaryTypographyProps:{dir:s,...i&&{style:{fontWeight:600}}}}),x.createElement(Uf,{style:{minWidth:16}},x.createElement(nm,{d:t?os:""})),o&&x.createElement(Uf,{style:{minWidth:16}},x.createElement(nm,{d:o.d})))}am.propTypes={title:ws.string.isRequired,selected:ws.bool,onClick:ws.func.isRequired,nested:ws.bool,icon:ws.shape({d:ws.string.isRequired}),bold:ws.bool,dir:ws.string.isRequired},am.defaultProps={selected:!1,nested:!1,icon:void 0,bold:!1},om.propTypes={nested:ws.bool,className:ws.string},om.defaultProps={nested:!1,className:rm};const sm={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 lm({chartId:e,alignTo:t,currentId:n,dir:r,dock:o,list:i,onClose:a,show:s,instruction:l}){const c=i.map(((t,o)=>{var s;return x.createElement(x.Fragment,{key:t.id},x.createElement(am,{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&&x.createElement(_f,{dense:!0,dir:r,component:"div",disablePadding:!0},t.children.map((e=>x.createElement(am,{key:e.id,nested:!0,title:e.title,selected:e.selected,onClick:()=>{e.onSelect(),a(t.id)},dir:r})))),o<i.length-1&&x.createElement(Pf,{key:`divider-${t.id}`}))}));return x.createElement(em,xs({anchorEl:t,open:s,onClose:a},sm[o],{PaperProps:{style:{minWidth:"250px",maxHeight:"300px"}}}),x.createElement(_f,{dense:!0,disablePadding:!0,dir:r,"aria-label":l,component:"nav"},c))}lm.propTypes={chartId:ws.string.isRequired,alignTo:ws.any,currentId:ws.string.isRequired,dir:ws.string.isRequired,dock:ws.string.isRequired,list:ws.array,onClose:ws.func.isRequired,show:ws.bool.isRequired,instruction:ws.string.isRequired},lm.defaultProps={list:[],alignTo:null};const cm="title-button",um="active-title-button",dm=wp((({children:e,...t})=>x.createElement(xf,xs({size:"small",disableRipple:!0,disableTouchRipple:!0},t),e)))((()=>({"&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"}}))),pm=wp(xf)((()=>({borderRadius:"4px",width:"24px",height:"24px",minWidth:"22px",padding:0})));class fm extends x.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=x.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:o}=this.props;n&&(r||o)&&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(`.${cm}`);t&&(t.focus(),t.classList.add(um))}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(`.${cm}[data-id="${e}"]`);t&&t.focus()}),1e3);else{const e=document.querySelector(`.${um}`);e&&(e.classList.remove(um),setTimeout((()=>{e.focus()}),50))}}render(){const{chartId:e,titleData:t,popover:n,translator:r,disabled:o,isDimension:i,padding:a,minWidth:s,hasAlternative:l,supportConditional:c,showGroupDimOptions:u}=this.props,d={flex:"1 1 auto",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontWeight:"normal",lineHeight:"normal",...this.props.style},p=t.breadcrumbs.length,f=o||Boolean(!t.drillUp)||this.state.inSelection,m=t.breadcrumbs.map(((e,n)=>x.createElement(dm,{style:{display:"flex",alignItems:"center",color:f&&"rgba(89, 89, 89, 0.8)",pointerEvents:f?"none":"auto",paddingTop:0,paddingBottom:0,height:"100%"},key:n,onClick:()=>f?void 0:t.drillUp(p-n),title:e},x.createElement("span",{style:d},e),x.createElement(nm,xs({},as,{size:"small",style:{margin:"0 8px"}}))))),h=c||u?this.state.hasPopoverOptions:l,g=n&&!this.state.open?this.openPopover:this.closePopover,y=!n||o||this.state.inSelection,v={display:"flex",alignItems:"center",width:"100%",color:y&&"rgba(89, 89, 89, 0.8)",height:"100%",border:!i&&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})},S=$e.detectTextDirection(t.text),M=x.createElement(dm,{"aria-label":r.get(`Accessibility.${n&&h?"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:`${cm} ${t.id}`,"data-id":`${e}-${t.id}`},t.locked&&x.createElement(nm,xs({},rs,{size:"small",title:r.get("Tooltip.selections.locked")})),x.createElement("span",{style:d,dir:S},t.text),n&&h&&x.createElement(nm,xs({},is,{size:"small",style:{margin:"0 8px"}})));return x.createElement(x.Fragment,null,t.icon&&t.icon.onClick&&x.createElement(pm,{variant:"outlined",disabled:this.state.disableCyclicButton||this.state.inSelection,onClick:o?void 0:()=>t.icon.onClick({onError:b})},x.createElement(nm,xs({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip)}))),t.icon&&!t.icon.onClick&&x.createElement(nm,xs({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip),style:{margin:"0 4px 0 0"}})),m,x.createElement("div",{ref:this.alignToRef,style:{overflow:"hidden",pointerEvents:h?"auto":"none",height:"100%"}},M),n&&h&&x.createElement(lm,{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 mm(e){return{top:"bottom",bottom:"top",left:"right",right:"left"}[e]}fm.propTypes={chartId:ws.string.isRequired,disabled:ws.bool.isRequired,padding:ws.string,minWidth:ws.string,titleData:ws.shape({breadcrumbs:ws.arrayOf(ws.string).isRequired,icon:ws.shape({path:ws.shape({d:ws.string.isRequired}),tooltip:ws.string.isRequired,onClick:ws.func}),index:ws.number.isRequired,locked:ws.bool.isRequired,text:ws.string.isRequired,popoverText:ws.string.isRequired,drillUp:ws.func,id:ws.string.isRequired}).isRequired,popover:ws.shape({dir:ws.string.isRequired,dock:ws.string.isRequired,getPopoverOptions:ws.func.isRequired}),translator:ws.shape({get:ws.func.isRequired}).isRequired,selections:ws.shape({isActive:ws.func,addListener:ws.func,removeListener:ws.func}),style:ws.shape({fontSize:ws.string,color:ws.string,fontFamily:ws.string}).isRequired,isDimension:ws.bool.isRequired,hasAlternative:ws.bool.isRequired,supportConditional:ws.bool.isRequired,showGroupDimOptions:ws.bool.isRequired},fm.defaultProps={popover:null,selections:null,padding:"",minWidth:""};const hm=Ll({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 gm=Dl({productionPrefix:"qe391",disableGlobal:!0,seed:""});var ym={MAX_NUM_POINTS:5e4,DEFAULT_NUM_POINTS:2e3,DEFAULT_NUM_LINES:12};const{DEFAULT_NUM_POINTS:vm}=ym;function bm({layoutService:e,largeDataService:t}){const{maxNumPoints:n=vm}=(null==t?void 0:t.meta)||{},{qHyperCube:r}=e.getLayout();return r.qSize.qcy*r.qMeasureInfo.length>n}const{DEFAULT_NUM_LINES:xm}=ym,Sm=({layoutService:e,largeDataService:t})=>{const{maxNumLines:n=xm}=(null==t?void 0:t.meta)||{},{qHyperCube:r}=e.getLayout();return r.qDimensionInfo.length>1&&!bm({layoutService:e,largeDataService:t})?e.meta.size.dimensions[1]+1:n},{DEFAULT_NUM_POINTS:Mm}=ym,{MAX_NUM_POINTS:Cm,DEFAULT_NUM_POINTS:wm,DEFAULT_NUM_LINES:km}=ym,{DEFAULT_NUM_POINTS:Em}=ym,Tm=({layoutService:e,largeDataService:t})=>{if(!bm({layoutService:e,largeDataService:t})){const{maxNumPoints:e=Em}=(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:o=km,maxNumPoints:i=wm,hasInjectedData:a=!1}=(null==t?void 0:t.meta)||{};if(Sm({layoutService:e,largeDataService:t})*r[0]<=i)return r[0];const s=Math.max(1,Math.min(o,r[1])),l=i/s,c=Math.floor(r[0]<=l?l:l/4),u=2*s*(s+1);return a&&(s>km||i>wm)?Math.min(c,Math.ceil(Cm/u)):c})({layoutService:e,largeDataService:t}):(({layoutService:e,largeDataService:t})=>{const{maxNumPoints:n=Mm}=(null==t?void 0:t.meta)||{},{measureCount:r=1}=(null==e?void 0:e.meta)||{},o=4+2*(r-1);return Math.floor(n/(r*o))})({layoutService:e,largeDataService:t})};function qm({model:e,layoutService:t,largeDataService:n,definitionPath:r="/qHyperCubeDef"}){return{shouldFetchReduced:()=>bm({layoutService:t,largeDataService:n}),computeNbrOfBins:()=>Tm({layoutService:t,largeDataService:n}),computeMaxNumberLines:()=>Sm({layoutService:t,largeDataService:n}),fetch:(o,i)=>(({start:e,end:t,model:n,layoutService:r,largeDataService:o,definitionPath:i})=>{const a={qStart:e,qEnd:t,qNbrPoints:Tm({layoutService:r,largeDataService:o}),qMaxNbrTicks:300,qMaxNumberLines:Sm({layoutService:r,largeDataService:o})};return n.getHyperCubeContinuousData(i,a,!1)})({start:o,end:i,model:e,layoutService:t,largeDataService:n,definitionPath:r})}}function Lm(e={}){const{cache:t={}}=e;return{fetch:()=>Promise.resolve(t.merged)}}function Nm({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,o=r+t;return 1===t&&0===e&&(r=n-.5,o=n+.5),{zoom:{min:r,max:o}}}(n,t.get("continuousMin"))}}}function Om(){const e=()=>{},t=[],n={};return e.set=(e,r)=>{const o=t.indexOf(e);o>-1&&t.splice(o,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 Dm(e,t,n){return n[0]&&n[0][1]&&n[0][1].qElemNumber>-1?function({start:e,end:t,matrix:n}){const r=[],o=Om(),i=Om();for(let a=0;a<n.length;a++){const s=n[a],l=s[1].qElemNumber.toString();s[0].qNum<e?o.set(l,s):s[0].qNum>t&&(i.has(l)||i.set(l,s)),s[0].qNum>=e&&s[0].qNum<=t&&r.push(s)}return o.forEach(((e,t)=>r.splice(t,0,e))),i.forEach((e=>r.push(e))),r}({start:e,end:t,matrix:n}):function({start:e,end:t,matrix:n}){const r=[];let o,i;for(let a=0;a<n.length;a++){const s=n[a];s[0].qNum<e?o=s:s[0].qNum>t&&(i||(i=s)),s[0].qNum>=e&&s[0].qNum<=t&&r.push(s)}return o&&r.unshift(o),i&&r.push(i),r}({start:e,end:t,matrix:n})}function Am(e,t){return{...e,qWidth:t[0]?t[0].length:0,qHeight:t.length}}function Rm(e,t,n){const r={qDataPages:(n.qDataPages||[]).map((n=>{const r=Dm(e,t,n.qMatrix),o=Am(n.qArea,r);return{...n,qArea:o,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 Pm=2**.5,Im=1/Pm,zm=Im**44;function jm(e){return e.qIsOtherCell}function Fm({qDataPages:e=[]}={},t={}){const n=e.length?e[0].qMatrix:[];return t.isStackedByDimension?function(e){const t={};return e.forEach((e=>{if(!e.some(jm)){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(jm)||t++})),t}(n)}const Bm={query:{getShouldProcess:()=>!1},command:{processDataPage:()=>{}}};var _m={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],o=t[e+1];r.data={},o||1===r.end?o?(r.data.start=r.value,r.data.end=o.value,r.end=o.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}};function Hm(e,t=1){if(t%2==0)return e;let n=Math.round(e);return e-n>0?n+=.5:n-=.5,n}function $m(e,t){const{localProps:{size:n},props:{anchor:r}}=t,o=function({props:e,localProps:{size:t},style:n,renderer:r}){const o=e.label.padding,i=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:"",c=s(l);let{x:u,width:d}=r;e.start===e.end&&(d=c.width+2*o,1===e.end&&(u-=d));const p={x:u+o,y:o,width:d-2*o,height:t.height-2*o},f=s(`${l[0]}…`).width,m=Math.max(0,p.width-c.width),h=Math.max(0,p.height-c.height),g=i*m,y=a*h;return{show:p.width>=Math.min(f,c.width),text:l,dx:g,dy:y,rect:p,style:n.label,segment:{x:u+g,width:c.width+2*o},tickValue:e.value}}}}(t),i=function({localProps:{size:e},style:t,scale:n,props:r}){const[o,i]=n.domain(),a=Math.max(0,Math.min(1,r.guideLine.major.justify));return{resolve:(n,r)=>{const s=a*r.width,l=Hm(r.x+s,t.majorGuideLine.strokeWidth);return{show:n.value>=o&&n.value<=i,x1:l,y1:0,x2:l,y2:Hm(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:o.resolve(e,t),guideLine:i.resolve(e,t)}}));return function(e,t){const n=e.length;if(n<2)return;const r=e[n-1],o=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&&(i=n.segment,a=o.segment,!(i.x<a.x?i.x+i.width>=a.x:a.x+a.width>=i.x))}var i,a}(e,a),a}function Vm(e,t){const n=function({localProps:{size:e},props:t,style:n}){return{resolve:r=>{const o=Math.max(e.height-t.guideLine.minor.size,0)*Math.max(0,Math.min(t.guideLine.minor.align,1)),i=Hm(r.position*e.width,n.minorGuideLine.strokeWidth);return{guideLine:{show:!0,x1:i,y1:Hm(o,n.minorGuideLine.strokeWidth),x2:i,y2:Hm(t.guideLine.minor.size+o,n.minorGuideLine.strokeWidth),style:n.minorGuideLine}}}}}(t);return t.props.guideLine.minor.show?e.map(n.resolve):[]}function Wm(e){return e.filter((e=>e.show)).map((e=>he({strokeWidth:1},e.style,{type:"line",x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,tickValue:e.tickValue})))}var Um={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=Hm(1,t.line.strokeWidth);return{show:n.line.show,x1:Hm(0,t.line.strokeWidth),y1:r,x2:Hm(e.width,t.line.strokeWidth),y2:r,style:t.line}}(this),this.state.major=$m(n,this),this.state.minor=Vm(r,this)},render(){return[...Wm([this.state.line]),...(e=this.state.major.map((e=>e.label)),e.filter((e=>e.show)).map((e=>he({},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})))),...Wm(this.state.major.map((e=>e.guideLine))),...Wm(this.state.minor.map((e=>e.guideLine)))];var e}};function Km(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 Gm(e){return e.qTags.indexOf("$qualified")>-1}function Ym({qAxis:e}){const t=[],n=[];for(let r=0;r<e.length;r++){const o=r+1,i=e[r],a=e[o];Km(i,a)?(Gm(a)?(t.push(o),n.push(r)):(t.push(r),n.push(o)),r++):(t.push(r),n.push(r))}return{qualified:t,nonQualified:n}}function Xm({qualifiedMeta:e,nonQualifiedMeta:t}){return{resolve(n){let r,o=NaN,i=NaN,a=NaN,s=!1;for(let l=e.length-1;l>=0;l--){const c=e[l];if(c.queries.outer(n)){const e=t[l+1];if(o=c.index,r=l,c.attrs.isDayOrShorter()&&c.queries.canFitHalfDayTicks(n)){i="auto",s=!0;break}if(e&&e.queries.inner(n)){i=e.index;const r=t[l+2];r&&r.queries.minor(n)&&(a=r.index);break}}}if(!Number.isNaN(o)&&Number.isNaN(i)&&"auto"!==i){i=o,o=NaN;const e=t[r+1];e&&e.queries.minor(n)&&(a=e.index)}else Number.isNaN(o)&&(o="auto",i="auto");return{outer:o,inner:i,minor:a,isDayOrShorter:s}}}}function Jm({qTicks:e,measureText:t=()=>({width:0}),cache:n={},scale:r}){const o=n;return{isDayOrShorter:()=>(o.isDayOrShorter=e.length>0&&Math.abs(e[0].qStart-e[0].qEnd)<=1,o.isDayOrShorter),count:()=>e.length,maxRange:()=>(o.maxRange=e.length?Math.max(...e.map((e=>Math.abs(r(e.qStart)-r(e.qEnd))))):0,o.maxRange),rangeAndWidth(){const n=r.clamp();return r.clamp(!1),o.rangeAndWidth=e.map((e=>({range:Math.abs(r(e.qStart)-r(e.qEnd)),width:t(`${e.qText}`).width+16}))),r.clamp(n),o.rangeAndWidth}}}function Zm({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>=6,canFitHalfDayTicks:n=>n>=t*e.count()}}function Qm({qualified:e,nonQualified:t,qAxis:n,measureText:r,reqAutoFitWidth:o,scale:i},{attributesFactory:a=Jm,queryFactory:s=Zm}={attributesFactory:Jm,queryFactory:Zm}){const l=n.map(((e,t)=>function(e,t){const{qTicks:n}=e,l=a({qTicks:n,measureText:r,scale:i});return{data:e,index:t,attrs:l,queries:s({attrs:l,reqAutoFitWidth:o})}}(e,t))),c=e.map((e=>l[e])),u=t.map((e=>l[e]));return{qAxisMeta:l,qualifiedMeta:c,nonQualifiedMeta:u}}function eh({qAxis:e=[],measureText:t=()=>({width:0}),cache:n={},reqAutoFitWidth:r=0,scale:o},{metaFactory:i=Qm,mapper:a=Ym,resolver:s=Xm}={metaFactory:Qm,mapper:Ym,resolver:Xm}){const{qualified:l,nonQualified:c}=a({qAxis:e}),{qualifiedMeta:u,nonQualifiedMeta:d}=i({qAxis:e,qualified:l,nonQualified:c,measureText:t,reqAutoFitWidth:r,scale:o}),p=s({qualifiedMeta:u,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 o=p.resolve(t);return n.set(r,o),o}}}function th(e){return new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,0,Math.round(864e5*(e-Math.floor(e)))))}const nh=th(0).getTime();function rh(e){return(e.getTime()-nh)/86400/1e3}const oh=new Date,ih=new Date;function ah(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=t=>(e(t=new Date(+t)),t),o.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),o.round=e=>{const t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),o.range=(n,r,i)=>{const a=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return a;let s;do{a.push(s=new Date(+n)),t(n,i),e(n)}while(s<n&&n<r);return a},o.filter=n=>ah((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&&(o.count=(t,r)=>(oh.setTime(+t),ih.setTime(+r),e(oh),e(ih),Math.floor(n(oh,ih))),o.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?t=>r(t)%e==0:t=>o.count(0,t)%e==0):o:null)),o}const sh=1e3,lh=6e4,ch=36e5,uh=864e5,dh=6048e5,ph=ah((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*sh)}),((e,t)=>(t-e)/sh),(e=>e.getUTCSeconds()));ph.range;const fh=ah((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*sh)}),((e,t)=>{e.setTime(+e+t*lh)}),((e,t)=>(t-e)/lh),(e=>e.getMinutes()));fh.range;const mh=ah((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*lh)}),((e,t)=>(t-e)/lh),(e=>e.getUTCMinutes()));mh.range;const hh=ah((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*sh-e.getMinutes()*lh)}),((e,t)=>{e.setTime(+e+t*ch)}),((e,t)=>(t-e)/ch),(e=>e.getHours()));hh.range;const gh=ah((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*ch)}),((e,t)=>(t-e)/ch),(e=>e.getUTCHours()));gh.range;const yh=ah((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*lh)/uh),(e=>e.getDate()-1));yh.range;const vh=ah((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/uh),(e=>e.getUTCDate()-1));vh.range;const bh=ah((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/uh),(e=>Math.floor(e/uh)));function xh(e){return ah((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())*lh)/dh))}bh.range;const Sh=xh(0),Mh=xh(1),Ch=xh(2),wh=xh(3),kh=xh(4),Eh=xh(5),Th=xh(6);function qh(e){return ah((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)/dh))}Sh.range,Mh.range,Ch.range,wh.range,kh.range,Eh.range,Th.range;const Lh=qh(0),Nh=qh(1),Oh=qh(2),Dh=qh(3),Ah=qh(4),Rh=qh(5),Ph=qh(6);Lh.range,Nh.range,Oh.range,Dh.range,Ah.range,Rh.range,Ph.range;const Ih=ah((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()));Ih.range;const zh=ah((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()));zh.range;const jh=ah((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()));jh.every=e=>isFinite(e=Math.floor(e))&&e>0?ah((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,jh.range;const Fh=ah((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()));Fh.every=e=>isFinite(e=Math.floor(e))&&e>0?ah((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,Fh.range;const Bh=1,_h=2,Hh=3,$h=4,Vh=5,Wh=6;function Uh({timeScale:e,labels:t,distance:n,isDayOrShorter:r,cache:o,timeOnly:i,initialMin:a}){const[s,l]=e.domain(),c=o.key({distance:n});let u;o.get(c,1)?u=o.get(c,1):(u=function(e,t,n,r,o,i){function a(e){return Fh.filter((t=>(t.getUTCFullYear()-i.getUTCFullYear())%e==0))}const s=ph.count(e,t),l=mh.count(e,t),c=gh.count(e,t),u=vh.count(e,t),d=Lh.count(e,t),p=zh.count(e,t),f=Fh.count(e,t),m=n/r.second.width-1,h=n/r.minute.width-1,g=n/r.date.width-1,y=n/r.year.width-1,v={type:"year",desc:"year",count:f,interval:Fh.every(1),formatter:r.year.formatter,offset:e=>Fh.offset(e,-1),floor:Fh.floor};if(s<=m)v.type=Bh,v.desc="second",v.count=s,v.interval=ph.every(1),v.formatter=r.second.formatter,v.offset=e=>ph.offset(e,-1),v.floor=ph.floor;else if(s/2<=m)v.type=Bh,v.desc="every other second",v.count=s/2,v.interval=ph.every(2),v.formatter=r.second.formatter,v.offset=e=>ph.offset(e,-2),v.floor=ph.floor;else if(s/5<=m)v.type=Bh,v.desc="every 5 second",v.count=s/5,v.interval=ph.every(5),v.formatter=r.second.formatter,v.offset=e=>ph.offset(e,-5),v.floor=ph.floor;else if(s/15<=m)v.type=Bh,v.desc="every 15 second",v.count=s/15,v.interval=ph.every(15),v.formatter=r.second.formatter,v.offset=e=>ph.offset(e,-15),v.floor=ph.floor;else if(s/30<=m)v.type=Bh,v.desc="every 30 second",v.count=s/30,v.interval=ph.every(30),v.formatter=r.second.formatter,v.offset=e=>ph.offset(e,-30),v.floor=ph.floor;else if(l<=h)v.type=_h,v.desc="minute",v.count=l,v.interval=mh.every(1),v.formatter=r.minute.formatter,v.offset=e=>mh.offset(e,-1),v.floor=mh.floor;else if(l/2<=h)v.type=_h,v.desc="every 2 minute",v.count=l/2,v.interval=mh.every(2),v.formatter=r.minute.formatter,v.offset=e=>mh.offset(e,-2),v.floor=mh.floor;else if(l/5<=h)v.type=_h,v.desc="every 5 minute",v.count=l/5,v.interval=mh.every(5),v.formatter=r.minute.formatter,v.offset=e=>mh.offset(e,-5),v.floor=mh.floor;else if(l/10<=h)v.type=_h,v.desc="every 10 minute",v.count=l/10,v.interval=mh.every(10),v.formatter=r.minute.formatter,v.offset=e=>mh.offset(e,-10),v.floor=mh.floor;else if(l/15<=h)v.type=_h,v.desc="every 15 minute",v.count=l/15,v.interval=mh.every(15),v.formatter=r.minute.formatter,v.offset=e=>mh.offset(e,-15),v.floor=mh.floor;else if(l/30<=h)v.type=_h,v.desc="every 30 minute",v.count=l/30,v.interval=mh.every(30),v.formatter=r.minute.formatter,v.offset=e=>mh.offset(e,-30),v.floor=mh.floor;else if(c<=h)v.type=Hh,v.desc="hour",v.count=c,v.interval=gh.every(1),v.formatter=r.minute.formatter,v.offset=e=>gh.offset(e,-1),v.floor=gh.floor;else if(c/2<=h)v.type=Hh,v.desc="every 2 hour",v.count=c/2,v.interval=gh.every(2),v.formatter=r.minute.formatter,v.offset=e=>gh.offset(e,-2),v.floor=gh.floor;else if(c/3<=h)v.type=Hh,v.desc="every 3 hour",v.count=c/3,v.interval=gh.every(3),v.formatter=r.minute.formatter,v.offset=e=>gh.offset(e,-3),v.floor=gh.floor;else if(c/6<=h)v.type=Hh,v.desc="every 6 hour",v.count=c/6,v.interval=gh.every(6),v.formatter=r.minute.formatter,v.offset=e=>gh.offset(e,-6),v.floor=gh.floor;else if(c/12<=h||o)v.type=Hh,v.desc="every 12 hour",v.count=c/12,v.interval=gh.every(12),v.formatter=r.minute.formatter,v.offset=e=>gh.offset(e,-12),v.floor=gh.floor;else if(u<=g)v.type=$h,v.desc="day",v.count=u,v.interval=vh.every(1),v.formatter=r.date.formatter,v.offset=e=>vh.offset(e,-1),v.floor=vh.floor;else if(u/2<=g)v.type=$h,v.desc="every 2 day",v.count=u/2,v.interval=vh.every(2),v.formatter=r.date.formatter,v.offset=e=>vh.offset(e,-2),v.floor=vh.floor;else if(u/3<=g)v.type=$h,v.desc="every 3 day",v.count=u/3,v.interval=vh.every(3),v.formatter=r.date.formatter,v.offset=e=>vh.offset(e,-3),v.floor=vh.floor;else if(d<=g)v.type=$h,v.desc="week",v.count=d,v.interval=Lh.every(1),v.formatter=r.date.formatter,v.offset=e=>Lh.offset(e,-1),v.floor=vh.floor;else if(d/2<=g)v.type=$h,v.desc="every 2 week",v.count=d/2,v.interval=Lh.every(2),v.formatter=r.date.formatter,v.offset=e=>Lh.offset(e,-2),v.floor=vh.floor;else if(p<=g)v.type=Vh,v.desc="month",v.count=p,v.interval=zh.every(1),v.formatter=r.date.formatter,v.offset=e=>zh.offset(e,-1),v.floor=vh.floor;else if(p/3<=g)v.type=Vh,v.desc="quarter",v.count=p/3,v.interval=zh.every(3),v.formatter=r.date.formatter,v.offset=e=>zh.offset(e,-3),v.floor=vh.floor;else if(p/6<=g)v.type=Vh,v.desc="half year",v.count=p/6,v.interval=zh.every(6),v.formatter=r.date.formatter,v.offset=e=>zh.offset(e,-6),v.floor=vh.floor;else if(f<=y)v.type=Wh,v.desc="year",v.count=f,v.interval=Fh.every(1),v.formatter=r.year.formatter,v.offset=e=>Fh.offset(e,-1),v.floor=Fh.floor;else if(f/2<=y)v.type=Wh,v.desc="every 2 year",v.count=f/2,v.interval=a(2),v.formatter=r.year.formatter,v.offset=e=>Fh.offset(e,-2),v.floor=Fh.floor;else if(f/5<=y)v.type=Wh,v.desc="every 5 year",v.count=f/5,v.interval=a(5),v.formatter=r.year.formatter,v.offset=e=>Fh.offset(e,-5),v.floor=Fh.floor;else if(f/10<=y)v.type=Wh,v.desc="every 10 year",v.count=f/10,v.interval=a(10),v.formatter=r.year.formatter,v.offset=e=>Fh.offset(e,-10),v.floor=Fh.floor;else{const e=Math.max(1,Math.floor(f/y));v.type=Wh,v.desc="every nth year",v.count=e,v.interval=a(e),v.formatter=r.year.formatter,v.offset=t=>Fh.offset(t,-e),v.floor=Fh.floor}return v}(s,l,n,t.all(),r,a),o.set(c,u,1));const d=e.ticks(u.interval);d.length?s.getTime()!==d[0].getTime()&&d.unshift(u.offset(d[0])):d.push(u.floor(s));const p=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:u.formatter}}));let f=[];if(!i&&u.type<=Hh){const n=t.getFormat("date"),r=e.ticks(vh.every(1));r.length&&s.getUTCDate()!==r[0].getUTCDate()&&r.unshift(vh.offset(r[0],-1)),f=(r.length?r:[vh.floor(s)]).map(((e,t,r)=>{const o=r[t+1]?r[t+1]-e:l-e;return{start:e,end:new Date(e.getTime()+o),formatter:n.formatter}}))}return{inner:p,outer:f}}const Kh=86400,Gh=1440,Yh={};function Xh(e,t,n,r){return{type:e,start:new Date(Date.UTC(...t)),end:new Date(Date.UTC(...n)),formatter:r}}function Jh(e,t,n){const{generator:r,anchor:o,clamp:i,level:a}=t.ticks,{qNumFormat:s}=t.formatter;e.clamp(i);const[l,c]=e.domain(),u=Pi().domain([th(l),th(c)]);u.clamp(i),u.range(t.invert?[1,0]:[0,1]);const d="object"==typeof r?r:{type:r};let p;p="d3"===d.type?(e,o)=>Uh({timeScale:u,labels:n,distance:e,isDayOrShorter:o,cache:t.cache,timeOnly:"T"===s.qType,initialMin:void 0===d.initialMin?u.domain()[0]:th(r.initialMin)}):e=>function(e,t,n,r,o,i=!1){if(Yh[[t,n,r,r,i]])return Yh[[t,n,r,r,i]];const a={year:e.getFormat("year"),date:e.getFormat("date"),minute:e.getFormat("minute"),second:e.getFormat("second")},s=th(n),l=s.getFullYear(),c=s.getMonth(),u=s.getDate(),d=r-n,p=t/(o-r),f=p/1440,m=p/Kh,h=366*p,g=3*p*30,y=a.second.width/m,v=a.minute.width/f,b=a.date.width/g,x=a.year.width/h;let S,M,C,w=0,k=0,E=null,T=null,q=null,L=null,N=null,O=null;const D={outer:[],inner:[]};for(y<1?(E=1,k=1/Kh):y<2?(E=2,k=1/Kh*2):y<5?(E=5,k=1/Kh*5):y<10?(E=10,k=1/Kh*10):y<30?(E=30,k=1/Kh*30):v<1?(T=1,k=1/Gh):v<2?(T=2,k=1/Gh*2):v<5?(T=5,k=1/Gh*5):v<10?(T=10,k=.006944444444444445):v<30?(T=30,k=.020833333333333336):v<60?(q=1,k=1/24):v<120?(q=2,k=2/24):v<360?(q=6,k=.25):v<720?(q=12,k=.5):b<1/90?(k=1,L=1):b<2/90?(k=2,L=2):b<7/90?(k=7,L=7):b<31/90?(N=1,k=31):b<1?(N=3,k=90):x<1?(O=1,k=366):x<2?(O=2,k=732):x<5?(O=5,k=1826.25):(O=10,k=3652.5),M=Math.floor((d+n%1)/k);w<o;){C=M+1,S=O?Xh("year",[l+M*O,0,1],[l+C*O,0,1],a.year.formatter):N?Xh("month",[l,c+M*N,1],[l,c+C*N,1],a.date.formatter):L?Xh("day",[l,c,u+M*L],[l,c,u+C*L],a.date.formatter):q?Xh("hour",[l,c,u,0+M*q],[l,c,u,0+C*q],a.minute.formatter):T?Xh("minute",[l,c,u,0,0+M*T],[l,c,u,0,0+C*T],a.minute.formatter):Xh("second",[l,c,u,0,0,0+M*E],[l,c,u,0,0,0+C*E],a.second.formatter),w=rh(S.start),D.inner.push(S);const e=Math.floor(w);if(!(i||O||N||L)){const t={type:"day",start:th(e),end:th(e+1),formatter:a.date.formatter,qStart:e};D.outer[D.outer.length-1]&&D.outer[D.outer.length-1].qStart===t.qStart||D.outer.push(t)}M++}return D.min=r,D.max=o,Yh[[t,n,r,r,i]]=D,D}(n,e,d.min,l,c,"T"===s.qType);const f={transform:(t=[],{isMinor:n=!1}={})=>t.map((t=>{let r;r="start"===o?t.qStart:"end"===o?t.qEnd:(t.qStart+t.qEnd)/2;const i=e.clamp();n&&e.clamp(!1);const a=e(r),s=e(t.qStart),l=e(t.qEnd);return e.clamp(i),{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)=>p(t,n)[a].map((t=>{let n;return n="start"===o?rh(t.start):"end"===o?rh(t.end):(rh(t.start)+rh(t.end))/2,{position:u(t.start),start:u(t.start),end:u(t.end),value:n,label:t.formatter(n),isMinor:!1,data:{start:rh(t.start),end:rh(t.end),scaleStart:e.domain()[0]}}})).filter((e=>e.position>=0&&e.position<=1))};return f}const Zh=/t+/i;const Qh={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 eg(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 tg="continuousPan";var ng={model:function({model:e,layoutService:t,largeDataService:n,dataProcessorModel:r=Bm,viewCache:o,viewState:i,definitionPath:a},s={}){const{engineFetcherFactory:l=qm,snapshotFetcherFactory:c=Nm,cacheFetcherFactory:u=Lm,cache:d={initial:{},merged:{}}}=s,p=l({model:e,layoutService:t,largeDataService:n,definitionPath:a}),f=c({layoutService:t,viewCache:o}),m=u({cache:d}),h=e=>{throw e.isHandled=!0,e};let g,y,v;return{update(e){var n,r;({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])),o.set("continuousMin",y),o.set("continuousMax",v),o.set("minimiumZoomSpan",(n=y,r=v,Math.max(1e-6,(r-n)*zm))),g=t.meta.isSnapshot?f:p,t.meta.isSnapshot&&({zoom:{min:y,max:v}}=f.getSnapshotData()),i.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=Am(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=>Rm(y,v,e))).then((e=>this.updateLayout(e))).catch(h)},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,o=[],i=[];for(let t=0,a=e.length;t<a;t++){const a=e[t][0];a.qNum<n?o.push(e[t]):a.qNum>r&&i.push(e[t])}return[...o,...t,...i]}(e.qMatrix,t.qDataPages[n].qMatrix),o=Am(e.qArea,r);return{...e,qArea:o,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}))),o=t.qAxis.map((e=>({qName:e.qName,qTags:[...e.qTags],qTicks:[...e.qTicks]})));for(let t=0,i=e.qAxis.length;t<i;t++){const i=e.qAxis[t],a=n.indexOf(i.qName),s=[],l=[];if(a>-1){const{start:e,end:t}=r[a];for(let n=0,r=i.qTicks.length;n<r;n++){const r=i.qTicks[n];r.qStart<e?s.push(r):r.qStart>t&&l.push(r)}o[a].qTicks=[...s,...o[a].qTicks,...l]}}return{qAxis:o}}(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=>Rm(e,t,n))).catch(h),fetchFromCache:(e,t)=>m.fetch(e,t).then((n=>Rm(e,t,n))),fetchMinMaxData:()=>Promise.resolve(d.initial.qDataPages||[]),getInitialCube(){const e=t.getHyperCube();return he({},e,{...d.initial})},getInitialLayout(){const e=this.getInitialCube();return he({},t.getLayout(),{qHyperCube:e})},getDimensionCardinality:()=>Fm(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 o(e,n,o){return r[e](n,o).then((e=>(r.updateLayout(e),t(),e)))}const i=a(((e,t)=>o("fetch",e,t)),50);return({min:e,max:t},{min:r,max:a})=>!n.meta.isContinuous||e===r&&t===a?Promise.resolve(null):o("fetchFromCache",e,t).then((n=>(i(e,t),n)))},onZoomIntercept:function({viewCache:e}){let t=NaN,n=NaN,r=NaN;return(o,i)=>(t=e.get("continuousMin"),n=e.get("continuousMax"),r=e.get("minimiumZoomSpan"),Math.abs(o.max-o.min)<r?i:{min:Math.min(o.max,Math.max(t,o.min)),max:Math.max(o.min,Math.min(n,o.max))})},onZoom:function({viewCache:e,viewState:t,chart:n},{threshold:r=50,rtl:o=!1,targetKey:i}){const a=e.get("continuousMin"),l=e.get("continuousMax");return s(((e,r)=>{const s=(e=>n.componentsFromPoint(e).filter((e=>e.key===i))[0])(e);if(s){const i=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,s),c=o?1-i:i,{min:u,max:d}=t.get("zoom"),p=Math.abs(d-u),f=p-(r>0?Im:Pm)*p,m=u+f*c,h=d-f*(1-c),g=m<a?a-m:0,y=h>l?h-l:0;t.set("zoom",{min:Math.max(m-y,a),max:Math.min(h+g,l)})}}),r)}},interactions:{areaPan:function({targetKey:e,chart:t,actions:n,viewState:r,viewCache:o}){return{type:"Pan",key:"continuous:pan",options:{event:tg,pointers:1,threshold:10,enable(r,o){return this.started===tg||!o||!!n.scroll.enabled()&&t.componentsFromPoint({x:o.center.x,y:o.center.y}).some((t=>t.key===e))}},events:{[`${tg}start`](n){n.preventDefault(),this.started=tg;const{min:o,max:i}=r.get("zoom");this[tg]={min:o,max:i,size:t.component(e).rect.computedInner.width,span:i-o}},[`${tg}move`](e){e.preventDefault();const{span:t,min:n,max:i,size:a}=this[tg],s=-e.deltaX/a;r.set("zoom",{min:Math.min(n+s*t,o.get("continuousMax")-t),max:Math.max(i+s*t,o.get("continuousMin")+t)})},[`${tg}end`](e){e.preventDefault(),this.started=!1},[`${tg}cancel`](e){e.preventDefault(),this.started=!1}}}}},picassoComponents:{axisOverlay:_m,timeAxis:Um},picassoScales:{time:function e(t,n={}){const r=function(e,t,n){const r={};return Object.keys(t).forEach((o=>{const i=e[o],a=typeof i;"function"===a?r[o]=i(n):"object"!==a||Array.isArray(i)?r[o]="undefined"===a?t[o]:i:r[o]=he(!0,{},t[o],i)})),r}(t,Qh,n),{qAxis:i}=r,a=wr(),s={instance:null,invert:!1},{min:l,max:c}=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,d,p=[];const f=function(e){return Number.isNaN(+e)?NaN:a(e)};f.ticks=({distance:e,resolve:t=u.resolve}={})=>{const n=t(e),o=n[r.ticks.level];if(Number.isNaN(+o)||(p=d.transform(i[o].qTicks,{isMinor:!1})),!Number.isNaN(+n.minor)){const e=d.transform(i[n.minor].qTicks,{isMinor:!0});p=p.concat(e)}return"auto"===o&&(p=d.generate(e,n.isDayOrShorter)),p},f.invert=e=>a.invert(e),f.domain=e=>Array.isArray(e)?a.domain(e):a.domain(),f.range=e=>Array.isArray(e)?a.range(e):a.range(),f.norm=e=>(eg(s,f),s.instance(e)),f.normInvert=e=>(eg(s,f),s.instance.invert(e)),f.copy=()=>e(t,n),f.clamp=(e=!0)=>(a.clamp(e),a.clamp()),f.min=()=>Math.min(l,c),f.max=()=>Math.max(l,c),a.range(r.invert?[1,0]:[0,1]),a.domain([l,c]),s.invert=r.invert;const m=function(e){const t={},{measureText:n,fn:r,localeInfo:o}=e.formatter,i={second:{type:"second",pattern:"hh:mm:ss",width:60,formatter:void 0},minute:{type:"minute",pattern:"hh:mm",width:60,formatter:void 0},date:{type:"date",pattern:"YYYY-MM-DD",width:60,formatter:void 0},year:{type:"year",pattern:"YYYY",width:60,formatter:void 0}};return o&&Zh.test(o.qTimestampFmt)&&(i.minute.pattern+=" tt",i.second.pattern+=" tt"),i.date.pattern=o&&o.qDateFmt?o.qDateFmt:i.date.pattern,Object.keys(i).forEach((e=>{i[e].formatter=r(i[e].pattern),i[e].width=Math.max(i[e].width,n(i[e].formatter(41000.2343433)).width+16)})),t.getFormat=e=>i[e],t.all=()=>i,t.getFormatFromTicks=e=>{const t=e.filter((e=>!e.isMinor)),{length:n}=t;if(!n)return i.date;const r=th(t[0].data.start),o=th(t[n-1].data.start);return vh.count(r,o)/n>=1?i.date:gh.count(r,o)/n>0?i.minute:mh.count(r,o)/n>0?i.second:i.date},t}(r);return d=Jh(a.copy(),r,m),u=eh({qAxis:i,measureText:r.formatter.measureText,reqAutoFitWidth:2*m.getFormat("minute").width,cache:r.cache,scale:f}),f.data=()=>({fields:[{formatter:f.formatter,id:()=>`qHyperCube/${r.field}`,key:()=>r.field,raw:o(n,"fields.0.raw",(()=>({})))}]}),f.formatter=()=>m.getFormatFromTicks(p).formatter,f}}};const rg={MINI_CHART:{value:"miniChart",translation:"properties.scrollbar.miniChart"},BAR:{value:"bar",translation:"properties.scrollbar.bar"},NONE:{value:"none",translation:"properties.scrollbar.none"}};var og={OPTIONS:rg,DEFAULT:rg.MINI_CHART};function ig({layoutService:e,discrete:t}){return({h:n,rect:r,orientation:o,minThumbSize:i})=>{const a=t.query.getCurrentDataPage(),s=e.meta.size.y,l="horizontal"===o,c=r[l?"width":"height"];let u=a.qArea.qTop/s*c,d=a.qArea.qHeight/s*c;if(d<i){const e=(i-d)/2;u=u-e+(Math.max(0,0-(u-e))-Math.max(0,u+d+e-c)),d=i}return n("div",{style:{position:"absolute",right:0,bottom:0,background:"red",opacity:.2,...l?{top:0,left:u,width:d}:{top:u,left:0,height:d}}})}}function ag({layoutService:e,viewState:t,viewCache:n}){return e.meta.isContinuous?function(e,t){const n=e.get("zoom"),r=t.get("continuousMin"),o=t.get("continuousMax");return[(n.min-r)/(o-r),(n.max-r)/(o-r)]}(t,n):function(e){return e.get("viewRange")}(t)}const sg=e=>({miniChart:e===og.OPTIONS.MINI_CHART.value,bar:e===og.OPTIONS.BAR.value,none:e===og.OPTIONS.NONE.value});function lg({layoutService:e,override:t}){const n=(({layoutService:e})=>{const t=e.getLayoutValue("scrollbar");if(t)return sg(t);const n=e.getLayoutValue("showMiniChartForContinuousAxis");if(void 0===n)return sg(og.DEFAULT.value);const r=e.getLayoutValue("dimensionAxis.continuousAuto"),o=e.getLayoutValue("preferContinuousAxis");return sg(!n&&(r||!r&&o)?og.OPTIONS.NONE.value:og.OPTIONS.MINI_CHART.value)})({layoutService:e});return t&&t.predicate({layoutService:e,scrollbar:n})&&(n.miniChart=t.value===og.OPTIONS.MINI_CHART.value,n.bar=t.value===og.OPTIONS.BAR.value,n.none=t.value===og.OPTIONS.NONE.value),n}function cg({layoutService:e,dockService:t,discrete:n,continuousDataModel:r,viewState:o,viewCache:i,themeService:a,rtl:s,scrollbarOverride:l,visualizeCache:c=!1,deviceType:u}){const d=lg({layoutService:e,override:l});if(d.none)return!1;const{orientation:p}=t.meta.major,f={key:"scrollbar",type:"scrollbar",layout:{dock:"horizontal"===p?t.meta.minor.start:t.meta.minor.end,minimumLayoutMode:"XSMALL"},show:()=>e.meta.isContinuous?r.getDimensionCardinality()>1:n.query.getCanScroll(),settings:{orientation:p,rtl:s,isContinuous:e.meta.isContinuous,range:()=>ag({layoutService:e,viewState:o,viewCache:i})}};d.bar&&(f.settings.style="slim",f.settings.size={area:"touch"===u?{max:16,min:16}:{max:8,min:8}},e.meta.isContinuous||(f.settings.size.thumb={min:4}));const m=a.getStyles();return m.color&&(f.style={standard:{thumb:{"border-color":m.color,opacity:.4},before:{background:m.color,opacity:.1},after:{background:m.color,opacity:.1}}}),e.meta.isDiscrete&&c&&(f.settings.injections=()=>[ig({layoutService:e,discrete:n})]),f}function ug({componentKey:e,chart:t,viewState:n,viewCache:r,layoutService:o,dockService:i,rtl:a}){return s=>{const{x:l,y:c}=s.center,u=t.element.getBoundingClientRect(),d=t.component(e),p="horizontal"===i.meta.major.orientation,f=p?l-u.left-d.rect.computedInner.x:c-u.top-d.rect.computedInner.y,m=p?d.rect.computedInner.width:d.rect.computedInner.height,h=p&&a?m-f:f,g=Math.max(0,Math.min(h/m,1)),[y,v]=ag({layoutService:o,viewState:n,viewCache:r}),b=g<y,x=g>v,S=!b&&!x;return{pixel:h,relative:g,thumb:S?h-y*m:0,beforeThumb:b,afterThumb:x,onThumb:S}}}function dg({componentKey:e,chart:t,viewState:n,viewCache:r,layoutService:o,dockService:i}){return()=>{const a=t.component(e),{orientation:s}=i.meta.major,{width:l,height:c}=a.rect.computedInner,u="horizontal"===s?l:c,[d,p]=ag({layoutService:o,viewState:n,viewCache:r});return{size:u,thumbSize:(p-d)*u}}}function pg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}){const c=ug({componentKey:e,chart:t,viewState:r,viewCache:o,layoutService:i,dockService:a,rtl:l}),u=dg({componentKey:e,chart:t,viewState:r,viewCache:o,layoutService:i,dockService:a});return{type:"Tap",options:{event:"scrollbarTap",enable:(r,o)=>!o||!!n.scroll.enabled()&&t.componentsFromPoint({x:o.center.x,y:o.center.y}).some((t=>t.key===e))},events:{scrollbarTap(n){n.preventDefault();const a=c(n);if(i.meta.isContinuous){const e=r.get("zoom"),t=e.max-e.min,n=o.get("continuousMin"),i=o.get("continuousMax"),s=n+(i-n)*a.relative;r.set("zoom",{min:Math.min(s-t/2,i-t),max:Math.max(s+t/2,n+t)})}else{const e=u(),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 mg({e:e}){return(e.srcEvent||e).srcElement.getAttribute(fg)||""}const hg="scrollbarResize";function gg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,rtl:s}){const l=ug({componentKey:e,chart:t,viewState:r,viewCache:o,layoutService:i,dockService:a,rtl:s});return{type:"Pan",key:`event:${hg}`,options:{event:hg,threshold:0,enable(e,t){return!(!i.meta.isContinuous||!n.scroll.enabled())&&(!t||(this[hg]=this[hg]||{},(e=>{const[t]=e.changedPointers;return t&&("pointerdown"===t.type||"mousedown"===t.type)})(t)&&mg({e:t})&&(this[hg].panningEvent=t.srcEvent),!!this[hg].panningEvent))}},events:{[`${hg}start`](n){n.preventDefault(),this[hg]=this[hg]||{},this[hg].panningEvent&&t.component(e).emit("dragStart",this[hg].panningEvent)},[`${hg}move`](n){if(n.preventDefault(),this[hg]=this[hg]||{},!this[hg].panningEvent)return;const i=r.get("zoom"),a=o.get("continuousMin"),s=o.get("continuousMax"),c=o.get("minimiumZoomSpan"),u=(s-a)*l(n).relative+a,d=mg({e:this[hg].panningEvent});let p="start"===d?Math.min(u,i.max):i.min,f="end"===d?Math.max(u,i.min):i.max;p===f&&(p-="start"===d?c:0,f+="end"===d?c:0),r.set("zoom",{min:p,max:f}),t.component(e).emit("render")},[`${hg}end`](n){n.preventDefault(),this[hg]=this[hg]||{},delete this[hg].panningEvent,t.component(e).emit("dragEnd")},[`${hg}cancel`](n){n.preventDefault(),this[hg]=this[hg]||{},delete this[hg].panningEvent,t.component(e).emit("dragEnd")}}}}const yg="scrollbarPan";function vg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}){const c=ug({componentKey:e,chart:t,viewState:r,viewCache:o,layoutService:i,dockService:a,rtl:l}),u=dg({componentKey:e,chart:t,viewState:r,viewCache:o,layoutService:i,dockService:a});return{type:"Pan",key:`event:${yg}`,options:{event:yg,threshold:0,enable(r,o){return this[yg]=this[yg]||{},!(o&&!this[yg].isPanning)||!!n.scroll.enabled()&&((!o||o.target===t.element)&&t.componentsFromPoint({x:o.center.x,y:o.center.y}).some((t=>t.key===e)))}},events:{[`${yg}start`](n){n.preventDefault();const a=c(n);if(this[yg]=this[yg]||{},this[yg].isPanning=!0,t.component(e).emit("lockState"),i.meta.isContinuous){const e=r.get("zoom"),t=e.max-e.min,n=o.get("continuousMin"),i=o.get("continuousMax"),s=n+(i-n)*a.relative;s<e.min?r.set("zoom",{min:Math.min(s,i-t),max:Math.max(s+t,n+t)}):s>e.max&&r.set("zoom",{min:Math.min(s-t,i-t),max:Math.max(s,n+t)}),this[yg].relative=a.relative,this[yg].zoom=r.get("zoom"),this[yg].zoom.span=this[yg].zoom.max-this[yg].zoom.min,this[yg].zoom.fullSpan=i-n}else if(a.onThumb)this[yg].offset=a.thumb;else{const e=u();this[yg].offset=a.beforeThumb?0:e.thumbSize}},[`${yg}move`](n){n.preventDefault();const a=c(n);if(this[yg]=this[yg]||{},i.meta.isContinuous){const e=a.relative-this[yg].relative,{fullSpan:t,span:n,min:i,max:s}=this[yg].zoom,l=o.get("continuousMin"),c=o.get("continuousMax");r.set("zoom",{min:Math.min(i+e*t,c-n),max:Math.max(s+e*t,l+n)})}else{const e=a.pixel-(this[yg].offset||0),t=u(),n=Math.max(0,e/t.size);s.command.scrollTo(n)}t.component(e).emit("render")},[`${yg}end`](n){n.preventDefault(),this[yg]=this[yg]||{},this[yg].isPanning=!1,t.component(e).emit("unlockState")},[`${yg}cancel`](n){n.preventDefault(),this[yg]=this[yg]||{},this[yg].isPanning=!1,t.component(e).emit("unlockState")}}}}function bg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}){return[pg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}),gg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,rtl:l}),vg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l})]}function xg({componentKey:e,chart:t,actions:n,layoutService:r}){const o=(o,i)=>{if(!r.meta.isContinuous)return;const a=t.component(e);a&&a.emit&&n.scroll.enabled()&&a.emit(o,i)};return{type:"native",events:{mousemove:e=>o("hover",e),mouseleave:()=>o("leave")}}}function Sg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}){return{gestures:[...bg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l})],native:xg({componentKey:e,chart:t,actions:n,layoutService:i})}}const Mg={background:"rgba(0, 0, 0, 0.1)"},Cg={top:-1,bottom:-1,width:6},wg={width:2,background:"#595959"};var kg={before:Mg,after:Mg,thumb:{background:"transparent",border:"1px solid rgba(68, 68, 68, 0.4)"},startHandle:Cg,endHandle:Cg,startHandleBorder:wg,endHandleBorder:wg};const Eg={background:"rgba(0, 0, 0, 0.1)"},Tg={top:-1,bottom:-1,width:6},qg={width:2,background:"#595959"};var Lg={before:Eg,after:Eg,thumb:{background:"#B0AFAE",border:"transparent"},startHandle:Tg,endHandle:Tg,startHandleBorder:qg,endHandleBorder:qg};const Ng={position:"absolute",top:0,right:0,bottom:0,left:0,boxSizing:"border-box"},Og={pointerEvents:"initial"},Dg={pointerEvents:"none"};const Ag="ew-resize",Rg="default";function Pg(){const{rect:e}=this,{settings:t}=this.settings,n="horizontal"===t.orientation,r=n?e.computedInner.width:e.computedInner.height,o=t.range(),i=n&&t.rtl;return{size:r,start:(i?1-o[1]:o[0])*r,end:(i?1-o[0]:o[1])*r}}function Ig(){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?Ag:Rg}function zg(e,t,n){const{min:r}=this.settings.settings.size.thumb;if(n-t<r){const o=(r-(n-t))/2,i=Math.max(0,0-(t-o))-Math.max(0,n+o-e);return{size:e,start:t-o+i,end:n+o+i}}return{size:e,start:t,end:n}}function jg(e){const t=(e.srcEvent||e).srcElement;return this.renderer.element().contains(t)}function Fg(){const{size:e,start:t,end:n}=Pg.call(this);this.renderer.render(this.elements(this.h,zg.call(this,e,t,n)))}function Bg(){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?Lg:kg;return{container:{...Ng},before:{...Ng,...n.before,...t.before},after:{...Ng,...n.after,...t.after},thumb:{...Ng,...n.thumb,...t.thumb},startHandle:{...Ng,...Og,...n.startHandle},endHandle:{...Ng,...Og,...n.endHandle},startHandleBorder:{...Ng,...Dg,...n.startHandleBorder},endHandleBorder:{...Ng,...Dg,...n.endHandleBorder}}}({id:t.settings.style,style:n[r]})),e.style[r]}var _g={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(){Fg.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||!jg.call(this,e)&&this.state.hover.isPristine())return;this.state.hover.reset();const t=mg({e:e});t&&(this.state.hover[t]=!0),Ig.call(this),Fg.call(this)},leave(){this.state.locked||(this.state.hover.reset(),Ig.call(this),Fg.call(this))},dragStart(e){if(this.state.locked)return;this.state.drag.reset();const t=mg({e:e});t&&(this.state.drag[t]=!0),Ig.call(this)},dragEnd(){this.state.locked||(this.state.drag.reset(),Ig.call(this),Fg.call(this))}},preferredSize({outer:e}){const{min:t,max:n,ratio:r}=this.settings.settings.size.area,o="horizontal"===this.settings.settings.orientation?"height":"width";return Math.max(t,Math.min(n,e[o]*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}=Pg.call(this);return this.elements(e,zg.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:o}=this.settings,i=o.injections().map((t=>t({h:e,rect:this.rect,orientation:o.orientation,minThumbSize:o.size.thumb.min})));return function({h:e,size:t,start:n,end:r,properties:o,startHandleActive:i,endHandleActive:a,style:s,continuous:l,invert:c,injections:u}){const d={[o.end]:t-n},p={[o.start]:r},f={left:-3},m={left:1},h={right:-3,left:"auto"},g={left:3},y=e("div",{style:{...s.before,...c?p:d},class:"scrollbar--before"}),v=e("div",{style:{...s.after,...c?d:p},class:"scrollbar--after"}),b=[];if(l){const t=e("div",{style:{...s.startHandle,...c?h:f},class:"scrollbar--start-handle",[fg]:"start"},i?e("div",{style:{...s.startHandleBorder,...c?g:m}}):void 0);b.push(t);const n=e("div",{style:{...s.endHandle,...c?f:h},class:"scrollbar--end-handle",[fg]:"end"},a?e("div",{style:{...s.endHandleBorder,...c?m:g}}):void 0);b.push(n)}const x=e("div",{style:{...s.thumb,[o.start]:n,[o.end]:t-r},class:"scrollbar--thumb"},b);return e("div",{style:{...s.container}},[y,x,v,...u])}({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:Bg.call(this),continuous:o.isContinuous,invert:"horizontal"===o.orientation&&o.rtl,injections:i})}};const Hg={black:"#000",white:"#fff"},$g="#e57373",Vg="#ef5350",Wg="#f44336",Ug="#d32f2f",Kg="#c62828",Gg="#f3e5f5",Yg="#ce93d8",Xg="#ba68c8",Jg="#ab47bc",Zg="#9c27b0",Qg="#7b1fa2",ey="#e3f2fd",ty="#90caf9",ny="#42a5f5",ry="#1976d2",oy="#1565c0",iy="#4fc3f7",ay="#29b6f6",sy="#03a9f4",ly="#0288d1",cy="#01579b",uy="#81c784",dy="#66bb6a",py="#4caf50",fy="#388e3c",my="#2e7d32",hy="#1b5e20",gy="#ffb74d",yy="#ffa726",vy="#ff9800",by="#f57c00",xy="#e65100",Sy={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 My(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 Cy=Object.freeze({__proto__:null,default:My}),wy="$$material";var ky=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){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),Ey="-ms-",Ty="-moz-",qy="-webkit-",Ly="comm",Ny="rule",Oy="decl",Dy="@keyframes",Ay=Math.abs,Ry=String.fromCharCode,Py=Object.assign;function Iy(e){return e.trim()}function zy(e,t,n){return e.replace(t,n)}function jy(e,t){return e.indexOf(t)}function Fy(e,t){return 0|e.charCodeAt(t)}function By(e,t,n){return e.slice(t,n)}function _y(e){return e.length}function Hy(e){return e.length}function $y(e,t){return t.push(e),e}var Vy=1,Wy=1,Uy=0,Ky=0,Gy=0,Yy="";function Xy(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Vy,column:Wy,length:a,return:""}}function Jy(e,t){return Py(Xy("",null,null,"",null,null,0),e,{length:-e.length},t)}function Zy(){return Gy=Ky>0?Fy(Yy,--Ky):0,Wy--,10===Gy&&(Wy=1,Vy--),Gy}function Qy(){return Gy=Ky<Uy?Fy(Yy,Ky++):0,Wy++,10===Gy&&(Wy=1,Vy++),Gy}function ev(){return Fy(Yy,Ky)}function tv(){return Ky}function nv(e,t){return By(Yy,e,t)}function rv(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 ov(e){return Vy=Wy=1,Uy=_y(Yy=e),Ky=0,[]}function iv(e){return Yy="",e}function av(e){return Iy(nv(Ky-1,cv(91===e?e+2:40===e?e+1:e)))}function sv(e){for(;(Gy=ev())&&Gy<33;)Qy();return rv(e)>2||rv(Gy)>3?"":" "}function lv(e,t){for(;--t&&Qy()&&!(Gy<48||Gy>102||Gy>57&&Gy<65||Gy>70&&Gy<97););return nv(e,tv()+(t<6&&32==ev()&&32==Qy()))}function cv(e){for(;Qy();)switch(Gy){case e:return Ky;case 34:case 39:34!==e&&39!==e&&cv(Gy);break;case 40:41===e&&cv(e);break;case 92:Qy()}return Ky}function uv(e,t){for(;Qy()&&e+Gy!==57&&(e+Gy!==84||47!==ev()););return"/*"+nv(t,Ky-1)+"*"+Ry(47===e?e:Qy())}function dv(e){for(;!rv(ev());)Qy();return nv(e,Ky)}function pv(e){return iv(fv("",null,null,null,[""],e=ov(e),0,[0],e))}function fv(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,m=0,h=1,g=1,y=1,v=0,b="",x=o,S=i,M=r,C=b;g;)switch(m=v,v=Qy()){case 40:if(108!=m&&58==Fy(C,d-1)){-1!=jy(C+=zy(av(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:C+=av(v);break;case 9:case 10:case 13:case 32:C+=sv(m);break;case 92:C+=lv(tv()-1,7);continue;case 47:switch(ev()){case 42:case 47:$y(hv(uv(Qy(),tv()),t,n),l);break;default:C+="/"}break;case 123*h:s[c++]=_y(C)*y;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==y&&(C=zy(C,/\f/g,"")),f>0&&_y(C)-d&&$y(f>32?gv(C+";",r,n,d-1):gv(zy(C," ","")+";",r,n,d-2),l);break;case 59:C+=";";default:if($y(M=mv(C,t,n,c,u,o,s,b,x=[],S=[],d),i),123===v)if(0===u)fv(C,t,M,M,x,i,d,s,S);else switch(99===p&&110===Fy(C,3)?100:p){case 100:case 108:case 109:case 115:fv(e,M,M,r&&$y(mv(e,M,M,0,0,o,s,b,o,x=[],d),S),o,S,d,s,r?x:S);break;default:fv(C,M,M,M,[""],S,0,s,S)}}c=u=f=0,h=y=1,b=C="",d=a;break;case 58:d=1+_y(C),f=m;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==Zy())continue;switch(C+=Ry(v),v*h){case 38:y=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(_y(C)-1)*y,y=1;break;case 64:45===ev()&&(C+=av(Qy())),p=ev(),u=d=_y(b=C+=dv(tv())),v++;break;case 45:45===m&&2==_y(C)&&(h=0)}}return i}function mv(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,p=0===o?i:[""],f=Hy(p),m=0,h=0,g=0;m<r;++m)for(var y=0,v=By(e,d+1,d=Ay(h=a[m])),b=e;y<f;++y)(b=Iy(h>0?p[y]+" "+v:zy(v,/&\f/g,p[y])))&&(l[g++]=b);return Xy(e,t,n,0===o?Ny:s,l,c,u)}function hv(e,t,n){return Xy(e,t,n,Ly,Ry(Gy),By(e,2,-2),0)}function gv(e,t,n,r){return Xy(e,t,n,Oy,By(e,0,r),By(e,r+1,-1),r)}function yv(e,t){for(var n="",r=Hy(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function vv(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Oy:return e.return=e.return||e.value;case Ly:return"";case Dy:return e.return=e.value+"{"+yv(e.children,r)+"}";case Ny:e.value=e.props.join(",")}return _y(n=yv(e.children,r))?e.return=e.value+"{"+n+"}":""}function bv(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var xv=function(e,t,n){for(var r=0,o=0;r=o,o=ev(),38===r&&12===o&&(t[n]=1),!rv(o);)Qy();return nv(e,Ky)},Sv=function(e,t){return iv(function(e,t){var n=-1,r=44;do{switch(rv(r)){case 0:38===r&&12===ev()&&(t[n]=1),e[n]+=xv(Ky-1,t,n);break;case 2:e[n]+=av(r);break;case 4:if(44===r){e[++n]=58===ev()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Ry(r)}}while(r=Qy());return e}(ov(e),t))},Mv=new WeakMap,Cv=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)||Mv.get(n))&&!r){Mv.set(e,!0);for(var o=[],i=Sv(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},wv=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function kv(e,t){switch(function(e,t){return 45^Fy(e,0)?(((t<<2^Fy(e,0))<<2^Fy(e,1))<<2^Fy(e,2))<<2^Fy(e,3):0}(e,t)){case 5103:return qy+"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 qy+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return qy+e+Ty+e+Ey+e+e;case 6828:case 4268:return qy+e+Ey+e+e;case 6165:return qy+e+Ey+"flex-"+e+e;case 5187:return qy+e+zy(e,/(\w+).+(:[^]+)/,qy+"box-$1$2"+Ey+"flex-$1$2")+e;case 5443:return qy+e+Ey+"flex-item-"+zy(e,/flex-|-self/,"")+e;case 4675:return qy+e+Ey+"flex-line-pack"+zy(e,/align-content|flex-|-self/,"")+e;case 5548:return qy+e+Ey+zy(e,"shrink","negative")+e;case 5292:return qy+e+Ey+zy(e,"basis","preferred-size")+e;case 6060:return qy+"box-"+zy(e,"-grow","")+qy+e+Ey+zy(e,"grow","positive")+e;case 4554:return qy+zy(e,/([^-])(transform)/g,"$1"+qy+"$2")+e;case 6187:return zy(zy(zy(e,/(zoom-|grab)/,qy+"$1"),/(image-set)/,qy+"$1"),e,"")+e;case 5495:case 3959:return zy(e,/(image-set\([^]*)/,qy+"$1$`$1");case 4968:return zy(zy(e,/(.+:)(flex-)?(.*)/,qy+"box-pack:$3"+Ey+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+qy+e+e;case 4095:case 3583:case 4068:case 2532:return zy(e,/(.+)-inline(.+)/,qy+"$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(_y(e)-1-t>6)switch(Fy(e,t+1)){case 109:if(45!==Fy(e,t+4))break;case 102:return zy(e,/(.+:)(.+)-([^]+)/,"$1"+qy+"$2-$3$1"+Ty+(108==Fy(e,t+3)?"$3":"$2-$3"))+e;case 115:return~jy(e,"stretch")?kv(zy(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Fy(e,t+1))break;case 6444:switch(Fy(e,_y(e)-3-(~jy(e,"!important")&&10))){case 107:return zy(e,":",":"+qy)+e;case 101:return zy(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+qy+(45===Fy(e,14)?"inline-":"")+"box$3$1"+qy+"$2$3$1"+Ey+"$2box$3")+e}break;case 5936:switch(Fy(e,t+11)){case 114:return qy+e+Ey+zy(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return qy+e+Ey+zy(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return qy+e+Ey+zy(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return qy+e+Ey+e+e}return e}var Ev=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Oy:e.return=kv(e.value,e.length);break;case Dy:return yv([Jy(e,{value:zy(e.value,"@","@"+qy)})],r);case Ny: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 yv([Jy(e,{props:[zy(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return yv([Jy(e,{props:[zy(t,/:(plac\w+)/,":"+qy+"input-$1")]}),Jy(e,{props:[zy(t,/:(plac\w+)/,":-moz-$1")]}),Jy(e,{props:[zy(t,/:(plac\w+)/,Ey+"input-$1")]})],r)}return""}))}}],Tv=function(e){var t=e.key;if("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,o,i=e.stylisPlugins||Ev,a={},s=[];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,c,u=[vv,(c=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],d=function(e){var t=Hy(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}([Cv,wv].concat(i,u));o=function(e,t,n,r){l=n,function(e){yv(pv(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new ky({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return p.sheet.hydrate(s),p};function qv(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var Lv=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Nv=function(e,t,n){Lv(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};var Ov={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,scale: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},Dv=/[A-Z]|^ms/g,Av=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Rv=function(e){return 45===e.charCodeAt(1)},Pv=function(e){return null!=e&&"boolean"!=typeof e},Iv=bv((function(e){return Rv(e)?e:e.replace(Dv,"-$&").toLowerCase()})),zv=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Av,(function(e,t,n){return Fv={name:t,styles:n,next:Fv},t}))}return 1===Ov[e]||Rv(e)||"number"!=typeof t||0===t?t:t+"px"};function jv(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return Fv={name:o.name,styles:o.styles,next:Fv},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)Fv={name:a.name,styles:a.styles,next:Fv},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=jv(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=i+"{"+t[s]+"}":Pv(s)&&(r+=Iv(i)+":"+zv(i,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=jv(e,t,a);switch(i){case"animation":case"animationName":r+=Iv(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var c=0;c<a.length;c++)Pv(a[c])&&(r+=Iv(i)+":"+zv(i,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=Fv,l=n(e);return Fv=s,jv(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var Fv,Bv=/label:\s*([^\s;{]+)\s*(;|$)/g;function _v(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,o="";Fv=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=jv(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=jv(n,t,e[a]),r)o+=i[a]}Bv.lastIndex=0;for(var s,l="";null!==(s=Bv.exec(o));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=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(o){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)}(o)+l;return{name:c,styles:o,next:Fv}}var Hv,$v,Vv=!!S.useInsertionEffect&&S.useInsertionEffect,Wv=Vv||function(e){return e()},Uv=Vv||S.useLayoutEffect,Kv=S.createContext("undefined"!=typeof HTMLElement?Tv({key:"css"}):null),Gv=Kv.Provider,Yv=function(e){return k((function(t,n){var r=E(Kv);return e(t,r,n)}))},Xv=S.createContext({}),Jv={}.hasOwnProperty,Zv="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Qv=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Lv(t,n,r),Wv((function(){return Nv(t,n,r)})),null},eb=Yv((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[Zv],i=[r],a="";"string"==typeof e.className?a=qv(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=_v(i,void 0,S.useContext(Xv));a+=t.key+"-"+s.name;var l={};for(var c in e)Jv.call(e,c)&&"css"!==c&&c!==Zv&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),S.createElement(S.Fragment,null,S.createElement(Qv,{cache:t,serialized:s,isStringTag:"string"==typeof o}),S.createElement(o,l))})),tb=eb,nb=function(e,t){var n=arguments;if(null==t||!Jv.call(t,"css"))return S.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=tb,o[1]=function(e,t){var n={};for(var r in t)Jv.call(t,r)&&(n[r]=t[r]);return n[Zv]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return S.createElement.apply(null,o)};Hv=nb||(nb={}),$v||($v=Hv.JSX||(Hv.JSX={}));var rb=Yv((function(e,t){var n=_v([e.styles],void 0,S.useContext(Xv)),r=S.useRef();return Uv((function(){var e=t.key+"-global",o=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==a&&(i=!0,a.setAttribute("data-emotion",e),o.hydrate([a])),r.current=[o,i],function(){o.flush()}}),[t]),Uv((function(){var e=r.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&Nv(t,n.next,!0),o.tags.length){var i=o.tags[o.tags.length-1].nextElementSibling;o.before=i,o.flush()}t.insert("",n,o,!1)}}),[t,n.name]),null}));function ob(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return _v(t)}function ib(){var e=ob.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_"}}}var ab=/^((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|fetchpriority|fetchPriority|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)-.*))$/,sb=bv((function(e){return ab.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),lb=function(e){return"theme"!==e},cb=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?sb:lb},ub=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},db=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Lv(t,n,r),Wv((function(){return Nv(t,n,r)})),null},pb=function e(t,n){var r,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var s=ub(t,n,i),l=s||cb(a),c=!l("as");return function(){var u=arguments,d=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{var p=u[0];d.push(p[0]);for(var f=u.length,m=1;m<f;m++)d.push(u[m],p[m])}var h=Yv((function(e,t,n){var r=c&&e.as||a,i="",u=[],p=e;if(null==e.theme){for(var f in p={},e)p[f]=e[f];p.theme=S.useContext(Xv)}"string"==typeof e.className?i=qv(t.registered,u,e.className):null!=e.className&&(i=e.className+" ");var m=_v(d.concat(u),t.registered,p);i+=t.key+"-"+m.name,void 0!==o&&(i+=" "+o);var h=c&&void 0===s?cb(r):l,g={};for(var y in e)c&&"as"===y||h(y)&&(g[y]=e[y]);return g.className=i,n&&(g.ref=n),S.createElement(S.Fragment,null,S.createElement(db,{cache:t,serialized:m,isStringTag:"string"==typeof r}),S.createElement(r,g))}));return h.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=a,h.__emotion_styles=d,h.__emotion_forwardProp=s,Object.defineProperty(h,"toString",{value:function(){return"."+o}}),h.withComponent=function(t,r){return e(t,Ws({},n,r,{shouldForwardProp:ub(h,r,!0)})).apply(void 0,d)},h}}.bind(null);["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){pb[e]=pb(e)}));var fb={exports:{}},mb={},hb=x,gb=Symbol.for("react.element"),yb=Symbol.for("react.fragment"),vb=Object.prototype.hasOwnProperty,bb=hb.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,xb={key:!0,ref:!0,__self:!0,__source:!0};function Sb(e,t,n){var r,o={},i=null,a=null;for(r in void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)vb.call(t,r)&&!xb.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:gb,type:e,key:i,ref:a,props:o,_owner:bb.current}}mb.Fragment=yb,mb.jsx=Sb,mb.jsxs=Sb,fb.exports=mb;var Mb=fb.exports;let Cb;"object"==typeof document&&(Cb=Tv({key:"css",prepend:!0}));var wb=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 Mb.jsx(rb,{styles:r})}
|
|
14
|
+
*/Gc();var Jc=Date.now(),Zc="fnValues"+Jc,Qc="fnStyle"+ ++Jc,eu=function(){return{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=Hl(e,{},n);return r[Qc]=t,r},onProcessStyle:function(e,t){if(Zc in t||Qc in t)return e;var n={};for(var r in e){var o=e[r];"function"==typeof o&&(delete e[r],n[r]=o)}return t[Zc]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[Qc];i&&(o.style=i(e)||{});var a=o[Zc];if(a)for(var s in a)o.prop(s,a[s](e),r)}}},tu="@global",nu="@global ",ru=function(){function e(e,t,n){for(var r in this.type="global",this.at=tu,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new Ec(Ws({},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}(),ou=function(){function e(e,t,n){this.type="global",this.at=tu,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(nu.length);this.rule=n.jss.createRule(r,t,Ws({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),iu=/\s*,\s*/g;function au(e,t){for(var n=e.split(iu),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}function su(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===tu)return new ru(e,t,n);if("@"===e[0]&&e.substr(0,nu.length)===nu)return new ou(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,o=r?r[tu]:null;if(o){for(var i in o)t.addRule(i,o[i],Ws({},n,{selector:au(i,e.selector)}));delete r[tu]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,tu.length)===tu){var i=au(o.substr(tu.length),e.selector);t.addRule(i,r[o],Ws({},n,{selector:i})),delete r[o]}}(e,t))}}}var lu=/\s*,\s*/g,cu=/&/g,uu=/\$([\w-]+)/g;function du(){function e(e,t){return function(n,r){var o=e.getRule(r)||t&&t.getRule(r);return o?o.selector:r}}function t(e,t){for(var n=t.split(lu),r=e.split(lu),o="",i=0;i<n.length;i++)for(var a=n[i],s=0;s<r.length;s++){var l=r[s];o&&(o+=", "),o+=-1!==l.indexOf("&")?l.replace(cu,a):a+" "+l}return o}function n(e,t,n){if(n)return Ws({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=Ws({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(r,o,i){if("style"!==o.type)return r;var a,s,l=o,c=l.options.parent;for(var u in r){var d=-1!==u.indexOf("&"),p="@"===u[0];if(d||p){if(a=n(l,c,a),d){var f=t(u,l.selector);s||(s=e(c,i)),f=f.replace(uu,s);var m=l.key+"-"+u;"replaceRule"in c?c.replaceRule(m,r[u],Ws({},a,{selector:f})):c.addRule(m,r[u],Ws({},a,{selector:f}))}else p&&c.addRule(u,{},a).addRule(l.key,r[u],{selector:l.selector});delete r[u]}}return r}}}var pu=/[A-Z]/g,fu=/^ms-/,mu={};function hu(e){return"-"+e.toLowerCase()}function gu(e){if(mu.hasOwnProperty(e))return mu[e];var t=e.replace(pu,hu);return mu[e]=fu.test(t)?"-"+t:t}function yu(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:gu(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(yu):t.fallbacks=yu(e.fallbacks)),t}var vu=Yc&&CSS?CSS.px:"px",bu=Yc&&CSS?CSS.ms:"ms",xu=Yc&&CSS?CSS.percent:"%";function Su(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var o in e)r[o]=e[o],r[o.replace(t,n)]=e[o];return r}var Mu=Su({"animation-delay":bu,"animation-duration":bu,"background-position":vu,"background-position-x":vu,"background-position-y":vu,"background-size":vu,border:vu,"border-bottom":vu,"border-bottom-left-radius":vu,"border-bottom-right-radius":vu,"border-bottom-width":vu,"border-left":vu,"border-left-width":vu,"border-radius":vu,"border-right":vu,"border-right-width":vu,"border-top":vu,"border-top-left-radius":vu,"border-top-right-radius":vu,"border-top-width":vu,"border-width":vu,"border-block":vu,"border-block-end":vu,"border-block-end-width":vu,"border-block-start":vu,"border-block-start-width":vu,"border-block-width":vu,"border-inline":vu,"border-inline-end":vu,"border-inline-end-width":vu,"border-inline-start":vu,"border-inline-start-width":vu,"border-inline-width":vu,"border-start-start-radius":vu,"border-start-end-radius":vu,"border-end-start-radius":vu,"border-end-end-radius":vu,margin:vu,"margin-bottom":vu,"margin-left":vu,"margin-right":vu,"margin-top":vu,"margin-block":vu,"margin-block-end":vu,"margin-block-start":vu,"margin-inline":vu,"margin-inline-end":vu,"margin-inline-start":vu,padding:vu,"padding-bottom":vu,"padding-left":vu,"padding-right":vu,"padding-top":vu,"padding-block":vu,"padding-block-end":vu,"padding-block-start":vu,"padding-inline":vu,"padding-inline-end":vu,"padding-inline-start":vu,"mask-position-x":vu,"mask-position-y":vu,"mask-size":vu,height:vu,width:vu,"min-height":vu,"max-height":vu,"min-width":vu,"max-width":vu,bottom:vu,left:vu,top:vu,right:vu,inset:vu,"inset-block":vu,"inset-block-end":vu,"inset-block-start":vu,"inset-inline":vu,"inset-inline-end":vu,"inset-inline-start":vu,"box-shadow":vu,"text-shadow":vu,"column-gap":vu,"column-rule":vu,"column-rule-width":vu,"column-width":vu,"font-size":vu,"font-size-delta":vu,"letter-spacing":vu,"text-decoration-thickness":vu,"text-indent":vu,"text-stroke":vu,"text-stroke-width":vu,"word-spacing":vu,motion:vu,"motion-offset":vu,outline:vu,"outline-offset":vu,"outline-width":vu,perspective:vu,"perspective-origin-x":xu,"perspective-origin-y":xu,"transform-origin":xu,"transform-origin-x":xu,"transform-origin-y":xu,"transform-origin-z":xu,"transition-delay":bu,"transition-duration":bu,"vertical-align":vu,"flex-basis":vu,"shape-margin":vu,size:vu,gap:vu,grid:vu,"grid-gap":vu,"row-gap":vu,"grid-row-gap":vu,"grid-column-gap":vu,"grid-template-rows":vu,"grid-template-columns":vu,"grid-auto-rows":vu,"grid-auto-columns":vu,"box-shadow-x":vu,"box-shadow-y":vu,"box-shadow-blur":vu,"box-shadow-spread":vu,"font-line-height":vu,"text-shadow-x":vu,"text-shadow-y":vu,"text-shadow-blur":vu});function Cu(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=Cu(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=Cu(o,t[o],n);else for(var i in t)t[i]=Cu(e+"-"+i,t[i],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||Mu[e];return!a||0===t&&a===vu?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function wu(e){void 0===e&&(e={});var t=Su(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=Cu(r,e[r],t);return e},onChangeValue:function(e,n){return Cu(n,e,t)}}}var ku="",Eu="",Tu="",qu="",Lu=Pl&&"ontouchstart"in document.documentElement;if(Pl){var Nu={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Ou=document.createElement("p").style;for(var Du in Nu)if(Du+"Transform"in Ou){ku=Du,Eu=Nu[Du];break}"Webkit"===ku&&"msHyphens"in Ou&&(ku="ms",Eu=Nu.ms,qu="edge"),"Webkit"===ku&&"-apple-trailing-word"in Ou&&(Tu="apple")}var Au={js:ku,css:Eu,vendor:Tu,browser:qu,isTouch:Lu};var Ru={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===Au.js?"-webkit-"+e:Au.css+e)}},Pu={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===Au.js?Au.css+"print-"+e:e)}},Iu=/[-\s]+(.)?/g;function zu(e,t){return t?t.toUpperCase():""}function ju(e){return e.replace(Iu,zu)}function Fu(e){return ju("-"+e)}var Bu,_u={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===Au.js){var n="mask-image";if(ju(n)in t)return e;if(Au.js+Fu(n)in t)return Au.css+e}return e}},Hu={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==Au.vendor||Au.isTouch?e:Au.css+e)}},$u={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:Au.css+e)}},Vu={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:Au.css+e)}},Wu={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===Au.js||"ms"===Au.js&&"edge"!==Au.browser?Au.css+e:e)}},Uu={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===Au.js||"ms"===Au.js||"apple"===Au.vendor?Au.css+e:e)}},Ku={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===Au.js?"WebkitColumn"+Fu(e)in t&&Au.css+"column-"+e:"Moz"===Au.js&&("page"+Fu(e)in t&&"page-"+e))}},Gu={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===Au.js)return e;var n=e.replace("-inline","");return Au.js+Fu(n)in t&&Au.css+n}},Yu={supportedProperty:function(e,t){return ju(e)in t&&e}},Xu={supportedProperty:function(e,t){var n=Fu(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:Au.js+n in t?Au.css+e:"Webkit"!==Au.js&&"Webkit"+n in t&&"-webkit-"+e}},Ju={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===Au.js?""+Au.css+e:e)}},Zu={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===Au.js?Au.css+"scroll-chaining":e)}},Qu={"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"},ed={supportedProperty:function(e,t){var n=Qu[e];return!!n&&(Au.js+Fu(n)in t&&Au.css+n)}},td={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"},nd=Object.keys(td),rd=function(e){return Au.css+e},od={supportedProperty:function(e,t,n){var r=n.multiple;if(nd.indexOf(e)>-1){var o=td[e];if(!Array.isArray(o))return Au.js+Fu(o)in t&&Au.css+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(Au.js+Fu(o[0])in t))return!1;return o.map(rd)}return!1}},id=[Ru,Pu,_u,Hu,$u,Vu,Wu,Uu,Ku,Gu,Yu,Xu,Ju,Zu,ed,od],ad=id.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),sd=id.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,Sl(t.noPrefill)),e}),[]),ld={};if(Pl){Bu=document.createElement("p");var cd=window.getComputedStyle(document.documentElement,"");for(var ud in cd)isNaN(ud)||(ld[cd[ud]]=cd[ud]);sd.forEach((function(e){return delete ld[e]}))}function dd(e,t){if(void 0===t&&(t={}),!Bu)return e;if(null!=ld[e])return ld[e];"transition"!==e&&"transform"!==e||(t[e]=e in Bu.style);for(var n=0;n<ad.length&&(ld[e]=ad[n](e,Bu.style,t),!ld[e]);n++);try{Bu.style[e]=""}catch(e){return!1}return ld[e]}var pd,fd={},md={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},hd=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function gd(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?dd(t):", "+dd(n);return r||(t||n)}function yd(e,t){var n=t;if(!pd||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=fd[r])return fd[r];try{pd.style[e]=n}catch(e){return fd[r]=!1,!1}if(md[e])n=n.replace(hd,gd);else if(""===pd.style[e]&&("-ms-flex"===(n=Au.css+n)&&(pd.style[e]="-ms-flexbox"),pd.style[e]=n,""===pd.style[e]))return fd[r]=!1,!1;return pd.style[e]="",fd[r]=n,fd[r]}function vd(){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 o=!1,i=dd(n);i&&i!==n&&(o=!0);var a=!1,s=yd(i,Vl(r));s&&s!==r&&(a=!0),(o||a)&&(o&&delete t[n],t[i||n]=s||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===Au.js?e:"@"+Au.css+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return yd(t,Vl(e))||e}}}function bd(){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={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)r[o[i]]=t[o[i]];return r}}}function xd(){return{plugins:[eu(),su(),du(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=yu(e[t]);return e}return yu(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=gu(t);return t===r?e:(n.prop(r,e),null)}},wu(),"undefined"==typeof window?null:vd(),bd()]}}function Sd(){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=Ws({},t);return Object.keys(n).forEach((function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))})),r}Pl&&(pd=document.createElement("p"));var Md=function(e,t,n,r){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},Cd=function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},wd=function(e,t,n){e.get(t).delete(n)},kd=x.createContext(null);function Ed(){return x.useContext(kd)}var Td,qd=Gc(xd()),Ld={disableGeneration:!1,generateClassName:Dl(),jss:qd,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},Nd=x.createContext(Ld);function Od(e){var t=e.children,n=e.injectFirst,r=void 0!==n&&n,o=e.disableGeneration,i=void 0!==o&&o,a=ol(e,["children","injectFirst","disableGeneration"]),s=Ws({},x.useContext(Nd),{disableGeneration:i},a);if(!s.jss.options.insertionPoint&&r&&"undefined"!=typeof window){if(!Td){var l=document.head;Td=document.createComment("mui-inject-first"),l.insertBefore(Td,l.firstChild)}s.jss=Gc({plugins:xd().plugins,insertionPoint:Td})}return x.createElement(Nd.Provider,{value:s},t)}var Dd=-1e9;var Ad={};function Rd(e,t){var n=e.state,r=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=Cd(o.sheetsManager,i,r);s||(s={refs:0,staticSheet:null,dynamicStyles:null},Md(o.sheetsManager,i,r,s));var l=Ws({},i.options,o,{theme:r,flip:"boolean"==typeof o.flip?o.flip:"rtl"===r.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var c=o.sheetsRegistry;if(0===s.refs){var u;o.sheetsCache&&(u=Cd(o.sheetsCache,i,r));var d=i.create(r,a);u||((u=o.jss.createStyleSheet(d,Ws({link:!1},l))).attach(),o.sheetsCache&&Md(o.sheetsCache,i,r,u)),c&&c.add(u),s.staticSheet=u,s.dynamicStyles=Xc(d)}if(s.dynamicStyles){var p=o.jss.createStyleSheet(s.dynamicStyles,Ws({link:!0},l));p.update(t),p.attach(),n.dynamicSheet=p,n.classes=Sd({baseClasses:s.staticSheet.classes,newClasses:p.classes}),c&&c.add(p)}else n.classes=s.staticSheet.classes;s.refs+=1}}function Pd(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,r=t.classNamePrefix,o=t.Component,i=t.defaultTheme,a=void 0===i?Ad:i,s=ol(t,["name","classNamePrefix","Component","defaultTheme"]),l=function(e){var t="function"==typeof e;return{create:function(n,r){var o;try{o=t?e(n):e}catch(e){throw e}if(!r||!n.overrides||!n.overrides[r])return o;var i=n.overrides[r],a=Ws({},o);return Object.keys(i).forEach((function(e){a[e]=Gs(a[e],i[e])})),a},options:{}}}(e),c=n||r||"makeStyles";l.options={index:Dd+=1,name:n,meta:c,classNamePrefix:c};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Ed()||a,r=Ws({},x.useContext(Nd),s),i=x.useRef(),c=x.useRef();!function(e,t){var n,r=x.useRef([]),o=x.useMemo((function(){return{}}),t);r.current!==o&&(r.current=o,n=e()),x.useEffect((function(){return function(){n&&n()}}),[o])}((function(){var o={name:n,state:{},stylesCreator:l,stylesOptions:r,theme:t};return Rd(o,e),c.current=!1,i.current=o,function(){!function(e){var t=e.state,n=e.theme,r=e.stylesOptions,o=e.stylesCreator;if(!r.disableGeneration){var i=Cd(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&(wd(r.sheetsManager,o,n),r.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(o)}}),[t,l]),x.useEffect((function(){c.current&&function(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}(i.current,e),c.current=!0}));var u=function(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,o=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,o=!0),o&&(r.cacheClasses.value=Sd({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(i.current,e.classes,o);return u}}function Id(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=Id(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function zd(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Id(e))&&(r&&(r+=" "),r+=t);return r}var jd={exports:{}},Fd={},Bd="function"==typeof Symbol&&Symbol.for,_d=Bd?Symbol.for("react.element"):60103,Hd=Bd?Symbol.for("react.portal"):60106,$d=Bd?Symbol.for("react.fragment"):60107,Vd=Bd?Symbol.for("react.strict_mode"):60108,Wd=Bd?Symbol.for("react.profiler"):60114,Ud=Bd?Symbol.for("react.provider"):60109,Kd=Bd?Symbol.for("react.context"):60110,Gd=Bd?Symbol.for("react.async_mode"):60111,Yd=Bd?Symbol.for("react.concurrent_mode"):60111,Xd=Bd?Symbol.for("react.forward_ref"):60112,Jd=Bd?Symbol.for("react.suspense"):60113,Zd=Bd?Symbol.for("react.suspense_list"):60120,Qd=Bd?Symbol.for("react.memo"):60115,ep=Bd?Symbol.for("react.lazy"):60116,tp=Bd?Symbol.for("react.block"):60121,np=Bd?Symbol.for("react.fundamental"):60117,rp=Bd?Symbol.for("react.responder"):60118,op=Bd?Symbol.for("react.scope"):60119;function ip(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case _d:switch(e=e.type){case Gd:case Yd:case $d:case Wd:case Vd:case Jd:return e;default:switch(e=e&&e.$$typeof){case Kd:case Xd:case ep:case Qd:case Ud:return e;default:return t}}case Hd:return t}}}function ap(e){return ip(e)===Yd}Fd.AsyncMode=Gd,Fd.ConcurrentMode=Yd,Fd.ContextConsumer=Kd,Fd.ContextProvider=Ud,Fd.Element=_d,Fd.ForwardRef=Xd,Fd.Fragment=$d,Fd.Lazy=ep,Fd.Memo=Qd,Fd.Portal=Hd,Fd.Profiler=Wd,Fd.StrictMode=Vd,Fd.Suspense=Jd,Fd.isAsyncMode=function(e){return ap(e)||ip(e)===Gd},Fd.isConcurrentMode=ap,Fd.isContextConsumer=function(e){return ip(e)===Kd},Fd.isContextProvider=function(e){return ip(e)===Ud},Fd.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===_d},Fd.isForwardRef=function(e){return ip(e)===Xd},Fd.isFragment=function(e){return ip(e)===$d},Fd.isLazy=function(e){return ip(e)===ep},Fd.isMemo=function(e){return ip(e)===Qd},Fd.isPortal=function(e){return ip(e)===Hd},Fd.isProfiler=function(e){return ip(e)===Wd},Fd.isStrictMode=function(e){return ip(e)===Vd},Fd.isSuspense=function(e){return ip(e)===Jd},Fd.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===$d||e===Yd||e===Wd||e===Vd||e===Jd||e===Zd||"object"==typeof e&&null!==e&&(e.$$typeof===ep||e.$$typeof===Qd||e.$$typeof===Ud||e.$$typeof===Kd||e.$$typeof===Xd||e.$$typeof===np||e.$$typeof===rp||e.$$typeof===op||e.$$typeof===tp)},Fd.typeOf=ip,jd.exports=Fd;var sp=jd.exports,lp={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},cp={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},up={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},dp={};function pp(e){return sp.isMemo(e)?up:dp[e.$$typeof]||lp}dp[sp.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},dp[sp.Memo]=up;var fp=Object.defineProperty,mp=Object.getOwnPropertyNames,hp=Object.getOwnPropertySymbols,gp=Object.getOwnPropertyDescriptor,yp=Object.getPrototypeOf,vp=Object.prototype;var bp=function e(t,n,r){if("string"!=typeof n){if(vp){var o=yp(n);o&&o!==vp&&e(t,o,r)}var i=mp(n);hp&&(i=i.concat(hp(n)));for(var a=pp(t),s=pp(n),l=0;l<i.length;++l){var c=i[l];if(!(cp[c]||r&&r[c]||s&&s[c]||a&&a[c])){var u=gp(n,c);try{fp(t,c,u)}catch(e){}}}}return t},xp=oe(bp);function Sp(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.name,i=ol(r,["name"]),a=o,s="function"==typeof t?function(e){return{root:function(n){return t(Ws({theme:e},n))}}}:{root:t},l=Pd(s,Ws({Component:e,name:o||e.displayName,classNamePrefix:a},i));t.filterProps&&(n=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var c=x.forwardRef((function(t,r){var o,i,a,s=t.children,c=t.className,u=t.clone,d=t.component,p=ol(t,["children","className","clone","component"]),f=zd(l(t).root,c),m=p;if(n&&(o=m,i=n,a={},Object.keys(o).forEach((function(e){-1===i.indexOf(e)&&(a[e]=o[e])})),m=a),u)return x.cloneElement(s,Ws({className:zd(s.props.className,f)},m));if("function"==typeof s)return s(Ws({className:f},m));var h=d||e;return x.createElement(h,Ws({ref:r,className:f},m),s)}));return xp(c,e),c}}function Mp(e){var t=e.children,n=e.theme,r=Ed(),o=x.useMemo((function(){var e=null===r?n:function(e,t){return"function"==typeof t?t(e):Ws({},e,t)}(r,n);return null!=e&&(e[Nl]=null!==r),e}),[n,r]);return x.createElement(kd.Provider,{value:o},t)}var Cp=Ll(),wp=function(e){var t=Sp(e);return function(e,n){return t(e,Ws({defaultTheme:Cp},n))}};function kp(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r=t.defaultTheme,o=t.withTheme,i=void 0!==o&&o,a=t.name,s=ol(t,["defaultTheme","withTheme","name"]),l=a,c=Pd(e,Ws({defaultTheme:r,Component:n,name:a||n.displayName,classNamePrefix:l},s)),u=x.forwardRef((function(e,t){e.classes;var o,s=e.innerRef,l=ol(e,["classes","innerRef"]),u=c(Ws({},n.defaultProps,e)),d=l;return("string"==typeof a||i)&&(o=Ed()||r,a&&(d=Al({theme:o,name:a,props:l})),i&&!d.theme&&(d.theme=o)),x.createElement(n,Ws({ref:s||t,classes:u},d))}));return xp(u,n),u}}(e,Ws({defaultTheme:Cp},t))}function Ep(e){if("string"!=typeof e)throw new Error(Js(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Tp(){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),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r),t.apply(this,r)}}),(function(){}))}function qp(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=qp(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Lp(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=qp(e))&&(r&&(r+=" "),r+=t);return r}function Np(e){return e&&e.ownerDocument||document}function Op(e){return Np(e).defaultView||window}function Dp(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var Ap="undefined"!=typeof window?S.useLayoutEffect:S.useEffect;function Rp(e){var t=S.useRef(e);return Ap((function(){t.current=e})),S.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}function Pp(e,t){return S.useMemo((function(){return null==e&&null==t?null:function(n){Dp(e,n),Dp(t,n)}}),[e,t])}var Ip=!0,zp=!1,jp=null,Fp={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 Bp(e){e.metaKey||e.altKey||e.ctrlKey||(Ip=!0)}function _p(){Ip=!1}function Hp(){"hidden"===this.visibilityState&&zp&&(Ip=!0)}function $p(e){var t=e.target;try{return t.matches(":focus-visible")}catch(e){}return Ip||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!Fp[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Vp(){zp=!0,window.clearTimeout(jp),jp=window.setTimeout((function(){zp=!1}),100)}function Wp(){var e=S.useCallback((function(e){var t,n=N.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",Bp,!0),t.addEventListener("mousedown",_p,!0),t.addEventListener("pointerdown",_p,!0),t.addEventListener("touchstart",_p,!0),t.addEventListener("visibilitychange",Hp,!0))}),[]);return{isFocusVisible:$p,onBlurVisible:Vp,ref:e}}var Up=!1,Kp=x.createContext(null),Gp="unmounted",Yp="exited",Xp="entering",Jp="entered",Zp="exiting",Qp=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=Yp,r.appearStatus=Xp):o=Jp:o=t.unmountOnExit||t.mountOnEnter?Gp:Yp,r.state={status:o},r.nextCallback=null,r}jl(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Gp?{status:Yp}: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!==Xp&&n!==Jp&&(t=Xp):n!==Xp&&n!==Jp||(t=Zp)}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===Xp){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:O.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Yp&&this.setState({status:Gp})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[O.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||Up?this.safeSetState({status:Jp},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Xp},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Jp},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:O.findDOMNode(this);t&&!Up?(this.props.onExit(r),this.safeSetState({status:Zp},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Yp},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Yp},(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:O.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Gp)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=rl(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return x.createElement(Kp.Provider,{value:null},"function"==typeof n?n(e,r):x.cloneElement(x.Children.only(n),r))},t}(x.Component);function ef(){}function tf(e,t){var n=Object.create(null);return e&&w.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&M(e)?t(e):e}(e)})),n}function nf(e,t,n){return null!=n[t]?n[t]:e.props[t]}function rf(e,t,n){var r=tf(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach((function(i){var a=o[i];if(M(a)){var s=i in t,l=i in r,c=t[i],u=M(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&M(c)&&(o[i]=C(a,{onExited:n.bind(null,a),in:c.props.in,exit:nf(a,"exit",e),enter:nf(a,"enter",e)})):o[i]=C(a,{in:!1}):o[i]=C(a,{onExited:n.bind(null,a),in:!0,exit:nf(a,"exit",e),enter:nf(a,"enter",e)})}})),o}Qp.contextType=Kp,Qp.propTypes={},Qp.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ef,onEntering:ef,onEntered:ef,onExit:ef,onExiting:ef,onExited:ef},Qp.UNMOUNTED=Gp,Qp.EXITED=Yp,Qp.ENTERING=Xp,Qp.ENTERED=Jp,Qp.EXITING=Zp;var of=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},af=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(Fl(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}jl(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,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,tf(n.children,(function(e){return C(e,{onExited:r.bind(null,e),in:!0,appear:nf(e,"appear",n),enter:nf(e,"enter",n),exit:nf(e,"exit",n)})}))):rf(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=tf(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Ws({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=rl(e,["component","childFactory"]),o=this.state.contextValue,i=of(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?x.createElement(Kp.Provider,{value:o},i):x.createElement(Kp.Provider,{value:o},x.createElement(t,r,i))},t}(x.Component);af.propTypes={},af.defaultProps={component:"div",childFactory:function(e){return e}};function sf(e,t){var n=e.timeout,r=e.style,o=void 0===r?{}:r;return{duration:o.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:o.transitionDelay}}var lf=S.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,i=void 0===o?"div":o,a=e.square,s=void 0!==a&&a,l=e.elevation,c=void 0===l?1:l,u=e.variant,d=void 0===u?"elevation":u,p=ol(e,["classes","className","component","square","elevation","variant"]);return S.createElement(i,Ws({className:Lp(n.root,r,"outlined"===d?n.outlined:n["elevation".concat(c)],!s&&n.rounded),ref:t},p))})),cf=kp((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),Ws({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"})(lf),uf="undefined"==typeof window?S.useEffect:S.useLayoutEffect;function df(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,o=e.rippleX,i=e.rippleY,a=e.rippleSize,s=e.in,l=e.onExited,c=void 0===l?function(){}:l,u=e.timeout,d=S.useState(!1),p=d[0],f=d[1],m=Lp(t.ripple,t.rippleVisible,r&&t.ripplePulsate),h={width:a,height:a,top:-a/2+i,left:-a/2+o},g=Lp(t.child,p&&t.childLeaving,r&&t.childPulsate),y=Rp(c);return uf((function(){if(!s){f(!0);var e=setTimeout(y,u);return function(){clearTimeout(e)}}}),[y,s,u]),S.createElement("span",{className:m,style:h},S.createElement("span",{className:g}))}var pf=S.forwardRef((function(e,t){var n=e.center,r=void 0!==n&&n,o=e.classes,i=e.className,a=ol(e,["center","classes","className"]),s=S.useState([]),l=s[0],c=s[1],u=S.useRef(0),d=S.useRef(null);S.useEffect((function(){d.current&&(d.current(),d.current=null)}),[l]);var p=S.useRef(!1),f=S.useRef(null),m=S.useRef(null),h=S.useRef(null);S.useEffect((function(){return function(){clearTimeout(f.current)}}),[]);var g=S.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,i=e.rippleSize,a=e.cb;c((function(e){return[].concat(Sl(e),[S.createElement(df,{key:u.current,classes:o,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i})])})),u.current+=1,d.current=a}),[o]),y=S.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,o=t.pulsate,i=void 0!==o&&o,a=t.center,s=void 0===a?r||t.pulsate:a,l=t.fakeElement,c=void 0!==l&&l;if("mousedown"===e.type&&p.current)p.current=!1;else{"touchstart"===e.type&&(p.current=!0);var u,d,y,v=c?null:h.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)u=Math.round(b.width/2),d=Math.round(b.height/2);else{var x=e.touches?e.touches[0]:e,S=x.clientX,M=x.clientY;u=Math.round(S-b.left),d=Math.round(M-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 C=2*Math.max(Math.abs((v?v.clientWidth:0)-u),u)+2,w=2*Math.max(Math.abs((v?v.clientHeight:0)-d),d)+2;y=Math.sqrt(Math.pow(C,2)+Math.pow(w,2))}e.touches?null===m.current&&(m.current=function(){g({pulsate:i,rippleX:u,rippleY:d,rippleSize:y,cb:n})},f.current=setTimeout((function(){m.current&&(m.current(),m.current=null)}),80)):g({pulsate:i,rippleX:u,rippleY:d,rippleSize:y,cb:n})}}),[r,g]),v=S.useCallback((function(){y({},{pulsate:!0})}),[y]),b=S.useCallback((function(e,t){if(clearTimeout(f.current),"touchend"===e.type&&m.current)return e.persist(),m.current(),m.current=null,void(f.current=setTimeout((function(){b(e,t)})));m.current=null,c((function(e){return e.length>0?e.slice(1):e})),d.current=t}),[]);return S.useImperativeHandle(t,(function(){return{pulsate:v,start:y,stop:b}}),[v,y,b]),S.createElement("span",Ws({className:Lp(o.root,i),ref:h},a),S.createElement(af,{component:null,exit:!0},l))})),ff=kp((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"})(S.memo(pf)),mf=S.forwardRef((function(e,t){var n=e.action,r=e.buttonRef,o=e.centerRipple,i=void 0!==o&&o,a=e.children,s=e.classes,l=e.className,c=e.component,u=void 0===c?"button":c,d=e.disabled,p=void 0!==d&&d,f=e.disableRipple,m=void 0!==f&&f,h=e.disableTouchRipple,g=void 0!==h&&h,y=e.focusRipple,v=void 0!==y&&y,b=e.focusVisibleClassName,x=e.onBlur,M=e.onClick,C=e.onFocus,w=e.onFocusVisible,k=e.onKeyDown,E=e.onKeyUp,T=e.onMouseDown,q=e.onMouseLeave,L=e.onMouseUp,O=e.onTouchEnd,D=e.onTouchMove,A=e.onTouchStart,R=e.onDragLeave,P=e.tabIndex,I=void 0===P?0:P,z=e.TouchRippleProps,j=e.type,F=void 0===j?"button":j,B=ol(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"]),_=S.useRef(null);var H=S.useRef(null),$=S.useState(!1),V=$[0],W=$[1];p&&V&&W(!1);var U=Wp(),K=U.isFocusVisible,G=U.onBlurVisible,Y=U.ref;function X(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g;return Rp((function(r){return t&&t(r),!n&&H.current&&H.current[e](r),!0}))}S.useImperativeHandle(n,(function(){return{focusVisible:function(){W(!0),_.current.focus()}}}),[]),S.useEffect((function(){V&&v&&!m&&H.current.pulsate()}),[m,v,V]);var J=X("start",T),Z=X("stop",R),Q=X("stop",L),ee=X("stop",(function(e){V&&e.preventDefault(),q&&q(e)})),te=X("start",A),ne=X("stop",O),re=X("stop",D),oe=X("stop",(function(e){V&&(G(e),W(!1)),x&&x(e)}),!1),ie=Rp((function(e){_.current||(_.current=e.currentTarget),K(e)&&(W(!0),w&&w(e)),C&&C(e)})),ae=function(){var e=N.findDOMNode(_.current);return u&&"button"!==u&&!("A"===e.tagName&&e.href)},se=S.useRef(!1),le=Rp((function(e){v&&!se.current&&V&&H.current&&" "===e.key&&(se.current=!0,e.persist(),H.current.stop(e,(function(){H.current.start(e)}))),e.target===e.currentTarget&&ae()&&" "===e.key&&e.preventDefault(),k&&k(e),e.target===e.currentTarget&&ae()&&"Enter"===e.key&&!p&&(e.preventDefault(),M&&M(e))})),ce=Rp((function(e){v&&" "===e.key&&H.current&&V&&!e.defaultPrevented&&(se.current=!1,e.persist(),H.current.stop(e,(function(){H.current.pulsate(e)}))),E&&E(e),M&&e.target===e.currentTarget&&ae()&&" "===e.key&&!e.defaultPrevented&&M(e)})),ue=u;"button"===ue&&B.href&&(ue="a");var de={};"button"===ue?(de.type=F,de.disabled=p):("a"===ue&&B.href||(de.role="button"),de["aria-disabled"]=p);var pe=Pp(r,t),fe=Pp(Y,_),me=Pp(pe,fe),he=S.useState(!1),ge=he[0],ye=he[1];S.useEffect((function(){ye(!0)}),[]);var ve=ge&&!m&&!p;return S.createElement(ue,Ws({className:Lp(s.root,l,V&&[s.focusVisible,b],p&&s.disabled),onBlur:oe,onClick:M,onFocus:ie,onKeyDown:le,onKeyUp:ce,onMouseDown:J,onMouseLeave:ee,onMouseUp:Q,onDragLeave:Z,onTouchEnd:ne,onTouchMove:re,onTouchStart:te,ref:me,tabIndex:p?-1:I},de,B),a,ve?S.createElement(ff,Ws({ref:H,center:i},z)):null)})),hf=kp({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"})(mf),gf={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},yf=S.forwardRef((function(e,t){var n=e.align,r=void 0===n?"inherit":n,o=e.classes,i=e.className,a=e.color,s=void 0===a?"initial":a,l=e.component,c=e.display,u=void 0===c?"initial":c,d=e.gutterBottom,p=void 0!==d&&d,f=e.noWrap,m=void 0!==f&&f,h=e.paragraph,g=void 0!==h&&h,y=e.variant,v=void 0===y?"body1":y,b=e.variantMapping,x=void 0===b?gf:b,M=ol(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),C=l||(g?"p":x[v]||gf[v])||"span";return S.createElement(C,Ws({className:Lp(o.root,i,"inherit"!==v&&o[v],"initial"!==s&&o["color".concat(Ep(s))],m&&o.noWrap,p&&o.gutterBottom,g&&o.paragraph,"inherit"!==r&&o["align".concat(Ep(r))],"initial"!==u&&o["display".concat(Ep(u))]),ref:t},M))})),vf=kp((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"})(yf),bf=S.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.color,a=void 0===i?"default":i,s=e.component,l=void 0===s?"button":s,c=e.disabled,u=void 0!==c&&c,d=e.disableElevation,p=void 0!==d&&d,f=e.disableFocusRipple,m=void 0!==f&&f,h=e.endIcon,g=e.focusVisibleClassName,y=e.fullWidth,v=void 0!==y&&y,b=e.size,x=void 0===b?"medium":b,M=e.startIcon,C=e.type,w=void 0===C?"button":C,k=e.variant,E=void 0===k?"text":k,T=ol(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),q=M&&S.createElement("span",{className:Lp(r.startIcon,r["iconSize".concat(Ep(x))])},M),L=h&&S.createElement("span",{className:Lp(r.endIcon,r["iconSize".concat(Ep(x))])},h);return S.createElement(hf,Ws({className:Lp(r.root,r[E],o,"inherit"===a?r.colorInherit:"default"!==a&&r["".concat(E).concat(Ep(a))],"medium"!==x&&[r["".concat(E,"Size").concat(Ep(x))],r["size".concat(Ep(x))]],p&&r.disableElevation,u&&r.disabled,v&&r.fullWidth),component:l,disabled:u,focusRipple:!m,focusVisibleClassName:Lp(r.focusVisible,g),ref:t,type:w},T),S.createElement("span",{className:r.label},q,n,L))})),xf=kp((function(e){return{root:Ws({},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:nl(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:nl(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:nl(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(nl(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:nl(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(nl(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:nl(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"})(bf);var Sf="undefined"!=typeof window?S.useLayoutEffect:S.useEffect,Mf=S.forwardRef((function(e,t){var n=e.children,r=e.container,o=e.disablePortal,i=void 0!==o&&o,a=e.onRendered,s=S.useState(null),l=s[0],c=s[1],u=Pp(S.isValidElement(n)?n.ref:null,t);return Sf((function(){i||c(function(e){return e="function"==typeof e?e():e,N.findDOMNode(e)}(r)||document.body)}),[r,i]),Sf((function(){if(l&&!i)return Dp(t,l),function(){Dp(t,null)}}),[t,l,i]),Sf((function(){a&&(l||i)&&a()}),[a,l,i]),i?S.isValidElement(n)?S.cloneElement(n,{ref:u}):n:l?N.createPortal(n,l):l}));function Cf(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function wf(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function kf(e,t,n){var r=arguments.length>4?arguments[4]:void 0,o=[t,n].concat(Sl(arguments.length>3&&void 0!==arguments[3]?arguments[3]:[])),i=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===o.indexOf(e)&&-1===i.indexOf(e.tagName)&&Cf(e,r)}))}function Ef(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function Tf(e,t){var n,r=[],o=[],i=e.container;if(!t.disableScrollLock){if(function(e){var t=Np(e);return t.body===e?Op(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(i)){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:i.style.paddingRight,key:"padding-right",el:i}),i.style["padding-right"]="".concat(wf(i)+a,"px"),n=Np(i).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){o.push(e.style.paddingRight),e.style.paddingRight="".concat(wf(e)+a,"px")}))}var s=i.parentElement,l="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:i;r.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){o[t]?e.style.paddingRight=o[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 qf=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 Il(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&&Cf(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);kf(t,e.mountNode,e.modalRef,r,!0);var o=Ef(this.containers,(function(e){return e.container===t}));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=Ef(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=Tf(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=Ef(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&&Cf(e.modalRef,!0),kf(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var o=r.modals[r.modals.length-1];o.modalRef&&Cf(o.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();function Lf(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,o=e.disableEnforceFocus,i=void 0!==o&&o,a=e.disableRestoreFocus,s=void 0!==a&&a,l=e.getDoc,c=e.isEnabled,u=e.open,d=S.useRef(),p=S.useRef(null),f=S.useRef(null),m=S.useRef(),h=S.useRef(null),g=S.useCallback((function(e){h.current=N.findDOMNode(e)}),[]),y=Pp(t.ref,g),v=S.useRef();return S.useEffect((function(){v.current=u}),[u]),!v.current&&u&&"undefined"!=typeof window&&(m.current=l().activeElement),S.useEffect((function(){if(u){var e=Np(h.current);r||!h.current||h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex",-1),h.current.focus());var t=function(){null!==h.current&&(e.hasFocus()&&!i&&c()&&!d.current?h.current&&!h.current.contains(e.activeElement)&&h.current.focus():d.current=!1)},n=function(t){!i&&c()&&9===t.keyCode&&e.activeElement===h.current&&(d.current=!0,t.shiftKey?f.current.focus():p.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var o=setInterval((function(){t()}),50);return function(){clearInterval(o),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),s||(m.current&&m.current.focus&&m.current.focus(),m.current=null)}}}),[r,i,s,c,u]),S.createElement(S.Fragment,null,S.createElement("div",{tabIndex:0,ref:p,"data-test":"sentinelStart"}),S.cloneElement(t,{ref:y}),S.createElement("div",{tabIndex:0,ref:f,"data-test":"sentinelEnd"}))}var Nf={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"}},Of=S.forwardRef((function(e,t){var n=e.invisible,r=void 0!==n&&n,o=e.open,i=ol(e,["invisible","open"]);return o?S.createElement("div",Ws({"aria-hidden":!0,ref:t},i,{style:Ws({},Nf.root,r?Nf.invisible:{},i.style)})):null}));var Df=new qf,Af=S.forwardRef((function(e,t){var n=Ed(),r=Al({name:"MuiModal",props:Ws({},e),theme:n}),o=r.BackdropComponent,i=void 0===o?Of:o,a=r.BackdropProps,s=r.children,l=r.closeAfterTransition,c=void 0!==l&&l,u=r.container,d=r.disableAutoFocus,p=void 0!==d&&d,f=r.disableBackdropClick,m=void 0!==f&&f,h=r.disableEnforceFocus,g=void 0!==h&&h,y=r.disableEscapeKeyDown,v=void 0!==y&&y,b=r.disablePortal,x=void 0!==b&&b,M=r.disableRestoreFocus,C=void 0!==M&&M,w=r.disableScrollLock,k=void 0!==w&&w,E=r.hideBackdrop,T=void 0!==E&&E,q=r.keepMounted,L=void 0!==q&&q,O=r.manager,D=void 0===O?Df:O,A=r.onBackdropClick,R=r.onClose,P=r.onEscapeKeyDown,I=r.onRendered,z=r.open,j=ol(r,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),F=S.useState(!0),B=F[0],_=F[1],H=S.useRef({}),$=S.useRef(null),V=S.useRef(null),W=Pp(V,t),U=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),K=function(){return Np($.current)},G=function(){return H.current.modalRef=V.current,H.current.mountNode=$.current,H.current},Y=function(){D.mount(G(),{disableScrollLock:k}),V.current.scrollTop=0},X=Rp((function(){var e=function(e){return e="function"==typeof e?e():e,N.findDOMNode(e)}(u)||K().body;D.add(G(),e),V.current&&Y()})),J=S.useCallback((function(){return D.isTopModal(G())}),[D]),Z=Rp((function(e){$.current=e,e&&(I&&I(),z&&J()?Y():Cf(V.current,!0))})),Q=S.useCallback((function(){D.remove(G())}),[D]);if(S.useEffect((function(){return function(){Q()}}),[Q]),S.useEffect((function(){z?X():U&&c||Q()}),[z,Q,U,c,X]),!L&&!z&&(!U||B))return null;var ee=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:ql}),te={};return void 0===s.props.tabIndex&&(te.tabIndex=s.props.tabIndex||"-1"),U&&(te.onEnter=Tp((function(){_(!1)}),s.props.onEnter),te.onExited=Tp((function(){_(!0),c&&Q()}),s.props.onExited)),S.createElement(Mf,{ref:Z,container:u,disablePortal:x},S.createElement("div",Ws({ref:W,onKeyDown:function(e){"Escape"===e.key&&J()&&(P&&P(e),v||(e.stopPropagation(),R&&R(e,"escapeKeyDown")))},role:"presentation"},j,{style:Ws({},ee.root,!z&&B?ee.hidden:{},j.style)}),T?null:S.createElement(i,Ws({open:z,onClick:function(e){e.target===e.currentTarget&&(A&&A(e),!m&&R&&R(e,"backdropClick"))}},a)),S.createElement(Lf,{disableEnforceFocus:g,disableAutoFocus:p,disableRestoreFocus:C,getDoc:K,isEnabled:J,open:z},S.cloneElement(s,te))))})),Rf=S.forwardRef((function(e,t){var n=e.absolute,r=void 0!==n&&n,o=e.classes,i=e.className,a=e.component,s=void 0===a?"hr":a,l=e.flexItem,c=void 0!==l&&l,u=e.light,d=void 0!==u&&u,p=e.orientation,f=void 0===p?"horizontal":p,m=e.role,h=void 0===m?"hr"!==s?"separator":void 0:m,g=e.variant,y=void 0===g?"fullWidth":g,v=ol(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return S.createElement(s,Ws({className:Lp(o.root,i,"fullWidth"!==y&&o[y],r&&o.absolute,c&&o.flexItem,d&&o.light,"vertical"===f&&o.vertical),role:h,ref:t},v))})),Pf=kp((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:nl(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"})(Rf);function If(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var zf={entering:{opacity:1,transform:If(1)},entered:{opacity:1,transform:"none"}},jf=S.forwardRef((function(e,t){var n=e.children,r=e.disableStrictModeCompat,o=void 0!==r&&r,i=e.in,a=e.onEnter,s=e.onEntered,l=e.onEntering,c=e.onExit,u=e.onExited,d=e.onExiting,p=e.style,f=e.timeout,m=void 0===f?"auto":f,h=e.TransitionComponent,g=void 0===h?Qp:h,y=ol(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),v=S.useRef(),b=S.useRef(),x=Ed()||Cp,M=x.unstable_strictMode&&!o,C=S.useRef(null),w=Pp(n.ref,t),k=Pp(M?C:void 0,w),E=function(e){return function(t,n){if(e){var r=Ml(M?[C.current,t]:[t,n],2),o=r[0],i=r[1];void 0===i?e(o):e(o,i)}}},T=E(l),q=E((function(e,t){!function(e){e.scrollTop}(e);var n,r=sf({style:p,timeout:m},{mode:"enter"}),o=r.duration,i=r.delay;"auto"===m?(n=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=n):n=o,e.style.transition=[x.transitions.create("opacity",{duration:n,delay:i}),x.transitions.create("transform",{duration:.666*n,delay:i})].join(","),a&&a(e,t)})),L=E(s),N=E(d),O=E((function(e){var t,n=sf({style:p,timeout:m},{mode:"exit"}),r=n.duration,o=n.delay;"auto"===m?(t=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=t):t=r,e.style.transition=[x.transitions.create("opacity",{duration:t,delay:o}),x.transitions.create("transform",{duration:.666*t,delay:o||.333*t})].join(","),e.style.opacity="0",e.style.transform=If(.75),c&&c(e)})),D=E(u);return S.useEffect((function(){return function(){clearTimeout(v.current)}}),[]),S.createElement(g,Ws({appear:!0,in:i,nodeRef:M?C:void 0,onEnter:q,onEntered:L,onEntering:T,onExit:O,onExited:D,onExiting:N,addEndListener:function(e,t){var n=M?e:t;"auto"===m&&(v.current=setTimeout(n,b.current||0))},timeout:"auto"===m?null:m},y),(function(e,t){return S.cloneElement(n,Ws({style:Ws({opacity:0,transform:If(.75),visibility:"exited"!==e||i?void 0:"hidden"},zf[e],p,n.props.style),ref:k},t))}))}));jf.muiSupportAuto=!0;var Ff=S.createContext({}),Bf=S.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.component,a=void 0===i?"ul":i,s=e.dense,l=void 0!==s&&s,c=e.disablePadding,u=void 0!==c&&c,d=e.subheader,p=ol(e,["children","classes","className","component","dense","disablePadding","subheader"]),f=S.useMemo((function(){return{dense:l}}),[l]);return S.createElement(Ff.Provider,{value:f},S.createElement(a,Ws({className:Lp(r.root,o,l&&r.dense,!u&&r.padding,d&&r.subheader),ref:t},p),d,n))})),_f=kp({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(Bf),Hf="undefined"==typeof window?S.useEffect:S.useLayoutEffect,$f=S.forwardRef((function(e,t){var n=e.alignItems,r=void 0===n?"center":n,o=e.autoFocus,i=void 0!==o&&o,a=e.button,s=void 0!==a&&a,l=e.children,c=e.classes,u=e.className,d=e.component,p=e.ContainerComponent,f=void 0===p?"li":p,m=e.ContainerProps,h=(m=void 0===m?{}:m).className,g=ol(m,["className"]),y=e.dense,v=void 0!==y&&y,b=e.disabled,x=void 0!==b&&b,M=e.disableGutters,C=void 0!==M&&M,w=e.divider,k=void 0!==w&&w,E=e.focusVisibleClassName,T=e.selected,q=void 0!==T&&T,L=ol(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),O=S.useContext(Ff),D={dense:v||O.dense||!1,alignItems:r},A=S.useRef(null);Hf((function(){i&&A.current&&A.current.focus()}),[i]);var R,P,I=S.Children.toArray(l),z=I.length&&(R=I[I.length-1],P=["ListItemSecondaryAction"],S.isValidElement(R)&&-1!==P.indexOf(R.type.muiName)),j=Pp(S.useCallback((function(e){A.current=N.findDOMNode(e)}),[]),t),F=Ws({className:Lp(c.root,u,D.dense&&c.dense,!C&&c.gutters,k&&c.divider,x&&c.disabled,s&&c.button,"center"!==r&&c.alignItemsFlexStart,z&&c.secondaryAction,q&&c.selected),disabled:x},L),B=d||"li";return s&&(F.component=d||"div",F.focusVisibleClassName=Lp(c.focusVisible,E),B=hf),z?(B=F.component||d?B:"div","li"===f&&("li"===B?B="div":"li"===F.component&&(F.component="div")),S.createElement(Ff.Provider,{value:D},S.createElement(f,Ws({className:Lp(c.container,h),ref:j},g),S.createElement(B,F,I),I.pop()))):S.createElement(Ff.Provider,{value:D},S.createElement(B,Ws({ref:j},F),I))})),Vf=kp((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"})($f),Wf=S.forwardRef((function(e,t){var n=e.classes,r=e.className,o=ol(e,["classes","className"]),i=S.useContext(Ff);return S.createElement("div",Ws({className:Lp(n.root,r,"flex-start"===i.alignItems&&n.alignItemsFlexStart),ref:t},o))})),Uf=kp((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(Wf),Kf=S.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.disableTypography,a=void 0!==i&&i,s=e.inset,l=void 0!==s&&s,c=e.primary,u=e.primaryTypographyProps,d=e.secondary,p=e.secondaryTypographyProps,f=ol(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),m=S.useContext(Ff).dense,h=null!=c?c:n;null==h||h.type===vf||a||(h=S.createElement(vf,Ws({variant:m?"body2":"body1",className:r.primary,component:"span",display:"block"},u),h));var g=d;return null==g||g.type===vf||a||(g=S.createElement(vf,Ws({variant:"body2",className:r.secondary,color:"textSecondary",display:"block"},p),g)),S.createElement("div",Ws({className:Lp(r.root,o,m&&r.dense,l&&r.inset,h&&g&&r.multiline),ref:t},f),h,g)})),Gf=kp({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(Kf);function Yf(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Xf(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Jf(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function Zf(e){return"function"==typeof e?e():e}var Qf=S.forwardRef((function(e,t){var n=e.action,r=e.anchorEl,o=e.anchorOrigin,i=void 0===o?{vertical:"top",horizontal:"left"}:o,a=e.anchorPosition,s=e.anchorReference,l=void 0===s?"anchorEl":s,c=e.children,u=e.classes,d=e.className,p=e.container,f=e.elevation,m=void 0===f?8:f,h=e.getContentAnchorEl,g=e.marginThreshold,y=void 0===g?16:g,v=e.onEnter,b=e.onEntered,x=e.onEntering,M=e.onExit,C=e.onExited,w=e.onExiting,k=e.open,E=e.PaperProps,T=void 0===E?{}:E,q=e.transformOrigin,L=void 0===q?{vertical:"top",horizontal:"left"}:q,O=e.TransitionComponent,D=void 0===O?jf:O,A=e.transitionDuration,R=void 0===A?"auto":A,P=e.TransitionProps,I=void 0===P?{}:P,z=ol(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"]),j=S.useRef(),F=S.useCallback((function(e){if("anchorPosition"===l)return a;var t=Zf(r),n=(t&&1===t.nodeType?t:Np(j.current).body).getBoundingClientRect(),o=0===e?i.vertical:"center";return{top:n.top+Yf(n,o),left:n.left+Xf(n,i.horizontal)}}),[r,i.horizontal,i.vertical,a,l]),B=S.useCallback((function(e){var t=0;if(h&&"anchorEl"===l){var n=h(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}),[i.vertical,l,h]),_=S.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:Yf(e,L.vertical)+t,horizontal:Xf(e,L.horizontal)}}),[L.horizontal,L.vertical]),H=S.useCallback((function(e){var t=B(e),n={width:e.offsetWidth,height:e.offsetHeight},o=_(n,t);if("none"===l)return{top:null,left:null,transformOrigin:Jf(o)};var i=F(t),a=i.top-o.vertical,s=i.left-o.horizontal,c=a+n.height,u=s+n.width,d=Op(Zf(r)),p=d.innerHeight-y,f=d.innerWidth-y;if(a<y){var m=a-y;a-=m,o.vertical+=m}else if(c>p){var h=c-p;a-=h,o.vertical+=h}if(s<y){var g=s-y;s-=g,o.horizontal+=g}else if(u>f){var v=u-f;s-=v,o.horizontal+=v}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:Jf(o)}}),[r,l,F,B,_,y]),$=S.useCallback((function(){var e=j.current;if(e){var t=H(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[H]),V=S.useCallback((function(e){j.current=N.findDOMNode(e)}),[]);S.useEffect((function(){k&&$()})),S.useImperativeHandle(n,(function(){return k?{updatePosition:function(){$()}}:null}),[k,$]),S.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,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=this;clearTimeout(t),t=setTimeout((function(){e.apply(a,o)}),n)}return r.clear=function(){clearTimeout(t)},r}((function(){$()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[k,$]);var W=R;"auto"!==R||D.muiSupportAuto||(W=void 0);var U=p||(r?Np(Zf(r)).body:void 0);return S.createElement(Af,Ws({container:U,open:k,ref:t,BackdropProps:{invisible:!0},className:Lp(u.root,d)},z),S.createElement(D,Ws({appear:!0,in:k,onEnter:v,onEntered:b,onExit:M,onExited:C,onExiting:w,timeout:W},I,{onEntering:Tp((function(e,t){x&&x(e,t),$()}),I.onEntering)}),S.createElement(cf,Ws({elevation:m,ref:V},T,{className:Lp(u.paper,T.className)}),c)))})),em=kp({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(Qf);function tm(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function nm({d:e,size:t,style:n={},viewBox:r="0 0 16 16"}){const o={fontSize:tm(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",...n};return x.createElement("i",{style:o},x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},x.createElement("path",{d:e})))}const rm="alternative-menu-item",om=e=>{const{nested:t,className:n,...r}=e,o=(({nested:e,dir:t})=>Pd((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 x.createElement(Vf,xs({className:`${o.root} ${n}`},r))},im=e=>{if("Tab"===e.key){const t=document.querySelectorAll(`.${rm}`);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 am({title:e,selected:t,onClick:n,nested:r,icon:o,bold:i,dir:a}){const s=$e.detectTextDirection(e);return x.createElement(om,{nested:r,role:"menuitem",button:!0,onClick:n,className:rm,onKeyDown:im,dir:a,autoFocus:t},x.createElement(Gf,{primary:e,primaryTypographyProps:{dir:s,...i&&{style:{fontWeight:600}}}}),x.createElement(Uf,{style:{minWidth:16}},x.createElement(nm,{d:t?os:""})),o&&x.createElement(Uf,{style:{minWidth:16}},x.createElement(nm,{d:o.d})))}am.propTypes={title:ws.string.isRequired,selected:ws.bool,onClick:ws.func.isRequired,nested:ws.bool,icon:ws.shape({d:ws.string.isRequired}),bold:ws.bool,dir:ws.string.isRequired},am.defaultProps={selected:!1,nested:!1,icon:void 0,bold:!1},om.propTypes={nested:ws.bool,className:ws.string},om.defaultProps={nested:!1,className:rm};const sm={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 lm({chartId:e,alignTo:t,currentId:n,dir:r,dock:o,list:i,onClose:a,show:s,instruction:l}){const c=i.map(((t,o)=>{var s;return x.createElement(x.Fragment,{key:t.id},x.createElement(am,{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&&x.createElement(_f,{dense:!0,dir:r,component:"div",disablePadding:!0},t.children.map((e=>x.createElement(am,{key:e.id,nested:!0,title:e.title,selected:e.selected,onClick:()=>{e.onSelect(),a(t.id)},dir:r})))),o<i.length-1&&x.createElement(Pf,{key:`divider-${t.id}`}))}));return x.createElement(em,xs({anchorEl:t,open:s,onClose:a},sm[o],{PaperProps:{style:{minWidth:"250px",maxHeight:"300px"}}}),x.createElement(_f,{dense:!0,disablePadding:!0,dir:r,"aria-label":l,component:"nav"},c))}lm.propTypes={chartId:ws.string.isRequired,alignTo:ws.any,currentId:ws.string.isRequired,dir:ws.string.isRequired,dock:ws.string.isRequired,list:ws.array,onClose:ws.func.isRequired,show:ws.bool.isRequired,instruction:ws.string.isRequired},lm.defaultProps={list:[],alignTo:null};const cm="title-button",um="active-title-button",dm=wp((({children:e,...t})=>x.createElement(xf,xs({size:"small",disableRipple:!0,disableTouchRipple:!0},t),e)))((()=>({"&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"}}))),pm=wp(xf)((()=>({borderRadius:"4px",width:"24px",height:"24px",minWidth:"22px",padding:0})));class fm extends x.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=x.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:o}=this.props;n&&(r||o)&&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(`.${cm}`);t&&(t.focus(),t.classList.add(um))}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(`.${cm}[data-id="${e}"]`);t&&t.focus()}),1e3);else{const e=document.querySelector(`.${um}`);e&&(e.classList.remove(um),setTimeout((()=>{e.focus()}),50))}}render(){const{chartId:e,titleData:t,popover:n,translator:r,disabled:o,isDimension:i,padding:a,minWidth:s,hasAlternative:l,supportConditional:c,showGroupDimOptions:u}=this.props,d={flex:"1 1 auto",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontWeight:"normal",lineHeight:"normal",...this.props.style},p=t.breadcrumbs.length,f=o||Boolean(!t.drillUp)||this.state.inSelection,m=t.breadcrumbs.map(((e,n)=>x.createElement(dm,{style:{display:"flex",alignItems:"center",color:f&&"rgba(89, 89, 89, 0.8)",pointerEvents:f?"none":"auto",paddingTop:0,paddingBottom:0,height:"100%"},key:n,onClick:()=>f?void 0:t.drillUp(p-n),title:e},x.createElement("span",{style:d},e),x.createElement(nm,xs({},as,{size:"small",style:{margin:"0 8px"}}))))),h=c||u?this.state.hasPopoverOptions:l,g=n&&!this.state.open?this.openPopover:this.closePopover,y=!n||o||this.state.inSelection,v={display:"flex",alignItems:"center",width:"100%",color:y&&"rgba(89, 89, 89, 0.8)",height:"100%",border:!i&&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})},S=$e.detectTextDirection(t.text),M=x.createElement(dm,{"aria-label":r.get(`Accessibility.${n&&h?"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:`${cm} ${t.id}`,"data-id":`${e}-${t.id}`},t.locked&&x.createElement(nm,xs({},rs,{size:"small",title:r.get("Tooltip.selections.locked")})),x.createElement("span",{style:d,dir:S},t.text),n&&h&&x.createElement(nm,xs({},is,{size:"small",style:{margin:"0 8px"}})));return x.createElement(x.Fragment,null,t.icon&&t.icon.onClick&&x.createElement(pm,{variant:"outlined",disabled:this.state.disableCyclicButton||this.state.inSelection,onClick:o?void 0:()=>t.icon.onClick({onError:b})},x.createElement(nm,xs({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip)}))),t.icon&&!t.icon.onClick&&x.createElement(nm,xs({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip),style:{margin:"0 4px 0 0"}})),m,x.createElement("div",{ref:this.alignToRef,style:{overflow:"hidden",pointerEvents:h?"auto":"none",height:"100%"}},M),n&&h&&x.createElement(lm,{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 mm(e){return{top:"bottom",bottom:"top",left:"right",right:"left"}[e]}fm.propTypes={chartId:ws.string.isRequired,disabled:ws.bool.isRequired,padding:ws.string,minWidth:ws.string,titleData:ws.shape({breadcrumbs:ws.arrayOf(ws.string).isRequired,icon:ws.shape({path:ws.shape({d:ws.string.isRequired}),tooltip:ws.string.isRequired,onClick:ws.func}),index:ws.number.isRequired,locked:ws.bool.isRequired,text:ws.string.isRequired,popoverText:ws.string.isRequired,drillUp:ws.func,id:ws.string.isRequired}).isRequired,popover:ws.shape({dir:ws.string.isRequired,dock:ws.string.isRequired,getPopoverOptions:ws.func.isRequired}),translator:ws.shape({get:ws.func.isRequired}).isRequired,selections:ws.shape({isActive:ws.func,addListener:ws.func,removeListener:ws.func}),style:ws.shape({fontSize:ws.string,color:ws.string,fontFamily:ws.string}).isRequired,isDimension:ws.bool.isRequired,hasAlternative:ws.bool.isRequired,supportConditional:ws.bool.isRequired,showGroupDimOptions:ws.bool.isRequired},fm.defaultProps={popover:null,selections:null,padding:"",minWidth:""};const hm=Ll({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 gm=Dl({productionPrefix:"q2d44",disableGlobal:!0,seed:""});var ym={MAX_NUM_POINTS:5e4,DEFAULT_NUM_POINTS:2e3,DEFAULT_NUM_LINES:12};const{DEFAULT_NUM_POINTS:vm}=ym;function bm({layoutService:e,largeDataService:t}){const{maxNumPoints:n=vm}=(null==t?void 0:t.meta)||{},{qHyperCube:r}=e.getLayout();return r.qSize.qcy*r.qMeasureInfo.length>n}const{DEFAULT_NUM_LINES:xm}=ym,Sm=({layoutService:e,largeDataService:t})=>{const{maxNumLines:n=xm}=(null==t?void 0:t.meta)||{},{qHyperCube:r}=e.getLayout();return r.qDimensionInfo.length>1&&!bm({layoutService:e,largeDataService:t})?e.meta.size.dimensions[1]+1:n},{DEFAULT_NUM_POINTS:Mm}=ym,{MAX_NUM_POINTS:Cm,DEFAULT_NUM_POINTS:wm,DEFAULT_NUM_LINES:km}=ym,{DEFAULT_NUM_POINTS:Em}=ym,Tm=({layoutService:e,largeDataService:t})=>{if(!bm({layoutService:e,largeDataService:t})){const{maxNumPoints:e=Em}=(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:o=km,maxNumPoints:i=wm,hasInjectedData:a=!1}=(null==t?void 0:t.meta)||{};if(Sm({layoutService:e,largeDataService:t})*r[0]<=i)return r[0];const s=Math.max(1,Math.min(o,r[1])),l=i/s,c=Math.floor(r[0]<=l?l:l/4),u=2*s*(s+1);return a&&(s>km||i>wm)?Math.min(c,Math.ceil(Cm/u)):c})({layoutService:e,largeDataService:t}):(({layoutService:e,largeDataService:t})=>{const{maxNumPoints:n=Mm}=(null==t?void 0:t.meta)||{},{measureCount:r=1}=(null==e?void 0:e.meta)||{},o=4+2*(r-1);return Math.floor(n/(r*o))})({layoutService:e,largeDataService:t})};function qm({model:e,layoutService:t,largeDataService:n,definitionPath:r="/qHyperCubeDef"}){return{shouldFetchReduced:()=>bm({layoutService:t,largeDataService:n}),computeNbrOfBins:()=>Tm({layoutService:t,largeDataService:n}),computeMaxNumberLines:()=>Sm({layoutService:t,largeDataService:n}),fetch:(o,i)=>(({start:e,end:t,model:n,layoutService:r,largeDataService:o,definitionPath:i})=>{const a={qStart:e,qEnd:t,qNbrPoints:Tm({layoutService:r,largeDataService:o}),qMaxNbrTicks:300,qMaxNumberLines:Sm({layoutService:r,largeDataService:o})};return n.getHyperCubeContinuousData(i,a,!1)})({start:o,end:i,model:e,layoutService:t,largeDataService:n,definitionPath:r})}}function Lm(e={}){const{cache:t={}}=e;return{fetch:()=>Promise.resolve(t.merged)}}function Nm({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,o=r+t;return 1===t&&0===e&&(r=n-.5,o=n+.5),{zoom:{min:r,max:o}}}(n,t.get("continuousMin"))}}}function Om(){const e=()=>{},t=[],n={};return e.set=(e,r)=>{const o=t.indexOf(e);o>-1&&t.splice(o,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 Dm(e,t,n){return n[0]&&n[0][1]&&n[0][1].qElemNumber>-1?function({start:e,end:t,matrix:n}){const r=[],o=Om(),i=Om();for(let a=0;a<n.length;a++){const s=n[a],l=s[1].qElemNumber.toString();s[0].qNum<e?o.set(l,s):s[0].qNum>t&&(i.has(l)||i.set(l,s)),s[0].qNum>=e&&s[0].qNum<=t&&r.push(s)}return o.forEach(((e,t)=>r.splice(t,0,e))),i.forEach((e=>r.push(e))),r}({start:e,end:t,matrix:n}):function({start:e,end:t,matrix:n}){const r=[];let o,i;for(let a=0;a<n.length;a++){const s=n[a];s[0].qNum<e?o=s:s[0].qNum>t&&(i||(i=s)),s[0].qNum>=e&&s[0].qNum<=t&&r.push(s)}return o&&r.unshift(o),i&&r.push(i),r}({start:e,end:t,matrix:n})}function Am(e,t){return{...e,qWidth:t[0]?t[0].length:0,qHeight:t.length}}function Rm(e,t,n){const r={qDataPages:(n.qDataPages||[]).map((n=>{const r=Dm(e,t,n.qMatrix),o=Am(n.qArea,r);return{...n,qArea:o,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 Pm=2**.5,Im=1/Pm,zm=Im**44;function jm(e){return e.qIsOtherCell}function Fm({qDataPages:e=[]}={},t={}){const n=e.length?e[0].qMatrix:[];return t.isStackedByDimension?function(e){const t={};return e.forEach((e=>{if(!e.some(jm)){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(jm)||t++})),t}(n)}const Bm={query:{getShouldProcess:()=>!1},command:{processDataPage:()=>{}}};var _m={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],o=t[e+1];r.data={},o||1===r.end?o?(r.data.start=r.value,r.data.end=o.value,r.end=o.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}};function Hm(e,t=1){if(t%2==0)return e;let n=Math.round(e);return e-n>0?n+=.5:n-=.5,n}function $m(e,t){const{localProps:{size:n},props:{anchor:r}}=t,o=function({props:e,localProps:{size:t},style:n,renderer:r}){const o=e.label.padding,i=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:"",c=s(l);let{x:u,width:d}=r;e.start===e.end&&(d=c.width+2*o,1===e.end&&(u-=d));const p={x:u+o,y:o,width:d-2*o,height:t.height-2*o},f=s(`${l[0]}…`).width,m=Math.max(0,p.width-c.width),h=Math.max(0,p.height-c.height),g=i*m,y=a*h;return{show:p.width>=Math.min(f,c.width),text:l,dx:g,dy:y,rect:p,style:n.label,segment:{x:u+g,width:c.width+2*o},tickValue:e.value}}}}(t),i=function({localProps:{size:e},style:t,scale:n,props:r}){const[o,i]=n.domain(),a=Math.max(0,Math.min(1,r.guideLine.major.justify));return{resolve:(n,r)=>{const s=a*r.width,l=Hm(r.x+s,t.majorGuideLine.strokeWidth);return{show:n.value>=o&&n.value<=i,x1:l,y1:0,x2:l,y2:Hm(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:o.resolve(e,t),guideLine:i.resolve(e,t)}}));return function(e,t){const n=e.length;if(n<2)return;const r=e[n-1],o=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&&(i=n.segment,a=o.segment,!(i.x<a.x?i.x+i.width>=a.x:a.x+a.width>=i.x))}var i,a}(e,a),a}function Vm(e,t){const n=function({localProps:{size:e},props:t,style:n}){return{resolve:r=>{const o=Math.max(e.height-t.guideLine.minor.size,0)*Math.max(0,Math.min(t.guideLine.minor.align,1)),i=Hm(r.position*e.width,n.minorGuideLine.strokeWidth);return{guideLine:{show:!0,x1:i,y1:Hm(o,n.minorGuideLine.strokeWidth),x2:i,y2:Hm(t.guideLine.minor.size+o,n.minorGuideLine.strokeWidth),style:n.minorGuideLine}}}}}(t);return t.props.guideLine.minor.show?e.map(n.resolve):[]}function Wm(e){return e.filter((e=>e.show)).map((e=>he({strokeWidth:1},e.style,{type:"line",x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,tickValue:e.tickValue})))}var Um={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=Hm(1,t.line.strokeWidth);return{show:n.line.show,x1:Hm(0,t.line.strokeWidth),y1:r,x2:Hm(e.width,t.line.strokeWidth),y2:r,style:t.line}}(this),this.state.major=$m(n,this),this.state.minor=Vm(r,this)},render(){return[...Wm([this.state.line]),...(e=this.state.major.map((e=>e.label)),e.filter((e=>e.show)).map((e=>he({},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})))),...Wm(this.state.major.map((e=>e.guideLine))),...Wm(this.state.minor.map((e=>e.guideLine)))];var e}};function Km(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 Gm(e){return e.qTags.indexOf("$qualified")>-1}function Ym({qAxis:e}){const t=[],n=[];for(let r=0;r<e.length;r++){const o=r+1,i=e[r],a=e[o];Km(i,a)?(Gm(a)?(t.push(o),n.push(r)):(t.push(r),n.push(o)),r++):(t.push(r),n.push(r))}return{qualified:t,nonQualified:n}}function Xm({qualifiedMeta:e,nonQualifiedMeta:t}){return{resolve(n){let r,o=NaN,i=NaN,a=NaN,s=!1;for(let l=e.length-1;l>=0;l--){const c=e[l];if(c.queries.outer(n)){const e=t[l+1];if(o=c.index,r=l,c.attrs.isDayOrShorter()&&c.queries.canFitHalfDayTicks(n)){i="auto",s=!0;break}if(e&&e.queries.inner(n)){i=e.index;const r=t[l+2];r&&r.queries.minor(n)&&(a=r.index);break}}}if(!Number.isNaN(o)&&Number.isNaN(i)&&"auto"!==i){i=o,o=NaN;const e=t[r+1];e&&e.queries.minor(n)&&(a=e.index)}else Number.isNaN(o)&&(o="auto",i="auto");return{outer:o,inner:i,minor:a,isDayOrShorter:s}}}}function Jm({qTicks:e,measureText:t=()=>({width:0}),cache:n={},scale:r}){const o=n;return{isDayOrShorter:()=>(o.isDayOrShorter=e.length>0&&Math.abs(e[0].qStart-e[0].qEnd)<=1,o.isDayOrShorter),count:()=>e.length,maxRange:()=>(o.maxRange=e.length?Math.max(...e.map((e=>Math.abs(r(e.qStart)-r(e.qEnd))))):0,o.maxRange),rangeAndWidth(){const n=r.clamp();return r.clamp(!1),o.rangeAndWidth=e.map((e=>({range:Math.abs(r(e.qStart)-r(e.qEnd)),width:t(`${e.qText}`).width+16}))),r.clamp(n),o.rangeAndWidth}}}function Zm({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>=6,canFitHalfDayTicks:n=>n>=t*e.count()}}function Qm({qualified:e,nonQualified:t,qAxis:n,measureText:r,reqAutoFitWidth:o,scale:i},{attributesFactory:a=Jm,queryFactory:s=Zm}={attributesFactory:Jm,queryFactory:Zm}){const l=n.map(((e,t)=>function(e,t){const{qTicks:n}=e,l=a({qTicks:n,measureText:r,scale:i});return{data:e,index:t,attrs:l,queries:s({attrs:l,reqAutoFitWidth:o})}}(e,t))),c=e.map((e=>l[e])),u=t.map((e=>l[e]));return{qAxisMeta:l,qualifiedMeta:c,nonQualifiedMeta:u}}function eh({qAxis:e=[],measureText:t=()=>({width:0}),cache:n={},reqAutoFitWidth:r=0,scale:o},{metaFactory:i=Qm,mapper:a=Ym,resolver:s=Xm}={metaFactory:Qm,mapper:Ym,resolver:Xm}){const{qualified:l,nonQualified:c}=a({qAxis:e}),{qualifiedMeta:u,nonQualifiedMeta:d}=i({qAxis:e,qualified:l,nonQualified:c,measureText:t,reqAutoFitWidth:r,scale:o}),p=s({qualifiedMeta:u,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 o=p.resolve(t);return n.set(r,o),o}}}function th(e){return new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,0,Math.round(864e5*(e-Math.floor(e)))))}const nh=th(0).getTime();function rh(e){return(e.getTime()-nh)/86400/1e3}const oh=new Date,ih=new Date;function ah(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=t=>(e(t=new Date(+t)),t),o.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),o.round=e=>{const t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),o.range=(n,r,i)=>{const a=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return a;let s;do{a.push(s=new Date(+n)),t(n,i),e(n)}while(s<n&&n<r);return a},o.filter=n=>ah((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&&(o.count=(t,r)=>(oh.setTime(+t),ih.setTime(+r),e(oh),e(ih),Math.floor(n(oh,ih))),o.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?t=>r(t)%e==0:t=>o.count(0,t)%e==0):o:null)),o}const sh=1e3,lh=6e4,ch=36e5,uh=864e5,dh=6048e5,ph=ah((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*sh)}),((e,t)=>(t-e)/sh),(e=>e.getUTCSeconds()));ph.range;const fh=ah((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*sh)}),((e,t)=>{e.setTime(+e+t*lh)}),((e,t)=>(t-e)/lh),(e=>e.getMinutes()));fh.range;const mh=ah((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*lh)}),((e,t)=>(t-e)/lh),(e=>e.getUTCMinutes()));mh.range;const hh=ah((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*sh-e.getMinutes()*lh)}),((e,t)=>{e.setTime(+e+t*ch)}),((e,t)=>(t-e)/ch),(e=>e.getHours()));hh.range;const gh=ah((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*ch)}),((e,t)=>(t-e)/ch),(e=>e.getUTCHours()));gh.range;const yh=ah((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*lh)/uh),(e=>e.getDate()-1));yh.range;const vh=ah((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/uh),(e=>e.getUTCDate()-1));vh.range;const bh=ah((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/uh),(e=>Math.floor(e/uh)));function xh(e){return ah((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())*lh)/dh))}bh.range;const Sh=xh(0),Mh=xh(1),Ch=xh(2),wh=xh(3),kh=xh(4),Eh=xh(5),Th=xh(6);function qh(e){return ah((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)/dh))}Sh.range,Mh.range,Ch.range,wh.range,kh.range,Eh.range,Th.range;const Lh=qh(0),Nh=qh(1),Oh=qh(2),Dh=qh(3),Ah=qh(4),Rh=qh(5),Ph=qh(6);Lh.range,Nh.range,Oh.range,Dh.range,Ah.range,Rh.range,Ph.range;const Ih=ah((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()));Ih.range;const zh=ah((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()));zh.range;const jh=ah((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()));jh.every=e=>isFinite(e=Math.floor(e))&&e>0?ah((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,jh.range;const Fh=ah((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()));Fh.every=e=>isFinite(e=Math.floor(e))&&e>0?ah((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,Fh.range;const Bh=1,_h=2,Hh=3,$h=4,Vh=5,Wh=6;function Uh({timeScale:e,labels:t,distance:n,isDayOrShorter:r,cache:o,timeOnly:i,initialMin:a}){const[s,l]=e.domain(),c=o.key({distance:n});let u;o.get(c,1)?u=o.get(c,1):(u=function(e,t,n,r,o,i){function a(e){return Fh.filter((t=>(t.getUTCFullYear()-i.getUTCFullYear())%e==0))}const s=ph.count(e,t),l=mh.count(e,t),c=gh.count(e,t),u=vh.count(e,t),d=Lh.count(e,t),p=zh.count(e,t),f=Fh.count(e,t),m=n/r.second.width-1,h=n/r.minute.width-1,g=n/r.date.width-1,y=n/r.year.width-1,v={type:"year",desc:"year",count:f,interval:Fh.every(1),formatter:r.year.formatter,offset:e=>Fh.offset(e,-1),floor:Fh.floor};if(s<=m)v.type=Bh,v.desc="second",v.count=s,v.interval=ph.every(1),v.formatter=r.second.formatter,v.offset=e=>ph.offset(e,-1),v.floor=ph.floor;else if(s/2<=m)v.type=Bh,v.desc="every other second",v.count=s/2,v.interval=ph.every(2),v.formatter=r.second.formatter,v.offset=e=>ph.offset(e,-2),v.floor=ph.floor;else if(s/5<=m)v.type=Bh,v.desc="every 5 second",v.count=s/5,v.interval=ph.every(5),v.formatter=r.second.formatter,v.offset=e=>ph.offset(e,-5),v.floor=ph.floor;else if(s/15<=m)v.type=Bh,v.desc="every 15 second",v.count=s/15,v.interval=ph.every(15),v.formatter=r.second.formatter,v.offset=e=>ph.offset(e,-15),v.floor=ph.floor;else if(s/30<=m)v.type=Bh,v.desc="every 30 second",v.count=s/30,v.interval=ph.every(30),v.formatter=r.second.formatter,v.offset=e=>ph.offset(e,-30),v.floor=ph.floor;else if(l<=h)v.type=_h,v.desc="minute",v.count=l,v.interval=mh.every(1),v.formatter=r.minute.formatter,v.offset=e=>mh.offset(e,-1),v.floor=mh.floor;else if(l/2<=h)v.type=_h,v.desc="every 2 minute",v.count=l/2,v.interval=mh.every(2),v.formatter=r.minute.formatter,v.offset=e=>mh.offset(e,-2),v.floor=mh.floor;else if(l/5<=h)v.type=_h,v.desc="every 5 minute",v.count=l/5,v.interval=mh.every(5),v.formatter=r.minute.formatter,v.offset=e=>mh.offset(e,-5),v.floor=mh.floor;else if(l/10<=h)v.type=_h,v.desc="every 10 minute",v.count=l/10,v.interval=mh.every(10),v.formatter=r.minute.formatter,v.offset=e=>mh.offset(e,-10),v.floor=mh.floor;else if(l/15<=h)v.type=_h,v.desc="every 15 minute",v.count=l/15,v.interval=mh.every(15),v.formatter=r.minute.formatter,v.offset=e=>mh.offset(e,-15),v.floor=mh.floor;else if(l/30<=h)v.type=_h,v.desc="every 30 minute",v.count=l/30,v.interval=mh.every(30),v.formatter=r.minute.formatter,v.offset=e=>mh.offset(e,-30),v.floor=mh.floor;else if(c<=h)v.type=Hh,v.desc="hour",v.count=c,v.interval=gh.every(1),v.formatter=r.minute.formatter,v.offset=e=>gh.offset(e,-1),v.floor=gh.floor;else if(c/2<=h)v.type=Hh,v.desc="every 2 hour",v.count=c/2,v.interval=gh.every(2),v.formatter=r.minute.formatter,v.offset=e=>gh.offset(e,-2),v.floor=gh.floor;else if(c/3<=h)v.type=Hh,v.desc="every 3 hour",v.count=c/3,v.interval=gh.every(3),v.formatter=r.minute.formatter,v.offset=e=>gh.offset(e,-3),v.floor=gh.floor;else if(c/6<=h)v.type=Hh,v.desc="every 6 hour",v.count=c/6,v.interval=gh.every(6),v.formatter=r.minute.formatter,v.offset=e=>gh.offset(e,-6),v.floor=gh.floor;else if(c/12<=h||o)v.type=Hh,v.desc="every 12 hour",v.count=c/12,v.interval=gh.every(12),v.formatter=r.minute.formatter,v.offset=e=>gh.offset(e,-12),v.floor=gh.floor;else if(u<=g)v.type=$h,v.desc="day",v.count=u,v.interval=vh.every(1),v.formatter=r.date.formatter,v.offset=e=>vh.offset(e,-1),v.floor=vh.floor;else if(u/2<=g)v.type=$h,v.desc="every 2 day",v.count=u/2,v.interval=vh.every(2),v.formatter=r.date.formatter,v.offset=e=>vh.offset(e,-2),v.floor=vh.floor;else if(u/3<=g)v.type=$h,v.desc="every 3 day",v.count=u/3,v.interval=vh.every(3),v.formatter=r.date.formatter,v.offset=e=>vh.offset(e,-3),v.floor=vh.floor;else if(d<=g)v.type=$h,v.desc="week",v.count=d,v.interval=Lh.every(1),v.formatter=r.date.formatter,v.offset=e=>Lh.offset(e,-1),v.floor=vh.floor;else if(d/2<=g)v.type=$h,v.desc="every 2 week",v.count=d/2,v.interval=Lh.every(2),v.formatter=r.date.formatter,v.offset=e=>Lh.offset(e,-2),v.floor=vh.floor;else if(p<=g)v.type=Vh,v.desc="month",v.count=p,v.interval=zh.every(1),v.formatter=r.date.formatter,v.offset=e=>zh.offset(e,-1),v.floor=vh.floor;else if(p/3<=g)v.type=Vh,v.desc="quarter",v.count=p/3,v.interval=zh.every(3),v.formatter=r.date.formatter,v.offset=e=>zh.offset(e,-3),v.floor=vh.floor;else if(p/6<=g)v.type=Vh,v.desc="half year",v.count=p/6,v.interval=zh.every(6),v.formatter=r.date.formatter,v.offset=e=>zh.offset(e,-6),v.floor=vh.floor;else if(f<=y)v.type=Wh,v.desc="year",v.count=f,v.interval=Fh.every(1),v.formatter=r.year.formatter,v.offset=e=>Fh.offset(e,-1),v.floor=Fh.floor;else if(f/2<=y)v.type=Wh,v.desc="every 2 year",v.count=f/2,v.interval=a(2),v.formatter=r.year.formatter,v.offset=e=>Fh.offset(e,-2),v.floor=Fh.floor;else if(f/5<=y)v.type=Wh,v.desc="every 5 year",v.count=f/5,v.interval=a(5),v.formatter=r.year.formatter,v.offset=e=>Fh.offset(e,-5),v.floor=Fh.floor;else if(f/10<=y)v.type=Wh,v.desc="every 10 year",v.count=f/10,v.interval=a(10),v.formatter=r.year.formatter,v.offset=e=>Fh.offset(e,-10),v.floor=Fh.floor;else{const e=Math.max(1,Math.floor(f/y));v.type=Wh,v.desc="every nth year",v.count=e,v.interval=a(e),v.formatter=r.year.formatter,v.offset=t=>Fh.offset(t,-e),v.floor=Fh.floor}return v}(s,l,n,t.all(),r,a),o.set(c,u,1));const d=e.ticks(u.interval);d.length?s.getTime()!==d[0].getTime()&&d.unshift(u.offset(d[0])):d.push(u.floor(s));const p=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:u.formatter}}));let f=[];if(!i&&u.type<=Hh){const n=t.getFormat("date"),r=e.ticks(vh.every(1));r.length&&s.getUTCDate()!==r[0].getUTCDate()&&r.unshift(vh.offset(r[0],-1)),f=(r.length?r:[vh.floor(s)]).map(((e,t,r)=>{const o=r[t+1]?r[t+1]-e:l-e;return{start:e,end:new Date(e.getTime()+o),formatter:n.formatter}}))}return{inner:p,outer:f}}const Kh=86400,Gh=1440,Yh={};function Xh(e,t,n,r){return{type:e,start:new Date(Date.UTC(...t)),end:new Date(Date.UTC(...n)),formatter:r}}function Jh(e,t,n){const{generator:r,anchor:o,clamp:i,level:a}=t.ticks,{qNumFormat:s}=t.formatter;e.clamp(i);const[l,c]=e.domain(),u=Pi().domain([th(l),th(c)]);u.clamp(i),u.range(t.invert?[1,0]:[0,1]);const d="object"==typeof r?r:{type:r};let p;p="d3"===d.type?(e,o)=>Uh({timeScale:u,labels:n,distance:e,isDayOrShorter:o,cache:t.cache,timeOnly:"T"===s.qType,initialMin:void 0===d.initialMin?u.domain()[0]:th(r.initialMin)}):e=>function(e,t,n,r,o,i=!1){if(Yh[[t,n,r,r,i]])return Yh[[t,n,r,r,i]];const a={year:e.getFormat("year"),date:e.getFormat("date"),minute:e.getFormat("minute"),second:e.getFormat("second")},s=th(n),l=s.getFullYear(),c=s.getMonth(),u=s.getDate(),d=r-n,p=t/(o-r),f=p/1440,m=p/Kh,h=366*p,g=3*p*30,y=a.second.width/m,v=a.minute.width/f,b=a.date.width/g,x=a.year.width/h;let S,M,C,w=0,k=0,E=null,T=null,q=null,L=null,N=null,O=null;const D={outer:[],inner:[]};for(y<1?(E=1,k=1/Kh):y<2?(E=2,k=1/Kh*2):y<5?(E=5,k=1/Kh*5):y<10?(E=10,k=1/Kh*10):y<30?(E=30,k=1/Kh*30):v<1?(T=1,k=1/Gh):v<2?(T=2,k=1/Gh*2):v<5?(T=5,k=1/Gh*5):v<10?(T=10,k=.006944444444444445):v<30?(T=30,k=.020833333333333336):v<60?(q=1,k=1/24):v<120?(q=2,k=2/24):v<360?(q=6,k=.25):v<720?(q=12,k=.5):b<1/90?(k=1,L=1):b<2/90?(k=2,L=2):b<7/90?(k=7,L=7):b<31/90?(N=1,k=31):b<1?(N=3,k=90):x<1?(O=1,k=366):x<2?(O=2,k=732):x<5?(O=5,k=1826.25):(O=10,k=3652.5),M=Math.floor((d+n%1)/k);w<o;){C=M+1,S=O?Xh("year",[l+M*O,0,1],[l+C*O,0,1],a.year.formatter):N?Xh("month",[l,c+M*N,1],[l,c+C*N,1],a.date.formatter):L?Xh("day",[l,c,u+M*L],[l,c,u+C*L],a.date.formatter):q?Xh("hour",[l,c,u,0+M*q],[l,c,u,0+C*q],a.minute.formatter):T?Xh("minute",[l,c,u,0,0+M*T],[l,c,u,0,0+C*T],a.minute.formatter):Xh("second",[l,c,u,0,0,0+M*E],[l,c,u,0,0,0+C*E],a.second.formatter),w=rh(S.start),D.inner.push(S);const e=Math.floor(w);if(!(i||O||N||L)){const t={type:"day",start:th(e),end:th(e+1),formatter:a.date.formatter,qStart:e};D.outer[D.outer.length-1]&&D.outer[D.outer.length-1].qStart===t.qStart||D.outer.push(t)}M++}return D.min=r,D.max=o,Yh[[t,n,r,r,i]]=D,D}(n,e,d.min,l,c,"T"===s.qType);const f={transform:(t=[],{isMinor:n=!1}={})=>t.map((t=>{let r;r="start"===o?t.qStart:"end"===o?t.qEnd:(t.qStart+t.qEnd)/2;const i=e.clamp();n&&e.clamp(!1);const a=e(r),s=e(t.qStart),l=e(t.qEnd);return e.clamp(i),{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)=>p(t,n)[a].map((t=>{let n;return n="start"===o?rh(t.start):"end"===o?rh(t.end):(rh(t.start)+rh(t.end))/2,{position:u(t.start),start:u(t.start),end:u(t.end),value:n,label:t.formatter(n),isMinor:!1,data:{start:rh(t.start),end:rh(t.end),scaleStart:e.domain()[0]}}})).filter((e=>e.position>=0&&e.position<=1))};return f}const Zh=/t+/i;const Qh={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 eg(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 tg="continuousPan";var ng={model:function({model:e,layoutService:t,largeDataService:n,dataProcessorModel:r=Bm,viewCache:o,viewState:i,definitionPath:a},s={}){const{engineFetcherFactory:l=qm,snapshotFetcherFactory:c=Nm,cacheFetcherFactory:u=Lm,cache:d={initial:{},merged:{}}}=s,p=l({model:e,layoutService:t,largeDataService:n,definitionPath:a}),f=c({layoutService:t,viewCache:o}),m=u({cache:d}),h=e=>{throw e.isHandled=!0,e};let g,y,v;return{update(e){var n,r;({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])),o.set("continuousMin",y),o.set("continuousMax",v),o.set("minimiumZoomSpan",(n=y,r=v,Math.max(1e-6,(r-n)*zm))),g=t.meta.isSnapshot?f:p,t.meta.isSnapshot&&({zoom:{min:y,max:v}}=f.getSnapshotData()),i.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=Am(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=>Rm(y,v,e))).then((e=>this.updateLayout(e))).catch(h)},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,o=[],i=[];for(let t=0,a=e.length;t<a;t++){const a=e[t][0];a.qNum<n?o.push(e[t]):a.qNum>r&&i.push(e[t])}return[...o,...t,...i]}(e.qMatrix,t.qDataPages[n].qMatrix),o=Am(e.qArea,r);return{...e,qArea:o,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}))),o=t.qAxis.map((e=>({qName:e.qName,qTags:[...e.qTags],qTicks:[...e.qTicks]})));for(let t=0,i=e.qAxis.length;t<i;t++){const i=e.qAxis[t],a=n.indexOf(i.qName),s=[],l=[];if(a>-1){const{start:e,end:t}=r[a];for(let n=0,r=i.qTicks.length;n<r;n++){const r=i.qTicks[n];r.qStart<e?s.push(r):r.qStart>t&&l.push(r)}o[a].qTicks=[...s,...o[a].qTicks,...l]}}return{qAxis:o}}(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=>Rm(e,t,n))).catch(h),fetchFromCache:(e,t)=>m.fetch(e,t).then((n=>Rm(e,t,n))),fetchMinMaxData:()=>Promise.resolve(d.initial.qDataPages||[]),getInitialCube(){const e=t.getHyperCube();return he({},e,{...d.initial})},getInitialLayout(){const e=this.getInitialCube();return he({},t.getLayout(),{qHyperCube:e})},getDimensionCardinality:()=>Fm(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 o(e,n,o){return r[e](n,o).then((e=>(r.updateLayout(e),t(),e)))}const i=a(((e,t)=>o("fetch",e,t)),50);return({min:e,max:t},{min:r,max:a})=>!n.meta.isContinuous||e===r&&t===a?Promise.resolve(null):o("fetchFromCache",e,t).then((n=>(i(e,t),n)))},onZoomIntercept:function({viewCache:e}){let t=NaN,n=NaN,r=NaN;return(o,i)=>(t=e.get("continuousMin"),n=e.get("continuousMax"),r=e.get("minimiumZoomSpan"),Math.abs(o.max-o.min)<r?i:{min:Math.min(o.max,Math.max(t,o.min)),max:Math.max(o.min,Math.min(n,o.max))})},onZoom:function({viewCache:e,viewState:t,chart:n},{threshold:r=50,rtl:o=!1,targetKey:i}){const a=e.get("continuousMin"),l=e.get("continuousMax");return s(((e,r)=>{const s=(e=>n.componentsFromPoint(e).filter((e=>e.key===i))[0])(e);if(s){const i=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,s),c=o?1-i:i,{min:u,max:d}=t.get("zoom"),p=Math.abs(d-u),f=p-(r>0?Im:Pm)*p,m=u+f*c,h=d-f*(1-c),g=m<a?a-m:0,y=h>l?h-l:0;t.set("zoom",{min:Math.max(m-y,a),max:Math.min(h+g,l)})}}),r)}},interactions:{areaPan:function({targetKey:e,chart:t,actions:n,viewState:r,viewCache:o}){return{type:"Pan",key:"continuous:pan",options:{event:tg,pointers:1,threshold:10,enable(r,o){return this.started===tg||!o||!!n.scroll.enabled()&&t.componentsFromPoint({x:o.center.x,y:o.center.y}).some((t=>t.key===e))}},events:{[`${tg}start`](n){n.preventDefault(),this.started=tg;const{min:o,max:i}=r.get("zoom");this[tg]={min:o,max:i,size:t.component(e).rect.computedInner.width,span:i-o}},[`${tg}move`](e){e.preventDefault();const{span:t,min:n,max:i,size:a}=this[tg],s=-e.deltaX/a;r.set("zoom",{min:Math.min(n+s*t,o.get("continuousMax")-t),max:Math.max(i+s*t,o.get("continuousMin")+t)})},[`${tg}end`](e){e.preventDefault(),this.started=!1},[`${tg}cancel`](e){e.preventDefault(),this.started=!1}}}}},picassoComponents:{axisOverlay:_m,timeAxis:Um},picassoScales:{time:function e(t,n={}){const r=function(e,t,n){const r={};return Object.keys(t).forEach((o=>{const i=e[o],a=typeof i;"function"===a?r[o]=i(n):"object"!==a||Array.isArray(i)?r[o]="undefined"===a?t[o]:i:r[o]=he(!0,{},t[o],i)})),r}(t,Qh,n),{qAxis:i}=r,a=wr(),s={instance:null,invert:!1},{min:l,max:c}=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,d,p=[];const f=function(e){return Number.isNaN(+e)?NaN:a(e)};f.ticks=({distance:e,resolve:t=u.resolve}={})=>{const n=t(e),o=n[r.ticks.level];if(Number.isNaN(+o)||(p=d.transform(i[o].qTicks,{isMinor:!1})),!Number.isNaN(+n.minor)){const e=d.transform(i[n.minor].qTicks,{isMinor:!0});p=p.concat(e)}return"auto"===o&&(p=d.generate(e,n.isDayOrShorter)),p},f.invert=e=>a.invert(e),f.domain=e=>Array.isArray(e)?a.domain(e):a.domain(),f.range=e=>Array.isArray(e)?a.range(e):a.range(),f.norm=e=>(eg(s,f),s.instance(e)),f.normInvert=e=>(eg(s,f),s.instance.invert(e)),f.copy=()=>e(t,n),f.clamp=(e=!0)=>(a.clamp(e),a.clamp()),f.min=()=>Math.min(l,c),f.max=()=>Math.max(l,c),a.range(r.invert?[1,0]:[0,1]),a.domain([l,c]),s.invert=r.invert;const m=function(e){const t={},{measureText:n,fn:r,localeInfo:o}=e.formatter,i={second:{type:"second",pattern:"hh:mm:ss",width:60,formatter:void 0},minute:{type:"minute",pattern:"hh:mm",width:60,formatter:void 0},date:{type:"date",pattern:"YYYY-MM-DD",width:60,formatter:void 0},year:{type:"year",pattern:"YYYY",width:60,formatter:void 0}};return o&&Zh.test(o.qTimestampFmt)&&(i.minute.pattern+=" tt",i.second.pattern+=" tt"),i.date.pattern=o&&o.qDateFmt?o.qDateFmt:i.date.pattern,Object.keys(i).forEach((e=>{i[e].formatter=r(i[e].pattern),i[e].width=Math.max(i[e].width,n(i[e].formatter(41000.2343433)).width+16)})),t.getFormat=e=>i[e],t.all=()=>i,t.getFormatFromTicks=e=>{const t=e.filter((e=>!e.isMinor)),{length:n}=t;if(!n)return i.date;const r=th(t[0].data.start),o=th(t[n-1].data.start);return vh.count(r,o)/n>=1?i.date:gh.count(r,o)/n>0?i.minute:mh.count(r,o)/n>0?i.second:i.date},t}(r);return d=Jh(a.copy(),r,m),u=eh({qAxis:i,measureText:r.formatter.measureText,reqAutoFitWidth:2*m.getFormat("minute").width,cache:r.cache,scale:f}),f.data=()=>({fields:[{formatter:f.formatter,id:()=>`qHyperCube/${r.field}`,key:()=>r.field,raw:o(n,"fields.0.raw",(()=>({})))}]}),f.formatter=()=>m.getFormatFromTicks(p).formatter,f}}};const rg={MINI_CHART:{value:"miniChart",translation:"properties.scrollbar.miniChart"},BAR:{value:"bar",translation:"properties.scrollbar.bar"},NONE:{value:"none",translation:"properties.scrollbar.none"}};var og={OPTIONS:rg,DEFAULT:rg.MINI_CHART};function ig({layoutService:e,discrete:t}){return({h:n,rect:r,orientation:o,minThumbSize:i})=>{const a=t.query.getCurrentDataPage(),s=e.meta.size.y,l="horizontal"===o,c=r[l?"width":"height"];let u=a.qArea.qTop/s*c,d=a.qArea.qHeight/s*c;if(d<i){const e=(i-d)/2;u=u-e+(Math.max(0,0-(u-e))-Math.max(0,u+d+e-c)),d=i}return n("div",{style:{position:"absolute",right:0,bottom:0,background:"red",opacity:.2,...l?{top:0,left:u,width:d}:{top:u,left:0,height:d}}})}}function ag({layoutService:e,viewState:t,viewCache:n}){return e.meta.isContinuous?function(e,t){const n=e.get("zoom"),r=t.get("continuousMin"),o=t.get("continuousMax");return[(n.min-r)/(o-r),(n.max-r)/(o-r)]}(t,n):function(e){return e.get("viewRange")}(t)}const sg=e=>({miniChart:e===og.OPTIONS.MINI_CHART.value,bar:e===og.OPTIONS.BAR.value,none:e===og.OPTIONS.NONE.value});function lg({layoutService:e,override:t}){const n=(({layoutService:e})=>{const t=e.getLayoutValue("scrollbar");if(t)return sg(t);const n=e.getLayoutValue("showMiniChartForContinuousAxis");if(void 0===n)return sg(og.DEFAULT.value);const r=e.getLayoutValue("dimensionAxis.continuousAuto"),o=e.getLayoutValue("preferContinuousAxis");return sg(!n&&(r||!r&&o)?og.OPTIONS.NONE.value:og.OPTIONS.MINI_CHART.value)})({layoutService:e});return t&&t.predicate({layoutService:e,scrollbar:n})&&(n.miniChart=t.value===og.OPTIONS.MINI_CHART.value,n.bar=t.value===og.OPTIONS.BAR.value,n.none=t.value===og.OPTIONS.NONE.value),n}function cg({layoutService:e,dockService:t,discrete:n,continuousDataModel:r,viewState:o,viewCache:i,themeService:a,rtl:s,scrollbarOverride:l,visualizeCache:c=!1,deviceType:u}){const d=lg({layoutService:e,override:l});if(d.none)return!1;const{orientation:p}=t.meta.major,f={key:"scrollbar",type:"scrollbar",layout:{dock:"horizontal"===p?t.meta.minor.start:t.meta.minor.end,minimumLayoutMode:"XSMALL"},show:()=>e.meta.isContinuous?r.getDimensionCardinality()>1:n.query.getCanScroll(),settings:{orientation:p,rtl:s,isContinuous:e.meta.isContinuous,range:()=>ag({layoutService:e,viewState:o,viewCache:i})}};d.bar&&(f.settings.style="slim",f.settings.size={area:"touch"===u?{max:16,min:16}:{max:8,min:8}},e.meta.isContinuous||(f.settings.size.thumb={min:4}));const m=a.getStyles();return m.color&&(f.style={standard:{thumb:{"border-color":m.color,opacity:.4},before:{background:m.color,opacity:.1},after:{background:m.color,opacity:.1}}}),e.meta.isDiscrete&&c&&(f.settings.injections=()=>[ig({layoutService:e,discrete:n})]),f}function ug({componentKey:e,chart:t,viewState:n,viewCache:r,layoutService:o,dockService:i,rtl:a}){return s=>{const{x:l,y:c}=s.center,u=t.element.getBoundingClientRect(),d=t.component(e),p="horizontal"===i.meta.major.orientation,f=p?l-u.left-d.rect.computedInner.x:c-u.top-d.rect.computedInner.y,m=p?d.rect.computedInner.width:d.rect.computedInner.height,h=p&&a?m-f:f,g=Math.max(0,Math.min(h/m,1)),[y,v]=ag({layoutService:o,viewState:n,viewCache:r}),b=g<y,x=g>v,S=!b&&!x;return{pixel:h,relative:g,thumb:S?h-y*m:0,beforeThumb:b,afterThumb:x,onThumb:S}}}function dg({componentKey:e,chart:t,viewState:n,viewCache:r,layoutService:o,dockService:i}){return()=>{const a=t.component(e),{orientation:s}=i.meta.major,{width:l,height:c}=a.rect.computedInner,u="horizontal"===s?l:c,[d,p]=ag({layoutService:o,viewState:n,viewCache:r});return{size:u,thumbSize:(p-d)*u}}}function pg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}){const c=ug({componentKey:e,chart:t,viewState:r,viewCache:o,layoutService:i,dockService:a,rtl:l}),u=dg({componentKey:e,chart:t,viewState:r,viewCache:o,layoutService:i,dockService:a});return{type:"Tap",options:{event:"scrollbarTap",enable:(r,o)=>!o||!!n.scroll.enabled()&&t.componentsFromPoint({x:o.center.x,y:o.center.y}).some((t=>t.key===e))},events:{scrollbarTap(n){n.preventDefault();const a=c(n);if(i.meta.isContinuous){const e=r.get("zoom"),t=e.max-e.min,n=o.get("continuousMin"),i=o.get("continuousMax"),s=n+(i-n)*a.relative;r.set("zoom",{min:Math.min(s-t/2,i-t),max:Math.max(s+t/2,n+t)})}else{const e=u(),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 mg({e:e}){return(e.srcEvent||e).srcElement.getAttribute(fg)||""}const hg="scrollbarResize";function gg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,rtl:s}){const l=ug({componentKey:e,chart:t,viewState:r,viewCache:o,layoutService:i,dockService:a,rtl:s});return{type:"Pan",key:`event:${hg}`,options:{event:hg,threshold:0,enable(e,t){return!(!i.meta.isContinuous||!n.scroll.enabled())&&(!t||(this[hg]=this[hg]||{},(e=>{const[t]=e.changedPointers;return t&&("pointerdown"===t.type||"mousedown"===t.type)})(t)&&mg({e:t})&&(this[hg].panningEvent=t.srcEvent),!!this[hg].panningEvent))}},events:{[`${hg}start`](n){n.preventDefault(),this[hg]=this[hg]||{},this[hg].panningEvent&&t.component(e).emit("dragStart",this[hg].panningEvent)},[`${hg}move`](n){if(n.preventDefault(),this[hg]=this[hg]||{},!this[hg].panningEvent)return;const i=r.get("zoom"),a=o.get("continuousMin"),s=o.get("continuousMax"),c=o.get("minimiumZoomSpan"),u=(s-a)*l(n).relative+a,d=mg({e:this[hg].panningEvent});let p="start"===d?Math.min(u,i.max):i.min,f="end"===d?Math.max(u,i.min):i.max;p===f&&(p-="start"===d?c:0,f+="end"===d?c:0),r.set("zoom",{min:p,max:f}),t.component(e).emit("render")},[`${hg}end`](n){n.preventDefault(),this[hg]=this[hg]||{},delete this[hg].panningEvent,t.component(e).emit("dragEnd")},[`${hg}cancel`](n){n.preventDefault(),this[hg]=this[hg]||{},delete this[hg].panningEvent,t.component(e).emit("dragEnd")}}}}const yg="scrollbarPan";function vg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}){const c=ug({componentKey:e,chart:t,viewState:r,viewCache:o,layoutService:i,dockService:a,rtl:l}),u=dg({componentKey:e,chart:t,viewState:r,viewCache:o,layoutService:i,dockService:a});return{type:"Pan",key:`event:${yg}`,options:{event:yg,threshold:0,enable(r,o){return this[yg]=this[yg]||{},!(o&&!this[yg].isPanning)||!!n.scroll.enabled()&&((!o||o.target===t.element)&&t.componentsFromPoint({x:o.center.x,y:o.center.y}).some((t=>t.key===e)))}},events:{[`${yg}start`](n){n.preventDefault();const a=c(n);if(this[yg]=this[yg]||{},this[yg].isPanning=!0,t.component(e).emit("lockState"),i.meta.isContinuous){const e=r.get("zoom"),t=e.max-e.min,n=o.get("continuousMin"),i=o.get("continuousMax"),s=n+(i-n)*a.relative;s<e.min?r.set("zoom",{min:Math.min(s,i-t),max:Math.max(s+t,n+t)}):s>e.max&&r.set("zoom",{min:Math.min(s-t,i-t),max:Math.max(s,n+t)}),this[yg].relative=a.relative,this[yg].zoom=r.get("zoom"),this[yg].zoom.span=this[yg].zoom.max-this[yg].zoom.min,this[yg].zoom.fullSpan=i-n}else if(a.onThumb)this[yg].offset=a.thumb;else{const e=u();this[yg].offset=a.beforeThumb?0:e.thumbSize}},[`${yg}move`](n){n.preventDefault();const a=c(n);if(this[yg]=this[yg]||{},i.meta.isContinuous){const e=a.relative-this[yg].relative,{fullSpan:t,span:n,min:i,max:s}=this[yg].zoom,l=o.get("continuousMin"),c=o.get("continuousMax");r.set("zoom",{min:Math.min(i+e*t,c-n),max:Math.max(s+e*t,l+n)})}else{const e=a.pixel-(this[yg].offset||0),t=u(),n=Math.max(0,e/t.size);s.command.scrollTo(n)}t.component(e).emit("render")},[`${yg}end`](n){n.preventDefault(),this[yg]=this[yg]||{},this[yg].isPanning=!1,t.component(e).emit("unlockState")},[`${yg}cancel`](n){n.preventDefault(),this[yg]=this[yg]||{},this[yg].isPanning=!1,t.component(e).emit("unlockState")}}}}function bg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}){return[pg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}),gg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,rtl:l}),vg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l})]}function xg({componentKey:e,chart:t,actions:n,layoutService:r}){const o=(o,i)=>{if(!r.meta.isContinuous)return;const a=t.component(e);a&&a.emit&&n.scroll.enabled()&&a.emit(o,i)};return{type:"native",events:{mousemove:e=>o("hover",e),mouseleave:()=>o("leave")}}}function Sg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}){return{gestures:[...bg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l})],native:xg({componentKey:e,chart:t,actions:n,layoutService:i})}}const Mg={background:"rgba(0, 0, 0, 0.1)"},Cg={top:-1,bottom:-1,width:6},wg={width:2,background:"#595959"};var kg={before:Mg,after:Mg,thumb:{background:"transparent",border:"1px solid rgba(68, 68, 68, 0.4)"},startHandle:Cg,endHandle:Cg,startHandleBorder:wg,endHandleBorder:wg};const Eg={background:"rgba(0, 0, 0, 0.1)"},Tg={top:-1,bottom:-1,width:6},qg={width:2,background:"#595959"};var Lg={before:Eg,after:Eg,thumb:{background:"#B0AFAE",border:"transparent"},startHandle:Tg,endHandle:Tg,startHandleBorder:qg,endHandleBorder:qg};const Ng={position:"absolute",top:0,right:0,bottom:0,left:0,boxSizing:"border-box"},Og={pointerEvents:"initial"},Dg={pointerEvents:"none"};const Ag="ew-resize",Rg="default";function Pg(){const{rect:e}=this,{settings:t}=this.settings,n="horizontal"===t.orientation,r=n?e.computedInner.width:e.computedInner.height,o=t.range(),i=n&&t.rtl;return{size:r,start:(i?1-o[1]:o[0])*r,end:(i?1-o[0]:o[1])*r}}function Ig(){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?Ag:Rg}function zg(e,t,n){const{min:r}=this.settings.settings.size.thumb;if(n-t<r){const o=(r-(n-t))/2,i=Math.max(0,0-(t-o))-Math.max(0,n+o-e);return{size:e,start:t-o+i,end:n+o+i}}return{size:e,start:t,end:n}}function jg(e){const t=(e.srcEvent||e).srcElement;return this.renderer.element().contains(t)}function Fg(){const{size:e,start:t,end:n}=Pg.call(this);this.renderer.render(this.elements(this.h,zg.call(this,e,t,n)))}function Bg(){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?Lg:kg;return{container:{...Ng},before:{...Ng,...n.before,...t.before},after:{...Ng,...n.after,...t.after},thumb:{...Ng,...n.thumb,...t.thumb},startHandle:{...Ng,...Og,...n.startHandle},endHandle:{...Ng,...Og,...n.endHandle},startHandleBorder:{...Ng,...Dg,...n.startHandleBorder},endHandleBorder:{...Ng,...Dg,...n.endHandleBorder}}}({id:t.settings.style,style:n[r]})),e.style[r]}var _g={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(){Fg.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||!jg.call(this,e)&&this.state.hover.isPristine())return;this.state.hover.reset();const t=mg({e:e});t&&(this.state.hover[t]=!0),Ig.call(this),Fg.call(this)},leave(){this.state.locked||(this.state.hover.reset(),Ig.call(this),Fg.call(this))},dragStart(e){if(this.state.locked)return;this.state.drag.reset();const t=mg({e:e});t&&(this.state.drag[t]=!0),Ig.call(this)},dragEnd(){this.state.locked||(this.state.drag.reset(),Ig.call(this),Fg.call(this))}},preferredSize({outer:e}){const{min:t,max:n,ratio:r}=this.settings.settings.size.area,o="horizontal"===this.settings.settings.orientation?"height":"width";return Math.max(t,Math.min(n,e[o]*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}=Pg.call(this);return this.elements(e,zg.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:o}=this.settings,i=o.injections().map((t=>t({h:e,rect:this.rect,orientation:o.orientation,minThumbSize:o.size.thumb.min})));return function({h:e,size:t,start:n,end:r,properties:o,startHandleActive:i,endHandleActive:a,style:s,continuous:l,invert:c,injections:u}){const d={[o.end]:t-n},p={[o.start]:r},f={left:-3},m={left:1},h={right:-3,left:"auto"},g={left:3},y=e("div",{style:{...s.before,...c?p:d},class:"scrollbar--before"}),v=e("div",{style:{...s.after,...c?d:p},class:"scrollbar--after"}),b=[];if(l){const t=e("div",{style:{...s.startHandle,...c?h:f},class:"scrollbar--start-handle",[fg]:"start"},i?e("div",{style:{...s.startHandleBorder,...c?g:m}}):void 0);b.push(t);const n=e("div",{style:{...s.endHandle,...c?f:h},class:"scrollbar--end-handle",[fg]:"end"},a?e("div",{style:{...s.endHandleBorder,...c?m:g}}):void 0);b.push(n)}const x=e("div",{style:{...s.thumb,[o.start]:n,[o.end]:t-r},class:"scrollbar--thumb"},b);return e("div",{style:{...s.container}},[y,x,v,...u])}({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:Bg.call(this),continuous:o.isContinuous,invert:"horizontal"===o.orientation&&o.rtl,injections:i})}};const Hg={black:"#000",white:"#fff"},$g="#e57373",Vg="#ef5350",Wg="#f44336",Ug="#d32f2f",Kg="#c62828",Gg="#f3e5f5",Yg="#ce93d8",Xg="#ba68c8",Jg="#ab47bc",Zg="#9c27b0",Qg="#7b1fa2",ey="#e3f2fd",ty="#90caf9",ny="#42a5f5",ry="#1976d2",oy="#1565c0",iy="#4fc3f7",ay="#29b6f6",sy="#03a9f4",ly="#0288d1",cy="#01579b",uy="#81c784",dy="#66bb6a",py="#4caf50",fy="#388e3c",my="#2e7d32",hy="#1b5e20",gy="#ffb74d",yy="#ffa726",vy="#ff9800",by="#f57c00",xy="#e65100",Sy={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 My(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 Cy=Object.freeze({__proto__:null,default:My}),wy="$$material";var ky=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){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),Ey="-ms-",Ty="-moz-",qy="-webkit-",Ly="comm",Ny="rule",Oy="decl",Dy="@keyframes",Ay=Math.abs,Ry=String.fromCharCode,Py=Object.assign;function Iy(e){return e.trim()}function zy(e,t,n){return e.replace(t,n)}function jy(e,t){return e.indexOf(t)}function Fy(e,t){return 0|e.charCodeAt(t)}function By(e,t,n){return e.slice(t,n)}function _y(e){return e.length}function Hy(e){return e.length}function $y(e,t){return t.push(e),e}var Vy=1,Wy=1,Uy=0,Ky=0,Gy=0,Yy="";function Xy(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Vy,column:Wy,length:a,return:""}}function Jy(e,t){return Py(Xy("",null,null,"",null,null,0),e,{length:-e.length},t)}function Zy(){return Gy=Ky>0?Fy(Yy,--Ky):0,Wy--,10===Gy&&(Wy=1,Vy--),Gy}function Qy(){return Gy=Ky<Uy?Fy(Yy,Ky++):0,Wy++,10===Gy&&(Wy=1,Vy++),Gy}function ev(){return Fy(Yy,Ky)}function tv(){return Ky}function nv(e,t){return By(Yy,e,t)}function rv(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 ov(e){return Vy=Wy=1,Uy=_y(Yy=e),Ky=0,[]}function iv(e){return Yy="",e}function av(e){return Iy(nv(Ky-1,cv(91===e?e+2:40===e?e+1:e)))}function sv(e){for(;(Gy=ev())&&Gy<33;)Qy();return rv(e)>2||rv(Gy)>3?"":" "}function lv(e,t){for(;--t&&Qy()&&!(Gy<48||Gy>102||Gy>57&&Gy<65||Gy>70&&Gy<97););return nv(e,tv()+(t<6&&32==ev()&&32==Qy()))}function cv(e){for(;Qy();)switch(Gy){case e:return Ky;case 34:case 39:34!==e&&39!==e&&cv(Gy);break;case 40:41===e&&cv(e);break;case 92:Qy()}return Ky}function uv(e,t){for(;Qy()&&e+Gy!==57&&(e+Gy!==84||47!==ev()););return"/*"+nv(t,Ky-1)+"*"+Ry(47===e?e:Qy())}function dv(e){for(;!rv(ev());)Qy();return nv(e,Ky)}function pv(e){return iv(fv("",null,null,null,[""],e=ov(e),0,[0],e))}function fv(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,m=0,h=1,g=1,y=1,v=0,b="",x=o,S=i,M=r,C=b;g;)switch(m=v,v=Qy()){case 40:if(108!=m&&58==Fy(C,d-1)){-1!=jy(C+=zy(av(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:C+=av(v);break;case 9:case 10:case 13:case 32:C+=sv(m);break;case 92:C+=lv(tv()-1,7);continue;case 47:switch(ev()){case 42:case 47:$y(hv(uv(Qy(),tv()),t,n),l);break;default:C+="/"}break;case 123*h:s[c++]=_y(C)*y;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==y&&(C=zy(C,/\f/g,"")),f>0&&_y(C)-d&&$y(f>32?gv(C+";",r,n,d-1):gv(zy(C," ","")+";",r,n,d-2),l);break;case 59:C+=";";default:if($y(M=mv(C,t,n,c,u,o,s,b,x=[],S=[],d),i),123===v)if(0===u)fv(C,t,M,M,x,i,d,s,S);else switch(99===p&&110===Fy(C,3)?100:p){case 100:case 108:case 109:case 115:fv(e,M,M,r&&$y(mv(e,M,M,0,0,o,s,b,o,x=[],d),S),o,S,d,s,r?x:S);break;default:fv(C,M,M,M,[""],S,0,s,S)}}c=u=f=0,h=y=1,b=C="",d=a;break;case 58:d=1+_y(C),f=m;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==Zy())continue;switch(C+=Ry(v),v*h){case 38:y=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(_y(C)-1)*y,y=1;break;case 64:45===ev()&&(C+=av(Qy())),p=ev(),u=d=_y(b=C+=dv(tv())),v++;break;case 45:45===m&&2==_y(C)&&(h=0)}}return i}function mv(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,p=0===o?i:[""],f=Hy(p),m=0,h=0,g=0;m<r;++m)for(var y=0,v=By(e,d+1,d=Ay(h=a[m])),b=e;y<f;++y)(b=Iy(h>0?p[y]+" "+v:zy(v,/&\f/g,p[y])))&&(l[g++]=b);return Xy(e,t,n,0===o?Ny:s,l,c,u)}function hv(e,t,n){return Xy(e,t,n,Ly,Ry(Gy),By(e,2,-2),0)}function gv(e,t,n,r){return Xy(e,t,n,Oy,By(e,0,r),By(e,r+1,-1),r)}function yv(e,t){for(var n="",r=Hy(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function vv(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Oy:return e.return=e.return||e.value;case Ly:return"";case Dy:return e.return=e.value+"{"+yv(e.children,r)+"}";case Ny:e.value=e.props.join(",")}return _y(n=yv(e.children,r))?e.return=e.value+"{"+n+"}":""}function bv(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var xv=function(e,t,n){for(var r=0,o=0;r=o,o=ev(),38===r&&12===o&&(t[n]=1),!rv(o);)Qy();return nv(e,Ky)},Sv=function(e,t){return iv(function(e,t){var n=-1,r=44;do{switch(rv(r)){case 0:38===r&&12===ev()&&(t[n]=1),e[n]+=xv(Ky-1,t,n);break;case 2:e[n]+=av(r);break;case 4:if(44===r){e[++n]=58===ev()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Ry(r)}}while(r=Qy());return e}(ov(e),t))},Mv=new WeakMap,Cv=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)||Mv.get(n))&&!r){Mv.set(e,!0);for(var o=[],i=Sv(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},wv=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function kv(e,t){switch(function(e,t){return 45^Fy(e,0)?(((t<<2^Fy(e,0))<<2^Fy(e,1))<<2^Fy(e,2))<<2^Fy(e,3):0}(e,t)){case 5103:return qy+"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 qy+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return qy+e+Ty+e+Ey+e+e;case 6828:case 4268:return qy+e+Ey+e+e;case 6165:return qy+e+Ey+"flex-"+e+e;case 5187:return qy+e+zy(e,/(\w+).+(:[^]+)/,qy+"box-$1$2"+Ey+"flex-$1$2")+e;case 5443:return qy+e+Ey+"flex-item-"+zy(e,/flex-|-self/,"")+e;case 4675:return qy+e+Ey+"flex-line-pack"+zy(e,/align-content|flex-|-self/,"")+e;case 5548:return qy+e+Ey+zy(e,"shrink","negative")+e;case 5292:return qy+e+Ey+zy(e,"basis","preferred-size")+e;case 6060:return qy+"box-"+zy(e,"-grow","")+qy+e+Ey+zy(e,"grow","positive")+e;case 4554:return qy+zy(e,/([^-])(transform)/g,"$1"+qy+"$2")+e;case 6187:return zy(zy(zy(e,/(zoom-|grab)/,qy+"$1"),/(image-set)/,qy+"$1"),e,"")+e;case 5495:case 3959:return zy(e,/(image-set\([^]*)/,qy+"$1$`$1");case 4968:return zy(zy(e,/(.+:)(flex-)?(.*)/,qy+"box-pack:$3"+Ey+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+qy+e+e;case 4095:case 3583:case 4068:case 2532:return zy(e,/(.+)-inline(.+)/,qy+"$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(_y(e)-1-t>6)switch(Fy(e,t+1)){case 109:if(45!==Fy(e,t+4))break;case 102:return zy(e,/(.+:)(.+)-([^]+)/,"$1"+qy+"$2-$3$1"+Ty+(108==Fy(e,t+3)?"$3":"$2-$3"))+e;case 115:return~jy(e,"stretch")?kv(zy(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Fy(e,t+1))break;case 6444:switch(Fy(e,_y(e)-3-(~jy(e,"!important")&&10))){case 107:return zy(e,":",":"+qy)+e;case 101:return zy(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+qy+(45===Fy(e,14)?"inline-":"")+"box$3$1"+qy+"$2$3$1"+Ey+"$2box$3")+e}break;case 5936:switch(Fy(e,t+11)){case 114:return qy+e+Ey+zy(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return qy+e+Ey+zy(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return qy+e+Ey+zy(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return qy+e+Ey+e+e}return e}var Ev=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Oy:e.return=kv(e.value,e.length);break;case Dy:return yv([Jy(e,{value:zy(e.value,"@","@"+qy)})],r);case Ny: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 yv([Jy(e,{props:[zy(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return yv([Jy(e,{props:[zy(t,/:(plac\w+)/,":"+qy+"input-$1")]}),Jy(e,{props:[zy(t,/:(plac\w+)/,":-moz-$1")]}),Jy(e,{props:[zy(t,/:(plac\w+)/,Ey+"input-$1")]})],r)}return""}))}}],Tv=function(e){var t=e.key;if("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,o,i=e.stylisPlugins||Ev,a={},s=[];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,c,u=[vv,(c=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],d=function(e){var t=Hy(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}([Cv,wv].concat(i,u));o=function(e,t,n,r){l=n,function(e){yv(pv(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new ky({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return p.sheet.hydrate(s),p};function qv(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var Lv=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Nv=function(e,t,n){Lv(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};var Ov={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,scale: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},Dv=/[A-Z]|^ms/g,Av=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Rv=function(e){return 45===e.charCodeAt(1)},Pv=function(e){return null!=e&&"boolean"!=typeof e},Iv=bv((function(e){return Rv(e)?e:e.replace(Dv,"-$&").toLowerCase()})),zv=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Av,(function(e,t,n){return Fv={name:t,styles:n,next:Fv},t}))}return 1===Ov[e]||Rv(e)||"number"!=typeof t||0===t?t:t+"px"};function jv(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return Fv={name:o.name,styles:o.styles,next:Fv},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)Fv={name:a.name,styles:a.styles,next:Fv},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=jv(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=i+"{"+t[s]+"}":Pv(s)&&(r+=Iv(i)+":"+zv(i,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=jv(e,t,a);switch(i){case"animation":case"animationName":r+=Iv(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var c=0;c<a.length;c++)Pv(a[c])&&(r+=Iv(i)+":"+zv(i,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=Fv,l=n(e);return Fv=s,jv(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var Fv,Bv=/label:\s*([^\s;{]+)\s*(;|$)/g;function _v(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,o="";Fv=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=jv(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=jv(n,t,e[a]),r)o+=i[a]}Bv.lastIndex=0;for(var s,l="";null!==(s=Bv.exec(o));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=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(o){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)}(o)+l;return{name:c,styles:o,next:Fv}}var Hv,$v,Vv=!!S.useInsertionEffect&&S.useInsertionEffect,Wv=Vv||function(e){return e()},Uv=Vv||S.useLayoutEffect,Kv=S.createContext("undefined"!=typeof HTMLElement?Tv({key:"css"}):null),Gv=Kv.Provider,Yv=function(e){return k((function(t,n){var r=E(Kv);return e(t,r,n)}))},Xv=S.createContext({}),Jv={}.hasOwnProperty,Zv="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Qv=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Lv(t,n,r),Wv((function(){return Nv(t,n,r)})),null},eb=Yv((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[Zv],i=[r],a="";"string"==typeof e.className?a=qv(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=_v(i,void 0,S.useContext(Xv));a+=t.key+"-"+s.name;var l={};for(var c in e)Jv.call(e,c)&&"css"!==c&&c!==Zv&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),S.createElement(S.Fragment,null,S.createElement(Qv,{cache:t,serialized:s,isStringTag:"string"==typeof o}),S.createElement(o,l))})),tb=eb,nb=function(e,t){var n=arguments;if(null==t||!Jv.call(t,"css"))return S.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=tb,o[1]=function(e,t){var n={};for(var r in t)Jv.call(t,r)&&(n[r]=t[r]);return n[Zv]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return S.createElement.apply(null,o)};Hv=nb||(nb={}),$v||($v=Hv.JSX||(Hv.JSX={}));var rb=Yv((function(e,t){var n=_v([e.styles],void 0,S.useContext(Xv)),r=S.useRef();return Uv((function(){var e=t.key+"-global",o=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==a&&(i=!0,a.setAttribute("data-emotion",e),o.hydrate([a])),r.current=[o,i],function(){o.flush()}}),[t]),Uv((function(){var e=r.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&Nv(t,n.next,!0),o.tags.length){var i=o.tags[o.tags.length-1].nextElementSibling;o.before=i,o.flush()}t.insert("",n,o,!1)}}),[t,n.name]),null}));function ob(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return _v(t)}function ib(){var e=ob.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_"}}}var ab=/^((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|fetchpriority|fetchPriority|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)-.*))$/,sb=bv((function(e){return ab.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),lb=function(e){return"theme"!==e},cb=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?sb:lb},ub=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},db=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Lv(t,n,r),Wv((function(){return Nv(t,n,r)})),null},pb=function e(t,n){var r,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var s=ub(t,n,i),l=s||cb(a),c=!l("as");return function(){var u=arguments,d=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{var p=u[0];d.push(p[0]);for(var f=u.length,m=1;m<f;m++)d.push(u[m],p[m])}var h=Yv((function(e,t,n){var r=c&&e.as||a,i="",u=[],p=e;if(null==e.theme){for(var f in p={},e)p[f]=e[f];p.theme=S.useContext(Xv)}"string"==typeof e.className?i=qv(t.registered,u,e.className):null!=e.className&&(i=e.className+" ");var m=_v(d.concat(u),t.registered,p);i+=t.key+"-"+m.name,void 0!==o&&(i+=" "+o);var h=c&&void 0===s?cb(r):l,g={};for(var y in e)c&&"as"===y||h(y)&&(g[y]=e[y]);return g.className=i,n&&(g.ref=n),S.createElement(S.Fragment,null,S.createElement(db,{cache:t,serialized:m,isStringTag:"string"==typeof r}),S.createElement(r,g))}));return h.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=a,h.__emotion_styles=d,h.__emotion_forwardProp=s,Object.defineProperty(h,"toString",{value:function(){return"."+o}}),h.withComponent=function(t,r){return e(t,Ws({},n,r,{shouldForwardProp:ub(h,r,!0)})).apply(void 0,d)},h}}.bind(null);["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){pb[e]=pb(e)}));var fb={exports:{}},mb={},hb=x,gb=Symbol.for("react.element"),yb=Symbol.for("react.fragment"),vb=Object.prototype.hasOwnProperty,bb=hb.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,xb={key:!0,ref:!0,__self:!0,__source:!0};function Sb(e,t,n){var r,o={},i=null,a=null;for(r in void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)vb.call(t,r)&&!xb.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:gb,type:e,key:i,ref:a,props:o,_owner:bb.current}}mb.Fragment=yb,mb.jsx=Sb,mb.jsxs=Sb,fb.exports=mb;var Mb=fb.exports;let Cb;"object"==typeof document&&(Cb=Tv({key:"css",prepend:!0}));var wb=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 Mb.jsx(rb,{styles:r})}
|
|
15
15
|
/**
|
|
16
16
|
* @mui/styled-engine v5.16.14
|
|
17
17
|
*
|
|
@@ -91,4 +91,4 @@ System.register(["picasso.js","picasso-plugin-q","hammerjs","qlik-chart-modules"
|
|
|
91
91
|
animation-iteration-count: infinite;
|
|
92
92
|
animation-delay: 200ms;
|
|
93
93
|
}
|
|
94
|
-
`),BC.rippleVisible,KC,550,(({theme:e})=>e.transitions.easing.easeInOut),BC.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),BC.child,BC.childLeaving,GC,550,(({theme:e})=>e.transitions.easing.easeInOut),BC.childPulsate,YC,(({theme:e})=>e.transitions.easing.easeInOut)),ZC=S.forwardRef((function(e,t){const n=VM({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=rl(n,_C),[s,l]=S.useState([]),c=S.useRef(0),u=S.useRef(null);S.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[s]);const d=S.useRef(!1),p=LS(),f=S.useRef(null),m=S.useRef(null),h=S.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;l((e=>[...e,Mb.jsx(JC,{classes:{ripple:$x(o.ripple,BC.ripple),rippleVisible:$x(o.rippleVisible,BC.rippleVisible),ripplePulsate:$x(o.ripplePulsate,BC.ripplePulsate),child:$x(o.child,BC.child),childLeaving:$x(o.childLeaving,BC.childLeaving),childPulsate:$x(o.childPulsate,BC.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},c.current)])),c.current+=1,u.current=a}),[o]),g=S.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=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:m.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(i)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)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):h({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})}),[r,h,p]),y=S.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=S.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{v(e,t)}));f.current=null,l((e=>e.length>0?e.slice(1):e)),u.current=t}),[p]);return S.useImperativeHandle(t,(()=>({pulsate:y,start:g,stop:v})),[y,g,v]),Mb.jsx(XC,Ws({className:$x(BC.root,o.root,i),ref:m},a,{children:Mb.jsx(af,{component:null,exit:!0,children:s})}))}));function QC(e){return Wx("MuiButtonBase",e)}const ew=Ux("MuiButtonBase",["root","disabled","focusVisible"]),tw=["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"],nw=SC("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"},[`&.${ew.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),rw=S.forwardRef((function(e,t){const n=VM({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:y,onFocusVisible:v,onKeyDown:b,onKeyUp:x,onMouseDown:M,onMouseLeave:C,onMouseUp:w,onTouchEnd:k,onTouchMove:E,onTouchStart:T,tabIndex:q=0,TouchRippleProps:L,touchRippleRef:N,type:O}=n,D=rl(n,tw),A=S.useRef(null),R=S.useRef(null),P=kS(R,N),{isFocusVisibleRef:I,onFocus:z,onBlur:j,ref:F}=jS(),[B,_]=S.useState(!1);l&&B&&_(!1),S.useImperativeHandle(r,(()=>({focusVisible:()=>{_(!0),A.current.focus()}})),[]);const[H,$]=S.useState(!1);S.useEffect((()=>{$(!0)}),[]);const V=H&&!c&&!l;function W(e,t,n=u){return wS((r=>{t&&t(r);return!n&&R.current&&R.current[e](r),!0}))}S.useEffect((()=>{B&&d&&!c&&H&&R.current.pulsate()}),[c,d,B,H]);const U=W("start",M),K=W("stop",h),G=W("stop",g),Y=W("stop",w),X=W("stop",(e=>{B&&e.preventDefault(),C&&C(e)})),J=W("start",T),Z=W("stop",k),Q=W("stop",E),ee=W("stop",(e=>{j(e),!1===I.current&&_(!1),f&&f(e)}),!1),te=wS((e=>{A.current||(A.current=e.currentTarget),z(e),!0===I.current&&(_(!0),v&&v(e)),y&&y(e)})),ne=()=>{const e=A.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},re=S.useRef(!1),oe=wS((e=>{d&&!re.current&&B&&R.current&&" "===e.key&&(re.current=!0,R.current.stop(e,(()=>{R.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),b&&b(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!l&&(e.preventDefault(),m&&m(e))})),ie=wS((e=>{d&&" "===e.key&&R.current&&B&&!e.defaultPrevented&&(re.current=!1,R.current.stop(e,(()=>{R.current.pulsate(e)}))),x&&x(e),m&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=s;"button"===ae&&(D.href||D.to)&&(ae=p);const se={};"button"===ae?(se.type=void 0===O?"button":O,se.disabled=l):(D.href||D.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=kS(t,F,A),ce=Ws({},n,{centerRipple:o,component:s,disabled:l,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:q,focusVisible:B}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=FS({root:["root",t&&"disabled",n&&"focusVisible"]},QC,o);return n&&r&&(i.root+=` ${r}`),i})(ce);return Mb.jsxs(nw,Ws({as:ae,className:$x(ue.root,a),ownerState:ce,onBlur:ee,onClick:m,onContextMenu:K,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:U,onMouseLeave:X,onMouseUp:Y,onDragLeave:G,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:l?-1:q,type:O},se,D,{children:[i,V?Mb.jsx(ZC,Ws({ref:P,center:o},L)):null]}))}));function ow(e){return Wx("MuiTypography",e)}Ux("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const iw=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],aw=SC("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${Ib(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Ws({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),sw={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},lw={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},cw=S.forwardRef((function(e,t){const n=VM({props:e,name:"MuiTypography"}),r=(e=>lw[e]||e)(n.color),o=jx(Ws({},n,{color:r})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=sw}=o,f=rl(o,iw),m=Ws({},o,{align:i,color:r,className:a,component:s,gutterBottom:l,noWrap:c,paragraph:u,variant:d,variantMapping:p}),h=s||(u?"p":p[d]||sw[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return FS({root:["root",i,"inherit"!==e.align&&`align${Ib(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},ow,a)})(m);return Mb.jsx(aw,Ws({as:h,ref:t,ownerState:m,className:$x(g.root,a)},f))})),uw=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function dw(e){const t=[],n=[];return Array.from(e.querySelectorAll(uw)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function pw(){return!0}function fw(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=dw,isEnabled:a=pw,open:s}=e,l=S.useRef(!1),c=S.useRef(null),u=S.useRef(null),d=S.useRef(null),p=S.useRef(null),f=S.useRef(!1),m=S.useRef(null),h=kS(t.ref,m),g=S.useRef(null);S.useEffect((()=>{s&&m.current&&(f.current=!n)}),[n,s]),S.useEffect((()=>{if(!s||!m.current)return;const e=SS(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}}),[s]),S.useEffect((()=>{if(!s||!m.current)return;const e=SS(m.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(l.current=!0,u.current&&u.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||l.current)return void(l.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==c.current&&e.activeElement!==u.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==c.current&&e.activeElement!==u.current||(n=i(m.current)),n.length>0){var o,s;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(s=g.current)?void 0:s.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,s,i]);const y=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return Mb.jsxs(S.Fragment,{children:[Mb.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:c,"data-testid":"sentinelStart"}),S.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),Mb.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:u,"data-testid":"sentinelEnd"})]})}const mw=S.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=S.useState(null),s=kS(S.isValidElement(n)?n.ref:null,t);if(vS((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),vS((()=>{if(i&&!o)return CS(t,i),()=>{CS(t,null)}}),[t,i,o]),o){if(S.isValidElement(n)){const e={ref:s};return S.cloneElement(n,e)}return Mb.jsx(S.Fragment,{children:n})}return Mb.jsx(S.Fragment,{children:i?N.createPortal(n,i):i})}));function hw(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function gw(e){return parseInt(MS(e).getComputedStyle(e).paddingRight,10)||0}function yw(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&hw(e,o)}))}function vw(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function bw(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=SS(e);return t.body===e?MS(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(SS(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${gw(r)+e}px`;const t=SS(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${gw(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=SS(r).body;else{const t=r.parentElement,n=MS(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const xw=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&hw(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);yw(t,e.mount,e.modalRef,r,!0);const o=vw(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=vw(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=bw(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=vw(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&hw(e.modalRef,t),yw(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&hw(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Sw(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=xw,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:d}=e,p=S.useRef({}),f=S.useRef(null),m=S.useRef(null),h=kS(m,d),[g,y]=S.useState(!u),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let b=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(b=!1);const x=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),M=()=>{o.mount(x(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},C=wS((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||SS(f.current).body;o.add(x(),e),m.current&&M()})),w=S.useCallback((()=>o.isTopModal(x())),[o]),k=wS((e=>{f.current=e,e&&(u&&w()?M():m.current&&hw(m.current,b))})),E=S.useCallback((()=>{o.remove(x(),b)}),[b,o]);S.useEffect((()=>()=>{E()}),[E]),S.useEffect((()=>{u?C():v&&i||E()}),[u,E,v,i,C]);const T=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},q=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const n=IC(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=Ws({},n,t);return Ws({role:"presentation"},r,{onKeyDown:T(r),ref:h})},getBackdropProps:(e={})=>Ws({"aria-hidden":!0},e,{onClick:q(e),open:u}),getTransitionProps:()=>({onEnter:xS((()=>{y(!1),a&&a()}),null==l?void 0:l.props.onEnter),onExited:xS((()=>{y(!0),s&&s(),i&&E()}),null==l?void 0:l.props.onExited)}),rootRef:h,portalRef:k,isTopModal:w,exited:g,hasTransition:v}}const Mw=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Cw={entering:{opacity:1},entered:{opacity:1}},ww=S.forwardRef((function(e,t){const n=$M(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:c,onEntered:u,onEntering:d,onExit:p,onExited:f,onExiting:m,style:h,timeout:g=r,TransitionComponent:y=Qp}=e,v=rl(e,Mw),b=S.useRef(null),x=kS(b,a.ref,t),M=e=>t=>{if(e){const n=b.current;void 0===t?e(n):e(n,t)}},C=M(d),w=M(((e,t)=>{LC(e);const r=NC({style:h,timeout:g,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)})),k=M(u),E=M(m),T=M((e=>{const t=NC({style:h,timeout:g,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),q=M(f);return Mb.jsx(y,Ws({appear:i,in:l,nodeRef:b,onEnter:w,onEntered:k,onEntering:C,onExit:T,onExited:q,onExiting:E,addEndListener:e=>{o&&o(b.current,e)},timeout:g},v,{children:(e,t)=>S.cloneElement(a,Ws({style:Ws({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},Cw[e],h,a.props.style),ref:x},t))}))}));function kw(e){return Wx("MuiBackdrop",e)}Ux("MuiBackdrop",["root","invisible"]);const Ew=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Tw=SC("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Ws({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),qw=S.forwardRef((function(e,t){var n,r,o;const i=VM({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:c={},componentsProps:u={},invisible:d=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=ww,transitionDuration:g}=i,y=rl(i,Ew),v=Ws({},i,{component:l,invisible:d}),b=(e=>{const{classes:t,invisible:n}=e;return FS({root:["root",n&&"invisible"]},kw,t)})(v),x=null!=(n=f.root)?n:u.root;return Mb.jsx(h,Ws({in:p,timeout:g},y,{children:Mb.jsx(Tw,Ws({"aria-hidden":!0},x,{as:null!=(r=null!=(o=m.root)?o:c.Root)?r:l,className:$x(b.root,s,null==x?void 0:x.className),ownerState:Ws({},v,null==x?void 0:x.ownerState),classes:b,ref:t,children:a}))}))}));function Lw(e){return Wx("MuiButton",e)}const Nw=Ux("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"]),Ow=S.createContext({}),Dw=S.createContext(void 0),Aw=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Rw=e=>Ws({},"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}}),Pw=SC(rw,{shouldForwardProp:e=>xC(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Ib(n.color)}`],t[`size${Ib(n.size)}`],t[`${n.variant}Size${Ib(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return Ws({},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":Ws({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:iM(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})`:iM(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})`:iM(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:i,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":Ws({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Nw.focusVisible}`]:Ws({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Nw.disabled}`]:Ws({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 ${iM(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:o,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"},[`&.${Nw.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Nw.disabled}`]:{boxShadow:"none"}})),Iw=SC("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Ib(n.size)}`]]}})((({ownerState:e})=>Ws({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Rw(e)))),zw=SC("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Ib(n.size)}`]]}})((({ownerState:e})=>Ws({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Rw(e)))),jw=S.forwardRef((function(e,t){const n=S.useContext(Ow),r=S.useContext(Dw),o=VM({props:gS(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:m=!1,size:h="medium",startIcon:g,type:y,variant:v="text"}=o,b=rl(o,Aw),x=Ws({},o,{color:a,component:s,disabled:c,disableElevation:u,disableFocusRipple:d,fullWidth:m,size:h,type:y,variant:v}),M=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return Ws({},a,FS({root:["root",i,`${i}${Ib(t)}`,`size${Ib(o)}`,`${i}Size${Ib(o)}`,`color${Ib(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Ib(o)}`],endIcon:["icon","endIcon",`iconSize${Ib(o)}`]},Lw,a))})(x),C=g&&Mb.jsx(Iw,{className:M.startIcon,ownerState:x,children:g}),w=p&&Mb.jsx(zw,{className:M.endIcon,ownerState:x,children:p}),k=r||"";return Mb.jsxs(Pw,Ws({ownerState:x,className:$x(n.className,M.root,l,k),component:s,disabled:c,focusRipple:!d,focusVisibleClassName:$x(M.focusVisible,f),ref:t,type:y},b,{classes:M,children:[C,i,w]}))}));function Fw(e){return Wx("MuiModal",e)}Ux("MuiModal",["root","hidden","backdrop"]);const Bw=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],_w=SC("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>Ws({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Hw=SC(qw,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),$w=S.forwardRef((function(e,t){var n,r,o,i,a,s;const l=VM({name:"MuiModal",props:e}),{BackdropComponent:c=Hw,BackdropProps:u,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:y={},disableAutoFocus:v=!1,disableEnforceFocus:b=!1,disableEscapeKeyDown:x=!1,disablePortal:M=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:k=!1,keepMounted:E=!1,onBackdropClick:T,open:q,slotProps:L,slots:N}=l,O=rl(l,Bw),D=Ws({},l,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:b,disableEscapeKeyDown:x,disablePortal:M,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:k,keepMounted:E}),{getRootProps:A,getBackdropProps:R,getTransitionProps:P,portalRef:I,isTopModal:z,exited:j,hasTransition:F}=Sw(Ws({},D,{rootRef:t})),B=Ws({},D,{exited:j}),_=(e=>{const{open:t,exited:n,classes:r}=e;return FS({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Fw,r)})(B),H={};if(void 0===f.props.tabIndex&&(H.tabIndex="-1"),F){const{onEnter:e,onExited:t}=P();H.onEnter=e,H.onExited=t}const $=null!=(n=null!=(r=null==N?void 0:N.root)?r:g.Root)?n:_w,V=null!=(o=null!=(i=null==N?void 0:N.backdrop)?i:g.Backdrop)?o:c,W=null!=(a=null==L?void 0:L.root)?a:y.root,U=null!=(s=null==L?void 0:L.backdrop)?s:y.backdrop,K=FC({elementType:$,externalSlotProps:W,externalForwardedProps:O,getSlotProps:A,additionalProps:{ref:t,as:h},ownerState:B,className:$x(d,null==W?void 0:W.className,null==_?void 0:_.root,!B.open&&B.exited&&(null==_?void 0:_.hidden))}),G=FC({elementType:V,externalSlotProps:U,additionalProps:u,getSlotProps:e=>R(Ws({},e,{onClick:t=>{T&&T(t),null!=e&&e.onClick&&e.onClick(t)}})),className:$x(null==U?void 0:U.className,null==u?void 0:u.className,null==_?void 0:_.backdrop),ownerState:B});return E||q||F&&!j?Mb.jsx(mw,{ref:I,container:m,disablePortal:M,children:Mb.jsxs($,Ws({},K,{children:[!k&&c?Mb.jsx(V,Ws({},G)):null,Mb.jsx(fw,{disableEnforceFocus:b,disableAutoFocus:v,disableRestoreFocus:C,isEnabled:z,open:q,children:S.cloneElement(f,H)})]}))}):null}));function Vw(e){return Wx("MuiDivider",e)}Ux("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const Ww=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Uw=SC("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>Ws({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:iM(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>Ws({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>Ws({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>Ws({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>Ws({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Kw=SC("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Ws({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),Gw=S.forwardRef((function(e,t){const n=VM({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:c="horizontal",role:u=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=rl(n,Ww),m=Ws({},n,{absolute:r,component:a,flexItem:s,light:l,orientation:c,role:u,textAlign:d,variant:p}),h=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return FS({root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},Vw,r)})(m);return Mb.jsx(Uw,Ws({as:a,className:$x(h.root,i),role:u,ref:t,ownerState:m},f,{children:o?Mb.jsx(Kw,{className:h.wrapper,ownerState:m,children:o}):null}))}));Gw.muiSkipListHighlight=!0;const Yw=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Xw(e){return`scale(${e}, ${e**2})`}const Jw={entering:{opacity:1,transform:Xw(1)},entered:{opacity:1,transform:"none"}},Zw="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Qw=S.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:s,onEntered:l,onEntering:c,onExit:u,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:h=Qp}=e,g=rl(e,Yw),y=LS(),v=S.useRef(),b=$M(),x=S.useRef(null),M=kS(x,o.ref,t),C=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},w=C(c),k=C(((e,t)=>{LC(e);const{duration:n,delay:r,easing:o}=NC({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=b.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=n,e.style.transition=[b.transitions.create("opacity",{duration:a,delay:r}),b.transitions.create("transform",{duration:Zw?a:.666*a,delay:r,easing:o})].join(","),s&&s(e,t)})),E=C(l),T=C(p),q=C((e=>{const{duration:t,delay:n,easing:r}=NC({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=b.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[b.transitions.create("opacity",{duration:o,delay:n}),b.transitions.create("transform",{duration:Zw?o:.666*o,delay:Zw?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=Xw(.75),u&&u(e)})),L=C(d);return Mb.jsx(h,Ws({appear:r,in:a,nodeRef:x,onEnter:k,onEntered:E,onEntering:w,onExit:q,onExited:L,onExiting:T,addEndListener:e=>{"auto"===m&&y.start(v.current||0,e),n&&n(x.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>S.cloneElement(o,Ws({style:Ws({opacity:0,transform:Xw(.75),visibility:"exited"!==e||a?void 0:"hidden"},Jw[e],f,o.props.style),ref:M},t))}))}));Qw.muiSupportAuto=!0;const ek=S.createContext({});function tk(e){return Wx("MuiList",e)}Ux("MuiList",["root","padding","dense","subheader"]);const nk=["children","className","component","dense","disablePadding","subheader"],rk=SC("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>Ws({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),ok=S.forwardRef((function(e,t){const n=VM({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=n,c=rl(n,nk),u=S.useMemo((()=>({dense:a})),[a]),d=Ws({},n,{component:i,dense:a,disablePadding:s}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return FS({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},tk,t)})(d);return Mb.jsx(ek.Provider,{value:u,children:Mb.jsxs(rk,Ws({as:i,className:$x(p.root,o),ref:t,ownerState:d},c,{children:[l,r]}))})}));function ik(e){return Wx("MuiListItemButton",e)}const ak=Ux("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),sk=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],lk=SC(rw,{shouldForwardProp:e=>xC(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})=>Ws({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"}},[`&.${ak.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:iM(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ak.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:iM(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ak.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:iM(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})`:iM(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ak.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ak.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}))),ck=S.forwardRef((function(e,t){const n=VM({props:e,name:"MuiListItemButton"}),{alignItems:r="center",autoFocus:o=!1,component:i="div",children:a,dense:s=!1,disableGutters:l=!1,divider:c=!1,focusVisibleClassName:u,selected:d=!1,className:p}=n,f=rl(n,sk),m=S.useContext(ek),h=S.useMemo((()=>({dense:s||m.dense||!1,alignItems:r,disableGutters:l})),[r,m.dense,s,l]),g=S.useRef(null);vS((()=>{o&&g.current&&g.current.focus()}),[o]);const y=Ws({},n,{alignItems:r,dense:h.dense,disableGutters:l,divider:c,selected:d}),v=(e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:a,selected:s}=e;return Ws({},n,FS({root:["root",r&&"dense",!i&&"gutters",a&&"divider",o&&"disabled","flex-start"===t&&"alignItemsFlexStart",s&&"selected"]},ik,n))})(y),b=kS(g,t);return Mb.jsx(ek.Provider,{value:h,children:Mb.jsx(lk,Ws({ref:b,href:f.href||f.to,component:(f.href||f.to)&&"div"===i?"button":i,focusVisibleClassName:$x(v.focusVisible,u),ownerState:y,className:$x(v.root,p)},f,{classes:v,children:a}))})}));function uk(e){return Wx("MuiListItemIcon",e)}Ux("MuiListItemIcon",["root","alignItemsFlexStart"]);const dk=["className"],pk=SC("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})=>Ws({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),fk=S.forwardRef((function(e,t){const n=VM({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=rl(n,dk),i=Ws({},n,{alignItems:S.useContext(ek).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return FS({root:["root","flex-start"===t&&"alignItemsFlexStart"]},uk,n)})(i);return Mb.jsx(pk,Ws({className:$x(a.root,r),ownerState:i,ref:t},o))}));function mk(e){return Wx("MuiListItemText",e)}const hk=Ux("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),gk=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],yk=SC("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${hk.primary}`]:t.primary},{[`& .${hk.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})((({ownerState:e})=>Ws({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56}))),vk=S.forwardRef((function(e,t){const n=VM({props:e,name:"MuiListItemText"}),{children:r,className:o,disableTypography:i=!1,inset:a=!1,primary:s,primaryTypographyProps:l,secondary:c,secondaryTypographyProps:u}=n,d=rl(n,gk),{dense:p}=S.useContext(ek);let f=null!=s?s:r,m=c;const h=Ws({},n,{disableTypography:i,inset:a,primary:!!f,secondary:!!m,dense:p}),g=(e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return FS({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},mk,t)})(h);return null==f||f.type===cw||i||(f=Mb.jsx(cw,Ws({variant:p?"body2":"body1",className:g.primary,component:null!=l&&l.variant?void 0:"span",display:"block"},l,{children:f}))),null==m||m.type===cw||i||(m=Mb.jsx(cw,Ws({variant:"body2",className:g.secondary,color:"text.secondary",display:"block"},u,{children:m}))),Mb.jsxs(yk,Ws({className:$x(g.root,o),ownerState:h,ref:t},d,{children:[f,m]}))}));function bk(e){return Wx("MuiPopover",e)}Ux("MuiPopover",["root","paper"]);const xk=["onEntering"],Sk=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Mk=["slotProps"];function Ck(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function wk(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function kk(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Ek(e){return"function"==typeof e?e():e}const Tk=SC($w,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),qk=SC(RC,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Lk=S.forwardRef((function(e,t){var n,r,o;const i=VM({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:u="anchorEl",children:d,className:p,container:f,elevation:m=8,marginThreshold:h=16,open:g,PaperProps:y={},slots:v,slotProps:b,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:M=Qw,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:k=!1}=i,E=rl(i.TransitionProps,xk),T=rl(i,Sk),q=null!=(n=null==b?void 0:b.paper)?n:y,L=S.useRef(),N=kS(L,q.ref),O=Ws({},i,{anchorOrigin:l,anchorReference:u,elevation:m,marginThreshold:h,externalPaperSlotProps:q,transformOrigin:x,TransitionComponent:M,transitionDuration:C,TransitionProps:E}),D=(e=>{const{classes:t}=e;return FS({root:["root"],paper:["paper"]},bk,t)})(O),A=S.useCallback((()=>{if("anchorPosition"===u)return c;const e=Ek(s),t=(e&&1===e.nodeType?e:SS(L.current).body).getBoundingClientRect();return{top:t.top+Ck(t,l.vertical),left:t.left+wk(t,l.horizontal)}}),[s,l.horizontal,l.vertical,c,u]),R=S.useCallback((e=>({vertical:Ck(e,x.vertical),horizontal:wk(e,x.horizontal)})),[x.horizontal,x.vertical]),P=S.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=R(t);if("none"===u)return{top:null,left:null,transformOrigin:kk(n)};const r=A();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,l=i+t.width,c=MS(Ek(s)),d=c.innerHeight-h,p=c.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,n.vertical+=e}else if(null!==h&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==h&&i<h){const e=i-h;i-=e,n.horizontal+=e}else if(l>p){const e=l-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:kk(n)}}),[s,u,A,R,h]),[I,z]=S.useState(g),j=S.useCallback((()=>{const e=L.current;if(!e)return;const t=P(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,z(!0)}),[P]);S.useEffect((()=>(k&&window.addEventListener("scroll",j),()=>window.removeEventListener("scroll",j))),[s,k,j]);S.useEffect((()=>{g&&j()})),S.useImperativeHandle(a,(()=>g?{updatePosition:()=>{j()}}:null),[g,j]),S.useEffect((()=>{if(!g)return;const e=function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}((()=>{j()})),t=MS(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,g,j]);let F=C;"auto"!==C||M.muiSupportAuto||(F=void 0);const B=f||(s?SS(Ek(s)).body:void 0),_=null!=(r=null==v?void 0:v.root)?r:Tk,H=null!=(o=null==v?void 0:v.paper)?o:qk,$=FC({elementType:H,externalSlotProps:Ws({},q,{style:I?q.style:Ws({},q.style,{opacity:0})}),additionalProps:{elevation:m,ref:N},ownerState:O,className:$x(D.paper,null==q?void 0:q.className)}),V=FC({elementType:_,externalSlotProps:(null==b?void 0:b.root)||{},externalForwardedProps:T,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:B,open:g},ownerState:O,className:$x(D.root,p)}),{slotProps:W}=V,U=rl(V,Mk);return Mb.jsx(_,Ws({},U,!PC(_)&&{slotProps:W,disableScrollLock:k},{children:Mb.jsx(M,Ws({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),j()},onExited:()=>{z(!1)},timeout:F},E,{children:Mb.jsx(H,Ws({},$,{children:d}))}))}))}));function Nk(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ok(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Dk(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,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");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 Ak(){return Ak=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ak.apply(null,arguments)}function Rk(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 Pk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rk(Object(n),!0).forEach((function(t){Dk(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rk(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ik(){Ik=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof g?t:g,a=Object.create(i.prototype),s=new L(r||[]);return o(a,"_invoke",{value:k(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=u;var p="suspendedStart",f="executing",m="completed",h={};function g(){}function y(){}function v(){}var b={};c(b,a,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(N([])));S&&S!==n&&r.call(S,a)&&(b=S);var M=v.prototype=g.prototype=Object.create(b);function C(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function n(o,i,a,s){var l=d(e[o],e,i);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==typeof u&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function k(t,n,r){var o=p;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=E(s,r);if(l){if(l===h)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=f;var c=d(t,n,r);if("normal"===c.type){if(o=r.done?m:"suspendedYield",c.arg===h)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function E(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,E(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,h;var a=i.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,h):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function T(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 q(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,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 o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(typeof t+" is not iterable")}return y.prototype=v,o(M,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:y,configurable:!0}),y.displayName=c(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,c(e,l,"GeneratorFunction")),e.prototype=Object.create(M),e},t.awrap=function(e){return{__await:e}},C(w.prototype),c(w.prototype,s,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new w(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(M),c(M,l,"Generator"),c(M,a,(function(){return this})),c(M,"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,L.prototype={constructor:L,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(q),!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 o(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):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),h},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),q(n),h}},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 o=r.arg;q(n)}return o}}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),h}},t}function zk(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,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||Bk(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 jk(e){return function(e){if(Array.isArray(e))return Nk(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Bk(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 Fk(e){return Fk="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},Fk(e)}function Bk(e,t){if(e){if("string"==typeof e)return Nk(e,t);var n={}.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)?Nk(e,t):void 0}}var _k=function(e){var t=e.className,n=e.title,r=e.path,o=e.fillRule;return x.createElement(qC,{className:t,viewBox:"0 0 16 16",fontSize:"small",role:"img",style:{height:12,width:12}},x.createElement("path",{d:r}),n?x.createElement("title",null,n):void 0,o?x.createElement("use",{fillRule:o}):void 0)},Hk={STYLE:{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)"}}}},$k={L:new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),R:new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞יִײַ-ﬨשׁ-ﭏ]"),AL:new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]")},Vk=function(e){return $k.R.test(e)||$k.AL.test(e)};function Wk(e){for(var t,n,r=e?e.length:0,o=0;o<r;o++){if(n=t=e[o],$k.L.test(n))return"ltr";if(Vk(t))return"rtl"}return"ltr"}var Uk,Kk,Gk=SC(jw,{shouldForwardProp:function(e){return"direction"!==e&&"padding"!==e&&"styling"!==e}})((function(e){var t=e.direction,n=e.padding,r=e.styling,o=r.fontSize,i=r.fontFamily,a=r.color;return{fontWeight:"normal",lineHeight:"normal",fontSize:o,fontFamily:i,color:a,height:"100%",minWidth:"0px",maxWidth:"640px",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}}})),Yk=SC((function(e){var t=e.className;return x.createElement(_k,{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:Hk.STYLE.ICONS.COLOR.SECONDARY,marginTop:"1px"}})),Xk=SC((function(e){var t=e.className;return x.createElement(_k,{className:t,path:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})}))((function(){return{color:Hk.STYLE.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:Hk.STYLE.ICONS.COLOR.DISABLED,opacity:.6}}})),Jk=function(e){var t=e.isOpen,n=e.onClick,r=e.popoverId,o=e.source,i=o.styling,a=o.info.text,s=o.layout.direction,l=o.meta,c=l.allowed,u=l.hasAlternatives,d=l.hasCyclic,p=l.hasMultiple,f=l.index,m=l.isCyclic,h=l.isLocked,g=o.resources.translator,y=o.services.focus,v=o.settings.isDisabled,b=o.state.inSelections,S=!(!c.change||!u),M=!(!c.reload||!m),C=(S||M)&&!b&&!v(),w={pointerEvents:C?"auto":"none"},k=function(e){var t=e.allowed,n=e.canChange,r=e.canReload,o=e.direction,i=e.hasCyclic,a=e.isLocked,s={top:"8px",right:"6px",bottom:"8px",left:"6px"};if(!e.hasMultiple)return"".concat(s.top," ").concat(s.right," ").concat(s.bottom," ").concat(s.left);var l=i&&t.reload;return"ltr"===o&&(a?s.left="0px":r||!n&&l?s.left="4px":n||(s.left="2px"),n||r||(s.right="0px")),"rtl"===o&&(a?s.right="0px":r||!n&&l?s.right="4px":n||(s.right="2px"),n||r||(s.left="0px")),"".concat(s.top," ").concat(s.right," ").concat(s.bottom," ").concat(s.left)}({allowed:c,canChange:S,canReload:M,direction:s,hasCyclic:d,hasMultiple:p,isLocked:h}),E=Dk(Dk({},"rtl"===s?"endIcon":"startIcon",h&&x.createElement(Yk,{height:12})),"rtl"===s?"startIcon":"endIcon",(S||M)&&x.createElement(Xk,{className:"".concat(b||v()?"disabled":"")})),T=L(),N=L();q((function(){t||y.shouldFor(f)&&(T.current.focus(),N.current.focusVisible())}));var O=Wk(a),D="Accessibility.".concat(C?"Alternative":"Normal",".Instructions");return x.createElement(Gk,Ak({action:N,"aria-describedby":r,"aria-label":g.get(D),color:"inherit",direction:s,disabled:!C||v()||b,onClick:function(e){C&&n(e)},padding:k,ref:T,style:w,styling:i.title,title:a},E),x.createElement("span",{dir:O,style:Hk.STYLE.ELLIPSIS},a))},Zk=function(e){var t=e.className,n=e.title;return x.createElement(_k,{className:t,title:n,path:"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"})},Qk=SC(jw,{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e&&"styling"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast,o=e.styling.color;return{fontWeight:"normal",lineHeight:"normal",color:o,height:"24px",width:"24px",padding:0,marginLeft:"ltr"!==t||n?void 0:"4px",marginRight:"rtl"!==t||r?void 0:"4px","&:disabled":{color:o,opacity:1}}})),eE=SC(Zk,{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast;return{color:Hk.STYLE.ICONS.COLOR.PRIMARY,marginTop:"1px",marginLeft:"ltr"!==t||n?void 0:"4px",marginRight:"rtl"!==t||r?void 0:"4px"}})),tE=SC((function(e){var t=e.className,n=e.title;return x.createElement(_k,{className:t,title:n,path:"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"})}),{})((function(){return{color:Hk.STYLE.ICONS.COLOR.SECONDARY,"&.disabled":{color:Hk.STYLE.ICONS.COLOR.DISABLED}}})),nE=function(e){var t=e.source;if(!t.meta.isCyclic)return null;var n=zk(T(!1),2),r=n[0],o=n[1],i=t.styling,a=t.action.stepCycle,s=t.info,l=s.position,c=s.tooltip,u=t.layout.direction,d=t.meta,p=d.allowed,f=d.isFirst,m=d.isLast,h=t.settings.isDisabled,g=t.state.inSelections;return q((function(){r&&o(!1)}),[l]),p.reload?x.createElement(Qk,{direction:u,disabled:r||g||h(),isFirst:f,isLast:m,onClick:function(){return o(!0),void a()},styling:i.title,title:c,variant:"outlined"},x.createElement(tE,{className:"".concat(r||g||h()?"disabled":"")})):x.createElement(eE,{direction:u,isFirst:f,isLast:m,style:{flexShrink:0},title:c})},rE=function(e){var t=e.className,n=e.title;return x.createElement(_k,{className:t,title:n,path:"M7 4h9v1H7V4ZM9 8h7v1H9V8ZM11 12h5v1h-5v-1ZM1 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.5V4h1Z"})},oE=SC(jw,{shouldForwardProp:function(e){return"styling"!==e}})((function(e){var t=e.styling,n=t.fontSize,r=t.fontFamily,o=t.color;return{fontWeight:"normal",lineHeight:"normal",fontSize:n,fontFamily:r,color:o,padding:"0px 5px",height:"100%",minWidth:"45px","&:disabled":{color:o}}})),iE={color:Hk.STYLE.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:Hk.STYLE.ICONS.COLOR.DISABLED}},aE=SC((function(e){var t=e.className;return x.createElement(_k,{className:t,path:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5 8.5 8z"})}))((function(){return iE})),sE=SC((function(e){var t=e.className;return x.createElement(_k,{className:t,path:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))((function(){return iE})),lE=SC(rE,{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast;return{color:Hk.STYLE.ICONS.COLOR.PRIMARY,marginTop:"1px",marginLeft:"ltr"!==t||n?void 0:"4px",marginRight:"rtl"!==t||r?void 0:"4px"}})),cE=function(e){var t=e.source;if(!t.meta.isDrillDown)return null;var n=t.styling,r=t.action.drillUp,o=t.info,i=o.breadcrumbs,a=o.tooltip,s=t.layout.direction,l=t.meta,c=l.isFirst,u=l.isLast,d=t.settings.isDisabled,p=t.state.inSelections,f=d()||p?"disabled":null,m=Dk({},"rtl"===s?"startIcon":"endIcon","rtl"===s?x.createElement(sE,{className:f}):x.createElement(aE,{className:f})),h=i.map((function(e,t){var o=Wk(e);return x.createElement(oE,Ak({disabled:d()||p,key:"breadcrumb-".concat(e),onClick:function(){return function(e){r({steps:i.length-e})}(t)},styling:n.title,title:e},m),x.createElement("span",{dir:o,style:Hk.STYLE.ELLIPSIS},e))}));return x.createElement(x.Fragment,null,"rtl"===s?h.reverse():void 0,x.createElement(lE,{direction:s,isFirst:c,isLast:u,style:{flexShrink:0},title:a}),"rtl"===s?void 0:h)},uE=SC(ck,{shouldForwardProp:function(e){return"nested"!==e&&"rtl"!==e}})((function(e){var t=e.nested,n=e.rtl;return{padding:"4px ".concat(t&&n?"32px":"16px"," 4px ").concat(t&&!n?"32px":"16px"),"&:focus":Pk({},Hk.STYLE.FOCUS)}})),dE=SC(fk)((function(){return{marginRight:0,justifyContent:"center"}})),pE=SC((function(e){var t=e.className;return x.createElement(_k,{className:t,path:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2 3 3Z"})}))((function(){return{color:Hk.STYLE.ICONS.COLOR.SECONDARY}})),fE=SC(Zk)((function(){return{color:Hk.STYLE.ICONS.COLOR.SECONDARY}})),mE=SC(rE)((function(){return{color:Hk.STYLE.ICONS.COLOR.SECONDARY,fontWeight:600}})),hE=function(e){var t=e.id,n=e.meta,r=e.nested,o=e.onClick,i=e.selected,a=e.source,s=e.text,l=a.styling,c=a.settings.isRTL,u=Pk({fontWeight:!n||n.isNormal?"normal":600,lineHeight:"normal",fontSize:l.popover.fontSize,fontFamily:l.popover.fontFamily,color:l.popover.color,textAlign:c?"end":"start"},Hk.STYLE.ELLIPSIS),d=Wk(s),p=x.createElement(dE,{sx:c?{paddingRight:"12px"}:{paddingLeft:"12px"}},function(e){var t=e.meta;return e.selected?x.createElement(pE,{height:12}):null!=t&&t.isCyclic?x.createElement(fE,{height:12}):null!=t&&t.isDrillDown?x.createElement(mE,{height:12}):void 0}({meta:n,selected:i}));return x.createElement(x.Fragment,{key:t},x.createElement(uE,{autoFocus:i,nested:r,onClick:function(e){return null==o?void 0:o(e)},rtl:c,title:s},c&&p,x.createElement(vk,{dir:d,primaryTypographyProps:{style:u}},s),!c&&p))},gE=SC(Gw)((function(){return{marginTop:"-1px"}})),yE=function(e){var t=e.anchor,n=e.id,r=e.onClose,o=e.open,i=e.source,a=i.action,s=a.changeTo,l=a.drillUp,c=a.setActiveField,u=i.info,d=u.breadcrumbs,p=u.group,f=u.id,m=u.text,h=i.data.alternatives,g=i.meta,y=g.index,v=g.isCyclic,b=g.isDrillDown,S=i.resources.translator,M=i.services.focus,C={isChanging:!1},w=L(),k=function(){var e,t=document.activeElement;null!=w&&null!==(e=w.current)&&void 0!==e&&e.contains(t)&&t.blur(),r()},E=v||b,T=x.createElement(hE,{id:f,key:f,meta:i.meta,onClick:k,selected:!E,source:i,text:E?p.name:m}),q=E&&p.items.map((function(e){return x.createElement(hE,{id:e.id,nested:!0,onClick:function(t){return function(e,t){C.isChanging||(C.isChanging=!0,"keydown"!==e.type&&"keyup"!==e.type||M.queueFor(y),v&&c({fieldIndex:t.index}),b&&l({steps:d.length-t.index}))}(t,e)},selected:e.current,source:i,text:e.text})})),N=h.map((function(e,t){return x.createElement(x.Fragment,{key:e.id},x.createElement(hE,{id:e.id,key:e.id,meta:e.meta,onClick:function(t){return n=t,r=e.id,void(C.isChanging||(C.isChanging=!0,"keydown"!==n.type&&"keyup"!==n.type||M.queueFor(y),s({id:r})));var n,r},source:i,text:e.text}),t<h.length-1&&x.createElement(gE,{key:"divider-".concat(e.id)}))}));return x.createElement(Lk,{anchorEl:t,anchorOrigin:{vertical:"top",horizontal:"center"},disableRestoreFocus:!0,id:n,onClose:k,open:o,ref:w,slotProps:{paper:{style:{minWidth:"250px",maxWidth:"640px",maxHeight:"300px"}}},transformOrigin:{vertical:"bottom",horizontal:"center"}},x.createElement(ok,{"aria-label":S.get("Accessibility.Popover.Instructions"),dense:!0},T,q,x.createElement(gE,{key:"divider-".concat(f)}),N))},vE=function(e){var t=e.source,n=zk(T(null),2),r=n[0],o=n[1],i={id:r?"alternatives-popover":void 0,isOpen:Boolean(r)},a=t.layout.direction,s=t.meta.index,l=t.services.focus,c=function(){o(null)};q((function(){i.isOpen&&c()}),[t.info.key]);var u=x.createElement(nE,{source:t}),d=x.createElement(cE,{source:t});return x.createElement(x.Fragment,null,"rtl"===a?void 0:d,"rtl"===a?void 0:u,x.createElement(Jk,{onClick:function(e){var t=e.currentTarget;t.classList.contains("qcm-focus-visible")&&l.queueFor(s),o(t)},isOpen:i.isOpen,popoverId:i.id,source:t}),x.createElement(yE,{anchor:r,id:i.id,onClose:c,open:i.isOpen,source:t}),"rtl"===a?d:void 0,"rtl"===a?u:void 0)};var bE=function(){if(Kk)return Uk;Kk=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return Uk=function e(){var t,n,r,l,c,u,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(m&&l&&(i(l)||(c=o(l)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&i(r)?r:{},a(d,{name:n,newValue:e(m,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},Uk}(),xE=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(bE);function SE(e){var t=e.model,n=e.properties;return t.modifiers?t.modifiers.apply({model:t,properties:n}):Promise.resolve()}function ME(e){return Array.isArray(e)}function CE(e){return null!=e&&!Array.isArray(e)&&"object"===Fk(e)}function wE(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function kE(e){return void 0===e}function EE(e,t){if(CE(e)&&CE(t)){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n=Object.keys(e),r=0,o=n.length;r<o;r+=1)if(!EE(e[n[r]],t[n[r]]))return!1;return!0}if(ME(e)&&ME(t)){if(e.length!==t.length)return!1;for(var i=0,a=e.length;i<a;i+=1)if(!EE(e[i],t[i]))return!1;return!0}return e===t}function TE(e){var t=e.oldData,n=void 0===t?{}:t,r=e.newData,o=void 0===r?{}:r,i=e.basePath,a=void 0===i?"":i,s=[];return Object.keys(o).forEach((function(e){var t=function(e){return e?xE(!0,{},{value:e}).value:e}(o[e]),r=n[e],i="".concat(a,"/").concat(e);EE(t,r)||wE(o,e)||(kE(r)?s.push({op:"add",path:i,value:t}):CE(t)&&CE(r)?s.push.apply(s,jk(TE({oldData:r,newData:t,basePath:i}))):ME(t)&&ME(r)?s.push.apply(s,jk(function(e){var t=e.newArray,n=e.basePath,r=[];return EE(t,e.oldArray.slice())||(!kE(t[0])&&kE(t[0].qInfo)||0===t.length)&&r.push({op:"replace",path:n,value:t}),r}({oldArray:r,newArray:t,basePath:i}))):s.push({op:"replace",path:i,value:t}))})),Object.keys(n).forEach((function(e){kE(o[e])&&!wE(n,e)&&s.push({op:"remove",path:"".concat(a,"/").concat(e)})})),s}function qE(e){var t=e.model,n=TE({oldData:e.oldProperties,newData:e.newProperties});null!=t&&t.applyPatches&&null!=n&&n.length&&t.applyPatches(n.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),!0)}function LE(e){return NE.apply(this,arguments)}function NE(){return(NE=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Ok(i,r,o,a,s,"next",e)}function s(e){Ok(i,r,o,a,s,"throw",e)}a(void 0)}))}}(Ik().mark((function e(t){var n,r,o,i,a,s,l,c,u,d,p,f;return Ik().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.from,r=t.to,o=t.model,i=t.container,a=t.skipAttributeExpressions,s=t.onChange,o){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,o.getEffectiveProperties();case 5:return l=e.sent,c=l.qHyperCubeDef[i].findIndex((function(e){return e.qDef.cId===n})),u=l.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[i].findIndex((function(e){return e.qDef.cId===r})),d=xE(!0,{},l),p=d.qHyperCubeDef[i][c],(f=d.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[i][u]).qAttributeDimensions=p.qAttributeDimensions,p.qAttributeDimensions=[],a||(f.qAttributeExpressions=p.qAttributeExpressions,p.qAttributeExpressions=[]),d.qHyperCubeDef[i][c]=f,d.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[i][u]=p,s({fromItem:p,toItem:f,oldProperties:l,newProperties:d,model:o}),e.next=19,SE({model:o,properties:d});case 19:o.colorSupport&&o.colorSupport.colorByUpdater(d,"qHyperCubeDef."),qE({model:o,oldProperties:l,newProperties:d});case 21:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function OE(e){var t=e.callbacks,n=e.data,r=e.resources,o=e.settings,i=t.onChange,a=n.infos,s=r.app,l=r.model,c=r.translator,u=o.skipAttributeExpressions;return a.map((function(e,t){var n=e.cId,r=e.qGrouping,o=e.qGroupFallbackTitles,a=e.qGroupPos,d=e.qFallbackTitle,p=e.qLocked,f=e.title,m="C"===r,h="H"===r,g="N"===r,y="number"==typeof e.explicitColumn?e.explicitColumn:t,v=function(t,n){m&&s&&s.getDimension&&s.getDimension(e.qLibraryId).then((function(e){null==e||e[t](n)})).catch((function(){}))};return{meta:{isCyclic:m,isDrillDown:h,isLocked:!!p,isNormal:g},info:{id:n,key:"".concat(n,"-").concat(a),text:g?d:o[a],position:a,breadcrumbs:o.slice(0,e.qGroupPos),group:{name:f,items:o.slice(0,h?e.qGroupPos+1:o.length).map((function(e,t){return{id:"".concat(n,"-item-").concat(t),text:e,current:a===t,index:t}}))},tooltip:g?void 0:c.get(m?"Tooltip.dimensions.cyclic":"Tooltip.dimensions.drilldown")},action:{changeTo:function(e){var t=e.id;return LE({from:n,to:t,container:"qDimensions",model:l,skipAttributeExpressions:u,onChange:i})},drillUp:function(e){var t=e.steps;h&&l&&(null==l||l.drillUp("/qHyperCubeDef",y,t))},stepCycle:function(){return v("stepCycle",1)},setActiveField:function(e){var t=e.fieldIndex;return v("setActiveField",t)}}}}))}function DE(e){var t=e.callbacks,n=e.data,r=e.resources,o=e.settings,i=t.onChange,a=n.infos,s=r.model,l=o.skipAttributeExpressions;return a.map((function(e){var t=e.cId,n=e.qFallbackTitle;return{meta:{isNormal:!0},info:{id:t,key:t,text:n},action:{changeTo:function(e){var n=e.id;return LE({from:t,to:n,container:"qMeasures",model:s,skipAttributeExpressions:l,onChange:i})}}}}))}function AE(e){var t=e.callbacks,n=e.data,r=e.dock,o=e.key,i=e.rect,a=e.resources,s=e.settings,l=e.state,c=e.styling,u=function(e){var t=e.dock,n=e.rect,r={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",height:"100%"};return"left"!==t&&"right"!==t||(r.width="".concat(n.height,"px"),r.height="".concat(n.width,"px"),r.transformOrigin="top left"),"left"===t&&(r.transform="rotate(-90deg) translate(-".concat(n.height,"px, 0)")),"right"===t&&(r.transform="rotate(90deg) translate(0, -".concat(n.width,"px)")),r}({dock:r,rect:i}),d=function(e){var t=e.callbacks,n=e.data,r=e.dock,o=e.key,i=e.resources,a=e.settings,s=e.state,l=e.styling,c=n.alternatives,u=n.infos,d=i.app,p=i.cache,f=i.model,m=a.forceAllowChange,h=a.isRTL,g=a.isSnapshot,y=a.type,v=function(e){var t=e.dock;return"top"!==t&&"bottom"!==t||!e.isRTL?"ltr":"rtl"}({dock:r,isRTL:h}),b=function(e){var t=e.cache,n="axis-title-auto-focus_"+e.key;return{queueFor:function(e){var r;return null==t||null===(r=t.set)||void 0===r?void 0:r.call(t,n,{focus:!0,index:e})},shouldFor:function(e){var r,o,i=null==t||null===(r=t.get)||void 0===r?void 0:r.call(t,n),a=!(null==i||!i.focus||(null==i?void 0:i.index)!==e);return a&&(null==t||null===(o=t.set)||void 0===o||o.call(t,n,{focus:!1})),a}}}({cache:p,key:o}),x=("dimension"===y?OE:DE)({callbacks:t,data:n,resources:i,settings:a});"rtl"===v&&x.reverse();var S={allowed:{change:(!(null==f||!f.modifiers||null==f||!f.colorSupport)||m)&&!g,reload:!!d&&!g},hasAlternatives:!!c.length,hasCyclic:x.some((function(e){return e.meta.isCyclic})),hasMultiple:u.length>1};return x.map((function(e,t){return Pk(Pk({data:n,layout:{direction:v},resources:{translator:i.translator},services:{focus:b},settings:a,state:s,styling:l},e),{},{meta:Pk(Pk(Pk({},S),e.meta),{},{index:t,isFirst:0===t,isLast:t===x.length-1})})}))}({callbacks:t,data:n,dock:r,key:o,resources:a,settings:s,state:l,styling:c});return x.createElement("div",{style:u},d.map((function(e){return x.createElement(x.Fragment,{key:e.info.id},x.createElement(vE,{source:e}),!e.meta.isLast&&x.createElement("span",{dir:e.layout.direction,style:Pk(Pk({},c.title),{},{lineHeight:"normal"})},", "))})))}var RE,PE='"Source Sans Pro", "Arial", "sans-serif"',IE="12px",zE=function(e){var t=e.rect,n=e.state,r=e.settings,o=r.callbacks,i=r.data,a=r.key,s=r.layout,l=r.resources,c=r.settings,u=r.style;return AE({callbacks:o,data:i,dock:s.dock,key:a,rect:t,resources:l,settings:c,state:n,styling:u})},jE={renderer:"react",require:["renderer"],disableTriggers:!0,key:"axis-title",defaultSettings:{callbacks:{onChange:function(){}},data:{alternatives:[],infos:[]},resources:{app:void 0,cache:void 0,model:void 0,selections:void 0,translator:void 0},settings:{forceAllowChange:!1,isDisabled:function(){return!1},isRTL:!1,isSnapshot:!1,skipAttributeExpressions:!1,type:"dimension"},style:{title:{color:"#333",fontFamily:PE,fontSize:IE},popover:{color:"#595959CC",fontFamily:PE,fontSize:IE}}},preferredSize:function(){var e=this.settings,t=e.data,n=e.settings,r=e.style,o=t.alternatives,i=n.type,a=r.title,s=a.fontSize,l=a.fontFamily,c=o.length||"measure"!==i?28:20,u=this.registries.renderer("svg")().measureText({text:"M",fontSize:s,fontFamily:l}).height;return Math.max(c,u)},created:function(){var e=this;this.state={inSelections:!1},this.listeners={onSelectionsActivated:function(){e.state.inSelections=!0,e.renderer.render(zE(e))},onSelectionsDeactivated:function(){e.state.inSelections=!1}}},beforeMount:function(){var e=this.settings.resources.selections;e&&(e.addListener("activated",this.listeners.onSelectionsActivated),e.addListener("deactivated",this.listeners.onSelectionsDeactivated),e.addListener("canceled",this.listeners.onSelectionsDeactivated))},render:function(){return zE(this)},beforeUnmount:function(){var e=this.settings.resources.selections;e&&(e.removeListener("activated",this.listeners.onSelectionsActivated),e.removeListener("deactivated",this.listeners.onSelectionsDeactivated),e.removeListener("canceled",this.listeners.onSelectionsDeactivated))}},FE=function(e){var t=e.dock,n=e.settings.label,r="center"===t,o=r?{}:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};return x.createElement("span",{style:o,title:n},r?n:"* ".concat(n))},BE={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,o=t.style;return function(e){var t=e.dock,n=e.rect,r=e.settings,o=e.styling,i=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:o});return x.createElement("div",{dir:i,style:a},x.createElement(FE,{dock:t,settings:r}))}({dock:n.dock,rect:e,settings:r,styling:o})}},_E={},HE=function(){if(RE)return _E;RE=1;var e=O;return _E.createRoot=e.createRoot,_E.hydrateRoot=e.hydrateRoot,_E}(),$E=_M({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:"16px",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")}},outlined:{border:"1px solid rgba(0, 0, 0, 0.15)"},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 VE(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,o=n.y,i=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(o)||void 0===o?t.y:o,t.width=Number.isNaN(i)||void 0===i?t.width:i,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 WE(){var e={rendererBox:VE(),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=VE(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=HE.createRoot(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,o=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*o),"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(o,")"),e.container.style.transformOrigin="top left",e.root.render(function(e){var t=e.nodes;return x.createElement(x.StrictMode,null,x.createElement(CC,{theme:$E},t))}({nodes:t})),!0},findShapes:function(){return[]},itemsAt:function(){return[]},clear:function(){t()},destroy:function(){t()}}}const UE={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:o,flipXY:i,symbol:a}){let s="x",l="y",c=r,u=o,d=t<.5?90:-90;return i&&(s="y",l="x",c=o,u=r,d=t<.5?180:0),a(he({},e,{[s]:n*c,[l]:u-Math.max(e.size/2,Math.min(t*u,u-e.size/2)),startAngle:d}))}};function KE({i:e,width:t,height:n,resolved:r,keys:o,flipXY:i,calcKey:a="box"}){let s,l=null,c=null;void 0!==r.major.settings.binStart?(l=r.major.items[e].binStart,c=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 u=0;s?s.bandwidth?(u=s.bandwidth(),l-=u/2):u=c-l:u=1;const d=he({},{major:l,majorEnd:c},r.minor.items[e]);o.forEach((t=>{d[t]=r[t].items[e]}));const p=i?n:t,f=function({bandwidth:e,width:t,minWidthPx:n,maxWidthPx:r,maxMajorWidth:o}){const i=e>=0?1:-1;let a=Math.min(i*e*t,Number.isNaN(Number(r))?o:r/o);return a=Number.isNaN(Number(n))?a:Math.max(n/o,a),a*i}({bandwidth:u,width:d[a].width,minWidthPx:d[a].minWidthPx,maxWidthPx:d[a].maxWidthPx,maxMajorWidth:p}),m=(u-f)/2,h=m+d.major+f/2;return{item:d,boxCenter:h,boxWidth:f,boxPadding:m,rendWidth:t,rendHeight:n}}function GE({keys:e,data:t,defaultSettings:n,style:r,settings:o,width:i,height:a,resolver:s}){const l=he(!0,{},n||{},r||{}),c={major:"horizontal"===o.orientation?a:i,minor:"horizontal"===o.orientation?i:a},u=o.major;let d;d="object"==typeof u&&"object"==typeof u.ref&&void 0!==u.ref.start&&void 0!==u.ref.end?s.resolve({data:t,defaults:{start:0,end:1},scaled:c,settings:he(!0,{},{binStart:{scale:o.major.scale,ref:o.major.ref.start},binEnd:{scale:o.major.scale,ref:o.major.ref.end}})}):"object"==typeof u&&void 0!==u.binStart&&void 0!==u.binEnd?s.resolve({data:t,defaults:{start:0,end:1},scaled:c,settings:he(!0,{},{binStart:{scale:o.major.scale,ref:"binStart"},binEnd:{scale:o.major.scale,ref:"binEnd"}},o.major)}):s.resolve({data:t,scaled:c,defaults:{major:.5},settings:{major:o.major}});const p=o.minor||{};let f;const m={major:d,minor:s.resolve({data:t,defaults:{start:0,end:1},scaled:c,settings:he(!0,{},{start:{scale:p.scale,ref:"start"},end:{scale:p.scale,ref:"end"},min:{scale:p.scale,ref:"min"},max:{scale:p.scale,ref:"max"},med:{scale:p.scale,ref:"med"}},p)})};for(let n=0,r=e.length;n<r;n++)f=e[n],m[f]=s.resolve({data:t,defaults:l[f],settings:o[f],scaled:c});return m}const YE=["oob"];const XE={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:o,style:i,resolver:a,symbol:s}=this,l=GE({keys:YE,data:o,defaultSettings:{oob:UE.getDefaultSettings()},style:i,settings:this.settings.settings,width:e,height:t,resolver:a}),{settings:c,items:u}=l,d=function({width:e,height:t,flipXY:n,resolved:r,keys:o,symbol:i,dockValue:a,_calcItemRenderingOpts:s=KE}){const l=[],{items:c}=r.major;for(let u=0,d=c.length;u<d;u++){const{item:d,boxCenter:p,rendWidth:f,rendHeight:m}=s({i:u,width:e,height:t,resolved:r,keys:o,flipXY:n,calcKey:"oob"}),h=c[u].data,g=[];if(d.oob.show){g.push(UE.createOob({oob:d.oob,dockValue:a,boxCenter:p,rendWidth:f,rendHeight:m,flipXY:n,symbol:i}));const e={type:"container",data:h,collider:{type:"bounds"},children:g};l.push(e)}}return l}({width:e,height:t,flipXY:r,resolved:l,keys:YE,symbol:s,dockValue:n});return d}},JE={size:25,hat:{show:!0,fill:"#999",stroke:"#000",strokeWidth:0,strokeLinejoin:"miter",width:1,maxWidthPx:void 0,minWidthPx:1,minHeightPx:1,alignment:0}},ZE=["hat"];function QE(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 eT({item:e,boxWidth:t,boxPadding:n,rendWidth:r,rendHeight:o,flipXY:i}){let a="x",s="y",l=r,c=o,u=e.hat.alignment||0;i&&(a="y",s="x",l=o,c=r,u=1-u);const d=(n+e.major)*l;let p=[{[a]:d,[s]:0+c},{[a]:d+t*u*l,[s]:8},{[a]:d+t*l,[s]:0+c},{[a]:d+t*l,[s]:0+c+10},{[a]:d,[s]:0+c+10}];const f=he({},e.hat,{type:"path",d:QE(p)});p=[{[a]:d,[s]:0},{[a]:d+t*(1-u)*l,[s]:0+c-8},{[a]:d+t*l,[s]:0},{[a]:d+t*l,[s]:-10},{[a]:d,[s]:-10}];return[f,he({},e.hat,{type:"path",d:QE(p)})]}const tT={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:o,resolver:i}=this,a=GE({keys:ZE,data:r,defaultSettings:JE,style:o,settings:this.settings.settings,width:e,height:t,resolver:i}),{settings:s,items:l}=a,c=function({width:e,height:t,flipXY:n,resolved:r,keys:o,_calcItemRenderingOpts:i=KE}){const a=[],{items:s}=r.major;for(let l=0,c=s.length;l<c;l++){const{item:c,boxWidth:u,boxPadding:d,rendWidth:p,rendHeight:f}=i({i:l,width:e,height:t,resolved:r,keys:o,flipXY:n,calcKey:"hat"}),m=s[l].data,h=[];c.hat.show&&h.push(...eT({item:c,boxWidth:u,boxPadding:d,rendWidth:p,rendHeight:f,flipXY:n}));const g={type:"container",data:m,collider:{type:"bounds"},children:h};a.push(g)}return a}({width:e,height:t,flipXY:n,resolved:a,keys:ZE});return c}};var nT={defaultSettings:{settings:{size:10}},preferredSize(){return this.settings.settings.size},render:()=>[]};function rT(e,t,n,r){const o=function(t){const n=String(t);return e(n)};return o.ticks=()=>t.map((t=>{const i=o([t.data.value,r?n-1:0]),a=o([t.data.value,r?0:n-1])+e.bandwidth();return{position:(i+a)/2,label:t.label,data:t.data,start:i,end:a}})),o.bandwidth=()=>e.bandwidth(),o.data=()=>e.data(),o.domain=()=>e.domain(),o.pxScale=function(r){const o=e.pxScale(r);return o===e?this:rT(o,t,n)},o}function oT(e){const t=e.scale("band");e.scale("group-by-measure",(function(e={},n={},r={}){const o=t(e,n,r),i=o.domain(),a=o.ticks(),s=[],l=e.measureCount;return i.forEach(((e,t)=>{for(let t=0;t<l;++t)s.push(String([e,t]));s.push(`SPACER_${t}_SPACER`)})),s.splice(-1),o.domain(s),rT(o,a,l,e.invert)}))}const iT=()=>({version:"1.38.3",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}}),aT={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 sT(e){const t=e.split("/");return"qmem:"===t[0]&&""===t[1]}const lT={getImageSize(e,t){let n;function r(){n&&(clearTimeout(n),n=null)}function o(e){const t=e;t.onload=null,t.onerror=null,r()}const i={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,c=i[t]*(n>l?1:n/l),u=i[t]*(l>n?1:l/n);!n||!l||0===n&&0===l?(e={height:20,width:20,imageError:!0},o(s)):"original"===t?(e={height:Math.min(c,n),width:Math.min(u,l)},r()):(e={height:c,width:u},r()),a(e)},s.onerror=()=>{o(s),a({height:20,width:20,imageError:!0})},s.src=e,n=setTimeout((()=>{o(s),a({height:20,width:20,imageError:!0})}),3e3)}))}};async function cT(e,t,n){let r=e.ref.qStaticContentUrl.qUrl;const o=function(e){var t,n,r;let o,i,a,s,l,c;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 u;if(o=e.session.options||(null===(u=e.enigmaModel)||void 0===u?void 0:u.session.sessionConfig),!o){var d;o=null===(d=e.session)||void 0===d?void 0:d.config;const t=new URL(o.url);o.host=t.hostname,o.port=t.port,o.isSecure="wss:"===t.protocol}return c=void 0!==o.secure?o.secure:o.isSecure,i=c?"https://":"http://",a=o.host||"localhost",s=o.port?`:${o.port}`:"",l=o.prefix?o.prefix:"/","/"!==l[l.length-1]&&(l=`${l}/`),i+a+s+l}return""}(n);o&&(!function(e,t){const n=e.replace(t,"").replace(/^\.\.\//i,"/");n[0]}(r,o),r=r.replace(/"/g,'\\"'),r=r.replace(/'/g,"\\'"),r=function(e,t){return t+("/"===e[0]?e.substr(1):e)}(r,o));const{height:i,width:a,imageError:s}=await lT.getImageSize(r,t);return{src:r,size:t,height:i,width:a,imageError:s}}async function uT(e,t,n,r){var o,i,a;const{app:s,flags:l}=t,c=null===(o=e.layout)||void 0===o||null===(o=o.tooltip)||void 0===o?void 0:o.imageComponents;if(!c)return[];const[u]=c,d=u.size||"small",p=u.type||"media";let f=-1;for(let e=0;e<n.length;e++)if(n[e].cId===u.cId){f=e;break}const m=(null===(i=r.data)||void 0===i||null===(i=i.customTooltipAttrExps)||void 0===i?void 0:i.value)||[];let h;if(-1!==f&&m[f]&&(h=m[f]),"media"===p&&null!==(a=u.ref)&&void 0!==a&&null!==(a=a.qStaticContentUrl)&&void 0!==a&&a.qUrl)return cT(u,d,s);if("url"===p)return async function(e,t,n,r,o){let i,a=n.ref;if(o&&o.label&&(a=o.label),t.isEnabled("IMAGE_BUNDLE_LOAD")&&null!=e&&e.getImage&&sT(a))try{const t=`data:image/png;base64, ${await e.getImage(a)}`,{height:n,width:o,imageError:s}=await lT.getImageSize(t,r);i={src:t,size:r,height:n,width:o,imageError:s}}catch(e){}else{const{height:e,width:t,imageError:n}=await lT.getImageSize(a,r);i={src:a,size:r,height:e,width:t,imageError:n}}return i}(s,l,u,d,h);if(l.isEnabled("IMAGE_BUNDLE_LOAD")&&"field"===p&&h&&h.label){return async function(e,t,n,r){let o;const i=r.label,a=`qmem://${t.qFallbackTitle}/${i}`;if(sT(a))try{const t=await e.getImage(a);if(t){const e=`data:image/png;base64, ${t}`,{height:r,width:i,imageError:a}=await lT.getImageSize(e,n);o={src:e,size:n,height:r,width:i,imageError:a}}}catch(e){}return o}(s,n[f],d,h)}return[]}const dT={async addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){const o=t,i=[];for(let t=0;t<o.length;t++)i.push(uT(e,r,n,o[t]));const a=await Promise.all(i);for(let e=0;e<o.length;e++)o[e].data.customTooltipImages=[a[e]];return o},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}},pT={async handlePromises({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){let o=t;return o=await dT.addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}),o},checkIfPromisesExist:({customTooltipModel:e})=>dT.checkIfPromisesExist({customTooltipModel:e})};const fT=(e,t)=>{var n,r,o;const i=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===(o=e.qHyperCubeDef)||void 0===o?void 0:o.qInterColumnSortOrder,l=t;return{qInfo:{qType:aT.CHART.CHART_PARENT_TYPE,qId:aT.CHART.CHART_OBJECT_ID},qHyperCubeDef:{qDimensions:i,qMeasures:a,qInterColumnSortOrder:s,qInitialDataFetch:[{qWidth:0,qHeight:0}]},qStateName:l}},mT=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:aT.CHART.CHART_CHILD_TYPE},qExtendsId:n}};const hT={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 o=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",i=aT.CHART.STYLE[o];return[{content:[e.h("div",{style:{display:"flex",width:i,height:i,backgroundColor:"#FFFFFF",borderRadius:"5px",padding:"2px",color:"#595959"},colspan:2,id:aT.CHART.CONTAINER_ID})],colspan:2,style:{"text-align":e.rtl?"right":"left","max-width":i}},{}]}(e,t)},show:async({app:e,properties:t,selectedNodes:n,dimIndex:r,customTooltipModel:o,rtl:i})=>{var a;const s=o,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 hT.hide({app:e,customTooltipModel:o});try{await async function({app:e,properties:t,customTooltipModel:n}){const r=n,o=aT.CHART.STATE,i=t.qStateName;r.miniChartToken.alternateState||(r.miniChartToken.alternateState=o,await e.addSessionAlternateState(o,i),r.miniChartToken.alternateState=o)}({app:e,properties:t,customTooltipModel:o});const a=await async function({app:e,properties:t,customTooltipModel:n}){var r;const o=n;null!==(r=o.miniChartToken.sessionObj)&&void 0!==r&&r.id&&await e.destroySessionObject(o.miniChartToken.sessionObj.id);const i=aT.CHART.STATE,a=fT(t,i),s=await e.createSessionObject(a),l=mT(t);if(s.id!==aT.CHART.CHART_OBJECT_ID)return void e.destroySessionObject(s.id);o.miniChartToken.sessionObj=s;const c=await s.createChild(l);if(o.miniChartToken.sessionObj&&o.miniChartToken.sessionObj.id===s.id)return o.miniChartToken.model=c,c;e.destroySessionObject(s.id)}({app:e,properties:t,customTooltipModel:o});if(s.miniChartToken.alternateState&&s.miniChartToken.sessionObj&&a){var c,u,d,p;const e=n.length>0&&void 0!==(null===(c=n[0].data)||void 0===c?void 0:c.value)?[null===(u=n[0].data)||void 0===u?void 0:u.value]:[],a=void 0!==r?r:t.qHyperCubeDef.qDimensions.length-1;if(2===t.qHyperCubeDef.qDimensions.length&&void 0===r&&n.length>0){var f,m;const e=null!==(f=n[0].data.selectionOuterDimension)&&void 0!==f?f:n[0].data.selectionDimension;if(null!=e&&null!==(m=e.source)&&void 0!==m&&m.field){var h;const t=null==e||null===(h=e.source)||void 0===h?void 0:h.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(aT.CHART.CONTAINER_ID),g={direction:i?"rtl":"ltr",isReadonly:!0,isPopover:!0,navigation:!1,selections:!1};s.miniChartToken.vis=await o.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===(p=s.miniChartToken.model)||void 0===p?void 0:p.genericType})}}catch(t){await hT.hide({app:e,customTooltipModel:o})}}},hide:async({app:e,customTooltipModel:t})=>{const n=t;null!=n&&n.embed&&(hT.destroyVisualization({customTooltipModel:t}),await e.destroySessionObject(aT.CHART.CHART_OBJECT_ID),n.miniChartToken.sessionObj=void 0,await async function({app:e,customTooltipModel:t}){const n=t,r=aT.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 gT(e){const t=e.qHyperCubeDef?e.qHyperCubeDef.qDimensions:e.qHyperCube.qDimensionInfo;if(t&&t.length>0)return t}function yT(){const{EXPRESSION:e,TITLE:t,DESCRIPTION:n,IMAGES:r}=aT.CUSTOM,o={};return o[e]=!0,o[t]=!0,o[n]=!0,o[r]=!0,o}function vT(e){const t=yT();return e.filter((e=>t[e.id]))}const bT={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 o=t.element.getBoundingClientRect();return{cx:n-o.left,cy:r-o.top}}(e,t);return t.shapesAt({x:n.cx,y:n.cy})},getDataNodes(e,t){let n,r=[];const o={container:{bar:!0,"bullet-axis":!0},circle:{"point-component":!0}};return t.forEach((t=>{var i,a,s,l;const c=null!==(i=null===(a=t.data)||void 0===a?void 0:a.selectionDimension)&&void 0!==i?i:t.data;if(!c||null!==(s=t.data)&&void 0!==s&&s.customTooltipAttrExps||o[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(o).forEach((t=>{n=n.concat(e.findShapes(t).filter((e=>e.data&&e.data.customTooltipAttrExps&&!e.data.customTooltipImages&&o[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===c.value&&r.label===c.label}));t.length>0&&(r=r.concat(t[0]))}})),r},displayTooltip(e,t,{nodes:n,opts:r={},customTooltipModel:o,extractedNodes:i=[],hide:a}){if(o&&!a){const{layout:a,chart:s}=o,{attrExps:l}=bT.getAttrExprData(a);i.length||n.length?pT.handlePromises({customTooltipModel:o,nodes:bT.getDataNodes(s,i.length>0?i: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!=o&&null!==(s=o.miniChartToken)&&void 0!==s&&s.alternateState&&hT.hide({app:r.app,customTooltipModel:o}),t.emit("hide")}},checkIfPromisesExist:({customTooltipModel:e})=>pT.checkIfPromisesExist({customTooltipModel:e}),getAttrExps(e,t){var n;const r=t,o=null!==(n=e.qHyperCubeDef)&&void 0!==n&&n.qDimensions?"qAttributeExpressions":"qAttrExprInfo";return r[o]||(r[o]=[]),r[o]},getAttrExprData(e){var t;let n=[],r="";const o=(null===(t=e.qHyperCube)||void 0===t?void 0:t.qDimensionInfo)||[];if(o.length>0){var i;const t=o.length-1;n=(null===(i=e.qHyperCube)||void 0===i||null===(i=i.qDimensionInfo)||void 0===i||null===(i=i[t])||void 0===i?void 0:i.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[aT.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[aT.CUSTOM.QUARANTINE]=[],e.forEach((e=>{r.quarantine[aT.CUSTOM.QUARANTINE].push(e)})),n.qLayoutExclude=r}(vT(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[aT.CUSTOM.QUARANTINE])&&delete n.qLayoutExclude.quarantine[aT.CUSTOM.QUARANTINE]},setAttrsFromQuarantine(e,t){const n=gT(e);if(!n)return;const r=void 0!==t?t:n.length-1;if(!n[r])return;const o=this.getAttrExps(e,n[r]);if(0===vT(o).length){var i;const t=(null===(i=e.qLayoutExclude)||void 0===i||null===(i=i.quarantine)||void 0===i?void 0:i.customTooltip)||[],n=[...o,...t],a=e;a.qHyperCubeDef?a.qHyperCubeDef.qDimensions[r].qAttributeExpressions=n:a.qHyperCube.qDimensionInfo[r].qAttrExprInfo=n}},moveCustomTooltipAttrs(e,t={},n=void 0){let r=[];const o=gT(e)||[];[...o,t].forEach((e=>{const t=vT(e.qAttributeExpressions||[]);t.length>0&&(r=t)}));const i=yT(),a=o.map((e=>{const t=e,n=e.qAttributeExpressions||[];return t.qAttributeExpressions=n.filter((e=>!i[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:$e.detectTextDirection(e)},colspan:2},{}],getImageRow(e,t){const n=$e.detectTextDirection(e.src),r=[],o={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"})),o.style["text-align"]="center",o.style["white-space"]="nowrap"}else o.style["background-size"]="contain",o.style["background-repeat"]="no-repeat",o.style["background-position"]="center",o.style["background-image"]=`url('${e.src}')`;return[{content:[t.h("div",o,r),""],style:{"text-align":t.rtl?"right":"left",direction:n,"max-width":e.width},colspan:2},{}]}};function xT(e,t,n,r){var o;const i=(null===(o=t.qHyperCube)||void 0===o||null===(o=o[n])||void 0===o||null===(o=o[r])||void 0===o?void 0:o.qAttrExprInfo)||[],a=[],s=e.qSubNodes&&e.qSubNodes[r]?e.qSubNodes[r].qAttrExps:e.qAttrExps;return s?(i.forEach(((e,t)=>{const o=s.qValues&&s.qValues[t]?s.qValues[t]:void 0,i=void 0===o?"NaN":function(e,t){let n;switch(e.id){case aT.CUSTOM.EXPRESSION:n="NaN"===t.qNum||e.isCustomFormatted?void 0===t.qText?"NaN":t.qText:t.qNum;break;case aT.CUSTOM.TITLE:case aT.CUSTOM.DESCRIPTION:case aT.CUSTOM.IMAGES:n=void 0===t.qText?e.qFallbackTitle:t.qText;break;default:n="NaN"}return n}(e,o);a.push({source:{key:"qHyperCube",field:`${n}/${r}/qAttrExprInfo/${t}`},label:i,value:"value"})})),a):a}const ST={getNode(e,{dimensionCount:t}){if(!t||t<1)return;const n=t-1,r="qDimensionInfo";return{field:`${r}/${n}`,value:t=>xT(t,e,r,n)}}};const MT={getCustomAttrExps(e,t,n){var r;const o={customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]},i=(null===(r=t.data)||void 0===r||null===(r=r.customTooltipAttrExps)||void 0===r?void 0:r.value)||[];if(Number.isNaN(i))return o;return function(e,t,n,r){const o={[aT.CUSTOM.TITLE]:!0,[aT.CUSTOM.DESCRIPTION]:!0},{attrExps:i,fieldPath:a}=bT.getAttrExprData(e);return 0===t.length||0===i.length||""===a||i.forEach(((e,i)=>{const s=t[i];if(e.id===aT.CUSTOM.EXPRESSION&&s){const t=e.qFallbackTitle,o="NaN"===s.value||e.isCustomFormatted?s.value:n("qHyperCube").field(`${a}/${i}`).formatter()(s.value);r.customTooltipAttrExpsArr.push({label:t,value:o})}else if(o[e.id]&&s){const t="-"!==s.value&&"NaN"!==s.value?s.value:s.label;t&&"undefined"!==t&&r.customTooltipInfoAttrExpsArr.push({...e.id===aT.CUSTOM.TITLE&&{title:t},value:t,id:e.id})}})),r}(n,i.map((t=>Ve.getMeasure(e,t))),e,o)}};function CT({nodes:e,layout:t,dataset:n}){const r=function(e,t,n){const r=[];return e.forEach((e=>{r.push(MT.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 wT(e){const t=aT.CUSTOM.EXPRESSION,{qNumFormat:n,qLabel:r,qLabelExpression:o,cId:i}=e.qDef;return e.qLibraryId?{qLibraryId:e.qLibraryId,id:t,qNumFormat:n,qLabel:r,qLabelExpression:o,cId:i}:{qExpression:e.qDef.qDef,id:t,qNumFormat:n,qLabel:r,qLabelExpression:o,cId:i}}function kT(e){var t;const n=null===(t=e.qHyperCubeDef)||void 0===t?void 0:t.qDimensions;return n[n.length-1].qAttributeExpressions||[]}const ET={migrateProperties(e){var t,n;const r=he(!0,{},e),o=(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 i=kT(r);return i=function(e,t){return t.concat(e.map((e=>wT(e))))}(o,i),function(e,t){var n;const r=null===(n=t.qHyperCubeDef)||void 0===n?void 0:n.qDimensions;r[r.length-1].qAttributeExpressions=e}(i,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)||[],o=(null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qDimensions.length)-1,i=function(e,t,n){let r=e.length;const o=[];return t.forEach((e=>{const t=wT(e),i=JSON.stringify(t);o.push({qPath:`/qHyperCubeDef/qDimensions/${n}/qAttributeExpressions/${r}`,qOp:"add",qValue:i}),r++})),o.push({qPath:"/tooltip/data",qOp:"remove"}),o}(kT(e),r,o);return i},checkForBackwardCompatibility:(e,t)=>(e.qMeasureInfo||[]).length>0&&t.length>0,updateProperties(e,t){const n=new Promise((n=>{var r,o,i;const a=(null===(r=t.qHyperCube)||void 0===r?void 0:r.qDimensionInfo)||[],s=(null===(o=t.tooltip)||void 0===o||null===(o=o.data)||void 0===o?void 0:o.qHyperCube)||{},l=null===(i=t.qMeta)||void 0===i||null===(i=i.privileges)||void 0===i?void 0:i.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 TT={attrExpr:ET},qT=7005;const LT=e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==qT},NT=e=>{if(e.qHyperCubeDef.qDimensions.length>1&&1===e.qHyperCubeDef.qMeasures.length){const t=e.qHyperCubeDef.qInterColumnSortOrder.indexOf(0);0!==t&&ke.moveArrayElement(e.qHyperCubeDef.qInterColumnSortOrder,t,0)}},OT=(e,t)=>{t>10?1!==e.qHyperCubeDef.qInterColumnSortOrder[0]&&ke.moveArrayElement(e.qHyperCubeDef.qInterColumnSortOrder,1,0):0!==e.qHyperCubeDef.qInterColumnSortOrder[0]&&ke.moveArrayElement(e.qHyperCubeDef.qInterColumnSortOrder,1,0)},DT=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))},AT=(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;OT(e,n)}return r})):t.getField(r.qDef.qFieldDefs[0]).then((t=>t.getCardinal().then((t=>(OT(e,t),r)))),(()=>r))}return NT(e),Promise.resolve()};function RT(e){const t=e.qHyperCubeDef.qDimensions,n=e.qHyperCubeDef.qMeasures,{color:{mode:r}}=e;t.length>1&&e.color?i(e,"color.persistent",!0):"byDimension"===r&&n.length>1?i(e,"color.mode","byMultiple"):"byExpression"===r&&0===n.length?i(e,"color.mode","primary"):0===t.length&&n.length>0&&(i(e,"color.byMeasureDef",void 0),i(e,"color.byDimDef",void 0),1===n.length&&"byExpression"!==r&&i(e,"color.mode","primary"))}const PT=(e,t)=>{RT(t),$t(e),bT.addCallbackCustomTooltip(t)},IT=e=>{RT(e)};function zT({translator:e}){return{dimensions:{min:0,max:e=>e>1?1:2,description(t,n,r,o){let i;const a=null!=o&&o.layout?o.layout.qHyperCube.qDimensionInfo.filter((e=>LT(e))).length:t.qHyperCubeDef.qDimensions.length;return r.isAutoChart&&n>a-1?i="Visualizations.Descriptions.Color":a>1&&0===n?"stacked"===t.barGrouping.grouping?i="Visualizations.Descriptions.Stack":(i="Visualizations.Descriptions.Group",t.qHyperCubeDef.qColumnOrder=[0,1,2]):i="Visualizations.Descriptions.Bars",e.get(i)},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?AT(t,n.app).then((()=>(PT(e,t),e))):(DT(t),PT(e,t),e)),move(e,t,n){n.layout.qHyperCube.qDimensionInfo.filter((e=>LT(e))).length>1&&"stacked"===t.barGrouping.grouping&&(t.qHyperCubeDef.qMode="K",t.qHyperCubeDef.qAlwaysFullyExpanded=!0),NT(t),RT(t),bT.moveCallbackCustomTooltip(t,e)},remove(e,t){const n=t.qHyperCubeDef.qDimensions;RT(t),1===n.length&&(t.qHyperCubeDef.qMode="S"),bT.removeCallbackCustomTooltip(t,e)},replace(e,t,n,r){bT.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?AT(t,n.app).then((()=>(e.qSortBy.qSortByNumeric=-1,IT(t),e))):(DT(t),IT(t),e),move(e,t){NT(t),RT(t)},remove(e,t){const n=t.qHyperCubeDef.qDimensions;RT(t),n.length>1&&"stacked"===t.barGrouping.grouping?(t.qHyperCubeDef.qMode="K",t.qHyperCubeDef.qAlwaysFullyExpanded=!0):1===n.length&&(t.qHyperCubeDef.qMode="S")}}}}function jT(e){return{properties:iT(),data:{targets:[{path:"/qHyperCubeDef",...zT(e)}]}}}var FT={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_Disclaimer_OnlyNegativeValues:{id:"Object.Disclaimer.OnlyNegativeValues",locale:{"en-US":"The chart is not displayed because it contains only negative values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含負值。","zh-CN":"未显示图表,因为它仅包含负值。","tr-TR":"Yalnızca negatif değerleri içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det endast innehåller negativa värden.","it-IT":"Il grafico non viene visualizzato poiché contiene solo valori negativi.","es-ES":"El gráfico no se muestra porque solo contiene valores negativos.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur negative oder Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wyłącznie wartości ujemne.","nl-NL":"Het diagram wordt niet weergegeven omdat deze alleen negatieve waarden bevat.","ko-KR":"음수 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não é exibido porque contém apenas valores negativos.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs négatives.","ja-JP":"負の値しか含まれていないため、チャートは表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только отрицательные значения."}},Object_Disclaimer_NegativeValues:{id:"Object.Disclaimer.NegativeValues",locale:{"en-US":"The data set contains negative values that cannot be shown in this chart.","zh-TW":"資料集包含無法在此圖表中顯示的負值。","zh-CN":"数据集包含无法在此图表中显示的负值。","tr-TR":"Veri kümesi, bu grafikte gösterilemeyen negatif değerleri içeriyor.","sv-SE":"Datauppsättningen innehåller negativa värden som inte kan visas i det här diagrammet.","it-IT":"Il set di dati contiene valori negativi che non possono essere visualizzati in questo grafico.","es-ES":"El conjunto de datos contiene valores negativos que no se pueden mostrar en este gráfico.","de-DE":"Die in den Datensätzen enthaltenen negativen Werte können nicht in diesem Diagramm dargestellt werden.","pl-PL":"Zestaw danych zawiera wartości ujemne, których nie można przedstawić na tym wykresie.","nl-NL":"De gegevensverzameling bevat negatieve waarden die niet kunnen worden weergegeven in dit diagram.","ko-KR":"데이터 집합에 해당 차트에 표시할 수 없는 음수 값이 포함되어 있습니다.","pt-BR":"O conjunto de dados contém valores negativos que não podem ser mostrados neste gráfico.","fr-FR":"Le jeu de données contient des valeurs négatives impossibles à afficher dans ce graphique.","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":"Выключить выбор лассо"}}};const BT="REJECTED",_T=()=>{},HT=1e4,$T={MULTIPLIER:2,MINIMUM:20,MAXIMUM:200},VT=50,WT=10,UT=100;var KT={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)),o=Math.max(t.qTop,e.qArea.qTop),i=Math.max(t.qLeft,e.qArea.qLeft),a=Math.max(0,o-e.qArea.qTop),s=Math.min(o+n-e.qArea.qTop,e.qArea.qHeight),l=Math.max(0,i-e.qArea.qLeft),c=Math.min(i+r-e.qArea.qLeft,e.qArea.qWidth),u={qArea:{qHeight:s-a,qWidth:c-l,qTop:o,qLeft:i},qMatrix:[]};for(let t=a;t<s;t++)u.qMatrix.push(e.qMatrix[t].slice(l,c));return u},cacheWarden:function({bounds:e={width:0,height:0}}){return{release(t,n){const r=n.qTop-WT<=t.qTop,o=n.qLeft+n.qWidth+WT>=t.qLeft+t.qWidth,i=n.qTop+n.qHeight+WT>=t.qTop+t.qHeight,a=n.qLeft-WT<=t.qLeft;return r&&t.qTop>0||o&&t.qLeft+t.qWidth<e.width||i&&t.qTop+t.qHeight<e.height||a&&t.qLeft>0}}},request:function({definitionPath:e}){return t=>({method:"getHyperCubeData",args:[e,[t]]})}};var GT={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),o=Math.max(t.qLeft,e.qArea.qLeft),i=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-i),l={qArea:{qHeight:a-i,qWidth:e.qArea.qWidth,qTop:r,qLeft:o},qData:[{...e.qData[0],qUp:r,qDown:s,qSubNodes:[]}]};for(let t=i;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-WT<=t.qTop,o=n.qTop+n.qHeight+WT>=t.qTop+t.qHeight;return r&&t.qTop>0||o&&t.qTop+t.qHeight<e.height}}},request:function({definitionPath:e}){return t=>({method:"getHyperCubeStackData",args:[e,[t]]})}};var YT={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 XT="pages";const JT="discretePan",ZT=10;function QT({chart:e,actions:t,componentKey:n,dockService:r,rtl:o,scroller:i}){return{type:"Pan",key:"discrete:pan",options:{event:JT,pointers:1,threshold:ZT,enable(r,o){return this.started===JT||!o||!(!t.scroll.enabled()||!i.enabled())&&e.componentsFromPoint({x:o.center.x,y:o.center.y}).some((e=>e.key===n))}},events:{[`${JT}start`](e){e.preventDefault(),this.started=JT;const t="horizontal"===r.meta.major.orientation?e.deltaX:e.deltaY;this.previousTotalDelta=t<0?-10:ZT},[`${JT}move`](e){e.preventDefault();const t="horizontal"===r.meta.major.orientation,n=t?e.deltaX:e.deltaY,a=t&&o?-1:1,s=(n-this.previousTotalDelta)*a;this.previousTotalDelta=n,i.scroll(s)},[`${JT}end`](e){e.preventDefault(),this.started=!1},[`${JT}cancel`](e){e.preventDefault(),this.started=!1}}}}function eq({chart:e,componentKey:t,actions:n,scroller:r}){return function(o){if(!n.scroll.enabled()||!r.enabled())return;const[i]=e.componentsFromPoint({x:o.clientX,y:o.clientY}).filter((e=>e.key===t));if(!i)return;o.preventDefault();const a=Math.abs(o.deltaY)>Math.abs(o.deltaX)?o.deltaY:o.deltaX,s=Math.sign(-a)*UT;r.scroll(s)}}function tq({layoutService:e}){const t=function({layoutService:e}){const t=Math.floor(HT/(e.meta.dimensionCount+e.meta.measureCount));return function({width:e,height:n}){const r=Math.min(t,Math.max($T.MAXIMUM,n));return{width:e,height:Math.max($T.MINIMUM,Math.min(n*$T.MULTIPLIER,r))}}}({layoutService:e}),n={width:e.meta.size.x,height:e.meta.size.y};return function(e){const{width:r,height:o}=t({width:e.qWidth,height:e.qHeight}),i=o?Math.ceil((o-e.qHeight)/2):0,a=r?Math.ceil((r-e.qWidth)/2):0;return{qHeight:o?Math.min(o,n.height):e.qHeight,qWidth:r?Math.min(r,n.width):e.qWidth,qTop:o?Math.max(0,Math.min(e.qTop-i,n.height-o)):e.qTop,qLeft:r?Math.max(0,Math.min(e.qLeft-a,n.width-r)):e.qLeft}}}function nq(e){let t,n;const r=o=>{t=o;const{method:i,args:a}=t.request;e[i](...a).then((e=>{if(t.canceled||n)return t.reject(BT),t=null,void(n&&(r(n),n=null));t.resolve(e[0]),t=null}))},o=e=>new Promise(((o,i)=>{const a={request:e,resolve:o,reject:i,canceled:!1,cancel:()=>{a.canceled=!0}};t?(e=>{n&&n.reject(BT),n=e})(a):r(a)}));return o.isProcessing=()=>!!t,o.hasQueued=()=>!!n,o.cancel=()=>{o.isProcessing()&&t.cancel(),o.hasQueued()&&(n.reject(BT),n=null)},o}const rq={command:{update:()=>{}}};var oq={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:o}=t,i=e.getDataPages()[0],a=o/r;return[a,n.inView>=n.inTotal?a+1:a+i.qArea.qWidth/n.inView]}};var iq={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 o=void 0===r?4:r,i=Math.max(0,Math.floor(t)-o/2);return{qTop:i,qHeight:Math.min(e.meta.size.y-i,Math.max(0,Math.ceil(n+o))),qLeft:0,qWidth:e.meta.size.x}},scaleRange:function({layoutService:e,offsets:t,items:n,viewSize:r}){const{pixel:o}=t,i=e.getDataPages()[0],a=r/n.inView,s=(o+i.qArea.qTop*a)/r;return[s,n.inView>=n.inTotal?s+1:s+i.qArea.qHeight/n.inView]}};function aq(e){const{groupSize:t,measureCount:n}=e.meta;return null!=t?t:n}function sq(e,t){const n=[];for(let r=0;r<e.length;r++){const o=t(e[r]);-1===n.indexOf(o)&&n.push(o)}return n.length}function lq(e){return sq(e.qMatrix,(e=>e[0].qElemNumber))-1}var cq={inTotal:function({layoutService:e}){const t=aq(e);return e.meta.size.y*t*(1+1/t)-1},area:function({layoutService:e,itemOffset:t,inView:n,areaBuffer:r}){const o=aq(e),i=void 0===r?o:r,a=t/(o+1),s=Math.max(0,Math.floor((t-a-i/2)/o));return{qTop:s,qHeight:Math.min(e.meta.size.y-s,Math.max(0,Math.ceil((n+i)/o+1))),qLeft:0,qWidth:e.meta.size.x}},scaleRange:function({layoutService:e,offsets:t,items:n,viewSize:r}){const o=aq(e),i=e.getDataPages()[0],a=r/n.inView,{pixel:s}=t,l=lq(i),c=i.qArea.qHeight*o+l,u=(s+(i.qArea.qTop*o+i.qArea.qTop)*a)/r;return[u,n.inView>=n.inTotal?u+1:u+c/n.inView]}};const uq=(e,t)=>t/(e.meta.size.y/e.meta.size.dimensions[0]+1);function dq(e){return{itemOffset(t,n){if(0!==t.qArea.qTop)return uq(e,n);const r=((e,t)=>{const n={successful:!0,count:0};let r=Math.abs(Math.floor(t));const o=[];for(let t=0;t<=r;t++){if(!e[t])return n.successful=!1,n;const i=e[t][0].qElemNumber;-1===o.indexOf(i)&&(o.push(i),r--)}return n.count=o.length-1,n})(t.qMatrix,n);return r.successful?r.count:uq(e,n)},area(t,n,r){if(0!==t.qArea.qTop)return uq(e,n);return sq(t.qMatrix.slice(0,r.qTop+1),(e=>e[0].qElemNumber))-1}}}var pq={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 o=dq(t).itemOffset(e(),n),i=Math.max(0,Math.floor(n-o));return{qTop:i,qHeight:Math.min(t.meta.size.y-i,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:o,upperBound:i}){const a=t.getDataPages()[0],s=o/r.inView,{item:l,pixel:c}=n,u=dq(t).area(e(),l,a.qArea),d=lq(a),p=a.qArea.qHeight+d,f=c===i?(r.inView-p)*s/o:(c+(a.qArea.qTop+u)*s)/o;return[f,r.inView>=r.inTotal?f+1:f+p/r.inView]}};function fq({chart:e,rect:t,dockService:n,itemWidths:r,axisKey:o,renderer:i,isGrouped:a,dimensionAxis:s,inTotal:l,isMajorLabelless:c,maxDataRows:u}){const{DEFAULT:d,SQUEEZE:p,LABELLESS:f}=r[n.meta.chart.mode],m="horizontal"===n.meta.major.orientation,{axisDisplayMode:h="auto",maxVisibleItems:g=10,label:y}=s,v=m?t.width:t.height,b=v/l>=p;switch(h){case"max":return Math.min(l,u);case"custom":return Math.min(g,u);default:return c?v/f:b?function({chart:e,isHorizontal:t,axisKey:n,renderer:r={},isGrouped:o,itemSize:i,label:a}){if(o||"auto"!==a&&"tilted"!==a)return!1;const s=e.component(n),{measureText:l}=r;if(!s||!l)return!0;const{fontFamily:c,fontSize:u,tiltAngle:d}=s.settings.settings.labels,{height:p}=l({fontFamily:c,fontSize:u,text:"M"});if(!t)return p>i;const f=(90-d)*(Math.PI/180);return p>Math.cos(f)*i}({chart:e,isHorizontal:m,axisKey:o,renderer:i,isGrouped:a,itemSize:p,label:y})?v/d:l:v/d}}var mq="AVERAGE",hq="LINEAR",gq="POLYNOMIAL2",yq="POLYNOMIAL3",vq="POLYNOMIAL4",bq="EXPONENTIAL",xq="LOG",Sq="POWER";function Mq({dimValue:e,value:t,qTrendLine:n}){const{qType:r,qCoeff:o}=n,i={x:e,y:o[2]*t**2+o[1]*t+o[0]};switch(r){case yq:return i.y+=o[3]*t**3,i;case vq:return i.y+=o[4]*t**4+o[3]*t**3,i;default:return i}}var Cq={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:Mq,polynomial3:Mq,polynomial4:Mq,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)}}};function wq(e,t){const n=Cq[t.qType.toLowerCase()],r=Math.max(1,e/500);let o=1/0,i=-1/0;for(let a=0;a<e;a+=r){const{y:e}=n({dimValue:null,value:a+1,qTrendLine:t});o=Math.min(e,o),i=Math.max(e,i)}return{min:o,max:i}}function kq(e){return Cq[e.qType.toLowerCase()]}function Eq(e,t){return e.meta.isContinuous?function(e,t){return{generate:(n,r,o)=>{var i,a;const s=[],l=kq(n),c=t.get("zoom"),u=null!==(i=n.start)&&void 0!==i?i:c.min,d=null!==(a=n.end)&&void 0!==a?a:c.max,p=(d-u)/100,f=e.meta.isButterfly&&o>0;if(p>0){const e=e=>{const t=l({dimValue:e,value:e,qTrendLine:n});f&&(t.y=-t.y),t.layerId=r,t.measureIndex=o,t.dimValue=e,s.push(t)};let t=u;for(let n=u;n<=d;n+=p)e(n),t=n;t!==d&&e(d)}return s},calculate:(e,t)=>kq(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)}}}}(e,t):e.meta.mode.K?function(e){return{generate:(t,n,r)=>{const o=[],i=e.getDataPages()[0],a=i.qData[0].qSubNodes,s=i.qArea.qTop,l=Cq[t.qType.toLowerCase()];for(let e=0;e<a.length;e++){const i=a[e],c=l({dimValue:i.qElemNo,value:e+s+1,qTrendLine:t});c.layerId=n,c.measureIndex=r,c.dimValue=i.qText,o.push(c)}return o},findMinMax:wq}}(e):function(e){return{generate:(t,n,r)=>{const o=[],i=e.getDataPages()[0],a=i.qMatrix,s=i.qArea.qTop,l=Cq[t.qType.toLowerCase()],c=e.meta.isButterfly&&r>0;for(let e=0;e<a.length;e++){const i=a[e][0],u=e+s+1,d=l({dimValue:i.qElemNumber,value:u,qTrendLine:t});c&&(d.y=-d.y),d.layerId=n,d.measureIndex=r,d.dimValue=i.qText,o.push(d)}return o},calculate:(e,t,n)=>(0,Cq[e.qType.toLowerCase()])({dimValue:n,value:t,qTrendLine:e}),findMinMax:wq}}(e)}var Tq={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"},qq={color:"#f93f17",index:9};const{isDark:Lq}=Ht,Nq={x:NaN,y:NaN,layerId:NaN,measureIndex:NaN},Oq=({layoutService:e,viewState:t,colorModel:n,chart:r,env:o,keys:{colorScale:i},isEnabled:a=()=>!1})=>{const{translator:s}=o,l=[Nq],c=[],d=[],p=Eq(e,t);e.getLayoutValue("qHyperCube.qMeasureInfo",[]).forEach(((e,t)=>{Array.isArray(e.qTrendLines)&&(c.push(...e.qTrendLines),d.push(...e.qTrendLines.map((()=>t))))}));const f=u((e=>{const{style:t}=c[e]||{},o=n.settings();if(t.autoColor){if("measure"===o.mode){const t=d[e],n=r.scale(i)(t);return Lq(n)?function(e){const t=Ft(e);return t.l<30?t.l+=15:t.l<50?t.l+=10:t.l+=5,t.toString()}(n):function(e){const t=Ft(e);return t.l-=5,t.toString()}(n)}return n.resolveUIColor(qq)}return t.paletteColor?n.resolveUIColor(t.paletteColor):"none"}));return{query:{hasTrendLines:()=>!!c.length&&a(),getData:()=>l,getStroke:f,getLineDash:e=>{const{style:t}=c[e]||{};return null==t?void 0:t.lineDash},getLineThickness:e=>{var t;const{style:n}=c[e]||{};return null!==(t=null==n?void 0:n.lineThickness)&&void 0!==t?t:2},getLabel:e=>(c[e]||{}).label,getType:e=>{const{qType:t}=c[e]||{};return s.get(Tq.TYPES[t])},getMinMax:()=>{let t=1/0,n=-1/0;return c.forEach((r=>{const o=p.findMinMax(e.meta.size.y,r);t=Math.min(o.min,t),n=Math.max(o.max,n)})),{min:t,max:n}},getCalculatedValue:(e,t,n)=>{const r=c[e];return p.calculate(r,t,n)}},command:{update:()=>{l.length=0,c.forEach(((e,t)=>{const n=p.generate(e,t,d[t]);l.push(...n)}))}}}};var Dq={source:"trend",extract:{field:"x",props:{minor:{field:"y"},layer:{field:"layerId"},measureIndex:{field:"measureIndex"},dimValue:{field:"dimValue"}}}};const Aq=({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,Rq=(e,{layoutService:t,trendLineModel:n,dockService:r,animationsEnabled:o})=>{if(!n.query.hasTrendLines())return[];const i=(({majorScale:e,minorScale:t},{trendLineModel:n,layoutService:r,dockService:o,animationsEnabled:i})=>{const a=Aq(r);return{key:"trend-lines",type:"line",layout:{dock:"center"},data:Dq,settings:{connect:!0,orientation:o.meta.major.orientation,coordinates:{major:{scale:e,fn:a},minor:{scale:t},layerId:{ref:"layer"}},layers:{curve:"monotone",line:{strokeWidth:({datum:e})=>n.query.getLineThickness(e.layer.value),stroke:({datum:e})=>n.query.getStroke(e.layer.value),strokeDasharray:({datum:e})=>n.query.getLineDash(e.layer.value)}}},animations:{enabled:i,trackBy:Ha.nonUpdatingNode.trackBy,compensateForLayoutChanges:Ha.lines.compensateForLayoutChanges}}})(e,{trendLineModel:n,layoutService:t,dockService:r,animationsEnabled:o}),a=(({majorScale:e,minorScale:t,tooltipOverlay:n="trend-lines-tooltip-overlay"},{layoutService:r,dockService:o})=>{const i=Aq(r),a="horizontal"===o.meta.major.orientation,s={scale:e,fn:i},l={scale:t,ref:"minor"};return{key:n,type:"point",layout:{dock:"center"},data:Dq,settings:{x:a?s:l,y:a?l:s,opacity:0,size:1,sizeLimits:{maxPx:8,minPx:8}}}})(e,{layoutService:t,dockService:r});return[i,a]};function Pq(e,t){const{getLabel:n,getType:r,getLineDash:o,getStroke:i}=t.query;return({node:t,resources:a})=>{const s={type:"icon",style:{stroke:i(t.data.layer.value),"min-width":"16px","vertical-align":"middle","stroke-dasharray":o(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)}]}}}function Iq(e,{h:t,style:n}){return e.map((e=>{const r={style:{direction:"string"==typeof e.content?$e.detectTextDirection(e.content):void 0,...n.cell||{},...e.style||{}},class:e.class};e.colspan&&(r.colspan=e.colspan);const o=function(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:$e.detectTextDirection(t.content)},t.content)))):"icon"===t.type?function(e){const t=e("line",{x1:"0px",y1:"16px",x2:"16px",y2:"0px","stroke-width":"3px"});return e("svg",{xlms:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16"},t)}(e):t.content}(t,e);return t("td",r,o)}))}function zq(e,t){return({h:n,data:r,style:o})=>{const i=r[0].title,a=r.filter((e=>e.title===i)),s=function(e,t){const n=e("td",{colspan:3,style:{"font-weight":"bold"},direction:$e.detectTextDirection(t)},t);return e("tr",{},n)}(n,i),l=[s];if(a.slice(0,2).forEach((e=>{l.push(n("tr",{},Iq(e.row,{h:n,style:o})))})),r.length>2){const o=r.length-2;l.push(...function(e,t,n,r){const o=t?t.get("Object.ChartTooltip.NMore",r):`+${r} more`,i=$e.detectTextDirection(o);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:i},colspan:3},o))]}(n,e,t,o))}return l}}function jq(e,{trendLineModel:t,translator:n},r={}){if(!t.query.hasTrendLines())return!1;const{rtl:o}=r,i=Fe({key:e.tooltip,rtl:o});return he(!0,i,{settings:{extract:Pq(e,t),content:zq(n,o),placement:"pointer",direction:r.rtl?"rtl":"ltr"}})}function Fq(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 Bq(e,{chart:t,viewState:n,trendLineModel:r,layoutService:o,rtl:i}){const{isContinuous:a}=o.meta;let s={components:[{key:e.tooltipOverlay}],propagation:"stop"},l=e=>{const n=Fq(e,t);return t.shapesAt(n,s)};if(a){const{getCalculatedValue:o}=r.query;s={components:[{key:"trend-lines"}],propagation:"stop"},l=(r,a)=>{const l=Fq(r,t),c=t.shapesAt(function(e){return{cx:e.x,cy:e.y,r:3}}(l),s);if(c.length){const r=function(e,t,n,r){let o=(e.x-t.rect.computed.x)/t.rect.computed.width;o=r?1-o:o;const{min:i,max:a}=n.get("zoom");return i+(a-i)*o}(l,a,n,i),s=t.scale(e.majorInnerScale),u=(null!=s&&s.formatter?s.formatter():t.formatter({data:{fields:["qDimensionInfo/0"]}}))(r);c.forEach((e=>{e.data.dimValue.value=r,e.data.dimValue.label=u,e.data.minor.value=o(e.data.layer.value,r).y}))}return c}}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 _q=e=>{e.style.dashed?e.style.lineDash="8, 4":e.style.lineDash=""},Hq=e=>{_q(e),e.qMultiDimMode="Sum",e.qXColIx=0};function $q(e={}){const{translator:t,events:n={onGlobalChange:()=>{}},allowStackedByDimension:r=!1}=e;return{show:(e,t,{layout:n})=>!Le.dimensionless(n)&&!Le.groupedByDimension(n)&&(r||!Le.stackedByDimension(n)),type:"array",ref:"qTrendLines",titleTranslation:Tq.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(Tq.TYPES[e.qType])},max:8,allowAdd:!0,allowRemove:!0,allowMove:!1,addTranslation:Tq.ADD_BUTTON,add:Hq,globalChange:e=>{const t=o(e,"qHyperCubeDef.qMeasures",[]).reduce(((e,t)=>(Array.isArray(t.qTrendLines)&&e.push(...t.qTrendLines),e)),[]),r=(e=>!o(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:Tq.TYPE,options:[{value:mq,translation:Tq.TYPES.AVERAGE},{value:hq,translation:Tq.TYPES.LINEAR},{value:gq,translation:Tq.TYPES.POLYNOMIAL2},{value:yq,translation:Tq.TYPES.POLYNOMIAL3},{value:vq,translation:Tq.TYPES.POLYNOMIAL4},{value:bq,translation:Tq.TYPES.EXPONENTIAL},{value:xq,translation:Tq.TYPES.LOG},{value:Sq,translation:Tq.TYPES.POWER}],defaultValue:mq},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:qq,show:e=>!e.style.autoColor},dashed:{ref:"style.dashed",translation:Tq.STYLE.DASHED,type:"boolean",defaultValue:!0,change:_q}}}}var Vq={};function Wq(){Wq.init.call(this)}Vq.isObject=function(e){return"object"==typeof e&&null!==e},Vq.isNumber=function(e){return"number"==typeof e},Vq.isUndefined=function(e){return void 0===e},Vq.isFunction=function(e){return"function"==typeof e};var Uq=Wq;Wq.EventEmitter=Wq,Wq.prototype._events=void 0,Wq.prototype._maxListeners=void 0,Wq.defaultMaxListeners=10,Wq.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},Wq.prototype.setMaxListeners=function(e){if(!Vq.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},Wq.prototype.emit=function(e){var t,n,r,o,i,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],Vq.isUndefined(n))return!1;if(Vq.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,o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];n.apply(this,o)}else if(Vq.isObject(n)){for(r=arguments.length,o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];for(r=(a=n.slice()).length,i=0;i<r;i++)a[i].apply(this,o)}return!0},Wq.prototype.addListener=function(e,t){var n;if(!Vq.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,Vq.isFunction(t.listener)?t.listener:t),this._events[e]?Vq.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,Vq.isObject(this._events[e])&&!this._events[e].warned)&&((n=Vq.isUndefined(this._maxListeners)?Wq.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,Vq.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),Vq.isFunction(console.trace)&&console.trace()));return this},Wq.prototype.on=Wq.prototype.addListener,Wq.prototype.once=function(e,t){if(!Vq.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},Wq.prototype.removeListener=function(e,t){var n,r,o,i;if(!Vq.isFunction(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(o=(n=this._events[e]).length,r=-1,n===t||Vq.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(Vq.isObject(n)){for(i=o;i-- >0;)if(n[i]===t||n[i].listener&&n[i].listener===t){r=i;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},Wq.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],Vq.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},Wq.prototype.listeners=function(e){return this._events&&this._events[e]?Vq.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},Wq.listenerCount=function(e,t){return e._events&&e._events[t]?Vq.isFunction(e._events[t])?1:e._events[t].length:0};var Kq=oe(Uq);const Gq={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 Yq=e=>(Object.keys(Kq.prototype).forEach((t=>{e[t]=Kq.prototype[t]})),Kq.init(e),e);var Xq={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}},Jq={SCALE:{MAIN:{MINOR:"minor",MAJOR:"major",MAJOR_INNER:"majorInner",COLOR:"fill"},REDUCED:{MINOR:"miniMinor",MAJOR:"miniMajor",COLOR:"reducedFill"}},COMPONENT:{BAR:"bar",GHOST_BAR_OOB:"ghost-bar",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",SPACE:"space",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"}};const Zq=({layout:e,flags:t})=>{var n,r,o,i;if(null==t||!t.isEnabled("TLV_800_BUTTERFLY_CHART"))return!1;const a=null==e||null===(n=e.qHyperCube)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==qT})),s=null==e||null===(r=e.qHyperCube)||void 0===r||null===(r=r.qMeasureInfo)||void 0===r?void 0:r.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==qT})),l=null!==(o=null==a?void 0:a.length)&&void 0!==o?o:0,c=null!==(i=null==s?void 0:s.length)&&void 0!==i?i:0;return 1===l&&2===c},Qq=e=>({layout:t})=>{var n;const r=Me.canBeContinuous(t),o=Le.continuous(t),i=Le.dimensionless(t),a=Zq({layout:t,flags:e})&&"butterfly"===(null==t||null===(n=t.barGrouping)||void 0===n?void 0:n.grouping);return{canBeContinuous:r,isDiscrete:!o,isContinuous:o,isTime:Me.isTime(o,t),isDimensionless:i,isSimple:Le.simple(t),isGrouped:!a&&Le.grouped(t),isGroupedByMeasure:!a&&Le.groupedByMeasure(t),isGroupedByDimension:!a&&Le.groupedByDimension(t),isStacked:!a&&Le.stacked(t),isStackedByDimension:!a&&Le.stackedByDimension(t),isStackedByMeasure:!a&&Le.stackedByMeasure(t),isSnapshot:Le.snapshot(t),isButterfly:a}};function eL({clearMinor:e,clearLegend:t,clearDiscrete:n,clearContinuous:r,selectionInfo:o}){t({componentName:"legendRangeBrush"}),e({eventName:"measureRange",componentName:"measureRangeBrush"}),n({eventName:"discreteRange",componentName:"discreteRangeBrush",brushName:!1}),"tap"!==o.event&&r({componentName:"continuousRangeBrush",brushName:!1})}function tL({chart:e,actions:t,selections:n}){const r=e.scale(Jq.SCALE.MAIN.MAJOR);return d({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:eL},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")}}})}const nL=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 rL({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)}function oL({app:e,model:t,translator:n,picasso:r,localeInfo:o,theme:i,continuousDataModel:a,layoutService:s,legendLayoutService:l,reducedDataModel:c}){const{isContinuous:u,isStacked:d}=s.meta,f={main:void 0,mini:{getScales:()=>({}),getColor:()=>e=>e,getDatumProps:()=>({}),getAuxiliarySettings:()=>{}}};return{initialize:()=>{const m=[],{isReduced:h}=c.model().mode,g=u||h||d,y=!u&&(h||d)&&l?l.getHyperCube():void 0,v=y?"legendCube":void 0;return f.main=p({app:e,model:t,translator:n,picasso:r,layoutService:s,config:{localeInfo:o,auto:rL,key:Jq.SCALE.MAIN.COLOR},createConfig:()=>({hc:g?y||s.getHyperCube():c.model().cube,source:g?v:"miniCube",theme:i})}),m.push(f.main.initialize()),u&&(f.mini=p({app:e,model:t,translator:n,picasso:r,layoutService:s,config:{localeInfo:o,auto:rL,key:Jq.SCALE.REDUCED.COLOR},createConfig:()=>({layout:a.getInitialLayout(),hc:a.getInitialCube(),source:"miniCube",theme:i})}),m.push(f.mini.initialize())),Promise.all(m)},getMain:()=>f.main,getMini:()=>f.mini}}const iL={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:o=0,qSelected:i=0}=(null==e?void 0:e.qStateCounts)||{};return[void 0,0].includes(n)?r+o+i:n}};function aL({layoutService:e}){return f({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 iL.getDimensionSize(r)>Me.maxNumberOfLines}},OnlyNegativeValues:{condition:()=>{if(e.meta.isButterfly){const{qMeasureInfo:t}=e.getHyperCube();return t.every((e=>{const{qMin:t,qMax:n}=e;return t<0&&n<0}))}return!1},alignment:"center"},NegativeValues:{condition:()=>{if(e.meta.isButterfly){const{qMeasureInfo:t}=e.getHyperCube();return t.some((e=>{const{qMin:t}=e;return t<0}))}return!1}}}}})}function sL(e){return e.qIsOtherCell||-3===e.qElemNumber||-3===e.qElemNo}function lL(e){return e.some(sL)}function cL(e,t){let n=NaN,r=NaN;return e.forEach((e=>{lL(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 uL(e){let t=NaN,n=NaN;if(!e.getLayoutValue("measureAxis.autoMinMax",!1)){const r=e.getLayoutValue("measureAxis.minMax");e.meta.isButterfly||"min"!==r&&"minMax"!==r||(t=+e.getLayoutValue("measureAxis.min")),"max"!==r&&"minMax"!==r||(n=+e.getLayoutValue("measureAxis.max"),e.meta.isButterfly&&(t=-n))}return{min:t,max:n,isExplicitMin:!Number.isNaN(t),isExplicitMax:!Number.isNaN(n)}}function dL(e,t){let n=NaN,r=NaN;return e.forEach((e=>{if(!lL(e)){let o=0,i=0;e.slice(-t).forEach((e=>{"NaN"!==e.qNum&&(e.qNum>=0?i+=e.qNum:o+=e.qNum)})),n=Number.isNaN(n)?o:Math.min(o,n),r=Number.isNaN(r)?i:Math.max(i,r)}})),{min:n,max:r}}function pL(e,t){const n={};e.forEach((e=>{if(!lL(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,o=NaN;return Object.keys(n).forEach((e=>{r=Number.isNaN(r)?n[e].min:Math.min(n[e].min,r),o=Number.isNaN(o)?n[e].max:Math.max(n[e].max,o)})),{min:r,max:o}}function fL(e){return"number"==typeof e&&!Number.isNaN(e)}function mL(e){const{meta:t}=e,n=e.getHyperCubeValue("qMeasureInfo");return t.isButterfly?{min:Math.min(0,fL(n[1].qMax)?-n[1].qMax:0),max:Math.max(0,fL(n[0].qMax)?n[0].qMax:0)}:{min:Math.min(...n.filter((e=>fL(e.qMin))).map((e=>e.qMin))),max:Math.max(...n.filter((e=>fL(e.qMax))).map((e=>e.qMax)))}}const{isNumber:hL}=Qi;function gL(e,t,n){for(let n=e.length-1;n>-1;n--)if(t(e[n]))return e[n];return n}function yL(e){return!Number.isNaN(+e.qNum)}function vL(e){return e.qNum}function bL(e){return!Number.isNaN(+e.qNum)}function xL(e){return e.qNum}function SL(e,t){return e.push(...t),e}const{getValueWithOffset:ML,isNumber:CL}=Qi,wL=5,kL=.2;function EL(e,t){return Math.abs(e/t)<wL||0===t}function TL({layoutService:e,trendLineModel:t},n={}){const{stackedByMeasureExtractor:r=dL,stackedByDimensionExtractor:i=pL,straightExtractor:a=cL,measureInfoExtractor:s=mL,explicitExtractor:l=uL}=n,{meta:c}=e;return{extract({qDataPages:e,qStackedDataPages:n,others:r,count:o}){let i,a;if(Array.isArray(n)?({min:i,max:a}=this.extractFromStacked(n)):({min:i,max:a}=this.extractFromStraight(e,o)),t.query.hasTrendLines()){const{min:e,max:n}=t.query.getMinMax();i=Number.isFinite(e)?Math.min(i,e):i,a=Number.isFinite(n)?Math.max(a,n):a}const{min:s,max:l}=this.extractOthers(r),c=this.extractExplicit(),u=[0,i,a].filter((e=>CL(e)));let d=Math.min(...u),p=Math.max(...u);d=EL(s,d)?Math.min(d,s):d,p=EL(l,p)?Math.max(p,l):p;const f=[c.explicitMin,c.explicitMax,d,p].filter((e=>CL(e)));return i=Number.isNaN(c.explicitMin)?Math.min(...f):c.explicitMin,a=Number.isNaN(c.explicitMax)?Math.max(...f):c.explicitMax,i===a&&(Number.isNaN(c.explicitMin)?i=ML(i,-.2):Number.isNaN(c.explicitMax)&&(a=ML(a,kL))),{min:i,max:a,implicitMin:d,implicitMax:p,otherMin:s,otherMax:l,hasOtherMin:s<i,hasOtherMax:l>a,...c}},extractExplicit(){const{min:t,max:n,isExplicitMin:r,isExplicitMax:o}=l(e);return{hasExplicitMinMax:r||o,hasExplicitMin:r,hasExplicitMax:o,explicitMin:t,explicitMax:n}},extractFromStacked(e){const t=e.length?e[0].qData:[];return(n=t).length?{min:Math.min(...n[0].qSubNodes.filter((e=>hL(e.qMinNeg))).map((e=>e.qMinNeg))),max:Math.max(...n[0].qSubNodes.filter((e=>hL(e.qMaxPos))).map((e=>e.qMaxPos)))}:{min:0,max:0};var n},extractFromStraight(t,n){const o=t.length?t[0].qMatrix:[];return c.isStackedByMeasure?r(o,n):c.isStackedByDimension?i(o,n):e.getHyperCubeValue("qHasOtherValues")?a(o,n):s(e)},extractOthers:e=>c.isStackedByDimension?function(e){const t=gL(o(e,"0.qData.0.qSubNodes",[]),sL,{qMaxPos:0,qMinNeg:0});return{min:t.qMinNeg,max:t.qMaxPos}}(e):c.isGroupedByDimension?function(e){const t=o(e,"0.qMatrix",[]).filter(lL).reduce(SL,[]).filter(bL).map(xL);return{min:Math.min(0,...t),max:Math.max(0,...t)}}(e):function(e){const t=gL(o(e,"0.qMatrix",[]),lL,[]).filter(yL).map(vL);return{min:Math.min(0,...t),max:Math.max(0,...t)}}(e)}}function qL(e){const t=function({reducedDataModel:e,layoutService:t,continuousDataModel:n}){const{meta:r,getHyperCubeValue:o}=t,i=e=>!e.length&&r.mode.K,a=e=>{const t=o("qStackedDataPages",[]);return{qStackedDataPages:t,others:e?t:[]}};return{resolve(){const t=o("qMeasureInfo").length,s=o("qDimensionInfo").length,l=o("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 c=r.isStackedByDimension?1:t;return e.fetchMinMaxData().then((e=>{if(i(e))return a(l);let t=[];return l&&(t=r.mode.K?o("qStackedDataPages",[]):o("qDataPages",[])),{qDataPages:e,count:c,others:t}}))}}}(e),n=TL(e);return t.resolve().then((e=>n.extract(e)))}const LL="lasso",NL=({key:e,componentTargetKey:t,requireFailure:n,recognizeWith:r},o)=>({key:`event:${e}`,type:"Pan",requireFailure:n,recognizeWith:r,options:{event:LL,enable(e,n){if(this.started===LL||!n)return!0;if(!o.actions.select.enabled()||!o.actions.lasso.enabled()||!o.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!==LL&&(o.actions.select.emit("start",LL),this.chart.component(e).emit("lassoStart",t),this.started=LL)},lassomove(t){t.preventDefault(),this.chart.component(e).emit("lassoMove",t),"function"==typeof o.updateOnMove&&o.updateOnMove(this.chart)},lassoend(t){t.preventDefault(),this.started=!1,this.chart.component(e).emit("lassoEnd",t),o.actions.select.emit("end",LL),"function"==typeof o.updateOnEnd&&o.updateOnEnd()}}});const OL=({targets:e,requireFailure:t,recognizeWith:n,components:r,eventName:o="tap"},i)=>{let a;const s=i.customTooltipModel?i.customTooltipModel.utils:void 0,l=s?i.debouncer(s.displayTooltip,s.DEBOUNCE_THRESHOLD):void 0;return{key:"event:tap",type:"Tap",requireFailure:t,recognizeWith:n,options:{event:o,interval:10,pointers:1,enable(t,n){return!n||!(!i.actions.select.enabled()&&!i.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:{[o](t){t.preventDefault();const n=function(e,t){const n=t.element.getBoundingClientRect();let r,o;return e.center?(({x:r}=e.center),({y:o}=e.center)):(r=e.clientX,o=e.clientY),{x:r-n.left,y:o-n.top}}(t,this.chart),c=i.hitRadius?i.hitRadius(a):0,u=c>0?{cx:n.x,cy:n.y,r:c}:n,d=i.shapesAt?i.shapesAt(u):this.chart.shapesAt(u,{components:e.map((e=>({key:e,propagation:"stop"}))),propagation:"stop"}),p=this.chart.component("tooltip"),f="mouse"!==t.pointerType&&p&&p.show;if(!i.isLocked(a)&&!i.tooltipOnly&&i.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,i.actions.select.brushSelectionIncludeMax=!1,i.actions.select.emit("start",o,e)),d.length&&r){this.chart.brushSelectionIncludeMax=!1,i.actions.select.brushSelectionIncludeMax=!1;const e="function"==typeof r?r(t,d):r;this.chart.brushFromShapes(d,{components:e}),i.actions.select.emit("end",o),(({largeDataService:e,chart:t})=>{((null==e?void 0:e.meta)||{}).isLargeNumPoints&&t.brush("lazySelection")._state(t.brush("selection")._state())})({largeDataService:i.largeDataService,chart:this.chart})}}if(p&&i.actions.tooltip.enabled())if(d.length){const{customTooltipModel:e}=i;if(null!=e&&e.useCustomTooltip&&s.checkIfPromisesExist({customTooltipModel:e})){const n=s.getNodes(t,this.chart);l(t,p,{nodes:n,opts:i,customTooltipModel:e})}else p.emit("show",t,{nodes:d})}else f&&p.emit("hide")}}}};const DL=({key:e,requireFailure:t,recognizeWith:n,eventName:r="tap"},o)=>({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&&(!!o.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 AL=({eventName:e,key:t,fillTargets:n=[],requireFailure:r,recognizeWith:o},i,a)=>({key:`event:${t}`,type:"Pan",requireFailure:r,recognizeWith:o,options:{event:e,enable(r,o){if(this.started===e||!o)return!0;if(!i.actions.select.enabled())return!1;const a=this.chart.componentsFromPoint({x:o.center.x,y:o.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}-`))}(o,t);return s?(this.started=e,!0):a.length>0}},events:{[`${e}start`](n){void 0===this.chart.brushSelectionIncludeMax&&(this.chart.brushSelectionIncludeMax=!0,i.actions.select.brushSelectionIncludeMax=!0),n.preventDefault(),i.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 i.updateOnMove&&i.updateOnMove(this.chart)},[`${e}end`](n){void 0===this.chart.brushSelectionIncludeMax&&(this.chart.brushSelectionIncludeMax=!0,i.actions.select.brushSelectionIncludeMax=!0),n.preventDefault(),this.chart.component(t).emit(`${a}End`,n),i.actions.select.emit("end",e),this.started=!1,"function"==typeof i.updateOnEnd&&i.updateOnEnd()}}});function RL(e,t){const n=function(e){const{key:t,targets:n,fillTargets:r,targetSelector:o,targetFillSelector:i,dock:a,scale:s,bubblesPlacement:l="inside",observeBrush:c=!1,multiple:u=!1,toLabel:d,onEdited:p}=e;return{key:t,type:"brush-range",layout:{dock:n.map((e=>`@${e}`)).join(",")},on:p?{bubbleEnd(){p()}}:{},settings:{brush:c?{context:"selection",observe:!0}:"selection",scale:s,multiple:u,direction:"left"===a||"right"===a?"vertical":"horizontal",bubbles:{align:"left"===a||"top"===a?"end":"start",placement:l,label:d},target:{components:r,selector:o,fillSelector:i,fill:"rgba(82,204,82,0.2)"}}}}(e),r=AL(e,t,"range");return{interactions:[e.onEdited?DL(e,t):null,r].filter(Boolean),components:[n]}}const PL={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"}}},IL="inner-time-axis",zL="outer-time-axis";const jL={getMajorAxisMaxGlyphCount(e,t){let n=0;if(e.qDimensionInfo.length){const r=t?0:e.qDimensionInfo.length-1;n=iL.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?o(e,t?"qStackedDataPages.0.qData.0.qSubNodes":"qDataPages.0.qMatrix"):e.qMeasureInfo,n},getBarAxisMaxGlyphCount(e,t){if(!e)return;const n=jL.getAxisData(e,t),r=!e.qDimensionInfo.length,o=r||t?void 0:e.qDimensionInfo.length-1,i=jL.getMajorAxisMaxGlyphCount(e,t),a=r?"qFallbackTitle":"qText";return Ie.getAdjustedMaxGlyphCount(i,n,o,a)},getGroupAxisMaxGlyphCount(e){if(!e)return;const t=jL.getAxisData(e),n=iL.getMaxGlyphCount(e,0);return Ie.getAdjustedMaxGlyphCount(n,t,0)}};var FL=3,BL=13;function _L(e,t,n,r){const{meta:o}=t.layoutService,i=[],a=!("none"===e.measureAxis.show),s=!("title"===e.measureAxis.show);o.isContinuous?i.push(...function(e,t,n,r){const{meta:o}=t.layoutService,{axis:i,grid:a}=t.themeService.getStyles(),s=t.styleService.axis.label.getStyle(),{auto:l,spacing:c}=t.layoutService.getLayoutValue("gridLine",{}),u=[],d="none"!==e.dimensionAxis.show&&"title"!==e.dimensionAxis.show,p=PL[`${t.dockService.meta.major.orientation}DimensionAxis`].minimumLayoutMode,f={type:"grid-line",x:{},layout:{minimumLayoutMode:PL.gridLines.minimumLayoutMode},ticks:{stroke:a.line.major.color},minorTicks:{show:!1,stroke:a.line.minor.color},animations:{enabled:t.viewModel.animations.enabled,trackBy:Ha.lines.trackBy,compensateForLayoutChanges:Ha.lines.compensateForLayoutChanges}},m=!!e.showMiniChartForContinuousAxis&&{type:"range",key:"range-brush-highlighter",layout:{dock:"@scrollbar"},settings:{scale:t.reducedDataModel.scales.major,brush:"selection",fill:"#6CB33F",opacity:.2}};if(o.isTime){if(d){const e=n?"end":"start",r=n?1:0,o="bottom"===t.dockService.meta.major.dock?0:1,a={label:{fill:s.fill,fontSize:s.fontSize,fontFamily:s.fontFamily},majorGuideLine:{stroke:i.line.major.color},minorGuideLine:{stroke:i.line.minor.color}},d={type:"time-axis",renderer:"svg",layout:{dock:t.dockService.meta.major.dock,minimumLayoutMode:p},preferredSize:()=>({size:2*parseFloat(s.fontSize),edgeBleed:{left:1,right:1}}),settings:{anchor:e,label:{align:o,justify:r},guideLine:{major:{justify:r},minor:{align:o}}},style:a,animations:{enabled:t.viewModel.animations.enabled,trackBy:Ha.axes.trackBy({isTime:!0}),compensateForLayoutChanges:Ha.axes.compensateForLayoutChanges({isTime:!0})}};u.push(he(!0,{},d,{key:IL,scale:Jq.SCALE.MAIN.MAJOR_INNER,settings:{guideLine:{minor:{show:!0}},line:{show:!l&&0===c}},style:he(!0,{},a,{line:{stroke:i.line.major.color},majorGuideLine:{stroke:i.line.minor.color},minorGuideLine:{stroke:i.line.major.color}})})),u.push(he(!0,{},d,{key:zL,scale:Jq.SCALE.MAIN.MAJOR,settings:{guideLine:{minor:{show:!1}},line:{show:!1}}})),u.push({type:"axis-overlay",key:"outer-axis-overlay",scale:Jq.SCALE.MAIN.MAJOR,layout:{dock:`@${zL}`,minimumLayoutMode:p}}),u.push({type:"axis-overlay",key:"inner-axis-overlay",scale:Jq.SCALE.MAIN.MAJOR_INNER,layout:{dock:`@${IL}`,minimumLayoutMode:p}}),u.push(m)}return u.push(he(!0,{},f,{key:"inner-time-grid",x:{scale:Jq.SCALE.MAIN.MAJOR_INNER},ticks:{stroke:a.line.minor.color}})),u.push(he(!0,{},f,{key:"outer-time-grid",x:{scale:Jq.SCALE.MAIN.MAJOR}})),u}if(o.isContinuous){const e="continuous-axis";d&&(u.push({type:"axis",key:e,renderer:Za(t.flags),scale:Jq.SCALE.MAIN.MAJOR,layout:{dock:t.dockService.meta.major.dock,minimumLayoutMode:p},settings:{labels:{align:0,offset:4,fill:s.fill,fontSize:s.fontSize,fontFamily:s.fontFamily},ticks:{show:!0,stroke:i.line.major.color},line:{show:!r},minorTicks:{show:!1}},animations:{enabled:t.viewModel.animations.enabled,trackBy:Ha.axes.trackBy({isContinuous:!0}),compensateForLayoutChanges:Ha.axes.compensateForLayoutChanges({isContinuous:!0})}}),u.push({type:"axis-overlay",key:"inner-axis-overlay",scale:Jq.SCALE.MAIN.MAJOR,layout:{dock:`@${e}`,minimumLayoutMode:p}}),u.push(m)),u.push(he(!0,{},f,{key:"continuous-grid",x:{scale:Jq.SCALE.MAIN.MAJOR},minorTicks:{show:!0}}))}return u}(e,t,n,r)):i.push(...function(e,t,n,r){if("none"===e.dimensionAxis.show)return[];const{meta:o}=t.layoutService,i=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),c="horizontal"===t.dockService.meta.major.orientation,u=c?e.dimensionAxis.label:"auto",d="horizontal"===u?void 0:t.dockService.meta.minor.size/4,p=t.styleService.axis.label.getStyle(),f={type:"axis",renderer:Za(t.flags),layout:{dock:t.dockService.meta.major.dock,minimumLayoutMode:PL[`${t.dockService.meta.major.orientation}DimensionAxis`].minimumLayoutMode},settings:{labels:{show:!("title"===e.dimensionAxis.show),mode:u,tiltAngle:n?-40:40,maxEdgeBleed:50,maxLengthPx:d,...p},line:{show:!r,stroke:i.axis.line.major.color}},brush:{consume:[{context:"selection",data:["selectionDimension","axisSelectionDimension"],style:{inactive:{opacity:.3}}}]},animations:{enabled:t.viewModel.animations.enabled,trackBy:Ha.axes.trackBy({isMajor:!0}),compensateForLayoutChanges:Ha.axes.compensateForLayoutChanges({isHorizontal:c})}};l&&a.push(he(!0,{},f,{key:"group-axis",scale:Jq.SCALE.MAIN.MAJOR_INNER,settings:{paddingEnd:s?10:4,labels:{mode:s?"horizontal":f.settings.labels.mode,maxGlyphCount:jL.getGroupAxisMaxGlyphCount(e.qHyperCube),maxLengthPx:d},line:{show:(c||!s)&&f.settings.line.show}}}));const m=jL.getBarAxisMaxGlyphCount(e.qHyperCube,o.isStackedByDimension);return s&&a.push(he(!0,{},f,{key:Jq.COMPONENT.BAR_AXIS,scale:Jq.SCALE.MAIN.MAJOR,settings:{paddingEnd:4,labels:{maxGlyphCount:m,maxLengthPx:d,tiltThreshold:m>FL&&m<BL?1:void 0},line:{show:!(c&&l)&&f.settings.line.show}}})),c||2!==a.length?a:[a[1],a[0]]}(e,t,n,r));const l=t.themeService.getStyles(),c=t.styleService.axis.label.getStyle();return a&&i.push({type:"axis",key:"y-axis",renderer:Za(t.flags),formatter:Jq.FORMATTER.MINOR,layout:{dock:t.dockService.meta.minor.dock,minimumLayoutMode:PL.measureAxis.minimumLayoutMode},scale:Jq.SCALE.MAIN.MINOR,settings:{labels:{show:s,...c},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:Ha.axes.trackBy({isMeasure:!0}),compensateForLayoutChanges:Ha.axes.compensateForLayoutChanges({isMeasure:!0,dock:t.dockService.meta.minor.dock})}}),i}var HL={BAR:{STROKE:{COLOR:"#205891",WIDTH:{NONE:0,SMALL:1,MEDIUM:2,LARGE:4}}}};function $L({layoutService:e,discrete:t}){var n;const{isContinuous:r,isGrouped:o}=e.meta;if(r)return 1;const i=(e.getLayoutValue("components",[])||[]).filter((e=>"bar"===e.key))[0];if(null!=i&&null!==(n=i.style)&&void 0!==n&&n.width){const{style:e}=i;return e.strokeWidth&&"none"!==e.strokeWidth?function(){const n=HL.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?.9:.7}const VL={FULL:16,MEDIUM:14,SMALL:12,XSMALL:8,SPARK:4};function WL(e,t,n={}){return({data:r})=>{const o=e.chart.component(t).rect;if(!r.items.length||!o)return 2;const{min:i,max:a}=e.viewState.get("zoom");if(n[[i,a]])return n[[i,a]];const s=VL[ve.getLayoutMode(o.width,Number.MAX_VALUE)];n={};const l=Math.abs(a-i),c=Math.abs(e.viewCache.get("continuousMax")-e.viewCache.get("continuousMin"));if(0===c)return s;const u=function(e,t,n){return e*(1-n)+t*n}(2,s,1-Math.min(l/c/.2,1));return n[[i,a]]=Math.max(2,Math.min(s,u)),n[[i,a]]}}function UL(e,t){const{hasExplicitMax:n,explicitMax:r}=t;return!!n&&e>r&&r<=0}function KL(e,t){const{hasExplicitMin:n,explicitMin:r}=t;return!!n&&e<r&&r>=0}function GL(e,t){const{hasExplicitMax:n,explicitMax:r}=t;return!!n&&e>r&&r>0}function YL(e,t){const{hasExplicitMin:n,explicitMin:r}=t;return!!n&&e<r&&r<0}const XL="max",JL="min",ZL={min:"Min",max:"Max"};function QL(e,t,n){return void 0===n?UL(e,t)||KL(e,t):n===XL?UL(e,t):KL(e,t)}function eN({minorMinMax:e,type:t}){return!(function({minorMinMax:e,type:t}){return!e[`hasExplicit${ZL[t]}`]}({minorMinMax:e,type:t})||function({minorMinMax:e,type:t}){const n=t===XL?e.implicitMax:e.implicitMin;return!QL(Number(n.toFixed(13)),e,t)}({minorMinMax:e,type:t}))}function tN(e,{barComponent:t,type:n,isStacked:r}){const{viewCache:o,dockService:i,themeService:a}=e,s=o.get("minorMinMax");if(!s.hasExplicitMinMax)return!1;const l=n===XL?s.implicitMax:s.implicitMin;if(!QL(Number(l.toFixed(13)),s,n))return!1;const{orientation:c}=t.settings,u=n===XL?i.meta.minor.end:i.meta.minor.start;let d="end";r&&(d=n===XL?"sumOfPositives":"sumOfNegatives");const p=a.getStyles();return{type:"box-out-of-bounds",key:`bar-oob-${n}`,layout:{dock:u},data:t.data,brush:t.brush,settings:{orientation:c,major:t.settings.major,minor:t.settings.minor,dockValue:De.getDockValue(u),oob:he({},t.settings.box,{fill:p.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)&&QL(e.datum[d].value,s,n))}})},animations:{enabled:e.viewModel.animations.enabled,compensateForLayoutChanges:Ha.barOobs.compensateForLayoutChanges}}}function nN(e){return Math.min(Math.max(0,e),1)}const rN=(e,{chart:t,type:n,componentKey:r,collectionKey:o})=>{const{layoutService:i,dockService:a,viewCache:s}=e,{isStacked:l}=i.meta,c=s.get("minorMinMax"),{meta:u}=e.layoutService;if(!eN({minorMinMax:c,type:n}))return!1;let d;u.isGroupedByDimension?d=({scale:e,datum:t})=>e([t.group.value,t.value])+e.bandwidth([t.group.value,t.value])/2:u.isGroupedByMeasure&&(d=({scale:e,datum:t})=>e([t.value,t.measureIndex.value])+e.bandwidth()/2);const p={type:"box",key:`${Jq.COMPONENT.GHOST_BAR_OOB}-${n}`,data:{collection:o},settings:{orientation:a.meta.minor.orientation,major:{scale:Jq.SCALE.MAIN.MAJOR,fn:d},minor:{scale:Jq.SCALE.MAIN.MINOR,start(e){var n;return nN(t.scale(Jq.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(Jq.SCALE.MAIN.MINOR);let o="end";l&&(o="max"===n?"sumOfPositives":"sumOfNegatives");const i=e.datum[o]?e.datum[o].value:r[n]();return nN(r(i))}},box:{width:$L({layoutService:e.layoutService,discrete:e.discrete}),minWidthPx:2,fill:"none",stroke:"transparent",show:e=>{const r=t.scale(Jq.SCALE.MAIN.MINOR);let o="end";l&&(o="max"===n?"sumOfPositives":"sumOfNegatives");const i=e.datum[o]?e.datum[o].value:r.max();return"max"===n?i>r.max():i<r.min()}},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}}};return p};function oN(e,t){const{style:n,styleService:r,dockService:o}=t,i=r.label.getStyle(),a=i.useContrastColor&&!e.onBackground?function(e){return function(t){return Ht.isDark(t.node.attrs.fill)?e.lightColor:e.darkColor}}(n):i.fill,s="horizontal"===o.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 iN(e){return{placements:e.simplifiedPlacements.map((t=>oN(t,e))),label:e.label}}function aN(e,t){if(t){if(function(e,t){return UL(e,t)}(e,t))return-1;if(function(e,t){return KL(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)}function sN(e,t,n,r){const o=aN(e,r);let i="up";return"vertical"===t&&o<0?i="down":"horizontal"===t&&(i=o>=0&&!n||o<0&&n?"right":"left"),i}function lN(e,t){const{dataPoint:n}=e;if(!n.showLabels)return!1;const{isStacked:r,isContinuous:o}=t.layoutService.meta;return!r||!o&&!!n.showSegmentLabels}function cN(e,t){const{dataPoint:n}=e;if(!n.showLabels)return!1;const{isStacked:r,isContinuous:o}=t.layoutService.meta;return!!r&&(!!o||!1!==n.showTotalLabels)}function uN(e,t,n,r){const o=[];return void 0!==e&&(o[e]={position:"outside",onBackground:!0,justify:0,overflow:r}),void 0!==t&&(o[t]={position:"inside",onBackground:!1,justify:n}),o}function dN({layout:e,component:t,minorScale:n},r,o){if(!lN(e,r))return!1;const{viewModel:i,ds:a,viewCache:s,layoutService:l,dockService:c,themeService:u}=r,{meta:d}=l,p=s.get("minorMinMax"),f=u.getStyles(),m=r.styleService.label.getStyle();let h;!d.isStacked&&(h=d.isStacked?1:0);const g=0===h?1:0,y=d.isStacked?.5:1,v=i.fields.minor[0],b=void 0===v?void 0:a.field(v).formatter();let x,S=-1;x=d.isStacked?d.isStackedByMeasure||!b?function(e){return e.data.segment.label}:function(e){return Math.abs(e.data.segment.value)>S?b(e.data.segment.value):""}:function(e){return e.data.end.label};const M={label:x,simplifiedPlacements:uN(h,g,y,d.isContinuous),style:f.label.value},C=[iN(he(r,M))],w={component:t,selector:"rect",strategy:{type:"bar",settings:{direction:e=>sN(e.data.end.value,c.meta.minor.orientation,o,p),labels:C,fontSize:parseInt(m.fontSize,10),fontFamily:m.fontFamily,linkData:Ha.labels.linkData}}},k=[w],E={key:"bar-labels",type:"labels",renderer:Za(r.flags),layout:{minimumLayoutMode:"XSMALL"},settings:{sources:k},animations:{enabled:r.viewModel.animations.enabled,trackBy:Ha.labels.trackBy,compensateForLayoutChanges:Ha.labels.compensateForLayoutChanges}};return d.isStackedByDimension&&b&&(E.beforeRender=()=>{S=function(e,t,n){const r="vertical"===t.dockService.meta.minor.orientation?"height":"width",o=t.chart.component(e),i=o&&o.rect?o.rect[r]:1,a=n?n.min():0;return 9.999*((n?n.max():0)-a)/i}(t,r,n)}),E}const pN={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,o){if(n.isStacked&&("bar-oob-max"===t.key||"bar-oob-min"===t.key))return!1;const i=t.data,a=n.isStacked?r.viewModel.fields.minor[n.isStackedByDimension?0:i.measureIndex.value]:void 0,s=n.isStacked?{source:{key:i.source.key,field:a},label:!0===(null===(l=i.null)||void 0===l?void 0:l.value)?"":n.isStackedByDimension&&o?o(i.segment.value):i.segment.label}:i.end;var l;return Ve.getMeasure(e,s)},getMeasures(e,t,n,r,o){const i=e.resources.dataset;return t.map((e=>pN.getMeasure(i,e,n,r,o))).filter(Boolean)},getCustomTooltipAttrExps(e,t,n){const r=e.resources.dataset;return CT({nodes:t,layout:n.layoutService.getLayout(),dataset:r})},extractBarTooltipData(e,t,n,r,o){const i={title:pN.getTitle(t,n),color:Ve.getColor(e,t,r),measures:pN.getMeasures(e,t.childrenNodes?t.childrenNodes:[t],n,r,o)};if(pN.useCustomTooltip(r)){var a,s;const n=pN.getCustomTooltipAttrExps(e,t.childrenNodes?t.childrenNodes:[t],r);i.customMeasures=n.customTooltipAttrExpsArr,i.customTitle=n.customTooltipInfoAttrExpsArr.filter((e=>e.id===aT.CUSTOM.TITLE)),i.customDescription=n.customTooltipInfoAttrExpsArr.filter((e=>e.id===aT.CUSTOM.DESCRIPTION));let o=[];(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])&&(o=e.data.customTooltipImages)})),o.length>0&&(i.customImages=o);const d=r.layoutService.getLayout();var l,c,u;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=(c=r.app).isInModalSelection)&&void 0!==l&&l.call(c)){if((null==d||null===(u=d.qHyperCube)||void 0===u||null===(u=u.qDimensionInfo)||void 0===u?void 0:u.length)>0){hT.destroyVisualization({customTooltipModel:r.customTooltipModel});const e=r.customTooltipModel.translator.get("properties.tooltip.notselectedmessage");i.customLimitation=e}}else{const t=hT.createContainer({ctx:e,layout:d});i.customChart=t}}return i},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,o=[e.data.sumOfPositives.value,e.data.sumOfNegatives.value].filter((e=>0!==e)).map((e=>({label:`${pN.getTotalStackTitle(e,t)}`,value:n?n(e):e})));return{title:r,measures:o}},extractTooltipData(e,t){const n=t.chart.formatter(Jq.FORMATTER.MINOR),{meta:r}=t.layoutService,o=e.node.childrenNodes?e.node.childrenNodes:[e.node],i=Math.max(0,o.length-6);o.length=Math.min(o.length,6);const{stackTotalBarNodes:a}=e.node,s=a&&a.length?a.map((e=>pN.extractStackTotalBarTooltipData(e,t.translator,n))):[];return{barTooltipData:o.map((o=>pN.extractBarTooltipData(e,o,r,t,n))),stackTotalBarTooltipData:s,numInvisibleNodesPhase1:i}},extractBarNodeData(e,t,n,r,o,i,a){let s=!o&&Ve.getTitleRow(t,r);const l=Ve.hideColorRow(t,n),c=!i&&!l&&Ve.getColorRow(e,t,r),u=t.measures.map((o=>!a&&Ve.getMeasureRow(o,e,t,r,l&&o.field===n.coloring.field))),d=u.filter((e=>!pN.isSameMeasureAndColorRow(e,c,r)));if(pN.useCustomTooltip(n)){const n=o?[]:t.customMeasures.map((n=>Ve.getMeasureRow(n,e,t,r,!1))),i=!(!t.customTitle[0]||o)&&Ve.getTitleRow(t.customTitle[0],r),a=!(!t.customDescription[0]||o)&&Ve.getDescriptionRow(t.customDescription[0],r);s=!pN.shouldIgnoreTitleRowForCtt(i,a,d,n)&&s;const l=[i,a,s,c,...d,...n];if(t.customChart&&l.push(t.customChart),t.customLimitation&&l.push(bT.getFooterRow(t.customLimitation,r)),t.customImages){const n=t.customImages.map((t=>bT.getImageRow(t,e)));l.push(...n)}return l.filter(Boolean)}return[s,c,...d].filter(Boolean)},extractStackTotalBarNodeData(e,t,n){const r=!!t.measures.length&&Ve.getTitleRow(t,n),o=t.measures.map((r=>Ve.getMeasureRow(r,e,t,n,!1)));return[r,...o].filter(Boolean)},useCustomTooltip:e=>o(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)=>pN.useCustomTooltip(t)&&o(e,"tooltip.hideBasic",0),extractBarsData(e,t,n,r){const{meta:o}=t.layoutService,i=t.layoutService.getLayout(),a=r.length;let s,l,c=[];const u=pN.shouldIgnoreDefaultRows(i,t);for(s=0;s<a;s++){l=r[s];const i=pN.shouldIgnoreTitleRow(o,s),d=u||pN.shouldIgnoreColorRow(o,s),p=u||pN.shouldIgnoreMeasureRow(d,l,t);if(c=c.concat(pN.extractBarNodeData(e,l,t,n,i,d,p)),c.length>=6||l.customImages||l.customChart||l.customLimitation)return{barsData:c,numInvisibleNodesPhase2:a-(s+1)}}return{barsData:c,numInvisibleNodesPhase2:0}},extractStackTotalBarsData(e,t,n){let r=[];return n.some((e=>e.measures.length))&&n.forEach((n=>{r=r.concat(pN.extractStackTotalBarNodeData(e,n,t))})),r},extractData(e,t,n){const{barTooltipData:r,numInvisibleNodesPhase1:o,stackTotalBarTooltipData:i}=pN.extractTooltipData(e,t),a=pN.extractStackTotalBarsData(e,n,i);a.length&&a.push(Ve.getSeparatorRow());const{barsData:s,numInvisibleNodesPhase2:l}=pN.extractBarsData(e,t,n,r),c=a.concat(s),u=o+l;return u&&c.push(Ve.getNMoreRow(u,t.translator,n)),c},calculateBoundsFromBars(e){const t=e.filter((e=>{const t=e.bounds;return t.width>0&&t.height>0})),n=t.length?t:e;return Ya.combineBounds(n.map((e=>e.bounds)))},calculateBoundsFromScale({opts:e,barKey:t,scale:n,majorScale:r,data:o,groupProp:i}){const a=e.chart.component(t).rect,{orientation:s}=e.dockService.meta.major,l="horizontal"===s?"width":"height",c=e.chart.scale(n).pxScale(a[l]);let u,d,p;if(e.layoutService.meta.isGroupedByMeasure){const t=e.viewModel.fields.minor.length;u=o.value,d=n===r&&void 0!==u?(c([u,0])+c([u,t-1]))/2:0,p=n===r&&void 0!==u?c.bandwidth([u,0]):0}else{const{value:e}=o;u=o[i]?o[i].value:void 0,d=c(n===r&&void 0!==u?[u,e]:e),p=n===r&&void 0!==u?c.bandwidth([u,e]):c.bandwidth(e)}const f=(d+p/2)*a[l],m={width:0,height:0};return"horizontal"===s?(m.x=f,m.y=a.height):(m.y=f,m.x=0),m},calculateTotalBounds({opts:e,labels:t,bars:n,barKey:r,barAxisKey:o,majorScale:i,majorInnerScale:a,groupProp:s}){const l=n.filter((e=>e.children&&e.children.length));let c;return c=l.length?pN.calculateBoundsFromBars(l):pN.calculateBoundsFromScale({opts:e,barKey:r,scale:t[0].key===o?i:a,majorScale:i,data:t[0].data,groupProp:s}),c},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 o=e.filter((e=>t.some((t=>n(e,t,r)))));return o},findBarsFromGroupLabelsInGroupedByDim(e,t,n){const r=pN.isBarMatchingLabelOnProp;return pN.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=pN.isBarMatchingLabel;return pN.findBarsMatchingLabels(e,t,n)},findBarsFromLabelsInGroupedByDim(e,t,n,r){const o=t.filter((e=>e.key===n)),i=t.filter((e=>e.key!==n)),a=pN.findBarsFromBarLabelsInGroupedByDim(e,o,r),s=pN.findBarsFromGroupLabelsInGroupedByDim(e,i,r);return a.concat(s)},findStackTotalBarsFromLabelsInStackedByDim(e,t){const n=pN.isBarMatchingLabel;return pN.findBarsMatchingLabels(e,t,n)},findStackTotalBarsFromLabelsInStackedByMeasure(e,t){const n=pN.isBarMatchingLabel;return pN.findBarsMatchingLabels(e,t,n)},findBarsFromLabelsInStackedByDim(e,t,n){const r=pN.isBarMatchingLabelOnProp;return pN.findBarsMatchingLabels(e,t,r,n)},findBarsFromLabelsInStackedByMeasure:(e,t)=>pN.findBarsFromLabelsInSingleDim(e,t),findBarsFromLabels({labels:e,opts:t,filterKeys:n,barAxisKey:r,groupProp:o,stackProp:i}){const{meta:a}=t.layoutService,s=pN.filterNodesOnKeys(t.chart.findShapes("container"),n);return a.isStackedByDimension?pN.findBarsFromLabelsInStackedByDim(s,e,i):a.isStackedByMeasure?pN.findBarsFromLabelsInStackedByMeasure(s,e):a.isGroupedByDimension?pN.findBarsFromLabelsInGroupedByDim(s,e,r,o):pN.findBarsFromLabelsInSingleDim(s,e)},findStackTotalBarsFromLabels({labels:e,opts:t,stackTotalBarKey:n}){const{meta:r}=t.layoutService;if(r.isStacked){const o=pN.filterNodesOnKeys(t.chart.findShapes("container"),[n]);return r.isStackedByDimension?pN.findStackTotalBarsFromLabelsInStackedByDim(o,e):pN.findStackTotalBarsFromLabelsInStackedByMeasure(o,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:o,barOobMaxKey:i,barOobMinKey:a,groupProp:s,stackProp:l,majorScale:c,majorInnerScale:u,filterFn:d}){const{meta:p}=t.layoutService;if(e.length){let f=pN.findBarsFromLabels({labels:e,opts:t,filterKeys:[n],stackTotalBarKey:r,barAxisKey:o,barOobMaxKey:i,barOobMinKey:a,groupProp:s,stackProp:l});if(d&&(f=f.filter(d)),pN.isSingleBarMode(p,f))return[f[0]];if(f.length){let p=pN.findBarsFromLabels({labels:e,opts:t,filterKeys:[n,i,a],stackTotalBarKey:r,barAxisKey:o,barOobMaxKey:i,barOobMinKey:a,groupProp:s,stackProp:l});d&&(p=p.filter(d));const m=pN.calculateTotalBounds({opts:t,labels:e,bars:p,barKey:n,barAxisKey:o,groupProp:s,majorScale:c,majorInnerScale:u}),h=pN.findStackTotalBarsFromLabels({labels:e,opts:t,stackTotalBarKey:r}),g={key:n,bounds:m,childrenNodes:f,data:f.map((e=>e.data)),stackTotalBarNodes:h};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:o,groupAxisKey:i,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:c,majorScale:u,majorInnerScale:d}){let p=pN.filterNodesOnKeys(e,[o,i]),f=p&&p.length?[p[0]]:[];const m=pN.filterNodesOnLabels({labels:f,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:o,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:c,majorScale:u,majorInnerScale:d});if(m&&m.length)return m;const{meta:h}=t.layoutService;if(h.isStackedByMeasure){p=pN.filterNodesOnKeys(e,[a,s]),f=p&&p.length?[p[0]]:[];const i=e=>pN.filterNodesForOob(e,n,a),m=pN.filterNodesOnLabels({labels:p,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:o,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:c,majorScale:u,majorInnerScale:d,filterFn:i});if(m&&m.length)return m[0].stackTotalBarNodes=void 0,m}if(h.isStackedByDimension){p=pN.filterNodesOnKeys(e,[a,s]),f=p&&p.length?[p[0]]:[];const i=e=>pN.filterNodesForOob(e,n,a),m=pN.filterNodesOnLabels({labels:p,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:o,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:c,majorScale:u,majorInnerScale:d,filterFn:i});if(m&&m.length)return m[0].stackTotalBarNodes=void 0,m}const g=pN.filterNodesOnKeys(e,[n,a,s]);return g.length?[g[0]]:[]}};function fN(e,t={},n){let r=[];const o=Fe({key:Jq.COMPONENT.BASE_TOOLTIP,rtl:n});return he(!0,o,{scale:Jq.SCALE.MAIN.COLOR,settings:{filter:e=>pN.filterNodes({nodes:e,opts:t,barKey:Jq.COMPONENT.BAR,stackTotalBarKey:Jq.COMPONENT.STACK_TOTAL_BAR,barAxisKey:Jq.COMPONENT.BAR_AXIS,groupAxisKey:Jq.COMPONENT.GROUP_AXIS,barOobMaxKey:Jq.COMPONENT.BAR_OOB_MAX,barOobMinKey:Jq.COMPONENT.BAR_OOB_MIN,groupProp:"group",stackProp:"stack",majorScale:"major",majorInnerScale:"majorInner"}),extract:e=>(r=e.node.childrenNodes?e.node.childrenNodes:[e.node],pN.extractData(e,t,n)),placement:"bounds",afterShow:()=>{var e;const{app:o,properties:i,customTooltipModel:a}=t;o&&(null===(e=o.isInModalSelection)||void 0===e||!e.call(o))&&a.useCustomTooltip&&a.embed&&hT.show({app:o,properties:i,selectedNodes:r,customTooltipModel:a,rtl:n})}},style:{content:{fontFamily:t.themeService.getStyles().fontFamily}}})}const mN={extractData:(e,t)=>[Ve.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 hN(e,t={},n){if("categorical"!==t.colorService.getMain().getSettings().type)return!1;const r=Fe({key:Jq.COMPONENT.LEGEND_CAT_TOOLTIP,rtl:n});return he(!0,r,{scale:Jq.SCALE.MAIN.COLOR,settings:{filter:e=>mN.filterNodes(e,Jq.COMPONENT.LEGEND_COLOR_CAT),extract:e=>mN.extractData(e,n),placement:"pointer",direction:n?"rtl":"ltr"},style:{content:{fontFamily:t.themeService.getStyles().fontFamily}}})}function gN(e,{fill:t}){return{[Jq.FORMATTER.MINOR]:{data:{fields:e.viewModel.fields.minor}},[Jq.FORMATTER.COLOR]:t&&t.data&&t.data.field?{data:{field:t.data.field}}:{}}}const yN=1,vN=3;function bN(e){return e.getLayoutValue("gridLine.auto")}function xN(e){return!bN(e)&&e.getLayoutValue("gridLine.spacing")===yN}function SN(e){return!bN(e)&&e.getLayoutValue("gridLine.spacing")===vN}const MN=e=>({enabled:e.animations.enabled,trackBy:Ha.lines.trackBy,compensateForLayoutChanges:Ha.lines.compensateForLayoutChanges}),CN=(e,{themeService:t,layoutService:n,dockService:r,viewModel:o})=>{if(!bN(n)&&function(e){return!e.getLayoutValue("gridLine.spacing")}(n))return!1;const{grid:i}=t.getStyles(),a={key:"grid-line",type:"grid-line",layout:{minimumLayoutMode:PL.measureAxis.minimumLayoutMode},preferredSize:()=>({size:0,edgeBleed:{left:1,right:1,top:1,bottom:1}}),ticks:{show:!xN(n)||((e,t)=>t%2==0),stroke:i.line.major.color},minorTicks:{show:SN(n),stroke:i.line.minor.color},animations:MN(o)};return a["horizontal"===r.meta.major.orientation?"y":"x"]=Jq.SCALE.MAIN.MINOR,a};function wN(e,t){const n=[CN(0,t)];return n[0]&&n.push((({dockService:e,themeService:t,viewCache:n,viewModel:r})=>{const o=n.get("minorMinMax");if(o.min>0||o.max<0)return!1;const i=t.getStyles(),a={};return a["horizontal"===e.meta.minor.orientation?"x":"y"]=[{value:0,scale:Jq.SCALE.MAIN.MINOR,line:{stroke:i.grid.line.highContrast.color}}],{key:"high-contrast-grid-line",type:"ref-line",scale:Jq.SCALE.MAIN.MINOR,lines:a,animations:MN(r)}})(t)),n}const kN="areaPan",EN=e=>({type:"Pan",key:"panorama",options:{event:kN,pointers:1,threshold:10,enable(t,n){return this.started===kN||!n||!!e.actions.scroll.enabled()&&e.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>e.key===Jq.COMPONENT.BAR))}},events:{areaPanstart(t){t.preventDefault(),this.started=kN;const n=e.viewState.get("zoom");this[kN]={min:n.min,max:n.max,size:e.chart.component(Jq.COMPONENT.BAR).rect.computedInner.width,span:n.max-n.min}},areaPanmove(t){t.preventDefault();const{span:n,min:r,max:o,size:i}=this[kN],a=-t.deltaX/i;e.viewState.set("zoom",{min:Math.min(r+a*n,e.viewCache.get("continuousMax")-n),max:Math.max(o+a*n,e.viewCache.get("continuousMin")+n)})},areaPanend(e){e.preventDefault(),this.started=!1},areaPancancel(e){e.preventDefault(),this.started=!1}}});function TN(e,t){if(e.layoutService.meta.isDiscrete)return{};const{viewCache:n,viewState:r,chart:o}=e,{rtl:i}=t,a=ng.event.onZoom({viewCache:n,viewState:r,chart:o},{threshold:100,rtl:i,targetKey:Jq.COMPONENT.BAR}),s={last: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===Jq.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 qN({chart:e},t,n){const r=e.component(Jq.COMPONENT.BASE_TOOLTIP);var o;r&&r.show&&(r.emit("hide"),null!=n&&null!==(o=n.customTooltipModel)&&void 0!==o&&o.useCustomTooltip&&t&&t({},r,{nodes:[],opts:n,customTooltipModel:n.customTooltipModel,hide:!0}));const i=e.component(Jq.COMPONENT.LEGEND_CAT_TOOLTIP);i&&i.show&&i.emit("hide");const a=e.component(Jq.COMPONENT.TREND_LINES_TOOLTIP);a&&a.show&&a.emit("hide")}function LN(e,t){const{viewCache:n,viewState:r,chart:o,trendLineModel:i,layoutService:a}=e,{rtl:s}=t,l=e.layoutService.meta.isContinuous?ng.event.onZoom({viewCache:n,viewState:r,chart:o},{rtl:s,threshold:50,targetKey:Jq.COMPONENT.BAR}):void 0,c=Bq({majorInnerScale:Jq.SCALE.MAIN.MAJOR_INNER,tooltip:Jq.COMPONENT.TREND_LINES_TOOLTIP,tooltipOverlay:Jq.COMPONENT.TREND_LINES_TOOLTIP_OVERLAY},{chart:o,viewState:r,trendLineModel:i,layoutService:a,rtl:s}),u=[Jq.COMPONENT.BAR,Jq.COMPONENT.BAR_AXIS,Jq.COMPONENT.GROUP_AXIS,Jq.COMPONENT.BAR_OOB_MAX,Jq.COMPONENT.BAR_OOB_MIN],d=e.customTooltipModel.utils,p=e.debouncer(d.displayTooltip,d.DEBOUNCE_THRESHOLD);return{type:"native",events:{wheel(t){let n,r=!1;if(e.actions.scroll.enabled()){const o={x:t.clientX,y:t.clientY};[n]=e.chart.componentsFromPoint(o).filter((e=>e.key===Jq.COMPONENT.BAR)),n&&(e.layoutService.meta.isContinuous&&l(o,Math.sign(-t.deltaY)),r=!0)}!r&&e.actions.interact.enabled()&&([n]=e.chart.componentsFromPoint(t).filter((e=>e.key===Jq.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(),qN(e,p,e)},mousemove(t){if(e.actions.tooltip.enabled()){if(c(t))return;const n=this.chart.componentsFromPoint({x:t.clientX,y:t.clientY}),r=this.chart.component(Jq.COMPONENT.BASE_TOOLTIP);if(r&&r.show)if(n.some((e=>u.indexOf(e.key)>-1))){const{customTooltipModel:n}=e;if(n.useCustomTooltip&&d.checkIfPromisesExist({customTooltipModel:n})){const o=d.getNodes(t,this.chart);p(t,r,{nodes:o,opts:e,customTooltipModel:n})}else r.emit("show",t)}else r.emit("hide");const o=this.chart.component(Jq.COMPONENT.LEGEND_CAT_TOOLTIP);o&&o.show&&(n.some((e=>e.key===Jq.COMPONENT.LEGEND_COLOR_CAT))?o.emit("show",t):o.emit("hide"))}},mouseup(t){2===t.button&&qN(this,p,e)},mouseleave(){qN(this,p,e)}}}}const NN=(e,t)=>({type:"hammer",enable:!0,gestures:[...(t.hammer||{}).gestures||[],...Sg({...e,componentKey:"scrollbar",rtl:t.rtl}).gestures,...e.layoutService.meta.isDiscrete?e.discrete.interactions.gestures:[EN(e),TN(e,t)]]});function ON(e,t){const n=[NN(e,t),LN(e,t),Sg({...e,componentKey:"scrollbar",rtl:t.rtl}).native];return e.layoutService.meta.isDiscrete&&n.push(e.discrete.interactions.native),n}const DN=e=>({enabled:e.animations.enabled,compensateForLayoutChanges:Ha.bars.compensateForLayoutChanges});const AN=(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:o},{collectionKey:i}){return{type:"box",key:"mini-marker",layout:{dock:"@scrollbar"},show:()=>r.getDimensionCardinality()>1,data:{collection:i},settings:{box:he(!0,{},e.settings.box,{minWidthPx:2,fill:n.getMini().getColor(),strokeWidth:0}),major:he(!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:DN(o)}}(e,t,{collectionKey:n});const{mode:r,scales:o}=t.reducedDataModel;let i;return r.isGroupedByDimension&&!r.isReduced?i=({scale:e,datum:t})=>e([t.group.value,t.value])+e.bandwidth([t.group.value,t.value])/2:r.isGroupedByMeasure&&(i=({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:o.major,fn:i},minor:{scale:o.minor},orientation:e.settings.orientation,oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},animations:DN(t.viewModel)}},{measureText:RN}=t.renderer("svg")();function PN(e,t,n){const r=function(e){const t=he(!0,{},e);return delete t.data,t}(t.minor),o=function(e,t,{majorScaleInvert:n,maxPxStep:r,align:o,getProp:i}){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:o};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=he(!0,{},t),a.data.extract.source="miniCube"):e.mode.isContinuous&&(a=he(!0,{},t,{min:()=>i("continuousMin"),max:()=>i("continuousMax")})),a}(e,t.major,n);return{reducedMinor:r,reducedMajor:o}}const IN=50,zN=100,jN=200;function FN(e,t){const n=function(e){const t=e.getLayoutValue("measureAxis.spacing",1);switch(t){case.5:return IN;case 1:return zN;case 2:return jN;default:return 125*t}}(t);return Math.max(1,Math.round(e/n))}function BN(e,t,n){return 0===t||t===Math.floor((n.length-1)/2)||t===n.length-1}function _N(e,t,n){return 0===t||0===e||t===n.length-1}function HN(e){for(let t=1;t<e.length;t++)if(e[t]===e[t-1])return!0;return!1}function $N(e,t,n,r,o){e.domain([t,n]),e.nice(10);const[i,a]=e.domain();let s=e.ticks(10);const l=function(e){return e.length%2==0}(s),c=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),u=c?_N:BN;s=s.filter(u),l&&!c&&!r&&s.length>1&&(s=[s[0],(s[0]+s[s.length-1])/2,s[s.length-1]]);const d=o?o.formatter(Jq.FORMATTER.MINOR):void 0;return HN(d?s.map(d):s)&&(s=[s[0],s[s.length-1]]),{roundedMin:i,roundedMax:a,ticks:s}}function VN(e,t,n,r,o,i,a,s){const l=i.formatter(Jq.FORMATTER.MINOR),c=s.getStyles(),u="horizontal"===a.meta.major.orientation?"height":"width",d=e=>RN({text:e,fontSize:c.axis.label.name.fontSize,fontFamily:c.axis.label.name.fontFamily})[u];let[p,f]=e.domain(),m=e.ticks(r);function h(){const e=m.map(l);return!HN(e)&&function(e){const t=o/m.length;return Math.max(...e.map(d))<=t}(e)}for(let o=r-1;o>0&&!h();o--)e.domain([t,n]),e.nice(o),[p,f]=e.domain(),m=e.ticks(o);return{roundedMin:p,roundedMax:f,ticks:m}}const WN=(e,t)=>e.value-t.value,UN=e=>({value:e,isMinor:!1}),KN=e=>({value:e,isMinor:!0});function GN(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 YN({chart:e,viewCache:t,dockService:n,layoutService:r,themeService:o,viewModel:i,ds:a}){const{isButterfly:s}=r.meta,{explicitMin:l,explicitMax:c,hasExplicitMin:d,hasExplicitMax:p}=t.get("minorMinMax"),{min:f,max:m}=function(e){let{min:t,max:n}=e.get("minorMinMax");return t===n&&0===t&&(t-=1,n+=1),{min:t,max:n}}(t),h=s?Math.max(Math.abs(f),Math.abs(m)):m,g=s?-h:f,y=u((()=>{const s=function(e,t,n){let r;return e?r=n.meta.chart.size:({rect:r}=t.component(Jq.COMPONENT.BAR)),"horizontal"===n.meta.major.orientation?r.height:r.width}(t.get("isPreRender"),e,n),u=FN(s,r),f=function(e,t,n){const r=wr().domain([e,t]);return r.nice(n),r}(g,h,u);let m,y,v=[];"SPARK"===n.meta.chart.mode?({roundedMin:m,roundedMax:y}=function(e,t){return{roundedMin:e,roundedMax:t}}(g,h)):(({roundedMin:m,roundedMax:y,ticks:v}=VN(f,g,h,u,s,e,n,o)),GN(v,l,c)&&({roundedMin:m,roundedMax:y,ticks:v}=$N(f,g,h,d||p,e)));const b=function(e,t){const n=[];for(let r=0;r<e.length-1;r++){const o=e[r],i=(e[r+1]-o)/(t+1);for(let e=1;e<=t;e++)n.push(o+i*e)}return n}(v,1);v=function(e,t,n){return e&&n.length&&!n.some((e=>e===t))?(n.unshift(t),n.filter((e=>e>=t))):n}(d,l,v),v=function(e,t,n){return e&&n.length&&!n.some((e=>e===t))?(n.push(t),n.filter((e=>e<=t))):n}(p,c,v);let x=function(e,t){return[...e.map(UN),...t.map(KN)].sort(WN)}(v,b);if(r.meta.isButterfly){const e=i.fields.minor[0],t=void 0===e?void 0:a.field(e).formatter();"function"==typeof t&&(x=x.map((e=>({...e,label:t(Math.abs(e.value))}))))}return{roundedMin:m,roundedMax:y,ticks:x}}),(()=>t.get("isPreRender")));return{values:()=>y().ticks,min:()=>d?l:y().roundedMin,max:()=>p?c:y().roundedMax}}function XN(e,{picasso:t,discrete:n,layoutService:r,dockService:o,viewModel:i,viewCache:a,reducedDataModel:s,colorService:l,themeService:c,viewState:u,chart:d,ds:p},{localeInfo:f,rtl:m}){const{meta:h}=r,{fields:g}=i,y=()=>{if("custom"!==r.getLayoutValue("dimensionAxis.axisDisplayMode"))return Math.min(200,o.meta.chart.size["horizontal"===o.meta.major.orientation?"height":"width"]/4)},v=!("none"===r.getLayoutValue("measureAxis.show"))?(b=o.meta.minor.orientation,x=o.meta.minor.dock,"vertical"===b?"near"===x||"left"===x?0:1:"near"===x||"bottom"===x?1:0):.5;var b,x;const S={},M="vertical"===o.meta.minor.orientation&&m,C=l.getMain().getScales(),w=l.getMini().getScales();if(Object.assign(S,C,{reducedFill:w.reducedFill}),S[Jq.SCALE.MAIN.MINOR]=function({chart:e,viewModel:{fields:t},dockService:n,viewCache:r,viewModel:o,layoutService:i,themeService:a,ds:s},{rtl:l}){const c=YN({chart:e,dockService:n,viewCache:r,layoutService:i,themeService:a,viewModel:o,ds:s}),u={invert:"vertical"===n.meta.minor.orientation||l,ticks:{values:c.values},minorTicks:{count:1},min:c.min,max:c.max};return i.meta.isStacked||(u.data={source:"qHyperCube",fields:t.minor}),u}({chart:d,viewModel:i,dockService:o,viewCache:a,layoutService:r,themeService:c,ds:p},{rtl:m}),h.isGroupedByDimension)[Jq.SCALE.MAIN.MAJOR_INNER,Jq.SCALE.MAIN.MAJOR].forEach(((e,t)=>{S[e]={invert:M,data:{source:"qHyperCube",hierarchy:{label:e=>e.qText?e.qText:"",value:e=>e.qElemNumber,props:{...i.selectionDimensionProp(t),group:h.isGroupedByDimension?{field:g.majorGroup}:void 0}}},label:({datum:e})=>e.label,ticks:{depth:t+1},maxPxStep:y,align:v}})),i.isDimensionLocked(0)||(S[Jq.SCALE.MAIN.MAJOR_INNER].data.hierarchy.props.axisSelectionDimension={field:0});else if(h.isGroupedByMeasure)S[Jq.SCALE.MAIN.MAJOR]={type:"group-by-measure",invert:M,data:{extract:{source:"qHyperCube",field:"qDimensionInfo/0",props:{axisSelectionDimension:{field:0}}}},measureCount:e.qHyperCube.qMeasureInfo.length,maxPxStep:y,align:v};else if(h.isTime){const{innerTime:e,outerTime:n}=function(e,t){const{layoutService:n,viewModel:r,viewCache:o,picasso:i,viewState:a,localeInfo:s,themeService:l}=e,c=()=>n.getHyperCubeValue("qAxisData.qAxis",[]),u=i.formatter("q-time"),d=l.getStyles(),p=e=>RN({text:e,fontSize:d.axis.label.name.fontSize,fontFamily:d.axis.label.name.fontFamily});o.set("qTimeAxisCache",[]);const f={get:(e,t=0)=>{const n=o.get("qTimeAxisCache");return n[t]&&n[t][0]===e?n[t][1]:void 0},set:(e,t,n=0)=>{o.get("qTimeAxisCache")[n]=[e,t]},key:({distance:e})=>{const{min:t,max:n}=a.get("zoom"),r=(n-t)/(o.get("continuousMax")-o.get("continuousMin")),i=c().map((e=>e.qName));return[e,Number.parseFloat(r).toFixed(12),...i].toString()}};return{innerTime:{data:{field:r.fields.majorNumeric},type:"q-time-axis",qAxis:c,field:r.fields.majorNumeric,min:()=>a.get("zoom").min,max:()=>a.get("zoom").max,invert:!!t,formatter:{fn:u,localeInfo:s,qNumFormat:n.getHyperCubeValue("qDimensionInfo.0",{}).qNumFormat,measureText:p},ticks:{generator:{type:"d3",initialMin:a.get("zoom").min},level:"inner",anchor:"start",clamp:!0},cache:f},outerTime:{data:{field:r.fields.majorNumeric},type:"q-time-axis",qAxis:c,field:r.fields.majorNumeric,min:()=>a.get("zoom").min,max:()=>a.get("zoom").max,invert:!!t,formatter:{fn:u,localeInfo:s,qNumFormat:n.getHyperCubeValue("qDimensionInfo.0",{}).qNumFormat,measureText:p},ticks:{generator:{type:"d3"},level:"outer",anchor:"start",clamp:!0},cache:f}}}({picasso:t,localeInfo:f,viewState:u,viewModel:i,viewCache:a,themeService:c,layoutService:r},m);S[Jq.SCALE.MAIN.MAJOR_INNER]=e,S[Jq.SCALE.MAIN.MAJOR]=n}else h.isContinuous?S[Jq.SCALE.MAIN.MAJOR]={type:"linear",invert:M,data:{extract:{key:"qHyperCube",field:g.majorNumeric}},ticks:{forceBounds:!0,count:u.get("zoom").min===u.get("zoom").max?1:void 0},minorTicks:{count:1},min:()=>u.get("zoom").min,max:()=>u.get("zoom").max}:S[Jq.SCALE.MAIN.MAJOR]={invert:M,data:{extract:h.isDimensionless?g.minor.map(((t,n)=>({field:t,label:()=>e.qHyperCube.qMeasureInfo[n].qFallbackTitle,value:n}))):{source:"qHyperCube",field:"qDimensionInfo/0",props:{axisSelectionDimension:{field:0}}}},type:h.isDimensionless?"band":void 0,maxPxStep:y,align:v};const{reducedMinor:k,reducedMajor:E}=PN(s,{major:S[Jq.SCALE.MAIN.MAJOR],minor:S[Jq.SCALE.MAIN.MINOR]},{majorScaleInvert:M,maxPxStep:y,align:v,getProp:a.get});return h.isDiscrete&&(S[Jq.SCALE.MAIN.MAJOR].range=n.query.getScaleRange,h.isGroupedByDimension&&(S[Jq.SCALE.MAIN.MAJOR_INNER].range=n.query.getScaleRange)),S[s.scales.major]=E,S[s.scales.minor]=k,S}function JN(e,t,n){const{layoutService:r,colorService:o}=e;return function(e,t){if(!e.targets)throw new Error("Missing 'targets' property");return{interactions:[OL(e,t)],components:[]}}({targets:[r.meta.isStackedByDimension&&r.getHyperCubeValue("qStackedDataPages.0.qArea.qHeight",NaN)>1?Jq.COMPONENT.STACK_TOTAL_BAR:Jq.COMPONENT.BAR,Jq.COMPONENT.BAR_AXIS,Jq.COMPONENT.GROUP_AXIS,"outer-axis-overlay","inner-axis-overlay",Jq.COMPONENT.LEGEND_COLOR_CAT],components(e,t){const r={action:e.srcEvent.ctrlKey||n?"set":"toggle",contexts:["selection"],key:t[0].key};return Jq.COMPONENT.BAR===t[0].key?[{...r,data:["selectionDimension"]}]:[Jq.COMPONENT.BAR_AXIS,Jq.COMPONENT.GROUP_AXIS].includes(t[0].key)?[{...r,data:["selectionDimension","axisSelectionDimension"]}]:[r]}},{...e,isLocked:n=>n.some((e=>e.key===Jq.COMPONENT.LEGEND_COLOR_CAT))?o.getMain().isSelectionLocked({isMeasureSelectionLocked:t}):e.isLocked(n)})}function ZN(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=(({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}}}))(n);return{interactions:[NL(n,t)],components:[r]}}({key:"lasso",componentTargetKey:Jq.COMPONENT.BAR,components:[t?{key:Jq.COMPONENT.STACK_TOTAL_BAR,contexts:["selection"],action:"add"}:{key:Jq.COMPONENT.BAR,contexts:["selection"],action:"add",data:["selectionDimension"]}]},e)}function QN(e){return function(e,t){const n=function(e){const{key:t,targets:n,components:r,fillTargets:o,dock:i}=e;return{key:t,type:"brush-area-dir",layout:{dock:n.map((e=>`@${e}`)).join(",")},settings:{multiple:!0,brush:{components:r},direction:"left"===i||"right"===i?"vertical":"horizontal",bubbles:{align:"left"===i||"top"===i?"end":"start",placement:"inside"},target:{components:o,fill:"rgba(82,204,82,0.2)"}}}}(e);return{interactions:[AL(e,t,"area")],components:[n]}}({eventName:"discreteRange",components:[{key:Jq.COMPONENT.BAR,contexts:["selection"],action:"set",data:["selectionDimension"]}],key:"discreteRangeBrush",targets:["group-axis",Jq.COMPONENT.BAR_AXIS,Jq.COMPONENT.BAR],fillTargets:["group-axis",Jq.COMPONENT.BAR_AXIS],dock:e.dockService.meta.major.dock},e)}function eO(e,t,n){const{selectionService:r}=e,{isUnsupportedFeature:o}=t,i=void 0===n,a=r.getIsSingleSelect(n),s=JN(e,i,a);if(i||a)return{components:[...s.components],gestures:[...s.interactions]};const l=ZN(e),c=function(e,t){return e.layoutService.meta.isStacked||e.layoutService.meta.isButterfly||null!=t&&t("rangeSelections")?{components:[],interactions:[]}:RL({eventName:"measureRange",key:"measureRangeBrush",targets:["y-axis",Jq.COMPONENT.BAR],fillTargets:["y-axis"],dock:e.dockService.meta.minor.dock,scale:Jq.SCALE.MAIN.MINOR,onEdited(){e.actions.select.emit("end","measureRange")}},e)}(e,o),u=function(e){return e.layoutService.meta.isContinuous?RL({eventName:"continuousRange",key:"continuousRangeBrush",targets:e.layoutService.meta.isTime?["outer-time-axis","inner-time-axis",Jq.COMPONENT.BAR]:["continuous-axis",Jq.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?Jq.SCALE.MAIN.MAJOR_INNER:Jq.SCALE.MAIN.MAJOR,toLabel({datum:t,data:n,scale:r}){const o=e.layoutService.meta.isTime?r.formatter():e.chart.formatter(Jq.FORMATTER.MINOR),i=e.chart&&e.chart.brushSelectionIncludeMax;return`${t!==Math.max(...n)||i?"":"<"}${o(t)}`}},e):{components:[],interactions:[]}}(e),d=QN(e);return{components:[...s.components,...l.components,...c.components,...d.components,...u.components],gestures:[...l.interactions,...s.interactions,...c.interactions,...d.interactions,...u.interactions]}}const{isNumber:tO}=Qi;function nO({layoutService:e,viewModel:t,dockService:n}){var r;const{meta:o}=e;if(!o.isStackedByDimension||o.isContinuous)return!1;const{fields:i}=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:i.majorStack,filter:e=>0!==e.qDown||0!==e.qUp,props:{start:{value:e=>{return t=e.qSubNodes,Number(t.filter((e=>tO(e.qMaxPos))).map((e=>e.qMaxPos)).reduce(((e,t)=>e+t),0).toFixed(13));var t}},end:{value:e=>tO(e.qMaxPos)?Number(e.qMaxPos.toFixed(13)):0}}},{field:i.majorStack,filter:e=>0!==e.qDown||0!==e.qUp,props:{start:{value:e=>{return t=e.qSubNodes,Number(t.filter((e=>tO(e.qMinNeg))).map((e=>e.qMinNeg)).reduce(((e,t)=>e+t),0).toFixed(13));var t}},end:{value:e=>tO(e.qMinNeg)?Number(e.qMinNeg.toFixed(13)):0}}}]},settings:{major:{scale:Jq.SCALE.MAIN.MAJOR},minor:{scale:Jq.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:Ha.shadowBars.trackBy,compensateForLayoutChanges:Ha.bars.compensateForLayoutChanges}}}const rO={min:"Min",max:"Max"};function oO(e,t,n){const r=n?e.implicitMax:e.implicitMin;return!function(e,t,n){return void 0===n?GL(e,t)||YL(e,t):n===XL?GL(e,t):YL(e,t)}(Number(r.toFixed(13)),e,t)}function iO(e,{barComponent:t,type:n,isStacked:r}){var o,i,a;const{viewCache:s,layoutService:l,dockService:c}=e,u=s.get("minorMinMax"),d=n===XL;if(function(e,t){return!e[`hasOther${rO[t]}`]}(u,n)){if(function(e,t){return!e[`hasExplicit${rO[t]}`]}(u,n))return!1;if(oO(u,n,d))return!1}if(function(e,t,n){const r=n?e=>e<0:e=>e>0;return e[`hasExplicit${rO[t]}`]&&r(e[`explicit${rO[t]}`])}(u,n,d))return!1;let p="end";r&&(p=d?"sumOfPositives":"sumOfNegatives");const f=function(e){let t;return()=>(void 0===t&&(t=e()),t)}((()=>e.chart.scale(Jq.SCALE.MAIN.MINOR)[n]())),m=d?e=>e.datum[p].value>f():e=>e.datum[p].value<f(),h=Jq.COMPONENT.BAR,g=e.layoutService.getLayoutValue("components",[]),y=g?g.filter((e=>e.key===h))[0]:null;return{type:"box-sliced-hat",key:`sliced-hat-${n}`,layout:{dock:d?c.meta.minor.end:c.meta.minor.start},data:t.data,brush:t.brush,settings:{orientation:t.settings.orientation,major:t.settings.major,minor:t.settings.minor,hat:he({},t.settings.box,{fill:l.meta.isStacked?"#999":t.settings.box.fill,alignment:1,opacity:1,show:m,width:$L({layoutService:e.layoutService,discrete:e.discrete}),strokeWidth:null!=y&&null!==(o=y.style)&&void 0!==o&&o.strokeWidth?HL.BAR.STROKE.WIDTH[y.style.strokeWidth.toUpperCase()]:HL.BAR.STROKE.WIDTH.NONE,stroke:null!==(i=null==y||null===(a=y.style)||void 0===a||null===(a=a.strokeColor)||void 0===a?void 0:a.color)&&void 0!==i?i:HL.BAR.STROKE.COLOR})}}}function aO(e,{collectionKey:t},n){const{meta:r}=e.layoutService,{fields:o}=e.viewModel,i=r.isStackedByDimension&&!r.isContinuous?"qValue":"qNum";function a(t,n){const o=e.ds.field(t).raw(),a=e.ds.field(t).formatter(),s=ke.shouldUseFormat(o),l=r.isButterfly&&n>0;return{field:t,reduceLabel:"none",value:e=>"NaN"===e[i]?0:(e=>l&&0!==e?-e:e)(e[i]),label:e=>s?(e=>"NaN"===e[i]?"-":a(e[i]))(e):e.qText}}function s(e){if(!r.isButterfly)return;return{field:e,reduceLabel:"none",value:e=>e[i]<0}}const l=r.isStackedByDimension?e=>"NaN"===e.qValue:e=>!!e.qIsNull;const c={key:t,data:{extract:o.minor.map(((t,i)=>{const c=e.colorService.getMain().getDatumProps(i),u=e.colorService.getMini().getDatumProps(i),d=c[Object.keys(c)[0]],p=null==d?void 0:d.field,f=p?{field:p,reduceLabel:"none",value:e=>void 0!==e.qNum&&"NaN"!==e.qNum?e.qNum:e.qText||"-"}:void 0,m={field:r.isDimensionless?t:o.major,props:{...e.viewModel.selectionDimensionProp(),axisSelectionDimension:{field:0},start:0,end:a(t,i),negative:s(t),null:(h=t,{field:h,reduceLabel:"none",reduce:"first",value:l}),segment:r.isStacked?a(t):void 0,group:r.isGroupedByDimension?{field:o.majorGroup}:void 0,stack:r.isStacked?{field:o.majorStack}:void 0,measureIndex:r.isGroupedByDimension||r.isStackedByDimension?void 0:i,timeStart:r.isContinuous?{field:o.majorNumeric}:void 0,timeEnd:r.isContinuous?{field:o.majorNumeric}:void 0,fillTooltip:f,...c,...u,id:{value:e=>`r${e.qRow}e${e.qElemNumber}m${i}`},customTooltipAttrExps:0!==r.dimensionCount?ST.getNode(e.layoutService.getLayout(),r):void 0}};var h;return r.isDimensionless&&(m.value=i),void 0!==n&&(m.source=n),ke.deleteUndefinedProperties(m.props),m})),filter:r.isButterfly?e=>!e.negative.value:void 0}};return r.isStacked&&(c.data.stack={stackKey:e=>e.stack.value,value:e=>e.end.value,offset:"diverging"}),c}const{isNumber:sO}=Qi;function lO({layoutService:e,viewModel:t},{collectionKey:n}){const{meta:r}=e,{fields:o}=t;if(!r.isStacked)return!1;let i;return i=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,o):function(e,t){if(!e.isContinuous)return{field:t.majorStack,reduceLabel:"none",props:{sumOfPositives:{value:e=>sO(e.qMaxPos)?Number(e.qMaxPos.toFixed(13)):0},sumOfNegatives:{value:e=>sO(e.qMinNeg)?Number(e.qMinNeg.toFixed(13)):0},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,o),{key:n,data:{extract:i}}}const cO="main-collection",uO="stack-total-collection";function dO(e,{collectionKey:t}){const{layoutService:n,colorService:r,reducedDataModel:{fields:o,mode:i}}=e,{meta:a}=n,s=a.isStackedByDimension&&!a.isContinuous?"qValue":"qNum";function l(e,t){if(!a.isButterfly)return{field:e};const n=t>0;return{field:e,value:e=>"NaN"===e[s]?0:(e=>n&&0!==e?-e:e)(e[s])}}function c(e){if(!a.isButterfly)return;return{field:e,reduceLabel:"none",value:e=>e[s]<0}}return{key:t,data:{extract:o.minor.map(((e,t)=>{const n=i.isReduced?{}:r.getMain().getDatumProps(t),a={start:0,end:l(e,t),negative:c(e),group:{field:o.majorGroup},measureIndex:t,...n},s={source:"miniCube",field:i.isDimensionless?e:o.major,props:a};return i.isDimensionless&&(s.value=t),s})),filter:a.isButterfly?e=>!e.negative.value:void 0}}}const pO="mini-collection",fO="mini-stack-collection",mO="mini-continuous-collection",hO="miniCube",gO=(e,t)=>{const n=(e=>{const t=[aO(e,{collectionKey:cO})];return e.layoutService.meta.isStacked&&t.push(lO(e,{collectionKey:uO})),t})(t),r=((e,t)=>{const n=[];return lg({layoutService:t.layoutService}).miniChart&&(t.reducedDataModel.mode.isContinuous?n.push(aO(t,{collectionKey:mO},hO)):t.layoutService.meta.isStacked?n.push(function(e,{collectionKey:t}){const{colorService:n,reducedDataModel:{fields:r,mode:o}}=e;return{key:t,data:{extract:r.minor.map(((e,t)=>{const i={end:{field:e,reduceLabel:"none"},...o.isStackedByMeasure&&!o.isReduced?n.getMain().getDatumProps(t):{}};return o.isContinuous&&(i.timeStart={field:r.major,value:e=>e.qNum},i.timeEnd=i.timeStart),{source:"miniCube",field:r.major,props:i}})),stack:{stackKey:e=>e.value,value:e=>e.end.value,offset:"diverging"}}}}(t,{collectionKey:fO})):n.push(dO(t,{collectionKey:pO}))),n})(0,t);return n.concat(r)};function yO(e,t,n,r){const o=[{position:e,onBackground:!0,justify:0,overflow:r}];if(t){const t={fill:"#e6e6e6",padding:{left:2,right:2,top:2,bottom:2}};o.push({position:"inside",onBackground:!1,justify:"outside"===e?1:0,background:n?t:void 0})}return o}function vO({layout:e,component:t},n,r){if(!cN(e,n))return!1;const{layoutService:o,chart:i,dockService:a,viewModel:s,themeService:l,styleService:c}=n,{meta:u}=o,d=!lN(e,n),p=l.getStyles(),f=c.label.getStyle(),m=f.useContrastColor;function h(e){const t=i.formatter(Jq.FORMATTER.MINOR);return t?t(e):e}const g={label:function(e){return 0===e.data.sumOfPositives.value&&0!==e.data.sumOfNegatives.value?"":h(e.data.sumOfPositives.value)},simplifiedPlacements:yO("outside",d,m,u.isContinuous),style:p.label.value},y={label:function(e){return 0===e.data.sumOfNegatives.value&&0!==e.data.sumOfPositives.value?"":h(e.data.sumOfNegatives.value)},simplifiedPlacements:yO("opposite",d,m,u.isContinuous),style:p.label.value},v=[iN(he(n,g)),iN(he(n,y))];return{key:"stack-total-labels",type:"labels",renderer:Za(n.flags),layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:t,selector:"rect",strategy:{type:"bar",settings:{direction:e=>sN(e.data.sumOfPositives.value,a.meta.minor.orientation,r),labels:v,fontSize:parseInt(f.fontSize,10),fontFamily:f.fontFamily,linkData:Ha.labels.linkData}}}]},animations:{enabled:s.animations.enabled,trackBy:Ha.labels.trackBy,compensateForLayoutChanges:Ha.labels.compensateForLayoutChanges}}}function bO(e,t,n){const r=[{position:e,justify:0,overflow:n,background:{padding:{left:1,right:1,top:1,bottom:1}}}];return r.push({position:"inside",onBackground:!1,justify:1,background:{padding:{left:2,right:2,top:2,bottom:2}}}),r}function xO({layout:e,type:t},n){const{layoutService:r,viewCache:o,themeService:i,styleService:a}=n,{meta:s}=r,{isStacked:l}=s;if(!l&&!lN(e,n)||l&&!cN(e,n))return!1;const c=o.get("minorMinMax");if(!c.hasExplicitMinMax||t===XL&&0===c.max||t===JL&&0===c.min)return!1;if(!QL(t===XL?c.implicitMax:c.implicitMin,c,t))return!1;const u=i.getStyles(),d=a.label.getStyle();let p=e=>e.data.end.label;s.isStacked&&(p=t===XL?function(e){if(QL(e.data.sumOfNegatives.value,c,t)){const t=0===e.data.sumOfNegatives.value?e.data.sumOfPositives.value:e.data.sumOfNegatives.value,r=n.chart.formatter(Jq.FORMATTER.MINOR);return r?r(t):t}return""}:function(e){if(QL(e.data.sumOfPositives.value,c,t)){const t=0===e.data.sumOfPositives.value?e.data.sumOfNegatives.value:e.data.sumOfPositives.value,r=n.chart.formatter(Jq.FORMATTER.MINOR);return r?r(t):t}return""});const f={label:p,simplifiedPlacements:bO("outside",0,s.isContinuous),styles:u},m={label:p,simplifiedPlacements:bO("opposite",0,s.isContinuous),styles:u},h=[iN(he(n,f)),iN(he(n,m))],g="vertical"===n.dockService.meta.minor.orientation?"down":"right",y=[{component:`${Jq.COMPONENT.GHOST_BAR_OOB}-${t}`,selector:"rect",strategy:{type:"bar",settings:{direction:g,labels:h,fontSize:parseInt(d.fontSize,10),fontFamily:d.fontFamily,linkData:Ha.labels.linkData}}}];return{key:`bar-oob-labels-${t}`,type:"labels",renderer:Za(n.flags),layout:{minimumLayoutMode:"XSMALL"},settings:{sources:y},animations:{enabled:n.viewModel.animations.enabled,trackBy:Ha.labels.trackBy,compensateForLayoutChanges:Ha.labels.compensateForLayoutChanges}}}function SO(e){return"all"===e||"title"===e}function MO(e,t,n){var r;if(null!=t&&null!==(r=t.flags)&&void 0!==r&&r.isEnabled("IM_5788_DATA_TITLE_REFACTOR"))return!1;if(!SO(e.dimensionAxis.show)||t.layoutService.meta.isDimensionless)return!1;const{actions:o,properties:i}=t,a={hyperCube:e.qHyperCube,hyperCubeDef:i&&i.qHyperCubeDef,isDimension:!0,disabled:()=>{var e;return!(null!=o&&null!==(e=o.interact)&&void 0!==e&&e.enabled())},model:t.model,app:t.app,translator:t.translator,rtl:n,selections:t.selections,supportConditional:!0,isEnabled:t.flags.isEnabled},s=t.styleService.axis.title.getStyle();return t.layoutService.meta.hasMultipleDimensions&&(a.padding="0",a.minWidth="auto"),{key:"dimension-title",type:"data-title",layout:{minimumLayoutMode:PL[`${t.dockService.meta.major.orientation}DimensionAxisTitle`].minimumLayoutMode,dock:t.dockService.meta.major.dock},settings:a,style:s}}function CO(e,t,n){var r;if(null!=t&&null!==(r=t.flags)&&void 0!==r&&r.isEnabled("IM_5788_DATA_TITLE_REFACTOR"))return!1;if(!SO(e.measureAxis.show))return!1;const{layoutService:i,actions:a}=t,s=t.properties,l=i.getLayoutValue("qUndoExclude")?"qUndoExclude.qHyperCubeDef":"qHyperCubeDef",c={hyperCube:i.getHyperCube(),hyperCubeDef:o(s,l),isDimension:!1,disabled:()=>!a.interact.enabled(),model:t.model,app:t.app,translator:t.translator,rtl:n,selections:t.selections,supportConditional:!0,isEnabled:t.flags.isEnabled},u=t.styleService.axis.title.getStyle();return t.layoutService.meta.hasMultipleMeasures&&(c.padding="0",c.minWidth="auto"),{key:"measure-title",type:"data-title",layout:{minimumLayoutMode:"SMALL",dock:t.dockService.meta.minor.dock},settings:c,style:u}}function wO(e){return"all"===e||"title"===e}function kO(e,t,n){var r;if(null==t||null===(r=t.flags)||void 0===r||!r.isEnabled("IM_5788_DATA_TITLE_REFACTOR"))return!1;if(!wO(e.dimensionAxis.show)||t.layoutService.meta.isDimensionless)return!1;const o=t.alternativeService.getAlternatives(),{actions:i}=t,a=t.styleService.axis.title.getStyle();return{type:"axis-title",key:"dimension-title",renderer:"react-qcm",layout:{minimumLayoutMode:PL[`${t.dockService.meta.major.orientation}DimensionAxisTitle`].minimumLayoutMode,dock:t.dockService.meta.major.dock},data:{infos:t.layoutService.getHyperCubeValue("qDimensionInfo"),alternatives:o.dimensions},resources:{app:t.app,cache:t.viewCache,model:t.model,selections:t.selections,translator:t.translator},callbacks:{onChange:()=>{}},settings:{isDisabled:()=>{var e;return!(null!=i&&null!==(e=i.interact)&&void 0!==e&&e.enabled())},isRTL:n,isSnapshot:t.layoutService.meta.isSnapshot,skipAttributeExpressions:!1,type:"dimension"},style:{title:{color:a.color,fontFamily:a.fontFamily,fontSize:a.fontSize}}}}function EO(e,t,n){var r;if(null==t||null===(r=t.flags)||void 0===r||!r.isEnabled("IM_5788_DATA_TITLE_REFACTOR"))return!1;if(!wO(e.measureAxis.show))return!1;const o=t.alternativeService.getAlternatives(),{actions:i}=t,a=t.styleService.axis.title.getStyle();return{type:"axis-title",key:"measure-title",renderer:"react-qcm",layout:{minimumLayoutMode:"SMALL",dock:t.dockService.meta.minor.dock},data:{infos:t.layoutService.getHyperCubeValue("qMeasureInfo"),alternatives:o.measures},resources:{app:t.app,cache:t.viewCache,model:t.model,selections:t.selections,translator:t.translator},callbacks:{onChange:()=>{}},settings:{isDisabled:()=>{var e;return!(null!=i&&null!==(e=i.interact)&&void 0!==e&&e.enabled())},isRTL:n,isSnapshot:t.layoutService.meta.isSnapshot,skipAttributeExpressions:!1,type:"measure"},style:{title:{color:a.color,fontFamily:a.fontFamily,fontSize:a.fontSize}}}}function TO({environment:e,rtl:t,refLineModel:n,layoutService:r,colorService:o,dockService:i,themeService:a,viewModel:s,chart:l}){const{theme:c,localeInfo:u}=e,d={resolveUIColor:o.getMain().getPaletteColor},p=a.getStyles(),f=s.animations.enabled;return[Ka({refLineModel:n,layoutService:r,colorModel:d,dockService:i,animationsEnabled:f,chart:l,scale:Jq.SCALE.MAIN.MINOR,axis:"horizontal"===i.meta.major.orientation?"y":"x",key:Jq.COMPONENT.MEASURE_REF_LINE,minimumLayoutMode:PL.refLines.minimumLayoutMode}),Ka({isDimension:!0,refLineModel:n,layoutService:r,colorModel:d,dockService:i,animationsEnabled:f,chart:l,scale:Jq.SCALE.MAIN.MAJOR,axis:"horizontal"===i.meta.major.orientation?"x":"y",rtl:t,key:Jq.COMPONENT.DIMENSION_REF_LINE,mainComponentKey:Jq.COMPONENT.BAR,minimumLayoutMode:PL.refLines.minimumLayoutMode}),...Ga({refLineModel:n,layoutService:r,colorModel:d,animationsEnabled:f,dock:i.meta.minor.opposite,scale:Jq.SCALE.MAIN.MINOR,style:p,formatter:Jq.FORMATTER.MINOR,theme:c,localeInfo:u,rtl:t,key:Jq.COMPONENT.MEASURE_REF_LINE_LABEL}),...Ga({isDimension:!0,refLineModel:n,layoutService:r,colorModel:d,animationsEnabled:f,dock:i.meta.major.opposite,scale:Jq.SCALE.MAIN.MAJOR,style:p,theme:c,localeInfo:u,rtl:t,key:Jq.COMPONENT.DIMENSION_REF_LINE_LABEL})]}function qO({dockService:e,layoutService:t,discrete:n,continuousDataModel:r,viewModel:o,flags:i}){if(null==i||!i.isEnabled("VIZ_199_ADD_SPACE_BETWEEN"))return!1;if(!!lg({layoutService:t}).none)return!1;const{rtl:a}=e.config,s="horizontal"===e.meta.chart.orientation,l=!s,{dock:c}=e.meta.major,{show:u}=t.getLayoutValue("dimensionAxis",{}),d="none"!==u;if(l&&d&&"bottom"===c)return!1;if(s&&d){if(!a&&"right"===c)return!1;if(a&&"left"===c)return!1}const p=a?"left":"right";return{type:"space",key:Jq.COMPONENT.SPACE,layout:{dock:l?"bottom":p,minimumLayoutMode:"XSMALL"},show:()=>t.meta.isContinuous?r.getDimensionCardinality()>1:n.query.getCanScroll(),settings:{size:Math.max(6,Math.min(16,Math.floor(.025*e.meta.minor.size)))},animations:{enabled:o.animations.enabled,trackBy:()=>Math.random()}}}const LO=(e,t,n)=>{var r;const{layoutService:o,dockService:i,colorService:a,chart:s,actions:l,discrete:c,continuousDataModel:u,reducedDataModel:d,viewModel:p,viewState:f,viewCache:m,themeService:h,refLineModel:g,pluginService:y,rtl:v,logicalSize:b,trendLineModel:x,disclaimerService:S}=t,{localeInfo:M}=n,C=function(e,t){const{disclaimerService:n,themeService:r,translator:o}=e,i=n.getDisclaimer();if(!i)return!1;const{fontFamily:a}=r.getStyles();return{key:"disclaimer",type:"disclaimer",layout:{dock:i.alignment},settings:{isRTL:t,label:o.get(`Object.Disclaimer.${i.key}`)},style:{fontFamily:a}}}(t,v);if(S.getHasSuppressingDisclaimer())return{components:[C]};const w=XN(e,t,{localeInfo:M,rtl:v}),k=!(null!=l&&null!==(r=l.interact)&&void 0!==r&&r.enabled()),E=a.getMain().getLegend({eventName:"legend-c",key:"legend-color",viewState:f,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:k}),T=E.components[0];if(T){const{dock:e}=T.layout;if(w.fillRange&&(["right","left"].includes(e)||v)&&(w.fillRange.invert=!0),"legend-seq"===T.type&&void 0!==p.selectionDimensionIdx&&w.fillRange&&w.fillRange.min<w.fillRange.max){const e=RL({eventName:"legendRange",key:"legendRangeBrush",targets:[T.key],fillTargets:[T.key],targetSelector:'[id="legend-seq-target"]',targetFillSelector:'[id="legend-seq-ticks"]',dock:T.layout.dock,scale:"fillRange",bubblesPlacement:"outside",onEdited:()=>{l.select.emit("end","legendRange")}},t);E.components.push(...e.components),E.interactions.unshift(...e.interactions)}}else w.fillRange&&v&&(w.fillRange.invert=!0);const q=((e,{componentKey:t,collectionKey:n})=>{var r,o,i;const{meta:a}=e.layoutService,s=e.colorService.getMain().getPaletteColor;let l,c;a.isGroupedByDimension?l=({scale:e,datum:t})=>e([t.group.value,t.value])+e.bandwidth([t.group.value,t.value])/2:a.isGroupedByMeasure&&(l=({scale:e,datum:t})=>e([t.value,t.measureIndex.value])+e.bandwidth()/2);let u=2;a.isContinuous?(c={start:"timeStart",end:"timeEnd"},u=WL(e,t)):a.isStacked&&(c="stack");const d=a.isStackedByDimension&&e.layoutService.getHyperCubeValue("qStackedDataPages.0.qArea.qHeight",NaN)>1,p=e=>{var t;return!0===(null===(t=e.datum.null)||void 0===t?void 0:t.value)},f=e.layoutService.getLayoutValue("components",null),m=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||d?0:2,stroke:"#000"},inactive:{opacity:.3}}}]},settings:{major:{scale:Jq.SCALE.MAIN.MAJOR,fn:l,ref:c},minor:{scale:Jq.SCALE.MAIN.MINOR},orientation:e.dockService.meta.minor.orientation,box:{width:$L({layoutService:e.layoutService,discrete:e.discrete}),minWidthPx:u,fill:e.colorService.getMain().getColor(),opacity:e=>p(e)?0:void 0,minHeightPx:function(e){return a.isStacked?.1:p(e)?.01:.3},strokeWidth:null!=m&&null!==(r=m.style)&&void 0!==r&&r.strokeWidth?HL.BAR.STROKE.WIDTH[m.style.strokeWidth.toUpperCase()]:HL.BAR.STROKE.WIDTH.NONE,stroke:null!=m&&null!==(o=m.style)&&void 0!==o&&null!==(o=o.strokeColor)&&void 0!==o&&o.color?s(null==m||null===(i=m.style)||void 0===i?void 0:i.strokeColor):HL.BAR.STROKE.COLOR},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},animations:{enabled:e.viewModel.animations.enabled,isMainComponent:!0,trackBy:Ha.bars.trackBy,compensateForLayoutChanges:Ha.bars.compensateForLayoutChanges}}})(t,{componentKey:Jq.COMPONENT.BAR,collectionKey:Jq.COLLECTION.MAIN}),L=((e,{componentKey:t,collectionKey:n})=>{const{meta:r}=e.layoutService;if(!r.isStacked)return!1;let o=2;r.isContinuous&&(o=WL(e,t));const i={key:t,type:"box",data:{collection:n},settings:{major:{scale:Jq.SCALE.MAIN.MAJOR},minor:{scale:Jq.SCALE.MAIN.MINOR,start:{ref:"sumOfNegatives"},end:{ref:"sumOfPositives"}},orientation:e.dockService.meta.minor.orientation,box:{width:$L({layoutService:e.layoutService,discrete:e.discrete}),minWidthPx:o,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&&(i.settings.major.ref={start:"timeStart",end:"timeEnd"}),i})(t,{componentKey:Jq.COMPONENT.STACK_TOTAL_BAR,collectionKey:Jq.COLLECTION.STACK_TOTAL}),N=eO(t,n,p.selectionDimensionIdx),{isStacked:O}=o.meta;let D;D=d.mode.isContinuous?Jq.COLLECTION.MINI_CONTINUOUS:O?Jq.COLLECTION.MINI_STACK:Jq.COLLECTION.MINI;const A=O?L:q,R=wN(0,t),P=[...R,iO(t,{barComponent:A,type:"max",isStacked:O}),iO(t,{barComponent:A,type:"min",isStacked:O}),tN(t,{barComponent:A,type:"max",isStacked:O}),tN(t,{barComponent:A,type:"min",isStacked:O}),rN(t,{chart:s,type:"max",collectionKey:O?Jq.COLLECTION.STACK_TOTAL:Jq.COLLECTION.MAIN}),rN(t,{chart:s,type:"min",collectionKey:O?Jq.COLLECTION.STACK_TOTAL:Jq.COLLECTION.MAIN}),..._L(e,t,v,!!R[0]),q,L,nO({layoutService:o,viewModel:p,dockService:i}),MO(e,t,v),CO(e,t,v),kO(e,t,v),EO(e,t,v),...TO({environment:n,rtl:v,refLineModel:g,layoutService:o,colorService:a,dockService:i,themeService:h,viewModel:p,chart:s}),Fi({viewState:f,viewCache:m,layoutService:o,dockService:i,rtl:v}),qO({dockService:i,layoutService:o,discrete:c,continuousDataModel:u,viewModel:p,flags:t.flags}),AN(q,t,{collectionKey:D}),cg({layoutService:o,dockService:i,discrete:c,continuousDataModel:u,viewState:f,viewCache:m,themeService:h,rtl:v,deviceType:n.deviceType}),...Rq({majorScale:Jq.SCALE.MAIN.MAJOR,minorScale:Jq.SCALE.MAIN.MINOR,tooltipOverlay:Jq.COMPONENT.TREND_LINES_TOOLTIP_OVERLAY},{layoutService:o,trendLineModel:x,dockService:i,animationsEnabled:p.animations.enabled}),...E.components,dN({layout:e,component:Jq.COMPONENT.BAR,minorScale:w.minor},t,v),vO({layout:e,component:Jq.COMPONENT.STACK_TOTAL_BAR},t,v),xO({layout:e,type:"max"},t),xO({layout:e,type:"min"},t),...N.components,fN(0,{...t,coloring:a.getMain().getSettings()},v),hN(0,{...t,coloring:a.getMain().getSettings()},v),!1!==e.showDisclaimer&&C,jq({tooltip:Jq.COMPONENT.TREND_LINES_TOOLTIP,formatter:Jq.FORMATTER.MINOR},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}(P);const I=[...E.interactions,...N.gestures].sort(((e,t)=>(t.prio||0)-(e.prio||0)));return{interactions:ON(t,{rtl:v,hammer:{gestures:I}}),scales:w,palettes:a.getMain().getPalettes(),components:y.extendComponents(P),strategy:be(0,{logicalSize:b,minCenterRatio:0}),formatters:gN(t,w),collections:gO(0,t)}};const NO=({environment:e,services:t,chart:n,viewState:r,bootstrapped:o})=>{J((i=>{if(!e||!t||!o)return;const{layoutService:a,dockService:s,colorService:l,discrete:c,continuousDataModel:u,reducedDataModel:d}=t,{width:p,height:f}=s.meta.chart.size;if(i.snapshotData=i.snapshotData||{},i.snapshotData.content={size:{w:p,h:f}},a.meta.isSnapshot)return Promise.resolve();i.snapshotData.content.chartData={scrollOffset:r.get("scrollOffset"),zoom:r.get("zoom"),legendScrollOffset:Ne(n,Jq.COMPONENT.LEGEND_COLOR_CAT)};const{properties:m}=o,h=null==m?void 0:m.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}));return h&&(i.tooltip.auto=!0),a.meta.isDiscrete?(c.command.setSnapshotData(i),d.setSnapshotData(i)):u.setSnapshotData(i),l.getMain().getSnapshotData().then((e=>{i.snapshotData.content.chartData={...i.snapshotData.content.chartData,...e}})).catch((()=>{}))})),Z((()=>({getViewState(){if(r&&n)return{scrollOffset:r.get("scrollOffset"),zoom:r.get("zoom"),legendScrollOffset:Ne(n,Jq.COMPONENT.LEGEND_COLOR_CAT)}}})),[r,n])},OO=e=>"[object Object]"===Object.prototype.toString.call(e),DO=e=>Array.isArray(e);function AO(e,t){if(e===t)return!0;if(DO(e)){if(!DO(t))return!1;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!AO(e[n],t[n]))return!1;return!0}if(OO(e)){if(!OO(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(!AO(e[n[r]],t[n[r]]))return!1}return!0}return e===t}const RO=({properties:e,layout:t,isStacked:n,isContinuous:r,model:o,layoutService:i})=>{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)})),c=t.qHyperCube.qMeasureInfo.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)})),u=he(!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,c,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=o.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 o;if("colorByExpression"===(null===(o=t.getLayout().qHyperCube.qMeasureInfo)||void 0===o||null===(o=o[0])||void 0===o||null===(o=o.qAttrExprInfo)||void 0===o||null===(o=o[0])||void 0===o?void 0:o.id))return;const{current:r,target:i}=function({properties:e,filtered:t}){const{qMeasures:n}=e.qHyperCubeDef||[],{current:r,target:o}=n.reduce(((e,n,r)=>{var o;return"colorByExpression"===(null===(o=n.qAttributeExpressions[0])||void 0===o?void 0:o.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:o}}({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[i].qAttributeExpressions.splice(0,0,a)}}({properties:e,layoutService:i}),!Wi.compare(u,e,!0)&&JSON.stringify(u)!==JSON.stringify(e)&&(e.hash=Math.random(),!0)};function PO(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)!==qT})).length,r=t.layout.qHyperCube.qDimensionInfo.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==qT})).length,o=e.dimensionAxis.maxVisibleItems;o<1?e.dimensionAxis.maxVisibleItems=10:o>1e4/(r+n)&&(e.dimensionAxis.maxVisibleItems=Math.min(o,Math.floor(1e4/(r+n))))}}const IO=[{translation:"Common.None",value:"none"},{translation:"Common.Small",value:"small"},{translation:"Common.Medium",value:"medium"},{translation:"Common.Large",value:"large"}],zO=(e,t,n)=>{const r=`${e}.fontFamily`,o=`${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:o,options:()=>t.getOptions(o),defaultValue:()=>t.getDefaultValue(o)},fontColorItem:{component:"color-picker",width:!1,ref:`${e}.color`,defaultValue:()=>({color:n.getStyle("object.barChart",e,"color")})}}}}};function jO(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(IO).map((e=>IO[e])),schemaIgnore:!0,defaultValue:IO[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)=>!Le.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)=>((e,t)=>{var n,r,o;const i=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)!==qT})).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)!==qT})).length,s="grouped"===(null===(o=e.barGrouping)||void 0===o?void 0:o.grouping)&&a>0&&i+a>2;return Le.continuous(t)?1:s?.9:.7})(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(og.OPTIONS).map((e=>og.OPTIONS[e])),schemaIgnore:!0,defaultValue:og.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}}}}}}}}}}function FO(e,t,n,r=!1){return r?jO(t):function(e,t,n){const r=b({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(IO).map((e=>IO[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)=>!Le.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:o,qHyperCubeDef:i}=r,a=i.qMeasures.length,s=i.qDimensions.length,l="grouped"===o.grouping&&s>0&&a+s>2;return Le.continuous(r)?1:l?.9:.7},schemaIgnore:!0}}}}},axisTitleSection:{translation:"properties.axis.title",component:"panel-section",items:{axisTitleItems:{component:"items",ref:"components",key:"axis",items:zO("axis.title",r,e)}}},axisLabelSection:{translation:"properties.axis.label",component:"panel-section",items:{axisLabelItems:{component:"items",ref:"components",key:"axis",items:zO("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:{...zO("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:zO("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:zO("legend.label",r,e)}}}:void 0}}}(e,t,n)}const BO=e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==qT},_O=(e,t)=>null==e?void 0:e.qHyperCube[t].filter((e=>BO(e))),HO=e=>({get(t,n,r){const o="stacked";return"butterfly"===t(n.type)?Zq({layout:r.layout,flags:e})?t(n.type):o:Le.continuous(r.layout)?o:t(n.type)},set(e,t,n){const r=Ae(n.type,n);t(n.type,e,r)}}),$O=e=>{if(!e)return!1;const t=he(!0,{},e);return t.qHyperCube.qMeasureInfo=_O(e,"qMeasureInfo"),t.qHyperCube.qDimensionInfo=_O(e,"qDimensionInfo"),t&&!Le.continuous(t)&&Le.stacked(t)},VO=({translator:e,flags:t,anything:n})=>{var r,o,i;const a=null==n||null===(r=n.sense)||void 0===r||null===(o=r.isUnsupportedFeature)||void 0===o?void 0:o.call(r,"continuousData"),s={items:{labels:{items:{header:{show:(e,t,n)=>_O(n.layout,"qMeasureInfo").length},pointLabels:{component:"checkbox",ref:"dataPoint.showLabels",type:"boolean",translation:"Simple.Label.Value",show:(e,t,n)=>!$O(t.layout)&&_O(n.layout,"qMeasureInfo").length},segmentLabels:{component:"checkbox",ref:"dataPoint.showSegmentLabels",type:"boolean",translation:"properties.dataPoints.segmentLabelMode",defaultValue:!1,show:(e,t)=>$O(t.layout),convertFunctions:{get:(e,t,n,r)=>r.dataPoint.showLabels&&r.dataPoint.showSegmentLabels,set(e,t,n,r,o){o.dataPoint.showSegmentLabels=e,o.dataPoint.showLabels=o.dataPoint.showSegmentLabels||o.dataPoint.showTotalLabels}}},totalLabels:{component:"checkbox",ref:"dataPoint.showTotalLabels",type:"boolean",translation:"properties.dataPoints.totalLabelMode",defaultValue:!0,show:(e,t)=>$O(t.layout),convertFunctions:{get:(e,t,n,r)=>r.dataPoint.showLabels&&r.dataPoint.showTotalLabels,set(e,t,n,r,o){o.dataPoint.showTotalLabels=e,o.dataPoint.showLabels=o.dataPoint.showSegmentLabels||o.dataPoint.showTotalLabels}}},dimensionTitle:{component:"checkbox",ref:"dimensionAxis.show",type:"string",translation:"Simple.Label.Dimension.Hide",defaultValue:"all",show:(e,t,n)=>_O(n.layout,"qDimensionInfo").length&&_O(n.layout,"qMeasureInfo").length,convertFunctions:{get:(e,t,n,r)=>"labels"===r.dimensionAxis.show||"none"===r.dimensionAxis.show,set(e,t,n,r,o){o.dimensionAxis.show=e?"labels":"all"}}},measureTitle:{component:"checkbox",ref:"measureAxis.show",type:"string",translation:"Simple.Label.Measure.Hide",defaultValue:"all",show:(e,t,n)=>_O(n.layout,"qMeasureInfo").length,convertFunctions:{get:(e,t,n,r)=>"labels"===r.measureAxis.show||"none"===r.measureAxis.show,set(e,t,n,r,o){o.measureAxis.show=e?"labels":"all"}}}}}}},l=null==n||null===(i=n.sense)||void 0===i?void 0:i.theme,c={uses:"settings",items:{simpleStyling:FO(l,t,e,!0),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:FO(l,t,e,!1),grouping:{ref:"barGrouping.grouping",type:"string",component:"item-selection-list",defaultValue:"grouped",horizontal:!0,items:(e,n)=>{const r=[{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"}];return Zq({layout:n.layout,flags:t})&&r.push({icon:"bars_butterfly",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.butterfly",value:"butterfly"}),r},show(e,t){const n=_O(t.layout,"qMeasureInfo").length,r=_O(t.layout,"qDimensionInfo").length;return r>0&&n+r>2},globalChange(e,n,r){"butterfly"!==e.barGrouping.grouping||Zq({layout:r.layout,flags:t})||(e.barGrouping.grouping="stacked"),"butterfly"===e.barGrouping.grouping&&e.measureAxis&&"max"!==e.measureAxis.minMax&&!e.measureAxis.autoMinMax&&(e.measureAxis.minMax="max")},change(e,n,r){"butterfly"!==e.barGrouping.grouping||Zq({layout:r.layout,flags:t})||(e.barGrouping.grouping="stacked"),_O(n.layout,"qDimensionInfo").length>1&&"stacked"===e.barGrouping.grouping?(e.qHyperCubeDef.qMode="K",e.qHyperCubeDef.qAlwaysFullyExpanded=!0):e.qHyperCubeDef.qMode="S"},readOnly:(e,t,n)=>Le.continuous(n.layout),convertFunctions:HO(t)},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)=>Le.continuous(n.layout),convertFunctions:(u="vertical",{get:(e,t,n)=>Le.continuous(n.layout)?u:e(t.type),set(e,t,n){const r=Ae(n.type,n);t(n.type,e,r)}})},scroll:{type:"items",items:{scrollbar:{type:"string",component:"dropdown",ref:"scrollbar",translation:"properties.scrollbar",options:Object.keys(og.OPTIONS).map((e=>og.OPTIONS[e])),defaultValue:og.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)=>!Le.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($O(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&&$O(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&&$O(n.layout)}}}}},colorsAndLegend:{uses:"colorsAndLegend",items:{colors:{items:{attributeExpression:Qa}},legend:{items:{show:{snapshot:{tid:"property-legend"}}}}}},dimensionAxis:{uses:"axis.dimensionAxis",items:{axisDisplaySettings:{components:"items",type:"items",show:(e,t,n)=>!Le.continuous(n.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=_O(n.layout,"qMeasureInfo").length,o=_O(n.layout,"qDimensionInfo").length,i=e.dimensionAxis.maxVisibleItems;return i<0||i>1e4/(o+r)},globalChange:PO,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"}}};var u;return null!=t&&t.isEnabled("SENSECLIENT_LAYERED_LABELS")&&(c.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"}]}}}),null!=t&&t.isEnabled("TLV_800_BUTTERFLY_CHART")&&(c.items.measureAxis={uses:"axis.flippableMeasureAxis",items:{minMax:{items:{minMax:{show:e=>"butterfly"!==e.barGrouping.grouping&&e.measureAxis&&!e.measureAxis.autoMinMax},min:{show:e=>"butterfly"!==e.barGrouping.grouping&&e.measureAxis&&["min","minMax"].includes(e.measureAxis.minMax)&&!e.measureAxis.autoMinMax},max:{invalid:e=>e.measureAxis&&"minMax"===e.measureAxis.minMax?e.measureAxis.min>=e.measureAxis.max:!(!e.measureAxis||"max"!==e.measureAxis.minMax||"butterfly"!==e.barGrouping.grouping)&&e.measureAxis.max<=0}}}}}),c},WO={uses:"sortingWithDisclaimer",items:{defaultSorting:{items:{dimensions:{locked:(e,t,n)=>1===n.getMeasures().length&&2===n.getDimensions().length&&0===e,items:{autoSort:{change(e){$t(e)}}}},interColumnSorting:{reset:(e,t)=>{const{qDimensions:n,qMeasures:r,qInterColumnSortOrder:o}=e.qHyperCubeDef,{qCardinal:i}=t.layout.qHyperCube.qDimensionInfo[0],a=o.length,s=[...Array(a).keys()];1===n.length&&r.length>=1&&i>10&&([s[0],s[1]]=[s[1],s[0]]),e.qHyperCubeDef.qInterColumnSortOrder=s}}}}}},UO={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}},refLines:{uses:"reflines"},dimRefLines:{uses:"dimReflines"}}},KO=({translator:e,flags:t,anything:n})=>{var r,o;return{uses:"data",items:{dimensions:{items:{nullSuppression:{show(e,t,r){var o,i;if(null!=n&&null!==(o=n.sense)&&void 0!==o&&null!==(i=o.isUnsupportedFeature)&&void 0!==i&&i.call(o,"includeZeroValues"))return!1;const a=((e,t)=>{var n,r;const o=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=>BO(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[o])===e})(e,t),s=Le.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}}},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},trendLines:null!=n&&null!==(r=n.sense)&&void 0!==r&&null!==(o=r.isUnsupportedFeature)&&void 0!==o&&o.call(r,"trendlines")?void 0:$q({translator:e,allowStackedByDimension:t&&t.isEnabled("TRENDLINES_STACKED_DIM")})}}}}};function GO({translator:e,flags:t,anything:n}){return{type:"items",component:"accordion",items:{data:KO({translator:e,flags:t,anything:n}),sorting:WO,addons:UO,settings:VO({translator:e,flags:t,anything:n})}}}const YO=e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==qT};function XO({flags:e}){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,o=n.qHyperCube.qDimensionInfo.filter((e=>YO(e))).length;return 1===r&&2===o&&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:(t,n)=>{const r=[{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"}];return Zq({layout:null==n?void 0:n.layout,flags:e})&&r.push({icon:"bars_butterfly",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.butterfly",value:"butterfly"}),r},show(e,t){return t.qHyperCube.qMeasureInfo.filter((e=>YO(e))).length+t.qHyperCube.qDimensionInfo.filter((e=>YO(e))).length>2&&!Le.continuous(t)&&!((null==(n=t)||null===(r=n.qHyperCube)||void 0===r||null===(r=r.qDimensionInfo)||void 0===r?void 0:r.filter((e=>YO(e))).length)>1&&(null==n||null===(o=n.qHyperCube)||void 0===o?void 0:o.isHCEnabled));var n,r,o},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)=>!Le.continuous(t)}}},color:{uses:"color"}}}}function JO(e){const t={},n=o(e,"components"),r=o(e,"dimensionAxis.axisDisplayMode"),i=o(e,"dimensionAxis.maxVisibleItems"),a=n?n.filter((e=>"bar"===e.key))[0]:void 0,s=o(e,"tooltip");if(a&&a.style&&Object.keys(a.style).forEach((e=>{t[`chart_style_${e}`]=a.style[e]})),i&&(t.chart_dimaxis_maxVisibleItems=i),r&&(t.chart_dimaxis_axisDisplayMode=r),s){t.chart_tooltip_custom=!s.auto;const e=o(s,"chart.object.refId");!s.auto&&e&&(t.chart_tooltip_custom_mini_chart=e)}return t}const ZO=e=>!!(e&&e.qHyperCube.qSize.qcy>0),QO={ACCUMULATIONS:"accumulation",MOVING_AVERAGE:"movingAverage",DIFFERENCE:"difference",NORMALIZATION:"normalization"};function eD(){const e=[];return Object.keys(QO).forEach((t=>{e.push(QO[t])})),e}function tD(e){return{definition:GO(e),softDefinition:XO(e),support:{snapshot:ZO,export:ZO,exportData:!0,sharing:ZO,viewData:!0,effects:!0,modifiers:eD()},importProperties:(t,n,r,o)=>{const i={layout:{templateId:n.templateId}};r.mapProperties(i);const a={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()},s=ee.axisChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:zT(e),defaultPropertyValues:a,hypercubePath:o,extension:r}),l=s.qProperty;return l.qHyperCubeDef.qDimensions.length>1&&"stacked"===l.barGrouping.grouping&&(l.qHyperCubeDef.qMode="K",l.qHyperCubeDef.qAlwaysFullyExpanded=!0),ee.conditionalShow.unquarantine(l),ee.conditionalShow.unquarantineAlternative(l),s},exportProperties:(e,t,n)=>{ee.conditionalShow.quarantine(e.qProperty),ee.conditionalShow.quarantineAlternative(e.qProperty);return ee.axisChart.exportProperties({propertyTree:e,hyperCubePath:t,viewDataMode:n})},migrate:{properties:e=>(e.qExtendsId||(function(e){var t;e.qHyperCubeDef.qDimensions.forEach($t),null!==(t=e.qHyperCubeDef.qLayoutExclude)&&void 0!==t&&null!==(t=t.qHyperCubeDef)&&void 0!==t&&t.qDimensions&&e.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.forEach($t)}(e),function({properties:e}){const{scrollbar:t,dimensionAxis:n,preferContinuousAxis:r,showMiniChartForContinuousAxis:o}=e;if(t||!1!==o)return;const{continuousAuto:i}=n;(i||!i&&r)&&(e.scrollbar=og.OPTIONS.NONE.value)}({properties:e})),e)},extendMetrics:JO}}}}}));
|
|
94
|
+
`),BC.rippleVisible,KC,550,(({theme:e})=>e.transitions.easing.easeInOut),BC.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),BC.child,BC.childLeaving,GC,550,(({theme:e})=>e.transitions.easing.easeInOut),BC.childPulsate,YC,(({theme:e})=>e.transitions.easing.easeInOut)),ZC=S.forwardRef((function(e,t){const n=VM({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=rl(n,_C),[s,l]=S.useState([]),c=S.useRef(0),u=S.useRef(null);S.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[s]);const d=S.useRef(!1),p=LS(),f=S.useRef(null),m=S.useRef(null),h=S.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;l((e=>[...e,Mb.jsx(JC,{classes:{ripple:$x(o.ripple,BC.ripple),rippleVisible:$x(o.rippleVisible,BC.rippleVisible),ripplePulsate:$x(o.ripplePulsate,BC.ripplePulsate),child:$x(o.child,BC.child),childLeaving:$x(o.childLeaving,BC.childLeaving),childPulsate:$x(o.childPulsate,BC.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},c.current)])),c.current+=1,u.current=a}),[o]),g=S.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=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:m.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(i)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)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):h({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})}),[r,h,p]),y=S.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=S.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{v(e,t)}));f.current=null,l((e=>e.length>0?e.slice(1):e)),u.current=t}),[p]);return S.useImperativeHandle(t,(()=>({pulsate:y,start:g,stop:v})),[y,g,v]),Mb.jsx(XC,Ws({className:$x(BC.root,o.root,i),ref:m},a,{children:Mb.jsx(af,{component:null,exit:!0,children:s})}))}));function QC(e){return Wx("MuiButtonBase",e)}const ew=Ux("MuiButtonBase",["root","disabled","focusVisible"]),tw=["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"],nw=SC("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"},[`&.${ew.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),rw=S.forwardRef((function(e,t){const n=VM({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:y,onFocusVisible:v,onKeyDown:b,onKeyUp:x,onMouseDown:M,onMouseLeave:C,onMouseUp:w,onTouchEnd:k,onTouchMove:E,onTouchStart:T,tabIndex:q=0,TouchRippleProps:L,touchRippleRef:N,type:O}=n,D=rl(n,tw),A=S.useRef(null),R=S.useRef(null),P=kS(R,N),{isFocusVisibleRef:I,onFocus:z,onBlur:j,ref:F}=jS(),[B,_]=S.useState(!1);l&&B&&_(!1),S.useImperativeHandle(r,(()=>({focusVisible:()=>{_(!0),A.current.focus()}})),[]);const[H,$]=S.useState(!1);S.useEffect((()=>{$(!0)}),[]);const V=H&&!c&&!l;function W(e,t,n=u){return wS((r=>{t&&t(r);return!n&&R.current&&R.current[e](r),!0}))}S.useEffect((()=>{B&&d&&!c&&H&&R.current.pulsate()}),[c,d,B,H]);const U=W("start",M),K=W("stop",h),G=W("stop",g),Y=W("stop",w),X=W("stop",(e=>{B&&e.preventDefault(),C&&C(e)})),J=W("start",T),Z=W("stop",k),Q=W("stop",E),ee=W("stop",(e=>{j(e),!1===I.current&&_(!1),f&&f(e)}),!1),te=wS((e=>{A.current||(A.current=e.currentTarget),z(e),!0===I.current&&(_(!0),v&&v(e)),y&&y(e)})),ne=()=>{const e=A.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},re=S.useRef(!1),oe=wS((e=>{d&&!re.current&&B&&R.current&&" "===e.key&&(re.current=!0,R.current.stop(e,(()=>{R.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),b&&b(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!l&&(e.preventDefault(),m&&m(e))})),ie=wS((e=>{d&&" "===e.key&&R.current&&B&&!e.defaultPrevented&&(re.current=!1,R.current.stop(e,(()=>{R.current.pulsate(e)}))),x&&x(e),m&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=s;"button"===ae&&(D.href||D.to)&&(ae=p);const se={};"button"===ae?(se.type=void 0===O?"button":O,se.disabled=l):(D.href||D.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=kS(t,F,A),ce=Ws({},n,{centerRipple:o,component:s,disabled:l,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:q,focusVisible:B}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=FS({root:["root",t&&"disabled",n&&"focusVisible"]},QC,o);return n&&r&&(i.root+=` ${r}`),i})(ce);return Mb.jsxs(nw,Ws({as:ae,className:$x(ue.root,a),ownerState:ce,onBlur:ee,onClick:m,onContextMenu:K,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:U,onMouseLeave:X,onMouseUp:Y,onDragLeave:G,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:l?-1:q,type:O},se,D,{children:[i,V?Mb.jsx(ZC,Ws({ref:P,center:o},L)):null]}))}));function ow(e){return Wx("MuiTypography",e)}Ux("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const iw=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],aw=SC("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${Ib(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Ws({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),sw={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},lw={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},cw=S.forwardRef((function(e,t){const n=VM({props:e,name:"MuiTypography"}),r=(e=>lw[e]||e)(n.color),o=jx(Ws({},n,{color:r})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=sw}=o,f=rl(o,iw),m=Ws({},o,{align:i,color:r,className:a,component:s,gutterBottom:l,noWrap:c,paragraph:u,variant:d,variantMapping:p}),h=s||(u?"p":p[d]||sw[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return FS({root:["root",i,"inherit"!==e.align&&`align${Ib(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},ow,a)})(m);return Mb.jsx(aw,Ws({as:h,ref:t,ownerState:m,className:$x(g.root,a)},f))})),uw=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function dw(e){const t=[],n=[];return Array.from(e.querySelectorAll(uw)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function pw(){return!0}function fw(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=dw,isEnabled:a=pw,open:s}=e,l=S.useRef(!1),c=S.useRef(null),u=S.useRef(null),d=S.useRef(null),p=S.useRef(null),f=S.useRef(!1),m=S.useRef(null),h=kS(t.ref,m),g=S.useRef(null);S.useEffect((()=>{s&&m.current&&(f.current=!n)}),[n,s]),S.useEffect((()=>{if(!s||!m.current)return;const e=SS(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}}),[s]),S.useEffect((()=>{if(!s||!m.current)return;const e=SS(m.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(l.current=!0,u.current&&u.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||l.current)return void(l.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==c.current&&e.activeElement!==u.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==c.current&&e.activeElement!==u.current||(n=i(m.current)),n.length>0){var o,s;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(s=g.current)?void 0:s.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,s,i]);const y=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return Mb.jsxs(S.Fragment,{children:[Mb.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:c,"data-testid":"sentinelStart"}),S.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),Mb.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:u,"data-testid":"sentinelEnd"})]})}const mw=S.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=S.useState(null),s=kS(S.isValidElement(n)?n.ref:null,t);if(vS((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),vS((()=>{if(i&&!o)return CS(t,i),()=>{CS(t,null)}}),[t,i,o]),o){if(S.isValidElement(n)){const e={ref:s};return S.cloneElement(n,e)}return Mb.jsx(S.Fragment,{children:n})}return Mb.jsx(S.Fragment,{children:i?N.createPortal(n,i):i})}));function hw(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function gw(e){return parseInt(MS(e).getComputedStyle(e).paddingRight,10)||0}function yw(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&hw(e,o)}))}function vw(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function bw(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=SS(e);return t.body===e?MS(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(SS(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${gw(r)+e}px`;const t=SS(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${gw(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=SS(r).body;else{const t=r.parentElement,n=MS(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const xw=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&hw(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);yw(t,e.mount,e.modalRef,r,!0);const o=vw(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=vw(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=bw(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=vw(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&hw(e.modalRef,t),yw(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&hw(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Sw(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=xw,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:d}=e,p=S.useRef({}),f=S.useRef(null),m=S.useRef(null),h=kS(m,d),[g,y]=S.useState(!u),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let b=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(b=!1);const x=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),M=()=>{o.mount(x(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},C=wS((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||SS(f.current).body;o.add(x(),e),m.current&&M()})),w=S.useCallback((()=>o.isTopModal(x())),[o]),k=wS((e=>{f.current=e,e&&(u&&w()?M():m.current&&hw(m.current,b))})),E=S.useCallback((()=>{o.remove(x(),b)}),[b,o]);S.useEffect((()=>()=>{E()}),[E]),S.useEffect((()=>{u?C():v&&i||E()}),[u,E,v,i,C]);const T=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},q=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const n=IC(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=Ws({},n,t);return Ws({role:"presentation"},r,{onKeyDown:T(r),ref:h})},getBackdropProps:(e={})=>Ws({"aria-hidden":!0},e,{onClick:q(e),open:u}),getTransitionProps:()=>({onEnter:xS((()=>{y(!1),a&&a()}),null==l?void 0:l.props.onEnter),onExited:xS((()=>{y(!0),s&&s(),i&&E()}),null==l?void 0:l.props.onExited)}),rootRef:h,portalRef:k,isTopModal:w,exited:g,hasTransition:v}}const Mw=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Cw={entering:{opacity:1},entered:{opacity:1}},ww=S.forwardRef((function(e,t){const n=$M(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:c,onEntered:u,onEntering:d,onExit:p,onExited:f,onExiting:m,style:h,timeout:g=r,TransitionComponent:y=Qp}=e,v=rl(e,Mw),b=S.useRef(null),x=kS(b,a.ref,t),M=e=>t=>{if(e){const n=b.current;void 0===t?e(n):e(n,t)}},C=M(d),w=M(((e,t)=>{LC(e);const r=NC({style:h,timeout:g,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)})),k=M(u),E=M(m),T=M((e=>{const t=NC({style:h,timeout:g,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),q=M(f);return Mb.jsx(y,Ws({appear:i,in:l,nodeRef:b,onEnter:w,onEntered:k,onEntering:C,onExit:T,onExited:q,onExiting:E,addEndListener:e=>{o&&o(b.current,e)},timeout:g},v,{children:(e,t)=>S.cloneElement(a,Ws({style:Ws({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},Cw[e],h,a.props.style),ref:x},t))}))}));function kw(e){return Wx("MuiBackdrop",e)}Ux("MuiBackdrop",["root","invisible"]);const Ew=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Tw=SC("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Ws({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),qw=S.forwardRef((function(e,t){var n,r,o;const i=VM({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:c={},componentsProps:u={},invisible:d=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=ww,transitionDuration:g}=i,y=rl(i,Ew),v=Ws({},i,{component:l,invisible:d}),b=(e=>{const{classes:t,invisible:n}=e;return FS({root:["root",n&&"invisible"]},kw,t)})(v),x=null!=(n=f.root)?n:u.root;return Mb.jsx(h,Ws({in:p,timeout:g},y,{children:Mb.jsx(Tw,Ws({"aria-hidden":!0},x,{as:null!=(r=null!=(o=m.root)?o:c.Root)?r:l,className:$x(b.root,s,null==x?void 0:x.className),ownerState:Ws({},v,null==x?void 0:x.ownerState),classes:b,ref:t,children:a}))}))}));function Lw(e){return Wx("MuiButton",e)}const Nw=Ux("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"]),Ow=S.createContext({}),Dw=S.createContext(void 0),Aw=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Rw=e=>Ws({},"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}}),Pw=SC(rw,{shouldForwardProp:e=>xC(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Ib(n.color)}`],t[`size${Ib(n.size)}`],t[`${n.variant}Size${Ib(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return Ws({},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":Ws({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:iM(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})`:iM(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})`:iM(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:i,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":Ws({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Nw.focusVisible}`]:Ws({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Nw.disabled}`]:Ws({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 ${iM(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:o,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"},[`&.${Nw.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Nw.disabled}`]:{boxShadow:"none"}})),Iw=SC("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Ib(n.size)}`]]}})((({ownerState:e})=>Ws({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Rw(e)))),zw=SC("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Ib(n.size)}`]]}})((({ownerState:e})=>Ws({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Rw(e)))),jw=S.forwardRef((function(e,t){const n=S.useContext(Ow),r=S.useContext(Dw),o=VM({props:gS(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:m=!1,size:h="medium",startIcon:g,type:y,variant:v="text"}=o,b=rl(o,Aw),x=Ws({},o,{color:a,component:s,disabled:c,disableElevation:u,disableFocusRipple:d,fullWidth:m,size:h,type:y,variant:v}),M=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return Ws({},a,FS({root:["root",i,`${i}${Ib(t)}`,`size${Ib(o)}`,`${i}Size${Ib(o)}`,`color${Ib(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Ib(o)}`],endIcon:["icon","endIcon",`iconSize${Ib(o)}`]},Lw,a))})(x),C=g&&Mb.jsx(Iw,{className:M.startIcon,ownerState:x,children:g}),w=p&&Mb.jsx(zw,{className:M.endIcon,ownerState:x,children:p}),k=r||"";return Mb.jsxs(Pw,Ws({ownerState:x,className:$x(n.className,M.root,l,k),component:s,disabled:c,focusRipple:!d,focusVisibleClassName:$x(M.focusVisible,f),ref:t,type:y},b,{classes:M,children:[C,i,w]}))}));function Fw(e){return Wx("MuiModal",e)}Ux("MuiModal",["root","hidden","backdrop"]);const Bw=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],_w=SC("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>Ws({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Hw=SC(qw,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),$w=S.forwardRef((function(e,t){var n,r,o,i,a,s;const l=VM({name:"MuiModal",props:e}),{BackdropComponent:c=Hw,BackdropProps:u,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:y={},disableAutoFocus:v=!1,disableEnforceFocus:b=!1,disableEscapeKeyDown:x=!1,disablePortal:M=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:k=!1,keepMounted:E=!1,onBackdropClick:T,open:q,slotProps:L,slots:N}=l,O=rl(l,Bw),D=Ws({},l,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:b,disableEscapeKeyDown:x,disablePortal:M,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:k,keepMounted:E}),{getRootProps:A,getBackdropProps:R,getTransitionProps:P,portalRef:I,isTopModal:z,exited:j,hasTransition:F}=Sw(Ws({},D,{rootRef:t})),B=Ws({},D,{exited:j}),_=(e=>{const{open:t,exited:n,classes:r}=e;return FS({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Fw,r)})(B),H={};if(void 0===f.props.tabIndex&&(H.tabIndex="-1"),F){const{onEnter:e,onExited:t}=P();H.onEnter=e,H.onExited=t}const $=null!=(n=null!=(r=null==N?void 0:N.root)?r:g.Root)?n:_w,V=null!=(o=null!=(i=null==N?void 0:N.backdrop)?i:g.Backdrop)?o:c,W=null!=(a=null==L?void 0:L.root)?a:y.root,U=null!=(s=null==L?void 0:L.backdrop)?s:y.backdrop,K=FC({elementType:$,externalSlotProps:W,externalForwardedProps:O,getSlotProps:A,additionalProps:{ref:t,as:h},ownerState:B,className:$x(d,null==W?void 0:W.className,null==_?void 0:_.root,!B.open&&B.exited&&(null==_?void 0:_.hidden))}),G=FC({elementType:V,externalSlotProps:U,additionalProps:u,getSlotProps:e=>R(Ws({},e,{onClick:t=>{T&&T(t),null!=e&&e.onClick&&e.onClick(t)}})),className:$x(null==U?void 0:U.className,null==u?void 0:u.className,null==_?void 0:_.backdrop),ownerState:B});return E||q||F&&!j?Mb.jsx(mw,{ref:I,container:m,disablePortal:M,children:Mb.jsxs($,Ws({},K,{children:[!k&&c?Mb.jsx(V,Ws({},G)):null,Mb.jsx(fw,{disableEnforceFocus:b,disableAutoFocus:v,disableRestoreFocus:C,isEnabled:z,open:q,children:S.cloneElement(f,H)})]}))}):null}));function Vw(e){return Wx("MuiDivider",e)}Ux("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const Ww=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Uw=SC("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>Ws({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:iM(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>Ws({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>Ws({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>Ws({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>Ws({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Kw=SC("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Ws({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),Gw=S.forwardRef((function(e,t){const n=VM({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:c="horizontal",role:u=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=rl(n,Ww),m=Ws({},n,{absolute:r,component:a,flexItem:s,light:l,orientation:c,role:u,textAlign:d,variant:p}),h=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return FS({root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},Vw,r)})(m);return Mb.jsx(Uw,Ws({as:a,className:$x(h.root,i),role:u,ref:t,ownerState:m},f,{children:o?Mb.jsx(Kw,{className:h.wrapper,ownerState:m,children:o}):null}))}));Gw.muiSkipListHighlight=!0;const Yw=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Xw(e){return`scale(${e}, ${e**2})`}const Jw={entering:{opacity:1,transform:Xw(1)},entered:{opacity:1,transform:"none"}},Zw="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Qw=S.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:s,onEntered:l,onEntering:c,onExit:u,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:h=Qp}=e,g=rl(e,Yw),y=LS(),v=S.useRef(),b=$M(),x=S.useRef(null),M=kS(x,o.ref,t),C=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},w=C(c),k=C(((e,t)=>{LC(e);const{duration:n,delay:r,easing:o}=NC({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=b.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=n,e.style.transition=[b.transitions.create("opacity",{duration:a,delay:r}),b.transitions.create("transform",{duration:Zw?a:.666*a,delay:r,easing:o})].join(","),s&&s(e,t)})),E=C(l),T=C(p),q=C((e=>{const{duration:t,delay:n,easing:r}=NC({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=b.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[b.transitions.create("opacity",{duration:o,delay:n}),b.transitions.create("transform",{duration:Zw?o:.666*o,delay:Zw?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=Xw(.75),u&&u(e)})),L=C(d);return Mb.jsx(h,Ws({appear:r,in:a,nodeRef:x,onEnter:k,onEntered:E,onEntering:w,onExit:q,onExited:L,onExiting:T,addEndListener:e=>{"auto"===m&&y.start(v.current||0,e),n&&n(x.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>S.cloneElement(o,Ws({style:Ws({opacity:0,transform:Xw(.75),visibility:"exited"!==e||a?void 0:"hidden"},Jw[e],f,o.props.style),ref:M},t))}))}));Qw.muiSupportAuto=!0;const ek=S.createContext({});function tk(e){return Wx("MuiList",e)}Ux("MuiList",["root","padding","dense","subheader"]);const nk=["children","className","component","dense","disablePadding","subheader"],rk=SC("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>Ws({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),ok=S.forwardRef((function(e,t){const n=VM({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=n,c=rl(n,nk),u=S.useMemo((()=>({dense:a})),[a]),d=Ws({},n,{component:i,dense:a,disablePadding:s}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return FS({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},tk,t)})(d);return Mb.jsx(ek.Provider,{value:u,children:Mb.jsxs(rk,Ws({as:i,className:$x(p.root,o),ref:t,ownerState:d},c,{children:[l,r]}))})}));function ik(e){return Wx("MuiListItemButton",e)}const ak=Ux("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),sk=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],lk=SC(rw,{shouldForwardProp:e=>xC(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})=>Ws({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"}},[`&.${ak.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:iM(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ak.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:iM(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ak.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:iM(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})`:iM(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ak.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ak.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}))),ck=S.forwardRef((function(e,t){const n=VM({props:e,name:"MuiListItemButton"}),{alignItems:r="center",autoFocus:o=!1,component:i="div",children:a,dense:s=!1,disableGutters:l=!1,divider:c=!1,focusVisibleClassName:u,selected:d=!1,className:p}=n,f=rl(n,sk),m=S.useContext(ek),h=S.useMemo((()=>({dense:s||m.dense||!1,alignItems:r,disableGutters:l})),[r,m.dense,s,l]),g=S.useRef(null);vS((()=>{o&&g.current&&g.current.focus()}),[o]);const y=Ws({},n,{alignItems:r,dense:h.dense,disableGutters:l,divider:c,selected:d}),v=(e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:a,selected:s}=e;return Ws({},n,FS({root:["root",r&&"dense",!i&&"gutters",a&&"divider",o&&"disabled","flex-start"===t&&"alignItemsFlexStart",s&&"selected"]},ik,n))})(y),b=kS(g,t);return Mb.jsx(ek.Provider,{value:h,children:Mb.jsx(lk,Ws({ref:b,href:f.href||f.to,component:(f.href||f.to)&&"div"===i?"button":i,focusVisibleClassName:$x(v.focusVisible,u),ownerState:y,className:$x(v.root,p)},f,{classes:v,children:a}))})}));function uk(e){return Wx("MuiListItemIcon",e)}Ux("MuiListItemIcon",["root","alignItemsFlexStart"]);const dk=["className"],pk=SC("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})=>Ws({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),fk=S.forwardRef((function(e,t){const n=VM({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=rl(n,dk),i=Ws({},n,{alignItems:S.useContext(ek).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return FS({root:["root","flex-start"===t&&"alignItemsFlexStart"]},uk,n)})(i);return Mb.jsx(pk,Ws({className:$x(a.root,r),ownerState:i,ref:t},o))}));function mk(e){return Wx("MuiListItemText",e)}const hk=Ux("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),gk=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],yk=SC("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${hk.primary}`]:t.primary},{[`& .${hk.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})((({ownerState:e})=>Ws({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56}))),vk=S.forwardRef((function(e,t){const n=VM({props:e,name:"MuiListItemText"}),{children:r,className:o,disableTypography:i=!1,inset:a=!1,primary:s,primaryTypographyProps:l,secondary:c,secondaryTypographyProps:u}=n,d=rl(n,gk),{dense:p}=S.useContext(ek);let f=null!=s?s:r,m=c;const h=Ws({},n,{disableTypography:i,inset:a,primary:!!f,secondary:!!m,dense:p}),g=(e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return FS({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},mk,t)})(h);return null==f||f.type===cw||i||(f=Mb.jsx(cw,Ws({variant:p?"body2":"body1",className:g.primary,component:null!=l&&l.variant?void 0:"span",display:"block"},l,{children:f}))),null==m||m.type===cw||i||(m=Mb.jsx(cw,Ws({variant:"body2",className:g.secondary,color:"text.secondary",display:"block"},u,{children:m}))),Mb.jsxs(yk,Ws({className:$x(g.root,o),ownerState:h,ref:t},d,{children:[f,m]}))}));function bk(e){return Wx("MuiPopover",e)}Ux("MuiPopover",["root","paper"]);const xk=["onEntering"],Sk=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Mk=["slotProps"];function Ck(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function wk(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function kk(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Ek(e){return"function"==typeof e?e():e}const Tk=SC($w,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),qk=SC(RC,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Lk=S.forwardRef((function(e,t){var n,r,o;const i=VM({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:u="anchorEl",children:d,className:p,container:f,elevation:m=8,marginThreshold:h=16,open:g,PaperProps:y={},slots:v,slotProps:b,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:M=Qw,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:k=!1}=i,E=rl(i.TransitionProps,xk),T=rl(i,Sk),q=null!=(n=null==b?void 0:b.paper)?n:y,L=S.useRef(),N=kS(L,q.ref),O=Ws({},i,{anchorOrigin:l,anchorReference:u,elevation:m,marginThreshold:h,externalPaperSlotProps:q,transformOrigin:x,TransitionComponent:M,transitionDuration:C,TransitionProps:E}),D=(e=>{const{classes:t}=e;return FS({root:["root"],paper:["paper"]},bk,t)})(O),A=S.useCallback((()=>{if("anchorPosition"===u)return c;const e=Ek(s),t=(e&&1===e.nodeType?e:SS(L.current).body).getBoundingClientRect();return{top:t.top+Ck(t,l.vertical),left:t.left+wk(t,l.horizontal)}}),[s,l.horizontal,l.vertical,c,u]),R=S.useCallback((e=>({vertical:Ck(e,x.vertical),horizontal:wk(e,x.horizontal)})),[x.horizontal,x.vertical]),P=S.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=R(t);if("none"===u)return{top:null,left:null,transformOrigin:kk(n)};const r=A();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,l=i+t.width,c=MS(Ek(s)),d=c.innerHeight-h,p=c.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,n.vertical+=e}else if(null!==h&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==h&&i<h){const e=i-h;i-=e,n.horizontal+=e}else if(l>p){const e=l-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:kk(n)}}),[s,u,A,R,h]),[I,z]=S.useState(g),j=S.useCallback((()=>{const e=L.current;if(!e)return;const t=P(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,z(!0)}),[P]);S.useEffect((()=>(k&&window.addEventListener("scroll",j),()=>window.removeEventListener("scroll",j))),[s,k,j]);S.useEffect((()=>{g&&j()})),S.useImperativeHandle(a,(()=>g?{updatePosition:()=>{j()}}:null),[g,j]),S.useEffect((()=>{if(!g)return;const e=function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}((()=>{j()})),t=MS(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,g,j]);let F=C;"auto"!==C||M.muiSupportAuto||(F=void 0);const B=f||(s?SS(Ek(s)).body:void 0),_=null!=(r=null==v?void 0:v.root)?r:Tk,H=null!=(o=null==v?void 0:v.paper)?o:qk,$=FC({elementType:H,externalSlotProps:Ws({},q,{style:I?q.style:Ws({},q.style,{opacity:0})}),additionalProps:{elevation:m,ref:N},ownerState:O,className:$x(D.paper,null==q?void 0:q.className)}),V=FC({elementType:_,externalSlotProps:(null==b?void 0:b.root)||{},externalForwardedProps:T,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:B,open:g},ownerState:O,className:$x(D.root,p)}),{slotProps:W}=V,U=rl(V,Mk);return Mb.jsx(_,Ws({},U,!PC(_)&&{slotProps:W,disableScrollLock:k},{children:Mb.jsx(M,Ws({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),j()},onExited:()=>{z(!1)},timeout:F},E,{children:Mb.jsx(H,Ws({},$,{children:d}))}))}))}));function Nk(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ok(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Dk(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,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");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 Ak(){return Ak=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ak.apply(null,arguments)}function Rk(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 Pk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rk(Object(n),!0).forEach((function(t){Dk(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rk(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ik(){Ik=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof g?t:g,a=Object.create(i.prototype),s=new L(r||[]);return o(a,"_invoke",{value:k(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=u;var p="suspendedStart",f="executing",m="completed",h={};function g(){}function y(){}function v(){}var b={};c(b,a,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(N([])));S&&S!==n&&r.call(S,a)&&(b=S);var M=v.prototype=g.prototype=Object.create(b);function C(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function n(o,i,a,s){var l=d(e[o],e,i);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==typeof u&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function k(t,n,r){var o=p;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=E(s,r);if(l){if(l===h)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=f;var c=d(t,n,r);if("normal"===c.type){if(o=r.done?m:"suspendedYield",c.arg===h)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function E(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,E(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,h;var a=i.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,h):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function T(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 q(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,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 o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(typeof t+" is not iterable")}return y.prototype=v,o(M,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:y,configurable:!0}),y.displayName=c(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,c(e,l,"GeneratorFunction")),e.prototype=Object.create(M),e},t.awrap=function(e){return{__await:e}},C(w.prototype),c(w.prototype,s,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new w(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(M),c(M,l,"Generator"),c(M,a,(function(){return this})),c(M,"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,L.prototype={constructor:L,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(q),!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 o(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):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),h},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),q(n),h}},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 o=r.arg;q(n)}return o}}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),h}},t}function zk(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,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||Bk(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 jk(e){return function(e){if(Array.isArray(e))return Nk(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Bk(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 Fk(e){return Fk="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},Fk(e)}function Bk(e,t){if(e){if("string"==typeof e)return Nk(e,t);var n={}.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)?Nk(e,t):void 0}}var _k=function(e){var t=e.className,n=e.title,r=e.path,o=e.fillRule;return x.createElement(qC,{className:t,viewBox:"0 0 16 16",fontSize:"small",role:"img",style:{height:12,width:12}},x.createElement("path",{d:r}),n?x.createElement("title",null,n):void 0,o?x.createElement("use",{fillRule:o}):void 0)},Hk={STYLE:{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)"}}}},$k={L:new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),R:new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞יִײַ-ﬨשׁ-ﭏ]"),AL:new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]")},Vk=function(e){return $k.R.test(e)||$k.AL.test(e)};function Wk(e){for(var t,n,r=e?e.length:0,o=0;o<r;o++){if(n=t=e[o],$k.L.test(n))return"ltr";if(Vk(t))return"rtl"}return"ltr"}var Uk,Kk,Gk=SC(jw,{shouldForwardProp:function(e){return"direction"!==e&&"padding"!==e&&"styling"!==e}})((function(e){var t=e.direction,n=e.padding,r=e.styling,o=r.fontSize,i=r.fontFamily,a=r.color;return{fontWeight:"normal",lineHeight:"normal",fontSize:o,fontFamily:i,color:a,height:"100%",minWidth:"0px",maxWidth:"640px",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}}})),Yk=SC((function(e){var t=e.className;return x.createElement(_k,{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:Hk.STYLE.ICONS.COLOR.SECONDARY,marginTop:"1px"}})),Xk=SC((function(e){var t=e.className;return x.createElement(_k,{className:t,path:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})}))((function(){return{color:Hk.STYLE.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:Hk.STYLE.ICONS.COLOR.DISABLED,opacity:.6}}})),Jk=function(e){var t=e.isOpen,n=e.onClick,r=e.popoverId,o=e.source,i=o.styling,a=o.info.text,s=o.layout.direction,l=o.meta,c=l.allowed,u=l.hasAlternatives,d=l.hasCyclic,p=l.hasMultiple,f=l.index,m=l.isCyclic,h=l.isLocked,g=o.resources.translator,y=o.services.focus,v=o.settings.isDisabled,b=o.state.inSelections,S=!(!c.change||!u),M=!(!c.reload||!m),C=(S||M)&&!b&&!v(),w={pointerEvents:C?"auto":"none"},k=function(e){var t=e.allowed,n=e.canChange,r=e.canReload,o=e.direction,i=e.hasCyclic,a=e.isLocked,s={top:"8px",right:"6px",bottom:"8px",left:"6px"};if(!e.hasMultiple)return"".concat(s.top," ").concat(s.right," ").concat(s.bottom," ").concat(s.left);var l=i&&t.reload;return"ltr"===o&&(a?s.left="0px":r||!n&&l?s.left="4px":n||(s.left="2px"),n||r||(s.right="0px")),"rtl"===o&&(a?s.right="0px":r||!n&&l?s.right="4px":n||(s.right="2px"),n||r||(s.left="0px")),"".concat(s.top," ").concat(s.right," ").concat(s.bottom," ").concat(s.left)}({allowed:c,canChange:S,canReload:M,direction:s,hasCyclic:d,hasMultiple:p,isLocked:h}),E=Dk(Dk({},"rtl"===s?"endIcon":"startIcon",h&&x.createElement(Yk,{height:12})),"rtl"===s?"startIcon":"endIcon",(S||M)&&x.createElement(Xk,{className:"".concat(b||v()?"disabled":"")})),T=L(),N=L();q((function(){t||y.shouldFor(f)&&(T.current.focus(),N.current.focusVisible())}));var O=Wk(a),D="Accessibility.".concat(C?"Alternative":"Normal",".Instructions");return x.createElement(Gk,Ak({action:N,"aria-describedby":r,"aria-label":g.get(D),color:"inherit",direction:s,disabled:!C||v()||b,onClick:function(e){C&&n(e)},padding:k,ref:T,style:w,styling:i.title,title:a},E),x.createElement("span",{dir:O,style:Hk.STYLE.ELLIPSIS},a))},Zk=function(e){var t=e.className,n=e.title;return x.createElement(_k,{className:t,title:n,path:"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"})},Qk=SC(jw,{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e&&"styling"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast,o=e.styling.color;return{fontWeight:"normal",lineHeight:"normal",color:o,height:"24px",width:"24px",padding:0,marginLeft:"ltr"!==t||n?void 0:"4px",marginRight:"rtl"!==t||r?void 0:"4px","&:disabled":{color:o,opacity:1}}})),eE=SC(Zk,{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast;return{color:Hk.STYLE.ICONS.COLOR.PRIMARY,marginTop:"1px",marginLeft:"ltr"!==t||n?void 0:"4px",marginRight:"rtl"!==t||r?void 0:"4px"}})),tE=SC((function(e){var t=e.className,n=e.title;return x.createElement(_k,{className:t,title:n,path:"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"})}),{})((function(){return{color:Hk.STYLE.ICONS.COLOR.SECONDARY,"&.disabled":{color:Hk.STYLE.ICONS.COLOR.DISABLED}}})),nE=function(e){var t=e.source;if(!t.meta.isCyclic)return null;var n=zk(T(!1),2),r=n[0],o=n[1],i=t.styling,a=t.action.stepCycle,s=t.info,l=s.position,c=s.tooltip,u=t.layout.direction,d=t.meta,p=d.allowed,f=d.isFirst,m=d.isLast,h=t.settings.isDisabled,g=t.state.inSelections;return q((function(){r&&o(!1)}),[l]),p.reload?x.createElement(Qk,{direction:u,disabled:r||g||h(),isFirst:f,isLast:m,onClick:function(){return o(!0),void a()},styling:i.title,title:c,variant:"outlined"},x.createElement(tE,{className:"".concat(r||g||h()?"disabled":"")})):x.createElement(eE,{direction:u,isFirst:f,isLast:m,style:{flexShrink:0},title:c})},rE=function(e){var t=e.className,n=e.title;return x.createElement(_k,{className:t,title:n,path:"M7 4h9v1H7V4ZM9 8h7v1H9V8ZM11 12h5v1h-5v-1ZM1 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.5V4h1Z"})},oE=SC(jw,{shouldForwardProp:function(e){return"styling"!==e}})((function(e){var t=e.styling,n=t.fontSize,r=t.fontFamily,o=t.color;return{fontWeight:"normal",lineHeight:"normal",fontSize:n,fontFamily:r,color:o,padding:"0px 5px",height:"100%",minWidth:"45px","&:disabled":{color:o}}})),iE={color:Hk.STYLE.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:Hk.STYLE.ICONS.COLOR.DISABLED}},aE=SC((function(e){var t=e.className;return x.createElement(_k,{className:t,path:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5 8.5 8z"})}))((function(){return iE})),sE=SC((function(e){var t=e.className;return x.createElement(_k,{className:t,path:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))((function(){return iE})),lE=SC(rE,{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast;return{color:Hk.STYLE.ICONS.COLOR.PRIMARY,marginTop:"1px",marginLeft:"ltr"!==t||n?void 0:"4px",marginRight:"rtl"!==t||r?void 0:"4px"}})),cE=function(e){var t=e.source;if(!t.meta.isDrillDown)return null;var n=t.styling,r=t.action.drillUp,o=t.info,i=o.breadcrumbs,a=o.tooltip,s=t.layout.direction,l=t.meta,c=l.isFirst,u=l.isLast,d=t.settings.isDisabled,p=t.state.inSelections,f=d()||p?"disabled":null,m=Dk({},"rtl"===s?"startIcon":"endIcon","rtl"===s?x.createElement(sE,{className:f}):x.createElement(aE,{className:f})),h=i.map((function(e,t){var o=Wk(e);return x.createElement(oE,Ak({disabled:d()||p,key:"breadcrumb-".concat(e),onClick:function(){return function(e){r({steps:i.length-e})}(t)},styling:n.title,title:e},m),x.createElement("span",{dir:o,style:Hk.STYLE.ELLIPSIS},e))}));return x.createElement(x.Fragment,null,"rtl"===s?h.reverse():void 0,x.createElement(lE,{direction:s,isFirst:c,isLast:u,style:{flexShrink:0},title:a}),"rtl"===s?void 0:h)},uE=SC(ck,{shouldForwardProp:function(e){return"nested"!==e&&"rtl"!==e}})((function(e){var t=e.nested,n=e.rtl;return{padding:"4px ".concat(t&&n?"32px":"16px"," 4px ").concat(t&&!n?"32px":"16px"),"&:focus":Pk({},Hk.STYLE.FOCUS)}})),dE=SC(fk)((function(){return{marginRight:0,justifyContent:"center"}})),pE=SC((function(e){var t=e.className;return x.createElement(_k,{className:t,path:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2 3 3Z"})}))((function(){return{color:Hk.STYLE.ICONS.COLOR.SECONDARY}})),fE=SC(Zk)((function(){return{color:Hk.STYLE.ICONS.COLOR.SECONDARY}})),mE=SC(rE)((function(){return{color:Hk.STYLE.ICONS.COLOR.SECONDARY,fontWeight:600}})),hE=function(e){var t=e.id,n=e.meta,r=e.nested,o=e.onClick,i=e.selected,a=e.source,s=e.text,l=a.styling,c=a.settings.isRTL,u=Pk({fontWeight:!n||n.isNormal?"normal":600,lineHeight:"normal",fontSize:l.popover.fontSize,fontFamily:l.popover.fontFamily,color:l.popover.color,textAlign:c?"end":"start"},Hk.STYLE.ELLIPSIS),d=Wk(s),p=x.createElement(dE,{sx:c?{paddingRight:"12px"}:{paddingLeft:"12px"}},function(e){var t=e.meta;return e.selected?x.createElement(pE,{height:12}):null!=t&&t.isCyclic?x.createElement(fE,{height:12}):null!=t&&t.isDrillDown?x.createElement(mE,{height:12}):void 0}({meta:n,selected:i}));return x.createElement(x.Fragment,{key:t},x.createElement(uE,{autoFocus:i,nested:r,onClick:function(e){return null==o?void 0:o(e)},rtl:c,title:s},c&&p,x.createElement(vk,{dir:d,primaryTypographyProps:{style:u}},s),!c&&p))},gE=SC(Gw)((function(){return{marginTop:"-1px"}})),yE=function(e){var t=e.anchor,n=e.id,r=e.onClose,o=e.open,i=e.source,a=i.action,s=a.changeTo,l=a.drillUp,c=a.setActiveField,u=i.info,d=u.breadcrumbs,p=u.group,f=u.id,m=u.text,h=i.data.alternatives,g=i.meta,y=g.index,v=g.isCyclic,b=g.isDrillDown,S=i.resources.translator,M=i.services.focus,C={isChanging:!1},w=L(),k=function(){var e,t=document.activeElement;null!=w&&null!==(e=w.current)&&void 0!==e&&e.contains(t)&&t.blur(),r()},E=v||b,T=x.createElement(hE,{id:f,key:f,meta:i.meta,onClick:k,selected:!E,source:i,text:E?p.name:m}),q=E&&p.items.map((function(e){return x.createElement(hE,{id:e.id,nested:!0,onClick:function(t){return function(e,t){C.isChanging||(C.isChanging=!0,"keydown"!==e.type&&"keyup"!==e.type||M.queueFor(y),v&&c({fieldIndex:t.index}),b&&l({steps:d.length-t.index}))}(t,e)},selected:e.current,source:i,text:e.text})})),N=h.map((function(e,t){return x.createElement(x.Fragment,{key:e.id},x.createElement(hE,{id:e.id,key:e.id,meta:e.meta,onClick:function(t){return n=t,r=e.id,void(C.isChanging||(C.isChanging=!0,"keydown"!==n.type&&"keyup"!==n.type||M.queueFor(y),s({id:r})));var n,r},source:i,text:e.text}),t<h.length-1&&x.createElement(gE,{key:"divider-".concat(e.id)}))}));return x.createElement(Lk,{anchorEl:t,anchorOrigin:{vertical:"top",horizontal:"center"},disableRestoreFocus:!0,id:n,onClose:k,open:o,ref:w,slotProps:{paper:{style:{minWidth:"250px",maxWidth:"640px",maxHeight:"300px"}}},transformOrigin:{vertical:"bottom",horizontal:"center"}},x.createElement(ok,{"aria-label":S.get("Accessibility.Popover.Instructions"),dense:!0},T,q,x.createElement(gE,{key:"divider-".concat(f)}),N))},vE=function(e){var t=e.source,n=zk(T(null),2),r=n[0],o=n[1],i={id:r?"alternatives-popover":void 0,isOpen:Boolean(r)},a=t.layout.direction,s=t.meta.index,l=t.services.focus,c=function(){o(null)};q((function(){i.isOpen&&c()}),[t.info.key]);var u=x.createElement(nE,{source:t}),d=x.createElement(cE,{source:t});return x.createElement(x.Fragment,null,"rtl"===a?void 0:d,"rtl"===a?void 0:u,x.createElement(Jk,{onClick:function(e){var t=e.currentTarget;t.classList.contains("qcm-focus-visible")&&l.queueFor(s),o(t)},isOpen:i.isOpen,popoverId:i.id,source:t}),x.createElement(yE,{anchor:r,id:i.id,onClose:c,open:i.isOpen,source:t}),"rtl"===a?d:void 0,"rtl"===a?u:void 0)};var bE=function(){if(Kk)return Uk;Kk=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return Uk=function e(){var t,n,r,l,c,u,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(m&&l&&(i(l)||(c=o(l)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&i(r)?r:{},a(d,{name:n,newValue:e(m,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},Uk}(),xE=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(bE);function SE(e){var t=e.model,n=e.properties;return t.modifiers?t.modifiers.apply({model:t,properties:n}):Promise.resolve()}function ME(e){return Array.isArray(e)}function CE(e){return null!=e&&!Array.isArray(e)&&"object"===Fk(e)}function wE(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function kE(e){return void 0===e}function EE(e,t){if(CE(e)&&CE(t)){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n=Object.keys(e),r=0,o=n.length;r<o;r+=1)if(!EE(e[n[r]],t[n[r]]))return!1;return!0}if(ME(e)&&ME(t)){if(e.length!==t.length)return!1;for(var i=0,a=e.length;i<a;i+=1)if(!EE(e[i],t[i]))return!1;return!0}return e===t}function TE(e){var t=e.oldData,n=void 0===t?{}:t,r=e.newData,o=void 0===r?{}:r,i=e.basePath,a=void 0===i?"":i,s=[];return Object.keys(o).forEach((function(e){var t=function(e){return e?xE(!0,{},{value:e}).value:e}(o[e]),r=n[e],i="".concat(a,"/").concat(e);EE(t,r)||wE(o,e)||(kE(r)?s.push({op:"add",path:i,value:t}):CE(t)&&CE(r)?s.push.apply(s,jk(TE({oldData:r,newData:t,basePath:i}))):ME(t)&&ME(r)?s.push.apply(s,jk(function(e){var t=e.newArray,n=e.basePath,r=[];return EE(t,e.oldArray.slice())||(!kE(t[0])&&kE(t[0].qInfo)||0===t.length)&&r.push({op:"replace",path:n,value:t}),r}({oldArray:r,newArray:t,basePath:i}))):s.push({op:"replace",path:i,value:t}))})),Object.keys(n).forEach((function(e){kE(o[e])&&!wE(n,e)&&s.push({op:"remove",path:"".concat(a,"/").concat(e)})})),s}function qE(e){var t=e.model,n=TE({oldData:e.oldProperties,newData:e.newProperties});null!=t&&t.applyPatches&&null!=n&&n.length&&t.applyPatches(n.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),!0)}function LE(e){return NE.apply(this,arguments)}function NE(){return(NE=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Ok(i,r,o,a,s,"next",e)}function s(e){Ok(i,r,o,a,s,"throw",e)}a(void 0)}))}}(Ik().mark((function e(t){var n,r,o,i,a,s,l,c,u,d,p,f;return Ik().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.from,r=t.to,o=t.model,i=t.container,a=t.skipAttributeExpressions,s=t.onChange,o){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,o.getEffectiveProperties();case 5:return l=e.sent,c=l.qHyperCubeDef[i].findIndex((function(e){return e.qDef.cId===n})),u=l.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[i].findIndex((function(e){return e.qDef.cId===r})),d=xE(!0,{},l),p=d.qHyperCubeDef[i][c],(f=d.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[i][u]).qAttributeDimensions=p.qAttributeDimensions,p.qAttributeDimensions=[],a||(f.qAttributeExpressions=p.qAttributeExpressions,p.qAttributeExpressions=[]),d.qHyperCubeDef[i][c]=f,d.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[i][u]=p,s({fromItem:p,toItem:f,oldProperties:l,newProperties:d,model:o}),e.next=19,SE({model:o,properties:d});case 19:o.colorSupport&&o.colorSupport.colorByUpdater(d,"qHyperCubeDef."),qE({model:o,oldProperties:l,newProperties:d});case 21:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function OE(e){var t=e.callbacks,n=e.data,r=e.resources,o=e.settings,i=t.onChange,a=n.infos,s=r.app,l=r.model,c=r.translator,u=o.skipAttributeExpressions;return a.map((function(e,t){var n=e.cId,r=e.qGrouping,o=e.qGroupFallbackTitles,a=e.qGroupPos,d=e.qFallbackTitle,p=e.qLocked,f=e.title,m="C"===r,h="H"===r,g="N"===r,y="number"==typeof e.explicitColumn?e.explicitColumn:t,v=function(t,n){m&&s&&s.getDimension&&s.getDimension(e.qLibraryId).then((function(e){null==e||e[t](n)})).catch((function(){}))};return{meta:{isCyclic:m,isDrillDown:h,isLocked:!!p,isNormal:g},info:{id:n,key:"".concat(n,"-").concat(a),text:g?d:o[a],position:a,breadcrumbs:o.slice(0,e.qGroupPos),group:{name:f,items:o.slice(0,h?e.qGroupPos+1:o.length).map((function(e,t){return{id:"".concat(n,"-item-").concat(t),text:e,current:a===t,index:t}}))},tooltip:g?void 0:c.get(m?"Tooltip.dimensions.cyclic":"Tooltip.dimensions.drilldown")},action:{changeTo:function(e){var t=e.id;return LE({from:n,to:t,container:"qDimensions",model:l,skipAttributeExpressions:u,onChange:i})},drillUp:function(e){var t=e.steps;h&&l&&(null==l||l.drillUp("/qHyperCubeDef",y,t))},stepCycle:function(){return v("stepCycle",1)},setActiveField:function(e){var t=e.fieldIndex;return v("setActiveField",t)}}}}))}function DE(e){var t=e.callbacks,n=e.data,r=e.resources,o=e.settings,i=t.onChange,a=n.infos,s=r.model,l=o.skipAttributeExpressions;return a.map((function(e){var t=e.cId,n=e.qFallbackTitle;return{meta:{isNormal:!0},info:{id:t,key:t,text:n},action:{changeTo:function(e){var n=e.id;return LE({from:t,to:n,container:"qMeasures",model:s,skipAttributeExpressions:l,onChange:i})}}}}))}function AE(e){var t=e.callbacks,n=e.data,r=e.dock,o=e.key,i=e.rect,a=e.resources,s=e.settings,l=e.state,c=e.styling,u=function(e){var t=e.dock,n=e.rect,r={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",height:"100%"};return"left"!==t&&"right"!==t||(r.width="".concat(n.height,"px"),r.height="".concat(n.width,"px"),r.transformOrigin="top left"),"left"===t&&(r.transform="rotate(-90deg) translate(-".concat(n.height,"px, 0)")),"right"===t&&(r.transform="rotate(90deg) translate(0, -".concat(n.width,"px)")),r}({dock:r,rect:i}),d=function(e){var t=e.callbacks,n=e.data,r=e.dock,o=e.key,i=e.resources,a=e.settings,s=e.state,l=e.styling,c=n.alternatives,u=n.infos,d=i.app,p=i.cache,f=i.model,m=a.forceAllowChange,h=a.isRTL,g=a.isSnapshot,y=a.type,v=function(e){var t=e.dock;return"top"!==t&&"bottom"!==t||!e.isRTL?"ltr":"rtl"}({dock:r,isRTL:h}),b=function(e){var t=e.cache,n="axis-title-auto-focus_"+e.key;return{queueFor:function(e){var r;return null==t||null===(r=t.set)||void 0===r?void 0:r.call(t,n,{focus:!0,index:e})},shouldFor:function(e){var r,o,i=null==t||null===(r=t.get)||void 0===r?void 0:r.call(t,n),a=!(null==i||!i.focus||(null==i?void 0:i.index)!==e);return a&&(null==t||null===(o=t.set)||void 0===o||o.call(t,n,{focus:!1})),a}}}({cache:p,key:o}),x=("dimension"===y?OE:DE)({callbacks:t,data:n,resources:i,settings:a});"rtl"===v&&x.reverse();var S={allowed:{change:(!(null==f||!f.modifiers||null==f||!f.colorSupport)||m)&&!g,reload:!!d&&!g},hasAlternatives:!!c.length,hasCyclic:x.some((function(e){return e.meta.isCyclic})),hasMultiple:u.length>1};return x.map((function(e,t){return Pk(Pk({data:n,layout:{direction:v},resources:{translator:i.translator},services:{focus:b},settings:a,state:s,styling:l},e),{},{meta:Pk(Pk(Pk({},S),e.meta),{},{index:t,isFirst:0===t,isLast:t===x.length-1})})}))}({callbacks:t,data:n,dock:r,key:o,resources:a,settings:s,state:l,styling:c});return x.createElement("div",{style:u},d.map((function(e){return x.createElement(x.Fragment,{key:e.info.id},x.createElement(vE,{source:e}),!e.meta.isLast&&x.createElement("span",{dir:e.layout.direction,style:Pk(Pk({},c.title),{},{lineHeight:"normal"})},", "))})))}var RE,PE='"Source Sans Pro", "Arial", "sans-serif"',IE="12px",zE=function(e){var t=e.rect,n=e.state,r=e.settings,o=r.callbacks,i=r.data,a=r.key,s=r.layout,l=r.resources,c=r.settings,u=r.style;return AE({callbacks:o,data:i,dock:s.dock,key:a,rect:t,resources:l,settings:c,state:n,styling:u})},jE={renderer:"react",require:["renderer"],disableTriggers:!0,key:"axis-title",defaultSettings:{callbacks:{onChange:function(){}},data:{alternatives:[],infos:[]},resources:{app:void 0,cache:void 0,model:void 0,selections:void 0,translator:void 0},settings:{forceAllowChange:!1,isDisabled:function(){return!1},isRTL:!1,isSnapshot:!1,skipAttributeExpressions:!1,type:"dimension"},style:{title:{color:"#333",fontFamily:PE,fontSize:IE},popover:{color:"#595959CC",fontFamily:PE,fontSize:IE}}},preferredSize:function(){var e=this.settings,t=e.data,n=e.settings,r=e.style,o=t.alternatives,i=n.type,a=r.title,s=a.fontSize,l=a.fontFamily,c=o.length||"measure"!==i?28:20,u=this.registries.renderer("svg")().measureText({text:"M",fontSize:s,fontFamily:l}).height;return Math.max(c,u)},created:function(){var e=this;this.state={inSelections:!1},this.listeners={onSelectionsActivated:function(){e.state.inSelections=!0,e.renderer.render(zE(e))},onSelectionsDeactivated:function(){e.state.inSelections=!1}}},beforeMount:function(){var e=this.settings.resources.selections;e&&(e.addListener("activated",this.listeners.onSelectionsActivated),e.addListener("deactivated",this.listeners.onSelectionsDeactivated),e.addListener("canceled",this.listeners.onSelectionsDeactivated))},render:function(){return zE(this)},beforeUnmount:function(){var e=this.settings.resources.selections;e&&(e.removeListener("activated",this.listeners.onSelectionsActivated),e.removeListener("deactivated",this.listeners.onSelectionsDeactivated),e.removeListener("canceled",this.listeners.onSelectionsDeactivated))}},FE=function(e){var t=e.dock,n=e.settings.label,r="center"===t,o=r?{}:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};return x.createElement("span",{style:o,title:n},r?n:"* ".concat(n))},BE={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,o=t.style;return function(e){var t=e.dock,n=e.rect,r=e.settings,o=e.styling,i=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:o});return x.createElement("div",{dir:i,style:a},x.createElement(FE,{dock:t,settings:r}))}({dock:n.dock,rect:e,settings:r,styling:o})}},_E={},HE=function(){if(RE)return _E;RE=1;var e=O;return _E.createRoot=e.createRoot,_E.hydrateRoot=e.hydrateRoot,_E}(),$E=_M({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:"16px",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")}},outlined:{border:"1px solid rgba(0, 0, 0, 0.15)"},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 VE(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,o=n.y,i=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(o)||void 0===o?t.y:o,t.width=Number.isNaN(i)||void 0===i?t.width:i,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 WE(){var e={rendererBox:VE(),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=VE(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=HE.createRoot(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,o=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*o),"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(o,")"),e.container.style.transformOrigin="top left",e.root.render(function(e){var t=e.nodes;return x.createElement(x.StrictMode,null,x.createElement(CC,{theme:$E},t))}({nodes:t})),!0},findShapes:function(){return[]},itemsAt:function(){return[]},clear:function(){t()},destroy:function(){t()}}}const UE={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:o,flipXY:i,symbol:a}){let s="x",l="y",c=r,u=o,d=t<.5?90:-90;return i&&(s="y",l="x",c=o,u=r,d=t<.5?180:0),a(he({},e,{[s]:n*c,[l]:u-Math.max(e.size/2,Math.min(t*u,u-e.size/2)),startAngle:d}))}};function KE({i:e,width:t,height:n,resolved:r,keys:o,flipXY:i,calcKey:a="box"}){let s,l=null,c=null;void 0!==r.major.settings.binStart?(l=r.major.items[e].binStart,c=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 u=0;s?s.bandwidth?(u=s.bandwidth(),l-=u/2):u=c-l:u=1;const d=he({},{major:l,majorEnd:c},r.minor.items[e]);o.forEach((t=>{d[t]=r[t].items[e]}));const p=i?n:t,f=function({bandwidth:e,width:t,minWidthPx:n,maxWidthPx:r,maxMajorWidth:o}){const i=e>=0?1:-1;let a=Math.min(i*e*t,Number.isNaN(Number(r))?o:r/o);return a=Number.isNaN(Number(n))?a:Math.max(n/o,a),a*i}({bandwidth:u,width:d[a].width,minWidthPx:d[a].minWidthPx,maxWidthPx:d[a].maxWidthPx,maxMajorWidth:p}),m=(u-f)/2,h=m+d.major+f/2;return{item:d,boxCenter:h,boxWidth:f,boxPadding:m,rendWidth:t,rendHeight:n}}function GE({keys:e,data:t,defaultSettings:n,style:r,settings:o,width:i,height:a,resolver:s}){const l=he(!0,{},n||{},r||{}),c={major:"horizontal"===o.orientation?a:i,minor:"horizontal"===o.orientation?i:a},u=o.major;let d;d="object"==typeof u&&"object"==typeof u.ref&&void 0!==u.ref.start&&void 0!==u.ref.end?s.resolve({data:t,defaults:{start:0,end:1},scaled:c,settings:he(!0,{},{binStart:{scale:o.major.scale,ref:o.major.ref.start},binEnd:{scale:o.major.scale,ref:o.major.ref.end}})}):"object"==typeof u&&void 0!==u.binStart&&void 0!==u.binEnd?s.resolve({data:t,defaults:{start:0,end:1},scaled:c,settings:he(!0,{},{binStart:{scale:o.major.scale,ref:"binStart"},binEnd:{scale:o.major.scale,ref:"binEnd"}},o.major)}):s.resolve({data:t,scaled:c,defaults:{major:.5},settings:{major:o.major}});const p=o.minor||{};let f;const m={major:d,minor:s.resolve({data:t,defaults:{start:0,end:1},scaled:c,settings:he(!0,{},{start:{scale:p.scale,ref:"start"},end:{scale:p.scale,ref:"end"},min:{scale:p.scale,ref:"min"},max:{scale:p.scale,ref:"max"},med:{scale:p.scale,ref:"med"}},p)})};for(let n=0,r=e.length;n<r;n++)f=e[n],m[f]=s.resolve({data:t,defaults:l[f],settings:o[f],scaled:c});return m}const YE=["oob"];const XE={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:o,style:i,resolver:a,symbol:s}=this,l=GE({keys:YE,data:o,defaultSettings:{oob:UE.getDefaultSettings()},style:i,settings:this.settings.settings,width:e,height:t,resolver:a}),{settings:c,items:u}=l,d=function({width:e,height:t,flipXY:n,resolved:r,keys:o,symbol:i,dockValue:a,_calcItemRenderingOpts:s=KE}){const l=[],{items:c}=r.major;for(let u=0,d=c.length;u<d;u++){const{item:d,boxCenter:p,rendWidth:f,rendHeight:m}=s({i:u,width:e,height:t,resolved:r,keys:o,flipXY:n,calcKey:"oob"}),h=c[u].data,g=[];if(d.oob.show){g.push(UE.createOob({oob:d.oob,dockValue:a,boxCenter:p,rendWidth:f,rendHeight:m,flipXY:n,symbol:i}));const e={type:"container",data:h,collider:{type:"bounds"},children:g};l.push(e)}}return l}({width:e,height:t,flipXY:r,resolved:l,keys:YE,symbol:s,dockValue:n});return d}},JE={size:25,hat:{show:!0,fill:"#999",stroke:"#000",strokeWidth:0,strokeLinejoin:"miter",width:1,maxWidthPx:void 0,minWidthPx:1,minHeightPx:1,alignment:0}},ZE=["hat"];function QE(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 eT({item:e,boxWidth:t,boxPadding:n,rendWidth:r,rendHeight:o,flipXY:i}){let a="x",s="y",l=r,c=o,u=e.hat.alignment||0;i&&(a="y",s="x",l=o,c=r,u=1-u);const d=(n+e.major)*l;let p=[{[a]:d,[s]:0+c},{[a]:d+t*u*l,[s]:8},{[a]:d+t*l,[s]:0+c},{[a]:d+t*l,[s]:0+c+10},{[a]:d,[s]:0+c+10}];const f=he({},e.hat,{type:"path",d:QE(p)});p=[{[a]:d,[s]:0},{[a]:d+t*(1-u)*l,[s]:0+c-8},{[a]:d+t*l,[s]:0},{[a]:d+t*l,[s]:-10},{[a]:d,[s]:-10}];return[f,he({},e.hat,{type:"path",d:QE(p)})]}const tT={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:o,resolver:i}=this,a=GE({keys:ZE,data:r,defaultSettings:JE,style:o,settings:this.settings.settings,width:e,height:t,resolver:i}),{settings:s,items:l}=a,c=function({width:e,height:t,flipXY:n,resolved:r,keys:o,_calcItemRenderingOpts:i=KE}){const a=[],{items:s}=r.major;for(let l=0,c=s.length;l<c;l++){const{item:c,boxWidth:u,boxPadding:d,rendWidth:p,rendHeight:f}=i({i:l,width:e,height:t,resolved:r,keys:o,flipXY:n,calcKey:"hat"}),m=s[l].data,h=[];c.hat.show&&h.push(...eT({item:c,boxWidth:u,boxPadding:d,rendWidth:p,rendHeight:f,flipXY:n}));const g={type:"container",data:m,collider:{type:"bounds"},children:h};a.push(g)}return a}({width:e,height:t,flipXY:n,resolved:a,keys:ZE});return c}};var nT={defaultSettings:{settings:{size:10}},preferredSize(){return this.settings.settings.size},render:()=>[]};function rT(e,t,n,r){const o=function(t){const n=String(t);return e(n)};return o.ticks=()=>t.map((t=>{const i=o([t.data.value,r?n-1:0]),a=o([t.data.value,r?0:n-1])+e.bandwidth();return{position:(i+a)/2,label:t.label,data:t.data,start:i,end:a}})),o.bandwidth=()=>e.bandwidth(),o.data=()=>e.data(),o.domain=()=>e.domain(),o.pxScale=function(r){const o=e.pxScale(r);return o===e?this:rT(o,t,n)},o}function oT(e){const t=e.scale("band");e.scale("group-by-measure",(function(e={},n={},r={}){const o=t(e,n,r),i=o.domain(),a=o.ticks(),s=[],l=e.measureCount;return i.forEach(((e,t)=>{for(let t=0;t<l;++t)s.push(String([e,t]));s.push(`SPACER_${t}_SPACER`)})),s.splice(-1),o.domain(s),rT(o,a,l,e.invert)}))}const iT=()=>({version:"1.38.4",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}}),aT={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 sT(e){const t=e.split("/");return"qmem:"===t[0]&&""===t[1]}const lT={getImageSize(e,t){let n;function r(){n&&(clearTimeout(n),n=null)}function o(e){const t=e;t.onload=null,t.onerror=null,r()}const i={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,c=i[t]*(n>l?1:n/l),u=i[t]*(l>n?1:l/n);!n||!l||0===n&&0===l?(e={height:20,width:20,imageError:!0},o(s)):"original"===t?(e={height:Math.min(c,n),width:Math.min(u,l)},r()):(e={height:c,width:u},r()),a(e)},s.onerror=()=>{o(s),a({height:20,width:20,imageError:!0})},s.src=e,n=setTimeout((()=>{o(s),a({height:20,width:20,imageError:!0})}),3e3)}))}};async function cT(e,t,n){let r=e.ref.qStaticContentUrl.qUrl;const o=function(e){var t,n,r;let o,i,a,s,l,c;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 u;if(o=e.session.options||(null===(u=e.enigmaModel)||void 0===u?void 0:u.session.sessionConfig),!o){var d;o=null===(d=e.session)||void 0===d?void 0:d.config;const t=new URL(o.url);o.host=t.hostname,o.port=t.port,o.isSecure="wss:"===t.protocol}return c=void 0!==o.secure?o.secure:o.isSecure,i=c?"https://":"http://",a=o.host||"localhost",s=o.port?`:${o.port}`:"",l=o.prefix?o.prefix:"/","/"!==l[l.length-1]&&(l=`${l}/`),i+a+s+l}return""}(n);o&&(!function(e,t){const n=e.replace(t,"").replace(/^\.\.\//i,"/");n[0]}(r,o),r=r.replace(/"/g,'\\"'),r=r.replace(/'/g,"\\'"),r=function(e,t){return t+("/"===e[0]?e.substr(1):e)}(r,o));const{height:i,width:a,imageError:s}=await lT.getImageSize(r,t);return{src:r,size:t,height:i,width:a,imageError:s}}async function uT(e,t,n,r){var o,i,a;const{app:s,flags:l}=t,c=null===(o=e.layout)||void 0===o||null===(o=o.tooltip)||void 0===o?void 0:o.imageComponents;if(!c)return[];const[u]=c,d=u.size||"small",p=u.type||"media";let f=-1;for(let e=0;e<n.length;e++)if(n[e].cId===u.cId){f=e;break}const m=(null===(i=r.data)||void 0===i||null===(i=i.customTooltipAttrExps)||void 0===i?void 0:i.value)||[];let h;if(-1!==f&&m[f]&&(h=m[f]),"media"===p&&null!==(a=u.ref)&&void 0!==a&&null!==(a=a.qStaticContentUrl)&&void 0!==a&&a.qUrl)return cT(u,d,s);if("url"===p)return async function(e,t,n,r,o){let i,a=n.ref;if(o&&o.label&&(a=o.label),t.isEnabled("IMAGE_BUNDLE_LOAD")&&null!=e&&e.getImage&&sT(a))try{const t=`data:image/png;base64, ${await e.getImage(a)}`,{height:n,width:o,imageError:s}=await lT.getImageSize(t,r);i={src:t,size:r,height:n,width:o,imageError:s}}catch(e){}else{const{height:e,width:t,imageError:n}=await lT.getImageSize(a,r);i={src:a,size:r,height:e,width:t,imageError:n}}return i}(s,l,u,d,h);if(l.isEnabled("IMAGE_BUNDLE_LOAD")&&"field"===p&&h&&h.label){return async function(e,t,n,r){let o;const i=r.label,a=`qmem://${t.qFallbackTitle}/${i}`;if(sT(a))try{const t=await e.getImage(a);if(t){const e=`data:image/png;base64, ${t}`,{height:r,width:i,imageError:a}=await lT.getImageSize(e,n);o={src:e,size:n,height:r,width:i,imageError:a}}}catch(e){}return o}(s,n[f],d,h)}return[]}const dT={async addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){const o=t,i=[];for(let t=0;t<o.length;t++)i.push(uT(e,r,n,o[t]));const a=await Promise.all(i);for(let e=0;e<o.length;e++)o[e].data.customTooltipImages=[a[e]];return o},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}},pT={async handlePromises({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){let o=t;return o=await dT.addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}),o},checkIfPromisesExist:({customTooltipModel:e})=>dT.checkIfPromisesExist({customTooltipModel:e})};const fT=(e,t)=>{var n,r,o;const i=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===(o=e.qHyperCubeDef)||void 0===o?void 0:o.qInterColumnSortOrder,l=t;return{qInfo:{qType:aT.CHART.CHART_PARENT_TYPE,qId:aT.CHART.CHART_OBJECT_ID},qHyperCubeDef:{qDimensions:i,qMeasures:a,qInterColumnSortOrder:s,qInitialDataFetch:[{qWidth:0,qHeight:0}]},qStateName:l}},mT=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:aT.CHART.CHART_CHILD_TYPE},qExtendsId:n}};const hT={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 o=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",i=aT.CHART.STYLE[o];return[{content:[e.h("div",{style:{display:"flex",width:i,height:i,backgroundColor:"#FFFFFF",borderRadius:"5px",padding:"2px",color:"#595959"},colspan:2,id:aT.CHART.CONTAINER_ID})],colspan:2,style:{"text-align":e.rtl?"right":"left","max-width":i}},{}]}(e,t)},show:async({app:e,properties:t,selectedNodes:n,dimIndex:r,customTooltipModel:o,rtl:i})=>{var a;const s=o,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 hT.hide({app:e,customTooltipModel:o});try{await async function({app:e,properties:t,customTooltipModel:n}){const r=n,o=aT.CHART.STATE,i=t.qStateName;r.miniChartToken.alternateState||(r.miniChartToken.alternateState=o,await e.addSessionAlternateState(o,i),r.miniChartToken.alternateState=o)}({app:e,properties:t,customTooltipModel:o});const a=await async function({app:e,properties:t,customTooltipModel:n}){var r;const o=n;null!==(r=o.miniChartToken.sessionObj)&&void 0!==r&&r.id&&await e.destroySessionObject(o.miniChartToken.sessionObj.id);const i=aT.CHART.STATE,a=fT(t,i),s=await e.createSessionObject(a),l=mT(t);if(s.id!==aT.CHART.CHART_OBJECT_ID)return void e.destroySessionObject(s.id);o.miniChartToken.sessionObj=s;const c=await s.createChild(l);if(o.miniChartToken.sessionObj&&o.miniChartToken.sessionObj.id===s.id)return o.miniChartToken.model=c,c;e.destroySessionObject(s.id)}({app:e,properties:t,customTooltipModel:o});if(s.miniChartToken.alternateState&&s.miniChartToken.sessionObj&&a){var c,u,d,p;const e=n.length>0&&void 0!==(null===(c=n[0].data)||void 0===c?void 0:c.value)?[null===(u=n[0].data)||void 0===u?void 0:u.value]:[],a=void 0!==r?r:t.qHyperCubeDef.qDimensions.length-1;if(2===t.qHyperCubeDef.qDimensions.length&&void 0===r&&n.length>0){var f,m;const e=null!==(f=n[0].data.selectionOuterDimension)&&void 0!==f?f:n[0].data.selectionDimension;if(null!=e&&null!==(m=e.source)&&void 0!==m&&m.field){var h;const t=null==e||null===(h=e.source)||void 0===h?void 0:h.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(aT.CHART.CONTAINER_ID),g={direction:i?"rtl":"ltr",isReadonly:!0,isPopover:!0,navigation:!1,selections:!1};s.miniChartToken.vis=await o.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===(p=s.miniChartToken.model)||void 0===p?void 0:p.genericType})}}catch(t){await hT.hide({app:e,customTooltipModel:o})}}},hide:async({app:e,customTooltipModel:t})=>{const n=t;null!=n&&n.embed&&(hT.destroyVisualization({customTooltipModel:t}),await e.destroySessionObject(aT.CHART.CHART_OBJECT_ID),n.miniChartToken.sessionObj=void 0,await async function({app:e,customTooltipModel:t}){const n=t,r=aT.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 gT(e){const t=e.qHyperCubeDef?e.qHyperCubeDef.qDimensions:e.qHyperCube.qDimensionInfo;if(t&&t.length>0)return t}function yT(){const{EXPRESSION:e,TITLE:t,DESCRIPTION:n,IMAGES:r}=aT.CUSTOM,o={};return o[e]=!0,o[t]=!0,o[n]=!0,o[r]=!0,o}function vT(e){const t=yT();return e.filter((e=>t[e.id]))}const bT={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 o=t.element.getBoundingClientRect();return{cx:n-o.left,cy:r-o.top}}(e,t);return t.shapesAt({x:n.cx,y:n.cy})},getDataNodes(e,t){let n,r=[];const o={container:{bar:!0,"bullet-axis":!0},circle:{"point-component":!0}};return t.forEach((t=>{var i,a,s,l;const c=null!==(i=null===(a=t.data)||void 0===a?void 0:a.selectionDimension)&&void 0!==i?i:t.data;if(!c||null!==(s=t.data)&&void 0!==s&&s.customTooltipAttrExps||o[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(o).forEach((t=>{n=n.concat(e.findShapes(t).filter((e=>e.data&&e.data.customTooltipAttrExps&&!e.data.customTooltipImages&&o[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===c.value&&r.label===c.label}));t.length>0&&(r=r.concat(t[0]))}})),r},displayTooltip(e,t,{nodes:n,opts:r={},customTooltipModel:o,extractedNodes:i=[],hide:a}){if(o&&!a){const{layout:a,chart:s}=o,{attrExps:l}=bT.getAttrExprData(a);i.length||n.length?pT.handlePromises({customTooltipModel:o,nodes:bT.getDataNodes(s,i.length>0?i: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!=o&&null!==(s=o.miniChartToken)&&void 0!==s&&s.alternateState&&hT.hide({app:r.app,customTooltipModel:o}),t.emit("hide")}},checkIfPromisesExist:({customTooltipModel:e})=>pT.checkIfPromisesExist({customTooltipModel:e}),getAttrExps(e,t){var n;const r=t,o=null!==(n=e.qHyperCubeDef)&&void 0!==n&&n.qDimensions?"qAttributeExpressions":"qAttrExprInfo";return r[o]||(r[o]=[]),r[o]},getAttrExprData(e){var t;let n=[],r="";const o=(null===(t=e.qHyperCube)||void 0===t?void 0:t.qDimensionInfo)||[];if(o.length>0){var i;const t=o.length-1;n=(null===(i=e.qHyperCube)||void 0===i||null===(i=i.qDimensionInfo)||void 0===i||null===(i=i[t])||void 0===i?void 0:i.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[aT.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[aT.CUSTOM.QUARANTINE]=[],e.forEach((e=>{r.quarantine[aT.CUSTOM.QUARANTINE].push(e)})),n.qLayoutExclude=r}(vT(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[aT.CUSTOM.QUARANTINE])&&delete n.qLayoutExclude.quarantine[aT.CUSTOM.QUARANTINE]},setAttrsFromQuarantine(e,t){const n=gT(e);if(!n)return;const r=void 0!==t?t:n.length-1;if(!n[r])return;const o=this.getAttrExps(e,n[r]);if(0===vT(o).length){var i;const t=(null===(i=e.qLayoutExclude)||void 0===i||null===(i=i.quarantine)||void 0===i?void 0:i.customTooltip)||[],n=[...o,...t],a=e;a.qHyperCubeDef?a.qHyperCubeDef.qDimensions[r].qAttributeExpressions=n:a.qHyperCube.qDimensionInfo[r].qAttrExprInfo=n}},moveCustomTooltipAttrs(e,t={},n=void 0){let r=[];const o=gT(e)||[];[...o,t].forEach((e=>{const t=vT(e.qAttributeExpressions||[]);t.length>0&&(r=t)}));const i=yT(),a=o.map((e=>{const t=e,n=e.qAttributeExpressions||[];return t.qAttributeExpressions=n.filter((e=>!i[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:$e.detectTextDirection(e)},colspan:2},{}],getImageRow(e,t){const n=$e.detectTextDirection(e.src),r=[],o={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"})),o.style["text-align"]="center",o.style["white-space"]="nowrap"}else o.style["background-size"]="contain",o.style["background-repeat"]="no-repeat",o.style["background-position"]="center",o.style["background-image"]=`url('${e.src}')`;return[{content:[t.h("div",o,r),""],style:{"text-align":t.rtl?"right":"left",direction:n,"max-width":e.width},colspan:2},{}]}};function xT(e,t,n,r){var o;const i=(null===(o=t.qHyperCube)||void 0===o||null===(o=o[n])||void 0===o||null===(o=o[r])||void 0===o?void 0:o.qAttrExprInfo)||[],a=[],s=e.qSubNodes&&e.qSubNodes[r]?e.qSubNodes[r].qAttrExps:e.qAttrExps;return s?(i.forEach(((e,t)=>{const o=s.qValues&&s.qValues[t]?s.qValues[t]:void 0,i=void 0===o?"NaN":function(e,t){let n;switch(e.id){case aT.CUSTOM.EXPRESSION:n="NaN"===t.qNum||e.isCustomFormatted?void 0===t.qText?"NaN":t.qText:t.qNum;break;case aT.CUSTOM.TITLE:case aT.CUSTOM.DESCRIPTION:case aT.CUSTOM.IMAGES:n=void 0===t.qText?e.qFallbackTitle:t.qText;break;default:n="NaN"}return n}(e,o);a.push({source:{key:"qHyperCube",field:`${n}/${r}/qAttrExprInfo/${t}`},label:i,value:"value"})})),a):a}const ST={getNode(e,{dimensionCount:t}){if(!t||t<1)return;const n=t-1,r="qDimensionInfo";return{field:`${r}/${n}`,value:t=>xT(t,e,r,n)}}};const MT={getCustomAttrExps(e,t,n){var r;const o={customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]},i=(null===(r=t.data)||void 0===r||null===(r=r.customTooltipAttrExps)||void 0===r?void 0:r.value)||[];if(Number.isNaN(i))return o;return function(e,t,n,r){const o={[aT.CUSTOM.TITLE]:!0,[aT.CUSTOM.DESCRIPTION]:!0},{attrExps:i,fieldPath:a}=bT.getAttrExprData(e);return 0===t.length||0===i.length||""===a||i.forEach(((e,i)=>{const s=t[i];if(e.id===aT.CUSTOM.EXPRESSION&&s){const t=e.qFallbackTitle,o="NaN"===s.value||e.isCustomFormatted?s.value:n("qHyperCube").field(`${a}/${i}`).formatter()(s.value);r.customTooltipAttrExpsArr.push({label:t,value:o})}else if(o[e.id]&&s){const t="-"!==s.value&&"NaN"!==s.value?s.value:s.label;t&&"undefined"!==t&&r.customTooltipInfoAttrExpsArr.push({...e.id===aT.CUSTOM.TITLE&&{title:t},value:t,id:e.id})}})),r}(n,i.map((t=>Ve.getMeasure(e,t))),e,o)}};function CT({nodes:e,layout:t,dataset:n}){const r=function(e,t,n){const r=[];return e.forEach((e=>{r.push(MT.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 wT(e){const t=aT.CUSTOM.EXPRESSION,{qNumFormat:n,qLabel:r,qLabelExpression:o,cId:i}=e.qDef;return e.qLibraryId?{qLibraryId:e.qLibraryId,id:t,qNumFormat:n,qLabel:r,qLabelExpression:o,cId:i}:{qExpression:e.qDef.qDef,id:t,qNumFormat:n,qLabel:r,qLabelExpression:o,cId:i}}function kT(e){var t;const n=null===(t=e.qHyperCubeDef)||void 0===t?void 0:t.qDimensions;return n[n.length-1].qAttributeExpressions||[]}const ET={migrateProperties(e){var t,n;const r=he(!0,{},e),o=(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 i=kT(r);return i=function(e,t){return t.concat(e.map((e=>wT(e))))}(o,i),function(e,t){var n;const r=null===(n=t.qHyperCubeDef)||void 0===n?void 0:n.qDimensions;r[r.length-1].qAttributeExpressions=e}(i,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)||[],o=(null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qDimensions.length)-1,i=function(e,t,n){let r=e.length;const o=[];return t.forEach((e=>{const t=wT(e),i=JSON.stringify(t);o.push({qPath:`/qHyperCubeDef/qDimensions/${n}/qAttributeExpressions/${r}`,qOp:"add",qValue:i}),r++})),o.push({qPath:"/tooltip/data",qOp:"remove"}),o}(kT(e),r,o);return i},checkForBackwardCompatibility:(e,t)=>(e.qMeasureInfo||[]).length>0&&t.length>0,updateProperties(e,t){const n=new Promise((n=>{var r,o,i;const a=(null===(r=t.qHyperCube)||void 0===r?void 0:r.qDimensionInfo)||[],s=(null===(o=t.tooltip)||void 0===o||null===(o=o.data)||void 0===o?void 0:o.qHyperCube)||{},l=null===(i=t.qMeta)||void 0===i||null===(i=i.privileges)||void 0===i?void 0:i.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 TT={attrExpr:ET},qT=7005;const LT=e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==qT},NT=e=>{if(e.qHyperCubeDef.qDimensions.length>1&&1===e.qHyperCubeDef.qMeasures.length){const t=e.qHyperCubeDef.qInterColumnSortOrder.indexOf(0);0!==t&&ke.moveArrayElement(e.qHyperCubeDef.qInterColumnSortOrder,t,0)}},OT=(e,t)=>{t>10?1!==e.qHyperCubeDef.qInterColumnSortOrder[0]&&ke.moveArrayElement(e.qHyperCubeDef.qInterColumnSortOrder,1,0):0!==e.qHyperCubeDef.qInterColumnSortOrder[0]&&ke.moveArrayElement(e.qHyperCubeDef.qInterColumnSortOrder,1,0)},DT=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))},AT=(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;OT(e,n)}return r})):t.getField(r.qDef.qFieldDefs[0]).then((t=>t.getCardinal().then((t=>(OT(e,t),r)))),(()=>r))}return NT(e),Promise.resolve()};function RT(e){const t=e.qHyperCubeDef.qDimensions,n=e.qHyperCubeDef.qMeasures,{color:{mode:r}}=e;t.length>1&&e.color?i(e,"color.persistent",!0):"byDimension"===r&&n.length>1?i(e,"color.mode","byMultiple"):"byExpression"===r&&0===n.length?i(e,"color.mode","primary"):0===t.length&&n.length>0&&(i(e,"color.byMeasureDef",void 0),i(e,"color.byDimDef",void 0),1===n.length&&"byExpression"!==r&&i(e,"color.mode","primary"))}const PT=(e,t)=>{RT(t),$t(e),bT.addCallbackCustomTooltip(t)},IT=e=>{RT(e)};function zT({translator:e}){return{dimensions:{min:0,max:e=>e>1?1:2,description(t,n,r,o){let i;const a=null!=o&&o.layout?o.layout.qHyperCube.qDimensionInfo.filter((e=>LT(e))).length:t.qHyperCubeDef.qDimensions.length;return r.isAutoChart&&n>a-1?i="Visualizations.Descriptions.Color":a>1&&0===n?"stacked"===t.barGrouping.grouping?i="Visualizations.Descriptions.Stack":(i="Visualizations.Descriptions.Group",t.qHyperCubeDef.qColumnOrder=[0,1,2]):i="Visualizations.Descriptions.Bars",e.get(i)},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?AT(t,n.app).then((()=>(PT(e,t),e))):(DT(t),PT(e,t),e)),move(e,t,n){n.layout.qHyperCube.qDimensionInfo.filter((e=>LT(e))).length>1&&"stacked"===t.barGrouping.grouping&&(t.qHyperCubeDef.qMode="K",t.qHyperCubeDef.qAlwaysFullyExpanded=!0),NT(t),RT(t),bT.moveCallbackCustomTooltip(t,e)},remove(e,t){const n=t.qHyperCubeDef.qDimensions;RT(t),1===n.length&&(t.qHyperCubeDef.qMode="S"),bT.removeCallbackCustomTooltip(t,e)},replace(e,t,n,r){bT.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?AT(t,n.app).then((()=>(e.qSortBy.qSortByNumeric=-1,IT(t),e))):(DT(t),IT(t),e),move(e,t){NT(t),RT(t)},remove(e,t){const n=t.qHyperCubeDef.qDimensions;RT(t),n.length>1&&"stacked"===t.barGrouping.grouping?(t.qHyperCubeDef.qMode="K",t.qHyperCubeDef.qAlwaysFullyExpanded=!0):1===n.length&&(t.qHyperCubeDef.qMode="S")}}}}function jT(e){return{properties:iT(),data:{targets:[{path:"/qHyperCubeDef",...zT(e)}]}}}var FT={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_Disclaimer_OnlyNegativeValues:{id:"Object.Disclaimer.OnlyNegativeValues",locale:{"en-US":"The chart is not displayed because it contains only negative values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含負值。","zh-CN":"未显示图表,因为它仅包含负值。","tr-TR":"Yalnızca negatif değerleri içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det endast innehåller negativa värden.","it-IT":"Il grafico non viene visualizzato poiché contiene solo valori negativi.","es-ES":"El gráfico no se muestra porque solo contiene valores negativos.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur negative oder Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wyłącznie wartości ujemne.","nl-NL":"Het diagram wordt niet weergegeven omdat deze alleen negatieve waarden bevat.","ko-KR":"음수 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não é exibido porque contém apenas valores negativos.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs négatives.","ja-JP":"負の値しか含まれていないため、チャートは表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только отрицательные значения."}},Object_Disclaimer_NegativeValues:{id:"Object.Disclaimer.NegativeValues",locale:{"en-US":"The data set contains negative values that cannot be shown in this chart.","zh-TW":"資料集包含無法在此圖表中顯示的負值。","zh-CN":"数据集包含无法在此图表中显示的负值。","tr-TR":"Veri kümesi, bu grafikte gösterilemeyen negatif değerleri içeriyor.","sv-SE":"Datauppsättningen innehåller negativa värden som inte kan visas i det här diagrammet.","it-IT":"Il set di dati contiene valori negativi che non possono essere visualizzati in questo grafico.","es-ES":"El conjunto de datos contiene valores negativos que no se pueden mostrar en este gráfico.","de-DE":"Die in den Datensätzen enthaltenen negativen Werte können nicht in diesem Diagramm dargestellt werden.","pl-PL":"Zestaw danych zawiera wartości ujemne, których nie można przedstawić na tym wykresie.","nl-NL":"De gegevensverzameling bevat negatieve waarden die niet kunnen worden weergegeven in dit diagram.","ko-KR":"데이터 집합에 해당 차트에 표시할 수 없는 음수 값이 포함되어 있습니다.","pt-BR":"O conjunto de dados contém valores negativos que não podem ser mostrados neste gráfico.","fr-FR":"Le jeu de données contient des valeurs négatives impossibles à afficher dans ce graphique.","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":"Выключить выбор лассо"}}};const BT="REJECTED",_T=()=>{},HT=1e4,$T={MULTIPLIER:2,MINIMUM:20,MAXIMUM:200},VT=50,WT=10,UT=100;var KT={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)),o=Math.max(t.qTop,e.qArea.qTop),i=Math.max(t.qLeft,e.qArea.qLeft),a=Math.max(0,o-e.qArea.qTop),s=Math.min(o+n-e.qArea.qTop,e.qArea.qHeight),l=Math.max(0,i-e.qArea.qLeft),c=Math.min(i+r-e.qArea.qLeft,e.qArea.qWidth),u={qArea:{qHeight:s-a,qWidth:c-l,qTop:o,qLeft:i},qMatrix:[]};for(let t=a;t<s;t++)u.qMatrix.push(e.qMatrix[t].slice(l,c));return u},cacheWarden:function({bounds:e={width:0,height:0}}){return{release(t,n){const r=n.qTop-WT<=t.qTop,o=n.qLeft+n.qWidth+WT>=t.qLeft+t.qWidth,i=n.qTop+n.qHeight+WT>=t.qTop+t.qHeight,a=n.qLeft-WT<=t.qLeft;return r&&t.qTop>0||o&&t.qLeft+t.qWidth<e.width||i&&t.qTop+t.qHeight<e.height||a&&t.qLeft>0}}},request:function({definitionPath:e}){return t=>({method:"getHyperCubeData",args:[e,[t]]})}};var GT={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),o=Math.max(t.qLeft,e.qArea.qLeft),i=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-i),l={qArea:{qHeight:a-i,qWidth:e.qArea.qWidth,qTop:r,qLeft:o},qData:[{...e.qData[0],qUp:r,qDown:s,qSubNodes:[]}]};for(let t=i;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-WT<=t.qTop,o=n.qTop+n.qHeight+WT>=t.qTop+t.qHeight;return r&&t.qTop>0||o&&t.qTop+t.qHeight<e.height}}},request:function({definitionPath:e}){return t=>({method:"getHyperCubeStackData",args:[e,[t]]})}};var YT={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 XT="pages";const JT="discretePan",ZT=10;function QT({chart:e,actions:t,componentKey:n,dockService:r,rtl:o,scroller:i}){return{type:"Pan",key:"discrete:pan",options:{event:JT,pointers:1,threshold:ZT,enable(r,o){return this.started===JT||!o||!(!t.scroll.enabled()||!i.enabled())&&e.componentsFromPoint({x:o.center.x,y:o.center.y}).some((e=>e.key===n))}},events:{[`${JT}start`](e){e.preventDefault(),this.started=JT;const t="horizontal"===r.meta.major.orientation?e.deltaX:e.deltaY;this.previousTotalDelta=t<0?-10:ZT},[`${JT}move`](e){e.preventDefault();const t="horizontal"===r.meta.major.orientation,n=t?e.deltaX:e.deltaY,a=t&&o?-1:1,s=(n-this.previousTotalDelta)*a;this.previousTotalDelta=n,i.scroll(s)},[`${JT}end`](e){e.preventDefault(),this.started=!1},[`${JT}cancel`](e){e.preventDefault(),this.started=!1}}}}function eq({chart:e,componentKey:t,actions:n,scroller:r}){return function(o){if(!n.scroll.enabled()||!r.enabled())return;const[i]=e.componentsFromPoint({x:o.clientX,y:o.clientY}).filter((e=>e.key===t));if(!i)return;o.preventDefault();const a=Math.abs(o.deltaY)>Math.abs(o.deltaX)?o.deltaY:o.deltaX,s=Math.sign(-a)*UT;r.scroll(s)}}function tq({layoutService:e}){const t=function({layoutService:e}){const t=Math.floor(HT/(e.meta.dimensionCount+e.meta.measureCount));return function({width:e,height:n}){const r=Math.min(t,Math.max($T.MAXIMUM,n));return{width:e,height:Math.max($T.MINIMUM,Math.min(n*$T.MULTIPLIER,r))}}}({layoutService:e}),n={width:e.meta.size.x,height:e.meta.size.y};return function(e){const{width:r,height:o}=t({width:e.qWidth,height:e.qHeight}),i=o?Math.ceil((o-e.qHeight)/2):0,a=r?Math.ceil((r-e.qWidth)/2):0;return{qHeight:o?Math.min(o,n.height):e.qHeight,qWidth:r?Math.min(r,n.width):e.qWidth,qTop:o?Math.max(0,Math.min(e.qTop-i,n.height-o)):e.qTop,qLeft:r?Math.max(0,Math.min(e.qLeft-a,n.width-r)):e.qLeft}}}function nq(e){let t,n;const r=o=>{t=o;const{method:i,args:a}=t.request;e[i](...a).then((e=>{if(t.canceled||n)return t.reject(BT),t=null,void(n&&(r(n),n=null));t.resolve(e[0]),t=null}))},o=e=>new Promise(((o,i)=>{const a={request:e,resolve:o,reject:i,canceled:!1,cancel:()=>{a.canceled=!0}};t?(e=>{n&&n.reject(BT),n=e})(a):r(a)}));return o.isProcessing=()=>!!t,o.hasQueued=()=>!!n,o.cancel=()=>{o.isProcessing()&&t.cancel(),o.hasQueued()&&(n.reject(BT),n=null)},o}const rq={command:{update:()=>{}}};var oq={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:o}=t,i=e.getDataPages()[0],a=o/r;return[a,n.inView>=n.inTotal?a+1:a+i.qArea.qWidth/n.inView]}};var iq={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 o=void 0===r?4:r,i=Math.max(0,Math.floor(t)-o/2);return{qTop:i,qHeight:Math.min(e.meta.size.y-i,Math.max(0,Math.ceil(n+o))),qLeft:0,qWidth:e.meta.size.x}},scaleRange:function({layoutService:e,offsets:t,items:n,viewSize:r}){const{pixel:o}=t,i=e.getDataPages()[0],a=r/n.inView,s=(o+i.qArea.qTop*a)/r;return[s,n.inView>=n.inTotal?s+1:s+i.qArea.qHeight/n.inView]}};function aq(e){const{groupSize:t,measureCount:n}=e.meta;return null!=t?t:n}function sq(e,t){const n=[];for(let r=0;r<e.length;r++){const o=t(e[r]);-1===n.indexOf(o)&&n.push(o)}return n.length}function lq(e){return sq(e.qMatrix,(e=>e[0].qElemNumber))-1}var cq={inTotal:function({layoutService:e}){const t=aq(e);return e.meta.size.y*t*(1+1/t)-1},area:function({layoutService:e,itemOffset:t,inView:n,areaBuffer:r}){const o=aq(e),i=void 0===r?o:r,a=t/(o+1),s=Math.max(0,Math.floor((t-a-i/2)/o));return{qTop:s,qHeight:Math.min(e.meta.size.y-s,Math.max(0,Math.ceil((n+i)/o+1))),qLeft:0,qWidth:e.meta.size.x}},scaleRange:function({layoutService:e,offsets:t,items:n,viewSize:r}){const o=aq(e),i=e.getDataPages()[0],a=r/n.inView,{pixel:s}=t,l=lq(i),c=i.qArea.qHeight*o+l,u=(s+(i.qArea.qTop*o+i.qArea.qTop)*a)/r;return[u,n.inView>=n.inTotal?u+1:u+c/n.inView]}};const uq=(e,t)=>t/(e.meta.size.y/e.meta.size.dimensions[0]+1);function dq(e){return{itemOffset(t,n){if(0!==t.qArea.qTop)return uq(e,n);const r=((e,t)=>{const n={successful:!0,count:0};let r=Math.abs(Math.floor(t));const o=[];for(let t=0;t<=r;t++){if(!e[t])return n.successful=!1,n;const i=e[t][0].qElemNumber;-1===o.indexOf(i)&&(o.push(i),r--)}return n.count=o.length-1,n})(t.qMatrix,n);return r.successful?r.count:uq(e,n)},area(t,n,r){if(0!==t.qArea.qTop)return uq(e,n);return sq(t.qMatrix.slice(0,r.qTop+1),(e=>e[0].qElemNumber))-1}}}var pq={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 o=dq(t).itemOffset(e(),n),i=Math.max(0,Math.floor(n-o));return{qTop:i,qHeight:Math.min(t.meta.size.y-i,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:o,upperBound:i}){const a=t.getDataPages()[0],s=o/r.inView,{item:l,pixel:c}=n,u=dq(t).area(e(),l,a.qArea),d=lq(a),p=a.qArea.qHeight+d,f=c===i?(r.inView-p)*s/o:(c+(a.qArea.qTop+u)*s)/o;return[f,r.inView>=r.inTotal?f+1:f+p/r.inView]}};function fq({chart:e,rect:t,dockService:n,itemWidths:r,axisKey:o,renderer:i,isGrouped:a,dimensionAxis:s,inTotal:l,isMajorLabelless:c,maxDataRows:u}){const{DEFAULT:d,SQUEEZE:p,LABELLESS:f}=r[n.meta.chart.mode],m="horizontal"===n.meta.major.orientation,{axisDisplayMode:h="auto",maxVisibleItems:g=10,label:y}=s,v=m?t.width:t.height,b=v/l>=p;switch(h){case"max":return Math.min(l,u);case"custom":return Math.min(g,u);default:return c?v/f:b?function({chart:e,isHorizontal:t,axisKey:n,renderer:r={},isGrouped:o,itemSize:i,label:a}){if(o||"auto"!==a&&"tilted"!==a)return!1;const s=e.component(n),{measureText:l}=r;if(!s||!l)return!0;const{fontFamily:c,fontSize:u,tiltAngle:d}=s.settings.settings.labels,{height:p}=l({fontFamily:c,fontSize:u,text:"M"});if(!t)return p>i;const f=(90-d)*(Math.PI/180);return p>Math.cos(f)*i}({chart:e,isHorizontal:m,axisKey:o,renderer:i,isGrouped:a,itemSize:p,label:y})?v/d:l:v/d}}var mq="AVERAGE",hq="LINEAR",gq="POLYNOMIAL2",yq="POLYNOMIAL3",vq="POLYNOMIAL4",bq="EXPONENTIAL",xq="LOG",Sq="POWER";function Mq({dimValue:e,value:t,qTrendLine:n}){const{qType:r,qCoeff:o}=n,i={x:e,y:o[2]*t**2+o[1]*t+o[0]};switch(r){case yq:return i.y+=o[3]*t**3,i;case vq:return i.y+=o[4]*t**4+o[3]*t**3,i;default:return i}}var Cq={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:Mq,polynomial3:Mq,polynomial4:Mq,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)}}};function wq(e,t){const n=Cq[t.qType.toLowerCase()],r=Math.max(1,e/500);let o=1/0,i=-1/0;for(let a=0;a<e;a+=r){const{y:e}=n({dimValue:null,value:a+1,qTrendLine:t});o=Math.min(e,o),i=Math.max(e,i)}return{min:o,max:i}}function kq(e){return Cq[e.qType.toLowerCase()]}function Eq(e,t){return e.meta.isContinuous?function(e,t){return{generate:(n,r,o)=>{var i,a;const s=[],l=kq(n),c=t.get("zoom"),u=null!==(i=n.start)&&void 0!==i?i:c.min,d=null!==(a=n.end)&&void 0!==a?a:c.max,p=(d-u)/100,f=e.meta.isButterfly&&o>0;if(p>0){const e=e=>{const t=l({dimValue:e,value:e,qTrendLine:n});f&&(t.y=-t.y),t.layerId=r,t.measureIndex=o,t.dimValue=e,s.push(t)};let t=u;for(let n=u;n<=d;n+=p)e(n),t=n;t!==d&&e(d)}return s},calculate:(e,t)=>kq(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)}}}}(e,t):e.meta.mode.K?function(e){return{generate:(t,n,r)=>{const o=[],i=e.getDataPages()[0],a=i.qData[0].qSubNodes,s=i.qArea.qTop,l=Cq[t.qType.toLowerCase()];for(let e=0;e<a.length;e++){const i=a[e],c=l({dimValue:i.qElemNo,value:e+s+1,qTrendLine:t});c.layerId=n,c.measureIndex=r,c.dimValue=i.qText,o.push(c)}return o},findMinMax:wq}}(e):function(e){return{generate:(t,n,r)=>{const o=[],i=e.getDataPages()[0],a=i.qMatrix,s=i.qArea.qTop,l=Cq[t.qType.toLowerCase()],c=e.meta.isButterfly&&r>0;for(let e=0;e<a.length;e++){const i=a[e][0],u=e+s+1,d=l({dimValue:i.qElemNumber,value:u,qTrendLine:t});c&&(d.y=-d.y),d.layerId=n,d.measureIndex=r,d.dimValue=i.qText,o.push(d)}return o},calculate:(e,t,n)=>(0,Cq[e.qType.toLowerCase()])({dimValue:n,value:t,qTrendLine:e}),findMinMax:wq}}(e)}var Tq={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"},qq={color:"#f93f17",index:9};const{isDark:Lq}=Ht,Nq={x:NaN,y:NaN,layerId:NaN,measureIndex:NaN},Oq=({layoutService:e,viewState:t,colorModel:n,chart:r,env:o,keys:{colorScale:i},isEnabled:a=()=>!1})=>{const{translator:s}=o,l=[Nq],c=[],d=[],p=Eq(e,t);e.getLayoutValue("qHyperCube.qMeasureInfo",[]).forEach(((e,t)=>{Array.isArray(e.qTrendLines)&&(c.push(...e.qTrendLines),d.push(...e.qTrendLines.map((()=>t))))}));const f=u((e=>{const{style:t}=c[e]||{},o=n.settings();if(t.autoColor){if("measure"===o.mode){const t=d[e],n=r.scale(i)(t);return Lq(n)?function(e){const t=Ft(e);return t.l<30?t.l+=15:t.l<50?t.l+=10:t.l+=5,t.toString()}(n):function(e){const t=Ft(e);return t.l-=5,t.toString()}(n)}return n.resolveUIColor(qq)}return t.paletteColor?n.resolveUIColor(t.paletteColor):"none"}));return{query:{hasTrendLines:()=>!!c.length&&a(),getData:()=>l,getStroke:f,getLineDash:e=>{const{style:t}=c[e]||{};return null==t?void 0:t.lineDash},getLineThickness:e=>{var t;const{style:n}=c[e]||{};return null!==(t=null==n?void 0:n.lineThickness)&&void 0!==t?t:2},getLabel:e=>(c[e]||{}).label,getType:e=>{const{qType:t}=c[e]||{};return s.get(Tq.TYPES[t])},getMinMax:()=>{let t=1/0,n=-1/0;return c.forEach((r=>{const o=p.findMinMax(e.meta.size.y,r);t=Math.min(o.min,t),n=Math.max(o.max,n)})),{min:t,max:n}},getCalculatedValue:(e,t,n)=>{const r=c[e];return p.calculate(r,t,n)}},command:{update:()=>{l.length=0,c.forEach(((e,t)=>{const n=p.generate(e,t,d[t]);l.push(...n)}))}}}};var Dq={source:"trend",extract:{field:"x",props:{minor:{field:"y"},layer:{field:"layerId"},measureIndex:{field:"measureIndex"},dimValue:{field:"dimValue"}}}};const Aq=({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,Rq=(e,{layoutService:t,trendLineModel:n,dockService:r,animationsEnabled:o})=>{if(!n.query.hasTrendLines())return[];const i=(({majorScale:e,minorScale:t},{trendLineModel:n,layoutService:r,dockService:o,animationsEnabled:i})=>{const a=Aq(r);return{key:"trend-lines",type:"line",layout:{dock:"center"},data:Dq,settings:{connect:!0,orientation:o.meta.major.orientation,coordinates:{major:{scale:e,fn:a},minor:{scale:t},layerId:{ref:"layer"}},layers:{curve:"monotone",line:{strokeWidth:({datum:e})=>n.query.getLineThickness(e.layer.value),stroke:({datum:e})=>n.query.getStroke(e.layer.value),strokeDasharray:({datum:e})=>n.query.getLineDash(e.layer.value)}}},animations:{enabled:i,trackBy:Ha.nonUpdatingNode.trackBy,compensateForLayoutChanges:Ha.lines.compensateForLayoutChanges}}})(e,{trendLineModel:n,layoutService:t,dockService:r,animationsEnabled:o}),a=(({majorScale:e,minorScale:t,tooltipOverlay:n="trend-lines-tooltip-overlay"},{layoutService:r,dockService:o})=>{const i=Aq(r),a="horizontal"===o.meta.major.orientation,s={scale:e,fn:i},l={scale:t,ref:"minor"};return{key:n,type:"point",layout:{dock:"center"},data:Dq,settings:{x:a?s:l,y:a?l:s,opacity:0,size:1,sizeLimits:{maxPx:8,minPx:8}}}})(e,{layoutService:t,dockService:r});return[i,a]};function Pq(e,t){const{getLabel:n,getType:r,getLineDash:o,getStroke:i}=t.query;return({node:t,resources:a})=>{const s={type:"icon",style:{stroke:i(t.data.layer.value),"min-width":"16px","vertical-align":"middle","stroke-dasharray":o(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)}]}}}function Iq(e,{h:t,style:n}){return e.map((e=>{const r={style:{direction:"string"==typeof e.content?$e.detectTextDirection(e.content):void 0,...n.cell||{},...e.style||{}},class:e.class};e.colspan&&(r.colspan=e.colspan);const o=function(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:$e.detectTextDirection(t.content)},t.content)))):"icon"===t.type?function(e){const t=e("line",{x1:"0px",y1:"16px",x2:"16px",y2:"0px","stroke-width":"3px"});return e("svg",{xlms:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16"},t)}(e):t.content}(t,e);return t("td",r,o)}))}function zq(e,t){return({h:n,data:r,style:o})=>{const i=r[0].title,a=r.filter((e=>e.title===i)),s=function(e,t){const n=e("td",{colspan:3,style:{"font-weight":"bold"},direction:$e.detectTextDirection(t)},t);return e("tr",{},n)}(n,i),l=[s];if(a.slice(0,2).forEach((e=>{l.push(n("tr",{},Iq(e.row,{h:n,style:o})))})),r.length>2){const o=r.length-2;l.push(...function(e,t,n,r){const o=t?t.get("Object.ChartTooltip.NMore",r):`+${r} more`,i=$e.detectTextDirection(o);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:i},colspan:3},o))]}(n,e,t,o))}return l}}function jq(e,{trendLineModel:t,translator:n},r={}){if(!t.query.hasTrendLines())return!1;const{rtl:o}=r,i=Fe({key:e.tooltip,rtl:o});return he(!0,i,{settings:{extract:Pq(e,t),content:zq(n,o),placement:"pointer",direction:r.rtl?"rtl":"ltr"}})}function Fq(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 Bq(e,{chart:t,viewState:n,trendLineModel:r,layoutService:o,rtl:i}){const{isContinuous:a}=o.meta;let s={components:[{key:e.tooltipOverlay}],propagation:"stop"},l=e=>{const n=Fq(e,t);return t.shapesAt(n,s)};if(a){const{getCalculatedValue:o}=r.query;s={components:[{key:"trend-lines"}],propagation:"stop"},l=(r,a)=>{const l=Fq(r,t),c=t.shapesAt(function(e){return{cx:e.x,cy:e.y,r:3}}(l),s);if(c.length){const r=function(e,t,n,r){let o=(e.x-t.rect.computed.x)/t.rect.computed.width;o=r?1-o:o;const{min:i,max:a}=n.get("zoom");return i+(a-i)*o}(l,a,n,i),s=t.scale(e.majorInnerScale),u=(null!=s&&s.formatter?s.formatter():t.formatter({data:{fields:["qDimensionInfo/0"]}}))(r);c.forEach((e=>{e.data.dimValue.value=r,e.data.dimValue.label=u,e.data.minor.value=o(e.data.layer.value,r).y}))}return c}}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 _q=e=>{e.style.dashed?e.style.lineDash="8, 4":e.style.lineDash=""},Hq=e=>{_q(e),e.qMultiDimMode="Sum",e.qXColIx=0};function $q(e={}){const{translator:t,events:n={onGlobalChange:()=>{}},allowStackedByDimension:r=!1}=e;return{show:(e,t,{layout:n})=>!Le.dimensionless(n)&&!Le.groupedByDimension(n)&&(r||!Le.stackedByDimension(n)),type:"array",ref:"qTrendLines",titleTranslation:Tq.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(Tq.TYPES[e.qType])},max:8,allowAdd:!0,allowRemove:!0,allowMove:!1,addTranslation:Tq.ADD_BUTTON,add:Hq,globalChange:e=>{const t=o(e,"qHyperCubeDef.qMeasures",[]).reduce(((e,t)=>(Array.isArray(t.qTrendLines)&&e.push(...t.qTrendLines),e)),[]),r=(e=>!o(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:Tq.TYPE,options:[{value:mq,translation:Tq.TYPES.AVERAGE},{value:hq,translation:Tq.TYPES.LINEAR},{value:gq,translation:Tq.TYPES.POLYNOMIAL2},{value:yq,translation:Tq.TYPES.POLYNOMIAL3},{value:vq,translation:Tq.TYPES.POLYNOMIAL4},{value:bq,translation:Tq.TYPES.EXPONENTIAL},{value:xq,translation:Tq.TYPES.LOG},{value:Sq,translation:Tq.TYPES.POWER}],defaultValue:mq},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:qq,show:e=>!e.style.autoColor},dashed:{ref:"style.dashed",translation:Tq.STYLE.DASHED,type:"boolean",defaultValue:!0,change:_q}}}}var Vq={};function Wq(){Wq.init.call(this)}Vq.isObject=function(e){return"object"==typeof e&&null!==e},Vq.isNumber=function(e){return"number"==typeof e},Vq.isUndefined=function(e){return void 0===e},Vq.isFunction=function(e){return"function"==typeof e};var Uq=Wq;Wq.EventEmitter=Wq,Wq.prototype._events=void 0,Wq.prototype._maxListeners=void 0,Wq.defaultMaxListeners=10,Wq.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},Wq.prototype.setMaxListeners=function(e){if(!Vq.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},Wq.prototype.emit=function(e){var t,n,r,o,i,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],Vq.isUndefined(n))return!1;if(Vq.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,o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];n.apply(this,o)}else if(Vq.isObject(n)){for(r=arguments.length,o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];for(r=(a=n.slice()).length,i=0;i<r;i++)a[i].apply(this,o)}return!0},Wq.prototype.addListener=function(e,t){var n;if(!Vq.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,Vq.isFunction(t.listener)?t.listener:t),this._events[e]?Vq.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,Vq.isObject(this._events[e])&&!this._events[e].warned)&&((n=Vq.isUndefined(this._maxListeners)?Wq.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,Vq.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),Vq.isFunction(console.trace)&&console.trace()));return this},Wq.prototype.on=Wq.prototype.addListener,Wq.prototype.once=function(e,t){if(!Vq.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},Wq.prototype.removeListener=function(e,t){var n,r,o,i;if(!Vq.isFunction(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(o=(n=this._events[e]).length,r=-1,n===t||Vq.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(Vq.isObject(n)){for(i=o;i-- >0;)if(n[i]===t||n[i].listener&&n[i].listener===t){r=i;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},Wq.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],Vq.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},Wq.prototype.listeners=function(e){return this._events&&this._events[e]?Vq.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},Wq.listenerCount=function(e,t){return e._events&&e._events[t]?Vq.isFunction(e._events[t])?1:e._events[t].length:0};var Kq=oe(Uq);const Gq={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 Yq=e=>(Object.keys(Kq.prototype).forEach((t=>{e[t]=Kq.prototype[t]})),Kq.init(e),e);var Xq={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}},Jq={SCALE:{MAIN:{MINOR:"minor",MAJOR:"major",MAJOR_INNER:"majorInner",COLOR:"fill"},REDUCED:{MINOR:"miniMinor",MAJOR:"miniMajor",COLOR:"reducedFill"}},COMPONENT:{BAR:"bar",GHOST_BAR_OOB:"ghost-bar",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",SPACE:"space",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"}};const Zq=({layout:e,flags:t})=>{var n,r,o,i;if(null==t||!t.isEnabled("TLV_800_BUTTERFLY_CHART"))return!1;const a=null==e||null===(n=e.qHyperCube)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==qT})),s=null==e||null===(r=e.qHyperCube)||void 0===r||null===(r=r.qMeasureInfo)||void 0===r?void 0:r.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==qT})),l=null!==(o=null==a?void 0:a.length)&&void 0!==o?o:0,c=null!==(i=null==s?void 0:s.length)&&void 0!==i?i:0;return 1===l&&2===c},Qq=e=>({layout:t})=>{var n;const r=Me.canBeContinuous(t),o=Le.continuous(t),i=Le.dimensionless(t),a=Zq({layout:t,flags:e})&&"butterfly"===(null==t||null===(n=t.barGrouping)||void 0===n?void 0:n.grouping);return{canBeContinuous:r,isDiscrete:!o,isContinuous:o,isTime:Me.isTime(o,t),isDimensionless:i,isSimple:Le.simple(t),isGrouped:!a&&Le.grouped(t),isGroupedByMeasure:!a&&Le.groupedByMeasure(t),isGroupedByDimension:!a&&Le.groupedByDimension(t),isStacked:!a&&Le.stacked(t),isStackedByDimension:!a&&Le.stackedByDimension(t),isStackedByMeasure:!a&&Le.stackedByMeasure(t),isSnapshot:Le.snapshot(t),isButterfly:a}};function eL({clearMinor:e,clearLegend:t,clearDiscrete:n,clearContinuous:r,selectionInfo:o}){t({componentName:"legendRangeBrush"}),e({eventName:"measureRange",componentName:"measureRangeBrush"}),n({eventName:"discreteRange",componentName:"discreteRangeBrush",brushName:!1}),"tap"!==o.event&&r({componentName:"continuousRangeBrush",brushName:!1})}function tL({chart:e,actions:t,selections:n}){const r=e.scale(Jq.SCALE.MAIN.MAJOR);return d({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:eL},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")}}})}const nL=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 rL({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)}function oL({app:e,model:t,translator:n,picasso:r,localeInfo:o,theme:i,continuousDataModel:a,layoutService:s,legendLayoutService:l,reducedDataModel:c}){const{isContinuous:u,isStacked:d}=s.meta,f={main:void 0,mini:{getScales:()=>({}),getColor:()=>e=>e,getDatumProps:()=>({}),getAuxiliarySettings:()=>{}}};return{initialize:()=>{const m=[],{isReduced:h}=c.model().mode,g=u||h||d,y=!u&&(h||d)&&l?l.getHyperCube():void 0,v=y?"legendCube":void 0;return f.main=p({app:e,model:t,translator:n,picasso:r,layoutService:s,config:{localeInfo:o,auto:rL,key:Jq.SCALE.MAIN.COLOR},createConfig:()=>({hc:g?y||s.getHyperCube():c.model().cube,source:g?v:"miniCube",theme:i})}),m.push(f.main.initialize()),u&&(f.mini=p({app:e,model:t,translator:n,picasso:r,layoutService:s,config:{localeInfo:o,auto:rL,key:Jq.SCALE.REDUCED.COLOR},createConfig:()=>({layout:a.getInitialLayout(),hc:a.getInitialCube(),source:"miniCube",theme:i})}),m.push(f.mini.initialize())),Promise.all(m)},getMain:()=>f.main,getMini:()=>f.mini}}const iL={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:o=0,qSelected:i=0}=(null==e?void 0:e.qStateCounts)||{};return[void 0,0].includes(n)?r+o+i:n}};function aL({layoutService:e}){return f({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 iL.getDimensionSize(r)>Me.maxNumberOfLines}},OnlyNegativeValues:{condition:()=>{if(e.meta.isButterfly){const{qMeasureInfo:t}=e.getHyperCube();return t.every((e=>{const{qMin:t,qMax:n}=e;return t<0&&n<0}))}return!1},alignment:"center"},NegativeValues:{condition:()=>{if(e.meta.isButterfly){const{qMeasureInfo:t}=e.getHyperCube();return t.some((e=>{const{qMin:t}=e;return t<0}))}return!1}}}}})}function sL(e){return e.qIsOtherCell||-3===e.qElemNumber||-3===e.qElemNo}function lL(e){return e.some(sL)}function cL(e,t){let n=NaN,r=NaN;return e.forEach((e=>{lL(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 uL(e){let t=NaN,n=NaN;if(!e.getLayoutValue("measureAxis.autoMinMax",!1)){const r=e.getLayoutValue("measureAxis.minMax");e.meta.isButterfly||"min"!==r&&"minMax"!==r||(t=+e.getLayoutValue("measureAxis.min")),"max"!==r&&"minMax"!==r||(n=+e.getLayoutValue("measureAxis.max"),e.meta.isButterfly&&(t=-n))}return{min:t,max:n,isExplicitMin:!Number.isNaN(t),isExplicitMax:!Number.isNaN(n)}}function dL(e,t){let n=NaN,r=NaN;return e.forEach((e=>{if(!lL(e)){let o=0,i=0;e.slice(-t).forEach((e=>{"NaN"!==e.qNum&&(e.qNum>=0?i+=e.qNum:o+=e.qNum)})),n=Number.isNaN(n)?o:Math.min(o,n),r=Number.isNaN(r)?i:Math.max(i,r)}})),{min:n,max:r}}function pL(e,t){const n={};e.forEach((e=>{if(!lL(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,o=NaN;return Object.keys(n).forEach((e=>{r=Number.isNaN(r)?n[e].min:Math.min(n[e].min,r),o=Number.isNaN(o)?n[e].max:Math.max(n[e].max,o)})),{min:r,max:o}}function fL(e){return"number"==typeof e&&!Number.isNaN(e)}function mL(e){const{meta:t}=e,n=e.getHyperCubeValue("qMeasureInfo");return t.isButterfly?{min:Math.min(0,fL(n[1].qMax)?-n[1].qMax:0),max:Math.max(0,fL(n[0].qMax)?n[0].qMax:0)}:{min:Math.min(...n.filter((e=>fL(e.qMin))).map((e=>e.qMin))),max:Math.max(...n.filter((e=>fL(e.qMax))).map((e=>e.qMax)))}}const{isNumber:hL}=Qi;function gL(e,t,n){for(let n=e.length-1;n>-1;n--)if(t(e[n]))return e[n];return n}function yL(e){return!Number.isNaN(+e.qNum)}function vL(e){return e.qNum}function bL(e){return!Number.isNaN(+e.qNum)}function xL(e){return e.qNum}function SL(e,t){return e.push(...t),e}const{getValueWithOffset:ML,isNumber:CL}=Qi,wL=5,kL=.2;function EL(e,t){return Math.abs(e/t)<wL||0===t}function TL({layoutService:e,trendLineModel:t},n={}){const{stackedByMeasureExtractor:r=dL,stackedByDimensionExtractor:i=pL,straightExtractor:a=cL,measureInfoExtractor:s=mL,explicitExtractor:l=uL}=n,{meta:c}=e;return{extract({qDataPages:e,qStackedDataPages:n,others:r,count:o}){let i,a;if(Array.isArray(n)?({min:i,max:a}=this.extractFromStacked(n)):({min:i,max:a}=this.extractFromStraight(e,o)),t.query.hasTrendLines()){const{min:e,max:n}=t.query.getMinMax();i=Number.isFinite(e)?Math.min(i,e):i,a=Number.isFinite(n)?Math.max(a,n):a}const{min:s,max:l}=this.extractOthers(r),c=this.extractExplicit(),u=[0,i,a].filter((e=>CL(e)));let d=Math.min(...u),p=Math.max(...u);d=EL(s,d)?Math.min(d,s):d,p=EL(l,p)?Math.max(p,l):p;const f=[c.explicitMin,c.explicitMax,d,p].filter((e=>CL(e)));return i=Number.isNaN(c.explicitMin)?Math.min(...f):c.explicitMin,a=Number.isNaN(c.explicitMax)?Math.max(...f):c.explicitMax,i===a&&(Number.isNaN(c.explicitMin)?i=ML(i,-.2):Number.isNaN(c.explicitMax)&&(a=ML(a,kL))),{min:i,max:a,implicitMin:d,implicitMax:p,otherMin:s,otherMax:l,hasOtherMin:s<i,hasOtherMax:l>a,...c}},extractExplicit(){const{min:t,max:n,isExplicitMin:r,isExplicitMax:o}=l(e);return{hasExplicitMinMax:r||o,hasExplicitMin:r,hasExplicitMax:o,explicitMin:t,explicitMax:n}},extractFromStacked(e){const t=e.length?e[0].qData:[];return(n=t).length?{min:Math.min(...n[0].qSubNodes.filter((e=>hL(e.qMinNeg))).map((e=>e.qMinNeg))),max:Math.max(...n[0].qSubNodes.filter((e=>hL(e.qMaxPos))).map((e=>e.qMaxPos)))}:{min:0,max:0};var n},extractFromStraight(t,n){const o=t.length?t[0].qMatrix:[];return c.isStackedByMeasure?r(o,n):c.isStackedByDimension?i(o,n):e.getHyperCubeValue("qHasOtherValues")?a(o,n):s(e)},extractOthers:e=>c.isStackedByDimension?function(e){const t=gL(o(e,"0.qData.0.qSubNodes",[]),sL,{qMaxPos:0,qMinNeg:0});return{min:t.qMinNeg,max:t.qMaxPos}}(e):c.isGroupedByDimension?function(e){const t=o(e,"0.qMatrix",[]).filter(lL).reduce(SL,[]).filter(bL).map(xL);return{min:Math.min(0,...t),max:Math.max(0,...t)}}(e):function(e){const t=gL(o(e,"0.qMatrix",[]),lL,[]).filter(yL).map(vL);return{min:Math.min(0,...t),max:Math.max(0,...t)}}(e)}}function qL(e){const t=function({reducedDataModel:e,layoutService:t,continuousDataModel:n}){const{meta:r,getHyperCubeValue:o}=t,i=e=>!e.length&&r.mode.K,a=e=>{const t=o("qStackedDataPages",[]);return{qStackedDataPages:t,others:e?t:[]}};return{resolve(){const t=o("qMeasureInfo").length,s=o("qDimensionInfo").length,l=o("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 c=r.isStackedByDimension?1:t;return e.fetchMinMaxData().then((e=>{if(i(e))return a(l);let t=[];return l&&(t=r.mode.K?o("qStackedDataPages",[]):o("qDataPages",[])),{qDataPages:e,count:c,others:t}}))}}}(e),n=TL(e);return t.resolve().then((e=>n.extract(e)))}const LL="lasso",NL=({key:e,componentTargetKey:t,requireFailure:n,recognizeWith:r},o)=>({key:`event:${e}`,type:"Pan",requireFailure:n,recognizeWith:r,options:{event:LL,enable(e,n){if(this.started===LL||!n)return!0;if(!o.actions.select.enabled()||!o.actions.lasso.enabled()||!o.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!==LL&&(o.actions.select.emit("start",LL),this.chart.component(e).emit("lassoStart",t),this.started=LL)},lassomove(t){t.preventDefault(),this.chart.component(e).emit("lassoMove",t),"function"==typeof o.updateOnMove&&o.updateOnMove(this.chart)},lassoend(t){t.preventDefault(),this.started=!1,this.chart.component(e).emit("lassoEnd",t),o.actions.select.emit("end",LL),"function"==typeof o.updateOnEnd&&o.updateOnEnd()}}});const OL=({targets:e,requireFailure:t,recognizeWith:n,components:r,eventName:o="tap"},i)=>{let a;const s=i.customTooltipModel?i.customTooltipModel.utils:void 0,l=s?i.debouncer(s.displayTooltip,s.DEBOUNCE_THRESHOLD):void 0;return{key:"event:tap",type:"Tap",requireFailure:t,recognizeWith:n,options:{event:o,interval:10,pointers:1,enable(t,n){return!n||!(!i.actions.select.enabled()&&!i.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:{[o](t){t.preventDefault();const n=function(e,t){const n=t.element.getBoundingClientRect();let r,o;return e.center?(({x:r}=e.center),({y:o}=e.center)):(r=e.clientX,o=e.clientY),{x:r-n.left,y:o-n.top}}(t,this.chart),c=i.hitRadius?i.hitRadius(a):0,u=c>0?{cx:n.x,cy:n.y,r:c}:n,d=i.shapesAt?i.shapesAt(u):this.chart.shapesAt(u,{components:e.map((e=>({key:e,propagation:"stop"}))),propagation:"stop"}),p=this.chart.component("tooltip"),f="mouse"!==t.pointerType&&p&&p.show;if(!i.isLocked(a)&&!i.tooltipOnly&&i.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,i.actions.select.brushSelectionIncludeMax=!1,i.actions.select.emit("start",o,e)),d.length&&r){this.chart.brushSelectionIncludeMax=!1,i.actions.select.brushSelectionIncludeMax=!1;const e="function"==typeof r?r(t,d):r;this.chart.brushFromShapes(d,{components:e}),i.actions.select.emit("end",o),(({largeDataService:e,chart:t})=>{((null==e?void 0:e.meta)||{}).isLargeNumPoints&&t.brush("lazySelection")._state(t.brush("selection")._state())})({largeDataService:i.largeDataService,chart:this.chart})}}if(p&&i.actions.tooltip.enabled())if(d.length){const{customTooltipModel:e}=i;if(null!=e&&e.useCustomTooltip&&s.checkIfPromisesExist({customTooltipModel:e})){const n=s.getNodes(t,this.chart);l(t,p,{nodes:n,opts:i,customTooltipModel:e})}else p.emit("show",t,{nodes:d})}else f&&p.emit("hide")}}}};const DL=({key:e,requireFailure:t,recognizeWith:n,eventName:r="tap"},o)=>({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&&(!!o.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 AL=({eventName:e,key:t,fillTargets:n=[],requireFailure:r,recognizeWith:o},i,a)=>({key:`event:${t}`,type:"Pan",requireFailure:r,recognizeWith:o,options:{event:e,enable(r,o){if(this.started===e||!o)return!0;if(!i.actions.select.enabled())return!1;const a=this.chart.componentsFromPoint({x:o.center.x,y:o.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}-`))}(o,t);return s?(this.started=e,!0):a.length>0}},events:{[`${e}start`](n){void 0===this.chart.brushSelectionIncludeMax&&(this.chart.brushSelectionIncludeMax=!0,i.actions.select.brushSelectionIncludeMax=!0),n.preventDefault(),i.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 i.updateOnMove&&i.updateOnMove(this.chart)},[`${e}end`](n){void 0===this.chart.brushSelectionIncludeMax&&(this.chart.brushSelectionIncludeMax=!0,i.actions.select.brushSelectionIncludeMax=!0),n.preventDefault(),this.chart.component(t).emit(`${a}End`,n),i.actions.select.emit("end",e),this.started=!1,"function"==typeof i.updateOnEnd&&i.updateOnEnd()}}});function RL(e,t){const n=function(e){const{key:t,targets:n,fillTargets:r,targetSelector:o,targetFillSelector:i,dock:a,scale:s,bubblesPlacement:l="inside",observeBrush:c=!1,multiple:u=!1,toLabel:d,onEdited:p}=e;return{key:t,type:"brush-range",layout:{dock:n.map((e=>`@${e}`)).join(",")},on:p?{bubbleEnd(){p()}}:{},settings:{brush:c?{context:"selection",observe:!0}:"selection",scale:s,multiple:u,direction:"left"===a||"right"===a?"vertical":"horizontal",bubbles:{align:"left"===a||"top"===a?"end":"start",placement:l,label:d},target:{components:r,selector:o,fillSelector:i,fill:"rgba(82,204,82,0.2)"}}}}(e),r=AL(e,t,"range");return{interactions:[e.onEdited?DL(e,t):null,r].filter(Boolean),components:[n]}}const PL={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"}}},IL="inner-time-axis",zL="outer-time-axis";const jL={getMajorAxisMaxGlyphCount(e,t){let n=0;if(e.qDimensionInfo.length){const r=t?0:e.qDimensionInfo.length-1;n=iL.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?o(e,t?"qStackedDataPages.0.qData.0.qSubNodes":"qDataPages.0.qMatrix"):e.qMeasureInfo,n},getBarAxisMaxGlyphCount(e,t){if(!e)return;const n=jL.getAxisData(e,t),r=!e.qDimensionInfo.length,o=r||t?void 0:e.qDimensionInfo.length-1,i=jL.getMajorAxisMaxGlyphCount(e,t),a=r?"qFallbackTitle":"qText";return Ie.getAdjustedMaxGlyphCount(i,n,o,a)},getGroupAxisMaxGlyphCount(e){if(!e)return;const t=jL.getAxisData(e),n=iL.getMaxGlyphCount(e,0);return Ie.getAdjustedMaxGlyphCount(n,t,0)}};var FL=3,BL=13;function _L(e,t,n,r){const{meta:o}=t.layoutService,i=[],a=!("none"===e.measureAxis.show),s=!("title"===e.measureAxis.show);o.isContinuous?i.push(...function(e,t,n,r){const{meta:o}=t.layoutService,{axis:i,grid:a}=t.themeService.getStyles(),s=t.styleService.axis.label.getStyle(),{auto:l,spacing:c}=t.layoutService.getLayoutValue("gridLine",{}),u=[],d="none"!==e.dimensionAxis.show&&"title"!==e.dimensionAxis.show,p=PL[`${t.dockService.meta.major.orientation}DimensionAxis`].minimumLayoutMode,f={type:"grid-line",x:{},layout:{minimumLayoutMode:PL.gridLines.minimumLayoutMode},ticks:{stroke:a.line.major.color},minorTicks:{show:!1,stroke:a.line.minor.color},animations:{enabled:t.viewModel.animations.enabled,trackBy:Ha.lines.trackBy,compensateForLayoutChanges:Ha.lines.compensateForLayoutChanges}},m=!!e.showMiniChartForContinuousAxis&&{type:"range",key:"range-brush-highlighter",layout:{dock:"@scrollbar"},settings:{scale:t.reducedDataModel.scales.major,brush:"selection",fill:"#6CB33F",opacity:.2}};if(o.isTime){if(d){const e=n?"end":"start",r=n?1:0,o="bottom"===t.dockService.meta.major.dock?0:1,a={label:{fill:s.fill,fontSize:s.fontSize,fontFamily:s.fontFamily},majorGuideLine:{stroke:i.line.major.color},minorGuideLine:{stroke:i.line.minor.color}},d={type:"time-axis",renderer:"svg",layout:{dock:t.dockService.meta.major.dock,minimumLayoutMode:p},preferredSize:()=>({size:2*parseFloat(s.fontSize),edgeBleed:{left:1,right:1}}),settings:{anchor:e,label:{align:o,justify:r},guideLine:{major:{justify:r},minor:{align:o}}},style:a,animations:{enabled:t.viewModel.animations.enabled,trackBy:Ha.axes.trackBy({isTime:!0}),compensateForLayoutChanges:Ha.axes.compensateForLayoutChanges({isTime:!0})}};u.push(he(!0,{},d,{key:IL,scale:Jq.SCALE.MAIN.MAJOR_INNER,settings:{guideLine:{minor:{show:!0}},line:{show:!l&&0===c}},style:he(!0,{},a,{line:{stroke:i.line.major.color},majorGuideLine:{stroke:i.line.minor.color},minorGuideLine:{stroke:i.line.major.color}})})),u.push(he(!0,{},d,{key:zL,scale:Jq.SCALE.MAIN.MAJOR,settings:{guideLine:{minor:{show:!1}},line:{show:!1}}})),u.push({type:"axis-overlay",key:"outer-axis-overlay",scale:Jq.SCALE.MAIN.MAJOR,layout:{dock:`@${zL}`,minimumLayoutMode:p}}),u.push({type:"axis-overlay",key:"inner-axis-overlay",scale:Jq.SCALE.MAIN.MAJOR_INNER,layout:{dock:`@${IL}`,minimumLayoutMode:p}}),u.push(m)}return u.push(he(!0,{},f,{key:"inner-time-grid",x:{scale:Jq.SCALE.MAIN.MAJOR_INNER},ticks:{stroke:a.line.minor.color}})),u.push(he(!0,{},f,{key:"outer-time-grid",x:{scale:Jq.SCALE.MAIN.MAJOR}})),u}if(o.isContinuous){const e="continuous-axis";d&&(u.push({type:"axis",key:e,renderer:Za(t.flags),scale:Jq.SCALE.MAIN.MAJOR,layout:{dock:t.dockService.meta.major.dock,minimumLayoutMode:p},settings:{labels:{align:0,offset:4,fill:s.fill,fontSize:s.fontSize,fontFamily:s.fontFamily},ticks:{show:!0,stroke:i.line.major.color},line:{show:!r},minorTicks:{show:!1}},animations:{enabled:t.viewModel.animations.enabled,trackBy:Ha.axes.trackBy({isContinuous:!0}),compensateForLayoutChanges:Ha.axes.compensateForLayoutChanges({isContinuous:!0})}}),u.push({type:"axis-overlay",key:"inner-axis-overlay",scale:Jq.SCALE.MAIN.MAJOR,layout:{dock:`@${e}`,minimumLayoutMode:p}}),u.push(m)),u.push(he(!0,{},f,{key:"continuous-grid",x:{scale:Jq.SCALE.MAIN.MAJOR},minorTicks:{show:!0}}))}return u}(e,t,n,r)):i.push(...function(e,t,n,r){if("none"===e.dimensionAxis.show)return[];const{meta:o}=t.layoutService,i=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),c="horizontal"===t.dockService.meta.major.orientation,u=c?e.dimensionAxis.label:"auto",d="horizontal"===u?void 0:t.dockService.meta.minor.size/4,p=t.styleService.axis.label.getStyle(),f={type:"axis",renderer:Za(t.flags),layout:{dock:t.dockService.meta.major.dock,minimumLayoutMode:PL[`${t.dockService.meta.major.orientation}DimensionAxis`].minimumLayoutMode},settings:{labels:{show:!("title"===e.dimensionAxis.show),mode:u,tiltAngle:n?-40:40,maxEdgeBleed:50,maxLengthPx:d,...p},line:{show:!r,stroke:i.axis.line.major.color}},brush:{consume:[{context:"selection",data:["selectionDimension","axisSelectionDimension"],style:{inactive:{opacity:.3}}}]},animations:{enabled:t.viewModel.animations.enabled,trackBy:Ha.axes.trackBy({isMajor:!0}),compensateForLayoutChanges:Ha.axes.compensateForLayoutChanges({isHorizontal:c})}};l&&a.push(he(!0,{},f,{key:"group-axis",scale:Jq.SCALE.MAIN.MAJOR_INNER,settings:{paddingEnd:s?10:4,labels:{mode:s?"horizontal":f.settings.labels.mode,maxGlyphCount:jL.getGroupAxisMaxGlyphCount(e.qHyperCube),maxLengthPx:d},line:{show:(c||!s)&&f.settings.line.show}}}));const m=jL.getBarAxisMaxGlyphCount(e.qHyperCube,o.isStackedByDimension);return s&&a.push(he(!0,{},f,{key:Jq.COMPONENT.BAR_AXIS,scale:Jq.SCALE.MAIN.MAJOR,settings:{paddingEnd:4,labels:{maxGlyphCount:m,maxLengthPx:d,tiltThreshold:m>FL&&m<BL?1:void 0},line:{show:!(c&&l)&&f.settings.line.show}}})),c||2!==a.length?a:[a[1],a[0]]}(e,t,n,r));const l=t.themeService.getStyles(),c=t.styleService.axis.label.getStyle();return a&&i.push({type:"axis",key:"y-axis",renderer:Za(t.flags),formatter:Jq.FORMATTER.MINOR,layout:{dock:t.dockService.meta.minor.dock,minimumLayoutMode:PL.measureAxis.minimumLayoutMode},scale:Jq.SCALE.MAIN.MINOR,settings:{labels:{show:s,...c},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:Ha.axes.trackBy({isMeasure:!0}),compensateForLayoutChanges:Ha.axes.compensateForLayoutChanges({isMeasure:!0,dock:t.dockService.meta.minor.dock})}}),i}var HL={BAR:{STROKE:{COLOR:"#205891",WIDTH:{NONE:0,SMALL:1,MEDIUM:2,LARGE:4}}}};function $L({layoutService:e,discrete:t}){var n;const{isContinuous:r,isGrouped:o}=e.meta;if(r)return 1;const i=(e.getLayoutValue("components",[])||[]).filter((e=>"bar"===e.key))[0];if(null!=i&&null!==(n=i.style)&&void 0!==n&&n.width){const{style:e}=i;return e.strokeWidth&&"none"!==e.strokeWidth?function(){const n=HL.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?.9:.7}const VL={FULL:16,MEDIUM:14,SMALL:12,XSMALL:8,SPARK:4};function WL(e,t,n={}){return({data:r})=>{const o=e.chart.component(t).rect;if(!r.items.length||!o)return 2;const{min:i,max:a}=e.viewState.get("zoom");if(n[[i,a]])return n[[i,a]];const s=VL[ve.getLayoutMode(o.width,Number.MAX_VALUE)];n={};const l=Math.abs(a-i),c=Math.abs(e.viewCache.get("continuousMax")-e.viewCache.get("continuousMin"));if(0===c)return s;const u=function(e,t,n){return e*(1-n)+t*n}(2,s,1-Math.min(l/c/.2,1));return n[[i,a]]=Math.max(2,Math.min(s,u)),n[[i,a]]}}function UL(e,t){const{hasExplicitMax:n,explicitMax:r}=t;return!!n&&e>r&&r<=0}function KL(e,t){const{hasExplicitMin:n,explicitMin:r}=t;return!!n&&e<r&&r>=0}function GL(e,t){const{hasExplicitMax:n,explicitMax:r}=t;return!!n&&e>r&&r>0}function YL(e,t){const{hasExplicitMin:n,explicitMin:r}=t;return!!n&&e<r&&r<0}const XL="max",JL="min",ZL={min:"Min",max:"Max"};function QL(e,t,n){return void 0===n?UL(e,t)||KL(e,t):n===XL?UL(e,t):KL(e,t)}function eN({minorMinMax:e,type:t}){return!(function({minorMinMax:e,type:t}){return!e[`hasExplicit${ZL[t]}`]}({minorMinMax:e,type:t})||function({minorMinMax:e,type:t}){const n=t===XL?e.implicitMax:e.implicitMin;return!QL(Number(n.toFixed(13)),e,t)}({minorMinMax:e,type:t}))}function tN(e,{barComponent:t,type:n,isStacked:r}){const{viewCache:o,dockService:i,themeService:a}=e,s=o.get("minorMinMax");if(!s.hasExplicitMinMax)return!1;const l=n===XL?s.implicitMax:s.implicitMin;if(!QL(Number(l.toFixed(13)),s,n))return!1;const{orientation:c}=t.settings,u=n===XL?i.meta.minor.end:i.meta.minor.start;let d="end";r&&(d=n===XL?"sumOfPositives":"sumOfNegatives");const p=a.getStyles();return{type:"box-out-of-bounds",key:`bar-oob-${n}`,layout:{dock:u},data:t.data,brush:t.brush,settings:{orientation:c,major:t.settings.major,minor:t.settings.minor,dockValue:De.getDockValue(u),oob:he({},t.settings.box,{fill:p.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)&&QL(e.datum[d].value,s,n))}})},animations:{enabled:e.viewModel.animations.enabled,compensateForLayoutChanges:Ha.barOobs.compensateForLayoutChanges}}}function nN(e){return Math.min(Math.max(0,e),1)}const rN=(e,{chart:t,type:n,componentKey:r,collectionKey:o})=>{const{layoutService:i,dockService:a,viewCache:s}=e,{isStacked:l}=i.meta,c=s.get("minorMinMax"),{meta:u}=e.layoutService;if(!eN({minorMinMax:c,type:n}))return!1;let d;u.isGroupedByDimension?d=({scale:e,datum:t})=>e([t.group.value,t.value])+e.bandwidth([t.group.value,t.value])/2:u.isGroupedByMeasure&&(d=({scale:e,datum:t})=>e([t.value,t.measureIndex.value])+e.bandwidth()/2);const p={type:"box",key:`${Jq.COMPONENT.GHOST_BAR_OOB}-${n}`,data:{collection:o},settings:{orientation:a.meta.minor.orientation,major:{scale:Jq.SCALE.MAIN.MAJOR,fn:d},minor:{scale:Jq.SCALE.MAIN.MINOR,start(e){var n;return nN(t.scale(Jq.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(Jq.SCALE.MAIN.MINOR);let o="end";l&&(o="max"===n?"sumOfPositives":"sumOfNegatives");const i=e.datum[o]?e.datum[o].value:r[n]();return nN(r(i))}},box:{width:$L({layoutService:e.layoutService,discrete:e.discrete}),minWidthPx:2,fill:"none",stroke:"transparent",show:e=>{const r=t.scale(Jq.SCALE.MAIN.MINOR);let o="end";l&&(o="max"===n?"sumOfPositives":"sumOfNegatives");const i=e.datum[o]?e.datum[o].value:r.max();return"max"===n?i>r.max():i<r.min()}},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}}};return p};function oN(e,t){const{style:n,styleService:r,dockService:o}=t,i=r.label.getStyle(),a=i.useContrastColor&&!e.onBackground?function(e){return function(t){return Ht.isDark(t.node.attrs.fill)?e.lightColor:e.darkColor}}(n):i.fill,s="horizontal"===o.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 iN(e){return{placements:e.simplifiedPlacements.map((t=>oN(t,e))),label:e.label}}function aN(e,t){if(t){if(function(e,t){return UL(e,t)}(e,t))return-1;if(function(e,t){return KL(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)}function sN(e,t,n,r){const o=aN(e,r);let i="up";return"vertical"===t&&o<0?i="down":"horizontal"===t&&(i=o>=0&&!n||o<0&&n?"right":"left"),i}function lN(e,t){const{dataPoint:n}=e;if(!n.showLabels)return!1;const{isStacked:r,isContinuous:o}=t.layoutService.meta;return!r||!o&&!!n.showSegmentLabels}function cN(e,t){const{dataPoint:n}=e;if(!n.showLabels)return!1;const{isStacked:r,isContinuous:o}=t.layoutService.meta;return!!r&&(!!o||!1!==n.showTotalLabels)}function uN(e,t,n,r){const o=[];return void 0!==e&&(o[e]={position:"outside",onBackground:!0,justify:0,overflow:r}),void 0!==t&&(o[t]={position:"inside",onBackground:!1,justify:n}),o}function dN({layout:e,component:t,minorScale:n},r,o){if(!lN(e,r))return!1;const{viewModel:i,ds:a,viewCache:s,layoutService:l,dockService:c,themeService:u}=r,{meta:d}=l,p=s.get("minorMinMax"),f=u.getStyles(),m=r.styleService.label.getStyle();let h;!d.isStacked&&(h=d.isStacked?1:0);const g=0===h?1:0,y=d.isStacked?.5:1,v=i.fields.minor[0],b=void 0===v?void 0:a.field(v).formatter();let x,S=-1;x=d.isStacked?d.isStackedByMeasure||!b?function(e){return e.data.segment.label}:function(e){return Math.abs(e.data.segment.value)>S?b(e.data.segment.value):""}:function(e){return e.data.end.label};const M={label:x,simplifiedPlacements:uN(h,g,y,d.isContinuous),style:f.label.value},C=[iN(he(r,M))],w={component:t,selector:"rect",strategy:{type:"bar",settings:{direction:e=>sN(e.data.end.value,c.meta.minor.orientation,o,p),labels:C,fontSize:parseInt(m.fontSize,10),fontFamily:m.fontFamily,linkData:Ha.labels.linkData}}},k=[w],E={key:"bar-labels",type:"labels",renderer:Za(r.flags),layout:{minimumLayoutMode:"XSMALL"},settings:{sources:k},animations:{enabled:r.viewModel.animations.enabled,trackBy:Ha.labels.trackBy,compensateForLayoutChanges:Ha.labels.compensateForLayoutChanges}};return d.isStackedByDimension&&b&&(E.beforeRender=()=>{S=function(e,t,n){const r="vertical"===t.dockService.meta.minor.orientation?"height":"width",o=t.chart.component(e),i=o&&o.rect?o.rect[r]:1,a=n?n.min():0;return 9.999*((n?n.max():0)-a)/i}(t,r,n)}),E}const pN={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,o){if(n.isStacked&&("bar-oob-max"===t.key||"bar-oob-min"===t.key))return!1;const i=t.data,a=n.isStacked?r.viewModel.fields.minor[n.isStackedByDimension?0:i.measureIndex.value]:void 0,s=n.isStacked?{source:{key:i.source.key,field:a},label:!0===(null===(l=i.null)||void 0===l?void 0:l.value)?"":n.isStackedByDimension&&o?o(i.segment.value):i.segment.label}:i.end;var l;return Ve.getMeasure(e,s)},getMeasures(e,t,n,r,o){const i=e.resources.dataset;return t.map((e=>pN.getMeasure(i,e,n,r,o))).filter(Boolean)},getCustomTooltipAttrExps(e,t,n){const r=e.resources.dataset;return CT({nodes:t,layout:n.layoutService.getLayout(),dataset:r})},extractBarTooltipData(e,t,n,r,o){const i={title:pN.getTitle(t,n),color:Ve.getColor(e,t,r),measures:pN.getMeasures(e,t.childrenNodes?t.childrenNodes:[t],n,r,o)};if(pN.useCustomTooltip(r)){var a,s;const n=pN.getCustomTooltipAttrExps(e,t.childrenNodes?t.childrenNodes:[t],r);i.customMeasures=n.customTooltipAttrExpsArr,i.customTitle=n.customTooltipInfoAttrExpsArr.filter((e=>e.id===aT.CUSTOM.TITLE)),i.customDescription=n.customTooltipInfoAttrExpsArr.filter((e=>e.id===aT.CUSTOM.DESCRIPTION));let o=[];(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])&&(o=e.data.customTooltipImages)})),o.length>0&&(i.customImages=o);const d=r.layoutService.getLayout();var l,c,u;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=(c=r.app).isInModalSelection)&&void 0!==l&&l.call(c)){if((null==d||null===(u=d.qHyperCube)||void 0===u||null===(u=u.qDimensionInfo)||void 0===u?void 0:u.length)>0){hT.destroyVisualization({customTooltipModel:r.customTooltipModel});const e=r.customTooltipModel.translator.get("properties.tooltip.notselectedmessage");i.customLimitation=e}}else{const t=hT.createContainer({ctx:e,layout:d});i.customChart=t}}return i},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,o=[e.data.sumOfPositives.value,e.data.sumOfNegatives.value].filter((e=>0!==e)).map((e=>({label:`${pN.getTotalStackTitle(e,t)}`,value:n?n(e):e})));return{title:r,measures:o}},extractTooltipData(e,t){const n=t.chart.formatter(Jq.FORMATTER.MINOR),{meta:r}=t.layoutService,o=e.node.childrenNodes?e.node.childrenNodes:[e.node],i=Math.max(0,o.length-6);o.length=Math.min(o.length,6);const{stackTotalBarNodes:a}=e.node,s=a&&a.length?a.map((e=>pN.extractStackTotalBarTooltipData(e,t.translator,n))):[];return{barTooltipData:o.map((o=>pN.extractBarTooltipData(e,o,r,t,n))),stackTotalBarTooltipData:s,numInvisibleNodesPhase1:i}},extractBarNodeData(e,t,n,r,o,i,a){let s=!o&&Ve.getTitleRow(t,r);const l=Ve.hideColorRow(t,n),c=!i&&!l&&Ve.getColorRow(e,t,r),u=t.measures.map((o=>!a&&Ve.getMeasureRow(o,e,t,r,l&&o.field===n.coloring.field))),d=u.filter((e=>!pN.isSameMeasureAndColorRow(e,c,r)));if(pN.useCustomTooltip(n)){const n=o?[]:t.customMeasures.map((n=>Ve.getMeasureRow(n,e,t,r,!1))),i=!(!t.customTitle[0]||o)&&Ve.getTitleRow(t.customTitle[0],r),a=!(!t.customDescription[0]||o)&&Ve.getDescriptionRow(t.customDescription[0],r);s=!pN.shouldIgnoreTitleRowForCtt(i,a,d,n)&&s;const l=[i,a,s,c,...d,...n];if(t.customChart&&l.push(t.customChart),t.customLimitation&&l.push(bT.getFooterRow(t.customLimitation,r)),t.customImages){const n=t.customImages.map((t=>bT.getImageRow(t,e)));l.push(...n)}return l.filter(Boolean)}return[s,c,...d].filter(Boolean)},extractStackTotalBarNodeData(e,t,n){const r=!!t.measures.length&&Ve.getTitleRow(t,n),o=t.measures.map((r=>Ve.getMeasureRow(r,e,t,n,!1)));return[r,...o].filter(Boolean)},useCustomTooltip:e=>o(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)=>pN.useCustomTooltip(t)&&o(e,"tooltip.hideBasic",0),extractBarsData(e,t,n,r){const{meta:o}=t.layoutService,i=t.layoutService.getLayout(),a=r.length;let s,l,c=[];const u=pN.shouldIgnoreDefaultRows(i,t);for(s=0;s<a;s++){l=r[s];const i=pN.shouldIgnoreTitleRow(o,s),d=u||pN.shouldIgnoreColorRow(o,s),p=u||pN.shouldIgnoreMeasureRow(d,l,t);if(c=c.concat(pN.extractBarNodeData(e,l,t,n,i,d,p)),c.length>=6||l.customImages||l.customChart||l.customLimitation)return{barsData:c,numInvisibleNodesPhase2:a-(s+1)}}return{barsData:c,numInvisibleNodesPhase2:0}},extractStackTotalBarsData(e,t,n){let r=[];return n.some((e=>e.measures.length))&&n.forEach((n=>{r=r.concat(pN.extractStackTotalBarNodeData(e,n,t))})),r},extractData(e,t,n){const{barTooltipData:r,numInvisibleNodesPhase1:o,stackTotalBarTooltipData:i}=pN.extractTooltipData(e,t),a=pN.extractStackTotalBarsData(e,n,i);a.length&&a.push(Ve.getSeparatorRow());const{barsData:s,numInvisibleNodesPhase2:l}=pN.extractBarsData(e,t,n,r),c=a.concat(s),u=o+l;return u&&c.push(Ve.getNMoreRow(u,t.translator,n)),c},calculateBoundsFromBars(e){const t=e.filter((e=>{const t=e.bounds;return t.width>0&&t.height>0})),n=t.length?t:e;return Ya.combineBounds(n.map((e=>e.bounds)))},calculateBoundsFromScale({opts:e,barKey:t,scale:n,majorScale:r,data:o,groupProp:i}){const a=e.chart.component(t).rect,{orientation:s}=e.dockService.meta.major,l="horizontal"===s?"width":"height",c=e.chart.scale(n).pxScale(a[l]);let u,d,p;if(e.layoutService.meta.isGroupedByMeasure){const t=e.viewModel.fields.minor.length;u=o.value,d=n===r&&void 0!==u?(c([u,0])+c([u,t-1]))/2:0,p=n===r&&void 0!==u?c.bandwidth([u,0]):0}else{const{value:e}=o;u=o[i]?o[i].value:void 0,d=c(n===r&&void 0!==u?[u,e]:e),p=n===r&&void 0!==u?c.bandwidth([u,e]):c.bandwidth(e)}const f=(d+p/2)*a[l],m={width:0,height:0};return"horizontal"===s?(m.x=f,m.y=a.height):(m.y=f,m.x=0),m},calculateTotalBounds({opts:e,labels:t,bars:n,barKey:r,barAxisKey:o,majorScale:i,majorInnerScale:a,groupProp:s}){const l=n.filter((e=>e.children&&e.children.length));let c;return c=l.length?pN.calculateBoundsFromBars(l):pN.calculateBoundsFromScale({opts:e,barKey:r,scale:t[0].key===o?i:a,majorScale:i,data:t[0].data,groupProp:s}),c},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 o=e.filter((e=>t.some((t=>n(e,t,r)))));return o},findBarsFromGroupLabelsInGroupedByDim(e,t,n){const r=pN.isBarMatchingLabelOnProp;return pN.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=pN.isBarMatchingLabel;return pN.findBarsMatchingLabels(e,t,n)},findBarsFromLabelsInGroupedByDim(e,t,n,r){const o=t.filter((e=>e.key===n)),i=t.filter((e=>e.key!==n)),a=pN.findBarsFromBarLabelsInGroupedByDim(e,o,r),s=pN.findBarsFromGroupLabelsInGroupedByDim(e,i,r);return a.concat(s)},findStackTotalBarsFromLabelsInStackedByDim(e,t){const n=pN.isBarMatchingLabel;return pN.findBarsMatchingLabels(e,t,n)},findStackTotalBarsFromLabelsInStackedByMeasure(e,t){const n=pN.isBarMatchingLabel;return pN.findBarsMatchingLabels(e,t,n)},findBarsFromLabelsInStackedByDim(e,t,n){const r=pN.isBarMatchingLabelOnProp;return pN.findBarsMatchingLabels(e,t,r,n)},findBarsFromLabelsInStackedByMeasure:(e,t)=>pN.findBarsFromLabelsInSingleDim(e,t),findBarsFromLabels({labels:e,opts:t,filterKeys:n,barAxisKey:r,groupProp:o,stackProp:i}){const{meta:a}=t.layoutService,s=pN.filterNodesOnKeys(t.chart.findShapes("container"),n);return a.isStackedByDimension?pN.findBarsFromLabelsInStackedByDim(s,e,i):a.isStackedByMeasure?pN.findBarsFromLabelsInStackedByMeasure(s,e):a.isGroupedByDimension?pN.findBarsFromLabelsInGroupedByDim(s,e,r,o):pN.findBarsFromLabelsInSingleDim(s,e)},findStackTotalBarsFromLabels({labels:e,opts:t,stackTotalBarKey:n}){const{meta:r}=t.layoutService;if(r.isStacked){const o=pN.filterNodesOnKeys(t.chart.findShapes("container"),[n]);return r.isStackedByDimension?pN.findStackTotalBarsFromLabelsInStackedByDim(o,e):pN.findStackTotalBarsFromLabelsInStackedByMeasure(o,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:o,barOobMaxKey:i,barOobMinKey:a,groupProp:s,stackProp:l,majorScale:c,majorInnerScale:u,filterFn:d}){const{meta:p}=t.layoutService;if(e.length){let f=pN.findBarsFromLabels({labels:e,opts:t,filterKeys:[n],stackTotalBarKey:r,barAxisKey:o,barOobMaxKey:i,barOobMinKey:a,groupProp:s,stackProp:l});if(d&&(f=f.filter(d)),pN.isSingleBarMode(p,f))return[f[0]];if(f.length){let p=pN.findBarsFromLabels({labels:e,opts:t,filterKeys:[n,i,a],stackTotalBarKey:r,barAxisKey:o,barOobMaxKey:i,barOobMinKey:a,groupProp:s,stackProp:l});d&&(p=p.filter(d));const m=pN.calculateTotalBounds({opts:t,labels:e,bars:p,barKey:n,barAxisKey:o,groupProp:s,majorScale:c,majorInnerScale:u}),h=pN.findStackTotalBarsFromLabels({labels:e,opts:t,stackTotalBarKey:r}),g={key:n,bounds:m,childrenNodes:f,data:f.map((e=>e.data)),stackTotalBarNodes:h};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:o,groupAxisKey:i,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:c,majorScale:u,majorInnerScale:d}){let p=pN.filterNodesOnKeys(e,[o,i]),f=p&&p.length?[p[0]]:[];const m=pN.filterNodesOnLabels({labels:f,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:o,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:c,majorScale:u,majorInnerScale:d});if(m&&m.length)return m;const{meta:h}=t.layoutService;if(h.isStackedByMeasure){p=pN.filterNodesOnKeys(e,[a,s]),f=p&&p.length?[p[0]]:[];const i=e=>pN.filterNodesForOob(e,n,a),m=pN.filterNodesOnLabels({labels:p,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:o,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:c,majorScale:u,majorInnerScale:d,filterFn:i});if(m&&m.length)return m[0].stackTotalBarNodes=void 0,m}if(h.isStackedByDimension){p=pN.filterNodesOnKeys(e,[a,s]),f=p&&p.length?[p[0]]:[];const i=e=>pN.filterNodesForOob(e,n,a),m=pN.filterNodesOnLabels({labels:p,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:o,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:c,majorScale:u,majorInnerScale:d,filterFn:i});if(m&&m.length)return m[0].stackTotalBarNodes=void 0,m}const g=pN.filterNodesOnKeys(e,[n,a,s]);return g.length?[g[0]]:[]}};function fN(e,t={},n){let r=[];const o=Fe({key:Jq.COMPONENT.BASE_TOOLTIP,rtl:n});return he(!0,o,{scale:Jq.SCALE.MAIN.COLOR,settings:{filter:e=>pN.filterNodes({nodes:e,opts:t,barKey:Jq.COMPONENT.BAR,stackTotalBarKey:Jq.COMPONENT.STACK_TOTAL_BAR,barAxisKey:Jq.COMPONENT.BAR_AXIS,groupAxisKey:Jq.COMPONENT.GROUP_AXIS,barOobMaxKey:Jq.COMPONENT.BAR_OOB_MAX,barOobMinKey:Jq.COMPONENT.BAR_OOB_MIN,groupProp:"group",stackProp:"stack",majorScale:"major",majorInnerScale:"majorInner"}),extract:e=>(r=e.node.childrenNodes?e.node.childrenNodes:[e.node],pN.extractData(e,t,n)),placement:"bounds",afterShow:()=>{var e;const{app:o,properties:i,customTooltipModel:a}=t;o&&(null===(e=o.isInModalSelection)||void 0===e||!e.call(o))&&a.useCustomTooltip&&a.embed&&hT.show({app:o,properties:i,selectedNodes:r,customTooltipModel:a,rtl:n})}},style:{content:{fontFamily:t.themeService.getStyles().fontFamily}}})}const mN={extractData:(e,t)=>[Ve.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 hN(e,t={},n){if("categorical"!==t.colorService.getMain().getSettings().type)return!1;const r=Fe({key:Jq.COMPONENT.LEGEND_CAT_TOOLTIP,rtl:n});return he(!0,r,{scale:Jq.SCALE.MAIN.COLOR,settings:{filter:e=>mN.filterNodes(e,Jq.COMPONENT.LEGEND_COLOR_CAT),extract:e=>mN.extractData(e,n),placement:"pointer",direction:n?"rtl":"ltr"},style:{content:{fontFamily:t.themeService.getStyles().fontFamily}}})}function gN(e,{fill:t}){return{[Jq.FORMATTER.MINOR]:{data:{fields:e.viewModel.fields.minor}},[Jq.FORMATTER.COLOR]:t&&t.data&&t.data.field?{data:{field:t.data.field}}:{}}}const yN=1,vN=3;function bN(e){return e.getLayoutValue("gridLine.auto")}function xN(e){return!bN(e)&&e.getLayoutValue("gridLine.spacing")===yN}function SN(e){return!bN(e)&&e.getLayoutValue("gridLine.spacing")===vN}const MN=e=>({enabled:e.animations.enabled,trackBy:Ha.lines.trackBy,compensateForLayoutChanges:Ha.lines.compensateForLayoutChanges}),CN=(e,{themeService:t,layoutService:n,dockService:r,viewModel:o})=>{if(!bN(n)&&function(e){return!e.getLayoutValue("gridLine.spacing")}(n))return!1;const{grid:i}=t.getStyles(),a={key:"grid-line",type:"grid-line",layout:{minimumLayoutMode:PL.measureAxis.minimumLayoutMode},preferredSize:()=>({size:0,edgeBleed:{left:1,right:1,top:1,bottom:1}}),ticks:{show:!xN(n)||((e,t)=>t%2==0),stroke:i.line.major.color},minorTicks:{show:SN(n),stroke:i.line.minor.color},animations:MN(o)};return a["horizontal"===r.meta.major.orientation?"y":"x"]=Jq.SCALE.MAIN.MINOR,a};function wN(e,t){const n=[CN(0,t)];return n[0]&&n.push((({dockService:e,themeService:t,viewCache:n,viewModel:r})=>{const o=n.get("minorMinMax");if(o.min>0||o.max<0)return!1;const i=t.getStyles(),a={};return a["horizontal"===e.meta.minor.orientation?"x":"y"]=[{value:0,scale:Jq.SCALE.MAIN.MINOR,line:{stroke:i.grid.line.highContrast.color}}],{key:"high-contrast-grid-line",type:"ref-line",scale:Jq.SCALE.MAIN.MINOR,lines:a,animations:MN(r)}})(t)),n}const kN="areaPan",EN=e=>({type:"Pan",key:"panorama",options:{event:kN,pointers:1,threshold:10,enable(t,n){return this.started===kN||!n||!!e.actions.scroll.enabled()&&e.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>e.key===Jq.COMPONENT.BAR))}},events:{areaPanstart(t){t.preventDefault(),this.started=kN;const n=e.viewState.get("zoom");this[kN]={min:n.min,max:n.max,size:e.chart.component(Jq.COMPONENT.BAR).rect.computedInner.width,span:n.max-n.min}},areaPanmove(t){t.preventDefault();const{span:n,min:r,max:o,size:i}=this[kN],a=-t.deltaX/i;e.viewState.set("zoom",{min:Math.min(r+a*n,e.viewCache.get("continuousMax")-n),max:Math.max(o+a*n,e.viewCache.get("continuousMin")+n)})},areaPanend(e){e.preventDefault(),this.started=!1},areaPancancel(e){e.preventDefault(),this.started=!1}}});function TN(e,t){if(e.layoutService.meta.isDiscrete)return{};const{viewCache:n,viewState:r,chart:o}=e,{rtl:i}=t,a=ng.event.onZoom({viewCache:n,viewState:r,chart:o},{threshold:100,rtl:i,targetKey:Jq.COMPONENT.BAR}),s={last: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===Jq.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 qN({chart:e},t,n){const r=e.component(Jq.COMPONENT.BASE_TOOLTIP);var o;r&&r.show&&(r.emit("hide"),null!=n&&null!==(o=n.customTooltipModel)&&void 0!==o&&o.useCustomTooltip&&t&&t({},r,{nodes:[],opts:n,customTooltipModel:n.customTooltipModel,hide:!0}));const i=e.component(Jq.COMPONENT.LEGEND_CAT_TOOLTIP);i&&i.show&&i.emit("hide");const a=e.component(Jq.COMPONENT.TREND_LINES_TOOLTIP);a&&a.show&&a.emit("hide")}function LN(e,t){const{viewCache:n,viewState:r,chart:o,trendLineModel:i,layoutService:a}=e,{rtl:s}=t,l=e.layoutService.meta.isContinuous?ng.event.onZoom({viewCache:n,viewState:r,chart:o},{rtl:s,threshold:50,targetKey:Jq.COMPONENT.BAR}):void 0,c=Bq({majorInnerScale:Jq.SCALE.MAIN.MAJOR_INNER,tooltip:Jq.COMPONENT.TREND_LINES_TOOLTIP,tooltipOverlay:Jq.COMPONENT.TREND_LINES_TOOLTIP_OVERLAY},{chart:o,viewState:r,trendLineModel:i,layoutService:a,rtl:s}),u=[Jq.COMPONENT.BAR,Jq.COMPONENT.BAR_AXIS,Jq.COMPONENT.GROUP_AXIS,Jq.COMPONENT.BAR_OOB_MAX,Jq.COMPONENT.BAR_OOB_MIN],d=e.customTooltipModel.utils,p=e.debouncer(d.displayTooltip,d.DEBOUNCE_THRESHOLD);return{type:"native",events:{wheel(t){let n,r=!1;if(e.actions.scroll.enabled()){const o={x:t.clientX,y:t.clientY};[n]=e.chart.componentsFromPoint(o).filter((e=>e.key===Jq.COMPONENT.BAR)),n&&(e.layoutService.meta.isContinuous&&l(o,Math.sign(-t.deltaY)),r=!0)}!r&&e.actions.interact.enabled()&&([n]=e.chart.componentsFromPoint(t).filter((e=>e.key===Jq.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(),qN(e,p,e)},mousemove(t){if(e.actions.tooltip.enabled()){if(c(t))return;const n=this.chart.componentsFromPoint({x:t.clientX,y:t.clientY}),r=this.chart.component(Jq.COMPONENT.BASE_TOOLTIP);if(r&&r.show)if(n.some((e=>u.indexOf(e.key)>-1))){const{customTooltipModel:n}=e;if(n.useCustomTooltip&&d.checkIfPromisesExist({customTooltipModel:n})){const o=d.getNodes(t,this.chart);p(t,r,{nodes:o,opts:e,customTooltipModel:n})}else r.emit("show",t)}else r.emit("hide");const o=this.chart.component(Jq.COMPONENT.LEGEND_CAT_TOOLTIP);o&&o.show&&(n.some((e=>e.key===Jq.COMPONENT.LEGEND_COLOR_CAT))?o.emit("show",t):o.emit("hide"))}},mouseup(t){2===t.button&&qN(this,p,e)},mouseleave(){qN(this,p,e)}}}}const NN=(e,t)=>({type:"hammer",enable:!0,gestures:[...(t.hammer||{}).gestures||[],...Sg({...e,componentKey:"scrollbar",rtl:t.rtl}).gestures,...e.layoutService.meta.isDiscrete?e.discrete.interactions.gestures:[EN(e),TN(e,t)]]});function ON(e,t){const n=[NN(e,t),LN(e,t),Sg({...e,componentKey:"scrollbar",rtl:t.rtl}).native];return e.layoutService.meta.isDiscrete&&n.push(e.discrete.interactions.native),n}const DN=e=>({enabled:e.animations.enabled,compensateForLayoutChanges:Ha.bars.compensateForLayoutChanges});const AN=(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:o},{collectionKey:i}){return{type:"box",key:"mini-marker",layout:{dock:"@scrollbar"},show:()=>r.getDimensionCardinality()>1,data:{collection:i},settings:{box:he(!0,{},e.settings.box,{minWidthPx:2,fill:n.getMini().getColor(),strokeWidth:0}),major:he(!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:DN(o)}}(e,t,{collectionKey:n});const{mode:r,scales:o}=t.reducedDataModel;let i;return r.isGroupedByDimension&&!r.isReduced?i=({scale:e,datum:t})=>e([t.group.value,t.value])+e.bandwidth([t.group.value,t.value])/2:r.isGroupedByMeasure&&(i=({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:o.major,fn:i},minor:{scale:o.minor},orientation:e.settings.orientation,oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},animations:DN(t.viewModel)}},{measureText:RN}=t.renderer("svg")();function PN(e,t,n){const r=function(e){const t=he(!0,{},e);return delete t.data,t}(t.minor),o=function(e,t,{majorScaleInvert:n,maxPxStep:r,align:o,getProp:i}){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:o};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=he(!0,{},t),a.data.extract.source="miniCube"):e.mode.isContinuous&&(a=he(!0,{},t,{min:()=>i("continuousMin"),max:()=>i("continuousMax")})),a}(e,t.major,n);return{reducedMinor:r,reducedMajor:o}}const IN=50,zN=100,jN=200;function FN(e,t){const n=function(e){const t=e.getLayoutValue("measureAxis.spacing",1);switch(t){case.5:return IN;case 1:return zN;case 2:return jN;default:return 125*t}}(t);return Math.max(1,Math.round(e/n))}function BN(e,t,n){return 0===t||t===Math.floor((n.length-1)/2)||t===n.length-1}function _N(e,t,n){return 0===t||0===e||t===n.length-1}function HN(e){for(let t=1;t<e.length;t++)if(e[t]===e[t-1])return!0;return!1}function $N(e,t,n,r,o){e.domain([t,n]),e.nice(10);const[i,a]=e.domain();let s=e.ticks(10);const l=function(e){return e.length%2==0}(s),c=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),u=c?_N:BN;s=s.filter(u),l&&!c&&!r&&s.length>1&&(s=[s[0],(s[0]+s[s.length-1])/2,s[s.length-1]]);const d=o?o.formatter(Jq.FORMATTER.MINOR):void 0;return HN(d?s.map(d):s)&&(s=[s[0],s[s.length-1]]),{roundedMin:i,roundedMax:a,ticks:s}}function VN(e,t,n,r,o,i,a,s){const l=i.formatter(Jq.FORMATTER.MINOR),c=s.getStyles(),u="horizontal"===a.meta.major.orientation?"height":"width",d=e=>RN({text:e,fontSize:c.axis.label.name.fontSize,fontFamily:c.axis.label.name.fontFamily})[u];let[p,f]=e.domain(),m=e.ticks(r);function h(){const e=m.map(l);return!HN(e)&&function(e){const t=o/m.length;return Math.max(...e.map(d))<=t}(e)}for(let o=r-1;o>0&&!h();o--)e.domain([t,n]),e.nice(o),[p,f]=e.domain(),m=e.ticks(o);return{roundedMin:p,roundedMax:f,ticks:m}}const WN=(e,t)=>e.value-t.value,UN=e=>({value:e,isMinor:!1}),KN=e=>({value:e,isMinor:!0});function GN(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 YN({chart:e,viewCache:t,dockService:n,layoutService:r,themeService:o,viewModel:i,ds:a}){const{isButterfly:s}=r.meta,{explicitMin:l,explicitMax:c,hasExplicitMin:d,hasExplicitMax:p}=t.get("minorMinMax"),{min:f,max:m}=function(e){let{min:t,max:n}=e.get("minorMinMax");return t===n&&0===t&&(t-=1,n+=1),{min:t,max:n}}(t),h=s?Math.max(Math.abs(f),Math.abs(m)):m,g=s?-h:f,y=u((()=>{const s=function(e,t,n){let r;return e?r=n.meta.chart.size:({rect:r}=t.component(Jq.COMPONENT.BAR)),"horizontal"===n.meta.major.orientation?r.height:r.width}(t.get("isPreRender"),e,n),u=FN(s,r),f=function(e,t,n){const r=wr().domain([e,t]);return r.nice(n),r}(g,h,u);let m,y,v=[];"SPARK"===n.meta.chart.mode?({roundedMin:m,roundedMax:y}=function(e,t){return{roundedMin:e,roundedMax:t}}(g,h)):(({roundedMin:m,roundedMax:y,ticks:v}=VN(f,g,h,u,s,e,n,o)),GN(v,l,c)&&({roundedMin:m,roundedMax:y,ticks:v}=$N(f,g,h,d||p,e)));const b=function(e,t){const n=[];for(let r=0;r<e.length-1;r++){const o=e[r],i=(e[r+1]-o)/(t+1);for(let e=1;e<=t;e++)n.push(o+i*e)}return n}(v,1);v=function(e,t,n){return e&&n.length&&!n.some((e=>e===t))?(n.unshift(t),n.filter((e=>e>=t))):n}(d,l,v),v=function(e,t,n){return e&&n.length&&!n.some((e=>e===t))?(n.push(t),n.filter((e=>e<=t))):n}(p,c,v);let x=function(e,t){return[...e.map(UN),...t.map(KN)].sort(WN)}(v,b);if(r.meta.isButterfly){const e=i.fields.minor[0],t=void 0===e?void 0:a.field(e).formatter();"function"==typeof t&&(x=x.map((e=>({...e,label:t(Math.abs(e.value))}))))}return{roundedMin:m,roundedMax:y,ticks:x}}),(()=>t.get("isPreRender")));return{values:()=>y().ticks,min:()=>d?l:y().roundedMin,max:()=>p?c:y().roundedMax}}function XN(e,{picasso:t,discrete:n,layoutService:r,dockService:o,viewModel:i,viewCache:a,reducedDataModel:s,colorService:l,themeService:c,viewState:u,chart:d,ds:p},{localeInfo:f,rtl:m}){const{meta:h}=r,{fields:g}=i,y=()=>{if("custom"!==r.getLayoutValue("dimensionAxis.axisDisplayMode"))return Math.min(200,o.meta.chart.size["horizontal"===o.meta.major.orientation?"height":"width"]/4)},v=!("none"===r.getLayoutValue("measureAxis.show"))?(b=o.meta.minor.orientation,x=o.meta.minor.dock,"vertical"===b?"near"===x||"left"===x?0:1:"near"===x||"bottom"===x?1:0):.5;var b,x;const S={},M="vertical"===o.meta.minor.orientation&&m,C=l.getMain().getScales(),w=l.getMini().getScales();if(Object.assign(S,C,{reducedFill:w.reducedFill}),S[Jq.SCALE.MAIN.MINOR]=function({chart:e,viewModel:{fields:t},dockService:n,viewCache:r,viewModel:o,layoutService:i,themeService:a,ds:s},{rtl:l}){const c=YN({chart:e,dockService:n,viewCache:r,layoutService:i,themeService:a,viewModel:o,ds:s}),u={invert:"vertical"===n.meta.minor.orientation||l,ticks:{values:c.values},minorTicks:{count:1},min:c.min,max:c.max};return i.meta.isStacked||(u.data={source:"qHyperCube",fields:t.minor}),u}({chart:d,viewModel:i,dockService:o,viewCache:a,layoutService:r,themeService:c,ds:p},{rtl:m}),h.isGroupedByDimension)[Jq.SCALE.MAIN.MAJOR_INNER,Jq.SCALE.MAIN.MAJOR].forEach(((e,t)=>{S[e]={invert:M,data:{source:"qHyperCube",hierarchy:{label:e=>e.qText?e.qText:"",value:e=>e.qElemNumber,props:{...i.selectionDimensionProp(t),group:h.isGroupedByDimension?{field:g.majorGroup}:void 0}}},label:({datum:e})=>e.label,ticks:{depth:t+1},maxPxStep:y,align:v}})),i.isDimensionLocked(0)||(S[Jq.SCALE.MAIN.MAJOR_INNER].data.hierarchy.props.axisSelectionDimension={field:0});else if(h.isGroupedByMeasure)S[Jq.SCALE.MAIN.MAJOR]={type:"group-by-measure",invert:M,data:{extract:{source:"qHyperCube",field:"qDimensionInfo/0",props:{axisSelectionDimension:{field:0}}}},measureCount:e.qHyperCube.qMeasureInfo.length,maxPxStep:y,align:v};else if(h.isTime){const{innerTime:e,outerTime:n}=function(e,t){const{layoutService:n,viewModel:r,viewCache:o,picasso:i,viewState:a,localeInfo:s,themeService:l}=e,c=()=>n.getHyperCubeValue("qAxisData.qAxis",[]),u=i.formatter("q-time"),d=l.getStyles(),p=e=>RN({text:e,fontSize:d.axis.label.name.fontSize,fontFamily:d.axis.label.name.fontFamily});o.set("qTimeAxisCache",[]);const f={get:(e,t=0)=>{const n=o.get("qTimeAxisCache");return n[t]&&n[t][0]===e?n[t][1]:void 0},set:(e,t,n=0)=>{o.get("qTimeAxisCache")[n]=[e,t]},key:({distance:e})=>{const{min:t,max:n}=a.get("zoom"),r=(n-t)/(o.get("continuousMax")-o.get("continuousMin")),i=c().map((e=>e.qName));return[e,Number.parseFloat(r).toFixed(12),...i].toString()}};return{innerTime:{data:{field:r.fields.majorNumeric},type:"q-time-axis",qAxis:c,field:r.fields.majorNumeric,min:()=>a.get("zoom").min,max:()=>a.get("zoom").max,invert:!!t,formatter:{fn:u,localeInfo:s,qNumFormat:n.getHyperCubeValue("qDimensionInfo.0",{}).qNumFormat,measureText:p},ticks:{generator:{type:"d3",initialMin:a.get("zoom").min},level:"inner",anchor:"start",clamp:!0},cache:f},outerTime:{data:{field:r.fields.majorNumeric},type:"q-time-axis",qAxis:c,field:r.fields.majorNumeric,min:()=>a.get("zoom").min,max:()=>a.get("zoom").max,invert:!!t,formatter:{fn:u,localeInfo:s,qNumFormat:n.getHyperCubeValue("qDimensionInfo.0",{}).qNumFormat,measureText:p},ticks:{generator:{type:"d3"},level:"outer",anchor:"start",clamp:!0},cache:f}}}({picasso:t,localeInfo:f,viewState:u,viewModel:i,viewCache:a,themeService:c,layoutService:r},m);S[Jq.SCALE.MAIN.MAJOR_INNER]=e,S[Jq.SCALE.MAIN.MAJOR]=n}else h.isContinuous?S[Jq.SCALE.MAIN.MAJOR]={type:"linear",invert:M,data:{extract:{key:"qHyperCube",field:g.majorNumeric}},ticks:{forceBounds:!0,count:u.get("zoom").min===u.get("zoom").max?1:void 0},minorTicks:{count:1},min:()=>u.get("zoom").min,max:()=>u.get("zoom").max}:S[Jq.SCALE.MAIN.MAJOR]={invert:M,data:{extract:h.isDimensionless?g.minor.map(((t,n)=>({field:t,label:()=>e.qHyperCube.qMeasureInfo[n].qFallbackTitle,value:n}))):{source:"qHyperCube",field:"qDimensionInfo/0",props:{axisSelectionDimension:{field:0}}}},type:h.isDimensionless?"band":void 0,maxPxStep:y,align:v};const{reducedMinor:k,reducedMajor:E}=PN(s,{major:S[Jq.SCALE.MAIN.MAJOR],minor:S[Jq.SCALE.MAIN.MINOR]},{majorScaleInvert:M,maxPxStep:y,align:v,getProp:a.get});return h.isDiscrete&&(S[Jq.SCALE.MAIN.MAJOR].range=n.query.getScaleRange,h.isGroupedByDimension&&(S[Jq.SCALE.MAIN.MAJOR_INNER].range=n.query.getScaleRange)),S[s.scales.major]=E,S[s.scales.minor]=k,S}function JN(e,t,n){const{layoutService:r,colorService:o}=e;return function(e,t){if(!e.targets)throw new Error("Missing 'targets' property");return{interactions:[OL(e,t)],components:[]}}({targets:[r.meta.isStackedByDimension&&r.getHyperCubeValue("qStackedDataPages.0.qArea.qHeight",NaN)>1?Jq.COMPONENT.STACK_TOTAL_BAR:Jq.COMPONENT.BAR,Jq.COMPONENT.BAR_AXIS,Jq.COMPONENT.GROUP_AXIS,"outer-axis-overlay","inner-axis-overlay",Jq.COMPONENT.LEGEND_COLOR_CAT],components(e,t){const r={action:e.srcEvent.ctrlKey||n?"set":"toggle",contexts:["selection"],key:t[0].key};return Jq.COMPONENT.BAR===t[0].key?[{...r,data:["selectionDimension"]}]:[Jq.COMPONENT.BAR_AXIS,Jq.COMPONENT.GROUP_AXIS].includes(t[0].key)?[{...r,data:["selectionDimension","axisSelectionDimension"]}]:[r]}},{...e,isLocked:n=>n.some((e=>e.key===Jq.COMPONENT.LEGEND_COLOR_CAT))?o.getMain().isSelectionLocked({isMeasureSelectionLocked:t}):e.isLocked(n)})}function ZN(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=(({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}}}))(n);return{interactions:[NL(n,t)],components:[r]}}({key:"lasso",componentTargetKey:Jq.COMPONENT.BAR,components:[t?{key:Jq.COMPONENT.STACK_TOTAL_BAR,contexts:["selection"],action:"add"}:{key:Jq.COMPONENT.BAR,contexts:["selection"],action:"add",data:["selectionDimension"]}]},e)}function QN(e){return function(e,t){const n=function(e){const{key:t,targets:n,components:r,fillTargets:o,dock:i}=e;return{key:t,type:"brush-area-dir",layout:{dock:n.map((e=>`@${e}`)).join(",")},settings:{multiple:!0,brush:{components:r},direction:"left"===i||"right"===i?"vertical":"horizontal",bubbles:{align:"left"===i||"top"===i?"end":"start",placement:"inside"},target:{components:o,fill:"rgba(82,204,82,0.2)"}}}}(e);return{interactions:[AL(e,t,"area")],components:[n]}}({eventName:"discreteRange",components:[{key:Jq.COMPONENT.BAR,contexts:["selection"],action:"set",data:["selectionDimension"]}],key:"discreteRangeBrush",targets:["group-axis",Jq.COMPONENT.BAR_AXIS,Jq.COMPONENT.BAR],fillTargets:["group-axis",Jq.COMPONENT.BAR_AXIS],dock:e.dockService.meta.major.dock},e)}function eO(e,t,n){const{selectionService:r}=e,{isUnsupportedFeature:o}=t,i=void 0===n,a=r.getIsSingleSelect(n),s=JN(e,i,a);if(i||a)return{components:[...s.components],gestures:[...s.interactions]};const l=ZN(e),c=function(e,t){return e.layoutService.meta.isStacked||e.layoutService.meta.isButterfly||null!=t&&t("rangeSelections")?{components:[],interactions:[]}:RL({eventName:"measureRange",key:"measureRangeBrush",targets:["y-axis",Jq.COMPONENT.BAR],fillTargets:["y-axis"],dock:e.dockService.meta.minor.dock,scale:Jq.SCALE.MAIN.MINOR,onEdited(){e.actions.select.emit("end","measureRange")}},e)}(e,o),u=function(e){return e.layoutService.meta.isContinuous?RL({eventName:"continuousRange",key:"continuousRangeBrush",targets:e.layoutService.meta.isTime?["outer-time-axis","inner-time-axis",Jq.COMPONENT.BAR]:["continuous-axis",Jq.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?Jq.SCALE.MAIN.MAJOR_INNER:Jq.SCALE.MAIN.MAJOR,toLabel({datum:t,data:n,scale:r}){const o=e.layoutService.meta.isTime?r.formatter():e.chart.formatter(Jq.FORMATTER.MINOR),i=e.chart&&e.chart.brushSelectionIncludeMax;return`${t!==Math.max(...n)||i?"":"<"}${o(t)}`}},e):{components:[],interactions:[]}}(e),d=QN(e);return{components:[...s.components,...l.components,...c.components,...d.components,...u.components],gestures:[...l.interactions,...s.interactions,...c.interactions,...d.interactions,...u.interactions]}}const{isNumber:tO}=Qi;function nO({layoutService:e,viewModel:t,dockService:n}){var r;const{meta:o}=e;if(!o.isStackedByDimension||o.isContinuous)return!1;const{fields:i}=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:i.majorStack,filter:e=>0!==e.qDown||0!==e.qUp,props:{start:{value:e=>{return t=e.qSubNodes,Number(t.filter((e=>tO(e.qMaxPos))).map((e=>e.qMaxPos)).reduce(((e,t)=>e+t),0).toFixed(13));var t}},end:{value:e=>tO(e.qMaxPos)?Number(e.qMaxPos.toFixed(13)):0}}},{field:i.majorStack,filter:e=>0!==e.qDown||0!==e.qUp,props:{start:{value:e=>{return t=e.qSubNodes,Number(t.filter((e=>tO(e.qMinNeg))).map((e=>e.qMinNeg)).reduce(((e,t)=>e+t),0).toFixed(13));var t}},end:{value:e=>tO(e.qMinNeg)?Number(e.qMinNeg.toFixed(13)):0}}}]},settings:{major:{scale:Jq.SCALE.MAIN.MAJOR},minor:{scale:Jq.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:Ha.shadowBars.trackBy,compensateForLayoutChanges:Ha.bars.compensateForLayoutChanges}}}const rO={min:"Min",max:"Max"};function oO(e,t,n){const r=n?e.implicitMax:e.implicitMin;return!function(e,t,n){return void 0===n?GL(e,t)||YL(e,t):n===XL?GL(e,t):YL(e,t)}(Number(r.toFixed(13)),e,t)}function iO(e,{barComponent:t,type:n,isStacked:r}){var o,i,a;const{viewCache:s,layoutService:l,dockService:c}=e,u=s.get("minorMinMax"),d=n===XL;if(function(e,t){return!e[`hasOther${rO[t]}`]}(u,n)){if(function(e,t){return!e[`hasExplicit${rO[t]}`]}(u,n))return!1;if(oO(u,n,d))return!1}if(function(e,t,n){const r=n?e=>e<0:e=>e>0;return e[`hasExplicit${rO[t]}`]&&r(e[`explicit${rO[t]}`])}(u,n,d))return!1;let p="end";r&&(p=d?"sumOfPositives":"sumOfNegatives");const f=function(e){let t;return()=>(void 0===t&&(t=e()),t)}((()=>e.chart.scale(Jq.SCALE.MAIN.MINOR)[n]())),m=d?e=>e.datum[p].value>f():e=>e.datum[p].value<f(),h=Jq.COMPONENT.BAR,g=e.layoutService.getLayoutValue("components",[]),y=g?g.filter((e=>e.key===h))[0]:null;return{type:"box-sliced-hat",key:`sliced-hat-${n}`,layout:{dock:d?c.meta.minor.end:c.meta.minor.start},data:t.data,brush:t.brush,settings:{orientation:t.settings.orientation,major:t.settings.major,minor:t.settings.minor,hat:he({},t.settings.box,{fill:l.meta.isStacked?"#999":t.settings.box.fill,alignment:1,opacity:1,show:m,width:$L({layoutService:e.layoutService,discrete:e.discrete}),strokeWidth:null!=y&&null!==(o=y.style)&&void 0!==o&&o.strokeWidth?HL.BAR.STROKE.WIDTH[y.style.strokeWidth.toUpperCase()]:HL.BAR.STROKE.WIDTH.NONE,stroke:null!==(i=null==y||null===(a=y.style)||void 0===a||null===(a=a.strokeColor)||void 0===a?void 0:a.color)&&void 0!==i?i:HL.BAR.STROKE.COLOR})}}}function aO(e,{collectionKey:t},n){const{meta:r}=e.layoutService,{fields:o}=e.viewModel,i=r.isStackedByDimension&&!r.isContinuous?"qValue":"qNum";function a(t,n){const o=e.ds.field(t).raw(),a=e.ds.field(t).formatter(),s=ke.shouldUseFormat(o),l=r.isButterfly&&n>0;return{field:t,reduceLabel:"none",value:e=>"NaN"===e[i]?0:(e=>l&&0!==e?-e:e)(e[i]),label:e=>s?(e=>"NaN"===e[i]?"-":a(e[i]))(e):e.qText}}function s(e){if(!r.isButterfly)return;return{field:e,reduceLabel:"none",value:e=>e[i]<0}}const l=r.isStackedByDimension?e=>"NaN"===e.qValue:e=>!!e.qIsNull;const c={key:t,data:{extract:o.minor.map(((t,i)=>{const c=e.colorService.getMain().getDatumProps(i),u=e.colorService.getMini().getDatumProps(i),d=c[Object.keys(c)[0]],p=null==d?void 0:d.field,f=p?{field:p,reduceLabel:"none",value:e=>void 0!==e.qNum&&"NaN"!==e.qNum?e.qNum:e.qText||"-"}:void 0,m={field:r.isDimensionless?t:o.major,props:{...e.viewModel.selectionDimensionProp(),axisSelectionDimension:{field:0},start:0,end:a(t,i),negative:s(t),null:(h=t,{field:h,reduceLabel:"none",reduce:"first",value:l}),segment:r.isStacked?a(t):void 0,group:r.isGroupedByDimension?{field:o.majorGroup}:void 0,stack:r.isStacked?{field:o.majorStack}:void 0,measureIndex:r.isGroupedByDimension||r.isStackedByDimension?void 0:i,timeStart:r.isContinuous?{field:o.majorNumeric}:void 0,timeEnd:r.isContinuous?{field:o.majorNumeric}:void 0,fillTooltip:f,...c,...u,id:{value:e=>`r${e.qRow}e${e.qElemNumber}m${i}`},customTooltipAttrExps:0!==r.dimensionCount?ST.getNode(e.layoutService.getLayout(),r):void 0}};var h;return r.isDimensionless&&(m.value=i),void 0!==n&&(m.source=n),ke.deleteUndefinedProperties(m.props),m})),filter:r.isButterfly?e=>!e.negative.value:void 0}};return r.isStacked&&(c.data.stack={stackKey:e=>e.stack.value,value:e=>e.end.value,offset:"diverging"}),c}const{isNumber:sO}=Qi;function lO({layoutService:e,viewModel:t},{collectionKey:n}){const{meta:r}=e,{fields:o}=t;if(!r.isStacked)return!1;let i;return i=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,o):function(e,t){if(!e.isContinuous)return{field:t.majorStack,reduceLabel:"none",props:{sumOfPositives:{value:e=>sO(e.qMaxPos)?Number(e.qMaxPos.toFixed(13)):0},sumOfNegatives:{value:e=>sO(e.qMinNeg)?Number(e.qMinNeg.toFixed(13)):0},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,o),{key:n,data:{extract:i}}}const cO="main-collection",uO="stack-total-collection";function dO(e,{collectionKey:t}){const{layoutService:n,colorService:r,reducedDataModel:{fields:o,mode:i}}=e,{meta:a}=n,s=a.isStackedByDimension&&!a.isContinuous?"qValue":"qNum";function l(e,t){if(!a.isButterfly)return{field:e};const n=t>0;return{field:e,value:e=>"NaN"===e[s]?0:(e=>n&&0!==e?-e:e)(e[s])}}function c(e){if(!a.isButterfly)return;return{field:e,reduceLabel:"none",value:e=>e[s]<0}}return{key:t,data:{extract:o.minor.map(((e,t)=>{const n=i.isReduced?{}:r.getMain().getDatumProps(t),a={start:0,end:l(e,t),negative:c(e),group:{field:o.majorGroup},measureIndex:t,...n},s={source:"miniCube",field:i.isDimensionless?e:o.major,props:a};return i.isDimensionless&&(s.value=t),s})),filter:a.isButterfly?e=>!e.negative.value:void 0}}}const pO="mini-collection",fO="mini-stack-collection",mO="mini-continuous-collection",hO="miniCube",gO=(e,t)=>{const n=(e=>{const t=[aO(e,{collectionKey:cO})];return e.layoutService.meta.isStacked&&t.push(lO(e,{collectionKey:uO})),t})(t),r=((e,t)=>{const n=[];return lg({layoutService:t.layoutService}).miniChart&&(t.reducedDataModel.mode.isContinuous?n.push(aO(t,{collectionKey:mO},hO)):t.layoutService.meta.isStacked?n.push(function(e,{collectionKey:t}){const{colorService:n,reducedDataModel:{fields:r,mode:o}}=e;return{key:t,data:{extract:r.minor.map(((e,t)=>{const i={end:{field:e,reduceLabel:"none"},...o.isStackedByMeasure&&!o.isReduced?n.getMain().getDatumProps(t):{}};return o.isContinuous&&(i.timeStart={field:r.major,value:e=>e.qNum},i.timeEnd=i.timeStart),{source:"miniCube",field:r.major,props:i}})),stack:{stackKey:e=>e.value,value:e=>e.end.value,offset:"diverging"}}}}(t,{collectionKey:fO})):n.push(dO(t,{collectionKey:pO}))),n})(0,t);return n.concat(r)};function yO(e,t,n,r){const o=[{position:e,onBackground:!0,justify:0,overflow:r}];if(t){const t={fill:"#e6e6e6",padding:{left:2,right:2,top:2,bottom:2}};o.push({position:"inside",onBackground:!1,justify:"outside"===e?1:0,background:n?t:void 0})}return o}function vO({layout:e,component:t},n,r){if(!cN(e,n))return!1;const{layoutService:o,chart:i,dockService:a,viewModel:s,themeService:l,styleService:c}=n,{meta:u}=o,d=!lN(e,n),p=l.getStyles(),f=c.label.getStyle(),m=f.useContrastColor;function h(e){const t=i.formatter(Jq.FORMATTER.MINOR);return t?t(e):e}const g={label:function(e){return 0===e.data.sumOfPositives.value&&0!==e.data.sumOfNegatives.value?"":h(e.data.sumOfPositives.value)},simplifiedPlacements:yO("outside",d,m,u.isContinuous),style:p.label.value},y={label:function(e){return 0===e.data.sumOfNegatives.value&&0!==e.data.sumOfPositives.value?"":h(e.data.sumOfNegatives.value)},simplifiedPlacements:yO("opposite",d,m,u.isContinuous),style:p.label.value},v=[iN(he(n,g)),iN(he(n,y))];return{key:"stack-total-labels",type:"labels",renderer:Za(n.flags),layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:t,selector:"rect",strategy:{type:"bar",settings:{direction:e=>sN(e.data.sumOfPositives.value,a.meta.minor.orientation,r),labels:v,fontSize:parseInt(f.fontSize,10),fontFamily:f.fontFamily,linkData:Ha.labels.linkData}}}]},animations:{enabled:s.animations.enabled,trackBy:Ha.labels.trackBy,compensateForLayoutChanges:Ha.labels.compensateForLayoutChanges}}}function bO(e,t,n){const r=[{position:e,justify:0,overflow:n,background:{padding:{left:1,right:1,top:1,bottom:1}}}];return r.push({position:"inside",onBackground:!1,justify:1,background:{padding:{left:2,right:2,top:2,bottom:2}}}),r}function xO({layout:e,type:t},n){const{layoutService:r,viewCache:o,themeService:i,styleService:a}=n,{meta:s}=r,{isStacked:l}=s;if(!l&&!lN(e,n)||l&&!cN(e,n))return!1;const c=o.get("minorMinMax");if(!c.hasExplicitMinMax||t===XL&&0===c.max||t===JL&&0===c.min)return!1;if(!QL(t===XL?c.implicitMax:c.implicitMin,c,t))return!1;const u=i.getStyles(),d=a.label.getStyle();let p=e=>e.data.end.label;s.isStacked&&(p=t===XL?function(e){if(QL(e.data.sumOfNegatives.value,c,t)){const t=0===e.data.sumOfNegatives.value?e.data.sumOfPositives.value:e.data.sumOfNegatives.value,r=n.chart.formatter(Jq.FORMATTER.MINOR);return r?r(t):t}return""}:function(e){if(QL(e.data.sumOfPositives.value,c,t)){const t=0===e.data.sumOfPositives.value?e.data.sumOfNegatives.value:e.data.sumOfPositives.value,r=n.chart.formatter(Jq.FORMATTER.MINOR);return r?r(t):t}return""});const f={label:p,simplifiedPlacements:bO("outside",0,s.isContinuous),styles:u},m={label:p,simplifiedPlacements:bO("opposite",0,s.isContinuous),styles:u},h=[iN(he(n,f)),iN(he(n,m))],g="vertical"===n.dockService.meta.minor.orientation?"down":"right",y=[{component:`${Jq.COMPONENT.GHOST_BAR_OOB}-${t}`,selector:"rect",strategy:{type:"bar",settings:{direction:g,labels:h,fontSize:parseInt(d.fontSize,10),fontFamily:d.fontFamily,linkData:Ha.labels.linkData}}}];return{key:`bar-oob-labels-${t}`,type:"labels",renderer:Za(n.flags),layout:{minimumLayoutMode:"XSMALL"},settings:{sources:y},animations:{enabled:n.viewModel.animations.enabled,trackBy:Ha.labels.trackBy,compensateForLayoutChanges:Ha.labels.compensateForLayoutChanges}}}function SO(e){return"all"===e||"title"===e}function MO(e,t,n){var r;if(null!=t&&null!==(r=t.flags)&&void 0!==r&&r.isEnabled("IM_5788_DATA_TITLE_REFACTOR"))return!1;if(!SO(e.dimensionAxis.show)||t.layoutService.meta.isDimensionless)return!1;const{actions:o,properties:i}=t,a={hyperCube:e.qHyperCube,hyperCubeDef:i&&i.qHyperCubeDef,isDimension:!0,disabled:()=>{var e;return!(null!=o&&null!==(e=o.interact)&&void 0!==e&&e.enabled())},model:t.model,app:t.app,translator:t.translator,rtl:n,selections:t.selections,supportConditional:!0,isEnabled:t.flags.isEnabled},s=t.styleService.axis.title.getStyle();return t.layoutService.meta.hasMultipleDimensions&&(a.padding="0",a.minWidth="auto"),{key:"dimension-title",type:"data-title",layout:{minimumLayoutMode:PL[`${t.dockService.meta.major.orientation}DimensionAxisTitle`].minimumLayoutMode,dock:t.dockService.meta.major.dock},settings:a,style:s}}function CO(e,t,n){var r;if(null!=t&&null!==(r=t.flags)&&void 0!==r&&r.isEnabled("IM_5788_DATA_TITLE_REFACTOR"))return!1;if(!SO(e.measureAxis.show))return!1;const{layoutService:i,actions:a}=t,s=t.properties,l=i.getLayoutValue("qUndoExclude")?"qUndoExclude.qHyperCubeDef":"qHyperCubeDef",c={hyperCube:i.getHyperCube(),hyperCubeDef:o(s,l),isDimension:!1,disabled:()=>!a.interact.enabled(),model:t.model,app:t.app,translator:t.translator,rtl:n,selections:t.selections,supportConditional:!0,isEnabled:t.flags.isEnabled},u=t.styleService.axis.title.getStyle();return t.layoutService.meta.hasMultipleMeasures&&(c.padding="0",c.minWidth="auto"),{key:"measure-title",type:"data-title",layout:{minimumLayoutMode:"SMALL",dock:t.dockService.meta.minor.dock},settings:c,style:u}}function wO(e){return"all"===e||"title"===e}function kO(e,t,n){var r;if(null==t||null===(r=t.flags)||void 0===r||!r.isEnabled("IM_5788_DATA_TITLE_REFACTOR"))return!1;if(!wO(e.dimensionAxis.show)||t.layoutService.meta.isDimensionless)return!1;const o=t.alternativeService.getAlternatives(),{actions:i}=t,a=t.styleService.axis.title.getStyle();return{type:"axis-title",key:"dimension-title",renderer:"react-qcm",layout:{minimumLayoutMode:PL[`${t.dockService.meta.major.orientation}DimensionAxisTitle`].minimumLayoutMode,dock:t.dockService.meta.major.dock},data:{infos:t.layoutService.getHyperCubeValue("qDimensionInfo"),alternatives:o.dimensions},resources:{app:t.app,cache:t.viewCache,model:t.model,selections:t.selections,translator:t.translator},callbacks:{onChange:()=>{}},settings:{isDisabled:()=>{var e;return!(null!=i&&null!==(e=i.interact)&&void 0!==e&&e.enabled())},isRTL:n,isSnapshot:t.layoutService.meta.isSnapshot,skipAttributeExpressions:!1,type:"dimension"},style:{title:{color:a.color,fontFamily:a.fontFamily,fontSize:a.fontSize}}}}function EO(e,t,n){var r;if(null==t||null===(r=t.flags)||void 0===r||!r.isEnabled("IM_5788_DATA_TITLE_REFACTOR"))return!1;if(!wO(e.measureAxis.show))return!1;const o=t.alternativeService.getAlternatives(),{actions:i}=t,a=t.styleService.axis.title.getStyle();return{type:"axis-title",key:"measure-title",renderer:"react-qcm",layout:{minimumLayoutMode:"SMALL",dock:t.dockService.meta.minor.dock},data:{infos:t.layoutService.getHyperCubeValue("qMeasureInfo"),alternatives:o.measures},resources:{app:t.app,cache:t.viewCache,model:t.model,selections:t.selections,translator:t.translator},callbacks:{onChange:()=>{}},settings:{isDisabled:()=>{var e;return!(null!=i&&null!==(e=i.interact)&&void 0!==e&&e.enabled())},isRTL:n,isSnapshot:t.layoutService.meta.isSnapshot,skipAttributeExpressions:!1,type:"measure"},style:{title:{color:a.color,fontFamily:a.fontFamily,fontSize:a.fontSize}}}}function TO({environment:e,rtl:t,refLineModel:n,layoutService:r,colorService:o,dockService:i,themeService:a,viewModel:s,chart:l}){const{theme:c,localeInfo:u}=e,d={resolveUIColor:o.getMain().getPaletteColor},p=a.getStyles(),f=s.animations.enabled;return[Ka({refLineModel:n,layoutService:r,colorModel:d,dockService:i,animationsEnabled:f,chart:l,scale:Jq.SCALE.MAIN.MINOR,axis:"horizontal"===i.meta.major.orientation?"y":"x",key:Jq.COMPONENT.MEASURE_REF_LINE,minimumLayoutMode:PL.refLines.minimumLayoutMode}),Ka({isDimension:!0,refLineModel:n,layoutService:r,colorModel:d,dockService:i,animationsEnabled:f,chart:l,scale:Jq.SCALE.MAIN.MAJOR,axis:"horizontal"===i.meta.major.orientation?"x":"y",rtl:t,key:Jq.COMPONENT.DIMENSION_REF_LINE,mainComponentKey:Jq.COMPONENT.BAR,minimumLayoutMode:PL.refLines.minimumLayoutMode}),...Ga({refLineModel:n,layoutService:r,colorModel:d,animationsEnabled:f,dock:i.meta.minor.opposite,scale:Jq.SCALE.MAIN.MINOR,style:p,formatter:Jq.FORMATTER.MINOR,theme:c,localeInfo:u,rtl:t,key:Jq.COMPONENT.MEASURE_REF_LINE_LABEL}),...Ga({isDimension:!0,refLineModel:n,layoutService:r,colorModel:d,animationsEnabled:f,dock:i.meta.major.opposite,scale:Jq.SCALE.MAIN.MAJOR,style:p,theme:c,localeInfo:u,rtl:t,key:Jq.COMPONENT.DIMENSION_REF_LINE_LABEL})]}function qO({dockService:e,layoutService:t,discrete:n,continuousDataModel:r,viewModel:o,flags:i}){if(null==i||!i.isEnabled("VIZ_199_ADD_SPACE_BETWEEN"))return!1;if(!!lg({layoutService:t}).none)return!1;const{rtl:a}=e.config,s="horizontal"===e.meta.chart.orientation,l=!s,{dock:c}=e.meta.major,{show:u}=t.getLayoutValue("dimensionAxis",{}),d="none"!==u;if(l&&d&&"bottom"===c)return!1;if(s&&d){if(!a&&"right"===c)return!1;if(a&&"left"===c)return!1}const p=a?"left":"right";return{type:"space",key:Jq.COMPONENT.SPACE,layout:{dock:l?"bottom":p,minimumLayoutMode:"XSMALL"},show:()=>t.meta.isContinuous?r.getDimensionCardinality()>1:n.query.getCanScroll(),settings:{size:Math.max(6,Math.min(16,Math.floor(.025*e.meta.minor.size)))},animations:{enabled:o.animations.enabled,trackBy:()=>Math.random()}}}const LO=(e,t,n)=>{var r;const{layoutService:o,dockService:i,colorService:a,chart:s,actions:l,discrete:c,continuousDataModel:u,reducedDataModel:d,viewModel:p,viewState:f,viewCache:m,themeService:h,refLineModel:g,pluginService:y,rtl:v,logicalSize:b,trendLineModel:x,disclaimerService:S}=t,{localeInfo:M}=n,C=function(e,t){const{disclaimerService:n,themeService:r,translator:o}=e,i=n.getDisclaimer();if(!i)return!1;const{fontFamily:a}=r.getStyles();return{key:"disclaimer",type:"disclaimer",layout:{dock:i.alignment},settings:{isRTL:t,label:o.get(`Object.Disclaimer.${i.key}`)},style:{fontFamily:a}}}(t,v);if(S.getHasSuppressingDisclaimer())return{components:[C]};const w=XN(e,t,{localeInfo:M,rtl:v}),k=!(null!=l&&null!==(r=l.interact)&&void 0!==r&&r.enabled()),E=a.getMain().getLegend({eventName:"legend-c",key:"legend-color",viewState:f,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:k}),T=E.components[0];if(T){const{dock:e}=T.layout;if(w.fillRange&&(["right","left"].includes(e)||v)&&(w.fillRange.invert=!0),"legend-seq"===T.type&&void 0!==p.selectionDimensionIdx&&w.fillRange&&w.fillRange.min<w.fillRange.max){const e=RL({eventName:"legendRange",key:"legendRangeBrush",targets:[T.key],fillTargets:[T.key],targetSelector:'[id="legend-seq-target"]',targetFillSelector:'[id="legend-seq-ticks"]',dock:T.layout.dock,scale:"fillRange",bubblesPlacement:"outside",onEdited:()=>{l.select.emit("end","legendRange")}},t);E.components.push(...e.components),E.interactions.unshift(...e.interactions)}}else w.fillRange&&v&&(w.fillRange.invert=!0);const q=((e,{componentKey:t,collectionKey:n})=>{var r,o,i;const{meta:a}=e.layoutService,s=e.colorService.getMain().getPaletteColor;let l,c;a.isGroupedByDimension?l=({scale:e,datum:t})=>e([t.group.value,t.value])+e.bandwidth([t.group.value,t.value])/2:a.isGroupedByMeasure&&(l=({scale:e,datum:t})=>e([t.value,t.measureIndex.value])+e.bandwidth()/2);let u=2;a.isContinuous?(c={start:"timeStart",end:"timeEnd"},u=WL(e,t)):a.isStacked&&(c="stack");const d=a.isStackedByDimension&&e.layoutService.getHyperCubeValue("qStackedDataPages.0.qArea.qHeight",NaN)>1,p=e=>{var t;return!0===(null===(t=e.datum.null)||void 0===t?void 0:t.value)},f=e.layoutService.getLayoutValue("components",null),m=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||d?0:2,stroke:"#000"},inactive:{opacity:.3}}}]},settings:{major:{scale:Jq.SCALE.MAIN.MAJOR,fn:l,ref:c},minor:{scale:Jq.SCALE.MAIN.MINOR},orientation:e.dockService.meta.minor.orientation,box:{width:$L({layoutService:e.layoutService,discrete:e.discrete}),minWidthPx:u,fill:e.colorService.getMain().getColor(),opacity:e=>p(e)?0:void 0,minHeightPx:function(e){return a.isStacked?.1:p(e)?.01:.3},strokeWidth:null!=m&&null!==(r=m.style)&&void 0!==r&&r.strokeWidth?HL.BAR.STROKE.WIDTH[m.style.strokeWidth.toUpperCase()]:HL.BAR.STROKE.WIDTH.NONE,stroke:null!=m&&null!==(o=m.style)&&void 0!==o&&null!==(o=o.strokeColor)&&void 0!==o&&o.color?s(null==m||null===(i=m.style)||void 0===i?void 0:i.strokeColor):HL.BAR.STROKE.COLOR},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},animations:{enabled:e.viewModel.animations.enabled,isMainComponent:!0,trackBy:Ha.bars.trackBy,compensateForLayoutChanges:Ha.bars.compensateForLayoutChanges}}})(t,{componentKey:Jq.COMPONENT.BAR,collectionKey:Jq.COLLECTION.MAIN}),L=((e,{componentKey:t,collectionKey:n})=>{const{meta:r}=e.layoutService;if(!r.isStacked)return!1;let o=2;r.isContinuous&&(o=WL(e,t));const i={key:t,type:"box",data:{collection:n},settings:{major:{scale:Jq.SCALE.MAIN.MAJOR},minor:{scale:Jq.SCALE.MAIN.MINOR,start:{ref:"sumOfNegatives"},end:{ref:"sumOfPositives"}},orientation:e.dockService.meta.minor.orientation,box:{width:$L({layoutService:e.layoutService,discrete:e.discrete}),minWidthPx:o,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&&(i.settings.major.ref={start:"timeStart",end:"timeEnd"}),i})(t,{componentKey:Jq.COMPONENT.STACK_TOTAL_BAR,collectionKey:Jq.COLLECTION.STACK_TOTAL}),N=eO(t,n,p.selectionDimensionIdx),{isStacked:O}=o.meta;let D;D=d.mode.isContinuous?Jq.COLLECTION.MINI_CONTINUOUS:O?Jq.COLLECTION.MINI_STACK:Jq.COLLECTION.MINI;const A=O?L:q,R=wN(0,t),P=[...R,iO(t,{barComponent:A,type:"max",isStacked:O}),iO(t,{barComponent:A,type:"min",isStacked:O}),tN(t,{barComponent:A,type:"max",isStacked:O}),tN(t,{barComponent:A,type:"min",isStacked:O}),rN(t,{chart:s,type:"max",collectionKey:O?Jq.COLLECTION.STACK_TOTAL:Jq.COLLECTION.MAIN}),rN(t,{chart:s,type:"min",collectionKey:O?Jq.COLLECTION.STACK_TOTAL:Jq.COLLECTION.MAIN}),..._L(e,t,v,!!R[0]),q,L,nO({layoutService:o,viewModel:p,dockService:i}),MO(e,t,v),CO(e,t,v),kO(e,t,v),EO(e,t,v),...TO({environment:n,rtl:v,refLineModel:g,layoutService:o,colorService:a,dockService:i,themeService:h,viewModel:p,chart:s}),Fi({viewState:f,viewCache:m,layoutService:o,dockService:i,rtl:v}),qO({dockService:i,layoutService:o,discrete:c,continuousDataModel:u,viewModel:p,flags:t.flags}),AN(q,t,{collectionKey:D}),cg({layoutService:o,dockService:i,discrete:c,continuousDataModel:u,viewState:f,viewCache:m,themeService:h,rtl:v,deviceType:n.deviceType}),...Rq({majorScale:Jq.SCALE.MAIN.MAJOR,minorScale:Jq.SCALE.MAIN.MINOR,tooltipOverlay:Jq.COMPONENT.TREND_LINES_TOOLTIP_OVERLAY},{layoutService:o,trendLineModel:x,dockService:i,animationsEnabled:p.animations.enabled}),...E.components,dN({layout:e,component:Jq.COMPONENT.BAR,minorScale:w.minor},t,v),vO({layout:e,component:Jq.COMPONENT.STACK_TOTAL_BAR},t,v),xO({layout:e,type:"max"},t),xO({layout:e,type:"min"},t),...N.components,fN(0,{...t,coloring:a.getMain().getSettings()},v),hN(0,{...t,coloring:a.getMain().getSettings()},v),!1!==e.showDisclaimer&&C,jq({tooltip:Jq.COMPONENT.TREND_LINES_TOOLTIP,formatter:Jq.FORMATTER.MINOR},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}(P);const I=[...E.interactions,...N.gestures].sort(((e,t)=>(t.prio||0)-(e.prio||0)));return{interactions:ON(t,{rtl:v,hammer:{gestures:I}}),scales:w,palettes:a.getMain().getPalettes(),components:y.extendComponents(P),strategy:be(0,{logicalSize:b,minCenterRatio:0}),formatters:gN(t,w),collections:gO(0,t)}};const NO=({environment:e,services:t,chart:n,viewState:r,bootstrapped:o})=>{J((i=>{if(!e||!t||!o)return;const{layoutService:a,dockService:s,colorService:l,discrete:c,continuousDataModel:u,reducedDataModel:d}=t,{width:p,height:f}=s.meta.chart.size;if(i.snapshotData=i.snapshotData||{},i.snapshotData.content={size:{w:p,h:f}},a.meta.isSnapshot)return Promise.resolve();i.snapshotData.content.chartData={scrollOffset:r.get("scrollOffset"),zoom:r.get("zoom"),legendScrollOffset:Ne(n,Jq.COMPONENT.LEGEND_COLOR_CAT)};const{properties:m}=o,h=null==m?void 0:m.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}));return h&&(i.tooltip.auto=!0),a.meta.isDiscrete?(c.command.setSnapshotData(i),d.setSnapshotData(i)):u.setSnapshotData(i),l.getMain().getSnapshotData().then((e=>{i.snapshotData.content.chartData={...i.snapshotData.content.chartData,...e}})).catch((()=>{}))})),Z((()=>({getViewState(){if(r&&n)return{scrollOffset:r.get("scrollOffset"),zoom:r.get("zoom"),legendScrollOffset:Ne(n,Jq.COMPONENT.LEGEND_COLOR_CAT)}}})),[r,n])},OO=e=>"[object Object]"===Object.prototype.toString.call(e),DO=e=>Array.isArray(e);function AO(e,t){if(e===t)return!0;if(DO(e)){if(!DO(t))return!1;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!AO(e[n],t[n]))return!1;return!0}if(OO(e)){if(!OO(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(!AO(e[n[r]],t[n[r]]))return!1}return!0}return e===t}const RO=({properties:e,layout:t,isStacked:n,isContinuous:r,model:o,layoutService:i})=>{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)})),c=t.qHyperCube.qMeasureInfo.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)})),u=he(!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,c,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=o.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 o;if("colorByExpression"===(null===(o=t.getLayout().qHyperCube.qMeasureInfo)||void 0===o||null===(o=o[0])||void 0===o||null===(o=o.qAttrExprInfo)||void 0===o||null===(o=o[0])||void 0===o?void 0:o.id))return;const{current:r,target:i}=function({properties:e,filtered:t}){const{qMeasures:n}=e.qHyperCubeDef||[],{current:r,target:o}=n.reduce(((e,n,r)=>{var o;return"colorByExpression"===(null===(o=n.qAttributeExpressions[0])||void 0===o?void 0:o.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:o}}({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[i].qAttributeExpressions.splice(0,0,a)}}({properties:e,layoutService:i}),!Wi.compare(u,e,!0)&&JSON.stringify(u)!==JSON.stringify(e)&&(e.hash=Math.random(),!0)};function PO(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)!==qT})).length,r=t.layout.qHyperCube.qDimensionInfo.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==qT})).length,o=e.dimensionAxis.maxVisibleItems;o<1?e.dimensionAxis.maxVisibleItems=10:o>1e4/(r+n)&&(e.dimensionAxis.maxVisibleItems=Math.min(o,Math.floor(1e4/(r+n))))}}const IO=[{translation:"Common.None",value:"none"},{translation:"Common.Small",value:"small"},{translation:"Common.Medium",value:"medium"},{translation:"Common.Large",value:"large"}],zO=(e,t,n)=>{const r=`${e}.fontFamily`,o=`${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:o,options:()=>t.getOptions(o),defaultValue:()=>t.getDefaultValue(o)},fontColorItem:{component:"color-picker",width:!1,ref:`${e}.color`,defaultValue:()=>({color:n.getStyle("object.barChart",e,"color")})}}}}};function jO(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(IO).map((e=>IO[e])),schemaIgnore:!0,defaultValue:IO[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)=>!Le.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)=>((e,t)=>{var n,r,o;const i=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)!==qT})).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)!==qT})).length,s="grouped"===(null===(o=e.barGrouping)||void 0===o?void 0:o.grouping)&&a>0&&i+a>2;return Le.continuous(t)?1:s?.9:.7})(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(og.OPTIONS).map((e=>og.OPTIONS[e])),schemaIgnore:!0,defaultValue:og.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}}}}}}}}}}function FO(e,t,n,r=!1){return r?jO(t):function(e,t,n){const r=b({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(IO).map((e=>IO[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)=>!Le.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:o,qHyperCubeDef:i}=r,a=i.qMeasures.length,s=i.qDimensions.length,l="grouped"===o.grouping&&s>0&&a+s>2;return Le.continuous(r)?1:l?.9:.7},schemaIgnore:!0}}}}},axisTitleSection:{translation:"properties.axis.title",component:"panel-section",items:{axisTitleItems:{component:"items",ref:"components",key:"axis",items:zO("axis.title",r,e)}}},axisLabelSection:{translation:"properties.axis.label",component:"panel-section",items:{axisLabelItems:{component:"items",ref:"components",key:"axis",items:zO("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:{...zO("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:zO("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:zO("legend.label",r,e)}}}:void 0}}}(e,t,n)}const BO=e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==qT},_O=(e,t)=>null==e?void 0:e.qHyperCube[t].filter((e=>BO(e))),HO=e=>({get(t,n,r){const o="stacked";return"butterfly"===t(n.type)?Zq({layout:r.layout,flags:e})?t(n.type):o:Le.continuous(r.layout)?o:t(n.type)},set(e,t,n){const r=Ae(n.type,n);t(n.type,e,r)}}),$O=e=>{if(!e)return!1;const t=he(!0,{},e);return t.qHyperCube.qMeasureInfo=_O(e,"qMeasureInfo"),t.qHyperCube.qDimensionInfo=_O(e,"qDimensionInfo"),t&&!Le.continuous(t)&&Le.stacked(t)},VO=({translator:e,flags:t,anything:n})=>{var r,o,i;const a=null==n||null===(r=n.sense)||void 0===r||null===(o=r.isUnsupportedFeature)||void 0===o?void 0:o.call(r,"continuousData"),s={items:{labels:{items:{header:{show:(e,t,n)=>_O(n.layout,"qMeasureInfo").length},pointLabels:{component:"checkbox",ref:"dataPoint.showLabels",type:"boolean",translation:"Simple.Label.Value",show:(e,t,n)=>!$O(t.layout)&&_O(n.layout,"qMeasureInfo").length},segmentLabels:{component:"checkbox",ref:"dataPoint.showSegmentLabels",type:"boolean",translation:"properties.dataPoints.segmentLabelMode",defaultValue:!1,show:(e,t)=>$O(t.layout),convertFunctions:{get:(e,t,n,r)=>r.dataPoint.showLabels&&r.dataPoint.showSegmentLabels,set(e,t,n,r,o){o.dataPoint.showSegmentLabels=e,o.dataPoint.showLabels=o.dataPoint.showSegmentLabels||o.dataPoint.showTotalLabels}}},totalLabels:{component:"checkbox",ref:"dataPoint.showTotalLabels",type:"boolean",translation:"properties.dataPoints.totalLabelMode",defaultValue:!0,show:(e,t)=>$O(t.layout),convertFunctions:{get:(e,t,n,r)=>r.dataPoint.showLabels&&r.dataPoint.showTotalLabels,set(e,t,n,r,o){o.dataPoint.showTotalLabels=e,o.dataPoint.showLabels=o.dataPoint.showSegmentLabels||o.dataPoint.showTotalLabels}}},dimensionTitle:{component:"checkbox",ref:"dimensionAxis.show",type:"string",translation:"Simple.Label.Dimension.Hide",defaultValue:"all",show:(e,t,n)=>_O(n.layout,"qDimensionInfo").length&&_O(n.layout,"qMeasureInfo").length,convertFunctions:{get:(e,t,n,r)=>"labels"===r.dimensionAxis.show||"none"===r.dimensionAxis.show,set(e,t,n,r,o){o.dimensionAxis.show=e?"labels":"all"}}},measureTitle:{component:"checkbox",ref:"measureAxis.show",type:"string",translation:"Simple.Label.Measure.Hide",defaultValue:"all",show:(e,t,n)=>_O(n.layout,"qMeasureInfo").length,convertFunctions:{get:(e,t,n,r)=>"labels"===r.measureAxis.show||"none"===r.measureAxis.show,set(e,t,n,r,o){o.measureAxis.show=e?"labels":"all"}}}}}}},l=null==n||null===(i=n.sense)||void 0===i?void 0:i.theme,c={uses:"settings",items:{simpleStyling:FO(l,t,e,!0),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:FO(l,t,e,!1),grouping:{ref:"barGrouping.grouping",type:"string",component:"item-selection-list",defaultValue:"grouped",horizontal:!0,items:(e,n)=>{const r=[{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"}];return Zq({layout:n.layout,flags:t})&&r.push({icon:"bars_butterfly",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.butterfly",value:"butterfly"}),r},show(e,t){const n=_O(t.layout,"qMeasureInfo").length,r=_O(t.layout,"qDimensionInfo").length;return r>0&&n+r>2},globalChange(e,n,r){"butterfly"!==e.barGrouping.grouping||Zq({layout:r.layout,flags:t})||(e.barGrouping.grouping="stacked"),"butterfly"===e.barGrouping.grouping&&e.measureAxis&&"max"!==e.measureAxis.minMax&&!e.measureAxis.autoMinMax&&(e.measureAxis.minMax="max")},change(e,n,r){"butterfly"!==e.barGrouping.grouping||Zq({layout:r.layout,flags:t})||(e.barGrouping.grouping="stacked"),_O(n.layout,"qDimensionInfo").length>1&&"stacked"===e.barGrouping.grouping?(e.qHyperCubeDef.qMode="K",e.qHyperCubeDef.qAlwaysFullyExpanded=!0):e.qHyperCubeDef.qMode="S"},readOnly:(e,t,n)=>Le.continuous(n.layout),convertFunctions:HO(t)},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)=>Le.continuous(n.layout),convertFunctions:(u="vertical",{get:(e,t,n)=>Le.continuous(n.layout)?u:e(t.type),set(e,t,n){const r=Ae(n.type,n);t(n.type,e,r)}})},scroll:{type:"items",items:{scrollbar:{type:"string",component:"dropdown",ref:"scrollbar",translation:"properties.scrollbar",options:Object.keys(og.OPTIONS).map((e=>og.OPTIONS[e])),defaultValue:og.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)=>!Le.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($O(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&&$O(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&&$O(n.layout)}}}}},colorsAndLegend:{uses:"colorsAndLegend",items:{colors:{items:{attributeExpression:Qa}},legend:{items:{show:{snapshot:{tid:"property-legend"}}}}}},dimensionAxis:{uses:"axis.dimensionAxis",items:{axisDisplaySettings:{components:"items",type:"items",show:(e,t,n)=>!Le.continuous(n.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=_O(n.layout,"qMeasureInfo").length,o=_O(n.layout,"qDimensionInfo").length,i=e.dimensionAxis.maxVisibleItems;return i<0||i>1e4/(o+r)},globalChange:PO,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"}}};var u;return null!=t&&t.isEnabled("SENSECLIENT_LAYERED_LABELS")&&(c.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"}]}}}),null!=t&&t.isEnabled("TLV_800_BUTTERFLY_CHART")&&(c.items.measureAxis={uses:"axis.flippableMeasureAxis",items:{minMax:{items:{minMax:{show:e=>"butterfly"!==e.barGrouping.grouping&&e.measureAxis&&!e.measureAxis.autoMinMax},min:{show:e=>"butterfly"!==e.barGrouping.grouping&&e.measureAxis&&["min","minMax"].includes(e.measureAxis.minMax)&&!e.measureAxis.autoMinMax},max:{invalid:e=>e.measureAxis&&"minMax"===e.measureAxis.minMax?e.measureAxis.min>=e.measureAxis.max:!(!e.measureAxis||"max"!==e.measureAxis.minMax||"butterfly"!==e.barGrouping.grouping)&&e.measureAxis.max<=0}}}}}),c},WO={uses:"sortingWithDisclaimer",items:{defaultSorting:{items:{dimensions:{locked:(e,t,n)=>1===n.getMeasures().length&&2===n.getDimensions().length&&0===e,items:{autoSort:{change(e){$t(e)}}}},interColumnSorting:{reset:(e,t)=>{const{qDimensions:n,qMeasures:r,qInterColumnSortOrder:o}=e.qHyperCubeDef,{qCardinal:i}=t.layout.qHyperCube.qDimensionInfo[0],a=o.length,s=[...Array(a).keys()];1===n.length&&r.length>=1&&i>10&&([s[0],s[1]]=[s[1],s[0]]),e.qHyperCubeDef.qInterColumnSortOrder=s}}}}}},UO={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}},refLines:{uses:"reflines"},dimRefLines:{uses:"dimReflines"}}},KO=({translator:e,flags:t,anything:n})=>{var r,o;return{uses:"data",items:{dimensions:{items:{nullSuppression:{show(e,t,r){var o,i;if(null!=n&&null!==(o=n.sense)&&void 0!==o&&null!==(i=o.isUnsupportedFeature)&&void 0!==i&&i.call(o,"includeZeroValues"))return!1;const a=((e,t)=>{var n,r;const o=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=>BO(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[o])===e})(e,t),s=Le.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}}},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},trendLines:null!=n&&null!==(r=n.sense)&&void 0!==r&&null!==(o=r.isUnsupportedFeature)&&void 0!==o&&o.call(r,"trendlines")?void 0:$q({translator:e,allowStackedByDimension:t&&t.isEnabled("TRENDLINES_STACKED_DIM")})}}}}};function GO({translator:e,flags:t,anything:n}){return{type:"items",component:"accordion",items:{data:KO({translator:e,flags:t,anything:n}),sorting:WO,addons:UO,settings:VO({translator:e,flags:t,anything:n})}}}const YO=e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==qT};function XO({flags:e}){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,o=n.qHyperCube.qDimensionInfo.filter((e=>YO(e))).length;return 1===r&&2===o&&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:(t,n)=>{const r=[{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"}];return Zq({layout:null==n?void 0:n.layout,flags:e})&&r.push({icon:"bars_butterfly",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.butterfly",value:"butterfly"}),r},show(e,t){return t.qHyperCube.qMeasureInfo.filter((e=>YO(e))).length+t.qHyperCube.qDimensionInfo.filter((e=>YO(e))).length>2&&!Le.continuous(t)&&!((null==(n=t)||null===(r=n.qHyperCube)||void 0===r||null===(r=r.qDimensionInfo)||void 0===r?void 0:r.filter((e=>YO(e))).length)>1&&(null==n||null===(o=n.qHyperCube)||void 0===o?void 0:o.isHCEnabled));var n,r,o},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)=>!Le.continuous(t)}}},color:{uses:"color"}}}}function JO(e){const t={},n=o(e,"components"),r=o(e,"dimensionAxis.axisDisplayMode"),i=o(e,"dimensionAxis.maxVisibleItems"),a=n?n.filter((e=>"bar"===e.key))[0]:void 0,s=o(e,"tooltip");if(a&&a.style&&Object.keys(a.style).forEach((e=>{t[`chart_style_${e}`]=a.style[e]})),i&&(t.chart_dimaxis_maxVisibleItems=i),r&&(t.chart_dimaxis_axisDisplayMode=r),s){t.chart_tooltip_custom=!s.auto;const e=o(s,"chart.object.refId");!s.auto&&e&&(t.chart_tooltip_custom_mini_chart=e)}return t}const ZO=e=>!!(e&&e.qHyperCube.qSize.qcy>0),QO={ACCUMULATIONS:"accumulation",MOVING_AVERAGE:"movingAverage",DIFFERENCE:"difference",NORMALIZATION:"normalization"};function eD(){const e=[];return Object.keys(QO).forEach((t=>{e.push(QO[t])})),e}function tD(e){return{definition:GO(e),softDefinition:XO(e),support:{snapshot:ZO,export:ZO,exportData:!0,sharing:ZO,viewData:!0,effects:!0,modifiers:eD()},importProperties:(t,n,r,o)=>{const i={layout:{templateId:n.templateId}};r.mapProperties(i);const a={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()},s=ee.axisChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:zT(e),defaultPropertyValues:a,hypercubePath:o,extension:r}),l=s.qProperty;return l.qHyperCubeDef.qDimensions.length>1&&"stacked"===l.barGrouping.grouping&&(l.qHyperCubeDef.qMode="K",l.qHyperCubeDef.qAlwaysFullyExpanded=!0),ee.conditionalShow.unquarantine(l),ee.conditionalShow.unquarantineAlternative(l),s},exportProperties:(e,t,n)=>{ee.conditionalShow.quarantine(e.qProperty),ee.conditionalShow.quarantineAlternative(e.qProperty);return ee.axisChart.exportProperties({propertyTree:e,hyperCubePath:t,viewDataMode:n})},migrate:{properties:e=>(e.qExtendsId||(function(e){var t;e.qHyperCubeDef.qDimensions.forEach($t),null!==(t=e.qHyperCubeDef.qLayoutExclude)&&void 0!==t&&null!==(t=t.qHyperCubeDef)&&void 0!==t&&t.qDimensions&&e.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.forEach($t)}(e),function({properties:e}){const{scrollbar:t,dimensionAxis:n,preferContinuousAxis:r,showMiniChartForContinuousAxis:o}=e;if(t||!1!==o)return;const{continuousAuto:i}=n;(i||!i&&r)&&(e.scrollbar=og.OPTIONS.NONE.value)}({properties:e})),e)},extendMetrics:JO}}}}}));
|