@nebula.js/sn-bar-chart 1.37.2 → 1.38.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,24 +1,24 @@
1
1
  /*
2
- * @nebula.js/sn-bar-chart v1.37.2
2
+ * @nebula.js/sn-bar-chart v1.38.0
3
3
  * Copyright (c) 2025 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
6
6
 
7
- System.register(["picasso.js","picasso-plugin-q","hammerjs","qlik-chart-modules","react","react-dom","@nebula.js/stardust","qlik-object-conversion"],(function(e){"use strict";var t,n,r,o,i,a,s,l,c,u,d,p,f,m,h,g,y,v,b,x,S,M,C,w,k,T,q,E,L,N,O,D,A,R,I,P,z,j,F,B,_,H,$,V,W,U,K,G,Y,X;return{setters:[function(e){t=e.default},function(e){n=e.default},function(e){r=e.default},function(e){o=e.getValue,i=e.setValue,a=e.debouncer,s=e.throttler,l=e.cache,c=e.storage,u=e.memoize,d=e.selectionService,p=e.colorService,f=e.disclaimerService,m=e.layoutService,h=e.dockService,g=e.themeService,y=e.pluginService,v=e.fontResolver},function(e){b=e.default,x=e,S=e.isValidElement,M=e.cloneElement,C=e.Children,w=e.forwardRef,k=e.useContext},function(e){T=e,q=e.default},function(e){E=e.useTranslator,L=e.useEmbed,N=e.useTheme,O=e.useState,D=e.useDeviceType,A=e.useAppLayout,R=e.useEffect,I=e.useElement,P=e.useOptions,z=e.useLayout,j=e.useAction,F=e.useStaleLayout,B=e.useModel,_=e.useApp,H=e.usePlugins,$=e.useSelections,V=e.useConstraints,W=e.useRect,U=e.usePromise,K=e.onTakeSnapshot,G=e.useImperativeHandle,Y=e.useRenderState},function(e){X=e.default}],execute:function(){e("default",(function(e){const i=function(){const e=t();return e.use(n),e.use(function(e){if("function"!=typeof e.interaction)return t=>{t.interaction("hammer",Q(e))};return void e.interaction("hammer",Q(Hammer))}(r)),e.use(function(){return function(e){e.renderer("react",function(){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",q.render(function(e,t){return b.createElement(Ed,{generateClassName:t},b.createElement(bp,{theme:pm},e))}(e,fm),r),!0},itemsAt:()=>[],findShapes:()=>[],clear:()=>(r&&q.unmountComponentAtNode(r),i),destroy(){r&&r.parentElement&&(q.unmountComponentAtNode(r),r.parentElement.removeChild(r)),r=null},size:t=>(t&&(o=e(t)),o)};return i}}()),e.component("data-title",function(e){function t(e){return!e.isDimension&&Se.getValue(e,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.length")>0}function n(e){return e.isDimension&&Se.getValue(e,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.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:r,explicitItemInfos:o,hyperCube:i,hyperCubeDef:a,isDimension:s,minWidth:l,model:c,onChangeToAlternative:u,padding:d,rtl:p,selections:f,skipAttributeExpressions:m,translator:h,supportConditional:g=!1},layout:{dock:y}}=this.settings,v="top"!==y&&"bottom"!==y||!p?"ltr":"rtl",x=function(e,t){const n={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",height:"100%"};"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");return n}(y,this.rect),S=a&&a.qLayoutExclude&&a.qLayoutExclude.qHyperCubeDef,M=S&&S[s?"qDimensions":"qMeasures"]||[],C=o||i[s?"qDimensionInfo":"qMeasureInfo"],w=s?fs:hs,k=s?ms:gs,T=Boolean(c&&c.colorSupport&&c.modifiers),q=T&&(n(this.settings.settings)||t(this.settings.settings)),E=C.map(((t,n)=>{var o;const i="number"==typeof t.explicitColumn?t.explicitColumn:n,a=k(t,i,c,e),v=n===C.length-1,x=Boolean(e)&&s&&"N"!==t.qGrouping,S=T||x?w({column:i,activeInfo:t,altList:M,app:e,dir:p?"rtl":"ltr",dock:dm(y),model:c,onChange:u,skipAttributeExpressions:m,translator:h,allowChangeOfAlternatives:T}):void 0;return b.createElement(b.Fragment,{key:t.cId},b.createElement(um,{chartId:null!==(o=null==c?void 0:c.id)&&void 0!==o?o:"",showGroupDimOptions:x,popover:S,titleData:a,model:c,translator:h,selections:f,disabled:r(),style:this.style,isDimension:s,padding:d,minWidth:l,hasAlternative:q,supportConditional:g}),!v&&b.createElement("span",{style:{lineHeight:"normal",...this.style}},", "))}));return b.createElement("div",{style:x,dir:v},E)}}}(e.renderer("svg")()))}}()),e.use(jw),e.renderer("react-qcm",kw),e.component("box-sliced-hat",Iw),e.component("box-out-of-bounds",Nw),e.component("disclaimer",xw),e.component("scrollbar",jg),e.component("scroll-hint",Ri),e.component("reference-line-labels",Ia),e.component("axis-overlay",Qh.picassoComponents.axisOverlay),e.component("time-axis",Qh.picassoComponents.timeAxis),e.component("space",Pw),e.scale("q-time-axis",Qh.picassoScales.time),e}();return{qae:vk(e),ext:DL(e),component(){const t=function({env:e}){var t;const{flags:n}=e,r=null===(t=e.anything)||void 0===t||null===(t=t.sense)||void 0===t?void 0:t.isUnsupportedFeature,o=E();!function(e){if(e&&e.get&&e.add){const t="Object.Disclaimer.LimitedData";if(e.get(t)!==t)return;Object.keys(bk).forEach((t=>{e.add(bk[t])}))}}(e.translator);const i=L(),a=N(),[s,l]=O(),c=D(),u=A(),{qLocaleInfo:d}=u;return R((()=>{l({translator:o,theme:a,embed:i,deviceType:c,localeInfo:d,isUnsupportedFeature:r,flags:n})}),[d,r,o.language(),a.name(),c]),s}({env:e}),{viewState:n,viewCache:r}=function(){const[e]=O((()=>l())),[t]=O((()=>c({viewRange:[0,1],scrollOffset:void 0})));return{viewCache:e,viewState:t}}(),u=function({picasso:e}){const t=I(),n=P(),[r,o]=O();return R((()=>{if(!e)return()=>{};t.style.overflow="hidden";const r=e({renderer:{prio:[(null==n?void 0:n.renderer)||"canvas"]}}).chart({element:t,data:[],settings:{}});o(r);const{destroy:i}=r;return()=>{i()}}),[n.renderer]),r}({picasso:i}),d=function({picasso:e,chart:t,environment:n,viewState:r,viewCache:i}){const a=F(),c=B(),u=_(),d=H(),p=$(),f=P(),[v,b]=O(),[x,S]=O(),[M,C]=O(),w=V(),k=function(){const[e]=O({}),[t]=O({}),n=function(){var e,t;const n=z(),r=E(),o=!(null==n||null===(e=n.qSelectionInfo)||void 0===e||!e.qInSelections),i=!(null==n||null===(t=n.qHyperCube)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t||null===(t=t[0])||void 0===t||!t.qIsOneAndOnlyOne),[a,s]=O(!1),[l,c]=O(!1),[u,d]=O({key:"lasso",enabled:()=>!1,active:()=>!1,action:()=>!1}),p=e=>{c("boolean"==typeof e?e:!l)};return j((()=>(d({key:"lasso",action:p,enabled:()=>a,active:()=>l}),{key:"lasso",label:r.get(l?"Tooltip.ToggleOffLassoSelection":"Tooltip.ToggleOnLassoSelection"),icon:ET,hidden:!a||!o||i,active:l,action:p})),[o,i,l,a,r.language()]),{get:()=>u,setAllows:e=>{s(!!e)}}}(),[r,o]=O();return R((()=>{const r={};r.scroll={key:"scroll",isActive:!0,isEnabled:!0,action(){this.isActive=!this.isActive},active(){return this.isActive},enabled(){const{layoutService:n,discrete:r}=e;return t.allowScroll&&((null==n?void 0:n.meta.isContinuous)||(null==r?void 0:r.query.getCanScroll()))}},r.interact={key:"interact",isEnabled:!0,enabled:()=>t.allowInteract},r.tooltip={key:"tooltip",isActive:!0,isEnabled:!0,action(e){this.isActive=!!e},active(){return this.isActive},enabled:()=>t.allowTooltip},r.select={key:"select",isActive:!1,isEnabled:!0,action(){this.isActive=!this.isActive},active(){return this.isActive},enabled:()=>t.allowSelect},r.lasso=n.get(),Object.keys(r).forEach((e=>LT(r[e]))),o(r)}),[]),R((()=>{r&&n&&(r.lasso={...r.lasso,...n.get()})}),[n]),{get:()=>r,setAllows:e=>{Object.assign(t,e),n.setAllows(null==e?void 0:e.allowSelect)},setContext:t=>{Object.assign(e,t)},destroy:()=>{Object.keys(r).forEach((e=>r[e].removeAllListeners()))}}}();return R((()=>{if(!t)return()=>{};const e=k.get(),n=IT({chart:t,actions:e,selections:p});return S(e),C(n),()=>{n.destroy(),k.destroy()}}),[t]),R((()=>{if(!w)return;const e={allowScroll:!w.active,allowInteract:!w.active,allowTooltip:!w.passive,allowSelect:!w.select&&!w.active};k.setAllows(e)}),[w]),R((()=>{if(!M||!n)return;const{theme:p,translator:v,localeInfo:S,flags:C,embed:w}=n,{direction:T="ltr"}=f,q=m({source:a,metaAdditionsFn:AT(C),experimental:{filter:!0}});M.setFilteredFields(q.meta.filteredFields);const E=function(e){return e.color.auto?e.qHyperCube.qDimensionInfo.length>1:"byDimension"===e.color.mode&&e.color.byDimDef&&e.color.byDimDef.activeDimensionIndex>-1}(q.getLayout())?m({source:q.getLayout()}):void 0,L=function({layout:e,options:t={}}){return!(null==e||!e.snapshotData||t.freeResize)&&{width:e.snapshotData.content.size.w,height:e.snapshotData.content.size.h}}({layout:a,options:f}),N=function({layoutService:e,viewCache:t,options:n}){const r={};return r.fields=function(e){const{meta:t}=e,n={majorGroup:t.isGroupedByDimension?"qDimensionInfo/0":void 0,majorStack:t.isStacked?"qDimensionInfo/0":void 0,major:t.isDimensionless?void 0:"qDimensionInfo/"+(t.dimensionCount-1),majors:e.getHyperCubeValue("qDimensionInfo").map(((e,t)=>`qDimensionInfo/${t}`)),minor:e.getHyperCubeValue("qMeasureInfo").map(((e,t)=>`qMeasureInfo/${t}`))};return n.majorNumeric=`${t.isStackedByDimension?n.majorStack:n.major}:numeric`,n}(e),r.selectionDimensionIdx=PT(e.getHyperCube()),r.isDimensionLocked=t=>e.getHyperCube().qDimensionInfo[t].qLocked,r.selectionDimensionProp=e=>void 0===r.selectionDimensionIdx||void 0!==e&&r.selectionDimensionIdx!==e?{}:{selectionDimension:{field:r.selectionDimensionIdx}},r.animations={enabled:()=>!1!==n.chartAnimations&&(!(r.animations.isPartialUpdating||r.animations.isSizeChanging||r.animations.hasSlicedHats)&&!ja.propertiesHaveChanged({viewCache:t,layout:e.getLayout()})),isPartialUpdating:!1,isSizeChanging:!1,hasSlicedHats:!1},r}({layoutService:q,viewCache:i,options:f}),O=h({chart:t,layoutService:q,config:{logicalSize:L,rtl:"rtl"===T},typeConfig:{type:"major-minor",fallback:"vertical",invert:!0}}),D=BT({layoutService:q}),A=g({theme:p,config:{id:"barChart",transform:[["label.value.fontSize",e=>parseInt(e,10)]]}}),R=Qh.model({model:c,layoutService:q,viewCache:i,viewState:r}),I=function({enigma:e,layoutService:t,viewModel:n,definitionPath:r,reducedHyperCubePath:o},i={}){const a=function(e,t,n="/qHyperCubeDef"){return{fetch(){return function(e,t,n){return e.getHyperCubeReducedData(n.path,[n.rect],n.zoomLevel,n.filter).catch(qe).then((e=>{var n;const r=t.getHyperCubeValue("qMode"),o=t.getHyperCubeValue("qDimensionInfo"),i="K"===r&&o.length>1&&(null===(n=e[0])||void 0===n?void 0:n.qIsReduced),a=e.slice(),s=t.getHyperCubeValue("qMeasureInfo"),l=i?[]:t.getHyperCubeValue("qColumnOrder");return{reducedCube:{qDataPages:a,qDimensionInfo:o.slice(),qEffectiveInterColumnSortOrder:[1,0],qMeasureInfo:i?[s[0],s[0]]:s.slice(),qStackedDataPages:[],qMode:"S",qHasOtherValues:t.getHyperCubeValue("qHasOtherValues"),qSize:t.getHyperCubeValue("qSize"),qColumnOrder:l}}}))}(e,t,this.settings())},settings(){const e=t.getHyperCubeValue("qDimensionInfo"),r=t.meta.isStacked&&e.length>1?1:0,o=t.getHyperCubeValue("qMeasureInfo");return{path:n,rect:{qTop:0,qLeft:r,qWidth:e.length+o.length+r,qHeight:Math.min(2e3,1e4/(o.length+1))},zoomLevel:-1,filter:"D1"}}}}(e,t,r),s=function(e,t="reducedHyperCube"){return{fetch:()=>Promise.resolve({reducedCube:e.getLayoutValue(t)||e.getHyperCube()})}}(t,o),l=function(e){return{fetch:()=>{const t=e.getHyperCube(),n={...t,qDataPages:t.qDataPages.slice()};return Promise.resolve({reducedCube:n})}}}(t),c=function({layoutService:e}){const{isSnapshot:t,isStackedByDimension:n}=e.meta,r=e=>{e.qDimensionInfo.unshift({key:"dummy-patch-dimension"})};return r.should=e=>t&&n&&1===e.qDimensionInfo.length,r}({layoutService:t}),u={mode:{isReduced:!1}};return{fetch(){if(t.meta.isSnapshot)return s.fetch();if(t.meta.isContinuous)return l.fetch();if(!t.meta.isStacked){if(t.getHyperCubeValue("qSize.qcy",NaN)===t.getHyperCubeValue("qDataPages.0.qArea.qHeight",NaN))return l.fetch()}return a.fetch()},model:()=>u,update(e){var r;c.should(e)&&c(e),u.mode=de(u.mode,t.meta),u.mode.isReduced=e.qDataPages[0]&&e.qDataPages[0].qIsReduced,u.mode.isStackedByDimension=u.mode.isStacked&&(2===(r=e).qDimensionInfo.length&&2===r.qMeasureInfo.length),u.mode.isStackedByMeasure=u.mode.isStacked&&function(e){return e.qMeasureInfo.length>1&&1===e.qDimensionInfo.length}(e),u.fields={major:u.mode.isStackedByDimension?"qDimensionInfo/"+(e.qDimensionInfo.length-1):n.fields.major,majorGroup:n.fields.majorGroup,minor:u.mode.isStackedByDimension?e.qMeasureInfo.map(((e,t)=>`qMeasureInfo/${t}`)):n.fields.minor},u.scales={major:OT.SCALE.REDUCED.MAJOR,minor:OT.SCALE.REDUCED.MINOR},u.cube=e,i.qDataPages=e.qDataPages},fetchMinMaxData(){if(i.qDataPages)return Promise.resolve(i.qDataPages);let n=a.settings();const r="K"===t.getHyperCubeValue("qMode")?1:n.rect.qHeight;return n=de(!0,{},n,{rect:{qHeight:r}}),e.getHyperCubeReducedData(n.path,[n.rect],n.zoomLevel,n.filter).then((e=>e))},setSnapshotData(e){e.reducedHyperCube=u.cube}}}({enigma:c,layoutService:q,viewModel:N});!function({layoutService:e,viewState:t,viewStateOptions:n={}}){const r=e.meta.isSnapshot?e.getLayoutValue("snapshotData.content.chartData",{}):n;t.preventSet("scrollOffset",r.scrollOffset),t.preventSet("legendScrollOffset",r.legendScrollOffset||0),r.zoom&&t.preventSet("zoom",r.zoom)}({layoutService:q,viewState:r,viewStateOptions:null==f?void 0:f.viewState});const P=jT({picasso:e,model:c,app:u,translator:v,localeInfo:S,theme:p,continuousDataModel:R,layoutService:q,legendLayoutService:E,reducedDataModel:I}),z=function({layoutService:e,themeService:t,colorService:n}){const r=t.getStyles(),o=t=>(e.getLayoutValue("components",[])||[]).find((e=>e.key===t));return{axis:{title:{getStyle:()=>{var e,t,i,a;const s=null===(e=o("axis"))||void 0===e||null===(e=e.axis)||void 0===e?void 0:e.title,l=n.getMain().getPaletteColor;return{fontFamily:null!==(t=null==s?void 0:s.fontFamily)&&void 0!==t?t:r.axis.title.fontFamily,fontSize:null!==(i=null==s?void 0:s.fontSize)&&void 0!==i?i:r.axis.title.fontSize,color:null!=s&&null!==(a=s.color)&&void 0!==a&&a.color?l(null==s?void 0:s.color):r.axis.title.color}}},label:{getStyle:()=>{var e,t,i,a;const s=null===(e=o("axis"))||void 0===e||null===(e=e.axis)||void 0===e||null===(e=e.label)||void 0===e?void 0:e.name,l=n.getMain().getPaletteColor;return{fill:null!=s&&null!==(t=s.color)&&void 0!==t&&t.color?l(null==s?void 0:s.color):r.axis.label.name.color,fontSize:null!==(i=null==s?void 0:s.fontSize)&&void 0!==i?i:r.axis.label.name.fontSize,fontFamily:null!==(a=null==s?void 0:s.fontFamily)&&void 0!==a?a:r.axis.label.name.fontFamily}}}},legend:{title:{getStyle:()=>{var e,t,i,a;const s=null===(e=o("legend"))||void 0===e||null===(e=e.legend)||void 0===e?void 0:e.title,l=n.getMain().getPaletteColor;return{fontFamily:null!==(t=null==s?void 0:s.fontFamily)&&void 0!==t?t:r.legend.title.fontFamily,fontSize:null!==(i=null==s?void 0:s.fontSize)&&void 0!==i?i:r.legend.title.fontSize,color:null!=s&&null!==(a=s.color)&&void 0!==a&&a.color?l(null==s?void 0:s.color):r.legend.title.color}}},label:{getStyle:()=>{var e,t,i,a;const s=null===(e=o("legend"))||void 0===e||null===(e=e.legend)||void 0===e?void 0:e.label,l=n.getMain().getPaletteColor;return{fontFamily:null!==(t=null==s?void 0:s.fontFamily)&&void 0!==t?t:r.legend.label.fontFamily,fontSize:null!==(i=null==s?void 0:s.fontSize)&&void 0!==i?i:r.legend.label.fontSize,color:null!=s&&null!==(a=s.color)&&void 0!==a&&a.color?l(null==s?void 0:s.color):r.legend.label.color}}}},label:{getStyle:()=>{var e,t,i,a,s;const l=null===(e=o("label"))||void 0===e||null===(e=e.label)||void 0===e?void 0:e.value,c=n.getMain().getPaletteColor;return{fill:null!=l&&null!==(t=l.color)&&void 0!==t&&t.color?c(null==l?void 0:l.color):r.label.value.color,useContrastColor:null===(i=null==l?void 0:l.useContrastColor)||void 0===i||i,fontSize:null!==(a=null==l?void 0:l.fontSize)&&void 0!==a?a:r.label.value.fontSize,fontFamily:null!==(s=null==l?void 0:l.fontFamily)&&void 0!==s?s:r.label.value.fontFamily}}}}}({layoutService:q,themeService:A,colorService:P}),j=dT({layoutService:q,viewState:r,colorModel:{settings:()=>P.getMain().getSettings(),resolveUIColor:e=>P.getMain().getPaletteColor(e)},chart:t,env:n,keys:{colorScale:OT.SCALE.MAIN.COLOR},isEnabled:()=>!q.meta.isGroupedByDimension&&(!q.meta.isStackedByDimension||C.isEnabled("TRENDLINES_STACKED_DIM"))&&!q.meta.isDimensionless});sk.attrExpr.updateProperties(c,a);const F=function({layout:e,app:t,picasso:n,model:r,chart:o,translator:i,localeInfo:a,embed:s}){const l=e.tooltip&&!e.tooltip.auto;return{layout:e,app:t,picasso:n,model:r,chart:o,translator:i,localeInfo:a,useCustomTooltip:l,utils:Qw,miniChartToken:{},embed:s}}({layout:a,app:u,model:c,picasso:e,chart:t,translator:v,localeInfo:S,embed:w});let B;q.meta.isDiscrete&&(B=function({chart:e,actions:t,componentKey:n,enigmaModel:r,layoutService:i,dockService:a,trendLineModel:c,itemWidths:u,viewState:d,rtl:p,options:{definitionPath:f="/qHyperCubeDef",getRect:m,axisKey:h,renderer:g,areaBuffer:y,processDataPage:v=()=>{}}={}}){const b=l(),x=function({qMode:e}){switch(e){case"S":default:return qk;case"K":return Ek;case"T":return Lk}}({qMode:i.getHyperCubeValue("qMode")}),S=function({state:e,contains:t}){return e.set(Nk,[]),{add:t=>{const n=e.get(Nk);n.length=0,n.push(t)},getCurrent:()=>e.get(Nk)[0],getAll:()=>e.get(Nk),contains:n=>t(e.get(Nk)[0],n)}}({state:b,contains:x.contains});!function({layoutService:e,dataStore:t,composition:n}){const r=e.getDataPages()[0];if(!r)return;const o=n.patcher({layoutService:e});o.should(r)&&o(r);t.add(r)}({layoutService:i,dataStore:S,composition:x});const M=function({buffer:e}){return void 0===e?void 0:2*Math.round(e/2)}({buffer:y}),C=function({dataStore:e,composition:t,enigmaModel:n,layoutService:r,trendLineModel:o=zk,definitionPath:i,processDataPage:a}){const{slicer:l,cacheWarden:c,request:u}=t,d=function({dataStore:e,slice:t,warden:n,expand:r,request:o,process:i,connectionless:a,processDataPage:s}){const l=(l,{onProcessing:c}={})=>{if(e.contains(l)){const r=e.getCurrent();if(a)return Promise.resolve(t(r,l));const o=n.release(r.qArea,l),s=i.isProcessing();if(!o&&s&&i.cancel(),!o||s)return Promise.resolve(t(r,l))}if(a)return Promise.resolve(e.getCurrent());i.isProcessing()&&c&&c();const u=r(l);return i(o(u)).then((n=>(s(n),e.add(n),t(n,l))))};return l}({dataStore:e,slice:l,warden:c({bounds:{width:r.meta.size.x,height:r.meta.size.y}}),expand:Ik({layoutService:r}),request:u({definitionPath:i}),process:Pk(n),connectionless:r.meta.isSnapshot,processDataPage:a}),p=s(((e,{onProcessing:t,onData:n})=>{d(e,{onProcessing:t}).then((e=>n(e))).catch((e=>{if(e!==xk)throw e}))}),wk);return function(e,{onProcessing:t=Sk,onDataPage:n=Sk}={}){p(e,{onProcessing:t,onData:e=>{r.setDataPages(e?[e]:[]),o.command.update(),n(e)}})}}({dataStore:S,composition:x,enigmaModel:r,layoutService:i,trendLineModel:c,definitionPath:f,processDataPage:v}),w=function({chart:e,componentKey:t,state:n,dataStore:r,pageData:o,layoutService:i,dockService:a,itemWidths:s,getRect:l,axisKey:c,renderer:u,areaBuffer:d,viewState:p,rtl:f}){n.set("rect",{width:0,height:0}),n.set("itemWidths",{}),n.set("itemSize",0),n.set("items",{}),n.set("offsets",{}),n.set("finished",0),n.set("scaleRange",[0,1]);const m=function({chart:e,getRect:t,getDataPages:n,layoutService:r,dockService:o,getItemWidths:i,axisKey:a,renderer:s,areaBuffer:l,rtl:c}){const{inTotal:u,area:d,scaleRange:p}=function({layoutService:e}){const{isDimensionless:t,isGrouped:n,isGroupedByMeasure:r}=e.meta;if(t)return jk;if(!n)return Fk;return r?$k:Uk}({layoutService:r}),f=()=>"horizontal"===o.meta.major.orientation?t().width:t().height,m=e=>e?f()/e:0,h=(e,t)=>-(e-t)*m(t);return{getItems(){const n=r.getLayoutValue("dimensionAxis"),l=u({layoutService:r});return{inTotal:l,inView:Kk({chart:e,rect:t(),dockService:o,itemWidths:i(),axisKey:a,renderer:s,isGrouped:r.meta.isGrouped,dimensionAxis:n,inTotal:l,isMajorLabelless:"none"===n.show||"title"===n.show,maxDataRows:Math.floor(Mk/(r.meta.dimensionCount+r.meta.measureCount))})}},getItemSize({items:e}){const{inView:t}=e;return m(t)},getOffsets({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t,o=Math.min(0,Math.max(e,h(n,r))),i=r?Math.abs(r*o/f()):0;return{start:{pixel:o,item:i},end:{item:Math.min(i+(r||0),n)}}},getUpperBound({items:e}){const{inTotal:t,inView:n}=e;return h(t,n)},getViewRange({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t;return function({viewSize:e,inTotal:t,inView:n,pixelOffset:r}){const o=e/n*t,i=Math.abs(r)/o,a=Math.min(1,i+e/o);return[i,a]}({viewSize:f(),inTotal:n,inView:r,pixelOffset:e})},getArea:({itemOffset:e,items:t})=>d({getDataPages:n,layoutService:r,itemOffset:e,inView:t.inView,areaBuffer:l}),getScaleRange({offsets:e,items:t}){const i=p({getDataPages:n,layoutService:r,offsets:e,items:t,viewSize:f(),upperBound:h(t.inTotal,t.inView)});return"horizontal"===o.meta.major.orientation&&c?function(e){return[1-e[1],1-e[0]]}(i):i},validate:{offset({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t;return e<=0&&e>=h(n,r)}},convert:{itemToPixelOffset({itemOffset:e,items:t}){const{inView:n}=t,r=e*m(n);return Number.isFinite(r)?-r:0},relativeToPixelOffset({relativeOffset:e,items:t}){const{inTotal:n,inView:r}=t;return-e*(m(r)*n)}}}}({chart:e,getRect:()=>n.get("rect"),getDataPages:r.getCurrent,layoutService:i,dockService:a,getItemWidths:()=>n.get("itemWidths"),axisKey:c,renderer:u,areaBuffer:d,rtl:f}),h=()=>{const e=m.getItems();return n.set("items",e),e},g=({pixelOffset:e,items:t})=>{const r=m.getOffsets({pixelOffset:e,items:t});return n.set("offsets",r),r},y=({items:e})=>{const t=i.getLayoutValue("scrollStartPos"),n=p.get("scrollOffset");if(void 0===n)return 1===t?m.getUpperBound({items:e}):0;if("number"==typeof n)return m.convert.itemToPixelOffset({itemOffset:n,items:e});const{start:r,end:o}=n,a=1===t&&o?o-e.inView:r;return m.convert.itemToPixelOffset({itemOffset:a,items:e})},v=e=>{const[{qArea:t}]=i.getDataPages();return!!t&&Object.keys(e).every((n=>e[n]===t[n]))},b=e=>{const t=Date.now(),r=h(),i=g({pixelOffset:e,items:r}),a=m.getArea({itemOffset:i.start.item,items:r});if(v(a))return void((m.validate.offset({pixelOffset:e,items:r})||p.get("scrollOffset").start!==i.start.item)&&(n.set("finished",t),n.set("scaleRange",m.getScaleRange({offsets:i.start,items:r})),p.preventSet("viewRange",m.getViewRange({pixelOffset:i.start.pixel,items:r})),p.set("scrollOffset",{start:i.start.item,end:i.end.item})));p.preventSet("viewRange",m.getViewRange({pixelOffset:i.start.pixel,items:r}));const s=()=>{n.get("finished")>t||(n.set("finished",t),n.set("scaleRange",m.getScaleRange({offsets:i.start,items:r})),p.set("scrollOffset",{start:i.start.item,end:i.end.item}))};o(a,{onProcessing:s,onDataPage:s})};return{enabled(){const{inTotal:e,inView:t}=n.get("items");return e>t},itemSize:()=>n.get("itemSize"),scaleRange:()=>n.get("scaleRange"),initialize(){const r=e.component(t);if(!r)return Promise.resolve();n.set("rect","function"==typeof l?l():r.rect),n.set("itemWidths","function"==typeof s?s():s);const i=h();n.set("itemSize",m.getItemSize({items:i}));const a=y({items:i}),c=g({pixelOffset:a,items:i});p.preventSet("viewRange",m.getViewRange({pixelOffset:c.start.pixel,items:i}));const u=m.getArea({itemOffset:c.start.item,items:i});return new Promise((e=>{o(u,{onDataPage:()=>{n.set("scaleRange",m.getScaleRange({offsets:c.start,items:i})),p.preventSet("scrollOffset",{start:c.start.item,end:c.end.item}),e()}})}))},scroll(e){const t=n.get("offsets").start.pixel+e;b(t)},scrollToRelative(e){const t=n.get("items"),r=m.convert.relativeToPixelOffset({relativeOffset:e,items:t});b(r)}}}({chart:e,componentKey:n,state:b,dataStore:S,pageData:C,layoutService:i,dockService:a,itemWidths:u,getRect:m,axisKey:h,renderer:g,areaBuffer:M,viewState:d,rtl:p}),k=function({layoutService:e,dataStore:t}){return function(n){const r=o(n,`${e.refs.dataPages}`);r.length=0,r.push(t.getCurrent())}}({layoutService:i,dataStore:S}),T=function({chart:e,actions:t,componentKey:n,dockService:r,rtl:o,scroller:i}){return{gestures:[Ak({chart:e,actions:t,componentKey:n,dockService:r,rtl:o,scroller:i})],native:{type:"native",events:{wheel:Rk({chart:e,actions:t,componentKey:n,scroller:i})}}}}({chart:e,actions:t,componentKey:n,dockService:a,rtl:p,scroller:w});return{interactions:T,query:{getCanScroll:()=>w.enabled(),getItemSize:()=>w.itemSize(),getScaleRange:()=>w.scaleRange(),getCurrentDataPage:()=>S.getCurrent()},command:{initialize:()=>w.initialize(),scrollTo:e=>w.scrollToRelative(e),setSnapshotData:e=>k(e)}}}({chart:t,actions:x,componentKey:OT.COMPONENT.BAR,enigmaModel:c,layoutService:q,dockService:O,trendLineModel:j,itemWidths:NT,viewState:r,rtl:"rtl"===T,options:{axisKey:OT.COMPONENT.BAR_AXIS,renderer:e.renderer("svg")()}}));const _=function({layoutService:e,discreteModel:t}){const{isContinuous:n,canBeContinuous:r,isGroupedByDimension:o}=e.meta,i=e.getLayout(),a="K"===i.qHyperCube.qMode,s=ke.dimensionless(i),l=ma.getMeasureRefLines(i),c=ma.getDimensionRefLines(i,s),u=ma.getMeasureRefLineLabels(i),d=ma.getDimensionRefLineLabels(i,s);let p={},f={};const m=t=>{if(r){const n=e.getLayoutValue("qHyperCube.qDimensionInfo.0"),{qMin:r,qMax:o}=n;return ma.isOutOfRange({value:t,qMin:r,qMax:o})}return!1},h=t=>{if(!f[t])return!1;if(!n&&o){const n={valueInfo:f[t]},r="S"===e.getHyperCubeValue("qMode")?"qDataPages.0":"qStackedDataPages.0",o=e.getHyperCubeValue(r);return ma.isOutOfDataPages({label:n,dataPages:o})}return!0},g=()=>!(!c||!c.length)&&!c.every((t=>{const n=ma.getInputValue({refLineLayout:t,layoutService:e});return m(n)||h(n)})),y={isKMode:a,canBeContinuous:r,measureRefLines:l,dimensionRefLines:c,measureRefLineLabels:u,dimensionRefLineLabels:d,dimensionRefLineInfo:f,dimensionValuesInfo:p,query:{getRefLines:e=>ma.getRefLines(i,e),getRefLineLabels:e=>ma.getRefLineLabels(i,e)},update:()=>{f=y.dimensionRefLineInfo,g()&&(p=ma.getDimensionValuesInfo({layout:i,canBeContinuous:r,discreteModel:t,layoutService:e}),y.dimensionValuesInfo=p,c.forEach((t=>{const n=ma.getInputValue({refLineLayout:t,layoutService:e});p[n]&&(f[n]?(f[n].innerValues=p[n].innerValues,f[n].minOrder=Math.min(f[n].minOrder,p[n].minOrder),f[n].maxOrder=Math.max(f[n].maxOrder,p[n].maxOrder),f[n].isMinOrderOk=f[n].isMinOrderOk||p[n].isMinOrderOk,f[n].isMaxOrderOk=f[n].isMaxOrderOk||p[n].isMaxOrderOk):f[n]={id:p[n].id,qText:p[n].qText,innerValues:p[n].innerValues,minOrder:p[n].minOrder,maxOrder:p[n].maxOrder,isMinOrderOk:p[n].isMinOrderOk,isMaxOrderOk:p[n].isMaxOrderOk},f[n].numInnerValues=(f[n].maxOrder||0)-(f[n].minOrder||0)+1)})))}};return y.update(),y}({layoutService:q,discreteModel:B}),H=function(e){const t={layout:e.getLayout(),keys:{SCALE:{MAIN:{MINOR:OT.SCALE.MAIN.MINOR,MAJOR:OT.SCALE.MAIN.MAJOR}},COMPONENT:{BAR:OT.COMPONENT.BAR,BAR_AXIS:OT.COMPONENT.BAR_AXIS,Y_AXIS:"y-axis",MEASURE_TITLE:"measure-title",DIMENSION_TITLE:"dimension-title"},COLLECTION:{MAIN:OT.COLLECTION.MAIN}}};return t}(q),$=y({picassoInstance:e,plugins:d||[],pluginArgs:H});k.setContext({discrete:B,layoutService:q}),b({discrete:B,continuous:Qh,legendLayoutService:E,layoutService:q,viewModel:N,dockService:O,themeService:A,styleService:z,continuousDataModel:R,reducedDataModel:I,colorService:P,trendLineModel:j,refLineModel:_,pluginService:$,customTooltipModel:F,selectionService:M,logicalSize:L,disclaimerService:D})}),[M,f,n,a]),v}({picasso:i,chart:u,environment:t,viewState:n,viewCache:r}),p=function({env:e,services:t}){var n;const r=_(),o=B(),i=Y(),a=function({enable:e=!0}={}){const t=B(),n=()=>Date.now().toString()+Math.random(),[r,o]=O(n()),i={properties:void 0};return R((()=>{if(!t||!t.getEffectiveProperties||!e)return()=>{};const r=()=>{t.getEffectiveProperties().then((e=>{const t=de(!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=de(!0,{},e),l=de(!0,{},t);return a.exclude=!uL(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=!uL(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}({enable:!1===(null==t||null===(n=t.layoutService)||void 0===n||null===(n=n.meta)||void 0===n?void 0:n.isSnapshot)}),[s,l]=U((async()=>{if(!e||!t)return Promise.resolve();const{layoutService:n}=t,{isSnapshot:a,isStacked:s,isContinuous:l}=n.meta,c=[];return a||c.push(o.getEffectiveProperties()),Promise.all(c).then((async e=>{const t=e[0]||void 0;if(null!=t&&t.qHyperCubeDef){const e=n.getLayout(),a=de(!0,{},t);if(dL({properties:t,layout:e,isStacked:s,isContinuous:l,model:o,layoutService:n}))return i.pending(),Ga(e)?o.setProperties(t).then((()=>{r.clearUndoBuffer()})):void await Ka(o,a,t);i.restore()}return{properties:t}}))}),[e,t,a]);if(l&&!l.isHandled)throw l;return s}({env:e,services:d});!function({picasso:e,chart:t,services:n,environment:r,viewState:o,viewCache:i,bootstrapped:s}){const{width:l,height:c}=W(),u=B(),d=$(),p=P(),[f,m]=O(),[h,g]=O(),[y,v]=O(),[b,x]=O(),S=_();function M(s={}){const{selectionService:l,refLineModel:c,discrete:m,reducedDataModel:h,continuousDataModel:g,trendLineModel:y,pluginService:v,colorService:b,viewModel:x,dockService:M,themeService:C,customTooltipModel:w,layoutService:k,logicalSize:T,styleService:q,disclaimerService:E}=n,L=l.custom.getActions(),N=e.data("q")(f.prepPicassoDataSet()),O={picasso:e,ds:N,rtl:"rtl"===(null==p?void 0:p.direction),model:u,app:S,chart:t,actions:L,localeInfo:r.localeInfo,logicalSize:T,flags:r.flags,translator:r.translator,selections:d,isLocked:l.getIsSelectionLocked,viewCache:i,viewState:o,layoutService:k,dockService:M,viewModel:x,colorService:b,selectionService:l,themeService:C,trendLineModel:y,discrete:m,continuousDataModel:g,reducedDataModel:h.model(),customTooltipModel:w,debouncer:a,refLineModel:c,pluginService:v,styleService:q,disclaimerService:E,...s};return aL(k.getLayout(),O,r)}function C(){if(!t.layoutComponents)return Promise.resolve();const{discrete:e,layoutService:r,viewModel:o}=n;i.set("isPreRender",!0);const a=M(h);f.extractDataPages(),t.layoutComponents({settings:a,data:y}),i.set("isPreRender",!1),f.insertDataPages(),o.animations.hasSlicedHats=a.components.filter((e=>"box-sliced-hat"===e.type)).length>0;const s=[];return 1!==a.components.length&&r.meta.isDiscrete&&s.push(e.command.initialize()),Promise.all(s)}const[[w,k]=[]]=U((()=>{var a;if(!(e&&t&&n&&r&&o&&i&&s))return Promise.resolve();const{layoutService:l,selectionService:c,refLineModel:u,discrete:d,continuous:p,reducedDataModel:f,continuousDataModel:m,trendLineModel:h,legendLayoutService:g,colorService:y,pluginService:v,viewModel:b,customTooltipModel:S,disclaimerService:M}=n;if(null==c||null===(a=c.custom)||void 0===a||!a.getActions())return Promise.resolve();const{properties:C}=s,w=null==C?void 0:C.qHyperCubeDef.qDimensions.some((e=>{var t;return null===(t=e.qCalcCondition)||void 0===t||null===(t=t.qCond)||void 0===t?void 0:t.qv}));w&&(S.useCustomTooltip=!1);const k=()=>{x(Date.now()),b.animations.isPartialUpdating=!0},T=()=>{g&&g.setDataPages([d.query.getCurrentDataPage()]),u&&u.update(),k()};o.onChanged("scrollOffset",T),o.onChanged("legendScrollOffset",k),o.intercept("zoom",p.event.onZoomIntercept({viewCache:i})),o.onChanged("zoom",p.event.onZoomChange({layoutService:l,continuousDataModel:m},k)),c.setLayout(l.getLayout());const q=[];l.meta.isContinuous&&(m.update(l.getLayout()),q.push(m.initialFetch())),h.command.update(),q.push(f.fetch().then((({reducedCube:e})=>{f.update(e)}))),M.initialize(),q.push(Promise.resolve({properties:s.properties}));const E=()=>[v.initialize(),y.initialize(),lq({reducedDataModel:f,layoutService:l,continuousDataModel:m,trendLineModel:h})];return Promise.all(q).then((e=>Promise.all(E()).then((t=>[e,t.pop()]))))}),[s]);R((()=>{var e;if(null==n||null===(e=n.colorService)||void 0===e||!e.getMain()||!k)return;const{layoutService:t,selectionService:o,reducedDataModel:a,continuousDataModel:s,trendLineModel:l,legendLayoutService:c,colorService:u,viewModel:d}=n;i.set("minorMinMax",k);const p=()=>!t.meta.isContinuous&&(a.model().mode.isReduced||t.meta.isStacked)&&c,f=t.getHyperCube(),h=t.meta.isContinuous?s.getInitialCube():a.model().cube,{field:y}=u.getMain().getSettings(),v=p(),b=v?c.getHyperCube():void 0;o.setBrushAliases({colorField:y,useLegendCube:v,legendAlias:`legendCube/${y}`});const x=function({mainCube:e,miniCube:t,legendCube:n,localeInfo:r,layoutService:o,viewModel:i,trendLineModel:a}){const s=o.refs.dataPages.split(".").pop();let l=[],c=[];const u=o.meta.isContinuous?[{key:i.fields.majorNumeric,from:o.meta.isStackedByDimension?i.fields.majorStack:i.fields.major,override:{value:e=>e.qNum}}]:void 0;return{prepPicassoDataSet:()=>({key:"qHyperCube",data:e,config:{localeInfo:r,virtualFields:u}}),prepPicassoData(o){const i=[{type:"q",key:"qHyperCube",data:e,config:{localeInfo:r,virtualFields:u}},{type:"q",key:"miniCube",data:t,config:{localeInfo:r,virtualFields:u}},...o];return n&&i.push({type:"q",key:"legendCube",data:n,config:{localeInfo:r,virtualFields:u}}),a.query.hasTrendLines()&&i.push({key:"trend",data:a.query.getData()}),i},extractDataPages(){l=e[s],c=t.qDataPages,e[s]=[],t.qDataPages=[]},insertDataPages(){e[s]=l,t.qDataPages=c}}}({mainCube:f,miniCube:h,legendCube:b,localeInfo:r.localeInfo,layoutService:t,viewModel:d,trendLineModel:l}),S=w[w.length-1];g({localeInfo:r.localeInfo,...S}),m(x)}),[k]),R((()=>{if(!n||!h||!f)return;const e=n.colorService.getMain();if(!e)return;f.prepPicassoDataSet();const t=f.prepPicassoData(e.getData());v(t)}),[h]),R((()=>{var e;null!=n&&null!==(e=n.colorService)&&void 0!==e&&e.getMain()&&t.update&&f&&y&&C().then((()=>{const{layoutService:e,discrete:r,legendLayoutService:o}=n;if(o){1===e.getLayoutValue("scrollStartPos")&&o.setDataPages([r.query.getCurrentDataPage()])}t.update(),ja.cacheProperties({viewCache:i,layout:e.getLayout()})}))}),[y]),R((()=>{if(!(l&&c&&f&&null!=t&&t.update&&null!=n&&n.colorService.getMain()))return;const{viewModel:e}=n;e.animations.isSizeChanging=!0;const{dockService:o,themeService:i}=n;o.update({width:l,height:c}),i.setTheme(r.theme),C().then((()=>{t.update&&t.update()}))}),[l,c]),R((()=>{if(null==t||!t.update)return;const{viewModel:e}=n;t.update({partialData:!0,excludeFromUpdate:["mini-marker","dim-title","measure-title","ref-line","grid-line"]}),e.animations.isPartialUpdating=!1}),[b])}({picasso:i,chart:u,services:d,environment:t,viewState:n,viewCache:r,bootstrapped:p}),sL({environment:t,services:d,chart:u,viewState:n,bootstrapped:p})}}}));const J={click:"Tap",Click:"Tap",tap:"Tap",pan:"Pan",swipe:"Swipe",rotate:"Rotate",press:"Press",pinch:"Pinch"};function Z(e){return J[e]||e}function Q(e){return function(t,n,r){let o,i,a,s,l=[],c=!0;function u(){"function"==typeof o.enable&&(o.enable=o.enable.bind(i)()),o.enable&&(o.gestures.forEach((t=>{t.options=t.options||{},void 0===t.options.enable&&(t.options.enable=!0),"function"==typeof t.options.enable&&(t.options.enable=t.options.enable.bind(i));const n=Z(t.type);e&&e[n]&&(t.options.event=t.options.event||t.type.toLowerCase(),a=a||new e.Manager(r),a.add(new e[n](t.options)),Object.keys(t.events).forEach((e=>{t.events[e]=t.events[e].bind(i),a.on(e,t.events[e])})),l.push(t))})),o.gestures.forEach((t=>{const n=Z(t.type);e&&e[n]&&(t.recognizeWith&&a.get(t.options.event).recognizeWith(t.recognizeWith.split(" ").filter((e=>""!==e))),t.requireFailure&&a.get(t.options.event).requireFailure(t.requireFailure.split(" ").filter((e=>""!==e))))})))}function d(){l.forEach((e=>{Object.keys(e.events).forEach((t=>{a.off(t,e.events[t])})),a.remove(e.options.event)})),l=[]}return{get key(){return s},set(e){!function(e){s=e.key,o=e,i={chart:t,mediator:n,settings:o},o.gestures=o.gestures||[],void 0===o.enable&&(o.enable=!0)}(e),d(),c&&u()},off(){c=!1,d()},on(){c=!0,0===l.length&&u()},destroy(){d(),a&&a.destroy(),a=null,i=null,o=null}}}}function ee(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function te(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var ne=Object.prototype.hasOwnProperty,re=Object.prototype.toString,oe=Object.defineProperty,ie=Object.getOwnPropertyDescriptor,ae=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===re.call(e)},se=function(e){if(!e||"[object Object]"!==re.call(e))return!1;var t,n=ne.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&ne.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||ne.call(e,t)},le=function(e,t){oe&&"__proto__"===t.name?oe(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},ce=function(e,t){if("__proto__"===t){if(!ne.call(e,t))return;if(ie)return ie(e,t).value}return e[t]},ue=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=ce(s,n),s!==(o=ce(t,n))&&(u&&o&&(se(o)||(i=ae(o)))?(i?(i=!1,a=r&&ae(r)?r:[]):a=r&&se(r)?r:{},le(s,{name:n,newValue:e(u,a,o)})):void 0!==o&&le(s,{name:n,newValue:o}));return s},de=ee(ue);const pe=[["FULL",{width:550,height:450}],["MEDIUM",{width:400,height:220}],["SMALL",{width:300,height:150}],["XSMALL",{width:150,height:75}],["SPARK",{width:0,height:0}]],fe={};pe.forEach((([e,{width:t,height:n}])=>{fe[e]={width:t,height:n}}));const me={getLayoutModes:()=>fe,getLayoutMode(e,t){let n;for(n=0;n<pe.length;++n)if(e>=pe[n][1].width&&t>=pe[n][1].height)return pe[n][0];return"SPARK"}};function he(e,t){return{layoutModes:me.getLayoutModes(),center:void 0!==t.minCenterRatio?{minWidthRatio:t.minCenterRatio,minHeightRatio:t.minCenterRatio}:void 0,logicalSize:t.logicalSize?{align:.5,preserveAspectRatio:!0,...t.logicalSize}:void 0}}const ge=["$date","$timestamp","$time"],ye=["D","TS","T"],ve={hasTimeTag:e=>!!(e&&e.qTags&&e.qTags.some((e=>ge.some((t=>t===e))))),hasUnknownFormat:e=>!(!e||!e.qNumFormat||"U"!==e.qNumFormat.qType),hasTimeFormat:e=>!!(e&&e.qNumFormat&&ye.some((t=>t===e.qNumFormat.qType))),isTimeDimension:(e,t)=>!!(e&&t&&(ve.hasTimeTag(t)&&ve.hasUnknownFormat(t)||ve.hasTimeFormat(t))),isTime:(e,t)=>!!(t&&t.qHyperCube.qDimensionInfo&&t.qHyperCube.qDimensionInfo.length)&&(e&&ve.isTimeDimension(e,t.qHyperCube.qDimensionInfo.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)}))[0])),canBeContinuousDimension(e){if(!e)return!1;const t=e.qTags||[];return!(!e.qContinuousAxes||!t.some((e=>"$numeric"===e)))},canBeContinuous(e){var t,n;const r=null==e||null===(t=e.qHyperCube)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t?void 0:t.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)}));return!((null!==(n=null==r?void 0:r.length)&&void 0!==n?n:0)<1)&&ve.canBeContinuousDimension(r[0])},maxNumberOfLines:12},be=/^[A-Z][A-z0-9_]*$/i,xe={getChar(e){let t=e,n=-1;return t>9?(n=65+t-10,n>90&&(n+=6)):t=`${t}`.charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?this.getChar(t+1):String.fromCharCode(n)},base62(e){const t=this.getChar(e%62),n=Math.floor(e/62);return n>0?this.base62(n)+t:t},id(){return this.base62(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}},Se={setValue:(e,t,n)=>{if(!t)return!1;const r=t.split("."),o=r[r.length-1];let i,a=e;for(i=0;i<r.length-1;++i)void 0===a[r[i]]&&(a[r[i]]=Number.isNaN(+r[i+1])?{}:[]),a=a[r[i]];if(void 0!==n){const e=a[o];return a[o]=n,{updated:n,previous:e}}return delete a[o],!1},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(void 0===i[r[o]])return n;i=i[r[o]]}return i},moveArrayElement:(e,t,n)=>{if(n>=e.length){let t=n-e.length;for(;1+t--;)e.push(void 0)}e.splice(n,0,e.splice(t,1)[0])},escapeField:e=>{let t;return t=!e||"]"===e||be.test(e)?e:`[${e.replace(/\]/g,"]]")}]`,t},deleteUndefinedProperties:e=>{Object.keys(e).forEach((t=>{void 0===e[t]&&delete e[t]}))},generateId:()=>xe.id(),shouldUseFormat:e=>!e.isCustomFormatted&&(e.qIsAutoFormat||"U"===e.qNumFormat.qType)},Me=e=>Se.getValue(e,"qHyperCube.qDimensionInfo",[]),Ce=e=>Se.getValue(e,"qHyperCube.qMeasureInfo",[]),we=e=>Se.getValue(e,"barGrouping.grouping"),ke={continuous:(e,t=!1)=>!!ve.canBeContinuous(e)&&(Se.getValue(e,"dimensionAxis.continuousAuto")?"function"==typeof t?t():t:!!e.preferContinuousAxis),dimensionless:e=>!Me(e).length,grouped(e){return!this.dimensionless(e)&&"grouped"===we(e)&&(Me(e).length>1||Ce(e).length>1)&&!this.continuous(e)},groupedByDimension(e){return this.grouped(e)&&Me(e).length>1&&1===Ce(e).length},groupedByMeasure(e){return this.grouped(e)&&1===Me(e).length&&Ce(e).length>1},stacked(e){return(!this.dimensionless(e)&&"grouped"!==we(e)&&"butterfly"!==we(e)||this.continuous(e))&&(Me(e).length>1||Ce(e).length>1)},stackedByDimension(e){return this.stacked(e)&&Me(e).length>1&&1===Ce(e).length},stackedByMeasure(e){return this.stacked(e)&&1===Me(e).length&&Ce(e).length>1},simple:e=>0===Me(e).length||1===Me(e).length&&1===Ce(e).length,snapshot:e=>!!Se.getValue(e,"snapshotData")};function Te(e,t){const n=e.component(t);return n&&n._DO_NOT_USE_getInfo&&n._DO_NOT_USE_getInfo().offset}const qe=e=>{throw e.isHandled=!0,e};const Ee={getDockValue:e=>"near"===e||"left"===e||"top"===e?0:1,getOppositeDock(e){switch(e){case"left":return"right";case"right":return"left";case"top":return"bottom";case"bottom":return"top";case"near":default:return"far";case"far":return"near"}},getHorizontalDock:e=>"near"===e||"left"===e?"left":"right",getVerticalDock:e=>"near"===e||"bottom"===e?"bottom":"top",getDock:(e,t,n)=>"vertical"===e||"y"===e?Ee.getVerticalDock(t):n?Ee.getOppositeDock(Ee.getHorizontalDock(t)):Ee.getHorizontalDock(t),getInvertedOrientation:e=>"vertical"===e?"horizontal":"vertical",getMinorScaleAxis:e=>"vertical"===e?"y":"x",getMajorScaleAxis:e=>"vertical"===e?"x":"y",getAlignment:(e,t)=>"vertical"===e?"near"===t||"bottom"===t?1:0:"near"===t||"left"===t?0:1,getMeasureScaleInvert:(e,t)=>"vertical"===e||t,getDimensionScaleInvert:(e,t)=>"horizontal"===e&&t,getSize:(e,{width:t,height:n})=>"vertical"===e?t:n};var Le=(e,t)=>{if("function"==typeof t.defaultValue)return t.defaultValue();if(void 0!==t.defaultValue)return t.defaultValue;if(Array.isArray(t.options))return t.options[0].value;switch(e){case"array":return[];case"string":return"";case"integer":case"number":return 0;case"boolean":return!1;default:return null}};const Ne=166/26,Oe=12/11,De={stringWidthOverMWidth:e=>(12*Math.min(e,3)+Math.max(e-3,0)*Ne)/11,getCharacterRatios(e){if(!e)return{latin:0,cjk:0};let t=e.match(/[\u4E00-\u9FFF]/g),n=e.match(/[\u3040-\u309F]/g),r=e.match(/[\u30A0-\u30FF]/g);t=t?t.length:0,n=n?n.length:0,r=r?r.length:0;const o=t+n+r;return{latin:e.length-o,cjk:o}},getTotalCharacterRatios(e,t,n="qText"){if(!e)return{latinRatio:1,cjkRatio:0};const r={latin:0,cjk:0};let o;void 0===t?e.forEach((e=>{o=De.getCharacterRatios(e[n]),r.latin+=o.latin,r.cjk+=o.cjk})):e.forEach((e=>{o=De.getCharacterRatios(e[t][n]),r.latin+=o.latin,r.cjk+=o.cjk}));const i=Math.max(1,r.latin+r.cjk);return r.latinRatio=r.latin/i,r.cjkRatio=r.cjk/i,r},getAdjustedMaxGlyphCount(e,t,n,r="qText"){const o=De.getTotalCharacterRatios(t,n,r),i=o.latinRatio*e,a=o.cjkRatio*e;return Math.ceil(De.stringWidthOverMWidth(i)+a*Oe)}},Ae="#la-vie-tooltip";function Re(){if(!document.querySelector(Ae)){const e=document.createElement("div");e.id="la-vie-tooltip",e.style.overflow="hidden",e.style.position="fixed",e.style.pointerEvents="none",e.style.left="0px",e.style.top="0px",e.style.width="100%",e.style.height="100%",e.style.zIndex=1020,document.body.appendChild(e)}}function Ie({key:e="tooltip",rtl:t}){return{show:!0,key:e,type:"tooltip",layout:{displayOrder:3},beforeMount(){Re()},beforeUpdate(){Re()},destroyed(){!function(){const e=document.querySelector(Ae);e&&e.parentElement&&e.childElementCount<1&&e.parentElement.removeChild(e)}()},settings:{appendTo:()=>document.querySelector(Ae),content:({h:e,data:t,style:n})=>t[0].map((t=>e("tr",{},function(e,{h:t,style:n}){return e.map((e=>{const r={style:{...n.cell||{},...e.style||{}},class:e.class};return e.colspan&&(r.colspan=e.colspan),t("td",r,e.content)}))}(t,{h:e,style:n})))),direction:t?"rtl":"ltr"},style:{arrow:{color:"#404040"},content:{display:"table","border-spacing":"4px",background:"rgba(64, 64, 64, 0.9)",opacity:"1",fontSize:"13px",fontFamily:'"Source Sans Pro", "Arial", "sans-serif"',"empty-cells":"show"},cell:{"max-width":"180px","word-break":"break-word","word-wrap":"break-word","overflow-wrap":"break-word",hyphens:"auto"}}}}const Pe=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),ze=new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞‏יִײַ-ﬨשׁ-ﭏ]"),je=new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]"),Fe={lrm:String.fromCharCode(8206),rlm:String.fromCharCode(8207),isLtrChar:e=>Pe.test(e),isRtlChar:e=>ze.test(e)||je.test(e),detectTextDirection(e){const t=e?e.length:0;let n,r;for(n=0;n<t;n++){if(r=e[n],Fe.isLtrChar(r))return"ltr";if(Fe.isRtlChar(r))return"rtl"}return"ltr"}},Be={getColorSymbol:(e,t)=>e.h("div",{style:{display:"inline-block",width:"10px",height:"10px","background-color":t.color.fill,margin:"0 8px"}}),getNodeFillColor:e=>e.attrs&&void 0!==e.attrs.fill?e.attrs.fill:e.children&&e.children[0]&&e.children[0].attrs&&void 0!==e.children[0].attrs.fill?e.children[0].attrs.fill:void 0,getColor(e,t,n){const r=t.data,o=e.resources.formatter,i=e.resources.dataset,a={};if(n.coloring.label&&(a.label=`${n.coloring.label}`),"color"!==n.coloring.type&&r.fillTooltip){const e=o("fill"),t="measure"===n.coloring.fieldType;if(a.value=t&&e?e(r.fillTooltip.value):r.fillTooltip.label?r.fillTooltip.label:r.fillTooltip.value,!n.coloring.label){const e=i(r.fillTooltip.source.key).field(r.fillTooltip.source.field).title();a.label=`${e}`}}return a.fill=void 0===r._fillColor?Be.getNodeFillColor(t):r._fillColor,a},getMeasure:(e,t)=>({label:`${e(t.source.key).field(t.source.field).title()}`,value:""===t.label||"NaN"===t.label?"-":t.label,field:t.source.field}),hideColorRow:(e,t)=>void 0===e.color.value||e.measures.some((e=>e.field===t.coloring.field)),getTitleRow(e,t){const n=Fe.detectTextDirection(e.title);return[{content:e.title,style:{"font-weight":"bold","text-align":t?"right":"left",direction:n},colspan:2},{}]},getDescriptionRow(e,t){const n=Fe.detectTextDirection(e.value);return[{content:e.value,style:{"text-align":t?"right":"left",direction:n},colspan:2},{}]},getNMoreRow(e,t,n){const r=t?t.get("Object.ChartTooltip.NMore",e):`+${e} more`;return[{content:r,style:{"font-weight":"bold","text-align":n?"right":"left",direction:Fe.detectTextDirection(r)},colspan:2},{}]},getSeparatorRow:()=>[{content:"",style:{"background-image":"linear-gradient(transparent 8px, rgba(255, 255, 255, 0.4) 8px, rgba(255, 255, 255, 0.4) 9.2px, transparent 9.2px)",height:"17px"},colspan:2},{}],getColorRow(e,t,n){const r=Fe.detectTextDirection(t.color.label),o=n?[":",t.color.label]:[t.color.label,":"],i=Fe.detectTextDirection(t.color.value);return[{content:o,style:{"text-align":n?"right":"left",direction:r}},{content:n?[t.color.value,Be.getColorSymbol(e,t)]:[Be.getColorSymbol(e,t),t.color.value],style:{"text-align":n?"left":"right",direction:i,"vertical-align":"middle"}}]},getMeasureRow(e,t,n,r,o=!1){const i=Fe.detectTextDirection(e.label),a=r?[":",e.label]:[e.label,":"],s=Fe.detectTextDirection(e.value);let l;return l=o?r?[e.value,Be.getColorSymbol(t,n)]:[Be.getColorSymbol(t,n),e.value]:[e.value],[{content:a,style:{"text-align":r?"right":"left",direction:i}},{content:l,style:{"text-align":r?"left":"right",direction:s,"vertical-align":"middle"}}]}};function _e(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function He(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function $e(){}var Ve=.7,We=1/Ve,Ue="\\s*([+-]?\\d+)\\s*",Ke="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ge="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ye=/^#([0-9a-f]{3,8})$/,Xe=new RegExp(`^rgb\\(${Ue},${Ue},${Ue}\\)$`),Je=new RegExp(`^rgb\\(${Ge},${Ge},${Ge}\\)$`),Ze=new RegExp(`^rgba\\(${Ue},${Ue},${Ue},${Ke}\\)$`),Qe=new RegExp(`^rgba\\(${Ge},${Ge},${Ge},${Ke}\\)$`),et=new RegExp(`^hsl\\(${Ke},${Ge},${Ge}\\)$`),tt=new RegExp(`^hsla\\(${Ke},${Ge},${Ge},${Ke}\\)$`),nt={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function rt(){return this.rgb().formatHex()}function ot(){return this.rgb().formatRgb()}function it(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Ye.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?at(t):3===n?new ct(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?st(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?st(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Xe.exec(e))?new ct(t[1],t[2],t[3],1):(t=Je.exec(e))?new ct(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Ze.exec(e))?st(t[1],t[2],t[3],t[4]):(t=Qe.exec(e))?st(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=et.exec(e))?ht(t[1],t[2]/100,t[3]/100,1):(t=tt.exec(e))?ht(t[1],t[2]/100,t[3]/100,t[4]):nt.hasOwnProperty(e)?at(nt[e]):"transparent"===e?new ct(NaN,NaN,NaN,0):null}function at(e){return new ct(e>>16&255,e>>8&255,255&e,1)}function st(e,t,n,r){return r<=0&&(e=t=n=NaN),new ct(e,t,n,r)}function lt(e){return e instanceof $e||(e=it(e)),e?new ct((e=e.rgb()).r,e.g,e.b,e.opacity):new ct}function ct(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function ut(){return`#${mt(this.r)}${mt(this.g)}${mt(this.b)}`}function dt(){const e=pt(this.opacity);return`${1===e?"rgb(":"rgba("}${ft(this.r)}, ${ft(this.g)}, ${ft(this.b)}${1===e?")":`, ${e})`}`}function pt(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ft(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function mt(e){return((e=ft(e))<16?"0":"")+e.toString(16)}function ht(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new yt(e,t,n,r)}function gt(e){if(e instanceof yt)return new yt(e.h,e.s,e.l,e.opacity);if(e instanceof $e||(e=it(e)),!e)return new yt;if(e instanceof yt)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new yt(a,s,l,e.opacity)}function yt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function vt(e){return(e=(e||0)%360)<0?e+360:e}function bt(e){return Math.max(0,Math.min(1,e||0))}function xt(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}_e($e,it,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:rt,formatHex:rt,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return gt(this).formatHsl()},formatRgb:ot,toString:ot}),_e(ct,(function(e,t,n,r){return 1===arguments.length?lt(e):new ct(e,t,n,null==r?1:r)}),He($e,{brighter(e){return e=null==e?We:Math.pow(We,e),new ct(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Ve:Math.pow(Ve,e),new ct(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ct(ft(this.r),ft(this.g),ft(this.b),pt(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ut,formatHex:ut,formatHex8:function(){return`#${mt(this.r)}${mt(this.g)}${mt(this.b)}${mt(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:dt,toString:dt})),_e(yt,(function(e,t,n,r){return 1===arguments.length?gt(e):new yt(e,t,n,null==r?1:r)}),He($e,{brighter(e){return e=null==e?We:Math.pow(We,e),new yt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Ve:Math.pow(Ve,e),new yt(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new ct(xt(e>=240?e-240:e+120,o,r),xt(e,o,r),xt(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new yt(vt(this.h),bt(this.s),bt(this.l),pt(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=pt(this.opacity);return`${1===e?"hsl(":"hsla("}${vt(this.h)}, ${100*bt(this.s)}%, ${100*bt(this.l)}%${1===e?")":`, ${e})`}`}}));const St=Math.PI/180,Mt=180/Math.PI,Ct=.96422,wt=.82521,kt=4/29,Tt=6/29,qt=3*Tt*Tt,Et=Tt*Tt*Tt;function Lt(e){if(e instanceof Nt)return new Nt(e.l,e.a,e.b,e.opacity);if(e instanceof Pt)return zt(e);e instanceof ct||(e=lt(e));var t,n,r=Rt(e.r),o=Rt(e.g),i=Rt(e.b),a=Ot((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=Ot((.4360747*r+.3850649*o+.1430804*i)/Ct),n=Ot((.0139322*r+.0971045*o+.7141733*i)/wt)),new Nt(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Nt(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Ot(e){return e>Et?Math.pow(e,1/3):e/qt+kt}function Dt(e){return e>Tt?e*e*e:qt*(e-kt)}function At(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Rt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function It(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Pt)return new Pt(e.h,e.c,e.l,e.opacity);if(e instanceof Nt||(e=Lt(e)),0===e.a&&0===e.b)return new Pt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Mt;return new Pt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Pt(e,t,n,null==r?1:r)}function Pt(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function zt(e){if(isNaN(e.h))return new Nt(e.l,0,0,e.opacity);var t=e.h*St;return new Nt(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}_e(Nt,(function(e,t,n,r){return 1===arguments.length?Lt(e):new Nt(e,t,n,null==r?1:r)}),He($e,{brighter(e){return new Nt(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Nt(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new ct(At(3.1338561*(t=Ct*Dt(t))-1.6168667*(e=1*Dt(e))-.4906146*(n=wt*Dt(n))),At(-.9787684*t+1.9161415*e+.033454*n),At(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),_e(Pt,It,He($e,{brighter(e){return new Pt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Pt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return zt(this).rgb()}}));var jt={isDark:function(e){return It(e).l<70}};function Ft(e){const t=e.qDef;!0===t.autoSort&&t.qSortCriterias.forEach((e=>{e.qSortByNumeric=1,e.qSortByAscii=1}))}function Bt(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function _t(e){return 1===e.length&&(e=function(e){return function(t,n){return Bt(e(t),n)}}(e)),{left:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r<o;){var i=r+o>>>1;e(t[i],n)<0?r=i+1:o=i}return r},right:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r<o;){var i=r+o>>>1;e(t[i],n)>0?o=i:r=i+1}return r}}}var Ht=_t(Bt).right,$t=Math.sqrt(50),Vt=Math.sqrt(10),Wt=Math.sqrt(2);function Ut(e,t,n){var r=(t-e)/Math.max(0,n),o=Math.floor(Math.log(r)/Math.LN10),i=r/Math.pow(10,o);return o>=0?(i>=$t?10:i>=Vt?5:i>=Wt?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=$t?10:i>=Vt?5:i>=Wt?2:1)}function Kt(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/o;return i>=$t?o*=10:i>=Vt?o*=5:i>=Wt&&(o*=2),t<e?-o:o}function Gt(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}var Yt="$";function Xt(){}function Jt(e,t){var n=new Xt;if(e instanceof Xt)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var r,o=-1,i=e.length;if(null==t)for(;++o<i;)n.set(o,e[o]);else for(;++o<i;)n.set(t(r=e[o],o,e),r)}else if(e)for(var a in e)n.set(a,e[a]);return n}function Zt(){}Xt.prototype=Jt.prototype={constructor:Xt,has:function(e){return Yt+e in this},get:function(e){return this[Yt+e]},set:function(e,t){return this[Yt+e]=t,this},remove:function(e){var t=Yt+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===Yt&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===Yt&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===Yt&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===Yt&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===Yt&&++e;return e},empty:function(){for(var e in this)if(e[0]===Yt)return!1;return!0},each:function(e){for(var t in this)t[0]===Yt&&e(this[t],t.slice(1),this)}};var Qt=Jt.prototype;Zt.prototype={constructor:Zt,has:Qt.has,add:function(e){return this[Yt+(e+="")]=e,this},remove:Qt.remove,clear:Qt.clear,values:Qt.keys,size:Qt.size,empty:Qt.empty,each:Qt.each};var en=Array.prototype,tn=en.map,nn=en.slice;function rn(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function on(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function an(){}var sn=.7,ln=1/sn,cn="\\s*([+-]?\\d+)\\s*",un="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",dn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",pn=/^#([0-9a-f]{3,8})$/,fn=new RegExp("^rgb\\("+[cn,cn,cn]+"\\)$"),mn=new RegExp("^rgb\\("+[dn,dn,dn]+"\\)$"),hn=new RegExp("^rgba\\("+[cn,cn,cn,un]+"\\)$"),gn=new RegExp("^rgba\\("+[dn,dn,dn,un]+"\\)$"),yn=new RegExp("^hsl\\("+[un,dn,dn]+"\\)$"),vn=new RegExp("^hsla\\("+[un,dn,dn,un]+"\\)$"),bn={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function xn(){return this.rgb().formatHex()}function Sn(){return this.rgb().formatRgb()}function Mn(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=pn.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Cn(t):3===n?new Tn(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?wn(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?wn(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=fn.exec(e))?new Tn(t[1],t[2],t[3],1):(t=mn.exec(e))?new Tn(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=hn.exec(e))?wn(t[1],t[2],t[3],t[4]):(t=gn.exec(e))?wn(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=yn.exec(e))?Nn(t[1],t[2]/100,t[3]/100,1):(t=vn.exec(e))?Nn(t[1],t[2]/100,t[3]/100,t[4]):bn.hasOwnProperty(e)?Cn(bn[e]):"transparent"===e?new Tn(NaN,NaN,NaN,0):null}function Cn(e){return new Tn(e>>16&255,e>>8&255,255&e,1)}function wn(e,t,n,r){return r<=0&&(e=t=n=NaN),new Tn(e,t,n,r)}function kn(e,t,n,r){return 1===arguments.length?((o=e)instanceof an||(o=Mn(o)),o?new Tn((o=o.rgb()).r,o.g,o.b,o.opacity):new Tn):new Tn(e,t,n,null==r?1:r);var o}function Tn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function qn(){return"#"+Ln(this.r)+Ln(this.g)+Ln(this.b)}function En(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function Ln(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Nn(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Dn(e,t,n,r)}function On(e){if(e instanceof Dn)return new Dn(e.h,e.s,e.l,e.opacity);if(e instanceof an||(e=Mn(e)),!e)return new Dn;if(e instanceof Dn)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new Dn(a,s,l,e.opacity)}function Dn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function An(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function Rn(e){return function(){return e}}function In(e){return 1==(e=+e)?Pn:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Rn(isNaN(t)?n:t)}}function Pn(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Rn(isNaN(e)?t:e)}rn(an,Mn,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:xn,formatHex:xn,formatHsl:function(){return On(this).formatHsl()},formatRgb:Sn,toString:Sn}),rn(Tn,kn,on(an,{brighter:function(e){return e=null==e?ln:Math.pow(ln,e),new Tn(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?sn:Math.pow(sn,e),new Tn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:qn,formatHex:qn,formatRgb:En,toString:En})),rn(Dn,(function(e,t,n,r){return 1===arguments.length?On(e):new Dn(e,t,n,null==r?1:r)}),on(an,{brighter:function(e){return e=null==e?ln:Math.pow(ln,e),new Dn(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?sn:Math.pow(sn,e),new Dn(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Tn(An(e>=240?e-240:e+120,o,r),An(e,o,r),An(e<120?e+240:e-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var zn=function e(t){var n=In(t);function r(e,t){var r=n((e=kn(e)).r,(t=kn(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=Pn(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function jn(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,o=t.slice();return function(i){for(n=0;n<r;++n)o[n]=e[n]*(1-i)+t[n]*i;return o}}function Fn(e,t){var n,r=t?t.length:0,o=e?Math.min(r,e.length):0,i=new Array(o),a=new Array(r);for(n=0;n<o;++n)i[n]=Un(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<o;++n)a[n]=i[n](e);return a}}function Bn(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function _n(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Hn(e,t){var n,r={},o={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=Un(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}var $n=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Vn=new RegExp($n.source,"g");function Wn(e,t){var n,r,o,i=$n.lastIndex=Vn.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(n=$n.exec(e))&&(r=Vn.exec(t));)(o=r.index)>i&&(o=t.slice(i,o),s[a]?s[a]+=o:s[++a]=o),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:_n(n,r)})),i=Vn.lastIndex;return i<t.length&&(o=t.slice(i),s[a]?s[a]+=o:s[++a]=o),s.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,r=0;r<t;++r)s[(n=l[r]).i]=n.x(e);return s.join("")})}function Un(e,t){var n,r=typeof t;return null==t||"boolean"===r?Rn(t):("number"===r?_n:"string"===r?(n=Mn(t))?(t=n,zn):Wn:t instanceof Mn?zn:t instanceof Date?Bn:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?jn:Array.isArray(t)?Fn:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?Hn:_n)(e,t)}function Kn(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Gn(e){return+e}var Yn=[0,1];function Xn(e){return e}function Jn(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function Zn(e){var t,n=e[0],r=e[e.length-1];return n>r&&(t=n,n=r,r=t),function(e){return Math.max(n,Math.min(r,e))}}function Qn(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=Jn(o,r),i=n(a,i)):(r=Jn(r,o),i=n(i,a)),function(e){return i(r(e))}}function er(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),i=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)o[a]=Jn(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(t){var n=Ht(e,t,1,r)-1;return i[n](o[n](t))}}function tr(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function nr(e,t){return function(){var e,t,n,r,o,i,a=Yn,s=Yn,l=Un,c=Xn;function u(){return r=Math.min(a.length,s.length)>2?er:Qn,o=i=null,d}function d(t){return isNaN(t=+t)?n:(o||(o=r(a.map(e),s,l)))(e(c(t)))}return d.invert=function(n){return c(t((i||(i=r(s,a.map(e),_n)))(n)))},d.domain=function(e){return arguments.length?(a=tn.call(e,Gn),c===Xn||(c=Zn(a)),u()):a.slice()},d.range=function(e){return arguments.length?(s=nn.call(e),u()):s.slice()},d.rangeRound=function(e){return s=nn.call(e),l=Kn,u()},d.clamp=function(e){return arguments.length?(c=e?Zn(a):Xn,d):c!==Xn},d.interpolate=function(e){return arguments.length?(l=e,u()):l},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,u()}}()(e,t)}function rr(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function or(e){return(e=rr(Math.abs(e)))?e[1]:NaN}var ir,ar=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function sr(e){if(!(t=ar.exec(e)))throw new Error("invalid format: "+e);var t;return new lr({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function lr(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function cr(e,t){var n=rr(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}sr.prototype=lr.prototype,lr.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var ur={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return cr(100*e,t)},r:cr,s:function(e,t){var n=rr(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(ir=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+rr(e,Math.max(0,t+i-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function dr(e){return e}var pr,fr,mr,hr=Array.prototype.map,gr=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function yr(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?dr:(t=hr.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,i=[],a=0,s=t[0],l=0;o>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),i.push(e.substring(o-=s,o+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return i.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",i=void 0===e.currency?"":e.currency[1]+"",a=e.decimal+"",s=void 0===e.numerals?dr:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(hr.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=sr(e)).fill,n=e.align,d=e.sign,p=e.symbol,f=e.zero,m=e.width,h=e.comma,g=e.precision,y=e.trim,v=e.type;"n"===v?(h=!0,v="g"):ur[v]||(void 0===g&&(g=12),y=!0,v="g"),(f||"0"===t&&"="===n)&&(f=!0,t="0",n="=");var b="$"===p?o:"#"===p&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",x="$"===p?i:/[%p]/.test(v)?l:"",S=ur[v],M=/[defgprs%]/.test(v);function C(e){var o,i,l,p=b,C=x;if("c"===v)C=S(e)+C,e="";else{var w=(e=+e)<0||1/e<0;if(e=isNaN(e)?u:S(Math.abs(e),g),y&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r<n;++r)switch(e[r]){case".":o=t=r;break;case"0":0===o&&(o=r),t=r;break;default:if(!+e[r])break e;o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),w&&0==+e&&"+"!==d&&(w=!1),p=(w?"("===d?d:c:"-"===d||"("===d?"":d)+p,C=("s"===v?gr[8+ir/3]:"")+C+(w&&"("===d?")":""),M)for(o=-1,i=e.length;++o<i;)if(48>(l=e.charCodeAt(o))||l>57){C=(46===l?a+e.slice(o+1):e.slice(o))+C,e=e.slice(0,o);break}}h&&!f&&(e=r(e,1/0));var k=p.length+e.length+C.length,T=k<m?new Array(m-k+1).join(t):"";switch(h&&f&&(e=r(T+e,T.length?m-C.length:1/0),T=""),n){case"<":e=p+e+C+T;break;case"=":e=p+T+e+C;break;case"^":e=T.slice(0,k=T.length>>1)+p+e+C+T.slice(k);break;default:e=T+p+e+C}return s(e)}return g=void 0===g?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),C.toString=function(){return e+""},C}return{format:d,formatPrefix:function(e,t){var n=d(((e=sr(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(or(t)/3))),o=Math.pow(10,-r),i=gr[8+r/3];return function(e){return n(o*e)+i}}}}function vr(e,t,n,r){var o,i=Kt(e,t,n);switch((r=sr(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(or(t)/3)))-or(Math.abs(e)))}(i,a))||(r.precision=o),mr(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,or(t)-or(e))+1}(i,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(e){return Math.max(0,-or(Math.abs(e)))}(i))||(r.precision=o-2*("%"===r.type))}return fr(r)}function br(e){var t=e.domain;return e.ticks=function(e){var n=t();return function(e,t,n){var r,o,i,a,s=-1;if(n=+n,(e=+e)==(t=+t)&&n>0)return[e];if((r=t<e)&&(o=e,e=t,t=o),0===(a=Ut(e,t,n))||!isFinite(a))return[];if(a>0)for(e=Math.ceil(e/a),t=Math.floor(t/a),i=new Array(o=Math.ceil(t-e+1));++s<o;)i[s]=(e+s)*a;else for(e=Math.floor(e*a),t=Math.ceil(t*a),i=new Array(o=Math.ceil(e-t+1));++s<o;)i[s]=(e-s)/a;return r&&i.reverse(),i}(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return vr(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o=t(),i=0,a=o.length-1,s=o[i],l=o[a];return l<s&&(r=s,s=l,l=r,r=i,i=a,a=r),(r=Ut(s,l,n))>0?r=Ut(s=Math.floor(s/r)*r,l=Math.ceil(l/r)*r,n):r<0&&(r=Ut(s=Math.ceil(s*r)/r,l=Math.floor(l*r)/r,n)),r>0?(o[i]=Math.floor(s/r)*r,o[a]=Math.ceil(l/r)*r,t(o)):r<0&&(o[i]=Math.ceil(s*r)/r,o[a]=Math.floor(l*r)/r,t(o)),e},e}function xr(){var e=nr(Xn,Xn);return e.copy=function(){return tr(e,xr())},Gt.apply(e,arguments),br(e)}pr=yr({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),fr=pr.format,mr=pr.formatPrefix;var Sr=new Date,Mr=new Date;function Cr(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=function(t){return e(t=new Date(+t)),t},o.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},o.round=function(e){var t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},o.range=function(n,r,i){var a,s=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return s;do{s.push(a=new Date(+n)),t(n,i),e(n)}while(a<n&&n<r);return s},o.filter=function(n){return Cr((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(o.count=function(t,r){return Sr.setTime(+t),Mr.setTime(+r),e(Sr),e(Mr),Math.floor(n(Sr,Mr))},o.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?function(t){return r(t)%e==0}:function(t){return o.count(0,t)%e==0}):o:null}),o}var wr=Cr((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));wr.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?Cr((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):wr:null},wr.range;var kr=6e4,Tr=36e5,qr=864e5,Er=6048e5,Lr=Cr((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+1e3*t)}),(function(e,t){return(t-e)/1e3}),(function(e){return e.getUTCSeconds()}));Lr.range;var Nr=Cr((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*kr)/qr}),(function(e){return e.getDate()-1}));function Or(e){return Cr((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*kr)/Er}))}Nr.range;var Dr=Or(0),Ar=Or(1),Rr=Or(2),Ir=Or(3),Pr=Or(4),zr=Or(5),jr=Or(6);Dr.range,Ar.range,Rr.range,Ir.range,Pr.range,zr.range,jr.range;var Fr=Cr((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));Fr.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Cr((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null},Fr.range;var Br=Cr((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*kr)}),(function(e,t){return(t-e)/kr}),(function(e){return e.getUTCMinutes()}));Br.range;var _r=Cr((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*Tr)}),(function(e,t){return(t-e)/Tr}),(function(e){return e.getUTCHours()}));_r.range;var Hr=Cr((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/qr}),(function(e){return e.getUTCDate()-1}));function $r(e){return Cr((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/Er}))}Hr.range;var Vr=$r(0),Wr=$r(1),Ur=$r(2),Kr=$r(3),Gr=$r(4),Yr=$r(5),Xr=$r(6);Vr.range,Wr.range,Ur.range,Kr.range,Gr.range,Yr.range,Xr.range;var Jr=Cr((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()}));Jr.range;var Zr=Cr((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));function Qr(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function eo(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function to(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}Zr.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Cr((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null},Zr.range;var no,ro,oo={"-":"",_:" ",0:"0"},io=/^\s*\d+/,ao=/^%/,so=/[\\^$*+?|[\]().{}]/g;function lo(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function co(e){return e.replace(so,"\\$&")}function uo(e){return new RegExp("^(?:"+e.map(co).join("|")+")","i")}function po(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function fo(e,t,n){var r=io.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function mo(e,t,n){var r=io.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function ho(e,t,n){var r=io.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function go(e,t,n){var r=io.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function yo(e,t,n){var r=io.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function vo(e,t,n){var r=io.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function bo(e,t,n){var r=io.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function xo(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function So(e,t,n){var r=io.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function Mo(e,t,n){var r=io.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Co(e,t,n){var r=io.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function wo(e,t,n){var r=io.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function ko(e,t,n){var r=io.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function To(e,t,n){var r=io.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function qo(e,t,n){var r=io.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Eo(e,t,n){var r=io.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Lo(e,t,n){var r=io.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function No(e,t,n){var r=ao.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Oo(e,t,n){var r=io.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Do(e,t,n){var r=io.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Ao(e,t){return lo(e.getDate(),t,2)}function Ro(e,t){return lo(e.getHours(),t,2)}function Io(e,t){return lo(e.getHours()%12||12,t,2)}function Po(e,t){return lo(1+Nr.count(Fr(e),e),t,3)}function zo(e,t){return lo(e.getMilliseconds(),t,3)}function jo(e,t){return zo(e,t)+"000"}function Fo(e,t){return lo(e.getMonth()+1,t,2)}function Bo(e,t){return lo(e.getMinutes(),t,2)}function _o(e,t){return lo(e.getSeconds(),t,2)}function Ho(e){var t=e.getDay();return 0===t?7:t}function $o(e,t){return lo(Dr.count(Fr(e)-1,e),t,2)}function Vo(e){var t=e.getDay();return t>=4||0===t?Pr(e):Pr.ceil(e)}function Wo(e,t){return e=Vo(e),lo(Pr.count(Fr(e),e)+(4===Fr(e).getDay()),t,2)}function Uo(e){return e.getDay()}function Ko(e,t){return lo(Ar.count(Fr(e)-1,e),t,2)}function Go(e,t){return lo(e.getFullYear()%100,t,2)}function Yo(e,t){return lo((e=Vo(e)).getFullYear()%100,t,2)}function Xo(e,t){return lo(e.getFullYear()%1e4,t,4)}function Jo(e,t){var n=e.getDay();return lo((e=n>=4||0===n?Pr(e):Pr.ceil(e)).getFullYear()%1e4,t,4)}function Zo(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+lo(t/60|0,"0",2)+lo(t%60,"0",2)}function Qo(e,t){return lo(e.getUTCDate(),t,2)}function ei(e,t){return lo(e.getUTCHours(),t,2)}function ti(e,t){return lo(e.getUTCHours()%12||12,t,2)}function ni(e,t){return lo(1+Hr.count(Zr(e),e),t,3)}function ri(e,t){return lo(e.getUTCMilliseconds(),t,3)}function oi(e,t){return ri(e,t)+"000"}function ii(e,t){return lo(e.getUTCMonth()+1,t,2)}function ai(e,t){return lo(e.getUTCMinutes(),t,2)}function si(e,t){return lo(e.getUTCSeconds(),t,2)}function li(e){var t=e.getUTCDay();return 0===t?7:t}function ci(e,t){return lo(Vr.count(Zr(e)-1,e),t,2)}function ui(e){var t=e.getUTCDay();return t>=4||0===t?Gr(e):Gr.ceil(e)}function di(e,t){return e=ui(e),lo(Gr.count(Zr(e),e)+(4===Zr(e).getUTCDay()),t,2)}function pi(e){return e.getUTCDay()}function fi(e,t){return lo(Wr.count(Zr(e)-1,e),t,2)}function mi(e,t){return lo(e.getUTCFullYear()%100,t,2)}function hi(e,t){return lo((e=ui(e)).getUTCFullYear()%100,t,2)}function gi(e,t){return lo(e.getUTCFullYear()%1e4,t,4)}function yi(e,t){var n=e.getUTCDay();return lo((e=n>=4||0===n?Gr(e):Gr.ceil(e)).getUTCFullYear()%1e4,t,4)}function vi(){return"+0000"}function bi(){return"%"}function xi(e){return+e}function Si(e){return Math.floor(+e/1e3)}!function(e){no=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=uo(o),u=po(o),d=uo(i),p=po(i),f=uo(a),m=po(a),h=uo(s),g=po(s),y=uo(l),v=po(l),b={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:Ao,e:Ao,f:jo,g:Yo,G:Jo,H:Ro,I:Io,j:Po,L:zo,m:Fo,M:Bo,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:xi,s:Si,S:_o,u:Ho,U:$o,V:Wo,w:Uo,W:Ko,x:null,X:null,y:Go,Y:Xo,Z:Zo,"%":bi},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:Qo,e:Qo,f:oi,g:hi,G:yi,H:ei,I:ti,j:ni,L:ri,m:ii,M:ai,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:xi,s:Si,S:si,u:li,U:ci,V:di,w:pi,W:fi,x:null,X:null,y:mi,Y:gi,Z:vi,"%":bi},S={a:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=m[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=p[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=v[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=h.exec(t.slice(n));return r?(e.m=g[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return w(e,t,n,r)},d:Co,e:Co,f:Lo,g:bo,G:vo,H:ko,I:ko,j:wo,L:Eo,m:Mo,M:To,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u[r[0].toLowerCase()],n+r[0].length):-1},q:So,Q:Oo,s:Do,S:qo,u:mo,U:ho,V:go,w:fo,W:yo,x:function(e,t,r){return w(e,n,t,r)},X:function(e,t,n){return w(e,r,t,n)},y:bo,Y:vo,Z:xo,"%":No};function M(e,t){return function(n){var r,o,i,a=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(o=oo[r=e.charAt(++s)])?r=e.charAt(++s):o="e"===r?" ":"0",(i=t[r])&&(r=i(n,o)),a.push(r),l=s+1);return a.push(e.slice(l,s)),a.join("")}}function C(e,t){return function(n){var r,o,i=to(1900,void 0,1);if(w(i,e,n+="",0)!=n.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(t&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=eo(to(i.y,0,1))).getUTCDay(),r=o>4||0===o?Wr.ceil(r):Wr(r),r=Hr.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=Qr(to(i.y,0,1))).getDay(),r=o>4||0===o?Ar.ceil(r):Ar(r),r=Nr.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?eo(to(i.y,0,1)).getUTCDay():Qr(to(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,eo(i)):Qr(i)}}function w(e,t,n,r){for(var o,i,a=0,s=t.length,l=n.length;a<s;){if(r>=l)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=S[o in oo?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=M(n,b),b.X=M(r,b),b.c=M(t,b),x.x=M(n,x),x.X=M(r,x),x.c=M(t,x),{format:function(e){var t=M(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=C(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=M(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e+="",!0);return t.toString=function(){return e},t}}}(e),no.format,no.parse,ro=no.utcFormat,no.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var Mi=1e3,Ci=6e4,wi=36e5,ki=864e5,Ti=2592e6,qi=31536e6;function Ei(e){return new Date(e)}function Li(e){return e instanceof Date?+e:+new Date(+e)}function Ni(e,t,n,r,o,i,a,s,l){var c=nr(Xn,Xn),u=c.invert,d=c.domain,p=l(".%L"),f=l(":%S"),m=l("%I:%M"),h=l("%I %p"),g=l("%a %d"),y=l("%b %d"),v=l("%B"),b=l("%Y"),x=[[a,1,Mi],[a,5,5e3],[a,15,15e3],[a,30,3e4],[i,1,Ci],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,wi],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,ki],[r,2,1728e5],[n,1,6048e5],[t,1,Ti],[t,3,7776e6],[e,1,qi]];function S(s){return(a(s)<s?p:i(s)<s?f:o(s)<s?m:r(s)<s?h:t(s)<s?n(s)<s?g:y:e(s)<s?v:b)(s)}function M(t,n,r,o){if(null==t&&(t=10),"number"==typeof t){var i=Math.abs(r-n)/t,a=_t((function(e){return e[2]})).right(x,i);a===x.length?(o=Kt(n/qi,r/qi,t),t=e):a?(o=(a=x[i/x[a-1][2]<x[a][2]/i?a-1:a])[1],t=a[0]):(o=Math.max(Kt(n,r,t),1),t=s)}return null==o?t:t.every(o)}return c.invert=function(e){return new Date(u(e))},c.domain=function(e){return arguments.length?d(tn.call(e,Li)):d().map(Ei)},c.ticks=function(e,t){var n,r=d(),o=r[0],i=r[r.length-1],a=i<o;return a&&(n=o,o=i,i=n),n=(n=M(e,o,i,t))?n.range(o,i+1):[],a?n.reverse():n},c.tickFormat=function(e,t){return null==t?S:l(t)},c.nice=function(e,t){var n=d();return(e=M(e,n[0],n[n.length-1],t))?d(function(e,t){var n,r=0,o=(e=e.slice()).length-1,i=e[r],a=e[o];return a<i&&(n=r,r=o,o=n,n=i,i=a,a=n),e[r]=t.floor(i),e[o]=t.ceil(a),e}(n,e)):c},c.copy=function(){return tr(c,Ni(e,t,n,r,o,i,a,s,l))},c}function Oi(){return Gt.apply(Ni(Zr,Jr,Vr,Hr,_r,Br,Lr,wr,ro).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}const Di={horizontal:{major:"width",minor:"height",start:"left",end:"right",shadow:{startOffset:"12px 0",endOffset:"-12px 0"}},vertical:{major:"height",minor:"width",start:"top",end:"bottom",shadow:{startOffset:"0 12px",endOffset:"0 -12px"}}},Ai=e=>`${e} 12px -12px inset rgba(0, 0, 0, 0.0625)`;var Ri={defaultSettings:{settings:{orientation:"horizontal",rtl:!1,range:()=>[0,1]}},renderer:"dom",render(e){const{range:t,orientation:n,rtl:r}=this.settings.settings,[o,i]=t(),a=Math.abs(o)<1e-15,s=Math.abs(i-1)<1e-15,l=(e=>{const t=Di[e];return{base:{position:"absolute",[t.major]:12,[t.minor]:"100%"},towardsStart:{[t.start]:0,[t.end]:"auto",boxShadow:Ai(t.shadow.startOffset)},towardsEnd:{[t.start]:"auto",[t.end]:0,boxShadow:Ai(t.shadow.endOffset)}}})(n),c="horizontal"===n&&r,u=[];return a||u.push(e("div",{style:{...l.base,...c?l.towardsEnd:l.towardsStart},class:"scroll-hint--towards-start"})),s||u.push(e("div",{style:{...l.base,...c?l.towardsStart:l.towardsEnd},class:"scroll-hint--towards-end"})),u}};function Ii({viewState:e,viewCache:t,layoutService:n,dockService:r,rtl:o}){return!n.meta.isSnapshot&&{key:"scroll-hint",type:"scroll-hint",settings:{orientation:r.meta.major.orientation,rtl:o,range:()=>function({layoutService:e,viewState:t,viewCache:n}){return e.meta.isContinuous?function(e,t){const n=e.get("zoom"),r=t.get("continuousMin"),o=t.get("continuousMax");return[(n.min-r)/(o-r),(n.max-r)/(o-r)]}(t,n):function(e){return e.get("viewRange")}(t)}({layoutService:n,viewState:e,viewCache:t})}}}let Pi;function zi(){Pi=Pi||document.createElement("canvas").getContext("2d")}const ji={measureTextWidth(e){zi();const{width:t}=Pi.measureText(e);return t},lineWrap(e,t,n,r){let o,i;zi();const a=e?e.split(/\n+|\r+|\r\n/):[],s=[];let l,c,u,d,p=e?e.split(/\s+/):[],f=a[0];if("number"!=typeof t||t<=0)return[e];if("number"==typeof r&&a.length>=r)return a.slice(0,r);for(n&&(Pi.font=n),i=0;i<a.length;i++){for(d=a[i]||"",p=d.split(/\s+/),[f]=p,u="",o=1;o<p.length;o++)if(l=`${f} ${p[o]}`,c=ji.measureTextWidth(l),c>t&&("number"!=typeof r||r>s.length)?(s.push(f),f=p[o]):f=l,"number"==typeof r&&s.length>=r){u=p.slice(o+1).join(" ");break}"number"!=typeof r||s.length<r?s.push(f):s[Math.max(0,s.length-1)]=`${s[Math.max(0,s.length-1)]||""} ${f} ${u}`}return s},wordWrap(e,t,n,r,o){if(zi(),!e||!e.length)return[];n&&(Pi.font=n);let i=[];const a=e.slice();let s,l,c,u;if(a.filter((e=>!!e)),"number"!=typeof t||t<0)return e.slice();for(u=0;u<a.length;u++)c=a[u],l=null,c&&(c.length<=1||ji.measureTextWidth(c)<=t?i.push(c):(s=ji.splitWord(c,t,void 0,r-i.length),s.length<=1?i.push(s[0]):(l=s.pop(),i=i.concat(s),a[u+1]?ji.measureTextWidth(`${l} ${a[u+1]}`)>t&&i.length+a.length-u<=r?a.splice(u+1,0,l):a[u+1]=`${l} ${a[u+1]}`:a.push(l))));return i.forEach(((e,t,n)=>{n[t]=e?e.trim():e})),i.length>r?(i=i.splice(0,r),i[i.length-1]=ji.truncate(i[i.length-1],t,n,o).text):(c=i[i.length-1],c&&c.length>1&&ji.measureTextWidth(c)>t&&(i[i.length-1]=ji.truncate(c,t,n,o).text)),i},truncate(e,t,n,r="…"){zi();let o,i,a,s,l=e;const c=ji.measureTextWidth("i"),u=Math.ceil(t/c);if(n&&(Pi.font=n),e&&t){if(ji.measureTextWidth(l)>t){for(o=Math.min(u,l.length);o>0;o--)if(i=l.substring(0,o-1),a=i.trim()+r,ji.measureTextWidth(a)<=t){s=l.substring(o-1),l=a;break}o||(s=l,l="…")}}else s=void 0;return{text:l,rest:s}},isNumber:e=>"number"==typeof e&&Number.isFinite(e),explodeWord(e,t,n,r){let o;zi();let i,a=e,s="",l=[];if(ji.isNumber(n)&&n<=1)return[e];const c=Math.ceil(t/r);for(o=Math.min(e.length,c);o>0&&(a=e.substring(0,o),i=e.substring(o-1,o)," "===i?a=e.substring(0,o-1):a+="-",s=e.substring(o),!(ji.measureTextWidth(a)<=t));o--);return(!o&&!a||ji.measureTextWidth(a)>t)&&(a=e.substring(0,1),s=e.substring(1)),l.push(a),s?(ji.measureTextWidth(s)>t?(s=ji.explodeWord(s,t,n-1,r),l=l.concat(s)):l.push(s),l.filter((e=>""!==e.trim()))):l},splitWord:(e,t,n,r)=>(zi(),e&&t?(n&&(Pi.font=n),ji.explodeWord(e,t,r,Math.max(1,ji.measureTextWidth("i")))):[]),wrapText(e,t,n,r,o){let i;return Number.isNaN(t)?[e]:(i=r>1?ji.lineWrap(e,t,n,r):[e],i=ji.wordWrap(i,t,n,r,o),i)},getFontHeight:e=>(zi(),e&&(Pi.font=e),1.5*ji.measureTextWidth("m")),tokenize(e,t,n,r,o,i,a=1){zi(),t&&(Pi.font=t);const s=ji.getFontHeight(),l=a*s;let c=[],u=0,d=[];if(i<s)return[];const p=i?Math.max(1,Math.floor(i/l)):r||1;return Array.isArray(r)?(r.forEach((e=>{u+=Number.isNaN(e)||e<=0?0:e})),r.forEach((e=>{c.push(Number.isNaN(e)||e<=0?p-u:e)}))):c=[Number.isNaN(r)||r<=0?p:Math.min(p,r)],Array.isArray(e)?e.forEach(((e,n)=>{d.length<p&&(d=d.concat(ji.wrapText(e,o,t,c[n])))})):d=ji.wrapText(e,o,t,c[0],n),d}},Fi={getDefaultSettings:({size:e=10,fill:t="#999",alignment:n}={})=>({show:!0,type:"n-polygon",fill:t,stroke:"#000",strokeWidth:0,size:e,sides:3,startAngle:-90,alignment:n}),createOob({oob:e,dockValue:t,boxCenter:n,rendWidth:r,rendHeight:o,flipXY:i,symbol:a}){let s="x",l="y",c=r,u=o,d=t<.5?90:-90;return i&&(s="y",l="x",c=o,u=r,d=t<.5?180:0),a(de({},e,{[s]:n*c,[l]:Math.max(e.size/2,Math.min(t*u,u-e.size/2)),startAngle:d}))}},Bi=de.bind(null,!0),_i={},{isArray:Hi}=Array;function $i(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Vi(e){return void 0===e}function Wi(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function Ui(e,t){const n=t.substring(1).split("/").slice(0,-1);let r;return n.forEach(((t,o)=>{if(o===n.length)return;r=+t;const i=isNaN(r)?{}:[];e[r||t]=Vi(e[r||t])?i:e[t],e=e[r||t]})),e}function Ki(e,t){return t?Object.keys(e).filter((t=>void 0!==e[t])).length:Object.keys(e).length}function Gi(e,t,n){let r=!0;if($i(e)&&$i(t))return Ki(e,n)===Ki(t,n)&&(Object.keys(e).forEach((o=>{Gi(e[o],t[o],n)||(r=!1)})),r);if(Hi(e)&&Hi(t)){if(e.length!==t.length)return!1;for(let r=0,o=e.length;r<o;r+=1)if(!Gi(e[r],t[r],n))return!1;return!0}return e===t}_i.compare=Gi,_i.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const i=function(e){return e?Bi({},{val:e}).val:e}(t[o]),a=e[o],s=`${n}/${o}`;Gi(i,a)||Wi(t,o)||(Vi(a)?r.push({op:"add",path:s,value:i}):$i(i)&&$i(a)?r=r.concat(_i.generate(a,i,s)):Hi(i)&&Hi(a)?r=r.concat(function(e,t,n){let r=[];const o=e.slice();let i=-1;function a(e,t,n){if(e[n]&&Vi(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(let n=0,r=e.length;n<r;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(Gi(t,o))return r;if(!Vi(t[0])&&Vi(t[0].qInfo)||0===t.length)return r.push({op:"replace",path:n,value:t}),r;for(let e=o.length-1;e>=0;e-=1)i=a(t,o[e].qInfo&&o[e].qInfo.qId,e),-1===i?(r.push({op:"remove",path:`${n}/${e}`}),o.splice(e,1)):r=r.concat(_i.generate(o[e],t[i],`${n}/${e}`));for(let e=0,s=t.length;e<s;e+=1)i=a(o,t[e].qInfo&&t[e].qInfo.qId),-1===i?(r.push({op:"add",path:`${n}/${e}`,value:t[e]}),o.splice(e,0,t[e])):i!==e&&(r.push({op:"move",path:`${n}/${e}`,from:`${n}/${i}`}),o.splice(e,0,o.splice(i,1)[0]));return r}(a,i,s)):r.push({op:"replace",path:`${n}/${o}`,value:i}))})),Object.keys(e).forEach((o=>{Vi(t[o])&&!Wi(e,o)&&r.push({op:"remove",path:`${n}/${o}`})})),r},_i.apply=function(e,t){t.forEach((t=>{let n=Ui(e,t.path),r=t.path.split("/").splice(-1)[0],o=r&&isNaN(+r)?n[r]:n[+r]||n;const i=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,o=e),"add"===t.op||"replace"===t.op)if(Hi(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(Hi(o)&&Hi(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if($i(o)&&$i(t.value))a=o,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!Wi(a,e)&&delete a[e]})),Bi(o,t.value);else{if(!n)throw new Error("Patchee is not an object we can patch");n[r]=t.value}else if("move"===t.op){const o=Ui(e,t.from);Hi(n)?n.splice(+r,0,o.splice(+i,1)[0]):(n[r]=o[i],delete o[i])}else"remove"===t.op&&(Hi(n)?n.splice(+r,1):delete n[r]);var a}))},_i.clone=function(e){return Bi({},e)},_i.createPatch=function(e,t,n){const r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},_i.updateObject=function(e,t){Object.keys(e).length?_i.apply(e,_i.generate(e,t)):Bi(e,t)};const Yi={getValueWithOffset:(e,t=0)=>e+Math.abs(e)*t,isNumber:e=>"number"==typeof e&&!Number.isNaN(e)},Xi=[[2,4,6],[2,4],[3]],Ji=[,[,,[[1,2]],[[1,2,3],[1,3]],[[1,2,4],[1,4]],[[1,2,4],[1,5]],[[1,2,4,6],[2,4,6],[1,3,6],[1,6]],[[1,2,4,6],[2,4,6],[1,3,6],[1,7]],[[1,2,4,8],[2,4,8],[1,8]],[[1,2,4,8],[2,4,8],[1,3,9],[1,9]],[[1,2,4,6,10],[1,2,4,10],[1,3,10],[3,10],[1,10]]],[,,,[[2,3]],[[2,3,4],[2,4]],[[2,3,4],[2,4],[2,5]],[[2,4,6],[2,6]],[[2,4,6],[2,6],[2,7]],[[2,4,8],[2,8]],[[2,4,8],[2,8],[2,9]],[[2,4,6,10],[2,4,10],[5,10],[3,10]]],[,,,,[[3,4]],[[3,4,5],[3,5]],[[3,4,5,6],[3,6]],[[3,4,5,6],[3,5,7],[3,7]],[[3,4,5,6,8],[3,5,7],[4,8],[3,8]],[[3,4,5,6,8],[3,4,6,9],[3,4,6,8],[3,6,9],[4,8],[3,9]],[[4,6,10],[5,10],[3,10]]],[,,,,,[[4,5]],[[4,5,6],[4,6]],[[4,5,6,7],[4,5,6],[4,6]],[[4,5,6,7,8],[4,5,6,7],[4,6,8],[4,8]],[[4,5,6,7,8],[4,6,9],[4,6,8],[4,8]],[[4,6,10],[5,7,9],[5,10],[4,10]]],[,,,,,,[[5,6]],[[5,6,7],[5,7]],[[5,6,7,8],[5,6,7],[6,8]],[[5,6,7,8,9],[5,6,7,8],[5,7,9],[5,9]],[[6,8,10],[5,10]]],[,,,,,,,[[6,7]],[[6,7,8],[6,8]],[[6,7,8,9],[6,7,8],[6,9]],[[6,7,8,9,10],[6,8,10],[6,10]]],[,,,,,,,,[[7,8]],[[7,8,9],[7,9]],[[7,8,9,10],[8,10],[7,10],[7,9]]],[,,,,,,,,,[[8,9]],[[8,9,10],[8,10]]],[,,,,,,,,,,[[9,10]]]];function Zi(e,t,n){const r=e?e.length:0;let o,i=void 0===t?Number.MAX_VALUE:e[0]/t;for(o=1;o<r;o++)i=Math.min(i,e[o]/e[o-1]);void 0!==n&&(i=Math.min(i,n/e[r-1])),e.splice(0,0,i)}function Qi(e,t,n){let r;const o=e?e.length:0;for(r=0;r<o;r++)Zi(e[r],t,n)}!function(){let e,t;for(Qi(Xi,1,10),e=0;e<Ji.length;e++)if(Ji[e])for(t=0;t<Ji[e].length;t++)Array.isArray(Ji[e][t])&&Qi(Ji[e][t])}();const ea={isInside(e,t,n,r){if(!r)return!0;const o=e.position-e.radius,i=e.position+e.radius;return o>=t&&i<=n},getCenterDistance:(e,t)=>Math.abs(e.center-t.center),getGap(e,t){const n=e.position<t.position?e:t,r=e.position<t.position?t:e;return r.position-r.radius-(n.position+n.radius)},findSegmentPositionMeetMax(e,t){const n=Math.max(0,e.max-t);return e.center-n},findSegmentPositionMeetMin(e,t){const n=Math.max(0,t-e.min);return e.center+n},findSegmentPositionMeetMinThenMax(e,t,n){const r=ea.findSegmentPositionMeetMin(e,t);return ea.findSegmentPositionMeetMax({center:r,max:r+e.radius},n)},findSegmentPositionMeetMaxThenMin(e,t,n){const r=ea.findSegmentPositionMeetMax(e,n);return ea.findSegmentPositionMeetMin({center:r,min:r-e.radius},t)},layoutPositionFromMin(e,t,n,r=0){const o=e.length-1;let i,a,s=t;for(let t=0;t<o;t++)i=e[t],a=e[t+1],i.position=ea.findSegmentPositionMeetMaxThenMin(i,s,(i.center+a.center-r)/2),s=i.position+i.radius+r/2;a.position=ea.findSegmentPositionMeetMaxThenMin(a,s,n)},adjustPositionFromMax(e,t,n,r=0){const o=e.length-1;let i,a,s;const l=Math.max(0,e[o].position+e[o].radius-n);if(0===l)return;let c,u=0;for(i=o;i>0&&(a=e[i],s=e[i-1],c=Math.max(0,ea.getGap(s,a)-r),c-=Math.max(0,u+c-l),u+=c,a.move=c,!(u>=l));i--);for(u<l&&(c=Math.max(0,s.position-s.radius-t),c-=Math.max(0,u+c-l),u+=c,s.move=c),u=0,i=0;i<=o;i++)a=e[i],u+=a.move||0,a.move=u,a.position-=u},layout(e,t,n,r=0){const o=e.length-1;if(!(o<0))if(0!==o)ea.layoutPositionFromMin(e,t,n,r),ea.adjustPositionFromMax(e,t,n,r);else{const r=e[0];r.position=ea.findSegmentPositionMeetMaxThenMin(r,t,n)}}},ta=(e,t,n,r=1)=>{const o=e.bandwidth();return n?"start"===t?o:"end"===t?o*(1-r):o*(2-r)/2:"start"===t?0:"end"===t?o*r:o*r/2},na=e=>!1!==e.show&&0!==e.show&&"0"!==e.show,ra=e=>e.filter(na),oa=(e,t)=>ra(Se.getValue(e,t,[])),ia=e=>na(e)&&(!1!==e.showValue||!1!==e.showLabel),aa=e=>e.filter(ia),sa=(e,t)=>aa(Se.getValue(e,t,[])),la=({refLineLayout:e,layoutService:t})=>t.meta.canBeContinuous?e.refLineExpr.value:e.refLineExpr.stringValue,ca=(e,t,n)=>{const{dimensionRefLineInfo:r}=t;if(r[e])return r[e][n]},ua=({label:e,dataPages:t})=>{const{qArea:n={}}=t||{},{qTop:r,qHeight:o}=n;return void 0!==r&&void 0!==o&&void 0!==e.valueInfo&&e.valueInfo.maxOrder<r},da=({label:e,dataPages:t})=>{const{qArea:n={}}=t||{},{qTop:r,qHeight:o}=n;return void 0!==r&&void 0!==o&&void 0!==e.valueInfo&&e.valueInfo.minOrder>=r+o},pa=({value:e,qMin:t})=>"NaN"!==t&&e<t,fa=({value:e,qMax:t})=>"NaN"!==t&&e>t,ma={isRefLineVisible:na,getVisibleRefLines:ra,getRefLines:oa,getMeasureRefLines:e=>oa(e,"refLine.refLines"),getDimensionRefLines:(e,t)=>t?[]:oa(e,"refLine.dimRefLines"),isRefLineLabelVisible:ia,getVisibleRefLineLabels:aa,getRefLineLabels:sa,getMeasureRefLineLabels:e=>sa(e,"refLine.refLines"),getDimensionRefLineLabels:(e,t)=>t?[]:sa(e,"refLine.dimRefLines"),getScaledPosition:({scale:e,size:t,value:n,valueInfo:r,align:o,invert:i=!1,layoutService:a,isContinuous:s})=>{if(!s){const s=e.pxScale(t);let l;if(a.meta.isGroupedByMeasure)return l=ta(s,o,i,a.meta.measureCount),s([n,0])+l;if(a.meta.isGroupedByDimension){if(!r)return NaN;const{innerValues:e,numInnerValues:t,minOrder:a}=r;let c;return l=ta(s,o,i,t),e&&e.length&&(c=(({pxScale:e,value:t,innerValues:n,invert:r,minOrder:o})=>{const i=(({pxScale:e,invert:t})=>e.bandwidth()*(t?-1:1))({pxScale:e,invert:r});for(let r=0;r<n.length;r++){const{id:a,order:s}=n[r],l=e([t,a]);if(void 0!==l)return l-i*(s-o)}})({pxScale:s,value:n,innerValues:e,invert:i,minOrder:a})),(void 0===c?s(n):c)+l}return l=ta(s,o,i),s(n)+l}return e(n)},getDimensionValuesInfo:({layout:e,canBeContinuous:t,discreteModel:n,layoutService:r})=>{const{isGroupedByDimension:o}=r.meta,i={},a=Se.getValue(e,"qHyperCube"),s="K"===a.qMode,l=n?n.query.getCurrentDataPage():Se.getValue(a,"S"===a.qMode?"qDataPages.0":"qStackedDataPages.0",[]);const c=s?"qData.0.qSubNodes":"qMatrix",u=Se.getValue(l,c,[]),d=((e,t)=>e?t?"qValue":"qNum":"qText")(t,s),p=(e=>e.qArea.qTop)(l);return s?(()=>{for(let e=0;e<u.length;e++){const t=u[e],n=e+p,r=t[d];i[r]||(i[r]={id:t.qElemNo,qText:t.qText,minOrder:n,maxOrder:n,dataNode:u[e]})}})():o?(()=>{let e;for(let t=0;t<u.length;t++){const n=u[t][0],r=u[t][1],o=t+p,a=n[d];i[a]?(i[a].minOrder=Math.min(i[a].minOrder,o),i[a].maxOrder=Math.max(i[a].maxOrder,o),i[a].innerValues[i[a].innerValues.length]={id:r.qElemNumber,order:o}):i[a]={id:n.qElemNumber,qText:n.qText,minOrder:o,maxOrder:o,innerValues:[{id:r.qElemNumber,order:o}],dataNode:u[t]},0===t?0===o&&(i[a].isMinOrderOk=!0):a!==e&&(i[a].isMinOrderOk=!0,i[e].isMaxOrderOk=!0),e=a}})():(()=>{for(let e=0;e<u.length;e++){const t=u[e][0],n=e+p,r=t[d];i[r]||(i[r]={id:t.qElemNumber,qText:t.qText,minOrder:n,maxOrder:n,dataNode:u[e]})}})(),i},getInputValue:la,extractInfoFromInputValue:ca,resolveValue:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const r=la({refLineLayout:e,layoutService:n});return ca(r,t,"id")},isDiscreteMinOutOfBounds:ua,isDiscreteMaxOutOfBounds:da,isContinuousMinOutOfBounds:pa,isContinuousMaxOutOfBounds:fa,isOutOfRange:({value:e,qMin:t,qMax:n})=>pa({value:e,qMin:t})||fa({value:e,qMax:n}),isOutOfDataPages:({label:e,dataPages:t})=>e.valueInfo.isMinOrderOk&&da({label:e,dataPages:t})||e.valueInfo.isMaxOrderOk&&ua({label:e,dataPages:t}),getInvert:({orientation:e,rtl:t,isContinuous:n})=>"horizontal"===e?t:n},ha=({label:e,labelStyle:t})=>[(null==e?void 0:e.fontStyle)||(null==t?void 0:t.fontStyle),(null==e?void 0:e.fontWeight)||(null==t?void 0:t.fontWeight),(null==e?void 0:e.fontSize)||(null==t?void 0:t.fontSize),(null==e?void 0:e.fontFamily)||(null==t?void 0:t.fontFamily)].filter((e=>!!e)).join(" ");function ga(e){return e.showValue?`… ${e.valueString}`:"…"}function ya(e,t,n=70){for(let r=0;r<e.length;r++){const o=e[r],i=ha({label:o,labelStyle:t});o.lines=ji.tokenize(o.title,i,ga(o),3,n),o.maxNumLines=o.lines.length}}function va({title:e,font:t,ellipsis:n,maxNumLines:r=5,maxWidth:o=200}){const i=ji.tokenize(e,t,n,r,o),a=i.length;let s="";if(a){[s]=i;for(let e=1;e<a;e++)s=`${s}\n${i[e]}`}return s}function ba({oobs:e,font:t,ellipsis:n,maxNumLines:r=5,maxWidth:o=200}){const i=e.map((e=>va({title:e.title,font:t,ellipsis:`${n} ${e.valueString}`,maxNumLines:r,maxWidth:o}))),a=i.length;let s="";if(a){[s]=i;for(let e=1;e<a;e++)s=`${s}\n\n${i[e]}`}return s}function xa(e,t="value"){e.sort(((e,n)=>e[t]-n[t]))}const Sa=3,Ma=2;function Ca({inputValue:e,inputValueLabel:t,localeInfo:n}){if(void 0===e||void 0===t||e.toString()===t)return!1;if(!n)return!0;const r=`+-${n.qDecimalSep||""}${n.qThousandSep||""}`.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&");return t.replace(new RegExp(`[0-9e${r}]`,"g"),"").length>0||function(e){if(e.indexOf("e")>-1)return!1;const t=e.indexOf("-");return-1!==t&&(e.lastIndexOf("-")!==t||0!==t)}(t)}const wa=({label:e,dataPages:t,qMin:n,qMax:r})=>{if(void 0!==n&&void 0!==r){const{inputValue:t}=e;if(ma.isContinuousMaxOutOfBounds({value:t,qMax:r}))return 1;if(ma.isContinuousMinOutOfBounds({value:t,qMin:n}))return-1}return ma.isDiscreteMaxOutOfBounds({label:e,dataPages:t})?1:ma.isDiscreteMinOutOfBounds({label:e,dataPages:t})?-1:0},ka={hasEngineFormat:Ca,calculateLabelPositions({labels:e,scale:t,size:n,layoutService:r,orientation:o,rtl:i,isContinuous:a,isDimension:s}){const l=ma.getInvert({orientation:o,rtl:i,isContinuous:a}),c="S"===r.getHyperCubeValue("qMode")?"qDataPages.0":"qStackedDataPages.0",u=r.getHyperCubeValue(c),{canBeContinuous:d}=r.meta;let p,f;if(s&&d){const e=r.getLayoutValue("qHyperCube.qDimensionInfo.0");p=e.qMin,f=e.qMax}for(let o=0;o<e.length;o++){const i=e[o],{value:s,align:c,valueInfo:d}=i,m=wa({label:i,dataPages:u,qMin:p,qMax:f});i.scaledValue=1===m?l?-.1:1.1:-1===m?l?1.1:-.1:ma.getScaledPosition({scale:t,size:n,value:s,valueInfo:d,align:c,invert:l,layoutService:r,isContinuous:a}),i.center=i.scaledValue*n}},getTitle:e=>!1!==e.showValue?!1!==e.showLabel?`${e.text} ${e.valueString}`:e.valueString:!1!==e.showLabel?e.text:"",addLabelTitles({labels:e,formatter:t,isContinuous:n,canBeContinuous:r,localeInfo:o}){let i;if(n)for(let n=0;n<e.length;n++){const r=e[n],{value:a,inputValue:s,inputValueLabel:l}=r;i=Ca({inputValue:s,inputValueLabel:l,localeInfo:o})?l:t?t(a):a,r.valueString=`${Fe.lrm}(${i})${Fe.lrm}`,r.title=ka.getTitle(r)}else if(r)for(let t=0;t<e.length;t++){const n=e[t],{valueText:r,inputValue:a,inputValueLabel:s}=n;i=Ca({inputValue:a,inputValueLabel:s,localeInfo:o})?s:r,n.valueString=`${Fe.lrm}(${i})${Fe.lrm}`,n.title=ka.getTitle(n)}else for(let t=0;t<e.length;t++){const n=e[t];i=n.valueText,n.valueString=`${Fe.lrm}(${i})${Fe.lrm}`,n.title=ka.getTitle(n)}},measureLabelsWidth(e,t){for(let n=0;n<e.length;n++){const r=e[n];r.totalWidth=t(r.title,r).width}},measureLabelMaxLineWidth(e,t){const n=Math.max(...e.lines.map((n=>t(n,e).width)));return n},getMaxTextWidth(e){const t=e.map((e=>e.totalWidth));return Math.max(...t)},addLabelsNeighborInfo(e,t,n,r=0){const o=e.length-1;if(o<0)return;let i,a;if([i]=e,i.cMin=t,0!==o){for(let t=0;t<o;t++)i=e[t],a=e[t+1],i.cMax=(i.center+a.center-r)/2,a.cMin=i.cMax+r;a.cMax=n}else i.cMax=n},getTotalNumLines(e){let t=0;return e.forEach((e=>{t+=e.maxNumLines})),t},reduceLabelsHavingMaxNumLines(e,t,n){const r=t-1,o=e.filter((e=>e.maxNumLines===t)),i=Math.min(n,o.length);for(let e=o.length-1;e>=o.length-i;e--)o[e].maxNumLines=r},reduceTotalMaxNumLines(e,t,n){const r=Math.floor(n/t);let o=3;do{const t=ka.getTotalNumLines(e)-r;if(t<=0)return;ka.reduceLabelsHavingMaxNumLines(e,o,t),o--}while(o>1)},reduceMaxNumLines(e,t,n=0){for(let r=0;r<e.length;r++){const o=e[r];o.maxNumLines=Math.max(1,Math.min(o.maxNumLines,Math.floor((Math.max(0,o.cMax-o.cMin)+n)/t)))}},addLabelsSize(e,t,n=15,r){for(let o=0;o<e.length;o++){const i=e[o];i.width=Math.min(t,ka.measureLabelMaxLineWidth(i,r)),i.height=i.lines.length*n}},addLabelSegments(e,t){for(let n=0;n<e.length;n++){const r=e[n],{center:o}=r,i=r[t],a=i/2;r.segment={center:o,range:i,min:o-a,max:o+a,radius:a}}},addLabelsInfo({labels:e,scale:t,majorSize:n,lowerLimit:r,upperLimit:o,gap:i,labelStyle:a,maxLabelWidth:s,lineHeight:l,majorDimension:c,orientation:u,measureText:d,rtl:p,layoutService:f,isContinuous:m,isDimension:h}){const g=e.map((e=>e)),y=n;ka.calculateLabelPositions({labels:e,scale:t,size:y,layoutService:f,orientation:u,rtl:p,isContinuous:m,isDimension:h}),xa(e,"center"),ka.addLabelsNeighborInfo(e,r,o,i),ya(e,a,s),ka.reduceTotalMaxNumLines(g,l,o-(g.length-1)*i),"vertical"===u&&(ka.reduceMaxNumLines(e,l,.05*i),function(e,t,n=70){for(let r=0;r<e.length;r++){const o=e[r],i=ha({label:o,labelStyle:t});o.lines.length>o.maxNumLines&&(o.lines=ji.tokenize(o.title,i,ga(o),o.maxNumLines,n))}}(e,a,s)),ka.addLabelsSize(e,s,l,d),ka.addLabelSegments(e,c)},createLabels({labels:e,style:t,maxLabelWidth:n,areaProps:r,area:o,lineHeight:i=15,font:a}){const{majorAxis:s,minorAxis:l,dock:c}=r,{minorCenter:u}=o,{fontSize:d,fontFamily:p,fontStyle:f,fontWeight:m,textDecoration:h,background:g}=t;let y=[];return e.forEach((e=>{const{lines:t}=e,r=t.length,o=t.map(((t,o)=>{const g={type:"text",text:t,title:va({title:e.title,font:a,ellipsis:ga(e)}),dx:0,dy:0,maxWidth:n,width:n,fontSize:e.fontSize||d,fontFamily:e.fontFamily||p,fontStyle:e.fontStyle||f,fontWeight:e.fontWeight||m,textDecoration:e.textDecoration||h,fill:e.fill,baseline:"central",anchor:"middle",value:e.value,dock:c};return g[l]=u,g[s]=e.segment.position,g.y+=(o-(r-1)/2)*i,g}));e.background&&y.push(function({minorCenter:e,majorAxis:t,minorAxis:n,dock:r,label:o,lineHeight:i,background:a}){const{lines:s}=o,{borderRadius:l=Sa,padding:c={}}=a,{top:u=Ma,bottom:d=Ma,left:p=Ma,right:f=Ma}=c,m=s.length,h={type:"rect",rx:l,ry:l,fill:o.background.fill,width:o.width+(p+f),height:o.height+(u+d),value:o.value,dock:r};return h[n]=e,h[t]=o.segment.position,h.x-=o.width/2+p,h.y-=m*i/2+u,h}({minorCenter:u,majorAxis:s,minorAxis:l,dock:c,label:e,lineHeight:i,background:g})),y=y.concat(o)})),y}};function Ta(e,t,n){let r;const o=typeof t;if("string"===o||"object"===o)r=e.formatter(t);else if(void 0!==n&&n.data){const e=n.data()&&n.data().fields;r=e&&e[0]?e[0].formatter():null}return r}function qa(e,t,n){return"top"===e||"bottom"===e?function(e,t){const{lineHeight:n,top:r,bottom:o,maxLabelWidth:i}=t;let a=1;return ka.getMaxTextWidth(e)>i&&(ya(e,t,i),a=Math.max(...e.map((e=>e.lines.length)))),a*n+r+o}(t,n):function(e,t){const{left:n,right:r,maxLabelWidth:o}=t;return Math.min(o,ka.getMaxTextWidth(e))+n+r}(t,n)}function Ea(e,t){return t?e.domain():[0,1]}function La(e,t,n,r="value"){let o=e.filter((e=>e[r]>=t));o=o.filter((e=>e[r]<=n));const i=e.filter((e=>e[r]<t)),a=e.filter((e=>e[r]>n));return{filteredLabels:o,minOobs:i,maxOobs:a,numMinOobs:i.length,numMaxOobs:a.length}}function Na(e){let t,n=0;for(let r=1;r<10;r++)t=e(r),n=Math.max(n,Math.sqrt(t.width*t.width+t.height*t.height));return t=e("9+"),[n,Math.max(n,Math.sqrt(t.width*t.width+t.height*t.height))]}function Oa(e,t){return e>9?t[1]:t[0]}function Da({alignment:e,dockValue:t,oobs:n,style:r,rect:o,symbol:i,position:a,areaProps:s,radius:l,font:c}){const u=n?n.length:0;if(u<1)return[];const{flipXY:d,majorAxis:p,minorAxis:f,minorDimension:m,dock:h}=s,g=o[m],y=Fi.createOob({oob:Fi.getDefaultSettings({size:r.size,fill:r.fill,alignment:e}),dockValue:t,boxCenter:.5,rendWidth:o.width,rendHeight:o.height,flipXY:d,symbol:i});y.dock=h;const v=`c${p}`,b=`c${f}`,x={type:"circle",r:l,stroke:"transparent",fill:r.text.background.fill,strokeWidth:0,dock:h};x[b]=g/2,x[v]=a;const S={type:"text",text:u>9?"9+":u,title:ba({oobs:n,font:c,ellipsis:"…"}),dx:0,dy:0,maxWidth:g,width:g,fontSize:r.text.fontSize,fontFamily:r.text.fontFamily,fill:r.text.fill,baseline:"central",anchor:"middle",dock:h};return S[f]=g/2,S[p]=a,[y,x,S]}const Aa=e=>{const t=ha({labelStyle:e}),n=ji.getFontHeight(t)*(e.lineHeightMultiplicator||1),r=e.gap||12,o=e.maxWidth||75,i=e.padding.top||0,a=e.padding.bottom||0,s=e.padding.left||0,l=e.padding.right||0;return{...e,font:t,lineHeight:n,gap:r,maxLabelWidth:o,top:i,bottom:a,left:s,right:l}},Ra=e=>e.map((e=>({...e,value:"function"==typeof e.value?e.value():e.value,valueText:"function"==typeof e.valueText?e.valueText():e.valueText,valueInfo:"function"==typeof e.valueInfo?e.valueInfo():e.valueInfo})));var Ia={require:["renderer","chart","symbol"],defaultSettings:{layout:{displayOrder:0,prioOrder:0}},preferredSize(){const{scale:e}=this,{style:t,layoutService:n,isContinuous:r,localeInfo:o}=this.settings,i=!!r||n.meta.canBeContinuous,a=Ra(this.settings.labels),s=Ta(this.chart,this.settings.formatter,e);ka.addLabelTitles({labels:a,formatter:s,isContinuous:r,canBeContinuous:i,localeInfo:o});const{numMaxOobs:l,numMinOobs:c,filteredLabels:u}=(({labels:e,scale:t,isContinuous:n,canBeContinuous:r,layoutService:o})=>{if(n){const[r,o]=Ea(t,n);return La(e,r,o)}if(r){const t=o.getLayoutValue("qHyperCube.qDimensionInfo.0"),{qMin:n,qMax:r}=t;if("NaN"!==n&&"NaN"!==r)return La(e,n,r,"inputValue")}return{filteredLabels:e}})({labels:a,scale:e,isContinuous:r,canBeContinuous:i,layoutService:n});let d;if(this.measureText=(e,n)=>{const{fontSize:r,fontFamily:o,fontWeight:i}=n||{};return this.renderer.measureText({text:e,fontWeight:i||t.label.fontWeight,fontSize:r||t.label.fontSize,fontFamily:o||t.label.fontFamily})},u&&u.length){const e=Aa(t.label),{dock:n}=this.settings.layout;return ka.measureLabelsWidth(u,this.measureText),d=qa(n,u,e),d}const p=Na(this.measureText),f=l?Oa(l,p):0,m=c?Oa(c,p):0;return d=Math.max(f,m),d},render(){const{scale:e}=this;if(!e.domain().length)return;const{symbol:t}=this,{style:n,layoutService:r,theme:o,isContinuous:i,isDimension:a,localeInfo:s}=this.settings,l=!!i||r.meta.canBeContinuous,c=Ra(this.settings.labels),{dock:u,rtl:d}=this.settings.layout,{padding:p}=n.label,f=function(e){return"left"===e||"right"===e?(e=>({dock:e,orientation:"vertical",majorAxis:"y",minorAxis:"x",majorDimension:"height",minorDimension:"width",flipXY:!1}))(e):(e=>({dock:e,orientation:"horizontal",majorAxis:"x",minorAxis:"y",majorDimension:"width",minorDimension:"height",flipXY:!0}))(e)}(u),m=function(e,t,n){const r=e[t.minorDimension];return{minorSize:r,majorSize:e[t.majorDimension],minorCenter:"vertical"===t.orientation?(r-n.right-n.left)/2+n.left:(r-n.top-n.bottom)/2+n.top}}(this.rect,f,p),{orientation:h,majorDimension:g}=f,{majorSize:y}=m,v=Aa(n.label),{font:b,lineHeight:x,gap:S,maxLabelWidth:M}=v,C=Ta(this.chart,this.settings.formatter,e),w=y;ka.addLabelTitles({labels:c,formatter:C,isContinuous:i,canBeContinuous:l,localeInfo:s}),ka.calculateLabelPositions({labels:c,scale:e,size:w,layoutService:r,orientation:h,rtl:d,isContinuous:i,isDimension:a});const[k,T]=Ea(e,i),{filteredLabels:q,lowerOobs:E,upperOobs:L,lowerCircleSize:N,upperCircleSize:O,lowerOobSpace:D,upperOobSpace:A}=function({labels:e,minValue:t,maxValue:n,orientation:r,rtl:o,isContinuous:i,style:a,padding:s,measureText:l,prop:c="value"}){const{maxOobs:u,minOobs:d,filteredLabels:p}=La(e,t,n,c),f="scaledValue"!==c&&ma.getInvert({orientation:r,rtl:o,isContinuous:i}),m=function(e,t,n){return n?t:e}(d,u,f),h=function(e,t,n){return n?e:t}(d,u,f),g=m.length,y=h.length,v=Na(l),b=Oa(g,v),x=Oa(y,v),S=function(e,t,n,r,o){return("vertical"===r?o.top:o.left)+(e>0?t+n:0)}(g,a.oob.size,b,r,s),M=function(e,t,n,r,o){return("vertical"===r?o.bottom:o.right)+(e>0?t+n:0)}(y,a.oob.size,x,r,s);return{filteredLabels:p,lowerOobs:m,upperOobs:h,lowerCircleSize:b,upperCircleSize:x,lowerOobSpace:S,upperOobSpace:M}}({labels:c,minValue:k,maxValue:T,orientation:h,rtl:d,isContinuous:i,style:n,padding:p,measureText:this.measureText,prop:i?"value":"scaledValue"}),R=D,I=y-A;xa(E),xa(L);const P=Da({alignment:0,dockValue:0,oobs:E,style:n.oob,rect:this.rect,symbol:t,position:n.oob.size+N/2,areaProps:f,radius:N/2,font:b}),z=Da({alignment:1,dockValue:1,oobs:L,style:n.oob,rect:this.rect,symbol:t,position:y-(n.oob.size+O/2),areaProps:f,radius:O/2,font:b});ka.addLabelsInfo({labels:q,scale:e,majorSize:y,lowerLimit:R,upperLimit:I,labelStyle:v,lineHeight:x,gap:S,maxLabelWidth:M,majorDimension:g,orientation:h,measureText:this.measureText,rtl:d,layoutService:r,isContinuous:i,isDimension:a}),ea.layout(q.map((e=>e.segment)),R,I,n.label.gap);const j=q.filter((e=>ea.isInside(e.segment,R,I,i)));return ka.createLabels({labels:j,style:n.label,maxLabelWidth:M,areaProps:f,area:m,lineHeight:x,font:b,theme:o}).concat([...P,...z])}};var Pa={dataRelatedPropertiesPaths:["qHyperCube.qGrandTotalRow","qHyperCube.qHasOtherValues","qHyperCube.qSize","qHyperCube.qDimensionInfo[].qAttrDimInfo","qHyperCube.qDimensionInfo[].qCardinalities","qHyperCube.qDimensionInfo[].qMax","qHyperCube.qDimensionInfo[].qMin","qHyperCube.qDimensionInfo[].qStateCounts","qHyperCube.qMeasureInfo[].qApprMaxGlyphCount","qHyperCube.qMeasureInfo[].qAttrExprInfo","qHyperCube.qMeasureInfo[].qMax","qHyperCube.qMeasureInfo[].qMin","qHyperCube.qMeasureInfo[].qTrendLines","qHyperCube.qTreeNodesOnDim","qSelectionInfo"]};function za(e){const{qHyperCube:t,...n}=e,{qAxisData:r,qDataPages:a,qStackedDataPages:s,qTreeDataPages:l,...c}=t,u=de(!0,{},{...n,qHyperCube:{...c,qAxisData:null,qDataPages:null,qStackedDataPages:null,qTreeDataPages:null}}),{dataRelatedPropertiesPaths:d}=Pa;return d.forEach((e=>{const t=e.split("[");if(1===t.length)void 0!==o(u,e)&&i(u,e,null);else{const e=t[0],n=t[1].split("].")[1];o(u,e,[]).forEach((e=>{void 0!==o(e,n)&&i(e,n,null)}))}})),u}var ja={axes:{trackBy:function({isTime:e,isContinuous:t,isMeasure:n,isMajor:r}){return o=>{if(e||t||n){var i;if("line"===o.type)return null!==(i=o.tickValue)&&void 0!==i?i:"axis";if("text"===o.type)return`${o.tickValue} ${o.text}`;if("container"===o.type){const e=o.children.filter((e=>"text"===e.type)).map((e=>e.text));return`${o.data.value} ${e.join("")}`}return Math.random()}if(r){if("line"===o.type&&void 0===o.tickValue)return"axis";const e=o.transform&&o.transform.match(/rotate/gi)?"rotated":"horizontal";return`${o.data.group?`${o.data.group.value} `:""}${o.data.value} ${o.text} ${e}`}return Math.random()}},compensateForLayoutChanges:function({isMeasure:e,isTime:t,isContinuous:n,isHorizontal:r,dock:o}){return({currentNodes:i,currentRect:a,previousRect:s})=>{const l=a.x-s.x,c=a.y-s.y,u=a.width-s.width,d=a.height-s.height;e?("left"===o&&i.forEach((e=>{"line"===e.type?(e.x1+=u,e.x2+=u):"text"===e.type&&(e.x+=u)})),"left"!==o&&"right"!==o||i.forEach((e=>{var t;("line"===e.type&&(e.x1===e.x2?(e.y1=a.y,e.y2=e.y1+a.height):(Math.round(e.y1)<a.y||e.y1>a.y+a.height)&&(e.strokeWidth=0)),"text"===e.type)&&((e.y<a.y||e.y>a.y+a.height)&&(e.fontSize="1px","#"===(null===(t=e.fill)||void 0===t?void 0:t[0])&&(e.fill=`${e.fill.slice(0,1)}00${e.fill.slice(1)}`)))})),"top"!==o&&"bottom"!==o||i.forEach((e=>{var t;("line"===e.type&&(e.y1===e.y2?(e.x1=a.x,e.x2=e.x1+a.width):(Math.round(e.x1)<a.x||e.x1>a.x+a.width)&&(e.strokeWidth=0)),"text"===e.type)&&((e.x<a.x||e.x>a.x+a.width)&&(e.fontSize="1px","#"===(null===(t=e.fill)||void 0===t?void 0:t[0])&&(e.fill=`${e.fill.slice(0,1)}00${e.fill.slice(1)}`)))}))):t?i.forEach((e=>{"line"===e.type?e.y1===e.y2?e.x2+=u:e.x1===e.x2&&(e.x1-=l,e.x2-=l):"text"===e.type&&(e.x-=l)})):n||r?i.forEach((e=>{"line"===e.type&&e.y1===e.y2&&(e.x1+=l,e.x2+=l+u)})):i.forEach((e=>{"line"===e.type&&e.x1===e.x2&&(e.y1+=c,e.y2+=c+d)}))}}},bars:{trackBy:function(e){return e.data.typeIndex?`${e.data.value} ${e.data.typeIndex.value}`:e.data.measureIndex?`${e.data.value} ${e.data.measureIndex.value}`:e.data.group?`${e.data.value} ${e.data.group.value}`:e.data.stack?`${e.data.value} ${e.data.stack.value}`:`${e.data.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,o=t.y-n.y;0===r&&0===o||e.forEach((e=>{e.children&&e.children.length>0&&e.children.forEach((e=>{void 0!==e.x&&void 0!==e.y?(e.x-=r,e.y-=o):e.transform=`translate(${-r}, ${-o})`}))}))}},barOobs:{compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x;0===t.y-n.y&&0===r||e.forEach((e=>{e.children&&e.children.length>0&&e.children.forEach((e=>{e.opacity=0}))}))}},labels:{trackBy:function(e){if("rect"===e.type)return"-3"===e.data?Math.random():`${e.type} ${e.data} ${e.rotation}`;const t=e.transform&&e.transform.match(/rotate/gi)?"rotated":"horizontal";return`${e.type} ${e.data} ${e.text} ${t}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,o=t.y-n.y;0===r&&0===o||e.forEach((e=>{e.transform&&e.transform.match(/rotate\(-90/gi)?(e.x+=o,e.y-=r):(e.x-=r,e.y-=o)}))},linkData:function(e){return e.data.measureIndex?`${e.data.value} ${e.data.measureIndex.value}`:e.data.group?`${e.data.value} ${e.data.group.value}`:e.data.stack?`${e.data.value} ${e.data.stack.value}`:`${e.data.value}`}},lines:{trackBy:function(e){var t;return"line"===e.type?null!==(t=e.value)&&void 0!==t?t:Math.random():"path"===e.type?`${e.generatorType} ${e.layerObj.id} ${e.data.source.key}`:Math.random()},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,o=t.y-n.y;e.forEach((e=>{if(void 0!==e.x1&&void 0!==e.y1)e.y1===e.y2?(e.x2=e.x1+t.width,e.y1-=o,e.y2-=o):e.x1===e.x2&&(e.y2=e.y1+t.height,e.x1-=r,e.x2-=r);else{const t="x"===e.major.p?r/e.major.size:o/e.major.size,n="y"===e.minor.p?o/e.minor.size:r/e.minor.size;e.points.forEach((e=>{e.modified||(e.major-=t,e.minor-=n,e.minor0-=n,e.modified=!0)}))}}))}},lineOobs:{compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x;0===t.y-n.y&&0===r||e.forEach((e=>{e.opacity=0}))}},markers:{trackBy:function(e){return e.data.line?`${e.data.line.value} ${e.data.major.value}`:`${e.data.major.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,o=t.y-n.y;0===r&&0===o||e.forEach((e=>{switch(e.type){case"circle":e.cx-=r,e.cy-=o;break;case"rect":e.x-=r,e.y-=o;break;case"path":e.transform=`translate(${-r}, ${-o})`}}))}},points:{trackBy:function(e){return e.data.line?`${e.data.line.value} ${e.data.major.value}`:`${e.data.major.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,o=t.y-n.y;0===r&&0===o||e.forEach((e=>{e.cx-=r,e.cy-=o}))}},refLineLabels:{trackBy:function(e){if(void 0!==e.value){if("rect"===e.type)return`${e.value}`;if("text"===e.type)return`${e.value} ${e.text}`}return Math.random()},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,o=t.y-n.y,i=t.width-n.width,a=t.height-n.height;let s=-r,l=-o;e.forEach((e=>{switch(e.dock){case"right":r>0&&(s=t.width);break;case"left":i<0&&(s=-n.width);break;case"top":a<0&&(l=-n.height);break;case"bottom":o>0&&(l=t.height)}switch(e.type){case"text":case"rect":e.x+=s,e.y+=l;break;case"circle":e.cx+=s,e.cy+=l;break;case"path":e.transform=`translate(${s}, ${l})`}}))}},shadowBars:{trackBy:function(){return Math.random()}},cacheProperties:function({viewCache:e,layout:t}){const n=za(t);e.set("dataIndependentProperties",JSON.stringify(n))},propertiesHaveChanged:function({viewCache:e,layout:t}){const n=za(t);return e.get("dataIndependentProperties")!==JSON.stringify(n)},nonUpdatingNode:{trackBy:function(){return Math.random()}}};const{getInputValue:Fa,extractInfoFromInputValue:Ba,resolveValue:_a}=ma;var Ha={resolveValue:_a,resolveInnerValues:({refLineLayout:e,refLineModel:t,layoutService:n})=>{if(n.meta.isGroupedByDimension){const r=Fa({refLineLayout:e,layoutService:n});return Ba(r,t,"innerValues")}},resolveNumInnerValues:({refLineLayout:e,refLineModel:t,layoutService:n})=>{if(n.meta.mode.K)return 0;const r=Fa({refLineLayout:e,layoutService:n});return Ba(r,t,"numInnerValues")||0},resolveValueText:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const{dimensionValuesInfo:r}=t,{canBeContinuous:o}=n.meta,i=Fa({refLineLayout:e,layoutService:n});return r[i]&&o?r[i].qText:i},resolveValueInfo:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const r=Fa({refLineLayout:e,layoutService:n}),{dimensionRefLineInfo:o}=t;return o[r]}};function $a({isDimension:e,refLineModel:t={},layoutService:n,colorModel:r,dockService:o,animationsEnabled:i,chart:a,scale:s,axis:l,rtl:c,key:u,mainComponentKey:d,path:p,minimumLayoutMode:f}){const m=e?t.dimensionRefLines:p?t.query.getRefLines(p):t.measureRefLines;if(!m.length)return!1;const h={key:u,type:"ref-line",layout:{minimumLayoutMode:f},lines:{y:[],x:[]},style:{oob:{show:!1}},preferredSize:()=>({size:0,edgeBleed:{left:1,right:1,top:1,bottom:1}}),animations:{enabled:i,trackBy:ja.lines.trackBy,compensateForLayoutChanges:ja.lines.compensateForLayoutChanges}},g=!(!e||"horizontal"!==o.meta.major.orientation||!c),y=!e||n.meta.isContinuous;return m.forEach((i=>{h.lines[l].push((({isDimension:e,refLineLayout:t,refLineModel:n,layoutService:r,colorModel:o,dockService:i,chart:a,scale:s,axis:l,invert:c,component:u,isContinuous:d})=>{var p,f;const m={dir:l,line:{strokeWidth:(null==t||null===(p=t.style)||void 0===p?void 0:p.lineThickness)||2,strokeDasharray:null==t||null===(f=t.style)||void 0===f?void 0:f.lineType,stroke:o.resolveUIColor(t.paletteColor||{index:t.color})}};return!e||r.meta.isContinuous?(m.scale=s,m.value=t.refLineExpr.value):(m.valueInfo=Ha.resolveValueInfo({refLineLayout:t,refLineModel:n,layoutService:r}),m.value=()=>{var e;const o=ma.getScaledPosition({scale:a.scale(s),value:Ha.resolveValue({refLineLayout:t,refLineModel:n,layoutService:r}),valueInfo:m.valueInfo,size:null===(e=a.component(u))||void 0===e?void 0:e.rect["horizontal"===i.meta.major.orientation?"width":"height"],align:t.align,invert:c,layoutService:r,isContinuous:d});return Number.isNaN(o)?void 0:o}),m})({isDimension:e,refLineLayout:i,refLineModel:t,layoutService:n,colorModel:r,dockService:o,chart:a,scale:s,axis:l,invert:g,component:d,isContinuous:y}))})),h}const Va={referenceLine:{label:{name:{fontFamily:"Source Sans Pro, sans-serif",fontSize:"12px"}},outOfBounds:{backgroundColor:"#737373",color:"#e6e6e6",fontFamily:"Source Sans Pro, sans-serif",fontSize:"10px"}}};function Wa({isDimension:e,refLineModel:t={},layoutService:n,colorModel:r,animationsEnabled:o,dock:i,scale:a,style:s,formatter:l,theme:c,localeInfo:u,rtl:d,key:p,path:f}){const m=e?t.dimensionRefLineLabels:f?t.query.getRefLineLabels(f):t.measureRefLineLabels;if(!m.length)return[];const h=[],g=!e||n.meta.isContinuous,y=m.map((e=>(({refLineLayout:e,refLineModel:t,layoutService:n,colorModel:r,scale:o,theme:i,isContinuous:a})=>{const s=r.resolveUIColor(e.paletteColor||{index:e.color}),{align:l,style:c}=e,{fontSize:u,fontFamily:d,fontStyle:p,fontWeight:f,textDecoration:m}=c||{},h={align:l,text:e.label,fill:e.coloredBackground?i.getContrastingColorTo(s):s,fontSize:u,fontFamily:d,fontStyle:p,fontWeight:f,textDecoration:m,showValue:!1!==e.showValue,showLabel:!1!==e.showLabel,inputValue:e.refLineExpr.value,inputValueLabel:e.refLineExpr.label};return e.coloredBackground&&(h.background={fill:s}),a?(h.scale=o,h.value=e.refLineExpr.value):(h.value=()=>Ha.resolveValue({refLineLayout:e,refLineModel:t,layoutService:n}),h.valueText=()=>Ha.resolveValueText({refLineLayout:e,refLineModel:t,layoutService:n}),h.valueInfo=()=>Ha.resolveValueInfo({refLineLayout:e,refLineModel:t,layoutService:n})),h})({refLineLayout:e,refLineModel:t,layoutService:n,colorModel:r,scale:a,theme:c,isContinuous:g})));return h.push((({isDimension:e,layoutService:t,animationsEnabled:n,style:r,labels:o,scale:i,formatter:a,dock:s,key:l,rtl:c,theme:u,isContinuous:d,localeInfo:p})=>({key:l,type:"reference-line-labels",renderer:"svg",labels:o,formatter:a,scale:i,layoutService:t,layout:{dock:s,rtl:c},theme:u,isContinuous:d,isDimension:e,localeInfo:p,style:{label:{fontFamily:r.referenceLine.label.name.fontFamily,fontSize:r.referenceLine.label.name.fontSize,fontStyle:r.referenceLine.label.name.fontStyle,fontWeight:r.referenceLine.label.name.fontWeight,textDecoration:r.referenceLine.label.name.textDecoration,padding:{top:2,bottom:2,left:c?2:4,right:c?4:2},background:{padding:{top:1,bottom:1,left:2,right:2}},maxWidth:100,gap:"left"===s||"right"===s?10:16},oob:{size:8,fill:r.referenceLine.outOfBounds.backgroundColor,text:{fontFamily:r.referenceLine.outOfBounds.fontFamily,fontSize:r.referenceLine.outOfBounds.fontSize,fill:r.referenceLine.outOfBounds.color,background:{fill:r.referenceLine.outOfBounds.backgroundColor}}}},animations:{enabled:n,trackBy:ja.refLineLabels.trackBy,compensateForLayoutChanges:ja.refLineLabels.compensateForLayoutChanges}}))({isDimension:e,rtl:d,style:de(!0,Va,s),dock:i,key:p,labels:y,scale:a,formatter:l,layoutService:n,animationsEnabled:o,theme:c,isContinuous:g,localeInfo:u})),h}const Ua={combineBounds(e){let t=Number.MAX_VALUE,n=-Number.MAX_VALUE,r=Number.MAX_VALUE,o=-Number.MAX_VALUE;return e.forEach((e=>{e&&(t=Math.min(t,e.x,e.x+e.width),n=Math.max(n,e.x,e.x+e.width),r=Math.min(r,e.y,e.y+e.height),o=Math.max(o,e.y,e.y+e.height))})),{x:t,y:r,width:n-t,height:o-r}}},Ka=(e,t,n)=>{if(!e)return Promise.resolve();let r=_i.generate(t,n);return de(!0,t,n),r&&r.length?(r=r.map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}))),e.applyPatches(r,!0)):Promise.resolve()},Ga=e=>{var t;return!(!e||e.qHasSoftPatches||e.qExtendsId||!(((null===(t=e.qMeta)||void 0===t?void 0:t.privileges)||[]).indexOf("update")>-1))};function Ya(e,t=!1){const n=t?"IM_5791_SVG_LABEL_RENDERING":"IM_4962_SVG_CHART_LABELS";if(null!=e&&e.isEnabled(n))return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?void 0:"svg"}const Xa={ref:null,refFn:e=>{var t;const n=null===(t=e.qHyperCubeDef.qMeasures)||void 0===t?void 0:t.findIndex((e=>{var t;return"colorByExpression"===(null===(t=e.qAttributeExpressions)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.id)}));return`qHyperCubeDef.qMeasures.${-1===n?0:n}.qAttributeExpressions.0.qExpression`},change(e){var t;const n=null===(t=e.qHyperCubeDef)||void 0===t||null===(t=t.qMeasures)||void 0===t?void 0:t.findIndex((e=>{var t;return"colorByExpression"===(null===(t=e.qAttributeExpressions)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.id)})),r=Se.getValue(e,`qHyperCubeDef.qMeasures.${-1===n?0:n}.qAttributeExpressions.0`),o=Se.getValue(e,"color");r&&(r.id="colorByExpression",o&&(o.colorExpression=r.qExpression))}},Ja={d:"M7 4h9v1H7zm2 4h7v1H9zm2 4h5v1h-5zM1 4v3.526a3.5 3.5 0 0 0 3.5 3.5h2.31L5.22 9.402l.715-.7L8.7 11.527 5.935 14.35l-.714-.7 1.59-1.624H4.5a4.5 4.5 0 0 1-4.5-4.5V4z"},Za={d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7Z"},Qa={d:"M 6 2 h 10 V 1 H 6 Z m 5 5 h 5 V 6 h -5 Z m 5 5 h -5 v -1 h 5 Z M 5 10 h 1 v 2.663 a 3.5 3.5 0 1 0 -2.922 0.036 l -0.406 0.914 A 4.501 4.501 0 1 1 7.329 13 H 9 v 1 H 5 Z"},es={d:"M13,7 L8,7 L13,7 L13,4.98151367 C13,2.23029964 10.7614237,0 8,0 C5.23857625,0 3,2.23029964 3,4.98151367 L3,7 L3.75,7 L3,7 L4.5,7 L4.5,5.33193359 C4.5,3.21561511 5.54860291,1.5 8,1.5 C10.4513971,1.5 11.5,3.21561511 11.5,5.33193359 L11.5,7 L12.25,7 L3,7 C2.44771525,7 2,7.44771525 2,8 L2,15 C2,15.5522847 2.44771525,16 3,16 L13,16 C13.5522847,16 14,15.5522847 14,15 L14,8 C14,7.44771525 13.5522847,7 13,7 L3,7 L13,7 Z"},ts="m 13.914 4.5 l -7.707 7.707 L 2 8 l 0.707 -0.707 l 3.5 3.5 l 7 -7 Z",ns={d:"M2.4,4 L13.6,4 C13.7104569,4 13.8,4.08954305 13.8,4.2 C13.8,4.24327404 13.7859644,4.28538077 13.76,4.32 L8.16,11.7866667 C8.09372583,11.8750322 7.96836556,11.8929408 7.88,11.8266667 C7.86483887,11.8152958 7.85137085,11.8018278 7.84,11.7866667 L2.24,4.32 C2.17372583,4.23163444 2.19163444,4.10627417 2.28,4.04 C2.31461923,4.01403557 2.35672596,4 2.4,4 Z"},rs={d:"M4,13.6 L4,2.4 C4,2.28954305 4.08954305,2.2 4.2,2.2 C4.24327404,2.2 4.28538077,2.21403557 4.32,2.24 L11.7866667,7.84 C11.8750322,7.90627417 11.8929408,8.03163444 11.8266667,8.12 C11.8152958,8.13516113 11.8018278,8.14862915 11.7866667,8.16 L4.32,13.76 C4.23163444,13.8262742 4.10627417,13.8083656 4.04,13.72 C4.01403557,13.6853808 4,13.643274 4,13.6 Z"},os={single:"N",drillDown:"H",cyclic:"C"},is={N:void 0,H:Ja,C:Qa},as=(e,t)=>{switch(e.qGrouping){case os.single:return;case os.drillDown:return{path:Ja,tooltip:"Tooltip.dimensions.drilldown",onClick:void 0};case os.cyclic:return{path:t?Za:Qa,tooltip:"Tooltip.dimensions.cyclic",onClick:t?({onError:n})=>{t.getDimension(e.qLibraryId).then((e=>{e.stepCycle?e.stepCycle(1):n()})).catch((()=>null))}:void 0};default:return}};function ss(e,t,n){(function({model:e,properties:t}){return e.modifiers?e.modifiers.apply({model:e,properties:t}):Promise.resolve()})({model:e,properties:n}).then((()=>{e.colorSupport&&e.colorSupport.colorByUpdater(n,"qHyperCubeDef.");let r=_i.generate(t,n);r&&r.length&&(r=r.map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}))),e.applyPatches(r,!0))}))}function ls(e,t,n,r,o,i){e.getEffectiveProperties().then((a=>{const s=a.qHyperCubeDef[r].findIndex((e=>e.qDef.cId===t)),l=a.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r].findIndex((e=>e.qDef.cId===n)),c=de(!0,{},a),u=c.qHyperCubeDef[r][s],d=c.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l];d.qAttributeDimensions=u.qAttributeDimensions,u.qAttributeDimensions=[],i||(d.qAttributeExpressions=u.qAttributeExpressions,u.qAttributeExpressions=[]),c.qHyperCubeDef[r][s]=d,c.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l]=u,o&&o({oldItem:u,newItem:d,oldProperties:a,newProperties:c,model:e}),ss(e,a,c)}))}function cs(e){return e.qGrouping===os.single?e.qFallbackTitle||"":e.title||""}const us=async(e,t,n,r,o="/qHyperCubeDef")=>{switch(e.qGrouping){case os.drillDown:{const n=e.qGroupFallbackTitles.slice(0,e.qGroupPos+1).map(((n,i)=>({id:`${e.cId}-${i}`,title:n,selected:e.qGroupPos===i,onSelect:()=>{t.drillUp(o,r,e.qGroupPos-i)}})));return{id:e.cId,icon:Ja,groupItem:!0,title:e.title,selected:!1,children:n}}case os.cyclic:{const t=await(null==n?void 0:n.getDimension(e.qLibraryId)),r=!(null!=t&&t.setActiveField)?[]:e.qGroupFallbackTitles.map(((n,r)=>({id:`${e.cId}-${r}`,title:n,selected:e.qGroupPos===r,onSelect:()=>{t.setActiveField(r).catch((()=>null))}})));return{id:e.cId,icon:Qa,groupItem:!0,title:e.title,selected:!1,children:r}}default:return{selected:!0,id:e.cId,title:cs(e)}}},ds=(e,t)=>{const n=[],r=[];return t.forEach((t=>{t.qCalcCondition.qCond.qv&&r.push(e.evaluate(t.qCalcCondition.qCond.qv).then((e=>{"0"===e&&n.push(t.qDef.cId)})))})),Promise.all(r).then((()=>n))},ps=async(e,t,n,r,o)=>{const i=await ds(e,n),a=n.filter((e=>!i.includes(e.qDef.cId))),s=await Promise.all(a.map((async n=>{const i=await((e,t)=>{if(e.qLibraryId)return t.getDimension(e.qLibraryId).then((e=>e.getLayout())).catch((()=>null))})(n,e),a=await function(e,t,n,r){if(e.qLibraryId)return r?r.qDim.qGrouping===os.single&&r.qDim.qLabelExpression?Promise.resolve(r.qDim.qLabelExpression):Promise.resolve(r.qDim.title):Promise.resolve(n.get("Object.ErrorMessage.MissingDimension"));const o=e.qDef.qLabelExpression;if(o)return t.evaluate(o);const i=e.qDef.qFieldLabels[0]||e.qDef.qFieldDefs[0];return Promise.resolve(i)}(n,e,r,i),s=(null==i?void 0:i.qDim.qGrouping)||n.qDef.qGrouping,l=is[s],c=s!==os.single;return{id:n.qDef.cId,icon:l,groupItem:c,selected:!1,title:a,onSelect(e){ls(t,e,n.qDef.cId,"qDimensions",o)}}})));return s};function fs({column:e,dir:t,dock:n,altList:r,model:o,translator:i,app:a,onChange:s,activeInfo:l,allowChangeOfAlternatives:c}){const u=l.qGrouping===os.single,d=l.qGrouping===os.drillDown;return 0===r.length&&u?null:{dir:t,dock:n,getPopoverOptions:async()=>{const t=await us(l,o,a,e),n=c?await ps(a,o,r,i,s):[];return(u||d||0===t.children.length)&&0===n.length?[]:[t,...n]}}}function ms(e,t,n,r,o="/qHyperCubeDef"){return{breadcrumbs:e.qGrouping===os.drillDown?e.qGroupFallbackTitles.slice(0,e.qGroupPos):[],icon:as(e,r),index:t,locked:!!e.qLocked,text:e.qGrouping===os.single?e.qFallbackTitle:e.qGroupFallbackTitles[e.qGroupPos],popoverText:cs(e),...n&&{drillUp(e){n.drillUp(o,t,e)}},id:e.cId}}function hs({activeInfo:e,altList:t,app:n,dir:r,dock:o,model:i,onChange:a,skipAttributeExpressions:s,translator:l,allowChangeOfAlternatives:c}){return 0===t.length?null:{dir:r,dock:o,getPopoverOptions:async()=>{const r=[{id:e.cId,title:e.qFallbackTitle,selected:!0,onSelect:()=>{}}],o=await ds(n,t),u=t.filter((e=>!o.includes(e.qDef.cId))),d=c?await Promise.all(u.map((async e=>{const t=await function(e,t,n){if(e.qLibraryId)return t.getMeasure(e.qLibraryId).then((e=>e.getLayout())).catch((()=>null)).then((e=>e?e.qMeasure.qLabelExpression?e.qMeasure.qLabelExpression:e.qMeasure.qLabel||e.qMeasure.qDef:n.get("Object.ErrorMessage.MissingMeasure")));const r=e.qDef.qLabelExpression;if(r)return t.evaluate(r);const o=e.qDef.qLabel||e.qDef.qDef;return Promise.resolve(o)}(e,n,l);return{id:e.qDef.cId,selected:!1,title:t,onSelect(t){ls(i,t,e.qDef.cId,"qMeasures",a,s)}}}))):[];return 0===d.length?[]:[...r,...d]}}}function gs(e,t){return{breadcrumbs:[],index:t,locked:!1,text:e.qFallbackTitle,popoverText:e.qFallbackTitle,id:e.cId}}function ys(){return ys=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ys.apply(null,arguments)}var vs={exports:{}};function bs(){}function xs(){}xs.resetWarningCache=bs;vs.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:xs,resetWarningCache:bs};return n.PropTypes=n,n}();var Ss=ee(vs.exports),Ms={black:"#000",white:"#fff"},Cs="#e57373",ws="#f44336",ks="#d32f2f",Ts="#ff4081",qs="#f50057",Es="#c51162",Ls="#7986cb",Ns="#3f51b5",Os="#303f9f",Ds="#64b5f6",As="#2196f3",Rs="#1976d2",Is="#81c784",Ps="#4caf50",zs="#388e3c",js="#ffb74d",Fs="#ff9800",Bs="#f57c00",_s={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};function Hs(){return Hs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hs.apply(null,arguments)}function $s(e){return $s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$s(e)}function Vs(e){return e&&"object"===$s(e)&&e.constructor===Object}function Ws(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?Hs({},e):e;return Vs(e)&&Vs(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(Vs(t[o])&&o in e?r[o]=Ws(e[o],t[o],n):r[o]=t[o])})),r}function Us(e){var t=function(e,t){if("object"!=$s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=$s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==$s(t)?t:t+""}function Ks(e,t,n){return(t=Us(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gs(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}function Ys(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function Xs(e){if(e.type)return e;if("#"===e.charAt(0))return Xs(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(Gs(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function Js(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function Zs(e){var t="hsl"===(e=Xs(e)).type?Xs(function(e){var t=(e=Xs(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),Js({type:s,values:l})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Qs(e,t){return e=Xs(e),t=Ys(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,Js(e)}function el(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function tl(e,t){if(null==e)return{};var n,r,o=el(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var nl=["xs","sm","md","lg","xl"];function rl(e,t,n){var r;return Hs({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),Hs({paddingLeft:t(2),paddingRight:t(2)},n,Ks({},e.up("sm"),Hs({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},Ks(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),Ks(r,e.up("sm"),{minHeight:64}),r)},n)}var ol={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Ms.white,default:_s[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},il={text:{primary:Ms.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:_s[800],default:"#303030"},action:{active:Ms.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function al(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=Xs(e),t=Ys(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return Js(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=Xs(e),t=Ys(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return Js(e)}(e.main,i)))}function sl(e){var t=e.primary,n=void 0===t?{light:Ls,main:Ns,dark:Os}:t,r=e.secondary,o=void 0===r?{light:Ts,main:qs,dark:Es}:r,i=e.error,a=void 0===i?{light:Cs,main:ws,dark:ks}:i,s=e.warning,l=void 0===s?{light:js,main:Fs,dark:Bs}:s,c=e.info,u=void 0===c?{light:Ds,main:As,dark:Rs}:c,d=e.success,p=void 0===d?{light:Is,main:Ps,dark:zs}:d,f=e.type,m=void 0===f?"light":f,h=e.contrastThreshold,g=void 0===h?3:h,y=e.tonalOffset,v=void 0===y?.2:y,b=tl(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function x(e){var t=function(e,t){var n=Zs(e),r=Zs(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,il.text.primary)>=g?il.text.primary:ol.text.primary;return t}var S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=Hs({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(Gs(4,t));if("string"!=typeof e.main)throw new Error(Gs(5,JSON.stringify(e.main)));return al(e,"light",n,v),al(e,"dark",r,v),e.contrastText||(e.contrastText=x(e.main)),e},M={dark:il,light:ol};return Ws(Hs({common:Ms,type:m,primary:S(n),secondary:S(o,"A400","A200","A700"),error:S(a),warning:S(l),info:S(u),success:S(p),grey:_s,contrastThreshold:g,getContrastText:x,augmentColor:S,tonalOffset:v},M[m]),b)}function ll(e){return Math.round(1e5*e)/1e5}function cl(e){return ll(e)}var ul={textTransform:"uppercase"},dl='"Roboto", "Helvetica", "Arial", sans-serif';function pl(e,t){var n="function"==typeof t?t(e):t,r=n.fontFamily,o=void 0===r?dl:r,i=n.fontSize,a=void 0===i?14:i,s=n.fontWeightLight,l=void 0===s?300:s,c=n.fontWeightRegular,u=void 0===c?400:c,d=n.fontWeightMedium,p=void 0===d?500:d,f=n.fontWeightBold,m=void 0===f?700:f,h=n.htmlFontSize,g=void 0===h?16:h,y=n.allVariants,v=n.pxToRem,b=tl(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),x=a/14,S=v||function(e){return"".concat(e/g*x,"rem")},M=function(e,t,n,r,i){return Hs({fontFamily:o,fontWeight:e,fontSize:S(t),lineHeight:n},o===dl?{letterSpacing:"".concat(ll(r/t),"em")}:{},i,y)},C={h1:M(l,96,1.167,-1.5),h2:M(l,60,1.2,-.5),h3:M(u,48,1.167,0),h4:M(u,34,1.235,.25),h5:M(u,24,1.334,0),h6:M(p,20,1.6,.15),subtitle1:M(u,16,1.75,.15),subtitle2:M(p,14,1.57,.1),body1:M(u,16,1.5,.15),body2:M(u,14,1.43,.15),button:M(p,14,1.75,.4,ul),caption:M(u,12,1.66,.4),overline:M(u,12,2.66,1,ul)};return Ws(Hs({htmlFontSize:g,pxToRem:S,round:cl,fontFamily:o,fontSize:a,fontWeightLight:l,fontWeightRegular:u,fontWeightMedium:p,fontWeightBold:m},C),b,{clone:!1})}function fl(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var ml=["none",fl(0,2,1,-1,0,1,1,0,0,1,3,0),fl(0,3,1,-2,0,2,2,0,0,1,5,0),fl(0,3,3,-2,0,3,4,0,0,1,8,0),fl(0,2,4,-1,0,4,5,0,0,1,10,0),fl(0,3,5,-1,0,5,8,0,0,1,14,0),fl(0,3,5,-1,0,6,10,0,0,1,18,0),fl(0,4,5,-2,0,7,10,1,0,2,16,1),fl(0,5,5,-3,0,8,10,1,0,3,14,2),fl(0,5,6,-3,0,9,12,1,0,3,16,2),fl(0,6,6,-3,0,10,14,1,0,4,18,3),fl(0,6,7,-4,0,11,15,1,0,4,20,3),fl(0,7,8,-4,0,12,17,2,0,5,22,4),fl(0,7,8,-4,0,13,19,2,0,5,24,4),fl(0,7,9,-4,0,14,21,2,0,5,26,4),fl(0,8,9,-5,0,15,22,2,0,6,28,5),fl(0,8,10,-5,0,16,24,2,0,6,30,5),fl(0,8,11,-5,0,17,26,2,0,6,32,5),fl(0,9,11,-5,0,18,28,2,0,7,34,6),fl(0,9,12,-6,0,19,29,2,0,7,36,6),fl(0,10,13,-6,0,20,31,3,0,8,38,7),fl(0,10,13,-6,0,21,33,3,0,8,40,7),fl(0,10,14,-6,0,22,35,3,0,8,42,7),fl(0,11,14,-7,0,23,36,3,0,9,44,8),fl(0,11,15,-7,0,24,38,3,0,9,46,8)],hl={borderRadius:4};function gl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function yl(e,t){if(e){if("string"==typeof e)return gl(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gl(e,t):void 0}}function vl(e){return function(e){if(Array.isArray(e))return gl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||yl(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||yl(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xl(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=function(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===n.length?t(1):1===n.length?t(n[0]):n.map((function(e){if("string"==typeof e)return e;var n=t(e);return"number"==typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n}var Sl={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)"},Ml={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Cl(e){return"".concat(Math.round(e),"ms")}var wl={easing:Sl,duration:Ml,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,r=void 0===n?Ml.standard:n,o=t.easing,i=void 0===o?Sl.easeInOut:o,a=t.delay,s=void 0===a?0:a;return tl(t,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof r?r:Cl(r)," ").concat(i," ").concat("string"==typeof s?s:Cl(s))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}},kl={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Tl(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,o=void 0===r?{}:r,i=e.palette,a=void 0===i?{}:i,s=e.spacing,l=e.typography,c=void 0===l?{}:l,u=tl(e,["breakpoints","mixins","palette","spacing","typography"]),d=sl(a),p=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,r=e.unit,o=void 0===r?"px":r,i=e.step,a=void 0===i?5:i,s=tl(e,["values","unit","step"]);function l(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(o,")")}function c(e,t){var r=nl.indexOf(t);return r===nl.length-1?l(e):"@media (min-width:".concat("number"==typeof n[e]?n[e]:e).concat(o,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof n[nl[r+1]]?n[nl[r+1]]:t)-a/100).concat(o,")")}return Hs({keys:nl,values:n,up:l,down:function(e){var t=nl.indexOf(e)+1,r=n[nl[t]];return t===nl.length?l("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-a/100).concat(o,")")},between:c,only:function(e){return c(e,e)},width:function(e){return n[e]}},s)}(n),f=xl(s),m=Ws({breakpoints:p,direction:"ltr",mixins:rl(p,f,o),overrides:{},palette:d,props:{},shadows:ml,typography:pl(d,c),spacing:f,shape:hl,transitions:wl,zIndex:kl},u),h=arguments.length,g=new Array(h>1?h-1:0),y=1;y<h;y++)g[y-1]=arguments[y];return m=g.reduce((function(e,t){return Ws(e,t)}),m)}var ql="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",El=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function Ll(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,o=void 0===r?"jss":r,i=e.seed,a=void 0===i?"":i,s=""===a?"":"".concat(a,"-"),l=0,c=function(){return l+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==El.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[ql]&&""===a?"".concat(i,"-").concat(c()):i}return"".concat(s).concat(o).concat(c())}}function Nl(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var o,i=t.props[n];for(o in i)void 0===r[o]&&(r[o]=i[o]);return r}var Ol="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dl="object"===("undefined"==typeof window?"undefined":Ol(window))&&"object"===("undefined"==typeof document?"undefined":Ol(document))&&9===document.nodeType;function Al(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Us(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Rl(e,t){return Rl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Rl(e,t)}function Il(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Rl(e,t)}function Pl(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var zl={}.constructor;function jl(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(jl);if(e.constructor!==zl)return e;var t={};for(var n in e)t[n]=jl(e[n]);return t}function Fl(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=jl(t),i=r.plugins.onCreateRule(e,o,n);return i||(e[0],null)}var Bl=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},_l=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=Bl(e[n]," ");else t=Bl(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function Hl(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function $l(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function Vl(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var o=n.indent,i=void 0===o?0:o,a=t.fallbacks;!1===n.format&&(i=-1/0);var s=Hl(n),l=s.linebreak,c=s.space;if(e&&i++,a)if(Array.isArray(a))for(var u=0;u<a.length;u++){var d=a[u];for(var p in d){var f=d[p];null!=f&&(r&&(r+=l),r+=$l(p+":"+c+_l(f)+";",i))}}else for(var m in a){var h=a[m];null!=h&&(r&&(r+=l),r+=$l(m+":"+c+_l(h)+";",i))}for(var g in t){var y=t[g];null!=y&&"fallbacks"!==g&&(r&&(r+=l),r+=$l(g+":"+c+_l(y)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),$l(""+e+c+"{"+r,--i)+$l("}",i)):r}var Wl=/([[\].#*$><+~=|^:(),"'`\s])/g,Ul="undefined"!=typeof CSS&&CSS.escape,Kl=function(e){return Ul?Ul(e):e.replace(Wl,"\\$1")},Gl=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,o=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var o=t;n&&!1===n.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!r)return this;var s=i&&a;if(s?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),Yl=function(e){function t(t,n,r){var o;o=e.call(this,t,n,r)||this;var i=r.selector,a=r.scoped,s=r.sheet,l=r.generateId;return i?o.selectorText=i:!1!==a&&(o.id=l(Pl(Pl(o)),s),o.selectorText="."+Kl(o.id)),o}Il(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=_l(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Hs({},e,{allowEmpty:!0}):e;return Vl(this.selectorText,this.style,n)},Al(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(Gl),Xl={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new Yl(e,t,n)}},Jl={indent:1,children:!0},Zl=/@([\w-]+)/,Ql=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(Zl);for(var o in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new Cc(Hs({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=Jl);var t=Hl(e).linebreak;if(null==e.indent&&(e.indent=Jl.indent),null==e.children&&(e.children=Jl.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),ec=/@container|@media|@supports\s+/,tc={onCreateRule:function(e,t,n){return ec.test(e)?new Ql(e,t,n):null}},nc={indent:1,children:!0},rc=/@keyframes\s+([\w-]+)/,oc=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(rc);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var o=n.scoped,i=n.sheet,a=n.generateId;for(var s in this.id=!1===o?this.name:Kl(a(this,i)),this.rules=new Cc(Hs({},n,{parent:this})),t)this.rules.add(s,t[s],Hs({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=nc);var t=Hl(e).linebreak;if(null==e.indent&&(e.indent=nc.indent),null==e.children&&(e.children=nc.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),ic=/@keyframes\s+/,ac=/\$([\w-]+)/g,sc=function(e,t){return"string"==typeof e?e.replace(ac,(function(e,n){return n in t?t[n]:e})):e},lc=function(e,t,n){var r=e[t],o=sc(r,n);o!==r&&(e[t]=o)},cc={onCreateRule:function(e,t,n){return"string"==typeof e&&ic.test(e)?new oc(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&lc(e,"animation-name",n.keyframes),"animation"in e&&lc(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return sc(e,r.keyframes);default:return e}}},uc=function(e){function t(){return e.apply(this,arguments)||this}return Il(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Hs({},e,{allowEmpty:!0}):e;return Vl(this.key,this.style,n)},t}(Gl),dc={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new uc(e,t,n):null}},pc=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=Hl(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=Vl(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return Vl(this.at,this.style,e)},e}(),fc=/@font-face/,mc={onCreateRule:function(e,t,n){return fc.test(e)?new pc(e,t,n):null}},hc=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return Vl(this.key,this.style,e)},e}(),gc={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new hc(e,t,n):null}},yc=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),vc={"@charset":!0,"@import":!0,"@namespace":!0},bc={onCreateRule:function(e,t,n){return e in vc?new yc(e,t,n):null}},xc=[Xl,tc,cc,dc,mc,gc,bc],Sc={process:!0},Mc={force:!0,process:!0},Cc=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,o=r.parent,i=r.sheet,a=r.jss,s=r.Renderer,l=r.generateId,c=r.scoped,u=Hs({classes:this.classes,parent:o,sheet:i,jss:a,Renderer:s,generateId:l,scoped:c,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(u.selector="."+Kl(this.classes[d]));var p=Fl(d,t,u);if(!p)return null;this.register(p);var f=void 0===u.index?this.index.length:u.index;return this.index.splice(f,0,p),p},t.replace=function(e,t,n){var r=this.get(e),o=this.index.indexOf(r);r&&this.remove(r);var i=n;return-1!==o&&(i=Hs({},n,{index:o})),this.add(e,t,i)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof Yl?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof oc&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Yl?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof oc&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=Sc);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t.style;if(i.onUpdate(n,t,a,r),r.process&&s&&s!==t.style){for(var l in i.onProcessStyle(t.style,t,a),t.style){var c=t.style[l];c!==s[l]&&t.prop(l,c,Mc)}for(var u in s){var d=t.style[u],p=s[u];null==d&&d!==p&&t.prop(u,null,Mc)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=Hl(e).linebreak,i=0;i<this.index.length;i++){var a=this.index[i].toString(e);(a||r)&&(t&&(t+=o),t+=a)}return t},e}(),wc=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=Hs({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new Cc(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var o=this.rules.add(e,t,n);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(r?r.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var o=this.rules.replace(e,t,n);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?r.renderable&&this.renderer.replaceRule(r.renderable,o):this.renderer.deleteRule(r)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var o=this.addRule(r,e[r],t);o&&n.push(o)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),kc=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var o=this.registry.onCreateRule[r](e,t,n);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,o=0;o<this.registry.onChangeValue.length;o++)r=this.registry.onChangeValue[o](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),Tc=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=el(t,["attached"]),o=Hl(r).linebreak,i="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=n&&s.attached!==n||(i&&(i+=o),i+=s.toString(r))}return i},Al(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),qc=new Tc,Ec="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),Lc="2f1acc6c3a606b082e5eef5e54414ffb";null==Ec[Lc]&&(Ec[Lc]=0);var Nc=Ec[Lc]++,Oc=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var o="",i="";return r&&(r.options.classNamePrefix&&(i=r.options.classNamePrefix),null!=r.options.jss.id&&(o=String(r.options.jss.id))),e.minify?""+(i||"c")+Nc+o+t:i+n.key+"-"+Nc+(o?"-"+o:"")+"-"+t}},Dc=function(e){var t;return function(){return t||(t=e()),t}},Ac=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},Rc=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=_l(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var o=r?r.indexOf("!important"):-1,i=o>-1?r.substr(0,o-1):r;e.style.setProperty(t,i,o>-1?"important":"")}}catch(e){return!1}return!0},Ic=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},Pc=function(e,t){return e.selectorText=t,e.selectorText===t},zc=Dc((function(){return document.querySelector("head")}));function jc(e){var t=qc.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var o=function(e){for(var t=zc(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var Fc=Dc((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),Bc=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[n]},_c=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},Hc=function(){function e(e){this.getPropertyValue=Ac,this.setProperty=Rc,this.removeProperty=Ic,this.setSelector=Pc,this.hasInsertedRules=!1,this.cssRules=[],e&&qc.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var i=Fc();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=jc(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var o=n,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else zc().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,o=n;if("conditional"===e.type||"keyframes"===e.type){var i=_c(n,t);if(!1===(o=Bc(n,r.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(r.rules,o),o}var a=e.toString();if(!a)return!1;var s=_c(n,t),l=Bc(n,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof wc&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),$c=0,Vc=function(){function e(e){this.id=$c++,this.version="10.10.0",this.plugins=new kc,this.options={id:{minify:!1},createGenerateId:Oc,Renderer:Dl?Hc:null,plugins:[]},this.generateId=Oc({minify:!1});for(var t=0;t<xc.length;t++)this.plugins.use(xc[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=Hs({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!=typeof n&&(n=0===qc.index?0:qc.index+1);var r=new wc(e,Hs({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),qc.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var r=Hs({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var o=Fl(e,t,r);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}(),Wc=function(e){return new Vc(e)},Uc="object"==typeof CSS&&null!=CSS&&"number"in CSS;function Kc(e){var t=null;for(var n in e){var r=e[n],o=typeof r;if("function"===o)t||(t={}),t[n]=r;else if("object"===o&&null!==r&&!Array.isArray(r)){var i=Kc(r);i&&(t||(t={}),t[n]=i)}}return t}
7
+ System.register(["picasso.js","picasso-plugin-q","hammerjs","qlik-chart-modules","react","react-dom","@nebula.js/stardust","qlik-object-conversion"],(function(e){"use strict";var t,n,r,o,i,a,s,l,c,u,d,p,f,m,h,g,y,v,b,x,S,M,C,w,k,E,T,q,L,N,O,D,A,R,P,I,z,j,F,B,_,H,$,V,W,U,K,G,Y,X,J,Z,Q,ee;return{setters:[function(e){t=e.default},function(e){n=e.default},function(e){r=e.default},function(e){o=e.getValue,i=e.setValue,a=e.debouncer,s=e.throttler,l=e.cache,c=e.storage,u=e.memoize,d=e.selectionService,p=e.colorService,f=e.disclaimerService,m=e.layoutService,h=e.dockService,g=e.themeService,y=e.alternativeService,v=e.pluginService,b=e.fontResolver},function(e){x=e.default,S=e,M=e.isValidElement,C=e.cloneElement,w=e.Children,k=e.forwardRef,E=e.useContext,T=e.useState,q=e.useEffect,L=e.useRef},function(e){N=e,O=e.default},function(e){D=e.useTranslator,A=e.useEmbed,R=e.useTheme,P=e.useState,I=e.useDeviceType,z=e.useAppLayout,j=e.useEffect,F=e.useElement,B=e.useOptions,_=e.useLayout,H=e.useAction,$=e.useStaleLayout,V=e.useModel,W=e.useApp,U=e.usePlugins,K=e.useSelections,G=e.useConstraints,Y=e.useRect,X=e.usePromise,J=e.onTakeSnapshot,Z=e.useImperativeHandle,Q=e.useRenderState},function(e){ee=e.default}],execute:function(){e("default",(function(e){const i=function(){const e=t();return e.use(n),e.use(function(e){if("function"!=typeof e.interaction)return t=>{t.interaction("hammer",re(e))};return void e.interaction("hammer",re(Hammer))}(r)),e.use(function(){return function(e){e.renderer("react",function(){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",O.render(function(e,t){return x.createElement(Dd,{generateClassName:t},x.createElement(Cp,{theme:gm},e))}(e,ym),r),!0},itemsAt:()=>[],findShapes:()=>[],clear:()=>(r&&O.unmountComponentAtNode(r),i),destroy(){r&&r.parentElement&&(O.unmountComponentAtNode(r),r.parentElement.removeChild(r)),r=null},size:t=>(t&&(o=e(t)),o)};return i}}()),e.component("data-title",function(e){function t(e){return!e.isDimension&&ke.getValue(e,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.length")>0}function n(e){return e.isDimension&&ke.getValue(e,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.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:r,explicitItemInfos:o,hyperCube:i,hyperCubeDef:a,isDimension:s,minWidth:l,model:c,onChangeToAlternative:u,padding:d,rtl:p,selections:f,skipAttributeExpressions:m,translator:h,supportConditional:g=!1},layout:{dock:y}}=this.settings,v="top"!==y&&"bottom"!==y||!p?"ltr":"rtl",b=function(e,t){const n={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",height:"100%"};"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");return n}(y,this.rect),S=a&&a.qLayoutExclude&&a.qLayoutExclude.qHyperCubeDef,M=S&&S[s?"qDimensions":"qMeasures"]||[],C=o||i[s?"qDimensionInfo":"qMeasureInfo"],w=s?ys:bs,k=s?vs:xs,E=Boolean(c&&c.colorSupport&&c.modifiers),T=E&&(n(this.settings.settings)||t(this.settings.settings)),q=C.map(((t,n)=>{var o;const i="number"==typeof t.explicitColumn?t.explicitColumn:n,a=k(t,i,c,e),v=n===C.length-1,b=Boolean(e)&&s&&"N"!==t.qGrouping,S=E||b?w({column:i,activeInfo:t,altList:M,app:e,dir:p?"rtl":"ltr",dock:hm(y),model:c,onChange:u,skipAttributeExpressions:m,translator:h,allowChangeOfAlternatives:E}):void 0;return x.createElement(x.Fragment,{key:t.cId},x.createElement(mm,{chartId:null!==(o=null==c?void 0:c.id)&&void 0!==o?o:"",showGroupDimOptions:b,popover:S,titleData:a,model:c,translator:h,selections:f,disabled:r(),style:this.style,isDimension:s,padding:d,minWidth:l,hasAlternative:T,supportConditional:g}),!v&&x.createElement("span",{style:{lineHeight:"normal",...this.style}},", "))}));return x.createElement("div",{style:b,dir:v},q)}}}(e.renderer("svg")()))}}()),e.use(iT),e.renderer("react-qcm",UE),e.component("box-sliced-hat",nT),e.component("box-out-of-bounds",JE),e.component("disclaimer",_E),e.component("scrollbar",Hg),e.component("scroll-hint",ji),e.component("reference-line-labels",Fa),e.component("axis-overlay",rg.picassoComponents.axisOverlay),e.component("time-axis",rg.picassoComponents.timeAxis),e.component("space",rT),e.component("axis-title",FE),e.scale("q-time-axis",rg.picassoScales.time),e}();return{qae:FT(e),ext:nD(e),component(){const t=function({env:e}){var t;const{flags:n}=e,r=null===(t=e.anything)||void 0===t||null===(t=t.sense)||void 0===t?void 0:t.isUnsupportedFeature,o=D();!function(e){if(e&&e.get&&e.add){const t="Object.Disclaimer.LimitedData";if(e.get(t)!==t)return;Object.keys(BT).forEach((t=>{e.add(BT[t])}))}}(e.translator);const i=A(),a=R(),[s,l]=P(),c=I(),u=z(),{qLocaleInfo:d}=u;return j((()=>{l({translator:o,theme:a,embed:i,deviceType:c,localeInfo:d,isUnsupportedFeature:r,flags:n})}),[d,r,o.language(),a.name(),c]),s}({env:e}),{viewState:n,viewCache:r}=function(){const[e]=P((()=>l())),[t]=P((()=>c({viewRange:[0,1],scrollOffset:void 0})));return{viewCache:e,viewState:t}}(),u=function({picasso:e}){const t=F(),n=B(),[r,o]=P();return j((()=>{if(!e)return()=>{};t.style.overflow="hidden";const r=e({renderer:{prio:[(null==n?void 0:n.renderer)||"canvas"]}}).chart({element:t,data:[],settings:{}});o(r);const{destroy:i}=r;return()=>{i()}}),[n.renderer]),r}({picasso:i}),d=function({picasso:e,chart:t,environment:n,viewState:r,viewCache:i}){const a=$(),c=V(),u=W(),d=U(),p=K(),f=B(),[b,x]=P(),[S,M]=P(),[C,w]=P(),k=G(),E=function(){const[e]=P({}),[t]=P({}),n=function(){var e,t;const n=_(),r=D(),o=!(null==n||null===(e=n.qSelectionInfo)||void 0===e||!e.qInSelections),i=!(null==n||null===(t=n.qHyperCube)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t||null===(t=t[0])||void 0===t||!t.qIsOneAndOnlyOne),[a,s]=P(!1),[l,c]=P(!1),[u,d]=P({key:"lasso",enabled:()=>!1,active:()=>!1,action:()=>!1}),p=e=>{c("boolean"==typeof e?e:!l)};return H((()=>(d({key:"lasso",action:p,enabled:()=>a,active:()=>l}),{key:"lasso",label:r.get(l?"Tooltip.ToggleOffLassoSelection":"Tooltip.ToggleOnLassoSelection"),icon:Yq,hidden:!a||!o||i,active:l,action:p})),[o,i,l,a,r.language()]),{get:()=>u,setAllows:e=>{s(!!e)}}}(),[r,o]=P();return j((()=>{const r={};r.scroll={key:"scroll",isActive:!0,isEnabled:!0,action(){this.isActive=!this.isActive},active(){return this.isActive},enabled(){const{layoutService:n,discrete:r}=e;return t.allowScroll&&((null==n?void 0:n.meta.isContinuous)||(null==r?void 0:r.query.getCanScroll()))}},r.interact={key:"interact",isEnabled:!0,enabled:()=>t.allowInteract},r.tooltip={key:"tooltip",isActive:!0,isEnabled:!0,action(e){this.isActive=!!e},active(){return this.isActive},enabled:()=>t.allowTooltip},r.select={key:"select",isActive:!1,isEnabled:!0,action(){this.isActive=!this.isActive},active(){return this.isActive},enabled:()=>t.allowSelect},r.lasso=n.get(),Object.keys(r).forEach((e=>Xq(r[e]))),o(r)}),[]),j((()=>{r&&n&&(r.lasso={...r.lasso,...n.get()})}),[n]),{get:()=>r,setAllows:e=>{Object.assign(t,e),n.setAllows(null==e?void 0:e.allowSelect)},setContext:t=>{Object.assign(e,t)},destroy:()=>{Object.keys(r).forEach((e=>r[e].removeAllListeners()))}}}();return j((()=>{if(!t)return()=>{};const e=E.get(),n=nL({chart:t,actions:e,selections:p});return M(e),w(n),()=>{n.destroy(),E.destroy()}}),[t]),j((()=>{if(!k)return;const e={allowScroll:!k.active,allowInteract:!k.active,allowTooltip:!k.passive,allowSelect:!k.select&&!k.active};E.setAllows(e)}),[k]),j((()=>{if(!C||!n)return;const{theme:p,translator:b,localeInfo:M,flags:w,embed:k}=n,{direction:T="ltr"}=f,q=m({source:a,metaAdditionsFn:eL(w),experimental:{filter:!0}});C.setFilteredFields(q.meta.filteredFields);const L=function(e){return e.color.auto?e.qHyperCube.qDimensionInfo.length>1:"byDimension"===e.color.mode&&e.color.byDimDef&&e.color.byDimDef.activeDimensionIndex>-1}(q.getLayout())?m({source:q.getLayout()}):void 0,N=function({layout:e,options:t={}}){return!(null==e||!e.snapshotData||t.freeResize)&&{width:e.snapshotData.content.size.w,height:e.snapshotData.content.size.h}}({layout:a,options:f}),O=function({layoutService:e,viewCache:t,options:n}){const r={};return r.fields=function(e){const{meta:t}=e,n={majorGroup:t.isGroupedByDimension?"qDimensionInfo/0":void 0,majorStack:t.isStacked?"qDimensionInfo/0":void 0,major:t.isDimensionless?void 0:"qDimensionInfo/"+(t.dimensionCount-1),majors:e.getHyperCubeValue("qDimensionInfo").map(((e,t)=>`qDimensionInfo/${t}`)),minor:e.getHyperCubeValue("qMeasureInfo").map(((e,t)=>`qMeasureInfo/${t}`))};return n.majorNumeric=`${t.isStackedByDimension?n.majorStack:n.major}:numeric`,n}(e),r.selectionDimensionIdx=rL(e.getHyperCube()),r.isDimensionLocked=t=>e.getHyperCube().qDimensionInfo[t].qLocked,r.selectionDimensionProp=e=>void 0===r.selectionDimensionIdx||void 0!==e&&r.selectionDimensionIdx!==e?{}:{selectionDimension:{field:r.selectionDimensionIdx}},r.animations={enabled:()=>!1!==n.chartAnimations&&(!(r.animations.isPartialUpdating||r.animations.isSizeChanging||r.animations.hasSlicedHats)&&!Ha.propertiesHaveChanged({viewCache:t,layout:e.getLayout()})),isPartialUpdating:!1,isSizeChanging:!1,hasSlicedHats:!1},r}({layoutService:q,viewCache:i,options:f}),D=h({chart:t,layoutService:q,config:{logicalSize:N,rtl:"rtl"===T},typeConfig:{type:"major-minor",fallback:"vertical",invert:!0}}),A=sL({layoutService:q}),R=g({theme:p,config:{id:"barChart",transform:[["label.value.fontSize",e=>parseInt(e,10)]]}}),P=rg.model({model:c,layoutService:q,viewCache:i,viewState:r}),I=function({enigma:e,layoutService:t,viewModel:n,definitionPath:r,reducedHyperCubePath:o},i={}){const a=function(e,t,n="/qHyperCubeDef"){return{fetch(){return function(e,t,n){return e.getHyperCubeReducedData(n.path,[n.rect],n.zoomLevel,n.filter).catch(Oe).then((e=>{var n;const r=t.getHyperCubeValue("qMode"),o=t.getHyperCubeValue("qDimensionInfo"),i="K"===r&&o.length>1&&(null===(n=e[0])||void 0===n?void 0:n.qIsReduced),a=e.slice(),s=t.getHyperCubeValue("qMeasureInfo"),l=i?[]:t.getHyperCubeValue("qColumnOrder");return{reducedCube:{qDataPages:a,qDimensionInfo:o.slice(),qEffectiveInterColumnSortOrder:[1,0],qMeasureInfo:i?[s[0],s[0]]:s.slice(),qStackedDataPages:[],qMode:"S",qHasOtherValues:t.getHyperCubeValue("qHasOtherValues"),qSize:t.getHyperCubeValue("qSize"),qColumnOrder:l}}}))}(e,t,this.settings())},settings(){const e=t.getHyperCubeValue("qDimensionInfo"),r=t.meta.isStacked&&e.length>1?1:0,o=t.getHyperCubeValue("qMeasureInfo");return{path:n,rect:{qTop:0,qLeft:r,qWidth:e.length+o.length+r,qHeight:Math.min(2e3,1e4/(o.length+1))},zoomLevel:-1,filter:"D1"}}}}(e,t,r),s=function(e,t="reducedHyperCube"){return{fetch:()=>Promise.resolve({reducedCube:e.getLayoutValue(t)||e.getHyperCube()})}}(t,o),l=function(e){return{fetch:()=>{const t=e.getHyperCube(),n={...t,qDataPages:t.qDataPages.slice()};return Promise.resolve({reducedCube:n})}}}(t),c=function({layoutService:e}){const{isSnapshot:t,isStackedByDimension:n}=e.meta,r=e=>{e.qDimensionInfo.unshift({key:"dummy-patch-dimension"})};return r.should=e=>t&&n&&1===e.qDimensionInfo.length,r}({layoutService:t}),u={mode:{isReduced:!1}};return{fetch(){if(t.meta.isSnapshot)return s.fetch();if(t.meta.isContinuous)return l.fetch();if(!t.meta.isStacked){if(t.getHyperCubeValue("qSize.qcy",NaN)===t.getHyperCubeValue("qDataPages.0.qArea.qHeight",NaN))return l.fetch()}return a.fetch()},model:()=>u,update(e){var r;c.should(e)&&c(e),u.mode=he(u.mode,t.meta),u.mode.isReduced=e.qDataPages[0]&&e.qDataPages[0].qIsReduced,u.mode.isStackedByDimension=u.mode.isStacked&&(2===(r=e).qDimensionInfo.length&&2===r.qMeasureInfo.length),u.mode.isStackedByMeasure=u.mode.isStacked&&function(e){return e.qMeasureInfo.length>1&&1===e.qDimensionInfo.length}(e),u.fields={major:u.mode.isStackedByDimension?"qDimensionInfo/"+(e.qDimensionInfo.length-1):n.fields.major,majorGroup:n.fields.majorGroup,minor:u.mode.isStackedByDimension?e.qMeasureInfo.map(((e,t)=>`qMeasureInfo/${t}`)):n.fields.minor},u.scales={major:Zq.SCALE.REDUCED.MAJOR,minor:Zq.SCALE.REDUCED.MINOR},u.cube=e,i.qDataPages=e.qDataPages},fetchMinMaxData(){if(i.qDataPages)return Promise.resolve(i.qDataPages);let n=a.settings();const r="K"===t.getHyperCubeValue("qMode")?1:n.rect.qHeight;return n=he(!0,{},n,{rect:{qHeight:r}}),e.getHyperCubeReducedData(n.path,[n.rect],n.zoomLevel,n.filter).then((e=>e))},setSnapshotData(e){e.reducedHyperCube=u.cube}}}({enigma:c,layoutService:q,viewModel:O});!function({layoutService:e,viewState:t,viewStateOptions:n={}}){const r=e.meta.isSnapshot?e.getLayoutValue("snapshotData.content.chartData",{}):n;t.preventSet("scrollOffset",r.scrollOffset),t.preventSet("legendScrollOffset",r.legendScrollOffset||0),r.zoom&&t.preventSet("zoom",r.zoom)}({layoutService:q,viewState:r,viewStateOptions:null==f?void 0:f.viewState});const z=iL({picasso:e,model:c,app:u,translator:b,localeInfo:M,theme:p,continuousDataModel:P,layoutService:q,legendLayoutService:L,reducedDataModel:I}),j=y({app:u,translator:b}),F=function({layoutService:e,themeService:t,colorService:n}){const r=t.getStyles(),o=t=>(e.getLayoutValue("components",[])||[]).find((e=>e.key===t));return{axis:{title:{getStyle:()=>{var e,t,i,a;const s=null===(e=o("axis"))||void 0===e||null===(e=e.axis)||void 0===e?void 0:e.title,l=n.getMain().getPaletteColor;return{fontFamily:null!==(t=null==s?void 0:s.fontFamily)&&void 0!==t?t:r.axis.title.fontFamily,fontSize:null!==(i=null==s?void 0:s.fontSize)&&void 0!==i?i:r.axis.title.fontSize,color:null!=s&&null!==(a=s.color)&&void 0!==a&&a.color?l(null==s?void 0:s.color):r.axis.title.color}}},label:{getStyle:()=>{var e,t,i,a;const s=null===(e=o("axis"))||void 0===e||null===(e=e.axis)||void 0===e||null===(e=e.label)||void 0===e?void 0:e.name,l=n.getMain().getPaletteColor;return{fill:null!=s&&null!==(t=s.color)&&void 0!==t&&t.color?l(null==s?void 0:s.color):r.axis.label.name.color,fontSize:null!==(i=null==s?void 0:s.fontSize)&&void 0!==i?i:r.axis.label.name.fontSize,fontFamily:null!==(a=null==s?void 0:s.fontFamily)&&void 0!==a?a:r.axis.label.name.fontFamily}}}},legend:{title:{getStyle:()=>{var e,t,i,a;const s=null===(e=o("legend"))||void 0===e||null===(e=e.legend)||void 0===e?void 0:e.title,l=n.getMain().getPaletteColor;return{fontFamily:null!==(t=null==s?void 0:s.fontFamily)&&void 0!==t?t:r.legend.title.fontFamily,fontSize:null!==(i=null==s?void 0:s.fontSize)&&void 0!==i?i:r.legend.title.fontSize,color:null!=s&&null!==(a=s.color)&&void 0!==a&&a.color?l(null==s?void 0:s.color):r.legend.title.color}}},label:{getStyle:()=>{var e,t,i,a;const s=null===(e=o("legend"))||void 0===e||null===(e=e.legend)||void 0===e?void 0:e.label,l=n.getMain().getPaletteColor;return{fontFamily:null!==(t=null==s?void 0:s.fontFamily)&&void 0!==t?t:r.legend.label.fontFamily,fontSize:null!==(i=null==s?void 0:s.fontSize)&&void 0!==i?i:r.legend.label.fontSize,color:null!=s&&null!==(a=s.color)&&void 0!==a&&a.color?l(null==s?void 0:s.color):r.legend.label.color}}}},label:{getStyle:()=>{var e,t,i,a,s;const l=null===(e=o("label"))||void 0===e||null===(e=e.label)||void 0===e?void 0:e.value,c=n.getMain().getPaletteColor;return{fill:null!=l&&null!==(t=l.color)&&void 0!==t&&t.color?c(null==l?void 0:l.color):r.label.value.color,useContrastColor:null===(i=null==l?void 0:l.useContrastColor)||void 0===i||i,fontSize:null!==(a=null==l?void 0:l.fontSize)&&void 0!==a?a:r.label.value.fontSize,fontFamily:null!==(s=null==l?void 0:l.fontFamily)&&void 0!==s?s:r.label.value.fontFamily}}}}}({layoutService:q,themeService:R,colorService:z}),B=Dq({layoutService:q,viewState:r,colorModel:{settings:()=>z.getMain().getSettings(),resolveUIColor:e=>z.getMain().getPaletteColor(e)},chart:t,env:n,keys:{colorScale:Zq.SCALE.MAIN.COLOR},isEnabled:()=>!q.meta.isGroupedByDimension&&(!q.meta.isStackedByDimension||w.isEnabled("TRENDLINES_STACKED_DIM"))&&!q.meta.isDimensionless});qT.attrExpr.updateProperties(c,a);const _=function({layout:e,app:t,picasso:n,model:r,chart:o,translator:i,localeInfo:a,embed:s}){const l=e.tooltip&&!e.tooltip.auto;return{layout:e,app:t,picasso:n,model:r,chart:o,translator:i,localeInfo:a,useCustomTooltip:l,utils:xT,miniChartToken:{},embed:s}}({layout:a,app:u,model:c,picasso:e,chart:t,translator:b,localeInfo:M,embed:k});let H;q.meta.isDiscrete&&(H=function({chart:e,actions:t,componentKey:n,enigmaModel:r,layoutService:i,dockService:a,trendLineModel:c,itemWidths:u,viewState:d,rtl:p,options:{definitionPath:f="/qHyperCubeDef",getRect:m,axisKey:h,renderer:g,areaBuffer:y,processDataPage:v=()=>{}}={}}){const b=l(),x=function({qMode:e}){switch(e){case"K":return YT;case"T":return XT;default:return GT}}({qMode:i.getHyperCubeValue("qMode")}),S=function({state:e,contains:t}){return e.set(JT,[]),{add:t=>{const n=e.get(JT);n.length=0,n.push(t)},getCurrent:()=>e.get(JT)[0],getAll:()=>e.get(JT),contains:n=>t(e.get(JT)[0],n)}}({state:b,contains:x.contains});!function({layoutService:e,dataStore:t,composition:n}){const r=e.getDataPages()[0];if(!r)return;const o=n.patcher({layoutService:e});o.should(r)&&o(r);t.add(r)}({layoutService:i,dataStore:S,composition:x});const M=function({buffer:e}){return void 0===e?void 0:2*Math.round(e/2)}({buffer:y}),C=function({dataStore:e,composition:t,enigmaModel:n,layoutService:r,trendLineModel:o=oq,definitionPath:i,processDataPage:a}){const{slicer:l,cacheWarden:c,request:u}=t,d=function({dataStore:e,slice:t,warden:n,expand:r,request:o,process:i,connectionless:a,processDataPage:s}){const l=(l,{onProcessing:c}={})=>{if(e.contains(l)){const r=e.getCurrent();if(a)return Promise.resolve(t(r,l));const o=n.release(r.qArea,l),s=i.isProcessing();if(!o&&s&&i.cancel(),!o||s)return Promise.resolve(t(r,l))}if(a)return Promise.resolve(e.getCurrent());i.isProcessing()&&c&&c();const u=r(l);return i(o(u)).then((n=>(s(n),e.add(n),t(n,l))))};return l}({dataStore:e,slice:l,warden:c({bounds:{width:r.meta.size.x,height:r.meta.size.y}}),expand:nq({layoutService:r}),request:u({definitionPath:i}),process:rq(n),connectionless:r.meta.isSnapshot,processDataPage:a}),p=s(((e,{onProcessing:t,onData:n})=>{d(e,{onProcessing:t}).then((e=>n(e))).catch((e=>{if(e!==_T)throw e}))}),WT);return function(e,{onProcessing:t=HT,onDataPage:n=HT}={}){p(e,{onProcessing:t,onData:e=>{r.setDataPages(e?[e]:[]),o.command.update(),n(e)}})}}({dataStore:S,composition:x,enigmaModel:r,layoutService:i,trendLineModel:c,definitionPath:f,processDataPage:v}),w=function({chart:e,componentKey:t,state:n,dataStore:r,pageData:o,layoutService:i,dockService:a,itemWidths:s,getRect:l,axisKey:c,renderer:u,areaBuffer:d,viewState:p,rtl:f}){n.set("rect",{width:0,height:0}),n.set("itemWidths",{}),n.set("itemSize",0),n.set("items",{}),n.set("offsets",{}),n.set("finished",0),n.set("scaleRange",[0,1]);const m=function({chart:e,getRect:t,getDataPages:n,layoutService:r,dockService:o,getItemWidths:i,axisKey:a,renderer:s,areaBuffer:l,rtl:c}){const{inTotal:u,area:d,scaleRange:p}=function({layoutService:e}){const{isDimensionless:t,isGrouped:n,isGroupedByMeasure:r}=e.meta;if(t)return iq;if(!n)return aq;return r?uq:fq}({layoutService:r}),f=()=>"horizontal"===o.meta.major.orientation?t().width:t().height,m=e=>e?f()/e:0,h=(e,t)=>-(e-t)*m(t);return{getItems(){const n=r.getLayoutValue("dimensionAxis"),l=u({layoutService:r});return{inTotal:l,inView:mq({chart:e,rect:t(),dockService:o,itemWidths:i(),axisKey:a,renderer:s,isGrouped:r.meta.isGrouped,dimensionAxis:n,inTotal:l,isMajorLabelless:"none"===n.show||"title"===n.show,maxDataRows:Math.floor($T/(r.meta.dimensionCount+r.meta.measureCount))})}},getItemSize({items:e}){const{inView:t}=e;return m(t)},getOffsets({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t,o=Math.min(0,Math.max(e,h(n,r))),i=r?Math.abs(r*o/f()):0;return{start:{pixel:o,item:i},end:{item:Math.min(i+(r||0),n)}}},getUpperBound({items:e}){const{inTotal:t,inView:n}=e;return h(t,n)},getViewRange({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t;return function({viewSize:e,inTotal:t,inView:n,pixelOffset:r}){const o=e/n*t,i=Math.abs(r)/o,a=Math.min(1,i+e/o);return[i,a]}({viewSize:f(),inTotal:n,inView:r,pixelOffset:e})},getArea:({itemOffset:e,items:t})=>d({getDataPages:n,layoutService:r,itemOffset:e,inView:t.inView,areaBuffer:l}),getScaleRange({offsets:e,items:t}){const i=p({getDataPages:n,layoutService:r,offsets:e,items:t,viewSize:f(),upperBound:h(t.inTotal,t.inView)});return"horizontal"===o.meta.major.orientation&&c?function(e){return[1-e[1],1-e[0]]}(i):i},validate:{offset({pixelOffset:e,items:t}){const{inTotal:n,inView:r}=t;return e<=0&&e>=h(n,r)}},convert:{itemToPixelOffset({itemOffset:e,items:t}){const{inView:n}=t,r=e*m(n);return Number.isFinite(r)?-r:0},relativeToPixelOffset({relativeOffset:e,items:t}){const{inTotal:n,inView:r}=t;return-e*(m(r)*n)}}}}({chart:e,getRect:()=>n.get("rect"),getDataPages:r.getCurrent,layoutService:i,dockService:a,getItemWidths:()=>n.get("itemWidths"),axisKey:c,renderer:u,areaBuffer:d,rtl:f}),h=()=>{const e=m.getItems();return n.set("items",e),e},g=({pixelOffset:e,items:t})=>{const r=m.getOffsets({pixelOffset:e,items:t});return n.set("offsets",r),r},y=({items:e})=>{const t=i.getLayoutValue("scrollStartPos"),n=p.get("scrollOffset");if(void 0===n)return 1===t?m.getUpperBound({items:e}):0;if("number"==typeof n)return m.convert.itemToPixelOffset({itemOffset:n,items:e});const{start:r,end:o}=n,a=1===t&&o?o-e.inView:r;return m.convert.itemToPixelOffset({itemOffset:a,items:e})},v=e=>{const[{qArea:t}]=i.getDataPages();return!!t&&Object.keys(e).every((n=>e[n]===t[n]))},b=e=>{const t=Date.now(),r=h(),i=g({pixelOffset:e,items:r}),a=m.getArea({itemOffset:i.start.item,items:r});if(v(a))return void((m.validate.offset({pixelOffset:e,items:r})||p.get("scrollOffset").start!==i.start.item)&&(n.set("finished",t),n.set("scaleRange",m.getScaleRange({offsets:i.start,items:r})),p.preventSet("viewRange",m.getViewRange({pixelOffset:i.start.pixel,items:r})),p.set("scrollOffset",{start:i.start.item,end:i.end.item})));p.preventSet("viewRange",m.getViewRange({pixelOffset:i.start.pixel,items:r}));const s=()=>{n.get("finished")>t||(n.set("finished",t),n.set("scaleRange",m.getScaleRange({offsets:i.start,items:r})),p.set("scrollOffset",{start:i.start.item,end:i.end.item}))};o(a,{onProcessing:s,onDataPage:s})};return{enabled(){const{inTotal:e,inView:t}=n.get("items");return e>t},itemSize:()=>n.get("itemSize"),scaleRange:()=>n.get("scaleRange"),initialize(){const r=e.component(t);if(!r)return Promise.resolve();n.set("rect","function"==typeof l?l():r.rect),n.set("itemWidths","function"==typeof s?s():s);const i=h();n.set("itemSize",m.getItemSize({items:i}));const a=y({items:i}),c=g({pixelOffset:a,items:i});p.preventSet("viewRange",m.getViewRange({pixelOffset:c.start.pixel,items:i}));const u=m.getArea({itemOffset:c.start.item,items:i});return new Promise((e=>{o(u,{onDataPage:()=>{n.set("scaleRange",m.getScaleRange({offsets:c.start,items:i})),p.preventSet("scrollOffset",{start:c.start.item,end:c.end.item}),e()}})}))},scroll(e){const t=n.get("offsets").start.pixel+e;b(t)},scrollToRelative(e){const t=n.get("items"),r=m.convert.relativeToPixelOffset({relativeOffset:e,items:t});b(r)}}}({chart:e,componentKey:n,state:b,dataStore:S,pageData:C,layoutService:i,dockService:a,itemWidths:u,getRect:m,axisKey:h,renderer:g,areaBuffer:M,viewState:d,rtl:p}),k=function({layoutService:e,dataStore:t}){return function(n){const r=o(n,`${e.refs.dataPages}`);r.length=0,r.push(t.getCurrent())}}({layoutService:i,dataStore:S}),E=function({chart:e,actions:t,componentKey:n,dockService:r,rtl:o,scroller:i}){return{gestures:[eq({chart:e,actions:t,componentKey:n,dockService:r,rtl:o,scroller:i})],native:{type:"native",events:{wheel:tq({chart:e,actions:t,componentKey:n,scroller:i})}}}}({chart:e,actions:t,componentKey:n,dockService:a,rtl:p,scroller:w});return{interactions:E,query:{getCanScroll:()=>w.enabled(),getItemSize:()=>w.itemSize(),getScaleRange:()=>w.scaleRange(),getCurrentDataPage:()=>S.getCurrent()},command:{initialize:()=>w.initialize(),scrollTo:e=>w.scrollToRelative(e),setSnapshotData:e=>k(e)}}}({chart:t,actions:S,componentKey:Zq.COMPONENT.BAR,enigmaModel:c,layoutService:q,dockService:D,trendLineModel:B,itemWidths:Jq,viewState:r,rtl:"rtl"===T,options:{axisKey:Zq.COMPONENT.BAR_AXIS,renderer:e.renderer("svg")()}}));const $=function({layoutService:e,discreteModel:t}){const{isContinuous:n,canBeContinuous:r,isGroupedByDimension:o}=e.meta,i=e.getLayout(),a="K"===i.qHyperCube.qMode,s=Le.dimensionless(i),l=va.getMeasureRefLines(i),c=va.getDimensionRefLines(i,s),u=va.getMeasureRefLineLabels(i),d=va.getDimensionRefLineLabels(i,s);let p={},f={};const m=t=>{if(r){const n=e.getLayoutValue("qHyperCube.qDimensionInfo.0"),{qMin:r,qMax:o}=n;return va.isOutOfRange({value:t,qMin:r,qMax:o})}return!1},h=t=>{if(!f[t])return!1;if(!n&&o){const n={valueInfo:f[t]},r="S"===e.getHyperCubeValue("qMode")?"qDataPages.0":"qStackedDataPages.0",o=e.getHyperCubeValue(r);return va.isOutOfDataPages({label:n,dataPages:o})}return!0},g=()=>!(!c||!c.length)&&!c.every((t=>{const n=va.getInputValue({refLineLayout:t,layoutService:e});return m(n)||h(n)})),y={isKMode:a,canBeContinuous:r,measureRefLines:l,dimensionRefLines:c,measureRefLineLabels:u,dimensionRefLineLabels:d,dimensionRefLineInfo:f,dimensionValuesInfo:p,query:{getRefLines:e=>va.getRefLines(i,e),getRefLineLabels:e=>va.getRefLineLabels(i,e)},update:()=>{f=y.dimensionRefLineInfo,g()&&(p=va.getDimensionValuesInfo({layout:i,canBeContinuous:r,discreteModel:t,layoutService:e}),y.dimensionValuesInfo=p,c.forEach((t=>{const n=va.getInputValue({refLineLayout:t,layoutService:e});p[n]&&(f[n]?(f[n].innerValues=p[n].innerValues,f[n].minOrder=Math.min(f[n].minOrder,p[n].minOrder),f[n].maxOrder=Math.max(f[n].maxOrder,p[n].maxOrder),f[n].isMinOrderOk=f[n].isMinOrderOk||p[n].isMinOrderOk,f[n].isMaxOrderOk=f[n].isMaxOrderOk||p[n].isMaxOrderOk):f[n]={id:p[n].id,qText:p[n].qText,innerValues:p[n].innerValues,minOrder:p[n].minOrder,maxOrder:p[n].maxOrder,isMinOrderOk:p[n].isMinOrderOk,isMaxOrderOk:p[n].isMaxOrderOk},f[n].numInnerValues=(f[n].maxOrder||0)-(f[n].minOrder||0)+1)})))}};return y.update(),y}({layoutService:q,discreteModel:H}),V=function(e){const t={layout:e.getLayout(),keys:{SCALE:{MAIN:{MINOR:Zq.SCALE.MAIN.MINOR,MAJOR:Zq.SCALE.MAIN.MAJOR}},COMPONENT:{BAR:Zq.COMPONENT.BAR,BAR_AXIS:Zq.COMPONENT.BAR_AXIS,Y_AXIS:"y-axis",MEASURE_TITLE:"measure-title",DIMENSION_TITLE:"dimension-title"},COLLECTION:{MAIN:Zq.COLLECTION.MAIN}}};return t}(q),W=v({picassoInstance:e,plugins:d||[],pluginArgs:V});E.setContext({discrete:H,layoutService:q}),x({alternativeService:j,discrete:H,continuous:rg,legendLayoutService:L,layoutService:q,viewModel:O,dockService:D,themeService:R,styleService:F,continuousDataModel:P,reducedDataModel:I,colorService:z,trendLineModel:B,refLineModel:$,pluginService:W,customTooltipModel:_,selectionService:C,logicalSize:N,disclaimerService:A})}),[C,f,n,a]),b}({picasso:i,chart:u,environment:t,viewState:n,viewCache:r}),p=function({env:e,services:t}){var n;const r=W(),o=V(),i=Q(),a=function({enable:e=!0}={}){const t=V(),n=()=>Date.now().toString()+Math.random(),[r,o]=P(n()),i={properties:void 0};return j((()=>{if(!t||!t.getEffectiveProperties||!e)return()=>{};const r=()=>{t.getEffectiveProperties().then((e=>{const t=he(!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=he(!0,{},e),l=he(!0,{},t);return a.exclude=!RO(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=!RO(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}({enable:!1===(null==t||null===(n=t.layoutService)||void 0===n||null===(n=n.meta)||void 0===n?void 0:n.isSnapshot)}),[s,l]=X((async()=>{if(!e||!t)return Promise.resolve();const{layoutService:n}=t,{isSnapshot:a,isStacked:s,isContinuous:l}=n.meta,c=[];return a||c.push(o.getEffectiveProperties()),Promise.all(c).then((async e=>{const t=e[0]||void 0;if(null!=t&&t.qHyperCubeDef){const e=n.getLayout(),a=he(!0,{},t);if(PO({properties:t,layout:e,isStacked:s,isContinuous:l,model:o,layoutService:n}))return i.pending(),Za(e)?o.setProperties(t).then((()=>{r.clearUndoBuffer()})):void await Ja(o,a,t);i.restore()}return{properties:t}}))}),[e,t,a]);if(l&&!l.isHandled)throw l;return s}({env:e,services:d});!function({picasso:e,chart:t,services:n,environment:r,viewState:o,viewCache:i,bootstrapped:s}){const{width:l,height:c}=Y(),u=V(),d=K(),p=B(),[f,m]=P(),[h,g]=P(),[y,v]=P(),[b,x]=P(),S=W();function M(s={}){const{alternativeService:l,selectionService:c,refLineModel:m,discrete:h,reducedDataModel:g,continuousDataModel:y,trendLineModel:v,pluginService:b,colorService:x,viewModel:M,dockService:C,themeService:w,customTooltipModel:k,layoutService:E,logicalSize:T,styleService:q,disclaimerService:L}=n,N=c.custom.getActions(),O=e.data("q")(f.prepPicassoDataSet()),D={picasso:e,ds:O,rtl:"rtl"===(null==p?void 0:p.direction),model:u,app:S,chart:t,actions:N,localeInfo:r.localeInfo,logicalSize:T,flags:r.flags,translator:r.translator,selections:d,isLocked:c.getIsSelectionLocked,viewCache:i,viewState:o,alternativeService:l,layoutService:E,dockService:C,viewModel:M,colorService:x,selectionService:c,themeService:w,trendLineModel:v,discrete:h,continuousDataModel:y,reducedDataModel:g.model(),customTooltipModel:k,debouncer:a,refLineModel:m,pluginService:b,styleService:q,disclaimerService:L,...s};return NO(E.getLayout(),D,r)}function C(){if(!t.layoutComponents)return Promise.resolve();const{discrete:e,layoutService:r,viewModel:o}=n;i.set("isPreRender",!0);const a=M(h);f.extractDataPages(),t.layoutComponents({settings:a,data:y}),i.set("isPreRender",!1),f.insertDataPages(),o.animations.hasSlicedHats=a.components.filter((e=>"box-sliced-hat"===e.type)).length>0;const s=[];return 1!==a.components.length&&r.meta.isDiscrete&&s.push(e.command.initialize()),Promise.all(s)}const[[w,k]=[]]=X((()=>{var a;if(!(e&&t&&n&&r&&o&&i&&s))return Promise.resolve();const{alternativeService:l,layoutService:c,selectionService:u,refLineModel:d,discrete:p,continuous:f,reducedDataModel:m,continuousDataModel:h,trendLineModel:g,legendLayoutService:y,colorService:v,pluginService:b,viewModel:S,customTooltipModel:M,disclaimerService:C}=n;if(null==u||null===(a=u.custom)||void 0===a||!a.getActions())return Promise.resolve();const{properties:w}=s,k=null==w?void 0:w.qHyperCubeDef.qDimensions.some((e=>{var t;return null===(t=e.qCalcCondition)||void 0===t||null===(t=t.qCond)||void 0===t?void 0:t.qv}));k&&(M.useCustomTooltip=!1);const E=()=>{x(Date.now()),S.animations.isPartialUpdating=!0},T=()=>{y&&y.setDataPages([p.query.getCurrentDataPage()]),d&&d.update(),E()};o.onChanged("scrollOffset",T),o.onChanged("legendScrollOffset",E),o.intercept("zoom",f.event.onZoomIntercept({viewCache:i})),o.onChanged("zoom",f.event.onZoomChange({layoutService:c,continuousDataModel:h},E)),u.setLayout(c.getLayout());const q=[];c.meta.isContinuous&&(h.update(c.getLayout()),q.push(h.initialFetch())),g.command.update(),q.push(m.fetch().then((({reducedCube:e})=>{m.update(e)}))),C.initialize(),q.push(Promise.resolve({properties:s.properties}));const L=()=>[b.initialize(),v.initialize(),l.initialize({properties:w}),LL({reducedDataModel:m,layoutService:c,continuousDataModel:h,trendLineModel:g})];return Promise.all(q).then((e=>Promise.all(L()).then((t=>[e,t.pop()]))))}),[s]);j((()=>{var e;if(null==n||null===(e=n.colorService)||void 0===e||!e.getMain()||!k)return;const{layoutService:t,selectionService:o,reducedDataModel:a,continuousDataModel:s,trendLineModel:l,legendLayoutService:c,colorService:u,viewModel:d}=n;i.set("minorMinMax",k);const p=()=>!t.meta.isContinuous&&(a.model().mode.isReduced||t.meta.isStacked)&&c,f=t.getHyperCube(),h=t.meta.isContinuous?s.getInitialCube():a.model().cube,{field:y}=u.getMain().getSettings(),v=p(),b=v?c.getHyperCube():void 0;o.setBrushAliases({colorField:y,useLegendCube:v,legendAlias:`legendCube/${y}`});const x=function({mainCube:e,miniCube:t,legendCube:n,localeInfo:r,layoutService:o,viewModel:i,trendLineModel:a}){const s=o.refs.dataPages.split(".").pop();let l=[],c=[];const u=o.meta.isContinuous?[{key:i.fields.majorNumeric,from:o.meta.isStackedByDimension?i.fields.majorStack:i.fields.major,override:{value:e=>e.qNum}}]:void 0;return{prepPicassoDataSet:()=>({key:"qHyperCube",data:e,config:{localeInfo:r,virtualFields:u}}),prepPicassoData(o){const i=[{type:"q",key:"qHyperCube",data:e,config:{localeInfo:r,virtualFields:u}},{type:"q",key:"miniCube",data:t,config:{localeInfo:r,virtualFields:u}},...o];return n&&i.push({type:"q",key:"legendCube",data:n,config:{localeInfo:r,virtualFields:u}}),a.query.hasTrendLines()&&i.push({key:"trend",data:a.query.getData()}),i},extractDataPages(){l=e[s],c=t.qDataPages,e[s]=[],t.qDataPages=[]},insertDataPages(){e[s]=l,t.qDataPages=c}}}({mainCube:f,miniCube:h,legendCube:b,localeInfo:r.localeInfo,layoutService:t,viewModel:d,trendLineModel:l}),S=w[w.length-1];g({localeInfo:r.localeInfo,...S}),m(x)}),[k]),j((()=>{if(!n||!h||!f)return;const e=n.colorService.getMain();if(!e)return;f.prepPicassoDataSet();const t=f.prepPicassoData(e.getData());v(t)}),[h]),j((()=>{var e;null!=n&&null!==(e=n.colorService)&&void 0!==e&&e.getMain()&&t.update&&f&&y&&C().then((()=>{const{layoutService:e,discrete:r,legendLayoutService:o}=n;if(o){1===e.getLayoutValue("scrollStartPos")&&o.setDataPages([r.query.getCurrentDataPage()])}t.update(),Ha.cacheProperties({viewCache:i,layout:e.getLayout()})}))}),[y]),j((()=>{if(!(l&&c&&f&&null!=t&&t.update&&null!=n&&n.colorService.getMain()))return;const{viewModel:e}=n;e.animations.isSizeChanging=!0;const{dockService:o,themeService:i}=n;o.update({width:l,height:c}),i.setTheme(r.theme),C().then((()=>{t.update&&t.update()}))}),[l,c]),j((()=>{if(null==t||!t.update)return;const{viewModel:e}=n;t.update({partialData:!0,excludeFromUpdate:["mini-marker","dim-title","measure-title","ref-line","grid-line"]}),e.animations.isPartialUpdating=!1}),[b])}({picasso:i,chart:u,services:d,environment:t,viewState:n,viewCache:r,bootstrapped:p}),OO({environment:t,services:d,chart:u,viewState:n,bootstrapped:p})}}}));const te={click:"Tap",Click:"Tap",tap:"Tap",pan:"Pan",swipe:"Swipe",rotate:"Rotate",press:"Press",pinch:"Pinch"};function ne(e){return te[e]||e}function re(e){return function(t,n,r){let o,i,a,s,l=[],c=!0;function u(){"function"==typeof o.enable&&(o.enable=o.enable.bind(i)()),o.enable&&(o.gestures.forEach((t=>{t.options=t.options||{},void 0===t.options.enable&&(t.options.enable=!0),"function"==typeof t.options.enable&&(t.options.enable=t.options.enable.bind(i));const n=ne(t.type);e&&e[n]&&(t.options.event=t.options.event||t.type.toLowerCase(),a=a||new e.Manager(r),a.add(new e[n](t.options)),Object.keys(t.events).forEach((e=>{t.events[e]=t.events[e].bind(i),a.on(e,t.events[e])})),l.push(t))})),o.gestures.forEach((t=>{const n=ne(t.type);e&&e[n]&&(t.recognizeWith&&a.get(t.options.event).recognizeWith(t.recognizeWith.split(" ").filter((e=>""!==e))),t.requireFailure&&a.get(t.options.event).requireFailure(t.requireFailure.split(" ").filter((e=>""!==e))))})))}function d(){l.forEach((e=>{Object.keys(e.events).forEach((t=>{a.off(t,e.events[t])})),a.remove(e.options.event)})),l=[]}return{get key(){return s},set(e){!function(e){s=e.key,o=e,i={chart:t,mediator:n,settings:o},o.gestures=o.gestures||[],void 0===o.enable&&(o.enable=!0)}(e),d(),c&&u()},off(){c=!1,d()},on(){c=!0,0===l.length&&u()},destroy(){d(),a&&a.destroy(),a=null,i=null,o=null}}}}function oe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ie(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var ae=Object.prototype.hasOwnProperty,se=Object.prototype.toString,le=Object.defineProperty,ce=Object.getOwnPropertyDescriptor,ue=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===se.call(e)},de=function(e){if(!e||"[object Object]"!==se.call(e))return!1;var t,n=ae.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&ae.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||ae.call(e,t)},pe=function(e,t){le&&"__proto__"===t.name?le(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},fe=function(e,t){if("__proto__"===t){if(!ae.call(e,t))return;if(ce)return ce(e,t).value}return e[t]},me=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=fe(s,n),s!==(o=fe(t,n))&&(u&&o&&(de(o)||(i=ue(o)))?(i?(i=!1,a=r&&ue(r)?r:[]):a=r&&de(r)?r:{},pe(s,{name:n,newValue:e(u,a,o)})):void 0!==o&&pe(s,{name:n,newValue:o}));return s},he=oe(me);const ge=[["FULL",{width:550,height:450}],["MEDIUM",{width:400,height:220}],["SMALL",{width:300,height:150}],["XSMALL",{width:150,height:75}],["SPARK",{width:0,height:0}]],ye={};ge.forEach((([e,{width:t,height:n}])=>{ye[e]={width:t,height:n}}));const ve={getLayoutModes:()=>ye,getLayoutMode(e,t){let n;for(n=0;n<ge.length;++n)if(e>=ge[n][1].width&&t>=ge[n][1].height)return ge[n][0];return"SPARK"}};function be(e,t){return{layoutModes:ve.getLayoutModes(),center:void 0!==t.minCenterRatio?{minWidthRatio:t.minCenterRatio,minHeightRatio:t.minCenterRatio}:void 0,logicalSize:t.logicalSize?{align:.5,preserveAspectRatio:!0,...t.logicalSize}:void 0}}const xe=["$date","$timestamp","$time"],Se=["D","TS","T"],Me={hasTimeTag:e=>!!(e&&e.qTags&&e.qTags.some((e=>xe.some((t=>t===e))))),hasUnknownFormat:e=>!(!e||!e.qNumFormat||"U"!==e.qNumFormat.qType),hasTimeFormat:e=>!!(e&&e.qNumFormat&&Se.some((t=>t===e.qNumFormat.qType))),isTimeDimension:(e,t)=>!!(e&&t&&(Me.hasTimeTag(t)&&Me.hasUnknownFormat(t)||Me.hasTimeFormat(t))),isTime:(e,t)=>!!(t&&t.qHyperCube.qDimensionInfo&&t.qHyperCube.qDimensionInfo.length)&&(e&&Me.isTimeDimension(e,t.qHyperCube.qDimensionInfo.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)}))[0])),canBeContinuousDimension(e){if(!e)return!1;const t=e.qTags||[];return!(!e.qContinuousAxes||!t.some((e=>"$numeric"===e)))},canBeContinuous(e){var t,n;const r=null==e||null===(t=e.qHyperCube)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t?void 0:t.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)}));return!((null!==(n=null==r?void 0:r.length)&&void 0!==n?n:0)<1)&&Me.canBeContinuousDimension(r[0])},maxNumberOfLines:12},Ce=/^[A-Z][A-z0-9_]*$/i,we={getChar(e){let t=e,n=-1;return t>9?(n=65+t-10,n>90&&(n+=6)):t=`${t}`.charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?this.getChar(t+1):String.fromCharCode(n)},base62(e){const t=this.getChar(e%62),n=Math.floor(e/62);return n>0?this.base62(n)+t:t},id(){return this.base62(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}},ke={setValue:(e,t,n)=>{if(!t)return!1;const r=t.split("."),o=r[r.length-1];let i,a=e;for(i=0;i<r.length-1;++i)void 0===a[r[i]]&&(a[r[i]]=Number.isNaN(+r[i+1])?{}:[]),a=a[r[i]];if(void 0!==n){const e=a[o];return a[o]=n,{updated:n,previous:e}}return delete a[o],!1},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(void 0===i[r[o]])return n;i=i[r[o]]}return i},moveArrayElement:(e,t,n)=>{if(n>=e.length){let t=n-e.length;for(;1+t--;)e.push(void 0)}e.splice(n,0,e.splice(t,1)[0])},escapeField:e=>{let t;return t=!e||"]"===e||Ce.test(e)?e:`[${e.replace(/\]/g,"]]")}]`,t},deleteUndefinedProperties:e=>{Object.keys(e).forEach((t=>{void 0===e[t]&&delete e[t]}))},generateId:()=>we.id(),shouldUseFormat:e=>!e.isCustomFormatted&&(e.qIsAutoFormat||"U"===e.qNumFormat.qType)},Ee=e=>ke.getValue(e,"qHyperCube.qDimensionInfo",[]),Te=e=>ke.getValue(e,"qHyperCube.qMeasureInfo",[]),qe=e=>ke.getValue(e,"barGrouping.grouping"),Le={continuous:(e,t=!1)=>!!Me.canBeContinuous(e)&&(ke.getValue(e,"dimensionAxis.continuousAuto")?"function"==typeof t?t():t:!!e.preferContinuousAxis),dimensionless:e=>!Ee(e).length,grouped(e){return!this.dimensionless(e)&&"grouped"===qe(e)&&(Ee(e).length>1||Te(e).length>1)&&!this.continuous(e)},groupedByDimension(e){return this.grouped(e)&&Ee(e).length>1&&1===Te(e).length},groupedByMeasure(e){return this.grouped(e)&&1===Ee(e).length&&Te(e).length>1},stacked(e){return(!this.dimensionless(e)&&"grouped"!==qe(e)&&"butterfly"!==qe(e)||this.continuous(e))&&(Ee(e).length>1||Te(e).length>1)},stackedByDimension(e){return this.stacked(e)&&Ee(e).length>1&&1===Te(e).length},stackedByMeasure(e){return this.stacked(e)&&1===Ee(e).length&&Te(e).length>1},simple:e=>0===Ee(e).length||1===Ee(e).length&&1===Te(e).length,snapshot:e=>!!ke.getValue(e,"snapshotData")};function Ne(e,t){const n=e.component(t);return n&&n._DO_NOT_USE_getInfo&&n._DO_NOT_USE_getInfo().offset}const Oe=e=>{throw e.isHandled=!0,e};const De={getDockValue:e=>"near"===e||"left"===e||"top"===e?0:1,getOppositeDock(e){switch(e){case"left":return"right";case"right":return"left";case"top":return"bottom";case"bottom":return"top";case"near":default:return"far";case"far":return"near"}},getHorizontalDock:e=>"near"===e||"left"===e?"left":"right",getVerticalDock:e=>"near"===e||"bottom"===e?"bottom":"top",getDock:(e,t,n)=>"vertical"===e||"y"===e?De.getVerticalDock(t):n?De.getOppositeDock(De.getHorizontalDock(t)):De.getHorizontalDock(t),getInvertedOrientation:e=>"vertical"===e?"horizontal":"vertical",getMinorScaleAxis:e=>"vertical"===e?"y":"x",getMajorScaleAxis:e=>"vertical"===e?"x":"y",getAlignment:(e,t)=>"vertical"===e?"near"===t||"bottom"===t?1:0:"near"===t||"left"===t?0:1,getMeasureScaleInvert:(e,t)=>"vertical"===e||t,getDimensionScaleInvert:(e,t)=>"horizontal"===e&&t,getSize:(e,{width:t,height:n})=>"vertical"===e?t:n};var Ae=(e,t)=>{if("function"==typeof t.defaultValue)return t.defaultValue();if(void 0!==t.defaultValue)return t.defaultValue;if(Array.isArray(t.options))return t.options[0].value;switch(e){case"array":return[];case"string":return"";case"integer":case"number":return 0;case"boolean":return!1;default:return null}};const Re=166/26,Pe=12/11,Ie={stringWidthOverMWidth:e=>(12*Math.min(e,3)+Math.max(e-3,0)*Re)/11,getCharacterRatios(e){if(!e)return{latin:0,cjk:0};let t=e.match(/[\u4E00-\u9FFF]/g),n=e.match(/[\u3040-\u309F]/g),r=e.match(/[\u30A0-\u30FF]/g);t=t?t.length:0,n=n?n.length:0,r=r?r.length:0;const o=t+n+r;return{latin:e.length-o,cjk:o}},getTotalCharacterRatios(e,t,n="qText"){if(!e)return{latinRatio:1,cjkRatio:0};const r={latin:0,cjk:0};let o;void 0===t?e.forEach((e=>{o=Ie.getCharacterRatios(e[n]),r.latin+=o.latin,r.cjk+=o.cjk})):e.forEach((e=>{o=Ie.getCharacterRatios(e[t][n]),r.latin+=o.latin,r.cjk+=o.cjk}));const i=Math.max(1,r.latin+r.cjk);return r.latinRatio=r.latin/i,r.cjkRatio=r.cjk/i,r},getAdjustedMaxGlyphCount(e,t,n,r="qText"){const o=Ie.getTotalCharacterRatios(t,n,r),i=o.latinRatio*e,a=o.cjkRatio*e;return Math.ceil(Ie.stringWidthOverMWidth(i)+a*Pe)}},ze="#la-vie-tooltip";function je(){if(!document.querySelector(ze)){const e=document.createElement("div");e.id="la-vie-tooltip",e.setAttribute("data-qs-css",""),e.style.overflow="hidden",e.style.position="fixed",e.style.pointerEvents="none",e.style.left="0px",e.style.top="0px",e.style.width="100%",e.style.height="100%",e.style.zIndex=1020,document.body.appendChild(e)}}function Fe({key:e="tooltip",rtl:t}){return{show:!0,key:e,type:"tooltip",layout:{displayOrder:3},beforeMount(){je()},beforeUpdate(){je()},destroyed(){!function(){const e=document.querySelector(ze);e&&e.parentElement&&e.childElementCount<1&&e.parentElement.removeChild(e)}()},settings:{appendTo:()=>document.querySelector(ze),content:({h:e,data:t,style:n})=>t[0].map((t=>e("tr",{},function(e,{h:t,style:n}){return e.map((e=>{const r={style:{...n.cell||{},...e.style||{}},class:e.class};return e.colspan&&(r.colspan=e.colspan),t("td",r,e.content)}))}(t,{h:e,style:n})))),direction:t?"rtl":"ltr"},style:{arrow:{color:"#404040"},content:{display:"table","border-spacing":"4px",background:"rgba(64, 64, 64, 0.9)",opacity:"1",fontSize:"13px",fontFamily:'"Source Sans Pro", "Arial", "sans-serif"',"empty-cells":"show"},cell:{"max-width":"180px","word-break":"break-word","word-wrap":"break-word","overflow-wrap":"break-word",hyphens:"auto"}}}}const Be=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),_e=new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞‏יִײַ-ﬨשׁ-ﭏ]"),He=new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]"),$e={lrm:String.fromCharCode(8206),rlm:String.fromCharCode(8207),isLtrChar:e=>Be.test(e),isRtlChar:e=>_e.test(e)||He.test(e),detectTextDirection(e){const t=e?e.length:0;let n,r;for(n=0;n<t;n++){if(r=e[n],$e.isLtrChar(r))return"ltr";if($e.isRtlChar(r))return"rtl"}return"ltr"}},Ve={getColorSymbol:(e,t)=>e.h("div",{style:{display:"inline-block",width:"10px",height:"10px","background-color":t.color.fill,margin:"0 8px"}}),getNodeFillColor:e=>e.attrs&&void 0!==e.attrs.fill?e.attrs.fill:e.children&&e.children[0]&&e.children[0].attrs&&void 0!==e.children[0].attrs.fill?e.children[0].attrs.fill:void 0,getColor(e,t,n){const r=t.data,o=e.resources.formatter,i=e.resources.dataset,a={};if(n.coloring.label&&(a.label=`${n.coloring.label}`),"color"!==n.coloring.type&&r.fillTooltip){const e=o("fill"),t="measure"===n.coloring.fieldType;if(a.value=t&&e?e(r.fillTooltip.value):r.fillTooltip.label?r.fillTooltip.label:r.fillTooltip.value,!n.coloring.label){const e=i(r.fillTooltip.source.key).field(r.fillTooltip.source.field).title();a.label=`${e}`}}return a.fill=void 0===r._fillColor?Ve.getNodeFillColor(t):r._fillColor,a},getMeasure:(e,t)=>({label:`${e(t.source.key).field(t.source.field).title()}`,value:""===t.label||"NaN"===t.label?"-":t.label,field:t.source.field}),hideColorRow:(e,t)=>void 0===e.color.value||e.measures.some((e=>e.field===t.coloring.field)),getTitleRow(e,t){const n=$e.detectTextDirection(e.title);return[{content:e.title,style:{"font-weight":"bold","text-align":t?"right":"left",direction:n},colspan:2},{}]},getDescriptionRow(e,t){const n=$e.detectTextDirection(e.value);return[{content:e.value,style:{"text-align":t?"right":"left",direction:n},colspan:2},{}]},getNMoreRow(e,t,n){const r=t?t.get("Object.ChartTooltip.NMore",e):`+${e} more`;return[{content:r,style:{"font-weight":"bold","text-align":n?"right":"left",direction:$e.detectTextDirection(r)},colspan:2},{}]},getSeparatorRow:()=>[{content:"",style:{"background-image":"linear-gradient(transparent 8px, rgba(255, 255, 255, 0.4) 8px, rgba(255, 255, 255, 0.4) 9.2px, transparent 9.2px)",height:"17px"},colspan:2},{}],getColorRow(e,t,n){const r=$e.detectTextDirection(t.color.label),o=n?[":",t.color.label]:[t.color.label,":"],i=$e.detectTextDirection(t.color.value);return[{content:o,style:{"text-align":n?"right":"left",direction:r}},{content:n?[t.color.value,Ve.getColorSymbol(e,t)]:[Ve.getColorSymbol(e,t),t.color.value],style:{"text-align":n?"left":"right",direction:i,"vertical-align":"middle"}}]},getMeasureRow(e,t,n,r,o=!1){const i=$e.detectTextDirection(e.label),a=r?[":",e.label]:[e.label,":"],s=$e.detectTextDirection(e.value);let l;return l=o?r?[e.value,Ve.getColorSymbol(t,n)]:[Ve.getColorSymbol(t,n),e.value]:[e.value],[{content:a,style:{"text-align":r?"right":"left",direction:i}},{content:l,style:{"text-align":r?"left":"right",direction:s,"vertical-align":"middle"}}]}};function We(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Ue(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Ke(){}var Ge=.7,Ye=1/Ge,Xe="\\s*([+-]?\\d+)\\s*",Je="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ze="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Qe=/^#([0-9a-f]{3,8})$/,et=new RegExp(`^rgb\\(${Xe},${Xe},${Xe}\\)$`),tt=new RegExp(`^rgb\\(${Ze},${Ze},${Ze}\\)$`),nt=new RegExp(`^rgba\\(${Xe},${Xe},${Xe},${Je}\\)$`),rt=new RegExp(`^rgba\\(${Ze},${Ze},${Ze},${Je}\\)$`),ot=new RegExp(`^hsl\\(${Je},${Ze},${Ze}\\)$`),it=new RegExp(`^hsla\\(${Je},${Ze},${Ze},${Je}\\)$`),at={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function st(){return this.rgb().formatHex()}function lt(){return this.rgb().formatRgb()}function ct(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Qe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?ut(t):3===n?new ft(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?dt(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?dt(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=et.exec(e))?new ft(t[1],t[2],t[3],1):(t=tt.exec(e))?new ft(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=nt.exec(e))?dt(t[1],t[2],t[3],t[4]):(t=rt.exec(e))?dt(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ot.exec(e))?bt(t[1],t[2]/100,t[3]/100,1):(t=it.exec(e))?bt(t[1],t[2]/100,t[3]/100,t[4]):at.hasOwnProperty(e)?ut(at[e]):"transparent"===e?new ft(NaN,NaN,NaN,0):null}function ut(e){return new ft(e>>16&255,e>>8&255,255&e,1)}function dt(e,t,n,r){return r<=0&&(e=t=n=NaN),new ft(e,t,n,r)}function pt(e){return e instanceof Ke||(e=ct(e)),e?new ft((e=e.rgb()).r,e.g,e.b,e.opacity):new ft}function ft(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function mt(){return`#${vt(this.r)}${vt(this.g)}${vt(this.b)}`}function ht(){const e=gt(this.opacity);return`${1===e?"rgb(":"rgba("}${yt(this.r)}, ${yt(this.g)}, ${yt(this.b)}${1===e?")":`, ${e})`}`}function gt(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function yt(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function vt(e){return((e=yt(e))<16?"0":"")+e.toString(16)}function bt(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new St(e,t,n,r)}function xt(e){if(e instanceof St)return new St(e.h,e.s,e.l,e.opacity);if(e instanceof Ke||(e=ct(e)),!e)return new St;if(e instanceof St)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new St(a,s,l,e.opacity)}function St(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Mt(e){return(e=(e||0)%360)<0?e+360:e}function Ct(e){return Math.max(0,Math.min(1,e||0))}function wt(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}We(Ke,ct,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:st,formatHex:st,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return xt(this).formatHsl()},formatRgb:lt,toString:lt}),We(ft,(function(e,t,n,r){return 1===arguments.length?pt(e):new ft(e,t,n,null==r?1:r)}),Ue(Ke,{brighter(e){return e=null==e?Ye:Math.pow(Ye,e),new ft(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Ge:Math.pow(Ge,e),new ft(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ft(yt(this.r),yt(this.g),yt(this.b),gt(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:mt,formatHex:mt,formatHex8:function(){return`#${vt(this.r)}${vt(this.g)}${vt(this.b)}${vt(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:ht,toString:ht})),We(St,(function(e,t,n,r){return 1===arguments.length?xt(e):new St(e,t,n,null==r?1:r)}),Ue(Ke,{brighter(e){return e=null==e?Ye:Math.pow(Ye,e),new St(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Ge:Math.pow(Ge,e),new St(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new ft(wt(e>=240?e-240:e+120,o,r),wt(e,o,r),wt(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new St(Mt(this.h),Ct(this.s),Ct(this.l),gt(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=gt(this.opacity);return`${1===e?"hsl(":"hsla("}${Mt(this.h)}, ${100*Ct(this.s)}%, ${100*Ct(this.l)}%${1===e?")":`, ${e})`}`}}));const kt=Math.PI/180,Et=180/Math.PI,Tt=.96422,qt=.82521,Lt=4/29,Nt=6/29,Ot=3*Nt*Nt,Dt=Nt*Nt*Nt;function At(e){if(e instanceof Rt)return new Rt(e.l,e.a,e.b,e.opacity);if(e instanceof Bt)return _t(e);e instanceof ft||(e=pt(e));var t,n,r=jt(e.r),o=jt(e.g),i=jt(e.b),a=Pt((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=Pt((.4360747*r+.3850649*o+.1430804*i)/Tt),n=Pt((.0139322*r+.0971045*o+.7141733*i)/qt)),new Rt(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Rt(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Pt(e){return e>Dt?Math.pow(e,1/3):e/Ot+Lt}function It(e){return e>Nt?e*e*e:Ot*(e-Lt)}function zt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function jt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Ft(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Bt)return new Bt(e.h,e.c,e.l,e.opacity);if(e instanceof Rt||(e=At(e)),0===e.a&&0===e.b)return new Bt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Et;return new Bt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Bt(e,t,n,null==r?1:r)}function Bt(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function _t(e){if(isNaN(e.h))return new Rt(e.l,0,0,e.opacity);var t=e.h*kt;return new Rt(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}We(Rt,(function(e,t,n,r){return 1===arguments.length?At(e):new Rt(e,t,n,null==r?1:r)}),Ue(Ke,{brighter(e){return new Rt(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Rt(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new ft(zt(3.1338561*(t=Tt*It(t))-1.6168667*(e=1*It(e))-.4906146*(n=qt*It(n))),zt(-.9787684*t+1.9161415*e+.033454*n),zt(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),We(Bt,Ft,Ue(Ke,{brighter(e){return new Bt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Bt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return _t(this).rgb()}}));var Ht={isDark:function(e){return Ft(e).l<70}};function $t(e){const t=e.qDef;!0===t.autoSort&&t.qSortCriterias.forEach((e=>{e.qSortByNumeric=1,e.qSortByAscii=1}))}function Vt(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Wt(e){return 1===e.length&&(e=function(e){return function(t,n){return Vt(e(t),n)}}(e)),{left:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r<o;){var i=r+o>>>1;e(t[i],n)<0?r=i+1:o=i}return r},right:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r<o;){var i=r+o>>>1;e(t[i],n)>0?o=i:r=i+1}return r}}}var Ut=Wt(Vt).right,Kt=Math.sqrt(50),Gt=Math.sqrt(10),Yt=Math.sqrt(2);function Xt(e,t,n){var r=(t-e)/Math.max(0,n),o=Math.floor(Math.log(r)/Math.LN10),i=r/Math.pow(10,o);return o>=0?(i>=Kt?10:i>=Gt?5:i>=Yt?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=Kt?10:i>=Gt?5:i>=Yt?2:1)}function Jt(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/o;return i>=Kt?o*=10:i>=Gt?o*=5:i>=Yt&&(o*=2),t<e?-o:o}function Zt(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}var Qt="$";function en(){}function tn(e,t){var n=new en;if(e instanceof en)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var r,o=-1,i=e.length;if(null==t)for(;++o<i;)n.set(o,e[o]);else for(;++o<i;)n.set(t(r=e[o],o,e),r)}else if(e)for(var a in e)n.set(a,e[a]);return n}function nn(){}en.prototype=tn.prototype={constructor:en,has:function(e){return Qt+e in this},get:function(e){return this[Qt+e]},set:function(e,t){return this[Qt+e]=t,this},remove:function(e){var t=Qt+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===Qt&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===Qt&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===Qt&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===Qt&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===Qt&&++e;return e},empty:function(){for(var e in this)if(e[0]===Qt)return!1;return!0},each:function(e){for(var t in this)t[0]===Qt&&e(this[t],t.slice(1),this)}};var rn=tn.prototype;nn.prototype={constructor:nn,has:rn.has,add:function(e){return this[Qt+(e+="")]=e,this},remove:rn.remove,clear:rn.clear,values:rn.keys,size:rn.size,empty:rn.empty,each:rn.each};var on=Array.prototype,an=on.map,sn=on.slice;function ln(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function cn(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function un(){}var dn=.7,pn=1/dn,fn="\\s*([+-]?\\d+)\\s*",mn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",hn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",gn=/^#([0-9a-f]{3,8})$/,yn=new RegExp("^rgb\\("+[fn,fn,fn]+"\\)$"),vn=new RegExp("^rgb\\("+[hn,hn,hn]+"\\)$"),bn=new RegExp("^rgba\\("+[fn,fn,fn,mn]+"\\)$"),xn=new RegExp("^rgba\\("+[hn,hn,hn,mn]+"\\)$"),Sn=new RegExp("^hsl\\("+[mn,hn,hn]+"\\)$"),Mn=new RegExp("^hsla\\("+[mn,hn,hn,mn]+"\\)$"),Cn={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function wn(){return this.rgb().formatHex()}function kn(){return this.rgb().formatRgb()}function En(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=gn.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Tn(t):3===n?new Nn(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?qn(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?qn(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=yn.exec(e))?new Nn(t[1],t[2],t[3],1):(t=vn.exec(e))?new Nn(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=bn.exec(e))?qn(t[1],t[2],t[3],t[4]):(t=xn.exec(e))?qn(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Sn.exec(e))?Rn(t[1],t[2]/100,t[3]/100,1):(t=Mn.exec(e))?Rn(t[1],t[2]/100,t[3]/100,t[4]):Cn.hasOwnProperty(e)?Tn(Cn[e]):"transparent"===e?new Nn(NaN,NaN,NaN,0):null}function Tn(e){return new Nn(e>>16&255,e>>8&255,255&e,1)}function qn(e,t,n,r){return r<=0&&(e=t=n=NaN),new Nn(e,t,n,r)}function Ln(e,t,n,r){return 1===arguments.length?((o=e)instanceof un||(o=En(o)),o?new Nn((o=o.rgb()).r,o.g,o.b,o.opacity):new Nn):new Nn(e,t,n,null==r?1:r);var o}function Nn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function On(){return"#"+An(this.r)+An(this.g)+An(this.b)}function Dn(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function An(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Rn(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new In(e,t,n,r)}function Pn(e){if(e instanceof In)return new In(e.h,e.s,e.l,e.opacity);if(e instanceof un||(e=En(e)),!e)return new In;if(e instanceof In)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new In(a,s,l,e.opacity)}function In(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function zn(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function jn(e){return function(){return e}}function Fn(e){return 1==(e=+e)?Bn:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):jn(isNaN(t)?n:t)}}function Bn(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):jn(isNaN(e)?t:e)}ln(un,En,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:wn,formatHex:wn,formatHsl:function(){return Pn(this).formatHsl()},formatRgb:kn,toString:kn}),ln(Nn,Ln,cn(un,{brighter:function(e){return e=null==e?pn:Math.pow(pn,e),new Nn(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?dn:Math.pow(dn,e),new Nn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:On,formatHex:On,formatRgb:Dn,toString:Dn})),ln(In,(function(e,t,n,r){return 1===arguments.length?Pn(e):new In(e,t,n,null==r?1:r)}),cn(un,{brighter:function(e){return e=null==e?pn:Math.pow(pn,e),new In(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?dn:Math.pow(dn,e),new In(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Nn(zn(e>=240?e-240:e+120,o,r),zn(e,o,r),zn(e<120?e+240:e-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var _n=function e(t){var n=Fn(t);function r(e,t){var r=n((e=Ln(e)).r,(t=Ln(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=Bn(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function Hn(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,o=t.slice();return function(i){for(n=0;n<r;++n)o[n]=e[n]*(1-i)+t[n]*i;return o}}function $n(e,t){var n,r=t?t.length:0,o=e?Math.min(r,e.length):0,i=new Array(o),a=new Array(r);for(n=0;n<o;++n)i[n]=Xn(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<o;++n)a[n]=i[n](e);return a}}function Vn(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Wn(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Un(e,t){var n,r={},o={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=Xn(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}var Kn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Gn=new RegExp(Kn.source,"g");function Yn(e,t){var n,r,o,i=Kn.lastIndex=Gn.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(n=Kn.exec(e))&&(r=Gn.exec(t));)(o=r.index)>i&&(o=t.slice(i,o),s[a]?s[a]+=o:s[++a]=o),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:Wn(n,r)})),i=Gn.lastIndex;return i<t.length&&(o=t.slice(i),s[a]?s[a]+=o:s[++a]=o),s.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,r=0;r<t;++r)s[(n=l[r]).i]=n.x(e);return s.join("")})}function Xn(e,t){var n,r=typeof t;return null==t||"boolean"===r?jn(t):("number"===r?Wn:"string"===r?(n=En(t))?(t=n,_n):Yn:t instanceof En?_n:t instanceof Date?Vn:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?Hn:Array.isArray(t)?$n:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?Un:Wn)(e,t)}function Jn(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Zn(e){return+e}var Qn=[0,1];function er(e){return e}function tr(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function nr(e){var t,n=e[0],r=e[e.length-1];return n>r&&(t=n,n=r,r=t),function(e){return Math.max(n,Math.min(r,e))}}function rr(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=tr(o,r),i=n(a,i)):(r=tr(r,o),i=n(i,a)),function(e){return i(r(e))}}function or(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),i=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)o[a]=tr(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(t){var n=Ut(e,t,1,r)-1;return i[n](o[n](t))}}function ir(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function ar(e,t){return function(){var e,t,n,r,o,i,a=Qn,s=Qn,l=Xn,c=er;function u(){return r=Math.min(a.length,s.length)>2?or:rr,o=i=null,d}function d(t){return isNaN(t=+t)?n:(o||(o=r(a.map(e),s,l)))(e(c(t)))}return d.invert=function(n){return c(t((i||(i=r(s,a.map(e),Wn)))(n)))},d.domain=function(e){return arguments.length?(a=an.call(e,Zn),c===er||(c=nr(a)),u()):a.slice()},d.range=function(e){return arguments.length?(s=sn.call(e),u()):s.slice()},d.rangeRound=function(e){return s=sn.call(e),l=Jn,u()},d.clamp=function(e){return arguments.length?(c=e?nr(a):er,d):c!==er},d.interpolate=function(e){return arguments.length?(l=e,u()):l},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,u()}}()(e,t)}function sr(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function lr(e){return(e=sr(Math.abs(e)))?e[1]:NaN}var cr,ur=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function dr(e){if(!(t=ur.exec(e)))throw new Error("invalid format: "+e);var t;return new pr({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function pr(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function fr(e,t){var n=sr(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}dr.prototype=pr.prototype,pr.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var mr={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return fr(100*e,t)},r:fr,s:function(e,t){var n=sr(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(cr=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+sr(e,Math.max(0,t+i-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function hr(e){return e}var gr,yr,vr,br=Array.prototype.map,xr=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Sr(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?hr:(t=br.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,i=[],a=0,s=t[0],l=0;o>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),i.push(e.substring(o-=s,o+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return i.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",i=void 0===e.currency?"":e.currency[1]+"",a=e.decimal+"",s=void 0===e.numerals?hr:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(br.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=dr(e)).fill,n=e.align,d=e.sign,p=e.symbol,f=e.zero,m=e.width,h=e.comma,g=e.precision,y=e.trim,v=e.type;"n"===v?(h=!0,v="g"):mr[v]||(void 0===g&&(g=12),y=!0,v="g"),(f||"0"===t&&"="===n)&&(f=!0,t="0",n="=");var b="$"===p?o:"#"===p&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",x="$"===p?i:/[%p]/.test(v)?l:"",S=mr[v],M=/[defgprs%]/.test(v);function C(e){var o,i,l,p=b,C=x;if("c"===v)C=S(e)+C,e="";else{var w=(e=+e)<0||1/e<0;if(e=isNaN(e)?u:S(Math.abs(e),g),y&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r<n;++r)switch(e[r]){case".":o=t=r;break;case"0":0===o&&(o=r),t=r;break;default:if(!+e[r])break e;o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),w&&0==+e&&"+"!==d&&(w=!1),p=(w?"("===d?d:c:"-"===d||"("===d?"":d)+p,C=("s"===v?xr[8+cr/3]:"")+C+(w&&"("===d?")":""),M)for(o=-1,i=e.length;++o<i;)if(48>(l=e.charCodeAt(o))||l>57){C=(46===l?a+e.slice(o+1):e.slice(o))+C,e=e.slice(0,o);break}}h&&!f&&(e=r(e,1/0));var k=p.length+e.length+C.length,E=k<m?new Array(m-k+1).join(t):"";switch(h&&f&&(e=r(E+e,E.length?m-C.length:1/0),E=""),n){case"<":e=p+e+C+E;break;case"=":e=p+E+e+C;break;case"^":e=E.slice(0,k=E.length>>1)+p+e+C+E.slice(k);break;default:e=E+p+e+C}return s(e)}return g=void 0===g?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),C.toString=function(){return e+""},C}return{format:d,formatPrefix:function(e,t){var n=d(((e=dr(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(lr(t)/3))),o=Math.pow(10,-r),i=xr[8+r/3];return function(e){return n(o*e)+i}}}}function Mr(e,t,n,r){var o,i=Jt(e,t,n);switch((r=dr(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(lr(t)/3)))-lr(Math.abs(e)))}(i,a))||(r.precision=o),vr(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,lr(t)-lr(e))+1}(i,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(e){return Math.max(0,-lr(Math.abs(e)))}(i))||(r.precision=o-2*("%"===r.type))}return yr(r)}function Cr(e){var t=e.domain;return e.ticks=function(e){var n=t();return function(e,t,n){var r,o,i,a,s=-1;if(n=+n,(e=+e)==(t=+t)&&n>0)return[e];if((r=t<e)&&(o=e,e=t,t=o),0===(a=Xt(e,t,n))||!isFinite(a))return[];if(a>0)for(e=Math.ceil(e/a),t=Math.floor(t/a),i=new Array(o=Math.ceil(t-e+1));++s<o;)i[s]=(e+s)*a;else for(e=Math.floor(e*a),t=Math.ceil(t*a),i=new Array(o=Math.ceil(e-t+1));++s<o;)i[s]=(e-s)/a;return r&&i.reverse(),i}(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return Mr(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o=t(),i=0,a=o.length-1,s=o[i],l=o[a];return l<s&&(r=s,s=l,l=r,r=i,i=a,a=r),(r=Xt(s,l,n))>0?r=Xt(s=Math.floor(s/r)*r,l=Math.ceil(l/r)*r,n):r<0&&(r=Xt(s=Math.ceil(s*r)/r,l=Math.floor(l*r)/r,n)),r>0?(o[i]=Math.floor(s/r)*r,o[a]=Math.ceil(l/r)*r,t(o)):r<0&&(o[i]=Math.ceil(s*r)/r,o[a]=Math.floor(l*r)/r,t(o)),e},e}function wr(){var e=ar(er,er);return e.copy=function(){return ir(e,wr())},Zt.apply(e,arguments),Cr(e)}gr=Sr({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),yr=gr.format,vr=gr.formatPrefix;var kr=new Date,Er=new Date;function Tr(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=function(t){return e(t=new Date(+t)),t},o.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},o.round=function(e){var t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},o.range=function(n,r,i){var a,s=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return s;do{s.push(a=new Date(+n)),t(n,i),e(n)}while(a<n&&n<r);return s},o.filter=function(n){return Tr((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(o.count=function(t,r){return kr.setTime(+t),Er.setTime(+r),e(kr),e(Er),Math.floor(n(kr,Er))},o.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?function(t){return r(t)%e==0}:function(t){return o.count(0,t)%e==0}):o:null}),o}var qr=Tr((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));qr.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?Tr((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):qr:null},qr.range;var Lr=6e4,Nr=36e5,Or=864e5,Dr=6048e5,Ar=Tr((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+1e3*t)}),(function(e,t){return(t-e)/1e3}),(function(e){return e.getUTCSeconds()}));Ar.range;var Rr=Tr((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Lr)/Or}),(function(e){return e.getDate()-1}));function Pr(e){return Tr((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Lr)/Dr}))}Rr.range;var Ir=Pr(0),zr=Pr(1),jr=Pr(2),Fr=Pr(3),Br=Pr(4),_r=Pr(5),Hr=Pr(6);Ir.range,zr.range,jr.range,Fr.range,Br.range,_r.range,Hr.range;var $r=Tr((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));$r.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Tr((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null},$r.range;var Vr=Tr((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*Lr)}),(function(e,t){return(t-e)/Lr}),(function(e){return e.getUTCMinutes()}));Vr.range;var Wr=Tr((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*Nr)}),(function(e,t){return(t-e)/Nr}),(function(e){return e.getUTCHours()}));Wr.range;var Ur=Tr((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/Or}),(function(e){return e.getUTCDate()-1}));function Kr(e){return Tr((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/Dr}))}Ur.range;var Gr=Kr(0),Yr=Kr(1),Xr=Kr(2),Jr=Kr(3),Zr=Kr(4),Qr=Kr(5),eo=Kr(6);Gr.range,Yr.range,Xr.range,Jr.range,Zr.range,Qr.range,eo.range;var to=Tr((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()}));to.range;var no=Tr((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));function ro(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function oo(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function io(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}no.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Tr((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null},no.range;var ao,so,lo={"-":"",_:" ",0:"0"},co=/^\s*\d+/,uo=/^%/,po=/[\\^$*+?|[\]().{}]/g;function fo(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function mo(e){return e.replace(po,"\\$&")}function ho(e){return new RegExp("^(?:"+e.map(mo).join("|")+")","i")}function go(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function yo(e,t,n){var r=co.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function vo(e,t,n){var r=co.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function bo(e,t,n){var r=co.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function xo(e,t,n){var r=co.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function So(e,t,n){var r=co.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Mo(e,t,n){var r=co.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Co(e,t,n){var r=co.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function wo(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function ko(e,t,n){var r=co.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function Eo(e,t,n){var r=co.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function To(e,t,n){var r=co.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function qo(e,t,n){var r=co.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Lo(e,t,n){var r=co.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function No(e,t,n){var r=co.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Oo(e,t,n){var r=co.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Do(e,t,n){var r=co.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Ao(e,t,n){var r=co.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Ro(e,t,n){var r=uo.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Po(e,t,n){var r=co.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Io(e,t,n){var r=co.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function zo(e,t){return fo(e.getDate(),t,2)}function jo(e,t){return fo(e.getHours(),t,2)}function Fo(e,t){return fo(e.getHours()%12||12,t,2)}function Bo(e,t){return fo(1+Rr.count($r(e),e),t,3)}function _o(e,t){return fo(e.getMilliseconds(),t,3)}function Ho(e,t){return _o(e,t)+"000"}function $o(e,t){return fo(e.getMonth()+1,t,2)}function Vo(e,t){return fo(e.getMinutes(),t,2)}function Wo(e,t){return fo(e.getSeconds(),t,2)}function Uo(e){var t=e.getDay();return 0===t?7:t}function Ko(e,t){return fo(Ir.count($r(e)-1,e),t,2)}function Go(e){var t=e.getDay();return t>=4||0===t?Br(e):Br.ceil(e)}function Yo(e,t){return e=Go(e),fo(Br.count($r(e),e)+(4===$r(e).getDay()),t,2)}function Xo(e){return e.getDay()}function Jo(e,t){return fo(zr.count($r(e)-1,e),t,2)}function Zo(e,t){return fo(e.getFullYear()%100,t,2)}function Qo(e,t){return fo((e=Go(e)).getFullYear()%100,t,2)}function ei(e,t){return fo(e.getFullYear()%1e4,t,4)}function ti(e,t){var n=e.getDay();return fo((e=n>=4||0===n?Br(e):Br.ceil(e)).getFullYear()%1e4,t,4)}function ni(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+fo(t/60|0,"0",2)+fo(t%60,"0",2)}function ri(e,t){return fo(e.getUTCDate(),t,2)}function oi(e,t){return fo(e.getUTCHours(),t,2)}function ii(e,t){return fo(e.getUTCHours()%12||12,t,2)}function ai(e,t){return fo(1+Ur.count(no(e),e),t,3)}function si(e,t){return fo(e.getUTCMilliseconds(),t,3)}function li(e,t){return si(e,t)+"000"}function ci(e,t){return fo(e.getUTCMonth()+1,t,2)}function ui(e,t){return fo(e.getUTCMinutes(),t,2)}function di(e,t){return fo(e.getUTCSeconds(),t,2)}function pi(e){var t=e.getUTCDay();return 0===t?7:t}function fi(e,t){return fo(Gr.count(no(e)-1,e),t,2)}function mi(e){var t=e.getUTCDay();return t>=4||0===t?Zr(e):Zr.ceil(e)}function hi(e,t){return e=mi(e),fo(Zr.count(no(e),e)+(4===no(e).getUTCDay()),t,2)}function gi(e){return e.getUTCDay()}function yi(e,t){return fo(Yr.count(no(e)-1,e),t,2)}function vi(e,t){return fo(e.getUTCFullYear()%100,t,2)}function bi(e,t){return fo((e=mi(e)).getUTCFullYear()%100,t,2)}function xi(e,t){return fo(e.getUTCFullYear()%1e4,t,4)}function Si(e,t){var n=e.getUTCDay();return fo((e=n>=4||0===n?Zr(e):Zr.ceil(e)).getUTCFullYear()%1e4,t,4)}function Mi(){return"+0000"}function Ci(){return"%"}function wi(e){return+e}function ki(e){return Math.floor(+e/1e3)}!function(e){ao=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=ho(o),u=go(o),d=ho(i),p=go(i),f=ho(a),m=go(a),h=ho(s),g=go(s),y=ho(l),v=go(l),b={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:zo,e:zo,f:Ho,g:Qo,G:ti,H:jo,I:Fo,j:Bo,L:_o,m:$o,M:Vo,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:wi,s:ki,S:Wo,u:Uo,U:Ko,V:Yo,w:Xo,W:Jo,x:null,X:null,y:Zo,Y:ei,Z:ni,"%":Ci},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:ri,e:ri,f:li,g:bi,G:Si,H:oi,I:ii,j:ai,L:si,m:ci,M:ui,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:wi,s:ki,S:di,u:pi,U:fi,V:hi,w:gi,W:yi,x:null,X:null,y:vi,Y:xi,Z:Mi,"%":Ci},S={a:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=m[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=p[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=v[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=h.exec(t.slice(n));return r?(e.m=g[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return w(e,t,n,r)},d:To,e:To,f:Ao,g:Co,G:Mo,H:Lo,I:Lo,j:qo,L:Do,m:Eo,M:No,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u[r[0].toLowerCase()],n+r[0].length):-1},q:ko,Q:Po,s:Io,S:Oo,u:vo,U:bo,V:xo,w:yo,W:So,x:function(e,t,r){return w(e,n,t,r)},X:function(e,t,n){return w(e,r,t,n)},y:Co,Y:Mo,Z:wo,"%":Ro};function M(e,t){return function(n){var r,o,i,a=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(o=lo[r=e.charAt(++s)])?r=e.charAt(++s):o="e"===r?" ":"0",(i=t[r])&&(r=i(n,o)),a.push(r),l=s+1);return a.push(e.slice(l,s)),a.join("")}}function C(e,t){return function(n){var r,o,i=io(1900,void 0,1);if(w(i,e,n+="",0)!=n.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(t&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=oo(io(i.y,0,1))).getUTCDay(),r=o>4||0===o?Yr.ceil(r):Yr(r),r=Ur.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=ro(io(i.y,0,1))).getDay(),r=o>4||0===o?zr.ceil(r):zr(r),r=Rr.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?oo(io(i.y,0,1)).getUTCDay():ro(io(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,oo(i)):ro(i)}}function w(e,t,n,r){for(var o,i,a=0,s=t.length,l=n.length;a<s;){if(r>=l)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=S[o in lo?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=M(n,b),b.X=M(r,b),b.c=M(t,b),x.x=M(n,x),x.X=M(r,x),x.c=M(t,x),{format:function(e){var t=M(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=C(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=M(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e+="",!0);return t.toString=function(){return e},t}}}(e),ao.format,ao.parse,so=ao.utcFormat,ao.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var Ei=1e3,Ti=6e4,qi=36e5,Li=864e5,Ni=2592e6,Oi=31536e6;function Di(e){return new Date(e)}function Ai(e){return e instanceof Date?+e:+new Date(+e)}function Ri(e,t,n,r,o,i,a,s,l){var c=ar(er,er),u=c.invert,d=c.domain,p=l(".%L"),f=l(":%S"),m=l("%I:%M"),h=l("%I %p"),g=l("%a %d"),y=l("%b %d"),v=l("%B"),b=l("%Y"),x=[[a,1,Ei],[a,5,5e3],[a,15,15e3],[a,30,3e4],[i,1,Ti],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,qi],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,Li],[r,2,1728e5],[n,1,6048e5],[t,1,Ni],[t,3,7776e6],[e,1,Oi]];function S(s){return(a(s)<s?p:i(s)<s?f:o(s)<s?m:r(s)<s?h:t(s)<s?n(s)<s?g:y:e(s)<s?v:b)(s)}function M(t,n,r,o){if(null==t&&(t=10),"number"==typeof t){var i=Math.abs(r-n)/t,a=Wt((function(e){return e[2]})).right(x,i);a===x.length?(o=Jt(n/Oi,r/Oi,t),t=e):a?(o=(a=x[i/x[a-1][2]<x[a][2]/i?a-1:a])[1],t=a[0]):(o=Math.max(Jt(n,r,t),1),t=s)}return null==o?t:t.every(o)}return c.invert=function(e){return new Date(u(e))},c.domain=function(e){return arguments.length?d(an.call(e,Ai)):d().map(Di)},c.ticks=function(e,t){var n,r=d(),o=r[0],i=r[r.length-1],a=i<o;return a&&(n=o,o=i,i=n),n=(n=M(e,o,i,t))?n.range(o,i+1):[],a?n.reverse():n},c.tickFormat=function(e,t){return null==t?S:l(t)},c.nice=function(e,t){var n=d();return(e=M(e,n[0],n[n.length-1],t))?d(function(e,t){var n,r=0,o=(e=e.slice()).length-1,i=e[r],a=e[o];return a<i&&(n=r,r=o,o=n,n=i,i=a,a=n),e[r]=t.floor(i),e[o]=t.ceil(a),e}(n,e)):c},c.copy=function(){return ir(c,Ri(e,t,n,r,o,i,a,s,l))},c}function Pi(){return Zt.apply(Ri(no,to,Gr,Ur,Wr,Vr,Ar,qr,so).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}const Ii={horizontal:{major:"width",minor:"height",start:"left",end:"right",shadow:{startOffset:"12px 0",endOffset:"-12px 0"}},vertical:{major:"height",minor:"width",start:"top",end:"bottom",shadow:{startOffset:"0 12px",endOffset:"0 -12px"}}},zi=e=>`${e} 12px -12px inset rgba(0, 0, 0, 0.0625)`;var ji={defaultSettings:{settings:{orientation:"horizontal",rtl:!1,range:()=>[0,1]}},renderer:"dom",render(e){const{range:t,orientation:n,rtl:r}=this.settings.settings,[o,i]=t(),a=Math.abs(o)<1e-15,s=Math.abs(i-1)<1e-15,l=(e=>{const t=Ii[e];return{base:{position:"absolute",[t.major]:12,[t.minor]:"100%"},towardsStart:{[t.start]:0,[t.end]:"auto",boxShadow:zi(t.shadow.startOffset)},towardsEnd:{[t.start]:"auto",[t.end]:0,boxShadow:zi(t.shadow.endOffset)}}})(n),c="horizontal"===n&&r,u=[];return a||u.push(e("div",{style:{...l.base,...c?l.towardsEnd:l.towardsStart},class:"scroll-hint--towards-start"})),s||u.push(e("div",{style:{...l.base,...c?l.towardsStart:l.towardsEnd},class:"scroll-hint--towards-end"})),u}};function Fi({viewState:e,viewCache:t,layoutService:n,dockService:r,rtl:o}){return!n.meta.isSnapshot&&{key:"scroll-hint",type:"scroll-hint",settings:{orientation:r.meta.major.orientation,rtl:o,range:()=>function({layoutService:e,viewState:t,viewCache:n}){return e.meta.isContinuous?function(e,t){const n=e.get("zoom"),r=t.get("continuousMin"),o=t.get("continuousMax");return[(n.min-r)/(o-r),(n.max-r)/(o-r)]}(t,n):function(e){return e.get("viewRange")}(t)}({layoutService:n,viewState:e,viewCache:t})}}}let Bi;function _i(){Bi=Bi||document.createElement("canvas").getContext("2d")}const Hi={measureTextWidth(e){_i();const{width:t}=Bi.measureText(e);return t},lineWrap(e,t,n,r){let o,i;_i();const a=e?e.split(/\n+|\r+|\r\n/):[],s=[];let l,c,u,d,p=e?e.split(/\s+/):[],f=a[0];if("number"!=typeof t||t<=0)return[e];if("number"==typeof r&&a.length>=r)return a.slice(0,r);for(n&&(Bi.font=n),i=0;i<a.length;i++){for(d=a[i]||"",p=d.split(/\s+/),[f]=p,u="",o=1;o<p.length;o++)if(l=`${f} ${p[o]}`,c=Hi.measureTextWidth(l),c>t&&("number"!=typeof r||r>s.length)?(s.push(f),f=p[o]):f=l,"number"==typeof r&&s.length>=r){u=p.slice(o+1).join(" ");break}"number"!=typeof r||s.length<r?s.push(f):s[Math.max(0,s.length-1)]=`${s[Math.max(0,s.length-1)]||""} ${f} ${u}`}return s},wordWrap(e,t,n,r,o){if(_i(),!e||!e.length)return[];n&&(Bi.font=n);let i=[];const a=e.slice();let s,l,c,u;if(a.filter((e=>!!e)),"number"!=typeof t||t<0)return e.slice();for(u=0;u<a.length;u++)c=a[u],l=null,c&&(c.length<=1||Hi.measureTextWidth(c)<=t?i.push(c):(s=Hi.splitWord(c,t,void 0,r-i.length),s.length<=1?i.push(s[0]):(l=s.pop(),i=i.concat(s),a[u+1]?Hi.measureTextWidth(`${l} ${a[u+1]}`)>t&&i.length+a.length-u<=r?a.splice(u+1,0,l):a[u+1]=`${l} ${a[u+1]}`:a.push(l))));return i.forEach(((e,t,n)=>{n[t]=e?e.trim():e})),i.length>r?(i=i.splice(0,r),i[i.length-1]=Hi.truncate(i[i.length-1],t,n,o).text):(c=i[i.length-1],c&&c.length>1&&Hi.measureTextWidth(c)>t&&(i[i.length-1]=Hi.truncate(c,t,n,o).text)),i},truncate(e,t,n,r="…"){_i();let o,i,a,s,l=e;const c=Hi.measureTextWidth("i"),u=Math.ceil(t/c);if(n&&(Bi.font=n),e&&t){if(Hi.measureTextWidth(l)>t){for(o=Math.min(u,l.length);o>0;o--)if(i=l.substring(0,o-1),a=i.trim()+r,Hi.measureTextWidth(a)<=t){s=l.substring(o-1),l=a;break}o||(s=l,l="…")}}else s=void 0;return{text:l,rest:s}},isNumber:e=>"number"==typeof e&&Number.isFinite(e),explodeWord(e,t,n,r){let o;_i();let i,a=e,s="",l=[];if(Hi.isNumber(n)&&n<=1)return[e];const c=Math.ceil(t/r);for(o=Math.min(e.length,c);o>0&&(a=e.substring(0,o),i=e.substring(o-1,o)," "===i?a=e.substring(0,o-1):a+="-",s=e.substring(o),!(Hi.measureTextWidth(a)<=t));o--);return(!o&&!a||Hi.measureTextWidth(a)>t)&&(a=e.substring(0,1),s=e.substring(1)),l.push(a),s?(Hi.measureTextWidth(s)>t?(s=Hi.explodeWord(s,t,n-1,r),l=l.concat(s)):l.push(s),l.filter((e=>""!==e.trim()))):l},splitWord:(e,t,n,r)=>(_i(),e&&t?(n&&(Bi.font=n),Hi.explodeWord(e,t,r,Math.max(1,Hi.measureTextWidth("i")))):[]),wrapText(e,t,n,r,o){let i;return Number.isNaN(t)?[e]:(i=r>1?Hi.lineWrap(e,t,n,r):[e],i=Hi.wordWrap(i,t,n,r,o),i)},getFontHeight:e=>(_i(),e&&(Bi.font=e),1.5*Hi.measureTextWidth("m")),tokenize(e,t,n,r,o,i,a=1){_i(),t&&(Bi.font=t);const s=Hi.getFontHeight(),l=a*s;let c=[],u=0,d=[];if(i<s)return[];const p=i?Math.max(1,Math.floor(i/l)):r||1;return Array.isArray(r)?(r.forEach((e=>{u+=Number.isNaN(e)||e<=0?0:e})),r.forEach((e=>{c.push(Number.isNaN(e)||e<=0?p-u:e)}))):c=[Number.isNaN(r)||r<=0?p:Math.min(p,r)],Array.isArray(e)?e.forEach(((e,n)=>{d.length<p&&(d=d.concat(Hi.wrapText(e,o,t,c[n])))})):d=Hi.wrapText(e,o,t,c[0],n),d}},$i={getDefaultSettings:({size:e=10,fill:t="#999",alignment:n}={})=>({show:!0,type:"n-polygon",fill:t,stroke:"#000",strokeWidth:0,size:e,sides:3,startAngle:-90,alignment:n}),createOob({oob:e,dockValue:t,boxCenter:n,rendWidth:r,rendHeight:o,flipXY:i,symbol:a}){let s="x",l="y",c=r,u=o,d=t<.5?90:-90;return i&&(s="y",l="x",c=o,u=r,d=t<.5?180:0),a(he({},e,{[s]:n*c,[l]:Math.max(e.size/2,Math.min(t*u,u-e.size/2)),startAngle:d}))}},Vi=he.bind(null,!0),Wi={},{isArray:Ui}=Array;function Ki(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Gi(e){return void 0===e}function Yi(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function Xi(e,t){const n=t.substring(1).split("/").slice(0,-1);let r;return n.forEach(((t,o)=>{if(o===n.length)return;r=+t;const i=isNaN(r)?{}:[];e[r||t]=Gi(e[r||t])?i:e[t],e=e[r||t]})),e}function Ji(e,t){return t?Object.keys(e).filter((t=>void 0!==e[t])).length:Object.keys(e).length}function Zi(e,t,n){let r=!0;if(Ki(e)&&Ki(t))return Ji(e,n)===Ji(t,n)&&(Object.keys(e).forEach((o=>{Zi(e[o],t[o],n)||(r=!1)})),r);if(Ui(e)&&Ui(t)){if(e.length!==t.length)return!1;for(let r=0,o=e.length;r<o;r+=1)if(!Zi(e[r],t[r],n))return!1;return!0}return e===t}Wi.compare=Zi,Wi.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const i=function(e){return e?Vi({},{val:e}).val:e}(t[o]),a=e[o],s=`${n}/${o}`;Zi(i,a)||Yi(t,o)||(Gi(a)?r.push({op:"add",path:s,value:i}):Ki(i)&&Ki(a)?r=r.concat(Wi.generate(a,i,s)):Ui(i)&&Ui(a)?r=r.concat(function(e,t,n){let r=[];const o=e.slice();let i=-1;function a(e,t,n){if(e[n]&&Gi(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(let n=0,r=e.length;n<r;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(Zi(t,o))return r;if(!Gi(t[0])&&Gi(t[0].qInfo)||0===t.length)return r.push({op:"replace",path:n,value:t}),r;for(let e=o.length-1;e>=0;e-=1)i=a(t,o[e].qInfo&&o[e].qInfo.qId,e),-1===i?(r.push({op:"remove",path:`${n}/${e}`}),o.splice(e,1)):r=r.concat(Wi.generate(o[e],t[i],`${n}/${e}`));for(let e=0,s=t.length;e<s;e+=1)i=a(o,t[e].qInfo&&t[e].qInfo.qId),-1===i?(r.push({op:"add",path:`${n}/${e}`,value:t[e]}),o.splice(e,0,t[e])):i!==e&&(r.push({op:"move",path:`${n}/${e}`,from:`${n}/${i}`}),o.splice(e,0,o.splice(i,1)[0]));return r}(a,i,s)):r.push({op:"replace",path:`${n}/${o}`,value:i}))})),Object.keys(e).forEach((o=>{Gi(t[o])&&!Yi(e,o)&&r.push({op:"remove",path:`${n}/${o}`})})),r},Wi.apply=function(e,t){t.forEach((t=>{let n=Xi(e,t.path),r=t.path.split("/").splice(-1)[0],o=r&&isNaN(+r)?n[r]:n[+r]||n;const i=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,o=e),"add"===t.op||"replace"===t.op)if(Ui(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(Ui(o)&&Ui(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(Ki(o)&&Ki(t.value))a=o,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!Yi(a,e)&&delete a[e]})),Vi(o,t.value);else{if(!n)throw new Error("Patchee is not an object we can patch");n[r]=t.value}else if("move"===t.op){const o=Xi(e,t.from);Ui(n)?n.splice(+r,0,o.splice(+i,1)[0]):(n[r]=o[i],delete o[i])}else"remove"===t.op&&(Ui(n)?n.splice(+r,1):delete n[r]);var a}))},Wi.clone=function(e){return Vi({},e)},Wi.createPatch=function(e,t,n){const r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},Wi.updateObject=function(e,t){Object.keys(e).length?Wi.apply(e,Wi.generate(e,t)):Vi(e,t)};const Qi={getValueWithOffset:(e,t=0)=>e+Math.abs(e)*t,isNumber:e=>"number"==typeof e&&!Number.isNaN(e)},ea=[[2,4,6],[2,4],[3]],ta=[,[,,[[1,2]],[[1,2,3],[1,3]],[[1,2,4],[1,4]],[[1,2,4],[1,5]],[[1,2,4,6],[2,4,6],[1,3,6],[1,6]],[[1,2,4,6],[2,4,6],[1,3,6],[1,7]],[[1,2,4,8],[2,4,8],[1,8]],[[1,2,4,8],[2,4,8],[1,3,9],[1,9]],[[1,2,4,6,10],[1,2,4,10],[1,3,10],[3,10],[1,10]]],[,,,[[2,3]],[[2,3,4],[2,4]],[[2,3,4],[2,4],[2,5]],[[2,4,6],[2,6]],[[2,4,6],[2,6],[2,7]],[[2,4,8],[2,8]],[[2,4,8],[2,8],[2,9]],[[2,4,6,10],[2,4,10],[5,10],[3,10]]],[,,,,[[3,4]],[[3,4,5],[3,5]],[[3,4,5,6],[3,6]],[[3,4,5,6],[3,5,7],[3,7]],[[3,4,5,6,8],[3,5,7],[4,8],[3,8]],[[3,4,5,6,8],[3,4,6,9],[3,4,6,8],[3,6,9],[4,8],[3,9]],[[4,6,10],[5,10],[3,10]]],[,,,,,[[4,5]],[[4,5,6],[4,6]],[[4,5,6,7],[4,5,6],[4,6]],[[4,5,6,7,8],[4,5,6,7],[4,6,8],[4,8]],[[4,5,6,7,8],[4,6,9],[4,6,8],[4,8]],[[4,6,10],[5,7,9],[5,10],[4,10]]],[,,,,,,[[5,6]],[[5,6,7],[5,7]],[[5,6,7,8],[5,6,7],[6,8]],[[5,6,7,8,9],[5,6,7,8],[5,7,9],[5,9]],[[6,8,10],[5,10]]],[,,,,,,,[[6,7]],[[6,7,8],[6,8]],[[6,7,8,9],[6,7,8],[6,9]],[[6,7,8,9,10],[6,8,10],[6,10]]],[,,,,,,,,[[7,8]],[[7,8,9],[7,9]],[[7,8,9,10],[8,10],[7,10],[7,9]]],[,,,,,,,,,[[8,9]],[[8,9,10],[8,10]]],[,,,,,,,,,,[[9,10]]]];function na(e,t,n){const r=e?e.length:0;let o,i=void 0===t?Number.MAX_VALUE:e[0]/t;for(o=1;o<r;o++)i=Math.min(i,e[o]/e[o-1]);void 0!==n&&(i=Math.min(i,n/e[r-1])),e.splice(0,0,i)}function ra(e,t,n){let r;const o=e?e.length:0;for(r=0;r<o;r++)na(e[r],t,n)}!function(){let e,t;for(ra(ea,1,10),e=0;e<ta.length;e++)if(ta[e])for(t=0;t<ta[e].length;t++)Array.isArray(ta[e][t])&&ra(ta[e][t])}();const oa={isInside(e,t,n,r){if(!r)return!0;const o=e.position-e.radius,i=e.position+e.radius;return o>=t&&i<=n},getCenterDistance:(e,t)=>Math.abs(e.center-t.center),getGap(e,t){const n=e.position<t.position?e:t,r=e.position<t.position?t:e;return r.position-r.radius-(n.position+n.radius)},findSegmentPositionMeetMax(e,t){const n=Math.max(0,e.max-t);return e.center-n},findSegmentPositionMeetMin(e,t){const n=Math.max(0,t-e.min);return e.center+n},findSegmentPositionMeetMinThenMax(e,t,n){const r=oa.findSegmentPositionMeetMin(e,t);return oa.findSegmentPositionMeetMax({center:r,max:r+e.radius},n)},findSegmentPositionMeetMaxThenMin(e,t,n){const r=oa.findSegmentPositionMeetMax(e,n);return oa.findSegmentPositionMeetMin({center:r,min:r-e.radius},t)},layoutPositionFromMin(e,t,n,r=0){const o=e.length-1;let i,a,s=t;for(let t=0;t<o;t++)i=e[t],a=e[t+1],i.position=oa.findSegmentPositionMeetMaxThenMin(i,s,(i.center+a.center-r)/2),s=i.position+i.radius+r/2;a.position=oa.findSegmentPositionMeetMaxThenMin(a,s,n)},adjustPositionFromMax(e,t,n,r=0){const o=e.length-1;let i,a,s;const l=Math.max(0,e[o].position+e[o].radius-n);if(0===l)return;let c,u=0;for(i=o;i>0&&(a=e[i],s=e[i-1],c=Math.max(0,oa.getGap(s,a)-r),c-=Math.max(0,u+c-l),u+=c,a.move=c,!(u>=l));i--);for(u<l&&(c=Math.max(0,s.position-s.radius-t),c-=Math.max(0,u+c-l),u+=c,s.move=c),u=0,i=0;i<=o;i++)a=e[i],u+=a.move||0,a.move=u,a.position-=u},layout(e,t,n,r=0){const o=e.length-1;if(!(o<0))if(0!==o)oa.layoutPositionFromMin(e,t,n,r),oa.adjustPositionFromMax(e,t,n,r);else{const r=e[0];r.position=oa.findSegmentPositionMeetMaxThenMin(r,t,n)}}},ia=(e,t,n,r=1)=>{const o=e.bandwidth();return n?"start"===t?o:"end"===t?o*(1-r):o*(2-r)/2:"start"===t?0:"end"===t?o*r:o*r/2},aa=e=>!1!==e.show&&0!==e.show&&"0"!==e.show,sa=e=>e.filter(aa),la=(e,t)=>sa(ke.getValue(e,t,[])),ca=e=>aa(e)&&(!1!==e.showValue||!1!==e.showLabel),ua=e=>e.filter(ca),da=(e,t)=>ua(ke.getValue(e,t,[])),pa=({refLineLayout:e,layoutService:t})=>t.meta.canBeContinuous?e.refLineExpr.value:e.refLineExpr.stringValue,fa=(e,t,n)=>{const{dimensionRefLineInfo:r}=t;if(r[e])return r[e][n]},ma=({label:e,dataPages:t})=>{const{qArea:n={}}=t||{},{qTop:r,qHeight:o}=n;return void 0!==r&&void 0!==o&&void 0!==e.valueInfo&&e.valueInfo.maxOrder<r},ha=({label:e,dataPages:t})=>{const{qArea:n={}}=t||{},{qTop:r,qHeight:o}=n;return void 0!==r&&void 0!==o&&void 0!==e.valueInfo&&e.valueInfo.minOrder>=r+o},ga=({value:e,qMin:t})=>"NaN"!==t&&e<t,ya=({value:e,qMax:t})=>"NaN"!==t&&e>t,va={isRefLineVisible:aa,getVisibleRefLines:sa,getRefLines:la,getMeasureRefLines:e=>la(e,"refLine.refLines"),getDimensionRefLines:(e,t)=>t?[]:la(e,"refLine.dimRefLines"),isRefLineLabelVisible:ca,getVisibleRefLineLabels:ua,getRefLineLabels:da,getMeasureRefLineLabels:e=>da(e,"refLine.refLines"),getDimensionRefLineLabels:(e,t)=>t?[]:da(e,"refLine.dimRefLines"),getScaledPosition:({scale:e,size:t,value:n,valueInfo:r,align:o,invert:i=!1,layoutService:a,isContinuous:s})=>{if(!s){const s=e.pxScale(t);let l;if(a.meta.isGroupedByMeasure)return l=ia(s,o,i,a.meta.measureCount),s([n,0])+l;if(a.meta.isGroupedByDimension){if(!r)return NaN;const{innerValues:e,numInnerValues:t,minOrder:a}=r;let c;return l=ia(s,o,i,t),e&&e.length&&(c=(({pxScale:e,value:t,innerValues:n,invert:r,minOrder:o})=>{const i=(({pxScale:e,invert:t})=>e.bandwidth()*(t?-1:1))({pxScale:e,invert:r});for(let r=0;r<n.length;r++){const{id:a,order:s}=n[r],l=e([t,a]);if(void 0!==l)return l-i*(s-o)}})({pxScale:s,value:n,innerValues:e,invert:i,minOrder:a})),(void 0===c?s(n):c)+l}return l=ia(s,o,i),s(n)+l}return e(n)},getDimensionValuesInfo:({layout:e,canBeContinuous:t,discreteModel:n,layoutService:r})=>{const{isGroupedByDimension:o}=r.meta,i={},a=ke.getValue(e,"qHyperCube"),s="K"===a.qMode,l=n?n.query.getCurrentDataPage():ke.getValue(a,"S"===a.qMode?"qDataPages.0":"qStackedDataPages.0",[]);const c=s?"qData.0.qSubNodes":"qMatrix",u=ke.getValue(l,c,[]),d=((e,t)=>e?t?"qValue":"qNum":"qText")(t,s),p=(e=>e.qArea.qTop)(l);return s?(()=>{for(let e=0;e<u.length;e++){const t=u[e],n=e+p,r=t[d];i[r]||(i[r]={id:t.qElemNo,qText:t.qText,minOrder:n,maxOrder:n,dataNode:u[e]})}})():o?(()=>{let e;for(let t=0;t<u.length;t++){const n=u[t][0],r=u[t][1],o=t+p,a=n[d];i[a]?(i[a].minOrder=Math.min(i[a].minOrder,o),i[a].maxOrder=Math.max(i[a].maxOrder,o),i[a].innerValues[i[a].innerValues.length]={id:r.qElemNumber,order:o}):i[a]={id:n.qElemNumber,qText:n.qText,minOrder:o,maxOrder:o,innerValues:[{id:r.qElemNumber,order:o}],dataNode:u[t]},0===t?0===o&&(i[a].isMinOrderOk=!0):a!==e&&(i[a].isMinOrderOk=!0,i[e].isMaxOrderOk=!0),e=a}})():(()=>{for(let e=0;e<u.length;e++){const t=u[e][0],n=e+p,r=t[d];i[r]||(i[r]={id:t.qElemNumber,qText:t.qText,minOrder:n,maxOrder:n,dataNode:u[e]})}})(),i},getInputValue:pa,extractInfoFromInputValue:fa,resolveValue:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const r=pa({refLineLayout:e,layoutService:n});return fa(r,t,"id")},isDiscreteMinOutOfBounds:ma,isDiscreteMaxOutOfBounds:ha,isContinuousMinOutOfBounds:ga,isContinuousMaxOutOfBounds:ya,isOutOfRange:({value:e,qMin:t,qMax:n})=>ga({value:e,qMin:t})||ya({value:e,qMax:n}),isOutOfDataPages:({label:e,dataPages:t})=>e.valueInfo.isMinOrderOk&&ha({label:e,dataPages:t})||e.valueInfo.isMaxOrderOk&&ma({label:e,dataPages:t}),getInvert:({orientation:e,rtl:t,isContinuous:n})=>"horizontal"===e?t:n},ba=({label:e,labelStyle:t})=>[(null==e?void 0:e.fontStyle)||(null==t?void 0:t.fontStyle),(null==e?void 0:e.fontWeight)||(null==t?void 0:t.fontWeight),(null==e?void 0:e.fontSize)||(null==t?void 0:t.fontSize),(null==e?void 0:e.fontFamily)||(null==t?void 0:t.fontFamily)].filter((e=>!!e)).join(" ");function xa(e){return e.showValue?`… ${e.valueString}`:"…"}function Sa(e,t,n=70){for(let r=0;r<e.length;r++){const o=e[r],i=ba({label:o,labelStyle:t});o.lines=Hi.tokenize(o.title,i,xa(o),3,n),o.maxNumLines=o.lines.length}}function Ma({title:e,font:t,ellipsis:n,maxNumLines:r=5,maxWidth:o=200}){const i=Hi.tokenize(e,t,n,r,o),a=i.length;let s="";if(a){[s]=i;for(let e=1;e<a;e++)s=`${s}\n${i[e]}`}return s}function Ca({oobs:e,font:t,ellipsis:n,maxNumLines:r=5,maxWidth:o=200}){const i=e.map((e=>Ma({title:e.title,font:t,ellipsis:`${n} ${e.valueString}`,maxNumLines:r,maxWidth:o}))),a=i.length;let s="";if(a){[s]=i;for(let e=1;e<a;e++)s=`${s}\n\n${i[e]}`}return s}function wa(e,t="value"){e.sort(((e,n)=>e[t]-n[t]))}const ka=3,Ea=2;function Ta({inputValue:e,inputValueLabel:t,localeInfo:n}){if(void 0===e||void 0===t||e.toString()===t)return!1;if(!n)return!0;const r=`+-${n.qDecimalSep||""}${n.qThousandSep||""}`.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&");return t.replace(new RegExp(`[0-9e${r}]`,"g"),"").length>0||function(e){if(e.indexOf("e")>-1)return!1;const t=e.indexOf("-");return-1!==t&&(e.lastIndexOf("-")!==t||0!==t)}(t)}const qa=({label:e,dataPages:t,qMin:n,qMax:r})=>{if(void 0!==n&&void 0!==r){const{inputValue:t}=e;if(va.isContinuousMaxOutOfBounds({value:t,qMax:r}))return 1;if(va.isContinuousMinOutOfBounds({value:t,qMin:n}))return-1}return va.isDiscreteMaxOutOfBounds({label:e,dataPages:t})?1:va.isDiscreteMinOutOfBounds({label:e,dataPages:t})?-1:0},La={hasEngineFormat:Ta,calculateLabelPositions({labels:e,scale:t,size:n,layoutService:r,orientation:o,rtl:i,isContinuous:a,isDimension:s}){const l=va.getInvert({orientation:o,rtl:i,isContinuous:a}),c="S"===r.getHyperCubeValue("qMode")?"qDataPages.0":"qStackedDataPages.0",u=r.getHyperCubeValue(c),{canBeContinuous:d}=r.meta;let p,f;if(s&&d){const e=r.getLayoutValue("qHyperCube.qDimensionInfo.0");p=e.qMin,f=e.qMax}for(let o=0;o<e.length;o++){const i=e[o],{value:s,align:c,valueInfo:d}=i,m=qa({label:i,dataPages:u,qMin:p,qMax:f});i.scaledValue=1===m?l?-.1:1.1:-1===m?l?1.1:-.1:va.getScaledPosition({scale:t,size:n,value:s,valueInfo:d,align:c,invert:l,layoutService:r,isContinuous:a}),i.center=i.scaledValue*n}},getTitle:e=>!1!==e.showValue?!1!==e.showLabel?`${e.text} ${e.valueString}`:e.valueString:!1!==e.showLabel?e.text:"",addLabelTitles({labels:e,formatter:t,isContinuous:n,canBeContinuous:r,localeInfo:o}){let i;if(n)for(let n=0;n<e.length;n++){const r=e[n],{value:a,inputValue:s,inputValueLabel:l}=r;i=Ta({inputValue:s,inputValueLabel:l,localeInfo:o})?l:t?t(a):a,r.valueString=`${$e.lrm}(${i})${$e.lrm}`,r.title=La.getTitle(r)}else if(r)for(let t=0;t<e.length;t++){const n=e[t],{valueText:r,inputValue:a,inputValueLabel:s}=n;i=Ta({inputValue:a,inputValueLabel:s,localeInfo:o})?s:r,n.valueString=`${$e.lrm}(${i})${$e.lrm}`,n.title=La.getTitle(n)}else for(let t=0;t<e.length;t++){const n=e[t];i=n.valueText,n.valueString=`${$e.lrm}(${i})${$e.lrm}`,n.title=La.getTitle(n)}},measureLabelsWidth(e,t){for(let n=0;n<e.length;n++){const r=e[n];r.totalWidth=t(r.title,r).width}},measureLabelMaxLineWidth(e,t){const n=Math.max(...e.lines.map((n=>t(n,e).width)));return n},getMaxTextWidth(e){const t=e.map((e=>e.totalWidth));return Math.max(...t)},addLabelsNeighborInfo(e,t,n,r=0){const o=e.length-1;if(o<0)return;let i,a;if([i]=e,i.cMin=t,0!==o){for(let t=0;t<o;t++)i=e[t],a=e[t+1],i.cMax=(i.center+a.center-r)/2,a.cMin=i.cMax+r;a.cMax=n}else i.cMax=n},getTotalNumLines(e){let t=0;return e.forEach((e=>{t+=e.maxNumLines})),t},reduceLabelsHavingMaxNumLines(e,t,n){const r=t-1,o=e.filter((e=>e.maxNumLines===t)),i=Math.min(n,o.length);for(let e=o.length-1;e>=o.length-i;e--)o[e].maxNumLines=r},reduceTotalMaxNumLines(e,t,n){const r=Math.floor(n/t);let o=3;do{const t=La.getTotalNumLines(e)-r;if(t<=0)return;La.reduceLabelsHavingMaxNumLines(e,o,t),o--}while(o>1)},reduceMaxNumLines(e,t,n=0){for(let r=0;r<e.length;r++){const o=e[r];o.maxNumLines=Math.max(1,Math.min(o.maxNumLines,Math.floor((Math.max(0,o.cMax-o.cMin)+n)/t)))}},addLabelsSize(e,t,n=15,r){for(let o=0;o<e.length;o++){const i=e[o];i.width=Math.min(t,La.measureLabelMaxLineWidth(i,r)),i.height=i.lines.length*n}},addLabelSegments(e,t){for(let n=0;n<e.length;n++){const r=e[n],{center:o}=r,i=r[t],a=i/2;r.segment={center:o,range:i,min:o-a,max:o+a,radius:a}}},addLabelsInfo({labels:e,scale:t,majorSize:n,lowerLimit:r,upperLimit:o,gap:i,labelStyle:a,maxLabelWidth:s,lineHeight:l,majorDimension:c,orientation:u,measureText:d,rtl:p,layoutService:f,isContinuous:m,isDimension:h}){const g=e.map((e=>e)),y=n;La.calculateLabelPositions({labels:e,scale:t,size:y,layoutService:f,orientation:u,rtl:p,isContinuous:m,isDimension:h}),wa(e,"center"),La.addLabelsNeighborInfo(e,r,o,i),Sa(e,a,s),La.reduceTotalMaxNumLines(g,l,o-(g.length-1)*i),"vertical"===u&&(La.reduceMaxNumLines(e,l,.05*i),function(e,t,n=70){for(let r=0;r<e.length;r++){const o=e[r],i=ba({label:o,labelStyle:t});o.lines.length>o.maxNumLines&&(o.lines=Hi.tokenize(o.title,i,xa(o),o.maxNumLines,n))}}(e,a,s)),La.addLabelsSize(e,s,l,d),La.addLabelSegments(e,c)},createLabels({labels:e,style:t,maxLabelWidth:n,areaProps:r,area:o,lineHeight:i=15,font:a}){const{majorAxis:s,minorAxis:l,dock:c}=r,{minorCenter:u}=o,{fontSize:d,fontFamily:p,fontStyle:f,fontWeight:m,textDecoration:h,background:g}=t;let y=[];return e.forEach((e=>{const{lines:t}=e,r=t.length,o=t.map(((t,o)=>{const g={type:"text",text:t,title:Ma({title:e.title,font:a,ellipsis:xa(e)}),dx:0,dy:0,maxWidth:n,width:n,fontSize:e.fontSize||d,fontFamily:e.fontFamily||p,fontStyle:e.fontStyle||f,fontWeight:e.fontWeight||m,textDecoration:e.textDecoration||h,fill:e.fill,baseline:"central",anchor:"middle",value:e.value,dock:c};return g[l]=u,g[s]=e.segment.position,g.y+=(o-(r-1)/2)*i,g}));e.background&&y.push(function({minorCenter:e,majorAxis:t,minorAxis:n,dock:r,label:o,lineHeight:i,background:a}){const{lines:s}=o,{borderRadius:l=ka,padding:c={}}=a,{top:u=Ea,bottom:d=Ea,left:p=Ea,right:f=Ea}=c,m=s.length,h={type:"rect",rx:l,ry:l,fill:o.background.fill,width:o.width+(p+f),height:o.height+(u+d),value:o.value,dock:r};return h[n]=e,h[t]=o.segment.position,h.x-=o.width/2+p,h.y-=m*i/2+u,h}({minorCenter:u,majorAxis:s,minorAxis:l,dock:c,label:e,lineHeight:i,background:g})),y=y.concat(o)})),y}};function Na(e,t,n){let r;const o=typeof t;if("string"===o||"object"===o)r=e.formatter(t);else if(void 0!==n&&n.data){const e=n.data()&&n.data().fields;r=e&&e[0]?e[0].formatter():null}return r}function Oa(e,t,n){return"top"===e||"bottom"===e?function(e,t){const{lineHeight:n,top:r,bottom:o,maxLabelWidth:i}=t;let a=1;return La.getMaxTextWidth(e)>i&&(Sa(e,t,i),a=Math.max(...e.map((e=>e.lines.length)))),a*n+r+o}(t,n):function(e,t){const{left:n,right:r,maxLabelWidth:o}=t;return Math.min(o,La.getMaxTextWidth(e))+n+r}(t,n)}function Da(e,t){return t?e.domain():[0,1]}function Aa(e,t,n,r="value"){let o=e.filter((e=>e[r]>=t));o=o.filter((e=>e[r]<=n));const i=e.filter((e=>e[r]<t)),a=e.filter((e=>e[r]>n));return{filteredLabels:o,minOobs:i,maxOobs:a,numMinOobs:i.length,numMaxOobs:a.length}}function Ra(e){let t,n=0;for(let r=1;r<10;r++)t=e(r),n=Math.max(n,Math.sqrt(t.width*t.width+t.height*t.height));return t=e("9+"),[n,Math.max(n,Math.sqrt(t.width*t.width+t.height*t.height))]}function Pa(e,t){return e>9?t[1]:t[0]}function Ia({alignment:e,dockValue:t,oobs:n,style:r,rect:o,symbol:i,position:a,areaProps:s,radius:l,font:c}){const u=n?n.length:0;if(u<1)return[];const{flipXY:d,majorAxis:p,minorAxis:f,minorDimension:m,dock:h}=s,g=o[m],y=$i.createOob({oob:$i.getDefaultSettings({size:r.size,fill:r.fill,alignment:e}),dockValue:t,boxCenter:.5,rendWidth:o.width,rendHeight:o.height,flipXY:d,symbol:i});y.dock=h;const v=`c${p}`,b=`c${f}`,x={type:"circle",r:l,stroke:"transparent",fill:r.text.background.fill,strokeWidth:0,dock:h};x[b]=g/2,x[v]=a;const S={type:"text",text:u>9?"9+":u,title:Ca({oobs:n,font:c,ellipsis:"…"}),dx:0,dy:0,maxWidth:g,width:g,fontSize:r.text.fontSize,fontFamily:r.text.fontFamily,fill:r.text.fill,baseline:"central",anchor:"middle",dock:h};return S[f]=g/2,S[p]=a,[y,x,S]}const za=e=>{const t=ba({labelStyle:e}),n=Hi.getFontHeight(t)*(e.lineHeightMultiplicator||1),r=e.gap||12,o=e.maxWidth||75,i=e.padding.top||0,a=e.padding.bottom||0,s=e.padding.left||0,l=e.padding.right||0;return{...e,font:t,lineHeight:n,gap:r,maxLabelWidth:o,top:i,bottom:a,left:s,right:l}},ja=e=>e.map((e=>({...e,value:"function"==typeof e.value?e.value():e.value,valueText:"function"==typeof e.valueText?e.valueText():e.valueText,valueInfo:"function"==typeof e.valueInfo?e.valueInfo():e.valueInfo})));var Fa={require:["renderer","chart","symbol"],defaultSettings:{layout:{displayOrder:0,prioOrder:0}},preferredSize(){const{scale:e}=this,{style:t,layoutService:n,isContinuous:r,localeInfo:o}=this.settings,i=!!r||n.meta.canBeContinuous,a=ja(this.settings.labels),s=Na(this.chart,this.settings.formatter,e);La.addLabelTitles({labels:a,formatter:s,isContinuous:r,canBeContinuous:i,localeInfo:o});const{numMaxOobs:l,numMinOobs:c,filteredLabels:u}=(({labels:e,scale:t,isContinuous:n,canBeContinuous:r,layoutService:o})=>{if(n){const[r,o]=Da(t,n);return Aa(e,r,o)}if(r){const t=o.getLayoutValue("qHyperCube.qDimensionInfo.0"),{qMin:n,qMax:r}=t;if("NaN"!==n&&"NaN"!==r)return Aa(e,n,r,"inputValue")}return{filteredLabels:e}})({labels:a,scale:e,isContinuous:r,canBeContinuous:i,layoutService:n});let d;if(this.measureText=(e,n)=>{const{fontSize:r,fontFamily:o,fontWeight:i}=n||{};return this.renderer.measureText({text:e,fontWeight:i||t.label.fontWeight,fontSize:r||t.label.fontSize,fontFamily:o||t.label.fontFamily})},u&&u.length){const e=za(t.label),{dock:n}=this.settings.layout;return La.measureLabelsWidth(u,this.measureText),d=Oa(n,u,e),d}const p=Ra(this.measureText),f=l?Pa(l,p):0,m=c?Pa(c,p):0;return d=Math.max(f,m),d},render(){const{scale:e}=this;if(!e.domain().length)return;const{symbol:t}=this,{style:n,layoutService:r,theme:o,isContinuous:i,isDimension:a,localeInfo:s}=this.settings,l=!!i||r.meta.canBeContinuous,c=ja(this.settings.labels),{dock:u,rtl:d}=this.settings.layout,{padding:p}=n.label,f=function(e){return"left"===e||"right"===e?(e=>({dock:e,orientation:"vertical",majorAxis:"y",minorAxis:"x",majorDimension:"height",minorDimension:"width",flipXY:!1}))(e):(e=>({dock:e,orientation:"horizontal",majorAxis:"x",minorAxis:"y",majorDimension:"width",minorDimension:"height",flipXY:!0}))(e)}(u),m=function(e,t,n){const r=e[t.minorDimension];return{minorSize:r,majorSize:e[t.majorDimension],minorCenter:"vertical"===t.orientation?(r-n.right-n.left)/2+n.left:(r-n.top-n.bottom)/2+n.top}}(this.rect,f,p),{orientation:h,majorDimension:g}=f,{majorSize:y}=m,v=za(n.label),{font:b,lineHeight:x,gap:S,maxLabelWidth:M}=v,C=Na(this.chart,this.settings.formatter,e),w=y;La.addLabelTitles({labels:c,formatter:C,isContinuous:i,canBeContinuous:l,localeInfo:s}),La.calculateLabelPositions({labels:c,scale:e,size:w,layoutService:r,orientation:h,rtl:d,isContinuous:i,isDimension:a});const[k,E]=Da(e,i),{filteredLabels:T,lowerOobs:q,upperOobs:L,lowerCircleSize:N,upperCircleSize:O,lowerOobSpace:D,upperOobSpace:A}=function({labels:e,minValue:t,maxValue:n,orientation:r,rtl:o,isContinuous:i,style:a,padding:s,measureText:l,prop:c="value"}){const{maxOobs:u,minOobs:d,filteredLabels:p}=Aa(e,t,n,c),f="scaledValue"!==c&&va.getInvert({orientation:r,rtl:o,isContinuous:i}),m=function(e,t,n){return n?t:e}(d,u,f),h=function(e,t,n){return n?e:t}(d,u,f),g=m.length,y=h.length,v=Ra(l),b=Pa(g,v),x=Pa(y,v),S=function(e,t,n,r,o){return("vertical"===r?o.top:o.left)+(e>0?t+n:0)}(g,a.oob.size,b,r,s),M=function(e,t,n,r,o){return("vertical"===r?o.bottom:o.right)+(e>0?t+n:0)}(y,a.oob.size,x,r,s);return{filteredLabels:p,lowerOobs:m,upperOobs:h,lowerCircleSize:b,upperCircleSize:x,lowerOobSpace:S,upperOobSpace:M}}({labels:c,minValue:k,maxValue:E,orientation:h,rtl:d,isContinuous:i,style:n,padding:p,measureText:this.measureText,prop:i?"value":"scaledValue"}),R=D,P=y-A;wa(q),wa(L);const I=Ia({alignment:0,dockValue:0,oobs:q,style:n.oob,rect:this.rect,symbol:t,position:n.oob.size+N/2,areaProps:f,radius:N/2,font:b}),z=Ia({alignment:1,dockValue:1,oobs:L,style:n.oob,rect:this.rect,symbol:t,position:y-(n.oob.size+O/2),areaProps:f,radius:O/2,font:b});La.addLabelsInfo({labels:T,scale:e,majorSize:y,lowerLimit:R,upperLimit:P,labelStyle:v,lineHeight:x,gap:S,maxLabelWidth:M,majorDimension:g,orientation:h,measureText:this.measureText,rtl:d,layoutService:r,isContinuous:i,isDimension:a}),oa.layout(T.map((e=>e.segment)),R,P,n.label.gap);const j=T.filter((e=>oa.isInside(e.segment,R,P,i)));return La.createLabels({labels:j,style:n.label,maxLabelWidth:M,areaProps:f,area:m,lineHeight:x,font:b,theme:o}).concat([...I,...z])}};var Ba={dataRelatedPropertiesPaths:["qHyperCube.qGrandTotalRow","qHyperCube.qHasOtherValues","qHyperCube.qSize","qHyperCube.qDimensionInfo[].qAttrDimInfo","qHyperCube.qDimensionInfo[].qAttrExprInfo","qHyperCube.qDimensionInfo[].qCardinalities","qHyperCube.qDimensionInfo[].qMax","qHyperCube.qDimensionInfo[].qMin","qHyperCube.qDimensionInfo[].qStateCounts","qHyperCube.qMeasureInfo[].qApprMaxGlyphCount","qHyperCube.qMeasureInfo[].qAttrExprInfo","qHyperCube.qMeasureInfo[].qMax","qHyperCube.qMeasureInfo[].qMin","qHyperCube.qMeasureInfo[].qTrendLines","qHyperCube.qTreeNodesOnDim","qSelectionInfo"]};function _a(e){const{qHyperCube:t,...n}=e,{qAxisData:r,qDataPages:a,qStackedDataPages:s,qTreeDataPages:l,...c}=t,u=he(!0,{},{...n,qHyperCube:{...c,qAxisData:null,qDataPages:null,qStackedDataPages:null,qTreeDataPages:null}}),{dataRelatedPropertiesPaths:d}=Ba;return d.forEach((e=>{const t=e.split("[");if(1===t.length)void 0!==o(u,e)&&i(u,e,null);else{const e=t[0],n=t[1].split("].")[1];o(u,e,[]).forEach((e=>{void 0!==o(e,n)&&i(e,n,null)}))}})),u}var Ha={axes:{trackBy:function({isTime:e,isContinuous:t,isMeasure:n,isMajor:r}){return o=>{if(e||t||n){var i;if("line"===o.type)return null!==(i=o.tickValue)&&void 0!==i?i:"axis";if("text"===o.type)return`${o.tickValue} ${o.text}`;if("container"===o.type){const e=o.children.filter((e=>"text"===e.type)).map((e=>e.text));return`${o.data.value} ${e.join("")}`}return Math.random()}if(r){if("line"===o.type&&void 0===o.tickValue)return"axis";const e=o.transform&&o.transform.match(/rotate/gi)?"rotated":"horizontal";return`${o.data.group?`${o.data.group.value} `:""}${o.data.value} ${o.text} ${e}`}return Math.random()}},compensateForLayoutChanges:function({isMeasure:e,isTime:t,isContinuous:n,isHorizontal:r,dock:o}){return({currentNodes:i,currentRect:a,previousRect:s})=>{const l=a.x-s.x,c=a.y-s.y,u=a.width-s.width,d=a.height-s.height;e?("left"===o&&i.forEach((e=>{"line"===e.type?(e.x1+=u,e.x2+=u):"text"===e.type&&(e.x+=u)})),"left"!==o&&"right"!==o||i.forEach((e=>{var t;("line"===e.type&&(e.x1===e.x2?(e.y1=a.y,e.y2=e.y1+a.height):(Math.round(e.y1)<a.y||e.y1>a.y+a.height)&&(e.strokeWidth=0)),"text"===e.type)&&((e.y<a.y||e.y>a.y+a.height)&&(e.fontSize="1px","#"===(null===(t=e.fill)||void 0===t?void 0:t[0])&&(e.fill=`${e.fill.slice(0,1)}00${e.fill.slice(1)}`)))})),"top"!==o&&"bottom"!==o||i.forEach((e=>{var t;("line"===e.type&&(e.y1===e.y2?(e.x1=a.x,e.x2=e.x1+a.width):(Math.round(e.x1)<a.x||e.x1>a.x+a.width)&&(e.strokeWidth=0)),"text"===e.type)&&((e.x<a.x||e.x>a.x+a.width)&&(e.fontSize="1px","#"===(null===(t=e.fill)||void 0===t?void 0:t[0])&&(e.fill=`${e.fill.slice(0,1)}00${e.fill.slice(1)}`)))}))):t?i.forEach((e=>{"line"===e.type?e.y1===e.y2?e.x2+=u:e.x1===e.x2&&(e.x1-=l,e.x2-=l):"text"===e.type&&(e.x-=l)})):n||r?i.forEach((e=>{"line"===e.type&&e.y1===e.y2&&(e.x1+=l,e.x2+=l+u)})):i.forEach((e=>{"line"===e.type&&e.x1===e.x2&&(e.y1+=c,e.y2+=c+d)}))}}},bars:{trackBy:function(e){return e.data.typeIndex?`${e.data.value} ${e.data.typeIndex.value}`:e.data.measureIndex?`${e.data.value} ${e.data.measureIndex.value}`:e.data.group?`${e.data.value} ${e.data.group.value}`:e.data.stack?`${e.data.value} ${e.data.stack.value}`:`${e.data.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,o=t.y-n.y;0===r&&0===o||e.forEach((e=>{e.children&&e.children.length>0&&e.children.forEach((e=>{void 0!==e.x&&void 0!==e.y?(e.x-=r,e.y-=o):e.transform=`translate(${-r}, ${-o})`}))}))}},barOobs:{compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x;0===t.y-n.y&&0===r||e.forEach((e=>{e.children&&e.children.length>0&&e.children.forEach((e=>{e.opacity=0}))}))}},labels:{trackBy:function(e){if("rect"===e.type)return"-3"===e.data?Math.random():`${e.type} ${e.data} ${e.rotation}`;const t=e.transform&&e.transform.match(/rotate/gi)?"rotated":"horizontal";return`${e.type} ${e.data} ${e.text} ${t}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,o=t.y-n.y;0===r&&0===o||e.forEach((e=>{e.transform&&e.transform.match(/rotate\(-90/gi)?(e.x+=o,e.y-=r):(e.x-=r,e.y-=o)}))},linkData:function(e){return e.data.measureIndex?`${e.data.value} ${e.data.measureIndex.value}`:e.data.group?`${e.data.value} ${e.data.group.value}`:e.data.stack?`${e.data.value} ${e.data.stack.value}`:`${e.data.value}`}},lines:{trackBy:function(e){var t;return"line"===e.type?null!==(t=e.value)&&void 0!==t?t:Math.random():"path"===e.type?`${e.generatorType} ${e.layerObj.id} ${e.data.source.key}`:Math.random()},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,o=t.y-n.y;e.forEach((e=>{if(void 0!==e.x1&&void 0!==e.y1)e.y1===e.y2?(e.x2=e.x1+t.width,e.y1-=o,e.y2-=o):e.x1===e.x2&&(e.y2=e.y1+t.height,e.x1-=r,e.x2-=r);else{const t="x"===e.major.p?r/e.major.size:o/e.major.size,n="y"===e.minor.p?o/e.minor.size:r/e.minor.size;e.points.forEach((e=>{e.modified||(e.major-=t,e.minor-=n,e.minor0-=n,e.modified=!0)}))}}))}},lineOobs:{compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x;0===t.y-n.y&&0===r||e.forEach((e=>{e.opacity=0}))}},markers:{trackBy:function(e){return e.data.line?`${e.data.line.value} ${e.data.major.value}`:`${e.data.major.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,o=t.y-n.y;0===r&&0===o||e.forEach((e=>{switch(e.type){case"circle":e.cx-=r,e.cy-=o;break;case"rect":e.x-=r,e.y-=o;break;case"path":e.transform=`translate(${-r}, ${-o})`}}))}},points:{trackBy:function(e){return e.data.line?`${e.data.line.value} ${e.data.major.value}`:`${e.data.major.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,o=t.y-n.y;0===r&&0===o||e.forEach((e=>{e.cx-=r,e.cy-=o}))}},refLineLabels:{trackBy:function(e){if(void 0!==e.value){if("rect"===e.type)return`${e.value}`;if("text"===e.type)return`${e.value} ${e.text}`}return Math.random()},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,o=t.y-n.y,i=t.width-n.width,a=t.height-n.height;let s=-r,l=-o;e.forEach((e=>{switch(e.dock){case"right":r>0&&(s=t.width);break;case"left":i<0&&(s=-n.width);break;case"top":a<0&&(l=-n.height);break;case"bottom":o>0&&(l=t.height)}switch(e.type){case"text":case"rect":e.x+=s,e.y+=l;break;case"circle":e.cx+=s,e.cy+=l;break;case"path":e.transform=`translate(${s}, ${l})`}}))}},shadowBars:{trackBy:function(){return Math.random()}},cacheProperties:function({viewCache:e,layout:t}){const n=_a(t);e.set("dataIndependentProperties",JSON.stringify(n))},propertiesHaveChanged:function({viewCache:e,layout:t}){const n=_a(t);return e.get("dataIndependentProperties")!==JSON.stringify(n)},nonUpdatingNode:{trackBy:function(){return Math.random()}}};const{getInputValue:$a,extractInfoFromInputValue:Va,resolveValue:Wa}=va;var Ua={resolveValue:Wa,resolveInnerValues:({refLineLayout:e,refLineModel:t,layoutService:n})=>{if(n.meta.isGroupedByDimension){const r=$a({refLineLayout:e,layoutService:n});return Va(r,t,"innerValues")}},resolveNumInnerValues:({refLineLayout:e,refLineModel:t,layoutService:n})=>{if(n.meta.mode.K)return 0;const r=$a({refLineLayout:e,layoutService:n});return Va(r,t,"numInnerValues")||0},resolveValueText:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const{dimensionValuesInfo:r}=t,{canBeContinuous:o}=n.meta,i=$a({refLineLayout:e,layoutService:n});return r[i]&&o?r[i].qText:i},resolveValueInfo:({refLineLayout:e,refLineModel:t,layoutService:n})=>{const r=$a({refLineLayout:e,layoutService:n}),{dimensionRefLineInfo:o}=t;return o[r]}};function Ka({isDimension:e,refLineModel:t={},layoutService:n,colorModel:r,dockService:o,animationsEnabled:i,chart:a,scale:s,axis:l,rtl:c,key:u,mainComponentKey:d,path:p,minimumLayoutMode:f}){const m=e?t.dimensionRefLines:p?t.query.getRefLines(p):t.measureRefLines;if(!m.length)return!1;const h={key:u,type:"ref-line",layout:{minimumLayoutMode:f},lines:{y:[],x:[]},style:{oob:{show:!1}},preferredSize:()=>({size:0,edgeBleed:{left:1,right:1,top:1,bottom:1}}),animations:{enabled:i,trackBy:Ha.lines.trackBy,compensateForLayoutChanges:Ha.lines.compensateForLayoutChanges}},g=!(!e||"horizontal"!==o.meta.major.orientation||!c),y=!e||n.meta.isContinuous;return m.forEach((i=>{h.lines[l].push((({isDimension:e,refLineLayout:t,refLineModel:n,layoutService:r,colorModel:o,dockService:i,chart:a,scale:s,axis:l,invert:c,component:u,isContinuous:d})=>{var p,f;const m={dir:l,line:{strokeWidth:(null==t||null===(p=t.style)||void 0===p?void 0:p.lineThickness)||2,strokeDasharray:null==t||null===(f=t.style)||void 0===f?void 0:f.lineType,stroke:o.resolveUIColor(t.paletteColor||{index:t.color})}};return!e||r.meta.isContinuous?(m.scale=s,m.value=t.refLineExpr.value):(m.valueInfo=Ua.resolveValueInfo({refLineLayout:t,refLineModel:n,layoutService:r}),m.value=()=>{var e;const o=va.getScaledPosition({scale:a.scale(s),value:Ua.resolveValue({refLineLayout:t,refLineModel:n,layoutService:r}),valueInfo:m.valueInfo,size:null===(e=a.component(u))||void 0===e?void 0:e.rect["horizontal"===i.meta.major.orientation?"width":"height"],align:t.align,invert:c,layoutService:r,isContinuous:d});return Number.isNaN(o)?void 0:o}),m})({isDimension:e,refLineLayout:i,refLineModel:t,layoutService:n,colorModel:r,dockService:o,chart:a,scale:s,axis:l,invert:g,component:d,isContinuous:y}))})),h}const Ga={referenceLine:{label:{name:{fontFamily:"Source Sans Pro, sans-serif",fontSize:"12px"}},outOfBounds:{backgroundColor:"#737373",color:"#e6e6e6",fontFamily:"Source Sans Pro, sans-serif",fontSize:"10px"}}};function Ya({isDimension:e,refLineModel:t={},layoutService:n,colorModel:r,animationsEnabled:o,dock:i,scale:a,style:s,formatter:l,theme:c,localeInfo:u,rtl:d,key:p,path:f}){const m=e?t.dimensionRefLineLabels:f?t.query.getRefLineLabels(f):t.measureRefLineLabels;if(!m.length)return[];const h=[],g=!e||n.meta.isContinuous,y=m.map((e=>(({refLineLayout:e,refLineModel:t,layoutService:n,colorModel:r,scale:o,theme:i,isContinuous:a})=>{const s=r.resolveUIColor(e.paletteColor||{index:e.color}),{align:l,style:c}=e,{fontSize:u,fontFamily:d,fontStyle:p,fontWeight:f,textDecoration:m}=c||{},h={align:l,text:e.label,fill:e.coloredBackground?i.getContrastingColorTo(s):s,fontSize:u,fontFamily:d,fontStyle:p,fontWeight:f,textDecoration:m,showValue:!1!==e.showValue,showLabel:!1!==e.showLabel,inputValue:e.refLineExpr.value,inputValueLabel:e.refLineExpr.label};return e.coloredBackground&&(h.background={fill:s}),a?(h.scale=o,h.value=e.refLineExpr.value):(h.value=()=>Ua.resolveValue({refLineLayout:e,refLineModel:t,layoutService:n}),h.valueText=()=>Ua.resolveValueText({refLineLayout:e,refLineModel:t,layoutService:n}),h.valueInfo=()=>Ua.resolveValueInfo({refLineLayout:e,refLineModel:t,layoutService:n})),h})({refLineLayout:e,refLineModel:t,layoutService:n,colorModel:r,scale:a,theme:c,isContinuous:g})));return h.push((({isDimension:e,layoutService:t,animationsEnabled:n,style:r,labels:o,scale:i,formatter:a,dock:s,key:l,rtl:c,theme:u,isContinuous:d,localeInfo:p})=>({key:l,type:"reference-line-labels",renderer:"svg",labels:o,formatter:a,scale:i,layoutService:t,layout:{dock:s,rtl:c},theme:u,isContinuous:d,isDimension:e,localeInfo:p,style:{label:{fontFamily:r.referenceLine.label.name.fontFamily,fontSize:r.referenceLine.label.name.fontSize,fontStyle:r.referenceLine.label.name.fontStyle,fontWeight:r.referenceLine.label.name.fontWeight,textDecoration:r.referenceLine.label.name.textDecoration,padding:{top:2,bottom:2,left:c?2:4,right:c?4:2},background:{padding:{top:1,bottom:1,left:2,right:2}},maxWidth:100,gap:"left"===s||"right"===s?10:16},oob:{size:8,fill:r.referenceLine.outOfBounds.backgroundColor,text:{fontFamily:r.referenceLine.outOfBounds.fontFamily,fontSize:r.referenceLine.outOfBounds.fontSize,fill:r.referenceLine.outOfBounds.color,background:{fill:r.referenceLine.outOfBounds.backgroundColor}}}},animations:{enabled:n,trackBy:Ha.refLineLabels.trackBy,compensateForLayoutChanges:Ha.refLineLabels.compensateForLayoutChanges}}))({isDimension:e,rtl:d,style:he(!0,Ga,s),dock:i,key:p,labels:y,scale:a,formatter:l,layoutService:n,animationsEnabled:o,theme:c,isContinuous:g,localeInfo:u})),h}const Xa={combineBounds(e){let t=Number.MAX_VALUE,n=-Number.MAX_VALUE,r=Number.MAX_VALUE,o=-Number.MAX_VALUE;return e.forEach((e=>{e&&(t=Math.min(t,e.x,e.x+e.width),n=Math.max(n,e.x,e.x+e.width),r=Math.min(r,e.y,e.y+e.height),o=Math.max(o,e.y,e.y+e.height))})),{x:t,y:r,width:n-t,height:o-r}}},Ja=(e,t,n)=>{if(!e)return Promise.resolve();let r=Wi.generate(t,n);return he(!0,t,n),r&&r.length?(r=r.map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}))),e.applyPatches(r,!0)):Promise.resolve()},Za=e=>{var t;return!(!e||e.qHasSoftPatches||e.qExtendsId||!(((null===(t=e.qMeta)||void 0===t?void 0:t.privileges)||[]).indexOf("update")>-1))};function Qa(e,t=!1){const n=t?"IM_5791_SVG_LABEL_RENDERING":"IM_4962_SVG_CHART_LABELS";if(null!=e&&e.isEnabled(n))return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?void 0:"svg"}const es={ref:null,refFn:e=>{var t;const n=null===(t=e.qHyperCubeDef.qMeasures)||void 0===t?void 0:t.findIndex((e=>{var t;return"colorByExpression"===(null===(t=e.qAttributeExpressions)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.id)}));return`qHyperCubeDef.qMeasures.${-1===n?0:n}.qAttributeExpressions.0.qExpression`},change(e){var t;const n=null===(t=e.qHyperCubeDef)||void 0===t||null===(t=t.qMeasures)||void 0===t?void 0:t.findIndex((e=>{var t;return"colorByExpression"===(null===(t=e.qAttributeExpressions)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.id)})),r=ke.getValue(e,`qHyperCubeDef.qMeasures.${-1===n?0:n}.qAttributeExpressions.0`),o=ke.getValue(e,"color");r&&(r.id="colorByExpression",o&&(o.colorExpression=r.qExpression))}},ts={d:"M7 4h9v1H7zm2 4h7v1H9zm2 4h5v1h-5zM1 4v3.526a3.5 3.5 0 0 0 3.5 3.5h2.31L5.22 9.402l.715-.7L8.7 11.527 5.935 14.35l-.714-.7 1.59-1.624H4.5a4.5 4.5 0 0 1-4.5-4.5V4z"},ns={d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7Z"},rs={d:"M 6 2 h 10 V 1 H 6 Z m 5 5 h 5 V 6 h -5 Z m 5 5 h -5 v -1 h 5 Z M 5 10 h 1 v 2.663 a 3.5 3.5 0 1 0 -2.922 0.036 l -0.406 0.914 A 4.501 4.501 0 1 1 7.329 13 H 9 v 1 H 5 Z"},os={d:"M13,7 L8,7 L13,7 L13,4.98151367 C13,2.23029964 10.7614237,0 8,0 C5.23857625,0 3,2.23029964 3,4.98151367 L3,7 L3.75,7 L3,7 L4.5,7 L4.5,5.33193359 C4.5,3.21561511 5.54860291,1.5 8,1.5 C10.4513971,1.5 11.5,3.21561511 11.5,5.33193359 L11.5,7 L12.25,7 L3,7 C2.44771525,7 2,7.44771525 2,8 L2,15 C2,15.5522847 2.44771525,16 3,16 L13,16 C13.5522847,16 14,15.5522847 14,15 L14,8 C14,7.44771525 13.5522847,7 13,7 L3,7 L13,7 Z"},is="m 13.914 4.5 l -7.707 7.707 L 2 8 l 0.707 -0.707 l 3.5 3.5 l 7 -7 Z",as={d:"M2.4,4 L13.6,4 C13.7104569,4 13.8,4.08954305 13.8,4.2 C13.8,4.24327404 13.7859644,4.28538077 13.76,4.32 L8.16,11.7866667 C8.09372583,11.8750322 7.96836556,11.8929408 7.88,11.8266667 C7.86483887,11.8152958 7.85137085,11.8018278 7.84,11.7866667 L2.24,4.32 C2.17372583,4.23163444 2.19163444,4.10627417 2.28,4.04 C2.31461923,4.01403557 2.35672596,4 2.4,4 Z"},ss={d:"M4,13.6 L4,2.4 C4,2.28954305 4.08954305,2.2 4.2,2.2 C4.24327404,2.2 4.28538077,2.21403557 4.32,2.24 L11.7866667,7.84 C11.8750322,7.90627417 11.8929408,8.03163444 11.8266667,8.12 C11.8152958,8.13516113 11.8018278,8.14862915 11.7866667,8.16 L4.32,13.76 C4.23163444,13.8262742 4.10627417,13.8083656 4.04,13.72 C4.01403557,13.6853808 4,13.643274 4,13.6 Z"},ls={single:"N",drillDown:"H",cyclic:"C"},cs={N:void 0,H:ts,C:rs},us=(e,t)=>{switch(e.qGrouping){case ls.single:return;case ls.drillDown:return{path:ts,tooltip:"Tooltip.dimensions.drilldown",onClick:void 0};case ls.cyclic:return{path:t?ns:rs,tooltip:"Tooltip.dimensions.cyclic",onClick:t?({onError:n})=>{t.getDimension(e.qLibraryId).then((e=>{e.stepCycle?e.stepCycle(1):n()})).catch((()=>null))}:void 0};default:return}};function ds(e,t,n){(function({model:e,properties:t}){return e.modifiers?e.modifiers.apply({model:e,properties:t}):Promise.resolve()})({model:e,properties:n}).then((()=>{e.colorSupport&&e.colorSupport.colorByUpdater(n,"qHyperCubeDef.");let r=Wi.generate(t,n);r&&r.length&&(r=r.map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}))),e.applyPatches(r,!0))}))}function ps(e,t,n,r,o,i){e.getEffectiveProperties().then((a=>{const s=a.qHyperCubeDef[r].findIndex((e=>e.qDef.cId===t)),l=a.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r].findIndex((e=>e.qDef.cId===n)),c=he(!0,{},a),u=c.qHyperCubeDef[r][s],d=c.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l];d.qAttributeDimensions=u.qAttributeDimensions,u.qAttributeDimensions=[],i||(d.qAttributeExpressions=u.qAttributeExpressions,u.qAttributeExpressions=[]),c.qHyperCubeDef[r][s]=d,c.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l]=u,o&&o({oldItem:u,newItem:d,oldProperties:a,newProperties:c,model:e}),ds(e,a,c)}))}function fs(e){return e.qGrouping===ls.single?e.qFallbackTitle||"":e.title||""}const ms=async(e,t,n,r,o="/qHyperCubeDef")=>{switch(e.qGrouping){case ls.drillDown:{const n=e.qGroupFallbackTitles.slice(0,e.qGroupPos+1).map(((n,i)=>({id:`${e.cId}-${i}`,title:n,selected:e.qGroupPos===i,onSelect:()=>{t.drillUp(o,r,e.qGroupPos-i)}})));return{id:e.cId,icon:ts,groupItem:!0,title:e.title,selected:!1,children:n}}case ls.cyclic:{const t=await(null==n?void 0:n.getDimension(e.qLibraryId)),r=!(null!=t&&t.setActiveField)?[]:e.qGroupFallbackTitles.map(((n,r)=>({id:`${e.cId}-${r}`,title:n,selected:e.qGroupPos===r,onSelect:()=>{t.setActiveField(r).catch((()=>null))}})));return{id:e.cId,icon:rs,groupItem:!0,title:e.title,selected:!1,children:r}}default:return{selected:!0,id:e.cId,title:fs(e)}}},hs=(e,t)=>{const n=[],r=[];return t.forEach((t=>{t.qCalcCondition.qCond.qv&&r.push(e.evaluate(t.qCalcCondition.qCond.qv).then((e=>{"0"===e&&n.push(t.qDef.cId)})))})),Promise.all(r).then((()=>n))},gs=async(e,t,n,r,o)=>{const i=await hs(e,n),a=n.filter((e=>!i.includes(e.qDef.cId))),s=await Promise.all(a.map((async n=>{const i=await((e,t)=>{if(e.qLibraryId)return t.getDimension(e.qLibraryId).then((e=>e.getLayout())).catch((()=>null))})(n,e),a=await function(e,t,n,r){if(e.qLibraryId)return r?r.qDim.qGrouping===ls.single&&r.qDim.qLabelExpression?Promise.resolve(r.qDim.qLabelExpression):Promise.resolve(r.qDim.title):Promise.resolve(n.get("Object.ErrorMessage.MissingDimension"));const o=e.qDef.qLabelExpression;if(o)return t.evaluate(o);const i=e.qDef.qFieldLabels[0]||e.qDef.qFieldDefs[0];return Promise.resolve(i)}(n,e,r,i),s=(null==i?void 0:i.qDim.qGrouping)||n.qDef.qGrouping,l=cs[s],c=s!==ls.single;return{id:n.qDef.cId,icon:l,groupItem:c,selected:!1,title:a,onSelect(e){ps(t,e,n.qDef.cId,"qDimensions",o)}}})));return s};function ys({column:e,dir:t,dock:n,altList:r,model:o,translator:i,app:a,onChange:s,activeInfo:l,allowChangeOfAlternatives:c}){const u=l.qGrouping===ls.single,d=l.qGrouping===ls.drillDown;return 0===r.length&&u?null:{dir:t,dock:n,getPopoverOptions:async()=>{const t=await ms(l,o,a,e),n=c?await gs(a,o,r,i,s):[];return(u||d||0===t.children.length)&&0===n.length?[]:[t,...n]}}}function vs(e,t,n,r,o="/qHyperCubeDef"){return{breadcrumbs:e.qGrouping===ls.drillDown?e.qGroupFallbackTitles.slice(0,e.qGroupPos):[],icon:us(e,r),index:t,locked:!!e.qLocked,text:e.qGrouping===ls.single?e.qFallbackTitle:e.qGroupFallbackTitles[e.qGroupPos],popoverText:fs(e),...n&&{drillUp(e){n.drillUp(o,t,e)}},id:e.cId}}function bs({activeInfo:e,altList:t,app:n,dir:r,dock:o,model:i,onChange:a,skipAttributeExpressions:s,translator:l,allowChangeOfAlternatives:c}){return 0===t.length?null:{dir:r,dock:o,getPopoverOptions:async()=>{const r=[{id:e.cId,title:e.qFallbackTitle,selected:!0,onSelect:()=>{}}],o=await hs(n,t),u=t.filter((e=>!o.includes(e.qDef.cId))),d=c?await Promise.all(u.map((async e=>{const t=await function(e,t,n){if(e.qLibraryId)return t.getMeasure(e.qLibraryId).then((e=>e.getLayout())).catch((()=>null)).then((e=>e?e.qMeasure.qLabelExpression?e.qMeasure.qLabelExpression:e.qMeasure.qLabel||e.qMeasure.qDef:n.get("Object.ErrorMessage.MissingMeasure")));const r=e.qDef.qLabelExpression;if(r)return t.evaluate(r);const o=e.qDef.qLabel||e.qDef.qDef;return Promise.resolve(o)}(e,n,l);return{id:e.qDef.cId,selected:!1,title:t,onSelect(t){ps(i,t,e.qDef.cId,"qMeasures",a,s)}}}))):[];return 0===d.length?[]:[...r,...d]}}}function xs(e,t){return{breadcrumbs:[],index:t,locked:!1,text:e.qFallbackTitle,popoverText:e.qFallbackTitle,id:e.cId}}function Ss(){return Ss=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ss.apply(null,arguments)}var Ms={exports:{}};function Cs(){}function ws(){}ws.resetWarningCache=Cs;Ms.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:ws,resetWarningCache:Cs};return n.PropTypes=n,n}();var ks=oe(Ms.exports),Es={black:"#000",white:"#fff"},Ts="#e57373",qs="#f44336",Ls="#d32f2f",Ns="#ff4081",Os="#f50057",Ds="#c51162",As="#7986cb",Rs="#3f51b5",Ps="#303f9f",Is="#64b5f6",zs="#2196f3",js="#1976d2",Fs="#81c784",Bs="#4caf50",_s="#388e3c",Hs="#ffb74d",$s="#ff9800",Vs="#f57c00",Ws={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};function Us(){return Us=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Us.apply(null,arguments)}function Ks(e){return Ks="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ks(e)}function Gs(e){return e&&"object"===Ks(e)&&e.constructor===Object}function Ys(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?Us({},e):e;return Gs(e)&&Gs(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(Gs(t[o])&&o in e?r[o]=Ys(e[o],t[o],n):r[o]=t[o])})),r}function Xs(e){var t=function(e,t){if("object"!=Ks(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Ks(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ks(t)?t:t+""}function Js(e,t,n){return(t=Xs(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zs(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}function Qs(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function el(e){if(e.type)return e;if("#"===e.charAt(0))return el(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(Zs(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function tl(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function nl(e){var t="hsl"===(e=el(e)).type?el(function(e){var t=(e=el(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),tl({type:s,values:l})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function rl(e,t){return e=el(e),t=Qs(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,tl(e)}function ol(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function il(e,t){if(null==e)return{};var n,r,o=ol(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var al=["xs","sm","md","lg","xl"];function sl(e,t,n){var r;return Us({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),Us({paddingLeft:t(2),paddingRight:t(2)},n,Js({},e.up("sm"),Us({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},Js(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),Js(r,e.up("sm"),{minHeight:64}),r)},n)}var ll={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Es.white,default:Ws[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},cl={text:{primary:Es.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:Ws[800],default:"#303030"},action:{active:Es.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function ul(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=el(e),t=Qs(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return tl(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=el(e),t=Qs(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return tl(e)}(e.main,i)))}function dl(e){var t=e.primary,n=void 0===t?{light:As,main:Rs,dark:Ps}:t,r=e.secondary,o=void 0===r?{light:Ns,main:Os,dark:Ds}:r,i=e.error,a=void 0===i?{light:Ts,main:qs,dark:Ls}:i,s=e.warning,l=void 0===s?{light:Hs,main:$s,dark:Vs}:s,c=e.info,u=void 0===c?{light:Is,main:zs,dark:js}:c,d=e.success,p=void 0===d?{light:Fs,main:Bs,dark:_s}:d,f=e.type,m=void 0===f?"light":f,h=e.contrastThreshold,g=void 0===h?3:h,y=e.tonalOffset,v=void 0===y?.2:y,b=il(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function x(e){var t=function(e,t){var n=nl(e),r=nl(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,cl.text.primary)>=g?cl.text.primary:ll.text.primary;return t}var S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=Us({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(Zs(4,t));if("string"!=typeof e.main)throw new Error(Zs(5,JSON.stringify(e.main)));return ul(e,"light",n,v),ul(e,"dark",r,v),e.contrastText||(e.contrastText=x(e.main)),e},M={dark:cl,light:ll};return Ys(Us({common:Es,type:m,primary:S(n),secondary:S(o,"A400","A200","A700"),error:S(a),warning:S(l),info:S(u),success:S(p),grey:Ws,contrastThreshold:g,getContrastText:x,augmentColor:S,tonalOffset:v},M[m]),b)}function pl(e){return Math.round(1e5*e)/1e5}function fl(e){return pl(e)}var ml={textTransform:"uppercase"},hl='"Roboto", "Helvetica", "Arial", sans-serif';function gl(e,t){var n="function"==typeof t?t(e):t,r=n.fontFamily,o=void 0===r?hl:r,i=n.fontSize,a=void 0===i?14:i,s=n.fontWeightLight,l=void 0===s?300:s,c=n.fontWeightRegular,u=void 0===c?400:c,d=n.fontWeightMedium,p=void 0===d?500:d,f=n.fontWeightBold,m=void 0===f?700:f,h=n.htmlFontSize,g=void 0===h?16:h,y=n.allVariants,v=n.pxToRem,b=il(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),x=a/14,S=v||function(e){return"".concat(e/g*x,"rem")},M=function(e,t,n,r,i){return Us({fontFamily:o,fontWeight:e,fontSize:S(t),lineHeight:n},o===hl?{letterSpacing:"".concat(pl(r/t),"em")}:{},i,y)},C={h1:M(l,96,1.167,-1.5),h2:M(l,60,1.2,-.5),h3:M(u,48,1.167,0),h4:M(u,34,1.235,.25),h5:M(u,24,1.334,0),h6:M(p,20,1.6,.15),subtitle1:M(u,16,1.75,.15),subtitle2:M(p,14,1.57,.1),body1:M(u,16,1.5,.15),body2:M(u,14,1.43,.15),button:M(p,14,1.75,.4,ml),caption:M(u,12,1.66,.4),overline:M(u,12,2.66,1,ml)};return Ys(Us({htmlFontSize:g,pxToRem:S,round:fl,fontFamily:o,fontSize:a,fontWeightLight:l,fontWeightRegular:u,fontWeightMedium:p,fontWeightBold:m},C),b,{clone:!1})}function yl(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var vl=["none",yl(0,2,1,-1,0,1,1,0,0,1,3,0),yl(0,3,1,-2,0,2,2,0,0,1,5,0),yl(0,3,3,-2,0,3,4,0,0,1,8,0),yl(0,2,4,-1,0,4,5,0,0,1,10,0),yl(0,3,5,-1,0,5,8,0,0,1,14,0),yl(0,3,5,-1,0,6,10,0,0,1,18,0),yl(0,4,5,-2,0,7,10,1,0,2,16,1),yl(0,5,5,-3,0,8,10,1,0,3,14,2),yl(0,5,6,-3,0,9,12,1,0,3,16,2),yl(0,6,6,-3,0,10,14,1,0,4,18,3),yl(0,6,7,-4,0,11,15,1,0,4,20,3),yl(0,7,8,-4,0,12,17,2,0,5,22,4),yl(0,7,8,-4,0,13,19,2,0,5,24,4),yl(0,7,9,-4,0,14,21,2,0,5,26,4),yl(0,8,9,-5,0,15,22,2,0,6,28,5),yl(0,8,10,-5,0,16,24,2,0,6,30,5),yl(0,8,11,-5,0,17,26,2,0,6,32,5),yl(0,9,11,-5,0,18,28,2,0,7,34,6),yl(0,9,12,-6,0,19,29,2,0,7,36,6),yl(0,10,13,-6,0,20,31,3,0,8,38,7),yl(0,10,13,-6,0,21,33,3,0,8,40,7),yl(0,10,14,-6,0,22,35,3,0,8,42,7),yl(0,11,14,-7,0,23,36,3,0,9,44,8),yl(0,11,15,-7,0,24,38,3,0,9,46,8)],bl={borderRadius:4};function xl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Sl(e,t){if(e){if("string"==typeof e)return xl(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xl(e,t):void 0}}function Ml(e){return function(e){if(Array.isArray(e))return xl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Sl(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Cl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||Sl(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wl(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=function(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===n.length?t(1):1===n.length?t(n[0]):n.map((function(e){if("string"==typeof e)return e;var n=t(e);return"number"==typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n}var kl={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)"},El={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Tl(e){return"".concat(Math.round(e),"ms")}var ql={easing:kl,duration:El,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,r=void 0===n?El.standard:n,o=t.easing,i=void 0===o?kl.easeInOut:o,a=t.delay,s=void 0===a?0:a;return il(t,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof r?r:Tl(r)," ").concat(i," ").concat("string"==typeof s?s:Tl(s))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}},Ll={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Nl(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,o=void 0===r?{}:r,i=e.palette,a=void 0===i?{}:i,s=e.spacing,l=e.typography,c=void 0===l?{}:l,u=il(e,["breakpoints","mixins","palette","spacing","typography"]),d=dl(a),p=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,r=e.unit,o=void 0===r?"px":r,i=e.step,a=void 0===i?5:i,s=il(e,["values","unit","step"]);function l(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(o,")")}function c(e,t){var r=al.indexOf(t);return r===al.length-1?l(e):"@media (min-width:".concat("number"==typeof n[e]?n[e]:e).concat(o,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof n[al[r+1]]?n[al[r+1]]:t)-a/100).concat(o,")")}return Us({keys:al,values:n,up:l,down:function(e){var t=al.indexOf(e)+1,r=n[al[t]];return t===al.length?l("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-a/100).concat(o,")")},between:c,only:function(e){return c(e,e)},width:function(e){return n[e]}},s)}(n),f=wl(s),m=Ys({breakpoints:p,direction:"ltr",mixins:sl(p,f,o),overrides:{},palette:d,props:{},shadows:vl,typography:gl(d,c),spacing:f,shape:bl,transitions:ql,zIndex:Ll},u),h=arguments.length,g=new Array(h>1?h-1:0),y=1;y<h;y++)g[y-1]=arguments[y];return m=g.reduce((function(e,t){return Ys(e,t)}),m)}var Ol="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",Dl=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function Al(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,o=void 0===r?"jss":r,i=e.seed,a=void 0===i?"":i,s=""===a?"":"".concat(a,"-"),l=0,c=function(){return l+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==Dl.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[Ol]&&""===a?"".concat(i,"-").concat(c()):i}return"".concat(s).concat(o).concat(c())}}function Rl(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var o,i=t.props[n];for(o in i)void 0===r[o]&&(r[o]=i[o]);return r}var Pl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Il="object"===("undefined"==typeof window?"undefined":Pl(window))&&"object"===("undefined"==typeof document?"undefined":Pl(document))&&9===document.nodeType;function zl(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Xs(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function jl(e,t){return jl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},jl(e,t)}function Fl(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,jl(e,t)}function Bl(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var _l={}.constructor;function Hl(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(Hl);if(e.constructor!==_l)return e;var t={};for(var n in e)t[n]=Hl(e[n]);return t}function $l(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=Hl(t),i=r.plugins.onCreateRule(e,o,n);return i||(e[0],null)}var Vl=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},Wl=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=Vl(e[n]," ");else t=Vl(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function Ul(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function Kl(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function Gl(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var o=n.indent,i=void 0===o?0:o,a=t.fallbacks;!1===n.format&&(i=-1/0);var s=Ul(n),l=s.linebreak,c=s.space;if(e&&i++,a)if(Array.isArray(a))for(var u=0;u<a.length;u++){var d=a[u];for(var p in d){var f=d[p];null!=f&&(r&&(r+=l),r+=Kl(p+":"+c+Wl(f)+";",i))}}else for(var m in a){var h=a[m];null!=h&&(r&&(r+=l),r+=Kl(m+":"+c+Wl(h)+";",i))}for(var g in t){var y=t[g];null!=y&&"fallbacks"!==g&&(r&&(r+=l),r+=Kl(g+":"+c+Wl(y)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),Kl(""+e+c+"{"+r,--i)+Kl("}",i)):r}var Yl=/([[\].#*$><+~=|^:(),"'`\s])/g,Xl="undefined"!=typeof CSS&&CSS.escape,Jl=function(e){return Xl?Xl(e):e.replace(Yl,"\\$1")},Zl=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,o=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var o=t;n&&!1===n.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!r)return this;var s=i&&a;if(s?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),Ql=function(e){function t(t,n,r){var o;o=e.call(this,t,n,r)||this;var i=r.selector,a=r.scoped,s=r.sheet,l=r.generateId;return i?o.selectorText=i:!1!==a&&(o.id=l(Bl(Bl(o)),s),o.selectorText="."+Jl(o.id)),o}Fl(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=Wl(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Us({},e,{allowEmpty:!0}):e;return Gl(this.selectorText,this.style,n)},zl(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(Zl),ec={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new Ql(e,t,n)}},tc={indent:1,children:!0},nc=/@([\w-]+)/,rc=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(nc);for(var o in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new Tc(Us({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=tc);var t=Ul(e).linebreak;if(null==e.indent&&(e.indent=tc.indent),null==e.children&&(e.children=tc.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),oc=/@container|@media|@supports\s+/,ic={onCreateRule:function(e,t,n){return oc.test(e)?new rc(e,t,n):null}},ac={indent:1,children:!0},sc=/@keyframes\s+([\w-]+)/,lc=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(sc);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var o=n.scoped,i=n.sheet,a=n.generateId;for(var s in this.id=!1===o?this.name:Jl(a(this,i)),this.rules=new Tc(Us({},n,{parent:this})),t)this.rules.add(s,t[s],Us({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=ac);var t=Ul(e).linebreak;if(null==e.indent&&(e.indent=ac.indent),null==e.children&&(e.children=ac.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),cc=/@keyframes\s+/,uc=/\$([\w-]+)/g,dc=function(e,t){return"string"==typeof e?e.replace(uc,(function(e,n){return n in t?t[n]:e})):e},pc=function(e,t,n){var r=e[t],o=dc(r,n);o!==r&&(e[t]=o)},fc={onCreateRule:function(e,t,n){return"string"==typeof e&&cc.test(e)?new lc(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&pc(e,"animation-name",n.keyframes),"animation"in e&&pc(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return dc(e,r.keyframes);default:return e}}},mc=function(e){function t(){return e.apply(this,arguments)||this}return Fl(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Us({},e,{allowEmpty:!0}):e;return Gl(this.key,this.style,n)},t}(Zl),hc={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new mc(e,t,n):null}},gc=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=Ul(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=Gl(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return Gl(this.at,this.style,e)},e}(),yc=/@font-face/,vc={onCreateRule:function(e,t,n){return yc.test(e)?new gc(e,t,n):null}},bc=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return Gl(this.key,this.style,e)},e}(),xc={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new bc(e,t,n):null}},Sc=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),Mc={"@charset":!0,"@import":!0,"@namespace":!0},Cc={onCreateRule:function(e,t,n){return e in Mc?new Sc(e,t,n):null}},wc=[ec,ic,fc,hc,vc,xc,Cc],kc={process:!0},Ec={force:!0,process:!0},Tc=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,o=r.parent,i=r.sheet,a=r.jss,s=r.Renderer,l=r.generateId,c=r.scoped,u=Us({classes:this.classes,parent:o,sheet:i,jss:a,Renderer:s,generateId:l,scoped:c,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(u.selector="."+Jl(this.classes[d]));var p=$l(d,t,u);if(!p)return null;this.register(p);var f=void 0===u.index?this.index.length:u.index;return this.index.splice(f,0,p),p},t.replace=function(e,t,n){var r=this.get(e),o=this.index.indexOf(r);r&&this.remove(r);var i=n;return-1!==o&&(i=Us({},n,{index:o})),this.add(e,t,i)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof Ql?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof lc&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Ql?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof lc&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=kc);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t.style;if(i.onUpdate(n,t,a,r),r.process&&s&&s!==t.style){for(var l in i.onProcessStyle(t.style,t,a),t.style){var c=t.style[l];c!==s[l]&&t.prop(l,c,Ec)}for(var u in s){var d=t.style[u],p=s[u];null==d&&d!==p&&t.prop(u,null,Ec)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=Ul(e).linebreak,i=0;i<this.index.length;i++){var a=this.index[i].toString(e);(a||r)&&(t&&(t+=o),t+=a)}return t},e}(),qc=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=Us({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new Tc(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var o=this.rules.add(e,t,n);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(r?r.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var o=this.rules.replace(e,t,n);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?r.renderable&&this.renderer.replaceRule(r.renderable,o):this.renderer.deleteRule(r)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var o=this.addRule(r,e[r],t);o&&n.push(o)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),Lc=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var o=this.registry.onCreateRule[r](e,t,n);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,o=0;o<this.registry.onChangeValue.length;o++)r=this.registry.onChangeValue[o](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),Nc=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=ol(t,["attached"]),o=Ul(r).linebreak,i="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=n&&s.attached!==n||(i&&(i+=o),i+=s.toString(r))}return i},zl(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),Oc=new Nc,Dc="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),Ac="2f1acc6c3a606b082e5eef5e54414ffb";null==Dc[Ac]&&(Dc[Ac]=0);var Rc=Dc[Ac]++,Pc=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var o="",i="";return r&&(r.options.classNamePrefix&&(i=r.options.classNamePrefix),null!=r.options.jss.id&&(o=String(r.options.jss.id))),e.minify?""+(i||"c")+Rc+o+t:i+n.key+"-"+Rc+(o?"-"+o:"")+"-"+t}},Ic=function(e){var t;return function(){return t||(t=e()),t}},zc=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},jc=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=Wl(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var o=r?r.indexOf("!important"):-1,i=o>-1?r.substr(0,o-1):r;e.style.setProperty(t,i,o>-1?"important":"")}}catch(e){return!1}return!0},Fc=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},Bc=function(e,t){return e.selectorText=t,e.selectorText===t},_c=Ic((function(){return document.querySelector("head")}));function Hc(e){var t=Oc.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var o=function(e){for(var t=_c(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var $c=Ic((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),Vc=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[n]},Wc=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},Uc=function(){function e(e){this.getPropertyValue=zc,this.setProperty=jc,this.removeProperty=Fc,this.setSelector=Bc,this.hasInsertedRules=!1,this.cssRules=[],e&&Oc.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var i=$c();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=Hc(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var o=n,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else _c().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,o=n;if("conditional"===e.type||"keyframes"===e.type){var i=Wc(n,t);if(!1===(o=Vc(n,r.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(r.rules,o),o}var a=e.toString();if(!a)return!1;var s=Wc(n,t),l=Vc(n,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof qc&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),Kc=0,Gc=function(){function e(e){this.id=Kc++,this.version="10.10.0",this.plugins=new Lc,this.options={id:{minify:!1},createGenerateId:Pc,Renderer:Il?Uc:null,plugins:[]},this.generateId=Pc({minify:!1});for(var t=0;t<wc.length;t++)this.plugins.use(wc[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=Us({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!=typeof n&&(n=0===Oc.index?0:Oc.index+1);var r=new qc(e,Us({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),Oc.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var r=Us({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var o=$l(e,t,r);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}(),Yc=function(e){return new Gc(e)},Xc="object"==typeof CSS&&null!=CSS&&"number"in CSS;function Jc(e){var t=null;for(var n in e){var r=e[n],o=typeof r;if("function"===o)t||(t={}),t[n]=r;else if("object"===o&&null!==r&&!Array.isArray(r)){var i=Jc(r);i&&(t||(t={}),t[n]=i)}}return t}
8
8
  /**
9
9
  * A better abstraction over CSS.
10
10
  *
11
11
  * @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
12
12
  * @website https://github.com/cssinjs/jss
13
13
  * @license MIT
14
- */Wc();var Gc=Date.now(),Yc="fnValues"+Gc,Xc="fnStyle"+ ++Gc,Jc=function(){return{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=Fl(e,{},n);return r[Xc]=t,r},onProcessStyle:function(e,t){if(Yc in t||Xc 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[Yc]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[Xc];i&&(o.style=i(e)||{});var a=o[Yc];if(a)for(var s in a)o.prop(s,a[s](e),r)}}},Zc="@global",Qc="@global ",eu=function(){function e(e,t,n){for(var r in this.type="global",this.at=Zc,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new Cc(Hs({},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}(),tu=function(){function e(e,t,n){this.type="global",this.at=Zc,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(Qc.length);this.rule=n.jss.createRule(r,t,Hs({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),nu=/\s*,\s*/g;function ru(e,t){for(var n=e.split(nu),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}function ou(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===Zc)return new eu(e,t,n);if("@"===e[0]&&e.substr(0,Qc.length)===Qc)return new tu(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[Zc]:null;if(o){for(var i in o)t.addRule(i,o[i],Hs({},n,{selector:ru(i,e.selector)}));delete r[Zc]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,Zc.length)===Zc){var i=ru(o.substr(Zc.length),e.selector);t.addRule(i,r[o],Hs({},n,{selector:i})),delete r[o]}}(e,t))}}}var iu=/\s*,\s*/g,au=/&/g,su=/\$([\w-]+)/g;function lu(){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(iu),r=e.split(iu),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(au,a):a+" "+l}return o}function n(e,t,n){if(n)return Hs({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=Hs({},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(su,s);var m=l.key+"-"+u;"replaceRule"in c?c.replaceRule(m,r[u],Hs({},a,{selector:f})):c.addRule(m,r[u],Hs({},a,{selector:f}))}else p&&c.addRule(u,{},a).addRule(l.key,r[u],{selector:l.selector});delete r[u]}}return r}}}var cu=/[A-Z]/g,uu=/^ms-/,du={};function pu(e){return"-"+e.toLowerCase()}function fu(e){if(du.hasOwnProperty(e))return du[e];var t=e.replace(cu,pu);return du[e]=uu.test(t)?"-"+t:t}function mu(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:fu(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(mu):t.fallbacks=mu(e.fallbacks)),t}var hu=Uc&&CSS?CSS.px:"px",gu=Uc&&CSS?CSS.ms:"ms",yu=Uc&&CSS?CSS.percent:"%";function vu(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 bu=vu({"animation-delay":gu,"animation-duration":gu,"background-position":hu,"background-position-x":hu,"background-position-y":hu,"background-size":hu,border:hu,"border-bottom":hu,"border-bottom-left-radius":hu,"border-bottom-right-radius":hu,"border-bottom-width":hu,"border-left":hu,"border-left-width":hu,"border-radius":hu,"border-right":hu,"border-right-width":hu,"border-top":hu,"border-top-left-radius":hu,"border-top-right-radius":hu,"border-top-width":hu,"border-width":hu,"border-block":hu,"border-block-end":hu,"border-block-end-width":hu,"border-block-start":hu,"border-block-start-width":hu,"border-block-width":hu,"border-inline":hu,"border-inline-end":hu,"border-inline-end-width":hu,"border-inline-start":hu,"border-inline-start-width":hu,"border-inline-width":hu,"border-start-start-radius":hu,"border-start-end-radius":hu,"border-end-start-radius":hu,"border-end-end-radius":hu,margin:hu,"margin-bottom":hu,"margin-left":hu,"margin-right":hu,"margin-top":hu,"margin-block":hu,"margin-block-end":hu,"margin-block-start":hu,"margin-inline":hu,"margin-inline-end":hu,"margin-inline-start":hu,padding:hu,"padding-bottom":hu,"padding-left":hu,"padding-right":hu,"padding-top":hu,"padding-block":hu,"padding-block-end":hu,"padding-block-start":hu,"padding-inline":hu,"padding-inline-end":hu,"padding-inline-start":hu,"mask-position-x":hu,"mask-position-y":hu,"mask-size":hu,height:hu,width:hu,"min-height":hu,"max-height":hu,"min-width":hu,"max-width":hu,bottom:hu,left:hu,top:hu,right:hu,inset:hu,"inset-block":hu,"inset-block-end":hu,"inset-block-start":hu,"inset-inline":hu,"inset-inline-end":hu,"inset-inline-start":hu,"box-shadow":hu,"text-shadow":hu,"column-gap":hu,"column-rule":hu,"column-rule-width":hu,"column-width":hu,"font-size":hu,"font-size-delta":hu,"letter-spacing":hu,"text-decoration-thickness":hu,"text-indent":hu,"text-stroke":hu,"text-stroke-width":hu,"word-spacing":hu,motion:hu,"motion-offset":hu,outline:hu,"outline-offset":hu,"outline-width":hu,perspective:hu,"perspective-origin-x":yu,"perspective-origin-y":yu,"transform-origin":yu,"transform-origin-x":yu,"transform-origin-y":yu,"transform-origin-z":yu,"transition-delay":gu,"transition-duration":gu,"vertical-align":hu,"flex-basis":hu,"shape-margin":hu,size:hu,gap:hu,grid:hu,"grid-gap":hu,"row-gap":hu,"grid-row-gap":hu,"grid-column-gap":hu,"grid-template-rows":hu,"grid-template-columns":hu,"grid-auto-rows":hu,"grid-auto-columns":hu,"box-shadow-x":hu,"box-shadow-y":hu,"box-shadow-blur":hu,"box-shadow-spread":hu,"font-line-height":hu,"text-shadow-x":hu,"text-shadow-y":hu,"text-shadow-blur":hu});function xu(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=xu(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=xu(o,t[o],n);else for(var i in t)t[i]=xu(e+"-"+i,t[i],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||bu[e];return!a||0===t&&a===hu?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function Su(e){void 0===e&&(e={});var t=vu(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=xu(r,e[r],t);return e},onChangeValue:function(e,n){return xu(n,e,t)}}}var Mu="",Cu="",wu="",ku="",Tu=Dl&&"ontouchstart"in document.documentElement;if(Dl){var qu={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Eu=document.createElement("p").style;for(var Lu in qu)if(Lu+"Transform"in Eu){Mu=Lu,Cu=qu[Lu];break}"Webkit"===Mu&&"msHyphens"in Eu&&(Mu="ms",Cu=qu.ms,ku="edge"),"Webkit"===Mu&&"-apple-trailing-word"in Eu&&(wu="apple")}var Nu={js:Mu,css:Cu,vendor:wu,browser:ku,isTouch:Tu};var Ou={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===Nu.js?"-webkit-"+e:Nu.css+e)}},Du={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===Nu.js?Nu.css+"print-"+e:e)}},Au=/[-\s]+(.)?/g;function Ru(e,t){return t?t.toUpperCase():""}function Iu(e){return e.replace(Au,Ru)}function Pu(e){return Iu("-"+e)}var zu,ju={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===Nu.js){var n="mask-image";if(Iu(n)in t)return e;if(Nu.js+Pu(n)in t)return Nu.css+e}return e}},Fu={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==Nu.vendor||Nu.isTouch?e:Nu.css+e)}},Bu={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:Nu.css+e)}},_u={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:Nu.css+e)}},Hu={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===Nu.js||"ms"===Nu.js&&"edge"!==Nu.browser?Nu.css+e:e)}},$u={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===Nu.js||"ms"===Nu.js||"apple"===Nu.vendor?Nu.css+e:e)}},Vu={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===Nu.js?"WebkitColumn"+Pu(e)in t&&Nu.css+"column-"+e:"Moz"===Nu.js&&("page"+Pu(e)in t&&"page-"+e))}},Wu={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===Nu.js)return e;var n=e.replace("-inline","");return Nu.js+Pu(n)in t&&Nu.css+n}},Uu={supportedProperty:function(e,t){return Iu(e)in t&&e}},Ku={supportedProperty:function(e,t){var n=Pu(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:Nu.js+n in t?Nu.css+e:"Webkit"!==Nu.js&&"Webkit"+n in t&&"-webkit-"+e}},Gu={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===Nu.js?""+Nu.css+e:e)}},Yu={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===Nu.js?Nu.css+"scroll-chaining":e)}},Xu={"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"},Ju={supportedProperty:function(e,t){var n=Xu[e];return!!n&&(Nu.js+Pu(n)in t&&Nu.css+n)}},Zu={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"},Qu=Object.keys(Zu),ed=function(e){return Nu.css+e},td={supportedProperty:function(e,t,n){var r=n.multiple;if(Qu.indexOf(e)>-1){var o=Zu[e];if(!Array.isArray(o))return Nu.js+Pu(o)in t&&Nu.css+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(Nu.js+Pu(o[0])in t))return!1;return o.map(ed)}return!1}},nd=[Ou,Du,ju,Fu,Bu,_u,Hu,$u,Vu,Wu,Uu,Ku,Gu,Yu,Ju,td],rd=nd.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),od=nd.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,vl(t.noPrefill)),e}),[]),id={};if(Dl){zu=document.createElement("p");var ad=window.getComputedStyle(document.documentElement,"");for(var sd in ad)isNaN(sd)||(id[ad[sd]]=ad[sd]);od.forEach((function(e){return delete id[e]}))}function ld(e,t){if(void 0===t&&(t={}),!zu)return e;if(null!=id[e])return id[e];"transition"!==e&&"transform"!==e||(t[e]=e in zu.style);for(var n=0;n<rd.length&&(id[e]=rd[n](e,zu.style,t),!id[e]);n++);try{zu.style[e]=""}catch(e){return!1}return id[e]}var cd,ud={},dd={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},pd=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function fd(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?ld(t):", "+ld(n);return r||(t||n)}function md(e,t){var n=t;if(!cd||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=ud[r])return ud[r];try{cd.style[e]=n}catch(e){return ud[r]=!1,!1}if(dd[e])n=n.replace(pd,fd);else if(""===cd.style[e]&&("-ms-flex"===(n=Nu.css+n)&&(cd.style[e]="-ms-flexbox"),cd.style[e]=n,""===cd.style[e]))return ud[r]=!1,!1;return cd.style[e]="",ud[r]=n,ud[r]}function hd(){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=ld(n);i&&i!==n&&(o=!0);var a=!1,s=md(i,_l(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"===Nu.js?e:"@"+Nu.css+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return md(t,_l(e))||e}}}function gd(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)r[o[i]]=t[o[i]];return r}}}function yd(){return{plugins:[Jc(),ou(),lu(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=mu(e[t]);return e}return mu(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=fu(t);return t===r?e:(n.prop(r,e),null)}},Su(),"undefined"==typeof window?null:hd(),gd()]}}function vd(){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=Hs({},t);return Object.keys(n).forEach((function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))})),r}Dl&&(cd=document.createElement("p"));var bd=function(e,t,n,r){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},xd=function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},Sd=function(e,t,n){e.get(t).delete(n)},Md=b.createContext(null);function Cd(){return b.useContext(Md)}var wd,kd=Wc(yd()),Td={disableGeneration:!1,generateClassName:Ll(),jss:kd,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},qd=b.createContext(Td);function Ed(e){var t=e.children,n=e.injectFirst,r=void 0!==n&&n,o=e.disableGeneration,i=void 0!==o&&o,a=tl(e,["children","injectFirst","disableGeneration"]),s=Hs({},b.useContext(qd),{disableGeneration:i},a);if(!s.jss.options.insertionPoint&&r&&"undefined"!=typeof window){if(!wd){var l=document.head;wd=document.createComment("mui-inject-first"),l.insertBefore(wd,l.firstChild)}s.jss=Wc({plugins:yd().plugins,insertionPoint:wd})}return b.createElement(qd.Provider,{value:s},t)}var Ld=-1e9;var Nd={};function Od(e,t){var n=e.state,r=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=xd(o.sheetsManager,i,r);s||(s={refs:0,staticSheet:null,dynamicStyles:null},bd(o.sheetsManager,i,r,s));var l=Hs({},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=xd(o.sheetsCache,i,r));var d=i.create(r,a);u||((u=o.jss.createStyleSheet(d,Hs({link:!1},l))).attach(),o.sheetsCache&&bd(o.sheetsCache,i,r,u)),c&&c.add(u),s.staticSheet=u,s.dynamicStyles=Kc(d)}if(s.dynamicStyles){var p=o.jss.createStyleSheet(s.dynamicStyles,Hs({link:!0},l));p.update(t),p.attach(),n.dynamicSheet=p,n.classes=vd({baseClasses:s.staticSheet.classes,newClasses:p.classes}),c&&c.add(p)}else n.classes=s.staticSheet.classes;s.refs+=1}}function Dd(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?Nd:i,s=tl(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=Hs({},o);return Object.keys(i).forEach((function(e){a[e]=Ws(a[e],i[e])})),a},options:{}}}(e),c=n||r||"makeStyles";l.options={index:Ld+=1,name:n,meta:c,classNamePrefix:c};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Cd()||a,r=Hs({},b.useContext(qd),s),i=b.useRef(),c=b.useRef();!function(e,t){var n,r=b.useRef([]),o=b.useMemo((function(){return{}}),t);r.current!==o&&(r.current=o,n=e()),b.useEffect((function(){return function(){n&&n()}}),[o])}((function(){var o={name:n,state:{},stylesCreator:l,stylesOptions:r,theme:t};return Od(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=xd(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&(Sd(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]),b.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=vd({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(i.current,e.classes,o);return u}}function Ad(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=Ad(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Rd(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Ad(e))&&(r&&(r+=" "),r+=t);return r}var Id={exports:{}},Pd={},zd="function"==typeof Symbol&&Symbol.for,jd=zd?Symbol.for("react.element"):60103,Fd=zd?Symbol.for("react.portal"):60106,Bd=zd?Symbol.for("react.fragment"):60107,_d=zd?Symbol.for("react.strict_mode"):60108,Hd=zd?Symbol.for("react.profiler"):60114,$d=zd?Symbol.for("react.provider"):60109,Vd=zd?Symbol.for("react.context"):60110,Wd=zd?Symbol.for("react.async_mode"):60111,Ud=zd?Symbol.for("react.concurrent_mode"):60111,Kd=zd?Symbol.for("react.forward_ref"):60112,Gd=zd?Symbol.for("react.suspense"):60113,Yd=zd?Symbol.for("react.suspense_list"):60120,Xd=zd?Symbol.for("react.memo"):60115,Jd=zd?Symbol.for("react.lazy"):60116,Zd=zd?Symbol.for("react.block"):60121,Qd=zd?Symbol.for("react.fundamental"):60117,ep=zd?Symbol.for("react.responder"):60118,tp=zd?Symbol.for("react.scope"):60119;function np(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case jd:switch(e=e.type){case Wd:case Ud:case Bd:case Hd:case _d:case Gd:return e;default:switch(e=e&&e.$$typeof){case Vd:case Kd:case Jd:case Xd:case $d:return e;default:return t}}case Fd:return t}}}function rp(e){return np(e)===Ud}Pd.AsyncMode=Wd,Pd.ConcurrentMode=Ud,Pd.ContextConsumer=Vd,Pd.ContextProvider=$d,Pd.Element=jd,Pd.ForwardRef=Kd,Pd.Fragment=Bd,Pd.Lazy=Jd,Pd.Memo=Xd,Pd.Portal=Fd,Pd.Profiler=Hd,Pd.StrictMode=_d,Pd.Suspense=Gd,Pd.isAsyncMode=function(e){return rp(e)||np(e)===Wd},Pd.isConcurrentMode=rp,Pd.isContextConsumer=function(e){return np(e)===Vd},Pd.isContextProvider=function(e){return np(e)===$d},Pd.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===jd},Pd.isForwardRef=function(e){return np(e)===Kd},Pd.isFragment=function(e){return np(e)===Bd},Pd.isLazy=function(e){return np(e)===Jd},Pd.isMemo=function(e){return np(e)===Xd},Pd.isPortal=function(e){return np(e)===Fd},Pd.isProfiler=function(e){return np(e)===Hd},Pd.isStrictMode=function(e){return np(e)===_d},Pd.isSuspense=function(e){return np(e)===Gd},Pd.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Bd||e===Ud||e===Hd||e===_d||e===Gd||e===Yd||"object"==typeof e&&null!==e&&(e.$$typeof===Jd||e.$$typeof===Xd||e.$$typeof===$d||e.$$typeof===Vd||e.$$typeof===Kd||e.$$typeof===Qd||e.$$typeof===ep||e.$$typeof===tp||e.$$typeof===Zd)},Pd.typeOf=np,Id.exports=Pd;var op=Id.exports,ip={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ap={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},sp={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},lp={};function cp(e){return op.isMemo(e)?sp:lp[e.$$typeof]||ip}lp[op.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},lp[op.Memo]=sp;var up=Object.defineProperty,dp=Object.getOwnPropertyNames,pp=Object.getOwnPropertySymbols,fp=Object.getOwnPropertyDescriptor,mp=Object.getPrototypeOf,hp=Object.prototype;var gp=function e(t,n,r){if("string"!=typeof n){if(hp){var o=mp(n);o&&o!==hp&&e(t,o,r)}var i=dp(n);pp&&(i=i.concat(pp(n)));for(var a=cp(t),s=cp(n),l=0;l<i.length;++l){var c=i[l];if(!(ap[c]||r&&r[c]||s&&s[c]||a&&a[c])){var u=fp(n,c);try{up(t,c,u)}catch(e){}}}}return t},yp=ee(gp);function vp(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.name,i=tl(r,["name"]),a=o,s="function"==typeof t?function(e){return{root:function(n){return t(Hs({theme:e},n))}}}:{root:t},l=Dd(s,Hs({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=b.forwardRef((function(t,r){var o,i,a,s=t.children,c=t.className,u=t.clone,d=t.component,p=tl(t,["children","className","clone","component"]),f=Rd(l(t).root,c),m=p;if(n&&(o=m,i=n,a={},Object.keys(o).forEach((function(e){-1===i.indexOf(e)&&(a[e]=o[e])})),m=a),u)return b.cloneElement(s,Hs({className:Rd(s.props.className,f)},m));if("function"==typeof s)return s(Hs({className:f},m));var h=d||e;return b.createElement(h,Hs({ref:r,className:f},m),s)}));return yp(c,e),c}}function bp(e){var t=e.children,n=e.theme,r=Cd(),o=b.useMemo((function(){var e=null===r?n:function(e,t){return"function"==typeof t?t(e):Hs({},e,t)}(r,n);return null!=e&&(e[ql]=null!==r),e}),[n,r]);return b.createElement(Md.Provider,{value:o},t)}var xp=Tl(),Sp=function(e){var t=vp(e);return function(e,n){return t(e,Hs({defaultTheme:xp},n))}};function Mp(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r=t.defaultTheme,o=t.withTheme,i=void 0!==o&&o,a=t.name,s=tl(t,["defaultTheme","withTheme","name"]),l=a,c=Dd(e,Hs({defaultTheme:r,Component:n,name:a||n.displayName,classNamePrefix:l},s)),u=b.forwardRef((function(e,t){e.classes;var o,s=e.innerRef,l=tl(e,["classes","innerRef"]),u=c(Hs({},n.defaultProps,e)),d=l;return("string"==typeof a||i)&&(o=Cd()||r,a&&(d=Nl({theme:o,name:a,props:l})),i&&!d.theme&&(d.theme=o)),b.createElement(n,Hs({ref:s||t,classes:u},d))}));return yp(u,n),u}}(e,Hs({defaultTheme:xp},t))}function Cp(e){if("string"!=typeof e)throw new Error(Gs(7));return e.charAt(0).toUpperCase()+e.slice(1)}function wp(){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 kp(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=kp(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Tp(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=kp(e))&&(r&&(r+=" "),r+=t);return r}function qp(e){return e&&e.ownerDocument||document}function Ep(e){return qp(e).defaultView||window}function Lp(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var Np="undefined"!=typeof window?x.useLayoutEffect:x.useEffect;function Op(e){var t=x.useRef(e);return Np((function(){t.current=e})),x.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}function Dp(e,t){return x.useMemo((function(){return null==e&&null==t?null:function(n){Lp(e,n),Lp(t,n)}}),[e,t])}var Ap=!0,Rp=!1,Ip=null,Pp={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 zp(e){e.metaKey||e.altKey||e.ctrlKey||(Ap=!0)}function jp(){Ap=!1}function Fp(){"hidden"===this.visibilityState&&Rp&&(Ap=!0)}function Bp(e){var t=e.target;try{return t.matches(":focus-visible")}catch(e){}return Ap||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!Pp[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function _p(){Rp=!0,window.clearTimeout(Ip),Ip=window.setTimeout((function(){Rp=!1}),100)}function Hp(){var e=x.useCallback((function(e){var t,n=T.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",zp,!0),t.addEventListener("mousedown",jp,!0),t.addEventListener("pointerdown",jp,!0),t.addEventListener("touchstart",jp,!0),t.addEventListener("visibilitychange",Fp,!0))}),[]);return{isFocusVisible:Bp,onBlurVisible:_p,ref:e}}var $p=!1,Vp=b.createContext(null),Wp="unmounted",Up="exited",Kp="entering",Gp="entered",Yp="exiting",Xp=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=Up,r.appearStatus=Kp):o=Gp:o=t.unmountOnExit||t.mountOnEnter?Wp:Up,r.state={status:o},r.nextCallback=null,r}Il(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Wp?{status:Up}: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!==Kp&&n!==Gp&&(t=Kp):n!==Kp&&n!==Gp||(t=Yp)}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===Kp){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:q.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Up&&this.setState({status:Wp})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[q.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||$p?this.safeSetState({status:Gp},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Kp},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Gp},(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:q.findDOMNode(this);t&&!$p?(this.props.onExit(r),this.safeSetState({status:Yp},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Up},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Up},(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:q.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===Wp)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=el(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return b.createElement(Vp.Provider,{value:null},"function"==typeof n?n(e,r):b.cloneElement(b.Children.only(n),r))},t}(b.Component);function Jp(){}function Zp(e,t){var n=Object.create(null);return e&&C.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&S(e)?t(e):e}(e)})),n}function Qp(e,t,n){return null!=n[t]?n[t]:e.props[t]}function ef(e,t,n){var r=Zp(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(S(a)){var s=i in t,l=i in r,c=t[i],u=S(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&S(c)&&(o[i]=M(a,{onExited:n.bind(null,a),in:c.props.in,exit:Qp(a,"exit",e),enter:Qp(a,"enter",e)})):o[i]=M(a,{in:!1}):o[i]=M(a,{onExited:n.bind(null,a),in:!0,exit:Qp(a,"exit",e),enter:Qp(a,"enter",e)})}})),o}Xp.contextType=Vp,Xp.propTypes={},Xp.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Jp,onEntering:Jp,onEntered:Jp,onExit:Jp,onExiting:Jp,onExited:Jp},Xp.UNMOUNTED=Wp,Xp.EXITED=Up,Xp.ENTERING=Kp,Xp.ENTERED=Gp,Xp.EXITING=Yp;var tf=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},nf=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(Pl(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Il(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,Zp(n.children,(function(e){return M(e,{onExited:r.bind(null,e),in:!0,appear:Qp(e,"appear",n),enter:Qp(e,"enter",n),exit:Qp(e,"exit",n)})}))):ef(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=Zp(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Hs({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=el(e,["component","childFactory"]),o=this.state.contextValue,i=tf(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?b.createElement(Vp.Provider,{value:o},i):b.createElement(Vp.Provider,{value:o},b.createElement(t,r,i))},t}(b.Component);nf.propTypes={},nf.defaultProps={component:"div",childFactory:function(e){return e}};function rf(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 of=x.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=tl(e,["classes","className","component","square","elevation","variant"]);return x.createElement(i,Hs({className:Tp(n.root,r,"outlined"===d?n.outlined:n["elevation".concat(c)],!s&&n.rounded),ref:t},p))})),af=Mp((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),Hs({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"})(of),sf="undefined"==typeof window?x.useEffect:x.useLayoutEffect;function lf(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=x.useState(!1),p=d[0],f=d[1],m=Tp(t.ripple,t.rippleVisible,r&&t.ripplePulsate),h={width:a,height:a,top:-a/2+i,left:-a/2+o},g=Tp(t.child,p&&t.childLeaving,r&&t.childPulsate),y=Op(c);return sf((function(){if(!s){f(!0);var e=setTimeout(y,u);return function(){clearTimeout(e)}}}),[y,s,u]),x.createElement("span",{className:m,style:h},x.createElement("span",{className:g}))}var cf=x.forwardRef((function(e,t){var n=e.center,r=void 0!==n&&n,o=e.classes,i=e.className,a=tl(e,["center","classes","className"]),s=x.useState([]),l=s[0],c=s[1],u=x.useRef(0),d=x.useRef(null);x.useEffect((function(){d.current&&(d.current(),d.current=null)}),[l]);var p=x.useRef(!1),f=x.useRef(null),m=x.useRef(null),h=x.useRef(null);x.useEffect((function(){return function(){clearTimeout(f.current)}}),[]);var g=x.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,i=e.rippleSize,a=e.cb;c((function(e){return[].concat(vl(e),[x.createElement(lf,{key:u.current,classes:o,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i})])})),u.current+=1,d.current=a}),[o]),y=x.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,o=t.pulsate,i=void 0!==o&&o,a=t.center,s=void 0===a?r||t.pulsate:a,l=t.fakeElement,c=void 0!==l&&l;if("mousedown"===e.type&&p.current)p.current=!1;else{"touchstart"===e.type&&(p.current=!0);var u,d,y,v=c?null:h.current,b=v?v.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(b.width/2),d=Math.round(b.height/2);else{var x=e.touches?e.touches[0]:e,S=x.clientX,M=x.clientY;u=Math.round(S-b.left),d=Math.round(M-b.top)}if(s)(y=Math.sqrt((2*Math.pow(b.width,2)+Math.pow(b.height,2))/3))%2==0&&(y+=1);else{var C=2*Math.max(Math.abs((v?v.clientWidth:0)-u),u)+2,w=2*Math.max(Math.abs((v?v.clientHeight:0)-d),d)+2;y=Math.sqrt(Math.pow(C,2)+Math.pow(w,2))}e.touches?null===m.current&&(m.current=function(){g({pulsate:i,rippleX:u,rippleY:d,rippleSize:y,cb:n})},f.current=setTimeout((function(){m.current&&(m.current(),m.current=null)}),80)):g({pulsate:i,rippleX:u,rippleY:d,rippleSize:y,cb:n})}}),[r,g]),v=x.useCallback((function(){y({},{pulsate:!0})}),[y]),b=x.useCallback((function(e,t){if(clearTimeout(f.current),"touchend"===e.type&&m.current)return e.persist(),m.current(),m.current=null,void(f.current=setTimeout((function(){b(e,t)})));m.current=null,c((function(e){return e.length>0?e.slice(1):e})),d.current=t}),[]);return x.useImperativeHandle(t,(function(){return{pulsate:v,start:y,stop:b}}),[v,y,b]),x.createElement("span",Hs({className:Tp(o.root,i),ref:h},a),x.createElement(nf,{component:null,exit:!0},l))})),uf=Mp((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"})(x.memo(cf)),df=x.forwardRef((function(e,t){var n=e.action,r=e.buttonRef,o=e.centerRipple,i=void 0!==o&&o,a=e.children,s=e.classes,l=e.className,c=e.component,u=void 0===c?"button":c,d=e.disabled,p=void 0!==d&&d,f=e.disableRipple,m=void 0!==f&&f,h=e.disableTouchRipple,g=void 0!==h&&h,y=e.focusRipple,v=void 0!==y&&y,b=e.focusVisibleClassName,S=e.onBlur,M=e.onClick,C=e.onFocus,w=e.onFocusVisible,k=e.onKeyDown,q=e.onKeyUp,E=e.onMouseDown,L=e.onMouseLeave,N=e.onMouseUp,O=e.onTouchEnd,D=e.onTouchMove,A=e.onTouchStart,R=e.onDragLeave,I=e.tabIndex,P=void 0===I?0:I,z=e.TouchRippleProps,j=e.type,F=void 0===j?"button":j,B=tl(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"]),_=x.useRef(null);var H=x.useRef(null),$=x.useState(!1),V=$[0],W=$[1];p&&V&&W(!1);var U=Hp(),K=U.isFocusVisible,G=U.onBlurVisible,Y=U.ref;function X(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g;return Op((function(r){return t&&t(r),!n&&H.current&&H.current[e](r),!0}))}x.useImperativeHandle(n,(function(){return{focusVisible:function(){W(!0),_.current.focus()}}}),[]),x.useEffect((function(){V&&v&&!m&&H.current.pulsate()}),[m,v,V]);var J=X("start",E),Z=X("stop",R),Q=X("stop",N),ee=X("stop",(function(e){V&&e.preventDefault(),L&&L(e)})),te=X("start",A),ne=X("stop",O),re=X("stop",D),oe=X("stop",(function(e){V&&(G(e),W(!1)),S&&S(e)}),!1),ie=Op((function(e){_.current||(_.current=e.currentTarget),K(e)&&(W(!0),w&&w(e)),C&&C(e)})),ae=function(){var e=T.findDOMNode(_.current);return u&&"button"!==u&&!("A"===e.tagName&&e.href)},se=x.useRef(!1),le=Op((function(e){v&&!se.current&&V&&H.current&&" "===e.key&&(se.current=!0,e.persist(),H.current.stop(e,(function(){H.current.start(e)}))),e.target===e.currentTarget&&ae()&&" "===e.key&&e.preventDefault(),k&&k(e),e.target===e.currentTarget&&ae()&&"Enter"===e.key&&!p&&(e.preventDefault(),M&&M(e))})),ce=Op((function(e){v&&" "===e.key&&H.current&&V&&!e.defaultPrevented&&(se.current=!1,e.persist(),H.current.stop(e,(function(){H.current.pulsate(e)}))),q&&q(e),M&&e.target===e.currentTarget&&ae()&&" "===e.key&&!e.defaultPrevented&&M(e)})),ue=u;"button"===ue&&B.href&&(ue="a");var de={};"button"===ue?(de.type=F,de.disabled=p):("a"===ue&&B.href||(de.role="button"),de["aria-disabled"]=p);var pe=Dp(r,t),fe=Dp(Y,_),me=Dp(pe,fe),he=x.useState(!1),ge=he[0],ye=he[1];x.useEffect((function(){ye(!0)}),[]);var ve=ge&&!m&&!p;return x.createElement(ue,Hs({className:Tp(s.root,l,V&&[s.focusVisible,b],p&&s.disabled),onBlur:oe,onClick:M,onFocus:ie,onKeyDown:le,onKeyUp:ce,onMouseDown:J,onMouseLeave:ee,onMouseUp:Q,onDragLeave:Z,onTouchEnd:ne,onTouchMove:re,onTouchStart:te,ref:me,tabIndex:p?-1:P},de,B),a,ve?x.createElement(uf,Hs({ref:H,center:i},z)):null)})),pf=Mp({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"})(df),ff={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},mf=x.forwardRef((function(e,t){var n=e.align,r=void 0===n?"inherit":n,o=e.classes,i=e.className,a=e.color,s=void 0===a?"initial":a,l=e.component,c=e.display,u=void 0===c?"initial":c,d=e.gutterBottom,p=void 0!==d&&d,f=e.noWrap,m=void 0!==f&&f,h=e.paragraph,g=void 0!==h&&h,y=e.variant,v=void 0===y?"body1":y,b=e.variantMapping,S=void 0===b?ff:b,M=tl(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),C=l||(g?"p":S[v]||ff[v])||"span";return x.createElement(C,Hs({className:Tp(o.root,i,"inherit"!==v&&o[v],"initial"!==s&&o["color".concat(Cp(s))],m&&o.noWrap,p&&o.gutterBottom,g&&o.paragraph,"inherit"!==r&&o["align".concat(Cp(r))],"initial"!==u&&o["display".concat(Cp(u))]),ref:t},M))})),hf=Mp((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"})(mf),gf=x.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.color,a=void 0===i?"default":i,s=e.component,l=void 0===s?"button":s,c=e.disabled,u=void 0!==c&&c,d=e.disableElevation,p=void 0!==d&&d,f=e.disableFocusRipple,m=void 0!==f&&f,h=e.endIcon,g=e.focusVisibleClassName,y=e.fullWidth,v=void 0!==y&&y,b=e.size,S=void 0===b?"medium":b,M=e.startIcon,C=e.type,w=void 0===C?"button":C,k=e.variant,T=void 0===k?"text":k,q=tl(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),E=M&&x.createElement("span",{className:Tp(r.startIcon,r["iconSize".concat(Cp(S))])},M),L=h&&x.createElement("span",{className:Tp(r.endIcon,r["iconSize".concat(Cp(S))])},h);return x.createElement(pf,Hs({className:Tp(r.root,r[T],o,"inherit"===a?r.colorInherit:"default"!==a&&r["".concat(T).concat(Cp(a))],"medium"!==S&&[r["".concat(T,"Size").concat(Cp(S))],r["size".concat(Cp(S))]],p&&r.disableElevation,u&&r.disabled,v&&r.fullWidth),component:l,disabled:u,focusRipple:!m,focusVisibleClassName:Tp(r.focusVisible,g),ref:t,type:w},q),x.createElement("span",{className:r.label},E,n,L))})),yf=Mp((function(e){return{root:Hs({},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:Qs(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:Qs(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Qs(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(Qs(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:Qs(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(Qs(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:Qs(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"})(gf);var vf="undefined"!=typeof window?x.useLayoutEffect:x.useEffect,bf=x.forwardRef((function(e,t){var n=e.children,r=e.container,o=e.disablePortal,i=void 0!==o&&o,a=e.onRendered,s=x.useState(null),l=s[0],c=s[1],u=Dp(x.isValidElement(n)?n.ref:null,t);return vf((function(){i||c(function(e){return e="function"==typeof e?e():e,T.findDOMNode(e)}(r)||document.body)}),[r,i]),vf((function(){if(l&&!i)return Lp(t,l),function(){Lp(t,null)}}),[t,l,i]),vf((function(){a&&(l||i)&&a()}),[a,l,i]),i?x.isValidElement(n)?x.cloneElement(n,{ref:u}):n:l?T.createPortal(n,l):l}));function xf(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Sf(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function Mf(e,t,n){var r=arguments.length>4?arguments[4]:void 0,o=[t,n].concat(vl(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)&&xf(e,r)}))}function Cf(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function wf(e,t){var n,r=[],o=[],i=e.container;if(!t.disableScrollLock){if(function(e){var t=qp(e);return t.body===e?Ep(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(Sf(i)+a,"px"),n=qp(i).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){o.push(e.style.paddingRight),e.style.paddingRight="".concat(Sf(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 kf=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 Al(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&&xf(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);Mf(t,e.mountNode,e.modalRef,r,!0);var o=Cf(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=Cf(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=wf(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=Cf(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&&xf(e.modalRef,!0),Mf(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&&xf(o.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();function Tf(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=x.useRef(),p=x.useRef(null),f=x.useRef(null),m=x.useRef(),h=x.useRef(null),g=x.useCallback((function(e){h.current=T.findDOMNode(e)}),[]),y=Dp(t.ref,g),v=x.useRef();return x.useEffect((function(){v.current=u}),[u]),!v.current&&u&&"undefined"!=typeof window&&(m.current=l().activeElement),x.useEffect((function(){if(u){var e=qp(h.current);r||!h.current||h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex",-1),h.current.focus());var t=function(){null!==h.current&&(e.hasFocus()&&!i&&c()&&!d.current?h.current&&!h.current.contains(e.activeElement)&&h.current.focus():d.current=!1)},n=function(t){!i&&c()&&9===t.keyCode&&e.activeElement===h.current&&(d.current=!0,t.shiftKey?f.current.focus():p.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var o=setInterval((function(){t()}),50);return function(){clearInterval(o),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),s||(m.current&&m.current.focus&&m.current.focus(),m.current=null)}}}),[r,i,s,c,u]),x.createElement(x.Fragment,null,x.createElement("div",{tabIndex:0,ref:p,"data-test":"sentinelStart"}),x.cloneElement(t,{ref:y}),x.createElement("div",{tabIndex:0,ref:f,"data-test":"sentinelEnd"}))}var qf={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"}},Ef=x.forwardRef((function(e,t){var n=e.invisible,r=void 0!==n&&n,o=e.open,i=tl(e,["invisible","open"]);return o?x.createElement("div",Hs({"aria-hidden":!0,ref:t},i,{style:Hs({},qf.root,r?qf.invisible:{},i.style)})):null}));var Lf=new kf,Nf=x.forwardRef((function(e,t){var n=Cd(),r=Nl({name:"MuiModal",props:Hs({},e),theme:n}),o=r.BackdropComponent,i=void 0===o?Ef:o,a=r.BackdropProps,s=r.children,l=r.closeAfterTransition,c=void 0!==l&&l,u=r.container,d=r.disableAutoFocus,p=void 0!==d&&d,f=r.disableBackdropClick,m=void 0!==f&&f,h=r.disableEnforceFocus,g=void 0!==h&&h,y=r.disableEscapeKeyDown,v=void 0!==y&&y,b=r.disablePortal,S=void 0!==b&&b,M=r.disableRestoreFocus,C=void 0!==M&&M,w=r.disableScrollLock,k=void 0!==w&&w,q=r.hideBackdrop,E=void 0!==q&&q,L=r.keepMounted,N=void 0!==L&&L,O=r.manager,D=void 0===O?Lf:O,A=r.onBackdropClick,R=r.onClose,I=r.onEscapeKeyDown,P=r.onRendered,z=r.open,j=tl(r,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),F=x.useState(!0),B=F[0],_=F[1],H=x.useRef({}),$=x.useRef(null),V=x.useRef(null),W=Dp(V,t),U=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),K=function(){return qp($.current)},G=function(){return H.current.modalRef=V.current,H.current.mountNode=$.current,H.current},Y=function(){D.mount(G(),{disableScrollLock:k}),V.current.scrollTop=0},X=Op((function(){var e=function(e){return e="function"==typeof e?e():e,T.findDOMNode(e)}(u)||K().body;D.add(G(),e),V.current&&Y()})),J=x.useCallback((function(){return D.isTopModal(G())}),[D]),Z=Op((function(e){$.current=e,e&&(P&&P(),z&&J()?Y():xf(V.current,!0))})),Q=x.useCallback((function(){D.remove(G())}),[D]);if(x.useEffect((function(){return function(){Q()}}),[Q]),x.useEffect((function(){z?X():U&&c||Q()}),[z,Q,U,c,X]),!N&&!z&&(!U||B))return null;var ee=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:kl}),te={};return void 0===s.props.tabIndex&&(te.tabIndex=s.props.tabIndex||"-1"),U&&(te.onEnter=wp((function(){_(!1)}),s.props.onEnter),te.onExited=wp((function(){_(!0),c&&Q()}),s.props.onExited)),x.createElement(bf,{ref:Z,container:u,disablePortal:S},x.createElement("div",Hs({ref:W,onKeyDown:function(e){"Escape"===e.key&&J()&&(I&&I(e),v||(e.stopPropagation(),R&&R(e,"escapeKeyDown")))},role:"presentation"},j,{style:Hs({},ee.root,!z&&B?ee.hidden:{},j.style)}),E?null:x.createElement(i,Hs({open:z,onClick:function(e){e.target===e.currentTarget&&(A&&A(e),!m&&R&&R(e,"backdropClick"))}},a)),x.createElement(Tf,{disableEnforceFocus:g,disableAutoFocus:p,disableRestoreFocus:C,getDoc:K,isEnabled:J,open:z},x.cloneElement(s,te))))})),Of=x.forwardRef((function(e,t){var n=e.absolute,r=void 0!==n&&n,o=e.classes,i=e.className,a=e.component,s=void 0===a?"hr":a,l=e.flexItem,c=void 0!==l&&l,u=e.light,d=void 0!==u&&u,p=e.orientation,f=void 0===p?"horizontal":p,m=e.role,h=void 0===m?"hr"!==s?"separator":void 0:m,g=e.variant,y=void 0===g?"fullWidth":g,v=tl(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return x.createElement(s,Hs({className:Tp(o.root,i,"fullWidth"!==y&&o[y],r&&o.absolute,c&&o.flexItem,d&&o.light,"vertical"===f&&o.vertical),role:h,ref:t},v))})),Df=Mp((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:Qs(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"})(Of);function Af(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var Rf={entering:{opacity:1,transform:Af(1)},entered:{opacity:1,transform:"none"}},If=x.forwardRef((function(e,t){var n=e.children,r=e.disableStrictModeCompat,o=void 0!==r&&r,i=e.in,a=e.onEnter,s=e.onEntered,l=e.onEntering,c=e.onExit,u=e.onExited,d=e.onExiting,p=e.style,f=e.timeout,m=void 0===f?"auto":f,h=e.TransitionComponent,g=void 0===h?Xp:h,y=tl(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),v=x.useRef(),b=x.useRef(),S=Cd()||xp,M=S.unstable_strictMode&&!o,C=x.useRef(null),w=Dp(n.ref,t),k=Dp(M?C:void 0,w),T=function(e){return function(t,n){if(e){var r=bl(M?[C.current,t]:[t,n],2),o=r[0],i=r[1];void 0===i?e(o):e(o,i)}}},q=T(l),E=T((function(e,t){!function(e){e.scrollTop}(e);var n,r=rf({style:p,timeout:m},{mode:"enter"}),o=r.duration,i=r.delay;"auto"===m?(n=S.transitions.getAutoHeightDuration(e.clientHeight),b.current=n):n=o,e.style.transition=[S.transitions.create("opacity",{duration:n,delay:i}),S.transitions.create("transform",{duration:.666*n,delay:i})].join(","),a&&a(e,t)})),L=T(s),N=T(d),O=T((function(e){var t,n=rf({style:p,timeout:m},{mode:"exit"}),r=n.duration,o=n.delay;"auto"===m?(t=S.transitions.getAutoHeightDuration(e.clientHeight),b.current=t):t=r,e.style.transition=[S.transitions.create("opacity",{duration:t,delay:o}),S.transitions.create("transform",{duration:.666*t,delay:o||.333*t})].join(","),e.style.opacity="0",e.style.transform=Af(.75),c&&c(e)})),D=T(u);return x.useEffect((function(){return function(){clearTimeout(v.current)}}),[]),x.createElement(g,Hs({appear:!0,in:i,nodeRef:M?C:void 0,onEnter:E,onEntered:L,onEntering:q,onExit:O,onExited:D,onExiting:N,addEndListener:function(e,t){var n=M?e:t;"auto"===m&&(v.current=setTimeout(n,b.current||0))},timeout:"auto"===m?null:m},y),(function(e,t){return x.cloneElement(n,Hs({style:Hs({opacity:0,transform:Af(.75),visibility:"exited"!==e||i?void 0:"hidden"},Rf[e],p,n.props.style),ref:k},t))}))}));If.muiSupportAuto=!0;var Pf=x.createContext({}),zf=x.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=tl(e,["children","classes","className","component","dense","disablePadding","subheader"]),f=x.useMemo((function(){return{dense:l}}),[l]);return x.createElement(Pf.Provider,{value:f},x.createElement(a,Hs({className:Tp(r.root,o,l&&r.dense,!u&&r.padding,d&&r.subheader),ref:t},p),d,n))})),jf=Mp({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(zf),Ff="undefined"==typeof window?x.useEffect:x.useLayoutEffect,Bf=x.forwardRef((function(e,t){var n=e.alignItems,r=void 0===n?"center":n,o=e.autoFocus,i=void 0!==o&&o,a=e.button,s=void 0!==a&&a,l=e.children,c=e.classes,u=e.className,d=e.component,p=e.ContainerComponent,f=void 0===p?"li":p,m=e.ContainerProps,h=(m=void 0===m?{}:m).className,g=tl(m,["className"]),y=e.dense,v=void 0!==y&&y,b=e.disabled,S=void 0!==b&&b,M=e.disableGutters,C=void 0!==M&&M,w=e.divider,k=void 0!==w&&w,q=e.focusVisibleClassName,E=e.selected,L=void 0!==E&&E,N=tl(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),O=x.useContext(Pf),D={dense:v||O.dense||!1,alignItems:r},A=x.useRef(null);Ff((function(){i&&A.current&&A.current.focus()}),[i]);var R,I,P=x.Children.toArray(l),z=P.length&&(R=P[P.length-1],I=["ListItemSecondaryAction"],x.isValidElement(R)&&-1!==I.indexOf(R.type.muiName)),j=Dp(x.useCallback((function(e){A.current=T.findDOMNode(e)}),[]),t),F=Hs({className:Tp(c.root,u,D.dense&&c.dense,!C&&c.gutters,k&&c.divider,S&&c.disabled,s&&c.button,"center"!==r&&c.alignItemsFlexStart,z&&c.secondaryAction,L&&c.selected),disabled:S},N),B=d||"li";return s&&(F.component=d||"div",F.focusVisibleClassName=Tp(c.focusVisible,q),B=pf),z?(B=F.component||d?B:"div","li"===f&&("li"===B?B="div":"li"===F.component&&(F.component="div")),x.createElement(Pf.Provider,{value:D},x.createElement(f,Hs({className:Tp(c.container,h),ref:j},g),x.createElement(B,F,P),P.pop()))):x.createElement(Pf.Provider,{value:D},x.createElement(B,Hs({ref:j},F),P))})),_f=Mp((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"})(Bf),Hf=x.forwardRef((function(e,t){var n=e.classes,r=e.className,o=tl(e,["classes","className"]),i=x.useContext(Pf);return x.createElement("div",Hs({className:Tp(n.root,r,"flex-start"===i.alignItems&&n.alignItemsFlexStart),ref:t},o))})),$f=Mp((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(Hf),Vf=x.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=tl(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),m=x.useContext(Pf).dense,h=null!=c?c:n;null==h||h.type===hf||a||(h=x.createElement(hf,Hs({variant:m?"body2":"body1",className:r.primary,component:"span",display:"block"},u),h));var g=d;return null==g||g.type===hf||a||(g=x.createElement(hf,Hs({variant:"body2",className:r.secondary,color:"textSecondary",display:"block"},p),g)),x.createElement("div",Hs({className:Tp(r.root,o,m&&r.dense,l&&r.inset,h&&g&&r.multiline),ref:t},f),h,g)})),Wf=Mp({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(Vf);function Uf(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Kf(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Gf(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function Yf(e){return"function"==typeof e?e():e}var Xf=x.forwardRef((function(e,t){var n=e.action,r=e.anchorEl,o=e.anchorOrigin,i=void 0===o?{vertical:"top",horizontal:"left"}:o,a=e.anchorPosition,s=e.anchorReference,l=void 0===s?"anchorEl":s,c=e.children,u=e.classes,d=e.className,p=e.container,f=e.elevation,m=void 0===f?8:f,h=e.getContentAnchorEl,g=e.marginThreshold,y=void 0===g?16:g,v=e.onEnter,b=e.onEntered,S=e.onEntering,M=e.onExit,C=e.onExited,w=e.onExiting,k=e.open,q=e.PaperProps,E=void 0===q?{}:q,L=e.transformOrigin,N=void 0===L?{vertical:"top",horizontal:"left"}:L,O=e.TransitionComponent,D=void 0===O?If:O,A=e.transitionDuration,R=void 0===A?"auto":A,I=e.TransitionProps,P=void 0===I?{}:I,z=tl(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=x.useRef(),F=x.useCallback((function(e){if("anchorPosition"===l)return a;var t=Yf(r),n=(t&&1===t.nodeType?t:qp(j.current).body).getBoundingClientRect(),o=0===e?i.vertical:"center";return{top:n.top+Uf(n,o),left:n.left+Kf(n,i.horizontal)}}),[r,i.horizontal,i.vertical,a,l]),B=x.useCallback((function(e){var t=0;if(h&&"anchorEl"===l){var n=h(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}}return t}),[i.vertical,l,h]),_=x.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:Uf(e,N.vertical)+t,horizontal:Kf(e,N.horizontal)}}),[N.horizontal,N.vertical]),H=x.useCallback((function(e){var t=B(e),n={width:e.offsetWidth,height:e.offsetHeight},o=_(n,t);if("none"===l)return{top:null,left:null,transformOrigin:Gf(o)};var i=F(t),a=i.top-o.vertical,s=i.left-o.horizontal,c=a+n.height,u=s+n.width,d=Ep(Yf(r)),p=d.innerHeight-y,f=d.innerWidth-y;if(a<y){var m=a-y;a-=m,o.vertical+=m}else if(c>p){var h=c-p;a-=h,o.vertical+=h}if(s<y){var g=s-y;s-=g,o.horizontal+=g}else if(u>f){var v=u-f;s-=v,o.horizontal+=v}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:Gf(o)}}),[r,l,F,B,_,y]),$=x.useCallback((function(){var e=j.current;if(e){var t=H(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[H]),V=x.useCallback((function(e){j.current=T.findDOMNode(e)}),[]);x.useEffect((function(){k&&$()})),x.useImperativeHandle(n,(function(){return k?{updatePosition:function(){$()}}:null}),[k,$]),x.useEffect((function(){if(k){var e=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=this;clearTimeout(t),t=setTimeout((function(){e.apply(a,o)}),n)}return r.clear=function(){clearTimeout(t)},r}((function(){$()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[k,$]);var W=R;"auto"!==R||D.muiSupportAuto||(W=void 0);var U=p||(r?qp(Yf(r)).body:void 0);return x.createElement(Nf,Hs({container:U,open:k,ref:t,BackdropProps:{invisible:!0},className:Tp(u.root,d)},z),x.createElement(D,Hs({appear:!0,in:k,onEnter:v,onEntered:b,onExit:M,onExited:C,onExiting:w,timeout:W},P,{onEntering:wp((function(e,t){S&&S(e,t),$()}),P.onEntering)}),x.createElement(af,Hs({elevation:m,ref:V},E,{className:Tp(u.paper,E.className)}),c)))})),Jf=Mp({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(Xf);function Zf(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function Qf({d:e,size:t,style:n={},viewBox:r="0 0 16 16"}){const o={fontSize:Zf(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",...n};return b.createElement("i",{style:o},b.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},b.createElement("path",{d:e})))}const em="alternative-menu-item",tm=e=>{const{nested:t,className:n,...r}=e,o=(({nested:e,dir:t})=>Dd((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 b.createElement(_f,ys({className:`${o.root} ${n}`},r))},nm=e=>{if("Tab"===e.key){const t=document.querySelectorAll(`.${em}`);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 rm({title:e,selected:t,onClick:n,nested:r,icon:o,bold:i,dir:a}){const s=Fe.detectTextDirection(e);return b.createElement(tm,{nested:r,role:"menuitem",button:!0,onClick:n,className:em,onKeyDown:nm,dir:a,autoFocus:t},b.createElement(Wf,{primary:e,primaryTypographyProps:{dir:s,...i&&{style:{fontWeight:600}}}}),b.createElement($f,{style:{minWidth:16}},b.createElement(Qf,{d:t?ts:""})),o&&b.createElement($f,{style:{minWidth:16}},b.createElement(Qf,{d:o.d})))}rm.propTypes={title:Ss.string.isRequired,selected:Ss.bool,onClick:Ss.func.isRequired,nested:Ss.bool,icon:Ss.shape({d:Ss.string.isRequired}),bold:Ss.bool,dir:Ss.string.isRequired},rm.defaultProps={selected:!1,nested:!1,icon:void 0,bold:!1},tm.propTypes={nested:Ss.bool,className:Ss.string},tm.defaultProps={nested:!1,className:em};const om={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 im({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 b.createElement(b.Fragment,{key:t.id},b.createElement(rm,{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&&b.createElement(jf,{dense:!0,dir:r,component:"div",disablePadding:!0},t.children.map((e=>b.createElement(rm,{key:e.id,nested:!0,title:e.title,selected:e.selected,onClick:()=>{e.onSelect(),a(t.id)},dir:r})))),o<i.length-1&&b.createElement(Df,{key:`divider-${t.id}`}))}));return b.createElement(Jf,ys({anchorEl:t,open:s,onClose:a},om[o],{PaperProps:{style:{minWidth:"250px",maxHeight:"300px"}}}),b.createElement(jf,{dense:!0,disablePadding:!0,dir:r,"aria-label":l,component:"nav"},c))}im.propTypes={chartId:Ss.string.isRequired,alignTo:Ss.any,currentId:Ss.string.isRequired,dir:Ss.string.isRequired,dock:Ss.string.isRequired,list:Ss.array,onClose:Ss.func.isRequired,show:Ss.bool.isRequired,instruction:Ss.string.isRequired},im.defaultProps={list:[],alignTo:null};const am="title-button",sm="active-title-button",lm=Sp((({children:e,...t})=>b.createElement(yf,ys({size:"small",disableRipple:!0,disableTouchRipple:!0},t),e)))((()=>({"&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"}}))),cm=Sp(yf)((()=>({borderRadius:"4px",width:"24px",height:"24px",minWidth:"22px",padding:0})));class um extends b.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=b.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(`.${am}`);t&&(t.focus(),t.classList.add(sm))}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(`.${am}[data-id="${e}"]`);t&&t.focus()}),1e3);else{const e=document.querySelector(`.${sm}`);e&&(e.classList.remove(sm),setTimeout((()=>{e.focus()}),50))}}render(){const{chartId:e,titleData:t,popover:n,translator:r,disabled:o,isDimension:i,padding:a,minWidth:s,hasAlternative:l,supportConditional:c,showGroupDimOptions:u}=this.props,d={flex:"1 1 auto",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontWeight:"normal",lineHeight:"normal",...this.props.style},p=t.breadcrumbs.length,f=o||Boolean(!t.drillUp)||this.state.inSelection,m=t.breadcrumbs.map(((e,n)=>b.createElement(lm,{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},b.createElement("span",{style:d},e),b.createElement(Qf,ys({},rs,{size:"small",style:{margin:"0 8px"}}))))),h=c||u?this.state.hasPopoverOptions:l,g=n&&!this.state.open?this.openPopover:this.closePopover,y=!n||o||this.state.inSelection,v={display:"flex",alignItems:"center",width:"100%",color:y&&"rgba(89, 89, 89, 0.8)",height:"100%",border:!i&&y&&"none",...a?{padding:a}:{paddingTop:0,paddingBottom:0},...s&&{minWidth:s}};this.state.open&&(v.background="rgba(0,0,0,0.08)");const x=()=>{this.setState({disableCyclicButton:!0})},S=Fe.detectTextDirection(t.text),M=b.createElement(lm,{"aria-label":r.get(`Accessibility.${n&&h?"Alternative":"Normal"}.Instructions`,[t.text]),style:v,onClick:y?void 0:g,title:t.text,tabIndex:y?-1:0,onFocus:y?void 0:e=>{e.currentTarget.style.boxShadow="0px 0px 0px 2px #177FE6 inset",e.currentTarget.style.borderRadius="2px"},onBlur:y?void 0:e=>{e.currentTarget.style.boxShadow="none",e.currentTarget.style.borderRadius="0px"},onMouseDown:e=>{e.preventDefault()},className:`${am} ${t.id}`,"data-id":`${e}-${t.id}`},t.locked&&b.createElement(Qf,ys({},es,{size:"small",title:r.get("Tooltip.selections.locked")})),b.createElement("span",{style:d,dir:S},t.text),n&&h&&b.createElement(Qf,ys({},ns,{size:"small",style:{margin:"0 8px"}})));return b.createElement(b.Fragment,null,t.icon&&t.icon.onClick&&b.createElement(cm,{variant:"outlined",disabled:this.state.disableCyclicButton||this.state.inSelection,onClick:o?void 0:()=>t.icon.onClick({onError:x})},b.createElement(Qf,ys({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip)}))),t.icon&&!t.icon.onClick&&b.createElement(Qf,ys({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip),style:{margin:"0 4px 0 0"}})),m,b.createElement("div",{ref:this.alignToRef,style:{overflow:"hidden",pointerEvents:h?"auto":"none",height:"100%"}},M),n&&h&&b.createElement(im,{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 dm(e){return{top:"bottom",bottom:"top",left:"right",right:"left"}[e]}um.propTypes={chartId:Ss.string.isRequired,disabled:Ss.bool.isRequired,padding:Ss.string,minWidth:Ss.string,titleData:Ss.shape({breadcrumbs:Ss.arrayOf(Ss.string).isRequired,icon:Ss.shape({path:Ss.shape({d:Ss.string.isRequired}),tooltip:Ss.string.isRequired,onClick:Ss.func}),index:Ss.number.isRequired,locked:Ss.bool.isRequired,text:Ss.string.isRequired,popoverText:Ss.string.isRequired,drillUp:Ss.func,id:Ss.string.isRequired}).isRequired,popover:Ss.shape({dir:Ss.string.isRequired,dock:Ss.string.isRequired,getPopoverOptions:Ss.func.isRequired}),translator:Ss.shape({get:Ss.func.isRequired}).isRequired,selections:Ss.shape({isActive:Ss.func,addListener:Ss.func,removeListener:Ss.func}),style:Ss.shape({fontSize:Ss.string,color:Ss.string,fontFamily:Ss.string}).isRequired,isDimension:Ss.bool.isRequired,hasAlternative:Ss.bool.isRequired,supportConditional:Ss.bool.isRequired,showGroupDimOptions:Ss.bool.isRequired},um.defaultProps={popover:null,selections:null,padding:"",minWidth:""};const pm=Tl({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 fm=Ll({productionPrefix:"qd35f",disableGlobal:!0,seed:""});var mm={MAX_NUM_POINTS:5e4,DEFAULT_NUM_POINTS:2e3,DEFAULT_NUM_LINES:12};const{DEFAULT_NUM_POINTS:hm}=mm;function gm({layoutService:e,largeDataService:t}){const{maxNumPoints:n=hm}=(null==t?void 0:t.meta)||{},{qHyperCube:r}=e.getLayout();return r.qSize.qcy*r.qMeasureInfo.length>n}const{DEFAULT_NUM_LINES:ym}=mm,vm=({layoutService:e,largeDataService:t})=>{const{maxNumLines:n=ym}=(null==t?void 0:t.meta)||{},{qHyperCube:r}=e.getLayout();return r.qDimensionInfo.length>1&&!gm({layoutService:e,largeDataService:t})?e.meta.size.dimensions[1]+1:n},{DEFAULT_NUM_POINTS:bm}=mm,{MAX_NUM_POINTS:xm,DEFAULT_NUM_POINTS:Sm,DEFAULT_NUM_LINES:Mm}=mm,{DEFAULT_NUM_POINTS:Cm}=mm,wm=({layoutService:e,largeDataService:t})=>{if(!gm({layoutService:e,largeDataService:t})){const{maxNumPoints:e=Cm}=(null==t?void 0:t.meta)||{};return e}const{dimensionCount:n}=e.meta;return n>1?(({layoutService:e,largeDataService:t})=>{var n;const{dimensions:r=[]}=(null==e||null===(n=e.meta)||void 0===n?void 0:n.size)||{},{maxNumLines:o=Mm,maxNumPoints:i=Sm,hasInjectedData:a=!1}=(null==t?void 0:t.meta)||{};if(vm({layoutService:e,largeDataService:t})*r[0]<=i)return r[0];const s=Math.max(1,Math.min(o,r[1])),l=i/s,c=Math.floor(r[0]<=l?l:l/4),u=2*s*(s+1);return a&&(s>Mm||i>Sm)?Math.min(c,Math.ceil(xm/u)):c})({layoutService:e,largeDataService:t}):(({layoutService:e,largeDataService:t})=>{const{maxNumPoints:n=bm}=(null==t?void 0:t.meta)||{},{measureCount:r=1}=(null==e?void 0:e.meta)||{},o=4+2*(r-1);return Math.floor(n/(r*o))})({layoutService:e,largeDataService:t})};function km({model:e,layoutService:t,largeDataService:n,definitionPath:r="/qHyperCubeDef"}){return{shouldFetchReduced:()=>gm({layoutService:t,largeDataService:n}),computeNbrOfBins:()=>wm({layoutService:t,largeDataService:n}),computeMaxNumberLines:()=>vm({layoutService:t,largeDataService:n}),fetch:(o,i)=>(({start:e,end:t,model:n,layoutService:r,largeDataService:o,definitionPath:i})=>{const a={qStart:e,qEnd:t,qNbrPoints:wm({layoutService:r,largeDataService:o}),qMaxNbrTicks:300,qMaxNumberLines:vm({layoutService:r,largeDataService:o})};return n.getHyperCubeContinuousData(i,a,!1)})({start:o,end:i,model:e,layoutService:t,largeDataService:n,definitionPath:r})}}function Tm(e={}){const{cache:t={}}=e;return{fetch:()=>Promise.resolve(t.merged)}}function qm({layoutService:e,viewCache:t}){return{fetch:()=>{const{qAxisData:t,qDataPages:n}=e.getHyperCube();return Promise.resolve({qAxisData:t,qDataPages:n})},getSnapshotData(){const n=e.getLayoutValue("snapshotData.content.chartData",{});return"zoom"in n&&"min"in n.zoom&&"max"in n.zoom?function({zoom:e}){return{zoom:e}}(n):function({scrollOffset:e=0,viewRange:t=0},n){let r=n+e,o=r+t;return 1===t&&0===e&&(r=n-.5,o=n+.5),{zoom:{min:r,max:o}}}(n,t.get("continuousMin"))}}}function Em(){const e=()=>{},t=[],n={};return e.set=(e,r)=>{const o=t.indexOf(e);o>-1&&t.splice(o,1),t.push(e),n[e]=r},e.forEach=e=>{t.forEach(((t,r)=>e(n[t],r)))},e.has=e=>e in n,e}function Lm(e,t,n){return n[0]&&n[0][1]&&n[0][1].qElemNumber>-1?function({start:e,end:t,matrix:n}){const r=[],o=Em(),i=Em();for(let a=0;a<n.length;a++){const s=n[a],l=s[1].qElemNumber.toString();s[0].qNum<e?o.set(l,s):s[0].qNum>t&&(i.has(l)||i.set(l,s)),s[0].qNum>=e&&s[0].qNum<=t&&r.push(s)}return o.forEach(((e,t)=>r.splice(t,0,e))),i.forEach((e=>r.push(e))),r}({start:e,end:t,matrix:n}):function({start:e,end:t,matrix:n}){const r=[];let o,i;for(let a=0;a<n.length;a++){const s=n[a];s[0].qNum<e?o=s:s[0].qNum>t&&(i||(i=s)),s[0].qNum>=e&&s[0].qNum<=t&&r.push(s)}return o&&r.unshift(o),i&&r.push(i),r}({start:e,end:t,matrix:n})}function Nm(e,t){return{...e,qWidth:t[0]?t[0].length:0,qHeight:t.length}}function Om(e,t,n){const r={qDataPages:(n.qDataPages||[]).map((n=>{const r=Lm(e,t,n.qMatrix),o=Nm(n.qArea,r);return{...n,qArea:o,qMatrix:r}}))};return n.qAxisData&&n.qAxisData.qAxis&&(r.qAxisData=function(e,t,n){return{qAxis:n.qAxis.map((n=>({qName:n.qName,qTags:n.qTags,qTicks:n.qTicks.reduce(((n,r)=>((r.qStart>=e&&r.qStart<=t||r.qEnd>=e&&r.qEnd<=t||r.qStart<e&&r.qEnd>t)&&n.push(r),n)),[])})))}}(e,t,n.qAxisData)),r}const Dm=2**.5,Am=1/Dm,Rm=Am**44;function Im(e){return e.qIsOtherCell}function Pm({qDataPages:e=[]}={},t={}){const n=e.length?e[0].qMatrix:[];return t.isStackedByDimension?function(e){const t={};return e.forEach((e=>{if(!e.some(Im)){const n=e[0].qElemNumber;t[n]=void 0}})),Object.keys(t).length}(n):function(e){let t=0;return e.forEach((e=>{e.some(Im)||t++})),t}(n)}const zm={query:{getShouldProcess:()=>!1},command:{processDataPage:()=>{}}};var jm={created(){this.state={}},beforeUpdate(){this.state={}},beforeRender({size:e}){this.state.ticks=this.scale.ticks({distance:e.width}).filter((e=>!e.isMinor)),"linear"===this.scale.type&&function(e,t){const[,n]=e.domain();for(let e=0;e<t.length;e++){const r=t[e],o=t[e+1];r.data={},o||1===r.end?o?(r.data.start=r.value,r.data.end=o.value,r.end=o.position):(r.data.start=r.value,r.data.end=r.value):(r.data.start=r.value,r.data.end=n,r.end=1)}}(this.scale,this.state.ticks)},render(){const e=this.scale.data().fields.length?this.scale.data().fields[0].id():"",{ticks:t}=this.state,n=t.map((t=>({type:"rect",fill:"none",data:{source:{field:e},value:[t.data.start,t.data.end]},x:t.start*this.rect.width,y:0,width:(t.end-t.start)*this.rect.width,height:this.rect.height})));if(t.length&&t[0].start>0){const r=t[0];n.unshift({type:"rect",fill:"none",data:{source:{field:e},value:[this.scale.domain()[0],r.data.start]},x:0,y:0,width:r.start*this.rect.width,height:this.rect.height})}return n}};function Fm(e,t=1){if(t%2==0)return e;let n=Math.round(e);return e-n>0?n+=.5:n-=.5,n}function Bm(e,t){const{localProps:{size:n},props:{anchor:r}}=t,o=function({props:e,localProps:{size:t},style:n,renderer:r}){const o=e.label.padding,i=Math.max(0,Math.min(e.label.justify,1)),a=Math.max(0,Math.min(e.label.align,1)),s=e=>r.measureText({text:e,fontSize:n.label.fontSize,fontFamily:n.label.fontFamily});return{resolve:(e,r)=>{const l="string"==typeof e.label?e.label:"",c=s(l);let{x:u,width:d}=r;e.start===e.end&&(d=c.width+2*o,1===e.end&&(u-=d));const p={x:u+o,y:o,width:d-2*o,height:t.height-2*o},f=s(`${l[0]}…`).width,m=Math.max(0,p.width-c.width),h=Math.max(0,p.height-c.height),g=i*m,y=a*h;return{show:p.width>=Math.min(f,c.width),text:l,dx:g,dy:y,rect:p,style:n.label,segment:{x:u+g,width:c.width+2*o},tickValue:e.value}}}}(t),i=function({localProps:{size:e},style:t,scale:n,props:r}){const[o,i]=n.domain(),a=Math.max(0,Math.min(1,r.guideLine.major.justify));return{resolve:(n,r)=>{const s=a*r.width,l=Fm(r.x+s,t.majorGuideLine.strokeWidth);return{show:n.value>=o&&n.value<=i,x1:l,y1:0,x2:l,y2:Fm(e.height,t.majorGuideLine.strokeWidth),style:t.majorGuideLine,tickValue:n.value}}}}(t),a=e.map((e=>{const t=function(e,t,n){const r=Math.abs(Math.max(e.start,0)-Math.min(e.end,1))*t.width;return{x:Math.max(e[n],0)*t.width,y:0,width:r,height:t.height}}(e,n,r);return{rect:t,label:o.resolve(e,t),guideLine:i.resolve(e,t)}}));return function(e,t){const n=e.length;if(n<2)return;const r=e[n-1],o=t[n-1].label;if(r&&r.start===r.end)for(let e=n-2;e>-1;e--){const n=t[e].label;n.show=n.show&&(i=n.segment,a=o.segment,!(i.x<a.x?i.x+i.width>=a.x:a.x+a.width>=i.x))}var i,a}(e,a),a}function _m(e,t){const n=function({localProps:{size:e},props:t,style:n}){return{resolve:r=>{const o=Math.max(e.height-t.guideLine.minor.size,0)*Math.max(0,Math.min(t.guideLine.minor.align,1)),i=Fm(r.position*e.width,n.minorGuideLine.strokeWidth);return{guideLine:{show:!0,x1:i,y1:Fm(o,n.minorGuideLine.strokeWidth),x2:i,y2:Fm(t.guideLine.minor.size+o,n.minorGuideLine.strokeWidth),style:n.minorGuideLine}}}}}(t);return t.props.guideLine.minor.show?e.map(n.resolve):[]}function Hm(e){return e.filter((e=>e.show)).map((e=>de({strokeWidth:1},e.style,{type:"line",x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,tickValue:e.tickValue})))}var $m={require:["renderer"],defaultSettings:{layout:{displayOrder:0,prioOrder:0},settings:{anchor:"start",label:{show:!0,padding:4,align:0,justify:0},line:{show:!0},guideLine:{major:{justify:0},minor:{show:!0,size:4,align:0}}},style:{label:"$label",line:"$guide-line",majorGuideLine:"$guide-line",minorGuideLine:"$guide-line"}},preferredSize:()=>({size:30,edgeBleed:{left:1,right:1}}),init(){this.props=this.settings.settings,this.localProps={},this.state={major:[],minor:[]}},created(){this.init()},beforeUpdate(){this.init()},beforeRender({size:e}){this.localProps.size=e;const t=this.scale.ticks({distance:e.width}),n=t.filter((e=>!e.isMinor)),r=t.filter((e=>e.isMinor));this.state.line=function({localProps:{size:e},style:t,props:n}){const r=Fm(1,t.line.strokeWidth);return{show:n.line.show,x1:Fm(0,t.line.strokeWidth),y1:r,x2:Fm(e.width,t.line.strokeWidth),y2:r,style:t.line}}(this),this.state.major=Bm(n,this),this.state.minor=_m(r,this)},render(){return[...Hm([this.state.line]),...(e=this.state.major.map((e=>e.label)),e.filter((e=>e.show)).map((e=>de({},e.style,{type:"text",x:e.rect.x,y:e.rect.y,dx:e.dx,dy:e.dy,maxWidth:e.rect.width,text:e.text,title:e.text,baseline:"text-before-edge",tickValue:e.tickValue})))),...Hm(this.state.major.map((e=>e.guideLine))),...Hm(this.state.minor.map((e=>e.guideLine)))];var e}};function Vm(e,t){return e&&t&&e.qTicks.length===t.qTicks.length&&e.qTicks.every(((e,n)=>e.qStart===t.qTicks[n].qStart&&e.qEnd===t.qTicks[n].qEnd))}function Wm(e){return e.qTags.indexOf("$qualified")>-1}function Um({qAxis:e}){const t=[],n=[];for(let r=0;r<e.length;r++){const o=r+1,i=e[r],a=e[o];Vm(i,a)?(Wm(a)?(t.push(o),n.push(r)):(t.push(r),n.push(o)),r++):(t.push(r),n.push(r))}return{qualified:t,nonQualified:n}}function Km({qualifiedMeta:e,nonQualifiedMeta:t}){return{resolve(n){let r,o=NaN,i=NaN,a=NaN,s=!1;for(let l=e.length-1;l>=0;l--){const c=e[l];if(c.queries.outer(n)){const e=t[l+1];if(o=c.index,r=l,c.attrs.isDayOrShorter()&&c.queries.canFitHalfDayTicks(n)){i="auto",s=!0;break}if(e&&e.queries.inner(n)){i=e.index;const r=t[l+2];r&&r.queries.minor(n)&&(a=r.index);break}}}if(!Number.isNaN(o)&&Number.isNaN(i)&&"auto"!==i){i=o,o=NaN;const e=t[r+1];e&&e.queries.minor(n)&&(a=e.index)}else Number.isNaN(o)&&(o="auto",i="auto");return{outer:o,inner:i,minor:a,isDayOrShorter:s}}}}function Gm({qTicks:e,measureText:t=()=>({width:0}),cache:n={},scale:r}){const o=n;return{isDayOrShorter:()=>(o.isDayOrShorter=e.length>0&&Math.abs(e[0].qStart-e[0].qEnd)<=1,o.isDayOrShorter),count:()=>e.length,maxRange:()=>(o.maxRange=e.length?Math.max(...e.map((e=>Math.abs(r(e.qStart)-r(e.qEnd))))):0,o.maxRange),rangeAndWidth(){const n=r.clamp();return r.clamp(!1),o.rangeAndWidth=e.map((e=>({range:Math.abs(r(e.qStart)-r(e.qEnd)),width:t(`${e.qText}`).width+16}))),r.clamp(n),o.rangeAndWidth}}}function Ym({attrs:e,reqAutoFitWidth:t}){return{outer:t=>!e.rangeAndWidth().some((({width:e,range:n})=>e>n*t)),inner:t=>!e.rangeAndWidth().some((({width:e,range:n})=>e>n*t)),minor:t=>e.maxRange()*t>=6,canFitHalfDayTicks:n=>n>=t*e.count()}}function Xm({qualified:e,nonQualified:t,qAxis:n,measureText:r,reqAutoFitWidth:o,scale:i},{attributesFactory:a=Gm,queryFactory:s=Ym}={attributesFactory:Gm,queryFactory:Ym}){const l=n.map(((e,t)=>function(e,t){const{qTicks:n}=e,l=a({qTicks:n,measureText:r,scale:i});return{data:e,index:t,attrs:l,queries:s({attrs:l,reqAutoFitWidth:o})}}(e,t))),c=e.map((e=>l[e])),u=t.map((e=>l[e]));return{qAxisMeta:l,qualifiedMeta:c,nonQualifiedMeta:u}}function Jm({qAxis:e=[],measureText:t=()=>({width:0}),cache:n={},reqAutoFitWidth:r=0,scale:o},{metaFactory:i=Xm,mapper:a=Um,resolver:s=Km}={metaFactory:Xm,mapper:Um,resolver:Km}){const{qualified:l,nonQualified:c}=a({qAxis:e}),{qualifiedMeta:u,nonQualifiedMeta:d}=i({qAxis:e,qualified:l,nonQualified:c,measureText:t,reqAutoFitWidth:r,scale:o}),p=s({qualifiedMeta:u,nonQualifiedMeta:d});return{resolve:t=>{const r=n.key({distance:t});if(n.get(r))return n.get(r);if(function(e){return!Array.isArray(e)||0===e.length||e.every((e=>0===e.qTicks.length))}(e))return{outer:"auto",inner:"auto",minor:NaN,isDayOrShorter:!1};const o=p.resolve(t);return n.set(r,o),o}}}function Zm(e){return new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,0,Math.round(864e5*(e-Math.floor(e)))))}const Qm=Zm(0).getTime();function eh(e){return(e.getTime()-Qm)/86400/1e3}const th=new Date,nh=new Date;function rh(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=t=>(e(t=new Date(+t)),t),o.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),o.round=e=>{const t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),o.range=(n,r,i)=>{const a=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return a;let s;do{a.push(s=new Date(+n)),t(n,i),e(n)}while(s<n&&n<r);return a},o.filter=n=>rh((t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),((e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})),n&&(o.count=(t,r)=>(th.setTime(+t),nh.setTime(+r),e(th),e(nh),Math.floor(n(th,nh))),o.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?t=>r(t)%e==0:t=>o.count(0,t)%e==0):o:null)),o}const oh=1e3,ih=6e4,ah=36e5,sh=864e5,lh=6048e5,ch=rh((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*oh)}),((e,t)=>(t-e)/oh),(e=>e.getUTCSeconds()));ch.range;const uh=rh((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*oh)}),((e,t)=>{e.setTime(+e+t*ih)}),((e,t)=>(t-e)/ih),(e=>e.getMinutes()));uh.range;const dh=rh((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*ih)}),((e,t)=>(t-e)/ih),(e=>e.getUTCMinutes()));dh.range;const ph=rh((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*oh-e.getMinutes()*ih)}),((e,t)=>{e.setTime(+e+t*ah)}),((e,t)=>(t-e)/ah),(e=>e.getHours()));ph.range;const fh=rh((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*ah)}),((e,t)=>(t-e)/ah),(e=>e.getUTCHours()));fh.range;const mh=rh((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ih)/sh),(e=>e.getDate()-1));mh.range;const hh=rh((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/sh),(e=>e.getUTCDate()-1));hh.range;const gh=rh((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/sh),(e=>Math.floor(e/sh)));function yh(e){return rh((t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),((e,t)=>{e.setDate(e.getDate()+7*t)}),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ih)/lh))}gh.range;const vh=yh(0),bh=yh(1),xh=yh(2),Sh=yh(3),Mh=yh(4),Ch=yh(5),wh=yh(6);function kh(e){return rh((t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)}),((e,t)=>(t-e)/lh))}vh.range,bh.range,xh.range,Sh.range,Mh.range,Ch.range,wh.range;const Th=kh(0),qh=kh(1),Eh=kh(2),Lh=kh(3),Nh=kh(4),Oh=kh(5),Dh=kh(6);Th.range,qh.range,Eh.range,Lh.range,Nh.range,Oh.range,Dh.range;const Ah=rh((e=>{e.setDate(1),e.setHours(0,0,0,0)}),((e,t)=>{e.setMonth(e.getMonth()+t)}),((e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())),(e=>e.getMonth()));Ah.range;const Rh=rh((e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)}),((e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())),(e=>e.getUTCMonth()));Rh.range;const Ih=rh((e=>{e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,t)=>{e.setFullYear(e.getFullYear()+t)}),((e,t)=>t.getFullYear()-e.getFullYear()),(e=>e.getFullYear()));Ih.every=e=>isFinite(e=Math.floor(e))&&e>0?rh((t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,n)=>{t.setFullYear(t.getFullYear()+n*e)})):null,Ih.range;const Ph=rh((e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)}),((e,t)=>t.getUTCFullYear()-e.getUTCFullYear()),(e=>e.getUTCFullYear()));Ph.every=e=>isFinite(e=Math.floor(e))&&e>0?rh((t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null,Ph.range;const zh=1,jh=2,Fh=3,Bh=4,_h=5,Hh=6;function $h({timeScale:e,labels:t,distance:n,isDayOrShorter:r,cache:o,timeOnly:i,initialMin:a}){const[s,l]=e.domain(),c=o.key({distance:n});let u;o.get(c,1)?u=o.get(c,1):(u=function(e,t,n,r,o,i){function a(e){return Ph.filter((t=>(t.getUTCFullYear()-i.getUTCFullYear())%e==0))}const s=ch.count(e,t),l=dh.count(e,t),c=fh.count(e,t),u=hh.count(e,t),d=Th.count(e,t),p=Rh.count(e,t),f=Ph.count(e,t),m=n/r.second.width-1,h=n/r.minute.width-1,g=n/r.date.width-1,y=n/r.year.width-1,v={type:"year",desc:"year",count:f,interval:Ph.every(1),formatter:r.year.formatter,offset:e=>Ph.offset(e,-1),floor:Ph.floor};if(s<=m)v.type=zh,v.desc="second",v.count=s,v.interval=ch.every(1),v.formatter=r.second.formatter,v.offset=e=>ch.offset(e,-1),v.floor=ch.floor;else if(s/2<=m)v.type=zh,v.desc="every other second",v.count=s/2,v.interval=ch.every(2),v.formatter=r.second.formatter,v.offset=e=>ch.offset(e,-2),v.floor=ch.floor;else if(s/5<=m)v.type=zh,v.desc="every 5 second",v.count=s/5,v.interval=ch.every(5),v.formatter=r.second.formatter,v.offset=e=>ch.offset(e,-5),v.floor=ch.floor;else if(s/15<=m)v.type=zh,v.desc="every 15 second",v.count=s/15,v.interval=ch.every(15),v.formatter=r.second.formatter,v.offset=e=>ch.offset(e,-15),v.floor=ch.floor;else if(s/30<=m)v.type=zh,v.desc="every 30 second",v.count=s/30,v.interval=ch.every(30),v.formatter=r.second.formatter,v.offset=e=>ch.offset(e,-30),v.floor=ch.floor;else if(l<=h)v.type=jh,v.desc="minute",v.count=l,v.interval=dh.every(1),v.formatter=r.minute.formatter,v.offset=e=>dh.offset(e,-1),v.floor=dh.floor;else if(l/2<=h)v.type=jh,v.desc="every 2 minute",v.count=l/2,v.interval=dh.every(2),v.formatter=r.minute.formatter,v.offset=e=>dh.offset(e,-2),v.floor=dh.floor;else if(l/5<=h)v.type=jh,v.desc="every 5 minute",v.count=l/5,v.interval=dh.every(5),v.formatter=r.minute.formatter,v.offset=e=>dh.offset(e,-5),v.floor=dh.floor;else if(l/10<=h)v.type=jh,v.desc="every 10 minute",v.count=l/10,v.interval=dh.every(10),v.formatter=r.minute.formatter,v.offset=e=>dh.offset(e,-10),v.floor=dh.floor;else if(l/15<=h)v.type=jh,v.desc="every 15 minute",v.count=l/15,v.interval=dh.every(15),v.formatter=r.minute.formatter,v.offset=e=>dh.offset(e,-15),v.floor=dh.floor;else if(l/30<=h)v.type=jh,v.desc="every 30 minute",v.count=l/30,v.interval=dh.every(30),v.formatter=r.minute.formatter,v.offset=e=>dh.offset(e,-30),v.floor=dh.floor;else if(c<=h)v.type=Fh,v.desc="hour",v.count=c,v.interval=fh.every(1),v.formatter=r.minute.formatter,v.offset=e=>fh.offset(e,-1),v.floor=fh.floor;else if(c/2<=h)v.type=Fh,v.desc="every 2 hour",v.count=c/2,v.interval=fh.every(2),v.formatter=r.minute.formatter,v.offset=e=>fh.offset(e,-2),v.floor=fh.floor;else if(c/3<=h)v.type=Fh,v.desc="every 3 hour",v.count=c/3,v.interval=fh.every(3),v.formatter=r.minute.formatter,v.offset=e=>fh.offset(e,-3),v.floor=fh.floor;else if(c/6<=h)v.type=Fh,v.desc="every 6 hour",v.count=c/6,v.interval=fh.every(6),v.formatter=r.minute.formatter,v.offset=e=>fh.offset(e,-6),v.floor=fh.floor;else if(c/12<=h||o)v.type=Fh,v.desc="every 12 hour",v.count=c/12,v.interval=fh.every(12),v.formatter=r.minute.formatter,v.offset=e=>fh.offset(e,-12),v.floor=fh.floor;else if(u<=g)v.type=Bh,v.desc="day",v.count=u,v.interval=hh.every(1),v.formatter=r.date.formatter,v.offset=e=>hh.offset(e,-1),v.floor=hh.floor;else if(u/2<=g)v.type=Bh,v.desc="every 2 day",v.count=u/2,v.interval=hh.every(2),v.formatter=r.date.formatter,v.offset=e=>hh.offset(e,-2),v.floor=hh.floor;else if(u/3<=g)v.type=Bh,v.desc="every 3 day",v.count=u/3,v.interval=hh.every(3),v.formatter=r.date.formatter,v.offset=e=>hh.offset(e,-3),v.floor=hh.floor;else if(d<=g)v.type=Bh,v.desc="week",v.count=d,v.interval=Th.every(1),v.formatter=r.date.formatter,v.offset=e=>Th.offset(e,-1),v.floor=hh.floor;else if(d/2<=g)v.type=Bh,v.desc="every 2 week",v.count=d/2,v.interval=Th.every(2),v.formatter=r.date.formatter,v.offset=e=>Th.offset(e,-2),v.floor=hh.floor;else if(p<=g)v.type=_h,v.desc="month",v.count=p,v.interval=Rh.every(1),v.formatter=r.date.formatter,v.offset=e=>Rh.offset(e,-1),v.floor=hh.floor;else if(p/3<=g)v.type=_h,v.desc="quarter",v.count=p/3,v.interval=Rh.every(3),v.formatter=r.date.formatter,v.offset=e=>Rh.offset(e,-3),v.floor=hh.floor;else if(p/6<=g)v.type=_h,v.desc="half year",v.count=p/6,v.interval=Rh.every(6),v.formatter=r.date.formatter,v.offset=e=>Rh.offset(e,-6),v.floor=hh.floor;else if(f<=y)v.type=Hh,v.desc="year",v.count=f,v.interval=Ph.every(1),v.formatter=r.year.formatter,v.offset=e=>Ph.offset(e,-1),v.floor=Ph.floor;else if(f/2<=y)v.type=Hh,v.desc="every 2 year",v.count=f/2,v.interval=a(2),v.formatter=r.year.formatter,v.offset=e=>Ph.offset(e,-2),v.floor=Ph.floor;else if(f/5<=y)v.type=Hh,v.desc="every 5 year",v.count=f/5,v.interval=a(5),v.formatter=r.year.formatter,v.offset=e=>Ph.offset(e,-5),v.floor=Ph.floor;else if(f/10<=y)v.type=Hh,v.desc="every 10 year",v.count=f/10,v.interval=a(10),v.formatter=r.year.formatter,v.offset=e=>Ph.offset(e,-10),v.floor=Ph.floor;else{const e=Math.max(1,Math.floor(f/y));v.type=Hh,v.desc="every nth year",v.count=e,v.interval=a(e),v.formatter=r.year.formatter,v.offset=t=>Ph.offset(t,-e),v.floor=Ph.floor}return v}(s,l,n,t.all(),r,a),o.set(c,u,1));const d=e.ticks(u.interval);d.length?s.getTime()!==d[0].getTime()&&d.unshift(u.offset(d[0])):d.push(u.floor(s));const p=d.map(((e,t,n)=>{const r=n[t+1]?n[t+1]-e:l-e;return{start:e,end:new Date(e.getTime()+r),formatter:u.formatter}}));let f=[];if(!i&&u.type<=Fh){const n=t.getFormat("date"),r=e.ticks(hh.every(1));r.length&&s.getUTCDate()!==r[0].getUTCDate()&&r.unshift(hh.offset(r[0],-1)),f=(r.length?r:[hh.floor(s)]).map(((e,t,r)=>{const o=r[t+1]?r[t+1]-e:l-e;return{start:e,end:new Date(e.getTime()+o),formatter:n.formatter}}))}return{inner:p,outer:f}}const Vh=86400,Wh=1440,Uh={};function Kh(e,t,n,r){return{type:e,start:new Date(Date.UTC(...t)),end:new Date(Date.UTC(...n)),formatter:r}}function Gh(e,t,n){const{generator:r,anchor:o,clamp:i,level:a}=t.ticks,{qNumFormat:s}=t.formatter;e.clamp(i);const[l,c]=e.domain(),u=Oi().domain([Zm(l),Zm(c)]);u.clamp(i),u.range(t.invert?[1,0]:[0,1]);const d="object"==typeof r?r:{type:r};let p;p="d3"===d.type?(e,o)=>$h({timeScale:u,labels:n,distance:e,isDayOrShorter:o,cache:t.cache,timeOnly:"T"===s.qType,initialMin:void 0===d.initialMin?u.domain()[0]:Zm(r.initialMin)}):e=>function(e,t,n,r,o,i=!1){if(Uh[[t,n,r,r,i]])return Uh[[t,n,r,r,i]];const a={year:e.getFormat("year"),date:e.getFormat("date"),minute:e.getFormat("minute"),second:e.getFormat("second")},s=Zm(n),l=s.getFullYear(),c=s.getMonth(),u=s.getDate(),d=r-n,p=t/(o-r),f=p/1440,m=p/Vh,h=366*p,g=3*p*30,y=a.second.width/m,v=a.minute.width/f,b=a.date.width/g,x=a.year.width/h;let S,M,C,w=0,k=0,T=null,q=null,E=null,L=null,N=null,O=null;const D={outer:[],inner:[]};for(y<1?(T=1,k=1/Vh):y<2?(T=2,k=1/Vh*2):y<5?(T=5,k=1/Vh*5):y<10?(T=10,k=1/Vh*10):y<30?(T=30,k=1/Vh*30):v<1?(q=1,k=1/Wh):v<2?(q=2,k=1/Wh*2):v<5?(q=5,k=1/Wh*5):v<10?(q=10,k=.006944444444444445):v<30?(q=30,k=.020833333333333336):v<60?(E=1,k=1/24):v<120?(E=2,k=2/24):v<360?(E=6,k=.25):v<720?(E=12,k=.5):b<1/90?(k=1,L=1):b<2/90?(k=2,L=2):b<7/90?(k=7,L=7):b<31/90?(N=1,k=31):b<1?(N=3,k=90):x<1?(O=1,k=366):x<2?(O=2,k=732):x<5?(O=5,k=1826.25):(O=10,k=3652.5),M=Math.floor((d+n%1)/k);w<o;){C=M+1,S=O?Kh("year",[l+M*O,0,1],[l+C*O,0,1],a.year.formatter):N?Kh("month",[l,c+M*N,1],[l,c+C*N,1],a.date.formatter):L?Kh("day",[l,c,u+M*L],[l,c,u+C*L],a.date.formatter):E?Kh("hour",[l,c,u,0+M*E],[l,c,u,0+C*E],a.minute.formatter):q?Kh("minute",[l,c,u,0,0+M*q],[l,c,u,0,0+C*q],a.minute.formatter):Kh("second",[l,c,u,0,0,0+M*T],[l,c,u,0,0,0+C*T],a.second.formatter),w=eh(S.start),D.inner.push(S);const e=Math.floor(w);if(!(i||O||N||L)){const t={type:"day",start:Zm(e),end:Zm(e+1),formatter:a.date.formatter,qStart:e};D.outer[D.outer.length-1]&&D.outer[D.outer.length-1].qStart===t.qStart||D.outer.push(t)}M++}return D.min=r,D.max=o,Uh[[t,n,r,r,i]]=D,D}(n,e,d.min,l,c,"T"===s.qType);const f={transform:(t=[],{isMinor:n=!1}={})=>t.map((t=>{let r;r="start"===o?t.qStart:"end"===o?t.qEnd:(t.qStart+t.qEnd)/2;const i=e.clamp();n&&e.clamp(!1);const a=e(r),s=e(t.qStart),l=e(t.qEnd);return e.clamp(i),{value:r,position:a,start:s,end:l,label:t.qText,isMinor:n,data:n?void 0:{start:t.qStart,end:t.qEnd,scaleStart:e.domain()[0]}}})).filter((e=>e.position>=0&&e.position<=1)),generate:(t=100,n)=>p(t,n)[a].map((t=>{let n;return n="start"===o?eh(t.start):"end"===o?eh(t.end):(eh(t.start)+eh(t.end))/2,{position:u(t.start),start:u(t.start),end:u(t.end),value:n,label:t.formatter(n),isMinor:!1,data:{start:eh(t.start),end:eh(t.end),scaleStart:e.domain()[0]}}})).filter((e=>e.position>=0&&e.position<=1))};return f}const Yh=/t+/i;const Xh={min:NaN,max:NaN,invert:!1,qAxis:[],field:void 0,formatter:{fn:()=>e=>e,measureText:()=>({width:0,height:0}),localeInfo:{},qNumFormat:{}},ticks:{generator:"d3",level:"outer",anchor:void 0,clamp:!1},cache:{get:()=>!1,set:()=>{},key:()=>""}};function Jh(e,t){e.instance||(e.instance=t.copy(),e.instance.domain(t.domain()),e.instance.clamp(!0),e.instance.range(e.invert?[1,0]:[0,1]))}const Zh="continuousPan";var Qh={model:function({model:e,layoutService:t,largeDataService:n,dataProcessorModel:r=zm,viewCache:o,viewState:i,definitionPath:a},s={}){const{engineFetcherFactory:l=km,snapshotFetcherFactory:c=qm,cacheFetcherFactory:u=Tm,cache:d={initial:{},merged:{}}}=s,p=l({model:e,layoutService:t,largeDataService:n,definitionPath:a}),f=c({layoutService:t,viewCache:o}),m=u({cache:d}),h=e=>{throw e.isHandled=!0,e};let g,y,v;return{update(e){var n,r;({initialMin:y,initialMax:v}=function(e={}){let{qMin:t,qMax:n}=e;return t=Number.isNaN(+t)?0:t,n=Number.isNaN(+n)?0:n,{initialMin:t,initialMax:n}}(e.qHyperCube.qDimensionInfo[0])),o.set("continuousMin",y),o.set("continuousMax",v),o.set("minimiumZoomSpan",(n=y,r=v,Math.max(1e-6,(r-n)*Rm))),g=t.meta.isSnapshot?f:p,t.meta.isSnapshot&&({zoom:{min:y,max:v}}=f.getSnapshotData()),i.preventSet("zoom",{min:y,max:v})},updateLayout(e){const{qDataPages:n,qAxisData:r}=e;return t.setHyperCubeValue("qDataPages",n),t.setHyperCubeValue("qAxisData",r),t.setHyperCubeValue("qMode","S"),t.setHyperCubeValue("qColumnOrder",[]),e},initialFetch(){return g.fetch(y,v).then((e=>{const t=function(e){return{qDataPages:e.qDataPages.map((e=>{const t=Nm(e.qArea,e.qMatrix);return{...e,qArea:t}})),qAxisData:e.qAxisData}}(e);return r.command.processDataPage({dataPage:t.qDataPages.length?t.qDataPages[0]:[]}),d.initial=t,d.merged=t,e})).then((e=>Om(y,v,e))).then((e=>this.updateLayout(e))).catch(h)},fetch:(e,t)=>g.fetch(e,t).then((e=>function(e,t){const n={};return n.qDataPages=(e.qDataPages||[]).map(((e,n)=>{const r=function(e,t){if(!t||!t.length||!t[0].length)return e;const n=t[0][0].qNum,r=t[t.length-1][0].qNum,o=[],i=[];for(let t=0,a=e.length;t<a;t++){const a=e[t][0];a.qNum<n?o.push(e[t]):a.qNum>r&&i.push(e[t])}return[...o,...t,...i]}(e.qMatrix,t.qDataPages[n].qMatrix),o=Nm(e.qArea,r);return{...e,qArea:o,qMatrix:r}})),e.qAxisData&&e.qAxisData.qAxis&&(n.qAxisData=function(e,t){if(!t||!t.qAxis.length||t.qAxis.every((e=>!e.qTicks.length)))return e;const n=t.qAxis.map((e=>e.qName)),r=t.qAxis.map((e=>({start:e.qTicks[0].qStart,end:e.qTicks[e.qTicks.length-1].qStart}))),o=t.qAxis.map((e=>({qName:e.qName,qTags:[...e.qTags],qTicks:[...e.qTicks]})));for(let t=0,i=e.qAxis.length;t<i;t++){const i=e.qAxis[t],a=n.indexOf(i.qName),s=[],l=[];if(a>-1){const{start:e,end:t}=r[a];for(let n=0,r=i.qTicks.length;n<r;n++){const r=i.qTicks[n];r.qStart<e?s.push(r):r.qStart>t&&l.push(r)}o[a].qTicks=[...s,...o[a].qTicks,...l]}}return{qAxis:o}}(e.qAxisData,t.qAxisData)),n}(d.initial,e))).then((e=>(r.command.processDataPage({dataPage:e.qDataPages.length?e.qDataPages[0]:[]}),d.merged=e,e))).then((n=>Om(e,t,n))).catch(h),fetchFromCache:(e,t)=>m.fetch(e,t).then((n=>Om(e,t,n))),fetchMinMaxData:()=>Promise.resolve(d.initial.qDataPages||[]),getInitialCube(){const e=t.getHyperCube();return de({},e,{...d.initial})},getInitialLayout(){const e=this.getInitialCube();return de({},t.getLayout(),{qHyperCube:e})},getDimensionCardinality:()=>Pm(d.initial,t.meta),setSnapshotData(e){const{qHyperCube:t}=e,n=r.query.getShouldProcess()?[r.query.getFilteredDataPage({dataPage:d.merged.qDataPages[0]})]:d.merged.qDataPages;t.qDataPages=n,t.qAxisData=d.merged.qAxisData}}},event:{onZoomChange:function(e,t){const{layoutService:n,continuousDataModel:r}=e;function o(e,n,o){return r[e](n,o).then((e=>(r.updateLayout(e),t(),e)))}const i=a(((e,t)=>o("fetch",e,t)),50);return({min:e,max:t},{min:r,max:a})=>!n.meta.isContinuous||e===r&&t===a?Promise.resolve(null):o("fetchFromCache",e,t).then((n=>(i(e,t),n)))},onZoomIntercept:function({viewCache:e}){let t=NaN,n=NaN,r=NaN;return(o,i)=>(t=e.get("continuousMin"),n=e.get("continuousMax"),r=e.get("minimiumZoomSpan"),Math.abs(o.max-o.min)<r?i:{min:Math.min(o.max,Math.max(t,o.min)),max:Math.max(o.min,Math.min(n,o.max))})},onZoom:function({viewCache:e,viewState:t,chart:n},{threshold:r=50,rtl:o=!1,targetKey:i}){const a=e.get("continuousMin"),l=e.get("continuousMax");return s(((e,r)=>{const s=(e=>n.componentsFromPoint(e).filter((e=>e.key===i))[0])(e);if(s){const i=function(e,t,n){let{x:r}=e;return r-=t.element.getBoundingClientRect().left,r-=n.rect.x,Math.max(0,Math.min(1,r/n.rect.width))}(e,n,s),c=o?1-i:i,{min:u,max:d}=t.get("zoom"),p=Math.abs(d-u),f=p-(r>0?Am:Dm)*p,m=u+f*c,h=d-f*(1-c),g=m<a?a-m:0,y=h>l?h-l:0;t.set("zoom",{min:Math.max(m-y,a),max:Math.min(h+g,l)})}}),r)}},interactions:{areaPan:function({targetKey:e,chart:t,actions:n,viewState:r,viewCache:o}){return{type:"Pan",key:"continuous:pan",options:{event:Zh,pointers:1,threshold:10,enable(r,o){return this.started===Zh||!o||!!n.scroll.enabled()&&t.componentsFromPoint({x:o.center.x,y:o.center.y}).some((t=>t.key===e))}},events:{[`${Zh}start`](n){n.preventDefault(),this.started=Zh;const{min:o,max:i}=r.get("zoom");this[Zh]={min:o,max:i,size:t.component(e).rect.computedInner.width,span:i-o}},[`${Zh}move`](e){e.preventDefault();const{span:t,min:n,max:i,size:a}=this[Zh],s=-e.deltaX/a;r.set("zoom",{min:Math.min(n+s*t,o.get("continuousMax")-t),max:Math.max(i+s*t,o.get("continuousMin")+t)})},[`${Zh}end`](e){e.preventDefault(),this.started=!1},[`${Zh}cancel`](e){e.preventDefault(),this.started=!1}}}}},picassoComponents:{axisOverlay:jm,timeAxis:$m},picassoScales:{time:function e(t,n={}){const r=function(e,t,n){const r={};return Object.keys(t).forEach((o=>{const i=e[o],a=typeof i;"function"===a?r[o]=i(n):"object"!==a||Array.isArray(i)?r[o]="undefined"===a?t[o]:i:r[o]=de(!0,{},t[o],i)})),r}(t,Xh,n),{qAxis:i}=r,a=xr(),s={instance:null,invert:!1},{min:l,max:c}=function(e,t){let n=+e.min,r=+e.max;return Number.isNaN(n)&&Number.isNaN(r)&&Array.isArray(t)&&t.length&&(n=Math.min(...t[t.length-1].qTicks.map((e=>e.qStart))),r=Math.max(...t[t.length-1].qTicks.map((e=>e.qEnd)))),n===r&&(n-=.5,r+=.5),{min:Number.isNaN(+n)?0:n,max:Number.isNaN(+r)?1:r}}(r,i);let u,d,p=[];const f=function(e){return Number.isNaN(+e)?NaN:a(e)};f.ticks=({distance:e,resolve:t=u.resolve}={})=>{const n=t(e),o=n[r.ticks.level];if(Number.isNaN(+o)||(p=d.transform(i[o].qTicks,{isMinor:!1})),!Number.isNaN(+n.minor)){const e=d.transform(i[n.minor].qTicks,{isMinor:!0});p=p.concat(e)}return"auto"===o&&(p=d.generate(e,n.isDayOrShorter)),p},f.invert=e=>a.invert(e),f.domain=e=>Array.isArray(e)?a.domain(e):a.domain(),f.range=e=>Array.isArray(e)?a.range(e):a.range(),f.norm=e=>(Jh(s,f),s.instance(e)),f.normInvert=e=>(Jh(s,f),s.instance.invert(e)),f.copy=()=>e(t,n),f.clamp=(e=!0)=>(a.clamp(e),a.clamp()),f.min=()=>Math.min(l,c),f.max=()=>Math.max(l,c),a.range(r.invert?[1,0]:[0,1]),a.domain([l,c]),s.invert=r.invert;const m=function(e){const t={},{measureText:n,fn:r,localeInfo:o}=e.formatter,i={second:{type:"second",pattern:"hh:mm:ss",width:60,formatter:void 0},minute:{type:"minute",pattern:"hh:mm",width:60,formatter:void 0},date:{type:"date",pattern:"YYYY-MM-DD",width:60,formatter:void 0},year:{type:"year",pattern:"YYYY",width:60,formatter:void 0}};return o&&Yh.test(o.qTimestampFmt)&&(i.minute.pattern+=" tt",i.second.pattern+=" tt"),i.date.pattern=o&&o.qDateFmt?o.qDateFmt:i.date.pattern,Object.keys(i).forEach((e=>{i[e].formatter=r(i[e].pattern),i[e].width=Math.max(i[e].width,n(i[e].formatter(41000.2343433)).width+16)})),t.getFormat=e=>i[e],t.all=()=>i,t.getFormatFromTicks=e=>{const t=e.filter((e=>!e.isMinor)),{length:n}=t;if(!n)return i.date;const r=Zm(t[0].data.start),o=Zm(t[n-1].data.start);return hh.count(r,o)/n>=1?i.date:fh.count(r,o)/n>0?i.minute:dh.count(r,o)/n>0?i.second:i.date},t}(r);return d=Gh(a.copy(),r,m),u=Jm({qAxis:i,measureText:r.formatter.measureText,reqAutoFitWidth:2*m.getFormat("minute").width,cache:r.cache,scale:f}),f.data=()=>({fields:[{formatter:f.formatter,id:()=>`qHyperCube/${r.field}`,key:()=>r.field,raw:o(n,"fields.0.raw",(()=>({})))}]}),f.formatter=()=>m.getFormatFromTicks(p).formatter,f}}};const eg={MINI_CHART:{value:"miniChart",translation:"properties.scrollbar.miniChart"},BAR:{value:"bar",translation:"properties.scrollbar.bar"},NONE:{value:"none",translation:"properties.scrollbar.none"}};var tg={OPTIONS:eg,DEFAULT:eg.MINI_CHART};function ng({layoutService:e,discrete:t}){return({h:n,rect:r,orientation:o,minThumbSize:i})=>{const a=t.query.getCurrentDataPage(),s=e.meta.size.y,l="horizontal"===o,c=r[l?"width":"height"];let u=a.qArea.qTop/s*c,d=a.qArea.qHeight/s*c;if(d<i){const e=(i-d)/2;u=u-e+(Math.max(0,0-(u-e))-Math.max(0,u+d+e-c)),d=i}return n("div",{style:{position:"absolute",right:0,bottom:0,background:"red",opacity:.2,...l?{top:0,left:u,width:d}:{top:u,left:0,height:d}}})}}function rg({layoutService:e,viewState:t,viewCache:n}){return e.meta.isContinuous?function(e,t){const n=e.get("zoom"),r=t.get("continuousMin"),o=t.get("continuousMax");return[(n.min-r)/(o-r),(n.max-r)/(o-r)]}(t,n):function(e){return e.get("viewRange")}(t)}const og=e=>({miniChart:e===tg.OPTIONS.MINI_CHART.value,bar:e===tg.OPTIONS.BAR.value,none:e===tg.OPTIONS.NONE.value});function ig({layoutService:e,override:t}){const n=(({layoutService:e})=>{const t=e.getLayoutValue("scrollbar");if(t)return og(t);const n=e.getLayoutValue("showMiniChartForContinuousAxis");if(void 0===n)return og(tg.DEFAULT.value);const r=e.getLayoutValue("dimensionAxis.continuousAuto"),o=e.getLayoutValue("preferContinuousAxis");return og(!n&&(r||!r&&o)?tg.OPTIONS.NONE.value:tg.OPTIONS.MINI_CHART.value)})({layoutService:e});return t&&t.predicate({layoutService:e,scrollbar:n})&&(n.miniChart=t.value===tg.OPTIONS.MINI_CHART.value,n.bar=t.value===tg.OPTIONS.BAR.value,n.none=t.value===tg.OPTIONS.NONE.value),n}function ag({layoutService:e,dockService:t,discrete:n,continuousDataModel:r,viewState:o,viewCache:i,themeService:a,rtl:s,scrollbarOverride:l,visualizeCache:c=!1,deviceType:u}){const d=ig({layoutService:e,override:l});if(d.none)return!1;const{orientation:p}=t.meta.major,f={key:"scrollbar",type:"scrollbar",layout:{dock:"horizontal"===p?t.meta.minor.start:t.meta.minor.end,minimumLayoutMode:"XSMALL"},show:()=>e.meta.isContinuous?r.getDimensionCardinality()>1:n.query.getCanScroll(),settings:{orientation:p,rtl:s,isContinuous:e.meta.isContinuous,range:()=>rg({layoutService:e,viewState:o,viewCache:i})}};d.bar&&(f.settings.style="slim",f.settings.size={area:"touch"===u?{max:16,min:16}:{max:8,min:8}},e.meta.isContinuous||(f.settings.size.thumb={min:4}));const m=a.getStyles();return m.color&&(f.style={standard:{thumb:{"border-color":m.color,opacity:.4},before:{background:m.color,opacity:.1},after:{background:m.color,opacity:.1}}}),e.meta.isDiscrete&&c&&(f.settings.injections=()=>[ng({layoutService:e,discrete:n})]),f}function sg({componentKey:e,chart:t,viewState:n,viewCache:r,layoutService:o,dockService:i,rtl:a}){return s=>{const{x:l,y:c}=s.center,u=t.element.getBoundingClientRect(),d=t.component(e),p="horizontal"===i.meta.major.orientation,f=p?l-u.left-d.rect.computedInner.x:c-u.top-d.rect.computedInner.y,m=p?d.rect.computedInner.width:d.rect.computedInner.height,h=p&&a?m-f:f,g=Math.max(0,Math.min(h/m,1)),[y,v]=rg({layoutService:o,viewState:n,viewCache:r}),b=g<y,x=g>v,S=!b&&!x;return{pixel:h,relative:g,thumb:S?h-y*m:0,beforeThumb:b,afterThumb:x,onThumb:S}}}function lg({componentKey:e,chart:t,viewState:n,viewCache:r,layoutService:o,dockService:i}){return()=>{const a=t.component(e),{orientation:s}=i.meta.major,{width:l,height:c}=a.rect.computedInner,u="horizontal"===s?l:c,[d,p]=rg({layoutService:o,viewState:n,viewCache:r});return{size:u,thumbSize:(p-d)*u}}}function cg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}){const c=sg({componentKey:e,chart:t,viewState:r,viewCache:o,layoutService:i,dockService:a,rtl:l}),u=lg({componentKey:e,chart:t,viewState:r,viewCache:o,layoutService:i,dockService:a});return{type:"Tap",options:{event:"scrollbarTap",enable:(r,o)=>!o||!!n.scroll.enabled()&&t.componentsFromPoint({x:o.center.x,y:o.center.y}).some((t=>t.key===e))},events:{scrollbarTap(n){n.preventDefault();const a=c(n);if(i.meta.isContinuous){const e=r.get("zoom"),t=e.max-e.min,n=o.get("continuousMin"),i=o.get("continuousMax"),s=n+(i-n)*a.relative;r.set("zoom",{min:Math.min(s-t/2,i-t),max:Math.max(s+t/2,n+t)})}else{const e=u(),t=a.pixel-e.thumbSize/2,n=Math.max(0,t/e.size);s.command.scrollTo(n)}t.component(e).emit("render")}}}}const ug="data-scrollbar-handle";function dg({e:e}){return(e.srcEvent||e).srcElement.getAttribute(ug)||""}const pg="scrollbarResize";function fg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,rtl:s}){const l=sg({componentKey:e,chart:t,viewState:r,viewCache:o,layoutService:i,dockService:a,rtl:s});return{type:"Pan",key:`event:${pg}`,options:{event:pg,threshold:0,enable(e,t){return!(!i.meta.isContinuous||!n.scroll.enabled())&&(!t||(this[pg]=this[pg]||{},(e=>{const[t]=e.changedPointers;return t&&("pointerdown"===t.type||"mousedown"===t.type)})(t)&&dg({e:t})&&(this[pg].panningEvent=t.srcEvent),!!this[pg].panningEvent))}},events:{[`${pg}start`](n){n.preventDefault(),this[pg]=this[pg]||{},this[pg].panningEvent&&t.component(e).emit("dragStart",this[pg].panningEvent)},[`${pg}move`](n){if(n.preventDefault(),this[pg]=this[pg]||{},!this[pg].panningEvent)return;const i=r.get("zoom"),a=o.get("continuousMin"),s=o.get("continuousMax"),c=o.get("minimiumZoomSpan"),u=(s-a)*l(n).relative+a,d=dg({e:this[pg].panningEvent});let p="start"===d?Math.min(u,i.max):i.min,f="end"===d?Math.max(u,i.min):i.max;p===f&&(p-="start"===d?c:0,f+="end"===d?c:0),r.set("zoom",{min:p,max:f}),t.component(e).emit("render")},[`${pg}end`](n){n.preventDefault(),this[pg]=this[pg]||{},delete this[pg].panningEvent,t.component(e).emit("dragEnd")},[`${pg}cancel`](n){n.preventDefault(),this[pg]=this[pg]||{},delete this[pg].panningEvent,t.component(e).emit("dragEnd")}}}}const mg="scrollbarPan";function hg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}){const c=sg({componentKey:e,chart:t,viewState:r,viewCache:o,layoutService:i,dockService:a,rtl:l}),u=lg({componentKey:e,chart:t,viewState:r,viewCache:o,layoutService:i,dockService:a});return{type:"Pan",key:`event:${mg}`,options:{event:mg,threshold:0,enable(r,o){return this[mg]=this[mg]||{},!(o&&!this[mg].isPanning)||!!n.scroll.enabled()&&((!o||o.target===t.element)&&t.componentsFromPoint({x:o.center.x,y:o.center.y}).some((t=>t.key===e)))}},events:{[`${mg}start`](n){n.preventDefault();const a=c(n);if(this[mg]=this[mg]||{},this[mg].isPanning=!0,t.component(e).emit("lockState"),i.meta.isContinuous){const e=r.get("zoom"),t=e.max-e.min,n=o.get("continuousMin"),i=o.get("continuousMax"),s=n+(i-n)*a.relative;s<e.min?r.set("zoom",{min:Math.min(s,i-t),max:Math.max(s+t,n+t)}):s>e.max&&r.set("zoom",{min:Math.min(s-t,i-t),max:Math.max(s,n+t)}),this[mg].relative=a.relative,this[mg].zoom=r.get("zoom"),this[mg].zoom.span=this[mg].zoom.max-this[mg].zoom.min,this[mg].zoom.fullSpan=i-n}else if(a.onThumb)this[mg].offset=a.thumb;else{const e=u();this[mg].offset=a.beforeThumb?0:e.thumbSize}},[`${mg}move`](n){n.preventDefault();const a=c(n);if(this[mg]=this[mg]||{},i.meta.isContinuous){const e=a.relative-this[mg].relative,{fullSpan:t,span:n,min:i,max:s}=this[mg].zoom,l=o.get("continuousMin"),c=o.get("continuousMax");r.set("zoom",{min:Math.min(i+e*t,c-n),max:Math.max(s+e*t,l+n)})}else{const e=a.pixel-(this[mg].offset||0),t=u(),n=Math.max(0,e/t.size);s.command.scrollTo(n)}t.component(e).emit("render")},[`${mg}end`](n){n.preventDefault(),this[mg]=this[mg]||{},this[mg].isPanning=!1,t.component(e).emit("unlockState")},[`${mg}cancel`](n){n.preventDefault(),this[mg]=this[mg]||{},this[mg].isPanning=!1,t.component(e).emit("unlockState")}}}}function gg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}){return[cg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}),fg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,rtl:l}),hg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l})]}function yg({componentKey:e,chart:t,actions:n,layoutService:r}){const o=(o,i)=>{if(!r.meta.isContinuous)return;const a=t.component(e);a&&a.emit&&n.scroll.enabled()&&a.emit(o,i)};return{type:"native",events:{mousemove:e=>o("hover",e),mouseleave:()=>o("leave")}}}function vg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}){return{gestures:[...gg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l})],native:yg({componentKey:e,chart:t,actions:n,layoutService:i})}}const bg={background:"rgba(0, 0, 0, 0.1)"},xg={top:-1,bottom:-1,width:6},Sg={width:2,background:"#595959"};var Mg={before:bg,after:bg,thumb:{background:"transparent",border:"1px solid rgba(68, 68, 68, 0.4)"},startHandle:xg,endHandle:xg,startHandleBorder:Sg,endHandleBorder:Sg};const Cg={background:"rgba(0, 0, 0, 0.1)"},wg={top:-1,bottom:-1,width:6},kg={width:2,background:"#595959"};var Tg={before:Cg,after:Cg,thumb:{background:"#B0AFAE",border:"transparent"},startHandle:wg,endHandle:wg,startHandleBorder:kg,endHandleBorder:kg};const qg={position:"absolute",top:0,right:0,bottom:0,left:0,boxSizing:"border-box"},Eg={pointerEvents:"initial"},Lg={pointerEvents:"none"};const Ng="ew-resize",Og="default";function Dg(){const{rect:e}=this,{settings:t}=this.settings,n="horizontal"===t.orientation,r=n?e.computedInner.width:e.computedInner.height,o=t.range(),i=n&&t.rtl;return{size:r,start:(i?1-o[1]:o[0])*r,end:(i?1-o[0]:o[1])*r}}function Ag(){const e=this.state.hover.start||this.state.hover.end||this.state.drag.start||this.state.drag.end;this.renderer.element().ownerDocument.body.style.cursor=e?Ng:Og}function Rg(e,t,n){const{min:r}=this.settings.settings.size.thumb;if(n-t<r){const o=(r-(n-t))/2,i=Math.max(0,0-(t-o))-Math.max(0,n+o-e);return{size:e,start:t-o+i,end:n+o+i}}return{size:e,start:t,end:n}}function Ig(e){const t=(e.srcEvent||e).srcElement;return this.renderer.element().contains(t)}function Pg(){const{size:e,start:t,end:n}=Dg.call(this);this.renderer.render(this.elements(this.h,Rg.call(this,e,t,n)))}function zg(){const{state:e,settings:t,style:n}=this,r=t.settings.style;return e.style[r]||(e.style[r]=function({id:e,style:t}){const n="slim"===e?Tg:Mg;return{container:{...qg},before:{...qg,...n.before,...t.before},after:{...qg,...n.after,...t.after},thumb:{...qg,...n.thumb,...t.thumb},startHandle:{...qg,...Eg,...n.startHandle},endHandle:{...qg,...Eg,...n.endHandle},startHandleBorder:{...qg,...Lg,...n.startHandleBorder},endHandleBorder:{...qg,...Lg,...n.endHandleBorder}}}({id:t.settings.style,style:n[r]})),e.style[r]}var jg={require:["renderer"],defaultSettings:{settings:{style:"standard",size:{area:{min:30,max:40,ratio:1/8},thumb:{min:4}},orientation:"horizontal",rtl:!1,isContinuous:!1,range:()=>[0,1],injections:()=>[]},style:{standard:{before:{},thumb:{},after:{}},slim:{before:{},thumb:{},after:{}}}},renderer:"dom",on:{render(){Pg.call(this)},lockState(){this.state.locked=!0},unlockState(){this.state.locked=!1},hover(e){if(this.state.locked||this.state.drag.start||this.state.drag.end||!Ig.call(this,e)&&this.state.hover.isPristine())return;this.state.hover.reset();const t=dg({e:e});t&&(this.state.hover[t]=!0),Ag.call(this),Pg.call(this)},leave(){this.state.locked||(this.state.hover.reset(),Ag.call(this),Pg.call(this))},dragStart(e){if(this.state.locked)return;this.state.drag.reset();const t=dg({e:e});t&&(this.state.drag[t]=!0),Ag.call(this)},dragEnd(){this.state.locked||(this.state.drag.reset(),Ag.call(this),Pg.call(this))}},preferredSize({outer:e}){const{min:t,max:n,ratio:r}=this.settings.settings.size.area,o="horizontal"===this.settings.settings.orientation?"height":"width";return Math.max(t,Math.min(n,e[o]*r))},created(){this.state={style:{},locked:!1,hover:{start:!1,end:!1,reset(){this.start=!1,this.end=!1},isPristine(){return!this.start&&!this.end}},drag:{start:!1,end:!1,reset(){this.start=!1,this.end=!1}}}},render(e){this.h=e;const{size:t,start:n,end:r}=Dg.call(this);return this.elements(e,Rg.call(this,t,n,r))},properties(){return"horizontal"===this.settings.settings.orientation?{start:"left",end:"right"}:{start:"top",end:"bottom"}},elements(e,{size:t,start:n,end:r}){const{settings:o}=this.settings,i=o.injections().map((t=>t({h:e,rect:this.rect,orientation:o.orientation,minThumbSize:o.size.thumb.min})));return function({h:e,size:t,start:n,end:r,properties:o,startHandleActive:i,endHandleActive:a,style:s,continuous:l,invert:c,injections:u}){const d={[o.end]:t-n},p={[o.start]:r},f={left:-3},m={left:1},h={right:-3,left:"auto"},g={left:3},y=e("div",{style:{...s.before,...c?p:d},class:"scrollbar--before"}),v=e("div",{style:{...s.after,...c?d:p},class:"scrollbar--after"}),b=[];if(l){const t=e("div",{style:{...s.startHandle,...c?h:f},class:"scrollbar--start-handle",[ug]:"start"},i?e("div",{style:{...s.startHandleBorder,...c?g:m}}):void 0);b.push(t);const n=e("div",{style:{...s.endHandle,...c?f:h},class:"scrollbar--end-handle",[ug]:"end"},a?e("div",{style:{...s.endHandleBorder,...c?m:g}}):void 0);b.push(n)}const x=e("div",{style:{...s.thumb,[o.start]:n,[o.end]:t-r},class:"scrollbar--thumb"},b);return e("div",{style:{...s.container}},[y,x,v,...u])}({h:e,size:t,start:n,end:r,properties:this.properties(),startHandleActive:this.state.hover.start||this.state.drag.start,endHandleActive:this.state.hover.end||this.state.drag.end,style:zg.call(this),continuous:o.isContinuous,invert:"horizontal"===o.orientation&&o.rtl,injections:i})}};const Fg={black:"#000",white:"#fff"},Bg="#e57373",_g="#ef5350",Hg="#f44336",$g="#d32f2f",Vg="#c62828",Wg="#f3e5f5",Ug="#ce93d8",Kg="#ba68c8",Gg="#ab47bc",Yg="#9c27b0",Xg="#7b1fa2",Jg="#e3f2fd",Zg="#90caf9",Qg="#42a5f5",ey="#1976d2",ty="#1565c0",ny="#4fc3f7",ry="#29b6f6",oy="#03a9f4",iy="#0288d1",ay="#01579b",sy="#81c784",ly="#66bb6a",cy="#4caf50",uy="#388e3c",dy="#2e7d32",py="#1b5e20",fy="#ffb74d",my="#ffa726",hy="#ff9800",gy="#f57c00",yy="#e65100",vy={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 by(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 xy=Object.freeze({__proto__:null,default:by}),Sy="$$material";var My=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}(),Cy="-ms-",wy="-moz-",ky="-webkit-",Ty="comm",qy="rule",Ey="decl",Ly="@keyframes",Ny=Math.abs,Oy=String.fromCharCode,Dy=Object.assign;function Ay(e){return e.trim()}function Ry(e,t,n){return e.replace(t,n)}function Iy(e,t){return e.indexOf(t)}function Py(e,t){return 0|e.charCodeAt(t)}function zy(e,t,n){return e.slice(t,n)}function jy(e){return e.length}function Fy(e){return e.length}function By(e,t){return t.push(e),e}var _y=1,Hy=1,$y=0,Vy=0,Wy=0,Uy="";function Ky(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:_y,column:Hy,length:a,return:""}}function Gy(e,t){return Dy(Ky("",null,null,"",null,null,0),e,{length:-e.length},t)}function Yy(){return Wy=Vy>0?Py(Uy,--Vy):0,Hy--,10===Wy&&(Hy=1,_y--),Wy}function Xy(){return Wy=Vy<$y?Py(Uy,Vy++):0,Hy++,10===Wy&&(Hy=1,_y++),Wy}function Jy(){return Py(Uy,Vy)}function Zy(){return Vy}function Qy(e,t){return zy(Uy,e,t)}function ev(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 tv(e){return _y=Hy=1,$y=jy(Uy=e),Vy=0,[]}function nv(e){return Uy="",e}function rv(e){return Ay(Qy(Vy-1,av(91===e?e+2:40===e?e+1:e)))}function ov(e){for(;(Wy=Jy())&&Wy<33;)Xy();return ev(e)>2||ev(Wy)>3?"":" "}function iv(e,t){for(;--t&&Xy()&&!(Wy<48||Wy>102||Wy>57&&Wy<65||Wy>70&&Wy<97););return Qy(e,Zy()+(t<6&&32==Jy()&&32==Xy()))}function av(e){for(;Xy();)switch(Wy){case e:return Vy;case 34:case 39:34!==e&&39!==e&&av(Wy);break;case 40:41===e&&av(e);break;case 92:Xy()}return Vy}function sv(e,t){for(;Xy()&&e+Wy!==57&&(e+Wy!==84||47!==Jy()););return"/*"+Qy(t,Vy-1)+"*"+Oy(47===e?e:Xy())}function lv(e){for(;!ev(Jy());)Xy();return Qy(e,Vy)}function cv(e){return nv(uv("",null,null,null,[""],e=tv(e),0,[0],e))}function uv(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,m=0,h=1,g=1,y=1,v=0,b="",x=o,S=i,M=r,C=b;g;)switch(m=v,v=Xy()){case 40:if(108!=m&&58==Py(C,d-1)){-1!=Iy(C+=Ry(rv(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:C+=rv(v);break;case 9:case 10:case 13:case 32:C+=ov(m);break;case 92:C+=iv(Zy()-1,7);continue;case 47:switch(Jy()){case 42:case 47:By(pv(sv(Xy(),Zy()),t,n),l);break;default:C+="/"}break;case 123*h:s[c++]=jy(C)*y;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==y&&(C=Ry(C,/\f/g,"")),f>0&&jy(C)-d&&By(f>32?fv(C+";",r,n,d-1):fv(Ry(C," ","")+";",r,n,d-2),l);break;case 59:C+=";";default:if(By(M=dv(C,t,n,c,u,o,s,b,x=[],S=[],d),i),123===v)if(0===u)uv(C,t,M,M,x,i,d,s,S);else switch(99===p&&110===Py(C,3)?100:p){case 100:case 108:case 109:case 115:uv(e,M,M,r&&By(dv(e,M,M,0,0,o,s,b,o,x=[],d),S),o,S,d,s,r?x:S);break;default:uv(C,M,M,M,[""],S,0,s,S)}}c=u=f=0,h=y=1,b=C="",d=a;break;case 58:d=1+jy(C),f=m;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==Yy())continue;switch(C+=Oy(v),v*h){case 38:y=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(jy(C)-1)*y,y=1;break;case 64:45===Jy()&&(C+=rv(Xy())),p=Jy(),u=d=jy(b=C+=lv(Zy())),v++;break;case 45:45===m&&2==jy(C)&&(h=0)}}return i}function dv(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,p=0===o?i:[""],f=Fy(p),m=0,h=0,g=0;m<r;++m)for(var y=0,v=zy(e,d+1,d=Ny(h=a[m])),b=e;y<f;++y)(b=Ay(h>0?p[y]+" "+v:Ry(v,/&\f/g,p[y])))&&(l[g++]=b);return Ky(e,t,n,0===o?qy:s,l,c,u)}function pv(e,t,n){return Ky(e,t,n,Ty,Oy(Wy),zy(e,2,-2),0)}function fv(e,t,n,r){return Ky(e,t,n,Ey,zy(e,0,r),zy(e,r+1,-1),r)}function mv(e,t){for(var n="",r=Fy(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function hv(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Ey:return e.return=e.return||e.value;case Ty:return"";case Ly:return e.return=e.value+"{"+mv(e.children,r)+"}";case qy:e.value=e.props.join(",")}return jy(n=mv(e.children,r))?e.return=e.value+"{"+n+"}":""}function gv(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var yv=function(e,t,n){for(var r=0,o=0;r=o,o=Jy(),38===r&&12===o&&(t[n]=1),!ev(o);)Xy();return Qy(e,Vy)},vv=function(e,t){return nv(function(e,t){var n=-1,r=44;do{switch(ev(r)){case 0:38===r&&12===Jy()&&(t[n]=1),e[n]+=yv(Vy-1,t,n);break;case 2:e[n]+=rv(r);break;case 4:if(44===r){e[++n]=58===Jy()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Oy(r)}}while(r=Xy());return e}(tv(e),t))},bv=new WeakMap,xv=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)||bv.get(n))&&!r){bv.set(e,!0);for(var o=[],i=vv(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]}}},Sv=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Mv(e,t){switch(function(e,t){return 45^Py(e,0)?(((t<<2^Py(e,0))<<2^Py(e,1))<<2^Py(e,2))<<2^Py(e,3):0}(e,t)){case 5103:return ky+"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 ky+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ky+e+wy+e+Cy+e+e;case 6828:case 4268:return ky+e+Cy+e+e;case 6165:return ky+e+Cy+"flex-"+e+e;case 5187:return ky+e+Ry(e,/(\w+).+(:[^]+)/,ky+"box-$1$2"+Cy+"flex-$1$2")+e;case 5443:return ky+e+Cy+"flex-item-"+Ry(e,/flex-|-self/,"")+e;case 4675:return ky+e+Cy+"flex-line-pack"+Ry(e,/align-content|flex-|-self/,"")+e;case 5548:return ky+e+Cy+Ry(e,"shrink","negative")+e;case 5292:return ky+e+Cy+Ry(e,"basis","preferred-size")+e;case 6060:return ky+"box-"+Ry(e,"-grow","")+ky+e+Cy+Ry(e,"grow","positive")+e;case 4554:return ky+Ry(e,/([^-])(transform)/g,"$1"+ky+"$2")+e;case 6187:return Ry(Ry(Ry(e,/(zoom-|grab)/,ky+"$1"),/(image-set)/,ky+"$1"),e,"")+e;case 5495:case 3959:return Ry(e,/(image-set\([^]*)/,ky+"$1$`$1");case 4968:return Ry(Ry(e,/(.+:)(flex-)?(.*)/,ky+"box-pack:$3"+Cy+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ky+e+e;case 4095:case 3583:case 4068:case 2532:return Ry(e,/(.+)-inline(.+)/,ky+"$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(jy(e)-1-t>6)switch(Py(e,t+1)){case 109:if(45!==Py(e,t+4))break;case 102:return Ry(e,/(.+:)(.+)-([^]+)/,"$1"+ky+"$2-$3$1"+wy+(108==Py(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Iy(e,"stretch")?Mv(Ry(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Py(e,t+1))break;case 6444:switch(Py(e,jy(e)-3-(~Iy(e,"!important")&&10))){case 107:return Ry(e,":",":"+ky)+e;case 101:return Ry(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ky+(45===Py(e,14)?"inline-":"")+"box$3$1"+ky+"$2$3$1"+Cy+"$2box$3")+e}break;case 5936:switch(Py(e,t+11)){case 114:return ky+e+Cy+Ry(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ky+e+Cy+Ry(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ky+e+Cy+Ry(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ky+e+Cy+e+e}return e}var Cv=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Ey:e.return=Mv(e.value,e.length);break;case Ly:return mv([Gy(e,{value:Ry(e.value,"@","@"+ky)})],r);case qy: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 mv([Gy(e,{props:[Ry(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return mv([Gy(e,{props:[Ry(t,/:(plac\w+)/,":"+ky+"input-$1")]}),Gy(e,{props:[Ry(t,/:(plac\w+)/,":-moz-$1")]}),Gy(e,{props:[Ry(t,/:(plac\w+)/,Cy+"input-$1")]})],r)}return""}))}}],wv=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,i=e.stylisPlugins||Cv,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var l,c,u=[hv,(c=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],d=function(e){var t=Fy(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}([xv,Sv].concat(i,u));o=function(e,t,n,r){l=n,function(e){mv(cv(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new My({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return p.sheet.hydrate(s),p};function kv(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var Tv=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},qv=function(e,t,n){Tv(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};var Ev={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},Lv=/[A-Z]|^ms/g,Nv=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ov=function(e){return 45===e.charCodeAt(1)},Dv=function(e){return null!=e&&"boolean"!=typeof e},Av=gv((function(e){return Ov(e)?e:e.replace(Lv,"-$&").toLowerCase()})),Rv=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Nv,(function(e,t,n){return Pv={name:t,styles:n,next:Pv},t}))}return 1===Ev[e]||Ov(e)||"number"!=typeof t||0===t?t:t+"px"};function Iv(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 Pv={name:o.name,styles:o.styles,next:Pv},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)Pv={name:a.name,styles:a.styles,next:Pv},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+=Iv(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]+"}":Dv(s)&&(r+=Av(i)+":"+Rv(i,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=Iv(e,t,a);switch(i){case"animation":case"animationName":r+=Av(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var c=0;c<a.length;c++)Dv(a[c])&&(r+=Av(i)+":"+Rv(i,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=Pv,l=n(e);return Pv=s,Iv(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var Pv,zv=/label:\s*([^\s;{]+)\s*(;|$)/g;function jv(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="";Pv=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=Iv(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=Iv(n,t,e[a]),r)o+=i[a]}zv.lastIndex=0;for(var s,l="";null!==(s=zv.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:Pv}}var Fv,Bv,_v=!!x.useInsertionEffect&&x.useInsertionEffect,Hv=_v||function(e){return e()},$v=_v||x.useLayoutEffect,Vv=x.createContext("undefined"!=typeof HTMLElement?wv({key:"css"}):null),Wv=Vv.Provider,Uv=function(e){return w((function(t,n){var r=k(Vv);return e(t,r,n)}))},Kv=x.createContext({}),Gv={}.hasOwnProperty,Yv="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Xv=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Tv(t,n,r),Hv((function(){return qv(t,n,r)})),null},Jv=Uv((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[Yv],i=[r],a="";"string"==typeof e.className?a=kv(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=jv(i,void 0,x.useContext(Kv));a+=t.key+"-"+s.name;var l={};for(var c in e)Gv.call(e,c)&&"css"!==c&&c!==Yv&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),x.createElement(x.Fragment,null,x.createElement(Xv,{cache:t,serialized:s,isStringTag:"string"==typeof o}),x.createElement(o,l))})),Zv=Jv,Qv=function(e,t){var n=arguments;if(null==t||!Gv.call(t,"css"))return x.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=Zv,o[1]=function(e,t){var n={};for(var r in t)Gv.call(t,r)&&(n[r]=t[r]);return n[Yv]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return x.createElement.apply(null,o)};Fv=Qv||(Qv={}),Bv||(Bv=Fv.JSX||(Fv.JSX={}));var eb=Uv((function(e,t){var n=jv([e.styles],void 0,x.useContext(Kv)),r=x.useRef();return $v((function(){var e=t.key+"-global",o=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==a&&(i=!0,a.setAttribute("data-emotion",e),o.hydrate([a])),r.current=[o,i],function(){o.flush()}}),[t]),$v((function(){var e=r.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&qv(t,n.next,!0),o.tags.length){var i=o.tags[o.tags.length-1].nextElementSibling;o.before=i,o.flush()}t.insert("",n,o,!1)}}),[t,n.name]),null}));function tb(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return jv(t)}function nb(){var e=tb.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var rb=/^((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)-.*))$/,ob=gv((function(e){return rb.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),ib=function(e){return"theme"!==e},ab=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?ob:ib},sb=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},lb=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Tv(t,n,r),Hv((function(){return qv(t,n,r)})),null},cb=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=sb(t,n,i),l=s||ab(a),c=!l("as");return function(){var u=arguments,d=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{var p=u[0];d.push(p[0]);for(var f=u.length,m=1;m<f;m++)d.push(u[m],p[m])}var h=Uv((function(e,t,n){var r=c&&e.as||a,i="",u=[],p=e;if(null==e.theme){for(var f in p={},e)p[f]=e[f];p.theme=x.useContext(Kv)}"string"==typeof e.className?i=kv(t.registered,u,e.className):null!=e.className&&(i=e.className+" ");var m=jv(d.concat(u),t.registered,p);i+=t.key+"-"+m.name,void 0!==o&&(i+=" "+o);var h=c&&void 0===s?ab(r):l,g={};for(var y in e)c&&"as"===y||h(y)&&(g[y]=e[y]);return g.className=i,n&&(g.ref=n),x.createElement(x.Fragment,null,x.createElement(lb,{cache:t,serialized:m,isStringTag:"string"==typeof r}),x.createElement(r,g))}));return h.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=a,h.__emotion_styles=d,h.__emotion_forwardProp=s,Object.defineProperty(h,"toString",{value:function(){return"."+o}}),h.withComponent=function(t,r){return e(t,Hs({},n,r,{shouldForwardProp:sb(h,r,!0)})).apply(void 0,d)},h}}.bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){cb[e]=cb(e)}));var ub={exports:{}},db={},pb=b,fb=Symbol.for("react.element"),mb=Symbol.for("react.fragment"),hb=Object.prototype.hasOwnProperty,gb=pb.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,yb={key:!0,ref:!0,__self:!0,__source:!0};function vb(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)hb.call(t,r)&&!yb.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:fb,type:e,key:i,ref:a,props:o,_owner:gb.current}}db.Fragment=mb,db.jsx=vb,db.jsxs=vb,ub.exports=db;var bb=ub.exports;let xb;"object"==typeof document&&(xb=wv({key:"css",prepend:!0}));var Sb=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 bb.jsx(eb,{styles:r})}
14
+ */Yc();var Zc=Date.now(),Qc="fnValues"+Zc,eu="fnStyle"+ ++Zc,tu=function(){return{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var r=$l(e,{},n);return r[eu]=t,r},onProcessStyle:function(e,t){if(Qc in t||eu 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[Qc]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[eu];i&&(o.style=i(e)||{});var a=o[Qc];if(a)for(var s in a)o.prop(s,a[s](e),r)}}},nu="@global",ru="@global ",ou=function(){function e(e,t,n){for(var r in this.type="global",this.at=nu,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new Tc(Us({},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}(),iu=function(){function e(e,t,n){this.type="global",this.at=nu,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(ru.length);this.rule=n.jss.createRule(r,t,Us({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),au=/\s*,\s*/g;function su(e,t){for(var n=e.split(au),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}function lu(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===nu)return new ou(e,t,n);if("@"===e[0]&&e.substr(0,ru.length)===ru)return new iu(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[nu]:null;if(o){for(var i in o)t.addRule(i,o[i],Us({},n,{selector:su(i,e.selector)}));delete r[nu]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,nu.length)===nu){var i=su(o.substr(nu.length),e.selector);t.addRule(i,r[o],Us({},n,{selector:i})),delete r[o]}}(e,t))}}}var cu=/\s*,\s*/g,uu=/&/g,du=/\$([\w-]+)/g;function pu(){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(cu),r=e.split(cu),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(uu,a):a+" "+l}return o}function n(e,t,n){if(n)return Us({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=Us({},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(du,s);var m=l.key+"-"+u;"replaceRule"in c?c.replaceRule(m,r[u],Us({},a,{selector:f})):c.addRule(m,r[u],Us({},a,{selector:f}))}else p&&c.addRule(u,{},a).addRule(l.key,r[u],{selector:l.selector});delete r[u]}}return r}}}var fu=/[A-Z]/g,mu=/^ms-/,hu={};function gu(e){return"-"+e.toLowerCase()}function yu(e){if(hu.hasOwnProperty(e))return hu[e];var t=e.replace(fu,gu);return hu[e]=mu.test(t)?"-"+t:t}function vu(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:yu(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(vu):t.fallbacks=vu(e.fallbacks)),t}var bu=Xc&&CSS?CSS.px:"px",xu=Xc&&CSS?CSS.ms:"ms",Su=Xc&&CSS?CSS.percent:"%";function Mu(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 Cu=Mu({"animation-delay":xu,"animation-duration":xu,"background-position":bu,"background-position-x":bu,"background-position-y":bu,"background-size":bu,border:bu,"border-bottom":bu,"border-bottom-left-radius":bu,"border-bottom-right-radius":bu,"border-bottom-width":bu,"border-left":bu,"border-left-width":bu,"border-radius":bu,"border-right":bu,"border-right-width":bu,"border-top":bu,"border-top-left-radius":bu,"border-top-right-radius":bu,"border-top-width":bu,"border-width":bu,"border-block":bu,"border-block-end":bu,"border-block-end-width":bu,"border-block-start":bu,"border-block-start-width":bu,"border-block-width":bu,"border-inline":bu,"border-inline-end":bu,"border-inline-end-width":bu,"border-inline-start":bu,"border-inline-start-width":bu,"border-inline-width":bu,"border-start-start-radius":bu,"border-start-end-radius":bu,"border-end-start-radius":bu,"border-end-end-radius":bu,margin:bu,"margin-bottom":bu,"margin-left":bu,"margin-right":bu,"margin-top":bu,"margin-block":bu,"margin-block-end":bu,"margin-block-start":bu,"margin-inline":bu,"margin-inline-end":bu,"margin-inline-start":bu,padding:bu,"padding-bottom":bu,"padding-left":bu,"padding-right":bu,"padding-top":bu,"padding-block":bu,"padding-block-end":bu,"padding-block-start":bu,"padding-inline":bu,"padding-inline-end":bu,"padding-inline-start":bu,"mask-position-x":bu,"mask-position-y":bu,"mask-size":bu,height:bu,width:bu,"min-height":bu,"max-height":bu,"min-width":bu,"max-width":bu,bottom:bu,left:bu,top:bu,right:bu,inset:bu,"inset-block":bu,"inset-block-end":bu,"inset-block-start":bu,"inset-inline":bu,"inset-inline-end":bu,"inset-inline-start":bu,"box-shadow":bu,"text-shadow":bu,"column-gap":bu,"column-rule":bu,"column-rule-width":bu,"column-width":bu,"font-size":bu,"font-size-delta":bu,"letter-spacing":bu,"text-decoration-thickness":bu,"text-indent":bu,"text-stroke":bu,"text-stroke-width":bu,"word-spacing":bu,motion:bu,"motion-offset":bu,outline:bu,"outline-offset":bu,"outline-width":bu,perspective:bu,"perspective-origin-x":Su,"perspective-origin-y":Su,"transform-origin":Su,"transform-origin-x":Su,"transform-origin-y":Su,"transform-origin-z":Su,"transition-delay":xu,"transition-duration":xu,"vertical-align":bu,"flex-basis":bu,"shape-margin":bu,size:bu,gap:bu,grid:bu,"grid-gap":bu,"row-gap":bu,"grid-row-gap":bu,"grid-column-gap":bu,"grid-template-rows":bu,"grid-template-columns":bu,"grid-auto-rows":bu,"grid-auto-columns":bu,"box-shadow-x":bu,"box-shadow-y":bu,"box-shadow-blur":bu,"box-shadow-spread":bu,"font-line-height":bu,"text-shadow-x":bu,"text-shadow-y":bu,"text-shadow-blur":bu});function wu(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=wu(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=wu(o,t[o],n);else for(var i in t)t[i]=wu(e+"-"+i,t[i],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||Cu[e];return!a||0===t&&a===bu?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function ku(e){void 0===e&&(e={});var t=Mu(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=wu(r,e[r],t);return e},onChangeValue:function(e,n){return wu(n,e,t)}}}var Eu="",Tu="",qu="",Lu="",Nu=Il&&"ontouchstart"in document.documentElement;if(Il){var Ou={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Du=document.createElement("p").style;for(var Au in Ou)if(Au+"Transform"in Du){Eu=Au,Tu=Ou[Au];break}"Webkit"===Eu&&"msHyphens"in Du&&(Eu="ms",Tu=Ou.ms,Lu="edge"),"Webkit"===Eu&&"-apple-trailing-word"in Du&&(qu="apple")}var Ru={js:Eu,css:Tu,vendor:qu,browser:Lu,isTouch:Nu};var Pu={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===Ru.js?"-webkit-"+e:Ru.css+e)}},Iu={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===Ru.js?Ru.css+"print-"+e:e)}},zu=/[-\s]+(.)?/g;function ju(e,t){return t?t.toUpperCase():""}function Fu(e){return e.replace(zu,ju)}function Bu(e){return Fu("-"+e)}var _u,Hu={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===Ru.js){var n="mask-image";if(Fu(n)in t)return e;if(Ru.js+Bu(n)in t)return Ru.css+e}return e}},$u={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==Ru.vendor||Ru.isTouch?e:Ru.css+e)}},Vu={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:Ru.css+e)}},Wu={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:Ru.css+e)}},Uu={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===Ru.js||"ms"===Ru.js&&"edge"!==Ru.browser?Ru.css+e:e)}},Ku={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===Ru.js||"ms"===Ru.js||"apple"===Ru.vendor?Ru.css+e:e)}},Gu={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===Ru.js?"WebkitColumn"+Bu(e)in t&&Ru.css+"column-"+e:"Moz"===Ru.js&&("page"+Bu(e)in t&&"page-"+e))}},Yu={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===Ru.js)return e;var n=e.replace("-inline","");return Ru.js+Bu(n)in t&&Ru.css+n}},Xu={supportedProperty:function(e,t){return Fu(e)in t&&e}},Ju={supportedProperty:function(e,t){var n=Bu(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:Ru.js+n in t?Ru.css+e:"Webkit"!==Ru.js&&"Webkit"+n in t&&"-webkit-"+e}},Zu={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===Ru.js?""+Ru.css+e:e)}},Qu={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===Ru.js?Ru.css+"scroll-chaining":e)}},ed={"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"},td={supportedProperty:function(e,t){var n=ed[e];return!!n&&(Ru.js+Bu(n)in t&&Ru.css+n)}},nd={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"},rd=Object.keys(nd),od=function(e){return Ru.css+e},id={supportedProperty:function(e,t,n){var r=n.multiple;if(rd.indexOf(e)>-1){var o=nd[e];if(!Array.isArray(o))return Ru.js+Bu(o)in t&&Ru.css+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(Ru.js+Bu(o[0])in t))return!1;return o.map(od)}return!1}},ad=[Pu,Iu,Hu,$u,Vu,Wu,Uu,Ku,Gu,Yu,Xu,Ju,Zu,Qu,td,id],sd=ad.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),ld=ad.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,Ml(t.noPrefill)),e}),[]),cd={};if(Il){_u=document.createElement("p");var ud=window.getComputedStyle(document.documentElement,"");for(var dd in ud)isNaN(dd)||(cd[ud[dd]]=ud[dd]);ld.forEach((function(e){return delete cd[e]}))}function pd(e,t){if(void 0===t&&(t={}),!_u)return e;if(null!=cd[e])return cd[e];"transition"!==e&&"transform"!==e||(t[e]=e in _u.style);for(var n=0;n<sd.length&&(cd[e]=sd[n](e,_u.style,t),!cd[e]);n++);try{_u.style[e]=""}catch(e){return!1}return cd[e]}var fd,md={},hd={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},gd=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function yd(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?pd(t):", "+pd(n);return r||(t||n)}function vd(e,t){var n=t;if(!fd||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=md[r])return md[r];try{fd.style[e]=n}catch(e){return md[r]=!1,!1}if(hd[e])n=n.replace(gd,yd);else if(""===fd.style[e]&&("-ms-flex"===(n=Ru.css+n)&&(fd.style[e]="-ms-flexbox"),fd.style[e]=n,""===fd.style[e]))return md[r]=!1,!1;return fd.style[e]="",md[r]=n,md[r]}function bd(){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=pd(n);i&&i!==n&&(o=!0);var a=!1,s=vd(i,Wl(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"===Ru.js?e:"@"+Ru.css+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return vd(t,Wl(e))||e}}}function xd(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)r[o[i]]=t[o[i]];return r}}}function Sd(){return{plugins:[tu(),lu(),pu(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=vu(e[t]);return e}return vu(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=yu(t);return t===r?e:(n.prop(r,e),null)}},ku(),"undefined"==typeof window?null:bd(),xd()]}}function Md(){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=Us({},t);return Object.keys(n).forEach((function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))})),r}Il&&(fd=document.createElement("p"));var Cd=function(e,t,n,r){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},wd=function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},kd=function(e,t,n){e.get(t).delete(n)},Ed=x.createContext(null);function Td(){return x.useContext(Ed)}var qd,Ld=Yc(Sd()),Nd={disableGeneration:!1,generateClassName:Al(),jss:Ld,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},Od=x.createContext(Nd);function Dd(e){var t=e.children,n=e.injectFirst,r=void 0!==n&&n,o=e.disableGeneration,i=void 0!==o&&o,a=il(e,["children","injectFirst","disableGeneration"]),s=Us({},x.useContext(Od),{disableGeneration:i},a);if(!s.jss.options.insertionPoint&&r&&"undefined"!=typeof window){if(!qd){var l=document.head;qd=document.createComment("mui-inject-first"),l.insertBefore(qd,l.firstChild)}s.jss=Yc({plugins:Sd().plugins,insertionPoint:qd})}return x.createElement(Od.Provider,{value:s},t)}var Ad=-1e9;var Rd={};function Pd(e,t){var n=e.state,r=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=wd(o.sheetsManager,i,r);s||(s={refs:0,staticSheet:null,dynamicStyles:null},Cd(o.sheetsManager,i,r,s));var l=Us({},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=wd(o.sheetsCache,i,r));var d=i.create(r,a);u||((u=o.jss.createStyleSheet(d,Us({link:!1},l))).attach(),o.sheetsCache&&Cd(o.sheetsCache,i,r,u)),c&&c.add(u),s.staticSheet=u,s.dynamicStyles=Jc(d)}if(s.dynamicStyles){var p=o.jss.createStyleSheet(s.dynamicStyles,Us({link:!0},l));p.update(t),p.attach(),n.dynamicSheet=p,n.classes=Md({baseClasses:s.staticSheet.classes,newClasses:p.classes}),c&&c.add(p)}else n.classes=s.staticSheet.classes;s.refs+=1}}function Id(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?Rd:i,s=il(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=Us({},o);return Object.keys(i).forEach((function(e){a[e]=Ys(a[e],i[e])})),a},options:{}}}(e),c=n||r||"makeStyles";l.options={index:Ad+=1,name:n,meta:c,classNamePrefix:c};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Td()||a,r=Us({},x.useContext(Od),s),i=x.useRef(),c=x.useRef();!function(e,t){var n,r=x.useRef([]),o=x.useMemo((function(){return{}}),t);r.current!==o&&(r.current=o,n=e()),x.useEffect((function(){return function(){n&&n()}}),[o])}((function(){var o={name:n,state:{},stylesCreator:l,stylesOptions:r,theme:t};return Pd(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=wd(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&(kd(r.sheetsManager,o,n),r.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(o)}}),[t,l]),x.useEffect((function(){c.current&&function(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}(i.current,e),c.current=!0}));var u=function(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,o=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,o=!0),o&&(r.cacheClasses.value=Md({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(i.current,e.classes,o);return u}}function zd(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=zd(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function jd(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=zd(e))&&(r&&(r+=" "),r+=t);return r}var Fd={exports:{}},Bd={},_d="function"==typeof Symbol&&Symbol.for,Hd=_d?Symbol.for("react.element"):60103,$d=_d?Symbol.for("react.portal"):60106,Vd=_d?Symbol.for("react.fragment"):60107,Wd=_d?Symbol.for("react.strict_mode"):60108,Ud=_d?Symbol.for("react.profiler"):60114,Kd=_d?Symbol.for("react.provider"):60109,Gd=_d?Symbol.for("react.context"):60110,Yd=_d?Symbol.for("react.async_mode"):60111,Xd=_d?Symbol.for("react.concurrent_mode"):60111,Jd=_d?Symbol.for("react.forward_ref"):60112,Zd=_d?Symbol.for("react.suspense"):60113,Qd=_d?Symbol.for("react.suspense_list"):60120,ep=_d?Symbol.for("react.memo"):60115,tp=_d?Symbol.for("react.lazy"):60116,np=_d?Symbol.for("react.block"):60121,rp=_d?Symbol.for("react.fundamental"):60117,op=_d?Symbol.for("react.responder"):60118,ip=_d?Symbol.for("react.scope"):60119;function ap(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Hd:switch(e=e.type){case Yd:case Xd:case Vd:case Ud:case Wd:case Zd:return e;default:switch(e=e&&e.$$typeof){case Gd:case Jd:case tp:case ep:case Kd:return e;default:return t}}case $d:return t}}}function sp(e){return ap(e)===Xd}Bd.AsyncMode=Yd,Bd.ConcurrentMode=Xd,Bd.ContextConsumer=Gd,Bd.ContextProvider=Kd,Bd.Element=Hd,Bd.ForwardRef=Jd,Bd.Fragment=Vd,Bd.Lazy=tp,Bd.Memo=ep,Bd.Portal=$d,Bd.Profiler=Ud,Bd.StrictMode=Wd,Bd.Suspense=Zd,Bd.isAsyncMode=function(e){return sp(e)||ap(e)===Yd},Bd.isConcurrentMode=sp,Bd.isContextConsumer=function(e){return ap(e)===Gd},Bd.isContextProvider=function(e){return ap(e)===Kd},Bd.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Hd},Bd.isForwardRef=function(e){return ap(e)===Jd},Bd.isFragment=function(e){return ap(e)===Vd},Bd.isLazy=function(e){return ap(e)===tp},Bd.isMemo=function(e){return ap(e)===ep},Bd.isPortal=function(e){return ap(e)===$d},Bd.isProfiler=function(e){return ap(e)===Ud},Bd.isStrictMode=function(e){return ap(e)===Wd},Bd.isSuspense=function(e){return ap(e)===Zd},Bd.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Vd||e===Xd||e===Ud||e===Wd||e===Zd||e===Qd||"object"==typeof e&&null!==e&&(e.$$typeof===tp||e.$$typeof===ep||e.$$typeof===Kd||e.$$typeof===Gd||e.$$typeof===Jd||e.$$typeof===rp||e.$$typeof===op||e.$$typeof===ip||e.$$typeof===np)},Bd.typeOf=ap,Fd.exports=Bd;var lp=Fd.exports,cp={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},up={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},dp={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},pp={};function fp(e){return lp.isMemo(e)?dp:pp[e.$$typeof]||cp}pp[lp.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},pp[lp.Memo]=dp;var mp=Object.defineProperty,hp=Object.getOwnPropertyNames,gp=Object.getOwnPropertySymbols,yp=Object.getOwnPropertyDescriptor,vp=Object.getPrototypeOf,bp=Object.prototype;var xp=function e(t,n,r){if("string"!=typeof n){if(bp){var o=vp(n);o&&o!==bp&&e(t,o,r)}var i=hp(n);gp&&(i=i.concat(gp(n)));for(var a=fp(t),s=fp(n),l=0;l<i.length;++l){var c=i[l];if(!(up[c]||r&&r[c]||s&&s[c]||a&&a[c])){var u=yp(n,c);try{mp(t,c,u)}catch(e){}}}}return t},Sp=oe(xp);function Mp(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.name,i=il(r,["name"]),a=o,s="function"==typeof t?function(e){return{root:function(n){return t(Us({theme:e},n))}}}:{root:t},l=Id(s,Us({Component:e,name:o||e.displayName,classNamePrefix:a},i));t.filterProps&&(n=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var c=x.forwardRef((function(t,r){var o,i,a,s=t.children,c=t.className,u=t.clone,d=t.component,p=il(t,["children","className","clone","component"]),f=jd(l(t).root,c),m=p;if(n&&(o=m,i=n,a={},Object.keys(o).forEach((function(e){-1===i.indexOf(e)&&(a[e]=o[e])})),m=a),u)return x.cloneElement(s,Us({className:jd(s.props.className,f)},m));if("function"==typeof s)return s(Us({className:f},m));var h=d||e;return x.createElement(h,Us({ref:r,className:f},m),s)}));return Sp(c,e),c}}function Cp(e){var t=e.children,n=e.theme,r=Td(),o=x.useMemo((function(){var e=null===r?n:function(e,t){return"function"==typeof t?t(e):Us({},e,t)}(r,n);return null!=e&&(e[Ol]=null!==r),e}),[n,r]);return x.createElement(Ed.Provider,{value:o},t)}var wp=Nl(),kp=function(e){var t=Mp(e);return function(e,n){return t(e,Us({defaultTheme:wp},n))}};function Ep(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r=t.defaultTheme,o=t.withTheme,i=void 0!==o&&o,a=t.name,s=il(t,["defaultTheme","withTheme","name"]),l=a,c=Id(e,Us({defaultTheme:r,Component:n,name:a||n.displayName,classNamePrefix:l},s)),u=x.forwardRef((function(e,t){e.classes;var o,s=e.innerRef,l=il(e,["classes","innerRef"]),u=c(Us({},n.defaultProps,e)),d=l;return("string"==typeof a||i)&&(o=Td()||r,a&&(d=Rl({theme:o,name:a,props:l})),i&&!d.theme&&(d.theme=o)),x.createElement(n,Us({ref:s||t,classes:u},d))}));return Sp(u,n),u}}(e,Us({defaultTheme:wp},t))}function Tp(e){if("string"!=typeof e)throw new Error(Zs(7));return e.charAt(0).toUpperCase()+e.slice(1)}function qp(){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 Lp(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=Lp(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Np(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Lp(e))&&(r&&(r+=" "),r+=t);return r}function Op(e){return e&&e.ownerDocument||document}function Dp(e){return Op(e).defaultView||window}function Ap(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var Rp="undefined"!=typeof window?S.useLayoutEffect:S.useEffect;function Pp(e){var t=S.useRef(e);return Rp((function(){t.current=e})),S.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}function Ip(e,t){return S.useMemo((function(){return null==e&&null==t?null:function(n){Ap(e,n),Ap(t,n)}}),[e,t])}var zp=!0,jp=!1,Fp=null,Bp={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 _p(e){e.metaKey||e.altKey||e.ctrlKey||(zp=!0)}function Hp(){zp=!1}function $p(){"hidden"===this.visibilityState&&jp&&(zp=!0)}function Vp(e){var t=e.target;try{return t.matches(":focus-visible")}catch(e){}return zp||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!Bp[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Wp(){jp=!0,window.clearTimeout(Fp),Fp=window.setTimeout((function(){jp=!1}),100)}function Up(){var e=S.useCallback((function(e){var t,n=N.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",_p,!0),t.addEventListener("mousedown",Hp,!0),t.addEventListener("pointerdown",Hp,!0),t.addEventListener("touchstart",Hp,!0),t.addEventListener("visibilitychange",$p,!0))}),[]);return{isFocusVisible:Vp,onBlurVisible:Wp,ref:e}}var Kp=!1,Gp=x.createContext(null),Yp="unmounted",Xp="exited",Jp="entering",Zp="entered",Qp="exiting",ef=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=Xp,r.appearStatus=Jp):o=Zp:o=t.unmountOnExit||t.mountOnEnter?Yp:Xp,r.state={status:o},r.nextCallback=null,r}Fl(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Yp?{status:Xp}: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!==Jp&&n!==Zp&&(t=Jp):n!==Jp&&n!==Zp||(t=Qp)}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===Jp){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:O.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Xp&&this.setState({status:Yp})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[O.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||Kp?this.safeSetState({status:Zp},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Jp},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Zp},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:O.findDOMNode(this);t&&!Kp?(this.props.onExit(r),this.safeSetState({status:Qp},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Xp},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Xp},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:O.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Yp)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=ol(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return x.createElement(Gp.Provider,{value:null},"function"==typeof n?n(e,r):x.cloneElement(x.Children.only(n),r))},t}(x.Component);function tf(){}function nf(e,t){var n=Object.create(null);return e&&w.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&M(e)?t(e):e}(e)})),n}function rf(e,t,n){return null!=n[t]?n[t]:e.props[t]}function of(e,t,n){var r=nf(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach((function(i){var a=o[i];if(M(a)){var s=i in t,l=i in r,c=t[i],u=M(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&M(c)&&(o[i]=C(a,{onExited:n.bind(null,a),in:c.props.in,exit:rf(a,"exit",e),enter:rf(a,"enter",e)})):o[i]=C(a,{in:!1}):o[i]=C(a,{onExited:n.bind(null,a),in:!0,exit:rf(a,"exit",e),enter:rf(a,"enter",e)})}})),o}ef.contextType=Gp,ef.propTypes={},ef.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:tf,onEntering:tf,onEntered:tf,onExit:tf,onExiting:tf,onExited:tf},ef.UNMOUNTED=Yp,ef.EXITED=Xp,ef.ENTERING=Jp,ef.ENTERED=Zp,ef.EXITING=Qp;var af=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},sf=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(Bl(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Fl(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,nf(n.children,(function(e){return C(e,{onExited:r.bind(null,e),in:!0,appear:rf(e,"appear",n),enter:rf(e,"enter",n),exit:rf(e,"exit",n)})}))):of(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=nf(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Us({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=ol(e,["component","childFactory"]),o=this.state.contextValue,i=af(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?x.createElement(Gp.Provider,{value:o},i):x.createElement(Gp.Provider,{value:o},x.createElement(t,r,i))},t}(x.Component);sf.propTypes={},sf.defaultProps={component:"div",childFactory:function(e){return e}};function lf(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 cf=S.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.component,i=void 0===o?"div":o,a=e.square,s=void 0!==a&&a,l=e.elevation,c=void 0===l?1:l,u=e.variant,d=void 0===u?"elevation":u,p=il(e,["classes","className","component","square","elevation","variant"]);return S.createElement(i,Us({className:Np(n.root,r,"outlined"===d?n.outlined:n["elevation".concat(c)],!s&&n.rounded),ref:t},p))})),uf=Ep((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),Us({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"})(cf),df="undefined"==typeof window?S.useEffect:S.useLayoutEffect;function pf(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,o=e.rippleX,i=e.rippleY,a=e.rippleSize,s=e.in,l=e.onExited,c=void 0===l?function(){}:l,u=e.timeout,d=S.useState(!1),p=d[0],f=d[1],m=Np(t.ripple,t.rippleVisible,r&&t.ripplePulsate),h={width:a,height:a,top:-a/2+i,left:-a/2+o},g=Np(t.child,p&&t.childLeaving,r&&t.childPulsate),y=Pp(c);return df((function(){if(!s){f(!0);var e=setTimeout(y,u);return function(){clearTimeout(e)}}}),[y,s,u]),S.createElement("span",{className:m,style:h},S.createElement("span",{className:g}))}var ff=S.forwardRef((function(e,t){var n=e.center,r=void 0!==n&&n,o=e.classes,i=e.className,a=il(e,["center","classes","className"]),s=S.useState([]),l=s[0],c=s[1],u=S.useRef(0),d=S.useRef(null);S.useEffect((function(){d.current&&(d.current(),d.current=null)}),[l]);var p=S.useRef(!1),f=S.useRef(null),m=S.useRef(null),h=S.useRef(null);S.useEffect((function(){return function(){clearTimeout(f.current)}}),[]);var g=S.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,i=e.rippleSize,a=e.cb;c((function(e){return[].concat(Ml(e),[S.createElement(pf,{key:u.current,classes:o,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i})])})),u.current+=1,d.current=a}),[o]),y=S.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,o=t.pulsate,i=void 0!==o&&o,a=t.center,s=void 0===a?r||t.pulsate:a,l=t.fakeElement,c=void 0!==l&&l;if("mousedown"===e.type&&p.current)p.current=!1;else{"touchstart"===e.type&&(p.current=!0);var u,d,y,v=c?null:h.current,b=v?v.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(b.width/2),d=Math.round(b.height/2);else{var x=e.touches?e.touches[0]:e,S=x.clientX,M=x.clientY;u=Math.round(S-b.left),d=Math.round(M-b.top)}if(s)(y=Math.sqrt((2*Math.pow(b.width,2)+Math.pow(b.height,2))/3))%2==0&&(y+=1);else{var C=2*Math.max(Math.abs((v?v.clientWidth:0)-u),u)+2,w=2*Math.max(Math.abs((v?v.clientHeight:0)-d),d)+2;y=Math.sqrt(Math.pow(C,2)+Math.pow(w,2))}e.touches?null===m.current&&(m.current=function(){g({pulsate:i,rippleX:u,rippleY:d,rippleSize:y,cb:n})},f.current=setTimeout((function(){m.current&&(m.current(),m.current=null)}),80)):g({pulsate:i,rippleX:u,rippleY:d,rippleSize:y,cb:n})}}),[r,g]),v=S.useCallback((function(){y({},{pulsate:!0})}),[y]),b=S.useCallback((function(e,t){if(clearTimeout(f.current),"touchend"===e.type&&m.current)return e.persist(),m.current(),m.current=null,void(f.current=setTimeout((function(){b(e,t)})));m.current=null,c((function(e){return e.length>0?e.slice(1):e})),d.current=t}),[]);return S.useImperativeHandle(t,(function(){return{pulsate:v,start:y,stop:b}}),[v,y,b]),S.createElement("span",Us({className:Np(o.root,i),ref:h},a),S.createElement(sf,{component:null,exit:!0},l))})),mf=Ep((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(S.memo(ff)),hf=S.forwardRef((function(e,t){var n=e.action,r=e.buttonRef,o=e.centerRipple,i=void 0!==o&&o,a=e.children,s=e.classes,l=e.className,c=e.component,u=void 0===c?"button":c,d=e.disabled,p=void 0!==d&&d,f=e.disableRipple,m=void 0!==f&&f,h=e.disableTouchRipple,g=void 0!==h&&h,y=e.focusRipple,v=void 0!==y&&y,b=e.focusVisibleClassName,x=e.onBlur,M=e.onClick,C=e.onFocus,w=e.onFocusVisible,k=e.onKeyDown,E=e.onKeyUp,T=e.onMouseDown,q=e.onMouseLeave,L=e.onMouseUp,O=e.onTouchEnd,D=e.onTouchMove,A=e.onTouchStart,R=e.onDragLeave,P=e.tabIndex,I=void 0===P?0:P,z=e.TouchRippleProps,j=e.type,F=void 0===j?"button":j,B=il(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),_=S.useRef(null);var H=S.useRef(null),$=S.useState(!1),V=$[0],W=$[1];p&&V&&W(!1);var U=Up(),K=U.isFocusVisible,G=U.onBlurVisible,Y=U.ref;function X(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g;return Pp((function(r){return t&&t(r),!n&&H.current&&H.current[e](r),!0}))}S.useImperativeHandle(n,(function(){return{focusVisible:function(){W(!0),_.current.focus()}}}),[]),S.useEffect((function(){V&&v&&!m&&H.current.pulsate()}),[m,v,V]);var J=X("start",T),Z=X("stop",R),Q=X("stop",L),ee=X("stop",(function(e){V&&e.preventDefault(),q&&q(e)})),te=X("start",A),ne=X("stop",O),re=X("stop",D),oe=X("stop",(function(e){V&&(G(e),W(!1)),x&&x(e)}),!1),ie=Pp((function(e){_.current||(_.current=e.currentTarget),K(e)&&(W(!0),w&&w(e)),C&&C(e)})),ae=function(){var e=N.findDOMNode(_.current);return u&&"button"!==u&&!("A"===e.tagName&&e.href)},se=S.useRef(!1),le=Pp((function(e){v&&!se.current&&V&&H.current&&" "===e.key&&(se.current=!0,e.persist(),H.current.stop(e,(function(){H.current.start(e)}))),e.target===e.currentTarget&&ae()&&" "===e.key&&e.preventDefault(),k&&k(e),e.target===e.currentTarget&&ae()&&"Enter"===e.key&&!p&&(e.preventDefault(),M&&M(e))})),ce=Pp((function(e){v&&" "===e.key&&H.current&&V&&!e.defaultPrevented&&(se.current=!1,e.persist(),H.current.stop(e,(function(){H.current.pulsate(e)}))),E&&E(e),M&&e.target===e.currentTarget&&ae()&&" "===e.key&&!e.defaultPrevented&&M(e)})),ue=u;"button"===ue&&B.href&&(ue="a");var de={};"button"===ue?(de.type=F,de.disabled=p):("a"===ue&&B.href||(de.role="button"),de["aria-disabled"]=p);var pe=Ip(r,t),fe=Ip(Y,_),me=Ip(pe,fe),he=S.useState(!1),ge=he[0],ye=he[1];S.useEffect((function(){ye(!0)}),[]);var ve=ge&&!m&&!p;return S.createElement(ue,Us({className:Np(s.root,l,V&&[s.focusVisible,b],p&&s.disabled),onBlur:oe,onClick:M,onFocus:ie,onKeyDown:le,onKeyUp:ce,onMouseDown:J,onMouseLeave:ee,onMouseUp:Q,onDragLeave:Z,onTouchEnd:ne,onTouchMove:re,onTouchStart:te,ref:me,tabIndex:p?-1:I},de,B),a,ve?S.createElement(mf,Us({ref:H,center:i},z)):null)})),gf=Ep({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"})(hf),yf={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},vf=S.forwardRef((function(e,t){var n=e.align,r=void 0===n?"inherit":n,o=e.classes,i=e.className,a=e.color,s=void 0===a?"initial":a,l=e.component,c=e.display,u=void 0===c?"initial":c,d=e.gutterBottom,p=void 0!==d&&d,f=e.noWrap,m=void 0!==f&&f,h=e.paragraph,g=void 0!==h&&h,y=e.variant,v=void 0===y?"body1":y,b=e.variantMapping,x=void 0===b?yf:b,M=il(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),C=l||(g?"p":x[v]||yf[v])||"span";return S.createElement(C,Us({className:Np(o.root,i,"inherit"!==v&&o[v],"initial"!==s&&o["color".concat(Tp(s))],m&&o.noWrap,p&&o.gutterBottom,g&&o.paragraph,"inherit"!==r&&o["align".concat(Tp(r))],"initial"!==u&&o["display".concat(Tp(u))]),ref:t},M))})),bf=Ep((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"})(vf),xf=S.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.color,a=void 0===i?"default":i,s=e.component,l=void 0===s?"button":s,c=e.disabled,u=void 0!==c&&c,d=e.disableElevation,p=void 0!==d&&d,f=e.disableFocusRipple,m=void 0!==f&&f,h=e.endIcon,g=e.focusVisibleClassName,y=e.fullWidth,v=void 0!==y&&y,b=e.size,x=void 0===b?"medium":b,M=e.startIcon,C=e.type,w=void 0===C?"button":C,k=e.variant,E=void 0===k?"text":k,T=il(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),q=M&&S.createElement("span",{className:Np(r.startIcon,r["iconSize".concat(Tp(x))])},M),L=h&&S.createElement("span",{className:Np(r.endIcon,r["iconSize".concat(Tp(x))])},h);return S.createElement(gf,Us({className:Np(r.root,r[E],o,"inherit"===a?r.colorInherit:"default"!==a&&r["".concat(E).concat(Tp(a))],"medium"!==x&&[r["".concat(E,"Size").concat(Tp(x))],r["size".concat(Tp(x))]],p&&r.disableElevation,u&&r.disabled,v&&r.fullWidth),component:l,disabled:u,focusRipple:!m,focusVisibleClassName:Np(r.focusVisible,g),ref:t,type:w},T),S.createElement("span",{className:r.label},q,n,L))})),Sf=Ep((function(e){return{root:Us({},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:rl(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:rl(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:rl(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(rl(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:rl(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(rl(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:rl(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"})(xf);var Mf="undefined"!=typeof window?S.useLayoutEffect:S.useEffect,Cf=S.forwardRef((function(e,t){var n=e.children,r=e.container,o=e.disablePortal,i=void 0!==o&&o,a=e.onRendered,s=S.useState(null),l=s[0],c=s[1],u=Ip(S.isValidElement(n)?n.ref:null,t);return Mf((function(){i||c(function(e){return e="function"==typeof e?e():e,N.findDOMNode(e)}(r)||document.body)}),[r,i]),Mf((function(){if(l&&!i)return Ap(t,l),function(){Ap(t,null)}}),[t,l,i]),Mf((function(){a&&(l||i)&&a()}),[a,l,i]),i?S.isValidElement(n)?S.cloneElement(n,{ref:u}):n:l?N.createPortal(n,l):l}));function wf(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function kf(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function Ef(e,t,n){var r=arguments.length>4?arguments[4]:void 0,o=[t,n].concat(Ml(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)&&wf(e,r)}))}function Tf(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function qf(e,t){var n,r=[],o=[],i=e.container;if(!t.disableScrollLock){if(function(e){var t=Op(e);return t.body===e?Dp(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(kf(i)+a,"px"),n=Op(i).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){o.push(e.style.paddingRight),e.style.paddingRight="".concat(kf(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 Lf=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 zl(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&&wf(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);Ef(t,e.mountNode,e.modalRef,r,!0);var o=Tf(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=Tf(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=qf(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=Tf(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&&wf(e.modalRef,!0),Ef(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&&wf(o.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();function Nf(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,o=e.disableEnforceFocus,i=void 0!==o&&o,a=e.disableRestoreFocus,s=void 0!==a&&a,l=e.getDoc,c=e.isEnabled,u=e.open,d=S.useRef(),p=S.useRef(null),f=S.useRef(null),m=S.useRef(),h=S.useRef(null),g=S.useCallback((function(e){h.current=N.findDOMNode(e)}),[]),y=Ip(t.ref,g),v=S.useRef();return S.useEffect((function(){v.current=u}),[u]),!v.current&&u&&"undefined"!=typeof window&&(m.current=l().activeElement),S.useEffect((function(){if(u){var e=Op(h.current);r||!h.current||h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex",-1),h.current.focus());var t=function(){null!==h.current&&(e.hasFocus()&&!i&&c()&&!d.current?h.current&&!h.current.contains(e.activeElement)&&h.current.focus():d.current=!1)},n=function(t){!i&&c()&&9===t.keyCode&&e.activeElement===h.current&&(d.current=!0,t.shiftKey?f.current.focus():p.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var o=setInterval((function(){t()}),50);return function(){clearInterval(o),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),s||(m.current&&m.current.focus&&m.current.focus(),m.current=null)}}}),[r,i,s,c,u]),S.createElement(S.Fragment,null,S.createElement("div",{tabIndex:0,ref:p,"data-test":"sentinelStart"}),S.cloneElement(t,{ref:y}),S.createElement("div",{tabIndex:0,ref:f,"data-test":"sentinelEnd"}))}var Of={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"}},Df=S.forwardRef((function(e,t){var n=e.invisible,r=void 0!==n&&n,o=e.open,i=il(e,["invisible","open"]);return o?S.createElement("div",Us({"aria-hidden":!0,ref:t},i,{style:Us({},Of.root,r?Of.invisible:{},i.style)})):null}));var Af=new Lf,Rf=S.forwardRef((function(e,t){var n=Td(),r=Rl({name:"MuiModal",props:Us({},e),theme:n}),o=r.BackdropComponent,i=void 0===o?Df:o,a=r.BackdropProps,s=r.children,l=r.closeAfterTransition,c=void 0!==l&&l,u=r.container,d=r.disableAutoFocus,p=void 0!==d&&d,f=r.disableBackdropClick,m=void 0!==f&&f,h=r.disableEnforceFocus,g=void 0!==h&&h,y=r.disableEscapeKeyDown,v=void 0!==y&&y,b=r.disablePortal,x=void 0!==b&&b,M=r.disableRestoreFocus,C=void 0!==M&&M,w=r.disableScrollLock,k=void 0!==w&&w,E=r.hideBackdrop,T=void 0!==E&&E,q=r.keepMounted,L=void 0!==q&&q,O=r.manager,D=void 0===O?Af:O,A=r.onBackdropClick,R=r.onClose,P=r.onEscapeKeyDown,I=r.onRendered,z=r.open,j=il(r,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),F=S.useState(!0),B=F[0],_=F[1],H=S.useRef({}),$=S.useRef(null),V=S.useRef(null),W=Ip(V,t),U=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),K=function(){return Op($.current)},G=function(){return H.current.modalRef=V.current,H.current.mountNode=$.current,H.current},Y=function(){D.mount(G(),{disableScrollLock:k}),V.current.scrollTop=0},X=Pp((function(){var e=function(e){return e="function"==typeof e?e():e,N.findDOMNode(e)}(u)||K().body;D.add(G(),e),V.current&&Y()})),J=S.useCallback((function(){return D.isTopModal(G())}),[D]),Z=Pp((function(e){$.current=e,e&&(I&&I(),z&&J()?Y():wf(V.current,!0))})),Q=S.useCallback((function(){D.remove(G())}),[D]);if(S.useEffect((function(){return function(){Q()}}),[Q]),S.useEffect((function(){z?X():U&&c||Q()}),[z,Q,U,c,X]),!L&&!z&&(!U||B))return null;var ee=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:Ll}),te={};return void 0===s.props.tabIndex&&(te.tabIndex=s.props.tabIndex||"-1"),U&&(te.onEnter=qp((function(){_(!1)}),s.props.onEnter),te.onExited=qp((function(){_(!0),c&&Q()}),s.props.onExited)),S.createElement(Cf,{ref:Z,container:u,disablePortal:x},S.createElement("div",Us({ref:W,onKeyDown:function(e){"Escape"===e.key&&J()&&(P&&P(e),v||(e.stopPropagation(),R&&R(e,"escapeKeyDown")))},role:"presentation"},j,{style:Us({},ee.root,!z&&B?ee.hidden:{},j.style)}),T?null:S.createElement(i,Us({open:z,onClick:function(e){e.target===e.currentTarget&&(A&&A(e),!m&&R&&R(e,"backdropClick"))}},a)),S.createElement(Nf,{disableEnforceFocus:g,disableAutoFocus:p,disableRestoreFocus:C,getDoc:K,isEnabled:J,open:z},S.cloneElement(s,te))))})),Pf=S.forwardRef((function(e,t){var n=e.absolute,r=void 0!==n&&n,o=e.classes,i=e.className,a=e.component,s=void 0===a?"hr":a,l=e.flexItem,c=void 0!==l&&l,u=e.light,d=void 0!==u&&u,p=e.orientation,f=void 0===p?"horizontal":p,m=e.role,h=void 0===m?"hr"!==s?"separator":void 0:m,g=e.variant,y=void 0===g?"fullWidth":g,v=il(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return S.createElement(s,Us({className:Np(o.root,i,"fullWidth"!==y&&o[y],r&&o.absolute,c&&o.flexItem,d&&o.light,"vertical"===f&&o.vertical),role:h,ref:t},v))})),If=Ep((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:rl(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"})(Pf);function zf(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var jf={entering:{opacity:1,transform:zf(1)},entered:{opacity:1,transform:"none"}},Ff=S.forwardRef((function(e,t){var n=e.children,r=e.disableStrictModeCompat,o=void 0!==r&&r,i=e.in,a=e.onEnter,s=e.onEntered,l=e.onEntering,c=e.onExit,u=e.onExited,d=e.onExiting,p=e.style,f=e.timeout,m=void 0===f?"auto":f,h=e.TransitionComponent,g=void 0===h?ef:h,y=il(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),v=S.useRef(),b=S.useRef(),x=Td()||wp,M=x.unstable_strictMode&&!o,C=S.useRef(null),w=Ip(n.ref,t),k=Ip(M?C:void 0,w),E=function(e){return function(t,n){if(e){var r=Cl(M?[C.current,t]:[t,n],2),o=r[0],i=r[1];void 0===i?e(o):e(o,i)}}},T=E(l),q=E((function(e,t){!function(e){e.scrollTop}(e);var n,r=lf({style:p,timeout:m},{mode:"enter"}),o=r.duration,i=r.delay;"auto"===m?(n=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=n):n=o,e.style.transition=[x.transitions.create("opacity",{duration:n,delay:i}),x.transitions.create("transform",{duration:.666*n,delay:i})].join(","),a&&a(e,t)})),L=E(s),N=E(d),O=E((function(e){var t,n=lf({style:p,timeout:m},{mode:"exit"}),r=n.duration,o=n.delay;"auto"===m?(t=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=t):t=r,e.style.transition=[x.transitions.create("opacity",{duration:t,delay:o}),x.transitions.create("transform",{duration:.666*t,delay:o||.333*t})].join(","),e.style.opacity="0",e.style.transform=zf(.75),c&&c(e)})),D=E(u);return S.useEffect((function(){return function(){clearTimeout(v.current)}}),[]),S.createElement(g,Us({appear:!0,in:i,nodeRef:M?C:void 0,onEnter:q,onEntered:L,onEntering:T,onExit:O,onExited:D,onExiting:N,addEndListener:function(e,t){var n=M?e:t;"auto"===m&&(v.current=setTimeout(n,b.current||0))},timeout:"auto"===m?null:m},y),(function(e,t){return S.cloneElement(n,Us({style:Us({opacity:0,transform:zf(.75),visibility:"exited"!==e||i?void 0:"hidden"},jf[e],p,n.props.style),ref:k},t))}))}));Ff.muiSupportAuto=!0;var Bf=S.createContext({}),_f=S.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.component,a=void 0===i?"ul":i,s=e.dense,l=void 0!==s&&s,c=e.disablePadding,u=void 0!==c&&c,d=e.subheader,p=il(e,["children","classes","className","component","dense","disablePadding","subheader"]),f=S.useMemo((function(){return{dense:l}}),[l]);return S.createElement(Bf.Provider,{value:f},S.createElement(a,Us({className:Np(r.root,o,l&&r.dense,!u&&r.padding,d&&r.subheader),ref:t},p),d,n))})),Hf=Ep({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(_f),$f="undefined"==typeof window?S.useEffect:S.useLayoutEffect,Vf=S.forwardRef((function(e,t){var n=e.alignItems,r=void 0===n?"center":n,o=e.autoFocus,i=void 0!==o&&o,a=e.button,s=void 0!==a&&a,l=e.children,c=e.classes,u=e.className,d=e.component,p=e.ContainerComponent,f=void 0===p?"li":p,m=e.ContainerProps,h=(m=void 0===m?{}:m).className,g=il(m,["className"]),y=e.dense,v=void 0!==y&&y,b=e.disabled,x=void 0!==b&&b,M=e.disableGutters,C=void 0!==M&&M,w=e.divider,k=void 0!==w&&w,E=e.focusVisibleClassName,T=e.selected,q=void 0!==T&&T,L=il(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),O=S.useContext(Bf),D={dense:v||O.dense||!1,alignItems:r},A=S.useRef(null);$f((function(){i&&A.current&&A.current.focus()}),[i]);var R,P,I=S.Children.toArray(l),z=I.length&&(R=I[I.length-1],P=["ListItemSecondaryAction"],S.isValidElement(R)&&-1!==P.indexOf(R.type.muiName)),j=Ip(S.useCallback((function(e){A.current=N.findDOMNode(e)}),[]),t),F=Us({className:Np(c.root,u,D.dense&&c.dense,!C&&c.gutters,k&&c.divider,x&&c.disabled,s&&c.button,"center"!==r&&c.alignItemsFlexStart,z&&c.secondaryAction,q&&c.selected),disabled:x},L),B=d||"li";return s&&(F.component=d||"div",F.focusVisibleClassName=Np(c.focusVisible,E),B=gf),z?(B=F.component||d?B:"div","li"===f&&("li"===B?B="div":"li"===F.component&&(F.component="div")),S.createElement(Bf.Provider,{value:D},S.createElement(f,Us({className:Np(c.container,h),ref:j},g),S.createElement(B,F,I),I.pop()))):S.createElement(Bf.Provider,{value:D},S.createElement(B,Us({ref:j},F),I))})),Wf=Ep((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"})(Vf),Uf=S.forwardRef((function(e,t){var n=e.classes,r=e.className,o=il(e,["classes","className"]),i=S.useContext(Bf);return S.createElement("div",Us({className:Np(n.root,r,"flex-start"===i.alignItems&&n.alignItemsFlexStart),ref:t},o))})),Kf=Ep((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(Uf),Gf=S.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,i=e.disableTypography,a=void 0!==i&&i,s=e.inset,l=void 0!==s&&s,c=e.primary,u=e.primaryTypographyProps,d=e.secondary,p=e.secondaryTypographyProps,f=il(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),m=S.useContext(Bf).dense,h=null!=c?c:n;null==h||h.type===bf||a||(h=S.createElement(bf,Us({variant:m?"body2":"body1",className:r.primary,component:"span",display:"block"},u),h));var g=d;return null==g||g.type===bf||a||(g=S.createElement(bf,Us({variant:"body2",className:r.secondary,color:"textSecondary",display:"block"},p),g)),S.createElement("div",Us({className:Np(r.root,o,m&&r.dense,l&&r.inset,h&&g&&r.multiline),ref:t},f),h,g)})),Yf=Ep({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(Gf);function Xf(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Jf(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Zf(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function Qf(e){return"function"==typeof e?e():e}var em=S.forwardRef((function(e,t){var n=e.action,r=e.anchorEl,o=e.anchorOrigin,i=void 0===o?{vertical:"top",horizontal:"left"}:o,a=e.anchorPosition,s=e.anchorReference,l=void 0===s?"anchorEl":s,c=e.children,u=e.classes,d=e.className,p=e.container,f=e.elevation,m=void 0===f?8:f,h=e.getContentAnchorEl,g=e.marginThreshold,y=void 0===g?16:g,v=e.onEnter,b=e.onEntered,x=e.onEntering,M=e.onExit,C=e.onExited,w=e.onExiting,k=e.open,E=e.PaperProps,T=void 0===E?{}:E,q=e.transformOrigin,L=void 0===q?{vertical:"top",horizontal:"left"}:q,O=e.TransitionComponent,D=void 0===O?Ff:O,A=e.transitionDuration,R=void 0===A?"auto":A,P=e.TransitionProps,I=void 0===P?{}:P,z=il(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),j=S.useRef(),F=S.useCallback((function(e){if("anchorPosition"===l)return a;var t=Qf(r),n=(t&&1===t.nodeType?t:Op(j.current).body).getBoundingClientRect(),o=0===e?i.vertical:"center";return{top:n.top+Xf(n,o),left:n.left+Jf(n,i.horizontal)}}),[r,i.horizontal,i.vertical,a,l]),B=S.useCallback((function(e){var t=0;if(h&&"anchorEl"===l){var n=h(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}}return t}),[i.vertical,l,h]),_=S.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:Xf(e,L.vertical)+t,horizontal:Jf(e,L.horizontal)}}),[L.horizontal,L.vertical]),H=S.useCallback((function(e){var t=B(e),n={width:e.offsetWidth,height:e.offsetHeight},o=_(n,t);if("none"===l)return{top:null,left:null,transformOrigin:Zf(o)};var i=F(t),a=i.top-o.vertical,s=i.left-o.horizontal,c=a+n.height,u=s+n.width,d=Dp(Qf(r)),p=d.innerHeight-y,f=d.innerWidth-y;if(a<y){var m=a-y;a-=m,o.vertical+=m}else if(c>p){var h=c-p;a-=h,o.vertical+=h}if(s<y){var g=s-y;s-=g,o.horizontal+=g}else if(u>f){var v=u-f;s-=v,o.horizontal+=v}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:Zf(o)}}),[r,l,F,B,_,y]),$=S.useCallback((function(){var e=j.current;if(e){var t=H(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[H]),V=S.useCallback((function(e){j.current=N.findDOMNode(e)}),[]);S.useEffect((function(){k&&$()})),S.useImperativeHandle(n,(function(){return k?{updatePosition:function(){$()}}:null}),[k,$]),S.useEffect((function(){if(k){var e=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=this;clearTimeout(t),t=setTimeout((function(){e.apply(a,o)}),n)}return r.clear=function(){clearTimeout(t)},r}((function(){$()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[k,$]);var W=R;"auto"!==R||D.muiSupportAuto||(W=void 0);var U=p||(r?Op(Qf(r)).body:void 0);return S.createElement(Rf,Us({container:U,open:k,ref:t,BackdropProps:{invisible:!0},className:Np(u.root,d)},z),S.createElement(D,Us({appear:!0,in:k,onEnter:v,onEntered:b,onExit:M,onExited:C,onExiting:w,timeout:W},I,{onEntering:qp((function(e,t){x&&x(e,t),$()}),I.onEntering)}),S.createElement(uf,Us({elevation:m,ref:V},T,{className:Np(u.paper,T.className)}),c)))})),tm=Ep({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(em);function nm(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function rm({d:e,size:t,style:n={},viewBox:r="0 0 16 16"}){const o={fontSize:nm(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",...n};return x.createElement("i",{style:o},x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},x.createElement("path",{d:e})))}const om="alternative-menu-item",im=e=>{const{nested:t,className:n,...r}=e,o=(({nested:e,dir:t})=>Id((n=>({root:{textAlign:"ltr"===t?"start":"end","&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"},...e&&"ltr"===t&&{paddingLeft:n.spacing(4)},...e&&"rtl"===t&&{paddingRight:n.spacing(4)}}}))))(e)();return x.createElement(Wf,Ss({className:`${o.root} ${n}`},r))},am=e=>{if("Tab"===e.key){const t=document.querySelectorAll(`.${om}`);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 sm({title:e,selected:t,onClick:n,nested:r,icon:o,bold:i,dir:a}){const s=$e.detectTextDirection(e);return x.createElement(im,{nested:r,role:"menuitem",button:!0,onClick:n,className:om,onKeyDown:am,dir:a,autoFocus:t},x.createElement(Yf,{primary:e,primaryTypographyProps:{dir:s,...i&&{style:{fontWeight:600}}}}),x.createElement(Kf,{style:{minWidth:16}},x.createElement(rm,{d:t?is:""})),o&&x.createElement(Kf,{style:{minWidth:16}},x.createElement(rm,{d:o.d})))}sm.propTypes={title:ks.string.isRequired,selected:ks.bool,onClick:ks.func.isRequired,nested:ks.bool,icon:ks.shape({d:ks.string.isRequired}),bold:ks.bool,dir:ks.string.isRequired},sm.defaultProps={selected:!1,nested:!1,icon:void 0,bold:!1},im.propTypes={nested:ks.bool,className:ks.string},im.defaultProps={nested:!1,className:om};const lm={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 cm({chartId:e,alignTo:t,currentId:n,dir:r,dock:o,list:i,onClose:a,show:s,instruction:l}){const c=i.map(((t,o)=>{var s;return x.createElement(x.Fragment,{key:t.id},x.createElement(sm,{icon:t.icon,title:t.title,bold:t.groupItem,selected:t.selected,onClick:()=>{t.onSelect&&t.onSelect(n),a(`${e}-${t.id}`)},dir:r}),(null===(s=t.children)||void 0===s?void 0:s.length)>0&&x.createElement(Hf,{dense:!0,dir:r,component:"div",disablePadding:!0},t.children.map((e=>x.createElement(sm,{key:e.id,nested:!0,title:e.title,selected:e.selected,onClick:()=>{e.onSelect(),a(t.id)},dir:r})))),o<i.length-1&&x.createElement(If,{key:`divider-${t.id}`}))}));return x.createElement(tm,Ss({anchorEl:t,open:s,onClose:a},lm[o],{PaperProps:{style:{minWidth:"250px",maxHeight:"300px"}}}),x.createElement(Hf,{dense:!0,disablePadding:!0,dir:r,"aria-label":l,component:"nav"},c))}cm.propTypes={chartId:ks.string.isRequired,alignTo:ks.any,currentId:ks.string.isRequired,dir:ks.string.isRequired,dock:ks.string.isRequired,list:ks.array,onClose:ks.func.isRequired,show:ks.bool.isRequired,instruction:ks.string.isRequired},cm.defaultProps={list:[],alignTo:null};const um="title-button",dm="active-title-button",pm=kp((({children:e,...t})=>x.createElement(Sf,Ss({size:"small",disableRipple:!0,disableTouchRipple:!0},t),e)))((()=>({"&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"}}))),fm=kp(Sf)((()=>({borderRadius:"4px",width:"24px",height:"24px",minWidth:"22px",padding:0})));class mm extends x.Component{constructor(e){super(e),this.state={open:!1,inSelection:e.selections&&e.selections.isActive(),hasPopoverOptions:!1,disableCyclicButton:!1},this.openPopover=this.openPopover.bind(this),this.closePopover=this.closePopover.bind(this),this.alignToRef=x.createRef()}componentDidMount(){const{popover:e,selections:t,supportConditional:n,showGroupDimOptions:r}=this.props;t&&(this.onSelectionsActivated=()=>this.setState({inSelection:!0}),this.onSelectionsDeactivated=()=>this.setState({inSelection:!1}),t.addListener("activated",this.onSelectionsActivated),t.addListener("deactivated",this.onSelectionsDeactivated),t.addListener("canceled",this.onSelectionsDeactivated)),e&&(n||r)&&e.getPopoverOptions().then((e=>{this.setState({hasPopoverOptions:0!==e.length})}))}componentDidUpdate(e,t){const{popover:n,supportConditional:r,showGroupDimOptions:o}=this.props;n&&(r||o)&&n.getPopoverOptions().then((e=>{t.hasPopoverOptions!==(0!==e.length)&&this.setState({hasPopoverOptions:0!==e.length})}))}componentWillUnmount(){const{selections:e}=this.props;e&&(e.removeListener("activated",this.onSelectionsActivated),e.removeListener("deactivated",this.onSelectionsDeactivated),e.removeListener("canceled",this.onSelectionsDeactivated))}openPopover(e){if(!(this.state.closeTime&&Date.now()-this.state.closeTime<20)){if(e.target){const t=e.target.closest(`.${um}`);t&&(t.focus(),t.classList.add(dm))}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(`.${um}[data-id="${e}"]`);t&&t.focus()}),1e3);else{const e=document.querySelector(`.${dm}`);e&&(e.classList.remove(dm),setTimeout((()=>{e.focus()}),50))}}render(){const{chartId:e,titleData:t,popover:n,translator:r,disabled:o,isDimension:i,padding:a,minWidth:s,hasAlternative:l,supportConditional:c,showGroupDimOptions:u}=this.props,d={flex:"1 1 auto",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontWeight:"normal",lineHeight:"normal",...this.props.style},p=t.breadcrumbs.length,f=o||Boolean(!t.drillUp)||this.state.inSelection,m=t.breadcrumbs.map(((e,n)=>x.createElement(pm,{style:{display:"flex",alignItems:"center",color:f&&"rgba(89, 89, 89, 0.8)",pointerEvents:f?"none":"auto",paddingTop:0,paddingBottom:0,height:"100%"},key:n,onClick:()=>f?void 0:t.drillUp(p-n),title:e},x.createElement("span",{style:d},e),x.createElement(rm,Ss({},ss,{size:"small",style:{margin:"0 8px"}}))))),h=c||u?this.state.hasPopoverOptions:l,g=n&&!this.state.open?this.openPopover:this.closePopover,y=!n||o||this.state.inSelection,v={display:"flex",alignItems:"center",width:"100%",color:y&&"rgba(89, 89, 89, 0.8)",height:"100%",border:!i&&y&&"none",...a?{padding:a}:{paddingTop:0,paddingBottom:0},...s&&{minWidth:s}};this.state.open&&(v.background="rgba(0,0,0,0.08)");const b=()=>{this.setState({disableCyclicButton:!0})},S=$e.detectTextDirection(t.text),M=x.createElement(pm,{"aria-label":r.get(`Accessibility.${n&&h?"Alternative":"Normal"}.Instructions`,[t.text]),style:v,onClick:y?void 0:g,title:t.text,tabIndex:y?-1:0,onFocus:y?void 0:e=>{e.currentTarget.style.boxShadow="0px 0px 0px 2px #177FE6 inset",e.currentTarget.style.borderRadius="2px"},onBlur:y?void 0:e=>{e.currentTarget.style.boxShadow="none",e.currentTarget.style.borderRadius="0px"},onMouseDown:e=>{e.preventDefault()},className:`${um} ${t.id}`,"data-id":`${e}-${t.id}`},t.locked&&x.createElement(rm,Ss({},os,{size:"small",title:r.get("Tooltip.selections.locked")})),x.createElement("span",{style:d,dir:S},t.text),n&&h&&x.createElement(rm,Ss({},as,{size:"small",style:{margin:"0 8px"}})));return x.createElement(x.Fragment,null,t.icon&&t.icon.onClick&&x.createElement(fm,{variant:"outlined",disabled:this.state.disableCyclicButton||this.state.inSelection,onClick:o?void 0:()=>t.icon.onClick({onError:b})},x.createElement(rm,Ss({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip)}))),t.icon&&!t.icon.onClick&&x.createElement(rm,Ss({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip),style:{margin:"0 4px 0 0"}})),m,x.createElement("div",{ref:this.alignToRef,style:{overflow:"hidden",pointerEvents:h?"auto":"none",height:"100%"}},M),n&&h&&x.createElement(cm,{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 hm(e){return{top:"bottom",bottom:"top",left:"right",right:"left"}[e]}mm.propTypes={chartId:ks.string.isRequired,disabled:ks.bool.isRequired,padding:ks.string,minWidth:ks.string,titleData:ks.shape({breadcrumbs:ks.arrayOf(ks.string).isRequired,icon:ks.shape({path:ks.shape({d:ks.string.isRequired}),tooltip:ks.string.isRequired,onClick:ks.func}),index:ks.number.isRequired,locked:ks.bool.isRequired,text:ks.string.isRequired,popoverText:ks.string.isRequired,drillUp:ks.func,id:ks.string.isRequired}).isRequired,popover:ks.shape({dir:ks.string.isRequired,dock:ks.string.isRequired,getPopoverOptions:ks.func.isRequired}),translator:ks.shape({get:ks.func.isRequired}).isRequired,selections:ks.shape({isActive:ks.func,addListener:ks.func,removeListener:ks.func}),style:ks.shape({fontSize:ks.string,color:ks.string,fontFamily:ks.string}).isRequired,isDimension:ks.bool.isRequired,hasAlternative:ks.bool.isRequired,supportConditional:ks.bool.isRequired,showGroupDimOptions:ks.bool.isRequired},mm.defaultProps={popover:null,selections:null,padding:"",minWidth:""};const gm=Nl({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 ym=Al({productionPrefix:"qe88e",disableGlobal:!0,seed:""});var vm={MAX_NUM_POINTS:5e4,DEFAULT_NUM_POINTS:2e3,DEFAULT_NUM_LINES:12};const{DEFAULT_NUM_POINTS:bm}=vm;function xm({layoutService:e,largeDataService:t}){const{maxNumPoints:n=bm}=(null==t?void 0:t.meta)||{},{qHyperCube:r}=e.getLayout();return r.qSize.qcy*r.qMeasureInfo.length>n}const{DEFAULT_NUM_LINES:Sm}=vm,Mm=({layoutService:e,largeDataService:t})=>{const{maxNumLines:n=Sm}=(null==t?void 0:t.meta)||{},{qHyperCube:r}=e.getLayout();return r.qDimensionInfo.length>1&&!xm({layoutService:e,largeDataService:t})?e.meta.size.dimensions[1]+1:n},{DEFAULT_NUM_POINTS:Cm}=vm,{MAX_NUM_POINTS:wm,DEFAULT_NUM_POINTS:km,DEFAULT_NUM_LINES:Em}=vm,{DEFAULT_NUM_POINTS:Tm}=vm,qm=({layoutService:e,largeDataService:t})=>{if(!xm({layoutService:e,largeDataService:t})){const{maxNumPoints:e=Tm}=(null==t?void 0:t.meta)||{};return e}const{dimensionCount:n}=e.meta;return n>1?(({layoutService:e,largeDataService:t})=>{var n;const{dimensions:r=[]}=(null==e||null===(n=e.meta)||void 0===n?void 0:n.size)||{},{maxNumLines:o=Em,maxNumPoints:i=km,hasInjectedData:a=!1}=(null==t?void 0:t.meta)||{};if(Mm({layoutService:e,largeDataService:t})*r[0]<=i)return r[0];const s=Math.max(1,Math.min(o,r[1])),l=i/s,c=Math.floor(r[0]<=l?l:l/4),u=2*s*(s+1);return a&&(s>Em||i>km)?Math.min(c,Math.ceil(wm/u)):c})({layoutService:e,largeDataService:t}):(({layoutService:e,largeDataService:t})=>{const{maxNumPoints:n=Cm}=(null==t?void 0:t.meta)||{},{measureCount:r=1}=(null==e?void 0:e.meta)||{},o=4+2*(r-1);return Math.floor(n/(r*o))})({layoutService:e,largeDataService:t})};function Lm({model:e,layoutService:t,largeDataService:n,definitionPath:r="/qHyperCubeDef"}){return{shouldFetchReduced:()=>xm({layoutService:t,largeDataService:n}),computeNbrOfBins:()=>qm({layoutService:t,largeDataService:n}),computeMaxNumberLines:()=>Mm({layoutService:t,largeDataService:n}),fetch:(o,i)=>(({start:e,end:t,model:n,layoutService:r,largeDataService:o,definitionPath:i})=>{const a={qStart:e,qEnd:t,qNbrPoints:qm({layoutService:r,largeDataService:o}),qMaxNbrTicks:300,qMaxNumberLines:Mm({layoutService:r,largeDataService:o})};return n.getHyperCubeContinuousData(i,a,!1)})({start:o,end:i,model:e,layoutService:t,largeDataService:n,definitionPath:r})}}function Nm(e={}){const{cache:t={}}=e;return{fetch:()=>Promise.resolve(t.merged)}}function Om({layoutService:e,viewCache:t}){return{fetch:()=>{const{qAxisData:t,qDataPages:n}=e.getHyperCube();return Promise.resolve({qAxisData:t,qDataPages:n})},getSnapshotData(){const n=e.getLayoutValue("snapshotData.content.chartData",{});return"zoom"in n&&"min"in n.zoom&&"max"in n.zoom?function({zoom:e}){return{zoom:e}}(n):function({scrollOffset:e=0,viewRange:t=0},n){let r=n+e,o=r+t;return 1===t&&0===e&&(r=n-.5,o=n+.5),{zoom:{min:r,max:o}}}(n,t.get("continuousMin"))}}}function Dm(){const e=()=>{},t=[],n={};return e.set=(e,r)=>{const o=t.indexOf(e);o>-1&&t.splice(o,1),t.push(e),n[e]=r},e.forEach=e=>{t.forEach(((t,r)=>e(n[t],r)))},e.has=e=>e in n,e}function Am(e,t,n){return n[0]&&n[0][1]&&n[0][1].qElemNumber>-1?function({start:e,end:t,matrix:n}){const r=[],o=Dm(),i=Dm();for(let a=0;a<n.length;a++){const s=n[a],l=s[1].qElemNumber.toString();s[0].qNum<e?o.set(l,s):s[0].qNum>t&&(i.has(l)||i.set(l,s)),s[0].qNum>=e&&s[0].qNum<=t&&r.push(s)}return o.forEach(((e,t)=>r.splice(t,0,e))),i.forEach((e=>r.push(e))),r}({start:e,end:t,matrix:n}):function({start:e,end:t,matrix:n}){const r=[];let o,i;for(let a=0;a<n.length;a++){const s=n[a];s[0].qNum<e?o=s:s[0].qNum>t&&(i||(i=s)),s[0].qNum>=e&&s[0].qNum<=t&&r.push(s)}return o&&r.unshift(o),i&&r.push(i),r}({start:e,end:t,matrix:n})}function Rm(e,t){return{...e,qWidth:t[0]?t[0].length:0,qHeight:t.length}}function Pm(e,t,n){const r={qDataPages:(n.qDataPages||[]).map((n=>{const r=Am(e,t,n.qMatrix),o=Rm(n.qArea,r);return{...n,qArea:o,qMatrix:r}}))};return n.qAxisData&&n.qAxisData.qAxis&&(r.qAxisData=function(e,t,n){return{qAxis:n.qAxis.map((n=>({qName:n.qName,qTags:n.qTags,qTicks:n.qTicks.reduce(((n,r)=>((r.qStart>=e&&r.qStart<=t||r.qEnd>=e&&r.qEnd<=t||r.qStart<e&&r.qEnd>t)&&n.push(r),n)),[])})))}}(e,t,n.qAxisData)),r}const Im=2**.5,zm=1/Im,jm=zm**44;function Fm(e){return e.qIsOtherCell}function Bm({qDataPages:e=[]}={},t={}){const n=e.length?e[0].qMatrix:[];return t.isStackedByDimension?function(e){const t={};return e.forEach((e=>{if(!e.some(Fm)){const n=e[0].qElemNumber;t[n]=void 0}})),Object.keys(t).length}(n):function(e){let t=0;return e.forEach((e=>{e.some(Fm)||t++})),t}(n)}const _m={query:{getShouldProcess:()=>!1},command:{processDataPage:()=>{}}};var Hm={created(){this.state={}},beforeUpdate(){this.state={}},beforeRender({size:e}){this.state.ticks=this.scale.ticks({distance:e.width}).filter((e=>!e.isMinor)),"linear"===this.scale.type&&function(e,t){const[,n]=e.domain();for(let e=0;e<t.length;e++){const r=t[e],o=t[e+1];r.data={},o||1===r.end?o?(r.data.start=r.value,r.data.end=o.value,r.end=o.position):(r.data.start=r.value,r.data.end=r.value):(r.data.start=r.value,r.data.end=n,r.end=1)}}(this.scale,this.state.ticks)},render(){const e=this.scale.data().fields.length?this.scale.data().fields[0].id():"",{ticks:t}=this.state,n=t.map((t=>({type:"rect",fill:"none",data:{source:{field:e},value:[t.data.start,t.data.end]},x:t.start*this.rect.width,y:0,width:(t.end-t.start)*this.rect.width,height:this.rect.height})));if(t.length&&t[0].start>0){const r=t[0];n.unshift({type:"rect",fill:"none",data:{source:{field:e},value:[this.scale.domain()[0],r.data.start]},x:0,y:0,width:r.start*this.rect.width,height:this.rect.height})}return n}};function $m(e,t=1){if(t%2==0)return e;let n=Math.round(e);return e-n>0?n+=.5:n-=.5,n}function Vm(e,t){const{localProps:{size:n},props:{anchor:r}}=t,o=function({props:e,localProps:{size:t},style:n,renderer:r}){const o=e.label.padding,i=Math.max(0,Math.min(e.label.justify,1)),a=Math.max(0,Math.min(e.label.align,1)),s=e=>r.measureText({text:e,fontSize:n.label.fontSize,fontFamily:n.label.fontFamily});return{resolve:(e,r)=>{const l="string"==typeof e.label?e.label:"",c=s(l);let{x:u,width:d}=r;e.start===e.end&&(d=c.width+2*o,1===e.end&&(u-=d));const p={x:u+o,y:o,width:d-2*o,height:t.height-2*o},f=s(`${l[0]}…`).width,m=Math.max(0,p.width-c.width),h=Math.max(0,p.height-c.height),g=i*m,y=a*h;return{show:p.width>=Math.min(f,c.width),text:l,dx:g,dy:y,rect:p,style:n.label,segment:{x:u+g,width:c.width+2*o},tickValue:e.value}}}}(t),i=function({localProps:{size:e},style:t,scale:n,props:r}){const[o,i]=n.domain(),a=Math.max(0,Math.min(1,r.guideLine.major.justify));return{resolve:(n,r)=>{const s=a*r.width,l=$m(r.x+s,t.majorGuideLine.strokeWidth);return{show:n.value>=o&&n.value<=i,x1:l,y1:0,x2:l,y2:$m(e.height,t.majorGuideLine.strokeWidth),style:t.majorGuideLine,tickValue:n.value}}}}(t),a=e.map((e=>{const t=function(e,t,n){const r=Math.abs(Math.max(e.start,0)-Math.min(e.end,1))*t.width;return{x:Math.max(e[n],0)*t.width,y:0,width:r,height:t.height}}(e,n,r);return{rect:t,label:o.resolve(e,t),guideLine:i.resolve(e,t)}}));return function(e,t){const n=e.length;if(n<2)return;const r=e[n-1],o=t[n-1].label;if(r&&r.start===r.end)for(let e=n-2;e>-1;e--){const n=t[e].label;n.show=n.show&&(i=n.segment,a=o.segment,!(i.x<a.x?i.x+i.width>=a.x:a.x+a.width>=i.x))}var i,a}(e,a),a}function Wm(e,t){const n=function({localProps:{size:e},props:t,style:n}){return{resolve:r=>{const o=Math.max(e.height-t.guideLine.minor.size,0)*Math.max(0,Math.min(t.guideLine.minor.align,1)),i=$m(r.position*e.width,n.minorGuideLine.strokeWidth);return{guideLine:{show:!0,x1:i,y1:$m(o,n.minorGuideLine.strokeWidth),x2:i,y2:$m(t.guideLine.minor.size+o,n.minorGuideLine.strokeWidth),style:n.minorGuideLine}}}}}(t);return t.props.guideLine.minor.show?e.map(n.resolve):[]}function Um(e){return e.filter((e=>e.show)).map((e=>he({strokeWidth:1},e.style,{type:"line",x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,tickValue:e.tickValue})))}var Km={require:["renderer"],defaultSettings:{layout:{displayOrder:0,prioOrder:0},settings:{anchor:"start",label:{show:!0,padding:4,align:0,justify:0},line:{show:!0},guideLine:{major:{justify:0},minor:{show:!0,size:4,align:0}}},style:{label:"$label",line:"$guide-line",majorGuideLine:"$guide-line",minorGuideLine:"$guide-line"}},preferredSize:()=>({size:30,edgeBleed:{left:1,right:1}}),init(){this.props=this.settings.settings,this.localProps={},this.state={major:[],minor:[]}},created(){this.init()},beforeUpdate(){this.init()},beforeRender({size:e}){this.localProps.size=e;const t=this.scale.ticks({distance:e.width}),n=t.filter((e=>!e.isMinor)),r=t.filter((e=>e.isMinor));this.state.line=function({localProps:{size:e},style:t,props:n}){const r=$m(1,t.line.strokeWidth);return{show:n.line.show,x1:$m(0,t.line.strokeWidth),y1:r,x2:$m(e.width,t.line.strokeWidth),y2:r,style:t.line}}(this),this.state.major=Vm(n,this),this.state.minor=Wm(r,this)},render(){return[...Um([this.state.line]),...(e=this.state.major.map((e=>e.label)),e.filter((e=>e.show)).map((e=>he({},e.style,{type:"text",x:e.rect.x,y:e.rect.y,dx:e.dx,dy:e.dy,maxWidth:e.rect.width,text:e.text,title:e.text,baseline:"text-before-edge",tickValue:e.tickValue})))),...Um(this.state.major.map((e=>e.guideLine))),...Um(this.state.minor.map((e=>e.guideLine)))];var e}};function Gm(e,t){return e&&t&&e.qTicks.length===t.qTicks.length&&e.qTicks.every(((e,n)=>e.qStart===t.qTicks[n].qStart&&e.qEnd===t.qTicks[n].qEnd))}function Ym(e){return e.qTags.indexOf("$qualified")>-1}function Xm({qAxis:e}){const t=[],n=[];for(let r=0;r<e.length;r++){const o=r+1,i=e[r],a=e[o];Gm(i,a)?(Ym(a)?(t.push(o),n.push(r)):(t.push(r),n.push(o)),r++):(t.push(r),n.push(r))}return{qualified:t,nonQualified:n}}function Jm({qualifiedMeta:e,nonQualifiedMeta:t}){return{resolve(n){let r,o=NaN,i=NaN,a=NaN,s=!1;for(let l=e.length-1;l>=0;l--){const c=e[l];if(c.queries.outer(n)){const e=t[l+1];if(o=c.index,r=l,c.attrs.isDayOrShorter()&&c.queries.canFitHalfDayTicks(n)){i="auto",s=!0;break}if(e&&e.queries.inner(n)){i=e.index;const r=t[l+2];r&&r.queries.minor(n)&&(a=r.index);break}}}if(!Number.isNaN(o)&&Number.isNaN(i)&&"auto"!==i){i=o,o=NaN;const e=t[r+1];e&&e.queries.minor(n)&&(a=e.index)}else Number.isNaN(o)&&(o="auto",i="auto");return{outer:o,inner:i,minor:a,isDayOrShorter:s}}}}function Zm({qTicks:e,measureText:t=()=>({width:0}),cache:n={},scale:r}){const o=n;return{isDayOrShorter:()=>(o.isDayOrShorter=e.length>0&&Math.abs(e[0].qStart-e[0].qEnd)<=1,o.isDayOrShorter),count:()=>e.length,maxRange:()=>(o.maxRange=e.length?Math.max(...e.map((e=>Math.abs(r(e.qStart)-r(e.qEnd))))):0,o.maxRange),rangeAndWidth(){const n=r.clamp();return r.clamp(!1),o.rangeAndWidth=e.map((e=>({range:Math.abs(r(e.qStart)-r(e.qEnd)),width:t(`${e.qText}`).width+16}))),r.clamp(n),o.rangeAndWidth}}}function Qm({attrs:e,reqAutoFitWidth:t}){return{outer:t=>!e.rangeAndWidth().some((({width:e,range:n})=>e>n*t)),inner:t=>!e.rangeAndWidth().some((({width:e,range:n})=>e>n*t)),minor:t=>e.maxRange()*t>=6,canFitHalfDayTicks:n=>n>=t*e.count()}}function eh({qualified:e,nonQualified:t,qAxis:n,measureText:r,reqAutoFitWidth:o,scale:i},{attributesFactory:a=Zm,queryFactory:s=Qm}={attributesFactory:Zm,queryFactory:Qm}){const l=n.map(((e,t)=>function(e,t){const{qTicks:n}=e,l=a({qTicks:n,measureText:r,scale:i});return{data:e,index:t,attrs:l,queries:s({attrs:l,reqAutoFitWidth:o})}}(e,t))),c=e.map((e=>l[e])),u=t.map((e=>l[e]));return{qAxisMeta:l,qualifiedMeta:c,nonQualifiedMeta:u}}function th({qAxis:e=[],measureText:t=()=>({width:0}),cache:n={},reqAutoFitWidth:r=0,scale:o},{metaFactory:i=eh,mapper:a=Xm,resolver:s=Jm}={metaFactory:eh,mapper:Xm,resolver:Jm}){const{qualified:l,nonQualified:c}=a({qAxis:e}),{qualifiedMeta:u,nonQualifiedMeta:d}=i({qAxis:e,qualified:l,nonQualified:c,measureText:t,reqAutoFitWidth:r,scale:o}),p=s({qualifiedMeta:u,nonQualifiedMeta:d});return{resolve:t=>{const r=n.key({distance:t});if(n.get(r))return n.get(r);if(function(e){return!Array.isArray(e)||0===e.length||e.every((e=>0===e.qTicks.length))}(e))return{outer:"auto",inner:"auto",minor:NaN,isDayOrShorter:!1};const o=p.resolve(t);return n.set(r,o),o}}}function nh(e){return new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,0,Math.round(864e5*(e-Math.floor(e)))))}const rh=nh(0).getTime();function oh(e){return(e.getTime()-rh)/86400/1e3}const ih=new Date,ah=new Date;function sh(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=t=>(e(t=new Date(+t)),t),o.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),o.round=e=>{const t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),o.range=(n,r,i)=>{const a=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return a;let s;do{a.push(s=new Date(+n)),t(n,i),e(n)}while(s<n&&n<r);return a},o.filter=n=>sh((t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),((e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})),n&&(o.count=(t,r)=>(ih.setTime(+t),ah.setTime(+r),e(ih),e(ah),Math.floor(n(ih,ah))),o.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?t=>r(t)%e==0:t=>o.count(0,t)%e==0):o:null)),o}const lh=1e3,ch=6e4,uh=36e5,dh=864e5,ph=6048e5,fh=sh((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*lh)}),((e,t)=>(t-e)/lh),(e=>e.getUTCSeconds()));fh.range;const mh=sh((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*lh)}),((e,t)=>{e.setTime(+e+t*ch)}),((e,t)=>(t-e)/ch),(e=>e.getMinutes()));mh.range;const hh=sh((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*ch)}),((e,t)=>(t-e)/ch),(e=>e.getUTCMinutes()));hh.range;const gh=sh((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*lh-e.getMinutes()*ch)}),((e,t)=>{e.setTime(+e+t*uh)}),((e,t)=>(t-e)/uh),(e=>e.getHours()));gh.range;const yh=sh((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*uh)}),((e,t)=>(t-e)/uh),(e=>e.getUTCHours()));yh.range;const vh=sh((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ch)/dh),(e=>e.getDate()-1));vh.range;const bh=sh((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/dh),(e=>e.getUTCDate()-1));bh.range;const xh=sh((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/dh),(e=>Math.floor(e/dh)));function Sh(e){return sh((t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),((e,t)=>{e.setDate(e.getDate()+7*t)}),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ch)/ph))}xh.range;const Mh=Sh(0),Ch=Sh(1),wh=Sh(2),kh=Sh(3),Eh=Sh(4),Th=Sh(5),qh=Sh(6);function Lh(e){return sh((t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)}),((e,t)=>(t-e)/ph))}Mh.range,Ch.range,wh.range,kh.range,Eh.range,Th.range,qh.range;const Nh=Lh(0),Oh=Lh(1),Dh=Lh(2),Ah=Lh(3),Rh=Lh(4),Ph=Lh(5),Ih=Lh(6);Nh.range,Oh.range,Dh.range,Ah.range,Rh.range,Ph.range,Ih.range;const zh=sh((e=>{e.setDate(1),e.setHours(0,0,0,0)}),((e,t)=>{e.setMonth(e.getMonth()+t)}),((e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())),(e=>e.getMonth()));zh.range;const jh=sh((e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)}),((e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())),(e=>e.getUTCMonth()));jh.range;const Fh=sh((e=>{e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,t)=>{e.setFullYear(e.getFullYear()+t)}),((e,t)=>t.getFullYear()-e.getFullYear()),(e=>e.getFullYear()));Fh.every=e=>isFinite(e=Math.floor(e))&&e>0?sh((t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,n)=>{t.setFullYear(t.getFullYear()+n*e)})):null,Fh.range;const Bh=sh((e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)}),((e,t)=>t.getUTCFullYear()-e.getUTCFullYear()),(e=>e.getUTCFullYear()));Bh.every=e=>isFinite(e=Math.floor(e))&&e>0?sh((t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null,Bh.range;const _h=1,Hh=2,$h=3,Vh=4,Wh=5,Uh=6;function Kh({timeScale:e,labels:t,distance:n,isDayOrShorter:r,cache:o,timeOnly:i,initialMin:a}){const[s,l]=e.domain(),c=o.key({distance:n});let u;o.get(c,1)?u=o.get(c,1):(u=function(e,t,n,r,o,i){function a(e){return Bh.filter((t=>(t.getUTCFullYear()-i.getUTCFullYear())%e==0))}const s=fh.count(e,t),l=hh.count(e,t),c=yh.count(e,t),u=bh.count(e,t),d=Nh.count(e,t),p=jh.count(e,t),f=Bh.count(e,t),m=n/r.second.width-1,h=n/r.minute.width-1,g=n/r.date.width-1,y=n/r.year.width-1,v={type:"year",desc:"year",count:f,interval:Bh.every(1),formatter:r.year.formatter,offset:e=>Bh.offset(e,-1),floor:Bh.floor};if(s<=m)v.type=_h,v.desc="second",v.count=s,v.interval=fh.every(1),v.formatter=r.second.formatter,v.offset=e=>fh.offset(e,-1),v.floor=fh.floor;else if(s/2<=m)v.type=_h,v.desc="every other second",v.count=s/2,v.interval=fh.every(2),v.formatter=r.second.formatter,v.offset=e=>fh.offset(e,-2),v.floor=fh.floor;else if(s/5<=m)v.type=_h,v.desc="every 5 second",v.count=s/5,v.interval=fh.every(5),v.formatter=r.second.formatter,v.offset=e=>fh.offset(e,-5),v.floor=fh.floor;else if(s/15<=m)v.type=_h,v.desc="every 15 second",v.count=s/15,v.interval=fh.every(15),v.formatter=r.second.formatter,v.offset=e=>fh.offset(e,-15),v.floor=fh.floor;else if(s/30<=m)v.type=_h,v.desc="every 30 second",v.count=s/30,v.interval=fh.every(30),v.formatter=r.second.formatter,v.offset=e=>fh.offset(e,-30),v.floor=fh.floor;else if(l<=h)v.type=Hh,v.desc="minute",v.count=l,v.interval=hh.every(1),v.formatter=r.minute.formatter,v.offset=e=>hh.offset(e,-1),v.floor=hh.floor;else if(l/2<=h)v.type=Hh,v.desc="every 2 minute",v.count=l/2,v.interval=hh.every(2),v.formatter=r.minute.formatter,v.offset=e=>hh.offset(e,-2),v.floor=hh.floor;else if(l/5<=h)v.type=Hh,v.desc="every 5 minute",v.count=l/5,v.interval=hh.every(5),v.formatter=r.minute.formatter,v.offset=e=>hh.offset(e,-5),v.floor=hh.floor;else if(l/10<=h)v.type=Hh,v.desc="every 10 minute",v.count=l/10,v.interval=hh.every(10),v.formatter=r.minute.formatter,v.offset=e=>hh.offset(e,-10),v.floor=hh.floor;else if(l/15<=h)v.type=Hh,v.desc="every 15 minute",v.count=l/15,v.interval=hh.every(15),v.formatter=r.minute.formatter,v.offset=e=>hh.offset(e,-15),v.floor=hh.floor;else if(l/30<=h)v.type=Hh,v.desc="every 30 minute",v.count=l/30,v.interval=hh.every(30),v.formatter=r.minute.formatter,v.offset=e=>hh.offset(e,-30),v.floor=hh.floor;else if(c<=h)v.type=$h,v.desc="hour",v.count=c,v.interval=yh.every(1),v.formatter=r.minute.formatter,v.offset=e=>yh.offset(e,-1),v.floor=yh.floor;else if(c/2<=h)v.type=$h,v.desc="every 2 hour",v.count=c/2,v.interval=yh.every(2),v.formatter=r.minute.formatter,v.offset=e=>yh.offset(e,-2),v.floor=yh.floor;else if(c/3<=h)v.type=$h,v.desc="every 3 hour",v.count=c/3,v.interval=yh.every(3),v.formatter=r.minute.formatter,v.offset=e=>yh.offset(e,-3),v.floor=yh.floor;else if(c/6<=h)v.type=$h,v.desc="every 6 hour",v.count=c/6,v.interval=yh.every(6),v.formatter=r.minute.formatter,v.offset=e=>yh.offset(e,-6),v.floor=yh.floor;else if(c/12<=h||o)v.type=$h,v.desc="every 12 hour",v.count=c/12,v.interval=yh.every(12),v.formatter=r.minute.formatter,v.offset=e=>yh.offset(e,-12),v.floor=yh.floor;else if(u<=g)v.type=Vh,v.desc="day",v.count=u,v.interval=bh.every(1),v.formatter=r.date.formatter,v.offset=e=>bh.offset(e,-1),v.floor=bh.floor;else if(u/2<=g)v.type=Vh,v.desc="every 2 day",v.count=u/2,v.interval=bh.every(2),v.formatter=r.date.formatter,v.offset=e=>bh.offset(e,-2),v.floor=bh.floor;else if(u/3<=g)v.type=Vh,v.desc="every 3 day",v.count=u/3,v.interval=bh.every(3),v.formatter=r.date.formatter,v.offset=e=>bh.offset(e,-3),v.floor=bh.floor;else if(d<=g)v.type=Vh,v.desc="week",v.count=d,v.interval=Nh.every(1),v.formatter=r.date.formatter,v.offset=e=>Nh.offset(e,-1),v.floor=bh.floor;else if(d/2<=g)v.type=Vh,v.desc="every 2 week",v.count=d/2,v.interval=Nh.every(2),v.formatter=r.date.formatter,v.offset=e=>Nh.offset(e,-2),v.floor=bh.floor;else if(p<=g)v.type=Wh,v.desc="month",v.count=p,v.interval=jh.every(1),v.formatter=r.date.formatter,v.offset=e=>jh.offset(e,-1),v.floor=bh.floor;else if(p/3<=g)v.type=Wh,v.desc="quarter",v.count=p/3,v.interval=jh.every(3),v.formatter=r.date.formatter,v.offset=e=>jh.offset(e,-3),v.floor=bh.floor;else if(p/6<=g)v.type=Wh,v.desc="half year",v.count=p/6,v.interval=jh.every(6),v.formatter=r.date.formatter,v.offset=e=>jh.offset(e,-6),v.floor=bh.floor;else if(f<=y)v.type=Uh,v.desc="year",v.count=f,v.interval=Bh.every(1),v.formatter=r.year.formatter,v.offset=e=>Bh.offset(e,-1),v.floor=Bh.floor;else if(f/2<=y)v.type=Uh,v.desc="every 2 year",v.count=f/2,v.interval=a(2),v.formatter=r.year.formatter,v.offset=e=>Bh.offset(e,-2),v.floor=Bh.floor;else if(f/5<=y)v.type=Uh,v.desc="every 5 year",v.count=f/5,v.interval=a(5),v.formatter=r.year.formatter,v.offset=e=>Bh.offset(e,-5),v.floor=Bh.floor;else if(f/10<=y)v.type=Uh,v.desc="every 10 year",v.count=f/10,v.interval=a(10),v.formatter=r.year.formatter,v.offset=e=>Bh.offset(e,-10),v.floor=Bh.floor;else{const e=Math.max(1,Math.floor(f/y));v.type=Uh,v.desc="every nth year",v.count=e,v.interval=a(e),v.formatter=r.year.formatter,v.offset=t=>Bh.offset(t,-e),v.floor=Bh.floor}return v}(s,l,n,t.all(),r,a),o.set(c,u,1));const d=e.ticks(u.interval);d.length?s.getTime()!==d[0].getTime()&&d.unshift(u.offset(d[0])):d.push(u.floor(s));const p=d.map(((e,t,n)=>{const r=n[t+1]?n[t+1]-e:l-e;return{start:e,end:new Date(e.getTime()+r),formatter:u.formatter}}));let f=[];if(!i&&u.type<=$h){const n=t.getFormat("date"),r=e.ticks(bh.every(1));r.length&&s.getUTCDate()!==r[0].getUTCDate()&&r.unshift(bh.offset(r[0],-1)),f=(r.length?r:[bh.floor(s)]).map(((e,t,r)=>{const o=r[t+1]?r[t+1]-e:l-e;return{start:e,end:new Date(e.getTime()+o),formatter:n.formatter}}))}return{inner:p,outer:f}}const Gh=86400,Yh=1440,Xh={};function Jh(e,t,n,r){return{type:e,start:new Date(Date.UTC(...t)),end:new Date(Date.UTC(...n)),formatter:r}}function Zh(e,t,n){const{generator:r,anchor:o,clamp:i,level:a}=t.ticks,{qNumFormat:s}=t.formatter;e.clamp(i);const[l,c]=e.domain(),u=Pi().domain([nh(l),nh(c)]);u.clamp(i),u.range(t.invert?[1,0]:[0,1]);const d="object"==typeof r?r:{type:r};let p;p="d3"===d.type?(e,o)=>Kh({timeScale:u,labels:n,distance:e,isDayOrShorter:o,cache:t.cache,timeOnly:"T"===s.qType,initialMin:void 0===d.initialMin?u.domain()[0]:nh(r.initialMin)}):e=>function(e,t,n,r,o,i=!1){if(Xh[[t,n,r,r,i]])return Xh[[t,n,r,r,i]];const a={year:e.getFormat("year"),date:e.getFormat("date"),minute:e.getFormat("minute"),second:e.getFormat("second")},s=nh(n),l=s.getFullYear(),c=s.getMonth(),u=s.getDate(),d=r-n,p=t/(o-r),f=p/1440,m=p/Gh,h=366*p,g=3*p*30,y=a.second.width/m,v=a.minute.width/f,b=a.date.width/g,x=a.year.width/h;let S,M,C,w=0,k=0,E=null,T=null,q=null,L=null,N=null,O=null;const D={outer:[],inner:[]};for(y<1?(E=1,k=1/Gh):y<2?(E=2,k=1/Gh*2):y<5?(E=5,k=1/Gh*5):y<10?(E=10,k=1/Gh*10):y<30?(E=30,k=1/Gh*30):v<1?(T=1,k=1/Yh):v<2?(T=2,k=1/Yh*2):v<5?(T=5,k=1/Yh*5):v<10?(T=10,k=.006944444444444445):v<30?(T=30,k=.020833333333333336):v<60?(q=1,k=1/24):v<120?(q=2,k=2/24):v<360?(q=6,k=.25):v<720?(q=12,k=.5):b<1/90?(k=1,L=1):b<2/90?(k=2,L=2):b<7/90?(k=7,L=7):b<31/90?(N=1,k=31):b<1?(N=3,k=90):x<1?(O=1,k=366):x<2?(O=2,k=732):x<5?(O=5,k=1826.25):(O=10,k=3652.5),M=Math.floor((d+n%1)/k);w<o;){C=M+1,S=O?Jh("year",[l+M*O,0,1],[l+C*O,0,1],a.year.formatter):N?Jh("month",[l,c+M*N,1],[l,c+C*N,1],a.date.formatter):L?Jh("day",[l,c,u+M*L],[l,c,u+C*L],a.date.formatter):q?Jh("hour",[l,c,u,0+M*q],[l,c,u,0+C*q],a.minute.formatter):T?Jh("minute",[l,c,u,0,0+M*T],[l,c,u,0,0+C*T],a.minute.formatter):Jh("second",[l,c,u,0,0,0+M*E],[l,c,u,0,0,0+C*E],a.second.formatter),w=oh(S.start),D.inner.push(S);const e=Math.floor(w);if(!(i||O||N||L)){const t={type:"day",start:nh(e),end:nh(e+1),formatter:a.date.formatter,qStart:e};D.outer[D.outer.length-1]&&D.outer[D.outer.length-1].qStart===t.qStart||D.outer.push(t)}M++}return D.min=r,D.max=o,Xh[[t,n,r,r,i]]=D,D}(n,e,d.min,l,c,"T"===s.qType);const f={transform:(t=[],{isMinor:n=!1}={})=>t.map((t=>{let r;r="start"===o?t.qStart:"end"===o?t.qEnd:(t.qStart+t.qEnd)/2;const i=e.clamp();n&&e.clamp(!1);const a=e(r),s=e(t.qStart),l=e(t.qEnd);return e.clamp(i),{value:r,position:a,start:s,end:l,label:t.qText,isMinor:n,data:n?void 0:{start:t.qStart,end:t.qEnd,scaleStart:e.domain()[0]}}})).filter((e=>e.position>=0&&e.position<=1)),generate:(t=100,n)=>p(t,n)[a].map((t=>{let n;return n="start"===o?oh(t.start):"end"===o?oh(t.end):(oh(t.start)+oh(t.end))/2,{position:u(t.start),start:u(t.start),end:u(t.end),value:n,label:t.formatter(n),isMinor:!1,data:{start:oh(t.start),end:oh(t.end),scaleStart:e.domain()[0]}}})).filter((e=>e.position>=0&&e.position<=1))};return f}const Qh=/t+/i;const eg={min:NaN,max:NaN,invert:!1,qAxis:[],field:void 0,formatter:{fn:()=>e=>e,measureText:()=>({width:0,height:0}),localeInfo:{},qNumFormat:{}},ticks:{generator:"d3",level:"outer",anchor:void 0,clamp:!1},cache:{get:()=>!1,set:()=>{},key:()=>""}};function tg(e,t){e.instance||(e.instance=t.copy(),e.instance.domain(t.domain()),e.instance.clamp(!0),e.instance.range(e.invert?[1,0]:[0,1]))}const ng="continuousPan";var rg={model:function({model:e,layoutService:t,largeDataService:n,dataProcessorModel:r=_m,viewCache:o,viewState:i,definitionPath:a},s={}){const{engineFetcherFactory:l=Lm,snapshotFetcherFactory:c=Om,cacheFetcherFactory:u=Nm,cache:d={initial:{},merged:{}}}=s,p=l({model:e,layoutService:t,largeDataService:n,definitionPath:a}),f=c({layoutService:t,viewCache:o}),m=u({cache:d}),h=e=>{throw e.isHandled=!0,e};let g,y,v;return{update(e){var n,r;({initialMin:y,initialMax:v}=function(e={}){let{qMin:t,qMax:n}=e;return t=Number.isNaN(+t)?0:t,n=Number.isNaN(+n)?0:n,{initialMin:t,initialMax:n}}(e.qHyperCube.qDimensionInfo[0])),o.set("continuousMin",y),o.set("continuousMax",v),o.set("minimiumZoomSpan",(n=y,r=v,Math.max(1e-6,(r-n)*jm))),g=t.meta.isSnapshot?f:p,t.meta.isSnapshot&&({zoom:{min:y,max:v}}=f.getSnapshotData()),i.preventSet("zoom",{min:y,max:v})},updateLayout(e){const{qDataPages:n,qAxisData:r}=e;return t.setHyperCubeValue("qDataPages",n),t.setHyperCubeValue("qAxisData",r),t.setHyperCubeValue("qMode","S"),t.setHyperCubeValue("qColumnOrder",[]),e},initialFetch(){return g.fetch(y,v).then((e=>{const t=function(e){return{qDataPages:e.qDataPages.map((e=>{const t=Rm(e.qArea,e.qMatrix);return{...e,qArea:t}})),qAxisData:e.qAxisData}}(e);return r.command.processDataPage({dataPage:t.qDataPages.length?t.qDataPages[0]:[]}),d.initial=t,d.merged=t,e})).then((e=>Pm(y,v,e))).then((e=>this.updateLayout(e))).catch(h)},fetch:(e,t)=>g.fetch(e,t).then((e=>function(e,t){const n={};return n.qDataPages=(e.qDataPages||[]).map(((e,n)=>{const r=function(e,t){if(!t||!t.length||!t[0].length)return e;const n=t[0][0].qNum,r=t[t.length-1][0].qNum,o=[],i=[];for(let t=0,a=e.length;t<a;t++){const a=e[t][0];a.qNum<n?o.push(e[t]):a.qNum>r&&i.push(e[t])}return[...o,...t,...i]}(e.qMatrix,t.qDataPages[n].qMatrix),o=Rm(e.qArea,r);return{...e,qArea:o,qMatrix:r}})),e.qAxisData&&e.qAxisData.qAxis&&(n.qAxisData=function(e,t){if(!t||!t.qAxis.length||t.qAxis.every((e=>!e.qTicks.length)))return e;const n=t.qAxis.map((e=>e.qName)),r=t.qAxis.map((e=>({start:e.qTicks[0].qStart,end:e.qTicks[e.qTicks.length-1].qStart}))),o=t.qAxis.map((e=>({qName:e.qName,qTags:[...e.qTags],qTicks:[...e.qTicks]})));for(let t=0,i=e.qAxis.length;t<i;t++){const i=e.qAxis[t],a=n.indexOf(i.qName),s=[],l=[];if(a>-1){const{start:e,end:t}=r[a];for(let n=0,r=i.qTicks.length;n<r;n++){const r=i.qTicks[n];r.qStart<e?s.push(r):r.qStart>t&&l.push(r)}o[a].qTicks=[...s,...o[a].qTicks,...l]}}return{qAxis:o}}(e.qAxisData,t.qAxisData)),n}(d.initial,e))).then((e=>(r.command.processDataPage({dataPage:e.qDataPages.length?e.qDataPages[0]:[]}),d.merged=e,e))).then((n=>Pm(e,t,n))).catch(h),fetchFromCache:(e,t)=>m.fetch(e,t).then((n=>Pm(e,t,n))),fetchMinMaxData:()=>Promise.resolve(d.initial.qDataPages||[]),getInitialCube(){const e=t.getHyperCube();return he({},e,{...d.initial})},getInitialLayout(){const e=this.getInitialCube();return he({},t.getLayout(),{qHyperCube:e})},getDimensionCardinality:()=>Bm(d.initial,t.meta),setSnapshotData(e){const{qHyperCube:t}=e,n=r.query.getShouldProcess()?[r.query.getFilteredDataPage({dataPage:d.merged.qDataPages[0]})]:d.merged.qDataPages;t.qDataPages=n,t.qAxisData=d.merged.qAxisData}}},event:{onZoomChange:function(e,t){const{layoutService:n,continuousDataModel:r}=e;function o(e,n,o){return r[e](n,o).then((e=>(r.updateLayout(e),t(),e)))}const i=a(((e,t)=>o("fetch",e,t)),50);return({min:e,max:t},{min:r,max:a})=>!n.meta.isContinuous||e===r&&t===a?Promise.resolve(null):o("fetchFromCache",e,t).then((n=>(i(e,t),n)))},onZoomIntercept:function({viewCache:e}){let t=NaN,n=NaN,r=NaN;return(o,i)=>(t=e.get("continuousMin"),n=e.get("continuousMax"),r=e.get("minimiumZoomSpan"),Math.abs(o.max-o.min)<r?i:{min:Math.min(o.max,Math.max(t,o.min)),max:Math.max(o.min,Math.min(n,o.max))})},onZoom:function({viewCache:e,viewState:t,chart:n},{threshold:r=50,rtl:o=!1,targetKey:i}){const a=e.get("continuousMin"),l=e.get("continuousMax");return s(((e,r)=>{const s=(e=>n.componentsFromPoint(e).filter((e=>e.key===i))[0])(e);if(s){const i=function(e,t,n){let{x:r}=e;return r-=t.element.getBoundingClientRect().left,r-=n.rect.x,Math.max(0,Math.min(1,r/n.rect.width))}(e,n,s),c=o?1-i:i,{min:u,max:d}=t.get("zoom"),p=Math.abs(d-u),f=p-(r>0?zm:Im)*p,m=u+f*c,h=d-f*(1-c),g=m<a?a-m:0,y=h>l?h-l:0;t.set("zoom",{min:Math.max(m-y,a),max:Math.min(h+g,l)})}}),r)}},interactions:{areaPan:function({targetKey:e,chart:t,actions:n,viewState:r,viewCache:o}){return{type:"Pan",key:"continuous:pan",options:{event:ng,pointers:1,threshold:10,enable(r,o){return this.started===ng||!o||!!n.scroll.enabled()&&t.componentsFromPoint({x:o.center.x,y:o.center.y}).some((t=>t.key===e))}},events:{[`${ng}start`](n){n.preventDefault(),this.started=ng;const{min:o,max:i}=r.get("zoom");this[ng]={min:o,max:i,size:t.component(e).rect.computedInner.width,span:i-o}},[`${ng}move`](e){e.preventDefault();const{span:t,min:n,max:i,size:a}=this[ng],s=-e.deltaX/a;r.set("zoom",{min:Math.min(n+s*t,o.get("continuousMax")-t),max:Math.max(i+s*t,o.get("continuousMin")+t)})},[`${ng}end`](e){e.preventDefault(),this.started=!1},[`${ng}cancel`](e){e.preventDefault(),this.started=!1}}}}},picassoComponents:{axisOverlay:Hm,timeAxis:Km},picassoScales:{time:function e(t,n={}){const r=function(e,t,n){const r={};return Object.keys(t).forEach((o=>{const i=e[o],a=typeof i;"function"===a?r[o]=i(n):"object"!==a||Array.isArray(i)?r[o]="undefined"===a?t[o]:i:r[o]=he(!0,{},t[o],i)})),r}(t,eg,n),{qAxis:i}=r,a=wr(),s={instance:null,invert:!1},{min:l,max:c}=function(e,t){let n=+e.min,r=+e.max;return Number.isNaN(n)&&Number.isNaN(r)&&Array.isArray(t)&&t.length&&(n=Math.min(...t[t.length-1].qTicks.map((e=>e.qStart))),r=Math.max(...t[t.length-1].qTicks.map((e=>e.qEnd)))),n===r&&(n-=.5,r+=.5),{min:Number.isNaN(+n)?0:n,max:Number.isNaN(+r)?1:r}}(r,i);let u,d,p=[];const f=function(e){return Number.isNaN(+e)?NaN:a(e)};f.ticks=({distance:e,resolve:t=u.resolve}={})=>{const n=t(e),o=n[r.ticks.level];if(Number.isNaN(+o)||(p=d.transform(i[o].qTicks,{isMinor:!1})),!Number.isNaN(+n.minor)){const e=d.transform(i[n.minor].qTicks,{isMinor:!0});p=p.concat(e)}return"auto"===o&&(p=d.generate(e,n.isDayOrShorter)),p},f.invert=e=>a.invert(e),f.domain=e=>Array.isArray(e)?a.domain(e):a.domain(),f.range=e=>Array.isArray(e)?a.range(e):a.range(),f.norm=e=>(tg(s,f),s.instance(e)),f.normInvert=e=>(tg(s,f),s.instance.invert(e)),f.copy=()=>e(t,n),f.clamp=(e=!0)=>(a.clamp(e),a.clamp()),f.min=()=>Math.min(l,c),f.max=()=>Math.max(l,c),a.range(r.invert?[1,0]:[0,1]),a.domain([l,c]),s.invert=r.invert;const m=function(e){const t={},{measureText:n,fn:r,localeInfo:o}=e.formatter,i={second:{type:"second",pattern:"hh:mm:ss",width:60,formatter:void 0},minute:{type:"minute",pattern:"hh:mm",width:60,formatter:void 0},date:{type:"date",pattern:"YYYY-MM-DD",width:60,formatter:void 0},year:{type:"year",pattern:"YYYY",width:60,formatter:void 0}};return o&&Qh.test(o.qTimestampFmt)&&(i.minute.pattern+=" tt",i.second.pattern+=" tt"),i.date.pattern=o&&o.qDateFmt?o.qDateFmt:i.date.pattern,Object.keys(i).forEach((e=>{i[e].formatter=r(i[e].pattern),i[e].width=Math.max(i[e].width,n(i[e].formatter(41000.2343433)).width+16)})),t.getFormat=e=>i[e],t.all=()=>i,t.getFormatFromTicks=e=>{const t=e.filter((e=>!e.isMinor)),{length:n}=t;if(!n)return i.date;const r=nh(t[0].data.start),o=nh(t[n-1].data.start);return bh.count(r,o)/n>=1?i.date:yh.count(r,o)/n>0?i.minute:hh.count(r,o)/n>0?i.second:i.date},t}(r);return d=Zh(a.copy(),r,m),u=th({qAxis:i,measureText:r.formatter.measureText,reqAutoFitWidth:2*m.getFormat("minute").width,cache:r.cache,scale:f}),f.data=()=>({fields:[{formatter:f.formatter,id:()=>`qHyperCube/${r.field}`,key:()=>r.field,raw:o(n,"fields.0.raw",(()=>({})))}]}),f.formatter=()=>m.getFormatFromTicks(p).formatter,f}}};const og={MINI_CHART:{value:"miniChart",translation:"properties.scrollbar.miniChart"},BAR:{value:"bar",translation:"properties.scrollbar.bar"},NONE:{value:"none",translation:"properties.scrollbar.none"}};var ig={OPTIONS:og,DEFAULT:og.MINI_CHART};function ag({layoutService:e,discrete:t}){return({h:n,rect:r,orientation:o,minThumbSize:i})=>{const a=t.query.getCurrentDataPage(),s=e.meta.size.y,l="horizontal"===o,c=r[l?"width":"height"];let u=a.qArea.qTop/s*c,d=a.qArea.qHeight/s*c;if(d<i){const e=(i-d)/2;u=u-e+(Math.max(0,0-(u-e))-Math.max(0,u+d+e-c)),d=i}return n("div",{style:{position:"absolute",right:0,bottom:0,background:"red",opacity:.2,...l?{top:0,left:u,width:d}:{top:u,left:0,height:d}}})}}function sg({layoutService:e,viewState:t,viewCache:n}){return e.meta.isContinuous?function(e,t){const n=e.get("zoom"),r=t.get("continuousMin"),o=t.get("continuousMax");return[(n.min-r)/(o-r),(n.max-r)/(o-r)]}(t,n):function(e){return e.get("viewRange")}(t)}const lg=e=>({miniChart:e===ig.OPTIONS.MINI_CHART.value,bar:e===ig.OPTIONS.BAR.value,none:e===ig.OPTIONS.NONE.value});function cg({layoutService:e,override:t}){const n=(({layoutService:e})=>{const t=e.getLayoutValue("scrollbar");if(t)return lg(t);const n=e.getLayoutValue("showMiniChartForContinuousAxis");if(void 0===n)return lg(ig.DEFAULT.value);const r=e.getLayoutValue("dimensionAxis.continuousAuto"),o=e.getLayoutValue("preferContinuousAxis");return lg(!n&&(r||!r&&o)?ig.OPTIONS.NONE.value:ig.OPTIONS.MINI_CHART.value)})({layoutService:e});return t&&t.predicate({layoutService:e,scrollbar:n})&&(n.miniChart=t.value===ig.OPTIONS.MINI_CHART.value,n.bar=t.value===ig.OPTIONS.BAR.value,n.none=t.value===ig.OPTIONS.NONE.value),n}function ug({layoutService:e,dockService:t,discrete:n,continuousDataModel:r,viewState:o,viewCache:i,themeService:a,rtl:s,scrollbarOverride:l,visualizeCache:c=!1,deviceType:u}){const d=cg({layoutService:e,override:l});if(d.none)return!1;const{orientation:p}=t.meta.major,f={key:"scrollbar",type:"scrollbar",layout:{dock:"horizontal"===p?t.meta.minor.start:t.meta.minor.end,minimumLayoutMode:"XSMALL"},show:()=>e.meta.isContinuous?r.getDimensionCardinality()>1:n.query.getCanScroll(),settings:{orientation:p,rtl:s,isContinuous:e.meta.isContinuous,range:()=>sg({layoutService:e,viewState:o,viewCache:i})}};d.bar&&(f.settings.style="slim",f.settings.size={area:"touch"===u?{max:16,min:16}:{max:8,min:8}},e.meta.isContinuous||(f.settings.size.thumb={min:4}));const m=a.getStyles();return m.color&&(f.style={standard:{thumb:{"border-color":m.color,opacity:.4},before:{background:m.color,opacity:.1},after:{background:m.color,opacity:.1}}}),e.meta.isDiscrete&&c&&(f.settings.injections=()=>[ag({layoutService:e,discrete:n})]),f}function dg({componentKey:e,chart:t,viewState:n,viewCache:r,layoutService:o,dockService:i,rtl:a}){return s=>{const{x:l,y:c}=s.center,u=t.element.getBoundingClientRect(),d=t.component(e),p="horizontal"===i.meta.major.orientation,f=p?l-u.left-d.rect.computedInner.x:c-u.top-d.rect.computedInner.y,m=p?d.rect.computedInner.width:d.rect.computedInner.height,h=p&&a?m-f:f,g=Math.max(0,Math.min(h/m,1)),[y,v]=sg({layoutService:o,viewState:n,viewCache:r}),b=g<y,x=g>v,S=!b&&!x;return{pixel:h,relative:g,thumb:S?h-y*m:0,beforeThumb:b,afterThumb:x,onThumb:S}}}function pg({componentKey:e,chart:t,viewState:n,viewCache:r,layoutService:o,dockService:i}){return()=>{const a=t.component(e),{orientation:s}=i.meta.major,{width:l,height:c}=a.rect.computedInner,u="horizontal"===s?l:c,[d,p]=sg({layoutService:o,viewState:n,viewCache:r});return{size:u,thumbSize:(p-d)*u}}}function fg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}){const c=dg({componentKey:e,chart:t,viewState:r,viewCache:o,layoutService:i,dockService:a,rtl:l}),u=pg({componentKey:e,chart:t,viewState:r,viewCache:o,layoutService:i,dockService:a});return{type:"Tap",options:{event:"scrollbarTap",enable:(r,o)=>!o||!!n.scroll.enabled()&&t.componentsFromPoint({x:o.center.x,y:o.center.y}).some((t=>t.key===e))},events:{scrollbarTap(n){n.preventDefault();const a=c(n);if(i.meta.isContinuous){const e=r.get("zoom"),t=e.max-e.min,n=o.get("continuousMin"),i=o.get("continuousMax"),s=n+(i-n)*a.relative;r.set("zoom",{min:Math.min(s-t/2,i-t),max:Math.max(s+t/2,n+t)})}else{const e=u(),t=a.pixel-e.thumbSize/2,n=Math.max(0,t/e.size);s.command.scrollTo(n)}t.component(e).emit("render")}}}}const mg="data-scrollbar-handle";function hg({e:e}){return(e.srcEvent||e).srcElement.getAttribute(mg)||""}const gg="scrollbarResize";function yg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,rtl:s}){const l=dg({componentKey:e,chart:t,viewState:r,viewCache:o,layoutService:i,dockService:a,rtl:s});return{type:"Pan",key:`event:${gg}`,options:{event:gg,threshold:0,enable(e,t){return!(!i.meta.isContinuous||!n.scroll.enabled())&&(!t||(this[gg]=this[gg]||{},(e=>{const[t]=e.changedPointers;return t&&("pointerdown"===t.type||"mousedown"===t.type)})(t)&&hg({e:t})&&(this[gg].panningEvent=t.srcEvent),!!this[gg].panningEvent))}},events:{[`${gg}start`](n){n.preventDefault(),this[gg]=this[gg]||{},this[gg].panningEvent&&t.component(e).emit("dragStart",this[gg].panningEvent)},[`${gg}move`](n){if(n.preventDefault(),this[gg]=this[gg]||{},!this[gg].panningEvent)return;const i=r.get("zoom"),a=o.get("continuousMin"),s=o.get("continuousMax"),c=o.get("minimiumZoomSpan"),u=(s-a)*l(n).relative+a,d=hg({e:this[gg].panningEvent});let p="start"===d?Math.min(u,i.max):i.min,f="end"===d?Math.max(u,i.min):i.max;p===f&&(p-="start"===d?c:0,f+="end"===d?c:0),r.set("zoom",{min:p,max:f}),t.component(e).emit("render")},[`${gg}end`](n){n.preventDefault(),this[gg]=this[gg]||{},delete this[gg].panningEvent,t.component(e).emit("dragEnd")},[`${gg}cancel`](n){n.preventDefault(),this[gg]=this[gg]||{},delete this[gg].panningEvent,t.component(e).emit("dragEnd")}}}}const vg="scrollbarPan";function bg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}){const c=dg({componentKey:e,chart:t,viewState:r,viewCache:o,layoutService:i,dockService:a,rtl:l}),u=pg({componentKey:e,chart:t,viewState:r,viewCache:o,layoutService:i,dockService:a});return{type:"Pan",key:`event:${vg}`,options:{event:vg,threshold:0,enable(r,o){return this[vg]=this[vg]||{},!(o&&!this[vg].isPanning)||!!n.scroll.enabled()&&((!o||o.target===t.element)&&t.componentsFromPoint({x:o.center.x,y:o.center.y}).some((t=>t.key===e)))}},events:{[`${vg}start`](n){n.preventDefault();const a=c(n);if(this[vg]=this[vg]||{},this[vg].isPanning=!0,t.component(e).emit("lockState"),i.meta.isContinuous){const e=r.get("zoom"),t=e.max-e.min,n=o.get("continuousMin"),i=o.get("continuousMax"),s=n+(i-n)*a.relative;s<e.min?r.set("zoom",{min:Math.min(s,i-t),max:Math.max(s+t,n+t)}):s>e.max&&r.set("zoom",{min:Math.min(s-t,i-t),max:Math.max(s,n+t)}),this[vg].relative=a.relative,this[vg].zoom=r.get("zoom"),this[vg].zoom.span=this[vg].zoom.max-this[vg].zoom.min,this[vg].zoom.fullSpan=i-n}else if(a.onThumb)this[vg].offset=a.thumb;else{const e=u();this[vg].offset=a.beforeThumb?0:e.thumbSize}},[`${vg}move`](n){n.preventDefault();const a=c(n);if(this[vg]=this[vg]||{},i.meta.isContinuous){const e=a.relative-this[vg].relative,{fullSpan:t,span:n,min:i,max:s}=this[vg].zoom,l=o.get("continuousMin"),c=o.get("continuousMax");r.set("zoom",{min:Math.min(i+e*t,c-n),max:Math.max(s+e*t,l+n)})}else{const e=a.pixel-(this[vg].offset||0),t=u(),n=Math.max(0,e/t.size);s.command.scrollTo(n)}t.component(e).emit("render")},[`${vg}end`](n){n.preventDefault(),this[vg]=this[vg]||{},this[vg].isPanning=!1,t.component(e).emit("unlockState")},[`${vg}cancel`](n){n.preventDefault(),this[vg]=this[vg]||{},this[vg].isPanning=!1,t.component(e).emit("unlockState")}}}}function xg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}){return[fg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}),yg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,rtl:l}),bg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l})]}function Sg({componentKey:e,chart:t,actions:n,layoutService:r}){const o=(o,i)=>{if(!r.meta.isContinuous)return;const a=t.component(e);a&&a.emit&&n.scroll.enabled()&&a.emit(o,i)};return{type:"native",events:{mousemove:e=>o("hover",e),mouseleave:()=>o("leave")}}}function Mg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l}){return{gestures:[...xg({componentKey:e,chart:t,actions:n,viewState:r,viewCache:o,layoutService:i,dockService:a,discrete:s,rtl:l})],native:Sg({componentKey:e,chart:t,actions:n,layoutService:i})}}const Cg={background:"rgba(0, 0, 0, 0.1)"},wg={top:-1,bottom:-1,width:6},kg={width:2,background:"#595959"};var Eg={before:Cg,after:Cg,thumb:{background:"transparent",border:"1px solid rgba(68, 68, 68, 0.4)"},startHandle:wg,endHandle:wg,startHandleBorder:kg,endHandleBorder:kg};const Tg={background:"rgba(0, 0, 0, 0.1)"},qg={top:-1,bottom:-1,width:6},Lg={width:2,background:"#595959"};var Ng={before:Tg,after:Tg,thumb:{background:"#B0AFAE",border:"transparent"},startHandle:qg,endHandle:qg,startHandleBorder:Lg,endHandleBorder:Lg};const Og={position:"absolute",top:0,right:0,bottom:0,left:0,boxSizing:"border-box"},Dg={pointerEvents:"initial"},Ag={pointerEvents:"none"};const Rg="ew-resize",Pg="default";function Ig(){const{rect:e}=this,{settings:t}=this.settings,n="horizontal"===t.orientation,r=n?e.computedInner.width:e.computedInner.height,o=t.range(),i=n&&t.rtl;return{size:r,start:(i?1-o[1]:o[0])*r,end:(i?1-o[0]:o[1])*r}}function zg(){const e=this.state.hover.start||this.state.hover.end||this.state.drag.start||this.state.drag.end;this.renderer.element().ownerDocument.body.style.cursor=e?Rg:Pg}function jg(e,t,n){const{min:r}=this.settings.settings.size.thumb;if(n-t<r){const o=(r-(n-t))/2,i=Math.max(0,0-(t-o))-Math.max(0,n+o-e);return{size:e,start:t-o+i,end:n+o+i}}return{size:e,start:t,end:n}}function Fg(e){const t=(e.srcEvent||e).srcElement;return this.renderer.element().contains(t)}function Bg(){const{size:e,start:t,end:n}=Ig.call(this);this.renderer.render(this.elements(this.h,jg.call(this,e,t,n)))}function _g(){const{state:e,settings:t,style:n}=this,r=t.settings.style;return e.style[r]||(e.style[r]=function({id:e,style:t}){const n="slim"===e?Ng:Eg;return{container:{...Og},before:{...Og,...n.before,...t.before},after:{...Og,...n.after,...t.after},thumb:{...Og,...n.thumb,...t.thumb},startHandle:{...Og,...Dg,...n.startHandle},endHandle:{...Og,...Dg,...n.endHandle},startHandleBorder:{...Og,...Ag,...n.startHandleBorder},endHandleBorder:{...Og,...Ag,...n.endHandleBorder}}}({id:t.settings.style,style:n[r]})),e.style[r]}var Hg={require:["renderer"],defaultSettings:{settings:{style:"standard",size:{area:{min:30,max:40,ratio:1/8},thumb:{min:4}},orientation:"horizontal",rtl:!1,isContinuous:!1,range:()=>[0,1],injections:()=>[]},style:{standard:{before:{},thumb:{},after:{}},slim:{before:{},thumb:{},after:{}}}},renderer:"dom",on:{render(){Bg.call(this)},lockState(){this.state.locked=!0},unlockState(){this.state.locked=!1},hover(e){if(this.state.locked||this.state.drag.start||this.state.drag.end||!Fg.call(this,e)&&this.state.hover.isPristine())return;this.state.hover.reset();const t=hg({e:e});t&&(this.state.hover[t]=!0),zg.call(this),Bg.call(this)},leave(){this.state.locked||(this.state.hover.reset(),zg.call(this),Bg.call(this))},dragStart(e){if(this.state.locked)return;this.state.drag.reset();const t=hg({e:e});t&&(this.state.drag[t]=!0),zg.call(this)},dragEnd(){this.state.locked||(this.state.drag.reset(),zg.call(this),Bg.call(this))}},preferredSize({outer:e}){const{min:t,max:n,ratio:r}=this.settings.settings.size.area,o="horizontal"===this.settings.settings.orientation?"height":"width";return Math.max(t,Math.min(n,e[o]*r))},created(){this.state={style:{},locked:!1,hover:{start:!1,end:!1,reset(){this.start=!1,this.end=!1},isPristine(){return!this.start&&!this.end}},drag:{start:!1,end:!1,reset(){this.start=!1,this.end=!1}}}},render(e){this.h=e;const{size:t,start:n,end:r}=Ig.call(this);return this.elements(e,jg.call(this,t,n,r))},properties(){return"horizontal"===this.settings.settings.orientation?{start:"left",end:"right"}:{start:"top",end:"bottom"}},elements(e,{size:t,start:n,end:r}){const{settings:o}=this.settings,i=o.injections().map((t=>t({h:e,rect:this.rect,orientation:o.orientation,minThumbSize:o.size.thumb.min})));return function({h:e,size:t,start:n,end:r,properties:o,startHandleActive:i,endHandleActive:a,style:s,continuous:l,invert:c,injections:u}){const d={[o.end]:t-n},p={[o.start]:r},f={left:-3},m={left:1},h={right:-3,left:"auto"},g={left:3},y=e("div",{style:{...s.before,...c?p:d},class:"scrollbar--before"}),v=e("div",{style:{...s.after,...c?d:p},class:"scrollbar--after"}),b=[];if(l){const t=e("div",{style:{...s.startHandle,...c?h:f},class:"scrollbar--start-handle",[mg]:"start"},i?e("div",{style:{...s.startHandleBorder,...c?g:m}}):void 0);b.push(t);const n=e("div",{style:{...s.endHandle,...c?f:h},class:"scrollbar--end-handle",[mg]:"end"},a?e("div",{style:{...s.endHandleBorder,...c?m:g}}):void 0);b.push(n)}const x=e("div",{style:{...s.thumb,[o.start]:n,[o.end]:t-r},class:"scrollbar--thumb"},b);return e("div",{style:{...s.container}},[y,x,v,...u])}({h:e,size:t,start:n,end:r,properties:this.properties(),startHandleActive:this.state.hover.start||this.state.drag.start,endHandleActive:this.state.hover.end||this.state.drag.end,style:_g.call(this),continuous:o.isContinuous,invert:"horizontal"===o.orientation&&o.rtl,injections:i})}};const $g={black:"#000",white:"#fff"},Vg="#e57373",Wg="#ef5350",Ug="#f44336",Kg="#d32f2f",Gg="#c62828",Yg="#f3e5f5",Xg="#ce93d8",Jg="#ba68c8",Zg="#ab47bc",Qg="#9c27b0",ey="#7b1fa2",ty="#e3f2fd",ny="#90caf9",ry="#42a5f5",oy="#1976d2",iy="#1565c0",ay="#4fc3f7",sy="#29b6f6",ly="#03a9f4",cy="#0288d1",uy="#01579b",dy="#81c784",py="#66bb6a",fy="#4caf50",my="#388e3c",hy="#2e7d32",gy="#1b5e20",yy="#ffb74d",vy="#ffa726",by="#ff9800",xy="#f57c00",Sy="#e65100",My={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 Cy(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 wy=Object.freeze({__proto__:null,default:Cy}),ky="$$material";var Ey=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}(),Ty="-ms-",qy="-moz-",Ly="-webkit-",Ny="comm",Oy="rule",Dy="decl",Ay="@keyframes",Ry=Math.abs,Py=String.fromCharCode,Iy=Object.assign;function zy(e){return e.trim()}function jy(e,t,n){return e.replace(t,n)}function Fy(e,t){return e.indexOf(t)}function By(e,t){return 0|e.charCodeAt(t)}function _y(e,t,n){return e.slice(t,n)}function Hy(e){return e.length}function $y(e){return e.length}function Vy(e,t){return t.push(e),e}var Wy=1,Uy=1,Ky=0,Gy=0,Yy=0,Xy="";function Jy(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Wy,column:Uy,length:a,return:""}}function Zy(e,t){return Iy(Jy("",null,null,"",null,null,0),e,{length:-e.length},t)}function Qy(){return Yy=Gy>0?By(Xy,--Gy):0,Uy--,10===Yy&&(Uy=1,Wy--),Yy}function ev(){return Yy=Gy<Ky?By(Xy,Gy++):0,Uy++,10===Yy&&(Uy=1,Wy++),Yy}function tv(){return By(Xy,Gy)}function nv(){return Gy}function rv(e,t){return _y(Xy,e,t)}function ov(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 iv(e){return Wy=Uy=1,Ky=Hy(Xy=e),Gy=0,[]}function av(e){return Xy="",e}function sv(e){return zy(rv(Gy-1,uv(91===e?e+2:40===e?e+1:e)))}function lv(e){for(;(Yy=tv())&&Yy<33;)ev();return ov(e)>2||ov(Yy)>3?"":" "}function cv(e,t){for(;--t&&ev()&&!(Yy<48||Yy>102||Yy>57&&Yy<65||Yy>70&&Yy<97););return rv(e,nv()+(t<6&&32==tv()&&32==ev()))}function uv(e){for(;ev();)switch(Yy){case e:return Gy;case 34:case 39:34!==e&&39!==e&&uv(Yy);break;case 40:41===e&&uv(e);break;case 92:ev()}return Gy}function dv(e,t){for(;ev()&&e+Yy!==57&&(e+Yy!==84||47!==tv()););return"/*"+rv(t,Gy-1)+"*"+Py(47===e?e:ev())}function pv(e){for(;!ov(tv());)ev();return rv(e,Gy)}function fv(e){return av(mv("",null,null,null,[""],e=iv(e),0,[0],e))}function mv(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,m=0,h=1,g=1,y=1,v=0,b="",x=o,S=i,M=r,C=b;g;)switch(m=v,v=ev()){case 40:if(108!=m&&58==By(C,d-1)){-1!=Fy(C+=jy(sv(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:C+=sv(v);break;case 9:case 10:case 13:case 32:C+=lv(m);break;case 92:C+=cv(nv()-1,7);continue;case 47:switch(tv()){case 42:case 47:Vy(gv(dv(ev(),nv()),t,n),l);break;default:C+="/"}break;case 123*h:s[c++]=Hy(C)*y;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==y&&(C=jy(C,/\f/g,"")),f>0&&Hy(C)-d&&Vy(f>32?yv(C+";",r,n,d-1):yv(jy(C," ","")+";",r,n,d-2),l);break;case 59:C+=";";default:if(Vy(M=hv(C,t,n,c,u,o,s,b,x=[],S=[],d),i),123===v)if(0===u)mv(C,t,M,M,x,i,d,s,S);else switch(99===p&&110===By(C,3)?100:p){case 100:case 108:case 109:case 115:mv(e,M,M,r&&Vy(hv(e,M,M,0,0,o,s,b,o,x=[],d),S),o,S,d,s,r?x:S);break;default:mv(C,M,M,M,[""],S,0,s,S)}}c=u=f=0,h=y=1,b=C="",d=a;break;case 58:d=1+Hy(C),f=m;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==Qy())continue;switch(C+=Py(v),v*h){case 38:y=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(Hy(C)-1)*y,y=1;break;case 64:45===tv()&&(C+=sv(ev())),p=tv(),u=d=Hy(b=C+=pv(nv())),v++;break;case 45:45===m&&2==Hy(C)&&(h=0)}}return i}function hv(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,p=0===o?i:[""],f=$y(p),m=0,h=0,g=0;m<r;++m)for(var y=0,v=_y(e,d+1,d=Ry(h=a[m])),b=e;y<f;++y)(b=zy(h>0?p[y]+" "+v:jy(v,/&\f/g,p[y])))&&(l[g++]=b);return Jy(e,t,n,0===o?Oy:s,l,c,u)}function gv(e,t,n){return Jy(e,t,n,Ny,Py(Yy),_y(e,2,-2),0)}function yv(e,t,n,r){return Jy(e,t,n,Dy,_y(e,0,r),_y(e,r+1,-1),r)}function vv(e,t){for(var n="",r=$y(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function bv(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Dy:return e.return=e.return||e.value;case Ny:return"";case Ay:return e.return=e.value+"{"+vv(e.children,r)+"}";case Oy:e.value=e.props.join(",")}return Hy(n=vv(e.children,r))?e.return=e.value+"{"+n+"}":""}function xv(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Sv=function(e,t,n){for(var r=0,o=0;r=o,o=tv(),38===r&&12===o&&(t[n]=1),!ov(o);)ev();return rv(e,Gy)},Mv=function(e,t){return av(function(e,t){var n=-1,r=44;do{switch(ov(r)){case 0:38===r&&12===tv()&&(t[n]=1),e[n]+=Sv(Gy-1,t,n);break;case 2:e[n]+=sv(r);break;case 4:if(44===r){e[++n]=58===tv()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Py(r)}}while(r=ev());return e}(iv(e),t))},Cv=new WeakMap,wv=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)||Cv.get(n))&&!r){Cv.set(e,!0);for(var o=[],i=Mv(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]}}},kv=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Ev(e,t){switch(function(e,t){return 45^By(e,0)?(((t<<2^By(e,0))<<2^By(e,1))<<2^By(e,2))<<2^By(e,3):0}(e,t)){case 5103:return Ly+"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 Ly+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ly+e+qy+e+Ty+e+e;case 6828:case 4268:return Ly+e+Ty+e+e;case 6165:return Ly+e+Ty+"flex-"+e+e;case 5187:return Ly+e+jy(e,/(\w+).+(:[^]+)/,Ly+"box-$1$2"+Ty+"flex-$1$2")+e;case 5443:return Ly+e+Ty+"flex-item-"+jy(e,/flex-|-self/,"")+e;case 4675:return Ly+e+Ty+"flex-line-pack"+jy(e,/align-content|flex-|-self/,"")+e;case 5548:return Ly+e+Ty+jy(e,"shrink","negative")+e;case 5292:return Ly+e+Ty+jy(e,"basis","preferred-size")+e;case 6060:return Ly+"box-"+jy(e,"-grow","")+Ly+e+Ty+jy(e,"grow","positive")+e;case 4554:return Ly+jy(e,/([^-])(transform)/g,"$1"+Ly+"$2")+e;case 6187:return jy(jy(jy(e,/(zoom-|grab)/,Ly+"$1"),/(image-set)/,Ly+"$1"),e,"")+e;case 5495:case 3959:return jy(e,/(image-set\([^]*)/,Ly+"$1$`$1");case 4968:return jy(jy(e,/(.+:)(flex-)?(.*)/,Ly+"box-pack:$3"+Ty+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ly+e+e;case 4095:case 3583:case 4068:case 2532:return jy(e,/(.+)-inline(.+)/,Ly+"$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(Hy(e)-1-t>6)switch(By(e,t+1)){case 109:if(45!==By(e,t+4))break;case 102:return jy(e,/(.+:)(.+)-([^]+)/,"$1"+Ly+"$2-$3$1"+qy+(108==By(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Fy(e,"stretch")?Ev(jy(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==By(e,t+1))break;case 6444:switch(By(e,Hy(e)-3-(~Fy(e,"!important")&&10))){case 107:return jy(e,":",":"+Ly)+e;case 101:return jy(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ly+(45===By(e,14)?"inline-":"")+"box$3$1"+Ly+"$2$3$1"+Ty+"$2box$3")+e}break;case 5936:switch(By(e,t+11)){case 114:return Ly+e+Ty+jy(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ly+e+Ty+jy(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ly+e+Ty+jy(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ly+e+Ty+e+e}return e}var Tv=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Dy:e.return=Ev(e.value,e.length);break;case Ay:return vv([Zy(e,{value:jy(e.value,"@","@"+Ly)})],r);case Oy: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 vv([Zy(e,{props:[jy(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return vv([Zy(e,{props:[jy(t,/:(plac\w+)/,":"+Ly+"input-$1")]}),Zy(e,{props:[jy(t,/:(plac\w+)/,":-moz-$1")]}),Zy(e,{props:[jy(t,/:(plac\w+)/,Ty+"input-$1")]})],r)}return""}))}}],qv=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,i=e.stylisPlugins||Tv,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var l,c,u=[bv,(c=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],d=function(e){var t=$y(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}([wv,kv].concat(i,u));o=function(e,t,n,r){l=n,function(e){vv(fv(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new Ey({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return p.sheet.hydrate(s),p};function Lv(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var Nv=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Ov=function(e,t,n){Nv(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};var Dv={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},Av=/[A-Z]|^ms/g,Rv=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Pv=function(e){return 45===e.charCodeAt(1)},Iv=function(e){return null!=e&&"boolean"!=typeof e},zv=xv((function(e){return Pv(e)?e:e.replace(Av,"-$&").toLowerCase()})),jv=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Rv,(function(e,t,n){return Bv={name:t,styles:n,next:Bv},t}))}return 1===Dv[e]||Pv(e)||"number"!=typeof t||0===t?t:t+"px"};function Fv(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 Bv={name:o.name,styles:o.styles,next:Bv},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)Bv={name:a.name,styles:a.styles,next:Bv},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+=Fv(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]+"}":Iv(s)&&(r+=zv(i)+":"+jv(i,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=Fv(e,t,a);switch(i){case"animation":case"animationName":r+=zv(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var c=0;c<a.length;c++)Iv(a[c])&&(r+=zv(i)+":"+jv(i,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=Bv,l=n(e);return Bv=s,Fv(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var Bv,_v=/label:\s*([^\s;{]+)\s*(;|$)/g;function Hv(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="";Bv=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=Fv(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=Fv(n,t,e[a]),r)o+=i[a]}_v.lastIndex=0;for(var s,l="";null!==(s=_v.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:Bv}}var $v,Vv,Wv=!!S.useInsertionEffect&&S.useInsertionEffect,Uv=Wv||function(e){return e()},Kv=Wv||S.useLayoutEffect,Gv=S.createContext("undefined"!=typeof HTMLElement?qv({key:"css"}):null),Yv=Gv.Provider,Xv=function(e){return k((function(t,n){var r=E(Gv);return e(t,r,n)}))},Jv=S.createContext({}),Zv={}.hasOwnProperty,Qv="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",eb=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Nv(t,n,r),Uv((function(){return Ov(t,n,r)})),null},tb=Xv((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[Qv],i=[r],a="";"string"==typeof e.className?a=Lv(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=Hv(i,void 0,S.useContext(Jv));a+=t.key+"-"+s.name;var l={};for(var c in e)Zv.call(e,c)&&"css"!==c&&c!==Qv&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),S.createElement(S.Fragment,null,S.createElement(eb,{cache:t,serialized:s,isStringTag:"string"==typeof o}),S.createElement(o,l))})),nb=tb,rb=function(e,t){var n=arguments;if(null==t||!Zv.call(t,"css"))return S.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=nb,o[1]=function(e,t){var n={};for(var r in t)Zv.call(t,r)&&(n[r]=t[r]);return n[Qv]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return S.createElement.apply(null,o)};$v=rb||(rb={}),Vv||(Vv=$v.JSX||($v.JSX={}));var ob=Xv((function(e,t){var n=Hv([e.styles],void 0,S.useContext(Jv)),r=S.useRef();return Kv((function(){var e=t.key+"-global",o=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),null!==a&&(i=!0,a.setAttribute("data-emotion",e),o.hydrate([a])),r.current=[o,i],function(){o.flush()}}),[t]),Kv((function(){var e=r.current,o=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&Ov(t,n.next,!0),o.tags.length){var i=o.tags[o.tags.length-1].nextElementSibling;o.before=i,o.flush()}t.insert("",n,o,!1)}}),[t,n.name]),null}));function ib(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Hv(t)}function ab(){var e=ib.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var sb=/^((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)-.*))$/,lb=xv((function(e){return sb.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),cb=function(e){return"theme"!==e},ub=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?lb:cb},db=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},pb=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Nv(t,n,r),Uv((function(){return Ov(t,n,r)})),null},fb=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=db(t,n,i),l=s||ub(a),c=!l("as");return function(){var u=arguments,d=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{var p=u[0];d.push(p[0]);for(var f=u.length,m=1;m<f;m++)d.push(u[m],p[m])}var h=Xv((function(e,t,n){var r=c&&e.as||a,i="",u=[],p=e;if(null==e.theme){for(var f in p={},e)p[f]=e[f];p.theme=S.useContext(Jv)}"string"==typeof e.className?i=Lv(t.registered,u,e.className):null!=e.className&&(i=e.className+" ");var m=Hv(d.concat(u),t.registered,p);i+=t.key+"-"+m.name,void 0!==o&&(i+=" "+o);var h=c&&void 0===s?ub(r):l,g={};for(var y in e)c&&"as"===y||h(y)&&(g[y]=e[y]);return g.className=i,n&&(g.ref=n),S.createElement(S.Fragment,null,S.createElement(pb,{cache:t,serialized:m,isStringTag:"string"==typeof r}),S.createElement(r,g))}));return h.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=a,h.__emotion_styles=d,h.__emotion_forwardProp=s,Object.defineProperty(h,"toString",{value:function(){return"."+o}}),h.withComponent=function(t,r){return e(t,Us({},n,r,{shouldForwardProp:db(h,r,!0)})).apply(void 0,d)},h}}.bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){fb[e]=fb(e)}));var mb={exports:{}},hb={},gb=x,yb=Symbol.for("react.element"),vb=Symbol.for("react.fragment"),bb=Object.prototype.hasOwnProperty,xb=gb.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Sb={key:!0,ref:!0,__self:!0,__source:!0};function Mb(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)bb.call(t,r)&&!Sb.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:yb,type:e,key:i,ref:a,props:o,_owner:xb.current}}hb.Fragment=vb,hb.jsx=Mb,hb.jsxs=Mb,mb.exports=hb;var Cb=mb.exports;let wb;"object"==typeof document&&(wb=qv({key:"css",prepend:!0}));var kb=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 Cb.jsx(ob,{styles:r})}
15
15
  /**
16
16
  * @mui/styled-engine v5.16.14
17
17
  *
18
18
  * @license MIT
19
19
  * This source code is licensed under the MIT license found in the
20
20
  * LICENSE file in the root directory of this source tree.
21
- */,StyledEngineProvider:function(e){const{injectFirst:t,children:n}=e;return t&&xb?bb.jsx(Wv,{value:xb,children:n}):n},ThemeContext:Kv,css:tb,default:function(e,t){return cb(e,t)},internal_processStyles:(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},keyframes:nb});function Mb(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Cb(e){if(x.isValidElement(e)||!Mb(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Cb(e[n])})),t}function wb(e,t,n={clone:!0}){const r=n.clone?Hs({},e):e;return Mb(e)&&Mb(t)&&Object.keys(t).forEach((o=>{x.isValidElement(t[o])?r[o]=t[o]:Mb(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Mb(e[o])?r[o]=wb(e[o],t[o],n):n.clone?r[o]=Mb(t[o])?Cb(t[o]):t[o]:r[o]=t[o]})),r}var kb=Object.freeze({__proto__:null,default:wb,isPlainObject:Mb});const Tb=["values","unit","step"];function qb(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=el(e,Tb),i=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>Hs({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return Hs({keys:a,values:i,up:s,down:l,between:c,only:function(e){return a.indexOf(e)+1<a.length?c(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):c(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}const Eb={borderRadius:4};function Lb(e,t){return t?wb(e,t,{clone:!1}):e}const Nb={xs:0,sm:600,md:900,lg:1200,xl:1536},Ob={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Nb[e]}px)`};function Db(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Ob;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||Ob;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||Nb).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function Ab(e){if("string"!=typeof e)throw new Error(by(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Rb=Object.freeze({__proto__:null,default:Ab});function Ib(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function Pb(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Ib(e,n)||r,t&&(o=t(o,r,e)),o}function zb(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=Ib(e.theme,r)||{};return Db(e,i,(e=>{let r=Pb(a,o,e);return e===r&&"string"==typeof e&&(r=Pb(a,o,`${t}${"default"===e?"":Ab(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const jb={m:"margin",p:"padding"},Fb={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Bb={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},_b=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!Bb[e])return[e];e=Bb[e]}const[t,n]=e.split(""),r=jb[t],o=Fb[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),Hb=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],$b=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Vb(e,t,n,r){var o;const i=null!=(o=Ib(e,t,!1))?o:n;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function Wb(e){return Vb(e,"spacing",8)}function Ub(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function Kb(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=Ub(t,n),e)),{})}(_b(n),r);return Db(e,e[n],o)}function Gb(e,t){const n=Wb(e.theme);return Object.keys(e).map((r=>Kb(e,t,r,n))).reduce(Lb,{})}function Yb(e){return Gb(e,Hb)}function Xb(e){return Gb(e,$b)}function Jb(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?Lb(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function Zb(e){return"number"!=typeof e?e:`${e}px solid`}function Qb(e,t){return zb({prop:e,themeKey:"borders",transform:t})}Yb.propTypes={},Yb.filterProps=Hb,Xb.propTypes={},Xb.filterProps=$b;const ex=Qb("border",Zb),tx=Qb("borderTop",Zb),nx=Qb("borderRight",Zb),rx=Qb("borderBottom",Zb),ox=Qb("borderLeft",Zb),ix=Qb("borderColor"),ax=Qb("borderTopColor"),sx=Qb("borderRightColor"),lx=Qb("borderBottomColor"),cx=Qb("borderLeftColor"),ux=Qb("outline",Zb),dx=Qb("outlineColor"),px=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Vb(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Ub(t,e)});return Db(e,e.borderRadius,n)}return null};px.propTypes={},px.filterProps=["borderRadius"],Jb(ex,tx,nx,rx,ox,ix,ax,sx,lx,cx,px,ux,dx);const fx=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Vb(e.theme,"spacing",8),n=e=>({gap:Ub(t,e)});return Db(e,e.gap,n)}return null};fx.propTypes={},fx.filterProps=["gap"];const mx=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Vb(e.theme,"spacing",8),n=e=>({columnGap:Ub(t,e)});return Db(e,e.columnGap,n)}return null};mx.propTypes={},mx.filterProps=["columnGap"];const hx=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Vb(e.theme,"spacing",8),n=e=>({rowGap:Ub(t,e)});return Db(e,e.rowGap,n)}return null};hx.propTypes={},hx.filterProps=["rowGap"];function gx(e,t){return"grey"===t?t:e}Jb(fx,mx,hx,zb({prop:"gridColumn"}),zb({prop:"gridRow"}),zb({prop:"gridAutoFlow"}),zb({prop:"gridAutoColumns"}),zb({prop:"gridAutoRows"}),zb({prop:"gridTemplateColumns"}),zb({prop:"gridTemplateRows"}),zb({prop:"gridTemplateAreas"}),zb({prop:"gridArea"}));function yx(e){return e<=1&&0!==e?100*e+"%":e}Jb(zb({prop:"color",themeKey:"palette",transform:gx}),zb({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:gx}),zb({prop:"backgroundColor",themeKey:"palette",transform:gx}));const vx=zb({prop:"width",transform:yx}),bx=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||Nb[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:yx(t)}};return Db(e,e.maxWidth,t)}return null};bx.filterProps=["maxWidth"];const xx=zb({prop:"minWidth",transform:yx}),Sx=zb({prop:"height",transform:yx}),Mx=zb({prop:"maxHeight",transform:yx}),Cx=zb({prop:"minHeight",transform:yx});zb({prop:"size",cssProperty:"width",transform:yx}),zb({prop:"size",cssProperty:"height",transform:yx});Jb(vx,bx,xx,Sx,Mx,Cx,zb({prop:"boxSizing"}));const wx={border:{themeKey:"borders",transform:Zb},borderTop:{themeKey:"borders",transform:Zb},borderRight:{themeKey:"borders",transform:Zb},borderBottom:{themeKey:"borders",transform:Zb},borderLeft:{themeKey:"borders",transform:Zb},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Zb},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:px},color:{themeKey:"palette",transform:gx},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:gx},backgroundColor:{themeKey:"palette",transform:gx},p:{style:Xb},pt:{style:Xb},pr:{style:Xb},pb:{style:Xb},pl:{style:Xb},px:{style:Xb},py:{style:Xb},padding:{style:Xb},paddingTop:{style:Xb},paddingRight:{style:Xb},paddingBottom:{style:Xb},paddingLeft:{style:Xb},paddingX:{style:Xb},paddingY:{style:Xb},paddingInline:{style:Xb},paddingInlineStart:{style:Xb},paddingInlineEnd:{style:Xb},paddingBlock:{style:Xb},paddingBlockStart:{style:Xb},paddingBlockEnd:{style:Xb},m:{style:Yb},mt:{style:Yb},mr:{style:Yb},mb:{style:Yb},ml:{style:Yb},mx:{style:Yb},my:{style:Yb},margin:{style:Yb},marginTop:{style:Yb},marginRight:{style:Yb},marginBottom:{style:Yb},marginLeft:{style:Yb},marginX:{style:Yb},marginY:{style:Yb},marginInline:{style:Yb},marginInlineStart:{style:Yb},marginInlineEnd:{style:Yb},marginBlock:{style:Yb},marginBlockStart:{style:Yb},marginBlockEnd:{style:Yb},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:fx},rowGap:{style:hx},columnGap:{style:mx},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:yx},maxWidth:{style:bx},minWidth:{transform:yx},height:{transform:yx},maxHeight:{transform:yx},minHeight:{transform:yx},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function kx(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:c}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const u=Ib(n,s)||{};if(c)return c(o);return Db(o,t,(t=>{let n=Pb(u,l,t);return t===n&&"string"==typeof t&&(n=Pb(u,l,`${e}${"default"===t?"":Ab(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:wx;function s(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;const n=null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{});return n||{}}(i.breakpoints),s=Object.keys(o);let l=o;return Object.keys(r).forEach((n=>{const o=(s=r[n],c=i,"function"==typeof s?s(c):s);var s,c;if(null!=o)if("object"==typeof o)if(a[n])l=Lb(l,e(n,o,i,a));else{const e=Db({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?l=Lb(l,e):l[n]=t({sx:o,theme:i})}else l=Lb(l,e(n,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(s,l)}return Array.isArray(o)?o.map(s):s(o)}}const Tx=kx();function qx(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}Tx.filterProps=["sx"];const Ex=["breakpoints","palette","spacing","shape"];function Lx(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=el(e,Ex),s=qb(n),l=function(e=8){if(e.mui)return e;const t=Wb({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(o);let c=wb({breakpoints:s,direction:"ltr",components:{},palette:Hs({mode:"light"},r),spacing:l,shape:Hs({},Eb,i)},a);return c.applyStyles=qx,c=t.reduce(((e,t)=>wb(e,t)),c),c.unstable_sxConfig=Hs({},wx,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return Tx({sx:e,theme:this})},c}var Nx=Object.freeze({__proto__:null,default:Lx,private_createBreakpoints:qb,unstable_applyStyles:qx});function Ox(e=null){const t=x.useContext(Kv);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const Dx=Lx();const Ax=["sx"];var Rx=Object.freeze({__proto__:null,default:Tx,extendSxProp:function(e){const{sx:t}=e,n=el(e,Ax),{systemProps:r,otherProps:o}=(e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:wx;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r})(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Mb(n)?Hs({},r,n):r}:Hs({},r,t),Hs({},o,{sx:i})},unstable_createStyleFunctionSx:kx,unstable_defaultSxConfig:wx});const Ix=e=>e,Px=(()=>{let e=Ix;return{configure(t){e=t},generate:t=>e(t),reset(){e=Ix}}})();function zx(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=zx(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function jx(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=zx(e))&&(r&&(r+=" "),r+=t);return r}const Fx={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Bx(e,t,n="Mui"){const r=Fx[t];return r?`${n}-${r}`:`${Px.generate(e)}-${t}`}function _x(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=Bx(e,t,n)})),r}var Hx={exports:{}},$x={},Vx=Symbol.for("react.transitional.element"),Wx=Symbol.for("react.portal"),Ux=Symbol.for("react.fragment"),Kx=Symbol.for("react.strict_mode"),Gx=Symbol.for("react.profiler"),Yx=Symbol.for("react.consumer"),Xx=Symbol.for("react.context"),Jx=Symbol.for("react.forward_ref"),Zx=Symbol.for("react.suspense"),Qx=Symbol.for("react.suspense_list"),eS=Symbol.for("react.memo"),tS=Symbol.for("react.lazy"),nS=Symbol.for("react.offscreen"),rS=Symbol.for("react.client.reference");function oS(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Vx:switch(e=e.type){case Ux:case Gx:case Kx:case Zx:case Qx:return e;default:switch(e=e&&e.$$typeof){case Xx:case Jx:case tS:case eS:case Yx:return e;default:return t}}case Wx:return t}}}$x.ContextConsumer=Yx,$x.ContextProvider=Xx,$x.Element=Vx,$x.ForwardRef=Jx,$x.Fragment=Ux,$x.Lazy=tS,$x.Memo=eS,$x.Portal=Wx,$x.Profiler=Gx,$x.StrictMode=Kx,$x.Suspense=Zx,$x.SuspenseList=Qx,$x.isContextConsumer=function(e){return oS(e)===Yx},$x.isContextProvider=function(e){return oS(e)===Xx},$x.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Vx},$x.isForwardRef=function(e){return oS(e)===Jx},$x.isFragment=function(e){return oS(e)===Ux},$x.isLazy=function(e){return oS(e)===tS},$x.isMemo=function(e){return oS(e)===eS},$x.isPortal=function(e){return oS(e)===Wx},$x.isProfiler=function(e){return oS(e)===Gx},$x.isStrictMode=function(e){return oS(e)===Kx},$x.isSuspense=function(e){return oS(e)===Zx},$x.isSuspenseList=function(e){return oS(e)===Qx},$x.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Ux||e===Gx||e===Kx||e===Zx||e===Qx||e===nS||"object"==typeof e&&null!==e&&(e.$$typeof===tS||e.$$typeof===eS||e.$$typeof===Xx||e.$$typeof===Yx||e.$$typeof===Jx||e.$$typeof===rS||void 0!==e.getModuleId)},$x.typeOf=oS,Hx.exports=$x;var iS=Hx.exports;const aS=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function sS(e){const t=`${e}`.match(aS);return t&&t[1]||""}function lS(e,t=""){return e.displayName||e.name||sS(e)||t}function cS(e,t,n){const r=lS(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var uS=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return lS(e,"Component");if("object"==typeof e)switch(e.$$typeof){case iS.ForwardRef:return cS(e,e.render,"ForwardRef");case iS.Memo:return cS(e,e.type,"memo");default:return}}},getFunctionName:sS});function dS(e,t){const n=Hs({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Hs({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]=Hs({},i),Object.keys(o).forEach((e=>{n[r][e]=dS(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function pS({props:e,name:t,defaultTheme:n,themeId:r}){let o=function(e=Dx){return Ox(e)}(n);o=o[r]||o;const i=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?dS(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}const fS="undefined"!=typeof window?x.useLayoutEffect:x.useEffect;var mS=Object.freeze({__proto__:null,default:function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}});function hS(e){const t=x.useRef(e);return fS((()=>{t.current=e})),x.useRef(((...e)=>(0,t.current)(...e))).current}function gS(...e){return x.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{!function(e,t){"function"==typeof e?e(t):e&&(e.current=t)}(e,t)}))}),e)}const yS={};const vS=[];class bS{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new bS}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function xS(){const e=function(e,t){const n=x.useRef(yS);return n.current===yS&&(n.current=e(t)),n}(bS.create).current;var t;return t=e.disposeEffect,x.useEffect(t,vS),e}let SS=!0,MS=!1;const CS=new bS,wS={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 kS(e){e.metaKey||e.altKey||e.ctrlKey||(SS=!0)}function TS(){SS=!1}function qS(){"hidden"===this.visibilityState&&MS&&(SS=!0)}function ES(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return SS||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!wS[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function LS(){const e=x.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",kS,!0),t.addEventListener("mousedown",TS,!0),t.addEventListener("pointerdown",TS,!0),t.addEventListener("touchstart",TS,!0),t.addEventListener("visibilitychange",qS,!0))}),[]),t=x.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!ES(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(MS=!0,CS.start(100,(()=>{MS=!1})),t.current=!1,!0)},ref:e}}function NS(e,t,n=void 0){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}const OS=x.createContext(null);function DS(){return x.useContext(OS)}var AS="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function RS(e){const{children:t,theme:n}=e,r=DS(),o=x.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return Hs({},e,t)}(r,n);return null!=e&&(e[AS]=null!==r),e}),[n,r]);return bb.jsx(OS.Provider,{value:o,children:t})}const IS=["value"],PS=x.createContext();function zS(e){let{value:t}=e,n=el(e,IS);return bb.jsx(PS.Provider,Hs({value:null==t||t},n))}const jS=x.createContext(void 0);function FS({value:e,children:t}){return bb.jsx(jS.Provider,{value:e,children:t})}const BS={};function _S(e,t,n,r=!1){return x.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?Hs({},t,{[e]:i}):i;return r?()=>a:a}return Hs({},t,e?{[e]:n}:n)}),[e,t,n,r])}function HS(e){const{children:t,theme:n,themeId:r}=e,o=Ox(BS),i=DS()||BS,a=_S(r,o,n),s=_S(r,i,n,!0),l="rtl"===a.direction;return bb.jsx(RS,{theme:s,children:bb.jsx(Kv.Provider,{value:a,children:bb.jsx(zS,{value:l,children:bb.jsx(FS,{value:null==a?void 0:a.components,children:t})})})})}var $S,VS={},WS={exports:{}};($S=WS).exports=function(e){return e&&e.__esModule?e:{default:e}},$S.exports.__esModule=!0,$S.exports.default=$S.exports;var US=WS.exports,KS=te(xy),GS=te(mS),YS=US;Object.defineProperty(VS,"__esModule",{value:!0});var XS=VS.alpha=cM;VS.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),i=oM(e),a=oM(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return aM({type:"rgb",values:s})},VS.colorChannel=void 0;var JS=VS.darken=uM;VS.decomposeColor=oM,VS.emphasize=pM;var ZS=VS.getContrastRatio=function(e,t){const n=lM(e),r=lM(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};VS.getLuminance=lM,VS.hexToRgb=rM,VS.hslToRgb=sM;var QS=VS.lighten=dM;VS.private_safeAlpha=function(e,t,n){try{return cM(e,t)}catch(t){return e}},VS.private_safeColorChannel=void 0,VS.private_safeDarken=function(e,t,n){try{return uM(e,t)}catch(t){return e}},VS.private_safeEmphasize=function(e,t,n){try{return pM(e,t)}catch(t){return e}},VS.private_safeLighten=function(e,t,n){try{return dM(e,t)}catch(t){return e}},VS.recomposeColor=aM,VS.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=oM(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var eM=YS(KS),tM=YS(GS);function nM(e,t=0,n=1){return(0,tM.default)(e,t,n)}function rM(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function oM(e){if(e.type)return e;if("#"===e.charAt(0))return oM(rM(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,eM.default)(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,eM.default)(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const iM=e=>{const t=oM(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};VS.colorChannel=iM;function aM(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function sM(e){e=oM(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),aM({type:s,values:l})}function lM(e){let t="hsl"===(e=oM(e)).type||"hsla"===e.type?oM(sM(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function cM(e,t){return e=oM(e),t=nM(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,aM(e)}function uM(e,t){if(e=oM(e),t=nM(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return aM(e)}function dM(e,t){if(e=oM(e),t=nM(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return aM(e)}function pM(e,t=.15){return lM(e)>.5?uM(e,t):dM(e,t)}VS.private_safeColorChannel=(e,t)=>{try{return iM(e)}catch(t){return e}};const fM=["mode","contrastThreshold","tonalOffset"],mM={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Fg.white,default:Fg.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},hM={text:{primary:Fg.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Fg.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function gM(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=QS(e.main,o):"dark"===t&&(e.dark=JS(e.main,i)))}function yM(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=el(e,fM),i=e.primary||function(e="light"){return"dark"===e?{main:Zg,light:Jg,dark:Qg}:{main:ey,light:Qg,dark:ty}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Ug,light:Wg,dark:Gg}:{main:Yg,light:Kg,dark:Xg}}(t),s=e.error||function(e="light"){return"dark"===e?{main:Hg,light:Bg,dark:$g}:{main:$g,light:_g,dark:Vg}}(t),l=e.info||function(e="light"){return"dark"===e?{main:ry,light:ny,dark:iy}:{main:iy,light:oy,dark:ay}}(t),c=e.success||function(e="light"){return"dark"===e?{main:ly,light:sy,dark:uy}:{main:dy,light:cy,dark:py}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:my,light:fy,dark:gy}:{main:"#ed6c02",light:hy,dark:yy}}(t);function d(e){return ZS(e,hM.text.primary)>=n?hM.text.primary:mM.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Hs({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(by(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(by(12,t?` (${t})`:"",JSON.stringify(e.main)));return gM(e,"light",o,r),gM(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:hM,light:mM};return wb(Hs({common:Hs({},Fg),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:vy,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const vM=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const bM={textTransform:"uppercase"},xM='"Roboto", "Helvetica", "Arial", sans-serif';function SM(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=xM,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,p=el(n,vM),f=o/14,m=d||(e=>e/c*f+"rem"),h=(e,t,n,o,i)=>{return Hs({fontFamily:r,fontWeight:e,fontSize:m(t),lineHeight:n},r===xM?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,u);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(s,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(s,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(s,14,1.75,.4,bM),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,bM),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return wb(Hs({htmlFontSize:c,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function MM(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const CM=["none",MM(0,2,1,-1,0,1,1,0,0,1,3,0),MM(0,3,1,-2,0,2,2,0,0,1,5,0),MM(0,3,3,-2,0,3,4,0,0,1,8,0),MM(0,2,4,-1,0,4,5,0,0,1,10,0),MM(0,3,5,-1,0,5,8,0,0,1,14,0),MM(0,3,5,-1,0,6,10,0,0,1,18,0),MM(0,4,5,-2,0,7,10,1,0,2,16,1),MM(0,5,5,-3,0,8,10,1,0,3,14,2),MM(0,5,6,-3,0,9,12,1,0,3,16,2),MM(0,6,6,-3,0,10,14,1,0,4,18,3),MM(0,6,7,-4,0,11,15,1,0,4,20,3),MM(0,7,8,-4,0,12,17,2,0,5,22,4),MM(0,7,8,-4,0,13,19,2,0,5,24,4),MM(0,7,9,-4,0,14,21,2,0,5,26,4),MM(0,8,9,-5,0,15,22,2,0,6,28,5),MM(0,8,10,-5,0,16,24,2,0,6,30,5),MM(0,8,11,-5,0,17,26,2,0,6,32,5),MM(0,9,11,-5,0,18,28,2,0,7,34,6),MM(0,9,12,-6,0,19,29,2,0,7,36,6),MM(0,10,13,-6,0,20,31,3,0,8,38,7),MM(0,10,13,-6,0,21,33,3,0,8,40,7),MM(0,10,14,-6,0,22,35,3,0,8,42,7),MM(0,11,14,-7,0,23,36,3,0,9,44,8),MM(0,11,15,-7,0,24,38,3,0,9,46,8)],wM=["duration","easing","delay"],kM={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)"},TM={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function qM(e){return`${Math.round(e)}ms`}function EM(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function LM(e){const t=Hs({},kM,e.easing),n=Hs({},TM,e.duration);return Hs({getAutoHeightDuration:EM,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return el(r,wM),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:qM(o)} ${i} ${"string"==typeof a?a:qM(a)}`)).join(",")}},e,{easing:t,duration:n})}const NM={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},OM=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function DM(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=el(e,OM);if(e.vars)throw new Error(by(18));const s=yM(r),l=Lx(e);let c=wb(l,{mixins:(u=l.breakpoints,d=n,Hs({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:CM.slice(),typography:SM(s,i),transitions:LM(o),zIndex:Hs({},NM)});var u,d;return c=wb(c,a),c=t.reduce(((e,t)=>wb(e,t)),c),c.unstable_sxConfig=Hs({},wx,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return Tx({sx:e,theme:this})},c}const AM=DM();function RM({props:e,name:t}){return pS({props:e,name:t,defaultTheme:AM,themeId:Sy})}var IM,PM={},zM={exports:{}};var jM,FM={exports:{}};var BM=te(Sb),_M=te(kb),HM=te(Rb),$M=te(uS),VM=te(Nx),WM=te(Rx),UM=US;Object.defineProperty(PM,"__esModule",{value:!0});var KM=PM.default=function(e={}){const{themeId:t,defaultTheme:n=iC,rootShouldForwardProp:r=oC,slotShouldForwardProp:o=oC}=e,i=e=>(0,QM.default)((0,GM.default)({},e,{theme:sC((0,GM.default)({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,XM.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:c,skipSx:u,overridesResolver:d=lC(aC(l))}=a,p=(0,YM.default)(a,nC),f=void 0!==c?c:l&&"Root"!==l&&"root"!==l||!1,m=u||!1;let h=oC;"Root"===l||"root"===l?h=r:l?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=(0,XM.default)(e,(0,GM.default)({shouldForwardProp:h,label:undefined},p)),y=e=>"function"==typeof e&&e.__emotion_real!==e||(0,JM.isPlainObject)(e)?r=>cC(e,(0,GM.default)({},r,{theme:sC({theme:r.theme,defaultTheme:n,themeId:t})})):e,v=(r,...o)=>{let a=y(r);const l=o?o.map(y):[];s&&d&&l.push((e=>{const r=sC((0,GM.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[s]||!r.components[s].styleOverrides)return null;const o=r.components[s].styleOverrides,i={};return Object.entries(o).forEach((([t,n])=>{i[t]=cC(n,(0,GM.default)({},e,{theme:r}))})),d(e,i)})),s&&!f&&l.push((e=>{var r;const o=sC((0,GM.default)({},e,{defaultTheme:n,themeId:t}));return cC({variants:null==o||null==(r=o.components)||null==(r=r[s])?void 0:r.variants},(0,GM.default)({},e,{theme:o}))})),m||l.push(i);const c=l.length-o.length;if(Array.isArray(r)&&c>0){const e=new Array(c).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const u=g(a,...l);return e.muiName&&(u.muiName=e.muiName),u};return g.withConfig&&(v.withConfig=g.withConfig),v}};PM.shouldForwardProp=oC,PM.systemDefaultTheme=void 0;var GM=UM((IM||(IM=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(zM)),zM.exports)),YM=UM((jM||(jM=1,function(e){e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports}(FM)),FM.exports)),XM=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=rC(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(BM),JM=_M;UM(HM),UM($M);var ZM=UM(VM),QM=UM(WM);const eC=["ownerState"],tC=["variants"],nC=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function rC(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(rC=function(e){return e?n:t})(e)}function oC(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const iC=PM.systemDefaultTheme=(0,ZM.default)(),aC=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function sC({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function lC(e){return e?(t,n)=>n[e]:null}function cC(e,t){let{ownerState:n}=t,r=(0,YM.default)(t,eC);const o="function"==typeof e?e((0,GM.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>cC(e,(0,GM.default)({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,YM.default)(o,tC);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,GM.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,GM.default)({ownerState:n},r,n)):e.style))})),t}return o}const uC=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,dC=KM({themeId:Sy,defaultTheme:AM,rootShouldForwardProp:uC}),pC=["theme"];function fC(e){let{theme:t}=e,n=el(e,pC);const r=t[Sy];return bb.jsx(HS,Hs({},n,{themeId:r?Sy:void 0,theme:r||t}))}function mC(e){return Bx("MuiSvgIcon",e)}_x("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const hC=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],gC=dC("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Ab(n.color)}`],t[`fontSize${Ab(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,i,a,s,l,c,u,d,p,f,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(c=e.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(m=(e.vars||e).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[t.color]}})),yC=x.forwardRef((function(e,t){const n=RM({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:u,viewBox:d="0 0 24 24"}=n,p=el(n,hC),f=x.isValidElement(r)&&"svg"===r.type,m=Hs({},n,{color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:f}),h={};c||(h.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return NS({root:["root","inherit"!==t&&`color${Ab(t)}`,`fontSize${Ab(n)}`]},mC,r)})(m);return bb.jsxs(gC,Hs({as:a,className:jx(g.root,o),focusable:"false",color:l,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t},h,p,f&&r.props,{ownerState:m,children:[f?r.props.children:r,u?bb.jsx("title",{children:u}):null]}))}));yC.muiName="SvgIcon";const vC=_x("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),bC=["center","classes","className"];let xC,SC,MC,CC,wC=e=>e;const kC=nb(xC||(xC=wC`
21
+ */,StyledEngineProvider:function(e){const{injectFirst:t,children:n}=e;return t&&wb?Cb.jsx(Yv,{value:wb,children:n}):n},ThemeContext:Jv,css:ib,default:function(e,t){return fb(e,t)},internal_processStyles:(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},keyframes:ab});function Eb(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Tb(e){if(S.isValidElement(e)||!Eb(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Tb(e[n])})),t}function qb(e,t,n={clone:!0}){const r=n.clone?Us({},e):e;return Eb(e)&&Eb(t)&&Object.keys(t).forEach((o=>{S.isValidElement(t[o])?r[o]=t[o]:Eb(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Eb(e[o])?r[o]=qb(e[o],t[o],n):n.clone?r[o]=Eb(t[o])?Tb(t[o]):t[o]:r[o]=t[o]})),r}var Lb=Object.freeze({__proto__:null,default:qb,isPlainObject:Eb});const Nb=["values","unit","step"];function Ob(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=ol(e,Nb),i=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>Us({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return Us({keys:a,values:i,up:s,down:l,between:c,only:function(e){return a.indexOf(e)+1<a.length?c(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):c(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}const Db={borderRadius:4};function Ab(e,t){return t?qb(e,t,{clone:!1}):e}const Rb={xs:0,sm:600,md:900,lg:1200,xl:1536},Pb={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Rb[e]}px)`};function Ib(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Pb;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||Pb;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||Rb).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function zb(e){if("string"!=typeof e)throw new Error(Cy(7));return e.charAt(0).toUpperCase()+e.slice(1)}var jb=Object.freeze({__proto__:null,default:zb});function Fb(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function Bb(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Fb(e,n)||r,t&&(o=t(o,r,e)),o}function _b(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=Fb(e.theme,r)||{};return Ib(e,i,(e=>{let r=Bb(a,o,e);return e===r&&"string"==typeof e&&(r=Bb(a,o,`${t}${"default"===e?"":zb(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const Hb={m:"margin",p:"padding"},$b={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Vb={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Wb=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!Vb[e])return[e];e=Vb[e]}const[t,n]=e.split(""),r=Hb[t],o=$b[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),Ub=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Kb=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Gb(e,t,n,r){var o;const i=null!=(o=Fb(e,t,!1))?o:n;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function Yb(e){return Gb(e,"spacing",8)}function Xb(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function Jb(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=Xb(t,n),e)),{})}(Wb(n),r);return Ib(e,e[n],o)}function Zb(e,t){const n=Yb(e.theme);return Object.keys(e).map((r=>Jb(e,t,r,n))).reduce(Ab,{})}function Qb(e){return Zb(e,Ub)}function ex(e){return Zb(e,Kb)}function tx(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?Ab(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function nx(e){return"number"!=typeof e?e:`${e}px solid`}function rx(e,t){return _b({prop:e,themeKey:"borders",transform:t})}Qb.propTypes={},Qb.filterProps=Ub,ex.propTypes={},ex.filterProps=Kb;const ox=rx("border",nx),ix=rx("borderTop",nx),ax=rx("borderRight",nx),sx=rx("borderBottom",nx),lx=rx("borderLeft",nx),cx=rx("borderColor"),ux=rx("borderTopColor"),dx=rx("borderRightColor"),px=rx("borderBottomColor"),fx=rx("borderLeftColor"),mx=rx("outline",nx),hx=rx("outlineColor"),gx=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Gb(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Xb(t,e)});return Ib(e,e.borderRadius,n)}return null};gx.propTypes={},gx.filterProps=["borderRadius"],tx(ox,ix,ax,sx,lx,cx,ux,dx,px,fx,gx,mx,hx);const yx=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Gb(e.theme,"spacing",8),n=e=>({gap:Xb(t,e)});return Ib(e,e.gap,n)}return null};yx.propTypes={},yx.filterProps=["gap"];const vx=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Gb(e.theme,"spacing",8),n=e=>({columnGap:Xb(t,e)});return Ib(e,e.columnGap,n)}return null};vx.propTypes={},vx.filterProps=["columnGap"];const bx=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Gb(e.theme,"spacing",8),n=e=>({rowGap:Xb(t,e)});return Ib(e,e.rowGap,n)}return null};bx.propTypes={},bx.filterProps=["rowGap"];function xx(e,t){return"grey"===t?t:e}tx(yx,vx,bx,_b({prop:"gridColumn"}),_b({prop:"gridRow"}),_b({prop:"gridAutoFlow"}),_b({prop:"gridAutoColumns"}),_b({prop:"gridAutoRows"}),_b({prop:"gridTemplateColumns"}),_b({prop:"gridTemplateRows"}),_b({prop:"gridTemplateAreas"}),_b({prop:"gridArea"}));function Sx(e){return e<=1&&0!==e?100*e+"%":e}tx(_b({prop:"color",themeKey:"palette",transform:xx}),_b({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:xx}),_b({prop:"backgroundColor",themeKey:"palette",transform:xx}));const Mx=_b({prop:"width",transform:Sx}),Cx=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||Rb[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Sx(t)}};return Ib(e,e.maxWidth,t)}return null};Cx.filterProps=["maxWidth"];const wx=_b({prop:"minWidth",transform:Sx}),kx=_b({prop:"height",transform:Sx}),Ex=_b({prop:"maxHeight",transform:Sx}),Tx=_b({prop:"minHeight",transform:Sx});_b({prop:"size",cssProperty:"width",transform:Sx}),_b({prop:"size",cssProperty:"height",transform:Sx});tx(Mx,Cx,wx,kx,Ex,Tx,_b({prop:"boxSizing"}));const qx={border:{themeKey:"borders",transform:nx},borderTop:{themeKey:"borders",transform:nx},borderRight:{themeKey:"borders",transform:nx},borderBottom:{themeKey:"borders",transform:nx},borderLeft:{themeKey:"borders",transform:nx},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:nx},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:gx},color:{themeKey:"palette",transform:xx},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:xx},backgroundColor:{themeKey:"palette",transform:xx},p:{style:ex},pt:{style:ex},pr:{style:ex},pb:{style:ex},pl:{style:ex},px:{style:ex},py:{style:ex},padding:{style:ex},paddingTop:{style:ex},paddingRight:{style:ex},paddingBottom:{style:ex},paddingLeft:{style:ex},paddingX:{style:ex},paddingY:{style:ex},paddingInline:{style:ex},paddingInlineStart:{style:ex},paddingInlineEnd:{style:ex},paddingBlock:{style:ex},paddingBlockStart:{style:ex},paddingBlockEnd:{style:ex},m:{style:Qb},mt:{style:Qb},mr:{style:Qb},mb:{style:Qb},ml:{style:Qb},mx:{style:Qb},my:{style:Qb},margin:{style:Qb},marginTop:{style:Qb},marginRight:{style:Qb},marginBottom:{style:Qb},marginLeft:{style:Qb},marginX:{style:Qb},marginY:{style:Qb},marginInline:{style:Qb},marginInlineStart:{style:Qb},marginInlineEnd:{style:Qb},marginBlock:{style:Qb},marginBlockStart:{style:Qb},marginBlockEnd:{style:Qb},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:yx},rowGap:{style:bx},columnGap:{style:vx},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Sx},maxWidth:{style:Cx},minWidth:{transform:Sx},height:{transform:Sx},maxHeight:{transform:Sx},minHeight:{transform:Sx},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Lx(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:c}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const u=Fb(n,s)||{};if(c)return c(o);return Ib(o,t,(t=>{let n=Bb(u,l,t);return t===n&&"string"==typeof t&&(n=Bb(u,l,`${e}${"default"===t?"":zb(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:qx;function s(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;const n=null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{});return n||{}}(i.breakpoints),s=Object.keys(o);let l=o;return Object.keys(r).forEach((n=>{const o=(s=r[n],c=i,"function"==typeof s?s(c):s);var s,c;if(null!=o)if("object"==typeof o)if(a[n])l=Ab(l,e(n,o,i,a));else{const e=Ib({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?l=Ab(l,e):l[n]=t({sx:o,theme:i})}else l=Ab(l,e(n,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(s,l)}return Array.isArray(o)?o.map(s):s(o)}}const Nx=Lx();function Ox(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}Nx.filterProps=["sx"];const Dx=["breakpoints","palette","spacing","shape"];function Ax(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=ol(e,Dx),s=Ob(n),l=function(e=8){if(e.mui)return e;const t=Yb({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(o);let c=qb({breakpoints:s,direction:"ltr",components:{},palette:Us({mode:"light"},r),spacing:l,shape:Us({},Db,i)},a);return c.applyStyles=Ox,c=t.reduce(((e,t)=>qb(e,t)),c),c.unstable_sxConfig=Us({},qx,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return Nx({sx:e,theme:this})},c}var Rx=Object.freeze({__proto__:null,default:Ax,private_createBreakpoints:Ob,unstable_applyStyles:Ox});function Px(e=null){const t=S.useContext(Jv);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const Ix=Ax();function zx(e=Ix){return Px(e)}const jx=["sx"];function Fx(e){const{sx:t}=e,n=ol(e,jx),{systemProps:r,otherProps:o}=(e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:qx;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r})(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Eb(n)?Us({},r,n):r}:Us({},r,t),Us({},o,{sx:i})}var Bx=Object.freeze({__proto__:null,default:Nx,extendSxProp:Fx,unstable_createStyleFunctionSx:Lx,unstable_defaultSxConfig:qx});const _x=e=>e,Hx=(()=>{let e=_x;return{configure(t){e=t},generate:t=>e(t),reset(){e=_x}}})();function $x(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=$x(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Vx(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=$x(e))&&(r&&(r+=" "),r+=t);return r}const Wx={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ux(e,t,n="Mui"){const r=Wx[t];return r?`${n}-${r}`:`${Hx.generate(e)}-${t}`}function Kx(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=Ux(e,t,n)})),r}var Gx={exports:{}},Yx={},Xx=Symbol.for("react.transitional.element"),Jx=Symbol.for("react.portal"),Zx=Symbol.for("react.fragment"),Qx=Symbol.for("react.strict_mode"),eS=Symbol.for("react.profiler"),tS=Symbol.for("react.consumer"),nS=Symbol.for("react.context"),rS=Symbol.for("react.forward_ref"),oS=Symbol.for("react.suspense"),iS=Symbol.for("react.suspense_list"),aS=Symbol.for("react.memo"),sS=Symbol.for("react.lazy"),lS=Symbol.for("react.offscreen"),cS=Symbol.for("react.client.reference");function uS(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Xx:switch(e=e.type){case Zx:case eS:case Qx:case oS:case iS:return e;default:switch(e=e&&e.$$typeof){case nS:case rS:case sS:case aS:case tS:return e;default:return t}}case Jx:return t}}}Yx.ContextConsumer=tS,Yx.ContextProvider=nS,Yx.Element=Xx,Yx.ForwardRef=rS,Yx.Fragment=Zx,Yx.Lazy=sS,Yx.Memo=aS,Yx.Portal=Jx,Yx.Profiler=eS,Yx.StrictMode=Qx,Yx.Suspense=oS,Yx.SuspenseList=iS,Yx.isContextConsumer=function(e){return uS(e)===tS},Yx.isContextProvider=function(e){return uS(e)===nS},Yx.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Xx},Yx.isForwardRef=function(e){return uS(e)===rS},Yx.isFragment=function(e){return uS(e)===Zx},Yx.isLazy=function(e){return uS(e)===sS},Yx.isMemo=function(e){return uS(e)===aS},Yx.isPortal=function(e){return uS(e)===Jx},Yx.isProfiler=function(e){return uS(e)===eS},Yx.isStrictMode=function(e){return uS(e)===Qx},Yx.isSuspense=function(e){return uS(e)===oS},Yx.isSuspenseList=function(e){return uS(e)===iS},Yx.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Zx||e===eS||e===Qx||e===oS||e===iS||e===lS||"object"==typeof e&&null!==e&&(e.$$typeof===sS||e.$$typeof===aS||e.$$typeof===nS||e.$$typeof===tS||e.$$typeof===rS||e.$$typeof===cS||void 0!==e.getModuleId)},Yx.typeOf=uS,Gx.exports=Yx;var dS=Gx.exports;const pS=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function fS(e){const t=`${e}`.match(pS);return t&&t[1]||""}function mS(e,t=""){return e.displayName||e.name||fS(e)||t}function hS(e,t,n){const r=mS(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var gS=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return mS(e,"Component");if("object"==typeof e)switch(e.$$typeof){case dS.ForwardRef:return hS(e,e.render,"ForwardRef");case dS.Memo:return hS(e,e.type,"memo");default:return}}},getFunctionName:fS});function yS(e,t){const n=Us({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Us({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]=Us({},i),Object.keys(o).forEach((e=>{n[r][e]=yS(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function vS({props:e,name:t,defaultTheme:n,themeId:r}){let o=zx(n);o=o[r]||o;const i=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?yS(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return i}const bS="undefined"!=typeof window?S.useLayoutEffect:S.useEffect;var xS=Object.freeze({__proto__:null,default:function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}});function SS(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function MS(e){return e&&e.ownerDocument||document}function CS(e){return MS(e).defaultView||window}function wS(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function kS(e){const t=S.useRef(e);return bS((()=>{t.current=e})),S.useRef(((...e)=>(0,t.current)(...e))).current}function ES(...e){return S.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{wS(e,t)}))}),e)}const TS={};const qS=[];class LS{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new LS}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function NS(){const e=function(e,t){const n=S.useRef(TS);return n.current===TS&&(n.current=e(t)),n}(LS.create).current;var t;return t=e.disposeEffect,S.useEffect(t,qS),e}let OS=!0,DS=!1;const AS=new LS,RS={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 PS(e){e.metaKey||e.altKey||e.ctrlKey||(OS=!0)}function IS(){OS=!1}function zS(){"hidden"===this.visibilityState&&DS&&(OS=!0)}function jS(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return OS||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!RS[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function FS(){const e=S.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",PS,!0),t.addEventListener("mousedown",IS,!0),t.addEventListener("pointerdown",IS,!0),t.addEventListener("touchstart",IS,!0),t.addEventListener("visibilitychange",zS,!0))}),[]),t=S.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!jS(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(DS=!0,AS.start(100,(()=>{DS=!1})),t.current=!1,!0)},ref:e}}function BS(e,t,n=void 0){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}const _S=S.createContext(null);function HS(){return S.useContext(_S)}var $S="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function VS(e){const{children:t,theme:n}=e,r=HS(),o=S.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return Us({},e,t)}(r,n);return null!=e&&(e[$S]=null!==r),e}),[n,r]);return Cb.jsx(_S.Provider,{value:o,children:t})}const WS=["value"],US=S.createContext();function KS(e){let{value:t}=e,n=ol(e,WS);return Cb.jsx(US.Provider,Us({value:null==t||t},n))}const GS=S.createContext(void 0);function YS({value:e,children:t}){return Cb.jsx(GS.Provider,{value:e,children:t})}const XS={};function JS(e,t,n,r=!1){return S.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?Us({},t,{[e]:i}):i;return r?()=>a:a}return Us({},t,e?{[e]:n}:n)}),[e,t,n,r])}function ZS(e){const{children:t,theme:n,themeId:r}=e,o=Px(XS),i=HS()||XS,a=JS(r,o,n),s=JS(r,i,n,!0),l="rtl"===a.direction;return Cb.jsx(VS,{theme:s,children:Cb.jsx(Jv.Provider,{value:a,children:Cb.jsx(KS,{value:l,children:Cb.jsx(YS,{value:null==a?void 0:a.components,children:t})})})})}var QS,eM={},tM={exports:{}};(QS=tM).exports=function(e){return e&&e.__esModule?e:{default:e}},QS.exports.__esModule=!0,QS.exports.default=QS.exports;var nM=tM.exports,rM=ie(wy),oM=ie(xS),iM=nM;Object.defineProperty(eM,"__esModule",{value:!0});var aM=eM.alpha=bM;eM.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),i=mM(e),a=mM(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return gM({type:"rgb",values:s})},eM.colorChannel=void 0;var sM=eM.darken=xM;eM.decomposeColor=mM,eM.emphasize=MM;var lM=eM.getContrastRatio=function(e,t){const n=vM(e),r=vM(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};eM.getLuminance=vM,eM.hexToRgb=fM,eM.hslToRgb=yM;var cM=eM.lighten=SM;eM.private_safeAlpha=function(e,t,n){try{return bM(e,t)}catch(t){return e}},eM.private_safeColorChannel=void 0,eM.private_safeDarken=function(e,t,n){try{return xM(e,t)}catch(t){return e}},eM.private_safeEmphasize=function(e,t,n){try{return MM(e,t)}catch(t){return e}},eM.private_safeLighten=function(e,t,n){try{return SM(e,t)}catch(t){return e}},eM.recomposeColor=gM,eM.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=mM(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var uM=iM(rM),dM=iM(oM);function pM(e,t=0,n=1){return(0,dM.default)(e,t,n)}function fM(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function mM(e){if(e.type)return e;if("#"===e.charAt(0))return mM(fM(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,uM.default)(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,uM.default)(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const hM=e=>{const t=mM(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};eM.colorChannel=hM;function gM(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function yM(e){e=mM(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),gM({type:s,values:l})}function vM(e){let t="hsl"===(e=mM(e)).type||"hsla"===e.type?mM(yM(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function bM(e,t){return e=mM(e),t=pM(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,gM(e)}function xM(e,t){if(e=mM(e),t=pM(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return gM(e)}function SM(e,t){if(e=mM(e),t=pM(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return gM(e)}function MM(e,t=.15){return vM(e)>.5?xM(e,t):SM(e,t)}eM.private_safeColorChannel=(e,t)=>{try{return hM(e)}catch(t){return e}};const CM=["mode","contrastThreshold","tonalOffset"],wM={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:$g.white,default:$g.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},kM={text:{primary:$g.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:$g.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function EM(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=cM(e.main,o):"dark"===t&&(e.dark=sM(e.main,i)))}function TM(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=ol(e,CM),i=e.primary||function(e="light"){return"dark"===e?{main:ny,light:ty,dark:ry}:{main:oy,light:ry,dark:iy}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Xg,light:Yg,dark:Zg}:{main:Qg,light:Jg,dark:ey}}(t),s=e.error||function(e="light"){return"dark"===e?{main:Ug,light:Vg,dark:Kg}:{main:Kg,light:Wg,dark:Gg}}(t),l=e.info||function(e="light"){return"dark"===e?{main:sy,light:ay,dark:cy}:{main:cy,light:ly,dark:uy}}(t),c=e.success||function(e="light"){return"dark"===e?{main:py,light:dy,dark:my}:{main:hy,light:fy,dark:gy}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:vy,light:yy,dark:xy}:{main:"#ed6c02",light:by,dark:Sy}}(t);function d(e){return lM(e,kM.text.primary)>=n?kM.text.primary:wM.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Us({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Cy(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Cy(12,t?` (${t})`:"",JSON.stringify(e.main)));return EM(e,"light",o,r),EM(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:kM,light:wM};return qb(Us({common:Us({},$g),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:My,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const qM=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const LM={textTransform:"uppercase"},NM='"Roboto", "Helvetica", "Arial", sans-serif';function OM(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=NM,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,p=ol(n,qM),f=o/14,m=d||(e=>e/c*f+"rem"),h=(e,t,n,o,i)=>{return Us({fontFamily:r,fontWeight:e,fontSize:m(t),lineHeight:n},r===NM?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,u);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(s,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(s,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(s,14,1.75,.4,LM),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,LM),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return qb(Us({htmlFontSize:c,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function DM(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const AM=["none",DM(0,2,1,-1,0,1,1,0,0,1,3,0),DM(0,3,1,-2,0,2,2,0,0,1,5,0),DM(0,3,3,-2,0,3,4,0,0,1,8,0),DM(0,2,4,-1,0,4,5,0,0,1,10,0),DM(0,3,5,-1,0,5,8,0,0,1,14,0),DM(0,3,5,-1,0,6,10,0,0,1,18,0),DM(0,4,5,-2,0,7,10,1,0,2,16,1),DM(0,5,5,-3,0,8,10,1,0,3,14,2),DM(0,5,6,-3,0,9,12,1,0,3,16,2),DM(0,6,6,-3,0,10,14,1,0,4,18,3),DM(0,6,7,-4,0,11,15,1,0,4,20,3),DM(0,7,8,-4,0,12,17,2,0,5,22,4),DM(0,7,8,-4,0,13,19,2,0,5,24,4),DM(0,7,9,-4,0,14,21,2,0,5,26,4),DM(0,8,9,-5,0,15,22,2,0,6,28,5),DM(0,8,10,-5,0,16,24,2,0,6,30,5),DM(0,8,11,-5,0,17,26,2,0,6,32,5),DM(0,9,11,-5,0,18,28,2,0,7,34,6),DM(0,9,12,-6,0,19,29,2,0,7,36,6),DM(0,10,13,-6,0,20,31,3,0,8,38,7),DM(0,10,13,-6,0,21,33,3,0,8,40,7),DM(0,10,14,-6,0,22,35,3,0,8,42,7),DM(0,11,14,-7,0,23,36,3,0,9,44,8),DM(0,11,15,-7,0,24,38,3,0,9,46,8)],RM=["duration","easing","delay"],PM={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)"},IM={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function zM(e){return`${Math.round(e)}ms`}function jM(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function FM(e){const t=Us({},PM,e.easing),n=Us({},IM,e.duration);return Us({getAutoHeightDuration:jM,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return ol(r,RM),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:zM(o)} ${i} ${"string"==typeof a?a:zM(a)}`)).join(",")}},e,{easing:t,duration:n})}const BM={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},_M=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function HM(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=ol(e,_M);if(e.vars)throw new Error(Cy(18));const s=TM(r),l=Ax(e);let c=qb(l,{mixins:(u=l.breakpoints,d=n,Us({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:AM.slice(),typography:OM(s,i),transitions:FM(o),zIndex:Us({},BM)});var u,d;return c=qb(c,a),c=t.reduce(((e,t)=>qb(e,t)),c),c.unstable_sxConfig=Us({},qx,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return Nx({sx:e,theme:this})},c}const $M=HM();function VM(){const e=zx($M);return e[ky]||e}function WM({props:e,name:t}){return vS({props:e,name:t,defaultTheme:$M,themeId:ky})}var UM,KM={},GM={exports:{}};var YM,XM={exports:{}};var JM=ie(kb),ZM=ie(Lb),QM=ie(jb),eC=ie(gS),tC=ie(Rx),nC=ie(Bx),rC=nM;Object.defineProperty(KM,"__esModule",{value:!0});var oC=KM.default=function(e={}){const{themeId:t,defaultTheme:n=gC,rootShouldForwardProp:r=hC,slotShouldForwardProp:o=hC}=e,i=e=>(0,uC.default)((0,iC.default)({},e,{theme:vC((0,iC.default)({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,sC.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:c,skipSx:u,overridesResolver:d=bC(yC(l))}=a,p=(0,aC.default)(a,fC),f=void 0!==c?c:l&&"Root"!==l&&"root"!==l||!1,m=u||!1;let h=hC;"Root"===l||"root"===l?h=r:l?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=(0,sC.default)(e,(0,iC.default)({shouldForwardProp:h,label:undefined},p)),y=e=>"function"==typeof e&&e.__emotion_real!==e||(0,lC.isPlainObject)(e)?r=>xC(e,(0,iC.default)({},r,{theme:vC({theme:r.theme,defaultTheme:n,themeId:t})})):e,v=(r,...o)=>{let a=y(r);const l=o?o.map(y):[];s&&d&&l.push((e=>{const r=vC((0,iC.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[s]||!r.components[s].styleOverrides)return null;const o=r.components[s].styleOverrides,i={};return Object.entries(o).forEach((([t,n])=>{i[t]=xC(n,(0,iC.default)({},e,{theme:r}))})),d(e,i)})),s&&!f&&l.push((e=>{var r;const o=vC((0,iC.default)({},e,{defaultTheme:n,themeId:t}));return xC({variants:null==o||null==(r=o.components)||null==(r=r[s])?void 0:r.variants},(0,iC.default)({},e,{theme:o}))})),m||l.push(i);const c=l.length-o.length;if(Array.isArray(r)&&c>0){const e=new Array(c).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const u=g(a,...l);return e.muiName&&(u.muiName=e.muiName),u};return g.withConfig&&(v.withConfig=g.withConfig),v}};KM.shouldForwardProp=hC,KM.systemDefaultTheme=void 0;var iC=rC((UM||(UM=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(GM)),GM.exports)),aC=rC((YM||(YM=1,function(e){e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports}(XM)),XM.exports)),sC=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=mC(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(JM),lC=ZM;rC(QM),rC(eC);var cC=rC(tC),uC=rC(nC);const dC=["ownerState"],pC=["variants"],fC=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function mC(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(mC=function(e){return e?n:t})(e)}function hC(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const gC=KM.systemDefaultTheme=(0,cC.default)(),yC=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function vC({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function bC(e){return e?(t,n)=>n[e]:null}function xC(e,t){let{ownerState:n}=t,r=(0,aC.default)(t,dC);const o="function"==typeof e?e((0,iC.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>xC(e,(0,iC.default)({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,aC.default)(o,pC);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,iC.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,iC.default)({ownerState:n},r,n)):e.style))})),t}return o}const SC=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,MC=oC({themeId:ky,defaultTheme:$M,rootShouldForwardProp:SC}),CC=["theme"];function wC(e){let{theme:t}=e,n=ol(e,CC);const r=t[ky];return Cb.jsx(ZS,Us({},n,{themeId:r?ky:void 0,theme:r||t}))}const kC=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function EC(e){return Ux("MuiSvgIcon",e)}Kx("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const TC=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],qC=MC("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${zb(n.color)}`],t[`fontSize${zb(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,i,a,s,l,c,u,d,p,f,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(c=e.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(m=(e.vars||e).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[t.color]}})),LC=S.forwardRef((function(e,t){const n=WM({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:u,viewBox:d="0 0 24 24"}=n,p=ol(n,TC),f=S.isValidElement(r)&&"svg"===r.type,m=Us({},n,{color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:f}),h={};c||(h.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return BS({root:["root","inherit"!==t&&`color${zb(t)}`,`fontSize${zb(n)}`]},EC,r)})(m);return Cb.jsxs(qC,Us({as:a,className:Vx(g.root,o),focusable:"false",color:l,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t},h,p,f&&r.props,{ownerState:m,children:[f?r.props.children:r,u?Cb.jsx("title",{children:u}):null]}))}));LC.muiName="SvgIcon";const NC=e=>e.scrollTop;function OC(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function DC(e){return Ux("MuiPaper",e)}Kx("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const AC=["className","component","elevation","square","variant"],RC=MC("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return Us({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&Us({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${aM("#fff",kC(t.elevation))}, ${aM("#fff",kC(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),PC=S.forwardRef((function(e,t){const n=WM({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=n,l=ol(n,AC),c=Us({},n,{component:o,elevation:i,square:a,variant:s}),u=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return BS({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},DC,o)})(c);return Cb.jsx(RC,Us({as:o,ownerState:c,className:Vx(u.root,r),ref:t},l))}));function IC(e){return"string"==typeof e}function zC(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}function jC(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}const FC=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function BC(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=ol(e,FC),s=i?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:l,internalRef:c}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=Vx(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=Us({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=Us({},n,o,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=zC(Us({},o,r)),s=jC(r),l=jC(o),c=t(a),u=Vx(null==c?void 0:c.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),d=Us({},null==c?void 0:c.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=Us({},c,n,l,s);return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}(Us({},a,{externalSlotProps:s})),u=function(e,t,n){return void 0===e||IC(e)?t:Us({},t,{ownerState:Us({},t.ownerState,n)})}(n,Us({},l,{ref:ES(c,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return u}const _C=Kx("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),HC=["center","classes","className"];let $C,VC,WC,UC,KC=e=>e;const GC=ab($C||($C=KC`
22
22
  0% {
23
23
  transform: scale(0);
24
24
  opacity: 0.1;
@@ -28,7 +28,7 @@ System.register(["picasso.js","picasso-plugin-q","hammerjs","qlik-chart-modules"
28
28
  transform: scale(1);
29
29
  opacity: 0.3;
30
30
  }
31
- `)),TC=nb(SC||(SC=wC`
31
+ `)),YC=ab(VC||(VC=KC`
32
32
  0% {
33
33
  opacity: 1;
34
34
  }
@@ -36,7 +36,7 @@ System.register(["picasso.js","picasso-plugin-q","hammerjs","qlik-chart-modules"
36
36
  100% {
37
37
  opacity: 0;
38
38
  }
39
- `)),qC=nb(MC||(MC=wC`
39
+ `)),XC=ab(WC||(WC=KC`
40
40
  0% {
41
41
  transform: scale(1);
42
42
  }
@@ -48,7 +48,7 @@ System.register(["picasso.js","picasso-plugin-q","hammerjs","qlik-chart-modules"
48
48
  100% {
49
49
  transform: scale(1);
50
50
  }
51
- `)),EC=dC("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),LC=dC((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:c}=e,[u,d]=x.useState(!1),p=jx(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},m=jx(n.child,u&&n.childLeaving,r&&n.childPulsate);return s||u||d(!0),x.useEffect((()=>{if(!s&&null!=l){const e=setTimeout(l,c);return()=>{clearTimeout(e)}}}),[l,s,c]),bb.jsx("span",{className:p,style:f,children:bb.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(CC||(CC=wC`
51
+ `)),JC=MC("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),ZC=MC((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:c}=e,[u,d]=S.useState(!1),p=Vx(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},m=Vx(n.child,u&&n.childLeaving,r&&n.childPulsate);return s||u||d(!0),S.useEffect((()=>{if(!s&&null!=l){const e=setTimeout(l,c);return()=>{clearTimeout(e)}}}),[l,s,c]),Cb.jsx("span",{className:p,style:f,children:Cb.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(UC||(UC=KC`
52
52
  opacity: 0;
53
53
  position: absolute;
54
54
 
@@ -91,4 +91,4 @@ System.register(["picasso.js","picasso-plugin-q","hammerjs","qlik-chart-modules"
91
91
  animation-iteration-count: infinite;
92
92
  animation-delay: 200ms;
93
93
  }
94
- `),vC.rippleVisible,kC,550,(({theme:e})=>e.transitions.easing.easeInOut),vC.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),vC.child,vC.childLeaving,TC,550,(({theme:e})=>e.transitions.easing.easeInOut),vC.childPulsate,qC,(({theme:e})=>e.transitions.easing.easeInOut)),NC=x.forwardRef((function(e,t){const n=RM({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=el(n,bC),[s,l]=x.useState([]),c=x.useRef(0),u=x.useRef(null);x.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[s]);const d=x.useRef(!1),p=xS(),f=x.useRef(null),m=x.useRef(null),h=x.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;l((e=>[...e,bb.jsx(LC,{classes:{ripple:jx(o.ripple,vC.ripple),rippleVisible:jx(o.rippleVisible,vC.rippleVisible),ripplePulsate:jx(o.ripplePulsate,vC.ripplePulsate),child:jx(o.child,vC.child),childLeaving:jx(o.childLeaving,vC.childLeaving),childPulsate:jx(o.childPulsate,vC.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},c.current)])),c.current+=1,u.current=a}),[o]),g=x.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const s=a?null:m.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(i)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):h({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})}),[r,h,p]),y=x.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=x.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{v(e,t)}));f.current=null,l((e=>e.length>0?e.slice(1):e)),u.current=t}),[p]);return x.useImperativeHandle(t,(()=>({pulsate:y,start:g,stop:v})),[y,g,v]),bb.jsx(EC,Hs({className:jx(vC.root,o.root,i),ref:m},a,{children:bb.jsx(nf,{component:null,exit:!0,children:s})}))}));function OC(e){return Bx("MuiButtonBase",e)}const DC=_x("MuiButtonBase",["root","disabled","focusVisible"]),AC=["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"],RC=dC("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"},[`&.${DC.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),IC=x.forwardRef((function(e,t){const n=RM({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:y,onFocusVisible:v,onKeyDown:b,onKeyUp:S,onMouseDown:M,onMouseLeave:C,onMouseUp:w,onTouchEnd:k,onTouchMove:T,onTouchStart:q,tabIndex:E=0,TouchRippleProps:L,touchRippleRef:N,type:O}=n,D=el(n,AC),A=x.useRef(null),R=x.useRef(null),I=gS(R,N),{isFocusVisibleRef:P,onFocus:z,onBlur:j,ref:F}=LS(),[B,_]=x.useState(!1);l&&B&&_(!1),x.useImperativeHandle(r,(()=>({focusVisible:()=>{_(!0),A.current.focus()}})),[]);const[H,$]=x.useState(!1);x.useEffect((()=>{$(!0)}),[]);const V=H&&!c&&!l;function W(e,t,n=u){return hS((r=>{t&&t(r);return!n&&R.current&&R.current[e](r),!0}))}x.useEffect((()=>{B&&d&&!c&&H&&R.current.pulsate()}),[c,d,B,H]);const U=W("start",M),K=W("stop",h),G=W("stop",g),Y=W("stop",w),X=W("stop",(e=>{B&&e.preventDefault(),C&&C(e)})),J=W("start",q),Z=W("stop",k),Q=W("stop",T),ee=W("stop",(e=>{j(e),!1===P.current&&_(!1),f&&f(e)}),!1),te=hS((e=>{A.current||(A.current=e.currentTarget),z(e),!0===P.current&&(_(!0),v&&v(e)),y&&y(e)})),ne=()=>{const e=A.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},re=x.useRef(!1),oe=hS((e=>{d&&!re.current&&B&&R.current&&" "===e.key&&(re.current=!0,R.current.stop(e,(()=>{R.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),b&&b(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!l&&(e.preventDefault(),m&&m(e))})),ie=hS((e=>{d&&" "===e.key&&R.current&&B&&!e.defaultPrevented&&(re.current=!1,R.current.stop(e,(()=>{R.current.pulsate(e)}))),S&&S(e),m&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=s;"button"===ae&&(D.href||D.to)&&(ae=p);const se={};"button"===ae?(se.type=void 0===O?"button":O,se.disabled=l):(D.href||D.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=gS(t,F,A),ce=Hs({},n,{centerRipple:o,component:s,disabled:l,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:E,focusVisible:B}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=NS({root:["root",t&&"disabled",n&&"focusVisible"]},OC,o);return n&&r&&(i.root+=` ${r}`),i})(ce);return bb.jsxs(RC,Hs({as:ae,className:jx(ue.root,a),ownerState:ce,onBlur:ee,onClick:m,onContextMenu:K,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:U,onMouseLeave:X,onMouseUp:Y,onDragLeave:G,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:l?-1:E,type:O},se,D,{children:[i,V?bb.jsx(NC,Hs({ref:I,center:o},L)):null]}))}));function PC(e){return Bx("MuiButton",e)}const zC=_x("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"]),jC=x.createContext({}),FC=x.createContext(void 0),BC=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],_C=e=>Hs({},"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}}),HC=dC(IC,{shouldForwardProp:e=>uC(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Ab(n.color)}`],t[`size${Ab(n.size)}`],t[`${n.variant}Size${Ab(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 Hs({},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":Hs({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:XS(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})`:XS(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})`:XS(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":Hs({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${zC.focusVisible}`]:Hs({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${zC.disabled}`]:Hs({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 ${XS(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"},[`&.${zC.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${zC.disabled}`]:{boxShadow:"none"}})),$C=dC("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Ab(n.size)}`]]}})((({ownerState:e})=>Hs({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},_C(e)))),VC=dC("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Ab(n.size)}`]]}})((({ownerState:e})=>Hs({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},_C(e)))),WC=x.forwardRef((function(e,t){const n=x.useContext(jC),r=x.useContext(FC),o=RM({props:dS(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:m=!1,size:h="medium",startIcon:g,type:y,variant:v="text"}=o,b=el(o,BC),S=Hs({},o,{color:a,component:s,disabled:c,disableElevation:u,disableFocusRipple:d,fullWidth:m,size:h,type:y,variant:v}),M=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return Hs({},a,NS({root:["root",i,`${i}${Ab(t)}`,`size${Ab(o)}`,`${i}Size${Ab(o)}`,`color${Ab(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Ab(o)}`],endIcon:["icon","endIcon",`iconSize${Ab(o)}`]},PC,a))})(S),C=g&&bb.jsx($C,{className:M.startIcon,ownerState:S,children:g}),w=p&&bb.jsx(VC,{className:M.endIcon,ownerState:S,children:p}),k=r||"";return bb.jsxs(HC,Hs({ownerState:S,className:jx(n.className,M.root,l,k),component:s,disabled:c,focusRipple:!d,focusVisibleClassName:jx(M.focusVisible,f),ref:t,type:y},b,{classes:M,children:[C,i,w]}))}));function UC(e){return Bx("MuiDivider",e)}_x("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const KC=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],GC=dC("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>Hs({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:XS(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>Hs({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>Hs({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>Hs({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>Hs({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),YC=dC("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Hs({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),XC=x.forwardRef((function(e,t){const n=RM({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:c="horizontal",role:u=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=el(n,KC),m=Hs({},n,{absolute:r,component:a,flexItem:s,light:l,orientation:c,role:u,textAlign:d,variant:p}),h=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return NS({root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},UC,r)})(m);return bb.jsx(GC,Hs({as:a,className:jx(h.root,i),role:u,ref:t,ownerState:m},f,{children:o?bb.jsx(YC,{className:h.wrapper,ownerState:m,children:o}):null}))}));XC.muiSkipListHighlight=!0;const JC=x.createContext({});function ZC(e){return Bx("MuiListItemButton",e)}const QC=_x("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),ew=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],tw=dC(IC,{shouldForwardProp:e=>uC(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})=>Hs({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"}},[`&.${QC.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:XS(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${QC.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:XS(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${QC.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:XS(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})`:XS(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${QC.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${QC.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}))),nw=x.forwardRef((function(e,t){const n=RM({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=el(n,ew),m=x.useContext(JC),h=x.useMemo((()=>({dense:s||m.dense||!1,alignItems:r,disableGutters:l})),[r,m.dense,s,l]),g=x.useRef(null);fS((()=>{o&&g.current&&g.current.focus()}),[o]);const y=Hs({},n,{alignItems:r,dense:h.dense,disableGutters:l,divider:c,selected:d}),v=(e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:a,selected:s}=e;return Hs({},n,NS({root:["root",r&&"dense",!i&&"gutters",a&&"divider",o&&"disabled","flex-start"===t&&"alignItemsFlexStart",s&&"selected"]},ZC,n))})(y),b=gS(g,t);return bb.jsx(JC.Provider,{value:h,children:bb.jsx(tw,Hs({ref:b,href:f.href||f.to,component:(f.href||f.to)&&"div"===i?"button":i,focusVisibleClassName:jx(v.focusVisible,u),ownerState:y,className:jx(v.root,p)},f,{classes:v,children:a}))})}));function rw(e){return Bx("MuiListItemIcon",e)}_x("MuiListItemIcon",["root","alignItemsFlexStart"]);const ow=["className"],iw=dC("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})=>Hs({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),aw=x.forwardRef((function(e,t){const n=RM({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=el(n,ow),i=Hs({},n,{alignItems:x.useContext(JC).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return NS({root:["root","flex-start"===t&&"alignItemsFlexStart"]},rw,n)})(i);return bb.jsx(iw,Hs({className:jx(a.root,r),ownerState:i,ref:t},o))}));function sw(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lw(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 cw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lw(Object(n),!0).forEach((function(t){sw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var uw,dw,pw=function(e){var t=e.className,n=e.title,r=e.path,o=e.fillRule;return b.createElement(yC,{className:t,viewBox:"0 0 16 16",fontSize:"small",role:"img",style:{height:12,width:12}},b.createElement("path",{d:r}),n?b.createElement("title",null,n):void 0,o?b.createElement("use",{fillRule:o}):void 0)},fw={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)"}}};dC(WC,{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:o,fontSize:o,fontFamily:i,color:a,height:"100%",minWidth:"0px",maxWidth:"640px",padding:n,"&:disabled":{color:a,opacity:1},"& .MuiButton-startIcon":{margin:"ltr"===t?"0 2px":void 0},"& .MuiButton-endIcon":{margin:"rtl"===t?"0 2px":void 0}}})),dC((function(e){var t=e.className;return b.createElement(pw,{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:fw.ICONS.COLOR.SECONDARY}})),dC((function(e){var t=e.className;return b.createElement(pw,{className:t,path:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})}))((function(){return{color:fw.ICONS.COLOR.SECONDARY,"&.disabled":{color:fw.ICONS.COLOR.DISABLED,opacity:.6}}}));var mw=function(e){var t=e.className,n=e.title;return b.createElement(pw,{className:t,title:n,path:"M 6 2 h 10 V 1 H 6 Z m 5 5 h 5 V 6 h -5 Z m 5 5 h -5 v -1 h 5 Z M 5 10 h 1 v 2.663 a 3.5 3.5 0 1 0 -2.922 0.036 l -0.406 0.914 A 4.501 4.501 0 1 1 7.329 13 H 9 v 1 H 5 Z"})};dC(WC,{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e&&"styling"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast,o=e.styling.color;return{fontWeight:"normal",lineHeight:"normal",color:o,height:"24px",width:"24px",padding:0,marginLeft:"ltr"!==t||n?void 0:"4px",marginRight:"rtl"!==t||r?void 0:"4px","&:disabled":{color:o,opacity:1}}})),dC(mw,{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast;return{color:fw.ICONS.COLOR.PRIMARY,marginLeft:"ltr"!==t||n?void 0:"4px",marginRight:"rtl"!==t||r?void 0:"4px"}})),dC((function(e){var t=e.className,n=e.title;return b.createElement(pw,{className:t,title:n,path:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7Z"})}),{})((function(){return{color:fw.ICONS.COLOR.SECONDARY,"&.disabled":{color:fw.ICONS.COLOR.DISABLED}}}));var hw=function(e){var t=e.className,n=e.title;return b.createElement(pw,{className:t,title:n,path:"M7 4h9v1H7V4ZM9 8h7v1H9V8ZM11 12h5v1h-5v-1ZM1 4v3.526a3.5 3.5 0 0 0 3.5 3.5h2.31L5.22 9.402l.715-.7L8.7 11.527 5.935 14.35l-.714-.7 1.59-1.624H4.5a4.5 4.5 0 0 1-4.5-4.5V4h1Z"})};dC(WC,{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:n,fontSize:n,fontFamily:r,color:o,padding:"0px 5px",height:"100%",minWidth:"45px","&:disabled":{color:o}}}));var gw={color:fw.ICONS.COLOR.SECONDARY,"&.disabled":{color:fw.ICONS.COLOR.DISABLED}};dC((function(e){var t=e.className;return b.createElement(pw,{className:t,path:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5 8.5 8z"})}))((function(){return gw})),dC((function(e){var t=e.className;return b.createElement(pw,{className:t,path:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))((function(){return gw})),dC(hw,{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast;return{color:fw.ICONS.COLOR.PRIMARY,marginLeft:"ltr"!==t||n?void 0:"4px",marginRight:"rtl"!==t||r?void 0:"4px"}})),dC(nw,{shouldForwardProp:function(e){return"nested"!==e&&"rtl"!==e}})((function(e){var t=e.nested,n=e.rtl;return{padding:"4px ".concat(t&&n?"32px":"16px"," 4px ").concat(t&&!n?"32px":"16px"),"&:focus":cw({},fw.FOCUS)}})),dC(aw)((function(){return{marginRight:0,justifyContent:"center"}})),dC((function(e){var t=e.className;return b.createElement(pw,{className:t,path:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2 3 3Z"})}))((function(){return{color:fw.ICONS.COLOR.SECONDARY}})),dC(mw)((function(){return{color:fw.ICONS.COLOR.SECONDARY}})),dC(hw)((function(){return{color:fw.ICONS.COLOR.SECONDARY,fontWeight:600}})),dC(XC)((function(){return{marginTop:"-1px"}}));var yw=function(){if(dw)return uw;dw=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return uw=function e(){var t,n,r,l,c,u,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(m&&l&&(i(l)||(c=o(l)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&i(r)?r:{},a(d,{name:n,newValue:e(m,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},uw}();!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(yw);var vw,bw=function(e){var t=e.dock,n=e.settings.label,r="center"===t,o=r?{}:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};return b.createElement("span",{style:o,title:n},r?n:"* ".concat(n))},xw={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 b.createElement("div",{dir:i,style:a},b.createElement(bw,{dock:t,settings:r}))}({dock:n.dock,rect:e,settings:r,styling:o})}},Sw={},Mw=function(){if(vw)return Sw;vw=1;var e=q;return Sw.createRoot=e.createRoot,Sw.hydrateRoot=e.hydrateRoot,Sw}(),Cw=DM({spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:14,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:600,fontWeightBold:700,htmlFontSize:14,fontFamily:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif",button:{fontWeight:600,fontSize:14,textTransform:"none"}},shape:{borderRadius:3},components:{MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"qcm-focus-visible"}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"qcm-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:141,borderRadius:3,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transform:"translate3d(0,0,0)"},text:{padding:"8px 16px","&:active":{backgroundColor:"rgba(0, 0, 0, 0.1)"},"&.Mui-focusVisible":{boxShadow:"inset 0 0 0 2px ".concat("#177FE6")}},outlined:{border:"1px solid rgba(0, 0, 0, 0.15)"},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"}},variants:[]},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:14,height:"32px"}}},MuiListItemIcon:{styleOverrides:{root:{color:"#404040",minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:14,color:"#404040",lineHeight:"16px",fontWeight:600},secondary:{fontSize:12,color:"#737373",fontWeight:400,lineHeight:"16px"}}}}});function ww(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 kw(){var e={rendererBox:ww(),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=ww(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=Mw.createRoot(e.container)),t.appendChild(e.container),e.container},setKey:function(t){e.container&&e.container.setAttribute("data-key",t)},render:function(t){if(!e.container)return!1;var n=e.rendererBox,r=n.scaleRatio.x,o=n.scaleRatio.y;return e.container.style.left="".concat(Math.round(n.margin.left+n.x*r),"px"),e.container.style.top="".concat(Math.round(n.margin.top+n.y*o),"px"),e.container.style.width="".concat(Math.round(n.width),"px"),e.container.style.height="".concat(Math.round(n.height),"px"),e.container.style.transform="scale(".concat(r,", ").concat(o,")"),e.container.style.transformOrigin="top left",e.root.render(function(e){var t=e.nodes;return b.createElement(b.StrictMode,null,b.createElement(fC,{theme:Cw},t))}({nodes:t})),!0},findShapes:function(){return[]},itemsAt:function(){return[]},clear:function(){t()},destroy:function(){t()}}}const Tw={getDefaultSettings:({size:e=10,fill:t="#999",alignment:n}={})=>({show:!0,type:"n-polygon",fill:t,stroke:"#000",strokeWidth:0,size:e,sides:3,startAngle:-90,alignment:n}),createOob({oob:e,dockValue:t,boxCenter:n,rendWidth:r,rendHeight:o,flipXY:i,symbol:a}){let s="x",l="y",c=r,u=o,d=t<.5?90:-90;return i&&(s="y",l="x",c=o,u=r,d=t<.5?180:0),a(de({},e,{[s]:n*c,[l]:u-Math.max(e.size/2,Math.min(t*u,u-e.size/2)),startAngle:d}))}};function qw({i:e,width:t,height:n,resolved:r,keys:o,flipXY:i,calcKey:a="box"}){let s,l=null,c=null;void 0!==r.major.settings.binStart?(l=r.major.items[e].binStart,c=r.major.items[e].binEnd,s=r.major.settings.binStart.scale):(s=r.major.settings.major.scale,l=s?r.major.items[e].major:0);let u=0;s?s.bandwidth?(u=s.bandwidth(),l-=u/2):u=c-l:u=1;const d=de({},{major:l,majorEnd:c},r.minor.items[e]);o.forEach((t=>{d[t]=r[t].items[e]}));const p=i?n:t,f=function({bandwidth:e,width:t,minWidthPx:n,maxWidthPx:r,maxMajorWidth:o}){const i=e>=0?1:-1;let a=Math.min(i*e*t,Number.isNaN(Number(r))?o:r/o);return a=Number.isNaN(Number(n))?a:Math.max(n/o,a),a*i}({bandwidth:u,width:d[a].width,minWidthPx:d[a].minWidthPx,maxWidthPx:d[a].maxWidthPx,maxMajorWidth:p}),m=(u-f)/2,h=m+d.major+f/2;return{item:d,boxCenter:h,boxWidth:f,boxPadding:m,rendWidth:t,rendHeight:n}}function Ew({keys:e,data:t,defaultSettings:n,style:r,settings:o,width:i,height:a,resolver:s}){const l=de(!0,{},n||{},r||{}),c={major:"horizontal"===o.orientation?a:i,minor:"horizontal"===o.orientation?i:a},u=o.major;let d;d="object"==typeof u&&"object"==typeof u.ref&&void 0!==u.ref.start&&void 0!==u.ref.end?s.resolve({data:t,defaults:{start:0,end:1},scaled:c,settings:de(!0,{},{binStart:{scale:o.major.scale,ref:o.major.ref.start},binEnd:{scale:o.major.scale,ref:o.major.ref.end}})}):"object"==typeof u&&void 0!==u.binStart&&void 0!==u.binEnd?s.resolve({data:t,defaults:{start:0,end:1},scaled:c,settings:de(!0,{},{binStart:{scale:o.major.scale,ref:"binStart"},binEnd:{scale:o.major.scale,ref:"binEnd"}},o.major)}):s.resolve({data:t,scaled:c,defaults:{major:.5},settings:{major:o.major}});const p=o.minor||{};let f;const m={major:d,minor:s.resolve({data:t,defaults:{start:0,end:1},scaled:c,settings:de(!0,{},{start:{scale:p.scale,ref:"start"},end:{scale:p.scale,ref:"end"},min:{scale:p.scale,ref:"min"},max:{scale:p.scale,ref:"max"},med:{scale:p.scale,ref:"med"}},p)})};for(let n=0,r=e.length;n<r;n++)f=e[n],m[f]=s.resolve({data:t,defaults:l[f],settings:o[f],scaled:c});return m}const Lw=["oob"];const Nw={require:["chart","resolver","symbol"],defaultSettings:{settings:{size:10},data:{},style:{}},created(){this.state={}},preferredSize(){return this.settings.settings.size},render(){const{width:e,height:t}=this.rect,{dockValue:n}=this.settings.settings,r="horizontal"===this.settings.settings.orientation,{data:o,style:i,resolver:a,symbol:s}=this,l=Ew({keys:Lw,data:o,defaultSettings:{oob:Tw.getDefaultSettings()},style:i,settings:this.settings.settings,width:e,height:t,resolver:a}),{settings:c,items:u}=l,d=function({width:e,height:t,flipXY:n,resolved:r,keys:o,symbol:i,dockValue:a,_calcItemRenderingOpts:s=qw}){const l=[],{items:c}=r.major;for(let u=0,d=c.length;u<d;u++){const{item:d,boxCenter:p,rendWidth:f,rendHeight:m}=s({i:u,width:e,height:t,resolved:r,keys:o,flipXY:n,calcKey:"oob"}),h=c[u].data,g=[];if(d.oob.show){g.push(Tw.createOob({oob:d.oob,dockValue:a,boxCenter:p,rendWidth:f,rendHeight:m,flipXY:n,symbol:i}));const e={type:"container",data:h,collider:{type:"bounds"},children:g};l.push(e)}}return l}({width:e,height:t,flipXY:r,resolved:l,keys:Lw,symbol:s,dockValue:n});return d}},Ow={size:25,hat:{show:!0,fill:"#999",stroke:"#000",strokeWidth:0,strokeLinejoin:"miter",width:1,maxWidthPx:void 0,minWidthPx:1,minHeightPx:1,alignment:0}},Dw=["hat"];function Aw(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 Rw({item:e,boxWidth:t,boxPadding:n,rendWidth:r,rendHeight:o,flipXY:i}){let a="x",s="y",l=r,c=o,u=e.hat.alignment||0;i&&(a="y",s="x",l=o,c=r,u=1-u);const d=(n+e.major)*l;let p=[{[a]:d,[s]:0+c},{[a]:d+t*u*l,[s]:8},{[a]:d+t*l,[s]:0+c},{[a]:d+t*l,[s]:0+c+10},{[a]:d,[s]:0+c+10}];const f=de({},e.hat,{type:"path",d:Aw(p)});p=[{[a]:d,[s]:0},{[a]:d+t*(1-u)*l,[s]:0+c-8},{[a]:d+t*l,[s]:0},{[a]:d+t*l,[s]:-10},{[a]:d,[s]:-10}];return[f,de({},e.hat,{type:"path",d:Aw(p)})]}const Iw={require:["chart","resolver","symbol"],defaultSettings:{settings:{size:25},data:{},style:{hat:"$shape"}},created(){this.state={}},preferredSize(){return this.settings.settings.size},render(){const{width:e,height:t}=this.rect,n="horizontal"===this.settings.settings.orientation,{data:r,style:o,resolver:i}=this,a=Ew({keys:Dw,data:r,defaultSettings:Ow,style:o,settings:this.settings.settings,width:e,height:t,resolver:i}),{settings:s,items:l}=a,c=function({width:e,height:t,flipXY:n,resolved:r,keys:o,_calcItemRenderingOpts:i=qw}){const a=[],{items:s}=r.major;for(let l=0,c=s.length;l<c;l++){const{item:c,boxWidth:u,boxPadding:d,rendWidth:p,rendHeight:f}=i({i:l,width:e,height:t,resolved:r,keys:o,flipXY:n,calcKey:"hat"}),m=s[l].data,h=[];c.hat.show&&h.push(...Rw({item:c,boxWidth:u,boxPadding:d,rendWidth:p,rendHeight:f,flipXY:n}));const g={type:"container",data:m,collider:{type:"bounds"},children:h};a.push(g)}return a}({width:e,height:t,flipXY:n,resolved:a,keys:Dw});return c}};var Pw={defaultSettings:{settings:{size:10}},preferredSize(){return this.settings.settings.size},render:()=>[]};function zw(e,t,n,r){const o=function(t){const n=String(t);return e(n)};return o.ticks=()=>t.map((t=>{const i=o([t.data.value,r?n-1:0]),a=o([t.data.value,r?0:n-1])+e.bandwidth();return{position:(i+a)/2,label:t.label,data:t.data,start:i,end:a}})),o.bandwidth=()=>e.bandwidth(),o.data=()=>e.data(),o.domain=()=>e.domain(),o.pxScale=function(r){const o=e.pxScale(r);return o===e?this:zw(o,t,n)},o}function jw(e){const t=e.scale("band");e.scale("group-by-measure",(function(e={},n={},r={}){const o=t(e,n,r),i=o.domain(),a=o.ticks(),s=[],l=e.measureCount;return i.forEach(((e,t)=>{for(let t=0;t<l;++t)s.push(String([e,t]));s.push(`SPACER_${t}_SPACER`)})),s.splice(-1),o.domain(s),zw(o,a,l,e.invert)}))}const Fw=()=>({version:"1.37.2",barGrouping:{grouping:"grouped"},color:{auto:!0,autoMinMax:!0,byDimDef:void 0,byMeasureDef:void 0,colorExpression:void 0,dimensionScheme:"12",expressionIsColor:!0,expressionLabel:"",formatting:{numFormatFromTemplate:!0,isCustomFormatted:void 0},measureMin:void 0,measureMax:void 0,measureScheme:"sg",mode:"primary",paletteColor:{index:6},persistent:!1,reverseScheme:!1,singleColor:void 0,useBaseColors:"off",useDimColVal:!0,useMeasureGradient:!0},components:[],dataPoint:{showLabels:!1,showSegmentLabels:!1,showTotalLabels:!0},dimensionAxis:{axisDisplayMode:"auto",continuousAuto:!0,dock:"near",label:"auto",maxVisibleItems:10,show:"all"},footnote:"",gridLine:{auto:!0,spacing:2},legend:{dock:"auto",show:!0,showTitle:!0},measureAxis:{autoMinMax:!0,dock:"near",max:10,min:0,minMax:"min",show:"all",spacing:1},orientation:"vertical",preferContinuousAxis:!0,qHyperCubeDef:{qDimensions:[],qMeasures:[],qInitialDataFetch:[{qWidth:17,qHeight:500}],qSuppressMissing:!0,qSuppressZero:!1},refLine:{refLines:[],dimRefLines:[]},scrollbar:"miniChart",scrollStartPos:0,showDetails:!0,showDisclaimer:!0,showMiniChartForContinuousAxis:!0,showTitles:!0,subtitle:"",title:"",tooltip:{auto:!0,hideBasic:!1,data:{qHyperCubeDef:void 0},chart:void 0,imageComponents:void 0}}),Bw={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 _w(e){const t=e.split("/");return"qmem:"===t[0]&&""===t[1]}const Hw={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 $w(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 Hw.getImageSize(r,t);return{src:r,size:t,height:i,width:a,imageError:s}}async function Vw(e,t,n,r){var o,i,a;const{app:s,flags:l}=t,c=null===(o=e.layout)||void 0===o||null===(o=o.tooltip)||void 0===o?void 0:o.imageComponents;if(!c)return[];const[u]=c,d=u.size||"small",p=u.type||"media";let f=-1;for(let e=0;e<n.length;e++)if(n[e].cId===u.cId){f=e;break}const m=(null===(i=r.data)||void 0===i||null===(i=i.customTooltipAttrExps)||void 0===i?void 0:i.value)||[];let h;if(-1!==f&&m[f]&&(h=m[f]),"media"===p&&null!==(a=u.ref)&&void 0!==a&&null!==(a=a.qStaticContentUrl)&&void 0!==a&&a.qUrl)return $w(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&&_w(a))try{const t=`data:image/png;base64, ${await e.getImage(a)}`,{height:n,width:o,imageError:s}=await Hw.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 Hw.getImageSize(a,r);i={src:a,size:r,height:e,width:t,imageError:n}}return i}(s,l,u,d,h);if(l.isEnabled("IMAGE_BUNDLE_LOAD")&&"field"===p&&h&&h.label){return async function(e,t,n,r){let o;const i=r.label,a=`qmem://${t.qFallbackTitle}/${i}`;if(_w(a))try{const t=await e.getImage(a);if(t){const e=`data:image/png;base64, ${t}`,{height:r,width:i,imageError:a}=await Hw.getImageSize(e,n);o={src:e,size:n,height:r,width:i,imageError:a}}}catch(e){}return o}(s,n[f],d,h)}return[]}const Ww={async addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){const o=t,i=[];for(let t=0;t<o.length;t++)i.push(Vw(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}},Uw={async handlePromises({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){let o=t;return o=await Ww.addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}),o},checkIfPromisesExist:({customTooltipModel:e})=>Ww.checkIfPromisesExist({customTooltipModel:e})};const Kw=(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:Bw.CHART.CHART_PARENT_TYPE,qId:Bw.CHART.CHART_OBJECT_ID},qHyperCubeDef:{qDimensions:i,qMeasures:a,qInterColumnSortOrder:s,qInitialDataFetch:[{qWidth:0,qHeight:0}]},qStateName:l}},Gw=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:Bw.CHART.CHART_CHILD_TYPE},qExtendsId:n}};const Yw={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=Bw.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:Bw.CHART.CONTAINER_ID})],colspan:2,style:{"text-align":e.rtl?"right":"left","max-width":i}},{}]}(e,t)},show:async({app:e,properties:t,selectedNodes:n,dimIndex:r,customTooltipModel:o,rtl:i})=>{var a;const s=o,l=null==t||null===(a=t.tooltip)||void 0===a||null===(a=a.chart)||void 0===a||null===(a=a.object)||void 0===a?void 0:a.refId;if(null!=s&&s.embed&&e.removeSessionAlternateState&&e.addSessionAlternateState&&l&&!(t.qHyperCubeDef.qDimensions.length<=0)){await Yw.hide({app:e,customTooltipModel:o});try{await async function({app:e,properties:t,customTooltipModel:n}){const r=n,o=Bw.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=Bw.CHART.STATE,a=Kw(t,i),s=await e.createSessionObject(a),l=Gw(t);if(s.id!==Bw.CHART.CHART_OBJECT_ID)return void e.destroySessionObject(s.id);o.miniChartToken.sessionObj=s;const c=await s.createChild(l);if(o.miniChartToken.sessionObj&&o.miniChartToken.sessionObj.id===s.id)return o.miniChartToken.model=c,c;e.destroySessionObject(s.id)}({app:e,properties:t,customTooltipModel:o});if(s.miniChartToken.alternateState&&s.miniChartToken.sessionObj&&a){var c,u,d,p;const e=n.length>0&&void 0!==(null===(c=n[0].data)||void 0===c?void 0:c.value)?[null===(u=n[0].data)||void 0===u?void 0:u.value]:[],a=void 0!==r?r:t.qHyperCubeDef.qDimensions.length-1;if(2===t.qHyperCubeDef.qDimensions.length&&void 0===r&&n.length>0){var f,m;const e=null!==(f=n[0].data.selectionOuterDimension)&&void 0!==f?f:n[0].data.selectionDimension;if(null!=e&&null!==(m=e.source)&&void 0!==m&&m.field){var h;const t=null==e||null===(h=e.source)||void 0===h?void 0:h.field.split("/"),n=t[t.length-1],r=void 0!==e.value?[e.value]:[];r.length>0&&void 0!==n&&s.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",Number(n),r,!1)}}e.length>0&&s.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",a,e,!1);const l=document.getElementById(Bw.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 Yw.hide({app:e,customTooltipModel:o})}}},hide:async({app:e,customTooltipModel:t})=>{const n=t;null!=n&&n.embed&&(Yw.destroyVisualization({customTooltipModel:t}),await e.destroySessionObject(Bw.CHART.CHART_OBJECT_ID),n.miniChartToken.sessionObj=void 0,await async function({app:e,customTooltipModel:t}){const n=t,r=Bw.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 Xw(e){const t=e.qHyperCubeDef?e.qHyperCubeDef.qDimensions:e.qHyperCube.qDimensionInfo;if(t&&t.length>0)return t}function Jw(){const{EXPRESSION:e,TITLE:t,DESCRIPTION:n,IMAGES:r}=Bw.CUSTOM,o={};return o[e]=!0,o[t]=!0,o[n]=!0,o[r]=!0,o}function Zw(e){const t=Jw();return e.filter((e=>t[e.id]))}const Qw={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}=Qw.getAttrExprData(a);i.length||n.length?Uw.handlePromises({customTooltipModel:o,nodes:Qw.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&&Yw.hide({app:r.app,customTooltipModel:o}),t.emit("hide")}},checkIfPromisesExist:({customTooltipModel:e})=>Uw.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[Bw.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[Bw.CUSTOM.QUARANTINE]=[],e.forEach((e=>{r.quarantine[Bw.CUSTOM.QUARANTINE].push(e)})),n.qLayoutExclude=r}(Zw(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[Bw.CUSTOM.QUARANTINE])&&delete n.qLayoutExclude.quarantine[Bw.CUSTOM.QUARANTINE]},setAttrsFromQuarantine(e,t){const n=Xw(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===Zw(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=Xw(e)||[];[...o,t].forEach((e=>{const t=Zw(e.qAttributeExpressions||[]);t.length>0&&(r=t)}));const i=Jw(),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:Fe.detectTextDirection(e)},colspan:2},{}],getImageRow(e,t){const n=Fe.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 ek(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 Bw.CUSTOM.EXPRESSION:n="NaN"===t.qNum||e.isCustomFormatted?void 0===t.qText?"NaN":t.qText:t.qNum;break;case Bw.CUSTOM.TITLE:case Bw.CUSTOM.DESCRIPTION:case Bw.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 tk={getNode(e,{dimensionCount:t}){if(!t||t<1)return;const n=t-1,r="qDimensionInfo";return{field:`${r}/${n}`,value:t=>ek(t,e,r,n)}}};const nk={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={[Bw.CUSTOM.TITLE]:!0,[Bw.CUSTOM.DESCRIPTION]:!0},{attrExps:i,fieldPath:a}=Qw.getAttrExprData(e);return 0===t.length||0===i.length||""===a||i.forEach(((e,i)=>{const s=t[i];if(e.id===Bw.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===Bw.CUSTOM.TITLE&&{title:t},value:t,id:e.id})}})),r}(n,i.map((t=>Be.getMeasure(e,t))),e,o)}};function rk({nodes:e,layout:t,dataset:n}){const r=function(e,t,n){const r=[];return e.forEach((e=>{r.push(nk.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 ok(e){const t=Bw.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 ik(e){var t;const n=null===(t=e.qHyperCubeDef)||void 0===t?void 0:t.qDimensions;return n[n.length-1].qAttributeExpressions||[]}const ak={migrateProperties(e){var t,n;const r=de(!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=ik(r);return i=function(e,t){return t.concat(e.map((e=>ok(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=ok(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}(ik(e),r,o);return i},checkForBackwardCompatibility:(e,t)=>(e.qMeasureInfo||[]).length>0&&t.length>0,updateProperties(e,t){const n=new Promise((n=>{var r,o,i;const a=(null===(r=t.qHyperCube)||void 0===r?void 0:r.qDimensionInfo)||[],s=(null===(o=t.tooltip)||void 0===o||null===(o=o.data)||void 0===o?void 0:o.qHyperCube)||{},l=null===(i=t.qMeta)||void 0===i||null===(i=i.privileges)||void 0===i?void 0:i.includes("update");e&&e.getEffectiveProperties&&this.checkForBackwardCompatibility(s,a)&&e.getEffectiveProperties().then((t=>{if(l){const r=this.migrateProperties(t);e.setProperties(r).then((()=>{e.app.clearUndoBuffer(),n(!0)}))}else{const r=this.getPatches(t);e.applyPatches(r,!0).then((()=>{e.app.clearUndoBuffer(),n(!0)}))}})),n(!1)}));return n}};var sk={attrExpr:ak},lk=7005;const ck=e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==lk},uk=e=>{if(e.qHyperCubeDef.qDimensions.length>1&&1===e.qHyperCubeDef.qMeasures.length){const t=e.qHyperCubeDef.qInterColumnSortOrder.indexOf(0);0!==t&&Se.moveArrayElement(e.qHyperCubeDef.qInterColumnSortOrder,t,0)}},dk=(e,t)=>{t>10?1!==e.qHyperCubeDef.qInterColumnSortOrder[0]&&Se.moveArrayElement(e.qHyperCubeDef.qInterColumnSortOrder,1,0):0!==e.qHyperCubeDef.qInterColumnSortOrder[0]&&Se.moveArrayElement(e.qHyperCubeDef.qInterColumnSortOrder,1,0)},pk=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))},fk=(e,t)=>{const n=e.qHyperCubeDef.qDimensions,r=e.qHyperCubeDef.qMeasures;if(1===n.length&&1===r.length){const r=n[0];return r.qLibraryId?t.getDimension(r.qLibraryId).then((e=>e.getLayout())).then((t=>{if(t&&t.qDimInfos&&t.qDimInfos[0]){const n=t.qDimInfos[0].qCardinal;dk(e,n)}return r})):t.getField(r.qDef.qFieldDefs[0]).then((t=>t.getCardinal().then((t=>(dk(e,t),r)))),(()=>r))}return uk(e),Promise.resolve()};function mk(e){const t=e.qHyperCubeDef.qDimensions,n=e.qHyperCubeDef.qMeasures,{color:{mode:r}}=e;t.length>1&&e.color?i(e,"color.persistent",!0):"byDimension"===r&&n.length>1?i(e,"color.mode","byMultiple"):"byExpression"===r&&0===n.length?i(e,"color.mode","primary"):0===t.length&&n.length>0&&(i(e,"color.byMeasureDef",void 0),i(e,"color.byDimDef",void 0),1===n.length&&"byExpression"!==r&&i(e,"color.mode","primary"))}const hk=(e,t)=>{mk(t),Ft(e),Qw.addCallbackCustomTooltip(t)},gk=e=>{mk(e)};function yk({translator:e}){return{dimensions:{min:0,max:e=>e>1?1:2,description(t,n,r,o){let i;const a=null!=o&&o.layout?o.layout.qHyperCube.qDimensionInfo.filter((e=>ck(e))).length:t.qHyperCubeDef.qDimensions.length;return r.isAutoChart&&n>a-1?i="Visualizations.Descriptions.Color":a>1&&0===n?"stacked"===t.barGrouping.grouping?i="Visualizations.Descriptions.Stack":(i="Visualizations.Descriptions.Group",t.qHyperCubeDef.qColumnOrder=[0,1,2]):i="Visualizations.Descriptions.Bars",e.get(i)},add:(e,t,n)=>(t.qHyperCubeDef.qDimensions.length>1&&"stacked"===t.barGrouping.grouping&&(t.qHyperCubeDef.qMode="K",t.qHyperCubeDef.qAlwaysFullyExpanded=!0),null!=n&&n.app?fk(t,n.app).then((()=>(hk(e,t),e))):(pk(t),hk(e,t),e)),move(e,t,n){n.layout.qHyperCube.qDimensionInfo.filter((e=>ck(e))).length>1&&"stacked"===t.barGrouping.grouping&&(t.qHyperCubeDef.qMode="K",t.qHyperCubeDef.qAlwaysFullyExpanded=!0),uk(t),mk(t),Qw.moveCallbackCustomTooltip(t,e)},remove(e,t){const n=t.qHyperCubeDef.qDimensions;mk(t),1===n.length&&(t.qHyperCubeDef.qMode="S"),Qw.removeCallbackCustomTooltip(t,e)},replace(e,t,n,r){Qw.replaceCallbackCustomTooltip(r,t)}},measures:{min:1,max:e=>e>1?1:15,description:()=>e.get("Visualizations.Descriptions.LengthBars"),add:(e,t,n)=>null!=n&&n.app?fk(t,n.app).then((()=>(e.qSortBy.qSortByNumeric=-1,gk(t),e))):(pk(t),gk(t),e),move(e,t){uk(t),mk(t)},remove(e,t){const n=t.qHyperCubeDef.qDimensions;mk(t),n.length>1&&"stacked"===t.barGrouping.grouping?(t.qHyperCubeDef.qMode="K",t.qHyperCubeDef.qAlwaysFullyExpanded=!0):1===n.length&&(t.qHyperCubeDef.qMode="S")}}}}function vk(e){return{properties:Fw(),data:{targets:[{path:"/qHyperCubeDef",...yk(e)}]}}}var bk={properties_dataPoints_labelmode_share:{id:"properties.dataPoints.labelmode.share",locale:{"en-US":"Share","zh-TW":"佔有率","zh-CN":"份额","tr-TR":"Pay","sv-SE":"Andel","it-IT":"Percentuale","es-ES":"Cuota","de-DE":"Anteil","pl-PL":"Udział","nl-NL":"Aandeel","ko-KR":"공유","pt-BR":"Percentual","fr-FR":"Part","ja-JP":"割合","ru-RU":"Доля"}},Tooltip_selections_locked:{id:"Tooltip.selections.locked",locale:{"en-US":"Selections on this dimension are locked","zh-TW":"已鎖定此維度上的選項","zh-CN":"相关维度的选择已锁定","tr-TR":"Bu boyuttaki seçimler kilitli","sv-SE":"Urval i den här dimensionen är låsta","it-IT":"Le selezioni in questa dimensione sono bloccate","es-ES":"Las selecciones de esta dimensión están bloqueadas.","de-DE":"Auswahlen sind für diese Dimension gesperrt","pl-PL":"Selekcje dotyczące tego wymiaru są zablokowane","nl-NL":"Selecties voor deze dimensie zijn vergrendeld","ko-KR":"이 차원의 선택은 잠겨 있습니다.","pt-BR":"Seleções estão bloqueadas nesta dimensão","fr-FR":"Sélections verrouillées pour cette dimension","ja-JP":"この軸での選択はロックされています","ru-RU":"Выборки для данного измерения заблокированы"}},Tooltip_dimensions_drilldown:{id:"Tooltip.dimensions.drilldown",locale:{"en-US":"Drill-down dimension","zh-TW":"向下探查維度","zh-CN":"下钻维度","tr-TR":"Detaya inme boyutu","sv-SE":"Hierarkisk dimension","it-IT":"Dimensione di drill-down","es-ES":"Dimensión jerárquica","de-DE":"Drilldown-Dimension:","pl-PL":"Wymiar hierarchiczny","nl-NL":"Drill-downdimensie","ko-KR":"드릴다운 차원","pt-BR":"Dimensão da hierarquia","fr-FR":"Descendre dans la hiérarchie de la dimension","ja-JP":"軸のドリルダウン","ru-RU":"Измерение с детализацией"}},Object_ErrorMessage_MissingDimension:{id:"Object.ErrorMessage.MissingDimension",locale:{"en-US":"Dimension not found","zh-TW":"找不到維度","zh-CN":"未找到维度","tr-TR":"Boyut bulunamadı","sv-SE":"Dimensionen hittades inte","it-IT":"Dimensione non trovata","es-ES":"No se ha encontrado la dimensión","de-DE":"Dimension nicht gefunden","pl-PL":"Wymiar nie został znaleziony","nl-NL":"Dimensie niet gevonden","ko-KR":"차원을 찾지 못했습니다.","pt-BR":"Dimensão não encontrada","fr-FR":"Dimension introuvable","ja-JP":"軸が見つかりません","ru-RU":"Измерение не найдено"}},Object_ErrorMessage_MissingMeasure:{id:"Object.ErrorMessage.MissingMeasure",locale:{"en-US":"Measure not found","zh-TW":"找不到量值","zh-CN":"未找到度量","tr-TR":"Hesaplama bulunamadı","sv-SE":"Måttet hittades inte","it-IT":"Misura non trovata","es-ES":"No se ha encontrado la medida","de-DE":"Kennzahl nicht gefunden","pl-PL":"Miara nie została znaleziona","nl-NL":"Meting niet gevonden","ko-KR":"측정값을 찾지 못했습니다.","pt-BR":"Medida não encontrada","fr-FR":"Mesure introuvable","ja-JP":"メジャーが見つかりません","ru-RU":"Мера не найдена"}},Object_Disclaimer_LimitedData:{id:"Object.Disclaimer.LimitedData",locale:{"en-US":"Currently showing a limited data set.","zh-TW":"目前顯示的是有限的資料集。","zh-CN":"当前正显示有限的数据集。","tr-TR":"Şu anda sınırlı bir veri kümesi gösteriliyor.","sv-SE":"Just nu visas en begränsad uppsättning data.","it-IT":"Attualmente viene visualizzata una serie di dati limitata.","es-ES":"Mostrando actualmente un conjunto limitado de datos.","de-DE":"Zurzeit wird nur ein beschränkter Datensatz angezeigt.","pl-PL":"Aktualnie przedstawiany jest ograniczony zestaw danych.","nl-NL":"Momenteel wordt een beperkte gegevensverzameling getoond.","ko-KR":"현재 제한된 데이터 집합을 표시하고 있습니다.","pt-BR":"Mostrando um conjunto de dados limitado.","fr-FR":"Affichage d'un ensemble de données limité pour l'instant.","ja-JP":"現在、限定的なデータ セットを表示しています。","ru-RU":"В настоящее время отображается ограниченный набор данных."}},Object_Disclaimer_OnlyNegativeOrZeroValues:{id:"Object.Disclaimer.OnlyNegativeOrZeroValues",locale:{"en-US":"The chart is not displayed because it contains only negative or zero values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含負值或零值。","zh-CN":"未显示图表,因为它仅包含负值或零值。","tr-TR":"Yalnızca negatif veya sıfır değerlerini içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det enbart innehåller negativa eller nollvärden","it-IT":"Il grafico non viene visualizzato poiché contiene solo valori negativi o uguali a zero.","es-ES":"El gráfico no se muestra porque sólo contiene valores negativos o valores cero.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur negative oder 0-Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wartości ujemne lub zerowe.","nl-NL":"De grafiek wordt niet weergegeven omdat het alleen negatieve waarden of nulwaarden bevat.","ko-KR":"음수 또는 zero 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não foi exibido, porque contém apenas valores negativos ou zero.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs négatives ou égales à zéro.","ja-JP":"チャートは負の値またはゼロ値しか含まれていないため、表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только отрицательные или нулевые значения."}},Object_Disclaimer_NegativeOrZeroValues:{id:"Object.Disclaimer.NegativeOrZeroValues",locale:{"en-US":"The data set contains negative or zero values that cannot be shown in this chart.","zh-TW":"資料集包含無法在此圖表中顯示的負值或零值。","zh-CN":"数据集中包含无法在此图表中显示的负值或零值。","tr-TR":"Veri kümesi, bu grafikte gösterilemeyen negatif veya sıfır değerlerini içeriyor.","sv-SE":"Datauppsättningen innehåller negativa värden eller nollvärden som inte kan visas i detta diagram.","it-IT":"La serie di dati contiene valori negativi o uguali a zero che non possono essere visualizzati in questo grafico.","es-ES":"El conjunto de datos contiene valores negativos o cero que no se pueden mostrar en este gráfico.","de-DE":"Die in den Datensätzen enthaltenen negativen oder 0-Werte können nicht in diesem Diagramm dargestellt werden.","pl-PL":"Zestaw danych zawiera wartości ujemne lub zerowe, których nie można przedstawić w tym wykresie.","nl-NL":"De gegevensverzameling bevat negatieve waarden of nulwaarden die niet kunnen worden weergegeven in deze grafiek.","ko-KR":"데이터 집합에 해당 차트에 표시할 수 없는 음수 값 또는 zero 값이 포함되어 있습니다.","pt-BR":"O conjunto de dados contém valores negativos ou iguais a zero que não podem ser mostrados neste gráfico.","fr-FR":"L'ensemble de données contient des valeurs négatives ou égales à zéro impossibles à afficher dans ce graphique.","ja-JP":"データ セットには、本チャートに表示できない負の値またはゼロ値が含まれています。","ru-RU":"Набор данных содержит отрицательные или нулевые значения, которые невозможно показать в этой диаграмме."}},Object_Disclaimer_DataRangeIncludingZero:{id:"Object.Disclaimer.DataRangeIncludingZero",locale:{"en-US":"The logarithmic scale has been replaced by a linear scale because the data range includes zero.","zh-TW":"對數刻度已遭線性刻度取代,因為資料範圍包含零。","zh-CN":"对数刻度已替换为线性刻度,因为该数据范围包括零。","tr-TR":"Veri aralığı sıfır değerini içerdiğinden, logaritmik ölçek yerine doğrusal ölçek kullanıldı.","sv-SE":"Den logaritmiska skalan har ersatts av en linjär skala eftersom dataintervallet innehåller värdet noll.","it-IT":"La scala logaritmica è stata sostituita da una scala lineare perché l'intervallo di dati include zero.","es-ES":"La escala logarítmica ha sido reemplazada por una escala lineal porque el rango de datos incluye cero.","de-DE":"Die logarithmische Skala wurde durch die lineare Skala ersetzt, weil der Datenbereich NULL enthält.","pl-PL":"Skala logarytmiczna została zastąpiona liniową, ponieważ zakres danych zawiera zero.","nl-NL":"De logaritmische schaal is vervangen door een lineaire schaal omdat het gegevensbereik nullen bevat.","ko-KR":"데이터 범위에 0이 포함되어 있으므로 로그 눈금이 선형 눈금으로 바뀌었습니다.","pt-BR":"A escala logarítmica foi substituída por uma escala linear, pois o intervalo de dados inclui zero.","fr-FR":"L'échelle logarithmique a été remplacée par une échelle linéaire, car la plage de données comprend la valeur zéro.","ja-JP":"データ範囲にゼロが含まれるため、Log スケールは Linear スケールで置換されています。","ru-RU":"Логарифмический масштаб заменен линейным масштабом, поскольку диапазон данных включает ноль."}},Object_Disclaimer_NoDataExist:{id:"Object.Disclaimer.NoDataExist",locale:{"en-US":"The selections generated no data for this chart.","zh-TW":"此選項無法產生任何適用於此圖表的資料。","zh-CN":"选择未生成此图表的数据。","tr-TR":"Seçimler bu grafik için hiç veri oluşturmadı.","sv-SE":"Urvalen genererade inga data för detta diagram.","it-IT":"Le selezioni non hanno generato dati per questo grafico.","es-ES":"Las selecciones no han generado datos para este gráfico.","de-DE":"Die Auswahlen haben für dieses Diagramm keine Daten generiert.","pl-PL":"Selekcje nie spowodowały wygenerowania danych dla tego wykresu.","nl-NL":"De selecties hebben geen gegevens voor de grafiek gegenereerd.","ko-KR":"선택 내용으로 해당 차트에 대한 데이터가 생성되지 않았습니다.","pt-BR":"As seleções não geraram dados para este gráfico.","fr-FR":"Les sélections n'ont pas généré de données pour ce graphique.","ja-JP":"このチャートには選択からデータが生成されませんでした。","ru-RU":"В результате выборок данные для этой диаграммы не созданы."}},Object_Disclaimer_OnlyNanData:{id:"Object.Disclaimer.OnlyNanData",locale:{"en-US":"The chart is not displayed because it contains only undefined values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含未定義的值。","zh-CN":"未显示图表,因为它仅包含未定义的值。","tr-TR":"Yalnızca tanımsız değerleri içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det enbart innehåller odefinierade värden.","it-IT":"Il grafico non è visualizzato poiché contiene solo valori non definiti.","es-ES":"El gráfico no se muestra porque solo contiene valores indefinidos.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur nicht definierte Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wartości niezdefiniowane.","nl-NL":"De grafiek wordt niet weergegeven omdat deze alleen ongedefinieerde waarden bevat.","ko-KR":"정의되지 않은 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não foi exibido, porque contém apenas valores não definidos.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs non définies.","ja-JP":"未定義の値しか含まれていないため、チャートは表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только неопределенные значения."}},Object_Disclaimer_OnlyNegativeValues:{id:"Object.Disclaimer.OnlyNegativeValues",locale:{"en-US":"The chart is not displayed because it contains only negative values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含負值。","zh-CN":"未显示图表,因为它仅包含负值。","tr-TR":"Yalnızca negatif değerleri içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det endast innehåller negativa värden.","it-IT":"Il grafico non viene visualizzato poiché contiene solo valori negativi.","es-ES":"El gráfico no se muestra porque solo contiene valores negativos.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur negative oder Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wyłącznie wartości ujemne.","nl-NL":"Het diagram wordt niet weergegeven omdat deze alleen negatieve waarden bevat.","ko-KR":"음수 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não é exibido porque contém apenas valores negativos.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs négatives.","ja-JP":"負の値しか含まれていないため、チャートは表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только отрицательные значения."}},Object_Disclaimer_NegativeValues:{id:"Object.Disclaimer.NegativeValues",locale:{"en-US":"The data set contains negative values that cannot be shown in this chart.","zh-TW":"資料集包含無法在此圖表中顯示的負值。","zh-CN":"数据集包含无法在此图表中显示的负值。","tr-TR":"Veri kümesi, bu grafikte gösterilemeyen negatif değerleri içeriyor.","sv-SE":"Datauppsättningen innehåller negativa värden som inte kan visas i det här diagrammet.","it-IT":"Il set di dati contiene valori negativi che non possono essere visualizzati in questo grafico.","es-ES":"El conjunto de datos contiene valores negativos que no se pueden mostrar en este gráfico.","de-DE":"Die in den Datensätzen enthaltenen negativen Werte können nicht in diesem Diagramm dargestellt werden.","pl-PL":"Zestaw danych zawiera wartości ujemne, których nie można przedstawić na tym wykresie.","nl-NL":"De gegevensverzameling bevat negatieve waarden die niet kunnen worden weergegeven in dit diagram.","ko-KR":"데이터 집합에 해당 차트에 표시할 수 없는 음수 값이 포함되어 있습니다.","pt-BR":"O conjunto de dados contém valores negativos que não podem ser mostrados neste gráfico.","fr-FR":"Le jeu de données contient des valeurs négatives impossibles à afficher dans ce graphique.","ja-JP":"このチャートには表示できない負の値がデータ セットに含まれています。","ru-RU":"Набор данных содержит отрицательные значения, которые нельзя отобразить на этой диаграмме."}},Object_ChartTooltip_NMore:{id:"Object.ChartTooltip.NMore",locale:{"en-US":"+{0} more","zh-TW":"再加 {0} 個","zh-CN":"+{0} 个","tr-TR":"+{0} öğe daha","sv-SE":"+{0} till","it-IT":"Altre +{0}","es-ES":"+{0} más","de-DE":"+{0} mehr","pl-PL":"+ {0} więcej","nl-NL":"+ {0} meer","ko-KR":"+추가 {0}개","pt-BR":"+{0} mais","fr-FR":"+ {0} de plus","ja-JP":"さらに {0}","ru-RU":"+ дополнительно: {0}"}},Object_ChartTooltip_sumOfPositives:{id:"Object.ChartTooltip.sumOfPositives",locale:{"en-US":"Sum of positives","zh-TW":"正數總和","zh-CN":"正值总和","tr-TR":"Pozitif değerlerin toplamı","sv-SE":"Summan av positiva","it-IT":"Somma valori positivi","es-ES":"Suma de positivos","de-DE":"Summe positiver Werte","pl-PL":"Suma dodatnich","nl-NL":"Som positieven","ko-KR":"양수 합계","pt-BR":"Soma de positivos","fr-FR":"Sommes des valeurs positives","ja-JP":"正の合計","ru-RU":"Сумма положительных значений"}},Object_ChartTooltip_sumOfNegatives:{id:"Object.ChartTooltip.sumOfNegatives",locale:{"en-US":"Sum of negatives","zh-TW":"負數總和","zh-CN":"负值总和","tr-TR":"Negatif değerlerin toplamı","sv-SE":"Summan av negativa","it-IT":"Somma valori negativi","es-ES":"Suma de negativos","de-DE":"Summe negativer Werte","pl-PL":"Suma ujemnych","nl-NL":"Som negatieven","ko-KR":"음수 합계","pt-BR":"Soma de negativos","fr-FR":"Somme des valeurs négatives","ja-JP":"負の合計","ru-RU":"Сумма отрицательных значений"}},Object_ChartTooltip_ColorExpression:{id:"Object.ChartTooltip.ColorExpression",locale:{"en-US":"Color expression","zh-TW":"色彩運算式","zh-CN":"颜色表达式","tr-TR":"Renk ifadesi","sv-SE":"Färguttryck","it-IT":"Espressione colore","es-ES":"Expresión de color","de-DE":"Farbformel","pl-PL":"Wyrażenie koloru","nl-NL":"Kleuruitdrukking","ko-KR":"색상 표현식","pt-BR":"Expressão de cor","fr-FR":"Expression de couleur","ja-JP":"カラー表現","ru-RU":"Выражение для цвета"}},Object_Disclaimer_OnlyNanColor:{id:"Object.Disclaimer.OnlyNanColor",locale:{"en-US":"The data used to color this visualization only contains undefined values.","zh-TW":"用以定義此視覺化的色彩的資料只包含未定義的值。","zh-CN":"用于将该可视化着色的数据仅包含未定义的值。","tr-TR":"Bu görselleştirmeyi renklendirmek için kullanılan veriler yalnızca tanımlanmamış değerler içeriyor.","sv-SE":"Data som används för att färgsätta denna visualisering innehåller enbart odefinierade värden.","it-IT":"I dati utilizzati per colorare questa visualizzazione contengono solo valori non definiti.","es-ES":"Los datos utilizados para colorear esta visualización solo contienen valores indefinidos.","de-DE":"Die verwendeten Daten für die Farbgebung dieser Visualisierung enthalten undefinierte Werte.","pl-PL":"Dane używane do kolorowania tej wizualizacji zawierają wyłącznie niezdefiniowane wartości.","nl-NL":"De gegevens die worden gebruikt om deze visualisatie kleur te geven bevatten uitsluitend ongedefinieerde waarden.","ko-KR":"이 시각화에 색을 지정하는 데 사용된 데이터에는 정의되지 않은 값만 포함되어 있습니다.","pt-BR":"Os dados usados para colorir esse visualização contém somente valores indefinidos.","fr-FR":"Les données utilisées pour colorer cette visualisation ne comportent que des valeurs non définies.","ja-JP":"このビジュアライゼーションの色の割り当てに使用したデータには、未定義の値が含まれています。","ru-RU":"Данные, используемые для выбора цвета визуализации, содержат только неопределенные значения."}},properties_trendlines_types_average:{id:"properties.trendlines.types.average",locale:{"en-US":"Average","zh-TW":"平均值","zh-CN":"平均值","tr-TR":"Ortalama","sv-SE":"Medel","it-IT":"Media","es-ES":"Media","de-DE":"Durchschnitt","pl-PL":"Średnia","nl-NL":"Gemiddelde","ko-KR":"평균","pt-BR":"Média","fr-FR":"Moyenne","ja-JP":"平均値","ru-RU":"Среднее"}},properties_trendlines_types_linear:{id:"properties.trendlines.types.linear",locale:{"en-US":"Linear","zh-TW":"線性","zh-CN":"线性","tr-TR":"Doğrusal","sv-SE":"Linjär","it-IT":"Lineare","es-ES":"Lineal","de-DE":"Linear","pl-PL":"Liniowa","nl-NL":"Lineair","ko-KR":"선형","pt-BR":"Linear","fr-FR":"Linéaire","ja-JP":"線形","ru-RU":"Линейный"}},properties_trendlines_types_polynomial2:{id:"properties.trendlines.types.polynomial2",locale:{"en-US":"Second degree polynomial","zh-TW":"第二度多項式","zh-CN":"二次多项式","tr-TR":"İkinci derece polinom","sv-SE":"Polynomial, andra graden","it-IT":"Polinomio di secondo grado","es-ES":"Polinómica de segundo grado","de-DE":"Polynom zweiten Grades","pl-PL":"Wielomianowa drugiego stopnia","nl-NL":"Tweedegraadspolynoom","ko-KR":"2차 다항식","pt-BR":"Polinômio de segundo grau","fr-FR":"Polynomial du 2ème degré","ja-JP":"2 番目の角度の多項式近似","ru-RU":"Полиномиальный второй степени"}},properties_trendlines_types_polynomial3:{id:"properties.trendlines.types.polynomial3",locale:{"en-US":"Third degree polynomial","zh-TW":"第三度多項式","zh-CN":"三次多项式","tr-TR":"Üçüncü derece polinom","sv-SE":"Polynomial, tredje graden","it-IT":"Polinomio di terzo grado","es-ES":"Polinómica de tercer grado","de-DE":"Polynom dritten Grades","pl-PL":"Wielomianowa trzeciego stopnia","nl-NL":"Derdegraadspolynoom","ko-KR":"3차 다항식","pt-BR":"Polinômio de terceiro grau","fr-FR":"Polynomial du 3ème degré","ja-JP":"3 番目の角度の多項式近似","ru-RU":"Полиномиальный третьей степени"}},properties_trendlines_types_polynomial4:{id:"properties.trendlines.types.polynomial4",locale:{"en-US":"Fourth degree polynomial","zh-TW":"第四度多項式","zh-CN":"四次多项式","tr-TR":"Dördüncü derece polinom","sv-SE":"Polynomial, fjärde graden","it-IT":"Polinomio di quarto grado","es-ES":"Polinómica de cuarto grado","de-DE":"Polynom vierten Grades","pl-PL":"Wielomianowa czwartego stopnia","nl-NL":"Vierdegraadspolynoom","ko-KR":"4차 다항식","pt-BR":"Polinômio de quarto grau","fr-FR":"Polynomial du 4ème degré","ja-JP":"4 番目の角度の多項式近似","ru-RU":"Полиномиальный четвертой степени"}},properties_trendlines_types_exponential:{id:"properties.trendlines.types.exponential",locale:{"en-US":"Exponential","zh-TW":"指數","zh-CN":"指数","tr-TR":"Üstel","sv-SE":"Exponentiell","it-IT":"Esponenziale","es-ES":"Exponencial","de-DE":"Exponentiell","pl-PL":"Wykładnicze","nl-NL":"Exponentieel","ko-KR":"지수","pt-BR":"Exponencial","fr-FR":"Exponentiel","ja-JP":"指数","ru-RU":"Экспоненциальный"}},properties_trendlines_types_logarithmic:{id:"properties.trendlines.types.logarithmic",locale:{"en-US":"Logarithmic","zh-TW":"對數","zh-CN":"对数","tr-TR":"Logaritmik","sv-SE":"Logaritmisk","it-IT":"Logaritmica","es-ES":"Logarítmica","de-DE":"Logarithmisch","pl-PL":"Logarytmiczna","nl-NL":"Logaritmisch","ko-KR":"로그","pt-BR":"Logarítmico","fr-FR":"Logarithmique","ja-JP":"対数","ru-RU":"Логарифмический"}},properties_trendlines_types_power:{id:"properties.trendlines.types.power",locale:{"en-US":"Power","zh-TW":"乘冪","zh-CN":"幂","tr-TR":"Üs","sv-SE":"Potens","it-IT":"Potenza","es-ES":"Potencia","de-DE":"Potenz","pl-PL":"Potęgowa","nl-NL":"Macht","ko-KR":"거듭제곱","pt-BR":"Potência","fr-FR":"Puissance","ja-JP":"累乗","ru-RU":"Силовой"}},Common_Measures:{id:"Common.Measures",locale:{"en-US":"Measures","de-DE":"Kennzahlen","fr-FR":"Mesures","it-IT":"Misure","ja-JP":"メジャー","ko-KR":"측정값","es-ES":"Medidas","nl-NL":"Metingen","pl-PL":"Miary","pt-BR":"Medidas","sv-SE":"Mått","tr-TR":"Hesaplamalar","zh-CN":"度量","zh-TW":"量值","ru-RU":"Меры"}},Tooltip_ToggleOnLassoSelection:{id:"Tooltip.ToggleOnLassoSelection",locale:{"en-US":"Turn on lasso selection","de-DE":"Lasso-Auswahl aktivieren","fr-FR":"Activer la sélection au lasso","it-IT":"Attiva selezione lazo","ja-JP":"囲み選択をオンにする","ko-KR":"올가미 선택 켜기","es-ES":"Activar la selección de contorno","nl-NL":"Lassoselectie inschakelen","pl-PL":"Włącz zaznaczenie lasso","pt-BR":"Ativar seleção de laço","sv-SE":"Slå på lassourval","tr-TR":"Serbest seçimi aç","zh-CN":"开启套索选择方法","zh-TW":"開啟套索選取","ru-RU":"Включить выбор лассо"}},Tooltip_ToggleOffLassoSelection:{id:"Tooltip.ToggleOffLassoSelection",locale:{"en-US":"Turn off lasso selection","de-DE":"Lasso-Auswahl deaktivieren","fr-FR":"Désactiver la sélection au lasso","it-IT":"Disattiva selezione lazo","ja-JP":"囲み選択をオフにする","ko-KR":"올가미 선택 끄기","es-ES":"Desactivar la selección de contorno","nl-NL":"Lassoselectie uitschakelen","pl-PL":"Wyłącz zaznaczenie lasso","pt-BR":"Desativar seleção de laço","sv-SE":"Stäng av lassourval","tr-TR":"Serbest seçimi kapat","zh-CN":"关闭套索选择方法","zh-TW":"關閉套索選取","ru-RU":"Выключить выбор лассо"}}};const xk="REJECTED",Sk=()=>{},Mk=1e4,Ck={MULTIPLIER:2,MINIMUM:20,MAXIMUM:200},wk=50,kk=10,Tk=100;var qk={contains:function(e,t){if(!e)return!1;const{qArea:n}=e;return!!n&&(n.qLeft<=t.qLeft&&n.qLeft+n.qWidth>=t.qLeft+t.qWidth&&n.qTop<=t.qTop&&n.qTop+n.qHeight>=t.qTop+t.qHeight)},patcher:function({layoutService:e}){const t=t=>{t.qArea.qHeight=t.qMatrix.length,t.qArea.qWidth=e.meta.size.x};return t.should=e=>0===e.qArea.qHeight&&0===e.qArea.qWidth&&!!e.qMatrix.length,t},slicer:function(e,t){const n=Math.max(0,t.qHeight)-Math.abs(Math.min(0,t.qTop-e.qArea.qTop)),r=Math.max(0,t.qWidth)-Math.abs(Math.min(0,t.qLeft-e.qArea.qLeft)),o=Math.max(t.qTop,e.qArea.qTop),i=Math.max(t.qLeft,e.qArea.qLeft),a=Math.max(0,o-e.qArea.qTop),s=Math.min(o+n-e.qArea.qTop,e.qArea.qHeight),l=Math.max(0,i-e.qArea.qLeft),c=Math.min(i+r-e.qArea.qLeft,e.qArea.qWidth),u={qArea:{qHeight:s-a,qWidth:c-l,qTop:o,qLeft:i},qMatrix:[]};for(let t=a;t<s;t++)u.qMatrix.push(e.qMatrix[t].slice(l,c));return u},cacheWarden:function({bounds:e={width:0,height:0}}){return{release(t,n){const r=n.qTop-kk<=t.qTop,o=n.qLeft+n.qWidth+kk>=t.qLeft+t.qWidth,i=n.qTop+n.qHeight+kk>=t.qTop+t.qHeight,a=n.qLeft-kk<=t.qLeft;return r&&t.qTop>0||o&&t.qLeft+t.qWidth<e.width||i&&t.qTop+t.qHeight<e.height||a&&t.qLeft>0}}},request:function({definitionPath:e}){return t=>({method:"getHyperCubeData",args:[e,[t]]})}};var Ek={contains:function(e,t){if(!e)return!1;const{qArea:n}=e;return!!n&&(n.qTop<=t.qTop&&n.qTop+n.qHeight>=t.qTop+t.qHeight)},patcher:function({layoutService:e}){const t=t=>{t.qArea.qHeight=t.qData[0].qSubNodes.length,t.qArea.qWidth=e.meta.size.x};return t.should=e=>0===e.qArea.qHeight&&0===e.qArea.qWidth&&!!e.qData.length,t},slicer:function(e,t){const n=Math.max(0,t.qHeight)-Math.abs(Math.min(0,t.qTop-e.qArea.qTop)),r=Math.max(t.qTop,e.qArea.qTop),o=Math.max(t.qLeft,e.qArea.qLeft),i=Math.max(0,r-e.qArea.qTop),a=Math.min(r+n-e.qArea.qTop,e.qArea.qHeight),s=e.qData[0].qUp+e.qArea.qHeight+e.qData[0].qDown-r-(a-i),l={qArea:{qHeight:a-i,qWidth:e.qArea.qWidth,qTop:r,qLeft:o},qData:[{...e.qData[0],qUp:r,qDown:s,qSubNodes:[]}]};for(let t=i;t<a;t++)l.qData[0].qSubNodes.push(e.qData[0].qSubNodes[t]);return l},cacheWarden:function({bounds:e={height:0}}){return{release(t,n){const r=n.qTop-kk<=t.qTop,o=n.qTop+n.qHeight+kk>=t.qTop+t.qHeight;return r&&t.qTop>0||o&&t.qTop+t.qHeight<e.height}}},request:function({definitionPath:e}){return t=>({method:"getHyperCubeStackData",args:[e,[t]]})}};var Lk={contains:function(){return!1},patcher:function(){const e=e=>e;return e.should=()=>!1,e},slicer:function(e){return e},cacheWarden:function(){return{release:()=>!0}},request:function({definitionPath:e}){return t=>({method:"getHyperCubeTreeData",args:[e,[t]]})}};const Nk="pages";const Ok="discretePan",Dk=10;function Ak({chart:e,actions:t,componentKey:n,dockService:r,rtl:o,scroller:i}){return{type:"Pan",key:"discrete:pan",options:{event:Ok,pointers:1,threshold:Dk,enable(r,o){return this.started===Ok||!o||!(!t.scroll.enabled()||!i.enabled())&&e.componentsFromPoint({x:o.center.x,y:o.center.y}).some((e=>e.key===n))}},events:{[`${Ok}start`](e){e.preventDefault(),this.started=Ok;const t="horizontal"===r.meta.major.orientation?e.deltaX:e.deltaY;this.previousTotalDelta=t<0?-10:Dk},[`${Ok}move`](e){e.preventDefault();const t="horizontal"===r.meta.major.orientation,n=t?e.deltaX:e.deltaY,a=t&&o?-1:1,s=(n-this.previousTotalDelta)*a;this.previousTotalDelta=n,i.scroll(s)},[`${Ok}end`](e){e.preventDefault(),this.started=!1},[`${Ok}cancel`](e){e.preventDefault(),this.started=!1}}}}function Rk({chart:e,componentKey:t,actions:n,scroller:r}){return function(o){if(!n.scroll.enabled()||!r.enabled())return;const[i]=e.componentsFromPoint({x:o.clientX,y:o.clientY}).filter((e=>e.key===t));if(!i)return;o.preventDefault();const a=Math.abs(o.deltaY)>Math.abs(o.deltaX)?o.deltaY:o.deltaX,s=Math.sign(-a)*Tk;r.scroll(s)}}function Ik({layoutService:e}){const t=function({layoutService:e}){const t=Math.floor(Mk/(e.meta.dimensionCount+e.meta.measureCount));return function({width:e,height:n}){const r=Math.min(t,Math.max(Ck.MAXIMUM,n));return{width:e,height:Math.max(Ck.MINIMUM,Math.min(n*Ck.MULTIPLIER,r))}}}({layoutService:e}),n={width:e.meta.size.x,height:e.meta.size.y};return function(e){const{width:r,height:o}=t({width:e.qWidth,height:e.qHeight}),i=o?Math.ceil((o-e.qHeight)/2):0,a=r?Math.ceil((r-e.qWidth)/2):0;return{qHeight:o?Math.min(o,n.height):e.qHeight,qWidth:r?Math.min(r,n.width):e.qWidth,qTop:o?Math.max(0,Math.min(e.qTop-i,n.height-o)):e.qTop,qLeft:r?Math.max(0,Math.min(e.qLeft-a,n.width-r)):e.qLeft}}}function Pk(e){let t,n;const r=o=>{t=o;const{method:i,args:a}=t.request;e[i](...a).then((e=>{if(t.canceled||n)return t.reject(xk),t=null,void(n&&(r(n),n=null));t.resolve(e[0]),t=null}))},o=e=>new Promise(((o,i)=>{const a={request:e,resolve:o,reject:i,canceled:!1,cancel:()=>{a.canceled=!0}};t?(e=>{n&&n.reject(xk),n=e})(a):r(a)}));return o.isProcessing=()=>!!t,o.hasQueued=()=>!!n,o.cancel=()=>{o.isProcessing()&&t.cancel(),o.hasQueued()&&(n.reject(xk),n=null)},o}const zk={command:{update:()=>{}}};var jk={inTotal:function({layoutService:e}){return e.meta.size.x},area:function({layoutService:e}){return{qTop:0,qHeight:1,qLeft:0,qWidth:e.meta.size.x}},scaleRange:function({layoutService:e,offsets:t,items:n,viewSize:r}){const{pixel:o}=t,i=e.getDataPages()[0],a=o/r;return[a,n.inView>=n.inTotal?a+1:a+i.qArea.qWidth/n.inView]}};var Fk={inTotal:function({layoutService:e}){if(e.meta.isSnapshot&&!e.getLayoutValue("reducedHyperCube")){const[t]=e.getDataPages();if(t)return t.qArea.qHeight}return e.meta.size.y},area:function({layoutService:e,itemOffset:t,inView:n,areaBuffer:r}){const o=void 0===r?4:r,i=Math.max(0,Math.floor(t)-o/2);return{qTop:i,qHeight:Math.min(e.meta.size.y-i,Math.max(0,Math.ceil(n+o))),qLeft:0,qWidth:e.meta.size.x}},scaleRange:function({layoutService:e,offsets:t,items:n,viewSize:r}){const{pixel:o}=t,i=e.getDataPages()[0],a=r/n.inView,s=(o+i.qArea.qTop*a)/r;return[s,n.inView>=n.inTotal?s+1:s+i.qArea.qHeight/n.inView]}};function Bk(e){const{groupSize:t,measureCount:n}=e.meta;return null!=t?t:n}function _k(e,t){const n=[];for(let r=0;r<e.length;r++){const o=t(e[r]);-1===n.indexOf(o)&&n.push(o)}return n.length}function Hk(e){return _k(e.qMatrix,(e=>e[0].qElemNumber))-1}var $k={inTotal:function({layoutService:e}){const t=Bk(e);return e.meta.size.y*t*(1+1/t)-1},area:function({layoutService:e,itemOffset:t,inView:n,areaBuffer:r}){const o=Bk(e),i=void 0===r?o:r,a=t/(o+1),s=Math.max(0,Math.floor((t-a-i/2)/o));return{qTop:s,qHeight:Math.min(e.meta.size.y-s,Math.max(0,Math.ceil((n+i)/o+1))),qLeft:0,qWidth:e.meta.size.x}},scaleRange:function({layoutService:e,offsets:t,items:n,viewSize:r}){const o=Bk(e),i=e.getDataPages()[0],a=r/n.inView,{pixel:s}=t,l=Hk(i),c=i.qArea.qHeight*o+l,u=(s+(i.qArea.qTop*o+i.qArea.qTop)*a)/r;return[u,n.inView>=n.inTotal?u+1:u+c/n.inView]}};const Vk=(e,t)=>t/(e.meta.size.y/e.meta.size.dimensions[0]+1);function Wk(e){return{itemOffset(t,n){if(0!==t.qArea.qTop)return Vk(e,n);const r=((e,t)=>{const n={successful:!0,count:0};let r=Math.abs(Math.floor(t));const o=[];for(let t=0;t<=r;t++){if(!e[t])return n.successful=!1,n;const i=e[t][0].qElemNumber;-1===o.indexOf(i)&&(o.push(i),r--)}return n.count=o.length-1,n})(t.qMatrix,n);return r.successful?r.count:Vk(e,n)},area(t,n,r){if(0!==t.qArea.qTop)return Vk(e,n);return _k(t.qMatrix.slice(0,r.qTop+1),(e=>e[0].qElemNumber))-1}}}var Uk={inTotal:function({layoutService:e}){return e.meta.size.y+e.meta.size.dimensions[0]-1},area:function({getDataPages:e,layoutService:t,itemOffset:n,inView:r}){const o=Wk(t).itemOffset(e(),n),i=Math.max(0,Math.floor(n-o));return{qTop:i,qHeight:Math.min(t.meta.size.y-i,Math.max(0,Math.ceil(r+1))),qLeft:0,qWidth:t.meta.size.x}},scaleRange:function({getDataPages:e,layoutService:t,offsets:n,items:r,viewSize:o,upperBound:i}){const a=t.getDataPages()[0],s=o/r.inView,{item:l,pixel:c}=n,u=Wk(t).area(e(),l,a.qArea),d=Hk(a),p=a.qArea.qHeight+d,f=c===i?(r.inView-p)*s/o:(c+(a.qArea.qTop+u)*s)/o;return[f,r.inView>=r.inTotal?f+1:f+p/r.inView]}};function Kk({chart:e,rect:t,dockService:n,itemWidths:r,axisKey:o,renderer:i,isGrouped:a,dimensionAxis:s,inTotal:l,isMajorLabelless:c,maxDataRows:u}){const{DEFAULT:d,SQUEEZE:p,LABELLESS:f}=r[n.meta.chart.mode],m="horizontal"===n.meta.major.orientation,{axisDisplayMode:h="auto",maxVisibleItems:g=10,label:y}=s,v=m?t.width:t.height,b=v/l>=p;switch(h){case"max":return Math.min(l,u);case"custom":return Math.min(g,u);default:return c?v/f:b?function({chart:e,isHorizontal:t,axisKey:n,renderer:r={},isGrouped:o,itemSize:i,label:a}){if(o||"auto"!==a&&"tilted"!==a)return!1;const s=e.component(n),{measureText:l}=r;if(!s||!l)return!0;const{fontFamily:c,fontSize:u,tiltAngle:d}=s.settings.settings.labels,{height:p}=l({fontFamily:c,fontSize:u,text:"M"});if(!t)return p>i;const f=(90-d)*(Math.PI/180);return p>Math.cos(f)*i}({chart:e,isHorizontal:m,axisKey:o,renderer:i,isGrouped:a,itemSize:p,label:y})?v/d:l:v/d}}var Gk="AVERAGE",Yk="LINEAR",Xk="POLYNOMIAL2",Jk="POLYNOMIAL3",Zk="POLYNOMIAL4",Qk="EXPONENTIAL",eT="LOG",tT="POWER";function nT({dimValue:e,value:t,qTrendLine:n}){const{qType:r,qCoeff:o}=n,i={x:e,y:o[2]*t**2+o[1]*t+o[0]};switch(r){default:case Xk:return i;case Jk:return i.y+=o[3]*t**3,i;case Zk:return i.y+=o[4]*t**4+o[3]*t**3,i}}var rT={average:function({dimValue:e,qTrendLine:t}){return{x:e,y:t.qCoeff[0]}},linear:function({dimValue:e,value:t,qTrendLine:n}){return{x:e,y:n.qCoeff[1]*t+n.qCoeff[0]}},polynomial2:nT,polynomial3:nT,polynomial4:nT,exponential:function({dimValue:e,value:t,qTrendLine:n}){return{x:e,y:Math.exp(n.qCoeff[0]+t*n.qCoeff[1])}},log:function({dimValue:e,value:t,qTrendLine:n}){return{x:e,y:n.qCoeff[1]+n.qCoeff[0]*Math.log(t)}},power:function({dimValue:e,value:t,qTrendLine:n}){return{x:e,y:10**(n.qCoeff[0]+n.qCoeff[1]*Math.log(t)*Math.LOG10E)}}};function oT(e,t){const n=rT[t.qType.toLowerCase()],r=Math.max(1,e/500);let o=1/0,i=-1/0;for(let a=0;a<e;a+=r){const{y:e}=n({dimValue:null,value:a+1,qTrendLine:t});o=Math.min(e,o),i=Math.max(e,i)}return{min:o,max:i}}function iT(e){return rT[e.qType.toLowerCase()]}function aT(e,t){return e.meta.isContinuous?function(e,t){return{generate:(n,r,o)=>{var i,a;const s=[],l=iT(n),c=t.get("zoom"),u=null!==(i=n.start)&&void 0!==i?i:c.min,d=null!==(a=n.end)&&void 0!==a?a:c.max,p=(d-u)/100,f=e.meta.isButterfly&&o>0;if(p>0){const e=e=>{const t=l({dimValue:e,value:e,qTrendLine:n});f&&(t.y=-t.y),t.layerId=r,t.measureIndex=o,t.dimValue=e,s.push(t)};let t=u;for(let n=u;n<=d;n+=p)e(n),t=n;t!==d&&e(d)}return s},calculate:(e,t)=>iT(e)({dimValue:t,value:t,qTrendLine:e}),findMinMax(e,t){const n=this.generate(t).map((({y:e})=>e));return{min:Math.min(...n),max:Math.max(...n)}}}}(e,t):e.meta.mode.K?function(e){return{generate:(t,n,r)=>{const o=[],i=e.getDataPages()[0],a=i.qData[0].qSubNodes,s=i.qArea.qTop,l=rT[t.qType.toLowerCase()];for(let e=0;e<a.length;e++){const i=a[e],c=l({dimValue:i.qElemNo,value:e+s+1,qTrendLine:t});c.layerId=n,c.measureIndex=r,c.dimValue=i.qText,o.push(c)}return o},findMinMax:oT}}(e):function(e){return{generate:(t,n,r)=>{const o=[],i=e.getDataPages()[0],a=i.qMatrix,s=i.qArea.qTop,l=rT[t.qType.toLowerCase()],c=e.meta.isButterfly&&r>0;for(let e=0;e<a.length;e++){const i=a[e][0],u=e+s+1,d=l({dimValue:i.qElemNumber,value:u,qTrendLine:t});c&&(d.y=-d.y),d.layerId=n,d.measureIndex=r,d.dimValue=i.qText,o.push(d)}return o},calculate:(e,t,n)=>(0,rT[e.qType.toLowerCase()])({dimValue:n,value:t,qTrendLine:e}),findMinMax:oT}}(e)}var sT={TYPES:{AVERAGE:"properties.trendlines.types.average",LINEAR:"properties.trendlines.types.linear",POLYNOMIAL2:"properties.trendlines.types.polynomial2",POLYNOMIAL3:"properties.trendlines.types.polynomial3",POLYNOMIAL4:"properties.trendlines.types.polynomial4",EXPONENTIAL:"properties.trendlines.types.exponential",LOG:"properties.trendlines.types.logarithmic",POWER:"properties.trendlines.types.power"},STYLE:{DASHED:"properties.trendlines.style.dashed"},TYPE:"properties.trendlines.type",HEADER:"properties.trendlines",ADD_BUTTON:"properties.trendlines.button.add"},lT={color:"#f93f17",index:9};const{isDark:cT}=jt,uT={x:NaN,y:NaN,layerId:NaN,measureIndex:NaN},dT=({layoutService:e,viewState:t,colorModel:n,chart:r,env:o,keys:{colorScale:i},isEnabled:a=()=>!1})=>{const{translator:s}=o,l=[uT],c=[],d=[],p=aT(e,t);e.getLayoutValue("qHyperCube.qMeasureInfo",[]).forEach(((e,t)=>{Array.isArray(e.qTrendLines)&&(c.push(...e.qTrendLines),d.push(...e.qTrendLines.map((()=>t))))}));const f=u((e=>{const{style:t}=c[e]||{},o=n.settings();if(t.autoColor){if("measure"===o.mode){const t=d[e],n=r.scale(i)(t);return cT(n)?function(e){const t=It(e);return t.l<30?t.l+=15:t.l<50?t.l+=10:t.l+=5,t.toString()}(n):function(e){const t=It(e);return t.l-=5,t.toString()}(n)}return n.resolveUIColor(lT)}return t.paletteColor?n.resolveUIColor(t.paletteColor):"none"}));return{query:{hasTrendLines:()=>!!c.length&&a(),getData:()=>l,getStroke:f,getLineDash:e=>{const{style:t}=c[e]||{};return null==t?void 0:t.lineDash},getLineThickness:e=>{var t;const{style:n}=c[e]||{};return null!==(t=null==n?void 0:n.lineThickness)&&void 0!==t?t:2},getLabel:e=>(c[e]||{}).label,getType:e=>{const{qType:t}=c[e]||{};return s.get(sT.TYPES[t])},getMinMax:()=>{let t=1/0,n=-1/0;return c.forEach((r=>{const o=p.findMinMax(e.meta.size.y,r);t=Math.min(o.min,t),n=Math.max(o.max,n)})),{min:t,max:n}},getCalculatedValue:(e,t,n)=>{const r=c[e];return p.calculate(r,t,n)}},command:{update:()=>{l.length=0,c.forEach(((e,t)=>{const n=p.generate(e,t,d[t]);l.push(...n)}))}}}};var pT={source:"trend",extract:{field:"x",props:{minor:{field:"y"},layer:{field:"layerId"},measureIndex:{field:"measureIndex"},dimValue:{field:"dimValue"}}}};const fT=({meta:e})=>e.isContinuous?({scale:e,datum:t})=>e(t.value):e.isGroupedByMeasure?({scale:e,datum:t})=>e([t.value,t.measureIndex.value])+e.bandwidth()/2:({scale:e,datum:t})=>e(t.value)+e.bandwidth()/2,mT=(e,{layoutService:t,trendLineModel:n,dockService:r,animationsEnabled:o})=>{if(!n.query.hasTrendLines())return[];const i=(({majorScale:e,minorScale:t},{trendLineModel:n,layoutService:r,dockService:o,animationsEnabled:i})=>{const a=fT(r);return{key:"trend-lines",type:"line",layout:{dock:"center"},data:pT,settings:{connect:!0,orientation:o.meta.major.orientation,coordinates:{major:{scale:e,fn:a},minor:{scale:t},layerId:{ref:"layer"}},layers:{curve:"monotone",line:{strokeWidth:({datum:e})=>n.query.getLineThickness(e.layer.value),stroke:({datum:e})=>n.query.getStroke(e.layer.value),strokeDasharray:({datum:e})=>n.query.getLineDash(e.layer.value)}}},animations:{enabled:i,trackBy:ja.nonUpdatingNode.trackBy,compensateForLayoutChanges:ja.lines.compensateForLayoutChanges}}})(e,{trendLineModel:n,layoutService:t,dockService:r,animationsEnabled:o}),a=(({majorScale:e,minorScale:t,tooltipOverlay:n="trend-lines-tooltip-overlay"},{layoutService:r,dockService:o})=>{const i=fT(r),a="horizontal"===o.meta.major.orientation,s={scale:e,fn:i},l={scale:t,ref:"minor"};return{key:n,type:"point",layout:{dock:"center"},data:pT,settings:{x:a?s:l,y:a?l:s,opacity:0,size:1,sizeLimits:{maxPx:8,minPx:8}}}})(e,{layoutService:t,dockService:r});return[i,a]};function hT(e,t){const{getLabel:n,getType:r,getLineDash:o,getStroke:i}=t.query;return({node:t,resources:a})=>{const s={type:"icon",style:{stroke:i(t.data.layer.value),"min-width":"16px","vertical-align":"middle","stroke-dasharray":o(t.data.layer.value)}},l={content:[{content:n(t.data.layer.value),style:{"font-weight":"bold"}},{content:r(t.data.layer.value)}],style:{"min-width":"136px"}};return{title:t.data.dimValue.label,row:[s,l,{content:a.formatter(e.formatter)(t.data.minor.value)}]}}}function gT(e,{h:t,style:n}){return e.map((e=>{const r={style:{direction:"string"==typeof e.content?Fe.detectTextDirection(e.content):void 0,...n.cell||{},...e.style||{}},class:e.class};e.colspan&&(r.colspan=e.colspan);const o=function(e,t){return Array.isArray(t.content)?e("div",{style:{display:"flex","flex-direction":"column"}},t.content.map((t=>e("span",{style:t.style,direction:Fe.detectTextDirection(t.content)},t.content)))):"icon"===t.type?function(e){const t=e("line",{x1:"0px",y1:"16px",x2:"16px",y2:"0px","stroke-width":"3px"});return e("svg",{xlms:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16"},t)}(e):t.content}(t,e);return t("td",r,o)}))}function yT(e,t){return({h:n,data:r,style:o})=>{const i=r[0].title,a=r.filter((e=>e.title===i)),s=function(e,t){const n=e("td",{colspan:3,style:{"font-weight":"bold"},direction:Fe.detectTextDirection(t)},t);return e("tr",{},n)}(n,i),l=[s];if(a.slice(0,2).forEach((e=>{l.push(n("tr",{},gT(e.row,{h:n,style:o})))})),r.length>2){const o=r.length-2;l.push(...function(e,t,n,r){const o=t?t.get("Object.ChartTooltip.NMore",r):`+${r} more`,i=Fe.detectTextDirection(o);return[e("tr",{},e("td",{style:{"background-image":"linear-gradient(transparent 8px, rgba(255, 255, 255, 0.4) 8px, rgba(255, 255, 255, 0.4) 9.2px, transparent 9.2px)",height:"17px"},colspan:3},"")),e("tr",{},e("td",{style:{"font-weight":"bold","text-align":n?"right":"left",direction:i},colspan:3},o))]}(n,e,t,o))}return l}}function vT(e,{trendLineModel:t,translator:n},r={}){if(!t.query.hasTrendLines())return!1;const{rtl:o}=r,i=Ie({key:e.tooltip,rtl:o});return de(!0,i,{settings:{extract:hT(e,t),content:yT(n,o),placement:"pointer",direction:r.rtl?"rtl":"ltr"}})}function bT(e,t){const n=t.element.getBoundingClientRect();return{x:(e.center?e.center.x:e.clientX)-n.left,y:(e.center?e.center.y:e.clientY)-n.top}}function xT(e,{chart:t,viewState:n,trendLineModel:r,layoutService:o,rtl:i}){const{isContinuous:a}=o.meta;let s={components:[{key:e.tooltipOverlay}],propagation:"stop"},l=e=>{const n=bT(e,t);return t.shapesAt(n,s)};if(a){const{getCalculatedValue:o}=r.query;s={components:[{key:"trend-lines"}],propagation:"stop"},l=(r,a)=>{const l=bT(r,t),c=t.shapesAt(function(e){return{cx:e.x,cy:e.y,r:3}}(l),s);if(c.length){const r=function(e,t,n,r){let o=(e.x-t.rect.computed.x)/t.rect.computed.width;o=r?1-o:o;const{min:i,max:a}=n.get("zoom");return i+(a-i)*o}(l,a,n,i),s=t.scale(e.majorInnerScale),u=(null!=s&&s.formatter?s.formatter():t.formatter({data:{fields:["qDimensionInfo/0"]}}))(r);c.forEach((e=>{e.data.dimValue.value=r,e.data.dimValue.label=u,e.data.minor.value=o(e.data.layer.value,r).y}))}return c}}return n=>{const r=t.component(e.tooltip);if(r&&(n=>t.componentsFromPoint({x:n.center?n.center.x:n.clientX,y:n.center?n.center.y:n.clientY}).some((t=>t.key===e.tooltipOverlay)))(n)){const e=l(n,r);return e.length?(r.emit("show",n,{nodes:e}),!0):(r.emit("hide"),!1)}return!1}}const ST=e=>{e.style.dashed?e.style.lineDash="8, 4":e.style.lineDash=""},MT=e=>{ST(e),e.qMultiDimMode="Sum",e.qXColIx=0};function CT(e={}){const{translator:t,events:n={onGlobalChange:()=>{}},allowStackedByDimension:r=!1}=e;return{show:(e,t,{layout:n})=>!ke.dimensionless(n)&&!ke.groupedByDimension(n)&&(r||!ke.stackedByDimension(n)),type:"array",ref:"qTrendLines",titleTranslation:sT.HEADER,itemTitleRef:e=>{const n=typeof e.label;return"string"===n&&e.label?e.label:"object"===n?e.label.qStringExpression?e.label.qStringExpression.qExpr:e.label.qValueExpression.qExpr:t.get(sT.TYPES[e.qType])},max:8,allowAdd:!0,allowRemove:!0,allowMove:!1,addTranslation:sT.ADD_BUTTON,add:MT,globalChange:e=>{const t=o(e,"qHyperCubeDef.qMeasures",[]).reduce(((e,t)=>(Array.isArray(t.qTrendLines)&&e.push(...t.qTrendLines),e)),[]),r=(e=>!o(e,"dimensionAxis.continuousAuto",!1)&&e.preferContinuousAxis)(e)?"Possible":"Never";t.forEach((e=>{e.qContinuousXAxis=r})),n.onGlobalChange(e,t)},items:{label:{ref:"label",type:"string",expression:"optional",translation:"Common.Label",defaultValue:""},type:{ref:"qType",type:"string",component:"dropdown",translation:sT.TYPE,options:[{value:Gk,translation:sT.TYPES.AVERAGE},{value:Yk,translation:sT.TYPES.LINEAR},{value:Xk,translation:sT.TYPES.POLYNOMIAL2},{value:Jk,translation:sT.TYPES.POLYNOMIAL3},{value:Zk,translation:sT.TYPES.POLYNOMIAL4},{value:Qk,translation:sT.TYPES.EXPONENTIAL},{value:eT,translation:sT.TYPES.LOG},{value:tT,translation:sT.TYPES.POWER}],defaultValue:Gk},autoColor:{ref:"style.autoColor",type:"boolean",translation:"properties.colors",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}]},paletteColor:{ref:"style.paletteColor",translation:"properties.color",type:"object",component:"color-picker",dualOutput:!0,defaultValue:lT,show:e=>!e.style.autoColor},dashed:{ref:"style.dashed",translation:sT.STYLE.DASHED,type:"boolean",defaultValue:!0,change:ST}}}}var wT={};function kT(){kT.init.call(this)}wT.isObject=function(e){return"object"==typeof e&&null!==e},wT.isNumber=function(e){return"number"==typeof e},wT.isUndefined=function(e){return void 0===e},wT.isFunction=function(e){return"function"==typeof e};var TT=kT;kT.EventEmitter=kT,kT.prototype._events=void 0,kT.prototype._maxListeners=void 0,kT.defaultMaxListeners=10,kT.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},kT.prototype.setMaxListeners=function(e){if(!wT.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},kT.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],wT.isUndefined(n))return!1;if(wT.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(wT.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},kT.prototype.addListener=function(e,t){var n;if(!wT.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,wT.isFunction(t.listener)?t.listener:t),this._events[e]?wT.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,wT.isObject(this._events[e])&&!this._events[e].warned)&&((n=wT.isUndefined(this._maxListeners)?kT.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,wT.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),wT.isFunction(console.trace)&&console.trace()));return this},kT.prototype.on=kT.prototype.addListener,kT.prototype.once=function(e,t){if(!wT.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},kT.prototype.removeListener=function(e,t){var n,r,o,i;if(!wT.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||wT.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(wT.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},kT.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],wT.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},kT.prototype.listeners=function(e){return this._events&&this._events[e]?wT.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},kT.listenerCount=function(e,t){return e._events&&e._events[t]?wT.isFunction(e._events[t])?1:e._events[t].length:0};var qT=ee(TT);const ET={shapes:[{type:"path",attrs:{d:"M15.9488039,5.20769129 C16.0487326,6.70662306 15.3492311,8.30548361 14.050157,9.30477145 C12.651154,10.5039169 10.8524359,10.8037032 8.85386017,10.4039881 L7.3549284,10.0042729 L5.75606786,9.70448659 C5.75606786,9.90434416 5.65613907,10.0042729 5.4562815,10.2041305 C5.05656637,10.6038456 4.55692244,10.8037032 4.05727852,10.8037032 C3.75749217,10.8037032 3.45770582,10.7037744 3.15791946,10.6038456 C3.05799068,10.903632 3.15791946,11.2034184 3.45770582,11.7030623 C5.05656637,14.0014243 3.85742095,15.9000712 3.75749217,16 L2.2585604,15.3004985 C2.2585604,15.2005697 2.95806189,14.0014243 1.95877405,12.6024213 C1.6589877,12.0028486 1.15934378,11.0035608 1.55905891,10.0042729 C1.6589877,9.80441537 1.75891648,9.6045578 1.95877405,9.40470024 C1.6589877,8.90505631 1.55905891,8.30548361 1.85884527,7.7059109 C1.55905891,7.40612455 1.25927256,7.1063382 1.15934378,6.70662306 C0.859557424,5.90719279 0.959486209,4.5081898 1.6589877,3.30904439 C1.95877405,2.6095429 2.55834676,2.0099702 3.15791946,1.51032628 C3.95734974,0.91075357 4.95663758,0.610967217 6.15578299,0.311180864 C9.05371774,-0.388320626 11.9516525,0.111323295 13.9502282,1.61025506 C15.1493736,2.50961412 15.8488751,3.80868831 15.9488039,5.20769129 Z M13.0508691,8.10562604 C13.8502994,7.40612455 14.3499433,6.40683671 14.3499433,5.30762008 C14.2500145,4.20840345 13.550513,3.40897318 12.9509403,2.90932926 C12.1515101,2.40968533 11.252151,2.0099702 10.1529344,1.81011263 C8.95378895,1.61025506 7.75464354,1.71018384 6.45556935,1.91004141 C4.75678001,2.30975655 3.65756338,3.00925804 3.05799068,4.10847467 C2.55834676,5.00783373 2.65827554,5.90719279 2.75820433,6.20697914 C2.75820433,6.30690792 2.85813311,6.40683671 3.05799068,6.40683671 C3.15791946,6.40683671 3.25784825,6.40683671 3.35777703,6.40683671 C3.45770582,6.40683671 3.45770582,6.40683671 3.45770582,6.40683671 L3.5576346,6.40683671 L3.65756338,6.40683671 C4.65685123,6.40683671 5.4562815,6.90648063 5.85599664,7.80583969 L5.85599664,8.00569726 C6.35564056,8.10562604 7.05514205,8.30548361 7.75464354,8.50534118 L9.25357531,8.90505631 C10.0530056,9.0049851 10.7525071,9.0049851 11.4520086,8.80512753 C12.0515813,8.70519875 12.5512252,8.40541239 13.0508691,8.10562604 Z"}}]};const LT=e=>(Object.keys(qT.prototype).forEach((t=>{e[t]=qT.prototype[t]})),qT.init(e),e);var NT={SPARK:{DEFAULT:7,SQUEEZE:7,LABELLESS:7},XSMALL:{DEFAULT:28,SQUEEZE:24,LABELLESS:20},SMALL:{DEFAULT:28,SQUEEZE:24,LABELLESS:20},MEDIUM:{DEFAULT:28,SQUEEZE:24,LABELLESS:20},FULL:{DEFAULT:28,SQUEEZE:24,LABELLESS:20}},OT={SCALE:{MAIN:{MINOR:"minor",MAJOR:"major",MAJOR_INNER:"majorInner",COLOR:"fill"},REDUCED:{MINOR:"miniMinor",MAJOR:"miniMajor",COLOR:"reducedFill"}},COMPONENT:{BAR:"bar",GHOST_BAR_OOB:"ghost-bar",BAR_AXIS:"bar-axis",GROUP_AXIS:"group-axis",BAR_OOB_MAX:"bar-oob-max",BAR_OOB_MIN:"bar-oob-min",STACK_TOTAL_BAR:"stack-total-bar",BASE_TOOLTIP:"tooltip",SPACE:"space",LEGEND_CAT_TOOLTIP:"legend-cat-tooltip",LEGEND_COLOR_CAT:"legend-color-cat",MEASURE_REF_LINE:"mes-ref-line",DIMENSION_REF_LINE:"dim-ref-line",MEASURE_REF_LINE_LABEL:"mes-ref-line-label",DIMENSION_REF_LINE_LABEL:"dim-ref-line-label",TREND_LINES_TOOLTIP:"trend-lines-tooltip",TREND_LINES_TOOLTIP_OVERLAY:"trend-lines-tooltip-overlay"},COLLECTION:{MAIN:"main-collection",MINI:"mini-collection",MINI_STACK:"mini-stack-collection",MINI_CONTINUOUS:"mini-continuous-collection",STACK_TOTAL:"stack-total-collection"},FORMATTER:{MINOR:"bar",COLOR:"fill"}};const DT=({layout:e,flags:t})=>{var n,r,o,i;if(null==t||!t.isEnabled("TLV_800_BUTTERFLY_CHART"))return!1;const a=null==e||null===(n=e.qHyperCube)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==lk})),s=null==e||null===(r=e.qHyperCube)||void 0===r||null===(r=r.qMeasureInfo)||void 0===r?void 0:r.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==lk})),l=null!==(o=null==a?void 0:a.length)&&void 0!==o?o:0,c=null!==(i=null==s?void 0:s.length)&&void 0!==i?i:0;return 1===l&&2===c},AT=e=>({layout:t})=>{var n;const r=ve.canBeContinuous(t),o=ke.continuous(t),i=ke.dimensionless(t),a=DT({layout:t,flags:e})&&"butterfly"===(null==t||null===(n=t.barGrouping)||void 0===n?void 0:n.grouping);return{canBeContinuous:r,isDiscrete:!o,isContinuous:o,isTime:ve.isTime(o,t),isDimensionless:i,isSimple:ke.simple(t),isGrouped:!a&&ke.grouped(t),isGroupedByMeasure:!a&&ke.groupedByMeasure(t),isGroupedByDimension:!a&&ke.groupedByDimension(t),isStacked:!a&&ke.stacked(t),isStackedByDimension:!a&&ke.stackedByDimension(t),isStackedByMeasure:!a&&ke.stackedByMeasure(t),isSnapshot:ke.snapshot(t),isButterfly:a}};function RT({clearMinor:e,clearLegend:t,clearDiscrete:n,clearContinuous:r,selectionInfo:o}){t({componentName:"legendRangeBrush"}),e({eventName:"measureRange",componentName:"measureRangeBrush"}),n({eventName:"discreteRange",componentName:"discreteRangeBrush",brushName:!1}),"tap"!==o.event&&r({componentName:"continuousRangeBrush",brushName:!1})}function IT({chart:e,actions:t,selections:n}){const r=e.scale(OT.SCALE.MAIN.MAJOR);return d({chart:e,actions:t,selections:n,config:{allowSimultaneous:!0,brushRanges:!0,majorScale:r,selectionActions:{reset(){e.brushSelectionIncludeMax=void 0,t.lasso.active()&&t.lasso.action(!1)},clear:RT},custom:{getActions:()=>t},setBrushAliases({defaultFunc:e,brush:t}){e(),t.addKeyAlias("miniCube/qDimensionInfo/0","qHyperCube/qDimensionInfo/0"),t.addKeyAlias("miniCube/qDimensionInfo/1","qHyperCube/qDimensionInfo/1")}}})}const PT=e=>{const t=e.qDimensionInfo.length;for(let n=0;n<t;n++){const r=e.qDimensionInfo[n];if(!(r.qLocked||r.qCardinalities.qHypercubeCardinal<=1&&n<t-1))return n}};function zT({layout:e,defaultAuto:t}){return e.qHyperCube.qDimensionInfo.length>1?{mode:"byDimension",useDimColVal:!0,useBaseColors:"dimension",byDimDef:{activeDimensionIndex:1}}:e.qHyperCube.qMeasureInfo.length>1?{mode:"primary",useBaseColors:"measure",paletteColor:null}:t(e)}function jT({app:e,model:t,translator:n,picasso:r,localeInfo:o,theme:i,continuousDataModel:a,layoutService:s,legendLayoutService:l,reducedDataModel:c}){const{isContinuous:u,isStacked:d}=s.meta,f={main:void 0,mini:{getScales:()=>({}),getColor:()=>e=>e,getDatumProps:()=>({}),getAuxiliarySettings:()=>{}}};return{initialize:()=>{const m=[],{isReduced:h}=c.model().mode,g=u||h||d,y=!u&&(h||d)&&l?l.getHyperCube():void 0,v=y?"legendCube":void 0;return f.main=p({app:e,model:t,translator:n,picasso:r,layoutService:s,config:{localeInfo:o,auto:zT,key:OT.SCALE.MAIN.COLOR},createConfig:()=>({hc:g?y||s.getHyperCube():c.model().cube,source:g?v:"miniCube",theme:i})}),m.push(f.main.initialize()),u&&(f.mini=p({app:e,model:t,translator:n,picasso:r,layoutService:s,config:{localeInfo:o,auto:zT,key:OT.SCALE.REDUCED.COLOR},createConfig:()=>({layout:a.getInitialLayout(),hc:a.getInitialCube(),source:"miniCube",theme:i})}),m.push(f.mini.initialize())),Promise.all(m)},getMain:()=>f.main,getMini:()=>f.mini}}const FT={getMaxGlyphCount(e,t){const{qDimensionInfo:n}=e,{qApprMaxGlyphCount:r}=n[t];return r},getDimensionSize(e){var t;const n=null==e||null===(t=e.qCardinalities)||void 0===t?void 0:t.qHypercubeCardinal,{qLocked:r=0,qOption:o=0,qSelected:i=0}=(null==e?void 0:e.qStateCounts)||{};return[void 0,0].includes(n)?r+o+i:n}};function BT({layoutService:e}){return f({config:{args:{layoutService:e},disclaimers:{NoDataExist:!0,OnlyNanDataMeasure:!0,OnlyNanDataDimensionContinuous:!0,LimitedData:{condition:()=>{const{isContinuous:t,isTwoDimensional:n}=e.meta;if(!t||!n)return!1;const r=e.getLayout().qHyperCube.qDimensionInfo[1];return FT.getDimensionSize(r)>ve.maxNumberOfLines}},OnlyNegativeValues:{condition:()=>{if(e.meta.isButterfly){const{qMeasureInfo:t}=e.getHyperCube();return t.every((e=>{const{qMin:t,qMax:n}=e;return t<0&&n<0}))}return!1},alignment:"center"},NegativeValues:{condition:()=>{if(e.meta.isButterfly){const{qMeasureInfo:t}=e.getHyperCube();return t.some((e=>{const{qMin:t}=e;return t<0}))}return!1}}}}})}function _T(e){return e.qIsOtherCell||-3===e.qElemNumber||-3===e.qElemNo}function HT(e){return e.some(_T)}function $T(e,t){let n=NaN,r=NaN;return e.forEach((e=>{HT(e)||e.slice(-t).forEach((e=>{"NaN"!==e.qNum&&(n=Number.isNaN(n)?e.qNum:Math.min(e.qNum,n),r=Number.isNaN(r)?e.qNum:Math.max(e.qNum,r))}))})),{min:n,max:r}}function VT(e){let t=NaN,n=NaN;if(!e.getLayoutValue("measureAxis.autoMinMax",!1)){const r=e.getLayoutValue("measureAxis.minMax");e.meta.isButterfly||"min"!==r&&"minMax"!==r||(t=+e.getLayoutValue("measureAxis.min")),"max"!==r&&"minMax"!==r||(n=+e.getLayoutValue("measureAxis.max"),e.meta.isButterfly&&(t=-n))}return{min:t,max:n,isExplicitMin:!Number.isNaN(t),isExplicitMax:!Number.isNaN(n)}}function WT(e,t){let n=NaN,r=NaN;return e.forEach((e=>{if(!HT(e)){let o=0,i=0;e.slice(-t).forEach((e=>{"NaN"!==e.qNum&&(e.qNum>=0?i+=e.qNum:o+=e.qNum)})),n=Number.isNaN(n)?o:Math.min(o,n),r=Number.isNaN(r)?i:Math.max(i,r)}})),{min:n,max:r}}function UT(e,t){const n={};e.forEach((e=>{if(!HT(e)){const r=e[0].qElemNumber;n[r]=n[r]?n[r]:{min:0,max:0,cId:r},e.slice(t).forEach((e=>{"NaN"!==e.qNum&&(e.qNum>=0?n[r].max+=e.qNum:n[r].min+=e.qNum)}))}}));let r=NaN,o=NaN;return Object.keys(n).forEach((e=>{r=Number.isNaN(r)?n[e].min:Math.min(n[e].min,r),o=Number.isNaN(o)?n[e].max:Math.max(n[e].max,o)})),{min:r,max:o}}function KT(e){return"number"==typeof e&&!Number.isNaN(e)}function GT(e){const{meta:t}=e,n=e.getHyperCubeValue("qMeasureInfo");return t.isButterfly?{min:Math.min(0,KT(n[1].qMax)?-n[1].qMax:0),max:Math.max(0,KT(n[0].qMax)?n[0].qMax:0)}:{min:Math.min(...n.filter((e=>KT(e.qMin))).map((e=>e.qMin))),max:Math.max(...n.filter((e=>KT(e.qMax))).map((e=>e.qMax)))}}const{isNumber:YT}=Yi;function XT(e,t,n){for(let n=e.length-1;n>-1;n--)if(t(e[n]))return e[n];return n}function JT(e){return!Number.isNaN(+e.qNum)}function ZT(e){return e.qNum}function QT(e){return!Number.isNaN(+e.qNum)}function eq(e){return e.qNum}function tq(e,t){return e.push(...t),e}const{getValueWithOffset:nq,isNumber:rq}=Yi,oq=5,iq=.2;function aq(e,t){return Math.abs(e/t)<oq||0===t}function sq({layoutService:e,trendLineModel:t},n={}){const{stackedByMeasureExtractor:r=WT,stackedByDimensionExtractor:i=UT,straightExtractor:a=$T,measureInfoExtractor:s=GT,explicitExtractor:l=VT}=n,{meta:c}=e;return{extract({qDataPages:e,qStackedDataPages:n,others:r,count:o}){let i,a;if(Array.isArray(n)?({min:i,max:a}=this.extractFromStacked(n)):({min:i,max:a}=this.extractFromStraight(e,o)),t.query.hasTrendLines()){const{min:e,max:n}=t.query.getMinMax();i=Number.isFinite(e)?Math.min(i,e):i,a=Number.isFinite(n)?Math.max(a,n):a}const{min:s,max:l}=this.extractOthers(r),c=this.extractExplicit(),u=[0,i,a].filter((e=>rq(e)));let d=Math.min(...u),p=Math.max(...u);d=aq(s,d)?Math.min(d,s):d,p=aq(l,p)?Math.max(p,l):p;const f=[c.explicitMin,c.explicitMax,d,p].filter((e=>rq(e)));return i=Number.isNaN(c.explicitMin)?Math.min(...f):c.explicitMin,a=Number.isNaN(c.explicitMax)?Math.max(...f):c.explicitMax,i===a&&(Number.isNaN(c.explicitMin)?i=nq(i,-.2):Number.isNaN(c.explicitMax)&&(a=nq(a,iq))),{min:i,max:a,implicitMin:d,implicitMax:p,otherMin:s,otherMax:l,hasOtherMin:s<i,hasOtherMax:l>a,...c}},extractExplicit(){const{min:t,max:n,isExplicitMin:r,isExplicitMax:o}=l(e);return{hasExplicitMinMax:r||o,hasExplicitMin:r,hasExplicitMax:o,explicitMin:t,explicitMax:n}},extractFromStacked(e){const t=e.length?e[0].qData:[];return(n=t).length?{min:Math.min(...n[0].qSubNodes.filter((e=>YT(e.qMinNeg))).map((e=>e.qMinNeg))),max:Math.max(...n[0].qSubNodes.filter((e=>YT(e.qMaxPos))).map((e=>e.qMaxPos)))}:{min:0,max:0};var n},extractFromStraight(t,n){const o=t.length?t[0].qMatrix:[];return c.isStackedByMeasure?r(o,n):c.isStackedByDimension?i(o,n):e.getHyperCubeValue("qHasOtherValues")?a(o,n):s(e)},extractOthers:e=>c.isStackedByDimension?function(e){const t=XT(o(e,"0.qData.0.qSubNodes",[]),_T,{qMaxPos:0,qMinNeg:0});return{min:t.qMinNeg,max:t.qMaxPos}}(e):c.isGroupedByDimension?function(e){const t=o(e,"0.qMatrix",[]).filter(HT).reduce(tq,[]).filter(QT).map(eq);return{min:Math.min(0,...t),max:Math.max(0,...t)}}(e):function(e){const t=XT(o(e,"0.qMatrix",[]),HT,[]).filter(JT).map(ZT);return{min:Math.min(0,...t),max:Math.max(0,...t)}}(e)}}function lq(e){const t=function({reducedDataModel:e,layoutService:t,continuousDataModel:n}){const{meta:r,getHyperCubeValue:o}=t,i=e=>!e.length&&r.mode.K,a=e=>{const t=o("qStackedDataPages",[]);return{qStackedDataPages:t,others:e?t:[]}};return{resolve(){const t=o("qMeasureInfo").length,s=o("qDimensionInfo").length,l=o("qHasOtherValues");if(!r.isStacked&&!l)return Promise.resolve({qDataPages:[{}],count:t});if(r.isContinuous){const e=r.isStackedByDimension?s:t;return n.fetchMinMaxData().then((t=>({qDataPages:t,count:e})))}const c=r.isStackedByDimension?1:t;return e.fetchMinMaxData().then((e=>{if(i(e))return a(l);let t=[];return l&&(t=r.mode.K?o("qStackedDataPages",[]):o("qDataPages",[])),{qDataPages:e,count:c,others:t}}))}}}(e),n=sq(e);return t.resolve().then((e=>n.extract(e)))}const cq="lasso",uq=({key:e,componentTargetKey:t,requireFailure:n,recognizeWith:r},o)=>({key:`event:${e}`,type:"Pan",requireFailure:n,recognizeWith:r,options:{event:cq,enable(e,n){if(this.started===cq||!n)return!0;if(!o.actions.select.enabled()||!o.actions.lasso.enabled()||!o.actions.lasso.active())return!1;return this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).filter((e=>e.key===t)).length>0}},events:{lassostart(t){t.preventDefault(),this.started!==cq&&(o.actions.select.emit("start",cq),this.chart.component(e).emit("lassoStart",t),this.started=cq)},lassomove(t){t.preventDefault(),this.chart.component(e).emit("lassoMove",t),"function"==typeof o.updateOnMove&&o.updateOnMove(this.chart)},lassoend(t){t.preventDefault(),this.started=!1,this.chart.component(e).emit("lassoEnd",t),o.actions.select.emit("end",cq),"function"==typeof o.updateOnEnd&&o.updateOnEnd()}}});const dq=({targets:e,requireFailure:t,recognizeWith:n,components:r,eventName:o="tap"},i)=>{let a;const s=i.customTooltipModel?i.customTooltipModel.utils:void 0,l=s?i.debouncer(s.displayTooltip,s.DEBOUNCE_THRESHOLD):void 0;return{key:"event:tap",type:"Tap",requireFailure:t,recognizeWith:n,options:{event:o,interval:10,pointers:1,enable(t,n){return!n||!(!i.actions.select.enabled()&&!i.actions.tooltip.enabled())&&(a=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).filter((t=>-1!==e.indexOf(t.key))),a.length>0)}},events:{[o](t){t.preventDefault();const n=function(e,t){const n=t.element.getBoundingClientRect();let r,o;return e.center?(({x:r}=e.center),({y:o}=e.center)):(r=e.clientX,o=e.clientY),{x:r-n.left,y:o-n.top}}(t,this.chart),c=i.hitRadius?i.hitRadius(a):0,u=c>0?{cx:n.x,cy:n.y,r:c}:n,d=i.shapesAt?i.shapesAt(u):this.chart.shapesAt(u,{components:e.map((e=>({key:e,propagation:"stop"}))),propagation:"stop"}),p=this.chart.component("tooltip"),f="mouse"!==t.pointerType&&p&&p.show;if(!i.isLocked(a)&&!i.tooltipOnly&&i.actions.select.enabled()){const e=this.chart.componentsFromPoint({x:t.center.x,y:t.center.y}),n=e.some((e=>"legend-cat"===e.type));if(!d.length&&n||(this.chart.brushSelectionIncludeMax=!1,i.actions.select.brushSelectionIncludeMax=!1,i.actions.select.emit("start",o,e)),d.length&&r){this.chart.brushSelectionIncludeMax=!1,i.actions.select.brushSelectionIncludeMax=!1;const e="function"==typeof r?r(t,d):r;this.chart.brushFromShapes(d,{components:e}),i.actions.select.emit("end",o),(({largeDataService:e,chart:t})=>{((null==e?void 0:e.meta)||{}).isLargeNumPoints&&t.brush("lazySelection")._state(t.brush("selection")._state())})({largeDataService:i.largeDataService,chart:this.chart})}}if(p&&i.actions.tooltip.enabled())if(d.length){const{customTooltipModel:e}=i;if(null!=e&&e.useCustomTooltip&&s.checkIfPromisesExist({customTooltipModel:e})){const n=s.getNodes(t,this.chart);l(t,p,{nodes:n,opts:i,customTooltipModel:e})}else p.emit("show",t,{nodes:d})}else f&&p.emit("hide")}}}};const pq=({key:e,requireFailure:t,recognizeWith:n,eventName:r="tap"},o)=>({prio:1,key:`event:${e}-tap`,type:"Tap",requireFailure:t,recognizeWith:n,options:{event:`${r}-${e}-tap`,interval:10,pointers:1,enable:(t,n)=>!!n&&(!!o.actions.select.enabled()&&(!(!n.target||"INPUT"!==n.target.nodeName)||!(!n.target||!n.target.hasAttribute("data-other-value"))&&(n.target.getAttribute("data-key")||"").split("-bubble")[0]===e))},events:{[`${r}-${e}-tap`](t){(t.target.getAttribute("data-key")||"").split("-bubble")[0]&&(t.preventDefault(),this.chart.component(e).emit("bubbleStart",t))}}});const fq=({eventName:e,key:t,fillTargets:n=[],requireFailure:r,recognizeWith:o},i,a)=>({key:`event:${t}`,type:"Pan",requireFailure:r,recognizeWith:o,options:{event:e,enable(r,o){if(this.started===e||!o)return!0;if(!i.actions.select.enabled())return!1;const a=this.chart.componentsFromPoint({x:o.center.x,y:o.center.y}).filter((e=>-1!==n.indexOf(e.key))),s=0===a.length&&function(e,t){const{target:n}=e.srcEvent;return!(!n||0!==(n.getAttribute("data-key")||"").indexOf(`${t}-`))}(o,t);return s?(this.started=e,!0):a.length>0}},events:{[`${e}start`](n){void 0===this.chart.brushSelectionIncludeMax&&(this.chart.brushSelectionIncludeMax=!0,i.actions.select.brushSelectionIncludeMax=!0),n.preventDefault(),i.actions.select.emit("start",e),this.chart.component(t).emit(`${a}Start`,n),this.started=e},[`${e}move`](e){e.preventDefault(),this.chart.component(t).emit(`${a}Move`,e),"function"==typeof i.updateOnMove&&i.updateOnMove(this.chart)},[`${e}end`](n){void 0===this.chart.brushSelectionIncludeMax&&(this.chart.brushSelectionIncludeMax=!0,i.actions.select.brushSelectionIncludeMax=!0),n.preventDefault(),this.chart.component(t).emit(`${a}End`,n),i.actions.select.emit("end",e),this.started=!1,"function"==typeof i.updateOnEnd&&i.updateOnEnd()}}});function mq(e,t){const n=function(e){const{key:t,targets:n,fillTargets:r,targetSelector:o,targetFillSelector:i,dock:a,scale:s,bubblesPlacement:l="inside",observeBrush:c=!1,multiple:u=!1,toLabel:d,onEdited:p}=e;return{key:t,type:"brush-range",layout:{dock:n.map((e=>`@${e}`)).join(",")},on:p?{bubbleEnd(){p()}}:{},settings:{brush:c?{context:"selection",observe:!0}:"selection",scale:s,multiple:u,direction:"left"===a||"right"===a?"vertical":"horizontal",bubbles:{align:"left"===a||"top"===a?"end":"start",placement:l,label:d},target:{components:r,selector:o,fillSelector:i,fill:"rgba(82,204,82,0.2)"}}}}(e),r=fq(e,t,"range");return{interactions:[e.onEdited?pq(e,t):null,r].filter(Boolean),components:[n]}}const hq={refLines:{minimumLayoutMode:"SPARK"},measureAxisTitle:{minimumLayoutMode:"XSMALL"},dimensionAxisTitle:{minimumLayoutMode:"XSMALL"},measureAxis:{minimumLayoutMode:"XSMALL"},dimensionAxis:{minimumLayoutMode:"XSMALL"},gridLines:{minimumLayoutMode:"XSMALL"},refLinesLabels:{minimumLayoutMode:"SMALL"},horizontalDimensionAxis:{minimumLayoutMode:{width:"XSMALL",height:"SMALL"}},verticalDimensionAxis:{minimumLayoutMode:{width:"SMALL",height:"XSMALL"}},horizontalDimensionAxisTitle:{minimumLayoutMode:{width:"XSMALL",height:"MEDIUM"}},verticalDimensionAxisTitle:{minimumLayoutMode:{width:"MEDIUM",height:"XSMALL"}}},gq="inner-time-axis",yq="outer-time-axis";const vq={getMajorAxisMaxGlyphCount(e,t){let n=0;if(e.qDimensionInfo.length){const r=t?0:e.qDimensionInfo.length-1;n=FT.getMaxGlyphCount(e,r)}else e.qMeasureInfo.forEach((e=>{n=Math.max(n,e.qFallbackTitle.length)}));return n},getAxisData(e,t){let n;return n=e.qDimensionInfo.length?o(e,t?"qStackedDataPages.0.qData.0.qSubNodes":"qDataPages.0.qMatrix"):e.qMeasureInfo,n},getBarAxisMaxGlyphCount(e,t){if(!e)return;const n=vq.getAxisData(e,t),r=!e.qDimensionInfo.length,o=r||t?void 0:e.qDimensionInfo.length-1,i=vq.getMajorAxisMaxGlyphCount(e,t),a=r?"qFallbackTitle":"qText";return De.getAdjustedMaxGlyphCount(i,n,o,a)},getGroupAxisMaxGlyphCount(e){if(!e)return;const t=vq.getAxisData(e),n=FT.getMaxGlyphCount(e,0);return De.getAdjustedMaxGlyphCount(n,t,0)}};var bq=3,xq=13;function Sq(e,t,n,r){const{meta:o}=t.layoutService,i=[],a=!("none"===e.measureAxis.show),s=!("title"===e.measureAxis.show);o.isContinuous?i.push(...function(e,t,n,r){const{meta:o}=t.layoutService,{axis:i,grid:a}=t.themeService.getStyles(),s=t.styleService.axis.label.getStyle(),{auto:l,spacing:c}=t.layoutService.getLayoutValue("gridLine",{}),u=[],d="none"!==e.dimensionAxis.show&&"title"!==e.dimensionAxis.show,p=hq[`${t.dockService.meta.major.orientation}DimensionAxis`].minimumLayoutMode,f={type:"grid-line",x:{},layout:{minimumLayoutMode:hq.gridLines.minimumLayoutMode},ticks:{stroke:a.line.major.color},minorTicks:{show:!1,stroke:a.line.minor.color},animations:{enabled:t.viewModel.animations.enabled,trackBy:ja.lines.trackBy,compensateForLayoutChanges:ja.lines.compensateForLayoutChanges}},m=!!e.showMiniChartForContinuousAxis&&{type:"range",key:"range-brush-highlighter",layout:{dock:"@scrollbar"},settings:{scale:t.reducedDataModel.scales.major,brush:"selection",fill:"#6CB33F",opacity:.2}};if(o.isTime){if(d){const e=n?"end":"start",r=n?1:0,o="bottom"===t.dockService.meta.major.dock?0:1,a={label:{fill:s.fill,fontSize:s.fontSize,fontFamily:s.fontFamily},majorGuideLine:{stroke:i.line.major.color},minorGuideLine:{stroke:i.line.minor.color}},d={type:"time-axis",renderer:"svg",layout:{dock:t.dockService.meta.major.dock,minimumLayoutMode:p},preferredSize:()=>({size:2*parseFloat(s.fontSize),edgeBleed:{left:1,right:1}}),settings:{anchor:e,label:{align:o,justify:r},guideLine:{major:{justify:r},minor:{align:o}}},style:a,animations:{enabled:t.viewModel.animations.enabled,trackBy:ja.axes.trackBy({isTime:!0}),compensateForLayoutChanges:ja.axes.compensateForLayoutChanges({isTime:!0})}};u.push(de(!0,{},d,{key:gq,scale:OT.SCALE.MAIN.MAJOR_INNER,settings:{guideLine:{minor:{show:!0}},line:{show:!l&&0===c}},style:de(!0,{},a,{line:{stroke:i.line.major.color},majorGuideLine:{stroke:i.line.minor.color},minorGuideLine:{stroke:i.line.major.color}})})),u.push(de(!0,{},d,{key:yq,scale:OT.SCALE.MAIN.MAJOR,settings:{guideLine:{minor:{show:!1}},line:{show:!1}}})),u.push({type:"axis-overlay",key:"outer-axis-overlay",scale:OT.SCALE.MAIN.MAJOR,layout:{dock:`@${yq}`,minimumLayoutMode:p}}),u.push({type:"axis-overlay",key:"inner-axis-overlay",scale:OT.SCALE.MAIN.MAJOR_INNER,layout:{dock:`@${gq}`,minimumLayoutMode:p}}),u.push(m)}return u.push(de(!0,{},f,{key:"inner-time-grid",x:{scale:OT.SCALE.MAIN.MAJOR_INNER},ticks:{stroke:a.line.minor.color}})),u.push(de(!0,{},f,{key:"outer-time-grid",x:{scale:OT.SCALE.MAIN.MAJOR}})),u}if(o.isContinuous){const e="continuous-axis";d&&(u.push({type:"axis",key:e,renderer:Ya(t.flags),scale:OT.SCALE.MAIN.MAJOR,layout:{dock:t.dockService.meta.major.dock,minimumLayoutMode:p},settings:{labels:{align:0,offset:4,fill:s.fill,fontSize:s.fontSize,fontFamily:s.fontFamily},ticks:{show:!0,stroke:i.line.major.color},line:{show:!r},minorTicks:{show:!1}},animations:{enabled:t.viewModel.animations.enabled,trackBy:ja.axes.trackBy({isContinuous:!0}),compensateForLayoutChanges:ja.axes.compensateForLayoutChanges({isContinuous:!0})}}),u.push({type:"axis-overlay",key:"inner-axis-overlay",scale:OT.SCALE.MAIN.MAJOR,layout:{dock:`@${e}`,minimumLayoutMode:p}}),u.push(m)),u.push(de(!0,{},f,{key:"continuous-grid",x:{scale:OT.SCALE.MAIN.MAJOR},minorTicks:{show:!0}}))}return u}(e,t,n,r)):i.push(...function(e,t,n,r){if("none"===e.dimensionAxis.show)return[];const{meta:o}=t.layoutService,i=t.themeService.getStyles(),a=[],s=function(e,t){return!t.layoutService.meta.isGroupedByDimension||!e.legend.show||t.colorService.getMain().getSettings().field!==t.viewModel.fields.major}(e,t),l=function(e,t){return!(!t.layoutService.meta.isGroupedByDimension||e.legend.show&&t.colorService.getMain().getSettings().field===t.viewModel.fields.majorGroup)}(e,t),c="horizontal"===t.dockService.meta.major.orientation,u=c?e.dimensionAxis.label:"auto",d="horizontal"===u?void 0:t.dockService.meta.minor.size/4,p=t.styleService.axis.label.getStyle(),f={type:"axis",renderer:Ya(t.flags),layout:{dock:t.dockService.meta.major.dock,minimumLayoutMode:hq[`${t.dockService.meta.major.orientation}DimensionAxis`].minimumLayoutMode},settings:{labels:{show:!("title"===e.dimensionAxis.show),mode:u,tiltAngle:n?-40:40,maxEdgeBleed:50,maxLengthPx:d,...p},line:{show:!r,stroke:i.axis.line.major.color}},brush:{consume:[{context:"selection",data:["selectionDimension","axisSelectionDimension"],style:{inactive:{opacity:.3}}}]},animations:{enabled:t.viewModel.animations.enabled,trackBy:ja.axes.trackBy({isMajor:!0}),compensateForLayoutChanges:ja.axes.compensateForLayoutChanges({isHorizontal:c})}};l&&a.push(de(!0,{},f,{key:"group-axis",scale:OT.SCALE.MAIN.MAJOR_INNER,settings:{paddingEnd:s?10:4,labels:{mode:s?"horizontal":f.settings.labels.mode,maxGlyphCount:vq.getGroupAxisMaxGlyphCount(e.qHyperCube),maxLengthPx:d},line:{show:(c||!s)&&f.settings.line.show}}}));const m=vq.getBarAxisMaxGlyphCount(e.qHyperCube,o.isStackedByDimension);return s&&a.push(de(!0,{},f,{key:OT.COMPONENT.BAR_AXIS,scale:OT.SCALE.MAIN.MAJOR,settings:{paddingEnd:4,labels:{maxGlyphCount:m,maxLengthPx:d,tiltThreshold:m>bq&&m<xq?1:void 0},line:{show:!(c&&l)&&f.settings.line.show}}})),c||2!==a.length?a:[a[1],a[0]]}(e,t,n,r));const l=t.themeService.getStyles(),c=t.styleService.axis.label.getStyle();return a&&i.push({type:"axis",key:"y-axis",renderer:Ya(t.flags),formatter:OT.FORMATTER.MINOR,layout:{dock:t.dockService.meta.minor.dock,minimumLayoutMode:hq.measureAxis.minimumLayoutMode},scale:OT.SCALE.MAIN.MINOR,settings:{labels:{show:s,...c},line:{stroke:l.axis.line.major.color},ticks:{stroke:l.axis.line.major.color},minorTicks:{stroke:l.axis.line.minor.color}},animations:{enabled:t.viewModel.animations.enabled,trackBy:ja.axes.trackBy({isMeasure:!0}),compensateForLayoutChanges:ja.axes.compensateForLayoutChanges({isMeasure:!0,dock:t.dockService.meta.minor.dock})}}),i}var Mq={BAR:{STROKE:{COLOR:"#205891",WIDTH:{NONE:0,SMALL:1,MEDIUM:2,LARGE:4}}}};function Cq({layoutService:e,discrete:t}){var n;const{isContinuous:r,isGrouped:o}=e.meta;if(r)return 1;const i=(e.getLayoutValue("components",[])||[]).filter((e=>"bar"===e.key))[0];if(null!=i&&null!==(n=i.style)&&void 0!==n&&n.width){const{style:e}=i;return e.strokeWidth&&"none"!==e.strokeWidth?function(){const n=Mq.BAR.STROKE.WIDTH[e.strokeWidth.toUpperCase()]/t.query.getItemSize(),r=e.width+n;return r>1?e.width-(r-1):e.width}:e.width}return o?.9:.7}const wq={FULL:16,MEDIUM:14,SMALL:12,XSMALL:8,SPARK:4};function kq(e,t,n={}){return({data:r})=>{const o=e.chart.component(t).rect;if(!r.items.length||!o)return 2;const{min:i,max:a}=e.viewState.get("zoom");if(n[[i,a]])return n[[i,a]];const s=wq[me.getLayoutMode(o.width,Number.MAX_VALUE)];n={};const l=Math.abs(a-i),c=Math.abs(e.viewCache.get("continuousMax")-e.viewCache.get("continuousMin"));if(0===c)return s;const u=function(e,t,n){return e*(1-n)+t*n}(2,s,1-Math.min(l/c/.2,1));return n[[i,a]]=Math.max(2,Math.min(s,u)),n[[i,a]]}}function Tq(e,t){const{hasExplicitMax:n,explicitMax:r}=t;return!!n&&e>r&&r<=0}function qq(e,t){const{hasExplicitMin:n,explicitMin:r}=t;return!!n&&e<r&&r>=0}function Eq(e,t){const{hasExplicitMax:n,explicitMax:r}=t;return!!n&&e>r&&r>0}function Lq(e,t){const{hasExplicitMin:n,explicitMin:r}=t;return!!n&&e<r&&r<0}const Nq="max",Oq="min",Dq={min:"Min",max:"Max"};function Aq(e,t,n){return void 0===n?Tq(e,t)||qq(e,t):n===Nq?Tq(e,t):qq(e,t)}function Rq({minorMinMax:e,type:t}){return!(function({minorMinMax:e,type:t}){return!e[`hasExplicit${Dq[t]}`]}({minorMinMax:e,type:t})||function({minorMinMax:e,type:t}){const n=t===Nq?e.implicitMax:e.implicitMin;return!Aq(Number(n.toFixed(13)),e,t)}({minorMinMax:e,type:t}))}function Iq(e,{barComponent:t,type:n,isStacked:r}){const{viewCache:o,dockService:i,themeService:a}=e,s=o.get("minorMinMax");if(!s.hasExplicitMinMax)return!1;const l=n===Nq?s.implicitMax:s.implicitMin;if(!Aq(Number(l.toFixed(13)),s,n))return!1;const{orientation:c}=t.settings,u=n===Nq?i.meta.minor.end:i.meta.minor.start;let d="end";r&&(d=n===Nq?"sumOfPositives":"sumOfNegatives");const p=a.getStyles();return{type:"box-out-of-bounds",key:`bar-oob-${n}`,layout:{dock:u},data:t.data,brush:t.brush,settings:{orientation:c,major:t.settings.major,minor:t.settings.minor,dockValue:Ee.getDockValue(u),oob:de({},t.settings.box,{fill:p.outOfRange.color,alignment:1,opacity:1,show:function(e){var t;return!0!==(null===(t=e.datum.null)||void 0===t?void 0:t.value)&&((!r||0!==e.datum[d].value)&&Aq(e.datum[d].value,s,n))}})},animations:{enabled:e.viewModel.animations.enabled,compensateForLayoutChanges:ja.barOobs.compensateForLayoutChanges}}}function Pq(e){return Math.min(Math.max(0,e),1)}const zq=(e,{chart:t,type:n,componentKey:r,collectionKey:o})=>{const{layoutService:i,dockService:a,viewCache:s}=e,{isStacked:l}=i.meta,c=s.get("minorMinMax"),{meta:u}=e.layoutService;if(!Rq({minorMinMax:c,type:n}))return!1;let d;u.isGroupedByDimension?d=({scale:e,datum:t})=>e([t.group.value,t.value])+e.bandwidth([t.group.value,t.value])/2:u.isGroupedByMeasure&&(d=({scale:e,datum:t})=>e([t.value,t.measureIndex.value])+e.bandwidth()/2);const p={type:"box",key:`${OT.COMPONENT.GHOST_BAR_OOB}-${n}`,data:{collection:o},settings:{orientation:a.meta.minor.orientation,major:{scale:OT.SCALE.MAIN.MAJOR,fn:d},minor:{scale:OT.SCALE.MAIN.MINOR,start(e){var n;return Pq(t.scale(OT.SCALE.MAIN.MINOR)((null==e||null===(n=e.datum)||void 0===n||null===(n=n.start)||void 0===n?void 0:n.value)||0))},end(e){const r=t.scale(OT.SCALE.MAIN.MINOR);let o="end";l&&(o="max"===n?"sumOfPositives":"sumOfNegatives");const i=e.datum[o]?e.datum[o].value:r[n]();return Pq(r(i))}},box:{width:Cq({layoutService:e.layoutService,discrete:e.discrete}),minWidthPx:2,fill:"none",stroke:"transparent",show:e=>{const r=t.scale(OT.SCALE.MAIN.MINOR);let o="end";l&&(o="max"===n?"sumOfPositives":"sumOfNegatives");const i=e.datum[o]?e.datum[o].value:r.max();return"max"===n?i>r.max():i<r.min()}},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}}};return p};function jq(e,t){const{style:n,styleService:r,dockService:o}=t,i=r.label.getStyle(),a=i.useContrastColor&&!e.onBackground?function(e){return function(t){return jt.isDark(t.node.attrs.fill)?e.lightColor:e.darkColor}}(n):i.fill,s="horizontal"===o.meta.major.orientation,l=e.padding||{left:s?0:4,right:s?0:4,top:s?4:0,bottom:s?4:0};return{position:e.position,justify:e.justify,fill:a,overflow:e.overflow,background:e.background,padding:l}}function Fq(e){return{placements:e.simplifiedPlacements.map((t=>jq(t,e))),label:e.label}}function Bq(e,t){if(t){if(function(e,t){return Tq(e,t)}(e,t))return-1;if(function(e,t){return qq(e,t)}(e,t))return 1}return function(e,t){if(t&&0===e){const{min:e,max:n}=t;return 0===n&&0===e?1:n<=0?-1:e>=0||n>=-e?1:-1}return e>=0?1:-1}(e,t)}function _q(e,t,n,r){const o=Bq(e,r);let i="up";return"vertical"===t&&o<0?i="down":"horizontal"===t&&(i=o>=0&&!n||o<0&&n?"right":"left"),i}function Hq(e,t){const{dataPoint:n}=e;if(!n.showLabels)return!1;const{isStacked:r,isContinuous:o}=t.layoutService.meta;return!r||!o&&!!n.showSegmentLabels}function $q(e,t){const{dataPoint:n}=e;if(!n.showLabels)return!1;const{isStacked:r,isContinuous:o}=t.layoutService.meta;return!!r&&(!!o||!1!==n.showTotalLabels)}function Vq(e,t,n,r){const o=[];return void 0!==e&&(o[e]={position:"outside",onBackground:!0,justify:0,overflow:r}),void 0!==t&&(o[t]={position:"inside",onBackground:!1,justify:n}),o}function Wq({layout:e,component:t,minorScale:n},r,o){if(!Hq(e,r))return!1;const{viewModel:i,ds:a,viewCache:s,layoutService:l,dockService:c,themeService:u}=r,{meta:d}=l,p=s.get("minorMinMax"),f=u.getStyles(),m=r.styleService.label.getStyle();let h;!d.isStacked&&(h=d.isStacked?1:0);const g=0===h?1:0,y=d.isStacked?.5:1,v=i.fields.minor[0],b=void 0===v?void 0:a.field(v).formatter();let x,S=-1;x=d.isStacked?d.isStackedByMeasure||!b?function(e){return e.data.segment.label}:function(e){return Math.abs(e.data.segment.value)>S?b(e.data.segment.value):""}:function(e){return e.data.end.label};const M={label:x,simplifiedPlacements:Vq(h,g,y,d.isContinuous),style:f.label.value},C=[Fq(de(r,M))],w={component:t,selector:"rect",strategy:{type:"bar",settings:{direction:e=>_q(e.data.end.value,c.meta.minor.orientation,o,p),labels:C,fontSize:parseInt(m.fontSize,10),fontFamily:m.fontFamily,linkData:ja.labels.linkData}}},k=[w],T={key:"bar-labels",type:"labels",renderer:Ya(r.flags),layout:{minimumLayoutMode:"XSMALL"},settings:{sources:k},animations:{enabled:r.viewModel.animations.enabled,trackBy:ja.labels.trackBy,compensateForLayoutChanges:ja.labels.compensateForLayoutChanges}};return d.isStackedByDimension&&b&&(T.beforeRender=()=>{S=function(e,t,n){const r="vertical"===t.dockService.meta.minor.orientation?"height":"width",o=t.chart.component(e),i=o&&o.rect?o.rect[r]:1,a=n?n.min():0;return 9.999*((n?n.max():0)-a)/i}(t,r,n)}),T}const Uq={isSameMeasureAndColorRow:(e,t,n)=>t&&e&&t[0].content[0]===e[0].content[0]&&t[0].content[1]===e[0].content[1]&&t[1].content[n?0:1]===e[1].content[0],getTitle(e,t){const n=e.data;let r;return t.isStackedByDimension?r=n.stack?n.stack.label:void 0:t.isGroupedByDimension&&(r=n.group?n.group.label:void 0),void 0!==r?`${n.label}, ${r}`:n.label},getMeasure(e,t,n,r,o){if(n.isStacked&&("bar-oob-max"===t.key||"bar-oob-min"===t.key))return!1;const i=t.data,a=n.isStacked?r.viewModel.fields.minor[n.isStackedByDimension?0:i.measureIndex.value]:void 0,s=n.isStacked?{source:{key:i.source.key,field:a},label:!0===(null===(l=i.null)||void 0===l?void 0:l.value)?"":n.isStackedByDimension&&o?o(i.segment.value):i.segment.label}:i.end;var l;return Be.getMeasure(e,s)},getMeasures(e,t,n,r,o){const i=e.resources.dataset;return t.map((e=>Uq.getMeasure(i,e,n,r,o))).filter(Boolean)},getCustomTooltipAttrExps(e,t,n){const r=e.resources.dataset;return rk({nodes:t,layout:n.layoutService.getLayout(),dataset:r})},extractBarTooltipData(e,t,n,r,o){const i={title:Uq.getTitle(t,n),color:Be.getColor(e,t,r),measures:Uq.getMeasures(e,t.childrenNodes?t.childrenNodes:[t],n,r,o)};if(Uq.useCustomTooltip(r)){var a,s;const n=Uq.getCustomTooltipAttrExps(e,t.childrenNodes?t.childrenNodes:[t],r);i.customMeasures=n.customTooltipAttrExpsArr,i.customTitle=n.customTooltipInfoAttrExpsArr.filter((e=>e.id===Bw.CUSTOM.TITLE)),i.customDescription=n.customTooltipInfoAttrExpsArr.filter((e=>e.id===Bw.CUSTOM.DESCRIPTION));let o=[];(t.childrenNodes?t.childrenNodes:[t]).forEach((e=>{var t;(null===(t=e.data.customTooltipImages)||void 0===t?void 0:t.length)>0&&!Array.isArray(e.data.customTooltipImages[0])&&(o=e.data.customTooltipImages)})),o.length>0&&(i.customImages=o);const d=r.layoutService.getLayout();var l,c,u;if(null!==(a=d.tooltip)&&void 0!==a&&null!==(a=a.chart)&&void 0!==a&&null!==(a=a.object)&&void 0!==a&&a.refId&&r.app&&r.customTooltipModel.embed&&"function"==typeof(null===(s=r.customTooltipModel.model)||void 0===s?void 0:s.getEffectiveProperties))if(null!==(l=(c=r.app).isInModalSelection)&&void 0!==l&&l.call(c)){if((null==d||null===(u=d.qHyperCube)||void 0===u||null===(u=u.qDimensionInfo)||void 0===u?void 0:u.length)>0){Yw.destroyVisualization({customTooltipModel:r.customTooltipModel});const e=r.customTooltipModel.translator.get("properties.tooltip.notselectedmessage");i.customLimitation=e}}else{const t=Yw.createContainer({ctx:e,layout:d});i.customChart=t}}return i},getTotalStackTitle:(e,t)=>e>0?t?t.get("Object.ChartTooltip.sumOfPositives"):"Sum of positives":e<0?t?t.get("Object.ChartTooltip.sumOfNegatives"):"Sum of negatives":"",extractStackTotalBarTooltipData(e,t,n){const r=e.data.label,o=[e.data.sumOfPositives.value,e.data.sumOfNegatives.value].filter((e=>0!==e)).map((e=>({label:`${Uq.getTotalStackTitle(e,t)}`,value:n?n(e):e})));return{title:r,measures:o}},extractTooltipData(e,t){const n=t.chart.formatter(OT.FORMATTER.MINOR),{meta:r}=t.layoutService,o=e.node.childrenNodes?e.node.childrenNodes:[e.node],i=Math.max(0,o.length-6);o.length=Math.min(o.length,6);const{stackTotalBarNodes:a}=e.node,s=a&&a.length?a.map((e=>Uq.extractStackTotalBarTooltipData(e,t.translator,n))):[];return{barTooltipData:o.map((o=>Uq.extractBarTooltipData(e,o,r,t,n))),stackTotalBarTooltipData:s,numInvisibleNodesPhase1:i}},extractBarNodeData(e,t,n,r,o,i,a){let s=!o&&Be.getTitleRow(t,r);const l=Be.hideColorRow(t,n),c=!i&&!l&&Be.getColorRow(e,t,r),u=t.measures.map((o=>!a&&Be.getMeasureRow(o,e,t,r,l&&o.field===n.coloring.field))),d=u.filter((e=>!Uq.isSameMeasureAndColorRow(e,c,r)));if(Uq.useCustomTooltip(n)){const n=o?[]:t.customMeasures.map((n=>Be.getMeasureRow(n,e,t,r,!1))),i=!(!t.customTitle[0]||o)&&Be.getTitleRow(t.customTitle[0],r),a=!(!t.customDescription[0]||o)&&Be.getDescriptionRow(t.customDescription[0],r);s=!Uq.shouldIgnoreTitleRowForCtt(i,a,d,n)&&s;const l=[i,a,s,c,...d,...n];if(t.customChart&&l.push(t.customChart),t.customLimitation&&l.push(Qw.getFooterRow(t.customLimitation,r)),t.customImages){const n=t.customImages.map((t=>Qw.getImageRow(t,e)));l.push(...n)}return l.filter(Boolean)}return[s,c,...d].filter(Boolean)},extractStackTotalBarNodeData(e,t,n){const r=!!t.measures.length&&Be.getTitleRow(t,n),o=t.measures.map((r=>Be.getMeasureRow(r,e,t,n,!1)));return[r,...o].filter(Boolean)},useCustomTooltip:e=>o(e,"customTooltipModel.useCustomTooltip",!1),shouldIgnoreTitleRow:(e,t)=>e.isDimensionless||t>0&&!e.isGroupedByDimension&&!e.isStackedByDimension,shouldIgnoreTitleRowForCtt:(e,t,n,r)=>!1===n[0]&&0===r.length&&(e.length>0||t.length>0),shouldIgnoreColorRow:(e,t)=>t>0&&(e.isGroupedByMeasure||e.isStackedByMeasure),shouldIgnoreMeasureRow:(e,t,n)=>e&&t.measures.some((e=>e.field===n.coloring.field)),shouldIgnoreDefaultRows:(e,t)=>Uq.useCustomTooltip(t)&&o(e,"tooltip.hideBasic",0),extractBarsData(e,t,n,r){const{meta:o}=t.layoutService,i=t.layoutService.getLayout(),a=r.length;let s,l,c=[];const u=Uq.shouldIgnoreDefaultRows(i,t);for(s=0;s<a;s++){l=r[s];const i=Uq.shouldIgnoreTitleRow(o,s),d=u||Uq.shouldIgnoreColorRow(o,s),p=u||Uq.shouldIgnoreMeasureRow(d,l,t);if(c=c.concat(Uq.extractBarNodeData(e,l,t,n,i,d,p)),c.length>=6||l.customImages||l.customChart||l.customLimitation)return{barsData:c,numInvisibleNodesPhase2:a-(s+1)}}return{barsData:c,numInvisibleNodesPhase2:0}},extractStackTotalBarsData(e,t,n){let r=[];return n.some((e=>e.measures.length))&&n.forEach((n=>{r=r.concat(Uq.extractStackTotalBarNodeData(e,n,t))})),r},extractData(e,t,n){const{barTooltipData:r,numInvisibleNodesPhase1:o,stackTotalBarTooltipData:i}=Uq.extractTooltipData(e,t),a=Uq.extractStackTotalBarsData(e,n,i);a.length&&a.push(Be.getSeparatorRow());const{barsData:s,numInvisibleNodesPhase2:l}=Uq.extractBarsData(e,t,n,r),c=a.concat(s),u=o+l;return u&&c.push(Be.getNMoreRow(u,t.translator,n)),c},calculateBoundsFromBars(e){const t=e.filter((e=>{const t=e.bounds;return t.width>0&&t.height>0})),n=t.length?t:e;return Ua.combineBounds(n.map((e=>e.bounds)))},calculateBoundsFromScale({opts:e,barKey:t,scale:n,majorScale:r,data:o,groupProp:i}){const a=e.chart.component(t).rect,{orientation:s}=e.dockService.meta.major,l="horizontal"===s?"width":"height",c=e.chart.scale(n).pxScale(a[l]);let u,d,p;if(e.layoutService.meta.isGroupedByMeasure){const t=e.viewModel.fields.minor.length;u=o.value,d=n===r&&void 0!==u?(c([u,0])+c([u,t-1]))/2:0,p=n===r&&void 0!==u?c.bandwidth([u,0]):0}else{const{value:e}=o;u=o[i]?o[i].value:void 0,d=c(n===r&&void 0!==u?[u,e]:e),p=n===r&&void 0!==u?c.bandwidth([u,e]):c.bandwidth(e)}const f=(d+p/2)*a[l],m={width:0,height:0};return"horizontal"===s?(m.x=f,m.y=a.height):(m.y=f,m.x=0),m},calculateTotalBounds({opts:e,labels:t,bars:n,barKey:r,barAxisKey:o,majorScale:i,majorInnerScale:a,groupProp:s}){const l=n.filter((e=>e.children&&e.children.length));let c;return c=l.length?Uq.calculateBoundsFromBars(l):Uq.calculateBoundsFromScale({opts:e,barKey:r,scale:t[0].key===o?i:a,majorScale:i,data:t[0].data,groupProp:s}),c},filterNodesOnKeys:(e,t)=>e.filter((e=>e.data&&t.indexOf(e.key)>-1)),isBarMatchingLabel:(e,t)=>t.data.value===e.data.value,isBarMatchingLabelOnProp:(e,t,n)=>t.data.value===(e.data[n]?e.data[n].value:e.data.value),findBarsMatchingLabels(e,t,n,r){const o=e.filter((e=>t.some((t=>n(e,t,r)))));return o},findBarsFromGroupLabelsInGroupedByDim(e,t,n){const r=Uq.isBarMatchingLabelOnProp;return Uq.findBarsMatchingLabels(e,t,r,n)},findBarsFromBarLabelsInGroupedByDim:(e,t,n)=>e.filter((e=>t.some((t=>t.data.group&&t.data.group.value===e.data[n].value&&t.data.value===e.data.value)))),findBarsFromLabelsInSingleDim(e,t){const n=Uq.isBarMatchingLabel;return Uq.findBarsMatchingLabels(e,t,n)},findBarsFromLabelsInGroupedByDim(e,t,n,r){const o=t.filter((e=>e.key===n)),i=t.filter((e=>e.key!==n)),a=Uq.findBarsFromBarLabelsInGroupedByDim(e,o,r),s=Uq.findBarsFromGroupLabelsInGroupedByDim(e,i,r);return a.concat(s)},findStackTotalBarsFromLabelsInStackedByDim(e,t){const n=Uq.isBarMatchingLabel;return Uq.findBarsMatchingLabels(e,t,n)},findStackTotalBarsFromLabelsInStackedByMeasure(e,t){const n=Uq.isBarMatchingLabel;return Uq.findBarsMatchingLabels(e,t,n)},findBarsFromLabelsInStackedByDim(e,t,n){const r=Uq.isBarMatchingLabelOnProp;return Uq.findBarsMatchingLabels(e,t,r,n)},findBarsFromLabelsInStackedByMeasure:(e,t)=>Uq.findBarsFromLabelsInSingleDim(e,t),findBarsFromLabels({labels:e,opts:t,filterKeys:n,barAxisKey:r,groupProp:o,stackProp:i}){const{meta:a}=t.layoutService,s=Uq.filterNodesOnKeys(t.chart.findShapes("container"),n);return a.isStackedByDimension?Uq.findBarsFromLabelsInStackedByDim(s,e,i):a.isStackedByMeasure?Uq.findBarsFromLabelsInStackedByMeasure(s,e):a.isGroupedByDimension?Uq.findBarsFromLabelsInGroupedByDim(s,e,r,o):Uq.findBarsFromLabelsInSingleDim(s,e)},findStackTotalBarsFromLabels({labels:e,opts:t,stackTotalBarKey:n}){const{meta:r}=t.layoutService;if(r.isStacked){const o=Uq.filterNodesOnKeys(t.chart.findShapes("container"),[n]);return r.isStackedByDimension?Uq.findStackTotalBarsFromLabelsInStackedByDim(o,e):Uq.findStackTotalBarsFromLabelsInStackedByMeasure(o,e)}return[]},isSingleBarMode:(e,t)=>(e.isSimple||1===t.length)&&t[0].children&&t[0].children.length,filterNodesOnLabels({labels:e,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:o,barOobMaxKey:i,barOobMinKey:a,groupProp:s,stackProp:l,majorScale:c,majorInnerScale:u,filterFn:d}){const{meta:p}=t.layoutService;if(e.length){let f=Uq.findBarsFromLabels({labels:e,opts:t,filterKeys:[n],stackTotalBarKey:r,barAxisKey:o,barOobMaxKey:i,barOobMinKey:a,groupProp:s,stackProp:l});if(d&&(f=f.filter(d)),Uq.isSingleBarMode(p,f))return[f[0]];if(f.length){let p=Uq.findBarsFromLabels({labels:e,opts:t,filterKeys:[n,i,a],stackTotalBarKey:r,barAxisKey:o,barOobMaxKey:i,barOobMinKey:a,groupProp:s,stackProp:l});d&&(p=p.filter(d));const m=Uq.calculateTotalBounds({opts:t,labels:e,bars:p,barKey:n,barAxisKey:o,groupProp:s,majorScale:c,majorInnerScale:u}),h=Uq.findStackTotalBarsFromLabels({labels:e,opts:t,stackTotalBarKey:r}),g={key:n,bounds:m,childrenNodes:f,data:f.map((e=>e.data)),stackTotalBarNodes:h};return[g]}return[]}return[]},filterNodesForOob:(e,t,n)=>e.key===t&&0===e.children.length||e.key===n,filterNodes({nodes:e,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:o,groupAxisKey:i,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:c,majorScale:u,majorInnerScale:d}){let p=Uq.filterNodesOnKeys(e,[o,i]),f=p&&p.length?[p[0]]:[];const m=Uq.filterNodesOnLabels({labels:f,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:o,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:c,majorScale:u,majorInnerScale:d});if(m&&m.length)return m;const{meta:h}=t.layoutService;if(h.isStackedByMeasure){p=Uq.filterNodesOnKeys(e,[a,s]),f=p&&p.length?[p[0]]:[];const i=e=>Uq.filterNodesForOob(e,n,a),m=Uq.filterNodesOnLabels({labels:p,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:o,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:c,majorScale:u,majorInnerScale:d,filterFn:i});if(m&&m.length)return m[0].stackTotalBarNodes=void 0,m}if(h.isStackedByDimension){p=Uq.filterNodesOnKeys(e,[a,s]),f=p&&p.length?[p[0]]:[];const i=e=>Uq.filterNodesForOob(e,n,a),m=Uq.filterNodesOnLabels({labels:p,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:o,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:c,majorScale:u,majorInnerScale:d,filterFn:i});if(m&&m.length)return m[0].stackTotalBarNodes=void 0,m}const g=Uq.filterNodesOnKeys(e,[n,a,s]);return g.length?[g[0]]:[]}};function Kq(e,t={},n){let r=[];const o=Ie({key:OT.COMPONENT.BASE_TOOLTIP,rtl:n});return de(!0,o,{scale:OT.SCALE.MAIN.COLOR,settings:{filter:e=>Uq.filterNodes({nodes:e,opts:t,barKey:OT.COMPONENT.BAR,stackTotalBarKey:OT.COMPONENT.STACK_TOTAL_BAR,barAxisKey:OT.COMPONENT.BAR_AXIS,groupAxisKey:OT.COMPONENT.GROUP_AXIS,barOobMaxKey:OT.COMPONENT.BAR_OOB_MAX,barOobMinKey:OT.COMPONENT.BAR_OOB_MIN,groupProp:"group",stackProp:"stack",majorScale:"major",majorInnerScale:"majorInner"}),extract:e=>(r=e.node.childrenNodes?e.node.childrenNodes:[e.node],Uq.extractData(e,t,n)),placement:"bounds",afterShow:()=>{var e;const{app:o,properties:i,customTooltipModel:a}=t;o&&(null===(e=o.isInModalSelection)||void 0===e||!e.call(o))&&a.useCustomTooltip&&a.embed&&Yw.show({app:o,properties:i,selectedNodes:r,customTooltipModel:a,rtl:n})}},style:{content:{fontFamily:t.themeService.getStyles().fontFamily}}})}const Gq={extractData:(e,t)=>[Be.getTitleRow({title:e.node.data.label},t)],filterNodes(e,t){const n=e.filter((e=>e.data&&e.key===t));return n.length?[n[0]]:[]}};function Yq(e,t={},n){if("categorical"!==t.colorService.getMain().getSettings().type)return!1;const r=Ie({key:OT.COMPONENT.LEGEND_CAT_TOOLTIP,rtl:n});return de(!0,r,{scale:OT.SCALE.MAIN.COLOR,settings:{filter:e=>Gq.filterNodes(e,OT.COMPONENT.LEGEND_COLOR_CAT),extract:e=>Gq.extractData(e,n),placement:"pointer",direction:n?"rtl":"ltr"},style:{content:{fontFamily:t.themeService.getStyles().fontFamily}}})}function Xq(e,{fill:t}){return{[OT.FORMATTER.MINOR]:{data:{fields:e.viewModel.fields.minor}},[OT.FORMATTER.COLOR]:t&&t.data&&t.data.field?{data:{field:t.data.field}}:{}}}const Jq=1,Zq=3;function Qq(e){return e.getLayoutValue("gridLine.auto")}function eE(e){return!Qq(e)&&e.getLayoutValue("gridLine.spacing")===Jq}function tE(e){return!Qq(e)&&e.getLayoutValue("gridLine.spacing")===Zq}const nE=e=>({enabled:e.animations.enabled,trackBy:ja.lines.trackBy,compensateForLayoutChanges:ja.lines.compensateForLayoutChanges}),rE=(e,{themeService:t,layoutService:n,dockService:r,viewModel:o})=>{if(!Qq(n)&&function(e){return!e.getLayoutValue("gridLine.spacing")}(n))return!1;const{grid:i}=t.getStyles(),a={key:"grid-line",type:"grid-line",layout:{minimumLayoutMode:hq.measureAxis.minimumLayoutMode},preferredSize:()=>({size:0,edgeBleed:{left:1,right:1,top:1,bottom:1}}),ticks:{show:!eE(n)||((e,t)=>t%2==0),stroke:i.line.major.color},minorTicks:{show:tE(n),stroke:i.line.minor.color},animations:nE(o)};return a["horizontal"===r.meta.major.orientation?"y":"x"]=OT.SCALE.MAIN.MINOR,a};function oE(e,t){const n=[rE(0,t)];return n[0]&&n.push((({dockService:e,themeService:t,viewCache:n,viewModel:r})=>{const o=n.get("minorMinMax");if(o.min>0||o.max<0)return!1;const i=t.getStyles(),a={};return a["horizontal"===e.meta.minor.orientation?"x":"y"]=[{value:0,scale:OT.SCALE.MAIN.MINOR,line:{stroke:i.grid.line.highContrast.color}}],{key:"high-contrast-grid-line",type:"ref-line",scale:OT.SCALE.MAIN.MINOR,lines:a,animations:nE(r)}})(t)),n}const iE="areaPan",aE=e=>({type:"Pan",key:"panorama",options:{event:iE,pointers:1,threshold:10,enable(t,n){return this.started===iE||!n||!!e.actions.scroll.enabled()&&e.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>e.key===OT.COMPONENT.BAR))}},events:{areaPanstart(t){t.preventDefault(),this.started=iE;const n=e.viewState.get("zoom");this[iE]={min:n.min,max:n.max,size:e.chart.component(OT.COMPONENT.BAR).rect.computedInner.width,span:n.max-n.min}},areaPanmove(t){t.preventDefault();const{span:n,min:r,max:o,size:i}=this[iE],a=-t.deltaX/i;e.viewState.set("zoom",{min:Math.min(r+a*n,e.viewCache.get("continuousMax")-n),max:Math.max(o+a*n,e.viewCache.get("continuousMin")+n)})},areaPanend(e){e.preventDefault(),this.started=!1},areaPancancel(e){e.preventDefault(),this.started=!1}}});function sE(e,t){if(e.layoutService.meta.isDiscrete)return{};const{viewCache:n,viewState:r,chart:o}=e,{rtl:i}=t,a=Qh.event.onZoom({viewCache:n,viewState:r,chart:o},{threshold:100,rtl:i,targetKey:OT.COMPONENT.BAR}),s={last:0};return{type:"Pinch",key:"continuous-pinch-zoom",options:{event:"zoom",pointers:2,threshold:0,enable:(t,n)=>!n||!!e.actions.scroll.enabled()&&e.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>e.key===OT.COMPONENT.BAR))},events:{zoomstart(e){s.last=e.scale,e.preventDefault()},zoommove(e){const t=e.scale-s.last;(function(e){return Math.abs(e)>.01})(t)&&a(e.center,t>0?1:-1),e.preventDefault(),s.last=e.scale}}}}function lE({chart:e},t,n){const r=e.component(OT.COMPONENT.BASE_TOOLTIP);var o;r&&r.show&&(r.emit("hide"),null!=n&&null!==(o=n.customTooltipModel)&&void 0!==o&&o.useCustomTooltip&&t&&t({},r,{nodes:[],opts:n,customTooltipModel:n.customTooltipModel,hide:!0}));const i=e.component(OT.COMPONENT.LEGEND_CAT_TOOLTIP);i&&i.show&&i.emit("hide");const a=e.component(OT.COMPONENT.TREND_LINES_TOOLTIP);a&&a.show&&a.emit("hide")}function cE(e,t){const{viewCache:n,viewState:r,chart:o,trendLineModel:i,layoutService:a}=e,{rtl:s}=t,l=e.layoutService.meta.isContinuous?Qh.event.onZoom({viewCache:n,viewState:r,chart:o},{rtl:s,threshold:50,targetKey:OT.COMPONENT.BAR}):void 0,c=xT({majorInnerScale:OT.SCALE.MAIN.MAJOR_INNER,tooltip:OT.COMPONENT.TREND_LINES_TOOLTIP,tooltipOverlay:OT.COMPONENT.TREND_LINES_TOOLTIP_OVERLAY},{chart:o,viewState:r,trendLineModel:i,layoutService:a,rtl:s}),u=[OT.COMPONENT.BAR,OT.COMPONENT.BAR_AXIS,OT.COMPONENT.GROUP_AXIS,OT.COMPONENT.BAR_OOB_MAX,OT.COMPONENT.BAR_OOB_MIN],d=e.customTooltipModel.utils,p=e.debouncer(d.displayTooltip,d.DEBOUNCE_THRESHOLD);return{type:"native",events:{wheel(t){let n,r=!1;if(e.actions.scroll.enabled()){const o={x:t.clientX,y:t.clientY};[n]=e.chart.componentsFromPoint(o).filter((e=>e.key===OT.COMPONENT.BAR)),n&&(e.layoutService.meta.isContinuous&&l(o,Math.sign(-t.deltaY)),r=!0)}!r&&e.actions.interact.enabled()&&([n]=e.chart.componentsFromPoint(t).filter((e=>e.key===OT.COMPONENT.LEGEND_COLOR_CAT)),n&&(r=!0,function(e,t){const n=(Math.abs(e.deltaX)>Math.abs(e.deltaY)?e.deltaX:e.deltaY)>=0?"next":"prev";t.emit(n)}(t,n))),r&&t.preventDefault(),lE(e,p,e)},mousemove(t){if(e.actions.tooltip.enabled()){if(c(t))return;const n=this.chart.componentsFromPoint({x:t.clientX,y:t.clientY}),r=this.chart.component(OT.COMPONENT.BASE_TOOLTIP);if(r&&r.show)if(n.some((e=>u.indexOf(e.key)>-1))){const{customTooltipModel:n}=e;if(n.useCustomTooltip&&d.checkIfPromisesExist({customTooltipModel:n})){const o=d.getNodes(t,this.chart);p(t,r,{nodes:o,opts:e,customTooltipModel:n})}else r.emit("show",t)}else r.emit("hide");const o=this.chart.component(OT.COMPONENT.LEGEND_CAT_TOOLTIP);o&&o.show&&(n.some((e=>e.key===OT.COMPONENT.LEGEND_COLOR_CAT))?o.emit("show",t):o.emit("hide"))}},mouseup(t){2===t.button&&lE(this,p,e)},mouseleave(){lE(this,p,e)}}}}const uE=(e,t)=>({type:"hammer",enable:!0,gestures:[...(t.hammer||{}).gestures||[],...vg({...e,componentKey:"scrollbar",rtl:t.rtl}).gestures,...e.layoutService.meta.isDiscrete?e.discrete.interactions.gestures:[aE(e),sE(e,t)]]});function dE(e,t){const n=[uE(e,t),cE(e,t),vg({...e,componentKey:"scrollbar",rtl:t.rtl}).native];return e.layoutService.meta.isDiscrete&&n.push(e.discrete.interactions.native),n}const pE=e=>({enabled:e.animations.enabled,compensateForLayoutChanges:ja.bars.compensateForLayoutChanges});const fE=(e,t,{collectionKey:n})=>{if(!ig({layoutService:t.layoutService}).miniChart)return!1;if(t.reducedDataModel.mode.isContinuous)return function(e,{reducedDataModel:t,colorService:n,continuousDataModel:r,viewModel:o},{collectionKey:i}){return{type:"box",key:"mini-marker",layout:{dock:"@scrollbar"},show:()=>r.getDimensionCardinality()>1,data:{collection:i},settings:{box:de(!0,{},e.settings.box,{minWidthPx:2,fill:n.getMini().getColor(),strokeWidth:0}),major:de(!0,{},e.settings.major,{scale:t.scales.major}),minor:e.settings.minor,orientation:e.settings.orientation,oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},animations:pE(o)}}(e,t,{collectionKey:n});const{mode:r,scales:o}=t.reducedDataModel;let i;return r.isGroupedByDimension&&!r.isReduced?i=({scale:e,datum:t})=>e([t.group.value,t.value])+e.bandwidth([t.group.value,t.value])/2:r.isGroupedByMeasure&&(i=({scale:e,datum:t})=>e([t.value,t.measureIndex.value])+e.bandwidth()/2),{type:"box",key:"mini-marker",layout:{dock:"@scrollbar"},show:()=>t.discrete.query.getCanScroll(),data:{collection:n},settings:{box:{...e.settings.box,fill:r.isReduced||r.isStackedByDimension?t.colorService.getMain().getSettings().others:t.colorService.getMain().getColor(),strokeWidth:0},major:{scale:o.major,fn:i},minor:{scale:o.minor},orientation:e.settings.orientation,oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},animations:pE(t.viewModel)}},{measureText:mE}=t.renderer("svg")();function hE(e,t,n){const r=function(e){const t=de(!0,{},e);return delete t.data,t}(t.minor),o=function(e,t,{majorScaleInvert:n,maxPxStep:r,align:o,getProp:i}){let a={invert:n,data:{extract:e.mode.isDimensionless?e.fields.minor.map(((e,t)=>({field:e,value:t}))):{source:"miniCube",field:"qDimensionInfo/0"}},type:e.mode.isDimensionless?"band":void 0,maxPxStep:r,align:o};return e.mode.isStackedByDimension?a.data.extract.field="qDimensionInfo/1":e.mode.isGroupedByDimension?e.mode.isReduced||(a.data={source:"miniCube",hierarchy:{value:e=>e.qElemNumber}}):e.mode.isGroupedByMeasure?(a=de(!0,{},t),a.data.extract.source="miniCube"):e.mode.isContinuous&&(a=de(!0,{},t,{min:()=>i("continuousMin"),max:()=>i("continuousMax")})),a}(e,t.major,n);return{reducedMinor:r,reducedMajor:o}}const gE=50,yE=100,vE=200;function bE(e,t){const n=function(e){const t=e.getLayoutValue("measureAxis.spacing",1);switch(t){case.5:return gE;case 1:return yE;case 2:return vE;default:return 125*t}}(t);return Math.max(1,Math.round(e/n))}function xE(e,t,n){return 0===t||t===Math.floor((n.length-1)/2)||t===n.length-1}function SE(e,t,n){return 0===t||0===e||t===n.length-1}function ME(e){for(let t=1;t<e.length;t++)if(e[t]===e[t-1])return!0;return!1}function CE(e,t,n,r,o){e.domain([t,n]),e.nice(10);const[i,a]=e.domain();let s=e.ticks(10);const l=function(e){return e.length%2==0}(s),c=function(e){const t=Math.round(.3*e.length),n=t,r=e.length-t;return e.slice(n,r).some((e=>0===e))}(s),u=c?SE:xE;s=s.filter(u),l&&!c&&!r&&s.length>1&&(s=[s[0],(s[0]+s[s.length-1])/2,s[s.length-1]]);const d=o?o.formatter(OT.FORMATTER.MINOR):void 0;return ME(d?s.map(d):s)&&(s=[s[0],s[s.length-1]]),{roundedMin:i,roundedMax:a,ticks:s}}function wE(e,t,n,r,o,i,a,s){const l=i.formatter(OT.FORMATTER.MINOR),c=s.getStyles(),u="horizontal"===a.meta.major.orientation?"height":"width",d=e=>mE({text:e,fontSize:c.axis.label.name.fontSize,fontFamily:c.axis.label.name.fontFamily})[u];let[p,f]=e.domain(),m=e.ticks(r);function h(){const e=m.map(l);return!ME(e)&&function(e){const t=o/m.length;return Math.max(...e.map(d))<=t}(e)}for(let o=r-1;o>0&&!h();o--)e.domain([t,n]),e.nice(o),[p,f]=e.domain(),m=e.ticks(o);return{roundedMin:p,roundedMax:f,ticks:m}}const kE=(e,t)=>e.value-t.value,TE=e=>({value:e,isMinor:!1}),qE=e=>({value:e,isMinor:!0});function EE(e,t,n){const r=Number.isNaN(t)&&Number.isNaN(n)?3:2;return e.filter((e=>(e=>Number.isNaN(t)||e>=t)(e)&&(e=>Number.isNaN(n)||e<=n)(e))).length<=r}function LE({chart:e,viewCache:t,dockService:n,layoutService:r,themeService:o,viewModel:i,ds:a}){const{isButterfly:s}=r.meta,{explicitMin:l,explicitMax:c,hasExplicitMin:d,hasExplicitMax:p}=t.get("minorMinMax"),{min:f,max:m}=function(e){let{min:t,max:n}=e.get("minorMinMax");return t===n&&0===t&&(t-=1,n+=1),{min:t,max:n}}(t),h=s?Math.max(Math.abs(f),Math.abs(m)):m,g=s?-h:f,y=u((()=>{const s=function(e,t,n){let r;return e?r=n.meta.chart.size:({rect:r}=t.component(OT.COMPONENT.BAR)),"horizontal"===n.meta.major.orientation?r.height:r.width}(t.get("isPreRender"),e,n),u=bE(s,r),f=function(e,t,n){const r=xr().domain([e,t]);return r.nice(n),r}(g,h,u);let m,y,v=[];"SPARK"===n.meta.chart.mode?({roundedMin:m,roundedMax:y}=function(e,t){return{roundedMin:e,roundedMax:t}}(g,h)):(({roundedMin:m,roundedMax:y,ticks:v}=wE(f,g,h,u,s,e,n,o)),EE(v,l,c)&&({roundedMin:m,roundedMax:y,ticks:v}=CE(f,g,h,d||p,e)));const b=function(e,t){const n=[];for(let r=0;r<e.length-1;r++){const o=e[r],i=(e[r+1]-o)/(t+1);for(let e=1;e<=t;e++)n.push(o+i*e)}return n}(v,1);v=function(e,t,n){return e&&n.length&&!n.some((e=>e===t))?(n.unshift(t),n.filter((e=>e>=t))):n}(d,l,v),v=function(e,t,n){return e&&n.length&&!n.some((e=>e===t))?(n.push(t),n.filter((e=>e<=t))):n}(p,c,v);let x=function(e,t){return[...e.map(TE),...t.map(qE)].sort(kE)}(v,b);if(r.meta.isButterfly){const e=i.fields.minor[0],t=void 0===e?void 0:a.field(e).formatter();"function"==typeof t&&(x=x.map((e=>({...e,label:t(Math.abs(e.value))}))))}return{roundedMin:m,roundedMax:y,ticks:x}}),(()=>t.get("isPreRender")));return{values:()=>y().ticks,min:()=>d?l:y().roundedMin,max:()=>p?c:y().roundedMax}}function NE(e,{picasso:t,discrete:n,layoutService:r,dockService:o,viewModel:i,viewCache:a,reducedDataModel:s,colorService:l,themeService:c,viewState:u,chart:d,ds:p},{localeInfo:f,rtl:m}){const{meta:h}=r,{fields:g}=i,y=()=>{if("custom"!==r.getLayoutValue("dimensionAxis.axisDisplayMode"))return Math.min(200,o.meta.chart.size["horizontal"===o.meta.major.orientation?"height":"width"]/4)},v=!("none"===r.getLayoutValue("measureAxis.show"))?(b=o.meta.minor.orientation,x=o.meta.minor.dock,"vertical"===b?"near"===x||"left"===x?0:1:"near"===x||"bottom"===x?1:0):.5;var b,x;const S={},M="vertical"===o.meta.minor.orientation&&m,C=l.getMain().getScales(),w=l.getMini().getScales();if(Object.assign(S,C,{reducedFill:w.reducedFill}),S[OT.SCALE.MAIN.MINOR]=function({chart:e,viewModel:{fields:t},dockService:n,viewCache:r,viewModel:o,layoutService:i,themeService:a,ds:s},{rtl:l}){const c=LE({chart:e,dockService:n,viewCache:r,layoutService:i,themeService:a,viewModel:o,ds:s}),u={invert:"vertical"===n.meta.minor.orientation||l,ticks:{values:c.values},minorTicks:{count:1},min:c.min,max:c.max};return i.meta.isStacked||(u.data={source:"qHyperCube",fields:t.minor}),u}({chart:d,viewModel:i,dockService:o,viewCache:a,layoutService:r,themeService:c,ds:p},{rtl:m}),h.isGroupedByDimension)[OT.SCALE.MAIN.MAJOR_INNER,OT.SCALE.MAIN.MAJOR].forEach(((e,t)=>{S[e]={invert:M,data:{source:"qHyperCube",hierarchy:{label:e=>e.qText?e.qText:"",value:e=>e.qElemNumber,props:{...i.selectionDimensionProp(t),group:h.isGroupedByDimension?{field:g.majorGroup}:void 0}}},label:({datum:e})=>e.label,ticks:{depth:t+1},maxPxStep:y,align:v}})),i.isDimensionLocked(0)||(S[OT.SCALE.MAIN.MAJOR_INNER].data.hierarchy.props.axisSelectionDimension={field:0});else if(h.isGroupedByMeasure)S[OT.SCALE.MAIN.MAJOR]={type:"group-by-measure",invert:M,data:{extract:{source:"qHyperCube",field:"qDimensionInfo/0",props:{axisSelectionDimension:{field:0}}}},measureCount:e.qHyperCube.qMeasureInfo.length,maxPxStep:y,align:v};else if(h.isTime){const{innerTime:e,outerTime:n}=function(e,t){const{layoutService:n,viewModel:r,viewCache:o,picasso:i,viewState:a,localeInfo:s,themeService:l}=e,c=()=>n.getHyperCubeValue("qAxisData.qAxis",[]),u=i.formatter("q-time"),d=l.getStyles(),p=e=>mE({text:e,fontSize:d.axis.label.name.fontSize,fontFamily:d.axis.label.name.fontFamily});o.set("qTimeAxisCache",[]);const f={get:(e,t=0)=>{const n=o.get("qTimeAxisCache");return n[t]&&n[t][0]===e?n[t][1]:void 0},set:(e,t,n=0)=>{o.get("qTimeAxisCache")[n]=[e,t]},key:({distance:e})=>{const{min:t,max:n}=a.get("zoom"),r=(n-t)/(o.get("continuousMax")-o.get("continuousMin")),i=c().map((e=>e.qName));return[e,Number.parseFloat(r).toFixed(12),...i].toString()}};return{innerTime:{data:{field:r.fields.majorNumeric},type:"q-time-axis",qAxis:c,field:r.fields.majorNumeric,min:()=>a.get("zoom").min,max:()=>a.get("zoom").max,invert:!!t,formatter:{fn:u,localeInfo:s,qNumFormat:n.getHyperCubeValue("qDimensionInfo.0",{}).qNumFormat,measureText:p},ticks:{generator:{type:"d3",initialMin:a.get("zoom").min},level:"inner",anchor:"start",clamp:!0},cache:f},outerTime:{data:{field:r.fields.majorNumeric},type:"q-time-axis",qAxis:c,field:r.fields.majorNumeric,min:()=>a.get("zoom").min,max:()=>a.get("zoom").max,invert:!!t,formatter:{fn:u,localeInfo:s,qNumFormat:n.getHyperCubeValue("qDimensionInfo.0",{}).qNumFormat,measureText:p},ticks:{generator:{type:"d3"},level:"outer",anchor:"start",clamp:!0},cache:f}}}({picasso:t,localeInfo:f,viewState:u,viewModel:i,viewCache:a,themeService:c,layoutService:r},m);S[OT.SCALE.MAIN.MAJOR_INNER]=e,S[OT.SCALE.MAIN.MAJOR]=n}else h.isContinuous?S[OT.SCALE.MAIN.MAJOR]={type:"linear",invert:M,data:{extract:{key:"qHyperCube",field:g.majorNumeric}},ticks:{forceBounds:!0,count:u.get("zoom").min===u.get("zoom").max?1:void 0},minorTicks:{count:1},min:()=>u.get("zoom").min,max:()=>u.get("zoom").max}:S[OT.SCALE.MAIN.MAJOR]={invert:M,data:{extract:h.isDimensionless?g.minor.map(((t,n)=>({field:t,label:()=>e.qHyperCube.qMeasureInfo[n].qFallbackTitle,value:n}))):{source:"qHyperCube",field:"qDimensionInfo/0",props:{axisSelectionDimension:{field:0}}}},type:h.isDimensionless?"band":void 0,maxPxStep:y,align:v};const{reducedMinor:k,reducedMajor:T}=hE(s,{major:S[OT.SCALE.MAIN.MAJOR],minor:S[OT.SCALE.MAIN.MINOR]},{majorScaleInvert:M,maxPxStep:y,align:v,getProp:a.get});return h.isDiscrete&&(S[OT.SCALE.MAIN.MAJOR].range=n.query.getScaleRange,h.isGroupedByDimension&&(S[OT.SCALE.MAIN.MAJOR_INNER].range=n.query.getScaleRange)),S[s.scales.major]=T,S[s.scales.minor]=k,S}function OE(e,t,n){const{layoutService:r,colorService:o}=e;return function(e,t){if(!e.targets)throw new Error("Missing 'targets' property");return{interactions:[dq(e,t)],components:[]}}({targets:[r.meta.isStackedByDimension&&r.getHyperCubeValue("qStackedDataPages.0.qArea.qHeight",NaN)>1?OT.COMPONENT.STACK_TOTAL_BAR:OT.COMPONENT.BAR,OT.COMPONENT.BAR_AXIS,OT.COMPONENT.GROUP_AXIS,"outer-axis-overlay","inner-axis-overlay",OT.COMPONENT.LEGEND_COLOR_CAT],components(e,t){const r={action:e.srcEvent.ctrlKey||n?"set":"toggle",contexts:["selection"],key:t[0].key};return OT.COMPONENT.BAR===t[0].key?[{...r,data:["selectionDimension"]}]:[OT.COMPONENT.BAR_AXIS,OT.COMPONENT.GROUP_AXIS].includes(t[0].key)?[{...r,data:["selectionDimension","axisSelectionDimension"]}]:[r]}},{...e,isLocked:n=>n.some((e=>e.key===OT.COMPONENT.LEGEND_COLOR_CAT))?o.getMain().isSelectionLocked({isMeasureSelectionLocked:t}):e.isLocked(n)})}function DE(e){const t=e.layoutService.meta.isStackedByDimension&&e.layoutService.getHyperCubeValue("qStackedDataPages.0.qArea.qHeight",NaN)>1;return function(e,t){if(!e.componentTargetKey)throw new Error("Missing 'componentTargetKey' property");const n={key:"lasso",...e},r=(({key:e,components:t})=>({key:e,type:"brush-lasso",layout:{displayOrder:99},settings:{brush:{components:t},lasso:{fill:"rgba(0, 0, 0, 0)",stroke:"black",strokeWidth:2,opacity:.7,strokeDasharray:[]},snapIndicator:{threshold:75,strokeDasharray:"5, 5",stroke:"black",strokeWidth:2,opacity:.7},startPoint:{r:10,stroke:"rgba(77, 192, 78, 1)",strokeWidth:0,opacity:1}}}))(n);return{interactions:[uq(n,t)],components:[r]}}({key:"lasso",componentTargetKey:OT.COMPONENT.BAR,components:[t?{key:OT.COMPONENT.STACK_TOTAL_BAR,contexts:["selection"],action:"add"}:{key:OT.COMPONENT.BAR,contexts:["selection"],action:"add",data:["selectionDimension"]}]},e)}function AE(e){return function(e,t){const n=function(e){const{key:t,targets:n,components:r,fillTargets:o,dock:i}=e;return{key:t,type:"brush-area-dir",layout:{dock:n.map((e=>`@${e}`)).join(",")},settings:{multiple:!0,brush:{components:r},direction:"left"===i||"right"===i?"vertical":"horizontal",bubbles:{align:"left"===i||"top"===i?"end":"start",placement:"inside"},target:{components:o,fill:"rgba(82,204,82,0.2)"}}}}(e);return{interactions:[fq(e,t,"area")],components:[n]}}({eventName:"discreteRange",components:[{key:OT.COMPONENT.BAR,contexts:["selection"],action:"set",data:["selectionDimension"]}],key:"discreteRangeBrush",targets:["group-axis",OT.COMPONENT.BAR_AXIS,OT.COMPONENT.BAR],fillTargets:["group-axis",OT.COMPONENT.BAR_AXIS],dock:e.dockService.meta.major.dock},e)}function RE(e,t,n){const{selectionService:r}=e,{isUnsupportedFeature:o}=t,i=void 0===n,a=r.getIsSingleSelect(n),s=OE(e,i,a);if(i||a)return{components:[...s.components],gestures:[...s.interactions]};const l=DE(e),c=function(e,t){return e.layoutService.meta.isStacked||e.layoutService.meta.isButterfly||null!=t&&t("rangeSelections")?{components:[],interactions:[]}:mq({eventName:"measureRange",key:"measureRangeBrush",targets:["y-axis",OT.COMPONENT.BAR],fillTargets:["y-axis"],dock:e.dockService.meta.minor.dock,scale:OT.SCALE.MAIN.MINOR,onEdited(){e.actions.select.emit("end","measureRange")}},e)}(e,o),u=function(e){return e.layoutService.meta.isContinuous?mq({eventName:"continuousRange",key:"continuousRangeBrush",targets:e.layoutService.meta.isTime?["outer-time-axis","inner-time-axis",OT.COMPONENT.BAR]:["continuous-axis",OT.COMPONENT.BAR],fillTargets:e.layoutService.meta.isTime?["outer-time-axis","inner-time-axis"]:["continuous-axis"],observeBrush:!0,multiple:!0,dock:e.dockService.meta.major.dock,scale:e.layoutService.meta.isTime?OT.SCALE.MAIN.MAJOR_INNER:OT.SCALE.MAIN.MAJOR,toLabel({datum:t,data:n,scale:r}){const o=e.layoutService.meta.isTime?r.formatter():e.chart.formatter(OT.FORMATTER.MINOR),i=e.chart&&e.chart.brushSelectionIncludeMax;return`${t!==Math.max(...n)||i?"":"<"}${o(t)}`}},e):{components:[],interactions:[]}}(e),d=AE(e);return{components:[...s.components,...l.components,...c.components,...d.components,...u.components],gestures:[...l.interactions,...s.interactions,...c.interactions,...d.interactions,...u.interactions]}}const{isNumber:IE}=Yi;function PE({layoutService:e,viewModel:t,dockService:n}){var r;const{meta:o}=e;if(!o.isStackedByDimension||o.isContinuous)return!1;const{fields:i}=t,a=e.getLayoutValue("components",null),s=a?a.filter((e=>"bar"===e.key))[0]:null;return{key:"shadow-bar",type:"box",data:{extract:[{field:i.majorStack,filter:e=>0!==e.qDown||0!==e.qUp,props:{start:{value:e=>{return t=e.qSubNodes,Number(t.filter((e=>IE(e.qMaxPos))).map((e=>e.qMaxPos)).reduce(((e,t)=>e+t),0).toFixed(13));var t}},end:{value:e=>IE(e.qMaxPos)?Number(e.qMaxPos.toFixed(13)):0}}},{field:i.majorStack,filter:e=>0!==e.qDown||0!==e.qUp,props:{start:{value:e=>{return t=e.qSubNodes,Number(t.filter((e=>IE(e.qMinNeg))).map((e=>e.qMinNeg)).reduce(((e,t)=>e+t),0).toFixed(13));var t}},end:{value:e=>IE(e.qMinNeg)?Number(e.qMinNeg.toFixed(13)):0}}}]},settings:{major:{scale:OT.SCALE.MAIN.MAJOR},minor:{scale:OT.SCALE.MAIN.MINOR},orientation:n.meta.minor.orientation,box:{width:null!=s&&null!==(r=s.style)&&void 0!==r&&r.width&&s.style.width>0?s.style.width:.7,fill:()=>({type:"pattern",fill:"rgba(165, 165, 165, 0.8)",width:4,height:4,shapes:[{type:"rect",x:0,y:3,width:1,height:1},{type:"rect",x:1,y:2,width:1,height:1},{type:"rect",x:2,y:1,width:1,height:1},{type:"rect",x:3,y:0,width:1,height:1}]})},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},animations:{enabled:t.animations.enabled,trackBy:ja.shadowBars.trackBy,compensateForLayoutChanges:ja.bars.compensateForLayoutChanges}}}const zE={min:"Min",max:"Max"};function jE(e,t,n){const r=n?e.implicitMax:e.implicitMin;return!function(e,t,n){return void 0===n?Eq(e,t)||Lq(e,t):n===Nq?Eq(e,t):Lq(e,t)}(Number(r.toFixed(13)),e,t)}function FE(e,{barComponent:t,type:n,isStacked:r}){var o,i,a;const{viewCache:s,layoutService:l,dockService:c}=e,u=s.get("minorMinMax"),d=n===Nq;if(function(e,t){return!e[`hasOther${zE[t]}`]}(u,n)){if(function(e,t){return!e[`hasExplicit${zE[t]}`]}(u,n))return!1;if(jE(u,n,d))return!1}if(function(e,t,n){const r=n?e=>e<0:e=>e>0;return e[`hasExplicit${zE[t]}`]&&r(e[`explicit${zE[t]}`])}(u,n,d))return!1;let p="end";r&&(p=d?"sumOfPositives":"sumOfNegatives");const f=function(e){let t;return()=>(void 0===t&&(t=e()),t)}((()=>e.chart.scale(OT.SCALE.MAIN.MINOR)[n]())),m=d?e=>e.datum[p].value>f():e=>e.datum[p].value<f(),h=OT.COMPONENT.BAR,g=e.layoutService.getLayoutValue("components",[]),y=g?g.filter((e=>e.key===h))[0]:null;return{type:"box-sliced-hat",key:`sliced-hat-${n}`,layout:{dock:d?c.meta.minor.end:c.meta.minor.start},data:t.data,brush:t.brush,settings:{orientation:t.settings.orientation,major:t.settings.major,minor:t.settings.minor,hat:de({},t.settings.box,{fill:l.meta.isStacked?"#999":t.settings.box.fill,alignment:1,opacity:1,show:m,width:Cq({layoutService:e.layoutService,discrete:e.discrete}),strokeWidth:null!=y&&null!==(o=y.style)&&void 0!==o&&o.strokeWidth?Mq.BAR.STROKE.WIDTH[y.style.strokeWidth.toUpperCase()]:Mq.BAR.STROKE.WIDTH.NONE,stroke:null!==(i=null==y||null===(a=y.style)||void 0===a||null===(a=a.strokeColor)||void 0===a?void 0:a.color)&&void 0!==i?i:Mq.BAR.STROKE.COLOR})}}}function BE(e,{collectionKey:t},n){const{meta:r}=e.layoutService,{fields:o}=e.viewModel,i=r.isStackedByDimension&&!r.isContinuous?"qValue":"qNum";function a(t,n){const o=e.ds.field(t).raw(),a=e.ds.field(t).formatter(),s=Se.shouldUseFormat(o),l=r.isButterfly&&n>0;return{field:t,reduceLabel:"none",value:e=>"NaN"===e[i]?0:(e=>l&&0!==e?-e:e)(e[i]),label:e=>s?(e=>"NaN"===e[i]?"-":a(e[i]))(e):e.qText}}function s(e){if(!r.isButterfly)return;return{field:e,reduceLabel:"none",value:e=>e[i]<0}}const l=r.isStackedByDimension?e=>"NaN"===e.qValue:e=>!!e.qIsNull;const c={key:t,data:{extract:o.minor.map(((t,i)=>{const c=e.colorService.getMain().getDatumProps(i),u=e.colorService.getMini().getDatumProps(i),d=c[Object.keys(c)[0]],p=null==d?void 0:d.field,f=p?{field:p,reduceLabel:"none",value:e=>void 0!==e.qNum&&"NaN"!==e.qNum?e.qNum:e.qText||"-"}:void 0,m={field:r.isDimensionless?t:o.major,props:{...e.viewModel.selectionDimensionProp(),axisSelectionDimension:{field:0},start:0,end:a(t,i),negative:s(t),null:(h=t,{field:h,reduceLabel:"none",reduce:"first",value:l}),segment:r.isStacked?a(t):void 0,group:r.isGroupedByDimension?{field:o.majorGroup}:void 0,stack:r.isStacked?{field:o.majorStack}:void 0,measureIndex:r.isGroupedByDimension||r.isStackedByDimension?void 0:i,timeStart:r.isContinuous?{field:o.majorNumeric}:void 0,timeEnd:r.isContinuous?{field:o.majorNumeric}:void 0,fillTooltip:f,...c,...u,id:{value:e=>`r${e.qRow}e${e.qElemNumber}m${i}`},customTooltipAttrExps:0!==r.dimensionCount?tk.getNode(e.layoutService.getLayout(),r):void 0}};var h;return r.isDimensionless&&(m.value=i),void 0!==n&&(m.source=n),Se.deleteUndefinedProperties(m.props),m})),filter:r.isButterfly?e=>!e.negative.value:void 0}};return r.isStacked&&(c.data.stack={stackKey:e=>e.stack.value,value:e=>e.end.value,offset:"diverging"}),c}const{isNumber:_E}=Yi;function HE({layoutService:e,viewModel:t},{collectionKey:n}){const{meta:r}=e,{fields:o}=t;if(!r.isStacked)return!1;let i;return i=r.isStackedByMeasure?function(e,t){const n={field:0,props:{sumOfPositives:{fields:t.minor.map((e=>({field:e}))),value:e=>e.reduce(((e,t)=>t>0?e+t:e),0),reduceLabel:"none"},sumOfNegatives:{fields:t.minor.map((e=>({field:e}))),value:e=>e.reduce(((e,t)=>t<0?e+t:e),0),reduceLabel:"none"},null:{fields:t.minor.map((e=>({field:e}))),value:e=>Array.isArray(e)&&e.every((e=>"NaN"===e)),reduceLabel:"none"}}};if(e.isContinuous){const e={field:t.major,value:e=>e.qNum,reduceLabel:"none"};n.props.timeStart=e,n.props.timeEnd=e,n.value=e=>e.qNum}return n}(r,o):function(e,t){if(!e.isContinuous)return{field:t.majorStack,reduceLabel:"none",props:{sumOfPositives:{value:e=>_E(e.qMaxPos)?Number(e.qMaxPos.toFixed(13)):0},sumOfNegatives:{value:e=>_E(e.qMinNeg)?Number(e.qMinNeg.toFixed(13)):0},null:{value:e=>{const{qSubNodes:t=[]}=e;return t.every((e=>"NaN"===((e.qSubNodes||[])[0]||{}).qValue))}}}};const n={field:t.majors[0],value:e=>e.qNum,reduceLabel:"none"};return{field:t.majorStack,trackBy:e=>e.qNum,reduce:e=>e[0],props:{sumOfPositives:{field:t.minor[0],reduceLabel:"none",reduce:e=>e.reduce(((e,t)=>t>0?e+t:e),0)},sumOfNegatives:{field:t.minor[0],reduceLabel:"none",reduce:e=>e.reduce(((e,t)=>t<0?e+t:e),0)},timeStart:n,timeEnd:n}}}(r,o),{key:n,data:{extract:i}}}const $E="main-collection",VE="stack-total-collection";function WE(e,{collectionKey:t}){const{layoutService:n,colorService:r,reducedDataModel:{fields:o,mode:i}}=e,{meta:a}=n,s=a.isStackedByDimension&&!a.isContinuous?"qValue":"qNum";function l(e,t){if(!a.isButterfly)return{field:e};const n=t>0;return{field:e,value:e=>"NaN"===e[s]?0:(e=>n&&0!==e?-e:e)(e[s])}}function c(e){if(!a.isButterfly)return;return{field:e,reduceLabel:"none",value:e=>e[s]<0}}return{key:t,data:{extract:o.minor.map(((e,t)=>{const n=i.isReduced?{}:r.getMain().getDatumProps(t),a={start:0,end:l(e,t),negative:c(e),group:{field:o.majorGroup},measureIndex:t,...n},s={source:"miniCube",field:i.isDimensionless?e:o.major,props:a};return i.isDimensionless&&(s.value=t),s})),filter:a.isButterfly?e=>!e.negative.value:void 0}}}const UE="mini-collection",KE="mini-stack-collection",GE="mini-continuous-collection",YE="miniCube",XE=(e,t)=>{const n=(e=>{const t=[BE(e,{collectionKey:$E})];return e.layoutService.meta.isStacked&&t.push(HE(e,{collectionKey:VE})),t})(t),r=((e,t)=>{const n=[];return ig({layoutService:t.layoutService}).miniChart&&(t.reducedDataModel.mode.isContinuous?n.push(BE(t,{collectionKey:GE},YE)):t.layoutService.meta.isStacked?n.push(function(e,{collectionKey:t}){const{colorService:n,reducedDataModel:{fields:r,mode:o}}=e;return{key:t,data:{extract:r.minor.map(((e,t)=>{const i={end:{field:e,reduceLabel:"none"},...o.isStackedByMeasure&&!o.isReduced?n.getMain().getDatumProps(t):{}};return o.isContinuous&&(i.timeStart={field:r.major,value:e=>e.qNum},i.timeEnd=i.timeStart),{source:"miniCube",field:r.major,props:i}})),stack:{stackKey:e=>e.value,value:e=>e.end.value,offset:"diverging"}}}}(t,{collectionKey:KE})):n.push(WE(t,{collectionKey:UE}))),n})(0,t);return n.concat(r)};function JE(e,t,n,r){const o=[{position:e,onBackground:!0,justify:0,overflow:r}];if(t){const t={fill:"#e6e6e6",padding:{left:2,right:2,top:2,bottom:2}};o.push({position:"inside",onBackground:!1,justify:"outside"===e?1:0,background:n?t:void 0})}return o}function ZE({layout:e,component:t},n,r){if(!$q(e,n))return!1;const{layoutService:o,chart:i,dockService:a,viewModel:s,themeService:l,styleService:c}=n,{meta:u}=o,d=!Hq(e,n),p=l.getStyles(),f=c.label.getStyle(),m=f.useContrastColor;function h(e){const t=i.formatter(OT.FORMATTER.MINOR);return t?t(e):e}const g={label:function(e){return 0===e.data.sumOfPositives.value&&0!==e.data.sumOfNegatives.value?"":h(e.data.sumOfPositives.value)},simplifiedPlacements:JE("outside",d,m,u.isContinuous),style:p.label.value},y={label:function(e){return 0===e.data.sumOfNegatives.value&&0!==e.data.sumOfPositives.value?"":h(e.data.sumOfNegatives.value)},simplifiedPlacements:JE("opposite",d,m,u.isContinuous),style:p.label.value},v=[Fq(de(n,g)),Fq(de(n,y))];return{key:"stack-total-labels",type:"labels",renderer:Ya(n.flags),layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:t,selector:"rect",strategy:{type:"bar",settings:{direction:e=>_q(e.data.sumOfPositives.value,a.meta.minor.orientation,r),labels:v,fontSize:parseInt(f.fontSize,10),fontFamily:f.fontFamily,linkData:ja.labels.linkData}}}]},animations:{enabled:s.animations.enabled,trackBy:ja.labels.trackBy,compensateForLayoutChanges:ja.labels.compensateForLayoutChanges}}}function QE(e,t,n){const r=[{position:e,justify:0,overflow:n,background:{padding:{left:1,right:1,top:1,bottom:1}}}];return r.push({position:"inside",onBackground:!1,justify:1,background:{padding:{left:2,right:2,top:2,bottom:2}}}),r}function eL({layout:e,type:t},n){const{layoutService:r,viewCache:o,themeService:i,styleService:a}=n,{meta:s}=r,{isStacked:l}=s;if(!l&&!Hq(e,n)||l&&!$q(e,n))return!1;const c=o.get("minorMinMax");if(!c.hasExplicitMinMax||t===Nq&&0===c.max||t===Oq&&0===c.min)return!1;if(!Aq(t===Nq?c.implicitMax:c.implicitMin,c,t))return!1;const u=i.getStyles(),d=a.label.getStyle();let p=e=>e.data.end.label;s.isStacked&&(p=t===Nq?function(e){if(Aq(e.data.sumOfNegatives.value,c,t)){const t=0===e.data.sumOfNegatives.value?e.data.sumOfPositives.value:e.data.sumOfNegatives.value,r=n.chart.formatter(OT.FORMATTER.MINOR);return r?r(t):t}return""}:function(e){if(Aq(e.data.sumOfPositives.value,c,t)){const t=0===e.data.sumOfPositives.value?e.data.sumOfNegatives.value:e.data.sumOfPositives.value,r=n.chart.formatter(OT.FORMATTER.MINOR);return r?r(t):t}return""});const f={label:p,simplifiedPlacements:QE("outside",0,s.isContinuous),styles:u},m={label:p,simplifiedPlacements:QE("opposite",0,s.isContinuous),styles:u},h=[Fq(de(n,f)),Fq(de(n,m))],g="vertical"===n.dockService.meta.minor.orientation?"down":"right",y=[{component:`${OT.COMPONENT.GHOST_BAR_OOB}-${t}`,selector:"rect",strategy:{type:"bar",settings:{direction:g,labels:h,fontSize:parseInt(d.fontSize,10),fontFamily:d.fontFamily,linkData:ja.labels.linkData}}}];return{key:`bar-oob-labels-${t}`,type:"labels",renderer:Ya(n.flags),layout:{minimumLayoutMode:"XSMALL"},settings:{sources:y},animations:{enabled:n.viewModel.animations.enabled,trackBy:ja.labels.trackBy,compensateForLayoutChanges:ja.labels.compensateForLayoutChanges}}}function tL(e){return"all"===e||"title"===e}function nL(e,t,n){if(!tL(e.dimensionAxis.show)||t.layoutService.meta.isDimensionless)return!1;const{actions:r,properties:o}=t,i={hyperCube:e.qHyperCube,hyperCubeDef:o&&o.qHyperCubeDef,isDimension:!0,disabled:()=>{var e;return!(null!=r&&null!==(e=r.interact)&&void 0!==e&&e.enabled())},model:t.model,app:t.app,translator:t.translator,rtl:n,selections:t.selections,supportConditional:!0,isEnabled:t.flags.isEnabled},a=t.styleService.axis.title.getStyle();return t.layoutService.meta.hasMultipleDimensions&&(i.padding="0",i.minWidth="auto"),{key:"dimension-title",type:"data-title",layout:{minimumLayoutMode:hq[`${t.dockService.meta.major.orientation}DimensionAxisTitle`].minimumLayoutMode,dock:t.dockService.meta.major.dock},settings:i,style:a}}function rL(e,t,n){if(!tL(e.measureAxis.show))return!1;const{layoutService:r,actions:i}=t,a=t.properties,s=r.getLayoutValue("qUndoExclude")?"qUndoExclude.qHyperCubeDef":"qHyperCubeDef",l={hyperCube:r.getHyperCube(),hyperCubeDef:o(a,s),isDimension:!1,disabled:()=>!i.interact.enabled(),model:t.model,app:t.app,translator:t.translator,rtl:n,selections:t.selections,supportConditional:!0,isEnabled:t.flags.isEnabled},c=t.styleService.axis.title.getStyle();return t.layoutService.meta.hasMultipleMeasures&&(l.padding="0",l.minWidth="auto"),{key:"measure-title",type:"data-title",layout:{minimumLayoutMode:"SMALL",dock:t.dockService.meta.minor.dock},settings:l,style:c}}function oL({environment:e,rtl:t,refLineModel:n,layoutService:r,colorService:o,dockService:i,themeService:a,viewModel:s,chart:l}){const{theme:c,localeInfo:u}=e,d={resolveUIColor:o.getMain().getPaletteColor},p=a.getStyles(),f=s.animations.enabled;return[$a({refLineModel:n,layoutService:r,colorModel:d,dockService:i,animationsEnabled:f,chart:l,scale:OT.SCALE.MAIN.MINOR,axis:"horizontal"===i.meta.major.orientation?"y":"x",key:OT.COMPONENT.MEASURE_REF_LINE,minimumLayoutMode:hq.refLines.minimumLayoutMode}),$a({isDimension:!0,refLineModel:n,layoutService:r,colorModel:d,dockService:i,animationsEnabled:f,chart:l,scale:OT.SCALE.MAIN.MAJOR,axis:"horizontal"===i.meta.major.orientation?"x":"y",rtl:t,key:OT.COMPONENT.DIMENSION_REF_LINE,mainComponentKey:OT.COMPONENT.BAR,minimumLayoutMode:hq.refLines.minimumLayoutMode}),...Wa({refLineModel:n,layoutService:r,colorModel:d,animationsEnabled:f,dock:i.meta.minor.opposite,scale:OT.SCALE.MAIN.MINOR,style:p,formatter:OT.FORMATTER.MINOR,theme:c,localeInfo:u,rtl:t,key:OT.COMPONENT.MEASURE_REF_LINE_LABEL}),...Wa({isDimension:!0,refLineModel:n,layoutService:r,colorModel:d,animationsEnabled:f,dock:i.meta.major.opposite,scale:OT.SCALE.MAIN.MAJOR,style:p,theme:c,localeInfo:u,rtl:t,key:OT.COMPONENT.DIMENSION_REF_LINE_LABEL})]}function iL({dockService:e,layoutService:t,discrete:n,continuousDataModel:r,viewModel:o,flags:i}){if(null==i||!i.isEnabled("VIZ_199_ADD_SPACE_BETWEEN"))return!1;if(!!ig({layoutService:t}).none)return!1;const{rtl:a}=e.config,s="horizontal"===e.meta.chart.orientation,l=!s,{dock:c}=e.meta.major,{show:u}=t.getLayoutValue("dimensionAxis",{}),d="none"!==u;if(l&&d&&"bottom"===c)return!1;if(s&&d){if(!a&&"right"===c)return!1;if(a&&"left"===c)return!1}const p=a?"left":"right";return{type:"space",key:OT.COMPONENT.SPACE,layout:{dock:l?"bottom":p,minimumLayoutMode:"XSMALL"},show:()=>t.meta.isContinuous?r.getDimensionCardinality()>1:n.query.getCanScroll(),settings:{size:Math.max(6,Math.min(16,Math.floor(.025*e.meta.minor.size)))},animations:{enabled:o.animations.enabled,trackBy:()=>Math.random()}}}const aL=(e,t,n)=>{var r;const{layoutService:o,dockService:i,colorService:a,chart:s,actions:l,discrete:c,continuousDataModel:u,reducedDataModel:d,viewModel:p,viewState:f,viewCache:m,themeService:h,refLineModel:g,pluginService:y,rtl:v,logicalSize:b,trendLineModel:x,disclaimerService:S}=t,{localeInfo:M}=n,C=function(e,t){const{disclaimerService:n,themeService:r,translator:o}=e,i=n.getDisclaimer();if(!i)return!1;const{fontFamily:a}=r.getStyles();return{key:"disclaimer",type:"disclaimer",layout:{dock:i.alignment},settings:{isRTL:t,label:o.get(`Object.Disclaimer.${i.key}`)},style:{fontFamily:a}}}(t,v);if(S.getHasSuppressingDisclaimer())return{components:[C]};const w=NE(e,t,{localeInfo:M,rtl:v}),k=!(null!=l&&null!==(r=l.interact)&&void 0!==r&&r.enabled()),T=a.getMain().getLegend({eventName:"legend-c",key:"legend-color",viewState:f,chart:s,styleReference:"object.barChart",styleOverrides:{title:t.styleService.legend.title.getStyle(),label:t.styleService.legend.label.getStyle()},rtl:v,settings:{item:{shape:{size:10}}}},{actions:l,navigationDisabled:k}),q=T.components[0];if(q){const{dock:e}=q.layout;if(w.fillRange&&(["right","left"].includes(e)||v)&&(w.fillRange.invert=!0),"legend-seq"===q.type&&void 0!==p.selectionDimensionIdx&&w.fillRange&&w.fillRange.min<w.fillRange.max){const e=mq({eventName:"legendRange",key:"legendRangeBrush",targets:[q.key],fillTargets:[q.key],targetSelector:'[id="legend-seq-target"]',targetFillSelector:'[id="legend-seq-ticks"]',dock:q.layout.dock,scale:"fillRange",bubblesPlacement:"outside",onEdited:()=>{l.select.emit("end","legendRange")}},t);T.components.push(...e.components),T.interactions.unshift(...e.interactions)}}else w.fillRange&&v&&(w.fillRange.invert=!0);const E=((e,{componentKey:t,collectionKey:n})=>{var r,o,i;const{meta:a}=e.layoutService,s=e.colorService.getMain().getPaletteColor;let l,c;a.isGroupedByDimension?l=({scale:e,datum:t})=>e([t.group.value,t.value])+e.bandwidth([t.group.value,t.value])/2:a.isGroupedByMeasure&&(l=({scale:e,datum:t})=>e([t.value,t.measureIndex.value])+e.bandwidth()/2);let u=2;a.isContinuous?(c={start:"timeStart",end:"timeEnd"},u=kq(e,t)):a.isStacked&&(c="stack");const d=a.isStackedByDimension&&e.layoutService.getHyperCubeValue("qStackedDataPages.0.qArea.qHeight",NaN)>1,p=e=>{var t;return!0===(null===(t=e.datum.null)||void 0===t?void 0:t.value)},f=e.layoutService.getLayoutValue("components",null),m=f?f.filter((e=>e.key===t))[0]:null;return{key:t,type:"box",data:{collection:n},preferredSize:a.isContinuous?()=>({size:0,edgeBleed:{left:1,right:1}}):void 0,brush:{consume:[{context:"selection",data:["selectionDimension","axisSelectionDimension","end","fill","timeEnd"],style:{active:{strokeWidth:a.isContinuous||d?0:2,stroke:"#000"},inactive:{opacity:.3}}}]},settings:{major:{scale:OT.SCALE.MAIN.MAJOR,fn:l,ref:c},minor:{scale:OT.SCALE.MAIN.MINOR},orientation:e.dockService.meta.minor.orientation,box:{width:Cq({layoutService:e.layoutService,discrete:e.discrete}),minWidthPx:u,fill:e.colorService.getMain().getColor(),opacity:e=>p(e)?0:void 0,minHeightPx:function(e){return a.isStacked?.1:p(e)?.01:.3},strokeWidth:null!=m&&null!==(r=m.style)&&void 0!==r&&r.strokeWidth?Mq.BAR.STROKE.WIDTH[m.style.strokeWidth.toUpperCase()]:Mq.BAR.STROKE.WIDTH.NONE,stroke:null!=m&&null!==(o=m.style)&&void 0!==o&&null!==(o=o.strokeColor)&&void 0!==o&&o.color?s(null==m||null===(i=m.style)||void 0===i?void 0:i.strokeColor):Mq.BAR.STROKE.COLOR},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},animations:{enabled:e.viewModel.animations.enabled,isMainComponent:!0,trackBy:ja.bars.trackBy,compensateForLayoutChanges:ja.bars.compensateForLayoutChanges}}})(t,{componentKey:OT.COMPONENT.BAR,collectionKey:OT.COLLECTION.MAIN}),L=((e,{componentKey:t,collectionKey:n})=>{const{meta:r}=e.layoutService;if(!r.isStacked)return!1;let o=2;r.isContinuous&&(o=kq(e,t));const i={key:t,type:"box",data:{collection:n},settings:{major:{scale:OT.SCALE.MAIN.MAJOR},minor:{scale:OT.SCALE.MAIN.MINOR,start:{ref:"sumOfNegatives"},end:{ref:"sumOfPositives"}},orientation:e.dockService.meta.minor.orientation,box:{width:Cq({layoutService:e.layoutService,discrete:e.discrete}),minWidthPx:o,opacity:0,fill:"none"},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},brush:{consume:[{context:"selection",data:[""],style:{active:{strokeWidth:2,stroke:"#000",opacity:e=>{var t;return!0===(null===(t=e.data)||void 0===t||null===(t=t.null)||void 0===t?void 0:t.value)?0:1}},inactive:{opacity:e=>{var t;return!0===(null===(t=e.data)||void 0===t||null===(t=t.null)||void 0===t?void 0:t.value)?0:.3}}}}]}};return r.isContinuous&&(i.settings.major.ref={start:"timeStart",end:"timeEnd"}),i})(t,{componentKey:OT.COMPONENT.STACK_TOTAL_BAR,collectionKey:OT.COLLECTION.STACK_TOTAL}),N=RE(t,n,p.selectionDimensionIdx),{isStacked:O}=o.meta;let D;D=d.mode.isContinuous?OT.COLLECTION.MINI_CONTINUOUS:O?OT.COLLECTION.MINI_STACK:OT.COLLECTION.MINI;const A=O?L:E,R=oE(0,t),I=[...R,FE(t,{barComponent:A,type:"max",isStacked:O}),FE(t,{barComponent:A,type:"min",isStacked:O}),Iq(t,{barComponent:A,type:"max",isStacked:O}),Iq(t,{barComponent:A,type:"min",isStacked:O}),zq(t,{chart:s,type:"max",collectionKey:O?OT.COLLECTION.STACK_TOTAL:OT.COLLECTION.MAIN}),zq(t,{chart:s,type:"min",collectionKey:O?OT.COLLECTION.STACK_TOTAL:OT.COLLECTION.MAIN}),...Sq(e,t,v,!!R[0]),E,L,PE({layoutService:o,viewModel:p,dockService:i}),nL(e,t,v),rL(e,t,v),...oL({environment:n,rtl:v,refLineModel:g,layoutService:o,colorService:a,dockService:i,themeService:h,viewModel:p,chart:s}),Ii({viewState:f,viewCache:m,layoutService:o,dockService:i,rtl:v}),iL({dockService:i,layoutService:o,discrete:c,continuousDataModel:u,viewModel:p,flags:t.flags}),fE(E,t,{collectionKey:D}),ag({layoutService:o,dockService:i,discrete:c,continuousDataModel:u,viewState:f,viewCache:m,themeService:h,rtl:v,deviceType:n.deviceType}),...mT({majorScale:OT.SCALE.MAIN.MAJOR,minorScale:OT.SCALE.MAIN.MINOR,tooltipOverlay:OT.COMPONENT.TREND_LINES_TOOLTIP_OVERLAY},{layoutService:o,trendLineModel:x,dockService:i,animationsEnabled:p.animations.enabled}),...T.components,Wq({layout:e,component:OT.COMPONENT.BAR,minorScale:w.minor},t,v),ZE({layout:e,component:OT.COMPONENT.STACK_TOTAL_BAR},t,v),eL({layout:e,type:"max"},t),eL({layout:e,type:"min"},t),...N.components,Kq(0,{...t,coloring:a.getMain().getSettings()},v),Yq(0,{...t,coloring:a.getMain().getSettings()},v),!1!==e.showDisclaimer&&C,vT({tooltip:OT.COMPONENT.TREND_LINES_TOOLTIP,formatter:OT.FORMATTER.MINOR},t,{rtl:v})].filter(Boolean);!function(e){if(e&&0!==e.length)for(let t=0;t<e.length;t++)e[t].layout=e[t].layout||{},e[t].layout.displayOrder=t}(I);const P=[...T.interactions,...N.gestures].sort(((e,t)=>(t.prio||0)-(e.prio||0)));return{interactions:dE(t,{rtl:v,hammer:{gestures:P}}),scales:w,palettes:a.getMain().getPalettes(),components:y.extendComponents(I),strategy:he(0,{logicalSize:b,minCenterRatio:0}),formatters:Xq(t,w),collections:XE(0,t)}};const sL=({environment:e,services:t,chart:n,viewState:r,bootstrapped:o})=>{K((i=>{if(!e||!t||!o)return;const{layoutService:a,dockService:s,colorService:l,discrete:c,continuousDataModel:u,reducedDataModel:d}=t,{width:p,height:f}=s.meta.chart.size;if(i.snapshotData=i.snapshotData||{},i.snapshotData.content={size:{w:p,h:f}},a.meta.isSnapshot)return Promise.resolve();i.snapshotData.content.chartData={scrollOffset:r.get("scrollOffset"),zoom:r.get("zoom"),legendScrollOffset:Te(n,OT.COMPONENT.LEGEND_COLOR_CAT)};const{properties:m}=o,h=null==m?void 0:m.qHyperCubeDef.qDimensions.some((e=>{var t;return null===(t=e.qCalcCondition)||void 0===t||null===(t=t.qCond)||void 0===t?void 0:t.qv}));return h&&(i.tooltip.auto=!0),a.meta.isDiscrete?(c.command.setSnapshotData(i),d.setSnapshotData(i)):u.setSnapshotData(i),l.getMain().getSnapshotData().then((e=>{i.snapshotData.content.chartData={...i.snapshotData.content.chartData,...e}})).catch((()=>{}))})),G((()=>({getViewState(){if(r&&n)return{scrollOffset:r.get("scrollOffset"),zoom:r.get("zoom"),legendScrollOffset:Te(n,OT.COMPONENT.LEGEND_COLOR_CAT)}}})),[r,n])},lL=e=>"[object Object]"===Object.prototype.toString.call(e),cL=e=>Array.isArray(e);function uL(e,t){if(e===t)return!0;if(cL(e)){if(!cL(t))return!1;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!uL(e[n],t[n]))return!1;return!0}if(lL(e)){if(!lL(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(!uL(e[n[r]],t[n[r]]))return!1}return!0}return e===t}const dL=({properties:e,layout:t,isStacked:n,isContinuous:r,model:o,layoutService:i})=>{var a,s;const l=t.qHyperCube.qDimensionInfo.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)})),c=t.qHyperCube.qMeasureInfo.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)})),u=de(!0,{},e);return((e,t,n)=>{const{color:{mode:r}}=n;e.length>1&&n.color?n.color.persistent=!0:"byDimension"===r&&t.length>1?n.color.mode="byMultiple":"byExpression"===r&&0===t.length?n.color.mode="primary":0===e.length&&t.length>0&&(n.color.byMeasureDef=void 0,n.color.byDimDef=void 0,1===t.length&&"byExpression"!==r&&(n.color.mode="primary"))})(l,c,e),l.length>1&&n&&!r&&"S"===e.qHyperCubeDef.qMode&&(e.qHyperCubeDef.qMode="K"),l.length<2&&"K"===e.qHyperCubeDef.qMode&&(e.qHyperCubeDef.qMode="S"),null===(a=o.colorSupport)||void 0===a||null===(s=a.colorByUpdater)||void 0===s||s.call(a,e,"qHyperCubeDef.",t),function({properties:e,layoutService:t}){const{filteredFields:n}=t.meta;if(!(n.measures.length>0))return;const{mode:r}=e.color||{};if("byExpression"===r){var o;if("colorByExpression"===(null===(o=t.getLayout().qHyperCube.qMeasureInfo)||void 0===o||null===(o=o[0])||void 0===o||null===(o=o.qAttrExprInfo)||void 0===o||null===(o=o[0])||void 0===o?void 0:o.id))return;const{current:r,target:i}=function({properties:e,filtered:t}){const{qMeasures:n}=e.qHyperCubeDef||[],{current:r,target:o}=n.reduce(((e,n,r)=>{var o;return"colorByExpression"===(null===(o=n.qAttributeExpressions[0])||void 0===o?void 0:o.id)&&(e.current=r),void 0!==e.target||t.includes(r)||(e.target=r),e}),{current:void 0,target:void 0});return{current:r,target:o}}({properties:e,filtered:n.measures});if(void 0===r)return;const a=e.qHyperCubeDef.qMeasures[r].qAttributeExpressions[0];e.qHyperCubeDef.qMeasures[r].qAttributeExpressions.splice(0,1),e.qHyperCubeDef.qMeasures[i].qAttributeExpressions.splice(0,0,a)}}({properties:e,layoutService:i}),!_i.compare(u,e,!0)&&JSON.stringify(u)!==JSON.stringify(e)&&(e.hash=Math.random(),!0)};function pL(e,t){if("custom"===e.dimensionAxis.axisDisplayMode){const n=t.layout.qHyperCube.qMeasureInfo.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==lk})).length,r=t.layout.qHyperCube.qDimensionInfo.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==lk})).length,o=e.dimensionAxis.maxVisibleItems;o<1?e.dimensionAxis.maxVisibleItems=10:o>1e4/(r+n)&&(e.dimensionAxis.maxVisibleItems=Math.min(o,Math.floor(1e4/(r+n))))}}const fL=[{translation:"Common.None",value:"none"},{translation:"Common.Small",value:"small"},{translation:"Common.Medium",value:"medium"},{translation:"Common.Large",value:"large"}],mL=(e,t,n)=>{const r=`${e}.fontFamily`,o=`${e}.fontSize`;return{fontFamilyItem:{component:"dropdown",ref:r,options:()=>t.getOptions(r),defaultValue:()=>t.getDefaultValue(r)},fontWrapperItem:{component:"inline-wrapper",items:{fontSizeItem:{component:"dropdown",ref:o,options:()=>t.getOptions(o),defaultValue:()=>t.getDefaultValue(o)},fontColorItem:{component:"color-picker",width:!1,ref:`${e}.color`,defaultValue:()=>({color:n.getStyle("object.barChart",e,"color")})}}}}};function hL(e){return{classification:{section:"styling",tags:["simple"],exclusive:!0},component:"items",show:!0,chartType:"barchart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.BarChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:null==e?void 0:e.isEnabled("SENSECLIENT_IM_2428_BARCHART_BG"),items:{outlineSection:{translation:"LayerStyleEditor.style.strokeWidth",component:"items",items:{wrapperItem:{component:"items",ref:"components",key:"bar",items:{barStroke:{component:"inline-wrapper",items:{strokeWidth:{ref:"style.strokeWidth",width:!0,component:"dropdown",translation:"LayerStyleEditor.style.strokeWidth",options:Object.keys(fL).map((e=>fL[e])),schemaIgnore:!0,defaultValue:fL[0].value},strokeColor:{ref:"style.strokeColor",schemaIgnore:!0,defaultValue:{color:"#205891",index:-1},width:"auto",component:"color-picker"}}}}}}},widthSection:{translation:"LayerStyleEditor.style.barWidth",component:"items",show:(e,t)=>!ke.continuous(t.layout),items:{barWidth:{component:"items",ref:"components",key:"bar",items:{width:{ref:"style.width",translation:"LayerStyleEditor.style.barWidth",component:"slider",min:.01,max:1,step:.01,schemaIgnore:!0,defaultValue:(e,t,n)=>((e,t)=>{var n,r,o;const i=null===(n=t.qHyperCube)||void 0===n||null===(n=n.qMeasureInfo)||void 0===n?void 0:n.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==lk})).length,a=null===(r=t.qHyperCube)||void 0===r||null===(r=r.qDimensionInfo)||void 0===r?void 0:r.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==lk})).length,s="grouped"===(null===(o=e.barGrouping)||void 0===o?void 0:o.grouping)&&a>0&&i+a>2;return ke.continuous(t)?1:s?.9:.7})(n.properties,n.layout)}}}}},optionsSection:{translation:"LayerStyleEditor.label.Options",component:"items",items:{wrapperItem:{component:"items",items:{optionsHeader:{component:"header",translation:"LayerStyleEditor.label.Options"},scrollbar:{ref:"scrollbar",translation:"properties.scrollbar",component:"dropdown",type:"string",options:Object.keys(tg.OPTIONS).map((e=>tg.OPTIONS[e])),schemaIgnore:!0,defaultValue:tg.DEFAULT.value},scrollAlignment:{ref:"scrollStartPos",translation:"properties.ScrollAlignment",component:"dropdown",schemaIgnore:!0,defaultValue:0,options:[{value:0,translation:"properties.ScrollAlignStart"},{value:1,translation:"properties.ScrollAlignEnd"}]},gridLines:{type:"items",items:{showGridLines:{ref:"gridLine.auto",type:"boolean",translation:"properties.gridLine.spacing",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}]},gridSpacing:{ref:"gridLine.spacing",type:"number",component:"dropdown",defaultValue:2,options:[{value:0,translation:"properties.gridLine.noLines"},{value:1,translation:"properties.gridLine.wide"},{value:2,translation:"properties.gridLine.medium"},{value:3,translation:"properties.gridLine.narrow"}],show:e=>e.gridLine&&!e.gridLine.auto}}}}}}}}}}function gL(e=!1,t,n,r){return e?hL(n):function(e,t,n){const r=v({theme:e,translator:n,config:{id:"barChart",paths:["axis.title","axis.label.name","label.value","legend.title","legend.label"]},flags:t});return{component:"styling-panel",show:!0,chartType:"barchart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.BarChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:null==t?void 0:t.isEnabled("SENSECLIENT_IM_2428_BARCHART_BG"),items:{outlineSection:{translation:"properties.Outline",component:"panel-section",items:{wrapperItem:{component:"items",ref:"components",key:"bar",items:{barStroke:{component:"inline-wrapper",items:{strokeWidth:{ref:"style.strokeWidth",width:!0,component:"dropdown",options:Object.keys(fL).map((e=>fL[e])),defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",defaultValue:{color:"#205891"},schemaIgnore:!0,width:"auto",component:"color-picker"}}}}}}},widthSection:{translation:"LayerStyleEditor.style.barWidth",component:"panel-section",show:(e,t)=>!ke.continuous(t.layout),items:{barWidth:{component:"items",ref:"components",key:"bar",items:{width:{ref:"style.width",component:"slider",min:.01,max:1,step:.01,defaultValue(e,t,n){const{properties:r}=n,{barGrouping:o,qHyperCubeDef:i}=r,a=i.qMeasures.length,s=i.qDimensions.length,l="grouped"===o.grouping&&s>0&&a+s>2;return ke.continuous(r)?1:l?.9:.7},schemaIgnore:!0}}}}},axisTitleSection:{translation:"properties.axis.title",component:"panel-section",items:{axisTitleItems:{component:"items",ref:"components",key:"axis",items:mL("axis.title",r,e)}}},axisLabelSection:{translation:"properties.axis.label",component:"panel-section",items:{axisLabelItems:{component:"items",ref:"components",key:"axis",items:mL("axis.label.name",r,e)}}},labelSection:null!=t&&t.isEnabled("CLIENT_IM_3050")?{translation:"properties.dataPoints.labelmode",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"label",items:{...mL("label.value",r,e),contrastColor:{component:"checkbox",type:"boolean",ref:"label.value.useContrastColor",translation:"properties.dataPoints.valuelabel.contrast",defaultValue:!0}}}}}:void 0,legendTitleSection:null!=t&&t.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.title",component:"panel-section",items:{legendTitleSection:{component:"items",ref:"components",key:"legend",items:mL("legend.title",r,e)}}}:void 0,legendLabelSection:null!=t&&t.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.label",component:"panel-section",items:{legendLabelSection:{component:"items",ref:"components",key:"legend",items:mL("legend.label",r,e)}}}:void 0}}}(t,n,r)}const yL=e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==lk},vL=(e,t)=>null==e?void 0:e.qHyperCube[t].filter((e=>yL(e))),bL=e=>({get(t,n,r){const o="stacked";return"butterfly"===t(n.type)?DT({layout:r.layout,flags:e})?t(n.type):o:ke.continuous(r.layout)?o:t(n.type)},set(e,t,n){const r=Le(n.type,n);t(n.type,e,r)}}),xL=e=>{if(!e)return!1;const t=de(!0,{},e);return t.qHyperCube.qMeasureInfo=vL(e,"qMeasureInfo"),t.qHyperCube.qDimensionInfo=vL(e,"qDimensionInfo"),t&&!ke.continuous(t)&&ke.stacked(t)},SL=({translator:e,flags:t,anything:n})=>{var r,o,i;const a=null==n||null===(r=n.sense)||void 0===r||null===(o=r.isUnsupportedFeature)||void 0===o?void 0:o.call(r,"continuousData"),s={items:{labels:{items:{header:{show:(e,t,n)=>vL(n.layout,"qMeasureInfo").length},pointLabels:{component:"checkbox",ref:"dataPoint.showLabels",type:"boolean",translation:"Simple.Label.Value",show:(e,t,n)=>!xL(t.layout)&&vL(n.layout,"qMeasureInfo").length},segmentLabels:{component:"checkbox",ref:"dataPoint.showSegmentLabels",type:"boolean",translation:"properties.dataPoints.segmentLabelMode",defaultValue:!1,show:(e,t)=>xL(t.layout),convertFunctions:{get:(e,t,n,r)=>r.dataPoint.showLabels&&r.dataPoint.showSegmentLabels,set(e,t,n,r,o){o.dataPoint.showSegmentLabels=e,o.dataPoint.showLabels=o.dataPoint.showSegmentLabels||o.dataPoint.showTotalLabels}}},totalLabels:{component:"checkbox",ref:"dataPoint.showTotalLabels",type:"boolean",translation:"properties.dataPoints.totalLabelMode",defaultValue:!0,show:(e,t)=>xL(t.layout),convertFunctions:{get:(e,t,n,r)=>r.dataPoint.showLabels&&r.dataPoint.showTotalLabels,set(e,t,n,r,o){o.dataPoint.showTotalLabels=e,o.dataPoint.showLabels=o.dataPoint.showSegmentLabels||o.dataPoint.showTotalLabels}}},dimensionTitle:{component:"checkbox",ref:"dimensionAxis.show",type:"string",translation:"Simple.Label.Dimension.Hide",defaultValue:"all",show:(e,t,n)=>vL(n.layout,"qDimensionInfo").length&&vL(n.layout,"qMeasureInfo").length,convertFunctions:{get:(e,t,n,r)=>"labels"===r.dimensionAxis.show||"none"===r.dimensionAxis.show,set(e,t,n,r,o){o.dimensionAxis.show=e?"labels":"all"}}},measureTitle:{component:"checkbox",ref:"measureAxis.show",type:"string",translation:"Simple.Label.Measure.Hide",defaultValue:"all",show:(e,t,n)=>vL(n.layout,"qMeasureInfo").length,convertFunctions:{get:(e,t,n,r)=>"labels"===r.measureAxis.show||"none"===r.measureAxis.show,set(e,t,n,r,o){o.measureAxis.show=e?"labels":"all"}}}}}}},l=null==n||null===(i=n.sense)||void 0===i?void 0:i.theme,c={uses:"settings",items:{simpleStyling:gL(!0,l,t,e),simpleLabels:s,general:{items:{showDisclaimer:{translation:"properties.showDisclaimer",type:"boolean",ref:"showDisclaimer",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Show"},{value:!1,translation:"properties.hide"}]}}},presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:{boxStyling:gL(!1,l,t,e),grouping:{ref:"barGrouping.grouping",type:"string",component:"item-selection-list",defaultValue:"grouped",horizontal:!0,items:(e,n)=>{const r=[{icon:"grouped",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.grouped",value:"grouped"},{icon:"stacked",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.stacked",value:"stacked"}];return DT({layout:n.layout,flags:t})&&r.push({icon:"bars_butterfly",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.butterfly",value:"butterfly"}),r},show(e,t){const n=vL(t.layout,"qMeasureInfo").length,r=vL(t.layout,"qDimensionInfo").length;return r>0&&n+r>2},globalChange(e,n,r){"butterfly"!==e.barGrouping.grouping||DT({layout:r.layout,flags:t})||(e.barGrouping.grouping="stacked"),"butterfly"===e.barGrouping.grouping&&e.measureAxis&&"max"!==e.measureAxis.minMax&&!e.measureAxis.autoMinMax&&(e.measureAxis.minMax="max")},change(e,n,r){"butterfly"!==e.barGrouping.grouping||DT({layout:r.layout,flags:t})||(e.barGrouping.grouping="stacked"),vL(n.layout,"qDimensionInfo").length>1&&"stacked"===e.barGrouping.grouping?(e.qHyperCubeDef.qMode="K",e.qHyperCubeDef.qAlwaysFullyExpanded=!0):e.qHyperCubeDef.qMode="S"},readOnly:(e,t,n)=>ke.continuous(n.layout),convertFunctions:bL(t)},orientation:{ref:"orientation",type:"string",component:"item-selection-list",defaultValue:"vertical",horizontal:!0,items:[{component:"icon-item",icon:"bars_vertical",labelPlacement:"bottom",translation:"properties.orientation.vertical",value:"vertical"},{icon:"bars_horizontal",component:"icon-item",labelPlacement:"bottom",translation:"Common.Horizontal",value:"horizontal"}],readOnly:(e,t,n)=>ke.continuous(n.layout),convertFunctions:(u="vertical",{get:(e,t,n)=>ke.continuous(n.layout)?u:e(t.type),set(e,t,n){const r=Le(n.type,n);t(n.type,e,r)}})},scroll:{type:"items",items:{scrollbar:{type:"string",component:"dropdown",ref:"scrollbar",translation:"properties.scrollbar",options:Object.keys(tg.OPTIONS).map((e=>tg.OPTIONS[e])),defaultValue:tg.DEFAULT.value},scrollStartPos:{ref:"scrollStartPos",type:"number",translation:"properties.ScrollAlignment",component:"dropdown",defaultValue:0,options:[{value:0,translation:"properties.ScrollAlignStart"},{value:1,translation:"properties.ScrollAlignEnd"}],show:(e,t,n)=>!ke.continuous(n.layout)}}},gridLines:{type:"items",snapshot:{tid:"property-gridLines"},items:{showGridLines:{ref:"gridLine.auto",type:"boolean",translation:"properties.gridLine.spacing",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}]},gridSpacing:{ref:"gridLine.spacing",type:"number",component:"dropdown",defaultValue:2,options:[{value:0,translation:"properties.gridLine.noLines"},{value:1,translation:"properties.gridLine.wide"},{value:2,translation:"properties.gridLine.medium"},{value:3,translation:"properties.gridLine.narrow"}],show:e=>e.gridLine&&!e.gridLine.auto}}},valueLabels:{type:"items",snapshot:{tid:"property-valueLabels"},items:{showLabels:{ref:"dataPoint.showLabels",type:"boolean",translation:"properties.dataPoints.labelmode",component:"switch",defaultValue:!1,options:[{value:!0,label:(t,n)=>((e,t,n)=>n&&n.get(xL(t.layout)?"properties.on":"Common.Auto"))(0,n,e)},{value:!1,translation:"properties.off"}]},showSegmentLabels:{ref:"dataPoint.showSegmentLabels",type:"boolean",translation:"properties.dataPoints.segmentLabelMode",component:"switch",defaultValue:!1,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}],show:(e,t,n)=>e.dataPoint.showLabels&&xL(n.layout)},showTotalLabels:{ref:"dataPoint.showTotalLabels",type:"boolean",translation:"properties.dataPoints.totalLabelMode",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}],show:(e,t,n)=>e.dataPoint.showLabels&&xL(n.layout)}}}}},colorsAndLegend:{uses:"colorsAndLegend",items:{colors:{items:{attributeExpression:Xa}},legend:{items:{show:{snapshot:{tid:"property-legend"}}}}}},dimensionAxis:{uses:"axis.dimensionAxis",items:{axisDisplaySettings:{components:"items",type:"items",show:(e,t,n)=>!ke.continuous(n.layout),items:{axisDisplayMode:{ref:"dimensionAxis.axisDisplayMode",type:"string",translation:"properties.axis.displaymode",component:"dropdown",defaultValue:"auto",options:[{value:"auto",translation:"properties.axis.displaymode.auto"},{value:"max",translation:"properties.axis.displaymode.max"},{value:"custom",translation:"properties.axis.displaymode.custom"}]},maxVisibleItems:{ref:"dimensionAxis.maxVisibleItems",translation:"properties.axis.maxvisiblevalues",expression:"optional",type:"integer",invalid(e,t,n){const r=vL(n.layout,"qMeasureInfo").length,o=vL(n.layout,"qDimensionInfo").length,i=e.dimensionAxis.maxVisibleItems;return i<0||i>1e4/(o+r)},globalChange:pL,defaultValue:10,show:e=>"custom"===e.dimensionAxis.axisDisplayMode},hint:{component:"text",translation:"properties.axis.maxvisiblevalues.hint",style:"hint",show:e=>["custom","max"].indexOf(e.dimensionAxis.axisDisplayMode)>-1}}},continuousGroup:{items:{miniChart:null},show:!a}}},measureAxis:{uses:"axis.flippableMeasureAxis"},tooltip:{uses:"tooltip"}}};var u;return null!=t&&t.isEnabled("SENSECLIENT_LAYERED_LABELS")&&(c.items.dimensionAxis.items.othersGroup={items:{label:{options:[{value:"auto",translation:"Common.Auto"},{value:"horizontal",translation:"Common.Horizontal"},{value:"tilted",translation:"properties.labels.tilted"},{value:"layered",translation:"properties.labels.layered"}]}}}),null!=t&&t.isEnabled("TLV_800_BUTTERFLY_CHART")&&(c.items.measureAxis={uses:"axis.flippableMeasureAxis",items:{minMax:{items:{minMax:{show:e=>"butterfly"!==e.barGrouping.grouping&&e.measureAxis&&!e.measureAxis.autoMinMax},min:{show:e=>"butterfly"!==e.barGrouping.grouping&&e.measureAxis&&["min","minMax"].includes(e.measureAxis.minMax)&&!e.measureAxis.autoMinMax},max:{invalid:e=>e.measureAxis&&"minMax"===e.measureAxis.minMax?e.measureAxis.min>=e.measureAxis.max:!(!e.measureAxis||"max"!==e.measureAxis.minMax||"butterfly"!==e.barGrouping.grouping)&&e.measureAxis.max<=0}}}}}),c},ML={uses:"sortingWithDisclaimer",items:{defaultSorting:{items:{dimensions:{locked:(e,t,n)=>1===n.getMeasures().length&&2===n.getDimensions().length&&0===e,items:{autoSort:{change(e){Ft(e)}}}},interColumnSorting:{reset:(e,t)=>{const{qDimensions:n,qMeasures:r,qInterColumnSortOrder:o}=e.qHyperCubeDef,{qCardinal:i}=t.layout.qHyperCube.qDimensionInfo[0],a=o.length,s=[...Array(a).keys()];1===n.length&&r.length>=1&&i>10&&([s[0],s[1]]=[s[1],s[0]]),e.qHyperCubeDef.qInterColumnSortOrder=s}}}}}},CL={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}},refLines:{uses:"reflines"},dimRefLines:{uses:"dimReflines"}}},wL=({translator:e,flags:t,anything:n})=>{var r,o;return{uses:"data",items:{dimensions:{items:{nullSuppression:{show(e,t,r){var o,i;if(null!=n&&null!==(o=n.sense)&&void 0!==o&&null!==(i=o.isUnsupportedFeature)&&void 0!==i&&i.call(o,"includeZeroValues"))return!1;const a=((e,t)=>{var n,r;const o=null===(n=t.layout)||void 0===n||null===(n=n.qHyperCube)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.findIndex((e=>yL(e)));return(null===(r=t.properties)||void 0===r||null===(r=r.qHyperCubeDef)||void 0===r||null===(r=r.qDimensions)||void 0===r?void 0:r[o])===e})(e,t),s=ke.continuous(r.layout);return!(a&&s)}},visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Chart.Dimensions.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0}}},measures:{items:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Chart.Measures.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0},trendLines:null!=n&&null!==(r=n.sense)&&void 0!==r&&null!==(o=r.isUnsupportedFeature)&&void 0!==o&&o.call(r,"trendlines")?void 0:CT({translator:e,allowStackedByDimension:t&&t.isEnabled("TRENDLINES_STACKED_DIM")})}}}}};function kL({translator:e,flags:t,anything:n}){return{type:"items",component:"accordion",items:{data:wL({translator:e,flags:t,anything:n}),sorting:ML,addons:CL,settings:SL({translator:e,flags:t,anything:n})}}}const TL=e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==lk};function qL({flags:e}){return{type:"items",component:"accordion",items:{data:{uses:"data"},sort:{uses:"sortWithDisclaimer",items:{sort:{items:{dimensions:{locked(e,t,n){const r=n.qHyperCube.qMeasureInfo.length,o=n.qHyperCube.qDimensionInfo.filter((e=>TL(e))).length;return 1===r&&2===o&&0===e}}}}}},presentation:{uses:"presentation",items:{showLabels:{ref:"dataPoint.showLabels",type:"boolean",translation:"properties.dataPoints.labelmode",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]},grouping:{ref:"barGrouping.grouping",type:"string",component:"item-selection-list",horizontal:!0,items:(t,n)=>{const r=[{icon:"grouped",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.grouped",value:"grouped"},{icon:"stacked",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.stacked",value:"stacked"}];return DT({layout:null==n?void 0:n.layout,flags:e})&&r.push({icon:"bars_butterfly",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.butterfly",value:"butterfly"}),r},show(e,t){return t.qHyperCube.qMeasureInfo.filter((e=>TL(e))).length+t.qHyperCube.qDimensionInfo.filter((e=>TL(e))).length>2&&!ke.continuous(t)&&!((null==(n=t)||null===(r=n.qHyperCube)||void 0===r||null===(r=r.qDimensionInfo)||void 0===r?void 0:r.filter((e=>TL(e))).length)>1&&(null==n||null===(o=n.qHyperCube)||void 0===o?void 0:o.isHCEnabled));var n,r,o},change(e){e.qHyperCubeDef.qDimensions.length>1&&"stacked"===e.barGrouping.grouping?(e.qHyperCubeDef.qMode="K",e.qHyperCubeDef.qAlwaysFullyExpanded=!0):e.qHyperCubeDef.qMode="S"}},orientation:{ref:"orientation",type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"bars_vertical",labelPlacement:"bottom",translation:"properties.orientation.vertical",value:"vertical"},{icon:"bars_horizontal",component:"icon-item",labelPlacement:"bottom",translation:"Common.Horizontal",value:"horizontal"}],show:(e,t)=>!ke.continuous(t)}}},color:{uses:"color"}}}}function EL(e){const t={},n=o(e,"components"),r=o(e,"dimensionAxis.axisDisplayMode"),i=o(e,"dimensionAxis.maxVisibleItems"),a=n?n.filter((e=>"bar"===e.key))[0]:void 0,s=o(e,"tooltip");if(a&&a.style&&Object.keys(a.style).forEach((e=>{t[`chart_style_${e}`]=a.style[e]})),i&&(t.chart_dimaxis_maxVisibleItems=i),r&&(t.chart_dimaxis_axisDisplayMode=r),s){t.chart_tooltip_custom=!s.auto;const e=o(s,"chart.object.refId");!s.auto&&e&&(t.chart_tooltip_custom_mini_chart=e)}return t}const LL=e=>!!(e&&e.qHyperCube.qSize.qcy>0),NL={ACCUMULATIONS:"accumulation",MOVING_AVERAGE:"movingAverage",DIFFERENCE:"difference",NORMALIZATION:"normalization"};function OL(){const e=[];return Object.keys(NL).forEach((t=>{e.push(NL[t])})),e}function DL(e){return{definition:kL(e),softDefinition:qL(e),support:{snapshot:LL,export:LL,exportData:!0,sharing:LL,viewData:!0,effects:!0,modifiers:OL()},importProperties:(t,n,r,o)=>{const i={layout:{templateId:n.templateId}};r.mapProperties(i);const a={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()},s=X.axisChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:yk(e),defaultPropertyValues:a,hypercubePath:o,extension:r}),l=s.qProperty;return l.qHyperCubeDef.qDimensions.length>1&&"stacked"===l.barGrouping.grouping&&(l.qHyperCubeDef.qMode="K",l.qHyperCubeDef.qAlwaysFullyExpanded=!0),X.conditionalShow.unquarantine(l),X.conditionalShow.unquarantineAlternative(l),s},exportProperties:(e,t,n)=>{X.conditionalShow.quarantine(e.qProperty),X.conditionalShow.quarantineAlternative(e.qProperty);return X.axisChart.exportProperties({propertyTree:e,hyperCubePath:t,viewDataMode:n})},migrate:{properties:e=>(e.qExtendsId||(function(e){var t;e.qHyperCubeDef.qDimensions.forEach(Ft),null!==(t=e.qHyperCubeDef.qLayoutExclude)&&void 0!==t&&null!==(t=t.qHyperCubeDef)&&void 0!==t&&t.qDimensions&&e.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.forEach(Ft)}(e),function({properties:e}){const{scrollbar:t,dimensionAxis:n,preferContinuousAxis:r,showMiniChartForContinuousAxis:o}=e;if(t||!1!==o)return;const{continuousAuto:i}=n;(i||!i&&r)&&(e.scrollbar=tg.OPTIONS.NONE.value)}({properties:e})),e)},extendMetrics:EL}}}}}));
94
+ `),_C.rippleVisible,GC,550,(({theme:e})=>e.transitions.easing.easeInOut),_C.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),_C.child,_C.childLeaving,YC,550,(({theme:e})=>e.transitions.easing.easeInOut),_C.childPulsate,XC,(({theme:e})=>e.transitions.easing.easeInOut)),QC=S.forwardRef((function(e,t){const n=WM({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=ol(n,HC),[s,l]=S.useState([]),c=S.useRef(0),u=S.useRef(null);S.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[s]);const d=S.useRef(!1),p=NS(),f=S.useRef(null),m=S.useRef(null),h=S.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;l((e=>[...e,Cb.jsx(ZC,{classes:{ripple:Vx(o.ripple,_C.ripple),rippleVisible:Vx(o.rippleVisible,_C.rippleVisible),ripplePulsate:Vx(o.ripplePulsate,_C.ripplePulsate),child:Vx(o.child,_C.child),childLeaving:Vx(o.childLeaving,_C.childLeaving),childPulsate:Vx(o.childPulsate,_C.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},c.current)])),c.current+=1,u.current=a}),[o]),g=S.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const s=a?null:m.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(i)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):h({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})}),[r,h,p]),y=S.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=S.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{v(e,t)}));f.current=null,l((e=>e.length>0?e.slice(1):e)),u.current=t}),[p]);return S.useImperativeHandle(t,(()=>({pulsate:y,start:g,stop:v})),[y,g,v]),Cb.jsx(JC,Us({className:Vx(_C.root,o.root,i),ref:m},a,{children:Cb.jsx(sf,{component:null,exit:!0,children:s})}))}));function ew(e){return Ux("MuiButtonBase",e)}const tw=Kx("MuiButtonBase",["root","disabled","focusVisible"]),nw=["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"],rw=MC("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"},[`&.${tw.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ow=S.forwardRef((function(e,t){const n=WM({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:y,onFocusVisible:v,onKeyDown:b,onKeyUp:x,onMouseDown:M,onMouseLeave:C,onMouseUp:w,onTouchEnd:k,onTouchMove:E,onTouchStart:T,tabIndex:q=0,TouchRippleProps:L,touchRippleRef:N,type:O}=n,D=ol(n,nw),A=S.useRef(null),R=S.useRef(null),P=ES(R,N),{isFocusVisibleRef:I,onFocus:z,onBlur:j,ref:F}=FS(),[B,_]=S.useState(!1);l&&B&&_(!1),S.useImperativeHandle(r,(()=>({focusVisible:()=>{_(!0),A.current.focus()}})),[]);const[H,$]=S.useState(!1);S.useEffect((()=>{$(!0)}),[]);const V=H&&!c&&!l;function W(e,t,n=u){return kS((r=>{t&&t(r);return!n&&R.current&&R.current[e](r),!0}))}S.useEffect((()=>{B&&d&&!c&&H&&R.current.pulsate()}),[c,d,B,H]);const U=W("start",M),K=W("stop",h),G=W("stop",g),Y=W("stop",w),X=W("stop",(e=>{B&&e.preventDefault(),C&&C(e)})),J=W("start",T),Z=W("stop",k),Q=W("stop",E),ee=W("stop",(e=>{j(e),!1===I.current&&_(!1),f&&f(e)}),!1),te=kS((e=>{A.current||(A.current=e.currentTarget),z(e),!0===I.current&&(_(!0),v&&v(e)),y&&y(e)})),ne=()=>{const e=A.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},re=S.useRef(!1),oe=kS((e=>{d&&!re.current&&B&&R.current&&" "===e.key&&(re.current=!0,R.current.stop(e,(()=>{R.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),b&&b(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!l&&(e.preventDefault(),m&&m(e))})),ie=kS((e=>{d&&" "===e.key&&R.current&&B&&!e.defaultPrevented&&(re.current=!1,R.current.stop(e,(()=>{R.current.pulsate(e)}))),x&&x(e),m&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=s;"button"===ae&&(D.href||D.to)&&(ae=p);const se={};"button"===ae?(se.type=void 0===O?"button":O,se.disabled=l):(D.href||D.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=ES(t,F,A),ce=Us({},n,{centerRipple:o,component:s,disabled:l,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:q,focusVisible:B}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=BS({root:["root",t&&"disabled",n&&"focusVisible"]},ew,o);return n&&r&&(i.root+=` ${r}`),i})(ce);return Cb.jsxs(rw,Us({as:ae,className:Vx(ue.root,a),ownerState:ce,onBlur:ee,onClick:m,onContextMenu:K,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:U,onMouseLeave:X,onMouseUp:Y,onDragLeave:G,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:l?-1:q,type:O},se,D,{children:[i,V?Cb.jsx(QC,Us({ref:P,center:o},L)):null]}))}));function iw(e){return Ux("MuiTypography",e)}Kx("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const aw=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],sw=MC("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${zb(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Us({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),lw={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},cw={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},uw=S.forwardRef((function(e,t){const n=WM({props:e,name:"MuiTypography"}),r=(e=>cw[e]||e)(n.color),o=Fx(Us({},n,{color:r})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=lw}=o,f=ol(o,aw),m=Us({},o,{align:i,color:r,className:a,component:s,gutterBottom:l,noWrap:c,paragraph:u,variant:d,variantMapping:p}),h=s||(u?"p":p[d]||lw[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return BS({root:["root",i,"inherit"!==e.align&&`align${zb(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},iw,a)})(m);return Cb.jsx(sw,Us({as:h,ref:t,ownerState:m,className:Vx(g.root,a)},f))})),dw=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function pw(e){const t=[],n=[];return Array.from(e.querySelectorAll(dw)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function fw(){return!0}function mw(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=pw,isEnabled:a=fw,open:s}=e,l=S.useRef(!1),c=S.useRef(null),u=S.useRef(null),d=S.useRef(null),p=S.useRef(null),f=S.useRef(!1),m=S.useRef(null),h=ES(t.ref,m),g=S.useRef(null);S.useEffect((()=>{s&&m.current&&(f.current=!n)}),[n,s]),S.useEffect((()=>{if(!s||!m.current)return;const e=MS(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}}),[s]),S.useEffect((()=>{if(!s||!m.current)return;const e=MS(m.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(l.current=!0,u.current&&u.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||l.current)return void(l.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==c.current&&e.activeElement!==u.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==c.current&&e.activeElement!==u.current||(n=i(m.current)),n.length>0){var o,s;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(s=g.current)?void 0:s.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,s,i]);const y=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return Cb.jsxs(S.Fragment,{children:[Cb.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:c,"data-testid":"sentinelStart"}),S.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),Cb.jsx("div",{tabIndex:s?0:-1,onFocus:y,ref:u,"data-testid":"sentinelEnd"})]})}const hw=S.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=S.useState(null),s=ES(S.isValidElement(n)?n.ref:null,t);if(bS((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),bS((()=>{if(i&&!o)return wS(t,i),()=>{wS(t,null)}}),[t,i,o]),o){if(S.isValidElement(n)){const e={ref:s};return S.cloneElement(n,e)}return Cb.jsx(S.Fragment,{children:n})}return Cb.jsx(S.Fragment,{children:i?N.createPortal(n,i):i})}));function gw(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function yw(e){return parseInt(CS(e).getComputedStyle(e).paddingRight,10)||0}function vw(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&gw(e,o)}))}function bw(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function xw(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=MS(e);return t.body===e?CS(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(MS(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${yw(r)+e}px`;const t=MS(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${yw(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=MS(r).body;else{const t=r.parentElement,n=CS(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const Sw=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&gw(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);vw(t,e.mount,e.modalRef,r,!0);const o=bw(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=bw(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=xw(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=bw(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&gw(e.modalRef,t),vw(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&gw(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Mw(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=Sw,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:d}=e,p=S.useRef({}),f=S.useRef(null),m=S.useRef(null),h=ES(m,d),[g,y]=S.useState(!u),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let b=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(b=!1);const x=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),M=()=>{o.mount(x(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},C=kS((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||MS(f.current).body;o.add(x(),e),m.current&&M()})),w=S.useCallback((()=>o.isTopModal(x())),[o]),k=kS((e=>{f.current=e,e&&(u&&w()?M():m.current&&gw(m.current,b))})),E=S.useCallback((()=>{o.remove(x(),b)}),[b,o]);S.useEffect((()=>()=>{E()}),[E]),S.useEffect((()=>{u?C():v&&i||E()}),[u,E,v,i,C]);const T=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},q=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const n=zC(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=Us({},n,t);return Us({role:"presentation"},r,{onKeyDown:T(r),ref:h})},getBackdropProps:(e={})=>Us({"aria-hidden":!0},e,{onClick:q(e),open:u}),getTransitionProps:()=>({onEnter:SS((()=>{y(!1),a&&a()}),null==l?void 0:l.props.onEnter),onExited:SS((()=>{y(!0),s&&s(),i&&E()}),null==l?void 0:l.props.onExited)}),rootRef:h,portalRef:k,isTopModal:w,exited:g,hasTransition:v}}const Cw=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],ww={entering:{opacity:1},entered:{opacity:1}},kw=S.forwardRef((function(e,t){const n=VM(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:c,onEntered:u,onEntering:d,onExit:p,onExited:f,onExiting:m,style:h,timeout:g=r,TransitionComponent:y=ef}=e,v=ol(e,Cw),b=S.useRef(null),x=ES(b,a.ref,t),M=e=>t=>{if(e){const n=b.current;void 0===t?e(n):e(n,t)}},C=M(d),w=M(((e,t)=>{NC(e);const r=OC({style:h,timeout:g,easing:s},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)})),k=M(u),E=M(m),T=M((e=>{const t=OC({style:h,timeout:g,easing:s},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),q=M(f);return Cb.jsx(y,Us({appear:i,in:l,nodeRef:b,onEnter:w,onEntered:k,onEntering:C,onExit:T,onExited:q,onExiting:E,addEndListener:e=>{o&&o(b.current,e)},timeout:g},v,{children:(e,t)=>S.cloneElement(a,Us({style:Us({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},ww[e],h,a.props.style),ref:x},t))}))}));function Ew(e){return Ux("MuiBackdrop",e)}Kx("MuiBackdrop",["root","invisible"]);const Tw=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],qw=MC("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Us({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),Lw=S.forwardRef((function(e,t){var n,r,o;const i=WM({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:c={},componentsProps:u={},invisible:d=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=kw,transitionDuration:g}=i,y=ol(i,Tw),v=Us({},i,{component:l,invisible:d}),b=(e=>{const{classes:t,invisible:n}=e;return BS({root:["root",n&&"invisible"]},Ew,t)})(v),x=null!=(n=f.root)?n:u.root;return Cb.jsx(h,Us({in:p,timeout:g},y,{children:Cb.jsx(qw,Us({"aria-hidden":!0},x,{as:null!=(r=null!=(o=m.root)?o:c.Root)?r:l,className:Vx(b.root,s,null==x?void 0:x.className),ownerState:Us({},v,null==x?void 0:x.ownerState),classes:b,ref:t,children:a}))}))}));function Nw(e){return Ux("MuiButton",e)}const Ow=Kx("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"]),Dw=S.createContext({}),Aw=S.createContext(void 0),Rw=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Pw=e=>Us({},"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}}),Iw=MC(ow,{shouldForwardProp:e=>SC(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${zb(n.color)}`],t[`size${zb(n.size)}`],t[`${n.variant}Size${zb(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 Us({},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":Us({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:aM(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})`:aM(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})`:aM(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":Us({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Ow.focusVisible}`]:Us({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Ow.disabled}`]:Us({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 ${aM(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"},[`&.${Ow.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Ow.disabled}`]:{boxShadow:"none"}})),zw=MC("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${zb(n.size)}`]]}})((({ownerState:e})=>Us({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Pw(e)))),jw=MC("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${zb(n.size)}`]]}})((({ownerState:e})=>Us({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Pw(e)))),Fw=S.forwardRef((function(e,t){const n=S.useContext(Dw),r=S.useContext(Aw),o=WM({props:yS(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:m=!1,size:h="medium",startIcon:g,type:y,variant:v="text"}=o,b=ol(o,Rw),x=Us({},o,{color:a,component:s,disabled:c,disableElevation:u,disableFocusRipple:d,fullWidth:m,size:h,type:y,variant:v}),M=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return Us({},a,BS({root:["root",i,`${i}${zb(t)}`,`size${zb(o)}`,`${i}Size${zb(o)}`,`color${zb(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${zb(o)}`],endIcon:["icon","endIcon",`iconSize${zb(o)}`]},Nw,a))})(x),C=g&&Cb.jsx(zw,{className:M.startIcon,ownerState:x,children:g}),w=p&&Cb.jsx(jw,{className:M.endIcon,ownerState:x,children:p}),k=r||"";return Cb.jsxs(Iw,Us({ownerState:x,className:Vx(n.className,M.root,l,k),component:s,disabled:c,focusRipple:!d,focusVisibleClassName:Vx(M.focusVisible,f),ref:t,type:y},b,{classes:M,children:[C,i,w]}))}));function Bw(e){return Ux("MuiModal",e)}Kx("MuiModal",["root","hidden","backdrop"]);const _w=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Hw=MC("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>Us({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),$w=MC(Lw,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Vw=S.forwardRef((function(e,t){var n,r,o,i,a,s;const l=WM({name:"MuiModal",props:e}),{BackdropComponent:c=$w,BackdropProps:u,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:y={},disableAutoFocus:v=!1,disableEnforceFocus:b=!1,disableEscapeKeyDown:x=!1,disablePortal:M=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:k=!1,keepMounted:E=!1,onBackdropClick:T,open:q,slotProps:L,slots:N}=l,O=ol(l,_w),D=Us({},l,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:b,disableEscapeKeyDown:x,disablePortal:M,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:k,keepMounted:E}),{getRootProps:A,getBackdropProps:R,getTransitionProps:P,portalRef:I,isTopModal:z,exited:j,hasTransition:F}=Mw(Us({},D,{rootRef:t})),B=Us({},D,{exited:j}),_=(e=>{const{open:t,exited:n,classes:r}=e;return BS({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Bw,r)})(B),H={};if(void 0===f.props.tabIndex&&(H.tabIndex="-1"),F){const{onEnter:e,onExited:t}=P();H.onEnter=e,H.onExited=t}const $=null!=(n=null!=(r=null==N?void 0:N.root)?r:g.Root)?n:Hw,V=null!=(o=null!=(i=null==N?void 0:N.backdrop)?i:g.Backdrop)?o:c,W=null!=(a=null==L?void 0:L.root)?a:y.root,U=null!=(s=null==L?void 0:L.backdrop)?s:y.backdrop,K=BC({elementType:$,externalSlotProps:W,externalForwardedProps:O,getSlotProps:A,additionalProps:{ref:t,as:h},ownerState:B,className:Vx(d,null==W?void 0:W.className,null==_?void 0:_.root,!B.open&&B.exited&&(null==_?void 0:_.hidden))}),G=BC({elementType:V,externalSlotProps:U,additionalProps:u,getSlotProps:e=>R(Us({},e,{onClick:t=>{T&&T(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Vx(null==U?void 0:U.className,null==u?void 0:u.className,null==_?void 0:_.backdrop),ownerState:B});return E||q||F&&!j?Cb.jsx(hw,{ref:I,container:m,disablePortal:M,children:Cb.jsxs($,Us({},K,{children:[!k&&c?Cb.jsx(V,Us({},G)):null,Cb.jsx(mw,{disableEnforceFocus:b,disableAutoFocus:v,disableRestoreFocus:C,isEnabled:z,open:q,children:S.cloneElement(f,H)})]}))}):null}));function Ww(e){return Ux("MuiDivider",e)}Kx("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const Uw=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Kw=MC("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>Us({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:aM(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>Us({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>Us({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>Us({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>Us({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Gw=MC("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Us({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),Yw=S.forwardRef((function(e,t){const n=WM({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:c="horizontal",role:u=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=ol(n,Uw),m=Us({},n,{absolute:r,component:a,flexItem:s,light:l,orientation:c,role:u,textAlign:d,variant:p}),h=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return BS({root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},Ww,r)})(m);return Cb.jsx(Kw,Us({as:a,className:Vx(h.root,i),role:u,ref:t,ownerState:m},f,{children:o?Cb.jsx(Gw,{className:h.wrapper,ownerState:m,children:o}):null}))}));Yw.muiSkipListHighlight=!0;const Xw=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Jw(e){return`scale(${e}, ${e**2})`}const Zw={entering:{opacity:1,transform:Jw(1)},entered:{opacity:1,transform:"none"}},Qw="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ek=S.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:s,onEntered:l,onEntering:c,onExit:u,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:h=ef}=e,g=ol(e,Xw),y=NS(),v=S.useRef(),b=VM(),x=S.useRef(null),M=ES(x,o.ref,t),C=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},w=C(c),k=C(((e,t)=>{NC(e);const{duration:n,delay:r,easing:o}=OC({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=b.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=n,e.style.transition=[b.transitions.create("opacity",{duration:a,delay:r}),b.transitions.create("transform",{duration:Qw?a:.666*a,delay:r,easing:o})].join(","),s&&s(e,t)})),E=C(l),T=C(p),q=C((e=>{const{duration:t,delay:n,easing:r}=OC({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=b.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[b.transitions.create("opacity",{duration:o,delay:n}),b.transitions.create("transform",{duration:Qw?o:.666*o,delay:Qw?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=Jw(.75),u&&u(e)})),L=C(d);return Cb.jsx(h,Us({appear:r,in:a,nodeRef:x,onEnter:k,onEntered:E,onEntering:w,onExit:q,onExited:L,onExiting:T,addEndListener:e=>{"auto"===m&&y.start(v.current||0,e),n&&n(x.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>S.cloneElement(o,Us({style:Us({opacity:0,transform:Jw(.75),visibility:"exited"!==e||a?void 0:"hidden"},Zw[e],f,o.props.style),ref:M},t))}))}));ek.muiSupportAuto=!0;const tk=S.createContext({});function nk(e){return Ux("MuiList",e)}Kx("MuiList",["root","padding","dense","subheader"]);const rk=["children","className","component","dense","disablePadding","subheader"],ok=MC("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>Us({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),ik=S.forwardRef((function(e,t){const n=WM({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=n,c=ol(n,rk),u=S.useMemo((()=>({dense:a})),[a]),d=Us({},n,{component:i,dense:a,disablePadding:s}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return BS({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},nk,t)})(d);return Cb.jsx(tk.Provider,{value:u,children:Cb.jsxs(ok,Us({as:i,className:Vx(p.root,o),ref:t,ownerState:d},c,{children:[l,r]}))})}));function ak(e){return Ux("MuiListItemButton",e)}const sk=Kx("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),lk=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],ck=MC(ow,{shouldForwardProp:e=>SC(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})=>Us({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"}},[`&.${sk.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:aM(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${sk.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:aM(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${sk.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:aM(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})`:aM(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${sk.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${sk.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}))),uk=S.forwardRef((function(e,t){const n=WM({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=ol(n,lk),m=S.useContext(tk),h=S.useMemo((()=>({dense:s||m.dense||!1,alignItems:r,disableGutters:l})),[r,m.dense,s,l]),g=S.useRef(null);bS((()=>{o&&g.current&&g.current.focus()}),[o]);const y=Us({},n,{alignItems:r,dense:h.dense,disableGutters:l,divider:c,selected:d}),v=(e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:a,selected:s}=e;return Us({},n,BS({root:["root",r&&"dense",!i&&"gutters",a&&"divider",o&&"disabled","flex-start"===t&&"alignItemsFlexStart",s&&"selected"]},ak,n))})(y),b=ES(g,t);return Cb.jsx(tk.Provider,{value:h,children:Cb.jsx(ck,Us({ref:b,href:f.href||f.to,component:(f.href||f.to)&&"div"===i?"button":i,focusVisibleClassName:Vx(v.focusVisible,u),ownerState:y,className:Vx(v.root,p)},f,{classes:v,children:a}))})}));function dk(e){return Ux("MuiListItemIcon",e)}Kx("MuiListItemIcon",["root","alignItemsFlexStart"]);const pk=["className"],fk=MC("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})=>Us({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),mk=S.forwardRef((function(e,t){const n=WM({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=ol(n,pk),i=Us({},n,{alignItems:S.useContext(tk).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return BS({root:["root","flex-start"===t&&"alignItemsFlexStart"]},dk,n)})(i);return Cb.jsx(fk,Us({className:Vx(a.root,r),ownerState:i,ref:t},o))}));function hk(e){return Ux("MuiListItemText",e)}const gk=Kx("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),yk=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],vk=MC("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${gk.primary}`]:t.primary},{[`& .${gk.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})((({ownerState:e})=>Us({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56}))),bk=S.forwardRef((function(e,t){const n=WM({props:e,name:"MuiListItemText"}),{children:r,className:o,disableTypography:i=!1,inset:a=!1,primary:s,primaryTypographyProps:l,secondary:c,secondaryTypographyProps:u}=n,d=ol(n,yk),{dense:p}=S.useContext(tk);let f=null!=s?s:r,m=c;const h=Us({},n,{disableTypography:i,inset:a,primary:!!f,secondary:!!m,dense:p}),g=(e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return BS({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},hk,t)})(h);return null==f||f.type===uw||i||(f=Cb.jsx(uw,Us({variant:p?"body2":"body1",className:g.primary,component:null!=l&&l.variant?void 0:"span",display:"block"},l,{children:f}))),null==m||m.type===uw||i||(m=Cb.jsx(uw,Us({variant:"body2",className:g.secondary,color:"text.secondary",display:"block"},u,{children:m}))),Cb.jsxs(vk,Us({className:Vx(g.root,o),ownerState:h,ref:t},d,{children:[f,m]}))}));function xk(e){return Ux("MuiPopover",e)}Kx("MuiPopover",["root","paper"]);const Sk=["onEntering"],Mk=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Ck=["slotProps"];function wk(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function kk(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Ek(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Tk(e){return"function"==typeof e?e():e}const qk=MC(Vw,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Lk=MC(PC,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Nk=S.forwardRef((function(e,t){var n,r,o;const i=WM({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:u="anchorEl",children:d,className:p,container:f,elevation:m=8,marginThreshold:h=16,open:g,PaperProps:y={},slots:v,slotProps:b,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:M=ek,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:k=!1}=i,E=ol(i.TransitionProps,Sk),T=ol(i,Mk),q=null!=(n=null==b?void 0:b.paper)?n:y,L=S.useRef(),N=ES(L,q.ref),O=Us({},i,{anchorOrigin:l,anchorReference:u,elevation:m,marginThreshold:h,externalPaperSlotProps:q,transformOrigin:x,TransitionComponent:M,transitionDuration:C,TransitionProps:E}),D=(e=>{const{classes:t}=e;return BS({root:["root"],paper:["paper"]},xk,t)})(O),A=S.useCallback((()=>{if("anchorPosition"===u)return c;const e=Tk(s),t=(e&&1===e.nodeType?e:MS(L.current).body).getBoundingClientRect();return{top:t.top+wk(t,l.vertical),left:t.left+kk(t,l.horizontal)}}),[s,l.horizontal,l.vertical,c,u]),R=S.useCallback((e=>({vertical:wk(e,x.vertical),horizontal:kk(e,x.horizontal)})),[x.horizontal,x.vertical]),P=S.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=R(t);if("none"===u)return{top:null,left:null,transformOrigin:Ek(n)};const r=A();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,l=i+t.width,c=CS(Tk(s)),d=c.innerHeight-h,p=c.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,n.vertical+=e}else if(null!==h&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==h&&i<h){const e=i-h;i-=e,n.horizontal+=e}else if(l>p){const e=l-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Ek(n)}}),[s,u,A,R,h]),[I,z]=S.useState(g),j=S.useCallback((()=>{const e=L.current;if(!e)return;const t=P(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,z(!0)}),[P]);S.useEffect((()=>(k&&window.addEventListener("scroll",j),()=>window.removeEventListener("scroll",j))),[s,k,j]);S.useEffect((()=>{g&&j()})),S.useImperativeHandle(a,(()=>g?{updatePosition:()=>{j()}}:null),[g,j]),S.useEffect((()=>{if(!g)return;const e=function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}((()=>{j()})),t=CS(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,g,j]);let F=C;"auto"!==C||M.muiSupportAuto||(F=void 0);const B=f||(s?MS(Tk(s)).body:void 0),_=null!=(r=null==v?void 0:v.root)?r:qk,H=null!=(o=null==v?void 0:v.paper)?o:Lk,$=BC({elementType:H,externalSlotProps:Us({},q,{style:I?q.style:Us({},q.style,{opacity:0})}),additionalProps:{elevation:m,ref:N},ownerState:O,className:Vx(D.paper,null==q?void 0:q.className)}),V=BC({elementType:_,externalSlotProps:(null==b?void 0:b.root)||{},externalForwardedProps:T,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:B,open:g},ownerState:O,className:Vx(D.root,p)}),{slotProps:W}=V,U=ol(V,Ck);return Cb.jsx(_,Us({},U,!IC(_)&&{slotProps:W,disableScrollLock:k},{children:Cb.jsx(M,Us({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),j()},onExited:()=>{z(!1)},timeout:F},E,{children:Cb.jsx(H,Us({},$,{children:d}))}))}))}));function Ok(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Dk(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Ak(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rk(){return Rk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rk.apply(null,arguments)}function Pk(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 Ik(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pk(Object(n),!0).forEach((function(t){Ak(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pk(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zk(){zk=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof g?t:g,a=Object.create(i.prototype),s=new L(r||[]);return o(a,"_invoke",{value:k(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var p="suspendedStart",f="executing",m="completed",h={};function g(){}function y(){}function v(){}var b={};c(b,a,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(N([])));S&&S!==n&&r.call(S,a)&&(b=S);var M=v.prototype=g.prototype=Object.create(b);function C(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function n(o,i,a,s){var l=d(e[o],e,i);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==typeof u&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function k(t,n,r){var o=p;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=E(s,r);if(l){if(l===h)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=f;var c=d(t,n,r);if("normal"===c.type){if(o=r.done?m:"suspendedYield",c.arg===h)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function E(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,E(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,h;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,h):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function q(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function N(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(typeof t+" is not iterable")}return y.prototype=v,o(M,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:y,configurable:!0}),y.displayName=c(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(M),e},t.awrap=function(e){return{__await:e}},C(w.prototype),c(w.prototype,s,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new w(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(M),c(M,l,"Generator"),c(M,a,(function(){return this})),c(M,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=N,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(q),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),q(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;q(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:N(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),h}},t}function jk(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||_k(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fk(e){return function(e){if(Array.isArray(e))return Ok(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||_k(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bk(e){return Bk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bk(e)}function _k(e,t){if(e){if("string"==typeof e)return Ok(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ok(e,t):void 0}}var Hk=function(e){var t=e.className,n=e.title,r=e.path,o=e.fillRule;return x.createElement(LC,{className:t,viewBox:"0 0 16 16",fontSize:"small",role:"img",style:{height:12,width:12}},x.createElement("path",{d:r}),n?x.createElement("title",null,n):void 0,o?x.createElement("use",{fillRule:o}):void 0)},$k={STYLE:{ELLIPSIS:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},FOCUS:{boxShadow:"inset 0 0 0 2px #177FE6"},ICONS:{COLOR:{PRIMARY:"rgba(89, 89, 89)",SECONDARY:"rgba(89, 89, 89, 0.8)",DISABLED:"rgba(89, 89, 89, 0.4)"}}}},Vk={L:new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),R:new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞‏יִײַ-ﬨשׁ-ﭏ]"),AL:new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]")},Wk=function(e){return Vk.R.test(e)||Vk.AL.test(e)};function Uk(e){for(var t,n,r=e?e.length:0,o=0;o<r;o++){if(n=t=e[o],Vk.L.test(n))return"ltr";if(Wk(t))return"rtl"}return"ltr"}var Kk,Gk,Yk=MC(Fw,{shouldForwardProp:function(e){return"direction"!==e&&"padding"!==e&&"styling"!==e}})((function(e){var t=e.direction,n=e.padding,r=e.styling,o=r.fontSize,i=r.fontFamily,a=r.color;return{fontWeight:"normal",lineHeight:"normal",fontSize:o,fontFamily:i,color:a,height:"100%",minWidth:"0px",maxWidth:"640px",padding:n,"&:disabled":{color:a,opacity:1},"& .MuiButton-startIcon":{margin:"ltr"===t?"0 2px":void 0},"& .MuiButton-endIcon":{margin:"rtl"===t?"0 2px":void 0}}})),Xk=MC((function(e){var t=e.className;return x.createElement(Hk,{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:$k.STYLE.ICONS.COLOR.SECONDARY,marginTop:"1px"}})),Jk=MC((function(e){var t=e.className;return x.createElement(Hk,{className:t,path:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})}))((function(){return{color:$k.STYLE.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:$k.STYLE.ICONS.COLOR.DISABLED,opacity:.6}}})),Zk=function(e){var t=e.isOpen,n=e.onClick,r=e.popoverId,o=e.source,i=o.styling,a=o.info.text,s=o.layout.direction,l=o.meta,c=l.allowed,u=l.hasAlternatives,d=l.hasCyclic,p=l.hasMultiple,f=l.isCyclic,m=l.isLocked,h=o.resources.translator,g=o.services.focus,y=o.settings.isDisabled,v=o.state.inSelections,b=!(!c.change||!u),S=!(!c.reload||!f),M=(b||S)&&!v&&!y(),C={pointerEvents:M?"auto":"none"},w=function(e){var t=e.allowed,n=e.canChange,r=e.canReload,o=e.direction,i=e.hasCyclic,a=e.isLocked,s={top:"8px",right:"6px",bottom:"8px",left:"6px"};if(!e.hasMultiple)return"".concat(s.top," ").concat(s.right," ").concat(s.bottom," ").concat(s.left);var l=i&&t.reload;return"ltr"===o&&(a?s.left="0px":r||!n&&l?s.left="4px":n||(s.left="2px"),n||r||(s.right="0px")),"rtl"===o&&(a?s.right="0px":r||!n&&l?s.right="4px":n||(s.right="2px"),n||r||(s.left="0px")),"".concat(s.top," ").concat(s.right," ").concat(s.bottom," ").concat(s.left)}({allowed:c,canChange:b,canReload:S,direction:s,hasCyclic:d,hasMultiple:p,isLocked:m}),k=Ak(Ak({},"rtl"===s?"endIcon":"startIcon",m&&x.createElement(Xk,{height:12})),"rtl"===s?"startIcon":"endIcon",(b||S)&&x.createElement(Jk,{className:"".concat(v||y()?"disabled":"")})),E=L(),T=L();q((function(){t||g.get()&&(E.current.focus(),T.current.focusVisible(),g.set(!1))}));var N=Uk(a),O="Accessibility.".concat(M?"Alternative":"Normal",".Instructions");return x.createElement(Yk,Rk({action:T,"aria-describedby":r,"aria-label":h.get(O),color:"inherit",direction:s,disabled:!M||y()||v,onClick:function(e){M&&n(e)},padding:w,ref:E,style:C,styling:i.title,title:a},k),x.createElement("span",{dir:N,style:$k.STYLE.ELLIPSIS},a))},Qk=function(e){var t=e.className,n=e.title;return x.createElement(Hk,{className:t,title:n,path:"M 6 2 h 10 V 1 H 6 Z m 5 5 h 5 V 6 h -5 Z m 5 5 h -5 v -1 h 5 Z M 5 10 h 1 v 2.663 a 3.5 3.5 0 1 0 -2.922 0.036 l -0.406 0.914 A 4.501 4.501 0 1 1 7.329 13 H 9 v 1 H 5 Z"})},eE=MC(Fw,{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e&&"styling"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast,o=e.styling.color;return{fontWeight:"normal",lineHeight:"normal",color:o,height:"24px",width:"24px",padding:0,marginLeft:"ltr"!==t||n?void 0:"4px",marginRight:"rtl"!==t||r?void 0:"4px","&:disabled":{color:o,opacity:1}}})),tE=MC(Qk,{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast;return{color:$k.STYLE.ICONS.COLOR.PRIMARY,marginTop:"1px",marginLeft:"ltr"!==t||n?void 0:"4px",marginRight:"rtl"!==t||r?void 0:"4px"}})),nE=MC((function(e){var t=e.className,n=e.title;return x.createElement(Hk,{className:t,title:n,path:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7Z"})}),{})((function(){return{color:$k.STYLE.ICONS.COLOR.SECONDARY,"&.disabled":{color:$k.STYLE.ICONS.COLOR.DISABLED}}})),rE=function(e){var t=e.source;if(!t.meta.isCyclic)return null;var n=jk(T(!1),2),r=n[0],o=n[1],i=t.styling,a=t.action.stepCycle,s=t.info,l=s.position,c=s.tooltip,u=t.layout.direction,d=t.meta,p=d.allowed,f=d.isFirst,m=d.isLast,h=t.settings.isDisabled,g=t.state.inSelections;return q((function(){r&&o(!1)}),[l]),p.reload?x.createElement(eE,{direction:u,disabled:r||g||h(),isFirst:f,isLast:m,onClick:function(){return o(!0),void a()},styling:i.title,title:c,variant:"outlined"},x.createElement(nE,{className:"".concat(r||g||h()?"disabled":"")})):x.createElement(tE,{direction:u,isFirst:f,isLast:m,style:{flexShrink:0},title:c})},oE=function(e){var t=e.className,n=e.title;return x.createElement(Hk,{className:t,title:n,path:"M7 4h9v1H7V4ZM9 8h7v1H9V8ZM11 12h5v1h-5v-1ZM1 4v3.526a3.5 3.5 0 0 0 3.5 3.5h2.31L5.22 9.402l.715-.7L8.7 11.527 5.935 14.35l-.714-.7 1.59-1.624H4.5a4.5 4.5 0 0 1-4.5-4.5V4h1Z"})},iE=MC(Fw,{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}}})),aE={color:$k.STYLE.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:$k.STYLE.ICONS.COLOR.DISABLED}},sE=MC((function(e){var t=e.className;return x.createElement(Hk,{className:t,path:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5 8.5 8z"})}))((function(){return aE})),lE=MC((function(e){var t=e.className;return x.createElement(Hk,{className:t,path:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))((function(){return aE})),cE=MC(oE,{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast;return{color:$k.STYLE.ICONS.COLOR.PRIMARY,marginTop:"1px",marginLeft:"ltr"!==t||n?void 0:"4px",marginRight:"rtl"!==t||r?void 0:"4px"}})),uE=function(e){var t=e.source;if(!t.meta.isDrillDown)return null;var n=t.styling,r=t.action.drillUp,o=t.info,i=o.breadcrumbs,a=o.tooltip,s=t.layout.direction,l=t.meta,c=l.isFirst,u=l.isLast,d=t.settings.isDisabled,p=t.state.inSelections,f=d()||p?"disabled":null,m=Ak({},"rtl"===s?"startIcon":"endIcon","rtl"===s?x.createElement(lE,{className:f}):x.createElement(sE,{className:f})),h=i.map((function(e,t){var o=Uk(e);return x.createElement(iE,Rk({disabled:d()||p,key:"breadcrumb-".concat(e),onClick:function(){return function(e){r({steps:i.length-e})}(t)},styling:n.title,title:e},m),x.createElement("span",{dir:o,style:$k.STYLE.ELLIPSIS},e))}));return x.createElement(x.Fragment,null,"rtl"===s?h.reverse():void 0,x.createElement(cE,{direction:s,isFirst:c,isLast:u,style:{flexShrink:0},title:a}),"rtl"===s?void 0:h)},dE=MC(uk,{shouldForwardProp:function(e){return"nested"!==e&&"rtl"!==e}})((function(e){var t=e.nested,n=e.rtl;return{padding:"4px ".concat(t&&n?"32px":"16px"," 4px ").concat(t&&!n?"32px":"16px"),"&:focus":Ik({},$k.STYLE.FOCUS)}})),pE=MC(mk)((function(){return{marginRight:0,justifyContent:"center"}})),fE=MC((function(e){var t=e.className;return x.createElement(Hk,{className:t,path:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2 3 3Z"})}))((function(){return{color:$k.STYLE.ICONS.COLOR.SECONDARY}})),mE=MC(Qk)((function(){return{color:$k.STYLE.ICONS.COLOR.SECONDARY}})),hE=MC(oE)((function(){return{color:$k.STYLE.ICONS.COLOR.SECONDARY,fontWeight:600}})),gE=function(e){var t=e.id,n=e.meta,r=e.nested,o=e.onClick,i=e.selected,a=e.source,s=e.text,l=a.styling,c=a.settings.isRTL,u=Ik({fontWeight:!n||n.isNormal?"normal":600,lineHeight:"normal",fontSize:l.popover.fontSize,fontFamily:l.popover.fontFamily,color:l.popover.color,textAlign:c?"end":"start"},$k.STYLE.ELLIPSIS),d=Uk(s),p=x.createElement(pE,{sx:c?{paddingRight:"12px"}:{paddingLeft:"12px"}},function(e){var t=e.meta;return e.selected?x.createElement(fE,{height:12}):null!=t&&t.isCyclic?x.createElement(mE,{height:12}):null!=t&&t.isDrillDown?x.createElement(hE,{height:12}):void 0}({meta:n,selected:i}));return x.createElement(x.Fragment,{key:t},x.createElement(dE,{autoFocus:i,nested:r,onClick:function(e){return null==o?void 0:o(e)},rtl:c,title:s},c&&p,x.createElement(bk,{dir:d,primaryTypographyProps:{style:u}},s),!c&&p))},yE=MC(Yw)((function(){return{marginTop:"-1px"}})),vE=function(e){var t=e.anchor,n=e.id,r=e.onClose,o=e.open,i=e.source,a=i.action,s=a.changeTo,l=a.drillUp,c=a.setActiveField,u=i.info,d=u.breadcrumbs,p=u.group,f=u.id,m=u.text,h=i.data.alternatives,g=i.meta,y=g.isCyclic,v=g.isDrillDown,b=i.resources.translator,S=i.services.focus,M=y||v,C=x.createElement(gE,{id:f,key:f,meta:i.meta,onClick:r,selected:!M,source:i,text:M?p.name:m}),w=M&&p.items.map((function(e){return x.createElement(gE,{id:e.id,nested:!0,onClick:function(t){return function(e,t){y&&c({fieldIndex:t.index}),v&&l({steps:d.length-t.index}),r()}(0,e)},selected:e.current,source:i,text:e.text})})),k=h.map((function(e,t){return x.createElement(x.Fragment,{key:e.id},x.createElement(gE,{id:e.id,key:e.id,meta:e.meta,onClick:function(t){return n=t,r=e.id,"keydown"===n.type&&S.set(!0),void s({id:r});var n,r},source:i,text:e.text}),t<h.length-1&&x.createElement(yE,{key:"divider-".concat(e.id)}))}));return x.createElement(Nk,{anchorEl:t,anchorOrigin:{vertical:"top",horizontal:"center"},id:n,onClose:r,open:o,slotProps:{paper:{style:{minWidth:"250px",maxWidth:"640px",maxHeight:"300px"}}},transformOrigin:{vertical:"bottom",horizontal:"center"}},x.createElement(ik,{"aria-label":b.get("Accessibility.Popover.Instructions"),dense:!0},C,w,x.createElement(yE,{key:"divider-".concat(f)}),k))},bE=function(e){var t=e.source,n=jk(T(null),2),r=n[0],o=n[1],i={id:r?"alternatives-popover":void 0,isOpen:Boolean(r)},a=t.layout.direction,s=t.services.focus,l=x.createElement(rE,{source:t}),c=x.createElement(uE,{source:t});return x.createElement(x.Fragment,null,"rtl"===a?void 0:c,"rtl"===a?void 0:l,x.createElement(Zk,{onClick:function(e){var t=e.currentTarget;t.classList.contains("qcm-focus-visible")&&s.set(!0),o(t)},isOpen:i.isOpen,popoverId:i.id,source:t}),x.createElement(vE,{anchor:r,id:i.id,onClose:function(){o(null)},open:i.isOpen,source:t}),"rtl"===a?c:void 0,"rtl"===a?l:void 0)};var xE=function(){if(Gk)return Kk;Gk=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return Kk=function e(){var t,n,r,l,c,u,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(m&&l&&(i(l)||(c=o(l)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&i(r)?r:{},a(d,{name:n,newValue:e(m,u,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},Kk}(),SE=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(xE);function ME(e){var t=e.model,n=e.properties;return t.modifiers?t.modifiers.apply({model:t,properties:n}):Promise.resolve()}function CE(e){return Array.isArray(e)}function wE(e){return null!=e&&!Array.isArray(e)&&"object"===Bk(e)}function kE(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function EE(e){return void 0===e}function TE(e,t){if(wE(e)&&wE(t)){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n=Object.keys(e),r=0,o=n.length;r<o;r+=1)if(!TE(e[n[r]],t[n[r]]))return!1;return!0}if(CE(e)&&CE(t)){if(e.length!==t.length)return!1;for(var i=0,a=e.length;i<a;i+=1)if(!TE(e[i],t[i]))return!1;return!0}return e===t}function qE(e){var t=e.oldData,n=void 0===t?{}:t,r=e.newData,o=void 0===r?{}:r,i=e.basePath,a=void 0===i?"":i,s=[];return Object.keys(o).forEach((function(e){var t=function(e){return e?SE(!0,{},{value:e}).value:e}(o[e]),r=n[e],i="".concat(a,"/").concat(e);TE(t,r)||kE(o,e)||(EE(r)?s.push({op:"add",path:i,value:t}):wE(t)&&wE(r)?s.push.apply(s,Fk(qE({oldData:r,newData:t,basePath:i}))):CE(t)&&CE(r)?s.push.apply(s,Fk(function(e){var t=e.newArray,n=e.basePath,r=[];return TE(t,e.oldArray.slice())||(!EE(t[0])&&EE(t[0].qInfo)||0===t.length)&&r.push({op:"replace",path:n,value:t}),r}({oldArray:r,newArray:t,basePath:i}))):s.push({op:"replace",path:i,value:t}))})),Object.keys(n).forEach((function(e){EE(o[e])&&!kE(n,e)&&s.push({op:"remove",path:"".concat(a,"/").concat(e)})})),s}function LE(e){var t=e.model,n=qE({oldData:e.oldProperties,newData:e.newProperties});null!=t&&t.applyPatches&&null!=n&&n.length&&t.applyPatches(n.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),!0)}function NE(e){return OE.apply(this,arguments)}function OE(){return(OE=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Dk(i,r,o,a,s,"next",e)}function s(e){Dk(i,r,o,a,s,"throw",e)}a(void 0)}))}}(zk().mark((function e(t){var n,r,o,i,a,s,l,c,u,d,p,f;return zk().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.from,r=t.to,o=t.model,i=t.container,a=t.skipAttributeExpressions,s=t.onChange,e.next=3,o.getEffectiveProperties();case 3:return l=e.sent,c=l.qHyperCubeDef[i].findIndex((function(e){return e.qDef.cId===n})),u=l.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[i].findIndex((function(e){return e.qDef.cId===r})),d=SE(!0,{},l),p=d.qHyperCubeDef[i][c],(f=d.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[i][u]).qAttributeDimensions=p.qAttributeDimensions,p.qAttributeDimensions=[],a||(f.qAttributeExpressions=p.qAttributeExpressions,p.qAttributeExpressions=[]),d.qHyperCubeDef[i][c]=f,d.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[i][u]=p,s({fromItem:p,toItem:f,oldProperties:l,newProperties:d,model:o}),e.next=17,ME({model:o,properties:d});case 17:o.colorSupport&&o.colorSupport.colorByUpdater(d,"qHyperCubeDef."),LE({model:o,oldProperties:l,newProperties:d});case 19:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function DE(e){var t=e.callbacks,n=e.data,r=e.resources,o=e.settings,i=t.onChange,a=n.infos,s=r.app,l=r.model,c=r.translator,u=o.skipAttributeExpressions;return a.map((function(e,t){var n=e.cId,r=e.qGrouping,o=e.qGroupFallbackTitles,a=e.qGroupPos,d=e.qFallbackTitle,p=e.qLocked,f=e.title,m="C"===r,h="H"===r,g="N"===r,y="number"==typeof e.explicitColumn?e.explicitColumn:t,v=function(t,n){m&&s&&s.getDimension&&s.getDimension(e.qLibraryId).then((function(e){null==e||e[t](n)})).catch((function(){}))};return{meta:{isCyclic:m,isDrillDown:h,isLocked:!!p,isNormal:g},info:{id:n,text:g?d:o[a],position:a,breadcrumbs:o.slice(0,e.qGroupPos),group:{name:f,items:o.slice(0,h?e.qGroupPos+1:o.length).map((function(e,t){return{id:"".concat(n,"-item-").concat(t),text:e,current:a===t,index:t}}))},tooltip:g?void 0:c.get(m?"Tooltip.dimensions.cyclic":"Tooltip.dimensions.drilldown")},action:{changeTo:function(e){var t=e.id;return NE({from:n,to:t,container:"qDimensions",model:l,skipAttributeExpressions:u,onChange:i})},drillUp:function(e){var t=e.steps;h&&l&&(null==l||l.drillUp("/qHyperCubeDef",y,t))},stepCycle:function(){return v("stepCycle",1)},setActiveField:function(e){var t=e.fieldIndex;return v("setActiveField",t)}}}}))}function AE(e){var t=e.callbacks,n=e.data,r=e.resources,o=e.settings,i=t.onChange,a=n.infos,s=r.model,l=o.skipAttributeExpressions;return a.map((function(e){var t=e.cId,n=e.qFallbackTitle;return{meta:{isNormal:!0},info:{id:t,text:n},action:{changeTo:function(e){var n=e.id;return NE({from:t,to:n,container:"qMeasures",model:s,skipAttributeExpressions:l,onChange:i})}}}}))}function RE(e){var t=e.callbacks,n=e.data,r=e.dock,o=e.key,i=e.rect,a=e.resources,s=e.settings,l=e.state,c=e.styling,u=function(e){var t=e.dock,n=e.rect,r={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",height:"100%"};return"left"!==t&&"right"!==t||(r.width="".concat(n.height,"px"),r.height="".concat(n.width,"px"),r.transformOrigin="top left"),"left"===t&&(r.transform="rotate(-90deg) translate(-".concat(n.height,"px, 0)")),"right"===t&&(r.transform="rotate(90deg) translate(0, -".concat(n.width,"px)")),r}({dock:r,rect:i}),d=function(e){var t=e.callbacks,n=e.data,r=e.dock,o=e.key,i=e.resources,a=e.settings,s=e.state,l=e.styling,c=n.alternatives,u=n.infos,d=i.app,p=i.cache,f=i.model,m=a.forceAllowChange,h=a.isRTL,g=a.isSnapshot,y=a.type,v=function(e){var t=e.dock;return"top"!==t&&"bottom"!==t||!e.isRTL?"ltr":"rtl"}({dock:r,isRTL:h}),b=function(e){var t=e.cache,n="axis-title-auto-focus_"+e.key;return{get:function(){var e;return(null==t||null===(e=t.get)||void 0===e?void 0:e.call(t,n))||!1},set:function(e){var r;return null==t||null===(r=t.set)||void 0===r?void 0:r.call(t,n,e)}}}({cache:p,key:o}),x=("dimension"===y?DE:AE)({callbacks:t,data:n,resources:i,settings:a});"rtl"===v&&x.reverse();var S={allowed:{change:(!(!f.modifiers||!f.colorSupport)||m)&&!g,reload:!!d&&!g},hasAlternatives:!!c.length,hasCyclic:x.some((function(e){return e.meta.isCyclic})),hasMultiple:u.length>1};return x.map((function(e,t){return Ik(Ik({data:n,layout:{direction:v},resources:{translator:i.translator},services:{focus:b},settings:a,state:s,styling:l},e),{},{meta:Ik(Ik(Ik({},S),e.meta),{},{isFirst:0===t,isLast:t===x.length-1})})}))}({callbacks:t,data:n,dock:r,key:o,resources:a,settings:s,state:l,styling:c});return x.createElement("div",{style:u},d.map((function(e){return x.createElement(x.Fragment,{key:e.info.id},x.createElement(bE,{source:e}),!e.meta.isLast&&x.createElement("span",{dir:e.layout.direction,style:Ik(Ik({},c.title),{},{lineHeight:"normal"})},", "))})))}var PE,IE='"Source Sans Pro", "Arial", "sans-serif"',zE="12px",jE=function(e){var t=e.rect,n=e.state,r=e.settings,o=r.callbacks,i=r.data,a=r.key,s=r.layout,l=r.resources,c=r.settings,u=r.style;return RE({callbacks:o,data:i,dock:s.dock,key:a,rect:t,resources:l,settings:c,state:n,styling:u})},FE={renderer:"react",require:["renderer"],disableTriggers:!0,key:"axis-title",defaultSettings:{callbacks:{onChange:function(){}},data:{alternatives:[],infos:[]},resources:{app:void 0,cache:void 0,model:void 0,selections:void 0,translator:void 0},settings:{forceAllowChange:!1,isDisabled:function(){return!1},isRTL:!1,isSnapshot:!1,skipAttributeExpressions:!1,type:"dimension"},style:{title:{color:"#333",fontFamily:IE,fontSize:zE},popover:{color:"#595959CC",fontFamily:IE,fontSize:zE}}},preferredSize:function(){var e=this.settings,t=e.data,n=e.settings,r=e.style,o=t.alternatives,i=n.type,a=r.title,s=a.fontSize,l=a.fontFamily,c=o.length||"measure"!==i?28:20,u=this.registries.renderer("svg")().measureText({text:"M",fontSize:s,fontFamily:l}).height;return Math.max(c,u)},created:function(){var e=this;this.state={inSelections:!1},this.listeners={onSelectionsActivated:function(){e.state.inSelections=!0,e.renderer.render(jE(e))},onSelectionsDeactivated:function(){e.state.inSelections=!1}}},beforeMount:function(){var e=this.settings.resources.selections;e&&(e.addListener("activated",this.listeners.onSelectionsActivated),e.addListener("deactivated",this.listeners.onSelectionsDeactivated),e.addListener("canceled",this.listeners.onSelectionsDeactivated))},render:function(){return jE(this)},beforeUnmount:function(){var e=this.settings.resources.selections;e&&(e.removeListener("activated",this.listeners.onSelectionsActivated),e.removeListener("deactivated",this.listeners.onSelectionsDeactivated),e.removeListener("canceled",this.listeners.onSelectionsDeactivated))}},BE=function(e){var t=e.dock,n=e.settings.label,r="center"===t,o=r?{}:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};return x.createElement("span",{style:o,title:n},r?n:"* ".concat(n))},_E={renderer:"react",disableTriggers:!0,key:"disclaimer",defaultSettings:{settings:{isRTL:!1,label:void 0},style:{fontFamily:'"Source Sans Pro", "Arial", "sans-serif"'}},preferredSize:function(){return 22},render:function(){var e=this.rect,t=this.settings,n=t.layout,r=t.settings,o=t.style;return function(e){var t=e.dock,n=e.rect,r=e.settings,o=e.styling,i=function(e){var t=e.dock;return"top"!==t&&"bottom"!==t||!e.isRTL?"ltr":"rtl"}({dock:t,isRTL:r.isRTL}),a=function(e){var t=e.dock,n=e.rect,r={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",color:"#7b7a78",fontStyle:"italic",fontSize:"13px",fontFamily:e.styling.fontFamily};return"left"===t&&(r.width="".concat(n.height,"px"),r.transform="rotate(-90deg) translate(-".concat(n.height,"px, 0)"),r.transformOrigin="top left"),"right"===t&&(r.width="".concat(n.height,"px"),r.transform="rotate(90deg) translate(0, -".concat(n.width,"px)"),r.transformOrigin="top left"),"center"===t&&(r.width="".concat(n.width,"px"),r.height="".concat(n.height,"px"),r.color="#595959",r.fontStyle="normal",r.fontSize="1.2em",r.textAlign="center"),"bottom"!==t&&"top"!==t||(r.justifyContent="flex-start",r.alignItems="flex-start"),r}({dock:t,rect:n,styling:o});return x.createElement("div",{dir:i,style:a},x.createElement(BE,{dock:t,settings:r}))}({dock:n.dock,rect:e,settings:r,styling:o})}},HE={},$E=function(){if(PE)return HE;PE=1;var e=O;return HE.createRoot=e.createRoot,HE.hydrateRoot=e.hydrateRoot,HE}(),VE=HM({spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:14,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:600,fontWeightBold:700,htmlFontSize:14,fontFamily:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif",button:{fontWeight:600,fontSize:14,textTransform:"none"}},shape:{borderRadius:3},components:{MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"qcm-focus-visible"}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"qcm-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:141,borderRadius:3,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transform:"translate3d(0,0,0)"},text:{padding:"8px 16px","&:active":{backgroundColor:"rgba(0, 0, 0, 0.1)"},"&.Mui-focusVisible":{boxShadow:"inset 0 0 0 2px ".concat("#177FE6")}},outlined:{border:"1px solid rgba(0, 0, 0, 0.15)"},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"}},variants:[]},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:14,height:"32px"}}},MuiListItemIcon:{styleOverrides:{root:{color:"#404040",minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:14,color:"#404040",lineHeight:"16px",fontWeight:600},secondary:{fontSize:12,color:"#737373",fontWeight:400,lineHeight:"16px"}}}}});function WE(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 UE(){var e={rendererBox:WE(),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=WE(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=$E.createRoot(e.container)),t.appendChild(e.container),e.container},setKey:function(t){e.container&&e.container.setAttribute("data-key",t)},render:function(t){if(!e.container)return!1;var n=e.rendererBox,r=n.scaleRatio.x,o=n.scaleRatio.y;return e.container.style.left="".concat(Math.round(n.margin.left+n.x*r),"px"),e.container.style.top="".concat(Math.round(n.margin.top+n.y*o),"px"),e.container.style.width="".concat(Math.round(n.width),"px"),e.container.style.height="".concat(Math.round(n.height),"px"),e.container.style.transform="scale(".concat(r,", ").concat(o,")"),e.container.style.transformOrigin="top left",e.root.render(function(e){var t=e.nodes;return x.createElement(x.StrictMode,null,x.createElement(wC,{theme:VE},t))}({nodes:t})),!0},findShapes:function(){return[]},itemsAt:function(){return[]},clear:function(){t()},destroy:function(){t()}}}const KE={getDefaultSettings:({size:e=10,fill:t="#999",alignment:n}={})=>({show:!0,type:"n-polygon",fill:t,stroke:"#000",strokeWidth:0,size:e,sides:3,startAngle:-90,alignment:n}),createOob({oob:e,dockValue:t,boxCenter:n,rendWidth:r,rendHeight:o,flipXY:i,symbol:a}){let s="x",l="y",c=r,u=o,d=t<.5?90:-90;return i&&(s="y",l="x",c=o,u=r,d=t<.5?180:0),a(he({},e,{[s]:n*c,[l]:u-Math.max(e.size/2,Math.min(t*u,u-e.size/2)),startAngle:d}))}};function GE({i:e,width:t,height:n,resolved:r,keys:o,flipXY:i,calcKey:a="box"}){let s,l=null,c=null;void 0!==r.major.settings.binStart?(l=r.major.items[e].binStart,c=r.major.items[e].binEnd,s=r.major.settings.binStart.scale):(s=r.major.settings.major.scale,l=s?r.major.items[e].major:0);let u=0;s?s.bandwidth?(u=s.bandwidth(),l-=u/2):u=c-l:u=1;const d=he({},{major:l,majorEnd:c},r.minor.items[e]);o.forEach((t=>{d[t]=r[t].items[e]}));const p=i?n:t,f=function({bandwidth:e,width:t,minWidthPx:n,maxWidthPx:r,maxMajorWidth:o}){const i=e>=0?1:-1;let a=Math.min(i*e*t,Number.isNaN(Number(r))?o:r/o);return a=Number.isNaN(Number(n))?a:Math.max(n/o,a),a*i}({bandwidth:u,width:d[a].width,minWidthPx:d[a].minWidthPx,maxWidthPx:d[a].maxWidthPx,maxMajorWidth:p}),m=(u-f)/2,h=m+d.major+f/2;return{item:d,boxCenter:h,boxWidth:f,boxPadding:m,rendWidth:t,rendHeight:n}}function YE({keys:e,data:t,defaultSettings:n,style:r,settings:o,width:i,height:a,resolver:s}){const l=he(!0,{},n||{},r||{}),c={major:"horizontal"===o.orientation?a:i,minor:"horizontal"===o.orientation?i:a},u=o.major;let d;d="object"==typeof u&&"object"==typeof u.ref&&void 0!==u.ref.start&&void 0!==u.ref.end?s.resolve({data:t,defaults:{start:0,end:1},scaled:c,settings:he(!0,{},{binStart:{scale:o.major.scale,ref:o.major.ref.start},binEnd:{scale:o.major.scale,ref:o.major.ref.end}})}):"object"==typeof u&&void 0!==u.binStart&&void 0!==u.binEnd?s.resolve({data:t,defaults:{start:0,end:1},scaled:c,settings:he(!0,{},{binStart:{scale:o.major.scale,ref:"binStart"},binEnd:{scale:o.major.scale,ref:"binEnd"}},o.major)}):s.resolve({data:t,scaled:c,defaults:{major:.5},settings:{major:o.major}});const p=o.minor||{};let f;const m={major:d,minor:s.resolve({data:t,defaults:{start:0,end:1},scaled:c,settings:he(!0,{},{start:{scale:p.scale,ref:"start"},end:{scale:p.scale,ref:"end"},min:{scale:p.scale,ref:"min"},max:{scale:p.scale,ref:"max"},med:{scale:p.scale,ref:"med"}},p)})};for(let n=0,r=e.length;n<r;n++)f=e[n],m[f]=s.resolve({data:t,defaults:l[f],settings:o[f],scaled:c});return m}const XE=["oob"];const JE={require:["chart","resolver","symbol"],defaultSettings:{settings:{size:10},data:{},style:{}},created(){this.state={}},preferredSize(){return this.settings.settings.size},render(){const{width:e,height:t}=this.rect,{dockValue:n}=this.settings.settings,r="horizontal"===this.settings.settings.orientation,{data:o,style:i,resolver:a,symbol:s}=this,l=YE({keys:XE,data:o,defaultSettings:{oob:KE.getDefaultSettings()},style:i,settings:this.settings.settings,width:e,height:t,resolver:a}),{settings:c,items:u}=l,d=function({width:e,height:t,flipXY:n,resolved:r,keys:o,symbol:i,dockValue:a,_calcItemRenderingOpts:s=GE}){const l=[],{items:c}=r.major;for(let u=0,d=c.length;u<d;u++){const{item:d,boxCenter:p,rendWidth:f,rendHeight:m}=s({i:u,width:e,height:t,resolved:r,keys:o,flipXY:n,calcKey:"oob"}),h=c[u].data,g=[];if(d.oob.show){g.push(KE.createOob({oob:d.oob,dockValue:a,boxCenter:p,rendWidth:f,rendHeight:m,flipXY:n,symbol:i}));const e={type:"container",data:h,collider:{type:"bounds"},children:g};l.push(e)}}return l}({width:e,height:t,flipXY:r,resolved:l,keys:XE,symbol:s,dockValue:n});return d}},ZE={size:25,hat:{show:!0,fill:"#999",stroke:"#000",strokeWidth:0,strokeLinejoin:"miter",width:1,maxWidthPx:void 0,minWidthPx:1,minHeightPx:1,alignment:0}},QE=["hat"];function eT(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 tT({item:e,boxWidth:t,boxPadding:n,rendWidth:r,rendHeight:o,flipXY:i}){let a="x",s="y",l=r,c=o,u=e.hat.alignment||0;i&&(a="y",s="x",l=o,c=r,u=1-u);const d=(n+e.major)*l;let p=[{[a]:d,[s]:0+c},{[a]:d+t*u*l,[s]:8},{[a]:d+t*l,[s]:0+c},{[a]:d+t*l,[s]:0+c+10},{[a]:d,[s]:0+c+10}];const f=he({},e.hat,{type:"path",d:eT(p)});p=[{[a]:d,[s]:0},{[a]:d+t*(1-u)*l,[s]:0+c-8},{[a]:d+t*l,[s]:0},{[a]:d+t*l,[s]:-10},{[a]:d,[s]:-10}];return[f,he({},e.hat,{type:"path",d:eT(p)})]}const nT={require:["chart","resolver","symbol"],defaultSettings:{settings:{size:25},data:{},style:{hat:"$shape"}},created(){this.state={}},preferredSize(){return this.settings.settings.size},render(){const{width:e,height:t}=this.rect,n="horizontal"===this.settings.settings.orientation,{data:r,style:o,resolver:i}=this,a=YE({keys:QE,data:r,defaultSettings:ZE,style:o,settings:this.settings.settings,width:e,height:t,resolver:i}),{settings:s,items:l}=a,c=function({width:e,height:t,flipXY:n,resolved:r,keys:o,_calcItemRenderingOpts:i=GE}){const a=[],{items:s}=r.major;for(let l=0,c=s.length;l<c;l++){const{item:c,boxWidth:u,boxPadding:d,rendWidth:p,rendHeight:f}=i({i:l,width:e,height:t,resolved:r,keys:o,flipXY:n,calcKey:"hat"}),m=s[l].data,h=[];c.hat.show&&h.push(...tT({item:c,boxWidth:u,boxPadding:d,rendWidth:p,rendHeight:f,flipXY:n}));const g={type:"container",data:m,collider:{type:"bounds"},children:h};a.push(g)}return a}({width:e,height:t,flipXY:n,resolved:a,keys:QE});return c}};var rT={defaultSettings:{settings:{size:10}},preferredSize(){return this.settings.settings.size},render:()=>[]};function oT(e,t,n,r){const o=function(t){const n=String(t);return e(n)};return o.ticks=()=>t.map((t=>{const i=o([t.data.value,r?n-1:0]),a=o([t.data.value,r?0:n-1])+e.bandwidth();return{position:(i+a)/2,label:t.label,data:t.data,start:i,end:a}})),o.bandwidth=()=>e.bandwidth(),o.data=()=>e.data(),o.domain=()=>e.domain(),o.pxScale=function(r){const o=e.pxScale(r);return o===e?this:oT(o,t,n)},o}function iT(e){const t=e.scale("band");e.scale("group-by-measure",(function(e={},n={},r={}){const o=t(e,n,r),i=o.domain(),a=o.ticks(),s=[],l=e.measureCount;return i.forEach(((e,t)=>{for(let t=0;t<l;++t)s.push(String([e,t]));s.push(`SPACER_${t}_SPACER`)})),s.splice(-1),o.domain(s),oT(o,a,l,e.invert)}))}const aT=()=>({version:"1.38.0",barGrouping:{grouping:"grouped"},color:{auto:!0,autoMinMax:!0,byDimDef:void 0,byMeasureDef:void 0,colorExpression:void 0,dimensionScheme:"12",expressionIsColor:!0,expressionLabel:"",formatting:{numFormatFromTemplate:!0,isCustomFormatted:void 0},measureMin:void 0,measureMax:void 0,measureScheme:"sg",mode:"primary",paletteColor:{index:6},persistent:!1,reverseScheme:!1,singleColor:void 0,useBaseColors:"off",useDimColVal:!0,useMeasureGradient:!0},components:[],dataPoint:{showLabels:!1,showSegmentLabels:!1,showTotalLabels:!0},dimensionAxis:{axisDisplayMode:"auto",continuousAuto:!0,dock:"near",label:"auto",maxVisibleItems:10,show:"all"},footnote:"",gridLine:{auto:!0,spacing:2},legend:{dock:"auto",show:!0,showTitle:!0},measureAxis:{autoMinMax:!0,dock:"near",max:10,min:0,minMax:"min",show:"all",spacing:1},orientation:"vertical",preferContinuousAxis:!0,qHyperCubeDef:{qDimensions:[],qMeasures:[],qInitialDataFetch:[{qWidth:17,qHeight:500}],qSuppressMissing:!0,qSuppressZero:!1},refLine:{refLines:[],dimRefLines:[]},scrollbar:"miniChart",scrollStartPos:0,showDetails:!0,showDisclaimer:!0,showMiniChartForContinuousAxis:!0,showTitles:!0,subtitle:"",title:"",tooltip:{auto:!0,hideBasic:!1,data:{qHyperCubeDef:void 0},chart:void 0,imageComponents:void 0}}),sT={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 lT(e){const t=e.split("/");return"qmem:"===t[0]&&""===t[1]}const cT={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 uT(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 cT.getImageSize(r,t);return{src:r,size:t,height:i,width:a,imageError:s}}async function dT(e,t,n,r){var o,i,a;const{app:s,flags:l}=t,c=null===(o=e.layout)||void 0===o||null===(o=o.tooltip)||void 0===o?void 0:o.imageComponents;if(!c)return[];const[u]=c,d=u.size||"small",p=u.type||"media";let f=-1;for(let e=0;e<n.length;e++)if(n[e].cId===u.cId){f=e;break}const m=(null===(i=r.data)||void 0===i||null===(i=i.customTooltipAttrExps)||void 0===i?void 0:i.value)||[];let h;if(-1!==f&&m[f]&&(h=m[f]),"media"===p&&null!==(a=u.ref)&&void 0!==a&&null!==(a=a.qStaticContentUrl)&&void 0!==a&&a.qUrl)return uT(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&&lT(a))try{const t=`data:image/png;base64, ${await e.getImage(a)}`,{height:n,width:o,imageError:s}=await cT.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 cT.getImageSize(a,r);i={src:a,size:r,height:e,width:t,imageError:n}}return i}(s,l,u,d,h);if(l.isEnabled("IMAGE_BUNDLE_LOAD")&&"field"===p&&h&&h.label){return async function(e,t,n,r){let o;const i=r.label,a=`qmem://${t.qFallbackTitle}/${i}`;if(lT(a))try{const t=await e.getImage(a);if(t){const e=`data:image/png;base64, ${t}`,{height:r,width:i,imageError:a}=await cT.getImageSize(e,n);o={src:e,size:n,height:r,width:i,imageError:a}}}catch(e){}return o}(s,n[f],d,h)}return[]}const pT={async addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){const o=t,i=[];for(let t=0;t<o.length;t++)i.push(dT(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}},fT={async handlePromises({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){let o=t;return o=await pT.addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}),o},checkIfPromisesExist:({customTooltipModel:e})=>pT.checkIfPromisesExist({customTooltipModel:e})};const mT=(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:sT.CHART.CHART_PARENT_TYPE,qId:sT.CHART.CHART_OBJECT_ID},qHyperCubeDef:{qDimensions:i,qMeasures:a,qInterColumnSortOrder:s,qInitialDataFetch:[{qWidth:0,qHeight:0}]},qStateName:l}},hT=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:sT.CHART.CHART_CHILD_TYPE},qExtendsId:n}};const gT={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=sT.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:sT.CHART.CONTAINER_ID})],colspan:2,style:{"text-align":e.rtl?"right":"left","max-width":i}},{}]}(e,t)},show:async({app:e,properties:t,selectedNodes:n,dimIndex:r,customTooltipModel:o,rtl:i})=>{var a;const s=o,l=null==t||null===(a=t.tooltip)||void 0===a||null===(a=a.chart)||void 0===a||null===(a=a.object)||void 0===a?void 0:a.refId;if(null!=s&&s.embed&&e.removeSessionAlternateState&&e.addSessionAlternateState&&l&&!(t.qHyperCubeDef.qDimensions.length<=0)){await gT.hide({app:e,customTooltipModel:o});try{await async function({app:e,properties:t,customTooltipModel:n}){const r=n,o=sT.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=sT.CHART.STATE,a=mT(t,i),s=await e.createSessionObject(a),l=hT(t);if(s.id!==sT.CHART.CHART_OBJECT_ID)return void e.destroySessionObject(s.id);o.miniChartToken.sessionObj=s;const c=await s.createChild(l);if(o.miniChartToken.sessionObj&&o.miniChartToken.sessionObj.id===s.id)return o.miniChartToken.model=c,c;e.destroySessionObject(s.id)}({app:e,properties:t,customTooltipModel:o});if(s.miniChartToken.alternateState&&s.miniChartToken.sessionObj&&a){var c,u,d,p;const e=n.length>0&&void 0!==(null===(c=n[0].data)||void 0===c?void 0:c.value)?[null===(u=n[0].data)||void 0===u?void 0:u.value]:[],a=void 0!==r?r:t.qHyperCubeDef.qDimensions.length-1;if(2===t.qHyperCubeDef.qDimensions.length&&void 0===r&&n.length>0){var f,m;const e=null!==(f=n[0].data.selectionOuterDimension)&&void 0!==f?f:n[0].data.selectionDimension;if(null!=e&&null!==(m=e.source)&&void 0!==m&&m.field){var h;const t=null==e||null===(h=e.source)||void 0===h?void 0:h.field.split("/"),n=t[t.length-1],r=void 0!==e.value?[e.value]:[];r.length>0&&void 0!==n&&s.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",Number(n),r,!1)}}e.length>0&&s.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",a,e,!1);const l=document.getElementById(sT.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 gT.hide({app:e,customTooltipModel:o})}}},hide:async({app:e,customTooltipModel:t})=>{const n=t;null!=n&&n.embed&&(gT.destroyVisualization({customTooltipModel:t}),await e.destroySessionObject(sT.CHART.CHART_OBJECT_ID),n.miniChartToken.sessionObj=void 0,await async function({app:e,customTooltipModel:t}){const n=t,r=sT.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 yT(e){const t=e.qHyperCubeDef?e.qHyperCubeDef.qDimensions:e.qHyperCube.qDimensionInfo;if(t&&t.length>0)return t}function vT(){const{EXPRESSION:e,TITLE:t,DESCRIPTION:n,IMAGES:r}=sT.CUSTOM,o={};return o[e]=!0,o[t]=!0,o[n]=!0,o[r]=!0,o}function bT(e){const t=vT();return e.filter((e=>t[e.id]))}const xT={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}=xT.getAttrExprData(a);i.length||n.length?fT.handlePromises({customTooltipModel:o,nodes:xT.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&&gT.hide({app:r.app,customTooltipModel:o}),t.emit("hide")}},checkIfPromisesExist:({customTooltipModel:e})=>fT.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[sT.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[sT.CUSTOM.QUARANTINE]=[],e.forEach((e=>{r.quarantine[sT.CUSTOM.QUARANTINE].push(e)})),n.qLayoutExclude=r}(bT(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[sT.CUSTOM.QUARANTINE])&&delete n.qLayoutExclude.quarantine[sT.CUSTOM.QUARANTINE]},setAttrsFromQuarantine(e,t){const n=yT(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===bT(o).length){var i;const t=(null===(i=e.qLayoutExclude)||void 0===i||null===(i=i.quarantine)||void 0===i?void 0:i.customTooltip)||[],n=[...o,...t],a=e;a.qHyperCubeDef?a.qHyperCubeDef.qDimensions[r].qAttributeExpressions=n:a.qHyperCube.qDimensionInfo[r].qAttrExprInfo=n}},moveCustomTooltipAttrs(e,t={},n=void 0){let r=[];const o=yT(e)||[];[...o,t].forEach((e=>{const t=bT(e.qAttributeExpressions||[]);t.length>0&&(r=t)}));const i=vT(),a=o.map((e=>{const t=e,n=e.qAttributeExpressions||[];return t.qAttributeExpressions=n.filter((e=>!i[e.id])),t})),s=void 0!==n?n:a.length-1;a.length>0&&(a[s].qAttributeExpressions=a[s].qAttributeExpressions.concat(r));const l=e;e.qHyperCubeDef?l.qHyperCubeDef.qDimensions=a:l.qHyperCube.qDimensionInfo=a},addCallbackCustomTooltip(e){e.qHyperCubeDef.qDimensions.length>1?this.moveCustomTooltipAttrs(e):(this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e))},moveCallbackCustomTooltip(e,t){1===e.qHyperCubeDef.qDimensions.length&&(this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e)),e.qHyperCubeDef.qDimensions.length>1&&this.moveCustomTooltipAttrs(e,t)},removeCallbackCustomTooltip(e,t){e.qHyperCubeDef.qDimensions.length>0?this.moveCustomTooltipAttrs(e,t):this.quarantineCustomTooltipAttrs(e,t)},replaceCallbackCustomTooltip(e,t){e.qHyperCubeDef.qDimensions.length>1?this.moveCustomTooltipAttrs(e,t):(this.quarantineCustomTooltipAttrs(e,t),this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e))},shouldIgnoreDefaultRows(e){var t;return(null===(t=e.tooltip)||void 0===t?void 0:t.hideBasic)||0},DEBOUNCE_THRESHOLD:50,getFooterRow:(e,t)=>[{content:e,style:{"font-style":"italic","font-size":"12px","line-height":"16px",color:"rgba(255, 255, 255, 0.6)","text-align":t?"right":"left",direction:$e.detectTextDirection(e)},colspan:2},{}],getImageRow(e,t){const n=$e.detectTextDirection(e.src),r=[],o={style:{display:"block","margin-left":"auto","margin-right":"auto",overflow:"hidden",width:e.width,height:e.height}};if("original"===e.size||e.imageError){r.push(t.h("span",{style:{display:"inline-block",height:"100%","vertical-align":"middle"}}));const n=e.imageError?`${e.src}?${Math.random()}`:e.src;r.push(t.h("img",{style:{"max-width":e.width,"max-height":e.height,"vertical-align":"middle"},src:n,referrerpolicy:"no-referrer"})),o.style["text-align"]="center",o.style["white-space"]="nowrap"}else o.style["background-size"]="contain",o.style["background-repeat"]="no-repeat",o.style["background-position"]="center",o.style["background-image"]=`url('${e.src}')`;return[{content:[t.h("div",o,r),""],style:{"text-align":t.rtl?"right":"left",direction:n,"max-width":e.width},colspan:2},{}]}};function ST(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 sT.CUSTOM.EXPRESSION:n="NaN"===t.qNum||e.isCustomFormatted?void 0===t.qText?"NaN":t.qText:t.qNum;break;case sT.CUSTOM.TITLE:case sT.CUSTOM.DESCRIPTION:case sT.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 MT={getNode(e,{dimensionCount:t}){if(!t||t<1)return;const n=t-1,r="qDimensionInfo";return{field:`${r}/${n}`,value:t=>ST(t,e,r,n)}}};const CT={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={[sT.CUSTOM.TITLE]:!0,[sT.CUSTOM.DESCRIPTION]:!0},{attrExps:i,fieldPath:a}=xT.getAttrExprData(e);return 0===t.length||0===i.length||""===a||i.forEach(((e,i)=>{const s=t[i];if(e.id===sT.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===sT.CUSTOM.TITLE&&{title:t},value:t,id:e.id})}})),r}(n,i.map((t=>Ve.getMeasure(e,t))),e,o)}};function wT({nodes:e,layout:t,dataset:n}){const r=function(e,t,n){const r=[];return e.forEach((e=>{r.push(CT.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 kT(e){const t=sT.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 ET(e){var t;const n=null===(t=e.qHyperCubeDef)||void 0===t?void 0:t.qDimensions;return n[n.length-1].qAttributeExpressions||[]}const TT={migrateProperties(e){var t,n;const r=he(!0,{},e),o=(null===(t=r.tooltip)||void 0===t||null===(t=t.data)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qMeasures)||[];let i=ET(r);return i=function(e,t){return t.concat(e.map((e=>kT(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=kT(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}(ET(e),r,o);return i},checkForBackwardCompatibility:(e,t)=>(e.qMeasureInfo||[]).length>0&&t.length>0,updateProperties(e,t){const n=new Promise((n=>{var r,o,i;const a=(null===(r=t.qHyperCube)||void 0===r?void 0:r.qDimensionInfo)||[],s=(null===(o=t.tooltip)||void 0===o||null===(o=o.data)||void 0===o?void 0:o.qHyperCube)||{},l=null===(i=t.qMeta)||void 0===i||null===(i=i.privileges)||void 0===i?void 0:i.includes("update");e&&e.getEffectiveProperties&&this.checkForBackwardCompatibility(s,a)&&e.getEffectiveProperties().then((t=>{if(l){const r=this.migrateProperties(t);e.setProperties(r).then((()=>{e.app.clearUndoBuffer(),n(!0)}))}else{const r=this.getPatches(t);e.applyPatches(r,!0).then((()=>{e.app.clearUndoBuffer(),n(!0)}))}})),n(!1)}));return n}};var qT={attrExpr:TT},LT=7005;const NT=e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==LT},OT=e=>{if(e.qHyperCubeDef.qDimensions.length>1&&1===e.qHyperCubeDef.qMeasures.length){const t=e.qHyperCubeDef.qInterColumnSortOrder.indexOf(0);0!==t&&ke.moveArrayElement(e.qHyperCubeDef.qInterColumnSortOrder,t,0)}},DT=(e,t)=>{t>10?1!==e.qHyperCubeDef.qInterColumnSortOrder[0]&&ke.moveArrayElement(e.qHyperCubeDef.qInterColumnSortOrder,1,0):0!==e.qHyperCubeDef.qInterColumnSortOrder[0]&&ke.moveArrayElement(e.qHyperCubeDef.qInterColumnSortOrder,1,0)},AT=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))},RT=(e,t)=>{const n=e.qHyperCubeDef.qDimensions,r=e.qHyperCubeDef.qMeasures;if(1===n.length&&1===r.length){const r=n[0];return r.qLibraryId?t.getDimension(r.qLibraryId).then((e=>e.getLayout())).then((t=>{if(t&&t.qDimInfos&&t.qDimInfos[0]){const n=t.qDimInfos[0].qCardinal;DT(e,n)}return r})):t.getField(r.qDef.qFieldDefs[0]).then((t=>t.getCardinal().then((t=>(DT(e,t),r)))),(()=>r))}return OT(e),Promise.resolve()};function PT(e){const t=e.qHyperCubeDef.qDimensions,n=e.qHyperCubeDef.qMeasures,{color:{mode:r}}=e;t.length>1&&e.color?i(e,"color.persistent",!0):"byDimension"===r&&n.length>1?i(e,"color.mode","byMultiple"):"byExpression"===r&&0===n.length?i(e,"color.mode","primary"):0===t.length&&n.length>0&&(i(e,"color.byMeasureDef",void 0),i(e,"color.byDimDef",void 0),1===n.length&&"byExpression"!==r&&i(e,"color.mode","primary"))}const IT=(e,t)=>{PT(t),$t(e),xT.addCallbackCustomTooltip(t)},zT=e=>{PT(e)};function jT({translator:e}){return{dimensions:{min:0,max:e=>e>1?1:2,description(t,n,r,o){let i;const a=null!=o&&o.layout?o.layout.qHyperCube.qDimensionInfo.filter((e=>NT(e))).length:t.qHyperCubeDef.qDimensions.length;return r.isAutoChart&&n>a-1?i="Visualizations.Descriptions.Color":a>1&&0===n?"stacked"===t.barGrouping.grouping?i="Visualizations.Descriptions.Stack":(i="Visualizations.Descriptions.Group",t.qHyperCubeDef.qColumnOrder=[0,1,2]):i="Visualizations.Descriptions.Bars",e.get(i)},add:(e,t,n)=>(t.qHyperCubeDef.qDimensions.length>1&&"stacked"===t.barGrouping.grouping&&(t.qHyperCubeDef.qMode="K",t.qHyperCubeDef.qAlwaysFullyExpanded=!0),null!=n&&n.app?RT(t,n.app).then((()=>(IT(e,t),e))):(AT(t),IT(e,t),e)),move(e,t,n){n.layout.qHyperCube.qDimensionInfo.filter((e=>NT(e))).length>1&&"stacked"===t.barGrouping.grouping&&(t.qHyperCubeDef.qMode="K",t.qHyperCubeDef.qAlwaysFullyExpanded=!0),OT(t),PT(t),xT.moveCallbackCustomTooltip(t,e)},remove(e,t){const n=t.qHyperCubeDef.qDimensions;PT(t),1===n.length&&(t.qHyperCubeDef.qMode="S"),xT.removeCallbackCustomTooltip(t,e)},replace(e,t,n,r){xT.replaceCallbackCustomTooltip(r,t)}},measures:{min:1,max:e=>e>1?1:15,description:()=>e.get("Visualizations.Descriptions.LengthBars"),add:(e,t,n)=>null!=n&&n.app?RT(t,n.app).then((()=>(e.qSortBy.qSortByNumeric=-1,zT(t),e))):(AT(t),zT(t),e),move(e,t){OT(t),PT(t)},remove(e,t){const n=t.qHyperCubeDef.qDimensions;PT(t),n.length>1&&"stacked"===t.barGrouping.grouping?(t.qHyperCubeDef.qMode="K",t.qHyperCubeDef.qAlwaysFullyExpanded=!0):1===n.length&&(t.qHyperCubeDef.qMode="S")}}}}function FT(e){return{properties:aT(),data:{targets:[{path:"/qHyperCubeDef",...jT(e)}]}}}var BT={properties_dataPoints_labelmode_share:{id:"properties.dataPoints.labelmode.share",locale:{"en-US":"Share","zh-TW":"佔有率","zh-CN":"份额","tr-TR":"Pay","sv-SE":"Andel","it-IT":"Percentuale","es-ES":"Cuota","de-DE":"Anteil","pl-PL":"Udział","nl-NL":"Aandeel","ko-KR":"공유","pt-BR":"Percentual","fr-FR":"Part","ja-JP":"割合","ru-RU":"Доля"}},Tooltip_selections_locked:{id:"Tooltip.selections.locked",locale:{"en-US":"Selections on this dimension are locked","zh-TW":"已鎖定此維度上的選項","zh-CN":"相关维度的选择已锁定","tr-TR":"Bu boyuttaki seçimler kilitli","sv-SE":"Urval i den här dimensionen är låsta","it-IT":"Le selezioni in questa dimensione sono bloccate","es-ES":"Las selecciones de esta dimensión están bloqueadas.","de-DE":"Auswahlen sind für diese Dimension gesperrt","pl-PL":"Selekcje dotyczące tego wymiaru są zablokowane","nl-NL":"Selecties voor deze dimensie zijn vergrendeld","ko-KR":"이 차원의 선택은 잠겨 있습니다.","pt-BR":"Seleções estão bloqueadas nesta dimensão","fr-FR":"Sélections verrouillées pour cette dimension","ja-JP":"この軸での選択はロックされています","ru-RU":"Выборки для данного измерения заблокированы"}},Tooltip_dimensions_drilldown:{id:"Tooltip.dimensions.drilldown",locale:{"en-US":"Drill-down dimension","zh-TW":"向下探查維度","zh-CN":"下钻维度","tr-TR":"Detaya inme boyutu","sv-SE":"Hierarkisk dimension","it-IT":"Dimensione di drill-down","es-ES":"Dimensión jerárquica","de-DE":"Drilldown-Dimension:","pl-PL":"Wymiar hierarchiczny","nl-NL":"Drill-downdimensie","ko-KR":"드릴다운 차원","pt-BR":"Dimensão da hierarquia","fr-FR":"Descendre dans la hiérarchie de la dimension","ja-JP":"軸のドリルダウン","ru-RU":"Измерение с детализацией"}},Object_ErrorMessage_MissingDimension:{id:"Object.ErrorMessage.MissingDimension",locale:{"en-US":"Dimension not found","zh-TW":"找不到維度","zh-CN":"未找到维度","tr-TR":"Boyut bulunamadı","sv-SE":"Dimensionen hittades inte","it-IT":"Dimensione non trovata","es-ES":"No se ha encontrado la dimensión","de-DE":"Dimension nicht gefunden","pl-PL":"Wymiar nie został znaleziony","nl-NL":"Dimensie niet gevonden","ko-KR":"차원을 찾지 못했습니다.","pt-BR":"Dimensão não encontrada","fr-FR":"Dimension introuvable","ja-JP":"軸が見つかりません","ru-RU":"Измерение не найдено"}},Object_ErrorMessage_MissingMeasure:{id:"Object.ErrorMessage.MissingMeasure",locale:{"en-US":"Measure not found","zh-TW":"找不到量值","zh-CN":"未找到度量","tr-TR":"Hesaplama bulunamadı","sv-SE":"Måttet hittades inte","it-IT":"Misura non trovata","es-ES":"No se ha encontrado la medida","de-DE":"Kennzahl nicht gefunden","pl-PL":"Miara nie została znaleziona","nl-NL":"Meting niet gevonden","ko-KR":"측정값을 찾지 못했습니다.","pt-BR":"Medida não encontrada","fr-FR":"Mesure introuvable","ja-JP":"メジャーが見つかりません","ru-RU":"Мера не найдена"}},Object_Disclaimer_LimitedData:{id:"Object.Disclaimer.LimitedData",locale:{"en-US":"Currently showing a limited data set.","zh-TW":"目前顯示的是有限的資料集。","zh-CN":"当前正显示有限的数据集。","tr-TR":"Şu anda sınırlı bir veri kümesi gösteriliyor.","sv-SE":"Just nu visas en begränsad uppsättning data.","it-IT":"Attualmente viene visualizzata una serie di dati limitata.","es-ES":"Mostrando actualmente un conjunto limitado de datos.","de-DE":"Zurzeit wird nur ein beschränkter Datensatz angezeigt.","pl-PL":"Aktualnie przedstawiany jest ograniczony zestaw danych.","nl-NL":"Momenteel wordt een beperkte gegevensverzameling getoond.","ko-KR":"현재 제한된 데이터 집합을 표시하고 있습니다.","pt-BR":"Mostrando um conjunto de dados limitado.","fr-FR":"Affichage d'un ensemble de données limité pour l'instant.","ja-JP":"現在、限定的なデータ セットを表示しています。","ru-RU":"В настоящее время отображается ограниченный набор данных."}},Object_Disclaimer_OnlyNegativeOrZeroValues:{id:"Object.Disclaimer.OnlyNegativeOrZeroValues",locale:{"en-US":"The chart is not displayed because it contains only negative or zero values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含負值或零值。","zh-CN":"未显示图表,因为它仅包含负值或零值。","tr-TR":"Yalnızca negatif veya sıfır değerlerini içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det enbart innehåller negativa eller nollvärden","it-IT":"Il grafico non viene visualizzato poiché contiene solo valori negativi o uguali a zero.","es-ES":"El gráfico no se muestra porque sólo contiene valores negativos o valores cero.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur negative oder 0-Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wartości ujemne lub zerowe.","nl-NL":"De grafiek wordt niet weergegeven omdat het alleen negatieve waarden of nulwaarden bevat.","ko-KR":"음수 또는 zero 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não foi exibido, porque contém apenas valores negativos ou zero.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs négatives ou égales à zéro.","ja-JP":"チャートは負の値またはゼロ値しか含まれていないため、表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только отрицательные или нулевые значения."}},Object_Disclaimer_NegativeOrZeroValues:{id:"Object.Disclaimer.NegativeOrZeroValues",locale:{"en-US":"The data set contains negative or zero values that cannot be shown in this chart.","zh-TW":"資料集包含無法在此圖表中顯示的負值或零值。","zh-CN":"数据集中包含无法在此图表中显示的负值或零值。","tr-TR":"Veri kümesi, bu grafikte gösterilemeyen negatif veya sıfır değerlerini içeriyor.","sv-SE":"Datauppsättningen innehåller negativa värden eller nollvärden som inte kan visas i detta diagram.","it-IT":"La serie di dati contiene valori negativi o uguali a zero che non possono essere visualizzati in questo grafico.","es-ES":"El conjunto de datos contiene valores negativos o cero que no se pueden mostrar en este gráfico.","de-DE":"Die in den Datensätzen enthaltenen negativen oder 0-Werte können nicht in diesem Diagramm dargestellt werden.","pl-PL":"Zestaw danych zawiera wartości ujemne lub zerowe, których nie można przedstawić w tym wykresie.","nl-NL":"De gegevensverzameling bevat negatieve waarden of nulwaarden die niet kunnen worden weergegeven in deze grafiek.","ko-KR":"데이터 집합에 해당 차트에 표시할 수 없는 음수 값 또는 zero 값이 포함되어 있습니다.","pt-BR":"O conjunto de dados contém valores negativos ou iguais a zero que não podem ser mostrados neste gráfico.","fr-FR":"L'ensemble de données contient des valeurs négatives ou égales à zéro impossibles à afficher dans ce graphique.","ja-JP":"データ セットには、本チャートに表示できない負の値またはゼロ値が含まれています。","ru-RU":"Набор данных содержит отрицательные или нулевые значения, которые невозможно показать в этой диаграмме."}},Object_Disclaimer_DataRangeIncludingZero:{id:"Object.Disclaimer.DataRangeIncludingZero",locale:{"en-US":"The logarithmic scale has been replaced by a linear scale because the data range includes zero.","zh-TW":"對數刻度已遭線性刻度取代,因為資料範圍包含零。","zh-CN":"对数刻度已替换为线性刻度,因为该数据范围包括零。","tr-TR":"Veri aralığı sıfır değerini içerdiğinden, logaritmik ölçek yerine doğrusal ölçek kullanıldı.","sv-SE":"Den logaritmiska skalan har ersatts av en linjär skala eftersom dataintervallet innehåller värdet noll.","it-IT":"La scala logaritmica è stata sostituita da una scala lineare perché l'intervallo di dati include zero.","es-ES":"La escala logarítmica ha sido reemplazada por una escala lineal porque el rango de datos incluye cero.","de-DE":"Die logarithmische Skala wurde durch die lineare Skala ersetzt, weil der Datenbereich NULL enthält.","pl-PL":"Skala logarytmiczna została zastąpiona liniową, ponieważ zakres danych zawiera zero.","nl-NL":"De logaritmische schaal is vervangen door een lineaire schaal omdat het gegevensbereik nullen bevat.","ko-KR":"데이터 범위에 0이 포함되어 있으므로 로그 눈금이 선형 눈금으로 바뀌었습니다.","pt-BR":"A escala logarítmica foi substituída por uma escala linear, pois o intervalo de dados inclui zero.","fr-FR":"L'échelle logarithmique a été remplacée par une échelle linéaire, car la plage de données comprend la valeur zéro.","ja-JP":"データ範囲にゼロが含まれるため、Log スケールは Linear スケールで置換されています。","ru-RU":"Логарифмический масштаб заменен линейным масштабом, поскольку диапазон данных включает ноль."}},Object_Disclaimer_NoDataExist:{id:"Object.Disclaimer.NoDataExist",locale:{"en-US":"The selections generated no data for this chart.","zh-TW":"此選項無法產生任何適用於此圖表的資料。","zh-CN":"选择未生成此图表的数据。","tr-TR":"Seçimler bu grafik için hiç veri oluşturmadı.","sv-SE":"Urvalen genererade inga data för detta diagram.","it-IT":"Le selezioni non hanno generato dati per questo grafico.","es-ES":"Las selecciones no han generado datos para este gráfico.","de-DE":"Die Auswahlen haben für dieses Diagramm keine Daten generiert.","pl-PL":"Selekcje nie spowodowały wygenerowania danych dla tego wykresu.","nl-NL":"De selecties hebben geen gegevens voor de grafiek gegenereerd.","ko-KR":"선택 내용으로 해당 차트에 대한 데이터가 생성되지 않았습니다.","pt-BR":"As seleções não geraram dados para este gráfico.","fr-FR":"Les sélections n'ont pas généré de données pour ce graphique.","ja-JP":"このチャートには選択からデータが生成されませんでした。","ru-RU":"В результате выборок данные для этой диаграммы не созданы."}},Object_Disclaimer_OnlyNanData:{id:"Object.Disclaimer.OnlyNanData",locale:{"en-US":"The chart is not displayed because it contains only undefined values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含未定義的值。","zh-CN":"未显示图表,因为它仅包含未定义的值。","tr-TR":"Yalnızca tanımsız değerleri içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det enbart innehåller odefinierade värden.","it-IT":"Il grafico non è visualizzato poiché contiene solo valori non definiti.","es-ES":"El gráfico no se muestra porque solo contiene valores indefinidos.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur nicht definierte Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wartości niezdefiniowane.","nl-NL":"De grafiek wordt niet weergegeven omdat deze alleen ongedefinieerde waarden bevat.","ko-KR":"정의되지 않은 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não foi exibido, porque contém apenas valores não definidos.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs non définies.","ja-JP":"未定義の値しか含まれていないため、チャートは表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только неопределенные значения."}},Object_Disclaimer_OnlyNegativeValues:{id:"Object.Disclaimer.OnlyNegativeValues",locale:{"en-US":"The chart is not displayed because it contains only negative values.","zh-TW":"系統不會顯示圖表,因為該圖表僅包含負值。","zh-CN":"未显示图表,因为它仅包含负值。","tr-TR":"Yalnızca negatif değerleri içermesi nedeniyle grafik görüntülenmiyor.","sv-SE":"Diagrammet visas inte eftersom det endast innehåller negativa värden.","it-IT":"Il grafico non viene visualizzato poiché contiene solo valori negativi.","es-ES":"El gráfico no se muestra porque solo contiene valores negativos.","de-DE":"Das Diagramm wird nicht angezeigt, da es nur negative oder Werte enthält.","pl-PL":"Wykres nie jest wyświetlany, ponieważ zawiera wyłącznie wartości ujemne.","nl-NL":"Het diagram wordt niet weergegeven omdat deze alleen negatieve waarden bevat.","ko-KR":"음수 값만 포함되어 있으므로 차트가 표시되지 않습니다.","pt-BR":"O gráfico não é exibido porque contém apenas valores negativos.","fr-FR":"Le graphique n'est pas affiché, car il contient uniquement des valeurs négatives.","ja-JP":"負の値しか含まれていないため、チャートは表示されていません。","ru-RU":"Диаграмма не отображается, поскольку она содержит только отрицательные значения."}},Object_Disclaimer_NegativeValues:{id:"Object.Disclaimer.NegativeValues",locale:{"en-US":"The data set contains negative values that cannot be shown in this chart.","zh-TW":"資料集包含無法在此圖表中顯示的負值。","zh-CN":"数据集包含无法在此图表中显示的负值。","tr-TR":"Veri kümesi, bu grafikte gösterilemeyen negatif değerleri içeriyor.","sv-SE":"Datauppsättningen innehåller negativa värden som inte kan visas i det här diagrammet.","it-IT":"Il set di dati contiene valori negativi che non possono essere visualizzati in questo grafico.","es-ES":"El conjunto de datos contiene valores negativos que no se pueden mostrar en este gráfico.","de-DE":"Die in den Datensätzen enthaltenen negativen Werte können nicht in diesem Diagramm dargestellt werden.","pl-PL":"Zestaw danych zawiera wartości ujemne, których nie można przedstawić na tym wykresie.","nl-NL":"De gegevensverzameling bevat negatieve waarden die niet kunnen worden weergegeven in dit diagram.","ko-KR":"데이터 집합에 해당 차트에 표시할 수 없는 음수 값이 포함되어 있습니다.","pt-BR":"O conjunto de dados contém valores negativos que não podem ser mostrados neste gráfico.","fr-FR":"Le jeu de données contient des valeurs négatives impossibles à afficher dans ce graphique.","ja-JP":"このチャートには表示できない負の値がデータ セットに含まれています。","ru-RU":"Набор данных содержит отрицательные значения, которые нельзя отобразить на этой диаграмме."}},Object_ChartTooltip_NMore:{id:"Object.ChartTooltip.NMore",locale:{"en-US":"+{0} more","zh-TW":"再加 {0} 個","zh-CN":"+{0} 个","tr-TR":"+{0} öğe daha","sv-SE":"+{0} till","it-IT":"Altre +{0}","es-ES":"+{0} más","de-DE":"+{0} mehr","pl-PL":"+ {0} więcej","nl-NL":"+ {0} meer","ko-KR":"+추가 {0}개","pt-BR":"+{0} mais","fr-FR":"+ {0} de plus","ja-JP":"さらに {0}","ru-RU":"+ дополнительно: {0}"}},Object_ChartTooltip_sumOfPositives:{id:"Object.ChartTooltip.sumOfPositives",locale:{"en-US":"Sum of positives","zh-TW":"正數總和","zh-CN":"正值总和","tr-TR":"Pozitif değerlerin toplamı","sv-SE":"Summan av positiva","it-IT":"Somma valori positivi","es-ES":"Suma de positivos","de-DE":"Summe positiver Werte","pl-PL":"Suma dodatnich","nl-NL":"Som positieven","ko-KR":"양수 합계","pt-BR":"Soma de positivos","fr-FR":"Sommes des valeurs positives","ja-JP":"正の合計","ru-RU":"Сумма положительных значений"}},Object_ChartTooltip_sumOfNegatives:{id:"Object.ChartTooltip.sumOfNegatives",locale:{"en-US":"Sum of negatives","zh-TW":"負數總和","zh-CN":"负值总和","tr-TR":"Negatif değerlerin toplamı","sv-SE":"Summan av negativa","it-IT":"Somma valori negativi","es-ES":"Suma de negativos","de-DE":"Summe negativer Werte","pl-PL":"Suma ujemnych","nl-NL":"Som negatieven","ko-KR":"음수 합계","pt-BR":"Soma de negativos","fr-FR":"Somme des valeurs négatives","ja-JP":"負の合計","ru-RU":"Сумма отрицательных значений"}},Object_ChartTooltip_ColorExpression:{id:"Object.ChartTooltip.ColorExpression",locale:{"en-US":"Color expression","zh-TW":"色彩運算式","zh-CN":"颜色表达式","tr-TR":"Renk ifadesi","sv-SE":"Färguttryck","it-IT":"Espressione colore","es-ES":"Expresión de color","de-DE":"Farbformel","pl-PL":"Wyrażenie koloru","nl-NL":"Kleuruitdrukking","ko-KR":"색상 표현식","pt-BR":"Expressão de cor","fr-FR":"Expression de couleur","ja-JP":"カラー表現","ru-RU":"Выражение для цвета"}},Object_Disclaimer_OnlyNanColor:{id:"Object.Disclaimer.OnlyNanColor",locale:{"en-US":"The data used to color this visualization only contains undefined values.","zh-TW":"用以定義此視覺化的色彩的資料只包含未定義的值。","zh-CN":"用于将该可视化着色的数据仅包含未定义的值。","tr-TR":"Bu görselleştirmeyi renklendirmek için kullanılan veriler yalnızca tanımlanmamış değerler içeriyor.","sv-SE":"Data som används för att färgsätta denna visualisering innehåller enbart odefinierade värden.","it-IT":"I dati utilizzati per colorare questa visualizzazione contengono solo valori non definiti.","es-ES":"Los datos utilizados para colorear esta visualización solo contienen valores indefinidos.","de-DE":"Die verwendeten Daten für die Farbgebung dieser Visualisierung enthalten undefinierte Werte.","pl-PL":"Dane używane do kolorowania tej wizualizacji zawierają wyłącznie niezdefiniowane wartości.","nl-NL":"De gegevens die worden gebruikt om deze visualisatie kleur te geven bevatten uitsluitend ongedefinieerde waarden.","ko-KR":"이 시각화에 색을 지정하는 데 사용된 데이터에는 정의되지 않은 값만 포함되어 있습니다.","pt-BR":"Os dados usados para colorir esse visualização contém somente valores indefinidos.","fr-FR":"Les données utilisées pour colorer cette visualisation ne comportent que des valeurs non définies.","ja-JP":"このビジュアライゼーションの色の割り当てに使用したデータには、未定義の値が含まれています。","ru-RU":"Данные, используемые для выбора цвета визуализации, содержат только неопределенные значения."}},properties_trendlines_types_average:{id:"properties.trendlines.types.average",locale:{"en-US":"Average","zh-TW":"平均值","zh-CN":"平均值","tr-TR":"Ortalama","sv-SE":"Medel","it-IT":"Media","es-ES":"Media","de-DE":"Durchschnitt","pl-PL":"Średnia","nl-NL":"Gemiddelde","ko-KR":"평균","pt-BR":"Média","fr-FR":"Moyenne","ja-JP":"平均値","ru-RU":"Среднее"}},properties_trendlines_types_linear:{id:"properties.trendlines.types.linear",locale:{"en-US":"Linear","zh-TW":"線性","zh-CN":"线性","tr-TR":"Doğrusal","sv-SE":"Linjär","it-IT":"Lineare","es-ES":"Lineal","de-DE":"Linear","pl-PL":"Liniowa","nl-NL":"Lineair","ko-KR":"선형","pt-BR":"Linear","fr-FR":"Linéaire","ja-JP":"線形","ru-RU":"Линейный"}},properties_trendlines_types_polynomial2:{id:"properties.trendlines.types.polynomial2",locale:{"en-US":"Second degree polynomial","zh-TW":"第二度多項式","zh-CN":"二次多项式","tr-TR":"İkinci derece polinom","sv-SE":"Polynomial, andra graden","it-IT":"Polinomio di secondo grado","es-ES":"Polinómica de segundo grado","de-DE":"Polynom zweiten Grades","pl-PL":"Wielomianowa drugiego stopnia","nl-NL":"Tweedegraadspolynoom","ko-KR":"2차 다항식","pt-BR":"Polinômio de segundo grau","fr-FR":"Polynomial du 2ème degré","ja-JP":"2 番目の角度の多項式近似","ru-RU":"Полиномиальный второй степени"}},properties_trendlines_types_polynomial3:{id:"properties.trendlines.types.polynomial3",locale:{"en-US":"Third degree polynomial","zh-TW":"第三度多項式","zh-CN":"三次多项式","tr-TR":"Üçüncü derece polinom","sv-SE":"Polynomial, tredje graden","it-IT":"Polinomio di terzo grado","es-ES":"Polinómica de tercer grado","de-DE":"Polynom dritten Grades","pl-PL":"Wielomianowa trzeciego stopnia","nl-NL":"Derdegraadspolynoom","ko-KR":"3차 다항식","pt-BR":"Polinômio de terceiro grau","fr-FR":"Polynomial du 3ème degré","ja-JP":"3 番目の角度の多項式近似","ru-RU":"Полиномиальный третьей степени"}},properties_trendlines_types_polynomial4:{id:"properties.trendlines.types.polynomial4",locale:{"en-US":"Fourth degree polynomial","zh-TW":"第四度多項式","zh-CN":"四次多项式","tr-TR":"Dördüncü derece polinom","sv-SE":"Polynomial, fjärde graden","it-IT":"Polinomio di quarto grado","es-ES":"Polinómica de cuarto grado","de-DE":"Polynom vierten Grades","pl-PL":"Wielomianowa czwartego stopnia","nl-NL":"Vierdegraadspolynoom","ko-KR":"4차 다항식","pt-BR":"Polinômio de quarto grau","fr-FR":"Polynomial du 4ème degré","ja-JP":"4 番目の角度の多項式近似","ru-RU":"Полиномиальный четвертой степени"}},properties_trendlines_types_exponential:{id:"properties.trendlines.types.exponential",locale:{"en-US":"Exponential","zh-TW":"指數","zh-CN":"指数","tr-TR":"Üstel","sv-SE":"Exponentiell","it-IT":"Esponenziale","es-ES":"Exponencial","de-DE":"Exponentiell","pl-PL":"Wykładnicze","nl-NL":"Exponentieel","ko-KR":"지수","pt-BR":"Exponencial","fr-FR":"Exponentiel","ja-JP":"指数","ru-RU":"Экспоненциальный"}},properties_trendlines_types_logarithmic:{id:"properties.trendlines.types.logarithmic",locale:{"en-US":"Logarithmic","zh-TW":"對數","zh-CN":"对数","tr-TR":"Logaritmik","sv-SE":"Logaritmisk","it-IT":"Logaritmica","es-ES":"Logarítmica","de-DE":"Logarithmisch","pl-PL":"Logarytmiczna","nl-NL":"Logaritmisch","ko-KR":"로그","pt-BR":"Logarítmico","fr-FR":"Logarithmique","ja-JP":"対数","ru-RU":"Логарифмический"}},properties_trendlines_types_power:{id:"properties.trendlines.types.power",locale:{"en-US":"Power","zh-TW":"乘冪","zh-CN":"幂","tr-TR":"Üs","sv-SE":"Potens","it-IT":"Potenza","es-ES":"Potencia","de-DE":"Potenz","pl-PL":"Potęgowa","nl-NL":"Macht","ko-KR":"거듭제곱","pt-BR":"Potência","fr-FR":"Puissance","ja-JP":"累乗","ru-RU":"Силовой"}},Common_Measures:{id:"Common.Measures",locale:{"en-US":"Measures","de-DE":"Kennzahlen","fr-FR":"Mesures","it-IT":"Misure","ja-JP":"メジャー","ko-KR":"측정값","es-ES":"Medidas","nl-NL":"Metingen","pl-PL":"Miary","pt-BR":"Medidas","sv-SE":"Mått","tr-TR":"Hesaplamalar","zh-CN":"度量","zh-TW":"量值","ru-RU":"Меры"}},Tooltip_ToggleOnLassoSelection:{id:"Tooltip.ToggleOnLassoSelection",locale:{"en-US":"Turn on lasso selection","de-DE":"Lasso-Auswahl aktivieren","fr-FR":"Activer la sélection au lasso","it-IT":"Attiva selezione lazo","ja-JP":"囲み選択をオンにする","ko-KR":"올가미 선택 켜기","es-ES":"Activar la selección de contorno","nl-NL":"Lassoselectie inschakelen","pl-PL":"Włącz zaznaczenie lasso","pt-BR":"Ativar seleção de laço","sv-SE":"Slå på lassourval","tr-TR":"Serbest seçimi aç","zh-CN":"开启套索选择方法","zh-TW":"開啟套索選取","ru-RU":"Включить выбор лассо"}},Tooltip_ToggleOffLassoSelection:{id:"Tooltip.ToggleOffLassoSelection",locale:{"en-US":"Turn off lasso selection","de-DE":"Lasso-Auswahl deaktivieren","fr-FR":"Désactiver la sélection au lasso","it-IT":"Disattiva selezione lazo","ja-JP":"囲み選択をオフにする","ko-KR":"올가미 선택 끄기","es-ES":"Desactivar la selección de contorno","nl-NL":"Lassoselectie uitschakelen","pl-PL":"Wyłącz zaznaczenie lasso","pt-BR":"Desativar seleção de laço","sv-SE":"Stäng av lassourval","tr-TR":"Serbest seçimi kapat","zh-CN":"关闭套索选择方法","zh-TW":"關閉套索選取","ru-RU":"Выключить выбор лассо"}}};const _T="REJECTED",HT=()=>{},$T=1e4,VT={MULTIPLIER:2,MINIMUM:20,MAXIMUM:200},WT=50,UT=10,KT=100;var GT={contains:function(e,t){if(!e)return!1;const{qArea:n}=e;return!!n&&(n.qLeft<=t.qLeft&&n.qLeft+n.qWidth>=t.qLeft+t.qWidth&&n.qTop<=t.qTop&&n.qTop+n.qHeight>=t.qTop+t.qHeight)},patcher:function({layoutService:e}){const t=t=>{t.qArea.qHeight=t.qMatrix.length,t.qArea.qWidth=e.meta.size.x};return t.should=e=>0===e.qArea.qHeight&&0===e.qArea.qWidth&&!!e.qMatrix.length,t},slicer:function(e,t){const n=Math.max(0,t.qHeight)-Math.abs(Math.min(0,t.qTop-e.qArea.qTop)),r=Math.max(0,t.qWidth)-Math.abs(Math.min(0,t.qLeft-e.qArea.qLeft)),o=Math.max(t.qTop,e.qArea.qTop),i=Math.max(t.qLeft,e.qArea.qLeft),a=Math.max(0,o-e.qArea.qTop),s=Math.min(o+n-e.qArea.qTop,e.qArea.qHeight),l=Math.max(0,i-e.qArea.qLeft),c=Math.min(i+r-e.qArea.qLeft,e.qArea.qWidth),u={qArea:{qHeight:s-a,qWidth:c-l,qTop:o,qLeft:i},qMatrix:[]};for(let t=a;t<s;t++)u.qMatrix.push(e.qMatrix[t].slice(l,c));return u},cacheWarden:function({bounds:e={width:0,height:0}}){return{release(t,n){const r=n.qTop-UT<=t.qTop,o=n.qLeft+n.qWidth+UT>=t.qLeft+t.qWidth,i=n.qTop+n.qHeight+UT>=t.qTop+t.qHeight,a=n.qLeft-UT<=t.qLeft;return r&&t.qTop>0||o&&t.qLeft+t.qWidth<e.width||i&&t.qTop+t.qHeight<e.height||a&&t.qLeft>0}}},request:function({definitionPath:e}){return t=>({method:"getHyperCubeData",args:[e,[t]]})}};var YT={contains:function(e,t){if(!e)return!1;const{qArea:n}=e;return!!n&&(n.qTop<=t.qTop&&n.qTop+n.qHeight>=t.qTop+t.qHeight)},patcher:function({layoutService:e}){const t=t=>{t.qArea.qHeight=t.qData[0].qSubNodes.length,t.qArea.qWidth=e.meta.size.x};return t.should=e=>0===e.qArea.qHeight&&0===e.qArea.qWidth&&!!e.qData.length,t},slicer:function(e,t){const n=Math.max(0,t.qHeight)-Math.abs(Math.min(0,t.qTop-e.qArea.qTop)),r=Math.max(t.qTop,e.qArea.qTop),o=Math.max(t.qLeft,e.qArea.qLeft),i=Math.max(0,r-e.qArea.qTop),a=Math.min(r+n-e.qArea.qTop,e.qArea.qHeight),s=e.qData[0].qUp+e.qArea.qHeight+e.qData[0].qDown-r-(a-i),l={qArea:{qHeight:a-i,qWidth:e.qArea.qWidth,qTop:r,qLeft:o},qData:[{...e.qData[0],qUp:r,qDown:s,qSubNodes:[]}]};for(let t=i;t<a;t++)l.qData[0].qSubNodes.push(e.qData[0].qSubNodes[t]);return l},cacheWarden:function({bounds:e={height:0}}){return{release(t,n){const r=n.qTop-UT<=t.qTop,o=n.qTop+n.qHeight+UT>=t.qTop+t.qHeight;return r&&t.qTop>0||o&&t.qTop+t.qHeight<e.height}}},request:function({definitionPath:e}){return t=>({method:"getHyperCubeStackData",args:[e,[t]]})}};var XT={contains:function(){return!1},patcher:function(){const e=e=>e;return e.should=()=>!1,e},slicer:function(e){return e},cacheWarden:function(){return{release:()=>!0}},request:function({definitionPath:e}){return t=>({method:"getHyperCubeTreeData",args:[e,[t]]})}};const JT="pages";const ZT="discretePan",QT=10;function eq({chart:e,actions:t,componentKey:n,dockService:r,rtl:o,scroller:i}){return{type:"Pan",key:"discrete:pan",options:{event:ZT,pointers:1,threshold:QT,enable(r,o){return this.started===ZT||!o||!(!t.scroll.enabled()||!i.enabled())&&e.componentsFromPoint({x:o.center.x,y:o.center.y}).some((e=>e.key===n))}},events:{[`${ZT}start`](e){e.preventDefault(),this.started=ZT;const t="horizontal"===r.meta.major.orientation?e.deltaX:e.deltaY;this.previousTotalDelta=t<0?-10:QT},[`${ZT}move`](e){e.preventDefault();const t="horizontal"===r.meta.major.orientation,n=t?e.deltaX:e.deltaY,a=t&&o?-1:1,s=(n-this.previousTotalDelta)*a;this.previousTotalDelta=n,i.scroll(s)},[`${ZT}end`](e){e.preventDefault(),this.started=!1},[`${ZT}cancel`](e){e.preventDefault(),this.started=!1}}}}function tq({chart:e,componentKey:t,actions:n,scroller:r}){return function(o){if(!n.scroll.enabled()||!r.enabled())return;const[i]=e.componentsFromPoint({x:o.clientX,y:o.clientY}).filter((e=>e.key===t));if(!i)return;o.preventDefault();const a=Math.abs(o.deltaY)>Math.abs(o.deltaX)?o.deltaY:o.deltaX,s=Math.sign(-a)*KT;r.scroll(s)}}function nq({layoutService:e}){const t=function({layoutService:e}){const t=Math.floor($T/(e.meta.dimensionCount+e.meta.measureCount));return function({width:e,height:n}){const r=Math.min(t,Math.max(VT.MAXIMUM,n));return{width:e,height:Math.max(VT.MINIMUM,Math.min(n*VT.MULTIPLIER,r))}}}({layoutService:e}),n={width:e.meta.size.x,height:e.meta.size.y};return function(e){const{width:r,height:o}=t({width:e.qWidth,height:e.qHeight}),i=o?Math.ceil((o-e.qHeight)/2):0,a=r?Math.ceil((r-e.qWidth)/2):0;return{qHeight:o?Math.min(o,n.height):e.qHeight,qWidth:r?Math.min(r,n.width):e.qWidth,qTop:o?Math.max(0,Math.min(e.qTop-i,n.height-o)):e.qTop,qLeft:r?Math.max(0,Math.min(e.qLeft-a,n.width-r)):e.qLeft}}}function rq(e){let t,n;const r=o=>{t=o;const{method:i,args:a}=t.request;e[i](...a).then((e=>{if(t.canceled||n)return t.reject(_T),t=null,void(n&&(r(n),n=null));t.resolve(e[0]),t=null}))},o=e=>new Promise(((o,i)=>{const a={request:e,resolve:o,reject:i,canceled:!1,cancel:()=>{a.canceled=!0}};t?(e=>{n&&n.reject(_T),n=e})(a):r(a)}));return o.isProcessing=()=>!!t,o.hasQueued=()=>!!n,o.cancel=()=>{o.isProcessing()&&t.cancel(),o.hasQueued()&&(n.reject(_T),n=null)},o}const oq={command:{update:()=>{}}};var iq={inTotal:function({layoutService:e}){return e.meta.size.x},area:function({layoutService:e}){return{qTop:0,qHeight:1,qLeft:0,qWidth:e.meta.size.x}},scaleRange:function({layoutService:e,offsets:t,items:n,viewSize:r}){const{pixel:o}=t,i=e.getDataPages()[0],a=o/r;return[a,n.inView>=n.inTotal?a+1:a+i.qArea.qWidth/n.inView]}};var aq={inTotal:function({layoutService:e}){if(e.meta.isSnapshot&&!e.getLayoutValue("reducedHyperCube")){const[t]=e.getDataPages();if(t)return t.qArea.qHeight}return e.meta.size.y},area:function({layoutService:e,itemOffset:t,inView:n,areaBuffer:r}){const o=void 0===r?4:r,i=Math.max(0,Math.floor(t)-o/2);return{qTop:i,qHeight:Math.min(e.meta.size.y-i,Math.max(0,Math.ceil(n+o))),qLeft:0,qWidth:e.meta.size.x}},scaleRange:function({layoutService:e,offsets:t,items:n,viewSize:r}){const{pixel:o}=t,i=e.getDataPages()[0],a=r/n.inView,s=(o+i.qArea.qTop*a)/r;return[s,n.inView>=n.inTotal?s+1:s+i.qArea.qHeight/n.inView]}};function sq(e){const{groupSize:t,measureCount:n}=e.meta;return null!=t?t:n}function lq(e,t){const n=[];for(let r=0;r<e.length;r++){const o=t(e[r]);-1===n.indexOf(o)&&n.push(o)}return n.length}function cq(e){return lq(e.qMatrix,(e=>e[0].qElemNumber))-1}var uq={inTotal:function({layoutService:e}){const t=sq(e);return e.meta.size.y*t*(1+1/t)-1},area:function({layoutService:e,itemOffset:t,inView:n,areaBuffer:r}){const o=sq(e),i=void 0===r?o:r,a=t/(o+1),s=Math.max(0,Math.floor((t-a-i/2)/o));return{qTop:s,qHeight:Math.min(e.meta.size.y-s,Math.max(0,Math.ceil((n+i)/o+1))),qLeft:0,qWidth:e.meta.size.x}},scaleRange:function({layoutService:e,offsets:t,items:n,viewSize:r}){const o=sq(e),i=e.getDataPages()[0],a=r/n.inView,{pixel:s}=t,l=cq(i),c=i.qArea.qHeight*o+l,u=(s+(i.qArea.qTop*o+i.qArea.qTop)*a)/r;return[u,n.inView>=n.inTotal?u+1:u+c/n.inView]}};const dq=(e,t)=>t/(e.meta.size.y/e.meta.size.dimensions[0]+1);function pq(e){return{itemOffset(t,n){if(0!==t.qArea.qTop)return dq(e,n);const r=((e,t)=>{const n={successful:!0,count:0};let r=Math.abs(Math.floor(t));const o=[];for(let t=0;t<=r;t++){if(!e[t])return n.successful=!1,n;const i=e[t][0].qElemNumber;-1===o.indexOf(i)&&(o.push(i),r--)}return n.count=o.length-1,n})(t.qMatrix,n);return r.successful?r.count:dq(e,n)},area(t,n,r){if(0!==t.qArea.qTop)return dq(e,n);return lq(t.qMatrix.slice(0,r.qTop+1),(e=>e[0].qElemNumber))-1}}}var fq={inTotal:function({layoutService:e}){return e.meta.size.y+e.meta.size.dimensions[0]-1},area:function({getDataPages:e,layoutService:t,itemOffset:n,inView:r}){const o=pq(t).itemOffset(e(),n),i=Math.max(0,Math.floor(n-o));return{qTop:i,qHeight:Math.min(t.meta.size.y-i,Math.max(0,Math.ceil(r+1))),qLeft:0,qWidth:t.meta.size.x}},scaleRange:function({getDataPages:e,layoutService:t,offsets:n,items:r,viewSize:o,upperBound:i}){const a=t.getDataPages()[0],s=o/r.inView,{item:l,pixel:c}=n,u=pq(t).area(e(),l,a.qArea),d=cq(a),p=a.qArea.qHeight+d,f=c===i?(r.inView-p)*s/o:(c+(a.qArea.qTop+u)*s)/o;return[f,r.inView>=r.inTotal?f+1:f+p/r.inView]}};function mq({chart:e,rect:t,dockService:n,itemWidths:r,axisKey:o,renderer:i,isGrouped:a,dimensionAxis:s,inTotal:l,isMajorLabelless:c,maxDataRows:u}){const{DEFAULT:d,SQUEEZE:p,LABELLESS:f}=r[n.meta.chart.mode],m="horizontal"===n.meta.major.orientation,{axisDisplayMode:h="auto",maxVisibleItems:g=10,label:y}=s,v=m?t.width:t.height,b=v/l>=p;switch(h){case"max":return Math.min(l,u);case"custom":return Math.min(g,u);default:return c?v/f:b?function({chart:e,isHorizontal:t,axisKey:n,renderer:r={},isGrouped:o,itemSize:i,label:a}){if(o||"auto"!==a&&"tilted"!==a)return!1;const s=e.component(n),{measureText:l}=r;if(!s||!l)return!0;const{fontFamily:c,fontSize:u,tiltAngle:d}=s.settings.settings.labels,{height:p}=l({fontFamily:c,fontSize:u,text:"M"});if(!t)return p>i;const f=(90-d)*(Math.PI/180);return p>Math.cos(f)*i}({chart:e,isHorizontal:m,axisKey:o,renderer:i,isGrouped:a,itemSize:p,label:y})?v/d:l:v/d}}var hq="AVERAGE",gq="LINEAR",yq="POLYNOMIAL2",vq="POLYNOMIAL3",bq="POLYNOMIAL4",xq="EXPONENTIAL",Sq="LOG",Mq="POWER";function Cq({dimValue:e,value:t,qTrendLine:n}){const{qType:r,qCoeff:o}=n,i={x:e,y:o[2]*t**2+o[1]*t+o[0]};switch(r){case vq:return i.y+=o[3]*t**3,i;case bq:return i.y+=o[4]*t**4+o[3]*t**3,i;default:return i}}var wq={average:function({dimValue:e,qTrendLine:t}){return{x:e,y:t.qCoeff[0]}},linear:function({dimValue:e,value:t,qTrendLine:n}){return{x:e,y:n.qCoeff[1]*t+n.qCoeff[0]}},polynomial2:Cq,polynomial3:Cq,polynomial4:Cq,exponential:function({dimValue:e,value:t,qTrendLine:n}){return{x:e,y:Math.exp(n.qCoeff[0]+t*n.qCoeff[1])}},log:function({dimValue:e,value:t,qTrendLine:n}){return{x:e,y:n.qCoeff[1]+n.qCoeff[0]*Math.log(t)}},power:function({dimValue:e,value:t,qTrendLine:n}){return{x:e,y:10**(n.qCoeff[0]+n.qCoeff[1]*Math.log(t)*Math.LOG10E)}}};function kq(e,t){const n=wq[t.qType.toLowerCase()],r=Math.max(1,e/500);let o=1/0,i=-1/0;for(let a=0;a<e;a+=r){const{y:e}=n({dimValue:null,value:a+1,qTrendLine:t});o=Math.min(e,o),i=Math.max(e,i)}return{min:o,max:i}}function Eq(e){return wq[e.qType.toLowerCase()]}function Tq(e,t){return e.meta.isContinuous?function(e,t){return{generate:(n,r,o)=>{var i,a;const s=[],l=Eq(n),c=t.get("zoom"),u=null!==(i=n.start)&&void 0!==i?i:c.min,d=null!==(a=n.end)&&void 0!==a?a:c.max,p=(d-u)/100,f=e.meta.isButterfly&&o>0;if(p>0){const e=e=>{const t=l({dimValue:e,value:e,qTrendLine:n});f&&(t.y=-t.y),t.layerId=r,t.measureIndex=o,t.dimValue=e,s.push(t)};let t=u;for(let n=u;n<=d;n+=p)e(n),t=n;t!==d&&e(d)}return s},calculate:(e,t)=>Eq(e)({dimValue:t,value:t,qTrendLine:e}),findMinMax(e,t){const n=this.generate(t).map((({y:e})=>e));return{min:Math.min(...n),max:Math.max(...n)}}}}(e,t):e.meta.mode.K?function(e){return{generate:(t,n,r)=>{const o=[],i=e.getDataPages()[0],a=i.qData[0].qSubNodes,s=i.qArea.qTop,l=wq[t.qType.toLowerCase()];for(let e=0;e<a.length;e++){const i=a[e],c=l({dimValue:i.qElemNo,value:e+s+1,qTrendLine:t});c.layerId=n,c.measureIndex=r,c.dimValue=i.qText,o.push(c)}return o},findMinMax:kq}}(e):function(e){return{generate:(t,n,r)=>{const o=[],i=e.getDataPages()[0],a=i.qMatrix,s=i.qArea.qTop,l=wq[t.qType.toLowerCase()],c=e.meta.isButterfly&&r>0;for(let e=0;e<a.length;e++){const i=a[e][0],u=e+s+1,d=l({dimValue:i.qElemNumber,value:u,qTrendLine:t});c&&(d.y=-d.y),d.layerId=n,d.measureIndex=r,d.dimValue=i.qText,o.push(d)}return o},calculate:(e,t,n)=>(0,wq[e.qType.toLowerCase()])({dimValue:n,value:t,qTrendLine:e}),findMinMax:kq}}(e)}var qq={TYPES:{AVERAGE:"properties.trendlines.types.average",LINEAR:"properties.trendlines.types.linear",POLYNOMIAL2:"properties.trendlines.types.polynomial2",POLYNOMIAL3:"properties.trendlines.types.polynomial3",POLYNOMIAL4:"properties.trendlines.types.polynomial4",EXPONENTIAL:"properties.trendlines.types.exponential",LOG:"properties.trendlines.types.logarithmic",POWER:"properties.trendlines.types.power"},STYLE:{DASHED:"properties.trendlines.style.dashed"},TYPE:"properties.trendlines.type",HEADER:"properties.trendlines",ADD_BUTTON:"properties.trendlines.button.add"},Lq={color:"#f93f17",index:9};const{isDark:Nq}=Ht,Oq={x:NaN,y:NaN,layerId:NaN,measureIndex:NaN},Dq=({layoutService:e,viewState:t,colorModel:n,chart:r,env:o,keys:{colorScale:i},isEnabled:a=()=>!1})=>{const{translator:s}=o,l=[Oq],c=[],d=[],p=Tq(e,t);e.getLayoutValue("qHyperCube.qMeasureInfo",[]).forEach(((e,t)=>{Array.isArray(e.qTrendLines)&&(c.push(...e.qTrendLines),d.push(...e.qTrendLines.map((()=>t))))}));const f=u((e=>{const{style:t}=c[e]||{},o=n.settings();if(t.autoColor){if("measure"===o.mode){const t=d[e],n=r.scale(i)(t);return Nq(n)?function(e){const t=Ft(e);return t.l<30?t.l+=15:t.l<50?t.l+=10:t.l+=5,t.toString()}(n):function(e){const t=Ft(e);return t.l-=5,t.toString()}(n)}return n.resolveUIColor(Lq)}return t.paletteColor?n.resolveUIColor(t.paletteColor):"none"}));return{query:{hasTrendLines:()=>!!c.length&&a(),getData:()=>l,getStroke:f,getLineDash:e=>{const{style:t}=c[e]||{};return null==t?void 0:t.lineDash},getLineThickness:e=>{var t;const{style:n}=c[e]||{};return null!==(t=null==n?void 0:n.lineThickness)&&void 0!==t?t:2},getLabel:e=>(c[e]||{}).label,getType:e=>{const{qType:t}=c[e]||{};return s.get(qq.TYPES[t])},getMinMax:()=>{let t=1/0,n=-1/0;return c.forEach((r=>{const o=p.findMinMax(e.meta.size.y,r);t=Math.min(o.min,t),n=Math.max(o.max,n)})),{min:t,max:n}},getCalculatedValue:(e,t,n)=>{const r=c[e];return p.calculate(r,t,n)}},command:{update:()=>{l.length=0,c.forEach(((e,t)=>{const n=p.generate(e,t,d[t]);l.push(...n)}))}}}};var Aq={source:"trend",extract:{field:"x",props:{minor:{field:"y"},layer:{field:"layerId"},measureIndex:{field:"measureIndex"},dimValue:{field:"dimValue"}}}};const Rq=({meta:e})=>e.isContinuous?({scale:e,datum:t})=>e(t.value):e.isGroupedByMeasure?({scale:e,datum:t})=>e([t.value,t.measureIndex.value])+e.bandwidth()/2:({scale:e,datum:t})=>e(t.value)+e.bandwidth()/2,Pq=(e,{layoutService:t,trendLineModel:n,dockService:r,animationsEnabled:o})=>{if(!n.query.hasTrendLines())return[];const i=(({majorScale:e,minorScale:t},{trendLineModel:n,layoutService:r,dockService:o,animationsEnabled:i})=>{const a=Rq(r);return{key:"trend-lines",type:"line",layout:{dock:"center"},data:Aq,settings:{connect:!0,orientation:o.meta.major.orientation,coordinates:{major:{scale:e,fn:a},minor:{scale:t},layerId:{ref:"layer"}},layers:{curve:"monotone",line:{strokeWidth:({datum:e})=>n.query.getLineThickness(e.layer.value),stroke:({datum:e})=>n.query.getStroke(e.layer.value),strokeDasharray:({datum:e})=>n.query.getLineDash(e.layer.value)}}},animations:{enabled:i,trackBy:Ha.nonUpdatingNode.trackBy,compensateForLayoutChanges:Ha.lines.compensateForLayoutChanges}}})(e,{trendLineModel:n,layoutService:t,dockService:r,animationsEnabled:o}),a=(({majorScale:e,minorScale:t,tooltipOverlay:n="trend-lines-tooltip-overlay"},{layoutService:r,dockService:o})=>{const i=Rq(r),a="horizontal"===o.meta.major.orientation,s={scale:e,fn:i},l={scale:t,ref:"minor"};return{key:n,type:"point",layout:{dock:"center"},data:Aq,settings:{x:a?s:l,y:a?l:s,opacity:0,size:1,sizeLimits:{maxPx:8,minPx:8}}}})(e,{layoutService:t,dockService:r});return[i,a]};function Iq(e,t){const{getLabel:n,getType:r,getLineDash:o,getStroke:i}=t.query;return({node:t,resources:a})=>{const s={type:"icon",style:{stroke:i(t.data.layer.value),"min-width":"16px","vertical-align":"middle","stroke-dasharray":o(t.data.layer.value)}},l={content:[{content:n(t.data.layer.value),style:{"font-weight":"bold"}},{content:r(t.data.layer.value)}],style:{"min-width":"136px"}};return{title:t.data.dimValue.label,row:[s,l,{content:a.formatter(e.formatter)(t.data.minor.value)}]}}}function zq(e,{h:t,style:n}){return e.map((e=>{const r={style:{direction:"string"==typeof e.content?$e.detectTextDirection(e.content):void 0,...n.cell||{},...e.style||{}},class:e.class};e.colspan&&(r.colspan=e.colspan);const o=function(e,t){return Array.isArray(t.content)?e("div",{style:{display:"flex","flex-direction":"column"}},t.content.map((t=>e("span",{style:t.style,direction:$e.detectTextDirection(t.content)},t.content)))):"icon"===t.type?function(e){const t=e("line",{x1:"0px",y1:"16px",x2:"16px",y2:"0px","stroke-width":"3px"});return e("svg",{xlms:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16"},t)}(e):t.content}(t,e);return t("td",r,o)}))}function jq(e,t){return({h:n,data:r,style:o})=>{const i=r[0].title,a=r.filter((e=>e.title===i)),s=function(e,t){const n=e("td",{colspan:3,style:{"font-weight":"bold"},direction:$e.detectTextDirection(t)},t);return e("tr",{},n)}(n,i),l=[s];if(a.slice(0,2).forEach((e=>{l.push(n("tr",{},zq(e.row,{h:n,style:o})))})),r.length>2){const o=r.length-2;l.push(...function(e,t,n,r){const o=t?t.get("Object.ChartTooltip.NMore",r):`+${r} more`,i=$e.detectTextDirection(o);return[e("tr",{},e("td",{style:{"background-image":"linear-gradient(transparent 8px, rgba(255, 255, 255, 0.4) 8px, rgba(255, 255, 255, 0.4) 9.2px, transparent 9.2px)",height:"17px"},colspan:3},"")),e("tr",{},e("td",{style:{"font-weight":"bold","text-align":n?"right":"left",direction:i},colspan:3},o))]}(n,e,t,o))}return l}}function Fq(e,{trendLineModel:t,translator:n},r={}){if(!t.query.hasTrendLines())return!1;const{rtl:o}=r,i=Fe({key:e.tooltip,rtl:o});return he(!0,i,{settings:{extract:Iq(e,t),content:jq(n,o),placement:"pointer",direction:r.rtl?"rtl":"ltr"}})}function Bq(e,t){const n=t.element.getBoundingClientRect();return{x:(e.center?e.center.x:e.clientX)-n.left,y:(e.center?e.center.y:e.clientY)-n.top}}function _q(e,{chart:t,viewState:n,trendLineModel:r,layoutService:o,rtl:i}){const{isContinuous:a}=o.meta;let s={components:[{key:e.tooltipOverlay}],propagation:"stop"},l=e=>{const n=Bq(e,t);return t.shapesAt(n,s)};if(a){const{getCalculatedValue:o}=r.query;s={components:[{key:"trend-lines"}],propagation:"stop"},l=(r,a)=>{const l=Bq(r,t),c=t.shapesAt(function(e){return{cx:e.x,cy:e.y,r:3}}(l),s);if(c.length){const r=function(e,t,n,r){let o=(e.x-t.rect.computed.x)/t.rect.computed.width;o=r?1-o:o;const{min:i,max:a}=n.get("zoom");return i+(a-i)*o}(l,a,n,i),s=t.scale(e.majorInnerScale),u=(null!=s&&s.formatter?s.formatter():t.formatter({data:{fields:["qDimensionInfo/0"]}}))(r);c.forEach((e=>{e.data.dimValue.value=r,e.data.dimValue.label=u,e.data.minor.value=o(e.data.layer.value,r).y}))}return c}}return n=>{const r=t.component(e.tooltip);if(r&&(n=>t.componentsFromPoint({x:n.center?n.center.x:n.clientX,y:n.center?n.center.y:n.clientY}).some((t=>t.key===e.tooltipOverlay)))(n)){const e=l(n,r);return e.length?(r.emit("show",n,{nodes:e}),!0):(r.emit("hide"),!1)}return!1}}const Hq=e=>{e.style.dashed?e.style.lineDash="8, 4":e.style.lineDash=""},$q=e=>{Hq(e),e.qMultiDimMode="Sum",e.qXColIx=0};function Vq(e={}){const{translator:t,events:n={onGlobalChange:()=>{}},allowStackedByDimension:r=!1}=e;return{show:(e,t,{layout:n})=>!Le.dimensionless(n)&&!Le.groupedByDimension(n)&&(r||!Le.stackedByDimension(n)),type:"array",ref:"qTrendLines",titleTranslation:qq.HEADER,itemTitleRef:e=>{const n=typeof e.label;return"string"===n&&e.label?e.label:"object"===n?e.label.qStringExpression?e.label.qStringExpression.qExpr:e.label.qValueExpression.qExpr:t.get(qq.TYPES[e.qType])},max:8,allowAdd:!0,allowRemove:!0,allowMove:!1,addTranslation:qq.ADD_BUTTON,add:$q,globalChange:e=>{const t=o(e,"qHyperCubeDef.qMeasures",[]).reduce(((e,t)=>(Array.isArray(t.qTrendLines)&&e.push(...t.qTrendLines),e)),[]),r=(e=>!o(e,"dimensionAxis.continuousAuto",!1)&&e.preferContinuousAxis)(e)?"Possible":"Never";t.forEach((e=>{e.qContinuousXAxis=r})),n.onGlobalChange(e,t)},items:{label:{ref:"label",type:"string",expression:"optional",translation:"Common.Label",defaultValue:""},type:{ref:"qType",type:"string",component:"dropdown",translation:qq.TYPE,options:[{value:hq,translation:qq.TYPES.AVERAGE},{value:gq,translation:qq.TYPES.LINEAR},{value:yq,translation:qq.TYPES.POLYNOMIAL2},{value:vq,translation:qq.TYPES.POLYNOMIAL3},{value:bq,translation:qq.TYPES.POLYNOMIAL4},{value:xq,translation:qq.TYPES.EXPONENTIAL},{value:Sq,translation:qq.TYPES.LOG},{value:Mq,translation:qq.TYPES.POWER}],defaultValue:hq},autoColor:{ref:"style.autoColor",type:"boolean",translation:"properties.colors",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}]},paletteColor:{ref:"style.paletteColor",translation:"properties.color",type:"object",component:"color-picker",dualOutput:!0,defaultValue:Lq,show:e=>!e.style.autoColor},dashed:{ref:"style.dashed",translation:qq.STYLE.DASHED,type:"boolean",defaultValue:!0,change:Hq}}}}var Wq={};function Uq(){Uq.init.call(this)}Wq.isObject=function(e){return"object"==typeof e&&null!==e},Wq.isNumber=function(e){return"number"==typeof e},Wq.isUndefined=function(e){return void 0===e},Wq.isFunction=function(e){return"function"==typeof e};var Kq=Uq;Uq.EventEmitter=Uq,Uq.prototype._events=void 0,Uq.prototype._maxListeners=void 0,Uq.defaultMaxListeners=10,Uq.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},Uq.prototype.setMaxListeners=function(e){if(!Wq.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},Uq.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],Wq.isUndefined(n))return!1;if(Wq.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(Wq.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},Uq.prototype.addListener=function(e,t){var n;if(!Wq.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,Wq.isFunction(t.listener)?t.listener:t),this._events[e]?Wq.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,Wq.isObject(this._events[e])&&!this._events[e].warned)&&((n=Wq.isUndefined(this._maxListeners)?Uq.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,Wq.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),Wq.isFunction(console.trace)&&console.trace()));return this},Uq.prototype.on=Uq.prototype.addListener,Uq.prototype.once=function(e,t){if(!Wq.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},Uq.prototype.removeListener=function(e,t){var n,r,o,i;if(!Wq.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||Wq.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(Wq.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},Uq.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],Wq.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},Uq.prototype.listeners=function(e){return this._events&&this._events[e]?Wq.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},Uq.listenerCount=function(e,t){return e._events&&e._events[t]?Wq.isFunction(e._events[t])?1:e._events[t].length:0};var Gq=oe(Kq);const Yq={shapes:[{type:"path",attrs:{d:"M15.9488039,5.20769129 C16.0487326,6.70662306 15.3492311,8.30548361 14.050157,9.30477145 C12.651154,10.5039169 10.8524359,10.8037032 8.85386017,10.4039881 L7.3549284,10.0042729 L5.75606786,9.70448659 C5.75606786,9.90434416 5.65613907,10.0042729 5.4562815,10.2041305 C5.05656637,10.6038456 4.55692244,10.8037032 4.05727852,10.8037032 C3.75749217,10.8037032 3.45770582,10.7037744 3.15791946,10.6038456 C3.05799068,10.903632 3.15791946,11.2034184 3.45770582,11.7030623 C5.05656637,14.0014243 3.85742095,15.9000712 3.75749217,16 L2.2585604,15.3004985 C2.2585604,15.2005697 2.95806189,14.0014243 1.95877405,12.6024213 C1.6589877,12.0028486 1.15934378,11.0035608 1.55905891,10.0042729 C1.6589877,9.80441537 1.75891648,9.6045578 1.95877405,9.40470024 C1.6589877,8.90505631 1.55905891,8.30548361 1.85884527,7.7059109 C1.55905891,7.40612455 1.25927256,7.1063382 1.15934378,6.70662306 C0.859557424,5.90719279 0.959486209,4.5081898 1.6589877,3.30904439 C1.95877405,2.6095429 2.55834676,2.0099702 3.15791946,1.51032628 C3.95734974,0.91075357 4.95663758,0.610967217 6.15578299,0.311180864 C9.05371774,-0.388320626 11.9516525,0.111323295 13.9502282,1.61025506 C15.1493736,2.50961412 15.8488751,3.80868831 15.9488039,5.20769129 Z M13.0508691,8.10562604 C13.8502994,7.40612455 14.3499433,6.40683671 14.3499433,5.30762008 C14.2500145,4.20840345 13.550513,3.40897318 12.9509403,2.90932926 C12.1515101,2.40968533 11.252151,2.0099702 10.1529344,1.81011263 C8.95378895,1.61025506 7.75464354,1.71018384 6.45556935,1.91004141 C4.75678001,2.30975655 3.65756338,3.00925804 3.05799068,4.10847467 C2.55834676,5.00783373 2.65827554,5.90719279 2.75820433,6.20697914 C2.75820433,6.30690792 2.85813311,6.40683671 3.05799068,6.40683671 C3.15791946,6.40683671 3.25784825,6.40683671 3.35777703,6.40683671 C3.45770582,6.40683671 3.45770582,6.40683671 3.45770582,6.40683671 L3.5576346,6.40683671 L3.65756338,6.40683671 C4.65685123,6.40683671 5.4562815,6.90648063 5.85599664,7.80583969 L5.85599664,8.00569726 C6.35564056,8.10562604 7.05514205,8.30548361 7.75464354,8.50534118 L9.25357531,8.90505631 C10.0530056,9.0049851 10.7525071,9.0049851 11.4520086,8.80512753 C12.0515813,8.70519875 12.5512252,8.40541239 13.0508691,8.10562604 Z"}}]};const Xq=e=>(Object.keys(Gq.prototype).forEach((t=>{e[t]=Gq.prototype[t]})),Gq.init(e),e);var Jq={SPARK:{DEFAULT:7,SQUEEZE:7,LABELLESS:7},XSMALL:{DEFAULT:28,SQUEEZE:24,LABELLESS:20},SMALL:{DEFAULT:28,SQUEEZE:24,LABELLESS:20},MEDIUM:{DEFAULT:28,SQUEEZE:24,LABELLESS:20},FULL:{DEFAULT:28,SQUEEZE:24,LABELLESS:20}},Zq={SCALE:{MAIN:{MINOR:"minor",MAJOR:"major",MAJOR_INNER:"majorInner",COLOR:"fill"},REDUCED:{MINOR:"miniMinor",MAJOR:"miniMajor",COLOR:"reducedFill"}},COMPONENT:{BAR:"bar",GHOST_BAR_OOB:"ghost-bar",BAR_AXIS:"bar-axis",GROUP_AXIS:"group-axis",BAR_OOB_MAX:"bar-oob-max",BAR_OOB_MIN:"bar-oob-min",STACK_TOTAL_BAR:"stack-total-bar",BASE_TOOLTIP:"tooltip",SPACE:"space",LEGEND_CAT_TOOLTIP:"legend-cat-tooltip",LEGEND_COLOR_CAT:"legend-color-cat",MEASURE_REF_LINE:"mes-ref-line",DIMENSION_REF_LINE:"dim-ref-line",MEASURE_REF_LINE_LABEL:"mes-ref-line-label",DIMENSION_REF_LINE_LABEL:"dim-ref-line-label",TREND_LINES_TOOLTIP:"trend-lines-tooltip",TREND_LINES_TOOLTIP_OVERLAY:"trend-lines-tooltip-overlay"},COLLECTION:{MAIN:"main-collection",MINI:"mini-collection",MINI_STACK:"mini-stack-collection",MINI_CONTINUOUS:"mini-continuous-collection",STACK_TOTAL:"stack-total-collection"},FORMATTER:{MINOR:"bar",COLOR:"fill"}};const Qq=({layout:e,flags:t})=>{var n,r,o,i;if(null==t||!t.isEnabled("TLV_800_BUTTERFLY_CHART"))return!1;const a=null==e||null===(n=e.qHyperCube)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==LT})),s=null==e||null===(r=e.qHyperCube)||void 0===r||null===(r=r.qMeasureInfo)||void 0===r?void 0:r.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==LT})),l=null!==(o=null==a?void 0:a.length)&&void 0!==o?o:0,c=null!==(i=null==s?void 0:s.length)&&void 0!==i?i:0;return 1===l&&2===c},eL=e=>({layout:t})=>{var n;const r=Me.canBeContinuous(t),o=Le.continuous(t),i=Le.dimensionless(t),a=Qq({layout:t,flags:e})&&"butterfly"===(null==t||null===(n=t.barGrouping)||void 0===n?void 0:n.grouping);return{canBeContinuous:r,isDiscrete:!o,isContinuous:o,isTime:Me.isTime(o,t),isDimensionless:i,isSimple:Le.simple(t),isGrouped:!a&&Le.grouped(t),isGroupedByMeasure:!a&&Le.groupedByMeasure(t),isGroupedByDimension:!a&&Le.groupedByDimension(t),isStacked:!a&&Le.stacked(t),isStackedByDimension:!a&&Le.stackedByDimension(t),isStackedByMeasure:!a&&Le.stackedByMeasure(t),isSnapshot:Le.snapshot(t),isButterfly:a}};function tL({clearMinor:e,clearLegend:t,clearDiscrete:n,clearContinuous:r,selectionInfo:o}){t({componentName:"legendRangeBrush"}),e({eventName:"measureRange",componentName:"measureRangeBrush"}),n({eventName:"discreteRange",componentName:"discreteRangeBrush",brushName:!1}),"tap"!==o.event&&r({componentName:"continuousRangeBrush",brushName:!1})}function nL({chart:e,actions:t,selections:n}){const r=e.scale(Zq.SCALE.MAIN.MAJOR);return d({chart:e,actions:t,selections:n,config:{allowSimultaneous:!0,brushRanges:!0,majorScale:r,selectionActions:{reset(){e.brushSelectionIncludeMax=void 0,t.lasso.active()&&t.lasso.action(!1)},clear:tL},custom:{getActions:()=>t},setBrushAliases({defaultFunc:e,brush:t}){e(),t.addKeyAlias("miniCube/qDimensionInfo/0","qHyperCube/qDimensionInfo/0"),t.addKeyAlias("miniCube/qDimensionInfo/1","qHyperCube/qDimensionInfo/1")}}})}const rL=e=>{const t=e.qDimensionInfo.length;for(let n=0;n<t;n++){const r=e.qDimensionInfo[n];if(!(r.qLocked||r.qCardinalities.qHypercubeCardinal<=1&&n<t-1))return n}};function oL({layout:e,defaultAuto:t}){return e.qHyperCube.qDimensionInfo.length>1?{mode:"byDimension",useDimColVal:!0,useBaseColors:"dimension",byDimDef:{activeDimensionIndex:1}}:e.qHyperCube.qMeasureInfo.length>1?{mode:"primary",useBaseColors:"measure",paletteColor:null}:t(e)}function iL({app:e,model:t,translator:n,picasso:r,localeInfo:o,theme:i,continuousDataModel:a,layoutService:s,legendLayoutService:l,reducedDataModel:c}){const{isContinuous:u,isStacked:d}=s.meta,f={main:void 0,mini:{getScales:()=>({}),getColor:()=>e=>e,getDatumProps:()=>({}),getAuxiliarySettings:()=>{}}};return{initialize:()=>{const m=[],{isReduced:h}=c.model().mode,g=u||h||d,y=!u&&(h||d)&&l?l.getHyperCube():void 0,v=y?"legendCube":void 0;return f.main=p({app:e,model:t,translator:n,picasso:r,layoutService:s,config:{localeInfo:o,auto:oL,key:Zq.SCALE.MAIN.COLOR},createConfig:()=>({hc:g?y||s.getHyperCube():c.model().cube,source:g?v:"miniCube",theme:i})}),m.push(f.main.initialize()),u&&(f.mini=p({app:e,model:t,translator:n,picasso:r,layoutService:s,config:{localeInfo:o,auto:oL,key:Zq.SCALE.REDUCED.COLOR},createConfig:()=>({layout:a.getInitialLayout(),hc:a.getInitialCube(),source:"miniCube",theme:i})}),m.push(f.mini.initialize())),Promise.all(m)},getMain:()=>f.main,getMini:()=>f.mini}}const aL={getMaxGlyphCount(e,t){const{qDimensionInfo:n}=e,{qApprMaxGlyphCount:r}=n[t];return r},getDimensionSize(e){var t;const n=null==e||null===(t=e.qCardinalities)||void 0===t?void 0:t.qHypercubeCardinal,{qLocked:r=0,qOption:o=0,qSelected:i=0}=(null==e?void 0:e.qStateCounts)||{};return[void 0,0].includes(n)?r+o+i:n}};function sL({layoutService:e}){return f({config:{args:{layoutService:e},disclaimers:{NoDataExist:!0,OnlyNanDataMeasure:!0,OnlyNanDataDimensionContinuous:!0,LimitedData:{condition:()=>{const{isContinuous:t,isTwoDimensional:n}=e.meta;if(!t||!n)return!1;const r=e.getLayout().qHyperCube.qDimensionInfo[1];return aL.getDimensionSize(r)>Me.maxNumberOfLines}},OnlyNegativeValues:{condition:()=>{if(e.meta.isButterfly){const{qMeasureInfo:t}=e.getHyperCube();return t.every((e=>{const{qMin:t,qMax:n}=e;return t<0&&n<0}))}return!1},alignment:"center"},NegativeValues:{condition:()=>{if(e.meta.isButterfly){const{qMeasureInfo:t}=e.getHyperCube();return t.some((e=>{const{qMin:t}=e;return t<0}))}return!1}}}}})}function lL(e){return e.qIsOtherCell||-3===e.qElemNumber||-3===e.qElemNo}function cL(e){return e.some(lL)}function uL(e,t){let n=NaN,r=NaN;return e.forEach((e=>{cL(e)||e.slice(-t).forEach((e=>{"NaN"!==e.qNum&&(n=Number.isNaN(n)?e.qNum:Math.min(e.qNum,n),r=Number.isNaN(r)?e.qNum:Math.max(e.qNum,r))}))})),{min:n,max:r}}function dL(e){let t=NaN,n=NaN;if(!e.getLayoutValue("measureAxis.autoMinMax",!1)){const r=e.getLayoutValue("measureAxis.minMax");e.meta.isButterfly||"min"!==r&&"minMax"!==r||(t=+e.getLayoutValue("measureAxis.min")),"max"!==r&&"minMax"!==r||(n=+e.getLayoutValue("measureAxis.max"),e.meta.isButterfly&&(t=-n))}return{min:t,max:n,isExplicitMin:!Number.isNaN(t),isExplicitMax:!Number.isNaN(n)}}function pL(e,t){let n=NaN,r=NaN;return e.forEach((e=>{if(!cL(e)){let o=0,i=0;e.slice(-t).forEach((e=>{"NaN"!==e.qNum&&(e.qNum>=0?i+=e.qNum:o+=e.qNum)})),n=Number.isNaN(n)?o:Math.min(o,n),r=Number.isNaN(r)?i:Math.max(i,r)}})),{min:n,max:r}}function fL(e,t){const n={};e.forEach((e=>{if(!cL(e)){const r=e[0].qElemNumber;n[r]=n[r]?n[r]:{min:0,max:0,cId:r},e.slice(t).forEach((e=>{"NaN"!==e.qNum&&(e.qNum>=0?n[r].max+=e.qNum:n[r].min+=e.qNum)}))}}));let r=NaN,o=NaN;return Object.keys(n).forEach((e=>{r=Number.isNaN(r)?n[e].min:Math.min(n[e].min,r),o=Number.isNaN(o)?n[e].max:Math.max(n[e].max,o)})),{min:r,max:o}}function mL(e){return"number"==typeof e&&!Number.isNaN(e)}function hL(e){const{meta:t}=e,n=e.getHyperCubeValue("qMeasureInfo");return t.isButterfly?{min:Math.min(0,mL(n[1].qMax)?-n[1].qMax:0),max:Math.max(0,mL(n[0].qMax)?n[0].qMax:0)}:{min:Math.min(...n.filter((e=>mL(e.qMin))).map((e=>e.qMin))),max:Math.max(...n.filter((e=>mL(e.qMax))).map((e=>e.qMax)))}}const{isNumber:gL}=Qi;function yL(e,t,n){for(let n=e.length-1;n>-1;n--)if(t(e[n]))return e[n];return n}function vL(e){return!Number.isNaN(+e.qNum)}function bL(e){return e.qNum}function xL(e){return!Number.isNaN(+e.qNum)}function SL(e){return e.qNum}function ML(e,t){return e.push(...t),e}const{getValueWithOffset:CL,isNumber:wL}=Qi,kL=5,EL=.2;function TL(e,t){return Math.abs(e/t)<kL||0===t}function qL({layoutService:e,trendLineModel:t},n={}){const{stackedByMeasureExtractor:r=pL,stackedByDimensionExtractor:i=fL,straightExtractor:a=uL,measureInfoExtractor:s=hL,explicitExtractor:l=dL}=n,{meta:c}=e;return{extract({qDataPages:e,qStackedDataPages:n,others:r,count:o}){let i,a;if(Array.isArray(n)?({min:i,max:a}=this.extractFromStacked(n)):({min:i,max:a}=this.extractFromStraight(e,o)),t.query.hasTrendLines()){const{min:e,max:n}=t.query.getMinMax();i=Number.isFinite(e)?Math.min(i,e):i,a=Number.isFinite(n)?Math.max(a,n):a}const{min:s,max:l}=this.extractOthers(r),c=this.extractExplicit(),u=[0,i,a].filter((e=>wL(e)));let d=Math.min(...u),p=Math.max(...u);d=TL(s,d)?Math.min(d,s):d,p=TL(l,p)?Math.max(p,l):p;const f=[c.explicitMin,c.explicitMax,d,p].filter((e=>wL(e)));return i=Number.isNaN(c.explicitMin)?Math.min(...f):c.explicitMin,a=Number.isNaN(c.explicitMax)?Math.max(...f):c.explicitMax,i===a&&(Number.isNaN(c.explicitMin)?i=CL(i,-.2):Number.isNaN(c.explicitMax)&&(a=CL(a,EL))),{min:i,max:a,implicitMin:d,implicitMax:p,otherMin:s,otherMax:l,hasOtherMin:s<i,hasOtherMax:l>a,...c}},extractExplicit(){const{min:t,max:n,isExplicitMin:r,isExplicitMax:o}=l(e);return{hasExplicitMinMax:r||o,hasExplicitMin:r,hasExplicitMax:o,explicitMin:t,explicitMax:n}},extractFromStacked(e){const t=e.length?e[0].qData:[];return(n=t).length?{min:Math.min(...n[0].qSubNodes.filter((e=>gL(e.qMinNeg))).map((e=>e.qMinNeg))),max:Math.max(...n[0].qSubNodes.filter((e=>gL(e.qMaxPos))).map((e=>e.qMaxPos)))}:{min:0,max:0};var n},extractFromStraight(t,n){const o=t.length?t[0].qMatrix:[];return c.isStackedByMeasure?r(o,n):c.isStackedByDimension?i(o,n):e.getHyperCubeValue("qHasOtherValues")?a(o,n):s(e)},extractOthers:e=>c.isStackedByDimension?function(e){const t=yL(o(e,"0.qData.0.qSubNodes",[]),lL,{qMaxPos:0,qMinNeg:0});return{min:t.qMinNeg,max:t.qMaxPos}}(e):c.isGroupedByDimension?function(e){const t=o(e,"0.qMatrix",[]).filter(cL).reduce(ML,[]).filter(xL).map(SL);return{min:Math.min(0,...t),max:Math.max(0,...t)}}(e):function(e){const t=yL(o(e,"0.qMatrix",[]),cL,[]).filter(vL).map(bL);return{min:Math.min(0,...t),max:Math.max(0,...t)}}(e)}}function LL(e){const t=function({reducedDataModel:e,layoutService:t,continuousDataModel:n}){const{meta:r,getHyperCubeValue:o}=t,i=e=>!e.length&&r.mode.K,a=e=>{const t=o("qStackedDataPages",[]);return{qStackedDataPages:t,others:e?t:[]}};return{resolve(){const t=o("qMeasureInfo").length,s=o("qDimensionInfo").length,l=o("qHasOtherValues");if(!r.isStacked&&!l)return Promise.resolve({qDataPages:[{}],count:t});if(r.isContinuous){const e=r.isStackedByDimension?s:t;return n.fetchMinMaxData().then((t=>({qDataPages:t,count:e})))}const c=r.isStackedByDimension?1:t;return e.fetchMinMaxData().then((e=>{if(i(e))return a(l);let t=[];return l&&(t=r.mode.K?o("qStackedDataPages",[]):o("qDataPages",[])),{qDataPages:e,count:c,others:t}}))}}}(e),n=qL(e);return t.resolve().then((e=>n.extract(e)))}const NL="lasso",OL=({key:e,componentTargetKey:t,requireFailure:n,recognizeWith:r},o)=>({key:`event:${e}`,type:"Pan",requireFailure:n,recognizeWith:r,options:{event:NL,enable(e,n){if(this.started===NL||!n)return!0;if(!o.actions.select.enabled()||!o.actions.lasso.enabled()||!o.actions.lasso.active())return!1;return this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).filter((e=>e.key===t)).length>0}},events:{lassostart(t){t.preventDefault(),this.started!==NL&&(o.actions.select.emit("start",NL),this.chart.component(e).emit("lassoStart",t),this.started=NL)},lassomove(t){t.preventDefault(),this.chart.component(e).emit("lassoMove",t),"function"==typeof o.updateOnMove&&o.updateOnMove(this.chart)},lassoend(t){t.preventDefault(),this.started=!1,this.chart.component(e).emit("lassoEnd",t),o.actions.select.emit("end",NL),"function"==typeof o.updateOnEnd&&o.updateOnEnd()}}});const DL=({targets:e,requireFailure:t,recognizeWith:n,components:r,eventName:o="tap"},i)=>{let a;const s=i.customTooltipModel?i.customTooltipModel.utils:void 0,l=s?i.debouncer(s.displayTooltip,s.DEBOUNCE_THRESHOLD):void 0;return{key:"event:tap",type:"Tap",requireFailure:t,recognizeWith:n,options:{event:o,interval:10,pointers:1,enable(t,n){return!n||!(!i.actions.select.enabled()&&!i.actions.tooltip.enabled())&&(a=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).filter((t=>-1!==e.indexOf(t.key))),a.length>0)}},events:{[o](t){t.preventDefault();const n=function(e,t){const n=t.element.getBoundingClientRect();let r,o;return e.center?(({x:r}=e.center),({y:o}=e.center)):(r=e.clientX,o=e.clientY),{x:r-n.left,y:o-n.top}}(t,this.chart),c=i.hitRadius?i.hitRadius(a):0,u=c>0?{cx:n.x,cy:n.y,r:c}:n,d=i.shapesAt?i.shapesAt(u):this.chart.shapesAt(u,{components:e.map((e=>({key:e,propagation:"stop"}))),propagation:"stop"}),p=this.chart.component("tooltip"),f="mouse"!==t.pointerType&&p&&p.show;if(!i.isLocked(a)&&!i.tooltipOnly&&i.actions.select.enabled()){const e=this.chart.componentsFromPoint({x:t.center.x,y:t.center.y}),n=e.some((e=>"legend-cat"===e.type));if(!d.length&&n||(this.chart.brushSelectionIncludeMax=!1,i.actions.select.brushSelectionIncludeMax=!1,i.actions.select.emit("start",o,e)),d.length&&r){this.chart.brushSelectionIncludeMax=!1,i.actions.select.brushSelectionIncludeMax=!1;const e="function"==typeof r?r(t,d):r;this.chart.brushFromShapes(d,{components:e}),i.actions.select.emit("end",o),(({largeDataService:e,chart:t})=>{((null==e?void 0:e.meta)||{}).isLargeNumPoints&&t.brush("lazySelection")._state(t.brush("selection")._state())})({largeDataService:i.largeDataService,chart:this.chart})}}if(p&&i.actions.tooltip.enabled())if(d.length){const{customTooltipModel:e}=i;if(null!=e&&e.useCustomTooltip&&s.checkIfPromisesExist({customTooltipModel:e})){const n=s.getNodes(t,this.chart);l(t,p,{nodes:n,opts:i,customTooltipModel:e})}else p.emit("show",t,{nodes:d})}else f&&p.emit("hide")}}}};const AL=({key:e,requireFailure:t,recognizeWith:n,eventName:r="tap"},o)=>({prio:1,key:`event:${e}-tap`,type:"Tap",requireFailure:t,recognizeWith:n,options:{event:`${r}-${e}-tap`,interval:10,pointers:1,enable:(t,n)=>!!n&&(!!o.actions.select.enabled()&&(!(!n.target||"INPUT"!==n.target.nodeName)||!(!n.target||!n.target.hasAttribute("data-other-value"))&&(n.target.getAttribute("data-key")||"").split("-bubble")[0]===e))},events:{[`${r}-${e}-tap`](t){(t.target.getAttribute("data-key")||"").split("-bubble")[0]&&(t.preventDefault(),this.chart.component(e).emit("bubbleStart",t))}}});const RL=({eventName:e,key:t,fillTargets:n=[],requireFailure:r,recognizeWith:o},i,a)=>({key:`event:${t}`,type:"Pan",requireFailure:r,recognizeWith:o,options:{event:e,enable(r,o){if(this.started===e||!o)return!0;if(!i.actions.select.enabled())return!1;const a=this.chart.componentsFromPoint({x:o.center.x,y:o.center.y}).filter((e=>-1!==n.indexOf(e.key))),s=0===a.length&&function(e,t){const{target:n}=e.srcEvent;return!(!n||0!==(n.getAttribute("data-key")||"").indexOf(`${t}-`))}(o,t);return s?(this.started=e,!0):a.length>0}},events:{[`${e}start`](n){void 0===this.chart.brushSelectionIncludeMax&&(this.chart.brushSelectionIncludeMax=!0,i.actions.select.brushSelectionIncludeMax=!0),n.preventDefault(),i.actions.select.emit("start",e),this.chart.component(t).emit(`${a}Start`,n),this.started=e},[`${e}move`](e){e.preventDefault(),this.chart.component(t).emit(`${a}Move`,e),"function"==typeof i.updateOnMove&&i.updateOnMove(this.chart)},[`${e}end`](n){void 0===this.chart.brushSelectionIncludeMax&&(this.chart.brushSelectionIncludeMax=!0,i.actions.select.brushSelectionIncludeMax=!0),n.preventDefault(),this.chart.component(t).emit(`${a}End`,n),i.actions.select.emit("end",e),this.started=!1,"function"==typeof i.updateOnEnd&&i.updateOnEnd()}}});function PL(e,t){const n=function(e){const{key:t,targets:n,fillTargets:r,targetSelector:o,targetFillSelector:i,dock:a,scale:s,bubblesPlacement:l="inside",observeBrush:c=!1,multiple:u=!1,toLabel:d,onEdited:p}=e;return{key:t,type:"brush-range",layout:{dock:n.map((e=>`@${e}`)).join(",")},on:p?{bubbleEnd(){p()}}:{},settings:{brush:c?{context:"selection",observe:!0}:"selection",scale:s,multiple:u,direction:"left"===a||"right"===a?"vertical":"horizontal",bubbles:{align:"left"===a||"top"===a?"end":"start",placement:l,label:d},target:{components:r,selector:o,fillSelector:i,fill:"rgba(82,204,82,0.2)"}}}}(e),r=RL(e,t,"range");return{interactions:[e.onEdited?AL(e,t):null,r].filter(Boolean),components:[n]}}const IL={refLines:{minimumLayoutMode:"SPARK"},measureAxisTitle:{minimumLayoutMode:"XSMALL"},dimensionAxisTitle:{minimumLayoutMode:"XSMALL"},measureAxis:{minimumLayoutMode:"XSMALL"},dimensionAxis:{minimumLayoutMode:"XSMALL"},gridLines:{minimumLayoutMode:"XSMALL"},refLinesLabels:{minimumLayoutMode:"SMALL"},horizontalDimensionAxis:{minimumLayoutMode:{width:"XSMALL",height:"SMALL"}},verticalDimensionAxis:{minimumLayoutMode:{width:"SMALL",height:"XSMALL"}},horizontalDimensionAxisTitle:{minimumLayoutMode:{width:"XSMALL",height:"MEDIUM"}},verticalDimensionAxisTitle:{minimumLayoutMode:{width:"MEDIUM",height:"XSMALL"}}},zL="inner-time-axis",jL="outer-time-axis";const FL={getMajorAxisMaxGlyphCount(e,t){let n=0;if(e.qDimensionInfo.length){const r=t?0:e.qDimensionInfo.length-1;n=aL.getMaxGlyphCount(e,r)}else e.qMeasureInfo.forEach((e=>{n=Math.max(n,e.qFallbackTitle.length)}));return n},getAxisData(e,t){let n;return n=e.qDimensionInfo.length?o(e,t?"qStackedDataPages.0.qData.0.qSubNodes":"qDataPages.0.qMatrix"):e.qMeasureInfo,n},getBarAxisMaxGlyphCount(e,t){if(!e)return;const n=FL.getAxisData(e,t),r=!e.qDimensionInfo.length,o=r||t?void 0:e.qDimensionInfo.length-1,i=FL.getMajorAxisMaxGlyphCount(e,t),a=r?"qFallbackTitle":"qText";return Ie.getAdjustedMaxGlyphCount(i,n,o,a)},getGroupAxisMaxGlyphCount(e){if(!e)return;const t=FL.getAxisData(e),n=aL.getMaxGlyphCount(e,0);return Ie.getAdjustedMaxGlyphCount(n,t,0)}};var BL=3,_L=13;function HL(e,t,n,r){const{meta:o}=t.layoutService,i=[],a=!("none"===e.measureAxis.show),s=!("title"===e.measureAxis.show);o.isContinuous?i.push(...function(e,t,n,r){const{meta:o}=t.layoutService,{axis:i,grid:a}=t.themeService.getStyles(),s=t.styleService.axis.label.getStyle(),{auto:l,spacing:c}=t.layoutService.getLayoutValue("gridLine",{}),u=[],d="none"!==e.dimensionAxis.show&&"title"!==e.dimensionAxis.show,p=IL[`${t.dockService.meta.major.orientation}DimensionAxis`].minimumLayoutMode,f={type:"grid-line",x:{},layout:{minimumLayoutMode:IL.gridLines.minimumLayoutMode},ticks:{stroke:a.line.major.color},minorTicks:{show:!1,stroke:a.line.minor.color},animations:{enabled:t.viewModel.animations.enabled,trackBy:Ha.lines.trackBy,compensateForLayoutChanges:Ha.lines.compensateForLayoutChanges}},m=!!e.showMiniChartForContinuousAxis&&{type:"range",key:"range-brush-highlighter",layout:{dock:"@scrollbar"},settings:{scale:t.reducedDataModel.scales.major,brush:"selection",fill:"#6CB33F",opacity:.2}};if(o.isTime){if(d){const e=n?"end":"start",r=n?1:0,o="bottom"===t.dockService.meta.major.dock?0:1,a={label:{fill:s.fill,fontSize:s.fontSize,fontFamily:s.fontFamily},majorGuideLine:{stroke:i.line.major.color},minorGuideLine:{stroke:i.line.minor.color}},d={type:"time-axis",renderer:"svg",layout:{dock:t.dockService.meta.major.dock,minimumLayoutMode:p},preferredSize:()=>({size:2*parseFloat(s.fontSize),edgeBleed:{left:1,right:1}}),settings:{anchor:e,label:{align:o,justify:r},guideLine:{major:{justify:r},minor:{align:o}}},style:a,animations:{enabled:t.viewModel.animations.enabled,trackBy:Ha.axes.trackBy({isTime:!0}),compensateForLayoutChanges:Ha.axes.compensateForLayoutChanges({isTime:!0})}};u.push(he(!0,{},d,{key:zL,scale:Zq.SCALE.MAIN.MAJOR_INNER,settings:{guideLine:{minor:{show:!0}},line:{show:!l&&0===c}},style:he(!0,{},a,{line:{stroke:i.line.major.color},majorGuideLine:{stroke:i.line.minor.color},minorGuideLine:{stroke:i.line.major.color}})})),u.push(he(!0,{},d,{key:jL,scale:Zq.SCALE.MAIN.MAJOR,settings:{guideLine:{minor:{show:!1}},line:{show:!1}}})),u.push({type:"axis-overlay",key:"outer-axis-overlay",scale:Zq.SCALE.MAIN.MAJOR,layout:{dock:`@${jL}`,minimumLayoutMode:p}}),u.push({type:"axis-overlay",key:"inner-axis-overlay",scale:Zq.SCALE.MAIN.MAJOR_INNER,layout:{dock:`@${zL}`,minimumLayoutMode:p}}),u.push(m)}return u.push(he(!0,{},f,{key:"inner-time-grid",x:{scale:Zq.SCALE.MAIN.MAJOR_INNER},ticks:{stroke:a.line.minor.color}})),u.push(he(!0,{},f,{key:"outer-time-grid",x:{scale:Zq.SCALE.MAIN.MAJOR}})),u}if(o.isContinuous){const e="continuous-axis";d&&(u.push({type:"axis",key:e,renderer:Qa(t.flags),scale:Zq.SCALE.MAIN.MAJOR,layout:{dock:t.dockService.meta.major.dock,minimumLayoutMode:p},settings:{labels:{align:0,offset:4,fill:s.fill,fontSize:s.fontSize,fontFamily:s.fontFamily},ticks:{show:!0,stroke:i.line.major.color},line:{show:!r},minorTicks:{show:!1}},animations:{enabled:t.viewModel.animations.enabled,trackBy:Ha.axes.trackBy({isContinuous:!0}),compensateForLayoutChanges:Ha.axes.compensateForLayoutChanges({isContinuous:!0})}}),u.push({type:"axis-overlay",key:"inner-axis-overlay",scale:Zq.SCALE.MAIN.MAJOR,layout:{dock:`@${e}`,minimumLayoutMode:p}}),u.push(m)),u.push(he(!0,{},f,{key:"continuous-grid",x:{scale:Zq.SCALE.MAIN.MAJOR},minorTicks:{show:!0}}))}return u}(e,t,n,r)):i.push(...function(e,t,n,r){if("none"===e.dimensionAxis.show)return[];const{meta:o}=t.layoutService,i=t.themeService.getStyles(),a=[],s=function(e,t){return!t.layoutService.meta.isGroupedByDimension||!e.legend.show||t.colorService.getMain().getSettings().field!==t.viewModel.fields.major}(e,t),l=function(e,t){return!(!t.layoutService.meta.isGroupedByDimension||e.legend.show&&t.colorService.getMain().getSettings().field===t.viewModel.fields.majorGroup)}(e,t),c="horizontal"===t.dockService.meta.major.orientation,u=c?e.dimensionAxis.label:"auto",d="horizontal"===u?void 0:t.dockService.meta.minor.size/4,p=t.styleService.axis.label.getStyle(),f={type:"axis",renderer:Qa(t.flags),layout:{dock:t.dockService.meta.major.dock,minimumLayoutMode:IL[`${t.dockService.meta.major.orientation}DimensionAxis`].minimumLayoutMode},settings:{labels:{show:!("title"===e.dimensionAxis.show),mode:u,tiltAngle:n?-40:40,maxEdgeBleed:50,maxLengthPx:d,...p},line:{show:!r,stroke:i.axis.line.major.color}},brush:{consume:[{context:"selection",data:["selectionDimension","axisSelectionDimension"],style:{inactive:{opacity:.3}}}]},animations:{enabled:t.viewModel.animations.enabled,trackBy:Ha.axes.trackBy({isMajor:!0}),compensateForLayoutChanges:Ha.axes.compensateForLayoutChanges({isHorizontal:c})}};l&&a.push(he(!0,{},f,{key:"group-axis",scale:Zq.SCALE.MAIN.MAJOR_INNER,settings:{paddingEnd:s?10:4,labels:{mode:s?"horizontal":f.settings.labels.mode,maxGlyphCount:FL.getGroupAxisMaxGlyphCount(e.qHyperCube),maxLengthPx:d},line:{show:(c||!s)&&f.settings.line.show}}}));const m=FL.getBarAxisMaxGlyphCount(e.qHyperCube,o.isStackedByDimension);return s&&a.push(he(!0,{},f,{key:Zq.COMPONENT.BAR_AXIS,scale:Zq.SCALE.MAIN.MAJOR,settings:{paddingEnd:4,labels:{maxGlyphCount:m,maxLengthPx:d,tiltThreshold:m>BL&&m<_L?1:void 0},line:{show:!(c&&l)&&f.settings.line.show}}})),c||2!==a.length?a:[a[1],a[0]]}(e,t,n,r));const l=t.themeService.getStyles(),c=t.styleService.axis.label.getStyle();return a&&i.push({type:"axis",key:"y-axis",renderer:Qa(t.flags),formatter:Zq.FORMATTER.MINOR,layout:{dock:t.dockService.meta.minor.dock,minimumLayoutMode:IL.measureAxis.minimumLayoutMode},scale:Zq.SCALE.MAIN.MINOR,settings:{labels:{show:s,...c},line:{stroke:l.axis.line.major.color},ticks:{stroke:l.axis.line.major.color},minorTicks:{stroke:l.axis.line.minor.color}},animations:{enabled:t.viewModel.animations.enabled,trackBy:Ha.axes.trackBy({isMeasure:!0}),compensateForLayoutChanges:Ha.axes.compensateForLayoutChanges({isMeasure:!0,dock:t.dockService.meta.minor.dock})}}),i}var $L={BAR:{STROKE:{COLOR:"#205891",WIDTH:{NONE:0,SMALL:1,MEDIUM:2,LARGE:4}}}};function VL({layoutService:e,discrete:t}){var n;const{isContinuous:r,isGrouped:o}=e.meta;if(r)return 1;const i=(e.getLayoutValue("components",[])||[]).filter((e=>"bar"===e.key))[0];if(null!=i&&null!==(n=i.style)&&void 0!==n&&n.width){const{style:e}=i;return e.strokeWidth&&"none"!==e.strokeWidth?function(){const n=$L.BAR.STROKE.WIDTH[e.strokeWidth.toUpperCase()]/t.query.getItemSize(),r=e.width+n;return r>1?e.width-(r-1):e.width}:e.width}return o?.9:.7}const WL={FULL:16,MEDIUM:14,SMALL:12,XSMALL:8,SPARK:4};function UL(e,t,n={}){return({data:r})=>{const o=e.chart.component(t).rect;if(!r.items.length||!o)return 2;const{min:i,max:a}=e.viewState.get("zoom");if(n[[i,a]])return n[[i,a]];const s=WL[ve.getLayoutMode(o.width,Number.MAX_VALUE)];n={};const l=Math.abs(a-i),c=Math.abs(e.viewCache.get("continuousMax")-e.viewCache.get("continuousMin"));if(0===c)return s;const u=function(e,t,n){return e*(1-n)+t*n}(2,s,1-Math.min(l/c/.2,1));return n[[i,a]]=Math.max(2,Math.min(s,u)),n[[i,a]]}}function KL(e,t){const{hasExplicitMax:n,explicitMax:r}=t;return!!n&&e>r&&r<=0}function GL(e,t){const{hasExplicitMin:n,explicitMin:r}=t;return!!n&&e<r&&r>=0}function YL(e,t){const{hasExplicitMax:n,explicitMax:r}=t;return!!n&&e>r&&r>0}function XL(e,t){const{hasExplicitMin:n,explicitMin:r}=t;return!!n&&e<r&&r<0}const JL="max",ZL="min",QL={min:"Min",max:"Max"};function eN(e,t,n){return void 0===n?KL(e,t)||GL(e,t):n===JL?KL(e,t):GL(e,t)}function tN({minorMinMax:e,type:t}){return!(function({minorMinMax:e,type:t}){return!e[`hasExplicit${QL[t]}`]}({minorMinMax:e,type:t})||function({minorMinMax:e,type:t}){const n=t===JL?e.implicitMax:e.implicitMin;return!eN(Number(n.toFixed(13)),e,t)}({minorMinMax:e,type:t}))}function nN(e,{barComponent:t,type:n,isStacked:r}){const{viewCache:o,dockService:i,themeService:a}=e,s=o.get("minorMinMax");if(!s.hasExplicitMinMax)return!1;const l=n===JL?s.implicitMax:s.implicitMin;if(!eN(Number(l.toFixed(13)),s,n))return!1;const{orientation:c}=t.settings,u=n===JL?i.meta.minor.end:i.meta.minor.start;let d="end";r&&(d=n===JL?"sumOfPositives":"sumOfNegatives");const p=a.getStyles();return{type:"box-out-of-bounds",key:`bar-oob-${n}`,layout:{dock:u},data:t.data,brush:t.brush,settings:{orientation:c,major:t.settings.major,minor:t.settings.minor,dockValue:De.getDockValue(u),oob:he({},t.settings.box,{fill:p.outOfRange.color,alignment:1,opacity:1,show:function(e){var t;return!0!==(null===(t=e.datum.null)||void 0===t?void 0:t.value)&&((!r||0!==e.datum[d].value)&&eN(e.datum[d].value,s,n))}})},animations:{enabled:e.viewModel.animations.enabled,compensateForLayoutChanges:Ha.barOobs.compensateForLayoutChanges}}}function rN(e){return Math.min(Math.max(0,e),1)}const oN=(e,{chart:t,type:n,componentKey:r,collectionKey:o})=>{const{layoutService:i,dockService:a,viewCache:s}=e,{isStacked:l}=i.meta,c=s.get("minorMinMax"),{meta:u}=e.layoutService;if(!tN({minorMinMax:c,type:n}))return!1;let d;u.isGroupedByDimension?d=({scale:e,datum:t})=>e([t.group.value,t.value])+e.bandwidth([t.group.value,t.value])/2:u.isGroupedByMeasure&&(d=({scale:e,datum:t})=>e([t.value,t.measureIndex.value])+e.bandwidth()/2);const p={type:"box",key:`${Zq.COMPONENT.GHOST_BAR_OOB}-${n}`,data:{collection:o},settings:{orientation:a.meta.minor.orientation,major:{scale:Zq.SCALE.MAIN.MAJOR,fn:d},minor:{scale:Zq.SCALE.MAIN.MINOR,start(e){var n;return rN(t.scale(Zq.SCALE.MAIN.MINOR)((null==e||null===(n=e.datum)||void 0===n||null===(n=n.start)||void 0===n?void 0:n.value)||0))},end(e){const r=t.scale(Zq.SCALE.MAIN.MINOR);let o="end";l&&(o="max"===n?"sumOfPositives":"sumOfNegatives");const i=e.datum[o]?e.datum[o].value:r[n]();return rN(r(i))}},box:{width:VL({layoutService:e.layoutService,discrete:e.discrete}),minWidthPx:2,fill:"none",stroke:"transparent",show:e=>{const r=t.scale(Zq.SCALE.MAIN.MINOR);let o="end";l&&(o="max"===n?"sumOfPositives":"sumOfNegatives");const i=e.datum[o]?e.datum[o].value:r.max();return"max"===n?i>r.max():i<r.min()}},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}}};return p};function iN(e,t){const{style:n,styleService:r,dockService:o}=t,i=r.label.getStyle(),a=i.useContrastColor&&!e.onBackground?function(e){return function(t){return Ht.isDark(t.node.attrs.fill)?e.lightColor:e.darkColor}}(n):i.fill,s="horizontal"===o.meta.major.orientation,l=e.padding||{left:s?0:4,right:s?0:4,top:s?4:0,bottom:s?4:0};return{position:e.position,justify:e.justify,fill:a,overflow:e.overflow,background:e.background,padding:l}}function aN(e){return{placements:e.simplifiedPlacements.map((t=>iN(t,e))),label:e.label}}function sN(e,t){if(t){if(function(e,t){return KL(e,t)}(e,t))return-1;if(function(e,t){return GL(e,t)}(e,t))return 1}return function(e,t){if(t&&0===e){const{min:e,max:n}=t;return 0===n&&0===e?1:n<=0?-1:e>=0||n>=-e?1:-1}return e>=0?1:-1}(e,t)}function lN(e,t,n,r){const o=sN(e,r);let i="up";return"vertical"===t&&o<0?i="down":"horizontal"===t&&(i=o>=0&&!n||o<0&&n?"right":"left"),i}function cN(e,t){const{dataPoint:n}=e;if(!n.showLabels)return!1;const{isStacked:r,isContinuous:o}=t.layoutService.meta;return!r||!o&&!!n.showSegmentLabels}function uN(e,t){const{dataPoint:n}=e;if(!n.showLabels)return!1;const{isStacked:r,isContinuous:o}=t.layoutService.meta;return!!r&&(!!o||!1!==n.showTotalLabels)}function dN(e,t,n,r){const o=[];return void 0!==e&&(o[e]={position:"outside",onBackground:!0,justify:0,overflow:r}),void 0!==t&&(o[t]={position:"inside",onBackground:!1,justify:n}),o}function pN({layout:e,component:t,minorScale:n},r,o){if(!cN(e,r))return!1;const{viewModel:i,ds:a,viewCache:s,layoutService:l,dockService:c,themeService:u}=r,{meta:d}=l,p=s.get("minorMinMax"),f=u.getStyles(),m=r.styleService.label.getStyle();let h;!d.isStacked&&(h=d.isStacked?1:0);const g=0===h?1:0,y=d.isStacked?.5:1,v=i.fields.minor[0],b=void 0===v?void 0:a.field(v).formatter();let x,S=-1;x=d.isStacked?d.isStackedByMeasure||!b?function(e){return e.data.segment.label}:function(e){return Math.abs(e.data.segment.value)>S?b(e.data.segment.value):""}:function(e){return e.data.end.label};const M={label:x,simplifiedPlacements:dN(h,g,y,d.isContinuous),style:f.label.value},C=[aN(he(r,M))],w={component:t,selector:"rect",strategy:{type:"bar",settings:{direction:e=>lN(e.data.end.value,c.meta.minor.orientation,o,p),labels:C,fontSize:parseInt(m.fontSize,10),fontFamily:m.fontFamily,linkData:Ha.labels.linkData}}},k=[w],E={key:"bar-labels",type:"labels",renderer:Qa(r.flags),layout:{minimumLayoutMode:"XSMALL"},settings:{sources:k},animations:{enabled:r.viewModel.animations.enabled,trackBy:Ha.labels.trackBy,compensateForLayoutChanges:Ha.labels.compensateForLayoutChanges}};return d.isStackedByDimension&&b&&(E.beforeRender=()=>{S=function(e,t,n){const r="vertical"===t.dockService.meta.minor.orientation?"height":"width",o=t.chart.component(e),i=o&&o.rect?o.rect[r]:1,a=n?n.min():0;return 9.999*((n?n.max():0)-a)/i}(t,r,n)}),E}const fN={isSameMeasureAndColorRow:(e,t,n)=>t&&e&&t[0].content[0]===e[0].content[0]&&t[0].content[1]===e[0].content[1]&&t[1].content[n?0:1]===e[1].content[0],getTitle(e,t){const n=e.data;let r;return t.isStackedByDimension?r=n.stack?n.stack.label:void 0:t.isGroupedByDimension&&(r=n.group?n.group.label:void 0),void 0!==r?`${n.label}, ${r}`:n.label},getMeasure(e,t,n,r,o){if(n.isStacked&&("bar-oob-max"===t.key||"bar-oob-min"===t.key))return!1;const i=t.data,a=n.isStacked?r.viewModel.fields.minor[n.isStackedByDimension?0:i.measureIndex.value]:void 0,s=n.isStacked?{source:{key:i.source.key,field:a},label:!0===(null===(l=i.null)||void 0===l?void 0:l.value)?"":n.isStackedByDimension&&o?o(i.segment.value):i.segment.label}:i.end;var l;return Ve.getMeasure(e,s)},getMeasures(e,t,n,r,o){const i=e.resources.dataset;return t.map((e=>fN.getMeasure(i,e,n,r,o))).filter(Boolean)},getCustomTooltipAttrExps(e,t,n){const r=e.resources.dataset;return wT({nodes:t,layout:n.layoutService.getLayout(),dataset:r})},extractBarTooltipData(e,t,n,r,o){const i={title:fN.getTitle(t,n),color:Ve.getColor(e,t,r),measures:fN.getMeasures(e,t.childrenNodes?t.childrenNodes:[t],n,r,o)};if(fN.useCustomTooltip(r)){var a,s;const n=fN.getCustomTooltipAttrExps(e,t.childrenNodes?t.childrenNodes:[t],r);i.customMeasures=n.customTooltipAttrExpsArr,i.customTitle=n.customTooltipInfoAttrExpsArr.filter((e=>e.id===sT.CUSTOM.TITLE)),i.customDescription=n.customTooltipInfoAttrExpsArr.filter((e=>e.id===sT.CUSTOM.DESCRIPTION));let o=[];(t.childrenNodes?t.childrenNodes:[t]).forEach((e=>{var t;(null===(t=e.data.customTooltipImages)||void 0===t?void 0:t.length)>0&&!Array.isArray(e.data.customTooltipImages[0])&&(o=e.data.customTooltipImages)})),o.length>0&&(i.customImages=o);const d=r.layoutService.getLayout();var l,c,u;if(null!==(a=d.tooltip)&&void 0!==a&&null!==(a=a.chart)&&void 0!==a&&null!==(a=a.object)&&void 0!==a&&a.refId&&r.app&&r.customTooltipModel.embed&&"function"==typeof(null===(s=r.customTooltipModel.model)||void 0===s?void 0:s.getEffectiveProperties))if(null!==(l=(c=r.app).isInModalSelection)&&void 0!==l&&l.call(c)){if((null==d||null===(u=d.qHyperCube)||void 0===u||null===(u=u.qDimensionInfo)||void 0===u?void 0:u.length)>0){gT.destroyVisualization({customTooltipModel:r.customTooltipModel});const e=r.customTooltipModel.translator.get("properties.tooltip.notselectedmessage");i.customLimitation=e}}else{const t=gT.createContainer({ctx:e,layout:d});i.customChart=t}}return i},getTotalStackTitle:(e,t)=>e>0?t?t.get("Object.ChartTooltip.sumOfPositives"):"Sum of positives":e<0?t?t.get("Object.ChartTooltip.sumOfNegatives"):"Sum of negatives":"",extractStackTotalBarTooltipData(e,t,n){const r=e.data.label,o=[e.data.sumOfPositives.value,e.data.sumOfNegatives.value].filter((e=>0!==e)).map((e=>({label:`${fN.getTotalStackTitle(e,t)}`,value:n?n(e):e})));return{title:r,measures:o}},extractTooltipData(e,t){const n=t.chart.formatter(Zq.FORMATTER.MINOR),{meta:r}=t.layoutService,o=e.node.childrenNodes?e.node.childrenNodes:[e.node],i=Math.max(0,o.length-6);o.length=Math.min(o.length,6);const{stackTotalBarNodes:a}=e.node,s=a&&a.length?a.map((e=>fN.extractStackTotalBarTooltipData(e,t.translator,n))):[];return{barTooltipData:o.map((o=>fN.extractBarTooltipData(e,o,r,t,n))),stackTotalBarTooltipData:s,numInvisibleNodesPhase1:i}},extractBarNodeData(e,t,n,r,o,i,a){let s=!o&&Ve.getTitleRow(t,r);const l=Ve.hideColorRow(t,n),c=!i&&!l&&Ve.getColorRow(e,t,r),u=t.measures.map((o=>!a&&Ve.getMeasureRow(o,e,t,r,l&&o.field===n.coloring.field))),d=u.filter((e=>!fN.isSameMeasureAndColorRow(e,c,r)));if(fN.useCustomTooltip(n)){const n=o?[]:t.customMeasures.map((n=>Ve.getMeasureRow(n,e,t,r,!1))),i=!(!t.customTitle[0]||o)&&Ve.getTitleRow(t.customTitle[0],r),a=!(!t.customDescription[0]||o)&&Ve.getDescriptionRow(t.customDescription[0],r);s=!fN.shouldIgnoreTitleRowForCtt(i,a,d,n)&&s;const l=[i,a,s,c,...d,...n];if(t.customChart&&l.push(t.customChart),t.customLimitation&&l.push(xT.getFooterRow(t.customLimitation,r)),t.customImages){const n=t.customImages.map((t=>xT.getImageRow(t,e)));l.push(...n)}return l.filter(Boolean)}return[s,c,...d].filter(Boolean)},extractStackTotalBarNodeData(e,t,n){const r=!!t.measures.length&&Ve.getTitleRow(t,n),o=t.measures.map((r=>Ve.getMeasureRow(r,e,t,n,!1)));return[r,...o].filter(Boolean)},useCustomTooltip:e=>o(e,"customTooltipModel.useCustomTooltip",!1),shouldIgnoreTitleRow:(e,t)=>e.isDimensionless||t>0&&!e.isGroupedByDimension&&!e.isStackedByDimension,shouldIgnoreTitleRowForCtt:(e,t,n,r)=>!1===n[0]&&0===r.length&&(e.length>0||t.length>0),shouldIgnoreColorRow:(e,t)=>t>0&&(e.isGroupedByMeasure||e.isStackedByMeasure),shouldIgnoreMeasureRow:(e,t,n)=>e&&t.measures.some((e=>e.field===n.coloring.field)),shouldIgnoreDefaultRows:(e,t)=>fN.useCustomTooltip(t)&&o(e,"tooltip.hideBasic",0),extractBarsData(e,t,n,r){const{meta:o}=t.layoutService,i=t.layoutService.getLayout(),a=r.length;let s,l,c=[];const u=fN.shouldIgnoreDefaultRows(i,t);for(s=0;s<a;s++){l=r[s];const i=fN.shouldIgnoreTitleRow(o,s),d=u||fN.shouldIgnoreColorRow(o,s),p=u||fN.shouldIgnoreMeasureRow(d,l,t);if(c=c.concat(fN.extractBarNodeData(e,l,t,n,i,d,p)),c.length>=6||l.customImages||l.customChart||l.customLimitation)return{barsData:c,numInvisibleNodesPhase2:a-(s+1)}}return{barsData:c,numInvisibleNodesPhase2:0}},extractStackTotalBarsData(e,t,n){let r=[];return n.some((e=>e.measures.length))&&n.forEach((n=>{r=r.concat(fN.extractStackTotalBarNodeData(e,n,t))})),r},extractData(e,t,n){const{barTooltipData:r,numInvisibleNodesPhase1:o,stackTotalBarTooltipData:i}=fN.extractTooltipData(e,t),a=fN.extractStackTotalBarsData(e,n,i);a.length&&a.push(Ve.getSeparatorRow());const{barsData:s,numInvisibleNodesPhase2:l}=fN.extractBarsData(e,t,n,r),c=a.concat(s),u=o+l;return u&&c.push(Ve.getNMoreRow(u,t.translator,n)),c},calculateBoundsFromBars(e){const t=e.filter((e=>{const t=e.bounds;return t.width>0&&t.height>0})),n=t.length?t:e;return Xa.combineBounds(n.map((e=>e.bounds)))},calculateBoundsFromScale({opts:e,barKey:t,scale:n,majorScale:r,data:o,groupProp:i}){const a=e.chart.component(t).rect,{orientation:s}=e.dockService.meta.major,l="horizontal"===s?"width":"height",c=e.chart.scale(n).pxScale(a[l]);let u,d,p;if(e.layoutService.meta.isGroupedByMeasure){const t=e.viewModel.fields.minor.length;u=o.value,d=n===r&&void 0!==u?(c([u,0])+c([u,t-1]))/2:0,p=n===r&&void 0!==u?c.bandwidth([u,0]):0}else{const{value:e}=o;u=o[i]?o[i].value:void 0,d=c(n===r&&void 0!==u?[u,e]:e),p=n===r&&void 0!==u?c.bandwidth([u,e]):c.bandwidth(e)}const f=(d+p/2)*a[l],m={width:0,height:0};return"horizontal"===s?(m.x=f,m.y=a.height):(m.y=f,m.x=0),m},calculateTotalBounds({opts:e,labels:t,bars:n,barKey:r,barAxisKey:o,majorScale:i,majorInnerScale:a,groupProp:s}){const l=n.filter((e=>e.children&&e.children.length));let c;return c=l.length?fN.calculateBoundsFromBars(l):fN.calculateBoundsFromScale({opts:e,barKey:r,scale:t[0].key===o?i:a,majorScale:i,data:t[0].data,groupProp:s}),c},filterNodesOnKeys:(e,t)=>e.filter((e=>e.data&&t.indexOf(e.key)>-1)),isBarMatchingLabel:(e,t)=>t.data.value===e.data.value,isBarMatchingLabelOnProp:(e,t,n)=>t.data.value===(e.data[n]?e.data[n].value:e.data.value),findBarsMatchingLabels(e,t,n,r){const o=e.filter((e=>t.some((t=>n(e,t,r)))));return o},findBarsFromGroupLabelsInGroupedByDim(e,t,n){const r=fN.isBarMatchingLabelOnProp;return fN.findBarsMatchingLabels(e,t,r,n)},findBarsFromBarLabelsInGroupedByDim:(e,t,n)=>e.filter((e=>t.some((t=>t.data.group&&t.data.group.value===e.data[n].value&&t.data.value===e.data.value)))),findBarsFromLabelsInSingleDim(e,t){const n=fN.isBarMatchingLabel;return fN.findBarsMatchingLabels(e,t,n)},findBarsFromLabelsInGroupedByDim(e,t,n,r){const o=t.filter((e=>e.key===n)),i=t.filter((e=>e.key!==n)),a=fN.findBarsFromBarLabelsInGroupedByDim(e,o,r),s=fN.findBarsFromGroupLabelsInGroupedByDim(e,i,r);return a.concat(s)},findStackTotalBarsFromLabelsInStackedByDim(e,t){const n=fN.isBarMatchingLabel;return fN.findBarsMatchingLabels(e,t,n)},findStackTotalBarsFromLabelsInStackedByMeasure(e,t){const n=fN.isBarMatchingLabel;return fN.findBarsMatchingLabels(e,t,n)},findBarsFromLabelsInStackedByDim(e,t,n){const r=fN.isBarMatchingLabelOnProp;return fN.findBarsMatchingLabels(e,t,r,n)},findBarsFromLabelsInStackedByMeasure:(e,t)=>fN.findBarsFromLabelsInSingleDim(e,t),findBarsFromLabels({labels:e,opts:t,filterKeys:n,barAxisKey:r,groupProp:o,stackProp:i}){const{meta:a}=t.layoutService,s=fN.filterNodesOnKeys(t.chart.findShapes("container"),n);return a.isStackedByDimension?fN.findBarsFromLabelsInStackedByDim(s,e,i):a.isStackedByMeasure?fN.findBarsFromLabelsInStackedByMeasure(s,e):a.isGroupedByDimension?fN.findBarsFromLabelsInGroupedByDim(s,e,r,o):fN.findBarsFromLabelsInSingleDim(s,e)},findStackTotalBarsFromLabels({labels:e,opts:t,stackTotalBarKey:n}){const{meta:r}=t.layoutService;if(r.isStacked){const o=fN.filterNodesOnKeys(t.chart.findShapes("container"),[n]);return r.isStackedByDimension?fN.findStackTotalBarsFromLabelsInStackedByDim(o,e):fN.findStackTotalBarsFromLabelsInStackedByMeasure(o,e)}return[]},isSingleBarMode:(e,t)=>(e.isSimple||1===t.length)&&t[0].children&&t[0].children.length,filterNodesOnLabels({labels:e,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:o,barOobMaxKey:i,barOobMinKey:a,groupProp:s,stackProp:l,majorScale:c,majorInnerScale:u,filterFn:d}){const{meta:p}=t.layoutService;if(e.length){let f=fN.findBarsFromLabels({labels:e,opts:t,filterKeys:[n],stackTotalBarKey:r,barAxisKey:o,barOobMaxKey:i,barOobMinKey:a,groupProp:s,stackProp:l});if(d&&(f=f.filter(d)),fN.isSingleBarMode(p,f))return[f[0]];if(f.length){let p=fN.findBarsFromLabels({labels:e,opts:t,filterKeys:[n,i,a],stackTotalBarKey:r,barAxisKey:o,barOobMaxKey:i,barOobMinKey:a,groupProp:s,stackProp:l});d&&(p=p.filter(d));const m=fN.calculateTotalBounds({opts:t,labels:e,bars:p,barKey:n,barAxisKey:o,groupProp:s,majorScale:c,majorInnerScale:u}),h=fN.findStackTotalBarsFromLabels({labels:e,opts:t,stackTotalBarKey:r}),g={key:n,bounds:m,childrenNodes:f,data:f.map((e=>e.data)),stackTotalBarNodes:h};return[g]}return[]}return[]},filterNodesForOob:(e,t,n)=>e.key===t&&0===e.children.length||e.key===n,filterNodes({nodes:e,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:o,groupAxisKey:i,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:c,majorScale:u,majorInnerScale:d}){let p=fN.filterNodesOnKeys(e,[o,i]),f=p&&p.length?[p[0]]:[];const m=fN.filterNodesOnLabels({labels:f,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:o,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:c,majorScale:u,majorInnerScale:d});if(m&&m.length)return m;const{meta:h}=t.layoutService;if(h.isStackedByMeasure){p=fN.filterNodesOnKeys(e,[a,s]),f=p&&p.length?[p[0]]:[];const i=e=>fN.filterNodesForOob(e,n,a),m=fN.filterNodesOnLabels({labels:p,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:o,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:c,majorScale:u,majorInnerScale:d,filterFn:i});if(m&&m.length)return m[0].stackTotalBarNodes=void 0,m}if(h.isStackedByDimension){p=fN.filterNodesOnKeys(e,[a,s]),f=p&&p.length?[p[0]]:[];const i=e=>fN.filterNodesForOob(e,n,a),m=fN.filterNodesOnLabels({labels:p,opts:t,barKey:n,stackTotalBarKey:r,barAxisKey:o,barOobMaxKey:a,barOobMinKey:s,groupProp:l,stackProp:c,majorScale:u,majorInnerScale:d,filterFn:i});if(m&&m.length)return m[0].stackTotalBarNodes=void 0,m}const g=fN.filterNodesOnKeys(e,[n,a,s]);return g.length?[g[0]]:[]}};function mN(e,t={},n){let r=[];const o=Fe({key:Zq.COMPONENT.BASE_TOOLTIP,rtl:n});return he(!0,o,{scale:Zq.SCALE.MAIN.COLOR,settings:{filter:e=>fN.filterNodes({nodes:e,opts:t,barKey:Zq.COMPONENT.BAR,stackTotalBarKey:Zq.COMPONENT.STACK_TOTAL_BAR,barAxisKey:Zq.COMPONENT.BAR_AXIS,groupAxisKey:Zq.COMPONENT.GROUP_AXIS,barOobMaxKey:Zq.COMPONENT.BAR_OOB_MAX,barOobMinKey:Zq.COMPONENT.BAR_OOB_MIN,groupProp:"group",stackProp:"stack",majorScale:"major",majorInnerScale:"majorInner"}),extract:e=>(r=e.node.childrenNodes?e.node.childrenNodes:[e.node],fN.extractData(e,t,n)),placement:"bounds",afterShow:()=>{var e;const{app:o,properties:i,customTooltipModel:a}=t;o&&(null===(e=o.isInModalSelection)||void 0===e||!e.call(o))&&a.useCustomTooltip&&a.embed&&gT.show({app:o,properties:i,selectedNodes:r,customTooltipModel:a,rtl:n})}},style:{content:{fontFamily:t.themeService.getStyles().fontFamily}}})}const hN={extractData:(e,t)=>[Ve.getTitleRow({title:e.node.data.label},t)],filterNodes(e,t){const n=e.filter((e=>e.data&&e.key===t));return n.length?[n[0]]:[]}};function gN(e,t={},n){if("categorical"!==t.colorService.getMain().getSettings().type)return!1;const r=Fe({key:Zq.COMPONENT.LEGEND_CAT_TOOLTIP,rtl:n});return he(!0,r,{scale:Zq.SCALE.MAIN.COLOR,settings:{filter:e=>hN.filterNodes(e,Zq.COMPONENT.LEGEND_COLOR_CAT),extract:e=>hN.extractData(e,n),placement:"pointer",direction:n?"rtl":"ltr"},style:{content:{fontFamily:t.themeService.getStyles().fontFamily}}})}function yN(e,{fill:t}){return{[Zq.FORMATTER.MINOR]:{data:{fields:e.viewModel.fields.minor}},[Zq.FORMATTER.COLOR]:t&&t.data&&t.data.field?{data:{field:t.data.field}}:{}}}const vN=1,bN=3;function xN(e){return e.getLayoutValue("gridLine.auto")}function SN(e){return!xN(e)&&e.getLayoutValue("gridLine.spacing")===vN}function MN(e){return!xN(e)&&e.getLayoutValue("gridLine.spacing")===bN}const CN=e=>({enabled:e.animations.enabled,trackBy:Ha.lines.trackBy,compensateForLayoutChanges:Ha.lines.compensateForLayoutChanges}),wN=(e,{themeService:t,layoutService:n,dockService:r,viewModel:o})=>{if(!xN(n)&&function(e){return!e.getLayoutValue("gridLine.spacing")}(n))return!1;const{grid:i}=t.getStyles(),a={key:"grid-line",type:"grid-line",layout:{minimumLayoutMode:IL.measureAxis.minimumLayoutMode},preferredSize:()=>({size:0,edgeBleed:{left:1,right:1,top:1,bottom:1}}),ticks:{show:!SN(n)||((e,t)=>t%2==0),stroke:i.line.major.color},minorTicks:{show:MN(n),stroke:i.line.minor.color},animations:CN(o)};return a["horizontal"===r.meta.major.orientation?"y":"x"]=Zq.SCALE.MAIN.MINOR,a};function kN(e,t){const n=[wN(0,t)];return n[0]&&n.push((({dockService:e,themeService:t,viewCache:n,viewModel:r})=>{const o=n.get("minorMinMax");if(o.min>0||o.max<0)return!1;const i=t.getStyles(),a={};return a["horizontal"===e.meta.minor.orientation?"x":"y"]=[{value:0,scale:Zq.SCALE.MAIN.MINOR,line:{stroke:i.grid.line.highContrast.color}}],{key:"high-contrast-grid-line",type:"ref-line",scale:Zq.SCALE.MAIN.MINOR,lines:a,animations:CN(r)}})(t)),n}const EN="areaPan",TN=e=>({type:"Pan",key:"panorama",options:{event:EN,pointers:1,threshold:10,enable(t,n){return this.started===EN||!n||!!e.actions.scroll.enabled()&&e.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>e.key===Zq.COMPONENT.BAR))}},events:{areaPanstart(t){t.preventDefault(),this.started=EN;const n=e.viewState.get("zoom");this[EN]={min:n.min,max:n.max,size:e.chart.component(Zq.COMPONENT.BAR).rect.computedInner.width,span:n.max-n.min}},areaPanmove(t){t.preventDefault();const{span:n,min:r,max:o,size:i}=this[EN],a=-t.deltaX/i;e.viewState.set("zoom",{min:Math.min(r+a*n,e.viewCache.get("continuousMax")-n),max:Math.max(o+a*n,e.viewCache.get("continuousMin")+n)})},areaPanend(e){e.preventDefault(),this.started=!1},areaPancancel(e){e.preventDefault(),this.started=!1}}});function qN(e,t){if(e.layoutService.meta.isDiscrete)return{};const{viewCache:n,viewState:r,chart:o}=e,{rtl:i}=t,a=rg.event.onZoom({viewCache:n,viewState:r,chart:o},{threshold:100,rtl:i,targetKey:Zq.COMPONENT.BAR}),s={last:0};return{type:"Pinch",key:"continuous-pinch-zoom",options:{event:"zoom",pointers:2,threshold:0,enable:(t,n)=>!n||!!e.actions.scroll.enabled()&&e.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>e.key===Zq.COMPONENT.BAR))},events:{zoomstart(e){s.last=e.scale,e.preventDefault()},zoommove(e){const t=e.scale-s.last;(function(e){return Math.abs(e)>.01})(t)&&a(e.center,t>0?1:-1),e.preventDefault(),s.last=e.scale}}}}function LN({chart:e},t,n){const r=e.component(Zq.COMPONENT.BASE_TOOLTIP);var o;r&&r.show&&(r.emit("hide"),null!=n&&null!==(o=n.customTooltipModel)&&void 0!==o&&o.useCustomTooltip&&t&&t({},r,{nodes:[],opts:n,customTooltipModel:n.customTooltipModel,hide:!0}));const i=e.component(Zq.COMPONENT.LEGEND_CAT_TOOLTIP);i&&i.show&&i.emit("hide");const a=e.component(Zq.COMPONENT.TREND_LINES_TOOLTIP);a&&a.show&&a.emit("hide")}function NN(e,t){const{viewCache:n,viewState:r,chart:o,trendLineModel:i,layoutService:a}=e,{rtl:s}=t,l=e.layoutService.meta.isContinuous?rg.event.onZoom({viewCache:n,viewState:r,chart:o},{rtl:s,threshold:50,targetKey:Zq.COMPONENT.BAR}):void 0,c=_q({majorInnerScale:Zq.SCALE.MAIN.MAJOR_INNER,tooltip:Zq.COMPONENT.TREND_LINES_TOOLTIP,tooltipOverlay:Zq.COMPONENT.TREND_LINES_TOOLTIP_OVERLAY},{chart:o,viewState:r,trendLineModel:i,layoutService:a,rtl:s}),u=[Zq.COMPONENT.BAR,Zq.COMPONENT.BAR_AXIS,Zq.COMPONENT.GROUP_AXIS,Zq.COMPONENT.BAR_OOB_MAX,Zq.COMPONENT.BAR_OOB_MIN],d=e.customTooltipModel.utils,p=e.debouncer(d.displayTooltip,d.DEBOUNCE_THRESHOLD);return{type:"native",events:{wheel(t){let n,r=!1;if(e.actions.scroll.enabled()){const o={x:t.clientX,y:t.clientY};[n]=e.chart.componentsFromPoint(o).filter((e=>e.key===Zq.COMPONENT.BAR)),n&&(e.layoutService.meta.isContinuous&&l(o,Math.sign(-t.deltaY)),r=!0)}!r&&e.actions.interact.enabled()&&([n]=e.chart.componentsFromPoint(t).filter((e=>e.key===Zq.COMPONENT.LEGEND_COLOR_CAT)),n&&(r=!0,function(e,t){const n=(Math.abs(e.deltaX)>Math.abs(e.deltaY)?e.deltaX:e.deltaY)>=0?"next":"prev";t.emit(n)}(t,n))),r&&t.preventDefault(),LN(e,p,e)},mousemove(t){if(e.actions.tooltip.enabled()){if(c(t))return;const n=this.chart.componentsFromPoint({x:t.clientX,y:t.clientY}),r=this.chart.component(Zq.COMPONENT.BASE_TOOLTIP);if(r&&r.show)if(n.some((e=>u.indexOf(e.key)>-1))){const{customTooltipModel:n}=e;if(n.useCustomTooltip&&d.checkIfPromisesExist({customTooltipModel:n})){const o=d.getNodes(t,this.chart);p(t,r,{nodes:o,opts:e,customTooltipModel:n})}else r.emit("show",t)}else r.emit("hide");const o=this.chart.component(Zq.COMPONENT.LEGEND_CAT_TOOLTIP);o&&o.show&&(n.some((e=>e.key===Zq.COMPONENT.LEGEND_COLOR_CAT))?o.emit("show",t):o.emit("hide"))}},mouseup(t){2===t.button&&LN(this,p,e)},mouseleave(){LN(this,p,e)}}}}const ON=(e,t)=>({type:"hammer",enable:!0,gestures:[...(t.hammer||{}).gestures||[],...Mg({...e,componentKey:"scrollbar",rtl:t.rtl}).gestures,...e.layoutService.meta.isDiscrete?e.discrete.interactions.gestures:[TN(e),qN(e,t)]]});function DN(e,t){const n=[ON(e,t),NN(e,t),Mg({...e,componentKey:"scrollbar",rtl:t.rtl}).native];return e.layoutService.meta.isDiscrete&&n.push(e.discrete.interactions.native),n}const AN=e=>({enabled:e.animations.enabled,compensateForLayoutChanges:Ha.bars.compensateForLayoutChanges});const RN=(e,t,{collectionKey:n})=>{if(!cg({layoutService:t.layoutService}).miniChart)return!1;if(t.reducedDataModel.mode.isContinuous)return function(e,{reducedDataModel:t,colorService:n,continuousDataModel:r,viewModel:o},{collectionKey:i}){return{type:"box",key:"mini-marker",layout:{dock:"@scrollbar"},show:()=>r.getDimensionCardinality()>1,data:{collection:i},settings:{box:he(!0,{},e.settings.box,{minWidthPx:2,fill:n.getMini().getColor(),strokeWidth:0}),major:he(!0,{},e.settings.major,{scale:t.scales.major}),minor:e.settings.minor,orientation:e.settings.orientation,oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},animations:AN(o)}}(e,t,{collectionKey:n});const{mode:r,scales:o}=t.reducedDataModel;let i;return r.isGroupedByDimension&&!r.isReduced?i=({scale:e,datum:t})=>e([t.group.value,t.value])+e.bandwidth([t.group.value,t.value])/2:r.isGroupedByMeasure&&(i=({scale:e,datum:t})=>e([t.value,t.measureIndex.value])+e.bandwidth()/2),{type:"box",key:"mini-marker",layout:{dock:"@scrollbar"},show:()=>t.discrete.query.getCanScroll(),data:{collection:n},settings:{box:{...e.settings.box,fill:r.isReduced||r.isStackedByDimension?t.colorService.getMain().getSettings().others:t.colorService.getMain().getColor(),strokeWidth:0},major:{scale:o.major,fn:i},minor:{scale:o.minor},orientation:e.settings.orientation,oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},animations:AN(t.viewModel)}},{measureText:PN}=t.renderer("svg")();function IN(e,t,n){const r=function(e){const t=he(!0,{},e);return delete t.data,t}(t.minor),o=function(e,t,{majorScaleInvert:n,maxPxStep:r,align:o,getProp:i}){let a={invert:n,data:{extract:e.mode.isDimensionless?e.fields.minor.map(((e,t)=>({field:e,value:t}))):{source:"miniCube",field:"qDimensionInfo/0"}},type:e.mode.isDimensionless?"band":void 0,maxPxStep:r,align:o};return e.mode.isStackedByDimension?a.data.extract.field="qDimensionInfo/1":e.mode.isGroupedByDimension?e.mode.isReduced||(a.data={source:"miniCube",hierarchy:{value:e=>e.qElemNumber}}):e.mode.isGroupedByMeasure?(a=he(!0,{},t),a.data.extract.source="miniCube"):e.mode.isContinuous&&(a=he(!0,{},t,{min:()=>i("continuousMin"),max:()=>i("continuousMax")})),a}(e,t.major,n);return{reducedMinor:r,reducedMajor:o}}const zN=50,jN=100,FN=200;function BN(e,t){const n=function(e){const t=e.getLayoutValue("measureAxis.spacing",1);switch(t){case.5:return zN;case 1:return jN;case 2:return FN;default:return 125*t}}(t);return Math.max(1,Math.round(e/n))}function _N(e,t,n){return 0===t||t===Math.floor((n.length-1)/2)||t===n.length-1}function HN(e,t,n){return 0===t||0===e||t===n.length-1}function $N(e){for(let t=1;t<e.length;t++)if(e[t]===e[t-1])return!0;return!1}function VN(e,t,n,r,o){e.domain([t,n]),e.nice(10);const[i,a]=e.domain();let s=e.ticks(10);const l=function(e){return e.length%2==0}(s),c=function(e){const t=Math.round(.3*e.length),n=t,r=e.length-t;return e.slice(n,r).some((e=>0===e))}(s),u=c?HN:_N;s=s.filter(u),l&&!c&&!r&&s.length>1&&(s=[s[0],(s[0]+s[s.length-1])/2,s[s.length-1]]);const d=o?o.formatter(Zq.FORMATTER.MINOR):void 0;return $N(d?s.map(d):s)&&(s=[s[0],s[s.length-1]]),{roundedMin:i,roundedMax:a,ticks:s}}function WN(e,t,n,r,o,i,a,s){const l=i.formatter(Zq.FORMATTER.MINOR),c=s.getStyles(),u="horizontal"===a.meta.major.orientation?"height":"width",d=e=>PN({text:e,fontSize:c.axis.label.name.fontSize,fontFamily:c.axis.label.name.fontFamily})[u];let[p,f]=e.domain(),m=e.ticks(r);function h(){const e=m.map(l);return!$N(e)&&function(e){const t=o/m.length;return Math.max(...e.map(d))<=t}(e)}for(let o=r-1;o>0&&!h();o--)e.domain([t,n]),e.nice(o),[p,f]=e.domain(),m=e.ticks(o);return{roundedMin:p,roundedMax:f,ticks:m}}const UN=(e,t)=>e.value-t.value,KN=e=>({value:e,isMinor:!1}),GN=e=>({value:e,isMinor:!0});function YN(e,t,n){const r=Number.isNaN(t)&&Number.isNaN(n)?3:2;return e.filter((e=>(e=>Number.isNaN(t)||e>=t)(e)&&(e=>Number.isNaN(n)||e<=n)(e))).length<=r}function XN({chart:e,viewCache:t,dockService:n,layoutService:r,themeService:o,viewModel:i,ds:a}){const{isButterfly:s}=r.meta,{explicitMin:l,explicitMax:c,hasExplicitMin:d,hasExplicitMax:p}=t.get("minorMinMax"),{min:f,max:m}=function(e){let{min:t,max:n}=e.get("minorMinMax");return t===n&&0===t&&(t-=1,n+=1),{min:t,max:n}}(t),h=s?Math.max(Math.abs(f),Math.abs(m)):m,g=s?-h:f,y=u((()=>{const s=function(e,t,n){let r;return e?r=n.meta.chart.size:({rect:r}=t.component(Zq.COMPONENT.BAR)),"horizontal"===n.meta.major.orientation?r.height:r.width}(t.get("isPreRender"),e,n),u=BN(s,r),f=function(e,t,n){const r=wr().domain([e,t]);return r.nice(n),r}(g,h,u);let m,y,v=[];"SPARK"===n.meta.chart.mode?({roundedMin:m,roundedMax:y}=function(e,t){return{roundedMin:e,roundedMax:t}}(g,h)):(({roundedMin:m,roundedMax:y,ticks:v}=WN(f,g,h,u,s,e,n,o)),YN(v,l,c)&&({roundedMin:m,roundedMax:y,ticks:v}=VN(f,g,h,d||p,e)));const b=function(e,t){const n=[];for(let r=0;r<e.length-1;r++){const o=e[r],i=(e[r+1]-o)/(t+1);for(let e=1;e<=t;e++)n.push(o+i*e)}return n}(v,1);v=function(e,t,n){return e&&n.length&&!n.some((e=>e===t))?(n.unshift(t),n.filter((e=>e>=t))):n}(d,l,v),v=function(e,t,n){return e&&n.length&&!n.some((e=>e===t))?(n.push(t),n.filter((e=>e<=t))):n}(p,c,v);let x=function(e,t){return[...e.map(KN),...t.map(GN)].sort(UN)}(v,b);if(r.meta.isButterfly){const e=i.fields.minor[0],t=void 0===e?void 0:a.field(e).formatter();"function"==typeof t&&(x=x.map((e=>({...e,label:t(Math.abs(e.value))}))))}return{roundedMin:m,roundedMax:y,ticks:x}}),(()=>t.get("isPreRender")));return{values:()=>y().ticks,min:()=>d?l:y().roundedMin,max:()=>p?c:y().roundedMax}}function JN(e,{picasso:t,discrete:n,layoutService:r,dockService:o,viewModel:i,viewCache:a,reducedDataModel:s,colorService:l,themeService:c,viewState:u,chart:d,ds:p},{localeInfo:f,rtl:m}){const{meta:h}=r,{fields:g}=i,y=()=>{if("custom"!==r.getLayoutValue("dimensionAxis.axisDisplayMode"))return Math.min(200,o.meta.chart.size["horizontal"===o.meta.major.orientation?"height":"width"]/4)},v=!("none"===r.getLayoutValue("measureAxis.show"))?(b=o.meta.minor.orientation,x=o.meta.minor.dock,"vertical"===b?"near"===x||"left"===x?0:1:"near"===x||"bottom"===x?1:0):.5;var b,x;const S={},M="vertical"===o.meta.minor.orientation&&m,C=l.getMain().getScales(),w=l.getMini().getScales();if(Object.assign(S,C,{reducedFill:w.reducedFill}),S[Zq.SCALE.MAIN.MINOR]=function({chart:e,viewModel:{fields:t},dockService:n,viewCache:r,viewModel:o,layoutService:i,themeService:a,ds:s},{rtl:l}){const c=XN({chart:e,dockService:n,viewCache:r,layoutService:i,themeService:a,viewModel:o,ds:s}),u={invert:"vertical"===n.meta.minor.orientation||l,ticks:{values:c.values},minorTicks:{count:1},min:c.min,max:c.max};return i.meta.isStacked||(u.data={source:"qHyperCube",fields:t.minor}),u}({chart:d,viewModel:i,dockService:o,viewCache:a,layoutService:r,themeService:c,ds:p},{rtl:m}),h.isGroupedByDimension)[Zq.SCALE.MAIN.MAJOR_INNER,Zq.SCALE.MAIN.MAJOR].forEach(((e,t)=>{S[e]={invert:M,data:{source:"qHyperCube",hierarchy:{label:e=>e.qText?e.qText:"",value:e=>e.qElemNumber,props:{...i.selectionDimensionProp(t),group:h.isGroupedByDimension?{field:g.majorGroup}:void 0}}},label:({datum:e})=>e.label,ticks:{depth:t+1},maxPxStep:y,align:v}})),i.isDimensionLocked(0)||(S[Zq.SCALE.MAIN.MAJOR_INNER].data.hierarchy.props.axisSelectionDimension={field:0});else if(h.isGroupedByMeasure)S[Zq.SCALE.MAIN.MAJOR]={type:"group-by-measure",invert:M,data:{extract:{source:"qHyperCube",field:"qDimensionInfo/0",props:{axisSelectionDimension:{field:0}}}},measureCount:e.qHyperCube.qMeasureInfo.length,maxPxStep:y,align:v};else if(h.isTime){const{innerTime:e,outerTime:n}=function(e,t){const{layoutService:n,viewModel:r,viewCache:o,picasso:i,viewState:a,localeInfo:s,themeService:l}=e,c=()=>n.getHyperCubeValue("qAxisData.qAxis",[]),u=i.formatter("q-time"),d=l.getStyles(),p=e=>PN({text:e,fontSize:d.axis.label.name.fontSize,fontFamily:d.axis.label.name.fontFamily});o.set("qTimeAxisCache",[]);const f={get:(e,t=0)=>{const n=o.get("qTimeAxisCache");return n[t]&&n[t][0]===e?n[t][1]:void 0},set:(e,t,n=0)=>{o.get("qTimeAxisCache")[n]=[e,t]},key:({distance:e})=>{const{min:t,max:n}=a.get("zoom"),r=(n-t)/(o.get("continuousMax")-o.get("continuousMin")),i=c().map((e=>e.qName));return[e,Number.parseFloat(r).toFixed(12),...i].toString()}};return{innerTime:{data:{field:r.fields.majorNumeric},type:"q-time-axis",qAxis:c,field:r.fields.majorNumeric,min:()=>a.get("zoom").min,max:()=>a.get("zoom").max,invert:!!t,formatter:{fn:u,localeInfo:s,qNumFormat:n.getHyperCubeValue("qDimensionInfo.0",{}).qNumFormat,measureText:p},ticks:{generator:{type:"d3",initialMin:a.get("zoom").min},level:"inner",anchor:"start",clamp:!0},cache:f},outerTime:{data:{field:r.fields.majorNumeric},type:"q-time-axis",qAxis:c,field:r.fields.majorNumeric,min:()=>a.get("zoom").min,max:()=>a.get("zoom").max,invert:!!t,formatter:{fn:u,localeInfo:s,qNumFormat:n.getHyperCubeValue("qDimensionInfo.0",{}).qNumFormat,measureText:p},ticks:{generator:{type:"d3"},level:"outer",anchor:"start",clamp:!0},cache:f}}}({picasso:t,localeInfo:f,viewState:u,viewModel:i,viewCache:a,themeService:c,layoutService:r},m);S[Zq.SCALE.MAIN.MAJOR_INNER]=e,S[Zq.SCALE.MAIN.MAJOR]=n}else h.isContinuous?S[Zq.SCALE.MAIN.MAJOR]={type:"linear",invert:M,data:{extract:{key:"qHyperCube",field:g.majorNumeric}},ticks:{forceBounds:!0,count:u.get("zoom").min===u.get("zoom").max?1:void 0},minorTicks:{count:1},min:()=>u.get("zoom").min,max:()=>u.get("zoom").max}:S[Zq.SCALE.MAIN.MAJOR]={invert:M,data:{extract:h.isDimensionless?g.minor.map(((t,n)=>({field:t,label:()=>e.qHyperCube.qMeasureInfo[n].qFallbackTitle,value:n}))):{source:"qHyperCube",field:"qDimensionInfo/0",props:{axisSelectionDimension:{field:0}}}},type:h.isDimensionless?"band":void 0,maxPxStep:y,align:v};const{reducedMinor:k,reducedMajor:E}=IN(s,{major:S[Zq.SCALE.MAIN.MAJOR],minor:S[Zq.SCALE.MAIN.MINOR]},{majorScaleInvert:M,maxPxStep:y,align:v,getProp:a.get});return h.isDiscrete&&(S[Zq.SCALE.MAIN.MAJOR].range=n.query.getScaleRange,h.isGroupedByDimension&&(S[Zq.SCALE.MAIN.MAJOR_INNER].range=n.query.getScaleRange)),S[s.scales.major]=E,S[s.scales.minor]=k,S}function ZN(e,t,n){const{layoutService:r,colorService:o}=e;return function(e,t){if(!e.targets)throw new Error("Missing 'targets' property");return{interactions:[DL(e,t)],components:[]}}({targets:[r.meta.isStackedByDimension&&r.getHyperCubeValue("qStackedDataPages.0.qArea.qHeight",NaN)>1?Zq.COMPONENT.STACK_TOTAL_BAR:Zq.COMPONENT.BAR,Zq.COMPONENT.BAR_AXIS,Zq.COMPONENT.GROUP_AXIS,"outer-axis-overlay","inner-axis-overlay",Zq.COMPONENT.LEGEND_COLOR_CAT],components(e,t){const r={action:e.srcEvent.ctrlKey||n?"set":"toggle",contexts:["selection"],key:t[0].key};return Zq.COMPONENT.BAR===t[0].key?[{...r,data:["selectionDimension"]}]:[Zq.COMPONENT.BAR_AXIS,Zq.COMPONENT.GROUP_AXIS].includes(t[0].key)?[{...r,data:["selectionDimension","axisSelectionDimension"]}]:[r]}},{...e,isLocked:n=>n.some((e=>e.key===Zq.COMPONENT.LEGEND_COLOR_CAT))?o.getMain().isSelectionLocked({isMeasureSelectionLocked:t}):e.isLocked(n)})}function QN(e){const t=e.layoutService.meta.isStackedByDimension&&e.layoutService.getHyperCubeValue("qStackedDataPages.0.qArea.qHeight",NaN)>1;return function(e,t){if(!e.componentTargetKey)throw new Error("Missing 'componentTargetKey' property");const n={key:"lasso",...e},r=(({key:e,components:t})=>({key:e,type:"brush-lasso",layout:{displayOrder:99},settings:{brush:{components:t},lasso:{fill:"rgba(0, 0, 0, 0)",stroke:"black",strokeWidth:2,opacity:.7,strokeDasharray:[]},snapIndicator:{threshold:75,strokeDasharray:"5, 5",stroke:"black",strokeWidth:2,opacity:.7},startPoint:{r:10,stroke:"rgba(77, 192, 78, 1)",strokeWidth:0,opacity:1}}}))(n);return{interactions:[OL(n,t)],components:[r]}}({key:"lasso",componentTargetKey:Zq.COMPONENT.BAR,components:[t?{key:Zq.COMPONENT.STACK_TOTAL_BAR,contexts:["selection"],action:"add"}:{key:Zq.COMPONENT.BAR,contexts:["selection"],action:"add",data:["selectionDimension"]}]},e)}function eO(e){return function(e,t){const n=function(e){const{key:t,targets:n,components:r,fillTargets:o,dock:i}=e;return{key:t,type:"brush-area-dir",layout:{dock:n.map((e=>`@${e}`)).join(",")},settings:{multiple:!0,brush:{components:r},direction:"left"===i||"right"===i?"vertical":"horizontal",bubbles:{align:"left"===i||"top"===i?"end":"start",placement:"inside"},target:{components:o,fill:"rgba(82,204,82,0.2)"}}}}(e);return{interactions:[RL(e,t,"area")],components:[n]}}({eventName:"discreteRange",components:[{key:Zq.COMPONENT.BAR,contexts:["selection"],action:"set",data:["selectionDimension"]}],key:"discreteRangeBrush",targets:["group-axis",Zq.COMPONENT.BAR_AXIS,Zq.COMPONENT.BAR],fillTargets:["group-axis",Zq.COMPONENT.BAR_AXIS],dock:e.dockService.meta.major.dock},e)}function tO(e,t,n){const{selectionService:r}=e,{isUnsupportedFeature:o}=t,i=void 0===n,a=r.getIsSingleSelect(n),s=ZN(e,i,a);if(i||a)return{components:[...s.components],gestures:[...s.interactions]};const l=QN(e),c=function(e,t){return e.layoutService.meta.isStacked||e.layoutService.meta.isButterfly||null!=t&&t("rangeSelections")?{components:[],interactions:[]}:PL({eventName:"measureRange",key:"measureRangeBrush",targets:["y-axis",Zq.COMPONENT.BAR],fillTargets:["y-axis"],dock:e.dockService.meta.minor.dock,scale:Zq.SCALE.MAIN.MINOR,onEdited(){e.actions.select.emit("end","measureRange")}},e)}(e,o),u=function(e){return e.layoutService.meta.isContinuous?PL({eventName:"continuousRange",key:"continuousRangeBrush",targets:e.layoutService.meta.isTime?["outer-time-axis","inner-time-axis",Zq.COMPONENT.BAR]:["continuous-axis",Zq.COMPONENT.BAR],fillTargets:e.layoutService.meta.isTime?["outer-time-axis","inner-time-axis"]:["continuous-axis"],observeBrush:!0,multiple:!0,dock:e.dockService.meta.major.dock,scale:e.layoutService.meta.isTime?Zq.SCALE.MAIN.MAJOR_INNER:Zq.SCALE.MAIN.MAJOR,toLabel({datum:t,data:n,scale:r}){const o=e.layoutService.meta.isTime?r.formatter():e.chart.formatter(Zq.FORMATTER.MINOR),i=e.chart&&e.chart.brushSelectionIncludeMax;return`${t!==Math.max(...n)||i?"":"<"}${o(t)}`}},e):{components:[],interactions:[]}}(e),d=eO(e);return{components:[...s.components,...l.components,...c.components,...d.components,...u.components],gestures:[...l.interactions,...s.interactions,...c.interactions,...d.interactions,...u.interactions]}}const{isNumber:nO}=Qi;function rO({layoutService:e,viewModel:t,dockService:n}){var r;const{meta:o}=e;if(!o.isStackedByDimension||o.isContinuous)return!1;const{fields:i}=t,a=e.getLayoutValue("components",null),s=a?a.filter((e=>"bar"===e.key))[0]:null;return{key:"shadow-bar",type:"box",data:{extract:[{field:i.majorStack,filter:e=>0!==e.qDown||0!==e.qUp,props:{start:{value:e=>{return t=e.qSubNodes,Number(t.filter((e=>nO(e.qMaxPos))).map((e=>e.qMaxPos)).reduce(((e,t)=>e+t),0).toFixed(13));var t}},end:{value:e=>nO(e.qMaxPos)?Number(e.qMaxPos.toFixed(13)):0}}},{field:i.majorStack,filter:e=>0!==e.qDown||0!==e.qUp,props:{start:{value:e=>{return t=e.qSubNodes,Number(t.filter((e=>nO(e.qMinNeg))).map((e=>e.qMinNeg)).reduce(((e,t)=>e+t),0).toFixed(13));var t}},end:{value:e=>nO(e.qMinNeg)?Number(e.qMinNeg.toFixed(13)):0}}}]},settings:{major:{scale:Zq.SCALE.MAIN.MAJOR},minor:{scale:Zq.SCALE.MAIN.MINOR},orientation:n.meta.minor.orientation,box:{width:null!=s&&null!==(r=s.style)&&void 0!==r&&r.width&&s.style.width>0?s.style.width:.7,fill:()=>({type:"pattern",fill:"rgba(165, 165, 165, 0.8)",width:4,height:4,shapes:[{type:"rect",x:0,y:3,width:1,height:1},{type:"rect",x:1,y:2,width:1,height:1},{type:"rect",x:2,y:1,width:1,height:1},{type:"rect",x:3,y:0,width:1,height:1}]})},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},animations:{enabled:t.animations.enabled,trackBy:Ha.shadowBars.trackBy,compensateForLayoutChanges:Ha.bars.compensateForLayoutChanges}}}const oO={min:"Min",max:"Max"};function iO(e,t,n){const r=n?e.implicitMax:e.implicitMin;return!function(e,t,n){return void 0===n?YL(e,t)||XL(e,t):n===JL?YL(e,t):XL(e,t)}(Number(r.toFixed(13)),e,t)}function aO(e,{barComponent:t,type:n,isStacked:r}){var o,i,a;const{viewCache:s,layoutService:l,dockService:c}=e,u=s.get("minorMinMax"),d=n===JL;if(function(e,t){return!e[`hasOther${oO[t]}`]}(u,n)){if(function(e,t){return!e[`hasExplicit${oO[t]}`]}(u,n))return!1;if(iO(u,n,d))return!1}if(function(e,t,n){const r=n?e=>e<0:e=>e>0;return e[`hasExplicit${oO[t]}`]&&r(e[`explicit${oO[t]}`])}(u,n,d))return!1;let p="end";r&&(p=d?"sumOfPositives":"sumOfNegatives");const f=function(e){let t;return()=>(void 0===t&&(t=e()),t)}((()=>e.chart.scale(Zq.SCALE.MAIN.MINOR)[n]())),m=d?e=>e.datum[p].value>f():e=>e.datum[p].value<f(),h=Zq.COMPONENT.BAR,g=e.layoutService.getLayoutValue("components",[]),y=g?g.filter((e=>e.key===h))[0]:null;return{type:"box-sliced-hat",key:`sliced-hat-${n}`,layout:{dock:d?c.meta.minor.end:c.meta.minor.start},data:t.data,brush:t.brush,settings:{orientation:t.settings.orientation,major:t.settings.major,minor:t.settings.minor,hat:he({},t.settings.box,{fill:l.meta.isStacked?"#999":t.settings.box.fill,alignment:1,opacity:1,show:m,width:VL({layoutService:e.layoutService,discrete:e.discrete}),strokeWidth:null!=y&&null!==(o=y.style)&&void 0!==o&&o.strokeWidth?$L.BAR.STROKE.WIDTH[y.style.strokeWidth.toUpperCase()]:$L.BAR.STROKE.WIDTH.NONE,stroke:null!==(i=null==y||null===(a=y.style)||void 0===a||null===(a=a.strokeColor)||void 0===a?void 0:a.color)&&void 0!==i?i:$L.BAR.STROKE.COLOR})}}}function sO(e,{collectionKey:t},n){const{meta:r}=e.layoutService,{fields:o}=e.viewModel,i=r.isStackedByDimension&&!r.isContinuous?"qValue":"qNum";function a(t,n){const o=e.ds.field(t).raw(),a=e.ds.field(t).formatter(),s=ke.shouldUseFormat(o),l=r.isButterfly&&n>0;return{field:t,reduceLabel:"none",value:e=>"NaN"===e[i]?0:(e=>l&&0!==e?-e:e)(e[i]),label:e=>s?(e=>"NaN"===e[i]?"-":a(e[i]))(e):e.qText}}function s(e){if(!r.isButterfly)return;return{field:e,reduceLabel:"none",value:e=>e[i]<0}}const l=r.isStackedByDimension?e=>"NaN"===e.qValue:e=>!!e.qIsNull;const c={key:t,data:{extract:o.minor.map(((t,i)=>{const c=e.colorService.getMain().getDatumProps(i),u=e.colorService.getMini().getDatumProps(i),d=c[Object.keys(c)[0]],p=null==d?void 0:d.field,f=p?{field:p,reduceLabel:"none",value:e=>void 0!==e.qNum&&"NaN"!==e.qNum?e.qNum:e.qText||"-"}:void 0,m={field:r.isDimensionless?t:o.major,props:{...e.viewModel.selectionDimensionProp(),axisSelectionDimension:{field:0},start:0,end:a(t,i),negative:s(t),null:(h=t,{field:h,reduceLabel:"none",reduce:"first",value:l}),segment:r.isStacked?a(t):void 0,group:r.isGroupedByDimension?{field:o.majorGroup}:void 0,stack:r.isStacked?{field:o.majorStack}:void 0,measureIndex:r.isGroupedByDimension||r.isStackedByDimension?void 0:i,timeStart:r.isContinuous?{field:o.majorNumeric}:void 0,timeEnd:r.isContinuous?{field:o.majorNumeric}:void 0,fillTooltip:f,...c,...u,id:{value:e=>`r${e.qRow}e${e.qElemNumber}m${i}`},customTooltipAttrExps:0!==r.dimensionCount?MT.getNode(e.layoutService.getLayout(),r):void 0}};var h;return r.isDimensionless&&(m.value=i),void 0!==n&&(m.source=n),ke.deleteUndefinedProperties(m.props),m})),filter:r.isButterfly?e=>!e.negative.value:void 0}};return r.isStacked&&(c.data.stack={stackKey:e=>e.stack.value,value:e=>e.end.value,offset:"diverging"}),c}const{isNumber:lO}=Qi;function cO({layoutService:e,viewModel:t},{collectionKey:n}){const{meta:r}=e,{fields:o}=t;if(!r.isStacked)return!1;let i;return i=r.isStackedByMeasure?function(e,t){const n={field:0,props:{sumOfPositives:{fields:t.minor.map((e=>({field:e}))),value:e=>e.reduce(((e,t)=>t>0?e+t:e),0),reduceLabel:"none"},sumOfNegatives:{fields:t.minor.map((e=>({field:e}))),value:e=>e.reduce(((e,t)=>t<0?e+t:e),0),reduceLabel:"none"},null:{fields:t.minor.map((e=>({field:e}))),value:e=>Array.isArray(e)&&e.every((e=>"NaN"===e)),reduceLabel:"none"}}};if(e.isContinuous){const e={field:t.major,value:e=>e.qNum,reduceLabel:"none"};n.props.timeStart=e,n.props.timeEnd=e,n.value=e=>e.qNum}return n}(r,o):function(e,t){if(!e.isContinuous)return{field:t.majorStack,reduceLabel:"none",props:{sumOfPositives:{value:e=>lO(e.qMaxPos)?Number(e.qMaxPos.toFixed(13)):0},sumOfNegatives:{value:e=>lO(e.qMinNeg)?Number(e.qMinNeg.toFixed(13)):0},null:{value:e=>{const{qSubNodes:t=[]}=e;return t.every((e=>"NaN"===((e.qSubNodes||[])[0]||{}).qValue))}}}};const n={field:t.majors[0],value:e=>e.qNum,reduceLabel:"none"};return{field:t.majorStack,trackBy:e=>e.qNum,reduce:e=>e[0],props:{sumOfPositives:{field:t.minor[0],reduceLabel:"none",reduce:e=>e.reduce(((e,t)=>t>0?e+t:e),0)},sumOfNegatives:{field:t.minor[0],reduceLabel:"none",reduce:e=>e.reduce(((e,t)=>t<0?e+t:e),0)},timeStart:n,timeEnd:n}}}(r,o),{key:n,data:{extract:i}}}const uO="main-collection",dO="stack-total-collection";function pO(e,{collectionKey:t}){const{layoutService:n,colorService:r,reducedDataModel:{fields:o,mode:i}}=e,{meta:a}=n,s=a.isStackedByDimension&&!a.isContinuous?"qValue":"qNum";function l(e,t){if(!a.isButterfly)return{field:e};const n=t>0;return{field:e,value:e=>"NaN"===e[s]?0:(e=>n&&0!==e?-e:e)(e[s])}}function c(e){if(!a.isButterfly)return;return{field:e,reduceLabel:"none",value:e=>e[s]<0}}return{key:t,data:{extract:o.minor.map(((e,t)=>{const n=i.isReduced?{}:r.getMain().getDatumProps(t),a={start:0,end:l(e,t),negative:c(e),group:{field:o.majorGroup},measureIndex:t,...n},s={source:"miniCube",field:i.isDimensionless?e:o.major,props:a};return i.isDimensionless&&(s.value=t),s})),filter:a.isButterfly?e=>!e.negative.value:void 0}}}const fO="mini-collection",mO="mini-stack-collection",hO="mini-continuous-collection",gO="miniCube",yO=(e,t)=>{const n=(e=>{const t=[sO(e,{collectionKey:uO})];return e.layoutService.meta.isStacked&&t.push(cO(e,{collectionKey:dO})),t})(t),r=((e,t)=>{const n=[];return cg({layoutService:t.layoutService}).miniChart&&(t.reducedDataModel.mode.isContinuous?n.push(sO(t,{collectionKey:hO},gO)):t.layoutService.meta.isStacked?n.push(function(e,{collectionKey:t}){const{colorService:n,reducedDataModel:{fields:r,mode:o}}=e;return{key:t,data:{extract:r.minor.map(((e,t)=>{const i={end:{field:e,reduceLabel:"none"},...o.isStackedByMeasure&&!o.isReduced?n.getMain().getDatumProps(t):{}};return o.isContinuous&&(i.timeStart={field:r.major,value:e=>e.qNum},i.timeEnd=i.timeStart),{source:"miniCube",field:r.major,props:i}})),stack:{stackKey:e=>e.value,value:e=>e.end.value,offset:"diverging"}}}}(t,{collectionKey:mO})):n.push(pO(t,{collectionKey:fO}))),n})(0,t);return n.concat(r)};function vO(e,t,n,r){const o=[{position:e,onBackground:!0,justify:0,overflow:r}];if(t){const t={fill:"#e6e6e6",padding:{left:2,right:2,top:2,bottom:2}};o.push({position:"inside",onBackground:!1,justify:"outside"===e?1:0,background:n?t:void 0})}return o}function bO({layout:e,component:t},n,r){if(!uN(e,n))return!1;const{layoutService:o,chart:i,dockService:a,viewModel:s,themeService:l,styleService:c}=n,{meta:u}=o,d=!cN(e,n),p=l.getStyles(),f=c.label.getStyle(),m=f.useContrastColor;function h(e){const t=i.formatter(Zq.FORMATTER.MINOR);return t?t(e):e}const g={label:function(e){return 0===e.data.sumOfPositives.value&&0!==e.data.sumOfNegatives.value?"":h(e.data.sumOfPositives.value)},simplifiedPlacements:vO("outside",d,m,u.isContinuous),style:p.label.value},y={label:function(e){return 0===e.data.sumOfNegatives.value&&0!==e.data.sumOfPositives.value?"":h(e.data.sumOfNegatives.value)},simplifiedPlacements:vO("opposite",d,m,u.isContinuous),style:p.label.value},v=[aN(he(n,g)),aN(he(n,y))];return{key:"stack-total-labels",type:"labels",renderer:Qa(n.flags),layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:t,selector:"rect",strategy:{type:"bar",settings:{direction:e=>lN(e.data.sumOfPositives.value,a.meta.minor.orientation,r),labels:v,fontSize:parseInt(f.fontSize,10),fontFamily:f.fontFamily,linkData:Ha.labels.linkData}}}]},animations:{enabled:s.animations.enabled,trackBy:Ha.labels.trackBy,compensateForLayoutChanges:Ha.labels.compensateForLayoutChanges}}}function xO(e,t,n){const r=[{position:e,justify:0,overflow:n,background:{padding:{left:1,right:1,top:1,bottom:1}}}];return r.push({position:"inside",onBackground:!1,justify:1,background:{padding:{left:2,right:2,top:2,bottom:2}}}),r}function SO({layout:e,type:t},n){const{layoutService:r,viewCache:o,themeService:i,styleService:a}=n,{meta:s}=r,{isStacked:l}=s;if(!l&&!cN(e,n)||l&&!uN(e,n))return!1;const c=o.get("minorMinMax");if(!c.hasExplicitMinMax||t===JL&&0===c.max||t===ZL&&0===c.min)return!1;if(!eN(t===JL?c.implicitMax:c.implicitMin,c,t))return!1;const u=i.getStyles(),d=a.label.getStyle();let p=e=>e.data.end.label;s.isStacked&&(p=t===JL?function(e){if(eN(e.data.sumOfNegatives.value,c,t)){const t=0===e.data.sumOfNegatives.value?e.data.sumOfPositives.value:e.data.sumOfNegatives.value,r=n.chart.formatter(Zq.FORMATTER.MINOR);return r?r(t):t}return""}:function(e){if(eN(e.data.sumOfPositives.value,c,t)){const t=0===e.data.sumOfPositives.value?e.data.sumOfNegatives.value:e.data.sumOfPositives.value,r=n.chart.formatter(Zq.FORMATTER.MINOR);return r?r(t):t}return""});const f={label:p,simplifiedPlacements:xO("outside",0,s.isContinuous),styles:u},m={label:p,simplifiedPlacements:xO("opposite",0,s.isContinuous),styles:u},h=[aN(he(n,f)),aN(he(n,m))],g="vertical"===n.dockService.meta.minor.orientation?"down":"right",y=[{component:`${Zq.COMPONENT.GHOST_BAR_OOB}-${t}`,selector:"rect",strategy:{type:"bar",settings:{direction:g,labels:h,fontSize:parseInt(d.fontSize,10),fontFamily:d.fontFamily,linkData:Ha.labels.linkData}}}];return{key:`bar-oob-labels-${t}`,type:"labels",renderer:Qa(n.flags),layout:{minimumLayoutMode:"XSMALL"},settings:{sources:y},animations:{enabled:n.viewModel.animations.enabled,trackBy:Ha.labels.trackBy,compensateForLayoutChanges:Ha.labels.compensateForLayoutChanges}}}function MO(e){return"all"===e||"title"===e}function CO(e,t,n){var r;if(null!=t&&null!==(r=t.flags)&&void 0!==r&&r.isEnabled("IM_5788_DATA_TITLE_REFACTOR"))return!1;if(!MO(e.dimensionAxis.show)||t.layoutService.meta.isDimensionless)return!1;const{actions:o,properties:i}=t,a={hyperCube:e.qHyperCube,hyperCubeDef:i&&i.qHyperCubeDef,isDimension:!0,disabled:()=>{var e;return!(null!=o&&null!==(e=o.interact)&&void 0!==e&&e.enabled())},model:t.model,app:t.app,translator:t.translator,rtl:n,selections:t.selections,supportConditional:!0,isEnabled:t.flags.isEnabled},s=t.styleService.axis.title.getStyle();return t.layoutService.meta.hasMultipleDimensions&&(a.padding="0",a.minWidth="auto"),{key:"dimension-title",type:"data-title",layout:{minimumLayoutMode:IL[`${t.dockService.meta.major.orientation}DimensionAxisTitle`].minimumLayoutMode,dock:t.dockService.meta.major.dock},settings:a,style:s}}function wO(e,t,n){var r;if(null!=t&&null!==(r=t.flags)&&void 0!==r&&r.isEnabled("IM_5788_DATA_TITLE_REFACTOR"))return!1;if(!MO(e.measureAxis.show))return!1;const{layoutService:i,actions:a}=t,s=t.properties,l=i.getLayoutValue("qUndoExclude")?"qUndoExclude.qHyperCubeDef":"qHyperCubeDef",c={hyperCube:i.getHyperCube(),hyperCubeDef:o(s,l),isDimension:!1,disabled:()=>!a.interact.enabled(),model:t.model,app:t.app,translator:t.translator,rtl:n,selections:t.selections,supportConditional:!0,isEnabled:t.flags.isEnabled},u=t.styleService.axis.title.getStyle();return t.layoutService.meta.hasMultipleMeasures&&(c.padding="0",c.minWidth="auto"),{key:"measure-title",type:"data-title",layout:{minimumLayoutMode:"SMALL",dock:t.dockService.meta.minor.dock},settings:c,style:u}}function kO(e){return"all"===e||"title"===e}function EO(e,t,n){var r;if(null==t||null===(r=t.flags)||void 0===r||!r.isEnabled("IM_5788_DATA_TITLE_REFACTOR"))return!1;if(!kO(e.dimensionAxis.show)||t.layoutService.meta.isDimensionless)return!1;const o=t.alternativeService.getAlternatives(),{actions:i}=t,a=t.styleService.axis.title.getStyle();return{type:"axis-title",key:"dimension-title",renderer:"react-qcm",layout:{minimumLayoutMode:IL[`${t.dockService.meta.major.orientation}DimensionAxisTitle`].minimumLayoutMode,dock:t.dockService.meta.major.dock},data:{infos:t.layoutService.getHyperCubeValue("qDimensionInfo"),alternatives:o.dimensions},resources:{app:t.app,cache:t.viewCache,model:t.model,selections:t.selections,translator:t.translator},callbacks:{onChange:()=>{}},settings:{isDisabled:()=>{var e;return!(null!=i&&null!==(e=i.interact)&&void 0!==e&&e.enabled())},isRTL:n,isSnapshot:t.layoutService.meta.isSnapshot,skipAttributeExpressions:!1,type:"dimension"},style:{title:{color:a.color,fontFamily:a.fontFamily,fontSize:a.fontSize}}}}function TO(e,t,n){var r;if(null==t||null===(r=t.flags)||void 0===r||!r.isEnabled("IM_5788_DATA_TITLE_REFACTOR"))return!1;if(!kO(e.measureAxis.show))return!1;const o=t.alternativeService.getAlternatives(),{actions:i}=t,a=t.styleService.axis.title.getStyle();return{type:"axis-title",key:"measure-title",renderer:"react-qcm",layout:{minimumLayoutMode:"SMALL",dock:t.dockService.meta.minor.dock},data:{infos:t.layoutService.getHyperCubeValue("qMeasureInfo"),alternatives:o.measures},resources:{app:t.app,cache:t.viewCache,model:t.model,selections:t.selections,translator:t.translator},callbacks:{onChange:()=>{}},settings:{isDisabled:()=>{var e;return!(null!=i&&null!==(e=i.interact)&&void 0!==e&&e.enabled())},isRTL:n,isSnapshot:t.layoutService.meta.isSnapshot,skipAttributeExpressions:!1,type:"measure"},style:{title:{color:a.color,fontFamily:a.fontFamily,fontSize:a.fontSize}}}}function qO({environment:e,rtl:t,refLineModel:n,layoutService:r,colorService:o,dockService:i,themeService:a,viewModel:s,chart:l}){const{theme:c,localeInfo:u}=e,d={resolveUIColor:o.getMain().getPaletteColor},p=a.getStyles(),f=s.animations.enabled;return[Ka({refLineModel:n,layoutService:r,colorModel:d,dockService:i,animationsEnabled:f,chart:l,scale:Zq.SCALE.MAIN.MINOR,axis:"horizontal"===i.meta.major.orientation?"y":"x",key:Zq.COMPONENT.MEASURE_REF_LINE,minimumLayoutMode:IL.refLines.minimumLayoutMode}),Ka({isDimension:!0,refLineModel:n,layoutService:r,colorModel:d,dockService:i,animationsEnabled:f,chart:l,scale:Zq.SCALE.MAIN.MAJOR,axis:"horizontal"===i.meta.major.orientation?"x":"y",rtl:t,key:Zq.COMPONENT.DIMENSION_REF_LINE,mainComponentKey:Zq.COMPONENT.BAR,minimumLayoutMode:IL.refLines.minimumLayoutMode}),...Ya({refLineModel:n,layoutService:r,colorModel:d,animationsEnabled:f,dock:i.meta.minor.opposite,scale:Zq.SCALE.MAIN.MINOR,style:p,formatter:Zq.FORMATTER.MINOR,theme:c,localeInfo:u,rtl:t,key:Zq.COMPONENT.MEASURE_REF_LINE_LABEL}),...Ya({isDimension:!0,refLineModel:n,layoutService:r,colorModel:d,animationsEnabled:f,dock:i.meta.major.opposite,scale:Zq.SCALE.MAIN.MAJOR,style:p,theme:c,localeInfo:u,rtl:t,key:Zq.COMPONENT.DIMENSION_REF_LINE_LABEL})]}function LO({dockService:e,layoutService:t,discrete:n,continuousDataModel:r,viewModel:o,flags:i}){if(null==i||!i.isEnabled("VIZ_199_ADD_SPACE_BETWEEN"))return!1;if(!!cg({layoutService:t}).none)return!1;const{rtl:a}=e.config,s="horizontal"===e.meta.chart.orientation,l=!s,{dock:c}=e.meta.major,{show:u}=t.getLayoutValue("dimensionAxis",{}),d="none"!==u;if(l&&d&&"bottom"===c)return!1;if(s&&d){if(!a&&"right"===c)return!1;if(a&&"left"===c)return!1}const p=a?"left":"right";return{type:"space",key:Zq.COMPONENT.SPACE,layout:{dock:l?"bottom":p,minimumLayoutMode:"XSMALL"},show:()=>t.meta.isContinuous?r.getDimensionCardinality()>1:n.query.getCanScroll(),settings:{size:Math.max(6,Math.min(16,Math.floor(.025*e.meta.minor.size)))},animations:{enabled:o.animations.enabled,trackBy:()=>Math.random()}}}const NO=(e,t,n)=>{var r;const{layoutService:o,dockService:i,colorService:a,chart:s,actions:l,discrete:c,continuousDataModel:u,reducedDataModel:d,viewModel:p,viewState:f,viewCache:m,themeService:h,refLineModel:g,pluginService:y,rtl:v,logicalSize:b,trendLineModel:x,disclaimerService:S}=t,{localeInfo:M}=n,C=function(e,t){const{disclaimerService:n,themeService:r,translator:o}=e,i=n.getDisclaimer();if(!i)return!1;const{fontFamily:a}=r.getStyles();return{key:"disclaimer",type:"disclaimer",layout:{dock:i.alignment},settings:{isRTL:t,label:o.get(`Object.Disclaimer.${i.key}`)},style:{fontFamily:a}}}(t,v);if(S.getHasSuppressingDisclaimer())return{components:[C]};const w=JN(e,t,{localeInfo:M,rtl:v}),k=!(null!=l&&null!==(r=l.interact)&&void 0!==r&&r.enabled()),E=a.getMain().getLegend({eventName:"legend-c",key:"legend-color",viewState:f,chart:s,styleReference:"object.barChart",styleOverrides:{title:t.styleService.legend.title.getStyle(),label:t.styleService.legend.label.getStyle()},rtl:v,settings:{item:{shape:{size:10}}}},{actions:l,navigationDisabled:k}),T=E.components[0];if(T){const{dock:e}=T.layout;if(w.fillRange&&(["right","left"].includes(e)||v)&&(w.fillRange.invert=!0),"legend-seq"===T.type&&void 0!==p.selectionDimensionIdx&&w.fillRange&&w.fillRange.min<w.fillRange.max){const e=PL({eventName:"legendRange",key:"legendRangeBrush",targets:[T.key],fillTargets:[T.key],targetSelector:'[id="legend-seq-target"]',targetFillSelector:'[id="legend-seq-ticks"]',dock:T.layout.dock,scale:"fillRange",bubblesPlacement:"outside",onEdited:()=>{l.select.emit("end","legendRange")}},t);E.components.push(...e.components),E.interactions.unshift(...e.interactions)}}else w.fillRange&&v&&(w.fillRange.invert=!0);const q=((e,{componentKey:t,collectionKey:n})=>{var r,o,i;const{meta:a}=e.layoutService,s=e.colorService.getMain().getPaletteColor;let l,c;a.isGroupedByDimension?l=({scale:e,datum:t})=>e([t.group.value,t.value])+e.bandwidth([t.group.value,t.value])/2:a.isGroupedByMeasure&&(l=({scale:e,datum:t})=>e([t.value,t.measureIndex.value])+e.bandwidth()/2);let u=2;a.isContinuous?(c={start:"timeStart",end:"timeEnd"},u=UL(e,t)):a.isStacked&&(c="stack");const d=a.isStackedByDimension&&e.layoutService.getHyperCubeValue("qStackedDataPages.0.qArea.qHeight",NaN)>1,p=e=>{var t;return!0===(null===(t=e.datum.null)||void 0===t?void 0:t.value)},f=e.layoutService.getLayoutValue("components",null),m=f?f.filter((e=>e.key===t))[0]:null;return{key:t,type:"box",data:{collection:n},preferredSize:a.isContinuous?()=>({size:0,edgeBleed:{left:1,right:1}}):void 0,brush:{consume:[{context:"selection",data:["selectionDimension","axisSelectionDimension","end","fill","timeEnd"],style:{active:{strokeWidth:a.isContinuous||d?0:2,stroke:"#000"},inactive:{opacity:.3}}}]},settings:{major:{scale:Zq.SCALE.MAIN.MAJOR,fn:l,ref:c},minor:{scale:Zq.SCALE.MAIN.MINOR},orientation:e.dockService.meta.minor.orientation,box:{width:VL({layoutService:e.layoutService,discrete:e.discrete}),minWidthPx:u,fill:e.colorService.getMain().getColor(),opacity:e=>p(e)?0:void 0,minHeightPx:function(e){return a.isStacked?.1:p(e)?.01:.3},strokeWidth:null!=m&&null!==(r=m.style)&&void 0!==r&&r.strokeWidth?$L.BAR.STROKE.WIDTH[m.style.strokeWidth.toUpperCase()]:$L.BAR.STROKE.WIDTH.NONE,stroke:null!=m&&null!==(o=m.style)&&void 0!==o&&null!==(o=o.strokeColor)&&void 0!==o&&o.color?s(null==m||null===(i=m.style)||void 0===i?void 0:i.strokeColor):$L.BAR.STROKE.COLOR},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},animations:{enabled:e.viewModel.animations.enabled,isMainComponent:!0,trackBy:Ha.bars.trackBy,compensateForLayoutChanges:Ha.bars.compensateForLayoutChanges}}})(t,{componentKey:Zq.COMPONENT.BAR,collectionKey:Zq.COLLECTION.MAIN}),L=((e,{componentKey:t,collectionKey:n})=>{const{meta:r}=e.layoutService;if(!r.isStacked)return!1;let o=2;r.isContinuous&&(o=UL(e,t));const i={key:t,type:"box",data:{collection:n},settings:{major:{scale:Zq.SCALE.MAIN.MAJOR},minor:{scale:Zq.SCALE.MAIN.MINOR,start:{ref:"sumOfNegatives"},end:{ref:"sumOfPositives"}},orientation:e.dockService.meta.minor.orientation,box:{width:VL({layoutService:e.layoutService,discrete:e.discrete}),minWidthPx:o,opacity:0,fill:"none"},oob:{show:!1},whisker:{show:!1},median:{show:!1},line:{show:!1}},brush:{consume:[{context:"selection",data:[""],style:{active:{strokeWidth:2,stroke:"#000",opacity:e=>{var t;return!0===(null===(t=e.data)||void 0===t||null===(t=t.null)||void 0===t?void 0:t.value)?0:1}},inactive:{opacity:e=>{var t;return!0===(null===(t=e.data)||void 0===t||null===(t=t.null)||void 0===t?void 0:t.value)?0:.3}}}}]}};return r.isContinuous&&(i.settings.major.ref={start:"timeStart",end:"timeEnd"}),i})(t,{componentKey:Zq.COMPONENT.STACK_TOTAL_BAR,collectionKey:Zq.COLLECTION.STACK_TOTAL}),N=tO(t,n,p.selectionDimensionIdx),{isStacked:O}=o.meta;let D;D=d.mode.isContinuous?Zq.COLLECTION.MINI_CONTINUOUS:O?Zq.COLLECTION.MINI_STACK:Zq.COLLECTION.MINI;const A=O?L:q,R=kN(0,t),P=[...R,aO(t,{barComponent:A,type:"max",isStacked:O}),aO(t,{barComponent:A,type:"min",isStacked:O}),nN(t,{barComponent:A,type:"max",isStacked:O}),nN(t,{barComponent:A,type:"min",isStacked:O}),oN(t,{chart:s,type:"max",collectionKey:O?Zq.COLLECTION.STACK_TOTAL:Zq.COLLECTION.MAIN}),oN(t,{chart:s,type:"min",collectionKey:O?Zq.COLLECTION.STACK_TOTAL:Zq.COLLECTION.MAIN}),...HL(e,t,v,!!R[0]),q,L,rO({layoutService:o,viewModel:p,dockService:i}),CO(e,t,v),wO(e,t,v),EO(e,t,v),TO(e,t,v),...qO({environment:n,rtl:v,refLineModel:g,layoutService:o,colorService:a,dockService:i,themeService:h,viewModel:p,chart:s}),Fi({viewState:f,viewCache:m,layoutService:o,dockService:i,rtl:v}),LO({dockService:i,layoutService:o,discrete:c,continuousDataModel:u,viewModel:p,flags:t.flags}),RN(q,t,{collectionKey:D}),ug({layoutService:o,dockService:i,discrete:c,continuousDataModel:u,viewState:f,viewCache:m,themeService:h,rtl:v,deviceType:n.deviceType}),...Pq({majorScale:Zq.SCALE.MAIN.MAJOR,minorScale:Zq.SCALE.MAIN.MINOR,tooltipOverlay:Zq.COMPONENT.TREND_LINES_TOOLTIP_OVERLAY},{layoutService:o,trendLineModel:x,dockService:i,animationsEnabled:p.animations.enabled}),...E.components,pN({layout:e,component:Zq.COMPONENT.BAR,minorScale:w.minor},t,v),bO({layout:e,component:Zq.COMPONENT.STACK_TOTAL_BAR},t,v),SO({layout:e,type:"max"},t),SO({layout:e,type:"min"},t),...N.components,mN(0,{...t,coloring:a.getMain().getSettings()},v),gN(0,{...t,coloring:a.getMain().getSettings()},v),!1!==e.showDisclaimer&&C,Fq({tooltip:Zq.COMPONENT.TREND_LINES_TOOLTIP,formatter:Zq.FORMATTER.MINOR},t,{rtl:v})].filter(Boolean);!function(e){if(e&&0!==e.length)for(let t=0;t<e.length;t++)e[t].layout=e[t].layout||{},e[t].layout.displayOrder=t}(P);const I=[...E.interactions,...N.gestures].sort(((e,t)=>(t.prio||0)-(e.prio||0)));return{interactions:DN(t,{rtl:v,hammer:{gestures:I}}),scales:w,palettes:a.getMain().getPalettes(),components:y.extendComponents(P),strategy:be(0,{logicalSize:b,minCenterRatio:0}),formatters:yN(t,w),collections:yO(0,t)}};const OO=({environment:e,services:t,chart:n,viewState:r,bootstrapped:o})=>{J((i=>{if(!e||!t||!o)return;const{layoutService:a,dockService:s,colorService:l,discrete:c,continuousDataModel:u,reducedDataModel:d}=t,{width:p,height:f}=s.meta.chart.size;if(i.snapshotData=i.snapshotData||{},i.snapshotData.content={size:{w:p,h:f}},a.meta.isSnapshot)return Promise.resolve();i.snapshotData.content.chartData={scrollOffset:r.get("scrollOffset"),zoom:r.get("zoom"),legendScrollOffset:Ne(n,Zq.COMPONENT.LEGEND_COLOR_CAT)};const{properties:m}=o,h=null==m?void 0:m.qHyperCubeDef.qDimensions.some((e=>{var t;return null===(t=e.qCalcCondition)||void 0===t||null===(t=t.qCond)||void 0===t?void 0:t.qv}));return h&&(i.tooltip.auto=!0),a.meta.isDiscrete?(c.command.setSnapshotData(i),d.setSnapshotData(i)):u.setSnapshotData(i),l.getMain().getSnapshotData().then((e=>{i.snapshotData.content.chartData={...i.snapshotData.content.chartData,...e}})).catch((()=>{}))})),Z((()=>({getViewState(){if(r&&n)return{scrollOffset:r.get("scrollOffset"),zoom:r.get("zoom"),legendScrollOffset:Ne(n,Zq.COMPONENT.LEGEND_COLOR_CAT)}}})),[r,n])},DO=e=>"[object Object]"===Object.prototype.toString.call(e),AO=e=>Array.isArray(e);function RO(e,t){if(e===t)return!0;if(AO(e)){if(!AO(t))return!1;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!RO(e[n],t[n]))return!1;return!0}if(DO(e)){if(!DO(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(!RO(e[n[r]],t[n[r]]))return!1}return!0}return e===t}const PO=({properties:e,layout:t,isStacked:n,isContinuous:r,model:o,layoutService:i})=>{var a,s;const l=t.qHyperCube.qDimensionInfo.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)})),c=t.qHyperCube.qMeasureInfo.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)})),u=he(!0,{},e);return((e,t,n)=>{const{color:{mode:r}}=n;e.length>1&&n.color?n.color.persistent=!0:"byDimension"===r&&t.length>1?n.color.mode="byMultiple":"byExpression"===r&&0===t.length?n.color.mode="primary":0===e.length&&t.length>0&&(n.color.byMeasureDef=void 0,n.color.byDimDef=void 0,1===t.length&&"byExpression"!==r&&(n.color.mode="primary"))})(l,c,e),l.length>1&&n&&!r&&"S"===e.qHyperCubeDef.qMode&&(e.qHyperCubeDef.qMode="K"),l.length<2&&"K"===e.qHyperCubeDef.qMode&&(e.qHyperCubeDef.qMode="S"),null===(a=o.colorSupport)||void 0===a||null===(s=a.colorByUpdater)||void 0===s||s.call(a,e,"qHyperCubeDef.",t),function({properties:e,layoutService:t}){const{filteredFields:n}=t.meta;if(!(n.measures.length>0))return;const{mode:r}=e.color||{};if("byExpression"===r){var o;if("colorByExpression"===(null===(o=t.getLayout().qHyperCube.qMeasureInfo)||void 0===o||null===(o=o[0])||void 0===o||null===(o=o.qAttrExprInfo)||void 0===o||null===(o=o[0])||void 0===o?void 0:o.id))return;const{current:r,target:i}=function({properties:e,filtered:t}){const{qMeasures:n}=e.qHyperCubeDef||[],{current:r,target:o}=n.reduce(((e,n,r)=>{var o;return"colorByExpression"===(null===(o=n.qAttributeExpressions[0])||void 0===o?void 0:o.id)&&(e.current=r),void 0!==e.target||t.includes(r)||(e.target=r),e}),{current:void 0,target:void 0});return{current:r,target:o}}({properties:e,filtered:n.measures});if(void 0===r)return;const a=e.qHyperCubeDef.qMeasures[r].qAttributeExpressions[0];e.qHyperCubeDef.qMeasures[r].qAttributeExpressions.splice(0,1),e.qHyperCubeDef.qMeasures[i].qAttributeExpressions.splice(0,0,a)}}({properties:e,layoutService:i}),!Wi.compare(u,e,!0)&&JSON.stringify(u)!==JSON.stringify(e)&&(e.hash=Math.random(),!0)};function IO(e,t){if("custom"===e.dimensionAxis.axisDisplayMode){const n=t.layout.qHyperCube.qMeasureInfo.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==LT})).length,r=t.layout.qHyperCube.qDimensionInfo.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==LT})).length,o=e.dimensionAxis.maxVisibleItems;o<1?e.dimensionAxis.maxVisibleItems=10:o>1e4/(r+n)&&(e.dimensionAxis.maxVisibleItems=Math.min(o,Math.floor(1e4/(r+n))))}}const zO=[{translation:"Common.None",value:"none"},{translation:"Common.Small",value:"small"},{translation:"Common.Medium",value:"medium"},{translation:"Common.Large",value:"large"}],jO=(e,t,n)=>{const r=`${e}.fontFamily`,o=`${e}.fontSize`;return{fontFamilyItem:{component:"dropdown",ref:r,options:()=>t.getOptions(r),defaultValue:()=>t.getDefaultValue(r)},fontWrapperItem:{component:"inline-wrapper",items:{fontSizeItem:{component:"dropdown",ref:o,options:()=>t.getOptions(o),defaultValue:()=>t.getDefaultValue(o)},fontColorItem:{component:"color-picker",width:!1,ref:`${e}.color`,defaultValue:()=>({color:n.getStyle("object.barChart",e,"color")})}}}}};function FO(e){return{classification:{section:"styling",tags:["simple"],exclusive:!0},component:"items",show:!0,chartType:"barchart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.BarChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:null==e?void 0:e.isEnabled("SENSECLIENT_IM_2428_BARCHART_BG"),items:{outlineSection:{translation:"LayerStyleEditor.style.strokeWidth",component:"items",items:{wrapperItem:{component:"items",ref:"components",key:"bar",items:{barStroke:{component:"inline-wrapper",items:{strokeWidth:{ref:"style.strokeWidth",width:!0,component:"dropdown",translation:"LayerStyleEditor.style.strokeWidth",options:Object.keys(zO).map((e=>zO[e])),schemaIgnore:!0,defaultValue:zO[0].value},strokeColor:{ref:"style.strokeColor",schemaIgnore:!0,defaultValue:{color:"#205891",index:-1},width:"auto",component:"color-picker"}}}}}}},widthSection:{translation:"LayerStyleEditor.style.barWidth",component:"items",show:(e,t)=>!Le.continuous(t.layout),items:{barWidth:{component:"items",ref:"components",key:"bar",items:{width:{ref:"style.width",translation:"LayerStyleEditor.style.barWidth",component:"slider",min:.01,max:1,step:.01,schemaIgnore:!0,defaultValue:(e,t,n)=>((e,t)=>{var n,r,o;const i=null===(n=t.qHyperCube)||void 0===n||null===(n=n.qMeasureInfo)||void 0===n?void 0:n.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==LT})).length,a=null===(r=t.qHyperCube)||void 0===r||null===(r=r.qDimensionInfo)||void 0===r?void 0:r.filter((e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==LT})).length,s="grouped"===(null===(o=e.barGrouping)||void 0===o?void 0:o.grouping)&&a>0&&i+a>2;return Le.continuous(t)?1:s?.9:.7})(n.properties,n.layout)}}}}},optionsSection:{translation:"LayerStyleEditor.label.Options",component:"items",items:{wrapperItem:{component:"items",items:{optionsHeader:{component:"header",translation:"LayerStyleEditor.label.Options"},scrollbar:{ref:"scrollbar",translation:"properties.scrollbar",component:"dropdown",type:"string",options:Object.keys(ig.OPTIONS).map((e=>ig.OPTIONS[e])),schemaIgnore:!0,defaultValue:ig.DEFAULT.value},scrollAlignment:{ref:"scrollStartPos",translation:"properties.ScrollAlignment",component:"dropdown",schemaIgnore:!0,defaultValue:0,options:[{value:0,translation:"properties.ScrollAlignStart"},{value:1,translation:"properties.ScrollAlignEnd"}]},gridLines:{type:"items",items:{showGridLines:{ref:"gridLine.auto",type:"boolean",translation:"properties.gridLine.spacing",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}]},gridSpacing:{ref:"gridLine.spacing",type:"number",component:"dropdown",defaultValue:2,options:[{value:0,translation:"properties.gridLine.noLines"},{value:1,translation:"properties.gridLine.wide"},{value:2,translation:"properties.gridLine.medium"},{value:3,translation:"properties.gridLine.narrow"}],show:e=>e.gridLine&&!e.gridLine.auto}}}}}}}}}}function BO(e,t,n,r=!1){return r?FO(t):function(e,t,n){const r=b({theme:e,translator:n,config:{id:"barChart",paths:["axis.title","axis.label.name","label.value","legend.title","legend.label"]},flags:t});return{component:"styling-panel",show:!0,chartType:"barchart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.BarChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:null==t?void 0:t.isEnabled("SENSECLIENT_IM_2428_BARCHART_BG"),items:{outlineSection:{translation:"properties.Outline",component:"panel-section",items:{wrapperItem:{component:"items",ref:"components",key:"bar",items:{barStroke:{component:"inline-wrapper",items:{strokeWidth:{ref:"style.strokeWidth",width:!0,component:"dropdown",options:Object.keys(zO).map((e=>zO[e])),defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",defaultValue:{color:"#205891"},schemaIgnore:!0,width:"auto",component:"color-picker"}}}}}}},widthSection:{translation:"LayerStyleEditor.style.barWidth",component:"panel-section",show:(e,t)=>!Le.continuous(t.layout),items:{barWidth:{component:"items",ref:"components",key:"bar",items:{width:{ref:"style.width",component:"slider",min:.01,max:1,step:.01,defaultValue(e,t,n){const{properties:r}=n,{barGrouping:o,qHyperCubeDef:i}=r,a=i.qMeasures.length,s=i.qDimensions.length,l="grouped"===o.grouping&&s>0&&a+s>2;return Le.continuous(r)?1:l?.9:.7},schemaIgnore:!0}}}}},axisTitleSection:{translation:"properties.axis.title",component:"panel-section",items:{axisTitleItems:{component:"items",ref:"components",key:"axis",items:jO("axis.title",r,e)}}},axisLabelSection:{translation:"properties.axis.label",component:"panel-section",items:{axisLabelItems:{component:"items",ref:"components",key:"axis",items:jO("axis.label.name",r,e)}}},labelSection:null!=t&&t.isEnabled("CLIENT_IM_3050")?{translation:"properties.dataPoints.labelmode",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"label",items:{...jO("label.value",r,e),contrastColor:{component:"checkbox",type:"boolean",ref:"label.value.useContrastColor",translation:"properties.dataPoints.valuelabel.contrast",defaultValue:!0}}}}}:void 0,legendTitleSection:null!=t&&t.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.title",component:"panel-section",items:{legendTitleSection:{component:"items",ref:"components",key:"legend",items:jO("legend.title",r,e)}}}:void 0,legendLabelSection:null!=t&&t.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.label",component:"panel-section",items:{legendLabelSection:{component:"items",ref:"components",key:"legend",items:jO("legend.label",r,e)}}}:void 0}}}(e,t,n)}const _O=e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==LT},HO=(e,t)=>null==e?void 0:e.qHyperCube[t].filter((e=>_O(e))),$O=e=>({get(t,n,r){const o="stacked";return"butterfly"===t(n.type)?Qq({layout:r.layout,flags:e})?t(n.type):o:Le.continuous(r.layout)?o:t(n.type)},set(e,t,n){const r=Ae(n.type,n);t(n.type,e,r)}}),VO=e=>{if(!e)return!1;const t=he(!0,{},e);return t.qHyperCube.qMeasureInfo=HO(e,"qMeasureInfo"),t.qHyperCube.qDimensionInfo=HO(e,"qDimensionInfo"),t&&!Le.continuous(t)&&Le.stacked(t)},WO=({translator:e,flags:t,anything:n})=>{var r,o,i;const a=null==n||null===(r=n.sense)||void 0===r||null===(o=r.isUnsupportedFeature)||void 0===o?void 0:o.call(r,"continuousData"),s={items:{labels:{items:{header:{show:(e,t,n)=>HO(n.layout,"qMeasureInfo").length},pointLabels:{component:"checkbox",ref:"dataPoint.showLabels",type:"boolean",translation:"Simple.Label.Value",show:(e,t,n)=>!VO(t.layout)&&HO(n.layout,"qMeasureInfo").length},segmentLabels:{component:"checkbox",ref:"dataPoint.showSegmentLabels",type:"boolean",translation:"properties.dataPoints.segmentLabelMode",defaultValue:!1,show:(e,t)=>VO(t.layout),convertFunctions:{get:(e,t,n,r)=>r.dataPoint.showLabels&&r.dataPoint.showSegmentLabels,set(e,t,n,r,o){o.dataPoint.showSegmentLabels=e,o.dataPoint.showLabels=o.dataPoint.showSegmentLabels||o.dataPoint.showTotalLabels}}},totalLabels:{component:"checkbox",ref:"dataPoint.showTotalLabels",type:"boolean",translation:"properties.dataPoints.totalLabelMode",defaultValue:!0,show:(e,t)=>VO(t.layout),convertFunctions:{get:(e,t,n,r)=>r.dataPoint.showLabels&&r.dataPoint.showTotalLabels,set(e,t,n,r,o){o.dataPoint.showTotalLabels=e,o.dataPoint.showLabels=o.dataPoint.showSegmentLabels||o.dataPoint.showTotalLabels}}},dimensionTitle:{component:"checkbox",ref:"dimensionAxis.show",type:"string",translation:"Simple.Label.Dimension.Hide",defaultValue:"all",show:(e,t,n)=>HO(n.layout,"qDimensionInfo").length&&HO(n.layout,"qMeasureInfo").length,convertFunctions:{get:(e,t,n,r)=>"labels"===r.dimensionAxis.show||"none"===r.dimensionAxis.show,set(e,t,n,r,o){o.dimensionAxis.show=e?"labels":"all"}}},measureTitle:{component:"checkbox",ref:"measureAxis.show",type:"string",translation:"Simple.Label.Measure.Hide",defaultValue:"all",show:(e,t,n)=>HO(n.layout,"qMeasureInfo").length,convertFunctions:{get:(e,t,n,r)=>"labels"===r.measureAxis.show||"none"===r.measureAxis.show,set(e,t,n,r,o){o.measureAxis.show=e?"labels":"all"}}}}}}},l=null==n||null===(i=n.sense)||void 0===i?void 0:i.theme,c={uses:"settings",items:{simpleStyling:BO(l,t,e,!0),simpleLabels:s,general:{items:{showDisclaimer:{translation:"properties.showDisclaimer",type:"boolean",ref:"showDisclaimer",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Show"},{value:!1,translation:"properties.hide"}]}}},presentation:{type:"items",translation:"properties.presentation",grouped:!0,items:{boxStyling:BO(l,t,e,!1),grouping:{ref:"barGrouping.grouping",type:"string",component:"item-selection-list",defaultValue:"grouped",horizontal:!0,items:(e,n)=>{const r=[{icon:"grouped",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.grouped",value:"grouped"},{icon:"stacked",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.stacked",value:"stacked"}];return Qq({layout:n.layout,flags:t})&&r.push({icon:"bars_butterfly",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.butterfly",value:"butterfly"}),r},show(e,t){const n=HO(t.layout,"qMeasureInfo").length,r=HO(t.layout,"qDimensionInfo").length;return r>0&&n+r>2},globalChange(e,n,r){"butterfly"!==e.barGrouping.grouping||Qq({layout:r.layout,flags:t})||(e.barGrouping.grouping="stacked"),"butterfly"===e.barGrouping.grouping&&e.measureAxis&&"max"!==e.measureAxis.minMax&&!e.measureAxis.autoMinMax&&(e.measureAxis.minMax="max")},change(e,n,r){"butterfly"!==e.barGrouping.grouping||Qq({layout:r.layout,flags:t})||(e.barGrouping.grouping="stacked"),HO(n.layout,"qDimensionInfo").length>1&&"stacked"===e.barGrouping.grouping?(e.qHyperCubeDef.qMode="K",e.qHyperCubeDef.qAlwaysFullyExpanded=!0):e.qHyperCubeDef.qMode="S"},readOnly:(e,t,n)=>Le.continuous(n.layout),convertFunctions:$O(t)},orientation:{ref:"orientation",type:"string",component:"item-selection-list",defaultValue:"vertical",horizontal:!0,items:[{component:"icon-item",icon:"bars_vertical",labelPlacement:"bottom",translation:"properties.orientation.vertical",value:"vertical"},{icon:"bars_horizontal",component:"icon-item",labelPlacement:"bottom",translation:"Common.Horizontal",value:"horizontal"}],readOnly:(e,t,n)=>Le.continuous(n.layout),convertFunctions:(u="vertical",{get:(e,t,n)=>Le.continuous(n.layout)?u:e(t.type),set(e,t,n){const r=Ae(n.type,n);t(n.type,e,r)}})},scroll:{type:"items",items:{scrollbar:{type:"string",component:"dropdown",ref:"scrollbar",translation:"properties.scrollbar",options:Object.keys(ig.OPTIONS).map((e=>ig.OPTIONS[e])),defaultValue:ig.DEFAULT.value},scrollStartPos:{ref:"scrollStartPos",type:"number",translation:"properties.ScrollAlignment",component:"dropdown",defaultValue:0,options:[{value:0,translation:"properties.ScrollAlignStart"},{value:1,translation:"properties.ScrollAlignEnd"}],show:(e,t,n)=>!Le.continuous(n.layout)}}},gridLines:{type:"items",snapshot:{tid:"property-gridLines"},items:{showGridLines:{ref:"gridLine.auto",type:"boolean",translation:"properties.gridLine.spacing",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}]},gridSpacing:{ref:"gridLine.spacing",type:"number",component:"dropdown",defaultValue:2,options:[{value:0,translation:"properties.gridLine.noLines"},{value:1,translation:"properties.gridLine.wide"},{value:2,translation:"properties.gridLine.medium"},{value:3,translation:"properties.gridLine.narrow"}],show:e=>e.gridLine&&!e.gridLine.auto}}},valueLabels:{type:"items",snapshot:{tid:"property-valueLabels"},items:{showLabels:{ref:"dataPoint.showLabels",type:"boolean",translation:"properties.dataPoints.labelmode",component:"switch",defaultValue:!1,options:[{value:!0,label:(t,n)=>((e,t,n)=>n&&n.get(VO(t.layout)?"properties.on":"Common.Auto"))(0,n,e)},{value:!1,translation:"properties.off"}]},showSegmentLabels:{ref:"dataPoint.showSegmentLabels",type:"boolean",translation:"properties.dataPoints.segmentLabelMode",component:"switch",defaultValue:!1,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}],show:(e,t,n)=>e.dataPoint.showLabels&&VO(n.layout)},showTotalLabels:{ref:"dataPoint.showTotalLabels",type:"boolean",translation:"properties.dataPoints.totalLabelMode",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}],show:(e,t,n)=>e.dataPoint.showLabels&&VO(n.layout)}}}}},colorsAndLegend:{uses:"colorsAndLegend",items:{colors:{items:{attributeExpression:es}},legend:{items:{show:{snapshot:{tid:"property-legend"}}}}}},dimensionAxis:{uses:"axis.dimensionAxis",items:{axisDisplaySettings:{components:"items",type:"items",show:(e,t,n)=>!Le.continuous(n.layout),items:{axisDisplayMode:{ref:"dimensionAxis.axisDisplayMode",type:"string",translation:"properties.axis.displaymode",component:"dropdown",defaultValue:"auto",options:[{value:"auto",translation:"properties.axis.displaymode.auto"},{value:"max",translation:"properties.axis.displaymode.max"},{value:"custom",translation:"properties.axis.displaymode.custom"}]},maxVisibleItems:{ref:"dimensionAxis.maxVisibleItems",translation:"properties.axis.maxvisiblevalues",expression:"optional",type:"integer",invalid(e,t,n){const r=HO(n.layout,"qMeasureInfo").length,o=HO(n.layout,"qDimensionInfo").length,i=e.dimensionAxis.maxVisibleItems;return i<0||i>1e4/(o+r)},globalChange:IO,defaultValue:10,show:e=>"custom"===e.dimensionAxis.axisDisplayMode},hint:{component:"text",translation:"properties.axis.maxvisiblevalues.hint",style:"hint",show:e=>["custom","max"].indexOf(e.dimensionAxis.axisDisplayMode)>-1}}},continuousGroup:{items:{miniChart:null},show:!a}}},measureAxis:{uses:"axis.flippableMeasureAxis"},tooltip:{uses:"tooltip"}}};var u;return null!=t&&t.isEnabled("SENSECLIENT_LAYERED_LABELS")&&(c.items.dimensionAxis.items.othersGroup={items:{label:{options:[{value:"auto",translation:"Common.Auto"},{value:"horizontal",translation:"Common.Horizontal"},{value:"tilted",translation:"properties.labels.tilted"},{value:"layered",translation:"properties.labels.layered"}]}}}),null!=t&&t.isEnabled("TLV_800_BUTTERFLY_CHART")&&(c.items.measureAxis={uses:"axis.flippableMeasureAxis",items:{minMax:{items:{minMax:{show:e=>"butterfly"!==e.barGrouping.grouping&&e.measureAxis&&!e.measureAxis.autoMinMax},min:{show:e=>"butterfly"!==e.barGrouping.grouping&&e.measureAxis&&["min","minMax"].includes(e.measureAxis.minMax)&&!e.measureAxis.autoMinMax},max:{invalid:e=>e.measureAxis&&"minMax"===e.measureAxis.minMax?e.measureAxis.min>=e.measureAxis.max:!(!e.measureAxis||"max"!==e.measureAxis.minMax||"butterfly"!==e.barGrouping.grouping)&&e.measureAxis.max<=0}}}}}),c},UO={uses:"sortingWithDisclaimer",items:{defaultSorting:{items:{dimensions:{locked:(e,t,n)=>1===n.getMeasures().length&&2===n.getDimensions().length&&0===e,items:{autoSort:{change(e){$t(e)}}}},interColumnSorting:{reset:(e,t)=>{const{qDimensions:n,qMeasures:r,qInterColumnSortOrder:o}=e.qHyperCubeDef,{qCardinal:i}=t.layout.qHyperCube.qDimensionInfo[0],a=o.length,s=[...Array(a).keys()];1===n.length&&r.length>=1&&i>10&&([s[0],s[1]]=[s[1],s[0]]),e.qHyperCubeDef.qInterColumnSortOrder=s}}}}}},KO={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}},refLines:{uses:"reflines"},dimRefLines:{uses:"dimReflines"}}},GO=({translator:e,flags:t,anything:n})=>{var r,o;return{uses:"data",items:{dimensions:{items:{nullSuppression:{show(e,t,r){var o,i;if(null!=n&&null!==(o=n.sense)&&void 0!==o&&null!==(i=o.isUnsupportedFeature)&&void 0!==i&&i.call(o,"includeZeroValues"))return!1;const a=((e,t)=>{var n,r;const o=null===(n=t.layout)||void 0===n||null===(n=n.qHyperCube)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.findIndex((e=>_O(e)));return(null===(r=t.properties)||void 0===r||null===(r=r.qHyperCubeDef)||void 0===r||null===(r=r.qDimensions)||void 0===r?void 0:r[o])===e})(e,t),s=Le.continuous(r.layout);return!(a&&s)}},visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Chart.Dimensions.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0}}},measures:{items:{visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Chart.Measures.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0},trendLines:null!=n&&null!==(r=n.sense)&&void 0!==r&&null!==(o=r.isUnsupportedFeature)&&void 0!==o&&o.call(r,"trendlines")?void 0:Vq({translator:e,allowStackedByDimension:t&&t.isEnabled("TRENDLINES_STACKED_DIM")})}}}}};function YO({translator:e,flags:t,anything:n}){return{type:"items",component:"accordion",items:{data:GO({translator:e,flags:t,anything:n}),sorting:UO,addons:KO,settings:WO({translator:e,flags:t,anything:n})}}}const XO=e=>{var t;return(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)!==LT};function JO({flags:e}){return{type:"items",component:"accordion",items:{data:{uses:"data"},sort:{uses:"sortWithDisclaimer",items:{sort:{items:{dimensions:{locked(e,t,n){const r=n.qHyperCube.qMeasureInfo.length,o=n.qHyperCube.qDimensionInfo.filter((e=>XO(e))).length;return 1===r&&2===o&&0===e}}}}}},presentation:{uses:"presentation",items:{showLabels:{ref:"dataPoint.showLabels",type:"boolean",translation:"properties.dataPoints.labelmode",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]},grouping:{ref:"barGrouping.grouping",type:"string",component:"item-selection-list",horizontal:!0,items:(t,n)=>{const r=[{icon:"grouped",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.grouped",value:"grouped"},{icon:"stacked",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.stacked",value:"stacked"}];return Qq({layout:null==n?void 0:n.layout,flags:e})&&r.push({icon:"bars_butterfly",component:"icon-item",labelPlacement:"bottom",translation:"properties.grouping.butterfly",value:"butterfly"}),r},show(e,t){return t.qHyperCube.qMeasureInfo.filter((e=>XO(e))).length+t.qHyperCube.qDimensionInfo.filter((e=>XO(e))).length>2&&!Le.continuous(t)&&!((null==(n=t)||null===(r=n.qHyperCube)||void 0===r||null===(r=r.qDimensionInfo)||void 0===r?void 0:r.filter((e=>XO(e))).length)>1&&(null==n||null===(o=n.qHyperCube)||void 0===o?void 0:o.isHCEnabled));var n,r,o},change(e){e.qHyperCubeDef.qDimensions.length>1&&"stacked"===e.barGrouping.grouping?(e.qHyperCubeDef.qMode="K",e.qHyperCubeDef.qAlwaysFullyExpanded=!0):e.qHyperCubeDef.qMode="S"}},orientation:{ref:"orientation",type:"string",component:"item-selection-list",horizontal:!0,items:[{component:"icon-item",icon:"bars_vertical",labelPlacement:"bottom",translation:"properties.orientation.vertical",value:"vertical"},{icon:"bars_horizontal",component:"icon-item",labelPlacement:"bottom",translation:"Common.Horizontal",value:"horizontal"}],show:(e,t)=>!Le.continuous(t)}}},color:{uses:"color"}}}}function ZO(e){const t={},n=o(e,"components"),r=o(e,"dimensionAxis.axisDisplayMode"),i=o(e,"dimensionAxis.maxVisibleItems"),a=n?n.filter((e=>"bar"===e.key))[0]:void 0,s=o(e,"tooltip");if(a&&a.style&&Object.keys(a.style).forEach((e=>{t[`chart_style_${e}`]=a.style[e]})),i&&(t.chart_dimaxis_maxVisibleItems=i),r&&(t.chart_dimaxis_axisDisplayMode=r),s){t.chart_tooltip_custom=!s.auto;const e=o(s,"chart.object.refId");!s.auto&&e&&(t.chart_tooltip_custom_mini_chart=e)}return t}const QO=e=>!!(e&&e.qHyperCube.qSize.qcy>0),eD={ACCUMULATIONS:"accumulation",MOVING_AVERAGE:"movingAverage",DIFFERENCE:"difference",NORMALIZATION:"normalization"};function tD(){const e=[];return Object.keys(eD).forEach((t=>{e.push(eD[t])})),e}function nD(e){return{definition:YO(e),softDefinition:JO(e),support:{snapshot:QO,export:QO,exportData:!0,sharing:QO,viewData:!0,effects:!0,modifiers:tD()},importProperties:(t,n,r,o)=>{const i={layout:{templateId:n.templateId}};r.mapProperties(i);const a={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()},s=ee.axisChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:jT(e),defaultPropertyValues:a,hypercubePath:o,extension:r}),l=s.qProperty;return l.qHyperCubeDef.qDimensions.length>1&&"stacked"===l.barGrouping.grouping&&(l.qHyperCubeDef.qMode="K",l.qHyperCubeDef.qAlwaysFullyExpanded=!0),ee.conditionalShow.unquarantine(l),ee.conditionalShow.unquarantineAlternative(l),s},exportProperties:(e,t,n)=>{ee.conditionalShow.quarantine(e.qProperty),ee.conditionalShow.quarantineAlternative(e.qProperty);return ee.axisChart.exportProperties({propertyTree:e,hyperCubePath:t,viewDataMode:n})},migrate:{properties:e=>(e.qExtendsId||(function(e){var t;e.qHyperCubeDef.qDimensions.forEach($t),null!==(t=e.qHyperCubeDef.qLayoutExclude)&&void 0!==t&&null!==(t=t.qHyperCubeDef)&&void 0!==t&&t.qDimensions&&e.qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.forEach($t)}(e),function({properties:e}){const{scrollbar:t,dimensionAxis:n,preferContinuousAxis:r,showMiniChartForContinuousAxis:o}=e;if(t||!1!==o)return;const{continuousAuto:i}=n;(i||!i&&r)&&(e.scrollbar=ig.OPTIONS.NONE.value)}({properties:e})),e)},extendMetrics:ZO}}}}}));