1import{sW as de,_ as S,sf as Yt}from"./index-ni7vnKSW.js";import{J as se,l as x,K as Tt,E as st,N as bt,O as re,Q as Ot,U as ue,V as it,W as et,X as ut,Y as X,Z as fe,_ as _e,i as W,$ as pe,a0 as z,a1 as _t,a2 as pt,a3 as Vt,a4 as me,a5 as Wt,a6 as ge,a7 as ye,a8 as G,a9 as Gt,aa as ve,H as xe,ab as be,ac as q,ad as wt,h as I,ae as we,C as K,af as mt,ag as Ee,M as Ut,ah as Lt,ai as ne,aj as zt,ak as Rt,al as Pt,am as Se,an as gt,P as Et,b as ae,s as Te,ao as Me,ap as ke,aq as Ce,ar as tt,as as De,w as Ae,at as ct,au as Be,av as Le,aw as Pe,ax as Oe,G as ze,ay as Z,g as $,a as j,R as Re,c as at,e as Nt,B as Q,az as Ie,aA as Fe,r as ot,aB as Xt,aC as He,aD as Ye,aE as Ve,n as We,aF as qt,aG as Ge,o as Ue,aH as yt,aI as Ne,aJ as Xe,d as qe,aK as Kt,aL as Ke}from"./Theme-BEghIp52.js";import{T as Jt}from"./Tooltip--1KADsBX.js";import{D as Je}from"./DefaultTheme-i-kVzfrc.js";class Ze{constructor(){this._targets=[],this._observer=new ResizeObserver(t=>{x(t,e=>{x(this._targets,i=>{i.target===e.target&&i.callback()})})})}addTarget(t,e){this._observer.observe(t,{box:"border-box"}),this._targets.push({target:t,callback:e})}removeTarget(t){this._observer.unobserve(t),Tt(this._targets,e=>e.target!==t)}}class Mt{constructor(){this._timer=null,this._targets=[]}addTarget(t,e){if(this._timer===null){let s=null;const r=()=>{const n=Date.now();(s===null||n>s+Mt.delay)&&(s=n,x(this._targets,a=>{let o=a.target.getBoundingClientRect();(o.width!==a.size.width||o.height!==a.size.height)&&(a.size=o,a.callback())})),this._targets.length===0?this._timer=null:this._timer=requestAnimationFrame(r)};this._timer=requestAnimationFrame(r)}let i={width:0,height:0,left:0,right:0,top:0,bottom:0,x:0,y:0};this._targets.push({target:t,callback:e,size:i})}removeTarget(t){Tt(this._targets,e=>e.target!==t),this._targets.length===0&&this._timer!==null&&(cancelAnimationFrame(this._timer),this._timer=null)}}Mt.delay=200;let vt=null;function $e(){return vt===null&&(typeof ResizeObserver<"u"?vt=new Ze:vt=new Mt),vt}class je{constructor(t,e){this._disposed=!1,this._sensor=$e(),this._element=t,this._listener=se(e),this._sensor.addTarget(t,e)}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._sensor.removeTarget(this._element),this._listener.dispose())}get sensor(){return this._sensor}}class St extends st{}St.className="InterfaceColors";St.classNames=st.classNames.concat([St.className]);class Qe extends st{_setDefaults(){this._setDefault("negativeBase",0),this._setDefault("numberFormat","#,###.#####"),this._setDefault("smallNumberThreshold",1);const t="_big_number_suffix_",e="_small_number_suffix_",i="_byte_suffix_";this._setDefault("bigNumberPrefixes",[{number:1e3,suffix:this._t(t+"3")},{number:1e6,suffix:this._t(t+"6")},{number:1e9,suffix:this._t(t+"9")},{number:1e12,suffix:this._t(t+"12")},{number:1e15,suffix:this._t(t+"15")},{number:1e18,suffix:this._t(t+"18")},{number:1e21,suffix:this._t(t+"21")},{number:1e24,suffix:this._t(t+"24")}]),this._setDefault("smallNumberPrefixes",[{number:1e-24,suffix:this._t(e+"24")},{number:1e-21,suffix:this._t(e+"21")},{number:1e-18,suffix:this._t(e+"18")},{number:1e-15,suffix:this._t(e+"15")},{number:1e-12,suffix:this._t(e+"12")},{number:1e-9,suffix:this._t(e+"9")},{number:1e-6,suffix:this._t(e+"6")},{number:.001,suffix:this._t(e+"3")}]),this._setDefault("bytePrefixes",[{number:1,suffix:this._t(i+"B")},{number:1024,suffix:this._t(i+"KB")},{number:1048576,suffix:this._t(i+"MB")},{number:1073741824,suffix:this._t(i+"GB")},{number:1099511627776,suffix:this._t(i+"TB")},{number:0x4000000000000,suffix:this._t(i+"PB")}]),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(t,e,i){(e==null||bt(e)&&e.toLowerCase()==="number")&&(e=this.get("numberFormat",""));let s,r=Number(t);if(re(e))try{return this.get("intlLocales")?new Intl.NumberFormat(this.get("intlLocales"),e).format(r):new Intl.NumberFormat(void 0,e).format(r)}catch{return"Invalid"}else{e=Ot(e);let n=this.parseFormat(e,this._root.language),a;r>this.get("negativeBase")?a=n.positive:r<this.get("negativeBase")?a=n.negative:a=n.zero,i!=null&&!a.mod&&(a=ue(a),a.decimals.active=r==0?0:i),s=a.template.split(it).join(this.applyFormat(r,a))}return this.get("forceLTR")===!0&&(s="â"+s),s}parseFormat(t,e){const i=e.translateEmpty("_thousandSeparator"),s=e.translateEmpty("_decimalSeparator");
1let r={positive:{thousands:{active:-1,passive:-1,interval:-1,separator:i},decimals:{active:-1,passive:-1,separator:s},template:"",source:"",parsed:!1},negative:{thousands:{active:-1,passive:-1,interval:-1,separator:i},decimals:{active:-1,passive:-1,separator:s},template:"",source:"",parsed:!1},zero:{thousands:{active:-1,passive:-1,interval:-1,separator:i},decimals:{active:-1,passive:-1,separator:s},template:"",source:"",parsed:!1}};t=t.replace("||",et);let n=t.split("|");return r.positive.source=n[0],typeof n[2]>"u"?r.zero=r.positive:r.zero.source=n[2],typeof n[1]>"u"?r.negative=r.positive:r.negative.source=n[1],ut(r,(a,o)=>{if(o.parsed)return;let u=o.source;u.toLowerCase()==="number"&&(u=this.get("numberFormat","#,###.#####"));let p=X.chunk(u,!0);for(let f=0;f<p.length;f++){let _=p[f];if(_.text=_.text.replace(et,"|"),_.type==="value"){let h=_.text.match(/[#0.,]+[ ]?[abespABESP%!]?[abespABESPâ°!]?/);if(h)if(h===null||h[0]==="")o.template+=_.text;else{let c=h[0].match(/[abespABESP%â°!]{2}|[abespABESP%â°]{1}$/);c&&(o.mod=c[0].toLowerCase(),o.modSpacing=!!h[0].match(/[ ]{1}[abespABESP%â°!]{1}$/));let y=h[0].split(".");if(y[0]!==""){o.thousands.active=(y[0].match(/0/g)||[]).length,o.thousands.passive=(y[0].match(/\#/g)||[]).length+o.thousands.active;let l=y[0].split(",");l.length===1||(o.thousands.interval=(l.pop()||"").length,o.thousands.interval===0&&(o.thousands.interval=-1))}typeof y[1]>"u"||(o.decimals.active=(y[1].match(/0/g)||[]).length,o.decimals.passive=(y[1].match(/\#/g)||[]).length+o.decimals.active),o.template+=_.text.split(h[0]).join(it)}}else o.template+=_.text}o.parsed=!0}),r}applyFormat(t,e){let i=t<0;t=Math.abs(t);let s="",r="",n=e.mod?e.mod.split(""):[];if(n.indexOf("b")!==-1){let f=this.applyPrefix(t,this.get("bytePrefixes"),n.indexOf("!")!==-1);t=f[0],s=f[1],r=f[2],e.modSpacing&&(r=" "+r)}else if(n.indexOf("a")!==-1){let f=this.applyPrefix(t,t<this.get("smallNumberThreshold")?this.get("smallNumberPrefixes"):this.get("bigNumberPrefixes"),n.indexOf("!")!==-1);t=f[0],s=f[1],r=f[2],e.modSpacing&&(r=" "+r)}else if(n.indexOf("p")!==-1){let f=Math.min(t.toString().length+2,21);t=parseFloat(t.toPrecision(f)),s=this._root.language.translate("_percentPrefix"),r=this._root.language.translate("_percentSuffix"),s==""&&r==""&&(r="%")}else if(n.indexOf("%")!==-1){let f=Math.min(t.toString().length+2,21);t*=100,t=parseFloat(t.toPrecision(f)),r="%"}else if(n.indexOf("â°")!==-1){let f=Math.min(t.toString().length+3,21);t*=1e3,t=parseFloat(t.toPrecision(f)),r="â°"}if(n.indexOf("e")!==-1){let f;e.decimals.passive>=0?f=t.toExponential(e.decimals.passive).split("e"):f=t.toExponential().split("e"),t=Number(f[0]),r="e"+f[1],e.modSpacing&&(r=" "+r)}else if(e.decimals.passive===0)t=Math.round(t);else if(e.decimals.passive>0){const f=fe(t);if(f>0){const _=Math.pow(10,e.decimals.passive);t=Math.round(parseFloat((t*_).toFixed(f)))/_}}let a="",o=_e(t).split("."),u=o[0];if(u.length<e.thousands.active&&(u=Array(e.thousands.active-u.length+1).join("0")+u),e.thousands.interval>0){let f=[],_=u.split("").reverse().join("");for(let h=0,c=u.length;h<=c;h+=e.thousands.interval){let y=_.substr(h,e.thousands.interval).split("").reverse().join("");y!==""&&f.unshift(y)}u=f.join(e.thousands.separator)}a+=u,o.length===1&&o.push("");let p=o[1];return p.length<e.decimals.active&&(p+=Array(e.decimals.active-p.length+1).join("0")),p!==""&&(a+=e.decimals.separator+p),a===""&&(a="0"),t!==0&&i&&n.indexOf("s")===-1&&(a="-"+a),s&&(a=s+a),r&&(a+=r),a}applyPrefix(t,e,i=!1){let s=t,r="",n="",a=!1,o=1;for(let u=0,p=e.length;u<p;u++)e[u].number<=t&&(e[u].number===0?s=0:(s=t/e[u].number,o=e[u].number),r=e[u].prefix,n=e[u].suffix,a=!0);return!a&&i&&e.length&&t!=0&&(s=t/e[0].number,r=e[0].prefix,n=e[0].suffix,a=!0),a&&(s=parseFloat(s.toPrecision(Math.min(o.toString().length+Math.floor(s).toString().replace(/[^0-9]*/g,"").length,21)))),[s,r,n]}escape(t){return t.replace("||",et)}unescape(t){return t.replace(et,"|")}}function oe(m,t){let e=0,i=0,s=1,r=0,n=0,a=0,o=0,u=0;return m.formatToParts(t).forEach(p=>{switch(p.type){case"year":e=+p.value;break;case"month":i=+p.value-1;break;case"day":s=+p.value;break;case"hour":r=+p.value;break;case"minute":n=+p.value;break;case"second":a=+p.value;break;case"fractionalSecond":o=+p.value;break;case"weekday":switch(p.value){case"Sun":u=0;break;case"Mon":u=1;break;case"Tue":u=2;break;case"Wed":u=3;break;case"Thu":u=4;break;case"Fri":u=5;break;case"Sat":u=6;break}}}),r===24&&(r=0),{year:e,month:i,day:s,hour:r,minute:n,second:a,millisecond:o,weekday:u}}function Zt(m,t){const{year:e,month:i,day:s,hour:r,minute:n,second:a,millisecond:o}=oe(m,t);return Date.UTC(e,i,s,r,n,a,o)}class ti{constructor(t,e){if(!e)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this.name=t,this._utc=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"UTC",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",weekday:"short",fractionalSecondDigits:3}),this._dtf=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",weekday:"short",fractionalSecondDigits:3})}static new(t){return new this(t,!0)}convertLocal(t){const e=this.offsetUTC(t),i=t.getTimezoneOffset(),s=new Date(t);s.setUTCMinutes(s.getUTCMinutes()-(e-i));const r=s.getTimezoneOffset();return i!=r&&s.setUTCMinutes(s.getUTCMinutes()+r-i),s}offsetUTC(t){const e=Zt(this._utc,t),i=Zt(this._dtf,t);return(e-i)/6e4}parseDate(t){return oe(this._dtf,t)}}
1class ei extends st{_setDefaults(){this._setDefault("capitalize",!0),this._setDefault("dateFormat","yyyy-MM-dd"),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(t,e,i=!1){(typeof e>"u"||e==="")&&(e=this.get("dateFormat","yyyy-MM-dd"));let s,r=t;if(re(e))try{const u=this.get("intlLocales");return u?new Intl.DateTimeFormat(u,e).format(r):new Intl.DateTimeFormat(void 0,e).format(r)}catch{return"Invalid"}let n=this.parseFormat(e);const a=this._root.timezone;let o=r;return a&&!this._root.utc&&!i&&(r=a.convertLocal(r)),W(r.getTime())?(s=this.applyFormat(r,n,i,o),this.get("capitalize")&&(s=s.replace(/^.{1}/,s.substr(0,1).toUpperCase())),s):"Invalid date"}applyFormat(t,e,i=!1,s){let r=e.template,n,a,o,u,p,f,_,h,c=t.getTime();this._root.utc&&!i?(n=t.getUTCFullYear(),a=t.getUTCMonth(),o=t.getUTCDay(),u=t.getUTCDate(),p=t.getUTCHours(),f=t.getUTCMinutes(),_=t.getUTCSeconds(),h=t.getUTCMilliseconds()):(n=t.getFullYear(),a=t.getMonth(),o=t.getDay(),u=t.getDate(),p=t.getHours(),f=t.getMinutes(),_=t.getSeconds(),h=t.getMilliseconds());for(let y=0,l=e.parts.length;y<l;y++){let d="";switch(e.parts[y]){case"G":d=this._t(n<0?"_era_bc":"_era_ad");break;case"yyyy":d=Math.abs(n).toString(),n<0&&(d+=this._t("_era_bc"));break;case"yyy":case"yy":case"y":d=Math.abs(n).toString().substr(-e.parts[y].length),n<0&&(d+=this._t("_era_bc"));break;case"YYYY":case"YYY":case"YY":case"Y":let b=ge(t,this._root.utc);e.parts[y]=="YYYY"?d=Math.abs(b).toString():d=Math.abs(b).toString().substr(-e.parts[y].length),b<0&&(d+=this._t("_era_bc"));break;case"u":break;case"q":d=""+Math.ceil((t.getMonth()+1)/3);break;case"MMMMM":d=this._t(this._getMonth(a)).substr(0,1);break;case"MMMM":d=this._t(this._getMonth(a));break;case"MMM":d=this._t(this._getShortMonth(a));break;case"MM":d=z(a+1,2,"0");break;case"M":d=(a+1).toString();break;case"ww":d=z(Wt(t,this._root.utc),2,"0");break;case"w":d=Wt(t,this._root.utc).toString();break;case"W":d=me(t,this._root.utc).toString();break;case"dd":d=z(u,2,"0");break;case"d":d=u.toString();break;case"DD":case"DDD":d=z(Vt(t,this._root.utc).toString(),e.parts[y].length,"0");break;case"D":d=Vt(t,this._root.utc).toString();break;case"F":break;case"g":break;case"t":d=this._root.language.translateFunc("_dateOrd").call(this,u);break;case"E":d=(o||7).toString();break;case"EE":d=z((o||7).toString(),2,"0");break;case"EEE":case"eee":d=this._t(this._getShortWeekday(o));break;case"EEEE":case"eeee":d=this._t(this._getWeekday(o));break;case"EEEEE":case"eeeee":d=this._t(this._getShortWeekday(o)).substr(0,1);break;case"e":case"ee":d=(o-(this._root.locale.firstDayOfWeek||1)+1).toString(),e.parts[y]=="ee"&&(d=z(d,2,"0"));break;case"a":p>=12?d=this._t("PM"):d=this._t("AM");break;case"aa":p>=12?d=this._t("P.M."):d=this._t("A.M.");break;case"aaa":p>=12?d=this._t("P"):d=this._t("A");break;case"h":d=pt(p).toString();break;case"hh":d=z(pt(p),2,"0");break;case"H":d=p.toString();break;case"HH":d=z(p,2,"0");break;case"K":d=pt(p,0).toString();break;case"KK":d=z(pt(p,0),2,"0");break;case"k":d=(p+1).toString();break;case"kk":d=z(p+1,2,"0");break;case"m":d=f.toString();break;case"mm":d=z(f,2,"0");break;case"s":d=_.toString();break;case"ss":d=z(_,2,"0");break;case"S":case"SS":case"SSS":d=Math.round(h/1e3*Math.pow(10,e.parts[y].length)).toString();break;case"x":d=c.toString();break;case"n":case"nn":case"nnn":d=z(h,e.parts[y].length,"0");break;case"z":d=_t(s||t,!1,!1,this._root.utc,this._root.timezone?this._root.timezone.name:void 0).replace(/[+-]+[0-9]+$/,"");break;case"zz":d=_t(s||t,!0,!1,this._root.utc,this._root.timezone?this._root.timezone.name:void 0);break;case"zzz":d=_t(s||t,!1,!0,this._root.utc,this._root.timezone?this._root.timezone.name:void 0).replace(/[+-]+[0-9]+$/,"");break;case"zzzz":d=_t(s||t,!0,!0,this._root.utc,this._root.timezone?this._root.timezone.name:void 0);break;case"Z":case"ZZ":let v=this._root.utc?"UTC":this._root.timezone;v instanceof ti&&(v=v.name);const g=v?pe(v,s||t):t.getTimezoneOffset();let w=Math.abs(g)/60,T=Math.floor(w),E=w*60-T*60;this._root.utc&&(T=0,E=0),e.parts[y]=="Z"?(d="GMT",d+=g>0?"-":"+",d+=z(T,2)+":"+z(E,2)):(d=g>0?"-":"+",d+=z(T,2)+z(E,2));break;case"i":d=t.toISOString();break;case"I":d=t.toUTCString();break}r=r.replace(it,d)}return r}parseFormat(t){let e={template:"",parts:[]},i=X.chunk(t,!0);for(let s=0;s<i.length;s++){let r=i[s];if(r.type==="value"){if(r.text.match(/^date$/i)){let a=this.get("dateFormat","yyyy-MM-dd");bt(a)||(a="yyyy-MM-dd"),r.text=a}let n=r.text.match(/G|yyyy|yyy|yy|y|YYYY|YYY|YY|Y|u|q|MMMMM|MMMM|MMM|MM|M|ww|w|W|dd|d|DDD|DD|D|F|g|EEEEE|EEEE|EEE|EE|E|eeeee|eeee|eee|ee|e|aaa|aa|a|hh|h|HH|H|KK|K|kk|k|mm|m|ss|s|SSS|SS|S|A|zzzz|zzz|zz|z|ZZ|Z|t|x|nnn|nn|n|i|I/g);if(n)for(let a=0;a<n.length;a++)e.parts.push(n[a]),r.text=r.text.replace(n[a],it)}e.template+=r.text}return e}_months(){return["January","February","March","April","May","June","July","August","September","October","November","December"]}_getMonth(t){return this._months()[t]}_shortMonths(){return["Jan","Feb","Mar","Apr","May(short)","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}_getShortMonth(t){return this._shortMonths()[t]}_weekdays(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
1ay","Saturday"]}_getWeekday(t){return this._weekdays()[t]}_shortWeekdays(){return["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]}_getShortWeekday(t){return this._shortWeekdays()[t]}parse(t,e,i){if(typeof i>"u"&&(i=this._root.utc),t instanceof Date)return t;if(W(t))return new Date(t);if(e=="x")return new Date(parseInt(t));bt(t)||(t=t.toString());let s,r="";e=Ot(e),e=e.substr(0,t.length);let n=this.parseFormat(e),a={year:-1,year3:-1,year2:-1,year1:-1,month:-1,monthShort:-1,monthLong:-1,weekdayShort:-1,weekdayLong:-1,day:-1,yearDay:-1,week:-1,hourBase0:-1,hour12Base0:-1,hourBase1:-1,hour12Base1:-1,minute:-1,second:-1,millisecond:-1,millisecondDigits:-1,am:-1,zone:-1,timestamp:-1,iso:-1},o={year:1970,month:0,day:1,hour:0,minute:0,second:0,millisecond:0,timestamp:null,offset:0,utc:i},u=0,p=0;for(let h=0;h<n.parts.length;h++){switch(p=h+u+1,n.parts[h]){case"yyyy":case"YYYY":r+="([0-9]{4})",a.year=p;break;case"yyy":case"YYY":r+="([0-9]{3})",a.year3=p;break;case"yy":case"YY":r+="([0-9]{2})",a.year2=p;break;case"y":case"Y":r+="([0-9]{1})",a.year1=p;break;case"MMMM":r+="("+this.getStringList(this._months()).join("|")+")",a.monthLong=p;break;case"MMM":r+="("+this.getStringList(this._shortMonths()).join("|")+")",a.monthShort=p;break;case"MM":case"M":r+="([0-9]{2}|[0-9]{1})",a.month=p;break;case"ww":case"w":r+="([0-9]{2}|[0-9]{1})",a.week=p;break;case"dd":case"d":r+="([0-9]{2}|[0-9]{1})",a.day=p;break;case"DDD":case"DD":case"D":r+="([0-9]{3}|[0-9]{2}|[0-9]{1})",a.yearDay=p;break;case"dddd":r+="("+this.getStringList(this._weekdays()).join("|")+")",a.weekdayLong=p;break;case"ddd":r+="("+this.getStringList(this._shortWeekdays()).join("|")+")",a.weekdayShort=p;break;case"aaa":case"aa":case"a":r+="("+this.getStringList(["AM","PM","A.M.","P.M.","A","P"]).join("|")+")",a.am=p;break;case"hh":case"h":r+="([0-9]{2}|[0-9]{1})",a.hour12Base1=p;break;case"HH":case"H":r+="([0-9]{2}|[0-9]{1})",a.hourBase0=p;break;case"KK":case"K":r+="([0-9]{2}|[0-9]{1})",a.hour12Base0=p;break;case"kk":case"k":r+="([0-9]{2}|[0-9]{1})",a.hourBase1=p;break;case"mm":case"m":r+="([0-9]{2}|[0-9]{1})",a.minute=p;break;case"ss":case"s":r+="([0-9]{2}|[0-9]{1})",a.second=p;break;case"SSS":case"SS":case"S":r+="([0-9]{3}|[0-9]{2}|[0-9]{1})",a.millisecond=p,a.millisecondDigits=n.parts[h].length;break;case"nnn":case"nn":case"n":r+="([0-9]{3}|[0-9]{2}|[0-9]{1})",a.millisecond=p;break;case"x":r+="([0-9]{1,})",a.timestamp=p;break;case"Z":r+="GMT([-+]+[0-9]{2}:[0-9]{2})",a.zone=p;break;case"ZZ":r+="([\\-+]+[0-9]{2}[0-9]{2})",a.zone=p;break;case"i":r+="([0-9]{4})-?([0-9]{2})-?([0-9]{2})T?([0-9]{2}):?([0-9]{2}):?([0-9]{2})\\.?([0-9]{0,3})([zZ]|[+\\-][0-9]{2}:?[0-9]{2}|$)",a.iso=p,u+=7;break;case"G":case"YYYY":case"YYY":case"YY":case"Y":case"MMMMM":case"W":case"EEEEE":case"EEEE":case"EEE":case"EE":case"E":case"eeeee":case"eeee":case"eee":case"ee":case"e":case"zzzz"
1:case"zzz":case"zz":case"z":case"t":u--;break}r+="[^0-9]*"}let f=new RegExp(r),_=t.match(f);if(_){if(a.year>-1&&(o.year=parseInt(_[a.year])),a.year3>-1){let h=parseInt(_[a.year3]);h+=1e3,o.year=h}if(a.year2>-1){let h=parseInt(_[a.year2]);h>50?h+=1e3:h+=2e3,o.year=h}if(a.year1>-1){let h=parseInt(_[a.year1]);h=Math.floor(new Date().getFullYear()/10)*10+h,o.year=h}if(a.monthLong>-1&&(o.month=this.resolveMonth(_[a.monthLong])),a.monthShort>-1&&(o.month=this.resolveShortMonth(_[a.monthShort])),a.month>-1&&(o.month=parseInt(_[a.month])-1),a.week>-1&&a.day===-1&&(o.month=0,o.day=ye(parseInt(_[a.week]),o.year,1,i)),a.day>-1&&(o.day=parseInt(_[a.day])),a.yearDay>-1&&(o.month=0,o.day=parseInt(_[a.yearDay])),a.hourBase0>-1&&(o.hour=parseInt(_[a.hourBase0])),a.hourBase1>-1&&(o.hour=parseInt(_[a.hourBase1])-1),a.hour12Base0>-1){let h=parseInt(_[a.hour12Base0]);h==11&&(h=0),a.am>-1&&!this.isAm(_[a.am])&&(h+=12),o.hour=h}if(a.hour12Base1>-1){let h=parseInt(_[a.hour12Base1]);h==12&&(h=0),a.am>-1&&!this.isAm(_[a.am])&&(h+=12),o.hour=h}if(a.minute>-1&&(o.minute=parseInt(_[a.minute])),a.second>-1&&(o.second=parseInt(_[a.second])),a.millisecond>-1){let h=parseInt(_[a.millisecond]);a.millisecondDigits==2?h*=10:a.millisecondDigits==1&&(h*=100),o.millisecond=h}if(a.timestamp>-1){o.timestamp=parseInt(_[a.timestamp]);const h=new Date(o.timestamp);o.year=h.getUTCFullYear(),o.month=h.getUTCMonth(),o.day=h.getUTCDate(),o.hour=h.getUTCHours(),o.minute=h.getUTCMinutes(),o.second=h.getUTCSeconds(),o.millisecond=h.getUTCMilliseconds()}a.zone>-1&&(o.offset=this.resolveTimezoneOffset(new Date(o.year,o.month,o.day),_[a.zone])),a.iso>-1&&(o.year=G(_[a.iso+0]),o.month=G(_[a.iso+1])-1,o.day=G(_[a.iso+2]),o.hour=G(_[a.iso+3]),o.minute=G(_[a.iso+4]),o.second=G(_[a.iso+5]),o.millisecond=G(_[a.iso+6]),_[a.iso+7]=="Z"||_[a.iso+7]=="z"?o.utc=!0:_[a.iso+7]!=""&&(o.offset=this.resolveTimezoneOffset(new Date(o.year,o.month,o.day),_[a.iso+7]))),o.utc?s=new Date(Date.UTC(o.year,o.month,o.day,o.hour,o.minute,o.second,o.millisecond)):s=new Date(o.year,o.month,o.day,o.hour,o.minute+o.offset,o.second,o.millisecond)}else s=new Date(t);return s}resolveTimezoneOffset(t,e){if(e.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/)){let s=e.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/),r=s[1],n=s[2],a=s[3],o=parseInt(n)*60+parseInt(a);r=="+"&&(o*=-1);let u=(t||new Date).getTimezoneOffset();return o-u}return 0}resolveMonth(t){let e=this._months().indexOf(t);return e>-1||!this._root.language.isDefault()&&(e=this._root.language.translateAll(this._months()).indexOf(t),e>-1)?e:0}resolveShortMonth(t){let e=this._shortMonths().indexOf(t);return e>-1||(e=this._months().indexOf(t),e>-1)||this._root.language&&!this._root.language.isDefault()&&(e=this._root.language.translateAll(this._shortMonths()).indexOf(t),e>-1)?e:0}isAm(t){return this.getStringList(["AM","A.M.","A"]).indexOf(t.toUpperCase())>-1}getStringList(t){let e=[];for(let i=0;i<t.length;i++)this._root.language?e.push(Gt(this._t(t[i]))):e.push(Gt(t[i]));return e}}class ii extends st{constructor(){super(...arguments),this._unitAliases={Y:"y",D:"d",H:"h",K:"h",k:"h",n:"S"}}_setDefaults(){const t="_duration_millisecond",e="_duration_second",i="_duration_minute",s="_duration_hour",r="_duration_day",n="_duration_week",a="_duration_month",o="_duration_year",u="_second",p="_minute",f="_hour",_="_day",h="_week",c="_week",y="_year";this._setDefault("negativeBase",0),this._setDefault("baseUnit","second"),this._setDefault("durationFormats",{millisecond:{millisecond:this._t(t),second:this._t(t+u),minute:this._t(t+p),hour:this._t(t+f),day:this._t(t+_),week:this._t(t+h),month:this._t(t+c),year:this._t(t+y)},second:{second:this._t(e),minute:this._t(e+p),hour:this._t(e+f),day:this._t(e+_),week:this._t(e+h),month:this._t(e+c),year:this._t(e+y)},minute:{minute:this._t(i),hour:this._t(i+f),day:this._t(i+_),week:this._t(i+h),month:this._t(i+c),year:this._t(i+y)},hour:{hour:this._t(s),day:this._t(s+_),week:this._t(s+h),month:this._t(s+c),year:this._t(s+y)},day:{day:this._t(r),week:this._t(r+h),month:this._t(r+c),year:this._t(r+y)},week:{week:this._t(n),month:this._t(n+c),year:this._t(n+y)},month:{month:this._t(a),year:this._t(a+y)},year:{year:this._t(o)}}),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(t,e,i){let s=i||this.get("baseUnit");(typeof e>"u"||e==="")&&(this.get("durationFormat")!=null?e=this.get("durationFormat"):e=this.getFormat(G(t),void 0,s)),e=Ot(e);let r=this.parseFormat(e,s),n=Number(t),a;n>this.get("negativeBase")?a=r.positive:n<this.get("negativeBase")?a=r.negative:a=r.zero;let o=this.applyFormat(n,a);return a.color!==""&&(o="["+a.color+"]"+o+"[/]"),o}parseFormat(t,e){let i=e||this.get("baseUnit"),s={positive:{color:"",template:"",parts:[],source:"",baseUnit:i,parsed:!1,absolute:!1},negative:{color:"",template:"",parts:[],source:"",baseUnit:i,parsed:!1,absolute:!1},zero:{color:"",template:"",parts:[],source:"",baseUnit:i,parsed:!1,absolute:!1}};t=t.replace("||",et);let r=t.split("|");return s.positive.source=r[0],typeof r[2]>"u"?s.zero=s.positive:s.zero.source=r[2],typeof r[1]>"u"?s.negative=s.positive:s.negative.source=r[1],ut(s,(n,a)=>
1{if(a.parsed)return;let o=a.source,u=[];u=a.source.match(/^\[([^\]]*)\]/),u&&u.length&&u[0]!==""&&(o=a.source.substr(u[0].length),a.color=u[1]);let p=X.chunk(o,!0);for(let f=0;f<p.length;f++){let _=p[f];if(_.text=_.text.replace(et,"|"),_.type==="value"){_.text.match(/[yYMdDwhHKkmsSn]+a/)&&(a.absolute=!0,_.text=_.text.replace(/([yYMdDwhHKkmsSn]+)a/,"$1"));let h=_.text.match(/y+|Y+|M+|d+|D+|w+|h+|H+|K+|k+|m+|s+|S+|n+/g);if(h)for(let c=0;c<h.length;c++)h[c]==null&&(h[c]=this._unitAliases[h[c]]),a.parts.push(h[c]),_.text=_.text.replace(h[c],it)}a.template+=_.text}a.parsed=!0}),s}applyFormat(t,e){let i=!e.absolute&&t<this.get("negativeBase");t=Math.abs(t);let s=this.toTimeStamp(t,e.baseUnit),r=e.template;const n={millisecond:0,second:0,minute:0,hour:0,day:0,week:0,month:0,year:0};for(let a=0,o=e.parts.length;a<o;a++){let u=e.parts[a],p=this._toTimeUnit(u.substr(0,1)),f;const _=this._getUnitValue(p);a<o-1?f=Math.floor(s/_):f=Math.round(s/_),n[p]+=f,s-=f*_}ut(n,(a,o)=>{a=="millisecond"&&o==1e3?(n.second++,n.millisecond=0):a=="second"&&o==60?(n.minute++,n.second=0):a=="minute"&&o==60?(n.hour++,n.minute=0):a=="hour"&&o==24?(n.day++,n.hour=0):a=="day"&&o==7&&e.parts.indexOf("w")!==-1?(n.week++,n.day=0):a=="day"&&o==30?(n.month++,n.day=0):a=="month"&&o==12&&(n.year++,n.month=0)});for(let a=0,o=e.parts.length;a<o;a++){let u=e.parts[a],p=this._toTimeUnit(u.substr(0,1)),f=u.length;r=r.replace(it,z(n[p],f,"0"))}return i&&(r="-"+r),r}toTimeStamp(t,e){return t*this._getUnitValue(e)}_toTimeUnit(t){switch(t){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year"}}getFormat(t,e,i){if(this.get("durationFormat")!=null)return this.get("durationFormat");if(i||(i=this.get("baseUnit")),e!=null&&t!=e){t=Math.abs(t),e=Math.abs(e);let s=this.getValueUnit(Math.max(t,e),i);return this.get("durationFormats")[i][s]}else{let s=this.getValueUnit(t,i);return this.get("durationFormats")[i][s]}}getValueUnit(t,e){e||(e=this.get("baseUnit"));let i,s=this.getMilliseconds(t,e);return ve(this._getUnitValues(),(r,n)=>{if(r==e||i){if(s/n<=1)return i||(i=r),!1;i=r}return!0}),i}getMilliseconds(t,e){return e||(e=this.get("baseUnit")),t*this._getUnitValue(e)}_getUnitValue(t){return this._getUnitValues()[t]}_getUnitValues(){return{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2592e6,year:31536e6}}}const he={firstDayOfWeek:1,_decimalSeparator:".",_thousandSeparator:",",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"μ",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date:"yyyy-MM-dd",_date_millisecond:"mm:ss SSS",_date_millisecond_full:"HH:mm:ss SSS",_date_second:"HH:mm:ss",_date_second_full:"HH:mm:ss",_date_minute:"HH:mm",_date_minute_full:"HH:mm - MMM dd, yyyy",_date_hour:"HH:mm",_date_hour_short:"HH",_date_hour_full:"HH:mm - MMM dd, yyyy",_date_day:"MMM dd",_date_day_full:"MMM dd, yyyy",_date_week:"ww",_date_week_full:"MMM dd, yyyy",_date_month:"MMM",_date_month_full:"MMM, yyyy",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"AD",_era_bc:"BC",A:"",P:"",AM:"",PM:"","A.M.":"","P.M.":"",January:"",February:"",March:"",April:"",May:"",June:"",July:"",August:"",September:"",October:"",November:"",December:"",Jan:"",Feb:"",Mar:"",Apr:"","May(short)":"May",Jun:"",Jul:"",Aug:"",Sep:"",Oct:"",Nov:"",Dec:"",Sunday:"",Monday:"",Tuesday:"",Wednesday:"",Thursday:"",Friday:"",Saturday:"",Sun:"",Mon:"",Tue:"",Wed:"",Thu:"",Fri:"",Sat:"",_dateOrd:function(m){let t="th";if(m<11||m>13)switch(m%10){case 1:t="st";break;case 2:t="nd";break;case 3:t="rd";break}return t},"Zoom Out":"",Play:"",Stop:"",Legend:"","Press ENTER to toggle":"",Loading:"",Home:"",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Force directed tree":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"",Image:"",Data:"",Print:"","Press ENTER or use arrow keys to navigate":"","Press ENTER to open":"","Press ENTER to print.":"","Press ENTER to export as %1.":"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"",HTML:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"","From %1":"","To %1":"","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":"",Close:"",Minimize:"",Confirm:""};class si extends st{_setDefaults(){this.setPrivate("defaultLocale",he),super._setDefaults()}translate(t,e,...i){e||(e=this._root.locale||this.getPrivate("defaultLocale"));let s=t,r=e[t];if(r===null)s="";else if(r!=null)r&&(s=r);else if(e!==this.getPrivate("defaultLocale"))return this.translate(t,this.getPrivate("defaultLocale"),...i);if(i.length)for(let n=i.length,a=0;a<n;++a)s=s.split("%"+(a+1)).join(i[a]);return s}translateAny(t,e,...i){return this.translate(t,e,...i)}setTranslationAny(t,e,i){const s=i||this._root.locale;s[t]=e}setTranslationsAny(t,e){ut(t,(i,s)=>{this.setTranslationAny(i,s,e)})}translateEmpty(t,e,...i){let s=this.translate(t,e,...i);return s==t?"":s}translateFunc(t,e){return this._root.locale[t]?this._root.locale[t]:e!==this.getPrivate("defaultLocale")?this.translateFunc(t,this.getPrivate("defaultLocale")):()=>""}translateAll(t,e){return this.isDefault()?t:xe(t,i=>this.translate(i,e))}isDefault(){return this.getPrivate("defaultLocale")===this._root.locale}}class Ct{constructor(t=1,e=0,i=0,s=1,r=0,n=0){this.a=t,this.b=e,this.c=i,this.d=s,this.tx=r,this.ty=n}setTransform(t,e,i,s,r,n=1){this.a=Math.cos(r)*n,this.b=Math.sin(r)*n,this.c=-Math.sin(r)*n,this.d=Math.cos(r)*n,this.tx=t-(i*this.a+s*this.c),this.ty=e-(i*this.b+s*this.d)}apply(t){return{x:this.a*t.x+this.c*t.y+this.tx,y:this.b*t.x+this.d*t.y+this.ty}}applyInverse(t){const e=1/(this.a*this.d+this.c*-this.b);return{x:this.d*e*t.x+-this.c*e*t.y+(this.ty*this.c-this.tx*this.d)*e,y:this.a*e*t.y+-this.b*e*t.x+(-this.ty*this.a+this.tx*this.b)*e}}append(t){const e=this.a,i=this.b,s=this.c,r=this.d;this.a=t.a*e+t.b*s,this.b=t.a*i+t.b*r,this.c=t.c*e+t.d*s,this.d=t.c*i+t.d*r,this.tx=t.tx*e+t.ty*s+this.tx,this.ty=t.tx*i+t.ty*r+this.t
1y}prepend(t){const e=this.tx;if(t.a!==1||t.b!==0||t.c!==0||t.d!==1){const i=this.a,s=this.c;this.a=i*t.a+this.b*t.c,this.b=i*t.b+this.b*t.d,this.c=s*t.a+this.d*t.c,this.d=s*t.b+this.d*t.d}this.tx=e*t.a+this.ty*t.c+t.tx,this.ty=e*t.b+this.ty*t.d+t.ty}copyFrom(t){this.a=t.a,this.b=t.b,this.c=t.c,this.d=t.d,this.tx=t.tx,this.ty=t.ty}}var ri=function(){function m(t,e){var i=[],s=!0,r=!1,n=void 0;try{for(var a=t[Symbol.iterator](),o;!(s=(o=a.next()).done)&&(i.push(o.value),!(e&&i.length===e));s=!0);}catch(u){r=!0,n=u}finally{try{!s&&a.return&&a.return()}finally{if(r)throw n}}return i}return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return m(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),dt=Math.PI*2,Dt=function(t,e,i,s,r,n,a){var o=t.x,u=t.y;o*=e,u*=i;var p=s*o-r*u,f=r*o+s*u;return{x:p+n,y:f+a}},ni=function(t,e){var i=e===1.5707963267948966?.551915024494:e===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(e/4),s=Math.cos(t),r=Math.sin(t),n=Math.cos(t+e),a=Math.sin(t+e);return[{x:s-r*i,y:r+s*i},{x:n+a*i,y:a-n*i},{x:n,y:a}]},$t=function(t,e,i,s){var r=t*s-e*i<0?-1:1,n=t*i+e*s;return n>1&&(n=1),n<-1&&(n=-1),r*Math.acos(n)},ai=function(t,e,i,s,r,n,a,o,u,p,f,_){var h=Math.pow(r,2),c=Math.pow(n,2),y=Math.pow(f,2),l=Math.pow(_,2),d=h*c-h*l-c*y;d<0&&(d=0),d/=h*l+c*y,d=Math.sqrt(d)*(a===o?-1:1);var b=d*r/n*_,v=d*-n/r*f,g=p*b-u*v+(t+i)/2,w=u*b+p*v+(e+s)/2,T=(f-b)/r,E=(_-v)/n,k=(-f-b)/r,O=(-_-v)/n,M=$t(1,0,T,E),C=$t(T,E,k,O);return o===0&&C>0&&(C-=dt),o===1&&C<0&&(C+=dt),[g,w,M,C]},oi=function(t){var e=t.px,i=t.py,s=t.cx,r=t.cy,n=t.rx,a=t.ry,o=t.xAxisRotation,u=o===void 0?0:o,p=t.largeArcFlag,f=p===void 0?0:p,_=t.sweepFlag,h=_===void 0?0:_,c=[];if(n===0||a===0)return[];var y=Math.sin(u*dt/360),l=Math.cos(u*dt/360),d=l*(e-s)/2+y*(i-r)/2,b=-y*(e-s)/2+l*(i-r)/2;if(d===0&&b===0)return[];n=Math.abs(n),a=Math.abs(a);var v=Math.pow(d,2)/Math.pow(n,2)+Math.pow(b,2)/Math.pow(a,2);v>1&&(n*=Math.sqrt(v),a*=Math.sqrt(v));var g=ai(e,i,s,r,n,a,f,h,y,l,d,b),w=ri(g,4),T=w[0],E=w[1],k=w[2],O=w[3],M=Math.abs(O)/(dt/4);Math.abs(1-M)<1e-7&&(M=1);var C=Math.max(Math.ceil(M),1);O/=C;for(var L=0;L<C;L++)c.push(ni(k,O)),k+=O;return c.map(function(B){var J=Dt(B[0],n,a,l,y,T,E),R=J.x,ft=J.y,D=Dt(B[1],n,a,l,y,T,E),H=D.x,V=D.y,U=Dt(B[2],n,a,l,y,T,E),rt=U.x,Y=U.y;return{x1:R,y1:ft,x2:H,y2:V,x:rt,y:Y}})};function hi(m,t,e){if(t!==e)throw new Error("Required "+e+" arguments for "+m+" but got "+t)}function ht(m,t,e){if(t<e)throw new Error("Required at least "+e+" arguments for "+m+" but got "+t)}function F(m,t,e){if(ht(m,t,e),t%e!==0)throw new Error("Arguments for "+m+" must be in pairs of "+e)}function li(m){for(let t=0;t<m.length;t+=7){let e=t+3,i=m[e];if(i.length>1){const s=/^([01])([01])(.*)$/.exec(i);s!==null&&(m.splice(e,0,s[1]),++e,m.splice(e,0,s[2]),++e,s[3].length>0?m[e]=s[3]:m.splice(e,1))}if(++e,i=m[e],i.length>1){const s=/^([01])(.+)$/.exec(i);s!==null&&(m.splice(e,0,s[1]),++e,m[e]=s[2])}}}function jt(m){if(m===0||m===1)return m;throw new Error("Flag must be 0 or 1")}function ci(m){const t=[0,0,0];for(let e=0;e<24;e++)t[e%3]<<=1,t[e%3]|=m&1,m>>=1;return(t[0]|0)+(t[1]<<8)+(t[2]<<16)}function xt(m,t){for(;!(m.interactive&&!t(m));)if(m._parent)m=m._parent;else break}function di(m,t,e){return I(m,Lt(t),i=>{const s=ne(i);let r=i.touches;r?(r.length==0&&(r=i.changedTouches),e(ke(r),s)):e([i],s)})}function Qt(m){const t=document.createElement("canvas");t.width=1,t.height=1;const e=t.getContext("2d",{willReadFrequently:!0});e.drawImage(m,0,0,1,1);try{return e.getImageData(0,0,1,1),!1}catch{return console.warn('Image "'+m.src+'" is loaded from different host and is not covered by CORS policy. For more information about the implications read here: https://www.amcharts.com/docs/v5/concepts/cors'),!0}}function lt(m){m.width=0,m.height=0,m.style.width="0px",m.style.height="0px"}function te(m){return Math.floor(m)+.5}class ui{constructor(){this._x=0,this._y=0}get x(){return this._x}get y(){return this._y}set x(t){this._x=t}set y(t){this._y=t}}class kt extends Ce{constructor(t){super(),this.mask=null,this.visible=!0,this.exportable=!0,this.interactive=!1,this.inactive=null,this.wheelable=!1,this.cancelTouch=!1,this.isMeasured=!1,this.buttonMode=!1,this.alpha=1,this.compoundAlpha=1,this.angle=0,this.scale=1,this.x=0,this.y=0,this.crisp=!1,this.pivot=new ui,this._localMatrix=new Ct,this._matrix=new Ct,this._uMatrix=new Ct,this._renderer=t}subStatus(t){return{inactive:this.inactive==null?t.inactive:this.inactive,layer:this._layer||t.layer}}
1_dispose(){this._renderer._removeObject(this),this.getLayer().dirty=!0}getCanvas(){return this.getLayer().view}getLayer(){let t=this;for(;;){if(t._layer)return t._layer;if(t._parent)t=t._parent;else return this._renderer.defaultLayer}}setLayer(t,e){t==null?this._layer=void 0:(this._layer=this._renderer.getLayer(t,!0),this._layer.visible=!0,this._layer.margin=e,e&&tt(this._layer.view,!1),this._renderer._ghostLayer.setMargin(this._renderer.layers),this._parent&&this._parent.registerChildLayer(this._layer),this._layer.dirty=!0,this._renderer.resizeLayer(this._layer),this._renderer.resizeGhost())}markDirtyLayer(){this.getLayer().dirty=!0}clear(){this.invalidateBounds()}invalidateBounds(){this._localBounds=void 0}_addBounds(t){}_getColorId(){return this._colorId===void 0&&(this._colorId=this._renderer.paintId(this)),this._colorId}_isInteractive(t){return!t.inactive&&(this.interactive||this._renderer._forceInteractive>0)}_isInteractiveMask(t){return this._isInteractive(t)}contains(t){for(;;){if(t===this)return!0;if(t._parent)t=t._parent;else return!1}}toGlobal(t){return this._matrix.apply(t)}toLocal(t){return this._matrix.applyInverse(t)}getLocalMatrix(){return this._uMatrix.setTransform(0,0,this.pivot.x,this.pivot.y,this.angle*Math.PI/180,this.scale),this._uMatrix}getLocalBounds(){return this._localBounds||(this._localBounds={left:1e7,top:1e7,right:-1e7,bottom:-1e7},this._addBounds(this._localBounds)),this._localBounds}getAdjustedBounds(t){this._setMatrix();const e=this.getLocalMatrix(),i=e.apply({x:t.left,y:t.top}),s=e.apply({x:t.right,y:t.top}),r=e.apply({x:t.right,y:t.bottom}),n=e.apply({x:t.left,y:t.bottom});return{left:Math.min(i.x,s.x,r.x,n.x),top:Math.min(i.y,s.y,r.y,n.y),right:Math.max(i.x,s.x,r.x,n.x),bottom:Math.max(i.y,s.y,r.y,n.y)}}on(t,e,i){return this.interactive?this._renderer._addEvent(this,t,e,i):new q(()=>{})}_setMatrix(){this._localMatrix.setTransform(this.x,this.y,this.pivot.x,this.pivot.y,this.angle*Math.PI/180,this.scale),this._matrix.copyFrom(this._localMatrix),this._parent&&this._matrix.prepend(this._parent._matrix)}_transform(t,e){const i=this._matrix;let s=i.tx*e,r=i.ty*e;this.crisp&&(s=te(s),r=te(r)),t.setTransform(i.a*e,i.b*e,i.c*e,i.d*e,s,r)}_transformMargin(t,e,i){const s=this._matrix;t.setTransform(s.a*e,s.b*e,s.c*e,s.d*e,(s.tx+i.left)*e,(s.ty+i.top)*e)}_transformLayer(t,e,i){i.margin?this._transformMargin(t,i.scale||e,i.margin):this._transform(t,i.scale||e)}render(t,e=0){if(this.visible&&(this.exportable!==!1||!this._renderer._omitTainted)){this._setMatrix();const i=this.subStatus(t),s=this._renderer.resolution,r=this._renderer.layers,n=this._renderer._ghostLayer,a=n.context,o=this.mask;o&&o._setMatrix(),x(r,u=>{if(u){const p=u.context;p.save(),o&&(o._transformLayer(p,s,u),o._runPath(p),p.clip()),p.globalAlpha=this.compoundAlpha*this.alpha,this._transformLayer(p,s,u),this.filter&&(p.filter=this.filter)}}),a.save(),o&&this._isInteractiveMask(i)&&(o._transformMargin(a,s,n.margin),o._runPath(a),a.clip()),this._transformMargin(a,s,n.margin),i.layer.order>0&&!e&&De(this._renderer._deferredGhostLayers,i.layer.order),this._render(i,e),a.restore(),x(r,u=>{u&&u.context.restore()})}}_render(t,e=0){this.exportable===!1&&(t.layer.tainted=!0)}_ghostOnly(t=0){return t>0}_drawGhost(t,e=0){const i=this._isInteractive(t),s=t.layer.order||0;return!!(i&&(s==0&&!this._ghostOnly(e)||s==e))}hovering(){return this._renderer._hovering.has(this)}dragging(){return this._renderer._dragging.some(t=>t.value===this)}shouldCancelTouch(){const t=this._renderer;return t.tapToActivate&&!t._touchActive?!1:this.cancelTouch?!0:this._parent?this._parent.shouldCancelTouch():!1}}class fi extends kt{constructor(){super(...arguments),this.interactiveChildren=!0,this._children=[]}_isInteractiveMask(t){return this.interactiveChildren||super._isInteractiveMask(t)}addChild(t){t._parent=this,this._children.push(t),t._layer&&this.registerChildLayer(t._layer)}addChildAt(t,e){t._parent=this,this._children.splice(e,0,t),t._layer&&this.registerChildLayer(t._layer)}removeChild(t){t._parent=void 0,zt(this._children,t)}_render(t,e){super._render(t);const i=this._renderer;this.interactive&&this.interactiveChildren&&++i._forceInteractive,x(this._children,s=>{s.compoundAlpha=this.compoundAlpha*this.alpha,s.render(t,e)}),this.interactive&&this.interactiveChildren&&--i._forceInteractive}registerChildLayer(t){this._childLayers||(this._childLayers=[]),Pt(this._childLayers,t),this._parent&&this._parent.registerChildLayer(t)}markDirtyLayer(t=!1){super.markDirtyLayer(),t&&this._childLayers&&x(this._childLayers,e=>e.dirty=!0)}_dispose(){super._dispose(),this._childLayers&&x(this._childLayers,t=>{t.dirty=!0})}}function A(m,t){m.left=Math.min(m.left,t.x),m.top=Math.min(m.top,t.y),m.right=Math.max(m.right,t.x),m.bottom=Math.max(m.bottom,t.y)}class P{colorize(t,e){}colorizeGhost(t,e){this.colorize(t,e)}path(t){}pathGhost(t){this.path(t)}
1addBounds(t){}}class _i extends P{colorize(t,e){t.beginPath()}}class At extends P{constructor(t){super(),this.color=t}colorize(t,e){e!==void 0?t.fillStyle=e:t.fillStyle=this.color}}class pi extends P{constructor(t){super(),this.clearShadow=t}colorize(t,e){t.fill(),this.clearShadow&&(t.shadowColor="",t.shadowBlur=0,t.shadowOffsetX=0,t.shadowOffsetY=0)}}class mi extends P{colorize(t,e){t.stroke()}}class Bt extends P{constructor(t,e,i,s){super(),this.width=t,this.color=e,this.lineJoin=i,this.lineCap=s}colorize(t,e){e!==void 0?t.strokeStyle=e:t.strokeStyle=this.color,t.lineWidth=this.width,this.lineJoin&&(t.lineJoin=this.lineJoin),this.lineCap&&(t.lineCap=this.lineCap)}}class gi extends P{constructor(t){super(),this.dash=t}colorize(t,e){t.setLineDash(this.dash)}}class yi extends P{constructor(t){super(),this.dashOffset=t}colorize(t,e){t.lineDashOffset=this.dashOffset}}class vi extends P{constructor(t,e,i,s){super(),this.x=t,this.y=e,this.width=i,this.height=s}path(t){t.rect(this.x,this.y,this.width,this.height)}addBounds(t){const e=this.x,i=this.y,s=e+this.width,r=i+this.height;A(t,{x:e,y:i}),A(t,{x:s,y:i}),A(t,{x:e,y:r}),A(t,{x:s,y:r})}}class xi extends P{constructor(t,e,i){super(),this.x=t,this.y=e,this.radius=i}path(t){t.moveTo(this.x+this.radius,this.y),t.arc(this.x,this.y,this.radius,0,2*Math.PI)}addBounds(t){A(t,{x:this.x-this.radius,y:this.y-this.radius}),A(t,{x:this.x+this.radius,y:this.y+this.radius})}}class bi extends P{constructor(t,e,i,s){super(),this.x=t,this.y=e,this.radiusX=i,this.radiusY=s}path(t){t.ellipse(0,0,this.radiusX,this.radiusY,0,0,Math.PI*2)}addBounds(t){A(t,{x:this.x-this.radiusX,y:this.y-this.radiusY}),A(t,{x:this.x+this.radiusX,y:this.y+this.radiusY})}}class wi extends P{constructor(t,e,i,s,r,n){super(),this.cx=t,this.cy=e,this.radius=i,this.startAngle=s,this.endAngle=r,this.anticlockwise=n}path(t){this.radius>0&&t.arc(this.cx,this.cy,this.radius,this.startAngle,this.endAngle,this.anticlockwise)}addBounds(t){let e=Ae(this.cx,this.cy,this.startAngle*ct,this.endAngle*ct,this.radius);A(t,{x:e.left,y:e.top}),A(t,{x:e.right,y:e.bottom})}}class Ei extends P{constructor(t,e,i,s,r){super(),this.x1=t,this.y1=e,this.x2=i,this.y2=s,this.radius=r}path(t){this.radius>0&&t.arcTo(this.x1,this.y1,this.x2,this.y2,this.radius)}addBounds(t){}}class Si extends P{constructor(t,e){super(),this.x=t,this.y=e}path(t){t.lineTo(this.x,this.y)}addBounds(t){A(t,{x:this.x,y:this.y})}}class Ti extends P{constructor(t,e){super(),this.x=t,this.y=e}path(t){t.moveTo(this.x,this.y)}addBounds(t){A(t,{x:this.x,y:this.y})}}class Mi extends P{path(t){t.closePath()}}class ki extends P{constructor(t,e,i,s,r,n){super(),this.cpX=t,this.cpY=e,this.cpX2=i,this.cpY2=s,this.toX=r,this.toY=n}path(t){t.bezierCurveTo(this.cpX,this.cpY,this.cpX2,this.cpY2,this.toX,this.toY)}addBounds(t){A(t,{x:this.cpX,y:this.cpY}),A(t,{x:this.cpX2,y:this.cpY2}),A(t,{x:this.toX,y:this.toY})}}class Ci extends P{constructor(t,e,i,s){super(),this.cpX=t,this.cpY=e,this.toX=i,this.toY=s}path(t){t.quadraticCurveTo(this.cpX,this.cpY,this.toX,this.toY)}addBounds(t){A(t,{x:this.cpX,y:this.cpY}),A(t,{x:this.toX,y:this.toY})}}class Di extends P{constructor(t,e,i,s,r){super(),this.color=t,this.blur=e,this.offsetX=i,this.offsetY=s,this.opacity=r}colorize(t,e){this.opacity&&(t.fillStyle=this.color),t.shadowColor=this.color,t.shadowBlur=this.blur,t.shadowOffsetX=this.offsetX,t.shadowOffsetY=this.offsetY}colorizeGhost(t,e){}}class Ai extends P{constructor(t,e,i,s,r){super(),this.image=t,this.width=e,this.height=i,this.x=s,this.y=r}path(t){t.drawImage(this.image,this.x,this.y,this.width,this.height)}addBounds(t){A(t,{x:this.x,y:this.y}),A(t,{x:this.width,y:this.height})}}class Bi extends kt{constructor(){super(...arguments),this._operations=[],this.blendMode=Se.NORMAL,this._hasShadows=!1}clear(){super.clear(),this._operations.length=0}_pushOp(t){this._operations.push(t)}beginFill(t,e=1){this._fillAlpha=e,t?t instanceof K?this._pushOp(new At(t.toCSS(e))):(this.isMeasured=!0,this._pushOp(new At(t))):this._pushOp(new At("rgba(0, 0, 0, "+e+")"))}endFill(){this._pushOp(new pi(this._hasShadows))}endStroke(){this._pushOp(new mi)}beginPath(){this._pushOp(new _i)}lineStyle(t=0,e,i=1,s,r){this._strokeAlpha=i,e?e instanceof K?this._pushOp(new Bt(t,e.toCSS(i),s,r)):this._pushOp(new Bt(t,e,s,r)):this._pushOp(new Bt(t,"rgba(0, 0, 0, "+i+")",s,r))}setLineDash(t){this._pushOp(new gi(t||[]))}setLineDashOffset(t=0){this._pushOp(new yi(t))}drawRect(t,e,i,s){this._pushOp(new vi(t,e,i,s))}drawCircle(t,e,i){this._pushOp(new xi(t,e,i))}drawEllipse(t,e,i,s){this._pushOp(new bi(t,e,i,s))}
1arc(t,e,i,s,r,n=!1){this._pushOp(new wi(t,e,i,s,r,n))}arcTo(t,e,i,s,r){this._pushOp(new Ei(t,e,i,s,r))}lineTo(t,e){this._pushOp(new Si(t,e))}moveTo(t,e){this._pushOp(new Ti(t,e))}bezierCurveTo(t,e,i,s,r,n){this._pushOp(new ki(t,e,i,s,r,n))}quadraticCurveTo(t,e,i,s){this._pushOp(new Ci(t,e,i,s))}closePath(){this._pushOp(new Mi)}shadow(t,e=0,i=0,s=0,r){this._hasShadows=!0,this._pushOp(new Di(r?t.toCSS(r):t.toCSS(this._fillAlpha||this._strokeAlpha),e,i,s))}image(t,e,i,s,r){this._pushOp(new Ai(t,e,i,s,r))}svgPath(t){let e=0,i=0,s=null,r=null,n=null,a=null;const o=/([MmZzLlHhVvCcSsQqTtAa])([^MmZzLlHhVvCcSsQqTtAa]*)/g,u=/[\u0009\u0020\u000A\u000C\u000D]*([\+\-]?[0-9]*\.?[0-9]+(?:[eE][\+\-]?[0-9]+)?)[\u0009\u0020\u000A\u000C\u000D]*,?/g,p=this._operations.length;try{let f;for(;(f=o.exec(t))!==null;){const _=f[1],h=f[2],c=[];for(;(f=u.exec(h))!==null;)c.push(f[1]);switch(_!=="S"&&_!=="s"&&_!=="C"&&_!=="c"&&(s=null,r=null),_!=="Q"&&_!=="q"&&_!=="T"&&_!=="t"&&(n=null,a=null),_){case"M":F(_,c.length,2),e=+c[0],i=+c[1],this.moveTo(e,i);for(let l=2;l<c.length;l+=2)e=+c[l],i=+c[l+1],this.lineTo(e,i);break;case"m":F(_,c.length,2),e+=+c[0],i+=+c[1],this.moveTo(e,i);for(let l=2;l<c.length;l+=2)e+=+c[l],i+=+c[l+1],this.lineTo(e,i);break;case"L":F(_,c.length,2);for(let l=0;l<c.length;l+=2)e=+c[l],i=+c[l+1],this.lineTo(e,i);break;case"l":F(_,c.length,2);for(let l=0;l<c.length;l+=2)e+=+c[l],i+=+c[l+1],this.lineTo(e,i);break;case"H":ht(_,c.length,1);for(let l=0;l<c.length;++l)e=+c[l],this.lineTo(e,i);break;case"h":ht(_,c.length,1);for(let l=0;l<c.length;++l)e+=+c[l],this.lineTo(e,i);break;case"V":ht(_,c.length,1);for(let l=0;l<c.length;++l)i=+c[l],this.lineTo(e,i);break;case"v":ht(_,c.length,1);for(let l=0;l<c.length;++l)i+=+c[l],this.lineTo(e,i);break;case"C":F(_,c.length,6);for(let l=0;l<c.length;l+=6){const d=+c[l],b=+c[l+1];s=+c[l+2],r=+c[l+3],e=+c[l+4],i=+c[l+5],this.bezierCurveTo(d,b,s,r,e,i)}break;case"c":F(_,c.length,6);for(let l=0;l<c.length;l+=6){const d=+c[l]+e,b=+c[l+1]+i;s=+c[l+2]+e,r=+c[l+3]+i,e+=+c[l+4],i+=+c[l+5],this.bezierCurveTo(d,b,s,r,e,i)}break;case"S":F(_,c.length,4),(s===null||r===null)&&(s=e,r=i);for(let l=0;l<c.length;l+=4){const d=2*e-s,b=2*i-r;s=+c[l],r=+c[l+1],e=+c[l+2],i=+c[l+3],this.bezierCurveTo(d,b,s,r,e,i)}break;case"s":F(_,c.length,4),(s===null||r===null)&&(s=e,r=i);for(let l=0;l<c.length;l+=4){const d=2*e-s,b=2*i-r;s=+c[l]+e,r=+c[l+1]+i,e+=+c[l+2],i+=+c[l+3],this.bezierCurveTo(d,b,s,r,e,i)}break;case"Q":F(_,c.length,4);for(let l=0;l<c.length;l+=4)n=+c[l],a=+c[l+1],e=+c[l+2],i=+c[l+3],this.quadraticCurveTo(n,a,e,i);break;case"q":F(_,c.length,4);for(let l=0;l<c.length;l+=4)n=+c[l]+e,a=+c[l+1]+i,e+=+c[l+2],i+=+c[l+3],this.quadraticCurveTo(n,a,e,i);break;case"T":F(_,c.length,2),(n===null||a===null)&&(n=e,a=i);for(let l=0;l<c.length;l+=2)n=2*e-n,a=2*i-a,e=+c[l],i=+c[l+1],this.quadraticCurveTo(n,a,e,i);break;case"t":F(_,c.length,2),(n===null||a===null)&&(n=e,a=i);for(let l=0;l<c.length;l+=2)n=2*e-n,a=2*i-a,e+=+c[l],i+=+c[l+1],this.quadraticCurveTo(n,a,e,i);break;case"A":case"a":const y=_==="a";li(c),F(_,c.length,7);for(let l=0;l<c.length;l+=7){let d=+c[l+5],b=+c[l+6];y&&(d+=e,b+=i);const v=oi({px:e,py:i,rx:+c[l],ry:+c[l+1],xAxisRotation:+c[l+2],largeArcFlag:jt(+c[l+3]),sweepFlag:jt(+c[l+4]),cx:d,cy:b});x(v,g=>{this.bezierCurveTo(g.x1,g.y1,g.x2,g.y2,g.x,g.y),e=g.x,i=g.y})}break;case"Z":case"z":hi(_,c.length,0),this.closePath();break}}}catch(f){this._operations.length=p,console.warn(`Error when parsing svgPath: 2 `+f.message+` 3`+t)}}_runPath(t){t.beginPath(),x(this._operations,e=>{e.path(t)})}_render(t,e=0){super._render(t);const i=t.layer.dirty,s=this._isInteractive(t),r=this._ghostOnly(e),n=this._drawGhost(t,e);if(i||s||r){const a=t.layer.context,o=this._renderer._ghostLayer.context;i&&!r&&(a.globalCompositeOperation=this.blendMode,a.beginPath());let u;n&&(o.beginPath(),u=this._getColorId()),x(this._operations,p=>{i&&!r&&(p.path(a),p.colorize(a,void 0)),n&&(p.pathGhost(o),p.colorizeGhost(o,u))})}}renderDetached(t){if(this.visible){this._setMatrix(),t.save();const e=this.mask;e&&(e._setMatrix(),e._transform(t,1),e._runPath(t),t.clip()),t.globalAlpha=this.compoundAlpha*this.alpha,this._transform(t,1),this.filter&&(t.filter=this.filter),t.globalCompositeOperation=this.blendMode,t.beginPath(),x(this._operations,i=>{i.path(t),i.colorize(t,void 0)}
3),t.restore()}}_addBounds(t){this.visible&&this.isMeasured&&x(this._operations,e=>{e.addBounds(t)})}}class le extends kt{constructor(t,e,i){super(t),this.resolution=1,this.textVisible=!0,this._originalScale=1,this.text=e,this.style=i}invalidateBounds(){super.invalidateBounds(),this._textInfo=void 0}invalidateVisibility(){this.textVisible=!0,this.scale=this._originalScale||1}_shared(t){this.style.textAlign&&(t.textAlign=this.style.textAlign),this.style.direction&&(t.direction=this.style.direction),this.style.textBaseline&&(t.textBaseline=this.style.textBaseline)}_prerender(t,e=!1,i=!1){super._render(t);const s=t.layer.context,r=this._renderer._ghostLayer.context,n=this.style;let a=this._getFontStyle(void 0,i);s.font=a,this._isInteractive(t)&&!e&&(r.font=a),n.fill&&(n.fill instanceof K?s.fillStyle=n.fill.toCSS(n.fillOpacity!=null?n.fillOpacity:1):s.fillStyle=n.fill),n.shadowColor&&(t.layer.context.shadowColor=n.shadowColor.toCSS(n.shadowOpacity||1)),n.shadowBlur&&(t.layer.context.shadowBlur=n.shadowBlur),n.shadowOffsetX&&(t.layer.context.shadowOffsetX=n.shadowOffsetX),n.shadowOffsetY&&(t.layer.context.shadowOffsetY=n.shadowOffsetY),this._shared(s),this._isInteractive(t)&&!e&&(r.fillStyle=this._getColorId(),this._shared(r))}_getFontStyle(t,e=!1){const i=this.style;let s=[];return t&&t.fontVariant?s.push(t.fontVariant):i.fontVariant&&s.push(i.fontVariant),e||(t&&t.fontWeight?s.push(t.fontWeight):i.fontWeight&&s.push(i.fontWeight)),t&&t.fontStyle?s.push(t.fontStyle):i.fontStyle&&s.push(i.fontStyle),t&&t.fontSize?(W(t.fontSize)&&(t.fontSize=t.fontSize+"px"),s.push(t.fontSize)):i.fontSize&&(W(i.fontSize)&&(i.fontSize=i.fontSize+"px"),s.push(i.fontSize)),i.fontFamily=="inherit"?s.push(getComputedStyle(this._renderer.view).getPropertyValue("font-family")):t&&t.fontFamily?s.push(t.fontFamily):i.fontFamily?s.push(i.fontFamily):s.length&&s.push("Arial"),s.join(" ")}_render(t,e=0){if(this._textInfo||this._measure(t),this.textVisible){const i=this._isInteractive(t),s=t.layer.context,r=t.layer.dirty,n=this._renderer._ghostLayer.context,a=this._ghostOnly(e),o=this._drawGhost(t,e);s.save(),n.save(),this._prerender(t),x(this._textInfo,(u,p)=>{x(u.textChunks,(f,_)=>{if(f.style&&(s.save(),n.save(),a||(s.font=f.style),this._isInteractive(t)&&(n.font=f.style)),f.fill&&(s.save(),a||(s.fillStyle=f.fill.toCSS())),r&&!a&&s.fillText(f.text,f.offsetX,u.offsetY+f.offsetY),f.textDecoration=="underline"||f.textDecoration=="line-through"){let h=1,c=1,y=f.height;const l=this.style.oversizedBehavior||"";if(["truncate","wrap","wrap-no-break"].indexOf(l)>-1){const v=this._measureText(f.text,s);f.width=v.actualBoundingBoxLeft+v.actualBoundingBoxRight}let d=f.offsetX;switch(this.style.textAlign){case"right":case"end":d-=f.width;break;case"center":d-=f.width/2;break}if(f.style)switch(X.getTextStyle(f.style).fontWeight){case"bolder":case"bold":case"700":case"800":case"900":h=2;break}y&&(c=y/20);let b;f.textDecoration=="line-through"?b=h+u.offsetY+f.offsetY-f.height/2:b=h+c*1.5+u.offsetY+f.offsetY,b=Math.round(b),a||(s.save(),s.beginPath(),f.fill?s.strokeStyle=f.fill.toCSS():this.style.fill&&this.style.fill instanceof K&&(s.strokeStyle=this.style.fill.toCSS()),s.lineWidth=h*c,s.moveTo(d,b),s.lineTo(d+f.width,b),s.stroke(),s.restore())}i&&this.interactive&&o&&n.fillText(f.text,f.offsetX,u.offsetY+f.offsetY),f.fill&&s.restore(),f.style&&(s.restore(),n.restore())})}),s.restore(),n.restore()}}_addBounds(t){if(this.visible&&this.isMeasured){const e=this._measure({inactive:this.inactive,layer:this.getLayer()});A(t,{x:e.left,y:e.top}),A(t,{x:e.right,y:e.bottom})}}_ignoreFontWeight(){return/apple/i.test(navigator.vendor)}_measure(t){const e=t.layer.context,i=this._renderer._ghostLayer.context,s=this.style.direction=="rtl";this._textInfo=[];const r=this.style.oversizedBehavior,n=this.style.maxWidth,a=W(n)&&r=="truncate",o=W(n)&&(r=="wrap"||r=="wrap-no-break");e.save(),i.save(),this._prerender(t,!0,this._ignoreFontWeight());const u="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ",p=this.text.toString().replace(/\r/g,"").split(/\n/);let f=!0,_=0,h=0,c=0,y;x(p,(d,b)=>{let v;for(d==""?v=[{type:"value",text:""}]:v=X.chunk(d,!1,this.style.ignoreFormatting);v.length>0;){let g={offsetY:c,ascent:0,width:0,height:0,left:0,right:0,textChunks:[]};const w=this._measureText(u,e),T=w.actualBoundingBoxAscent+w.actualBoundingBoxDescent;g.height=T,g.ascent=w.actualBoundingBoxAscent;let E,k=this.style.textDecoration,O,M,C=!1,L=!0,B=[],J;Rt(v,(R,ft)=>
3{if(R.type=="format")if(R.text=="[/]")f||(e.restore(),i.restore(),f=!0),O=void 0,y=void 0,M=void 0,k=this.style.textDecoration,J=void 0,E=R.text;else{f||(e.restore(),i.restore());let D=X.getTextStyle(R.text);const H=this._getFontStyle(D);e.save(),i.save(),e.font=H,y=H,E=R.text,D.textDecoration&&(k=D.textDecoration),D.fill&&(O=D.fill),D.width&&(M=G(D.width)),D.verticalAlign&&(J=D.verticalAlign),f=!1;const V=this._measureText(u,e),U=V.actualBoundingBoxAscent+V.actualBoundingBoxDescent;U>g.height&&(g.height=U),V.actualBoundingBoxAscent>g.ascent&&(g.ascent=V.actualBoundingBoxAscent)}else if(R.type=="value"&&!C){const D=this._measureText(R.text,e);let H=D.actualBoundingBoxLeft+D.actualBoundingBoxRight;if(a){this.truncated=void 0;let Y=L||this.style.breakWords||!1;const N=this.style.ellipsis||"",nt=this._measureText(N,e),Ht=nt.actualBoundingBoxLeft+nt.actualBoundingBoxRight;if(g.width+H>n){const ce=n-g.width-Ht;R.text=this._truncateText(e,R.text,ce,Y),R.text+=N,C=!0,this.truncated=!0}}else if(o&&g.width+H>n){const Y=n-g.width,N=this._truncateText(e,R.text,Y,!1,L&&this.style.oversizedBehavior!="wrap-no-break");if(N=="")return this.textVisible=!0,!1;if(!L){const nt=this._measureText(gt(N),e);if(nt.actualBoundingBoxLeft+nt.actualBoundingBoxRight>Y)return B=v.slice(ft),E&&B.unshift({type:"format",text:E}),v=[],!1}B=v.slice(ft+1),gt(N)!=gt(R.text)&&(B.unshift({type:"value",text:R.text.substr(N.length)}),E&&B.unshift({type:"format",text:E})),R.text=gt(N),v=[],C=!0}let V=1,U=1;if(y&&M&&M>H){const Y=H/M;switch(this.style.textAlign){case"right":case"end":V=Y;break;case"center":V=Y,U=Y;break;default:U=Y}H=M}const rt=D.actualBoundingBoxAscent+D.actualBoundingBoxDescent;rt>g.height&&(g.height=rt),D.actualBoundingBoxAscent>g.ascent&&(g.ascent=D.actualBoundingBoxAscent),g.width+=H,g.left+=D.actualBoundingBoxLeft/V,g.right+=D.actualBoundingBoxRight/U,g.textChunks.push({style:y,fill:O,text:R.text,width:H,height:rt,left:D.actualBoundingBoxLeft,right:D.actualBoundingBoxRight,ascent:D.actualBoundingBoxAscent,offsetX:0,offsetY:0,textDecoration:k,verticalAlign:J}),L=!1}return!0}),this.style.lineHeight instanceof Et?(g.height*=this.style.lineHeight.value,g.ascent*=this.style.lineHeight.value):(g.height*=this.style.lineHeight||1.2,g.ascent*=this.style.lineHeight||1.2),_<g.left&&(_=g.left),h<g.right&&(h=g.right),this._textInfo.push(g),c+=g.height,v=B||[]}}),f||(e.restore(),i.restore()),x(this._textInfo,(d,b)=>{let v=0;x(d.textChunks,g=>{if(g.offsetX=v+g.left-d.left,g.offsetY+=d.height-d.height*(this.style.baselineRatio||.19),v+=g.width*(s?-1:1),g.verticalAlign)switch(g.verticalAlign){case"super":g.offsetY-=d.height/2-g.height/2;break;case"sub":g.offsetY+=g.height/2;break}})});const l={left:s?-h:-_,top:0,right:s?_:h,bottom:c};if(r!=="none"){const d=this._fitRatio(l);if(d<1)if(r=="fit")W(this.style.minScale)&&d<this.style.minScale?(this.textVisible=!1,l.left=0,l.top=0,l.right=0,l.bottom=0):(this._originalScale||(this._originalScale=this.scale),this.scale=d,this.textVisible=!0);else if(r=="hide")this.textVisible=!1,l.left=0,l.top=0,l.right=0,l.bottom=0;else{switch(this.style.textAlign){case"right":case"end":l.left=s?n:-n,l.right=0;break;case"center":l.left=-n/2,l.right=n/2;break;default:l.left=0,l.right=s?-n:n}this.scale=this._originalScale||1,this._originalScale=void 0,this.textVisible=!0}else this.scale=this._originalScale||1,this._originalScale=void 0,this.textVisible=!0}return e.restore(),i.restore(),l}_fitRatio(t){const e=this.style.maxWidth,i=this.style.maxHeight;if(!W(e)&&!W(i))return 1;const s=t.right-t.left,r=t.bottom-t.top;return Math.min(e/s||1,i/r||1)}_truncateText(t,e,i,s=!1,r=!0){let n;do{if(s)e=e.slice(0,-1);else{let o=e.replace(/(?:[^,;:!?\\\/\sâ]|,(?=\d))+[,;:!?\\\/\sâ]*$/g,"");if((o==""||o===e)&&r)s=!0;else{if(o=="")return e;e=o}}const a=this._measureText(e,t);n=a.actualBoundingBoxLeft+a.actualBoundingBoxRight}while(n>i&&e!="");return e}_measureText(t,e){let i=e.measureText(t),s={};if(i.actualBoundingBoxAscent==null){const n=document.createElement("div");n.innerText=t,n.style.visibility="hidden",n.style.position="absolute",n.style.top="-1000000px;",n.style.fontFamily=this.style.fontFamily||"",n.style.fontSize=this.style.fontSize+"",document.body.appendChild(n);const a=n.getBoundingClientRect();document.body.removeChild(n);const o=a.height,u=i.width;s={actualBoundingBoxAscent:o,actualBoundingBoxDescent:0,actualBoundingBoxLeft:0,actualBoundingBoxRight:u,fontBoundingBoxAscent:o,fontBoundingBoxDescent:0,width:u}}else s={actualBoundingBoxAscent:i.actualBoundingBoxAscent,actualBoundingBoxDescent:i.actualBoundingBoxDescent,actualBoundingBoxLeft:i.actualBoundingBoxLeft,actualBoundingBoxRight:i.actualBoundingBoxRight,fontBoundingBoxAscent:i.actualBoundingBoxAscent,fontBoundingBoxDescent:i.actualBoundingBoxDescent,width:i.width};const r=i.width;switch(this.style.textAlign){case"right":case"end":s.actualBoundingBoxLeft=r,s.actualBoundingBoxRight=0;break;case"center":s.actualBoundingBoxLeft=r/2,s.actualBoundingBoxRight=r/2;break;default:s.actualBoundingBoxLeft=0,s.actualBoundingBoxRight=r}return s}}class Li{constructor(){this.lineHeight=ae(120),this.baselineRatio=.19,this.oversizedBehavior="none",this.breakWords=!1,this.ellipsis="â¦",this.ignoreFormatting=!1}}class Pi extends le{constructor(){super(...arguments),this.textType="circular",this.inside=!1,this.orientation="auto",this.kerning=0,this._textReversed=!1}_render(t,e=0){switch(this.textType){case"circular":this._renderCircular(t,e);break;default:super._render(t,e);break}}_renderCircular(t,e=0){if(this.textVisible){this._prerender(t);const i=this._isInteractive(t),s=t.layer.context,r=t.layer.dirty,n=this._renderer._ghostLayer.context;s.save(),i&&n.save(),this._textInfo||this._measure(t);let a=this.radius||0,o=this.startAngle||0,u=0,p=this.orientation,f=p=="auto"?"auto":p=="inward";const _=this.inside,h=this.style.textAlign||"left",c=this.kerning||0;let y=h=="left"?1:-1;const l=!this._textReversed,d=this._ghostOnly(e),b=this._drawGhost(t,e);if(f=="auto"){let v=0,g=0;x(this._textInfo,(w,T)=>{const E=o+w.width/(a-w.height)/2*-y;E>v&&(v=E)}),h=="left"?g=(v+u/2)*ct:h=="right"?g=(v-u/2)*ct:g=o*ct,g=Te(g),f=g>=270||g<=90}f==!0&&l&&(this._textInfo.reverse(),this._textReversed=!0),x(this._textInfo,(v,g)=>
3{const w=v.height;_||(a+=w),(y==-1&&f||y==1&&!f)&&l&&v.textChunks.reverse();let T=o;u=0,h=="center"&&(T+=v.width/(a-w)/2*-y,u=T-o),T+=Math.PI*(f?0:1),s.save(),i&&n.save(),d||s.rotate(T),i&&n.rotate(T);let E=0;x(v.textChunks,(k,O)=>{const M=k.text,C=k.width;E=C/2/(a-w)*y,d||s.rotate(E),i&&n.rotate(E),k.style&&(s.save(),n.save(),d||(s.font=k.style),i&&(n.font=k.style)),k.fill&&(s.save(),d||(s.fillStyle=k.fill.toCSS())),d||(s.textBaseline="middle",s.textAlign="center"),i&&(n.textBaseline="middle",n.textAlign="center"),r&&!d&&s.fillText(M,0,(f?1:-1)*(0-a+w/2)),i&&b&&n.fillText(M,0,(f?1:-1)*(0-a+w/2)),k.fill&&s.restore(),k.style&&(s.restore(),n.restore()),E=(C/2+c)/(a-w)*y,d||s.rotate(E),i&&n.rotate(E)}),s.restore(),i&&n.restore(),_&&(a-=w)}),s.restore(),i&&n.restore()}}_measure(t){switch(this.textType){case"circular":return this._measureCircular(t);default:return super._measure(t)}}_measureCircular(t){const e=t.layer.context,i=this._renderer._ghostLayer.context,s=this.style.direction=="rtl",r=this.style.oversizedBehavior,n=this.style.maxWidth,a=W(n)&&r=="truncate",o=this.style.ellipsis||"";let u;this.textVisible=!0,this._textInfo=[],this._textReversed=!1,e.save(),i.save(),this._prerender(t,!0);const p=this.text.toString().replace(/\r/g,"").split(/\n/);let f=!0,_=0,h=0;return x(p,(c,y)=>{let l=X.chunk(c,!1,this.style.ignoreFormatting),d={offsetY:h,ascent:0,width:0,height:0,left:0,right:0,textChunks:[]},b,v,g;x(l,(w,T)=>{if(w.type=="format"){if(w.text=="[/]")f||(e.restore(),i.restore(),f=!0),v=void 0,b=void 0,g=void 0;else{let E=X.getTextStyle(w.text);const k=this._getFontStyle(E);e.save(),i.save(),e.font=k,b=k,E.fill&&(v=E.fill),E.width&&(g=G(E.width)),f=!1}a&&(u=this._measureText(o,e))}else if(w.type=="value"){let E=w.text.match(/./ug)||[];s&&(E=Me(w.text),E.reverse());for(let k=0;k<E.length;k++){const O=E[k],M=this._measureText(O,e);let C=M.width;b&&g&&g>C&&(C=g);const L=M.actualBoundingBoxAscent+M.actualBoundingBoxDescent;if(L>d.height&&(d.height=L),M.actualBoundingBoxAscent>d.ascent&&(d.ascent=M.actualBoundingBoxAscent),_+=C,a){u||(u=this._measureText(o,e));const B=u.actualBoundingBoxLeft+u.actualBoundingBoxRight;if(_+B>n){d.textChunks.length==1?this.textVisible=!1:(d.width+=B,d.left+=u.actualBoundingBoxLeft,d.right+=u.actualBoundingBoxRight,d.textChunks.push({style:b,fill:v,text:o,width:B,height:L+u.actualBoundingBoxDescent,left:u.actualBoundingBoxLeft,right:u.actualBoundingBoxRight,ascent:u.actualBoundingBoxAscent,offsetX:0,offsetY:L,textDecoration:void 0}));break}}d.width+=C,d.left+=M.actualBoundingBoxLeft,d.right+=M.actualBoundingBoxRight,d.textChunks.push({style:b,fill:v,text:O,width:C,height:L+M.actualBoundingBoxDescent,left:M.actualBoundingBoxLeft,right:M.actualBoundingBoxRight,ascent:M.actualBoundingBoxAscent,offsetX:0,offsetY:L,textDecoration:void 0})}}}),this.style.lineHeight instanceof Et?d.height*=this.style.lineHeight.value:d.height*=this.style.lineHeight||1.2,this._textInfo.push(d),h+=d.height}),f||(e.restore(),i.restore()),r=="hide"&&_>n&&(this.textVisible=!1),x(this._textInfo,c=>{x(c.textChunks,y=>{y.offsetY+=Math.round((c.height-y.height+(c.ascent-y.ascent))/2)})}),e.restore(),i.restore(),{left:0,top:0,right:0,bottom:0}}}class Oi extends kt{constructor(t,e){super(t),this.image=e}_dispose(){super._dispose(),this._imageMask&<(this._imageMask)}getLocalBounds(){if(!this._localBounds){let t=0,e=0;this.width&&(t=this.width),this.height&&(e=this.height),this._localBounds={left:0,top:0,right:t,bottom:e},this._addBounds(this._localBounds)}return this._localBounds}_render(t,e=0){if(super._render(t),this.image){if(this.tainted===void 0&&(this.tainted=Qt(this.image),t.layer.tainted=!0),this.tainted&&this._renderer._omitTainted)return;const i=this._ghostOnly(e),s=this._drawGhost(t,e);if(t.layer.dirty&&!i){this.shadowColor&&(t.layer.context.shadowColor=this.shadowColor.toCSS(this.shadowOpacity||1)),this.shadowBlur&&(t.layer.context.shadowBlur=this.shadowBlur),this.shadowOffsetX&&(t.layer.context.shadowOffsetX=this.shadowOffsetX),this.shadowOffsetY&&(t.layer.context.shadowOffsetY=this.shadowOffsetY);
vendor: 4,111 bytes, line 3
3const r=this.width||this.image.naturalWidth,n=this.height||this.image.naturalHeight;t.layer.context.drawImage(this.image,0,0,r,n)}if(this.interactive&&this._isInteractive(t)&&s){const r=this._getMask(this.image);this._renderer._ghostLayer.context.drawImage(r,0,0)}}}clear(){super.clear(),this.image=void 0,this._imageMask=void 0}_getMask(t){if(this._imageMask===void 0){const e=this.width||t.naturalWidth,i=this.height||t.naturalHeight,s=document.createElement("canvas");s.width=e,s.height=i;const r=s.getContext("2d");r.imageSmoothingEnabled=!1,r.fillStyle=this._getColorId(),r.fillRect(0,0,e,i),Qt(t)||(r.globalCompositeOperation="destination-in",r.drawImage(t,0,0,e,i)),this._imageMask=s}return this._imageMask}}class zi{constructor(t,e,i,s){this.event=t,this.originalPoint=e,this.point=i,this.bbox=s,this.simulated=!1,this.native=!0,wt("touchevents")&&t instanceof Touch?this.id=t.identifier:this.id=null}}class Ri extends be{constructor(t){if(super(),this.view=document.createElement("div"),this._layerDom=document.createElement("div"),this.layers=[],this._dirtyLayers=[],this.defaultLayer=this.getLayer(0),this._ghostLayer=new Ii,this._deferredGhostLayers=[],this._patternCanvas=document.createElement("canvas"),this._patternContext=this._patternCanvas.getContext("2d"),this._realWidth=0,this._realHeight=0,this._calculatedWidth=0,this._calculatedHeight=0,this.interactionsEnabled=!0,this._listeners={},this._events={},this._colorId=0,this._colorMap={},this._forceInteractive=0,this._omitTainted=!1,this._hovering=new Set,this._dragging=[],this._mousedown=[],this.tapToActivate=!1,this.tapToActivateTimeout=3e3,this._touchActive=!1,t==null?this.resolution=window.devicePixelRatio:this.resolution=t,this.view.style.position="absolute",this.view.setAttribute("aria-hidden","true"),this.view.appendChild(this._layerDom),this._disposers.push(new q(()=>{ut(this._events,(e,i)=>{i.disposer.dispose()}),x(this.layers,e=>{lt(e.view),e.exportableView&<(e.exportableView)}),lt(this._ghostLayer.view),lt(this._patternCanvas)})),this._disposers.push(se(()=>{t==null&&(this.resolution=window.devicePixelRatio)})),wt("touchevents")){const e=i=>{this._dragging.length!==0&&Rt(this._dragging,s=>s.value.shouldCancelTouch()?(i.preventDefault(),!1):!0),this._touchActiveTimeout&&this._delayTouchDeactivate()};this._disposers.push(I(window,"touchstart",e,{passive:!1})),this._disposers.push(I(this.view,"touchstart",e,{passive:!1})),this._disposers.push(I(this.view,"touchmove",()=>{this._touchActiveTimeout&&this._delayTouchDeactivate()},{passive:!0})),this._disposers.push(I(window,"click",i=>{this._touchActive=!1},{passive:!0})),this._disposers.push(I(this.view,"click",i=>{window.setTimeout(()=>{this._touchActive=!0,this._delayTouchDeactivate()},100)},{passive:!0}))}wt("wheelevents")&&this._disposers.push(I(this.view,"wheel",e=>{let i=!1;this._hovering.forEach(s=>{if(s.wheelable)return i=!0,!1}),i&&e.preventDefault()},{passive:!1}))}resetImageArray(){this._ghostLayer.imageArray=void 0}_delayTouchDeactivate(){this._touchActiveTimeout&&clearTimeout(this._touchActiveTimeout),this.tapToActivateTimeout>0&&(this._touchActiveTimeout=window.setTimeout(()=>{this._touchActive=!1},this.tapToActivateTimeout))}get debugGhostView(){return!!this._ghostLayer.view.parentNode}set debugGhostView(t){t?this._ghostLayer.view.parentNode||this.view.appendChild(this._ghostLayer.view):this._ghostLayer.view.parentNode&&this._ghostLayer.view.parentNode.removeChild(this._ghostLayer.view)}createLinearGradient(t,e,i,s){return this.defaultLayer.context.createLinearGradient(t,e,i,s)}createRadialGradient(t,e,i,s,r,n){return this.defaultLayer.context.createRadialGradient(t,e,i,s,r,n)}createPattern(t,e,i,s,r){return this._patternCanvas.width=s,this._patternCanvas.height=r,this._patternContext.clearRect(0,0,s,r),e.renderDetached(this._patternContext),t.renderDetached(this._patternContext),this._patternContext.createPattern(this._patternCanvas,i)}makeContainer(){return new fi(this)}makeGraphics(){return new Bi(this)}makeText(t,e){return new le(this,t,e)}makeTextStyle(){return new Li}makeRadialText(t,e){return new Pi(this,t,e)}
3makePicture(t){return new Oi(this,t)}resizeLayer(t){t.resize(this._calculatedWidth,this._calculatedHeight,this._calculatedWidth,this._calculatedHeight,this.resolution)}resizeGhost(){this._ghostLayer.resize(this._calculatedWidth,this._calculatedHeight,this._calculatedWidth,this._calculatedHeight,this.resolution)}resize(t,e,i,s){this._realWidth=t,this._realHeight=e,this._calculatedWidth=i,this._calculatedHeight=s,x(this.layers,r=>{r&&(r.dirty=!0,this.resizeLayer(r))}),this.resizeGhost(),this.view.style.width=i+"px",this.view.style.height=s+"px"}createDetachedLayer(t=!1){const e=document.createElement("canvas"),i=e.getContext("2d",{willReadFrequently:t}),s=new Fi(e,i);return e.style.position="absolute",e.style.top="0px",e.style.left="0px",s}getLayerByOrder(t){const e=this.layers,i=e.length;for(let s=0;s<i;s++){const r=e[s];if(r.order==t)return r}}getLayer(t,e=!0){let i=this.getLayerByOrder(t);if(i)return i;const s=this.createDetachedLayer(t==99);s.order=t,s.visible=e,s.view.className="am5-layer-"+t,s.visible&&this.resizeLayer(s);const r=this.layers;r.push(s),r.sort((u,p)=>u.order>p.order?1:u.order<p.order?-1:0);const n=r.length,a=we(r,s);let o;for(let u=a+1;u<n;u++)if(r[u].visible){o=r[u];break}return s.visible&&(o===void 0?this._layerDom.appendChild(s.view):this._layerDom.insertBefore(s.view,o.view)),s}render(t){this._dirtyLayers.length=0,this._deferredGhostLayers=[],x(this.layers,i=>{i&&i.dirty&&i.visible&&(this._dirtyLayers.push(i),i.clear())}),this._ghostLayer.clear(),t.render({inactive:null,layer:this.defaultLayer});const e=this._deferredGhostLayers;if(e.length&&(e.sort((i,s)=>i-s),x(e,i=>{t.render({inactive:null,layer:this.defaultLayer},i)})),this._ghostLayer.context.restore(),x(this.layers,i=>{if(i){const s=i.context;s.beginPath(),s.moveTo(0,0),s.stroke()}}),x(this._dirtyLayers,i=>{i.context.restore(),i.dirty=!1}),this._hovering.size&&this._lastPointerMoveEvent){const{events:i,target:s,native:r}=this._lastPointerMoveEvent;x(i,n=>{this._dispatchGlobalMousemove(n,s,r)})}}paintId(t){const e=ci(++this._colorId),i=K.fromHex(e).toCSS();return this._colorMap[i]=t,i}_removeObject(t){t._colorId!==void 0&&delete this._colorMap[t._colorId]}_adjustBoundingBox(t){const e=this._ghostLayer.margin;return new DOMRect(-e.left,-e.top,t.width+e.left+e.right,t.height+e.top+e.bottom)}getEvent(t,e=!0){const i=this.view.getBoundingClientRect(),s=t.clientX||0,r=t.clientY||0,n=this._calculatedWidth/this._realWidth,a=this._calculatedHeight/this._realHeight,o={x:s-i.left,y:r-i.top},u={x:(s-(e?i.left:0))*n,y:(r-(e?i.top:0))*a};return new zi(t,o,u,this._adjustBoundingBox(i))}_getHitTarget(t,e,i){if(e.width===0||e.height===0||t.x<e.left||t.x>e.right||t.y<e.top||t.y>e.bottom||!i||!this._layerDom.contains(i))return;const s=this._ghostLayer.getImageData(t,e);if(s.data[0]===0&&s.data[1]===0&&s.data[2]===0)return!1;const r=K.fromRGB(s.data[0],s.data[1],s.data[2]).toCSS();return this._colorMap[r]}getObjectAtPoint(t){const e=this._ghostLayer.getImageArray(t);if(e[0]===0&&e[1]===0&&e[2]===0)return;const i=K.fromRGB(e[0],e[1],e[2]).toCSS();return this._colorMap[i]}_withEvents(t,e){const i=this._events[t];if(i!==void 0){i.dispatching=!0;try{e(i)}finally{i.dispatching=!1,i.cleanup&&(i.cleanup=!1,Tt(i.callbacks,s=>!s.disposed),i.callbacks.length===0&&(i.disposer.dispose(),delete this._events[t]))}}}_dispatchEventAll(t,e){this.interactionsEnabled&&this._withEvents(t,i=>{x(i.callbacks,s=>{s.disposed||s.callback.call(s.context,e)})})}_dispatchEvent(t,e,i){if(!this.interactionsEnabled)return!1;let s=!1;return this._withEvents(t,r=>{x(r.callbacks,n=>{!n.disposed&&n.object===e&&(n.callback.call(n.context,i),s=!0)})}),s}_dispatchMousedown(t,e){const i=t.button;if(i!=0&&i!=2&&i!=1&&i!==void 0)return;
3const s=this.getEvent(t),r=this._getHitTarget(s.originalPoint,s.bbox,e);if(r){const n=s.id;let a=!1;xt(r,o=>{const u={id:n,value:o};return this._mousedown.push(u),!a&&this._dispatchEvent("pointerdown",o,s)&&(a=!0,this._dragging.some(f=>f.value===o&&f.id===n)||this._dragging.push(u)),!0})}}_dispatchGlobalMousemove(t,e,i){const s=this.getEvent(t),r=this._getHitTarget(s.originalPoint,s.bbox,e);s.native=i,r?(this._hovering.forEach(n=>{n.contains(r)||(this._hovering.delete(n),n.cursorOverStyle&&mt(document.body,"cursor",n._replacedCursorStyle),this._dispatchEvent("pointerout",n,s))}),s.native&&xt(r,n=>(this._hovering.has(n)||(this._hovering.add(n),n.cursorOverStyle&&(n._replacedCursorStyle=Be(document.body,"cursor"),mt(document.body,"cursor",n.cursorOverStyle)),this._dispatchEvent("pointerover",n,s)),!0))):(this._hovering.forEach(n=>{n.cursorOverStyle&&mt(document.body,"cursor",n._replacedCursorStyle),this._dispatchEvent("pointerout",n,s)}),this._hovering.clear()),this._dispatchEventAll("globalpointermove",s)}removeHovering(t){this._hovering.delete(t),t.cursorOverStyle&&mt(document.body,"cursor",t._replacedCursorStyle)}_dispatchGlobalMouseup(t,e){const i=this.getEvent(t);i.native=e,this._dispatchEventAll("globalpointerup",i)}_dispatchDragMove(t){if(this._dragging.length!==0){const e=this.getEvent(t),i=e.id;this._dragging.forEach(s=>{s.id===i&&this._dispatchEvent("pointermove",s.value,e)})}}_dispatchDragEnd(t,e){const i=t.button;let s;if(i==0||i===void 0)s="click";else if(i==2)s="rightclick";else if(i==1)s="middleclick";else return;const r=this.getEvent(t),n=r.id;if(this._mousedown.length!==0){const a=this._getHitTarget(r.originalPoint,r.bbox,e);a&&this._mousedown.forEach(o=>{o.id===n&&o.value.contains(a)&&this._dispatchEvent(s,o.value,r)}),this._mousedown.length=0}this._dragging.length!==0&&(this._dragging.forEach(a=>{a.id===n&&this._dispatchEvent("pointerup",a.value,r)}),this._dragging.length=0)}_dispatchDoubleClick(t,e){const i=this.getEvent(t),s=this._getHitTarget(i.originalPoint,i.bbox,e);s&&xt(s,r=>!this._dispatchEvent("dblclick",r,i))}_dispatchWheel(t,e){const i=this.getEvent(t),s=this._getHitTarget(i.originalPoint,i.bbox,e);s&&xt(s,r=>!this._dispatchEvent("wheel",r,i))}_makeSharedEvent(t,e){if(this._listeners[t]===void 0){const i=e();this._listeners[t]=new Ee(()=>{delete this._listeners[t],i.dispose()})}return this._listeners[t].increment()}_onPointerEvent(t,e){let i=!1,s=null;function r(){s=null,i=!1}return new Ut([new q(()=>{s!==null&&clearTimeout(s),r()}),I(this.view,Lt(t),n=>{i=!0,s!==null&&clearTimeout(s),s=window.setTimeout(r,0)}),di(window,t,(n,a)=>{s!==null&&(clearTimeout(s),s=null),e(n,a,i),i=!1})])}_initEvent(t){switch(t){case"globalpointermove":case"pointerover":case"pointerout":return this._makeSharedEvent("pointermove",()=>{const e=(i,s,r)=>{this._lastPointerMoveEvent={events:i,target:s,native:r},x(i,n=>{this._dispatchGlobalMousemove(n,s,r)})};return new Ut([this._onPointerEvent("pointerdown",e),this._onPointerEvent("pointermove",e)])});case"globalpointerup":return this._makeSharedEvent("pointerup",()=>{const e=this._onPointerEvent("pointerup",(s,r,n)=>{x(s,a=>{this._dispatchGlobalMouseup(a,n)}),this._lastPointerMoveEvent={events:s,target:r,native:n}}),i=this._onPointerEvent("pointercancel",(s,r,n)=>{x(s,a=>{this._dispatchGlobalMouseup(a,n)}),this._lastPointerMoveEvent={events:s,target:r,native:n}});return new q(()=>{e.dispose(),i.dispose()})});case"click":case"rightclick":case"middleclick":case"pointerdown":case"pointermove":case"pointerup":return this._makeSharedEvent("pointerdown",()=>{const e=this._onPointerEvent("pointerdown",(n,a)=>{x(n,o=>{this._dispatchMousedown(o,a)})}),i=this._onPointerEvent("pointermove",n=>{x(n,a=>{this._dispatchDragMove(a)})}),s=this._onPointerEvent("pointerup",(n,a)=>{x(n,o=>{this._dispatchDragEnd(o,a)})}),r=this._onPointerEvent("pointercancel",(n,a)=>{x(n,o=>{this._dispatchDragEnd(o,a)})});return new q(()=>{e.dispose(),i.dispose(),s.dispose(),r.dispose()})});case"dblclick":return this._makeSharedEvent("dblclick",()=>this._onPointerEvent("dblclick",(e,i)=>{x(e,s=>{this._dispatchDoubleClick(s,i)})}));case"wheel":return this._makeSharedEvent("wheel",()=>I(this.view,Lt("wheel"),e=>{this._dispatchWheel(e,ne(e))},{passive:!1}))}}_addEvent(t,e,i,s){let r=this._events[e];r===void 0&&(r=this._events[e]={disposer:this._initEvent(e),callbacks:[],dispatching:!1,cleanup:!1});const n={object:t,context:s,callback:i,disposed:!1};return r.callbacks.push(n),new q(()=>{n.disposed=!0,r.dispatching?r.cleanup=!0:(zt(r.callbacks,n),r.callbacks.length===0&&(r.disposer.dispose(),delete this._events[e]))})}getCanvas(t,e){this.render(t),e||(e={});let i=this.resolution,s=Math.floor(this._calculatedWidth*this.resolution),r=Math.floor(this._calculatedHeight*this.resolution);if(e.minWidth&&e.minWidth>s){let h=e.minWidth/s;h>i&&(i=h*this.resolution)}if(e.minHeight&&e.minHeight>r){let h=e.minHeight/r;h>i&&(i=h*this.resolution)}if(e.maxWidth&&e.maxWidth<s){let h=e.maxWidth/s;h<i&&(i=h*this.resolution)}if(e.maxHeight&&e.maxHeight>r){let h=e.maxHeight/r;h<i&&(i=h*this.resolution)}e.maintainPixelRatio&&(i/=this.resolution);const n=[];let a=!1;const o=document.createElement("canvas");i!=this.resolution&&(a=!0,s=s*i/this.resolution,r=r*i/this.resolution),o.width=s,o.height=r,o.style.position="fixed",o.style.top="-10000px",this.view.appendChild(o),n.push(o);const u=o.getContext("2d");let p=0,f=0,_=!1;return x(this.layers,h=>{if(h&&h.visible&&(h.tainted||a)){_=!0,h.exportableView=h.view,h.exportableContext=h.context,h.view=document.createElement("canvas"),h.view.style.position="fixed",h.view.style.top="-10000px",this.view.appendChild(h.view),n.push(h.view);let c=0,y=0;
3h.margin&&(c+=h.margin.left||0+h.margin.right||0,y+=h.margin.top||0+h.margin.bottom||0),h.view.width=s+c,h.view.height=r+y,h.context=h.view.getContext("2d"),h.dirty=!0,h.scale=i}}),_&&(this._omitTainted=!0,this.render(t),this._omitTainted=!1),x(this.layers,h=>{if(h&&h.visible){let c=0,y=0;h.margin&&(c=-(h.margin.left||0)*this.resolution,y=-(h.margin.top||0)*this.resolution),u.drawImage(h.view,c,y),h.exportableView&&(h.view=h.exportableView,h.exportableView=void 0),h.exportableContext&&(h.context=h.exportableContext,h.exportableContext=void 0),p<h.view.clientWidth&&(p=h.view.clientWidth),f<h.view.clientHeight&&(f=h.view.clientHeight),h.scale=void 0}}),o.style.width=p+"px",o.style.height=f+"px",x(n,h=>{h.style.position="",h.style.top="",this.view.removeChild(h)}),o}}class Ii{constructor(){this.margin={left:0,right:0,top:0,bottom:0},this._resolution=1,this._width=0,this._height=0,this.view=document.createElement("canvas"),this.context=this.view.getContext("2d",{alpha:!1,willReadFrequently:!0}),this.context.imageSmoothingEnabled=!1,this.view.style.position="absolute",this.view.style.top="0px",this.view.style.left="0px"}resize(t,e,i,s,r){this._resolution=r,t+=this.margin.left+this.margin.right,e+=this.margin.top+this.margin.bottom,i+=this.margin.left+this.margin.right,s+=this.margin.top+this.margin.bottom,this.view.style.left=-this.margin.left+"px",this.view.style.top=-this.margin.top+"px",this._width=Math.floor(t*r),this._height=Math.floor(e*r),this.view.width=this._width,this.view.style.width=i+"px",this.view.height=this._height,this.view.style.height=s+"px"}getImageData(t,e){return this.context.getImageData(Math.round((t.x-e.left)/e.width*this._width),Math.round((t.y-e.top)/e.height*this._height),1,1)}getImageArray(t){this.imageArray||(this.imageArray=this.context.getImageData(0,0,this._width,this._height).data);const e=this.imageArray,i=Math.round(t.x*this._resolution),r=(Math.round(t.y*this._resolution)*this._width+i)*4;return[e[r],e[r+1],e[r+2],e[r+3]]}setMargin(t){this.margin.left=0,this.margin.right=0,this.margin.top=0,this.margin.bottom=0,x(t,e=>{e.margin&&(this.margin.left=Math.max(this.margin.left,e.margin.left),this.margin.right=Math.max(this.margin.right,e.margin.right),this.margin.top=Math.max(this.margin.top,e.margin.top),this.margin.bottom=Math.max(this.margin.bottom,e.margin.bottom))})}clear(){this.context.save(),this.context.fillStyle="#000",this.context.fillRect(0,0,this._width,this._height)}}class Fi{constructor(t,e){this.tainted=!0,this.order=0,this.visible=!0,this.dirty=!0,this._width=0,this._height=0,this.view=t,this.context=e}resize(t,e,i,s,r){this.width!=null&&(t=this.width,i=this.width),this.height!=null&&(e=this.height,s=this.height),this.margin?(t+=this.margin.left+this.margin.right,e+=this.margin.top+this.margin.bottom,i+=this.margin.left+this.margin.right,s+=this.margin.top+this.margin.bottom,this.view.style.left=-this.margin.left+"px",this.view.style.top=-this.margin.top+"px"):(this.view.style.left="0px",this.view.style.top="0px"),this._width=Math.floor(t*r),this._height=Math.floor(e*r),this.view.width=this._width,this.view.style.width=i+"px",this.view.height=this._height,this.view.style.height=s+"px"}clear(){this.context.save(),this.context.clearRect(0,0,this._width,this._height)}}function ee(m,t){m==null?requestAnimationFrame(t):setTimeout(()=>{requestAnimationFrame(t)},1e3/m)}class It{constructor(t,e={},i){if(this._isDirty=!1,this._isDirtyParents=!1,this._isDirtyAnimation=!1,this._dirty={},this._dirtyParents={},this._dirtyBounds={},this._dirtyPositions={},this._ticker=null,this._tickers=[],this._updateTick=!0,this.skipRenderFrame=!1,this.events=new Le,this.animationTime=null,this._animations=[],this.language=si.new(this,{}),this.locale=he,this.utc=!1,this.numberFormatter=Qe.new(this,{}),this.dateFormatter=ei.new(this,{}),this.durationFormatter=ii.new(this,{}),this.tabindex=0,this._tabindexes=[],this._a11yD=!1,this._focusElementDirty=!1,this._skipNextGroupJump=!0,this.verticalLayout=Pe.new(this,{}),this.horizontalLayout=Oe.new(this,{}),this.gridLayout=ze.new(this,{}),this._paused=!1,this.autoResize=!0,this._fontHash=[],this._isDisposed=!1,this._disposers=[],this._tooltips=[],this._htmlEnabledContainers=[],this.entitiesById={},!i)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._settings=e,e.accessible==!1&&(this._a11yD=!0),e.useSafeResolution==null&&(e.useSafeResolution=!0);let s;e.useSafeResolution&&(s=Ge()),this._renderer=new Ri(s);let r;if(t instanceof HTMLElement?r=t:r=document.getElementById(t),x(Z.rootElements,o=>{if(o.dom===r)if(Z.autoDispose)o.dispose();else throw new Error("You cannot have multiple Roots on the same DOM node")}),this.interfaceColors=St.new(this,{}),r===null)throw new Error("Could not find HTML element with id `"+t+"`");this.dom=r;let n=document.createElement("div");n.style.position="relative",n.style.width="100%",n.style.height="100%",r.appendChild(n);const a=e.tooltipContainerBounds;a&&(this._tooltipContainerSettings=a),this._inner=n,this._updateComputedStyles(),Z.rootElements.push(this)}static new(t,e){const i=new It(t,e,!0);return i._init(),i}moveDOM(t){let e;if(t instanceof HTMLElement?e=t:e=document.getElementById(t),e){for(;this.dom.childNodes.length>0;)e.appendChild(this.dom.childNodes[0]);this.dom=e,this._initResizeSensor(),this.resize()}}_handleLogo(){if(this._logo){const t=this.dom.offsetWidth,e=this.dom.offsetHeight;t<=150||e<=60?this._logo.hide():this._logo.show()}}_showBranding(){if(!this._logo){const t=this.tooltipContainer.children.push($.new(this,{interactive:!0,interactiveChildren:!1,position:"absolute",setStateOnChildren:!0,paddingTop:9,paddingRight:9,paddingBottom:9,paddingLeft:9,scale:.6,y:ae(100),centerY:j,tooltipY:10,tooltipText:"Created using amCharts 5",tooltipX:j,cursorOverStyle:"pointer",background:Re.new(this,{fill:at(4671320),fillOpacity:0,tooltipY:5})}));t.set("tooltip",this.systemTooltip),t.events.on("click",()=>{window.open("https://www.amcharts.com/","_blank")}),t.states.create("hover",{});const e=t.children.push(Nt.new(this,{stroke:at(13421772),strokeWidth:3,svgPath:"M5 25 L13 25h13.6c3.4 0 6 0 10.3-4.3s5.2-12 8.6-12c3.4 0 4.3 8.6 7.7 8.6M83.4 25H79.8c-3.4 0-6 0-10.3-4.3s-5.2-12-8.6-12-4.3 8.6-7.7 8.6",dx:-50,strokeOpacity:0}));e.states.create("hover",{stroke:at(3976191)});const i=t.children.push(Nt.new(this,{stroke:at(8947848),strokeWidth:3,svgPath:"M83.4 25h-31C37 25 39.5 4.4 28.4 4.4S18.9 24.2 4.3 25H0",dx:50,strokeOpacity:0})),s=Ue(qe),r=1500;t.setTimeout(()=>{i.animate({key:"strokeOpacity",to:1,duration:r,easing:s}),i.animate({key:"dx",to:0,duration:r,easing:s}),e.animate({key:"dx",to:0,duration:r,easing:s}),e.animate({key:"strokeOpacity",to:1,duration:r,easing:s})},3e3),i.states.create("hover",{stroke:at(4671320)}),this._logo=t,this._handleLogo()}}_getRealSize(){return this.dom.getBoundingClientRect()}_getCalculatedSize(t){return this._settings.calculateSize?this._settings.calculateSize(t):{width:t.width,height:t.height}}_init(){const t=this._settings;t.accessible!==!1&&(t.focusable&&(this._inner.setAttribute("focusable","true"),this._inner.setAttribute("tabindex",this.tabindex+"")),t.ariaLabel&&this._inner.setAttribute("aria-label",t.ariaLabel),t.role&&this._inner.setAttribute("role",t.role));const e=this._renderer,i=this._getRealSize(),s=this._getCalculatedSize(i),r=Math.floor(s.width),n=Math.floor(s.height),a=Math.floor(i.width),o=Math.floor(i.height),u=$.new(this,{visible:!0,width:r,height:n});this._rootContainer=u,this._rootContainer._defaultThemes.push(Je.new(this));const p=u.children.push($.new(this,{visible:!0,width:j,height:j}));this.container=p,e.resize(a,o,r,n),this._inner.appendChild(e.view
3),this._initResizeSensor();const f=document.createElement("div");if(this._htmlElementContainer=f,f.className="am5-html-container",f.style.position="absolute",f.style.pointerEvents="none",this._tooltipContainerSettings||(f.style.overflow="hidden"),this._inner.appendChild(f),this._a11yD!==!0){const _=document.createElement("div");_.className="am5-reader-container",_.setAttribute("role","alert"),_.style.position="absolute",_.style.width="1px",_.style.height="1px",_.style.overflow="hidden",_.style.clip="rect(1px, 1px, 1px, 1px)",this._readerAlertElement=_,this._inner.appendChild(this._readerAlertElement);const h=document.createElement("div");h.className="am5-focus-container",h.style.position="absolute",h.style.pointerEvents="none",h.style.top="0px",h.style.left="0px",h.style.overflow="hidden",h.style.width=r+"px",h.style.height=n+"px",h.setAttribute("role","graphics-document"),tt(h,!1),this._focusElementContainer=h,this._inner.appendChild(this._focusElementContainer);const c=document.createElement("div");this._tooltipElementContainer=c,c.className="am5-tooltip-container",this._inner.appendChild(c),wt("keyboardevents")&&(this._disposers.push(I(window,"keydown",y=>{const l=yt(y);l=="Shift"?this._isShift=!0:l=="Tab"&&(this._isShift=y.shiftKey)})),this._disposers.push(I(window,"keyup",y=>{yt(y)=="Shift"&&(this._isShift=!1)})),this._disposers.push(I(h,"click",()=>{const y=this._focusedSprite;if(y){const l=y.get("clickAnnounceText","");l!==""&&this.readerAlert(l);const d=e.getEvent(new MouseEvent("click"));y.events.dispatch("click",{type:"click",originalEvent:d.event,point:d.point,simulated:!0,target:y})}})),this._disposers.push(I(h,"keydown",y=>{const l=this._focusedSprite;if(l){y.key=="Escape"&&(Ne(),this._focusedSprite=void 0);let d=0,b=0;const v=yt(y);switch(v){case"Enter":case" ":const g=l.get("clickAnnounceText","");if(g!==""&&this.readerAlert(g),v==" "&&l.get("role")!="checkbox")return;y.preventDefault();const w=e.getEvent(new MouseEvent("mouse"));l.events.dispatch("click",{type:"click",originalEvent:w.event,point:w.point,simulated:!0,target:l});return;case"ArrowLeft":d=-6;break;case"ArrowRight":d=6;break;case"ArrowUp":b=-6;break;case"ArrowDown":b=6;break;default:return}if(d!=0||b!=0){if(y.preventDefault(),!l.isDragging()){this._keyboardDragPoint={x:0,y:0};const T=e.getEvent(new MouseEvent("mousedown",{clientX:0,clientY:0}));T.point={x:0,y:0},l.events.isEnabled("pointerdown")&&l.events.dispatch("pointerdown",{type:"pointerdown",originalEvent:T.event,point:T.point,simulated:!0,target:l})}const g=this._keyboardDragPoint;g.x+=d,g.y+=b;const w=e.getEvent(new MouseEvent("mousemove",{clientX:g.x,clientY:g.y}),!1);l.events.isEnabled("globalpointermove")&&l.events.dispatch("globalpointermove",{type:"globalpointermove",originalEvent:w.event,point:w.point,simulated:!0,target:l})}}})),this._disposers.push(I(h,"keyup",y=>{if(this._focusedSprite){const l=this._focusedSprite,d=yt(y);switch(d){case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"ArrowDown":if(l.isDragging()){const v=this._keyboardDragPoint,g=e.getEvent(new MouseEvent("mouseup",{clientX:v.x,clientY:v.y}));l.events.isEnabled("globalpointerup")&&l.events.dispatch("globalpointerup",{type:"globalpointerup",originalEvent:g.event,point:g.point,simulated:!0,target:l}),this._keyboardDragPoint=void 0;return}else if(l.get("focusableGroup")){const v=l.get("focusableGroup"),g=this._tabindexes.filter(E=>!!(E.get("focusableGroup")==v&&E.getPrivate("focusable")!==!1&&E.isVisibleDeep()));let w=g.indexOf(l);const T=g.length-1;w+=d=="ArrowRight"||d=="ArrowDown"?1:-1,w<0?w=T:w>T&&(w=0),Xe(g[w].getPrivate("focusElement").dom)}break;case"Tab":const b=l.get("focusableGroup");if(b&&this._isShift){this._skipNextGroupJump||(this._focusNext(l.getPrivate("focusElement").dom,-1,b),this._skipNextGroupJump=!0);return}break}}})))}this._startTicker(),this.setThemes([]),this._addTooltip(),this._hasLicense()||this._showBranding()}get systemTooltip(){if(!this._systemTooltip){const t=Jt.new(this,{themeTags:["system"]});this._systemTooltip=t}return this._systemTooltip}_initResizeSensor(){this._resizeSensorDisposer&&this._resizeSensorDisposer.dispose(),this._resizeSensorDisposer=new je(this.dom,()=>{this.autoResize&&this.resize()}),this._disposers.push(this._resizeSensorDisposer)}resize(){const t=this._getRealSize(),e=this._getCalculatedSize(t),i=Math.floor(e.width),s=Math.floor(e.height);if(i>0&&s>0){const r=Math.floor(t.width),n=Math.floor(t.height),a=this._htmlElementContainer;if(a.style.width=i+"px",a.style.height=s+"px",this._a11yD!==!0){const u=this._focusElementContainer;u.style.width=i+"px",u.style.height=s+"px"}this._renderer.resize(r,n,i,s);const o=this._rootContainer;o.setPrivate("width",i),o.setPrivate("height",s),this._render(),this._handleLogo()}}
3_render(){if(this.skipRenderFrame){this.skipRenderFrame=!1;return}this._renderer.render(this._rootContainer._display),this._focusElementDirty&&(this._updateCurrentFocus(),this._focusElementDirty=!1)}_runTickers(t){x(this._tickers,e=>{e(t)})}_runAnimations(t){let e=0;return Tt(this._animations,i=>{const s=i._runAnimation(t);return s===Kt.Stopped?!1:(s===Kt.Playing&&++e,!0)}),this._isDirtyAnimation=!1,e===0}_runDirties(){let t={};for(;this._isDirtyParents;)this._isDirtyParents=!1,Q(this._dirtyParents).forEach(([n,a])=>{delete this._dirtyParents[n],a.isDisposed()||(t[a.uid]=a,a._prepareChildren())});Q(t).forEach(([n,a])=>{a._updateChildren()});const e=[];Q(this._dirty).forEach(([n,a])=>{a.isDisposed()?delete this._dirty[n]:(e.push(a),a._beforeChanged())}),e.forEach(n=>{n._changed(),delete this._dirty[n.uid],n._clearDirty()}),this._isDirty=!1;const i={},s=[];Q(this._dirtyBounds).forEach(([n,a])=>{delete this._dirtyBounds[n],a.isDisposed()||(i[a.uid]=a.depth(),s.push(a))}),this._positionHTMLElements(),s.sort((n,a)=>Ie(i[a.uid],i[n.uid])),s.forEach(n=>{n._updateBounds()});const r=this._dirtyPositions;Q(r).forEach(([n,a])=>{delete r[n],a.isDisposed()||a._updatePosition()}),e.forEach(n=>{n._afterChanged()}),Q(t).forEach(([n,a])=>{a._childrenPrep=!1,a._childrenUpdt=!1})}_renderFrame(t){if(this._updateTick){this.events.isEnabled("framestarted")&&this.events.dispatch("framestarted",{type:"framestarted",target:this,timestamp:t}),this._checkComputedStyles(),this._runTickers(t);const e=this._runAnimations(t);return this._runDirties(),this._render(),this._renderer.resetImageArray(),this._positionHTMLElements(),this.events.isEnabled("frameended")&&this.events.dispatch("frameended",{type:"frameended",target:this,timestamp:t}),this._tickers.length===0&&e&&!this._isDirtyAnimation&&!this._isDirty}else return!0}_runTicker(t,e){this.isDisposed()||(this.animationTime=t,this._renderFrame(t)?(this._ticker=null,this.animationTime=null):this._paused||(e?this._ticker:ee(this.fps,this._ticker)))}_runTickerNow(t=1e4){if(!this.isDisposed()){const e=performance.now()+t;for(;;){const i=performance.now();if(i>=e){this.animationTime=null;break}if(this.animationTime=i,this._renderFrame(i)){this.animationTime=null;break}}}}_startTicker(){this._ticker===null&&(this.animationTime=null,this._ticker=t=>{this._runTicker(t)},ee(this.fps,this._ticker))}get updateTick(){return this._updateTick}set updateTick(t){this._updateTick=t,t&&this._startTicker()}_addDirtyEntity(t){this._isDirty=!0,this._dirty[t.uid]===void 0&&(this._dirty[t.uid]=t),this._startTicker()}_addDirtyParent(t){this._isDirty=!0,this._isDirtyParents=!0,this._dirtyParents[t.uid]===void 0&&(this._dirtyParents[t.uid]=t),this._startTicker()}_addDirtyBounds(t){this._isDirty=!0,this._dirtyBounds[t.uid]===void 0&&(this._dirtyBounds[t.uid]=t),this._startTicker()}_addDirtyPosition(t){this._isDirty=!0,this._dirtyPositions[t.uid]===void 0&&(this._dirtyPositions[t.uid]=t),this._startTicker()}_addAnimation(t){this._isDirtyAnimation=!0,this._animations.indexOf(t)===-1&&this._animations.push(t),this._startTicker()}_markDirty(){this._isDirty=!0}_markDirtyRedraw(){this.events.once("frameended",()=>{this._isDirty=!0,this._startTicker()})}eachFrame(t){return this._tickers.push(t),this._startTicker(),new q(()=>{zt(this._tickers,t)})}markDirtyGlobal(t){t||(t=this.container),t.walkChildren(e=>{e instanceof $&&this.markDirtyGlobal(e),e.markDirty(),e.markDirtyBounds()})}width(){return Math.floor(this._getCalculatedSize(this._getRealSize()).width)}height(){return Math.floor(this._getCalculatedSize(this._getRealSize()).height)}dispose(){this._isDisposed||(this._isDisposed=!0,this._rootContainer.dispose(),this._renderer.dispose(),this.horizontalLayout.dispose(),this.verticalLayout.dispose(),this.interfaceColors.dispose(),x(this._disposers,t=>{t.dispose()}),this._inner&&Fe(this._inner),ot(Z.rootElements,this))}isDisposed(){return this._isDisposed}readerAlert(t){if(this._a11yD!==!0){const e=this._readerAlertElement;t=Xt(t),e.innerHTML==t&&(e.innerHTML=""),e.innerHTML=t}}setThemes(t){this._rootContainer.set("themes",t);const e=this.tooltipContainer;e&&e._applyThemes();const i=this.interfaceColors;i&&i._applyThemes()}_addTooltip(){if(!this.tooltipContainer){const t=this._tooltipContainerSettings,e=this._rootContainer.children.push($.new(this,{position:"absolute",isMeasured:!1,width:j,height:j,layer:t?35:30,layerMargin:t||void 0}));this.tooltipContainer=e;const i=Jt.new(this,{});this.container.set("tooltip",i),i.hide(0),this._tooltip=i}}_registerTabindexOrder(t){this._a11yD!=!0&&(t.get("focusable")?Pt(this._tabindexes,t):ot(this._tabindexes,t),this._invalidateTabindexes())}_unregisterTabindexOrder(t){this._a11yD!=!0&&(ot(this._tabindexes,t),this._invalidateTabindexes())}
3_invalidateTabindexes(){if(this._a11yD==!0)return;this._tabindexes.sort((e,i)=>{const s=e.get("tabindexOrder",0),r=i.get("tabindexOrder",0);return s==r?0:s>r?1:-1});const t=[];x(this._tabindexes,(e,i)=>{e.getPrivate("focusElement")?this._moveFocusElement(i,e):this._makeFocusElement(i,e);const s=e.get("focusableGroup");s&&e.getPrivate("focusable")!==!1&&(t.indexOf(s)!==-1?e.getPrivate("focusElement").dom.setAttribute("tabindex","-1"):t.push(s))})}_updateCurrentFocus(){this._a11yD!=!0&&this._focusedSprite&&(this._decorateFocusElement(this._focusedSprite),this._positionFocusElement(this._focusedSprite))}_decorateFocusElement(t,e){if(this._a11yD==!0||(e||(e=t.getPrivate("focusElement").dom),!e))return;const i=t.get("role");i?e.setAttribute("role",i):e.removeAttribute("role");const s=t.get("ariaLabel");if(s){const y=He(t,s);e.setAttribute("aria-label",y)}else e.removeAttribute("aria-label");const r=t.get("ariaLive");r?e.setAttribute("aria-live",r):e.removeAttribute("aria-live");const n=t.get("ariaChecked");n!=null&&i&&["checkbox","option","radio","menuitemcheckbox","menuitemradio","treeitem"].indexOf(i)!==-1?e.setAttribute("aria-checked",n?"true":"false"):e.removeAttribute("aria-checked");const a=t.get("ariaCurrent");a!=null?e.setAttribute("aria-current",a):e.removeAttribute("aria-current");const o=t.get("ariaSelected");o!=null&&i&&["gridcell","option","row","tab","columnheader","rowheader","treeitem"].indexOf(i)!==-1?e.setAttribute("aria-selected",o?"true":"false"):e.removeAttribute("aria-selected"),t.get("ariaHidden")?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden");const u=t.get("ariaOrientation");u?e.setAttribute("aria-orientation",u):e.removeAttribute("aria-orientation");const p=t.get("ariaValueNow");p?e.setAttribute("aria-valuenow",p):e.removeAttribute("aria-valuenow");const f=t.get("ariaValueMin");f?e.setAttribute("aria-valuemin",f):e.removeAttribute("aria-valuemin");const _=t.get("ariaValueMax");_?e.setAttribute("aria-valuemax",_):e.removeAttribute("aria-valuemax");const h=t.get("ariaValueText");h?e.setAttribute("aria-valuetext",h):e.removeAttribute("aria-valuetext");const c=t.get("ariaControls");c?e.setAttribute("aria-controls",c):e.removeAttribute("aria-controls"),t.get("visible")&&t.get("opacity")!==0&&t.get("role")!="tooltip"&&!t.isHidden()&&t.getPrivate("focusable")!==!1&&(t.height()||t.width())?(e.getAttribute("tabindex")!="-1"&&e.setAttribute("tabindex",""+this.tabindex),e.removeAttribute("aria-hidden")):(e.removeAttribute("tabindex"),e.setAttribute("aria-hidden","true"))}_makeFocusElement(t,e){if(e.getPrivate("focusElement")||this._a11yD==!0)return;const i=document.createElement("div");e.get("role")!="tooltip"&&(i.tabIndex=this.tabindex),i.style.position="absolute",tt(i,!1);const s=[];e.setPrivate("focusElement",{dom:i,disposers:s}),this._decorateFocusElement(e),s.push(I(i,"focus",r=>{this._handleFocus(r)})),s.push(I(i,"blur",r=>{this._handleBlur(r)})),this._moveFocusElement(t,e)}_removeFocusElement(t){if(this._a11yD==!0)return;ot(this._tabindexes,t);const e=t.getPrivate("focusElement");e&&(this._focusElementContainer.removeChild(e.dom),x(e.disposers,s=>{s.dispose()}))}_hideFocusElement(t){if(this._a11yD==!0)return;const e=t.getPrivate("focusElement");e.dom.style.display="none"}_moveFocusElement(t,e){if(this._a11yD==!0)return;const i=this._focusElementContainer,s=e.getPrivate("focusElement").dom;if(s===this._focusElementContainer.children[t])return;const r=this._focusElementContainer.children[t+1];r?i.insertBefore(s,r):i.append(s)}_positionFocusElement(t){if(this._a11yD==!0||t==null)return;this._focusElementContainer.scrollTop=0;const e=t.globalBounds();let i=e.right==e.left?t.width():e.right-e.left,s=e.top==e.bottom?t.height():e.bottom-e.top;const r=this._settings.focusPadding!==void 0?this._settings.focusPadding:2;let n=e.left-r,a=e.top-r;i<0&&(n+=i,i=Math.abs(i)),s<0&&(a+=s,s=Math.abs(s));const o=t.getPrivate("focusElement").dom;o.style.top=a+"px",o.style.left=n+"px",o.style.width=i+r*2+"px",o.style.height=s+r*2+"px"}_getSpriteByFocusElement(t){let e;return Rt(this._tabindexes,(i,s)=>i.getPrivate("focusElement").dom===t?(e=i,!1):!0),e}_handleFocus(t){if(this._a11yD==!0)return;const e=this._getSpriteByFocusElement(t.target);if(e){if(!e.isVisibleDeep()){this._focusNext(t.target,this._isShift?-1:1);return}this._positionFocusElement(e),this._focusedSprite=e,e.events.isEnabled("focus")&&e.events.dispatch("focus",{type:"focus",originalEvent:t,target:e}),e.getPrivate("focusElement").dom.tabIndex==-1&&(this._skipNextGroupJump=!1)}}_focusNext(t,e,i){if(this._a11yD==!0)return;const s=this.dom.getRootNode?this.dom.getRootNode():null;let r=this.dom.ownerDocument||document;s&&(typeof ShadowRoot<"u"&&s instanceof ShadowRoot||s instanceof Document)&&(r=s);const n=Array.from(r.querySelectorAll(["a[href]","area[href]","button:not([disabled])","details","input:not([disabled])","iframe:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[contentEditable=""]','[contentEditable="true"]','[contentEditable="TRUE"]','[tabindex]:not
3([tabindex^="-"])'].join(",")));let a=n.indexOf(t)+e;a<0?a=n.length-1:a>=n.length&&(a=0);const o=n[a];if(i&&e==-1){const u=this._getSpriteByFocusElement(o);if(u&&u.get("focusableGroup")==i){this._focusNext(o,e);return}}o&&o.focus()}_handleBlur(t){if(this._a11yD==!0)return;const e=this._focusedSprite;e&&!e.isDisposed()&&e.events.isEnabled("blur")&&e.events.dispatch("blur",{type:"blur",originalEvent:t,target:e}),this._focusedSprite=void 0}updateTooltip(t){if(this._a11yD==!0)return;const e=Ye(Xt(t._getText()));let i=t.getPrivate("tooltipElement");t.get("role")=="tooltip"&&e!=""?(i||(i=this._makeTooltipElement(t)),i.innerHTML!=e&&(i.innerHTML=e),i.setAttribute("aria-hidden",t.isVisibleDeep()?"false":"true")):i&&(i.remove(),t.removePrivate("tooltipElement"))}_makeTooltipElement(t){const e=this._tooltipElementContainer,i=document.createElement("div");return i.style.position="absolute",i.style.width="1px",i.style.height="1px",i.style.overflow="hidden",i.style.clip="rect(1px, 1px, 1px, 1px)",tt(i,!1),this._decorateFocusElement(t,i),e.append(i),t.setPrivate("tooltipElement",i),i}_removeTooltipElement(t){if(this._a11yD==!0)return;const e=t.getPrivate("tooltipElement");if(e){const i=e.parentElement;i&&i.removeChild(e)}}_invalidateAccessibility(t){if(this._a11yD==!0)return;this._focusElementDirty=!0;const e=t.getPrivate("focusElement");t.get("focusable")?e&&(this._decorateFocusElement(t),this._positionFocusElement(t)):e&&this._removeFocusElement(t)}focused(t){return this._focusedSprite===t}documentPointToRoot(t){const e=this._getRealSize(),i=this._getCalculatedSize(e),s=i.width/e.width,r=i.height/e.height;return{x:(t.x-e.left)*s,y:(t.y-e.top)*r}}rootPointToDocument(t){const e=this._getRealSize(),i=this._getCalculatedSize(e),s=i.width/e.width,r=i.height/e.height;return{x:t.x/s+e.left,y:t.y/r+e.top}}addDisposer(t){return this._disposers.push(t),t}_updateComputedStyles(){const t=window.getComputedStyle(this.dom),e=this._fontHash,i=Ve(t).flatMap(s=>{var r;return typeof s=="string"&&s.startsWith("font")?[(r=t[s])===null||r===void 0?void 0:r.toString()]:[]});if(e.length!==i.length)return this._fontHash=i,!0;for(let s=0;s<e.length;s++)if(e[s]!==i[s])return this._fontHash=i,!0;return!1}_checkComputedStyles(){this._updateComputedStyles()&&this._invalidateLabelBounds(this.container)}_invalidateLabelBounds(t){t instanceof $?t.children.each(e=>{this._invalidateLabelBounds(e)}):t instanceof We&&t.markDirtyBounds()}_hasLicense(){for(let t=0;t<Z.licenses.length;t++)if(Z.licenses[t].match(/^AM5C.{5,}/i))return!0;return!1}_licenseApplied(){this._logo&&this._logo.set("forceHidden",!0)}get debugGhostView(){return this._renderer.debugGhostView}set debugGhostView(t){this._renderer.debugGhostView=t}set tapToActivate(t){this._renderer.tapToActivate=t}get tapToActivate(){return this._renderer.tapToActivate}set tapToActivateTimeout(t){this._renderer.tapToActivateTimeout=t}get tapToActivateTimeout(){return this._renderer.tapToActivateTimeout}_makeHTMLElement(t){const e=this._htmlElementContainer,i=document.createElement("div");t.setPrivate("htmlElement",i);let s=!1,r;t._walkParents(a=>{if(a.get("verticalScrollbar"))return s=!0,r=a,!1});let n;return s&&(n=document.createElement("div"),t.setPrivate("htmlElementWrapper",n),t.setPrivate("wrapperContainer",r),n.style.position="absolute",n.style.overflow="hidden",n.style.boxSizing="border-box",n.style.top="0px",n.style.left="0px",n.style.width="100%",n.style.height="100%",r.events.on("boundschanged",()=>{this._positionHTMLElement(t)})),i.style.position="absolute",i.style.overflow="auto",i.style.boxSizing="border-box",tt(i,t.get("interactive",!1)),t.events.isEnabled("click")&&(tt(i,!0),this._disposers.push(I(i,"click",a=>{const o=this._renderer.getEvent(a);t.events.dispatch("click",{type:"click",originalEvent:o.event,point:o.point,simulated:!1,target:t})}))),this._positionHTMLElement(t),s?(n.append(i),e.append(n)):e.append(i),Pt(this._htmlEnabledContainers,t),i}_positionHTMLElements(){x(this._htmlEnabledContainers,t=>{this._positionHTMLElement(t)})}_positionHTMLElement(t){const e=t.getPrivate("htmlElementWrapper");if(e){const s=t.getPrivate("wrapperContainer");if(s){const r=s.globalBounds();e.style.clipPath="rect("+r.top+"px "+r.right+"px "+r.bottom+"px "+r.left+"px)"}}const i=t.getPrivate("htmlElement");
3if(i){x(["paddingTop","paddingRight","paddingBottom","paddingLeft","minWidth","minHeight","maxWidth","maxHeight"],v=>{const g=t.get(v);g?i.style[v]=g+"px":i.style[v]=""}),x(["fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration"],v=>{const g=t.get(v);g?v=="fontSize"&&!bt(g)?i.style[v]=g+"px":i.style[v]=g+"":i.style[v]=""});const n=t.compositeScale()||1,a=t.compositeRotation()||0;i.style.transform="",i.style.transformOrigin="";const o=t.compositeOpacity();setTimeout(()=>{i.style.opacity=o+""},10);const u=t.isVisibleDeep();u&&(i.style.display="block");let p={x:t.x()+t.get("dx",0),y:t.y()+t.get("dy",0)};t.parent&&(p=t.parent.toGlobal(p)),i.style.top=p.y+"px",i.style.left=p.x+"px";const f=t.get("width"),_=t.get("height");let h=0,c=0;if(f&&(h=t.width()),_&&(c=t.height()),!f||!_){i.style.position="fixed",i.style.width="",i.style.height="";const v=i.getBoundingClientRect();i.style.position="absolute",f||(h=v.width),_||(c=v.height);let g=h/n,w=c/n,T=t.get("centerX",0),E=t.get("centerY",0),k=0,O=0,M=0,C=0;T instanceof Et?(k=-T.value*g,O=(1-T.value)*g):(k=-T,O=g-T),E instanceof Et?(M=-E.value*w,C=(1-E.value)*w):(M=-E,C=w-E),t._localBounds={left:k,right:O,top:M,bottom:C};let L=t._adjustedLocalBounds,B=t._display.getAdjustedBounds(t._localBounds);t._adjustedLocalBounds=B,(L.left!==B.left||L.right!==B.right||L.top!==B.top||L.bottom!==B.bottom)&&t.markDirtyBounds()}h>0&&(i.style.minWidth=h+"px"),c>0&&(i.style.minHeight=c+"px"),(!u||o==0)&&(i.style.display="none");const y=t.get("centerX",0),l=qt(y)?y.percent+"%":y+"px",d=t.get("centerY",0),b=qt(d)?d.percent+"%":d+"px";(y||d)&&(i.style.transform="translate(-"+l+", -"+b+")"+i.style.transform),n!=1&&(i.style.transform+="scale("+n+")"),a!=0&&(i.style.transform+=" rotate("+a+"deg)"),i.style.transform!=""&&(i.style.transformOrigin=l+" "+b)}}_setHTMLContent(t,e){let i=t.getPrivate("htmlElement");i||(i=this._makeHTMLElement(t),this.autoResize||this.resize()),i.innerHTML!=e&&(i.innerHTML=e)}_removeHTMLContent(t){const e=t.getPrivate("htmlElementWrapper"),i=t.getPrivate("htmlElement");e?(this._htmlElementContainer.removeChild(e),t.removePrivate("htmlElement"),t.removePrivate("htmlElementWrapper"),t.removePrivate("wrapperContainer")):i&&(this._htmlElementContainer.removeChild(i),t.removePrivate("htmlElement"),t.removePrivate("wrapperContainer")),ot(this._htmlEnabledContainers,t)}}Ke("AM5C241025748");const ie="en-US",Ft=new Map([["ar",()=>S(()=>import("./ar-DRGxsFPd.js"),[])],["bg-BG",()=>S(()=>import("./bg_BG-DSjzRbhb.js"),[])],["bs-BA",()=>S(()=>import("./bs_BA-BcTTqAVg.js"),[])],["ca-ES",()=>S(()=>import("./ca_ES-9p2rq1uB.js"),[])],["cs-CZ",()=>S(()=>import("./cs_CZ-Cec7kb4K.js"),[])],["da-DK",()=>S(()=>import("./da_DK-BJb0freH.js"),[])],["de-DE",()=>S(()=>import("./de_DE-3uXH-2SI.js"),[])],["de-CH",()=>S(()=>import("./de_CH-Bu25K0_x.js"),[])],["el-GR",()=>S(()=>import("./el_GR-DoX8Viug.js"),[])],["en-US",()=>S(()=>import("./en_US-D_jPK60n.js"),[])],["en-CA",()=>S(()=>import("./en_CA-D_jPK60n.js"),[])],["es-ES",()=>S(()=>import("./es_ES-Ch8r7lpC.js"),[])],["et-EE",()=>S(()=>import("./et_EE-DTi7kQLO.js"),[])],["fi-FI",()=>S(()=>import("./fi_FI-Cc_FqKIY.js"),[])],["fr-FR",()=>S(()=>import("./fr_FR-AnazCAkV.js"),[])],["he-IL",()=>S(()=>import("./he_IL-C58JoD6Y.js"),[])],["hr-HR",()=>S(()=>import("./hr_HR-FbwGJpNz.js"),[])],["hu-HU",()=>S(()=>import("./hu_HU-C36AwjWr.js"),[])],["id-ID",()=>S(()=>import("./id_ID-B14cKgzX.js"),[])],["it-IT",()=>S(()=>import("./it_IT-DlutT8tL.js"),[])],["ja-JP",()=>S(()=>import("./ja_JP-DUfXph7X.js"),[])],["ko-KR",()=>S(()=>import("./ko_KR-DVygVYGA.js"),[])],["lt-LT",()=>S(()=>import("./lt_LT-UOwN4ET2.js"),[])],["lv-LV",()=>S(()=>import("./lv_LV-BtYNm4j3.js"),[])],["no-NO",()=>S(()=>import("./nb_NO-mvBDEhzI.js"),[])],["nb-NO",()=>S(()=>import("./nb_NO-mvBDEhzI.js"),[])],["nl-NL",()=>S(()=>import("./nl_NL-DxsesxaX.js"),[])],["pl-PL",()=>S(()=>import("./pl_PL-gWItRzVB.js"),[])],["pt-BR",()=>S(()=>import("./pt_BR-DdC6woyk.js"),[])],["pt-PT",()=>S(()=>import("./pt_PT-BvJnDKcQ.js"),[])],["ro-RO",()=>S(()=>import("./ro_RO-DrlSrNnx.js"),[])],["ru-RU",()=>S(()=>import("./ru_RU-D4kchjiF.js"),[])],["sk-SK",()=>S(()=>import("./sk_SK-BP_pAK7I.js"),[])],["sl-SL",()=>S(()=>import("./sl_SL-BVP8sl4z.js"),[])],["sr-RS",()=>S(()=>import("./sr_RS-CmIq3gv3.js"),[])],["sv-SE",()=>S(()=>import("./sv_SE-CuJJp2UT.js"),[])],["th-TH",()=>S(()=>import("./th_TH-BylFXhL2.js"),[])],["tr-TR",()=>S(()=>import("./tr_TR-D4tFTbu_.js"),[])],["uk-UA",()=>S(()=>import("./uk_UA-DXvSZPAC.js"),[])],["vi-VN",()=>S(()=>import("./vi_VN-_hL0xX5N.js"),[])],["zh-CN",()=>S(()=>import("./zh_Hans-b187w_sR.js"),[])],["zh-HK",()=>S(()=>import("./zh_Hant-PNbNe14C.js"),[])],["zh-TW",()=>S(()=>import("./zh_Hant-PNbNe14C.js"),[])]]);function Hi(m){const t=Yt(m);if(!t)return null;for(const e of Ft.keys())if(Yt(e)===t)return e;return null}function Yi(m){return m?Ft.has(m)?m:Hi(m)??ie:ie}async function Ni(m,t=de()){const e=It.new(m);return e.locale=(await Ft.get(Yi(t))()).default,e}export{Ni as createRoot};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.