@nebula.js/sn-pie-chart 1.27.12 → 1.27.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-specifications/plugins.json +1 -1
- package/api-specifications/properties.json +1 -1
- package/core/esm/index.js +2 -2
- package/dist/sn-pie-chart.js +3 -3
- package/dist/sn-pie-chart.systemjs.js +3 -3
- package/package.json +1 -1
- package/sn-pie-chart-ext/dist/sn-pie-chart.js +3 -3
- package/sn-pie-chart-ext/sn-pie-chart.qext +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-pie-chart v1.27.
|
|
2
|
+
* @nebula.js/sn-pie-chart v1.27.13
|
|
3
3
|
* Copyright (c) 2024 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
@@ -11,7 +11,7 @@ System.register(["hammerjs","picasso.js","picasso-plugin-q","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
|
-
*/Ls();var $s=Date.now(),_s="fnValues"+$s,Fs="fnStyle"+ ++$s,Hs=function(){return{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=Da(e,{},n);return r[Fs]=t,r},onProcessStyle:function(e,t){if(_s in t||Fs 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[_s]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[Fs];i&&(o.style=i(e)||{});var a=o[_s];if(a)for(var s in a)o.prop(s,a[s](e),r)}}},Bs="@global",Us="@global ",Ws=function(){function e(e,t,n){for(var r in this.type="global",this.at=Bs,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new hs(Ii({},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}(),Vs=function(){function e(e,t,n){this.type="global",this.at=Bs,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(Us.length);this.rule=n.jss.createRule(r,t,Ii({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Gs=/\s*,\s*/g;function Ks(e,t){for(var n=e.split(Gs),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}function Ys(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===Bs)return new Ws(e,t,n);if("@"===e[0]&&e.substr(0,Us.length)===Us)return new Vs(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[Bs]:null;if(o){for(var i in o)t.addRule(i,o[i],Ii({},n,{selector:Ks(i,e.selector)}));delete r[Bs]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,Bs.length)===Bs){var i=Ks(o.substr(Bs.length),e.selector);t.addRule(i,r[o],Ii({},n,{selector:i})),delete r[o]}}(e,t))}}}var Xs=/\s*,\s*/g,Js=/&/g,Zs=/\$([\w-]+)/g;function Qs(){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(Xs),r=e.split(Xs),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(Js,a):a+" "+l}return o}function n(e,t,n){if(n)return Ii({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=Ii({},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(Zs,s);var h=l.key+"-"+u;"replaceRule"in c?c.replaceRule(h,r[u],Ii({},a,{selector:f})):c.addRule(h,r[u],Ii({},a,{selector:f}))}else p&&c.addRule(u,{},a).addRule(l.key,r[u],{selector:l.selector});delete r[u]}}return r}}}var el=/[A-Z]/g,tl=/^ms-/,nl={};function rl(e){return"-"+e.toLowerCase()}function ol(e){if(nl.hasOwnProperty(e))return nl[e];var t=e.replace(el,rl);return nl[e]=tl.test(t)?"-"+t:t}function il(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:ol(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(il):t.fallbacks=il(e.fallbacks)),t}var al=zs&&CSS?CSS.px:"px",sl=zs&&CSS?CSS.ms:"ms",ll=zs&&CSS?CSS.percent:"%";function cl(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 ul=cl({"animation-delay":sl,"animation-duration":sl,"background-position":al,"background-position-x":al,"background-position-y":al,"background-size":al,border:al,"border-bottom":al,"border-bottom-left-radius":al,"border-bottom-right-radius":al,"border-bottom-width":al,"border-left":al,"border-left-width":al,"border-radius":al,"border-right":al,"border-right-width":al,"border-top":al,"border-top-left-radius":al,"border-top-right-radius":al,"border-top-width":al,"border-width":al,"border-block":al,"border-block-end":al,"border-block-end-width":al,"border-block-start":al,"border-block-start-width":al,"border-block-width":al,"border-inline":al,"border-inline-end":al,"border-inline-end-width":al,"border-inline-start":al,"border-inline-start-width":al,"border-inline-width":al,"border-start-start-radius":al,"border-start-end-radius":al,"border-end-start-radius":al,"border-end-end-radius":al,margin:al,"margin-bottom":al,"margin-left":al,"margin-right":al,"margin-top":al,"margin-block":al,"margin-block-end":al,"margin-block-start":al,"margin-inline":al,"margin-inline-end":al,"margin-inline-start":al,padding:al,"padding-bottom":al,"padding-left":al,"padding-right":al,"padding-top":al,"padding-block":al,"padding-block-end":al,"padding-block-start":al,"padding-inline":al,"padding-inline-end":al,"padding-inline-start":al,"mask-position-x":al,"mask-position-y":al,"mask-size":al,height:al,width:al,"min-height":al,"max-height":al,"min-width":al,"max-width":al,bottom:al,left:al,top:al,right:al,inset:al,"inset-block":al,"inset-block-end":al,"inset-block-start":al,"inset-inline":al,"inset-inline-end":al,"inset-inline-start":al,"box-shadow":al,"text-shadow":al,"column-gap":al,"column-rule":al,"column-rule-width":al,"column-width":al,"font-size":al,"font-size-delta":al,"letter-spacing":al,"text-decoration-thickness":al,"text-indent":al,"text-stroke":al,"text-stroke-width":al,"word-spacing":al,motion:al,"motion-offset":al,outline:al,"outline-offset":al,"outline-width":al,perspective:al,"perspective-origin-x":ll,"perspective-origin-y":ll,"transform-origin":ll,"transform-origin-x":ll,"transform-origin-y":ll,"transform-origin-z":ll,"transition-delay":sl,"transition-duration":sl,"vertical-align":al,"flex-basis":al,"shape-margin":al,size:al,gap:al,grid:al,"grid-gap":al,"row-gap":al,"grid-row-gap":al,"grid-column-gap":al,"grid-template-rows":al,"grid-template-columns":al,"grid-auto-rows":al,"grid-auto-columns":al,"box-shadow-x":al,"box-shadow-y":al,"box-shadow-blur":al,"box-shadow-spread":al,"font-line-height":al,"text-shadow-x":al,"text-shadow-y":al,"text-shadow-blur":al});function dl(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=dl(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=dl(o,t[o],n);else for(var i in t)t[i]=dl(e+"-"+i,t[i],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||ul[e];return!a||0===t&&a===al?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function pl(e){void 0===e&&(e={});var t=cl(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=dl(r,e[r],t);return e},onChangeValue:function(e,n){return dl(n,e,t)}}}var fl="",hl="",ml="",gl="",yl=Sa&&"ontouchstart"in document.documentElement;if(Sa){var vl={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},bl=document.createElement("p").style;for(var xl in vl)if(xl+"Transform"in bl){fl=xl,hl=vl[xl];break}"Webkit"===fl&&"msHyphens"in bl&&(fl="ms",hl=vl.ms,gl="edge"),"Webkit"===fl&&"-apple-trailing-word"in bl&&(ml="apple")}var wl={js:fl,css:hl,vendor:ml,browser:gl,isTouch:yl};var Sl={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===wl.js?"-webkit-"+e:wl.css+e)}},Cl={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===wl.js?wl.css+"print-"+e:e)}},kl=/[-\s]+(.)?/g;function El(e,t){return t?t.toUpperCase():""}function Tl(e){return e.replace(kl,El)}function Rl(e){return Tl("-"+e)}var Ml,Pl={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===wl.js){var n="mask-image";if(Tl(n)in t)return e;if(wl.js+Rl(n)in t)return wl.css+e}return e}},Dl={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==wl.vendor||wl.isTouch?e:wl.css+e)}},Ol={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:wl.css+e)}},Il={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:wl.css+e)}},ql={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===wl.js||"ms"===wl.js&&"edge"!==wl.browser?wl.css+e:e)}},Al={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===wl.js||"ms"===wl.js||"apple"===wl.vendor?wl.css+e:e)}},Nl={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===wl.js?"WebkitColumn"+Rl(e)in t&&wl.css+"column-"+e:"Moz"===wl.js&&("page"+Rl(e)in t&&"page-"+e))}},Ll={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===wl.js)return e;var n=e.replace("-inline","");return wl.js+Rl(n)in t&&wl.css+n}},zl={supportedProperty:function(e,t){return Tl(e)in t&&e}},jl={supportedProperty:function(e,t){var n=Rl(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:wl.js+n in t?wl.css+e:"Webkit"!==wl.js&&"Webkit"+n in t&&"-webkit-"+e}},$l={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===wl.js?""+wl.css+e:e)}},_l={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===wl.js?wl.css+"scroll-chaining":e)}},Fl={"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"},Hl={supportedProperty:function(e,t){var n=Fl[e];return!!n&&(wl.js+Rl(n)in t&&wl.css+n)}},Bl={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"},Ul=Object.keys(Bl),Wl=function(e){return wl.css+e},Vl={supportedProperty:function(e,t,n){var r=n.multiple;if(Ul.indexOf(e)>-1){var o=Bl[e];if(!Array.isArray(o))return wl.js+Rl(o)in t&&wl.css+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(wl.js+Rl(o[0])in t))return!1;return o.map(Wl)}return!1}},Gl=[Sl,Cl,Pl,Dl,Ol,Il,ql,Al,Nl,Ll,zl,jl,$l,_l,Hl,Vl],Kl=Gl.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),Yl=Gl.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,la(t.noPrefill)),e}),[]),Xl={};if(Sa){Ml=document.createElement("p");var Jl=window.getComputedStyle(document.documentElement,"");for(var Zl in Jl)isNaN(Zl)||(Xl[Jl[Zl]]=Jl[Zl]);Yl.forEach((function(e){return delete Xl[e]}))}function Ql(e,t){if(void 0===t&&(t={}),!Ml)return e;if(null!=Xl[e])return Xl[e];"transition"!==e&&"transform"!==e||(t[e]=e in Ml.style);for(var n=0;n<Kl.length&&(Xl[e]=Kl[n](e,Ml.style,t),!Xl[e]);n++);try{Ml.style[e]=""}catch(e){return!1}return Xl[e]}var ec,tc={},nc={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},rc=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function oc(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?Ql(t):", "+Ql(n);return r||(t||n)}function ic(e,t){var n=t;if(!ec||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=tc[r])return tc[r];try{ec.style[e]=n}catch(e){return tc[r]=!1,!1}if(nc[e])n=n.replace(rc,oc);else if(""===ec.style[e]&&("-ms-flex"===(n=wl.css+n)&&(ec.style[e]="-ms-flexbox"),ec.style[e]=n,""===ec.style[e]))return tc[r]=!1,!1;return ec.style[e]="",tc[r]=n,tc[r]}function ac(){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=Ql(n);i&&i!==n&&(o=!0);var a=!1,s=ic(i,Ia(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"===wl.js?e:"@"+wl.css+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return ic(t,Ia(e))||e}}}function sc(){return{plugins:[Hs(),Ys(),Qs(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=il(e[t]);return e}return il(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=ol(t);return t===r?e:(n.prop(r,e),null)}},pl(),"undefined"==typeof window?null:ac(),(e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length},{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}})]};var e}function lc(){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=Ii({},t);return Object.keys(n).forEach((function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))})),r}Sa&&(ec=document.createElement("p"));var cc={set:function(e,t,n,r){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},get:function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},delete:function(e,t,n){e.get(t).delete(n)}},uc=cc,dc=g.createContext(null);function pc(){return g.useContext(dc)}var fc,hc=Ls(sc()),mc={disableGeneration:!1,generateClassName:ba(),jss:hc,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},gc=g.createContext(mc);function yc(e){var t=e.children,n=e.injectFirst,r=void 0!==n&&n,o=e.disableGeneration,i=void 0!==o&&o,a=Wi(e,["children","injectFirst","disableGeneration"]),s=Ii({},g.useContext(gc),{disableGeneration:i},a);if(!s.jss.options.insertionPoint&&r&&"undefined"!=typeof window){if(!fc){var l=document.head;fc=document.createComment("mui-inject-first"),l.insertBefore(fc,l.firstChild)}s.jss=Ls({plugins:sc().plugins,insertionPoint:fc})}return g.createElement(gc.Provider,{value:s},t)}var vc=-1e9;var bc={};function xc(e,t){var n=e.state,r=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=uc.get(o.sheetsManager,i,r);s||(s={refs:0,staticSheet:null,dynamicStyles:null},uc.set(o.sheetsManager,i,r,s));var l=Ii({},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=uc.get(o.sheetsCache,i,r));var d=i.create(r,a);u||((u=o.jss.createStyleSheet(d,Ii({link:!1},l))).attach(),o.sheetsCache&&uc.set(o.sheetsCache,i,r,u)),c&&c.add(u),s.staticSheet=u,s.dynamicStyles=js(d)}if(s.dynamicStyles){var p=o.jss.createStyleSheet(s.dynamicStyles,Ii({link:!0},l));p.update(t),p.attach(),n.dynamicSheet=p,n.classes=lc({baseClasses:s.staticSheet.classes,newClasses:p.classes}),c&&c.add(p)}else n.classes=s.staticSheet.classes;s.refs+=1}}function wc(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?bc:i,s=Wi(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=Ii({},o);return Object.keys(i).forEach((function(e){a[e]=Ni(a[e],i[e])})),a},options:{}}}(e),c=n||r||"makeStyles";l.options={index:vc+=1,name:n,meta:c,classNamePrefix:c};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=pc()||a,r=Ii({},g.useContext(gc),s),i=g.useRef(),c=g.useRef();!function(e,t){var n,r=g.useRef([]),o=g.useMemo((function(){return{}}),t);r.current!==o&&(r.current=o,n=e()),g.useEffect((function(){return function(){n&&n()}}),[o])}((function(){var o={name:n,state:{},stylesCreator:l,stylesOptions:r,theme:t};return xc(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=uc.get(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&(uc.delete(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]),g.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=lc({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(i.current,e.classes,o);return u}}function Sc(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=Sc(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Cc(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Sc(e))&&(r&&(r+=" "),r+=t);return r}var kc={exports:{}},Ec={},Tc="function"==typeof Symbol&&Symbol.for,Rc=Tc?Symbol.for("react.element"):60103,Mc=Tc?Symbol.for("react.portal"):60106,Pc=Tc?Symbol.for("react.fragment"):60107,Dc=Tc?Symbol.for("react.strict_mode"):60108,Oc=Tc?Symbol.for("react.profiler"):60114,Ic=Tc?Symbol.for("react.provider"):60109,qc=Tc?Symbol.for("react.context"):60110,Ac=Tc?Symbol.for("react.async_mode"):60111,Nc=Tc?Symbol.for("react.concurrent_mode"):60111,Lc=Tc?Symbol.for("react.forward_ref"):60112,zc=Tc?Symbol.for("react.suspense"):60113,jc=Tc?Symbol.for("react.suspense_list"):60120,$c=Tc?Symbol.for("react.memo"):60115,_c=Tc?Symbol.for("react.lazy"):60116,Fc=Tc?Symbol.for("react.block"):60121,Hc=Tc?Symbol.for("react.fundamental"):60117,Bc=Tc?Symbol.for("react.responder"):60118,Uc=Tc?Symbol.for("react.scope"):60119;function Wc(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Rc:switch(e=e.type){case Ac:case Nc:case Pc:case Oc:case Dc:case zc:return e;default:switch(e=e&&e.$$typeof){case qc:case Lc:case _c:case $c:case Ic:return e;default:return t}}case Mc:return t}}}function Vc(e){return Wc(e)===Nc}Ec.AsyncMode=Ac,Ec.ConcurrentMode=Nc,Ec.ContextConsumer=qc,Ec.ContextProvider=Ic,Ec.Element=Rc,Ec.ForwardRef=Lc,Ec.Fragment=Pc,Ec.Lazy=_c,Ec.Memo=$c,Ec.Portal=Mc,Ec.Profiler=Oc,Ec.StrictMode=Dc,Ec.Suspense=zc,Ec.isAsyncMode=function(e){return Vc(e)||Wc(e)===Ac},Ec.isConcurrentMode=Vc,Ec.isContextConsumer=function(e){return Wc(e)===qc},Ec.isContextProvider=function(e){return Wc(e)===Ic},Ec.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Rc},Ec.isForwardRef=function(e){return Wc(e)===Lc},Ec.isFragment=function(e){return Wc(e)===Pc},Ec.isLazy=function(e){return Wc(e)===_c},Ec.isMemo=function(e){return Wc(e)===$c},Ec.isPortal=function(e){return Wc(e)===Mc},Ec.isProfiler=function(e){return Wc(e)===Oc},Ec.isStrictMode=function(e){return Wc(e)===Dc},Ec.isSuspense=function(e){return Wc(e)===zc},Ec.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Pc||e===Nc||e===Oc||e===Dc||e===zc||e===jc||"object"==typeof e&&null!==e&&(e.$$typeof===_c||e.$$typeof===$c||e.$$typeof===Ic||e.$$typeof===qc||e.$$typeof===Lc||e.$$typeof===Hc||e.$$typeof===Bc||e.$$typeof===Uc||e.$$typeof===Fc)},Ec.typeOf=Wc,kc.exports=Ec;var Gc=kc.exports,Kc={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Yc={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Xc={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Jc={};function Zc(e){return Gc.isMemo(e)?Xc:Jc[e.$$typeof]||Kc}Jc[Gc.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Jc[Gc.Memo]=Xc;var Qc=Object.defineProperty,eu=Object.getOwnPropertyNames,tu=Object.getOwnPropertySymbols,nu=Object.getOwnPropertyDescriptor,ru=Object.getPrototypeOf,ou=Object.prototype;var iu=function e(t,n,r){if("string"!=typeof n){if(ou){var o=ru(n);o&&o!==ou&&e(t,o,r)}var i=eu(n);tu&&(i=i.concat(tu(n)));for(var a=Zc(t),s=Zc(n),l=0;l<i.length;++l){var c=i[l];if(!(Yc[c]||r&&r[c]||s&&s[c]||a&&a[c])){var u=nu(n,c);try{Qc(t,c,u)}catch(e){}}}}return t},au=X(iu);function su(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.name,i=Wi(r,["name"]),a=o,s="function"==typeof t?function(e){return{root:function(n){return t(Ii({theme:e},n))}}}:{root:t},l=wc(s,Ii({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=g.forwardRef((function(t,r){var o,i,a,s=t.children,c=t.className,u=t.clone,d=t.component,p=Wi(t,["children","className","clone","component"]),f=Cc(l(t).root,c),h=p;if(n&&(o=h,i=n,a={},Object.keys(o).forEach((function(e){-1===i.indexOf(e)&&(a[e]=o[e])})),h=a),u)return g.cloneElement(s,Ii({className:Cc(s.props.className,f)},h));if("function"==typeof s)return s(Ii({className:f},h));var m=d||e;return g.createElement(m,Ii({ref:r,className:f},h),s)}));return au(c,e),c}}function lu(e){var t=e.children,n=e.theme,r=pc(),o=g.useMemo((function(){var e=null===r?n:function(e,t){return"function"==typeof t?t(e):Ii({},e,t)}(r,n);return null!=e&&(e[ya]=null!==r),e}),[n,r]);return g.createElement(dc.Provider,{value:o},t)}var cu=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=Wi(t,["defaultTheme","withTheme","name"]),l=a,c=wc(e,Ii({defaultTheme:r,Component:n,name:a||n.displayName,classNamePrefix:l},s)),u=g.forwardRef((function(e,t){e.classes;var o,s=e.innerRef,l=Wi(e,["classes","innerRef"]),u=c(Ii({},n.defaultProps,e)),d=l;return("string"==typeof a||i)&&(o=pc()||r,a&&(d=xa({theme:o,name:a,props:l})),i&&!d.theme&&(d.theme=o)),g.createElement(n,Ii({ref:s||t,classes:u},d))}));return au(u,n),u}},uu=ga(),du=function(e){var t=su(e);return function(e,n){return t(e,Ii({defaultTheme:uu},n))}};function pu(e,t){return cu(e,Ii({defaultTheme:uu},t))}function fu(e){if("string"!=typeof e)throw new Error(ji(7));return e.charAt(0).toUpperCase()+e.slice(1)}function hu(){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 mu(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=mu(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function gu(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=mu(e))&&(r&&(r+=" "),r+=t);return r}function yu(e){return e&&e.ownerDocument||document}function vu(e){return yu(e).defaultView||window}function bu(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var xu="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;function wu(e){var t=y.useRef(e);return xu((function(){t.current=e})),y.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}function Su(e,t){return y.useMemo((function(){return null==e&&null==t?null:function(n){bu(e,n),bu(t,n)}}),[e,t])}var Cu=!0,ku=!1,Eu=null,Tu={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 Ru(e){e.metaKey||e.altKey||e.ctrlKey||(Cu=!0)}function Mu(){Cu=!1}function Pu(){"hidden"===this.visibilityState&&ku&&(Cu=!0)}function Du(e){var t=e.target;try{return t.matches(":focus-visible")}catch(e){}return Cu||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!Tu[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Ou(){ku=!0,window.clearTimeout(Eu),Eu=window.setTimeout((function(){ku=!1}),100)}function Iu(){var e=y.useCallback((function(e){var t,n=C.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",Ru,!0),t.addEventListener("mousedown",Mu,!0),t.addEventListener("pointerdown",Mu,!0),t.addEventListener("touchstart",Mu,!0),t.addEventListener("visibilitychange",Pu,!0))}),[]);return{isFocusVisible:Du,onBlurVisible:Ou,ref:e}}var qu=!1,Au=g.createContext(null),Nu="unmounted",Lu="exited",zu="entering",ju="entered",$u="exiting",_u=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=Lu,r.appearStatus=zu):o=ju:o=t.unmountOnExit||t.mountOnEnter?Nu:Lu,r.state={status:o},r.nextCallback=null,r}Ta(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Nu?{status:Lu}: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!==zu&&n!==ju&&(t=zu):n!==zu&&n!==ju||(t=$u)}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===zu){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:k.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Lu&&this.setState({status:Nu})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[k.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||qu?this.safeSetState({status:ju},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:zu},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:ju},(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:k.findDOMNode(this);t&&!qu?(this.props.onExit(r),this.safeSetState({status:$u},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Lu},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Lu},(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:k.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===Nu)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=Ui(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return g.createElement(Au.Provider,{value:null},"function"==typeof n?n(e,r):g.cloneElement(g.Children.only(n),r))},t}(g.Component);function Fu(){}_u.contextType=Au,_u.propTypes={},_u.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Fu,onEntering:Fu,onEntered:Fu,onExit:Fu,onExiting:Fu,onExited:Fu},_u.UNMOUNTED=Nu,_u.EXITED=Lu,_u.ENTERING=zu,_u.ENTERED=ju,_u.EXITING=$u;var Hu=_u;function Bu(e,t){var n=Object.create(null);return e&&v.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&b(e)?t(e):e}(e)})),n}function Uu(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Wu(e,t,n){var r=Bu(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(b(a)){var s=i in t,l=i in r,c=t[i],u=b(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&b(c)&&(o[i]=x(a,{onExited:n.bind(null,a),in:c.props.in,exit:Uu(a,"exit",e),enter:Uu(a,"enter",e)})):o[i]=x(a,{in:!1}):o[i]=x(a,{onExited:n.bind(null,a),in:!0,exit:Uu(a,"exit",e),enter:Uu(a,"enter",e)})}})),o}var Vu=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Gu=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(Ra(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Ta(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,Bu(n.children,(function(e){return x(e,{onExited:r.bind(null,e),in:!0,appear:Uu(e,"appear",n),enter:Uu(e,"enter",n),exit:Uu(e,"exit",n)})}))):Wu(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=Bu(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Ii({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Ui(e,["component","childFactory"]),o=this.state.contextValue,i=Vu(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?g.createElement(Au.Provider,{value:o},i):g.createElement(Au.Provider,{value:o},g.createElement(t,r,i))},t}(g.Component);Gu.propTypes={},Gu.defaultProps={component:"div",childFactory:function(e){return e}};var Ku=Gu;function Yu(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 Xu=y.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=Wi(e,["classes","className","component","square","elevation","variant"]);return y.createElement(i,Ii({className:gu(n.root,r,"outlined"===d?n.outlined:n["elevation".concat(c)],!s&&n.rounded),ref:t},p))})),Ju=pu((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),Ii({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"})(Xu),Zu="undefined"==typeof window?y.useEffect:y.useLayoutEffect;function Qu(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=y.useState(!1),p=d[0],f=d[1],h=gu(t.ripple,t.rippleVisible,r&&t.ripplePulsate),m={width:a,height:a,top:-a/2+i,left:-a/2+o},g=gu(t.child,p&&t.childLeaving,r&&t.childPulsate),v=wu(c);return Zu((function(){if(!s){f(!0);var e=setTimeout(v,u);return function(){clearTimeout(e)}}}),[v,s,u]),y.createElement("span",{className:h,style:m},y.createElement("span",{className:g}))}var ed=y.forwardRef((function(e,t){var n=e.center,r=void 0!==n&&n,o=e.classes,i=e.className,a=Wi(e,["center","classes","className"]),s=y.useState([]),l=s[0],c=s[1],u=y.useRef(0),d=y.useRef(null);y.useEffect((function(){d.current&&(d.current(),d.current=null)}),[l]);var p=y.useRef(!1),f=y.useRef(null),h=y.useRef(null),m=y.useRef(null);y.useEffect((function(){return function(){clearTimeout(f.current)}}),[]);var g=y.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,i=e.rippleSize,a=e.cb;c((function(e){return[].concat(la(e),[y.createElement(Qu,{key:u.current,classes:o,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i})])})),u.current+=1,d.current=a}),[o]),v=y.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:m.current,b=v?v.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(b.width/2),d=Math.round(b.height/2);else{var x=e.touches?e.touches[0]:e,w=x.clientX,S=x.clientY;u=Math.round(w-b.left),d=Math.round(S-b.top)}if(s)(y=Math.sqrt((2*Math.pow(b.width,2)+Math.pow(b.height,2))/3))%2==0&&(y+=1);else{var C=2*Math.max(Math.abs((v?v.clientWidth:0)-u),u)+2,k=2*Math.max(Math.abs((v?v.clientHeight:0)-d),d)+2;y=Math.sqrt(Math.pow(C,2)+Math.pow(k,2))}e.touches?null===h.current&&(h.current=function(){g({pulsate:i,rippleX:u,rippleY:d,rippleSize:y,cb:n})},f.current=setTimeout((function(){h.current&&(h.current(),h.current=null)}),80)):g({pulsate:i,rippleX:u,rippleY:d,rippleSize:y,cb:n})}}),[r,g]),b=y.useCallback((function(){v({},{pulsate:!0})}),[v]),x=y.useCallback((function(e,t){if(clearTimeout(f.current),"touchend"===e.type&&h.current)return e.persist(),h.current(),h.current=null,void(f.current=setTimeout((function(){x(e,t)})));h.current=null,c((function(e){return e.length>0?e.slice(1):e})),d.current=t}),[]);return y.useImperativeHandle(t,(function(){return{pulsate:b,start:v,stop:x}}),[b,v,x]),y.createElement("span",Ii({className:gu(o.root,i),ref:m},a),y.createElement(Ku,{component:null,exit:!0},l))})),td=pu((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"})(y.memo(ed)),nd=y.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,h=void 0!==f&&f,m=e.disableTouchRipple,g=void 0!==m&&m,v=e.focusRipple,b=void 0!==v&&v,x=e.focusVisibleClassName,w=e.onBlur,S=e.onClick,k=e.onFocus,E=e.onFocusVisible,T=e.onKeyDown,R=e.onKeyUp,M=e.onMouseDown,P=e.onMouseLeave,D=e.onMouseUp,O=e.onTouchEnd,I=e.onTouchMove,q=e.onTouchStart,A=e.onDragLeave,N=e.tabIndex,L=void 0===N?0:N,z=e.TouchRippleProps,j=e.type,$=void 0===j?"button":j,_=Wi(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),F=y.useRef(null);var H=y.useRef(null),B=y.useState(!1),U=B[0],W=B[1];p&&U&&W(!1);var V=Iu(),G=V.isFocusVisible,K=V.onBlurVisible,Y=V.ref;function X(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g;return wu((function(r){return t&&t(r),!n&&H.current&&H.current[e](r),!0}))}y.useImperativeHandle(n,(function(){return{focusVisible:function(){W(!0),F.current.focus()}}}),[]),y.useEffect((function(){U&&b&&!h&&H.current.pulsate()}),[h,b,U]);var J=X("start",M),Z=X("stop",A),Q=X("stop",D),ee=X("stop",(function(e){U&&e.preventDefault(),P&&P(e)})),te=X("start",q),ne=X("stop",O),re=X("stop",I),oe=X("stop",(function(e){U&&(K(e),W(!1)),w&&w(e)}),!1),ie=wu((function(e){F.current||(F.current=e.currentTarget),G(e)&&(W(!0),E&&E(e)),k&&k(e)})),ae=function(){var e=C.findDOMNode(F.current);return u&&"button"!==u&&!("A"===e.tagName&&e.href)},se=y.useRef(!1),le=wu((function(e){b&&!se.current&&U&&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(),T&&T(e),e.target===e.currentTarget&&ae()&&"Enter"===e.key&&!p&&(e.preventDefault(),S&&S(e))})),ce=wu((function(e){b&&" "===e.key&&H.current&&U&&!e.defaultPrevented&&(se.current=!1,e.persist(),H.current.stop(e,(function(){H.current.pulsate(e)}))),R&&R(e),S&&e.target===e.currentTarget&&ae()&&" "===e.key&&!e.defaultPrevented&&S(e)})),ue=u;"button"===ue&&_.href&&(ue="a");var de={};"button"===ue?(de.type=$,de.disabled=p):("a"===ue&&_.href||(de.role="button"),de["aria-disabled"]=p);var pe=Su(r,t),fe=Su(Y,F),he=Su(pe,fe),me=y.useState(!1),ge=me[0],ye=me[1];y.useEffect((function(){ye(!0)}),[]);var ve=ge&&!h&&!p;return y.createElement(ue,Ii({className:gu(s.root,l,U&&[s.focusVisible,x],p&&s.disabled),onBlur:oe,onClick:S,onFocus:ie,onKeyDown:le,onKeyUp:ce,onMouseDown:J,onMouseLeave:ee,onMouseUp:Q,onDragLeave:Z,onTouchEnd:ne,onTouchMove:re,onTouchStart:te,ref:he,tabIndex:p?-1:L},de,_),a,ve?y.createElement(td,Ii({ref:H,center:i},z)):null)})),rd=pu({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"})(nd),od={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},id=y.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,h=void 0!==f&&f,m=e.paragraph,g=void 0!==m&&m,v=e.variant,b=void 0===v?"body1":v,x=e.variantMapping,w=void 0===x?od:x,S=Wi(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),C=l||(g?"p":w[b]||od[b])||"span";return y.createElement(C,Ii({className:gu(o.root,i,"inherit"!==b&&o[b],"initial"!==s&&o["color".concat(fu(s))],h&&o.noWrap,p&&o.gutterBottom,g&&o.paragraph,"inherit"!==r&&o["align".concat(fu(r))],"initial"!==u&&o["display".concat(fu(u))]),ref:t},S))})),ad=pu((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"})(id),sd=y.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,h=void 0!==f&&f,m=e.endIcon,g=e.focusVisibleClassName,v=e.fullWidth,b=void 0!==v&&v,x=e.size,w=void 0===x?"medium":x,S=e.startIcon,C=e.type,k=void 0===C?"button":C,E=e.variant,T=void 0===E?"text":E,R=Wi(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),M=S&&y.createElement("span",{className:gu(r.startIcon,r["iconSize".concat(fu(w))])},S),P=m&&y.createElement("span",{className:gu(r.endIcon,r["iconSize".concat(fu(w))])},m);return y.createElement(rd,Ii({className:gu(r.root,r[T],o,"inherit"===a?r.colorInherit:"default"!==a&&r["".concat(T).concat(fu(a))],"medium"!==w&&[r["".concat(T,"Size").concat(fu(w))],r["size".concat(fu(w))]],p&&r.disableElevation,u&&r.disabled,b&&r.fullWidth),component:l,disabled:u,focusRipple:!h,focusVisibleClassName:gu(r.focusVisible,g),ref:t,type:k},R),y.createElement("span",{className:r.label},M,n,P))})),ld=pu((function(e){return{root:Ii({},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:Bi(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:Bi(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Bi(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(Bi(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:Bi(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(Bi(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:Bi(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"})(sd);var cd="undefined"!=typeof window?y.useLayoutEffect:y.useEffect,ud=y.forwardRef((function(e,t){var n=e.children,r=e.container,o=e.disablePortal,i=void 0!==o&&o,a=e.onRendered,s=y.useState(null),l=s[0],c=s[1],u=Su(y.isValidElement(n)?n.ref:null,t);return cd((function(){i||c(function(e){return e="function"==typeof e?e():e,C.findDOMNode(e)}(r)||document.body)}),[r,i]),cd((function(){if(l&&!i)return bu(t,l),function(){bu(t,null)}}),[t,l,i]),cd((function(){a&&(l||i)&&a()}),[a,l,i]),i?y.isValidElement(n)?y.cloneElement(n,{ref:u}):n:l?C.createPortal(n,l):l})),dd=ud;function pd(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function fd(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function hd(e,t,n){var r=arguments.length>4?arguments[4]:void 0,o=[t,n].concat(la(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)&&pd(e,r)}))}function md(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function gd(e,t){var n,r=[],o=[],i=e.container;if(!t.disableScrollLock){if(function(e){var t=yu(e);return t.body===e?vu(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(fd(i)+a,"px"),n=yu(i).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){o.push(e.style.paddingRight),e.style.paddingRight="".concat(fd(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 yd=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 ka(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&&pd(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);hd(t,e.mountNode,e.modalRef,r,!0);var o=md(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=md(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=gd(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=md(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&&pd(e.modalRef,!0),hd(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&&pd(o.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();function vd(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=y.useRef(),p=y.useRef(null),f=y.useRef(null),h=y.useRef(),m=y.useRef(null),g=y.useCallback((function(e){m.current=C.findDOMNode(e)}),[]),v=Su(t.ref,g),b=y.useRef();return y.useEffect((function(){b.current=u}),[u]),!b.current&&u&&"undefined"!=typeof window&&(h.current=l().activeElement),y.useEffect((function(){if(u){var e=yu(m.current);r||!m.current||m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex",-1),m.current.focus());var t=function(){null!==m.current&&(e.hasFocus()&&!i&&c()&&!d.current?m.current&&!m.current.contains(e.activeElement)&&m.current.focus():d.current=!1)},n=function(t){!i&&c()&&9===t.keyCode&&e.activeElement===m.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||(h.current&&h.current.focus&&h.current.focus(),h.current=null)}}}),[r,i,s,c,u]),y.createElement(y.Fragment,null,y.createElement("div",{tabIndex:0,ref:p,"data-test":"sentinelStart"}),y.cloneElement(t,{ref:v}),y.createElement("div",{tabIndex:0,ref:f,"data-test":"sentinelEnd"}))}var bd={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"}},xd=y.forwardRef((function(e,t){var n=e.invisible,r=void 0!==n&&n,o=e.open,i=Wi(e,["invisible","open"]);return o?y.createElement("div",Ii({"aria-hidden":!0,ref:t},i,{style:Ii({},bd.root,r?bd.invisible:{},i.style)})):null}));var wd=new yd,Sd=y.forwardRef((function(e,t){var n=pc(),r=xa({name:"MuiModal",props:Ii({},e),theme:n}),o=r.BackdropComponent,i=void 0===o?xd: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,h=void 0!==f&&f,m=r.disableEnforceFocus,g=void 0!==m&&m,v=r.disableEscapeKeyDown,b=void 0!==v&&v,x=r.disablePortal,w=void 0!==x&&x,S=r.disableRestoreFocus,k=void 0!==S&&S,E=r.disableScrollLock,T=void 0!==E&&E,R=r.hideBackdrop,M=void 0!==R&&R,P=r.keepMounted,D=void 0!==P&&P,O=r.manager,I=void 0===O?wd:O,q=r.onBackdropClick,A=r.onClose,N=r.onEscapeKeyDown,L=r.onRendered,z=r.open,j=Wi(r,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),$=y.useState(!0),_=$[0],F=$[1],H=y.useRef({}),B=y.useRef(null),U=y.useRef(null),W=Su(U,t),V=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),G=function(){return yu(B.current)},K=function(){return H.current.modalRef=U.current,H.current.mountNode=B.current,H.current},Y=function(){I.mount(K(),{disableScrollLock:T}),U.current.scrollTop=0},X=wu((function(){var e=function(e){return e="function"==typeof e?e():e,C.findDOMNode(e)}(u)||G().body;I.add(K(),e),U.current&&Y()})),J=y.useCallback((function(){return I.isTopModal(K())}),[I]),Z=wu((function(e){B.current=e,e&&(L&&L(),z&&J()?Y():pd(U.current,!0))})),Q=y.useCallback((function(){I.remove(K())}),[I]);if(y.useEffect((function(){return function(){Q()}}),[Q]),y.useEffect((function(){z?X():V&&c||Q()}),[z,Q,V,c,X]),!D&&!z&&(!V||_))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:ma}),te={};return void 0===s.props.tabIndex&&(te.tabIndex=s.props.tabIndex||"-1"),V&&(te.onEnter=hu((function(){F(!1)}),s.props.onEnter),te.onExited=hu((function(){F(!0),c&&Q()}),s.props.onExited)),y.createElement(dd,{ref:Z,container:u,disablePortal:w},y.createElement("div",Ii({ref:W,onKeyDown:function(e){"Escape"===e.key&&J()&&(N&&N(e),b||(e.stopPropagation(),A&&A(e,"escapeKeyDown")))},role:"presentation"},j,{style:Ii({},ee.root,!z&&_?ee.hidden:{},j.style)}),M?null:y.createElement(i,Ii({open:z,onClick:function(e){e.target===e.currentTarget&&(q&&q(e),!h&&A&&A(e,"backdropClick"))}},a)),y.createElement(vd,{disableEnforceFocus:g,disableAutoFocus:p,disableRestoreFocus:k,getDoc:G,isEnabled:J,open:z},y.cloneElement(s,te))))})),Cd=Sd,kd=y.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,h=e.role,m=void 0===h?"hr"!==s?"separator":void 0:h,g=e.variant,v=void 0===g?"fullWidth":g,b=Wi(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return y.createElement(s,Ii({className:gu(o.root,i,"fullWidth"!==v&&o[v],r&&o.absolute,c&&o.flexItem,d&&o.light,"vertical"===f&&o.vertical),role:m,ref:t},b))})),Ed=pu((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:Bi(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"})(kd);function Td(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var Rd={entering:{opacity:1,transform:Td(1)},entered:{opacity:1,transform:"none"}},Md=y.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,h=void 0===f?"auto":f,m=e.TransitionComponent,g=void 0===m?Hu:m,v=Wi(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),b=y.useRef(),x=y.useRef(),w=pc()||uu,S=w.unstable_strictMode&&!o,C=y.useRef(null),k=Su(n.ref,t),E=Su(S?C:void 0,k),T=function(e){return function(t,n){if(e){var r=ca(S?[C.current,t]:[t,n],2),o=r[0],i=r[1];void 0===i?e(o):e(o,i)}}},R=T(l),M=T((function(e,t){!function(e){e.scrollTop}(e);var n,r=Yu({style:p,timeout:h},{mode:"enter"}),o=r.duration,i=r.delay;"auto"===h?(n=w.transitions.getAutoHeightDuration(e.clientHeight),x.current=n):n=o,e.style.transition=[w.transitions.create("opacity",{duration:n,delay:i}),w.transitions.create("transform",{duration:.666*n,delay:i})].join(","),a&&a(e,t)})),P=T(s),D=T(d),O=T((function(e){var t,n=Yu({style:p,timeout:h},{mode:"exit"}),r=n.duration,o=n.delay;"auto"===h?(t=w.transitions.getAutoHeightDuration(e.clientHeight),x.current=t):t=r,e.style.transition=[w.transitions.create("opacity",{duration:t,delay:o}),w.transitions.create("transform",{duration:.666*t,delay:o||.333*t})].join(","),e.style.opacity="0",e.style.transform=Td(.75),c&&c(e)})),I=T(u);return y.useEffect((function(){return function(){clearTimeout(b.current)}}),[]),y.createElement(g,Ii({appear:!0,in:i,nodeRef:S?C:void 0,onEnter:M,onEntered:P,onEntering:R,onExit:O,onExited:I,onExiting:D,addEndListener:function(e,t){var n=S?e:t;"auto"===h&&(b.current=setTimeout(n,x.current||0))},timeout:"auto"===h?null:h},v),(function(e,t){return y.cloneElement(n,Ii({style:Ii({opacity:0,transform:Td(.75),visibility:"exited"!==e||i?void 0:"hidden"},Rd[e],p,n.props.style),ref:E},t))}))}));Md.muiSupportAuto=!0;var Pd=Md,Dd=y.createContext({}),Od=y.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=Wi(e,["children","classes","className","component","dense","disablePadding","subheader"]),f=y.useMemo((function(){return{dense:l}}),[l]);return y.createElement(Dd.Provider,{value:f},y.createElement(a,Ii({className:gu(r.root,o,l&&r.dense,!u&&r.padding,d&&r.subheader),ref:t},p),d,n))})),Id=pu({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(Od),qd="undefined"==typeof window?y.useEffect:y.useLayoutEffect,Ad=y.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,h=e.ContainerProps,m=(h=void 0===h?{}:h).className,g=Wi(h,["className"]),v=e.dense,b=void 0!==v&&v,x=e.disabled,w=void 0!==x&&x,S=e.disableGutters,k=void 0!==S&&S,E=e.divider,T=void 0!==E&&E,R=e.focusVisibleClassName,M=e.selected,P=void 0!==M&&M,D=Wi(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),O=y.useContext(Dd),I={dense:b||O.dense||!1,alignItems:r},q=y.useRef(null);qd((function(){i&&q.current&&q.current.focus()}),[i]);var A,N,L=y.Children.toArray(l),z=L.length&&(A=L[L.length-1],N=["ListItemSecondaryAction"],y.isValidElement(A)&&-1!==N.indexOf(A.type.muiName)),j=Su(y.useCallback((function(e){q.current=C.findDOMNode(e)}),[]),t),$=Ii({className:gu(c.root,u,I.dense&&c.dense,!k&&c.gutters,T&&c.divider,w&&c.disabled,s&&c.button,"center"!==r&&c.alignItemsFlexStart,z&&c.secondaryAction,P&&c.selected),disabled:w},D),_=d||"li";return s&&($.component=d||"div",$.focusVisibleClassName=gu(c.focusVisible,R),_=rd),z?(_=$.component||d?_:"div","li"===f&&("li"===_?_="div":"li"===$.component&&($.component="div")),y.createElement(Dd.Provider,{value:I},y.createElement(f,Ii({className:gu(c.container,m),ref:j},g),y.createElement(_,$,L),L.pop()))):y.createElement(Dd.Provider,{value:I},y.createElement(_,Ii({ref:j},$),L))})),Nd=pu((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"})(Ad),Ld=y.forwardRef((function(e,t){var n=e.classes,r=e.className,o=Wi(e,["classes","className"]),i=y.useContext(Dd);return y.createElement("div",Ii({className:gu(n.root,r,"flex-start"===i.alignItems&&n.alignItemsFlexStart),ref:t},o))})),zd=pu((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(Ld),jd=y.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=Wi(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),h=y.useContext(Dd).dense,m=null!=c?c:n;null==m||m.type===ad||a||(m=y.createElement(ad,Ii({variant:h?"body2":"body1",className:r.primary,component:"span",display:"block"},u),m));var g=d;return null==g||g.type===ad||a||(g=y.createElement(ad,Ii({variant:"body2",className:r.secondary,color:"textSecondary",display:"block"},p),g)),y.createElement("div",Ii({className:gu(r.root,o,h&&r.dense,l&&r.inset,m&&g&&r.multiline),ref:t},f),m,g)})),$d=pu({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(jd);function _d(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Fd(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Hd(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function Bd(e){return"function"==typeof e?e():e}var Ud=y.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,h=void 0===f?8:f,m=e.getContentAnchorEl,g=e.marginThreshold,v=void 0===g?16:g,b=e.onEnter,x=e.onEntered,w=e.onEntering,S=e.onExit,k=e.onExited,E=e.onExiting,T=e.open,R=e.PaperProps,M=void 0===R?{}:R,P=e.transformOrigin,D=void 0===P?{vertical:"top",horizontal:"left"}:P,O=e.TransitionComponent,I=void 0===O?Pd:O,q=e.transitionDuration,A=void 0===q?"auto":q,N=e.TransitionProps,L=void 0===N?{}:N,z=Wi(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=y.useRef(),$=y.useCallback((function(e){if("anchorPosition"===l)return a;var t=Bd(r),n=(t&&1===t.nodeType?t:yu(j.current).body).getBoundingClientRect(),o=0===e?i.vertical:"center";return{top:n.top+_d(n,o),left:n.left+Fd(n,i.horizontal)}}),[r,i.horizontal,i.vertical,a,l]),_=y.useCallback((function(e){var t=0;if(m&&"anchorEl"===l){var n=m(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}}return t}),[i.vertical,l,m]),F=y.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:_d(e,D.vertical)+t,horizontal:Fd(e,D.horizontal)}}),[D.horizontal,D.vertical]),H=y.useCallback((function(e){var t=_(e),n={width:e.offsetWidth,height:e.offsetHeight},o=F(n,t);if("none"===l)return{top:null,left:null,transformOrigin:Hd(o)};var i=$(t),a=i.top-o.vertical,s=i.left-o.horizontal,c=a+n.height,u=s+n.width,d=vu(Bd(r)),p=d.innerHeight-v,f=d.innerWidth-v;if(a<v){var h=a-v;a-=h,o.vertical+=h}else if(c>p){var m=c-p;a-=m,o.vertical+=m}if(s<v){var g=s-v;s-=g,o.horizontal+=g}else if(u>f){var y=u-f;s-=y,o.horizontal+=y}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:Hd(o)}}),[r,l,$,_,F,v]),B=y.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]),U=y.useCallback((function(e){j.current=C.findDOMNode(e)}),[]);y.useEffect((function(){T&&B()})),y.useImperativeHandle(n,(function(){return T?{updatePosition:function(){B()}}:null}),[T,B]),y.useEffect((function(){if(T){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(){B()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[T,B]);var W=A;"auto"!==A||I.muiSupportAuto||(W=void 0);var V=p||(r?yu(Bd(r)).body:void 0);return y.createElement(Cd,Ii({container:V,open:T,ref:t,BackdropProps:{invisible:!0},className:gu(u.root,d)},z),y.createElement(I,Ii({appear:!0,in:T,onEnter:b,onEntered:x,onExit:S,onExited:k,onExiting:E,timeout:W},L,{onEntering:hu((function(e,t){w&&w(e,t),B()}),L.onEntering)}),y.createElement(Ju,Ii({elevation:h,ref:U},M,{className:gu(u.paper,M.className)}),c)))})),Wd=pu({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(Ud);function Vd(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function Gd({d:e,size:t,style:n={},viewBox:r="0 0 16 16"}){const o={fontSize:Vd(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",...n};return g.createElement("i",{style:o},g.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},g.createElement("path",{d:e})))}const Kd={menuItem:"alternative-menu-item"},Yd=e=>{const{nested:t,className:n,...r}=e,o=(({nested:e,dir:t})=>wc((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 g.createElement(Nd,bi({className:`${o.root} ${n}`},r))},Xd=e=>{if("Tab"===e.key){const t=document.querySelectorAll(`.${Kd.menuItem}`);let n;e.shiftKey?null!=t&&t.length&&t[0]===e.target&&(n=t[t.length-1]):null!=t&&t.length&&t[t.length-1]===e.target&&([n]=t),n&&setTimeout((()=>{n.focus()}),50)}};function Jd({title:e,selected:t,onClick:n,nested:r,icon:o,bold:i,dir:a}){const s=ve.detectTextDirection(e);return g.createElement(Yd,{nested:r,role:"menuitem",button:!0,onClick:n,className:Kd.menuItem,onKeyDown:Xd,dir:a,autoFocus:t},g.createElement($d,{primary:e,primaryTypographyProps:{dir:s,...i&&{style:{fontWeight:600}}}}),g.createElement(zd,{style:{minWidth:16}},g.createElement(Gd,{d:t?ri.d:""})),o&&g.createElement(zd,{style:{minWidth:16}},g.createElement(Gd,{d:o.d})))}Jd.propTypes={title:Ci.string.isRequired,selected:Ci.bool,onClick:Ci.func.isRequired,nested:Ci.bool,icon:Ci.shape({d:Ci.string.isRequired}),bold:Ci.bool,dir:Ci.string.isRequired},Jd.defaultProps={selected:!1,nested:!1,icon:void 0,bold:!1},Yd.propTypes={nested:Ci.bool,className:Ci.string},Yd.defaultProps={nested:!1,className:Kd.menuItem};const Zd={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 Qd({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 g.createElement(g.Fragment,{key:t.id},g.createElement(Jd,{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&&g.createElement(Id,{dense:!0,dir:r,component:"div",disablePadding:!0},t.children.map((e=>g.createElement(Jd,{key:e.id,nested:!0,title:e.title,selected:e.selected,onClick:()=>{e.onSelect(),a(t.id)},dir:r})))),o<i.length-1&&g.createElement(Ed,{key:`divider-${t.id}`}))}));return g.createElement(Wd,bi({anchorEl:t,open:s,onClose:a},Zd[o],{PaperProps:{style:{minWidth:"250px",maxHeight:"300px"}}}),g.createElement(Id,{dense:!0,disablePadding:!0,dir:r,"aria-label":l,component:"nav"},c))}Qd.propTypes={chartId:Ci.string.isRequired,alignTo:Ci.any,currentId:Ci.string.isRequired,dir:Ci.string.isRequired,dock:Ci.string.isRequired,list:Ci.array,onClose:Ci.func.isRequired,show:Ci.bool.isRequired,instruction:Ci.string.isRequired},Qd.defaultProps={list:[],alignTo:null};const ep="title-button",tp="active-title-button",np=du((({children:e,...t})=>g.createElement(ld,bi({size:"small",disableRipple:!0,disableTouchRipple:!0},t),e)))((()=>({"&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"}}))),rp=du(ld)((()=>({borderRadius:"4px",width:"24px",height:"24px",minWidth:"22px",padding:0})));class op extends g.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=g.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(`.${ep}`);t&&t.classList.add(tp)}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(`.${ep}[data-id="${e}"]`);t&&t.focus()}),1e3);else{const e=document.querySelector(`.${tp}`);e&&(e.classList.remove(tp),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,h=t.breadcrumbs.map(((e,n)=>g.createElement(np,{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},g.createElement("span",{style:d},e),g.createElement(Gd,bi({},ii,{size:"small",style:{margin:"0 8px"}}))))),m=c||u?this.state.hasPopoverOptions:l,y=n&&!this.state.open?this.openPopover:this.closePopover,v=!n||o||this.state.inSelection,b={display:"flex",alignItems:"center",width:"100%",color:v&&"rgba(89, 89, 89, 0.8)",height:"100%",border:!i&&v&&"none",...a?{padding:a}:{paddingTop:0,paddingBottom:0},...s&&{minWidth:s}};this.state.open&&(b.background="rgba(0,0,0,0.08)");const x=()=>{this.setState({disableCyclicButton:!0})},w=ve.detectTextDirection(t.text),S=g.createElement(np,{"aria-label":r.get(`Accessibility.${n&&m?"Alternative":"Normal"}.Instructions`,[t.text]),style:b,onClick:v?void 0:y,title:t.text,tabIndex:v?-1:0,onFocus:v?void 0:e=>{e.currentTarget.style.boxShadow="0px 0px 0px 2px #177FE6 inset",e.currentTarget.style.borderRadius="2px"},onBlur:v?void 0:e=>{e.currentTarget.style.boxShadow="none",e.currentTarget.style.borderRadius="0px"},onMouseDown:e=>{e.preventDefault()},className:`${ep} ${t.id}`,"data-id":`${e}-${t.id}`},t.locked&&g.createElement(Gd,bi({},ni,{size:"small",title:r.get("Tooltip.selections.locked")})),g.createElement("span",{style:d,dir:w},t.text),n&&m&&g.createElement(Gd,bi({},oi,{size:"small",style:{margin:"0 8px"}})));return g.createElement(g.Fragment,null,t.icon&&t.icon.onClick&&g.createElement(rp,{variant:"outlined",disabled:this.state.disableCyclicButton||this.state.inSelection,onClick:o?void 0:()=>t.icon.onClick({onError:x})},g.createElement(Gd,bi({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip)}))),t.icon&&!t.icon.onClick&&g.createElement(Gd,bi({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip),style:{margin:"0 4px 0 0"}})),h,g.createElement("div",{ref:this.alignToRef,style:{overflow:"hidden",pointerEvents:m?"auto":"none",height:"100%"}},S),n&&m&&g.createElement(Qd,{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 ip(e){return{top:"bottom",bottom:"top",left:"right",right:"left"}[e]}function ap(e){function t(e){return!e.isDimension&&fe.getValue(e,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.length")>0}return{renderer:"react",disableTriggers:!0,preferredSize:function(){const{height:n}=e.measureText({text:"M",fontSize:this.style.fontSize,fontFamily:this.style.fontFamily});return this.settings.settings.isDimension||t(this.settings.settings)?Math.max(28,n):Math.max(20,n)},render(){const{settings:{app:e,disabled:n,explicitItemInfos:r,hyperCube:o,hyperCubeDef:i,isDimension:a,minWidth:s,model:l,onChangeToAlternative:c,padding:u,rtl:d,selections:p,skipAttributeExpressions:f,translator:h,supportConditional:m=!1},layout:{dock:y}}=this.settings,v="top"!==y&&"bottom"!==y||!d?"ltr":"rtl",b=function(e,t){const n={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",height:"100%"};return"left"===e?(n.width=`${t.height}px`,n.height=`${t.width}px`,n.transform=`rotate(-90deg) translate(-${t.height}px, 0)`,n.transformOrigin="top left"):"right"===e&&(n.width=`${t.height}px`,n.height=`${t.width}px`,n.transform=`rotate(90deg) translate(0, -${t.width}px)`,n.transformOrigin="top left"),n}(y,this.rect),x=i&&i.qLayoutExclude&&i.qLayoutExclude.qHyperCubeDef,w=x&&x[a?"qDimensions":"qMeasures"]||[],S=r||o[a?"qDimensionInfo":"qMeasureInfo"],C=a?mi:yi,k=a?gi:vi,E=Boolean(l&&l.colorSupport&&l.modifiers),T=E&&((R=this.settings.settings).isDimension&&fe.getValue(R,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.length")>0||t(this.settings.settings));var R;const M=S.map(((t,r)=>{var o;const i="number"==typeof t.explicitColumn?t.explicitColumn:r,v=k(t,i,l,e),b=r===S.length-1,x=Boolean(e)&&a&&"N"!==t.qGrouping,R=E||x?C({column:i,activeInfo:t,altList:w,app:e,dir:d?"rtl":"ltr",dock:ip(y),model:l,onChange:c,skipAttributeExpressions:f,translator:h,allowChangeOfAlternatives:E}):void 0;return g.createElement(g.Fragment,{key:t.cId},g.createElement(op,{chartId:null!==(o=null==l?void 0:l.id)&&void 0!==o?o:"",showGroupDimOptions:x,popover:R,titleData:v,model:l,translator:h,selections:p,disabled:n(),style:this.style,isDimension:a,padding:u,minWidth:s,hasAlternative:T,supportConditional:m}),!b&&g.createElement("span",{style:{lineHeight:"normal",...this.style}},", "))}));return g.createElement("div",{style:b,dir:v},M)}}}op.propTypes={chartId:Ci.string.isRequired,disabled:Ci.bool.isRequired,padding:Ci.string,minWidth:Ci.string,titleData:Ci.shape({breadcrumbs:Ci.arrayOf(Ci.string).isRequired,icon:Ci.shape({path:Ci.shape({d:Ci.string.isRequired}),tooltip:Ci.string.isRequired,onClick:Ci.func}),index:Ci.number.isRequired,locked:Ci.bool.isRequired,text:Ci.string.isRequired,popoverText:Ci.string.isRequired,drillUp:Ci.func,id:Ci.string.isRequired}).isRequired,popover:Ci.shape({dir:Ci.string.isRequired,dock:Ci.string.isRequired,getPopoverOptions:Ci.func.isRequired}),translator:Ci.shape({get:Ci.func.isRequired}).isRequired,selections:Ci.shape({isActive:Ci.func,addListener:Ci.func,removeListener:Ci.func}),style:Ci.shape({fontSize:Ci.string,color:Ci.string,fontFamily:Ci.string}).isRequired,isDimension:Ci.bool.isRequired,hasAlternative:Ci.bool.isRequired,supportConditional:Ci.bool.isRequired,showGroupDimOptions:Ci.bool.isRequired},op.defaultProps={popover:null,selections:null,padding:"",minWidth:""};const sp=ga({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 lp=ba({productionPrefix:"q5ad7",disableGlobal:!0,seed:""});function cp(){function e({x:e,y:t,width:n,height:r,scaleRatio:o,margin:i}={}){const a={x:0,y:0,width:0,height:0,scaleRatio:{x:1,y:1},margin:{left:0,top:0}};return a.x=Number.isNaN(e)?a.x:e,a.y=Number.isNaN(t)?a.y:t,a.width=Number.isNaN(n)?a.width:n,a.height=Number.isNaN(r)?a.height:r,void 0!==o&&(a.scaleRatio.x=Number.isNaN(o.x)?a.scaleRatio.x:o.x,a.scaleRatio.y=Number.isNaN(o.y)?a.scaleRatio.y:o.y),void 0!==i&&(a.margin.left=Number.isNaN(i.left)?0:i.left,a.margin.top=Number.isNaN(i.top)?0:i.top),a}return function(t={}){const{createElement:n=document.createElement.bind(document)}=t;let r,o=e();const i={element:()=>r,root:()=>r,appendTo:e=>(r||(r=n("div"),r.style.position="absolute",r.style["-webkit-font-smoothing"]="antialiased",r.style["-moz-osx-font-smoothing"]="antialiased",r.style.pointerEvents="none"),e.appendChild(r),r),render(e){if(!r)return!1;const t=o.scaleRatio.x,n=o.scaleRatio.y;return r.style.left=`${Math.round(o.margin.left+o.x*t)}px`,r.style.top=`${Math.round(o.margin.top+o.y*n)}px`,r.style.width=`${Math.round(o.width)}px`,r.style.height=`${Math.round(o.height)}px`,r.style.transform=`scale(${t}, ${n})`,r.style.transformOrigin="top left",k.render(function(e,t){return g.createElement(yc,{generateClassName:t},g.createElement(lu,{theme:sp},e))}(e,lp),r),!0},itemsAt:()=>[],findShapes:()=>[],clear:()=>(r&&k.unmountComponentAtNode(r),i),destroy(){r&&r.parentElement&&(k.unmountComponentAtNode(r),r.parentElement.removeChild(r)),r=null},size:t=>(t&&(o=e(t)),o)};return i}}var up={black:"#000",white:"#fff"};var dp={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var pp={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var fp={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var hp={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var mp={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};var gp={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var yp={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 vp(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 bp=Object.freeze({__proto__:null,default:vp}),xp="$$material";function wp(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Sp=/^((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)-.*))$/,Cp=wp((function(e){return Sp.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var kp=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}(),Ep="-ms-",Tp="-moz-",Rp="-webkit-",Mp="comm",Pp="rule",Dp="decl",Op="@keyframes",Ip=Math.abs,qp=String.fromCharCode,Ap=Object.assign;function Np(e){return e.trim()}function Lp(e,t,n){return e.replace(t,n)}function zp(e,t){return e.indexOf(t)}function jp(e,t){return 0|e.charCodeAt(t)}function $p(e,t,n){return e.slice(t,n)}function _p(e){return e.length}function Fp(e){return e.length}function Hp(e,t){return t.push(e),e}var Bp=1,Up=1,Wp=0,Vp=0,Gp=0,Kp="";function Yp(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Bp,column:Up,length:a,return:""}}function Xp(e,t){return Ap(Yp("",null,null,"",null,null,0),e,{length:-e.length},t)}function Jp(){return Gp=Vp>0?jp(Kp,--Vp):0,Up--,10===Gp&&(Up=1,Bp--),Gp}function Zp(){return Gp=Vp<Wp?jp(Kp,Vp++):0,Up++,10===Gp&&(Up=1,Bp++),Gp}function Qp(){return jp(Kp,Vp)}function ef(){return Vp}function tf(e,t){return $p(Kp,e,t)}function nf(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 rf(e){return Bp=Up=1,Wp=_p(Kp=e),Vp=0,[]}function of(e){return Kp="",e}function af(e){return Np(tf(Vp-1,cf(91===e?e+2:40===e?e+1:e)))}function sf(e){for(;(Gp=Qp())&&Gp<33;)Zp();return nf(e)>2||nf(Gp)>3?"":" "}function lf(e,t){for(;--t&&Zp()&&!(Gp<48||Gp>102||Gp>57&&Gp<65||Gp>70&&Gp<97););return tf(e,ef()+(t<6&&32==Qp()&&32==Zp()))}function cf(e){for(;Zp();)switch(Gp){case e:return Vp;case 34:case 39:34!==e&&39!==e&&cf(Gp);break;case 40:41===e&&cf(e);break;case 92:Zp()}return Vp}function uf(e,t){for(;Zp()&&e+Gp!==57&&(e+Gp!==84||47!==Qp()););return"/*"+tf(t,Vp-1)+"*"+qp(47===e?e:Zp())}function df(e){for(;!nf(Qp());)Zp();return tf(e,Vp)}function pf(e){return of(ff("",null,null,null,[""],e=rf(e),0,[0],e))}function ff(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,h=0,m=1,g=1,y=1,v=0,b="",x=o,w=i,S=r,C=b;g;)switch(h=v,v=Zp()){case 40:if(108!=h&&58==jp(C,d-1)){-1!=zp(C+=Lp(af(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:C+=af(v);break;case 9:case 10:case 13:case 32:C+=sf(h);break;case 92:C+=lf(ef()-1,7);continue;case 47:switch(Qp()){case 42:case 47:Hp(mf(uf(Zp(),ef()),t,n),l);break;default:C+="/"}break;case 123*m:s[c++]=_p(C)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==y&&(C=Lp(C,/\f/g,"")),f>0&&_p(C)-d&&Hp(f>32?gf(C+";",r,n,d-1):gf(Lp(C," ","")+";",r,n,d-2),l);break;case 59:C+=";";default:if(Hp(S=hf(C,t,n,c,u,o,s,b,x=[],w=[],d),i),123===v)if(0===u)ff(C,t,S,S,x,i,d,s,w);else switch(99===p&&110===jp(C,3)?100:p){case 100:case 108:case 109:case 115:ff(e,S,S,r&&Hp(hf(e,S,S,0,0,o,s,b,o,x=[],d),w),o,w,d,s,r?x:w);break;default:ff(C,S,S,S,[""],w,0,s,w)}}c=u=f=0,m=y=1,b=C="",d=a;break;case 58:d=1+_p(C),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==Jp())continue;switch(C+=qp(v),v*m){case 38:y=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(_p(C)-1)*y,y=1;break;case 64:45===Qp()&&(C+=af(Zp())),p=Qp(),u=d=_p(b=C+=df(ef())),v++;break;case 45:45===h&&2==_p(C)&&(m=0)}}return i}function hf(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,p=0===o?i:[""],f=Fp(p),h=0,m=0,g=0;h<r;++h)for(var y=0,v=$p(e,d+1,d=Ip(m=a[h])),b=e;y<f;++y)(b=Np(m>0?p[y]+" "+v:Lp(v,/&\f/g,p[y])))&&(l[g++]=b);return Yp(e,t,n,0===o?Pp:s,l,c,u)}function mf(e,t,n){return Yp(e,t,n,Mp,qp(Gp),$p(e,2,-2),0)}function gf(e,t,n,r){return Yp(e,t,n,Dp,$p(e,0,r),$p(e,r+1,-1),r)}function yf(e,t){for(var n="",r=Fp(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function vf(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Dp:return e.return=e.return||e.value;case Mp:return"";case Op:return e.return=e.value+"{"+yf(e.children,r)+"}";case Pp:e.value=e.props.join(",")}return _p(n=yf(e.children,r))?e.return=e.value+"{"+n+"}":""}function bf(e){var t=Fp(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}var xf="undefined"!=typeof document,wf=function(e,t,n){for(var r=0,o=0;r=o,o=Qp(),38===r&&12===o&&(t[n]=1),!nf(o);)Zp();return tf(e,Vp)},Sf=function(e,t){return of(function(e,t){var n=-1,r=44;do{switch(nf(r)){case 0:38===r&&12===Qp()&&(t[n]=1),e[n]+=wf(Vp-1,t,n);break;case 2:e[n]+=af(r);break;case 4:if(44===r){e[++n]=58===Qp()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=qp(r)}}while(r=Zp());return e}(rf(e),t))},Cf=new WeakMap,kf=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)||Cf.get(n))&&!r){Cf.set(e,!0);for(var o=[],i=Sf(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]}}},Ef=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Tf(e,t){switch(function(e,t){return 45^jp(e,0)?(((t<<2^jp(e,0))<<2^jp(e,1))<<2^jp(e,2))<<2^jp(e,3):0}(e,t)){case 5103:return Rp+"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 Rp+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Rp+e+Tp+e+Ep+e+e;case 6828:case 4268:return Rp+e+Ep+e+e;case 6165:return Rp+e+Ep+"flex-"+e+e;case 5187:return Rp+e+Lp(e,/(\w+).+(:[^]+)/,Rp+"box-$1$2"+Ep+"flex-$1$2")+e;case 5443:return Rp+e+Ep+"flex-item-"+Lp(e,/flex-|-self/,"")+e;case 4675:return Rp+e+Ep+"flex-line-pack"+Lp(e,/align-content|flex-|-self/,"")+e;case 5548:return Rp+e+Ep+Lp(e,"shrink","negative")+e;case 5292:return Rp+e+Ep+Lp(e,"basis","preferred-size")+e;case 6060:return Rp+"box-"+Lp(e,"-grow","")+Rp+e+Ep+Lp(e,"grow","positive")+e;case 4554:return Rp+Lp(e,/([^-])(transform)/g,"$1"+Rp+"$2")+e;case 6187:return Lp(Lp(Lp(e,/(zoom-|grab)/,Rp+"$1"),/(image-set)/,Rp+"$1"),e,"")+e;case 5495:case 3959:return Lp(e,/(image-set\([^]*)/,Rp+"$1$`$1");case 4968:return Lp(Lp(e,/(.+:)(flex-)?(.*)/,Rp+"box-pack:$3"+Ep+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Rp+e+e;case 4095:case 3583:case 4068:case 2532:return Lp(e,/(.+)-inline(.+)/,Rp+"$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(_p(e)-1-t>6)switch(jp(e,t+1)){case 109:if(45!==jp(e,t+4))break;case 102:return Lp(e,/(.+:)(.+)-([^]+)/,"$1"+Rp+"$2-$3$1"+Tp+(108==jp(e,t+3)?"$3":"$2-$3"))+e;case 115:return~zp(e,"stretch")?Tf(Lp(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==jp(e,t+1))break;case 6444:switch(jp(e,_p(e)-3-(~zp(e,"!important")&&10))){case 107:return Lp(e,":",":"+Rp)+e;case 101:return Lp(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Rp+(45===jp(e,14)?"inline-":"")+"box$3$1"+Rp+"$2$3$1"+Ep+"$2box$3")+e}break;case 5936:switch(jp(e,t+11)){case 114:return Rp+e+Ep+Lp(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Rp+e+Ep+Lp(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Rp+e+Ep+Lp(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Rp+e+Ep+e+e}return e}var Rf=xf?void 0:function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}((function(){return wp((function(){var e={};return function(t){return e[t]}}))})),Mf=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Dp:e.return=Tf(e.value,e.length);break;case Op:return yf([Xp(e,{value:Lp(e.value,"@","@"+Rp)})],r);case Pp: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 yf([Xp(e,{props:[Lp(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return yf([Xp(e,{props:[Lp(t,/:(plac\w+)/,":"+Rp+"input-$1")]}),Xp(e,{props:[Lp(t,/:(plac\w+)/,":-moz-$1")]}),Xp(e,{props:[Lp(t,/:(plac\w+)/,Ep+"input-$1")]})],r)}return""}))}}],Pf=function(e){var t=e.key;if(xf&&"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||Mf,a={},s=[];xf&&(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=[kf,Ef];if(xf){var u,d=[vf,(l=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&l(e)})],p=bf(c.concat(i,d));o=function(e,t,n,r){u=n,function(e){yf(pf(e),p)}(e?e+"{"+t.styles+"}":t.styles),r&&(y.inserted[t.name]=!0)}}else{var f=[vf],h=bf(c.concat(i,f)),m=Rf(i)(t),g=function(e,t){var n=t.name;return void 0===m[n]&&(m[n]=function(e){return yf(pf(e),h)}(e?e+"{"+t.styles+"}":t.styles)),m[n]};o=function(e,t,n,r){var o=t.name,i=g(e,t);return void 0===y.compat?(r&&(y.inserted[o]=!0),i):r?void(y.inserted[o]=i):i}}var y={key:t,sheet:new kp({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 y.sheet.hydrate(s),y},Df="undefined"!=typeof document;var Of=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===Df&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},If=function(e,t,n){Of(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o="",i=t;do{var a=e.insert(t===i?"."+r:"",i,e.sheet,!0);Df||void 0===a||(o+=a),i=i.next}while(void 0!==i);if(!Df&&0!==o.length)return o}};var qf={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},Af=!1,Nf=/[A-Z]|^ms/g,Lf=/_EMO_([^_]+?)_([^]*?)_EMO_/g,zf=function(e){return 45===e.charCodeAt(1)},jf=function(e){return null!=e&&"boolean"!=typeof e},$f=wp((function(e){return zf(e)?e:e.replace(Nf,"-$&").toLowerCase()})),_f=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Lf,(function(e,t,n){return Bf={name:t,styles:n,next:Bf},t}))}return 1===qf[e]||zf(e)||"number"!=typeof t||0===t?t:t+"px"},Ff="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Hf(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 Bf={name:o.name,styles:o.styles,next:Bf},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)Bf={name:a.name,styles:a.styles,next:Bf},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+=Hf(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]+"}":jf(s)&&(r+=$f(i)+":"+_f(i,s)+";")}else{if("NO_COMPONENT_SELECTOR"===i&&Af)throw new Error(Ff);if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=Hf(e,t,a);switch(i){case"animation":case"animationName":r+=$f(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var c=0;c<a.length;c++)jf(a[c])&&(r+=$f(i)+":"+_f(i,a[c])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var s=Bf,l=n(e);return Bf=s,Hf(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var Bf,Uf=/label:\s*([^\s;{]+)\s*(;|$)/g;function Wf(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="";Bf=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=Hf(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=Hf(n,t,e[a]),r)o+=i[a]}Uf.lastIndex=0;for(var s,l="";null!==(s=Uf.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:Bf}}var Vf="undefined"!=typeof document,Gf=function(e){return e()},Kf=!!y.useInsertionEffect&&y.useInsertionEffect,Yf=Vf&&Kf||Gf,Xf=Kf||y.useLayoutEffect,Jf="undefined"!=typeof document,Zf=y.createContext("undefined"!=typeof HTMLElement?Pf({key:"css"}):null),Qf=Zf.Provider,eh=function(e){return w((function(t,n){var r=S(Zf);return e(t,r,n)}))};Jf||(eh=function(e){return function(t){var n=S(Zf);return null===n?(n=Pf({key:"css"}),y.createElement(Zf.Provider,{value:n},e(t,n))):e(t,n)}});var th=y.createContext({}),nh=eh((function(e,t){var n=Wf([e.styles],void 0,y.useContext(th));if(!Jf){for(var r,o=n.name,i=n.styles,a=n.next;void 0!==a;)o+=" "+a.name,i+=a.styles,a=a.next;var s=!0===t.compat,l=t.insert("",{name:o,styles:i},t.sheet,s);return s?null:y.createElement("style",((r={})["data-emotion"]=t.key+"-global "+o,r.dangerouslySetInnerHTML={__html:l},r.nonce=t.sheet.nonce,r))}var c=y.useRef();return Xf((function(){var e=t.key+"-global",r=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,i=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==i&&(o=!0,i.setAttribute("data-emotion",e),r.hydrate([i])),c.current=[r,o],function(){r.flush()}}),[t]),Xf((function(){var e=c.current,r=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&If(t,n.next,!0),r.tags.length){var o=r.tags[r.tags.length-1].nextElementSibling;r.before=o,r.flush()}t.insert("",n,r,!1)}}),[t,n.name]),null}));function rh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Wf(t)}var oh=function(){var e=rh.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_"}}},ih=Cp,ah=function(e){return"theme"!==e},sh=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?ih:ah},lh=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},ch="undefined"!=typeof document,uh=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;Of(t,n,r);var o=Yf((function(){return If(t,n,r)}));if(!ch&&void 0!==o){for(var i,a=n.name,s=n.next;void 0!==s;)a+=" "+s.name,s=s.next;return y.createElement("style",((i={})["data-emotion"]=t.key+" "+a,i.dangerouslySetInnerHTML={__html:o},i.nonce=t.sheet.nonce,i))}return null},dh=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=lh(t,n,i),l=s||sh(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{d.push(u[0][0]);for(var p=u.length,f=1;f<p;f++)d.push(u[f],u[0][f])}var h=eh((function(e,t,n){var r,i,u,p,f=c&&e.as||a,h="",m=[],g=e;if(null==e.theme){for(var v in g={},e)g[v]=e[v];g.theme=y.useContext(th)}"string"==typeof e.className?(r=t.registered,i=m,u=e.className,p="",u.split(" ").forEach((function(e){void 0!==r[e]?i.push(r[e]+";"):e&&(p+=e+" ")})),h=p):null!=e.className&&(h=e.className+" ");var b=Wf(d.concat(m),t.registered,g);h+=t.key+"-"+b.name,void 0!==o&&(h+=" "+o);var x=c&&void 0===s?sh(f):l,w={};for(var S in e)c&&"as"===S||x(S)&&(w[S]=e[S]);return w.className=h,n&&(w.ref=n),y.createElement(y.Fragment,null,y.createElement(uh,{cache:t,serialized:b,isStringTag:"string"==typeof f}),y.createElement(f,w))}));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,Ii({},n,r,{shouldForwardProp:lh(h,r,!0)})).apply(void 0,d)},h}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){dh[e]=dh(e)}));var ph={exports:{}},fh={},hh=g,mh=Symbol.for("react.element"),gh=Symbol.for("react.fragment"),yh=Object.prototype.hasOwnProperty,vh=hh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,bh={key:!0,ref:!0,__self:!0,__source:!0};function xh(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)yh.call(t,r)&&!bh.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:mh,type:e,key:i,ref:a,props:o,_owner:vh.current}}fh.Fragment=gh,fh.jsx=xh,fh.jsxs=xh,ph.exports=fh;var wh=ph.exports;let Sh;"object"==typeof document&&(Sh=Pf({key:"css",prepend:!0}));var Ch=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 wh.jsx(nh,{styles:r})}
|
|
14
|
+
*/Ls();var $s=Date.now(),_s="fnValues"+$s,Fs="fnStyle"+ ++$s,Hs=function(){return{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=Da(e,{},n);return r[Fs]=t,r},onProcessStyle:function(e,t){if(_s in t||Fs 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[_s]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[Fs];i&&(o.style=i(e)||{});var a=o[_s];if(a)for(var s in a)o.prop(s,a[s](e),r)}}},Bs="@global",Us="@global ",Ws=function(){function e(e,t,n){for(var r in this.type="global",this.at=Bs,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new hs(Ii({},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}(),Vs=function(){function e(e,t,n){this.type="global",this.at=Bs,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(Us.length);this.rule=n.jss.createRule(r,t,Ii({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Gs=/\s*,\s*/g;function Ks(e,t){for(var n=e.split(Gs),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}function Ys(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===Bs)return new Ws(e,t,n);if("@"===e[0]&&e.substr(0,Us.length)===Us)return new Vs(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[Bs]:null;if(o){for(var i in o)t.addRule(i,o[i],Ii({},n,{selector:Ks(i,e.selector)}));delete r[Bs]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,Bs.length)===Bs){var i=Ks(o.substr(Bs.length),e.selector);t.addRule(i,r[o],Ii({},n,{selector:i})),delete r[o]}}(e,t))}}}var Xs=/\s*,\s*/g,Js=/&/g,Zs=/\$([\w-]+)/g;function Qs(){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(Xs),r=e.split(Xs),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(Js,a):a+" "+l}return o}function n(e,t,n){if(n)return Ii({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=Ii({},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(Zs,s);var h=l.key+"-"+u;"replaceRule"in c?c.replaceRule(h,r[u],Ii({},a,{selector:f})):c.addRule(h,r[u],Ii({},a,{selector:f}))}else p&&c.addRule(u,{},a).addRule(l.key,r[u],{selector:l.selector});delete r[u]}}return r}}}var el=/[A-Z]/g,tl=/^ms-/,nl={};function rl(e){return"-"+e.toLowerCase()}function ol(e){if(nl.hasOwnProperty(e))return nl[e];var t=e.replace(el,rl);return nl[e]=tl.test(t)?"-"+t:t}function il(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:ol(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(il):t.fallbacks=il(e.fallbacks)),t}var al=zs&&CSS?CSS.px:"px",sl=zs&&CSS?CSS.ms:"ms",ll=zs&&CSS?CSS.percent:"%";function cl(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 ul=cl({"animation-delay":sl,"animation-duration":sl,"background-position":al,"background-position-x":al,"background-position-y":al,"background-size":al,border:al,"border-bottom":al,"border-bottom-left-radius":al,"border-bottom-right-radius":al,"border-bottom-width":al,"border-left":al,"border-left-width":al,"border-radius":al,"border-right":al,"border-right-width":al,"border-top":al,"border-top-left-radius":al,"border-top-right-radius":al,"border-top-width":al,"border-width":al,"border-block":al,"border-block-end":al,"border-block-end-width":al,"border-block-start":al,"border-block-start-width":al,"border-block-width":al,"border-inline":al,"border-inline-end":al,"border-inline-end-width":al,"border-inline-start":al,"border-inline-start-width":al,"border-inline-width":al,"border-start-start-radius":al,"border-start-end-radius":al,"border-end-start-radius":al,"border-end-end-radius":al,margin:al,"margin-bottom":al,"margin-left":al,"margin-right":al,"margin-top":al,"margin-block":al,"margin-block-end":al,"margin-block-start":al,"margin-inline":al,"margin-inline-end":al,"margin-inline-start":al,padding:al,"padding-bottom":al,"padding-left":al,"padding-right":al,"padding-top":al,"padding-block":al,"padding-block-end":al,"padding-block-start":al,"padding-inline":al,"padding-inline-end":al,"padding-inline-start":al,"mask-position-x":al,"mask-position-y":al,"mask-size":al,height:al,width:al,"min-height":al,"max-height":al,"min-width":al,"max-width":al,bottom:al,left:al,top:al,right:al,inset:al,"inset-block":al,"inset-block-end":al,"inset-block-start":al,"inset-inline":al,"inset-inline-end":al,"inset-inline-start":al,"box-shadow":al,"text-shadow":al,"column-gap":al,"column-rule":al,"column-rule-width":al,"column-width":al,"font-size":al,"font-size-delta":al,"letter-spacing":al,"text-decoration-thickness":al,"text-indent":al,"text-stroke":al,"text-stroke-width":al,"word-spacing":al,motion:al,"motion-offset":al,outline:al,"outline-offset":al,"outline-width":al,perspective:al,"perspective-origin-x":ll,"perspective-origin-y":ll,"transform-origin":ll,"transform-origin-x":ll,"transform-origin-y":ll,"transform-origin-z":ll,"transition-delay":sl,"transition-duration":sl,"vertical-align":al,"flex-basis":al,"shape-margin":al,size:al,gap:al,grid:al,"grid-gap":al,"row-gap":al,"grid-row-gap":al,"grid-column-gap":al,"grid-template-rows":al,"grid-template-columns":al,"grid-auto-rows":al,"grid-auto-columns":al,"box-shadow-x":al,"box-shadow-y":al,"box-shadow-blur":al,"box-shadow-spread":al,"font-line-height":al,"text-shadow-x":al,"text-shadow-y":al,"text-shadow-blur":al});function dl(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=dl(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=dl(o,t[o],n);else for(var i in t)t[i]=dl(e+"-"+i,t[i],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||ul[e];return!a||0===t&&a===al?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function pl(e){void 0===e&&(e={});var t=cl(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=dl(r,e[r],t);return e},onChangeValue:function(e,n){return dl(n,e,t)}}}var fl="",hl="",ml="",gl="",yl=Sa&&"ontouchstart"in document.documentElement;if(Sa){var vl={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},bl=document.createElement("p").style;for(var xl in vl)if(xl+"Transform"in bl){fl=xl,hl=vl[xl];break}"Webkit"===fl&&"msHyphens"in bl&&(fl="ms",hl=vl.ms,gl="edge"),"Webkit"===fl&&"-apple-trailing-word"in bl&&(ml="apple")}var wl={js:fl,css:hl,vendor:ml,browser:gl,isTouch:yl};var Sl={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===wl.js?"-webkit-"+e:wl.css+e)}},Cl={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===wl.js?wl.css+"print-"+e:e)}},kl=/[-\s]+(.)?/g;function El(e,t){return t?t.toUpperCase():""}function Tl(e){return e.replace(kl,El)}function Rl(e){return Tl("-"+e)}var Ml,Pl={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===wl.js){var n="mask-image";if(Tl(n)in t)return e;if(wl.js+Rl(n)in t)return wl.css+e}return e}},Dl={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==wl.vendor||wl.isTouch?e:wl.css+e)}},Ol={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:wl.css+e)}},Il={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:wl.css+e)}},ql={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===wl.js||"ms"===wl.js&&"edge"!==wl.browser?wl.css+e:e)}},Al={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===wl.js||"ms"===wl.js||"apple"===wl.vendor?wl.css+e:e)}},Nl={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===wl.js?"WebkitColumn"+Rl(e)in t&&wl.css+"column-"+e:"Moz"===wl.js&&("page"+Rl(e)in t&&"page-"+e))}},Ll={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===wl.js)return e;var n=e.replace("-inline","");return wl.js+Rl(n)in t&&wl.css+n}},zl={supportedProperty:function(e,t){return Tl(e)in t&&e}},jl={supportedProperty:function(e,t){var n=Rl(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:wl.js+n in t?wl.css+e:"Webkit"!==wl.js&&"Webkit"+n in t&&"-webkit-"+e}},$l={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===wl.js?""+wl.css+e:e)}},_l={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===wl.js?wl.css+"scroll-chaining":e)}},Fl={"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"},Hl={supportedProperty:function(e,t){var n=Fl[e];return!!n&&(wl.js+Rl(n)in t&&wl.css+n)}},Bl={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"},Ul=Object.keys(Bl),Wl=function(e){return wl.css+e},Vl={supportedProperty:function(e,t,n){var r=n.multiple;if(Ul.indexOf(e)>-1){var o=Bl[e];if(!Array.isArray(o))return wl.js+Rl(o)in t&&wl.css+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(wl.js+Rl(o[0])in t))return!1;return o.map(Wl)}return!1}},Gl=[Sl,Cl,Pl,Dl,Ol,Il,ql,Al,Nl,Ll,zl,jl,$l,_l,Hl,Vl],Kl=Gl.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),Yl=Gl.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,la(t.noPrefill)),e}),[]),Xl={};if(Sa){Ml=document.createElement("p");var Jl=window.getComputedStyle(document.documentElement,"");for(var Zl in Jl)isNaN(Zl)||(Xl[Jl[Zl]]=Jl[Zl]);Yl.forEach((function(e){return delete Xl[e]}))}function Ql(e,t){if(void 0===t&&(t={}),!Ml)return e;if(null!=Xl[e])return Xl[e];"transition"!==e&&"transform"!==e||(t[e]=e in Ml.style);for(var n=0;n<Kl.length&&(Xl[e]=Kl[n](e,Ml.style,t),!Xl[e]);n++);try{Ml.style[e]=""}catch(e){return!1}return Xl[e]}var ec,tc={},nc={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},rc=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function oc(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?Ql(t):", "+Ql(n);return r||(t||n)}function ic(e,t){var n=t;if(!ec||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=tc[r])return tc[r];try{ec.style[e]=n}catch(e){return tc[r]=!1,!1}if(nc[e])n=n.replace(rc,oc);else if(""===ec.style[e]&&("-ms-flex"===(n=wl.css+n)&&(ec.style[e]="-ms-flexbox"),ec.style[e]=n,""===ec.style[e]))return tc[r]=!1,!1;return ec.style[e]="",tc[r]=n,tc[r]}function ac(){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=Ql(n);i&&i!==n&&(o=!0);var a=!1,s=ic(i,Ia(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"===wl.js?e:"@"+wl.css+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return ic(t,Ia(e))||e}}}function sc(){return{plugins:[Hs(),Ys(),Qs(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=il(e[t]);return e}return il(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=ol(t);return t===r?e:(n.prop(r,e),null)}},pl(),"undefined"==typeof window?null:ac(),(e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length},{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}})]};var e}function lc(){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=Ii({},t);return Object.keys(n).forEach((function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))})),r}Sa&&(ec=document.createElement("p"));var cc={set:function(e,t,n,r){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},get:function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},delete:function(e,t,n){e.get(t).delete(n)}},uc=cc,dc=g.createContext(null);function pc(){return g.useContext(dc)}var fc,hc=Ls(sc()),mc={disableGeneration:!1,generateClassName:ba(),jss:hc,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},gc=g.createContext(mc);function yc(e){var t=e.children,n=e.injectFirst,r=void 0!==n&&n,o=e.disableGeneration,i=void 0!==o&&o,a=Wi(e,["children","injectFirst","disableGeneration"]),s=Ii({},g.useContext(gc),{disableGeneration:i},a);if(!s.jss.options.insertionPoint&&r&&"undefined"!=typeof window){if(!fc){var l=document.head;fc=document.createComment("mui-inject-first"),l.insertBefore(fc,l.firstChild)}s.jss=Ls({plugins:sc().plugins,insertionPoint:fc})}return g.createElement(gc.Provider,{value:s},t)}var vc=-1e9;var bc={};function xc(e,t){var n=e.state,r=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=uc.get(o.sheetsManager,i,r);s||(s={refs:0,staticSheet:null,dynamicStyles:null},uc.set(o.sheetsManager,i,r,s));var l=Ii({},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=uc.get(o.sheetsCache,i,r));var d=i.create(r,a);u||((u=o.jss.createStyleSheet(d,Ii({link:!1},l))).attach(),o.sheetsCache&&uc.set(o.sheetsCache,i,r,u)),c&&c.add(u),s.staticSheet=u,s.dynamicStyles=js(d)}if(s.dynamicStyles){var p=o.jss.createStyleSheet(s.dynamicStyles,Ii({link:!0},l));p.update(t),p.attach(),n.dynamicSheet=p,n.classes=lc({baseClasses:s.staticSheet.classes,newClasses:p.classes}),c&&c.add(p)}else n.classes=s.staticSheet.classes;s.refs+=1}}function wc(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?bc:i,s=Wi(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=Ii({},o);return Object.keys(i).forEach((function(e){a[e]=Ni(a[e],i[e])})),a},options:{}}}(e),c=n||r||"makeStyles";l.options={index:vc+=1,name:n,meta:c,classNamePrefix:c};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=pc()||a,r=Ii({},g.useContext(gc),s),i=g.useRef(),c=g.useRef();!function(e,t){var n,r=g.useRef([]),o=g.useMemo((function(){return{}}),t);r.current!==o&&(r.current=o,n=e()),g.useEffect((function(){return function(){n&&n()}}),[o])}((function(){var o={name:n,state:{},stylesCreator:l,stylesOptions:r,theme:t};return xc(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=uc.get(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&(uc.delete(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]),g.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=lc({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(i.current,e.classes,o);return u}}function Sc(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=Sc(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Cc(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Sc(e))&&(r&&(r+=" "),r+=t);return r}var kc={exports:{}},Ec={},Tc="function"==typeof Symbol&&Symbol.for,Rc=Tc?Symbol.for("react.element"):60103,Mc=Tc?Symbol.for("react.portal"):60106,Pc=Tc?Symbol.for("react.fragment"):60107,Dc=Tc?Symbol.for("react.strict_mode"):60108,Oc=Tc?Symbol.for("react.profiler"):60114,Ic=Tc?Symbol.for("react.provider"):60109,qc=Tc?Symbol.for("react.context"):60110,Ac=Tc?Symbol.for("react.async_mode"):60111,Nc=Tc?Symbol.for("react.concurrent_mode"):60111,Lc=Tc?Symbol.for("react.forward_ref"):60112,zc=Tc?Symbol.for("react.suspense"):60113,jc=Tc?Symbol.for("react.suspense_list"):60120,$c=Tc?Symbol.for("react.memo"):60115,_c=Tc?Symbol.for("react.lazy"):60116,Fc=Tc?Symbol.for("react.block"):60121,Hc=Tc?Symbol.for("react.fundamental"):60117,Bc=Tc?Symbol.for("react.responder"):60118,Uc=Tc?Symbol.for("react.scope"):60119;function Wc(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Rc:switch(e=e.type){case Ac:case Nc:case Pc:case Oc:case Dc:case zc:return e;default:switch(e=e&&e.$$typeof){case qc:case Lc:case _c:case $c:case Ic:return e;default:return t}}case Mc:return t}}}function Vc(e){return Wc(e)===Nc}Ec.AsyncMode=Ac,Ec.ConcurrentMode=Nc,Ec.ContextConsumer=qc,Ec.ContextProvider=Ic,Ec.Element=Rc,Ec.ForwardRef=Lc,Ec.Fragment=Pc,Ec.Lazy=_c,Ec.Memo=$c,Ec.Portal=Mc,Ec.Profiler=Oc,Ec.StrictMode=Dc,Ec.Suspense=zc,Ec.isAsyncMode=function(e){return Vc(e)||Wc(e)===Ac},Ec.isConcurrentMode=Vc,Ec.isContextConsumer=function(e){return Wc(e)===qc},Ec.isContextProvider=function(e){return Wc(e)===Ic},Ec.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Rc},Ec.isForwardRef=function(e){return Wc(e)===Lc},Ec.isFragment=function(e){return Wc(e)===Pc},Ec.isLazy=function(e){return Wc(e)===_c},Ec.isMemo=function(e){return Wc(e)===$c},Ec.isPortal=function(e){return Wc(e)===Mc},Ec.isProfiler=function(e){return Wc(e)===Oc},Ec.isStrictMode=function(e){return Wc(e)===Dc},Ec.isSuspense=function(e){return Wc(e)===zc},Ec.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Pc||e===Nc||e===Oc||e===Dc||e===zc||e===jc||"object"==typeof e&&null!==e&&(e.$$typeof===_c||e.$$typeof===$c||e.$$typeof===Ic||e.$$typeof===qc||e.$$typeof===Lc||e.$$typeof===Hc||e.$$typeof===Bc||e.$$typeof===Uc||e.$$typeof===Fc)},Ec.typeOf=Wc,kc.exports=Ec;var Gc=kc.exports,Kc={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Yc={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Xc={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Jc={};function Zc(e){return Gc.isMemo(e)?Xc:Jc[e.$$typeof]||Kc}Jc[Gc.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Jc[Gc.Memo]=Xc;var Qc=Object.defineProperty,eu=Object.getOwnPropertyNames,tu=Object.getOwnPropertySymbols,nu=Object.getOwnPropertyDescriptor,ru=Object.getPrototypeOf,ou=Object.prototype;var iu=function e(t,n,r){if("string"!=typeof n){if(ou){var o=ru(n);o&&o!==ou&&e(t,o,r)}var i=eu(n);tu&&(i=i.concat(tu(n)));for(var a=Zc(t),s=Zc(n),l=0;l<i.length;++l){var c=i[l];if(!(Yc[c]||r&&r[c]||s&&s[c]||a&&a[c])){var u=nu(n,c);try{Qc(t,c,u)}catch(e){}}}}return t},au=X(iu);function su(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.name,i=Wi(r,["name"]),a=o,s="function"==typeof t?function(e){return{root:function(n){return t(Ii({theme:e},n))}}}:{root:t},l=wc(s,Ii({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=g.forwardRef((function(t,r){var o,i,a,s=t.children,c=t.className,u=t.clone,d=t.component,p=Wi(t,["children","className","clone","component"]),f=Cc(l(t).root,c),h=p;if(n&&(o=h,i=n,a={},Object.keys(o).forEach((function(e){-1===i.indexOf(e)&&(a[e]=o[e])})),h=a),u)return g.cloneElement(s,Ii({className:Cc(s.props.className,f)},h));if("function"==typeof s)return s(Ii({className:f},h));var m=d||e;return g.createElement(m,Ii({ref:r,className:f},h),s)}));return au(c,e),c}}function lu(e){var t=e.children,n=e.theme,r=pc(),o=g.useMemo((function(){var e=null===r?n:function(e,t){return"function"==typeof t?t(e):Ii({},e,t)}(r,n);return null!=e&&(e[ya]=null!==r),e}),[n,r]);return g.createElement(dc.Provider,{value:o},t)}var cu=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=Wi(t,["defaultTheme","withTheme","name"]),l=a,c=wc(e,Ii({defaultTheme:r,Component:n,name:a||n.displayName,classNamePrefix:l},s)),u=g.forwardRef((function(e,t){e.classes;var o,s=e.innerRef,l=Wi(e,["classes","innerRef"]),u=c(Ii({},n.defaultProps,e)),d=l;return("string"==typeof a||i)&&(o=pc()||r,a&&(d=xa({theme:o,name:a,props:l})),i&&!d.theme&&(d.theme=o)),g.createElement(n,Ii({ref:s||t,classes:u},d))}));return au(u,n),u}},uu=ga(),du=function(e){var t=su(e);return function(e,n){return t(e,Ii({defaultTheme:uu},n))}};function pu(e,t){return cu(e,Ii({defaultTheme:uu},t))}function fu(e){if("string"!=typeof e)throw new Error(ji(7));return e.charAt(0).toUpperCase()+e.slice(1)}function hu(){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 mu(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=mu(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function gu(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=mu(e))&&(r&&(r+=" "),r+=t);return r}function yu(e){return e&&e.ownerDocument||document}function vu(e){return yu(e).defaultView||window}function bu(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var xu="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;function wu(e){var t=y.useRef(e);return xu((function(){t.current=e})),y.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}function Su(e,t){return y.useMemo((function(){return null==e&&null==t?null:function(n){bu(e,n),bu(t,n)}}),[e,t])}var Cu=!0,ku=!1,Eu=null,Tu={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 Ru(e){e.metaKey||e.altKey||e.ctrlKey||(Cu=!0)}function Mu(){Cu=!1}function Pu(){"hidden"===this.visibilityState&&ku&&(Cu=!0)}function Du(e){var t=e.target;try{return t.matches(":focus-visible")}catch(e){}return Cu||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!Tu[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Ou(){ku=!0,window.clearTimeout(Eu),Eu=window.setTimeout((function(){ku=!1}),100)}function Iu(){var e=y.useCallback((function(e){var t,n=C.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",Ru,!0),t.addEventListener("mousedown",Mu,!0),t.addEventListener("pointerdown",Mu,!0),t.addEventListener("touchstart",Mu,!0),t.addEventListener("visibilitychange",Pu,!0))}),[]);return{isFocusVisible:Du,onBlurVisible:Ou,ref:e}}var qu=!1,Au=g.createContext(null),Nu="unmounted",Lu="exited",zu="entering",ju="entered",$u="exiting",_u=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=Lu,r.appearStatus=zu):o=ju:o=t.unmountOnExit||t.mountOnEnter?Nu:Lu,r.state={status:o},r.nextCallback=null,r}Ta(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Nu?{status:Lu}: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!==zu&&n!==ju&&(t=zu):n!==zu&&n!==ju||(t=$u)}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===zu){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:k.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Lu&&this.setState({status:Nu})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[k.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||qu?this.safeSetState({status:ju},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:zu},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:ju},(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:k.findDOMNode(this);t&&!qu?(this.props.onExit(r),this.safeSetState({status:$u},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Lu},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Lu},(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:k.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===Nu)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=Ui(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return g.createElement(Au.Provider,{value:null},"function"==typeof n?n(e,r):g.cloneElement(g.Children.only(n),r))},t}(g.Component);function Fu(){}_u.contextType=Au,_u.propTypes={},_u.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Fu,onEntering:Fu,onEntered:Fu,onExit:Fu,onExiting:Fu,onExited:Fu},_u.UNMOUNTED=Nu,_u.EXITED=Lu,_u.ENTERING=zu,_u.ENTERED=ju,_u.EXITING=$u;var Hu=_u;function Bu(e,t){var n=Object.create(null);return e&&v.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&b(e)?t(e):e}(e)})),n}function Uu(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Wu(e,t,n){var r=Bu(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(b(a)){var s=i in t,l=i in r,c=t[i],u=b(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&b(c)&&(o[i]=x(a,{onExited:n.bind(null,a),in:c.props.in,exit:Uu(a,"exit",e),enter:Uu(a,"enter",e)})):o[i]=x(a,{in:!1}):o[i]=x(a,{onExited:n.bind(null,a),in:!0,exit:Uu(a,"exit",e),enter:Uu(a,"enter",e)})}})),o}var Vu=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Gu=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(Ra(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Ta(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,Bu(n.children,(function(e){return x(e,{onExited:r.bind(null,e),in:!0,appear:Uu(e,"appear",n),enter:Uu(e,"enter",n),exit:Uu(e,"exit",n)})}))):Wu(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=Bu(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Ii({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Ui(e,["component","childFactory"]),o=this.state.contextValue,i=Vu(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?g.createElement(Au.Provider,{value:o},i):g.createElement(Au.Provider,{value:o},g.createElement(t,r,i))},t}(g.Component);Gu.propTypes={},Gu.defaultProps={component:"div",childFactory:function(e){return e}};var Ku=Gu;function Yu(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 Xu=y.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=Wi(e,["classes","className","component","square","elevation","variant"]);return y.createElement(i,Ii({className:gu(n.root,r,"outlined"===d?n.outlined:n["elevation".concat(c)],!s&&n.rounded),ref:t},p))})),Ju=pu((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),Ii({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"})(Xu),Zu="undefined"==typeof window?y.useEffect:y.useLayoutEffect;function Qu(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=y.useState(!1),p=d[0],f=d[1],h=gu(t.ripple,t.rippleVisible,r&&t.ripplePulsate),m={width:a,height:a,top:-a/2+i,left:-a/2+o},g=gu(t.child,p&&t.childLeaving,r&&t.childPulsate),v=wu(c);return Zu((function(){if(!s){f(!0);var e=setTimeout(v,u);return function(){clearTimeout(e)}}}),[v,s,u]),y.createElement("span",{className:h,style:m},y.createElement("span",{className:g}))}var ed=y.forwardRef((function(e,t){var n=e.center,r=void 0!==n&&n,o=e.classes,i=e.className,a=Wi(e,["center","classes","className"]),s=y.useState([]),l=s[0],c=s[1],u=y.useRef(0),d=y.useRef(null);y.useEffect((function(){d.current&&(d.current(),d.current=null)}),[l]);var p=y.useRef(!1),f=y.useRef(null),h=y.useRef(null),m=y.useRef(null);y.useEffect((function(){return function(){clearTimeout(f.current)}}),[]);var g=y.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,i=e.rippleSize,a=e.cb;c((function(e){return[].concat(la(e),[y.createElement(Qu,{key:u.current,classes:o,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i})])})),u.current+=1,d.current=a}),[o]),v=y.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:m.current,b=v?v.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(b.width/2),d=Math.round(b.height/2);else{var x=e.touches?e.touches[0]:e,w=x.clientX,S=x.clientY;u=Math.round(w-b.left),d=Math.round(S-b.top)}if(s)(y=Math.sqrt((2*Math.pow(b.width,2)+Math.pow(b.height,2))/3))%2==0&&(y+=1);else{var C=2*Math.max(Math.abs((v?v.clientWidth:0)-u),u)+2,k=2*Math.max(Math.abs((v?v.clientHeight:0)-d),d)+2;y=Math.sqrt(Math.pow(C,2)+Math.pow(k,2))}e.touches?null===h.current&&(h.current=function(){g({pulsate:i,rippleX:u,rippleY:d,rippleSize:y,cb:n})},f.current=setTimeout((function(){h.current&&(h.current(),h.current=null)}),80)):g({pulsate:i,rippleX:u,rippleY:d,rippleSize:y,cb:n})}}),[r,g]),b=y.useCallback((function(){v({},{pulsate:!0})}),[v]),x=y.useCallback((function(e,t){if(clearTimeout(f.current),"touchend"===e.type&&h.current)return e.persist(),h.current(),h.current=null,void(f.current=setTimeout((function(){x(e,t)})));h.current=null,c((function(e){return e.length>0?e.slice(1):e})),d.current=t}),[]);return y.useImperativeHandle(t,(function(){return{pulsate:b,start:v,stop:x}}),[b,v,x]),y.createElement("span",Ii({className:gu(o.root,i),ref:m},a),y.createElement(Ku,{component:null,exit:!0},l))})),td=pu((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"})(y.memo(ed)),nd=y.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,h=void 0!==f&&f,m=e.disableTouchRipple,g=void 0!==m&&m,v=e.focusRipple,b=void 0!==v&&v,x=e.focusVisibleClassName,w=e.onBlur,S=e.onClick,k=e.onFocus,E=e.onFocusVisible,T=e.onKeyDown,R=e.onKeyUp,M=e.onMouseDown,P=e.onMouseLeave,D=e.onMouseUp,O=e.onTouchEnd,I=e.onTouchMove,q=e.onTouchStart,A=e.onDragLeave,N=e.tabIndex,L=void 0===N?0:N,z=e.TouchRippleProps,j=e.type,$=void 0===j?"button":j,_=Wi(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),F=y.useRef(null);var H=y.useRef(null),B=y.useState(!1),U=B[0],W=B[1];p&&U&&W(!1);var V=Iu(),G=V.isFocusVisible,K=V.onBlurVisible,Y=V.ref;function X(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g;return wu((function(r){return t&&t(r),!n&&H.current&&H.current[e](r),!0}))}y.useImperativeHandle(n,(function(){return{focusVisible:function(){W(!0),F.current.focus()}}}),[]),y.useEffect((function(){U&&b&&!h&&H.current.pulsate()}),[h,b,U]);var J=X("start",M),Z=X("stop",A),Q=X("stop",D),ee=X("stop",(function(e){U&&e.preventDefault(),P&&P(e)})),te=X("start",q),ne=X("stop",O),re=X("stop",I),oe=X("stop",(function(e){U&&(K(e),W(!1)),w&&w(e)}),!1),ie=wu((function(e){F.current||(F.current=e.currentTarget),G(e)&&(W(!0),E&&E(e)),k&&k(e)})),ae=function(){var e=C.findDOMNode(F.current);return u&&"button"!==u&&!("A"===e.tagName&&e.href)},se=y.useRef(!1),le=wu((function(e){b&&!se.current&&U&&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(),T&&T(e),e.target===e.currentTarget&&ae()&&"Enter"===e.key&&!p&&(e.preventDefault(),S&&S(e))})),ce=wu((function(e){b&&" "===e.key&&H.current&&U&&!e.defaultPrevented&&(se.current=!1,e.persist(),H.current.stop(e,(function(){H.current.pulsate(e)}))),R&&R(e),S&&e.target===e.currentTarget&&ae()&&" "===e.key&&!e.defaultPrevented&&S(e)})),ue=u;"button"===ue&&_.href&&(ue="a");var de={};"button"===ue?(de.type=$,de.disabled=p):("a"===ue&&_.href||(de.role="button"),de["aria-disabled"]=p);var pe=Su(r,t),fe=Su(Y,F),he=Su(pe,fe),me=y.useState(!1),ge=me[0],ye=me[1];y.useEffect((function(){ye(!0)}),[]);var ve=ge&&!h&&!p;return y.createElement(ue,Ii({className:gu(s.root,l,U&&[s.focusVisible,x],p&&s.disabled),onBlur:oe,onClick:S,onFocus:ie,onKeyDown:le,onKeyUp:ce,onMouseDown:J,onMouseLeave:ee,onMouseUp:Q,onDragLeave:Z,onTouchEnd:ne,onTouchMove:re,onTouchStart:te,ref:he,tabIndex:p?-1:L},de,_),a,ve?y.createElement(td,Ii({ref:H,center:i},z)):null)})),rd=pu({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"})(nd),od={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},id=y.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,h=void 0!==f&&f,m=e.paragraph,g=void 0!==m&&m,v=e.variant,b=void 0===v?"body1":v,x=e.variantMapping,w=void 0===x?od:x,S=Wi(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),C=l||(g?"p":w[b]||od[b])||"span";return y.createElement(C,Ii({className:gu(o.root,i,"inherit"!==b&&o[b],"initial"!==s&&o["color".concat(fu(s))],h&&o.noWrap,p&&o.gutterBottom,g&&o.paragraph,"inherit"!==r&&o["align".concat(fu(r))],"initial"!==u&&o["display".concat(fu(u))]),ref:t},S))})),ad=pu((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"})(id),sd=y.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,h=void 0!==f&&f,m=e.endIcon,g=e.focusVisibleClassName,v=e.fullWidth,b=void 0!==v&&v,x=e.size,w=void 0===x?"medium":x,S=e.startIcon,C=e.type,k=void 0===C?"button":C,E=e.variant,T=void 0===E?"text":E,R=Wi(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),M=S&&y.createElement("span",{className:gu(r.startIcon,r["iconSize".concat(fu(w))])},S),P=m&&y.createElement("span",{className:gu(r.endIcon,r["iconSize".concat(fu(w))])},m);return y.createElement(rd,Ii({className:gu(r.root,r[T],o,"inherit"===a?r.colorInherit:"default"!==a&&r["".concat(T).concat(fu(a))],"medium"!==w&&[r["".concat(T,"Size").concat(fu(w))],r["size".concat(fu(w))]],p&&r.disableElevation,u&&r.disabled,b&&r.fullWidth),component:l,disabled:u,focusRipple:!h,focusVisibleClassName:gu(r.focusVisible,g),ref:t,type:k},R),y.createElement("span",{className:r.label},M,n,P))})),ld=pu((function(e){return{root:Ii({},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:Bi(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:Bi(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Bi(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(Bi(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:Bi(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(Bi(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:Bi(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"})(sd);var cd="undefined"!=typeof window?y.useLayoutEffect:y.useEffect,ud=y.forwardRef((function(e,t){var n=e.children,r=e.container,o=e.disablePortal,i=void 0!==o&&o,a=e.onRendered,s=y.useState(null),l=s[0],c=s[1],u=Su(y.isValidElement(n)?n.ref:null,t);return cd((function(){i||c(function(e){return e="function"==typeof e?e():e,C.findDOMNode(e)}(r)||document.body)}),[r,i]),cd((function(){if(l&&!i)return bu(t,l),function(){bu(t,null)}}),[t,l,i]),cd((function(){a&&(l||i)&&a()}),[a,l,i]),i?y.isValidElement(n)?y.cloneElement(n,{ref:u}):n:l?C.createPortal(n,l):l})),dd=ud;function pd(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function fd(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function hd(e,t,n){var r=arguments.length>4?arguments[4]:void 0,o=[t,n].concat(la(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)&&pd(e,r)}))}function md(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function gd(e,t){var n,r=[],o=[],i=e.container;if(!t.disableScrollLock){if(function(e){var t=yu(e);return t.body===e?vu(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(fd(i)+a,"px"),n=yu(i).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){o.push(e.style.paddingRight),e.style.paddingRight="".concat(fd(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 yd=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 ka(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&&pd(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);hd(t,e.mountNode,e.modalRef,r,!0);var o=md(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=md(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=gd(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=md(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&&pd(e.modalRef,!0),hd(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&&pd(o.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();function vd(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=y.useRef(),p=y.useRef(null),f=y.useRef(null),h=y.useRef(),m=y.useRef(null),g=y.useCallback((function(e){m.current=C.findDOMNode(e)}),[]),v=Su(t.ref,g),b=y.useRef();return y.useEffect((function(){b.current=u}),[u]),!b.current&&u&&"undefined"!=typeof window&&(h.current=l().activeElement),y.useEffect((function(){if(u){var e=yu(m.current);r||!m.current||m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex",-1),m.current.focus());var t=function(){null!==m.current&&(e.hasFocus()&&!i&&c()&&!d.current?m.current&&!m.current.contains(e.activeElement)&&m.current.focus():d.current=!1)},n=function(t){!i&&c()&&9===t.keyCode&&e.activeElement===m.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||(h.current&&h.current.focus&&h.current.focus(),h.current=null)}}}),[r,i,s,c,u]),y.createElement(y.Fragment,null,y.createElement("div",{tabIndex:0,ref:p,"data-test":"sentinelStart"}),y.cloneElement(t,{ref:v}),y.createElement("div",{tabIndex:0,ref:f,"data-test":"sentinelEnd"}))}var bd={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"}},xd=y.forwardRef((function(e,t){var n=e.invisible,r=void 0!==n&&n,o=e.open,i=Wi(e,["invisible","open"]);return o?y.createElement("div",Ii({"aria-hidden":!0,ref:t},i,{style:Ii({},bd.root,r?bd.invisible:{},i.style)})):null}));var wd=new yd,Sd=y.forwardRef((function(e,t){var n=pc(),r=xa({name:"MuiModal",props:Ii({},e),theme:n}),o=r.BackdropComponent,i=void 0===o?xd: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,h=void 0!==f&&f,m=r.disableEnforceFocus,g=void 0!==m&&m,v=r.disableEscapeKeyDown,b=void 0!==v&&v,x=r.disablePortal,w=void 0!==x&&x,S=r.disableRestoreFocus,k=void 0!==S&&S,E=r.disableScrollLock,T=void 0!==E&&E,R=r.hideBackdrop,M=void 0!==R&&R,P=r.keepMounted,D=void 0!==P&&P,O=r.manager,I=void 0===O?wd:O,q=r.onBackdropClick,A=r.onClose,N=r.onEscapeKeyDown,L=r.onRendered,z=r.open,j=Wi(r,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),$=y.useState(!0),_=$[0],F=$[1],H=y.useRef({}),B=y.useRef(null),U=y.useRef(null),W=Su(U,t),V=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),G=function(){return yu(B.current)},K=function(){return H.current.modalRef=U.current,H.current.mountNode=B.current,H.current},Y=function(){I.mount(K(),{disableScrollLock:T}),U.current.scrollTop=0},X=wu((function(){var e=function(e){return e="function"==typeof e?e():e,C.findDOMNode(e)}(u)||G().body;I.add(K(),e),U.current&&Y()})),J=y.useCallback((function(){return I.isTopModal(K())}),[I]),Z=wu((function(e){B.current=e,e&&(L&&L(),z&&J()?Y():pd(U.current,!0))})),Q=y.useCallback((function(){I.remove(K())}),[I]);if(y.useEffect((function(){return function(){Q()}}),[Q]),y.useEffect((function(){z?X():V&&c||Q()}),[z,Q,V,c,X]),!D&&!z&&(!V||_))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:ma}),te={};return void 0===s.props.tabIndex&&(te.tabIndex=s.props.tabIndex||"-1"),V&&(te.onEnter=hu((function(){F(!1)}),s.props.onEnter),te.onExited=hu((function(){F(!0),c&&Q()}),s.props.onExited)),y.createElement(dd,{ref:Z,container:u,disablePortal:w},y.createElement("div",Ii({ref:W,onKeyDown:function(e){"Escape"===e.key&&J()&&(N&&N(e),b||(e.stopPropagation(),A&&A(e,"escapeKeyDown")))},role:"presentation"},j,{style:Ii({},ee.root,!z&&_?ee.hidden:{},j.style)}),M?null:y.createElement(i,Ii({open:z,onClick:function(e){e.target===e.currentTarget&&(q&&q(e),!h&&A&&A(e,"backdropClick"))}},a)),y.createElement(vd,{disableEnforceFocus:g,disableAutoFocus:p,disableRestoreFocus:k,getDoc:G,isEnabled:J,open:z},y.cloneElement(s,te))))})),Cd=Sd,kd=y.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,h=e.role,m=void 0===h?"hr"!==s?"separator":void 0:h,g=e.variant,v=void 0===g?"fullWidth":g,b=Wi(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return y.createElement(s,Ii({className:gu(o.root,i,"fullWidth"!==v&&o[v],r&&o.absolute,c&&o.flexItem,d&&o.light,"vertical"===f&&o.vertical),role:m,ref:t},b))})),Ed=pu((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:Bi(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"})(kd);function Td(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var Rd={entering:{opacity:1,transform:Td(1)},entered:{opacity:1,transform:"none"}},Md=y.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,h=void 0===f?"auto":f,m=e.TransitionComponent,g=void 0===m?Hu:m,v=Wi(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),b=y.useRef(),x=y.useRef(),w=pc()||uu,S=w.unstable_strictMode&&!o,C=y.useRef(null),k=Su(n.ref,t),E=Su(S?C:void 0,k),T=function(e){return function(t,n){if(e){var r=ca(S?[C.current,t]:[t,n],2),o=r[0],i=r[1];void 0===i?e(o):e(o,i)}}},R=T(l),M=T((function(e,t){!function(e){e.scrollTop}(e);var n,r=Yu({style:p,timeout:h},{mode:"enter"}),o=r.duration,i=r.delay;"auto"===h?(n=w.transitions.getAutoHeightDuration(e.clientHeight),x.current=n):n=o,e.style.transition=[w.transitions.create("opacity",{duration:n,delay:i}),w.transitions.create("transform",{duration:.666*n,delay:i})].join(","),a&&a(e,t)})),P=T(s),D=T(d),O=T((function(e){var t,n=Yu({style:p,timeout:h},{mode:"exit"}),r=n.duration,o=n.delay;"auto"===h?(t=w.transitions.getAutoHeightDuration(e.clientHeight),x.current=t):t=r,e.style.transition=[w.transitions.create("opacity",{duration:t,delay:o}),w.transitions.create("transform",{duration:.666*t,delay:o||.333*t})].join(","),e.style.opacity="0",e.style.transform=Td(.75),c&&c(e)})),I=T(u);return y.useEffect((function(){return function(){clearTimeout(b.current)}}),[]),y.createElement(g,Ii({appear:!0,in:i,nodeRef:S?C:void 0,onEnter:M,onEntered:P,onEntering:R,onExit:O,onExited:I,onExiting:D,addEndListener:function(e,t){var n=S?e:t;"auto"===h&&(b.current=setTimeout(n,x.current||0))},timeout:"auto"===h?null:h},v),(function(e,t){return y.cloneElement(n,Ii({style:Ii({opacity:0,transform:Td(.75),visibility:"exited"!==e||i?void 0:"hidden"},Rd[e],p,n.props.style),ref:E},t))}))}));Md.muiSupportAuto=!0;var Pd=Md,Dd=y.createContext({}),Od=y.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=Wi(e,["children","classes","className","component","dense","disablePadding","subheader"]),f=y.useMemo((function(){return{dense:l}}),[l]);return y.createElement(Dd.Provider,{value:f},y.createElement(a,Ii({className:gu(r.root,o,l&&r.dense,!u&&r.padding,d&&r.subheader),ref:t},p),d,n))})),Id=pu({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(Od),qd="undefined"==typeof window?y.useEffect:y.useLayoutEffect,Ad=y.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,h=e.ContainerProps,m=(h=void 0===h?{}:h).className,g=Wi(h,["className"]),v=e.dense,b=void 0!==v&&v,x=e.disabled,w=void 0!==x&&x,S=e.disableGutters,k=void 0!==S&&S,E=e.divider,T=void 0!==E&&E,R=e.focusVisibleClassName,M=e.selected,P=void 0!==M&&M,D=Wi(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),O=y.useContext(Dd),I={dense:b||O.dense||!1,alignItems:r},q=y.useRef(null);qd((function(){i&&q.current&&q.current.focus()}),[i]);var A,N,L=y.Children.toArray(l),z=L.length&&(A=L[L.length-1],N=["ListItemSecondaryAction"],y.isValidElement(A)&&-1!==N.indexOf(A.type.muiName)),j=Su(y.useCallback((function(e){q.current=C.findDOMNode(e)}),[]),t),$=Ii({className:gu(c.root,u,I.dense&&c.dense,!k&&c.gutters,T&&c.divider,w&&c.disabled,s&&c.button,"center"!==r&&c.alignItemsFlexStart,z&&c.secondaryAction,P&&c.selected),disabled:w},D),_=d||"li";return s&&($.component=d||"div",$.focusVisibleClassName=gu(c.focusVisible,R),_=rd),z?(_=$.component||d?_:"div","li"===f&&("li"===_?_="div":"li"===$.component&&($.component="div")),y.createElement(Dd.Provider,{value:I},y.createElement(f,Ii({className:gu(c.container,m),ref:j},g),y.createElement(_,$,L),L.pop()))):y.createElement(Dd.Provider,{value:I},y.createElement(_,Ii({ref:j},$),L))})),Nd=pu((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"})(Ad),Ld=y.forwardRef((function(e,t){var n=e.classes,r=e.className,o=Wi(e,["classes","className"]),i=y.useContext(Dd);return y.createElement("div",Ii({className:gu(n.root,r,"flex-start"===i.alignItems&&n.alignItemsFlexStart),ref:t},o))})),zd=pu((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(Ld),jd=y.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=Wi(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),h=y.useContext(Dd).dense,m=null!=c?c:n;null==m||m.type===ad||a||(m=y.createElement(ad,Ii({variant:h?"body2":"body1",className:r.primary,component:"span",display:"block"},u),m));var g=d;return null==g||g.type===ad||a||(g=y.createElement(ad,Ii({variant:"body2",className:r.secondary,color:"textSecondary",display:"block"},p),g)),y.createElement("div",Ii({className:gu(r.root,o,h&&r.dense,l&&r.inset,m&&g&&r.multiline),ref:t},f),m,g)})),$d=pu({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(jd);function _d(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Fd(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Hd(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function Bd(e){return"function"==typeof e?e():e}var Ud=y.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,h=void 0===f?8:f,m=e.getContentAnchorEl,g=e.marginThreshold,v=void 0===g?16:g,b=e.onEnter,x=e.onEntered,w=e.onEntering,S=e.onExit,k=e.onExited,E=e.onExiting,T=e.open,R=e.PaperProps,M=void 0===R?{}:R,P=e.transformOrigin,D=void 0===P?{vertical:"top",horizontal:"left"}:P,O=e.TransitionComponent,I=void 0===O?Pd:O,q=e.transitionDuration,A=void 0===q?"auto":q,N=e.TransitionProps,L=void 0===N?{}:N,z=Wi(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=y.useRef(),$=y.useCallback((function(e){if("anchorPosition"===l)return a;var t=Bd(r),n=(t&&1===t.nodeType?t:yu(j.current).body).getBoundingClientRect(),o=0===e?i.vertical:"center";return{top:n.top+_d(n,o),left:n.left+Fd(n,i.horizontal)}}),[r,i.horizontal,i.vertical,a,l]),_=y.useCallback((function(e){var t=0;if(m&&"anchorEl"===l){var n=m(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}}return t}),[i.vertical,l,m]),F=y.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:_d(e,D.vertical)+t,horizontal:Fd(e,D.horizontal)}}),[D.horizontal,D.vertical]),H=y.useCallback((function(e){var t=_(e),n={width:e.offsetWidth,height:e.offsetHeight},o=F(n,t);if("none"===l)return{top:null,left:null,transformOrigin:Hd(o)};var i=$(t),a=i.top-o.vertical,s=i.left-o.horizontal,c=a+n.height,u=s+n.width,d=vu(Bd(r)),p=d.innerHeight-v,f=d.innerWidth-v;if(a<v){var h=a-v;a-=h,o.vertical+=h}else if(c>p){var m=c-p;a-=m,o.vertical+=m}if(s<v){var g=s-v;s-=g,o.horizontal+=g}else if(u>f){var y=u-f;s-=y,o.horizontal+=y}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:Hd(o)}}),[r,l,$,_,F,v]),B=y.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]),U=y.useCallback((function(e){j.current=C.findDOMNode(e)}),[]);y.useEffect((function(){T&&B()})),y.useImperativeHandle(n,(function(){return T?{updatePosition:function(){B()}}:null}),[T,B]),y.useEffect((function(){if(T){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(){B()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[T,B]);var W=A;"auto"!==A||I.muiSupportAuto||(W=void 0);var V=p||(r?yu(Bd(r)).body:void 0);return y.createElement(Cd,Ii({container:V,open:T,ref:t,BackdropProps:{invisible:!0},className:gu(u.root,d)},z),y.createElement(I,Ii({appear:!0,in:T,onEnter:b,onEntered:x,onExit:S,onExited:k,onExiting:E,timeout:W},L,{onEntering:hu((function(e,t){w&&w(e,t),B()}),L.onEntering)}),y.createElement(Ju,Ii({elevation:h,ref:U},M,{className:gu(u.paper,M.className)}),c)))})),Wd=pu({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(Ud);function Vd(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function Gd({d:e,size:t,style:n={},viewBox:r="0 0 16 16"}){const o={fontSize:Vd(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",...n};return g.createElement("i",{style:o},g.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},g.createElement("path",{d:e})))}const Kd={menuItem:"alternative-menu-item"},Yd=e=>{const{nested:t,className:n,...r}=e,o=(({nested:e,dir:t})=>wc((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 g.createElement(Nd,bi({className:`${o.root} ${n}`},r))},Xd=e=>{if("Tab"===e.key){const t=document.querySelectorAll(`.${Kd.menuItem}`);let n;e.shiftKey?null!=t&&t.length&&t[0]===e.target&&(n=t[t.length-1]):null!=t&&t.length&&t[t.length-1]===e.target&&([n]=t),n&&setTimeout((()=>{n.focus()}),50)}};function Jd({title:e,selected:t,onClick:n,nested:r,icon:o,bold:i,dir:a}){const s=ve.detectTextDirection(e);return g.createElement(Yd,{nested:r,role:"menuitem",button:!0,onClick:n,className:Kd.menuItem,onKeyDown:Xd,dir:a,autoFocus:t},g.createElement($d,{primary:e,primaryTypographyProps:{dir:s,...i&&{style:{fontWeight:600}}}}),g.createElement(zd,{style:{minWidth:16}},g.createElement(Gd,{d:t?ri.d:""})),o&&g.createElement(zd,{style:{minWidth:16}},g.createElement(Gd,{d:o.d})))}Jd.propTypes={title:Ci.string.isRequired,selected:Ci.bool,onClick:Ci.func.isRequired,nested:Ci.bool,icon:Ci.shape({d:Ci.string.isRequired}),bold:Ci.bool,dir:Ci.string.isRequired},Jd.defaultProps={selected:!1,nested:!1,icon:void 0,bold:!1},Yd.propTypes={nested:Ci.bool,className:Ci.string},Yd.defaultProps={nested:!1,className:Kd.menuItem};const Zd={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 Qd({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 g.createElement(g.Fragment,{key:t.id},g.createElement(Jd,{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&&g.createElement(Id,{dense:!0,dir:r,component:"div",disablePadding:!0},t.children.map((e=>g.createElement(Jd,{key:e.id,nested:!0,title:e.title,selected:e.selected,onClick:()=>{e.onSelect(),a(t.id)},dir:r})))),o<i.length-1&&g.createElement(Ed,{key:`divider-${t.id}`}))}));return g.createElement(Wd,bi({anchorEl:t,open:s,onClose:a},Zd[o],{PaperProps:{style:{minWidth:"250px",maxHeight:"300px"}}}),g.createElement(Id,{dense:!0,disablePadding:!0,dir:r,"aria-label":l,component:"nav"},c))}Qd.propTypes={chartId:Ci.string.isRequired,alignTo:Ci.any,currentId:Ci.string.isRequired,dir:Ci.string.isRequired,dock:Ci.string.isRequired,list:Ci.array,onClose:Ci.func.isRequired,show:Ci.bool.isRequired,instruction:Ci.string.isRequired},Qd.defaultProps={list:[],alignTo:null};const ep="title-button",tp="active-title-button",np=du((({children:e,...t})=>g.createElement(ld,bi({size:"small",disableRipple:!0,disableTouchRipple:!0},t),e)))((()=>({"&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"}}))),rp=du(ld)((()=>({borderRadius:"4px",width:"24px",height:"24px",minWidth:"22px",padding:0})));class op extends g.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=g.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(`.${ep}`);t&&(t.focus(),t.classList.add(tp))}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(`.${ep}[data-id="${e}"]`);t&&t.focus()}),1e3);else{const e=document.querySelector(`.${tp}`);e&&(e.classList.remove(tp),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,h=t.breadcrumbs.map(((e,n)=>g.createElement(np,{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},g.createElement("span",{style:d},e),g.createElement(Gd,bi({},ii,{size:"small",style:{margin:"0 8px"}}))))),m=c||u?this.state.hasPopoverOptions:l,y=n&&!this.state.open?this.openPopover:this.closePopover,v=!n||o||this.state.inSelection,b={display:"flex",alignItems:"center",width:"100%",color:v&&"rgba(89, 89, 89, 0.8)",height:"100%",border:!i&&v&&"none",...a?{padding:a}:{paddingTop:0,paddingBottom:0},...s&&{minWidth:s}};this.state.open&&(b.background="rgba(0,0,0,0.08)");const x=()=>{this.setState({disableCyclicButton:!0})},w=ve.detectTextDirection(t.text),S=g.createElement(np,{"aria-label":r.get(`Accessibility.${n&&m?"Alternative":"Normal"}.Instructions`,[t.text]),style:b,onClick:v?void 0:y,title:t.text,tabIndex:v?-1:0,onFocus:v?void 0:e=>{e.currentTarget.style.boxShadow="0px 0px 0px 2px #177FE6 inset",e.currentTarget.style.borderRadius="2px"},onBlur:v?void 0:e=>{e.currentTarget.style.boxShadow="none",e.currentTarget.style.borderRadius="0px"},onMouseDown:e=>{e.preventDefault()},className:`${ep} ${t.id}`,"data-id":`${e}-${t.id}`},t.locked&&g.createElement(Gd,bi({},ni,{size:"small",title:r.get("Tooltip.selections.locked")})),g.createElement("span",{style:d,dir:w},t.text),n&&m&&g.createElement(Gd,bi({},oi,{size:"small",style:{margin:"0 8px"}})));return g.createElement(g.Fragment,null,t.icon&&t.icon.onClick&&g.createElement(rp,{variant:"outlined",disabled:this.state.disableCyclicButton||this.state.inSelection,onClick:o?void 0:()=>t.icon.onClick({onError:x})},g.createElement(Gd,bi({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip)}))),t.icon&&!t.icon.onClick&&g.createElement(Gd,bi({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip),style:{margin:"0 4px 0 0"}})),h,g.createElement("div",{ref:this.alignToRef,style:{overflow:"hidden",pointerEvents:m?"auto":"none",height:"100%"}},S),n&&m&&g.createElement(Qd,{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 ip(e){return{top:"bottom",bottom:"top",left:"right",right:"left"}[e]}function ap(e){function t(e){return!e.isDimension&&fe.getValue(e,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.length")>0}return{renderer:"react",disableTriggers:!0,preferredSize:function(){const{height:n}=e.measureText({text:"M",fontSize:this.style.fontSize,fontFamily:this.style.fontFamily});return this.settings.settings.isDimension||t(this.settings.settings)?Math.max(28,n):Math.max(20,n)},render(){const{settings:{app:e,disabled:n,explicitItemInfos:r,hyperCube:o,hyperCubeDef:i,isDimension:a,minWidth:s,model:l,onChangeToAlternative:c,padding:u,rtl:d,selections:p,skipAttributeExpressions:f,translator:h,supportConditional:m=!1},layout:{dock:y}}=this.settings,v="top"!==y&&"bottom"!==y||!d?"ltr":"rtl",b=function(e,t){const n={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",height:"100%"};return"left"===e?(n.width=`${t.height}px`,n.height=`${t.width}px`,n.transform=`rotate(-90deg) translate(-${t.height}px, 0)`,n.transformOrigin="top left"):"right"===e&&(n.width=`${t.height}px`,n.height=`${t.width}px`,n.transform=`rotate(90deg) translate(0, -${t.width}px)`,n.transformOrigin="top left"),n}(y,this.rect),x=i&&i.qLayoutExclude&&i.qLayoutExclude.qHyperCubeDef,w=x&&x[a?"qDimensions":"qMeasures"]||[],S=r||o[a?"qDimensionInfo":"qMeasureInfo"],C=a?mi:yi,k=a?gi:vi,E=Boolean(l&&l.colorSupport&&l.modifiers),T=E&&((R=this.settings.settings).isDimension&&fe.getValue(R,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.length")>0||t(this.settings.settings));var R;const M=S.map(((t,r)=>{var o;const i="number"==typeof t.explicitColumn?t.explicitColumn:r,v=k(t,i,l,e),b=r===S.length-1,x=Boolean(e)&&a&&"N"!==t.qGrouping,R=E||x?C({column:i,activeInfo:t,altList:w,app:e,dir:d?"rtl":"ltr",dock:ip(y),model:l,onChange:c,skipAttributeExpressions:f,translator:h,allowChangeOfAlternatives:E}):void 0;return g.createElement(g.Fragment,{key:t.cId},g.createElement(op,{chartId:null!==(o=null==l?void 0:l.id)&&void 0!==o?o:"",showGroupDimOptions:x,popover:R,titleData:v,model:l,translator:h,selections:p,disabled:n(),style:this.style,isDimension:a,padding:u,minWidth:s,hasAlternative:T,supportConditional:m}),!b&&g.createElement("span",{style:{lineHeight:"normal",...this.style}},", "))}));return g.createElement("div",{style:b,dir:v},M)}}}op.propTypes={chartId:Ci.string.isRequired,disabled:Ci.bool.isRequired,padding:Ci.string,minWidth:Ci.string,titleData:Ci.shape({breadcrumbs:Ci.arrayOf(Ci.string).isRequired,icon:Ci.shape({path:Ci.shape({d:Ci.string.isRequired}),tooltip:Ci.string.isRequired,onClick:Ci.func}),index:Ci.number.isRequired,locked:Ci.bool.isRequired,text:Ci.string.isRequired,popoverText:Ci.string.isRequired,drillUp:Ci.func,id:Ci.string.isRequired}).isRequired,popover:Ci.shape({dir:Ci.string.isRequired,dock:Ci.string.isRequired,getPopoverOptions:Ci.func.isRequired}),translator:Ci.shape({get:Ci.func.isRequired}).isRequired,selections:Ci.shape({isActive:Ci.func,addListener:Ci.func,removeListener:Ci.func}),style:Ci.shape({fontSize:Ci.string,color:Ci.string,fontFamily:Ci.string}).isRequired,isDimension:Ci.bool.isRequired,hasAlternative:Ci.bool.isRequired,supportConditional:Ci.bool.isRequired,showGroupDimOptions:Ci.bool.isRequired},op.defaultProps={popover:null,selections:null,padding:"",minWidth:""};const sp=ga({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 lp=ba({productionPrefix:"q5528",disableGlobal:!0,seed:""});function cp(){function e({x:e,y:t,width:n,height:r,scaleRatio:o,margin:i}={}){const a={x:0,y:0,width:0,height:0,scaleRatio:{x:1,y:1},margin:{left:0,top:0}};return a.x=Number.isNaN(e)?a.x:e,a.y=Number.isNaN(t)?a.y:t,a.width=Number.isNaN(n)?a.width:n,a.height=Number.isNaN(r)?a.height:r,void 0!==o&&(a.scaleRatio.x=Number.isNaN(o.x)?a.scaleRatio.x:o.x,a.scaleRatio.y=Number.isNaN(o.y)?a.scaleRatio.y:o.y),void 0!==i&&(a.margin.left=Number.isNaN(i.left)?0:i.left,a.margin.top=Number.isNaN(i.top)?0:i.top),a}return function(t={}){const{createElement:n=document.createElement.bind(document)}=t;let r,o=e();const i={element:()=>r,root:()=>r,appendTo:e=>(r||(r=n("div"),r.style.position="absolute",r.style["-webkit-font-smoothing"]="antialiased",r.style["-moz-osx-font-smoothing"]="antialiased",r.style.pointerEvents="none"),e.appendChild(r),r),render(e){if(!r)return!1;const t=o.scaleRatio.x,n=o.scaleRatio.y;return r.style.left=`${Math.round(o.margin.left+o.x*t)}px`,r.style.top=`${Math.round(o.margin.top+o.y*n)}px`,r.style.width=`${Math.round(o.width)}px`,r.style.height=`${Math.round(o.height)}px`,r.style.transform=`scale(${t}, ${n})`,r.style.transformOrigin="top left",k.render(function(e,t){return g.createElement(yc,{generateClassName:t},g.createElement(lu,{theme:sp},e))}(e,lp),r),!0},itemsAt:()=>[],findShapes:()=>[],clear:()=>(r&&k.unmountComponentAtNode(r),i),destroy(){r&&r.parentElement&&(k.unmountComponentAtNode(r),r.parentElement.removeChild(r)),r=null},size:t=>(t&&(o=e(t)),o)};return i}}var up={black:"#000",white:"#fff"};var dp={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var pp={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var fp={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var hp={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var mp={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};var gp={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var yp={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 vp(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 bp=Object.freeze({__proto__:null,default:vp}),xp="$$material";function wp(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Sp=/^((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)-.*))$/,Cp=wp((function(e){return Sp.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var kp=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}(),Ep="-ms-",Tp="-moz-",Rp="-webkit-",Mp="comm",Pp="rule",Dp="decl",Op="@keyframes",Ip=Math.abs,qp=String.fromCharCode,Ap=Object.assign;function Np(e){return e.trim()}function Lp(e,t,n){return e.replace(t,n)}function zp(e,t){return e.indexOf(t)}function jp(e,t){return 0|e.charCodeAt(t)}function $p(e,t,n){return e.slice(t,n)}function _p(e){return e.length}function Fp(e){return e.length}function Hp(e,t){return t.push(e),e}var Bp=1,Up=1,Wp=0,Vp=0,Gp=0,Kp="";function Yp(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Bp,column:Up,length:a,return:""}}function Xp(e,t){return Ap(Yp("",null,null,"",null,null,0),e,{length:-e.length},t)}function Jp(){return Gp=Vp>0?jp(Kp,--Vp):0,Up--,10===Gp&&(Up=1,Bp--),Gp}function Zp(){return Gp=Vp<Wp?jp(Kp,Vp++):0,Up++,10===Gp&&(Up=1,Bp++),Gp}function Qp(){return jp(Kp,Vp)}function ef(){return Vp}function tf(e,t){return $p(Kp,e,t)}function nf(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 rf(e){return Bp=Up=1,Wp=_p(Kp=e),Vp=0,[]}function of(e){return Kp="",e}function af(e){return Np(tf(Vp-1,cf(91===e?e+2:40===e?e+1:e)))}function sf(e){for(;(Gp=Qp())&&Gp<33;)Zp();return nf(e)>2||nf(Gp)>3?"":" "}function lf(e,t){for(;--t&&Zp()&&!(Gp<48||Gp>102||Gp>57&&Gp<65||Gp>70&&Gp<97););return tf(e,ef()+(t<6&&32==Qp()&&32==Zp()))}function cf(e){for(;Zp();)switch(Gp){case e:return Vp;case 34:case 39:34!==e&&39!==e&&cf(Gp);break;case 40:41===e&&cf(e);break;case 92:Zp()}return Vp}function uf(e,t){for(;Zp()&&e+Gp!==57&&(e+Gp!==84||47!==Qp()););return"/*"+tf(t,Vp-1)+"*"+qp(47===e?e:Zp())}function df(e){for(;!nf(Qp());)Zp();return tf(e,Vp)}function pf(e){return of(ff("",null,null,null,[""],e=rf(e),0,[0],e))}function ff(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,h=0,m=1,g=1,y=1,v=0,b="",x=o,w=i,S=r,C=b;g;)switch(h=v,v=Zp()){case 40:if(108!=h&&58==jp(C,d-1)){-1!=zp(C+=Lp(af(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:C+=af(v);break;case 9:case 10:case 13:case 32:C+=sf(h);break;case 92:C+=lf(ef()-1,7);continue;case 47:switch(Qp()){case 42:case 47:Hp(mf(uf(Zp(),ef()),t,n),l);break;default:C+="/"}break;case 123*m:s[c++]=_p(C)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==y&&(C=Lp(C,/\f/g,"")),f>0&&_p(C)-d&&Hp(f>32?gf(C+";",r,n,d-1):gf(Lp(C," ","")+";",r,n,d-2),l);break;case 59:C+=";";default:if(Hp(S=hf(C,t,n,c,u,o,s,b,x=[],w=[],d),i),123===v)if(0===u)ff(C,t,S,S,x,i,d,s,w);else switch(99===p&&110===jp(C,3)?100:p){case 100:case 108:case 109:case 115:ff(e,S,S,r&&Hp(hf(e,S,S,0,0,o,s,b,o,x=[],d),w),o,w,d,s,r?x:w);break;default:ff(C,S,S,S,[""],w,0,s,w)}}c=u=f=0,m=y=1,b=C="",d=a;break;case 58:d=1+_p(C),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==Jp())continue;switch(C+=qp(v),v*m){case 38:y=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(_p(C)-1)*y,y=1;break;case 64:45===Qp()&&(C+=af(Zp())),p=Qp(),u=d=_p(b=C+=df(ef())),v++;break;case 45:45===h&&2==_p(C)&&(m=0)}}return i}function hf(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,p=0===o?i:[""],f=Fp(p),h=0,m=0,g=0;h<r;++h)for(var y=0,v=$p(e,d+1,d=Ip(m=a[h])),b=e;y<f;++y)(b=Np(m>0?p[y]+" "+v:Lp(v,/&\f/g,p[y])))&&(l[g++]=b);return Yp(e,t,n,0===o?Pp:s,l,c,u)}function mf(e,t,n){return Yp(e,t,n,Mp,qp(Gp),$p(e,2,-2),0)}function gf(e,t,n,r){return Yp(e,t,n,Dp,$p(e,0,r),$p(e,r+1,-1),r)}function yf(e,t){for(var n="",r=Fp(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function vf(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Dp:return e.return=e.return||e.value;case Mp:return"";case Op:return e.return=e.value+"{"+yf(e.children,r)+"}";case Pp:e.value=e.props.join(",")}return _p(n=yf(e.children,r))?e.return=e.value+"{"+n+"}":""}function bf(e){var t=Fp(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}var xf="undefined"!=typeof document,wf=function(e,t,n){for(var r=0,o=0;r=o,o=Qp(),38===r&&12===o&&(t[n]=1),!nf(o);)Zp();return tf(e,Vp)},Sf=function(e,t){return of(function(e,t){var n=-1,r=44;do{switch(nf(r)){case 0:38===r&&12===Qp()&&(t[n]=1),e[n]+=wf(Vp-1,t,n);break;case 2:e[n]+=af(r);break;case 4:if(44===r){e[++n]=58===Qp()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=qp(r)}}while(r=Zp());return e}(rf(e),t))},Cf=new WeakMap,kf=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)||Cf.get(n))&&!r){Cf.set(e,!0);for(var o=[],i=Sf(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]}}},Ef=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Tf(e,t){switch(function(e,t){return 45^jp(e,0)?(((t<<2^jp(e,0))<<2^jp(e,1))<<2^jp(e,2))<<2^jp(e,3):0}(e,t)){case 5103:return Rp+"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 Rp+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Rp+e+Tp+e+Ep+e+e;case 6828:case 4268:return Rp+e+Ep+e+e;case 6165:return Rp+e+Ep+"flex-"+e+e;case 5187:return Rp+e+Lp(e,/(\w+).+(:[^]+)/,Rp+"box-$1$2"+Ep+"flex-$1$2")+e;case 5443:return Rp+e+Ep+"flex-item-"+Lp(e,/flex-|-self/,"")+e;case 4675:return Rp+e+Ep+"flex-line-pack"+Lp(e,/align-content|flex-|-self/,"")+e;case 5548:return Rp+e+Ep+Lp(e,"shrink","negative")+e;case 5292:return Rp+e+Ep+Lp(e,"basis","preferred-size")+e;case 6060:return Rp+"box-"+Lp(e,"-grow","")+Rp+e+Ep+Lp(e,"grow","positive")+e;case 4554:return Rp+Lp(e,/([^-])(transform)/g,"$1"+Rp+"$2")+e;case 6187:return Lp(Lp(Lp(e,/(zoom-|grab)/,Rp+"$1"),/(image-set)/,Rp+"$1"),e,"")+e;case 5495:case 3959:return Lp(e,/(image-set\([^]*)/,Rp+"$1$`$1");case 4968:return Lp(Lp(e,/(.+:)(flex-)?(.*)/,Rp+"box-pack:$3"+Ep+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Rp+e+e;case 4095:case 3583:case 4068:case 2532:return Lp(e,/(.+)-inline(.+)/,Rp+"$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(_p(e)-1-t>6)switch(jp(e,t+1)){case 109:if(45!==jp(e,t+4))break;case 102:return Lp(e,/(.+:)(.+)-([^]+)/,"$1"+Rp+"$2-$3$1"+Tp+(108==jp(e,t+3)?"$3":"$2-$3"))+e;case 115:return~zp(e,"stretch")?Tf(Lp(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==jp(e,t+1))break;case 6444:switch(jp(e,_p(e)-3-(~zp(e,"!important")&&10))){case 107:return Lp(e,":",":"+Rp)+e;case 101:return Lp(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Rp+(45===jp(e,14)?"inline-":"")+"box$3$1"+Rp+"$2$3$1"+Ep+"$2box$3")+e}break;case 5936:switch(jp(e,t+11)){case 114:return Rp+e+Ep+Lp(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Rp+e+Ep+Lp(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Rp+e+Ep+Lp(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Rp+e+Ep+e+e}return e}var Rf=xf?void 0:function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}((function(){return wp((function(){var e={};return function(t){return e[t]}}))})),Mf=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Dp:e.return=Tf(e.value,e.length);break;case Op:return yf([Xp(e,{value:Lp(e.value,"@","@"+Rp)})],r);case Pp: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 yf([Xp(e,{props:[Lp(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return yf([Xp(e,{props:[Lp(t,/:(plac\w+)/,":"+Rp+"input-$1")]}),Xp(e,{props:[Lp(t,/:(plac\w+)/,":-moz-$1")]}),Xp(e,{props:[Lp(t,/:(plac\w+)/,Ep+"input-$1")]})],r)}return""}))}}],Pf=function(e){var t=e.key;if(xf&&"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||Mf,a={},s=[];xf&&(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=[kf,Ef];if(xf){var u,d=[vf,(l=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&l(e)})],p=bf(c.concat(i,d));o=function(e,t,n,r){u=n,function(e){yf(pf(e),p)}(e?e+"{"+t.styles+"}":t.styles),r&&(y.inserted[t.name]=!0)}}else{var f=[vf],h=bf(c.concat(i,f)),m=Rf(i)(t),g=function(e,t){var n=t.name;return void 0===m[n]&&(m[n]=function(e){return yf(pf(e),h)}(e?e+"{"+t.styles+"}":t.styles)),m[n]};o=function(e,t,n,r){var o=t.name,i=g(e,t);return void 0===y.compat?(r&&(y.inserted[o]=!0),i):r?void(y.inserted[o]=i):i}}var y={key:t,sheet:new kp({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 y.sheet.hydrate(s),y},Df="undefined"!=typeof document;var Of=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===Df&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},If=function(e,t,n){Of(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o="",i=t;do{var a=e.insert(t===i?"."+r:"",i,e.sheet,!0);Df||void 0===a||(o+=a),i=i.next}while(void 0!==i);if(!Df&&0!==o.length)return o}};var qf={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},Af=!1,Nf=/[A-Z]|^ms/g,Lf=/_EMO_([^_]+?)_([^]*?)_EMO_/g,zf=function(e){return 45===e.charCodeAt(1)},jf=function(e){return null!=e&&"boolean"!=typeof e},$f=wp((function(e){return zf(e)?e:e.replace(Nf,"-$&").toLowerCase()})),_f=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Lf,(function(e,t,n){return Bf={name:t,styles:n,next:Bf},t}))}return 1===qf[e]||zf(e)||"number"!=typeof t||0===t?t:t+"px"},Ff="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Hf(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 Bf={name:o.name,styles:o.styles,next:Bf},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)Bf={name:a.name,styles:a.styles,next:Bf},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+=Hf(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]+"}":jf(s)&&(r+=$f(i)+":"+_f(i,s)+";")}else{if("NO_COMPONENT_SELECTOR"===i&&Af)throw new Error(Ff);if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=Hf(e,t,a);switch(i){case"animation":case"animationName":r+=$f(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var c=0;c<a.length;c++)jf(a[c])&&(r+=$f(i)+":"+_f(i,a[c])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var s=Bf,l=n(e);return Bf=s,Hf(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var Bf,Uf=/label:\s*([^\s;{]+)\s*(;|$)/g;function Wf(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="";Bf=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=Hf(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=Hf(n,t,e[a]),r)o+=i[a]}Uf.lastIndex=0;for(var s,l="";null!==(s=Uf.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:Bf}}var Vf="undefined"!=typeof document,Gf=function(e){return e()},Kf=!!y.useInsertionEffect&&y.useInsertionEffect,Yf=Vf&&Kf||Gf,Xf=Kf||y.useLayoutEffect,Jf="undefined"!=typeof document,Zf=y.createContext("undefined"!=typeof HTMLElement?Pf({key:"css"}):null),Qf=Zf.Provider,eh=function(e){return w((function(t,n){var r=S(Zf);return e(t,r,n)}))};Jf||(eh=function(e){return function(t){var n=S(Zf);return null===n?(n=Pf({key:"css"}),y.createElement(Zf.Provider,{value:n},e(t,n))):e(t,n)}});var th=y.createContext({}),nh=eh((function(e,t){var n=Wf([e.styles],void 0,y.useContext(th));if(!Jf){for(var r,o=n.name,i=n.styles,a=n.next;void 0!==a;)o+=" "+a.name,i+=a.styles,a=a.next;var s=!0===t.compat,l=t.insert("",{name:o,styles:i},t.sheet,s);return s?null:y.createElement("style",((r={})["data-emotion"]=t.key+"-global "+o,r.dangerouslySetInnerHTML={__html:l},r.nonce=t.sheet.nonce,r))}var c=y.useRef();return Xf((function(){var e=t.key+"-global",r=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,i=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==i&&(o=!0,i.setAttribute("data-emotion",e),r.hydrate([i])),c.current=[r,o],function(){r.flush()}}),[t]),Xf((function(){var e=c.current,r=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&If(t,n.next,!0),r.tags.length){var o=r.tags[r.tags.length-1].nextElementSibling;r.before=o,r.flush()}t.insert("",n,r,!1)}}),[t,n.name]),null}));function rh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Wf(t)}var oh=function(){var e=rh.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_"}}},ih=Cp,ah=function(e){return"theme"!==e},sh=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?ih:ah},lh=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},ch="undefined"!=typeof document,uh=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;Of(t,n,r);var o=Yf((function(){return If(t,n,r)}));if(!ch&&void 0!==o){for(var i,a=n.name,s=n.next;void 0!==s;)a+=" "+s.name,s=s.next;return y.createElement("style",((i={})["data-emotion"]=t.key+" "+a,i.dangerouslySetInnerHTML={__html:o},i.nonce=t.sheet.nonce,i))}return null},dh=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=lh(t,n,i),l=s||sh(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{d.push(u[0][0]);for(var p=u.length,f=1;f<p;f++)d.push(u[f],u[0][f])}var h=eh((function(e,t,n){var r,i,u,p,f=c&&e.as||a,h="",m=[],g=e;if(null==e.theme){for(var v in g={},e)g[v]=e[v];g.theme=y.useContext(th)}"string"==typeof e.className?(r=t.registered,i=m,u=e.className,p="",u.split(" ").forEach((function(e){void 0!==r[e]?i.push(r[e]+";"):e&&(p+=e+" ")})),h=p):null!=e.className&&(h=e.className+" ");var b=Wf(d.concat(m),t.registered,g);h+=t.key+"-"+b.name,void 0!==o&&(h+=" "+o);var x=c&&void 0===s?sh(f):l,w={};for(var S in e)c&&"as"===S||x(S)&&(w[S]=e[S]);return w.className=h,n&&(w.ref=n),y.createElement(y.Fragment,null,y.createElement(uh,{cache:t,serialized:b,isStringTag:"string"==typeof f}),y.createElement(f,w))}));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,Ii({},n,r,{shouldForwardProp:lh(h,r,!0)})).apply(void 0,d)},h}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){dh[e]=dh(e)}));var ph={exports:{}},fh={},hh=g,mh=Symbol.for("react.element"),gh=Symbol.for("react.fragment"),yh=Object.prototype.hasOwnProperty,vh=hh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,bh={key:!0,ref:!0,__self:!0,__source:!0};function xh(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)yh.call(t,r)&&!bh.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:mh,type:e,key:i,ref:a,props:o,_owner:vh.current}}fh.Fragment=gh,fh.jsx=xh,fh.jsxs=xh,ph.exports=fh;var wh=ph.exports;let Sh;"object"==typeof document&&(Sh=Pf({key:"css",prepend:!0}));var Ch=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 wh.jsx(nh,{styles:r})}
|
|
15
15
|
/**
|
|
16
16
|
* @mui/styled-engine v5.15.14
|
|
17
17
|
*
|
|
@@ -91,4 +91,4 @@ System.register(["hammerjs","picasso.js","picasso-plugin-q","qlik-chart-modules"
|
|
|
91
91
|
animation-iteration-count: infinite;
|
|
92
92
|
animation-delay: 200ms;
|
|
93
93
|
}
|
|
94
|
-
`),wv.rippleVisible,Mv,550,(({theme:e})=>e.transitions.easing.easeInOut),wv.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),wv.child,wv.childLeaving,Pv,550,(({theme:e})=>e.transitions.easing.easeInOut),wv.childPulsate,Dv,(({theme:e})=>e.transitions.easing.easeInOut)),qv=y.forwardRef((function(e,t){const n=Ly({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=Ui(n,Sv),[s,l]=y.useState([]),c=y.useRef(0),u=y.useRef(null);y.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[s]);const d=y.useRef(!1),p=Eg(),f=y.useRef(null),h=y.useRef(null),m=y.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;l((e=>[...e,wh.jsx(Iv,{classes:{ripple:Hm(o.ripple,wv.ripple),rippleVisible:Hm(o.rippleVisible,wv.rippleVisible),ripplePulsate:Hm(o.ripplePulsate,wv.ripplePulsate),child:Hm(o.child,wv.child),childLeaving:Hm(o.childLeaving,wv.childLeaving),childPulsate:Hm(o.childPulsate,wv.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},c.current)])),c.current+=1,u.current=a}),[o]),g=y.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:h.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=()=>{m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})}),[r,m,p]),v=y.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=y.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,(()=>{b(e,t)}));f.current=null,l((e=>e.length>0?e.slice(1):e)),u.current=t}),[p]);return y.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),wh.jsx(Ov,Ii({className:Hm(wv.root,o.root,i),ref:h},a,{children:wh.jsx(Ku,{component:null,exit:!0,children:s})}))}));var Av=qv;function Nv(e){return Um("MuiButtonBase",e)}var Lv=Wm("MuiButtonBase",["root","disabled","focusVisible"]);const zv=["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"],jv=fv("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"},[`&.${Lv.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),$v=y.forwardRef((function(e,t){const n=Ly({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:h,onContextMenu:m,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:x,onKeyUp:w,onMouseDown:S,onMouseLeave:C,onMouseUp:k,onTouchEnd:E,onTouchMove:T,onTouchStart:R,tabIndex:M=0,TouchRippleProps:P,touchRippleRef:D,type:O}=n,I=Ui(n,zv),q=y.useRef(null),A=y.useRef(null),N=wg(A,D),{isFocusVisibleRef:L,onFocus:z,onBlur:j,ref:$}=Ag(),[_,F]=y.useState(!1);l&&_&&F(!1),y.useImperativeHandle(r,(()=>({focusVisible:()=>{F(!0),q.current.focus()}})),[]);const[H,B]=y.useState(!1);y.useEffect((()=>{B(!0)}),[]);const U=H&&!c&&!l;function W(e,t,n=u){return xg((r=>{t&&t(r);return!n&&A.current&&A.current[e](r),!0}))}y.useEffect((()=>{_&&d&&!c&&H&&A.current.pulsate()}),[c,d,_,H]);const V=W("start",S),G=W("stop",m),K=W("stop",g),Y=W("stop",k),X=W("stop",(e=>{_&&e.preventDefault(),C&&C(e)})),J=W("start",R),Z=W("stop",E),Q=W("stop",T),ee=W("stop",(e=>{j(e),!1===L.current&&F(!1),f&&f(e)}),!1),te=xg((e=>{q.current||(q.current=e.currentTarget),z(e),!0===L.current&&(F(!0),b&&b(e)),v&&v(e)})),ne=()=>{const e=q.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},re=y.useRef(!1),oe=xg((e=>{d&&!re.current&&_&&A.current&&" "===e.key&&(re.current=!0,A.current.stop(e,(()=>{A.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!l&&(e.preventDefault(),h&&h(e))})),ie=xg((e=>{d&&" "===e.key&&A.current&&_&&!e.defaultPrevented&&(re.current=!1,A.current.stop(e,(()=>{A.current.pulsate(e)}))),w&&w(e),h&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=s;"button"===ae&&(I.href||I.to)&&(ae=p);const se={};"button"===ae?(se.type=void 0===O?"button":O,se.disabled=l):(I.href||I.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=wg(t,$,q),ce=Ii({},n,{centerRipple:o,component:s,disabled:l,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:M,focusVisible:_}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Ng({root:["root",t&&"disabled",n&&"focusVisible"]},Nv,o);return n&&r&&(i.root+=` ${r}`),i})(ce);return wh.jsxs(jv,Ii({as:ae,className:Hm(ue.root,a),ownerState:ce,onBlur:ee,onClick:h,onContextMenu:G,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:Y,onDragLeave:K,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:l?-1:M,type:O},se,I,{children:[i,U?wh.jsx(Av,Ii({ref:N,center:o},P)):null]}))}));var _v=$v;function Fv(e){return Um("MuiButton",e)}var Hv=Wm("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var Bv=y.createContext({});var Uv=y.createContext(void 0);const Wv=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Vv=e=>Ii({},"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}}),Gv=fv(_v,{shouldForwardProp:e=>pv(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Lh(n.color)}`],t[`size${Lh(n.size)}`],t[`${n.variant}Size${Lh(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 Ii({},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":Ii({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Qg(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})`:Qg(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})`:Qg(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":Ii({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Hv.focusVisible}`]:Ii({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Hv.disabled}`]:Ii({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 ${Qg(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"},[`&.${Hv.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Hv.disabled}`]:{boxShadow:"none"}})),Kv=fv("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Lh(n.size)}`]]}})((({ownerState:e})=>Ii({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Vv(e)))),Yv=fv("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Lh(n.size)}`]]}})((({ownerState:e})=>Ii({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Vv(e)))),Xv=y.forwardRef((function(e,t){const n=y.useContext(Bv),r=y.useContext(Uv),o=Ly({props:gg(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:h=!1,size:m="medium",startIcon:g,type:v,variant:b="text"}=o,x=Ui(o,Wv),w=Ii({},o,{color:a,component:s,disabled:c,disableElevation:u,disableFocusRipple:d,fullWidth:h,size:m,type:v,variant:b}),S=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return Ii({},a,Ng({root:["root",i,`${i}${Lh(t)}`,`size${Lh(o)}`,`${i}Size${Lh(o)}`,`color${Lh(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Lh(o)}`],endIcon:["icon","endIcon",`iconSize${Lh(o)}`]},Fv,a))})(w),C=g&&wh.jsx(Kv,{className:S.startIcon,ownerState:w,children:g}),k=p&&wh.jsx(Yv,{className:S.endIcon,ownerState:w,children:p}),E=r||"";return wh.jsxs(Gv,Ii({ownerState:w,className:Hm(n.className,S.root,l,E),component:s,disabled:c,focusRipple:!d,focusVisibleClassName:Hm(S.focusVisible,f),ref:t,type:v},x,{classes:S,children:[C,i,k]}))}));var Jv=Xv;var Zv=y.createContext({});function Qv(e){return Um("MuiListItemButton",e)}var eb=Wm("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);const tb=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],nb=fv(_v,{shouldForwardProp:e=>pv(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})=>Ii({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"}},[`&.${eb.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Qg(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${eb.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Qg(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${eb.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Qg(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})`:Qg(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${eb.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${eb.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}))),rb=y.forwardRef((function(e,t){const n=Ly({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=Ui(n,tb),h=y.useContext(Zv),m=y.useMemo((()=>({dense:s||h.dense||!1,alignItems:r,disableGutters:l})),[r,h.dense,s,l]),g=y.useRef(null);vg((()=>{o&&g.current&&g.current.focus()}),[o]);const v=Ii({},n,{alignItems:r,dense:m.dense,disableGutters:l,divider:c,selected:d}),b=(e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:a,selected:s}=e;return Ii({},n,Ng({root:["root",r&&"dense",!i&&"gutters",a&&"divider",o&&"disabled","flex-start"===t&&"alignItemsFlexStart",s&&"selected"]},Qv,n))})(v),x=wg(g,t);return wh.jsx(Zv.Provider,{value:m,children:wh.jsx(nb,Ii({ref:x,href:f.href||f.to,component:(f.href||f.to)&&"div"===i?"button":i,focusVisibleClassName:Hm(b.focusVisible,u),ownerState:v,className:Hm(b.root,p)},f,{classes:b,children:a}))})}));var ob=rb;function ib(e){return Um("MuiListItemIcon",e)}Wm("MuiListItemIcon",["root","alignItemsFlexStart"]);const ab=["className"],sb=fv("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})=>Ii({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),lb=y.forwardRef((function(e,t){const n=Ly({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=Ui(n,ab),i=Ii({},n,{alignItems:y.useContext(Zv).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return Ng({root:["root","flex-start"===t&&"alignItemsFlexStart"]},ib,n)})(i);return wh.jsx(sb,Ii({className:Hm(a.root,r),ownerState:i,ref:t},o))}));var cb=lb;function ub(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 db(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ub(Object(n),!0).forEach((function(t){pb(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ub(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pb(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fb=function(e){var t=e.className,n=e.path,r=e.fillRule;return g.createElement(xv,{className:t,viewBox:"0 0 16 16",fontSize:"small",role:"img",style:{height:12,width:12}},g.createElement("path",{d:n}),r?g.createElement("use",{fillRule:r}):void 0)},hb={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)"}}};fv(Jv,{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:"45px",padding:n,"&:disabled":{color:a,opacity:1},"& .MuiButton-startIcon":{margin:"ltr"===t?"0 2px":void 0},"& .MuiButton-endIcon":{margin:"rtl"===t?"0 2px":void 0}}})),fv((function(e){var t=e.className;return g.createElement(fb,{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:hb.ICONS.COLOR.SECONDARY}})),fv((function(e){var t=e.className;return g.createElement(fb,{className:t,path:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})}))((function(){return{color:hb.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:hb.ICONS.COLOR.DISABLED}}})),fv(Jv,{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}}}));var mb={color:hb.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:hb.ICONS.COLOR.DISABLED}};fv((function(e){var t=e.className;return g.createElement(fb,{className:t,path:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5 8.5 8z"})}))((function(){return mb})),fv((function(e){var t=e.className;return g.createElement(fb,{className:t,path:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))((function(){return mb})),fv((function(e){var t=e.className;return g.createElement(fb,{className:t,path:"M15.9993744,3 L15.9993744,5 L4.99937445,5 L4.99937445,3 L15.9993744,3 Z M8.99937445,7 L15.9993744,7 L15.9993744,9 L8.99937445,9 L8.99937445,7 Z M11.9993744,11 L15.9993744,11 L15.9993744,13 L11.9993744,13 L11.9993744,11 Z M2.2,11 L7,11 L7,9.00369263 C7,8.89323568 7.08954305,8.80369263 7.2,8.80369263 C7.2549016,8.80369263 7.30738916,8.82626165 7.34515712,8.86610844 L10.1852182,11.8624926 C10.2583124,11.93961 10.258346,12.0604218 10.1852948,12.13758 L7.34523376,15.1373102 C7.2692928,15.2175206 7.14270711,15.2209817 7.06249671,15.1450407 C7.02260076,15.1072683 7,15.0547472 7,14.9998069 L7,12.9043747 C4.79351111,12.9043747 2.8018683,12.9266213 1.02507156,12.9711145 L1.02507252,12.9711526 C0.472939773,12.9849787 0.014139487,12.5485949 0.000313396522,11.9964622 C0.000104473692,11.988119 -1.32268838e-12,11.9797736 -1.3231638e-12,11.9714278 L-1.83320026e-12,3 L2,3 L2,10.8 C2,10.9104569 2.08954305,11 2.2,11 Z"})}),{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast;return{color:hb.ICONS.COLOR.PRIMARY,marginTop:"1px",marginLeft:"ltr"!==t||n?void 0:"2px",marginRight:"rtl"!==t||r?void 0:"2px"}})),fv(ob)((function(){return{padding:"4px 12px","&:focus":db({},hb.FOCUS)}})),fv(cb)((function(){return{marginRight:0,justifyContent:"center"}})),fv((function(e){var t=e.className;return g.createElement(fb,{className:t,path:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2 3 3Z"})}))((function(){return{color:hb.ICONS.COLOR.SECONDARY}}));var gb=Object.prototype.hasOwnProperty,yb=Object.prototype.toString,vb=Object.defineProperty,bb=Object.getOwnPropertyDescriptor,xb=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===yb.call(e)},wb=function(e){if(!e||"[object Object]"!==yb.call(e))return!1;var t,n=gb.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&gb.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||gb.call(e,t)},Sb=function(e,t){vb&&"__proto__"===t.name?vb(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Cb=function(e,t){if("__proto__"===t){if(!gb.call(e,t))return;if(bb)return bb(e,t).value}return e[t]};!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,n,r,o,i,a,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)r=Cb(s,n),s!==(o=Cb(t,n))&&(u&&o&&(wb(o)||(i=xb(o)))?(i?(i=!1,a=r&&xb(r)?r:[]):a=r&&wb(r)?r:{},Sb(s,{name:n,newValue:e(u,a,o)})):void 0!==o&&Sb(s,{name:n,newValue:o}));return s}));var kb,Eb=function(e){var t=e.dock,n=e.settings.label,r="center"===t,o=r?{}:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};return g.createElement("span",{style:o,title:n},r?n:"* ".concat(n))},Tb={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 g.createElement("div",{dir:i,style:a},g.createElement(Eb,{dock:t,settings:r}))}({dock:n.dock,rect:e,settings:r,styling:o})}},Rb=k;kb=Rb.createRoot,Rb.hydrateRoot;var Mb=Ay({spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:14,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:600,fontWeightBold:700,htmlFontSize:14,fontFamily:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif",button:{fontWeight:600,fontSize:14,textTransform:"none"}},shape:{borderRadius:3},components:{MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"qcm-focus-visible"}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"qcm-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"116px",minWidth:"24px",fontSize:141,borderRadius:3,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transform:"translate3d(0,0,0)"},text:{padding:"8px 16px","&:active":{backgroundColor:"rgba(0, 0, 0, 0.1)"},"&.Mui-focusVisible":{boxShadow:"inset 0 0 0 2px ".concat("#177FE6")}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"}},variants:[]},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:14,height:"32px"}}},MuiListItemIcon:{styleOverrides:{root:{color:"#404040",minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:14,color:"#404040",lineHeight:"16px",fontWeight:600},secondary:{fontSize:12,color:"#737373",fontWeight:400,lineHeight:"16px"}}}}});function Pb(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 Db(){var e={rendererBox:Pb(),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=Pb(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=kb(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 g.createElement(g.StrictMode,null,g.createElement(mv,{theme:Mb},t))}({nodes:t})),!0},findShapes:function(){return[]},itemsAt:function(){return[]},clear:function(){t()},destroy:function(){t()}}}function Ob(e){return vt(e).l<70}function Ib(e,t){const n=vt(e).l/100,r=vt(t).l/100;return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}function qb(e,t){return{x:t.x+e.r*Math.sin(e.a),y:t.y-e.r*Math.cos(e.a)}}var Ab={require:["chart","settings"],defaultSettings:{settings:{},style:{}},render(){return function({chart:e,settings:t}){const n=e.component(t.component);if(!n)return[];const r=e.findShapes(t.selector).filter((e=>e.key===t.component));if(r.length<2)return[];if(n.settings.settings.slice.cornerRadius>0||n.settings.settings.slice.strokeWidth>0)return[];const o=[];let i=r[r.length-1];for(let e=0;e<r.length;e+=1){const t=r[e],n=i.attrs.fill,a=t.attrs.fill;if(Ib(a,n)<=1.2){const{start:e,offset:n}=t.desc.slice;let{innerRadius:r,outerRadius:s}=t.desc.slice;if(r=Math.max(r,i.desc.slice.innerRadius),s=Math.min(s,i.desc.slice.outerRadius),s>r){const t=qb({r:s,a:e},n),i=qb({r:r,a:e},n);o.push({type:"line",x1:t.x,y1:t.y,x2:i.x,y2:i.y,strokeWidth:1,opacity:.4,stroke:Ob(a)?"#ccc":"#333"})}}i=t}return o}({chart:this.chart,rect:this.rect,style:this.style,settings:this.settings.settings})}};function Nb(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 Lb(e){const{size:t,angle:n}=e,r={x:e.x,y:e.y},o=t/2,i=e.x-o,a=e.y-o;let s=[{x:i,y:a+t},{x:i+o,y:a},{x:i+t,y:a+t},{x:i,y:a+t}];return s=s.map((e=>function(e,t,n={x:0,y:0}){const r=Math.cos(t),o=Math.sin(t),i=(s=n,{x:(a=e).x-s.x,y:a.y-s.y});var a,s;return function(e,t){return{x:e.x+t.x,y:e.y+t.y}}({x:r*i.x-o*i.y,y:o*i.x+r*i.y},n)}(e,n,r))),{type:"path",fill:e.fill,d:Nb(s)}}var zb={require:["chart"],defaultSettings:{settings:{},style:{}},render(){return function({chart:e,settings:t}){if(!e.component(t.component))return[];const n=e.findShapes(t.selector).filter((e=>e.key===t.component));if(n.length<2)return[];const r=[];for(let e=0;e<n.length;e+=1){const a=n[e];if(a.data.radius.value<0){const{start:e,end:n,offset:s}=a.desc.slice,l=(e+n)/2,c=(o={r:t.offset,a:l},{x:(i=s).x+o.r*Math.sin(o.a),y:i.y-o.r*Math.cos(o.a)}),u=Lb({size:t.size,fill:t.fill,angle:l+Math.PI,...c});u.data={...a.data,_share:a.desc.share,_fillColor:a.attrs.fill},r.push(u)}}var o,i;return r}({chart:this.chart,rect:this.rect,style:this.style,settings:this.settings.settings})}};function jb(){const e=n();return e.use(r),e.use(function(e){if("function"!=typeof e.interaction)return t=>{t.interaction("hammer",Y(e))};e.interaction("hammer",Y(Hammer))}(t)),e.use((function(e){e.renderer("react",cp()),e.component("data-title",ap(e.renderer("svg")()))})),e.renderer("react-qcm",Db),e.component("disclaimer",Tb),e.component("pie-dividers",Ab),e.component("negative-indicators",zb),e}var $b={};function _b(){_b.init.call(this)}$b.isObject=function(e){return"object"==typeof e&&null!==e},$b.isNumber=function(e){return"number"==typeof e},$b.isUndefined=function(e){return void 0===e},$b.isFunction=function(e){return"function"==typeof e};var Fb=_b;_b.EventEmitter=_b,_b.prototype._events=void 0,_b.prototype._maxListeners=void 0,_b.defaultMaxListeners=10,_b.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},_b.prototype.setMaxListeners=function(e){if(!$b.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},_b.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],$b.isUndefined(n))return!1;if($b.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($b.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},_b.prototype.addListener=function(e,t){var n;if(!$b.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,$b.isFunction(t.listener)?t.listener:t),this._events[e]?$b.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,$b.isObject(this._events[e])&&!this._events[e].warned)&&((n=$b.isUndefined(this._maxListeners)?_b.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,$b.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),$b.isFunction(console.trace)&&console.trace()));return this},_b.prototype.on=_b.prototype.addListener,_b.prototype.once=function(e,t){if(!$b.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},_b.prototype.removeListener=function(e,t){var n,r,o,i;if(!$b.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||$b.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if($b.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},_b.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],$b.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},_b.prototype.listeners=function(e){return this._events&&this._events[e]?$b.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},_b.listenerCount=function(e,t){return e._events&&e._events[t]?$b.isFunction(e._events[t])?1:e._events[t].length:0};var Hb=X(Fb);const Bb=e=>(Object.keys(Hb.prototype).forEach((t=>{e[t]=Hb.prototype[t]})),Hb.init(e),e);function Ub({picasso:e}){var t;const n=E(),r=T(),o=R(),[i,c]=M(),u=function(){const e={};return Bb(e),e.lasso={active:()=>!1},e.select={on:e.on,removeListener:e.removeListener},e}(),d=P(),p=D(),f=!(null===(t=d.qSelectionInfo)||void 0===t||!t.qInSelections),[h,m]=M(!1);return u.lasso=function({layout:e,isInSelections:t,isLassoActionActive:n,setIsLassoActionActive:r,translator:o}){var i;return{active:n,label:o.get(n?"Tooltip.ToggleOffLassoSelection":"Tooltip.ToggleOnLassoSelection"),hidden:!t||!(null===(i=e.qHyperCube)||void 0===i||null===(i=i.qDimensionInfo)||void 0===i||null===(i=i[0])||void 0===i||!i.qIsOneAndOnlyOne),action(e){r("boolean"==typeof e?e:!n)},icon:{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"}}]}}}({layout:d,isInSelections:f,isLassoActionActive:h,setIsLassoActionActive:m,translator:p}),O((()=>(i&&(i.interactions.lasso.active=()=>h),{...u.lasso})),[i,h,f,p.language()]),I((()=>{r.style.overflow="hidden";const t=e({renderer:{prio:[n.renderer||"canvas"]}}),i=t.chart({element:r,data:[],settings:{}}),p=a({chart:i,actions:u,selections:o,config:{selectionActions:!1}});p.setLayout(d),p.setBrushAliases({colorField:"qDimensionInfo/0/qAttrDimInfo/0"});const f=s({legendScrollOffset:0,rotation:0});f.intercept("rotation",(e=>(f.get("rotation")+e)%(2*Math.PI))),f.onChanged("rotation",(()=>{i.update({partialData:!0})}));const h=l();return u.on("selections-start",(()=>{i.brush("selection").start()})),c({picasso:t,chart:i,selectionService:p,viewState:f,viewCache:h,interactions:u}),()=>{p.destroy(),i.destroy(),u.removeAllListeners(),delete u.select,f.intercept("rotation",void 0),f.onChanged("rotation",void 0)}}),[]),i}const Wb={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 Vb(e){const t=e.split("/");return"qmem:"===t[0]&&""===t[1]}const Gb={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 Kb(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 Gb.getImageSize(r,t);return{src:r,size:t,height:i,width:a,imageError:s}}async function Yb(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 h=(null===(i=r.data)||void 0===i||null===(i=i.customTooltipAttrExps)||void 0===i?void 0:i.value)||[];let m;if(-1!==f&&h[f]&&(m=h[f]),"media"===p&&null!==(a=u.ref)&&void 0!==a&&null!==(a=a.qStaticContentUrl)&&void 0!==a&&a.qUrl)return Kb(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&&Vb(a))try{const t=`data:image/png;base64, ${await e.getImage(a)}`,{height:n,width:o,imageError:s}=await Gb.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 Gb.getImageSize(a,r);i={src:a,size:r,height:e,width:t,imageError:n}}return i}(s,l,u,d,m);if(l.isEnabled("IMAGE_BUNDLE_LOAD")&&"field"===p&&m&&m.label){return async function(e,t,n,r){let o;const i=r.label,a=`qmem://${t.qFallbackTitle}/${i}`;if(Vb(a))try{const t=await e.getImage(a);if(t){const e=`data:image/png;base64, ${t}`,{height:r,width:i,imageError:a}=await Gb.getImageSize(e,n);o={src:e,size:n,height:r,width:i,imageError:a}}}catch(e){}return o}(s,n[f],d,m)}return[]}const Xb={async addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){const o=t,i=[];for(let t=0;t<o.length;t++)i.push(Yb(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}},Jb={async handlePromises({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){let o=t;return o=await Xb.addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}),o},checkIfPromisesExist:({customTooltipModel:e})=>Xb.checkIfPromisesExist({customTooltipModel:e})};const Zb=(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:Wb.CHART.CHART_PARENT_TYPE,qId:Wb.CHART.CHART_OBJECT_ID},qHyperCubeDef:{qDimensions:i,qMeasures:a,qInterColumnSortOrder:s,qInitialDataFetch:[{qWidth:0,qHeight:0}]},qStateName:l}},Qb=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:Wb.CHART.CHART_CHILD_TYPE},qExtendsId:n}};const ex={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=Wb.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:Wb.CHART.CONTAINER_ID})],colspan:2,style:{"text-align":e.rtl?"right":"left","max-width":i,width:"100%"}},{}]}(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 ex.hide({app:e,customTooltipModel:o});try{await async function({app:e,properties:t,customTooltipModel:n}){const r=n,o=Wb.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=Wb.CHART.STATE,a=Zb(t,i),s=await e.createSessionObject(a),l=Qb(t);if(s.id!==Wb.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,h;const e=null!==(f=n[0].data.selectionOuterDimension)&&void 0!==f?f:n[0].data.selectionDimension;if(null!=e&&null!==(h=e.source)&&void 0!==h&&h.field){var m;const t=null==e||null===(m=e.source)||void 0===m?void 0:m.field.split("/"),n=t[t.length-1],r=void 0!==e.value?[e.value]:[];r.length>0&&void 0!==n&&s.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",Number(n),r,!1)}}e.length>0&&s.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",a,e,!1);const l=document.getElementById(Wb.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 ex.hide({app:e,customTooltipModel:o})}}},hide:async({app:e,customTooltipModel:t})=>{const n=t;null!=n&&n.embed&&(ex.destroyVisualization({customTooltipModel:t}),await e.destroySessionObject(Wb.CHART.CHART_OBJECT_ID),n.miniChartToken.sessionObj=void 0,await async function({app:e,customTooltipModel:t}){const n=t,r=Wb.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 tx(e){const t=e.qHyperCubeDef?e.qHyperCubeDef.qDimensions:e.qHyperCube.qDimensionInfo;if(t&&t.length>0)return t}function nx(){const{EXPRESSION:e,TITLE:t,DESCRIPTION:n,IMAGES:r}=Wb.CUSTOM,o={};return o[e]=!0,o[t]=!0,o[n]=!0,o[r]=!0,o}function rx(e){const t=nx();return e.filter((e=>t[e.id]))}const ox={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}=ox.getAttrExprData(a);i.length||n.length?Jb.handlePromises({customTooltipModel:o,nodes:ox.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&&ex.hide({app:r.app,customTooltipModel:o}),t.emit("hide")}},checkIfPromisesExist:({customTooltipModel:e})=>Jb.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[Wb.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[Wb.CUSTOM.QUARANTINE]=[],e.forEach((e=>{r.quarantine[Wb.CUSTOM.QUARANTINE].push(e)})),n.qLayoutExclude=r}(rx(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[Wb.CUSTOM.QUARANTINE])&&delete n.qLayoutExclude.quarantine[Wb.CUSTOM.QUARANTINE]},setAttrsFromQuarantine(e,t){const n=tx(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===rx(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){let r=[];const o=tx(e)||[];[...o,t].forEach((e=>{const t=rx(e.qAttributeExpressions||[]);t.length>0&&(r=t)}));const i=nx(),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:ve.detectTextDirection(e)},colspan:2},{}],getImageRow(e,t){const n=ve.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 ix(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 Wb.CUSTOM.EXPRESSION:n="NaN"===t.qNum||e.isCustomFormatted?void 0===t.qText?"NaN":t.qText:t.qNum;break;case Wb.CUSTOM.TITLE:case Wb.CUSTOM.DESCRIPTION:case Wb.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 ax={getNode(e,{dimensionCount:t}){if(!t||t<1)return;const n=t-1,r="qDimensionInfo";return{field:`${r}/${n}`,value:t=>ix(t,e,r,n)}}};const sx={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={[Wb.CUSTOM.TITLE]:!0,[Wb.CUSTOM.DESCRIPTION]:!0},{attrExps:i,fieldPath:a}=ox.getAttrExprData(e);return 0===t.length||0===i.length||""===a||i.forEach(((e,i)=>{const s=t[i];if(e.id===Wb.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===Wb.CUSTOM.TITLE&&{title:t},value:t,id:e.id})}})),r}(n,i.map((t=>be.getMeasure(e,t))),e,o)}};function lx({nodes:e,layout:t,dataset:n}){const r=function(e,t,n){const r=[];return e.forEach((e=>{r.push(sx.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 cx(e){const t=Wb.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 ux(e){var t;const n=null===(t=e.qHyperCubeDef)||void 0===t?void 0:t.qDimensions;return n[n.length-1].qAttributeExpressions||[]}var dx={attrExpr:{migrateProperties(e){var t,n;const r=se(!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=ux(r);return i=function(e,t){return t.concat(e.map((e=>cx(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=cx(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}(ux(e),r,o);return i},checkForBackwardCompatibility:(e,t)=>(e.qMeasureInfo||[]).length>0&&t.length>0,updateProperties(e,t){return 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)}))}}};const{CUSTOM:px}=Wb;function fx({flags:e,layout:t,app:n,model:r,picasso:i,chart:a,translator:s,localeInfo:l,embed:c,options:u}){const d={properties:void 0},p=function({layout:e,app:t,picasso:n,model:r,chart:o,translator:i,localeInfo:a,embed:s}){return{layout:e,app:t,picasso:n,model:r,chart:o,translator:i,localeInfo:a,useCustomTooltip:e.tooltip&&!e.tooltip.auto,utils:ox,miniChartToken:{},embed:s}}({layout:t,app:n,model:r,picasso:i,chart:a,translator:s,localeInfo:l,embed:c}),f="rtl"===u.direction,h=()=>{var e;const n=!(null===(e=d.properties)||void 0===e||null===(e=e.qHyperCubeDef)||void 0===e||!e.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!(!t.tooltip||t.tooltip.auto||n)};return{setProperties:e=>{d.properties=e},isEnabled:()=>h(),hideBasic:()=>h()&&o(t,"tooltip.hideBasic",!1),getAttributes:({dataset:e,nodes:n})=>{var r,o;const i=lx({dataset:e,nodes:n,layout:t});return{title:null===(r=i.customTooltipInfoAttrExpsArr.find((e=>e.id===px.TITLE)))||void 0===r?void 0:r.title,description:null===(o=i.customTooltipInfoAttrExpsArr.find((e=>e.id===px.DESCRIPTION)))||void 0===o?void 0:o.value,measures:i.customTooltipAttrExpsArr}},hasImages:()=>ox.checkIfPromisesExist({customTooltipModel:p}),createImageRow:({value:e,h:t})=>ox.getImageRow(e,{h:t,rtl:f}),addImages:({nodes:r})=>{const o=ox.getDataNodes(a,r),{attrExps:i}=ox.getAttrExprData(t);return Jb.handlePromises({customTooltipModel:p,nodes:o,attrExps:i,opts:{flags:e,app:n}})},chart:{isEnabled:()=>{return!!(h()&&null!==(e=t.tooltip)&&void 0!==e&&null!==(e=e.chart)&&void 0!==e&&null!==(e=e.object)&&void 0!==e&&e.refId&&c&&"function"==typeof(null==r?void 0:r.getEffectiveProperties));var e},hasLimitation:()=>{var e;return!(null==n||null===(e=n.isInModalSelection)||void 0===e||!e.call(n))},createContainer:({h:e})=>ex.createContainer({layout:t,ctx:{h:e,rtl:f}}),createLimitationRow:()=>ox.getFooterRow(s.get("properties.tooltip.notselectedmessage"),f),show:({nodes:e,properties:t})=>ex.show({app:n,properties:t,selectedNodes:e,customTooltipModel:p,rtl:f}),hasAlternateState:()=>{var e;return!(null===(e=p.miniChartToken)||void 0===e||!e.alternateState)},hide:()=>ex.hide({app:n,customTooltipModel:p}),destroy:()=>ex.destroyVisualization({customTooltipModel:p})}}}function hx(e){return{layout:e,keys:{SCALE:{FILL:"fill"},COMPONENT:{DIMENSION_TITLE:"dimension-title",SLICES:"slices",PIE_LABELS:"pie-labels"}}}}function mx({layout:e}){const t=({ds:e,encodings:t})=>{const n={field:"qDimensionInfo/0",props:{num:{field:t.slice.arc}}};return t.slice.outerRadius&&(n.props.radius={field:t.slice.outerRadius}),e.extract(n)},n=({rows:e,encodings:t})=>t.slice.outerRadius?e.filter((e=>"NaN"!==e.num.value&&"NaN"!==e.radius.value)):e.filter((e=>"NaN"!==e.num.value)),r=({rows:t,encodings:n})=>n.slice.outerRadius&&!e.donut.showAsDonut?t.filter((e=>e.num.value>0&&e.radius.value>0)):t.filter((e=>e.num.value>0));return c({layout:e,config:{args:{},disclaimers:{NoDataExist:{condition:({ds:e,encodings:n})=>0===t({ds:e,encodings:n}).length},LimitedData:{condition:()=>{const t=fe.getValue(e,"qHyperCube.qSize.qcy");return fe.getValue(e,"qHyperCube.qDataPages.0.qArea.qHeight")<t}},OnlyNanData:{condition:({ds:e,encodings:r})=>{const o=t({ds:e,encodings:r});return 0===n({rows:o,encodings:r}).length}},OnlyNegativeOrZeroValues:{condition:({ds:e,encodings:o})=>{const i=t({ds:e,encodings:o}),a=n({rows:i,encodings:o});return 0===r({rows:a,encodings:o}).length}},NegativeOrZeroValues:{condition:({ds:e,encodings:o})=>{const i=t({ds:e,encodings:o}),a=n({rows:i,encodings:o}),s=a,l=r({rows:a,encodings:o});return s.length!==l.length}}}}})}function gx({chart:e,translator:t,layout:n,constraints:r,options:o,themeService:i,colorService:a,custom:s}){const l=n.qHyperCube.qMeasureInfo.length>1,c="rtl"===o.direction,{fontFamily:d}=i.getStyles();return u({chart:e,translator:t,config:{rtl:c,enable:()=>!r.passive,getColorSettings:()=>a.getSettings(),style:{fontFamily:d},main:{key:"tooltip",getGroupByValue:({data:e})=>e.value,collectibles:[{key:"slices",type:"slice",major:({data:e})=>e.value}],triggers:[{keys:["slices"],collect:{from:"single"},placement:"collectible"},{keys:["pie-labels","negative-indicators"],collect:{from:"dimension",by:({data:e})=>e.value},placement:"trigger"}],placement:({meta:e})=>({type:"slices"===e.triggerer?"slice":"bounds"}),section:({h:e,nodes:n,dataset:r,formatter:o,create:i,util:a})=>{const[c]=n,{title:u,description:d,measures:p}=s.isEnabled()?s.getAttributes({dataset:r,nodes:n}):{},f=[];u&&f.push(i.text({value:u,style:{bold:!0}})),d&&f.push(i.text({value:d}));const h=s.hideBasic();if(h&&!p.length&&(u||d)||f.push(i.text({value:c.data.label,style:{bold:!0}})),!h){f.push(i.color({nodes:n,property:"fill"}));const{num:e}=c.data;if(f.push(i.measure({label:a.dataset.title(e.source.key,e.source.field),value:e.label})),l){const{radius:e}=c.data;f.push(i.measure({label:a.dataset.title(e.source.key,e.source.field),value:e.label}))}f.push(i.measure({label:t?t.get("properties.dataPoints.labelmode.share"):"Share",value:o("share")(c.desc.share)}))}p&&f.push(...p.map((e=>i.measure({label:e.label,value:e.value,survive:{color:!0,duplicate:!0}})))),s.chart.isEnabled()&&(s.chart.hasLimitation()?(s.chart.destroy(),f.push(i.raw({value:s.chart.createLimitationRow()}))):f.push(i.raw({value:s.chart.createContainer({h:e})})));const{customTooltipImages:m}=c.data;return s.isEnabled()&&m&&f.push(...m.map((t=>i.raw({value:s.createImageRow({value:t,h:e})})))),f},layout:{grouping:!0},events:{tooltip:{beforeShow:({collectNodes:e})=>s.isEnabled()&&s.hasImages()?s.addImages({nodes:e()}):Promise.resolve(),afterShow:({expando:e,nodes:t})=>{s.chart.isEnabled()&&!s.chart.hasLimitation()&&s.chart.show({nodes:t,properties:e.get("properties")})}},interaction:{mouseleave:()=>{s.chart.isEnabled()&&s.chart.hasAlternateState()&&s.chart.hide()}}}},legend:{keys:{tooltip:"legend-color-cat",component:"legend-cat"}}}})}const yx=e=>"[object Object]"===Object.prototype.toString.call(e),vx=e=>Array.isArray(e);function bx(e,t){if(e===t)return!0;if(vx(e)){if(!vx(t))return!1;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!bx(e[n],t[n]))return!1;return!0}if(yx(e)){if(!yx(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(!bx(e[n[r]],t[n[r]]))return!1}return!0}return e===t}function xx({enable:e=!0}={}){const t=q(),n=()=>Date.now().toString()+Math.random(),[r,o]=M(n()),i={properties:void 0};return I((()=>{if(!t||!t.getEffectiveProperties||!e)return()=>{};const r=()=>{t.getEffectiveProperties().then((e=>{const t=se(!0,{},e);if(!i.properties)return void(i.properties=t);const r=function(e,t){var n,r,o,i;const a={properties:!1,exclude:!1};if(e===t)return a;const s=se(!0,{},e),l=se(!0,{},t);return a.exclude=!bx(null===(n=s.qHyperCubeDef)||void 0===n?void 0:n.qLayoutExclude,null===(r=l.qHyperCubeDef)||void 0===r?void 0:r.qLayoutExclude),null===(o=s.qHyperCubeDef)||void 0===o||delete o.qLayoutExclude,null===(i=l.qHyperCubeDef)||void 0===i||delete i.qLayoutExclude,a.properties=!bx(s,l),a}(i.properties,t);i.properties=t,r.exclude&&!r.properties&&o(n())}))};return t.on("changed",r),r(),()=>{t.removeListener("changed",r)}}),[e]),r}function wx({scaleKey:e,legend:t,onEdited:n}){const{layout:r}=t,{dock:o}=r||{};return{type:"brush-range",key:"legendRangeBrush",layout:{dock:"@legend-seq"},on:n?{bubbleEnd(){n()}}:{},settings:{brush:"selection",scale:`${e}Range`,direction:"left"===o||"right"===o?"vertical":"horizontal",bubbles:{align:"left"===o||"top"===o?"end":"start",placement:"outside"},target:{selector:'[id="legend-seq-target"]',fillSelector:'[id="legend-seq-ticks"]',fill:"rgba(82,204,82,0.2)"}}}}const Sx=.8,Cx=.55,kx=.3,Ex={CORNER_RADIUS:0,INNER_RADIUS:Cx,STROKE:{COLOR:"#FFFFFF",WIDTH:{NONE:0,SMALL:2,MEDIUM:4,LARGE:6}}},Tx=({layout:e},t,n)=>t.encodings.slice.outerRadius?{scale:"radius",fn:t=>{var r,o;let i=Sx,a=0;const s=null!==(r=null==n||null===(o=n.style)||void 0===o?void 0:o.innerRadius)&&void 0!==r?r:Cx;e.donut.showAsDonut&&(i=Sx-s,a=s);return t.scale(Math.max(0,t.datum.radius.value))*i+a}}:Sx,Rx=({layout:e},t,n)=>{var r,o;if(!e.donut.showAsDonut)return 0;const i=null!==(r=null==n||null===(o=n.style)||void 0===o?void 0:o.innerRadius)&&void 0!==r?r:Cx;return t.encodings.slice.outerRadius?{scale:"radius",fn:e=>{const t=Sx-i,n=i;return e.scale(Math.min(0,e.datum.radius.value))*t+n}}:i},Mx=({layout:e},t)=>{var n,r,o,i,a;const s=t.colorService.getDatumProps(),l=s[Object.keys(s)[0]],c=l&&l.field?l.field:void 0,u="qDimensionInfo/0"===c,d=c?t.ds.field(c).raw():null,p=d&&(d.label||d.title||d.qFallbackTitle)||"",f=t.encodings.slice.outerRadius,{formatter:h}=t.chart,m=fe.getValue(e,"qHyperCube.qDimensionInfo",[]).length;function g(e,n){const r=t.ds.field(e).raw();return{field:e,label:!r.isCustomFormatted&&(r.qIsAutoFormat||"U"===r.qNumFormat.qType)?e=>h(n)(e.qNum):e=>e.qText}}const y=(e.components||[]).filter((e=>"slices"===e.key))[0];return{type:"pie",key:"slices",data:{extract:{field:"qDimensionInfo/0",props:{...s,num:g(t.encodings.slice.arc,"arc"),fillTooltip:c?{field:c,label:p,value:e=>u?e.qText||"-":void 0!==e.qNum&&"NaN"!==e.qNum?e.qText?e.qText:e.qNum:e.qText||"-"}:void 0,customTooltipAttrExps:0!==m?ax.getNode(e,{dimensionCount:m}):void 0,radius:f?g(f,"outerRadius"):void 0}}},brush:{consume:[{context:"selection",data:["","fill"],style:{inactive:{opacity:.3},active:{stroke:"rgba(52, 52, 52, 0.7)",strokeWidth:2}}},{context:"highlight",data:[""],style:{inactive:{fill:"#BFDAD9"},active:{fill:"#68B2AF"}}}]},settings:{startAngle:()=>t.viewState.get("rotation"),endAngle:()=>t.viewState.get("rotation")+2*Math.PI,slice:{arc:{ref:"num"},innerRadius:Rx({layout:e},t,y),fill:t.colorService.getColor(),strokeWidth:null!=y&&null!==(n=y.style)&&void 0!==n&&n.strokeWidth?Ex.STROKE.WIDTH[y.style.strokeWidth.toUpperCase()]:Ex.STROKE.WIDTH.NONE,stroke:null!==(r=null==y||null===(o=y.style)||void 0===o||null===(o=o.strokeColor)||void 0===o?void 0:o.color)&&void 0!==r?r:Ex.STROKE.COLOR,outerRadius:Tx({layout:e},t,y),cornerRadius:null!==(i=null==y||null===(a=y.style)||void 0===a?void 0:a.cornerRadius)&&void 0!==i?i:0}},animations:{enabled:t.animations.enabled,isMainComponent:!0}}};function Px({layout:e},t){var n,r;const o=(e.components||[]).filter((e=>"slices"===e.key))[0],i=null!==(n=null==o||null===(r=o.style)||void 0===r?void 0:r.innerRadius)&&void 0!==n?n:Cx,a=t.encodings.slice.outerRadius,s=t.themeService.getStyles();return!(!e.donut.showAsDonut||!a)&&{type:"pie",key:"zeroLine",data:{items:[1]},settings:{slice:{arc:1,fill:"transparent",innerRadius:0,strokeWidth:1,stroke:s.label.name.color,outerRadius:{scale:"radius",fn:e=>{const t=Sx-i,n=i;return e.scale(0)*t+n}}}},animations:{enabled:t.animations.enabled}}}function Dx(e){return{type:"pie-dividers",key:"pie-dividers",layout:{displayOrder:2},settings:{component:"slices",selector:"path"},brush:{consume:[{context:"selection",style:{inactive:{opacity:.2}}}]},animations:{enabled:e.animations.enabled,trackBy:()=>Math.random()}}}function Ox({layout:e},t){if(e.donut.showAsDonut||!t.encodings.slice.outerRadius)return!1;return{type:"negative-indicators",key:"negative-indicators",layout:{displayOrder:2},settings:{component:"slices",selector:"path",offset:5,size:4,fill:t.themeService.getStyles().label.name.color},brush:{consume:[{context:"selection",style:{inactive:{opacity:.2}}}]},animations:{enabled:t.animations.enabled}}}const Ix=()=>({key:"area",type:"brush-area",settings:{brush:{components:[{key:"slices",contexts:["selection"],action:"add"}]}},style:{area:{fill:"transparent",strokeWidth:2,stroke:"black",strokeDasharray:"5 5",opacity:.7}}}),qx=()=>({key:"lasso",type:"brush-lasso",layout:{displayOrder:99},settings:{brush:{components:[{key:"slices",contexts:["selection"]}]},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}}});function Ax(e){const t=e.node.desc&&e.node.desc.share;return t?e.formatter("share")(t):""}function Nx(e){return e.node.data.num.label}function Lx(e){return e.node.data.radius.label}function zx(e,t,n){if(e.dataPoint.auto)return n?Nx:Ax;if("share"===e.dataPoint.labelMode)return Ax;if("value"===e.dataPoint.labelMode){return t.encodings.slice.outerRadius&&"radius"===e.dataPoint.labelValueMode?Lx:Nx}return null}function jx({data:e}){return e?e.label:""}function $x(e){const t=parseInt(e,10);if(!isNaN(t))return t}const _x=e=>t=>e.getContrastingColorTo(t.node.attrs.fill);function Fx(e){var t,n;const r=((e&&e.components?e.components:void 0)||[]).filter((e=>"slices"===e.key))[0];return(null!==(t=null==r||null===(n=r.style)||void 0===n?void 0:n.innerRadius)&&void 0!==t?t:Cx)>kx}function Hx({node:e,data:t}){return se({_share:e.desc.share,_fillColor:e.attrs.fill},t)}function Bx(e,t,n){const r=t.styleService.label.name.getStyle(),o=[{padding:10,direction:t.encodings.slice.outerRadius?"rotate":"horizontal",placements:[{position:"outside",padding:t.encodings.slice.outerRadius?4:2,fill:r.fill}],fontSize:$x(r.fontSize),fontFamily:r.fontFamily,label:jx,linkData:({node:e,data:t})=>se({_share:e.desc.share,_fillColor:e.attrs.fill,_showTooltip:!0},t)}];if(zx(e,t,!1)){const r=function(e,t,n){return{label:zx(e,t,!1),simplifiedPlacements:[{position:e.donut.showAsDonut&&Fx(e)?"inside":"into",onBackground:e.donut.showAsDonut&&Fx(e),padding:4}],theme:n.theme,themeId:"object.pieChart"}}(e,t,n),i=Se(se(t,r),n.theme);i.linkData=Hx,o.push(i)}return{key:"pie-labels",type:"labels",renderer:Zo(t.flags),layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:"slices",selector:"path",strategy:{type:"slice",settings:{labels:o}}}]},brush:{consume:[{context:"selection",data:["","fill"],style:{inactive:{opacity:.3}}}]},animations:{enabled:t.animations.enabled,trackBy:()=>Math.random()}}}function Ux({layout:e,context:t},n){return!1!==e.dataPoint.show&&(1===n.dataRowCount?function(e,t,n){const r=zx(e,t,!0),o=_x(n.theme),i=t.themeService.getStyles(),a=t.styleService.label.name.getStyle(),s=t.styleService.label.value.getStyle(),l=a.fill===i.label.name.color,c=s.fill===i.label.value.color;return{key:"pie-labels",type:"labels",renderer:Zo(t.flags),layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:"slices",selector:"path",strategy:{type:"rows",settings:{align:.5,justify:.5,padding:10,labels:[{fontSize:$x(a.fontSize),fontFamily:a.fontFamily,fill:l&&!e.donut.showAsDonut?o:a.fill,label:jx,linkData:({data:e})=>e},{fontSize:$x(s.fontSize),fontFamily:s.fontFamily,fill:c&&!e.donut.showAsDonut?o:s.fill,label:r,linkData:({data:e})=>e}]}}}]},animations:{enabled:t.animations.enabled,trackBy:()=>Math.random()}}}(e,n,t):Bx(e,n,t))}const Wx=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"legendRange",enable(t,n){if(this.started||!n)return!0;if(e.constraints.select||e.constraints.active)return!1;const r=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>"legend-seq"===e.type)),o=(r||function(e){const{target:t}=e.srcEvent;return!(!t||!(t.hasAttribute("data-other-value")&&t.hasAttribute("data-idx")||"INPUT"===t.nodeName))}(n))&&!e.isLocked([this.chart.component("slices")]);return o||this.chart.component("legendRangeBrush").emit("rangeClear"),o}},events:{legendRangestart(t){t.preventDefault(),e.interactions.emit("selections-start"),this.chart.component("legendRangeBrush").emit("rangeStart",t),this.started=!0},legendRangemove(e){e.preventDefault(),this.chart.component("legendRangeBrush").emit("rangeMove",e)},legendRangeend(t){t.preventDefault(),this.chart.component("legendRangeBrush").emit("rangeEnd",t),e.onSelect(),this.started=!1}}});function Vx(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}}function Gx(e,t){const n=t.component("slices");if(!n)return!1;const{x:r,y:o}=Vx(e,t),i=n.rect.x+n.rect.margin.left+n.rect.width/2,a=n.rect.y+n.rect.margin.top+n.rect.height/2,s=Math.min(n.rect.width,n.rect.height)/2*Sx;return(i-r)**2+(a-o)**2<=s**2}const Kx=(e,t,{requireFailure:n,recognizeWith:r}={})=>({type:"Tap",requireFailure:n,recognizeWith:r,options:{event:"tap",interval:10,pointers:1,enable(t,n){return!n||!e.constraints.select&&!e.constraints.active&&(this.components=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).filter((e=>"slices"===e.key||"legend-cat"===e.key||"pie-labels"===e.key)),this.components.length)}},events:{tap(n){n.preventDefault();const{target:r}=n.srcEvent;if(r&&("INPUT"===r.nodeName||r.hasAttribute("data-other-value")))return void this.chart.component("legendRangeBrush").emit("bubbleStart",n);if(r&&r.hasAttribute("data-action")&&r.hasAttribute("data-component-key"))return void this.chart.component(r.getAttribute("data-component-key")).emit(r.getAttribute("data-action"));if(r&&r.children&&r.children[0]&&"legend-cat"===r.children[0].getAttribute("data-component-key"))return;if(e.isLocked(this.components))return;e.interactions.emit("selections-start");let o=Vx(n,this.chart);this.components.some((e=>"legend-cat"===e.key))&&(o={cx:o.x,cy:o.y,r:5});const i=this.chart.shapesAt(o,{components:[{key:"slices",propagation:"stop"},{key:"legend-cat",propagation:"stop"},{key:"pie-labels",propagation:"stop"}],propagation:"stop"});i.length&&(this.chart.brushFromShapes(i,{components:[{key:i[0].key,action:n.srcEvent.ctrlKey||t?"set":"toggle",contexts:["selection"]}]}),e.onSelect())}}}),Yx=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"lasso",enable(t,n){if(this.isStarted||!n)return!0;if(e.constraints.active||e.constraints.select||!e.interactions.lasso.active())return!1;const r=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y});return!e.isLocked(r)&&r.some((e=>"slices"===e.key))}},events:{lassostart(t){t.preventDefault(),e.constraints.select||e.constraints.active||this.isStarted||(e.interactions.emit("selections-start"),this.chart.component("lasso").emit("lassoStart",t),this.isStarted=!0)},lassomove(e){e.preventDefault(),this.chart.component("lasso").emit("lassoMove",e)},lassoend(t){t.preventDefault(),this.isStarted=!1,this.chart.component("lasso").emit("lassoEnd",t),e.onSelect()}}}),Xx=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Tap",requireFailure:t,recognizeWith:n,options:{event:"areatap",pointers:2,enable(t,n){if(this.started||!n)return!0;if(e.constraints.active||e.constraints.select)return!1;const r=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y});return r.some((e=>"slices"===e.key))&&!e.isLocked(r)}},events:{areatap(t){const n=this.chart.component("area");n&&!this.started&&(e.interactions.emit("selections-start"),n.emit("areaStart",t.pointers[0]),n.emit("areaMove",t.pointers[1]),this.started=!0,setTimeout((()=>{n.emit("areaEnd"),e.onSelect(),this.started=!1}),100)),t.preventDefault()}}});function Jx(e){return{type:"native",key:"theusual",events:{wheel(t){let n=!1;if(!e.constraints.active&&Gx(t,this.chart)){const r=Math.sign(-t.deltaY);e.viewState.set("rotation",r*(Math.PI/12)),n=!0}else if(!e.constraints.select&&!e.constraints.active){const e=this.chart.componentsFromPoint(t).filter((e=>"legend-cat"===e.key))[0];e&&(n=!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,e))}n&&t.preventDefault()}}}}const Zx=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"rotate",pointers:1,threshold:10,enable(t,n){return!(!this.started&&n)||!e.constraints.active&&!e.interactions.lasso.active()&&Gx(n,this.chart)}},events:{rotatestart(e){e.preventDefault();const t=this.chart.component("slices").rect,n=this.chart.element.getBoundingClientRect();this.pieCenter={x:n.left+t.x+t.width/2,y:n.top+t.y+t.height/2},this.prevAngle=Math.atan2(e.center.y-this.pieCenter.y,e.center.x-this.pieCenter.x),this.started=!0},rotatemove(t){t.preventDefault();const n=Math.atan2(t.center.y-this.pieCenter.y,t.center.x-this.pieCenter.x);e.viewState.set("rotation",n-this.prevAngle),this.prevAngle=n},rotateend(e){e.preventDefault(),this.started=!1},rotatecancel(e){e.preventDefault(),this.started=!1}}}),Qx=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"legendPan",pointers:1,threshold:10,enable(t,n){return!(!this.isStarted&&n)||!e.constraints.active&&this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>"legend-cat"===e.type))}},events:{legendPanstart(e){if(e.preventDefault(),!this.isStarted){this.components=this.chart.componentsFromPoint({x:e.center.x,y:e.center.y}),this.components.forEach((t=>{t.emit("panstart",e)})),this.isStarted=!0;const t=this.chart.component("tooltip");t&&t.show&&t.emit("hide")}},legendPanmove(e){this.components.forEach((t=>{t.emit("panmove",e)})),e.preventDefault()},legendPanend(e){e.preventDefault(),this.components.forEach((t=>{t.emit("panend",e)})),this.isStarted=!1}}}),ew=(e,t,n)=>({key:"hammered",type:"hammer",enable:!0,gestures:t?[Zx(e,{}),Kx(e,t,{}),...n]:[Wx(e,{}),Xx(e,{}),Zx(e,{}),Yx(e,{}),Qx(e,{}),Kx(e,t,{}),...n]});function tw(e,t,n){const r=e.getIsSingleSelect(0),{constraints:o}=n;if(o.active&&o.passive)return[];const i=t.tooltipService.getInteractions();return[ew(t,r,i.gestures),Jx(t),i.native]}function nw({settings:e},t){const n={share:{type:"d3-number",format:".1%"},arc:{data:{field:t.encodings.slice.arc}},fill:e.scales.fill&&e.scales.fill.data&&e.scales.fill.data.field?{data:{field:e.scales.fill.data.field}}:{}};return t.encodings.slice.outerRadius&&(n.outerRadius={data:{field:t.encodings.slice.outerRadius}}),n}function rw({layout:e},t,n){if(!e.dimensionTitle)return!1;const r=t.properties,o=t.styleService.axis.title.getStyle();return{key:"dimension-title",type:"data-title",layout:{minimumLayoutMode:"SMALL",dock:"top"},settings:{hyperCube:e.qHyperCube,hyperCubeDef:r&&r.qHyperCubeDef,isDimension:!0,disabled:()=>n.constraints.active||!n.model,model:t.model,app:t.app,translator:t.translator,rtl:n.rtl,selections:t.selections,isEnabled:t.flags.isEnabled},style:{fontFamily:o.fontFamily,fontSize:o.fontSize,color:o.color}}}function ow({layout:e,context:t,selectionService:n},r={}){const o=function({layout:e}={},t={}){const n={};return se(n,t.colorService.getScales()),t.encodings.slice.outerRadius&&se(n,function({layout:e},t){const n={radius:{type:"linear",include:[0],data:{extract:{field:t.encodings.slice.outerRadius}}}};return e.donut.showAsDonut||(n.radius.min=0),n}({layout:e},t)),n}({layout:e},r),i={scales:o};let a=[];const s=function(e,t){const n=e.disclaimerService.getDisclaimer();if(!n)return!1;const{rtl:r}=t,{translator:o}=e,{fontFamily:i}=e.themeService.getStyles();return{key:"disclaimer",type:"disclaimer",layout:{dock:n.alignment},settings:{isRTL:r,label:o.get(`Object.Disclaimer.${n.key}`)},style:{fontFamily:i}}}(r,t);if(r.disclaimerService.getHasSuppressingDisclaimer())return{components:[s]};const l=t.constraints.select||t.constraints.active,c=r.colorService.getLegend({eventName:"legend",key:"legend",viewState:r.viewState,chart:r.chart,styleReference:"object.pieChart",styleOverrides:{title:r.styleService.legend.title.getStyle(),label:r.styleService.legend.label.getStyle()},rtl:t.rtl},{navigationDisabled:l});return o.fillRange&&c.components[0]&&("right"===c.components[0].layout.dock||"left"===c.components[0].layout.dock||t.rtl)&&(o.fillRange.invert=!0),a=[Mx({layout:e,settings:i},r),Px({layout:e},r),Dx(r),Ox({layout:e},r),rw({layout:e},r,t),...c.components,wx({settings:i,scaleKey:"fill",legend:c.components[0]||{},onEdited:r.onSelect}),qx(),Ix(),Ux({layout:{components:e.components,dataPoint:se({},e.dataPoint,{show:!(e.effectPath&&e.snapshotData&&!1===e.dataPoint.show)}),donut:e.donut},context:t},r),...r.tooltipService.getComponents(),s],a=a.filter((e=>!1!==e)),{interactions:tw(n,r,t),scales:o,components:r.pluginService.extendComponents(a),palettes:r.colorService.getPalettes(),formatters:nw({settings:i},r),strategy:de(0,r)}}function iw({instance:e,services:t,picasso:n,flags:o}){const i=E(),a=q(),s=A(),l=D(),c=j(),u=N(),d=R(),p=z(),{qLocaleInfo:f}=$(),m=xx({enable:u&&!u.snapshotData}),[g]=F((()=>{if(!t)return Promise.resolve();dx.attrExpr.updateProperties(a,u);return Promise.all([t.colorService.initialize({createConfig:({getUseBaseColors:e})=>({theme:c,legendProps:u.legend,layout:u,localeInfo:f,hc:u.qHyperCube,colorProps:{...u.color,useBaseColors:e(u)}})}),a&&!u.snapshotData?a.getEffectiveProperties():Promise.resolve({}),t.pluginService.initialize()])}),[t,m]);I((()=>{null!=e&&e.selectionService&&e.selectionService.setLayout(u)}),[u]),I((()=>{if(!e||!g)return;const{chart:m,viewState:y,interactions:v,viewCache:b}=e,{colorService:x,disclaimerService:w,pluginService:S,themeService:C,tooltipService:k,styleService:E}=t,T=i.viewState||{};u.snapshotData||(y.preventSet("legendScrollOffset",T.legendScrollOffset||0),y.preventSet("rotation",T.rotation||0)),function(e,t){e&&e.snapshotData&&e.snapshotData.content&&e.snapshotData.content.chartData&&(t.preventSet("legendScrollOffset",e.snapshotData.content.chartData.legendScrollOffset),t.preventSet("rotation",e.snapshotData.content.chartData.rotation))}(u,y),k.expando.set("properties",g[1]);const R=n.data("q")({key:"qHyperCube",data:u.qHyperCube,config:{localeInfo:f}}),M=[{type:"q",key:"qHyperCube",data:u.qHyperCube,config:{localeInfo:f}},...x.getData()],P={slice:{arc:"qMeasureInfo/0"}};u.qHyperCube.qMeasureInfo.length>1&&(P.slice.outerRadius="qMeasureInfo/1"),w.initialize({args:{ds:R,encodings:P}});const D=function(e,t){if(t.slice.outerRadius)return e.extract({field:"qDimensionInfo/0",props:{num:{field:t.slice.arc},radius:{field:t.slice.outerRadius}}}).filter((e=>e.num.value>0&&"NaN"!==e.radius.value)).length;return e.extract({field:"qDimensionInfo/0",props:{num:{field:t.slice.arc}}}).filter((e=>e.num.value>0)).length}(n.data("q")({data:u.qHyperCube,config:{localeInfo:f}}),P),O=d?()=>{const e=m.brush("selection");r.selections(e,{},u).forEach((e=>{d.select(e)}))}:()=>{},I=u.snapshotData&&!i.freeResize?{width:(u.snapshotData.content.size||u.snapshotData.object.size).w,height:(u.snapshotData.content.size||u.snapshotData.object.size).h}:void 0,q=t=>e.selectionService.getIsSelectionLocked(t),A=()=>ow({layout:u,context:{rtl:"rtl"===i.direction,theme:c,translator:l,constraints:p,model:a},selectionService:e.selectionService},{picasso:n,ds:R,model:a,app:s,chart:m,onSelect:O,isLocked:q,interactions:v,constraints:p,translator:l,viewState:y,dataRowCount:D,encodings:P,colorService:x,disclaimerService:w,pluginService:S,themeService:C,styleService:E,tooltipService:k,debouncer:h,properties:g[1],logicalSize:I,flags:o,animations:{enabled:()=>function({viewState:e,options:t,viewCache:n,layout:r,chart:o}){return!1!==t.chartAnimations&&n.get("chartWidth")===o.element.clientWidth&&n.get("chartHeight")===o.element.clientHeight&&n.get("hasZeroLine")===!!o.component("zeroLine")&&0===e.get("rotation")&&!Jo.propertiesHaveChanged({viewCache:n,layout:r})}({viewState:y,options:i,layout:u,viewCache:b,chart:m})}});e.generateSettings=A;const N=A();m.update({data:M,settings:N}),b.set("chartWidth",m.element.clientWidth),b.set("chartHeight",m.element.clientHeight),b.set("hasZeroLine",N.components.filter((e=>"zeroLine"===e.key)).length>0),Jo.cacheProperties({viewCache:b,layout:u}),i.effect&&u.effectProperties?i.effect.update(u,m,{encodings:P}):u.effectPath||m.brush("highlight").end()}),[e,g,i.direction,i.effectProperties,p,c.name(),l.language()])}const aw="legend-cat";function sw({instance:e,services:t}){const n=T(),r=N();B((o=>{if(!(r.snapshotData&&r.snapshotData.content&&r.snapshotData.content.chartData)&&(function(e,t){const n=t.getBoundingClientRect();e.snapshotData=e.snapshotData||{},e.snapshotData.content=e.snapshotData.content||{},e.snapshotData.content.size=e.snapshotData.content.size||{w:n.width,h:n.height}}(o,n),e&&t))return function({layout:e,chart:t,viewState:n,colorService:r}){return e.snapshotData.content=e.snapshotData.content||{},e.snapshotData.content.chartData={legendScrollOffset:he(t,aw),rotation:n.get("rotation")},r.getSnapshotData().then((t=>{e.snapshotData.content.chartData={...e.snapshotData.content.chartData,...t}})).catch((()=>{}))}({layout:o,chart:e.chart,colorService:t.colorService,viewState:e.viewState})})),U((()=>({getViewState:()=>({rotation:e.viewState.get("rotation"),legendScrollOffset:he(e.chart,"legend-cat")})})),[e])}const lw={setValue(e,t,n){if(!t)return;const r=t.split(".");let o=e;const i=r[r.length-1];let a;for(a=0;a<r.length-1;++a)null==o[r[a]]&&(o[r[a]]=Number.isNaN(+r[a+1])?{}:[]),o=o[r[a]];void 0!==n?o[i]=n:delete o[i]},getValue(e,t,n){const r=t.split(".");let o,i=e;if(void 0===i)return n;for(o=0;o<r.length;++o){if(null==i[r[o]])return n;i=i[r[o]]}return i}},cw={getDimensions:e=>lw.getValue(e,"qHyperCubeDef.qDimensions",[]),getNumDimensions:e=>lw.getValue(e,"qHyperCubeDef.qDimensions.length",0),getMeasures:e=>lw.getValue(e,"qHyperCubeDef.qMeasures",[]),getNumMeasures:e=>lw.getValue(e,"qHyperCubeDef.qMeasures.length",0),getDimensionLayouts(e,t){const n=lw.getValue(e,t?`${t}.qHyperCube`:"qHyperCube",null);return n?n.qDimensionInfo:[]},getDimensionLayout(e,t,n){return this.getDimensionLayouts(t,n).filter((t=>e===t.cId))[0]},getMeasureLayouts(e,t){const n=lw.getValue(e,t?`${t}.qHyperCube`:"qHyperCube",null);return n?n.qMeasureInfo:[]},getMeasureLayout(e,t,n){return this.getMeasureLayouts(t,n).filter((t=>e===t.cId))[0]}};const uw={colorModeOptions:{primary:()=>!0,dimension:()=>!0,multiColor:()=>!1,measure:()=>!0,expression:e=>cw.getNumMeasures(e)>=1},showLegend:e=>{const t=lw.getValue(e,"color.auto"),n=lw.getValue(e,"color.expressionIsColor"),r=lw.getValue(e,"color.mode");return!(!t&&"primary"===r||!t&&"byExpression"===r&&(n||void 0===n))},persistentColorsShow:e=>!lw.getValue(e,"color.auto")&&"byDimension"===lw.getValue(e,"color.mode"),useDimValColShow:e=>(void 0===lw.getValue(e,"color.useDimColVal")&&lw.setValue(e,"color.useDimColVal",!1),!lw.getValue(e,"color.auto")&&"byDimension"===lw.getValue(e,"color.mode")&&"libraryItem"===lw.getValue(e,"color.byDimDef.type"))},dw=function(e){const{colorModeOptions:t,persistentColorsShow:n,useDimValColShow:r,showLegend:o}=uw;this.color={colorMode:{options(n){const r=[];return"explore"===e&&r.push({value:"auto",translation:"Common.Auto"}),t.primary(n)&&r.push({value:"primary",translation:"properties.colorMode.primary"}),t.multiColor(n)&&r.push({value:"byMultiple",translation:"properties.colorMode.multicolored"}),t.dimension(n)&&r.push({value:"byDimension",translation:"properties.colorMode.byDimension"}),t.measure(n)&&r.push({value:"byMeasure",translation:"properties.colorMode.byMeasure"}),t.expression(n)&&"explore"!==e&&r.push({value:"byExpression",translation:"properties.colorMode.byExpression"}),r}},persistentColors:{show:e=>r(e)?n(e)&&!lw.getValue(e,"color.useDimColVal"):n(e)},useDimColVal:{show:r}},this.legend={show:o,showTitle:{show(e){const t=lw.getValue(e,"color.auto");return lw.getValue(e,"legend.show")&&o(e)&&(t||!function(e){return"byExpression"===lw.getValue(e,"color.mode")&&!0===lw.getValue(e,"color.expressionIsColor")}(e))}},dock:{show:e=>lw.getValue(e,"legend.show")&&o(e)}}};function pw(e){return new dw(e)}const fw={classification:{section:"styling",tags:["simple"],exclusive:!0},component:"items",show:!0,chartType:"piechart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.PieChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,items:{strokeSection:{translation:"properties.Outline",component:"items",items:{strokeItem:{component:"items",ref:"components",key:"slices",items:{strokeWrapper:{component:"inline-wrapper",items:{strokeWidth:{translation:"LayerStyleEditor.style.strokeWidth",ref:"style.strokeWidth",width:9,show:!0,component:"dropdown",type:"string",options:[{value:"none",translation:"Common.None"},{value:"small",translation:"Common.Small"},{value:"medium",translation:"Common.Medium"},{value:"large",translation:"Common.Large"}],defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",defaultValue:{color:"#FFFFFF"},schemaIgnore:!0,width:3,component:"color-picker"}}}}}}},cornerRadius:{component:"items",translation:"LayerStyleEditor.style.cornerRadius",items:{cornerRadiusItem:{component:"items",ref:"components",key:"slices",items:{cornerRadiusSlider:{ref:"style.cornerRadius",translation:"LayerStyleEditor.style.cornerRadius",component:"slider",min:0,max:40,step:.05,width:12,defaultValue:0,schemaIgnore:!0}}}}},innerRadius:{translation:"LayerStyleEditor.style.innerRadius",component:"items",show:e=>e.donut.showAsDonut,items:{innerRadiusItem:{component:"items",ref:"components",key:"slices",items:{innerRadiusSlider:{ref:"style.innerRadius",translation:"LayerStyleEditor.style.innerRadius",component:"slider",min:.05,max:.75,step:.01,width:12,defaultValue:.55,schemaIgnore:!0}}}}}}},hw=(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.pieChart",e,"color")})}}}}},mw=(e,t,n,r)=>{const o=m({theme:r,translator:n,flags:t,config:{id:"pieChart",paths:["axis.title","label.name","label.value","legend.title","legend.label"]}});return{component:"styling-panel",chartTitle:"Object.PieChart",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:e,items:{strokeSection:{translation:"properties.Outline",component:"panel-section",items:{strokeItem:{component:"items",ref:"components",key:"slices",items:{strokeWrapper:{component:"inline-wrapper",items:{strokeWidth:{ref:"style.strokeWidth",width:9,show:!0,component:"dropdown",type:"string",options:[{value:"none",translation:"Common.None"},{value:"small",translation:"Common.Small"},{value:"medium",translation:"Common.Medium"},{value:"large",translation:"Common.Large"}],defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",defaultValue:{color:"#FFFFFF"},schemaIgnore:!0,width:3,component:"color-picker"}}}}}}},cornerRadius:{translation:"LayerStyleEditor.style.cornerRadius",component:"panel-section",items:{cornerRadiusItem:{component:"items",ref:"components",key:"slices",items:{cornerRadiusSlider:{ref:"style.cornerRadius",component:"slider",min:0,max:40,step:.05,width:12,defaultValue:0,schemaIgnore:!0}}}}},innerRadius:{translation:"LayerStyleEditor.style.innerRadius",component:"panel-section",show:e=>e.donut.showAsDonut,items:{innerRadiusItem:{component:"items",ref:"components",key:"slices",items:{innerRadiusSlider:{ref:"style.innerRadius",component:"slider",min:.05,max:.75,step:.01,width:12,defaultValue:.55,schemaIgnore:!0}}}}},axisTitleSection:null!=t&&t.isEnabled("CLIENT_IM_3050")?{translation:"properties.dataPoints.dimensionlabels",component:"panel-section",items:{axisTitleItems:{component:"items",ref:"components",key:"axis",items:hw("axis.title",o,r)}}}:void 0,labelNameSection:null!=t&&t.isEnabled("CLIENT_IM_3050")?{translation:"properties.dataPoints.dimensionValueLabel",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"label",items:hw("label.name",o,r)}}}:void 0,labelValueSection:null!=t&&t.isEnabled("CLIENT_IM_3050")?{translation:"properties.value.label",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"label",items:hw("label.value",o,r)}}}:void 0,legendTitleSection:null!=t&&t.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.title",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"legend",items:hw("legend.title",o,r)}}}:void 0,legendLabelSection:null!=t&&t.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.label",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"legend",items:hw("legend.label",o,r)}}}:void 0}}},gw=pw("hard");const yw=e=>{var t;null!==(t=e.color)&&void 0!==t&&t.auto||(i(e,"color.mode","byDimension"),i(e,"color.byDimDef.activeDimensionIndex",0),i(e,"color.persistent",!1))},vw=e=>{var t;const n=[{value:"primary",translation:"properties.colorMode.primary"},{value:"byDimension",translation:"properties.colorMode.byDimension"}];switch(null===(t=e.color)||void 0===t?void 0:t.mode){case"byMultiple":n.push({value:"byMultiple",translation:"properties.colorMode.multicolored"});break;case"byMeasure":n.push({value:"byMeasure",translation:"properties.colorMode.byMeasure"});break;case"byExpression":n.push({value:"byExpression",translation:"properties.colorMode.byExpression"})}return n},bw=e=>{var t;const{flags:n,translator:r}=e||{},o=null==e||null===(t=e.sense)||void 0===t?void 0:t.theme,a=null==n?void 0:n.isEnabled("SENSECLIENT_IM_2429_PIECHART_BG"),s={items:{simpleItems:{items:{autoColor:{label:e=>{var t;return null!==(t=e.color)&&void 0!==t&&t.auto?r.get("Simple.Color.Auto",r.get("properties.colorMode.byDimension")):r.get("Common.Custom")},change:yw},colorMode:{options:vw}}}}},l={items:{labels:{items:{header:{show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length},pointLabels:{component:"checkbox",ref:"dataPoint.auto",type:"boolean",defaultValue:!0,translation:"Simple.Label.Value",show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length,change(e){e.dataPoint.auto||i(e,"dataPoint.labelMode","none")}},dimensionTitle:{component:"checkbox",ref:"dimensionTitle",type:"string",translation:"Simple.Label.Dimension.Hide",defaultValue:"all",show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length,convertFunctions:{get:(e,t,n,r)=>!r.dimensionTitle,set(e,t,n,r,o){o.dimensionTitle=!e}}}}}}},c={uses:"settings",items:{simpleStyling:fw,simpleLabels:l,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:{sliceStyling:mw(a,n,r,o),showAsDonut:{ref:"donut.showAsDonut",type:"boolean",component:"item-selection-list",defaultValue:!1,horizontal:!0,items:[{icon:"pie_chart_pie",component:"icon-item",labelPlacement:"bottom",translation:"properties.pie",value:!1},{icon:"pie_chart_donut",component:"icon-item",labelPlacement:"bottom",translation:"properties.donut",value:!0}]},labels:{type:"items",snapshot:{tid:"property-labels"},items:{dimensionTitle:{ref:"dimensionTitle",type:"boolean",component:"switch",translation:"properties.dataPoints.dimensionlabels",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]},valuesAuto:{ref:"dataPoint.auto",type:"boolean",translation:"properties.dataPoints.labelmode",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}]},labelMode:{ref:"dataPoint.labelMode",type:"string",component:"dropdown",options:[{value:"none",translation:"Common.None"},{value:"share",translation:"properties.dataPoints.labelmode.share"},{value:"value",translation:"properties.dataPoints.labelmode.value"}],defaultValue:"share",show:e=>!e.dataPoint.auto},labelValueMode:{ref:"dataPoint.labelValueMode",type:"string",component:"dropdown",translation:"properties.dataPoints.labelvaluemode",options:[{value:"arc",translation:"Visualizations.Descriptions.Angle"},{value:"radius",translation:"Visualizations.Descriptions.Radius"}],defaultValue:"arc",show:e=>!e.dataPoint.auto&&function(e){return e.qHyperCubeDef&&e.qHyperCubeDef.qMeasures.length>1||e.qHyperCube&&e.qHyperCube.qMeasureInfo.length>1}(e)&&"value"===e.dataPoint.labelMode}}}}},colorsAndLegend:{uses:"colorsAndLegend",items:{colors:{items:{colorMode:{options:gw.color.colorMode.options},persistentColors:{show:gw.color.persistentColors.show}}},simpleColors:s,legend:{show:gw.legend.show,items:{show:{defaultValue:!1,snapshot:{tid:"property-legend"}},showTitle:{show:gw.legend.showTitle.show},dock:{show:gw.legend.dock.show}}}}},tooltip:{uses:"tooltip"}}};return c},xw={uses:"data",items:{dimensions:{uses:"dimensions"},measures:{uses:"measures",items:{numberFormatting:{items:{percentOfPieMessage:{component:"text",translation:"properties.numberFormatting.pieMessage",show:(e,t,{properties:n}={})=>n&&(n.dataPoint.auto||"share"!==n.dataPoint.labelMode)}}}}}}},ww={uses:"sorting",items:{interColumnSorting:{reset:e=>{const{qDimensions:t,qMeasures:n,qInterColumnSortOrder:r}=e.qHyperCubeDef;if(1===t.length&&n.length>=1){const t=r.length,n=[...Array(t).keys()];[n[0],n[1]]=[n[1],n[0]],e.qHyperCubeDef.qInterColumnSortOrder=n}}}}},Sw={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{suppressZero:null,calcCond:{uses:"calcCond"}}}}};function Cw(e){return{type:"items",component:"accordion",items:{data:xw,sorting:ww,addons:Sw,settings:bw(e)}}}const kw=pw("explore"),Ew=Cw();var Tw={type:"items",component:"accordion",items:{data:{uses:"data"},sort:{uses:"sort"},presentation:{uses:"presentation",items:{showAsDonut:Ew.items.settings.items.presentation.items.showAsDonut,labelMode:{type:"items",items:{labelMode:{type:"string",component:"radio-list",translation:"properties.dataPoints.labelmode",diffs:["dataPoint.auto:false","dataPoint.labelMode"],options:Ew.items.settings.items.presentation.items.labels.items.labelMode.options,setPropertyValue(e,t){e.dataPoint.auto=!1,e.dataPoint.labelMode=t},getValue:e=>e.dataPoint.auto?"":e.dataPoint.labelMode}}}}},color:{uses:"color",items:{mode:{options:kw.color.colorMode.options},dimension:{items:{persistentColors:{show:e=>!(e.color&&"byDimension"===e.color.mode&&e.color.useDimColVal&&kw.color.useDimColVal.show(e))}}}}}}};const Rw="slices";function Mw(e,t){const n=e&&e.desc&&void 0!==e.desc.share?e.desc.share:void 0;return t("share")(n)}function Pw(e){return e.data.num.label}function Dw(e){return e.data.radius.label}function Ow(e,t,n,r){return function(e,t){if(e.dataPoint.auto)return 1===e.qHyperCube.qSize.qcy?Pw:Mw;if("share"===e.dataPoint.labelMode)return Mw;if("value"===e.dataPoint.labelMode)return t.encodings.slice.outerRadius&&"radius"===e.dataPoint.labelValueMode?Dw:Pw;return Pw}(n,r)(e,t)}function Iw(e){let t;return t=e.data.label?function(e,t){let n=e;return n.length>t&&(n=`${n.substr(0,t-3)}...`),n}(e.data.label,20):"",t}class qw{constructor({element:e,properties:t,effectHelper:n,Flag:r}){this.element=e,this.Flag=r,n.initFade(this.element);const o=e.find(".effectLayer");o.length>0&&o.remove(),e.append('<div class="effectLayer"></div>'),this.effectLayer=e.find(".effectLayer"),this._effectProperties=t,this.selectedIndex=t.selectedIndex,this.hasPropertiesPanel=!1,this.effectApplied=!0,n.fadeIn(this.element)}updateOrigSettings(e){return{dataPoint:e.dataPoint,legend:e.legend,dimensionTitle:e.dimensionTitle}}updateFlags(e,t){const n=this.chart.getAffectedShapes("highlight"),r=this.effectLayer[0].getBoundingClientRect(),o=n.map((n=>{const{start:o,end:i,outerRadius:a,offset:s}=n.desc.slice,{scaleRatio:l}=this.chart.component(n.key).rect,c=n.element.getBoundingClientRect(),u=(o+i)/2,d=c.left-r.left+l.x*(s.x+a*Math.sin(u)),p=c.top-r.top+l.y*(s.y-a*Math.cos(u)),f=Math.cos(u)>0?"top":"bottom",h=Math.sin(u)>0?"right":"left";return{title:Iw(n),label:Ow(n,this.chart.formatter,e,t),orientation:`${f}${h}`,position:{x:d,y:p}}}));this.Flag.show(this.effectLayer,o)}init(e,t,n,r){return t.getProperties().then((e=>{if(!e.originalModelSettings){const t=se(!0,{},e);e.originalModelSettings=this.updateOrigSettings(t)}e.effectProperties=r,e.effectPath=n,e.dataPoint.show=!1,e.legend.show=!1,e.dimensionTitle=!1,t.setProperties(e)}))}remove(e,t,n){return e.options=se(e.options,{effect:null}),n?t.getProperties().then((e=>se(e,{effectPath:null,effectProperties:null,dataPoint:se(!0,{},e.originalModelSettings.dataPoint),legend:se(!0,{},e.originalModelSettings.legend),dimensionTitle:e.originalModelSettings.dimensionTitle}))):Promise.resolve()}}class Aw extends qw{init(e,t,n,r){return e.options=se(!0,e.options,{effect:this}),t.layout.effectProperties&&t.layout.effectPath===n&&t.layout.effectProperties.max===r.max?Promise.resolve():super.init(e,t,n,r)}update(e,t,n){this.chart=t,this.updateHighlight(e),this.updateFlags(e,n)}updateHighlight(e){const t=this.chart.component(Rw).data.items,n=e.effectProperties.min,r=e.effectProperties.max,o=[];let i=[1/0,-1],a=[-1/0,-1];t.forEach(((e,t)=>{const o=e.num.value;n&&o<i[0]&&(i=[o,t]),r&&o>a[0]&&(a=[o,t])})),-1!==i[1]&&o.push(t[i[1]].value),-1!==a[1]&&o.push(t[a[1]].value),o.length&&this.chart.brush("highlight").setValues(o.map((e=>({key:"qHyperCube/qDimensionInfo/0",value:e}))))}}class Nw extends qw{constructor(e){super(e),this.hasPropertiesPanel=!0,this.propsTemplate=e.highlightValuePropsTemplate,this.effectHelper=e.effectHelper}onClick(e){if(!this.chart)return;const t=this.chart.shapesAt(function(e,t){const n=t.element.getBoundingClientRect();return{x:e.clientX-n.left,y:e.clientY-n.top}}(e,this.chart),{propagation:"stop"});if(1!==t.length)return;const n=t[0],r=this.chart.component(Rw).data.items.map((e=>e.value)),o=r.indexOf(n.data.value);-1!==o&&(this.selectedIndex=o,this.effectHelper.updateSelectedPointIndex(this))}update(e,t,n){this.chart=t,this.updateHighlight(e),this.updateDataPoints(e,n),this.updateFlags(e,n)}updateHighlight(e){const t=this.chart.component(Rw).data.items[e.effectProperties.selectedIndex];this.chart.brush("highlight").setValues([{key:"qHyperCube/qDimensionInfo/0",value:t.value}])}updateDataPoints(e,t){this.dataPoints=this.chart.findShapes("path").filter((e=>e.key===Rw)).map(((n,r)=>{const o=Ow(n,this.chart.formatter,e,t);return{text:`${Iw(n)} (${o})`,value:r}}))}init(e,t,n,r){return e.options=se(!0,e.options,{effect:this}),t.layout.effectProperties&&t.layout.effectPath===n&&t.layout.effectProperties.selectedIndex===r.selectedIndex?Promise.resolve():super.init(e,t,n,r)}}const Lw="/effects/highlight-value",zw="/effects/maxmin";var jw={isCompatible:({effectPath:e})=>e===zw||e===Lw,create:e=>e.effectPath===zw?new Aw(e):e.effectPath===Lw?new Nw(e):null};function $w(e){const t={},{components:n,tooltip:r}=e,o=n?n.filter((e=>"slices"===e.key))[0]:void 0;if(o&&o.style&&Object.keys(o.style).forEach((e=>{t[`chart_style_${e}`]=o.style[e]})),r){var i;t.chart_tooltip_custom=!r.auto;const e=null===(i=r.chart)||void 0===i||null===(i=i.object)||void 0===i?void 0:i.refId;!r.auto&&e&&(t.chart_tooltip_custom_mini_chart=e)}return t}function _w(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))}function Fw(e){e.qOtherTotalSpec.qOtherMode="OTHER_COUNTED",e.qOtherTotalSpec.qOtherCounted={qv:"10"}}function Hw({translator:e}){return{dimensions:{min:1,max:1,description:()=>e.get("Visualizations.Descriptions.Slice"),add(e,t){Fw(e),_w(t),ox.addCallbackCustomTooltip(t)},move(e,t){Fw(e),_w(t),ox.moveCallbackCustomTooltip(t,e)},remove(e,t){ox.removeCallbackCustomTooltip(t,e)},replace(e,t,n,r){Fw(e),_w(r),ox.replaceCallbackCustomTooltip(r,t)}},measures:{min:1,max:2,description:(t,n)=>e.get(0===n?"Visualizations.Descriptions.Angle":"Visualizations.Descriptions.Radius"),add(e,t){_w(t)},remove(e,t){!function(e){if(!e.qHyperCubeDef)return;const t=e.qHyperCubeDef.qMeasures,{mode:n}=e.color;"byExpression"===n&&0===t.length&&(e.color.mode="primary")}(t)}}}}const Bw=e=>e.qMax<=0,Uw=e=>!(!(e&&e.qHyperCube.qSize.qcy>0)||e.qHyperCube.qMeasureInfo.every(Bw));function Ww(e){return{definition:Cw(e),softDefinition:Tw,support:{snapshot:Uw,export:Uw,exportData:!0,sharing:Uw,viewData:!0,effects:!0},effects:jw,extendMetrics:$w,importProperties:(t,n,r,o)=>{const i={layout:{templateId:n.templateId}};r.mapProperties(i);const a={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()},s=W.colorChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:Hw(e),defaultPropertyValues:a,hypercubePath:o});return s.qProperty.dataPoint&&!1===s.qProperty.dataPoint.show&&delete s.qProperty.dataPoint.show,s},exportProperties:(e,t,n)=>W.colorChart.exportProperties({propertyTree:e,hypercubePath:t,viewDataMode:n})}}function Vw(e){return{properties:{version:"1.27.12",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:[{key:"slices",style:{strokeWidth:"none",strokeColor:{index:-1,color:Ex.STROKE.COLOR},cornerRadius:Ex.CORNER_RADIUS,innerRadius:Ex.INNER_RADIUS}}],dataPoint:{auto:!0,labelMode:"share",labelValueMode:"arc"},dimensionTitle:!0,donut:{showAsDonut:!1},footnote:"",legend:{dock:"auto",show:!0,showTitle:!0},qHyperCubeDef:{qDimensions:[],qMeasures:[],qInitialDataFetch:[{qWidth:10,qHeight:500}],qSuppressMissing:!0,qSuppressZero:!1,qMode:"S"},showDetails:!0,showDisclaimer:!0,showTitles:!0,subtitle:"",title:"",tooltip:{auto:!0,hideBasic:!1,data:{qHyperCubeDef:void 0},chart:void 0,imageComponents:void 0}},data:{targets:[Hw(e)]},importProperties:({exportFormat:t,initialProperties:n,hypercubePath:r})=>{const o=W.colorChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:Hw(e),hypercubePath:r});return o.qProperty.dataPoint&&!1===o.qProperty.dataPoint.show&&delete o.qProperty.dataPoint.show,o},exportProperties:({propertyTree:e,hypercubePath:t,viewDataMode:n})=>W.colorChart.exportProperties({propertyTree:e,hypercubePath:t,viewDataMode:n})}}e("default",(e=>{const{flags:t}=e;!function(e){if(e&&e.get&&e.add){const t="Object.Disclaimer.LimitedData";if(e.get(t)!==t)return;Object.keys(V).forEach((t=>{e.add(V[t])}))}}(e.translator);const n=jb();return{qae:Vw(e),ext:Ww(e),component(){const e=Ub({picasso:n}),r=function({flags:e,picasso:t,instance:n}){const r=q(),o=A(),i=D(),a=T(),[s,l]=M(),c=N(),u=L(),h=z(),m=E(),g=j(),{qLocaleInfo:y}=$(),v=_();return I((()=>{if(!n)return;a.style.overflow="hidden";const s=d({picasso:n.picasso,model:r,app:o,translator:i,config:{auto:!1,key:"fill"}}),b=p({picassoInstance:n.picasso,plugins:u,pluginArgs:hx(c)}),x=fx({flags:e,layout:c,app:o,model:r,picasso:t,chart:n.chart,translator:i,localeInfo:y,embed:v,options:m}),w=f({theme:g,config:{id:"pieChart",resolve:[["object","label.name","color","#595959"],["object","label.name","fontFamily"],["object","label.name","fontSize","12px"]]}}),S=gx({app:o,chart:n.chart,translator:i,layout:c,constraints:h,options:m,themeService:w,colorService:s,custom:x}),C=function({layout:e,themeService:t,flags:n}){const r=t.getStyles(),o=t=>{var r;return n.isEnabled("CLIENT_IM_3050")?null===(r=e.components)||void 0===r?void 0:r.find((e=>e.key===t)):void 0};return{axis:{title:{getStyle:()=>{var e,t,n,i,a,s;return{fontFamily:null!==(e=null===(t=o("axis"))||void 0===t||null===(t=t.axis)||void 0===t||null===(t=t.title)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:r.axis.title.fontFamily,fontSize:null!==(n=null===(i=o("axis"))||void 0===i||null===(i=i.axis)||void 0===i||null===(i=i.title)||void 0===i?void 0:i.fontSize)&&void 0!==n?n:r.axis.title.fontSize,color:null!==(a=null===(s=o("axis"))||void 0===s||null===(s=s.axis)||void 0===s||null===(s=s.title)||void 0===s||null===(s=s.color)||void 0===s?void 0:s.color)&&void 0!==a?a:r.axis.title.color}}}},label:{name:{getStyle:()=>{var e,t,n,i,a,s;return{fill:null!==(e=null===(t=o("label"))||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.name)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:r.label.name.color,fontSize:null!==(n=null===(i=o("label"))||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.name)||void 0===i?void 0:i.fontSize)&&void 0!==n?n:r.label.name.fontSize,fontFamily:null!==(a=null===(s=o("label"))||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.name)||void 0===s?void 0:s.fontFamily)&&void 0!==a?a:r.label.name.fontFamily}}},value:{getStyle:()=>{var e,t,n,i,a,s;return{fill:null!==(e=null===(t=o("label"))||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.value)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:r.label.value.color,fontSize:null!==(n=null===(i=o("label"))||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.value)||void 0===i?void 0:i.fontSize)&&void 0!==n?n:r.label.value.fontSize,fontFamily:null!==(a=null===(s=o("label"))||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.value)||void 0===s?void 0:s.fontFamily)&&void 0!==a?a:r.label.value.fontFamily}}}},legend:{title:{getStyle:()=>{var e,t,n,i,a,s;return{fontFamily:null!==(e=null===(t=o("legend"))||void 0===t||null===(t=t.legend)||void 0===t||null===(t=t.title)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:r.legend.title.fontFamily,fontSize:null!==(n=null===(i=o("legend"))||void 0===i||null===(i=i.legend)||void 0===i||null===(i=i.title)||void 0===i?void 0:i.fontSize)&&void 0!==n?n:r.legend.title.fontSize,color:null!==(a=null===(s=o("legend"))||void 0===s||null===(s=s.legend)||void 0===s||null===(s=s.title)||void 0===s||null===(s=s.color)||void 0===s?void 0:s.color)&&void 0!==a?a:r.legend.title.color}}},label:{getStyle:()=>{var e,t,n,i,a,s;return{fontFamily:null!==(e=null===(t=o("legend"))||void 0===t||null===(t=t.legend)||void 0===t||null===(t=t.label)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:r.legend.label.fontFamily,fontSize:null!==(n=null===(i=o("legend"))||void 0===i||null===(i=i.legend)||void 0===i||null===(i=i.label)||void 0===i?void 0:i.fontSize)&&void 0!==n?n:r.legend.label.fontSize,color:null!==(a=null===(s=o("legend"))||void 0===s||null===(s=s.legend)||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.color)||void 0===s?void 0:s.color)&&void 0!==a?a:r.legend.label.color}}}}}}({layout:c,themeService:w,flags:e}),k=mx({layout:c});l({colorService:s,disclaimerService:k,pluginService:b,themeService:w,tooltipService:S,styleService:C})}),[r,o,n,c,i.language(),h,m.direction,g.name()]),s}({flags:t,picasso:n,instance:e});iw({instance:e,services:r,picasso:n,flags:t}),function({instance:e}){const t=N(),n=E(),r=H();I((()=>{if(!e||!e.generateSettings)return;const{viewCache:r,chart:o,generateSettings:i}=e;o.update({settings:i()}),r.set("chartWidth",o.element.clientWidth),r.set("chartHeight",o.element.clientHeight),n.effect&&n.effect.update(t,o)}),[r.width,r.height])}({instance:e}),sw({instance:e,services:r})}}}))}}}));
|
|
94
|
+
`),wv.rippleVisible,Mv,550,(({theme:e})=>e.transitions.easing.easeInOut),wv.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),wv.child,wv.childLeaving,Pv,550,(({theme:e})=>e.transitions.easing.easeInOut),wv.childPulsate,Dv,(({theme:e})=>e.transitions.easing.easeInOut)),qv=y.forwardRef((function(e,t){const n=Ly({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=Ui(n,Sv),[s,l]=y.useState([]),c=y.useRef(0),u=y.useRef(null);y.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[s]);const d=y.useRef(!1),p=Eg(),f=y.useRef(null),h=y.useRef(null),m=y.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;l((e=>[...e,wh.jsx(Iv,{classes:{ripple:Hm(o.ripple,wv.ripple),rippleVisible:Hm(o.rippleVisible,wv.rippleVisible),ripplePulsate:Hm(o.ripplePulsate,wv.ripplePulsate),child:Hm(o.child,wv.child),childLeaving:Hm(o.childLeaving,wv.childLeaving),childPulsate:Hm(o.childPulsate,wv.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},c.current)])),c.current+=1,u.current=a}),[o]),g=y.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:h.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=()=>{m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})}),[r,m,p]),v=y.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=y.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,(()=>{b(e,t)}));f.current=null,l((e=>e.length>0?e.slice(1):e)),u.current=t}),[p]);return y.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),wh.jsx(Ov,Ii({className:Hm(wv.root,o.root,i),ref:h},a,{children:wh.jsx(Ku,{component:null,exit:!0,children:s})}))}));var Av=qv;function Nv(e){return Um("MuiButtonBase",e)}var Lv=Wm("MuiButtonBase",["root","disabled","focusVisible"]);const zv=["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"],jv=fv("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"},[`&.${Lv.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),$v=y.forwardRef((function(e,t){const n=Ly({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:h,onContextMenu:m,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:x,onKeyUp:w,onMouseDown:S,onMouseLeave:C,onMouseUp:k,onTouchEnd:E,onTouchMove:T,onTouchStart:R,tabIndex:M=0,TouchRippleProps:P,touchRippleRef:D,type:O}=n,I=Ui(n,zv),q=y.useRef(null),A=y.useRef(null),N=wg(A,D),{isFocusVisibleRef:L,onFocus:z,onBlur:j,ref:$}=Ag(),[_,F]=y.useState(!1);l&&_&&F(!1),y.useImperativeHandle(r,(()=>({focusVisible:()=>{F(!0),q.current.focus()}})),[]);const[H,B]=y.useState(!1);y.useEffect((()=>{B(!0)}),[]);const U=H&&!c&&!l;function W(e,t,n=u){return xg((r=>{t&&t(r);return!n&&A.current&&A.current[e](r),!0}))}y.useEffect((()=>{_&&d&&!c&&H&&A.current.pulsate()}),[c,d,_,H]);const V=W("start",S),G=W("stop",m),K=W("stop",g),Y=W("stop",k),X=W("stop",(e=>{_&&e.preventDefault(),C&&C(e)})),J=W("start",R),Z=W("stop",E),Q=W("stop",T),ee=W("stop",(e=>{j(e),!1===L.current&&F(!1),f&&f(e)}),!1),te=xg((e=>{q.current||(q.current=e.currentTarget),z(e),!0===L.current&&(F(!0),b&&b(e)),v&&v(e)})),ne=()=>{const e=q.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},re=y.useRef(!1),oe=xg((e=>{d&&!re.current&&_&&A.current&&" "===e.key&&(re.current=!0,A.current.stop(e,(()=>{A.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!l&&(e.preventDefault(),h&&h(e))})),ie=xg((e=>{d&&" "===e.key&&A.current&&_&&!e.defaultPrevented&&(re.current=!1,A.current.stop(e,(()=>{A.current.pulsate(e)}))),w&&w(e),h&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=s;"button"===ae&&(I.href||I.to)&&(ae=p);const se={};"button"===ae?(se.type=void 0===O?"button":O,se.disabled=l):(I.href||I.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=wg(t,$,q),ce=Ii({},n,{centerRipple:o,component:s,disabled:l,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:M,focusVisible:_}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=Ng({root:["root",t&&"disabled",n&&"focusVisible"]},Nv,o);return n&&r&&(i.root+=` ${r}`),i})(ce);return wh.jsxs(jv,Ii({as:ae,className:Hm(ue.root,a),ownerState:ce,onBlur:ee,onClick:h,onContextMenu:G,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:Y,onDragLeave:K,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:l?-1:M,type:O},se,I,{children:[i,U?wh.jsx(Av,Ii({ref:N,center:o},P)):null]}))}));var _v=$v;function Fv(e){return Um("MuiButton",e)}var Hv=Wm("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var Bv=y.createContext({});var Uv=y.createContext(void 0);const Wv=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Vv=e=>Ii({},"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}}),Gv=fv(_v,{shouldForwardProp:e=>pv(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Lh(n.color)}`],t[`size${Lh(n.size)}`],t[`${n.variant}Size${Lh(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 Ii({},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":Ii({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Qg(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})`:Qg(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})`:Qg(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":Ii({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Hv.focusVisible}`]:Ii({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Hv.disabled}`]:Ii({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 ${Qg(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"},[`&.${Hv.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Hv.disabled}`]:{boxShadow:"none"}})),Kv=fv("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Lh(n.size)}`]]}})((({ownerState:e})=>Ii({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Vv(e)))),Yv=fv("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Lh(n.size)}`]]}})((({ownerState:e})=>Ii({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Vv(e)))),Xv=y.forwardRef((function(e,t){const n=y.useContext(Bv),r=y.useContext(Uv),o=Ly({props:gg(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:h=!1,size:m="medium",startIcon:g,type:v,variant:b="text"}=o,x=Ui(o,Wv),w=Ii({},o,{color:a,component:s,disabled:c,disableElevation:u,disableFocusRipple:d,fullWidth:h,size:m,type:v,variant:b}),S=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return Ii({},a,Ng({root:["root",i,`${i}${Lh(t)}`,`size${Lh(o)}`,`${i}Size${Lh(o)}`,`color${Lh(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Lh(o)}`],endIcon:["icon","endIcon",`iconSize${Lh(o)}`]},Fv,a))})(w),C=g&&wh.jsx(Kv,{className:S.startIcon,ownerState:w,children:g}),k=p&&wh.jsx(Yv,{className:S.endIcon,ownerState:w,children:p}),E=r||"";return wh.jsxs(Gv,Ii({ownerState:w,className:Hm(n.className,S.root,l,E),component:s,disabled:c,focusRipple:!d,focusVisibleClassName:Hm(S.focusVisible,f),ref:t,type:v},x,{classes:S,children:[C,i,k]}))}));var Jv=Xv;var Zv=y.createContext({});function Qv(e){return Um("MuiListItemButton",e)}var eb=Wm("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);const tb=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],nb=fv(_v,{shouldForwardProp:e=>pv(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})=>Ii({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"}},[`&.${eb.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Qg(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${eb.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Qg(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${eb.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Qg(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})`:Qg(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${eb.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${eb.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}))),rb=y.forwardRef((function(e,t){const n=Ly({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=Ui(n,tb),h=y.useContext(Zv),m=y.useMemo((()=>({dense:s||h.dense||!1,alignItems:r,disableGutters:l})),[r,h.dense,s,l]),g=y.useRef(null);vg((()=>{o&&g.current&&g.current.focus()}),[o]);const v=Ii({},n,{alignItems:r,dense:m.dense,disableGutters:l,divider:c,selected:d}),b=(e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:a,selected:s}=e;return Ii({},n,Ng({root:["root",r&&"dense",!i&&"gutters",a&&"divider",o&&"disabled","flex-start"===t&&"alignItemsFlexStart",s&&"selected"]},Qv,n))})(v),x=wg(g,t);return wh.jsx(Zv.Provider,{value:m,children:wh.jsx(nb,Ii({ref:x,href:f.href||f.to,component:(f.href||f.to)&&"div"===i?"button":i,focusVisibleClassName:Hm(b.focusVisible,u),ownerState:v,className:Hm(b.root,p)},f,{classes:b,children:a}))})}));var ob=rb;function ib(e){return Um("MuiListItemIcon",e)}Wm("MuiListItemIcon",["root","alignItemsFlexStart"]);const ab=["className"],sb=fv("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})=>Ii({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),lb=y.forwardRef((function(e,t){const n=Ly({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=Ui(n,ab),i=Ii({},n,{alignItems:y.useContext(Zv).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return Ng({root:["root","flex-start"===t&&"alignItemsFlexStart"]},ib,n)})(i);return wh.jsx(sb,Ii({className:Hm(a.root,r),ownerState:i,ref:t},o))}));var cb=lb;function ub(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 db(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ub(Object(n),!0).forEach((function(t){pb(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ub(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pb(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fb=function(e){var t=e.className,n=e.path,r=e.fillRule;return g.createElement(xv,{className:t,viewBox:"0 0 16 16",fontSize:"small",role:"img",style:{height:12,width:12}},g.createElement("path",{d:n}),r?g.createElement("use",{fillRule:r}):void 0)},hb={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)"}}};fv(Jv,{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:"45px",padding:n,"&:disabled":{color:a,opacity:1},"& .MuiButton-startIcon":{margin:"ltr"===t?"0 2px":void 0},"& .MuiButton-endIcon":{margin:"rtl"===t?"0 2px":void 0}}})),fv((function(e){var t=e.className;return g.createElement(fb,{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:hb.ICONS.COLOR.SECONDARY}})),fv((function(e){var t=e.className;return g.createElement(fb,{className:t,path:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})}))((function(){return{color:hb.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:hb.ICONS.COLOR.DISABLED}}})),fv(Jv,{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}}}));var mb={color:hb.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:hb.ICONS.COLOR.DISABLED}};fv((function(e){var t=e.className;return g.createElement(fb,{className:t,path:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5 8.5 8z"})}))((function(){return mb})),fv((function(e){var t=e.className;return g.createElement(fb,{className:t,path:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))((function(){return mb})),fv((function(e){var t=e.className;return g.createElement(fb,{className:t,path:"M15.9993744,3 L15.9993744,5 L4.99937445,5 L4.99937445,3 L15.9993744,3 Z M8.99937445,7 L15.9993744,7 L15.9993744,9 L8.99937445,9 L8.99937445,7 Z M11.9993744,11 L15.9993744,11 L15.9993744,13 L11.9993744,13 L11.9993744,11 Z M2.2,11 L7,11 L7,9.00369263 C7,8.89323568 7.08954305,8.80369263 7.2,8.80369263 C7.2549016,8.80369263 7.30738916,8.82626165 7.34515712,8.86610844 L10.1852182,11.8624926 C10.2583124,11.93961 10.258346,12.0604218 10.1852948,12.13758 L7.34523376,15.1373102 C7.2692928,15.2175206 7.14270711,15.2209817 7.06249671,15.1450407 C7.02260076,15.1072683 7,15.0547472 7,14.9998069 L7,12.9043747 C4.79351111,12.9043747 2.8018683,12.9266213 1.02507156,12.9711145 L1.02507252,12.9711526 C0.472939773,12.9849787 0.014139487,12.5485949 0.000313396522,11.9964622 C0.000104473692,11.988119 -1.32268838e-12,11.9797736 -1.3231638e-12,11.9714278 L-1.83320026e-12,3 L2,3 L2,10.8 C2,10.9104569 2.08954305,11 2.2,11 Z"})}),{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast;return{color:hb.ICONS.COLOR.PRIMARY,marginTop:"1px",marginLeft:"ltr"!==t||n?void 0:"2px",marginRight:"rtl"!==t||r?void 0:"2px"}})),fv(ob)((function(){return{padding:"4px 12px","&:focus":db({},hb.FOCUS)}})),fv(cb)((function(){return{marginRight:0,justifyContent:"center"}})),fv((function(e){var t=e.className;return g.createElement(fb,{className:t,path:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2 3 3Z"})}))((function(){return{color:hb.ICONS.COLOR.SECONDARY}}));var gb=Object.prototype.hasOwnProperty,yb=Object.prototype.toString,vb=Object.defineProperty,bb=Object.getOwnPropertyDescriptor,xb=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===yb.call(e)},wb=function(e){if(!e||"[object Object]"!==yb.call(e))return!1;var t,n=gb.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&gb.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||gb.call(e,t)},Sb=function(e,t){vb&&"__proto__"===t.name?vb(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Cb=function(e,t){if("__proto__"===t){if(!gb.call(e,t))return;if(bb)return bb(e,t).value}return e[t]};!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,n,r,o,i,a,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)r=Cb(s,n),s!==(o=Cb(t,n))&&(u&&o&&(wb(o)||(i=xb(o)))?(i?(i=!1,a=r&&xb(r)?r:[]):a=r&&wb(r)?r:{},Sb(s,{name:n,newValue:e(u,a,o)})):void 0!==o&&Sb(s,{name:n,newValue:o}));return s}));var kb,Eb=function(e){var t=e.dock,n=e.settings.label,r="center"===t,o=r?{}:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};return g.createElement("span",{style:o,title:n},r?n:"* ".concat(n))},Tb={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 g.createElement("div",{dir:i,style:a},g.createElement(Eb,{dock:t,settings:r}))}({dock:n.dock,rect:e,settings:r,styling:o})}},Rb=k;kb=Rb.createRoot,Rb.hydrateRoot;var Mb=Ay({spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:14,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:600,fontWeightBold:700,htmlFontSize:14,fontFamily:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif",button:{fontWeight:600,fontSize:14,textTransform:"none"}},shape:{borderRadius:3},components:{MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"qcm-focus-visible"}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"qcm-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"116px",minWidth:"24px",fontSize:141,borderRadius:3,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transform:"translate3d(0,0,0)"},text:{padding:"8px 16px","&:active":{backgroundColor:"rgba(0, 0, 0, 0.1)"},"&.Mui-focusVisible":{boxShadow:"inset 0 0 0 2px ".concat("#177FE6")}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"}},variants:[]},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:14,height:"32px"}}},MuiListItemIcon:{styleOverrides:{root:{color:"#404040",minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:14,color:"#404040",lineHeight:"16px",fontWeight:600},secondary:{fontSize:12,color:"#737373",fontWeight:400,lineHeight:"16px"}}}}});function Pb(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 Db(){var e={rendererBox:Pb(),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=Pb(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=kb(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 g.createElement(g.StrictMode,null,g.createElement(mv,{theme:Mb},t))}({nodes:t})),!0},findShapes:function(){return[]},itemsAt:function(){return[]},clear:function(){t()},destroy:function(){t()}}}function Ob(e){return vt(e).l<70}function Ib(e,t){const n=vt(e).l/100,r=vt(t).l/100;return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}function qb(e,t){return{x:t.x+e.r*Math.sin(e.a),y:t.y-e.r*Math.cos(e.a)}}var Ab={require:["chart","settings"],defaultSettings:{settings:{},style:{}},render(){return function({chart:e,settings:t}){const n=e.component(t.component);if(!n)return[];const r=e.findShapes(t.selector).filter((e=>e.key===t.component));if(r.length<2)return[];if(n.settings.settings.slice.cornerRadius>0||n.settings.settings.slice.strokeWidth>0)return[];const o=[];let i=r[r.length-1];for(let e=0;e<r.length;e+=1){const t=r[e],n=i.attrs.fill,a=t.attrs.fill;if(Ib(a,n)<=1.2){const{start:e,offset:n}=t.desc.slice;let{innerRadius:r,outerRadius:s}=t.desc.slice;if(r=Math.max(r,i.desc.slice.innerRadius),s=Math.min(s,i.desc.slice.outerRadius),s>r){const t=qb({r:s,a:e},n),i=qb({r:r,a:e},n);o.push({type:"line",x1:t.x,y1:t.y,x2:i.x,y2:i.y,strokeWidth:1,opacity:.4,stroke:Ob(a)?"#ccc":"#333"})}}i=t}return o}({chart:this.chart,rect:this.rect,style:this.style,settings:this.settings.settings})}};function Nb(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 Lb(e){const{size:t,angle:n}=e,r={x:e.x,y:e.y},o=t/2,i=e.x-o,a=e.y-o;let s=[{x:i,y:a+t},{x:i+o,y:a},{x:i+t,y:a+t},{x:i,y:a+t}];return s=s.map((e=>function(e,t,n={x:0,y:0}){const r=Math.cos(t),o=Math.sin(t),i=(s=n,{x:(a=e).x-s.x,y:a.y-s.y});var a,s;return function(e,t){return{x:e.x+t.x,y:e.y+t.y}}({x:r*i.x-o*i.y,y:o*i.x+r*i.y},n)}(e,n,r))),{type:"path",fill:e.fill,d:Nb(s)}}var zb={require:["chart"],defaultSettings:{settings:{},style:{}},render(){return function({chart:e,settings:t}){if(!e.component(t.component))return[];const n=e.findShapes(t.selector).filter((e=>e.key===t.component));if(n.length<2)return[];const r=[];for(let e=0;e<n.length;e+=1){const a=n[e];if(a.data.radius.value<0){const{start:e,end:n,offset:s}=a.desc.slice,l=(e+n)/2,c=(o={r:t.offset,a:l},{x:(i=s).x+o.r*Math.sin(o.a),y:i.y-o.r*Math.cos(o.a)}),u=Lb({size:t.size,fill:t.fill,angle:l+Math.PI,...c});u.data={...a.data,_share:a.desc.share,_fillColor:a.attrs.fill},r.push(u)}}var o,i;return r}({chart:this.chart,rect:this.rect,style:this.style,settings:this.settings.settings})}};function jb(){const e=n();return e.use(r),e.use(function(e){if("function"!=typeof e.interaction)return t=>{t.interaction("hammer",Y(e))};e.interaction("hammer",Y(Hammer))}(t)),e.use((function(e){e.renderer("react",cp()),e.component("data-title",ap(e.renderer("svg")()))})),e.renderer("react-qcm",Db),e.component("disclaimer",Tb),e.component("pie-dividers",Ab),e.component("negative-indicators",zb),e}var $b={};function _b(){_b.init.call(this)}$b.isObject=function(e){return"object"==typeof e&&null!==e},$b.isNumber=function(e){return"number"==typeof e},$b.isUndefined=function(e){return void 0===e},$b.isFunction=function(e){return"function"==typeof e};var Fb=_b;_b.EventEmitter=_b,_b.prototype._events=void 0,_b.prototype._maxListeners=void 0,_b.defaultMaxListeners=10,_b.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},_b.prototype.setMaxListeners=function(e){if(!$b.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},_b.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],$b.isUndefined(n))return!1;if($b.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($b.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},_b.prototype.addListener=function(e,t){var n;if(!$b.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,$b.isFunction(t.listener)?t.listener:t),this._events[e]?$b.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,$b.isObject(this._events[e])&&!this._events[e].warned)&&((n=$b.isUndefined(this._maxListeners)?_b.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,$b.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),$b.isFunction(console.trace)&&console.trace()));return this},_b.prototype.on=_b.prototype.addListener,_b.prototype.once=function(e,t){if(!$b.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},_b.prototype.removeListener=function(e,t){var n,r,o,i;if(!$b.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||$b.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if($b.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},_b.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],$b.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},_b.prototype.listeners=function(e){return this._events&&this._events[e]?$b.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},_b.listenerCount=function(e,t){return e._events&&e._events[t]?$b.isFunction(e._events[t])?1:e._events[t].length:0};var Hb=X(Fb);const Bb=e=>(Object.keys(Hb.prototype).forEach((t=>{e[t]=Hb.prototype[t]})),Hb.init(e),e);function Ub({picasso:e}){var t;const n=E(),r=T(),o=R(),[i,c]=M(),u=function(){const e={};return Bb(e),e.lasso={active:()=>!1},e.select={on:e.on,removeListener:e.removeListener},e}(),d=P(),p=D(),f=!(null===(t=d.qSelectionInfo)||void 0===t||!t.qInSelections),[h,m]=M(!1);return u.lasso=function({layout:e,isInSelections:t,isLassoActionActive:n,setIsLassoActionActive:r,translator:o}){var i;return{active:n,label:o.get(n?"Tooltip.ToggleOffLassoSelection":"Tooltip.ToggleOnLassoSelection"),hidden:!t||!(null===(i=e.qHyperCube)||void 0===i||null===(i=i.qDimensionInfo)||void 0===i||null===(i=i[0])||void 0===i||!i.qIsOneAndOnlyOne),action(e){r("boolean"==typeof e?e:!n)},icon:{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"}}]}}}({layout:d,isInSelections:f,isLassoActionActive:h,setIsLassoActionActive:m,translator:p}),O((()=>(i&&(i.interactions.lasso.active=()=>h),{...u.lasso})),[i,h,f,p.language()]),I((()=>{r.style.overflow="hidden";const t=e({renderer:{prio:[n.renderer||"canvas"]}}),i=t.chart({element:r,data:[],settings:{}}),p=a({chart:i,actions:u,selections:o,config:{selectionActions:!1}});p.setLayout(d),p.setBrushAliases({colorField:"qDimensionInfo/0/qAttrDimInfo/0"});const f=s({legendScrollOffset:0,rotation:0});f.intercept("rotation",(e=>(f.get("rotation")+e)%(2*Math.PI))),f.onChanged("rotation",(()=>{i.update({partialData:!0})}));const h=l();return u.on("selections-start",(()=>{i.brush("selection").start()})),c({picasso:t,chart:i,selectionService:p,viewState:f,viewCache:h,interactions:u}),()=>{p.destroy(),i.destroy(),u.removeAllListeners(),delete u.select,f.intercept("rotation",void 0),f.onChanged("rotation",void 0)}}),[]),i}const Wb={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 Vb(e){const t=e.split("/");return"qmem:"===t[0]&&""===t[1]}const Gb={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 Kb(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 Gb.getImageSize(r,t);return{src:r,size:t,height:i,width:a,imageError:s}}async function Yb(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 h=(null===(i=r.data)||void 0===i||null===(i=i.customTooltipAttrExps)||void 0===i?void 0:i.value)||[];let m;if(-1!==f&&h[f]&&(m=h[f]),"media"===p&&null!==(a=u.ref)&&void 0!==a&&null!==(a=a.qStaticContentUrl)&&void 0!==a&&a.qUrl)return Kb(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&&Vb(a))try{const t=`data:image/png;base64, ${await e.getImage(a)}`,{height:n,width:o,imageError:s}=await Gb.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 Gb.getImageSize(a,r);i={src:a,size:r,height:e,width:t,imageError:n}}return i}(s,l,u,d,m);if(l.isEnabled("IMAGE_BUNDLE_LOAD")&&"field"===p&&m&&m.label){return async function(e,t,n,r){let o;const i=r.label,a=`qmem://${t.qFallbackTitle}/${i}`;if(Vb(a))try{const t=await e.getImage(a);if(t){const e=`data:image/png;base64, ${t}`,{height:r,width:i,imageError:a}=await Gb.getImageSize(e,n);o={src:e,size:n,height:r,width:i,imageError:a}}}catch(e){}return o}(s,n[f],d,m)}return[]}const Xb={async addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){const o=t,i=[];for(let t=0;t<o.length;t++)i.push(Yb(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}},Jb={async handlePromises({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){let o=t;return o=await Xb.addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}),o},checkIfPromisesExist:({customTooltipModel:e})=>Xb.checkIfPromisesExist({customTooltipModel:e})};const Zb=(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:Wb.CHART.CHART_PARENT_TYPE,qId:Wb.CHART.CHART_OBJECT_ID},qHyperCubeDef:{qDimensions:i,qMeasures:a,qInterColumnSortOrder:s,qInitialDataFetch:[{qWidth:0,qHeight:0}]},qStateName:l}},Qb=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:Wb.CHART.CHART_CHILD_TYPE},qExtendsId:n}};const ex={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=Wb.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:Wb.CHART.CONTAINER_ID})],colspan:2,style:{"text-align":e.rtl?"right":"left","max-width":i,width:"100%"}},{}]}(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 ex.hide({app:e,customTooltipModel:o});try{await async function({app:e,properties:t,customTooltipModel:n}){const r=n,o=Wb.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=Wb.CHART.STATE,a=Zb(t,i),s=await e.createSessionObject(a),l=Qb(t);if(s.id!==Wb.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,h;const e=null!==(f=n[0].data.selectionOuterDimension)&&void 0!==f?f:n[0].data.selectionDimension;if(null!=e&&null!==(h=e.source)&&void 0!==h&&h.field){var m;const t=null==e||null===(m=e.source)||void 0===m?void 0:m.field.split("/"),n=t[t.length-1],r=void 0!==e.value?[e.value]:[];r.length>0&&void 0!==n&&s.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",Number(n),r,!1)}}e.length>0&&s.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",a,e,!1);const l=document.getElementById(Wb.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 ex.hide({app:e,customTooltipModel:o})}}},hide:async({app:e,customTooltipModel:t})=>{const n=t;null!=n&&n.embed&&(ex.destroyVisualization({customTooltipModel:t}),await e.destroySessionObject(Wb.CHART.CHART_OBJECT_ID),n.miniChartToken.sessionObj=void 0,await async function({app:e,customTooltipModel:t}){const n=t,r=Wb.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 tx(e){const t=e.qHyperCubeDef?e.qHyperCubeDef.qDimensions:e.qHyperCube.qDimensionInfo;if(t&&t.length>0)return t}function nx(){const{EXPRESSION:e,TITLE:t,DESCRIPTION:n,IMAGES:r}=Wb.CUSTOM,o={};return o[e]=!0,o[t]=!0,o[n]=!0,o[r]=!0,o}function rx(e){const t=nx();return e.filter((e=>t[e.id]))}const ox={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}=ox.getAttrExprData(a);i.length||n.length?Jb.handlePromises({customTooltipModel:o,nodes:ox.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&&ex.hide({app:r.app,customTooltipModel:o}),t.emit("hide")}},checkIfPromisesExist:({customTooltipModel:e})=>Jb.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[Wb.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[Wb.CUSTOM.QUARANTINE]=[],e.forEach((e=>{r.quarantine[Wb.CUSTOM.QUARANTINE].push(e)})),n.qLayoutExclude=r}(rx(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[Wb.CUSTOM.QUARANTINE])&&delete n.qLayoutExclude.quarantine[Wb.CUSTOM.QUARANTINE]},setAttrsFromQuarantine(e,t){const n=tx(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===rx(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){let r=[];const o=tx(e)||[];[...o,t].forEach((e=>{const t=rx(e.qAttributeExpressions||[]);t.length>0&&(r=t)}));const i=nx(),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:ve.detectTextDirection(e)},colspan:2},{}],getImageRow(e,t){const n=ve.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 ix(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 Wb.CUSTOM.EXPRESSION:n="NaN"===t.qNum||e.isCustomFormatted?void 0===t.qText?"NaN":t.qText:t.qNum;break;case Wb.CUSTOM.TITLE:case Wb.CUSTOM.DESCRIPTION:case Wb.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 ax={getNode(e,{dimensionCount:t}){if(!t||t<1)return;const n=t-1,r="qDimensionInfo";return{field:`${r}/${n}`,value:t=>ix(t,e,r,n)}}};const sx={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={[Wb.CUSTOM.TITLE]:!0,[Wb.CUSTOM.DESCRIPTION]:!0},{attrExps:i,fieldPath:a}=ox.getAttrExprData(e);return 0===t.length||0===i.length||""===a||i.forEach(((e,i)=>{const s=t[i];if(e.id===Wb.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===Wb.CUSTOM.TITLE&&{title:t},value:t,id:e.id})}})),r}(n,i.map((t=>be.getMeasure(e,t))),e,o)}};function lx({nodes:e,layout:t,dataset:n}){const r=function(e,t,n){const r=[];return e.forEach((e=>{r.push(sx.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 cx(e){const t=Wb.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 ux(e){var t;const n=null===(t=e.qHyperCubeDef)||void 0===t?void 0:t.qDimensions;return n[n.length-1].qAttributeExpressions||[]}var dx={attrExpr:{migrateProperties(e){var t,n;const r=se(!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=ux(r);return i=function(e,t){return t.concat(e.map((e=>cx(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=cx(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}(ux(e),r,o);return i},checkForBackwardCompatibility:(e,t)=>(e.qMeasureInfo||[]).length>0&&t.length>0,updateProperties(e,t){return 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)}))}}};const{CUSTOM:px}=Wb;function fx({flags:e,layout:t,app:n,model:r,picasso:i,chart:a,translator:s,localeInfo:l,embed:c,options:u}){const d={properties:void 0},p=function({layout:e,app:t,picasso:n,model:r,chart:o,translator:i,localeInfo:a,embed:s}){return{layout:e,app:t,picasso:n,model:r,chart:o,translator:i,localeInfo:a,useCustomTooltip:e.tooltip&&!e.tooltip.auto,utils:ox,miniChartToken:{},embed:s}}({layout:t,app:n,model:r,picasso:i,chart:a,translator:s,localeInfo:l,embed:c}),f="rtl"===u.direction,h=()=>{var e;const n=!(null===(e=d.properties)||void 0===e||null===(e=e.qHyperCubeDef)||void 0===e||!e.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!(!t.tooltip||t.tooltip.auto||n)};return{setProperties:e=>{d.properties=e},isEnabled:()=>h(),hideBasic:()=>h()&&o(t,"tooltip.hideBasic",!1),getAttributes:({dataset:e,nodes:n})=>{var r,o;const i=lx({dataset:e,nodes:n,layout:t});return{title:null===(r=i.customTooltipInfoAttrExpsArr.find((e=>e.id===px.TITLE)))||void 0===r?void 0:r.title,description:null===(o=i.customTooltipInfoAttrExpsArr.find((e=>e.id===px.DESCRIPTION)))||void 0===o?void 0:o.value,measures:i.customTooltipAttrExpsArr}},hasImages:()=>ox.checkIfPromisesExist({customTooltipModel:p}),createImageRow:({value:e,h:t})=>ox.getImageRow(e,{h:t,rtl:f}),addImages:({nodes:r})=>{const o=ox.getDataNodes(a,r),{attrExps:i}=ox.getAttrExprData(t);return Jb.handlePromises({customTooltipModel:p,nodes:o,attrExps:i,opts:{flags:e,app:n}})},chart:{isEnabled:()=>{return!!(h()&&null!==(e=t.tooltip)&&void 0!==e&&null!==(e=e.chart)&&void 0!==e&&null!==(e=e.object)&&void 0!==e&&e.refId&&c&&"function"==typeof(null==r?void 0:r.getEffectiveProperties));var e},hasLimitation:()=>{var e;return!(null==n||null===(e=n.isInModalSelection)||void 0===e||!e.call(n))},createContainer:({h:e})=>ex.createContainer({layout:t,ctx:{h:e,rtl:f}}),createLimitationRow:()=>ox.getFooterRow(s.get("properties.tooltip.notselectedmessage"),f),show:({nodes:e,properties:t})=>ex.show({app:n,properties:t,selectedNodes:e,customTooltipModel:p,rtl:f}),hasAlternateState:()=>{var e;return!(null===(e=p.miniChartToken)||void 0===e||!e.alternateState)},hide:()=>ex.hide({app:n,customTooltipModel:p}),destroy:()=>ex.destroyVisualization({customTooltipModel:p})}}}function hx(e){return{layout:e,keys:{SCALE:{FILL:"fill"},COMPONENT:{DIMENSION_TITLE:"dimension-title",SLICES:"slices",PIE_LABELS:"pie-labels"}}}}function mx({layout:e}){const t=({ds:e,encodings:t})=>{const n={field:"qDimensionInfo/0",props:{num:{field:t.slice.arc}}};return t.slice.outerRadius&&(n.props.radius={field:t.slice.outerRadius}),e.extract(n)},n=({rows:e,encodings:t})=>t.slice.outerRadius?e.filter((e=>"NaN"!==e.num.value&&"NaN"!==e.radius.value)):e.filter((e=>"NaN"!==e.num.value)),r=({rows:t,encodings:n})=>n.slice.outerRadius&&!e.donut.showAsDonut?t.filter((e=>e.num.value>0&&e.radius.value>0)):t.filter((e=>e.num.value>0));return c({layout:e,config:{args:{},disclaimers:{NoDataExist:{condition:({ds:e,encodings:n})=>0===t({ds:e,encodings:n}).length},LimitedData:{condition:()=>{const t=fe.getValue(e,"qHyperCube.qSize.qcy");return fe.getValue(e,"qHyperCube.qDataPages.0.qArea.qHeight")<t}},OnlyNanData:{condition:({ds:e,encodings:r})=>{const o=t({ds:e,encodings:r});return 0===n({rows:o,encodings:r}).length}},OnlyNegativeOrZeroValues:{condition:({ds:e,encodings:o})=>{const i=t({ds:e,encodings:o}),a=n({rows:i,encodings:o});return 0===r({rows:a,encodings:o}).length}},NegativeOrZeroValues:{condition:({ds:e,encodings:o})=>{const i=t({ds:e,encodings:o}),a=n({rows:i,encodings:o}),s=a,l=r({rows:a,encodings:o});return s.length!==l.length}}}}})}function gx({chart:e,translator:t,layout:n,constraints:r,options:o,themeService:i,colorService:a,custom:s}){const l=n.qHyperCube.qMeasureInfo.length>1,c="rtl"===o.direction,{fontFamily:d}=i.getStyles();return u({chart:e,translator:t,config:{rtl:c,enable:()=>!r.passive,getColorSettings:()=>a.getSettings(),style:{fontFamily:d},main:{key:"tooltip",getGroupByValue:({data:e})=>e.value,collectibles:[{key:"slices",type:"slice",major:({data:e})=>e.value}],triggers:[{keys:["slices"],collect:{from:"single"},placement:"collectible"},{keys:["pie-labels","negative-indicators"],collect:{from:"dimension",by:({data:e})=>e.value},placement:"trigger"}],placement:({meta:e})=>({type:"slices"===e.triggerer?"slice":"bounds"}),section:({h:e,nodes:n,dataset:r,formatter:o,create:i,util:a})=>{const[c]=n,{title:u,description:d,measures:p}=s.isEnabled()?s.getAttributes({dataset:r,nodes:n}):{},f=[];u&&f.push(i.text({value:u,style:{bold:!0}})),d&&f.push(i.text({value:d}));const h=s.hideBasic();if(h&&!p.length&&(u||d)||f.push(i.text({value:c.data.label,style:{bold:!0}})),!h){f.push(i.color({nodes:n,property:"fill"}));const{num:e}=c.data;if(f.push(i.measure({label:a.dataset.title(e.source.key,e.source.field),value:e.label})),l){const{radius:e}=c.data;f.push(i.measure({label:a.dataset.title(e.source.key,e.source.field),value:e.label}))}f.push(i.measure({label:t?t.get("properties.dataPoints.labelmode.share"):"Share",value:o("share")(c.desc.share)}))}p&&f.push(...p.map((e=>i.measure({label:e.label,value:e.value,survive:{color:!0,duplicate:!0}})))),s.chart.isEnabled()&&(s.chart.hasLimitation()?(s.chart.destroy(),f.push(i.raw({value:s.chart.createLimitationRow()}))):f.push(i.raw({value:s.chart.createContainer({h:e})})));const{customTooltipImages:m}=c.data;return s.isEnabled()&&m&&f.push(...m.map((t=>i.raw({value:s.createImageRow({value:t,h:e})})))),f},layout:{grouping:!0},events:{tooltip:{beforeShow:({collectNodes:e})=>s.isEnabled()&&s.hasImages()?s.addImages({nodes:e()}):Promise.resolve(),afterShow:({expando:e,nodes:t})=>{s.chart.isEnabled()&&!s.chart.hasLimitation()&&s.chart.show({nodes:t,properties:e.get("properties")})}},interaction:{mouseleave:()=>{s.chart.isEnabled()&&s.chart.hasAlternateState()&&s.chart.hide()}}}},legend:{keys:{tooltip:"legend-color-cat",component:"legend-cat"}}}})}const yx=e=>"[object Object]"===Object.prototype.toString.call(e),vx=e=>Array.isArray(e);function bx(e,t){if(e===t)return!0;if(vx(e)){if(!vx(t))return!1;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!bx(e[n],t[n]))return!1;return!0}if(yx(e)){if(!yx(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(!bx(e[n[r]],t[n[r]]))return!1}return!0}return e===t}function xx({enable:e=!0}={}){const t=q(),n=()=>Date.now().toString()+Math.random(),[r,o]=M(n()),i={properties:void 0};return I((()=>{if(!t||!t.getEffectiveProperties||!e)return()=>{};const r=()=>{t.getEffectiveProperties().then((e=>{const t=se(!0,{},e);if(!i.properties)return void(i.properties=t);const r=function(e,t){var n,r,o,i;const a={properties:!1,exclude:!1};if(e===t)return a;const s=se(!0,{},e),l=se(!0,{},t);return a.exclude=!bx(null===(n=s.qHyperCubeDef)||void 0===n?void 0:n.qLayoutExclude,null===(r=l.qHyperCubeDef)||void 0===r?void 0:r.qLayoutExclude),null===(o=s.qHyperCubeDef)||void 0===o||delete o.qLayoutExclude,null===(i=l.qHyperCubeDef)||void 0===i||delete i.qLayoutExclude,a.properties=!bx(s,l),a}(i.properties,t);i.properties=t,r.exclude&&!r.properties&&o(n())}))};return t.on("changed",r),r(),()=>{t.removeListener("changed",r)}}),[e]),r}function wx({scaleKey:e,legend:t,onEdited:n}){const{layout:r}=t,{dock:o}=r||{};return{type:"brush-range",key:"legendRangeBrush",layout:{dock:"@legend-seq"},on:n?{bubbleEnd(){n()}}:{},settings:{brush:"selection",scale:`${e}Range`,direction:"left"===o||"right"===o?"vertical":"horizontal",bubbles:{align:"left"===o||"top"===o?"end":"start",placement:"outside"},target:{selector:'[id="legend-seq-target"]',fillSelector:'[id="legend-seq-ticks"]',fill:"rgba(82,204,82,0.2)"}}}}const Sx=.8,Cx=.55,kx=.3,Ex={CORNER_RADIUS:0,INNER_RADIUS:Cx,STROKE:{COLOR:"#FFFFFF",WIDTH:{NONE:0,SMALL:2,MEDIUM:4,LARGE:6}}},Tx=({layout:e},t,n)=>t.encodings.slice.outerRadius?{scale:"radius",fn:t=>{var r,o;let i=Sx,a=0;const s=null!==(r=null==n||null===(o=n.style)||void 0===o?void 0:o.innerRadius)&&void 0!==r?r:Cx;e.donut.showAsDonut&&(i=Sx-s,a=s);return t.scale(Math.max(0,t.datum.radius.value))*i+a}}:Sx,Rx=({layout:e},t,n)=>{var r,o;if(!e.donut.showAsDonut)return 0;const i=null!==(r=null==n||null===(o=n.style)||void 0===o?void 0:o.innerRadius)&&void 0!==r?r:Cx;return t.encodings.slice.outerRadius?{scale:"radius",fn:e=>{const t=Sx-i,n=i;return e.scale(Math.min(0,e.datum.radius.value))*t+n}}:i},Mx=({layout:e},t)=>{var n,r,o,i,a;const s=t.colorService.getDatumProps(),l=s[Object.keys(s)[0]],c=l&&l.field?l.field:void 0,u="qDimensionInfo/0"===c,d=c?t.ds.field(c).raw():null,p=d&&(d.label||d.title||d.qFallbackTitle)||"",f=t.encodings.slice.outerRadius,{formatter:h}=t.chart,m=fe.getValue(e,"qHyperCube.qDimensionInfo",[]).length;function g(e,n){const r=t.ds.field(e).raw();return{field:e,label:!r.isCustomFormatted&&(r.qIsAutoFormat||"U"===r.qNumFormat.qType)?e=>h(n)(e.qNum):e=>e.qText}}const y=(e.components||[]).filter((e=>"slices"===e.key))[0];return{type:"pie",key:"slices",data:{extract:{field:"qDimensionInfo/0",props:{...s,num:g(t.encodings.slice.arc,"arc"),fillTooltip:c?{field:c,label:p,value:e=>u?e.qText||"-":void 0!==e.qNum&&"NaN"!==e.qNum?e.qText?e.qText:e.qNum:e.qText||"-"}:void 0,customTooltipAttrExps:0!==m?ax.getNode(e,{dimensionCount:m}):void 0,radius:f?g(f,"outerRadius"):void 0}}},brush:{consume:[{context:"selection",data:["","fill"],style:{inactive:{opacity:.3},active:{stroke:"rgba(52, 52, 52, 0.7)",strokeWidth:2}}},{context:"highlight",data:[""],style:{inactive:{fill:"#BFDAD9"},active:{fill:"#68B2AF"}}}]},settings:{startAngle:()=>t.viewState.get("rotation"),endAngle:()=>t.viewState.get("rotation")+2*Math.PI,slice:{arc:{ref:"num"},innerRadius:Rx({layout:e},t,y),fill:t.colorService.getColor(),strokeWidth:null!=y&&null!==(n=y.style)&&void 0!==n&&n.strokeWidth?Ex.STROKE.WIDTH[y.style.strokeWidth.toUpperCase()]:Ex.STROKE.WIDTH.NONE,stroke:null!==(r=null==y||null===(o=y.style)||void 0===o||null===(o=o.strokeColor)||void 0===o?void 0:o.color)&&void 0!==r?r:Ex.STROKE.COLOR,outerRadius:Tx({layout:e},t,y),cornerRadius:null!==(i=null==y||null===(a=y.style)||void 0===a?void 0:a.cornerRadius)&&void 0!==i?i:0}},animations:{enabled:t.animations.enabled,isMainComponent:!0}}};function Px({layout:e},t){var n,r;const o=(e.components||[]).filter((e=>"slices"===e.key))[0],i=null!==(n=null==o||null===(r=o.style)||void 0===r?void 0:r.innerRadius)&&void 0!==n?n:Cx,a=t.encodings.slice.outerRadius,s=t.themeService.getStyles();return!(!e.donut.showAsDonut||!a)&&{type:"pie",key:"zeroLine",data:{items:[1]},settings:{slice:{arc:1,fill:"transparent",innerRadius:0,strokeWidth:1,stroke:s.label.name.color,outerRadius:{scale:"radius",fn:e=>{const t=Sx-i,n=i;return e.scale(0)*t+n}}}},animations:{enabled:t.animations.enabled}}}function Dx(e){return{type:"pie-dividers",key:"pie-dividers",layout:{displayOrder:2},settings:{component:"slices",selector:"path"},brush:{consume:[{context:"selection",style:{inactive:{opacity:.2}}}]},animations:{enabled:e.animations.enabled,trackBy:()=>Math.random()}}}function Ox({layout:e},t){if(e.donut.showAsDonut||!t.encodings.slice.outerRadius)return!1;return{type:"negative-indicators",key:"negative-indicators",layout:{displayOrder:2},settings:{component:"slices",selector:"path",offset:5,size:4,fill:t.themeService.getStyles().label.name.color},brush:{consume:[{context:"selection",style:{inactive:{opacity:.2}}}]},animations:{enabled:t.animations.enabled}}}const Ix=()=>({key:"area",type:"brush-area",settings:{brush:{components:[{key:"slices",contexts:["selection"],action:"add"}]}},style:{area:{fill:"transparent",strokeWidth:2,stroke:"black",strokeDasharray:"5 5",opacity:.7}}}),qx=()=>({key:"lasso",type:"brush-lasso",layout:{displayOrder:99},settings:{brush:{components:[{key:"slices",contexts:["selection"]}]},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}}});function Ax(e){const t=e.node.desc&&e.node.desc.share;return t?e.formatter("share")(t):""}function Nx(e){return e.node.data.num.label}function Lx(e){return e.node.data.radius.label}function zx(e,t,n){if(e.dataPoint.auto)return n?Nx:Ax;if("share"===e.dataPoint.labelMode)return Ax;if("value"===e.dataPoint.labelMode){return t.encodings.slice.outerRadius&&"radius"===e.dataPoint.labelValueMode?Lx:Nx}return null}function jx({data:e}){return e?e.label:""}function $x(e){const t=parseInt(e,10);if(!isNaN(t))return t}const _x=e=>t=>e.getContrastingColorTo(t.node.attrs.fill);function Fx(e){var t,n;const r=((e&&e.components?e.components:void 0)||[]).filter((e=>"slices"===e.key))[0];return(null!==(t=null==r||null===(n=r.style)||void 0===n?void 0:n.innerRadius)&&void 0!==t?t:Cx)>kx}function Hx({node:e,data:t}){return se({_share:e.desc.share,_fillColor:e.attrs.fill},t)}function Bx(e,t,n){const r=t.styleService.label.name.getStyle(),o=[{padding:10,direction:t.encodings.slice.outerRadius?"rotate":"horizontal",placements:[{position:"outside",padding:t.encodings.slice.outerRadius?4:2,fill:r.fill}],fontSize:$x(r.fontSize),fontFamily:r.fontFamily,label:jx,linkData:({node:e,data:t})=>se({_share:e.desc.share,_fillColor:e.attrs.fill,_showTooltip:!0},t)}];if(zx(e,t,!1)){const r=function(e,t,n){return{label:zx(e,t,!1),simplifiedPlacements:[{position:e.donut.showAsDonut&&Fx(e)?"inside":"into",onBackground:e.donut.showAsDonut&&Fx(e),padding:4}],theme:n.theme,themeId:"object.pieChart"}}(e,t,n),i=Se(se(t,r),n.theme);i.linkData=Hx,o.push(i)}return{key:"pie-labels",type:"labels",renderer:Zo(t.flags),layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:"slices",selector:"path",strategy:{type:"slice",settings:{labels:o}}}]},brush:{consume:[{context:"selection",data:["","fill"],style:{inactive:{opacity:.3}}}]},animations:{enabled:t.animations.enabled,trackBy:()=>Math.random()}}}function Ux({layout:e,context:t},n){return!1!==e.dataPoint.show&&(1===n.dataRowCount?function(e,t,n){const r=zx(e,t,!0),o=_x(n.theme),i=t.themeService.getStyles(),a=t.styleService.label.name.getStyle(),s=t.styleService.label.value.getStyle(),l=a.fill===i.label.name.color,c=s.fill===i.label.value.color;return{key:"pie-labels",type:"labels",renderer:Zo(t.flags),layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:"slices",selector:"path",strategy:{type:"rows",settings:{align:.5,justify:.5,padding:10,labels:[{fontSize:$x(a.fontSize),fontFamily:a.fontFamily,fill:l&&!e.donut.showAsDonut?o:a.fill,label:jx,linkData:({data:e})=>e},{fontSize:$x(s.fontSize),fontFamily:s.fontFamily,fill:c&&!e.donut.showAsDonut?o:s.fill,label:r,linkData:({data:e})=>e}]}}}]},animations:{enabled:t.animations.enabled,trackBy:()=>Math.random()}}}(e,n,t):Bx(e,n,t))}const Wx=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"legendRange",enable(t,n){if(this.started||!n)return!0;if(e.constraints.select||e.constraints.active)return!1;const r=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>"legend-seq"===e.type)),o=(r||function(e){const{target:t}=e.srcEvent;return!(!t||!(t.hasAttribute("data-other-value")&&t.hasAttribute("data-idx")||"INPUT"===t.nodeName))}(n))&&!e.isLocked([this.chart.component("slices")]);return o||this.chart.component("legendRangeBrush").emit("rangeClear"),o}},events:{legendRangestart(t){t.preventDefault(),e.interactions.emit("selections-start"),this.chart.component("legendRangeBrush").emit("rangeStart",t),this.started=!0},legendRangemove(e){e.preventDefault(),this.chart.component("legendRangeBrush").emit("rangeMove",e)},legendRangeend(t){t.preventDefault(),this.chart.component("legendRangeBrush").emit("rangeEnd",t),e.onSelect(),this.started=!1}}});function Vx(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}}function Gx(e,t){const n=t.component("slices");if(!n)return!1;const{x:r,y:o}=Vx(e,t),i=n.rect.x+n.rect.margin.left+n.rect.width/2,a=n.rect.y+n.rect.margin.top+n.rect.height/2,s=Math.min(n.rect.width,n.rect.height)/2*Sx;return(i-r)**2+(a-o)**2<=s**2}const Kx=(e,t,{requireFailure:n,recognizeWith:r}={})=>({type:"Tap",requireFailure:n,recognizeWith:r,options:{event:"tap",interval:10,pointers:1,enable(t,n){return!n||!e.constraints.select&&!e.constraints.active&&(this.components=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).filter((e=>"slices"===e.key||"legend-cat"===e.key||"pie-labels"===e.key)),this.components.length)}},events:{tap(n){n.preventDefault();const{target:r}=n.srcEvent;if(r&&("INPUT"===r.nodeName||r.hasAttribute("data-other-value")))return void this.chart.component("legendRangeBrush").emit("bubbleStart",n);if(r&&r.hasAttribute("data-action")&&r.hasAttribute("data-component-key"))return void this.chart.component(r.getAttribute("data-component-key")).emit(r.getAttribute("data-action"));if(r&&r.children&&r.children[0]&&"legend-cat"===r.children[0].getAttribute("data-component-key"))return;if(e.isLocked(this.components))return;e.interactions.emit("selections-start");let o=Vx(n,this.chart);this.components.some((e=>"legend-cat"===e.key))&&(o={cx:o.x,cy:o.y,r:5});const i=this.chart.shapesAt(o,{components:[{key:"slices",propagation:"stop"},{key:"legend-cat",propagation:"stop"},{key:"pie-labels",propagation:"stop"}],propagation:"stop"});i.length&&(this.chart.brushFromShapes(i,{components:[{key:i[0].key,action:n.srcEvent.ctrlKey||t?"set":"toggle",contexts:["selection"]}]}),e.onSelect())}}}),Yx=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"lasso",enable(t,n){if(this.isStarted||!n)return!0;if(e.constraints.active||e.constraints.select||!e.interactions.lasso.active())return!1;const r=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y});return!e.isLocked(r)&&r.some((e=>"slices"===e.key))}},events:{lassostart(t){t.preventDefault(),e.constraints.select||e.constraints.active||this.isStarted||(e.interactions.emit("selections-start"),this.chart.component("lasso").emit("lassoStart",t),this.isStarted=!0)},lassomove(e){e.preventDefault(),this.chart.component("lasso").emit("lassoMove",e)},lassoend(t){t.preventDefault(),this.isStarted=!1,this.chart.component("lasso").emit("lassoEnd",t),e.onSelect()}}}),Xx=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Tap",requireFailure:t,recognizeWith:n,options:{event:"areatap",pointers:2,enable(t,n){if(this.started||!n)return!0;if(e.constraints.active||e.constraints.select)return!1;const r=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y});return r.some((e=>"slices"===e.key))&&!e.isLocked(r)}},events:{areatap(t){const n=this.chart.component("area");n&&!this.started&&(e.interactions.emit("selections-start"),n.emit("areaStart",t.pointers[0]),n.emit("areaMove",t.pointers[1]),this.started=!0,setTimeout((()=>{n.emit("areaEnd"),e.onSelect(),this.started=!1}),100)),t.preventDefault()}}});function Jx(e){return{type:"native",key:"theusual",events:{wheel(t){let n=!1;if(!e.constraints.active&&Gx(t,this.chart)){const r=Math.sign(-t.deltaY);e.viewState.set("rotation",r*(Math.PI/12)),n=!0}else if(!e.constraints.select&&!e.constraints.active){const e=this.chart.componentsFromPoint(t).filter((e=>"legend-cat"===e.key))[0];e&&(n=!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,e))}n&&t.preventDefault()}}}}const Zx=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"rotate",pointers:1,threshold:10,enable(t,n){return!(!this.started&&n)||!e.constraints.active&&!e.interactions.lasso.active()&&Gx(n,this.chart)}},events:{rotatestart(e){e.preventDefault();const t=this.chart.component("slices").rect,n=this.chart.element.getBoundingClientRect();this.pieCenter={x:n.left+t.x+t.width/2,y:n.top+t.y+t.height/2},this.prevAngle=Math.atan2(e.center.y-this.pieCenter.y,e.center.x-this.pieCenter.x),this.started=!0},rotatemove(t){t.preventDefault();const n=Math.atan2(t.center.y-this.pieCenter.y,t.center.x-this.pieCenter.x);e.viewState.set("rotation",n-this.prevAngle),this.prevAngle=n},rotateend(e){e.preventDefault(),this.started=!1},rotatecancel(e){e.preventDefault(),this.started=!1}}}),Qx=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"legendPan",pointers:1,threshold:10,enable(t,n){return!(!this.isStarted&&n)||!e.constraints.active&&this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>"legend-cat"===e.type))}},events:{legendPanstart(e){if(e.preventDefault(),!this.isStarted){this.components=this.chart.componentsFromPoint({x:e.center.x,y:e.center.y}),this.components.forEach((t=>{t.emit("panstart",e)})),this.isStarted=!0;const t=this.chart.component("tooltip");t&&t.show&&t.emit("hide")}},legendPanmove(e){this.components.forEach((t=>{t.emit("panmove",e)})),e.preventDefault()},legendPanend(e){e.preventDefault(),this.components.forEach((t=>{t.emit("panend",e)})),this.isStarted=!1}}}),ew=(e,t,n)=>({key:"hammered",type:"hammer",enable:!0,gestures:t?[Zx(e,{}),Kx(e,t,{}),...n]:[Wx(e,{}),Xx(e,{}),Zx(e,{}),Yx(e,{}),Qx(e,{}),Kx(e,t,{}),...n]});function tw(e,t,n){const r=e.getIsSingleSelect(0),{constraints:o}=n;if(o.active&&o.passive)return[];const i=t.tooltipService.getInteractions();return[ew(t,r,i.gestures),Jx(t),i.native]}function nw({settings:e},t){const n={share:{type:"d3-number",format:".1%"},arc:{data:{field:t.encodings.slice.arc}},fill:e.scales.fill&&e.scales.fill.data&&e.scales.fill.data.field?{data:{field:e.scales.fill.data.field}}:{}};return t.encodings.slice.outerRadius&&(n.outerRadius={data:{field:t.encodings.slice.outerRadius}}),n}function rw({layout:e},t,n){if(!e.dimensionTitle)return!1;const r=t.properties,o=t.styleService.axis.title.getStyle();return{key:"dimension-title",type:"data-title",layout:{minimumLayoutMode:"SMALL",dock:"top"},settings:{hyperCube:e.qHyperCube,hyperCubeDef:r&&r.qHyperCubeDef,isDimension:!0,disabled:()=>n.constraints.active||!n.model,model:t.model,app:t.app,translator:t.translator,rtl:n.rtl,selections:t.selections,isEnabled:t.flags.isEnabled},style:{fontFamily:o.fontFamily,fontSize:o.fontSize,color:o.color}}}function ow({layout:e,context:t,selectionService:n},r={}){const o=function({layout:e}={},t={}){const n={};return se(n,t.colorService.getScales()),t.encodings.slice.outerRadius&&se(n,function({layout:e},t){const n={radius:{type:"linear",include:[0],data:{extract:{field:t.encodings.slice.outerRadius}}}};return e.donut.showAsDonut||(n.radius.min=0),n}({layout:e},t)),n}({layout:e},r),i={scales:o};let a=[];const s=function(e,t){const n=e.disclaimerService.getDisclaimer();if(!n)return!1;const{rtl:r}=t,{translator:o}=e,{fontFamily:i}=e.themeService.getStyles();return{key:"disclaimer",type:"disclaimer",layout:{dock:n.alignment},settings:{isRTL:r,label:o.get(`Object.Disclaimer.${n.key}`)},style:{fontFamily:i}}}(r,t);if(r.disclaimerService.getHasSuppressingDisclaimer())return{components:[s]};const l=t.constraints.select||t.constraints.active,c=r.colorService.getLegend({eventName:"legend",key:"legend",viewState:r.viewState,chart:r.chart,styleReference:"object.pieChart",styleOverrides:{title:r.styleService.legend.title.getStyle(),label:r.styleService.legend.label.getStyle()},rtl:t.rtl},{navigationDisabled:l});return o.fillRange&&c.components[0]&&("right"===c.components[0].layout.dock||"left"===c.components[0].layout.dock||t.rtl)&&(o.fillRange.invert=!0),a=[Mx({layout:e,settings:i},r),Px({layout:e},r),Dx(r),Ox({layout:e},r),rw({layout:e},r,t),...c.components,wx({settings:i,scaleKey:"fill",legend:c.components[0]||{},onEdited:r.onSelect}),qx(),Ix(),Ux({layout:{components:e.components,dataPoint:se({},e.dataPoint,{show:!(e.effectPath&&e.snapshotData&&!1===e.dataPoint.show)}),donut:e.donut},context:t},r),...r.tooltipService.getComponents(),s],a=a.filter((e=>!1!==e)),{interactions:tw(n,r,t),scales:o,components:r.pluginService.extendComponents(a),palettes:r.colorService.getPalettes(),formatters:nw({settings:i},r),strategy:de(0,r)}}function iw({instance:e,services:t,picasso:n,flags:o}){const i=E(),a=q(),s=A(),l=D(),c=j(),u=N(),d=R(),p=z(),{qLocaleInfo:f}=$(),m=xx({enable:u&&!u.snapshotData}),[g]=F((()=>{if(!t)return Promise.resolve();dx.attrExpr.updateProperties(a,u);return Promise.all([t.colorService.initialize({createConfig:({getUseBaseColors:e})=>({theme:c,legendProps:u.legend,layout:u,localeInfo:f,hc:u.qHyperCube,colorProps:{...u.color,useBaseColors:e(u)}})}),a&&!u.snapshotData?a.getEffectiveProperties():Promise.resolve({}),t.pluginService.initialize()])}),[t,m]);I((()=>{null!=e&&e.selectionService&&e.selectionService.setLayout(u)}),[u]),I((()=>{if(!e||!g)return;const{chart:m,viewState:y,interactions:v,viewCache:b}=e,{colorService:x,disclaimerService:w,pluginService:S,themeService:C,tooltipService:k,styleService:E}=t,T=i.viewState||{};u.snapshotData||(y.preventSet("legendScrollOffset",T.legendScrollOffset||0),y.preventSet("rotation",T.rotation||0)),function(e,t){e&&e.snapshotData&&e.snapshotData.content&&e.snapshotData.content.chartData&&(t.preventSet("legendScrollOffset",e.snapshotData.content.chartData.legendScrollOffset),t.preventSet("rotation",e.snapshotData.content.chartData.rotation))}(u,y),k.expando.set("properties",g[1]);const R=n.data("q")({key:"qHyperCube",data:u.qHyperCube,config:{localeInfo:f}}),M=[{type:"q",key:"qHyperCube",data:u.qHyperCube,config:{localeInfo:f}},...x.getData()],P={slice:{arc:"qMeasureInfo/0"}};u.qHyperCube.qMeasureInfo.length>1&&(P.slice.outerRadius="qMeasureInfo/1"),w.initialize({args:{ds:R,encodings:P}});const D=function(e,t){if(t.slice.outerRadius)return e.extract({field:"qDimensionInfo/0",props:{num:{field:t.slice.arc},radius:{field:t.slice.outerRadius}}}).filter((e=>e.num.value>0&&"NaN"!==e.radius.value)).length;return e.extract({field:"qDimensionInfo/0",props:{num:{field:t.slice.arc}}}).filter((e=>e.num.value>0)).length}(n.data("q")({data:u.qHyperCube,config:{localeInfo:f}}),P),O=d?()=>{const e=m.brush("selection");r.selections(e,{},u).forEach((e=>{d.select(e)}))}:()=>{},I=u.snapshotData&&!i.freeResize?{width:(u.snapshotData.content.size||u.snapshotData.object.size).w,height:(u.snapshotData.content.size||u.snapshotData.object.size).h}:void 0,q=t=>e.selectionService.getIsSelectionLocked(t),A=()=>ow({layout:u,context:{rtl:"rtl"===i.direction,theme:c,translator:l,constraints:p,model:a},selectionService:e.selectionService},{picasso:n,ds:R,model:a,app:s,chart:m,onSelect:O,isLocked:q,interactions:v,constraints:p,translator:l,viewState:y,dataRowCount:D,encodings:P,colorService:x,disclaimerService:w,pluginService:S,themeService:C,styleService:E,tooltipService:k,debouncer:h,properties:g[1],logicalSize:I,flags:o,animations:{enabled:()=>function({viewState:e,options:t,viewCache:n,layout:r,chart:o}){return!1!==t.chartAnimations&&n.get("chartWidth")===o.element.clientWidth&&n.get("chartHeight")===o.element.clientHeight&&n.get("hasZeroLine")===!!o.component("zeroLine")&&0===e.get("rotation")&&!Jo.propertiesHaveChanged({viewCache:n,layout:r})}({viewState:y,options:i,layout:u,viewCache:b,chart:m})}});e.generateSettings=A;const N=A();m.update({data:M,settings:N}),b.set("chartWidth",m.element.clientWidth),b.set("chartHeight",m.element.clientHeight),b.set("hasZeroLine",N.components.filter((e=>"zeroLine"===e.key)).length>0),Jo.cacheProperties({viewCache:b,layout:u}),i.effect&&u.effectProperties?i.effect.update(u,m,{encodings:P}):u.effectPath||m.brush("highlight").end()}),[e,g,i.direction,i.effectProperties,p,c.name(),l.language()])}const aw="legend-cat";function sw({instance:e,services:t}){const n=T(),r=N();B((o=>{if(!(r.snapshotData&&r.snapshotData.content&&r.snapshotData.content.chartData)&&(function(e,t){const n=t.getBoundingClientRect();e.snapshotData=e.snapshotData||{},e.snapshotData.content=e.snapshotData.content||{},e.snapshotData.content.size=e.snapshotData.content.size||{w:n.width,h:n.height}}(o,n),e&&t))return function({layout:e,chart:t,viewState:n,colorService:r}){return e.snapshotData.content=e.snapshotData.content||{},e.snapshotData.content.chartData={legendScrollOffset:he(t,aw),rotation:n.get("rotation")},r.getSnapshotData().then((t=>{e.snapshotData.content.chartData={...e.snapshotData.content.chartData,...t}})).catch((()=>{}))}({layout:o,chart:e.chart,colorService:t.colorService,viewState:e.viewState})})),U((()=>({getViewState:()=>({rotation:e.viewState.get("rotation"),legendScrollOffset:he(e.chart,"legend-cat")})})),[e])}const lw={setValue(e,t,n){if(!t)return;const r=t.split(".");let o=e;const i=r[r.length-1];let a;for(a=0;a<r.length-1;++a)null==o[r[a]]&&(o[r[a]]=Number.isNaN(+r[a+1])?{}:[]),o=o[r[a]];void 0!==n?o[i]=n:delete o[i]},getValue(e,t,n){const r=t.split(".");let o,i=e;if(void 0===i)return n;for(o=0;o<r.length;++o){if(null==i[r[o]])return n;i=i[r[o]]}return i}},cw={getDimensions:e=>lw.getValue(e,"qHyperCubeDef.qDimensions",[]),getNumDimensions:e=>lw.getValue(e,"qHyperCubeDef.qDimensions.length",0),getMeasures:e=>lw.getValue(e,"qHyperCubeDef.qMeasures",[]),getNumMeasures:e=>lw.getValue(e,"qHyperCubeDef.qMeasures.length",0),getDimensionLayouts(e,t){const n=lw.getValue(e,t?`${t}.qHyperCube`:"qHyperCube",null);return n?n.qDimensionInfo:[]},getDimensionLayout(e,t,n){return this.getDimensionLayouts(t,n).filter((t=>e===t.cId))[0]},getMeasureLayouts(e,t){const n=lw.getValue(e,t?`${t}.qHyperCube`:"qHyperCube",null);return n?n.qMeasureInfo:[]},getMeasureLayout(e,t,n){return this.getMeasureLayouts(t,n).filter((t=>e===t.cId))[0]}};const uw={colorModeOptions:{primary:()=>!0,dimension:()=>!0,multiColor:()=>!1,measure:()=>!0,expression:e=>cw.getNumMeasures(e)>=1},showLegend:e=>{const t=lw.getValue(e,"color.auto"),n=lw.getValue(e,"color.expressionIsColor"),r=lw.getValue(e,"color.mode");return!(!t&&"primary"===r||!t&&"byExpression"===r&&(n||void 0===n))},persistentColorsShow:e=>!lw.getValue(e,"color.auto")&&"byDimension"===lw.getValue(e,"color.mode"),useDimValColShow:e=>(void 0===lw.getValue(e,"color.useDimColVal")&&lw.setValue(e,"color.useDimColVal",!1),!lw.getValue(e,"color.auto")&&"byDimension"===lw.getValue(e,"color.mode")&&"libraryItem"===lw.getValue(e,"color.byDimDef.type"))},dw=function(e){const{colorModeOptions:t,persistentColorsShow:n,useDimValColShow:r,showLegend:o}=uw;this.color={colorMode:{options(n){const r=[];return"explore"===e&&r.push({value:"auto",translation:"Common.Auto"}),t.primary(n)&&r.push({value:"primary",translation:"properties.colorMode.primary"}),t.multiColor(n)&&r.push({value:"byMultiple",translation:"properties.colorMode.multicolored"}),t.dimension(n)&&r.push({value:"byDimension",translation:"properties.colorMode.byDimension"}),t.measure(n)&&r.push({value:"byMeasure",translation:"properties.colorMode.byMeasure"}),t.expression(n)&&"explore"!==e&&r.push({value:"byExpression",translation:"properties.colorMode.byExpression"}),r}},persistentColors:{show:e=>r(e)?n(e)&&!lw.getValue(e,"color.useDimColVal"):n(e)},useDimColVal:{show:r}},this.legend={show:o,showTitle:{show(e){const t=lw.getValue(e,"color.auto");return lw.getValue(e,"legend.show")&&o(e)&&(t||!function(e){return"byExpression"===lw.getValue(e,"color.mode")&&!0===lw.getValue(e,"color.expressionIsColor")}(e))}},dock:{show:e=>lw.getValue(e,"legend.show")&&o(e)}}};function pw(e){return new dw(e)}const fw={classification:{section:"styling",tags:["simple"],exclusive:!0},component:"items",show:!0,chartType:"piechart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.PieChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,items:{strokeSection:{translation:"properties.Outline",component:"items",items:{strokeItem:{component:"items",ref:"components",key:"slices",items:{strokeWrapper:{component:"inline-wrapper",items:{strokeWidth:{translation:"LayerStyleEditor.style.strokeWidth",ref:"style.strokeWidth",width:9,show:!0,component:"dropdown",type:"string",options:[{value:"none",translation:"Common.None"},{value:"small",translation:"Common.Small"},{value:"medium",translation:"Common.Medium"},{value:"large",translation:"Common.Large"}],defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",defaultValue:{color:"#FFFFFF"},schemaIgnore:!0,width:3,component:"color-picker"}}}}}}},cornerRadius:{component:"items",translation:"LayerStyleEditor.style.cornerRadius",items:{cornerRadiusItem:{component:"items",ref:"components",key:"slices",items:{cornerRadiusSlider:{ref:"style.cornerRadius",translation:"LayerStyleEditor.style.cornerRadius",component:"slider",min:0,max:40,step:.05,width:12,defaultValue:0,schemaIgnore:!0}}}}},innerRadius:{translation:"LayerStyleEditor.style.innerRadius",component:"items",show:e=>e.donut.showAsDonut,items:{innerRadiusItem:{component:"items",ref:"components",key:"slices",items:{innerRadiusSlider:{ref:"style.innerRadius",translation:"LayerStyleEditor.style.innerRadius",component:"slider",min:.05,max:.75,step:.01,width:12,defaultValue:.55,schemaIgnore:!0}}}}}}},hw=(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.pieChart",e,"color")})}}}}},mw=(e,t,n,r)=>{const o=m({theme:r,translator:n,flags:t,config:{id:"pieChart",paths:["axis.title","label.name","label.value","legend.title","legend.label"]}});return{component:"styling-panel",chartTitle:"Object.PieChart",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:e,items:{strokeSection:{translation:"properties.Outline",component:"panel-section",items:{strokeItem:{component:"items",ref:"components",key:"slices",items:{strokeWrapper:{component:"inline-wrapper",items:{strokeWidth:{ref:"style.strokeWidth",width:9,show:!0,component:"dropdown",type:"string",options:[{value:"none",translation:"Common.None"},{value:"small",translation:"Common.Small"},{value:"medium",translation:"Common.Medium"},{value:"large",translation:"Common.Large"}],defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",defaultValue:{color:"#FFFFFF"},schemaIgnore:!0,width:3,component:"color-picker"}}}}}}},cornerRadius:{translation:"LayerStyleEditor.style.cornerRadius",component:"panel-section",items:{cornerRadiusItem:{component:"items",ref:"components",key:"slices",items:{cornerRadiusSlider:{ref:"style.cornerRadius",component:"slider",min:0,max:40,step:.05,width:12,defaultValue:0,schemaIgnore:!0}}}}},innerRadius:{translation:"LayerStyleEditor.style.innerRadius",component:"panel-section",show:e=>e.donut.showAsDonut,items:{innerRadiusItem:{component:"items",ref:"components",key:"slices",items:{innerRadiusSlider:{ref:"style.innerRadius",component:"slider",min:.05,max:.75,step:.01,width:12,defaultValue:.55,schemaIgnore:!0}}}}},axisTitleSection:null!=t&&t.isEnabled("CLIENT_IM_3050")?{translation:"properties.dataPoints.dimensionlabels",component:"panel-section",items:{axisTitleItems:{component:"items",ref:"components",key:"axis",items:hw("axis.title",o,r)}}}:void 0,labelNameSection:null!=t&&t.isEnabled("CLIENT_IM_3050")?{translation:"properties.dataPoints.dimensionValueLabel",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"label",items:hw("label.name",o,r)}}}:void 0,labelValueSection:null!=t&&t.isEnabled("CLIENT_IM_3050")?{translation:"properties.value.label",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"label",items:hw("label.value",o,r)}}}:void 0,legendTitleSection:null!=t&&t.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.title",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"legend",items:hw("legend.title",o,r)}}}:void 0,legendLabelSection:null!=t&&t.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.label",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"legend",items:hw("legend.label",o,r)}}}:void 0}}},gw=pw("hard");const yw=e=>{var t;null!==(t=e.color)&&void 0!==t&&t.auto||(i(e,"color.mode","byDimension"),i(e,"color.byDimDef.activeDimensionIndex",0),i(e,"color.persistent",!1))},vw=e=>{var t;const n=[{value:"primary",translation:"properties.colorMode.primary"},{value:"byDimension",translation:"properties.colorMode.byDimension"}];switch(null===(t=e.color)||void 0===t?void 0:t.mode){case"byMultiple":n.push({value:"byMultiple",translation:"properties.colorMode.multicolored"});break;case"byMeasure":n.push({value:"byMeasure",translation:"properties.colorMode.byMeasure"});break;case"byExpression":n.push({value:"byExpression",translation:"properties.colorMode.byExpression"})}return n},bw=e=>{var t;const{flags:n,translator:r}=e||{},o=null==e||null===(t=e.sense)||void 0===t?void 0:t.theme,a=null==n?void 0:n.isEnabled("SENSECLIENT_IM_2429_PIECHART_BG"),s={items:{simpleItems:{items:{autoColor:{label:e=>{var t;return null!==(t=e.color)&&void 0!==t&&t.auto?r.get("Simple.Color.Auto",r.get("properties.colorMode.byDimension")):r.get("Common.Custom")},change:yw},colorMode:{options:vw}}}}},l={items:{labels:{items:{header:{show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length},pointLabels:{component:"checkbox",ref:"dataPoint.auto",type:"boolean",defaultValue:!0,translation:"Simple.Label.Value",show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length,change(e){e.dataPoint.auto||i(e,"dataPoint.labelMode","none")}},dimensionTitle:{component:"checkbox",ref:"dimensionTitle",type:"string",translation:"Simple.Label.Dimension.Hide",defaultValue:"all",show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length,convertFunctions:{get:(e,t,n,r)=>!r.dimensionTitle,set(e,t,n,r,o){o.dimensionTitle=!e}}}}}}},c={uses:"settings",items:{simpleStyling:fw,simpleLabels:l,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:{sliceStyling:mw(a,n,r,o),showAsDonut:{ref:"donut.showAsDonut",type:"boolean",component:"item-selection-list",defaultValue:!1,horizontal:!0,items:[{icon:"pie_chart_pie",component:"icon-item",labelPlacement:"bottom",translation:"properties.pie",value:!1},{icon:"pie_chart_donut",component:"icon-item",labelPlacement:"bottom",translation:"properties.donut",value:!0}]},labels:{type:"items",snapshot:{tid:"property-labels"},items:{dimensionTitle:{ref:"dimensionTitle",type:"boolean",component:"switch",translation:"properties.dataPoints.dimensionlabels",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]},valuesAuto:{ref:"dataPoint.auto",type:"boolean",translation:"properties.dataPoints.labelmode",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}]},labelMode:{ref:"dataPoint.labelMode",type:"string",component:"dropdown",options:[{value:"none",translation:"Common.None"},{value:"share",translation:"properties.dataPoints.labelmode.share"},{value:"value",translation:"properties.dataPoints.labelmode.value"}],defaultValue:"share",show:e=>!e.dataPoint.auto},labelValueMode:{ref:"dataPoint.labelValueMode",type:"string",component:"dropdown",translation:"properties.dataPoints.labelvaluemode",options:[{value:"arc",translation:"Visualizations.Descriptions.Angle"},{value:"radius",translation:"Visualizations.Descriptions.Radius"}],defaultValue:"arc",show:e=>!e.dataPoint.auto&&function(e){return e.qHyperCubeDef&&e.qHyperCubeDef.qMeasures.length>1||e.qHyperCube&&e.qHyperCube.qMeasureInfo.length>1}(e)&&"value"===e.dataPoint.labelMode}}}}},colorsAndLegend:{uses:"colorsAndLegend",items:{colors:{items:{colorMode:{options:gw.color.colorMode.options},persistentColors:{show:gw.color.persistentColors.show}}},simpleColors:s,legend:{show:gw.legend.show,items:{show:{defaultValue:!1,snapshot:{tid:"property-legend"}},showTitle:{show:gw.legend.showTitle.show},dock:{show:gw.legend.dock.show}}}}},tooltip:{uses:"tooltip"}}};return c},xw={uses:"data",items:{dimensions:{uses:"dimensions"},measures:{uses:"measures",items:{numberFormatting:{items:{percentOfPieMessage:{component:"text",translation:"properties.numberFormatting.pieMessage",show:(e,t,{properties:n}={})=>n&&(n.dataPoint.auto||"share"!==n.dataPoint.labelMode)}}}}}}},ww={uses:"sorting",items:{interColumnSorting:{reset:e=>{const{qDimensions:t,qMeasures:n,qInterColumnSortOrder:r}=e.qHyperCubeDef;if(1===t.length&&n.length>=1){const t=r.length,n=[...Array(t).keys()];[n[0],n[1]]=[n[1],n[0]],e.qHyperCubeDef.qInterColumnSortOrder=n}}}}},Sw={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{suppressZero:null,calcCond:{uses:"calcCond"}}}}};function Cw(e){return{type:"items",component:"accordion",items:{data:xw,sorting:ww,addons:Sw,settings:bw(e)}}}const kw=pw("explore"),Ew=Cw();var Tw={type:"items",component:"accordion",items:{data:{uses:"data"},sort:{uses:"sort"},presentation:{uses:"presentation",items:{showAsDonut:Ew.items.settings.items.presentation.items.showAsDonut,labelMode:{type:"items",items:{labelMode:{type:"string",component:"radio-list",translation:"properties.dataPoints.labelmode",diffs:["dataPoint.auto:false","dataPoint.labelMode"],options:Ew.items.settings.items.presentation.items.labels.items.labelMode.options,setPropertyValue(e,t){e.dataPoint.auto=!1,e.dataPoint.labelMode=t},getValue:e=>e.dataPoint.auto?"":e.dataPoint.labelMode}}}}},color:{uses:"color",items:{mode:{options:kw.color.colorMode.options},dimension:{items:{persistentColors:{show:e=>!(e.color&&"byDimension"===e.color.mode&&e.color.useDimColVal&&kw.color.useDimColVal.show(e))}}}}}}};const Rw="slices";function Mw(e,t){const n=e&&e.desc&&void 0!==e.desc.share?e.desc.share:void 0;return t("share")(n)}function Pw(e){return e.data.num.label}function Dw(e){return e.data.radius.label}function Ow(e,t,n,r){return function(e,t){if(e.dataPoint.auto)return 1===e.qHyperCube.qSize.qcy?Pw:Mw;if("share"===e.dataPoint.labelMode)return Mw;if("value"===e.dataPoint.labelMode)return t.encodings.slice.outerRadius&&"radius"===e.dataPoint.labelValueMode?Dw:Pw;return Pw}(n,r)(e,t)}function Iw(e){let t;return t=e.data.label?function(e,t){let n=e;return n.length>t&&(n=`${n.substr(0,t-3)}...`),n}(e.data.label,20):"",t}class qw{constructor({element:e,properties:t,effectHelper:n,Flag:r}){this.element=e,this.Flag=r,n.initFade(this.element);const o=e.find(".effectLayer");o.length>0&&o.remove(),e.append('<div class="effectLayer"></div>'),this.effectLayer=e.find(".effectLayer"),this._effectProperties=t,this.selectedIndex=t.selectedIndex,this.hasPropertiesPanel=!1,this.effectApplied=!0,n.fadeIn(this.element)}updateOrigSettings(e){return{dataPoint:e.dataPoint,legend:e.legend,dimensionTitle:e.dimensionTitle}}updateFlags(e,t){const n=this.chart.getAffectedShapes("highlight"),r=this.effectLayer[0].getBoundingClientRect(),o=n.map((n=>{const{start:o,end:i,outerRadius:a,offset:s}=n.desc.slice,{scaleRatio:l}=this.chart.component(n.key).rect,c=n.element.getBoundingClientRect(),u=(o+i)/2,d=c.left-r.left+l.x*(s.x+a*Math.sin(u)),p=c.top-r.top+l.y*(s.y-a*Math.cos(u)),f=Math.cos(u)>0?"top":"bottom",h=Math.sin(u)>0?"right":"left";return{title:Iw(n),label:Ow(n,this.chart.formatter,e,t),orientation:`${f}${h}`,position:{x:d,y:p}}}));this.Flag.show(this.effectLayer,o)}init(e,t,n,r){return t.getProperties().then((e=>{if(!e.originalModelSettings){const t=se(!0,{},e);e.originalModelSettings=this.updateOrigSettings(t)}e.effectProperties=r,e.effectPath=n,e.dataPoint.show=!1,e.legend.show=!1,e.dimensionTitle=!1,t.setProperties(e)}))}remove(e,t,n){return e.options=se(e.options,{effect:null}),n?t.getProperties().then((e=>se(e,{effectPath:null,effectProperties:null,dataPoint:se(!0,{},e.originalModelSettings.dataPoint),legend:se(!0,{},e.originalModelSettings.legend),dimensionTitle:e.originalModelSettings.dimensionTitle}))):Promise.resolve()}}class Aw extends qw{init(e,t,n,r){return e.options=se(!0,e.options,{effect:this}),t.layout.effectProperties&&t.layout.effectPath===n&&t.layout.effectProperties.max===r.max?Promise.resolve():super.init(e,t,n,r)}update(e,t,n){this.chart=t,this.updateHighlight(e),this.updateFlags(e,n)}updateHighlight(e){const t=this.chart.component(Rw).data.items,n=e.effectProperties.min,r=e.effectProperties.max,o=[];let i=[1/0,-1],a=[-1/0,-1];t.forEach(((e,t)=>{const o=e.num.value;n&&o<i[0]&&(i=[o,t]),r&&o>a[0]&&(a=[o,t])})),-1!==i[1]&&o.push(t[i[1]].value),-1!==a[1]&&o.push(t[a[1]].value),o.length&&this.chart.brush("highlight").setValues(o.map((e=>({key:"qHyperCube/qDimensionInfo/0",value:e}))))}}class Nw extends qw{constructor(e){super(e),this.hasPropertiesPanel=!0,this.propsTemplate=e.highlightValuePropsTemplate,this.effectHelper=e.effectHelper}onClick(e){if(!this.chart)return;const t=this.chart.shapesAt(function(e,t){const n=t.element.getBoundingClientRect();return{x:e.clientX-n.left,y:e.clientY-n.top}}(e,this.chart),{propagation:"stop"});if(1!==t.length)return;const n=t[0],r=this.chart.component(Rw).data.items.map((e=>e.value)),o=r.indexOf(n.data.value);-1!==o&&(this.selectedIndex=o,this.effectHelper.updateSelectedPointIndex(this))}update(e,t,n){this.chart=t,this.updateHighlight(e),this.updateDataPoints(e,n),this.updateFlags(e,n)}updateHighlight(e){const t=this.chart.component(Rw).data.items[e.effectProperties.selectedIndex];this.chart.brush("highlight").setValues([{key:"qHyperCube/qDimensionInfo/0",value:t.value}])}updateDataPoints(e,t){this.dataPoints=this.chart.findShapes("path").filter((e=>e.key===Rw)).map(((n,r)=>{const o=Ow(n,this.chart.formatter,e,t);return{text:`${Iw(n)} (${o})`,value:r}}))}init(e,t,n,r){return e.options=se(!0,e.options,{effect:this}),t.layout.effectProperties&&t.layout.effectPath===n&&t.layout.effectProperties.selectedIndex===r.selectedIndex?Promise.resolve():super.init(e,t,n,r)}}const Lw="/effects/highlight-value",zw="/effects/maxmin";var jw={isCompatible:({effectPath:e})=>e===zw||e===Lw,create:e=>e.effectPath===zw?new Aw(e):e.effectPath===Lw?new Nw(e):null};function $w(e){const t={},{components:n,tooltip:r}=e,o=n?n.filter((e=>"slices"===e.key))[0]:void 0;if(o&&o.style&&Object.keys(o.style).forEach((e=>{t[`chart_style_${e}`]=o.style[e]})),r){var i;t.chart_tooltip_custom=!r.auto;const e=null===(i=r.chart)||void 0===i||null===(i=i.object)||void 0===i?void 0:i.refId;!r.auto&&e&&(t.chart_tooltip_custom_mini_chart=e)}return t}function _w(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))}function Fw(e){e.qOtherTotalSpec.qOtherMode="OTHER_COUNTED",e.qOtherTotalSpec.qOtherCounted={qv:"10"}}function Hw({translator:e}){return{dimensions:{min:1,max:1,description:()=>e.get("Visualizations.Descriptions.Slice"),add(e,t){Fw(e),_w(t),ox.addCallbackCustomTooltip(t)},move(e,t){Fw(e),_w(t),ox.moveCallbackCustomTooltip(t,e)},remove(e,t){ox.removeCallbackCustomTooltip(t,e)},replace(e,t,n,r){Fw(e),_w(r),ox.replaceCallbackCustomTooltip(r,t)}},measures:{min:1,max:2,description:(t,n)=>e.get(0===n?"Visualizations.Descriptions.Angle":"Visualizations.Descriptions.Radius"),add(e,t){_w(t)},remove(e,t){!function(e){if(!e.qHyperCubeDef)return;const t=e.qHyperCubeDef.qMeasures,{mode:n}=e.color;"byExpression"===n&&0===t.length&&(e.color.mode="primary")}(t)}}}}const Bw=e=>e.qMax<=0,Uw=e=>!(!(e&&e.qHyperCube.qSize.qcy>0)||e.qHyperCube.qMeasureInfo.every(Bw));function Ww(e){return{definition:Cw(e),softDefinition:Tw,support:{snapshot:Uw,export:Uw,exportData:!0,sharing:Uw,viewData:!0,effects:!0},effects:jw,extendMetrics:$w,importProperties:(t,n,r,o)=>{const i={layout:{templateId:n.templateId}};r.mapProperties(i);const a={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()},s=W.colorChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:Hw(e),defaultPropertyValues:a,hypercubePath:o});return s.qProperty.dataPoint&&!1===s.qProperty.dataPoint.show&&delete s.qProperty.dataPoint.show,s},exportProperties:(e,t,n)=>W.colorChart.exportProperties({propertyTree:e,hypercubePath:t,viewDataMode:n})}}function Vw(e){return{properties:{version:"1.27.13",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:[{key:"slices",style:{strokeWidth:"none",strokeColor:{index:-1,color:Ex.STROKE.COLOR},cornerRadius:Ex.CORNER_RADIUS,innerRadius:Ex.INNER_RADIUS}}],dataPoint:{auto:!0,labelMode:"share",labelValueMode:"arc"},dimensionTitle:!0,donut:{showAsDonut:!1},footnote:"",legend:{dock:"auto",show:!0,showTitle:!0},qHyperCubeDef:{qDimensions:[],qMeasures:[],qInitialDataFetch:[{qWidth:10,qHeight:500}],qSuppressMissing:!0,qSuppressZero:!1,qMode:"S"},showDetails:!0,showDisclaimer:!0,showTitles:!0,subtitle:"",title:"",tooltip:{auto:!0,hideBasic:!1,data:{qHyperCubeDef:void 0},chart:void 0,imageComponents:void 0}},data:{targets:[Hw(e)]},importProperties:({exportFormat:t,initialProperties:n,hypercubePath:r})=>{const o=W.colorChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:Hw(e),hypercubePath:r});return o.qProperty.dataPoint&&!1===o.qProperty.dataPoint.show&&delete o.qProperty.dataPoint.show,o},exportProperties:({propertyTree:e,hypercubePath:t,viewDataMode:n})=>W.colorChart.exportProperties({propertyTree:e,hypercubePath:t,viewDataMode:n})}}e("default",(e=>{const{flags:t}=e;!function(e){if(e&&e.get&&e.add){const t="Object.Disclaimer.LimitedData";if(e.get(t)!==t)return;Object.keys(V).forEach((t=>{e.add(V[t])}))}}(e.translator);const n=jb();return{qae:Vw(e),ext:Ww(e),component(){const e=Ub({picasso:n}),r=function({flags:e,picasso:t,instance:n}){const r=q(),o=A(),i=D(),a=T(),[s,l]=M(),c=N(),u=L(),h=z(),m=E(),g=j(),{qLocaleInfo:y}=$(),v=_();return I((()=>{if(!n)return;a.style.overflow="hidden";const s=d({picasso:n.picasso,model:r,app:o,translator:i,config:{auto:!1,key:"fill"}}),b=p({picassoInstance:n.picasso,plugins:u,pluginArgs:hx(c)}),x=fx({flags:e,layout:c,app:o,model:r,picasso:t,chart:n.chart,translator:i,localeInfo:y,embed:v,options:m}),w=f({theme:g,config:{id:"pieChart",resolve:[["object","label.name","color","#595959"],["object","label.name","fontFamily"],["object","label.name","fontSize","12px"]]}}),S=gx({app:o,chart:n.chart,translator:i,layout:c,constraints:h,options:m,themeService:w,colorService:s,custom:x}),C=function({layout:e,themeService:t,flags:n}){const r=t.getStyles(),o=t=>{var r;return n.isEnabled("CLIENT_IM_3050")?null===(r=e.components)||void 0===r?void 0:r.find((e=>e.key===t)):void 0};return{axis:{title:{getStyle:()=>{var e,t,n,i,a,s;return{fontFamily:null!==(e=null===(t=o("axis"))||void 0===t||null===(t=t.axis)||void 0===t||null===(t=t.title)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:r.axis.title.fontFamily,fontSize:null!==(n=null===(i=o("axis"))||void 0===i||null===(i=i.axis)||void 0===i||null===(i=i.title)||void 0===i?void 0:i.fontSize)&&void 0!==n?n:r.axis.title.fontSize,color:null!==(a=null===(s=o("axis"))||void 0===s||null===(s=s.axis)||void 0===s||null===(s=s.title)||void 0===s||null===(s=s.color)||void 0===s?void 0:s.color)&&void 0!==a?a:r.axis.title.color}}}},label:{name:{getStyle:()=>{var e,t,n,i,a,s;return{fill:null!==(e=null===(t=o("label"))||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.name)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:r.label.name.color,fontSize:null!==(n=null===(i=o("label"))||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.name)||void 0===i?void 0:i.fontSize)&&void 0!==n?n:r.label.name.fontSize,fontFamily:null!==(a=null===(s=o("label"))||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.name)||void 0===s?void 0:s.fontFamily)&&void 0!==a?a:r.label.name.fontFamily}}},value:{getStyle:()=>{var e,t,n,i,a,s;return{fill:null!==(e=null===(t=o("label"))||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.value)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:r.label.value.color,fontSize:null!==(n=null===(i=o("label"))||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.value)||void 0===i?void 0:i.fontSize)&&void 0!==n?n:r.label.value.fontSize,fontFamily:null!==(a=null===(s=o("label"))||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.value)||void 0===s?void 0:s.fontFamily)&&void 0!==a?a:r.label.value.fontFamily}}}},legend:{title:{getStyle:()=>{var e,t,n,i,a,s;return{fontFamily:null!==(e=null===(t=o("legend"))||void 0===t||null===(t=t.legend)||void 0===t||null===(t=t.title)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:r.legend.title.fontFamily,fontSize:null!==(n=null===(i=o("legend"))||void 0===i||null===(i=i.legend)||void 0===i||null===(i=i.title)||void 0===i?void 0:i.fontSize)&&void 0!==n?n:r.legend.title.fontSize,color:null!==(a=null===(s=o("legend"))||void 0===s||null===(s=s.legend)||void 0===s||null===(s=s.title)||void 0===s||null===(s=s.color)||void 0===s?void 0:s.color)&&void 0!==a?a:r.legend.title.color}}},label:{getStyle:()=>{var e,t,n,i,a,s;return{fontFamily:null!==(e=null===(t=o("legend"))||void 0===t||null===(t=t.legend)||void 0===t||null===(t=t.label)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:r.legend.label.fontFamily,fontSize:null!==(n=null===(i=o("legend"))||void 0===i||null===(i=i.legend)||void 0===i||null===(i=i.label)||void 0===i?void 0:i.fontSize)&&void 0!==n?n:r.legend.label.fontSize,color:null!==(a=null===(s=o("legend"))||void 0===s||null===(s=s.legend)||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.color)||void 0===s?void 0:s.color)&&void 0!==a?a:r.legend.label.color}}}}}}({layout:c,themeService:w,flags:e}),k=mx({layout:c});l({colorService:s,disclaimerService:k,pluginService:b,themeService:w,tooltipService:S,styleService:C})}),[r,o,n,c,i.language(),h,m.direction,g.name()]),s}({flags:t,picasso:n,instance:e});iw({instance:e,services:r,picasso:n,flags:t}),function({instance:e}){const t=N(),n=E(),r=H();I((()=>{if(!e||!e.generateSettings)return;const{viewCache:r,chart:o,generateSettings:i}=e;o.update({settings:i()}),r.set("chartWidth",o.element.clientWidth),r.set("chartHeight",o.element.clientHeight),n.effect&&n.effect.update(t,o)}),[r.width,r.height])}({instance:e}),sw({instance:e,services:r})}}}))}}}));
|