@nebula.js/sn-pie-chart 1.27.6 → 1.27.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-specifications/plugins.json +1 -1
- package/api-specifications/properties.json +1 -1
- package/core/esm/index.js +3 -3
- package/dist/sn-pie-chart.js +8 -8
- package/dist/sn-pie-chart.systemjs.js +8 -8
- package/package.json +1 -1
- package/sn-pie-chart-ext/dist/sn-pie-chart.js +8 -8
- package/sn-pie-chart-ext/sn-pie-chart.qext +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-pie-chart v1.27.
|
|
2
|
+
* @nebula.js/sn-pie-chart v1.27.8
|
|
3
3
|
* Copyright (c) 2024 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
/*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
|
|
14
14
|
e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,i,o,a,s,l,c,u,d,f=e.length,h=e.search(/[0-9\-\+#]/),p=h>0?e.substring(0,h):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),y=f-g,v=e.substring(y,y+1),b=y+("."===v||","===v?1:0),x=g>0?e.substring(b,f):"";if(n=(t="-"===(e=e.substring(h,b)).charAt(0)?-t:+t)<0?t=-t:0,i=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",o=r&&r[1]&&r[0]||",",e=e.split(i),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(c=t.split("."))[1]||c[1]&&c[1].length<=s)&&(t=(+t).toFixed(s+1)),u=e[0].split(o),e[0]=u.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;c[0].length<e[0].length-a;)c[0]="0"+c[0];else 0==+c[0]&&(c[0]="");if((t=t.split("."))[0]=c[0],l=u[1]&&u[u.length-1].length){for(m="",y=(d=t[0]).length%l,f=d.length,b=0;b<f;b++)m+=d.charAt(b),!((b-y+1)%l)&&b<f-l&&(m+=o);t[0]=m}return t[1]=e[1]&&t[1]?i+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),p+(n?"-":"")+r+x}}));function Sm(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}const Cm={3:"k",6:"M",9:"G",12:"T",15:"P",18:"E",21:"Z",24:"Y","-3":"m","-6":"μ","-9":"n","-12":"p","-15":"f","-18":"a","-21":"z","-24":"y"},Mm=/%\)?$/,Em=/^\(r(0[2-9]|[12]\d|3[0-6])\)/i,_m=/^\(oct\)/i,Dm=/^\(dec\)/i,qm=/^\(hex\)/i,Tm=/^\(bin\)/i,Rm=/^\(rom\)/i,Nm=/^(\(rom\)|\(bin\)|\(hex\)|\(dec\)|\(oct\)|\(r(0[2-9]|[12]\d|3[0-6])\))/i,Om=/#|0/g;function Am(e,t,n,r){return e=e.toString(t),n[1]===n[1].toUpperCase()&&(e=e.toUpperCase()),e.length-e.indexOf(".")>10&&(e=e.slice(0,e.indexOf(".")+11)),e.replace(".",r||".")}function Pm(e,t,n){let r;return Em.test(t)?e=Am(e,Number(/\d{2}/.exec(t)[0]),t,n):_m.test(t)?e=Am(e,8,t,n):Dm.test(t)?e=Am(e,10,t,n):qm.test(t)?e=Am(e,16,t,n):Tm.test(t)?e=Am(e,2,t,n):Rm.test(t)&&(r="",e<0&&(r="-",e=-e),0===(e=Math.floor(e))?e="0":e<=5e5?(e=function(e,t){let n,r="",i=Number(String(e).slice(-3)),o=(e-i)/1e3,a=[0,1,4,5,9,10,40,50,90,100,400,500,900].reverse(),s=["0","I","IV","V","IX","X","XL","L","XC","C","CD","D","CM"].reverse();for(;i>0;)for(n=0;n<a.length;n++)if(a[n]<=i){r+=s[n],i-=a[n];break}for(n=0;n<o;n++)r="M".concat(r);return t[1]!==t[1].toUpperCase()&&(r=r.toLowerCase()),r}(e,t),e=r+e):e=t+r+e.toExponential(0)),e}function Im(e,t,n){const r=Sm(e);return n?r:new RegExp(r||"",t)}function Lm(e,t,n,r){let i,o,a,s,l,c,u,d,f,h=e.pattern;var p,m;r&&(e.abbreviate=!0),p=t,(m=n)&&(m=Sm(m)),p&&(p=Sm(p)),f=new RegExp("(?:[#0]+".concat(p,")?[#0]+(?:").concat(m,"[#0]+)?")),a=h.match(f),a=a?a[0]:"",s=a?h.substr(0,h.indexOf(a)):h,l=a?h.substring(h.indexOf(a)+a.length):"",a||(a=h?"#":"##########"),t&&t===n&&(i=a.split(n),o=i.pop(),a=i.join("")+n+o,t=""),c=t,t=/,/.test(n)?"¤":",",c&&(a=a.replace(Im(c,"g"),t)),u=n,n=".",u&&(a=a.replace(Im(u,"g"),n)),d=a.match(/#/g),d=d?d.length:0;const g=h.split(u);let y;g[1]&&(y=g[1].match(Om)),e.prefix=s||"",e.postfix=l||"",e.pattern=h,e.maxPrecision=y?y.length:2,e.percentage=Mm.test(h),e.numericPattern=a||"",e.numericRegex=new RegExp("".concat(Im(t,null,!0),"|").concat(Im(n,null,!0)),"g"),e.groupTemp=c,e.decTemp=u,e.t=t,e.d=n,e.temp=d}class zm{constructor(e,t,n,r,i){this.localeInfo=e,this.pattern=t,this.thousandDelimiter=n||",",this.decimalDelimiter=r||".",this.type=i||"numeric",this.patternSeparator=";",this.abbreviations=function(e,t){if(!e||!e.qNumericalAbbreviation)return Cm;const n={};return e.qNumericalAbbreviation.split(t).forEach((e=>{let t=e.split(":");2===t.length&&(n[t[0]]=t[1])})),n}(e,this.patternSeparator),this.prepare()}clone(){const e=new zm(this.localeInfo,this.pattern,this.thousandDelimiter,this.decimalDelimiter,this.type);return e.subtype=this.subtype,e}format(e,t,n,r){return this.prepare(t,n,r),this.formatValue(e)}prepare(e,t,n){let r;if(void 0===e&&(e=this.pattern),void 0===t&&(t=this.thousandDelimiter),void 0===n&&(n=this.decimalDelimiter),!e)return void(this._prepared={pattern:!1});this._prepared={positive:{d:n,t:t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""},negative:{d:n,t:t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""},zero:{d:n,t:t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""}},r=this._prepared,e=e.split(this.patternSeparator),r.positive.pattern=e[0],r.negative.pattern=e[1],r.zero.pattern=e[2],Nm.test(e[0])&&(r.positive.isFunctional=!0),e[1]?Nm.test(e[1])&&(r.negative.isFunctional=!0):r.negative=!1,e[2]?Nm.test(e[2])&&(r.zero.isFunctional=!0):r.zero=!1;const i="U"===this.type;r.positive.isFunctional||Lm(r.positive,t,n,i),r.negative&&!r.negative.isFunctional&&Lm(r.negative,t,n,i),r.zero&&!r.zero.isFunctional&&Lm(r.zero,t,n,i)}formatValue(e){let t,n,r,i,o,a,s,l,c,u=this._prepared,d="",f="",h=e;if(isNaN(e))return"".concat(h);if(e=+e,!1===u.pattern)return e.toString();if(0===e&&u.zero)return u=u.zero,u.pattern;if(e<0&&u.negative?(u=u.negative,e=-e):u=u.positive,o=u.d,a=u.t,u.isFunctional)e=Pm(e,u.pattern,o);else{if(u.percentage&&(e*=100),u.abbreviate){const t=Object.keys(this.abbreviations).map((e=>parseInt(e,10))).sort(((e,t)=>e-t));let r,i,o=t[0];for(s=0,n=Number(Number(e).toExponential().split("e")[1]);o<=n&&s<t.length;)s++,o=t[s];s>0&&(r=t[s-1]),r&&n>0&&r>0?i=r:(n<0&&r<0||!r)&&(o<0&&o-n<=u.maxPrecision?i=o:r<=n&&!(o>0&&-n<=u.maxPrecision)&&(i=r)),i&&(d=this.abbreviations[i],e/=10**i)}if(r=Math.abs(e),t=u.temp,l=u.numericPattern,c=l.split(o)[1],"I"===this.type&&(e=Math.round(e)),i=e,c||"#"!==l.slice(-1)[0])if(r>=1e15||r>0&&r<=1e-14)e=r?r.toExponential(15).replace(/\.?0+(?=e)/,""):"0";else{const t=Number((e+1e-15*(e<0?-1:1)).toFixed(Math.min(20,c?c.length:0)).split(".")[0]);let n=l.split(o)[0];if(n+=o,e=km(n,t)||"0",c){const t=Math.max(0,Math.min(14,c.length)),n=c.replace(/#+$/,"").length;let i=("I"===this.type?0:r%1+1e-15).toFixed(t).slice(2).replace(/0+$/,"");for(s=i.length;s<n;s++)i+="0";i&&(e+=o+i)}else 0===t&&(i=0)}else if(r>=10**t||r<1||r<1e-4)0===e?e="0":r<1e-4||r>=1e20?(e=(e=i.toExponential(Math.max(1,Math.min(14,t))-1)).replace(/\.?0+(?=e)/,""),f=""):(e=e.toPrecision(Math.max(1,Math.min(14,t)))).indexOf(".")>=0&&(e=(e=e.replace(e.indexOf("e")<0?/0+$/:/\.?0+(?=e)/,"")).replace(".",o));else{for(l+=o,t=Math.max(0,Math.min(20,t-Math.ceil(Math.log(r)/Math.log(10)))),s=0;s<t;s++)l+="#";e=km(l,e)}e=e.replace(u.numericRegex,(e=>e===a?u.groupTemp:e===o?u.decTemp:"")),i<0&&!/^-/.test(e)&&(e="-".concat(e))}return u.prefix+e+f+d+u.postfix}static getStaticFormatter(){return{prepare(){},formatValue:e=>"".concat(e)}}}function Fm(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{size:n=5e3,multipleArguments:r=!1,toKey:i=(e=>e)}=t;let o,a,s=Object.create(null),l=Object.create(null),c=0,u=0;return o=r?function(){return a=i(...arguments),o.has(a)?o.get(a):o.set(a,e(...arguments))}:t=>(a=i(t),o.has(a)?o.get(a):o.set(a,e(t))),o.set=(e,t)=>(c>=n&&(delete s[l[u]],delete l[u],c--,u++),s[e]=t,l[c]=e,c++,t),o.get=e=>s[e],o.has=e=>e in s,o.clear=()=>{s=Object.create(null),l=Object.create(null),c=0,u=0},o.size=()=>c,o}function jm(e,t,n,r,i){const o=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new zm(...t)}(i,e,t,n,r),a=Fm(o.formatValue.bind(o),{toKey:e=>isNaN(e)?e:+e});function s(e){return a(e)}return s.format=function(e,t,n,r){return a.clear(),o.format(t,e,n,r)},s.pattern=function(e){return e&&(a.clear(),o.pattern=e,o.prepare()),o.pattern},s}const $m={AUTO:"U",INTEGER:"I",NUMBER:"R",FIXED_TO:"F",MONEY:"M",DATE:"D",TIME:"T",DATE_TIME:"TS",INTERVAL:"IV"},Hm=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Vm=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Bm=["January","February","March","April","May","June","July","August","September","October","November","December"],Um=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Wm(e,t){for(let n=e.length;n<t;n++)e="0".concat(e);return e}function Ym(e){let t=e.toString().split(".");return t[1]?(t=Number("0.".concat(t[1])),t):0}function Km(e,t){let n,r=function(e){const t=e,n=24*Ym(t),r=60*Ym(n),i=60*Ym(r),o=1e3*Ym(i);return{d:Math.floor(t),h:Math.floor(n),m:Math.floor(r),s:Math.floor(i),f:Math.round(o)}}(e),i=r.d,o=r.h,a=r.m,s=r.s,l=r.f,c=0;/w+|t+/gi.test(t)&&(n=new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,Math.round(86400*(e-Math.floor(e))))),isNaN(n.getTime())&&(n=null)),/D+/gi.test(t)||(o+=24*i),/h+/gi.test(t)||(a+=60*o),/m+/gi.test(t)||(s+=60*a),/w+/gi.test(t)&&(c=n?n.getDay()-1:0,c<0&&(c=6));let u="";return n&&(u=n.getUTCHours()>=12?"pm":"am"),{year:0,month:0,day:c,date:i,h:o,m:a,s:s,f:l,t:u}}class Gm{constructor(e,t,n){const r=e||{};if(r.qCalendarStrings||(r.qCalendarStrings={qLongDayNames:Hm,qDayNames:Vm,qLongMonthNames:Bm,qMonthNames:Um}),this.localeInfo=r,this.locale_days=r.qCalendarStrings.qLongDayNames.slice(),this.locale_days_abbr=r.qCalendarStrings.qDayNames.slice(),this.locale_months=r.qCalendarStrings.qLongMonthNames.slice(),this.locale_months_abbr=r.qCalendarStrings.qMonthNames.slice(),!t){t={[$m.TIME]:r.qTimeFmt||"hh:mm:ss",[$m.DATE]:r.qDateFmt||"YYYY-MM-DD",[$m.DATE_TIME]:r.qTimestampFmt||"YYYY-MM-DD hh:mm:ss"}[n]}this.pattern=t}clone(){const e=new Gm(this.localeInfo,this.pattern);return e.subtype=this.subtype,e}format(e,t){t||(t=this.pattern?this.pattern:"YYYY-MM-DD hh:mm:ss"),t=t.replace(/\[.+]|\[|]/g,"");const n=/t+/gi.test(t);let r;e instanceof Date?r=function(e,t){let n=e.getUTCHours(),r=e.getUTCDay()-1;return t&&(n%=12,n||(n=12)),r<0&&(r=6),{year:e.getUTCFullYear(),month:e.getUTCMonth(),day:r,date:e.getUTCDate(),h:n,m:e.getUTCMinutes(),s:e.getUTCSeconds(),f:e.getUTCMilliseconds(),t:e.getUTCHours()>=12?"pm":"am"}}(e,n):(e<0&&(e=-e,t="-".concat(t)),r=Km(e,t));const i=function(e,t){return{"Y+|y+":{Y:"".concat(Number("".concat(t.year).slice(-2))),YY:Wm("".concat(t.year).slice(-2),2),YYY:Wm("".concat(t.year).slice(-3),3),def:e=>Wm("".concat(t.year),e.length)},"M+":{M:t.month+1,MM:Wm("".concat(t.month+1),2),MMM:e.locale_months_abbr[t.month],def:e.locale_months[t.month]},"W+|w+":{W:t.day,WW:Wm("".concat(t.day),2),WWW:e.locale_days_abbr[t.day],def:e.locale_days[t.day]},"D+|d+":{D:t.date,def:e=>Wm("".concat(t.date),e.length)},"h+|H+":{h:t.h,def:e=>Wm("".concat(t.h),e.length)},"m+":{m:t.m,def:e=>Wm("".concat(t.m),e.length)},"s+|S+":{s:t.s,def:e=>Wm("".concat(t.s),e.length)},"f+|F+":{def(e){let n="".concat(t.f),r=e.length-n.length;if(r>0)for(let e=0;e<r;e++)n+="0";else r<0&&(n=n.slice(0,e.length));return n}},"t{1,2}|T{1,2}":{def(e){let n=t.t;return e[0].toUpperCase()===e[0]&&(n=n.toUpperCase()),n=n.slice(0,e.length),n}}}}(this,r),o=[];for(const e in i)Object.prototype.hasOwnProperty.call(i,e)&&o.push(e);const a=new RegExp(o.join("|"),"g"),s=t.replace(a,(e=>{let t,n,r;for(n in i)if(Object.prototype.hasOwnProperty.call(i,n)&&(t=new RegExp(n),t.test(e)))break;if(!t)return"";for(const t in i[n])if(t===e||t.toLowerCase()===e){r=i[n][t],void 0===r&&(r=i[n][t.toLowerCase()]);break}return void 0===r&&(r=i[n].def),"function"==typeof r&&(r=r(e)),r}));return s}}function Xm(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Gm(...t)}const Zm=864e5;function Jm(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"TS",n=Xm(arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,e,t),r=Fm(n.format.bind(n),{toKey:e=>"object"==typeof e&&"function"==typeof e.getTime?e.getTime():e});function i(e){return t!==$m.INTERVAL?function(e){return new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,0,Math.round(Zm*(e-Math.floor(e)))))}(e):e}function o(e){return e=i(e),r(e)}return o.format=function(e,t){return r.clear(),t=i(t),n.format(t,e)},o.locale=function(i){return n=Xm(i,e,t),r=Fm(n.format.bind(n),{toKey:e=>"object"==typeof e?e.getTime():e}),this},o.qtype=function(e){return void 0!==e&&(t=e,r.clear()),t},o}function Qm(e,t){if(e&&e.qNumFormat&&-1!==["D","T","TS","IV"].indexOf(e.qNumFormat.qType))return Jm(e.qNumFormat.qFmt,e.qNumFormat.qType,t);let n="#",r=t&&void 0!==t.qThousandSep?t.qThousandSep:",",i=t&&void 0!==t.qDecimalSep?t.qDecimalSep:".",o="U",a=e&&!!e.qIsAutoFormat;return e&&e.qNumFormat?(n=e.qNumFormat.qFmt||n,r=e.qNumFormat.qThou||r,i=e.qNumFormat.qDec||i,o=e.qNumFormat.qType||o,a=a&&-1===["M"].indexOf(e.qNumFormat.qType)):a=!0,(a||"U"===o)&&(n="#".concat(i,"##"),o="U"),jm(n,r,i,o,t)}function eg(){let e,{meta:t,id:n,key:r,localeInfo:i,fieldExtractor:o,value:a,type:s,sourceField:l}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const c=a||("dimension"===s?e=>null==e?void 0:e.qElemNo:e=>null==e?void 0:e.qValue),u="dimension"===s?"first":"avg",d=Qm(t,i),f="dimension"===s?"first":(e,t)=>d(t),h={id:()=>n,key:()=>r,raw:()=>t,title:()=>t.qFallbackTitle||t.label,type:()=>s,origin:()=>l,items:()=>(e||(e=o(h)),e),min:()=>t.qMin,max:()=>t.qMax,value:c,label:e=>(null==e?void 0:e.qText)||"",reduce:u,reduceLabel:f,formatter:()=>d,tags:()=>t.qTags};return h}function tg(e,t,n,r,i){return(t[e]||[]).map(((t,o)=>{const a="".concat(r?"".concat(r,"/"):"").concat(e,"/").concat(o),s={instance:eg(Fp({id:"".concat(n?"".concat(n,"/"):"").concat(a),key:a,meta:t},i))};return s.attrDims=tg("qAttrDimInfo",t,n,a,Fp({},i,{value:e=>null==e?void 0:e.qElemNo,type:"dimension"})),s.attrExps=tg("qAttrExprInfo",t,n,a,Fp({},i,{value:e=>null==e?void 0:e.qNum,type:"measure"})),s.measures=tg("qMeasureInfo",t,n,a,Fp({},i,{value:e=>null==e?void 0:e.qValue,type:"measure"})),s}))}function ng(){let{key:e,data:t,config:n={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r={fields:[],wrappedFields:[],allFields:[],virtualFields:[]},i=t;if(!i)throw new Error('Missing "data" input');if(!i.qDimensionInfo)throw new Error('The "data" input is not recognized as a hypercube');const o=ng.util,a={cache:r,cube:i,localeInfo:n.localeInfo,fieldExtractor:null,pages:null,hierarchy:()=>null,virtualFields:n.virtualFields},s={key:()=>e,raw:()=>i,field:e=>function(e,t){let{cache:n}=t;if("number"==typeof e)return n.fields[e];const r=n.allFields;if("function"==typeof e){for(let t=0;t<r.length;t++)if(e(r[t]))return r[t];return!1}if("string"==typeof e){for(let t=0;t<r.length;t++)if(r[t].key()===e||r[t].title()===e)return r[t]}else if(e&&-1!==r.indexOf(e))return e;throw Error("Field not found: ".concat(e))}(e,a),fields:()=>r.fields.slice(),extract:e=>a.extractor(e,s,r,o),hierarchy:e=>a.hierarchy(e,s,r,o),_cache:()=>r};"K"===i.qMode||"T"===i.qMode||!i.qMode&&i.qNodesOnDim?(a.extractor=wm,a.hierarchy=xm,a.pages="K"===i.qMode?i.qStackedDataPages:i.qTreeDataPages):"S"===i.qMode?(a.extractor=Vp,a.pages=i.qDataPages,a.hierarchy=xm):a.extractor=()=>[],a.fieldExtractor=e=>a.extractor({field:e},s,r,o);const l="S"===i.qMode?e=>e.qElemNumber:void 0,c="S"===i.qMode?e=>e.qNum:void 0;r.wrappedFields.push(...tg("qDimensionInfo",i,e,"",Fp({},a,{value:l,type:"dimension"}))),r.wrappedFields.push(...tg("qMeasureInfo",i,e,"",Fp({},a,{value:c,type:"measure"}))),r.fields=r.wrappedFields.map((e=>e.instance));const u=e=>{e.forEach((e=>{r.allFields.push(e.instance),u(e.measures),u(e.attrDims),u(e.attrExps)}))};return u(r.wrappedFields),(n.virtualFields||[]).forEach((t=>{const n=s.field(t.from),i=eg(Tp({meta:n.raw(),id:"".concat(e,"/").concat(t.key),sourceField:n,fieldExtractor:e=>a.extractor({field:e},s,r,o),key:t.key,type:n.type(),localeInfo:a.localeInfo,value:n.value},t.override||{}));r.virtualFields.push(i)})),r.allFields.push(...r.virtualFields),s}const rg=[["qHyperCube","qHyperCubeDef"],["qTreeData","qTreeDataDef"],["qDimensionInfo","qDimensions"],["qMeasureInfo","qMeasures"],["qAttrDimInfo","qAttributeDimensions"],["qAttrExprInfo","qAttributeExpressions"]],ig=/\/qDimensionInfo(?:\/(\d+))?/,og=/\/qMeasureInfo\/(\d+)/,ag=/\/qAttrDimInfo\/(\d+)(?:\/(\d+))?/,sg=/\/qAttrExprInfo\/(\d+)/,lg=/\/?qHyperCube/,cg=/\/?qTreeData/,ug=e=>"".concat(e.substr(0,e.indexOf("/qHyperCubeDef")+14)),dg=e=>"".concat(e.substr(0,e.indexOf("/qTreeDataDef")+13));function fg(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r=t.byCells,i=t.primarySource,o=[],a={},s=e.isActive();let l=!1;if(e.brushes().forEach((e=>{const t=function(e,t){let n=e,r=-1,i=-1,o="",a=e=>e;lg.test(e)?(o="".concat(n.substr(0,n.indexOf("qHyperCube")+10)),a=ug):cg.test(e)&&(o="".concat(n.substr(0,n.indexOf("qTreeData")+9)),a=dg);let s=!0;if(ig.test(e)&&(r=+ig.exec(e)[1]),og.test(e)&&(i=+og.exec(e)[1]),ag.test(e)){i=-1,r=0;const e=+ag.exec(n)[2];isNaN(e)||(r=e,n=n.replace(/\/\d+$/,"")),s=!1}if(sg.test(e)){const e=i;if(t){i=0;const a=am(o,t);i+=(a.qMeasureInfo||[]).length,r>-1?(i=a.qDimensionInfo.slice(0,r).reduce(((e,t)=>e+t.qAttrExprInfo.length),i),r=-1):(i=a.qDimensionInfo.reduce(((e,t)=>e+t.qAttrExprInfo.length),i),i=a.qMeasureInfo.slice(0,e).reduce(((e,t)=>e+t.qAttrExprInfo.length),i)),i+=+sg.exec(n)[1]}else r>-1?(r=-1,i=+sg.exec(n)[1]):i+=+sg.exec(n)[1]+1}return rg.forEach((e=>{let[t,r]=e;n=n.replace(t,r)})),s&&(n=a(n)),n&&"/"!==n[0]&&(n="/".concat(n)),{measureIdx:i,dimensionIdx:r,path:n}}(e.id,n);if("range"===e.type&&t.measureIdx>-1&&t.dimensionIdx>-1){const n=e.brush.ranges();n.length&&(l=!0,a.multiRangeSelectTreeDataValues||(a.multiRangeSelectTreeDataValues={path:t.path,ranges:[]}),n.forEach((e=>a.multiRangeSelectTreeDataValues.ranges.push({qMeasureIx:t.measureIdx,qDimensionIx:t.dimensionIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!0}}))))}else{if("range"===e.type&&t.measureIdx>-1){const n=e.brush.ranges();n.length&&(l=!0,a.rangeSelectHyperCubeValues||(a.rangeSelectHyperCubeValues={path:t.path,ranges:[]}),n.forEach((e=>a.rangeSelectHyperCubeValues.ranges.push({qMeasureIx:t.measureIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!0}}))))}if("range"===e.type&&t.dimensionIdx>-1){const n=e.brush.ranges();n.length&&(l=!0,a.selectHyperCubeContinuousRange||(a.selectHyperCubeContinuousRange={path:t.path,ranges:[]}),n.forEach((e=>a.selectHyperCubeContinuousRange.ranges.push({qDimIx:t.dimensionIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!1}}))))}if("value"===e.type&&t.dimensionIdx>-1)if(r)if(n&&n.qHyperCube&&("P"===n.qHyperCube.qMode||"T"===n.qHyperCube.qMode||"K"===n.qHyperCube.qMode)){const r=n.qHyperCube,o=r.qNoOfLeftDims,s=r.qEffectiveInterColumnSortOrder.indexOf(t.dimensionIdx);if(a.selectPivotCells||(a.selectPivotCells={path:t.path,cells:[]}),e.id===i||!i){const n=e.brush.values().map((e=>+e)).filter((e=>!isNaN(e)));(0===o||s>=o)&&o>-1?n.forEach((e=>{a.selectPivotCells.cells.push({qType:"T",qCol:e,qRow:s-o})})):n.forEach((e=>{a.selectPivotCells.cells.push({qType:"L",qCol:t.dimensionIdx,qRow:e})})),l=!!a.selectPivotCells.cells.length}}else a.selectHyperCubeCells||(a.selectHyperCubeCells={path:t.path,cols:[]}),a.selectHyperCubeCells.cols.push(t.dimensionIdx),e.id!==i&&(i||a.selectHyperCubeCells.values)||(a.selectHyperCubeCells.values=e.brush.values().map((e=>+e)).filter((e=>!isNaN(e))),l=!!a.selectHyperCubeCells.values.length);else{const n=e.brush.values().map((e=>+e)).filter((e=>!isNaN(e)));l=!!n.length,o.push({params:[t.path,t.dimensionIdx,n,!1],method:"selectHyperCubeValues"})}}})),!l&&s)return[{method:"resetMadeSelections",params:[]}];var c;a.rangeSelectHyperCubeValues&&o.push({method:"rangeSelectHyperCubeValues",params:[a.rangeSelectHyperCubeValues.path,a.rangeSelectHyperCubeValues.ranges,[],null===(c=t.orMode)||void 0===c||c]});return a.selectHyperCubeContinuousRange&&o.push({method:"selectHyperCubeContinuousRange",params:[a.selectHyperCubeContinuousRange.path,a.selectHyperCubeContinuousRange.ranges]}),a.selectHyperCubeCells&&o.push({method:"selectHyperCubeCells",params:[a.selectHyperCubeCells.path,a.selectHyperCubeCells.values,a.selectHyperCubeCells.cols]}),a.selectPivotCells&&o.push({method:"selectPivotCells",params:[a.selectPivotCells.path,a.selectPivotCells.cells]}),a.multiRangeSelectTreeDataValues&&o.push({method:"multiRangeSelectTreeDataValues",params:[a.multiRangeSelectTreeDataValues.path,a.multiRangeSelectTreeDataValues.ranges]}),o}function hg(e){ng.util=e.data("matrix").util,e.data("q",ng),e.formatter("q-number",jm),e.formatter("q-time",Jm)}hg.qBrushHelper=fg,hg.selections=fg;const pg={click:"Tap",Click:"Tap",tap:"Tap",pan:"Pan",swipe:"Swipe",rotate:"Rotate",press:"Press",pinch:"Pinch"};function mg(e){return pg[e]||e}function gg(e){return function(t,n,r){let i,o,a,s,l=[],c=!0;function u(){"function"==typeof i.enable&&(i.enable=i.enable.bind(o)()),i.enable&&(i.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(o));const n=mg(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(o),a.on(e,t.events[e])})),l.push(t))})),i.gestures.forEach((t=>{const n=mg(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,i=e,o={chart:t,mediator:n,settings:i},i.gestures=i.gestures||[],void 0===i.enable&&(i.enable=!0)}(e),d(),c&&u()},off(){c=!1,d()},on(){c=!0,0===l.length&&u()},destroy(){d(),a&&a.destroy(),a=null,o=null,i=null}}}}var yg=Object.prototype.hasOwnProperty,vg=Object.prototype.toString,bg=Object.defineProperty,xg=Object.getOwnPropertyDescriptor,wg=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===vg.call(e)},kg=function(e){if(!e||"[object Object]"!==vg.call(e))return!1;var t,n=yg.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&yg.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||yg.call(e,t)},Sg=function(e,t){bg&&"__proto__"===t.name?bg(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Cg=function(e,t){if("__proto__"===t){if(!yg.call(e,t))return;if(xg)return xg(e,t).value}return e[t]},Mg=function e(){var t,n,r,i,o,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=Cg(s,n),s!==(i=Cg(t,n))&&(u&&i&&(kg(i)||(o=wg(i)))?(o?(o=!1,a=r&&wg(r)?r:[]):a=r&&kg(r)?r:{},Sg(s,{name:n,newValue:e(u,a,i)})):void 0!==i&&Sg(s,{name:n,newValue:i}));return s},Eg=r(Mg);const _g=[["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}]],Dg={};_g.forEach((([e,{width:t,height:n}])=>{Dg[e]={width:t,height:n}}));const qg={getLayoutModes:()=>Dg,getLayoutMode(e,t){let n;for(n=0;n<_g.length;++n)if(e>=_g[n][1].width&&t>=_g[n][1].height)return _g[n][0];return"SPARK"}};function Tg(e,t){return{layoutModes:qg.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 Rg=/^[A-Z][A-z0-9_]*$/i,Ng={setValue:(e,t,n)=>{if(!t)return!1;const r=t.split("."),i=r[r.length-1];let o,a=e;for(o=0;o<r.length-1;++o)void 0===a[r[o]]&&(a[r[o]]=Number.isNaN(+r[o+1])?{}:[]),a=a[r[o]];if(void 0!==n){const e=a[i];return a[i]=n,{updated:n,previous:e}}return delete a[i],!1},getValue:(e,t,n)=>{const r=t.split(".");let i,o=e;if(void 0===o)return n;for(i=0;i<r.length;++i){if(void 0===o[r[i]])return n;o=o[r[i]]}return o},moveArrayElement:(e,t,n)=>{if(n>=e.length){let t=n-e.length;for(;1+t--;)e.push(void 0)}e.splice(n,0,e.splice(t,1)[0])},escapeField:e=>{let t;return t=!e||"]"===e||Rg.test(e)?e:`[${e.replace(/\]/g,"]]")}]`,t},deleteUndefinedProperties:e=>{Object.keys(e).forEach((t=>{void 0===e[t]&&delete e[t]}))},shouldUseFormat:e=>!e.isCustomFormatted&&(e.qIsAutoFormat||"U"===e.qNumFormat.qType)};function Og(e,t){const n=e.component(t);return n&&n._DO_NOT_USE_getInfo&&n._DO_NOT_USE_getInfo().offset}const Ag=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),Pg=new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞יִײַ-ﬨשׁ-ﭏ]"),Ig=new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]"),Lg={lrm:String.fromCharCode(8206),rlm:String.fromCharCode(8207),isLtrChar:e=>Ag.test(e),isRtlChar:e=>Pg.test(e)||Ig.test(e),detectTextDirection(e){const t=e?e.length:0;let n,r;for(n=0;n<t;n++){if(r=e[n],Lg.isLtrChar(r))return"ltr";if(Lg.isRtlChar(r))return"rtl"}return"ltr"}},zg={getColorSymbol:(e,t)=>e.h("div",{style:{display:"inline-block",width:"10px",height:"10px","background-color":t.color.fill,margin:"0 8px"}}),getNodeFillColor:e=>e.attrs&&void 0!==e.attrs.fill?e.attrs.fill:e.children&&e.children[0]&&e.children[0].attrs&&void 0!==e.children[0].attrs.fill?e.children[0].attrs.fill:void 0,getColor(e,t,n){const r=t.data,i=e.resources.formatter,o=e.resources.dataset,a={};if(n.coloring.label&&(a.label=`${n.coloring.label}`),"color"!==n.coloring.type&&r.fillTooltip){const e=i("fill"),t="measure"===n.coloring.fieldType;if(a.value=t&&e?e(r.fillTooltip.value):r.fillTooltip.label?r.fillTooltip.label:r.fillTooltip.value,!n.coloring.label){const e=o(r.fillTooltip.source.key).field(r.fillTooltip.source.field).title();a.label=`${e}`}}return a.fill=void 0===r._fillColor?zg.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=Lg.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=Lg.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:Lg.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=Lg.detectTextDirection(t.color.label),i=n?[":",t.color.label]:[t.color.label,":"],o=Lg.detectTextDirection(t.color.value);return[{content:i,style:{"text-align":n?"right":"left",direction:r}},{content:n?[t.color.value,zg.getColorSymbol(e,t)]:[zg.getColorSymbol(e,t),t.color.value],style:{"text-align":n?"left":"right",direction:o,"vertical-align":"middle"}}]},getMeasureRow(e,t,n,r,i=!1){const o=Lg.detectTextDirection(e.label),a=r?[":",e.label]:[e.label,":"],s=Lg.detectTextDirection(e.value);let l;return l=i?r?[e.value,zg.getColorSymbol(t,n)]:[zg.getColorSymbol(t,n),e.value]:[e.value],[{content:a,style:{"text-align":r?"right":"left",direction:o}},{content:l,style:{"text-align":r?"left":"right",direction:s,"vertical-align":"middle"}}]}};function Fg(e){const t=parseInt(e,10);if(!isNaN(t))return t}const jg=e=>t=>e.getContrastingColorTo(t.node.attrs.fill);function $g(e,t){const n=e.styleService.label.value.getStyle();return{padding:10,placements:e.simplifiedPlacements.map((n=>function(e,t,n){const r=n.themeService.getStyles(),i=n.styleService.label.value.getStyle(),o=i.fill===r.label.value.color;return{position:e.position,justify:e.justify,fill:o&&!e.onBackground?jg(t):i.fill,overflow:e.overflow,padding:e.padding}}(n,t,e))),fontSize:Fg(n.fontSize),fontFamily:n.fontFamily,label:e.label}}function Hg(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Vg(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Bg(){}var Ug=.7,Wg=1/Ug,Yg="\\s*([+-]?\\d+)\\s*",Kg="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Gg="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Xg=/^#([0-9a-f]{3,8})$/,Zg=new RegExp(`^rgb\\(${Yg},${Yg},${Yg}\\)$`),Jg=new RegExp(`^rgb\\(${Gg},${Gg},${Gg}\\)$`),Qg=new RegExp(`^rgba\\(${Yg},${Yg},${Yg},${Kg}\\)$`),ey=new RegExp(`^rgba\\(${Gg},${Gg},${Gg},${Kg}\\)$`),ty=new RegExp(`^hsl\\(${Kg},${Gg},${Gg}\\)$`),ny=new RegExp(`^hsla\\(${Kg},${Gg},${Gg},${Kg}\\)$`),ry={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 iy(){return this.rgb().formatHex()}function oy(){return this.rgb().formatRgb()}function ay(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Xg.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?sy(t):3===n?new uy(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?ly(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?ly(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=Zg.exec(e))?new uy(t[1],t[2],t[3],1):(t=Jg.exec(e))?new uy(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Qg.exec(e))?ly(t[1],t[2],t[3],t[4]):(t=ey.exec(e))?ly(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ty.exec(e))?gy(t[1],t[2]/100,t[3]/100,1):(t=ny.exec(e))?gy(t[1],t[2]/100,t[3]/100,t[4]):ry.hasOwnProperty(e)?sy(ry[e]):"transparent"===e?new uy(NaN,NaN,NaN,0):null}function sy(e){return new uy(e>>16&255,e>>8&255,255&e,1)}function ly(e,t,n,r){return r<=0&&(e=t=n=NaN),new uy(e,t,n,r)}function cy(e){return e instanceof Bg||(e=ay(e)),e?new uy((e=e.rgb()).r,e.g,e.b,e.opacity):new uy}function uy(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function dy(){return`#${my(this.r)}${my(this.g)}${my(this.b)}`}function fy(){const e=hy(this.opacity);return`${1===e?"rgb(":"rgba("}${py(this.r)}, ${py(this.g)}, ${py(this.b)}${1===e?")":`, ${e})`}`}function hy(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function py(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function my(e){return((e=py(e))<16?"0":"")+e.toString(16)}function gy(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new vy(e,t,n,r)}function yy(e){if(e instanceof vy)return new vy(e.h,e.s,e.l,e.opacity);if(e instanceof Bg||(e=ay(e)),!e)return new vy;if(e instanceof vy)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new vy(a,s,l,e.opacity)}function vy(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function by(e){return(e=(e||0)%360)<0?e+360:e}function xy(e){return Math.max(0,Math.min(1,e||0))}function wy(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Hg(Bg,ay,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:iy,formatHex:iy,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return yy(this).formatHsl()},formatRgb:oy,toString:oy}),Hg(uy,(function(e,t,n,r){return 1===arguments.length?cy(e):new uy(e,t,n,null==r?1:r)}),Vg(Bg,{brighter(e){return e=null==e?Wg:Math.pow(Wg,e),new uy(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Ug:Math.pow(Ug,e),new uy(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new uy(py(this.r),py(this.g),py(this.b),hy(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:dy,formatHex:dy,formatHex8:function(){return`#${my(this.r)}${my(this.g)}${my(this.b)}${my(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:fy,toString:fy})),Hg(vy,(function(e,t,n,r){return 1===arguments.length?yy(e):new vy(e,t,n,null==r?1:r)}),Vg(Bg,{brighter(e){return e=null==e?Wg:Math.pow(Wg,e),new vy(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Ug:Math.pow(Ug,e),new vy(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new uy(wy(e>=240?e-240:e+120,i,r),wy(e,i,r),wy(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new vy(by(this.h),xy(this.s),xy(this.l),hy(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=hy(this.opacity);return`${1===e?"hsl(":"hsla("}${by(this.h)}, ${100*xy(this.s)}%, ${100*xy(this.l)}%${1===e?")":`, ${e})`}`}}));const ky=Math.PI/180,Sy=180/Math.PI,Cy=.96422,My=1,Ey=.82521,_y=4/29,Dy=6/29,qy=3*Dy*Dy,Ty=Dy*Dy*Dy;function Ry(e){if(e instanceof Ny)return new Ny(e.l,e.a,e.b,e.opacity);if(e instanceof zy)return Fy(e);e instanceof uy||(e=cy(e));var t,n,r=Iy(e.r),i=Iy(e.g),o=Iy(e.b),a=Oy((.2225045*r+.7168786*i+.0606169*o)/My);return r===i&&i===o?t=n=a:(t=Oy((.4360747*r+.3850649*i+.1430804*o)/Cy),n=Oy((.0139322*r+.0971045*i+.7141733*o)/Ey)),new Ny(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Ny(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Oy(e){return e>Ty?Math.pow(e,1/3):e/qy+_y}function Ay(e){return e>Dy?e*e*e:qy*(e-_y)}function Py(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Iy(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Ly(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof zy)return new zy(e.h,e.c,e.l,e.opacity);if(e instanceof Ny||(e=Ry(e)),0===e.a&&0===e.b)return new zy(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Sy;return new zy(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new zy(e,t,n,null==r?1:r)}function zy(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Fy(e){if(isNaN(e.h))return new Ny(e.l,0,0,e.opacity);var t=e.h*ky;return new Ny(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}function jy(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}Hg(Ny,(function(e,t,n,r){return 1===arguments.length?Ry(e):new Ny(e,t,n,null==r?1:r)}),Vg(Bg,{brighter(e){return new Ny(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Ny(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 uy(Py(3.1338561*(t=Cy*Ay(t))-1.6168667*(e=My*Ay(e))-.4906146*(n=Ey*Ay(n))),Py(-.9787684*t+1.9161415*e+.033454*n),Py(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Hg(zy,Ly,Vg(Bg,{brighter(e){return new zy(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new zy(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Fy(this).rgb()}})),function(e){1===e.length&&(e=function(e){return function(t,n){return jy(e(t),n)}}(e))}(jy);var $y="$";function Hy(){}function Vy(e,t){var n=new Hy;if(e instanceof Hy)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var r,i=-1,o=e.length;if(null==t)for(;++i<o;)n.set(i,e[i]);else for(;++i<o;)n.set(t(r=e[i],i,e),r)}else if(e)for(var a in e)n.set(a,e[a]);return n}function By(){}Hy.prototype=Vy.prototype={constructor:Hy,has:function(e){return $y+e in this},get:function(e){return this[$y+e]},set:function(e,t){return this[$y+e]=t,this},remove:function(e){var t=$y+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===$y&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===$y&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===$y&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===$y&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===$y&&++e;return e},empty:function(){for(var e in this)if(e[0]===$y)return!1;return!0},each:function(e){for(var t in this)t[0]===$y&&e(this[t],t.slice(1),this)}};var Uy=Vy.prototype;function Wy(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Yy(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Ky(){}By.prototype={constructor:By,has:Uy.has,add:function(e){return this[$y+(e+="")]=e,this},remove:Uy.remove,clear:Uy.clear,values:Uy.keys,size:Uy.size,empty:Uy.empty,each:Uy.each};var Gy=.7,Xy=1/Gy,Zy="\\s*([+-]?\\d+)\\s*",Jy="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Qy="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ev=/^#([0-9a-f]{3})$/,tv=/^#([0-9a-f]{6})$/,nv=new RegExp("^rgb\\("+[Zy,Zy,Zy]+"\\)$"),rv=new RegExp("^rgb\\("+[Qy,Qy,Qy]+"\\)$"),iv=new RegExp("^rgba\\("+[Zy,Zy,Zy,Jy]+"\\)$"),ov=new RegExp("^rgba\\("+[Qy,Qy,Qy,Jy]+"\\)$"),av=new RegExp("^hsl\\("+[Jy,Qy,Qy]+"\\)$"),sv=new RegExp("^hsla\\("+[Jy,Qy,Qy,Jy]+"\\)$"),lv={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 cv(e){var t;return e=(e+"").trim().toLowerCase(),(t=ev.exec(e))?new pv((t=parseInt(t[1],16))>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):(t=tv.exec(e))?uv(parseInt(t[1],16)):(t=nv.exec(e))?new pv(t[1],t[2],t[3],1):(t=rv.exec(e))?new pv(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=iv.exec(e))?dv(t[1],t[2],t[3],t[4]):(t=ov.exec(e))?dv(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=av.exec(e))?gv(t[1],t[2]/100,t[3]/100,1):(t=sv.exec(e))?gv(t[1],t[2]/100,t[3]/100,t[4]):lv.hasOwnProperty(e)?uv(lv[e]):"transparent"===e?new pv(NaN,NaN,NaN,0):null}function uv(e){return new pv(e>>16&255,e>>8&255,255&e,1)}function dv(e,t,n,r){return r<=0&&(e=t=n=NaN),new pv(e,t,n,r)}function fv(e){return e instanceof Ky||(e=cv(e)),e?new pv((e=e.rgb()).r,e.g,e.b,e.opacity):new pv}function hv(e,t,n,r){return 1===arguments.length?fv(e):new pv(e,t,n,null==r?1:r)}function pv(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function mv(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function gv(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new yv(e,t,n,r)}function yv(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function vv(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Wy(Ky,cv,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),Wy(pv,hv,Yy(Ky,{brighter:function(e){return e=null==e?Xy:Math.pow(Xy,e),new pv(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?Gy:Math.pow(Gy,e),new pv(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function(){return"#"+mv(this.r)+mv(this.g)+mv(this.b)},toString:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}})),Wy(yv,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof yv)return new yv(e.h,e.s,e.l,e.opacity);if(e instanceof Ky||(e=cv(e)),!e)return new yv;if(e instanceof yv)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new yv(a,s,l,e.opacity)}(e):new yv(e,t,n,null==r?1:r)}),Yy(Ky,{brighter:function(e){return e=null==e?Xy:Math.pow(Xy,e),new yv(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?Gy:Math.pow(Gy,e),new yv(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new pv(vv(e>=240?e-240:e+120,i,r),vv(e,i,r),vv(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var bv=Math.PI/180,xv=180/Math.PI,wv=.96422,kv=1,Sv=.82521,Cv=4/29,Mv=6/29,Ev=3*Mv*Mv,_v=Mv*Mv*Mv;function Dv(e){if(e instanceof qv)return new qv(e.l,e.a,e.b,e.opacity);if(e instanceof Av){if(isNaN(e.h))return new qv(e.l,0,0,e.opacity);var t=e.h*bv;return new qv(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}e instanceof pv||(e=fv(e));var n,r,i=Ov(e.r),o=Ov(e.g),a=Ov(e.b),s=Tv((.2225045*i+.7168786*o+.0606169*a)/kv);return i===o&&o===a?n=r=s:(n=Tv((.4360747*i+.3850649*o+.1430804*a)/wv),r=Tv((.0139322*i+.0971045*o+.7141733*a)/Sv)),new qv(116*s-16,500*(n-s),200*(s-r),e.opacity)}function qv(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Tv(e){return e>_v?Math.pow(e,1/3):e/Ev+Cv}function Rv(e){return e>Mv?e*e*e:Ev*(e-Cv)}function Nv(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Ov(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Av(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}Wy(qv,(function(e,t,n,r){return 1===arguments.length?Dv(e):new qv(e,t,n,null==r?1:r)}),Yy(Ky,{brighter:function(e){return new qv(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new qv(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new pv(Nv(3.1338561*(t=wv*Rv(t))-1.6168667*(e=kv*Rv(e))-.4906146*(n=Sv*Rv(n))),Nv(-.9787684*t+1.9161415*e+.033454*n),Nv(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Wy(Av,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Av)return new Av(e.h,e.c,e.l,e.opacity);if(e instanceof qv||(e=Dv(e)),0===e.a&&0===e.b)return new Av(NaN,0,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*xv;return new Av(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Av(e,t,n,null==r?1:r)}),Yy(Ky,{brighter:function(e){return new Av(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new Av(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return Dv(this).rgb()}}));var Pv=-.14861,Iv=1.78277,Lv=-.29227,zv=-.90649,Fv=1.97294,jv=Fv*zv,$v=Fv*Iv,Hv=Iv*Lv-zv*Pv;function Vv(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Bv)return new Bv(e.h,e.s,e.l,e.opacity);e instanceof pv||(e=fv(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(Hv*r+jv*t-$v*n)/(Hv+jv-$v),o=r-i,a=(Fv*(n-i)-Lv*o)/zv,s=Math.sqrt(a*a+o*o)/(Fv*i*(1-i)),l=s?Math.atan2(a,o)*xv-120:NaN;return new Bv(l<0?l+360:l,s,i,e.opacity)}(e):new Bv(e,t,n,null==r?1:r)}function Bv(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Uv(e){return function(){return e}}function Wv(e,t){return function(n){return e+n*t}}function Yv(e){return 1==(e=+e)?Kv: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):Uv(isNaN(t)?n:t)}}function Kv(e,t){var n=t-e;return n?Wv(e,n):Uv(isNaN(e)?t:e)}function Gv(e){return function t(n){function r(t,r){var i=e((t=Vv(t)).h,(r=Vv(r)).h),o=Kv(t.s,r.s),a=Kv(t.l,r.l),s=Kv(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=o(e),t.l=a(Math.pow(e,n)),t.opacity=s(e),t+""}}return n=+n,r.gamma=t,r}(1)}function Xv(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)]}Wy(Bv,Vv,Yy(Ky,{brighter:function(e){return e=null==e?Xy:Math.pow(Xy,e),new Bv(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?Gy:Math.pow(Gy,e),new Bv(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*bv,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new pv(255*(t+n*(Pv*r+Iv*i)),255*(t+n*(Lv*r+zv*i)),255*(t+n*(Fv*r)),this.opacity)}})),function e(t){var n=Yv(t);function r(e,t){var r=n((e=hv(e)).r,(t=hv(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=Kv(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1),Gv((function(e,t){var n=t-e;return n?Wv(e,n>180||n<-180?n-360*Math.round(n/360):n):Uv(isNaN(e)?t:e)})),Gv(Kv);var Zv,Jv=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Qv(e){return new eb(e)}function eb(e){if(!(t=Jv.exec(e)))throw new Error("invalid format: "+e);var t;this.fill=t[1]||" ",this.align=t[2]||">",this.sign=t[3]||"-",this.symbol=t[4]||"",this.zero=!!t[5],this.width=t[6]&&+t[6],this.comma=!!t[7],this.precision=t[8]&&+t[8].slice(1),this.trim=!!t[9],this.type=t[10]||""}function tb(e,t){var n=Xv(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}Qv.prototype=eb.prototype,eb.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var nb={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return tb(100*e,t)},r:tb,s:function(e,t){var n=Xv(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(Zv=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Xv(e,Math.max(0,t+o-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function rb(e){return e}var ib,ob=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function ab(e){var t,n,r=e.grouping&&e.thousands?(t=e.grouping,n=e.thousands,function(e,r){for(var i=e.length,o=[],a=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(e.substring(i-=s,i+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}):rb,i=e.currency,o=e.decimal,a=e.numerals?function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(e.numerals):rb,s=e.percent||"%";function l(e){var t=(e=Qv(e)).fill,n=e.align,l=e.sign,c=e.symbol,u=e.zero,d=e.width,f=e.comma,h=e.precision,p=e.trim,m=e.type;"n"===m?(f=!0,m="g"):nb[m]||(null==h&&(h=12),p=!0,m="g"),(u||"0"===t&&"="===n)&&(u=!0,t="0",n="=");var g="$"===c?i[0]:"#"===c&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",y="$"===c?i[1]:/[%p]/.test(m)?s:"",v=nb[m],b=/[defgprs%]/.test(m);function x(e){var i,s,c,x=g,w=y;if("c"===m)w=v(e)+w,e="";else{var k=(e=+e)<0;if(e=v(Math.abs(e),h),p&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(i>0){if(!+e[r])break e;i=0}}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),k&&0==+e&&(k=!1),x=(k?"("===l?l:"-":"-"===l||"("===l?"":l)+x,w=("s"===m?ob[8+Zv/3]:"")+w+(k&&"("===l?")":""),b)for(i=-1,s=e.length;++i<s;)if(48>(c=e.charCodeAt(i))||c>57){w=(46===c?o+e.slice(i+1):e.slice(i))+w,e=e.slice(0,i);break}}f&&!u&&(e=r(e,1/0));var S=x.length+e.length+w.length,C=S<d?new Array(d-S+1).join(t):"";switch(f&&u&&(e=r(C+e,C.length?d-w.length:1/0),C=""),n){case"<":e=x+e+w+C;break;case"=":e=x+C+e+w;break;case"^":e=C.slice(0,S=C.length>>1)+x+e+w+C.slice(S);break;default:e=C+x+e+w}return a(e)}return h=null==h?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,h)):Math.max(0,Math.min(20,h)),x.toString=function(){return e+""},x}return{format:l,formatPrefix:function(e,t){var n=l(((e=Qv(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(function(e){return(e=Xv(Math.abs(e)))?e[1]:NaN}(t)/3))),i=Math.pow(10,-r),o=ob[8+r/3];return function(e){return n(i*e)+o}}}}!function(e){ib=ab(e),ib.format,ib.formatPrefix}({decimal:".",thousands:",",grouping:[3],currency:["$",""]});var sb=new Date,lb=new Date;function cb(e,t,n,r){function i(t){return e(t=new Date(+t)),t}return i.floor=i,i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},i.range=function(n,r,o){var a,s=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return s;do{s.push(a=new Date(+n)),t(n,o),e(n)}while(a<n&&n<r);return s},i.filter=function(n){return cb((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(i.count=function(t,r){return sb.setTime(+t),lb.setTime(+r),e(sb),e(lb),Math.floor(n(sb,lb))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e==0}:function(t){return i.count(0,t)%e==0}):i:null}),i}var ub=cb((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));ub.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?cb((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):ub:null},ub.range;var db=1e3,fb=6e4,hb=36e5,pb=864e5,mb=6048e5,gb=cb((function(e){e.setTime(Math.floor(e/db)*db)}),(function(e,t){e.setTime(+e+t*db)}),(function(e,t){return(t-e)/db}),(function(e){return e.getUTCSeconds()}));gb.range;var yb=cb((function(e){e.setTime(Math.floor(e/fb)*fb)}),(function(e,t){e.setTime(+e+t*fb)}),(function(e,t){return(t-e)/fb}),(function(e){return e.getMinutes()}));yb.range;var vb=cb((function(e){var t=e.getTimezoneOffset()*fb%hb;t<0&&(t+=hb),e.setTime(Math.floor((+e-t)/hb)*hb+t)}),(function(e,t){e.setTime(+e+t*hb)}),(function(e,t){return(t-e)/hb}),(function(e){return e.getHours()}));vb.range;var bb=cb((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())*fb)/pb}),(function(e){return e.getDate()-1}));function xb(e){return cb((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())*fb)/mb}))}bb.range;var wb=xb(0),kb=xb(1),Sb=xb(2),Cb=xb(3),Mb=xb(4),Eb=xb(5),_b=xb(6);wb.range,kb.range,Sb.range,Cb.range,Mb.range,Eb.range,_b.range;var Db=cb((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()}));Db.range;var qb=cb((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()}));qb.every=function(e){return isFinite(e=Math.floor(e))&&e>0?cb((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},qb.range;var Tb=cb((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*fb)}),(function(e,t){return(t-e)/fb}),(function(e){return e.getUTCMinutes()}));Tb.range;var Rb=cb((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*hb)}),(function(e,t){return(t-e)/hb}),(function(e){return e.getUTCHours()}));Rb.range;var Nb=cb((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/pb}),(function(e){return e.getUTCDate()-1}));function Ob(e){return cb((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)/mb}))}Nb.range;var Ab=Ob(0),Pb=Ob(1),Ib=Ob(2),Lb=Ob(3),zb=Ob(4),Fb=Ob(5),jb=Ob(6);Ab.range,Pb.range,Ib.range,Lb.range,zb.range,Fb.range,jb.range;var $b=cb((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()}));$b.range;var Hb=cb((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 Vb(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 Bb(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 Ub(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}Hb.every=function(e){return isFinite(e=Math.floor(e))&&e>0?cb((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},Hb.range;var Wb,Yb,Kb,Gb={"-":"",_:" ",0:"0"},Xb=/^\s*\d+/,Zb=/^%/,Jb=/[\\^$*+?|[\]().{}]/g;function Qb(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function ex(e){return e.replace(Jb,"\\$&")}function tx(e){return new RegExp("^(?:"+e.map(ex).join("|")+")","i")}function nx(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function rx(e,t,n){var r=Xb.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function ix(e,t,n){var r=Xb.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function ox(e,t,n){var r=Xb.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function ax(e,t,n){var r=Xb.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function sx(e,t,n){var r=Xb.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function lx(e,t,n){var r=Xb.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function cx(e,t,n){var r=Xb.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function ux(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 dx(e,t,n){var r=Xb.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function fx(e,t,n){var r=Xb.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function hx(e,t,n){var r=Xb.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function px(e,t,n){var r=Xb.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function mx(e,t,n){var r=Xb.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function gx(e,t,n){var r=Xb.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function yx(e,t,n){var r=Xb.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function vx(e,t,n){var r=Xb.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function bx(e,t,n){var r=Zb.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function xx(e,t,n){var r=Xb.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function wx(e,t,n){var r=Xb.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function kx(e,t){return Qb(e.getDate(),t,2)}function Sx(e,t){return Qb(e.getHours(),t,2)}function Cx(e,t){return Qb(e.getHours()%12||12,t,2)}function Mx(e,t){return Qb(1+bb.count(qb(e),e),t,3)}function Ex(e,t){return Qb(e.getMilliseconds(),t,3)}function _x(e,t){return Ex(e,t)+"000"}function Dx(e,t){return Qb(e.getMonth()+1,t,2)}function qx(e,t){return Qb(e.getMinutes(),t,2)}function Tx(e,t){return Qb(e.getSeconds(),t,2)}function Rx(e){var t=e.getDay();return 0===t?7:t}function Nx(e,t){return Qb(wb.count(qb(e),e),t,2)}function Ox(e,t){var n=e.getDay();return e=n>=4||0===n?Mb(e):Mb.ceil(e),Qb(Mb.count(qb(e),e)+(4===qb(e).getDay()),t,2)}function Ax(e){return e.getDay()}function Px(e,t){return Qb(kb.count(qb(e),e),t,2)}function Ix(e,t){return Qb(e.getFullYear()%100,t,2)}function Lx(e,t){return Qb(e.getFullYear()%1e4,t,4)}function zx(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Qb(t/60|0,"0",2)+Qb(t%60,"0",2)}function Fx(e,t){return Qb(e.getUTCDate(),t,2)}function jx(e,t){return Qb(e.getUTCHours(),t,2)}function $x(e,t){return Qb(e.getUTCHours()%12||12,t,2)}function Hx(e,t){return Qb(1+Nb.count(Hb(e),e),t,3)}function Vx(e,t){return Qb(e.getUTCMilliseconds(),t,3)}function Bx(e,t){return Vx(e,t)+"000"}function Ux(e,t){return Qb(e.getUTCMonth()+1,t,2)}function Wx(e,t){return Qb(e.getUTCMinutes(),t,2)}function Yx(e,t){return Qb(e.getUTCSeconds(),t,2)}function Kx(e){var t=e.getUTCDay();return 0===t?7:t}function Gx(e,t){return Qb(Ab.count(Hb(e),e),t,2)}function Xx(e,t){var n=e.getUTCDay();return e=n>=4||0===n?zb(e):zb.ceil(e),Qb(zb.count(Hb(e),e)+(4===Hb(e).getUTCDay()),t,2)}function Zx(e){return e.getUTCDay()}function Jx(e,t){return Qb(Pb.count(Hb(e),e),t,2)}function Qx(e,t){return Qb(e.getUTCFullYear()%100,t,2)}function ew(e,t){return Qb(e.getUTCFullYear()%1e4,t,4)}function tw(){return"+0000"}function nw(){return"%"}function rw(e){return+e}function iw(e){return Math.floor(+e/1e3)}!function(e){Wb=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,c=tx(i),u=nx(i),d=tx(o),f=nx(o),h=tx(a),p=nx(a),m=tx(s),g=nx(s),y=tx(l),v=nx(l),b={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:kx,e:kx,f:_x,H:Sx,I:Cx,j:Mx,L:Ex,m:Dx,M:qx,p:function(e){return i[+(e.getHours()>=12)]},Q:rw,s:iw,S:Tx,u:Rx,U:Nx,V:Ox,w:Ax,W:Px,x:null,X:null,y:Ix,Y:Lx,Z:zx,"%":nw},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:Fx,e:Fx,f:Bx,H:jx,I:$x,j:Hx,L:Vx,m:Ux,M:Wx,p:function(e){return i[+(e.getUTCHours()>=12)]},Q:rw,s:iw,S:Yx,u:Kx,U:Gx,V:Xx,w:Zx,W:Jx,x:null,X:null,y:Qx,Y:ew,Z:tw,"%":nw},w={a:function(e,t,n){var r=h.exec(t.slice(n));return r?(e.w=p[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=v[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=g[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return C(e,t,n,r)},d:fx,e:fx,f:vx,H:px,I:px,j:hx,L:yx,m:dx,M:mx,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:xx,s:wx,S:gx,u:ix,U:ox,V:ax,w:rx,W:sx,x:function(e,t,r){return C(e,n,t,r)},X:function(e,t,n){return C(e,r,t,n)},y:cx,Y:lx,Z:ux,"%":bx};function k(e,t){return function(n){var r,i,o,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!=(i=Gb[r=e.charAt(++s)])?r=e.charAt(++s):i="e"===r?" ":"0",(o=t[r])&&(r=o(n,i)),a.push(r),l=s+1);return a.push(e.slice(l,s)),a.join("")}}function S(e,t){return function(n){var r,i,o=Ub(1900);if(C(o,e,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("p"in o&&(o.H=o.H%12+12*o.p),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=Bb(Ub(o.y))).getUTCDay(),r=i>4||0===i?Pb.ceil(r):Pb(r),r=Nb.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=t(Ub(o.y))).getDay(),r=i>4||0===i?kb.ceil(r):kb(r),r=bb.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?Bb(Ub(o.y)).getUTCDay():t(Ub(o.y)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,Bb(o)):t(o)}}function C(e,t,n,r){for(var i,o,a=0,s=t.length,l=n.length;a<s;){if(r>=l)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=w[i in Gb?t.charAt(a++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=k(n,b),b.X=k(r,b),b.c=k(t,b),x.x=k(n,x),x.X=k(r,x),x.c=k(t,x),{format:function(e){var t=k(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=S(e+="",Vb);return t.toString=function(){return e},t},utcFormat:function(e){var t=k(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=S(e,Bb);return t.toString=function(){return e},t}}}(e),Wb.format,Wb.parse,Yb=Wb.utcFormat,Kb=Wb.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 ow="%Y-%m-%dT%H:%M:%S.%LZ";Date.prototype.toISOString||Yb(ow),+new Date("2000-01-01T00:00:00.000Z")||Kb(ow);const aw=Eg.bind(null,!0),sw={},{isArray:lw}=Array;function cw(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function uw(e){return void 0===e}function dw(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function fw(e,t){const n=t.substring(1).split("/").slice(0,-1);let r;return n.forEach(((t,i)=>{if(i===n.length)return;r=+t;const o=isNaN(r)?{}:[];e[r||t]=uw(e[r||t])?o:e[t],e=e[r||t]})),e}function hw(e,t){return t?Object.keys(e).filter((t=>void 0!==e[t])).length:Object.keys(e).length}function pw(e,t,n){let r=!0;if(cw(e)&&cw(t))return hw(e,n)===hw(t,n)&&(Object.keys(e).forEach((i=>{pw(e[i],t[i],n)||(r=!1)})),r);if(lw(e)&&lw(t)){if(e.length!==t.length)return!1;for(let r=0,i=e.length;r<i;r+=1)if(!pw(e[r],t[r],n))return!1;return!0}return e===t}sw.compare=pw,sw.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((i=>{const o=function(e){return e?aw({},{val:e}).val:e}(t[i]),a=e[i],s=`${n}/${i}`;pw(o,a)||dw(t,i)||(uw(a)?r.push({op:"add",path:s,value:o}):cw(o)&&cw(a)?r=r.concat(sw.generate(a,o,s)):lw(o)&&lw(a)?r=r.concat(function(e,t,n){let r=[];const i=e.slice();let o=-1;function a(e,t,n){if(e[n]&&uw(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(pw(t,i))return r;if(!uw(t[0])&&uw(t[0].qInfo)||0===t.length)return r.push({op:"replace",path:n,value:t}),r;for(let e=i.length-1;e>=0;e-=1)o=a(t,i[e].qInfo&&i[e].qInfo.qId,e),-1===o?(r.push({op:"remove",path:`${n}/${e}`}),i.splice(e,1)):r=r.concat(sw.generate(i[e],t[o],`${n}/${e}`));for(let e=0,s=t.length;e<s;e+=1)o=a(i,t[e].qInfo&&t[e].qInfo.qId),-1===o?(r.push({op:"add",path:`${n}/${e}`,value:t[e]}),i.splice(e,0,t[e])):o!==e&&(r.push({op:"move",path:`${n}/${e}`,from:`${n}/${o}`}),i.splice(e,0,i.splice(o,1)[0]));return r}(a,o,s)):r.push({op:"replace",path:`${n}/${i}`,value:o}))})),Object.keys(e).forEach((i=>{uw(t[i])&&!dw(e,i)&&r.push({op:"remove",path:`${n}/${i}`})})),r},sw.apply=function(e,t){t.forEach((t=>{let n=fw(e,t.path),r=t.path.split("/").splice(-1)[0],i=r&&isNaN(+r)?n[r]:n[+r]||n;const o=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,i=e),"add"===t.op||"replace"===t.op)if(lw(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(lw(i)&&lw(t.value)){const e=t.value.slice();i.length=0,i.push(...e)}else if(cw(i)&&cw(t.value))a=i,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!dw(a,e)&&delete a[e]})),aw(i,t.value);else{if(!n)throw new Error("Patchee is not an object we can patch");n[r]=t.value}else if("move"===t.op){const i=fw(e,t.from);lw(n)?n.splice(+r,0,i.splice(+o,1)[0]):(n[r]=i[o],delete i[o])}else"remove"===t.op&&(lw(n)?n.splice(+r,1):delete n[r]);var a}))},sw.clone=function(e){return aw({},e)},sw.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},sw.updateObject=function(e,t){Object.keys(e).length?sw.apply(e,sw.generate(e,t)):aw(e,t)};const mw=[[2,4,6],[2,4],[3]],gw=[,[,,[[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 yw(e,t,n){const r=e?e.length:0;let i,o=void 0===t?Number.MAX_VALUE:e[0]/t;for(i=1;i<r;i++)o=Math.min(o,e[i]/e[i-1]);void 0!==n&&(o=Math.min(o,n/e[r-1])),e.splice(0,0,o)}function vw(e,t,n){let r;const i=e?e.length:0;for(r=0;r<i;r++)yw(e[r],t,n)}function bw(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 xw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bw(Object(n),!0).forEach((function(t){Mw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ww(){ww=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function 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 o=t&&t.prototype instanceof g?t:g,a=Object.create(o.prototype),s=new q(r||[]);return i(a,"_invoke",{value:M(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 f="suspendedStart",h="executing",p="completed",m={};function g(){}function y(){}function v(){}var b={};c(b,a,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x(T([])));w&&w!==n&&r.call(w,a)&&(b=w);var k=v.prototype=g.prototype=Object.create(b);function S(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(i,o,a,s){var l=d(e[i],e,o);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 o;i(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,i){n(e,r,t,i)}))}return o=o?o.then(i,i):i()}})}function M(t,n,r){var i=f;return function(o,a){if(i===h)throw Error("Generator is already running");if(i===p){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var l=E(s,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===f)throw i=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=h;var c=d(t,n,r);if("normal"===c.type){if(i=r.done?p:"suspendedYield",c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=p,r.method="throw",r.arg=c.arg)}}}function E(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,E(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var o=d(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function q(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function T(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return y.prototype=v,i(k,"constructor",{value:v,configurable:!0}),i(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(k),e},t.awrap=function(e){return{__await:e}},S(C.prototype),c(C.prototype,s,(function(){return this})),t.AsyncIterator=C,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new C(u(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(k),c(k,l,"Generator"),c(k,a,(function(){return this})),c(k,"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=T,q.prototype={constructor:q,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(D),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),D(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;D(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:T(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}function kw(e){return kw="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},kw(e)}function Sw(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function Cw(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Sw(o,r,i,a,s,"next",e)}function s(e){Sw(o,r,i,a,s,"throw",e)}a(void 0)}))}}function Mw(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ew(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function _w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||qw(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 Dw(e){return function(e){if(Array.isArray(e))return Tw(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||qw(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 qw(e,t){if(e){if("string"==typeof e)return Tw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Tw(e,t):void 0}}function Tw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}!function(){let e,t;for(vw(mw,1,10),e=0;e<gw.length;e++)if(gw[e])for(t=0;t<gw[e].length;t++)Array.isArray(gw[e][t])&&vw(gw[e][t])}();var Rw=["American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Source Sans Pro, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],Nw=["Abril Fatface, serif","Bangers, fantasy","Bebas Neue, sans serif","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Indie Flower, fantasy","Inter, sans-serif","Lobster, fantasy","Montserrat, sans-serif","Nixie One, sans-serif","Noto Sans, sans-serif","Open Sans, sans-serif","PT Serif, serif","Pacifico, cursive","Permanent Marker, fantasy","QlikView Sans, sans-serif","Raleway, sans-serif","Rammetto One, fantasy","Roboto, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Yanone Kaffeesatz, sans-serif"];var Ow=function(e){return{value:e,label:e.charAt(0).toUpperCase()+e.slice(1),groupHeader:!1,disabled:!1,styles:{fontFamily:e}}};function Aw(e){var t=e.theme,n=e.translator,r=e.defaultValue,i=e.flags,o=[],a=t.getStyle("","","fontFamilies");return Array.isArray(a)&&a.length?o.push.apply(o,Dw(new Set([r].concat(Dw(a.map((function(e){return e.split(",").map((function(e){return e.trim()})).map((function(e){return e.replace(/\s+/g," ").trim()})).filter(Boolean).join(", ")}))))))):o.push(r),[{value:"ThemeHeader",label:n.get("properties.themeFonts"),metaText:n.get("properties.theme"),groupHeader:!0}].concat(Dw(o.map((function(e){return Ow(e)}))),[{value:"DefaultHeader",label:n.get("properties.allFonts"),metaText:n.get("properties.default"),groupHeader:!0}],Dw(function(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?Nw:Rw}(i).map((function(e){return Ow(e)}))))}function Pw(e){var t=e.theme,n=e.translator,r=e.id,i=e.path,o=e.flags,a=function(){return t.getStyle(r,i,"fontFamily")};return{getDefaultValue:function(){return a()},getOptions:function(){return Aw({theme:t,translator:n,defaultValue:a(),flags:o})}}}var Iw=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],Lw=function(e){return{value:e,label:e,groupHeader:!1,disabled:!1}};function zw(e){var t=e.theme,n=e.translator,r=e.id,i=e.path,o=function(){return t.getStyle(r,i,"fontSize")};return{getDefaultValue:function(){return o()},getOptions:function(){return function(e){var t=e.translator,n=e.defaultValue,r=[],i=e.theme.getStyle("","","fontSizes");return Array.isArray(i)&&i.length?r.push.apply(r,Dw(new Set([n].concat(Dw(i))))):r.push(n),[{value:"ThemeHeader",label:t.get("properties.themeFontSizes"),metaText:t.get("properties.theme"),groupHeader:!0}].concat(Dw(r.map((function(e){return Lw(e)}))),[{value:"DefaultHeader",label:t.get("properties.allFontSizes"),metaText:t.get("properties.default"),groupHeader:!0}],Dw(Iw.map((function(e){return Lw(e)}))))}({theme:t,translator:n,defaultValue:o()})}}}function Fw(e){var t=e.theme,n=e.translator,r=e.id,i=e.path;return{fontFamily:Pw({theme:t,translator:n,id:r,path:i,flags:e.flags}),fontSize:zw({theme:t,translator:n,id:r,path:i})}}var jw=Object.prototype.hasOwnProperty,$w=Object.prototype.toString,Hw=Object.defineProperty,Vw=Object.getOwnPropertyDescriptor,Bw=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===$w.call(e)},Uw=function(e){if(!e||"[object Object]"!==$w.call(e))return!1;var t,n=jw.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&jw.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||jw.call(e,t)},Ww=function(e,t){Hw&&"__proto__"===t.name?Hw(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Yw=function(e,t){if("__proto__"===t){if(!jw.call(e,t))return;if(Vw)return Vw(e,t).value}return e[t]},Kw=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}((function e(){var t,n,r,i,o,a,s=arguments[0],l=1,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=Yw(s,n),s!==(i=Yw(t,n))&&(u&&i&&(Uw(i)||(o=Bw(i)))?(o?(o=!1,a=r&&Bw(r)?r:[]):a=r&&Uw(r)?r:{},Ww(s,{name:n,newValue:e(u,a,i)})):void 0!==i&&Ww(s,{name:n,newValue:i}));return s}));function Gw(e,t){return{range:function(e){var n=e.resources,r=e.data,i=n.theme.palette("categorical",0===t?r.items.length:t);return r.items.map((function(e){return i[e.value%i.length]}))},valueAccessor:e.value}}function Xw(e,t){return{range:function(e){var n=e.resources,r=e.data,i=n.theme.palette("categorical",0===t?r.items.length:t);return r.items.map((function(e){return i[e.row.value%i.length]}))},valueAccessor:e.value}}function Zw(e,t,n,r,i){var o,a,s=i.byRow,l=i.byElemNo;if(r&&(t.input.persistent||e.hc.qDimensionInfo.length>1||void 0===n.activeDimensionIndex&&e.hc.qSize.qcy>((null===(a=(o=e.hc).qDataPages[0]||o.qStackedDataPages[0])||void 0===a?void 0:a.qArea.qHeight)||0)))return l(r,r.raw().qCardinal);if(r){var c=t.pic.extract({field:r.key(),trackBy:r.value}).length;return s(r,c)}return{}}function Jw(e,t){var n=e.hc.qDimensionInfo,r=t.input.byDimDef||{activeDimensionIndex:n.length-1};if(r.activeDimensionIndex>=0){var i=n[r.activeDimensionIndex];r=i.coloring&&i.coloring.colorMapRef?{type:"libraryItem",key:i.coloring.colorMapRef,activeDimensionIndex:r.activeDimensionIndex}:{activeDimensionIndex:r.activeDimensionIndex}}return r}function Qw(e,t){var n;return t.activeDimensionIndex>=0?n=e.pic.fields().filter((function(e){return"dimension"===e.type()}))[t.activeDimensionIndex]:"libraryItem"===t.type?!1===(n=t.key?e.pic.field((function(e){return e.raw().colorMapRef===t.key})):void 0)&&(n=e.pic.field((function(e){return"colorByAlternative"===e.raw().id}))):"expression"===t.type&&(n=e.pic.field((function(e){return"colorByAlternative"===e.raw().id}))),n}function ek(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function tk(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function nk(){}var rk=1/.7,ik="\\s*([+-]?\\d+)\\s*",ok="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ak="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",sk=/^#([0-9a-f]{3,8})$/,lk=new RegExp(`^rgb\\(${ik},${ik},${ik}\\)$`),ck=new RegExp(`^rgb\\(${ak},${ak},${ak}\\)$`),uk=new RegExp(`^rgba\\(${ik},${ik},${ik},${ok}\\)$`),dk=new RegExp(`^rgba\\(${ak},${ak},${ak},${ok}\\)$`),fk=new RegExp(`^hsl\\(${ok},${ak},${ak}\\)$`),hk=new RegExp(`^hsla\\(${ok},${ak},${ak},${ok}\\)$`),pk={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 mk(){return this.rgb().formatHex()}function gk(){return this.rgb().formatRgb()}function yk(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=sk.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?vk(t):3===n?new kk(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?bk(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?bk(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=lk.exec(e))?new kk(t[1],t[2],t[3],1):(t=ck.exec(e))?new kk(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=uk.exec(e))?bk(t[1],t[2],t[3],t[4]):(t=dk.exec(e))?bk(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=fk.exec(e))?Dk(t[1],t[2]/100,t[3]/100,1):(t=hk.exec(e))?Dk(t[1],t[2]/100,t[3]/100,t[4]):pk.hasOwnProperty(e)?vk(pk[e]):"transparent"===e?new kk(NaN,NaN,NaN,0):null}function vk(e){return new kk(e>>16&255,e>>8&255,255&e,1)}function bk(e,t,n,r){return r<=0&&(e=t=n=NaN),new kk(e,t,n,r)}function xk(e){return e instanceof nk||(e=yk(e)),e?new kk((e=e.rgb()).r,e.g,e.b,e.opacity):new kk}function wk(e,t,n,r){return 1===arguments.length?xk(e):new kk(e,t,n,null==r?1:r)}function kk(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Sk(){return`#${_k(this.r)}${_k(this.g)}${_k(this.b)}`}function Ck(){const e=Mk(this.opacity);return`${1===e?"rgb(":"rgba("}${Ek(this.r)}, ${Ek(this.g)}, ${Ek(this.b)}${1===e?")":`, ${e})`}`}function Mk(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ek(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function _k(e){return((e=Ek(e))<16?"0":"")+e.toString(16)}function Dk(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Tk(e,t,n,r)}function qk(e){if(e instanceof Tk)return new Tk(e.h,e.s,e.l,e.opacity);if(e instanceof nk||(e=yk(e)),!e)return new Tk;if(e instanceof Tk)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new Tk(a,s,l,e.opacity)}function Tk(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Rk(e){return(e=(e||0)%360)<0?e+360:e}function Nk(e){return Math.max(0,Math.min(1,e||0))}function Ok(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}ek(nk,yk,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:mk,formatHex:mk,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return qk(this).formatHsl()},formatRgb:gk,toString:gk}),ek(kk,wk,tk(nk,{brighter(e){return e=null==e?rk:Math.pow(rk,e),new kk(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new kk(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new kk(Ek(this.r),Ek(this.g),Ek(this.b),Mk(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:Sk,formatHex:Sk,formatHex8:function(){return`#${_k(this.r)}${_k(this.g)}${_k(this.b)}${_k(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ck,toString:Ck})),ek(Tk,(function(e,t,n,r){return 1===arguments.length?qk(e):new Tk(e,t,n,null==r?1:r)}),tk(nk,{brighter(e){return e=null==e?rk:Math.pow(rk,e),new Tk(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Tk(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new kk(Ok(e>=240?e-240:e+120,i,r),Ok(e,i,r),Ok(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Tk(Rk(this.h),Nk(this.s),Nk(this.l),Mk(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=Mk(this.opacity);return`${1===e?"hsl(":"hsla("}${Rk(this.h)}, ${100*Nk(this.s)}%, ${100*Nk(this.l)}%${1===e?")":`, ${e})`}`}}));const Ak=Math.PI/180,Pk=180/Math.PI,Ik=4/29,Lk=6/29,zk=3*Lk*Lk;function Fk(e){if(e instanceof jk)return new jk(e.l,e.a,e.b,e.opacity);if(e instanceof Uk)return Wk(e);e instanceof kk||(e=xk(e));var t,n,r=Bk(e.r),i=Bk(e.g),o=Bk(e.b),a=$k((.2225045*r+.7168786*i+.0606169*o)/1);return r===i&&i===o?t=n=a:(t=$k((.4360747*r+.3850649*i+.1430804*o)/.96422),n=$k((.0139322*r+.0971045*i+.7141733*o)/.82521)),new jk(116*a-16,500*(t-a),200*(a-n),e.opacity)}function jk(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function $k(e){return e>.008856451679035631?Math.pow(e,1/3):e/zk+Ik}function Hk(e){return e>Lk?e*e*e:zk*(e-Ik)}function Vk(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Bk(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Uk(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Wk(e){if(isNaN(e.h))return new jk(e.l,0,0,e.opacity);var t=e.h*Ak;return new jk(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}ek(jk,(function(e,t,n,r){return 1===arguments.length?Fk(e):new jk(e,t,n,null==r?1:r)}),tk(nk,{brighter(e){return new jk(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new jk(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 kk(Vk(3.1338561*(t=.96422*Hk(t))-1.6168667*(e=1*Hk(e))-.4906146*(n=.82521*Hk(n))),Vk(-.9787684*t+1.9161415*e+.033454*n),Vk(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),ek(Uk,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Uk)return new Uk(e.h,e.c,e.l,e.opacity);if(e instanceof jk||(e=Fk(e)),0===e.a&&0===e.b)return new Uk(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Pk;return new Uk(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Uk(e,t,n,null==r?1:r)}),tk(nk,{brighter(e){return new Uk(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Uk(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Wk(this).rgb()}}));var Yk=e=>()=>e;function Kk(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Yk(isNaN(e)?t:e)}var Gk=function e(t){var n=function(e){return 1==(e=+e)?Kk: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):Yk(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=wk(e)).r,(t=wk(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=Kk(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1),Xk=/^class(-pyramid)?/,Zk=function(e,t,n,r){var i=void 0!==n.min?n.min:r.min(),o=void 0!==n.max?n.max:r.max(),a=i,s=o,l=t.limits,c={},u="percent"===t.limitType?l.map((function(e){return i+(o-i)*e})):l,d=t.colors.map((function(t){return e.resolveUIColor(t)}));if(i=Math.min.apply(Math,[i].concat(Dw(u))),o=Math.max.apply(Math,[o].concat(Dw(u))),c.min=i,c.max=o,t.breakTypes&&-1===t.breakTypes.indexOf(!0))c.type="categorical",Object.assign(c,function(e){var t=e.min,n=e.max,r=e.limits,i=e.range,o=[],a=[];if(r.length)if(r[r.length-1]<t)a.push(t,n),o.push(i[i.length-1],i[i.length-1],i[i.length-1]);else if(r[0]>n)a.push(t,n),o.push(i[0],i[0],i[0]);else{if(r[0]>t)a.push(t),o.push(i[0]);else{a.push(t);for(var s=0;s<r.length;s++)if(t<r[s]){o.push(i[s]);break}}for(var l=0;l<r.length;l++)t<r[l]&&r[l]<n&&(a.push(r[l]),o.push(i[l]));if(r[r.length-1]<n)a.push(n),o.push(i[r.length]),o.push(i[r.length]);else{a.push(n);for(var c=0;c<r.length;c++)if(r[c]>n){o.push(i[c]),o.push(i[c]);break}}}else o.push(i[0]);return{min:t,max:n,range:o,domain:a}}({min:"percent"===t.limitType?i:a,max:"percent"===t.limitType?o:s,range:d,limits:"percent"===t.limitType?u:l}));else if(t.breakTypes){var f=t.breakTypes;c.type="continuous",c.domain=[i],c.range=[d[0]];for(var h=0;h<u.length;h+=1)if(f[h]){var p=d[h],m=d[h+1],g=Gk(p,m)(.5);c.range.push(g),c.domain.push(u[h]),h<u.length-1&&f[h+1]&&(c.range.push(d[h+1]),c.domain.push((u[h]+u[h+1])/2))}else c.range.push(d[h]),c.range.push(d[h+1]),c.domain.push(u[h]),c.domain.push(u[h]+Math.min(1e-6,(o-i)/1e6));c.range.push(d[d.length-1]),c.domain.push(o)}else c.domain=u,c.range=d;return c};function Jk(e,t,n,r,i){var o,a,s,l=0,c=[],u=(e-t)/(r+1);if(0===u)return 1;for(o=0;o<n.length;o+=1)a=.99*(n[o]-t),s=n[o]>e?Math.floor(e/u):n[o]<t?0:Math.floor(a/u),Number.isNaN(s)||(c[s]?c[s]+=1:c[s]=1);for(o=0;o<c.length;o+=1)c[o]&&(l+=1);return l<=r||l>=i?Math.max(l,r):Jk(e,t,n,r+1,i)}var Qk=function(e,t,n,r){var i,o,a=t.theme,s=t.hc,l=r.f,c={mode:"field",fieldType:"measure",field:l?l.key():void 0,reverse:n.input.reverseScheme||!1,type:"continuous",range:function(e){return e.resources.theme.palette("quant")}},u=[],d=!0;if(l){if(Number.isNaN(+l.min())||Number.isNaN(+l.max()))return{invalid:!0};(d=!("S"===(i=n.pic.raw()).qMode&&(i.qDataPages[0]&&i.qSize.qcy>i.qDataPages[0].qArea.qHeight||!i.qDataPages.length&&i.qSize.qcy>0)||"K"===i.qMode&&i.qStackedDataPages[0]&&i.qSize.qcy>i.qStackedDataPages[0].qArea.qHeight||"T"===i.qMode&&i.qSize.qcy>i.qTreeDataPages[0].qGroupSize))&&(u=n.pic.extract({field:0,props:{num:{field:l.key()},exclude:{fields:s.qDimensionInfo.map((function(e,t){return{field:"qDimensionInfo/".concat(t)}})),value:function(e){return Math.min.apply(Math,Dw(e))<0}}}}).filter((function(e){return e.value>=0&&!e.exclude.value})).map((function(e){return e.num.value})).filter((function(e){return"number"==typeof e})))}if(!1===n.input.autoMinMax){if(c.min=n.input.measureMin,c.max=n.input.measureMax,c.max<c.min)return{invalid:!0}}else if(l&&!d)c.min=l.min(),c.max=l.max();else if(l){if(!u.length)return{invalid:!0};c.min=Math.min.apply(Math,Dw(u)),c.max=Math.max.apply(Math,Dw(u))}if(n.input.measureScheme&&(c.palettes={quant:n.input.measureScheme}),a){var f=a.getDataColorScales().filter((function(e){return e.key===n.input.measureScheme}))[0];c.type=f&&Xk.test(f.type)?"categorical":"continuous","categorical"===c.type&&(o=f.colors.some((function(e){return Array.isArray(e)}))?Math.max.apply(Math,Dw(f.colors.map((function(e){return e?e.length:0})))):f.colors.length)}if("categorical"===c.type){for(var h=d?Jk(c.max,c.min,u,1,o):o,p=(c.max-c.min)/h,m=[],g=0;g<h+1;g+=1)m.push(c.min+p*g);c.domain=m,c.range=function(e){for(var t=e.resources.theme.palette("quant",h),n=Math.max(1,Math.floor(t.length/h)),r=[],i=0;i<h;i+=1)r.push(t[i*n]);return[r[0]].concat(r,[r[r.length-1]])}}return c};function eS(e,t){var n;return t.activeMeasureIndex>=0?n=e.pic.fields().filter((function(e){return"measure"===e.type()}))[t.activeMeasureIndex]:"libraryItem"===t.type?n=e.pic.field((function(e){return e.raw().colorMapRef===t.key&&void 0!==t.key})):"expression"===t.type&&(n=e.pic.field((function(e){return"colorByAlternative"===e.raw().id}))),n||(n=e.pic.field((function(e){return void 0!==e.raw().matchMeasure})))&&(n=e.pic.fields().filter((function(e){return"measure"===e.type()}))[n.raw().matchMeasure]),n}function tS(e){e.measureOverrides.every((function(e){return!e}))&&(e.measureOverrides=null)}function nS(e,t){for(var n=(null==t?void 0:t.domain)||[],r=(null==t?void 0:t.range)||[],i=[],o=0;o<e.length;++o){var a=e[o];if("constant"===(null==a?void 0:a.mode)){var s=n.indexOf(o);-1===s?(n.push(o),r.push(a.primary)):r[s]=a.primary,e[o]=null}else if(a){i.push(o);var l=n.indexOf(o);-1!==l&&(n.splice(l,1),r.splice(l,1))}}return{domain:n,range:r,exclude:i}}function rS(e,t,n,r){var i,o=function(e,t,n,r){if(t.input&&!t.input.auto){if("byMeasure"===t.input.mode)return function(e,t,n){var r=t.theme,i=t.hc,o=(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).getCField,a=void 0===o?eS:o,s=n.input.byMeasureDef||{activeMeasureIndex:0},l=a(n,s),c=Qk(0,{theme:r,hc:i},n,{f:l});if(c.invalid)return c;"expression"===s.type&&(s.activeMeasureIndex<0||void 0===s.activeMeasureIndex)&&(c.label=s.label,l&&"color.altLabel"===l.raw().labelExpRef&&(c.label=n.input.altLabel)),!c.label&&l&&(c.label=l.title());var u=s.activeMeasureIndex>=0?l:null;if(!u&&l&&void 0!==l.raw().matchMeasure&&l.raw().matchMeasure>-1&&(u=n.pic.fields().filter((function(e){return"measure"===e.type()}))[l.raw().matchMeasure]),n.input.useMeasureGradient&&"libraryItem"===s.type)if(u){var d=u.raw().coloring;d&&d.gradient&&Kw(c,Zk(e,d.gradient,c,u))}else c.auxiliary=s;return c}(e,n,t);if("byDimension"===t.input.mode)return function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r.getCDef,o=void 0===i?Jw:i,a=r.getCByField,s=void 0===a?Qw:a,l=r.getPersistence,c=void 0===l?Zw:l,u=o(t,n),d=s(n,u),f=d?d.raw():{},h=n&&n.pic?n.pic.raw():{};if(f.qError||f.qSize&&0===f.qSize.qcy&&!h.qHasOtherValues)return{invalid:!0};var p={mode:"field",fieldType:"dimension",type:"categorical",field:d?d.key():void 0,isFieldLocked:f.qLocked};return("expression"===u.type||u.activeDimensionIndex<0)&&(p.label=u.label,"color.altLabel"===f.labelExpRef&&(p.label=n.input.altLabel)),!p.label&&d&&(p.label=d.title()),n.input.dimensionScheme&&(p.palettes={categorical:n.input.dimensionScheme}),n.input.useDimColVal&&"libraryItem"===u.type&&(p.auxiliary=u),Kw(p,c(t,n,u,d,{byRow:Xw,byElemNo:Gw})),p}(e,n,t);if("byExpression"===t.input.mode)return function(e,t,n,r){var i=t.hc,o=t.theme,a=t.translator,s=n.pic.field((function(e){return"colorByExpression"===e.raw().id}));if(!s||!s.raw().qFallbackTitle&&!n.input.colorExpression||!(Number.isFinite(s.raw().qMin)&&Number.isFinite(s.raw().qMax)||n.input.expressionIsColor))return{mode:"constant",type:"constant",primary:r.nil};if(n.input.expressionIsColor)return{mode:"field",fieldType:"expression",field:s?s.key():void 0,type:"color"};var l=Qk(0,{hc:i,theme:o},n,{f:s});return l.invalid||(l.label=n.input.expressionLabel||a.get("Object.ChartTooltip.ColorExpression")),l}(0,n,t,r);if("byMultiple"===t.input.mode||"primary"===t.input.mode)return function(e,t,n,r){var i=t.hc,o=t.theme,a=t.translator,s=n.input.useBaseColors;if(("byMultiple"===n.input.mode||"primary"===n.input.mode&&"measure"===n.input.useBaseColors)&&i.qMeasureInfo.length>1&&(s="measure"),"measure"===s){var l=[],c=[];"measure"===n.input.useBaseColors&&i.qMeasureInfo.forEach((function(t,n){if(t.baseColor||t.coloring&&t.coloring.baseColor){l.push(n);var i=e.resolveUIColor(t.baseColor||t.coloring.baseColor);"none"===i?c.push(r.primary):c.push(i)}}));var u=n.input.dimensionScheme?{categorical:n.input.dimensionScheme}:void 0,d=o?o.getDataColorPalettes()[0]:void 0;return"measure"===n.input.useBaseColors&&d&&(u={categorical:d.key}),{mode:"measure",type:"categorical",palettes:u,label:a?a.get("Common.Measures"):void 0,explicit:l.length?{domain:l,range:c}:void 0}}if("dimension"===s){var f=[],h=[];return i.qDimensionInfo.forEach((function(t,n){if(t.baseColor||t.coloring&&t.coloring.baseColor){f.push(n);var i=e.resolveUIColor(t.baseColor||t.coloring.baseColor);"none"===i?h.push(r.primary):h.push(i)}})),{mode:"dimension",type:"categorical",field:f.length?f[0]:void 0,explicit:f.length?{domain:f,range:h}:void 0}}var p=r.primary;if(void 0!==n.input.paletteColor)n.input.paletteColor&&(p=e.resolveUIColor(n.input.paletteColor));else{var m=n.input.singleColor;"number"!=typeof m||Number.isNaN(m)||(p=["#b0afae","#7b7a78","#545352","#4477aa","#7db8da","#b6d7ea","#46c646","#f93f17","#ffcf02","#276e27","#ffffff","#000000"][m])}return{mode:"constant",type:"constant",primary:p}}(e,n,t,r)}return{}}(e,t,n,r);return null!==(i=t.input)&&void 0!==i&&i.measureOverrides?(o.measureOverrides=t.input.measureOverrides.map((function(n,i){return function(e){var t,n=e.cm,r=e.defaults,i=e.index,o=e.input,a=e.pic;if(!o||!o.on)return null;var s=null!==(t=o.mode)&&void 0!==t?t:"primary";return"primary"===s?function(e,t,n){var r=n.primary;return void 0!==t.paletteColor&&t.paletteColor&&(r=e.resolveUIColor(t.paletteColor)),xw(xw({},n),{},{mode:"constant",type:"constant",primary:r})}(n,o,r):"byExpression"===s?function(e,t,n){var r="qMeasureInfo/".concat(e,"/"),i=t.field((function(e){return e.id().startsWith(r)&&"colorByMeasureExpression"===e.raw().id})),o=i;return xw(xw({},n),{},o?{mode:"field",fieldType:"expression",field:i?i.key():void 0,type:"color"}:{mode:"constant",type:"constant",primary:n.nil})}(i,a,r):null}({cm:e,input:n,defaults:r,index:i,pic:t.pic})})),function(e,t){var n,r,i,o=t.translator;if(tS(e),1===(null===(n=e.measureOverrides)||void 0===n?void 0:n.length))return e.measureOverrides[0];if("measure"===e.mode&&e.measureOverrides&&(e.explicit=nS(e.measureOverrides,e.explicit),tS(e)),null!==(r=e.measureOverrides)&&void 0!==r&&r.every((function(e){return"constant"===(null==e?void 0:e.mode)}))){var a={mode:"measure",type:"categorical",label:null==o?void 0:o.get("Common.Measures")};return a.explicit=nS(e.measureOverrides),a}return null!==(i=e.measureOverrides)&&void 0!==i&&i.every((function(e){return e}))?{invalid:!0,measureOverrides:e.measureOverrides}:e}(o,n)):o}var iS=function(e,t){var n=e.fieldType,r={};if(t)if("measure"===n){var i=t.coloring;i&&(r.measureGradient=i.gradient)}else if("dimension"===n){var o=t[0],a=t[1];o&&(r.legendDataPage=o),a&&(r.dimValsData=a.colorMap)}return r},oS=function(e){throw e.isHandled=!0,e},aS=function(e,t){var n=t.layout,r=t.app;return n&&n.snapshotData?n.snapshotData.content&&n.snapshotData.content.chartData&&n.snapshotData.content.chartData.dimValsData?Promise.resolve({colorMap:n.snapshotData.content.chartData.dimValsData}):Promise.reject():r&&r.getObject?r.getObject("ColorMapModel_".concat(e)).then((function(e){return e.getLayout()})):Promise.reject()},sS=function(e,t){var n=t.layout,r=t.app;return n&&n.snapshotData?n.snapshotData.content&&n.snapshotData.content.chartData&&n.snapshotData.content.chartData.measureGradient?Promise.resolve({coloring:{gradient:n.snapshotData.content.chartData.measureGradient}}):Promise.reject():r&&r.getMeasure?r.getMeasure(e).then((function(e){return e.getMeasure()})):Promise.reject()},lS=function(e,t){var n=t.layout,r=t.model,i=t.app;return n&&n.snapshotData?n.snapshotData.content&&n.snapshotData.content.chartData&&n.snapshotData.content.chartData.legendDataPage?Promise.resolve(n.snapshotData.content.chartData.legendDataPage):Promise.reject():r&&r.session&&i?r.getHyperCubeData(e,[{qHeight:100,qLeft:0,qTop:0,qWidth:2}]).catch(oS):Promise.reject()};function cS(e){return function(t){return"object"===kw(t.datum[e])?t.datum[e].value:void 0}}function uS(e){return"object"===kw(e.datum.isNull)?e.datum.isNull.value:-2===e.datum.value}function dS(e){return-3===e.datum.value}var fS={TITLE:{COLOR:void 0,FONT_SIZE:"16px",FONT_FAMILY:"'Source Sans Pro', 'Arial', 'sans-serif'"},LABEL:{COLOR:void 0,FONT_SIZE:void 0,FONT_FAMILY:"'Source Sans Pro', 'Arial', 'sans-serif'"}};function hS(e){var t=e.theme,n=e.key,r=e.styleOverrides,i={title:{color:fS.TITLE.COLOR,fontSize:fS.TITLE.FONT_SIZE,fontFamily:fS.TITLE.FONT_FAMILY},label:{color:fS.LABEL.COLOR,fontSize:fS.LABEL.FONT_SIZE,fontFamily:fS.LABEL.FONT_FAMILY}};if(!t&&!r)return i;var o=r||{},a=o.title,s=o.label,l=function(e){var t=e.theme,n=e.key;return function(e,r,i,o){return void 0!==e?e:t?t.getStyle(n,r,i):o}}({theme:t,key:n});return i.title.color=l(null==a?void 0:a.color,"legend.title","color",fS.TITLE.COLOR),i.title.fontSize=l(null==a?void 0:a.fontSize,"legend.title","fontSize",fS.TITLE.FONT_SIZE),i.title.fontFamily=l(null==a?void 0:a.fontFamily,"legend.title","fontFamily",fS.TITLE.FONT_FAMILY),i.label.color=l(null==s?void 0:s.color,"legend.label","color",fS.LABEL.COLOR),i.label.fontSize=l(null==s?void 0:s.fontSize,"legend.label","fontSize",fS.LABEL.FONT_SIZE),i.label.fontFamily=l(null==s?void 0:s.fontFamily,"legend.label","fontFamily",fS.LABEL.FONT_FAMILY),i}var pS=function(e,t,n){var r=e&&e.dock||void 0;if("auto"!==r)return r||"right";if(t){var i=t.element.getBoundingClientRect();if(i.height>i.width)return"bottom"}return n?"left":"right"},mS=function(e,t,n){return!(n.invalid||"color"===n.type||"measure"===n.mode&&t.qMeasureInfo.length<=1||"dimension"===n.mode)&&("function"==typeof e.show?e.show():!1!==e.show)};function gS(e,t){var n=e.styleReference,r=e.styleOverrides,i=e.chart,o=e.rtl,a=t.legendProps,s=t.coloring,l=t.theme,c=t.hc,u=hS({theme:l,key:n,styleOverrides:r});return{layout:{minimumLayoutMode:"MEDIUM",dock:pS(a,i,o)},show:"function"==typeof a.show?function(){return mS(a,c,s)}:mS(a,c,s),renderer:"svg",mounted:function(e){e.childNodes[0].style.pointerEvents="none",e.style.overflow="hidden"},settings:{title:{show:!1!==a.showTitle,wordBreak:"break-word",maxLines:2,lineHeight:1.2,text:s.label||"",fill:u.title.color,fontSize:u.title.fontSize,fontFamily:u.title.fontFamily}}}}function yS(e,t,n){var r=[],i=[],o=function(e,t,n){return"categorical"===t.coloring.type?function(e,t,n){var r=gS(e,t);if(!r.show)return!1;var i,o=e.key,a=e.styleReference,s=e.styleOverrides,l=e.viewState,c=e.rtl,u=e.settings,d=e.style,f=t.scaleKey,h=t.theme,p=t.scales,m=hS({theme:h,key:a,styleOverrides:s}),g=r.layout.dock,y="left"===g||"right"===g?{maxLines:2,wordBreak:"break-word"}:{},v={up:"M13.6,11 L2.4,11 C2.28954305,11 2.2,10.9104569 2.2,10.8 C2.2,10.756726 2.21403557,10.7146192 2.24,10.68 L7.84,3.21333333 C7.90627417,3.12496777 8.03163444,3.10705916 8.12,3.17333333 C8.13516113,3.18470418 8.14862915,3.1981722 8.16,3.21333333 L13.76,10.68 C13.8262742,10.7683656 13.8083656,10.8937258 13.72,10.96 C13.6853808,10.9859644 13.643274,11 13.6,11 Z",down:"M2.4,4 L13.6,4 C13.7104569,4 13.8,4.08954305 13.8,4.2 C13.8,4.24327404 13.7859644,4.28538077 13.76,4.32 L8.16,11.7866667 C8.09372583,11.8750322 7.96836556,11.8929408 7.88,11.8266667 C7.86483887,11.8152958 7.85137085,11.8018278 7.84,11.7866667 L2.24,4.32 C2.17372583,4.23163444 2.19163444,4.10627417 2.28,4.04 C2.31461923,4.01403557 2.35672596,4 2.4,4 Z",left:"M11,2.4 L11,13.6 C11,13.7104569 10.9104569,13.8 10.8,13.8 C10.756726,13.8 10.7146192,13.7859644 10.68,13.76 L3.21333333,8.16 C3.12496777,8.09372583 3.10705916,7.96836556 3.17333333,7.88 C3.18470418,7.86483887 3.1981722,7.85137085 3.21333333,7.84 L10.68,2.24 C10.7683656,2.17372583 10.8937258,2.19163444 10.96,2.28 C10.9859644,2.31461923 11,2.35672596 11,2.4 Z",right:"M4,13.6 L4,2.4 C4,2.28954305 4.08954305,2.2 4.2,2.2 C4.24327404,2.2 4.28538077,2.21403557 4.32,2.24 L11.7866667,7.84 C11.8750322,7.90627417 11.8929408,8.03163444 11.8266667,8.12 C11.8152958,8.13516113 11.8018278,8.14862915 11.7866667,8.16 L4.32,13.76 C4.23163444,13.8262742 4.10627417,13.8083656 4.04,13.72 C4.01403557,13.6853808 4,13.643274 4,13.6 Z"};"dimension"===t.coloring.fieldType&&(i=function(e){return e.datum.value>=0||-3===e.datum.value});var b="".concat(f,"Legend");return Kw(!0,r,{type:"legend-cat",key:"".concat(o,"-cat"),scale:b in p?b:f,settings:{layout:{scrollOffset:function(){return l?l.get("legendScrollOffset"):void 0},size:-1!==["top","bottom"].indexOf(r.layout.dock)?2:1,direction:c?"rtl":"ltr",horizontal:20},item:{show:i,label:xw({fill:m.label.color,fontSize:m.label.fontSize,fontFamily:m.label.fontFamily},y)},navigation:{disabled:n,button:{content:function(e,t){var n=t.direction;return e("i",{style:{"pointer-events":"none",fontSize:"12px",display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizelegibility",margin:"0px"}},[e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor"},[e("path",{d:v[n]})])])}}}},brush:{consume:[{context:"selection",data:["",o],style:{inactive:{opacity:.3}}}]}},{settings:u,style:d})}(e,t,n):"continuous"===t.coloring.type&&function(e,t){var n,r=e.key,i=e.styleReference,o=e.styleOverrides,a=e.rtl,s=e.settings,l=e.style,c=t.scaleKey,u=t.theme,d="".concat(c,"Range"),f=gS(e,t);if(!f.show)return!1;var h=hS({theme:u,key:i,styleOverrides:o}),p=f.layout.dock,m="right"===p||"left"===p,g=null===(n=t.scales)||void 0===n?void 0:n[d];return m&&g&&(g.invert=!0),Kw(!0,f,{type:"legend-seq",key:"".concat(r,"-seq"),settings:{fill:c,major:d,length:1,tick:{fill:h.label.color,fontSize:h.label.fontSize,fontFamily:h.label.fontFamily},title:{anchor:!a||"top"!==f.layout.dock&&"bottom"!==f.layout.dock?void 0:"right",padding:parseFloat(f.settings.title.fontSize)||16}}},{settings:s,style:l})}(e,t)}(e,t,n&&n.navigationDisabled);return r.push(o),o&&"legend-cat"===o.type&&(i.push(function(e){var t=e.key,n=e.requireFailure,r=e.recognizeWith,i=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).actions;return{key:"event:tap-".concat(t),type:"Tap",requireFailure:n,recognizeWith:r,options:{event:"legendtap",interval:10,pointers:1,enable:function(e,n){var r;if(!n)return!0;if(null!=i&&null!==(r=i.interact)&&void 0!==r&&r.enabled&&!i.interact.enabled())return!1;if(!this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((function(e){return e.key==="".concat(t,"-cat")})))return!1;var o=n.srcEvent.target;return!!(o&&o.hasAttribute("data-action")&&o.hasAttribute("data-component-key"))||!(!o||!o.childNodes[0]||"BUTTON"!==o.childNodes[0].nodeName)}},events:{legendtap:function(e){e.preventDefault();var t=e.srcEvent.target;t&&t.hasAttribute("data-action")&&t.hasAttribute("data-component-key")&&this.chart.component(t.getAttribute("data-component-key")).emit(t.getAttribute("data-action"))}}}}(e,n)),i.push(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.eventName,n=e.key,r=e.requireFailure,i=e.recognizeWith,o=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).actions;return{key:"event:pan-".concat(n),type:"Pan",requireFailure:r,recognizeWith:i,options:{event:t,pointers:1,threshold:10,enable:function(e,r){var i;return this.started===t||!r||!(null!=o&&null!==(i=o.interact)&&void 0!==i&&i.enabled&&!o.interact.enabled())&&this.chart.componentsFromPoint({x:r.center.x,y:r.center.y}).some((function(e){return e.key==="".concat(n,"-cat")}))}},events:Mw(Mw(Mw({},"".concat(t,"start"),(function(e){e.preventDefault(),this.started!==t&&(this.started=t,this.chart.component("".concat(n,"-cat")).emit("panstart",e))})),"".concat(t,"move"),(function(e){e.preventDefault(),this.chart.component("".concat(n,"-cat")).emit("panmove",e)})),"".concat(t,"end"),(function(e){e.preventDefault(),this.chart.component("".concat(n,"-cat")).emit("panend",e),this.started=!1}))}}(e,n))),{interactions:i,components:r}}var vS=function(e){return"rgba(".concat([(16711680&e)>>16,(65280&e)>>8,255&e,((4278190080&e)>>>24)/255].join(","),")")};function bS(e){var t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.auto,n=function(e){var t=xw({hc:null,colorProps:null,layout:null,theme:null},e),n={},r={auto:function(){return{mode:"primary"}},getDimensionColorMap:function(){return Promise.reject()},getMeasure:function(){return Promise.reject()},getAttributeDimension:function(){return Promise.reject()}},i={auto:function(e){return e?(r.auto=e,i):r.auto},getDimensionColorMap:function(e){return e?(r.getDimensionColorMap=e,i):r.getDimensionColorMap},getAttributeDimension:function(e){return e?(r.getAttributeDimension=e,i):r.getAttributeDimension},getMeasure:function(e){return e?(r.getMeasure=e,i):r.getMeasure},set:function(e){var i;if(!e.colorProps)throw new Error('Missing "colorProps"');if(Kw(t,e),(n={pic:t.picasso.data("q")({data:t.hc,config:{localeInfo:t.localeInfo}}),input:t.colorProps}).input.auto){var o=r.auto(e.layout);n.input=Kw(!0,{},n.input,o,{auto:!1});var a=t.theme?t.theme.getDataColorPalettes():[];a[0]&&(n.input.dimensionScheme=a[0].key);var s=0;n.input.byDimDef&&+n.input.byDimDef.activeDimensionIndex>=0&&(s=+n.input.byDimDef.activeDimensionIndex),t.hc&&t.hc.qDimensionInfo[s]&&t.hc.qDimensionInfo[s].coloring&&t.hc.qDimensionInfo[s].coloring.colorMapRef&&n.input.byDimDef&&(n.input.byDimDef.type="libraryItem",n.input.byDimDef.key=t.hc.qDimensionInfo[s].coloring.colorMapRef)}null!==(i=n.input.measureOverrides)&&void 0!==i&&i.every((function(e){return!e||!e.on}))&&(n.input=Kw(!1,{},n.input,{measureOverrides:null}))},palettes:function(){if(!n.palettes){var e=t.theme,r=[];(e&&e.getDataColorPickerPalettes()||[]).forEach((function(e){r.push({key:"ui",colors:e.colors})})),n.palettes=r}return n.palettes},getAuxiliaryData:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/qHyperCubeDef";if(!e.auxiliary&&!/qAttrDimInfo/.test(e.field))return Promise.resolve();var i=(e.auxiliary||{}).key;if("measure"===e.fieldType)return r.getMeasure(i,t).catch((function(){}));if("dimension"===e.fieldType){var o="".concat(n,"/").concat(e.field).replace("qDimensionInfo","qDimensions").replace("qAttrDimInfo","qAttributeDimensions");return Promise.all([/qAttrDimInfo/.test(e.field)?r.getAttributeDimension(o,t).catch((function(){})):Promise.resolve(),i?r.getDimensionColorMap(i,t).catch((function(){})):Promise.resolve()])}return Promise.resolve()},getAuxiliarySettings:function(e,r){var i=this;return e.auxiliary||/qAttrDimInfo/.test(e.field)?(this.palettes(),this.getAuxiliaryData(e,r).then((function(r){if(!r)return{};if("measure"===e.fieldType){if(r.coloring&&r.coloring.gradient){var o=n.pic.field(e.field);return Zk(i,r.coloring.gradient,e,o)}return{}}if("dimension"===e.fieldType){var a={nil:e.nil,others:e.others},s=r[0],l=r[1]?r[1].colorMap:null;if(s){var c=t.picasso.data("q")({data:{qDimensionInfo:[n.pic.field(e.field).raw(),n.pic.field(e.field).raw()],qMeasureInfo:[],qDataPages:s,qInterColumnSortOrder:[0,1],qMode:"S"}});a.legendDataset=c}return l?function(e,t,n,r){var i=r.external,o=r.field,a=xw({},e);Kw(a,Gw(o,o.raw().qCardinal));var s=i.theme?i.theme.getDataColorPalettes()[0]:null;return t.nul&&(a.nil=n.resolveUIColor(t.nul)),t.oth&&(a.others=n.resolveUIColor(t.oth)),t.usePal?(a.palettes={categorical:t.pal},s&&!t.pal&&(a.palettes.categorical=s.key,Kw(a,Gw(o)))):!1===t.autoFill&&t.single?a.range=[n.resolveUIColor(t.single)]:t.autoFill&&(s&&(a.palettes={categorical:s.key}),Kw(a,Gw(o))),t.colors&&t.colors.length&&(a.explicit=function(e,t,n){for(var r={},i=0;i<e.length;i+=1)r[e[i].value]=e[i].baseColor;var o=[];return{domain:function(e){var i=e.data,a=[];o=[];for(var s=0;s<i.items.length;s++){var l=i.items[s],c=(l.text||l).label;r[c]&&-1===a.indexOf(l.value)&&(a.push(l.value),o.push(t.resolveUIColor(r[c])))}return a.push(-3,-2),o.push(n.others),o.push(n.nil),a},range:function(){return o}}}(t.colors,n,a)),a}(a,l,i,{external:t,field:n.pic.field(e.field)}):a}return{}}))):Promise.resolve()},resolveUIColor:function(e){if(e.index<0||void 0===e.index)return e.color;if(void 0===n.uiPalette&&(n.uiPalette=this.palettes().filter((function(e){return"ui"===e.key}))[0]||!1),!n.uiPalette)return e.color;var t="none"===n.uiPalette.colors[0]?e.index:e.index-1;return void 0===n.uiPalette.colors[t]?e.color:n.uiPalette.colors[t]},settings:function(){if(this.palettes(),!n.settings){var e={primary:"steelblue",others:"#aaa",nil:"#ddd"},r=t.theme;r&&(e=xw(xw({},e),r.getDataColorSpecials())),n.settings=Kw(e,rS(this,n,t,e))}return n.settings}};return i}(e.resources).auto(t||function(){return{mode:"byDimension",persistent:!1,useDimColVal:!0,byDimDef:{activeDimensionIndex:0,type:"expression",label:""}}}).getDimensionColorMap((function(e,t){var n=t.layout,r=t.app;return aS(e,{layout:n,app:r})})).getMeasure((function(e,t){var n=t.layout,r=t.app;return sS(e,{layout:n,app:r})})).getAttributeDimension((function(e,t){var n=t.layout,r=t.model,i=t.app;return lS(e,{layout:n,model:r,app:i})}));return n.getSnapshotData=iS,n}({resources:e}),n={},r={},i=function(e){return r.settings||(e||console.warn("settings() called before auxiliarySettings()"),r.settings=t.settings()),r.settings},o={config:function(i){if(n=xw({},i),r={},!n.key)throw new Error("Missing key");t.set(xw(xw({},e),n))},auto:function(e){return e?(t.auto(e),o):t.auto()},getAuxiliarySettings:function(e){return r.auxiliarySettings?Promise.resolve(r.auxiliarySettings):t.getAuxiliarySettings(i(!0),e).then((function(e){return r.auxiliarySettings=e||{},r.settings=xw(xw({},r.settings),r.auxiliarySettings),r.scales=void 0,r.color=void 0,r.auxiliarySettings}))},getAuxiliaryData:function(){return t.getAuxiliaryData(i())},getSnapshotData:function(e){var n=i();return t.getAuxiliaryData(n,e).then((function(e){return t.getSnapshotData(n,e)}))},resolveUIColor:function(e){return t.resolveUIColor(e)},settings:function(){var e=i();return{mode:e.mode,type:e.type,label:e.label,field:e.field,fieldType:e.fieldType,nil:e.nil,others:e.others,primary:e.primary}},settingsForMeasure:function(e){var t;return(null===(t=i().measureOverrides)||void 0===t?void 0:t[e])||this.settings()},isSelectionLocked:function(e){var t=e.isMeasureSelectionLocked;return function(e,t){var n=t.isMeasureSelectionLocked;return"field"!==e.mode||("dimension"===e.fieldType?e.isFieldLocked:"measure"!==e.fieldType||n)}(i(),{isMeasureSelectionLocked:t})},palettes:function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.colorProps,n=e.coloring,r=e.theme,i=[];if(n&&n.palettes&&r){var o=n.palettes.categorical||t.dimensionScheme,a=r.getDataColorPalettes().filter((function(e){return e.key===o}))[0]||r.getDataColorPalettes()[0];o&&a&&i.push({key:"categorical",colors:a.colors});var s=n.palettes.metric||t.measureScheme,l=r.getDataColorScales().filter((function(e){return e.key===s}))[0]||r.getDataColorScales()[0];if(l){var c=l.colors[0]?l.colors:[[]].concat(Dw(l.colors.slice(1)));c=Array.isArray(c[0])?c.map((function(e){return e.slice().reverse()})):c.slice().reverse(),i.push({key:"quant",colors:c})}}return i}({coloring:i(),colorProps:n.colorProps,theme:n.theme})},scales:function(){return r.scales=r.scales||function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.hc,n=e.coloring,r=e.rtl,i=e.key,o=e.source,a=e.picasso,s={},l=i;if(n){var c={override:!0,domain:n.explicit&&"function"==typeof n.explicit.domain?n.explicit.domain:[].concat(Dw((n.explicit||{}).domain||[]),[-3,-2]),range:n.explicit&&"function"==typeof n.explicit.range?n.explicit.range:[].concat(Dw((n.explicit||{}).range||[]),[n.others,n.nil])};if("field"===n.mode){if("dimension"===n.fieldType){var u,d=function(e){var t=e.hc,n=e.source,r=e.coloring,i={data:{extract:[{source:"dummy",field:0,filter:function(){return i.expando=t.qDataPages[0]?t.qDataPages[0].qArea.qTop:0,!1}},{source:n,field:r.field,trackBy:r.valueAccessor,reduce:"first",props:{row:{reduce:function(){return i.expando++}},text:{value:function(e){return e.qText},reduce:"first"}}}]},expando:0};return i}({hc:t,source:o,coloring:n}).data;if(n.legendDataset){var f=0,h={};a.data("q")({data:t}).extract({field:n.field,trackBy:n.valueAccessor,reduce:function(e){var t=e[0];return h[t]=f++,e[0]}}),u={source:"attrDim",extract:{field:"qDimensionInfo/0",filter:function(e){return e.qElemNumber>=0},props:{row:{value:function(e){return h[e.qElemNumber]}}}}}}var p={data:d,range:n.range,domain:n.domain,explicit:c,type:"categorical-color",label:function(e){return e.datum.text&&e.datum.text.value?e.datum.text.value:e.datum.label}};s[l]=p,u&&(s["".concat(l,"Legend")]=xw(xw({},p),{},{data:u})),t&&t.qHasOtherValues&&u&&((u||p.data).amend=[{label:t.qDimensionInfo[0].othersLabel,source:{key:"qHyperCube",field:"qDimensionInfo/0"},row:{value:-3},value:-3}])}else if("measure"===n.fieldType){var m={data:{field:n.field},min:n.min,max:n.max};s[l]=Kw({},m,{type:"categorical"===n.type?"threshold-color":"sequential-color",range:n.range,domain:n.domain,invert:n.reverse}),"sequential-color"===s[l].type&&(s["".concat(l,"Range")]=Kw({},m,{invert:!!r}))}else if("color"!==n.type)throw new Error("UNUSED FIELD")}else if("dimension"===n.mode){var g={data:t.qDimensionInfo.map((function(e,t){return t})),label:function(e){return t.qDimensionInfo[e.datum.value].qFallbackTitle},explicit:c,type:"categorical-color"};s[l]=g}else if("measure"===n.mode){var y={data:t.qMeasureInfo.map((function(e,t){return t})).filter((function(e){var t;return!(null!==(t=n.explicit)&&void 0!==t&&null!==(t=t.exclude)&&void 0!==t&&t.includes(e))})),label:function(e){return t.qMeasureInfo[e.datum.value].qFallbackTitle},explicit:c,type:"categorical-color"};s[l]=y}}return s}({hc:n.hc,coloring:i(),key:n.key,source:n.source,picasso:e.picasso}),r.scales},color:function(){return r.color=r.color||function(e){var t=e.coloring,n=e.scales,r=e.key,i=cS(r),o=cS("".concat(r,"IsAnOther")),a=function(e,t){var r=e.fieldType,a=e.invalid,s=e.mode,l=e.nil,c=e.others,u=e.primary,d=e.type;return a?function(e){return dS(e)||o(e)?c:l}:n[t]?function(e){return dS(e)?c:uS(e)||-2===i(e)&&"dimension"===r||"NaN"===i(e)?l:o(e)?c:e.resources.scale(t)(i(e))||c}:"constant"===s?function(e){return dS(e)||o(e)?c:uS(e)?l:u}:"color"===d?function(e){return dS(e)||o(e)?c:uS(e)?l:i(e)||c}:null},s=a(t,r);if(t.measureOverrides){var l=cS("".concat(r,"MeasureIdx")),c=t.measureOverrides.map((function(e){return e&&a(e)}));return function(e){var t=l(e);return c[t]?c[t](e):s(e)}}return s}({coloring:i(),scales:this.scales(),key:n.key}),r.color},datumProps:function(e){return function(e){var t,n,r=e.hc,i=e.coloring,o=e.scales,a=e.key,s=e.addMeasureIx,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,c=a,u=i.nil;"field"===i.mode&&i.field?t=i.field:o[a]&&"field"===i.mode&&(t=o[a].data.field||i.field),t?(n={field:t,reduce:"first"},"color"===i.type&&(n.value=function(e){return"NaN"!==e.qNum?vS(e.qNum):e.qText&&yk(e.qText)?e.qText:u})):"dimension"===i.mode?n=void 0!==i.field?i.field:r.qDimensionInfo.length-1:"measure"===i.mode&&(n=l);var d=Mw({},c,n);return r.qDimensionInfo.length>1&&(d["".concat(c,"IsAnOther")]={fields:r.qDimensionInfo.map((function(e,t){return{field:"qDimensionInfo/".concat(t)}})),value:function(e){return-1!==e.indexOf(-3)}}),s&&(d["".concat(c,"MeasureIdx")]=l),d}({coloring:this.settingsForMeasure(e),scales:this.scales(),key:n.key,hc:n.hc,addMeasureIx:i().measureOverrides},e)},data:function(){var e=i(),t={key:"dummy",data:[["field"],["a"]]};return e.legendDataset?[t,{type:"q",key:"attrDim",data:e.legendDataset.raw(),config:{localeInfo:n.localeInfo}}]:[t]},legend:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.eventName,r=e.key,o=e.viewState,a=e.chart,s=e.rtl,l=e.styleReference,c=void 0===l?"object.legend":l,u=e.styleOverrides,d=e.settings,f=void 0===d?{}:d,h=e.style,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return yS({eventName:t,key:r,rtl:s,viewState:o,chart:a,styleReference:c,styleOverrides:u,settings:f,style:void 0===h?{}:h},{legendProps:n.legendProps,scaleKey:n.key,coloring:i(),theme:n.theme,hc:n.hc,scales:this.scales()},p)}};return o}var xS=function(e){return e.baseColor||e.coloring&&e.coloring.baseColor};function wS(e){var t=e.qHyperCube,n=t.qDimensionInfo,r=t.qMeasureInfo,i=n.some(xS),o=r.some(xS),a=e.color.useBaseColors;return"measure"===a&&!o||"dimension"===a&&!i?"off":a}var kS=function(e){return e.baseColor||e.coloring&&e.coloring.baseColor};function SS(e){var t,n=e.qHyperCube.qDimensionInfo.some(kS),r=e.qHyperCube.qMeasureInfo.some(kS),i=n?"dimension":void 0;return{mode:"primary",useBaseColors:null!==(t=null!=i?i:r?"measure":void 0)&&void 0!==t?t:"off",paletteColor:null}}var CS=function(){};function MS(e){var t,n,r,i,o=e.picasso,a=e.model,s=e.app,l=e.translator,c=e.layoutService,u=void 0===c?void 0:c,d=e.createConfig,f=void 0===d?CS:d,h=e.config,p=void 0===h?{}:h,m=e.custom,g=void 0===m?{}:m,y=p.localeInfo,v=p.key,b=p.theme,x=void 0===b?void 0:b,w=p.auto,k=void 0===w?void 0:w,S=p.definitionPath,C=null==u||null===(t=u.getLayout)||void 0===t?void 0:t.call(u),M={theme:x,key:v,localeInfo:y,layout:C,hc:null==u||null===(n=u.getHyperCube)||void 0===n?void 0:n.call(u),legendProps:null==u||null===(r=u.getLayoutValue)||void 0===r?void 0:r.call(u,"legend"),colorProps:xw(xw({},null==u||null===(i=u.getLayoutValue)||void 0===i?void 0:i.call(u,"color")),{},{useBaseColors:C?wS(C):void 0})},E=bS({picasso:o,model:a,app:s,translator:l,auto:k});!1!==k&&E.auto((function(e){return k?k({layout:e,defaultAuto:SS}):SS(e)}));var _=!1,D={getColor:function(){return E.color()},getPaletteColor:function(e){var t=e.index,n=e.color;return E.resolveUIColor({index:t,color:n})},getData:function(){return E.data()},getDatumProps:function(e){return E.datumProps(e)},getSnapshotData:function(){return E.getSnapshotData(S)},getSettingsForMeasure:function(e){return E.settingsForMeasure(e)},getSettings:function(){return E.settings()},getLegend:function(e,t){return E.legend(e,t)},getScales:function(){return E.scales()},getPalettes:function(){return E.palettes()},isSelectionLocked:function(e){var t=e.isMeasureSelectionLocked;return E.isSelectionLocked({isMeasureSelectionLocked:t})},isInitialized:function(){return _},custom:xw({},g),initialize:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).createConfig,t=(void 0===e?f:e)({getUseBaseColors:wS}),n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return xw(xw(xw({},e),t),{},{colorProps:xw(xw({},e.colorProps),t.colorProps||{})})}(M,t);return E.config(n),E.getAuxiliarySettings(S).then((function(){_=!0}))}};return D}var ES="center",_S="bottom",DS=[{key:"NoDataExist",alignment:ES,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:ES,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return"NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:ES,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:ES},{key:"DataRangeIncludingZero",alignment:_S},{key:"LimitedData",alignment:_S},{key:"NegativeOrZeroValues",alignment:_S}].reduce((function(e,t){return e[t.key]=t,e}),{}),qS=function(){return!1};function TS(e){var t,n=e.layout,r=e.config,i=void 0===r?{}:r,o={disclaimer:void 0,isSuppressing:!1,showDisclaimer:null!==(t=i.args)&&void 0!==t&&t.layoutService?i.args.layoutService.getLayoutValue("showDisclaimer"):null==n?void 0:n.showDisclaimer};return{initialize:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).args;o.disclaimer=function(e){var t=e.args,n=e.disclaimers,r=[];return Object.keys(n).forEach((function(e){var i=DS[e],o=n[e];o&&(o.condition||(null==i?void 0:i.condition)||qS)(t)&&r.push({key:(null==i?void 0:i.translationKey)||(null==i?void 0:i.key)||e,alignment:o.alignment||(null==i?void 0:i.alignment)||_S})})),r.find((function(e){return e.alignment===ES}))||r[0]}({args:xw(xw({layout:n},i.args),e),disclaimers:i.disclaimers||{}}),o.isSuppressing=!(!o.disclaimer||o.disclaimer.alignment!==ES)},getDisclaimer:function(){return o.isSuppressing?o.disclaimer:!1===o.showDisclaimer?void 0:o.disclaimer},getHasSuppressingDisclaimer:function(){return o.isSuppressing}}}function RS(e,t,n){if(void 0===e||void 0===t)return n;for(var r=t.split("."),i=e,o=0;o<r.length;++o){var a=r[o];if(void 0===i[a])return n;i=i[a]}return i}var NS=["__proto__","constructor"];function OS(e,t,n){if(void 0!==e&&void 0!==t){var r=t.split("."),i=r[r.length-1];if(!NS.some((function(e){return r.includes(e)}))){for(var o=e,a=0;a<r.length-1;++a){var s=r[a];void 0===o[s]&&(o[s]=Number.isNaN(+r[a+1])?{}:[]),o=o[s]}void 0!==n?o[i]=n:delete o[i]}}}function AS(){var e={};return{get:function(t){return e[t]},set:function(t,n){return e[t]=n,n},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}function PS(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var r=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(r,o)}),n)}}function IS(e){var t=e.originalArray,n=e.newArray,r=e.matchKey;return Array.isArray(t)&&t.length?(n.forEach((function(e){var n=-1;t.some((function(t,i){return t[r]&&t[r]===e[r]&&(n=i),n})),n>-1?t[n]=e:t.push(e)})),t):n}function LS(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 zS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?LS(Object(n),!0).forEach((function(t){FS(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function FS(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jS=Object.prototype.hasOwnProperty,$S=Object.prototype.toString,HS=Object.defineProperty,VS=Object.getOwnPropertyDescriptor,BS=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===$S.call(e)},US=function(e){if(!e||"[object Object]"!==$S.call(e))return!1;var t,n=jS.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&jS.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||jS.call(e,t)},WS=function(e,t){HS&&"__proto__"===t.name?HS(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},YS=function(e,t){if("__proto__"===t){if(!jS.call(e,t))return;if(VS)return VS(e,t).value}return e[t]},KS=function e(){var t,n,r,i,o,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=YS(s,n),s!==(i=YS(t,n))&&(u&&i&&(US(i)||(o=BS(i)))?(o?(o=!1,a=r&&BS(r)?r:[]):a=r&&US(r)?r:{},WS(s,{name:n,newValue:e(u,a,i)})):void 0!==i&&WS(s,{name:n,newValue:i}));return s};function GS(e,t,n,r){if(!e)return-1;const i=n.cache,o=e.origin?e.origin():null;o&&(e=o);let a=i.fields.indexOf(e),s=-1,l=-1;if(-1===a)for(let t=0;t<i.wrappedFields.length;t++)if(l=i.wrappedFields[t].attrDims.map((e=>e.instance)).indexOf(e),s=i.wrappedFields[t].attrExps.map((e=>e.instance)).indexOf(e),-1!==l||-1!==s){a=t;break}if(Array.isArray(r)&&r.some(((e,t)=>e!==t))){const e=r.indexOf(a);-1!==e&&(a=e)}return a-=t.qArea.qLeft,a<0||a>=t.qArea.qWidth?-1:l>=0?e=>e[a].qAttrDims.qValues[l]:s>=0?e=>e[a].qAttrExps.qValues[s]:e=>e[a]}function XS(e,t,n){let{key:r}=n;const i={value:"function"==typeof e.value?e.value(t):void 0!==e.value?e.value:t};return i.label="function"==typeof e.label?e.label(t):void 0!==e.label?String(e.label):String(i.value),e.field&&(i.source={key:r,field:e.field.key()}),i}function ZS(e){let{cache:t,f:n,mainCell:r,p:i,prop:o,page:a,rowIdx:s,row:l,sourceKey:c,target:u,targetProp:d,columnOrder:f}=e,h=r;if(i.field&&i.field!==n){const e=GS(i.field,a,{cache:t},f);if(-1===e)return;h=KS({qRow:s},e(l))}u[d]=XS(i,h,{key:c})}function JS(e,t,n,r){const i=Array.isArray(e)?e:[e];let o=[];for(let e=0;e<i.length;e++)if(void 0!==i[e].field){const a=t.raw(),s=t.key(),l="object"==typeof i[e].field?i[e].field:t.field(i[e].field),{props:c,main:u}=r.normalizeConfig(i[e],t),d=Object.keys(c),f=!!i[e].trackBy,h=typeof i[e].trackBy,p={},m=[],g=[];for(let t=0;t<a.qDataPages.length;t++){const o=GS(l,a.qDataPages[t],{cache:n},a.qColumnOrder);if(-1!==o)for(let y=0;y<a.qDataPages[t].qMatrix.length;y++){const v=a.qDataPages[t].qArea.qTop+y,b=KS({qRow:v},o(a.qDataPages[t].qMatrix[y])),x=XS(u,b,{key:s});if(!u.filter||u.filter(b)){for(let e=0;e<d.length;e++){const r=c[d[e]];let i=r.fields||[r];r.fields&&(x[d[e]]=[]);for(let o=0;o<i.length;o++)ZS({cache:n,f:l,mainCell:b,p:i[o],prop:d[e],props:c,page:a.qDataPages[t],rowIdx:v,row:a.qDataPages[t].qMatrix[y],sourceKey:s,target:r.fields?x[d[e]]:x,targetProp:r.fields?o:d[e],columnOrder:a.qColumnOrder});if(r.fields){const t=x[d[e]].map((e=>e.value)),n=x[d[e]].map((e=>e.label));x[d[e]]={value:"function"==typeof r.value?r.value(t):void 0!==r.value?r.value:t,label:"function"==typeof r.label?r.label(n):void 0!==r.label?String(r.label):String(x[d[e]].value)}}}f&&r.track({cfg:i[e],itemData:b,obj:x,target:m,tracker:p,trackType:h}),g.push(x)}}}const y=f?r.collect(m,{main:u,propsArr:d,props:c}):g;o=[...o,...y]}return o}function QS(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function eC(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=nC)):void 0===t&&(t=tC);for(var n,r,i,o,a,s=new oC(e),l=[s];n=l.pop();)if((i=t(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)l.push(r=i[o]=new oC(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(iC)}function tC(e){return e.children}function nC(e){return Array.isArray(e)?e[1]:null}function rC(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function iC(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function oC(e){this.data=e,this.depth=this.height=0,this.parent=null}function aC(e){return null==e?null:function(e){if("function"!=typeof e)throw new Error;return e}(e)}oC.prototype=eC.prototype={constructor:oC,count:function(){return this.eachAfter(QS)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,i,o=this,a=[o],s=[],l=-1;o=a.pop();)if(s.push(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r]);for(;o=s.pop();)e.call(t,o,++l,this);return this},eachBefore:function(e,t){for(var n,r,i=this,o=[i],a=-1;i=o.pop();)if(e.call(t,i,++a,this),n=i.children)for(r=n.length-1;r>=0;--r)o.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return eC(this).eachBefore(rC)},[Symbol.iterator]:function*(){var e,t,n,r,i=this,o=[i];do{for(e=o.reverse(),o=[];i=e.pop();)if(yield i,t=i.children)for(n=0,r=t.length;n<r;++n)o.push(t[n])}while(o.length)}};var sC={depth:-1},lC={},cC={};function uC(e){return e.id}function dC(e){return e.parentId}function fC(e){let t=e.length;if(t<2)return"";for(;--t>1&&!hC(e,t););return e.slice(0,t)}function hC(e,t){if("/"===e[t]){let n=0;for(;t>0&&"\\"===e[--t];)++n;if(0==(1&n))return!0}return!1}function pC(e,t){"/"===e.charAt(0)&&(e=e.substring(1));const n=e.split("/");let r,i=t;for(let e=0;e<n.length;e++){if("*"===n[e]&&Array.isArray(i)){const t=[];r=n.slice(e+1).join("/");for(let e=0;e<i.length;e++){let n=pC(r,i[e]);Array.isArray(n)?t.push(...n):t.push(n)}return t}if(!n[e]&&Array.isArray(i)){const t=new Array(i.length);r=n.slice(e+1).join("/");for(let e=0;e<i.length;e++)t[e]=pC(r,i[e]);return t}n[e]in i&&(i=i[n[e]])}return i}function mC(e,t,n){let r=[];if(!e||!e.length)return r;if(t<=0){const t=n>=0?[e[n]]:e;r=[...r,...t]}else for(let i=0;i<e.length;i++)e[i].children&&e[i].children.length&&(r=[...r,...mC(e[i].children,t-1,n)]);return r}function gC(e,t,n){if(e===t)return e=>e;if(e>t){const n=Math.max(0,Math.min(100,e-t));return e=>{let t=e;for(let e=0;e<n;++e)t=t.parent;return t}}if(t>e){const r=Math.max(0,Math.min(100,t-e));return e=>mC(e.children,r-1,n)}return!1}const yC=/^qDimensionInfo(?:\/(\d+))?/,vC=/^\/?qMeasureInfo\/(\d+)/,bC=/\/qAttrExprInfo\/(\d+)/,xC=/\/qAttrDimInfo\/(\d+)/;function wC(e){return(e.qColumnOrder&&e.qColumnOrder.length?e.qColumnOrder:e.qDimensionInfo.map(((e,t)=>t))).filter((t=>t<e.qDimensionInfo.length))}function kC(e,t){let{cube:n}=t;if(!e)return-1;let r=e.origin&&e.origin()?e.origin().key():e.key(),i=!1,o=-1,a=-1,s=-1,l=-1,c=-1,u=-1,d=r;const f=n.qEffectiveInterColumnSortOrder,h=wC(n);return yC.test(d)&&(i=!0,o=+yC.exec(d)[1],d=r.replace(yC,"")),vC.test(d)&&("K"===n.qMode?c=+vC.exec(d)[1]:f&&-1!==f.indexOf(-1)?(c=+vC.exec(d)[1],u=0):u=+vC.exec(d)[1],d=d.replace(vC,"")),d&&(xC.exec(d)?s=+xC.exec(d)[1]:bC.exec(d)&&(a=+bC.exec(d)[1])),l=i?"S"===n.qMode?h[o]:f?f.indexOf(o):o:f&&-1!==f.indexOf(-1)?f.indexOf(-1):n.qDimensionInfo.length-("K"===n.qMode?0:1),{fieldDepth:l+1,pseudoMeasureIndex:c,measureIdx:u,attrDimIdx:s,attrIdx:a}}function SC(e,t){let n,r,i=gC(e.fieldDepth,t.fieldDepth,t.pseudoMeasureIndex);return n=t.measureIdx>=0?e=>e.data.qValues[t.measureIdx]:e=>e.data,t.attrDimIdx>=0?r=e=>{var n;return null==e||null===(n=e.qAttrDims)||void 0===n?void 0:n.qValues[t.attrDimIdx]}:t.attrIdx>=0&&(r=e=>{var n;return null==e||null===(n=e.qAttrExps)||void 0===n?void 0:n.qValues[t.attrIdx]}),{nodeFn:i,attrFn:r,valueFn:n}}function CC(e,t,n){let{key:r}=n;const i={value:"function"==typeof e.value?e.value(t):void 0!==e.value?e.value:t};return i.label="function"==typeof e.label?e.label(t):void 0!==e.label?String(e.label):String(i.value),e.field&&(i.source={key:r,field:e.field.key()}),i}function MC(e){let{propsArr:t,props:n,item:r,itemData:i,ret:o,sourceKey:a}=e;for(let e=0;e<t.length;e++){const s=n[t[e]],l=s.fields||[s];let c,u;s.fields&&(c=[],u=[]);for(let n=0;n<l.length;n++){const d=l[n];let f,h,p,m,g,y;if("primitive"===d.type?(p=d.value,y=String(d.value)):("function"==typeof d.value&&(f=e=>d.value(e,r)),"function"==typeof d.label&&(h=e=>d.label(e,r)),d.accessor?(m=d.accessor(r),Array.isArray(m)?(g=m.map(d.valueAccessor),d.attrAccessor&&(g=g.map(d.attrAccessor)),f&&(p=g.map(f),f=null),h&&(y=g.map(h),h=null),p=d.reduce?d.reduce(p):p,y=d.reduceLabel?d.reduceLabel(y,p):String(p)):(p=d.attrAccessor?d.attrAccessor(d.valueAccessor(m)):d.valueAccessor(m),y=p)):(p=i,y=i)),s.fields){const e=f?f(p):p;c.push(e),u.push(h&&null!=y?h(y):null!=y?y:String(e))}else{const n=f?f(p):p;o[t[e]]={value:n,label:h?h(y):null!=y?y:String(n)},d.field&&(o[t[e]].source={field:d.field.key(),key:a})}}c&&(o[t[e]]={value:"function"==typeof s.value?s.value(c,r):c,label:"function"==typeof s.label?s.label(u,r):u})}}const EC=(e,t,n)=>{const r="K"===e.qMode?"/qStackedDataPages/*/qData":"/qTreeDataPages/*",i="K"===e.qMode?"qSubNodes":"qNodes",o=pC(r,e);return o&&o[0]?(t.tree=eC(o[0],n.children||(e=>e[i])),t.tree):null};function _C(e){const t=e.raw().qDataPages.length?e.raw().qDataPages[0].qMatrix:[],n=function(e){const t=e.raw().qColumnOrder,n=e.fields();return t&&t.length===n.length?t:n.map(((e,t)=>t))}(e),r=e.fields(),i=e.fields().filter((e=>"dimension"===e.type())).map((e=>n.indexOf(r.indexOf(e)))),o=e.fields().filter((e=>"measure"===e.type())).map((e=>n.indexOf(r.indexOf(e)))),a={__root:{__id:"__root",qValues:[]}};for(let e=0;e<t.length;e++){const n=t[e];let r="__root",l=!1;for(let e=0;e<i.length;e++){var s;const t=n[i[e]],o="".concat(r,"__").concat(null!==(s=t.qElemNumber)&&void 0!==s?s:t.qElemNo);a[o]||(a[o]=zS({__id:o,__parent:r,qValues:[]},t),l=!0),r=o}if(l)for(let e=0;e<o.length;e++){const t=n[o[e]];a[r].qValues.push(t)}}const l=Object.keys(a).map((e=>a[e]));return function(){var e,t=uC,n=dC;function r(r){var i,o,a,s,l,c,u,d,f=Array.from(r),h=t,p=n,m=new Map;if(null!=e){const t=f.map(((t,n)=>function(e){let t=(e=`${e}`).length;return hC(e,t-1)&&!hC(e,t-2)&&(e=e.slice(0,-1)),"/"===e[0]?e:`/${e}`}(e(t,n,r)))),n=t.map(fC),i=new Set(t).add("");for(const e of n)i.has(e)||(i.add(e),t.push(e),n.push(fC(e)),f.push(cC));h=(e,n)=>t[n],p=(e,t)=>n[t]}for(a=0,i=f.length;a<i;++a)o=f[a],c=f[a]=new oC(o),null!=(u=h(o,a,r))&&(u+="")&&(d=c.id=u,m.set(d,m.has(d)?lC:c)),null!=(u=p(o,a,r))&&(u+="")&&(c.parent=u);for(a=0;a<i;++a)if(u=(c=f[a]).parent){if(!(l=m.get(u)))throw new Error("missing: "+u);if(l===lC)throw new Error("ambiguous: "+u);l.children?l.children.push(c):l.children=[c],c.parent=l}else{if(s)throw new Error("multiple roots");s=c}if(!s)throw new Error("no root");if(null!=e){for(;s.data===cC&&1===s.children.length;)s=s.children[0],--i;for(let e=f.length-1;e>=0&&(c=f[e]).data===cC;--e)c.data=null}if(s.parent=sC,s.eachBefore((function(e){e.depth=e.parent.depth+1,--i})).eachBefore(iC),s.parent=null,i>0)throw new Error("cycle");return s}return r.id=function(e){return arguments.length?(t=aC(e),r):t},r.parentId=function(e){return arguments.length?(n=aC(e),r):n},r.path=function(t){return arguments.length?(e=aC(t),r):e},r}().id((e=>e.__id)).parentId((e=>e.__parent))(l)}const DC=e=>{let{propsArr:t,props:n,cube:r,cache:i,itemDepthObject:o,f:a}=e;for(let e=0;e<t.length;e++){const s=n[t[e]],l=s.fields?s.fields:[s];for(let e=0;e<l.length;e++){const t=l[e];if(t.field!==a){const e=SC(o,kC(t.field,{cube:r,cache:i}));t.accessor=e.nodeFn,t.valueAccessor=e.valueFn,t.attrAccessor=e.attrFn}}}};function qC(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;const i=t.raw(),o=t.key(),a="S"===i.qMode?_C(t):EC(i,n,e);if(!a)return null;const s=a.height,l=[];for(let o=0;o<=s;o++){let a=null;if(o>0)if("S"===i.qMode){let e=wC(i)[o-1];a=n.fields[e]}else{let e=i.qEffectiveInterColumnSortOrder[o-1];o>i.qEffectiveInterColumnSortOrder.length&&(e=i.qDimensionInfo.length),a=n.fields[e]}const{props:s,main:c}=r.normalizeConfig(zS(zS({},e),{},{field:a?a.key():void 0}),t),u=Object.keys(s);l[o]={propsArr:u,props:s,main:c};const d=a?kC(a,{cube:i,cache:n}):{fieldDepth:0};DC({propsArr:u,props:s,cube:i,cache:n,itemDepthObject:d,f:a})}const c=a.copy().descendants(),u=a.descendants();for(let e=0;e<u.length;e++){const t=l[u[e].depth].propsArr,n=l[u[e].depth].props,r=l[u[e].depth].main,i=c[e],a=i.data,s=CC(r,a,{key:o});MC({propsArr:t,props:n,item:i,itemData:a,ret:s,sourceKey:o,isTree:!0}),u[e].data=s}return a}function TC(e,t,n,r){const i=Array.isArray(e)?e:[e];let o=[];for(let a=0;a<i.length;a++)if(void 0!==i[a].field){const s=t.raw(),l=t.key();if(!EC(s,n,e))continue;const c="object"==typeof i[a].field?i[a].field:t.field(i[a].field),{props:u,main:d}=r.normalizeConfig(i[a],t),f=Object.keys(u),h=kC(c,{cube:s,cache:n}),{nodeFn:p,attrFn:m,valueFn:g}=SC({fieldDepth:0},h);DC({propsArr:f,props:u,cube:s,cache:n,itemDepthObject:h,f:c});const y=!!i[a].trackBy,v=typeof i[a].trackBy,b={},x=[],w=p(n.tree),k=[];for(let e=0;e<w.length;e++){const t=w[e],n=m?m(g(t)):g(t);if(d.filter&&!d.filter(n))continue;const o=CC(d,n,{key:l});MC({propsArr:f,props:u,item:t,itemData:n,ret:o,sourceKey:l}),y&&r.track({cfg:i[a],itemData:n,obj:o,target:x,tracker:b,trackType:v}),k.push(o)}const S=y?r.collect(x,{main:d,propsArr:f,props:u}):k;o=[...o,...S]}return o}var RC,NC,OC=(RC=function(e){
|
|
15
15
|
/*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
|
|
16
|
-
e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,i,o,a,s,l,c,u,d,f=e.length,h=e.search(/[0-9\-\+#]/),p=h>0?e.substring(0,h):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),y=f-g,v=e.substring(y,y+1),b=y+("."===v||","===v?1:0),x=g>0?e.substring(b,f):"";if(n=(t="-"===(e=e.substring(h,b)).charAt(0)?-t:+t)<0?t=-t:0,i=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",o=r&&r[1]&&r[0]||",",e=e.split(i),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(c=t.split("."))[1]||c[1]&&c[1].length<=s)&&(t=(+t).toFixed(s+1)),u=e[0].split(o),e[0]=u.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;c[0].length<e[0].length-a;)c[0]="0"+c[0];else 0==+c[0]&&(c[0]="");if((t=t.split("."))[0]=c[0],l=u[1]&&u[u.length-1].length){for(m="",y=(d=t[0]).length%l,f=d.length,b=0;b<f;b++)m+=d.charAt(b),!((b-y+1)%l)&&b<f-l&&(m+=o);t[0]=m}return t[1]=e[1]&&t[1]?i+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),p+(n?"-":"")+r+x}},RC(NC={exports:{}}),NC.exports);function AC(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}const PC={3:"k",6:"M",9:"G",12:"T",15:"P",18:"E",21:"Z",24:"Y","-3":"m","-6":"μ","-9":"n","-12":"p","-15":"f","-18":"a","-21":"z","-24":"y"},IC=/%\)?$/,LC=/^\(r(0[2-9]|[12]\d|3[0-6])\)/i,zC=/^\(oct\)/i,FC=/^\(dec\)/i,jC=/^\(hex\)/i,$C=/^\(bin\)/i,HC=/^\(rom\)/i,VC=/^(\(rom\)|\(bin\)|\(hex\)|\(dec\)|\(oct\)|\(r(0[2-9]|[12]\d|3[0-6])\))/i,BC=/#|0/g;function UC(e,t,n,r){return e=e.toString(t),n[1]===n[1].toUpperCase()&&(e=e.toUpperCase()),e.length-e.indexOf(".")>10&&(e=e.slice(0,e.indexOf(".")+11)),e.replace(".",r||".")}function WC(e,t,n){const r=AC(e);return n?r:new RegExp(r||"",t)}function YC(e,t,n,r){let i,o,a,s,l,c,u,d,f,h=e.pattern;var p,m;r&&(e.abbreviate=!0),p=t,(m=n)&&(m=AC(m)),p&&(p=AC(p)),f=new RegExp("(?:[#0]+".concat(p,")?[#0]+(?:").concat(m,"[#0]+)?")),a=h.match(f),a=a?a[0]:"",s=a?h.substr(0,h.indexOf(a)):h,l=a?h.substring(h.indexOf(a)+a.length):"",a||(a=h?"#":"##########"),t&&t===n&&(i=a.split(n),o=i.pop(),a=i.join("")+n+o,t=""),c=t,t=/,/.test(n)?"¤":",",c&&(a=a.replace(WC(c,"g"),t)),u=n,n=".",u&&(a=a.replace(WC(u,"g"),n)),d=a.match(/#/g),d=d?d.length:0;const g=h.split(u);let y;g[1]&&(y=g[1].match(BC)),e.prefix=s||"",e.postfix=l||"",e.pattern=h,e.maxPrecision=y?y.length:2,e.percentage=IC.test(h),e.numericPattern=a||"",e.numericRegex=new RegExp("".concat(WC(t,null,!0),"|").concat(WC(n,null,!0)),"g"),e.groupTemp=c,e.decTemp=u,e.t=t,e.d=n,e.temp=d}class KC{constructor(e,t,n,r,i){this.localeInfo=e,this.pattern=t,this.thousandDelimiter=n||",",this.decimalDelimiter=r||".",this.type=i||"numeric",this.patternSeparator=";",this.abbreviations=function(e,t){if(!e||!e.qNumericalAbbreviation)return PC;const n={};return e.qNumericalAbbreviation.split(t).forEach((e=>{let t=e.split(":");2===t.length&&(n[t[0]]=t[1])})),n}(e,this.patternSeparator),this.prepare()}clone(){const e=new KC(this.localeInfo,this.pattern,this.thousandDelimiter,this.decimalDelimiter,this.type);return e.subtype=this.subtype,e}format(e,t,n,r){return this.prepare(t,n,r),this.formatValue(e)}prepare(e,t,n){let r;if(void 0===e&&(e=this.pattern),void 0===t&&(t=this.thousandDelimiter),void 0===n&&(n=this.decimalDelimiter),!e)return void(this._prepared={pattern:!1});this._prepared={positive:{d:n,t:t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""},negative:{d:n,t:t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""},zero:{d:n,t:t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""}},r=this._prepared,e=e.split(this.patternSeparator),r.positive.pattern=e[0],r.negative.pattern=e[1],r.zero.pattern=e[2],VC.test(e[0])&&(r.positive.isFunctional=!0),e[1]?VC.test(e[1])&&(r.negative.isFunctional=!0):r.negative=!1,e[2]?VC.test(e[2])&&(r.zero.isFunctional=!0):r.zero=!1;const i="U"===this.type;r.positive.isFunctional||YC(r.positive,t,n,i),r.negative&&!r.negative.isFunctional&&YC(r.negative,t,n,i),r.zero&&!r.zero.isFunctional&&YC(r.zero,t,n,i)}formatValue(e){let t,n,r,i,o,a,s,l,c,u=this._prepared,d="",f="",h=e;if(isNaN(e))return"".concat(h);if(e=+e,!1===u.pattern)return e.toString();if(0===e&&u.zero)return u=u.zero,u.pattern;if(e<0&&u.negative?(u=u.negative,e=-e):u=u.positive,o=u.d,a=u.t,u.isFunctional)e=function(e,t,n){let r;return LC.test(t)?e=UC(e,Number(/\d{2}/.exec(t)[0]),t,n):zC.test(t)?e=UC(e,8,t,n):FC.test(t)?e=UC(e,10,t,n):jC.test(t)?e=UC(e,16,t,n):$C.test(t)?e=UC(e,2,t,n):HC.test(t)&&(r="",e<0&&(r="-",e=-e),0===(e=Math.floor(e))?e="0":e<=5e5?(e=function(e,t){let n,r="",i=Number(String(e).slice(-3)),o=(e-i)/1e3,a=[0,1,4,5,9,10,40,50,90,100,400,500,900].reverse(),s=["0","I","IV","V","IX","X","XL","L","XC","C","CD","D","CM"].reverse();for(;i>0;)for(n=0;n<a.length;n++)if(a[n]<=i){r+=s[n],i-=a[n];break}for(n=0;n<o;n++)r="M".concat(r);return t[1]!==t[1].toUpperCase()&&(r=r.toLowerCase()),r}(e,t),e=r+e):e=t+r+e.toExponential(0)),e}(e,u.pattern,o);else{if(u.percentage&&(e*=100),u.abbreviate){const t=Object.keys(this.abbreviations).map((e=>parseInt(e,10))).sort(((e,t)=>e-t));let r,i,o=t[0];for(s=0,n=Number(Number(e).toExponential().split("e")[1]);o<=n&&s<t.length;)s++,o=t[s];s>0&&(r=t[s-1]),r&&n>0&&r>0?i=r:(n<0&&r<0||!r)&&(o<0&&o-n<=u.maxPrecision?i=o:r<=n&&!(o>0&&-n<=u.maxPrecision)&&(i=r)),i&&(d=this.abbreviations[i],e/=10**i)}if(r=Math.abs(e),t=u.temp,l=u.numericPattern,c=l.split(o)[1],"I"===this.type&&(e=Math.round(e)),i=e,c||"#"!==l.slice(-1)[0])if(r>=1e15||r>0&&r<=1e-14)e=r?r.toExponential(15).replace(/\.?0+(?=e)/,""):"0";else{const t=Number(e.toFixed(Math.min(20,c?c.length:0)).split(".")[0]);let n=l.split(o)[0];if(n+=o,e=OC(n,t)||"0",c){const t=Math.max(0,Math.min(14,c.length)),n=c.replace(/#+$/,"").length;let i=("I"===this.type?0:r%1+1e-15).toFixed(t).slice(2).replace(/0+$/,"");for(s=i.length;s<n;s++)i+="0";i&&(e+=o+i)}else 0===t&&(i=0)}else if(r>=10**t||r<1||r<1e-4)0===e?e="0":r<1e-4||r>=1e20?(e=(e=i.toExponential(Math.max(1,Math.min(14,t))-1)).replace(/\.?0+(?=e)/,""),f=""):(e=e.toPrecision(Math.max(1,Math.min(14,t)))).indexOf(".")>=0&&(e=(e=e.replace(e.indexOf("e")<0?/0+$/:/\.?0+(?=e)/,"")).replace(".",o));else{for(l+=o,t=Math.max(0,Math.min(20,t-Math.ceil(Math.log(r)/Math.log(10)))),s=0;s<t;s++)l+="#";e=OC(l,e)}e=e.replace(u.numericRegex,(e=>e===a?u.groupTemp:e===o?u.decTemp:"")),i<0&&!/^-/.test(e)&&(e="-".concat(e))}return u.prefix+e+f+d+u.postfix}static getStaticFormatter(){return{prepare(){},formatValue:e=>"".concat(e)}}}function GC(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{size:n=5e3,multipleArguments:r=!1,toKey:i=(e=>e)}=t;let o,a,s=Object.create(null),l=Object.create(null),c=0,u=0;return o=r?function(){return a=i(...arguments),o.has(a)?o.get(a):o.set(a,e(...arguments))}:t=>(a=i(t),o.has(a)?o.get(a):o.set(a,e(t))),o.set=(e,t)=>(c>=n&&(delete s[l[u]],delete l[u],c--,u++),s[e]=t,l[c]=e,c++,t),o.get=e=>s[e],o.has=e=>e in s,o.clear=()=>{s=Object.create(null),l=Object.create(null),c=0,u=0},o.size=()=>c,o}function XC(e,t,n,r,i){const o=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new KC(...t)}(i,e,t,n,r),a=GC(o.formatValue.bind(o),{toKey:e=>isNaN(e)?e:+e});function s(e){return a(e)}return s.format=function(e,t,n,r){return a.clear(),o.format(t,e,n,r)},s.pattern=function(e){return e&&(a.clear(),o.pattern=e,o.prepare()),o.pattern},s}const ZC="IV",JC=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],QC=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],eM=["January","February","March","April","May","June","July","August","September","October","November","December"],tM=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function nM(e,t){for(let n=e.length;n<t;n++)e="0".concat(e);return e}function rM(e){let t=e.toString().split(".");return t[1]?(t=Number("0.".concat(t[1])),t):0}class iM{constructor(e,t,n){const r=e||{};r.qCalendarStrings||(r.qCalendarStrings={qLongDayNames:JC,qDayNames:QC,qLongMonthNames:eM,qMonthNames:tM}),this.localeInfo=r,this.locale_days=r.qCalendarStrings.qLongDayNames.slice(),this.locale_days_abbr=r.qCalendarStrings.qDayNames.slice(),this.locale_months=r.qCalendarStrings.qLongMonthNames.slice(),this.locale_months_abbr=r.qCalendarStrings.qMonthNames.slice(),t||(t={T:r.qTimeFmt||"hh:mm:ss",D:r.qDateFmt||"YYYY-MM-DD",TS:r.qTimestampFmt||"YYYY-MM-DD hh:mm:ss"}[n]),this.pattern=t}clone(){const e=new iM(this.localeInfo,this.pattern);return e.subtype=this.subtype,e}format(e,t){t||(t=this.pattern?this.pattern:"YYYY-MM-DD hh:mm:ss"),t=t.replace(/\[.+]|\[|]/g,"");const n=/t+/gi.test(t);let r;e instanceof Date?r=function(e,t){let n=e.getUTCHours(),r=e.getUTCDay()-1;return t&&(n%=12,n||(n=12)),r<0&&(r=6),{year:e.getUTCFullYear(),month:e.getUTCMonth(),day:r,date:e.getUTCDate(),h:n,m:e.getUTCMinutes(),s:e.getUTCSeconds(),f:e.getUTCMilliseconds(),t:e.getUTCHours()>=12?"pm":"am"}}(e,n):(e<0&&(e=-e,t="-".concat(t)),r=function(e,t){let n,r=function(e){const t=e,n=24*rM(t),r=60*rM(n),i=60*rM(r),o=1e3*rM(i);return{d:Math.floor(t),h:Math.floor(n),m:Math.floor(r),s:Math.floor(i),f:Math.round(o)}}(e),i=r.d,o=r.h,a=r.m,s=r.s,l=r.f,c=0;/w+|t+/gi.test(t)&&(n=new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,Math.round(86400*(e-Math.floor(e))))),isNaN(n.getTime())&&(n=null)),/D+/gi.test(t)||(o+=24*i),/h+/gi.test(t)||(a+=60*o),/m+/gi.test(t)||(s+=60*a),/w+/gi.test(t)&&(c=n?n.getDay()-1:0,c<0&&(c=6));let u="";return n&&(u=n.getUTCHours()>=12?"pm":"am"),{year:0,month:0,day:c,date:i,h:o,m:a,s:s,f:l,t:u}}(e,t));const i=(o=this,a=r,{"Y+|y+":{Y:"".concat(Number("".concat(a.year).slice(-2))),YY:nM("".concat(a.year).slice(-2),2),YYY:nM("".concat(a.year).slice(-3),3),def:e=>nM("".concat(a.year),e.length)},"M+":{M:a.month+1,MM:nM("".concat(a.month+1),2),MMM:o.locale_months_abbr[a.month],def:o.locale_months[a.month]},"W+|w+":{W:a.day,WW:nM("".concat(a.day),2),WWW:o.locale_days_abbr[a.day],def:o.locale_days[a.day]},"D+|d+":{D:a.date,def:e=>nM("".concat(a.date),e.length)},"h+|H+":{h:a.h,def:e=>nM("".concat(a.h),e.length)},"m+":{m:a.m,def:e=>nM("".concat(a.m),e.length)},"s+|S+":{s:a.s,def:e=>nM("".concat(a.s),e.length)},"f+|F+":{def(e){let t="".concat(a.f),n=e.length-t.length;if(n>0)for(let e=0;e<n;e++)t+="0";else n<0&&(t=t.slice(0,e.length));return t}},"t{1,2}|T{1,2}":{def(e){let t=a.t;return e[0].toUpperCase()===e[0]&&(t=t.toUpperCase()),t=t.slice(0,e.length),t}}});var o,a;const s=[];for(const e in i)Object.prototype.hasOwnProperty.call(i,e)&&s.push(e);const l=new RegExp(s.join("|"),"g");return t.replace(l,(e=>{let t,n,r;for(n in i)if(Object.prototype.hasOwnProperty.call(i,n)&&(t=new RegExp(n),t.test(e)))break;if(!t)return"";for(const t in i[n])if(t===e||t.toLowerCase()===e){r=i[n][t],void 0===r&&(r=i[n][t.toLowerCase()]);break}return void 0===r&&(r=i[n].def),"function"==typeof r&&(r=r(e)),r}))}}function oM(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new iM(...t)}function aM(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"TS",n=oM(arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,e,t),r=GC(n.format.bind(n),{toKey:e=>"object"==typeof e&&"function"==typeof e.getTime?e.getTime():e});function i(e){return t!==ZC?function(e){return new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,0,Math.round(864e5*(e-Math.floor(e)))))}(e):e}function o(e){return e=i(e),r(e)}return o.format=function(e,t){return r.clear(),t=i(t),n.format(t,e)},o.locale=function(i){return n=oM(i,e,t),r=GC(n.format.bind(n),{toKey:e=>"object"==typeof e?e.getTime():e}),this},o.qtype=function(e){return void 0!==e&&(t=e,r.clear()),t},o}function sM(){let e,{meta:t,id:n,key:r,localeInfo:i,fieldExtractor:o,value:a,type:s,sourceField:l}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const c=a||("dimension"===s?e=>null==e?void 0:e.qElemNo:e=>null==e?void 0:e.qValue),u="dimension"===s?"first":"avg",d=function(e,t){if(e&&e.qNumFormat&&-1!==["D","T","TS","IV"].indexOf(e.qNumFormat.qType))return aM(e.qNumFormat.qFmt,e.qNumFormat.qType,t);let n="#",r=t&&void 0!==t.qThousandSep?t.qThousandSep:",",i=t&&void 0!==t.qDecimalSep?t.qDecimalSep:".",o="U",a=e&&!!e.qIsAutoFormat;return e&&e.qNumFormat?(n=e.qNumFormat.qFmt||n,r=e.qNumFormat.qThou||r,i=e.qNumFormat.qDec||i,o=e.qNumFormat.qType||o,a=a&&-1===["M"].indexOf(e.qNumFormat.qType)):a=!0,(a||"U"===o)&&(n="#".concat(i,"##"),o="U"),XC(n,r,i,o,t)}(t,i),f="dimension"===s?"first":(e,t)=>d(t),h={id:()=>n,key:()=>r,raw:()=>t,title:()=>t.qFallbackTitle||t.label,type:()=>s,origin:()=>l,items:()=>(e||(e=o(h)),e),min:()=>t.qMin,max:()=>t.qMax,value:c,label:e=>(null==e?void 0:e.qText)||"",reduce:u,reduceLabel:f,formatter:()=>d,tags:()=>t.qTags};return h}function lM(e,t,n,r,i){return(t[e]||[]).map(((t,o)=>{const a="".concat(r?"".concat(r,"/"):"").concat(e,"/").concat(o),s={instance:sM(KS({id:"".concat(n?"".concat(n,"/"):"").concat(a),key:a,meta:t},i))};return s.attrDims=lM("qAttrDimInfo",t,n,a,KS({},i,{value:e=>null==e?void 0:e.qElemNo,type:"dimension"})),s.attrExps=lM("qAttrExprInfo",t,n,a,KS({},i,{value:e=>null==e?void 0:e.qNum,type:"measure"})),s.measures=lM("qMeasureInfo",t,n,a,KS({},i,{value:e=>null==e?void 0:e.qValue,type:"measure"})),s}))}function cM(){let{key:e,data:t,config:n={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r={fields:[],wrappedFields:[],allFields:[],virtualFields:[]},i=t;if(!i)throw new Error('Missing "data" input');if(!i.qDimensionInfo)throw new Error('The "data" input is not recognized as a hypercube');const o=cM.util,a={cache:r,cube:i,localeInfo:n.localeInfo,fieldExtractor:null,pages:null,hierarchy:()=>null,virtualFields:n.virtualFields},s={key:()=>e,raw:()=>i,field:e=>function(e,t){let{cache:n}=t;if("number"==typeof e)return n.fields[e];const r=n.allFields;if("function"==typeof e){for(let t=0;t<r.length;t++)if(e(r[t]))return r[t];return!1}if("string"==typeof e){for(let t=0;t<r.length;t++)if(r[t].key()===e||r[t].title()===e)return r[t]}else if(e&&-1!==r.indexOf(e))return e;throw Error("Field not found: ".concat(e))}(e,a),fields:()=>r.fields.slice(),extract:e=>a.extractor(e,s,r,o),hierarchy:e=>a.hierarchy(e,s,r,o),_cache:()=>r};"K"===i.qMode||"T"===i.qMode||!i.qMode&&i.qNodesOnDim?(a.extractor=TC,a.hierarchy=qC,a.pages="K"===i.qMode?i.qStackedDataPages:i.qTreeDataPages):"S"===i.qMode?(a.extractor=JS,a.pages=i.qDataPages,a.hierarchy=qC):a.extractor=()=>[],a.fieldExtractor=e=>a.extractor({field:e},s,r,o);const l="S"===i.qMode?e=>e.qElemNumber:void 0,c="S"===i.qMode?e=>e.qNum:void 0;r.wrappedFields.push(...lM("qDimensionInfo",i,e,"",KS({},a,{value:l,type:"dimension"}))),r.wrappedFields.push(...lM("qMeasureInfo",i,e,"",KS({},a,{value:c,type:"measure"}))),r.fields=r.wrappedFields.map((e=>e.instance));const u=e=>{e.forEach((e=>{r.allFields.push(e.instance),u(e.measures),u(e.attrDims),u(e.attrExps)}))};return u(r.wrappedFields),(n.virtualFields||[]).forEach((t=>{const n=s.field(t.from),i=sM(zS({meta:n.raw(),id:"".concat(e,"/").concat(t.key),sourceField:n,fieldExtractor:e=>a.extractor({field:e},s,r,o),key:t.key,type:n.type(),localeInfo:a.localeInfo,value:n.value},t.override||{}));r.virtualFields.push(i)})),r.allFields.push(...r.virtualFields),s}const uM=[["qHyperCube","qHyperCubeDef"],["qTreeData","qTreeDataDef"],["qDimensionInfo","qDimensions"],["qMeasureInfo","qMeasures"],["qAttrDimInfo","qAttributeDimensions"],["qAttrExprInfo","qAttributeExpressions"]],dM=/\/qDimensionInfo(?:\/(\d+))?/,fM=/\/qMeasureInfo\/(\d+)/,hM=/\/qAttrDimInfo\/(\d+)(?:\/(\d+))?/,pM=/\/qAttrExprInfo\/(\d+)/,mM=/\/?qHyperCube/,gM=/\/?qTreeData/,yM=e=>"".concat(e.substr(0,e.indexOf("/qHyperCubeDef")+14)),vM=e=>"".concat(e.substr(0,e.indexOf("/qTreeDataDef")+13));function bM(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r=t.byCells,i=t.primarySource,o=[],a={},s=e.isActive();let l=!1;return e.brushes().forEach((e=>{const t=function(e,t){let n=e,r=-1,i=-1,o="",a=e=>e;mM.test(e)?(o="".concat(n.substr(0,n.indexOf("qHyperCube")+10)),a=yM):gM.test(e)&&(o="".concat(n.substr(0,n.indexOf("qTreeData")+9)),a=vM);let s=!0;if(dM.test(e)&&(r=+dM.exec(e)[1]),fM.test(e)&&(i=+fM.exec(e)[1]),hM.test(e)){i=-1,r=0;const e=+hM.exec(n)[2];isNaN(e)||(r=e,n=n.replace(/\/\d+$/,"")),s=!1}if(pM.test(e)){const e=i;if(t){i=0;const a=pC(o,t);i+=(a.qMeasureInfo||[]).length,r>-1?(i=a.qDimensionInfo.slice(0,r).reduce(((e,t)=>e+t.qAttrExprInfo.length),i),r=-1):(i=a.qDimensionInfo.reduce(((e,t)=>e+t.qAttrExprInfo.length),i),i=a.qMeasureInfo.slice(0,e).reduce(((e,t)=>e+t.qAttrExprInfo.length),i)),i+=+pM.exec(n)[1]}else r>-1?(r=-1,i=+pM.exec(n)[1]):i+=+pM.exec(n)[1]+1}return uM.forEach((e=>{let[t,r]=e;n=n.replace(t,r)})),s&&(n=a(n)),n&&"/"!==n[0]&&(n="/".concat(n)),{measureIdx:i,dimensionIdx:r,path:n}}(e.id,n);if("range"===e.type&&t.measureIdx>-1&&t.dimensionIdx>-1){const n=e.brush.ranges();n.length&&(l=!0,a.multiRangeSelectTreeDataValues||(a.multiRangeSelectTreeDataValues={path:t.path,ranges:[]}),n.forEach((e=>a.multiRangeSelectTreeDataValues.ranges.push({qMeasureIx:t.measureIdx,qDimensionIx:t.dimensionIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!0}}))))}else{if("range"===e.type&&t.measureIdx>-1){const n=e.brush.ranges();n.length&&(l=!0,a.rangeSelectHyperCubeValues||(a.rangeSelectHyperCubeValues={path:t.path,ranges:[]}),n.forEach((e=>a.rangeSelectHyperCubeValues.ranges.push({qMeasureIx:t.measureIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!0}}))))}if("range"===e.type&&t.dimensionIdx>-1){const n=e.brush.ranges();n.length&&(l=!0,a.selectHyperCubeContinuousRange||(a.selectHyperCubeContinuousRange={path:t.path,ranges:[]}),n.forEach((e=>a.selectHyperCubeContinuousRange.ranges.push({qDimIx:t.dimensionIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!1}}))))}if("value"===e.type&&t.dimensionIdx>-1)if(r)if(n&&n.qHyperCube&&("P"===n.qHyperCube.qMode||"T"===n.qHyperCube.qMode||"K"===n.qHyperCube.qMode)){const r=n.qHyperCube,o=r.qNoOfLeftDims,s=r.qEffectiveInterColumnSortOrder.indexOf(t.dimensionIdx);if(a.selectPivotCells||(a.selectPivotCells={path:t.path,cells:[]}),e.id===i||!i){const n=e.brush.values().map((e=>+e)).filter((e=>!isNaN(e)));(0===o||s>=o)&&o>-1?n.forEach((e=>{a.selectPivotCells.cells.push({qType:"T",qCol:e,qRow:s-o})})):n.forEach((e=>{a.selectPivotCells.cells.push({qType:"L",qCol:t.dimensionIdx,qRow:e})})),l=!!a.selectPivotCells.cells.length}}else a.selectHyperCubeCells||(a.selectHyperCubeCells={path:t.path,cols:[]}),a.selectHyperCubeCells.cols.push(t.dimensionIdx),e.id!==i&&(i||a.selectHyperCubeCells.values)||(a.selectHyperCubeCells.values=e.brush.values().map((e=>+e)).filter((e=>!isNaN(e))),l=!!a.selectHyperCubeCells.values.length);else{const n=e.brush.values().map((e=>+e)).filter((e=>!isNaN(e)));l=!!n.length,o.push({params:[t.path,t.dimensionIdx,n,!1],method:"selectHyperCubeValues"})}}})),!l&&s?[{method:"resetMadeSelections",params:[]}]:(a.rangeSelectHyperCubeValues&&o.push({method:"rangeSelectHyperCubeValues",params:[a.rangeSelectHyperCubeValues.path,a.rangeSelectHyperCubeValues.ranges,[],null===(c=t.orMode)||void 0===c||c]}),a.selectHyperCubeContinuousRange&&o.push({method:"selectHyperCubeContinuousRange",params:[a.selectHyperCubeContinuousRange.path,a.selectHyperCubeContinuousRange.ranges]}),a.selectHyperCubeCells&&o.push({method:"selectHyperCubeCells",params:[a.selectHyperCubeCells.path,a.selectHyperCubeCells.values,a.selectHyperCubeCells.cols]}),a.selectPivotCells&&o.push({method:"selectPivotCells",params:[a.selectPivotCells.path,a.selectPivotCells.cells]}),a.multiRangeSelectTreeDataValues&&o.push({method:"multiRangeSelectTreeDataValues",params:[a.multiRangeSelectTreeDataValues.path,a.multiRangeSelectTreeDataValues.ranges]}),o);var c}function xM(e){cM.util=e.data("matrix").util,e.data("q",cM),e.formatter("q-number",XC),e.formatter("q-time",aM)}function wM(e){var t=RS(e.layout||{},e.path.split("/").join("."));if(!t)return!1;var n=t.qIsOneAndOnlyOne;return void 0!==n&&n}function kM(e){var t=e.brush,n=e.colorField,r=e.legendAlias,i=e.useLegendCube,o=void 0!==i&&i;!n||/qAttrDimInfo/.test(n)?(t.removeKeyAlias("attrDim/qDimensionInfo/0"),r&&t.removeKeyAlias(r),t.addKeyAlias("attrDim/qDimensionInfo/0","qHyperCube/".concat(n))):o&&t.addKeyAlias(r,"qHyperCube/".concat(n))}xM.qBrushHelper=bM,xM.selections=bM;var SM="Shift";var CM=function e(t,n){return n[t]?e(t+1,n):t},MM=function(e,t){var n=t.reduce((function(e,t){return e[t]=!0,e}),{});return e.reduce((function(e,t,r){var i=CM(r,n);return n[i]=!0,e[r]=i,e}),{})};function EM(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.layout,n=e.filtered,r=void 0===n?{}:n,i=(null==t?void 0:t.qHyperCube)||{},o=i.qDimensionInfo,a=void 0===o?[]:o,s=i.qMeasureInfo,l=void 0===s?[]:s;return{dimensions:MM(a,r.dimensions||[]),measures:MM(l,r.measures||[])}}var _M="selectHyperCubeValues",DM="selectHyperCubeContinuousRange";function qM(e){var t=e.selection,n=e.fieldMap,r=t.method,i=t.params;if(r===_M){var o=n.dimensions[i[1]];void 0!==o&&(i[1]=o)}return r===DM&&i[1].forEach((function(e){var t=n.dimensions[e.qDimIx];void 0!==t&&(e.qDimIx=t)})),t}var TM=[],RM=0,NM=function(e){var t=TM.filter((function(e){var t;return null===(t=e.selections)||void 0===t?void 0:t.isActive()}));t.length&&("Enter"===e.key?t.forEach((function(e){return e.selections.confirm()})):"Escape"!==e.key&&"Esc"!==e.key||t.forEach((function(e){return e.selections.cancel()})))},OM=function(){document.addEventListener("keyup",NM)},AM=function(){document.removeEventListener("keyup",NM)},PM=function(e,t){Object.keys(t).forEach((function(n){e.on(n,t[n])}))},IM=function(e,t){Object.keys(t).forEach((function(n){e.removeListener(n,t[n])}))};function LM(e){var t=e.chart,n=e.document,r=e.selectionInfo,i=e.eventName,o=e.componentName,a=e.brushName,s=void 0===a?"selection":a,l=e.emit,c=void 0===l?"rangeClear":l,u=r.event===i,d=n.querySelector("[data-key='".concat(o,"-edge-0']"));if(u||!d)return!1;var f=t.component(o);return!!f&&(f.emit(c),"string"==typeof s&&t.brush(s).clear(),f)}var zM=["chart","document","selections","selectionInfo"],FM=function(e){e.chart,e.document,e.selections,e.selectionInfo;var t=Ew(e,zM);t.clearDiscrete(),t.clearContinuous(),t.clearMinor(),t.clearRange(),t.clearTap(),t.clearLegend()};function jM(e){var t,n=e.lasso;null!=n&&null!==(t=n.active)&&void 0!==t&&t.call(n)&&(null==n||n.action(!1))}function $M(e){var t,n=e.chart,r=e.selectionInfo,i=e.selectionActions,o=e.actions,a=void 0===o?{}:o,s=e.selections,l=e.selectionEvents;if(!1===i||!1===l)return function(){};var c=i.reset,u=void 0===c?jM:c,d=i.clear,f=!1!==d&&function(e){var t=e.clear,n=void 0===t?FM:t,r=e.selections,i=e.selectionInfo,o=e.chart;return function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).cleared,t={selections:r,selectionInfo:i,chart:o,document:document,cleared:e};return n(xw({clearDiscrete:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e){var t=e.selectionInfo,n=e.chart,r=e.document,i=e.eventName,o=void 0===i?"discreteRange":i,a=e.componentName,s=void 0===a?"discrete-range-brush":a,l=e.cleared;return LM({selectionInfo:t,chart:n,document:r,eventName:void 0!==l&&l?void 0:o,componentName:s,emit:"areaClear",brushName:e.brushName})}(xw(xw({},t),e))},clearContinuous:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e){var t=e.selectionInfo,n=e.chart,r=e.document,i=e.eventName,o=void 0===i?"continuousRange":i,a=e.componentName,s=void 0===a?"continuous-range-brush":a,l=e.cleared;return LM({selectionInfo:t,chart:n,document:r,eventName:void 0!==l&&l?void 0:o,componentName:s,brushName:e.brushName})}(xw(xw({},t),e))},clearMinor:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e){var t=e.selectionInfo,n=e.chart,r=e.document,i=e.componentName,o=void 0===i?"minor-range-brush":i,a=e.eventName,s=void 0===a?"minorRange":a,l=e.cleared,c=void 0!==l&&l,u=e.brushName,d=LM({selectionInfo:t,chart:n,document:r,eventName:c?void 0:s,componentName:o,brushName:void 0!==u&&u});if(d){var f=d.settings.settings,h=f.scale,p=f.brush,m=n.scale(h).data().fields.map((function(e){return e.id()})),g=n.brush(p),y=g.brushes().filter((function(e){return"range"===e.type&&m.some((function(t){return t===e.id}))}));g&&y.length&&y.forEach((function(e){g.removeRanges(e.brush.ranges().map((function(t){return{key:e.id,range:t}})))}))}}(xw(xw({},t),e))},clearRange:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e){var t=e.selectionInfo,n=e.chart,r=e.document,i=e.selections,o=e.eventName,a=void 0===o?"xAxis":o,s=e.cleared;LM({selectionInfo:t,chart:n,document:r,eventName:void 0!==s&&s?void 0:a,componentName:"".concat(a,"-range-brush"),emit:"areaClear",brushName:!1})&&i.clear()}(xw(xw({},t),e))},clearTap:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e){var t=e.chart,n=e.selectionInfo,r=e.selections,i=e.events,o=void 0===i?["tap"]:i,a=e.brushNames,s=void 0===a?[]:a;if(n&&o.includes(n.event)){var l=n.currentComponent;n.previousComponent!==l&&(r.clear(),s.forEach((function(e){return t.brush(e).end()})))}}(xw(xw({},t),e))},clearLegend:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e){var t=e.selectionInfo,n=e.chart,r=e.document,i=e.selections,o=e.eventName,a=void 0===o?"legendRange":o,s=e.componentName,l=void 0===s?"legend-range-brush":s,c=e.cleared,u=void 0!==c&&c,d=e.brushName;LM({selectionInfo:t,chart:n,document:r,eventName:u?void 0:a,componentName:l,brushName:void 0!==d&&d})&&i.clear()}(xw(xw({},t),e))}},t))}}({clear:d,selections:s,selectionInfo:r,chart:n}),h=function(e){var t=e.chart,n=e.actions,r=e.reset,i=e.clear,o=!1,a={deactivated:function(e){var t=(n||{}).lasso;r({e:e,lasso:void 0!==t&&t})},canceled:function(e){var o=(n||{}).lasso;r({e:e,lasso:void 0!==o&&o}),i({e:e,chart:t,document:document})},cleared:function(e){o||(o=!0,i({e:e,chart:t,document:document,cleared:!0}),o=!1)}};return!1===r&&delete a.deactivated,!1===i&&delete a.cleared,!1===r&&!1===i&&delete a.canceled,a}({chart:n,clear:f,reset:u,actions:a}),p={};Object.entries(h).forEach((function(e){var t=_w(e,2),n=t[0],r=t[1];p[n]=function(e,t){return t?function(n){return t({event:n,defaultFunc:e})}:e}(r,l[n])}));var m=function(e){var t=e.selectionEvents,n=e.selections,r=e.selectionInfo,i=e.clear,o=e.chart,a=e.document,s=t.start,l={selections:n,selectionInfo:r,chart:o,document:a},c=function(e){return Object.assign(r,e||{})},u=function(e){var t=e.event,n=e.components;return function(){return function(e){var t=e.selectionInfo,n=e.clear,r=e.event,i=e.components,o=void 0===i?[]:i;(0,e.setSelectionInfo)(xw(xw({},void 0===t?{}:t),{},{event:r,components:o.map((function(e){return e.key})).filter(Boolean)})),n()}({event:t,components:n,clear:i,chart:o,selectionInfo:r,setSelectionInfo:c})}};return"function"==typeof s?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];s(xw(xw({defaultFunc:u({event:e,components:t}),setSelectionInfo:c,clear:i},l),{},{event:e,components:t}))}:function(e){u({event:e,components:arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]})()}}({selectionEvents:l,selections:s,selectionInfo:r,clear:f,chart:n,document:document});return null==a||null===(t=a.select)||void 0===t||t.on("start",m),Object.entries(p).forEach((function(e){var t=_w(e,2),n=t[0],r=t[1];null==s||s.on(n,r)})),function(){var e;null==a||null===(e=a.select)||void 0===e||e.removeListener("start",m),Object.entries(p).forEach((function(e){var t=_w(e,2),n=t[0],r=t[1];null==s||s.removeListener(n,r)}))}}var HM=[{key:"qHyperCube/qDimensionInfo/0:numeric",includeMax:!1}];function VM(e){var t=e.chart,n=e.actions,r=e.selections,i=e.picassoQ,o=e.config,a=o.allowSimultaneous,s=void 0!==a&&a,l=o.majorScale,c=void 0===l?void 0:l,u=o.selectionActions,d=void 0===u?{}:u,f=d.clear,h=d.reset,p=o.selectionEvents,m=void 0===p?{deactivated:void 0,canceled:void 0,cleared:void 0,start:void 0}:p,g=o.brushEvents,y=void 0===g?{}:g,v=o.brushName,b=void 0===v?"selection":v,x=o.brushMaxListeners,w=void 0===x?20:x,k=o.brushRanges,S=void 0!==k&&k,C=o.interceptors,M=void 0===C?{}:C,E=o.selectionsFn,_=void 0===E?i.selections:E,D=t.brush(b);if("number"==typeof w&&D.setMaxListeners(w),S){var q=!0===S?HM:S;D.configure({ranges:q})}var T={canSelect:!0,getIsSelectionLocked:!1,isInnerDimensionLocked:!1,lockedDimensions:[],singleSelectIndex:0,selectionInfo:{colorField:void 0,components:[],event:void 0,currentComponent:void 0,previousComponent:void 0}},R=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.selections,r=t.brush,i=t.majorScale,o=t.actions,a=t.selectionsFn,s=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).path,l=void 0===s?"/qHyperCubeDef":s;if(!n)return{layout:function(){},filteredFields:function(){},allowSimultaneous:function(){},release:function(){}};var c=++RM,u=null,d={dimensions:[],measures:[]},f=[],h={};n.on=n.on.bind(n),n.isActive=n.isActive.bind(n),n.addListener=n.addListener.bind(n),n.removeListener=n.removeListener.bind(n);var p=function(e){var t=e.brush,n=e.getConfig;return{interceptor:function(e){var r=t.brushes(),i=n(),o=i.allowSimultaneous,a=i.layout,s=void 0===a?{}:a;r.forEach((function(n){var r,i,a;("range"===n.type||null!==(r=e[0])&&void 0!==r&&r.key&&(null===(i=e[0])||void 0===i?void 0:i.key)!==n.id&&0!==o.indexOf(null===(a=e[0])||void 0===a?void 0:a.key))&&t.clear([])}));var l=e.filter((function(e){return-2!==e.value}));if(l.length>1){var c=function(e){var t=e.layout,n=void 0===t?{}:t,r=e.values,i=void 0===r?[]:r;if(null==i||!i.length)return[];var o=Array.from(new Set(i.map((function(e){return e.key})))),a=[];return o.forEach((function(e){var t=wM({layout:n,path:e}),r=i.filter((function(t){return t.key===e})),o=t?[r.pop()]:r;a.push.apply(a,Dw(o))})),a.filter(Boolean)}({layout:s,values:l});return c}return l},rangeInterceptor:function(e){var r=t.brushes(),i=n().allowSimultaneous;return r.filter((function(e){return"value"===e.type})).length?(t.clear([]),e):(r.forEach((function(n){var r=n.id===e[0].key||i.includes(n.id)&&i.includes(e[0].key);"range"!==n.type||r||t.clear([])})),e)}}}({brush:r,getConfig:function(){return{layout:u,allowSimultaneous:f}}}),m=p.rangeInterceptor,g=p.interceptor;r.intercept("set-ranges",m),r.intercept("toggle-ranges",m),r.intercept("toggle-values",g),r.intercept("set-values",g),r.intercept("add-values",g),r.on("start",(function(){return n.begin(l)}));var y={activate:function(){},deactivated:function(){return r.end()},cleared:function(){return r.clear()},canceled:function(){return r.end()}};PM(n,y);var v=null==i||null===(e=i.max)||void 0===e?void 0:e.call(i);return null!=o&&o.select?(o.select.on("start",(function(){var e;r.start(),"function"==typeof o.select.getBrushOptions&&(h=(e=o.select).getBrushOptions.apply(e,arguments))})),o.select.on("end",(function(){var e=a(r,h,u),t=EM({layout:u,filtered:d});e.forEach((function(e){var r=qM({selection:e,fieldMap:t});(function(e,t,n){if(t&&void 0!==n&&"selectHyperCubeContinuousRange"===e.method){var r=e.params;if(r&&r[1]&&r[1][0]){var i=r[1][0],o=i.qDimIx,a=i.qRange;"undefined"!==o&&a&&!1===a.qMaxInclEq&&a.qMax>=n&&(a.qMaxInclEq=!0)}}})(r,o.select.brushSelectionIncludeMax,v),n.select(r)}))}))):r.on("update",(function(){var e=a(r,h,u),t=EM({layout:u,filtered:d});e.forEach((function(e){n.select(qM({selection:e,fieldMap:t}))}))})),0===TM.length&&OM(),TM.push({key:c,selections:n}),{layout:function(e){u=e},filteredFields:function(e){d=e},allowSimultaneous:function(e){f=e},release:function(){u=null;var e=TM.indexOf(TM.filter((function(e){return e.key===c}))[0]);-1!==e&&TM.splice(e,1),TM.length||AM(),IM(n,y)}}}({brush:D,majorScale:c,actions:n,selections:r,picassoQ:i,selectionsFn:_});!function(e){var t=e.brush,n=e.interceptors,r=void 0===n?{}:n;Object.entries(r).forEach((function(e){var n=_w(e,2),r=n[0],i=n[1];(Array.isArray(i)?i:[i]).forEach((function(e){t.intercept(r,e)}))}))}({brush:D,interceptors:M});var N=function(e){var t=e.chart,n=e.selectionActions,r=e.brush,i=e.actions,o=e.selectionInfo,a=e.selections,s=e.selectionEvents,l=function(e){var t=e.brush,n=e.chart,r=e.selectionInfo,i=e.brushEvents,o=void 0===i?{}:i,a=Object.entries(o).map((function(e){var i=_w(e,2),o=i[0],a=i[1],s=function(){return a({chart:n,selectionInfo:r})};return t.on(o,s),[o,s]}));return function(){a.forEach((function(e){var n=_w(e,2),r=n[0],i=n[1];t.removeListener(r,i)}))}}({brush:r,chart:t,selectionInfo:o,brushEvents:e.brushEvents}),c=$M({chart:t,selectionInfo:o,selectionActions:n,actions:i,selections:a,selectionEvents:s}),u=function(e){var t=e.actions;if(null==t||!t.lasso)return function(){};var n=!1,r=function(e){n||e.key!==SM||(t.lasso.action(!0),n=!0)},i=function(e){e.key===SM&&(t.lasso.action(!1),n=!1)};return document.addEventListener("keydown",r),document.addEventListener("keyup",i),function(){document.removeEventListener("keydown",r),document.removeEventListener("keyup",i)}}({actions:i});return function(){l(),c(),u()}}({chart:t,brush:D,actions:n,selections:r,selectionInfo:T.selectionInfo,selectionActions:{clear:f,reset:h},selectionEvents:m,brushEvents:y});if(s){var O=!0===s?Dw(Array(15)).map((function(e,t){return"qHyperCube/qMeasureInfo/".concat(t)})):s;R.allowSimultaneous(O)}return{unbindEvents:N,state:T,picassoSelections:R,brush:D}}var BM=["colorField","useLegendCube"];function UM(e){var t=e.chart,n=e.selections,r=e.actions,i=void 0!==r&&r,o=e.config,a=void 0===o?{}:o,s=VM({chart:t,actions:i,selections:n,picassoQ:xM,config:a}),l=s.unbindEvents,c=s.state,u=s.picassoSelections,d=s.brush,f=a.custom,h=void 0===f?{}:f,p=a.legendAlias,m=void 0===p?void 0:p,g=a.setBrushAliases,y=void 0===g?kM:g;return{getIsDimensionLocked:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return c.lockedDimensions[e]},getIsSelectionLocked:function(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return null!==(e=null==n||null===(t=n.isLocked)||void 0===t?void 0:t.call(n))&&void 0!==e?e:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(null==e||!e.length)return!1;var t=e.filter((function(e){return"object"===kw(e.data)&&Array.isArray(e.data.fields)})).every((function(e){return e.data.fields.every((function(e){var t=e.raw();return!(!t.qLocked&&t.qCardinal)}))}));return t}(r)},getIsSingleSelect:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.singleSelectIndex;return c.singleSelectDimensions[e]},getCanSelect:function(){return c.canSelect},getSelectionsObject:function(){return n},getSelectionInfo:function(){return c.selectionInfo},setLayout:function(e){var t=function(e){var t,n,r,i=e.selections,o=e.picassoSelections,a=e.layout,s={lockedDimensions:[],singleSelectDimensions:[]};null!=i&&null!==(t=i.isModal)&&void 0!==t&&t.call(i)&&i.confirm(),o.layout(a);var l=(null!==(n=null==a?void 0:a.qHyperCube)&&void 0!==n?n:{}).qDimensionInfo,c=void 0===l?[]:l;return s.lockedDimensions=c.map((function(e){return!!e.qLocked})),s.singleSelectDimensions=c.map((function(e,t){return wM({layout:a,path:"qHyperCube/qDimensionInfo/".concat(t)})})),s.singleSelectIndex=function(e){var t,n=((null==e?void 0:e.qHyperCube)||{}).qDimensionInfo,r=void 0===n?[]:n;return null!==(t=r.map((function(e,t){var n;return!(e.qLocked||(null===(n=e.qCardinalities)||void 0===n?void 0:n.qHypercubeCardinal)<=1)&&t})).filter((function(e){return"number"==typeof e}))[0])&&void 0!==t?t:Math.max(r.length-1,0)}(a),s.canSelect=0===c.length||c.some((function(e){return!e.qLocked})),s.dimensionLocked=!(null===(r=c[0])||void 0===r||!r.qLocked),s}({selections:n,picassoSelections:u,layout:e});Object.assign(c,t)},setFilteredFields:function(e){u.filteredFields(e)},setBrushAliases:function(e){var t=e.colorField,n=e.useLegendCube,r=void 0!==n&&n,i=Ew(e,BM),o=xw({useLegendCube:r,colorField:t,brush:d,legendAlias:m},i);y(xw(xw({},o),{},{defaultFunc:function(){return kM(o)}}))},destroy:function(){l(),u.release()},custom:xw({},h)}}var WM="'Source Sans Pro', 'Arial', 'sans-serif'",YM="#333333",KM="#595959",GM="#737373",XM="#cccccc",ZM="#e6e6e6";function JM(e){var t={};return[].concat(Dw(e),Dw([["","","color"],["object","","fontFamily"],["object","axis.label.name","color",KM],["object","axis.label.name","fontFamily",WM],["object","axis.label.name","fontSize","12px"],["object","axis.line.major","color",XM],["object","axis.line.minor","color",ZM],["object","axis.title","color"],["object","axis.title","fontFamily",WM],["object","axis.title","fontSize","13px"],["object","grid.line.highContrast","color",ZM],["object","grid.line.major","color",XM],["object","grid.line.minor","color",ZM],["object","label.value","color",KM],["object","label.value","fontFamily",WM],["object","label.value","fontSize","12px"],[!1,"label.value","darkColor",KM],[!1,"label.value","lightColor",ZM],["object","outOfRange","color","#999"],["object","legend.title","color",YM],["object","legend.title","fontFamily",WM],["object","legend.title","fontSize","15px"],["object","legend.label","color",KM],["object","legend.label","fontFamily",WM],["object","legend.label","fontSize","13px"],["object","referenceLine.label.name","color",YM],["object","referenceLine.label.name","fontFamily",WM],["object","referenceLine.label.name","fontSize","12px"],["object","referenceLine.outOfBounds","color",ZM],["object","referenceLine.outOfBounds","fontFamily",WM],["object","referenceLine.outOfBounds","fontSize","12px"],["object","referenceLine.outOfBounds","backgroundColor",GM,function(e){return"transparent"===e?GM:e}]])).reduce((function(e,n){var r="".concat(n[0],"-").concat(n[1],"-").concat(n[2],"}");return t[r]||(t[r]=!0,e.push(n)),e}),[]).sort((function(e,t){return(e[0].split?e[0].split(".").length:0)-(t[0].split?t[0].split(".").length:0)}))}var QM=function(e){return e};function eE(e){var t=e.theme,n=e.id,r=e.transform,i=e.extend,o=e.matrix,a={},s=r.reduce((function(e,t){var n=_w(t,2),r=n[0],i=n[1];return e[r]=i,e}),{});return o.forEach((function(e){var r=_w(e,5),i=r[0],o=r[1],l=r[2],c=r[3],u=r[4],d=void 0===u?function(e){return e}:u,f=function(e){var t=e.theme,n=e.base,r=e.path,i=e.attribute,o=e.defaultValue,a=void 0===o?void 0:o;if(!t||!1===n)return a;var s=t.getStyle(n,r,i);return void 0===s?a:s}({theme:t,base:"object"===i&&n?"".concat("object",".").concat(n):i,path:o,attribute:l,defaultValue:c}),h=(s["".concat(o,".").concat(l)]||QM)(d(f));OS(a,[o,l].filter(Boolean).join("."),h)})),i.forEach((function(e){var t=_w(e,2),n=t[0],r=t[1];OS(a,n,r)})),a}var tE={NOOP:function(){},FALSE:function(){return!1},ARRAY:function(){return[]},OBJECT:function(){return{}}},nE="chart-modules-tooltip",rE="#".concat(nE);function iE(){if(!document.querySelector(rE)){var e=document.createElement("div");e.id=nE,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 oE(e){return{show:!0,key:e.key,type:"tooltip",layout:{displayOrder:3},beforeMount:function(){iE()},beforeUpdate:function(){iE()},destroyed:function(){var e;null!=(e=document.querySelector(rE))&&e.parentElement&&e.childElementCount<1&&e.parentElement.removeChild(e)},settings:{appendTo:function(){return document.querySelector(rE)},direction:e.rtl?"rtl":"ltr",duration:e.duration},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"}}}}var aE="position",sE={bar:"rect",diamond:"path",point:"circle",square:"rect",triangle:"path","n-polygon":"path",slice:"path"},lE=function(e){return e.data.value},cE=function(e){var t,n=e.data;return null==n||null===(t=n.major)||void 0===t?void 0:t.value};var uE=Number.MAX_VALUE;function dE(e){var t=e.nodes.reduce((function(e,t){var n=t.bounds;return e.xMin=Math.min(e.xMin,n.x,n.x+n.width),e.yMin=Math.min(e.yMin,n.y,n.y+n.height),e.xMax=Math.max(e.xMax,n.x,n.x+n.width),e.yMax=Math.max(e.yMax,n.y,n.y+n.height),e}),{xMin:uE,xMax:-uE,yMin:uE,yMax:-uE}),n=t.xMin,r=t.xMax,i=t.yMin;return{x:n,y:i,width:r-n,height:t.yMax-i}}function fE(e){var t=e.chart,n=e.config,r=e.expando,i=e.internal,o=e.nodes;if(!o.length)return[];var a=_w(o,1)[0].key,s=n.main.collectibles;if(!s.length)return[];var l=n.main.triggers.find((function(e){return-1!==e.keys.indexOf(a)}))||{},c=l.collect,u=l.placement;if(!c||!c.from||!u)return[];var d={triggerer:a,position:i.get(aE)},f=(function(e){var t=e.chart,n=e.expando,r=e.nodes,i=e.collectConfig,o=e.collectibles,a=e.meta,s=i.from,l={chart:t,expando:n,nodes:r,collectConfig:i,collectibles:o,meta:a};switch("function"==typeof s?"custom":s){case"single":return function(e){var t=_w(e.nodes,1)[0];return["container"===t.type&&t.children[0]||t]}(l);case"position":return function(e){var t=e.collectibles,n=e.meta;return e.chart.shapesAt(n.position.absolute,{components:t.map((function(e){return{key:e.key}}))})}(l);case"dimension":return function(e){var t=e.chart,n=e.collectConfig,r=e.collectibles,i=_w(e.nodes,1)[0],o=n.filter,a="function"==typeof o?o:function(){return!0},s=n.by,l=void 0===s?lE:s;return r.reduce((function(e,n){var r=n.major,o=void 0===r?cE:r,a=sE[n.type]||n.type;return e.push.apply(e,Dw(t.findShapes(a).filter((function(e){return e.key===n.key&&e.data&&o({data:e.data})===l({data:i.data})})))),e}),[]).filter(a)}(l);case"radius":return function(e){var t=e.chart,n=e.collectConfig,r=e.collectibles,i=e.meta,o=_w(e.nodes,1)[0].localBounds,a=n.distance,s=n.filter,l="function"==typeof s?s:function(){return!0},c=r.map((function(e){return e.key}));return t.shapesAt({cx:i.position.absolute.x,cy:i.position.absolute.y,r:a||Math.max(o.width,o.height)},{components:c.map((function(e){return{key:e}}))}).filter(l)}(l);case"custom":return function(e){var t=e.chart,n=e.expando,r=e.nodes,i=e.meta;return e.collectConfig.from({chart:t,expando:n,nodes:r,meta:i})}(l);default:return[]}}({chart:t,expando:r,nodes:o,collectConfig:c,collectibles:s,meta:d})||[]).map((function(e){return e.children.length?e.children[0]:e}));return f.length?function(e){var t=e.chart,n=e.config,r=e.expando,i=e.placementConfig,o=e.hovered,a=e.collected,s=e.meta,l=function(e){for(var t=e.chart,n=e.config,r=e.expando,i=e.placementConfig,o=e.hovered,a=e.collected,s=e.meta,l=_w(o,1)[0],c=Array.isArray(i)?i:[i],u={bounds:l.bounds,key:l.key},d=dE({nodes:a}),f=0;f<c.length;f++){var h=c[f];if("function"==typeof h){var p=h({chart:t,expando:r,hovered:o,collected:Dw(a),meta:s,collectedBounds:d,combineBounds:dE});if(p)return p}if("trigger"===h)return u;if("collectible"===h){var m=n.main.placements.collectible;return{bounds:"function"==typeof m?m({collected:Dw(a)}):d,key:a[0].key}}}return u}({chart:t,config:n,expando:r,placementConfig:i,hovered:o,collected:a,meta:s}),c=l.bounds,u=l.key,d=_w(a,1)[0].desc;return[{bounds:c,nodes:a,data:a.map((function(e){return e.data})),key:u,meta:s,desc:d}]}({chart:t,config:n,expando:r,placementConfig:u,hovered:o,collected:f,meta:d}):[]}var hE=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),pE=new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞יִײַ-ﬨשׁ-ﭏ]"),mE=new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]"),gE=function(e){return hE.test(e)},yE=function(e){return pE.test(e)||mE.test(e)};function vE(e){for(var t=e?e.length:0,n=0;n<t;n++){var r=e[n];if(gE(r))return"ltr";if(yE(r))return"rtl"}return"ltr"}function bE(e){var t=e.config,n=e.h,r=e.context,i={section:function(e){return function(e){return{type:"section",content:e.content}}({content:e.content})},text:function(e){var n=e.value,r=e.style,i=e.visibility;return function(e){var t=e.config,n=e.value,r=e.style,i=void 0===r?{}:r,o=i.bold,a=void 0!==o&&o,s=i.italic,l=e.visibility;return{type:"text",content:[{content:n,style:{"font-weight":a?"bold":"normal","font-style":void 0!==s&&s?"italic":"normal","text-align":t.rtl?"right":"left",direction:vE(n)},colspan:2}],visibility:xw(xw({},{count:!0}),l)}}({config:t,value:n,style:r,visibility:i})},measure:function(e){var r=e.label,i=e.value,o=e.color,a=e.style,s=e.survive,l=e.visibility;return function(e){var t,n,r,i,o=e.h,a=e.label,s=e.value,l=e.color,c=e.style,u=e.survive,d=e.visibility,f=e.config.rtl,h=o("div",{style:{display:"inline-block",width:10,height:10,"background-color":l,margin:"0 8px"}});return{type:"measure",label:a,value:s,content:[{content:f?[":",a]:[a,":"],style:{"text-align":f?"right":"left","font-weight":null!=c&&null!==(t=c.label)&&void 0!==t&&t.bold?"bold":"normal","font-style":null!=c&&null!==(n=c.label)&&void 0!==n&&n.italic?"italic":"normal",direction:vE(a)}},{content:l?f?[s,h]:[h,s]:s,style:{"text-align":f?"left":"right","vertical-align":"middle","font-weight":null!=c&&null!==(r=c.value)&&void 0!==r&&r.bold?"bold":"normal","font-style":null!=c&&null!==(i=c.value)&&void 0!==i&&i.italic?"italic":"normal",direction:vE(s)}}],survive:xw(xw({},{color:!1,duplicate:!1}),u),visibility:xw(xw({},{count:!0}),d)}}({config:t,h:n,label:r,value:i,color:o,style:a,survive:s,visibility:l})},divider:function(){return function(e){var t=e.visibility;return{type:"divider",content:[{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}],visibility:xw(xw({},{count:!1}),t)}}({visibility:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).visibility})},row:function(e){return function(e){var t=e.visibility;return{type:"row",content:[{content:e.content,style:e.style,colspan:e.colspan}],visibility:xw(xw({},{count:!0}),t)}}({content:e.content,style:e.style,colspan:e.colspan,visibility:e.visibility})},raw:function(e){return function(e){var t=e.visibility;return{type:"raw",content:e.value,visibility:xw(xw({},{count:!0}),t)}}({value:e.value,visibility:e.visibility})},color:function(e){var i=e.nodes,o=e.property,a=e.filter,s=void 0===a||a,l=e.visibility,c=e.fillColor;return function(e){var t=e.config,n=e.h,r=e.context,i=e.nodes,o=e.property,a=e.filter,s=e.visibility,l=e.fillColor,c=t.rtl,u={type:"color",label:void 0,value:void 0,content:[],filter:a,visibility:xw(xw({},{count:!0}),s)},d=t.getColorSettings();if("color"===d.type||!d.fieldType)return u;var f=_w(i,1)[0];if(u.value=function(e){var t=e.config,n=e.context,r=e.property,i=e.node,o=i.data[r];if(o){if(-3===i.data.value)return i.data.label;var a=n.resources.dataset(o.source.key).field(o.source.field).formatter(),s=o.value,l=o.label,c=t.getColorSettings();if(a&&"measure"===c.fieldType)return Number.isNaN(+s)?"-":a(o.value);var u=l||s;return void 0===u||Number.isNaN(u)||"NaN"===u?"-":u}}({config:t,context:r,property:o,node:f}),void 0===u.value)return u;u.label=function(e){var t=e.context,n=e.property,r=e.node,i=e.config.getColorSettings();if(i.label)return i.label;var o=r.data[n];if(o&&"color"!==i.type){var a=t.resources.dataset,s=o.source,l=s.key,c=s.field;return a(l).field(c).title()}}({config:t,context:r,property:o,node:f});var h=null!=l?l:function(e){var t=e.node.attrs;return(null==t?void 0:t.fill)||"#ddd"}({node:f}),p=n("div",{style:{display:"inline-block",width:10,height:10,"background-color":h,margin:"0 8px"}});return u.content.push({content:c?[":",u.label]:[u.label,":"],style:{"text-align":c?"right":"left",direction:vE(u.label)}},{content:c?[u.value,p]:[p,u.value],style:{"text-align":c?"left":"right","vertical-align":"middle",direction:vE(u.value)}}),u}({config:t,h:n,context:r,nodes:i,property:o,filter:s,visibility:l,fillColor:c})}};return i}function xE(e){var t=e.chart,n=e.translator,r=e.config,i=e.expando,o=e.h,a=e.data,s=e.style,l=_w(a,1)[0],c=function(e){var t=e.config,n=e.nodes.reduce((function(e,n){var r=t.main.getGroupByValue({data:n.data});return e[r]||(e[r]={sorting:Object.keys(e).length,items:[]}),e[r].items.push(n),e}),{});return Object.keys(n).map((function(e){return n[e]})).sort((function(e,t){return e.sorting-t.sorting})).map((function(e){return e.items}))}({config:r,nodes:l.node.nodes}),u=function(e){var t=e.chart,n=e.config,r=e.expando,i=e.h,o=e.context,a=e.groups,s=o.node.meta,l=o.resources,c=l.dataset,u=l.formatter,d=bE({config:n,h:i,context:o}),f=function(e){var t=e.dataset;return{dataset:{title:function(e,n){return t(e).field(n).title()}}}}({dataset:c}),h=a.map((function(e){var t=d.section({content:Dw((n.main.section({expando:r,h:i,nodes:e,dataset:c,formatter:u,meta:s,create:d,util:f})||[]).filter((function(e){var t;return null===(t=e.content)||void 0===t?void 0:t.length}))).filter(Boolean)});return t.content=function(e){var t=e.config,n=e.content,r=n.find((function(e){return"color"===e.type&&e.filter})),i=r?n.filter((function(e){return"measure"!==e.type||e.survive.color||e.label!==r.label||e.value!==r.value})):n;return t.main.showDuplicateMeasures?i:i.reduce((function(e,t){var n=t.type,r=t.survive;if("measure"!==n||r.duplicate)return e.filtered.push(t),e;var i="".concat(t.label,"-").concat(t.value);return e.memory[i]||(e.memory[i]=!0,e.filtered.push(t)),e}),{memory:{},filtered:[]}).filtered}({config:n,content:t.content}),t}));return n.main.sections({chart:t,expando:r,h:i,nodes:o.node.nodes,dataset:c,formatter:u,meta:s,create:d,util:f,sections:h}),h.filter(Boolean)}({chart:t,config:r,expando:i,h:o,context:l,groups:c}),d=function(e){var t=e.translator,n=e.config,r=e.context,i=e.templates,o=n.main.layout,a=o.rows,s=o.grouping,l=o.single,c=function(e){var t=e.limit,n=e.grouping,r=e.single,i={count:0,overflow:0,index:{started:void 0,group:void 0}};return{process:function(e){var o=e.visibility,a=e.index;if(r&&0!==a)return n?(i.index.started!==a&&i.index.group!==a&&(i.overflow++,i.index.group=a),!1):(i.overflow++,!1);if(i.count>=t){if(!n)return i.overflow++,!1;if(i.index.started!==a)return i.index.group!==a&&(i.overflow++,i.index.group=a),!1}return o.count&&i.count++,n&&(i.index.started=a),!0},overflow:function(){return i.overflow}}}({limit:a,grouping:s,single:"function"==typeof l?l({meta:r.node.meta,sections:i}):l}),u=i.reduce((function(e,t,n){var r=t.type,o=t.content;"section"===r&&(void 0===o?[]:o).forEach((function(t){c.process({visibility:t.visibility,index:n})&&e.push(t.content)}));var a=n===i.length-1;return"divider"!==r||a||c.process({visibility:t.visibility,index:n})&&e.push(t.content),e}),[]).filter((function(e){return e.length})),d=c.overflow();return d&&u.push(function(e){var t=e.translator,n=e.config,r=e.count,i=t?t.get("Object.ChartTooltip.NMore",r):"+".concat(r," more"),o=vE(i);return[{content:i,style:{"font-weight":"bold","text-align":n.rtl?"right":"left",direction:o},colspan:2}]}({translator:t,config:n,count:d})),u}({translator:n,config:r,h:o,context:l,templates:u});return d.length?function(e){var t=e.h,n=e.style;return e.rows.map((function(e){return t("tr",{},e.map((function(e){var r={style:xw(xw({},n.cell||{}),e.style||{}),class:e.class};return e.colspan&&(r.colspan=e.colspan),t("td",r,e.content)})))}))}({h:o,style:s,rows:d}):function(e){var t=e.h;return t("tr",{},t("td",{style:{fontStyle:"italic",opacity:.75}},"Empty"))}({h:o})}function wE(e){var t=e.chart,n=e.translator,r=e.config,i=e.expando,o=e.internal;if(!r.main.key)return!1;var a=AS(),s=oE({key:r.main.key,rtl:r.rtl,duration:r.duration}),l=r.main.events.tooltip,c=l.afterShow,u=l.afterHide,d=function(){var e=a.get("collected");return{expando:i,nodes:e.nodes,meta:e.meta}};return Kw(!0,s,{settings:{filter:function(e){return fE({chart:t,config:r,expando:i,internal:o,nodes:e})},extract:function(e){return a.set("collected",e.node),e},content:function(e){var o=e.h,a=e.data,s=e.style;return xE({chart:t,translator:n,config:r,expando:i,h:o,data:a,style:s})},placement:function(e){var t=e.nodes;return r.main.placement({meta:t[0].meta})},afterShow:function(){return c(d())},afterHide:function(){return u(d())}},style:{arrow:{color:r.style.background},content:r.style}})}function kE(e){var t=e.config,n=t.legend.keys;if(!n.tooltip||!n.component)return!1;if("categorical"!==t.getColorSettings().type)return!1;var r=oE({key:n.tooltip,rtl:t.rtl,duration:t.duration});return Kw(!0,r,{settings:{filter:function(e){return e.filter((function(e){return e.data&&e.key===n.component}))},extract:function(e){return e},content:function(e){var t=e.h,n=e.data;return[t("tr",{},[t("td",{style:xw(xw({},e.style.cell||{}),{"font-weight":"bold","text-align":"left"}),colspan:2},n[0].node.data.label)])]},placement:"pointer"},style:{arrow:{color:t.style.background},content:t.style}})}function SE(e){var t=e.config.main.triggers.reduce((function(e,t){return t.keys.forEach((function(n){var r=t.distance||0;e.distance[n]=r,e.distances.includes(r)||e.distances.push(r),e.key[n]=!0,e.keys[r]||(e.keys[r]=[]),e.keys[r].push(n)})),e}),{distance:{},distances:[],key:{},keys:{}});return function(e){return e.components.filter((function(e){return t.key[e.key]})).reduce((function(e,n){e.any=!0,e.components.push(n.key);var r=t.distance[n.key];return 0===r?e.position.push(n.key):(e.distances.includes(r)||(e.distances.push(r),e.distanceKeys[r]=[]),e.distanceKeys[r].push(n.key)),e}),{any:!1,components:[],position:[],distances:[],distanceKeys:{}})}}var CE=function(){return!0};function ME(e){var t=e.config.main.triggers.reduce((function(e,t){var n=t.filter;return t.keys.forEach((function(t){e[t]="function"==typeof n?n:CE})),e}),{});return function(e){var n=t[e.key];return!n||n(e)}}function EE(e){var t=e.chart,n=e.event,r=e.component,i={absolute:{x:0,y:0},relative:{x:0,y:0}},o=t.element.getBoundingClientRect(),a=o.left,s=o.top;i.absolute.x=(void 0===n.clientX?Math.floor(n.srcEvent.clientX):n.clientX)-a,i.absolute.y=(void 0===n.clientY?Math.floor(n.srcEvent.clientY):n.clientY)-s;var l=t.component(r);if(l){var c=l.rect.computedInner;i.relative.x=i.absolute.x-c.x,i.relative.y=i.absolute.y-c.y}return i}function _E(e){var t=e.chart,n=e.filter,r=e.hits,i=e.position,o=[];if(r.position.length&&o.push.apply(o,Dw(t.shapesAt(i.absolute,{components:r.position.map((function(e){return{key:e}}))}).filter(n))),!o.length&&r.distances.length){var a=[];r.distances.forEach((function(e){a.push.apply(a,Dw(t.shapesAt({cx:i.absolute.x,cy:i.absolute.y,r:e},{components:r.distanceKeys[e].map((function(e){return{key:e}}))}).filter(n)))})),a.length&&o.push(function(e){var t=e.nodes,n=e.origin,r=t.find((function(e){return"path"===e.type}));if(r)return r;var i=function(e){var t=Math.abs(n.x-(e.localBounds.x+e.localBounds.width/2)),r=Math.abs(n.y-(e.localBounds.y+e.localBounds.height/2));return Math.sqrt(t*t+r*r)};return t.slice(1).reduce((function(e,t){var n=i(t);return n<e.distance&&(e.distance=n,e.node=t),e}),{node:t[0],distance:i(t[0])}).node}({nodes:a,origin:i.relative}))}return o}function DE(e){var t=e.chart,n=e.config,r=e.expando,i=e.internal,o=e.facade,a=n.delay.tap,s=SE({config:n}),l=ME({config:n}),c=n.main.triggers.reduce((function(e,t){return e.push.apply(e,Dw(t.keys)),e}),[]);return{key:"event:".concat("tooltipTap"),type:"Tap",options:{event:"tooltipTap",enable:function(e,r){return!r||!!n.enable({event:r})&&t.componentsFromPoint({x:r.center.x,y:r.center.y}).filter((function(e){return-1!==c.indexOf(e.key)})).length>0}},recognizeWith:"tap",events:Mw({},"tooltipTap",(function(e){if(e.preventDefault(),"mouse"!==e.pointerType&&!n.main.suppress({event:e})){var c=t.component(n.main.key);if(c&&c.show){var u=t.componentsFromPoint({x:e.center.x,y:e.center.y}),d=s({components:u});if(d.any){var f=_w(d.components,1)[0],h=EE({chart:t,event:e,component:f});i.set(aE,h);var p=_E({chart:t,filter:l,hits:d,position:h});if(p.length){var m=p[0].key;n.main.events.tooltip.beforeShow({expando:r,event:e,collectNodes:function(){return o.collectNodes({nodes:p})},meta:{triggerer:m,position:h}}).then((function(){c.emit("show",e,{nodes:p,delay:a})})).catch((function(){}))}else c.emit("hide")}else c.emit("hide")}}}))}}function qE(e){var t=e.chart,n=e.config,r=e.expando,i=e.internal,o=e.facade,a=SE({config:n}),s=ME({config:n}),l=function(e){var t=e.config,n=e.expando,r=e.internal,i=e.facade,o=t.main.events.tooltip.beforeShow,a=t.delay.hover,s={ongoing:{},latest:void 0};return function(e){var t=e.event,l=e.tooltip,c=e.nodes,u=function(e){var t=e.nodes;return JSON.stringify(t.map((function(e){var t;return{key:e.key,bounds:e.bounds,value:null===(t=e.data)||void 0===t?void 0:t.value}})))}({nodes:c});if(!s.ongoing[u]){s.ongoing[u]=!0,s.latest=u;var d=c[0].key;o({expando:n,event:t,collectNodes:function(){return i.collectNodes({nodes:c})},meta:{triggerer:d,position:r.get(aE)}}).then((function(){u===s.latest&&l.emit("show",t,{nodes:c,delay:a})})).catch((function(){l.emit("show")})).finally((function(){delete s.ongoing[u],u===s.latest&&(s.latest=void 0)}))}}}({config:n,expando:r,internal:i,facade:o}),c=[n.main.key,n.legend.keys.tooltip].filter(Boolean),u=function(){c.forEach((function(e){var n=t.component(e);null!=n&&n.show&&n.emit("hide")}))};return{type:"native",events:{mousemove:function(e){if(n.enable({event:e})&&!n.main.suppress({event:e})){var r=t.componentsFromPoint({x:e.clientX,y:e.clientY}),o=t.component(n.main.key);if(o&&o.show){var c=a({components:r});if(c.any){var u=_w(c.components,1)[0],d=EE({chart:t,event:e,component:u});i.set(aE,d);var f=_E({chart:t,filter:s,hits:c,position:d});if(!f.length)return void o.emit("hide");l({event:e,tooltip:o,nodes:f})}else o.emit("hide")}var h=n.legend;if(h.keys.tooltip&&h.keys.component){var p=t.component(h.keys.tooltip);p&&p.show&&(r.some((function(e){return e.key===h.keys.component}))?p.emit("show",e):p.emit("hide"))}}},mouseup:function(e){2===e.button&&u()},mouseleave:function(){n.main.events.interaction.mouseleave({expando:r}),u()},wheel:function(){u()}}}}function TE(e){var t=e.chart,n=e.translator,r=function(e){var t=e.config;return Kw(!0,{},{rtl:!1,enable:tE.FALSE,getColorSettings:tE.OBJECT,style:{fontSize:void 0,fontFamily:void 0,color:void 0,background:void 0},delay:{hover:500,tap:0},duration:8e3,main:{key:void 0,suppress:tE.FALSE,getGroupByValue:tE.NOOP,collectibles:[],triggers:[],placement:function(){return{type:"bounds"}},placements:{collectible:"combine"},showDuplicateMeasures:!1,layout:{rows:7,grouping:!1,single:!1},section:tE.ARRAY,sections:tE.NOOP,events:{tooltip:{beforeShow:function(){return Promise.resolve()},afterShow:tE.NOOP,afterHide:tE.NOOP},interaction:{mouseleave:tE.NOOP}}},legend:{keys:{tooltip:void 0,component:void 0}}},void 0===t?{}:t)}({config:e.config}),i=AS(),o=AS(),a={components:void 0,interactions:void 0};return{getComponents:function(){return a.components||(a.components=function(e){var t=e.config;return[wE({chart:e.chart,translator:e.translator,config:t,expando:e.expando,internal:e.internal}),kE({config:t})].filter(Boolean)}({chart:t,translator:n,config:r,expando:i,internal:o})),a.components},getInteractions:function(){return a.interactions||(a.interactions=function(e){var t=e.chart,n=e.config,r=e.expando,i=e.internal,o=function(e){var t=e.chart,n=e.config,r=e.expando,i=e.internal;return{collectNodes:function(e){var o=e.nodes,a=_w(fE({chart:t,config:n,expando:r,internal:i,nodes:o}),1)[0];return(void 0===a?{nodes:[]}:a).nodes}}}({chart:t,config:n,expando:r,internal:i});return{gestures:[DE({chart:t,config:n,expando:r,internal:i,facade:o})],native:qE({chart:t,config:n,expando:r,internal:i,facade:o})}}({chart:t,config:r,expando:i,internal:o})),a.interactions},expando:i}}var RE={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 NE(e){const{qHyperCube:t,...n}=e,{qAxisData:r,qDataPages:i,qStackedDataPages:o,qTreeDataPages:a,...s}=t,l=Eg(!0,{},{...n,qHyperCube:{...s,qAxisData:null,qDataPages:null,qStackedDataPages:null,qTreeDataPages:null}}),{dataRelatedPropertiesPaths:c}=RE;return c.forEach((e=>{const t=e.split("[");if(1===t.length)void 0!==RS(l,e)&&OS(l,e,null);else{const e=t[0],n=t[1].split("].")[1];RS(l,e,[]).forEach((e=>{void 0!==RS(e,n)&&OS(e,n,null)}))}})),l}var OE={axes:{trackBy:function({isTime:e,isContinuous:t,isMeasure:n,isMajor:r}){return i=>{if(e||t||n){var o;if("line"===i.type)return null!==(o=i.tickValue)&&void 0!==o?o:"axis";if("text"===i.type)return`${i.tickValue} ${i.text}`;if("container"===i.type){const e=i.children.filter((e=>"text"===e.type)).map((e=>e.text));return`${i.data.value} ${e.join("")}`}return Math.random()}if(r){if("line"===i.type&&void 0===i.tickValue)return"axis";const e=i.transform&&i.transform.match(/rotate/gi)?"rotated":"horizontal";return`${i.data.group?`${i.data.group.value} `:""}${i.data.value} ${i.text} ${e}`}return Math.random()}},compensateForLayoutChanges:function({isMeasure:e,isTime:t,isContinuous:n,isHorizontal:r,dock:i}){return({currentNodes:o,currentRect:a,previousRect:s})=>{const l=a.x-s.x,c=a.y-s.y,u=a.width-s.width,d=a.height-s.height;e?("left"===i&&o.forEach((e=>{"line"===e.type?(e.x1+=u,e.x2+=u):"text"===e.type&&(e.x+=u)})),"left"!==i&&"right"!==i||o.forEach((e=>{var t;("line"===e.type&&(e.x1===e.x2?(e.y1=a.y,e.y2=e.y1+a.height):(Math.round(e.y1)<a.y||e.y1>a.y+a.height)&&(e.strokeWidth=0)),"text"===e.type)&&((e.y<a.y||e.y>a.y+a.height)&&(e.fontSize="1px","#"===(null===(t=e.fill)||void 0===t?void 0:t[0])&&(e.fill=`${e.fill.slice(0,1)}00${e.fill.slice(1)}`)))})),"top"!==i&&"bottom"!==i||o.forEach((e=>{var t;("line"===e.type&&(e.y1===e.y2?(e.x1=a.x,e.x2=e.x1+a.width):(Math.round(e.x1)<a.x||e.x1>a.x+a.width)&&(e.strokeWidth=0)),"text"===e.type)&&((e.x<a.x||e.x>a.x+a.width)&&(e.fontSize="1px","#"===(null===(t=e.fill)||void 0===t?void 0:t[0])&&(e.fill=`${e.fill.slice(0,1)}00${e.fill.slice(1)}`)))}))):t?o.forEach((e=>{"line"===e.type?e.y1===e.y2?e.x2+=u:e.x1===e.x2&&(e.x1-=l,e.x2-=l):"text"===e.type&&(e.x-=l)})):n||r?o.forEach((e=>{"line"===e.type&&e.y1===e.y2&&(e.x1+=l,e.x2+=l+u)})):o.forEach((e=>{"line"===e.type&&e.x1===e.x2&&(e.y1+=c,e.y2+=c+d)}))}}},bars:{trackBy: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}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y;0===r&&0===i||e.forEach((e=>{e.children&&e.children.length>0&&e.children.forEach((e=>{void 0!==e.x&&void 0!==e.y?(e.x-=r,e.y-=i):e.transform=`translate(${-r}, ${-i})`}))}))}},barOobs:{compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x;0===t.y-n.y&&0===r||e.forEach((e=>{e.children&&e.children.length>0&&e.children.forEach((e=>{e.opacity=0}))}))}},labels:{trackBy:function(e){if("rect"===e.type)return"-3"===e.data?Math.random():`${e.type} ${e.data} ${e.rotation}`;const t=e.transform&&e.transform.match(/rotate/gi)?"rotated":"horizontal";return`${e.type} ${e.data} ${e.text} ${t}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y;0===r&&0===i||e.forEach((e=>{e.transform&&e.transform.match(/rotate\(-90/gi)?(e.x+=i,e.y-=r):(e.x-=r,e.y-=i)}))},linkData:function(e){return e.data.measureIndex?`${e.data.value} ${e.data.measureIndex.value}`:e.data.group?`${e.data.value} ${e.data.group.value}`:e.data.stack?`${e.data.value} ${e.data.stack.value}`:`${e.data.value}`}},lines:{trackBy:function(e){var t;return"line"===e.type?null!==(t=e.value)&&void 0!==t?t:Math.random():"path"===e.type?`${e.generatorType} ${e.layerObj.id} ${e.data.source.key}`:Math.random()},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y;e.forEach((e=>{if(void 0!==e.x1&&void 0!==e.y1)e.y1===e.y2?(e.x2=e.x1+t.width,e.y1-=i,e.y2-=i):e.x1===e.x2&&(e.y2=e.y1+t.height,e.x1-=r,e.x2-=r);else{const t="x"===e.major.p?r/e.major.size:i/e.major.size,n="y"===e.minor.p?i/e.minor.size:r/e.minor.size;e.points.forEach((e=>{e.modified||(e.major-=t,e.minor-=n,e.minor0-=n,e.modified=!0)}))}}))}},lineOobs:{compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x;0===t.y-n.y&&0===r||e.forEach((e=>{e.opacity=0}))}},points:{trackBy:function(e){return e.data.line?`${e.data.line.value} ${e.data.major.value}`:`${e.data.major.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y;0===r&&0===i||e.forEach((e=>{e.cx-=r,e.cy-=i}))}},refLineLabels:{trackBy:function(e){if(void 0!==e.value){if("rect"===e.type)return`${e.value}`;if("text"===e.type)return`${e.value} ${e.text}`}return Math.random()},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y,o=t.width-n.width,a=t.height-n.height;let s=-r,l=-i;e.forEach((e=>{switch(e.dock){case"right":r>0&&(s=t.width);break;case"left":o<0&&(s=-n.width);break;case"top":a<0&&(l=-n.height);break;case"bottom":i>0&&(l=t.height)}switch(e.type){case"text":case"rect":e.x+=s,e.y+=l;break;case"circle":e.cx+=s,e.cy+=l;break;case"path":e.transform=`translate(${s}, ${l})`}}))}},shadowBars:{trackBy:function(){return Math.random()}},cacheProperties:function({viewCache:e,layout:t}){const n=NE(t);e.set("dataIndependentProperties",JSON.stringify(n))},propertiesHaveChanged:function({viewCache:e,layout:t}){const n=NE(t);return e.get("dataIndependentProperties")!==JSON.stringify(n)},nonUpdatingNode:{trackBy:function(){return Math.random()}}};function AE(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"}var PE={exports:{}},IE={},LE=Symbol.for("react.element"),zE=Symbol.for("react.portal"),FE=Symbol.for("react.fragment"),jE=Symbol.for("react.strict_mode"),$E=Symbol.for("react.profiler"),HE=Symbol.for("react.provider"),VE=Symbol.for("react.context"),BE=Symbol.for("react.forward_ref"),UE=Symbol.for("react.suspense"),WE=Symbol.for("react.memo"),YE=Symbol.for("react.lazy"),KE=Symbol.iterator;var GE={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},XE=Object.assign,ZE={};function JE(e,t,n){this.props=e,this.context=t,this.refs=ZE,this.updater=n||GE}function QE(){}function e_(e,t,n){this.props=e,this.context=t,this.refs=ZE,this.updater=n||GE}JE.prototype.isReactComponent={},JE.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},JE.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},QE.prototype=JE.prototype;var t_=e_.prototype=new QE;t_.constructor=e_,XE(t_,JE.prototype),t_.isPureReactComponent=!0;var n_=Array.isArray,r_=Object.prototype.hasOwnProperty,i_={current:null},o_={key:!0,ref:!0,__self:!0,__source:!0};function a_(e,t,n){var r,i={},o=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(o=""+t.key),t)r_.call(t,r)&&!o_.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(1===s)i.children=n;else if(1<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===i[r]&&(i[r]=s[r]);return{$$typeof:LE,type:e,key:o,ref:a,props:i,_owner:i_.current}}function s_(e){return"object"==typeof e&&null!==e&&e.$$typeof===LE}var l_=/\/+/g;function c_(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function u_(e,t,n,r,i){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var a=!1;if(null===e)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case LE:case zE:a=!0}}if(a)return i=i(a=e),e=""===r?"."+c_(a,0):r,n_(i)?(n="",null!=e&&(n=e.replace(l_,"$&/")+"/"),u_(i,t,n,"",(function(e){return e}))):null!=i&&(s_(i)&&(i=function(e,t){return{$$typeof:LE,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(l_,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=""===r?".":r+":",n_(e))for(var s=0;s<e.length;s++){var l=r+c_(o=e[s],s);a+=u_(o,t,n,l,i)}else if(l=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=KE&&e[KE]||e["@@iterator"])?e:null}(e),"function"==typeof l)for(e=l.call(e),s=0;!(o=e.next()).done;)a+=u_(o=o.value,t,n,l=r+c_(o,s++),i);else if("object"===o)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function d_(e,t,n){if(null==e)return e;var r=[],i=0;return u_(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function f_(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var h_={current:null},p_={transition:null},m_={ReactCurrentDispatcher:h_,ReactCurrentBatchConfig:p_,ReactCurrentOwner:i_};IE.Children={map:d_,forEach:function(e,t,n){d_(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return d_(e,(function(){t++})),t},toArray:function(e){return d_(e,(function(e){return e}))||[]},only:function(e){if(!s_(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},IE.Component=JE,IE.Fragment=FE,IE.Profiler=$E,IE.PureComponent=e_,IE.StrictMode=jE,IE.Suspense=UE,IE.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=m_,IE.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=XE({},e.props),i=e.key,o=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(o=t.ref,a=i_.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)r_.call(t,l)&&!o_.hasOwnProperty(l)&&(r[l]=void 0===t[l]&&void 0!==s?s[l]:t[l])}var l=arguments.length-2;if(1===l)r.children=n;else if(1<l){s=Array(l);for(var c=0;c<l;c++)s[c]=arguments[c+2];r.children=s}return{$$typeof:LE,type:e.type,key:i,ref:o,props:r,_owner:a}},IE.createContext=function(e){return(e={$$typeof:VE,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:HE,_context:e},e.Consumer=e},IE.createElement=a_,IE.createFactory=function(e){var t=a_.bind(null,e);return t.type=e,t},IE.createRef=function(){return{current:null}},IE.forwardRef=function(e){return{$$typeof:BE,render:e}},IE.isValidElement=s_,IE.lazy=function(e){return{$$typeof:YE,_payload:{_status:-1,_result:e},_init:f_}},IE.memo=function(e,t){return{$$typeof:WE,type:e,compare:void 0===t?null:t}},IE.startTransition=function(e){var t=p_.transition;p_.transition={};try{e()}finally{p_.transition=t}},IE.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},IE.useCallback=function(e,t){return h_.current.useCallback(e,t)},IE.useContext=function(e){return h_.current.useContext(e)},IE.useDebugValue=function(){},IE.useDeferredValue=function(e){return h_.current.useDeferredValue(e)},IE.useEffect=function(e,t){return h_.current.useEffect(e,t)},IE.useId=function(){return h_.current.useId()},IE.useImperativeHandle=function(e,t,n){return h_.current.useImperativeHandle(e,t,n)},IE.useInsertionEffect=function(e,t){return h_.current.useInsertionEffect(e,t)},IE.useLayoutEffect=function(e,t){return h_.current.useLayoutEffect(e,t)},IE.useMemo=function(e,t){return h_.current.useMemo(e,t)},IE.useReducer=function(e,t,n){return h_.current.useReducer(e,t,n)},IE.useRef=function(e){return h_.current.useRef(e)},IE.useState=function(e){return h_.current.useState(e)},IE.useSyncExternalStore=function(e,t,n){return h_.current.useSyncExternalStore(e,t,n)},IE.useTransition=function(){return h_.current.useTransition()},IE.version="18.2.0",PE.exports=IE;var g_=PE.exports,y_=r(g_),v_=t({__proto__:null,default:y_},[g_]);const b_={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"},x_={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"},w_={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"},k_={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"},S_={d:"m 13.914 4.5 l -7.707 7.707 L 2 8 l 0.707 -0.707 l 3.5 3.5 l 7 -7 Z"},C_={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"},M_={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"},E_={single:"N",drillDown:"H",cyclic:"C"},__={N:void 0,H:b_,C:w_},D_=(e,t)=>{switch(e.qGrouping){case E_.single:return;case E_.drillDown:return{path:b_,tooltip:"Tooltip.dimensions.drilldown",onClick:void 0};case E_.cyclic:return{path:t?x_:w_,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 q_(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=sw.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 T_(e,t,n,r,i,o){e.getEffectiveProperties().then((a=>{const s=a.qHyperCubeDef[r].findIndex((e=>e.qDef.cId===t)),l=a.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r].findIndex((e=>e.qDef.cId===n)),c=Eg(!0,{},a),u=c.qHyperCubeDef[r][s],d=c.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l];d.qAttributeDimensions=u.qAttributeDimensions,u.qAttributeDimensions=[],o||(d.qAttributeExpressions=u.qAttributeExpressions,u.qAttributeExpressions=[]),c.qHyperCubeDef[r][s]=d,c.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l]=u,i&&i({oldItem:u,newItem:d,oldProperties:a,newProperties:c,model:e}),q_(e,a,c)}))}function R_(e){return e.qGrouping===E_.single?e.qFallbackTitle||"":e.title||""}const N_=async(e,t,n,r,i,o="/qHyperCubeDef")=>{const a=!i;switch(e.qGrouping){case E_.drillDown:{const n=e.qGroupFallbackTitles.slice(0,e.qGroupPos+1),i=a?[]:n.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:a?void 0:b_,groupItem:!a,title:e.title,selected:a,children:i}}case E_.cyclic:{const t=await(null==n?void 0:n.getDimension(e.qLibraryId)),r=a||!(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:a?void 0:w_,groupItem:!a,title:e.title,selected:a,children:r}}default:return{selected:!0,id:e.cId,title:R_(e)}}},O_=(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))},A_=async(e,t,n,r,i,o)=>{const a=await O_(e,n),s=!o,l=n.filter((e=>!a.includes(e.qDef.cId))),c=await Promise.all(l.map((async n=>{const o=await((e,t)=>{if(e.qLibraryId)return t.getDimension(e.qLibraryId).then((e=>e.getLayout())).catch((()=>null))})(n,e),a=await function(e,t,n,r){if(e.qLibraryId)return r?r.qDim.qGrouping===E_.single&&r.qDim.qLabelExpression?Promise.resolve(r.qDim.qLabelExpression):Promise.resolve(r.qDim.title):Promise.resolve(n.get("Object.ErrorMessage.MissingDimension"));const i=e.qDef.qLabelExpression;if(i)return t.evaluate(i);const o=e.qDef.qFieldLabels[0]||e.qDef.qFieldDefs[0];return Promise.resolve(o)}(n,e,r,o),l=(null==o?void 0:o.qDim.qGrouping)||n.qDef.qGrouping,c=s?void 0:__[l],u=!s&&l!==E_.single;return{id:n.qDef.cId,icon:c,groupItem:u,selected:!1,title:a,onSelect(e){T_(t,e,n.qDef.cId,"qDimensions",i)}}})));return c};function P_({column:e,dir:t,dock:n,altList:r,model:i,translator:o,app:a,onChange:s,activeInfo:l,allowChangeOfAlternatives:c,isCyclicFFEnabled:u}){const d=l.qGrouping===E_.single;return 0!==r.length||u&&!d?{dir:t,dock:n,getPopoverOptions:async()=>{const t=await N_(l,i,a,e,u),n=c?await A_(a,i,r,o,s,u):[];return(d||0===t.children.length)&&0===n.length?[]:[t,...n]}}:null}function I_(e,t,n,r,i="/qHyperCubeDef"){return{breadcrumbs:e.qGrouping===E_.drillDown?e.qGroupFallbackTitles.slice(0,e.qGroupPos):[],icon:D_(e,r),index:t,locked:!!e.qLocked,text:e.qGrouping===E_.single?e.qFallbackTitle:e.qGroupFallbackTitles[e.qGroupPos],popoverText:R_(e),...n&&{drillUp(e){n.drillUp(i,t,e)}},id:e.cId}}function L_({activeInfo:e,altList:t,app:n,dir:r,dock:i,model:o,onChange:a,skipAttributeExpressions:s,translator:l,allowChangeOfAlternatives:c}){return 0===t.length?null:{dir:r,dock:i,getPopoverOptions:async()=>{const r=[{id:e.cId,title:e.qFallbackTitle,selected:!0,onSelect:()=>{}}],i=await O_(n,t),u=t.filter((e=>!i.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 i=e.qDef.qLabel||e.qDef.qDef;return Promise.resolve(i)}(e,n,l);return{id:e.qDef.cId,selected:!1,title:t,onSelect(t){T_(o,t,e.qDef.cId,"qMeasures",a,s)}}}))):[];return 0===d.length?[]:[...r,...d]}}}function z_(e,t){return{breadcrumbs:[],index:t,locked:!1,text:e.qFallbackTitle,popoverText:e.qFallbackTitle,id:e.cId}}function F_(){return F_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},F_.apply(this,arguments)}var j_={exports:{}};function $_(){}function H_(){}H_.resetWarningCache=$_;j_.exports=function(){function e(e,t,n,r,i,o){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==o){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:H_,resetWarningCache:$_};return n.PropTypes=n,n}();var V_=r(j_.exports),B_={black:"#000",white:"#fff"},U_={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},W_={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},Y_={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},K_={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},G_={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},X_={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Z_={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 J_(){return J_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},J_.apply(this,arguments)}function Q_(e){return Q_="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},Q_(e)}function eD(e){return e&&"object"===Q_(e)&&e.constructor===Object}function tD(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?J_({},e):e;return eD(e)&&eD(t)&&Object.keys(t).forEach((function(i){"__proto__"!==i&&(eD(t[i])&&i in e?r[i]=tD(e[i],t[i],n):r[i]=t[i])})),r}function nD(e){var t=function(e,t){if("object"!==Q_(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Q_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Q_(t)?t:String(t)}function rD(e,t,n){return(t=nD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iD(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 oD(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 aD(e){if(e.type)return e;if("#"===e.charAt(0))return aD(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(iD(3,e));var r=e.substring(t+1,e.length-1).split(",");return r=r.map((function(e){return parseFloat(e)})),{type:n,values:r}}function sD(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 lD(e){var t="hsl"===(e=aD(e)).type?aD(function(e){var t=(e=aD(e)).values,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return i-o*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),sD({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 cD(e,t){return e=aD(e),t=oD(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,sD(e)}function uD(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function dD(e,t){if(null==e)return{};var n,r,i=uD(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var fD=["xs","sm","md","lg","xl"];function hD(e,t,n){var r;return J_({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")),J_({paddingLeft:t(2),paddingRight:t(2)},n,rD({},e.up("sm"),J_({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},rD(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),rD(r,e.up("sm"),{minHeight:64}),r)},n)}var pD={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:B_.white,default:Z_[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}},mD={text:{primary:B_.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:Z_[800],default:"#303030"},action:{active:B_.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 gD(e,t,n,r){var i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=aD(e),t=oD(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 sD(e)}(e.main,i):"dark"===t&&(e.dark=function(e,t){if(e=aD(e),t=oD(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 sD(e)}(e.main,o)))}function yD(e){var t=e.primary,n=void 0===t?{light:Y_[300],main:Y_[500],dark:Y_[700]}:t,r=e.secondary,i=void 0===r?{light:W_.A200,main:W_.A400,dark:W_.A700}:r,o=e.error,a=void 0===o?{light:U_[300],main:U_[500],dark:U_[700]}:o,s=e.warning,l=void 0===s?{light:X_[300],main:X_[500],dark:X_[700]}:s,c=e.info,u=void 0===c?{light:K_[300],main:K_[500],dark:K_[700]}:c,d=e.success,f=void 0===d?{light:G_[300],main:G_[500],dark:G_[700]}:d,h=e.type,p=void 0===h?"light":h,m=e.contrastThreshold,g=void 0===m?3:m,y=e.tonalOffset,v=void 0===y?.2:y,b=dD(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function x(e){var t=function(e,t){var n=lD(e),r=lD(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,mD.text.primary)>=g?mD.text.primary:pD.text.primary;return t}var w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=J_({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(iD(4,t));if("string"!=typeof e.main)throw new Error(iD(5,JSON.stringify(e.main)));return gD(e,"light",n,v),gD(e,"dark",r,v),e.contrastText||(e.contrastText=x(e.main)),e},k={dark:mD,light:pD};return tD(J_({common:B_,type:p,primary:w(n),secondary:w(i,"A400","A200","A700"),error:w(a),warning:w(l),info:w(u),success:w(f),grey:Z_,contrastThreshold:g,getContrastText:x,augmentColor:w,tonalOffset:v},k[p]),b)}function vD(e){return Math.round(1e5*e)/1e5}function bD(e){return vD(e)}var xD={textTransform:"uppercase"},wD='"Roboto", "Helvetica", "Arial", sans-serif';function kD(e,t){var n="function"==typeof t?t(e):t,r=n.fontFamily,i=void 0===r?wD:r,o=n.fontSize,a=void 0===o?14:o,s=n.fontWeightLight,l=void 0===s?300:s,c=n.fontWeightRegular,u=void 0===c?400:c,d=n.fontWeightMedium,f=void 0===d?500:d,h=n.fontWeightBold,p=void 0===h?700:h,m=n.htmlFontSize,g=void 0===m?16:m,y=n.allVariants,v=n.pxToRem,b=dD(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),x=a/14,w=v||function(e){return"".concat(e/g*x,"rem")},k=function(e,t,n,r,o){return J_({fontFamily:i,fontWeight:e,fontSize:w(t),lineHeight:n},i===wD?{letterSpacing:"".concat(vD(r/t),"em")}:{},o,y)},S={h1:k(l,96,1.167,-1.5),h2:k(l,60,1.2,-.5),h3:k(u,48,1.167,0),h4:k(u,34,1.235,.25),h5:k(u,24,1.334,0),h6:k(f,20,1.6,.15),subtitle1:k(u,16,1.75,.15),subtitle2:k(f,14,1.57,.1),body1:k(u,16,1.5,.15),body2:k(u,14,1.43,.15),button:k(f,14,1.75,.4,xD),caption:k(u,12,1.66,.4),overline:k(u,12,2.66,1,xD)};return tD(J_({htmlFontSize:g,pxToRem:w,round:bD,fontFamily:i,fontSize:a,fontWeightLight:l,fontWeightRegular:u,fontWeightMedium:f,fontWeightBold:p},S),b,{clone:!1})}function SD(){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 CD=["none",SD(0,2,1,-1,0,1,1,0,0,1,3,0),SD(0,3,1,-2,0,2,2,0,0,1,5,0),SD(0,3,3,-2,0,3,4,0,0,1,8,0),SD(0,2,4,-1,0,4,5,0,0,1,10,0),SD(0,3,5,-1,0,5,8,0,0,1,14,0),SD(0,3,5,-1,0,6,10,0,0,1,18,0),SD(0,4,5,-2,0,7,10,1,0,2,16,1),SD(0,5,5,-3,0,8,10,1,0,3,14,2),SD(0,5,6,-3,0,9,12,1,0,3,16,2),SD(0,6,6,-3,0,10,14,1,0,4,18,3),SD(0,6,7,-4,0,11,15,1,0,4,20,3),SD(0,7,8,-4,0,12,17,2,0,5,22,4),SD(0,7,8,-4,0,13,19,2,0,5,24,4),SD(0,7,9,-4,0,14,21,2,0,5,26,4),SD(0,8,9,-5,0,15,22,2,0,6,28,5),SD(0,8,10,-5,0,16,24,2,0,6,30,5),SD(0,8,11,-5,0,17,26,2,0,6,32,5),SD(0,9,11,-5,0,18,28,2,0,7,34,6),SD(0,9,12,-6,0,19,29,2,0,7,36,6),SD(0,10,13,-6,0,20,31,3,0,8,38,7),SD(0,10,13,-6,0,21,33,3,0,8,40,7),SD(0,10,14,-6,0,22,35,3,0,8,42,7),SD(0,11,14,-7,0,23,36,3,0,9,44,8),SD(0,11,15,-7,0,24,38,3,0,9,46,8)],MD={borderRadius:4};function ED(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _D(e,t){if(e){if("string"==typeof e)return ED(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ED(e,t):void 0}}function DD(e){return function(e){if(Array.isArray(e))return ED(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||_D(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 qD(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||_D(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 TD(){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 RD={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)"},ND={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function OD(e){return"".concat(Math.round(e),"ms")}var AD={easing:RD,duration:ND,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?ND.standard:n,i=t.easing,o=void 0===i?RD.easeInOut:i,a=t.delay,s=void 0===a?0:a;return dD(t,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof r?r:OD(r)," ").concat(o," ").concat("string"==typeof s?s:OD(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))}},PD={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function ID(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,i=void 0===r?{}:r,o=e.palette,a=void 0===o?{}:o,s=e.spacing,l=e.typography,c=void 0===l?{}:l,u=dD(e,["breakpoints","mixins","palette","spacing","typography"]),d=yD(a),f=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,r=e.unit,i=void 0===r?"px":r,o=e.step,a=void 0===o?5:o,s=dD(e,["values","unit","step"]);function l(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(i,")")}function c(e,t){var r=fD.indexOf(t);return r===fD.length-1?l(e):"@media (min-width:".concat("number"==typeof n[e]?n[e]:e).concat(i,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof n[fD[r+1]]?n[fD[r+1]]:t)-a/100).concat(i,")")}return J_({keys:fD,values:n,up:l,down:function(e){var t=fD.indexOf(e)+1,r=n[fD[t]];return t===fD.length?l("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-a/100).concat(i,")")},between:c,only:function(e){return c(e,e)},width:function(e){return n[e]}},s)}(n),h=TD(s),p=tD({breakpoints:f,direction:"ltr",mixins:hD(f,h,i),overrides:{},palette:d,props:{},shadows:CD,typography:kD(d,c),spacing:h,shape:MD,transitions:AD,zIndex:PD},u),m=arguments.length,g=new Array(m>1?m-1:0),y=1;y<m;y++)g[y-1]=arguments[y];return p=g.reduce((function(e,t){return tD(e,t)}),p)}var LD="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",zD=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function FD(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,i=void 0===r?"jss":r,o=e.seed,a=void 0===o?"":o,s=""===a?"":"".concat(a,"-"),l=0,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!==zD.indexOf(e.key))return"Mui-".concat(e.key);var o="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[LD]&&""===a?"".concat(o,"-").concat(c()):o}return"".concat(s).concat(i).concat(c())}}function jD(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var i,o=t.props[n];for(i in o)void 0===r[i]&&(r[i]=o[i]);return r}var $D="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},HD="object"===("undefined"==typeof window?"undefined":$D(window))&&"object"===("undefined"==typeof document?"undefined":$D(document))&&9===document.nodeType;function VD(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,nD(r.key),r)}}function BD(e,t,n){return t&&VD(e.prototype,t),n&&VD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function UD(e,t){return UD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},UD(e,t)}function WD(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,UD(e,t)}function YD(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var KD={}.constructor;function GD(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(GD);if(e.constructor!==KD)return e;var t={};for(var n in e)t[n]=GD(e[n]);return t}function XD(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,i=GD(t),o=r.plugins.onCreateRule(e,i,n);return o||(e[0],null)}var ZD=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},JD=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+=ZD(e[n]," ");else t=ZD(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function QD(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function eq(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function tq(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var i=n.indent,o=void 0===i?0:i,a=t.fallbacks;!1===n.format&&(o=-1/0);var s=QD(n),l=s.linebreak,c=s.space;if(e&&o++,a)if(Array.isArray(a))for(var u=0;u<a.length;u++){var d=a[u];for(var f in d){var h=d[f];null!=h&&(r&&(r+=l),r+=eq(f+":"+c+JD(h)+";",o))}}else for(var p in a){var m=a[p];null!=m&&(r&&(r+=l),r+=eq(p+":"+c+JD(m)+";",o))}for(var g in t){var y=t[g];null!=y&&"fallbacks"!==g&&(r&&(r+=l),r+=eq(g+":"+c+JD(y)+";",o))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),eq(""+e+c+"{"+r,--o)+eq("}",o)):r}var nq=/([[\].#*$><+~=|^:(),"'`\s])/g,rq="undefined"!=typeof CSS&&CSS.escape,iq=function(e){return rq?rq(e):e.replace(nq,"\\$1")},oq=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,i=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:i&&(this.renderer=new i)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var i=t;n&&!1===n.process||(i=this.options.jss.plugins.onChangeValue(t,e,this));var o=null==i||!1===i,a=e in this.style;if(o&&!a&&!r)return this;var s=o&&a;if(s?delete this.style[e]:this.style[e]=i,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,i),this;var l=this.options.sheet;return l&&l.attached,this},e}(),aq=function(e){function t(t,n,r){var i;i=e.call(this,t,n,r)||this;var o=r.selector,a=r.scoped,s=r.sheet,l=r.generateId;return o?i.selectorText=o:!1!==a&&(i.id=l(YD(YD(i)),s),i.selectorText="."+iq(i.id)),i}WD(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]=JD(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?J_({},e,{allowEmpty:!0}):e;return tq(this.selectorText,this.style,n)},BD(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}(oq),sq={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new aq(e,t,n)}},lq={indent:1,children:!0},cq=/@([\w-]+)/,uq=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(cq);for(var i in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new Aq(J_({},n,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=lq);var t=QD(e).linebreak;if(null==e.indent&&(e.indent=lq.indent),null==e.children&&(e.children=lq.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),dq=/@container|@media|@supports\s+/,fq={onCreateRule:function(e,t,n){return dq.test(e)?new uq(e,t,n):null}},hq={indent:1,children:!0},pq=/@keyframes\s+([\w-]+)/,mq=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(pq);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var i=n.scoped,o=n.sheet,a=n.generateId;for(var s in this.id=!1===i?this.name:iq(a(this,o)),this.rules=new Aq(J_({},n,{parent:this})),t)this.rules.add(s,t[s],J_({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=hq);var t=QD(e).linebreak;if(null==e.indent&&(e.indent=hq.indent),null==e.children&&(e.children=hq.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}(),gq=/@keyframes\s+/,yq=/\$([\w-]+)/g,vq=function(e,t){return"string"==typeof e?e.replace(yq,(function(e,n){return n in t?t[n]:e})):e},bq=function(e,t,n){var r=e[t],i=vq(r,n);i!==r&&(e[t]=i)},xq={onCreateRule:function(e,t,n){return"string"==typeof e&&gq.test(e)?new mq(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&bq(e,"animation-name",n.keyframes),"animation"in e&&bq(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 vq(e,r.keyframes);default:return e}}},wq=function(e){function t(){return e.apply(this,arguments)||this}return WD(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?J_({},e,{allowEmpty:!0}):e;return tq(this.key,this.style,n)},t}(oq),kq={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new wq(e,t,n):null}},Sq=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=QD(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=tq(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return tq(this.at,this.style,e)},e}(),Cq=/@font-face/,Mq={onCreateRule:function(e,t,n){return Cq.test(e)?new Sq(e,t,n):null}},Eq=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 tq(this.key,this.style,e)},e}(),_q={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new Eq(e,t,n):null}},Dq=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}(),qq={"@charset":!0,"@import":!0,"@namespace":!0},Tq={onCreateRule:function(e,t,n){return e in qq?new Dq(e,t,n):null}},Rq=[sq,fq,xq,kq,Mq,_q,Tq],Nq={process:!0},Oq={force:!0,process:!0},Aq=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,i=r.parent,o=r.sheet,a=r.jss,s=r.Renderer,l=r.generateId,c=r.scoped,u=J_({classes:this.classes,parent:i,sheet:o,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="."+iq(this.classes[d]));var f=XD(d,t,u);if(!f)return null;this.register(f);var h=void 0===u.index?this.index.length:u.index;return this.index.splice(h,0,f),f},t.replace=function(e,t,n){var r=this.get(e),i=this.index.indexOf(r);r&&this.remove(r);var o=n;return-1!==i&&(o=J_({},n,{index:i})),this.add(e,t,o)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof aq?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof mq&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof aq?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof mq&&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=Nq);var i=this.options,o=i.jss.plugins,a=i.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t.style;if(o.onUpdate(n,t,a,r),r.process&&s&&s!==t.style){for(var l in o.onProcessStyle(t.style,t,a),t.style){var c=t.style[l];c!==s[l]&&t.prop(l,c,Oq)}for(var u in s){var d=t.style[u],f=s[u];null==d&&d!==f&&t.prop(u,null,Oq)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,i=QD(e).linebreak,o=0;o<this.index.length;o++){var a=this.index[o].toString(e);(a||r)&&(t&&(t+=i),t+=a)}return t},e}(),Pq=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=J_({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new Aq(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var i=this.rules.add(e,t,n);return i?(this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(r?r.push(i):(this.insertRule(i),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),i):i:(this.deployed=!1,i)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var i=this.rules.replace(e,t,n);return i&&this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(this.renderer&&(i?r.renderable&&this.renderer.replaceRule(r.renderable,i):this.renderer.deleteRule(r)),i):i:(this.deployed=!1,i)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var i=this.addRule(r,e[r],t);i&&n.push(i)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),Iq=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var i=this.registry.onCreateRule[r](e,t,n);if(i)return i}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var i=0;i<this.registry.onUpdate.length;i++)this.registry.onUpdate[i](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,i=0;i<this.registry.onChangeValue.length;i++)r=this.registry.onChangeValue[i](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),Lq=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=uD(t,["attached"]),i=QD(r).linebreak,o="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=n&&s.attached!==n||(o&&(o+=i),o+=s.toString(r))}return o},BD(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),zq=new Lq,Fq="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),jq="2f1acc6c3a606b082e5eef5e54414ffb";null==Fq[jq]&&(Fq[jq]=0);var $q=Fq[jq]++,Hq=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var i="",o="";return r&&(r.options.classNamePrefix&&(o=r.options.classNamePrefix),null!=r.options.jss.id&&(i=String(r.options.jss.id))),e.minify?""+(o||"c")+$q+i+t:o+n.key+"-"+$q+(i?"-"+i:"")+"-"+t}},Vq=function(e){var t;return function(){return t||(t=e()),t}},Bq=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},Uq=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=JD(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var i=r?r.indexOf("!important"):-1,o=i>-1?r.substr(0,i-1):r;e.style.setProperty(t,o,i>-1?"important":"")}}catch(e){return!1}return!0},Wq=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},Yq=function(e,t){return e.selectorText=t,e.selectorText===t},Kq=Vq((function(){return document.querySelector("head")}));function Gq(e){var t=zq.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var i=function(e){for(var t=Kq(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}var Xq=Vq((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),Zq=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]},Jq=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},Qq=function(){function e(e){this.getPropertyValue=Bq,this.setProperty=Uq,this.removeProperty=Wq,this.setSelector=Yq,this.hasInsertedRules=!1,this.cssRules=[],e&&zq.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,i=t.element;this.element=i||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var o=Xq();o&&this.element.setAttribute("nonce",o)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=Gq(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var i=n,o=i.parentNode;o&&o.insertBefore(e,i.nextSibling)}else Kq().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,i=n;if("conditional"===e.type||"keyframes"===e.type){var o=Jq(n,t);if(!1===(i=Zq(n,r.toString({children:!1}),o)))return!1;this.refCssRule(e,o,i)}return this.insertRules(r.rules,i),i}var a=e.toString();if(!a)return!1;var s=Jq(n,t),l=Zq(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 Pq&&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}(),eT=0,tT=function(){function e(e){this.id=eT++,this.version="10.10.0",this.plugins=new Iq,this.options={id:{minify:!1},createGenerateId:Hq,Renderer:HD?Qq:null,plugins:[]},this.generateId=Hq({minify:!1});for(var t=0;t<Rq.length;t++)this.plugins.use(Rq[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=J_({},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===zq.index?0:zq.index+1);var r=new Pq(e,J_({},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(),zq.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=J_({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var i=XD(e,t,r);return i&&this.plugins.onProcessRule(i),i},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}(),nT=function(e){return new tT(e)},rT="object"==typeof CSS&&null!=CSS&&"number"in CSS;function iT(e){var t=null;for(var n in e){var r=e[n],i=typeof r;if("function"===i)t||(t={}),t[n]=r;else if("object"===i&&null!==r&&!Array.isArray(r)){var o=iT(r);o&&(t||(t={}),t[n]=o)}}return t}
|
|
16
|
+
e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,i,o,a,s,l,c,u,d,f=e.length,h=e.search(/[0-9\-\+#]/),p=h>0?e.substring(0,h):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),y=f-g,v=e.substring(y,y+1),b=y+("."===v||","===v?1:0),x=g>0?e.substring(b,f):"";if(n=(t="-"===(e=e.substring(h,b)).charAt(0)?-t:+t)<0?t=-t:0,i=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",o=r&&r[1]&&r[0]||",",e=e.split(i),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(c=t.split("."))[1]||c[1]&&c[1].length<=s)&&(t=(+t).toFixed(s+1)),u=e[0].split(o),e[0]=u.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;c[0].length<e[0].length-a;)c[0]="0"+c[0];else 0==+c[0]&&(c[0]="");if((t=t.split("."))[0]=c[0],l=u[1]&&u[u.length-1].length){for(m="",y=(d=t[0]).length%l,f=d.length,b=0;b<f;b++)m+=d.charAt(b),!((b-y+1)%l)&&b<f-l&&(m+=o);t[0]=m}return t[1]=e[1]&&t[1]?i+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),p+(n?"-":"")+r+x}},RC(NC={exports:{}}),NC.exports);function AC(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}const PC={3:"k",6:"M",9:"G",12:"T",15:"P",18:"E",21:"Z",24:"Y","-3":"m","-6":"μ","-9":"n","-12":"p","-15":"f","-18":"a","-21":"z","-24":"y"},IC=/%\)?$/,LC=/^\(r(0[2-9]|[12]\d|3[0-6])\)/i,zC=/^\(oct\)/i,FC=/^\(dec\)/i,jC=/^\(hex\)/i,$C=/^\(bin\)/i,HC=/^\(rom\)/i,VC=/^(\(rom\)|\(bin\)|\(hex\)|\(dec\)|\(oct\)|\(r(0[2-9]|[12]\d|3[0-6])\))/i,BC=/#|0/g;function UC(e,t,n,r){return e=e.toString(t),n[1]===n[1].toUpperCase()&&(e=e.toUpperCase()),e.length-e.indexOf(".")>10&&(e=e.slice(0,e.indexOf(".")+11)),e.replace(".",r||".")}function WC(e,t,n){const r=AC(e);return n?r:new RegExp(r||"",t)}function YC(e,t,n,r){let i,o,a,s,l,c,u,d,f,h=e.pattern;var p,m;r&&(e.abbreviate=!0),p=t,(m=n)&&(m=AC(m)),p&&(p=AC(p)),f=new RegExp("(?:[#0]+".concat(p,")?[#0]+(?:").concat(m,"[#0]+)?")),a=h.match(f),a=a?a[0]:"",s=a?h.substr(0,h.indexOf(a)):h,l=a?h.substring(h.indexOf(a)+a.length):"",a||(a=h?"#":"##########"),t&&t===n&&(i=a.split(n),o=i.pop(),a=i.join("")+n+o,t=""),c=t,t=/,/.test(n)?"¤":",",c&&(a=a.replace(WC(c,"g"),t)),u=n,n=".",u&&(a=a.replace(WC(u,"g"),n)),d=a.match(/#/g),d=d?d.length:0;const g=h.split(u);let y;g[1]&&(y=g[1].match(BC)),e.prefix=s||"",e.postfix=l||"",e.pattern=h,e.maxPrecision=y?y.length:2,e.percentage=IC.test(h),e.numericPattern=a||"",e.numericRegex=new RegExp("".concat(WC(t,null,!0),"|").concat(WC(n,null,!0)),"g"),e.groupTemp=c,e.decTemp=u,e.t=t,e.d=n,e.temp=d}class KC{constructor(e,t,n,r,i){this.localeInfo=e,this.pattern=t,this.thousandDelimiter=n||",",this.decimalDelimiter=r||".",this.type=i||"numeric",this.patternSeparator=";",this.abbreviations=function(e,t){if(!e||!e.qNumericalAbbreviation)return PC;const n={};return e.qNumericalAbbreviation.split(t).forEach((e=>{let t=e.split(":");2===t.length&&(n[t[0]]=t[1])})),n}(e,this.patternSeparator),this.prepare()}clone(){const e=new KC(this.localeInfo,this.pattern,this.thousandDelimiter,this.decimalDelimiter,this.type);return e.subtype=this.subtype,e}format(e,t,n,r){return this.prepare(t,n,r),this.formatValue(e)}prepare(e,t,n){let r;if(void 0===e&&(e=this.pattern),void 0===t&&(t=this.thousandDelimiter),void 0===n&&(n=this.decimalDelimiter),!e)return void(this._prepared={pattern:!1});this._prepared={positive:{d:n,t:t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""},negative:{d:n,t:t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""},zero:{d:n,t:t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""}},r=this._prepared,e=e.split(this.patternSeparator),r.positive.pattern=e[0],r.negative.pattern=e[1],r.zero.pattern=e[2],VC.test(e[0])&&(r.positive.isFunctional=!0),e[1]?VC.test(e[1])&&(r.negative.isFunctional=!0):r.negative=!1,e[2]?VC.test(e[2])&&(r.zero.isFunctional=!0):r.zero=!1;const i="U"===this.type;r.positive.isFunctional||YC(r.positive,t,n,i),r.negative&&!r.negative.isFunctional&&YC(r.negative,t,n,i),r.zero&&!r.zero.isFunctional&&YC(r.zero,t,n,i)}formatValue(e){let t,n,r,i,o,a,s,l,c,u=this._prepared,d="",f="",h=e;if(isNaN(e))return"".concat(h);if(e=+e,!1===u.pattern)return e.toString();if(0===e&&u.zero)return u=u.zero,u.pattern;if(e<0&&u.negative?(u=u.negative,e=-e):u=u.positive,o=u.d,a=u.t,u.isFunctional)e=function(e,t,n){let r;return LC.test(t)?e=UC(e,Number(/\d{2}/.exec(t)[0]),t,n):zC.test(t)?e=UC(e,8,t,n):FC.test(t)?e=UC(e,10,t,n):jC.test(t)?e=UC(e,16,t,n):$C.test(t)?e=UC(e,2,t,n):HC.test(t)&&(r="",e<0&&(r="-",e=-e),0===(e=Math.floor(e))?e="0":e<=5e5?(e=function(e,t){let n,r="",i=Number(String(e).slice(-3)),o=(e-i)/1e3,a=[0,1,4,5,9,10,40,50,90,100,400,500,900].reverse(),s=["0","I","IV","V","IX","X","XL","L","XC","C","CD","D","CM"].reverse();for(;i>0;)for(n=0;n<a.length;n++)if(a[n]<=i){r+=s[n],i-=a[n];break}for(n=0;n<o;n++)r="M".concat(r);return t[1]!==t[1].toUpperCase()&&(r=r.toLowerCase()),r}(e,t),e=r+e):e=t+r+e.toExponential(0)),e}(e,u.pattern,o);else{if(u.percentage&&(e*=100),u.abbreviate){const t=Object.keys(this.abbreviations).map((e=>parseInt(e,10))).sort(((e,t)=>e-t));let r,i,o=t[0];for(s=0,n=Number(Number(e).toExponential().split("e")[1]);o<=n&&s<t.length;)s++,o=t[s];s>0&&(r=t[s-1]),r&&n>0&&r>0?i=r:(n<0&&r<0||!r)&&(o<0&&o-n<=u.maxPrecision?i=o:r<=n&&!(o>0&&-n<=u.maxPrecision)&&(i=r)),i&&(d=this.abbreviations[i],e/=10**i)}if(r=Math.abs(e),t=u.temp,l=u.numericPattern,c=l.split(o)[1],"I"===this.type&&(e=Math.round(e)),i=e,c||"#"!==l.slice(-1)[0])if(r>=1e15||r>0&&r<=1e-14)e=r?r.toExponential(15).replace(/\.?0+(?=e)/,""):"0";else{const t=Number(e.toFixed(Math.min(20,c?c.length:0)).split(".")[0]);let n=l.split(o)[0];if(n+=o,e=OC(n,t)||"0",c){const t=Math.max(0,Math.min(14,c.length)),n=c.replace(/#+$/,"").length;let i=("I"===this.type?0:r%1+1e-15).toFixed(t).slice(2).replace(/0+$/,"");for(s=i.length;s<n;s++)i+="0";i&&(e+=o+i)}else 0===t&&(i=0)}else if(r>=10**t||r<1||r<1e-4)0===e?e="0":r<1e-4||r>=1e20?(e=(e=i.toExponential(Math.max(1,Math.min(14,t))-1)).replace(/\.?0+(?=e)/,""),f=""):(e=e.toPrecision(Math.max(1,Math.min(14,t)))).indexOf(".")>=0&&(e=(e=e.replace(e.indexOf("e")<0?/0+$/:/\.?0+(?=e)/,"")).replace(".",o));else{for(l+=o,t=Math.max(0,Math.min(20,t-Math.ceil(Math.log(r)/Math.log(10)))),s=0;s<t;s++)l+="#";e=OC(l,e)}e=e.replace(u.numericRegex,(e=>e===a?u.groupTemp:e===o?u.decTemp:"")),i<0&&!/^-/.test(e)&&(e="-".concat(e))}return u.prefix+e+f+d+u.postfix}static getStaticFormatter(){return{prepare(){},formatValue:e=>"".concat(e)}}}function GC(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{size:n=5e3,multipleArguments:r=!1,toKey:i=(e=>e)}=t;let o,a,s=Object.create(null),l=Object.create(null),c=0,u=0;return o=r?function(){return a=i(...arguments),o.has(a)?o.get(a):o.set(a,e(...arguments))}:t=>(a=i(t),o.has(a)?o.get(a):o.set(a,e(t))),o.set=(e,t)=>(c>=n&&(delete s[l[u]],delete l[u],c--,u++),s[e]=t,l[c]=e,c++,t),o.get=e=>s[e],o.has=e=>e in s,o.clear=()=>{s=Object.create(null),l=Object.create(null),c=0,u=0},o.size=()=>c,o}function XC(e,t,n,r,i){const o=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new KC(...t)}(i,e,t,n,r),a=GC(o.formatValue.bind(o),{toKey:e=>isNaN(e)?e:+e});function s(e){return a(e)}return s.format=function(e,t,n,r){return a.clear(),o.format(t,e,n,r)},s.pattern=function(e){return e&&(a.clear(),o.pattern=e,o.prepare()),o.pattern},s}const ZC="IV",JC=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],QC=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],eM=["January","February","March","April","May","June","July","August","September","October","November","December"],tM=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function nM(e,t){for(let n=e.length;n<t;n++)e="0".concat(e);return e}function rM(e){let t=e.toString().split(".");return t[1]?(t=Number("0.".concat(t[1])),t):0}class iM{constructor(e,t,n){const r=e||{};r.qCalendarStrings||(r.qCalendarStrings={qLongDayNames:JC,qDayNames:QC,qLongMonthNames:eM,qMonthNames:tM}),this.localeInfo=r,this.locale_days=r.qCalendarStrings.qLongDayNames.slice(),this.locale_days_abbr=r.qCalendarStrings.qDayNames.slice(),this.locale_months=r.qCalendarStrings.qLongMonthNames.slice(),this.locale_months_abbr=r.qCalendarStrings.qMonthNames.slice(),t||(t={T:r.qTimeFmt||"hh:mm:ss",D:r.qDateFmt||"YYYY-MM-DD",TS:r.qTimestampFmt||"YYYY-MM-DD hh:mm:ss"}[n]),this.pattern=t}clone(){const e=new iM(this.localeInfo,this.pattern);return e.subtype=this.subtype,e}format(e,t){t||(t=this.pattern?this.pattern:"YYYY-MM-DD hh:mm:ss"),t=t.replace(/\[.+]|\[|]/g,"");const n=/t+/gi.test(t);let r;e instanceof Date?r=function(e,t){let n=e.getUTCHours(),r=e.getUTCDay()-1;return t&&(n%=12,n||(n=12)),r<0&&(r=6),{year:e.getUTCFullYear(),month:e.getUTCMonth(),day:r,date:e.getUTCDate(),h:n,m:e.getUTCMinutes(),s:e.getUTCSeconds(),f:e.getUTCMilliseconds(),t:e.getUTCHours()>=12?"pm":"am"}}(e,n):(e<0&&(e=-e,t="-".concat(t)),r=function(e,t){let n,r=function(e){const t=e,n=24*rM(t),r=60*rM(n),i=60*rM(r),o=1e3*rM(i);return{d:Math.floor(t),h:Math.floor(n),m:Math.floor(r),s:Math.floor(i),f:Math.round(o)}}(e),i=r.d,o=r.h,a=r.m,s=r.s,l=r.f,c=0;/w+|t+/gi.test(t)&&(n=new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,Math.round(86400*(e-Math.floor(e))))),isNaN(n.getTime())&&(n=null)),/D+/gi.test(t)||(o+=24*i),/h+/gi.test(t)||(a+=60*o),/m+/gi.test(t)||(s+=60*a),/w+/gi.test(t)&&(c=n?n.getDay()-1:0,c<0&&(c=6));let u="";return n&&(u=n.getUTCHours()>=12?"pm":"am"),{year:0,month:0,day:c,date:i,h:o,m:a,s:s,f:l,t:u}}(e,t));const i=(o=this,a=r,{"Y+|y+":{Y:"".concat(Number("".concat(a.year).slice(-2))),YY:nM("".concat(a.year).slice(-2),2),YYY:nM("".concat(a.year).slice(-3),3),def:e=>nM("".concat(a.year),e.length)},"M+":{M:a.month+1,MM:nM("".concat(a.month+1),2),MMM:o.locale_months_abbr[a.month],def:o.locale_months[a.month]},"W+|w+":{W:a.day,WW:nM("".concat(a.day),2),WWW:o.locale_days_abbr[a.day],def:o.locale_days[a.day]},"D+|d+":{D:a.date,def:e=>nM("".concat(a.date),e.length)},"h+|H+":{h:a.h,def:e=>nM("".concat(a.h),e.length)},"m+":{m:a.m,def:e=>nM("".concat(a.m),e.length)},"s+|S+":{s:a.s,def:e=>nM("".concat(a.s),e.length)},"f+|F+":{def(e){let t="".concat(a.f),n=e.length-t.length;if(n>0)for(let e=0;e<n;e++)t+="0";else n<0&&(t=t.slice(0,e.length));return t}},"t{1,2}|T{1,2}":{def(e){let t=a.t;return e[0].toUpperCase()===e[0]&&(t=t.toUpperCase()),t=t.slice(0,e.length),t}}});var o,a;const s=[];for(const e in i)Object.prototype.hasOwnProperty.call(i,e)&&s.push(e);const l=new RegExp(s.join("|"),"g");return t.replace(l,(e=>{let t,n,r;for(n in i)if(Object.prototype.hasOwnProperty.call(i,n)&&(t=new RegExp(n),t.test(e)))break;if(!t)return"";for(const t in i[n])if(t===e||t.toLowerCase()===e){r=i[n][t],void 0===r&&(r=i[n][t.toLowerCase()]);break}return void 0===r&&(r=i[n].def),"function"==typeof r&&(r=r(e)),r}))}}function oM(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new iM(...t)}function aM(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"TS",n=oM(arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,e,t),r=GC(n.format.bind(n),{toKey:e=>"object"==typeof e&&"function"==typeof e.getTime?e.getTime():e});function i(e){return t!==ZC?function(e){return new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,0,Math.round(864e5*(e-Math.floor(e)))))}(e):e}function o(e){return e=i(e),r(e)}return o.format=function(e,t){return r.clear(),t=i(t),n.format(t,e)},o.locale=function(i){return n=oM(i,e,t),r=GC(n.format.bind(n),{toKey:e=>"object"==typeof e?e.getTime():e}),this},o.qtype=function(e){return void 0!==e&&(t=e,r.clear()),t},o}function sM(){let e,{meta:t,id:n,key:r,localeInfo:i,fieldExtractor:o,value:a,type:s,sourceField:l}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const c=a||("dimension"===s?e=>null==e?void 0:e.qElemNo:e=>null==e?void 0:e.qValue),u="dimension"===s?"first":"avg",d=function(e,t){if(e&&e.qNumFormat&&-1!==["D","T","TS","IV"].indexOf(e.qNumFormat.qType))return aM(e.qNumFormat.qFmt,e.qNumFormat.qType,t);let n="#",r=t&&void 0!==t.qThousandSep?t.qThousandSep:",",i=t&&void 0!==t.qDecimalSep?t.qDecimalSep:".",o="U",a=e&&!!e.qIsAutoFormat;return e&&e.qNumFormat?(n=e.qNumFormat.qFmt||n,r=e.qNumFormat.qThou||r,i=e.qNumFormat.qDec||i,o=e.qNumFormat.qType||o,a=a&&-1===["M"].indexOf(e.qNumFormat.qType)):a=!0,(a||"U"===o)&&(n="#".concat(i,"##"),o="U"),XC(n,r,i,o,t)}(t,i),f="dimension"===s?"first":(e,t)=>d(t),h={id:()=>n,key:()=>r,raw:()=>t,title:()=>t.qFallbackTitle||t.label,type:()=>s,origin:()=>l,items:()=>(e||(e=o(h)),e),min:()=>t.qMin,max:()=>t.qMax,value:c,label:e=>(null==e?void 0:e.qText)||"",reduce:u,reduceLabel:f,formatter:()=>d,tags:()=>t.qTags};return h}function lM(e,t,n,r,i){return(t[e]||[]).map(((t,o)=>{const a="".concat(r?"".concat(r,"/"):"").concat(e,"/").concat(o),s={instance:sM(KS({id:"".concat(n?"".concat(n,"/"):"").concat(a),key:a,meta:t},i))};return s.attrDims=lM("qAttrDimInfo",t,n,a,KS({},i,{value:e=>null==e?void 0:e.qElemNo,type:"dimension"})),s.attrExps=lM("qAttrExprInfo",t,n,a,KS({},i,{value:e=>null==e?void 0:e.qNum,type:"measure"})),s.measures=lM("qMeasureInfo",t,n,a,KS({},i,{value:e=>null==e?void 0:e.qValue,type:"measure"})),s}))}function cM(){let{key:e,data:t,config:n={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r={fields:[],wrappedFields:[],allFields:[],virtualFields:[]},i=t;if(!i)throw new Error('Missing "data" input');if(!i.qDimensionInfo)throw new Error('The "data" input is not recognized as a hypercube');const o=cM.util,a={cache:r,cube:i,localeInfo:n.localeInfo,fieldExtractor:null,pages:null,hierarchy:()=>null,virtualFields:n.virtualFields},s={key:()=>e,raw:()=>i,field:e=>function(e,t){let{cache:n}=t;if("number"==typeof e)return n.fields[e];const r=n.allFields;if("function"==typeof e){for(let t=0;t<r.length;t++)if(e(r[t]))return r[t];return!1}if("string"==typeof e){for(let t=0;t<r.length;t++)if(r[t].key()===e||r[t].title()===e)return r[t]}else if(e&&-1!==r.indexOf(e))return e;throw Error("Field not found: ".concat(e))}(e,a),fields:()=>r.fields.slice(),extract:e=>a.extractor(e,s,r,o),hierarchy:e=>a.hierarchy(e,s,r,o),_cache:()=>r};"K"===i.qMode||"T"===i.qMode||!i.qMode&&i.qNodesOnDim?(a.extractor=TC,a.hierarchy=qC,a.pages="K"===i.qMode?i.qStackedDataPages:i.qTreeDataPages):"S"===i.qMode?(a.extractor=JS,a.pages=i.qDataPages,a.hierarchy=qC):a.extractor=()=>[],a.fieldExtractor=e=>a.extractor({field:e},s,r,o);const l="S"===i.qMode?e=>e.qElemNumber:void 0,c="S"===i.qMode?e=>e.qNum:void 0;r.wrappedFields.push(...lM("qDimensionInfo",i,e,"",KS({},a,{value:l,type:"dimension"}))),r.wrappedFields.push(...lM("qMeasureInfo",i,e,"",KS({},a,{value:c,type:"measure"}))),r.fields=r.wrappedFields.map((e=>e.instance));const u=e=>{e.forEach((e=>{r.allFields.push(e.instance),u(e.measures),u(e.attrDims),u(e.attrExps)}))};return u(r.wrappedFields),(n.virtualFields||[]).forEach((t=>{const n=s.field(t.from),i=sM(zS({meta:n.raw(),id:"".concat(e,"/").concat(t.key),sourceField:n,fieldExtractor:e=>a.extractor({field:e},s,r,o),key:t.key,type:n.type(),localeInfo:a.localeInfo,value:n.value},t.override||{}));r.virtualFields.push(i)})),r.allFields.push(...r.virtualFields),s}const uM=[["qHyperCube","qHyperCubeDef"],["qTreeData","qTreeDataDef"],["qDimensionInfo","qDimensions"],["qMeasureInfo","qMeasures"],["qAttrDimInfo","qAttributeDimensions"],["qAttrExprInfo","qAttributeExpressions"]],dM=/\/qDimensionInfo(?:\/(\d+))?/,fM=/\/qMeasureInfo\/(\d+)/,hM=/\/qAttrDimInfo\/(\d+)(?:\/(\d+))?/,pM=/\/qAttrExprInfo\/(\d+)/,mM=/\/?qHyperCube/,gM=/\/?qTreeData/,yM=e=>"".concat(e.substr(0,e.indexOf("/qHyperCubeDef")+14)),vM=e=>"".concat(e.substr(0,e.indexOf("/qTreeDataDef")+13));function bM(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r=t.byCells,i=t.primarySource,o=[],a={},s=e.isActive();let l=!1;return e.brushes().forEach((e=>{const t=function(e,t){let n=e,r=-1,i=-1,o="",a=e=>e;mM.test(e)?(o="".concat(n.substr(0,n.indexOf("qHyperCube")+10)),a=yM):gM.test(e)&&(o="".concat(n.substr(0,n.indexOf("qTreeData")+9)),a=vM);let s=!0;if(dM.test(e)&&(r=+dM.exec(e)[1]),fM.test(e)&&(i=+fM.exec(e)[1]),hM.test(e)){i=-1,r=0;const e=+hM.exec(n)[2];isNaN(e)||(r=e,n=n.replace(/\/\d+$/,"")),s=!1}if(pM.test(e)){const e=i;if(t){i=0;const a=pC(o,t);i+=(a.qMeasureInfo||[]).length,r>-1?(i=a.qDimensionInfo.slice(0,r).reduce(((e,t)=>e+t.qAttrExprInfo.length),i),r=-1):(i=a.qDimensionInfo.reduce(((e,t)=>e+t.qAttrExprInfo.length),i),i=a.qMeasureInfo.slice(0,e).reduce(((e,t)=>e+t.qAttrExprInfo.length),i)),i+=+pM.exec(n)[1]}else r>-1?(r=-1,i=+pM.exec(n)[1]):i+=+pM.exec(n)[1]+1}return uM.forEach((e=>{let[t,r]=e;n=n.replace(t,r)})),s&&(n=a(n)),n&&"/"!==n[0]&&(n="/".concat(n)),{measureIdx:i,dimensionIdx:r,path:n}}(e.id,n);if("range"===e.type&&t.measureIdx>-1&&t.dimensionIdx>-1){const n=e.brush.ranges();n.length&&(l=!0,a.multiRangeSelectTreeDataValues||(a.multiRangeSelectTreeDataValues={path:t.path,ranges:[]}),n.forEach((e=>a.multiRangeSelectTreeDataValues.ranges.push({qMeasureIx:t.measureIdx,qDimensionIx:t.dimensionIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!0}}))))}else{if("range"===e.type&&t.measureIdx>-1){const n=e.brush.ranges();n.length&&(l=!0,a.rangeSelectHyperCubeValues||(a.rangeSelectHyperCubeValues={path:t.path,ranges:[]}),n.forEach((e=>a.rangeSelectHyperCubeValues.ranges.push({qMeasureIx:t.measureIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!0}}))))}if("range"===e.type&&t.dimensionIdx>-1){const n=e.brush.ranges();n.length&&(l=!0,a.selectHyperCubeContinuousRange||(a.selectHyperCubeContinuousRange={path:t.path,ranges:[]}),n.forEach((e=>a.selectHyperCubeContinuousRange.ranges.push({qDimIx:t.dimensionIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!1}}))))}if("value"===e.type&&t.dimensionIdx>-1)if(r)if(n&&n.qHyperCube&&("P"===n.qHyperCube.qMode||"T"===n.qHyperCube.qMode||"K"===n.qHyperCube.qMode)){const r=n.qHyperCube,o=r.qNoOfLeftDims,s=r.qEffectiveInterColumnSortOrder.indexOf(t.dimensionIdx);if(a.selectPivotCells||(a.selectPivotCells={path:t.path,cells:[]}),e.id===i||!i){const n=e.brush.values().map((e=>+e)).filter((e=>!isNaN(e)));(0===o||s>=o)&&o>-1?n.forEach((e=>{a.selectPivotCells.cells.push({qType:"T",qCol:e,qRow:s-o})})):n.forEach((e=>{a.selectPivotCells.cells.push({qType:"L",qCol:t.dimensionIdx,qRow:e})})),l=!!a.selectPivotCells.cells.length}}else a.selectHyperCubeCells||(a.selectHyperCubeCells={path:t.path,cols:[]}),a.selectHyperCubeCells.cols.push(t.dimensionIdx),e.id!==i&&(i||a.selectHyperCubeCells.values)||(a.selectHyperCubeCells.values=e.brush.values().map((e=>+e)).filter((e=>!isNaN(e))),l=!!a.selectHyperCubeCells.values.length);else{const n=e.brush.values().map((e=>+e)).filter((e=>!isNaN(e)));l=!!n.length,o.push({params:[t.path,t.dimensionIdx,n,!1],method:"selectHyperCubeValues"})}}})),!l&&s?[{method:"resetMadeSelections",params:[]}]:(a.rangeSelectHyperCubeValues&&o.push({method:"rangeSelectHyperCubeValues",params:[a.rangeSelectHyperCubeValues.path,a.rangeSelectHyperCubeValues.ranges,[],null===(c=t.orMode)||void 0===c||c]}),a.selectHyperCubeContinuousRange&&o.push({method:"selectHyperCubeContinuousRange",params:[a.selectHyperCubeContinuousRange.path,a.selectHyperCubeContinuousRange.ranges]}),a.selectHyperCubeCells&&o.push({method:"selectHyperCubeCells",params:[a.selectHyperCubeCells.path,a.selectHyperCubeCells.values,a.selectHyperCubeCells.cols]}),a.selectPivotCells&&o.push({method:"selectPivotCells",params:[a.selectPivotCells.path,a.selectPivotCells.cells]}),a.multiRangeSelectTreeDataValues&&o.push({method:"multiRangeSelectTreeDataValues",params:[a.multiRangeSelectTreeDataValues.path,a.multiRangeSelectTreeDataValues.ranges]}),o);var c}function xM(e){cM.util=e.data("matrix").util,e.data("q",cM),e.formatter("q-number",XC),e.formatter("q-time",aM)}function wM(e){var t=RS(e.layout||{},e.path.split("/").join("."));if(!t)return!1;var n=t.qIsOneAndOnlyOne;return void 0!==n&&n}function kM(e){var t=e.brush,n=e.colorField,r=e.legendAlias,i=e.useLegendCube,o=void 0!==i&&i;!n||/qAttrDimInfo/.test(n)?(t.removeKeyAlias("attrDim/qDimensionInfo/0"),r&&t.removeKeyAlias(r),t.addKeyAlias("attrDim/qDimensionInfo/0","qHyperCube/".concat(n))):o&&t.addKeyAlias(r,"qHyperCube/".concat(n))}xM.qBrushHelper=bM,xM.selections=bM;var SM="Shift";var CM=function e(t,n){return n[t]?e(t+1,n):t},MM=function(e,t){var n=t.reduce((function(e,t){return e[t]=!0,e}),{});return e.reduce((function(e,t,r){var i=CM(r,n);return n[i]=!0,e[r]=i,e}),{})};function EM(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.layout,n=e.filtered,r=void 0===n?{}:n,i=(null==t?void 0:t.qHyperCube)||{},o=i.qDimensionInfo,a=void 0===o?[]:o,s=i.qMeasureInfo,l=void 0===s?[]:s;return{dimensions:MM(a,r.dimensions||[]),measures:MM(l,r.measures||[])}}var _M="selectHyperCubeValues",DM="selectHyperCubeContinuousRange";function qM(e){var t=e.selection,n=e.fieldMap,r=t.method,i=t.params;if(r===_M){var o=n.dimensions[i[1]];void 0!==o&&(i[1]=o)}return r===DM&&i[1].forEach((function(e){var t=n.dimensions[e.qDimIx];void 0!==t&&(e.qDimIx=t)})),t}var TM=[],RM=0,NM=function(e){var t=TM.filter((function(e){var t;return null===(t=e.selections)||void 0===t?void 0:t.isActive()}));t.length&&("Enter"===e.key?t.forEach((function(e){return e.selections.confirm()})):"Escape"!==e.key&&"Esc"!==e.key||t.forEach((function(e){return e.selections.cancel()})))},OM=function(){document.addEventListener("keyup",NM)},AM=function(){document.removeEventListener("keyup",NM)},PM=function(e,t){Object.keys(t).forEach((function(n){e.on(n,t[n])}))},IM=function(e,t){Object.keys(t).forEach((function(n){e.removeListener(n,t[n])}))};function LM(e){var t=e.chart,n=e.document,r=e.selectionInfo,i=e.eventName,o=e.componentName,a=e.brushName,s=void 0===a?"selection":a,l=e.emit,c=void 0===l?"rangeClear":l,u=r.event===i,d=n.querySelector("[data-key='".concat(o,"-edge-0']"));if(u||!d)return!1;var f=t.component(o);return!!f&&(f.emit(c),"string"==typeof s&&t.brush(s).clear(),f)}var zM=["chart","document","selections","selectionInfo"],FM=function(e){e.chart,e.document,e.selections,e.selectionInfo;var t=Ew(e,zM);t.clearDiscrete(),t.clearContinuous(),t.clearMinor(),t.clearRange(),t.clearTap(),t.clearLegend()};function jM(e){var t,n=e.lasso;null!=n&&null!==(t=n.active)&&void 0!==t&&t.call(n)&&(null==n||n.action(!1))}function $M(e){var t,n=e.chart,r=e.selectionInfo,i=e.selectionActions,o=e.actions,a=void 0===o?{}:o,s=e.selections,l=e.selectionEvents;if(!1===i||!1===l)return function(){};var c=i.reset,u=void 0===c?jM:c,d=i.clear,f=!1!==d&&function(e){var t=e.clear,n=void 0===t?FM:t,r=e.selections,i=e.selectionInfo,o=e.chart;return function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).cleared,t={selections:r,selectionInfo:i,chart:o,document:document,cleared:e};return n(xw({clearDiscrete:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e){var t=e.selectionInfo,n=e.chart,r=e.document,i=e.eventName,o=void 0===i?"discreteRange":i,a=e.componentName,s=void 0===a?"discrete-range-brush":a,l=e.cleared;return LM({selectionInfo:t,chart:n,document:r,eventName:void 0!==l&&l?void 0:o,componentName:s,emit:"areaClear",brushName:e.brushName})}(xw(xw({},t),e))},clearContinuous:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e){var t=e.selectionInfo,n=e.chart,r=e.document,i=e.eventName,o=void 0===i?"continuousRange":i,a=e.componentName,s=void 0===a?"continuous-range-brush":a,l=e.cleared;return LM({selectionInfo:t,chart:n,document:r,eventName:void 0!==l&&l?void 0:o,componentName:s,brushName:e.brushName})}(xw(xw({},t),e))},clearMinor:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e){var t=e.selectionInfo,n=e.chart,r=e.document,i=e.componentName,o=void 0===i?"minor-range-brush":i,a=e.eventName,s=void 0===a?"minorRange":a,l=e.cleared,c=void 0!==l&&l,u=e.brushName,d=LM({selectionInfo:t,chart:n,document:r,eventName:c?void 0:s,componentName:o,brushName:void 0!==u&&u});if(d){var f=d.settings.settings,h=f.scale,p=f.brush,m=n.scale(h).data().fields.map((function(e){return e.id()})),g=n.brush(p),y=g.brushes().filter((function(e){return"range"===e.type&&m.some((function(t){return t===e.id}))}));g&&y.length&&y.forEach((function(e){g.removeRanges(e.brush.ranges().map((function(t){return{key:e.id,range:t}})))}))}}(xw(xw({},t),e))},clearRange:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e){var t=e.selectionInfo,n=e.chart,r=e.document,i=e.selections,o=e.eventName,a=void 0===o?"xAxis":o,s=e.cleared;LM({selectionInfo:t,chart:n,document:r,eventName:void 0!==s&&s?void 0:a,componentName:"".concat(a,"-range-brush"),emit:"areaClear",brushName:!1})&&i.clear()}(xw(xw({},t),e))},clearTap:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e){var t=e.chart,n=e.selectionInfo,r=e.selections,i=e.events,o=void 0===i?["tap"]:i,a=e.brushNames,s=void 0===a?[]:a;if(n&&o.includes(n.event)){var l=n.currentComponent;n.previousComponent!==l&&(r.clear(),s.forEach((function(e){return t.brush(e).end()})))}}(xw(xw({},t),e))},clearLegend:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e){var t=e.selectionInfo,n=e.chart,r=e.document,i=e.selections,o=e.eventName,a=void 0===o?"legendRange":o,s=e.componentName,l=void 0===s?"legend-range-brush":s,c=e.cleared,u=void 0!==c&&c,d=e.brushName;LM({selectionInfo:t,chart:n,document:r,eventName:u?void 0:a,componentName:l,brushName:void 0!==d&&d})&&i.clear()}(xw(xw({},t),e))}},t))}}({clear:d,selections:s,selectionInfo:r,chart:n}),h=function(e){var t=e.chart,n=e.actions,r=e.reset,i=e.clear,o=!1,a={deactivated:function(e){var t=(n||{}).lasso;r({e:e,lasso:void 0!==t&&t})},canceled:function(e){var o=(n||{}).lasso;r({e:e,lasso:void 0!==o&&o}),i({e:e,chart:t,document:document})},cleared:function(e){o||(o=!0,i({e:e,chart:t,document:document,cleared:!0}),o=!1)}};return!1===r&&delete a.deactivated,!1===i&&delete a.cleared,!1===r&&!1===i&&delete a.canceled,a}({chart:n,clear:f,reset:u,actions:a}),p={};Object.entries(h).forEach((function(e){var t=_w(e,2),n=t[0],r=t[1];p[n]=function(e,t){return t?function(n){return t({event:n,defaultFunc:e})}:e}(r,l[n])}));var m=function(e){var t=e.selectionEvents,n=e.selections,r=e.selectionInfo,i=e.clear,o=e.chart,a=e.document,s=t.start,l={selections:n,selectionInfo:r,chart:o,document:a},c=function(e){return Object.assign(r,e||{})},u=function(e){var t=e.event,n=e.components;return function(){return function(e){var t=e.selectionInfo,n=e.clear,r=e.event,i=e.components,o=void 0===i?[]:i;(0,e.setSelectionInfo)(xw(xw({},void 0===t?{}:t),{},{event:r,components:o.map((function(e){return e.key})).filter(Boolean)})),n()}({event:t,components:n,clear:i,chart:o,selectionInfo:r,setSelectionInfo:c})}};return"function"==typeof s?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];s(xw(xw({defaultFunc:u({event:e,components:t}),setSelectionInfo:c,clear:i},l),{},{event:e,components:t}))}:function(e){u({event:e,components:arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]})()}}({selectionEvents:l,selections:s,selectionInfo:r,clear:f,chart:n,document:document});return null==a||null===(t=a.select)||void 0===t||t.on("start",m),Object.entries(p).forEach((function(e){var t=_w(e,2),n=t[0],r=t[1];null==s||s.on(n,r)})),function(){var e;null==a||null===(e=a.select)||void 0===e||e.removeListener("start",m),Object.entries(p).forEach((function(e){var t=_w(e,2),n=t[0],r=t[1];null==s||s.removeListener(n,r)}))}}var HM=[{key:"qHyperCube/qDimensionInfo/0:numeric",includeMax:!1}];function VM(e){var t=e.chart,n=e.actions,r=e.selections,i=e.picassoQ,o=e.config,a=o.allowSimultaneous,s=void 0!==a&&a,l=o.majorScale,c=void 0===l?void 0:l,u=o.selectionActions,d=void 0===u?{}:u,f=d.clear,h=d.reset,p=o.selectionEvents,m=void 0===p?{deactivated:void 0,canceled:void 0,cleared:void 0,start:void 0}:p,g=o.brushEvents,y=void 0===g?{}:g,v=o.brushName,b=void 0===v?"selection":v,x=o.brushMaxListeners,w=void 0===x?20:x,k=o.brushRanges,S=void 0!==k&&k,C=o.interceptors,M=void 0===C?{}:C,E=o.selectionsFn,_=void 0===E?i.selections:E,D=t.brush(b);if("number"==typeof w&&D.setMaxListeners(w),S){var q=!0===S?HM:S;D.configure({ranges:q})}var T={canSelect:!0,getIsSelectionLocked:!1,isInnerDimensionLocked:!1,lockedDimensions:[],singleSelectIndex:0,selectionInfo:{colorField:void 0,components:[],event:void 0,currentComponent:void 0,previousComponent:void 0}},R=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.selections,r=t.brush,i=t.majorScale,o=t.actions,a=t.selectionsFn,s=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).path,l=void 0===s?"/qHyperCubeDef":s;if(!n)return{layout:function(){},filteredFields:function(){},allowSimultaneous:function(){},release:function(){}};var c=++RM,u=null,d={dimensions:[],measures:[]},f=[],h={};n.on=n.on.bind(n),n.isActive=n.isActive.bind(n),n.addListener=n.addListener.bind(n),n.removeListener=n.removeListener.bind(n);var p=function(e){var t=e.brush,n=e.getConfig;return{interceptor:function(e){var r=t.brushes(),i=n(),o=i.allowSimultaneous,a=i.layout,s=void 0===a?{}:a;r.forEach((function(n){var r,i,a;("range"===n.type||null!==(r=e[0])&&void 0!==r&&r.key&&(null===(i=e[0])||void 0===i?void 0:i.key)!==n.id&&0!==o.indexOf(null===(a=e[0])||void 0===a?void 0:a.key))&&t.clear([])}));var l=e.filter((function(e){return-2!==e.value}));if(l.length>1){var c=function(e){var t=e.layout,n=void 0===t?{}:t,r=e.values,i=void 0===r?[]:r;if(null==i||!i.length)return[];var o=Array.from(new Set(i.map((function(e){return e.key})))),a=[];return o.forEach((function(e){var t=wM({layout:n,path:e}),r=i.filter((function(t){return t.key===e})),o=t?[r.pop()]:r;a.push.apply(a,Dw(o))})),a.filter(Boolean)}({layout:s,values:l});return c}return l},rangeInterceptor:function(e){var r=t.brushes(),i=n().allowSimultaneous;return r.filter((function(e){return"value"===e.type})).length?(t.clear([]),e):(r.forEach((function(n){var r=n.id===e[0].key||i.includes(n.id)&&i.includes(e[0].key);"range"!==n.type||r||t.clear([])})),e)}}}({brush:r,getConfig:function(){return{layout:u,allowSimultaneous:f}}}),m=p.rangeInterceptor,g=p.interceptor;r.intercept("set-ranges",m),r.intercept("toggle-ranges",m),r.intercept("toggle-values",g),r.intercept("set-values",g),r.intercept("add-values",g),r.on("start",(function(){return n.begin(l)}));var y={activate:function(){},deactivated:function(){return r.end()},cleared:function(){return r.clear()},canceled:function(){return r.end()}};PM(n,y);var v=null==i||null===(e=i.max)||void 0===e?void 0:e.call(i);return null!=o&&o.select?(o.select.on("start",(function(){var e;r.start(),"function"==typeof o.select.getBrushOptions&&(h=(e=o.select).getBrushOptions.apply(e,arguments))})),o.select.on("end",(function(){var e=a(r,h,u),t=EM({layout:u,filtered:d});e.forEach((function(e){var r=qM({selection:e,fieldMap:t});(function(e,t,n){if(t&&void 0!==n&&"selectHyperCubeContinuousRange"===e.method){var r=e.params;if(r&&r[1]&&r[1][0]){var i=r[1][0],o=i.qDimIx,a=i.qRange;"undefined"!==o&&a&&!1===a.qMaxInclEq&&a.qMax>=n&&(a.qMaxInclEq=!0)}}})(r,o.select.brushSelectionIncludeMax,v),n.select(r)}))}))):r.on("update",(function(){var e=a(r,h,u),t=EM({layout:u,filtered:d});e.forEach((function(e){n.select(qM({selection:e,fieldMap:t}))}))})),0===TM.length&&OM(),TM.push({key:c,selections:n}),{layout:function(e){u=e},filteredFields:function(e){d=e},allowSimultaneous:function(e){f=e},release:function(){u=null;var e=TM.indexOf(TM.filter((function(e){return e.key===c}))[0]);-1!==e&&TM.splice(e,1),TM.length||AM(),IM(n,y)}}}({brush:D,majorScale:c,actions:n,selections:r,picassoQ:i,selectionsFn:_});!function(e){var t=e.brush,n=e.interceptors,r=void 0===n?{}:n;Object.entries(r).forEach((function(e){var n=_w(e,2),r=n[0],i=n[1];(Array.isArray(i)?i:[i]).forEach((function(e){t.intercept(r,e)}))}))}({brush:D,interceptors:M});var N=function(e){var t=e.chart,n=e.selectionActions,r=e.brush,i=e.actions,o=e.selectionInfo,a=e.selections,s=e.selectionEvents,l=function(e){var t=e.brush,n=e.chart,r=e.selectionInfo,i=e.brushEvents,o=void 0===i?{}:i,a=Object.entries(o).map((function(e){var i=_w(e,2),o=i[0],a=i[1],s=function(){return a({chart:n,selectionInfo:r})};return t.on(o,s),[o,s]}));return function(){a.forEach((function(e){var n=_w(e,2),r=n[0],i=n[1];t.removeListener(r,i)}))}}({brush:r,chart:t,selectionInfo:o,brushEvents:e.brushEvents}),c=$M({chart:t,selectionInfo:o,selectionActions:n,actions:i,selections:a,selectionEvents:s}),u=function(e){var t=e.actions;if(null==t||!t.lasso)return function(){};var n=!1,r=function(e){n||e.key!==SM||(t.lasso.action(!0),n=!0)},i=function(e){e.key===SM&&(t.lasso.action(!1),n=!1)};return document.addEventListener("keydown",r),document.addEventListener("keyup",i),function(){document.removeEventListener("keydown",r),document.removeEventListener("keyup",i)}}({actions:i});return function(){l(),c(),u()}}({chart:t,brush:D,actions:n,selections:r,selectionInfo:T.selectionInfo,selectionActions:{clear:f,reset:h},selectionEvents:m,brushEvents:y});if(s){var O=!0===s?Dw(Array(15)).map((function(e,t){return"qHyperCube/qMeasureInfo/".concat(t)})):s;R.allowSimultaneous(O)}return{unbindEvents:N,state:T,picassoSelections:R,brush:D}}var BM=["colorField","useLegendCube"];function UM(e){var t=e.chart,n=e.selections,r=e.actions,i=void 0!==r&&r,o=e.config,a=void 0===o?{}:o,s=VM({chart:t,actions:i,selections:n,picassoQ:xM,config:a}),l=s.unbindEvents,c=s.state,u=s.picassoSelections,d=s.brush,f=a.custom,h=void 0===f?{}:f,p=a.legendAlias,m=void 0===p?void 0:p,g=a.setBrushAliases,y=void 0===g?kM:g;return{getIsDimensionLocked:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return c.lockedDimensions[e]},getIsSelectionLocked:function(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return null!==(e=null==n||null===(t=n.isLocked)||void 0===t?void 0:t.call(n))&&void 0!==e?e:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(null==e||!e.length)return!1;var t=e.filter((function(e){return"object"===kw(e.data)&&Array.isArray(e.data.fields)})).every((function(e){return e.data.fields.every((function(e){var t=e.raw();return!(!t.qLocked&&t.qCardinal)}))}));return t}(r)},getIsSingleSelect:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.singleSelectIndex;return c.singleSelectDimensions[e]},getCanSelect:function(){return c.canSelect},getSelectionsObject:function(){return n},getSelectionInfo:function(){return c.selectionInfo},setLayout:function(e){var t=function(e){var t,n,r,i=e.selections,o=e.picassoSelections,a=e.layout,s={lockedDimensions:[],singleSelectDimensions:[]};null!=i&&null!==(t=i.isModal)&&void 0!==t&&t.call(i)&&i.confirm(),o.layout(a);var l=(null!==(n=null==a?void 0:a.qHyperCube)&&void 0!==n?n:{}).qDimensionInfo,c=void 0===l?[]:l;return s.lockedDimensions=c.map((function(e){return!!e.qLocked})),s.singleSelectDimensions=c.map((function(e,t){return wM({layout:a,path:"qHyperCube/qDimensionInfo/".concat(t)})})),s.singleSelectIndex=function(e){var t,n=((null==e?void 0:e.qHyperCube)||{}).qDimensionInfo,r=void 0===n?[]:n;return null!==(t=r.map((function(e,t){var n;return!(e.qLocked||(null===(n=e.qCardinalities)||void 0===n?void 0:n.qHypercubeCardinal)<=1)&&t})).filter((function(e){return"number"==typeof e}))[0])&&void 0!==t?t:Math.max(r.length-1,0)}(a),s.canSelect=0===c.length||c.some((function(e){return!e.qLocked})),s.dimensionLocked=!(null===(r=c[0])||void 0===r||!r.qLocked),s}({selections:n,picassoSelections:u,layout:e});Object.assign(c,t)},setFilteredFields:function(e){u.filteredFields(e)},setBrushAliases:function(e){var t=e.colorField,n=e.useLegendCube,r=void 0!==n&&n,i=Ew(e,BM),o=xw({useLegendCube:r,colorField:t,brush:d,legendAlias:m},i);y(xw(xw({},o),{},{defaultFunc:function(){return kM(o)}}))},destroy:function(){l(),u.release()},custom:xw({},h)}}var WM="'Source Sans Pro', 'Arial', 'sans-serif'",YM="#333333",KM="#595959",GM="#737373",XM="#cccccc",ZM="#e6e6e6";function JM(e){var t={};return[].concat(Dw(e),Dw([["","","color"],["object","","fontFamily"],["object","axis.label.name","color",KM],["object","axis.label.name","fontFamily",WM],["object","axis.label.name","fontSize","12px"],["object","axis.line.major","color",XM],["object","axis.line.minor","color",ZM],["object","axis.title","color"],["object","axis.title","fontFamily",WM],["object","axis.title","fontSize","13px"],["object","grid.line.highContrast","color",ZM],["object","grid.line.major","color",XM],["object","grid.line.minor","color",ZM],["object","label.value","color",KM],["object","label.value","fontFamily",WM],["object","label.value","fontSize","12px"],[!1,"label.value","darkColor",KM],[!1,"label.value","lightColor",ZM],["object","outOfRange","color","#999"],["object","legend.title","color",YM],["object","legend.title","fontFamily",WM],["object","legend.title","fontSize","15px"],["object","legend.label","color",KM],["object","legend.label","fontFamily",WM],["object","legend.label","fontSize","13px"],["object","referenceLine.label.name","color",YM],["object","referenceLine.label.name","fontFamily",WM],["object","referenceLine.label.name","fontSize","12px"],["object","referenceLine.outOfBounds","color",ZM],["object","referenceLine.outOfBounds","fontFamily",WM],["object","referenceLine.outOfBounds","fontSize","12px"],["object","referenceLine.outOfBounds","backgroundColor",GM,function(e){return"transparent"===e?GM:e}]])).reduce((function(e,n){var r="".concat(n[0],"-").concat(n[1],"-").concat(n[2],"}");return t[r]||(t[r]=!0,e.push(n)),e}),[]).sort((function(e,t){return(e[0].split?e[0].split(".").length:0)-(t[0].split?t[0].split(".").length:0)}))}var QM=function(e){return e};function eE(e){var t=e.theme,n=e.id,r=e.transform,i=e.extend,o=e.matrix,a={},s=r.reduce((function(e,t){var n=_w(t,2),r=n[0],i=n[1];return e[r]=i,e}),{});return o.forEach((function(e){var r=_w(e,5),i=r[0],o=r[1],l=r[2],c=r[3],u=r[4],d=void 0===u?function(e){return e}:u,f=function(e){var t=e.theme,n=e.base,r=e.path,i=e.attribute,o=e.defaultValue,a=void 0===o?void 0:o;if(!t||!1===n)return a;var s=t.getStyle(n,r,i);return void 0===s?a:s}({theme:t,base:"object"===i&&n?"".concat("object",".").concat(n):i,path:o,attribute:l,defaultValue:c}),h=(s["".concat(o,".").concat(l)]||QM)(d(f));OS(a,[o,l].filter(Boolean).join("."),h)})),i.forEach((function(e){var t=_w(e,2),n=t[0],r=t[1];OS(a,n,r)})),a}var tE={NOOP:function(){},FALSE:function(){return!1},ARRAY:function(){return[]},OBJECT:function(){return{}}},nE="chart-modules-tooltip",rE="#".concat(nE);function iE(){if(!document.querySelector(rE)){var e=document.createElement("div");e.id=nE,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 oE(e){return{show:!0,key:e.key,type:"tooltip",layout:{displayOrder:3},beforeMount:function(){iE()},beforeUpdate:function(){iE()},destroyed:function(){var e;null!=(e=document.querySelector(rE))&&e.parentElement&&e.childElementCount<1&&e.parentElement.removeChild(e)},settings:{appendTo:function(){return document.querySelector(rE)},direction:e.rtl?"rtl":"ltr",duration:e.duration},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"}}}}var aE="position",sE={bar:"rect",diamond:"path",point:"circle",square:"rect",triangle:"path","n-polygon":"path",slice:"path"},lE=function(e){return e.data.value},cE=function(e){var t,n=e.data;return null==n||null===(t=n.major)||void 0===t?void 0:t.value};var uE=Number.MAX_VALUE;function dE(e){var t=e.nodes.reduce((function(e,t){var n=t.bounds;return e.xMin=Math.min(e.xMin,n.x,n.x+n.width),e.yMin=Math.min(e.yMin,n.y,n.y+n.height),e.xMax=Math.max(e.xMax,n.x,n.x+n.width),e.yMax=Math.max(e.yMax,n.y,n.y+n.height),e}),{xMin:uE,xMax:-uE,yMin:uE,yMax:-uE}),n=t.xMin,r=t.xMax,i=t.yMin;return{x:n,y:i,width:r-n,height:t.yMax-i}}function fE(e){var t=e.chart,n=e.config,r=e.expando,i=e.internal,o=e.nodes;if(!o.length)return[];var a=_w(o,1)[0].key,s=n.main.collectibles;if(!s.length)return[];var l=n.main.triggers.find((function(e){return-1!==e.keys.indexOf(a)}))||{},c=l.collect,u=l.placement;if(!c||!c.from||!u)return[];var d={triggerer:a,position:i.get(aE)},f=(function(e){var t=e.chart,n=e.expando,r=e.nodes,i=e.collectConfig,o=e.collectibles,a=e.meta,s=i.from,l={chart:t,expando:n,nodes:r,collectConfig:i,collectibles:o,meta:a};switch("function"==typeof s?"custom":s){case"single":return function(e){var t=_w(e.nodes,1)[0];return["container"===t.type&&t.children[0]||t]}(l);case"position":return function(e){var t=e.collectibles,n=e.meta;return e.chart.shapesAt(n.position.absolute,{components:t.map((function(e){return{key:e.key}}))})}(l);case"dimension":return function(e){var t=e.chart,n=e.collectConfig,r=e.collectibles,i=_w(e.nodes,1)[0],o=n.filter,a="function"==typeof o?o:function(){return!0},s=n.by,l=void 0===s?lE:s;return r.reduce((function(e,n){var r=n.major,o=void 0===r?cE:r,a=sE[n.type]||n.type;return e.push.apply(e,Dw(t.findShapes(a).filter((function(e){return e.key===n.key&&e.data&&o({data:e.data})===l({data:i.data})})))),e}),[]).filter(a)}(l);case"radius":return function(e){var t=e.chart,n=e.collectConfig,r=e.collectibles,i=e.meta,o=_w(e.nodes,1)[0].localBounds,a=n.distance,s=n.filter,l="function"==typeof s?s:function(){return!0},c=r.map((function(e){return e.key}));return t.shapesAt({cx:i.position.absolute.x,cy:i.position.absolute.y,r:a||Math.max(o.width,o.height)},{components:c.map((function(e){return{key:e}}))}).filter(l)}(l);case"custom":return function(e){var t=e.chart,n=e.expando,r=e.nodes,i=e.meta;return e.collectConfig.from({chart:t,expando:n,nodes:r,meta:i})}(l);default:return[]}}({chart:t,expando:r,nodes:o,collectConfig:c,collectibles:s,meta:d})||[]).map((function(e){return e.children.length?e.children[0]:e}));return f.length?function(e){var t=e.chart,n=e.config,r=e.expando,i=e.placementConfig,o=e.hovered,a=e.collected,s=e.meta,l=function(e){for(var t=e.chart,n=e.config,r=e.expando,i=e.placementConfig,o=e.hovered,a=e.collected,s=e.meta,l=_w(o,1)[0],c=Array.isArray(i)?i:[i],u={bounds:l.bounds,key:l.key},d=dE({nodes:a}),f=0;f<c.length;f++){var h=c[f];if("function"==typeof h){var p=h({chart:t,expando:r,hovered:o,collected:Dw(a),meta:s,collectedBounds:d,combineBounds:dE});if(p)return p}if("trigger"===h)return u;if("collectible"===h){var m=n.main.placements.collectible;return{bounds:"function"==typeof m?m({collected:Dw(a)}):d,key:a[0].key}}}return u}({chart:t,config:n,expando:r,placementConfig:i,hovered:o,collected:a,meta:s}),c=l.bounds,u=l.key,d=_w(a,1)[0].desc;return[{bounds:c,nodes:a,data:a.map((function(e){return e.data})),key:u,meta:s,desc:d}]}({chart:t,config:n,expando:r,placementConfig:u,hovered:o,collected:f,meta:d}):[]}var hE=new RegExp("[A-Za-zªµºÀ-ÖØ-öø-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͽΆΈ-ϵϷ-҂Ҋ-։ः-हऻऽ-ीॉ-ौॎ-ॐक़-ॡ।-ॿং-হঽ-ীে-ৌৎ-ৡ০-ৱ৴-৺ਃ-ਹਾ-ੀਖ਼-੯ੲ-ੴઃ-હઽ-ીૉ-ૌૐ-ૡ૦-૯ଂ-ହଽ-ାୀେ-ୌୗ-ୡ୦-୷ஃ-ிு-ௌௐ-௲ఁ-ఽు-ౄౘ-ౡ౦-౯౿-ಹಽ-ೋೕ-ೡ೦-ീെ-ൌൎ-ൡ൦-ෆා-ෑෘ-ะา-ำเ-ๆ๏-ະາ-ຳຽ-ໆ໐-༗༚-༴༶༸༾-ཬཿ྅ྈ-ྌ྾-࿅࿇-ာေးျ-ြဿ-ၗၚ-ၝၡ-ၰၵ-ႁႃ-ႄႇ-ႌႎ-ႜ႞-ፚ፠-ᎏᎠ-Ᏼᐁ-ᙿᚁ-ᚚᚠ-ᜑᜠ-ᜱ᜵-ᝑᝠ-ᝰក-ាើ-ៅះ-ៈ។-៚ៜ០-៩᠐-ᢨᢪ-ᤜᤣ-ᤦᤩ-ᤱᤳ-ᤸ᥆-᧚ᨀ-ᨖᨙ-ᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪭ᬄ-ᬳᬵᬻᬽ-ᭁᭃ-᭪᭴-᭼ᮂ-ᮡᮦ-ᮧ᮪-ᯥᯧᯪ-ᯬᯮ᯲-ᰫᰴ-ᰵ᰻-᱿᳓᳡ᳩ-ᳬᳮ-ᶿḀ-ᾼιῂ-ῌῐ-Ίῠ-Ῥῲ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎ-⅏Ⅰ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-ⳤⳫ-ⳮⴀ-⵰ⶀ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ㆺㇰ-㈜㈠-㉏㉠-㉻㉿-㊰㋀-㋋㋐-㍶㍻-㏝㏠-㏾㐀-䶵一-ꒌꓐ-ꘌꘐ-ꙮꚀ-ꛯ꛲-꛷Ꜣ-ꞇ꞉-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠤꠧ꠰-꠷ꡀ-ꡳꢀ-ꣃ꣎-꣙ꣲ-ꤥ꤮-ꥆꥒ-ꥼꦃ-ꦲꦴ-ꦵꦺ-ꦻꦽ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂ-ꯤꯦ-ꯧꯩ-꯬꯰-ﬗA-Za-zヲ-ᅵ]"),pE=new RegExp("[־׀׃׆א-״߀-ߪߴ-ߵߺ-ࠕࠚࠤࠨ࠰-ࡘ࡞יִײַ-ﬨשׁ-ﭏ]"),mE=new RegExp("[؈؋؍؛-ي٭-ٯٱ-ەۥ-ۦۮ-ۯۺ-܍ܐܒ-ܯݍ-ޥޱﭐ-ﴽﵐ-﷼ﹰ-ﻼ]"),gE=function(e){return hE.test(e)},yE=function(e){return pE.test(e)||mE.test(e)};function vE(e){for(var t=e?e.length:0,n=0;n<t;n++){var r=e[n];if(gE(r))return"ltr";if(yE(r))return"rtl"}return"ltr"}function bE(e){var t=e.config,n=e.h,r=e.context,i={section:function(e){return function(e){return{type:"section",content:e.content}}({content:e.content})},text:function(e){var n=e.value,r=e.style,i=e.visibility;return function(e){var t=e.config,n=e.value,r=e.style,i=void 0===r?{}:r,o=i.bold,a=void 0!==o&&o,s=i.italic,l=e.visibility;return{type:"text",content:[{content:n,style:{"font-weight":a?"bold":"normal","font-style":void 0!==s&&s?"italic":"normal","text-align":t.rtl?"right":"left",direction:vE(n)},colspan:2}],visibility:xw(xw({},{count:!0}),l)}}({config:t,value:n,style:r,visibility:i})},measure:function(e){var r=e.label,i=e.value,o=e.color,a=e.style,s=e.survive,l=e.visibility;return function(e){var t,n,r,i,o=e.h,a=e.label,s=e.value,l=e.color,c=e.style,u=e.survive,d=e.visibility,f=e.config.rtl,h=o("div",{style:{display:"inline-block",width:10,height:10,"background-color":l,margin:"0 8px"}});return{type:"measure",label:a,value:s,content:[{content:f?[":",a]:[a,":"],style:{"text-align":f?"right":"left","font-weight":null!=c&&null!==(t=c.label)&&void 0!==t&&t.bold?"bold":"normal","font-style":null!=c&&null!==(n=c.label)&&void 0!==n&&n.italic?"italic":"normal",direction:vE(a)}},{content:l?f?[s,h]:[h,s]:s,style:{"text-align":f?"left":"right","vertical-align":"middle","font-weight":null!=c&&null!==(r=c.value)&&void 0!==r&&r.bold?"bold":"normal","font-style":null!=c&&null!==(i=c.value)&&void 0!==i&&i.italic?"italic":"normal",direction:vE(s)}}],survive:xw(xw({},{color:!1,duplicate:!1}),u),visibility:xw(xw({},{count:!0}),d)}}({config:t,h:n,label:r,value:i,color:o,style:a,survive:s,visibility:l})},divider:function(){return function(e){var t=e.visibility;return{type:"divider",content:[{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}],visibility:xw(xw({},{count:!1}),t)}}({visibility:(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).visibility})},row:function(e){return function(e){var t=e.visibility;return{type:"row",content:[{content:e.content,style:e.style,colspan:e.colspan}],visibility:xw(xw({},{count:!0}),t)}}({content:e.content,style:e.style,colspan:e.colspan,visibility:e.visibility})},raw:function(e){return function(e){var t=e.visibility;return{type:"raw",content:e.value,visibility:xw(xw({},{count:!0}),t)}}({value:e.value,visibility:e.visibility})},color:function(e){var i=e.nodes,o=e.property,a=e.filter,s=void 0===a||a,l=e.visibility,c=e.fillColor;return function(e){var t=e.config,n=e.h,r=e.context,i=e.nodes,o=e.property,a=e.filter,s=e.visibility,l=e.fillColor,c=t.rtl,u={type:"color",label:void 0,value:void 0,content:[],filter:a,visibility:xw(xw({},{count:!0}),s)},d=t.getColorSettings();if("color"===d.type||!d.fieldType)return u;var f=_w(i,1)[0];if(u.value=function(e){var t=e.config,n=e.context,r=e.property,i=e.node,o=i.data[r];if(o){if(-3===i.data.value)return i.data.label;var a=n.resources.dataset(o.source.key).field(o.source.field).formatter(),s=o.value,l=o.label,c=t.getColorSettings();if(a&&"measure"===c.fieldType)return Number.isNaN(+s)?"-":a(o.value);var u=l||s;return void 0===u||Number.isNaN(u)||"NaN"===u?"-":u}}({config:t,context:r,property:o,node:f}),void 0===u.value)return u;u.label=function(e){var t=e.context,n=e.property,r=e.node,i=e.config.getColorSettings();if(i.label)return i.label;var o=r.data[n];if(o&&"color"!==i.type){var a=t.resources.dataset,s=o.source,l=s.key,c=s.field;return a(l).field(c).title()}}({config:t,context:r,property:o,node:f});var h=null!=l?l:function(e){var t=e.node.attrs;return(null==t?void 0:t.fill)||"#ddd"}({node:f}),p=n("div",{style:{display:"inline-block",width:10,height:10,"background-color":h,margin:"0 8px"}});return u.content.push({content:c?[":",u.label]:[u.label,":"],style:{"text-align":c?"right":"left",direction:vE(u.label)}},{content:c?[u.value,p]:[p,u.value],style:{"text-align":c?"left":"right","vertical-align":"middle",direction:vE(u.value)}}),u}({config:t,h:n,context:r,nodes:i,property:o,filter:s,visibility:l,fillColor:c})}};return i}function xE(e){var t=e.chart,n=e.translator,r=e.config,i=e.expando,o=e.h,a=e.data,s=e.style,l=_w(a,1)[0],c=function(e){var t=e.config,n=e.nodes.reduce((function(e,n){var r=t.main.getGroupByValue({data:n.data});return e[r]||(e[r]={sorting:Object.keys(e).length,items:[]}),e[r].items.push(n),e}),{});return Object.keys(n).map((function(e){return n[e]})).sort((function(e,t){return e.sorting-t.sorting})).map((function(e){return e.items}))}({config:r,nodes:l.node.nodes}),u=function(e){var t=e.chart,n=e.config,r=e.expando,i=e.h,o=e.context,a=e.groups,s=o.node.meta,l=o.resources,c=l.dataset,u=l.formatter,d=bE({config:n,h:i,context:o}),f=function(e){var t=e.dataset;return{dataset:{title:function(e,n){return t(e).field(n).title()}}}}({dataset:c}),h=a.map((function(e){var t=d.section({content:Dw((n.main.section({expando:r,h:i,nodes:e,dataset:c,formatter:u,meta:s,create:d,util:f})||[]).filter((function(e){var t;return null===(t=e.content)||void 0===t?void 0:t.length}))).filter(Boolean)});return t.content=function(e){var t=e.config,n=e.content,r=n.find((function(e){return"color"===e.type&&e.filter})),i=r?n.filter((function(e){return"measure"!==e.type||e.survive.color||e.label!==r.label||e.value!==r.value})):n;return t.main.showDuplicateMeasures?i:i.reduce((function(e,t){var n=t.type,r=t.survive;if("measure"!==n||r.duplicate)return e.filtered.push(t),e;var i="".concat(t.label,"-").concat(t.value);return e.memory[i]||(e.memory[i]=!0,e.filtered.push(t)),e}),{memory:{},filtered:[]}).filtered}({config:n,content:t.content}),t}));return n.main.sections({chart:t,expando:r,h:i,nodes:o.node.nodes,dataset:c,formatter:u,meta:s,create:d,util:f,sections:h}),h.filter(Boolean)}({chart:t,config:r,expando:i,h:o,context:l,groups:c}),d=function(e){var t=e.translator,n=e.config,r=e.context,i=e.templates,o=n.main.layout,a=o.rows,s=o.grouping,l=o.single,c=function(e){var t=e.limit,n=e.grouping,r=e.single,i={count:0,overflow:0,index:{started:void 0,group:void 0}};return{process:function(e){var o=e.visibility,a=e.index;if(r&&0!==a)return n?(i.index.started!==a&&i.index.group!==a&&(i.overflow++,i.index.group=a),!1):(i.overflow++,!1);if(i.count>=t){if(!n)return i.overflow++,!1;if(i.index.started!==a)return i.index.group!==a&&(i.overflow++,i.index.group=a),!1}return o.count&&i.count++,n&&(i.index.started=a),!0},overflow:function(){return i.overflow}}}({limit:a,grouping:s,single:"function"==typeof l?l({meta:r.node.meta,sections:i}):l}),u=i.reduce((function(e,t,n){var r=t.type,o=t.content;"section"===r&&(void 0===o?[]:o).forEach((function(t){c.process({visibility:t.visibility,index:n})&&e.push(t.content)}));var a=n===i.length-1;return"divider"!==r||a||c.process({visibility:t.visibility,index:n})&&e.push(t.content),e}),[]).filter((function(e){return e.length})),d=c.overflow();return d&&u.push(function(e){var t=e.translator,n=e.config,r=e.count,i=t?t.get("Object.ChartTooltip.NMore",r):"+".concat(r," more"),o=vE(i);return[{content:i,style:{"font-weight":"bold","text-align":n.rtl?"right":"left",direction:o},colspan:2}]}({translator:t,config:n,count:d})),u}({translator:n,config:r,h:o,context:l,templates:u});return d.length?function(e){var t=e.h,n=e.style;return e.rows.map((function(e){return t("tr",{},e.map((function(e){var r={style:xw(xw({},n.cell||{}),e.style||{}),class:e.class};return e.colspan&&(r.colspan=e.colspan),t("td",r,e.content)})))}))}({h:o,style:s,rows:d}):function(e){var t=e.h;return t("tr",{},t("td",{style:{fontStyle:"italic",opacity:.75}},"Empty"))}({h:o})}function wE(e){var t=e.chart,n=e.translator,r=e.config,i=e.expando,o=e.internal;if(!r.main.key)return!1;var a=AS(),s=oE({key:r.main.key,rtl:r.rtl,duration:r.duration}),l=r.main.events.tooltip,c=l.afterShow,u=l.afterHide,d=function(){var e=a.get("collected");return{expando:i,nodes:e.nodes,meta:e.meta}};return Kw(!0,s,{settings:{filter:function(e){return fE({chart:t,config:r,expando:i,internal:o,nodes:e})},extract:function(e){return a.set("collected",e.node),e},content:function(e){var o=e.h,a=e.data,s=e.style;return xE({chart:t,translator:n,config:r,expando:i,h:o,data:a,style:s})},placement:function(e){var t=e.nodes;return r.main.placement({meta:t[0].meta})},afterShow:function(){return c(d())},afterHide:function(){return u(d())}},style:{arrow:{color:r.style.background},content:r.style}})}function kE(e){var t=e.config,n=t.legend.keys;if(!n.tooltip||!n.component)return!1;if("categorical"!==t.getColorSettings().type)return!1;var r=oE({key:n.tooltip,rtl:t.rtl,duration:t.duration});return Kw(!0,r,{settings:{filter:function(e){return e.filter((function(e){return e.data&&e.key===n.component}))},extract:function(e){return e},content:function(e){var t=e.h,n=e.data;return[t("tr",{},[t("td",{style:xw(xw({},e.style.cell||{}),{"font-weight":"bold","text-align":"left"}),colspan:2},n[0].node.data.label)])]},placement:"pointer"},style:{arrow:{color:t.style.background},content:t.style}})}function SE(e){var t=e.config.main.triggers.reduce((function(e,t){return t.keys.forEach((function(n){var r=t.distance||0;e.distance[n]=r,e.distances.includes(r)||e.distances.push(r),e.key[n]=!0,e.keys[r]||(e.keys[r]=[]),e.keys[r].push(n)})),e}),{distance:{},distances:[],key:{},keys:{}});return function(e){return e.components.filter((function(e){return t.key[e.key]})).reduce((function(e,n){e.any=!0,e.components.push(n.key);var r=t.distance[n.key];return 0===r?e.position.push(n.key):(e.distances.includes(r)||(e.distances.push(r),e.distanceKeys[r]=[]),e.distanceKeys[r].push(n.key)),e}),{any:!1,components:[],position:[],distances:[],distanceKeys:{}})}}var CE=function(){return!0};function ME(e){var t=e.config.main.triggers.reduce((function(e,t){var n=t.filter;return t.keys.forEach((function(t){e[t]="function"==typeof n?n:CE})),e}),{});return function(e){var n=t[e.key];return!n||n(e)}}function EE(e){var t=e.chart,n=e.event,r=e.component,i={absolute:{x:0,y:0},relative:{x:0,y:0}},o=t.element.getBoundingClientRect(),a=o.left,s=o.top;i.absolute.x=(void 0===n.clientX?Math.floor(n.srcEvent.clientX):n.clientX)-a,i.absolute.y=(void 0===n.clientY?Math.floor(n.srcEvent.clientY):n.clientY)-s;var l=t.component(r);if(l){var c=l.rect.computedInner;i.relative.x=i.absolute.x-c.x,i.relative.y=i.absolute.y-c.y}return i}function _E(e){var t=e.chart,n=e.filter,r=e.hits,i=e.position,o=[];if(r.position.length&&o.push.apply(o,Dw(t.shapesAt(i.absolute,{components:r.position.map((function(e){return{key:e}}))}).filter(n))),!o.length&&r.distances.length){var a=[];r.distances.forEach((function(e){a.push.apply(a,Dw(t.shapesAt({cx:i.absolute.x,cy:i.absolute.y,r:e},{components:r.distanceKeys[e].map((function(e){return{key:e}}))}).filter(n)))})),a.length&&o.push(function(e){var t=e.nodes,n=e.origin,r=t.find((function(e){return"path"===e.type}));if(r)return r;var i=function(e){var t=Math.abs(n.x-(e.localBounds.x+e.localBounds.width/2)),r=Math.abs(n.y-(e.localBounds.y+e.localBounds.height/2));return Math.sqrt(t*t+r*r)};return t.slice(1).reduce((function(e,t){var n=i(t);return n<e.distance&&(e.distance=n,e.node=t),e}),{node:t[0],distance:i(t[0])}).node}({nodes:a,origin:i.relative}))}return o}function DE(e){var t=e.chart,n=e.config,r=e.expando,i=e.internal,o=e.facade,a=n.delay.tap,s=SE({config:n}),l=ME({config:n}),c=n.main.triggers.reduce((function(e,t){return e.push.apply(e,Dw(t.keys)),e}),[]);return{key:"event:".concat("tooltipTap"),type:"Tap",options:{event:"tooltipTap",enable:function(e,r){return!r||!!n.enable({event:r})&&t.componentsFromPoint({x:r.center.x,y:r.center.y}).filter((function(e){return-1!==c.indexOf(e.key)})).length>0}},recognizeWith:"tap",events:Mw({},"tooltipTap",(function(e){if(e.preventDefault(),"mouse"!==e.pointerType&&!n.main.suppress({event:e})){var c=t.component(n.main.key);if(c&&c.show){var u=t.componentsFromPoint({x:e.center.x,y:e.center.y}),d=s({components:u});if(d.any){var f=_w(d.components,1)[0],h=EE({chart:t,event:e,component:f});i.set(aE,h);var p=_E({chart:t,filter:l,hits:d,position:h});if(p.length){var m=p[0].key;n.main.events.tooltip.beforeShow({expando:r,event:e,collectNodes:function(){return o.collectNodes({nodes:p})},meta:{triggerer:m,position:h}}).then((function(){c.emit("show",e,{nodes:p,delay:a})})).catch((function(){}))}else c.emit("hide")}else c.emit("hide")}}}))}}function qE(e){var t=e.chart,n=e.config,r=e.expando,i=e.internal,o=e.facade,a=SE({config:n}),s=ME({config:n}),l=function(e){var t=e.config,n=e.expando,r=e.internal,i=e.facade,o=t.main.events.tooltip.beforeShow,a=t.delay.hover,s={ongoing:{},latest:void 0};return function(e){var t=e.event,l=e.tooltip,c=e.nodes,u=function(e){var t=e.nodes;return JSON.stringify(t.map((function(e){var t;return{key:e.key,bounds:e.bounds,value:null===(t=e.data)||void 0===t?void 0:t.value}})))}({nodes:c});if(!s.ongoing[u]){s.ongoing[u]=!0,s.latest=u;var d=c[0].key;o({expando:n,event:t,collectNodes:function(){return i.collectNodes({nodes:c})},meta:{triggerer:d,position:r.get(aE)}}).then((function(){u===s.latest&&l.emit("show",t,{nodes:c,delay:a})})).catch((function(){l.emit("show")})).finally((function(){delete s.ongoing[u],u===s.latest&&(s.latest=void 0)}))}}}({config:n,expando:r,internal:i,facade:o}),c=[n.main.key,n.legend.keys.tooltip].filter(Boolean),u=function(){c.forEach((function(e){var n=t.component(e);null!=n&&n.show&&n.emit("hide")}))};return{type:"native",events:{mousemove:function(e){if(n.enable({event:e})&&!n.main.suppress({event:e})){var r=t.componentsFromPoint({x:e.clientX,y:e.clientY}),o=t.component(n.main.key);if(o&&o.show){var c=a({components:r});if(c.any){var u=_w(c.components,1)[0],d=EE({chart:t,event:e,component:u});i.set(aE,d);var f=_E({chart:t,filter:s,hits:c,position:d});if(!f.length)return void o.emit("hide");l({event:e,tooltip:o,nodes:f})}else o.emit("hide")}var h=n.legend;if(h.keys.tooltip&&h.keys.component){var p=t.component(h.keys.tooltip);p&&p.show&&(r.some((function(e){return e.key===h.keys.component}))?p.emit("show",e):p.emit("hide"))}}},mouseup:function(e){2===e.button&&u()},mouseleave:function(){n.main.events.interaction.mouseleave({expando:r}),u()},wheel:function(){u()}}}}function TE(e){var t=e.chart,n=e.translator,r=function(e){var t=e.config;return Kw(!0,{},{rtl:!1,enable:tE.FALSE,getColorSettings:tE.OBJECT,style:{fontSize:void 0,fontFamily:void 0,color:void 0,background:void 0},delay:{hover:500,tap:0},duration:8e3,main:{key:void 0,suppress:tE.FALSE,getGroupByValue:tE.NOOP,collectibles:[],triggers:[],placement:function(){return{type:"bounds"}},placements:{collectible:"combine"},showDuplicateMeasures:!1,layout:{rows:7,grouping:!1,single:!1},section:tE.ARRAY,sections:tE.NOOP,events:{tooltip:{beforeShow:function(){return Promise.resolve()},afterShow:tE.NOOP,afterHide:tE.NOOP},interaction:{mouseleave:tE.NOOP}}},legend:{keys:{tooltip:void 0,component:void 0}}},void 0===t?{}:t)}({config:e.config}),i=AS(),o=AS(),a={components:void 0,interactions:void 0};return{getComponents:function(){return a.components||(a.components=function(e){var t=e.config;return[wE({chart:e.chart,translator:e.translator,config:t,expando:e.expando,internal:e.internal}),kE({config:t})].filter(Boolean)}({chart:t,translator:n,config:r,expando:i,internal:o})),a.components},getInteractions:function(){return a.interactions||(a.interactions=function(e){var t=e.chart,n=e.config,r=e.expando,i=e.internal,o=function(e){var t=e.chart,n=e.config,r=e.expando,i=e.internal;return{collectNodes:function(e){var o=e.nodes,a=_w(fE({chart:t,config:n,expando:r,internal:i,nodes:o}),1)[0];return(void 0===a?{nodes:[]}:a).nodes}}}({chart:t,config:n,expando:r,internal:i});return{gestures:[DE({chart:t,config:n,expando:r,internal:i,facade:o})],native:qE({chart:t,config:n,expando:r,internal:i,facade:o})}}({chart:t,config:r,expando:i,internal:o})),a.interactions},expando:i}}var RE={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 NE(e){const{qHyperCube:t,...n}=e,{qAxisData:r,qDataPages:i,qStackedDataPages:o,qTreeDataPages:a,...s}=t,l=Eg(!0,{},{...n,qHyperCube:{...s,qAxisData:null,qDataPages:null,qStackedDataPages:null,qTreeDataPages:null}}),{dataRelatedPropertiesPaths:c}=RE;return c.forEach((e=>{const t=e.split("[");if(1===t.length)void 0!==RS(l,e)&&OS(l,e,null);else{const e=t[0],n=t[1].split("].")[1];RS(l,e,[]).forEach((e=>{void 0!==RS(e,n)&&OS(e,n,null)}))}})),l}var OE={axes:{trackBy:function({isTime:e,isContinuous:t,isMeasure:n,isMajor:r}){return i=>{if(e||t||n){var o;if("line"===i.type)return null!==(o=i.tickValue)&&void 0!==o?o:"axis";if("text"===i.type)return`${i.tickValue} ${i.text}`;if("container"===i.type){const e=i.children.filter((e=>"text"===e.type)).map((e=>e.text));return`${i.data.value} ${e.join("")}`}return Math.random()}if(r){if("line"===i.type&&void 0===i.tickValue)return"axis";const e=i.transform&&i.transform.match(/rotate/gi)?"rotated":"horizontal";return`${i.data.group?`${i.data.group.value} `:""}${i.data.value} ${i.text} ${e}`}return Math.random()}},compensateForLayoutChanges:function({isMeasure:e,isTime:t,isContinuous:n,isHorizontal:r,dock:i}){return({currentNodes:o,currentRect:a,previousRect:s})=>{const l=a.x-s.x,c=a.y-s.y,u=a.width-s.width,d=a.height-s.height;e?("left"===i&&o.forEach((e=>{"line"===e.type?(e.x1+=u,e.x2+=u):"text"===e.type&&(e.x+=u)})),"left"!==i&&"right"!==i||o.forEach((e=>{var t;("line"===e.type&&(e.x1===e.x2?(e.y1=a.y,e.y2=e.y1+a.height):(Math.round(e.y1)<a.y||e.y1>a.y+a.height)&&(e.strokeWidth=0)),"text"===e.type)&&((e.y<a.y||e.y>a.y+a.height)&&(e.fontSize="1px","#"===(null===(t=e.fill)||void 0===t?void 0:t[0])&&(e.fill=`${e.fill.slice(0,1)}00${e.fill.slice(1)}`)))})),"top"!==i&&"bottom"!==i||o.forEach((e=>{var t;("line"===e.type&&(e.y1===e.y2?(e.x1=a.x,e.x2=e.x1+a.width):(Math.round(e.x1)<a.x||e.x1>a.x+a.width)&&(e.strokeWidth=0)),"text"===e.type)&&((e.x<a.x||e.x>a.x+a.width)&&(e.fontSize="1px","#"===(null===(t=e.fill)||void 0===t?void 0:t[0])&&(e.fill=`${e.fill.slice(0,1)}00${e.fill.slice(1)}`)))}))):t?o.forEach((e=>{"line"===e.type?e.y1===e.y2?e.x2+=u:e.x1===e.x2&&(e.x1-=l,e.x2-=l):"text"===e.type&&(e.x-=l)})):n||r?o.forEach((e=>{"line"===e.type&&e.y1===e.y2&&(e.x1+=l,e.x2+=l+u)})):o.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,i=t.y-n.y;0===r&&0===i||e.forEach((e=>{e.children&&e.children.length>0&&e.children.forEach((e=>{void 0!==e.x&&void 0!==e.y?(e.x-=r,e.y-=i):e.transform=`translate(${-r}, ${-i})`}))}))}},barOobs:{compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x;0===t.y-n.y&&0===r||e.forEach((e=>{e.children&&e.children.length>0&&e.children.forEach((e=>{e.opacity=0}))}))}},labels:{trackBy:function(e){if("rect"===e.type)return"-3"===e.data?Math.random():`${e.type} ${e.data} ${e.rotation}`;const t=e.transform&&e.transform.match(/rotate/gi)?"rotated":"horizontal";return`${e.type} ${e.data} ${e.text} ${t}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y;0===r&&0===i||e.forEach((e=>{e.transform&&e.transform.match(/rotate\(-90/gi)?(e.x+=i,e.y-=r):(e.x-=r,e.y-=i)}))},linkData:function(e){return e.data.measureIndex?`${e.data.value} ${e.data.measureIndex.value}`:e.data.group?`${e.data.value} ${e.data.group.value}`:e.data.stack?`${e.data.value} ${e.data.stack.value}`:`${e.data.value}`}},lines:{trackBy:function(e){var t;return"line"===e.type?null!==(t=e.value)&&void 0!==t?t:Math.random():"path"===e.type?`${e.generatorType} ${e.layerObj.id} ${e.data.source.key}`:Math.random()},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y;e.forEach((e=>{if(void 0!==e.x1&&void 0!==e.y1)e.y1===e.y2?(e.x2=e.x1+t.width,e.y1-=i,e.y2-=i):e.x1===e.x2&&(e.y2=e.y1+t.height,e.x1-=r,e.x2-=r);else{const t="x"===e.major.p?r/e.major.size:i/e.major.size,n="y"===e.minor.p?i/e.minor.size:r/e.minor.size;e.points.forEach((e=>{e.modified||(e.major-=t,e.minor-=n,e.minor0-=n,e.modified=!0)}))}}))}},lineOobs:{compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x;0===t.y-n.y&&0===r||e.forEach((e=>{e.opacity=0}))}},markers:{trackBy:function(e){return e.data.line?`${e.data.line.value} ${e.data.major.value}`:`${e.data.major.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y;0===r&&0===i||e.forEach((e=>{switch(e.type){case"circle":e.cx-=r,e.cy-=i;break;case"rect":e.x-=r,e.y-=i;break;case"path":e.transform=`translate(${-r}, ${-i})`}}))}},points:{trackBy:function(e){return e.data.line?`${e.data.line.value} ${e.data.major.value}`:`${e.data.major.value}`},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y;0===r&&0===i||e.forEach((e=>{e.cx-=r,e.cy-=i}))}},refLineLabels:{trackBy:function(e){if(void 0!==e.value){if("rect"===e.type)return`${e.value}`;if("text"===e.type)return`${e.value} ${e.text}`}return Math.random()},compensateForLayoutChanges:function({currentNodes:e,currentRect:t,previousRect:n}){const r=t.x-n.x,i=t.y-n.y,o=t.width-n.width,a=t.height-n.height;let s=-r,l=-i;e.forEach((e=>{switch(e.dock){case"right":r>0&&(s=t.width);break;case"left":o<0&&(s=-n.width);break;case"top":a<0&&(l=-n.height);break;case"bottom":i>0&&(l=t.height)}switch(e.type){case"text":case"rect":e.x+=s,e.y+=l;break;case"circle":e.cx+=s,e.cy+=l;break;case"path":e.transform=`translate(${s}, ${l})`}}))}},shadowBars:{trackBy:function(){return Math.random()}},cacheProperties:function({viewCache:e,layout:t}){const n=NE(t);e.set("dataIndependentProperties",JSON.stringify(n))},propertiesHaveChanged:function({viewCache:e,layout:t}){const n=NE(t);return e.get("dataIndependentProperties")!==JSON.stringify(n)},nonUpdatingNode:{trackBy:function(){return Math.random()}}};function AE(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"}var PE={exports:{}},IE={},LE=Symbol.for("react.element"),zE=Symbol.for("react.portal"),FE=Symbol.for("react.fragment"),jE=Symbol.for("react.strict_mode"),$E=Symbol.for("react.profiler"),HE=Symbol.for("react.provider"),VE=Symbol.for("react.context"),BE=Symbol.for("react.forward_ref"),UE=Symbol.for("react.suspense"),WE=Symbol.for("react.memo"),YE=Symbol.for("react.lazy"),KE=Symbol.iterator;var GE={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},XE=Object.assign,ZE={};function JE(e,t,n){this.props=e,this.context=t,this.refs=ZE,this.updater=n||GE}function QE(){}function e_(e,t,n){this.props=e,this.context=t,this.refs=ZE,this.updater=n||GE}JE.prototype.isReactComponent={},JE.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},JE.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},QE.prototype=JE.prototype;var t_=e_.prototype=new QE;t_.constructor=e_,XE(t_,JE.prototype),t_.isPureReactComponent=!0;var n_=Array.isArray,r_=Object.prototype.hasOwnProperty,i_={current:null},o_={key:!0,ref:!0,__self:!0,__source:!0};function a_(e,t,n){var r,i={},o=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(o=""+t.key),t)r_.call(t,r)&&!o_.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(1===s)i.children=n;else if(1<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===i[r]&&(i[r]=s[r]);return{$$typeof:LE,type:e,key:o,ref:a,props:i,_owner:i_.current}}function s_(e){return"object"==typeof e&&null!==e&&e.$$typeof===LE}var l_=/\/+/g;function c_(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function u_(e,t,n,r,i){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var a=!1;if(null===e)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case LE:case zE:a=!0}}if(a)return i=i(a=e),e=""===r?"."+c_(a,0):r,n_(i)?(n="",null!=e&&(n=e.replace(l_,"$&/")+"/"),u_(i,t,n,"",(function(e){return e}))):null!=i&&(s_(i)&&(i=function(e,t){return{$$typeof:LE,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(l_,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=""===r?".":r+":",n_(e))for(var s=0;s<e.length;s++){var l=r+c_(o=e[s],s);a+=u_(o,t,n,l,i)}else if(l=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=KE&&e[KE]||e["@@iterator"])?e:null}(e),"function"==typeof l)for(e=l.call(e),s=0;!(o=e.next()).done;)a+=u_(o=o.value,t,n,l=r+c_(o,s++),i);else if("object"===o)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function d_(e,t,n){if(null==e)return e;var r=[],i=0;return u_(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function f_(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var h_={current:null},p_={transition:null},m_={ReactCurrentDispatcher:h_,ReactCurrentBatchConfig:p_,ReactCurrentOwner:i_};IE.Children={map:d_,forEach:function(e,t,n){d_(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return d_(e,(function(){t++})),t},toArray:function(e){return d_(e,(function(e){return e}))||[]},only:function(e){if(!s_(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},IE.Component=JE,IE.Fragment=FE,IE.Profiler=$E,IE.PureComponent=e_,IE.StrictMode=jE,IE.Suspense=UE,IE.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=m_,IE.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=XE({},e.props),i=e.key,o=e.ref,a=e._owner;if(null!=t){if(void 0!==t.ref&&(o=t.ref,a=i_.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)r_.call(t,l)&&!o_.hasOwnProperty(l)&&(r[l]=void 0===t[l]&&void 0!==s?s[l]:t[l])}var l=arguments.length-2;if(1===l)r.children=n;else if(1<l){s=Array(l);for(var c=0;c<l;c++)s[c]=arguments[c+2];r.children=s}return{$$typeof:LE,type:e.type,key:i,ref:o,props:r,_owner:a}},IE.createContext=function(e){return(e={$$typeof:VE,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:HE,_context:e},e.Consumer=e},IE.createElement=a_,IE.createFactory=function(e){var t=a_.bind(null,e);return t.type=e,t},IE.createRef=function(){return{current:null}},IE.forwardRef=function(e){return{$$typeof:BE,render:e}},IE.isValidElement=s_,IE.lazy=function(e){return{$$typeof:YE,_payload:{_status:-1,_result:e},_init:f_}},IE.memo=function(e,t){return{$$typeof:WE,type:e,compare:void 0===t?null:t}},IE.startTransition=function(e){var t=p_.transition;p_.transition={};try{e()}finally{p_.transition=t}},IE.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},IE.useCallback=function(e,t){return h_.current.useCallback(e,t)},IE.useContext=function(e){return h_.current.useContext(e)},IE.useDebugValue=function(){},IE.useDeferredValue=function(e){return h_.current.useDeferredValue(e)},IE.useEffect=function(e,t){return h_.current.useEffect(e,t)},IE.useId=function(){return h_.current.useId()},IE.useImperativeHandle=function(e,t,n){return h_.current.useImperativeHandle(e,t,n)},IE.useInsertionEffect=function(e,t){return h_.current.useInsertionEffect(e,t)},IE.useLayoutEffect=function(e,t){return h_.current.useLayoutEffect(e,t)},IE.useMemo=function(e,t){return h_.current.useMemo(e,t)},IE.useReducer=function(e,t,n){return h_.current.useReducer(e,t,n)},IE.useRef=function(e){return h_.current.useRef(e)},IE.useState=function(e){return h_.current.useState(e)},IE.useSyncExternalStore=function(e,t,n){return h_.current.useSyncExternalStore(e,t,n)},IE.useTransition=function(){return h_.current.useTransition()},IE.version="18.2.0",PE.exports=IE;var g_=PE.exports,y_=r(g_),v_=t({__proto__:null,default:y_},[g_]);const b_={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"},x_={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"},w_={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"},k_={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"},S_={d:"m 13.914 4.5 l -7.707 7.707 L 2 8 l 0.707 -0.707 l 3.5 3.5 l 7 -7 Z"},C_={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"},M_={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"},E_={single:"N",drillDown:"H",cyclic:"C"},__={N:void 0,H:b_,C:w_},D_=(e,t)=>{switch(e.qGrouping){case E_.single:return;case E_.drillDown:return{path:b_,tooltip:"Tooltip.dimensions.drilldown",onClick:void 0};case E_.cyclic:return{path:t?x_:w_,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 q_(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=sw.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 T_(e,t,n,r,i,o){e.getEffectiveProperties().then((a=>{const s=a.qHyperCubeDef[r].findIndex((e=>e.qDef.cId===t)),l=a.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r].findIndex((e=>e.qDef.cId===n)),c=Eg(!0,{},a),u=c.qHyperCubeDef[r][s],d=c.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l];d.qAttributeDimensions=u.qAttributeDimensions,u.qAttributeDimensions=[],o||(d.qAttributeExpressions=u.qAttributeExpressions,u.qAttributeExpressions=[]),c.qHyperCubeDef[r][s]=d,c.qHyperCubeDef.qLayoutExclude.qHyperCubeDef[r][l]=u,i&&i({oldItem:u,newItem:d,oldProperties:a,newProperties:c,model:e}),q_(e,a,c)}))}function R_(e){return e.qGrouping===E_.single?e.qFallbackTitle||"":e.title||""}const N_=async(e,t,n,r,i="/qHyperCubeDef")=>{switch(e.qGrouping){case E_.drillDown:{const n=e.qGroupFallbackTitles.slice(0,e.qGroupPos+1).map(((n,o)=>({id:`${e.cId}-${o}`,title:n,selected:e.qGroupPos===o,onSelect:()=>{t.drillUp(i,r,e.qGroupPos-o)}})));return{id:e.cId,icon:b_,groupItem:!0,title:e.title,selected:!1,children:n}}case E_.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:w_,groupItem:!0,title:e.title,selected:!1,children:r}}default:return{selected:!0,id:e.cId,title:R_(e)}}},O_=(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))},A_=async(e,t,n,r,i)=>{const o=await O_(e,n),a=n.filter((e=>!o.includes(e.qDef.cId))),s=await Promise.all(a.map((async n=>{const o=await((e,t)=>{if(e.qLibraryId)return t.getDimension(e.qLibraryId).then((e=>e.getLayout())).catch((()=>null))})(n,e),a=await function(e,t,n,r){if(e.qLibraryId)return r?r.qDim.qGrouping===E_.single&&r.qDim.qLabelExpression?Promise.resolve(r.qDim.qLabelExpression):Promise.resolve(r.qDim.title):Promise.resolve(n.get("Object.ErrorMessage.MissingDimension"));const i=e.qDef.qLabelExpression;if(i)return t.evaluate(i);const o=e.qDef.qFieldLabels[0]||e.qDef.qFieldDefs[0];return Promise.resolve(o)}(n,e,r,o),s=(null==o?void 0:o.qDim.qGrouping)||n.qDef.qGrouping,l=__[s],c=s!==E_.single;return{id:n.qDef.cId,icon:l,groupItem:c,selected:!1,title:a,onSelect(e){T_(t,e,n.qDef.cId,"qDimensions",i)}}})));return s};function P_({column:e,dir:t,dock:n,altList:r,model:i,translator:o,app:a,onChange:s,activeInfo:l,allowChangeOfAlternatives:c}){const u=l.qGrouping===E_.single;return 0===r.length&&u?null:{dir:t,dock:n,getPopoverOptions:async()=>{const t=await N_(l,i,a,e),n=c?await A_(a,i,r,o,s):[];return(u||0===t.children.length)&&0===n.length?[]:[t,...n]}}}function I_(e,t,n,r,i="/qHyperCubeDef"){return{breadcrumbs:e.qGrouping===E_.drillDown?e.qGroupFallbackTitles.slice(0,e.qGroupPos):[],icon:D_(e,r),index:t,locked:!!e.qLocked,text:e.qGrouping===E_.single?e.qFallbackTitle:e.qGroupFallbackTitles[e.qGroupPos],popoverText:R_(e),...n&&{drillUp(e){n.drillUp(i,t,e)}},id:e.cId}}function L_({activeInfo:e,altList:t,app:n,dir:r,dock:i,model:o,onChange:a,skipAttributeExpressions:s,translator:l,allowChangeOfAlternatives:c}){return 0===t.length?null:{dir:r,dock:i,getPopoverOptions:async()=>{const r=[{id:e.cId,title:e.qFallbackTitle,selected:!0,onSelect:()=>{}}],i=await O_(n,t),u=t.filter((e=>!i.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 i=e.qDef.qLabel||e.qDef.qDef;return Promise.resolve(i)}(e,n,l);return{id:e.qDef.cId,selected:!1,title:t,onSelect(t){T_(o,t,e.qDef.cId,"qMeasures",a,s)}}}))):[];return 0===d.length?[]:[...r,...d]}}}function z_(e,t){return{breadcrumbs:[],index:t,locked:!1,text:e.qFallbackTitle,popoverText:e.qFallbackTitle,id:e.cId}}function F_(){return F_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},F_.apply(this,arguments)}var j_={exports:{}};function $_(){}function H_(){}H_.resetWarningCache=$_;j_.exports=function(){function e(e,t,n,r,i,o){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==o){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:H_,resetWarningCache:$_};return n.PropTypes=n,n}();var V_=r(j_.exports),B_={black:"#000",white:"#fff"},U_={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},W_={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},Y_={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},K_={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},G_={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},X_={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Z_={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 J_(){return J_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},J_.apply(this,arguments)}function Q_(e){return Q_="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},Q_(e)}function eD(e){return e&&"object"===Q_(e)&&e.constructor===Object}function tD(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?J_({},e):e;return eD(e)&&eD(t)&&Object.keys(t).forEach((function(i){"__proto__"!==i&&(eD(t[i])&&i in e?r[i]=tD(e[i],t[i],n):r[i]=t[i])})),r}function nD(e){var t=function(e,t){if("object"!==Q_(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Q_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Q_(t)?t:String(t)}function rD(e,t,n){return(t=nD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iD(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 oD(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 aD(e){if(e.type)return e;if("#"===e.charAt(0))return aD(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(iD(3,e));var r=e.substring(t+1,e.length-1).split(",");return r=r.map((function(e){return parseFloat(e)})),{type:n,values:r}}function sD(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 lD(e){var t="hsl"===(e=aD(e)).type?aD(function(e){var t=(e=aD(e)).values,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return i-o*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),sD({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 cD(e,t){return e=aD(e),t=oD(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,sD(e)}function uD(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function dD(e,t){if(null==e)return{};var n,r,i=uD(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var fD=["xs","sm","md","lg","xl"];function hD(e,t,n){var r;return J_({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")),J_({paddingLeft:t(2),paddingRight:t(2)},n,rD({},e.up("sm"),J_({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},rD(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),rD(r,e.up("sm"),{minHeight:64}),r)},n)}var pD={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:B_.white,default:Z_[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}},mD={text:{primary:B_.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:Z_[800],default:"#303030"},action:{active:B_.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 gD(e,t,n,r){var i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=aD(e),t=oD(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 sD(e)}(e.main,i):"dark"===t&&(e.dark=function(e,t){if(e=aD(e),t=oD(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 sD(e)}(e.main,o)))}function yD(e){var t=e.primary,n=void 0===t?{light:Y_[300],main:Y_[500],dark:Y_[700]}:t,r=e.secondary,i=void 0===r?{light:W_.A200,main:W_.A400,dark:W_.A700}:r,o=e.error,a=void 0===o?{light:U_[300],main:U_[500],dark:U_[700]}:o,s=e.warning,l=void 0===s?{light:X_[300],main:X_[500],dark:X_[700]}:s,c=e.info,u=void 0===c?{light:K_[300],main:K_[500],dark:K_[700]}:c,d=e.success,f=void 0===d?{light:G_[300],main:G_[500],dark:G_[700]}:d,h=e.type,p=void 0===h?"light":h,m=e.contrastThreshold,g=void 0===m?3:m,y=e.tonalOffset,v=void 0===y?.2:y,b=dD(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function x(e){var t=function(e,t){var n=lD(e),r=lD(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,mD.text.primary)>=g?mD.text.primary:pD.text.primary;return t}var w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=J_({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(iD(4,t));if("string"!=typeof e.main)throw new Error(iD(5,JSON.stringify(e.main)));return gD(e,"light",n,v),gD(e,"dark",r,v),e.contrastText||(e.contrastText=x(e.main)),e},k={dark:mD,light:pD};return tD(J_({common:B_,type:p,primary:w(n),secondary:w(i,"A400","A200","A700"),error:w(a),warning:w(l),info:w(u),success:w(f),grey:Z_,contrastThreshold:g,getContrastText:x,augmentColor:w,tonalOffset:v},k[p]),b)}function vD(e){return Math.round(1e5*e)/1e5}function bD(e){return vD(e)}var xD={textTransform:"uppercase"},wD='"Roboto", "Helvetica", "Arial", sans-serif';function kD(e,t){var n="function"==typeof t?t(e):t,r=n.fontFamily,i=void 0===r?wD:r,o=n.fontSize,a=void 0===o?14:o,s=n.fontWeightLight,l=void 0===s?300:s,c=n.fontWeightRegular,u=void 0===c?400:c,d=n.fontWeightMedium,f=void 0===d?500:d,h=n.fontWeightBold,p=void 0===h?700:h,m=n.htmlFontSize,g=void 0===m?16:m,y=n.allVariants,v=n.pxToRem,b=dD(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),x=a/14,w=v||function(e){return"".concat(e/g*x,"rem")},k=function(e,t,n,r,o){return J_({fontFamily:i,fontWeight:e,fontSize:w(t),lineHeight:n},i===wD?{letterSpacing:"".concat(vD(r/t),"em")}:{},o,y)},S={h1:k(l,96,1.167,-1.5),h2:k(l,60,1.2,-.5),h3:k(u,48,1.167,0),h4:k(u,34,1.235,.25),h5:k(u,24,1.334,0),h6:k(f,20,1.6,.15),subtitle1:k(u,16,1.75,.15),subtitle2:k(f,14,1.57,.1),body1:k(u,16,1.5,.15),body2:k(u,14,1.43,.15),button:k(f,14,1.75,.4,xD),caption:k(u,12,1.66,.4),overline:k(u,12,2.66,1,xD)};return tD(J_({htmlFontSize:g,pxToRem:w,round:bD,fontFamily:i,fontSize:a,fontWeightLight:l,fontWeightRegular:u,fontWeightMedium:f,fontWeightBold:p},S),b,{clone:!1})}function SD(){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 CD=["none",SD(0,2,1,-1,0,1,1,0,0,1,3,0),SD(0,3,1,-2,0,2,2,0,0,1,5,0),SD(0,3,3,-2,0,3,4,0,0,1,8,0),SD(0,2,4,-1,0,4,5,0,0,1,10,0),SD(0,3,5,-1,0,5,8,0,0,1,14,0),SD(0,3,5,-1,0,6,10,0,0,1,18,0),SD(0,4,5,-2,0,7,10,1,0,2,16,1),SD(0,5,5,-3,0,8,10,1,0,3,14,2),SD(0,5,6,-3,0,9,12,1,0,3,16,2),SD(0,6,6,-3,0,10,14,1,0,4,18,3),SD(0,6,7,-4,0,11,15,1,0,4,20,3),SD(0,7,8,-4,0,12,17,2,0,5,22,4),SD(0,7,8,-4,0,13,19,2,0,5,24,4),SD(0,7,9,-4,0,14,21,2,0,5,26,4),SD(0,8,9,-5,0,15,22,2,0,6,28,5),SD(0,8,10,-5,0,16,24,2,0,6,30,5),SD(0,8,11,-5,0,17,26,2,0,6,32,5),SD(0,9,11,-5,0,18,28,2,0,7,34,6),SD(0,9,12,-6,0,19,29,2,0,7,36,6),SD(0,10,13,-6,0,20,31,3,0,8,38,7),SD(0,10,13,-6,0,21,33,3,0,8,40,7),SD(0,10,14,-6,0,22,35,3,0,8,42,7),SD(0,11,14,-7,0,23,36,3,0,9,44,8),SD(0,11,15,-7,0,24,38,3,0,9,46,8)],MD={borderRadius:4};function ED(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _D(e,t){if(e){if("string"==typeof e)return ED(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ED(e,t):void 0}}function DD(e){return function(e){if(Array.isArray(e))return ED(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||_D(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 qD(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||_D(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 TD(){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 RD={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)"},ND={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function OD(e){return"".concat(Math.round(e),"ms")}var AD={easing:RD,duration:ND,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?ND.standard:n,i=t.easing,o=void 0===i?RD.easeInOut:i,a=t.delay,s=void 0===a?0:a;return dD(t,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof r?r:OD(r)," ").concat(o," ").concat("string"==typeof s?s:OD(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))}},PD={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function ID(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,i=void 0===r?{}:r,o=e.palette,a=void 0===o?{}:o,s=e.spacing,l=e.typography,c=void 0===l?{}:l,u=dD(e,["breakpoints","mixins","palette","spacing","typography"]),d=yD(a),f=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,r=e.unit,i=void 0===r?"px":r,o=e.step,a=void 0===o?5:o,s=dD(e,["values","unit","step"]);function l(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(i,")")}function c(e,t){var r=fD.indexOf(t);return r===fD.length-1?l(e):"@media (min-width:".concat("number"==typeof n[e]?n[e]:e).concat(i,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof n[fD[r+1]]?n[fD[r+1]]:t)-a/100).concat(i,")")}return J_({keys:fD,values:n,up:l,down:function(e){var t=fD.indexOf(e)+1,r=n[fD[t]];return t===fD.length?l("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-a/100).concat(i,")")},between:c,only:function(e){return c(e,e)},width:function(e){return n[e]}},s)}(n),h=TD(s),p=tD({breakpoints:f,direction:"ltr",mixins:hD(f,h,i),overrides:{},palette:d,props:{},shadows:CD,typography:kD(d,c),spacing:h,shape:MD,transitions:AD,zIndex:PD},u),m=arguments.length,g=new Array(m>1?m-1:0),y=1;y<m;y++)g[y-1]=arguments[y];return p=g.reduce((function(e,t){return tD(e,t)}),p)}var LD="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",zD=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function FD(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,i=void 0===r?"jss":r,o=e.seed,a=void 0===o?"":o,s=""===a?"":"".concat(a,"-"),l=0,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!==zD.indexOf(e.key))return"Mui-".concat(e.key);var o="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[LD]&&""===a?"".concat(o,"-").concat(c()):o}return"".concat(s).concat(i).concat(c())}}function jD(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var i,o=t.props[n];for(i in o)void 0===r[i]&&(r[i]=o[i]);return r}var $D="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},HD="object"===("undefined"==typeof window?"undefined":$D(window))&&"object"===("undefined"==typeof document?"undefined":$D(document))&&9===document.nodeType;function VD(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,nD(r.key),r)}}function BD(e,t,n){return t&&VD(e.prototype,t),n&&VD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function UD(e,t){return UD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},UD(e,t)}function WD(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,UD(e,t)}function YD(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var KD={}.constructor;function GD(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(GD);if(e.constructor!==KD)return e;var t={};for(var n in e)t[n]=GD(e[n]);return t}function XD(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,i=GD(t),o=r.plugins.onCreateRule(e,i,n);return o||(e[0],null)}var ZD=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},JD=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+=ZD(e[n]," ");else t=ZD(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function QD(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function eq(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function tq(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var i=n.indent,o=void 0===i?0:i,a=t.fallbacks;!1===n.format&&(o=-1/0);var s=QD(n),l=s.linebreak,c=s.space;if(e&&o++,a)if(Array.isArray(a))for(var u=0;u<a.length;u++){var d=a[u];for(var f in d){var h=d[f];null!=h&&(r&&(r+=l),r+=eq(f+":"+c+JD(h)+";",o))}}else for(var p in a){var m=a[p];null!=m&&(r&&(r+=l),r+=eq(p+":"+c+JD(m)+";",o))}for(var g in t){var y=t[g];null!=y&&"fallbacks"!==g&&(r&&(r+=l),r+=eq(g+":"+c+JD(y)+";",o))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),eq(""+e+c+"{"+r,--o)+eq("}",o)):r}var nq=/([[\].#*$><+~=|^:(),"'`\s])/g,rq="undefined"!=typeof CSS&&CSS.escape,iq=function(e){return rq?rq(e):e.replace(nq,"\\$1")},oq=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,i=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:i&&(this.renderer=new i)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var i=t;n&&!1===n.process||(i=this.options.jss.plugins.onChangeValue(t,e,this));var o=null==i||!1===i,a=e in this.style;if(o&&!a&&!r)return this;var s=o&&a;if(s?delete this.style[e]:this.style[e]=i,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,i),this;var l=this.options.sheet;return l&&l.attached,this},e}(),aq=function(e){function t(t,n,r){var i;i=e.call(this,t,n,r)||this;var o=r.selector,a=r.scoped,s=r.sheet,l=r.generateId;return o?i.selectorText=o:!1!==a&&(i.id=l(YD(YD(i)),s),i.selectorText="."+iq(i.id)),i}WD(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]=JD(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?J_({},e,{allowEmpty:!0}):e;return tq(this.selectorText,this.style,n)},BD(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}(oq),sq={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new aq(e,t,n)}},lq={indent:1,children:!0},cq=/@([\w-]+)/,uq=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(cq);for(var i in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new Aq(J_({},n,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=lq);var t=QD(e).linebreak;if(null==e.indent&&(e.indent=lq.indent),null==e.children&&(e.children=lq.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),dq=/@container|@media|@supports\s+/,fq={onCreateRule:function(e,t,n){return dq.test(e)?new uq(e,t,n):null}},hq={indent:1,children:!0},pq=/@keyframes\s+([\w-]+)/,mq=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(pq);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var i=n.scoped,o=n.sheet,a=n.generateId;for(var s in this.id=!1===i?this.name:iq(a(this,o)),this.rules=new Aq(J_({},n,{parent:this})),t)this.rules.add(s,t[s],J_({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=hq);var t=QD(e).linebreak;if(null==e.indent&&(e.indent=hq.indent),null==e.children&&(e.children=hq.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}(),gq=/@keyframes\s+/,yq=/\$([\w-]+)/g,vq=function(e,t){return"string"==typeof e?e.replace(yq,(function(e,n){return n in t?t[n]:e})):e},bq=function(e,t,n){var r=e[t],i=vq(r,n);i!==r&&(e[t]=i)},xq={onCreateRule:function(e,t,n){return"string"==typeof e&&gq.test(e)?new mq(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&bq(e,"animation-name",n.keyframes),"animation"in e&&bq(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 vq(e,r.keyframes);default:return e}}},wq=function(e){function t(){return e.apply(this,arguments)||this}return WD(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?J_({},e,{allowEmpty:!0}):e;return tq(this.key,this.style,n)},t}(oq),kq={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new wq(e,t,n):null}},Sq=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=QD(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=tq(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return tq(this.at,this.style,e)},e}(),Cq=/@font-face/,Mq={onCreateRule:function(e,t,n){return Cq.test(e)?new Sq(e,t,n):null}},Eq=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 tq(this.key,this.style,e)},e}(),_q={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new Eq(e,t,n):null}},Dq=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}(),qq={"@charset":!0,"@import":!0,"@namespace":!0},Tq={onCreateRule:function(e,t,n){return e in qq?new Dq(e,t,n):null}},Rq=[sq,fq,xq,kq,Mq,_q,Tq],Nq={process:!0},Oq={force:!0,process:!0},Aq=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,i=r.parent,o=r.sheet,a=r.jss,s=r.Renderer,l=r.generateId,c=r.scoped,u=J_({classes:this.classes,parent:i,sheet:o,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="."+iq(this.classes[d]));var f=XD(d,t,u);if(!f)return null;this.register(f);var h=void 0===u.index?this.index.length:u.index;return this.index.splice(h,0,f),f},t.replace=function(e,t,n){var r=this.get(e),i=this.index.indexOf(r);r&&this.remove(r);var o=n;return-1!==i&&(o=J_({},n,{index:i})),this.add(e,t,o)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof aq?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof mq&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof aq?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof mq&&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=Nq);var i=this.options,o=i.jss.plugins,a=i.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t.style;if(o.onUpdate(n,t,a,r),r.process&&s&&s!==t.style){for(var l in o.onProcessStyle(t.style,t,a),t.style){var c=t.style[l];c!==s[l]&&t.prop(l,c,Oq)}for(var u in s){var d=t.style[u],f=s[u];null==d&&d!==f&&t.prop(u,null,Oq)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,i=QD(e).linebreak,o=0;o<this.index.length;o++){var a=this.index[o].toString(e);(a||r)&&(t&&(t+=i),t+=a)}return t},e}(),Pq=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=J_({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new Aq(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var i=this.rules.add(e,t,n);return i?(this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(r?r.push(i):(this.insertRule(i),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),i):i:(this.deployed=!1,i)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var i=this.rules.replace(e,t,n);return i&&this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(this.renderer&&(i?r.renderable&&this.renderer.replaceRule(r.renderable,i):this.renderer.deleteRule(r)),i):i:(this.deployed=!1,i)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var i=this.addRule(r,e[r],t);i&&n.push(i)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),Iq=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var i=this.registry.onCreateRule[r](e,t,n);if(i)return i}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var i=0;i<this.registry.onUpdate.length;i++)this.registry.onUpdate[i](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,i=0;i<this.registry.onChangeValue.length;i++)r=this.registry.onChangeValue[i](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),Lq=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=uD(t,["attached"]),i=QD(r).linebreak,o="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=n&&s.attached!==n||(o&&(o+=i),o+=s.toString(r))}return o},BD(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),zq=new Lq,Fq="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),jq="2f1acc6c3a606b082e5eef5e54414ffb";null==Fq[jq]&&(Fq[jq]=0);var $q=Fq[jq]++,Hq=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var i="",o="";return r&&(r.options.classNamePrefix&&(o=r.options.classNamePrefix),null!=r.options.jss.id&&(i=String(r.options.jss.id))),e.minify?""+(o||"c")+$q+i+t:o+n.key+"-"+$q+(i?"-"+i:"")+"-"+t}},Vq=function(e){var t;return function(){return t||(t=e()),t}},Bq=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},Uq=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=JD(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var i=r?r.indexOf("!important"):-1,o=i>-1?r.substr(0,i-1):r;e.style.setProperty(t,o,i>-1?"important":"")}}catch(e){return!1}return!0},Wq=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},Yq=function(e,t){return e.selectorText=t,e.selectorText===t},Kq=Vq((function(){return document.querySelector("head")}));function Gq(e){var t=zq.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var i=function(e){for(var t=Kq(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}var Xq=Vq((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),Zq=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]},Jq=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},Qq=function(){function e(e){this.getPropertyValue=Bq,this.setProperty=Uq,this.removeProperty=Wq,this.setSelector=Yq,this.hasInsertedRules=!1,this.cssRules=[],e&&zq.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,i=t.element;this.element=i||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var o=Xq();o&&this.element.setAttribute("nonce",o)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=Gq(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var i=n,o=i.parentNode;o&&o.insertBefore(e,i.nextSibling)}else Kq().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,i=n;if("conditional"===e.type||"keyframes"===e.type){var o=Jq(n,t);if(!1===(i=Zq(n,r.toString({children:!1}),o)))return!1;this.refCssRule(e,o,i)}return this.insertRules(r.rules,i),i}var a=e.toString();if(!a)return!1;var s=Jq(n,t),l=Zq(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 Pq&&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}(),eT=0,tT=function(){function e(e){this.id=eT++,this.version="10.10.0",this.plugins=new Iq,this.options={id:{minify:!1},createGenerateId:Hq,Renderer:HD?Qq:null,plugins:[]},this.generateId=Hq({minify:!1});for(var t=0;t<Rq.length;t++)this.plugins.use(Rq[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=J_({},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===zq.index?0:zq.index+1);var r=new Pq(e,J_({},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(),zq.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=J_({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var i=XD(e,t,r);return i&&this.plugins.onProcessRule(i),i},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}(),nT=function(e){return new tT(e)},rT="object"==typeof CSS&&null!=CSS&&"number"in CSS;function iT(e){var t=null;for(var n in e){var r=e[n],i=typeof r;if("function"===i)t||(t={}),t[n]=r;else if("object"===i&&null!==r&&!Array.isArray(r)){var o=iT(r);o&&(t||(t={}),t[n]=o)}}return t}
|
|
17
17
|
/**
|
|
18
18
|
* A better abstraction over CSS.
|
|
19
19
|
*
|
|
@@ -39,14 +39,14 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,i,o,a,s,l,c,u,d,f=e.le
|
|
|
39
39
|
*
|
|
40
40
|
* This source code is licensed under the MIT license found in the
|
|
41
41
|
* LICENSE file in the root directory of this source tree.
|
|
42
|
-
*/function XN(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var ZN=new Set,JN={};function QN(e,t){eO(e,t),eO(e+"Capture",t)}function eO(e,t){for(JN[e]=t,e=0;e<t.length;e++)ZN.add(t[e])}var tO=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),nO=Object.prototype.hasOwnProperty,rO=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,iO={},oO={};function aO(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var sO={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){sO[e]=new aO(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];sO[t]=new aO(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){sO[e]=new aO(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){sO[e]=new aO(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){sO[e]=new aO(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){sO[e]=new aO(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){sO[e]=new aO(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){sO[e]=new aO(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){sO[e]=new aO(e,5,!1,e.toLowerCase(),null,!1,!1)}));var lO=/[\-:]([a-z])/g;function cO(e){return e[1].toUpperCase()}function uO(e,t,n,r){var i=sO.hasOwnProperty(t)?sO[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!nO.call(oO,e)||!nO.call(iO,e)&&(rO.test(e)?oO[e]=!0:(iO[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(lO,cO);sO[t]=new aO(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(lO,cO);sO[t]=new aO(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(lO,cO);sO[t]=new aO(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){sO[e]=new aO(e,1,!1,e.toLowerCase(),null,!1,!1)})),sO.xlinkHref=new aO("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){sO[e]=new aO(e,1,!1,e.toLowerCase(),null,!0,!0)}));var dO=KN.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,fO=Symbol.for("react.element"),hO=Symbol.for("react.portal"),pO=Symbol.for("react.fragment"),mO=Symbol.for("react.strict_mode"),gO=Symbol.for("react.profiler"),yO=Symbol.for("react.provider"),vO=Symbol.for("react.context"),bO=Symbol.for("react.forward_ref"),xO=Symbol.for("react.suspense"),wO=Symbol.for("react.suspense_list"),kO=Symbol.for("react.memo"),SO=Symbol.for("react.lazy"),CO=Symbol.for("react.offscreen"),MO=Symbol.iterator;function EO(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=MO&&e[MO]||e["@@iterator"])?e:null}var _O,DO=Object.assign;function qO(e){if(void 0===_O)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);_O=t&&t[1]||""}return"\n"+_O+e}var TO=!1;function RO(e,t){if(!e||TO)return"";TO=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var i=t.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{TO=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?qO(e):""}function NO(e){switch(e.tag){case 5:return qO(e.type);case 16:return qO("Lazy");case 13:return qO("Suspense");case 19:return qO("SuspenseList");case 0:case 2:case 15:return e=RO(e.type,!1);case 11:return e=RO(e.type.render,!1);case 1:return e=RO(e.type,!0);default:return""}}function OO(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case pO:return"Fragment";case hO:return"Portal";case gO:return"Profiler";case mO:return"StrictMode";case xO:return"Suspense";case wO:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case vO:return(e.displayName||"Context")+".Consumer";case yO:return(e._context.displayName||"Context")+".Provider";case bO:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case kO:return null!==(t=e.displayName||null)?t:OO(e.type)||"Memo";case SO:t=e._payload,e=e._init;try{return OO(e(t))}catch(e){}}return null}function AO(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return OO(t);case 8:return t===mO?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function PO(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function IO(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function LO(e){e._valueTracker||(e._valueTracker=function(e){var t=IO(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function zO(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=IO(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function FO(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function jO(e,t){var n=t.checked;return DO({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function $O(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=PO(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function HO(e,t){null!=(t=t.checked)&&uO(e,"checked",t,!1)}function VO(e,t){HO(e,t);var n=PO(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?UO(e,t.type,n):t.hasOwnProperty("defaultValue")&&UO(e,t.type,PO(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function BO(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function UO(e,t,n){"number"===t&&FO(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var WO=Array.isArray;function YO(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+PO(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function KO(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(XN(91));return DO({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function GO(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(XN(92));if(WO(n)){if(1<n.length)throw Error(XN(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:PO(n)}}function XO(e,t){var n=PO(t.value),r=PO(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ZO(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function JO(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function QO(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?JO(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var eA,tA=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((eA=eA||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=eA.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function nA(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var rA={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},iA=["Webkit","ms","Moz","O"];function oA(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||rA.hasOwnProperty(e)&&rA[e]?(""+t).trim():t+"px"}function aA(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=oA(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(rA).forEach((function(e){iA.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),rA[t]=rA[e]}))}));var sA=DO({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function lA(e,t){if(t){if(sA[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(XN(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(XN(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(XN(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(XN(62))}}function cA(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var uA=null;function dA(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var fA=null,hA=null,pA=null;function mA(e){if(e=lz(e)){if("function"!=typeof fA)throw Error(XN(280));var t=e.stateNode;t&&(t=uz(t),fA(e.stateNode,e.type,t))}}function gA(e){hA?pA?pA.push(e):pA=[e]:hA=e}function yA(){if(hA){var e=hA,t=pA;if(pA=hA=null,mA(e),t)for(e=0;e<t.length;e++)mA(t[e])}}function vA(e,t){return e(t)}function bA(){}var xA=!1;function wA(e,t,n){if(xA)return e(t,n);xA=!0;try{return vA(e,t,n)}finally{xA=!1,(null!==hA||null!==pA)&&(bA(),yA())}}function kA(e,t){var n=e.stateNode;if(null===n)return null;var r=uz(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(XN(231,t,typeof n));return n}var SA=!1;if(tO)try{var CA={};Object.defineProperty(CA,"passive",{get:function(){SA=!0}}),window.addEventListener("test",CA,CA),window.removeEventListener("test",CA,CA)}catch(qJ){SA=!1}function MA(e,t,n,r,i,o,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var EA=!1,_A=null,DA=!1,qA=null,TA={onError:function(e){EA=!0,_A=e}};function RA(e,t,n,r,i,o,a,s,l){EA=!1,_A=null,MA.apply(TA,arguments)}function NA(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function OA(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function AA(e){if(NA(e)!==e)throw Error(XN(188))}function PA(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=NA(e)))throw Error(XN(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return AA(i),e;if(o===r)return AA(i),t;o=o.sibling}throw Error(XN(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a)throw Error(XN(189))}}if(n.alternate!==r)throw Error(XN(190))}if(3!==n.tag)throw Error(XN(188));return n.stateNode.current===n?e:t}(e),null!==e?IA(e):null}function IA(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=IA(e);if(null!==t)return t;e=e.sibling}return null}var LA=GN.unstable_scheduleCallback,zA=GN.unstable_cancelCallback,FA=GN.unstable_shouldYield,jA=GN.unstable_requestPaint,$A=GN.unstable_now,HA=GN.unstable_getCurrentPriorityLevel,VA=GN.unstable_ImmediatePriority,BA=GN.unstable_UserBlockingPriority,UA=GN.unstable_NormalPriority,WA=GN.unstable_LowPriority,YA=GN.unstable_IdlePriority,KA=null,GA=null;var XA=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(ZA(e)/JA|0)|0},ZA=Math.log,JA=Math.LN2;var QA=64,eP=4194304;function tP(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function nP(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=tP(s):0!==(o&=a)&&(r=tP(o))}else 0!==(a=n&~i)?r=tP(a):0!==o&&(r=tP(o));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&0!=(4194240&o)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-XA(t)),r|=e[n],t&=~i;return r}function rP(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function iP(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function oP(){var e=QA;return 0==(4194240&(QA<<=1))&&(QA=64),e}function aP(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function sP(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-XA(t)]=n}function lP(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-XA(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var cP=0;function uP(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var dP,fP,hP,pP,mP,gP=!1,yP=[],vP=null,bP=null,xP=null,wP=new Map,kP=new Map,SP=[],CP="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function MP(e,t){switch(e){case"focusin":case"focusout":vP=null;break;case"dragenter":case"dragleave":bP=null;break;case"mouseover":case"mouseout":xP=null;break;case"pointerover":case"pointerout":wP.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":kP.delete(t.pointerId)}}function EP(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&(null!==(t=lz(t))&&fP(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function _P(e){var t=sz(e.target);if(null!==t){var n=NA(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=OA(n)))return e.blockedOn=t,void mP(e.priority,(function(){hP(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function DP(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=FP(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=lz(n))&&fP(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);uA=r,n.target.dispatchEvent(r),uA=null,t.shift()}return!0}function qP(e,t,n){DP(e)&&n.delete(t)}function TP(){gP=!1,null!==vP&&DP(vP)&&(vP=null),null!==bP&&DP(bP)&&(bP=null),null!==xP&&DP(xP)&&(xP=null),wP.forEach(qP),kP.forEach(qP)}function RP(e,t){e.blockedOn===t&&(e.blockedOn=null,gP||(gP=!0,GN.unstable_scheduleCallback(GN.unstable_NormalPriority,TP)))}function NP(e){function t(t){return RP(t,e)}if(0<yP.length){RP(yP[0],e);for(var n=1;n<yP.length;n++){var r=yP[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==vP&&RP(vP,e),null!==bP&&RP(bP,e),null!==xP&&RP(xP,e),wP.forEach(t),kP.forEach(t),n=0;n<SP.length;n++)(r=SP[n]).blockedOn===e&&(r.blockedOn=null);for(;0<SP.length&&null===(n=SP[0]).blockedOn;)_P(n),null===n.blockedOn&&SP.shift()}var OP=dO.ReactCurrentBatchConfig,AP=!0;function PP(e,t,n,r){var i=cP,o=OP.transition;OP.transition=null;try{cP=1,LP(e,t,n,r)}finally{cP=i,OP.transition=o}}function IP(e,t,n,r){var i=cP,o=OP.transition;OP.transition=null;try{cP=4,LP(e,t,n,r)}finally{cP=i,OP.transition=o}}function LP(e,t,n,r){if(AP){var i=FP(e,t,n,r);if(null===i)OL(e,t,r,zP,n),MP(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return vP=EP(vP,e,t,n,r,i),!0;case"dragenter":return bP=EP(bP,e,t,n,r,i),!0;case"mouseover":return xP=EP(xP,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return wP.set(o,EP(wP.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,kP.set(o,EP(kP.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(MP(e,r),4&t&&-1<CP.indexOf(e)){for(;null!==i;){var o=lz(i);if(null!==o&&dP(o),null===(o=FP(e,t,n,r))&&OL(e,t,r,zP,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else OL(e,t,r,null,n)}}var zP=null;function FP(e,t,n,r){if(zP=null,null!==(e=sz(e=dA(r))))if(null===(t=NA(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=OA(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return zP=e,null}function jP(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(HA()){case VA:return 1;case BA:return 4;case UA:case WA:return 16;case YA:return 536870912;default:return 16}default:return 16}}var $P=null,HP=null,VP=null;function BP(){if(VP)return VP;var e,t,n=HP,r=n.length,i="value"in $P?$P.value:$P.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return VP=i.slice(e,1<t?1-t:void 0)}function UP(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function WP(){return!0}function YP(){return!1}function KP(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?WP:YP,this.isPropagationStopped=YP,this}return DO(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=WP)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=WP)},persist:function(){},isPersistent:WP}),t}var GP,XP,ZP,JP={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},QP=KP(JP),eI=DO({},JP,{view:0,detail:0}),tI=KP(eI),nI=DO({},eI,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:pI,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ZP&&(ZP&&"mousemove"===e.type?(GP=e.screenX-ZP.screenX,XP=e.screenY-ZP.screenY):XP=GP=0,ZP=e),GP)},movementY:function(e){return"movementY"in e?e.movementY:XP}}),rI=KP(nI),iI=KP(DO({},nI,{dataTransfer:0})),oI=KP(DO({},eI,{relatedTarget:0})),aI=KP(DO({},JP,{animationName:0,elapsedTime:0,pseudoElement:0})),sI=DO({},JP,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),lI=KP(sI),cI=KP(DO({},JP,{data:0})),uI={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},dI={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},fI={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function hI(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=fI[e])&&!!t[e]}function pI(){return hI}var mI=DO({},eI,{key:function(e){if(e.key){var t=uI[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=UP(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?dI[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:pI,charCode:function(e){return"keypress"===e.type?UP(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?UP(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),gI=KP(mI),yI=KP(DO({},nI,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),vI=KP(DO({},eI,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:pI})),bI=KP(DO({},JP,{propertyName:0,elapsedTime:0,pseudoElement:0})),xI=DO({},nI,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),wI=KP(xI),kI=[9,13,27,32],SI=tO&&"CompositionEvent"in window,CI=null;tO&&"documentMode"in document&&(CI=document.documentMode);var MI=tO&&"TextEvent"in window&&!CI,EI=tO&&(!SI||CI&&8<CI&&11>=CI),_I=String.fromCharCode(32),DI=!1;function qI(e,t){switch(e){case"keyup":return-1!==kI.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function TI(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var RI=!1;var NI={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function OI(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!NI[e.type]:"textarea"===t}function AI(e,t,n,r){gA(r),0<(t=PL(t,"onChange")).length&&(n=new QP("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var PI=null,II=null;function LI(e){_L(e,0)}function zI(e){if(zO(cz(e)))return e}function FI(e,t){if("change"===e)return t}var jI=!1;if(tO){var $I;if(tO){var HI="oninput"in document;if(!HI){var VI=document.createElement("div");VI.setAttribute("oninput","return;"),HI="function"==typeof VI.oninput}$I=HI}else $I=!1;jI=$I&&(!document.documentMode||9<document.documentMode)}function BI(){PI&&(PI.detachEvent("onpropertychange",UI),II=PI=null)}function UI(e){if("value"===e.propertyName&&zI(II)){var t=[];AI(t,II,e,dA(e)),wA(LI,t)}}function WI(e,t,n){"focusin"===e?(BI(),II=n,(PI=t).attachEvent("onpropertychange",UI)):"focusout"===e&&BI()}function YI(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return zI(II)}function KI(e,t){if("click"===e)return zI(t)}function GI(e,t){if("input"===e||"change"===e)return zI(t)}var XI="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function ZI(e,t){if(XI(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!nO.call(t,i)||!XI(e[i],t[i]))return!1}return!0}function JI(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function QI(e,t){var n,r=JI(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=JI(r)}}function eL(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?eL(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function tL(){for(var e=window,t=FO();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=FO((e=t.contentWindow).document)}return t}function nL(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function rL(e){var t=tL(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&eL(n.ownerDocument.documentElement,n)){if(null!==r&&nL(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=QI(n,o);var a=QI(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var iL=tO&&"documentMode"in document&&11>=document.documentMode,oL=null,aL=null,sL=null,lL=!1;function cL(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;lL||null==oL||oL!==FO(r)||("selectionStart"in(r=oL)&&nL(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},sL&&ZI(sL,r)||(sL=r,0<(r=PL(aL,"onSelect")).length&&(t=new QP("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=oL)))}function uL(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var dL={animationend:uL("Animation","AnimationEnd"),animationiteration:uL("Animation","AnimationIteration"),animationstart:uL("Animation","AnimationStart"),transitionend:uL("Transition","TransitionEnd")},fL={},hL={};function pL(e){if(fL[e])return fL[e];if(!dL[e])return e;var t,n=dL[e];for(t in n)if(n.hasOwnProperty(t)&&t in hL)return fL[e]=n[t];return e}tO&&(hL=document.createElement("div").style,"AnimationEvent"in window||(delete dL.animationend.animation,delete dL.animationiteration.animation,delete dL.animationstart.animation),"TransitionEvent"in window||delete dL.transitionend.transition);var mL=pL("animationend"),gL=pL("animationiteration"),yL=pL("animationstart"),vL=pL("transitionend"),bL=new Map,xL="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function wL(e,t){bL.set(e,t),QN(t,[e])}for(var kL=0;kL<xL.length;kL++){var SL=xL[kL];wL(SL.toLowerCase(),"on"+(SL[0].toUpperCase()+SL.slice(1)))}wL(mL,"onAnimationEnd"),wL(gL,"onAnimationIteration"),wL(yL,"onAnimationStart"),wL("dblclick","onDoubleClick"),wL("focusin","onFocus"),wL("focusout","onBlur"),wL(vL,"onTransitionEnd"),eO("onMouseEnter",["mouseout","mouseover"]),eO("onMouseLeave",["mouseout","mouseover"]),eO("onPointerEnter",["pointerout","pointerover"]),eO("onPointerLeave",["pointerout","pointerover"]),QN("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),QN("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),QN("onBeforeInput",["compositionend","keypress","textInput","paste"]),QN("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),QN("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),QN("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var CL="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ML=new Set("cancel close invalid load scroll toggle".split(" ").concat(CL));function EL(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,o,a,s,l){if(RA.apply(this,arguments),EA){if(!EA)throw Error(XN(198));var c=_A;EA=!1,_A=null,DA||(DA=!0,qA=c)}}(r,t,void 0,e),e.currentTarget=null}function _L(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;EL(i,s,c),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;EL(i,s,c),o=l}}}if(DA)throw e=qA,DA=!1,qA=null,e}function DL(e,t){var n=t[iz];void 0===n&&(n=t[iz]=new Set);var r=e+"__bubble";n.has(r)||(NL(t,e,2,!1),n.add(r))}function qL(e,t,n){var r=0;t&&(r|=4),NL(n,e,r,t)}var TL="_reactListening"+Math.random().toString(36).slice(2);function RL(e){if(!e[TL]){e[TL]=!0,ZN.forEach((function(t){"selectionchange"!==t&&(ML.has(t)||qL(t,!1,e),qL(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[TL]||(t[TL]=!0,qL("selectionchange",!1,t))}}function NL(e,t,n,r){switch(jP(t)){case 1:var i=PP;break;case 4:i=IP;break;default:i=LP}n=i.bind(null,t,n,e),i=void 0,!SA||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function OL(e,t,n,r,i){var o=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=sz(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}wA((function(){var r=o,i=dA(n),a=[];e:{var s=bL.get(e);if(void 0!==s){var l=QP,c=e;switch(e){case"keypress":if(0===UP(n))break e;case"keydown":case"keyup":l=gI;break;case"focusin":c="focus",l=oI;break;case"focusout":c="blur",l=oI;break;case"beforeblur":case"afterblur":l=oI;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=rI;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=iI;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=vI;break;case mL:case gL:case yL:l=aI;break;case vL:l=bI;break;case"scroll":l=tI;break;case"wheel":l=wI;break;case"copy":case"cut":case"paste":l=lI;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=yI}var u=0!=(4&t),d=!u&&"scroll"===e,f=u?null!==s?s+"Capture":null:s;u=[];for(var h,p=r;null!==p;){var m=(h=p).stateNode;if(5===h.tag&&null!==m&&(h=m,null!==f&&(null!=(m=kA(p,f))&&u.push(AL(p,m,h)))),d)break;p=p.return}0<u.length&&(s=new l(s,c,null,n,i),a.push({event:s,listeners:u}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===uA||!(c=n.relatedTarget||n.fromElement)||!sz(c)&&!c[rz])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?sz(c):null)&&(c!==(d=NA(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=rI,m="onMouseLeave",f="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(u=yI,m="onPointerLeave",f="onPointerEnter",p="pointer"),d=null==l?s:cz(l),h=null==c?s:cz(c),(s=new u(m,p+"leave",l,n,i)).target=d,s.relatedTarget=h,m=null,sz(i)===r&&((u=new u(f,p+"enter",c,n,i)).target=h,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(f=c,p=0,h=u=l;h;h=IL(h))p++;for(h=0,m=f;m;m=IL(m))h++;for(;0<p-h;)u=IL(u),p--;for(;0<h-p;)f=IL(f),h--;for(;p--;){if(u===f||null!==f&&u===f.alternate)break e;u=IL(u),f=IL(f)}u=null}else u=null;null!==l&&LL(a,s,l,u,!1),null!==c&&null!==d&&LL(a,d,c,u,!0)}if("select"===(l=(s=r?cz(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=FI;else if(OI(s))if(jI)g=GI;else{g=YI;var y=WI}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=KI);switch(g&&(g=g(e,r))?AI(a,g,n,i):(y&&y(e,s,r),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&UO(s,"number",s.value)),y=r?cz(r):window,e){case"focusin":(OI(y)||"true"===y.contentEditable)&&(oL=y,aL=r,sL=null);break;case"focusout":sL=aL=oL=null;break;case"mousedown":lL=!0;break;case"contextmenu":case"mouseup":case"dragend":lL=!1,cL(a,n,i);break;case"selectionchange":if(iL)break;case"keydown":case"keyup":cL(a,n,i)}var v;if(SI)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else RI?qI(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(EI&&"ko"!==n.locale&&(RI||"onCompositionStart"!==b?"onCompositionEnd"===b&&RI&&(v=BP()):(HP="value"in($P=i)?$P.value:$P.textContent,RI=!0)),0<(y=PL(r,b)).length&&(b=new cI(b,e,null,n,i),a.push({event:b,listeners:y}),v?b.data=v:null!==(v=TI(n))&&(b.data=v))),(v=MI?function(e,t){switch(e){case"compositionend":return TI(t);case"keypress":return 32!==t.which?null:(DI=!0,_I);case"textInput":return(e=t.data)===_I&&DI?null:e;default:return null}}(e,n):function(e,t){if(RI)return"compositionend"===e||!SI&&qI(e,t)?(e=BP(),VP=HP=$P=null,RI=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return EI&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=PL(r,"onBeforeInput")).length&&(i=new cI("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=v))}_L(a,t)}))}function AL(e,t,n){return{instance:e,listener:t,currentTarget:n}}function PL(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=kA(e,n))&&r.unshift(AL(e,o,i)),null!=(o=kA(e,t))&&r.push(AL(e,o,i))),e=e.return}return r}function IL(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function LL(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,i?null!=(l=kA(n,o))&&a.unshift(AL(n,l,s)):i||null!=(l=kA(n,o))&&a.push(AL(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var zL=/\r\n?/g,FL=/\u0000|\uFFFD/g;function jL(e){return("string"==typeof e?e:""+e).replace(zL,"\n").replace(FL,"")}function $L(e,t,n){if(t=jL(t),jL(e)!==t&&n)throw Error(XN(425))}function HL(){}var VL=null,BL=null;function UL(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var WL="function"==typeof setTimeout?setTimeout:void 0,YL="function"==typeof clearTimeout?clearTimeout:void 0,KL="function"==typeof Promise?Promise:void 0,GL="function"==typeof queueMicrotask?queueMicrotask:void 0!==KL?function(e){return KL.resolve(null).then(e).catch(XL)}:WL;function XL(e){setTimeout((function(){throw e}))}function ZL(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void NP(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);NP(t)}function JL(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function QL(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var ez=Math.random().toString(36).slice(2),tz="__reactFiber$"+ez,nz="__reactProps$"+ez,rz="__reactContainer$"+ez,iz="__reactEvents$"+ez,oz="__reactListeners$"+ez,az="__reactHandles$"+ez;function sz(e){var t=e[tz];if(t)return t;for(var n=e.parentNode;n;){if(t=n[rz]||n[tz]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=QL(e);null!==e;){if(n=e[tz])return n;e=QL(e)}return t}n=(e=n).parentNode}return null}function lz(e){return!(e=e[tz]||e[rz])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function cz(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(XN(33))}function uz(e){return e[nz]||null}var dz=[],fz=-1;function hz(e){return{current:e}}function pz(e){0>fz||(e.current=dz[fz],dz[fz]=null,fz--)}function mz(e,t){fz++,dz[fz]=e.current,e.current=t}var gz={},yz=hz(gz),vz=hz(!1),bz=gz;function xz(e,t){var n=e.type.contextTypes;if(!n)return gz;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function wz(e){return null!=(e=e.childContextTypes)}function kz(){pz(vz),pz(yz)}function Sz(e,t,n){if(yz.current!==gz)throw Error(XN(168));mz(yz,t),mz(vz,n)}function Cz(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(XN(108,AO(e)||"Unknown",i));return DO({},n,r)}function Mz(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||gz,bz=yz.current,mz(yz,e),mz(vz,vz.current),!0}function Ez(e,t,n){var r=e.stateNode;if(!r)throw Error(XN(169));n?(e=Cz(e,t,bz),r.__reactInternalMemoizedMergedChildContext=e,pz(vz),pz(yz),mz(yz,e)):pz(vz),mz(vz,n)}var _z=null,Dz=!1,qz=!1;function Tz(e){null===_z?_z=[e]:_z.push(e)}function Rz(){if(!qz&&null!==_z){qz=!0;var e=0,t=cP;try{var n=_z;for(cP=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}_z=null,Dz=!1}catch(t){throw null!==_z&&(_z=_z.slice(e+1)),LA(VA,Rz),t}finally{cP=t,qz=!1}}return null}var Nz=[],Oz=0,Az=null,Pz=0,Iz=[],Lz=0,zz=null,Fz=1,jz="";function $z(e,t){Nz[Oz++]=Pz,Nz[Oz++]=Az,Az=e,Pz=t}function Hz(e,t,n){Iz[Lz++]=Fz,Iz[Lz++]=jz,Iz[Lz++]=zz,zz=e;var r=Fz;e=jz;var i=32-XA(r)-1;r&=~(1<<i),n+=1;var o=32-XA(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Fz=1<<32-XA(t)+i|n<<i|r,jz=o+e}else Fz=1<<o|n<<i|r,jz=e}function Vz(e){null!==e.return&&($z(e,1),Hz(e,1,0))}function Bz(e){for(;e===Az;)Az=Nz[--Oz],Nz[Oz]=null,Pz=Nz[--Oz],Nz[Oz]=null;for(;e===zz;)zz=Iz[--Lz],Iz[Lz]=null,jz=Iz[--Lz],Iz[Lz]=null,Fz=Iz[--Lz],Iz[Lz]=null}var Uz=null,Wz=null,Yz=!1,Kz=null;function Gz(e,t){var n=xV(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function Xz(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,Uz=e,Wz=JL(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,Uz=e,Wz=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==zz?{id:Fz,overflow:jz}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=xV(18,null,null,0)).stateNode=t,n.return=e,e.child=n,Uz=e,Wz=null,!0);default:return!1}}function Zz(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function Jz(e){if(Yz){var t=Wz;if(t){var n=t;if(!Xz(e,t)){if(Zz(e))throw Error(XN(418));t=JL(n.nextSibling);var r=Uz;t&&Xz(e,t)?Gz(r,n):(e.flags=-4097&e.flags|2,Yz=!1,Uz=e)}}else{if(Zz(e))throw Error(XN(418));e.flags=-4097&e.flags|2,Yz=!1,Uz=e}}}function Qz(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Uz=e}function eF(e){if(e!==Uz)return!1;if(!Yz)return Qz(e),Yz=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!UL(e.type,e.memoizedProps)),t&&(t=Wz)){if(Zz(e))throw tF(),Error(XN(418));for(;t;)Gz(e,t),t=JL(t.nextSibling)}if(Qz(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(XN(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Wz=JL(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Wz=null}}else Wz=Uz?JL(e.stateNode.nextSibling):null;return!0}function tF(){for(var e=Wz;e;)e=JL(e.nextSibling)}function nF(){Wz=Uz=null,Yz=!1}function rF(e){null===Kz?Kz=[e]:Kz.push(e)}var iF=dO.ReactCurrentBatchConfig;function oF(e,t){if(e&&e.defaultProps){for(var n in t=DO({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var aF=hz(null),sF=null,lF=null,cF=null;function uF(){cF=lF=sF=null}function dF(e){var t=aF.current;pz(aF),e._currentValue=t}function fF(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function hF(e,t){sF=e,cF=lF=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(l$=!0),e.firstContext=null)}function pF(e){var t=e._currentValue;if(cF!==e)if(e={context:e,memoizedValue:t,next:null},null===lF){if(null===sF)throw Error(XN(308));lF=e,sF.dependencies={lanes:0,firstContext:e}}else lF=lF.next=e;return t}var mF=null;function gF(e){null===mF?mF=[e]:mF.push(e)}function yF(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,gF(t)):(n.next=i.next,i.next=n),t.interleaved=n,vF(e,r)}function vF(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var bF=!1;function xF(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function wF(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function kF(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function SF(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&yH)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,vF(e,n)}return null===(i=r.interleaved)?(t.next=t,gF(r)):(t.next=i.next,i.next=t),r.interleaved=t,vF(e,n)}function CF(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,lP(e,n)}}function MF(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function EF(e,t,n,r){var i=e.updateQueue;bF=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?o=c:a.next=c,a=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==o){var d=i.baseState;for(a=0,u=c=l=null,s=o;;){var f=s.lane,h=s.eventTime;if((r&f)===f){null!==u&&(u=u.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,m=s;switch(f=t,h=n,m.tag){case 1:if("function"==typeof(p=m.payload)){d=p.call(h,d,f);break e}d=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null==(f="function"==typeof(p=m.payload)?p.call(h,d,f):p))break e;d=DO({},d,f);break e;case 2:bF=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=i.effects)?i.effects=[s]:f.push(s))}else h={eventTime:h,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=h,l=d):u=u.next=h,a|=f;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(f=s).next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}if(null===u&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);MH|=a,e.lanes=a,e.memoizedState=d}}function _F(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(XN(191,i));i.call(r)}}}var DF=(new KN.Component).refs;function qF(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:DO({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var TF={isMounted:function(e){return!!(e=e._reactInternals)&&NA(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=VH(),i=BH(e),o=kF(r,i);o.payload=t,null!=n&&(o.callback=n),null!==(t=SF(e,o,i))&&(UH(t,e,i,r),CF(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=VH(),i=BH(e),o=kF(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=SF(e,o,i))&&(UH(t,e,i,r),CF(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=VH(),r=BH(e),i=kF(n,r);i.tag=2,null!=t&&(i.callback=t),null!==(t=SF(e,i,r))&&(UH(t,e,r,n),CF(t,e,r))}};function RF(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!ZI(n,r)||!ZI(i,o))}function NF(e,t,n){var r=!1,i=gz,o=t.contextType;return"object"==typeof o&&null!==o?o=pF(o):(i=wz(t)?bz:yz.current,o=(r=null!=(r=t.contextTypes))?xz(e,i):gz),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=TF,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function OF(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&TF.enqueueReplaceState(t,t.state,null)}function AF(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=DF,xF(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=pF(o):(o=wz(t)?bz:yz.current,i.context=xz(e,o)),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(qF(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&TF.enqueueReplaceState(i,i.state,null),EF(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function PF(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(XN(309));var r=n.stateNode}if(!r)throw Error(XN(147,e));var i=r,o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=i.refs;t===DF&&(t=i.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!=typeof e)throw Error(XN(284));if(!n._owner)throw Error(XN(290,e))}return e}function IF(e,t){throw e=Object.prototype.toString.call(t),Error(XN(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function LF(e){return(0,e._init)(e._payload)}function zF(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=kV(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=EV(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function l(e,t,n,r){var o=n.type;return o===pO?u(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===SO&&LF(o)===t.type)?((r=i(t,n.props)).ref=PF(e,t,n),r.return=e,r):((r=SV(n.type,n.key,n.props,null,e.mode,r)).ref=PF(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=_V(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function u(e,t,n,r,o){return null===t||7!==t.tag?((t=CV(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=EV(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case fO:return(n=SV(t.type,t.key,t.props,null,e.mode,n)).ref=PF(e,null,t),n.return=e,n;case hO:return(t=_V(t,e.mode,n)).return=e,t;case SO:return d(e,(0,t._init)(t._payload),n)}if(WO(t)||EO(t))return(t=CV(t,e.mode,n,null)).return=e,t;IF(e,t)}return null}function f(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case fO:return n.key===i?l(e,t,n,r):null;case hO:return n.key===i?c(e,t,n,r):null;case SO:return f(e,t,(i=n._init)(n._payload),r)}if(WO(n)||EO(n))return null!==i?null:u(e,t,n,r,null);IF(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case fO:return l(t,e=e.get(null===r.key?n:r.key)||null,r,i);case hO:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case SO:return h(e,t,n,(0,r._init)(r._payload),i)}if(WO(r)||EO(r))return u(t,e=e.get(n)||null,r,i,null);IF(t,r)}return null}function p(i,a,s,l){for(var c=null,u=null,p=a,m=a=0,g=null;null!==p&&m<s.length;m++){p.index>m?(g=p,p=null):g=p.sibling;var y=f(i,p,s[m],l);if(null===y){null===p&&(p=g);break}e&&p&&null===y.alternate&&t(i,p),a=o(y,a,m),null===u?c=y:u.sibling=y,u=y,p=g}if(m===s.length)return n(i,p),Yz&&$z(i,m),c;if(null===p){for(;m<s.length;m++)null!==(p=d(i,s[m],l))&&(a=o(p,a,m),null===u?c=p:u.sibling=p,u=p);return Yz&&$z(i,m),c}for(p=r(i,p);m<s.length;m++)null!==(g=h(p,i,m,s[m],l))&&(e&&null!==g.alternate&&p.delete(null===g.key?m:g.key),a=o(g,a,m),null===u?c=g:u.sibling=g,u=g);return e&&p.forEach((function(e){return t(i,e)})),Yz&&$z(i,m),c}function m(i,a,s,l){var c=EO(s);if("function"!=typeof c)throw Error(XN(150));if(null==(s=c.call(s)))throw Error(XN(151));for(var u=c=null,p=a,m=a=0,g=null,y=s.next();null!==p&&!y.done;m++,y=s.next()){p.index>m?(g=p,p=null):g=p.sibling;var v=f(i,p,y.value,l);if(null===v){null===p&&(p=g);break}e&&p&&null===v.alternate&&t(i,p),a=o(v,a,m),null===u?c=v:u.sibling=v,u=v,p=g}if(y.done)return n(i,p),Yz&&$z(i,m),c;if(null===p){for(;!y.done;m++,y=s.next())null!==(y=d(i,y.value,l))&&(a=o(y,a,m),null===u?c=y:u.sibling=y,u=y);return Yz&&$z(i,m),c}for(p=r(i,p);!y.done;m++,y=s.next())null!==(y=h(p,i,m,y.value,l))&&(e&&null!==y.alternate&&p.delete(null===y.key?m:y.key),a=o(y,a,m),null===u?c=y:u.sibling=y,u=y);return e&&p.forEach((function(e){return t(i,e)})),Yz&&$z(i,m),c}return function e(r,o,s,l){if("object"==typeof s&&null!==s&&s.type===pO&&null===s.key&&(s=s.props.children),"object"==typeof s&&null!==s){switch(s.$$typeof){case fO:e:{for(var c=s.key,u=o;null!==u;){if(u.key===c){if((c=s.type)===pO){if(7===u.tag){n(r,u.sibling),(o=i(u,s.props.children)).return=r,r=o;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===SO&&LF(c)===u.type){n(r,u.sibling),(o=i(u,s.props)).ref=PF(r,u,s),o.return=r,r=o;break e}n(r,u);break}t(r,u),u=u.sibling}s.type===pO?((o=CV(s.props.children,r.mode,l,s.key)).return=r,r=o):((l=SV(s.type,s.key,s.props,null,r.mode,l)).ref=PF(r,o,s),l.return=r,r=l)}return a(r);case hO:e:{for(u=s.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===s.containerInfo&&o.stateNode.implementation===s.implementation){n(r,o.sibling),(o=i(o,s.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=_V(s,r.mode,l)).return=r,r=o}return a(r);case SO:return e(r,o,(u=s._init)(s._payload),l)}if(WO(s))return p(r,o,s,l);if(EO(s))return m(r,o,s,l);IF(r,s)}return"string"==typeof s&&""!==s||"number"==typeof s?(s=""+s,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,s)).return=r,r=o):(n(r,o),(o=EV(s,r.mode,l)).return=r,r=o),a(r)):n(r,o)}}var FF=zF(!0),jF=zF(!1),$F={},HF=hz($F),VF=hz($F),BF=hz($F);function UF(e){if(e===$F)throw Error(XN(174));return e}function WF(e,t){switch(mz(BF,t),mz(VF,e),mz(HF,$F),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:QO(null,"");break;default:t=QO(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}pz(HF),mz(HF,t)}function YF(){pz(HF),pz(VF),pz(BF)}function KF(e){UF(BF.current);var t=UF(HF.current),n=QO(t,e.type);t!==n&&(mz(VF,e),mz(HF,n))}function GF(e){VF.current===e&&(pz(HF),pz(VF))}var XF=hz(0);function ZF(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var JF=[];function QF(){for(var e=0;e<JF.length;e++)JF[e]._workInProgressVersionPrimary=null;JF.length=0}var ej=dO.ReactCurrentDispatcher,tj=dO.ReactCurrentBatchConfig,nj=0,rj=null,ij=null,oj=null,aj=!1,sj=!1,lj=0,cj=0;function uj(){throw Error(XN(321))}function dj(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!XI(e[n],t[n]))return!1;return!0}function fj(e,t,n,r,i,o){if(nj=o,rj=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ej.current=null===e||null===e.memoizedState?Gj:Xj,e=n(r,i),sj){o=0;do{if(sj=!1,lj=0,25<=o)throw Error(XN(301));o+=1,oj=ij=null,t.updateQueue=null,ej.current=Zj,e=n(r,i)}while(sj)}if(ej.current=Kj,t=null!==ij&&null!==ij.next,nj=0,oj=ij=rj=null,aj=!1,t)throw Error(XN(300));return e}function hj(){var e=0!==lj;return lj=0,e}function pj(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===oj?rj.memoizedState=oj=e:oj=oj.next=e,oj}function mj(){if(null===ij){var e=rj.alternate;e=null!==e?e.memoizedState:null}else e=ij.next;var t=null===oj?rj.memoizedState:oj.next;if(null!==t)oj=t,ij=e;else{if(null===e)throw Error(XN(310));e={memoizedState:(ij=e).memoizedState,baseState:ij.baseState,baseQueue:ij.baseQueue,queue:ij.queue,next:null},null===oj?rj.memoizedState=oj=e:oj=oj.next=e}return oj}function gj(e,t){return"function"==typeof t?t(e):t}function yj(e){var t=mj(),n=t.queue;if(null===n)throw Error(XN(311));n.lastRenderedReducer=e;var r=ij,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(null!==i){o=i.next,r=r.baseState;var s=a=null,l=null,c=o;do{var u=c.lane;if((nj&u)===u)null!==l&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===l?(s=l=d,a=r):l=l.next=d,rj.lanes|=u,MH|=u}c=c.next}while(null!==c&&c!==o);null===l?a=r:l.next=s,XI(r,t.memoizedState)||(l$=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{o=i.lane,rj.lanes|=o,MH|=o,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function vj(e){var t=mj(),n=t.queue;if(null===n)throw Error(XN(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var a=i=i.next;do{o=e(o,a.action),a=a.next}while(a!==i);XI(o,t.memoizedState)||(l$=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function bj(){}function xj(e,t){var n=rj,r=mj(),i=t(),o=!XI(r.memoizedState,i);if(o&&(r.memoizedState=i,l$=!0),r=r.queue,Nj(Sj.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||null!==oj&&1&oj.memoizedState.tag){if(n.flags|=2048,_j(9,kj.bind(null,n,r,i,t),void 0,null),null===vH)throw Error(XN(349));0!=(30&nj)||wj(n,t,i)}return i}function wj(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=rj.updateQueue)?(t={lastEffect:null,stores:null},rj.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function kj(e,t,n,r){t.value=n,t.getSnapshot=r,Cj(t)&&Mj(e)}function Sj(e,t,n){return n((function(){Cj(t)&&Mj(e)}))}function Cj(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!XI(e,n)}catch(e){return!0}}function Mj(e){var t=vF(e,1);null!==t&&UH(t,e,1,-1)}function Ej(e){var t=pj();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:gj,lastRenderedState:e},t.queue=e,e=e.dispatch=Bj.bind(null,rj,e),[t.memoizedState,e]}function _j(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=rj.updateQueue)?(t={lastEffect:null,stores:null},rj.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Dj(){return mj().memoizedState}function qj(e,t,n,r){var i=pj();rj.flags|=e,i.memoizedState=_j(1|t,n,void 0,void 0===r?null:r)}function Tj(e,t,n,r){var i=mj();r=void 0===r?null:r;var o=void 0;if(null!==ij){var a=ij.memoizedState;if(o=a.destroy,null!==r&&dj(r,a.deps))return void(i.memoizedState=_j(t,n,o,r))}rj.flags|=e,i.memoizedState=_j(1|t,n,o,r)}function Rj(e,t){return qj(8390656,8,e,t)}function Nj(e,t){return Tj(2048,8,e,t)}function Oj(e,t){return Tj(4,2,e,t)}function Aj(e,t){return Tj(4,4,e,t)}function Pj(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ij(e,t,n){return n=null!=n?n.concat([e]):null,Tj(4,4,Pj.bind(null,t,e),n)}function Lj(){}function zj(e,t){var n=mj();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&dj(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Fj(e,t){var n=mj();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&dj(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function jj(e,t,n){return 0==(21&nj)?(e.baseState&&(e.baseState=!1,l$=!0),e.memoizedState=n):(XI(n,t)||(n=oP(),rj.lanes|=n,MH|=n,e.baseState=!0),t)}function $j(e,t){var n=cP;cP=0!==n&&4>n?n:4,e(!0);var r=tj.transition;tj.transition={};try{e(!1),t()}finally{cP=n,tj.transition=r}}function Hj(){return mj().memoizedState}function Vj(e,t,n){var r=BH(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Uj(e))Wj(t,n);else if(null!==(n=yF(e,t,n,r))){UH(n,e,r,VH()),Yj(n,t,r)}}function Bj(e,t,n){var r=BH(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Uj(e))Wj(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,XI(s,a)){var l=t.interleaved;return null===l?(i.next=i,gF(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(e){}null!==(n=yF(e,t,i,r))&&(UH(n,e,r,i=VH()),Yj(n,t,r))}}function Uj(e){var t=e.alternate;return e===rj||null!==t&&t===rj}function Wj(e,t){sj=aj=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Yj(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,lP(e,n)}}var Kj={readContext:pF,useCallback:uj,useContext:uj,useEffect:uj,useImperativeHandle:uj,useInsertionEffect:uj,useLayoutEffect:uj,useMemo:uj,useReducer:uj,useRef:uj,useState:uj,useDebugValue:uj,useDeferredValue:uj,useTransition:uj,useMutableSource:uj,useSyncExternalStore:uj,useId:uj,unstable_isNewReconciler:!1},Gj={readContext:pF,useCallback:function(e,t){return pj().memoizedState=[e,void 0===t?null:t],e},useContext:pF,useEffect:Rj,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,qj(4194308,4,Pj.bind(null,t,e),n)},useLayoutEffect:function(e,t){return qj(4194308,4,e,t)},useInsertionEffect:function(e,t){return qj(4,2,e,t)},useMemo:function(e,t){var n=pj();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=pj();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Vj.bind(null,rj,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},pj().memoizedState=e},useState:Ej,useDebugValue:Lj,useDeferredValue:function(e){return pj().memoizedState=e},useTransition:function(){var e=Ej(!1),t=e[0];return e=$j.bind(null,e[1]),pj().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=rj,i=pj();if(Yz){if(void 0===n)throw Error(XN(407));n=n()}else{if(n=t(),null===vH)throw Error(XN(349));0!=(30&nj)||wj(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Rj(Sj.bind(null,r,o,e),[e]),r.flags|=2048,_j(9,kj.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=pj(),t=vH.identifierPrefix;if(Yz){var n=jz;t=":"+t+"R"+(n=(Fz&~(1<<32-XA(Fz)-1)).toString(32)+n),0<(n=lj++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=cj++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Xj={readContext:pF,useCallback:zj,useContext:pF,useEffect:Nj,useImperativeHandle:Ij,useInsertionEffect:Oj,useLayoutEffect:Aj,useMemo:Fj,useReducer:yj,useRef:Dj,useState:function(){return yj(gj)},useDebugValue:Lj,useDeferredValue:function(e){return jj(mj(),ij.memoizedState,e)},useTransition:function(){return[yj(gj)[0],mj().memoizedState]},useMutableSource:bj,useSyncExternalStore:xj,useId:Hj,unstable_isNewReconciler:!1},Zj={readContext:pF,useCallback:zj,useContext:pF,useEffect:Nj,useImperativeHandle:Ij,useInsertionEffect:Oj,useLayoutEffect:Aj,useMemo:Fj,useReducer:vj,useRef:Dj,useState:function(){return vj(gj)},useDebugValue:Lj,useDeferredValue:function(e){var t=mj();return null===ij?t.memoizedState=e:jj(t,ij.memoizedState,e)},useTransition:function(){return[vj(gj)[0],mj().memoizedState]},useMutableSource:bj,useSyncExternalStore:xj,useId:Hj,unstable_isNewReconciler:!1};function Jj(e,t){try{var n="",r=t;do{n+=NO(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i,digest:null}}function Qj(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function e$(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var t$="function"==typeof WeakMap?WeakMap:Map;function n$(e,t,n){(n=kF(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){OH||(OH=!0,AH=r),e$(0,t)},n}function r$(e,t,n){(n=kF(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){e$(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){e$(0,t),"function"!=typeof r&&(null===PH?PH=new Set([this]):PH.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function i$(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new t$;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=pV.bind(null,e,t,n),t.then(e,e))}function o$(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function a$(e,t,n,r,i){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=kF(-1,1)).tag=2,SF(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var s$=dO.ReactCurrentOwner,l$=!1;function c$(e,t,n,r){t.child=null===e?jF(t,null,n,r):FF(t,e.child,n,r)}function u$(e,t,n,r,i){n=n.render;var o=t.ref;return hF(t,i),r=fj(e,t,n,r,o,i),n=hj(),null===e||l$?(Yz&&n&&Vz(t),t.flags|=1,c$(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,O$(e,t,i))}function d$(e,t,n,r,i){if(null===e){var o=n.type;return"function"!=typeof o||wV(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=SV(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,f$(e,t,o,r,i))}if(o=e.child,0==(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:ZI)(a,r)&&e.ref===t.ref)return O$(e,t,i)}return t.flags|=1,(e=kV(o,r)).ref=t.ref,e.return=t,t.child=e}function f$(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(ZI(o,r)&&e.ref===t.ref){if(l$=!1,t.pendingProps=r=o,0==(e.lanes&i))return t.lanes=e.lanes,O$(e,t,i);0!=(131072&e.flags)&&(l$=!0)}}return m$(e,t,n,r,i)}function h$(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},mz(kH,wH),wH|=n;else{if(0==(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,mz(kH,wH),wH|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,mz(kH,wH),wH|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,mz(kH,wH),wH|=r;return c$(e,t,i,n),t.child}function p$(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function m$(e,t,n,r,i){var o=wz(n)?bz:yz.current;return o=xz(t,o),hF(t,i),n=fj(e,t,n,r,o,i),r=hj(),null===e||l$?(Yz&&r&&Vz(t),t.flags|=1,c$(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,O$(e,t,i))}function g$(e,t,n,r,i){if(wz(n)){var o=!0;Mz(t)}else o=!1;if(hF(t,i),null===t.stateNode)N$(e,t),NF(t,n,r),AF(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"==typeof c&&null!==c?c=pF(c):c=xz(t,c=wz(n)?bz:yz.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==c)&&OF(t,a,r,c),bF=!1;var f=t.memoizedState;a.state=f,EF(t,r,a,i),l=t.memoizedState,s!==r||f!==l||vz.current||bF?("function"==typeof u&&(qF(t,n,u,r),l=t.memoizedState),(s=bF||RF(t,n,s,r,f,l,c))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,wF(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:oF(t.type,s),a.props=c,d=t.pendingProps,f=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=pF(l):l=xz(t,l=wz(n)?bz:yz.current);var h=n.getDerivedStateFromProps;(u="function"==typeof h||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==l)&&OF(t,a,r,l),bF=!1,f=t.memoizedState,a.state=f,EF(t,r,a,i);var p=t.memoizedState;s!==d||f!==p||vz.current||bF?("function"==typeof h&&(qF(t,n,h,r),p=t.memoizedState),(c=bF||RF(t,n,c,r,f,p,l)||!1)?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=l,r=c):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return y$(e,t,n,r,o,i)}function y$(e,t,n,r,i,o){p$(e,t);var a=0!=(128&t.flags);if(!r&&!a)return i&&Ez(t,n,!1),O$(e,t,o);r=t.stateNode,s$.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=FF(t,e.child,null,o),t.child=FF(t,null,s,o)):c$(e,t,s,o),t.memoizedState=r.state,i&&Ez(t,n,!0),t.child}function v$(e){var t=e.stateNode;t.pendingContext?Sz(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Sz(0,t.context,!1),WF(e,t.containerInfo)}function b$(e,t,n,r,i){return nF(),rF(i),t.flags|=256,c$(e,t,n,r),t.child}var x$,w$,k$,S$,C$={dehydrated:null,treeContext:null,retryLane:0};function M$(e){return{baseLanes:e,cachePool:null,transitions:null}}function E$(e,t,n){var r,i=t.pendingProps,o=XF.current,a=!1,s=0!=(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&0!=(2&o)),r?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(o|=1),mz(XF,1&o),null===e)return Jz(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(s=i.children,e=i.fallback,a?(i=t.mode,a=t.child,s={mode:"hidden",children:s},0==(1&i)&&null!==a?(a.childLanes=0,a.pendingProps=s):a=MV(s,i,0,null),e=CV(e,i,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=M$(n),t.memoizedState=C$,e):_$(t,s));if(null!==(o=e.memoizedState)&&null!==(r=o.dehydrated))return function(e,t,n,r,i,o,a){if(n)return 256&t.flags?(t.flags&=-257,D$(e,t,a,r=Qj(Error(XN(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=MV({mode:"visible",children:r.children},i,0,null),(o=CV(o,i,a,null)).flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,0!=(1&t.mode)&&FF(t,e.child,null,a),t.child.memoizedState=M$(a),t.memoizedState=C$,o);if(0==(1&t.mode))return D$(e,t,a,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var s=r.dgst;return r=s,D$(e,t,a,r=Qj(o=Error(XN(419)),r,void 0))}if(s=0!=(a&e.childLanes),l$||s){if(null!==(r=vH)){switch(a&-a){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!=(i&(r.suspendedLanes|a))?0:i)&&i!==o.retryLane&&(o.retryLane=i,vF(e,i),UH(r,e,i,-1))}return iV(),D$(e,t,a,r=Qj(Error(XN(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=gV.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Wz=JL(i.nextSibling),Uz=t,Yz=!0,Kz=null,null!==e&&(Iz[Lz++]=Fz,Iz[Lz++]=jz,Iz[Lz++]=zz,Fz=e.id,jz=e.overflow,zz=t),t=_$(t,r.children),t.flags|=4096,t)}(e,t,s,i,r,o,n);if(a){a=i.fallback,s=t.mode,r=(o=e.child).sibling;var l={mode:"hidden",children:i.children};return 0==(1&s)&&t.child!==o?((i=t.child).childLanes=0,i.pendingProps=l,t.deletions=null):(i=kV(o,l)).subtreeFlags=14680064&o.subtreeFlags,null!==r?a=kV(r,a):(a=CV(a,s,n,null)).flags|=2,a.return=t,i.return=t,i.sibling=a,t.child=i,i=a,a=t.child,s=null===(s=e.child.memoizedState)?M$(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},a.memoizedState=s,a.childLanes=e.childLanes&~n,t.memoizedState=C$,i}return e=(a=e.child).sibling,i=kV(a,{mode:"visible",children:i.children}),0==(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function _$(e,t){return(t=MV({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function D$(e,t,n,r){return null!==r&&rF(r),FF(t,e.child,null,n),(e=_$(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function q$(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),fF(e.return,t,n)}function T$(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function R$(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(c$(e,t,r.children,n),0!=(2&(r=XF.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&q$(e,n,t);else if(19===e.tag)q$(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(mz(XF,r),0==(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===ZF(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),T$(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===ZF(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}T$(t,!0,n,null,o);break;case"together":T$(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function N$(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function O$(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),MH|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(XN(153));if(null!==t.child){for(n=kV(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=kV(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function A$(e,t){if(!Yz)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function P$(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function I$(e,t,n){var r=t.pendingProps;switch(Bz(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return P$(t),null;case 1:case 17:return wz(t.type)&&kz(),P$(t),null;case 3:return r=t.stateNode,YF(),pz(vz),pz(yz),QF(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(eF(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==Kz&&(GH(Kz),Kz=null))),w$(e,t),P$(t),null;case 5:GF(t);var i=UF(BF.current);if(n=t.type,null!==e&&null!=t.stateNode)k$(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(XN(166));return P$(t),null}if(e=UF(HF.current),eF(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[tz]=t,r[nz]=o,e=0!=(1&t.mode),n){case"dialog":DL("cancel",r),DL("close",r);break;case"iframe":case"object":case"embed":DL("load",r);break;case"video":case"audio":for(i=0;i<CL.length;i++)DL(CL[i],r);break;case"source":DL("error",r);break;case"img":case"image":case"link":DL("error",r),DL("load",r);break;case"details":DL("toggle",r);break;case"input":$O(r,o),DL("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},DL("invalid",r);break;case"textarea":GO(r,o),DL("invalid",r)}for(var a in lA(n,o),i=null,o)if(o.hasOwnProperty(a)){var s=o[a];"children"===a?"string"==typeof s?r.textContent!==s&&(!0!==o.suppressHydrationWarning&&$L(r.textContent,s,e),i=["children",s]):"number"==typeof s&&r.textContent!==""+s&&(!0!==o.suppressHydrationWarning&&$L(r.textContent,s,e),i=["children",""+s]):JN.hasOwnProperty(a)&&null!=s&&"onScroll"===a&&DL("scroll",r)}switch(n){case"input":LO(r),BO(r,o,!0);break;case"textarea":LO(r),ZO(r);break;case"select":case"option":break;default:"function"==typeof o.onClick&&(r.onclick=HL)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{a=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=JO(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=a.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),"select"===n&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[tz]=t,e[nz]=r,x$(e,t,!1,!1),t.stateNode=e;e:{switch(a=cA(n,r),n){case"dialog":DL("cancel",e),DL("close",e),i=r;break;case"iframe":case"object":case"embed":DL("load",e),i=r;break;case"video":case"audio":for(i=0;i<CL.length;i++)DL(CL[i],e);i=r;break;case"source":DL("error",e),i=r;break;case"img":case"image":case"link":DL("error",e),DL("load",e),i=r;break;case"details":DL("toggle",e),i=r;break;case"input":$O(e,r),i=jO(e,r),DL("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=DO({},r,{value:void 0}),DL("invalid",e);break;case"textarea":GO(e,r),i=KO(e,r),DL("invalid",e)}for(o in lA(n,i),s=i)if(s.hasOwnProperty(o)){var l=s[o];"style"===o?aA(e,l):"dangerouslySetInnerHTML"===o?null!=(l=l?l.__html:void 0)&&tA(e,l):"children"===o?"string"==typeof l?("textarea"!==n||""!==l)&&nA(e,l):"number"==typeof l&&nA(e,""+l):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(JN.hasOwnProperty(o)?null!=l&&"onScroll"===o&&DL("scroll",e):null!=l&&uO(e,o,l,a))}switch(n){case"input":LO(e),BO(e,r,!1);break;case"textarea":LO(e),ZO(e);break;case"option":null!=r.value&&e.setAttribute("value",""+PO(r.value));break;case"select":e.multiple=!!r.multiple,null!=(o=r.value)?YO(e,!!r.multiple,o,!1):null!=r.defaultValue&&YO(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=HL)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return P$(t),null;case 6:if(e&&null!=t.stateNode)S$(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(XN(166));if(n=UF(BF.current),UF(HF.current),eF(t)){if(r=t.stateNode,n=t.memoizedProps,r[tz]=t,(o=r.nodeValue!==n)&&null!==(e=Uz))switch(e.tag){case 3:$L(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&$L(r.nodeValue,n,0!=(1&e.mode))}o&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[tz]=t,t.stateNode=r}return P$(t),null;case 13:if(pz(XF),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(Yz&&null!==Wz&&0!=(1&t.mode)&&0==(128&t.flags))tF(),nF(),t.flags|=98560,o=!1;else if(o=eF(t),null!==r&&null!==r.dehydrated){if(null===e){if(!o)throw Error(XN(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(XN(317));o[tz]=t}else nF(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;P$(t),o=!1}else null!==Kz&&(GH(Kz),Kz=null),o=!0;if(!o)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&XF.current)?0===SH&&(SH=3):iV())),null!==t.updateQueue&&(t.flags|=4),P$(t),null);case 4:return YF(),w$(e,t),null===e&&RL(t.stateNode.containerInfo),P$(t),null;case 10:return dF(t.type._context),P$(t),null;case 19:if(pz(XF),null===(o=t.memoizedState))return P$(t),null;if(r=0!=(128&t.flags),null===(a=o.rendering))if(r)A$(o,!1);else{if(0!==SH||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(a=ZF(e))){for(t.flags|=128,A$(o,!1),null!==(r=a.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(o=n).flags&=14680066,null===(a=o.alternate)?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return mz(XF,1&XF.current|2),t.child}e=e.sibling}null!==o.tail&&$A()>RH&&(t.flags|=128,r=!0,A$(o,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ZF(a))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),A$(o,!0),null===o.tail&&"hidden"===o.tailMode&&!a.alternate&&!Yz)return P$(t),null}else 2*$A()-o.renderingStartTime>RH&&1073741824!==n&&(t.flags|=128,r=!0,A$(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(null!==(n=o.last)?n.sibling=a:t.child=a,o.last=a)}return null!==o.tail?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=$A(),t.sibling=null,n=XF.current,mz(XF,r?1&n|2:1&n),t):(P$(t),null);case 22:case 23:return eV(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&wH)&&(P$(t),6&t.subtreeFlags&&(t.flags|=8192)):P$(t),null;case 24:case 25:return null}throw Error(XN(156,t.tag))}function L$(e,t){switch(Bz(t),t.tag){case 1:return wz(t.type)&&kz(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return YF(),pz(vz),pz(yz),QF(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return GF(t),null;case 13:if(pz(XF),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(XN(340));nF()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return pz(XF),null;case 4:return YF(),null;case 10:return dF(t.type._context),null;case 22:case 23:return eV(),null;default:return null}}x$=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},w$=function(){},k$=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,UF(HF.current);var o,a=null;switch(n){case"input":i=jO(e,i),r=jO(e,r),a=[];break;case"select":i=DO({},i,{value:void 0}),r=DO({},r,{value:void 0}),a=[];break;case"textarea":i=KO(e,i),r=KO(e,r),a=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=HL)}for(c in lA(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var s=i[c];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(JN.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var l=r[c];if(s=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&l!==s&&(null!=l||null!=s))if("style"===c)if(s){for(o in s)!s.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&s[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(a||(a=[]),a.push(c,n)),n=l;else"dangerouslySetInnerHTML"===c?(l=l?l.__html:void 0,s=s?s.__html:void 0,null!=l&&s!==l&&(a=a||[]).push(c,l)):"children"===c?"string"!=typeof l&&"number"!=typeof l||(a=a||[]).push(c,""+l):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(JN.hasOwnProperty(c)?(null!=l&&"onScroll"===c&&DL("scroll",e),a||s===l||(a=[])):(a=a||[]).push(c,l))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},S$=function(e,t,n,r){n!==r&&(t.flags|=4)};var z$=!1,F$=!1,j$="function"==typeof WeakSet?WeakSet:Set,$$=null;function H$(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){hV(e,t,n)}else n.current=null}function V$(e,t,n){try{n()}catch(n){hV(e,t,n)}}var B$=!1;function U$(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&V$(t,n,o)}i=i.next}while(i!==r)}}function W$(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Y$(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function K$(e){var t=e.alternate;null!==t&&(e.alternate=null,K$(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[tz],delete t[nz],delete t[iz],delete t[oz],delete t[az])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function G$(e){return 5===e.tag||3===e.tag||4===e.tag}function X$(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||G$(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Z$(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=HL));else if(4!==r&&null!==(e=e.child))for(Z$(e,t,n),e=e.sibling;null!==e;)Z$(e,t,n),e=e.sibling}function J$(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(J$(e,t,n),e=e.sibling;null!==e;)J$(e,t,n),e=e.sibling}var Q$=null,eH=!1;function tH(e,t,n){for(n=n.child;null!==n;)nH(e,t,n),n=n.sibling}function nH(e,t,n){if(GA&&"function"==typeof GA.onCommitFiberUnmount)try{GA.onCommitFiberUnmount(KA,n)}catch(e){}switch(n.tag){case 5:F$||H$(n,t);case 6:var r=Q$,i=eH;Q$=null,tH(e,t,n),eH=i,null!==(Q$=r)&&(eH?(e=Q$,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):Q$.removeChild(n.stateNode));break;case 18:null!==Q$&&(eH?(e=Q$,n=n.stateNode,8===e.nodeType?ZL(e.parentNode,n):1===e.nodeType&&ZL(e,n),NP(e)):ZL(Q$,n.stateNode));break;case 4:r=Q$,i=eH,Q$=n.stateNode.containerInfo,eH=!0,tH(e,t,n),Q$=r,eH=i;break;case 0:case 11:case 14:case 15:if(!F$&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(0!=(2&o)||0!=(4&o))&&V$(n,t,a),i=i.next}while(i!==r)}tH(e,t,n);break;case 1:if(!F$&&(H$(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){hV(n,t,e)}tH(e,t,n);break;case 21:tH(e,t,n);break;case 22:1&n.mode?(F$=(r=F$)||null!==n.memoizedState,tH(e,t,n),F$=r):tH(e,t,n);break;default:tH(e,t,n)}}function rH(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new j$),t.forEach((function(t){var r=yV.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function iH(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,a=t,s=a;e:for(;null!==s;){switch(s.tag){case 5:Q$=s.stateNode,eH=!1;break e;case 3:case 4:Q$=s.stateNode.containerInfo,eH=!0;break e}s=s.return}if(null===Q$)throw Error(XN(160));nH(o,a,i),Q$=null,eH=!1;var l=i.alternate;null!==l&&(l.return=null),i.return=null}catch(e){hV(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)oH(t,e),t=t.sibling}function oH(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(iH(t,e),aH(e),4&r){try{U$(3,e,e.return),W$(3,e)}catch(t){hV(e,e.return,t)}try{U$(5,e,e.return)}catch(t){hV(e,e.return,t)}}break;case 1:iH(t,e),aH(e),512&r&&null!==n&&H$(n,n.return);break;case 5:if(iH(t,e),aH(e),512&r&&null!==n&&H$(n,n.return),32&e.flags){var i=e.stateNode;try{nA(i,"")}catch(t){hV(e,e.return,t)}}if(4&r&&null!=(i=e.stateNode)){var o=e.memoizedProps,a=null!==n?n.memoizedProps:o,s=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===s&&"radio"===o.type&&null!=o.name&&HO(i,o),cA(s,a);var c=cA(s,o);for(a=0;a<l.length;a+=2){var u=l[a],d=l[a+1];"style"===u?aA(i,d):"dangerouslySetInnerHTML"===u?tA(i,d):"children"===u?nA(i,d):uO(i,u,d,c)}switch(s){case"input":VO(i,o);break;case"textarea":XO(i,o);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var h=o.value;null!=h?YO(i,!!o.multiple,h,!1):f!==!!o.multiple&&(null!=o.defaultValue?YO(i,!!o.multiple,o.defaultValue,!0):YO(i,!!o.multiple,o.multiple?[]:"",!1))}i[nz]=o}catch(t){hV(e,e.return,t)}}break;case 6:if(iH(t,e),aH(e),4&r){if(null===e.stateNode)throw Error(XN(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(t){hV(e,e.return,t)}}break;case 3:if(iH(t,e),aH(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{NP(t.containerInfo)}catch(t){hV(e,e.return,t)}break;case 4:default:iH(t,e),aH(e);break;case 13:iH(t,e),aH(e),8192&(i=e.child).flags&&(o=null!==i.memoizedState,i.stateNode.isHidden=o,!o||null!==i.alternate&&null!==i.alternate.memoizedState||(TH=$A())),4&r&&rH(e);break;case 22:if(u=null!==n&&null!==n.memoizedState,1&e.mode?(F$=(c=F$)||u,iH(t,e),F$=c):iH(t,e),aH(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!u&&0!=(1&e.mode))for($$=e,u=e.child;null!==u;){for(d=$$=u;null!==$$;){switch(h=(f=$$).child,f.tag){case 0:case 11:case 14:case 15:U$(4,f,f.return);break;case 1:H$(f,f.return);var p=f.stateNode;if("function"==typeof p.componentWillUnmount){r=f,n=f.return;try{t=r,p.props=t.memoizedProps,p.state=t.memoizedState,p.componentWillUnmount()}catch(e){hV(r,n,e)}}break;case 5:H$(f,f.return);break;case 22:if(null!==f.memoizedState){uH(d);continue}}null!==h?(h.return=f,$$=h):uH(d)}u=u.sibling}e:for(u=null,d=e;;){if(5===d.tag){if(null===u){u=d;try{i=d.stateNode,c?"function"==typeof(o=i.style).setProperty?o.setProperty("display","none","important"):o.display="none":(s=d.stateNode,a=null!=(l=d.memoizedProps.style)&&l.hasOwnProperty("display")?l.display:null,s.style.display=oA("display",a))}catch(t){hV(e,e.return,t)}}}else if(6===d.tag){if(null===u)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(t){hV(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:iH(t,e),aH(e),4&r&&rH(e);case 21:}}function aH(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(G$(n)){var r=n;break e}n=n.return}throw Error(XN(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(nA(i,""),r.flags&=-33),J$(e,X$(e),i);break;case 3:case 4:var o=r.stateNode.containerInfo;Z$(e,X$(e),o);break;default:throw Error(XN(161))}}catch(t){hV(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function sH(e,t,n){$$=e,lH(e)}function lH(e,t,n){for(var r=0!=(1&e.mode);null!==$$;){var i=$$,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||z$;if(!a){var s=i.alternate,l=null!==s&&null!==s.memoizedState||F$;s=z$;var c=F$;if(z$=a,(F$=l)&&!c)for($$=i;null!==$$;)l=(a=$$).child,22===a.tag&&null!==a.memoizedState?dH(i):null!==l?(l.return=a,$$=l):dH(i);for(;null!==o;)$$=o,lH(o),o=o.sibling;$$=i,z$=s,F$=c}cH(e)}else 0!=(8772&i.subtreeFlags)&&null!==o?(o.return=i,$$=o):cH(e)}}function cH(e){for(;null!==$$;){var t=$$;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:F$||W$(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!F$)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:oF(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;null!==o&&_F(t,o,r);break;case 3:var a=t.updateQueue;if(null!==a){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}_F(t,a,n)}break;case 5:var s=t.stateNode;if(null===n&&4&t.flags){n=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var u=c.memoizedState;if(null!==u){var d=u.dehydrated;null!==d&&NP(d)}}}break;default:throw Error(XN(163))}F$||512&t.flags&&Y$(t)}catch(e){hV(t,t.return,e)}}if(t===e){$$=null;break}if(null!==(n=t.sibling)){n.return=t.return,$$=n;break}$$=t.return}}function uH(e){for(;null!==$$;){var t=$$;if(t===e){$$=null;break}var n=t.sibling;if(null!==n){n.return=t.return,$$=n;break}$$=t.return}}function dH(e){for(;null!==$$;){var t=$$;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{W$(4,t)}catch(e){hV(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(e){hV(t,i,e)}}var o=t.return;try{Y$(t)}catch(e){hV(t,o,e)}break;case 5:var a=t.return;try{Y$(t)}catch(e){hV(t,a,e)}}}catch(e){hV(t,t.return,e)}if(t===e){$$=null;break}var s=t.sibling;if(null!==s){s.return=t.return,$$=s;break}$$=t.return}}var fH,hH=Math.ceil,pH=dO.ReactCurrentDispatcher,mH=dO.ReactCurrentOwner,gH=dO.ReactCurrentBatchConfig,yH=0,vH=null,bH=null,xH=0,wH=0,kH=hz(0),SH=0,CH=null,MH=0,EH=0,_H=0,DH=null,qH=null,TH=0,RH=1/0,NH=null,OH=!1,AH=null,PH=null,IH=!1,LH=null,zH=0,FH=0,jH=null,$H=-1,HH=0;function VH(){return 0!=(6&yH)?$A():-1!==$H?$H:$H=$A()}function BH(e){return 0==(1&e.mode)?1:0!=(2&yH)&&0!==xH?xH&-xH:null!==iF.transition?(0===HH&&(HH=oP()),HH):0!==(e=cP)?e:e=void 0===(e=window.event)?16:jP(e.type)}function UH(e,t,n,r){if(50<FH)throw FH=0,jH=null,Error(XN(185));sP(e,n,r),0!=(2&yH)&&e===vH||(e===vH&&(0==(2&yH)&&(EH|=n),4===SH&&XH(e,xH)),WH(e,r),1===n&&0===yH&&0==(1&t.mode)&&(RH=$A()+500,Dz&&Rz()))}function WH(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-XA(o),s=1<<a,l=i[a];-1===l?0!=(s&n)&&0==(s&r)||(i[a]=rP(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=nP(e,e===vH?xH:0);if(0===r)null!==n&&zA(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&zA(n),1===t)0===e.tag?function(e){Dz=!0,Tz(e)}(ZH.bind(null,e)):Tz(ZH.bind(null,e)),GL((function(){0==(6&yH)&&Rz()})),n=null;else{switch(uP(r)){case 1:n=VA;break;case 4:n=BA;break;case 16:default:n=UA;break;case 536870912:n=YA}n=vV(n,YH.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function YH(e,t){if($H=-1,HH=0,0!=(6&yH))throw Error(XN(327));var n=e.callbackNode;if(dV()&&e.callbackNode!==n)return null;var r=nP(e,e===vH?xH:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=oV(e,r);else{t=r;var i=yH;yH|=2;var o=rV();for(vH===e&&xH===t||(NH=null,RH=$A()+500,tV(e,t));;)try{sV();break}catch(t){nV(e,t)}uF(),pH.current=o,yH=i,null!==bH?t=0:(vH=null,xH=0,t=SH)}if(0!==t){if(2===t&&(0!==(i=iP(e))&&(r=i,t=KH(e,i))),1===t)throw n=CH,tV(e,0),XH(e,r),WH(e,$A()),n;if(6===t)XH(e,r);else{if(i=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!XI(o(),i))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)&&(2===(t=oV(e,r))&&(0!==(o=iP(e))&&(r=o,t=KH(e,o))),1===t))throw n=CH,tV(e,0),XH(e,r),WH(e,$A()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(XN(345));case 2:case 5:uV(e,qH,NH);break;case 3:if(XH(e,r),(130023424&r)===r&&10<(t=TH+500-$A())){if(0!==nP(e,0))break;if(((i=e.suspendedLanes)&r)!==r){VH(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=WL(uV.bind(null,e,qH,NH),t);break}uV(e,qH,NH);break;case 4:if(XH(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-XA(r);o=1<<a,(a=t[a])>i&&(i=a),r&=~o}if(r=i,10<(r=(120>(r=$A()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*hH(r/1960))-r)){e.timeoutHandle=WL(uV.bind(null,e,qH,NH),r);break}uV(e,qH,NH);break;default:throw Error(XN(329))}}}return WH(e,$A()),e.callbackNode===n?YH.bind(null,e):null}function KH(e,t){var n=DH;return e.current.memoizedState.isDehydrated&&(tV(e,t).flags|=256),2!==(e=oV(e,t))&&(t=qH,qH=n,null!==t&&GH(t)),e}function GH(e){null===qH?qH=e:qH.push.apply(qH,e)}function XH(e,t){for(t&=~_H,t&=~EH,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-XA(t),r=1<<n;e[n]=-1,t&=~r}}function ZH(e){if(0!=(6&yH))throw Error(XN(327));dV();var t=nP(e,0);if(0==(1&t))return WH(e,$A()),null;var n=oV(e,t);if(0!==e.tag&&2===n){var r=iP(e);0!==r&&(t=r,n=KH(e,r))}if(1===n)throw n=CH,tV(e,0),XH(e,t),WH(e,$A()),n;if(6===n)throw Error(XN(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,uV(e,qH,NH),WH(e,$A()),null}function JH(e,t){var n=yH;yH|=1;try{return e(t)}finally{0===(yH=n)&&(RH=$A()+500,Dz&&Rz())}}function QH(e){null!==LH&&0===LH.tag&&0==(6&yH)&&dV();var t=yH;yH|=1;var n=gH.transition,r=cP;try{if(gH.transition=null,cP=1,e)return e()}finally{cP=r,gH.transition=n,0==(6&(yH=t))&&Rz()}}function eV(){wH=kH.current,pz(kH)}function tV(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,YL(n)),null!==bH)for(n=bH.return;null!==n;){var r=n;switch(Bz(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&kz();break;case 3:YF(),pz(vz),pz(yz),QF();break;case 5:GF(r);break;case 4:YF();break;case 13:case 19:pz(XF);break;case 10:dF(r.type._context);break;case 22:case 23:eV()}n=n.return}if(vH=e,bH=e=kV(e.current,null),xH=wH=t,SH=0,CH=null,_H=EH=MH=0,qH=DH=null,null!==mF){for(t=0;t<mF.length;t++)if(null!==(r=(n=mF[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}mF=null}return e}function nV(e,t){for(;;){var n=bH;try{if(uF(),ej.current=Kj,aj){for(var r=rj.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}aj=!1}if(nj=0,oj=ij=rj=null,sj=!1,lj=0,mH.current=null,null===n||null===n.return){SH=1,CH=t,bH=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=xH,s.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var c=l,u=s,d=u.tag;if(0==(1&u.mode)&&(0===d||11===d||15===d)){var f=u.alternate;f?(u.updateQueue=f.updateQueue,u.memoizedState=f.memoizedState,u.lanes=f.lanes):(u.updateQueue=null,u.memoizedState=null)}var h=o$(a);if(null!==h){h.flags&=-257,a$(h,a,s,0,t),1&h.mode&&i$(o,c,t),l=c;var p=(t=h).updateQueue;if(null===p){var m=new Set;m.add(l),t.updateQueue=m}else p.add(l);break e}if(0==(1&t)){i$(o,c,t),iV();break e}l=Error(XN(426))}else if(Yz&&1&s.mode){var g=o$(a);if(null!==g){0==(65536&g.flags)&&(g.flags|=256),a$(g,a,s,0,t),rF(Jj(l,s));break e}}o=l=Jj(l,s),4!==SH&&(SH=2),null===DH?DH=[o]:DH.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t,MF(o,n$(0,l,t));break e;case 1:s=l;var y=o.type,v=o.stateNode;if(0==(128&o.flags)&&("function"==typeof y.getDerivedStateFromError||null!==v&&"function"==typeof v.componentDidCatch&&(null===PH||!PH.has(v)))){o.flags|=65536,t&=-t,o.lanes|=t,MF(o,r$(o,s,t));break e}}o=o.return}while(null!==o)}cV(n)}catch(e){t=e,bH===n&&null!==n&&(bH=n=n.return);continue}break}}function rV(){var e=pH.current;return pH.current=Kj,null===e?Kj:e}function iV(){0!==SH&&3!==SH&&2!==SH||(SH=4),null===vH||0==(268435455&MH)&&0==(268435455&EH)||XH(vH,xH)}function oV(e,t){var n=yH;yH|=2;var r=rV();for(vH===e&&xH===t||(NH=null,tV(e,t));;)try{aV();break}catch(t){nV(e,t)}if(uF(),yH=n,pH.current=r,null!==bH)throw Error(XN(261));return vH=null,xH=0,SH}function aV(){for(;null!==bH;)lV(bH)}function sV(){for(;null!==bH&&!FA();)lV(bH)}function lV(e){var t=fH(e.alternate,e,wH);e.memoizedProps=e.pendingProps,null===t?cV(e):bH=t,mH.current=null}function cV(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=I$(n,t,wH)))return void(bH=n)}else{if(null!==(n=L$(n,t)))return n.flags&=32767,void(bH=n);if(null===e)return SH=6,void(bH=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(bH=t);bH=t=e}while(null!==t);0===SH&&(SH=5)}function uV(e,t,n){var r=cP,i=gH.transition;try{gH.transition=null,cP=1,function(e,t,n,r){do{dV()}while(null!==LH);if(0!=(6&yH))throw Error(XN(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(XN(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-XA(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,o),e===vH&&(bH=vH=null,xH=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||IH||(IH=!0,vV(UA,(function(){return dV(),null}))),o=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||o){o=gH.transition,gH.transition=null;var a=cP;cP=1;var s=yH;yH|=4,mH.current=null,function(e,t){if(VL=AP,nL(e=tL())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch(e){n=null;break e}var a=0,s=-1,l=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var h;d!==n||0!==i&&3!==d.nodeType||(s=a+i),d!==o||0!==r&&3!==d.nodeType||(l=a+r),3===d.nodeType&&(a+=d.nodeValue.length),null!==(h=d.firstChild);)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++c===i&&(s=a),f===o&&++u===r&&(l=a),null!==(h=d.nextSibling))break;f=(d=f).parentNode}d=h}n=-1===s||-1===l?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(BL={focusedElem:e,selectionRange:n},AP=!1,$$=t;null!==$$;)if(e=(t=$$).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,$$=e;else for(;null!==$$;){t=$$;try{var p=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==p){var m=p.memoizedProps,g=p.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?m:oF(t.type,m),g);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var b=t.stateNode.containerInfo;1===b.nodeType?b.textContent="":9===b.nodeType&&b.documentElement&&b.removeChild(b.documentElement);break;default:throw Error(XN(163))}}catch(e){hV(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,$$=e;break}$$=t.return}p=B$,B$=!1}(e,n),oH(n,e),rL(BL),AP=!!VL,BL=VL=null,e.current=n,sH(n),jA(),yH=s,cP=a,gH.transition=o}else e.current=n;if(IH&&(IH=!1,LH=e,zH=i),o=e.pendingLanes,0===o&&(PH=null),function(e){if(GA&&"function"==typeof GA.onCommitFiberRoot)try{GA.onCommitFiberRoot(KA,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),WH(e,$A()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(OH)throw OH=!1,e=AH,AH=null,e;0!=(1&zH)&&0!==e.tag&&dV(),o=e.pendingLanes,0!=(1&o)?e===jH?FH++:(FH=0,jH=e):FH=0,Rz()}(e,t,n,r)}finally{gH.transition=i,cP=r}return null}function dV(){if(null!==LH){var e=uP(zH),t=gH.transition,n=cP;try{if(gH.transition=null,cP=16>e?16:e,null===LH)var r=!1;else{if(e=LH,LH=null,zH=0,0!=(6&yH))throw Error(XN(331));var i=yH;for(yH|=4,$$=e.current;null!==$$;){var o=$$,a=o.child;if(0!=(16&$$.flags)){var s=o.deletions;if(null!==s){for(var l=0;l<s.length;l++){var c=s[l];for($$=c;null!==$$;){var u=$$;switch(u.tag){case 0:case 11:case 15:U$(8,u,o)}var d=u.child;if(null!==d)d.return=u,$$=d;else for(;null!==$$;){var f=(u=$$).sibling,h=u.return;if(K$(u),u===c){$$=null;break}if(null!==f){f.return=h,$$=f;break}$$=h}}}var p=o.alternate;if(null!==p){var m=p.child;if(null!==m){p.child=null;do{var g=m.sibling;m.sibling=null,m=g}while(null!==m)}}$$=o}}if(0!=(2064&o.subtreeFlags)&&null!==a)a.return=o,$$=a;else e:for(;null!==$$;){if(0!=(2048&(o=$$).flags))switch(o.tag){case 0:case 11:case 15:U$(9,o,o.return)}var y=o.sibling;if(null!==y){y.return=o.return,$$=y;break e}$$=o.return}}var v=e.current;for($$=v;null!==$$;){var b=(a=$$).child;if(0!=(2064&a.subtreeFlags)&&null!==b)b.return=a,$$=b;else e:for(a=v;null!==$$;){if(0!=(2048&(s=$$).flags))try{switch(s.tag){case 0:case 11:case 15:W$(9,s)}}catch(e){hV(s,s.return,e)}if(s===a){$$=null;break e}var x=s.sibling;if(null!==x){x.return=s.return,$$=x;break e}$$=s.return}}if(yH=i,Rz(),GA&&"function"==typeof GA.onPostCommitFiberRoot)try{GA.onPostCommitFiberRoot(KA,e)}catch(e){}r=!0}return r}finally{cP=n,gH.transition=t}}return!1}function fV(e,t,n){e=SF(e,t=n$(0,t=Jj(n,t),1),1),t=VH(),null!==e&&(sP(e,1,t),WH(e,t))}function hV(e,t,n){if(3===e.tag)fV(e,e,n);else for(;null!==t;){if(3===t.tag){fV(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===PH||!PH.has(r))){t=SF(t,e=r$(t,e=Jj(n,e),1),1),e=VH(),null!==t&&(sP(t,1,e),WH(t,e));break}}t=t.return}}function pV(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=VH(),e.pingedLanes|=e.suspendedLanes&n,vH===e&&(xH&n)===n&&(4===SH||3===SH&&(130023424&xH)===xH&&500>$A()-TH?tV(e,0):_H|=n),WH(e,t)}function mV(e,t){0===t&&(0==(1&e.mode)?t=1:(t=eP,0==(130023424&(eP<<=1))&&(eP=4194304)));var n=VH();null!==(e=vF(e,t))&&(sP(e,t,n),WH(e,n))}function gV(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),mV(e,n)}function yV(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(XN(314))}null!==r&&r.delete(t),mV(e,n)}function vV(e,t){return LA(e,t)}function bV(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xV(e,t,n,r){return new bV(e,t,n,r)}function wV(e){return!(!(e=e.prototype)||!e.isReactComponent)}function kV(e,t){var n=e.alternate;return null===n?((n=xV(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function SV(e,t,n,r,i,o){var a=2;if(r=e,"function"==typeof e)wV(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case pO:return CV(n.children,i,o,t);case mO:a=8,i|=8;break;case gO:return(e=xV(12,n,t,2|i)).elementType=gO,e.lanes=o,e;case xO:return(e=xV(13,n,t,i)).elementType=xO,e.lanes=o,e;case wO:return(e=xV(19,n,t,i)).elementType=wO,e.lanes=o,e;case CO:return MV(n,i,o,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case yO:a=10;break e;case vO:a=9;break e;case bO:a=11;break e;case kO:a=14;break e;case SO:a=16,r=null;break e}throw Error(XN(130,null==e?e:typeof e,""))}return(t=xV(a,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function CV(e,t,n,r){return(e=xV(7,e,r,t)).lanes=n,e}function MV(e,t,n,r){return(e=xV(22,e,r,t)).elementType=CO,e.lanes=n,e.stateNode={isHidden:!1},e}function EV(e,t,n){return(e=xV(6,e,null,t)).lanes=n,e}function _V(e,t,n){return(t=xV(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function DV(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=aP(0),this.expirationTimes=aP(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=aP(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function qV(e,t,n,r,i,o,a,s,l){return e=new DV(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=xV(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},xF(o),e}function TV(e){if(!e)return gz;e:{if(NA(e=e._reactInternals)!==e||1!==e.tag)throw Error(XN(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(wz(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(XN(171))}if(1===e.tag){var n=e.type;if(wz(n))return Cz(e,n,t)}return t}function RV(e,t,n,r,i,o,a,s,l){return(e=qV(n,r,!0,e,0,o,0,s,l)).context=TV(null),n=e.current,(o=kF(r=VH(),i=BH(n))).callback=null!=t?t:null,SF(n,o,i),e.current.lanes=i,sP(e,i,r),WH(e,r),e}function NV(e,t,n,r){var i=t.current,o=VH(),a=BH(i);return n=TV(n),null===t.context?t.context=n:t.pendingContext=n,(t=kF(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=SF(i,t,a))&&(UH(e,i,a,o),CF(e,i,a)),a}function OV(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function AV(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function PV(e,t){AV(e,t),(e=e.alternate)&&AV(e,t)}fH=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||vz.current)l$=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return l$=!1,function(e,t,n){switch(t.tag){case 3:v$(t),nF();break;case 5:KF(t);break;case 1:wz(t.type)&&Mz(t);break;case 4:WF(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;mz(aF,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(mz(XF,1&XF.current),t.flags|=128,null):0!=(n&t.child.childLanes)?E$(e,t,n):(mz(XF,1&XF.current),null!==(e=O$(e,t,n))?e.sibling:null);mz(XF,1&XF.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return R$(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),mz(XF,XF.current),r)break;return null;case 22:case 23:return t.lanes=0,h$(e,t,n)}return O$(e,t,n)}(e,t,n);l$=0!=(131072&e.flags)}else l$=!1,Yz&&0!=(1048576&t.flags)&&Hz(t,Pz,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;N$(e,t),e=t.pendingProps;var i=xz(t,yz.current);hF(t,n),i=fj(null,t,r,e,i,n);var o=hj();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,wz(r)?(o=!0,Mz(t)):o=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,xF(t),i.updater=TF,t.stateNode=i,i._reactInternals=t,AF(t,r,e,n),t=y$(null,t,r,!0,o,n)):(t.tag=0,Yz&&o&&Vz(t),c$(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(N$(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"==typeof e)return wV(e)?1:0;if(null!=e){if((e=e.$$typeof)===bO)return 11;if(e===kO)return 14}return 2}(r),e=oF(r,e),i){case 0:t=m$(null,t,r,e,n);break e;case 1:t=g$(null,t,r,e,n);break e;case 11:t=u$(null,t,r,e,n);break e;case 14:t=d$(null,t,r,oF(r.type,e),n);break e}throw Error(XN(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,m$(e,t,r,i=t.elementType===r?i:oF(r,i),n);case 1:return r=t.type,i=t.pendingProps,g$(e,t,r,i=t.elementType===r?i:oF(r,i),n);case 3:e:{if(v$(t),null===e)throw Error(XN(387));r=t.pendingProps,i=(o=t.memoizedState).element,wF(e,t),EF(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=b$(e,t,r,n,i=Jj(Error(XN(423)),t));break e}if(r!==i){t=b$(e,t,r,n,i=Jj(Error(XN(424)),t));break e}for(Wz=JL(t.stateNode.containerInfo.firstChild),Uz=t,Yz=!0,Kz=null,n=jF(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(nF(),r===i){t=O$(e,t,n);break e}c$(e,t,r,n)}t=t.child}return t;case 5:return KF(t),null===e&&Jz(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,a=i.children,UL(r,i)?a=null:null!==o&&UL(r,o)&&(t.flags|=32),p$(e,t),c$(e,t,a,n),t.child;case 6:return null===e&&Jz(t),null;case 13:return E$(e,t,n);case 4:return WF(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=FF(t,null,r,n):c$(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,u$(e,t,r,i=t.elementType===r?i:oF(r,i),n);case 7:return c$(e,t,t.pendingProps,n),t.child;case 8:case 12:return c$(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,mz(aF,r._currentValue),r._currentValue=a,null!==o)if(XI(o.value,a)){if(o.children===i.children&&!vz.current){t=O$(e,t,n);break e}}else for(null!==(o=t.child)&&(o.return=t);null!==o;){var s=o.dependencies;if(null!==s){a=o.child;for(var l=s.firstContext;null!==l;){if(l.context===r){if(1===o.tag){(l=kF(-1,n&-n)).tag=2;var c=o.updateQueue;if(null!==c){var u=(c=c.shared).pending;null===u?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}o.lanes|=n,null!==(l=o.alternate)&&(l.lanes|=n),fF(o.return,n,t),s.lanes|=n;break}l=l.next}}else if(10===o.tag)a=o.type===t.type?null:o.child;else if(18===o.tag){if(null===(a=o.return))throw Error(XN(341));a.lanes|=n,null!==(s=a.alternate)&&(s.lanes|=n),fF(a,n,t),a=o.sibling}else a=o.child;if(null!==a)a.return=o;else for(a=o;null!==a;){if(a===t){a=null;break}if(null!==(o=a.sibling)){o.return=a.return,a=o;break}a=a.return}o=a}c$(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,hF(t,n),r=r(i=pF(i)),t.flags|=1,c$(e,t,r,n),t.child;case 14:return i=oF(r=t.type,t.pendingProps),d$(e,t,r,i=oF(r.type,i),n);case 15:return f$(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:oF(r,i),N$(e,t),t.tag=1,wz(r)?(e=!0,Mz(t)):e=!1,hF(t,n),NF(t,r,i),AF(t,r,i,n),y$(null,t,r,!0,e,n);case 19:return R$(e,t,n);case 22:return h$(e,t,n)}throw Error(XN(156,t.tag))};var IV="function"==typeof reportError?reportError:function(e){console.error(e)};function LV(e){this._internalRoot=e}function zV(e){this._internalRoot=e}function FV(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function jV(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function $V(){}function HV(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"==typeof i){var s=i;i=function(){var e=OV(a);s.call(e)}}NV(t,a,e,i)}else a=function(e,t,n,r,i){if(i){if("function"==typeof r){var o=r;r=function(){var e=OV(a);o.call(e)}}var a=RV(t,r,e,0,null,!1,0,"",$V);return e._reactRootContainer=a,e[rz]=a.current,RL(8===e.nodeType?e.parentNode:e),QH(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"==typeof r){var s=r;r=function(){var e=OV(l);s.call(e)}}var l=qV(e,0,!1,null,0,!1,0,"",$V);return e._reactRootContainer=l,e[rz]=l.current,RL(8===e.nodeType?e.parentNode:e),QH((function(){NV(t,l,n,r)})),l}(n,t,e,i,r);return OV(a)}zV.prototype.render=LV.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(XN(409));NV(e,t,null,null)},zV.prototype.unmount=LV.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;QH((function(){NV(null,e,null,null)})),t[rz]=null}},zV.prototype.unstable_scheduleHydration=function(e){if(e){var t=pP();e={blockedOn:null,target:e,priority:t};for(var n=0;n<SP.length&&0!==t&&t<SP[n].priority;n++);SP.splice(n,0,e),0===n&&_P(e)}},dP=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=tP(t.pendingLanes);0!==n&&(lP(t,1|n),WH(t,$A()),0==(6&yH)&&(RH=$A()+500,Rz()))}break;case 13:QH((function(){var t=vF(e,1);if(null!==t){var n=VH();UH(t,e,1,n)}})),PV(e,1)}},fP=function(e){if(13===e.tag){var t=vF(e,134217728);if(null!==t)UH(t,e,134217728,VH());PV(e,134217728)}},hP=function(e){if(13===e.tag){var t=BH(e),n=vF(e,t);if(null!==n)UH(n,e,t,VH());PV(e,t)}},pP=function(){return cP},mP=function(e,t){var n=cP;try{return cP=e,t()}finally{cP=n}},fA=function(e,t,n){switch(t){case"input":if(VO(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=uz(r);if(!i)throw Error(XN(90));zO(r),VO(r,i)}}}break;case"textarea":XO(e,n);break;case"select":null!=(t=n.value)&&YO(e,!!n.multiple,t,!1)}},vA=JH,bA=QH;var VV={usingClientEntryPoint:!1,Events:[lz,cz,uz,gA,yA,JH]},BV={findFiberByHostInstance:sz,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},UV={bundleType:BV.bundleType,version:BV.version,rendererPackageName:BV.rendererPackageName,rendererConfig:BV.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:dO.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=PA(e))?null:e.stateNode},findFiberByHostInstance:BV.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var WV=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!WV.isDisabled&&WV.supportsFiber)try{KA=WV.inject(UV),GA=WV}catch(qJ){}}BN.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=VV,BN.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!FV(t))throw Error(XN(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:hO,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},BN.createRoot=function(e,t){if(!FV(e))throw Error(XN(299));var n=!1,r="",i=IV;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=qV(e,1,!1,null,0,n,0,r,i),e[rz]=t.current,RL(8===e.nodeType?e.parentNode:e),new LV(t)},BN.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(XN(188));throw e=Object.keys(e).join(","),Error(XN(268,e))}return e=null===(e=PA(t))?null:e.stateNode},BN.flushSync=function(e){return QH(e)},BN.hydrate=function(e,t,n){if(!jV(t))throw Error(XN(200));return HV(null,e,t,!0,n)},BN.hydrateRoot=function(e,t,n){if(!FV(e))throw Error(XN(405));var r=null!=n&&n.hydratedSources||null,i=!1,o="",a=IV;if(null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(o=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=RV(t,null,e,1,null!=n?n:null,i,0,o,a),e[rz]=t.current,RL(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new zV(t)},BN.render=function(e,t,n){if(!jV(t))throw Error(XN(200));return HV(null,e,t,!1,n)},BN.unmountComponentAtNode=function(e){if(!jV(e))throw Error(XN(40));return!!e._reactRootContainer&&(QH((function(){HV(null,null,e,!1,(function(){e._reactRootContainer=null,e[rz]=null}))})),!0)},BN.unstable_batchedUpdates=JH,BN.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!jV(n))throw Error(XN(200));if(null==e||void 0===e._reactInternals)throw Error(XN(38));return HV(e,t,n,!1,r)},BN.version="18.2.0-next-9e3b772b8-20220608",function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),VN.exports=BN;var YV=VN.exports,KV=r(YV),GV=!0,XV=!1,ZV=null,JV={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 QV(e){e.metaKey||e.altKey||e.ctrlKey||(GV=!0)}function eB(){GV=!1}function tB(){"hidden"===this.visibilityState&&XV&&(GV=!0)}function nB(e){var t=e.target;try{return t.matches(":focus-visible")}catch(e){}return GV||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!JV[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function rB(){XV=!0,window.clearTimeout(ZV),ZV=window.setTimeout((function(){XV=!1}),100)}function iB(){var e=g_.useCallback((function(e){var t,n=YV.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",QV,!0),t.addEventListener("mousedown",eB,!0),t.addEventListener("pointerdown",eB,!0),t.addEventListener("touchstart",eB,!0),t.addEventListener("visibilitychange",tB,!0))}),[]);return{isFocusVisible:nB,onBlurVisible:rB,ref:e}}var oB=!1,aB=y_.createContext(null),sB="unmounted",lB="exited",cB="entering",uB="entered",dB="exiting",fB=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=lB,r.appearStatus=cB):i=uB:i=t.unmountOnExit||t.mountOnEnter?sB:lB,r.state={status:i},r.nextCallback=null,r}WD(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===sB?{status:lB}: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!==cB&&n!==uB&&(t=cB):n!==cB&&n!==uB||(t=dB)}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===cB){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:KV.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===lB&&this.setState({status:sB})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[KV.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||oB?this.safeSetState({status:uB},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:cB},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:uB},(function(){t.props.onEntered(o,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:KV.findDOMNode(this);t&&!oB?(this.props.onExit(r),this.safeSetState({status:dB},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:lB},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:lB},(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:KV.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===sB)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=uD(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return y_.createElement(aB.Provider,{value:null},"function"==typeof n?n(e,r):y_.cloneElement(y_.Children.only(n),r))},t}(y_.Component);function hB(){}fB.contextType=aB,fB.propTypes={},fB.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:hB,onEntering:hB,onEntered:hB,onExit:hB,onExiting:hB,onExited:hB},fB.UNMOUNTED=sB,fB.EXITED=lB,fB.ENTERING=cB,fB.ENTERED=uB,fB.EXITING=dB;var pB=fB;function mB(e,t){var n=Object.create(null);return e&&g_.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&g_.isValidElement(e)?t(e):e}(e)})),n}function gB(e,t,n){return null!=n[t]?n[t]:e.props[t]}function yB(e,t,n){var r=mB(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var c=i[l][r];s[i[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(t,r);return Object.keys(i).forEach((function(o){var a=i[o];if(g_.isValidElement(a)){var s=o in t,l=o in r,c=t[o],u=g_.isValidElement(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&g_.isValidElement(c)&&(i[o]=g_.cloneElement(a,{onExited:n.bind(null,a),in:c.props.in,exit:gB(a,"exit",e),enter:gB(a,"enter",e)})):i[o]=g_.cloneElement(a,{in:!1}):i[o]=g_.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:gB(a,"exit",e),enter:gB(a,"enter",e)})}})),i}var vB=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},bB=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(YD(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}WD(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,o=t.handleExited;return{children:t.firstRender?(n=e,r=o,mB(n.children,(function(e){return g_.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:gB(e,"appear",n),enter:gB(e,"enter",n),exit:gB(e,"exit",n)})}))):yB(e,i,o),firstRender:!1}},n.handleExited=function(e,t){var n=mB(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=J_({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=uD(e,["component","childFactory"]),i=this.state.contextValue,o=vB(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?y_.createElement(aB.Provider,{value:i},o):y_.createElement(aB.Provider,{value:i},y_.createElement(t,r,o))},t}(y_.Component);bB.propTypes={},bB.defaultProps={component:"div",childFactory:function(e){return e}};var xB=bB;function wB(e,t){var n=e.timeout,r=e.style,i=void 0===r?{}:r;return{duration:i.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:i.transitionDelay}}var kB=g_.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,o=void 0===i?"div":i,a=e.square,s=void 0!==a&&a,l=e.elevation,c=void 0===l?1:l,u=e.variant,d=void 0===u?"elevation":u,f=dD(e,["classes","className","component","square","elevation","variant"]);return g_.createElement(o,J_({className:IN(n.root,r,"outlined"===d?n.outlined:n["elevation".concat(c)],!s&&n.rounded),ref:t},f))})),SB=NN((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),J_({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"})(kB),CB="undefined"==typeof window?g_.useEffect:g_.useLayoutEffect;function MB(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,i=e.rippleX,o=e.rippleY,a=e.rippleSize,s=e.in,l=e.onExited,c=void 0===l?function(){}:l,u=e.timeout,d=g_.useState(!1),f=d[0],h=d[1],p=IN(t.ripple,t.rippleVisible,r&&t.ripplePulsate),m={width:a,height:a,top:-a/2+o,left:-a/2+i},g=IN(t.child,f&&t.childLeaving,r&&t.childPulsate),y=$N(c);return CB((function(){if(!s){h(!0);var e=setTimeout(y,u);return function(){clearTimeout(e)}}}),[y,s,u]),g_.createElement("span",{className:p,style:m},g_.createElement("span",{className:g}))}var EB=g_.forwardRef((function(e,t){var n=e.center,r=void 0!==n&&n,i=e.classes,o=e.className,a=dD(e,["center","classes","className"]),s=g_.useState([]),l=s[0],c=s[1],u=g_.useRef(0),d=g_.useRef(null);g_.useEffect((function(){d.current&&(d.current(),d.current=null)}),[l]);var f=g_.useRef(!1),h=g_.useRef(null),p=g_.useRef(null),m=g_.useRef(null);g_.useEffect((function(){return function(){clearTimeout(h.current)}}),[]);var g=g_.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,o=e.rippleSize,a=e.cb;c((function(e){return[].concat(DD(e),[g_.createElement(MB,{key:u.current,classes:i,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o})])})),u.current+=1,d.current=a}),[i]),y=g_.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,i=t.pulsate,o=void 0!==i&&i,a=t.center,s=void 0===a?r||t.pulsate:a,l=t.fakeElement,c=void 0!==l&&l;if("mousedown"===e.type&&f.current)f.current=!1;else{"touchstart"===e.type&&(f.current=!0);var u,d,y,v=c?null:m.current,b=v?v.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(b.width/2),d=Math.round(b.height/2);else{var x=e.touches?e.touches[0]:e,w=x.clientX,k=x.clientY;u=Math.round(w-b.left),d=Math.round(k-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 S=2*Math.max(Math.abs((v?v.clientWidth:0)-u),u)+2,C=2*Math.max(Math.abs((v?v.clientHeight:0)-d),d)+2;y=Math.sqrt(Math.pow(S,2)+Math.pow(C,2))}e.touches?null===p.current&&(p.current=function(){g({pulsate:o,rippleX:u,rippleY:d,rippleSize:y,cb:n})},h.current=setTimeout((function(){p.current&&(p.current(),p.current=null)}),80)):g({pulsate:o,rippleX:u,rippleY:d,rippleSize:y,cb:n})}}),[r,g]),v=g_.useCallback((function(){y({},{pulsate:!0})}),[y]),b=g_.useCallback((function(e,t){if(clearTimeout(h.current),"touchend"===e.type&&p.current)return e.persist(),p.current(),p.current=null,void(h.current=setTimeout((function(){b(e,t)})));p.current=null,c((function(e){return e.length>0?e.slice(1):e})),d.current=t}),[]);return g_.useImperativeHandle(t,(function(){return{pulsate:v,start:y,stop:b}}),[v,y,b]),g_.createElement("span",J_({className:IN(i.root,o),ref:m},a),g_.createElement(xB,{component:null,exit:!0},l))})),_B=NN((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"})(g_.memo(EB)),DB=g_.forwardRef((function(e,t){var n=e.action,r=e.buttonRef,i=e.centerRipple,o=void 0!==i&&i,a=e.children,s=e.classes,l=e.className,c=e.component,u=void 0===c?"button":c,d=e.disabled,f=void 0!==d&&d,h=e.disableRipple,p=void 0!==h&&h,m=e.disableTouchRipple,g=void 0!==m&&m,y=e.focusRipple,v=void 0!==y&&y,b=e.focusVisibleClassName,x=e.onBlur,w=e.onClick,k=e.onFocus,S=e.onFocusVisible,C=e.onKeyDown,M=e.onKeyUp,E=e.onMouseDown,_=e.onMouseLeave,D=e.onMouseUp,q=e.onTouchEnd,T=e.onTouchMove,R=e.onTouchStart,N=e.onDragLeave,O=e.tabIndex,A=void 0===O?0:O,P=e.TouchRippleProps,I=e.type,L=void 0===I?"button":I,z=dD(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),F=g_.useRef(null);var j=g_.useRef(null),$=g_.useState(!1),H=$[0],V=$[1];f&&H&&V(!1);var B=iB(),U=B.isFocusVisible,W=B.onBlurVisible,Y=B.ref;function K(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g;return $N((function(r){return t&&t(r),!n&&j.current&&j.current[e](r),!0}))}g_.useImperativeHandle(n,(function(){return{focusVisible:function(){V(!0),F.current.focus()}}}),[]),g_.useEffect((function(){H&&v&&!p&&j.current.pulsate()}),[p,v,H]);var G=K("start",E),X=K("stop",N),Z=K("stop",D),J=K("stop",(function(e){H&&e.preventDefault(),_&&_(e)})),Q=K("start",R),ee=K("stop",q),te=K("stop",T),ne=K("stop",(function(e){H&&(W(e),V(!1)),x&&x(e)}),!1),re=$N((function(e){F.current||(F.current=e.currentTarget),U(e)&&(V(!0),S&&S(e)),k&&k(e)})),ie=function(){var e=YV.findDOMNode(F.current);return u&&"button"!==u&&!("A"===e.tagName&&e.href)},oe=g_.useRef(!1),ae=$N((function(e){v&&!oe.current&&H&&j.current&&" "===e.key&&(oe.current=!0,e.persist(),j.current.stop(e,(function(){j.current.start(e)}))),e.target===e.currentTarget&&ie()&&" "===e.key&&e.preventDefault(),C&&C(e),e.target===e.currentTarget&&ie()&&"Enter"===e.key&&!f&&(e.preventDefault(),w&&w(e))})),se=$N((function(e){v&&" "===e.key&&j.current&&H&&!e.defaultPrevented&&(oe.current=!1,e.persist(),j.current.stop(e,(function(){j.current.pulsate(e)}))),M&&M(e),w&&e.target===e.currentTarget&&ie()&&" "===e.key&&!e.defaultPrevented&&w(e)})),le=u;"button"===le&&z.href&&(le="a");var ce={};"button"===le?(ce.type=L,ce.disabled=f):("a"===le&&z.href||(ce.role="button"),ce["aria-disabled"]=f);var ue=HN(r,t),de=HN(Y,F),fe=HN(ue,de),he=g_.useState(!1),pe=he[0],me=he[1];g_.useEffect((function(){me(!0)}),[]);var ge=pe&&!p&&!f;return g_.createElement(le,J_({className:IN(s.root,l,H&&[s.focusVisible,b],f&&s.disabled),onBlur:ne,onClick:w,onFocus:re,onKeyDown:ae,onKeyUp:se,onMouseDown:G,onMouseLeave:J,onMouseUp:Z,onDragLeave:X,onTouchEnd:ee,onTouchMove:te,onTouchStart:Q,ref:fe,tabIndex:f?-1:A},ce,z),a,ge?g_.createElement(_B,J_({ref:j,center:o},P)):null)})),qB=NN({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"})(DB),TB={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},RB=g_.forwardRef((function(e,t){var n=e.align,r=void 0===n?"inherit":n,i=e.classes,o=e.className,a=e.color,s=void 0===a?"initial":a,l=e.component,c=e.display,u=void 0===c?"initial":c,d=e.gutterBottom,f=void 0!==d&&d,h=e.noWrap,p=void 0!==h&&h,m=e.paragraph,g=void 0!==m&&m,y=e.variant,v=void 0===y?"body1":y,b=e.variantMapping,x=void 0===b?TB:b,w=dD(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),k=l||(g?"p":x[v]||TB[v])||"span";return g_.createElement(k,J_({className:IN(i.root,o,"inherit"!==v&&i[v],"initial"!==s&&i["color".concat(ON(s))],p&&i.noWrap,f&&i.gutterBottom,g&&i.paragraph,"inherit"!==r&&i["align".concat(ON(r))],"initial"!==u&&i["display".concat(ON(u))]),ref:t},w))})),NB=NN((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"})(RB),OB=g_.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.color,a=void 0===o?"default":o,s=e.component,l=void 0===s?"button":s,c=e.disabled,u=void 0!==c&&c,d=e.disableElevation,f=void 0!==d&&d,h=e.disableFocusRipple,p=void 0!==h&&h,m=e.endIcon,g=e.focusVisibleClassName,y=e.fullWidth,v=void 0!==y&&y,b=e.size,x=void 0===b?"medium":b,w=e.startIcon,k=e.type,S=void 0===k?"button":k,C=e.variant,M=void 0===C?"text":C,E=dD(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),_=w&&g_.createElement("span",{className:IN(r.startIcon,r["iconSize".concat(ON(x))])},w),D=m&&g_.createElement("span",{className:IN(r.endIcon,r["iconSize".concat(ON(x))])},m);return g_.createElement(qB,J_({className:IN(r.root,r[M],i,"inherit"===a?r.colorInherit:"default"!==a&&r["".concat(M).concat(ON(a))],"medium"!==x&&[r["".concat(M,"Size").concat(ON(x))],r["size".concat(ON(x))]],f&&r.disableElevation,u&&r.disabled,v&&r.fullWidth),component:l,disabled:u,focusRipple:!p,focusVisibleClassName:IN(r.focusVisible,g),ref:t,type:S},E),g_.createElement("span",{className:r.label},_,n,D))})),AB=NN((function(e){return{root:J_({},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:cD(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:cD(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:cD(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(cD(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:cD(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(cD(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:cD(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"})(OB);var PB="undefined"!=typeof window?g_.useLayoutEffect:g_.useEffect,IB=g_.forwardRef((function(e,t){var n=e.children,r=e.container,i=e.disablePortal,o=void 0!==i&&i,a=e.onRendered,s=g_.useState(null),l=s[0],c=s[1],u=HN(g_.isValidElement(n)?n.ref:null,t);return PB((function(){o||c(function(e){return e="function"==typeof e?e():e,YV.findDOMNode(e)}(r)||document.body)}),[r,o]),PB((function(){if(l&&!o)return FN(t,l),function(){FN(t,null)}}),[t,l,o]),PB((function(){a&&(l||o)&&a()}),[a,l,o]),o?g_.isValidElement(n)?g_.cloneElement(n,{ref:u}):n:l?YV.createPortal(n,l):l})),LB=IB;function zB(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function FB(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function jB(e,t,n){var r=arguments.length>4?arguments[4]:void 0,i=[t,n].concat(DD(arguments.length>3&&void 0!==arguments[3]?arguments[3]:[])),o=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===i.indexOf(e)&&-1===o.indexOf(e.tagName)&&zB(e,r)}))}function $B(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function HB(e,t){var n,r=[],i=[],o=e.container;if(!t.disableScrollLock){if(function(e){var t=LN(e);return t.body===e?zN(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o)){var a=function(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}();r.push({value:o.style.paddingRight,key:"padding-right",el:o}),o.style["padding-right"]="".concat(FB(o)+a,"px"),n=LN(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){i.push(e.style.paddingRight),e.style.paddingRight="".concat(FB(e)+a,"px")}))}var s=o.parentElement,l="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:o;r.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){i[t]?e.style.paddingRight=i[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var VB=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 BD(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&&zB(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);jB(t,e.mountNode,e.modalRef,r,!0);var i=$B(this.containers,(function(e){return e.container===t}));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=$B(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=HB(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=$B(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&&zB(e.modalRef,!0),jB(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var i=r.modals[r.modals.length-1];i.modalRef&&zB(i.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();function BB(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,i=e.disableEnforceFocus,o=void 0!==i&&i,a=e.disableRestoreFocus,s=void 0!==a&&a,l=e.getDoc,c=e.isEnabled,u=e.open,d=g_.useRef(),f=g_.useRef(null),h=g_.useRef(null),p=g_.useRef(),m=g_.useRef(null),g=g_.useCallback((function(e){m.current=YV.findDOMNode(e)}),[]),y=HN(t.ref,g),v=g_.useRef();return g_.useEffect((function(){v.current=u}),[u]),!v.current&&u&&"undefined"!=typeof window&&(p.current=l().activeElement),g_.useEffect((function(){if(u){var e=LN(m.current);r||!m.current||m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex",-1),m.current.focus());var t=function(){null!==m.current&&(e.hasFocus()&&!o&&c()&&!d.current?m.current&&!m.current.contains(e.activeElement)&&m.current.focus():d.current=!1)},n=function(t){!o&&c()&&9===t.keyCode&&e.activeElement===m.current&&(d.current=!0,t.shiftKey?h.current.focus():f.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var i=setInterval((function(){t()}),50);return function(){clearInterval(i),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),s||(p.current&&p.current.focus&&p.current.focus(),p.current=null)}}}),[r,o,s,c,u]),g_.createElement(g_.Fragment,null,g_.createElement("div",{tabIndex:0,ref:f,"data-test":"sentinelStart"}),g_.cloneElement(t,{ref:y}),g_.createElement("div",{tabIndex:0,ref:h,"data-test":"sentinelEnd"}))}var UB={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"}},WB=g_.forwardRef((function(e,t){var n=e.invisible,r=void 0!==n&&n,i=e.open,o=dD(e,["invisible","open"]);return i?g_.createElement("div",J_({"aria-hidden":!0,ref:t},o,{style:J_({},UB.root,r?UB.invisible:{},o.style)})):null}));var YB=new VB,KB=g_.forwardRef((function(e,t){var n=NR(),r=jD({name:"MuiModal",props:J_({},e),theme:n}),i=r.BackdropComponent,o=void 0===i?WB:i,a=r.BackdropProps,s=r.children,l=r.closeAfterTransition,c=void 0!==l&&l,u=r.container,d=r.disableAutoFocus,f=void 0!==d&&d,h=r.disableBackdropClick,p=void 0!==h&&h,m=r.disableEnforceFocus,g=void 0!==m&&m,y=r.disableEscapeKeyDown,v=void 0!==y&&y,b=r.disablePortal,x=void 0!==b&&b,w=r.disableRestoreFocus,k=void 0!==w&&w,S=r.disableScrollLock,C=void 0!==S&&S,M=r.hideBackdrop,E=void 0!==M&&M,_=r.keepMounted,D=void 0!==_&&_,q=r.manager,T=void 0===q?YB:q,R=r.onBackdropClick,N=r.onClose,O=r.onEscapeKeyDown,A=r.onRendered,P=r.open,I=dD(r,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),L=g_.useState(!0),z=L[0],F=L[1],j=g_.useRef({}),$=g_.useRef(null),H=g_.useRef(null),V=HN(H,t),B=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),U=function(){return LN($.current)},W=function(){return j.current.modalRef=H.current,j.current.mountNode=$.current,j.current},Y=function(){T.mount(W(),{disableScrollLock:C}),H.current.scrollTop=0},K=$N((function(){var e=function(e){return e="function"==typeof e?e():e,YV.findDOMNode(e)}(u)||U().body;T.add(W(),e),H.current&&Y()})),G=g_.useCallback((function(){return T.isTopModal(W())}),[T]),X=$N((function(e){$.current=e,e&&(A&&A(),P&&G()?Y():zB(H.current,!0))})),Z=g_.useCallback((function(){T.remove(W())}),[T]);if(g_.useEffect((function(){return function(){Z()}}),[Z]),g_.useEffect((function(){P?K():B&&c||Z()}),[P,Z,B,c,K]),!D&&!P&&(!B||z))return null;var J=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:PD}),Q={};return void 0===s.props.tabIndex&&(Q.tabIndex=s.props.tabIndex||"-1"),B&&(Q.onEnter=AN((function(){F(!1)}),s.props.onEnter),Q.onExited=AN((function(){F(!0),c&&Z()}),s.props.onExited)),g_.createElement(LB,{ref:X,container:u,disablePortal:x},g_.createElement("div",J_({ref:V,onKeyDown:function(e){"Escape"===e.key&&G()&&(O&&O(e),v||(e.stopPropagation(),N&&N(e,"escapeKeyDown")))},role:"presentation"},I,{style:J_({},J.root,!P&&z?J.hidden:{},I.style)}),E?null:g_.createElement(o,J_({open:P,onClick:function(e){e.target===e.currentTarget&&(R&&R(e),!p&&N&&N(e,"backdropClick"))}},a)),g_.createElement(BB,{disableEnforceFocus:g,disableAutoFocus:f,disableRestoreFocus:k,getDoc:U,isEnabled:G,open:P},g_.cloneElement(s,Q))))})),GB=KB,XB=g_.forwardRef((function(e,t){var n=e.absolute,r=void 0!==n&&n,i=e.classes,o=e.className,a=e.component,s=void 0===a?"hr":a,l=e.flexItem,c=void 0!==l&&l,u=e.light,d=void 0!==u&&u,f=e.orientation,h=void 0===f?"horizontal":f,p=e.role,m=void 0===p?"hr"!==s?"separator":void 0:p,g=e.variant,y=void 0===g?"fullWidth":g,v=dD(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return g_.createElement(s,J_({className:IN(i.root,o,"fullWidth"!==y&&i[y],r&&i.absolute,c&&i.flexItem,d&&i.light,"vertical"===h&&i.vertical),role:m,ref:t},v))})),ZB=NN((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:cD(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"})(XB);function JB(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var QB={entering:{opacity:1,transform:JB(1)},entered:{opacity:1,transform:"none"}},eU=g_.forwardRef((function(e,t){var n=e.children,r=e.disableStrictModeCompat,i=void 0!==r&&r,o=e.in,a=e.onEnter,s=e.onEntered,l=e.onEntering,c=e.onExit,u=e.onExited,d=e.onExiting,f=e.style,h=e.timeout,p=void 0===h?"auto":h,m=e.TransitionComponent,g=void 0===m?pB:m,y=dD(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),v=g_.useRef(),b=g_.useRef(),x=NR()||TN,w=x.unstable_strictMode&&!i,k=g_.useRef(null),S=HN(n.ref,t),C=HN(w?k:void 0,S),M=function(e){return function(t,n){if(e){var r=qD(w?[k.current,t]:[t,n],2),i=r[0],o=r[1];void 0===o?e(i):e(i,o)}}},E=M(l),_=M((function(e,t){!function(e){e.scrollTop}(e);var n,r=wB({style:f,timeout:p},{mode:"enter"}),i=r.duration,o=r.delay;"auto"===p?(n=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=n):n=i,e.style.transition=[x.transitions.create("opacity",{duration:n,delay:o}),x.transitions.create("transform",{duration:.666*n,delay:o})].join(","),a&&a(e,t)})),D=M(s),q=M(d),T=M((function(e){var t,n=wB({style:f,timeout:p},{mode:"exit"}),r=n.duration,i=n.delay;"auto"===p?(t=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=t):t=r,e.style.transition=[x.transitions.create("opacity",{duration:t,delay:i}),x.transitions.create("transform",{duration:.666*t,delay:i||.333*t})].join(","),e.style.opacity="0",e.style.transform=JB(.75),c&&c(e)})),R=M(u);return g_.useEffect((function(){return function(){clearTimeout(v.current)}}),[]),g_.createElement(g,J_({appear:!0,in:o,nodeRef:w?k:void 0,onEnter:_,onEntered:D,onEntering:E,onExit:T,onExited:R,onExiting:q,addEndListener:function(e,t){var n=w?e:t;"auto"===p&&(v.current=setTimeout(n,b.current||0))},timeout:"auto"===p?null:p},y),(function(e,t){return g_.cloneElement(n,J_({style:J_({opacity:0,transform:JB(.75),visibility:"exited"!==e||o?void 0:"hidden"},QB[e],f,n.props.style),ref:C},t))}))}));eU.muiSupportAuto=!0;var tU=eU,nU=g_.createContext({}),rU=g_.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.component,a=void 0===o?"ul":o,s=e.dense,l=void 0!==s&&s,c=e.disablePadding,u=void 0!==c&&c,d=e.subheader,f=dD(e,["children","classes","className","component","dense","disablePadding","subheader"]),h=g_.useMemo((function(){return{dense:l}}),[l]);return g_.createElement(nU.Provider,{value:h},g_.createElement(a,J_({className:IN(r.root,i,l&&r.dense,!u&&r.padding,d&&r.subheader),ref:t},f),d,n))})),iU=NN({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(rU),oU="undefined"==typeof window?g_.useEffect:g_.useLayoutEffect,aU=g_.forwardRef((function(e,t){var n=e.alignItems,r=void 0===n?"center":n,i=e.autoFocus,o=void 0!==i&&i,a=e.button,s=void 0!==a&&a,l=e.children,c=e.classes,u=e.className,d=e.component,f=e.ContainerComponent,h=void 0===f?"li":f,p=e.ContainerProps,m=(p=void 0===p?{}:p).className,g=dD(p,["className"]),y=e.dense,v=void 0!==y&&y,b=e.disabled,x=void 0!==b&&b,w=e.disableGutters,k=void 0!==w&&w,S=e.divider,C=void 0!==S&&S,M=e.focusVisibleClassName,E=e.selected,_=void 0!==E&&E,D=dD(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),q=g_.useContext(nU),T={dense:v||q.dense||!1,alignItems:r},R=g_.useRef(null);oU((function(){o&&R.current&&R.current.focus()}),[o]);var N,O,A=g_.Children.toArray(l),P=A.length&&(N=A[A.length-1],O=["ListItemSecondaryAction"],g_.isValidElement(N)&&-1!==O.indexOf(N.type.muiName)),I=g_.useCallback((function(e){R.current=YV.findDOMNode(e)}),[]),L=HN(I,t),z=J_({className:IN(c.root,u,T.dense&&c.dense,!k&&c.gutters,C&&c.divider,x&&c.disabled,s&&c.button,"center"!==r&&c.alignItemsFlexStart,P&&c.secondaryAction,_&&c.selected),disabled:x},D),F=d||"li";return s&&(z.component=d||"div",z.focusVisibleClassName=IN(c.focusVisible,M),F=qB),P?(F=z.component||d?F:"div","li"===h&&("li"===F?F="div":"li"===z.component&&(z.component="div")),g_.createElement(nU.Provider,{value:T},g_.createElement(h,J_({className:IN(c.container,m),ref:L},g),g_.createElement(F,z,A),A.pop()))):g_.createElement(nU.Provider,{value:T},g_.createElement(F,J_({ref:L},z),A))})),sU=NN((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"})(aU),lU=g_.forwardRef((function(e,t){var n=e.classes,r=e.className,i=dD(e,["classes","className"]),o=g_.useContext(nU);return g_.createElement("div",J_({className:IN(n.root,r,"flex-start"===o.alignItems&&n.alignItemsFlexStart),ref:t},i))})),cU=NN((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(lU),uU=g_.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.disableTypography,a=void 0!==o&&o,s=e.inset,l=void 0!==s&&s,c=e.primary,u=e.primaryTypographyProps,d=e.secondary,f=e.secondaryTypographyProps,h=dD(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),p=g_.useContext(nU).dense,m=null!=c?c:n;null==m||m.type===NB||a||(m=g_.createElement(NB,J_({variant:p?"body2":"body1",className:r.primary,component:"span",display:"block"},u),m));var g=d;return null==g||g.type===NB||a||(g=g_.createElement(NB,J_({variant:"body2",className:r.secondary,color:"textSecondary",display:"block"},f),g)),g_.createElement("div",J_({className:IN(r.root,i,p&&r.dense,l&&r.inset,m&&g&&r.multiline),ref:t},h),m,g)})),dU=NN({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(uU);function fU(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function hU(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function pU(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function mU(e){return"function"==typeof e?e():e}var gU=g_.forwardRef((function(e,t){var n=e.action,r=e.anchorEl,i=e.anchorOrigin,o=void 0===i?{vertical:"top",horizontal:"left"}:i,a=e.anchorPosition,s=e.anchorReference,l=void 0===s?"anchorEl":s,c=e.children,u=e.classes,d=e.className,f=e.container,h=e.elevation,p=void 0===h?8:h,m=e.getContentAnchorEl,g=e.marginThreshold,y=void 0===g?16:g,v=e.onEnter,b=e.onEntered,x=e.onEntering,w=e.onExit,k=e.onExited,S=e.onExiting,C=e.open,M=e.PaperProps,E=void 0===M?{}:M,_=e.transformOrigin,D=void 0===_?{vertical:"top",horizontal:"left"}:_,q=e.TransitionComponent,T=void 0===q?tU:q,R=e.transitionDuration,N=void 0===R?"auto":R,O=e.TransitionProps,A=void 0===O?{}:O,P=dD(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"]),I=g_.useRef(),L=g_.useCallback((function(e){if("anchorPosition"===l)return a;var t=mU(r),n=(t&&1===t.nodeType?t:LN(I.current).body).getBoundingClientRect(),i=0===e?o.vertical:"center";return{top:n.top+fU(n,i),left:n.left+hU(n,o.horizontal)}}),[r,o.horizontal,o.vertical,a,l]),z=g_.useCallback((function(e){var t=0;if(m&&"anchorEl"===l){var n=m(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}}return t}),[o.vertical,l,m]),F=g_.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:fU(e,D.vertical)+t,horizontal:hU(e,D.horizontal)}}),[D.horizontal,D.vertical]),j=g_.useCallback((function(e){var t=z(e),n={width:e.offsetWidth,height:e.offsetHeight},i=F(n,t);if("none"===l)return{top:null,left:null,transformOrigin:pU(i)};var o=L(t),a=o.top-i.vertical,s=o.left-i.horizontal,c=a+n.height,u=s+n.width,d=zN(mU(r)),f=d.innerHeight-y,h=d.innerWidth-y;if(a<y){var p=a-y;a-=p,i.vertical+=p}else if(c>f){var m=c-f;a-=m,i.vertical+=m}if(s<y){var g=s-y;s-=g,i.horizontal+=g}else if(u>h){var v=u-h;s-=v,i.horizontal+=v}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:pU(i)}}),[r,l,L,z,F,y]),$=g_.useCallback((function(){var e=I.current;if(e){var t=j(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[j]),H=g_.useCallback((function(e){I.current=YV.findDOMNode(e)}),[]);g_.useEffect((function(){C&&$()})),g_.useImperativeHandle(n,(function(){return C?{updatePosition:function(){$()}}:null}),[C,$]),g_.useEffect((function(){if(C){var e=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=this;clearTimeout(t),t=setTimeout((function(){e.apply(a,i)}),n)}return r.clear=function(){clearTimeout(t)},r}((function(){$()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[C,$]);var V=N;"auto"!==N||T.muiSupportAuto||(V=void 0);var B=f||(r?LN(mU(r)).body:void 0);return g_.createElement(GB,J_({container:B,open:C,ref:t,BackdropProps:{invisible:!0},className:IN(u.root,d)},P),g_.createElement(T,J_({appear:!0,in:C,onEnter:v,onEntered:b,onExit:w,onExited:k,onExiting:S,timeout:V},A,{onEntering:AN((function(e,t){x&&x(e,t),$()}),A.onEntering)}),g_.createElement(SB,J_({elevation:p,ref:H},E,{className:IN(u.paper,E.className)}),c)))})),yU=NN({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(gU);function vU(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function bU({d:e,size:t,style:n={},viewBox:r="0 0 16 16"}){const i={fontSize:vU(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",...n};return y_.createElement("i",{style:i},y_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},y_.createElement("path",{d:e})))}const xU=RN(sU)((()=>({textAlign:"start","&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"}}))),wU={menuItem:"alternative-menu-item"},kU=e=>{const{nested:t,className:n,...r}=e,i=(({nested:e,dir:t})=>$R((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 y_.createElement(sU,F_({className:`${i.root} ${n}`},r))},SU=e=>{if("Tab"===e.key){const t=document.querySelectorAll(`.${wU.menuItem}`);let n;e.shiftKey?null!=t&&t.length&&t[0]===e.target&&(n=t[t.length-1]):null!=t&&t.length&&t[t.length-1]===e.target&&([n]=t),n&&setTimeout((()=>{n.focus()}),50)}};function CU({title:e,selected:t,onClick:n,nested:r,icon:i,bold:o,dir:a,isCyclicFFEnabled:s}){const l=Lg.detectTextDirection(e);return!s?y_.createElement(xU,{role:"menuitem",button:!0,onClick:n,className:wU.menuItem,onKeyDown:SU,autoFocus:t},y_.createElement(cU,{style:{minWidth:32}},y_.createElement(bU,{d:t?S_.d:""})),y_.createElement(dU,{primaryTypographyProps:{dir:l}},e)):y_.createElement(kU,{nested:r,role:"menuitem",button:!0,onClick:n,className:wU.menuItem,onKeyDown:SU,dir:a,autoFocus:t},y_.createElement(dU,{primary:e,primaryTypographyProps:{dir:l,...o&&{style:{fontWeight:600}}}}),y_.createElement(cU,{style:{minWidth:16}},y_.createElement(bU,{d:t?S_.d:""})),i&&y_.createElement(cU,{style:{minWidth:16}},y_.createElement(bU,{d:i.d})))}CU.propTypes={title:V_.string.isRequired,selected:V_.bool,onClick:V_.func.isRequired,nested:V_.bool,icon:V_.shape({d:V_.string.isRequired}),bold:V_.bool,dir:V_.string.isRequired,isCyclicFFEnabled:V_.bool.isRequired},CU.defaultProps={selected:!1,nested:!1,icon:void 0,bold:!1},kU.propTypes={nested:V_.bool,className:V_.string},kU.defaultProps={nested:!1,className:wU.menuItem};const MU={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 EU({chartId:e,alignTo:t,currentId:n,dir:r,dock:i,list:o,onClose:a,show:s,instruction:l,isCyclicFFEnabled:c}){const u=c,d=o.map(((t,i)=>{var s;return y_.createElement(y_.Fragment,{key:t.id},y_.createElement(CU,{icon:t.icon,title:t.title,bold:t.groupItem,selected:t.selected,onClick:()=>{t.onSelect&&t.onSelect(n),a(`${e}-${t.id}`)},dir:r,isCyclicFFEnabled:c}),(null===(s=t.children)||void 0===s?void 0:s.length)>0&&y_.createElement(iU,{dense:!0,dir:r,component:"div",disablePadding:!0},t.children.map((e=>y_.createElement(CU,{key:e.id,nested:!0,title:e.title,selected:e.selected,onClick:()=>{e.onSelect(),a(t.id)},dir:r,isCyclicFFEnabled:c})))),i<o.length-1&&u&&y_.createElement(ZB,{key:`divider-${t.id}`}))}));return y_.createElement(yU,F_({anchorEl:t,open:s,onClose:a},MU[i],{PaperProps:{style:{minWidth:"250px",maxHeight:"300px"}}}),y_.createElement(iU,{dense:!0,disablePadding:!0,dir:r,"aria-label":l,component:"nav"},d))}EU.propTypes={alignTo:V_.any,currentId:V_.string.isRequired,dir:V_.string.isRequired,dock:V_.string.isRequired,list:V_.array,onClose:V_.func.isRequired,show:V_.bool.isRequired,instruction:V_.string.isRequired,isCyclicFFEnabled:V_.bool.isRequired},EU.defaultProps={list:[],alignTo:null};const _U="title-button",DU="active-title-button",qU=RN((({children:e,...t})=>y_.createElement(AB,F_({size:"small",disableRipple:!0,disableTouchRipple:!0},t),e)))((()=>({"&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"}}))),TU=RN(AB)((()=>({borderRadius:"4px",width:"24px",height:"24px",minWidth:"22px",padding:0})));class RU extends y_.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=y_.createRef()}componentDidMount(){const{popover:e,selections:t,supportConditional:n,showGroupDimOptions:r}=this.props;t&&(this.onSelectionsActivated=()=>this.setState({inSelection:!0}),this.onSelectionsDeactivated=()=>this.setState({inSelection:!1}),t.addListener("activated",this.onSelectionsActivated),t.addListener("deactivated",this.onSelectionsDeactivated),t.addListener("canceled",this.onSelectionsDeactivated)),e&&(n||r)&&e.getPopoverOptions().then((e=>{this.setState({hasPopoverOptions:0!==e.length})}))}componentDidUpdate(e,t){const{popover:n,supportConditional:r,showGroupDimOptions:i}=this.props;n&&(r||i)&&n.getPopoverOptions().then((e=>{t.hasPopoverOptions!==(0!==e.length)&&this.setState({hasPopoverOptions:0!==e.length})}))}componentWillUnmount(){const{selections:e}=this.props;e&&(e.removeListener("activated",this.onSelectionsActivated),e.removeListener("deactivated",this.onSelectionsDeactivated),e.removeListener("canceled",this.onSelectionsDeactivated))}openPopover(e){if(!(this.state.closeTime&&Date.now()-this.state.closeTime<20)){if(e.target){const t=e.target.closest(`.${_U}`);t&&t.classList.add(DU)}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(`.${_U}[data-id="${e}"]`);t&&t.focus()}),1e3);else{const e=document.querySelector(`.${DU}`);e&&(e.classList.remove(DU),setTimeout((()=>{e.focus()}),50))}}render(){const{chartId:e,titleData:t,popover:n,translator:r,disabled:i,isDimension:o,padding:a,minWidth:s,hasAlternative:l,supportConditional:c,showGroupDimOptions:u}=this.props,d={flex:"1 1 auto",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontWeight:"normal",lineHeight:"normal",...this.props.style},f=t.breadcrumbs.length,h=i||Boolean(!t.drillUp)||this.state.inSelection,p=t.breadcrumbs.map(((e,n)=>y_.createElement(qU,{style:{display:"flex",alignItems:"center",color:h&&"rgba(89, 89, 89, 0.8)",pointerEvents:h?"none":"auto",paddingTop:0,paddingBottom:0,height:"100%"},key:n,onClick:()=>h?void 0:t.drillUp(f-n),title:e},y_.createElement("span",{style:d},e),y_.createElement(bU,F_({},M_,{size:"small",style:{margin:"0 8px"}}))))),m=c||u?this.state.hasPopoverOptions:l,g=n&&!this.state.open?this.openPopover:this.closePopover,y=!n||i||this.state.inSelection,v={display:"flex",alignItems:"center",width:"100%",color:y&&"rgba(89, 89, 89, 0.8)",height:"100%",border:!o&&y&&"none",...a?{padding:a}:{paddingTop:0,paddingBottom:0},...s&&{minWidth:s}};this.state.open&&(v.background="rgba(0,0,0,0.08)");const b=()=>{this.setState({disableCyclicButton:!0})},x=Lg.detectTextDirection(t.text),w=y_.createElement(qU,{"aria-label":r.get(`Accessibility.${n&&m?"Alternative":"Normal"}.Instructions`,[t.text]),style:v,onClick:y?void 0:g,title:t.text,tabIndex:y?-1:0,onFocus:y?void 0:e=>{e.currentTarget.style.boxShadow="0px 0px 0px 2px #177FE6 inset",e.currentTarget.style.borderRadius="2px"},onBlur:y?void 0:e=>{e.currentTarget.style.boxShadow="none",e.currentTarget.style.borderRadius="0px"},onMouseDown:e=>{e.preventDefault()},className:`${_U} ${t.id}`,"data-id":`${e}-${t.id}`},t.locked&&y_.createElement(bU,F_({},k_,{size:"small",title:r.get("Tooltip.selections.locked")})),y_.createElement("span",{style:d,dir:x},t.text),n&&m&&y_.createElement(bU,F_({},C_,{size:"small",style:{margin:"0 8px"}})));return y_.createElement(y_.Fragment,null,t.icon&&t.icon.onClick&&y_.createElement(TU,{variant:"outlined",disabled:this.state.disableCyclicButton||this.state.inSelection,onClick:i?void 0:()=>t.icon.onClick({onError:b})},y_.createElement(bU,F_({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip)}))),t.icon&&!t.icon.onClick&&y_.createElement(bU,F_({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip),style:{margin:"0 4px 0 0"}})),p,y_.createElement("div",{ref:this.alignToRef,style:{overflow:"hidden",pointerEvents:m?"auto":"none",height:"100%"}},w),n&&m&&y_.createElement(EU,{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"),isCyclicFFEnabled:this.props.isCyclicFFEnabled}))}}function NU(e){return{top:"bottom",bottom:"top",left:"right",right:"left"}[e]}function OU(e){function t(e){return!e.isDimension&&Ng.getValue(e,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.length")>0}return{renderer:"react",disableTriggers:!0,preferredSize:function(){const{height:n}=e.measureText({text:"M",fontSize:this.style.fontSize,fontFamily:this.style.fontFamily});return this.settings.settings.isDimension||t(this.settings.settings)?Math.max(28,n):Math.max(20,n)},render(){const{settings:{app:e,disabled:n,explicitItemInfos:r,hyperCube:i,hyperCubeDef:o,isDimension:a,minWidth:s,model:l,onChangeToAlternative:c,padding:u,rtl:d,selections:f,skipAttributeExpressions:h,translator:p,supportConditional:m=!1,isEnabled:g},layout:{dock:y}}=this.settings,v="top"!==y&&"bottom"!==y||!d?"ltr":"rtl",b=function(e,t){const n={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",height:"100%"};return"left"===e?(n.width=`${t.height}px`,n.height=`${t.width}px`,n.transform=`rotate(-90deg) translate(-${t.height}px, 0)`,n.transformOrigin="top left"):"right"===e&&(n.width=`${t.height}px`,n.height=`${t.width}px`,n.transform=`rotate(90deg) translate(0, -${t.width}px)`,n.transformOrigin="top left"),n}(y,this.rect),x=o&&o.qLayoutExclude&&o.qLayoutExclude.qHyperCubeDef,w=x&&x[a?"qDimensions":"qMeasures"]||[],k=r||i[a?"qDimensionInfo":"qMeasureInfo"],S=a?P_:L_,C=a?I_:z_,M=Boolean(l&&l.colorSupport&&l.modifiers),E=M&&((_=this.settings.settings).isDimension&&Ng.getValue(_,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.length")>0||t(this.settings.settings));var _;const D=g("PS_21223_CYCLIC_GROUPS"),q=k.map(((t,r)=>{var i;const o="number"==typeof t.explicitColumn?t.explicitColumn:r,g=C(t,o,l,e),v=r===k.length-1,b=D&&Boolean(e)&&a&&"N"!==t.qGrouping,x=M||b?S({column:o,activeInfo:t,altList:w,app:e,dir:d?"rtl":"ltr",dock:NU(y),model:l,onChange:c,skipAttributeExpressions:h,translator:p,allowChangeOfAlternatives:M,isCyclicFFEnabled:D}):void 0;return y_.createElement(y_.Fragment,{key:t.cId},y_.createElement(RU,{chartId:null!==(i=null==l?void 0:l.id)&&void 0!==i?i:"",showGroupDimOptions:b,popover:x,titleData:g,model:l,translator:p,selections:f,disabled:n(),style:this.style,isDimension:a,padding:u,minWidth:s,hasAlternative:E,supportConditional:m,isCyclicFFEnabled:D}),!v&&y_.createElement("span",{style:{lineHeight:"normal",...this.style}},", "))}));return y_.createElement("div",{style:b,dir:v},q)}}}RU.propTypes={disabled:V_.bool.isRequired,padding:V_.string,minWidth:V_.string,titleData:V_.shape({breadcrumbs:V_.arrayOf(V_.string).isRequired,icon:V_.shape({path:V_.shape({d:V_.string.isRequired}),tooltip:V_.string.isRequired,onClick:V_.func}),index:V_.number.isRequired,locked:V_.bool.isRequired,text:V_.string.isRequired,popoverText:V_.string.isRequired,drillUp:V_.func,id:V_.string.isRequired}).isRequired,popover:V_.shape({dir:V_.string.isRequired,dock:V_.string.isRequired,getPopoverOptions:V_.func.isRequired}),translator:V_.shape({get:V_.func.isRequired}).isRequired,selections:V_.shape({isActive:V_.func,addListener:V_.func,removeListener:V_.func}),style:V_.shape({fontSize:V_.string,color:V_.string,fontFamily:V_.string}).isRequired,isDimension:V_.bool.isRequired,hasAlternative:V_.bool.isRequired,supportConditional:V_.bool.isRequired,isCyclicFFEnabled:V_.bool.isRequired,showGroupDimOptions:V_.bool.isRequired},RU.defaultProps={popover:null,selections:null,padding:"",minWidth:""};const AU=ID({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 PU=FD({productionPrefix:"q24fd",disableGlobal:!0,seed:""});function IU(){function e({x:e,y:t,width:n,height:r,scaleRatio:i,margin:o}={}){const a={x:0,y:0,width:0,height:0,scaleRatio:{x:1,y:1},margin:{left:0,top:0}};return a.x=Number.isNaN(e)?a.x:e,a.y=Number.isNaN(t)?a.y:t,a.width=Number.isNaN(n)?a.width:n,a.height=Number.isNaN(r)?a.height:r,void 0!==i&&(a.scaleRatio.x=Number.isNaN(i.x)?a.scaleRatio.x:i.x,a.scaleRatio.y=Number.isNaN(i.y)?a.scaleRatio.y:i.y),void 0!==o&&(a.margin.left=Number.isNaN(o.left)?0:o.left,a.margin.top=Number.isNaN(o.top)?0:o.top),a}return function(t={}){const{createElement:n=document.createElement.bind(document)}=t;let r,i=e();const o={element:()=>r,root:()=>r,appendTo:e=>(r||(r=n("div"),r.style.position="absolute",r.style["-webkit-font-smoothing"]="antialiased",r.style["-moz-osx-font-smoothing"]="antialiased",r.style.pointerEvents="none"),e.appendChild(r),r),render(e){if(!r)return!1;const t=i.scaleRatio.x,n=i.scaleRatio.y;return r.style.left=`${Math.round(i.margin.left+i.x*t)}px`,r.style.top=`${Math.round(i.margin.top+i.y*n)}px`,r.style.width=`${Math.round(i.width)}px`,r.style.height=`${Math.round(i.height)}px`,r.style.transform=`scale(${t}, ${n})`,r.style.transformOrigin="top left",KV.render(function(e,t){return y_.createElement(LR,{generateClassName:t},y_.createElement(DN,{theme:AU},e))}(e,PU),r),!0},itemsAt:()=>[],findShapes:()=>[],clear:()=>(r&&KV.unmountComponentAtNode(r),o),destroy(){r&&r.parentElement&&(KV.unmountComponentAtNode(r),r.parentElement.removeChild(r)),r=null},size:t=>(t&&(i=e(t)),i)};return o}}var LU={black:"#000",white:"#fff"};var zU={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var FU={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var jU={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var $U={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var HU={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};var VU={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var BU={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 UU(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 WU=Object.freeze({__proto__:null,default:UU}),YU="$$material";function KU(){return KU=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},KU.apply(this,arguments)}function GU(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function XU(){return XU=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},XU.apply(this,arguments)}function ZU(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var JU=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,QU=ZU((function(e){return JU.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var eW=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),tW="-ms-",nW="-moz-",rW="-webkit-",iW="comm",oW="rule",aW="decl",sW="@keyframes",lW=Math.abs,cW=String.fromCharCode,uW=Object.assign;function dW(e){return e.trim()}function fW(e,t,n){return e.replace(t,n)}function hW(e,t){return e.indexOf(t)}function pW(e,t){return 0|e.charCodeAt(t)}function mW(e,t,n){return e.slice(t,n)}function gW(e){return e.length}function yW(e){return e.length}function vW(e,t){return t.push(e),e}var bW=1,xW=1,wW=0,kW=0,SW=0,CW="";function MW(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:bW,column:xW,length:a,return:""}}function EW(e,t){return uW(MW("",null,null,"",null,null,0),e,{length:-e.length},t)}function _W(){return SW=kW>0?pW(CW,--kW):0,xW--,10===SW&&(xW=1,bW--),SW}function DW(){return SW=kW<wW?pW(CW,kW++):0,xW++,10===SW&&(xW=1,bW++),SW}function qW(){return pW(CW,kW)}function TW(){return kW}function RW(e,t){return mW(CW,e,t)}function NW(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 OW(e){return bW=xW=1,wW=gW(CW=e),kW=0,[]}function AW(e){return CW="",e}function PW(e){return dW(RW(kW-1,zW(91===e?e+2:40===e?e+1:e)))}function IW(e){for(;(SW=qW())&&SW<33;)DW();return NW(e)>2||NW(SW)>3?"":" "}function LW(e,t){for(;--t&&DW()&&!(SW<48||SW>102||SW>57&&SW<65||SW>70&&SW<97););return RW(e,TW()+(t<6&&32==qW()&&32==DW()))}function zW(e){for(;DW();)switch(SW){case e:return kW;case 34:case 39:34!==e&&39!==e&&zW(SW);break;case 40:41===e&&zW(e);break;case 92:DW()}return kW}function FW(e,t){for(;DW()&&e+SW!==57&&(e+SW!==84||47!==qW()););return"/*"+RW(t,kW-1)+"*"+cW(47===e?e:DW())}function jW(e){for(;!NW(qW());)DW();return RW(e,kW)}function $W(e){return AW(HW("",null,null,null,[""],e=OW(e),0,[0],e))}function HW(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,f=0,h=0,p=0,m=1,g=1,y=1,v=0,b="",x=i,w=o,k=r,S=b;g;)switch(p=v,v=DW()){case 40:if(108!=p&&58==pW(S,d-1)){-1!=hW(S+=fW(PW(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:S+=PW(v);break;case 9:case 10:case 13:case 32:S+=IW(p);break;case 92:S+=LW(TW()-1,7);continue;case 47:switch(qW()){case 42:case 47:vW(BW(FW(DW(),TW()),t,n),l);break;default:S+="/"}break;case 123*m:s[c++]=gW(S)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==y&&(S=fW(S,/\f/g,"")),h>0&&gW(S)-d&&vW(h>32?UW(S+";",r,n,d-1):UW(fW(S," ","")+";",r,n,d-2),l);break;case 59:S+=";";default:if(vW(k=VW(S,t,n,c,u,i,s,b,x=[],w=[],d),o),123===v)if(0===u)HW(S,t,k,k,x,o,d,s,w);else switch(99===f&&110===pW(S,3)?100:f){case 100:case 108:case 109:case 115:HW(e,k,k,r&&vW(VW(e,k,k,0,0,i,s,b,i,x=[],d),w),i,w,d,s,r?x:w);break;default:HW(S,k,k,k,[""],w,0,s,w)}}c=u=h=0,m=y=1,b=S="",d=a;break;case 58:d=1+gW(S),h=p;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==_W())continue;switch(S+=cW(v),v*m){case 38:y=u>0?1:(S+="\f",-1);break;case 44:s[c++]=(gW(S)-1)*y,y=1;break;case 64:45===qW()&&(S+=PW(DW())),f=qW(),u=d=gW(b=S+=jW(TW())),v++;break;case 45:45===p&&2==gW(S)&&(m=0)}}return o}function VW(e,t,n,r,i,o,a,s,l,c,u){for(var d=i-1,f=0===i?o:[""],h=yW(f),p=0,m=0,g=0;p<r;++p)for(var y=0,v=mW(e,d+1,d=lW(m=a[p])),b=e;y<h;++y)(b=dW(m>0?f[y]+" "+v:fW(v,/&\f/g,f[y])))&&(l[g++]=b);return MW(e,t,n,0===i?oW:s,l,c,u)}function BW(e,t,n){return MW(e,t,n,iW,cW(SW),mW(e,2,-2),0)}function UW(e,t,n,r){return MW(e,t,n,aW,mW(e,0,r),mW(e,r+1,-1),r)}function WW(e,t){for(var n="",r=yW(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function YW(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case aW:return e.return=e.return||e.value;case iW:return"";case sW:return e.return=e.value+"{"+WW(e.children,r)+"}";case oW:e.value=e.props.join(",")}return gW(n=WW(e.children,r))?e.return=e.value+"{"+n+"}":""}function KW(e){var t=yW(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}var GW=function(e,t,n){for(var r=0,i=0;r=i,i=qW(),38===r&&12===i&&(t[n]=1),!NW(i);)DW();return RW(e,kW)},XW=function(e,t){return AW(function(e,t){var n=-1,r=44;do{switch(NW(r)){case 0:38===r&&12===qW()&&(t[n]=1),e[n]+=GW(kW-1,t,n);break;case 2:e[n]+=PW(r);break;case 4:if(44===r){e[++n]=58===qW()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=cW(r)}}while(r=DW());return e}(OW(e),t))},ZW=new WeakMap,JW=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)||ZW.get(n))&&!r){ZW.set(e,!0);for(var i=[],o=XW(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},QW=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function eY(e,t){switch(function(e,t){return 45^pW(e,0)?(((t<<2^pW(e,0))<<2^pW(e,1))<<2^pW(e,2))<<2^pW(e,3):0}(e,t)){case 5103:return rW+"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 rW+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return rW+e+nW+e+tW+e+e;case 6828:case 4268:return rW+e+tW+e+e;case 6165:return rW+e+tW+"flex-"+e+e;case 5187:return rW+e+fW(e,/(\w+).+(:[^]+)/,rW+"box-$1$2"+tW+"flex-$1$2")+e;case 5443:return rW+e+tW+"flex-item-"+fW(e,/flex-|-self/,"")+e;case 4675:return rW+e+tW+"flex-line-pack"+fW(e,/align-content|flex-|-self/,"")+e;case 5548:return rW+e+tW+fW(e,"shrink","negative")+e;case 5292:return rW+e+tW+fW(e,"basis","preferred-size")+e;case 6060:return rW+"box-"+fW(e,"-grow","")+rW+e+tW+fW(e,"grow","positive")+e;case 4554:return rW+fW(e,/([^-])(transform)/g,"$1"+rW+"$2")+e;case 6187:return fW(fW(fW(e,/(zoom-|grab)/,rW+"$1"),/(image-set)/,rW+"$1"),e,"")+e;case 5495:case 3959:return fW(e,/(image-set\([^]*)/,rW+"$1$`$1");case 4968:return fW(fW(e,/(.+:)(flex-)?(.*)/,rW+"box-pack:$3"+tW+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+rW+e+e;case 4095:case 3583:case 4068:case 2532:return fW(e,/(.+)-inline(.+)/,rW+"$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(gW(e)-1-t>6)switch(pW(e,t+1)){case 109:if(45!==pW(e,t+4))break;case 102:return fW(e,/(.+:)(.+)-([^]+)/,"$1"+rW+"$2-$3$1"+nW+(108==pW(e,t+3)?"$3":"$2-$3"))+e;case 115:return~hW(e,"stretch")?eY(fW(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==pW(e,t+1))break;case 6444:switch(pW(e,gW(e)-3-(~hW(e,"!important")&&10))){case 107:return fW(e,":",":"+rW)+e;case 101:return fW(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+rW+(45===pW(e,14)?"inline-":"")+"box$3$1"+rW+"$2$3$1"+tW+"$2box$3")+e}break;case 5936:switch(pW(e,t+11)){case 114:return rW+e+tW+fW(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return rW+e+tW+fW(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return rW+e+tW+fW(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return rW+e+tW+e+e}return e}var tY="undefined"!=typeof document,nY=tY?void 0:function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}((function(){return ZU((function(){var e={};return function(t){return e[t]}}))})),rY=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case aW:e.return=eY(e.value,e.length);break;case sW:return WW([EW(e,{value:fW(e.value,"@","@"+rW)})],r);case oW: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 WW([EW(e,{props:[fW(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return WW([EW(e,{props:[fW(t,/:(plac\w+)/,":"+rW+"input-$1")]}),EW(e,{props:[fW(t,/:(plac\w+)/,":-moz-$1")]}),EW(e,{props:[fW(t,/:(plac\w+)/,tW+"input-$1")]})],r)}return""}))}}],iY=function(e){var t=e.key;if(tY&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,i,o=e.stylisPlugins||rY,a={},s=[];tY&&(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=[JW,QW];if(tY){var u,d=[YW,(l=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&l(e)})],f=KW(c.concat(o,d));i=function(e,t,n,r){u=n,function(e){WW($W(e),f)}(e?e+"{"+t.styles+"}":t.styles),r&&(y.inserted[t.name]=!0)}}else{var h=[YW],p=KW(c.concat(o,h)),m=nY(o)(t),g=function(e,t){var n=t.name;return void 0===m[n]&&(m[n]=function(e){return WW($W(e),p)}(e?e+"{"+t.styles+"}":t.styles)),m[n]};i=function(e,t,n,r){var i=t.name,o=g(e,t);return void 0===y.compat?(r&&(y.inserted[i]=!0),o):r?void(y.inserted[i]=o):o}}var y={key:t,sheet:new eW({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return y.sheet.hydrate(s),y},oY="undefined"!=typeof document;var aY=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===oY&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},sY=function(e,t,n){aY(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i="",o=t;do{var a=e.insert(t===o?"."+r:"",o,e.sheet,!0);oY||void 0===a||(i+=a),o=o.next}while(void 0!==o);if(!oY&&0!==i.length)return i}};var lY={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},cY=/[A-Z]|^ms/g,uY=/_EMO_([^_]+?)_([^]*?)_EMO_/g,dY=function(e){return 45===e.charCodeAt(1)},fY=function(e){return null!=e&&"boolean"!=typeof e},hY=ZU((function(e){return dY(e)?e:e.replace(cY,"-$&").toLowerCase()})),pY=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(uY,(function(e,t,n){return gY={name:t,styles:n,next:gY},t}))}return 1===lY[e]||dY(e)||"number"!=typeof t||0===t?t:t+"px"};function mY(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return gY={name:n.name,styles:n.styles,next:gY},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)gY={name:r.name,styles:r.styles,next:gY},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=mY(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":fY(a)&&(r+=hY(o)+":"+pY(o,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=mY(e,t,a);switch(o){case"animation":case"animationName":r+=hY(o)+":"+s+";";break;default:r+=o+"{"+s+"}"}}else for(var l=0;l<a.length;l++)fY(a[l])&&(r+=hY(o)+":"+pY(o,a[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var i=gY,o=n(e);return gY=i,mY(e,t,o)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var gY,yY=/label:\s*([^\s;\n{]+)\s*(;|$)/g,vY=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";gY=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=mY(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++)i+=mY(n,t,e[a]),r&&(i+=o[a]);yY.lastIndex=0;for(var s,l="";null!==(s=yY.exec(i));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:c,styles:i,next:gY}},bY="undefined"!=typeof document,xY=function(e){return e()},wY=!!v_.useInsertionEffect&&v_.useInsertionEffect,kY=bY&&wY||xY,SY=wY||g_.useLayoutEffect,CY="undefined"!=typeof document,MY=g_.createContext("undefined"!=typeof HTMLElement?iY({key:"css"}):null),EY=MY.Provider,_Y=function(e){return g_.forwardRef((function(t,n){var r=g_.useContext(MY);return e(t,r,n)}))};CY||(_Y=function(e){return function(t){var n=g_.useContext(MY);return null===n?(n=iY({key:"css"}),g_.createElement(MY.Provider,{value:n},e(t,n))):e(t,n)}});var DY=g_.createContext({}),qY=_Y((function(e,t){var n=e.styles,r=vY([n],void 0,g_.useContext(DY));if(!CY){for(var i,o=r.name,a=r.styles,s=r.next;void 0!==s;)o+=" "+s.name,a+=s.styles,s=s.next;var l=!0===t.compat,c=t.insert("",{name:o,styles:a},t.sheet,l);return l?null:g_.createElement("style",((i={})["data-emotion"]=t.key+"-global "+o,i.dangerouslySetInnerHTML={__html:c},i.nonce=t.sheet.nonce,i))}var u=g_.useRef();return SY((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,o=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==o&&(i=!0,o.setAttribute("data-emotion",e),n.hydrate([o])),u.current=[n,i],function(){n.flush()}}),[t]),SY((function(){var e=u.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&sY(t,r.next,!0),n.tags.length){var i=n.tags[n.tags.length-1].nextElementSibling;n.before=i,n.flush()}t.insert("",r,n,!1)}}),[t,r.name]),null}));function TY(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return vY(t)}var RY=function(){var e=TY.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_"}}},NY=QU,OY=function(e){return"theme"!==e},AY=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?NY:OY},PY=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},IY="undefined"!=typeof document,LY=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;aY(t,n,r);var i=kY((function(){return sY(t,n,r)}));if(!IY&&void 0!==i){for(var o,a=n.name,s=n.next;void 0!==s;)a+=" "+s.name,s=s.next;return g_.createElement("style",((o={})["data-emotion"]=t.key+" "+a,o.dangerouslySetInnerHTML={__html:i},o.nonce=t.sheet.nonce,o))}return null},zY=function e(t,n){var r,i,o=t.__emotion_real===t,a=o&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var s=PY(t,n,o),l=s||AY(a),c=!l("as");return function(){var u=arguments,d=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{d.push(u[0][0]);for(var f=u.length,h=1;h<f;h++)d.push(u[h],u[0][h])}var p=_Y((function(e,t,n){var r,o,u,f,h=c&&e.as||a,p="",m=[],g=e;if(null==e.theme){for(var y in g={},e)g[y]=e[y];g.theme=g_.useContext(DY)}"string"==typeof e.className?(r=t.registered,o=m,u=e.className,f="",u.split(" ").forEach((function(e){void 0!==r[e]?o.push(r[e]+";"):f+=e+" "})),p=f):null!=e.className&&(p=e.className+" ");var v=vY(d.concat(m),t.registered,g);p+=t.key+"-"+v.name,void 0!==i&&(p+=" "+i);var b=c&&void 0===s?AY(h):l,x={};for(var w in e)c&&"as"===w||b(w)&&(x[w]=e[w]);return x.className=p,x.ref=n,g_.createElement(g_.Fragment,null,g_.createElement(LY,{cache:t,serialized:v,isStringTag:"string"==typeof h}),g_.createElement(h,x))}));return p.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",p.defaultProps=t.defaultProps,p.__emotion_real=p,p.__emotion_base=a,p.__emotion_styles=d,p.__emotion_forwardProp=s,Object.defineProperty(p,"toString",{value:function(){return"."+i}}),p.withComponent=function(t,r){return e(t,XU({},n,r,{shouldForwardProp:PY(p,r,!0)})).apply(void 0,d)},p}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){zY[e]=zY(e)}));var FY={exports:{}},jY={},$Y=g_,HY=Symbol.for("react.element"),VY=Symbol.for("react.fragment"),BY=Object.prototype.hasOwnProperty,UY=$Y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,WY={key:!0,ref:!0,__self:!0,__source:!0};function YY(e,t,n){var r,i={},o=null,a=null;for(r in void 0!==n&&(o=""+n),void 0!==t.key&&(o=""+t.key),void 0!==t.ref&&(a=t.ref),t)BY.call(t,r)&&!WY.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:HY,type:e,key:o,ref:a,props:i,_owner:UY.current}}jY.Fragment=VY,jY.jsx=YY,jY.jsxs=YY,FY.exports=jY;var KY=FY.exports;let GY;"object"==typeof document&&(GY=iY({key:"css",prepend:!0}));var XY=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 KY.jsx(qY,{styles:r})}
|
|
42
|
+
*/function XN(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var ZN=new Set,JN={};function QN(e,t){eO(e,t),eO(e+"Capture",t)}function eO(e,t){for(JN[e]=t,e=0;e<t.length;e++)ZN.add(t[e])}var tO=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),nO=Object.prototype.hasOwnProperty,rO=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,iO={},oO={};function aO(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var sO={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){sO[e]=new aO(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];sO[t]=new aO(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){sO[e]=new aO(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){sO[e]=new aO(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){sO[e]=new aO(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){sO[e]=new aO(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){sO[e]=new aO(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){sO[e]=new aO(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){sO[e]=new aO(e,5,!1,e.toLowerCase(),null,!1,!1)}));var lO=/[\-:]([a-z])/g;function cO(e){return e[1].toUpperCase()}function uO(e,t,n,r){var i=sO.hasOwnProperty(t)?sO[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!nO.call(oO,e)||!nO.call(iO,e)&&(rO.test(e)?oO[e]=!0:(iO[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(lO,cO);sO[t]=new aO(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(lO,cO);sO[t]=new aO(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(lO,cO);sO[t]=new aO(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){sO[e]=new aO(e,1,!1,e.toLowerCase(),null,!1,!1)})),sO.xlinkHref=new aO("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){sO[e]=new aO(e,1,!1,e.toLowerCase(),null,!0,!0)}));var dO=KN.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,fO=Symbol.for("react.element"),hO=Symbol.for("react.portal"),pO=Symbol.for("react.fragment"),mO=Symbol.for("react.strict_mode"),gO=Symbol.for("react.profiler"),yO=Symbol.for("react.provider"),vO=Symbol.for("react.context"),bO=Symbol.for("react.forward_ref"),xO=Symbol.for("react.suspense"),wO=Symbol.for("react.suspense_list"),kO=Symbol.for("react.memo"),SO=Symbol.for("react.lazy"),CO=Symbol.for("react.offscreen"),MO=Symbol.iterator;function EO(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=MO&&e[MO]||e["@@iterator"])?e:null}var _O,DO=Object.assign;function qO(e){if(void 0===_O)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);_O=t&&t[1]||""}return"\n"+_O+e}var TO=!1;function RO(e,t){if(!e||TO)return"";TO=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var i=t.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{TO=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?qO(e):""}function NO(e){switch(e.tag){case 5:return qO(e.type);case 16:return qO("Lazy");case 13:return qO("Suspense");case 19:return qO("SuspenseList");case 0:case 2:case 15:return e=RO(e.type,!1);case 11:return e=RO(e.type.render,!1);case 1:return e=RO(e.type,!0);default:return""}}function OO(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case pO:return"Fragment";case hO:return"Portal";case gO:return"Profiler";case mO:return"StrictMode";case xO:return"Suspense";case wO:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case vO:return(e.displayName||"Context")+".Consumer";case yO:return(e._context.displayName||"Context")+".Provider";case bO:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case kO:return null!==(t=e.displayName||null)?t:OO(e.type)||"Memo";case SO:t=e._payload,e=e._init;try{return OO(e(t))}catch(e){}}return null}function AO(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return OO(t);case 8:return t===mO?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function PO(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function IO(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function LO(e){e._valueTracker||(e._valueTracker=function(e){var t=IO(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function zO(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=IO(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function FO(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function jO(e,t){var n=t.checked;return DO({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function $O(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=PO(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function HO(e,t){null!=(t=t.checked)&&uO(e,"checked",t,!1)}function VO(e,t){HO(e,t);var n=PO(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?UO(e,t.type,n):t.hasOwnProperty("defaultValue")&&UO(e,t.type,PO(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function BO(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function UO(e,t,n){"number"===t&&FO(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var WO=Array.isArray;function YO(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+PO(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function KO(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(XN(91));return DO({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function GO(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(XN(92));if(WO(n)){if(1<n.length)throw Error(XN(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:PO(n)}}function XO(e,t){var n=PO(t.value),r=PO(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ZO(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function JO(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function QO(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?JO(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var eA,tA=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((eA=eA||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=eA.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function nA(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var rA={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},iA=["Webkit","ms","Moz","O"];function oA(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||rA.hasOwnProperty(e)&&rA[e]?(""+t).trim():t+"px"}function aA(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=oA(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(rA).forEach((function(e){iA.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),rA[t]=rA[e]}))}));var sA=DO({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function lA(e,t){if(t){if(sA[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(XN(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(XN(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(XN(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(XN(62))}}function cA(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var uA=null;function dA(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var fA=null,hA=null,pA=null;function mA(e){if(e=lz(e)){if("function"!=typeof fA)throw Error(XN(280));var t=e.stateNode;t&&(t=uz(t),fA(e.stateNode,e.type,t))}}function gA(e){hA?pA?pA.push(e):pA=[e]:hA=e}function yA(){if(hA){var e=hA,t=pA;if(pA=hA=null,mA(e),t)for(e=0;e<t.length;e++)mA(t[e])}}function vA(e,t){return e(t)}function bA(){}var xA=!1;function wA(e,t,n){if(xA)return e(t,n);xA=!0;try{return vA(e,t,n)}finally{xA=!1,(null!==hA||null!==pA)&&(bA(),yA())}}function kA(e,t){var n=e.stateNode;if(null===n)return null;var r=uz(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(XN(231,t,typeof n));return n}var SA=!1;if(tO)try{var CA={};Object.defineProperty(CA,"passive",{get:function(){SA=!0}}),window.addEventListener("test",CA,CA),window.removeEventListener("test",CA,CA)}catch(DJ){SA=!1}function MA(e,t,n,r,i,o,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var EA=!1,_A=null,DA=!1,qA=null,TA={onError:function(e){EA=!0,_A=e}};function RA(e,t,n,r,i,o,a,s,l){EA=!1,_A=null,MA.apply(TA,arguments)}function NA(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function OA(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function AA(e){if(NA(e)!==e)throw Error(XN(188))}function PA(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=NA(e)))throw Error(XN(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return AA(i),e;if(o===r)return AA(i),t;o=o.sibling}throw Error(XN(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a)throw Error(XN(189))}}if(n.alternate!==r)throw Error(XN(190))}if(3!==n.tag)throw Error(XN(188));return n.stateNode.current===n?e:t}(e),null!==e?IA(e):null}function IA(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=IA(e);if(null!==t)return t;e=e.sibling}return null}var LA=GN.unstable_scheduleCallback,zA=GN.unstable_cancelCallback,FA=GN.unstable_shouldYield,jA=GN.unstable_requestPaint,$A=GN.unstable_now,HA=GN.unstable_getCurrentPriorityLevel,VA=GN.unstable_ImmediatePriority,BA=GN.unstable_UserBlockingPriority,UA=GN.unstable_NormalPriority,WA=GN.unstable_LowPriority,YA=GN.unstable_IdlePriority,KA=null,GA=null;var XA=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(ZA(e)/JA|0)|0},ZA=Math.log,JA=Math.LN2;var QA=64,eP=4194304;function tP(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function nP(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=tP(s):0!==(o&=a)&&(r=tP(o))}else 0!==(a=n&~i)?r=tP(a):0!==o&&(r=tP(o));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&0!=(4194240&o)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-XA(t)),r|=e[n],t&=~i;return r}function rP(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function iP(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function oP(){var e=QA;return 0==(4194240&(QA<<=1))&&(QA=64),e}function aP(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function sP(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-XA(t)]=n}function lP(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-XA(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var cP=0;function uP(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var dP,fP,hP,pP,mP,gP=!1,yP=[],vP=null,bP=null,xP=null,wP=new Map,kP=new Map,SP=[],CP="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function MP(e,t){switch(e){case"focusin":case"focusout":vP=null;break;case"dragenter":case"dragleave":bP=null;break;case"mouseover":case"mouseout":xP=null;break;case"pointerover":case"pointerout":wP.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":kP.delete(t.pointerId)}}function EP(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&(null!==(t=lz(t))&&fP(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function _P(e){var t=sz(e.target);if(null!==t){var n=NA(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=OA(n)))return e.blockedOn=t,void mP(e.priority,(function(){hP(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function DP(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=FP(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=lz(n))&&fP(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);uA=r,n.target.dispatchEvent(r),uA=null,t.shift()}return!0}function qP(e,t,n){DP(e)&&n.delete(t)}function TP(){gP=!1,null!==vP&&DP(vP)&&(vP=null),null!==bP&&DP(bP)&&(bP=null),null!==xP&&DP(xP)&&(xP=null),wP.forEach(qP),kP.forEach(qP)}function RP(e,t){e.blockedOn===t&&(e.blockedOn=null,gP||(gP=!0,GN.unstable_scheduleCallback(GN.unstable_NormalPriority,TP)))}function NP(e){function t(t){return RP(t,e)}if(0<yP.length){RP(yP[0],e);for(var n=1;n<yP.length;n++){var r=yP[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==vP&&RP(vP,e),null!==bP&&RP(bP,e),null!==xP&&RP(xP,e),wP.forEach(t),kP.forEach(t),n=0;n<SP.length;n++)(r=SP[n]).blockedOn===e&&(r.blockedOn=null);for(;0<SP.length&&null===(n=SP[0]).blockedOn;)_P(n),null===n.blockedOn&&SP.shift()}var OP=dO.ReactCurrentBatchConfig,AP=!0;function PP(e,t,n,r){var i=cP,o=OP.transition;OP.transition=null;try{cP=1,LP(e,t,n,r)}finally{cP=i,OP.transition=o}}function IP(e,t,n,r){var i=cP,o=OP.transition;OP.transition=null;try{cP=4,LP(e,t,n,r)}finally{cP=i,OP.transition=o}}function LP(e,t,n,r){if(AP){var i=FP(e,t,n,r);if(null===i)OL(e,t,r,zP,n),MP(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return vP=EP(vP,e,t,n,r,i),!0;case"dragenter":return bP=EP(bP,e,t,n,r,i),!0;case"mouseover":return xP=EP(xP,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return wP.set(o,EP(wP.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,kP.set(o,EP(kP.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(MP(e,r),4&t&&-1<CP.indexOf(e)){for(;null!==i;){var o=lz(i);if(null!==o&&dP(o),null===(o=FP(e,t,n,r))&&OL(e,t,r,zP,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else OL(e,t,r,null,n)}}var zP=null;function FP(e,t,n,r){if(zP=null,null!==(e=sz(e=dA(r))))if(null===(t=NA(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=OA(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return zP=e,null}function jP(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(HA()){case VA:return 1;case BA:return 4;case UA:case WA:return 16;case YA:return 536870912;default:return 16}default:return 16}}var $P=null,HP=null,VP=null;function BP(){if(VP)return VP;var e,t,n=HP,r=n.length,i="value"in $P?$P.value:$P.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return VP=i.slice(e,1<t?1-t:void 0)}function UP(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function WP(){return!0}function YP(){return!1}function KP(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?WP:YP,this.isPropagationStopped=YP,this}return DO(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=WP)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=WP)},persist:function(){},isPersistent:WP}),t}var GP,XP,ZP,JP={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},QP=KP(JP),eI=DO({},JP,{view:0,detail:0}),tI=KP(eI),nI=DO({},eI,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:pI,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ZP&&(ZP&&"mousemove"===e.type?(GP=e.screenX-ZP.screenX,XP=e.screenY-ZP.screenY):XP=GP=0,ZP=e),GP)},movementY:function(e){return"movementY"in e?e.movementY:XP}}),rI=KP(nI),iI=KP(DO({},nI,{dataTransfer:0})),oI=KP(DO({},eI,{relatedTarget:0})),aI=KP(DO({},JP,{animationName:0,elapsedTime:0,pseudoElement:0})),sI=DO({},JP,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),lI=KP(sI),cI=KP(DO({},JP,{data:0})),uI={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},dI={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},fI={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function hI(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=fI[e])&&!!t[e]}function pI(){return hI}var mI=DO({},eI,{key:function(e){if(e.key){var t=uI[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=UP(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?dI[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:pI,charCode:function(e){return"keypress"===e.type?UP(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?UP(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),gI=KP(mI),yI=KP(DO({},nI,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),vI=KP(DO({},eI,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:pI})),bI=KP(DO({},JP,{propertyName:0,elapsedTime:0,pseudoElement:0})),xI=DO({},nI,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),wI=KP(xI),kI=[9,13,27,32],SI=tO&&"CompositionEvent"in window,CI=null;tO&&"documentMode"in document&&(CI=document.documentMode);var MI=tO&&"TextEvent"in window&&!CI,EI=tO&&(!SI||CI&&8<CI&&11>=CI),_I=String.fromCharCode(32),DI=!1;function qI(e,t){switch(e){case"keyup":return-1!==kI.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function TI(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var RI=!1;var NI={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function OI(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!NI[e.type]:"textarea"===t}function AI(e,t,n,r){gA(r),0<(t=PL(t,"onChange")).length&&(n=new QP("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var PI=null,II=null;function LI(e){_L(e,0)}function zI(e){if(zO(cz(e)))return e}function FI(e,t){if("change"===e)return t}var jI=!1;if(tO){var $I;if(tO){var HI="oninput"in document;if(!HI){var VI=document.createElement("div");VI.setAttribute("oninput","return;"),HI="function"==typeof VI.oninput}$I=HI}else $I=!1;jI=$I&&(!document.documentMode||9<document.documentMode)}function BI(){PI&&(PI.detachEvent("onpropertychange",UI),II=PI=null)}function UI(e){if("value"===e.propertyName&&zI(II)){var t=[];AI(t,II,e,dA(e)),wA(LI,t)}}function WI(e,t,n){"focusin"===e?(BI(),II=n,(PI=t).attachEvent("onpropertychange",UI)):"focusout"===e&&BI()}function YI(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return zI(II)}function KI(e,t){if("click"===e)return zI(t)}function GI(e,t){if("input"===e||"change"===e)return zI(t)}var XI="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function ZI(e,t){if(XI(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!nO.call(t,i)||!XI(e[i],t[i]))return!1}return!0}function JI(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function QI(e,t){var n,r=JI(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=JI(r)}}function eL(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?eL(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function tL(){for(var e=window,t=FO();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=FO((e=t.contentWindow).document)}return t}function nL(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function rL(e){var t=tL(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&eL(n.ownerDocument.documentElement,n)){if(null!==r&&nL(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=QI(n,o);var a=QI(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var iL=tO&&"documentMode"in document&&11>=document.documentMode,oL=null,aL=null,sL=null,lL=!1;function cL(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;lL||null==oL||oL!==FO(r)||("selectionStart"in(r=oL)&&nL(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},sL&&ZI(sL,r)||(sL=r,0<(r=PL(aL,"onSelect")).length&&(t=new QP("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=oL)))}function uL(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var dL={animationend:uL("Animation","AnimationEnd"),animationiteration:uL("Animation","AnimationIteration"),animationstart:uL("Animation","AnimationStart"),transitionend:uL("Transition","TransitionEnd")},fL={},hL={};function pL(e){if(fL[e])return fL[e];if(!dL[e])return e;var t,n=dL[e];for(t in n)if(n.hasOwnProperty(t)&&t in hL)return fL[e]=n[t];return e}tO&&(hL=document.createElement("div").style,"AnimationEvent"in window||(delete dL.animationend.animation,delete dL.animationiteration.animation,delete dL.animationstart.animation),"TransitionEvent"in window||delete dL.transitionend.transition);var mL=pL("animationend"),gL=pL("animationiteration"),yL=pL("animationstart"),vL=pL("transitionend"),bL=new Map,xL="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function wL(e,t){bL.set(e,t),QN(t,[e])}for(var kL=0;kL<xL.length;kL++){var SL=xL[kL];wL(SL.toLowerCase(),"on"+(SL[0].toUpperCase()+SL.slice(1)))}wL(mL,"onAnimationEnd"),wL(gL,"onAnimationIteration"),wL(yL,"onAnimationStart"),wL("dblclick","onDoubleClick"),wL("focusin","onFocus"),wL("focusout","onBlur"),wL(vL,"onTransitionEnd"),eO("onMouseEnter",["mouseout","mouseover"]),eO("onMouseLeave",["mouseout","mouseover"]),eO("onPointerEnter",["pointerout","pointerover"]),eO("onPointerLeave",["pointerout","pointerover"]),QN("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),QN("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),QN("onBeforeInput",["compositionend","keypress","textInput","paste"]),QN("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),QN("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),QN("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var CL="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ML=new Set("cancel close invalid load scroll toggle".split(" ").concat(CL));function EL(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,o,a,s,l){if(RA.apply(this,arguments),EA){if(!EA)throw Error(XN(198));var c=_A;EA=!1,_A=null,DA||(DA=!0,qA=c)}}(r,t,void 0,e),e.currentTarget=null}function _L(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;EL(i,s,c),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;EL(i,s,c),o=l}}}if(DA)throw e=qA,DA=!1,qA=null,e}function DL(e,t){var n=t[iz];void 0===n&&(n=t[iz]=new Set);var r=e+"__bubble";n.has(r)||(NL(t,e,2,!1),n.add(r))}function qL(e,t,n){var r=0;t&&(r|=4),NL(n,e,r,t)}var TL="_reactListening"+Math.random().toString(36).slice(2);function RL(e){if(!e[TL]){e[TL]=!0,ZN.forEach((function(t){"selectionchange"!==t&&(ML.has(t)||qL(t,!1,e),qL(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[TL]||(t[TL]=!0,qL("selectionchange",!1,t))}}function NL(e,t,n,r){switch(jP(t)){case 1:var i=PP;break;case 4:i=IP;break;default:i=LP}n=i.bind(null,t,n,e),i=void 0,!SA||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function OL(e,t,n,r,i){var o=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=sz(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}wA((function(){var r=o,i=dA(n),a=[];e:{var s=bL.get(e);if(void 0!==s){var l=QP,c=e;switch(e){case"keypress":if(0===UP(n))break e;case"keydown":case"keyup":l=gI;break;case"focusin":c="focus",l=oI;break;case"focusout":c="blur",l=oI;break;case"beforeblur":case"afterblur":l=oI;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=rI;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=iI;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=vI;break;case mL:case gL:case yL:l=aI;break;case vL:l=bI;break;case"scroll":l=tI;break;case"wheel":l=wI;break;case"copy":case"cut":case"paste":l=lI;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=yI}var u=0!=(4&t),d=!u&&"scroll"===e,f=u?null!==s?s+"Capture":null:s;u=[];for(var h,p=r;null!==p;){var m=(h=p).stateNode;if(5===h.tag&&null!==m&&(h=m,null!==f&&(null!=(m=kA(p,f))&&u.push(AL(p,m,h)))),d)break;p=p.return}0<u.length&&(s=new l(s,c,null,n,i),a.push({event:s,listeners:u}))}}if(0==(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===uA||!(c=n.relatedTarget||n.fromElement)||!sz(c)&&!c[rz])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?sz(c):null)&&(c!==(d=NA(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=rI,m="onMouseLeave",f="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(u=yI,m="onPointerLeave",f="onPointerEnter",p="pointer"),d=null==l?s:cz(l),h=null==c?s:cz(c),(s=new u(m,p+"leave",l,n,i)).target=d,s.relatedTarget=h,m=null,sz(i)===r&&((u=new u(f,p+"enter",c,n,i)).target=h,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(f=c,p=0,h=u=l;h;h=IL(h))p++;for(h=0,m=f;m;m=IL(m))h++;for(;0<p-h;)u=IL(u),p--;for(;0<h-p;)f=IL(f),h--;for(;p--;){if(u===f||null!==f&&u===f.alternate)break e;u=IL(u),f=IL(f)}u=null}else u=null;null!==l&&LL(a,s,l,u,!1),null!==c&&null!==d&&LL(a,d,c,u,!0)}if("select"===(l=(s=r?cz(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=FI;else if(OI(s))if(jI)g=GI;else{g=YI;var y=WI}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=KI);switch(g&&(g=g(e,r))?AI(a,g,n,i):(y&&y(e,s,r),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&UO(s,"number",s.value)),y=r?cz(r):window,e){case"focusin":(OI(y)||"true"===y.contentEditable)&&(oL=y,aL=r,sL=null);break;case"focusout":sL=aL=oL=null;break;case"mousedown":lL=!0;break;case"contextmenu":case"mouseup":case"dragend":lL=!1,cL(a,n,i);break;case"selectionchange":if(iL)break;case"keydown":case"keyup":cL(a,n,i)}var v;if(SI)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else RI?qI(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(EI&&"ko"!==n.locale&&(RI||"onCompositionStart"!==b?"onCompositionEnd"===b&&RI&&(v=BP()):(HP="value"in($P=i)?$P.value:$P.textContent,RI=!0)),0<(y=PL(r,b)).length&&(b=new cI(b,e,null,n,i),a.push({event:b,listeners:y}),v?b.data=v:null!==(v=TI(n))&&(b.data=v))),(v=MI?function(e,t){switch(e){case"compositionend":return TI(t);case"keypress":return 32!==t.which?null:(DI=!0,_I);case"textInput":return(e=t.data)===_I&&DI?null:e;default:return null}}(e,n):function(e,t){if(RI)return"compositionend"===e||!SI&&qI(e,t)?(e=BP(),VP=HP=$P=null,RI=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return EI&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=PL(r,"onBeforeInput")).length&&(i=new cI("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=v))}_L(a,t)}))}function AL(e,t,n){return{instance:e,listener:t,currentTarget:n}}function PL(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=kA(e,n))&&r.unshift(AL(e,o,i)),null!=(o=kA(e,t))&&r.push(AL(e,o,i))),e=e.return}return r}function IL(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function LL(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,i?null!=(l=kA(n,o))&&a.unshift(AL(n,l,s)):i||null!=(l=kA(n,o))&&a.push(AL(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var zL=/\r\n?/g,FL=/\u0000|\uFFFD/g;function jL(e){return("string"==typeof e?e:""+e).replace(zL,"\n").replace(FL,"")}function $L(e,t,n){if(t=jL(t),jL(e)!==t&&n)throw Error(XN(425))}function HL(){}var VL=null,BL=null;function UL(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var WL="function"==typeof setTimeout?setTimeout:void 0,YL="function"==typeof clearTimeout?clearTimeout:void 0,KL="function"==typeof Promise?Promise:void 0,GL="function"==typeof queueMicrotask?queueMicrotask:void 0!==KL?function(e){return KL.resolve(null).then(e).catch(XL)}:WL;function XL(e){setTimeout((function(){throw e}))}function ZL(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void NP(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);NP(t)}function JL(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function QL(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var ez=Math.random().toString(36).slice(2),tz="__reactFiber$"+ez,nz="__reactProps$"+ez,rz="__reactContainer$"+ez,iz="__reactEvents$"+ez,oz="__reactListeners$"+ez,az="__reactHandles$"+ez;function sz(e){var t=e[tz];if(t)return t;for(var n=e.parentNode;n;){if(t=n[rz]||n[tz]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=QL(e);null!==e;){if(n=e[tz])return n;e=QL(e)}return t}n=(e=n).parentNode}return null}function lz(e){return!(e=e[tz]||e[rz])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function cz(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(XN(33))}function uz(e){return e[nz]||null}var dz=[],fz=-1;function hz(e){return{current:e}}function pz(e){0>fz||(e.current=dz[fz],dz[fz]=null,fz--)}function mz(e,t){fz++,dz[fz]=e.current,e.current=t}var gz={},yz=hz(gz),vz=hz(!1),bz=gz;function xz(e,t){var n=e.type.contextTypes;if(!n)return gz;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function wz(e){return null!=(e=e.childContextTypes)}function kz(){pz(vz),pz(yz)}function Sz(e,t,n){if(yz.current!==gz)throw Error(XN(168));mz(yz,t),mz(vz,n)}function Cz(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(XN(108,AO(e)||"Unknown",i));return DO({},n,r)}function Mz(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||gz,bz=yz.current,mz(yz,e),mz(vz,vz.current),!0}function Ez(e,t,n){var r=e.stateNode;if(!r)throw Error(XN(169));n?(e=Cz(e,t,bz),r.__reactInternalMemoizedMergedChildContext=e,pz(vz),pz(yz),mz(yz,e)):pz(vz),mz(vz,n)}var _z=null,Dz=!1,qz=!1;function Tz(e){null===_z?_z=[e]:_z.push(e)}function Rz(){if(!qz&&null!==_z){qz=!0;var e=0,t=cP;try{var n=_z;for(cP=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}_z=null,Dz=!1}catch(t){throw null!==_z&&(_z=_z.slice(e+1)),LA(VA,Rz),t}finally{cP=t,qz=!1}}return null}var Nz=[],Oz=0,Az=null,Pz=0,Iz=[],Lz=0,zz=null,Fz=1,jz="";function $z(e,t){Nz[Oz++]=Pz,Nz[Oz++]=Az,Az=e,Pz=t}function Hz(e,t,n){Iz[Lz++]=Fz,Iz[Lz++]=jz,Iz[Lz++]=zz,zz=e;var r=Fz;e=jz;var i=32-XA(r)-1;r&=~(1<<i),n+=1;var o=32-XA(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Fz=1<<32-XA(t)+i|n<<i|r,jz=o+e}else Fz=1<<o|n<<i|r,jz=e}function Vz(e){null!==e.return&&($z(e,1),Hz(e,1,0))}function Bz(e){for(;e===Az;)Az=Nz[--Oz],Nz[Oz]=null,Pz=Nz[--Oz],Nz[Oz]=null;for(;e===zz;)zz=Iz[--Lz],Iz[Lz]=null,jz=Iz[--Lz],Iz[Lz]=null,Fz=Iz[--Lz],Iz[Lz]=null}var Uz=null,Wz=null,Yz=!1,Kz=null;function Gz(e,t){var n=xV(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function Xz(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,Uz=e,Wz=JL(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,Uz=e,Wz=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==zz?{id:Fz,overflow:jz}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=xV(18,null,null,0)).stateNode=t,n.return=e,e.child=n,Uz=e,Wz=null,!0);default:return!1}}function Zz(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function Jz(e){if(Yz){var t=Wz;if(t){var n=t;if(!Xz(e,t)){if(Zz(e))throw Error(XN(418));t=JL(n.nextSibling);var r=Uz;t&&Xz(e,t)?Gz(r,n):(e.flags=-4097&e.flags|2,Yz=!1,Uz=e)}}else{if(Zz(e))throw Error(XN(418));e.flags=-4097&e.flags|2,Yz=!1,Uz=e}}}function Qz(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Uz=e}function eF(e){if(e!==Uz)return!1;if(!Yz)return Qz(e),Yz=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!UL(e.type,e.memoizedProps)),t&&(t=Wz)){if(Zz(e))throw tF(),Error(XN(418));for(;t;)Gz(e,t),t=JL(t.nextSibling)}if(Qz(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(XN(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Wz=JL(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Wz=null}}else Wz=Uz?JL(e.stateNode.nextSibling):null;return!0}function tF(){for(var e=Wz;e;)e=JL(e.nextSibling)}function nF(){Wz=Uz=null,Yz=!1}function rF(e){null===Kz?Kz=[e]:Kz.push(e)}var iF=dO.ReactCurrentBatchConfig;function oF(e,t){if(e&&e.defaultProps){for(var n in t=DO({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var aF=hz(null),sF=null,lF=null,cF=null;function uF(){cF=lF=sF=null}function dF(e){var t=aF.current;pz(aF),e._currentValue=t}function fF(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function hF(e,t){sF=e,cF=lF=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(l$=!0),e.firstContext=null)}function pF(e){var t=e._currentValue;if(cF!==e)if(e={context:e,memoizedValue:t,next:null},null===lF){if(null===sF)throw Error(XN(308));lF=e,sF.dependencies={lanes:0,firstContext:e}}else lF=lF.next=e;return t}var mF=null;function gF(e){null===mF?mF=[e]:mF.push(e)}function yF(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,gF(t)):(n.next=i.next,i.next=n),t.interleaved=n,vF(e,r)}function vF(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var bF=!1;function xF(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function wF(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function kF(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function SF(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&yH)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,vF(e,n)}return null===(i=r.interleaved)?(t.next=t,gF(r)):(t.next=i.next,i.next=t),r.interleaved=t,vF(e,n)}function CF(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,lP(e,n)}}function MF(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function EF(e,t,n,r){var i=e.updateQueue;bF=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?o=c:a.next=c,a=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==o){var d=i.baseState;for(a=0,u=c=l=null,s=o;;){var f=s.lane,h=s.eventTime;if((r&f)===f){null!==u&&(u=u.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,m=s;switch(f=t,h=n,m.tag){case 1:if("function"==typeof(p=m.payload)){d=p.call(h,d,f);break e}d=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null==(f="function"==typeof(p=m.payload)?p.call(h,d,f):p))break e;d=DO({},d,f);break e;case 2:bF=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=i.effects)?i.effects=[s]:f.push(s))}else h={eventTime:h,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=h,l=d):u=u.next=h,a|=f;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(f=s).next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}if(null===u&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);MH|=a,e.lanes=a,e.memoizedState=d}}function _F(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(XN(191,i));i.call(r)}}}var DF=(new KN.Component).refs;function qF(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:DO({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var TF={isMounted:function(e){return!!(e=e._reactInternals)&&NA(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=VH(),i=BH(e),o=kF(r,i);o.payload=t,null!=n&&(o.callback=n),null!==(t=SF(e,o,i))&&(UH(t,e,i,r),CF(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=VH(),i=BH(e),o=kF(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=SF(e,o,i))&&(UH(t,e,i,r),CF(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=VH(),r=BH(e),i=kF(n,r);i.tag=2,null!=t&&(i.callback=t),null!==(t=SF(e,i,r))&&(UH(t,e,r,n),CF(t,e,r))}};function RF(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!ZI(n,r)||!ZI(i,o))}function NF(e,t,n){var r=!1,i=gz,o=t.contextType;return"object"==typeof o&&null!==o?o=pF(o):(i=wz(t)?bz:yz.current,o=(r=null!=(r=t.contextTypes))?xz(e,i):gz),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=TF,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function OF(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&TF.enqueueReplaceState(t,t.state,null)}function AF(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=DF,xF(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=pF(o):(o=wz(t)?bz:yz.current,i.context=xz(e,o)),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(qF(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&TF.enqueueReplaceState(i,i.state,null),EF(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function PF(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(XN(309));var r=n.stateNode}if(!r)throw Error(XN(147,e));var i=r,o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=i.refs;t===DF&&(t=i.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!=typeof e)throw Error(XN(284));if(!n._owner)throw Error(XN(290,e))}return e}function IF(e,t){throw e=Object.prototype.toString.call(t),Error(XN(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function LF(e){return(0,e._init)(e._payload)}function zF(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=kV(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=EV(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function l(e,t,n,r){var o=n.type;return o===pO?u(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===SO&&LF(o)===t.type)?((r=i(t,n.props)).ref=PF(e,t,n),r.return=e,r):((r=SV(n.type,n.key,n.props,null,e.mode,r)).ref=PF(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=_V(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function u(e,t,n,r,o){return null===t||7!==t.tag?((t=CV(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=EV(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case fO:return(n=SV(t.type,t.key,t.props,null,e.mode,n)).ref=PF(e,null,t),n.return=e,n;case hO:return(t=_V(t,e.mode,n)).return=e,t;case SO:return d(e,(0,t._init)(t._payload),n)}if(WO(t)||EO(t))return(t=CV(t,e.mode,n,null)).return=e,t;IF(e,t)}return null}function f(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case fO:return n.key===i?l(e,t,n,r):null;case hO:return n.key===i?c(e,t,n,r):null;case SO:return f(e,t,(i=n._init)(n._payload),r)}if(WO(n)||EO(n))return null!==i?null:u(e,t,n,r,null);IF(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case fO:return l(t,e=e.get(null===r.key?n:r.key)||null,r,i);case hO:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case SO:return h(e,t,n,(0,r._init)(r._payload),i)}if(WO(r)||EO(r))return u(t,e=e.get(n)||null,r,i,null);IF(t,r)}return null}function p(i,a,s,l){for(var c=null,u=null,p=a,m=a=0,g=null;null!==p&&m<s.length;m++){p.index>m?(g=p,p=null):g=p.sibling;var y=f(i,p,s[m],l);if(null===y){null===p&&(p=g);break}e&&p&&null===y.alternate&&t(i,p),a=o(y,a,m),null===u?c=y:u.sibling=y,u=y,p=g}if(m===s.length)return n(i,p),Yz&&$z(i,m),c;if(null===p){for(;m<s.length;m++)null!==(p=d(i,s[m],l))&&(a=o(p,a,m),null===u?c=p:u.sibling=p,u=p);return Yz&&$z(i,m),c}for(p=r(i,p);m<s.length;m++)null!==(g=h(p,i,m,s[m],l))&&(e&&null!==g.alternate&&p.delete(null===g.key?m:g.key),a=o(g,a,m),null===u?c=g:u.sibling=g,u=g);return e&&p.forEach((function(e){return t(i,e)})),Yz&&$z(i,m),c}function m(i,a,s,l){var c=EO(s);if("function"!=typeof c)throw Error(XN(150));if(null==(s=c.call(s)))throw Error(XN(151));for(var u=c=null,p=a,m=a=0,g=null,y=s.next();null!==p&&!y.done;m++,y=s.next()){p.index>m?(g=p,p=null):g=p.sibling;var v=f(i,p,y.value,l);if(null===v){null===p&&(p=g);break}e&&p&&null===v.alternate&&t(i,p),a=o(v,a,m),null===u?c=v:u.sibling=v,u=v,p=g}if(y.done)return n(i,p),Yz&&$z(i,m),c;if(null===p){for(;!y.done;m++,y=s.next())null!==(y=d(i,y.value,l))&&(a=o(y,a,m),null===u?c=y:u.sibling=y,u=y);return Yz&&$z(i,m),c}for(p=r(i,p);!y.done;m++,y=s.next())null!==(y=h(p,i,m,y.value,l))&&(e&&null!==y.alternate&&p.delete(null===y.key?m:y.key),a=o(y,a,m),null===u?c=y:u.sibling=y,u=y);return e&&p.forEach((function(e){return t(i,e)})),Yz&&$z(i,m),c}return function e(r,o,s,l){if("object"==typeof s&&null!==s&&s.type===pO&&null===s.key&&(s=s.props.children),"object"==typeof s&&null!==s){switch(s.$$typeof){case fO:e:{for(var c=s.key,u=o;null!==u;){if(u.key===c){if((c=s.type)===pO){if(7===u.tag){n(r,u.sibling),(o=i(u,s.props.children)).return=r,r=o;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===SO&&LF(c)===u.type){n(r,u.sibling),(o=i(u,s.props)).ref=PF(r,u,s),o.return=r,r=o;break e}n(r,u);break}t(r,u),u=u.sibling}s.type===pO?((o=CV(s.props.children,r.mode,l,s.key)).return=r,r=o):((l=SV(s.type,s.key,s.props,null,r.mode,l)).ref=PF(r,o,s),l.return=r,r=l)}return a(r);case hO:e:{for(u=s.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===s.containerInfo&&o.stateNode.implementation===s.implementation){n(r,o.sibling),(o=i(o,s.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=_V(s,r.mode,l)).return=r,r=o}return a(r);case SO:return e(r,o,(u=s._init)(s._payload),l)}if(WO(s))return p(r,o,s,l);if(EO(s))return m(r,o,s,l);IF(r,s)}return"string"==typeof s&&""!==s||"number"==typeof s?(s=""+s,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,s)).return=r,r=o):(n(r,o),(o=EV(s,r.mode,l)).return=r,r=o),a(r)):n(r,o)}}var FF=zF(!0),jF=zF(!1),$F={},HF=hz($F),VF=hz($F),BF=hz($F);function UF(e){if(e===$F)throw Error(XN(174));return e}function WF(e,t){switch(mz(BF,t),mz(VF,e),mz(HF,$F),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:QO(null,"");break;default:t=QO(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}pz(HF),mz(HF,t)}function YF(){pz(HF),pz(VF),pz(BF)}function KF(e){UF(BF.current);var t=UF(HF.current),n=QO(t,e.type);t!==n&&(mz(VF,e),mz(HF,n))}function GF(e){VF.current===e&&(pz(HF),pz(VF))}var XF=hz(0);function ZF(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var JF=[];function QF(){for(var e=0;e<JF.length;e++)JF[e]._workInProgressVersionPrimary=null;JF.length=0}var ej=dO.ReactCurrentDispatcher,tj=dO.ReactCurrentBatchConfig,nj=0,rj=null,ij=null,oj=null,aj=!1,sj=!1,lj=0,cj=0;function uj(){throw Error(XN(321))}function dj(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!XI(e[n],t[n]))return!1;return!0}function fj(e,t,n,r,i,o){if(nj=o,rj=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ej.current=null===e||null===e.memoizedState?Gj:Xj,e=n(r,i),sj){o=0;do{if(sj=!1,lj=0,25<=o)throw Error(XN(301));o+=1,oj=ij=null,t.updateQueue=null,ej.current=Zj,e=n(r,i)}while(sj)}if(ej.current=Kj,t=null!==ij&&null!==ij.next,nj=0,oj=ij=rj=null,aj=!1,t)throw Error(XN(300));return e}function hj(){var e=0!==lj;return lj=0,e}function pj(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===oj?rj.memoizedState=oj=e:oj=oj.next=e,oj}function mj(){if(null===ij){var e=rj.alternate;e=null!==e?e.memoizedState:null}else e=ij.next;var t=null===oj?rj.memoizedState:oj.next;if(null!==t)oj=t,ij=e;else{if(null===e)throw Error(XN(310));e={memoizedState:(ij=e).memoizedState,baseState:ij.baseState,baseQueue:ij.baseQueue,queue:ij.queue,next:null},null===oj?rj.memoizedState=oj=e:oj=oj.next=e}return oj}function gj(e,t){return"function"==typeof t?t(e):t}function yj(e){var t=mj(),n=t.queue;if(null===n)throw Error(XN(311));n.lastRenderedReducer=e;var r=ij,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(null!==i){o=i.next,r=r.baseState;var s=a=null,l=null,c=o;do{var u=c.lane;if((nj&u)===u)null!==l&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===l?(s=l=d,a=r):l=l.next=d,rj.lanes|=u,MH|=u}c=c.next}while(null!==c&&c!==o);null===l?a=r:l.next=s,XI(r,t.memoizedState)||(l$=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{o=i.lane,rj.lanes|=o,MH|=o,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function vj(e){var t=mj(),n=t.queue;if(null===n)throw Error(XN(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var a=i=i.next;do{o=e(o,a.action),a=a.next}while(a!==i);XI(o,t.memoizedState)||(l$=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function bj(){}function xj(e,t){var n=rj,r=mj(),i=t(),o=!XI(r.memoizedState,i);if(o&&(r.memoizedState=i,l$=!0),r=r.queue,Nj(Sj.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||null!==oj&&1&oj.memoizedState.tag){if(n.flags|=2048,_j(9,kj.bind(null,n,r,i,t),void 0,null),null===vH)throw Error(XN(349));0!=(30&nj)||wj(n,t,i)}return i}function wj(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=rj.updateQueue)?(t={lastEffect:null,stores:null},rj.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function kj(e,t,n,r){t.value=n,t.getSnapshot=r,Cj(t)&&Mj(e)}function Sj(e,t,n){return n((function(){Cj(t)&&Mj(e)}))}function Cj(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!XI(e,n)}catch(e){return!0}}function Mj(e){var t=vF(e,1);null!==t&&UH(t,e,1,-1)}function Ej(e){var t=pj();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:gj,lastRenderedState:e},t.queue=e,e=e.dispatch=Bj.bind(null,rj,e),[t.memoizedState,e]}function _j(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=rj.updateQueue)?(t={lastEffect:null,stores:null},rj.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Dj(){return mj().memoizedState}function qj(e,t,n,r){var i=pj();rj.flags|=e,i.memoizedState=_j(1|t,n,void 0,void 0===r?null:r)}function Tj(e,t,n,r){var i=mj();r=void 0===r?null:r;var o=void 0;if(null!==ij){var a=ij.memoizedState;if(o=a.destroy,null!==r&&dj(r,a.deps))return void(i.memoizedState=_j(t,n,o,r))}rj.flags|=e,i.memoizedState=_j(1|t,n,o,r)}function Rj(e,t){return qj(8390656,8,e,t)}function Nj(e,t){return Tj(2048,8,e,t)}function Oj(e,t){return Tj(4,2,e,t)}function Aj(e,t){return Tj(4,4,e,t)}function Pj(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ij(e,t,n){return n=null!=n?n.concat([e]):null,Tj(4,4,Pj.bind(null,t,e),n)}function Lj(){}function zj(e,t){var n=mj();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&dj(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Fj(e,t){var n=mj();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&dj(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function jj(e,t,n){return 0==(21&nj)?(e.baseState&&(e.baseState=!1,l$=!0),e.memoizedState=n):(XI(n,t)||(n=oP(),rj.lanes|=n,MH|=n,e.baseState=!0),t)}function $j(e,t){var n=cP;cP=0!==n&&4>n?n:4,e(!0);var r=tj.transition;tj.transition={};try{e(!1),t()}finally{cP=n,tj.transition=r}}function Hj(){return mj().memoizedState}function Vj(e,t,n){var r=BH(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Uj(e))Wj(t,n);else if(null!==(n=yF(e,t,n,r))){UH(n,e,r,VH()),Yj(n,t,r)}}function Bj(e,t,n){var r=BH(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Uj(e))Wj(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,XI(s,a)){var l=t.interleaved;return null===l?(i.next=i,gF(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(e){}null!==(n=yF(e,t,i,r))&&(UH(n,e,r,i=VH()),Yj(n,t,r))}}function Uj(e){var t=e.alternate;return e===rj||null!==t&&t===rj}function Wj(e,t){sj=aj=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Yj(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,lP(e,n)}}var Kj={readContext:pF,useCallback:uj,useContext:uj,useEffect:uj,useImperativeHandle:uj,useInsertionEffect:uj,useLayoutEffect:uj,useMemo:uj,useReducer:uj,useRef:uj,useState:uj,useDebugValue:uj,useDeferredValue:uj,useTransition:uj,useMutableSource:uj,useSyncExternalStore:uj,useId:uj,unstable_isNewReconciler:!1},Gj={readContext:pF,useCallback:function(e,t){return pj().memoizedState=[e,void 0===t?null:t],e},useContext:pF,useEffect:Rj,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,qj(4194308,4,Pj.bind(null,t,e),n)},useLayoutEffect:function(e,t){return qj(4194308,4,e,t)},useInsertionEffect:function(e,t){return qj(4,2,e,t)},useMemo:function(e,t){var n=pj();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=pj();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Vj.bind(null,rj,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},pj().memoizedState=e},useState:Ej,useDebugValue:Lj,useDeferredValue:function(e){return pj().memoizedState=e},useTransition:function(){var e=Ej(!1),t=e[0];return e=$j.bind(null,e[1]),pj().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=rj,i=pj();if(Yz){if(void 0===n)throw Error(XN(407));n=n()}else{if(n=t(),null===vH)throw Error(XN(349));0!=(30&nj)||wj(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Rj(Sj.bind(null,r,o,e),[e]),r.flags|=2048,_j(9,kj.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=pj(),t=vH.identifierPrefix;if(Yz){var n=jz;t=":"+t+"R"+(n=(Fz&~(1<<32-XA(Fz)-1)).toString(32)+n),0<(n=lj++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=cj++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Xj={readContext:pF,useCallback:zj,useContext:pF,useEffect:Nj,useImperativeHandle:Ij,useInsertionEffect:Oj,useLayoutEffect:Aj,useMemo:Fj,useReducer:yj,useRef:Dj,useState:function(){return yj(gj)},useDebugValue:Lj,useDeferredValue:function(e){return jj(mj(),ij.memoizedState,e)},useTransition:function(){return[yj(gj)[0],mj().memoizedState]},useMutableSource:bj,useSyncExternalStore:xj,useId:Hj,unstable_isNewReconciler:!1},Zj={readContext:pF,useCallback:zj,useContext:pF,useEffect:Nj,useImperativeHandle:Ij,useInsertionEffect:Oj,useLayoutEffect:Aj,useMemo:Fj,useReducer:vj,useRef:Dj,useState:function(){return vj(gj)},useDebugValue:Lj,useDeferredValue:function(e){var t=mj();return null===ij?t.memoizedState=e:jj(t,ij.memoizedState,e)},useTransition:function(){return[vj(gj)[0],mj().memoizedState]},useMutableSource:bj,useSyncExternalStore:xj,useId:Hj,unstable_isNewReconciler:!1};function Jj(e,t){try{var n="",r=t;do{n+=NO(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i,digest:null}}function Qj(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function e$(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var t$="function"==typeof WeakMap?WeakMap:Map;function n$(e,t,n){(n=kF(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){OH||(OH=!0,AH=r),e$(0,t)},n}function r$(e,t,n){(n=kF(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){e$(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){e$(0,t),"function"!=typeof r&&(null===PH?PH=new Set([this]):PH.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function i$(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new t$;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=pV.bind(null,e,t,n),t.then(e,e))}function o$(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function a$(e,t,n,r,i){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=kF(-1,1)).tag=2,SF(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var s$=dO.ReactCurrentOwner,l$=!1;function c$(e,t,n,r){t.child=null===e?jF(t,null,n,r):FF(t,e.child,n,r)}function u$(e,t,n,r,i){n=n.render;var o=t.ref;return hF(t,i),r=fj(e,t,n,r,o,i),n=hj(),null===e||l$?(Yz&&n&&Vz(t),t.flags|=1,c$(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,O$(e,t,i))}function d$(e,t,n,r,i){if(null===e){var o=n.type;return"function"!=typeof o||wV(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=SV(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,f$(e,t,o,r,i))}if(o=e.child,0==(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:ZI)(a,r)&&e.ref===t.ref)return O$(e,t,i)}return t.flags|=1,(e=kV(o,r)).ref=t.ref,e.return=t,t.child=e}function f$(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(ZI(o,r)&&e.ref===t.ref){if(l$=!1,t.pendingProps=r=o,0==(e.lanes&i))return t.lanes=e.lanes,O$(e,t,i);0!=(131072&e.flags)&&(l$=!0)}}return m$(e,t,n,r,i)}function h$(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},mz(kH,wH),wH|=n;else{if(0==(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,mz(kH,wH),wH|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,mz(kH,wH),wH|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,mz(kH,wH),wH|=r;return c$(e,t,i,n),t.child}function p$(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function m$(e,t,n,r,i){var o=wz(n)?bz:yz.current;return o=xz(t,o),hF(t,i),n=fj(e,t,n,r,o,i),r=hj(),null===e||l$?(Yz&&r&&Vz(t),t.flags|=1,c$(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,O$(e,t,i))}function g$(e,t,n,r,i){if(wz(n)){var o=!0;Mz(t)}else o=!1;if(hF(t,i),null===t.stateNode)N$(e,t),NF(t,n,r),AF(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"==typeof c&&null!==c?c=pF(c):c=xz(t,c=wz(n)?bz:yz.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==c)&&OF(t,a,r,c),bF=!1;var f=t.memoizedState;a.state=f,EF(t,r,a,i),l=t.memoizedState,s!==r||f!==l||vz.current||bF?("function"==typeof u&&(qF(t,n,u,r),l=t.memoizedState),(s=bF||RF(t,n,s,r,f,l,c))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,wF(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:oF(t.type,s),a.props=c,d=t.pendingProps,f=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=pF(l):l=xz(t,l=wz(n)?bz:yz.current);var h=n.getDerivedStateFromProps;(u="function"==typeof h||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==l)&&OF(t,a,r,l),bF=!1,f=t.memoizedState,a.state=f,EF(t,r,a,i);var p=t.memoizedState;s!==d||f!==p||vz.current||bF?("function"==typeof h&&(qF(t,n,h,r),p=t.memoizedState),(c=bF||RF(t,n,c,r,f,p,l)||!1)?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=l,r=c):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return y$(e,t,n,r,o,i)}function y$(e,t,n,r,i,o){p$(e,t);var a=0!=(128&t.flags);if(!r&&!a)return i&&Ez(t,n,!1),O$(e,t,o);r=t.stateNode,s$.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=FF(t,e.child,null,o),t.child=FF(t,null,s,o)):c$(e,t,s,o),t.memoizedState=r.state,i&&Ez(t,n,!0),t.child}function v$(e){var t=e.stateNode;t.pendingContext?Sz(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Sz(0,t.context,!1),WF(e,t.containerInfo)}function b$(e,t,n,r,i){return nF(),rF(i),t.flags|=256,c$(e,t,n,r),t.child}var x$,w$,k$,S$,C$={dehydrated:null,treeContext:null,retryLane:0};function M$(e){return{baseLanes:e,cachePool:null,transitions:null}}function E$(e,t,n){var r,i=t.pendingProps,o=XF.current,a=!1,s=0!=(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&0!=(2&o)),r?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(o|=1),mz(XF,1&o),null===e)return Jz(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(s=i.children,e=i.fallback,a?(i=t.mode,a=t.child,s={mode:"hidden",children:s},0==(1&i)&&null!==a?(a.childLanes=0,a.pendingProps=s):a=MV(s,i,0,null),e=CV(e,i,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=M$(n),t.memoizedState=C$,e):_$(t,s));if(null!==(o=e.memoizedState)&&null!==(r=o.dehydrated))return function(e,t,n,r,i,o,a){if(n)return 256&t.flags?(t.flags&=-257,D$(e,t,a,r=Qj(Error(XN(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=MV({mode:"visible",children:r.children},i,0,null),(o=CV(o,i,a,null)).flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,0!=(1&t.mode)&&FF(t,e.child,null,a),t.child.memoizedState=M$(a),t.memoizedState=C$,o);if(0==(1&t.mode))return D$(e,t,a,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var s=r.dgst;return r=s,D$(e,t,a,r=Qj(o=Error(XN(419)),r,void 0))}if(s=0!=(a&e.childLanes),l$||s){if(null!==(r=vH)){switch(a&-a){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!=(i&(r.suspendedLanes|a))?0:i)&&i!==o.retryLane&&(o.retryLane=i,vF(e,i),UH(r,e,i,-1))}return iV(),D$(e,t,a,r=Qj(Error(XN(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=gV.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Wz=JL(i.nextSibling),Uz=t,Yz=!0,Kz=null,null!==e&&(Iz[Lz++]=Fz,Iz[Lz++]=jz,Iz[Lz++]=zz,Fz=e.id,jz=e.overflow,zz=t),t=_$(t,r.children),t.flags|=4096,t)}(e,t,s,i,r,o,n);if(a){a=i.fallback,s=t.mode,r=(o=e.child).sibling;var l={mode:"hidden",children:i.children};return 0==(1&s)&&t.child!==o?((i=t.child).childLanes=0,i.pendingProps=l,t.deletions=null):(i=kV(o,l)).subtreeFlags=14680064&o.subtreeFlags,null!==r?a=kV(r,a):(a=CV(a,s,n,null)).flags|=2,a.return=t,i.return=t,i.sibling=a,t.child=i,i=a,a=t.child,s=null===(s=e.child.memoizedState)?M$(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},a.memoizedState=s,a.childLanes=e.childLanes&~n,t.memoizedState=C$,i}return e=(a=e.child).sibling,i=kV(a,{mode:"visible",children:i.children}),0==(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function _$(e,t){return(t=MV({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function D$(e,t,n,r){return null!==r&&rF(r),FF(t,e.child,null,n),(e=_$(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function q$(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),fF(e.return,t,n)}function T$(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function R$(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(c$(e,t,r.children,n),0!=(2&(r=XF.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&q$(e,n,t);else if(19===e.tag)q$(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(mz(XF,r),0==(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===ZF(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),T$(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===ZF(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}T$(t,!0,n,null,o);break;case"together":T$(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function N$(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function O$(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),MH|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(XN(153));if(null!==t.child){for(n=kV(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=kV(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function A$(e,t){if(!Yz)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function P$(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function I$(e,t,n){var r=t.pendingProps;switch(Bz(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return P$(t),null;case 1:case 17:return wz(t.type)&&kz(),P$(t),null;case 3:return r=t.stateNode,YF(),pz(vz),pz(yz),QF(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(eF(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==Kz&&(GH(Kz),Kz=null))),w$(e,t),P$(t),null;case 5:GF(t);var i=UF(BF.current);if(n=t.type,null!==e&&null!=t.stateNode)k$(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(XN(166));return P$(t),null}if(e=UF(HF.current),eF(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[tz]=t,r[nz]=o,e=0!=(1&t.mode),n){case"dialog":DL("cancel",r),DL("close",r);break;case"iframe":case"object":case"embed":DL("load",r);break;case"video":case"audio":for(i=0;i<CL.length;i++)DL(CL[i],r);break;case"source":DL("error",r);break;case"img":case"image":case"link":DL("error",r),DL("load",r);break;case"details":DL("toggle",r);break;case"input":$O(r,o),DL("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},DL("invalid",r);break;case"textarea":GO(r,o),DL("invalid",r)}for(var a in lA(n,o),i=null,o)if(o.hasOwnProperty(a)){var s=o[a];"children"===a?"string"==typeof s?r.textContent!==s&&(!0!==o.suppressHydrationWarning&&$L(r.textContent,s,e),i=["children",s]):"number"==typeof s&&r.textContent!==""+s&&(!0!==o.suppressHydrationWarning&&$L(r.textContent,s,e),i=["children",""+s]):JN.hasOwnProperty(a)&&null!=s&&"onScroll"===a&&DL("scroll",r)}switch(n){case"input":LO(r),BO(r,o,!0);break;case"textarea":LO(r),ZO(r);break;case"select":case"option":break;default:"function"==typeof o.onClick&&(r.onclick=HL)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{a=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=JO(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=a.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),"select"===n&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[tz]=t,e[nz]=r,x$(e,t,!1,!1),t.stateNode=e;e:{switch(a=cA(n,r),n){case"dialog":DL("cancel",e),DL("close",e),i=r;break;case"iframe":case"object":case"embed":DL("load",e),i=r;break;case"video":case"audio":for(i=0;i<CL.length;i++)DL(CL[i],e);i=r;break;case"source":DL("error",e),i=r;break;case"img":case"image":case"link":DL("error",e),DL("load",e),i=r;break;case"details":DL("toggle",e),i=r;break;case"input":$O(e,r),i=jO(e,r),DL("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=DO({},r,{value:void 0}),DL("invalid",e);break;case"textarea":GO(e,r),i=KO(e,r),DL("invalid",e)}for(o in lA(n,i),s=i)if(s.hasOwnProperty(o)){var l=s[o];"style"===o?aA(e,l):"dangerouslySetInnerHTML"===o?null!=(l=l?l.__html:void 0)&&tA(e,l):"children"===o?"string"==typeof l?("textarea"!==n||""!==l)&&nA(e,l):"number"==typeof l&&nA(e,""+l):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(JN.hasOwnProperty(o)?null!=l&&"onScroll"===o&&DL("scroll",e):null!=l&&uO(e,o,l,a))}switch(n){case"input":LO(e),BO(e,r,!1);break;case"textarea":LO(e),ZO(e);break;case"option":null!=r.value&&e.setAttribute("value",""+PO(r.value));break;case"select":e.multiple=!!r.multiple,null!=(o=r.value)?YO(e,!!r.multiple,o,!1):null!=r.defaultValue&&YO(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=HL)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return P$(t),null;case 6:if(e&&null!=t.stateNode)S$(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(XN(166));if(n=UF(BF.current),UF(HF.current),eF(t)){if(r=t.stateNode,n=t.memoizedProps,r[tz]=t,(o=r.nodeValue!==n)&&null!==(e=Uz))switch(e.tag){case 3:$L(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&$L(r.nodeValue,n,0!=(1&e.mode))}o&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[tz]=t,t.stateNode=r}return P$(t),null;case 13:if(pz(XF),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(Yz&&null!==Wz&&0!=(1&t.mode)&&0==(128&t.flags))tF(),nF(),t.flags|=98560,o=!1;else if(o=eF(t),null!==r&&null!==r.dehydrated){if(null===e){if(!o)throw Error(XN(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(XN(317));o[tz]=t}else nF(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;P$(t),o=!1}else null!==Kz&&(GH(Kz),Kz=null),o=!0;if(!o)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&XF.current)?0===SH&&(SH=3):iV())),null!==t.updateQueue&&(t.flags|=4),P$(t),null);case 4:return YF(),w$(e,t),null===e&&RL(t.stateNode.containerInfo),P$(t),null;case 10:return dF(t.type._context),P$(t),null;case 19:if(pz(XF),null===(o=t.memoizedState))return P$(t),null;if(r=0!=(128&t.flags),null===(a=o.rendering))if(r)A$(o,!1);else{if(0!==SH||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(a=ZF(e))){for(t.flags|=128,A$(o,!1),null!==(r=a.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(o=n).flags&=14680066,null===(a=o.alternate)?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return mz(XF,1&XF.current|2),t.child}e=e.sibling}null!==o.tail&&$A()>RH&&(t.flags|=128,r=!0,A$(o,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ZF(a))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),A$(o,!0),null===o.tail&&"hidden"===o.tailMode&&!a.alternate&&!Yz)return P$(t),null}else 2*$A()-o.renderingStartTime>RH&&1073741824!==n&&(t.flags|=128,r=!0,A$(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(null!==(n=o.last)?n.sibling=a:t.child=a,o.last=a)}return null!==o.tail?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=$A(),t.sibling=null,n=XF.current,mz(XF,r?1&n|2:1&n),t):(P$(t),null);case 22:case 23:return eV(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&wH)&&(P$(t),6&t.subtreeFlags&&(t.flags|=8192)):P$(t),null;case 24:case 25:return null}throw Error(XN(156,t.tag))}function L$(e,t){switch(Bz(t),t.tag){case 1:return wz(t.type)&&kz(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return YF(),pz(vz),pz(yz),QF(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return GF(t),null;case 13:if(pz(XF),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(XN(340));nF()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return pz(XF),null;case 4:return YF(),null;case 10:return dF(t.type._context),null;case 22:case 23:return eV(),null;default:return null}}x$=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},w$=function(){},k$=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,UF(HF.current);var o,a=null;switch(n){case"input":i=jO(e,i),r=jO(e,r),a=[];break;case"select":i=DO({},i,{value:void 0}),r=DO({},r,{value:void 0}),a=[];break;case"textarea":i=KO(e,i),r=KO(e,r),a=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=HL)}for(c in lA(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var s=i[c];for(o in s)s.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(JN.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var l=r[c];if(s=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&l!==s&&(null!=l||null!=s))if("style"===c)if(s){for(o in s)!s.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&s[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(a||(a=[]),a.push(c,n)),n=l;else"dangerouslySetInnerHTML"===c?(l=l?l.__html:void 0,s=s?s.__html:void 0,null!=l&&s!==l&&(a=a||[]).push(c,l)):"children"===c?"string"!=typeof l&&"number"!=typeof l||(a=a||[]).push(c,""+l):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(JN.hasOwnProperty(c)?(null!=l&&"onScroll"===c&&DL("scroll",e),a||s===l||(a=[])):(a=a||[]).push(c,l))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},S$=function(e,t,n,r){n!==r&&(t.flags|=4)};var z$=!1,F$=!1,j$="function"==typeof WeakSet?WeakSet:Set,$$=null;function H$(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){hV(e,t,n)}else n.current=null}function V$(e,t,n){try{n()}catch(n){hV(e,t,n)}}var B$=!1;function U$(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&V$(t,n,o)}i=i.next}while(i!==r)}}function W$(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Y$(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function K$(e){var t=e.alternate;null!==t&&(e.alternate=null,K$(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[tz],delete t[nz],delete t[iz],delete t[oz],delete t[az])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function G$(e){return 5===e.tag||3===e.tag||4===e.tag}function X$(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||G$(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Z$(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=HL));else if(4!==r&&null!==(e=e.child))for(Z$(e,t,n),e=e.sibling;null!==e;)Z$(e,t,n),e=e.sibling}function J$(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(J$(e,t,n),e=e.sibling;null!==e;)J$(e,t,n),e=e.sibling}var Q$=null,eH=!1;function tH(e,t,n){for(n=n.child;null!==n;)nH(e,t,n),n=n.sibling}function nH(e,t,n){if(GA&&"function"==typeof GA.onCommitFiberUnmount)try{GA.onCommitFiberUnmount(KA,n)}catch(e){}switch(n.tag){case 5:F$||H$(n,t);case 6:var r=Q$,i=eH;Q$=null,tH(e,t,n),eH=i,null!==(Q$=r)&&(eH?(e=Q$,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):Q$.removeChild(n.stateNode));break;case 18:null!==Q$&&(eH?(e=Q$,n=n.stateNode,8===e.nodeType?ZL(e.parentNode,n):1===e.nodeType&&ZL(e,n),NP(e)):ZL(Q$,n.stateNode));break;case 4:r=Q$,i=eH,Q$=n.stateNode.containerInfo,eH=!0,tH(e,t,n),Q$=r,eH=i;break;case 0:case 11:case 14:case 15:if(!F$&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(0!=(2&o)||0!=(4&o))&&V$(n,t,a),i=i.next}while(i!==r)}tH(e,t,n);break;case 1:if(!F$&&(H$(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){hV(n,t,e)}tH(e,t,n);break;case 21:tH(e,t,n);break;case 22:1&n.mode?(F$=(r=F$)||null!==n.memoizedState,tH(e,t,n),F$=r):tH(e,t,n);break;default:tH(e,t,n)}}function rH(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new j$),t.forEach((function(t){var r=yV.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function iH(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,a=t,s=a;e:for(;null!==s;){switch(s.tag){case 5:Q$=s.stateNode,eH=!1;break e;case 3:case 4:Q$=s.stateNode.containerInfo,eH=!0;break e}s=s.return}if(null===Q$)throw Error(XN(160));nH(o,a,i),Q$=null,eH=!1;var l=i.alternate;null!==l&&(l.return=null),i.return=null}catch(e){hV(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)oH(t,e),t=t.sibling}function oH(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(iH(t,e),aH(e),4&r){try{U$(3,e,e.return),W$(3,e)}catch(t){hV(e,e.return,t)}try{U$(5,e,e.return)}catch(t){hV(e,e.return,t)}}break;case 1:iH(t,e),aH(e),512&r&&null!==n&&H$(n,n.return);break;case 5:if(iH(t,e),aH(e),512&r&&null!==n&&H$(n,n.return),32&e.flags){var i=e.stateNode;try{nA(i,"")}catch(t){hV(e,e.return,t)}}if(4&r&&null!=(i=e.stateNode)){var o=e.memoizedProps,a=null!==n?n.memoizedProps:o,s=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===s&&"radio"===o.type&&null!=o.name&&HO(i,o),cA(s,a);var c=cA(s,o);for(a=0;a<l.length;a+=2){var u=l[a],d=l[a+1];"style"===u?aA(i,d):"dangerouslySetInnerHTML"===u?tA(i,d):"children"===u?nA(i,d):uO(i,u,d,c)}switch(s){case"input":VO(i,o);break;case"textarea":XO(i,o);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var h=o.value;null!=h?YO(i,!!o.multiple,h,!1):f!==!!o.multiple&&(null!=o.defaultValue?YO(i,!!o.multiple,o.defaultValue,!0):YO(i,!!o.multiple,o.multiple?[]:"",!1))}i[nz]=o}catch(t){hV(e,e.return,t)}}break;case 6:if(iH(t,e),aH(e),4&r){if(null===e.stateNode)throw Error(XN(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(t){hV(e,e.return,t)}}break;case 3:if(iH(t,e),aH(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{NP(t.containerInfo)}catch(t){hV(e,e.return,t)}break;case 4:default:iH(t,e),aH(e);break;case 13:iH(t,e),aH(e),8192&(i=e.child).flags&&(o=null!==i.memoizedState,i.stateNode.isHidden=o,!o||null!==i.alternate&&null!==i.alternate.memoizedState||(TH=$A())),4&r&&rH(e);break;case 22:if(u=null!==n&&null!==n.memoizedState,1&e.mode?(F$=(c=F$)||u,iH(t,e),F$=c):iH(t,e),aH(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!u&&0!=(1&e.mode))for($$=e,u=e.child;null!==u;){for(d=$$=u;null!==$$;){switch(h=(f=$$).child,f.tag){case 0:case 11:case 14:case 15:U$(4,f,f.return);break;case 1:H$(f,f.return);var p=f.stateNode;if("function"==typeof p.componentWillUnmount){r=f,n=f.return;try{t=r,p.props=t.memoizedProps,p.state=t.memoizedState,p.componentWillUnmount()}catch(e){hV(r,n,e)}}break;case 5:H$(f,f.return);break;case 22:if(null!==f.memoizedState){uH(d);continue}}null!==h?(h.return=f,$$=h):uH(d)}u=u.sibling}e:for(u=null,d=e;;){if(5===d.tag){if(null===u){u=d;try{i=d.stateNode,c?"function"==typeof(o=i.style).setProperty?o.setProperty("display","none","important"):o.display="none":(s=d.stateNode,a=null!=(l=d.memoizedProps.style)&&l.hasOwnProperty("display")?l.display:null,s.style.display=oA("display",a))}catch(t){hV(e,e.return,t)}}}else if(6===d.tag){if(null===u)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(t){hV(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:iH(t,e),aH(e),4&r&&rH(e);case 21:}}function aH(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(G$(n)){var r=n;break e}n=n.return}throw Error(XN(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(nA(i,""),r.flags&=-33),J$(e,X$(e),i);break;case 3:case 4:var o=r.stateNode.containerInfo;Z$(e,X$(e),o);break;default:throw Error(XN(161))}}catch(t){hV(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function sH(e,t,n){$$=e,lH(e)}function lH(e,t,n){for(var r=0!=(1&e.mode);null!==$$;){var i=$$,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||z$;if(!a){var s=i.alternate,l=null!==s&&null!==s.memoizedState||F$;s=z$;var c=F$;if(z$=a,(F$=l)&&!c)for($$=i;null!==$$;)l=(a=$$).child,22===a.tag&&null!==a.memoizedState?dH(i):null!==l?(l.return=a,$$=l):dH(i);for(;null!==o;)$$=o,lH(o),o=o.sibling;$$=i,z$=s,F$=c}cH(e)}else 0!=(8772&i.subtreeFlags)&&null!==o?(o.return=i,$$=o):cH(e)}}function cH(e){for(;null!==$$;){var t=$$;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:F$||W$(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!F$)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:oF(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;null!==o&&_F(t,o,r);break;case 3:var a=t.updateQueue;if(null!==a){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}_F(t,a,n)}break;case 5:var s=t.stateNode;if(null===n&&4&t.flags){n=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var u=c.memoizedState;if(null!==u){var d=u.dehydrated;null!==d&&NP(d)}}}break;default:throw Error(XN(163))}F$||512&t.flags&&Y$(t)}catch(e){hV(t,t.return,e)}}if(t===e){$$=null;break}if(null!==(n=t.sibling)){n.return=t.return,$$=n;break}$$=t.return}}function uH(e){for(;null!==$$;){var t=$$;if(t===e){$$=null;break}var n=t.sibling;if(null!==n){n.return=t.return,$$=n;break}$$=t.return}}function dH(e){for(;null!==$$;){var t=$$;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{W$(4,t)}catch(e){hV(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(e){hV(t,i,e)}}var o=t.return;try{Y$(t)}catch(e){hV(t,o,e)}break;case 5:var a=t.return;try{Y$(t)}catch(e){hV(t,a,e)}}}catch(e){hV(t,t.return,e)}if(t===e){$$=null;break}var s=t.sibling;if(null!==s){s.return=t.return,$$=s;break}$$=t.return}}var fH,hH=Math.ceil,pH=dO.ReactCurrentDispatcher,mH=dO.ReactCurrentOwner,gH=dO.ReactCurrentBatchConfig,yH=0,vH=null,bH=null,xH=0,wH=0,kH=hz(0),SH=0,CH=null,MH=0,EH=0,_H=0,DH=null,qH=null,TH=0,RH=1/0,NH=null,OH=!1,AH=null,PH=null,IH=!1,LH=null,zH=0,FH=0,jH=null,$H=-1,HH=0;function VH(){return 0!=(6&yH)?$A():-1!==$H?$H:$H=$A()}function BH(e){return 0==(1&e.mode)?1:0!=(2&yH)&&0!==xH?xH&-xH:null!==iF.transition?(0===HH&&(HH=oP()),HH):0!==(e=cP)?e:e=void 0===(e=window.event)?16:jP(e.type)}function UH(e,t,n,r){if(50<FH)throw FH=0,jH=null,Error(XN(185));sP(e,n,r),0!=(2&yH)&&e===vH||(e===vH&&(0==(2&yH)&&(EH|=n),4===SH&&XH(e,xH)),WH(e,r),1===n&&0===yH&&0==(1&t.mode)&&(RH=$A()+500,Dz&&Rz()))}function WH(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-XA(o),s=1<<a,l=i[a];-1===l?0!=(s&n)&&0==(s&r)||(i[a]=rP(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=nP(e,e===vH?xH:0);if(0===r)null!==n&&zA(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&zA(n),1===t)0===e.tag?function(e){Dz=!0,Tz(e)}(ZH.bind(null,e)):Tz(ZH.bind(null,e)),GL((function(){0==(6&yH)&&Rz()})),n=null;else{switch(uP(r)){case 1:n=VA;break;case 4:n=BA;break;case 16:default:n=UA;break;case 536870912:n=YA}n=vV(n,YH.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function YH(e,t){if($H=-1,HH=0,0!=(6&yH))throw Error(XN(327));var n=e.callbackNode;if(dV()&&e.callbackNode!==n)return null;var r=nP(e,e===vH?xH:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=oV(e,r);else{t=r;var i=yH;yH|=2;var o=rV();for(vH===e&&xH===t||(NH=null,RH=$A()+500,tV(e,t));;)try{sV();break}catch(t){nV(e,t)}uF(),pH.current=o,yH=i,null!==bH?t=0:(vH=null,xH=0,t=SH)}if(0!==t){if(2===t&&(0!==(i=iP(e))&&(r=i,t=KH(e,i))),1===t)throw n=CH,tV(e,0),XH(e,r),WH(e,$A()),n;if(6===t)XH(e,r);else{if(i=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!XI(o(),i))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)&&(2===(t=oV(e,r))&&(0!==(o=iP(e))&&(r=o,t=KH(e,o))),1===t))throw n=CH,tV(e,0),XH(e,r),WH(e,$A()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(XN(345));case 2:case 5:uV(e,qH,NH);break;case 3:if(XH(e,r),(130023424&r)===r&&10<(t=TH+500-$A())){if(0!==nP(e,0))break;if(((i=e.suspendedLanes)&r)!==r){VH(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=WL(uV.bind(null,e,qH,NH),t);break}uV(e,qH,NH);break;case 4:if(XH(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-XA(r);o=1<<a,(a=t[a])>i&&(i=a),r&=~o}if(r=i,10<(r=(120>(r=$A()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*hH(r/1960))-r)){e.timeoutHandle=WL(uV.bind(null,e,qH,NH),r);break}uV(e,qH,NH);break;default:throw Error(XN(329))}}}return WH(e,$A()),e.callbackNode===n?YH.bind(null,e):null}function KH(e,t){var n=DH;return e.current.memoizedState.isDehydrated&&(tV(e,t).flags|=256),2!==(e=oV(e,t))&&(t=qH,qH=n,null!==t&&GH(t)),e}function GH(e){null===qH?qH=e:qH.push.apply(qH,e)}function XH(e,t){for(t&=~_H,t&=~EH,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-XA(t),r=1<<n;e[n]=-1,t&=~r}}function ZH(e){if(0!=(6&yH))throw Error(XN(327));dV();var t=nP(e,0);if(0==(1&t))return WH(e,$A()),null;var n=oV(e,t);if(0!==e.tag&&2===n){var r=iP(e);0!==r&&(t=r,n=KH(e,r))}if(1===n)throw n=CH,tV(e,0),XH(e,t),WH(e,$A()),n;if(6===n)throw Error(XN(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,uV(e,qH,NH),WH(e,$A()),null}function JH(e,t){var n=yH;yH|=1;try{return e(t)}finally{0===(yH=n)&&(RH=$A()+500,Dz&&Rz())}}function QH(e){null!==LH&&0===LH.tag&&0==(6&yH)&&dV();var t=yH;yH|=1;var n=gH.transition,r=cP;try{if(gH.transition=null,cP=1,e)return e()}finally{cP=r,gH.transition=n,0==(6&(yH=t))&&Rz()}}function eV(){wH=kH.current,pz(kH)}function tV(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,YL(n)),null!==bH)for(n=bH.return;null!==n;){var r=n;switch(Bz(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&kz();break;case 3:YF(),pz(vz),pz(yz),QF();break;case 5:GF(r);break;case 4:YF();break;case 13:case 19:pz(XF);break;case 10:dF(r.type._context);break;case 22:case 23:eV()}n=n.return}if(vH=e,bH=e=kV(e.current,null),xH=wH=t,SH=0,CH=null,_H=EH=MH=0,qH=DH=null,null!==mF){for(t=0;t<mF.length;t++)if(null!==(r=(n=mF[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}mF=null}return e}function nV(e,t){for(;;){var n=bH;try{if(uF(),ej.current=Kj,aj){for(var r=rj.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}aj=!1}if(nj=0,oj=ij=rj=null,sj=!1,lj=0,mH.current=null,null===n||null===n.return){SH=1,CH=t,bH=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=xH,s.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var c=l,u=s,d=u.tag;if(0==(1&u.mode)&&(0===d||11===d||15===d)){var f=u.alternate;f?(u.updateQueue=f.updateQueue,u.memoizedState=f.memoizedState,u.lanes=f.lanes):(u.updateQueue=null,u.memoizedState=null)}var h=o$(a);if(null!==h){h.flags&=-257,a$(h,a,s,0,t),1&h.mode&&i$(o,c,t),l=c;var p=(t=h).updateQueue;if(null===p){var m=new Set;m.add(l),t.updateQueue=m}else p.add(l);break e}if(0==(1&t)){i$(o,c,t),iV();break e}l=Error(XN(426))}else if(Yz&&1&s.mode){var g=o$(a);if(null!==g){0==(65536&g.flags)&&(g.flags|=256),a$(g,a,s,0,t),rF(Jj(l,s));break e}}o=l=Jj(l,s),4!==SH&&(SH=2),null===DH?DH=[o]:DH.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t,MF(o,n$(0,l,t));break e;case 1:s=l;var y=o.type,v=o.stateNode;if(0==(128&o.flags)&&("function"==typeof y.getDerivedStateFromError||null!==v&&"function"==typeof v.componentDidCatch&&(null===PH||!PH.has(v)))){o.flags|=65536,t&=-t,o.lanes|=t,MF(o,r$(o,s,t));break e}}o=o.return}while(null!==o)}cV(n)}catch(e){t=e,bH===n&&null!==n&&(bH=n=n.return);continue}break}}function rV(){var e=pH.current;return pH.current=Kj,null===e?Kj:e}function iV(){0!==SH&&3!==SH&&2!==SH||(SH=4),null===vH||0==(268435455&MH)&&0==(268435455&EH)||XH(vH,xH)}function oV(e,t){var n=yH;yH|=2;var r=rV();for(vH===e&&xH===t||(NH=null,tV(e,t));;)try{aV();break}catch(t){nV(e,t)}if(uF(),yH=n,pH.current=r,null!==bH)throw Error(XN(261));return vH=null,xH=0,SH}function aV(){for(;null!==bH;)lV(bH)}function sV(){for(;null!==bH&&!FA();)lV(bH)}function lV(e){var t=fH(e.alternate,e,wH);e.memoizedProps=e.pendingProps,null===t?cV(e):bH=t,mH.current=null}function cV(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=I$(n,t,wH)))return void(bH=n)}else{if(null!==(n=L$(n,t)))return n.flags&=32767,void(bH=n);if(null===e)return SH=6,void(bH=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(bH=t);bH=t=e}while(null!==t);0===SH&&(SH=5)}function uV(e,t,n){var r=cP,i=gH.transition;try{gH.transition=null,cP=1,function(e,t,n,r){do{dV()}while(null!==LH);if(0!=(6&yH))throw Error(XN(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(XN(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-XA(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,o),e===vH&&(bH=vH=null,xH=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||IH||(IH=!0,vV(UA,(function(){return dV(),null}))),o=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||o){o=gH.transition,gH.transition=null;var a=cP;cP=1;var s=yH;yH|=4,mH.current=null,function(e,t){if(VL=AP,nL(e=tL())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch(e){n=null;break e}var a=0,s=-1,l=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var h;d!==n||0!==i&&3!==d.nodeType||(s=a+i),d!==o||0!==r&&3!==d.nodeType||(l=a+r),3===d.nodeType&&(a+=d.nodeValue.length),null!==(h=d.firstChild);)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++c===i&&(s=a),f===o&&++u===r&&(l=a),null!==(h=d.nextSibling))break;f=(d=f).parentNode}d=h}n=-1===s||-1===l?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(BL={focusedElem:e,selectionRange:n},AP=!1,$$=t;null!==$$;)if(e=(t=$$).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,$$=e;else for(;null!==$$;){t=$$;try{var p=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==p){var m=p.memoizedProps,g=p.memoizedState,y=t.stateNode,v=y.getSnapshotBeforeUpdate(t.elementType===t.type?m:oF(t.type,m),g);y.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var b=t.stateNode.containerInfo;1===b.nodeType?b.textContent="":9===b.nodeType&&b.documentElement&&b.removeChild(b.documentElement);break;default:throw Error(XN(163))}}catch(e){hV(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,$$=e;break}$$=t.return}p=B$,B$=!1}(e,n),oH(n,e),rL(BL),AP=!!VL,BL=VL=null,e.current=n,sH(n),jA(),yH=s,cP=a,gH.transition=o}else e.current=n;if(IH&&(IH=!1,LH=e,zH=i),o=e.pendingLanes,0===o&&(PH=null),function(e){if(GA&&"function"==typeof GA.onCommitFiberRoot)try{GA.onCommitFiberRoot(KA,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),WH(e,$A()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(OH)throw OH=!1,e=AH,AH=null,e;0!=(1&zH)&&0!==e.tag&&dV(),o=e.pendingLanes,0!=(1&o)?e===jH?FH++:(FH=0,jH=e):FH=0,Rz()}(e,t,n,r)}finally{gH.transition=i,cP=r}return null}function dV(){if(null!==LH){var e=uP(zH),t=gH.transition,n=cP;try{if(gH.transition=null,cP=16>e?16:e,null===LH)var r=!1;else{if(e=LH,LH=null,zH=0,0!=(6&yH))throw Error(XN(331));var i=yH;for(yH|=4,$$=e.current;null!==$$;){var o=$$,a=o.child;if(0!=(16&$$.flags)){var s=o.deletions;if(null!==s){for(var l=0;l<s.length;l++){var c=s[l];for($$=c;null!==$$;){var u=$$;switch(u.tag){case 0:case 11:case 15:U$(8,u,o)}var d=u.child;if(null!==d)d.return=u,$$=d;else for(;null!==$$;){var f=(u=$$).sibling,h=u.return;if(K$(u),u===c){$$=null;break}if(null!==f){f.return=h,$$=f;break}$$=h}}}var p=o.alternate;if(null!==p){var m=p.child;if(null!==m){p.child=null;do{var g=m.sibling;m.sibling=null,m=g}while(null!==m)}}$$=o}}if(0!=(2064&o.subtreeFlags)&&null!==a)a.return=o,$$=a;else e:for(;null!==$$;){if(0!=(2048&(o=$$).flags))switch(o.tag){case 0:case 11:case 15:U$(9,o,o.return)}var y=o.sibling;if(null!==y){y.return=o.return,$$=y;break e}$$=o.return}}var v=e.current;for($$=v;null!==$$;){var b=(a=$$).child;if(0!=(2064&a.subtreeFlags)&&null!==b)b.return=a,$$=b;else e:for(a=v;null!==$$;){if(0!=(2048&(s=$$).flags))try{switch(s.tag){case 0:case 11:case 15:W$(9,s)}}catch(e){hV(s,s.return,e)}if(s===a){$$=null;break e}var x=s.sibling;if(null!==x){x.return=s.return,$$=x;break e}$$=s.return}}if(yH=i,Rz(),GA&&"function"==typeof GA.onPostCommitFiberRoot)try{GA.onPostCommitFiberRoot(KA,e)}catch(e){}r=!0}return r}finally{cP=n,gH.transition=t}}return!1}function fV(e,t,n){e=SF(e,t=n$(0,t=Jj(n,t),1),1),t=VH(),null!==e&&(sP(e,1,t),WH(e,t))}function hV(e,t,n){if(3===e.tag)fV(e,e,n);else for(;null!==t;){if(3===t.tag){fV(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===PH||!PH.has(r))){t=SF(t,e=r$(t,e=Jj(n,e),1),1),e=VH(),null!==t&&(sP(t,1,e),WH(t,e));break}}t=t.return}}function pV(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=VH(),e.pingedLanes|=e.suspendedLanes&n,vH===e&&(xH&n)===n&&(4===SH||3===SH&&(130023424&xH)===xH&&500>$A()-TH?tV(e,0):_H|=n),WH(e,t)}function mV(e,t){0===t&&(0==(1&e.mode)?t=1:(t=eP,0==(130023424&(eP<<=1))&&(eP=4194304)));var n=VH();null!==(e=vF(e,t))&&(sP(e,t,n),WH(e,n))}function gV(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),mV(e,n)}function yV(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(XN(314))}null!==r&&r.delete(t),mV(e,n)}function vV(e,t){return LA(e,t)}function bV(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xV(e,t,n,r){return new bV(e,t,n,r)}function wV(e){return!(!(e=e.prototype)||!e.isReactComponent)}function kV(e,t){var n=e.alternate;return null===n?((n=xV(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function SV(e,t,n,r,i,o){var a=2;if(r=e,"function"==typeof e)wV(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case pO:return CV(n.children,i,o,t);case mO:a=8,i|=8;break;case gO:return(e=xV(12,n,t,2|i)).elementType=gO,e.lanes=o,e;case xO:return(e=xV(13,n,t,i)).elementType=xO,e.lanes=o,e;case wO:return(e=xV(19,n,t,i)).elementType=wO,e.lanes=o,e;case CO:return MV(n,i,o,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case yO:a=10;break e;case vO:a=9;break e;case bO:a=11;break e;case kO:a=14;break e;case SO:a=16,r=null;break e}throw Error(XN(130,null==e?e:typeof e,""))}return(t=xV(a,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function CV(e,t,n,r){return(e=xV(7,e,r,t)).lanes=n,e}function MV(e,t,n,r){return(e=xV(22,e,r,t)).elementType=CO,e.lanes=n,e.stateNode={isHidden:!1},e}function EV(e,t,n){return(e=xV(6,e,null,t)).lanes=n,e}function _V(e,t,n){return(t=xV(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function DV(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=aP(0),this.expirationTimes=aP(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=aP(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function qV(e,t,n,r,i,o,a,s,l){return e=new DV(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=xV(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},xF(o),e}function TV(e){if(!e)return gz;e:{if(NA(e=e._reactInternals)!==e||1!==e.tag)throw Error(XN(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(wz(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(XN(171))}if(1===e.tag){var n=e.type;if(wz(n))return Cz(e,n,t)}return t}function RV(e,t,n,r,i,o,a,s,l){return(e=qV(n,r,!0,e,0,o,0,s,l)).context=TV(null),n=e.current,(o=kF(r=VH(),i=BH(n))).callback=null!=t?t:null,SF(n,o,i),e.current.lanes=i,sP(e,i,r),WH(e,r),e}function NV(e,t,n,r){var i=t.current,o=VH(),a=BH(i);return n=TV(n),null===t.context?t.context=n:t.pendingContext=n,(t=kF(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=SF(i,t,a))&&(UH(e,i,a,o),CF(e,i,a)),a}function OV(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function AV(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function PV(e,t){AV(e,t),(e=e.alternate)&&AV(e,t)}fH=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||vz.current)l$=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return l$=!1,function(e,t,n){switch(t.tag){case 3:v$(t),nF();break;case 5:KF(t);break;case 1:wz(t.type)&&Mz(t);break;case 4:WF(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;mz(aF,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(mz(XF,1&XF.current),t.flags|=128,null):0!=(n&t.child.childLanes)?E$(e,t,n):(mz(XF,1&XF.current),null!==(e=O$(e,t,n))?e.sibling:null);mz(XF,1&XF.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return R$(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),mz(XF,XF.current),r)break;return null;case 22:case 23:return t.lanes=0,h$(e,t,n)}return O$(e,t,n)}(e,t,n);l$=0!=(131072&e.flags)}else l$=!1,Yz&&0!=(1048576&t.flags)&&Hz(t,Pz,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;N$(e,t),e=t.pendingProps;var i=xz(t,yz.current);hF(t,n),i=fj(null,t,r,e,i,n);var o=hj();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,wz(r)?(o=!0,Mz(t)):o=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,xF(t),i.updater=TF,t.stateNode=i,i._reactInternals=t,AF(t,r,e,n),t=y$(null,t,r,!0,o,n)):(t.tag=0,Yz&&o&&Vz(t),c$(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(N$(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"==typeof e)return wV(e)?1:0;if(null!=e){if((e=e.$$typeof)===bO)return 11;if(e===kO)return 14}return 2}(r),e=oF(r,e),i){case 0:t=m$(null,t,r,e,n);break e;case 1:t=g$(null,t,r,e,n);break e;case 11:t=u$(null,t,r,e,n);break e;case 14:t=d$(null,t,r,oF(r.type,e),n);break e}throw Error(XN(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,m$(e,t,r,i=t.elementType===r?i:oF(r,i),n);case 1:return r=t.type,i=t.pendingProps,g$(e,t,r,i=t.elementType===r?i:oF(r,i),n);case 3:e:{if(v$(t),null===e)throw Error(XN(387));r=t.pendingProps,i=(o=t.memoizedState).element,wF(e,t),EF(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=b$(e,t,r,n,i=Jj(Error(XN(423)),t));break e}if(r!==i){t=b$(e,t,r,n,i=Jj(Error(XN(424)),t));break e}for(Wz=JL(t.stateNode.containerInfo.firstChild),Uz=t,Yz=!0,Kz=null,n=jF(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(nF(),r===i){t=O$(e,t,n);break e}c$(e,t,r,n)}t=t.child}return t;case 5:return KF(t),null===e&&Jz(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,a=i.children,UL(r,i)?a=null:null!==o&&UL(r,o)&&(t.flags|=32),p$(e,t),c$(e,t,a,n),t.child;case 6:return null===e&&Jz(t),null;case 13:return E$(e,t,n);case 4:return WF(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=FF(t,null,r,n):c$(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,u$(e,t,r,i=t.elementType===r?i:oF(r,i),n);case 7:return c$(e,t,t.pendingProps,n),t.child;case 8:case 12:return c$(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,mz(aF,r._currentValue),r._currentValue=a,null!==o)if(XI(o.value,a)){if(o.children===i.children&&!vz.current){t=O$(e,t,n);break e}}else for(null!==(o=t.child)&&(o.return=t);null!==o;){var s=o.dependencies;if(null!==s){a=o.child;for(var l=s.firstContext;null!==l;){if(l.context===r){if(1===o.tag){(l=kF(-1,n&-n)).tag=2;var c=o.updateQueue;if(null!==c){var u=(c=c.shared).pending;null===u?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}o.lanes|=n,null!==(l=o.alternate)&&(l.lanes|=n),fF(o.return,n,t),s.lanes|=n;break}l=l.next}}else if(10===o.tag)a=o.type===t.type?null:o.child;else if(18===o.tag){if(null===(a=o.return))throw Error(XN(341));a.lanes|=n,null!==(s=a.alternate)&&(s.lanes|=n),fF(a,n,t),a=o.sibling}else a=o.child;if(null!==a)a.return=o;else for(a=o;null!==a;){if(a===t){a=null;break}if(null!==(o=a.sibling)){o.return=a.return,a=o;break}a=a.return}o=a}c$(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,hF(t,n),r=r(i=pF(i)),t.flags|=1,c$(e,t,r,n),t.child;case 14:return i=oF(r=t.type,t.pendingProps),d$(e,t,r,i=oF(r.type,i),n);case 15:return f$(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:oF(r,i),N$(e,t),t.tag=1,wz(r)?(e=!0,Mz(t)):e=!1,hF(t,n),NF(t,r,i),AF(t,r,i,n),y$(null,t,r,!0,e,n);case 19:return R$(e,t,n);case 22:return h$(e,t,n)}throw Error(XN(156,t.tag))};var IV="function"==typeof reportError?reportError:function(e){console.error(e)};function LV(e){this._internalRoot=e}function zV(e){this._internalRoot=e}function FV(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function jV(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function $V(){}function HV(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"==typeof i){var s=i;i=function(){var e=OV(a);s.call(e)}}NV(t,a,e,i)}else a=function(e,t,n,r,i){if(i){if("function"==typeof r){var o=r;r=function(){var e=OV(a);o.call(e)}}var a=RV(t,r,e,0,null,!1,0,"",$V);return e._reactRootContainer=a,e[rz]=a.current,RL(8===e.nodeType?e.parentNode:e),QH(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"==typeof r){var s=r;r=function(){var e=OV(l);s.call(e)}}var l=qV(e,0,!1,null,0,!1,0,"",$V);return e._reactRootContainer=l,e[rz]=l.current,RL(8===e.nodeType?e.parentNode:e),QH((function(){NV(t,l,n,r)})),l}(n,t,e,i,r);return OV(a)}zV.prototype.render=LV.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(XN(409));NV(e,t,null,null)},zV.prototype.unmount=LV.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;QH((function(){NV(null,e,null,null)})),t[rz]=null}},zV.prototype.unstable_scheduleHydration=function(e){if(e){var t=pP();e={blockedOn:null,target:e,priority:t};for(var n=0;n<SP.length&&0!==t&&t<SP[n].priority;n++);SP.splice(n,0,e),0===n&&_P(e)}},dP=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=tP(t.pendingLanes);0!==n&&(lP(t,1|n),WH(t,$A()),0==(6&yH)&&(RH=$A()+500,Rz()))}break;case 13:QH((function(){var t=vF(e,1);if(null!==t){var n=VH();UH(t,e,1,n)}})),PV(e,1)}},fP=function(e){if(13===e.tag){var t=vF(e,134217728);if(null!==t)UH(t,e,134217728,VH());PV(e,134217728)}},hP=function(e){if(13===e.tag){var t=BH(e),n=vF(e,t);if(null!==n)UH(n,e,t,VH());PV(e,t)}},pP=function(){return cP},mP=function(e,t){var n=cP;try{return cP=e,t()}finally{cP=n}},fA=function(e,t,n){switch(t){case"input":if(VO(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=uz(r);if(!i)throw Error(XN(90));zO(r),VO(r,i)}}}break;case"textarea":XO(e,n);break;case"select":null!=(t=n.value)&&YO(e,!!n.multiple,t,!1)}},vA=JH,bA=QH;var VV={usingClientEntryPoint:!1,Events:[lz,cz,uz,gA,yA,JH]},BV={findFiberByHostInstance:sz,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},UV={bundleType:BV.bundleType,version:BV.version,rendererPackageName:BV.rendererPackageName,rendererConfig:BV.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:dO.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=PA(e))?null:e.stateNode},findFiberByHostInstance:BV.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var WV=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!WV.isDisabled&&WV.supportsFiber)try{KA=WV.inject(UV),GA=WV}catch(DJ){}}BN.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=VV,BN.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!FV(t))throw Error(XN(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:hO,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},BN.createRoot=function(e,t){if(!FV(e))throw Error(XN(299));var n=!1,r="",i=IV;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=qV(e,1,!1,null,0,n,0,r,i),e[rz]=t.current,RL(8===e.nodeType?e.parentNode:e),new LV(t)},BN.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(XN(188));throw e=Object.keys(e).join(","),Error(XN(268,e))}return e=null===(e=PA(t))?null:e.stateNode},BN.flushSync=function(e){return QH(e)},BN.hydrate=function(e,t,n){if(!jV(t))throw Error(XN(200));return HV(null,e,t,!0,n)},BN.hydrateRoot=function(e,t,n){if(!FV(e))throw Error(XN(405));var r=null!=n&&n.hydratedSources||null,i=!1,o="",a=IV;if(null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(o=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=RV(t,null,e,1,null!=n?n:null,i,0,o,a),e[rz]=t.current,RL(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new zV(t)},BN.render=function(e,t,n){if(!jV(t))throw Error(XN(200));return HV(null,e,t,!1,n)},BN.unmountComponentAtNode=function(e){if(!jV(e))throw Error(XN(40));return!!e._reactRootContainer&&(QH((function(){HV(null,null,e,!1,(function(){e._reactRootContainer=null,e[rz]=null}))})),!0)},BN.unstable_batchedUpdates=JH,BN.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!jV(n))throw Error(XN(200));if(null==e||void 0===e._reactInternals)throw Error(XN(38));return HV(e,t,n,!1,r)},BN.version="18.2.0-next-9e3b772b8-20220608",function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),VN.exports=BN;var YV=VN.exports,KV=r(YV),GV=!0,XV=!1,ZV=null,JV={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 QV(e){e.metaKey||e.altKey||e.ctrlKey||(GV=!0)}function eB(){GV=!1}function tB(){"hidden"===this.visibilityState&&XV&&(GV=!0)}function nB(e){var t=e.target;try{return t.matches(":focus-visible")}catch(e){}return GV||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!JV[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function rB(){XV=!0,window.clearTimeout(ZV),ZV=window.setTimeout((function(){XV=!1}),100)}function iB(){var e=g_.useCallback((function(e){var t,n=YV.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",QV,!0),t.addEventListener("mousedown",eB,!0),t.addEventListener("pointerdown",eB,!0),t.addEventListener("touchstart",eB,!0),t.addEventListener("visibilitychange",tB,!0))}),[]);return{isFocusVisible:nB,onBlurVisible:rB,ref:e}}var oB=!1,aB=y_.createContext(null),sB="unmounted",lB="exited",cB="entering",uB="entered",dB="exiting",fB=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=lB,r.appearStatus=cB):i=uB:i=t.unmountOnExit||t.mountOnEnter?sB:lB,r.state={status:i},r.nextCallback=null,r}WD(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===sB?{status:lB}: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!==cB&&n!==uB&&(t=cB):n!==cB&&n!==uB||(t=dB)}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===cB){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:KV.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===lB&&this.setState({status:sB})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[KV.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||oB?this.safeSetState({status:uB},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:cB},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:uB},(function(){t.props.onEntered(o,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:KV.findDOMNode(this);t&&!oB?(this.props.onExit(r),this.safeSetState({status:dB},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:lB},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:lB},(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:KV.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===sB)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=uD(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return y_.createElement(aB.Provider,{value:null},"function"==typeof n?n(e,r):y_.cloneElement(y_.Children.only(n),r))},t}(y_.Component);function hB(){}fB.contextType=aB,fB.propTypes={},fB.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:hB,onEntering:hB,onEntered:hB,onExit:hB,onExiting:hB,onExited:hB},fB.UNMOUNTED=sB,fB.EXITED=lB,fB.ENTERING=cB,fB.ENTERED=uB,fB.EXITING=dB;var pB=fB;function mB(e,t){var n=Object.create(null);return e&&g_.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&g_.isValidElement(e)?t(e):e}(e)})),n}function gB(e,t,n){return null!=n[t]?n[t]:e.props[t]}function yB(e,t,n){var r=mB(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var c=i[l][r];s[i[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(t,r);return Object.keys(i).forEach((function(o){var a=i[o];if(g_.isValidElement(a)){var s=o in t,l=o in r,c=t[o],u=g_.isValidElement(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&g_.isValidElement(c)&&(i[o]=g_.cloneElement(a,{onExited:n.bind(null,a),in:c.props.in,exit:gB(a,"exit",e),enter:gB(a,"enter",e)})):i[o]=g_.cloneElement(a,{in:!1}):i[o]=g_.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:gB(a,"exit",e),enter:gB(a,"enter",e)})}})),i}var vB=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},bB=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(YD(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}WD(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,o=t.handleExited;return{children:t.firstRender?(n=e,r=o,mB(n.children,(function(e){return g_.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:gB(e,"appear",n),enter:gB(e,"enter",n),exit:gB(e,"exit",n)})}))):yB(e,i,o),firstRender:!1}},n.handleExited=function(e,t){var n=mB(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=J_({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=uD(e,["component","childFactory"]),i=this.state.contextValue,o=vB(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?y_.createElement(aB.Provider,{value:i},o):y_.createElement(aB.Provider,{value:i},y_.createElement(t,r,o))},t}(y_.Component);bB.propTypes={},bB.defaultProps={component:"div",childFactory:function(e){return e}};var xB=bB;function wB(e,t){var n=e.timeout,r=e.style,i=void 0===r?{}:r;return{duration:i.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:i.transitionDelay}}var kB=g_.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.component,o=void 0===i?"div":i,a=e.square,s=void 0!==a&&a,l=e.elevation,c=void 0===l?1:l,u=e.variant,d=void 0===u?"elevation":u,f=dD(e,["classes","className","component","square","elevation","variant"]);return g_.createElement(o,J_({className:IN(n.root,r,"outlined"===d?n.outlined:n["elevation".concat(c)],!s&&n.rounded),ref:t},f))})),SB=NN((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),J_({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"})(kB),CB="undefined"==typeof window?g_.useEffect:g_.useLayoutEffect;function MB(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,i=e.rippleX,o=e.rippleY,a=e.rippleSize,s=e.in,l=e.onExited,c=void 0===l?function(){}:l,u=e.timeout,d=g_.useState(!1),f=d[0],h=d[1],p=IN(t.ripple,t.rippleVisible,r&&t.ripplePulsate),m={width:a,height:a,top:-a/2+o,left:-a/2+i},g=IN(t.child,f&&t.childLeaving,r&&t.childPulsate),y=$N(c);return CB((function(){if(!s){h(!0);var e=setTimeout(y,u);return function(){clearTimeout(e)}}}),[y,s,u]),g_.createElement("span",{className:p,style:m},g_.createElement("span",{className:g}))}var EB=g_.forwardRef((function(e,t){var n=e.center,r=void 0!==n&&n,i=e.classes,o=e.className,a=dD(e,["center","classes","className"]),s=g_.useState([]),l=s[0],c=s[1],u=g_.useRef(0),d=g_.useRef(null);g_.useEffect((function(){d.current&&(d.current(),d.current=null)}),[l]);var f=g_.useRef(!1),h=g_.useRef(null),p=g_.useRef(null),m=g_.useRef(null);g_.useEffect((function(){return function(){clearTimeout(h.current)}}),[]);var g=g_.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,o=e.rippleSize,a=e.cb;c((function(e){return[].concat(DD(e),[g_.createElement(MB,{key:u.current,classes:i,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o})])})),u.current+=1,d.current=a}),[i]),y=g_.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,i=t.pulsate,o=void 0!==i&&i,a=t.center,s=void 0===a?r||t.pulsate:a,l=t.fakeElement,c=void 0!==l&&l;if("mousedown"===e.type&&f.current)f.current=!1;else{"touchstart"===e.type&&(f.current=!0);var u,d,y,v=c?null:m.current,b=v?v.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(b.width/2),d=Math.round(b.height/2);else{var x=e.touches?e.touches[0]:e,w=x.clientX,k=x.clientY;u=Math.round(w-b.left),d=Math.round(k-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 S=2*Math.max(Math.abs((v?v.clientWidth:0)-u),u)+2,C=2*Math.max(Math.abs((v?v.clientHeight:0)-d),d)+2;y=Math.sqrt(Math.pow(S,2)+Math.pow(C,2))}e.touches?null===p.current&&(p.current=function(){g({pulsate:o,rippleX:u,rippleY:d,rippleSize:y,cb:n})},h.current=setTimeout((function(){p.current&&(p.current(),p.current=null)}),80)):g({pulsate:o,rippleX:u,rippleY:d,rippleSize:y,cb:n})}}),[r,g]),v=g_.useCallback((function(){y({},{pulsate:!0})}),[y]),b=g_.useCallback((function(e,t){if(clearTimeout(h.current),"touchend"===e.type&&p.current)return e.persist(),p.current(),p.current=null,void(h.current=setTimeout((function(){b(e,t)})));p.current=null,c((function(e){return e.length>0?e.slice(1):e})),d.current=t}),[]);return g_.useImperativeHandle(t,(function(){return{pulsate:v,start:y,stop:b}}),[v,y,b]),g_.createElement("span",J_({className:IN(i.root,o),ref:m},a),g_.createElement(xB,{component:null,exit:!0},l))})),_B=NN((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"})(g_.memo(EB)),DB=g_.forwardRef((function(e,t){var n=e.action,r=e.buttonRef,i=e.centerRipple,o=void 0!==i&&i,a=e.children,s=e.classes,l=e.className,c=e.component,u=void 0===c?"button":c,d=e.disabled,f=void 0!==d&&d,h=e.disableRipple,p=void 0!==h&&h,m=e.disableTouchRipple,g=void 0!==m&&m,y=e.focusRipple,v=void 0!==y&&y,b=e.focusVisibleClassName,x=e.onBlur,w=e.onClick,k=e.onFocus,S=e.onFocusVisible,C=e.onKeyDown,M=e.onKeyUp,E=e.onMouseDown,_=e.onMouseLeave,D=e.onMouseUp,q=e.onTouchEnd,T=e.onTouchMove,R=e.onTouchStart,N=e.onDragLeave,O=e.tabIndex,A=void 0===O?0:O,P=e.TouchRippleProps,I=e.type,L=void 0===I?"button":I,z=dD(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),F=g_.useRef(null);var j=g_.useRef(null),$=g_.useState(!1),H=$[0],V=$[1];f&&H&&V(!1);var B=iB(),U=B.isFocusVisible,W=B.onBlurVisible,Y=B.ref;function K(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g;return $N((function(r){return t&&t(r),!n&&j.current&&j.current[e](r),!0}))}g_.useImperativeHandle(n,(function(){return{focusVisible:function(){V(!0),F.current.focus()}}}),[]),g_.useEffect((function(){H&&v&&!p&&j.current.pulsate()}),[p,v,H]);var G=K("start",E),X=K("stop",N),Z=K("stop",D),J=K("stop",(function(e){H&&e.preventDefault(),_&&_(e)})),Q=K("start",R),ee=K("stop",q),te=K("stop",T),ne=K("stop",(function(e){H&&(W(e),V(!1)),x&&x(e)}),!1),re=$N((function(e){F.current||(F.current=e.currentTarget),U(e)&&(V(!0),S&&S(e)),k&&k(e)})),ie=function(){var e=YV.findDOMNode(F.current);return u&&"button"!==u&&!("A"===e.tagName&&e.href)},oe=g_.useRef(!1),ae=$N((function(e){v&&!oe.current&&H&&j.current&&" "===e.key&&(oe.current=!0,e.persist(),j.current.stop(e,(function(){j.current.start(e)}))),e.target===e.currentTarget&&ie()&&" "===e.key&&e.preventDefault(),C&&C(e),e.target===e.currentTarget&&ie()&&"Enter"===e.key&&!f&&(e.preventDefault(),w&&w(e))})),se=$N((function(e){v&&" "===e.key&&j.current&&H&&!e.defaultPrevented&&(oe.current=!1,e.persist(),j.current.stop(e,(function(){j.current.pulsate(e)}))),M&&M(e),w&&e.target===e.currentTarget&&ie()&&" "===e.key&&!e.defaultPrevented&&w(e)})),le=u;"button"===le&&z.href&&(le="a");var ce={};"button"===le?(ce.type=L,ce.disabled=f):("a"===le&&z.href||(ce.role="button"),ce["aria-disabled"]=f);var ue=HN(r,t),de=HN(Y,F),fe=HN(ue,de),he=g_.useState(!1),pe=he[0],me=he[1];g_.useEffect((function(){me(!0)}),[]);var ge=pe&&!p&&!f;return g_.createElement(le,J_({className:IN(s.root,l,H&&[s.focusVisible,b],f&&s.disabled),onBlur:ne,onClick:w,onFocus:re,onKeyDown:ae,onKeyUp:se,onMouseDown:G,onMouseLeave:J,onMouseUp:Z,onDragLeave:X,onTouchEnd:ee,onTouchMove:te,onTouchStart:Q,ref:fe,tabIndex:f?-1:A},ce,z),a,ge?g_.createElement(_B,J_({ref:j,center:o},P)):null)})),qB=NN({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"})(DB),TB={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},RB=g_.forwardRef((function(e,t){var n=e.align,r=void 0===n?"inherit":n,i=e.classes,o=e.className,a=e.color,s=void 0===a?"initial":a,l=e.component,c=e.display,u=void 0===c?"initial":c,d=e.gutterBottom,f=void 0!==d&&d,h=e.noWrap,p=void 0!==h&&h,m=e.paragraph,g=void 0!==m&&m,y=e.variant,v=void 0===y?"body1":y,b=e.variantMapping,x=void 0===b?TB:b,w=dD(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),k=l||(g?"p":x[v]||TB[v])||"span";return g_.createElement(k,J_({className:IN(i.root,o,"inherit"!==v&&i[v],"initial"!==s&&i["color".concat(ON(s))],p&&i.noWrap,f&&i.gutterBottom,g&&i.paragraph,"inherit"!==r&&i["align".concat(ON(r))],"initial"!==u&&i["display".concat(ON(u))]),ref:t},w))})),NB=NN((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"})(RB),OB=g_.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.color,a=void 0===o?"default":o,s=e.component,l=void 0===s?"button":s,c=e.disabled,u=void 0!==c&&c,d=e.disableElevation,f=void 0!==d&&d,h=e.disableFocusRipple,p=void 0!==h&&h,m=e.endIcon,g=e.focusVisibleClassName,y=e.fullWidth,v=void 0!==y&&y,b=e.size,x=void 0===b?"medium":b,w=e.startIcon,k=e.type,S=void 0===k?"button":k,C=e.variant,M=void 0===C?"text":C,E=dD(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),_=w&&g_.createElement("span",{className:IN(r.startIcon,r["iconSize".concat(ON(x))])},w),D=m&&g_.createElement("span",{className:IN(r.endIcon,r["iconSize".concat(ON(x))])},m);return g_.createElement(qB,J_({className:IN(r.root,r[M],i,"inherit"===a?r.colorInherit:"default"!==a&&r["".concat(M).concat(ON(a))],"medium"!==x&&[r["".concat(M,"Size").concat(ON(x))],r["size".concat(ON(x))]],f&&r.disableElevation,u&&r.disabled,v&&r.fullWidth),component:l,disabled:u,focusRipple:!p,focusVisibleClassName:IN(r.focusVisible,g),ref:t,type:S},E),g_.createElement("span",{className:r.label},_,n,D))})),AB=NN((function(e){return{root:J_({},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:cD(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:cD(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:cD(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(cD(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:cD(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(cD(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:cD(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"})(OB);var PB="undefined"!=typeof window?g_.useLayoutEffect:g_.useEffect,IB=g_.forwardRef((function(e,t){var n=e.children,r=e.container,i=e.disablePortal,o=void 0!==i&&i,a=e.onRendered,s=g_.useState(null),l=s[0],c=s[1],u=HN(g_.isValidElement(n)?n.ref:null,t);return PB((function(){o||c(function(e){return e="function"==typeof e?e():e,YV.findDOMNode(e)}(r)||document.body)}),[r,o]),PB((function(){if(l&&!o)return FN(t,l),function(){FN(t,null)}}),[t,l,o]),PB((function(){a&&(l||o)&&a()}),[a,l,o]),o?g_.isValidElement(n)?g_.cloneElement(n,{ref:u}):n:l?YV.createPortal(n,l):l})),LB=IB;function zB(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function FB(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function jB(e,t,n){var r=arguments.length>4?arguments[4]:void 0,i=[t,n].concat(DD(arguments.length>3&&void 0!==arguments[3]?arguments[3]:[])),o=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===i.indexOf(e)&&-1===o.indexOf(e.tagName)&&zB(e,r)}))}function $B(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function HB(e,t){var n,r=[],i=[],o=e.container;if(!t.disableScrollLock){if(function(e){var t=LN(e);return t.body===e?zN(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o)){var a=function(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}();r.push({value:o.style.paddingRight,key:"padding-right",el:o}),o.style["padding-right"]="".concat(FB(o)+a,"px"),n=LN(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){i.push(e.style.paddingRight),e.style.paddingRight="".concat(FB(e)+a,"px")}))}var s=o.parentElement,l="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:o;r.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){i[t]?e.style.paddingRight=i[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var VB=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 BD(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&&zB(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);jB(t,e.mountNode,e.modalRef,r,!0);var i=$B(this.containers,(function(e){return e.container===t}));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=$B(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=HB(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=$B(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&&zB(e.modalRef,!0),jB(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var i=r.modals[r.modals.length-1];i.modalRef&&zB(i.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();function BB(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,i=e.disableEnforceFocus,o=void 0!==i&&i,a=e.disableRestoreFocus,s=void 0!==a&&a,l=e.getDoc,c=e.isEnabled,u=e.open,d=g_.useRef(),f=g_.useRef(null),h=g_.useRef(null),p=g_.useRef(),m=g_.useRef(null),g=g_.useCallback((function(e){m.current=YV.findDOMNode(e)}),[]),y=HN(t.ref,g),v=g_.useRef();return g_.useEffect((function(){v.current=u}),[u]),!v.current&&u&&"undefined"!=typeof window&&(p.current=l().activeElement),g_.useEffect((function(){if(u){var e=LN(m.current);r||!m.current||m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex",-1),m.current.focus());var t=function(){null!==m.current&&(e.hasFocus()&&!o&&c()&&!d.current?m.current&&!m.current.contains(e.activeElement)&&m.current.focus():d.current=!1)},n=function(t){!o&&c()&&9===t.keyCode&&e.activeElement===m.current&&(d.current=!0,t.shiftKey?h.current.focus():f.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var i=setInterval((function(){t()}),50);return function(){clearInterval(i),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),s||(p.current&&p.current.focus&&p.current.focus(),p.current=null)}}}),[r,o,s,c,u]),g_.createElement(g_.Fragment,null,g_.createElement("div",{tabIndex:0,ref:f,"data-test":"sentinelStart"}),g_.cloneElement(t,{ref:y}),g_.createElement("div",{tabIndex:0,ref:h,"data-test":"sentinelEnd"}))}var UB={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"}},WB=g_.forwardRef((function(e,t){var n=e.invisible,r=void 0!==n&&n,i=e.open,o=dD(e,["invisible","open"]);return i?g_.createElement("div",J_({"aria-hidden":!0,ref:t},o,{style:J_({},UB.root,r?UB.invisible:{},o.style)})):null}));var YB=new VB,KB=g_.forwardRef((function(e,t){var n=NR(),r=jD({name:"MuiModal",props:J_({},e),theme:n}),i=r.BackdropComponent,o=void 0===i?WB:i,a=r.BackdropProps,s=r.children,l=r.closeAfterTransition,c=void 0!==l&&l,u=r.container,d=r.disableAutoFocus,f=void 0!==d&&d,h=r.disableBackdropClick,p=void 0!==h&&h,m=r.disableEnforceFocus,g=void 0!==m&&m,y=r.disableEscapeKeyDown,v=void 0!==y&&y,b=r.disablePortal,x=void 0!==b&&b,w=r.disableRestoreFocus,k=void 0!==w&&w,S=r.disableScrollLock,C=void 0!==S&&S,M=r.hideBackdrop,E=void 0!==M&&M,_=r.keepMounted,D=void 0!==_&&_,q=r.manager,T=void 0===q?YB:q,R=r.onBackdropClick,N=r.onClose,O=r.onEscapeKeyDown,A=r.onRendered,P=r.open,I=dD(r,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),L=g_.useState(!0),z=L[0],F=L[1],j=g_.useRef({}),$=g_.useRef(null),H=g_.useRef(null),V=HN(H,t),B=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(r),U=function(){return LN($.current)},W=function(){return j.current.modalRef=H.current,j.current.mountNode=$.current,j.current},Y=function(){T.mount(W(),{disableScrollLock:C}),H.current.scrollTop=0},K=$N((function(){var e=function(e){return e="function"==typeof e?e():e,YV.findDOMNode(e)}(u)||U().body;T.add(W(),e),H.current&&Y()})),G=g_.useCallback((function(){return T.isTopModal(W())}),[T]),X=$N((function(e){$.current=e,e&&(A&&A(),P&&G()?Y():zB(H.current,!0))})),Z=g_.useCallback((function(){T.remove(W())}),[T]);if(g_.useEffect((function(){return function(){Z()}}),[Z]),g_.useEffect((function(){P?K():B&&c||Z()}),[P,Z,B,c,K]),!D&&!P&&(!B||z))return null;var J=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:PD}),Q={};return void 0===s.props.tabIndex&&(Q.tabIndex=s.props.tabIndex||"-1"),B&&(Q.onEnter=AN((function(){F(!1)}),s.props.onEnter),Q.onExited=AN((function(){F(!0),c&&Z()}),s.props.onExited)),g_.createElement(LB,{ref:X,container:u,disablePortal:x},g_.createElement("div",J_({ref:V,onKeyDown:function(e){"Escape"===e.key&&G()&&(O&&O(e),v||(e.stopPropagation(),N&&N(e,"escapeKeyDown")))},role:"presentation"},I,{style:J_({},J.root,!P&&z?J.hidden:{},I.style)}),E?null:g_.createElement(o,J_({open:P,onClick:function(e){e.target===e.currentTarget&&(R&&R(e),!p&&N&&N(e,"backdropClick"))}},a)),g_.createElement(BB,{disableEnforceFocus:g,disableAutoFocus:f,disableRestoreFocus:k,getDoc:U,isEnabled:G,open:P},g_.cloneElement(s,Q))))})),GB=KB,XB=g_.forwardRef((function(e,t){var n=e.absolute,r=void 0!==n&&n,i=e.classes,o=e.className,a=e.component,s=void 0===a?"hr":a,l=e.flexItem,c=void 0!==l&&l,u=e.light,d=void 0!==u&&u,f=e.orientation,h=void 0===f?"horizontal":f,p=e.role,m=void 0===p?"hr"!==s?"separator":void 0:p,g=e.variant,y=void 0===g?"fullWidth":g,v=dD(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return g_.createElement(s,J_({className:IN(i.root,o,"fullWidth"!==y&&i[y],r&&i.absolute,c&&i.flexItem,d&&i.light,"vertical"===h&&i.vertical),role:m,ref:t},v))})),ZB=NN((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:cD(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"})(XB);function JB(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var QB={entering:{opacity:1,transform:JB(1)},entered:{opacity:1,transform:"none"}},eU=g_.forwardRef((function(e,t){var n=e.children,r=e.disableStrictModeCompat,i=void 0!==r&&r,o=e.in,a=e.onEnter,s=e.onEntered,l=e.onEntering,c=e.onExit,u=e.onExited,d=e.onExiting,f=e.style,h=e.timeout,p=void 0===h?"auto":h,m=e.TransitionComponent,g=void 0===m?pB:m,y=dD(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),v=g_.useRef(),b=g_.useRef(),x=NR()||TN,w=x.unstable_strictMode&&!i,k=g_.useRef(null),S=HN(n.ref,t),C=HN(w?k:void 0,S),M=function(e){return function(t,n){if(e){var r=qD(w?[k.current,t]:[t,n],2),i=r[0],o=r[1];void 0===o?e(i):e(i,o)}}},E=M(l),_=M((function(e,t){!function(e){e.scrollTop}(e);var n,r=wB({style:f,timeout:p},{mode:"enter"}),i=r.duration,o=r.delay;"auto"===p?(n=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=n):n=i,e.style.transition=[x.transitions.create("opacity",{duration:n,delay:o}),x.transitions.create("transform",{duration:.666*n,delay:o})].join(","),a&&a(e,t)})),D=M(s),q=M(d),T=M((function(e){var t,n=wB({style:f,timeout:p},{mode:"exit"}),r=n.duration,i=n.delay;"auto"===p?(t=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=t):t=r,e.style.transition=[x.transitions.create("opacity",{duration:t,delay:i}),x.transitions.create("transform",{duration:.666*t,delay:i||.333*t})].join(","),e.style.opacity="0",e.style.transform=JB(.75),c&&c(e)})),R=M(u);return g_.useEffect((function(){return function(){clearTimeout(v.current)}}),[]),g_.createElement(g,J_({appear:!0,in:o,nodeRef:w?k:void 0,onEnter:_,onEntered:D,onEntering:E,onExit:T,onExited:R,onExiting:q,addEndListener:function(e,t){var n=w?e:t;"auto"===p&&(v.current=setTimeout(n,b.current||0))},timeout:"auto"===p?null:p},y),(function(e,t){return g_.cloneElement(n,J_({style:J_({opacity:0,transform:JB(.75),visibility:"exited"!==e||o?void 0:"hidden"},QB[e],f,n.props.style),ref:C},t))}))}));eU.muiSupportAuto=!0;var tU=eU,nU=g_.createContext({}),rU=g_.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.component,a=void 0===o?"ul":o,s=e.dense,l=void 0!==s&&s,c=e.disablePadding,u=void 0!==c&&c,d=e.subheader,f=dD(e,["children","classes","className","component","dense","disablePadding","subheader"]),h=g_.useMemo((function(){return{dense:l}}),[l]);return g_.createElement(nU.Provider,{value:h},g_.createElement(a,J_({className:IN(r.root,i,l&&r.dense,!u&&r.padding,d&&r.subheader),ref:t},f),d,n))})),iU=NN({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(rU),oU="undefined"==typeof window?g_.useEffect:g_.useLayoutEffect,aU=g_.forwardRef((function(e,t){var n=e.alignItems,r=void 0===n?"center":n,i=e.autoFocus,o=void 0!==i&&i,a=e.button,s=void 0!==a&&a,l=e.children,c=e.classes,u=e.className,d=e.component,f=e.ContainerComponent,h=void 0===f?"li":f,p=e.ContainerProps,m=(p=void 0===p?{}:p).className,g=dD(p,["className"]),y=e.dense,v=void 0!==y&&y,b=e.disabled,x=void 0!==b&&b,w=e.disableGutters,k=void 0!==w&&w,S=e.divider,C=void 0!==S&&S,M=e.focusVisibleClassName,E=e.selected,_=void 0!==E&&E,D=dD(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),q=g_.useContext(nU),T={dense:v||q.dense||!1,alignItems:r},R=g_.useRef(null);oU((function(){o&&R.current&&R.current.focus()}),[o]);var N,O,A=g_.Children.toArray(l),P=A.length&&(N=A[A.length-1],O=["ListItemSecondaryAction"],g_.isValidElement(N)&&-1!==O.indexOf(N.type.muiName)),I=g_.useCallback((function(e){R.current=YV.findDOMNode(e)}),[]),L=HN(I,t),z=J_({className:IN(c.root,u,T.dense&&c.dense,!k&&c.gutters,C&&c.divider,x&&c.disabled,s&&c.button,"center"!==r&&c.alignItemsFlexStart,P&&c.secondaryAction,_&&c.selected),disabled:x},D),F=d||"li";return s&&(z.component=d||"div",z.focusVisibleClassName=IN(c.focusVisible,M),F=qB),P?(F=z.component||d?F:"div","li"===h&&("li"===F?F="div":"li"===z.component&&(z.component="div")),g_.createElement(nU.Provider,{value:T},g_.createElement(h,J_({className:IN(c.container,m),ref:L},g),g_.createElement(F,z,A),A.pop()))):g_.createElement(nU.Provider,{value:T},g_.createElement(F,J_({ref:L},z),A))})),sU=NN((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"})(aU),lU=g_.forwardRef((function(e,t){var n=e.classes,r=e.className,i=dD(e,["classes","className"]),o=g_.useContext(nU);return g_.createElement("div",J_({className:IN(n.root,r,"flex-start"===o.alignItems&&n.alignItemsFlexStart),ref:t},i))})),cU=NN((function(e){return{root:{minWidth:56,color:e.palette.action.active,flexShrink:0,display:"inline-flex"},alignItemsFlexStart:{marginTop:8}}}),{name:"MuiListItemIcon"})(lU),uU=g_.forwardRef((function(e,t){var n=e.children,r=e.classes,i=e.className,o=e.disableTypography,a=void 0!==o&&o,s=e.inset,l=void 0!==s&&s,c=e.primary,u=e.primaryTypographyProps,d=e.secondary,f=e.secondaryTypographyProps,h=dD(e,["children","classes","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"]),p=g_.useContext(nU).dense,m=null!=c?c:n;null==m||m.type===NB||a||(m=g_.createElement(NB,J_({variant:p?"body2":"body1",className:r.primary,component:"span",display:"block"},u),m));var g=d;return null==g||g.type===NB||a||(g=g_.createElement(NB,J_({variant:"body2",className:r.secondary,color:"textSecondary",display:"block"},f),g)),g_.createElement("div",J_({className:IN(r.root,i,p&&r.dense,l&&r.inset,m&&g&&r.multiline),ref:t},h),m,g)})),dU=NN({root:{flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},multiline:{marginTop:6,marginBottom:6},dense:{},inset:{paddingLeft:56},primary:{},secondary:{}},{name:"MuiListItemText"})(uU);function fU(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function hU(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function pU(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function mU(e){return"function"==typeof e?e():e}var gU=g_.forwardRef((function(e,t){var n=e.action,r=e.anchorEl,i=e.anchorOrigin,o=void 0===i?{vertical:"top",horizontal:"left"}:i,a=e.anchorPosition,s=e.anchorReference,l=void 0===s?"anchorEl":s,c=e.children,u=e.classes,d=e.className,f=e.container,h=e.elevation,p=void 0===h?8:h,m=e.getContentAnchorEl,g=e.marginThreshold,y=void 0===g?16:g,v=e.onEnter,b=e.onEntered,x=e.onEntering,w=e.onExit,k=e.onExited,S=e.onExiting,C=e.open,M=e.PaperProps,E=void 0===M?{}:M,_=e.transformOrigin,D=void 0===_?{vertical:"top",horizontal:"left"}:_,q=e.TransitionComponent,T=void 0===q?tU:q,R=e.transitionDuration,N=void 0===R?"auto":R,O=e.TransitionProps,A=void 0===O?{}:O,P=dD(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"]),I=g_.useRef(),L=g_.useCallback((function(e){if("anchorPosition"===l)return a;var t=mU(r),n=(t&&1===t.nodeType?t:LN(I.current).body).getBoundingClientRect(),i=0===e?o.vertical:"center";return{top:n.top+fU(n,i),left:n.left+hU(n,o.horizontal)}}),[r,o.horizontal,o.vertical,a,l]),z=g_.useCallback((function(e){var t=0;if(m&&"anchorEl"===l){var n=m(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}}return t}),[o.vertical,l,m]),F=g_.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:fU(e,D.vertical)+t,horizontal:hU(e,D.horizontal)}}),[D.horizontal,D.vertical]),j=g_.useCallback((function(e){var t=z(e),n={width:e.offsetWidth,height:e.offsetHeight},i=F(n,t);if("none"===l)return{top:null,left:null,transformOrigin:pU(i)};var o=L(t),a=o.top-i.vertical,s=o.left-i.horizontal,c=a+n.height,u=s+n.width,d=zN(mU(r)),f=d.innerHeight-y,h=d.innerWidth-y;if(a<y){var p=a-y;a-=p,i.vertical+=p}else if(c>f){var m=c-f;a-=m,i.vertical+=m}if(s<y){var g=s-y;s-=g,i.horizontal+=g}else if(u>h){var v=u-h;s-=v,i.horizontal+=v}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:pU(i)}}),[r,l,L,z,F,y]),$=g_.useCallback((function(){var e=I.current;if(e){var t=j(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[j]),H=g_.useCallback((function(e){I.current=YV.findDOMNode(e)}),[]);g_.useEffect((function(){C&&$()})),g_.useImperativeHandle(n,(function(){return C?{updatePosition:function(){$()}}:null}),[C,$]),g_.useEffect((function(){if(C){var e=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=this;clearTimeout(t),t=setTimeout((function(){e.apply(a,i)}),n)}return r.clear=function(){clearTimeout(t)},r}((function(){$()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[C,$]);var V=N;"auto"!==N||T.muiSupportAuto||(V=void 0);var B=f||(r?LN(mU(r)).body:void 0);return g_.createElement(GB,J_({container:B,open:C,ref:t,BackdropProps:{invisible:!0},className:IN(u.root,d)},P),g_.createElement(T,J_({appear:!0,in:C,onEnter:v,onEntered:b,onExit:w,onExited:k,onExiting:S,timeout:V},A,{onEntering:AN((function(e,t){x&&x(e,t),$()}),A.onEntering)}),g_.createElement(SB,J_({elevation:p,ref:H},E,{className:IN(u.paper,E.className)}),c)))})),yU=NN({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(gU);function vU(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function bU({d:e,size:t,style:n={},viewBox:r="0 0 16 16"}){const i={fontSize:vU(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",...n};return y_.createElement("i",{style:i},y_.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},y_.createElement("path",{d:e})))}const xU={menuItem:"alternative-menu-item"},wU=e=>{const{nested:t,className:n,...r}=e,i=(({nested:e,dir:t})=>$R((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 y_.createElement(sU,F_({className:`${i.root} ${n}`},r))},kU=e=>{if("Tab"===e.key){const t=document.querySelectorAll(`.${xU.menuItem}`);let n;e.shiftKey?null!=t&&t.length&&t[0]===e.target&&(n=t[t.length-1]):null!=t&&t.length&&t[t.length-1]===e.target&&([n]=t),n&&setTimeout((()=>{n.focus()}),50)}};function SU({title:e,selected:t,onClick:n,nested:r,icon:i,bold:o,dir:a}){const s=Lg.detectTextDirection(e);return y_.createElement(wU,{nested:r,role:"menuitem",button:!0,onClick:n,className:xU.menuItem,onKeyDown:kU,dir:a,autoFocus:t},y_.createElement(dU,{primary:e,primaryTypographyProps:{dir:s,...o&&{style:{fontWeight:600}}}}),y_.createElement(cU,{style:{minWidth:16}},y_.createElement(bU,{d:t?S_.d:""})),i&&y_.createElement(cU,{style:{minWidth:16}},y_.createElement(bU,{d:i.d})))}SU.propTypes={title:V_.string.isRequired,selected:V_.bool,onClick:V_.func.isRequired,nested:V_.bool,icon:V_.shape({d:V_.string.isRequired}),bold:V_.bool,dir:V_.string.isRequired},SU.defaultProps={selected:!1,nested:!1,icon:void 0,bold:!1},wU.propTypes={nested:V_.bool,className:V_.string},wU.defaultProps={nested:!1,className:xU.menuItem};const CU={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 MU({chartId:e,alignTo:t,currentId:n,dir:r,dock:i,list:o,onClose:a,show:s,instruction:l}){const c=o.map(((t,i)=>{var s;return y_.createElement(y_.Fragment,{key:t.id},y_.createElement(SU,{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&&y_.createElement(iU,{dense:!0,dir:r,component:"div",disablePadding:!0},t.children.map((e=>y_.createElement(SU,{key:e.id,nested:!0,title:e.title,selected:e.selected,onClick:()=>{e.onSelect(),a(t.id)},dir:r})))),i<o.length-1&&y_.createElement(ZB,{key:`divider-${t.id}`}))}));return y_.createElement(yU,F_({anchorEl:t,open:s,onClose:a},CU[i],{PaperProps:{style:{minWidth:"250px",maxHeight:"300px"}}}),y_.createElement(iU,{dense:!0,disablePadding:!0,dir:r,"aria-label":l,component:"nav"},c))}MU.propTypes={chartId:V_.string.isRequired,alignTo:V_.any,currentId:V_.string.isRequired,dir:V_.string.isRequired,dock:V_.string.isRequired,list:V_.array,onClose:V_.func.isRequired,show:V_.bool.isRequired,instruction:V_.string.isRequired},MU.defaultProps={list:[],alignTo:null};const EU="title-button",_U="active-title-button",DU=RN((({children:e,...t})=>y_.createElement(AB,F_({size:"small",disableRipple:!0,disableTouchRipple:!0},t),e)))((()=>({"&:focus":{boxShadow:"inset 0 0 0 2px #177FE6 !important"}}))),qU=RN(AB)((()=>({borderRadius:"4px",width:"24px",height:"24px",minWidth:"22px",padding:0})));class TU extends y_.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=y_.createRef()}componentDidMount(){const{popover:e,selections:t,supportConditional:n,showGroupDimOptions:r}=this.props;t&&(this.onSelectionsActivated=()=>this.setState({inSelection:!0}),this.onSelectionsDeactivated=()=>this.setState({inSelection:!1}),t.addListener("activated",this.onSelectionsActivated),t.addListener("deactivated",this.onSelectionsDeactivated),t.addListener("canceled",this.onSelectionsDeactivated)),e&&(n||r)&&e.getPopoverOptions().then((e=>{this.setState({hasPopoverOptions:0!==e.length})}))}componentDidUpdate(e,t){const{popover:n,supportConditional:r,showGroupDimOptions:i}=this.props;n&&(r||i)&&n.getPopoverOptions().then((e=>{t.hasPopoverOptions!==(0!==e.length)&&this.setState({hasPopoverOptions:0!==e.length})}))}componentWillUnmount(){const{selections:e}=this.props;e&&(e.removeListener("activated",this.onSelectionsActivated),e.removeListener("deactivated",this.onSelectionsDeactivated),e.removeListener("canceled",this.onSelectionsDeactivated))}openPopover(e){if(!(this.state.closeTime&&Date.now()-this.state.closeTime<20)){if(e.target){const t=e.target.closest(`.${EU}`);t&&t.classList.add(_U)}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(`.${EU}[data-id="${e}"]`);t&&t.focus()}),1e3);else{const e=document.querySelector(`.${_U}`);e&&(e.classList.remove(_U),setTimeout((()=>{e.focus()}),50))}}render(){const{chartId:e,titleData:t,popover:n,translator:r,disabled:i,isDimension:o,padding:a,minWidth:s,hasAlternative:l,supportConditional:c,showGroupDimOptions:u}=this.props,d={flex:"1 1 auto",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontWeight:"normal",lineHeight:"normal",...this.props.style},f=t.breadcrumbs.length,h=i||Boolean(!t.drillUp)||this.state.inSelection,p=t.breadcrumbs.map(((e,n)=>y_.createElement(DU,{style:{display:"flex",alignItems:"center",color:h&&"rgba(89, 89, 89, 0.8)",pointerEvents:h?"none":"auto",paddingTop:0,paddingBottom:0,height:"100%"},key:n,onClick:()=>h?void 0:t.drillUp(f-n),title:e},y_.createElement("span",{style:d},e),y_.createElement(bU,F_({},M_,{size:"small",style:{margin:"0 8px"}}))))),m=c||u?this.state.hasPopoverOptions:l,g=n&&!this.state.open?this.openPopover:this.closePopover,y=!n||i||this.state.inSelection,v={display:"flex",alignItems:"center",width:"100%",color:y&&"rgba(89, 89, 89, 0.8)",height:"100%",border:!o&&y&&"none",...a?{padding:a}:{paddingTop:0,paddingBottom:0},...s&&{minWidth:s}};this.state.open&&(v.background="rgba(0,0,0,0.08)");const b=()=>{this.setState({disableCyclicButton:!0})},x=Lg.detectTextDirection(t.text),w=y_.createElement(DU,{"aria-label":r.get(`Accessibility.${n&&m?"Alternative":"Normal"}.Instructions`,[t.text]),style:v,onClick:y?void 0:g,title:t.text,tabIndex:y?-1:0,onFocus:y?void 0:e=>{e.currentTarget.style.boxShadow="0px 0px 0px 2px #177FE6 inset",e.currentTarget.style.borderRadius="2px"},onBlur:y?void 0:e=>{e.currentTarget.style.boxShadow="none",e.currentTarget.style.borderRadius="0px"},onMouseDown:e=>{e.preventDefault()},className:`${EU} ${t.id}`,"data-id":`${e}-${t.id}`},t.locked&&y_.createElement(bU,F_({},k_,{size:"small",title:r.get("Tooltip.selections.locked")})),y_.createElement("span",{style:d,dir:x},t.text),n&&m&&y_.createElement(bU,F_({},C_,{size:"small",style:{margin:"0 8px"}})));return y_.createElement(y_.Fragment,null,t.icon&&t.icon.onClick&&y_.createElement(qU,{variant:"outlined",disabled:this.state.disableCyclicButton||this.state.inSelection,onClick:i?void 0:()=>t.icon.onClick({onError:b})},y_.createElement(bU,F_({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip)}))),t.icon&&!t.icon.onClick&&y_.createElement(bU,F_({},t.icon.path,{size:"small",title:r.get(t.icon.tooltip),style:{margin:"0 4px 0 0"}})),p,y_.createElement("div",{ref:this.alignToRef,style:{overflow:"hidden",pointerEvents:m?"auto":"none",height:"100%"}},w),n&&m&&y_.createElement(MU,{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 RU(e){return{top:"bottom",bottom:"top",left:"right",right:"left"}[e]}function NU(e){function t(e){return!e.isDimension&&Ng.getValue(e,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures.length")>0}return{renderer:"react",disableTriggers:!0,preferredSize:function(){const{height:n}=e.measureText({text:"M",fontSize:this.style.fontSize,fontFamily:this.style.fontFamily});return this.settings.settings.isDimension||t(this.settings.settings)?Math.max(28,n):Math.max(20,n)},render(){const{settings:{app:e,disabled:n,explicitItemInfos:r,hyperCube:i,hyperCubeDef:o,isDimension:a,minWidth:s,model:l,onChangeToAlternative:c,padding:u,rtl:d,selections:f,skipAttributeExpressions:h,translator:p,supportConditional:m=!1},layout:{dock:g}}=this.settings,y="top"!==g&&"bottom"!==g||!d?"ltr":"rtl",v=function(e,t){const n={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",height:"100%"};return"left"===e?(n.width=`${t.height}px`,n.height=`${t.width}px`,n.transform=`rotate(-90deg) translate(-${t.height}px, 0)`,n.transformOrigin="top left"):"right"===e&&(n.width=`${t.height}px`,n.height=`${t.width}px`,n.transform=`rotate(90deg) translate(0, -${t.width}px)`,n.transformOrigin="top left"),n}(g,this.rect),b=o&&o.qLayoutExclude&&o.qLayoutExclude.qHyperCubeDef,x=b&&b[a?"qDimensions":"qMeasures"]||[],w=r||i[a?"qDimensionInfo":"qMeasureInfo"],k=a?P_:L_,S=a?I_:z_,C=Boolean(l&&l.colorSupport&&l.modifiers),M=C&&((E=this.settings.settings).isDimension&&Ng.getValue(E,"hyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions.length")>0||t(this.settings.settings));var E;const _=w.map(((t,r)=>{var i;const o="number"==typeof t.explicitColumn?t.explicitColumn:r,y=S(t,o,l,e),v=r===w.length-1,b=Boolean(e)&&a&&"N"!==t.qGrouping,E=C||b?k({column:o,activeInfo:t,altList:x,app:e,dir:d?"rtl":"ltr",dock:RU(g),model:l,onChange:c,skipAttributeExpressions:h,translator:p,allowChangeOfAlternatives:C}):void 0;return y_.createElement(y_.Fragment,{key:t.cId},y_.createElement(TU,{chartId:null!==(i=null==l?void 0:l.id)&&void 0!==i?i:"",showGroupDimOptions:b,popover:E,titleData:y,model:l,translator:p,selections:f,disabled:n(),style:this.style,isDimension:a,padding:u,minWidth:s,hasAlternative:M,supportConditional:m}),!v&&y_.createElement("span",{style:{lineHeight:"normal",...this.style}},", "))}));return y_.createElement("div",{style:v,dir:y},_)}}}TU.propTypes={chartId:V_.string.isRequired,disabled:V_.bool.isRequired,padding:V_.string,minWidth:V_.string,titleData:V_.shape({breadcrumbs:V_.arrayOf(V_.string).isRequired,icon:V_.shape({path:V_.shape({d:V_.string.isRequired}),tooltip:V_.string.isRequired,onClick:V_.func}),index:V_.number.isRequired,locked:V_.bool.isRequired,text:V_.string.isRequired,popoverText:V_.string.isRequired,drillUp:V_.func,id:V_.string.isRequired}).isRequired,popover:V_.shape({dir:V_.string.isRequired,dock:V_.string.isRequired,getPopoverOptions:V_.func.isRequired}),translator:V_.shape({get:V_.func.isRequired}).isRequired,selections:V_.shape({isActive:V_.func,addListener:V_.func,removeListener:V_.func}),style:V_.shape({fontSize:V_.string,color:V_.string,fontFamily:V_.string}).isRequired,isDimension:V_.bool.isRequired,hasAlternative:V_.bool.isRequired,supportConditional:V_.bool.isRequired,showGroupDimOptions:V_.bool.isRequired},TU.defaultProps={popover:null,selections:null,padding:"",minWidth:""};const OU=ID({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 AU=FD({productionPrefix:"qc610",disableGlobal:!0,seed:""});function PU(){function e({x:e,y:t,width:n,height:r,scaleRatio:i,margin:o}={}){const a={x:0,y:0,width:0,height:0,scaleRatio:{x:1,y:1},margin:{left:0,top:0}};return a.x=Number.isNaN(e)?a.x:e,a.y=Number.isNaN(t)?a.y:t,a.width=Number.isNaN(n)?a.width:n,a.height=Number.isNaN(r)?a.height:r,void 0!==i&&(a.scaleRatio.x=Number.isNaN(i.x)?a.scaleRatio.x:i.x,a.scaleRatio.y=Number.isNaN(i.y)?a.scaleRatio.y:i.y),void 0!==o&&(a.margin.left=Number.isNaN(o.left)?0:o.left,a.margin.top=Number.isNaN(o.top)?0:o.top),a}return function(t={}){const{createElement:n=document.createElement.bind(document)}=t;let r,i=e();const o={element:()=>r,root:()=>r,appendTo:e=>(r||(r=n("div"),r.style.position="absolute",r.style["-webkit-font-smoothing"]="antialiased",r.style["-moz-osx-font-smoothing"]="antialiased",r.style.pointerEvents="none"),e.appendChild(r),r),render(e){if(!r)return!1;const t=i.scaleRatio.x,n=i.scaleRatio.y;return r.style.left=`${Math.round(i.margin.left+i.x*t)}px`,r.style.top=`${Math.round(i.margin.top+i.y*n)}px`,r.style.width=`${Math.round(i.width)}px`,r.style.height=`${Math.round(i.height)}px`,r.style.transform=`scale(${t}, ${n})`,r.style.transformOrigin="top left",KV.render(function(e,t){return y_.createElement(LR,{generateClassName:t},y_.createElement(DN,{theme:OU},e))}(e,AU),r),!0},itemsAt:()=>[],findShapes:()=>[],clear:()=>(r&&KV.unmountComponentAtNode(r),o),destroy(){r&&r.parentElement&&(KV.unmountComponentAtNode(r),r.parentElement.removeChild(r)),r=null},size:t=>(t&&(i=e(t)),i)};return o}}var IU={black:"#000",white:"#fff"};var LU={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var zU={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var FU={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var jU={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var $U={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};var HU={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var VU={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 BU(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 UU=Object.freeze({__proto__:null,default:BU}),WU="$$material";function YU(){return YU=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},YU.apply(this,arguments)}function KU(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function GU(){return GU=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},GU.apply(this,arguments)}function XU(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var ZU=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,JU=XU((function(e){return ZU.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var QU=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),eW="-ms-",tW="-moz-",nW="-webkit-",rW="comm",iW="rule",oW="decl",aW="@keyframes",sW=Math.abs,lW=String.fromCharCode,cW=Object.assign;function uW(e){return e.trim()}function dW(e,t,n){return e.replace(t,n)}function fW(e,t){return e.indexOf(t)}function hW(e,t){return 0|e.charCodeAt(t)}function pW(e,t,n){return e.slice(t,n)}function mW(e){return e.length}function gW(e){return e.length}function yW(e,t){return t.push(e),e}var vW=1,bW=1,xW=0,wW=0,kW=0,SW="";function CW(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:vW,column:bW,length:a,return:""}}function MW(e,t){return cW(CW("",null,null,"",null,null,0),e,{length:-e.length},t)}function EW(){return kW=wW>0?hW(SW,--wW):0,bW--,10===kW&&(bW=1,vW--),kW}function _W(){return kW=wW<xW?hW(SW,wW++):0,bW++,10===kW&&(bW=1,vW++),kW}function DW(){return hW(SW,wW)}function qW(){return wW}function TW(e,t){return pW(SW,e,t)}function RW(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 NW(e){return vW=bW=1,xW=mW(SW=e),wW=0,[]}function OW(e){return SW="",e}function AW(e){return uW(TW(wW-1,LW(91===e?e+2:40===e?e+1:e)))}function PW(e){for(;(kW=DW())&&kW<33;)_W();return RW(e)>2||RW(kW)>3?"":" "}function IW(e,t){for(;--t&&_W()&&!(kW<48||kW>102||kW>57&&kW<65||kW>70&&kW<97););return TW(e,qW()+(t<6&&32==DW()&&32==_W()))}function LW(e){for(;_W();)switch(kW){case e:return wW;case 34:case 39:34!==e&&39!==e&&LW(kW);break;case 40:41===e&&LW(e);break;case 92:_W()}return wW}function zW(e,t){for(;_W()&&e+kW!==57&&(e+kW!==84||47!==DW()););return"/*"+TW(t,wW-1)+"*"+lW(47===e?e:_W())}function FW(e){for(;!RW(DW());)_W();return TW(e,wW)}function jW(e){return OW($W("",null,null,null,[""],e=NW(e),0,[0],e))}function $W(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,f=0,h=0,p=0,m=1,g=1,y=1,v=0,b="",x=i,w=o,k=r,S=b;g;)switch(p=v,v=_W()){case 40:if(108!=p&&58==hW(S,d-1)){-1!=fW(S+=dW(AW(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:S+=AW(v);break;case 9:case 10:case 13:case 32:S+=PW(p);break;case 92:S+=IW(qW()-1,7);continue;case 47:switch(DW()){case 42:case 47:yW(VW(zW(_W(),qW()),t,n),l);break;default:S+="/"}break;case 123*m:s[c++]=mW(S)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==y&&(S=dW(S,/\f/g,"")),h>0&&mW(S)-d&&yW(h>32?BW(S+";",r,n,d-1):BW(dW(S," ","")+";",r,n,d-2),l);break;case 59:S+=";";default:if(yW(k=HW(S,t,n,c,u,i,s,b,x=[],w=[],d),o),123===v)if(0===u)$W(S,t,k,k,x,o,d,s,w);else switch(99===f&&110===hW(S,3)?100:f){case 100:case 108:case 109:case 115:$W(e,k,k,r&&yW(HW(e,k,k,0,0,i,s,b,i,x=[],d),w),i,w,d,s,r?x:w);break;default:$W(S,k,k,k,[""],w,0,s,w)}}c=u=h=0,m=y=1,b=S="",d=a;break;case 58:d=1+mW(S),h=p;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==EW())continue;switch(S+=lW(v),v*m){case 38:y=u>0?1:(S+="\f",-1);break;case 44:s[c++]=(mW(S)-1)*y,y=1;break;case 64:45===DW()&&(S+=AW(_W())),f=DW(),u=d=mW(b=S+=FW(qW())),v++;break;case 45:45===p&&2==mW(S)&&(m=0)}}return o}function HW(e,t,n,r,i,o,a,s,l,c,u){for(var d=i-1,f=0===i?o:[""],h=gW(f),p=0,m=0,g=0;p<r;++p)for(var y=0,v=pW(e,d+1,d=sW(m=a[p])),b=e;y<h;++y)(b=uW(m>0?f[y]+" "+v:dW(v,/&\f/g,f[y])))&&(l[g++]=b);return CW(e,t,n,0===i?iW:s,l,c,u)}function VW(e,t,n){return CW(e,t,n,rW,lW(kW),pW(e,2,-2),0)}function BW(e,t,n,r){return CW(e,t,n,oW,pW(e,0,r),pW(e,r+1,-1),r)}function UW(e,t){for(var n="",r=gW(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function WW(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case oW:return e.return=e.return||e.value;case rW:return"";case aW:return e.return=e.value+"{"+UW(e.children,r)+"}";case iW:e.value=e.props.join(",")}return mW(n=UW(e.children,r))?e.return=e.value+"{"+n+"}":""}function YW(e){var t=gW(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}var KW=function(e,t,n){for(var r=0,i=0;r=i,i=DW(),38===r&&12===i&&(t[n]=1),!RW(i);)_W();return TW(e,wW)},GW=function(e,t){return OW(function(e,t){var n=-1,r=44;do{switch(RW(r)){case 0:38===r&&12===DW()&&(t[n]=1),e[n]+=KW(wW-1,t,n);break;case 2:e[n]+=AW(r);break;case 4:if(44===r){e[++n]=58===DW()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=lW(r)}}while(r=_W());return e}(NW(e),t))},XW=new WeakMap,ZW=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)||XW.get(n))&&!r){XW.set(e,!0);for(var i=[],o=GW(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},JW=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function QW(e,t){switch(function(e,t){return 45^hW(e,0)?(((t<<2^hW(e,0))<<2^hW(e,1))<<2^hW(e,2))<<2^hW(e,3):0}(e,t)){case 5103:return nW+"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 nW+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return nW+e+tW+e+eW+e+e;case 6828:case 4268:return nW+e+eW+e+e;case 6165:return nW+e+eW+"flex-"+e+e;case 5187:return nW+e+dW(e,/(\w+).+(:[^]+)/,nW+"box-$1$2"+eW+"flex-$1$2")+e;case 5443:return nW+e+eW+"flex-item-"+dW(e,/flex-|-self/,"")+e;case 4675:return nW+e+eW+"flex-line-pack"+dW(e,/align-content|flex-|-self/,"")+e;case 5548:return nW+e+eW+dW(e,"shrink","negative")+e;case 5292:return nW+e+eW+dW(e,"basis","preferred-size")+e;case 6060:return nW+"box-"+dW(e,"-grow","")+nW+e+eW+dW(e,"grow","positive")+e;case 4554:return nW+dW(e,/([^-])(transform)/g,"$1"+nW+"$2")+e;case 6187:return dW(dW(dW(e,/(zoom-|grab)/,nW+"$1"),/(image-set)/,nW+"$1"),e,"")+e;case 5495:case 3959:return dW(e,/(image-set\([^]*)/,nW+"$1$`$1");case 4968:return dW(dW(e,/(.+:)(flex-)?(.*)/,nW+"box-pack:$3"+eW+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+nW+e+e;case 4095:case 3583:case 4068:case 2532:return dW(e,/(.+)-inline(.+)/,nW+"$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(mW(e)-1-t>6)switch(hW(e,t+1)){case 109:if(45!==hW(e,t+4))break;case 102:return dW(e,/(.+:)(.+)-([^]+)/,"$1"+nW+"$2-$3$1"+tW+(108==hW(e,t+3)?"$3":"$2-$3"))+e;case 115:return~fW(e,"stretch")?QW(dW(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==hW(e,t+1))break;case 6444:switch(hW(e,mW(e)-3-(~fW(e,"!important")&&10))){case 107:return dW(e,":",":"+nW)+e;case 101:return dW(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+nW+(45===hW(e,14)?"inline-":"")+"box$3$1"+nW+"$2$3$1"+eW+"$2box$3")+e}break;case 5936:switch(hW(e,t+11)){case 114:return nW+e+eW+dW(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return nW+e+eW+dW(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return nW+e+eW+dW(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return nW+e+eW+e+e}return e}var eY="undefined"!=typeof document,tY=eY?void 0:function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}((function(){return XU((function(){var e={};return function(t){return e[t]}}))})),nY=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case oW:e.return=QW(e.value,e.length);break;case aW:return UW([MW(e,{value:dW(e.value,"@","@"+nW)})],r);case iW: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 UW([MW(e,{props:[dW(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return UW([MW(e,{props:[dW(t,/:(plac\w+)/,":"+nW+"input-$1")]}),MW(e,{props:[dW(t,/:(plac\w+)/,":-moz-$1")]}),MW(e,{props:[dW(t,/:(plac\w+)/,eW+"input-$1")]})],r)}return""}))}}],rY=function(e){var t=e.key;if(eY&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,i,o=e.stylisPlugins||nY,a={},s=[];eY&&(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=[ZW,JW];if(eY){var u,d=[WW,(l=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&l(e)})],f=YW(c.concat(o,d));i=function(e,t,n,r){u=n,function(e){UW(jW(e),f)}(e?e+"{"+t.styles+"}":t.styles),r&&(y.inserted[t.name]=!0)}}else{var h=[WW],p=YW(c.concat(o,h)),m=tY(o)(t),g=function(e,t){var n=t.name;return void 0===m[n]&&(m[n]=function(e){return UW(jW(e),p)}(e?e+"{"+t.styles+"}":t.styles)),m[n]};i=function(e,t,n,r){var i=t.name,o=g(e,t);return void 0===y.compat?(r&&(y.inserted[i]=!0),o):r?void(y.inserted[i]=o):o}}var y={key:t,sheet:new QU({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return y.sheet.hydrate(s),y},iY="undefined"!=typeof document;var oY=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===iY&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},aY=function(e,t,n){oY(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i="",o=t;do{var a=e.insert(t===o?"."+r:"",o,e.sheet,!0);iY||void 0===a||(i+=a),o=o.next}while(void 0!==o);if(!iY&&0!==i.length)return i}};var sY={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},lY=/[A-Z]|^ms/g,cY=/_EMO_([^_]+?)_([^]*?)_EMO_/g,uY=function(e){return 45===e.charCodeAt(1)},dY=function(e){return null!=e&&"boolean"!=typeof e},fY=XU((function(e){return uY(e)?e:e.replace(lY,"-$&").toLowerCase()})),hY=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(cY,(function(e,t,n){return mY={name:t,styles:n,next:mY},t}))}return 1===sY[e]||uY(e)||"number"!=typeof t||0===t?t:t+"px"};function pY(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return mY={name:n.name,styles:n.styles,next:mY},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)mY={name:r.name,styles:r.styles,next:mY},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=pY(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":dY(a)&&(r+=fY(o)+":"+hY(o,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=pY(e,t,a);switch(o){case"animation":case"animationName":r+=fY(o)+":"+s+";";break;default:r+=o+"{"+s+"}"}}else for(var l=0;l<a.length;l++)dY(a[l])&&(r+=fY(o)+":"+hY(o,a[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var i=mY,o=n(e);return mY=i,pY(e,t,o)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var mY,gY=/label:\s*([^\s;\n{]+)\s*(;|$)/g,yY=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";mY=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=pY(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++)i+=pY(n,t,e[a]),r&&(i+=o[a]);gY.lastIndex=0;for(var s,l="";null!==(s=gY.exec(i));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:c,styles:i,next:mY}},vY="undefined"!=typeof document,bY=function(e){return e()},xY=!!v_.useInsertionEffect&&v_.useInsertionEffect,wY=vY&&xY||bY,kY=xY||g_.useLayoutEffect,SY="undefined"!=typeof document,CY=g_.createContext("undefined"!=typeof HTMLElement?rY({key:"css"}):null),MY=CY.Provider,EY=function(e){return g_.forwardRef((function(t,n){var r=g_.useContext(CY);return e(t,r,n)}))};SY||(EY=function(e){return function(t){var n=g_.useContext(CY);return null===n?(n=rY({key:"css"}),g_.createElement(CY.Provider,{value:n},e(t,n))):e(t,n)}});var _Y=g_.createContext({}),DY=EY((function(e,t){var n=e.styles,r=yY([n],void 0,g_.useContext(_Y));if(!SY){for(var i,o=r.name,a=r.styles,s=r.next;void 0!==s;)o+=" "+s.name,a+=s.styles,s=s.next;var l=!0===t.compat,c=t.insert("",{name:o,styles:a},t.sheet,l);return l?null:g_.createElement("style",((i={})["data-emotion"]=t.key+"-global "+o,i.dangerouslySetInnerHTML={__html:c},i.nonce=t.sheet.nonce,i))}var u=g_.useRef();return kY((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,o=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==o&&(i=!0,o.setAttribute("data-emotion",e),n.hydrate([o])),u.current=[n,i],function(){n.flush()}}),[t]),kY((function(){var e=u.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&aY(t,r.next,!0),n.tags.length){var i=n.tags[n.tags.length-1].nextElementSibling;n.before=i,n.flush()}t.insert("",r,n,!1)}}),[t,r.name]),null}));function qY(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return yY(t)}var TY=function(){var e=qY.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_"}}},RY=JU,NY=function(e){return"theme"!==e},OY=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?RY:NY},AY=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},PY="undefined"!=typeof document,IY=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;oY(t,n,r);var i=wY((function(){return aY(t,n,r)}));if(!PY&&void 0!==i){for(var o,a=n.name,s=n.next;void 0!==s;)a+=" "+s.name,s=s.next;return g_.createElement("style",((o={})["data-emotion"]=t.key+" "+a,o.dangerouslySetInnerHTML={__html:i},o.nonce=t.sheet.nonce,o))}return null},LY=function e(t,n){var r,i,o=t.__emotion_real===t,a=o&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var s=AY(t,n,o),l=s||OY(a),c=!l("as");return function(){var u=arguments,d=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{d.push(u[0][0]);for(var f=u.length,h=1;h<f;h++)d.push(u[h],u[0][h])}var p=EY((function(e,t,n){var r,o,u,f,h=c&&e.as||a,p="",m=[],g=e;if(null==e.theme){for(var y in g={},e)g[y]=e[y];g.theme=g_.useContext(_Y)}"string"==typeof e.className?(r=t.registered,o=m,u=e.className,f="",u.split(" ").forEach((function(e){void 0!==r[e]?o.push(r[e]+";"):f+=e+" "})),p=f):null!=e.className&&(p=e.className+" ");var v=yY(d.concat(m),t.registered,g);p+=t.key+"-"+v.name,void 0!==i&&(p+=" "+i);var b=c&&void 0===s?OY(h):l,x={};for(var w in e)c&&"as"===w||b(w)&&(x[w]=e[w]);return x.className=p,x.ref=n,g_.createElement(g_.Fragment,null,g_.createElement(IY,{cache:t,serialized:v,isStringTag:"string"==typeof h}),g_.createElement(h,x))}));return p.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",p.defaultProps=t.defaultProps,p.__emotion_real=p,p.__emotion_base=a,p.__emotion_styles=d,p.__emotion_forwardProp=s,Object.defineProperty(p,"toString",{value:function(){return"."+i}}),p.withComponent=function(t,r){return e(t,GU({},n,r,{shouldForwardProp:AY(p,r,!0)})).apply(void 0,d)},p}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){LY[e]=LY(e)}));var zY={exports:{}},FY={},jY=g_,$Y=Symbol.for("react.element"),HY=Symbol.for("react.fragment"),VY=Object.prototype.hasOwnProperty,BY=jY.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,UY={key:!0,ref:!0,__self:!0,__source:!0};function WY(e,t,n){var r,i={},o=null,a=null;for(r in void 0!==n&&(o=""+n),void 0!==t.key&&(o=""+t.key),void 0!==t.ref&&(a=t.ref),t)VY.call(t,r)&&!UY.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:$Y,type:e,key:o,ref:a,props:i,_owner:BY.current}}FY.Fragment=HY,FY.jsx=WY,FY.jsxs=WY,zY.exports=FY;var YY=zY.exports;let KY;"object"==typeof document&&(KY=rY({key:"css",prepend:!0}));var GY=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 YY.jsx(DY,{styles:r})}
|
|
43
43
|
/**
|
|
44
44
|
* @mui/styled-engine v5.15.14
|
|
45
45
|
*
|
|
46
46
|
* @license MIT
|
|
47
47
|
* This source code is licensed under the MIT license found in the
|
|
48
48
|
* LICENSE file in the root directory of this source tree.
|
|
49
|
-
*/,StyledEngineProvider:function(e){const{injectFirst:t,children:n}=e;return t&&GY?KY.jsx(EY,{value:GY,children:n}):n},ThemeContext:DY,css:TY,default:function(e,t){return zY(e,t)},internal_processStyles:(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},keyframes:RY});function ZY(){return ZY=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ZY.apply(this,arguments)}function JY(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function QY(){return QY=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},QY.apply(this,arguments)}function eK(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 tK(e){if(!eK(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=tK(e[n])})),t}function nK(e,t,n={clone:!0}){const r=n.clone?QY({},e):e;return eK(e)&&eK(t)&&Object.keys(t).forEach((i=>{"__proto__"!==i&&(eK(t[i])&&i in e&&eK(e[i])?r[i]=nK(e[i],t[i],n):n.clone?r[i]=eK(t[i])?tK(t[i]):t[i]:r[i]=t[i])})),r}var rK=Object.freeze({__proto__:null,default:nK,isPlainObject:eK});const iK=["values","unit","step"],oK=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)=>ZY({},e,{[t.key]:t.val})),{})};function aK(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=JY(e,iK),o=oK(t),a=Object.keys(o);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,i){const o=a.indexOf(i);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==o&&"number"==typeof t[a[o]]?t[a[o]]:i)-r/100}${n})`}return ZY({keys:a,values:o,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},i)}var sK={borderRadius:4};function lK(e,t){return t?nK(e,t,{clone:!1}):e}const cK={xs:0,sm:600,md:900,lg:1200,xl:1536},uK={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${cK[e]}px)`};function dK(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||uK;return t.reduce(((r,i,o)=>(r[e.up(e.keys[o])]=n(t[o]),r)),{})}if("object"==typeof t){const e=r.breakpoints||uK;return Object.keys(t).reduce(((r,i)=>{if(-1!==Object.keys(e.values||cK).indexOf(i)){r[e.up(i)]=n(t[i],i)}else{const e=i;r[e]=t[e]}return r}),{})}return n(t)}function fK(e){if("string"!=typeof e)throw new Error(UU(7));return e.charAt(0).toUpperCase()+e.slice(1)}var hK=Object.freeze({__proto__:null,default:fK});function pK(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 mK(e,t,n,r=n){let i;return i="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:pK(e,n)||r,t&&(i=t(i,r,e)),i}function gK(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=e=>{if(null==e[t])return null;const o=e[t],a=pK(e.theme,r)||{};return dK(e,o,(e=>{let r=mK(a,i,e);return e===r&&"string"==typeof e&&(r=mK(a,i,`${t}${"default"===e?"":fK(e)}`,e)),!1===n?r:{[n]:r}}))};return o.propTypes={},o.filterProps=[t],o}const yK={m:"margin",p:"padding"},vK={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},bK={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},xK=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!bK[e])return[e];e=bK[e]}const[t,n]=e.split(""),r=yK[t],i=vK[n]||"";return Array.isArray(i)?i.map((e=>r+e)):[r+i]})),wK=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],kK=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function SK(e,t,n,r){var i;const o=null!=(i=pK(e,t,!1))?i:n;return"number"==typeof o?e=>"string"==typeof e?e:o*e:Array.isArray(o)?e=>"string"==typeof e?e:o[e]:"function"==typeof o?o:()=>{}}function CK(e){return SK(e,"spacing",8)}function MK(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 EK(e,t,n,r){if(-1===t.indexOf(n))return null;const i=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=MK(t,n),e)),{})}(xK(n),r);return dK(e,e[n],i)}function _K(e,t){const n=CK(e.theme);return Object.keys(e).map((r=>EK(e,t,r,n))).reduce(lK,{})}function DK(e){return _K(e,wK)}function qK(e){return _K(e,kK)}function TK(...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]?lK(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function RK(e){return"number"!=typeof e?e:`${e}px solid`}function NK(e,t){return gK({prop:e,themeKey:"borders",transform:t})}DK.propTypes={},DK.filterProps=wK,qK.propTypes={},qK.filterProps=kK;const OK=NK("border",RK),AK=NK("borderTop",RK),PK=NK("borderRight",RK),IK=NK("borderBottom",RK),LK=NK("borderLeft",RK),zK=NK("borderColor"),FK=NK("borderTopColor"),jK=NK("borderRightColor"),$K=NK("borderBottomColor"),HK=NK("borderLeftColor"),VK=NK("outline",RK),BK=NK("outlineColor"),UK=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=SK(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:MK(t,e)});return dK(e,e.borderRadius,n)}return null};UK.propTypes={},UK.filterProps=["borderRadius"],TK(OK,AK,PK,IK,LK,zK,FK,jK,$K,HK,UK,VK,BK);const WK=e=>{if(void 0!==e.gap&&null!==e.gap){const t=SK(e.theme,"spacing",8),n=e=>({gap:MK(t,e)});return dK(e,e.gap,n)}return null};WK.propTypes={},WK.filterProps=["gap"];const YK=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=SK(e.theme,"spacing",8),n=e=>({columnGap:MK(t,e)});return dK(e,e.columnGap,n)}return null};YK.propTypes={},YK.filterProps=["columnGap"];const KK=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=SK(e.theme,"spacing",8),n=e=>({rowGap:MK(t,e)});return dK(e,e.rowGap,n)}return null};KK.propTypes={},KK.filterProps=["rowGap"];function GK(e,t){return"grey"===t?t:e}TK(WK,YK,KK,gK({prop:"gridColumn"}),gK({prop:"gridRow"}),gK({prop:"gridAutoFlow"}),gK({prop:"gridAutoColumns"}),gK({prop:"gridAutoRows"}),gK({prop:"gridTemplateColumns"}),gK({prop:"gridTemplateRows"}),gK({prop:"gridTemplateAreas"}),gK({prop:"gridArea"}));function XK(e){return e<=1&&0!==e?100*e+"%":e}TK(gK({prop:"color",themeKey:"palette",transform:GK}),gK({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:GK}),gK({prop:"backgroundColor",themeKey:"palette",transform:GK}));const ZK=gK({prop:"width",transform:XK}),JK=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const i=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||cK[t];return i?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:XK(t)}};return dK(e,e.maxWidth,t)}return null};JK.filterProps=["maxWidth"];const QK=gK({prop:"minWidth",transform:XK}),eG=gK({prop:"height",transform:XK}),tG=gK({prop:"maxHeight",transform:XK}),nG=gK({prop:"minHeight",transform:XK});gK({prop:"size",cssProperty:"width",transform:XK}),gK({prop:"size",cssProperty:"height",transform:XK});TK(ZK,JK,QK,eG,tG,nG,gK({prop:"boxSizing"}));const rG={border:{themeKey:"borders",transform:RK},borderTop:{themeKey:"borders",transform:RK},borderRight:{themeKey:"borders",transform:RK},borderBottom:{themeKey:"borders",transform:RK},borderLeft:{themeKey:"borders",transform:RK},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:RK},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:UK},color:{themeKey:"palette",transform:GK},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:GK},backgroundColor:{themeKey:"palette",transform:GK},p:{style:qK},pt:{style:qK},pr:{style:qK},pb:{style:qK},pl:{style:qK},px:{style:qK},py:{style:qK},padding:{style:qK},paddingTop:{style:qK},paddingRight:{style:qK},paddingBottom:{style:qK},paddingLeft:{style:qK},paddingX:{style:qK},paddingY:{style:qK},paddingInline:{style:qK},paddingInlineStart:{style:qK},paddingInlineEnd:{style:qK},paddingBlock:{style:qK},paddingBlockStart:{style:qK},paddingBlockEnd:{style:qK},m:{style:DK},mt:{style:DK},mr:{style:DK},mb:{style:DK},ml:{style:DK},mx:{style:DK},my:{style:DK},margin:{style:DK},marginTop:{style:DK},marginRight:{style:DK},marginBottom:{style:DK},marginLeft:{style:DK},marginX:{style:DK},marginY:{style:DK},marginInline:{style:DK},marginInlineStart:{style:DK},marginInlineEnd:{style:DK},marginBlock:{style:DK},marginBlockStart:{style:DK},marginBlockEnd:{style:DK},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:WK},rowGap:{style:KK},columnGap:{style:YK},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:XK},maxWidth:{style:JK},minWidth:{transform:XK},height:{transform:XK},maxHeight:{transform:XK},minHeight:{transform:XK},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};var iG=rG;function oG(){function e(e,t,n,r){const i={[e]:t,theme:n},o=r[e];if(!o)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:c}=o;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const u=pK(n,s)||{};if(c)return c(i);return dK(i,t,(t=>{let n=mK(u,l,t);return t===n&&"string"==typeof t&&(n=mK(u,l,`${e}${"default"===t?"":fK(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:i,theme:o={}}=n||{};if(!i)return null;const a=null!=(r=o.unstable_sxConfig)?r:iG;function s(n){let r=n;if("function"==typeof n)r=n(o);else if("object"!=typeof n)return n;if(!r)return null;const i=function(e={}){var t;const n=null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{});return n||{}}(o.breakpoints),s=Object.keys(i);let l=i;return Object.keys(r).forEach((n=>{const i=(s=r[n],c=o,"function"==typeof s?s(c):s);var s,c;if(null!=i)if("object"==typeof i)if(a[n])l=lK(l,e(n,i,o,a));else{const e=dK({theme:o},i,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,i)?l=lK(l,e):l[n]=t({sx:i,theme:o})}else l=lK(l,e(n,i,o,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(s,l)}return Array.isArray(i)?i.map(s):s(i)}}const aG=oG();aG.filterProps=["sx"];var sG=aG;function lG(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){return{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}}return n.palette.mode===e?t:{}}const cG=["breakpoints","palette","spacing","shape"];function uG(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,a=JY(e,cG),s=aK(n),l=function(e=8){if(e.mui)return e;const t=CK({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(i);let c=nK({breakpoints:s,direction:"ltr",components:{},palette:ZY({mode:"light"},r),spacing:l,shape:ZY({},sK,o)},a);return c.applyStyles=lG,c=t.reduce(((e,t)=>nK(e,t)),c),c.unstable_sxConfig=ZY({},iG,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return sG({sx:e,theme:this})},c}var dG=Object.freeze({__proto__:null,default:uG,private_createBreakpoints:aK,unstable_applyStyles:lG});function fG(e=null){const t=g_.useContext(DY);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const hG=uG();const pG=["sx"];var mG=Object.freeze({__proto__:null,default:sG,extendSxProp:function(e){const{sx:t}=e,n=JY(e,pG),{systemProps:r,otherProps:i}=(e=>{var t,n;const r={systemProps:{},otherProps:{}},i=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:iG;return Object.keys(e).forEach((t=>{i[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r})(n);let o;return o=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return eK(n)?ZY({},r,n):r}:ZY({},r,t),ZY({},i,{sx:o})},unstable_createStyleFunctionSx:oG,unstable_defaultSxConfig:iG});const gG=e=>e;var yG=(()=>{let e=gG;return{configure(t){e=t},generate:t=>e(t),reset(){e=gG}}})();function vG(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=vG(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function bG(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=vG(e))&&(r&&(r+=" "),r+=t);return r}const xG={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 wG(e,t,n="Mui"){const r=xG[t];return r?`${n}-${r}`:`${yG.generate(e)}-${t}`}function kG(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=wG(e,t,n)})),r}var SG,CG={exports:{}},MG={},EG=Symbol.for("react.element"),_G=Symbol.for("react.portal"),DG=Symbol.for("react.fragment"),qG=Symbol.for("react.strict_mode"),TG=Symbol.for("react.profiler"),RG=Symbol.for("react.provider"),NG=Symbol.for("react.context"),OG=Symbol.for("react.server_context"),AG=Symbol.for("react.forward_ref"),PG=Symbol.for("react.suspense"),IG=Symbol.for("react.suspense_list"),LG=Symbol.for("react.memo"),zG=Symbol.for("react.lazy"),FG=Symbol.for("react.offscreen");function jG(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case EG:switch(e=e.type){case DG:case TG:case qG:case PG:case IG:return e;default:switch(e=e&&e.$$typeof){case OG:case NG:case AG:case zG:case LG:case RG:return e;default:return t}}case _G:return t}}}SG=Symbol.for("react.module.reference"),MG.ContextConsumer=NG,MG.ContextProvider=RG,MG.Element=EG,MG.ForwardRef=AG,MG.Fragment=DG,MG.Lazy=zG,MG.Memo=LG,MG.Portal=_G,MG.Profiler=TG,MG.StrictMode=qG,MG.Suspense=PG,MG.SuspenseList=IG,MG.isAsyncMode=function(){return!1},MG.isConcurrentMode=function(){return!1},MG.isContextConsumer=function(e){return jG(e)===NG},MG.isContextProvider=function(e){return jG(e)===RG},MG.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===EG},MG.isForwardRef=function(e){return jG(e)===AG},MG.isFragment=function(e){return jG(e)===DG},MG.isLazy=function(e){return jG(e)===zG},MG.isMemo=function(e){return jG(e)===LG},MG.isPortal=function(e){return jG(e)===_G},MG.isProfiler=function(e){return jG(e)===TG},MG.isStrictMode=function(e){return jG(e)===qG},MG.isSuspense=function(e){return jG(e)===PG},MG.isSuspenseList=function(e){return jG(e)===IG},MG.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===DG||e===TG||e===qG||e===PG||e===IG||e===FG||"object"==typeof e&&null!==e&&(e.$$typeof===zG||e.$$typeof===LG||e.$$typeof===RG||e.$$typeof===NG||e.$$typeof===AG||e.$$typeof===SG||void 0!==e.getModuleId)},MG.typeOf=jG,CG.exports=MG;var $G=CG.exports;const HG=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function VG(e){const t=`${e}`.match(HG);return t&&t[1]||""}function BG(e,t=""){return e.displayName||e.name||VG(e)||t}function UG(e,t,n){const r=BG(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var WG=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return BG(e,"Component");if("object"==typeof e)switch(e.$$typeof){case $G.ForwardRef:return UG(e,e.render,"ForwardRef");case $G.Memo:return UG(e,e.type,"memo");default:return}}},getFunctionName:VG});function YG(e,t){const n=QY({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=QY({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},o=t[r];n[r]={},o&&Object.keys(o)?i&&Object.keys(i)?(n[r]=QY({},o),Object.keys(i).forEach((e=>{n[r][e]=YG(i[e],o[e])}))):n[r]=o:n[r]=i}else void 0===n[r]&&(n[r]=e[r])})),n}function KG({props:e,name:t,defaultTheme:n,themeId:r}){let i=function(e=hG){return fG(e)}(n);r&&(i=i[r]||i);const o=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?YG(t.components[n].defaultProps,r):r}({theme:i,name:t,props:e});return o}var GG="undefined"!=typeof window?g_.useLayoutEffect:g_.useEffect;var XG=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 ZG(){return ZG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ZG.apply(this,arguments)}function JG(e){const t=g_.useRef(e);return GG((()=>{t.current=e})),g_.useRef(((...e)=>(0,t.current)(...e))).current}function QG(...e){return g_.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 eX={};const tX=[];class nX{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new nX}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function rX(){const e=function(e,t){const n=g_.useRef(eX);return n.current===eX&&(n.current=e(t)),n}(nX.create).current;return function(e){g_.useEffect(e,tX)}(e.disposeEffect),e}let iX=!0,oX=!1;const aX=new nX,sX={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 lX(e){e.metaKey||e.altKey||e.ctrlKey||(iX=!0)}function cX(){iX=!1}function uX(){"hidden"===this.visibilityState&&oX&&(iX=!0)}function dX(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return iX||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!sX[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function fX(){const e=g_.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",lX,!0),t.addEventListener("mousedown",cX,!0),t.addEventListener("pointerdown",cX,!0),t.addEventListener("touchstart",cX,!0),t.addEventListener("visibilitychange",uX,!0))}),[]),t=g_.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!dX(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(oX=!0,aX.start(100,(()=>{oX=!1})),t.current=!1,!0)},ref:e}}function hX(e,t,n=void 0){const r={};return Object.keys(e).forEach((i=>{r[i]=e[i].reduce(((e,r)=>{if(r){const i=t(r);""!==i&&e.push(i),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}var pX=g_.createContext(null);function mX(){return g_.useContext(pX)}var gX="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function yX(e){const{children:t,theme:n}=e,r=mX(),i=g_.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return ZG({},e,t)}(r,n);return null!=e&&(e[gX]=null!==r),e}),[n,r]);return KY.jsx(pX.Provider,{value:i,children:t})}const vX=["value"],bX=g_.createContext();function xX(e){let{value:t}=e,n=JY(e,vX);return KY.jsx(bX.Provider,ZY({value:null==t||t},n))}const wX={};function kX(e,t,n,r=!1){return g_.useMemo((()=>{const i=e&&t[e]||t;if("function"==typeof n){const o=n(i),a=e?ZY({},t,{[e]:o}):o;return r?()=>a:a}return ZY({},t,e?{[e]:n}:n)}),[e,t,n,r])}function SX(e){const{children:t,theme:n,themeId:r}=e,i=fG(wX),o=mX()||wX,a=kX(r,i,n),s=kX(r,o,n,!0),l="rtl"===a.direction;return KY.jsx(yX,{theme:s,children:KY.jsx(DY.Provider,{value:a,children:KY.jsx(xX,{value:l,children:t})})})}var CX={},MX={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(MX);var EX=MX.exports,_X=i(WU),DX=i(XG),qX=EX;Object.defineProperty(CX,"__esModule",{value:!0});var TX=CX.alpha=VX;CX.blend=function(e,t,n,r=1){const i=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),o=zX(e),a=zX(t),s=[i(o.values[0],a.values[0]),i(o.values[1],a.values[1]),i(o.values[2],a.values[2])];return jX({type:"rgb",values:s})},CX.colorChannel=void 0;var RX=CX.darken=BX;CX.decomposeColor=zX,CX.emphasize=function(e,t=.15){return HX(e)>.5?BX(e,t):UX(e,t)};var NX=CX.getContrastRatio=function(e,t){const n=HX(e),r=HX(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};CX.getLuminance=HX,CX.hexToRgb=LX,CX.hslToRgb=$X;var OX=CX.lighten=UX;CX.private_safeAlpha=function(e,t,n){try{return VX(e,t)}catch(t){return e}},CX.private_safeColorChannel=void 0,CX.private_safeDarken=function(e,t,n){try{return BX(e,t)}catch(t){return e}},CX.private_safeEmphasize=function e(t,n,r){try{return e(t,n)}catch(e){return t}},CX.private_safeLighten=function(e,t,n){try{return UX(e,t)}catch(t){return e}},CX.recomposeColor=jX,CX.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=zX(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 AX=qX(_X),PX=qX(DX);function IX(e,t=0,n=1){return(0,PX.default)(e,t,n)}function LX(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 zX(e){if(e.type)return e;if("#"===e.charAt(0))return zX(LX(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,AX.default)(9,e));let r,i=e.substring(t+1,e.length-1);if("color"===n){if(i=i.split(" "),r=i.shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,AX.default)(10,r))}else i=i.split(",");return i=i.map((e=>parseFloat(e))),{type:n,values:i,colorSpace:r}}const FX=e=>{const t=zX(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};CX.colorChannel=FX;function jX(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 $X(e){e=zX(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=(e,t=(e+n/30)%12)=>i-o*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),jX({type:s,values:l})}function HX(e){let t="hsl"===(e=zX(e)).type||"hsla"===e.type?zX($X(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 VX(e,t){return e=zX(e),t=IX(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,jX(e)}function BX(e,t){if(e=zX(e),t=IX(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 jX(e)}function UX(e,t){if(e=zX(e),t=IX(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 jX(e)}CX.private_safeColorChannel=(e,t)=>{try{return FX(e)}catch(t){return e}};const WX=["mode","contrastThreshold","tonalOffset"],YX={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:LU.white,default:LU.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}},KX={text:{primary:LU.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:LU.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 GX(e,t,n,r){const i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=OX(e.main,i):"dark"===t&&(e.dark=RX(e.main,o)))}function XX(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=GU(e,WX),o=e.primary||function(e="light"){return"dark"===e?{main:jU[200],light:jU[50],dark:jU[400]}:{main:jU[700],light:jU[400],dark:jU[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:FU[200],light:FU[50],dark:FU[400]}:{main:FU[500],light:FU[300],dark:FU[700]}}(t),s=e.error||function(e="light"){return"dark"===e?{main:zU[500],light:zU[300],dark:zU[700]}:{main:zU[700],light:zU[400],dark:zU[800]}}(t),l=e.info||function(e="light"){return"dark"===e?{main:$U[400],light:$U[300],dark:$U[700]}:{main:$U[700],light:$U[500],dark:$U[900]}}(t),c=e.success||function(e="light"){return"dark"===e?{main:HU[400],light:HU[300],dark:HU[700]}:{main:HU[800],light:HU[500],dark:HU[900]}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:VU[400],light:VU[300],dark:VU[700]}:{main:"#ed6c02",light:VU[500],dark:VU[900]}}(t);function d(e){return NX(e,KX.text.primary)>=n?KX.text.primary:YX.text.primary}const f=({color:e,name:t,mainShade:n=500,lightShade:i=300,darkShade:o=700})=>{if(!(e=KU({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(UU(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(UU(12,t?` (${t})`:"",JSON.stringify(e.main)));return GX(e,"light",i,r),GX(e,"dark",o,r),e.contrastText||(e.contrastText=d(e.main)),e},h={dark:KX,light:YX};return nK(KU({common:KU({},LU),mode:t,primary:f({color:o,name:"primary"}),secondary:f({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:s,name:"error"}),warning:f({color:u,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:c,name:"success"}),grey:BU,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},h[t]),i)}const ZX=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function JX(e){return Math.round(1e5*e)/1e5}const QX={textTransform:"uppercase"},eZ='"Roboto", "Helvetica", "Arial", sans-serif';function tZ(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=eZ,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,f=GU(n,ZX),h=i/14,p=d||(e=>e/c*h+"rem"),m=(e,t,n,i,o)=>KU({fontFamily:r,fontWeight:e,fontSize:p(t),lineHeight:n},r===eZ?{letterSpacing:`${JX(i/t)}em`}:{},o,u),g={h1:m(o,96,1.167,-1.5),h2:m(o,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,QX),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,QX),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return nK(KU({htmlFontSize:c,pxToRem:p,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),f,{clone:!1})}function nZ(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var rZ=["none",nZ(0,2,1,-1,0,1,1,0,0,1,3,0),nZ(0,3,1,-2,0,2,2,0,0,1,5,0),nZ(0,3,3,-2,0,3,4,0,0,1,8,0),nZ(0,2,4,-1,0,4,5,0,0,1,10,0),nZ(0,3,5,-1,0,5,8,0,0,1,14,0),nZ(0,3,5,-1,0,6,10,0,0,1,18,0),nZ(0,4,5,-2,0,7,10,1,0,2,16,1),nZ(0,5,5,-3,0,8,10,1,0,3,14,2),nZ(0,5,6,-3,0,9,12,1,0,3,16,2),nZ(0,6,6,-3,0,10,14,1,0,4,18,3),nZ(0,6,7,-4,0,11,15,1,0,4,20,3),nZ(0,7,8,-4,0,12,17,2,0,5,22,4),nZ(0,7,8,-4,0,13,19,2,0,5,24,4),nZ(0,7,9,-4,0,14,21,2,0,5,26,4),nZ(0,8,9,-5,0,15,22,2,0,6,28,5),nZ(0,8,10,-5,0,16,24,2,0,6,30,5),nZ(0,8,11,-5,0,17,26,2,0,6,32,5),nZ(0,9,11,-5,0,18,28,2,0,7,34,6),nZ(0,9,12,-6,0,19,29,2,0,7,36,6),nZ(0,10,13,-6,0,20,31,3,0,8,38,7),nZ(0,10,13,-6,0,21,33,3,0,8,40,7),nZ(0,10,14,-6,0,22,35,3,0,8,42,7),nZ(0,11,14,-7,0,23,36,3,0,9,44,8),nZ(0,11,15,-7,0,24,38,3,0,9,46,8)];const iZ=["duration","easing","delay"],oZ={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)"},aZ={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function sZ(e){return`${Math.round(e)}ms`}function lZ(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function cZ(e){const t=KU({},oZ,e.easing),n=KU({},aZ,e.duration);return KU({getAutoHeightDuration:lZ,create:(e=["all"],r={})=>{const{duration:i=n.standard,easing:o=t.easeInOut,delay:a=0}=r;return GU(r,iZ),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof i?i:sZ(i)} ${o} ${"string"==typeof a?a:sZ(a)}`)).join(",")}},e,{easing:t,duration:n})}var uZ={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const dZ=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function fZ(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,a=GU(e,dZ);if(e.vars)throw new Error(UU(18));const s=XX(r),l=uG(e);let c=nK(l,{mixins:(u=l.breakpoints,d=n,KU({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:rZ.slice(),typography:tZ(s,o),transitions:cZ(i),zIndex:KU({},uZ)});var u,d;return c=nK(c,a),c=t.reduce(((e,t)=>nK(e,t)),c),c.unstable_sxConfig=KU({},iG,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return sG({sx:e,theme:this})},c}var hZ=fZ();function pZ({props:e,name:t}){return KG({props:e,name:t,defaultTheme:hZ,themeId:YU})}var mZ,gZ={},yZ={exports:{}};var vZ,bZ={exports:{}};var xZ=i(XY),wZ=i(rK),kZ=i(hK),SZ=i(WG),CZ=i(dG),MZ=i(mG),EZ=EX;Object.defineProperty(gZ,"__esModule",{value:!0});var _Z=gZ.default=function(e={}){const{themeId:t,defaultTheme:n=FZ,rootShouldForwardProp:r=zZ,slotShouldForwardProp:i=zZ}=e,o=e=>(0,OZ.default)((0,DZ.default)({},e,{theme:$Z((0,DZ.default)({},e,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(e,a={})=>{(0,TZ.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:c,skipSx:u,overridesResolver:d=HZ(jZ(l))}=a,f=(0,qZ.default)(a,IZ),h=void 0!==c?c:l&&"Root"!==l&&"root"!==l||!1,p=u||!1;let m=zZ;"Root"===l||"root"===l?m=r:l?m=i:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=(0,TZ.default)(e,(0,DZ.default)({shouldForwardProp:m,label:undefined},f)),y=e=>"function"==typeof e&&e.__emotion_real!==e||(0,RZ.isPlainObject)(e)?r=>VZ(e,(0,DZ.default)({},r,{theme:$Z({theme:r.theme,defaultTheme:n,themeId:t})})):e,v=(r,...i)=>{let a=y(r);const l=i?i.map(y):[];s&&d&&l.push((e=>{const r=$Z((0,DZ.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[s]||!r.components[s].styleOverrides)return null;const i=r.components[s].styleOverrides,o={};return Object.entries(i).forEach((([t,n])=>{o[t]=VZ(n,(0,DZ.default)({},e,{theme:r}))})),d(e,o)})),s&&!h&&l.push((e=>{var r;const i=$Z((0,DZ.default)({},e,{defaultTheme:n,themeId:t}));return VZ({variants:null==i||null==(r=i.components)||null==(r=r[s])?void 0:r.variants},(0,DZ.default)({},e,{theme:i}))})),p||l.push(o);const c=l.length-i.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}};gZ.shouldForwardProp=zZ,gZ.systemDefaultTheme=void 0;var DZ=EZ((mZ||(mZ=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(yZ)),yZ.exports)),qZ=EZ((vZ||(vZ=1,function(e){e.exports=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i},e.exports.__esModule=!0,e.exports.default=e.exports}(bZ)),bZ.exports)),TZ=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=LZ(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(xZ),RZ=wZ;EZ(kZ),EZ(SZ);var NZ=EZ(CZ),OZ=EZ(MZ);const AZ=["ownerState"],PZ=["variants"],IZ=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function LZ(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(LZ=function(e){return e?n:t})(e)}function zZ(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const FZ=gZ.systemDefaultTheme=(0,NZ.default)(),jZ=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function $Z({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function HZ(e){return e?(t,n)=>n[e]:null}function VZ(e,t){let{ownerState:n}=t,r=(0,qZ.default)(t,AZ);const i="function"==typeof e?e((0,DZ.default)({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap((e=>VZ(e,(0,DZ.default)({ownerState:n},r))));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,qZ.default)(i,PZ);return e.forEach((e=>{let i=!0;"function"==typeof e.props?i=e.props((0,DZ.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(i=!1)})),i&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,DZ.default)({ownerState:n},r,n)):e.style))})),t}return i}var BZ=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e;var UZ=_Z({themeId:YU,defaultTheme:hZ,rootShouldForwardProp:BZ});const WZ=["theme"];function YZ(e){let{theme:t}=e,n=GU(e,WZ);const r=t[YU];return KY.jsx(SX,KU({},n,{themeId:r?YU:void 0,theme:r||t}))}function KZ(e){return wG("MuiSvgIcon",e)}kG("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const GZ=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],XZ=UZ("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${fK(n.color)}`],t[`fontSize${fK(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,i,o,a,s,l,c,u,d,f,h,p;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(i=e.transitions)||null==(i=i.duration)?void 0:i.shorter}),fontSize:{inherit:"inherit",small:(null==(o=e.typography)||null==(a=o.pxToRem)?void 0:a.call(o,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(c=e.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(f=(e.vars||e).palette)||null==(f=f[t.color])?void 0:f.main)?d:{action:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.active,disabled:null==(p=(e.vars||e).palette)||null==(p=p.action)?void 0:p.disabled,inherit:void 0}[t.color]}})),ZZ=g_.forwardRef((function(e,t){const n=pZ({props:e,name:"MuiSvgIcon"}),{children:r,className:i,color:o="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:u,viewBox:d="0 0 24 24"}=n,f=GU(n,GZ),h=g_.isValidElement(r)&&"svg"===r.type,p=KU({},n,{color:o,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:h}),m={};c||(m.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return hX({root:["root","inherit"!==t&&`color${fK(t)}`,`fontSize${fK(n)}`]},KZ,r)})(p);return KY.jsxs(XZ,KU({as:a,className:bG(g.root,i),focusable:"false",color:l,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t},m,f,h&&r.props,{ownerState:p,children:[h?r.props.children:r,u?KY.jsx("title",{children:u}):null]}))}));ZZ.muiName="SvgIcon";var JZ=ZZ;var QZ=kG("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const eJ=["center","classes","className"];let tJ,nJ,rJ,iJ,oJ=e=>e;const aJ=RY(tJ||(tJ=oJ`
|
|
49
|
+
*/,StyledEngineProvider:function(e){const{injectFirst:t,children:n}=e;return t&&KY?YY.jsx(MY,{value:KY,children:n}):n},ThemeContext:_Y,css:qY,default:function(e,t){return LY(e,t)},internal_processStyles:(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},keyframes:TY});function XY(){return XY=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},XY.apply(this,arguments)}function ZY(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function JY(){return JY=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},JY.apply(this,arguments)}function QY(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 eK(e){if(!QY(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=eK(e[n])})),t}function tK(e,t,n={clone:!0}){const r=n.clone?JY({},e):e;return QY(e)&&QY(t)&&Object.keys(t).forEach((i=>{"__proto__"!==i&&(QY(t[i])&&i in e&&QY(e[i])?r[i]=tK(e[i],t[i],n):n.clone?r[i]=QY(t[i])?eK(t[i]):t[i]:r[i]=t[i])})),r}var nK=Object.freeze({__proto__:null,default:tK,isPlainObject:QY});const rK=["values","unit","step"],iK=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)=>XY({},e,{[t.key]:t.val})),{})};function oK(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=ZY(e,rK),o=iK(t),a=Object.keys(o);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,i){const o=a.indexOf(i);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==o&&"number"==typeof t[a[o]]?t[a[o]]:i)-r/100}${n})`}return XY({keys:a,values:o,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},i)}var aK={borderRadius:4};function sK(e,t){return t?tK(e,t,{clone:!1}):e}const lK={xs:0,sm:600,md:900,lg:1200,xl:1536},cK={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${lK[e]}px)`};function uK(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||cK;return t.reduce(((r,i,o)=>(r[e.up(e.keys[o])]=n(t[o]),r)),{})}if("object"==typeof t){const e=r.breakpoints||cK;return Object.keys(t).reduce(((r,i)=>{if(-1!==Object.keys(e.values||lK).indexOf(i)){r[e.up(i)]=n(t[i],i)}else{const e=i;r[e]=t[e]}return r}),{})}return n(t)}function dK(e){if("string"!=typeof e)throw new Error(BU(7));return e.charAt(0).toUpperCase()+e.slice(1)}var fK=Object.freeze({__proto__:null,default:dK});function hK(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 pK(e,t,n,r=n){let i;return i="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:hK(e,n)||r,t&&(i=t(i,r,e)),i}function mK(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=e=>{if(null==e[t])return null;const o=e[t],a=hK(e.theme,r)||{};return uK(e,o,(e=>{let r=pK(a,i,e);return e===r&&"string"==typeof e&&(r=pK(a,i,`${t}${"default"===e?"":dK(e)}`,e)),!1===n?r:{[n]:r}}))};return o.propTypes={},o.filterProps=[t],o}const gK={m:"margin",p:"padding"},yK={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},vK={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},bK=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!vK[e])return[e];e=vK[e]}const[t,n]=e.split(""),r=gK[t],i=yK[n]||"";return Array.isArray(i)?i.map((e=>r+e)):[r+i]})),xK=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],wK=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function kK(e,t,n,r){var i;const o=null!=(i=hK(e,t,!1))?i:n;return"number"==typeof o?e=>"string"==typeof e?e:o*e:Array.isArray(o)?e=>"string"==typeof e?e:o[e]:"function"==typeof o?o:()=>{}}function SK(e){return kK(e,"spacing",8)}function CK(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 MK(e,t,n,r){if(-1===t.indexOf(n))return null;const i=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=CK(t,n),e)),{})}(bK(n),r);return uK(e,e[n],i)}function EK(e,t){const n=SK(e.theme);return Object.keys(e).map((r=>MK(e,t,r,n))).reduce(sK,{})}function _K(e){return EK(e,xK)}function DK(e){return EK(e,wK)}function qK(...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]?sK(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function TK(e){return"number"!=typeof e?e:`${e}px solid`}function RK(e,t){return mK({prop:e,themeKey:"borders",transform:t})}_K.propTypes={},_K.filterProps=xK,DK.propTypes={},DK.filterProps=wK;const NK=RK("border",TK),OK=RK("borderTop",TK),AK=RK("borderRight",TK),PK=RK("borderBottom",TK),IK=RK("borderLeft",TK),LK=RK("borderColor"),zK=RK("borderTopColor"),FK=RK("borderRightColor"),jK=RK("borderBottomColor"),$K=RK("borderLeftColor"),HK=RK("outline",TK),VK=RK("outlineColor"),BK=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=kK(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:CK(t,e)});return uK(e,e.borderRadius,n)}return null};BK.propTypes={},BK.filterProps=["borderRadius"],qK(NK,OK,AK,PK,IK,LK,zK,FK,jK,$K,BK,HK,VK);const UK=e=>{if(void 0!==e.gap&&null!==e.gap){const t=kK(e.theme,"spacing",8),n=e=>({gap:CK(t,e)});return uK(e,e.gap,n)}return null};UK.propTypes={},UK.filterProps=["gap"];const WK=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=kK(e.theme,"spacing",8),n=e=>({columnGap:CK(t,e)});return uK(e,e.columnGap,n)}return null};WK.propTypes={},WK.filterProps=["columnGap"];const YK=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=kK(e.theme,"spacing",8),n=e=>({rowGap:CK(t,e)});return uK(e,e.rowGap,n)}return null};YK.propTypes={},YK.filterProps=["rowGap"];function KK(e,t){return"grey"===t?t:e}qK(UK,WK,YK,mK({prop:"gridColumn"}),mK({prop:"gridRow"}),mK({prop:"gridAutoFlow"}),mK({prop:"gridAutoColumns"}),mK({prop:"gridAutoRows"}),mK({prop:"gridTemplateColumns"}),mK({prop:"gridTemplateRows"}),mK({prop:"gridTemplateAreas"}),mK({prop:"gridArea"}));function GK(e){return e<=1&&0!==e?100*e+"%":e}qK(mK({prop:"color",themeKey:"palette",transform:KK}),mK({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:KK}),mK({prop:"backgroundColor",themeKey:"palette",transform:KK}));const XK=mK({prop:"width",transform:GK}),ZK=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const i=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||lK[t];return i?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:GK(t)}};return uK(e,e.maxWidth,t)}return null};ZK.filterProps=["maxWidth"];const JK=mK({prop:"minWidth",transform:GK}),QK=mK({prop:"height",transform:GK}),eG=mK({prop:"maxHeight",transform:GK}),tG=mK({prop:"minHeight",transform:GK});mK({prop:"size",cssProperty:"width",transform:GK}),mK({prop:"size",cssProperty:"height",transform:GK});qK(XK,ZK,JK,QK,eG,tG,mK({prop:"boxSizing"}));const nG={border:{themeKey:"borders",transform:TK},borderTop:{themeKey:"borders",transform:TK},borderRight:{themeKey:"borders",transform:TK},borderBottom:{themeKey:"borders",transform:TK},borderLeft:{themeKey:"borders",transform:TK},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:TK},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:BK},color:{themeKey:"palette",transform:KK},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:KK},backgroundColor:{themeKey:"palette",transform:KK},p:{style:DK},pt:{style:DK},pr:{style:DK},pb:{style:DK},pl:{style:DK},px:{style:DK},py:{style:DK},padding:{style:DK},paddingTop:{style:DK},paddingRight:{style:DK},paddingBottom:{style:DK},paddingLeft:{style:DK},paddingX:{style:DK},paddingY:{style:DK},paddingInline:{style:DK},paddingInlineStart:{style:DK},paddingInlineEnd:{style:DK},paddingBlock:{style:DK},paddingBlockStart:{style:DK},paddingBlockEnd:{style:DK},m:{style:_K},mt:{style:_K},mr:{style:_K},mb:{style:_K},ml:{style:_K},mx:{style:_K},my:{style:_K},margin:{style:_K},marginTop:{style:_K},marginRight:{style:_K},marginBottom:{style:_K},marginLeft:{style:_K},marginX:{style:_K},marginY:{style:_K},marginInline:{style:_K},marginInlineStart:{style:_K},marginInlineEnd:{style:_K},marginBlock:{style:_K},marginBlockStart:{style:_K},marginBlockEnd:{style:_K},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:UK},rowGap:{style:YK},columnGap:{style:WK},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:GK},maxWidth:{style:ZK},minWidth:{transform:GK},height:{transform:GK},maxHeight:{transform:GK},minHeight:{transform:GK},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};var rG=nG;function iG(){function e(e,t,n,r){const i={[e]:t,theme:n},o=r[e];if(!o)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:c}=o;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const u=hK(n,s)||{};if(c)return c(i);return uK(i,t,(t=>{let n=pK(u,l,t);return t===n&&"string"==typeof t&&(n=pK(u,l,`${e}${"default"===t?"":dK(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:i,theme:o={}}=n||{};if(!i)return null;const a=null!=(r=o.unstable_sxConfig)?r:rG;function s(n){let r=n;if("function"==typeof n)r=n(o);else if("object"!=typeof n)return n;if(!r)return null;const i=function(e={}){var t;const n=null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{});return n||{}}(o.breakpoints),s=Object.keys(i);let l=i;return Object.keys(r).forEach((n=>{const i=(s=r[n],c=o,"function"==typeof s?s(c):s);var s,c;if(null!=i)if("object"==typeof i)if(a[n])l=sK(l,e(n,i,o,a));else{const e=uK({theme:o},i,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,i)?l=sK(l,e):l[n]=t({sx:i,theme:o})}else l=sK(l,e(n,i,o,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(s,l)}return Array.isArray(i)?i.map(s):s(i)}}const oG=iG();oG.filterProps=["sx"];var aG=oG;function sG(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){return{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}}return n.palette.mode===e?t:{}}const lG=["breakpoints","palette","spacing","shape"];function cG(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,a=ZY(e,lG),s=oK(n),l=function(e=8){if(e.mui)return e;const t=SK({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(i);let c=tK({breakpoints:s,direction:"ltr",components:{},palette:XY({mode:"light"},r),spacing:l,shape:XY({},aK,o)},a);return c.applyStyles=sG,c=t.reduce(((e,t)=>tK(e,t)),c),c.unstable_sxConfig=XY({},rG,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return aG({sx:e,theme:this})},c}var uG=Object.freeze({__proto__:null,default:cG,private_createBreakpoints:oK,unstable_applyStyles:sG});function dG(e=null){const t=g_.useContext(_Y);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const fG=cG();const hG=["sx"];var pG=Object.freeze({__proto__:null,default:aG,extendSxProp:function(e){const{sx:t}=e,n=ZY(e,hG),{systemProps:r,otherProps:i}=(e=>{var t,n;const r={systemProps:{},otherProps:{}},i=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:rG;return Object.keys(e).forEach((t=>{i[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r})(n);let o;return o=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return QY(n)?XY({},r,n):r}:XY({},r,t),XY({},i,{sx:o})},unstable_createStyleFunctionSx:iG,unstable_defaultSxConfig:rG});const mG=e=>e;var gG=(()=>{let e=mG;return{configure(t){e=t},generate:t=>e(t),reset(){e=mG}}})();function yG(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=yG(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function vG(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=yG(e))&&(r&&(r+=" "),r+=t);return r}const bG={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 xG(e,t,n="Mui"){const r=bG[t];return r?`${n}-${r}`:`${gG.generate(e)}-${t}`}function wG(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=xG(e,t,n)})),r}var kG,SG={exports:{}},CG={},MG=Symbol.for("react.element"),EG=Symbol.for("react.portal"),_G=Symbol.for("react.fragment"),DG=Symbol.for("react.strict_mode"),qG=Symbol.for("react.profiler"),TG=Symbol.for("react.provider"),RG=Symbol.for("react.context"),NG=Symbol.for("react.server_context"),OG=Symbol.for("react.forward_ref"),AG=Symbol.for("react.suspense"),PG=Symbol.for("react.suspense_list"),IG=Symbol.for("react.memo"),LG=Symbol.for("react.lazy"),zG=Symbol.for("react.offscreen");function FG(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case MG:switch(e=e.type){case _G:case qG:case DG:case AG:case PG:return e;default:switch(e=e&&e.$$typeof){case NG:case RG:case OG:case LG:case IG:case TG:return e;default:return t}}case EG:return t}}}kG=Symbol.for("react.module.reference"),CG.ContextConsumer=RG,CG.ContextProvider=TG,CG.Element=MG,CG.ForwardRef=OG,CG.Fragment=_G,CG.Lazy=LG,CG.Memo=IG,CG.Portal=EG,CG.Profiler=qG,CG.StrictMode=DG,CG.Suspense=AG,CG.SuspenseList=PG,CG.isAsyncMode=function(){return!1},CG.isConcurrentMode=function(){return!1},CG.isContextConsumer=function(e){return FG(e)===RG},CG.isContextProvider=function(e){return FG(e)===TG},CG.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===MG},CG.isForwardRef=function(e){return FG(e)===OG},CG.isFragment=function(e){return FG(e)===_G},CG.isLazy=function(e){return FG(e)===LG},CG.isMemo=function(e){return FG(e)===IG},CG.isPortal=function(e){return FG(e)===EG},CG.isProfiler=function(e){return FG(e)===qG},CG.isStrictMode=function(e){return FG(e)===DG},CG.isSuspense=function(e){return FG(e)===AG},CG.isSuspenseList=function(e){return FG(e)===PG},CG.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===_G||e===qG||e===DG||e===AG||e===PG||e===zG||"object"==typeof e&&null!==e&&(e.$$typeof===LG||e.$$typeof===IG||e.$$typeof===TG||e.$$typeof===RG||e.$$typeof===OG||e.$$typeof===kG||void 0!==e.getModuleId)},CG.typeOf=FG,SG.exports=CG;var jG=SG.exports;const $G=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function HG(e){const t=`${e}`.match($G);return t&&t[1]||""}function VG(e,t=""){return e.displayName||e.name||HG(e)||t}function BG(e,t,n){const r=VG(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var UG=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return VG(e,"Component");if("object"==typeof e)switch(e.$$typeof){case jG.ForwardRef:return BG(e,e.render,"ForwardRef");case jG.Memo:return BG(e,e.type,"memo");default:return}}},getFunctionName:HG});function WG(e,t){const n=JY({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=JY({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},o=t[r];n[r]={},o&&Object.keys(o)?i&&Object.keys(i)?(n[r]=JY({},o),Object.keys(i).forEach((e=>{n[r][e]=WG(i[e],o[e])}))):n[r]=o:n[r]=i}else void 0===n[r]&&(n[r]=e[r])})),n}function YG({props:e,name:t,defaultTheme:n,themeId:r}){let i=function(e=fG){return dG(e)}(n);r&&(i=i[r]||i);const o=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?WG(t.components[n].defaultProps,r):r}({theme:i,name:t,props:e});return o}var KG="undefined"!=typeof window?g_.useLayoutEffect:g_.useEffect;var GG=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 XG(){return XG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},XG.apply(this,arguments)}function ZG(e){const t=g_.useRef(e);return KG((()=>{t.current=e})),g_.useRef(((...e)=>(0,t.current)(...e))).current}function JG(...e){return g_.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 QG={};const eX=[];class tX{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new tX}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function nX(){const e=function(e,t){const n=g_.useRef(QG);return n.current===QG&&(n.current=e(t)),n}(tX.create).current;return function(e){g_.useEffect(e,eX)}(e.disposeEffect),e}let rX=!0,iX=!1;const oX=new tX,aX={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 sX(e){e.metaKey||e.altKey||e.ctrlKey||(rX=!0)}function lX(){rX=!1}function cX(){"hidden"===this.visibilityState&&iX&&(rX=!0)}function uX(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return rX||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!aX[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function dX(){const e=g_.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",sX,!0),t.addEventListener("mousedown",lX,!0),t.addEventListener("pointerdown",lX,!0),t.addEventListener("touchstart",lX,!0),t.addEventListener("visibilitychange",cX,!0))}),[]),t=g_.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!uX(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(iX=!0,oX.start(100,(()=>{iX=!1})),t.current=!1,!0)},ref:e}}function fX(e,t,n=void 0){const r={};return Object.keys(e).forEach((i=>{r[i]=e[i].reduce(((e,r)=>{if(r){const i=t(r);""!==i&&e.push(i),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}var hX=g_.createContext(null);function pX(){return g_.useContext(hX)}var mX="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function gX(e){const{children:t,theme:n}=e,r=pX(),i=g_.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return XG({},e,t)}(r,n);return null!=e&&(e[mX]=null!==r),e}),[n,r]);return YY.jsx(hX.Provider,{value:i,children:t})}const yX=["value"],vX=g_.createContext();function bX(e){let{value:t}=e,n=ZY(e,yX);return YY.jsx(vX.Provider,XY({value:null==t||t},n))}const xX={};function wX(e,t,n,r=!1){return g_.useMemo((()=>{const i=e&&t[e]||t;if("function"==typeof n){const o=n(i),a=e?XY({},t,{[e]:o}):o;return r?()=>a:a}return XY({},t,e?{[e]:n}:n)}),[e,t,n,r])}function kX(e){const{children:t,theme:n,themeId:r}=e,i=dG(xX),o=pX()||xX,a=wX(r,i,n),s=wX(r,o,n,!0),l="rtl"===a.direction;return YY.jsx(gX,{theme:s,children:YY.jsx(_Y.Provider,{value:a,children:YY.jsx(bX,{value:l,children:t})})})}var SX={},CX={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(CX);var MX=CX.exports,EX=i(UU),_X=i(GG),DX=MX;Object.defineProperty(SX,"__esModule",{value:!0});var qX=SX.alpha=HX;SX.blend=function(e,t,n,r=1){const i=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),o=LX(e),a=LX(t),s=[i(o.values[0],a.values[0]),i(o.values[1],a.values[1]),i(o.values[2],a.values[2])];return FX({type:"rgb",values:s})},SX.colorChannel=void 0;var TX=SX.darken=VX;SX.decomposeColor=LX,SX.emphasize=function(e,t=.15){return $X(e)>.5?VX(e,t):BX(e,t)};var RX=SX.getContrastRatio=function(e,t){const n=$X(e),r=$X(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};SX.getLuminance=$X,SX.hexToRgb=IX,SX.hslToRgb=jX;var NX=SX.lighten=BX;SX.private_safeAlpha=function(e,t,n){try{return HX(e,t)}catch(t){return e}},SX.private_safeColorChannel=void 0,SX.private_safeDarken=function(e,t,n){try{return VX(e,t)}catch(t){return e}},SX.private_safeEmphasize=function e(t,n,r){try{return e(t,n)}catch(e){return t}},SX.private_safeLighten=function(e,t,n){try{return BX(e,t)}catch(t){return e}},SX.recomposeColor=FX,SX.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=LX(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 OX=DX(EX),AX=DX(_X);function PX(e,t=0,n=1){return(0,AX.default)(e,t,n)}function IX(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 LX(e){if(e.type)return e;if("#"===e.charAt(0))return LX(IX(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,OX.default)(9,e));let r,i=e.substring(t+1,e.length-1);if("color"===n){if(i=i.split(" "),r=i.shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,OX.default)(10,r))}else i=i.split(",");return i=i.map((e=>parseFloat(e))),{type:n,values:i,colorSpace:r}}const zX=e=>{const t=LX(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};SX.colorChannel=zX;function FX(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 jX(e){e=LX(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=(e,t=(e+n/30)%12)=>i-o*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),FX({type:s,values:l})}function $X(e){let t="hsl"===(e=LX(e)).type||"hsla"===e.type?LX(jX(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 HX(e,t){return e=LX(e),t=PX(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,FX(e)}function VX(e,t){if(e=LX(e),t=PX(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 FX(e)}function BX(e,t){if(e=LX(e),t=PX(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 FX(e)}SX.private_safeColorChannel=(e,t)=>{try{return zX(e)}catch(t){return e}};const UX=["mode","contrastThreshold","tonalOffset"],WX={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:IU.white,default:IU.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}},YX={text:{primary:IU.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:IU.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 KX(e,t,n,r){const i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=NX(e.main,i):"dark"===t&&(e.dark=TX(e.main,o)))}function GX(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=KU(e,UX),o=e.primary||function(e="light"){return"dark"===e?{main:FU[200],light:FU[50],dark:FU[400]}:{main:FU[700],light:FU[400],dark:FU[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:zU[200],light:zU[50],dark:zU[400]}:{main:zU[500],light:zU[300],dark:zU[700]}}(t),s=e.error||function(e="light"){return"dark"===e?{main:LU[500],light:LU[300],dark:LU[700]}:{main:LU[700],light:LU[400],dark:LU[800]}}(t),l=e.info||function(e="light"){return"dark"===e?{main:jU[400],light:jU[300],dark:jU[700]}:{main:jU[700],light:jU[500],dark:jU[900]}}(t),c=e.success||function(e="light"){return"dark"===e?{main:$U[400],light:$U[300],dark:$U[700]}:{main:$U[800],light:$U[500],dark:$U[900]}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:HU[400],light:HU[300],dark:HU[700]}:{main:"#ed6c02",light:HU[500],dark:HU[900]}}(t);function d(e){return RX(e,YX.text.primary)>=n?YX.text.primary:WX.text.primary}const f=({color:e,name:t,mainShade:n=500,lightShade:i=300,darkShade:o=700})=>{if(!(e=YU({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(BU(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(BU(12,t?` (${t})`:"",JSON.stringify(e.main)));return KX(e,"light",i,r),KX(e,"dark",o,r),e.contrastText||(e.contrastText=d(e.main)),e},h={dark:YX,light:WX};return tK(YU({common:YU({},IU),mode:t,primary:f({color:o,name:"primary"}),secondary:f({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:s,name:"error"}),warning:f({color:u,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:c,name:"success"}),grey:VU,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},h[t]),i)}const XX=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function ZX(e){return Math.round(1e5*e)/1e5}const JX={textTransform:"uppercase"},QX='"Roboto", "Helvetica", "Arial", sans-serif';function eZ(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=QX,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,f=KU(n,XX),h=i/14,p=d||(e=>e/c*h+"rem"),m=(e,t,n,i,o)=>YU({fontFamily:r,fontWeight:e,fontSize:p(t),lineHeight:n},r===QX?{letterSpacing:`${ZX(i/t)}em`}:{},o,u),g={h1:m(o,96,1.167,-1.5),h2:m(o,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,JX),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,JX),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return tK(YU({htmlFontSize:c,pxToRem:p,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),f,{clone:!1})}function tZ(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var nZ=["none",tZ(0,2,1,-1,0,1,1,0,0,1,3,0),tZ(0,3,1,-2,0,2,2,0,0,1,5,0),tZ(0,3,3,-2,0,3,4,0,0,1,8,0),tZ(0,2,4,-1,0,4,5,0,0,1,10,0),tZ(0,3,5,-1,0,5,8,0,0,1,14,0),tZ(0,3,5,-1,0,6,10,0,0,1,18,0),tZ(0,4,5,-2,0,7,10,1,0,2,16,1),tZ(0,5,5,-3,0,8,10,1,0,3,14,2),tZ(0,5,6,-3,0,9,12,1,0,3,16,2),tZ(0,6,6,-3,0,10,14,1,0,4,18,3),tZ(0,6,7,-4,0,11,15,1,0,4,20,3),tZ(0,7,8,-4,0,12,17,2,0,5,22,4),tZ(0,7,8,-4,0,13,19,2,0,5,24,4),tZ(0,7,9,-4,0,14,21,2,0,5,26,4),tZ(0,8,9,-5,0,15,22,2,0,6,28,5),tZ(0,8,10,-5,0,16,24,2,0,6,30,5),tZ(0,8,11,-5,0,17,26,2,0,6,32,5),tZ(0,9,11,-5,0,18,28,2,0,7,34,6),tZ(0,9,12,-6,0,19,29,2,0,7,36,6),tZ(0,10,13,-6,0,20,31,3,0,8,38,7),tZ(0,10,13,-6,0,21,33,3,0,8,40,7),tZ(0,10,14,-6,0,22,35,3,0,8,42,7),tZ(0,11,14,-7,0,23,36,3,0,9,44,8),tZ(0,11,15,-7,0,24,38,3,0,9,46,8)];const rZ=["duration","easing","delay"],iZ={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)"},oZ={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function aZ(e){return`${Math.round(e)}ms`}function sZ(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function lZ(e){const t=YU({},iZ,e.easing),n=YU({},oZ,e.duration);return YU({getAutoHeightDuration:sZ,create:(e=["all"],r={})=>{const{duration:i=n.standard,easing:o=t.easeInOut,delay:a=0}=r;return KU(r,rZ),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof i?i:aZ(i)} ${o} ${"string"==typeof a?a:aZ(a)}`)).join(",")}},e,{easing:t,duration:n})}var cZ={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const uZ=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function dZ(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,a=KU(e,uZ);if(e.vars)throw new Error(BU(18));const s=GX(r),l=cG(e);let c=tK(l,{mixins:(u=l.breakpoints,d=n,YU({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:nZ.slice(),typography:eZ(s,o),transitions:lZ(i),zIndex:YU({},cZ)});var u,d;return c=tK(c,a),c=t.reduce(((e,t)=>tK(e,t)),c),c.unstable_sxConfig=YU({},rG,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return aG({sx:e,theme:this})},c}var fZ=dZ();function hZ({props:e,name:t}){return YG({props:e,name:t,defaultTheme:fZ,themeId:WU})}var pZ,mZ={},gZ={exports:{}};var yZ,vZ={exports:{}};var bZ=i(GY),xZ=i(nK),wZ=i(fK),kZ=i(UG),SZ=i(uG),CZ=i(pG),MZ=MX;Object.defineProperty(mZ,"__esModule",{value:!0});var EZ=mZ.default=function(e={}){const{themeId:t,defaultTheme:n=zZ,rootShouldForwardProp:r=LZ,slotShouldForwardProp:i=LZ}=e,o=e=>(0,NZ.default)((0,_Z.default)({},e,{theme:jZ((0,_Z.default)({},e,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(e,a={})=>{(0,qZ.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:c,skipSx:u,overridesResolver:d=$Z(FZ(l))}=a,f=(0,DZ.default)(a,PZ),h=void 0!==c?c:l&&"Root"!==l&&"root"!==l||!1,p=u||!1;let m=LZ;"Root"===l||"root"===l?m=r:l?m=i:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=(0,qZ.default)(e,(0,_Z.default)({shouldForwardProp:m,label:undefined},f)),y=e=>"function"==typeof e&&e.__emotion_real!==e||(0,TZ.isPlainObject)(e)?r=>HZ(e,(0,_Z.default)({},r,{theme:jZ({theme:r.theme,defaultTheme:n,themeId:t})})):e,v=(r,...i)=>{let a=y(r);const l=i?i.map(y):[];s&&d&&l.push((e=>{const r=jZ((0,_Z.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[s]||!r.components[s].styleOverrides)return null;const i=r.components[s].styleOverrides,o={};return Object.entries(i).forEach((([t,n])=>{o[t]=HZ(n,(0,_Z.default)({},e,{theme:r}))})),d(e,o)})),s&&!h&&l.push((e=>{var r;const i=jZ((0,_Z.default)({},e,{defaultTheme:n,themeId:t}));return HZ({variants:null==i||null==(r=i.components)||null==(r=r[s])?void 0:r.variants},(0,_Z.default)({},e,{theme:i}))})),p||l.push(o);const c=l.length-i.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}};mZ.shouldForwardProp=LZ,mZ.systemDefaultTheme=void 0;var _Z=MZ((pZ||(pZ=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(gZ)),gZ.exports)),DZ=MZ((yZ||(yZ=1,function(e){e.exports=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i},e.exports.__esModule=!0,e.exports.default=e.exports}(vZ)),vZ.exports)),qZ=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=IZ(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}(bZ),TZ=xZ;MZ(wZ),MZ(kZ);var RZ=MZ(SZ),NZ=MZ(CZ);const OZ=["ownerState"],AZ=["variants"],PZ=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function IZ(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(IZ=function(e){return e?n:t})(e)}function LZ(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const zZ=mZ.systemDefaultTheme=(0,RZ.default)(),FZ=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function jZ({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function $Z(e){return e?(t,n)=>n[e]:null}function HZ(e,t){let{ownerState:n}=t,r=(0,DZ.default)(t,OZ);const i="function"==typeof e?e((0,_Z.default)({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap((e=>HZ(e,(0,_Z.default)({ownerState:n},r))));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,DZ.default)(i,AZ);return e.forEach((e=>{let i=!0;"function"==typeof e.props?i=e.props((0,_Z.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(i=!1)})),i&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,_Z.default)({ownerState:n},r,n)):e.style))})),t}return i}var VZ=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e;var BZ=EZ({themeId:WU,defaultTheme:fZ,rootShouldForwardProp:VZ});const UZ=["theme"];function WZ(e){let{theme:t}=e,n=KU(e,UZ);const r=t[WU];return YY.jsx(kX,YU({},n,{themeId:r?WU:void 0,theme:r||t}))}function YZ(e){return xG("MuiSvgIcon",e)}wG("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const KZ=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],GZ=BZ("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${dK(n.color)}`],t[`fontSize${dK(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,i,o,a,s,l,c,u,d,f,h,p;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(i=e.transitions)||null==(i=i.duration)?void 0:i.shorter}),fontSize:{inherit:"inherit",small:(null==(o=e.typography)||null==(a=o.pxToRem)?void 0:a.call(o,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(c=e.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(f=(e.vars||e).palette)||null==(f=f[t.color])?void 0:f.main)?d:{action:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.active,disabled:null==(p=(e.vars||e).palette)||null==(p=p.action)?void 0:p.disabled,inherit:void 0}[t.color]}})),XZ=g_.forwardRef((function(e,t){const n=hZ({props:e,name:"MuiSvgIcon"}),{children:r,className:i,color:o="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:u,viewBox:d="0 0 24 24"}=n,f=KU(n,KZ),h=g_.isValidElement(r)&&"svg"===r.type,p=YU({},n,{color:o,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:h}),m={};c||(m.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return fX({root:["root","inherit"!==t&&`color${dK(t)}`,`fontSize${dK(n)}`]},YZ,r)})(p);return YY.jsxs(GZ,YU({as:a,className:vG(g.root,i),focusable:"false",color:l,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t},m,f,h&&r.props,{ownerState:p,children:[h?r.props.children:r,u?YY.jsx("title",{children:u}):null]}))}));XZ.muiName="SvgIcon";var ZZ=XZ;var JZ=wG("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const QZ=["center","classes","className"];let eJ,tJ,nJ,rJ,iJ=e=>e;const oJ=TY(eJ||(eJ=iJ`
|
|
50
50
|
0% {
|
|
51
51
|
transform: scale(0);
|
|
52
52
|
opacity: 0.1;
|
|
@@ -56,7 +56,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,i,o,a,s,l,c,u,d,f=e.le
|
|
|
56
56
|
transform: scale(1);
|
|
57
57
|
opacity: 0.3;
|
|
58
58
|
}
|
|
59
|
-
`)),
|
|
59
|
+
`)),aJ=TY(tJ||(tJ=iJ`
|
|
60
60
|
0% {
|
|
61
61
|
opacity: 1;
|
|
62
62
|
}
|
|
@@ -64,7 +64,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,i,o,a,s,l,c,u,d,f=e.le
|
|
|
64
64
|
100% {
|
|
65
65
|
opacity: 0;
|
|
66
66
|
}
|
|
67
|
-
`)),
|
|
67
|
+
`)),sJ=TY(nJ||(nJ=iJ`
|
|
68
68
|
0% {
|
|
69
69
|
transform: scale(1);
|
|
70
70
|
}
|
|
@@ -76,7 +76,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,i,o,a,s,l,c,u,d,f=e.le
|
|
|
76
76
|
100% {
|
|
77
77
|
transform: scale(1);
|
|
78
78
|
}
|
|
79
|
-
`)),
|
|
79
|
+
`)),lJ=BZ("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),cJ=BZ((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:o,rippleSize:a,in:s,onExited:l,timeout:c}=e,[u,d]=g_.useState(!1),f=vG(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),h={width:a,height:a,top:-a/2+o,left:-a/2+i},p=vG(n.child,u&&n.childLeaving,r&&n.childPulsate);return s||u||d(!0),g_.useEffect((()=>{if(!s&&null!=l){const e=setTimeout(l,c);return()=>{clearTimeout(e)}}}),[l,s,c]),YY.jsx("span",{className:f,style:h,children:YY.jsx("span",{className:p})})}),{name:"MuiTouchRipple",slot:"Ripple"})(rJ||(rJ=iJ`
|
|
80
80
|
opacity: 0;
|
|
81
81
|
position: absolute;
|
|
82
82
|
|
|
@@ -119,4 +119,4 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,i,o,a,s,l,c,u,d,f=e.le
|
|
|
119
119
|
animation-iteration-count: infinite;
|
|
120
120
|
animation-delay: 200ms;
|
|
121
121
|
}
|
|
122
|
-
`),QZ.rippleVisible,aJ,550,(({theme:e})=>e.transitions.easing.easeInOut),QZ.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),QZ.child,QZ.childLeaving,sJ,550,(({theme:e})=>e.transitions.easing.easeInOut),QZ.childPulsate,lJ,(({theme:e})=>e.transitions.easing.easeInOut)),dJ=g_.forwardRef((function(e,t){const n=pZ({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:i={},className:o}=n,a=GU(n,eJ),[s,l]=g_.useState([]),c=g_.useRef(0),u=g_.useRef(null);g_.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[s]);const d=g_.useRef(!1),f=rX(),h=g_.useRef(null),p=g_.useRef(null),m=g_.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:o,cb:a}=e;l((e=>[...e,KY.jsx(uJ,{classes:{ripple:bG(i.ripple,QZ.ripple),rippleVisible:bG(i.rippleVisible,QZ.rippleVisible),ripplePulsate:bG(i.ripplePulsate,QZ.ripplePulsate),child:bG(i.child,QZ.child),childLeaving:bG(i.childLeaving,QZ.childLeaving),childPulsate:bG(i.childPulsate,QZ.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},c.current)])),c.current+=1,u.current=a}),[i]),g=g_.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:i=!1,center:o=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const s=a?null:p.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,g;if(o||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(o)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-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===h.current&&(h.current=()=>{m({pulsate:i,rippleX:c,rippleY:u,rippleSize:g,cb:n})},f.start(80,(()=>{h.current&&(h.current(),h.current=null)}))):m({pulsate:i,rippleX:c,rippleY:u,rippleSize:g,cb:n})}),[r,m,f]),y=g_.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=g_.useCallback(((e,t)=>{if(f.clear(),"touchend"===(null==e?void 0:e.type)&&h.current)return h.current(),h.current=null,void f.start(0,(()=>{v(e,t)}));h.current=null,l((e=>e.length>0?e.slice(1):e)),u.current=t}),[f]);return g_.useImperativeHandle(t,(()=>({pulsate:y,start:g,stop:v})),[y,g,v]),KY.jsx(cJ,KU({className:bG(QZ.root,i.root,o),ref:p},a,{children:KY.jsx(xB,{component:null,exit:!0,children:s})}))}));var fJ=dJ;function hJ(e){return wG("MuiButtonBase",e)}var pJ=kG("MuiButtonBase",["root","disabled","focusVisible"]);const mJ=["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"],gJ=UZ("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"},[`&.${pJ.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),yJ=g_.forwardRef((function(e,t){const n=pZ({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:i=!1,children:o,className:a,component:s="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:d=!1,LinkComponent:f="a",onBlur:h,onClick:p,onContextMenu:m,onDragLeave:g,onFocus:y,onFocusVisible:v,onKeyDown:b,onKeyUp:x,onMouseDown:w,onMouseLeave:k,onMouseUp:S,onTouchEnd:C,onTouchMove:M,onTouchStart:E,tabIndex:_=0,TouchRippleProps:D,touchRippleRef:q,type:T}=n,R=GU(n,mJ),N=g_.useRef(null),O=g_.useRef(null),A=QG(O,q),{isFocusVisibleRef:P,onFocus:I,onBlur:L,ref:z}=fX(),[F,j]=g_.useState(!1);l&&F&&j(!1),g_.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),N.current.focus()}})),[]);const[$,H]=g_.useState(!1);g_.useEffect((()=>{H(!0)}),[]);const V=$&&!c&&!l;function B(e,t,n=u){return JG((r=>{t&&t(r);return!n&&O.current&&O.current[e](r),!0}))}g_.useEffect((()=>{F&&d&&!c&&$&&O.current.pulsate()}),[c,d,F,$]);const U=B("start",w),W=B("stop",m),Y=B("stop",g),K=B("stop",S),G=B("stop",(e=>{F&&e.preventDefault(),k&&k(e)})),X=B("start",E),Z=B("stop",C),J=B("stop",M),Q=B("stop",(e=>{L(e),!1===P.current&&j(!1),h&&h(e)}),!1),ee=JG((e=>{N.current||(N.current=e.currentTarget),I(e),!0===P.current&&(j(!0),v&&v(e)),y&&y(e)})),te=()=>{const e=N.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=g_.useRef(!1),re=JG((e=>{d&&!ne.current&&F&&O.current&&" "===e.key&&(ne.current=!0,O.current.stop(e,(()=>{O.current.start(e)}))),e.target===e.currentTarget&&te()&&" "===e.key&&e.preventDefault(),b&&b(e),e.target===e.currentTarget&&te()&&"Enter"===e.key&&!l&&(e.preventDefault(),p&&p(e))})),ie=JG((e=>{d&&" "===e.key&&O.current&&F&&!e.defaultPrevented&&(ne.current=!1,O.current.stop(e,(()=>{O.current.pulsate(e)}))),x&&x(e),p&&e.target===e.currentTarget&&te()&&" "===e.key&&!e.defaultPrevented&&p(e)}));let oe=s;"button"===oe&&(R.href||R.to)&&(oe=f);const ae={};"button"===oe?(ae.type=void 0===T?"button":T,ae.disabled=l):(R.href||R.to||(ae.role="button"),l&&(ae["aria-disabled"]=l));const se=QG(t,z,N),le=KU({},n,{centerRipple:i,component:s,disabled:l,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:_,focusVisible:F}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,o=hX({root:["root",t&&"disabled",n&&"focusVisible"]},hJ,i);return n&&r&&(o.root+=` ${r}`),o})(le);return KY.jsxs(gJ,KU({as:oe,className:bG(ce.root,a),ownerState:le,onBlur:Q,onClick:p,onContextMenu:W,onFocus:ee,onKeyDown:re,onKeyUp:ie,onMouseDown:U,onMouseLeave:G,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:J,onTouchStart:X,ref:se,tabIndex:l?-1:_,type:T},ae,R,{children:[o,V?KY.jsx(fJ,KU({ref:A,center:i},D)):null]}))}));var vJ=yJ;function bJ(e){return wG("MuiButton",e)}var xJ=kG("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var wJ=g_.createContext({});var kJ=g_.createContext(void 0);const SJ=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],CJ=e=>KU({},"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}}),MJ=UZ(vJ,{shouldForwardProp:e=>BZ(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${fK(n.color)}`],t[`size${fK(n.size)}`],t[`${n.variant}Size${fK(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const i="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],o="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return KU({},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":KU({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:TX(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})`:TX(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})`:TX(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:o,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":KU({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${xJ.focusVisible}`]:KU({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${xJ.disabled}`]:KU({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 ${TX(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${xJ.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${xJ.disabled}`]:{boxShadow:"none"}})),EJ=UZ("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${fK(n.size)}`]]}})((({ownerState:e})=>KU({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},CJ(e)))),_J=UZ("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${fK(n.size)}`]]}})((({ownerState:e})=>KU({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},CJ(e)))),DJ=g_.forwardRef((function(e,t){const n=g_.useContext(wJ),r=g_.useContext(kJ),i=pZ({props:YG(n,e),name:"MuiButton"}),{children:o,color:a="primary",component:s="button",className:l,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:f,focusVisibleClassName:h,fullWidth:p=!1,size:m="medium",startIcon:g,type:y,variant:v="text"}=i,b=GU(i,SJ),x=KU({},i,{color:a,component:s,disabled:c,disableElevation:u,disableFocusRipple:d,fullWidth:p,size:m,type:y,variant:v}),w=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,classes:a}=e;return KU({},a,hX({root:["root",o,`${o}${fK(t)}`,`size${fK(i)}`,`${o}Size${fK(i)}`,`color${fK(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${fK(i)}`],endIcon:["icon","endIcon",`iconSize${fK(i)}`]},bJ,a))})(x),k=g&&KY.jsx(EJ,{className:w.startIcon,ownerState:x,children:g}),S=f&&KY.jsx(_J,{className:w.endIcon,ownerState:x,children:f}),C=r||"";return KY.jsxs(MJ,KU({ownerState:x,className:bG(n.className,w.root,l,C),component:s,disabled:c,focusRipple:!d,focusVisibleClassName:bG(w.focusVisible,h),ref:t,type:y},b,{classes:w,children:[k,o,S]}))}));var qJ=DJ;var TJ=g_.createContext({});function RJ(e){return wG("MuiListItemButton",e)}var NJ=kG("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);const OJ=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],AJ=UZ(vJ,{shouldForwardProp:e=>BZ(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})=>KU({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"}},[`&.${NJ.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:TX(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${NJ.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:TX(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${NJ.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:TX(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})`:TX(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${NJ.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${NJ.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}))),PJ=g_.forwardRef((function(e,t){const n=pZ({props:e,name:"MuiListItemButton"}),{alignItems:r="center",autoFocus:i=!1,component:o="div",children:a,dense:s=!1,disableGutters:l=!1,divider:c=!1,focusVisibleClassName:u,selected:d=!1,className:f}=n,h=GU(n,OJ),p=g_.useContext(TJ),m=g_.useMemo((()=>({dense:s||p.dense||!1,alignItems:r,disableGutters:l})),[r,p.dense,s,l]),g=g_.useRef(null);GG((()=>{i&&g.current&&g.current.focus()}),[i]);const y=KU({},n,{alignItems:r,dense:m.dense,disableGutters:l,divider:c,selected:d}),v=(e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:o,divider:a,selected:s}=e;return KU({},n,hX({root:["root",r&&"dense",!o&&"gutters",a&&"divider",i&&"disabled","flex-start"===t&&"alignItemsFlexStart",s&&"selected"]},RJ,n))})(y),b=QG(g,t);return KY.jsx(TJ.Provider,{value:m,children:KY.jsx(AJ,KU({ref:b,href:h.href||h.to,component:(h.href||h.to)&&"div"===o?"button":o,focusVisibleClassName:bG(v.focusVisible,u),ownerState:y,className:bG(v.root,f)},h,{classes:v,children:a}))})}));var IJ=PJ;function LJ(e){return wG("MuiListItemIcon",e)}kG("MuiListItemIcon",["root","alignItemsFlexStart"]);const zJ=["className"],FJ=UZ("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})=>KU({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),jJ=g_.forwardRef((function(e,t){const n=pZ({props:e,name:"MuiListItemIcon"}),{className:r}=n,i=GU(n,zJ),o=KU({},n,{alignItems:g_.useContext(TJ).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return hX({root:["root","flex-start"===t&&"alignItemsFlexStart"]},LJ,n)})(o);return KY.jsx(FJ,KU({className:bG(a.root,r),ownerState:o,ref:t},i))}));var $J=jJ;function HJ(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 VJ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?HJ(Object(n),!0).forEach((function(t){BJ(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HJ(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function BJ(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var UJ=function(e){var t=e.className,n=e.path,r=e.fillRule;return y_.createElement(JZ,{className:t,viewBox:"0 0 16 16",fontSize:"small",role:"img",style:{height:12,width:12}},y_.createElement("path",{d:n}),r?y_.createElement("use",{fillRule:r}):void 0)},WJ={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)"}}};UZ(qJ,{shouldForwardProp:function(e){return"direction"!==e&&"padding"!==e&&"styling"!==e}})((function(e){var t=e.direction,n=e.padding,r=e.styling,i=r.fontSize,o=r.fontFamily,a=r.color;return{fontWeight:"normal",lineHeight:"normal",fontSize:i,fontFamily:o,color:a,height:"100%",minWidth:"45px",padding:n,"&:disabled":{color:a,opacity:1},"& .MuiButton-startIcon":{margin:"ltr"===t?"0 2px":void 0},"& .MuiButton-endIcon":{margin:"rtl"===t?"0 2px":void 0}}})),UZ((function(e){var t=e.className;return y_.createElement(UJ,{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:WJ.ICONS.COLOR.SECONDARY}})),UZ((function(e){var t=e.className;return y_.createElement(UJ,{className:t,path:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})}))((function(){return{color:WJ.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:WJ.ICONS.COLOR.DISABLED}}})),UZ(qJ,{shouldForwardProp:function(e){return"styling"!==e}})((function(e){var t=e.styling,n=t.fontSize,r=t.fontFamily,i=t.color;return{fontWeight:"normal",lineHeight:"normal",fontSize:n,fontFamily:r,color:i,padding:"0px 5px",height:"100%",minWidth:"45px","&:disabled":{color:i}}}));var YJ={color:WJ.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:WJ.ICONS.COLOR.DISABLED}};UZ((function(e){var t=e.className;return y_.createElement(UJ,{className:t,path:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5 8.5 8z"})}))((function(){return YJ})),UZ((function(e){var t=e.className;return y_.createElement(UJ,{className:t,path:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))((function(){return YJ})),UZ((function(e){var t=e.className;return y_.createElement(UJ,{className:t,path:"M15.9993744,3 L15.9993744,5 L4.99937445,5 L4.99937445,3 L15.9993744,3 Z M8.99937445,7 L15.9993744,7 L15.9993744,9 L8.99937445,9 L8.99937445,7 Z M11.9993744,11 L15.9993744,11 L15.9993744,13 L11.9993744,13 L11.9993744,11 Z M2.2,11 L7,11 L7,9.00369263 C7,8.89323568 7.08954305,8.80369263 7.2,8.80369263 C7.2549016,8.80369263 7.30738916,8.82626165 7.34515712,8.86610844 L10.1852182,11.8624926 C10.2583124,11.93961 10.258346,12.0604218 10.1852948,12.13758 L7.34523376,15.1373102 C7.2692928,15.2175206 7.14270711,15.2209817 7.06249671,15.1450407 C7.02260076,15.1072683 7,15.0547472 7,14.9998069 L7,12.9043747 C4.79351111,12.9043747 2.8018683,12.9266213 1.02507156,12.9711145 L1.02507252,12.9711526 C0.472939773,12.9849787 0.014139487,12.5485949 0.000313396522,11.9964622 C0.000104473692,11.988119 -1.32268838e-12,11.9797736 -1.3231638e-12,11.9714278 L-1.83320026e-12,3 L2,3 L2,10.8 C2,10.9104569 2.08954305,11 2.2,11 Z"})}),{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast;return{color:WJ.ICONS.COLOR.PRIMARY,marginTop:"1px",marginLeft:"ltr"!==t||n?void 0:"2px",marginRight:"rtl"!==t||r?void 0:"2px"}})),UZ(IJ)((function(){return{padding:"4px 12px","&:focus":VJ({},WJ.FOCUS)}})),UZ($J)((function(){return{marginRight:0,justifyContent:"center"}})),UZ((function(e){var t=e.className;return y_.createElement(UJ,{className:t,path:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2 3 3Z"})}))((function(){return{color:WJ.ICONS.COLOR.SECONDARY}}));var KJ=Object.prototype.hasOwnProperty,GJ=Object.prototype.toString,XJ=Object.defineProperty,ZJ=Object.getOwnPropertyDescriptor,JJ=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===GJ.call(e)},QJ=function(e){if(!e||"[object Object]"!==GJ.call(e))return!1;var t,n=KJ.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&KJ.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||KJ.call(e,t)},eQ=function(e,t){XJ&&"__proto__"===t.name?XJ(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},tQ=function(e,t){if("__proto__"===t){if(!KJ.call(e,t))return;if(ZJ)return ZJ(e,t).value}return e[t]};!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,n,r,i,o,a,s=arguments[0],l=1,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=tQ(s,n),s!==(i=tQ(t,n))&&(u&&i&&(QJ(i)||(o=JJ(i)))?(o?(o=!1,a=r&&JJ(r)?r:[]):a=r&&QJ(r)?r:{},eQ(s,{name:n,newValue:e(u,a,i)})):void 0!==i&&eQ(s,{name:n,newValue:i}));return s}));var nQ,rQ=function(e){var t=e.dock,n=e.settings.label,r="center"===t,i=r?{}:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};return y_.createElement("span",{style:i,title:n},r?n:"* ".concat(n))},iQ={renderer:"react",disableTriggers:!0,key:"disclaimer",defaultSettings:{settings:{isRTL:!1,label:void 0},style:{fontFamily:'"Source Sans Pro", "Arial", "sans-serif"'}},preferredSize:function(){return 22},render:function(){var e=this.rect,t=this.settings,n=t.layout,r=t.settings,i=t.style;return function(e){var t=e.dock,n=e.rect,r=e.settings,i=e.styling,o=function(e){var t=e.dock;return"top"!==t&&"bottom"!==t||!e.isRTL?"ltr":"rtl"}({dock:t,isRTL:r.isRTL}),a=function(e){var t=e.dock,n=e.rect,r={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",color:"#7b7a78",fontStyle:"italic",fontSize:"13px",fontFamily:e.styling.fontFamily};return"left"===t&&(r.width="".concat(n.height,"px"),r.transform="rotate(-90deg) translate(-".concat(n.height,"px, 0)"),r.transformOrigin="top left"),"right"===t&&(r.width="".concat(n.height,"px"),r.transform="rotate(90deg) translate(0, -".concat(n.width,"px)"),r.transformOrigin="top left"),"center"===t&&(r.width="".concat(n.width,"px"),r.height="".concat(n.height,"px"),r.color="#595959",r.fontStyle="normal",r.fontSize="1.2em",r.textAlign="center"),"bottom"!==t&&"top"!==t||(r.justifyContent="flex-start",r.alignItems="flex-start"),r}({dock:t,rect:n,styling:i});return y_.createElement("div",{dir:o,style:a},y_.createElement(rQ,{dock:t,settings:r}))}({dock:n.dock,rect:e,settings:r,styling:i})}},oQ=KV;nQ=oQ.createRoot,oQ.hydrateRoot;var aQ=fZ({spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:14,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:600,fontWeightBold:700,htmlFontSize:14,fontFamily:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif",button:{fontWeight:600,fontSize:14,textTransform:"none"}},shape:{borderRadius:3},components:{MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"qcm-focus-visible"}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"qcm-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"116px",minWidth:"24px",fontSize:141,borderRadius:3,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transform:"translate3d(0,0,0)"},text:{padding:"8px 16px","&:active":{backgroundColor:"rgba(0, 0, 0, 0.1)"},"&.Mui-focusVisible":{boxShadow:"inset 0 0 0 2px ".concat("#177FE6")}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"}},variants:[]},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:14,height:"32px"}}},MuiListItemIcon:{styleOverrides:{root:{color:"#404040",minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:14,color:"#404040",lineHeight:"16px",fontWeight:600},secondary:{fontSize:12,color:"#737373",fontWeight:400,lineHeight:"16px"}}}}});function sQ(e){var t={x:0,y:0,width:0,height:0,scaleRatio:{x:1,y:1},margin:{left:0,top:0}},n=e||{},r=n.x,i=n.y,o=n.width,a=n.height,s=n.scaleRatio,l=n.margin;return t.x=Number.isNaN(r)||void 0===r?t.x:r,t.y=Number.isNaN(i)||void 0===i?t.y:i,t.width=Number.isNaN(o)||void 0===o?t.width:o,t.height=Number.isNaN(a)||void 0===a?t.height:a,void 0!==s&&(t.scaleRatio.x=Number.isNaN(s.x)?t.scaleRatio.x:s.x,t.scaleRatio.y=Number.isNaN(s.y)?t.scaleRatio.y:s.y),void 0!==l&&(t.margin.left=Number.isNaN(l.left)?0:l.left,t.margin.top=Number.isNaN(l.top)?0:l.top),t}function lQ(){var e={rendererBox:sQ(),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=sQ(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=nQ(e.container)),t.appendChild(e.container),e.container},setKey:function(t){e.container&&e.container.setAttribute("data-key",t)},render:function(t){if(!e.container)return!1;var n=e.rendererBox,r=n.scaleRatio.x,i=n.scaleRatio.y;return e.container.style.left="".concat(Math.round(n.margin.left+n.x*r),"px"),e.container.style.top="".concat(Math.round(n.margin.top+n.y*i),"px"),e.container.style.width="".concat(Math.round(n.width),"px"),e.container.style.height="".concat(Math.round(n.height),"px"),e.container.style.transform="scale(".concat(r,", ").concat(i,")"),e.container.style.transformOrigin="top left",e.root.render(function(e){var t=e.nodes;return y_.createElement(y_.StrictMode,null,y_.createElement(YZ,{theme:aQ},t))}({nodes:t})),!0},findShapes:function(){return[]},itemsAt:function(){return[]},clear:function(){t()},destroy:function(){t()}}}function cQ(e){return Ly(e).l<70}function uQ(e,t){const n=Ly(e).l/100,r=Ly(t).l/100;return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}function dQ(e,t){return{x:t.x+e.r*Math.sin(e.a),y:t.y-e.r*Math.cos(e.a)}}var fQ={require:["chart","settings"],defaultSettings:{settings:{},style:{}},render(){return function({chart:e,settings:t}){const n=e.component(t.component);if(!n)return[];const r=e.findShapes(t.selector).filter((e=>e.key===t.component));if(r.length<2)return[];if(n.settings.settings.slice.cornerRadius>0||n.settings.settings.slice.strokeWidth>0)return[];const i=[];let o=r[r.length-1];for(let e=0;e<r.length;e+=1){const t=r[e],n=o.attrs.fill,a=t.attrs.fill;if(uQ(a,n)<=1.2){const{start:e,offset:n}=t.desc.slice;let{innerRadius:r,outerRadius:s}=t.desc.slice;if(r=Math.max(r,o.desc.slice.innerRadius),s=Math.min(s,o.desc.slice.outerRadius),s>r){const t=dQ({r:s,a:e},n),o=dQ({r:r,a:e},n);i.push({type:"line",x1:t.x,y1:t.y,x2:o.x,y2:o.y,strokeWidth:1,opacity:.4,stroke:cQ(a)?"#ccc":"#333"})}}o=t}return i}({chart:this.chart,rect:this.rect,style:this.style,settings:this.settings.settings})}};function hQ(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 pQ(e){const{size:t,angle:n}=e,r={x:e.x,y:e.y},i=t/2,o=e.x-i,a=e.y-i;let s=[{x:o,y:a+t},{x:o+i,y:a},{x:o+t,y:a+t},{x:o,y:a+t}];return s=s.map((e=>function(e,t,n={x:0,y:0}){const r=Math.cos(t),i=Math.sin(t),o=(s=n,{x:(a=e).x-s.x,y:a.y-s.y});var a,s;return function(e,t){return{x:e.x+t.x,y:e.y+t.y}}({x:r*o.x-i*o.y,y:i*o.x+r*o.y},n)}(e,n,r))),{type:"path",fill:e.fill,d:hQ(s)}}var mQ={require:["chart"],defaultSettings:{settings:{},style:{}},render(){return function({chart:e,settings:t}){if(!e.component(t.component))return[];const n=e.findShapes(t.selector).filter((e=>e.key===t.component));if(n.length<2)return[];const r=[];for(let e=0;e<n.length;e+=1){const a=n[e];if(a.data.radius.value<0){const{start:e,end:n,offset:s}=a.desc.slice,l=(e+n)/2,c=(i={r:t.offset,a:l},{x:(o=s).x+i.r*Math.sin(i.a),y:o.y-i.r*Math.cos(i.a)}),u=pQ({size:t.size,fill:t.fill,angle:l+Math.PI,...c});u.data={...a.data,_share:a.desc.share,_fillColor:a.attrs.fill},r.push(u)}}var i,o;return r}({chart:this.chart,rect:this.rect,style:this.style,settings:this.settings.settings})}};function gQ(){const e=_p();return e.use(hg),e.use(function(e){if("function"!=typeof e.interaction)return t=>{t.interaction("hammer",gg(e))};e.interaction("hammer",gg(Hammer))}(a)),e.use((function(e){e.renderer("react",IU()),e.component("data-title",OU(e.renderer("svg")()))})),e.renderer("react-qcm",lQ),e.component("disclaimer",iQ),e.component("pie-dividers",fQ),e.component("negative-indicators",mQ),e}var yQ={};function vQ(){vQ.init.call(this)}yQ.isObject=function(e){return"object"==typeof e&&null!==e},yQ.isNumber=function(e){return"number"==typeof e},yQ.isUndefined=function(e){return void 0===e},yQ.isFunction=function(e){return"function"==typeof e};var bQ=vQ;vQ.EventEmitter=vQ,vQ.prototype._events=void 0,vQ.prototype._maxListeners=void 0,vQ.defaultMaxListeners=10,vQ.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},vQ.prototype.setMaxListeners=function(e){if(!yQ.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},vQ.prototype.emit=function(e){var t,n,r,i,o,a;if(this._events||(this._events={}),"error"===e&&!this._events.error)throw(t=arguments[1])instanceof Error?t:Error('Uncaught, unspecified "error" event.');if(n=this._events[e],yQ.isUndefined(n))return!1;if(yQ.isFunction(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:for(r=arguments.length,i=new Array(r-1),o=1;o<r;o++)i[o-1]=arguments[o];n.apply(this,i)}else if(yQ.isObject(n)){for(r=arguments.length,i=new Array(r-1),o=1;o<r;o++)i[o-1]=arguments[o];for(r=(a=n.slice()).length,o=0;o<r;o++)a[o].apply(this,i)}return!0},vQ.prototype.addListener=function(e,t){var n;if(!yQ.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,yQ.isFunction(t.listener)?t.listener:t),this._events[e]?yQ.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,yQ.isObject(this._events[e])&&!this._events[e].warned)&&((n=yQ.isUndefined(this._maxListeners)?vQ.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,yQ.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),yQ.isFunction(console.trace)&&console.trace()));return this},vQ.prototype.on=vQ.prototype.addListener,vQ.prototype.once=function(e,t){if(!yQ.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},vQ.prototype.removeListener=function(e,t){var n,r,i,o;if(!yQ.isFunction(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(i=(n=this._events[e]).length,r=-1,n===t||yQ.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(yQ.isObject(n)){for(o=i;o-- >0;)if(n[o]===t||n[o].listener&&n[o].listener===t){r=o;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},vQ.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],yQ.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},vQ.prototype.listeners=function(e){return this._events&&this._events[e]?yQ.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},vQ.listenerCount=function(e,t){return e._events&&e._events[t]?yQ.isFunction(e._events[t])?1:e._events[t].length:0};var xQ=r(bQ);const wQ=e=>(Object.keys(xQ.prototype).forEach((t=>{e[t]=xQ.prototype[t]})),xQ.init(e),e);function kQ({picasso:t}){var n;const r=e.useOptions(),i=e.useElement(),o=e.useSelections(),[a,s]=e.useState(),l=function(){const e={};return wQ(e),e.lasso={active:()=>!1},e.select={on:e.on,removeListener:e.removeListener},e}(),c=e.useLayout(),u=e.useTranslator(),d=!(null===(n=c.qSelectionInfo)||void 0===n||!n.qInSelections),[f,h]=e.useState(!1);return l.lasso=function({layout:e,isInSelections:t,isLassoActionActive:n,setIsLassoActionActive:r,translator:i}){var o;return{active:n,label:i.get(n?"Tooltip.ToggleOffLassoSelection":"Tooltip.ToggleOnLassoSelection"),hidden:!t||!(null===(o=e.qHyperCube)||void 0===o||null===(o=o.qDimensionInfo)||void 0===o||null===(o=o[0])||void 0===o||!o.qIsOneAndOnlyOne),action(e){r("boolean"==typeof e?e:!n)},icon:{shapes:[{type:"path",attrs:{d:"M15.9488039,5.20769129 C16.0487326,6.70662306 15.3492311,8.30548361 14.050157,9.30477145 C12.651154,10.5039169 10.8524359,10.8037032 8.85386017,10.4039881 L7.3549284,10.0042729 L5.75606786,9.70448659 C5.75606786,9.90434416 5.65613907,10.0042729 5.4562815,10.2041305 C5.05656637,10.6038456 4.55692244,10.8037032 4.05727852,10.8037032 C3.75749217,10.8037032 3.45770582,10.7037744 3.15791946,10.6038456 C3.05799068,10.903632 3.15791946,11.2034184 3.45770582,11.7030623 C5.05656637,14.0014243 3.85742095,15.9000712 3.75749217,16 L2.2585604,15.3004985 C2.2585604,15.2005697 2.95806189,14.0014243 1.95877405,12.6024213 C1.6589877,12.0028486 1.15934378,11.0035608 1.55905891,10.0042729 C1.6589877,9.80441537 1.75891648,9.6045578 1.95877405,9.40470024 C1.6589877,8.90505631 1.55905891,8.30548361 1.85884527,7.7059109 C1.55905891,7.40612455 1.25927256,7.1063382 1.15934378,6.70662306 C0.859557424,5.90719279 0.959486209,4.5081898 1.6589877,3.30904439 C1.95877405,2.6095429 2.55834676,2.0099702 3.15791946,1.51032628 C3.95734974,0.91075357 4.95663758,0.610967217 6.15578299,0.311180864 C9.05371774,-0.388320626 11.9516525,0.111323295 13.9502282,1.61025506 C15.1493736,2.50961412 15.8488751,3.80868831 15.9488039,5.20769129 Z M13.0508691,8.10562604 C13.8502994,7.40612455 14.3499433,6.40683671 14.3499433,5.30762008 C14.2500145,4.20840345 13.550513,3.40897318 12.9509403,2.90932926 C12.1515101,2.40968533 11.252151,2.0099702 10.1529344,1.81011263 C8.95378895,1.61025506 7.75464354,1.71018384 6.45556935,1.91004141 C4.75678001,2.30975655 3.65756338,3.00925804 3.05799068,4.10847467 C2.55834676,5.00783373 2.65827554,5.90719279 2.75820433,6.20697914 C2.75820433,6.30690792 2.85813311,6.40683671 3.05799068,6.40683671 C3.15791946,6.40683671 3.25784825,6.40683671 3.35777703,6.40683671 C3.45770582,6.40683671 3.45770582,6.40683671 3.45770582,6.40683671 L3.5576346,6.40683671 L3.65756338,6.40683671 C4.65685123,6.40683671 5.4562815,6.90648063 5.85599664,7.80583969 L5.85599664,8.00569726 C6.35564056,8.10562604 7.05514205,8.30548361 7.75464354,8.50534118 L9.25357531,8.90505631 C10.0530056,9.0049851 10.7525071,9.0049851 11.4520086,8.80512753 C12.0515813,8.70519875 12.5512252,8.40541239 13.0508691,8.10562604 Z"}}]}}}({layout:c,isInSelections:d,isLassoActionActive:f,setIsLassoActionActive:h,translator:u}),e.useAction((()=>(a&&(a.interactions.lasso.active=()=>f),{...l.lasso})),[a,f,d,u.language()]),e.useEffect((()=>{i.style.overflow="hidden";const e=t({renderer:{prio:[r.renderer||"canvas"]}}),n=e.chart({element:i,data:[],settings:{}}),a=UM({chart:n,actions:l,selections:o,config:{selectionActions:!1}});a.setLayout(c),a.setBrushAliases({colorField:"qDimensionInfo/0/qAttrDimInfo/0"});const u=function(e){var t=xw({},e),n={},r={},i=!1,o={get:function(e){return t[e]},set:function(e,o){var a=t[e];!i&&n[e]?t[e]=n[e](o,a):t[e]=o,!i&&r[e]&&r[e](t[e],a)},preventSet:function(e,t){i=!0,o.set(e,t),i=!1},intercept:function(e,t){n[e]=t},onChanged:function(e,t){r[e]=t}};return o}({legendScrollOffset:0,rotation:0});u.intercept("rotation",(e=>(u.get("rotation")+e)%(2*Math.PI))),u.onChanged("rotation",(()=>{n.update({partialData:!0})}));const d=AS();return l.on("selections-start",(()=>{n.brush("selection").start()})),s({picasso:e,chart:n,selectionService:a,viewState:u,viewCache:d,interactions:l}),()=>{a.destroy(),n.destroy(),l.removeAllListeners(),delete l.select,u.intercept("rotation",void 0),u.onChanged("rotation",void 0)}}),[]),a}const SQ={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 CQ(e){const t=e.split("/");return"qmem:"===t[0]&&""===t[1]}const MQ={getImageSize(e,t){let n;function r(){n&&(clearTimeout(n),n=null)}function i(e){const t=e;t.onload=null,t.onerror=null,r()}const o={small:50,medium:200,large:340,original:340};return new Promise((a=>{const s=new Image;s.referrerPolicy="no-referrer",s.onload=()=>{let e;const{height:n,width:l}=s,c=o[t]*(n>l?1:n/l),u=o[t]*(l>n?1:l/n);!n||!l||0===n&&0===l?(e={height:20,width:20,imageError:!0},i(s)):"original"===t?(e={height:Math.min(c,n),width:Math.min(u,l)},r()):(e={height:c,width:u},r()),a(e)},s.onerror=()=>{i(s),a({height:20,width:20,imageError:!0})},s.src=e,n=setTimeout((()=>{i(s),a({height:20,width:20,imageError:!0})}),3e3)}))}};async function EQ(e,t,n){let r=e.ref.qStaticContentUrl.qUrl;const i=function(e){var t,n,r;let i,o,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(i=e.session.options||(null===(u=e.enigmaModel)||void 0===u?void 0:u.session.sessionConfig),!i){var d;i=null===(d=e.session)||void 0===d?void 0:d.config;const t=new URL(i.url);i.host=t.hostname,i.port=t.port,i.isSecure="wss:"===t.protocol}return c=void 0!==i.secure?i.secure:i.isSecure,o=c?"https://":"http://",a=i.host||"localhost",s=i.port?`:${i.port}`:"",l=i.prefix?i.prefix:"/","/"!==l[l.length-1]&&(l=`${l}/`),o+a+s+l}return""}(n);i&&(!function(e,t){const n=e.replace(t,"").replace(/^\.\.\//i,"/");n[0]}(r,i),r=r.replace(/"/g,'\\"'),r=r.replace(/'/g,"\\'"),r=function(e,t){return t+("/"===e[0]?e.substr(1):e)}(r,i));const{height:o,width:a,imageError:s}=await MQ.getImageSize(r,t);return{src:r,size:t,height:o,width:a,imageError:s}}async function _Q(e,t,n,r){var i,o,a;const{app:s,flags:l}=t,c=null===(i=e.layout)||void 0===i||null===(i=i.tooltip)||void 0===i?void 0:i.imageComponents;if(!c)return[];const[u]=c,d=u.size||"small",f=u.type||"media";let h=-1;for(let e=0;e<n.length;e++)if(n[e].cId===u.cId){h=e;break}const p=(null===(o=r.data)||void 0===o||null===(o=o.customTooltipAttrExps)||void 0===o?void 0:o.value)||[];let m;if(-1!==h&&p[h]&&(m=p[h]),"media"===f&&null!==(a=u.ref)&&void 0!==a&&null!==(a=a.qStaticContentUrl)&&void 0!==a&&a.qUrl)return EQ(u,d,s);if("url"===f)return async function(e,t,n,r,i){let o,a=n.ref;if(i&&i.label&&(a=i.label),t.isEnabled("IMAGE_BUNDLE_LOAD")&&null!=e&&e.getImage&&CQ(a))try{const t=`data:image/png;base64, ${await e.getImage(a)}`,{height:n,width:i,imageError:s}=await MQ.getImageSize(t,r);o={src:t,size:r,height:n,width:i,imageError:s}}catch(e){}else{const{height:e,width:t,imageError:n}=await MQ.getImageSize(a,r);o={src:a,size:r,height:e,width:t,imageError:n}}return o}(s,l,u,d,m);if(l.isEnabled("IMAGE_BUNDLE_LOAD")&&"field"===f&&m&&m.label){return async function(e,t,n,r){let i;const o=r.label,a=`qmem://${t.qFallbackTitle}/${o}`;if(CQ(a))try{const t=await e.getImage(a);if(t){const e=`data:image/png;base64, ${t}`,{height:r,width:o,imageError:a}=await MQ.getImageSize(e,n);i={src:e,size:n,height:r,width:o,imageError:a}}}catch(e){}return i}(s,n[h],d,m)}return[]}const DQ={async addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){const i=t,o=[];for(let t=0;t<i.length;t++)o.push(_Q(e,r,n,i[t]));const a=await Promise.all(o);for(let e=0;e<i.length;e++)i[e].data.customTooltipImages=[a[e]];return i},checkIfPromisesExist({customTooltipModel:e}){var t;const n=null===(t=e.layout)||void 0===t||null===(t=t.tooltip)||void 0===t?void 0:t.imageComponents;return!!n&&n.length>0}},qQ={async handlePromises({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){let i=t;return i=await DQ.addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}),i},checkIfPromisesExist:({customTooltipModel:e})=>DQ.checkIfPromisesExist({customTooltipModel:e})};const TQ=(e,t)=>{var n,r,i;const o=null==e||null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qDimensions,a=null==e||null===(r=e.qHyperCubeDef)||void 0===r?void 0:r.qMeasures,s=null==e||null===(i=e.qHyperCubeDef)||void 0===i?void 0:i.qInterColumnSortOrder,l=t;return{qInfo:{qType:SQ.CHART.CHART_PARENT_TYPE,qId:SQ.CHART.CHART_OBJECT_ID},qHyperCubeDef:{qDimensions:o,qMeasures:a,qInterColumnSortOrder:s,qInitialDataFetch:[{qWidth:0,qHeight:0}]},qStateName:l}},RQ=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:SQ.CHART.CHART_CHILD_TYPE},qExtendsId:n}};const NQ={createContainer:({ctx:e,layout:t})=>{var n;if(!((null===(n=t.qHyperCube)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.length)<=0))return function(e,t){var n,r;const i=null!==(n=null===(r=t.tooltip)||void 0===r||null===(r=r.chart)||void 0===r||null===(r=r.style)||void 0===r?void 0:r.size)&&void 0!==n?n:"medium",o=SQ.CHART.STYLE[i];return[{content:[e.h("div",{style:{display:"flex",width:o,height:o,backgroundColor:"#FFFFFF",borderRadius:"5px",padding:"2px",color:"#595959"},colspan:2,id:SQ.CHART.CONTAINER_ID})],colspan:2,style:{"text-align":e.rtl?"right":"left","max-width":o,width:"100%"}},{}]}(e,t)},show:async({app:e,properties:t,selectedNodes:n,dimIndex:r,customTooltipModel:i,rtl:o})=>{var a;const s=i,l=null==t||null===(a=t.tooltip)||void 0===a||null===(a=a.chart)||void 0===a||null===(a=a.object)||void 0===a?void 0:a.refId;if(null!=s&&s.embed&&e.removeSessionAlternateState&&e.addSessionAlternateState&&l&&!(t.qHyperCubeDef.qDimensions.length<=0)){await NQ.hide({app:e,customTooltipModel:i});try{await async function({app:e,properties:t,customTooltipModel:n}){const r=n,i=SQ.CHART.STATE,o=t.qStateName;r.miniChartToken.alternateState||(r.miniChartToken.alternateState=i,await e.addSessionAlternateState(i,o),r.miniChartToken.alternateState=i)}({app:e,properties:t,customTooltipModel:i});const a=await async function({app:e,properties:t,customTooltipModel:n}){var r;const i=n;null!==(r=i.miniChartToken.sessionObj)&&void 0!==r&&r.id&&await e.destroySessionObject(i.miniChartToken.sessionObj.id);const o=SQ.CHART.STATE,a=TQ(t,o),s=await e.createSessionObject(a),l=RQ(t);if(s.id!==SQ.CHART.CHART_OBJECT_ID)return void e.destroySessionObject(s.id);i.miniChartToken.sessionObj=s;const c=await s.createChild(l);if(i.miniChartToken.sessionObj&&i.miniChartToken.sessionObj.id===s.id)return i.miniChartToken.model=c,c;e.destroySessionObject(s.id)}({app:e,properties:t,customTooltipModel:i});if(s.miniChartToken.alternateState&&s.miniChartToken.sessionObj&&a){var c,u,d,f;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 h,p;const e=null!==(h=n[0].data.selectionOuterDimension)&&void 0!==h?h:n[0].data.selectionDimension;if(null!=e&&null!==(p=e.source)&&void 0!==p&&p.field){var m;const t=null==e||null===(m=e.source)||void 0===m?void 0:m.field.split("/"),n=t[t.length-1],r=void 0!==e.value?[e.value]:[];r.length>0&&void 0!==n&&s.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",Number(n),r,!1)}}e.length>0&&s.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",a,e,!1);const l=document.getElementById(SQ.CHART.CONTAINER_ID),g={direction:o?"rtl":"ltr",isReadonly:!0,isPopover:!0,navigation:!1,selections:!1};s.miniChartToken.vis=await i.embed.render({element:l,model:s.miniChartToken.model,options:g,id:null===(d=s.miniChartToken.model)||void 0===d?void 0:d.id,type:null===(f=s.miniChartToken.model)||void 0===f?void 0:f.genericType})}}catch(t){await NQ.hide({app:e,customTooltipModel:i})}}},hide:async({app:e,customTooltipModel:t})=>{const n=t;null!=n&&n.embed&&(NQ.destroyVisualization({customTooltipModel:t}),await e.destroySessionObject(SQ.CHART.CHART_OBJECT_ID),n.miniChartToken.sessionObj=void 0,await async function({app:e,customTooltipModel:t}){const n=t,r=SQ.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 OQ(e){const t=e.qHyperCubeDef?e.qHyperCubeDef.qDimensions:e.qHyperCube.qDimensionInfo;if(t&&t.length>0)return t}function AQ(){const{EXPRESSION:e,TITLE:t,DESCRIPTION:n,IMAGES:r}=SQ.CUSTOM,i={};return i[e]=!0,i[t]=!0,i[n]=!0,i[r]=!0,i}function PQ(e){const t=AQ();return e.filter((e=>t[e.id]))}const IQ={getNodes(e,t){const n=function(e,t){let n=0,r=0;e.center?(n+=e.center.x,r+=e.center.y):(n+=e.clientX,r+=e.clientY);const i=t.element.getBoundingClientRect();return{cx:n-i.left,cy:r-i.top}}(e,t);return t.shapesAt({x:n.cx,y:n.cy})},getDataNodes(e,t){let n,r=[];const i={container:{bar:!0,"bullet-axis":!0},circle:{"point-component":!0}};return t.forEach((t=>{var o,a,s,l;const c=null!==(o=null===(a=t.data)||void 0===a?void 0:a.selectionDimension)&&void 0!==o?o:t.data;if(!c||null!==(s=t.data)&&void 0!==s&&s.customTooltipAttrExps||i[t.type]){if(null!==(l=t.data)&&void 0!==l&&l.customTooltipAttrExps&&!t.data.customTooltipImages){const e=t;e.data.customTooltipImages=[],r.push(e)}}else{n||(n=[],Object.keys(i).forEach((t=>{n=n.concat(e.findShapes(t).filter((e=>e.data&&e.data.customTooltipAttrExps&&!e.data.customTooltipImages&&i[t][e.key])))})));const t=n.filter((e=>{var t,n;const r=null!==(t=null!==(n=e.data.stack)&&void 0!==n?n:e.data.selectionOuterDimension)&&void 0!==t?t:e.data.selectionDimension;return r&&r.value===c.value&&r.label===c.label}));t.length>0&&(r=r.concat(t[0]))}})),r},displayTooltip(e,t,{nodes:n,opts:r={},customTooltipModel:i,extractedNodes:o=[],hide:a}){if(i&&!a){const{layout:a,chart:s}=i,{attrExps:l}=IQ.getAttrExprData(a);o.length||n.length?qQ.handlePromises({customTooltipModel:i,nodes:IQ.getDataNodes(s,o.length>0?o:n),attrExps:l,opts:r}).then((()=>{t.emit("show",e,n.length?{nodes:n}:void 0)})):t.emit("show",e,n.length?{nodes:n}:void 0)}else{var s;null!=i&&null!==(s=i.miniChartToken)&&void 0!==s&&s.alternateState&&NQ.hide({app:r.app,customTooltipModel:i}),t.emit("hide")}},checkIfPromisesExist:({customTooltipModel:e})=>qQ.checkIfPromisesExist({customTooltipModel:e}),getAttrExps(e,t){var n;const r=t,i=null!==(n=e.qHyperCubeDef)&&void 0!==n&&n.qDimensions?"qAttributeExpressions":"qAttrExprInfo";return r[i]||(r[i]=[]),r[i]},getAttrExprData(e){var t;let n=[],r="";const i=(null===(t=e.qHyperCube)||void 0===t?void 0:t.qDimensionInfo)||[];if(i.length>0){var o;const t=i.length-1;n=(null===(o=e.qHyperCube)||void 0===o||null===(o=o.qDimensionInfo)||void 0===o||null===(o=o[t])||void 0===o?void 0:o.qAttrExprInfo)||[],r=`qDimensionInfo/${t}/qAttrExprInfo`}return{attrExps:n,fieldPath:r}},quarantineCustomTooltipAttrs(e,t={}){var n;if(!(null===(n=e.qLayoutExclude)||void 0===n||null===(n=n.quarantine)||void 0===n?void 0:n[SQ.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[SQ.CUSTOM.QUARANTINE]=[],e.forEach((e=>{r.quarantine[SQ.CUSTOM.QUARANTINE].push(e)})),n.qLayoutExclude=r}(PQ(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[SQ.CUSTOM.QUARANTINE])&&delete n.qLayoutExclude.quarantine[SQ.CUSTOM.QUARANTINE]},setAttrsFromQuarantine(e,t){const n=OQ(e);if(!n)return;const r=void 0!==t?t:n.length-1;if(!n[r])return;const i=this.getAttrExps(e,n[r]);if(0===PQ(i).length){var o;const t=(null===(o=e.qLayoutExclude)||void 0===o||null===(o=o.quarantine)||void 0===o?void 0:o.customTooltip)||[],n=[...i,...t],a=e;a.qHyperCubeDef?a.qHyperCubeDef.qDimensions[r].qAttributeExpressions=n:a.qHyperCube.qDimensionInfo[r].qAttrExprInfo=n}},moveCustomTooltipAttrs(e,t={},n){let r=[];const i=OQ(e)||[];[...i,t].forEach((e=>{const t=PQ(e.qAttributeExpressions||[]);t.length>0&&(r=t)}));const o=AQ(),a=i.map((e=>{const t=e,n=e.qAttributeExpressions||[];return t.qAttributeExpressions=n.filter((e=>!o[e.id])),t})),s=void 0!==n?n:a.length-1;a.length>0&&(a[s].qAttributeExpressions=a[s].qAttributeExpressions.concat(r));const l=e;e.qHyperCubeDef?l.qHyperCubeDef.qDimensions=a:l.qHyperCube.qDimensionInfo=a},addCallbackCustomTooltip(e){e.qHyperCubeDef.qDimensions.length>1?this.moveCustomTooltipAttrs(e):(this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e))},moveCallbackCustomTooltip(e,t){1===e.qHyperCubeDef.qDimensions.length&&(this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e)),e.qHyperCubeDef.qDimensions.length>1&&this.moveCustomTooltipAttrs(e,t)},removeCallbackCustomTooltip(e,t){e.qHyperCubeDef.qDimensions.length>0?this.moveCustomTooltipAttrs(e,t):this.quarantineCustomTooltipAttrs(e,t)},replaceCallbackCustomTooltip(e,t){e.qHyperCubeDef.qDimensions.length>1?this.moveCustomTooltipAttrs(e,t):(this.quarantineCustomTooltipAttrs(e,t),this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e))},shouldIgnoreDefaultRows(e){var t;return(null===(t=e.tooltip)||void 0===t?void 0:t.hideBasic)||0},DEBOUNCE_THRESHOLD:50,getFooterRow:(e,t)=>[{content:e,style:{"font-style":"italic","font-size":"12px","line-height":"16px",color:"rgba(255, 255, 255, 0.6)","text-align":t?"right":"left",direction:Lg.detectTextDirection(e)},colspan:2},{}],getImageRow(e,t){const n=Lg.detectTextDirection(e.src),r=[],i={style:{display:"block","margin-left":"auto","margin-right":"auto",overflow:"hidden",width:e.width,height:e.height}};if("original"===e.size||e.imageError){r.push(t.h("span",{style:{display:"inline-block",height:"100%","vertical-align":"middle"}}));const n=e.imageError?`${e.src}?${Math.random()}`:e.src;r.push(t.h("img",{style:{"max-width":e.width,"max-height":e.height,"vertical-align":"middle"},src:n,referrerpolicy:"no-referrer"})),i.style["text-align"]="center",i.style["white-space"]="nowrap"}else i.style["background-size"]="contain",i.style["background-repeat"]="no-repeat",i.style["background-position"]="center",i.style["background-image"]=`url('${e.src}')`;return[{content:[t.h("div",i,r),""],style:{"text-align":t.rtl?"right":"left",direction:n,"max-width":e.width},colspan:2},{}]}};function LQ(e,t,n,r){var i;const o=(null===(i=t.qHyperCube)||void 0===i||null===(i=i[n])||void 0===i||null===(i=i[r])||void 0===i?void 0:i.qAttrExprInfo)||[],a=[],s=e.qSubNodes&&e.qSubNodes[r]?e.qSubNodes[r].qAttrExps:e.qAttrExps;return s?(o.forEach(((e,t)=>{const i=s.qValues&&s.qValues[t]?s.qValues[t]:void 0,o=void 0===i?"NaN":function(e,t){let n;switch(e.id){case SQ.CUSTOM.EXPRESSION:n="NaN"===t.qNum||e.isCustomFormatted?void 0===t.qText?"NaN":t.qText:t.qNum;break;case SQ.CUSTOM.TITLE:case SQ.CUSTOM.DESCRIPTION:case SQ.CUSTOM.IMAGES:n=void 0===t.qText?e.qFallbackTitle:t.qText;break;default:n="NaN"}return n}(e,i);a.push({source:{key:"qHyperCube",field:`${n}/${r}/qAttrExprInfo/${t}`},label:o,value:"value"})})),a):a}const zQ={getNode(e,{dimensionCount:t}){if(!t||t<1)return;const n=t-1,r="qDimensionInfo";return{field:`${r}/${n}`,value:t=>LQ(t,e,r,n)}}};const FQ={getCustomAttrExps(e,t,n){var r;const i={customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]},o=(null===(r=t.data)||void 0===r||null===(r=r.customTooltipAttrExps)||void 0===r?void 0:r.value)||[];if(Number.isNaN(o))return i;return function(e,t,n,r){const i={[SQ.CUSTOM.TITLE]:!0,[SQ.CUSTOM.DESCRIPTION]:!0},{attrExps:o,fieldPath:a}=IQ.getAttrExprData(e);return 0===t.length||0===o.length||""===a||o.forEach(((e,o)=>{const s=t[o];if(e.id===SQ.CUSTOM.EXPRESSION&&s){const t=e.qFallbackTitle,i="NaN"===s.value||e.isCustomFormatted?s.value:n("qHyperCube").field(`${a}/${o}`).formatter()(s.value);r.customTooltipAttrExpsArr.push({label:t,value:i})}else if(i[e.id]&&s){const t="-"!==s.value&&"NaN"!==s.value?s.value:s.label;t&&"undefined"!==t&&r.customTooltipInfoAttrExpsArr.push({...e.id===SQ.CUSTOM.TITLE&&{title:t},value:t,id:e.id})}})),r}(n,o.map((t=>zg.getMeasure(e,t))),e,i)}};function jQ({nodes:e,layout:t,dataset:n}){const r=function(e,t,n){const r=[];return e.forEach((e=>{r.push(FQ.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 $Q(e){const t=SQ.CUSTOM.EXPRESSION,{qNumFormat:n,qLabel:r,qLabelExpression:i,cId:o}=e.qDef;return e.qLibraryId?{qLibraryId:e.qLibraryId,id:t,qNumFormat:n,qLabel:r,qLabelExpression:i,cId:o}:{qExpression:e.qDef.qDef,id:t,qNumFormat:n,qLabel:r,qLabelExpression:i,cId:o}}function HQ(e){var t;const n=null===(t=e.qHyperCubeDef)||void 0===t?void 0:t.qDimensions;return n[n.length-1].qAttributeExpressions||[]}const VQ={migrateProperties(e){var t,n;const r=Eg(!0,{},e),i=(null===(t=r.tooltip)||void 0===t||null===(t=t.data)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qMeasures)||[];let o=HQ(r);return o=function(e,t){return t.concat(e.map((e=>$Q(e))))}(i,o),function(e,t){var n;const r=null===(n=t.qHyperCubeDef)||void 0===n?void 0:n.qDimensions;r[r.length-1].qAttributeExpressions=e}(o,r),null===(n=r.tooltip)||void 0===n||delete n.data,r},getPatches(e){var t,n;const r=(null===(t=e.tooltip)||void 0===t||null===(t=t.data)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qMeasures)||[],i=(null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qDimensions.length)-1,o=function(e,t,n){let r=e.length;const i=[];return t.forEach((e=>{const t=$Q(e),o=JSON.stringify(t);i.push({qPath:`/qHyperCubeDef/qDimensions/${n}/qAttributeExpressions/${r}`,qOp:"add",qValue:o}),r++})),i.push({qPath:"/tooltip/data",qOp:"remove"}),i}(HQ(e),r,i);return o},checkForBackwardCompatibility:(e,t)=>(e.qMeasureInfo||[]).length>0&&t.length>0,updateProperties(e,t){const n=new Promise((n=>{var r,i,o;const a=(null===(r=t.qHyperCube)||void 0===r?void 0:r.qDimensionInfo)||[],s=(null===(i=t.tooltip)||void 0===i||null===(i=i.data)||void 0===i?void 0:i.qHyperCube)||{},l=null===(o=t.qMeta)||void 0===o||null===(o=o.privileges)||void 0===o?void 0:o.includes("update");e&&e.getEffectiveProperties&&this.checkForBackwardCompatibility(s,a)&&e.getEffectiveProperties().then((t=>{if(l){const r=this.migrateProperties(t);e.setProperties(r).then((()=>{e.app.clearUndoBuffer(),n(!0)}))}else{const r=this.getPatches(t);e.applyPatches(r,!0).then((()=>{e.app.clearUndoBuffer(),n(!0)}))}})),n(!1)}));return n}};var BQ={attrExpr:VQ};const{CUSTOM:UQ}=SQ;function WQ({flags:e,layout:t,app:n,model:r,picasso:i,chart:o,translator:a,localeInfo:s,embed:l,options:c}){const u={properties:void 0},d=function({layout:e,app:t,picasso:n,model:r,chart:i,translator:o,localeInfo:a,embed:s}){return{layout:e,app:t,picasso:n,model:r,chart:i,translator:o,localeInfo:a,useCustomTooltip:e.tooltip&&!e.tooltip.auto,utils:IQ,miniChartToken:{},embed:s}}({layout:t,app:n,model:r,picasso:i,chart:o,translator:a,localeInfo:s,embed:l}),f="rtl"===c.direction,h=()=>{var e;const n=!(null===(e=u.properties)||void 0===e||null===(e=e.qHyperCubeDef)||void 0===e||!e.qDimensions.some((e=>{var t;return null===(t=e.qCalcCondition)||void 0===t||null===(t=t.qCond)||void 0===t?void 0:t.qv})));return!(!t.tooltip||t.tooltip.auto||n)};return{setProperties:e=>{u.properties=e},isEnabled:()=>h(),hideBasic:()=>h()&&RS(t,"tooltip.hideBasic",!1),getAttributes:({dataset:e,nodes:n})=>{var r,i;const o=jQ({dataset:e,nodes:n,layout:t});return{title:null===(r=o.customTooltipInfoAttrExpsArr.find((e=>e.id===UQ.TITLE)))||void 0===r?void 0:r.title,description:null===(i=o.customTooltipInfoAttrExpsArr.find((e=>e.id===UQ.DESCRIPTION)))||void 0===i?void 0:i.value,measures:o.customTooltipAttrExpsArr}},hasImages:()=>IQ.checkIfPromisesExist({customTooltipModel:d}),createImageRow:({value:e,h:t})=>IQ.getImageRow(e,{h:t,rtl:f}),addImages:({nodes:r})=>{const i=IQ.getDataNodes(o,r),{attrExps:a}=IQ.getAttrExprData(t);return qQ.handlePromises({customTooltipModel:d,nodes:i,attrExps:a,opts:{flags:e,app:n}})},chart:{isEnabled:()=>{return!!(h()&&null!==(e=t.tooltip)&&void 0!==e&&null!==(e=e.chart)&&void 0!==e&&null!==(e=e.object)&&void 0!==e&&e.refId&&l&&"function"==typeof(null==r?void 0:r.getEffectiveProperties));var e},hasLimitation:()=>{var e;return!(null==n||null===(e=n.isInModalSelection)||void 0===e||!e.call(n))},createContainer:({h:e})=>NQ.createContainer({layout:t,ctx:{h:e,rtl:f}}),createLimitationRow:()=>IQ.getFooterRow(a.get("properties.tooltip.notselectedmessage"),f),show:({nodes:e,properties:t})=>NQ.show({app:n,properties:t,selectedNodes:e,customTooltipModel:d,rtl:f}),hasAlternateState:()=>{var e;return!(null===(e=d.miniChartToken)||void 0===e||!e.alternateState)},hide:()=>NQ.hide({app:n,customTooltipModel:d}),destroy:()=>NQ.destroyVisualization({customTooltipModel:d})}}}function YQ(e){return{layout:e,keys:{SCALE:{FILL:"fill"},COMPONENT:{DIMENSION_TITLE:"dimension-title",SLICES:"slices",PIE_LABELS:"pie-labels"}}}}function KQ({flags:t,picasso:n,instance:r}){const i=e.useModel(),o=e.useApp(),a=e.useTranslator(),s=e.useElement(),[l,c]=e.useState(),u=e.useStaleLayout(),d=e.usePlugins(),f=e.useConstraints(),h=e.useOptions(),p=e.useTheme(),{qLocaleInfo:m}=e.useAppLayout(),g=e.useEmbed();return e.useEffect((()=>{if(!r)return;s.style.overflow="hidden";const e=MS({picasso:r.picasso,model:i,app:o,translator:a,config:{auto:!1,key:"fill"}}),l=function(e){var t=e.picassoInstance,n=e.plugins,r=e.pluginArgs,i=void 0===r?{}:r,o={initialized:!1,definitions:[]};return{initialize:function(){return Cw(ww().mark((function e(){var r,a,s,l;return ww().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!o.initialized){e.next=2;break}return e.abrupt("return");case 2:return a=Promise.all(n.filter((function(e){return"custom-component"===e.info.type})).map(function(){var e=Cw(ww().mark((function e(n){var r;return ww().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.info.componentName){e.next=2;break}throw new Error("plugin-service: Custom component is missing componentName");case 2:return e.next=4,n.fn(xw({},i));case 4:if("object"===kw(r=e.sent)){e.next=7;break}throw new Error("plugin-service: Custom component needs to be an object");case 7:t.component(n.info.componentName,r);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())),s=Promise.all(n.filter((function(e){return"component-definition"===e.info.type})).map((function(e){return e.fn(xw({},i))}))),e.next=6,Promise.all([a,s]);case 6:l=e.sent,o.initialized=!0,(r=o.definitions).push.apply(r,Dw(l[1]));case 9:case"end":return e.stop()}}),e)})))()},extendComponents:function(e){return o.initialized?(o.definitions.filter(Boolean).forEach((function(t){var n=_w(e.filter((function(e){return e.key&&e.key===t.key})),1)[0];if(n){var r=Kw(!0,{},n.brush);Kw(!0,n,t),t.brush&&(n.brush=function(e,t){return"object"===kw(e)&&Object.keys(e).length?(Array.isArray(t.consume)&&(e.consume=IS({originalArray:e.consume,newArray:t.consume,matchKey:"context"})),Array.isArray(t.trigger)&&(e.trigger=IS({originalArray:e.trigger,newArray:t.trigger,matchKey:"on"})),e):t}(r,t.brush))}else e.push(t)})),e):e}}}({picassoInstance:r.picasso,plugins:d,pluginArgs:YQ(u)}),y=WQ({flags:t,layout:u,app:o,model:i,picasso:n,chart:r.chart,translator:a,localeInfo:m,embed:g,options:h}),v=function(e){var t=e.theme,n=e.config,r=void 0===n?{}:n,i=r.id,o=r.resolve,a=void 0===o?[]:o,s=r.transform,l=void 0===s?[]:s,c=r.extend,u=void 0===c?[]:c,d={theme:t,matrix:JM(a),styles:void 0};return d.styles=eE({theme:t,id:i,transform:l,extend:u,matrix:d.matrix}),{getStyles:function(){return d.styles},getTheme:function(){return d.theme},setTheme:function(e){d.theme=e,d.styles=eE({theme:e,id:i,transform:l,extend:u,matrix:d.matrix})}}}({theme:p,config:{id:"pieChart",resolve:[["object","label.name","color","#595959"],["object","label.name","fontFamily"],["object","label.name","fontSize","12px"]]}}),b=function({chart:e,translator:t,layout:n,constraints:r,options:i,themeService:o,colorService:a,custom:s}){const l=n.qHyperCube.qMeasureInfo.length>1,c="rtl"===i.direction,{fontFamily:u}=o.getStyles();return TE({chart:e,translator:t,config:{rtl:c,enable:()=>!r.passive,getColorSettings:()=>a.getSettings(),style:{fontFamily:u},main:{key:"tooltip",getGroupByValue:({data:e})=>e.value,collectibles:[{key:"slices",type:"slice",major:({data:e})=>e.value}],triggers:[{keys:["slices"],collect:{from:"single"},placement:"collectible"},{keys:["pie-labels","negative-indicators"],collect:{from:"dimension",by:({data:e})=>e.value},placement:"trigger"}],placement:({meta:e})=>({type:"slices"===e.triggerer?"slice":"bounds"}),section:({h:e,nodes:n,dataset:r,formatter:i,create:o,util:a})=>{const[c]=n,{title:u,description:d,measures:f}=s.isEnabled()?s.getAttributes({dataset:r,nodes:n}):{},h=[];u&&h.push(o.text({value:u,style:{bold:!0}})),d&&h.push(o.text({value:d}));const p=s.hideBasic();if(p&&!f.length&&(u||d)||h.push(o.text({value:c.data.label,style:{bold:!0}})),!p){h.push(o.color({nodes:n,property:"fill"}));const{num:e}=c.data;if(h.push(o.measure({label:a.dataset.title(e.source.key,e.source.field),value:e.label})),l){const{radius:e}=c.data;h.push(o.measure({label:a.dataset.title(e.source.key,e.source.field),value:e.label}))}h.push(o.measure({label:t?t.get("properties.dataPoints.labelmode.share"):"Share",value:i("share")(c.desc.share)}))}f&&h.push(...f.map((e=>o.measure({label:e.label,value:e.value,survive:{color:!0,duplicate:!0}})))),s.chart.isEnabled()&&(s.chart.hasLimitation()?(s.chart.destroy(),h.push(o.raw({value:s.chart.createLimitationRow()}))):h.push(o.raw({value:s.chart.createContainer({h:e})})));const{customTooltipImages:m}=c.data;return s.isEnabled()&&m&&h.push(...m.map((t=>o.raw({value:s.createImageRow({value:t,h:e})})))),h},layout:{grouping:!0},events:{tooltip:{beforeShow:({collectNodes:e})=>s.isEnabled()&&s.hasImages()?s.addImages({nodes:e()}):Promise.resolve(),afterShow:({expando:e,nodes:t})=>{s.chart.isEnabled()&&!s.chart.hasLimitation()&&s.chart.show({nodes:t,properties:e.get("properties")})}},interaction:{mouseleave:()=>{s.chart.isEnabled()&&s.chart.hasAlternateState()&&s.chart.hide()}}}},legend:{keys:{tooltip:"legend-color-cat",component:"legend-cat"}}}})}({app:o,chart:r.chart,translator:a,layout:u,constraints:f,options:h,themeService:v,colorService:e,custom:y}),x=function({layout:e,themeService:t,flags:n}){const r=t.getStyles(),i=t=>{var r;return n.isEnabled("CLIENT_IM_3050")?null===(r=e.components)||void 0===r?void 0:r.find((e=>e.key===t)):void 0};return{axis:{title:{getStyle:()=>{var e,t,n,o,a,s;return{fontFamily:null!==(e=null===(t=i("axis"))||void 0===t||null===(t=t.axis)||void 0===t||null===(t=t.title)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:r.axis.title.fontFamily,fontSize:null!==(n=null===(o=i("axis"))||void 0===o||null===(o=o.axis)||void 0===o||null===(o=o.title)||void 0===o?void 0:o.fontSize)&&void 0!==n?n:r.axis.title.fontSize,color:null!==(a=null===(s=i("axis"))||void 0===s||null===(s=s.axis)||void 0===s||null===(s=s.title)||void 0===s||null===(s=s.color)||void 0===s?void 0:s.color)&&void 0!==a?a:r.axis.title.color}}}},label:{name:{getStyle:()=>{var e,t,n,o,a,s;return{fill:null!==(e=null===(t=i("label"))||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.name)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:r.label.name.color,fontSize:null!==(n=null===(o=i("label"))||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.name)||void 0===o?void 0:o.fontSize)&&void 0!==n?n:r.label.name.fontSize,fontFamily:null!==(a=null===(s=i("label"))||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.name)||void 0===s?void 0:s.fontFamily)&&void 0!==a?a:r.label.name.fontFamily}}},value:{getStyle:()=>{var e,t,n,o,a,s;return{fill:null!==(e=null===(t=i("label"))||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.value)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:r.label.value.color,fontSize:null!==(n=null===(o=i("label"))||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o.fontSize)&&void 0!==n?n:r.label.value.fontSize,fontFamily:null!==(a=null===(s=i("label"))||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.value)||void 0===s?void 0:s.fontFamily)&&void 0!==a?a:r.label.value.fontFamily}}}},legend:{title:{getStyle:()=>{var e,t,n,o,a,s;return{fontFamily:null!==(e=null===(t=i("legend"))||void 0===t||null===(t=t.legend)||void 0===t||null===(t=t.title)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:r.legend.title.fontFamily,fontSize:null!==(n=null===(o=i("legend"))||void 0===o||null===(o=o.legend)||void 0===o||null===(o=o.title)||void 0===o?void 0:o.fontSize)&&void 0!==n?n:r.legend.title.fontSize,color:null!==(a=null===(s=i("legend"))||void 0===s||null===(s=s.legend)||void 0===s||null===(s=s.title)||void 0===s||null===(s=s.color)||void 0===s?void 0:s.color)&&void 0!==a?a:r.legend.title.color}}},label:{getStyle:()=>{var e,t,n,o,a,s;return{fontFamily:null!==(e=null===(t=i("legend"))||void 0===t||null===(t=t.legend)||void 0===t||null===(t=t.label)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:r.legend.label.fontFamily,fontSize:null!==(n=null===(o=i("legend"))||void 0===o||null===(o=o.legend)||void 0===o||null===(o=o.label)||void 0===o?void 0:o.fontSize)&&void 0!==n?n:r.legend.label.fontSize,color:null!==(a=null===(s=i("legend"))||void 0===s||null===(s=s.legend)||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.color)||void 0===s?void 0:s.color)&&void 0!==a?a:r.legend.label.color}}}}}}({layout:u,themeService:v,flags:t}),w=function({layout:e}){const t=({ds:e,encodings:t})=>{const n={field:"qDimensionInfo/0",props:{num:{field:t.slice.arc}}};return t.slice.outerRadius&&(n.props.radius={field:t.slice.outerRadius}),e.extract(n)},n=({rows:e,encodings:t})=>t.slice.outerRadius?e.filter((e=>"NaN"!==e.num.value&&"NaN"!==e.radius.value)):e.filter((e=>"NaN"!==e.num.value)),r=({rows:t,encodings:n})=>n.slice.outerRadius&&!e.donut.showAsDonut?t.filter((e=>e.num.value>0&&e.radius.value>0)):t.filter((e=>e.num.value>0));return TS({layout:e,config:{args:{},disclaimers:{NoDataExist:{condition:({ds:e,encodings:n})=>0===t({ds:e,encodings:n}).length},LimitedData:{condition:()=>{const t=Ng.getValue(e,"qHyperCube.qSize.qcy");return Ng.getValue(e,"qHyperCube.qDataPages.0.qArea.qHeight")<t}},OnlyNanData:{condition:({ds:e,encodings:r})=>{const i=t({ds:e,encodings:r});return 0===n({rows:i,encodings:r}).length}},OnlyNegativeOrZeroValues:{condition:({ds:e,encodings:i})=>{const o=t({ds:e,encodings:i}),a=n({rows:o,encodings:i});return 0===r({rows:a,encodings:i}).length}},NegativeOrZeroValues:{condition:({ds:e,encodings:i})=>{const o=t({ds:e,encodings:i}),a=n({rows:o,encodings:i}),s=a,l=r({rows:a,encodings:i});return s.length!==l.length}}}}})}({layout:u});c({colorService:e,disclaimerService:w,pluginService:l,themeService:v,tooltipService:b,styleService:x})}),[i,o,r,u,a.language(),f,h.direction,p.name()]),l}function GQ({scaleKey:e,legend:t,onEdited:n}){const{layout:r}=t,{dock:i}=r||{};return{type:"brush-range",key:"legendRangeBrush",layout:{dock:"@legend-seq"},on:n?{bubbleEnd(){n()}}:{},settings:{brush:"selection",scale:`${e}Range`,direction:"left"===i||"right"===i?"vertical":"horizontal",bubbles:{align:"left"===i||"top"===i?"end":"start",placement:"outside"},target:{selector:'[id="legend-seq-target"]',fillSelector:'[id="legend-seq-ticks"]',fill:"rgba(82,204,82,0.2)"}}}}const XQ=.8,ZQ=.55,JQ=.3,QQ={CORNER_RADIUS:0,INNER_RADIUS:ZQ,STROKE:{COLOR:"#FFFFFF",WIDTH:{NONE:0,SMALL:2,MEDIUM:4,LARGE:6}}},e0=({layout:e},t,n)=>t.encodings.slice.outerRadius?{scale:"radius",fn:t=>{var r,i;let o=XQ,a=0;const s=null!==(r=null==n||null===(i=n.style)||void 0===i?void 0:i.innerRadius)&&void 0!==r?r:ZQ;e.donut.showAsDonut&&(o=XQ-s,a=s);return t.scale(Math.max(0,t.datum.radius.value))*o+a}}:XQ,t0=({layout:e},t,n)=>{var r,i;if(!e.donut.showAsDonut)return 0;const o=null!==(r=null==n||null===(i=n.style)||void 0===i?void 0:i.innerRadius)&&void 0!==r?r:ZQ;return t.encodings.slice.outerRadius?{scale:"radius",fn:e=>{const t=XQ-o,n=o;return e.scale(Math.min(0,e.datum.radius.value))*t+n}}:o},n0=({layout:e},t)=>{var n,r,i,o,a;const s=t.colorService.getDatumProps(),l=s[Object.keys(s)[0]],c=l&&l.field?l.field:void 0,u="qDimensionInfo/0"===c,d=c?t.ds.field(c).raw():null,f=d&&(d.label||d.title||d.qFallbackTitle)||"",h=t.encodings.slice.outerRadius,{formatter:p}=t.chart,m=Ng.getValue(e,"qHyperCube.qDimensionInfo",[]).length;function g(e,n){const r=t.ds.field(e).raw();return{field:e,label:!r.isCustomFormatted&&(r.qIsAutoFormat||"U"===r.qNumFormat.qType)?e=>p(n)(e.qNum):e=>e.qText}}const y=(e.components||[]).filter((e=>"slices"===e.key))[0];return{type:"pie",key:"slices",data:{extract:{field:"qDimensionInfo/0",props:{...s,num:g(t.encodings.slice.arc,"arc"),fillTooltip:c?{field:c,label:f,value:e=>u?e.qText||"-":void 0!==e.qNum&&"NaN"!==e.qNum?e.qText?e.qText:e.qNum:e.qText||"-"}:void 0,customTooltipAttrExps:0!==m?zQ.getNode(e,{dimensionCount:m}):void 0,radius:h?g(h,"outerRadius"):void 0}}},brush:{consume:[{context:"selection",data:["","fill"],style:{inactive:{opacity:.3},active:{stroke:"rgba(52, 52, 52, 0.7)",strokeWidth:2}}},{context:"highlight",data:[""],style:{inactive:{fill:"#BFDAD9"},active:{fill:"#68B2AF"}}}]},settings:{startAngle:()=>t.viewState.get("rotation"),endAngle:()=>t.viewState.get("rotation")+2*Math.PI,slice:{arc:{ref:"num"},innerRadius:t0({layout:e},t,y),fill:t.colorService.getColor(),strokeWidth:null!=y&&null!==(n=y.style)&&void 0!==n&&n.strokeWidth?QQ.STROKE.WIDTH[y.style.strokeWidth.toUpperCase()]:QQ.STROKE.WIDTH.NONE,stroke:null!==(r=null==y||null===(i=y.style)||void 0===i||null===(i=i.strokeColor)||void 0===i?void 0:i.color)&&void 0!==r?r:QQ.STROKE.COLOR,outerRadius:e0({layout:e},t,y),cornerRadius:null!==(o=null==y||null===(a=y.style)||void 0===a?void 0:a.cornerRadius)&&void 0!==o?o:0}},animations:{enabled:t.animations.enabled,isMainComponent:!0}}};function r0({layout:e},t){var n,r;const i=(e.components||[]).filter((e=>"slices"===e.key))[0],o=null!==(n=null==i||null===(r=i.style)||void 0===r?void 0:r.innerRadius)&&void 0!==n?n:ZQ,a=t.encodings.slice.outerRadius,s=t.themeService.getStyles();return!(!e.donut.showAsDonut||!a)&&{type:"pie",key:"zeroLine",data:{items:[1]},settings:{slice:{arc:1,fill:"transparent",innerRadius:0,strokeWidth:1,stroke:s.label.name.color,outerRadius:{scale:"radius",fn:e=>{const t=XQ-o,n=o;return e.scale(0)*t+n}}}},animations:{enabled:t.animations.enabled}}}function i0(e){return{type:"pie-dividers",key:"pie-dividers",layout:{displayOrder:2},settings:{component:"slices",selector:"path"},brush:{consume:[{context:"selection",style:{inactive:{opacity:.2}}}]},animations:{enabled:e.animations.enabled,trackBy:()=>Math.random()}}}function o0({layout:e},t){if(e.donut.showAsDonut||!t.encodings.slice.outerRadius)return!1;return{type:"negative-indicators",key:"negative-indicators",layout:{displayOrder:2},settings:{component:"slices",selector:"path",offset:5,size:4,fill:t.themeService.getStyles().label.name.color},brush:{consume:[{context:"selection",style:{inactive:{opacity:.2}}}]},animations:{enabled:t.animations.enabled}}}const a0=()=>({key:"area",type:"brush-area",settings:{brush:{components:[{key:"slices",contexts:["selection"],action:"add"}]}},style:{area:{fill:"transparent",strokeWidth:2,stroke:"black",strokeDasharray:"5 5",opacity:.7}}}),s0=()=>({key:"lasso",type:"brush-lasso",layout:{displayOrder:99},settings:{brush:{components:[{key:"slices",contexts:["selection"]}]},lasso:{fill:"rgba(0, 0, 0, 0)",stroke:"black",strokeWidth:2,opacity:.7,strokeDasharray:[]},snapIndicator:{threshold:75,strokeDasharray:"5, 5",stroke:"black",strokeWidth:2,opacity:.7},startPoint:{r:10,stroke:"rgba(77, 192, 78, 1)",strokeWidth:0,opacity:1}}});function l0(e){const t=e.node.desc&&e.node.desc.share;return t?e.formatter("share")(t):""}function c0(e){return e.node.data.num.label}function u0(e){return e.node.data.radius.label}function d0(e,t,n){if(e.dataPoint.auto)return n?c0:l0;if("share"===e.dataPoint.labelMode)return l0;if("value"===e.dataPoint.labelMode){return t.encodings.slice.outerRadius&&"radius"===e.dataPoint.labelValueMode?u0:c0}return null}function f0({data:e}){return e?e.label:""}function h0(e){const t=parseInt(e,10);if(!isNaN(t))return t}const p0=e=>t=>e.getContrastingColorTo(t.node.attrs.fill);function m0(e){var t,n;const r=((e&&e.components?e.components:void 0)||[]).filter((e=>"slices"===e.key))[0];return(null!==(t=null==r||null===(n=r.style)||void 0===n?void 0:n.innerRadius)&&void 0!==t?t:ZQ)>JQ}function g0({node:e,data:t}){return Eg({_share:e.desc.share,_fillColor:e.attrs.fill},t)}function y0(e,t,n){const r=t.styleService.label.name.getStyle(),i=[{padding:10,direction:t.encodings.slice.outerRadius?"rotate":"horizontal",placements:[{position:"outside",padding:t.encodings.slice.outerRadius?4:2,fill:r.fill}],fontSize:h0(r.fontSize),fontFamily:r.fontFamily,label:f0,linkData:({node:e,data:t})=>Eg({_share:e.desc.share,_fillColor:e.attrs.fill,_showTooltip:!0},t)}];if(d0(e,t,!1)){const r=function(e,t,n){return{label:d0(e,t,!1),simplifiedPlacements:[{position:e.donut.showAsDonut&&m0(e)?"inside":"into",onBackground:e.donut.showAsDonut&&m0(e),padding:4}],theme:n.theme,themeId:"object.pieChart"}}(e,t,n),o=$g(Eg(t,r),n.theme);o.linkData=g0,i.push(o)}return{key:"pie-labels",type:"labels",renderer:AE(t.flags),layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:"slices",selector:"path",strategy:{type:"slice",settings:{labels:i}}}]},brush:{consume:[{context:"selection",data:["","fill"],style:{inactive:{opacity:.3}}}]},animations:{enabled:t.animations.enabled,trackBy:()=>Math.random()}}}function v0({layout:e,context:t},n){return!1!==e.dataPoint.show&&(1===n.dataRowCount?function(e,t,n){const r=d0(e,t,!0),i=p0(n.theme),o=t.themeService.getStyles(),a=t.styleService.label.name.getStyle(),s=t.styleService.label.value.getStyle(),l=a.fill===o.label.name.color,c=s.fill===o.label.value.color;return{key:"pie-labels",type:"labels",renderer:AE(t.flags),layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:"slices",selector:"path",strategy:{type:"rows",settings:{align:.5,justify:.5,padding:10,labels:[{fontSize:h0(a.fontSize),fontFamily:a.fontFamily,fill:l&&!e.donut.showAsDonut?i:a.fill,label:f0,linkData:({data:e})=>e},{fontSize:h0(s.fontSize),fontFamily:s.fontFamily,fill:c&&!e.donut.showAsDonut?i:s.fill,label:r,linkData:({data:e})=>e}]}}}]},animations:{enabled:t.animations.enabled,trackBy:()=>Math.random()}}}(e,n,t):y0(e,n,t))}const b0=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"legendRange",enable(t,n){if(this.started||!n)return!0;if(e.constraints.select||e.constraints.active)return!1;const r=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>"legend-seq"===e.type)),i=(r||function(e){const{target:t}=e.srcEvent;return!(!t||!(t.hasAttribute("data-other-value")&&t.hasAttribute("data-idx")||"INPUT"===t.nodeName))}(n))&&!e.isLocked([this.chart.component("slices")]);return i||this.chart.component("legendRangeBrush").emit("rangeClear"),i}},events:{legendRangestart(t){t.preventDefault(),e.interactions.emit("selections-start"),this.chart.component("legendRangeBrush").emit("rangeStart",t),this.started=!0},legendRangemove(e){e.preventDefault(),this.chart.component("legendRangeBrush").emit("rangeMove",e)},legendRangeend(t){t.preventDefault(),this.chart.component("legendRangeBrush").emit("rangeEnd",t),e.onSelect(),this.started=!1}}});function x0(e,t){const n=t.element.getBoundingClientRect();let r,i;return e.center?(({x:r}=e.center),({y:i}=e.center)):(r=e.clientX,i=e.clientY),{x:r-n.left,y:i-n.top}}function w0(e,t){const n=t.component("slices");if(!n)return!1;const{x:r,y:i}=x0(e,t),o=n.rect.x+n.rect.margin.left+n.rect.width/2,a=n.rect.y+n.rect.margin.top+n.rect.height/2,s=Math.min(n.rect.width,n.rect.height)/2*XQ;return(o-r)**2+(a-i)**2<=s**2}const k0=(e,t,{requireFailure:n,recognizeWith:r}={})=>({type:"Tap",requireFailure:n,recognizeWith:r,options:{event:"tap",interval:10,pointers:1,enable(t,n){return!n||!e.constraints.select&&!e.constraints.active&&(this.components=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).filter((e=>"slices"===e.key||"legend-cat"===e.key||"pie-labels"===e.key)),this.components.length)}},events:{tap(n){n.preventDefault();const{target:r}=n.srcEvent;if(r&&("INPUT"===r.nodeName||r.hasAttribute("data-other-value")))return void this.chart.component("legendRangeBrush").emit("bubbleStart",n);if(r&&r.hasAttribute("data-action")&&r.hasAttribute("data-component-key"))return void this.chart.component(r.getAttribute("data-component-key")).emit(r.getAttribute("data-action"));if(r&&r.children&&r.children[0]&&"legend-cat"===r.children[0].getAttribute("data-component-key"))return;if(e.isLocked(this.components))return;e.interactions.emit("selections-start");let i=x0(n,this.chart);this.components.some((e=>"legend-cat"===e.key))&&(i={cx:i.x,cy:i.y,r:5});const o=this.chart.shapesAt(i,{components:[{key:"slices",propagation:"stop"},{key:"legend-cat",propagation:"stop"},{key:"pie-labels",propagation:"stop"}],propagation:"stop"});o.length&&(this.chart.brushFromShapes(o,{components:[{key:o[0].key,action:n.srcEvent.ctrlKey||t?"set":"toggle",contexts:["selection"]}]}),e.onSelect())}}}),S0=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"lasso",enable(t,n){if(this.isStarted||!n)return!0;if(e.constraints.active||e.constraints.select||!e.interactions.lasso.active())return!1;const r=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y});return!e.isLocked(r)&&r.some((e=>"slices"===e.key))}},events:{lassostart(t){t.preventDefault(),e.constraints.select||e.constraints.active||this.isStarted||(e.interactions.emit("selections-start"),this.chart.component("lasso").emit("lassoStart",t),this.isStarted=!0)},lassomove(e){e.preventDefault(),this.chart.component("lasso").emit("lassoMove",e)},lassoend(t){t.preventDefault(),this.isStarted=!1,this.chart.component("lasso").emit("lassoEnd",t),e.onSelect()}}}),C0=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Tap",requireFailure:t,recognizeWith:n,options:{event:"areatap",pointers:2,enable(t,n){if(this.started||!n)return!0;if(e.constraints.active||e.constraints.select)return!1;const r=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y});return r.some((e=>"slices"===e.key))&&!e.isLocked(r)}},events:{areatap(t){const n=this.chart.component("area");n&&!this.started&&(e.interactions.emit("selections-start"),n.emit("areaStart",t.pointers[0]),n.emit("areaMove",t.pointers[1]),this.started=!0,setTimeout((()=>{n.emit("areaEnd"),e.onSelect(),this.started=!1}),100)),t.preventDefault()}}});function M0(e){return{type:"native",key:"theusual",events:{wheel(t){let n=!1;if(!e.constraints.active&&w0(t,this.chart)){const r=Math.sign(-t.deltaY);e.viewState.set("rotation",r*(Math.PI/12)),n=!0}else if(!e.constraints.select&&!e.constraints.active){const e=this.chart.componentsFromPoint(t).filter((e=>"legend-cat"===e.key))[0];e&&(n=!0,function(e,t){const n=(Math.abs(e.deltaX)>Math.abs(e.deltaY)?e.deltaX:e.deltaY)>=0?"next":"prev";t.emit(n)}(t,e))}n&&t.preventDefault()}}}}const E0=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"rotate",pointers:1,threshold:10,enable(t,n){return!(!this.started&&n)||!e.constraints.active&&!e.interactions.lasso.active()&&w0(n,this.chart)}},events:{rotatestart(e){e.preventDefault();const t=this.chart.component("slices").rect,n=this.chart.element.getBoundingClientRect();this.pieCenter={x:n.left+t.x+t.width/2,y:n.top+t.y+t.height/2},this.prevAngle=Math.atan2(e.center.y-this.pieCenter.y,e.center.x-this.pieCenter.x),this.started=!0},rotatemove(t){t.preventDefault();const n=Math.atan2(t.center.y-this.pieCenter.y,t.center.x-this.pieCenter.x);e.viewState.set("rotation",n-this.prevAngle),this.prevAngle=n},rotateend(e){e.preventDefault(),this.started=!1},rotatecancel(e){e.preventDefault(),this.started=!1}}}),_0=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"legendPan",pointers:1,threshold:10,enable(t,n){return!(!this.isStarted&&n)||!e.constraints.active&&this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>"legend-cat"===e.type))}},events:{legendPanstart(e){if(e.preventDefault(),!this.isStarted){this.components=this.chart.componentsFromPoint({x:e.center.x,y:e.center.y}),this.components.forEach((t=>{t.emit("panstart",e)})),this.isStarted=!0;const t=this.chart.component("tooltip");t&&t.show&&t.emit("hide")}},legendPanmove(e){this.components.forEach((t=>{t.emit("panmove",e)})),e.preventDefault()},legendPanend(e){e.preventDefault(),this.components.forEach((t=>{t.emit("panend",e)})),this.isStarted=!1}}}),D0=(e,t,n)=>({key:"hammered",type:"hammer",enable:!0,gestures:t?[E0(e,{}),k0(e,t,{}),...n]:[b0(e,{}),C0(e,{}),E0(e,{}),S0(e,{}),_0(e,{}),k0(e,t,{}),...n]});function q0(e,t,n){const r=e.getIsSingleSelect(0),{constraints:i}=n;if(i.active&&i.passive)return[];const o=t.tooltipService.getInteractions();return[D0(t,r,o.gestures),M0(t),o.native]}function T0({settings:e},t){const n={share:{type:"d3-number",format:".1%"},arc:{data:{field:t.encodings.slice.arc}},fill:e.scales.fill&&e.scales.fill.data&&e.scales.fill.data.field?{data:{field:e.scales.fill.data.field}}:{}};return t.encodings.slice.outerRadius&&(n.outerRadius={data:{field:t.encodings.slice.outerRadius}}),n}function R0({layout:e},t,n){if(!e.dimensionTitle)return!1;const r=t.properties,i=t.styleService.axis.title.getStyle();return{key:"dimension-title",type:"data-title",layout:{minimumLayoutMode:"SMALL",dock:"top"},settings:{hyperCube:e.qHyperCube,hyperCubeDef:r&&r.qHyperCubeDef,isDimension:!0,disabled:()=>n.constraints.active||!n.model,model:t.model,app:t.app,translator:t.translator,rtl:n.rtl,selections:t.selections,isEnabled:t.flags.isEnabled},style:{fontFamily:i.fontFamily,fontSize:i.fontSize,color:i.color}}}function N0({layout:e,context:t,selectionService:n},r={}){const i=function({layout:e}={},t={}){const n={};return Eg(n,t.colorService.getScales()),t.encodings.slice.outerRadius&&Eg(n,function({layout:e},t){const n={radius:{type:"linear",include:[0],data:{extract:{field:t.encodings.slice.outerRadius}}}};return e.donut.showAsDonut||(n.radius.min=0),n}({layout:e},t)),n}({layout:e},r),o={scales:i};let a=[];const s=function(e,t){const n=e.disclaimerService.getDisclaimer();if(!n)return!1;const{rtl:r}=t,{translator:i}=e,{fontFamily:o}=e.themeService.getStyles();return{key:"disclaimer",type:"disclaimer",layout:{dock:n.alignment},settings:{isRTL:r,label:i.get(`Object.Disclaimer.${n.key}`)},style:{fontFamily:o}}}(r,t);if(r.disclaimerService.getHasSuppressingDisclaimer())return{components:[s]};const l=t.constraints.select||t.constraints.active,c=r.colorService.getLegend({eventName:"legend",key:"legend",viewState:r.viewState,chart:r.chart,styleReference:"object.pieChart",styleOverrides:{title:r.styleService.legend.title.getStyle(),label:r.styleService.legend.label.getStyle()},rtl:t.rtl},{navigationDisabled:l});return i.fillRange&&c.components[0]&&("right"===c.components[0].layout.dock||"left"===c.components[0].layout.dock||t.rtl)&&(i.fillRange.invert=!0),a=[n0({layout:e,settings:o},r),r0({layout:e},r),i0(r),o0({layout:e},r),R0({layout:e},r,t),...c.components,GQ({settings:o,scaleKey:"fill",legend:c.components[0]||{},onEdited:r.onSelect}),s0(),a0(),v0({layout:{components:e.components,dataPoint:Eg({},e.dataPoint,{show:!(e.effectPath&&e.snapshotData&&!1===e.dataPoint.show)}),donut:e.donut},context:t},r),...r.tooltipService.getComponents(),s],a=a.filter((e=>!1!==e)),{interactions:q0(n,r,t),scales:i,components:r.pluginService.extendComponents(a),palettes:r.colorService.getPalettes(),formatters:T0({settings:o},r),strategy:Tg(0,r)}}function O0({instance:t,services:n,picasso:r,flags:i}){const o=e.useOptions(),a=e.useModel(),s=e.useApp(),l=e.useTranslator(),c=e.useTheme(),u=e.useStaleLayout(),d=e.useSelections(),f=e.useConstraints(),{qLocaleInfo:h}=e.useAppLayout(),[p]=e.usePromise((()=>{if(!n)return Promise.resolve();BQ.attrExpr.updateProperties(a,u);return Promise.all([n.colorService.initialize({createConfig:({getUseBaseColors:e})=>({theme:c,legendProps:u.legend,layout:u,localeInfo:h,hc:u.qHyperCube,colorProps:{...u.color,useBaseColors:e(u)}})}),a&&!u.snapshotData?a.getEffectiveProperties():Promise.resolve({}),n.pluginService.initialize()])}),[n]);e.useEffect((()=>{null!=t&&t.selectionService&&t.selectionService.setLayout(u)}),[u]),e.useEffect((()=>{if(!t||!p)return;const{chart:e,viewState:m,interactions:g,viewCache:y}=t,{colorService:v,disclaimerService:b,pluginService:x,themeService:w,tooltipService:k,styleService:S}=n,C=o.viewState||{};u.snapshotData||(m.preventSet("legendScrollOffset",C.legendScrollOffset||0),m.preventSet("rotation",C.rotation||0)),function(e,t){e&&e.snapshotData&&e.snapshotData.content&&e.snapshotData.content.chartData&&(t.preventSet("legendScrollOffset",e.snapshotData.content.chartData.legendScrollOffset),t.preventSet("rotation",e.snapshotData.content.chartData.rotation))}(u,m),k.expando.set("properties",p[1]);const M=r.data("q")({key:"qHyperCube",data:u.qHyperCube,config:{localeInfo:h}}),E=[{type:"q",key:"qHyperCube",data:u.qHyperCube,config:{localeInfo:h}},...v.getData()],_={slice:{arc:"qMeasureInfo/0"}};u.qHyperCube.qMeasureInfo.length>1&&(_.slice.outerRadius="qMeasureInfo/1"),b.initialize({args:{ds:M,encodings:_}});const D=function(e,t){if(t.slice.outerRadius)return e.extract({field:"qDimensionInfo/0",props:{num:{field:t.slice.arc},radius:{field:t.slice.outerRadius}}}).filter((e=>e.num.value>0&&"NaN"!==e.radius.value)).length;return e.extract({field:"qDimensionInfo/0",props:{num:{field:t.slice.arc}}}).filter((e=>e.num.value>0)).length}(r.data("q")({data:u.qHyperCube,config:{localeInfo:h}}),_),q=d?()=>{const t=e.brush("selection");hg.selections(t,{},u).forEach((e=>{d.select(e)}))}:()=>{},T=u.snapshotData&&!o.freeResize?{width:(u.snapshotData.content.size||u.snapshotData.object.size).w,height:(u.snapshotData.content.size||u.snapshotData.object.size).h}:void 0,R=e=>t.selectionService.getIsSelectionLocked(e),N=()=>N0({layout:u,context:{rtl:"rtl"===o.direction,theme:c,translator:l,constraints:f,model:a},selectionService:t.selectionService},{picasso:r,ds:M,model:a,app:s,chart:e,onSelect:q,isLocked:R,interactions:g,constraints:f,translator:l,viewState:m,dataRowCount:D,encodings:_,colorService:v,disclaimerService:b,pluginService:x,themeService:w,styleService:S,tooltipService:k,debouncer:PS,properties:p[1],logicalSize:T,flags:i,animations:{enabled:()=>function({viewState:e,options:t,viewCache:n,layout:r,chart:i}){return!1!==t.chartAnimations&&n.get("chartWidth")===i.element.clientWidth&&n.get("chartHeight")===i.element.clientHeight&&n.get("hasZeroLine")===!!i.component("zeroLine")&&0===e.get("rotation")&&!OE.propertiesHaveChanged({viewCache:n,layout:r})}({viewState:m,options:o,layout:u,viewCache:y,chart:e})}});t.generateSettings=N;const O=N();e.update({data:E,settings:O}),y.set("chartWidth",e.element.clientWidth),y.set("chartHeight",e.element.clientHeight),y.set("hasZeroLine",O.components.filter((e=>"zeroLine"===e.key)).length>0),OE.cacheProperties({viewCache:y,layout:u}),o.effect&&u.effectProperties?o.effect.update(u,e,{encodings:_}):u.effectPath||e.brush("highlight").end()}),[t,p,o.direction,o.effectProperties,f,c.name(),l.language()])}const A0="legend-cat";function P0({instance:t,services:n}){const r=e.useElement(),i=e.useStaleLayout();e.onTakeSnapshot((e=>{if(!(i.snapshotData&&i.snapshotData.content&&i.snapshotData.content.chartData)&&(function(e,t){const n=t.getBoundingClientRect();e.snapshotData=e.snapshotData||{},e.snapshotData.content=e.snapshotData.content||{},e.snapshotData.content.size=e.snapshotData.content.size||{w:n.width,h:n.height}}(e,r),t&&n))return function({layout:e,chart:t,viewState:n,colorService:r}){return e.snapshotData.content=e.snapshotData.content||{},e.snapshotData.content.chartData={legendScrollOffset:Og(t,A0),rotation:n.get("rotation")},r.getSnapshotData().then((t=>{e.snapshotData.content.chartData={...e.snapshotData.content.chartData,...t}})).catch((()=>{}))}({layout:e,chart:t.chart,colorService:n.colorService,viewState:t.viewState})})),e.useImperativeHandle((()=>({getViewState:()=>({rotation:t.viewState.get("rotation"),legendScrollOffset:Og(t.chart,"legend-cat")})})),[t])}var I0={exports:{}};!function(e,t){self,e.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,c,u,d=arguments[0],f=1,h=arguments.length,p=!1;for("boolean"==typeof d&&(p=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<h;++f)if(null!=(t=arguments[f]))for(n in t)r=l(d,n),d!==(i=l(t,n))&&(p&&i&&(a(i)||(c=o(i)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&a(r)?r:{},s(d,{name:n,newValue:e(p,u,i)})):void 0!==i&&s(d,{name:n,newValue:i}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,c,u,d=arguments[0],f=1,h=arguments.length,p=!1;for("boolean"==typeof d&&(p=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<h;++f)if(null!=(t=arguments[f]))for(n in t)r=l(d,n),d!==(i=l(t,n))&&(p&&i&&(a(i)||(c=o(i)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&a(r)?r:{},s(d,{name:n,newValue:e(p,u,i)})):void 0!==i&&s(d,{name:n,newValue:i}));return d}}},n={};function r(t){var i=n[t];if(void 0!==i)return i.exports;var o=n[t]={exports:{}};return e[t](o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};(()=>{r.r(i),r.d(i,{default:()=>Re});var e=r(229),t=r.n(e);const n=function(e,t,n){if(!t)return!1;var r,i=t.split("."),o=i[i.length-1],a=e;for(r=0;r<i.length-1;++r)void 0===a[i[r]]&&(a[i[r]]=Number.isNaN(+i[r+1])?{}:[]),a=a[i[r]];if(void 0!==n){var s=a[o];return a[o]=n,{updated:n,previous:s}}return delete a[o],!1},o=function(e,t,n){var r,i=t.split("."),o=e;if(void 0===o)return n;for(r=0;r<i.length;++r){if(void 0===o[i[r]])return n;o=o[i[r]]}return o},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var s="".concat(" ","(").concat(" "),l="".concat(" ",")").concat(" ");function c(e){return s+e+l}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,i=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===i)return r;if(r.qDerivedFieldData)for(var o=0;o<r.qDerivedFieldData.qDerivedFieldLists.length;++o)for(var a=r.qDerivedFieldData.qDerivedFieldLists[o],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===i)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return r&&r.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function f(e,t){var n=e.crossAllDimensions;return 2===t&&n?"RowNo(Total)":"RowNo()"}function h(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function p(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(e,t){var n=e.crossAllDimensions;return 2===t&&n?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function y(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(y("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(y("MaxString(".concat(t,")")),")'\"}")}function b(e){var t=e.modifier,n=void 0===t?{}:t,r=e.dimensions,i=e.dimensionAndFieldList,o=e.funcComp,a=void 0===o?"Sum":o,s=e.valueComp,l=void 0===s?"0":s;if(!n.showExcludedValues)return"";if(r&&1===r.length){var c=v(u(r[0],i),p(0));return"".concat(a,"({1<").concat(c,">}").concat(l,")")}if(r&&2===r.length){var d=u(r[0],i),f=u(r[1],i),h=p(0),m=p(1),g=v(d,h),y=v(f,m);return"".concat(a,"({1<").concat(g,",").concat(y,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function x(e){return"".concat(e,"(")}function w(e){var t=e.properties,n=e.layout;return o(t,"qHyperCubeDef.qDimensions",o(n,"qHyperCube.qDimensionInfo",[])).length}const k={isFullRange:d,getNumDimensions:w,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,i=e.dimensionAndFieldList,o=e.treatMissingAsNull,a=c(h(t));if(!n.showExcludedValues)return a;var s=b({modifier:n,dimensions:r,dimensionAndFieldList:i}),l=o?"":", 0";if(r&&1===r.length){var u=p(0);return"If(Count(".concat(u,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(r&&2===r.length){var d=p(0),f=p(1);return"If(Count(".concat(d,") * Count(").concat(f,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:f,getNumStepComp:function(e,t){if(!d(e)){var n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return f(e,t)},getAboveCompPrefix:m,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return m(e,t)+n+g(r)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:b,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,i=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===i&&2===w({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=p(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var i=["Descending","Ascending"],o=n.qSortByNumeric?"(Numeric, ".concat(i[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(i[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(o,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(o,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:h,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(s);if(-1!==n){var r=t.indexOf(l);if(-1!==r)return t.substring(n+s.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach((function(n){void 0===e[n]&&(e[n]=t[n])}))},isNumeric:u,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,i=void 0===r?1:r,o=e.maxDimensions,a=void 0===o?2:o;if(!t&&!n)return!0;var s=w({properties:t,layout:n});return s>=i&&s<=a},getExpressionWithMarkers:c,canExtract:function(e){var t=e.indexOf(s),n=e.indexOf(l);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:p,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,n){var r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var i=n.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));i&&t!==i.qDef.qLabel&&(r=i.qLibraryId||i.qDef.base.qLibraryId?"[".concat(i.qDef.qLabel,"]"):i.qDef.base.qDef);var o=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);r=r.startsWith("=")?r.substr(1):r,r="".concat(o,"(").concat(r,", ").concat(e.steps,")")}return r},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[n]&&r.includes(a.EXPRESSIONS[n].toLowerCase())&&(t=n),n})),t}};function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function C(e){return C="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},C(e)}var M=t().bind(null,!0),E={},_=Array.isArray;function D(e){return null!=e&&!Array.isArray(e)&&"object"===C(e)}function q(e){return void 0===e}function T(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function R(e,t){var n,r=t.substring(1).split("/").slice(0,-1);return r.forEach((function(t,i){if(i!==r.length){n=+t;var o=Number.isNaN(n)?{}:[];e[n||t]=q(e[n||t])?o:e[t],e=e[n||t]}})),e}function N(e,t){var n=!0;if(D(e)&&D(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(r){N(e[r],t[r])||(n=!1)})),n);if(_(e)&&_(t)){if(e.length!==t.length)return!1;for(var r=0,i=e.length;r<i;r+=1)if(!N(e[r],t[r]))return!1;return!0}return e===t}E.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach((function(i){var o=function(e){return e?M({},{val:e}).val:e}(t[i]),a=e[i],s="".concat(n,"/").concat(i);N(o,a)||T(t,i)||(q(a)?r.push({op:"add",path:s,value:o}):D(o)&&D(a)?r=r.concat(E.generate(a,o,s)):_(o)&&_(a)?r=r.concat(function(e,t,n){var r=[],i=e.slice(),o=-1;function a(e,t,n){if(e[n]&&q(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,i=e.length;r<i;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(N(t,i))return r;if(!q(t[0])&&q(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var s=i.length-1;s>=0;s-=1)-1===(o=a(t,i[s].qInfo&&i[s].qInfo.qId,s))?(r.push({op:"remove",path:"".concat(n,"/").concat(s)}),i.splice(s,1)):r=r.concat(E.generate(i[s],t[o],"".concat(n,"/").concat(s)));for(var l=0,c=t.length;l<c;l+=1)-1===(o=a(i,t[l].qInfo&&t[l].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(l),value:t[l]}),i.splice(l,0,t[l])):o!==l&&(r.push({op:"move",path:"".concat(n,"/").concat(l),from:"".concat(n,"/").concat(o)}),i.splice(l,0,i.splice(o,1)[0]));return r}(a,o,s)):r.push({op:"replace",path:"".concat(n,"/").concat(i),value:o}))})),Object.keys(e).forEach((function(i){q(t[i])&&!T(e,i)&&r.push({op:"remove",path:"".concat(n,"/").concat(i)})})),r},E.apply=function(e,t){t.forEach((function(t){var n,r,i=R(e,t.path),o=t.path.split("/").splice(-1)[0],a=o&&Number.isNaN(+o)?i[o]:i[+o]||i,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(i=null,a=e),"add"===t.op||"replace"===t.op)if(_(i))"-"===o&&(o=i.length),i.splice(+o,"add"===t.op?0:1,t.value);else if(_(a)&&_(t.value)){var l,c=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return S(e)}(r=c)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return S(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?S(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(D(a)&&D(t.value))n=a,Object.keys(n).forEach((function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!T(n,e)&&delete n[e]})),M(a,t.value);else{if(!i)throw new Error("Patchee is not an object we can patch");i[o]=t.value}else if("move"===t.op){var u=R(e,t.from);_(i)?i.splice(+o,0,u.splice(+s,1)[0]):(i[o]=u[s],delete u[s])}else"remove"===t.op&&(_(i)?i.splice(+o,1):delete i[o])}))},E.clone=function(e){return M({},e)},E.createPatch=function(e,t,n){var r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},E.updateObject=function(e,t){Object.keys(e).length?E.apply(e,E.generate(e,t)):M(e,t)};const O=E,A=function(e,n,r){if(!e)return Promise.resolve();var i=O.generate(n,r);return t()(!0,n,r),i&&i.length?(i=i.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(i,!0)):Promise.resolve()};var P="accumulation";function I(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===P)return n[r]}function L(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===P)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var z={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const F={translationKey:"properties.modifier.accumulation",needDimension:k.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return k.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=k.getNumDimensions({properties:r,layout:i}));var c=o(r,"qHyperCubeDef.qDimensions",[]),u=k.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:s}),d=k.getNumStepComp(n,l),f=k.getAboveComp(n,l,u,d),h=k.getRangeComp("RangeSum",f);if(k.needDimension({modifier:n,properties:r,layout:i})){var p=k.getDimComp(c,1),m=k.getDimComp(c,0),g=k.getAggrComp(h,p,m);h=n.showExcludedValues?k.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,valueComp:g}):g}return h},extractInputExpression:k.extractInputExpression,initModifier:function(e){k.initModifier(e,z)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!k.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(L(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(L(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(L(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(L(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=I(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=I(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(L(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return k.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(P))return!1;var o=I(t,e);return o&&!o.disabled}};return n}};var j="movingAverage";function $(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===j)return n[r]}function H(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===j)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var V={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const B={translationKey:"properties.modifier.movingAverage",needDimension:k.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return k.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,i=e.properties,a=e.layout,s=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return n;var c=s;void 0===c&&(c=k.getNumDimensions({properties:i,layout:a}));var u=o(i,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,f=k.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:u,dimensionAndFieldList:l,treatMissingAsNull:d}),h=k.getNumStepComp(r,c),p=k.getAboveComp(r,c,f,h);if(r.nullSuppression)t=k.getRangeComp("RangeAvg",p);else{var m=k.getRangeComp("RangeSum",p),g=function(e,t){var n=k.getRowNoComp(e,t);if(!k.isFullRange(e)){var r=e.steps,i="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(i,", ").concat(n,")")}return n}(r,c);t="".concat(m," / ").concat(g)}var y=t;if(k.needDimension({modifier:r,properties:i,layout:a})){var v=k.getDimComp(u,1),b=k.getDimComp(u,0),x=k.getAggrComp(y,v,b);y=r.showExcludedValues?k.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return y},extractInputExpression:k.extractInputExpression,initModifier:function(e){k.initModifier(e,V)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!k.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(H(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(H(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(H(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(H(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=$(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=$(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(H(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(H(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return k.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(j))return!1;var o=$(t,e);return o&&!o.disabled}};return n}};var U="timeSeriesDecomposition";function W(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===U)return n[r]}function Y(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===U)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var K={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const G={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:k.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return k.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?k.generateTSDExpression(n,t,r):t},extractInputExpression:k.extractInputExpression,initModifier:function(e,t){k.initModifier(e,K),""===e.decomposition&&t&&(e.decomposition=k.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!k.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(Y(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(Y(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,n){var r=W(t,e);if(r){var i=r.steps;r.steps="number"!=typeof i||Number.isNaN(i)?2:Math.abs(i),n.properties.qHyperCubeDef.qMeasures=n.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=i:e.steps=e.steps,e})),e}))}},show:function(t){var n=W(t,e);return n&&!n.fullRange}}},show:function(e,t){return k.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(U))return!1;var o=W(t,e);return o&&!o.disabled}};return n}};var X="difference";function Z(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===X)return n[r]}function J(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===X)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:k.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return k.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:k.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=k.getNumDimensions({properties:r,layout:i}));var c=o(r,"qHyperCubeDef.qDimensions",[]),u=k.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:s}),d=k.getAboveComp(n,l,u),f="".concat(u," - ").concat(d);if(k.needDimension({modifier:n,properties:r,layout:i})){var h=k.getDimComp(c,1),p=k.getDimComp(c,0),m=k.getAggrComp(f,h,p);f=n.showExcludedValues?k.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:m}):m}return f},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!k.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(J(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(J(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(J(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return k.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(X))return!1;var o=Z(t,e);return o&&!o.disabled}};return n}};var te="normalization";function ne(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===te)return n[r]}function re(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===te)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function ie(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var oe={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,n){return 1===e?"{$<".concat(k.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ce(e,t,n){return 0===e&&t>1?"<".concat(k.getDimDefWithWrapper(n),">"):""}const ue={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return k.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:k.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=k.getNumDimensions({properties:r,layout:i}));var c=o(r,"qHyperCubeDef.qDimensions",[]),u=k.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:s}),d=n.selectionScope,f=n.dimensionalScope;return function(e,t,n,r,i,o,a){var s=ae(t),l=se(t,n,r),c=""===s&&""===l?"":s||l,u=le(i,o),d=ce(i,o,a),f=function(e){for(var t=[],n=0;n<e;n++)t[n]=k.getDimDefWithWrapper(n);return t.join(", ")}(o);return"".concat(e,"/ Sum(").concat(c," ").concat(u).concat(d," Aggr(").concat(c," ").concat(e,", ").concat(f,"))")}(u,d,n.field,n.value,f,l,n.primaryDimension)},initModifier:function(e){Object.keys(oe).forEach((function(t){void 0===e[t]&&(e[t]=oe[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!k.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(re(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(n){return function(e,t,n){var r=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return r=function(e,t,n){if(1===e){var r=ie(t,0);t.splice(r,1)}return t}(ne(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(re(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===ne(t,e).selectionScope}},value:{refFn:function(t){return"".concat(re(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===ne(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(re(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(n,r){return function(e,t,n,r){var i=t.layout.qHyperCube.qDimensionInfo.length,o=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===i?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===i?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===i?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===i?"disregardAllDimensions":"disregardDimension",".tooltip")}];return o=function(e,t,n){if(e<2){var r=ie(t,0);t.splice(r,1)}return t}(i,o),o=function(e,t,n){if(0===e){var r=ie(t,1);t.splice(r,1)}return t}(ne(e,r).selectionScope,o),o}(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(re(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,n){return 0===(ne(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return k.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(te))return!1;var o=ne(t,e);return o&&!o.disabled}};return n},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ce};var de="qDef.base",fe="qDef.qDef",he="qDef.base.qDef",pe="qLibraryId",me="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=o(e,he);return void 0!==t?t:o(e,fe)},getExpressionRef:function(e){return void 0!==o(e,he)?he:fe},getLibraryIdRef:function(e){return o(e,me)?me:pe},getLibraryId:function(e){return o(e,me)||o(e,pe)},getLabelRef:function(e){return o(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return o(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var ye="qDef.qDef",ve="qDef.base.qDef",be="qLibraryId",xe="qDef.base.qLibraryId",we="qDef.qLabel",ke="qDef.qLabelExpression",Se="qDef.base.qLabel",Ce="qDef.base.qLabelExpression",Me="qDef.qAggrFunc",Ee="qDef.base.qAggrFunc",_e={initBase:function(e,t){(t||_e.isValid(e))&&(n(e,ve,o(e,ye)),n(e,xe,o(e,be)),n(e,Se,o(e,we)),n(e,Ce,o(e,ke)))},restoreBase:function(e){_e.isValid(e)&&(n(e,ye,o(e,ve)),n(e,be,o(e,xe)),n(e,we,o(e,Se)),n(e,ke,o(e,Ce)),o(e,Me)&&o(e,Ee)&&n(e,Me,o(e,Ee)),delete e.qDef.base)},isValid:function(e){var t=o(e,ve),n=o(e,xe);return void 0!==t||void 0!==n}};const De=_e;function qe(e){return qe="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},qe(e)}var Te={accumulation:F,movingAverage:B,difference:ee,normalization:ue,timeSeriesDecomposition:G};const Re={modifiers:Te,apply:Oe,applyModifiers:Ae,cleanUpMeasure:Pe,destroy:function(e){e&&Ne[e.id]&&Ne[e.id].masterItemSubscriber&&(Ne[e.id].masterItemSubscriber&&Ne[e.id].masterItemSubscriber.unsubscribe(),delete Ne[e.id])},hasActiveModifiers:Ie,getActiveModifier:Le,initBase:De.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Te[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return Te[e]&&Te[e].isApplicable({properties:n,layout:r})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,i=!1,o=!1;return t.forEach((function(e){var t=je(e);Ye({modifiers:t,properties:n,layout:r})&&(i=!0,o=o||Je({modifiers:t,properties:n,layout:r}))})),i&&!o},ifEnableTotalsFunction:ze};var Ne={};function Oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,i=e.isSnapshot,a=void 0!==i&&i,s=e.masterItem,l=!1;Ne[n.id]=Ne[n.id]||{isFirstTime:!0};var c=Ne[n.id].isFirstTime;if(Ne[n.id].isFirstTime=!1,r&&"object"===qe(r))return Ae({model:n,properties:r});var u=n?n.layout:void 0,d=o(u,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var f=o(u,"qHyperCube.qMeasureInfo"),h=Ne[n.id].lastReloadTime;if(Ne[n.id].lastReloadTime=o(n,"app.layout.qLastReloadTime"),Ie({measures:f,layout:u})){var p=function(e){var t=e.measures,n=e.layout,r=e.lastReloadTime;return o(e.model,"app.layout.qLastReloadTime")!==r&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return We({measure:e,properties:n,layout:r})}))}({measures:t,layout:n})}({measures:f,layout:u,model:n,lastReloadTime:h});return p||function(e){var t=e.measures,n=e.layout,r=e.masterItem,i=e.isFirstTime;return!!Array.isArray(t)&&(i||r||t.some((function(e){return function(e){var t=e.measure,n=e.layout;return Ye({modifiers:je(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})})))}({measures:f,layout:u,masterItem:s,isFirstTime:c})?n.getEffectiveProperties().then((function(e){var r=t()(!0,{},e);He(r);var i=Qe(r);return Ke({model:n}).then((function(t){return Ge({libraryIds:i,model:n}).then((function(i){return p&&function(e){var t=e.properties;Fe(t).forEach((function(e){return function(e){var t=e.measure;if(We({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach((function(e){if("object"===qe(e)&&!e.disabled){if(n++,"object"!==qe(Te[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(n>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var r=Te[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&Be(t)&&k.simplifyExpression(t.qDef.base.qDef)!==k.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}({properties:r}),Ae({model:n,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:s,libraryItemsProps:i,dimensionAndFieldList:t})}))}))})):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===qe(e.base)}))}(f)?n.getEffectiveProperties().then((function(e){return function(e){var n=e.model,r=e.properties,i=Qe(r);return et({model:n,libraryIds:i}).then((function(){var e=t()(!0,{},r);return Fe(r).forEach((function(e){return Pe(e)})),Ze({oldProperties:e,newProperties:r,model:n})}))}({model:n,properties:e})})):Promise.resolve(l)}function Ae(e){var n=e.model,r=e.oldProperties,i=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,c=e.masterItem,u=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=l?t()(!0,{},i):i),He(i);var f=Qe(i);return et({model:n,libraryIds:f,masterItem:c}).then((function(){return function(e){var n=e.measures,r=e.properties,i=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(n||(n=Fe(r)),!n.length)return Promise.resolve();if(!Ie({measures:n,properties:r}))return n.forEach((function(e){return Pe(e)})),Promise.resolve();var l=a?void 0:Qe(r);return Ke({model:i,dimensionAndFieldList:s}).then((function(e){return Ge({libraryIds:l,model:i,libraryItemsProps:a}).then((function(i){n.forEach((function(n){Ye({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,i=e.libraryItemsProps,a=e.dimensionAndFieldList,s=0;De.isValid(n)||De.initBase(n,!0);var l=n.qDef,c=l.modifiers,u=l.base;Array.isArray(c)&&c.forEach((function(e){if("object"===qe(e)&&!e.disabled){if(s++,"object"!==qe(Te[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(s>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Te[e.type].initModifier(e,n);var l=n.qLibraryId||u&&u.qLibraryId;l?function(e){var n=e.measure,r=e.modifier,i=e.properties,o=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:Te[r.type].generateExpression({expression:s,modifier:r,properties:i,dimensionAndFieldList:o});r.outputExpression=l,n.qDef.qDef=r.outputExpression,(n.qDef.qLabel||a.qMeasure.qLabel)&&(n.qDef.qLabel=a.qMeasure.qLabel),(n.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(n.qDef.qLabelExpression=a.qMeasure.qLabelExpression),n.qDef.quarantine&&n.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(n.qDef.qNumFormat=a.qMeasure.qNumFormat,n.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete n.qLibraryId,n.qDef.coloring=a.qMeasure.coloring,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,libraryId:l,properties:r,libraryItemsProps:i,dimensionAndFieldList:a}):function(e){var n=e.measure,r=e.modifier,i=e.properties,o=e.dimensionAndFieldList;"function"==typeof Te[r.type].updateModifier&&Te[r.type].updateModifier(r,i.qHyperCubeDef);var a=ge.getExpression(n),s=""===a?a:Te[r.type].generateExpression({expression:a,modifier:r,properties:i,dimensionAndFieldList:o});r.outputExpression=s,n.qDef.qDef=r.outputExpression,n.qDef.base.qLabelExpression?n.qDef.qLabelExpression=n.qDef.base.qLabelExpression:n.qDef.qLabel=n.qDef.base.qLabel||a,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,properties:r,dimensionAndFieldList:a}),function(e){var t=o(e,"qDef.qAggrFunc");"Expr"!==t||ze(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&ze(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(n)}}))}({measure:n,properties:r,libraryItemsProps:i,dimensionAndFieldList:e}),Ve(n)):Pe(n)}))}))}))}({measures:a,properties:i,model:n,libraryItemsProps:u,dimensionAndFieldList:d}).then((function(){return l?Ze({oldProperties:r,newProperties:i,model:n}):Promise.resolve(!1)}))}))}function Pe(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some((function(e){return"object"===qe(e)&&!e.disabled&&!Te[e.type]}))}(e)?De.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Ve(e)}function Ie(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ye({modifiers:je(e),properties:n,layout:r})}))}function Le(e){var t=je(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(Te[r.type]&&!r.disabled)return r}}function ze(e){var t=Le(e);return!t||Te[t.type].enableTotalsFunction(e)}function Fe(e){return o(e,"qHyperCubeDef.qMeasures",[]).concat(o(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return o(e,"outputExpression.qValueExpression.qExpr")||o(e,"outputExpression")}function He(e){Fe(e).forEach((function(e){return function(e){var n=Le(e);n&&(void 0!==n.outputExpression&&$e(n)!==e.qDef.qDef?delete e.qDef.base:!De.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)}))}function Ve(e){var t=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===qe(t)&&(t.disabled||!Te[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function Be(e){return e.base||e.qDef&&e.qDef.base}function Ue(e){var t=Be(e);return e.qLibraryId||t&&t.qLibraryId}function We(e){var t=e.measure,n=e.properties,r=e.layout;return!Ue(t)&&Ye({modifiers:je(t),properties:n,layout:r})}function Ye(e){var t=e.modifiers,n=e.properties,r=e.layout,i={};return Array.isArray(t)&&t.some((function(e){return!("object"!==qe(e)||e.disabled||!Te[e.type])&&(void 0===i[e.type]&&(i[e.type]=Te[e.type].isApplicable({properties:n,layout:r})),i[e.type])}))}function Ke(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],i={},o=t.app.getDimensionList().then((function(e){i.dimensionList=e}));r.push(o);var a=t.app.getFieldList().then((function(e){i.fieldList=e}));return r.push(a),Promise.all(r).then((function(){return i}))}function Ge(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var i=t.measureLibraryIds,o=t.dimensionLibraryIds,a={},s=[];return i.forEach((function(e){var t=n.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),o.forEach((function(e){var t=n.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),Promise.all(s).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Ze(e){var t=e.oldProperties,n=e.newProperties,r=e.model,i=JSON.stringify(o(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(o(n,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(o(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(o(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return i?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,i=t.layout;return i&&!i.qHasSoftPatches&&!i.qExtendsId&&o(i,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):A(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then((function(){return i})):Promise.resolve(i)}function Je(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===qe(e)&&!e.disabled&&Te[e.type]&&Te[e.type].needDimension({modifier:e,properties:n,layout:r})}))}function Qe(e){var t=Fe(e),n=[],r=[],i=!1;return t.forEach((function(t){var r=je(t);if(Ye({modifiers:r,properties:e})){var o=Ue(t);o&&n.push(o),i=i||Je({modifiers:r,properties:e})}})),o(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&r.push(t)})),{measureLibraryIds:n,dimensionLibraryIds:r}}function et(e){var t=e.model,n=e.libraryIds;return!e.masterItem&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(Ne[t.id].masterItemSubscriber=Ne[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},i={},a={},s={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},n=o(e,"qInfo.qType");return n&&s[n]&&s[n].forEach((function(n){t[n]=o(e,n)})),JSON.stringify(t)}function c(e){var t=e.qInfo.qId;if(r[t]){var i=l(e);r[t].properties!==i&&(r[t].properties=i,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function u(e,n){return t.app[n](e).then((function(t){r[e]={listener:t.layoutSubscribe(c),enabled:!1,properties:l(t.layout)}}))}return{subscribe:function(e){var n=e.measureLibraryIds,o=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;i={},e.measureLibraryIds.forEach((function(e){i[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:n,dimensionLibraryIds:o}),Object.keys(r).forEach((function(e){i[e]||a[e]||(r[e].listener.dispose(),delete r[e])})),t.app&&(Object.keys(i).forEach((function(e){i[e]&&!r[e]&&s.push(u(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!r[e]&&s.push(u(e,"getDimension"))}))),Promise.all(s)},unsubscribe:function(){Object.keys(r).forEach((function(e){r[e].listener.dispose()})),r={}}}}({model:t,callback:function(e){return Oe({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Ne[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),t.default=i.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{function e(t){var n,r=t;return r>9?(n=65+r-10)>90&&(n+=6):r="".concat(r).charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?e(r+1):String.fromCharCode(n)}function t(n){var r=e(n%62),i=Math.floor(n/62);return i>0?t(i)+r:r}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}n.d(r,{default:()=>He});const o={getValue:function(e,t,n){if(null==e||null==t)return n;for(var r=t.split("."),i=e,o=0;o<r.length;++o){var a=r[o];if(""!==a){if(void 0===i[a]||null===i[a])return n;i=i[a]}}return i},setValue:function(e,t,n){if(null!=e&&null!=t){for(var r=t.split("."),i=r[r.length-1],o=e,a=0;a<r.length-1;++a){var s=r[a];void 0!==o[s]&&null!==o[s]||(o[s]=Number.isNaN(+r[a+1])?{}:[]),o=o[s]}void 0!==n?o[i]=n:delete o[i]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(i(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return r;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var n=e.indexOf(t[0]);if(-1!==n){for(var r=0;r<t.length;r++){var i=e.indexOf(t[r]);if(n>i)return!1;n=i}return!0}return!1},indexAdded:function(e,t){var n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){var n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r},findItemByPropertyValue:function(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return e[r];return null}return null},findIndexByPropertyValue:u};var f=n(645),h=n.n(f);const p=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,i=n.data[0];(t=i.dimensions).push.apply(t,a(r.qDimensions));var s,l=o.getValue(r,"qLayoutExclude.qHyperCubeDef.qDimensions");l&&(s=i.excludedDimensions).push.apply(s,a(l))},m=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,i=n.data[0];(t=i.measures).push.apply(t,l(r.qMeasures));var a,s=o.getValue(r,"qLayoutExclude.qHyperCubeDef.qMeasures");s&&(a=i.excludedMeasures).push.apply(a,l(s))},g=function(e){var t=e.exportFormat,n=e.qHyperCubeDef,r=t.data[0];n.qInterColumnSortOrder||(n.qInterColumnSortOrder=[]),r.interColumnSortOrder=n.qInterColumnSortOrder.concat();var i=o.getValue(n,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");i&&d.isOrderedSubset(i,r.interColumnSortOrder)&&(r.interColumnSortOrder=i.concat())},y=function(e){var t=e.exportFormat,n=e.properties;Object.keys(n).forEach((function(e){t.properties[e]=n[e]}))},v=function(e){var t=e.exportFormat,n=e.properties;n.qLayoutExclude||(n.qLayoutExclude={}),n.qLayoutExclude.disabled&&(Object.keys(n.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=n.qLayoutExclude.disabled[e])})),delete n.qLayoutExclude.disabled),n.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===o.getValue(e,t)&&o.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(n),delete n.qLayoutExclude.changed),n.qLayoutExclude.quarantine&&!o.isEmpty(n.qLayoutExclude.quarantine)||delete n.qLayoutExclude},b=function(e){e.forEach((function(e){h().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,n){var r,i,a=o.getValue(e,t);if(!o.isAtomicValue(a))try{if((i=(i=(r=JSON.stringify(a)).match(/:\{/g))?i.length:0)>2)return;a=JSON.parse(r)}catch(e){return}o.getValue(e,"qLayoutExclude.quarantine")||o.setValue(e,"qLayoutExclude.quarantine",{});var s=o.getValue(e,"qLayoutExclude.quarantine");s[n]||(s[n]={}),s[n][t]=a}var w=n(229),k=n.n(w);function S(e,t){var n=k()(!0,{},t,e);return o.getValue(n,"qOtherTotalSpec.qOtherCounted")||o.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),o.getValue(n,"qOtherTotalSpec.qOtherLimit")||o.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function C(e,t){return k()(!0,{},t,e)}function M(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var E=Math.pow(2,53)-1;function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const q=function(e,t,n){var r="masterobject"===o.getValue(t,"properties.qInfo.qType")?"masterobject":o.getValue(n,"qInfo.qType");o.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},T=function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},R=function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},N=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},O=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},A=function(e){var t,n=e.exportFormat,r=e.maxDimensions,i=e.minDimensions,o=e.newHyperCubeDef,a=e.defaultDimension,s=n.data[0];for(t=0;t<s.dimensions.length;++t){var l=S(s.dimensions[t],a);o.qDimensions.length<r?o.qDimensions.push(l):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(l)}for(t=0;t<s.excludedDimensions.length;++t){var c=S(s.excludedDimensions[t],a);o.qDimensions.length<i?o.qDimensions.push(c):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(c)}},P=function(e){var t,n=e.exportFormat,r=e.maxMeasures,i=e.minMeasures,o=e.newHyperCubeDef,a=e.defaultMeasure,s=n.data[0];for(t=0;t<s.measures.length;++t){var l=C(s.measures[t],a);o.qMeasures.length<r?o.qMeasures.push(l):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(l)}for(t=0;t<s.excludedMeasures.length;++t){var c=C(s.excludedMeasures[t],a);o.qMeasures.length<i?o.qMeasures.push(c):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(c)}},I=function(e){var t=e.exportFormat,n=e.dataDefinition,r=void 0===n?{}:n,i=t.data[0],o=r.dimensions||{max:0},a=r.measures||{max:0},s=M(a.max,i.dimensions.length,E),l=M(a.min,i.dimensions.length,0);return{maxDimensions:M(o.max,s,E),minDimensions:M(o.min,l,0),maxMeasures:s,minMeasures:l}},L=function(e){var t=e.exportFormat,n=e.newHyperCubeDef,r=t.data[0],i=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();var o=n.qInterColumnSortOrder.length;if(o!==i)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());o!==i;)o<i?(d.indexAdded(n.qInterColumnSortOrder,o),++o):(--o,d.indexRemoved(n.qInterColumnSortOrder,o))},z=function(e){var t=e.exportFormat,n=e.initialProperties,r=e.hypercubePath,i={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(i.qLayoutExclude.quarantine=k()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?o.setValue(i,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?i[e]=t.properties[e]:i.qLayoutExclude.disabled[e]=t.properties[e]})),null===(i=k()(!0,{},n,i)).components&&(i.components=[]),i},F=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,i=e.maxMeasures,o=e.minMeasures,a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>i&&i>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>o||!i&&a.measures.length>0||!n&&a.dimensions.length>0},j=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,i=e.maxMeasures,o=e.minMeasures,a=e.newHyperCubeDef,s=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>n&&n>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>i&&i>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>o)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!i&&s.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&s.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},$=function(e){var t,n=e.newProperties,r=e.dataDefinition,i=e.hypercubePath;if(r.dimensions&&"function"==typeof r.dimensions.added){var a=o.getValue(n,i||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return _(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],s.forEach((function(e){a.qDimensions.push(e),r.dimensions.added(e,n)}))}},H=function(e){var t,n=e.newProperties,r=e.dataDefinition,i=e.hypercubePath;if(r.measures&&"function"==typeof r.measures.added){var a=o.getValue(n,i||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return D(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return D(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?D(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],s.forEach((function(e){a.qMeasures.push(e),r.measures.added(e,n)}))}},V=function(e){var t=e.measures,n=e.modifierTypes;t&&n&&h().isSupportedModifiers(n)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function B(e,t){var n=o.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!n&&(Object.keys(n).forEach((function(t){o.setValue(e,t,n[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const U={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,s=o.getValue(a,n||""),l=s.qHyperCubeDef;return l.qInterColumnSortOrder||(l.qInterColumnSortOrder=[]),p({exportFormat:i,qHyperCubeDef:l}),m({exportFormat:i,qHyperCubeDef:l}),g({exportFormat:i,qHyperCubeDef:l}),delete l.qLayoutExclude,y({exportFormat:i,properties:a}),n&&(i.properties.qHyperCubeDef=l,delete s.qHyperCubeDef),v({exportFormat:i,properties:a}),r||b(i.properties.qHyperCubeDef.qMeasures),Array.isArray(i.properties.filters)&&(x(i.properties,"filters","storedFilters"),delete i.properties.filters),i.properties.qHyperCubeDef.qContextSetExpression&&(x(i.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),i.properties.qHyperCubeDef.qContextSetExpression=""),i.properties.qHyperCubeDef.qDynamicScript&&i.properties.qHyperCubeDef.qDynamicScript.length&&(x(i.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),i.properties.qHyperCubeDef.qDynamicScript=[]),i},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=void 0===n?{}:n,i=e.dataDefinition,a=void 0===i?{}:i,s=e.defaultPropertyValues,l=void 0===s?{}:s,c=e.hypercubePath,u=e.extension,d=e.supportedFilters,f=void 0===d||d,h=e.isHCModifierSupported,p=void 0===h||h,m={qChildren:[]},g=z({exportFormat:t,initialProperties:r,hypercubePath:c}),y=o.getValue(r,c||"").qHyperCubeDef,v=o.getValue(g,c||"").qHyperCubeDef,b=I({exportFormat:t,dataDefinition:a}),x=b.maxDimensions,w=b.minDimensions,k=b.maxMeasures,S=b.minMeasures,C=l.defaultDimension,M=void 0===C?N():C,E=l.defaultMeasure,_=void 0===E?O():E;v.qDimensions.length=0,v.qMeasures.length=0,F({exportFormat:t,maxDimensions:x,minDimensions:w,maxMeasures:k,minMeasures:S})&&j({exportFormat:t,maxDimensions:x,minDimensions:w,maxMeasures:k,minMeasures:S,newHyperCubeDef:v}),A({exportFormat:t,maxDimensions:x,minDimensions:w,newHyperCubeDef:v,defaultDimension:M}),P({exportFormat:t,maxMeasures:k,minMeasures:S,newHyperCubeDef:v,defaultMeasure:_}),$({newProperties:g,dataDefinition:a,hypercubePath:c}),H({newProperties:g,dataDefinition:a,hypercubePath:c}),L({exportFormat:t,newHyperCubeDef:v}),T("qMaxStackedCells",y,v),T("qNoOfLeftDims",y,v),R("qInitialDataFetch",y,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),R("qMode",y,v,"S"),R("qReductionMode",y,v,"N"),R("qSortbyYValue",y,v),R("qIndentMode",y,v),R("qShowTotalsAbove",y,v),q(g,t,r),m.qProperty=g;var D=o.getValue(u||{},"support.modifiers");return V({measures:v.qMeasures,modifierTypes:D}),f&&B(m.qProperty,"storedFilters"),"S"===v.qMode&&p&&B(m.qProperty,"dynamicScript"),m}};var W={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function Y(e,t,n,r){t=t||[];var i=u(e,r,n),o=u(t,r,n);if(-1!==i&&-1===o){var a=e.splice(i,1);t.push(a[0])}return t}function K(e,t){return e.length!==t}const G={create:function(e,t){if(!e||!W[e])throw new Error("Attribute Expressions Util: ID required");var n={};return t&&Object.keys(t).forEach((function(e){n[e]=t[e]})),n.id=e,n.qAttribute=!0,n},moveByIdFromGroup:function(e,t,n,r,i){n=n||"qAttributeExpressions",i=i||"id";for(var o=0;o<e.length;o++){var a=e[o][n],s=t.length;if(Y(a,t,r,i),K(t,s))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return o.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return o.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},Z={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},J={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Q={scatterplot:J,"sn-scatter-plot":J,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,n){if(Array.isArray(e[t])){var r=d.findIndexByPropertyValue(e[t],"id",n);r>=0&&e[t].splice(r,1)}else e[t]=[]}function te(e,t){var n=G.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)})),t.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)}))}function ne(e,t){if(t){var n="="===t.charAt(0);e.color.altLabel=n?{qStringExpression:{qExpr:t.substr(1)}}:t}}function re(e){var t=e.properties,n=e.isDimension,r=e.dimensions,i=e.excludedDimensions,a=e.measures,s=e.label;te(r,i);var l=r[r.length-1];if(l){var c=n?o.getValue(t,"color.byDimDef"):o.getValue(t,"color.byMeasureDef"),u=o.getValue(t,"color.formatting.qNumFormat"),f=o.getValue(t,"color.formatting.isCustomFormatted");if(c){var h=G.create(G.IDMAP.COLOR_BY_ALTERNATIVE);switch(c.type){case"expression":!function(e){var t=e.attributeExpression,n=e.label,r=e.item,i=e.isDimension,o=e.qNumFormat,a=e.isCustomFormatted;t.label=n||r.label,i?t.qDef=r.key:(t.qExpression=r.key,o&&(t.qNumFormat=o,t.isCustomFormatted=a)),t.matchMeasure=r.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:h,label:s,item:c,isDimension:n,qNumFormat:u,isCustomFormatted:f});break;case"libraryItem":!function(e){var t=e.attributeExpression,n=e.measures,r=e.item,i=e.qNumFormat,o=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(n,"qLibraryId",r.key),i&&(t.qNumFormat=i,t.isCustomFormatted=o)),void 0!==r.expression?t.qExpression=r.expression:t.qLibraryId=r.key,t.colorMapRef=r.key}({attributeExpression:h,measures:a,item:c,isDimension:n,qNumFormat:u,isCustomFormatted:f})}n?(h.qSortBy={qSortByAscii:1},l.qAttributeDimensions.push(h)):l.qAttributeExpressions.push(h)}}}function ie(e,t,n,r){var i,o,a,s={};switch(e){case"dimension":n.qLibraryId?(s.type="dimension",s.name=n.qLibraryId,s.id=n.qLibraryId):(s.type="field",t?(s.name=n.label||n.qDef,s.id=n.qDef):(s.name=n.qDef.qFieldDefs[0],s.label=(a=n.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":i=function(e,t){return t?e.qLibraryId:h().measureBase.getLibraryId(e)}(n,t),i?(s.type="measure",s.name=i,s.id=i,o=function(e,t){return h().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(n,r),o&&(s.expression=o)):(s.type="expression",t?(s.name=n.label||n.qExpression,s.id=n.qExpression):(s.name=n.qDef.qDef,s.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(n)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return s}const oe={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,n,r){var i=n?"expression":t.type,o=e.color,a=o.mode,s=X.getItemLabel(t);switch(ne(e,s||""),i){case"field":a="byDimension",o.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",o.byMeasureDef={label:n||s,key:n||t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",o.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",o.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},o.formatting&&oe.useMasterNumberFormat(o.formatting)}r||(o.auto=!1,o.mode=a)}function se(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=o.getValue(e,"color.byDimDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"color.byDimDef");r.activeDimensionIndex=Math.min(r.activeDimensionIndex,n.length-1);var i=ie("dimension",!1,n[r.activeDimensionIndex]);i.activeDimensionIndex=r.activeDimensionIndex,ae(e,i)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=n[function(e,t,n){var r=o.getValue(t,"visualization"),i=n.split("."),a=Number(i[1]),s=o.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===r&&"point"===s}(n,e,t)?0:n.length-1],i=G.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(r.qAttributeDimensions,"id",i);return ae(e,ie("dimension",!!a,a||r)),!!a}(e,t))return;re({properties:e,isDimension:!0,dimensions:n,excludedDimensions:i,measures:r,label:o.getValue(e,"color.byDimDef.label")})}const le=function(e,t,n){o.setValue(e,t,n),o.isAtomicValue(n)&&function(e,t,n){var r=e.qLayoutExclude;r&&(r.changed||(r.changed={}),r.changed[t]={from:o.getValue(e,t),to:n})}(e,t,n)},ce=function(e,t){var n={primary:!0};if(e){var r=(Q[t]||Z).colorModeOptions||Z.colorModeOptions;n.byDimension=r.dimension(e),n.byMeasure=r.measure(e),n.byMultiple=r.multiColor(e),n.byExpression=r.expression(e)}return n},ue=function(e){var t=e.canColorBy,n=e.autoColor,r=e.colorMode,i=e.dimensions;return!(t[r]&&!n&&("byDimension"!==r&&"byMeasure"!==r||!i.length))},de=function(e,t){var n,r=o.getValue(e,"color.mode"),i=o.getValue(e,"color.auto"),a=o.getValue(e,"".concat(t,"qDimensions"),[]),s=o.getValue(e,"".concat(t,"qMeasures"),[]),l=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);i?te(a,l):!(n={auto:i,colorMode:r,dimensions:a}).auto&&"byDimension"===n.colorMode&&n.dimensions.length>0?se(e,t):function(e){var t=e.auto,n=e.colorMode,r=e.dimensions,i=e.measures,a=e.properties,s=o.getValue(a,"visualization");return!(t||"byMeasure"!==n||!r.length||"map"!==s&&!i.length)}({auto:i,colorMode:r,dimensions:a,measures:s,properties:e})?function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=o.getValue(e,"color.byMeasureDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var n=o.getValue(e,"".concat(t,"qMeasures"),[]),r=o.getValue(e,"color.byMeasureDef");if(r.activeMeasureIndex=Math.min(r.activeMeasureIndex,n.length-1),r.activeMeasureIndex>-1){var i=ie("measure",!1,n[r.activeMeasureIndex],!0);i.activeMeasureIndex=r.activeMeasureIndex,ae(e,i)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,r)&&function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=n[n.length-1],a=G.IDMAP.COLOR_BY_ALTERNATIVE,s=d.findItemByPropertyValue(i.qAttributeExpressions,"id",a);return ae(e,ie("measure",!!s,s||r[0])),!!s}(e,t))return;re({properties:e,isDimension:!1,dimensions:n,excludedDimensions:i,measures:r,label:o.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var n=o.getValue(e,"color.mode"),r=o.getValue(e,"".concat(t,"qDimensions"),[]),i=o.getValue(e,"".concat(t,"qMeasures"),[]),a=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===n&&i.length<2&&o.setValue(e,"color.mode","primary"),te(r,a)}(e,t)},fe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},he=function(e){var t=e.shouldUpdateColorBy,n=e.properties,r=o.getValue(n,"qHyperCubeDef.qMeasures",[]),i=o.getValue(n,"color.mode","");return!t&&"byExpression"===i&&r.length>0},pe=function(e){var t=o.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),n=o.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:n,id:"colorByExpression"}),o.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},me=function(e){o.setValue(e,"color.mode","primary"),o.setValue(e,"color.auto",!0)},ge=function(e){var t=o.getValue(e,"qHyperCubeDef.qDimensions",[]),n=o.getValue(e,"color.persistent",!1);return t.length>1&&!n},ye={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=U.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),o=i.data[0],a=o.dimensions.concat(o.excludedDimensions),s=o.measures.concat(o.excludedMeasures),l=G.IDMAP,c=l.COLOR_BY_ALTERNATIVE,u=l.COLOR_BY_EXPRESSION;return G.moveByIdFromGroup(a,[],"qAttributeDimensions",c),G.moveByIdFromGroup(a,[],"qAttributeExpressions",c),G.moveByIdFromGroup(s,[],"qAttributeExpressions",u),i},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,i=e.defaultPropertyValues,a=e.hypercubePath,s=e.extension,l=e.supportedFilters,c=e.isHCModifierSupported,u=U.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:i,hypercubePath:a,extension:s,supportedFilters:l,isHCModifierSupported:c}),d=u.qProperty,f=o.getValue(d,"visualization"),h=o.getValue(d,"qHyperCubeDef.qDimensions",[]),p=o.getValue(d,"color.mode",""),m=o.getValue(d,"color.auto",""),g=ce(d,f),y=ue({canColorBy:g,autoColor:m,colorMode:p,dimensions:h});return g[p]?he({shouldUpdateColorBy:y,properties:d})&&pe(d):me(d),y&&de(d,"qHyperCubeDef."),ge(d)&&le(d,"color.persistent",!0),fe(h),u}};var ve=["bar","marker","line"];const be=function(e){var t=e.initialProperties,n=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?B(n,"unsupportedAutoMinMax")||k()(n.measureAxis,t.measureAxis):B(n,"supportedAutoMinMax")||k()(n.measureAxis,t.measureAxis)},xe=function(e){var t,n=e.exportFormat,r=e.initialProperties,i=e.properties,o=e.measureType,a=i.qHyperCubeDef,s=i.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:n,initialProperties:r})){var l=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var n=e.qDef.series,r=n.type,i=n.axis;t[i]||(t[i]={axis:i,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(r)&&t[i].type[r]++,t[i].type.total++}})),t}(a);l.length?(o&&(t=l.filter((function(e){return e.type[o]>0})).sort((function(e,t){return t.type[o]-e.type[o]}))),t&&t.length||(t=l.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&k()(s,n.properties.measureAxes[t[0].axis])):k()(s,n.properties.measureAxes[0])}},we=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var n=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=n}}},ke={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=e.supportedAutoMinMax,o=void 0===i||i,a=ye.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),s=a.properties;return o?(x(s,"measureAxis.min","supportedAutoMinMax"),x(s,"measureAxis.max","supportedAutoMinMax")):(x(s,"measureAxis.min","unsupportedAutoMinMax"),x(s,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,i=e.defaultPropertyValues,o=e.hypercubePath,a=e.measureType,s=e.extension,l=e.supportedFilters,c=e.isHCModifierSupported,u=ye.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:i,hypercubePath:o,extension:s,supportedFilters:l,isHCModifierSupported:c}),d=u.qProperty;return be({initialProperties:n,properties:d}),xe({exportFormat:t,initialProperties:n,properties:d,measureType:a}),we(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],u}};function Se(e,t,n){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(n)}function Ce(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,i=e.arrayName,a=e.itemPath;o.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,i=e.item,a=e.itemPath,s=o.getValue(i,a);if(void 0!==s){var l=o.getValue(i,"qDef.cId");l||(l=o.generateId(),o.setValue(i,"qDef.cId",l));var c=Se(n,r,l);o.setValue(t,c,s),o.setValue(i,a,void 0)}}({properties:t,quarantineName:r,arrayName:i,item:e,itemPath:a})}))}function Me(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,i=e.arrayName,a=e.itemPath;o.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,i=e.item,a=e.itemPath,s=o.getValue(i,"qDef.cId");if(s){var l=Se(n,r,s),c=o.getValue(t,l);void 0!==c&&(o.setValue(i,a,c),o.setValue(t,l,void 0))}}({properties:t,quarantineName:r,arrayName:i,item:e,itemPath:a})}))}var Ee="qHyperCubeDef.qMeasures",_e="conditionalColoring",De="measures",qe="qDef.conditionalColoring";const Te={quarantine:function(e){Ce({properties:e,arrayPath:Ee,quarantineName:_e,arrayName:De,itemPath:qe})},unquarantine:function(e){Me({properties:e,arrayPath:Ee,itemPath:qe,arrayName:De,quarantineName:_e})}};var Re="qHyperCubeDef.qMeasures",Ne="measures",Oe="qHyperCubeDef.qDimensions",Ae="dimensions",Pe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Ie="alternativeMeasures",Le="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",ze="alternativeDimensions",Fe="qCalcCondition",je="conditionalShowHide";const $e={quarantine:function(e){Ce({properties:e,arrayPath:Re,quarantineName:je,arrayName:Ne,itemPath:Fe}),Ce({properties:e,arrayPath:Oe,quarantineName:je,arrayName:Ae,itemPath:Fe})},unquarantine:function(e){Me({properties:e,arrayPath:Re,quarantineName:je,arrayName:Ne,itemPath:Fe}),Me({properties:e,arrayPath:Oe,quarantineName:je,arrayName:Ae,itemPath:Fe})},quarantineAlternative:function(e){Ce({properties:e,arrayPath:Pe,quarantineName:je,arrayName:Ie,itemPath:Fe}),Ce({properties:e,arrayPath:Le,quarantineName:je,arrayName:ze,itemPath:Fe})},unquarantineAlternative:function(e){Me({properties:e,arrayPath:Pe,quarantineName:je,arrayName:Ie,itemPath:Fe}),Me({properties:e,arrayPath:Le,quarantineName:je,arrayName:ze,itemPath:Fe})}},He={hypercube:U,colorChart:ye,axisChart:ke,quarantineProperty:x,unquarantineProperty:B,quarantineArrayProp:Ce,unquarantineArrayProp:Me,conditionalColoring:Te,conditionalShow:$e}})(),r.default})()}(I0);var L0=r(I0.exports);const z0={setValue(e,t,n){if(!t)return;const r=t.split(".");let i=e;const o=r[r.length-1];let a;for(a=0;a<r.length-1;++a)null==i[r[a]]&&(i[r[a]]=Number.isNaN(+r[a+1])?{}:[]),i=i[r[a]];void 0!==n?i[o]=n:delete i[o]},getValue(e,t,n){const r=t.split(".");let i,o=e;if(void 0===o)return n;for(i=0;i<r.length;++i){if(null==o[r[i]])return n;o=o[r[i]]}return o}},F0={getDimensions:e=>z0.getValue(e,"qHyperCubeDef.qDimensions",[]),getNumDimensions:e=>z0.getValue(e,"qHyperCubeDef.qDimensions.length",0),getMeasures:e=>z0.getValue(e,"qHyperCubeDef.qMeasures",[]),getNumMeasures:e=>z0.getValue(e,"qHyperCubeDef.qMeasures.length",0),getDimensionLayouts(e,t){const n=z0.getValue(e,t?`${t}.qHyperCube`:"qHyperCube",null);return n?n.qDimensionInfo:[]},getDimensionLayout(e,t,n){return this.getDimensionLayouts(t,n).filter((t=>e===t.cId))[0]},getMeasureLayouts(e,t){const n=z0.getValue(e,t?`${t}.qHyperCube`:"qHyperCube",null);return n?n.qMeasureInfo:[]},getMeasureLayout(e,t,n){return this.getMeasureLayouts(t,n).filter((t=>e===t.cId))[0]}};const j0={colorModeOptions:{primary:()=>!0,dimension:()=>!0,multiColor:()=>!1,measure:()=>!0,expression:e=>F0.getNumMeasures(e)>=1},showLegend:e=>{const t=z0.getValue(e,"color.auto"),n=z0.getValue(e,"color.expressionIsColor"),r=z0.getValue(e,"color.mode");return!(!t&&"primary"===r||!t&&"byExpression"===r&&(n||void 0===n))},persistentColorsShow:e=>!z0.getValue(e,"color.auto")&&"byDimension"===z0.getValue(e,"color.mode"),useDimValColShow:e=>(void 0===z0.getValue(e,"color.useDimColVal")&&z0.setValue(e,"color.useDimColVal",!1),!z0.getValue(e,"color.auto")&&"byDimension"===z0.getValue(e,"color.mode")&&"libraryItem"===z0.getValue(e,"color.byDimDef.type"))},$0=function(e){const{colorModeOptions:t,persistentColorsShow:n,useDimValColShow:r,showLegend:i}=j0;this.color={colorMode:{options(n){const r=[];return"explore"===e&&r.push({value:"auto",translation:"Common.Auto"}),t.primary(n)&&r.push({value:"primary",translation:"properties.colorMode.primary"}),t.multiColor(n)&&r.push({value:"byMultiple",translation:"properties.colorMode.multicolored"}),t.dimension(n)&&r.push({value:"byDimension",translation:"properties.colorMode.byDimension"}),t.measure(n)&&r.push({value:"byMeasure",translation:"properties.colorMode.byMeasure"}),t.expression(n)&&"explore"!==e&&r.push({value:"byExpression",translation:"properties.colorMode.byExpression"}),r}},persistentColors:{show:e=>r(e)?n(e)&&!z0.getValue(e,"color.useDimColVal"):n(e)},useDimColVal:{show:r}},this.legend={show:i,showTitle:{show(e){const t=z0.getValue(e,"color.auto");return z0.getValue(e,"legend.show")&&i(e)&&(t||!function(e){return"byExpression"===z0.getValue(e,"color.mode")&&!0===z0.getValue(e,"color.expressionIsColor")}(e))}},dock:{show:e=>z0.getValue(e,"legend.show")&&i(e)}}};function H0(e){return new $0(e)}const V0={classification:{section:"styling",tags:["simple"],exclusive:!0},component:"items",show:!0,chartType:"piechart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.PieChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,items:{strokeSection:{translation:"properties.Outline",component:"items",items:{strokeItem:{component:"items",ref:"components",key:"slices",items:{strokeWrapper:{component:"inline-wrapper",items:{strokeWidth:{translation:"LayerStyleEditor.style.strokeWidth",ref:"style.strokeWidth",width:9,show:!0,component:"dropdown",type:"string",options:[{value:"none",translation:"Common.None"},{value:"small",translation:"Common.Small"},{value:"medium",translation:"Common.Medium"},{value:"large",translation:"Common.Large"}],defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",defaultValue:{color:"#FFFFFF"},schemaIgnore:!0,width:3,component:"color-picker"}}}}}}},cornerRadius:{component:"items",translation:"LayerStyleEditor.style.cornerRadius",items:{cornerRadiusItem:{component:"items",ref:"components",key:"slices",items:{cornerRadiusSlider:{ref:"style.cornerRadius",translation:"LayerStyleEditor.style.cornerRadius",component:"slider",min:0,max:40,step:.05,width:12,defaultValue:0,schemaIgnore:!0}}}}},innerRadius:{translation:"LayerStyleEditor.style.innerRadius",component:"items",show:e=>e.donut.showAsDonut,items:{innerRadiusItem:{component:"items",ref:"components",key:"slices",items:{innerRadiusSlider:{ref:"style.innerRadius",translation:"LayerStyleEditor.style.innerRadius",component:"slider",min:.05,max:.75,step:.01,width:12,defaultValue:.55,schemaIgnore:!0}}}}}}},B0=(e,t,n)=>{const r=`${e}.fontFamily`,i=`${e}.fontSize`;return{fontFamilyItem:{component:"dropdown",ref:r,options:()=>t.getOptions(r),defaultValue:()=>t.getDefaultValue(r)},fontWrapperItem:{component:"inline-wrapper",items:{fontSizeItem:{component:"dropdown",ref:i,options:()=>t.getOptions(i),defaultValue:()=>t.getDefaultValue(i)},fontColorItem:{component:"color-picker",width:!1,ref:`${e}.color`,defaultValue:()=>({color:n.getStyle("object.pieChart",e,"color")})}}}}},U0={component:"style-editor",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",resetBtnTranslation:"LayerStyleEditor.component.resetAll",key:"slices",ref:"components",defaultValues:{key:"slices",style:{strokeColor:{index:-1,color:"#FFFFFF"},strokeWidth:"none",cornerRadius:0,innerRadius:.55}},items:{slices:{components:"items",type:"items",uses:"styling.slice",items:{strokeWidth:{show:!0,component:"dropdown",type:"string",options:[{value:"none",translation:"LayerStyleEditor.style.strokeWidth.none"},{value:"small",translation:"LayerStyleEditor.style.strokeWidth.small"},{value:"medium",translation:"LayerStyleEditor.style.strokeWidth.medium"},{value:"large",translation:"LayerStyleEditor.style.strokeWidth.large"}],defaultValue:"none"},strokeColor:{show:e=>"none"!==e.style.strokeWidth},cornerRadius:{component:"slider",min:0,max:40,step:.05,defaultValue:0,show:!0},innerRadius:{component:"slider",min:.05,max:.75,step:.01,defaultValue:.55,show:(e,t,n)=>n.layout.donut.showAsDonut}}}}},W0=(e,t,n,r)=>{const i=function(e){var t=e.theme,n=e.translator,r=e.config,i=void 0===r?{}:r,o=e.flags,a=function(e){var t=e.config,n=void 0===t?{}:t,r=n.id,i=n.paths;return{id:void 0===r?"object":"".concat("object",".").concat(r),paths:Array.isArray(i)?i:[]}}({config:i}),s=a.id,l=a.paths,c={};l.forEach((function(e){for(var r=e.split("."),i=c,a=0;a<r.length;a++){var l=r[a];a===r.length-1?i[l]=Fw({theme:t,translator:n,id:s,path:e,flags:o}):void 0===i[l]&&(i[l]={}),i=i[l]}}));var u=function(e){for(var t=e.split("."),n=c,r=0;r<t.length;r++){var i=t[r];if(void 0===n[i])throw new Error("font-resolver: Path '".concat(e,"' could not be resolved."));n=n[i]}return n};return c.getDefaultValue=function(e){return u(e).getDefaultValue()},c.getOptions=function(e){return u(e).getOptions()},c}({theme:r,translator:n,flags:t,config:{id:"pieChart",paths:["axis.title","label.name","label.value","legend.title","legend.label"]}});return{component:"styling-panel",chartTitle:"Object.PieChart",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:e,items:{strokeSection:{translation:"properties.Outline",component:"panel-section",items:{strokeItem:{component:"items",ref:"components",key:"slices",items:{strokeWrapper:{component:"inline-wrapper",items:{strokeWidth:{ref:"style.strokeWidth",width:9,show:!0,component:"dropdown",type:"string",options:[{value:"none",translation:"Common.None"},{value:"small",translation:"Common.Small"},{value:"medium",translation:"Common.Medium"},{value:"large",translation:"Common.Large"}],defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",defaultValue:{color:"#FFFFFF"},schemaIgnore:!0,width:3,component:"color-picker"}}}}}}},cornerRadius:{translation:"LayerStyleEditor.style.cornerRadius",component:"panel-section",items:{cornerRadiusItem:{component:"items",ref:"components",key:"slices",items:{cornerRadiusSlider:{ref:"style.cornerRadius",component:"slider",min:0,max:40,step:.05,width:12,defaultValue:0,schemaIgnore:!0}}}}},innerRadius:{translation:"LayerStyleEditor.style.innerRadius",component:"panel-section",show:e=>e.donut.showAsDonut,items:{innerRadiusItem:{component:"items",ref:"components",key:"slices",items:{innerRadiusSlider:{ref:"style.innerRadius",component:"slider",min:.05,max:.75,step:.01,width:12,defaultValue:.55,schemaIgnore:!0}}}}},axisTitleSection:null!=t&&t.isEnabled("CLIENT_IM_3050")?{translation:"properties.dataPoints.dimensionlabels",component:"panel-section",items:{axisTitleItems:{component:"items",ref:"components",key:"axis",items:B0("axis.title",i,r)}}}:void 0,labelNameSection:null!=t&&t.isEnabled("CLIENT_IM_3050")?{translation:"properties.dataPoints.dimensionValueLabel",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"label",items:B0("label.name",i,r)}}}:void 0,labelValueSection:null!=t&&t.isEnabled("CLIENT_IM_3050")?{translation:"properties.value.label",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"label",items:B0("label.value",i,r)}}}:void 0,legendTitleSection:null!=t&&t.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.title",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"legend",items:B0("legend.title",i,r)}}}:void 0,legendLabelSection:null!=t&&t.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.label",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"legend",items:B0("legend.label",i,r)}}}:void 0}}},Y0=H0("hard");const K0=e=>{var t;null!==(t=e.color)&&void 0!==t&&t.auto||(OS(e,"color.mode","byDimension"),OS(e,"color.byDimDef.activeDimensionIndex",0),OS(e,"color.persistent",!1))},G0=e=>{var t;const n=[{value:"primary",translation:"properties.colorMode.primary"},{value:"byDimension",translation:"properties.colorMode.byDimension"}];switch(null===(t=e.color)||void 0===t?void 0:t.mode){case"byMultiple":n.push({value:"byMultiple",translation:"properties.colorMode.multicolored"});break;case"byMeasure":n.push({value:"byMeasure",translation:"properties.colorMode.byMeasure"});break;case"byExpression":n.push({value:"byExpression",translation:"properties.colorMode.byExpression"})}return n},X0=e=>{var t;const{flags:n,translator:r}=e||{},i=null==e||null===(t=e.sense)||void 0===t?void 0:t.theme,o=null==n?void 0:n.isEnabled("SENSECLIENT_IM_2429_PIECHART_BG"),a={items:{simpleItems:{items:{autoColor:{label:e=>{var t;return null!==(t=e.color)&&void 0!==t&&t.auto?r.get("Simple.Color.Auto",r.get("properties.colorMode.byDimension")):r.get("Common.Custom")},change:K0},colorMode:{options:G0}}}}},s={items:{labels:{items:{header:{show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length},pointLabels:{component:"checkbox",ref:"dataPoint.auto",type:"boolean",defaultValue:!0,translation:"Simple.Label.Value",show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length,change(e){e.dataPoint.auto||OS(e,"dataPoint.labelMode","none")}},dimensionTitle:{component:"checkbox",ref:"dimensionTitle",type:"string",translation:"Simple.Label.Dimension.Hide",defaultValue:"all",show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length,convertFunctions:{get:(e,t,n,r)=>!r.dimensionTitle,set(e,t,n,r,i){i.dimensionTitle=!e}}}}}}},l={uses:"settings",items:{simpleStyling:V0,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:{sliceStyling:null!=n&&n.isEnabled("SENSECLIENT_PS_17478_STYLINGPANEL_PIECHART")?W0(o,n,r,i):U0,showAsDonut:{ref:"donut.showAsDonut",type:"boolean",component:"item-selection-list",defaultValue:!1,horizontal:!0,items:[{icon:"pie_chart_pie",component:"icon-item",labelPlacement:"bottom",translation:"properties.pie",value:!1},{icon:"pie_chart_donut",component:"icon-item",labelPlacement:"bottom",translation:"properties.donut",value:!0}]},labels:{type:"items",snapshot:{tid:"property-labels"},items:{dimensionTitle:{ref:"dimensionTitle",type:"boolean",component:"switch",translation:"properties.dataPoints.dimensionlabels",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]},valuesAuto:{ref:"dataPoint.auto",type:"boolean",translation:"properties.dataPoints.labelmode",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}]},labelMode:{ref:"dataPoint.labelMode",type:"string",component:"dropdown",options:[{value:"none",translation:"Common.None"},{value:"share",translation:"properties.dataPoints.labelmode.share"},{value:"value",translation:"properties.dataPoints.labelmode.value"}],defaultValue:"share",show:e=>!e.dataPoint.auto},labelValueMode:{ref:"dataPoint.labelValueMode",type:"string",component:"dropdown",translation:"properties.dataPoints.labelvaluemode",options:[{value:"arc",translation:"Visualizations.Descriptions.Angle"},{value:"radius",translation:"Visualizations.Descriptions.Radius"}],defaultValue:"arc",show:e=>!e.dataPoint.auto&&function(e){return e.qHyperCubeDef&&e.qHyperCubeDef.qMeasures.length>1||e.qHyperCube&&e.qHyperCube.qMeasureInfo.length>1}(e)&&"value"===e.dataPoint.labelMode}}}}},colorsAndLegend:{uses:"colorsAndLegend",items:{colors:{items:{colorMode:{options:Y0.color.colorMode.options},persistentColors:{show:Y0.color.persistentColors.show}}},simpleColors:a,legend:{show:Y0.legend.show,items:{show:{defaultValue:!1,snapshot:{tid:"property-legend"}},showTitle:{show:Y0.legend.showTitle.show},dock:{show:Y0.legend.dock.show}}}}},tooltip:{uses:"tooltip"}}};return l},Z0={uses:"data",items:{dimensions:{uses:"dimensions"},measures:{uses:"measures",items:{numberFormatting:{items:{percentOfPieMessage:{component:"text",translation:"properties.numberFormatting.pieMessage",show:(e,t,{properties:n}={})=>n&&(n.dataPoint.auto||"share"!==n.dataPoint.labelMode)}}}}}}},J0={uses:"sorting",items:{interColumnSorting:{reset:e=>{const{qDimensions:t,qMeasures:n,qInterColumnSortOrder:r}=e.qHyperCubeDef;if(1===t.length&&n.length>=1){const t=r.length,n=[...Array(t).keys()];[n[0],n[1]]=[n[1],n[0]],e.qHyperCubeDef.qInterColumnSortOrder=n}}}}},Q0={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{suppressZero:null,calcCond:{uses:"calcCond"}}}}};function e1(e){return{type:"items",component:"accordion",items:{data:Z0,sorting:J0,addons:Q0,settings:X0(e)}}}const t1=H0("explore"),n1=e1();var r1={type:"items",component:"accordion",items:{data:{uses:"data"},sort:{uses:"sort"},presentation:{uses:"presentation",items:{showAsDonut:n1.items.settings.items.presentation.items.showAsDonut,labelMode:{type:"items",items:{labelMode:{type:"string",component:"radio-list",translation:"properties.dataPoints.labelmode",diffs:["dataPoint.auto:false","dataPoint.labelMode"],options:n1.items.settings.items.presentation.items.labels.items.labelMode.options,setPropertyValue(e,t){e.dataPoint.auto=!1,e.dataPoint.labelMode=t},getValue:e=>e.dataPoint.auto?"":e.dataPoint.labelMode}}}}},color:{uses:"color",items:{mode:{options:t1.color.colorMode.options},dimension:{items:{persistentColors:{show:e=>!(e.color&&"byDimension"===e.color.mode&&e.color.useDimColVal&&t1.color.useDimColVal.show(e))}}}}}}};const i1="slices";function o1(e,t){const n=e&&e.desc&&void 0!==e.desc.share?e.desc.share:void 0;return t("share")(n)}function a1(e){return e.data.num.label}function s1(e){return e.data.radius.label}function l1(e,t,n,r){return function(e,t){if(e.dataPoint.auto)return 1===e.qHyperCube.qSize.qcy?a1:o1;if("share"===e.dataPoint.labelMode)return o1;if("value"===e.dataPoint.labelMode)return t.encodings.slice.outerRadius&&"radius"===e.dataPoint.labelValueMode?s1:a1;return a1}(n,r)(e,t)}function c1(e){let t;return t=e.data.label?function(e,t){let n=e;return n.length>t&&(n=`${n.substr(0,t-3)}...`),n}(e.data.label,20):"",t}class u1{constructor({element:e,properties:t,effectHelper:n,Flag:r}){this.element=e,this.Flag=r,n.initFade(this.element);const i=e.find(".effectLayer");i.length>0&&i.remove(),e.append('<div class="effectLayer"></div>'),this.effectLayer=e.find(".effectLayer"),this._effectProperties=t,this.selectedIndex=t.selectedIndex,this.hasPropertiesPanel=!1,this.effectApplied=!0,n.fadeIn(this.element)}updateOrigSettings(e){return{dataPoint:e.dataPoint,legend:e.legend,dimensionTitle:e.dimensionTitle}}updateFlags(e,t){const n=this.chart.getAffectedShapes("highlight"),r=this.effectLayer[0].getBoundingClientRect(),i=n.map((n=>{const{start:i,end:o,outerRadius:a,offset:s}=n.desc.slice,{scaleRatio:l}=this.chart.component(n.key).rect,c=n.element.getBoundingClientRect(),u=(i+o)/2,d=c.left-r.left+l.x*(s.x+a*Math.sin(u)),f=c.top-r.top+l.y*(s.y-a*Math.cos(u)),h=Math.cos(u)>0?"top":"bottom",p=Math.sin(u)>0?"right":"left";return{title:c1(n),label:l1(n,this.chart.formatter,e,t),orientation:`${h}${p}`,position:{x:d,y:f}}}));this.Flag.show(this.effectLayer,i)}init(e,t,n,r){return t.getProperties().then((e=>{if(!e.originalModelSettings){const t=Eg(!0,{},e);e.originalModelSettings=this.updateOrigSettings(t)}e.effectProperties=r,e.effectPath=n,e.dataPoint.show=!1,e.legend.show=!1,e.dimensionTitle=!1,t.setProperties(e)}))}remove(e,t,n){return e.options=Eg(e.options,{effect:null}),n?t.getProperties().then((e=>Eg(e,{effectPath:null,effectProperties:null,dataPoint:Eg(!0,{},e.originalModelSettings.dataPoint),legend:Eg(!0,{},e.originalModelSettings.legend),dimensionTitle:e.originalModelSettings.dimensionTitle}))):Promise.resolve()}}class d1 extends u1{init(e,t,n,r){return e.options=Eg(!0,e.options,{effect:this}),t.layout.effectProperties&&t.layout.effectPath===n&&t.layout.effectProperties.max===r.max?Promise.resolve():super.init(e,t,n,r)}update(e,t,n){this.chart=t,this.updateHighlight(e),this.updateFlags(e,n)}updateHighlight(e){const t=this.chart.component(i1).data.items,n=e.effectProperties.min,r=e.effectProperties.max,i=[];let o=[1/0,-1],a=[-1/0,-1];t.forEach(((e,t)=>{const i=e.num.value;n&&i<o[0]&&(o=[i,t]),r&&i>a[0]&&(a=[i,t])})),-1!==o[1]&&i.push(t[o[1]].value),-1!==a[1]&&i.push(t[a[1]].value),i.length&&this.chart.brush("highlight").setValues(i.map((e=>({key:"qHyperCube/qDimensionInfo/0",value:e}))))}}class f1 extends u1{constructor(e){super(e),this.hasPropertiesPanel=!0,this.propsTemplate=e.highlightValuePropsTemplate,this.effectHelper=e.effectHelper}onClick(e){if(!this.chart)return;const t=this.chart.shapesAt(function(e,t){const n=t.element.getBoundingClientRect();return{x:e.clientX-n.left,y:e.clientY-n.top}}(e,this.chart),{propagation:"stop"});if(1!==t.length)return;const n=t[0],r=this.chart.component(i1).data.items.map((e=>e.value)),i=r.indexOf(n.data.value);-1!==i&&(this.selectedIndex=i,this.effectHelper.updateSelectedPointIndex(this))}update(e,t,n){this.chart=t,this.updateHighlight(e),this.updateDataPoints(e,n),this.updateFlags(e,n)}updateHighlight(e){const t=this.chart.component(i1).data.items[e.effectProperties.selectedIndex];this.chart.brush("highlight").setValues([{key:"qHyperCube/qDimensionInfo/0",value:t.value}])}updateDataPoints(e,t){this.dataPoints=this.chart.findShapes("path").filter((e=>e.key===i1)).map(((n,r)=>{const i=l1(n,this.chart.formatter,e,t);return{text:`${c1(n)} (${i})`,value:r}}))}init(e,t,n,r){return e.options=Eg(!0,e.options,{effect:this}),t.layout.effectProperties&&t.layout.effectPath===n&&t.layout.effectProperties.selectedIndex===r.selectedIndex?Promise.resolve():super.init(e,t,n,r)}}const h1="/effects/highlight-value",p1="/effects/maxmin";var m1={isCompatible:({effectPath:e})=>e===p1||e===h1,create:e=>e.effectPath===p1?new d1(e):e.effectPath===h1?new f1(e):null};function g1(e){const t={},{components:n,tooltip:r}=e,i=n?n.filter((e=>"slices"===e.key))[0]:void 0;if(i&&i.style&&Object.keys(i.style).forEach((e=>{t[`chart_style_${e}`]=i.style[e]})),r){var o;t.chart_tooltip_custom=!r.auto;const e=null===(o=r.chart)||void 0===o||null===(o=o.object)||void 0===o?void 0:o.refId;!r.auto&&e&&(t.chart_tooltip_custom_mini_chart=e)}return t}function y1(e){if(!e.qHyperCubeDef)return;const t=e.qHyperCubeDef.qDimensions,n=e.qHyperCubeDef.qMeasures;1===t.length&&1===n.length&&(n[0].qSortBy.qSortByNumeric=-1,e.qHyperCubeDef.qInterColumnSortOrder.splice(0,e.qHyperCubeDef.qInterColumnSortOrder.length,1,0))}function v1(e){e.qOtherTotalSpec.qOtherMode="OTHER_COUNTED",e.qOtherTotalSpec.qOtherCounted={qv:"10"}}function b1({translator:e}){return{dimensions:{min:1,max:1,description:()=>e.get("Visualizations.Descriptions.Slice"),add(e,t){v1(e),y1(t),IQ.addCallbackCustomTooltip(t)},move(e,t){v1(e),y1(t),IQ.moveCallbackCustomTooltip(t,e)},remove(e,t){IQ.removeCallbackCustomTooltip(t,e)},replace(e,t,n,r){v1(e),y1(r),IQ.replaceCallbackCustomTooltip(r,t)}},measures:{min:1,max:2,description:(t,n)=>e.get(0===n?"Visualizations.Descriptions.Angle":"Visualizations.Descriptions.Radius"),add(e,t){y1(t)},remove(e,t){!function(e){if(!e.qHyperCubeDef)return;const t=e.qHyperCubeDef.qMeasures,{mode:n}=e.color;"byExpression"===n&&0===t.length&&(e.color.mode="primary")}(t)}}}}const x1=e=>e.qMax<=0,w1=e=>!(!(e&&e.qHyperCube.qSize.qcy>0)||e.qHyperCube.qMeasureInfo.every(x1));function k1(e){return{definition:e1(e),softDefinition:r1,support:{snapshot:w1,export:w1,exportData:!0,sharing:w1,viewData:!0,effects:!0},effects:m1,extendMetrics:g1,importProperties:(t,n,r,i)=>{const o={layout:{templateId:n.templateId}};r.mapProperties(o);const a={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()},s=L0.colorChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:b1(e),defaultPropertyValues:a,hypercubePath:i});return s.qProperty.dataPoint&&!1===s.qProperty.dataPoint.show&&delete s.qProperty.dataPoint.show,s},exportProperties:(e,t,n)=>L0.colorChart.exportProperties({propertyTree:e,hypercubePath:t,viewDataMode:n})}}function S1(e){return{properties:{version:"1.27.6",color:{auto:!0,autoMinMax:!0,byDimDef:void 0,byMeasureDef:void 0,colorExpression:void 0,dimensionScheme:"12",expressionIsColor:!0,expressionLabel:"",formatting:{numFormatFromTemplate:!0,isCustomFormatted:void 0},measureMin:void 0,measureMax:void 0,measureScheme:"sg",mode:"primary",paletteColor:{index:6},persistent:!1,reverseScheme:!1,singleColor:void 0,useBaseColors:"off",useDimColVal:!0,useMeasureGradient:!0},components:[{key:"slices",style:{strokeWidth:"none",strokeColor:{index:-1,color:QQ.STROKE.COLOR},cornerRadius:QQ.CORNER_RADIUS,innerRadius:QQ.INNER_RADIUS}}],dataPoint:{auto:!0,labelMode:"share",labelValueMode:"arc"},dimensionTitle:!0,donut:{showAsDonut:!1},footnote:"",legend:{dock:"auto",show:!0,showTitle:!0},qHyperCubeDef:{qDimensions:[],qMeasures:[],qInitialDataFetch:[{qWidth:10,qHeight:500}],qSuppressMissing:!0,qSuppressZero:!1,qMode:"S"},showDetails:!0,showDisclaimer:!0,showTitles:!0,subtitle:"",title:"",tooltip:{auto:!0,hideBasic:!1,data:{qHyperCubeDef:void 0},chart:void 0,imageComponents:void 0}},data:{targets:[b1(e)]},importProperties:({exportFormat:t,initialProperties:n,hypercubePath:r})=>{const i=L0.colorChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:b1(e),hypercubePath:r});return i.qProperty.dataPoint&&!1===i.qProperty.dataPoint.show&&delete i.qProperty.dataPoint.show,i},exportProperties:({propertyTree:e,hypercubePath:t,viewDataMode:n})=>L0.colorChart.exportProperties({propertyTree:e,hypercubePath:t,viewDataMode:n})}}return t=>{const{flags:r}=t;!function(e){if(e&&e.get&&e.add){const t="Object.Disclaimer.LimitedData";if(e.get(t)!==t)return;Object.keys(n).forEach((t=>{e.add(n[t])}))}}(t.translator);const i=gQ();return{qae:S1(t),ext:k1(t),component(){const t=kQ({picasso:i}),n=KQ({flags:r,picasso:i,instance:t});O0({instance:t,services:n,picasso:i,flags:r}),function({instance:t}){const n=e.useStaleLayout(),r=e.useOptions(),i=e.useRect();e.useEffect((()=>{if(!t||!t.generateSettings)return;const{viewCache:e,chart:i,generateSettings:o}=t;i.update({settings:o()}),e.set("chartWidth",i.element.clientWidth),e.set("chartHeight",i.element.clientHeight),r.effect&&r.effect.update(n,i)}),[i.width,i.height])}({instance:t}),P0({instance:t,services:n})}}}}));
|
|
122
|
+
`),JZ.rippleVisible,oJ,550,(({theme:e})=>e.transitions.easing.easeInOut),JZ.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),JZ.child,JZ.childLeaving,aJ,550,(({theme:e})=>e.transitions.easing.easeInOut),JZ.childPulsate,sJ,(({theme:e})=>e.transitions.easing.easeInOut)),uJ=g_.forwardRef((function(e,t){const n=hZ({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:i={},className:o}=n,a=KU(n,QZ),[s,l]=g_.useState([]),c=g_.useRef(0),u=g_.useRef(null);g_.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[s]);const d=g_.useRef(!1),f=nX(),h=g_.useRef(null),p=g_.useRef(null),m=g_.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:o,cb:a}=e;l((e=>[...e,YY.jsx(cJ,{classes:{ripple:vG(i.ripple,JZ.ripple),rippleVisible:vG(i.rippleVisible,JZ.rippleVisible),ripplePulsate:vG(i.ripplePulsate,JZ.ripplePulsate),child:vG(i.child,JZ.child),childLeaving:vG(i.childLeaving,JZ.childLeaving),childPulsate:vG(i.childPulsate,JZ.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},c.current)])),c.current+=1,u.current=a}),[i]),g=g_.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:i=!1,center:o=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const s=a?null:p.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,g;if(o||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(o)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-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===h.current&&(h.current=()=>{m({pulsate:i,rippleX:c,rippleY:u,rippleSize:g,cb:n})},f.start(80,(()=>{h.current&&(h.current(),h.current=null)}))):m({pulsate:i,rippleX:c,rippleY:u,rippleSize:g,cb:n})}),[r,m,f]),y=g_.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=g_.useCallback(((e,t)=>{if(f.clear(),"touchend"===(null==e?void 0:e.type)&&h.current)return h.current(),h.current=null,void f.start(0,(()=>{v(e,t)}));h.current=null,l((e=>e.length>0?e.slice(1):e)),u.current=t}),[f]);return g_.useImperativeHandle(t,(()=>({pulsate:y,start:g,stop:v})),[y,g,v]),YY.jsx(lJ,YU({className:vG(JZ.root,i.root,o),ref:p},a,{children:YY.jsx(xB,{component:null,exit:!0,children:s})}))}));var dJ=uJ;function fJ(e){return xG("MuiButtonBase",e)}var hJ=wG("MuiButtonBase",["root","disabled","focusVisible"]);const pJ=["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"],mJ=BZ("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"},[`&.${hJ.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),gJ=g_.forwardRef((function(e,t){const n=hZ({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:i=!1,children:o,className:a,component:s="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:d=!1,LinkComponent:f="a",onBlur:h,onClick:p,onContextMenu:m,onDragLeave:g,onFocus:y,onFocusVisible:v,onKeyDown:b,onKeyUp:x,onMouseDown:w,onMouseLeave:k,onMouseUp:S,onTouchEnd:C,onTouchMove:M,onTouchStart:E,tabIndex:_=0,TouchRippleProps:D,touchRippleRef:q,type:T}=n,R=KU(n,pJ),N=g_.useRef(null),O=g_.useRef(null),A=JG(O,q),{isFocusVisibleRef:P,onFocus:I,onBlur:L,ref:z}=dX(),[F,j]=g_.useState(!1);l&&F&&j(!1),g_.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),N.current.focus()}})),[]);const[$,H]=g_.useState(!1);g_.useEffect((()=>{H(!0)}),[]);const V=$&&!c&&!l;function B(e,t,n=u){return ZG((r=>{t&&t(r);return!n&&O.current&&O.current[e](r),!0}))}g_.useEffect((()=>{F&&d&&!c&&$&&O.current.pulsate()}),[c,d,F,$]);const U=B("start",w),W=B("stop",m),Y=B("stop",g),K=B("stop",S),G=B("stop",(e=>{F&&e.preventDefault(),k&&k(e)})),X=B("start",E),Z=B("stop",C),J=B("stop",M),Q=B("stop",(e=>{L(e),!1===P.current&&j(!1),h&&h(e)}),!1),ee=ZG((e=>{N.current||(N.current=e.currentTarget),I(e),!0===P.current&&(j(!0),v&&v(e)),y&&y(e)})),te=()=>{const e=N.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=g_.useRef(!1),re=ZG((e=>{d&&!ne.current&&F&&O.current&&" "===e.key&&(ne.current=!0,O.current.stop(e,(()=>{O.current.start(e)}))),e.target===e.currentTarget&&te()&&" "===e.key&&e.preventDefault(),b&&b(e),e.target===e.currentTarget&&te()&&"Enter"===e.key&&!l&&(e.preventDefault(),p&&p(e))})),ie=ZG((e=>{d&&" "===e.key&&O.current&&F&&!e.defaultPrevented&&(ne.current=!1,O.current.stop(e,(()=>{O.current.pulsate(e)}))),x&&x(e),p&&e.target===e.currentTarget&&te()&&" "===e.key&&!e.defaultPrevented&&p(e)}));let oe=s;"button"===oe&&(R.href||R.to)&&(oe=f);const ae={};"button"===oe?(ae.type=void 0===T?"button":T,ae.disabled=l):(R.href||R.to||(ae.role="button"),l&&(ae["aria-disabled"]=l));const se=JG(t,z,N),le=YU({},n,{centerRipple:i,component:s,disabled:l,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:_,focusVisible:F}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,o=fX({root:["root",t&&"disabled",n&&"focusVisible"]},fJ,i);return n&&r&&(o.root+=` ${r}`),o})(le);return YY.jsxs(mJ,YU({as:oe,className:vG(ce.root,a),ownerState:le,onBlur:Q,onClick:p,onContextMenu:W,onFocus:ee,onKeyDown:re,onKeyUp:ie,onMouseDown:U,onMouseLeave:G,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:J,onTouchStart:X,ref:se,tabIndex:l?-1:_,type:T},ae,R,{children:[o,V?YY.jsx(dJ,YU({ref:A,center:i},D)):null]}))}));var yJ=gJ;function vJ(e){return xG("MuiButton",e)}var bJ=wG("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var xJ=g_.createContext({});var wJ=g_.createContext(void 0);const kJ=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],SJ=e=>YU({},"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}}),CJ=BZ(yJ,{shouldForwardProp:e=>VZ(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${dK(n.color)}`],t[`size${dK(n.size)}`],t[`${n.variant}Size${dK(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const i="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],o="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return YU({},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":YU({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:qX(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})`:qX(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})`:qX(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:o,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":YU({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${bJ.focusVisible}`]:YU({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${bJ.disabled}`]:YU({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 ${qX(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${bJ.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${bJ.disabled}`]:{boxShadow:"none"}})),MJ=BZ("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${dK(n.size)}`]]}})((({ownerState:e})=>YU({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},SJ(e)))),EJ=BZ("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${dK(n.size)}`]]}})((({ownerState:e})=>YU({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},SJ(e)))),_J=g_.forwardRef((function(e,t){const n=g_.useContext(xJ),r=g_.useContext(wJ),i=hZ({props:WG(n,e),name:"MuiButton"}),{children:o,color:a="primary",component:s="button",className:l,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:f,focusVisibleClassName:h,fullWidth:p=!1,size:m="medium",startIcon:g,type:y,variant:v="text"}=i,b=KU(i,kJ),x=YU({},i,{color:a,component:s,disabled:c,disableElevation:u,disableFocusRipple:d,fullWidth:p,size:m,type:y,variant:v}),w=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,classes:a}=e;return YU({},a,fX({root:["root",o,`${o}${dK(t)}`,`size${dK(i)}`,`${o}Size${dK(i)}`,`color${dK(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${dK(i)}`],endIcon:["icon","endIcon",`iconSize${dK(i)}`]},vJ,a))})(x),k=g&&YY.jsx(MJ,{className:w.startIcon,ownerState:x,children:g}),S=f&&YY.jsx(EJ,{className:w.endIcon,ownerState:x,children:f}),C=r||"";return YY.jsxs(CJ,YU({ownerState:x,className:vG(n.className,w.root,l,C),component:s,disabled:c,focusRipple:!d,focusVisibleClassName:vG(w.focusVisible,h),ref:t,type:y},b,{classes:w,children:[k,o,S]}))}));var DJ=_J;var qJ=g_.createContext({});function TJ(e){return xG("MuiListItemButton",e)}var RJ=wG("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);const NJ=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],OJ=BZ(yJ,{shouldForwardProp:e=>VZ(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})=>YU({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"}},[`&.${RJ.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:qX(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${RJ.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:qX(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${RJ.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:qX(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})`:qX(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${RJ.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${RJ.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}))),AJ=g_.forwardRef((function(e,t){const n=hZ({props:e,name:"MuiListItemButton"}),{alignItems:r="center",autoFocus:i=!1,component:o="div",children:a,dense:s=!1,disableGutters:l=!1,divider:c=!1,focusVisibleClassName:u,selected:d=!1,className:f}=n,h=KU(n,NJ),p=g_.useContext(qJ),m=g_.useMemo((()=>({dense:s||p.dense||!1,alignItems:r,disableGutters:l})),[r,p.dense,s,l]),g=g_.useRef(null);KG((()=>{i&&g.current&&g.current.focus()}),[i]);const y=YU({},n,{alignItems:r,dense:m.dense,disableGutters:l,divider:c,selected:d}),v=(e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:o,divider:a,selected:s}=e;return YU({},n,fX({root:["root",r&&"dense",!o&&"gutters",a&&"divider",i&&"disabled","flex-start"===t&&"alignItemsFlexStart",s&&"selected"]},TJ,n))})(y),b=JG(g,t);return YY.jsx(qJ.Provider,{value:m,children:YY.jsx(OJ,YU({ref:b,href:h.href||h.to,component:(h.href||h.to)&&"div"===o?"button":o,focusVisibleClassName:vG(v.focusVisible,u),ownerState:y,className:vG(v.root,f)},h,{classes:v,children:a}))})}));var PJ=AJ;function IJ(e){return xG("MuiListItemIcon",e)}wG("MuiListItemIcon",["root","alignItemsFlexStart"]);const LJ=["className"],zJ=BZ("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})=>YU({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),FJ=g_.forwardRef((function(e,t){const n=hZ({props:e,name:"MuiListItemIcon"}),{className:r}=n,i=KU(n,LJ),o=YU({},n,{alignItems:g_.useContext(qJ).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return fX({root:["root","flex-start"===t&&"alignItemsFlexStart"]},IJ,n)})(o);return YY.jsx(zJ,YU({className:vG(a.root,r),ownerState:o,ref:t},i))}));var jJ=FJ;function $J(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 HJ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$J(Object(n),!0).forEach((function(t){VJ(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$J(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function VJ(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var BJ=function(e){var t=e.className,n=e.path,r=e.fillRule;return y_.createElement(ZZ,{className:t,viewBox:"0 0 16 16",fontSize:"small",role:"img",style:{height:12,width:12}},y_.createElement("path",{d:n}),r?y_.createElement("use",{fillRule:r}):void 0)},UJ={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)"}}};BZ(DJ,{shouldForwardProp:function(e){return"direction"!==e&&"padding"!==e&&"styling"!==e}})((function(e){var t=e.direction,n=e.padding,r=e.styling,i=r.fontSize,o=r.fontFamily,a=r.color;return{fontWeight:"normal",lineHeight:"normal",fontSize:i,fontFamily:o,color:a,height:"100%",minWidth:"45px",padding:n,"&:disabled":{color:a,opacity:1},"& .MuiButton-startIcon":{margin:"ltr"===t?"0 2px":void 0},"& .MuiButton-endIcon":{margin:"rtl"===t?"0 2px":void 0}}})),BZ((function(e){var t=e.className;return y_.createElement(BJ,{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:UJ.ICONS.COLOR.SECONDARY}})),BZ((function(e){var t=e.className;return y_.createElement(BJ,{className:t,path:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})}))((function(){return{color:UJ.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:UJ.ICONS.COLOR.DISABLED}}})),BZ(DJ,{shouldForwardProp:function(e){return"styling"!==e}})((function(e){var t=e.styling,n=t.fontSize,r=t.fontFamily,i=t.color;return{fontWeight:"normal",lineHeight:"normal",fontSize:n,fontFamily:r,color:i,padding:"0px 5px",height:"100%",minWidth:"45px","&:disabled":{color:i}}}));var WJ={color:UJ.ICONS.COLOR.SECONDARY,marginTop:"1px","&.disabled":{color:UJ.ICONS.COLOR.DISABLED}};BZ((function(e){var t=e.className;return y_.createElement(BJ,{className:t,path:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5 8.5 8z"})}))((function(){return WJ})),BZ((function(e){var t=e.className;return y_.createElement(BJ,{className:t,path:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))((function(){return WJ})),BZ((function(e){var t=e.className;return y_.createElement(BJ,{className:t,path:"M15.9993744,3 L15.9993744,5 L4.99937445,5 L4.99937445,3 L15.9993744,3 Z M8.99937445,7 L15.9993744,7 L15.9993744,9 L8.99937445,9 L8.99937445,7 Z M11.9993744,11 L15.9993744,11 L15.9993744,13 L11.9993744,13 L11.9993744,11 Z M2.2,11 L7,11 L7,9.00369263 C7,8.89323568 7.08954305,8.80369263 7.2,8.80369263 C7.2549016,8.80369263 7.30738916,8.82626165 7.34515712,8.86610844 L10.1852182,11.8624926 C10.2583124,11.93961 10.258346,12.0604218 10.1852948,12.13758 L7.34523376,15.1373102 C7.2692928,15.2175206 7.14270711,15.2209817 7.06249671,15.1450407 C7.02260076,15.1072683 7,15.0547472 7,14.9998069 L7,12.9043747 C4.79351111,12.9043747 2.8018683,12.9266213 1.02507156,12.9711145 L1.02507252,12.9711526 C0.472939773,12.9849787 0.014139487,12.5485949 0.000313396522,11.9964622 C0.000104473692,11.988119 -1.32268838e-12,11.9797736 -1.3231638e-12,11.9714278 L-1.83320026e-12,3 L2,3 L2,10.8 C2,10.9104569 2.08954305,11 2.2,11 Z"})}),{shouldForwardProp:function(e){return"direction"!==e&&"isFirst"!==e&&"isLast"!==e}})((function(e){var t=e.direction,n=e.isFirst,r=e.isLast;return{color:UJ.ICONS.COLOR.PRIMARY,marginTop:"1px",marginLeft:"ltr"!==t||n?void 0:"2px",marginRight:"rtl"!==t||r?void 0:"2px"}})),BZ(PJ)((function(){return{padding:"4px 12px","&:focus":HJ({},UJ.FOCUS)}})),BZ(jJ)((function(){return{marginRight:0,justifyContent:"center"}})),BZ((function(e){var t=e.className;return y_.createElement(BJ,{className:t,path:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2 3 3Z"})}))((function(){return{color:UJ.ICONS.COLOR.SECONDARY}}));var YJ=Object.prototype.hasOwnProperty,KJ=Object.prototype.toString,GJ=Object.defineProperty,XJ=Object.getOwnPropertyDescriptor,ZJ=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===KJ.call(e)},JJ=function(e){if(!e||"[object Object]"!==KJ.call(e))return!1;var t,n=YJ.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&YJ.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||YJ.call(e,t)},QJ=function(e,t){GJ&&"__proto__"===t.name?GJ(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},eQ=function(e,t){if("__proto__"===t){if(!YJ.call(e,t))return;if(XJ)return XJ(e,t).value}return e[t]};!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,n,r,i,o,a,s=arguments[0],l=1,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=eQ(s,n),s!==(i=eQ(t,n))&&(u&&i&&(JJ(i)||(o=ZJ(i)))?(o?(o=!1,a=r&&ZJ(r)?r:[]):a=r&&JJ(r)?r:{},QJ(s,{name:n,newValue:e(u,a,i)})):void 0!==i&&QJ(s,{name:n,newValue:i}));return s}));var tQ,nQ=function(e){var t=e.dock,n=e.settings.label,r="center"===t,i=r?{}:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"};return y_.createElement("span",{style:i,title:n},r?n:"* ".concat(n))},rQ={renderer:"react",disableTriggers:!0,key:"disclaimer",defaultSettings:{settings:{isRTL:!1,label:void 0},style:{fontFamily:'"Source Sans Pro", "Arial", "sans-serif"'}},preferredSize:function(){return 22},render:function(){var e=this.rect,t=this.settings,n=t.layout,r=t.settings,i=t.style;return function(e){var t=e.dock,n=e.rect,r=e.settings,i=e.styling,o=function(e){var t=e.dock;return"top"!==t&&"bottom"!==t||!e.isRTL?"ltr":"rtl"}({dock:t,isRTL:r.isRTL}),a=function(e){var t=e.dock,n=e.rect,r={pointerEvents:"auto",display:"flex",justifyContent:"center",alignItems:"center",color:"#7b7a78",fontStyle:"italic",fontSize:"13px",fontFamily:e.styling.fontFamily};return"left"===t&&(r.width="".concat(n.height,"px"),r.transform="rotate(-90deg) translate(-".concat(n.height,"px, 0)"),r.transformOrigin="top left"),"right"===t&&(r.width="".concat(n.height,"px"),r.transform="rotate(90deg) translate(0, -".concat(n.width,"px)"),r.transformOrigin="top left"),"center"===t&&(r.width="".concat(n.width,"px"),r.height="".concat(n.height,"px"),r.color="#595959",r.fontStyle="normal",r.fontSize="1.2em",r.textAlign="center"),"bottom"!==t&&"top"!==t||(r.justifyContent="flex-start",r.alignItems="flex-start"),r}({dock:t,rect:n,styling:i});return y_.createElement("div",{dir:o,style:a},y_.createElement(nQ,{dock:t,settings:r}))}({dock:n.dock,rect:e,settings:r,styling:i})}},iQ=KV;tQ=iQ.createRoot,iQ.hydrateRoot;var oQ=dZ({spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:14,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:600,fontWeightBold:700,htmlFontSize:14,fontFamily:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif",button:{fontWeight:600,fontSize:14,textTransform:"none"}},shape:{borderRadius:3},components:{MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"qcm-focus-visible"}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"qcm-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"116px",minWidth:"24px",fontSize:141,borderRadius:3,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transform:"translate3d(0,0,0)"},text:{padding:"8px 16px","&:active":{backgroundColor:"rgba(0, 0, 0, 0.1)"},"&.Mui-focusVisible":{boxShadow:"inset 0 0 0 2px ".concat("#177FE6")}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"}},variants:[]},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:14,height:"32px"}}},MuiListItemIcon:{styleOverrides:{root:{color:"#404040",minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:14,color:"#404040",lineHeight:"16px",fontWeight:600},secondary:{fontSize:12,color:"#737373",fontWeight:400,lineHeight:"16px"}}}}});function aQ(e){var t={x:0,y:0,width:0,height:0,scaleRatio:{x:1,y:1},margin:{left:0,top:0}},n=e||{},r=n.x,i=n.y,o=n.width,a=n.height,s=n.scaleRatio,l=n.margin;return t.x=Number.isNaN(r)||void 0===r?t.x:r,t.y=Number.isNaN(i)||void 0===i?t.y:i,t.width=Number.isNaN(o)||void 0===o?t.width:o,t.height=Number.isNaN(a)||void 0===a?t.height:a,void 0!==s&&(t.scaleRatio.x=Number.isNaN(s.x)?t.scaleRatio.x:s.x,t.scaleRatio.y=Number.isNaN(s.y)?t.scaleRatio.y:s.y),void 0!==l&&(t.margin.left=Number.isNaN(l.left)?0:l.left,t.margin.top=Number.isNaN(l.top)?0:l.top),t}function sQ(){var e={rendererBox:aQ(),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=aQ(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=tQ(e.container)),t.appendChild(e.container),e.container},setKey:function(t){e.container&&e.container.setAttribute("data-key",t)},render:function(t){if(!e.container)return!1;var n=e.rendererBox,r=n.scaleRatio.x,i=n.scaleRatio.y;return e.container.style.left="".concat(Math.round(n.margin.left+n.x*r),"px"),e.container.style.top="".concat(Math.round(n.margin.top+n.y*i),"px"),e.container.style.width="".concat(Math.round(n.width),"px"),e.container.style.height="".concat(Math.round(n.height),"px"),e.container.style.transform="scale(".concat(r,", ").concat(i,")"),e.container.style.transformOrigin="top left",e.root.render(function(e){var t=e.nodes;return y_.createElement(y_.StrictMode,null,y_.createElement(WZ,{theme:oQ},t))}({nodes:t})),!0},findShapes:function(){return[]},itemsAt:function(){return[]},clear:function(){t()},destroy:function(){t()}}}function lQ(e){return Ly(e).l<70}function cQ(e,t){const n=Ly(e).l/100,r=Ly(t).l/100;return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}function uQ(e,t){return{x:t.x+e.r*Math.sin(e.a),y:t.y-e.r*Math.cos(e.a)}}var dQ={require:["chart","settings"],defaultSettings:{settings:{},style:{}},render(){return function({chart:e,settings:t}){const n=e.component(t.component);if(!n)return[];const r=e.findShapes(t.selector).filter((e=>e.key===t.component));if(r.length<2)return[];if(n.settings.settings.slice.cornerRadius>0||n.settings.settings.slice.strokeWidth>0)return[];const i=[];let o=r[r.length-1];for(let e=0;e<r.length;e+=1){const t=r[e],n=o.attrs.fill,a=t.attrs.fill;if(cQ(a,n)<=1.2){const{start:e,offset:n}=t.desc.slice;let{innerRadius:r,outerRadius:s}=t.desc.slice;if(r=Math.max(r,o.desc.slice.innerRadius),s=Math.min(s,o.desc.slice.outerRadius),s>r){const t=uQ({r:s,a:e},n),o=uQ({r:r,a:e},n);i.push({type:"line",x1:t.x,y1:t.y,x2:o.x,y2:o.y,strokeWidth:1,opacity:.4,stroke:lQ(a)?"#ccc":"#333"})}}o=t}return i}({chart:this.chart,rect:this.rect,style:this.style,settings:this.settings.settings})}};function fQ(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 hQ(e){const{size:t,angle:n}=e,r={x:e.x,y:e.y},i=t/2,o=e.x-i,a=e.y-i;let s=[{x:o,y:a+t},{x:o+i,y:a},{x:o+t,y:a+t},{x:o,y:a+t}];return s=s.map((e=>function(e,t,n={x:0,y:0}){const r=Math.cos(t),i=Math.sin(t),o=(s=n,{x:(a=e).x-s.x,y:a.y-s.y});var a,s;return function(e,t){return{x:e.x+t.x,y:e.y+t.y}}({x:r*o.x-i*o.y,y:i*o.x+r*o.y},n)}(e,n,r))),{type:"path",fill:e.fill,d:fQ(s)}}var pQ={require:["chart"],defaultSettings:{settings:{},style:{}},render(){return function({chart:e,settings:t}){if(!e.component(t.component))return[];const n=e.findShapes(t.selector).filter((e=>e.key===t.component));if(n.length<2)return[];const r=[];for(let e=0;e<n.length;e+=1){const a=n[e];if(a.data.radius.value<0){const{start:e,end:n,offset:s}=a.desc.slice,l=(e+n)/2,c=(i={r:t.offset,a:l},{x:(o=s).x+i.r*Math.sin(i.a),y:o.y-i.r*Math.cos(i.a)}),u=hQ({size:t.size,fill:t.fill,angle:l+Math.PI,...c});u.data={...a.data,_share:a.desc.share,_fillColor:a.attrs.fill},r.push(u)}}var i,o;return r}({chart:this.chart,rect:this.rect,style:this.style,settings:this.settings.settings})}};function mQ(){const e=_p();return e.use(hg),e.use(function(e){if("function"!=typeof e.interaction)return t=>{t.interaction("hammer",gg(e))};e.interaction("hammer",gg(Hammer))}(a)),e.use((function(e){e.renderer("react",PU()),e.component("data-title",NU(e.renderer("svg")()))})),e.renderer("react-qcm",sQ),e.component("disclaimer",rQ),e.component("pie-dividers",dQ),e.component("negative-indicators",pQ),e}var gQ={};function yQ(){yQ.init.call(this)}gQ.isObject=function(e){return"object"==typeof e&&null!==e},gQ.isNumber=function(e){return"number"==typeof e},gQ.isUndefined=function(e){return void 0===e},gQ.isFunction=function(e){return"function"==typeof e};var vQ=yQ;yQ.EventEmitter=yQ,yQ.prototype._events=void 0,yQ.prototype._maxListeners=void 0,yQ.defaultMaxListeners=10,yQ.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},yQ.prototype.setMaxListeners=function(e){if(!gQ.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},yQ.prototype.emit=function(e){var t,n,r,i,o,a;if(this._events||(this._events={}),"error"===e&&!this._events.error)throw(t=arguments[1])instanceof Error?t:Error('Uncaught, unspecified "error" event.');if(n=this._events[e],gQ.isUndefined(n))return!1;if(gQ.isFunction(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:for(r=arguments.length,i=new Array(r-1),o=1;o<r;o++)i[o-1]=arguments[o];n.apply(this,i)}else if(gQ.isObject(n)){for(r=arguments.length,i=new Array(r-1),o=1;o<r;o++)i[o-1]=arguments[o];for(r=(a=n.slice()).length,o=0;o<r;o++)a[o].apply(this,i)}return!0},yQ.prototype.addListener=function(e,t){var n;if(!gQ.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,gQ.isFunction(t.listener)?t.listener:t),this._events[e]?gQ.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,gQ.isObject(this._events[e])&&!this._events[e].warned)&&((n=gQ.isUndefined(this._maxListeners)?yQ.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,gQ.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),gQ.isFunction(console.trace)&&console.trace()));return this},yQ.prototype.on=yQ.prototype.addListener,yQ.prototype.once=function(e,t){if(!gQ.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},yQ.prototype.removeListener=function(e,t){var n,r,i,o;if(!gQ.isFunction(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(i=(n=this._events[e]).length,r=-1,n===t||gQ.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(gQ.isObject(n)){for(o=i;o-- >0;)if(n[o]===t||n[o].listener&&n[o].listener===t){r=o;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},yQ.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],gQ.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},yQ.prototype.listeners=function(e){return this._events&&this._events[e]?gQ.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},yQ.listenerCount=function(e,t){return e._events&&e._events[t]?gQ.isFunction(e._events[t])?1:e._events[t].length:0};var bQ=r(vQ);const xQ=e=>(Object.keys(bQ.prototype).forEach((t=>{e[t]=bQ.prototype[t]})),bQ.init(e),e);function wQ({picasso:t}){var n;const r=e.useOptions(),i=e.useElement(),o=e.useSelections(),[a,s]=e.useState(),l=function(){const e={};return xQ(e),e.lasso={active:()=>!1},e.select={on:e.on,removeListener:e.removeListener},e}(),c=e.useLayout(),u=e.useTranslator(),d=!(null===(n=c.qSelectionInfo)||void 0===n||!n.qInSelections),[f,h]=e.useState(!1);return l.lasso=function({layout:e,isInSelections:t,isLassoActionActive:n,setIsLassoActionActive:r,translator:i}){var o;return{active:n,label:i.get(n?"Tooltip.ToggleOffLassoSelection":"Tooltip.ToggleOnLassoSelection"),hidden:!t||!(null===(o=e.qHyperCube)||void 0===o||null===(o=o.qDimensionInfo)||void 0===o||null===(o=o[0])||void 0===o||!o.qIsOneAndOnlyOne),action(e){r("boolean"==typeof e?e:!n)},icon:{shapes:[{type:"path",attrs:{d:"M15.9488039,5.20769129 C16.0487326,6.70662306 15.3492311,8.30548361 14.050157,9.30477145 C12.651154,10.5039169 10.8524359,10.8037032 8.85386017,10.4039881 L7.3549284,10.0042729 L5.75606786,9.70448659 C5.75606786,9.90434416 5.65613907,10.0042729 5.4562815,10.2041305 C5.05656637,10.6038456 4.55692244,10.8037032 4.05727852,10.8037032 C3.75749217,10.8037032 3.45770582,10.7037744 3.15791946,10.6038456 C3.05799068,10.903632 3.15791946,11.2034184 3.45770582,11.7030623 C5.05656637,14.0014243 3.85742095,15.9000712 3.75749217,16 L2.2585604,15.3004985 C2.2585604,15.2005697 2.95806189,14.0014243 1.95877405,12.6024213 C1.6589877,12.0028486 1.15934378,11.0035608 1.55905891,10.0042729 C1.6589877,9.80441537 1.75891648,9.6045578 1.95877405,9.40470024 C1.6589877,8.90505631 1.55905891,8.30548361 1.85884527,7.7059109 C1.55905891,7.40612455 1.25927256,7.1063382 1.15934378,6.70662306 C0.859557424,5.90719279 0.959486209,4.5081898 1.6589877,3.30904439 C1.95877405,2.6095429 2.55834676,2.0099702 3.15791946,1.51032628 C3.95734974,0.91075357 4.95663758,0.610967217 6.15578299,0.311180864 C9.05371774,-0.388320626 11.9516525,0.111323295 13.9502282,1.61025506 C15.1493736,2.50961412 15.8488751,3.80868831 15.9488039,5.20769129 Z M13.0508691,8.10562604 C13.8502994,7.40612455 14.3499433,6.40683671 14.3499433,5.30762008 C14.2500145,4.20840345 13.550513,3.40897318 12.9509403,2.90932926 C12.1515101,2.40968533 11.252151,2.0099702 10.1529344,1.81011263 C8.95378895,1.61025506 7.75464354,1.71018384 6.45556935,1.91004141 C4.75678001,2.30975655 3.65756338,3.00925804 3.05799068,4.10847467 C2.55834676,5.00783373 2.65827554,5.90719279 2.75820433,6.20697914 C2.75820433,6.30690792 2.85813311,6.40683671 3.05799068,6.40683671 C3.15791946,6.40683671 3.25784825,6.40683671 3.35777703,6.40683671 C3.45770582,6.40683671 3.45770582,6.40683671 3.45770582,6.40683671 L3.5576346,6.40683671 L3.65756338,6.40683671 C4.65685123,6.40683671 5.4562815,6.90648063 5.85599664,7.80583969 L5.85599664,8.00569726 C6.35564056,8.10562604 7.05514205,8.30548361 7.75464354,8.50534118 L9.25357531,8.90505631 C10.0530056,9.0049851 10.7525071,9.0049851 11.4520086,8.80512753 C12.0515813,8.70519875 12.5512252,8.40541239 13.0508691,8.10562604 Z"}}]}}}({layout:c,isInSelections:d,isLassoActionActive:f,setIsLassoActionActive:h,translator:u}),e.useAction((()=>(a&&(a.interactions.lasso.active=()=>f),{...l.lasso})),[a,f,d,u.language()]),e.useEffect((()=>{i.style.overflow="hidden";const e=t({renderer:{prio:[r.renderer||"canvas"]}}),n=e.chart({element:i,data:[],settings:{}}),a=UM({chart:n,actions:l,selections:o,config:{selectionActions:!1}});a.setLayout(c),a.setBrushAliases({colorField:"qDimensionInfo/0/qAttrDimInfo/0"});const u=function(e){var t=xw({},e),n={},r={},i=!1,o={get:function(e){return t[e]},set:function(e,o){var a=t[e];!i&&n[e]?t[e]=n[e](o,a):t[e]=o,!i&&r[e]&&r[e](t[e],a)},preventSet:function(e,t){i=!0,o.set(e,t),i=!1},intercept:function(e,t){n[e]=t},onChanged:function(e,t){r[e]=t}};return o}({legendScrollOffset:0,rotation:0});u.intercept("rotation",(e=>(u.get("rotation")+e)%(2*Math.PI))),u.onChanged("rotation",(()=>{n.update({partialData:!0})}));const d=AS();return l.on("selections-start",(()=>{n.brush("selection").start()})),s({picasso:e,chart:n,selectionService:a,viewState:u,viewCache:d,interactions:l}),()=>{a.destroy(),n.destroy(),l.removeAllListeners(),delete l.select,u.intercept("rotation",void 0),u.onChanged("rotation",void 0)}}),[]),a}const kQ={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 SQ(e){const t=e.split("/");return"qmem:"===t[0]&&""===t[1]}const CQ={getImageSize(e,t){let n;function r(){n&&(clearTimeout(n),n=null)}function i(e){const t=e;t.onload=null,t.onerror=null,r()}const o={small:50,medium:200,large:340,original:340};return new Promise((a=>{const s=new Image;s.referrerPolicy="no-referrer",s.onload=()=>{let e;const{height:n,width:l}=s,c=o[t]*(n>l?1:n/l),u=o[t]*(l>n?1:l/n);!n||!l||0===n&&0===l?(e={height:20,width:20,imageError:!0},i(s)):"original"===t?(e={height:Math.min(c,n),width:Math.min(u,l)},r()):(e={height:c,width:u},r()),a(e)},s.onerror=()=>{i(s),a({height:20,width:20,imageError:!0})},s.src=e,n=setTimeout((()=>{i(s),a({height:20,width:20,imageError:!0})}),3e3)}))}};async function MQ(e,t,n){let r=e.ref.qStaticContentUrl.qUrl;const i=function(e){var t,n,r;let i,o,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(i=e.session.options||(null===(u=e.enigmaModel)||void 0===u?void 0:u.session.sessionConfig),!i){var d;i=null===(d=e.session)||void 0===d?void 0:d.config;const t=new URL(i.url);i.host=t.hostname,i.port=t.port,i.isSecure="wss:"===t.protocol}return c=void 0!==i.secure?i.secure:i.isSecure,o=c?"https://":"http://",a=i.host||"localhost",s=i.port?`:${i.port}`:"",l=i.prefix?i.prefix:"/","/"!==l[l.length-1]&&(l=`${l}/`),o+a+s+l}return""}(n);i&&(!function(e,t){const n=e.replace(t,"").replace(/^\.\.\//i,"/");n[0]}(r,i),r=r.replace(/"/g,'\\"'),r=r.replace(/'/g,"\\'"),r=function(e,t){return t+("/"===e[0]?e.substr(1):e)}(r,i));const{height:o,width:a,imageError:s}=await CQ.getImageSize(r,t);return{src:r,size:t,height:o,width:a,imageError:s}}async function EQ(e,t,n,r){var i,o,a;const{app:s,flags:l}=t,c=null===(i=e.layout)||void 0===i||null===(i=i.tooltip)||void 0===i?void 0:i.imageComponents;if(!c)return[];const[u]=c,d=u.size||"small",f=u.type||"media";let h=-1;for(let e=0;e<n.length;e++)if(n[e].cId===u.cId){h=e;break}const p=(null===(o=r.data)||void 0===o||null===(o=o.customTooltipAttrExps)||void 0===o?void 0:o.value)||[];let m;if(-1!==h&&p[h]&&(m=p[h]),"media"===f&&null!==(a=u.ref)&&void 0!==a&&null!==(a=a.qStaticContentUrl)&&void 0!==a&&a.qUrl)return MQ(u,d,s);if("url"===f)return async function(e,t,n,r,i){let o,a=n.ref;if(i&&i.label&&(a=i.label),t.isEnabled("IMAGE_BUNDLE_LOAD")&&null!=e&&e.getImage&&SQ(a))try{const t=`data:image/png;base64, ${await e.getImage(a)}`,{height:n,width:i,imageError:s}=await CQ.getImageSize(t,r);o={src:t,size:r,height:n,width:i,imageError:s}}catch(e){}else{const{height:e,width:t,imageError:n}=await CQ.getImageSize(a,r);o={src:a,size:r,height:e,width:t,imageError:n}}return o}(s,l,u,d,m);if(l.isEnabled("IMAGE_BUNDLE_LOAD")&&"field"===f&&m&&m.label){return async function(e,t,n,r){let i;const o=r.label,a=`qmem://${t.qFallbackTitle}/${o}`;if(SQ(a))try{const t=await e.getImage(a);if(t){const e=`data:image/png;base64, ${t}`,{height:r,width:o,imageError:a}=await CQ.getImageSize(e,n);i={src:e,size:n,height:r,width:o,imageError:a}}}catch(e){}return i}(s,n[h],d,m)}return[]}const _Q={async addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){const i=t,o=[];for(let t=0;t<i.length;t++)o.push(EQ(e,r,n,i[t]));const a=await Promise.all(o);for(let e=0;e<i.length;e++)i[e].data.customTooltipImages=[a[e]];return i},checkIfPromisesExist({customTooltipModel:e}){var t;const n=null===(t=e.layout)||void 0===t||null===(t=t.tooltip)||void 0===t?void 0:t.imageComponents;return!!n&&n.length>0}},DQ={async handlePromises({customTooltipModel:e,nodes:t,attrExps:n,opts:r}){let i=t;return i=await _Q.addImagesToTheNodes({customTooltipModel:e,nodes:t,attrExps:n,opts:r}),i},checkIfPromisesExist:({customTooltipModel:e})=>_Q.checkIfPromisesExist({customTooltipModel:e})};const qQ=(e,t)=>{var n,r,i;const o=null==e||null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qDimensions,a=null==e||null===(r=e.qHyperCubeDef)||void 0===r?void 0:r.qMeasures,s=null==e||null===(i=e.qHyperCubeDef)||void 0===i?void 0:i.qInterColumnSortOrder,l=t;return{qInfo:{qType:kQ.CHART.CHART_PARENT_TYPE,qId:kQ.CHART.CHART_OBJECT_ID},qHyperCubeDef:{qDimensions:o,qMeasures:a,qInterColumnSortOrder:s,qInitialDataFetch:[{qWidth:0,qHeight:0}]},qStateName:l}},TQ=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:kQ.CHART.CHART_CHILD_TYPE},qExtendsId:n}};const RQ={createContainer:({ctx:e,layout:t})=>{var n;if(!((null===(n=t.qHyperCube)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.length)<=0))return function(e,t){var n,r;const i=null!==(n=null===(r=t.tooltip)||void 0===r||null===(r=r.chart)||void 0===r||null===(r=r.style)||void 0===r?void 0:r.size)&&void 0!==n?n:"medium",o=kQ.CHART.STYLE[i];return[{content:[e.h("div",{style:{display:"flex",width:o,height:o,backgroundColor:"#FFFFFF",borderRadius:"5px",padding:"2px",color:"#595959"},colspan:2,id:kQ.CHART.CONTAINER_ID})],colspan:2,style:{"text-align":e.rtl?"right":"left","max-width":o,width:"100%"}},{}]}(e,t)},show:async({app:e,properties:t,selectedNodes:n,dimIndex:r,customTooltipModel:i,rtl:o})=>{var a;const s=i,l=null==t||null===(a=t.tooltip)||void 0===a||null===(a=a.chart)||void 0===a||null===(a=a.object)||void 0===a?void 0:a.refId;if(null!=s&&s.embed&&e.removeSessionAlternateState&&e.addSessionAlternateState&&l&&!(t.qHyperCubeDef.qDimensions.length<=0)){await RQ.hide({app:e,customTooltipModel:i});try{await async function({app:e,properties:t,customTooltipModel:n}){const r=n,i=kQ.CHART.STATE,o=t.qStateName;r.miniChartToken.alternateState||(r.miniChartToken.alternateState=i,await e.addSessionAlternateState(i,o),r.miniChartToken.alternateState=i)}({app:e,properties:t,customTooltipModel:i});const a=await async function({app:e,properties:t,customTooltipModel:n}){var r;const i=n;null!==(r=i.miniChartToken.sessionObj)&&void 0!==r&&r.id&&await e.destroySessionObject(i.miniChartToken.sessionObj.id);const o=kQ.CHART.STATE,a=qQ(t,o),s=await e.createSessionObject(a),l=TQ(t);if(s.id!==kQ.CHART.CHART_OBJECT_ID)return void e.destroySessionObject(s.id);i.miniChartToken.sessionObj=s;const c=await s.createChild(l);if(i.miniChartToken.sessionObj&&i.miniChartToken.sessionObj.id===s.id)return i.miniChartToken.model=c,c;e.destroySessionObject(s.id)}({app:e,properties:t,customTooltipModel:i});if(s.miniChartToken.alternateState&&s.miniChartToken.sessionObj&&a){var c,u,d,f;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 h,p;const e=null!==(h=n[0].data.selectionOuterDimension)&&void 0!==h?h:n[0].data.selectionDimension;if(null!=e&&null!==(p=e.source)&&void 0!==p&&p.field){var m;const t=null==e||null===(m=e.source)||void 0===m?void 0:m.field.split("/"),n=t[t.length-1],r=void 0!==e.value?[e.value]:[];r.length>0&&void 0!==n&&s.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",Number(n),r,!1)}}e.length>0&&s.miniChartToken.sessionObj.selectHyperCubeValues("/qHyperCubeDef",a,e,!1);const l=document.getElementById(kQ.CHART.CONTAINER_ID),g={direction:o?"rtl":"ltr",isReadonly:!0,isPopover:!0,navigation:!1,selections:!1};s.miniChartToken.vis=await i.embed.render({element:l,model:s.miniChartToken.model,options:g,id:null===(d=s.miniChartToken.model)||void 0===d?void 0:d.id,type:null===(f=s.miniChartToken.model)||void 0===f?void 0:f.genericType})}}catch(t){await RQ.hide({app:e,customTooltipModel:i})}}},hide:async({app:e,customTooltipModel:t})=>{const n=t;null!=n&&n.embed&&(RQ.destroyVisualization({customTooltipModel:t}),await e.destroySessionObject(kQ.CHART.CHART_OBJECT_ID),n.miniChartToken.sessionObj=void 0,await async function({app:e,customTooltipModel:t}){const n=t,r=kQ.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 NQ(e){const t=e.qHyperCubeDef?e.qHyperCubeDef.qDimensions:e.qHyperCube.qDimensionInfo;if(t&&t.length>0)return t}function OQ(){const{EXPRESSION:e,TITLE:t,DESCRIPTION:n,IMAGES:r}=kQ.CUSTOM,i={};return i[e]=!0,i[t]=!0,i[n]=!0,i[r]=!0,i}function AQ(e){const t=OQ();return e.filter((e=>t[e.id]))}const PQ={getNodes(e,t){const n=function(e,t){let n=0,r=0;e.center?(n+=e.center.x,r+=e.center.y):(n+=e.clientX,r+=e.clientY);const i=t.element.getBoundingClientRect();return{cx:n-i.left,cy:r-i.top}}(e,t);return t.shapesAt({x:n.cx,y:n.cy})},getDataNodes(e,t){let n,r=[];const i={container:{bar:!0,"bullet-axis":!0},circle:{"point-component":!0}};return t.forEach((t=>{var o,a,s,l;const c=null!==(o=null===(a=t.data)||void 0===a?void 0:a.selectionDimension)&&void 0!==o?o:t.data;if(!c||null!==(s=t.data)&&void 0!==s&&s.customTooltipAttrExps||i[t.type]){if(null!==(l=t.data)&&void 0!==l&&l.customTooltipAttrExps&&!t.data.customTooltipImages){const e=t;e.data.customTooltipImages=[],r.push(e)}}else{n||(n=[],Object.keys(i).forEach((t=>{n=n.concat(e.findShapes(t).filter((e=>e.data&&e.data.customTooltipAttrExps&&!e.data.customTooltipImages&&i[t][e.key])))})));const t=n.filter((e=>{var t,n;const r=null!==(t=null!==(n=e.data.stack)&&void 0!==n?n:e.data.selectionOuterDimension)&&void 0!==t?t:e.data.selectionDimension;return r&&r.value===c.value&&r.label===c.label}));t.length>0&&(r=r.concat(t[0]))}})),r},displayTooltip(e,t,{nodes:n,opts:r={},customTooltipModel:i,extractedNodes:o=[],hide:a}){if(i&&!a){const{layout:a,chart:s}=i,{attrExps:l}=PQ.getAttrExprData(a);o.length||n.length?DQ.handlePromises({customTooltipModel:i,nodes:PQ.getDataNodes(s,o.length>0?o:n),attrExps:l,opts:r}).then((()=>{t.emit("show",e,n.length?{nodes:n}:void 0)})):t.emit("show",e,n.length?{nodes:n}:void 0)}else{var s;null!=i&&null!==(s=i.miniChartToken)&&void 0!==s&&s.alternateState&&RQ.hide({app:r.app,customTooltipModel:i}),t.emit("hide")}},checkIfPromisesExist:({customTooltipModel:e})=>DQ.checkIfPromisesExist({customTooltipModel:e}),getAttrExps(e,t){var n;const r=t,i=null!==(n=e.qHyperCubeDef)&&void 0!==n&&n.qDimensions?"qAttributeExpressions":"qAttrExprInfo";return r[i]||(r[i]=[]),r[i]},getAttrExprData(e){var t;let n=[],r="";const i=(null===(t=e.qHyperCube)||void 0===t?void 0:t.qDimensionInfo)||[];if(i.length>0){var o;const t=i.length-1;n=(null===(o=e.qHyperCube)||void 0===o||null===(o=o.qDimensionInfo)||void 0===o||null===(o=o[t])||void 0===o?void 0:o.qAttrExprInfo)||[],r=`qDimensionInfo/${t}/qAttrExprInfo`}return{attrExps:n,fieldPath:r}},quarantineCustomTooltipAttrs(e,t={}){var n;if(!(null===(n=e.qLayoutExclude)||void 0===n||null===(n=n.quarantine)||void 0===n?void 0:n[kQ.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[kQ.CUSTOM.QUARANTINE]=[],e.forEach((e=>{r.quarantine[kQ.CUSTOM.QUARANTINE].push(e)})),n.qLayoutExclude=r}(AQ(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[kQ.CUSTOM.QUARANTINE])&&delete n.qLayoutExclude.quarantine[kQ.CUSTOM.QUARANTINE]},setAttrsFromQuarantine(e,t){const n=NQ(e);if(!n)return;const r=void 0!==t?t:n.length-1;if(!n[r])return;const i=this.getAttrExps(e,n[r]);if(0===AQ(i).length){var o;const t=(null===(o=e.qLayoutExclude)||void 0===o||null===(o=o.quarantine)||void 0===o?void 0:o.customTooltip)||[],n=[...i,...t],a=e;a.qHyperCubeDef?a.qHyperCubeDef.qDimensions[r].qAttributeExpressions=n:a.qHyperCube.qDimensionInfo[r].qAttrExprInfo=n}},moveCustomTooltipAttrs(e,t={},n){let r=[];const i=NQ(e)||[];[...i,t].forEach((e=>{const t=AQ(e.qAttributeExpressions||[]);t.length>0&&(r=t)}));const o=OQ(),a=i.map((e=>{const t=e,n=e.qAttributeExpressions||[];return t.qAttributeExpressions=n.filter((e=>!o[e.id])),t})),s=void 0!==n?n:a.length-1;a.length>0&&(a[s].qAttributeExpressions=a[s].qAttributeExpressions.concat(r));const l=e;e.qHyperCubeDef?l.qHyperCubeDef.qDimensions=a:l.qHyperCube.qDimensionInfo=a},addCallbackCustomTooltip(e){e.qHyperCubeDef.qDimensions.length>1?this.moveCustomTooltipAttrs(e):(this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e))},moveCallbackCustomTooltip(e,t){1===e.qHyperCubeDef.qDimensions.length&&(this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e)),e.qHyperCubeDef.qDimensions.length>1&&this.moveCustomTooltipAttrs(e,t)},removeCallbackCustomTooltip(e,t){e.qHyperCubeDef.qDimensions.length>0?this.moveCustomTooltipAttrs(e,t):this.quarantineCustomTooltipAttrs(e,t)},replaceCallbackCustomTooltip(e,t){e.qHyperCubeDef.qDimensions.length>1?this.moveCustomTooltipAttrs(e,t):(this.quarantineCustomTooltipAttrs(e,t),this.setAttrsFromQuarantine(e),this.unquarantineCustomTooltipAttrs(e))},shouldIgnoreDefaultRows(e){var t;return(null===(t=e.tooltip)||void 0===t?void 0:t.hideBasic)||0},DEBOUNCE_THRESHOLD:50,getFooterRow:(e,t)=>[{content:e,style:{"font-style":"italic","font-size":"12px","line-height":"16px",color:"rgba(255, 255, 255, 0.6)","text-align":t?"right":"left",direction:Lg.detectTextDirection(e)},colspan:2},{}],getImageRow(e,t){const n=Lg.detectTextDirection(e.src),r=[],i={style:{display:"block","margin-left":"auto","margin-right":"auto",overflow:"hidden",width:e.width,height:e.height}};if("original"===e.size||e.imageError){r.push(t.h("span",{style:{display:"inline-block",height:"100%","vertical-align":"middle"}}));const n=e.imageError?`${e.src}?${Math.random()}`:e.src;r.push(t.h("img",{style:{"max-width":e.width,"max-height":e.height,"vertical-align":"middle"},src:n,referrerpolicy:"no-referrer"})),i.style["text-align"]="center",i.style["white-space"]="nowrap"}else i.style["background-size"]="contain",i.style["background-repeat"]="no-repeat",i.style["background-position"]="center",i.style["background-image"]=`url('${e.src}')`;return[{content:[t.h("div",i,r),""],style:{"text-align":t.rtl?"right":"left",direction:n,"max-width":e.width},colspan:2},{}]}};function IQ(e,t,n,r){var i;const o=(null===(i=t.qHyperCube)||void 0===i||null===(i=i[n])||void 0===i||null===(i=i[r])||void 0===i?void 0:i.qAttrExprInfo)||[],a=[],s=e.qSubNodes&&e.qSubNodes[r]?e.qSubNodes[r].qAttrExps:e.qAttrExps;return s?(o.forEach(((e,t)=>{const i=s.qValues&&s.qValues[t]?s.qValues[t]:void 0,o=void 0===i?"NaN":function(e,t){let n;switch(e.id){case kQ.CUSTOM.EXPRESSION:n="NaN"===t.qNum||e.isCustomFormatted?void 0===t.qText?"NaN":t.qText:t.qNum;break;case kQ.CUSTOM.TITLE:case kQ.CUSTOM.DESCRIPTION:case kQ.CUSTOM.IMAGES:n=void 0===t.qText?e.qFallbackTitle:t.qText;break;default:n="NaN"}return n}(e,i);a.push({source:{key:"qHyperCube",field:`${n}/${r}/qAttrExprInfo/${t}`},label:o,value:"value"})})),a):a}const LQ={getNode(e,{dimensionCount:t}){if(!t||t<1)return;const n=t-1,r="qDimensionInfo";return{field:`${r}/${n}`,value:t=>IQ(t,e,r,n)}}};const zQ={getCustomAttrExps(e,t,n){var r;const i={customTooltipAttrExpsArr:[],customTooltipInfoAttrExpsArr:[]},o=(null===(r=t.data)||void 0===r||null===(r=r.customTooltipAttrExps)||void 0===r?void 0:r.value)||[];if(Number.isNaN(o))return i;return function(e,t,n,r){const i={[kQ.CUSTOM.TITLE]:!0,[kQ.CUSTOM.DESCRIPTION]:!0},{attrExps:o,fieldPath:a}=PQ.getAttrExprData(e);return 0===t.length||0===o.length||""===a||o.forEach(((e,o)=>{const s=t[o];if(e.id===kQ.CUSTOM.EXPRESSION&&s){const t=e.qFallbackTitle,i="NaN"===s.value||e.isCustomFormatted?s.value:n("qHyperCube").field(`${a}/${o}`).formatter()(s.value);r.customTooltipAttrExpsArr.push({label:t,value:i})}else if(i[e.id]&&s){const t="-"!==s.value&&"NaN"!==s.value?s.value:s.label;t&&"undefined"!==t&&r.customTooltipInfoAttrExpsArr.push({...e.id===kQ.CUSTOM.TITLE&&{title:t},value:t,id:e.id})}})),r}(n,o.map((t=>zg.getMeasure(e,t))),e,i)}};function FQ({nodes:e,layout:t,dataset:n}){const r=function(e,t,n){const r=[];return e.forEach((e=>{r.push(zQ.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 jQ(e){const t=kQ.CUSTOM.EXPRESSION,{qNumFormat:n,qLabel:r,qLabelExpression:i,cId:o}=e.qDef;return e.qLibraryId?{qLibraryId:e.qLibraryId,id:t,qNumFormat:n,qLabel:r,qLabelExpression:i,cId:o}:{qExpression:e.qDef.qDef,id:t,qNumFormat:n,qLabel:r,qLabelExpression:i,cId:o}}function $Q(e){var t;const n=null===(t=e.qHyperCubeDef)||void 0===t?void 0:t.qDimensions;return n[n.length-1].qAttributeExpressions||[]}const HQ={migrateProperties(e){var t,n;const r=Eg(!0,{},e),i=(null===(t=r.tooltip)||void 0===t||null===(t=t.data)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qMeasures)||[];let o=$Q(r);return o=function(e,t){return t.concat(e.map((e=>jQ(e))))}(i,o),function(e,t){var n;const r=null===(n=t.qHyperCubeDef)||void 0===n?void 0:n.qDimensions;r[r.length-1].qAttributeExpressions=e}(o,r),null===(n=r.tooltip)||void 0===n||delete n.data,r},getPatches(e){var t,n;const r=(null===(t=e.tooltip)||void 0===t||null===(t=t.data)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qMeasures)||[],i=(null===(n=e.qHyperCubeDef)||void 0===n?void 0:n.qDimensions.length)-1,o=function(e,t,n){let r=e.length;const i=[];return t.forEach((e=>{const t=jQ(e),o=JSON.stringify(t);i.push({qPath:`/qHyperCubeDef/qDimensions/${n}/qAttributeExpressions/${r}`,qOp:"add",qValue:o}),r++})),i.push({qPath:"/tooltip/data",qOp:"remove"}),i}($Q(e),r,i);return o},checkForBackwardCompatibility:(e,t)=>(e.qMeasureInfo||[]).length>0&&t.length>0,updateProperties(e,t){const n=new Promise((n=>{var r,i,o;const a=(null===(r=t.qHyperCube)||void 0===r?void 0:r.qDimensionInfo)||[],s=(null===(i=t.tooltip)||void 0===i||null===(i=i.data)||void 0===i?void 0:i.qHyperCube)||{},l=null===(o=t.qMeta)||void 0===o||null===(o=o.privileges)||void 0===o?void 0:o.includes("update");e&&e.getEffectiveProperties&&this.checkForBackwardCompatibility(s,a)&&e.getEffectiveProperties().then((t=>{if(l){const r=this.migrateProperties(t);e.setProperties(r).then((()=>{e.app.clearUndoBuffer(),n(!0)}))}else{const r=this.getPatches(t);e.applyPatches(r,!0).then((()=>{e.app.clearUndoBuffer(),n(!0)}))}})),n(!1)}));return n}};var VQ={attrExpr:HQ};const{CUSTOM:BQ}=kQ;function UQ({flags:e,layout:t,app:n,model:r,picasso:i,chart:o,translator:a,localeInfo:s,embed:l,options:c}){const u={properties:void 0},d=function({layout:e,app:t,picasso:n,model:r,chart:i,translator:o,localeInfo:a,embed:s}){return{layout:e,app:t,picasso:n,model:r,chart:i,translator:o,localeInfo:a,useCustomTooltip:e.tooltip&&!e.tooltip.auto,utils:PQ,miniChartToken:{},embed:s}}({layout:t,app:n,model:r,picasso:i,chart:o,translator:a,localeInfo:s,embed:l}),f="rtl"===c.direction,h=()=>{var e;const n=!(null===(e=u.properties)||void 0===e||null===(e=e.qHyperCubeDef)||void 0===e||!e.qDimensions.some((e=>{var t;return null===(t=e.qCalcCondition)||void 0===t||null===(t=t.qCond)||void 0===t?void 0:t.qv})));return!(!t.tooltip||t.tooltip.auto||n)};return{setProperties:e=>{u.properties=e},isEnabled:()=>h(),hideBasic:()=>h()&&RS(t,"tooltip.hideBasic",!1),getAttributes:({dataset:e,nodes:n})=>{var r,i;const o=FQ({dataset:e,nodes:n,layout:t});return{title:null===(r=o.customTooltipInfoAttrExpsArr.find((e=>e.id===BQ.TITLE)))||void 0===r?void 0:r.title,description:null===(i=o.customTooltipInfoAttrExpsArr.find((e=>e.id===BQ.DESCRIPTION)))||void 0===i?void 0:i.value,measures:o.customTooltipAttrExpsArr}},hasImages:()=>PQ.checkIfPromisesExist({customTooltipModel:d}),createImageRow:({value:e,h:t})=>PQ.getImageRow(e,{h:t,rtl:f}),addImages:({nodes:r})=>{const i=PQ.getDataNodes(o,r),{attrExps:a}=PQ.getAttrExprData(t);return DQ.handlePromises({customTooltipModel:d,nodes:i,attrExps:a,opts:{flags:e,app:n}})},chart:{isEnabled:()=>{return!!(h()&&null!==(e=t.tooltip)&&void 0!==e&&null!==(e=e.chart)&&void 0!==e&&null!==(e=e.object)&&void 0!==e&&e.refId&&l&&"function"==typeof(null==r?void 0:r.getEffectiveProperties));var e},hasLimitation:()=>{var e;return!(null==n||null===(e=n.isInModalSelection)||void 0===e||!e.call(n))},createContainer:({h:e})=>RQ.createContainer({layout:t,ctx:{h:e,rtl:f}}),createLimitationRow:()=>PQ.getFooterRow(a.get("properties.tooltip.notselectedmessage"),f),show:({nodes:e,properties:t})=>RQ.show({app:n,properties:t,selectedNodes:e,customTooltipModel:d,rtl:f}),hasAlternateState:()=>{var e;return!(null===(e=d.miniChartToken)||void 0===e||!e.alternateState)},hide:()=>RQ.hide({app:n,customTooltipModel:d}),destroy:()=>RQ.destroyVisualization({customTooltipModel:d})}}}function WQ(e){return{layout:e,keys:{SCALE:{FILL:"fill"},COMPONENT:{DIMENSION_TITLE:"dimension-title",SLICES:"slices",PIE_LABELS:"pie-labels"}}}}function YQ({flags:t,picasso:n,instance:r}){const i=e.useModel(),o=e.useApp(),a=e.useTranslator(),s=e.useElement(),[l,c]=e.useState(),u=e.useStaleLayout(),d=e.usePlugins(),f=e.useConstraints(),h=e.useOptions(),p=e.useTheme(),{qLocaleInfo:m}=e.useAppLayout(),g=e.useEmbed();return e.useEffect((()=>{if(!r)return;s.style.overflow="hidden";const e=MS({picasso:r.picasso,model:i,app:o,translator:a,config:{auto:!1,key:"fill"}}),l=function(e){var t=e.picassoInstance,n=e.plugins,r=e.pluginArgs,i=void 0===r?{}:r,o={initialized:!1,definitions:[]};return{initialize:function(){return Cw(ww().mark((function e(){var r,a,s,l;return ww().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!o.initialized){e.next=2;break}return e.abrupt("return");case 2:return a=Promise.all(n.filter((function(e){return"custom-component"===e.info.type})).map(function(){var e=Cw(ww().mark((function e(n){var r;return ww().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.info.componentName){e.next=2;break}throw new Error("plugin-service: Custom component is missing componentName");case 2:return e.next=4,n.fn(xw({},i));case 4:if("object"===kw(r=e.sent)){e.next=7;break}throw new Error("plugin-service: Custom component needs to be an object");case 7:t.component(n.info.componentName,r);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())),s=Promise.all(n.filter((function(e){return"component-definition"===e.info.type})).map((function(e){return e.fn(xw({},i))}))),e.next=6,Promise.all([a,s]);case 6:l=e.sent,o.initialized=!0,(r=o.definitions).push.apply(r,Dw(l[1]));case 9:case"end":return e.stop()}}),e)})))()},extendComponents:function(e){return o.initialized?(o.definitions.filter(Boolean).forEach((function(t){var n=_w(e.filter((function(e){return e.key&&e.key===t.key})),1)[0];if(n){var r=Kw(!0,{},n.brush);Kw(!0,n,t),t.brush&&(n.brush=function(e,t){return"object"===kw(e)&&Object.keys(e).length?(Array.isArray(t.consume)&&(e.consume=IS({originalArray:e.consume,newArray:t.consume,matchKey:"context"})),Array.isArray(t.trigger)&&(e.trigger=IS({originalArray:e.trigger,newArray:t.trigger,matchKey:"on"})),e):t}(r,t.brush))}else e.push(t)})),e):e}}}({picassoInstance:r.picasso,plugins:d,pluginArgs:WQ(u)}),y=UQ({flags:t,layout:u,app:o,model:i,picasso:n,chart:r.chart,translator:a,localeInfo:m,embed:g,options:h}),v=function(e){var t=e.theme,n=e.config,r=void 0===n?{}:n,i=r.id,o=r.resolve,a=void 0===o?[]:o,s=r.transform,l=void 0===s?[]:s,c=r.extend,u=void 0===c?[]:c,d={theme:t,matrix:JM(a),styles:void 0};return d.styles=eE({theme:t,id:i,transform:l,extend:u,matrix:d.matrix}),{getStyles:function(){return d.styles},getTheme:function(){return d.theme},setTheme:function(e){d.theme=e,d.styles=eE({theme:e,id:i,transform:l,extend:u,matrix:d.matrix})}}}({theme:p,config:{id:"pieChart",resolve:[["object","label.name","color","#595959"],["object","label.name","fontFamily"],["object","label.name","fontSize","12px"]]}}),b=function({chart:e,translator:t,layout:n,constraints:r,options:i,themeService:o,colorService:a,custom:s}){const l=n.qHyperCube.qMeasureInfo.length>1,c="rtl"===i.direction,{fontFamily:u}=o.getStyles();return TE({chart:e,translator:t,config:{rtl:c,enable:()=>!r.passive,getColorSettings:()=>a.getSettings(),style:{fontFamily:u},main:{key:"tooltip",getGroupByValue:({data:e})=>e.value,collectibles:[{key:"slices",type:"slice",major:({data:e})=>e.value}],triggers:[{keys:["slices"],collect:{from:"single"},placement:"collectible"},{keys:["pie-labels","negative-indicators"],collect:{from:"dimension",by:({data:e})=>e.value},placement:"trigger"}],placement:({meta:e})=>({type:"slices"===e.triggerer?"slice":"bounds"}),section:({h:e,nodes:n,dataset:r,formatter:i,create:o,util:a})=>{const[c]=n,{title:u,description:d,measures:f}=s.isEnabled()?s.getAttributes({dataset:r,nodes:n}):{},h=[];u&&h.push(o.text({value:u,style:{bold:!0}})),d&&h.push(o.text({value:d}));const p=s.hideBasic();if(p&&!f.length&&(u||d)||h.push(o.text({value:c.data.label,style:{bold:!0}})),!p){h.push(o.color({nodes:n,property:"fill"}));const{num:e}=c.data;if(h.push(o.measure({label:a.dataset.title(e.source.key,e.source.field),value:e.label})),l){const{radius:e}=c.data;h.push(o.measure({label:a.dataset.title(e.source.key,e.source.field),value:e.label}))}h.push(o.measure({label:t?t.get("properties.dataPoints.labelmode.share"):"Share",value:i("share")(c.desc.share)}))}f&&h.push(...f.map((e=>o.measure({label:e.label,value:e.value,survive:{color:!0,duplicate:!0}})))),s.chart.isEnabled()&&(s.chart.hasLimitation()?(s.chart.destroy(),h.push(o.raw({value:s.chart.createLimitationRow()}))):h.push(o.raw({value:s.chart.createContainer({h:e})})));const{customTooltipImages:m}=c.data;return s.isEnabled()&&m&&h.push(...m.map((t=>o.raw({value:s.createImageRow({value:t,h:e})})))),h},layout:{grouping:!0},events:{tooltip:{beforeShow:({collectNodes:e})=>s.isEnabled()&&s.hasImages()?s.addImages({nodes:e()}):Promise.resolve(),afterShow:({expando:e,nodes:t})=>{s.chart.isEnabled()&&!s.chart.hasLimitation()&&s.chart.show({nodes:t,properties:e.get("properties")})}},interaction:{mouseleave:()=>{s.chart.isEnabled()&&s.chart.hasAlternateState()&&s.chart.hide()}}}},legend:{keys:{tooltip:"legend-color-cat",component:"legend-cat"}}}})}({app:o,chart:r.chart,translator:a,layout:u,constraints:f,options:h,themeService:v,colorService:e,custom:y}),x=function({layout:e,themeService:t,flags:n}){const r=t.getStyles(),i=t=>{var r;return n.isEnabled("CLIENT_IM_3050")?null===(r=e.components)||void 0===r?void 0:r.find((e=>e.key===t)):void 0};return{axis:{title:{getStyle:()=>{var e,t,n,o,a,s;return{fontFamily:null!==(e=null===(t=i("axis"))||void 0===t||null===(t=t.axis)||void 0===t||null===(t=t.title)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:r.axis.title.fontFamily,fontSize:null!==(n=null===(o=i("axis"))||void 0===o||null===(o=o.axis)||void 0===o||null===(o=o.title)||void 0===o?void 0:o.fontSize)&&void 0!==n?n:r.axis.title.fontSize,color:null!==(a=null===(s=i("axis"))||void 0===s||null===(s=s.axis)||void 0===s||null===(s=s.title)||void 0===s||null===(s=s.color)||void 0===s?void 0:s.color)&&void 0!==a?a:r.axis.title.color}}}},label:{name:{getStyle:()=>{var e,t,n,o,a,s;return{fill:null!==(e=null===(t=i("label"))||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.name)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:r.label.name.color,fontSize:null!==(n=null===(o=i("label"))||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.name)||void 0===o?void 0:o.fontSize)&&void 0!==n?n:r.label.name.fontSize,fontFamily:null!==(a=null===(s=i("label"))||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.name)||void 0===s?void 0:s.fontFamily)&&void 0!==a?a:r.label.name.fontFamily}}},value:{getStyle:()=>{var e,t,n,o,a,s;return{fill:null!==(e=null===(t=i("label"))||void 0===t||null===(t=t.label)||void 0===t||null===(t=t.value)||void 0===t||null===(t=t.color)||void 0===t?void 0:t.color)&&void 0!==e?e:r.label.value.color,fontSize:null!==(n=null===(o=i("label"))||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o.fontSize)&&void 0!==n?n:r.label.value.fontSize,fontFamily:null!==(a=null===(s=i("label"))||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.value)||void 0===s?void 0:s.fontFamily)&&void 0!==a?a:r.label.value.fontFamily}}}},legend:{title:{getStyle:()=>{var e,t,n,o,a,s;return{fontFamily:null!==(e=null===(t=i("legend"))||void 0===t||null===(t=t.legend)||void 0===t||null===(t=t.title)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:r.legend.title.fontFamily,fontSize:null!==(n=null===(o=i("legend"))||void 0===o||null===(o=o.legend)||void 0===o||null===(o=o.title)||void 0===o?void 0:o.fontSize)&&void 0!==n?n:r.legend.title.fontSize,color:null!==(a=null===(s=i("legend"))||void 0===s||null===(s=s.legend)||void 0===s||null===(s=s.title)||void 0===s||null===(s=s.color)||void 0===s?void 0:s.color)&&void 0!==a?a:r.legend.title.color}}},label:{getStyle:()=>{var e,t,n,o,a,s;return{fontFamily:null!==(e=null===(t=i("legend"))||void 0===t||null===(t=t.legend)||void 0===t||null===(t=t.label)||void 0===t?void 0:t.fontFamily)&&void 0!==e?e:r.legend.label.fontFamily,fontSize:null!==(n=null===(o=i("legend"))||void 0===o||null===(o=o.legend)||void 0===o||null===(o=o.label)||void 0===o?void 0:o.fontSize)&&void 0!==n?n:r.legend.label.fontSize,color:null!==(a=null===(s=i("legend"))||void 0===s||null===(s=s.legend)||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.color)||void 0===s?void 0:s.color)&&void 0!==a?a:r.legend.label.color}}}}}}({layout:u,themeService:v,flags:t}),w=function({layout:e}){const t=({ds:e,encodings:t})=>{const n={field:"qDimensionInfo/0",props:{num:{field:t.slice.arc}}};return t.slice.outerRadius&&(n.props.radius={field:t.slice.outerRadius}),e.extract(n)},n=({rows:e,encodings:t})=>t.slice.outerRadius?e.filter((e=>"NaN"!==e.num.value&&"NaN"!==e.radius.value)):e.filter((e=>"NaN"!==e.num.value)),r=({rows:t,encodings:n})=>n.slice.outerRadius&&!e.donut.showAsDonut?t.filter((e=>e.num.value>0&&e.radius.value>0)):t.filter((e=>e.num.value>0));return TS({layout:e,config:{args:{},disclaimers:{NoDataExist:{condition:({ds:e,encodings:n})=>0===t({ds:e,encodings:n}).length},LimitedData:{condition:()=>{const t=Ng.getValue(e,"qHyperCube.qSize.qcy");return Ng.getValue(e,"qHyperCube.qDataPages.0.qArea.qHeight")<t}},OnlyNanData:{condition:({ds:e,encodings:r})=>{const i=t({ds:e,encodings:r});return 0===n({rows:i,encodings:r}).length}},OnlyNegativeOrZeroValues:{condition:({ds:e,encodings:i})=>{const o=t({ds:e,encodings:i}),a=n({rows:o,encodings:i});return 0===r({rows:a,encodings:i}).length}},NegativeOrZeroValues:{condition:({ds:e,encodings:i})=>{const o=t({ds:e,encodings:i}),a=n({rows:o,encodings:i}),s=a,l=r({rows:a,encodings:i});return s.length!==l.length}}}}})}({layout:u});c({colorService:e,disclaimerService:w,pluginService:l,themeService:v,tooltipService:b,styleService:x})}),[i,o,r,u,a.language(),f,h.direction,p.name()]),l}function KQ({scaleKey:e,legend:t,onEdited:n}){const{layout:r}=t,{dock:i}=r||{};return{type:"brush-range",key:"legendRangeBrush",layout:{dock:"@legend-seq"},on:n?{bubbleEnd(){n()}}:{},settings:{brush:"selection",scale:`${e}Range`,direction:"left"===i||"right"===i?"vertical":"horizontal",bubbles:{align:"left"===i||"top"===i?"end":"start",placement:"outside"},target:{selector:'[id="legend-seq-target"]',fillSelector:'[id="legend-seq-ticks"]',fill:"rgba(82,204,82,0.2)"}}}}const GQ=.8,XQ=.55,ZQ=.3,JQ={CORNER_RADIUS:0,INNER_RADIUS:XQ,STROKE:{COLOR:"#FFFFFF",WIDTH:{NONE:0,SMALL:2,MEDIUM:4,LARGE:6}}},QQ=({layout:e},t,n)=>t.encodings.slice.outerRadius?{scale:"radius",fn:t=>{var r,i;let o=GQ,a=0;const s=null!==(r=null==n||null===(i=n.style)||void 0===i?void 0:i.innerRadius)&&void 0!==r?r:XQ;e.donut.showAsDonut&&(o=GQ-s,a=s);return t.scale(Math.max(0,t.datum.radius.value))*o+a}}:GQ,e0=({layout:e},t,n)=>{var r,i;if(!e.donut.showAsDonut)return 0;const o=null!==(r=null==n||null===(i=n.style)||void 0===i?void 0:i.innerRadius)&&void 0!==r?r:XQ;return t.encodings.slice.outerRadius?{scale:"radius",fn:e=>{const t=GQ-o,n=o;return e.scale(Math.min(0,e.datum.radius.value))*t+n}}:o},t0=({layout:e},t)=>{var n,r,i,o,a;const s=t.colorService.getDatumProps(),l=s[Object.keys(s)[0]],c=l&&l.field?l.field:void 0,u="qDimensionInfo/0"===c,d=c?t.ds.field(c).raw():null,f=d&&(d.label||d.title||d.qFallbackTitle)||"",h=t.encodings.slice.outerRadius,{formatter:p}=t.chart,m=Ng.getValue(e,"qHyperCube.qDimensionInfo",[]).length;function g(e,n){const r=t.ds.field(e).raw();return{field:e,label:!r.isCustomFormatted&&(r.qIsAutoFormat||"U"===r.qNumFormat.qType)?e=>p(n)(e.qNum):e=>e.qText}}const y=(e.components||[]).filter((e=>"slices"===e.key))[0];return{type:"pie",key:"slices",data:{extract:{field:"qDimensionInfo/0",props:{...s,num:g(t.encodings.slice.arc,"arc"),fillTooltip:c?{field:c,label:f,value:e=>u?e.qText||"-":void 0!==e.qNum&&"NaN"!==e.qNum?e.qText?e.qText:e.qNum:e.qText||"-"}:void 0,customTooltipAttrExps:0!==m?LQ.getNode(e,{dimensionCount:m}):void 0,radius:h?g(h,"outerRadius"):void 0}}},brush:{consume:[{context:"selection",data:["","fill"],style:{inactive:{opacity:.3},active:{stroke:"rgba(52, 52, 52, 0.7)",strokeWidth:2}}},{context:"highlight",data:[""],style:{inactive:{fill:"#BFDAD9"},active:{fill:"#68B2AF"}}}]},settings:{startAngle:()=>t.viewState.get("rotation"),endAngle:()=>t.viewState.get("rotation")+2*Math.PI,slice:{arc:{ref:"num"},innerRadius:e0({layout:e},t,y),fill:t.colorService.getColor(),strokeWidth:null!=y&&null!==(n=y.style)&&void 0!==n&&n.strokeWidth?JQ.STROKE.WIDTH[y.style.strokeWidth.toUpperCase()]:JQ.STROKE.WIDTH.NONE,stroke:null!==(r=null==y||null===(i=y.style)||void 0===i||null===(i=i.strokeColor)||void 0===i?void 0:i.color)&&void 0!==r?r:JQ.STROKE.COLOR,outerRadius:QQ({layout:e},t,y),cornerRadius:null!==(o=null==y||null===(a=y.style)||void 0===a?void 0:a.cornerRadius)&&void 0!==o?o:0}},animations:{enabled:t.animations.enabled,isMainComponent:!0}}};function n0({layout:e},t){var n,r;const i=(e.components||[]).filter((e=>"slices"===e.key))[0],o=null!==(n=null==i||null===(r=i.style)||void 0===r?void 0:r.innerRadius)&&void 0!==n?n:XQ,a=t.encodings.slice.outerRadius,s=t.themeService.getStyles();return!(!e.donut.showAsDonut||!a)&&{type:"pie",key:"zeroLine",data:{items:[1]},settings:{slice:{arc:1,fill:"transparent",innerRadius:0,strokeWidth:1,stroke:s.label.name.color,outerRadius:{scale:"radius",fn:e=>{const t=GQ-o,n=o;return e.scale(0)*t+n}}}},animations:{enabled:t.animations.enabled}}}function r0(e){return{type:"pie-dividers",key:"pie-dividers",layout:{displayOrder:2},settings:{component:"slices",selector:"path"},brush:{consume:[{context:"selection",style:{inactive:{opacity:.2}}}]},animations:{enabled:e.animations.enabled,trackBy:()=>Math.random()}}}function i0({layout:e},t){if(e.donut.showAsDonut||!t.encodings.slice.outerRadius)return!1;return{type:"negative-indicators",key:"negative-indicators",layout:{displayOrder:2},settings:{component:"slices",selector:"path",offset:5,size:4,fill:t.themeService.getStyles().label.name.color},brush:{consume:[{context:"selection",style:{inactive:{opacity:.2}}}]},animations:{enabled:t.animations.enabled}}}const o0=()=>({key:"area",type:"brush-area",settings:{brush:{components:[{key:"slices",contexts:["selection"],action:"add"}]}},style:{area:{fill:"transparent",strokeWidth:2,stroke:"black",strokeDasharray:"5 5",opacity:.7}}}),a0=()=>({key:"lasso",type:"brush-lasso",layout:{displayOrder:99},settings:{brush:{components:[{key:"slices",contexts:["selection"]}]},lasso:{fill:"rgba(0, 0, 0, 0)",stroke:"black",strokeWidth:2,opacity:.7,strokeDasharray:[]},snapIndicator:{threshold:75,strokeDasharray:"5, 5",stroke:"black",strokeWidth:2,opacity:.7},startPoint:{r:10,stroke:"rgba(77, 192, 78, 1)",strokeWidth:0,opacity:1}}});function s0(e){const t=e.node.desc&&e.node.desc.share;return t?e.formatter("share")(t):""}function l0(e){return e.node.data.num.label}function c0(e){return e.node.data.radius.label}function u0(e,t,n){if(e.dataPoint.auto)return n?l0:s0;if("share"===e.dataPoint.labelMode)return s0;if("value"===e.dataPoint.labelMode){return t.encodings.slice.outerRadius&&"radius"===e.dataPoint.labelValueMode?c0:l0}return null}function d0({data:e}){return e?e.label:""}function f0(e){const t=parseInt(e,10);if(!isNaN(t))return t}const h0=e=>t=>e.getContrastingColorTo(t.node.attrs.fill);function p0(e){var t,n;const r=((e&&e.components?e.components:void 0)||[]).filter((e=>"slices"===e.key))[0];return(null!==(t=null==r||null===(n=r.style)||void 0===n?void 0:n.innerRadius)&&void 0!==t?t:XQ)>ZQ}function m0({node:e,data:t}){return Eg({_share:e.desc.share,_fillColor:e.attrs.fill},t)}function g0(e,t,n){const r=t.styleService.label.name.getStyle(),i=[{padding:10,direction:t.encodings.slice.outerRadius?"rotate":"horizontal",placements:[{position:"outside",padding:t.encodings.slice.outerRadius?4:2,fill:r.fill}],fontSize:f0(r.fontSize),fontFamily:r.fontFamily,label:d0,linkData:({node:e,data:t})=>Eg({_share:e.desc.share,_fillColor:e.attrs.fill,_showTooltip:!0},t)}];if(u0(e,t,!1)){const r=function(e,t,n){return{label:u0(e,t,!1),simplifiedPlacements:[{position:e.donut.showAsDonut&&p0(e)?"inside":"into",onBackground:e.donut.showAsDonut&&p0(e),padding:4}],theme:n.theme,themeId:"object.pieChart"}}(e,t,n),o=$g(Eg(t,r),n.theme);o.linkData=m0,i.push(o)}return{key:"pie-labels",type:"labels",renderer:AE(t.flags),layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:"slices",selector:"path",strategy:{type:"slice",settings:{labels:i}}}]},brush:{consume:[{context:"selection",data:["","fill"],style:{inactive:{opacity:.3}}}]},animations:{enabled:t.animations.enabled,trackBy:()=>Math.random()}}}function y0({layout:e,context:t},n){return!1!==e.dataPoint.show&&(1===n.dataRowCount?function(e,t,n){const r=u0(e,t,!0),i=h0(n.theme),o=t.themeService.getStyles(),a=t.styleService.label.name.getStyle(),s=t.styleService.label.value.getStyle(),l=a.fill===o.label.name.color,c=s.fill===o.label.value.color;return{key:"pie-labels",type:"labels",renderer:AE(t.flags),layout:{displayOrder:2,minimumLayoutMode:"XSMALL"},settings:{sources:[{component:"slices",selector:"path",strategy:{type:"rows",settings:{align:.5,justify:.5,padding:10,labels:[{fontSize:f0(a.fontSize),fontFamily:a.fontFamily,fill:l&&!e.donut.showAsDonut?i:a.fill,label:d0,linkData:({data:e})=>e},{fontSize:f0(s.fontSize),fontFamily:s.fontFamily,fill:c&&!e.donut.showAsDonut?i:s.fill,label:r,linkData:({data:e})=>e}]}}}]},animations:{enabled:t.animations.enabled,trackBy:()=>Math.random()}}}(e,n,t):g0(e,n,t))}const v0=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"legendRange",enable(t,n){if(this.started||!n)return!0;if(e.constraints.select||e.constraints.active)return!1;const r=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>"legend-seq"===e.type)),i=(r||function(e){const{target:t}=e.srcEvent;return!(!t||!(t.hasAttribute("data-other-value")&&t.hasAttribute("data-idx")||"INPUT"===t.nodeName))}(n))&&!e.isLocked([this.chart.component("slices")]);return i||this.chart.component("legendRangeBrush").emit("rangeClear"),i}},events:{legendRangestart(t){t.preventDefault(),e.interactions.emit("selections-start"),this.chart.component("legendRangeBrush").emit("rangeStart",t),this.started=!0},legendRangemove(e){e.preventDefault(),this.chart.component("legendRangeBrush").emit("rangeMove",e)},legendRangeend(t){t.preventDefault(),this.chart.component("legendRangeBrush").emit("rangeEnd",t),e.onSelect(),this.started=!1}}});function b0(e,t){const n=t.element.getBoundingClientRect();let r,i;return e.center?(({x:r}=e.center),({y:i}=e.center)):(r=e.clientX,i=e.clientY),{x:r-n.left,y:i-n.top}}function x0(e,t){const n=t.component("slices");if(!n)return!1;const{x:r,y:i}=b0(e,t),o=n.rect.x+n.rect.margin.left+n.rect.width/2,a=n.rect.y+n.rect.margin.top+n.rect.height/2,s=Math.min(n.rect.width,n.rect.height)/2*GQ;return(o-r)**2+(a-i)**2<=s**2}const w0=(e,t,{requireFailure:n,recognizeWith:r}={})=>({type:"Tap",requireFailure:n,recognizeWith:r,options:{event:"tap",interval:10,pointers:1,enable(t,n){return!n||!e.constraints.select&&!e.constraints.active&&(this.components=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).filter((e=>"slices"===e.key||"legend-cat"===e.key||"pie-labels"===e.key)),this.components.length)}},events:{tap(n){n.preventDefault();const{target:r}=n.srcEvent;if(r&&("INPUT"===r.nodeName||r.hasAttribute("data-other-value")))return void this.chart.component("legendRangeBrush").emit("bubbleStart",n);if(r&&r.hasAttribute("data-action")&&r.hasAttribute("data-component-key"))return void this.chart.component(r.getAttribute("data-component-key")).emit(r.getAttribute("data-action"));if(r&&r.children&&r.children[0]&&"legend-cat"===r.children[0].getAttribute("data-component-key"))return;if(e.isLocked(this.components))return;e.interactions.emit("selections-start");let i=b0(n,this.chart);this.components.some((e=>"legend-cat"===e.key))&&(i={cx:i.x,cy:i.y,r:5});const o=this.chart.shapesAt(i,{components:[{key:"slices",propagation:"stop"},{key:"legend-cat",propagation:"stop"},{key:"pie-labels",propagation:"stop"}],propagation:"stop"});o.length&&(this.chart.brushFromShapes(o,{components:[{key:o[0].key,action:n.srcEvent.ctrlKey||t?"set":"toggle",contexts:["selection"]}]}),e.onSelect())}}}),k0=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"lasso",enable(t,n){if(this.isStarted||!n)return!0;if(e.constraints.active||e.constraints.select||!e.interactions.lasso.active())return!1;const r=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y});return!e.isLocked(r)&&r.some((e=>"slices"===e.key))}},events:{lassostart(t){t.preventDefault(),e.constraints.select||e.constraints.active||this.isStarted||(e.interactions.emit("selections-start"),this.chart.component("lasso").emit("lassoStart",t),this.isStarted=!0)},lassomove(e){e.preventDefault(),this.chart.component("lasso").emit("lassoMove",e)},lassoend(t){t.preventDefault(),this.isStarted=!1,this.chart.component("lasso").emit("lassoEnd",t),e.onSelect()}}}),S0=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Tap",requireFailure:t,recognizeWith:n,options:{event:"areatap",pointers:2,enable(t,n){if(this.started||!n)return!0;if(e.constraints.active||e.constraints.select)return!1;const r=this.chart.componentsFromPoint({x:n.center.x,y:n.center.y});return r.some((e=>"slices"===e.key))&&!e.isLocked(r)}},events:{areatap(t){const n=this.chart.component("area");n&&!this.started&&(e.interactions.emit("selections-start"),n.emit("areaStart",t.pointers[0]),n.emit("areaMove",t.pointers[1]),this.started=!0,setTimeout((()=>{n.emit("areaEnd"),e.onSelect(),this.started=!1}),100)),t.preventDefault()}}});function C0(e){return{type:"native",key:"theusual",events:{wheel(t){let n=!1;if(!e.constraints.active&&x0(t,this.chart)){const r=Math.sign(-t.deltaY);e.viewState.set("rotation",r*(Math.PI/12)),n=!0}else if(!e.constraints.select&&!e.constraints.active){const e=this.chart.componentsFromPoint(t).filter((e=>"legend-cat"===e.key))[0];e&&(n=!0,function(e,t){const n=(Math.abs(e.deltaX)>Math.abs(e.deltaY)?e.deltaX:e.deltaY)>=0?"next":"prev";t.emit(n)}(t,e))}n&&t.preventDefault()}}}}const M0=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"rotate",pointers:1,threshold:10,enable(t,n){return!(!this.started&&n)||!e.constraints.active&&!e.interactions.lasso.active()&&x0(n,this.chart)}},events:{rotatestart(e){e.preventDefault();const t=this.chart.component("slices").rect,n=this.chart.element.getBoundingClientRect();this.pieCenter={x:n.left+t.x+t.width/2,y:n.top+t.y+t.height/2},this.prevAngle=Math.atan2(e.center.y-this.pieCenter.y,e.center.x-this.pieCenter.x),this.started=!0},rotatemove(t){t.preventDefault();const n=Math.atan2(t.center.y-this.pieCenter.y,t.center.x-this.pieCenter.x);e.viewState.set("rotation",n-this.prevAngle),this.prevAngle=n},rotateend(e){e.preventDefault(),this.started=!1},rotatecancel(e){e.preventDefault(),this.started=!1}}}),E0=(e,{requireFailure:t,recognizeWith:n}={})=>({type:"Pan",requireFailure:t,recognizeWith:n,options:{event:"legendPan",pointers:1,threshold:10,enable(t,n){return!(!this.isStarted&&n)||!e.constraints.active&&this.chart.componentsFromPoint({x:n.center.x,y:n.center.y}).some((e=>"legend-cat"===e.type))}},events:{legendPanstart(e){if(e.preventDefault(),!this.isStarted){this.components=this.chart.componentsFromPoint({x:e.center.x,y:e.center.y}),this.components.forEach((t=>{t.emit("panstart",e)})),this.isStarted=!0;const t=this.chart.component("tooltip");t&&t.show&&t.emit("hide")}},legendPanmove(e){this.components.forEach((t=>{t.emit("panmove",e)})),e.preventDefault()},legendPanend(e){e.preventDefault(),this.components.forEach((t=>{t.emit("panend",e)})),this.isStarted=!1}}}),_0=(e,t,n)=>({key:"hammered",type:"hammer",enable:!0,gestures:t?[M0(e,{}),w0(e,t,{}),...n]:[v0(e,{}),S0(e,{}),M0(e,{}),k0(e,{}),E0(e,{}),w0(e,t,{}),...n]});function D0(e,t,n){const r=e.getIsSingleSelect(0),{constraints:i}=n;if(i.active&&i.passive)return[];const o=t.tooltipService.getInteractions();return[_0(t,r,o.gestures),C0(t),o.native]}function q0({settings:e},t){const n={share:{type:"d3-number",format:".1%"},arc:{data:{field:t.encodings.slice.arc}},fill:e.scales.fill&&e.scales.fill.data&&e.scales.fill.data.field?{data:{field:e.scales.fill.data.field}}:{}};return t.encodings.slice.outerRadius&&(n.outerRadius={data:{field:t.encodings.slice.outerRadius}}),n}function T0({layout:e},t,n){if(!e.dimensionTitle)return!1;const r=t.properties,i=t.styleService.axis.title.getStyle();return{key:"dimension-title",type:"data-title",layout:{minimumLayoutMode:"SMALL",dock:"top"},settings:{hyperCube:e.qHyperCube,hyperCubeDef:r&&r.qHyperCubeDef,isDimension:!0,disabled:()=>n.constraints.active||!n.model,model:t.model,app:t.app,translator:t.translator,rtl:n.rtl,selections:t.selections,isEnabled:t.flags.isEnabled},style:{fontFamily:i.fontFamily,fontSize:i.fontSize,color:i.color}}}function R0({layout:e,context:t,selectionService:n},r={}){const i=function({layout:e}={},t={}){const n={};return Eg(n,t.colorService.getScales()),t.encodings.slice.outerRadius&&Eg(n,function({layout:e},t){const n={radius:{type:"linear",include:[0],data:{extract:{field:t.encodings.slice.outerRadius}}}};return e.donut.showAsDonut||(n.radius.min=0),n}({layout:e},t)),n}({layout:e},r),o={scales:i};let a=[];const s=function(e,t){const n=e.disclaimerService.getDisclaimer();if(!n)return!1;const{rtl:r}=t,{translator:i}=e,{fontFamily:o}=e.themeService.getStyles();return{key:"disclaimer",type:"disclaimer",layout:{dock:n.alignment},settings:{isRTL:r,label:i.get(`Object.Disclaimer.${n.key}`)},style:{fontFamily:o}}}(r,t);if(r.disclaimerService.getHasSuppressingDisclaimer())return{components:[s]};const l=t.constraints.select||t.constraints.active,c=r.colorService.getLegend({eventName:"legend",key:"legend",viewState:r.viewState,chart:r.chart,styleReference:"object.pieChart",styleOverrides:{title:r.styleService.legend.title.getStyle(),label:r.styleService.legend.label.getStyle()},rtl:t.rtl},{navigationDisabled:l});return i.fillRange&&c.components[0]&&("right"===c.components[0].layout.dock||"left"===c.components[0].layout.dock||t.rtl)&&(i.fillRange.invert=!0),a=[t0({layout:e,settings:o},r),n0({layout:e},r),r0(r),i0({layout:e},r),T0({layout:e},r,t),...c.components,KQ({settings:o,scaleKey:"fill",legend:c.components[0]||{},onEdited:r.onSelect}),a0(),o0(),y0({layout:{components:e.components,dataPoint:Eg({},e.dataPoint,{show:!(e.effectPath&&e.snapshotData&&!1===e.dataPoint.show)}),donut:e.donut},context:t},r),...r.tooltipService.getComponents(),s],a=a.filter((e=>!1!==e)),{interactions:D0(n,r,t),scales:i,components:r.pluginService.extendComponents(a),palettes:r.colorService.getPalettes(),formatters:q0({settings:o},r),strategy:Tg(0,r)}}function N0({instance:t,services:n,picasso:r,flags:i}){const o=e.useOptions(),a=e.useModel(),s=e.useApp(),l=e.useTranslator(),c=e.useTheme(),u=e.useStaleLayout(),d=e.useSelections(),f=e.useConstraints(),{qLocaleInfo:h}=e.useAppLayout(),[p]=e.usePromise((()=>{if(!n)return Promise.resolve();VQ.attrExpr.updateProperties(a,u);return Promise.all([n.colorService.initialize({createConfig:({getUseBaseColors:e})=>({theme:c,legendProps:u.legend,layout:u,localeInfo:h,hc:u.qHyperCube,colorProps:{...u.color,useBaseColors:e(u)}})}),a&&!u.snapshotData?a.getEffectiveProperties():Promise.resolve({}),n.pluginService.initialize()])}),[n]);e.useEffect((()=>{null!=t&&t.selectionService&&t.selectionService.setLayout(u)}),[u]),e.useEffect((()=>{if(!t||!p)return;const{chart:e,viewState:m,interactions:g,viewCache:y}=t,{colorService:v,disclaimerService:b,pluginService:x,themeService:w,tooltipService:k,styleService:S}=n,C=o.viewState||{};u.snapshotData||(m.preventSet("legendScrollOffset",C.legendScrollOffset||0),m.preventSet("rotation",C.rotation||0)),function(e,t){e&&e.snapshotData&&e.snapshotData.content&&e.snapshotData.content.chartData&&(t.preventSet("legendScrollOffset",e.snapshotData.content.chartData.legendScrollOffset),t.preventSet("rotation",e.snapshotData.content.chartData.rotation))}(u,m),k.expando.set("properties",p[1]);const M=r.data("q")({key:"qHyperCube",data:u.qHyperCube,config:{localeInfo:h}}),E=[{type:"q",key:"qHyperCube",data:u.qHyperCube,config:{localeInfo:h}},...v.getData()],_={slice:{arc:"qMeasureInfo/0"}};u.qHyperCube.qMeasureInfo.length>1&&(_.slice.outerRadius="qMeasureInfo/1"),b.initialize({args:{ds:M,encodings:_}});const D=function(e,t){if(t.slice.outerRadius)return e.extract({field:"qDimensionInfo/0",props:{num:{field:t.slice.arc},radius:{field:t.slice.outerRadius}}}).filter((e=>e.num.value>0&&"NaN"!==e.radius.value)).length;return e.extract({field:"qDimensionInfo/0",props:{num:{field:t.slice.arc}}}).filter((e=>e.num.value>0)).length}(r.data("q")({data:u.qHyperCube,config:{localeInfo:h}}),_),q=d?()=>{const t=e.brush("selection");hg.selections(t,{},u).forEach((e=>{d.select(e)}))}:()=>{},T=u.snapshotData&&!o.freeResize?{width:(u.snapshotData.content.size||u.snapshotData.object.size).w,height:(u.snapshotData.content.size||u.snapshotData.object.size).h}:void 0,R=e=>t.selectionService.getIsSelectionLocked(e),N=()=>R0({layout:u,context:{rtl:"rtl"===o.direction,theme:c,translator:l,constraints:f,model:a},selectionService:t.selectionService},{picasso:r,ds:M,model:a,app:s,chart:e,onSelect:q,isLocked:R,interactions:g,constraints:f,translator:l,viewState:m,dataRowCount:D,encodings:_,colorService:v,disclaimerService:b,pluginService:x,themeService:w,styleService:S,tooltipService:k,debouncer:PS,properties:p[1],logicalSize:T,flags:i,animations:{enabled:()=>function({viewState:e,options:t,viewCache:n,layout:r,chart:i}){return!1!==t.chartAnimations&&n.get("chartWidth")===i.element.clientWidth&&n.get("chartHeight")===i.element.clientHeight&&n.get("hasZeroLine")===!!i.component("zeroLine")&&0===e.get("rotation")&&!OE.propertiesHaveChanged({viewCache:n,layout:r})}({viewState:m,options:o,layout:u,viewCache:y,chart:e})}});t.generateSettings=N;const O=N();e.update({data:E,settings:O}),y.set("chartWidth",e.element.clientWidth),y.set("chartHeight",e.element.clientHeight),y.set("hasZeroLine",O.components.filter((e=>"zeroLine"===e.key)).length>0),OE.cacheProperties({viewCache:y,layout:u}),o.effect&&u.effectProperties?o.effect.update(u,e,{encodings:_}):u.effectPath||e.brush("highlight").end()}),[t,p,o.direction,o.effectProperties,f,c.name(),l.language()])}const O0="legend-cat";function A0({instance:t,services:n}){const r=e.useElement(),i=e.useStaleLayout();e.onTakeSnapshot((e=>{if(!(i.snapshotData&&i.snapshotData.content&&i.snapshotData.content.chartData)&&(function(e,t){const n=t.getBoundingClientRect();e.snapshotData=e.snapshotData||{},e.snapshotData.content=e.snapshotData.content||{},e.snapshotData.content.size=e.snapshotData.content.size||{w:n.width,h:n.height}}(e,r),t&&n))return function({layout:e,chart:t,viewState:n,colorService:r}){return e.snapshotData.content=e.snapshotData.content||{},e.snapshotData.content.chartData={legendScrollOffset:Og(t,O0),rotation:n.get("rotation")},r.getSnapshotData().then((t=>{e.snapshotData.content.chartData={...e.snapshotData.content.chartData,...t}})).catch((()=>{}))}({layout:e,chart:t.chart,colorService:n.colorService,viewState:t.viewState})})),e.useImperativeHandle((()=>({getViewState:()=>({rotation:t.viewState.get("rotation"),legendScrollOffset:Og(t.chart,"legend-cat")})})),[t])}var P0={exports:{}};!function(e,t){self,e.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,c,u,d=arguments[0],f=1,h=arguments.length,p=!1;for("boolean"==typeof d&&(p=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<h;++f)if(null!=(t=arguments[f]))for(n in t)r=l(d,n),d!==(i=l(t,n))&&(p&&i&&(a(i)||(c=o(i)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&a(r)?r:{},s(d,{name:n,newValue:e(p,u,i)})):void 0!==i&&s(d,{name:n,newValue:i}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!o)return!1;for(r in e);return void 0===r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,c,u,d=arguments[0],f=1,h=arguments.length,p=!1;for("boolean"==typeof d&&(p=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<h;++f)if(null!=(t=arguments[f]))for(n in t)r=l(d,n),d!==(i=l(t,n))&&(p&&i&&(a(i)||(c=o(i)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&a(r)?r:{},s(d,{name:n,newValue:e(p,u,i)})):void 0!==i&&s(d,{name:n,newValue:i}));return d}}},n={};function r(t){var i=n[t];if(void 0!==i)return i.exports;var o=n[t]={exports:{}};return e[t](o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};(()=>{r.r(i),r.d(i,{default:()=>Re});var e=r(229),t=r.n(e);const n=function(e,t,n){if(!t)return!1;var r,i=t.split("."),o=i[i.length-1],a=e;for(r=0;r<i.length-1;++r)void 0===a[i[r]]&&(a[i[r]]=Number.isNaN(+i[r+1])?{}:[]),a=a[i[r]];if(void 0!==n){var s=a[o];return a[o]=n,{updated:n,previous:s}}return delete a[o],!1},o=function(e,t,n){var r,i=t.split("."),o=e;if(void 0===o)return n;for(r=0;r<i.length;++r){if(void 0===o[i[r]])return n;o=o[i[r]]}return o},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var s="".concat(" ","(").concat(" "),l="".concat(" ",")").concat(" ");function c(e){return s+e+l}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var n=function(e,t){if(!t)return null;var n,r;for(n=0;n<t.length;n++)if((r=t[n]).qInfo.qId===e)return r;return null}(e.qLibraryId,t.dimensionList);return n&&n.qData.info[0].qTags.indexOf("$numeric")>-1}var r=function(e,t){if(!t)return null;var n,r,i=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=(t=t.substring(1,n)).trim()),t}(e);for(n=0;n<t.length;n++){if((r=t[n]).qName===i)return r;if(r.qDerivedFieldData)for(var o=0;o<r.qDerivedFieldData.qDerivedFieldLists.length;++o)for(var a=r.qDerivedFieldData.qDerivedFieldLists[o],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===i)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return r&&r.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function f(e,t){var n=e.crossAllDimensions;return 2===t&&n?"RowNo(Total)":"RowNo()"}function h(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),n=t.trim();return"="===n.substring(0,1)?n.substring(1).trim():n}function p(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(e,t){var n=e.crossAllDimensions;return 2===t&&n?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function y(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(y("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(y("MaxString(".concat(t,")")),")'\"}")}function b(e){var t=e.modifier,n=void 0===t?{}:t,r=e.dimensions,i=e.dimensionAndFieldList,o=e.funcComp,a=void 0===o?"Sum":o,s=e.valueComp,l=void 0===s?"0":s;if(!n.showExcludedValues)return"";if(r&&1===r.length){var c=v(u(r[0],i),p(0));return"".concat(a,"({1<").concat(c,">}").concat(l,")")}if(r&&2===r.length){var d=u(r[0],i),f=u(r[1],i),h=p(0),m=p(1),g=v(d,h),y=v(f,m);return"".concat(a,"({1<").concat(g,",").concat(y,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function x(e){return"".concat(e,"(")}function w(e){var t=e.properties,n=e.layout;return o(t,"qHyperCubeDef.qDimensions",o(n,"qHyperCube.qDimensionInfo",[])).length}const k={isFullRange:d,getNumDimensions:w,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,i=e.dimensionAndFieldList,o=e.treatMissingAsNull,a=c(h(t));if(!n.showExcludedValues)return a;var s=b({modifier:n,dimensions:r,dimensionAndFieldList:i}),l=o?"":", 0";if(r&&1===r.length){var u=p(0);return"If(Count(".concat(u,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(r&&2===r.length){var d=p(0),f=p(1);return"If(Count(".concat(d,") * Count(").concat(f,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:f,getNumStepComp:function(e,t){if(!d(e)){var n=e.steps;return"number"!=typeof n||Number.isNaN(n)?6:n}return f(e,t)},getAboveCompPrefix:m,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return m(e,t)+n+g(r)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,n){return"Aggr(".concat(e,", ").concat(t,", ").concat(n,")")},getExcludedComp:b,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,i=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===i&&2===w({properties:n,layout:r})},getDimComp:function(e,t){var n=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),r=p(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var i=["Descending","Ascending"],o=n.qSortByNumeric?"(Numeric, ".concat(i[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(i[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(o,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(o,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:h,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(s);if(-1!==n){var r=t.indexOf(l);if(-1!==r)return t.substring(n+s.length,r)}}},initModifier:function(e,t){Object.keys(t).forEach((function(n){void 0===e[n]&&(e[n]=t[n])}))},isNumeric:u,isApplicable:function(e){var t=e.properties,n=e.layout,r=e.minDimensions,i=void 0===r?1:r,o=e.maxDimensions,a=void 0===o?2:o;if(!t&&!n)return!0;var s=w({properties:t,layout:n});return s>=i&&s<=a},getExpressionWithMarkers:c,canExtract:function(e){var t=e.indexOf(s),n=e.indexOf(l);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:p,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,n){var r=t||e.outputExpression;if(e.base&&e.base.qDef&&(r=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var i=n.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));i&&t!==i.qDef.qLabel&&(r=i.qLibraryId||i.qDef.base.qLibraryId?"[".concat(i.qDef.qLabel,"]"):i.qDef.base.qDef);var o=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);r=r.startsWith("=")?r.substr(1):r,r="".concat(o,"(").concat(r,", ").concat(e.steps,")")}return r},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(n){var r=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[n]&&r.includes(a.EXPRESSIONS[n].toLowerCase())&&(t=n),n})),t}};function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function C(e){return C="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},C(e)}var M=t().bind(null,!0),E={},_=Array.isArray;function D(e){return null!=e&&!Array.isArray(e)&&"object"===C(e)}function q(e){return void 0===e}function T(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function R(e,t){var n,r=t.substring(1).split("/").slice(0,-1);return r.forEach((function(t,i){if(i!==r.length){n=+t;var o=Number.isNaN(n)?{}:[];e[n||t]=q(e[n||t])?o:e[t],e=e[n||t]}})),e}function N(e,t){var n=!0;if(D(e)&&D(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(r){N(e[r],t[r])||(n=!1)})),n);if(_(e)&&_(t)){if(e.length!==t.length)return!1;for(var r=0,i=e.length;r<i;r+=1)if(!N(e[r],t[r]))return!1;return!0}return e===t}E.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach((function(i){var o=function(e){return e?M({},{val:e}).val:e}(t[i]),a=e[i],s="".concat(n,"/").concat(i);N(o,a)||T(t,i)||(q(a)?r.push({op:"add",path:s,value:o}):D(o)&&D(a)?r=r.concat(E.generate(a,o,s)):_(o)&&_(a)?r=r.concat(function(e,t,n){var r=[],i=e.slice(),o=-1;function a(e,t,n){if(e[n]&&q(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,i=e.length;r<i;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(N(t,i))return r;if(!q(t[0])&&q(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var s=i.length-1;s>=0;s-=1)-1===(o=a(t,i[s].qInfo&&i[s].qInfo.qId,s))?(r.push({op:"remove",path:"".concat(n,"/").concat(s)}),i.splice(s,1)):r=r.concat(E.generate(i[s],t[o],"".concat(n,"/").concat(s)));for(var l=0,c=t.length;l<c;l+=1)-1===(o=a(i,t[l].qInfo&&t[l].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(l),value:t[l]}),i.splice(l,0,t[l])):o!==l&&(r.push({op:"move",path:"".concat(n,"/").concat(l),from:"".concat(n,"/").concat(o)}),i.splice(l,0,i.splice(o,1)[0]));return r}(a,o,s)):r.push({op:"replace",path:"".concat(n,"/").concat(i),value:o}))})),Object.keys(e).forEach((function(i){q(t[i])&&!T(e,i)&&r.push({op:"remove",path:"".concat(n,"/").concat(i)})})),r},E.apply=function(e,t){t.forEach((function(t){var n,r,i=R(e,t.path),o=t.path.split("/").splice(-1)[0],a=o&&Number.isNaN(+o)?i[o]:i[+o]||i,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(i=null,a=e),"add"===t.op||"replace"===t.op)if(_(i))"-"===o&&(o=i.length),i.splice(+o,"add"===t.op?0:1,t.value);else if(_(a)&&_(t.value)){var l,c=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return S(e)}(r=c)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return S(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?S(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(D(a)&&D(t.value))n=a,Object.keys(n).forEach((function(e){Object.getOwnPropertyDescriptor(n,e).configurable&&!T(n,e)&&delete n[e]})),M(a,t.value);else{if(!i)throw new Error("Patchee is not an object we can patch");i[o]=t.value}else if("move"===t.op){var u=R(e,t.from);_(i)?i.splice(+o,0,u.splice(+s,1)[0]):(i[o]=u[s],delete u[s])}else"remove"===t.op&&(_(i)?i.splice(+o,1):delete i[o])}))},E.clone=function(e){return M({},e)},E.createPatch=function(e,t,n){var r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},E.updateObject=function(e,t){Object.keys(e).length?E.apply(e,E.generate(e,t)):M(e,t)};const O=E,A=function(e,n,r){if(!e)return Promise.resolve();var i=O.generate(n,r);return t()(!0,n,r),i&&i.length?(i=i.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(i,!0)):Promise.resolve()};var P="accumulation";function I(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===P)return n[r]}function L(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===P)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var z={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const F={translationKey:"properties.modifier.accumulation",needDimension:k.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return k.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=k.getNumDimensions({properties:r,layout:i}));var c=o(r,"qHyperCubeDef.qDimensions",[]),u=k.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:s}),d=k.getNumStepComp(n,l),f=k.getAboveComp(n,l,u,d),h=k.getRangeComp("RangeSum",f);if(k.needDimension({modifier:n,properties:r,layout:i})){var p=k.getDimComp(c,1),m=k.getDimComp(c,0),g=k.getAggrComp(h,p,m);h=n.showExcludedValues?k.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,valueComp:g}):g}return h},extractInputExpression:k.extractInputExpression,initModifier:function(e){k.initModifier(e,z)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!k.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(L(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(L(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(L(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(L(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=I(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=I(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(L(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return k.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(P))return!1;var o=I(t,e);return o&&!o.disabled}};return n}};var j="movingAverage";function $(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===j)return n[r]}function H(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===j)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var V={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const B={translationKey:"properties.modifier.movingAverage",needDimension:k.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return k.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,i=e.properties,a=e.layout,s=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return n;var c=s;void 0===c&&(c=k.getNumDimensions({properties:i,layout:a}));var u=o(i,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,f=k.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:u,dimensionAndFieldList:l,treatMissingAsNull:d}),h=k.getNumStepComp(r,c),p=k.getAboveComp(r,c,f,h);if(r.nullSuppression)t=k.getRangeComp("RangeAvg",p);else{var m=k.getRangeComp("RangeSum",p),g=function(e,t){var n=k.getRowNoComp(e,t);if(!k.isFullRange(e)){var r=e.steps,i="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(i,", ").concat(n,")")}return n}(r,c);t="".concat(m," / ").concat(g)}var y=t;if(k.needDimension({modifier:r,properties:i,layout:a})){var v=k.getDimComp(u,1),b=k.getDimComp(u,0),x=k.getAggrComp(y,v,b);y=r.showExcludedValues?k.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return y},extractInputExpression:k.extractInputExpression,initModifier:function(e){k.initModifier(e,V)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!k.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(H(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(H(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(H(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(H(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=$(t,e);if(n){var r=n.steps;n.steps="number"!=typeof r||Number.isNaN(r)?6:Math.abs(r)}},show:function(t){var n=$(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(H(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(H(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return k.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(j))return!1;var o=$(t,e);return o&&!o.disabled}};return n}};var U="timeSeriesDecomposition";function W(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===U)return n[r]}function Y(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===U)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var K={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const G={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:k.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return k.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?k.generateTSDExpression(n,t,r):t},extractInputExpression:k.extractInputExpression,initModifier:function(e,t){k.initModifier(e,K),""===e.decomposition&&t&&(e.decomposition=k.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!k.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(Y(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(Y(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,n){var r=W(t,e);if(r){var i=r.steps;r.steps="number"!=typeof i||Number.isNaN(i)?2:Math.abs(i),n.properties.qHyperCubeDef.qMeasures=n.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=i:e.steps=e.steps,e})),e}))}},show:function(t){var n=W(t,e);return n&&!n.fullRange}}},show:function(e,t){return k.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(U))return!1;var o=W(t,e);return o&&!o.disabled}};return n}};var X="difference";function Z(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===X)return n[r]}function J(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===X)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:k.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return k.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:k.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=k.getNumDimensions({properties:r,layout:i}));var c=o(r,"qHyperCubeDef.qDimensions",[]),u=k.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:s}),d=k.getAboveComp(n,l,u),f="".concat(u," - ").concat(d);if(k.needDimension({modifier:n,properties:r,layout:i})){var h=k.getDimComp(c,1),p=k.getDimComp(c,0),m=k.getAggrComp(f,h,p);f=n.showExcludedValues?k.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:m}):m}return f},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!k.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(J(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(J(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(J(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return k.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(X))return!1;var o=Z(t,e);return o&&!o.disabled}};return n}};var te="normalization";function ne(e,t){var n=o(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===te)return n[r]}function re(e,t){var n=function(e,t){var n=o(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===te)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}function ie(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var oe={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,n){return 1===e?"{$<".concat(k.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ce(e,t,n){return 0===e&&t>1?"<".concat(k.getDimDefWithWrapper(n),">"):""}const ue={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return k.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:k.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return t;var l=a;void 0===l&&(l=k.getNumDimensions({properties:r,layout:i}));var c=o(r,"qHyperCubeDef.qDimensions",[]),u=k.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:c,dimensionAndFieldList:s}),d=n.selectionScope,f=n.dimensionalScope;return function(e,t,n,r,i,o,a){var s=ae(t),l=se(t,n,r),c=""===s&&""===l?"":s||l,u=le(i,o),d=ce(i,o,a),f=function(e){for(var t=[],n=0;n<e;n++)t[n]=k.getDimDefWithWrapper(n);return t.join(", ")}(o);return"".concat(e,"/ Sum(").concat(c," ").concat(u).concat(d," Aggr(").concat(c," ").concat(e,", ").concat(f,"))")}(u,d,n.field,n.value,f,l,n.primaryDimension)},initModifier:function(e){Object.keys(oe).forEach((function(t){void 0===e[t]&&(e[t]=oe[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!k.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(re(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(n){return function(e,t,n){var r=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return r=function(e,t,n){if(1===e){var r=ie(t,0);t.splice(r,1)}return t}(ne(e,n).dimensionalScope,r),r}(n,t,e)}},field:{refFn:function(t){return"".concat(re(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,n){return n.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===ne(t,e).selectionScope}},value:{refFn:function(t){return"".concat(re(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===ne(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(re(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(n,r){return function(e,t,n,r){var i=t.layout.qHyperCube.qDimensionInfo.length,o=[{value:0,translation:n.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:n.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:n.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===i?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===i?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===i?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===i?"disregardAllDimensions":"disregardDimension",".tooltip")}];return o=function(e,t,n){if(e<2){var r=ie(t,0);t.splice(r,1)}return t}(i,o),o=function(e,t,n){if(0===e){var r=ie(t,1);t.splice(r,1)}return t}(ne(e,r).selectionScope,o),o}(n,r,t,e)}},primaryDimension:{refFn:function(t){return"".concat(re(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,n){return 0===(ne(t,e).dimensionalScope||0)&&n.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return k.isApplicable({properties:t.properties})}}},show:function(t,n,r){var i=r.ext.support.modifiers;if(!Array.isArray(i)||-1===i.indexOf(te))return!1;var o=ne(t,e);return o&&!o.disabled}};return n},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ce};var de="qDef.base",fe="qDef.qDef",he="qDef.base.qDef",pe="qLibraryId",me="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=o(e,he);return void 0!==t?t:o(e,fe)},getExpressionRef:function(e){return void 0!==o(e,he)?he:fe},getLibraryIdRef:function(e){return o(e,me)?me:pe},getLibraryId:function(e){return o(e,me)||o(e,pe)},getLabelRef:function(e){return o(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return o(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var ye="qDef.qDef",ve="qDef.base.qDef",be="qLibraryId",xe="qDef.base.qLibraryId",we="qDef.qLabel",ke="qDef.qLabelExpression",Se="qDef.base.qLabel",Ce="qDef.base.qLabelExpression",Me="qDef.qAggrFunc",Ee="qDef.base.qAggrFunc",_e={initBase:function(e,t){(t||_e.isValid(e))&&(n(e,ve,o(e,ye)),n(e,xe,o(e,be)),n(e,Se,o(e,we)),n(e,Ce,o(e,ke)))},restoreBase:function(e){_e.isValid(e)&&(n(e,ye,o(e,ve)),n(e,be,o(e,xe)),n(e,we,o(e,Se)),n(e,ke,o(e,Ce)),o(e,Me)&&o(e,Ee)&&n(e,Me,o(e,Ee)),delete e.qDef.base)},isValid:function(e){var t=o(e,ve),n=o(e,xe);return void 0!==t||void 0!==n}};const De=_e;function qe(e){return qe="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},qe(e)}var Te={accumulation:F,movingAverage:B,difference:ee,normalization:ue,timeSeriesDecomposition:G};const Re={modifiers:Te,apply:Oe,applyModifiers:Ae,cleanUpMeasure:Pe,destroy:function(e){e&&Ne[e.id]&&Ne[e.id].masterItemSubscriber&&(Ne[e.id].masterItemSubscriber&&Ne[e.id].masterItemSubscriber.unsubscribe(),delete Ne[e.id])},hasActiveModifiers:Ie,getActiveModifier:Le,initBase:De.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Te[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return Te[e]&&Te[e].isApplicable({properties:n,layout:r})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,i=!1,o=!1;return t.forEach((function(e){var t=je(e);Ye({modifiers:t,properties:n,layout:r})&&(i=!0,o=o||Je({modifiers:t,properties:n,layout:r}))})),i&&!o},ifEnableTotalsFunction:ze};var Ne={};function Oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,i=e.isSnapshot,a=void 0!==i&&i,s=e.masterItem,l=!1;Ne[n.id]=Ne[n.id]||{isFirstTime:!0};var c=Ne[n.id].isFirstTime;if(Ne[n.id].isFirstTime=!1,r&&"object"===qe(r))return Ae({model:n,properties:r});var u=n?n.layout:void 0,d=o(u,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var f=o(u,"qHyperCube.qMeasureInfo"),h=Ne[n.id].lastReloadTime;if(Ne[n.id].lastReloadTime=o(n,"app.layout.qLastReloadTime"),Ie({measures:f,layout:u})){var p=function(e){var t=e.measures,n=e.layout,r=e.lastReloadTime;return o(e.model,"app.layout.qLastReloadTime")!==r&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return We({measure:e,properties:n,layout:r})}))}({measures:t,layout:n})}({measures:f,layout:u,model:n,lastReloadTime:h});return p||function(e){var t=e.measures,n=e.layout,r=e.masterItem,i=e.isFirstTime;return!!Array.isArray(t)&&(i||r||t.some((function(e){return function(e){var t=e.measure,n=e.layout;return Ye({modifiers:je(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})})))}({measures:f,layout:u,masterItem:s,isFirstTime:c})?n.getEffectiveProperties().then((function(e){var r=t()(!0,{},e);He(r);var i=Qe(r);return Ke({model:n}).then((function(t){return Ge({libraryIds:i,model:n}).then((function(i){return p&&function(e){var t=e.properties;Fe(t).forEach((function(e){return function(e){var t=e.measure;if(We({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach((function(e){if("object"===qe(e)&&!e.disabled){if(n++,"object"!==qe(Te[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(n>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var r=Te[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&Be(t)&&k.simplifyExpression(t.qDef.base.qDef)!==k.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}({properties:r}),Ae({model:n,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:s,libraryItemsProps:i,dimensionAndFieldList:t})}))}))})):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===qe(e.base)}))}(f)?n.getEffectiveProperties().then((function(e){return function(e){var n=e.model,r=e.properties,i=Qe(r);return et({model:n,libraryIds:i}).then((function(){var e=t()(!0,{},r);return Fe(r).forEach((function(e){return Pe(e)})),Ze({oldProperties:e,newProperties:r,model:n})}))}({model:n,properties:e})})):Promise.resolve(l)}function Ae(e){var n=e.model,r=e.oldProperties,i=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,c=e.masterItem,u=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=l?t()(!0,{},i):i),He(i);var f=Qe(i);return et({model:n,libraryIds:f,masterItem:c}).then((function(){return function(e){var n=e.measures,r=e.properties,i=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(n||(n=Fe(r)),!n.length)return Promise.resolve();if(!Ie({measures:n,properties:r}))return n.forEach((function(e){return Pe(e)})),Promise.resolve();var l=a?void 0:Qe(r);return Ke({model:i,dimensionAndFieldList:s}).then((function(e){return Ge({libraryIds:l,model:i,libraryItemsProps:a}).then((function(i){n.forEach((function(n){Ye({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,i=e.libraryItemsProps,a=e.dimensionAndFieldList,s=0;De.isValid(n)||De.initBase(n,!0);var l=n.qDef,c=l.modifiers,u=l.base;Array.isArray(c)&&c.forEach((function(e){if("object"===qe(e)&&!e.disabled){if(s++,"object"!==qe(Te[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(s>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Te[e.type].initModifier(e,n);var l=n.qLibraryId||u&&u.qLibraryId;l?function(e){var n=e.measure,r=e.modifier,i=e.properties,o=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:Te[r.type].generateExpression({expression:s,modifier:r,properties:i,dimensionAndFieldList:o});r.outputExpression=l,n.qDef.qDef=r.outputExpression,(n.qDef.qLabel||a.qMeasure.qLabel)&&(n.qDef.qLabel=a.qMeasure.qLabel),(n.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(n.qDef.qLabelExpression=a.qMeasure.qLabelExpression),n.qDef.quarantine&&n.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(n.qDef.qNumFormat=a.qMeasure.qNumFormat,n.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete n.qLibraryId,n.qDef.coloring=a.qMeasure.coloring,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,libraryId:l,properties:r,libraryItemsProps:i,dimensionAndFieldList:a}):function(e){var n=e.measure,r=e.modifier,i=e.properties,o=e.dimensionAndFieldList;"function"==typeof Te[r.type].updateModifier&&Te[r.type].updateModifier(r,i.qHyperCubeDef);var a=ge.getExpression(n),s=""===a?a:Te[r.type].generateExpression({expression:a,modifier:r,properties:i,dimensionAndFieldList:o});r.outputExpression=s,n.qDef.qDef=r.outputExpression,n.qDef.base.qLabelExpression?n.qDef.qLabelExpression=n.qDef.base.qLabelExpression:n.qDef.qLabel=n.qDef.base.qLabel||a,r.base=t()(!0,{},n.qDef.base)}({measure:n,modifier:e,properties:r,dimensionAndFieldList:a}),function(e){var t=o(e,"qDef.qAggrFunc");"Expr"!==t||ze(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&ze(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(n)}}))}({measure:n,properties:r,libraryItemsProps:i,dimensionAndFieldList:e}),Ve(n)):Pe(n)}))}))}))}({measures:a,properties:i,model:n,libraryItemsProps:u,dimensionAndFieldList:d}).then((function(){return l?Ze({oldProperties:r,newProperties:i,model:n}):Promise.resolve(!1)}))}))}function Pe(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some((function(e){return"object"===qe(e)&&!e.disabled&&!Te[e.type]}))}(e)?De.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Ve(e)}function Ie(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ye({modifiers:je(e),properties:n,layout:r})}))}function Le(e){var t=je(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(Te[r.type]&&!r.disabled)return r}}function ze(e){var t=Le(e);return!t||Te[t.type].enableTotalsFunction(e)}function Fe(e){return o(e,"qHyperCubeDef.qMeasures",[]).concat(o(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return o(e,"outputExpression.qValueExpression.qExpr")||o(e,"outputExpression")}function He(e){Fe(e).forEach((function(e){return function(e){var n=Le(e);n&&(void 0!==n.outputExpression&&$e(n)!==e.qDef.qDef?delete e.qDef.base:!De.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)}))}function Ve(e){var t=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===qe(t)&&(t.disabled||!Te[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function Be(e){return e.base||e.qDef&&e.qDef.base}function Ue(e){var t=Be(e);return e.qLibraryId||t&&t.qLibraryId}function We(e){var t=e.measure,n=e.properties,r=e.layout;return!Ue(t)&&Ye({modifiers:je(t),properties:n,layout:r})}function Ye(e){var t=e.modifiers,n=e.properties,r=e.layout,i={};return Array.isArray(t)&&t.some((function(e){return!("object"!==qe(e)||e.disabled||!Te[e.type])&&(void 0===i[e.type]&&(i[e.type]=Te[e.type].isApplicable({properties:n,layout:r})),i[e.type])}))}function Ke(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],i={},o=t.app.getDimensionList().then((function(e){i.dimensionList=e}));r.push(o);var a=t.app.getFieldList().then((function(e){i.fieldList=e}));return r.push(a),Promise.all(r).then((function(){return i}))}function Ge(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var i=t.measureLibraryIds,o=t.dimensionLibraryIds,a={},s=[];return i.forEach((function(e){var t=n.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),o.forEach((function(e){var t=n.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),Promise.all(s).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Ze(e){var t=e.oldProperties,n=e.newProperties,r=e.model,i=JSON.stringify(o(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(o(n,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(o(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(o(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return i?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,i=t.layout;return i&&!i.qHasSoftPatches&&!i.qExtendsId&&o(i,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):A(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then((function(){return i})):Promise.resolve(i)}function Je(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===qe(e)&&!e.disabled&&Te[e.type]&&Te[e.type].needDimension({modifier:e,properties:n,layout:r})}))}function Qe(e){var t=Fe(e),n=[],r=[],i=!1;return t.forEach((function(t){var r=je(t);if(Ye({modifiers:r,properties:e})){var o=Ue(t);o&&n.push(o),i=i||Je({modifiers:r,properties:e})}})),o(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&r.push(t)})),{measureLibraryIds:n,dimensionLibraryIds:r}}function et(e){var t=e.model,n=e.libraryIds;return!e.masterItem&&n&&(n.measureLibraryIds.length||n.dimensionLibraryIds.length)?(Ne[t.id].masterItemSubscriber=Ne[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},i={},a={},s={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},n=o(e,"qInfo.qType");return n&&s[n]&&s[n].forEach((function(n){t[n]=o(e,n)})),JSON.stringify(t)}function c(e){var t=e.qInfo.qId;if(r[t]){var i=l(e);r[t].properties!==i&&(r[t].properties=i,"function"==typeof n&&r[t].enabled&&n(e)),r[t].enabled=!0}}function u(e,n){return t.app[n](e).then((function(t){r[e]={listener:t.layoutSubscribe(c),enabled:!1,properties:l(t.layout)}}))}return{subscribe:function(e){var n=e.measureLibraryIds,o=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;i={},e.measureLibraryIds.forEach((function(e){i[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:n,dimensionLibraryIds:o}),Object.keys(r).forEach((function(e){i[e]||a[e]||(r[e].listener.dispose(),delete r[e])})),t.app&&(Object.keys(i).forEach((function(e){i[e]&&!r[e]&&s.push(u(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!r[e]&&s.push(u(e,"getDimension"))}))),Promise.all(s)},unsubscribe:function(){Object.keys(r).forEach((function(e){r[e].listener.dispose()})),r={}}}}({model:t,callback:function(e){return Oe({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Ne[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),t.default=i.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{function e(t){var n,r=t;return r>9?(n=65+r-10)>90&&(n+=6):r="".concat(r).charCodeAt(0),[48,111,79,105,73,108].indexOf(n)>-1?e(r+1):String.fromCharCode(n)}function t(n){var r=e(n%62),i=Math.floor(n/62);return i>0?t(i)+r:r}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}n.d(r,{default:()=>He});const o={getValue:function(e,t,n){if(null==e||null==t)return n;for(var r=t.split("."),i=e,o=0;o<r.length;++o){var a=r[o];if(""!==a){if(void 0===i[a]||null===i[a])return n;i=i[a]}}return i},setValue:function(e,t,n){if(null!=e&&null!=t){for(var r=t.split("."),i=r[r.length-1],o=e,a=0;a<r.length-1;++a){var s=r[a];void 0!==o[s]&&null!==o[s]||(o[s]=Number.isNaN(+r[a+1])?{}:[]),o=o[s]}void 0!==n?o[i]=n:delete o[i]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(i(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return r;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var n=e.indexOf(t[0]);if(-1!==n){for(var r=0;r<t.length;r++){var i=e.indexOf(t[r]);if(n>i)return!1;n=i}return!0}return!1},indexAdded:function(e,t){var n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){var n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r},findItemByPropertyValue:function(e,t,n){if(e){for(var r=0;r<e.length;r++)if(e[r][t]===n)return e[r];return null}return null},findIndexByPropertyValue:u};var f=n(645),h=n.n(f);const p=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,i=n.data[0];(t=i.dimensions).push.apply(t,a(r.qDimensions));var s,l=o.getValue(r,"qLayoutExclude.qHyperCubeDef.qDimensions");l&&(s=i.excludedDimensions).push.apply(s,a(l))},m=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,i=n.data[0];(t=i.measures).push.apply(t,l(r.qMeasures));var a,s=o.getValue(r,"qLayoutExclude.qHyperCubeDef.qMeasures");s&&(a=i.excludedMeasures).push.apply(a,l(s))},g=function(e){var t=e.exportFormat,n=e.qHyperCubeDef,r=t.data[0];n.qInterColumnSortOrder||(n.qInterColumnSortOrder=[]),r.interColumnSortOrder=n.qInterColumnSortOrder.concat();var i=o.getValue(n,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");i&&d.isOrderedSubset(i,r.interColumnSortOrder)&&(r.interColumnSortOrder=i.concat())},y=function(e){var t=e.exportFormat,n=e.properties;Object.keys(n).forEach((function(e){t.properties[e]=n[e]}))},v=function(e){var t=e.exportFormat,n=e.properties;n.qLayoutExclude||(n.qLayoutExclude={}),n.qLayoutExclude.disabled&&(Object.keys(n.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=n.qLayoutExclude.disabled[e])})),delete n.qLayoutExclude.disabled),n.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===o.getValue(e,t)&&o.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(n),delete n.qLayoutExclude.changed),n.qLayoutExclude.quarantine&&!o.isEmpty(n.qLayoutExclude.quarantine)||delete n.qLayoutExclude},b=function(e){e.forEach((function(e){h().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,n){var r,i,a=o.getValue(e,t);if(!o.isAtomicValue(a))try{if((i=(i=(r=JSON.stringify(a)).match(/:\{/g))?i.length:0)>2)return;a=JSON.parse(r)}catch(e){return}o.getValue(e,"qLayoutExclude.quarantine")||o.setValue(e,"qLayoutExclude.quarantine",{});var s=o.getValue(e,"qLayoutExclude.quarantine");s[n]||(s[n]={}),s[n][t]=a}var w=n(229),k=n.n(w);function S(e,t){var n=k()(!0,{},t,e);return o.getValue(n,"qOtherTotalSpec.qOtherCounted")||o.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),o.getValue(n,"qOtherTotalSpec.qOtherLimit")||o.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function C(e,t){return k()(!0,{},t,e)}function M(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var E=Math.pow(2,53)-1;function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}const q=function(e,t,n){var r="masterobject"===o.getValue(t,"properties.qInfo.qType")?"masterobject":o.getValue(n,"qInfo.qType");o.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},T=function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},R=function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},N=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},O=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},A=function(e){var t,n=e.exportFormat,r=e.maxDimensions,i=e.minDimensions,o=e.newHyperCubeDef,a=e.defaultDimension,s=n.data[0];for(t=0;t<s.dimensions.length;++t){var l=S(s.dimensions[t],a);o.qDimensions.length<r?o.qDimensions.push(l):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(l)}for(t=0;t<s.excludedDimensions.length;++t){var c=S(s.excludedDimensions[t],a);o.qDimensions.length<i?o.qDimensions.push(c):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(c)}},P=function(e){var t,n=e.exportFormat,r=e.maxMeasures,i=e.minMeasures,o=e.newHyperCubeDef,a=e.defaultMeasure,s=n.data[0];for(t=0;t<s.measures.length;++t){var l=C(s.measures[t],a);o.qMeasures.length<r?o.qMeasures.push(l):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(l)}for(t=0;t<s.excludedMeasures.length;++t){var c=C(s.excludedMeasures[t],a);o.qMeasures.length<i?o.qMeasures.push(c):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(c)}},I=function(e){var t=e.exportFormat,n=e.dataDefinition,r=void 0===n?{}:n,i=t.data[0],o=r.dimensions||{max:0},a=r.measures||{max:0},s=M(a.max,i.dimensions.length,E),l=M(a.min,i.dimensions.length,0);return{maxDimensions:M(o.max,s,E),minDimensions:M(o.min,l,0),maxMeasures:s,minMeasures:l}},L=function(e){var t=e.exportFormat,n=e.newHyperCubeDef,r=t.data[0],i=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();var o=n.qInterColumnSortOrder.length;if(o!==i)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());o!==i;)o<i?(d.indexAdded(n.qInterColumnSortOrder,o),++o):(--o,d.indexRemoved(n.qInterColumnSortOrder,o))},z=function(e){var t=e.exportFormat,n=e.initialProperties,r=e.hypercubePath,i={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(i.qLayoutExclude.quarantine=k()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?o.setValue(i,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?i[e]=t.properties[e]:i.qLayoutExclude.disabled[e]=t.properties[e]})),null===(i=k()(!0,{},n,i)).components&&(i.components=[]),i},F=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,i=e.maxMeasures,o=e.minMeasures,a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>i&&i>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>o||!i&&a.measures.length>0||!n&&a.dimensions.length>0},j=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,i=e.maxMeasures,o=e.minMeasures,a=e.newHyperCubeDef,s=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>n&&n>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>i&&i>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>o)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!i&&s.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&s.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},$=function(e){var t,n=e.newProperties,r=e.dataDefinition,i=e.hypercubePath;if(r.dimensions&&"function"==typeof r.dimensions.added){var a=o.getValue(n,i||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return _(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return _(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],s.forEach((function(e){a.qDimensions.push(e),r.dimensions.added(e,n)}))}},H=function(e){var t,n=e.newProperties,r=e.dataDefinition,i=e.hypercubePath;if(r.measures&&"function"==typeof r.measures.added){var a=o.getValue(n,i||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return D(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return D(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?D(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],s.forEach((function(e){a.qMeasures.push(e),r.measures.added(e,n)}))}},V=function(e){var t=e.measures,n=e.modifierTypes;t&&n&&h().isSupportedModifiers(n)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function B(e,t){var n=o.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!n&&(Object.keys(n).forEach((function(t){o.setValue(e,t,n[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const U={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,s=o.getValue(a,n||""),l=s.qHyperCubeDef;return l.qInterColumnSortOrder||(l.qInterColumnSortOrder=[]),p({exportFormat:i,qHyperCubeDef:l}),m({exportFormat:i,qHyperCubeDef:l}),g({exportFormat:i,qHyperCubeDef:l}),delete l.qLayoutExclude,y({exportFormat:i,properties:a}),n&&(i.properties.qHyperCubeDef=l,delete s.qHyperCubeDef),v({exportFormat:i,properties:a}),r||b(i.properties.qHyperCubeDef.qMeasures),Array.isArray(i.properties.filters)&&(x(i.properties,"filters","storedFilters"),delete i.properties.filters),i.properties.qHyperCubeDef.qContextSetExpression&&(x(i.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),i.properties.qHyperCubeDef.qContextSetExpression=""),i.properties.qHyperCubeDef.qDynamicScript&&i.properties.qHyperCubeDef.qDynamicScript.length&&(x(i.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),i.properties.qHyperCubeDef.qDynamicScript=[]),i},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=void 0===n?{}:n,i=e.dataDefinition,a=void 0===i?{}:i,s=e.defaultPropertyValues,l=void 0===s?{}:s,c=e.hypercubePath,u=e.extension,d=e.supportedFilters,f=void 0===d||d,h=e.isHCModifierSupported,p=void 0===h||h,m={qChildren:[]},g=z({exportFormat:t,initialProperties:r,hypercubePath:c}),y=o.getValue(r,c||"").qHyperCubeDef,v=o.getValue(g,c||"").qHyperCubeDef,b=I({exportFormat:t,dataDefinition:a}),x=b.maxDimensions,w=b.minDimensions,k=b.maxMeasures,S=b.minMeasures,C=l.defaultDimension,M=void 0===C?N():C,E=l.defaultMeasure,_=void 0===E?O():E;v.qDimensions.length=0,v.qMeasures.length=0,F({exportFormat:t,maxDimensions:x,minDimensions:w,maxMeasures:k,minMeasures:S})&&j({exportFormat:t,maxDimensions:x,minDimensions:w,maxMeasures:k,minMeasures:S,newHyperCubeDef:v}),A({exportFormat:t,maxDimensions:x,minDimensions:w,newHyperCubeDef:v,defaultDimension:M}),P({exportFormat:t,maxMeasures:k,minMeasures:S,newHyperCubeDef:v,defaultMeasure:_}),$({newProperties:g,dataDefinition:a,hypercubePath:c}),H({newProperties:g,dataDefinition:a,hypercubePath:c}),L({exportFormat:t,newHyperCubeDef:v}),T("qMaxStackedCells",y,v),T("qNoOfLeftDims",y,v),R("qInitialDataFetch",y,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),R("qMode",y,v,"S"),R("qReductionMode",y,v,"N"),R("qSortbyYValue",y,v),R("qIndentMode",y,v),R("qShowTotalsAbove",y,v),q(g,t,r),m.qProperty=g;var D=o.getValue(u||{},"support.modifiers");return V({measures:v.qMeasures,modifierTypes:D}),f&&B(m.qProperty,"storedFilters"),"S"===v.qMode&&p&&B(m.qProperty,"dynamicScript"),m}};var W={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function Y(e,t,n,r){t=t||[];var i=u(e,r,n),o=u(t,r,n);if(-1!==i&&-1===o){var a=e.splice(i,1);t.push(a[0])}return t}function K(e,t){return e.length!==t}const G={create:function(e,t){if(!e||!W[e])throw new Error("Attribute Expressions Util: ID required");var n={};return t&&Object.keys(t).forEach((function(e){n[e]=t[e]})),n.id=e,n.qAttribute=!0,n},moveByIdFromGroup:function(e,t,n,r,i){n=n||"qAttributeExpressions",i=i||"id";for(var o=0;o<e.length;o++){var a=e[o][n],s=t.length;if(Y(a,t,r,i),K(t,s))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return o.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return o.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},Z={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},J={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Q={scatterplot:J,"sn-scatter-plot":J,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,n){if(Array.isArray(e[t])){var r=d.findIndexByPropertyValue(e[t],"id",n);r>=0&&e[t].splice(r,1)}else e[t]=[]}function te(e,t){var n=G.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)})),t.forEach((function(e){ee(e,"qAttributeDimensions",n),ee(e,"qAttributeExpressions",n)}))}function ne(e,t){if(t){var n="="===t.charAt(0);e.color.altLabel=n?{qStringExpression:{qExpr:t.substr(1)}}:t}}function re(e){var t=e.properties,n=e.isDimension,r=e.dimensions,i=e.excludedDimensions,a=e.measures,s=e.label;te(r,i);var l=r[r.length-1];if(l){var c=n?o.getValue(t,"color.byDimDef"):o.getValue(t,"color.byMeasureDef"),u=o.getValue(t,"color.formatting.qNumFormat"),f=o.getValue(t,"color.formatting.isCustomFormatted");if(c){var h=G.create(G.IDMAP.COLOR_BY_ALTERNATIVE);switch(c.type){case"expression":!function(e){var t=e.attributeExpression,n=e.label,r=e.item,i=e.isDimension,o=e.qNumFormat,a=e.isCustomFormatted;t.label=n||r.label,i?t.qDef=r.key:(t.qExpression=r.key,o&&(t.qNumFormat=o,t.isCustomFormatted=a)),t.matchMeasure=r.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:h,label:s,item:c,isDimension:n,qNumFormat:u,isCustomFormatted:f});break;case"libraryItem":!function(e){var t=e.attributeExpression,n=e.measures,r=e.item,i=e.qNumFormat,o=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(n,"qLibraryId",r.key),i&&(t.qNumFormat=i,t.isCustomFormatted=o)),void 0!==r.expression?t.qExpression=r.expression:t.qLibraryId=r.key,t.colorMapRef=r.key}({attributeExpression:h,measures:a,item:c,isDimension:n,qNumFormat:u,isCustomFormatted:f})}n?(h.qSortBy={qSortByAscii:1},l.qAttributeDimensions.push(h)):l.qAttributeExpressions.push(h)}}}function ie(e,t,n,r){var i,o,a,s={};switch(e){case"dimension":n.qLibraryId?(s.type="dimension",s.name=n.qLibraryId,s.id=n.qLibraryId):(s.type="field",t?(s.name=n.label||n.qDef,s.id=n.qDef):(s.name=n.qDef.qFieldDefs[0],s.label=(a=n.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":i=function(e,t){return t?e.qLibraryId:h().measureBase.getLibraryId(e)}(n,t),i?(s.type="measure",s.name=i,s.id=i,o=function(e,t){return h().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(n,r),o&&(s.expression=o)):(s.type="expression",t?(s.name=n.label||n.qExpression,s.id=n.qExpression):(s.name=n.qDef.qDef,s.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(n)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return s}const oe={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,n,r){var i=n?"expression":t.type,o=e.color,a=o.mode,s=X.getItemLabel(t);switch(ne(e,s||""),i){case"field":a="byDimension",o.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",o.byMeasureDef={label:n||s,key:n||t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",o.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",o.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},o.formatting&&oe.useMasterNumberFormat(o.formatting)}r||(o.auto=!1,o.mode=a)}function se(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=o.getValue(e,"color.byDimDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"color.byDimDef");r.activeDimensionIndex=Math.min(r.activeDimensionIndex,n.length-1);var i=ie("dimension",!1,n[r.activeDimensionIndex]);i.activeDimensionIndex=r.activeDimensionIndex,ae(e,i)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=n[function(e,t,n){var r=o.getValue(t,"visualization"),i=n.split("."),a=Number(i[1]),s=o.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===r&&"point"===s}(n,e,t)?0:n.length-1],i=G.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(r.qAttributeDimensions,"id",i);return ae(e,ie("dimension",!!a,a||r)),!!a}(e,t))return;re({properties:e,isDimension:!0,dimensions:n,excludedDimensions:i,measures:r,label:o.getValue(e,"color.byDimDef.label")})}const le=function(e,t,n){o.setValue(e,t,n),o.isAtomicValue(n)&&function(e,t,n){var r=e.qLayoutExclude;r&&(r.changed||(r.changed={}),r.changed[t]={from:o.getValue(e,t),to:n})}(e,t,n)},ce=function(e,t){var n={primary:!0};if(e){var r=(Q[t]||Z).colorModeOptions||Z.colorModeOptions;n.byDimension=r.dimension(e),n.byMeasure=r.measure(e),n.byMultiple=r.multiColor(e),n.byExpression=r.expression(e)}return n},ue=function(e){var t=e.canColorBy,n=e.autoColor,r=e.colorMode,i=e.dimensions;return!(t[r]&&!n&&("byDimension"!==r&&"byMeasure"!==r||!i.length))},de=function(e,t){var n,r=o.getValue(e,"color.mode"),i=o.getValue(e,"color.auto"),a=o.getValue(e,"".concat(t,"qDimensions"),[]),s=o.getValue(e,"".concat(t,"qMeasures"),[]),l=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);i?te(a,l):!(n={auto:i,colorMode:r,dimensions:a}).auto&&"byDimension"===n.colorMode&&n.dimensions.length>0?se(e,t):function(e){var t=e.auto,n=e.colorMode,r=e.dimensions,i=e.measures,a=e.properties,s=o.getValue(a,"visualization");return!(t||"byMeasure"!==n||!r.length||"map"!==s&&!i.length)}({auto:i,colorMode:r,dimensions:a,measures:s,properties:e})?function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=o.getValue(e,"color.byMeasureDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var n=o.getValue(e,"".concat(t,"qMeasures"),[]),r=o.getValue(e,"color.byMeasureDef");if(r.activeMeasureIndex=Math.min(r.activeMeasureIndex,n.length-1),r.activeMeasureIndex>-1){var i=ie("measure",!1,n[r.activeMeasureIndex],!0);i.activeMeasureIndex=r.activeMeasureIndex,ae(e,i)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,r)&&function(e,t){var n=o.getValue(e,"".concat(t,"qDimensions"),[]),r=o.getValue(e,"".concat(t,"qMeasures"),[]),i=n[n.length-1],a=G.IDMAP.COLOR_BY_ALTERNATIVE,s=d.findItemByPropertyValue(i.qAttributeExpressions,"id",a);return ae(e,ie("measure",!!s,s||r[0])),!!s}(e,t))return;re({properties:e,isDimension:!1,dimensions:n,excludedDimensions:i,measures:r,label:o.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var n=o.getValue(e,"color.mode"),r=o.getValue(e,"".concat(t,"qDimensions"),[]),i=o.getValue(e,"".concat(t,"qMeasures"),[]),a=o.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===n&&i.length<2&&o.setValue(e,"color.mode","primary"),te(r,a)}(e,t)},fe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},he=function(e){var t=e.shouldUpdateColorBy,n=e.properties,r=o.getValue(n,"qHyperCubeDef.qMeasures",[]),i=o.getValue(n,"color.mode","");return!t&&"byExpression"===i&&r.length>0},pe=function(e){var t=o.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),n=o.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:n,id:"colorByExpression"}),o.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},me=function(e){o.setValue(e,"color.mode","primary"),o.setValue(e,"color.auto",!0)},ge=function(e){var t=o.getValue(e,"qHyperCubeDef.qDimensions",[]),n=o.getValue(e,"color.persistent",!1);return t.length>1&&!n},ye={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=U.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),o=i.data[0],a=o.dimensions.concat(o.excludedDimensions),s=o.measures.concat(o.excludedMeasures),l=G.IDMAP,c=l.COLOR_BY_ALTERNATIVE,u=l.COLOR_BY_EXPRESSION;return G.moveByIdFromGroup(a,[],"qAttributeDimensions",c),G.moveByIdFromGroup(a,[],"qAttributeExpressions",c),G.moveByIdFromGroup(s,[],"qAttributeExpressions",u),i},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,i=e.defaultPropertyValues,a=e.hypercubePath,s=e.extension,l=e.supportedFilters,c=e.isHCModifierSupported,u=U.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:i,hypercubePath:a,extension:s,supportedFilters:l,isHCModifierSupported:c}),d=u.qProperty,f=o.getValue(d,"visualization"),h=o.getValue(d,"qHyperCubeDef.qDimensions",[]),p=o.getValue(d,"color.mode",""),m=o.getValue(d,"color.auto",""),g=ce(d,f),y=ue({canColorBy:g,autoColor:m,colorMode:p,dimensions:h});return g[p]?he({shouldUpdateColorBy:y,properties:d})&&pe(d):me(d),y&&de(d,"qHyperCubeDef."),ge(d)&&le(d,"color.persistent",!0),fe(h),u}};var ve=["bar","marker","line"];const be=function(e){var t=e.initialProperties,n=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?B(n,"unsupportedAutoMinMax")||k()(n.measureAxis,t.measureAxis):B(n,"supportedAutoMinMax")||k()(n.measureAxis,t.measureAxis)},xe=function(e){var t,n=e.exportFormat,r=e.initialProperties,i=e.properties,o=e.measureType,a=i.qHyperCubeDef,s=i.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:n,initialProperties:r})){var l=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var n=e.qDef.series,r=n.type,i=n.axis;t[i]||(t[i]={axis:i,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(r)&&t[i].type[r]++,t[i].type.total++}})),t}(a);l.length?(o&&(t=l.filter((function(e){return e.type[o]>0})).sort((function(e,t){return t.type[o]-e.type[o]}))),t&&t.length||(t=l.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&k()(s,n.properties.measureAxes[t[0].axis])):k()(s,n.properties.measureAxes[0])}},we=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var n=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=n}}},ke={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,i=e.supportedAutoMinMax,o=void 0===i||i,a=ye.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),s=a.properties;return o?(x(s,"measureAxis.min","supportedAutoMinMax"),x(s,"measureAxis.max","supportedAutoMinMax")):(x(s,"measureAxis.min","unsupportedAutoMinMax"),x(s,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,i=e.defaultPropertyValues,o=e.hypercubePath,a=e.measureType,s=e.extension,l=e.supportedFilters,c=e.isHCModifierSupported,u=ye.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:i,hypercubePath:o,extension:s,supportedFilters:l,isHCModifierSupported:c}),d=u.qProperty;return be({initialProperties:n,properties:d}),xe({exportFormat:t,initialProperties:n,properties:d,measureType:a}),we(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],u}};function Se(e,t,n){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(n)}function Ce(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,i=e.arrayName,a=e.itemPath;o.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,i=e.item,a=e.itemPath,s=o.getValue(i,a);if(void 0!==s){var l=o.getValue(i,"qDef.cId");l||(l=o.generateId(),o.setValue(i,"qDef.cId",l));var c=Se(n,r,l);o.setValue(t,c,s),o.setValue(i,a,void 0)}}({properties:t,quarantineName:r,arrayName:i,item:e,itemPath:a})}))}function Me(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,i=e.arrayName,a=e.itemPath;o.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,i=e.item,a=e.itemPath,s=o.getValue(i,"qDef.cId");if(s){var l=Se(n,r,s),c=o.getValue(t,l);void 0!==c&&(o.setValue(i,a,c),o.setValue(t,l,void 0))}}({properties:t,quarantineName:r,arrayName:i,item:e,itemPath:a})}))}var Ee="qHyperCubeDef.qMeasures",_e="conditionalColoring",De="measures",qe="qDef.conditionalColoring";const Te={quarantine:function(e){Ce({properties:e,arrayPath:Ee,quarantineName:_e,arrayName:De,itemPath:qe})},unquarantine:function(e){Me({properties:e,arrayPath:Ee,itemPath:qe,arrayName:De,quarantineName:_e})}};var Re="qHyperCubeDef.qMeasures",Ne="measures",Oe="qHyperCubeDef.qDimensions",Ae="dimensions",Pe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Ie="alternativeMeasures",Le="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",ze="alternativeDimensions",Fe="qCalcCondition",je="conditionalShowHide";const $e={quarantine:function(e){Ce({properties:e,arrayPath:Re,quarantineName:je,arrayName:Ne,itemPath:Fe}),Ce({properties:e,arrayPath:Oe,quarantineName:je,arrayName:Ae,itemPath:Fe})},unquarantine:function(e){Me({properties:e,arrayPath:Re,quarantineName:je,arrayName:Ne,itemPath:Fe}),Me({properties:e,arrayPath:Oe,quarantineName:je,arrayName:Ae,itemPath:Fe})},quarantineAlternative:function(e){Ce({properties:e,arrayPath:Pe,quarantineName:je,arrayName:Ie,itemPath:Fe}),Ce({properties:e,arrayPath:Le,quarantineName:je,arrayName:ze,itemPath:Fe})},unquarantineAlternative:function(e){Me({properties:e,arrayPath:Pe,quarantineName:je,arrayName:Ie,itemPath:Fe}),Me({properties:e,arrayPath:Le,quarantineName:je,arrayName:ze,itemPath:Fe})}},He={hypercube:U,colorChart:ye,axisChart:ke,quarantineProperty:x,unquarantineProperty:B,quarantineArrayProp:Ce,unquarantineArrayProp:Me,conditionalColoring:Te,conditionalShow:$e}})(),r.default})()}(P0);var I0=r(P0.exports);const L0={setValue(e,t,n){if(!t)return;const r=t.split(".");let i=e;const o=r[r.length-1];let a;for(a=0;a<r.length-1;++a)null==i[r[a]]&&(i[r[a]]=Number.isNaN(+r[a+1])?{}:[]),i=i[r[a]];void 0!==n?i[o]=n:delete i[o]},getValue(e,t,n){const r=t.split(".");let i,o=e;if(void 0===o)return n;for(i=0;i<r.length;++i){if(null==o[r[i]])return n;o=o[r[i]]}return o}},z0={getDimensions:e=>L0.getValue(e,"qHyperCubeDef.qDimensions",[]),getNumDimensions:e=>L0.getValue(e,"qHyperCubeDef.qDimensions.length",0),getMeasures:e=>L0.getValue(e,"qHyperCubeDef.qMeasures",[]),getNumMeasures:e=>L0.getValue(e,"qHyperCubeDef.qMeasures.length",0),getDimensionLayouts(e,t){const n=L0.getValue(e,t?`${t}.qHyperCube`:"qHyperCube",null);return n?n.qDimensionInfo:[]},getDimensionLayout(e,t,n){return this.getDimensionLayouts(t,n).filter((t=>e===t.cId))[0]},getMeasureLayouts(e,t){const n=L0.getValue(e,t?`${t}.qHyperCube`:"qHyperCube",null);return n?n.qMeasureInfo:[]},getMeasureLayout(e,t,n){return this.getMeasureLayouts(t,n).filter((t=>e===t.cId))[0]}};const F0={colorModeOptions:{primary:()=>!0,dimension:()=>!0,multiColor:()=>!1,measure:()=>!0,expression:e=>z0.getNumMeasures(e)>=1},showLegend:e=>{const t=L0.getValue(e,"color.auto"),n=L0.getValue(e,"color.expressionIsColor"),r=L0.getValue(e,"color.mode");return!(!t&&"primary"===r||!t&&"byExpression"===r&&(n||void 0===n))},persistentColorsShow:e=>!L0.getValue(e,"color.auto")&&"byDimension"===L0.getValue(e,"color.mode"),useDimValColShow:e=>(void 0===L0.getValue(e,"color.useDimColVal")&&L0.setValue(e,"color.useDimColVal",!1),!L0.getValue(e,"color.auto")&&"byDimension"===L0.getValue(e,"color.mode")&&"libraryItem"===L0.getValue(e,"color.byDimDef.type"))},j0=function(e){const{colorModeOptions:t,persistentColorsShow:n,useDimValColShow:r,showLegend:i}=F0;this.color={colorMode:{options(n){const r=[];return"explore"===e&&r.push({value:"auto",translation:"Common.Auto"}),t.primary(n)&&r.push({value:"primary",translation:"properties.colorMode.primary"}),t.multiColor(n)&&r.push({value:"byMultiple",translation:"properties.colorMode.multicolored"}),t.dimension(n)&&r.push({value:"byDimension",translation:"properties.colorMode.byDimension"}),t.measure(n)&&r.push({value:"byMeasure",translation:"properties.colorMode.byMeasure"}),t.expression(n)&&"explore"!==e&&r.push({value:"byExpression",translation:"properties.colorMode.byExpression"}),r}},persistentColors:{show:e=>r(e)?n(e)&&!L0.getValue(e,"color.useDimColVal"):n(e)},useDimColVal:{show:r}},this.legend={show:i,showTitle:{show(e){const t=L0.getValue(e,"color.auto");return L0.getValue(e,"legend.show")&&i(e)&&(t||!function(e){return"byExpression"===L0.getValue(e,"color.mode")&&!0===L0.getValue(e,"color.expressionIsColor")}(e))}},dock:{show:e=>L0.getValue(e,"legend.show")&&i(e)}}};function $0(e){return new j0(e)}const H0={classification:{section:"styling",tags:["simple"],exclusive:!0},component:"items",show:!0,chartType:"piechart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.PieChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,items:{strokeSection:{translation:"properties.Outline",component:"items",items:{strokeItem:{component:"items",ref:"components",key:"slices",items:{strokeWrapper:{component:"inline-wrapper",items:{strokeWidth:{translation:"LayerStyleEditor.style.strokeWidth",ref:"style.strokeWidth",width:9,show:!0,component:"dropdown",type:"string",options:[{value:"none",translation:"Common.None"},{value:"small",translation:"Common.Small"},{value:"medium",translation:"Common.Medium"},{value:"large",translation:"Common.Large"}],defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",defaultValue:{color:"#FFFFFF"},schemaIgnore:!0,width:3,component:"color-picker"}}}}}}},cornerRadius:{component:"items",translation:"LayerStyleEditor.style.cornerRadius",items:{cornerRadiusItem:{component:"items",ref:"components",key:"slices",items:{cornerRadiusSlider:{ref:"style.cornerRadius",translation:"LayerStyleEditor.style.cornerRadius",component:"slider",min:0,max:40,step:.05,width:12,defaultValue:0,schemaIgnore:!0}}}}},innerRadius:{translation:"LayerStyleEditor.style.innerRadius",component:"items",show:e=>e.donut.showAsDonut,items:{innerRadiusItem:{component:"items",ref:"components",key:"slices",items:{innerRadiusSlider:{ref:"style.innerRadius",translation:"LayerStyleEditor.style.innerRadius",component:"slider",min:.05,max:.75,step:.01,width:12,defaultValue:.55,schemaIgnore:!0}}}}}}},V0=(e,t,n)=>{const r=`${e}.fontFamily`,i=`${e}.fontSize`;return{fontFamilyItem:{component:"dropdown",ref:r,options:()=>t.getOptions(r),defaultValue:()=>t.getDefaultValue(r)},fontWrapperItem:{component:"inline-wrapper",items:{fontSizeItem:{component:"dropdown",ref:i,options:()=>t.getOptions(i),defaultValue:()=>t.getDefaultValue(i)},fontColorItem:{component:"color-picker",width:!1,ref:`${e}.color`,defaultValue:()=>({color:n.getStyle("object.pieChart",e,"color")})}}}}},B0={component:"style-editor",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",resetBtnTranslation:"LayerStyleEditor.component.resetAll",key:"slices",ref:"components",defaultValues:{key:"slices",style:{strokeColor:{index:-1,color:"#FFFFFF"},strokeWidth:"none",cornerRadius:0,innerRadius:.55}},items:{slices:{components:"items",type:"items",uses:"styling.slice",items:{strokeWidth:{show:!0,component:"dropdown",type:"string",options:[{value:"none",translation:"LayerStyleEditor.style.strokeWidth.none"},{value:"small",translation:"LayerStyleEditor.style.strokeWidth.small"},{value:"medium",translation:"LayerStyleEditor.style.strokeWidth.medium"},{value:"large",translation:"LayerStyleEditor.style.strokeWidth.large"}],defaultValue:"none"},strokeColor:{show:e=>"none"!==e.style.strokeWidth},cornerRadius:{component:"slider",min:0,max:40,step:.05,defaultValue:0,show:!0},innerRadius:{component:"slider",min:.05,max:.75,step:.01,defaultValue:.55,show:(e,t,n)=>n.layout.donut.showAsDonut}}}}},U0=(e,t,n,r)=>{const i=function(e){var t=e.theme,n=e.translator,r=e.config,i=void 0===r?{}:r,o=e.flags,a=function(e){var t=e.config,n=void 0===t?{}:t,r=n.id,i=n.paths;return{id:void 0===r?"object":"".concat("object",".").concat(r),paths:Array.isArray(i)?i:[]}}({config:i}),s=a.id,l=a.paths,c={};l.forEach((function(e){for(var r=e.split("."),i=c,a=0;a<r.length;a++){var l=r[a];a===r.length-1?i[l]=Fw({theme:t,translator:n,id:s,path:e,flags:o}):void 0===i[l]&&(i[l]={}),i=i[l]}}));var u=function(e){for(var t=e.split("."),n=c,r=0;r<t.length;r++){var i=t[r];if(void 0===n[i])throw new Error("font-resolver: Path '".concat(e,"' could not be resolved."));n=n[i]}return n};return c.getDefaultValue=function(e){return u(e).getDefaultValue()},c.getOptions=function(e){return u(e).getOptions()},c}({theme:r,translator:n,flags:t,config:{id:"pieChart",paths:["axis.title","label.name","label.value","legend.title","legend.label"]}});return{component:"styling-panel",chartTitle:"Object.PieChart",translation:"LayerStyleEditor.component.styling",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:e,items:{strokeSection:{translation:"properties.Outline",component:"panel-section",items:{strokeItem:{component:"items",ref:"components",key:"slices",items:{strokeWrapper:{component:"inline-wrapper",items:{strokeWidth:{ref:"style.strokeWidth",width:9,show:!0,component:"dropdown",type:"string",options:[{value:"none",translation:"Common.None"},{value:"small",translation:"Common.Small"},{value:"medium",translation:"Common.Medium"},{value:"large",translation:"Common.Large"}],defaultValue:"none",schemaIgnore:!0},strokeColor:{ref:"style.strokeColor",defaultValue:{color:"#FFFFFF"},schemaIgnore:!0,width:3,component:"color-picker"}}}}}}},cornerRadius:{translation:"LayerStyleEditor.style.cornerRadius",component:"panel-section",items:{cornerRadiusItem:{component:"items",ref:"components",key:"slices",items:{cornerRadiusSlider:{ref:"style.cornerRadius",component:"slider",min:0,max:40,step:.05,width:12,defaultValue:0,schemaIgnore:!0}}}}},innerRadius:{translation:"LayerStyleEditor.style.innerRadius",component:"panel-section",show:e=>e.donut.showAsDonut,items:{innerRadiusItem:{component:"items",ref:"components",key:"slices",items:{innerRadiusSlider:{ref:"style.innerRadius",component:"slider",min:.05,max:.75,step:.01,width:12,defaultValue:.55,schemaIgnore:!0}}}}},axisTitleSection:null!=t&&t.isEnabled("CLIENT_IM_3050")?{translation:"properties.dataPoints.dimensionlabels",component:"panel-section",items:{axisTitleItems:{component:"items",ref:"components",key:"axis",items:V0("axis.title",i,r)}}}:void 0,labelNameSection:null!=t&&t.isEnabled("CLIENT_IM_3050")?{translation:"properties.dataPoints.dimensionValueLabel",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"label",items:V0("label.name",i,r)}}}:void 0,labelValueSection:null!=t&&t.isEnabled("CLIENT_IM_3050")?{translation:"properties.value.label",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"label",items:V0("label.value",i,r)}}}:void 0,legendTitleSection:null!=t&&t.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.title",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"legend",items:V0("legend.title",i,r)}}}:void 0,legendLabelSection:null!=t&&t.isEnabled("CLIENT_IM_3051")?{translation:"properties.legend.label",component:"panel-section",items:{labelItems:{component:"items",ref:"components",key:"legend",items:V0("legend.label",i,r)}}}:void 0}}},W0=$0("hard");const Y0=e=>{var t;null!==(t=e.color)&&void 0!==t&&t.auto||(OS(e,"color.mode","byDimension"),OS(e,"color.byDimDef.activeDimensionIndex",0),OS(e,"color.persistent",!1))},K0=e=>{var t;const n=[{value:"primary",translation:"properties.colorMode.primary"},{value:"byDimension",translation:"properties.colorMode.byDimension"}];switch(null===(t=e.color)||void 0===t?void 0:t.mode){case"byMultiple":n.push({value:"byMultiple",translation:"properties.colorMode.multicolored"});break;case"byMeasure":n.push({value:"byMeasure",translation:"properties.colorMode.byMeasure"});break;case"byExpression":n.push({value:"byExpression",translation:"properties.colorMode.byExpression"})}return n},G0=e=>{var t;const{flags:n,translator:r}=e||{},i=null==e||null===(t=e.sense)||void 0===t?void 0:t.theme,o=null==n?void 0:n.isEnabled("SENSECLIENT_IM_2429_PIECHART_BG"),a={items:{simpleItems:{items:{autoColor:{label:e=>{var t;return null!==(t=e.color)&&void 0!==t&&t.auto?r.get("Simple.Color.Auto",r.get("properties.colorMode.byDimension")):r.get("Common.Custom")},change:Y0},colorMode:{options:K0}}}}},s={items:{labels:{items:{header:{show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length},pointLabels:{component:"checkbox",ref:"dataPoint.auto",type:"boolean",defaultValue:!0,translation:"Simple.Label.Value",show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length,change(e){e.dataPoint.auto||OS(e,"dataPoint.labelMode","none")}},dimensionTitle:{component:"checkbox",ref:"dimensionTitle",type:"string",translation:"Simple.Label.Dimension.Hide",defaultValue:"all",show:e=>e.qHyperCubeDef.qDimensions.length&&e.qHyperCubeDef.qMeasures.length,convertFunctions:{get:(e,t,n,r)=>!r.dimensionTitle,set(e,t,n,r,i){i.dimensionTitle=!e}}}}}}},l={uses:"settings",items:{simpleStyling:H0,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:{sliceStyling:null!=n&&n.isEnabled("SENSECLIENT_PS_17478_STYLINGPANEL_PIECHART")?U0(o,n,r,i):B0,showAsDonut:{ref:"donut.showAsDonut",type:"boolean",component:"item-selection-list",defaultValue:!1,horizontal:!0,items:[{icon:"pie_chart_pie",component:"icon-item",labelPlacement:"bottom",translation:"properties.pie",value:!1},{icon:"pie_chart_donut",component:"icon-item",labelPlacement:"bottom",translation:"properties.donut",value:!0}]},labels:{type:"items",snapshot:{tid:"property-labels"},items:{dimensionTitle:{ref:"dimensionTitle",type:"boolean",component:"switch",translation:"properties.dataPoints.dimensionlabels",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"properties.off"}]},valuesAuto:{ref:"dataPoint.auto",type:"boolean",translation:"properties.dataPoints.labelmode",component:"switch",defaultValue:!0,options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}]},labelMode:{ref:"dataPoint.labelMode",type:"string",component:"dropdown",options:[{value:"none",translation:"Common.None"},{value:"share",translation:"properties.dataPoints.labelmode.share"},{value:"value",translation:"properties.dataPoints.labelmode.value"}],defaultValue:"share",show:e=>!e.dataPoint.auto},labelValueMode:{ref:"dataPoint.labelValueMode",type:"string",component:"dropdown",translation:"properties.dataPoints.labelvaluemode",options:[{value:"arc",translation:"Visualizations.Descriptions.Angle"},{value:"radius",translation:"Visualizations.Descriptions.Radius"}],defaultValue:"arc",show:e=>!e.dataPoint.auto&&function(e){return e.qHyperCubeDef&&e.qHyperCubeDef.qMeasures.length>1||e.qHyperCube&&e.qHyperCube.qMeasureInfo.length>1}(e)&&"value"===e.dataPoint.labelMode}}}}},colorsAndLegend:{uses:"colorsAndLegend",items:{colors:{items:{colorMode:{options:W0.color.colorMode.options},persistentColors:{show:W0.color.persistentColors.show}}},simpleColors:a,legend:{show:W0.legend.show,items:{show:{defaultValue:!1,snapshot:{tid:"property-legend"}},showTitle:{show:W0.legend.showTitle.show},dock:{show:W0.legend.dock.show}}}}},tooltip:{uses:"tooltip"}}};return l},X0={uses:"data",items:{dimensions:{uses:"dimensions"},measures:{uses:"measures",items:{numberFormatting:{items:{percentOfPieMessage:{component:"text",translation:"properties.numberFormatting.pieMessage",show:(e,t,{properties:n}={})=>n&&(n.dataPoint.auto||"share"!==n.dataPoint.labelMode)}}}}}}},Z0={uses:"sorting",items:{interColumnSorting:{reset:e=>{const{qDimensions:t,qMeasures:n,qInterColumnSortOrder:r}=e.qHyperCubeDef;if(1===t.length&&n.length>=1){const t=r.length,n=[...Array(t).keys()];[n[0],n[1]]=[n[1],n[0]],e.qHyperCubeDef.qInterColumnSortOrder=n}}}}},J0={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{suppressZero:null,calcCond:{uses:"calcCond"}}}}};function Q0(e){return{type:"items",component:"accordion",items:{data:X0,sorting:Z0,addons:J0,settings:G0(e)}}}const e1=$0("explore"),t1=Q0();var n1={type:"items",component:"accordion",items:{data:{uses:"data"},sort:{uses:"sort"},presentation:{uses:"presentation",items:{showAsDonut:t1.items.settings.items.presentation.items.showAsDonut,labelMode:{type:"items",items:{labelMode:{type:"string",component:"radio-list",translation:"properties.dataPoints.labelmode",diffs:["dataPoint.auto:false","dataPoint.labelMode"],options:t1.items.settings.items.presentation.items.labels.items.labelMode.options,setPropertyValue(e,t){e.dataPoint.auto=!1,e.dataPoint.labelMode=t},getValue:e=>e.dataPoint.auto?"":e.dataPoint.labelMode}}}}},color:{uses:"color",items:{mode:{options:e1.color.colorMode.options},dimension:{items:{persistentColors:{show:e=>!(e.color&&"byDimension"===e.color.mode&&e.color.useDimColVal&&e1.color.useDimColVal.show(e))}}}}}}};const r1="slices";function i1(e,t){const n=e&&e.desc&&void 0!==e.desc.share?e.desc.share:void 0;return t("share")(n)}function o1(e){return e.data.num.label}function a1(e){return e.data.radius.label}function s1(e,t,n,r){return function(e,t){if(e.dataPoint.auto)return 1===e.qHyperCube.qSize.qcy?o1:i1;if("share"===e.dataPoint.labelMode)return i1;if("value"===e.dataPoint.labelMode)return t.encodings.slice.outerRadius&&"radius"===e.dataPoint.labelValueMode?a1:o1;return o1}(n,r)(e,t)}function l1(e){let t;return t=e.data.label?function(e,t){let n=e;return n.length>t&&(n=`${n.substr(0,t-3)}...`),n}(e.data.label,20):"",t}class c1{constructor({element:e,properties:t,effectHelper:n,Flag:r}){this.element=e,this.Flag=r,n.initFade(this.element);const i=e.find(".effectLayer");i.length>0&&i.remove(),e.append('<div class="effectLayer"></div>'),this.effectLayer=e.find(".effectLayer"),this._effectProperties=t,this.selectedIndex=t.selectedIndex,this.hasPropertiesPanel=!1,this.effectApplied=!0,n.fadeIn(this.element)}updateOrigSettings(e){return{dataPoint:e.dataPoint,legend:e.legend,dimensionTitle:e.dimensionTitle}}updateFlags(e,t){const n=this.chart.getAffectedShapes("highlight"),r=this.effectLayer[0].getBoundingClientRect(),i=n.map((n=>{const{start:i,end:o,outerRadius:a,offset:s}=n.desc.slice,{scaleRatio:l}=this.chart.component(n.key).rect,c=n.element.getBoundingClientRect(),u=(i+o)/2,d=c.left-r.left+l.x*(s.x+a*Math.sin(u)),f=c.top-r.top+l.y*(s.y-a*Math.cos(u)),h=Math.cos(u)>0?"top":"bottom",p=Math.sin(u)>0?"right":"left";return{title:l1(n),label:s1(n,this.chart.formatter,e,t),orientation:`${h}${p}`,position:{x:d,y:f}}}));this.Flag.show(this.effectLayer,i)}init(e,t,n,r){return t.getProperties().then((e=>{if(!e.originalModelSettings){const t=Eg(!0,{},e);e.originalModelSettings=this.updateOrigSettings(t)}e.effectProperties=r,e.effectPath=n,e.dataPoint.show=!1,e.legend.show=!1,e.dimensionTitle=!1,t.setProperties(e)}))}remove(e,t,n){return e.options=Eg(e.options,{effect:null}),n?t.getProperties().then((e=>Eg(e,{effectPath:null,effectProperties:null,dataPoint:Eg(!0,{},e.originalModelSettings.dataPoint),legend:Eg(!0,{},e.originalModelSettings.legend),dimensionTitle:e.originalModelSettings.dimensionTitle}))):Promise.resolve()}}class u1 extends c1{init(e,t,n,r){return e.options=Eg(!0,e.options,{effect:this}),t.layout.effectProperties&&t.layout.effectPath===n&&t.layout.effectProperties.max===r.max?Promise.resolve():super.init(e,t,n,r)}update(e,t,n){this.chart=t,this.updateHighlight(e),this.updateFlags(e,n)}updateHighlight(e){const t=this.chart.component(r1).data.items,n=e.effectProperties.min,r=e.effectProperties.max,i=[];let o=[1/0,-1],a=[-1/0,-1];t.forEach(((e,t)=>{const i=e.num.value;n&&i<o[0]&&(o=[i,t]),r&&i>a[0]&&(a=[i,t])})),-1!==o[1]&&i.push(t[o[1]].value),-1!==a[1]&&i.push(t[a[1]].value),i.length&&this.chart.brush("highlight").setValues(i.map((e=>({key:"qHyperCube/qDimensionInfo/0",value:e}))))}}class d1 extends c1{constructor(e){super(e),this.hasPropertiesPanel=!0,this.propsTemplate=e.highlightValuePropsTemplate,this.effectHelper=e.effectHelper}onClick(e){if(!this.chart)return;const t=this.chart.shapesAt(function(e,t){const n=t.element.getBoundingClientRect();return{x:e.clientX-n.left,y:e.clientY-n.top}}(e,this.chart),{propagation:"stop"});if(1!==t.length)return;const n=t[0],r=this.chart.component(r1).data.items.map((e=>e.value)),i=r.indexOf(n.data.value);-1!==i&&(this.selectedIndex=i,this.effectHelper.updateSelectedPointIndex(this))}update(e,t,n){this.chart=t,this.updateHighlight(e),this.updateDataPoints(e,n),this.updateFlags(e,n)}updateHighlight(e){const t=this.chart.component(r1).data.items[e.effectProperties.selectedIndex];this.chart.brush("highlight").setValues([{key:"qHyperCube/qDimensionInfo/0",value:t.value}])}updateDataPoints(e,t){this.dataPoints=this.chart.findShapes("path").filter((e=>e.key===r1)).map(((n,r)=>{const i=s1(n,this.chart.formatter,e,t);return{text:`${l1(n)} (${i})`,value:r}}))}init(e,t,n,r){return e.options=Eg(!0,e.options,{effect:this}),t.layout.effectProperties&&t.layout.effectPath===n&&t.layout.effectProperties.selectedIndex===r.selectedIndex?Promise.resolve():super.init(e,t,n,r)}}const f1="/effects/highlight-value",h1="/effects/maxmin";var p1={isCompatible:({effectPath:e})=>e===h1||e===f1,create:e=>e.effectPath===h1?new u1(e):e.effectPath===f1?new d1(e):null};function m1(e){const t={},{components:n,tooltip:r}=e,i=n?n.filter((e=>"slices"===e.key))[0]:void 0;if(i&&i.style&&Object.keys(i.style).forEach((e=>{t[`chart_style_${e}`]=i.style[e]})),r){var o;t.chart_tooltip_custom=!r.auto;const e=null===(o=r.chart)||void 0===o||null===(o=o.object)||void 0===o?void 0:o.refId;!r.auto&&e&&(t.chart_tooltip_custom_mini_chart=e)}return t}function g1(e){if(!e.qHyperCubeDef)return;const t=e.qHyperCubeDef.qDimensions,n=e.qHyperCubeDef.qMeasures;1===t.length&&1===n.length&&(n[0].qSortBy.qSortByNumeric=-1,e.qHyperCubeDef.qInterColumnSortOrder.splice(0,e.qHyperCubeDef.qInterColumnSortOrder.length,1,0))}function y1(e){e.qOtherTotalSpec.qOtherMode="OTHER_COUNTED",e.qOtherTotalSpec.qOtherCounted={qv:"10"}}function v1({translator:e}){return{dimensions:{min:1,max:1,description:()=>e.get("Visualizations.Descriptions.Slice"),add(e,t){y1(e),g1(t),PQ.addCallbackCustomTooltip(t)},move(e,t){y1(e),g1(t),PQ.moveCallbackCustomTooltip(t,e)},remove(e,t){PQ.removeCallbackCustomTooltip(t,e)},replace(e,t,n,r){y1(e),g1(r),PQ.replaceCallbackCustomTooltip(r,t)}},measures:{min:1,max:2,description:(t,n)=>e.get(0===n?"Visualizations.Descriptions.Angle":"Visualizations.Descriptions.Radius"),add(e,t){g1(t)},remove(e,t){!function(e){if(!e.qHyperCubeDef)return;const t=e.qHyperCubeDef.qMeasures,{mode:n}=e.color;"byExpression"===n&&0===t.length&&(e.color.mode="primary")}(t)}}}}const b1=e=>e.qMax<=0,x1=e=>!(!(e&&e.qHyperCube.qSize.qcy>0)||e.qHyperCube.qMeasureInfo.every(b1));function w1(e){return{definition:Q0(e),softDefinition:n1,support:{snapshot:x1,export:x1,exportData:!0,sharing:x1,viewData:!0,effects:!0},effects:p1,extendMetrics:m1,importProperties:(t,n,r,i)=>{const o={layout:{templateId:n.templateId}};r.mapProperties(o);const a={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()},s=I0.colorChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:v1(e),defaultPropertyValues:a,hypercubePath:i});return s.qProperty.dataPoint&&!1===s.qProperty.dataPoint.show&&delete s.qProperty.dataPoint.show,s},exportProperties:(e,t,n)=>I0.colorChart.exportProperties({propertyTree:e,hypercubePath:t,viewDataMode:n})}}function k1(e){return{properties:{version:"1.27.8",color:{auto:!0,autoMinMax:!0,byDimDef:void 0,byMeasureDef:void 0,colorExpression:void 0,dimensionScheme:"12",expressionIsColor:!0,expressionLabel:"",formatting:{numFormatFromTemplate:!0,isCustomFormatted:void 0},measureMin:void 0,measureMax:void 0,measureScheme:"sg",mode:"primary",paletteColor:{index:6},persistent:!1,reverseScheme:!1,singleColor:void 0,useBaseColors:"off",useDimColVal:!0,useMeasureGradient:!0},components:[{key:"slices",style:{strokeWidth:"none",strokeColor:{index:-1,color:JQ.STROKE.COLOR},cornerRadius:JQ.CORNER_RADIUS,innerRadius:JQ.INNER_RADIUS}}],dataPoint:{auto:!0,labelMode:"share",labelValueMode:"arc"},dimensionTitle:!0,donut:{showAsDonut:!1},footnote:"",legend:{dock:"auto",show:!0,showTitle:!0},qHyperCubeDef:{qDimensions:[],qMeasures:[],qInitialDataFetch:[{qWidth:10,qHeight:500}],qSuppressMissing:!0,qSuppressZero:!1,qMode:"S"},showDetails:!0,showDisclaimer:!0,showTitles:!0,subtitle:"",title:"",tooltip:{auto:!0,hideBasic:!1,data:{qHyperCubeDef:void 0},chart:void 0,imageComponents:void 0}},data:{targets:[v1(e)]},importProperties:({exportFormat:t,initialProperties:n,hypercubePath:r})=>{const i=I0.colorChart.importProperties({exportFormat:t,initialProperties:n,dataDefinition:v1(e),hypercubePath:r});return i.qProperty.dataPoint&&!1===i.qProperty.dataPoint.show&&delete i.qProperty.dataPoint.show,i},exportProperties:({propertyTree:e,hypercubePath:t,viewDataMode:n})=>I0.colorChart.exportProperties({propertyTree:e,hypercubePath:t,viewDataMode:n})}}return t=>{const{flags:r}=t;!function(e){if(e&&e.get&&e.add){const t="Object.Disclaimer.LimitedData";if(e.get(t)!==t)return;Object.keys(n).forEach((t=>{e.add(n[t])}))}}(t.translator);const i=mQ();return{qae:k1(t),ext:w1(t),component(){const t=wQ({picasso:i}),n=YQ({flags:r,picasso:i,instance:t});N0({instance:t,services:n,picasso:i,flags:r}),function({instance:t}){const n=e.useStaleLayout(),r=e.useOptions(),i=e.useRect();e.useEffect((()=>{if(!t||!t.generateSettings)return;const{viewCache:e,chart:i,generateSettings:o}=t;i.update({settings:o()}),e.set("chartWidth",i.element.clientWidth),e.set("chartHeight",i.element.clientHeight),r.effect&&r.effect.update(n,i)}),[i.width,i.height])}({instance:t}),A0({instance:t,services:n})}}}}));
|