/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/chart2music@1.20.0/dist/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
var c2mChart=function(){"use strict";var t;!function(t){t.Annotation="Annotation"}(t||(t={}));const e=130.8128,i=195.9977,r=2*e,a=2*i,n=2*a;class o{constructor(t){this._audioContext=t,this._masterCompressor=t.createDynamicsCompressor(),this._masterCompressor.connect(this._audioContext.destination),this._masterCompressor.threshold.value=-50,this._masterCompressor.knee.value=40,this._masterCompressor.ratio.value=12,this._masterCompressor.attack.value=0,this._masterCompressor.release.value=.25,this._masterGain=this._audioContext.createGain(),this._masterGain.gain.value=.5,this._masterCompressor.connect(this._masterGain),this._masterGain.connect(this._audioContext.destination)}get masterGain(){return this._masterGain.gain.value}set masterGain(t){this._masterGain.gain.value=t}playDataPoint(t,e,i=.2){this._playDataPoint(t,e,i,this._masterCompressor)}playNotification(e,i=0,r=.15){e===t.Annotation&&this._playAnnotation(i,r)}_playDataPoint(t,e,i,r){const a=this._audioContext.currentTime,n=this._audioContext.createOscillator();n.frequency.value=t,n.start();const{carrier:o,amp:s,modulator:l,filter:u,adsr:h}=function(t,e,i,r){const a=t.createOscillator(),n=t.createGain(),o=t.createOscillator(),s=t.createBiquadFilter(),l=t.createGain();return a.frequency.value=e,o.frequency.value=i,n.gain.value=r,o.connect(n),n.connect(a.frequency),a.connect(s),s.connect(l),a.start(),o.start(),{carrier:a,amp:n,modulator:o,filter:s,adsr:l}}(this._audioContext,.5*t,3*t,2*t);o.type="triangle",h.gain.setValueCurveAtTime([.2,.1],a,.75*i),u.frequency.value=t,u.type="lowpass";const c=this._audioContext.createGain();c.gain.setValueCurveAtTime([.5,1,.5,.5,.5,.1,1e-4],a,i);const p=this._audioContext.createStereoPanner();p.pan.value=e,n.connect(c),h.connect(c),c.connect(p),p.connect(r),setTimeout((()=>{p.disconnect(),c.disconnect(),h.disconnect(),n.stop(),n.disconnect(),l.stop(),l.disconnect(),o.stop(),o.disconnect(),s.disconnect(),u.disconnect()}),1e3*i*2)}_playAnnotation(t,o){const s=this._audioContext.createStereoPanner();s.pan.value=t;const l=this._audioContext.createGain();l.gain.value=.5,l.connect(s),s.connect(this._masterCompressor),this._playDataPoint(e,0,o/4,l),this._playDataPoint(r,0,o/4,l),setTimeout((()=>{this._playDataPoint(i,0,o/4,l),this._playDataPoint(a,0,o/4,l),this._playDataPoint(n,0,o/4,l)}),1e3*o*.25),setTimeout((()=>{this._playDataPoint(e,0,o/4,l),this._playDataPoint(r,0,o/4,l)}),1e3*o*.5),setTimeout((()=>{this._playDataPoint(i,0,o/4,l),this._playDataPoint(a,0,o/4,l),this._playDataPoint(n,0,o/4,l)}),1e3*o*.75),setTimeout((()=>{l.disconnect()}),1e3*o*2)}}const s=[16.3516,17.32391,18.35405,19.44544,20.60172,21.82676,23.12465,24.49971,25.95654,27.5,29.13524,30.86771,32.7032,34.64783,36.7081,38.89087,41.20344,43.65353,46.2493,48.99943,51.91309,55,58.27047,61.73541,65.40639,69.29566,73.41619,77.78175,82.40689,87.30706,92.49861,97.99886,103.8262,110,116.5409,123.4708,130.8128,138.5913,146.8324,155.5635,164.8138,174.6141,184.9972,195.9977,207.6523,220,233.0819,246.9417,261.6256,277.1826,293.6648,311.127,329.6276,349.2282,369.9944,391.9954,415.3047,440,466.1638,493.8833,523.2511,554.3653,587.3295,622.254,659.2551,698.4565,739.9888,783.9909,830.6094,880,932.3275,987.7666,1046.502,1108.731,1174.659,1244.508,1318.51,1396.913,1479.978,1567.982,1661.219,1760,1864.655,1975.533,2093.005,2217.461,2349.318,2489.016,2637.02,2793.826,2959.955,3135.963,3322.438,3520,3729.31,3951.066,4186.009,4434.922,4698.636,4978.032,5274.041,5587.652,5919.911,6271.927,6644.875,7040,7458.62,7902.133],l=[1e3,250,100,50,25],u=.25,h=t=>`${t.altKey?"Alt+":""}${t.ctrlKey?"Ctrl+":""}${t.shiftKey?"Shift+":""}${t.key}`;class c{constructor(t,e,i){this.modifyHelpDialogText=e,this.modifyHelpDialogKeyboardListing=i,this._handler=t=>{this._handleKeyEvents(t)},this._keyMap={},this._target=t,this._target.addEventListener("keydown",this._handler),this._target.hasAttribute("tabIndex")||this._target.setAttribute("tabIndex","0"),this._dialog=null}cleanup(){this._target.removeEventListener("keydown",this._handler),null!==this._dialog&&document.body.removeChild(this._dialog)}_handleKeyEvents(t){const e=h(t);e in this._keyMap?(this._keyMap[e].callback(),t.preventDefault()):e.toUpperCase()in this._keyMap&&(this._keyMap[e.toUpperCase()].callback(),t.preventDefault())}registerKeyEvent({key:t,callback:e,title:i="",description:r="",force:a=!1,keyDescription:n,caseSensitive:o=!0,order:s=100}){const l=o?t:t.toUpperCase();!a&&l in this._keyMap||(this._keyMap[l]={title:i,description:r,callback:e,keyDescription:n,order:s})}registerKeyEvents(t){t.forEach(((t,e)=>{this.registerKeyEvent({order:e,...t})}))}generateHelpDialog(t,e,i){const r=document.createElement("dialog");r.classList.add("chart2music-dialog"),r.classList.add("chart2music-help-dialog"),r.setAttribute("lang",t);const a=document.createElement("button");a.textContent="X",a.ariaLabel=e("close"),a.style.position="absolute",a.style.top="10px",a.style.right="10px",a.addEventListener("click",(()=>{r.close()})),r.appendChild(a);const n=e("kbmg-title"),o=document.createElement("h1");o.textContent=n,r.setAttribute("aria-live",n),r.appendChild(o);const s=document.createElement("p");s.textContent=this.modifyHelpDialogText(t,e("help-dialog-front-matter")),r.appendChild(s);const l=document.createElement("table"),u=document.createElement("thead"),h=document.createElement("tr");(i.at(0)??[]).forEach((t=>{const e=document.createElement("th");e.setAttribute("scope","col"),e.textContent=t,h.appendChild(e)})),u.appendChild(h),l.appendChild(u);const c=document.createElement("tbody");i.slice(1).forEach((t=>{const e=document.createElement("tr");t.forEach((t=>{const i=document.createElement("td");i.textContent=t,e.appendChild(i)})),c.appendChild(e)})),l.appendChild(c),r.appendChild(l);const p=document.createElement("p");p.appendChild(document.createTextNode(e("help_dialog_footer")));const m=document.createElement("a");return m.setAttribute("href","https://www.chart2music.com/"),m.textContent="www.chart2music.com",p.appendChild(m),p.appendChild(document.createTextNode(".")),r.appendChild(p),r}launchHelpDialog(t,e){const i=["Keyboard Shortcut","Description","Common Alternate Keyboard Shortcut"],r=Object.entries(this._keyMap).sort(((t,e)=>t[1].order<e[1].order?-1:t[1].order>e[1].order?1:0)).map((([t,{title:e,keyDescription:i,description:r}])=>[e,i??t,r]));null===this._dialog&&(this._dialog=this.generateHelpDialog(t,e,this.modifyHelpDialogKeyboardListing(t,i,r)),document.body.appendChild(this._dialog)),this._dialog.showModal(),this._dialog.focus()}}class p{static addAriaAttributes(t,e="assertive"){t.setAttribute("aria-live",e),t.setAttribute("role","status"),t.setAttribute("aria-atomic","true"),t.setAttribute("aria-relevant","additions text")}constructor(t){this._maxNumPaddingCharacters=3,this._numPaddingCharacters=0,this._element=t,this._lastCreatedElement=null}get lastCreatedElement(){return this._lastCreatedElement}clear(){this._element.textContent=""}render(t){const e=this._creatPaddedText(t),i=document.createElement("div");i.textContent=e,i.setAttribute(p.ORIGINAL_TEXT_ATTRIBUTE,t),i.setAttribute("data-created",Date.now().toString()),this.lastCreatedElement&&(this._removeOldElements(),this.lastCreatedElement.style.display="none"),this._element.appendChild(i),this._lastCreatedElement=i}_creatPaddedText(t){let e="";for(let t=0;t<this._numPaddingCharacters;t++)e+=p.PADDING_CHARACTER;return this._numPaddingCharacters=(this._numPaddingCharacters+1)%this._maxNumPaddingCharacters,t+e}_removeOldElements(){const t=Date.now();Array.from(this._element.children).forEach((e=>{const i=Number(e.getAttribute("data-time"));t-i>p.REMOVAL_DELAY&&this._element.removeChild(e)}))}}function m(t){return"object"==typeof t&&"x"in t}function d(t){return m(t)&&"y"in t}function g(t){return m(t)&&"y2"in t}function f(t){return m(t)&&"high"in t&&"low"in t}function y(t){return f(t)&&"open"in t&&"close"in t}function _(t){return f(t)&&"q1"in t&&"q3"in t&&"median"in t}p.PADDING_CHARACTER=" ",p.REMOVAL_DELAY=25,p.ORIGINAL_TEXT_ATTRIBUTE="data-original-text";const b=({point:t,min:e,max:i,bins:r,scale:a})=>"linear"===a?v({point:t,min:e,max:i,bins:r}):x({pointRaw:t,minRaw:e,maxRaw:i,bins:r}),v=({point:t,min:e,max:i,bins:r})=>{const a=(t-e)/(i-e);return Math.floor(r*a)},x=({pointRaw:t,minRaw:e,maxRaw:i,bins:r})=>{const a=Math.log10(t),n=Math.log10(e),o=(a-n)/(Math.log10(i)-n);return Math.floor(r*o)},k=t=>isNaN(t)?0:.98*(2*t-1),A=t=>null!==t,E=({data:t,prop:e,filterGroupIndex:i})=>{let r=t.flat().filter(A);i>=0&&i<t.length&&(r=t.at(i));const a=r.map((t=>{if(d(t)){if("x"===e||"y"===e)return t[e]}else if(g(t)){if("x"===e||"y2"===e)return t[e]}else if(y(t)){if("x"===e)return t.x;if("y"===e)return Math.min(t.high,t.low,t.open,t.close)}else if(f(t)){if("x"===e)return t.x;if("y"===e)return Math.min(t.high,t.low)}return NaN})).filter((t=>!isNaN(t)));return 0===a.length?NaN:Math.min(...a)},w=({data:t,prop:e,filterGroupIndex:i})=>{let r=t.flat().filter(A);i>=0&&i<t.length&&(r=t.at(i));const a=r.map((t=>{if(d(t)){if("x"===e||"y"===e)return t[e]}else if(g(t)){if("x"===e||"y2"===e)return t[e]}else if(y(t)){if("x"===e)return t.x;if("y"===e)return Math.max(t.high,t.low,t.open,t.close)}else if(f(t)){if("x"===e)return t.x;if("y"===e)return Math.max(t.high,t.low)}return NaN})).filter((t=>!isNaN(t)));return 0===a.length?NaN:Math.max(...a)},C=t=>`${t}`,S=({data:t,axisName:e,userAxis:i,filterGroupIndex:r})=>{const a=i?.format??("valueLabels"in i?t=>i.valueLabels[t]:C);return{minimum:i?.minimum??E({data:t,prop:e,filterGroupIndex:r}),maximum:i?.maximum??w({data:t,prop:e,filterGroupIndex:r}),label:i?.label??"",type:i?.type??"linear",format:a,continuous:i.continuous??!1}},T=t=>"number"==typeof t?"number":"object"!=typeof t?"unknown":d(t)?"SimpleDataPoint":g(t)?"AlternativeAxisDataPoint":y(t)?"OHLCDataPoint":_(t)?"BoxDataPoint":f(t)?"HighLowDataPoint":"unknown",I=t=>null===t?null:t.map(((t,e)=>"number"==typeof t?{x:e,y:t}:t)),P=({axis:t,translationCallback:e})=>i=>isNaN(i)?e("missing"):"number"==typeof t.minimum&&i<t.minimum?e("tooLow"):"number"==typeof t.maximum&&i>t.maximum?e("tooHigh"):t.format(i),G={x:"X",y:"Y",y2:"Alternate Y"},H=({axisLetter:t,axis:e,translationCallback:i})=>{const r=["axis","desc"];return"log10"===e.type&&r.push("log"),"x"===t&&e.continuous&&r.push("con"),i(r.join("-"),{letter:G[t],label:e.label??"",min:e.format(e.minimum),max:e.format(e.maximum)})},L=(t,e)=>isNaN(t)||t<e.minimum||t>e.maximum,N=(t,e)=>t.filter((t=>Boolean(t))).join(e);var M=function(t,e){return M=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},M(t,e)};function D(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}M(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var R=function(){return R=Object.assign||function(t){for(var e,i=1,r=arguments.length;i<r;i++)for(var a in e=arguments[i])Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t},R.apply(this,arguments)};function B(t,e,i){if(i||2===arguments.length)for(var r,a=0,n=e.length;a<n;a++)!r&&a in e||(r||(r=Array.prototype.slice.call(e,0,a)),r[a]=e[a]);return t.concat(r||Array.prototype.slice.call(e))}function O(t,e){var i=e&&e.cache?e.cache:Z,r=e&&e.serializer?e.serializer:$;return(e&&e.strategy?e.strategy:j)(t,{cache:i,serializer:r})}function U(t,e,i,r){var a,n=null==(a=r)||"number"==typeof a||"boolean"==typeof a?r:i(r),o=e.get(n);return void 0===o&&(o=t.call(this,r),e.set(n,o)),o}function q(t,e,i){var r=Array.prototype.slice.call(arguments,3),a=i(r),n=e.get(a);return void 0===n&&(n=t.apply(this,r),e.set(a,n)),n}function F(t,e,i,r,a){return i.bind(e,t,r,a)}function j(t,e){return F(t,this,1===t.length?U:q,e.cache.create(),e.serializer)}"function"==typeof SuppressedError&&SuppressedError;var z,V,K,$=function(){return JSON.stringify(arguments)},X=function(){function t(){this.cache=Object.create(null)}return t.prototype.get=function(t){return this.cache[t]},t.prototype.set=function(t,e){this.cache[t]=e},t}(),Z={create:function(){return new X}},W={variadic:function(t,e){return F(t,this,q,e.cache.create(),e.serializer)}};function Y(t){return t.type===V.literal}function Q(t){return t.type===V.argument}function J(t){return t.type===V.number}function tt(t){return t.type===V.date}function et(t){return t.type===V.time}function it(t){return t.type===V.select}function rt(t){return t.type===V.plural}function at(t){return t.type===V.pound}function nt(t){return t.type===V.tag}function ot(t){return!(!t||"object"!=typeof t||t.type!==K.number)}function st(t){return!(!t||"object"!=typeof t||t.type!==K.dateTime)}!function(t){t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(z||(z={})),function(t){t[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag"}(V||(V={})),function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"}(K||(K={}));var lt=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ut=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function ht(t){var e={};return t.replace(ut,(function(t){var i=t.length;switch(t[0]){case"G":e.era=4===i?"long":5===i?"narrow":"short";break;case"y":e.year=2===i?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":e.month=["numeric","2-digit","short","long","narrow"][i-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":e.day=["numeric","2-digit"][i-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":e.weekday=4===i?"long":5===i?"narrow":"short";break;case"e":if(i<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][i-4];break;case"c":if(i<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][i-4];break;case"a":e.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":e.hourCycle="h12",e.hour=["numeric","2-digit"][i-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][i-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][i-1];break;case"k":e.hourCycle="h24",e.hour=["numeric","2-digit"][i-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":e.minute=["numeric","2-digit"][i-1];break;case"s":e.second=["numeric","2-digit"][i-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":e.timeZoneName=i<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),e}var ct=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;var pt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,mt=/^(@+)?(\+|#+)?[rs]?$/g,dt=/(\*)(0+)|(#+)(0+)|(0+)/g,gt=/^(0+)$/;function ft(t){var e={};return"r"===t[t.length-1]?e.roundingPriority="morePrecision":"s"===t[t.length-1]&&(e.roundingPriority="lessPrecision"),t.replace(mt,(function(t,i,r){return"string"!=typeof r?(e.minimumSignificantDigits=i.length,e.maximumSignificantDigits=i.length):"+"===r?e.minimumSignificantDigits=i.length:"#"===i[0]?e.maximumSignificantDigits=i.length:(e.minimumSignificantDigits=i.length,e.maximumSignificantDigits=i.length+("string"==typeof r?r.length:0)),""})),e}function yt(t){switch(t){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function _t(t){var e;if("E"===t[0]&&"E"===t[1]?(e={notation:"engineering"},t=t.slice(2)):"E"===t[0]&&(e={notation:"scientific"},t=t.slice(1)),e){var i=t.slice(0,2);if("+!"===i?(e.signDisplay="always",t=t.slice(2)):"+?"===i&&(e.signDisplay="exceptZero",t=t.slice(2)),!gt.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}function bt(t){var e=yt(t);return e||{}}function vt(t){for(var e={},i=0,r=t;i<r.length;i++){var a=r[i];switch(a.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=a.options[0];continue;case"group-off":case",_":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":case"unit":e.style="unit",e.unit=a.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":case"KK":e.notation="compact",e.compactDisplay="long";continue;case"scientific":e=R(R(R({},e),{notation:"scientific"}),a.options.reduce((function(t,e){return R(R({},t),bt(e))}),{}));continue;case"engineering":e=R(R(R({},e),{notation:"engineering"}),a.options.reduce((function(t,e){return R(R({},t),bt(e))}),{}));continue;case"notation-simple":e.notation="standard";continue;case"unit-width-narrow":e.currencyDisplay="narrowSymbol",e.unitDisplay="narrow";continue;case"unit-width-short":e.currencyDisplay="code",e.unitDisplay="short";continue;case"unit-width-full-name":e.currencyDisplay="name",e.unitDisplay="long";continue;case"unit-width-iso-code":e.currencyDisplay="symbol";continue;case"scale":e.scale=parseFloat(a.options[0]);continue;case"rounding-mode-floor":e.roundingMode="floor";continue;case"rounding-mode-ceiling":e.roundingMode="ceil";continue;case"rounding-mode-down":e.roundingMode="trunc";continue;case"rounding-mode-up":e.roundingMode="expand";continue;case"rounding-mode-half-even":e.roundingMode="halfEven";continue;case"rounding-mode-half-down":e.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":e.roundingMode="halfExpand";continue;case"integer-width":if(a.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");a.options[0].replace(dt,(function(t,i,r,a,n,o){if(i)e.minimumIntegerDigits=r.length;else{if(a&&n)throw new Error("We currently do not support maximum integer digits");if(o)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(gt.test(a.stem))e.minimumIntegerDigits=a.stem.length;else if(pt.test(a.stem)){if(a.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");a.stem.replace(pt,(function(t,i,r,a,n,o){return"*"===r?e.minimumFractionDigits=i.length:a&&"#"===a[0]?e.maximumFractionDigits=a.length:n&&o?(e.minimumFractionDigits=n.length,e.maximumFractionDigits=n.length+o.length):(e.minimumFractionDigits=i.length,e.maximumFractionDigits=i.length),""}));var n=a.options[0];"w"===n?e=R(R({},e),{trailingZeroDisplay:"stripIfInteger"}):n&&(e=R(R({},e),ft(n)))}else if(mt.test(a.stem))e=R(R({},e),ft(a.stem));else{var o=yt(a.stem);o&&(e=R(R({},e),o));var s=_t(a.stem);s&&(e=R(R({},e),s))}}return e}var xt,kt={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function At(t){var e=t.hourCycle;if(void 0===e&&t.hourCycles&&t.hourCycles.length&&(e=t.hourCycles[0]),e)switch(e){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var i,r=t.language;return"root"!==r&&(i=t.maximize().region),(kt[i||""]||kt[r||""]||kt["".concat(r,"-001")]||kt["001"])[0]}var Et=new RegExp("^".concat(lt.source,"*")),wt=new RegExp("".concat(lt.source,"*$"));function Ct(t,e){return{start:t,end:e}}var St=!!String.prototype.startsWith&&"_a".startsWith("a",1),Tt=!!String.fromCodePoint,It=!!Object.fromEntries,Pt=!!String.prototype.codePointAt,Gt=!!String.prototype.trimStart,Ht=!!String.prototype.trimEnd,Lt=!!Number.isSafeInteger?Number.isSafeInteger:function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},Nt=!0;try{Nt="a"===(null===(xt=Ft("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===xt?void 0:xt[0])}catch(t){Nt=!1}var Mt,Dt=St?function(t,e,i){return t.startsWith(e,i)}:function(t,e,i){return t.slice(i,i+e.length)===e},Rt=Tt?String.fromCodePoint:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var i,r="",a=t.length,n=0;a>n;){if((i=t[n++])>1114111)throw RangeError(i+" is not a valid code point");r+=i<65536?String.fromCharCode(i):String.fromCharCode(55296+((i-=65536)>>10),i%1024+56320)}return r},Bt=It?Object.fromEntries:function(t){for(var e={},i=0,r=t;i<r.length;i++){var a=r[i],n=a[0],o=a[1];e[n]=o}return e},Ot=Pt?function(t,e){return t.codePointAt(e)}:function(t,e){var i=t.length;if(!(e<0||e>=i)){var r,a=t.charCodeAt(e);return a<55296||a>56319||e+1===i||(r=t.charCodeAt(e+1))<56320||r>57343?a:r-56320+(a-55296<<10)+65536}},Ut=Gt?function(t){return t.trimStart()}:function(t){return t.replace(Et,"")},qt=Ht?function(t){return t.trimEnd()}:function(t){return t.replace(wt,"")};function Ft(t,e){return new RegExp(t,e)}if(Nt){var jt=Ft("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Mt=function(t,e){var i;return jt.lastIndex=e,null!==(i=jt.exec(t)[1])&&void 0!==i?i:""}}else Mt=function(t,e){for(var i=[];;){var r=Ot(t,e);if(void 0===r||$t(r)||Xt(r))break;i.push(r),e+=r>=65536?2:1}return Rt.apply(void 0,i)};var zt,Vt=function(){function t(t,e){void 0===e&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.locale=e.locale,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}return t.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(t,e,i){for(var r=[];!this.isEOF();){var a=this.char();if(123===a){if((n=this.parseArgument(t,i)).err)return n;r.push(n.val)}else{if(125===a&&t>0)break;if(35!==a||"plural"!==e&&"selectordinal"!==e){if(60===a&&!this.ignoreTag&&47===this.peek()){if(i)break;return this.error(z.UNMATCHED_CLOSING_TAG,Ct(this.clonePosition(),this.clonePosition()))}if(60===a&&!this.ignoreTag&&Kt(this.peek()||0)){if((n=this.parseTag(t,e)).err)return n;r.push(n.val)}else{var n;if((n=this.parseLiteral(t,e)).err)return n;r.push(n.val)}}else{var o=this.clonePosition();this.bump(),r.push({type:V.pound,location:Ct(o,this.clonePosition())})}}}return{val:r,err:null}},t.prototype.parseTag=function(t,e){var i=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:V.literal,value:"<".concat(r,"/>"),location:Ct(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var a=this.parseMessage(t+1,e,!0);if(a.err)return a;var n=a.val,o=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Kt(this.char()))return this.error(z.INVALID_TAG,Ct(o,this.clonePosition()));var s=this.clonePosition();return r!==this.parseTagName()?this.error(z.UNMATCHED_CLOSING_TAG,Ct(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:V.tag,value:r,children:n,location:Ct(i,this.clonePosition())},err:null}:this.error(z.INVALID_TAG,Ct(o,this.clonePosition())))}return this.error(z.UNCLOSED_TAG,Ct(i,this.clonePosition()))}return this.error(z.INVALID_TAG,Ct(i,this.clonePosition()))},t.prototype.parseTagName=function(){var t,e=this.offset();for(this.bump();!this.isEOF()&&(45===(t=this.char())||46===t||t>=48&&t<=57||95===t||t>=97&&t<=122||t>=65&&t<=90||183==t||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039);)this.bump();return this.message.slice(e,this.offset())},t.prototype.parseLiteral=function(t,e){for(var i=this.clonePosition(),r="";;){var a=this.tryParseQuote(e);if(a)r+=a;else{var n=this.tryParseUnquoted(t,e);if(n)r+=n;else{var o=this.tryParseLeftAngleBracket();if(!o)break;r+=o}}}var s=Ct(i,this.clonePosition());return{val:{type:V.literal,value:r,location:s},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Kt(t=this.peek()||0)||47===t)?null:(this.bump(),"<");var t},t.prototype.tryParseQuote=function(t){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===t||"selectordinal"===t)break;return null;default:return null}this.bump();var e=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(39===i){if(39!==this.peek()){this.bump();break}e.push(39),this.bump()}else e.push(i);this.bump()}return Rt.apply(void 0,e)},t.prototype.tryParseUnquoted=function(t,e){if(this.isEOF())return null;var i=this.char();return 60===i||123===i||35===i&&("plural"===e||"selectordinal"===e)||125===i&&t>0?null:(this.bump(),Rt(i))},t.prototype.parseArgument=function(t,e){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(z.EXPECT_ARGUMENT_CLOSING_BRACE,Ct(i,this.clonePosition()));if(125===this.char())return this.bump(),this.error(z.EMPTY_ARGUMENT,Ct(i,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(z.MALFORMED_ARGUMENT,Ct(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(z.EXPECT_ARGUMENT_CLOSING_BRACE,Ct(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:V.argument,value:r,location:Ct(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(z.EXPECT_ARGUMENT_CLOSING_BRACE,Ct(i,this.clonePosition())):this.parseArgumentOptions(t,e,r,i);default:return this.error(z.MALFORMED_ARGUMENT,Ct(i,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),i=Mt(this.message,e),r=e+i.length;return this.bumpTo(r),{value:i,location:Ct(t,this.clonePosition())}},t.prototype.parseArgumentOptions=function(t,e,i,r){var a,n=this.clonePosition(),o=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(o){case"":return this.error(z.EXPECT_ARGUMENT_TYPE,Ct(n,s));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((y=this.parseSimpleArgStyleIfPossible()).err)return y;if(0===(m=qt(y.val)).length)return this.error(z.EXPECT_ARGUMENT_STYLE,Ct(this.clonePosition(),this.clonePosition()));l={style:m,styleLocation:Ct(u,this.clonePosition())}}if((_=this.tryParseArgumentClose(r)).err)return _;var h=Ct(r,this.clonePosition());if(l&&Dt(null==l?void 0:l.style,"::",0)){var c=Ut(l.style.slice(2));if("number"===o)return(y=this.parseNumberSkeletonFromString(c,l.styleLocation)).err?y:{val:{type:V.number,value:i,location:h,style:y.val},err:null};if(0===c.length)return this.error(z.EXPECT_DATE_TIME_SKELETON,h);var p=c;this.locale&&(p=function(t,e){for(var i="",r=0;r<t.length;r++){var a=t.charAt(r);if("j"===a){for(var n=0;r+1<t.length&&t.charAt(r+1)===a;)n++,r++;var o=1+(1&n),s=n<2?1:3+(n>>1),l=At(e);for("H"!=l&&"k"!=l||(s=0);s-- >0;)i+="a";for(;o-- >0;)i=l+i}else i+="J"===a?"H":a}return i}(c,this.locale));var m={type:K.dateTime,pattern:p,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?ht(p):{}};return{val:{type:"date"===o?V.date:V.time,value:i,location:h,style:m},err:null}}return{val:{type:"number"===o?V.number:"date"===o?V.date:V.time,value:i,location:h,style:null!==(a=null==l?void 0:l.style)&&void 0!==a?a:null},err:null};case"plural":case"selectordinal":case"select":var d=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(z.EXPECT_SELECT_ARGUMENT_OPTIONS,Ct(d,R({},d)));this.bumpSpace();var g=this.parseIdentifierIfPossible(),f=0;if("select"!==o&&"offset"===g.value){if(!this.bumpIf(":"))return this.error(z.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ct(this.clonePosition(),this.clonePosition()));var y;if(this.bumpSpace(),(y=this.tryParseDecimalInteger(z.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,z.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return y;this.bumpSpace(),g=this.parseIdentifierIfPossible(),f=y.val}var _,b=this.tryParsePluralOrSelectOptions(t,o,e,g);if(b.err)return b;if((_=this.tryParseArgumentClose(r)).err)return _;var v=Ct(r,this.clonePosition());return"select"===o?{val:{type:V.select,value:i,options:Bt(b.val),location:v},err:null}:{val:{type:V.plural,value:i,options:Bt(b.val),offset:f,pluralType:"plural"===o?"cardinal":"ordinal",location:v},err:null};default:return this.error(z.INVALID_ARGUMENT_TYPE,Ct(n,s))}},t.prototype.tryParseArgumentClose=function(t){return this.isEOF()||125!==this.char()?this.error(z.EXPECT_ARGUMENT_CLOSING_BRACE,Ct(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,e=this.clonePosition();!this.isEOF();){switch(this.char()){case 39:this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(z.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Ct(i,this.clonePosition()));this.bump();break;case 123:t+=1,this.bump();break;case 125:if(!(t>0))return{val:this.message.slice(e.offset,this.offset()),err:null};t-=1;break;default:this.bump()}}return{val:this.message.slice(e.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(t,e){var i=[];try{i=function(t){if(0===t.length)throw new Error("Number skeleton cannot be empty");for(var e=[],i=0,r=t.split(ct).filter((function(t){return t.length>0}));i<r.length;i++){var a=r[i].split("/");if(0===a.length)throw new Error("Invalid number skeleton");for(var n=a[0],o=a.slice(1),s=0,l=o;s<l.length;s++)if(0===l[s].length)throw new Error("Invalid number skeleton");e.push({stem:n,options:o})}return e}(t)}catch(t){return this.error(z.INVALID_NUMBER_SKELETON,e)}return{val:{type:K.number,tokens:i,location:e,parsedOptions:this.shouldParseSkeletons?vt(i):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(t,e,i,r){for(var a,n=!1,o=[],s=new Set,l=r.value,u=r.location;;){if(0===l.length){var h=this.clonePosition();if("select"===e||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(z.EXPECT_PLURAL_ARGUMENT_SELECTOR,z.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;u=Ct(h,this.clonePosition()),l=this.message.slice(h.offset,this.offset())}if(s.has(l))return this.error("select"===e?z.DUPLICATE_SELECT_ARGUMENT_SELECTOR:z.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===l&&(n=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?z.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:z.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Ct(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(t+1,e,i);if(m.err)return m;var d=this.tryParseArgumentClose(p);if(d.err)return d;o.push([l,{value:m.val,location:Ct(p,this.clonePosition())}]),s.add(l),this.bumpSpace(),l=(a=this.parseIdentifierIfPossible()).value,u=a.location}return 0===o.length?this.error("select"===e?z.EXPECT_SELECT_ARGUMENT_SELECTOR:z.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ct(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!n?this.error(z.MISSING_OTHER_CLAUSE,Ct(this.clonePosition(),this.clonePosition())):{val:o,err:null}},t.prototype.tryParseDecimalInteger=function(t,e){var i=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var a=!1,n=0;!this.isEOF();){var o=this.char();if(!(o>=48&&o<=57))break;a=!0,n=10*n+(o-48),this.bump()}var s=Ct(r,this.clonePosition());return a?Lt(n*=i)?{val:n,err:null}:this.error(e,s):this.error(t,s)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=Ot(this.message,t);if(void 0===e)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return e},t.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},t.prototype.bump=function(){if(!this.isEOF()){var t=this.char();10===t?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},t.prototype.bumpIf=function(t){if(Dt(this.message,t,this.offset())){for(var e=0;e<t.length;e++)this.bump();return!0}return!1},t.prototype.bumpUntil=function(t){var e=this.offset(),i=this.message.indexOf(t,e);return i>=0?(this.bumpTo(i),!0):(this.bumpTo(this.message.length),!1)},t.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var e=this.offset();if(e===t)break;if(e>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&$t(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),i=this.message.charCodeAt(e+(t>=65536?2:1));return null!=i?i:null},t}();function Kt(t){return t>=97&&t<=122||t>=65&&t<=90}function $t(t){return t>=9&&t<=13||32===t||133===t||t>=8206&&t<=8207||8232===t||8233===t}function Xt(t){return t>=33&&t<=35||36===t||t>=37&&t<=39||40===t||41===t||42===t||43===t||44===t||45===t||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||91===t||92===t||93===t||94===t||96===t||123===t||124===t||125===t||126===t||161===t||t>=162&&t<=165||166===t||167===t||169===t||171===t||172===t||174===t||176===t||177===t||182===t||187===t||191===t||215===t||247===t||t>=8208&&t<=8213||t>=8214&&t<=8215||8216===t||8217===t||8218===t||t>=8219&&t<=8220||8221===t||8222===t||8223===t||t>=8224&&t<=8231||t>=8240&&t<=8248||8249===t||8250===t||t>=8251&&t<=8254||t>=8257&&t<=8259||8260===t||8261===t||8262===t||t>=8263&&t<=8273||8274===t||8275===t||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||8608===t||t>=8609&&t<=8610||8611===t||t>=8612&&t<=8613||8614===t||t>=8615&&t<=8621||8622===t||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||8658===t||8659===t||8660===t||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||8968===t||8969===t||8970===t||8971===t||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||9001===t||9002===t||t>=9003&&t<=9083||9084===t||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||9655===t||t>=9656&&t<=9664||9665===t||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||9839===t||t>=9840&&t<=10087||10088===t||10089===t||10090===t||10091===t||10092===t||10093===t||10094===t||10095===t||10096===t||10097===t||10098===t||10099===t||10100===t||10101===t||t>=10132&&t<=10175||t>=10176&&t<=10180||10181===t||10182===t||t>=10183&&t<=10213||10214===t||10215===t||10216===t||10217===t||10218===t||10219===t||10220===t||10221===t||10222===t||10223===t||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||10627===t||10628===t||10629===t||10630===t||10631===t||10632===t||10633===t||10634===t||10635===t||10636===t||10637===t||10638===t||10639===t||10640===t||10641===t||10642===t||10643===t||10644===t||10645===t||10646===t||10647===t||10648===t||t>=10649&&t<=10711||10712===t||10713===t||10714===t||10715===t||t>=10716&&t<=10747||10748===t||10749===t||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||11158===t||t>=11159&&t<=11263||t>=11776&&t<=11777||11778===t||11779===t||11780===t||11781===t||t>=11782&&t<=11784||11785===t||11786===t||11787===t||11788===t||11789===t||t>=11790&&t<=11798||11799===t||t>=11800&&t<=11801||11802===t||11803===t||11804===t||11805===t||t>=11806&&t<=11807||11808===t||11809===t||11810===t||11811===t||11812===t||11813===t||11814===t||11815===t||11816===t||11817===t||t>=11818&&t<=11822||11823===t||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||11840===t||11841===t||11842===t||t>=11843&&t<=11855||t>=11856&&t<=11857||11858===t||t>=11859&&t<=11903||t>=12289&&t<=12291||12296===t||12297===t||12298===t||12299===t||12300===t||12301===t||12302===t||12303===t||12304===t||12305===t||t>=12306&&t<=12307||12308===t||12309===t||12310===t||12311===t||12312===t||12313===t||12314===t||12315===t||12316===t||12317===t||t>=12318&&t<=12319||12320===t||12336===t||64830===t||64831===t||t>=65093&&t<=65094}function Zt(t){t.forEach((function(t){if(delete t.location,it(t)||rt(t))for(var e in t.options)delete t.options[e].location,Zt(t.options[e].value);else J(t)&&ot(t.style)||(tt(t)||et(t))&&st(t.style)?delete t.style.location:nt(t)&&Zt(t.children)}))}function Wt(t,e){void 0===e&&(e={}),e=R({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var i=new Vt(t,e).parse();if(i.err){var r=SyntaxError(z[i.err.kind]);throw r.location=i.err.location,r.originalMessage=i.err.message,r}return(null==e?void 0:e.captureLocation)||Zt(i.val),i.val}!function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"}(zt||(zt={}));var Yt,Qt=function(t){function e(e,i,r){var a=t.call(this,e)||this;return a.code=i,a.originalMessage=r,a}return D(e,t),e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),Jt=function(t){function e(e,i,r,a){return t.call(this,'Invalid values for "'.concat(e,'": "').concat(i,'". Options are "').concat(Object.keys(r).join('", "'),'"'),zt.INVALID_VALUE,a)||this}return D(e,t),e}(Qt),te=function(t){function e(e,i,r){return t.call(this,'Value for "'.concat(e,'" must be of type ').concat(i),zt.INVALID_VALUE,r)||this}return D(e,t),e}(Qt),ee=function(t){function e(e,i){return t.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(i,'"'),zt.MISSING_VALUE,i)||this}return D(e,t),e}(Qt);function ie(t){return"function"==typeof t}function re(t,e,i,r,a,n,o){if(1===t.length&&Y(t[0]))return[{type:Yt.literal,value:t[0].value}];for(var s=[],l=0,u=t;l<u.length;l++){var h=u[l];if(Y(h))s.push({type:Yt.literal,value:h.value});else if(at(h))"number"==typeof n&&s.push({type:Yt.literal,value:i.getNumberFormat(e).format(n)});else{var c=h.value;if(!a||!(c in a))throw new ee(c,o);var p=a[c];if(Q(h))p&&"string"!=typeof p&&"number"!=typeof p||(p="string"==typeof p||"number"==typeof p?String(p):""),s.push({type:"string"==typeof p?Yt.literal:Yt.object,value:p});else if(tt(h)){var m="string"==typeof h.style?r.date[h.style]:st(h.style)?h.style.parsedOptions:void 0;s.push({type:Yt.literal,value:i.getDateTimeFormat(e,m).format(p)})}else if(et(h)){m="string"==typeof h.style?r.time[h.style]:st(h.style)?h.style.parsedOptions:r.time.medium;s.push({type:Yt.literal,value:i.getDateTimeFormat(e,m).format(p)})}else if(J(h)){(m="string"==typeof h.style?r.number[h.style]:ot(h.style)?h.style.parsedOptions:void 0)&&m.scale&&(p*=m.scale||1),s.push({type:Yt.literal,value:i.getNumberFormat(e,m).format(p)})}else{if(nt(h)){var d=h.children,g=h.value,f=a[g];if(!ie(f))throw new te(g,"function",o);var y=f(re(d,e,i,r,a,n).map((function(t){return t.value})));Array.isArray(y)||(y=[y]),s.push.apply(s,y.map((function(t){return{type:"string"==typeof t?Yt.literal:Yt.object,value:t}})))}if(it(h)){if(!(_=h.options[p]||h.options.other))throw new Jt(h.value,p,Object.keys(h.options),o);s.push.apply(s,re(_.value,e,i,r,a))}else if(rt(h)){var _;if(!(_=h.options["=".concat(p)])){if(!Intl.PluralRules)throw new Qt('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',zt.MISSING_INTL_API,o);var b=i.getPluralRules(e,{type:h.pluralType}).select(p-(h.offset||0));_=h.options[b]||h.options.other}if(!_)throw new Jt(h.value,p,Object.keys(h.options),o);s.push.apply(s,re(_.value,e,i,r,a,p-(h.offset||0)))}else;}}}return function(t){return t.length<2?t:t.reduce((function(t,e){var i=t[t.length-1];return i&&i.type===Yt.literal&&e.type===Yt.literal?i.value+=e.value:t.push(e),t}),[])}(s)}function ae(t,e){return e?Object.keys(t).reduce((function(i,r){var a,n;return i[r]=(a=t[r],(n=e[r])?R(R(R({},a||{}),n||{}),Object.keys(a).reduce((function(t,e){return t[e]=R(R({},a[e]),n[e]||{}),t}),{})):a),i}),R({},t)):t}function ne(t){return{create:function(){return{get:function(e){return t[e]},set:function(e,i){t[e]=i}}}}}!function(t){t[t.literal=0]="literal",t[t.object=1]="object"}(Yt||(Yt={}));var oe,se=function(){function t(e,i,r,a){void 0===i&&(i=t.defaultLocale);var n,o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){var e=o.formatToParts(t);if(1===e.length)return e[0].value;var i=e.reduce((function(t,e){return t.length&&e.type===Yt.literal&&"string"==typeof t[t.length-1]?t[t.length-1]+=e.value:t.push(e.value),t}),[]);return i.length<=1?i[0]||"":i},this.formatToParts=function(t){return re(o.ast,o.locales,o.formatters,o.formats,t,void 0,o.message)},this.resolvedOptions=function(){var t;return{locale:(null===(t=o.resolvedLocale)||void 0===t?void 0:t.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=i,this.resolvedLocale=t.resolveLocale(i),"string"==typeof e){if(this.message=e,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=a||{};s.formatters;var l=function(t,e){var i={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(i[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(t);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(t,r[a])&&(i[r[a]]=t[r[a]])}return i}(s,["formatters"]);this.ast=t.__parse(e,R(R({},l),{locale:this.resolvedLocale}))}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=ae(t.formats,r),this.formatters=a&&a.formatters||(void 0===(n=this.formatterCache)&&(n={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:O((function(){for(var t,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return new((t=Intl.NumberFormat).bind.apply(t,B([void 0],e,!1)))}),{cache:ne(n.number),strategy:W.variadic}),getDateTimeFormat:O((function(){for(var t,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return new((t=Intl.DateTimeFormat).bind.apply(t,B([void 0],e,!1)))}),{cache:ne(n.dateTime),strategy:W.variadic}),getPluralRules:O((function(){for(var t,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return new((t=Intl.PluralRules).bind.apply(t,B([void 0],e,!1)))}),{cache:ne(n.pluralRules),strategy:W.variadic})})}return Object.defineProperty(t,"defaultLocale",{get:function(){return t.memoizedDefaultLocale||(t.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),t.memoizedDefaultLocale},enumerable:!1,configurable:!0}),t.memoizedDefaultLocale=null,t.resolveLocale=function(t){if(void 0!==Intl.Locale){var e=Intl.NumberFormat.supportedLocalesOf(t);return e.length>0?new Intl.Locale(e[0]):new Intl.Locale("string"==typeof t?t:t[0])}},t.__parse=Wt,t.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},t}();!function(t){t.FORMAT_ERROR="FORMAT_ERROR",t.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",t.INVALID_CONFIG="INVALID_CONFIG",t.MISSING_DATA="MISSING_DATA",t.MISSING_TRANSLATION="MISSING_TRANSLATION"}(oe||(oe={}));var le=function(t){function e(i,r,a){var n=this,o=a?a instanceof Error?a:new Error(String(a)):void 0;return(n=t.call(this,"[@formatjs/intl Error ".concat(i,"] ").concat(r,"\n").concat(o?"\n".concat(o.message,"\n").concat(o.stack):""))||this).code=i,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(n,e),n}return D(e,t),e}(Error),ue=function(t){function e(e,i){return t.call(this,oe.UNSUPPORTED_FORMATTER,e,i)||this}return D(e,t),e}(le),he=function(t){function e(e,i){return t.call(this,oe.INVALID_CONFIG,e,i)||this}return D(e,t),e}(le),ce=function(t){function e(e,i){return t.call(this,oe.MISSING_DATA,e,i)||this}return D(e,t),e}(le),pe=function(t){function e(e,i,r){var a=t.call(this,oe.FORMAT_ERROR,"".concat(e,"\nLocale: ").concat(i,"\n"),r)||this;return a.locale=i,a}return D(e,t),e}(le),me=function(t){function e(e,i,r,a){var n=t.call(this,"".concat(e,"\nMessageID: ").concat(null==r?void 0:r.id,"\nDefault Message: ").concat(null==r?void 0:r.defaultMessage,"\nDescription: ").concat(null==r?void 0:r.description,"\n"),i,a)||this;return n.descriptor=r,n.locale=i,n}return D(e,t),e}(pe),de=function(t){function e(e,i){var r=t.call(this,oe.MISSING_TRANSLATION,'Missing message: "'.concat(e.id,'" for locale "').concat(i,'", using ').concat(e.defaultMessage?"default message (".concat("string"==typeof e.defaultMessage?e.defaultMessage:e.defaultMessage.map((function(t){var e;return null!==(e=t.value)&&void 0!==e?e:JSON.stringify(t)})).join(),")"):"id"," as fallback."))||this;return r.descriptor=e,r}return D(e,t),e}(le);function ge(t,e,i){return void 0===i&&(i={}),e.reduce((function(e,r){return r in t?e[r]=t[r]:r in i&&(e[r]=i[r]),e}),{})}var fe={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(t){"production"!==process.env.NODE_ENV&&console.error(t)},onWarn:function(t){"production"!==process.env.NODE_ENV&&console.warn(t)}};function ye(t){return{create:function(){return{get:function(e){return t[e]},set:function(e,i){t[e]=i}}}}}function _e(t,e,i,r){var a,n=t&&t[e];if(n&&(a=n[i]),a)return a;r(new ue("No ".concat(e," format named: ").concat(i)))}function be(t,e){return Object.keys(t).reduce((function(i,r){return i[r]=R({timeZone:e},t[r]),i}),{})}function ve(t,e){return Object.keys(R(R({},t),e)).reduce((function(i,r){return i[r]=R(R({},t[r]||{}),e[r]||{}),i}),{})}function xe(t,e){if(!e)return t;var i=se.formats;return R(R(R({},i),t),{date:ve(be(i.date,e),be(t.date||{},e)),time:ve(be(i.time,e),be(t.time||{},e))})}var ke=function(t,e,i,r,a){var n=t.locale,o=t.formats,s=t.messages,l=t.defaultLocale,u=t.defaultFormats,h=t.fallbackOnEmptyString,c=t.onError,p=t.timeZone,m=t.defaultRichTextElements;void 0===i&&(i={id:""});var d=i.id,g=i.defaultMessage;!function(t,e,i){if(void 0===i&&(i=Error),!t)throw new i(e)}(!!d,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.github.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.github.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.github.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var f=String(d),y=s&&Object.prototype.hasOwnProperty.call(s,f)&&s[f];if(Array.isArray(y)&&1===y.length&&y[0].type===V.literal)return y[0].value;if(!r&&y&&"string"==typeof y&&!m)return y.replace(/'\{(.*?)\}'/gi,"{$1}");if(r=R(R({},m),r||{}),o=xe(o,p),u=xe(u,p),!y){if(!1===h&&""===y)return y;if((!g||n&&n.toLowerCase()!==l.toLowerCase())&&c(new de(i,n)),g)try{return e.getMessageFormat(g,l,u,a).format(r)}catch(t){return c(new me('Error formatting default message for: "'.concat(f,'", rendering default message verbatim'),n,i,t)),"string"==typeof g?g:f}return f}try{return e.getMessageFormat(y,n,o,R({formatters:e},a||{})).format(r)}catch(t){c(new me('Error formatting message: "'.concat(f,'", using ').concat(g?"default message":"id"," as fallback."),n,i,t))}if(g)try{return e.getMessageFormat(g,l,u,a).format(r)}catch(t){c(new me('Error formatting the default message for: "'.concat(f,'", rendering message verbatim'),n,i,t))}return"string"==typeof y?y:"string"==typeof g?g:f},Ae=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function Ee(t,e,i,r){var a=t.locale,n=t.formats,o=t.onError,s=t.timeZone;void 0===r&&(r={});var l=r.format,u=R(R({},s&&{timeZone:s}),l&&_e(n,e,l,o)),h=ge(r,Ae,u);return"time"!==e||h.hour||h.minute||h.second||h.timeStyle||h.dateStyle||(h=R(R({},h),{hour:"numeric",minute:"numeric"})),i(a,h)}function we(t,e){for(var i=[],r=2;r<arguments.length;r++)i[r-2]=arguments[r];var a=i[0],n=i[1],o=void 0===n?{}:n,s="string"==typeof a?new Date(a||0):a;try{return Ee(t,"date",e,o).format(s)}catch(e){t.onError(new pe("Error formatting date.",t.locale,e))}return String(s)}function Ce(t,e){for(var i=[],r=2;r<arguments.length;r++)i[r-2]=arguments[r];var a=i[0],n=i[1],o=void 0===n?{}:n,s="string"==typeof a?new Date(a||0):a;try{return Ee(t,"time",e,o).format(s)}catch(e){t.onError(new pe("Error formatting time.",t.locale,e))}return String(s)}function Se(t,e){for(var i=[],r=2;r<arguments.length;r++)i[r-2]=arguments[r];var a=i[0],n=i[1],o=i[2],s=void 0===o?{}:o,l="string"==typeof a?new Date(a||0):a,u="string"==typeof n?new Date(n||0):n;try{return Ee(t,"dateTimeRange",e,s).formatRange(l,u)}catch(e){t.onError(new pe("Error formatting date time range.",t.locale,e))}return String(l)}function Te(t,e){for(var i=[],r=2;r<arguments.length;r++)i[r-2]=arguments[r];var a=i[0],n=i[1],o=void 0===n?{}:n,s="string"==typeof a?new Date(a||0):a;try{return Ee(t,"date",e,o).formatToParts(s)}catch(e){t.onError(new pe("Error formatting date.",t.locale,e))}return[]}function Ie(t,e){for(var i=[],r=2;r<arguments.length;r++)i[r-2]=arguments[r];var a=i[0],n=i[1],o=void 0===n?{}:n,s="string"==typeof a?new Date(a||0):a;try{return Ee(t,"time",e,o).formatToParts(s)}catch(e){t.onError(new pe("Error formatting time.",t.locale,e))}return[]}var Pe=["style","type","fallback","languageDisplay"];function Ge(t,e,i,r){var a=t.locale,n=t.onError;Intl.DisplayNames||n(new Qt('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',zt.MISSING_INTL_API));var o=ge(r,Pe);try{return e(a,o).of(i)}catch(t){n(new pe("Error formatting display name.",a,t))}}var He=["type","style"],Le=Date.now();function Ne(t,e,i,r){void 0===r&&(r={});var a=Me(t,e,i,r).reduce((function(t,e){var i=e.value;return"string"!=typeof i?t.push(i):"string"==typeof t[t.length-1]?t[t.length-1]+=i:t.push(i),t}),[]);return 1===a.length?a[0]:0===a.length?"":a}function Me(t,e,i,r){var a=t.locale,n=t.onError;void 0===r&&(r={}),Intl.ListFormat||n(new Qt('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',zt.MISSING_INTL_API));var o=ge(r,He);try{var s={},l=i.map((function(t,e){if("object"==typeof t){var i=function(t){return"".concat(Le,"_").concat(t,"_").concat(Le)}(e);return s[i]=t,i}return String(t)}));return e(a,o).formatToParts(l).map((function(t){return"literal"===t.type?t:R(R({},t),{value:s[t.value]||t.value})}))}catch(t){n(new pe("Error formatting list.",a,t))}return i}var De=["type"];function Re(t,e,i,r){var a=t.locale,n=t.onError;void 0===r&&(r={}),Intl.PluralRules||n(new Qt('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',zt.MISSING_INTL_API));var o=ge(r,De);try{return e(a,o).select(i)}catch(t){n(new pe("Error formatting plural.",a,t))}return"other"}var Be=["numeric","style"];function Oe(t,e,i,r,a){void 0===a&&(a={}),r||(r="second"),Intl.RelativeTimeFormat||t.onError(new Qt('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',zt.MISSING_INTL_API));try{return function(t,e,i){var r=t.locale,a=t.formats,n=t.onError;void 0===i&&(i={});var o=i.format,s=!!o&&_e(a,"relative",o,n)||{};return e(r,ge(i,Be,s))}(t,e,a).format(i,r)}catch(e){t.onError(new pe("Error formatting relative time.",t.locale,e))}return String(i)}var Ue=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function qe(t,e,i){var r=t.locale,a=t.formats,n=t.onError;void 0===i&&(i={});var o=i.format,s=o&&_e(a,"number",o,n)||{};return e(r,ge(i,Ue,s))}function Fe(t,e,i,r){void 0===r&&(r={});try{return qe(t,e,r).format(i)}catch(e){t.onError(new pe("Error formatting number.",t.locale,e))}return String(i)}function je(t,e,i,r){void 0===r&&(r={});try{return qe(t,e,r).formatToParts(i)}catch(e){t.onError(new pe("Error formatting number.",t.locale,e))}return[]}function ze(t){var e;t.onWarn&&t.defaultRichTextElements&&"string"==typeof((e=t.messages||{})?e[Object.keys(e)[0]]:void 0)&&t.onWarn('[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. \nPlease consider using "@formatjs/cli" to pre-compile your messages for performance.\nFor more details see https://formatjs.github.io/docs/getting-started/message-distribution')}function Ve(t,e){var i=function(t){void 0===t&&(t={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});var e=Intl.RelativeTimeFormat,i=Intl.ListFormat,r=Intl.DisplayNames,a=O((function(){for(var t,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return new((t=Intl.DateTimeFormat).bind.apply(t,B([void 0],e,!1)))}),{cache:ye(t.dateTime),strategy:W.variadic}),n=O((function(){for(var t,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return new((t=Intl.NumberFormat).bind.apply(t,B([void 0],e,!1)))}),{cache:ye(t.number),strategy:W.variadic}),o=O((function(){for(var t,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return new((t=Intl.PluralRules).bind.apply(t,B([void 0],e,!1)))}),{cache:ye(t.pluralRules),strategy:W.variadic});return{getDateTimeFormat:a,getNumberFormat:n,getMessageFormat:O((function(t,e,i,r){return new se(t,e,i,R({formatters:{getNumberFormat:n,getDateTimeFormat:a,getPluralRules:o}},r||{}))}),{cache:ye(t.message),strategy:W.variadic}),getRelativeTimeFormat:O((function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return new(e.bind.apply(e,B([void 0],t,!1)))}),{cache:ye(t.relativeTime),strategy:W.variadic}),getPluralRules:o,getListFormat:O((function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new(i.bind.apply(i,B([void 0],t,!1)))}),{cache:ye(t.list),strategy:W.variadic}),getDisplayNames:O((function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new(r.bind.apply(r,B([void 0],t,!1)))}),{cache:ye(t.displayNames),strategy:W.variadic})}}(e),r=R(R({},fe),t),a=r.locale,n=r.defaultLocale,o=r.onError;return a?!Intl.NumberFormat.supportedLocalesOf(a).length&&o?o(new ce('Missing locale data for locale: "'.concat(a,'" in Intl.NumberFormat. Using default locale: "').concat(n,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(a).length&&o&&o(new ce('Missing locale data for locale: "'.concat(a,'" in Intl.DateTimeFormat. Using default locale: "').concat(n,'" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details'))):(o&&o(new he('"locale" was not configured, using "'.concat(n,'" as fallback. See https://formatjs.github.io/docs/react-intl/api#intlshape for more details'))),r.locale=r.defaultLocale||"en"),ze(r),R(R({},r),{formatters:i,formatNumber:Fe.bind(null,r,i.getNumberFormat),formatNumberToParts:je.bind(null,r,i.getNumberFormat),formatRelativeTime:Oe.bind(null,r,i.getRelativeTimeFormat),formatDate:we.bind(null,r,i.getDateTimeFormat),formatDateToParts:Te.bind(null,r,i.getDateTimeFormat),formatTime:Ce.bind(null,r,i.getDateTimeFormat),formatDateTimeRange:Se.bind(null,r,i.getDateTimeFormat),formatTimeToParts:Ie.bind(null,r,i.getDateTimeFormat),formatPlural:Re.bind(null,r,i.getPluralRules),formatMessage:ke.bind(null,r,i),$t:ke.bind(null,r,i),formatList:Ne.bind(null,r,i.getListFormat),formatListToParts:Me.bind(null,r,i.getListFormat),formatDisplayName:Ge.bind(null,r,i.getDisplayNames)})}const Ke={description:"{title}, Sonified chart","description-untitled":"Sonified chart",updated:"{title} updated","updated-untitled":"Chart updated",missing:"missing",close:"Close",save:"Save",tooLow:"too low",tooHigh:"too high",nodeHasChildren:"has children",instructionArrows:"Use arrow keys to navigate.",instructionHierarchy:"Use Alt + Up and Down to navigate between levels.",instructionLive:"Press M to toggle monitor mode.",instructionHotkeys:"Press H for more hotkeys.","summ-chart":"Sonified chart.","summ-chart-live":"Sonified live chart.","summ-chart-hier":"Sonified hierarchical chart.","summ-chart-group":"Sonified chart with {groupCount, plural,\n        =0 {no groups}\n        one {1 group}\n        other {{groupCount} groups}\n    }.","summ-chart-title":'Sonified chart titled "{title}".',"summ-chart-live-hier":"Sonified live hierarchical chart.","summ-chart-live-group":"Sonified live chart with {groupCount, plural,\n        =0 {no groups}\n        one {1 group}\n        other {{groupCount} groups}\n    }.","summ-chart-live-title":'Sonified live chart titled "{title}".',"summ-chart-hier-group":"Sonified hierarchical chart with {groupCount, plural,\n        =0 {no groups}\n        one {1 group}\n        other {{groupCount} groups}\n    }.","summ-chart-hier-title":'Sonified hierarchical chart titled "{title}".',"summ-chart-group-title":'Sonified chart with {groupCount, plural,\n        =0 {no groups}\n        one {1 group}\n        other {{groupCount} groups}\n    } titled "{title}".',"summ-chart-live-hier-group":"Sonified live hierarchical chart with {groupCount, plural,\n        =0 {no groups}\n        one {1 group}\n        other {{groupCount} groups}\n    }.","summ-chart-live-hier-title":'Sonified live hierarchical chart titled "{title}".',"summ-chart-live-group-title":'Sonified live chart with {groupCount, plural,\n        =0 {no groups}\n        one {1 group}\n        other {{groupCount} groups}\n    } titled" {title}".',"summ-chart-hier-group-title":'Sonified hierarchical chart with {groupCount, plural,\n        =0 {no groups}\n        one {1 group}\n        other {{groupCount} groups}\n    } titled "{title}".',"summ-chart-live-hier-group-title":'Sonified live hierarchical chart with {groupCount, plural,\n        =0 {no groups}\n        one {1 group}\n        other {{groupCount} groups}\n    } titled "{title}".',"axis-desc":'{letter} is "{label}" from {min} to {max}.',"axis-desc-log":'{letter} is "{label}" from {min} to {max} logarithmic.',"axis-desc-con":'{letter} is "{label}" from {min} to {max} continuously.',"axis-desc-log-con":'{letter} is "{label}" from {min} to {max} logarithmic continuously.',"kbr-speed":"Speed, {rate_in_ms}","kbr-not-live":"Not a live chart",monitoring:"Monitoring {switch, select, true {on} false {off} other {unknown}}","group-unknown":'Group titled "{title}" uses an unsupported chart type.',"chart-line":"Line chart.","chart-bar":"Bar chart.","chart-band":"Band chart.","chart-pie":"Pie chart.","chart-candlestick":"Candlestick chart.","chart-histogram":"Histogram chart.","chart-box":"Box chart.","chart-matrix":"Matrix chart.","chart-scatter":"Scatter chart.","chart-treemap":"Treemap chart.","chart-line-labeled":'Line chart showing "{label}".',"chart-bar-labeled":'Bar chart showing "{label}".',"chart-band-labeled":'Band chart showing "{label}".',"chart-pie-labeled":'Pie chart showing "{label}".',"chart-candlestick-labeled":'Candlestick chart showing "{label}".',"chart-histogram-labeled":'Histogram showing "{label}".',"chart-box-labeled":'Box plot showing "{label}".',"chart-matrix-labeled":'Matrix plot showing "{label}".',"chart-scatter-labeled":'Scatter plot showing "{label}".',"chart-treemap-labeled":'Treemap chart showing "{label}".',"stat-all":"All","stat-open":"Open","stat-high":"High","stat-low":"Low","stat-close":"Close","stat-q1":"Q1","stat-median":"Median","stat-q3":"Q3","stat-outlier":"Outlier","point-xy":"{x}, {y}","point-xohlc":"{x}, {open} - {high} - {low} - {close}","point-outlier":"{x}, {y}, {index} of {count}","point-xhl":"{x}, {high} - {low}","point-xhl-outlier":"{x}, {high} - {low}, with {count, plural, \n        =0 {no outliers} \n        one {{count} outlier} \n        other {{count} outliers}\n    }","info-open":"Open info dialog","info-title":"Info","info-notes":"Notes","kbmg-title":"Keyboard Manager","key-point-next":"Move to next point","key-point-prev":"Move to previous point","key-play-fwd":"Play to right edge of chart","key-play-back":"Play to left edge of chart","key-play-cancel":"Stop play","key-group-prev":"Move to previous group","key-stat-prev":"Move to previous statistic","key-group-next":"Move to next group","key-stat-next":"Move to next statistic","key-group-first":"Move to first group","key-group-last":"Move to last group","key-hier-root":"Move to root","key-play-fwd-group":"Play forwards through groups","key-play-back-group":"Play backwards through groups","key-point-first":"Move to left-most point","key-point-last":"Move to right-most point","key-replay":"Replay current point","key-select":"Select item","key-tenth-prev":"Move right by a tenth","key-tenth-next":"Move left by a tenth","key-level-min":"Move to level minimum value","key-level-max":"Move to level maximum value","key-group-min":"Move to group minimum value","key-group-max":"Move to group maximum value","key-chart-min":"Move to chart minimum value","key-chart-max":"Move to chart maximum value","key-level-decr":"Move down a level","key-level-incr":"Move up a level","key-speed-incr":"Increase playback speed","key-speed-decr":"Decrease playback speed","key-monitor-toggle":"Toggle monitor mode","key-dialog-help":"Open help dialog","key-dialog-options":"Open options dialog","key-descr-ArrowRight":"Right arrow","key-descr-ArrowLeft":"Left arrow","key-descr-alt-Home":"Function + Left arrow","key-descr-alt-End":"Function + Right arrow","key-descr-Shift+End":"Shift + End","key-descr-alt-Shift+End":"Shift + Function + Right arrow","key-descr-Shift+Home":"Shift + Home","key-descr-alt-Shift+Home":"Shift + Function + Left arrow","key-descr-ctrl":"Control","key-descr-spacebar":"Spacebar","key-descr-Ctrl+ArrowRight":"Control + Right arrow","key-descr-Ctrl+ArrowLeft":"Control + Left arrow","key-descr-ArrowDown":"Down arrow","key-descr-ArrowUp":"Up arrow","key-descr-PageUp":"Page up","key-descr-PageDown":"Page down","key-descr-alt-PageUp":"Function + Up arrow","key-descr-alt-PageDown":"Function + Down arrow","key-descr-Alt+PageUp":"Alt + Page up","key-descr-alt-Alt+PageUp":"Option + Function + Up arrow","key-descr-Alt+PageDown":"Alt + Page down","key-descr-alt-Alt+PageDown":"Option + Function + Down arrow","key-descr-Shift+PageDown":"Shift + Page down","key-descr-alt-Shift+PageDown":"Shift + Function + Down arrow","key-descr-Shift+PageUp":"Shift + Page up","key-descr-alt-Shift+PageUp":"Shift + Function + Up arrow","key-descr-Ctrl+[":"Control + [","key-descr-Ctrl+]":"Control + ]","key-descr-Alt+ArrowDown":"Alt + Down arrow","key-descr-Alt+ArrowUp":"Alt + Up arrow","help-dialog-front-matter":"You can use the below keyboard shortcuts to navigate this chart more quickly. Please note, on some computers, the keys that you need to press may be called something else than what is listed below or may be emulated by a combination of keys. For example, on Apple keyboards without a physical home key, you can press the function key and the left arrow key at the same time to perform the same action. When possible, common alternate keyboard shortcuts will be provided in the below table.","help-dialog-footer":"For information on making charts accessible and additional help, please visit ","options-title":"Options","options-frontmatter":"While navigating this chart, you may find some sounds too low or too high to hear. Alternatively, you may want to expand the range of the sounds available. Use these sliders to adjust the range of sound:","options-hertz-lower":"Lower hertz","options-hertz-upper":"Upper hertz","options-speed-label":"Play speed (aka, press 'Q' and 'E')","options-set-global":"Save my options for other charts on this page","options-use-continuous":"Use continuous mode","options-continuous-descr":"Continuous mode changes how values are played when you press Shift+Home and Shift+End","options-point-labels":"Show point labels","options-point-labels-before":'before values (eg: "California, 163,696 square miles, 39 million people" )',"options-point-labels-after":'after values (eg: "163,696 square miles, 39 million people, California" )'},$e={description:"{title}, Sonifizierte Grafik","description-untitled":"Sonifizierte Grafik",updated:"{title} aktualisiert","updated-untitled":"Aktualisierte Grafik",missing:"fehlt",close:"Schliessen",save:"Speichern",tooLow:"zu tief",tooHigh:"zu hoch",nodeHasChildren:"hat Kinder",instructionArrows:"Verwenden Sie die Pfeiltasten zum Navigieren.",instructionHierarchy:"Verwenden Sie Alt+Up und Down, um zwischen den Ebenen zu navigieren.",instructionLive:"Drücken Sie M, um den Anzeigemodus zu wechseln.",instructionHotkeys:"Drücken Sie H für weitere Tastaturbefehle.","summ-chart":"Sonifizierte Grafik.","summ-chart-live":"Sonifizierte Live-Grafik.","summ-chart-hier":"Sonifizierte hierarchische Grafik.","summ-chart-group":"Sonifizierte Grafik mit {groupCount, plural,\n        =0 {keinen Gruppen}\n        one {1 Gruppe}\n        other {{groupCount} Gruppen}\n    }.","summ-chart-title":'Sonifizierte Grafik mit dem Titel "{title}".',"summ-chart-live-hier":"Sonifizierte hierarchische Live-Grafik.","summ-chart-live-group":"Sonifizierte Live-Grafik mit {groupCount, plural,\n        =0 {keinen Gruppen}\n        one {1 Gruppe}\n        other {{groupCount} Gruppen}\n    }.","summ-chart-live-title":'Sonifizierte Live-Grafik mit dem Titel "{title}".',"summ-chart-hier-group":"Sonifizierte hierarchische Grafik mit {groupCount, plural,\n        =0 {keinen Gruppen}\n        one {1 Gruppe}\n        other {{groupCount} Gruppen}\n    }.","summ-chart-hier-title":'Sonifizierte hierarchische Grafik mit dem Titel "{title}".',"summ-chart-group-title":'Sonifizierte Grafik mit {groupCount, plural,\n        =0 {keinen Gruppen}\n        one {1 Gruppe}\n        other {{groupCount} Gruppen}\n    } mit dem Titel "{title}".',"summ-chart-live-hier-group":"Sonifizierte hierarchische Live-Grafik mit {groupCount, plural,\n        =0 {keinen Gruppen}\n        one {1 Gruppe}\n        other {{groupCount} Gruppen}\n    }.","summ-chart-live-hier-title":'Sonifizierte hierarchische Live-Grafik mit dem Titel "{title}".',"summ-chart-live-group-title":'Sonifizierte Live-Grafik mit {groupCount, plural,\n        =0 {keinen Gruppen}\n        one {1 Gruppe}\n        other {{groupCount} Gruppen}\n    } mit dem Titel "{title}".',"summ-chart-hier-group-title":'Sonifizierte hierarchische Grafik mit {groupCount, plural,\n        =0 {keinen Gruppen}\n        one {1 Gruppe}\n        other {{groupCount} Gruppen}\n    } mit dem Titel "{title}".',"summ-chart-live-hier-group-title":'Sonifizierte hierarchische Live-Grafik mit {groupCount, plural,\n        =0 {keinen Gruppen}\n        one {1 Gruppe}\n        other {{groupCount} Gruppen}\n    } mit dem Titel "{title}".',"axis-desc":'{letter} ist "{label}" von {min} bis {max}.',"axis-desc-log":'{letter} ist "{label}" von {min} bis {max} logarithmisch.',"axis-desc-con":'{letter} ist "{label}" von {min} bis {max} kontinuierlich.',"axis-desc-log-con":'{letter} ist "{label}" von {min} bis {max} kontinuierlich logarithmisch.',"kbr-speed":"Geschwindigkeit, {rate_in_ms},","kbr-not-live":"Keine Live-Grafik",monitoring:"Monitoring {switch, select, true {eingeschaltet} false {ausgeschaltet} other {unbekannt}}","group-unknown":'Die Gruppe mit dem Titel "{Titel}" verwendet einen nicht unterstützten Diagrammtyp.',"chart-line":"Liniendiagramm","chart-bar":"Balkendiagramm","chart-band":"Banddiagramm","chart-pie":"Kreisdiagramm","chart-candlestick":"Kerzendiagramm","chart-histogram":"Histogramm","chart-box":"Kastendiagramm","chart-matrix":"Matrixdiagramm","chart-scatter":"Streudiagramm","chart-treemap":"Kacheldiagramm","chart-line-labeled":'Liniendiagramm zeigt "{label}".',"chart-bar-labeled":'Balkendiagramm zeigt "{label}".',"chart-band-labeled":'Banddiagramm zeigt "{label}".',"chart-pie-labeled":'Kreisdiagramm zeigt "{label}".',"chart-candlestick-labeled":'Kerzendiagramm zeigt "{label}".',"chart-histogram-labeled":'Histogramm zeigt "{label}".',"chart-box-labeled":'Kastendiagramm zeigt "{label}".',"chart-matrix-labeled":'Matrixdiagramm zeigt "{label}".',"chart-scatter-labeled":'Streudiagramm zeigt "{label}".',"chart-treemap-labeled":'Kacheldiagramm zeigt "{label}".',"stat-all":"Alles","stat-open":"Öffnen","stat-high":"Hoch","stat-low":"Tief","stat-close":"Schliessen","stat-q1":"Q1","stat-median":"Median","stat-q3":"Q3","stat-outlier":"Ausreisser","point-xy":"{x}, {y}","point-xohlc":"{x}, {open} - {high} - {low} - {close}","point-outlier":"{x}, {y}, {index} von {count}","point-xhl":"{x}, {high} - {low}","point-xhl-outlier":"{x}, {high} - {low}, mit {count, plural, \n        =0 {keinem Ausreisser} \n        one {{count} Ausreisser} \n        other {{count} Ausreissern}\n    }","info-open":"Info öffnen","info-title":"Info","info-notes":"Kommentare","kbmg-title":"Tastatur-Manager","key-point-next":"Zum nächsten Punkt wechseln","key-point-prev":"Zum vorangehenden Punkt wechseln","key-play-fwd":"Nach rechts wiedergeben","key-play-back":"Nach links wiedergeben","key-play-cancel":"Wiedergabe abbrechen","key-group-prev":"Zur vorangehenden Gruppe wechseln ","key-stat-prev":"Zur vorangehenden Statistik wechseln","key-group-next":"Zur nächsten Gruppe wechseln","key-stat-next":"Zur nächsten Statistik wechseln","key-group-first":"Zur ersten Gruppe wechseln","key-group-last":"Zur letzten Gruppe wechseln","key-hier-root":"Zum Anfangselement zurückkehren","key-play-fwd-group":"Gruppen vorwärts wiedergeben","key-play-back-group":"Gruppen rückwärts wiedergeben","key-point-first":"Zum ersten Punkt wechseln","key-point-last":"Zum letzten Punkt wechseln","key-replay":"Erneut wiedergeben","key-select":"Element auswählen","key-tenth-prev":"Um einen Zehntel zurückgehen","key-tenth-next":"Um einen Zehntel vorwärts gehen","key-level-min":"Zum tiefsten Wert der Ebene wechseln","key-level-max":"Zum höchsten Wert der Ebene wechseln","key-group-min":"Zum tiefsten Wert der Gruppe wechseln","key-group-max":"Zum höchsten Wert der Gruppe wechseln","key-chart-min":"Zum tiefsten Wert der Grafik wechseln ","key-chart-max":"Zum höchsten Wert der Grafik wechseln ","key-level-decr":"Eine Ebene nach unten gehen","key-level-incr":"Eine Ebene nach oben gehen","key-speed-incr":"Schneller","key-speed-decr":"Langsamer","key-monitor-toggle":"Anzeigemodus wechseln","key-dialog-help":"Hilfe öffnen","key-dialog-options":"Optionen öffnen","options-title":"Optionen","options-frontmatter":"Beim Navigieren in dieser Grafik kann es vorkommen, dass Sie einige Töne zu leise oder zu laut hören. Alternativ können Sie den Klangbereich mit diesen Schiebereglern erweitern:","options-hertz-lower":"Tiefen","options-hertz-upper":"Höhen","options-speed-label":"Wiedergabegeschwindigkeit («Q» und «E» drücken)","options-set-global":"Meine Optionen für andere Grafiken auf dieser Seite speichern","options-use-continuous":"Dauermodus verwenden","options-continuous-descr":"Im Dauermodus ändert sich die Wiedergabe der Werte, wenn Sie Umschalt+Home und Umschalt+End drücken.","options-point-labels":"Punkt-Labels anzeigen:","options-point-labels-before":"vor den Werten (z. B. «Kalifornien, 423’970 km², 39 Mio. Einwohner»)","options-point-labels-after":"nach den Werten (z. B. «423’970 km², 39 Mio. Einwohner, Kalifornien»)"},Xe={description:"{title}, Gráfico Sonificado","description-title":"Gráfico Sonificado",updated:"{title} Actualizado","updated-untitled":"Gráfico Actualizado",missing:"Falta",close:"Cerrar",save:"Guardar",tooLow:"Muy bajo",tooHigh:"Muy alto",nodeHasChildren:"tiene hijos",instructionArrows:"Use las flechas para navegar.",instructionHierarchy:"Use Alt + Arriba y Abajo para navegar entre niveles.",instructionLive:"Presione M para cambiar modo de pantalla.",instructionHotkeys:"Presione H para más atajos.","summ-chart":"Gráfico Sonificado.","summ-chart-live":"Gráfico Sonificado en vivo.","summ-chart-hier":"Gráfico Jerárquico Sonificado.","summ-chart-group":"Gráfico Sonificado {groupCount, plural,\n        =0 {sin grupos}\n        one {con 1 grupo}\n        other {con {groupCount} grupos}\n    }.","summ-chart-title":'Gráfico Sonificado llamado "{title}".',"summ-chart-live-hier":"Gráfico Jerárquico Sonificado en vivo.","summ-chart-live-group":"Gráfico Sonificado en vivo {groupCount, plural,\n        =0 {sin grupos}\n        one {con 1 grupo}\n        other {con {groupCount} grupos}\n    }.","summ-chart-live-title":'Gráfico Sonificado en vivo llamado "{title}".',"summ-chart-hier-group":"Gráfico Jerárquico Sonificado {groupCount, plural,\n        =0 {sin grupos}\n        one {con 1 grupo}\n        other {con {groupCount} grupos}\n    }.","summ-chart-hier-title":'Gráfico Jerárquico Sonificado llamado "{title}".',"summ-chart-group-title":'Gráfico Sonificado {groupCount, plural,\n        =0 {sin grupos}\n        one {con 1 grupo}\n        other {con {groupCount} grupos}\n    } llamado "{title}".',"summ-chart-live-hier-group":"Gráfico Jerárquico Sonificado en vivo {groupCount, plural,\n        =0 {sin grupos}\n        one {con 1 grupo}\n        other {con {groupCount} grupos}\n    }.","summ-chart-live-hier-title":'Gráfico Jerárquico Sonificado en vivo llamado "{title}".',"summ-chart-live-group-title":'Gráfico Sonificado en vivo {groupCount, plural,\n        =0 {sin grupos}\n        one {con 1 grupo}\n        other {con {groupCount} grupos}\n    } llamado" {title}".',"summ-chart-hier-group-title":'Gráfico Jerárquico Sonificado {groupCount, plural,\n        =0 {sin grupos}\n        one {con 1 grupo}\n        other {con {groupCount} grupos}\n    } llamado "{title}".',"summ-chart-live-hier-group-title":'Gráfico Jerárquico Sonificado en vivo {groupCount, plural,\n        =0 {sin grupos}\n        one {con 1 grupo}\n        other {con {groupCount} grupos}\n    } llamado "{title}".',"axis-desc":'{letter} es "{label}" de {min} a {max}.',"axis-desc-log":'{letter} es "{label}" de {min} a {max} logarítmico.',"axis-desc-con":'{letter} es "{label}" de {min} a {max} continuo.',"axis-desc-log-con":'{letter} is "{label}" from {min} to {max} logarítmico continuo.',"kbr-speed":"Velocidad, {rate_in_ms}","kbr-not-live":"No es un gráfico en vivo",monitoring:"Reproducción {switch, select, true {encendida} false {apagada} other {desconocida}}","group-unknown":'Grupo llamado "{title}" usa un tipo de gráfico no compatible.',"chart-line":"Gráfico de líneas.","chart-bar":"Gráfico de barras.","chart-band":"Gráfico de bandas.","chart-pie":"Gráfico de torta.","chart-candlestick":"Gráfico de velas.","chart-histogram":"Gráfico Histograma.","chart-box":"Gráfico de cajas y bigotes.","chart-matrix":"Gráfico Matriz.","chart-scatter":"Gráfico de dispersión.","chart-treemap":"Gráfico de árbol.","chart-line-labeled":'Gráfico de líneas muestra "{label}".',"chart-bar-labeled":'Gráfico de barras muestra "{label}".',"chart-band-labeled":'Gráfico de bandas muestra "{label}".',"chart-pie-labeled":'Gráfico de torta muestra "{label}".',"chart-candlestick-labeled":'Gráfico de velas muestra "{label}".',"chart-histogram-labeled":'Histograma muestra "{label}".',"chart-box-labeled":'Gráfico de cajas y bigotes muestra "{label}".',"chart-matrix-labeled":'Gráfico matriz muestra "{label}".',"chart-scatter-labeled":'Gráfico de dispersión muestra "{label}".',"chart-treemap-labeled":'Gráfico de árbol muestra "{label}".',"stat-all":"Todo","stat-open":"Abrir","stat-high":"Alto","stat-low":"Bajo","stat-close":"Cerrar","stat-q1":"Q1","stat-median":"Mediana","stat-q3":"Q3","stat-outlier":"Valor Atípico","point-xy":"{x}, {y}","point-xohlc":"{x}, {open} - {high} - {low} - {close}","point-outlier":"{x}, {y}, {index} de {count}","point-xhl":"{x}, {high} - {low}","point-xhl-outlier":"{x}, {high} - {low}, con {count, plural, \n        =0 {Sin valores atípicos} \n        one {{count} valor atípico} \n        other {{count} valores atípicos}\n    }","info-open":"Abrir info","info-title":"Info","info-notes":"Notas","kbmg-title":"Administrador de teclado","key-point-next":"Ir al punto siguiente","key-point-prev":"Ir al punto anterior","key-play-fwd":"Reproducir a la derecha","key-play-back":"Reproducir a la izquierda","key-play-cancel":"Cancelar reproducción","key-group-prev":"Ir al grupo anterior","key-stat-prev":"Navegar a estadística anterior","key-group-next":"Ir al grupo siguiente","key-stat-next":"Navegar a la siguiente estadística","key-group-first":"Ir al primer grupo","key-group-last":"Ir al último grupo","key-hier-root":"Ir a la raíz","key-play-fwd-group":"Reproducir hacia adelante por los grupos","key-play-back-group":"Reproducir hacia atrás por los grupos","key-point-first":"Ir al primer punto","key-point-last":"Ir al último punto","key-replay":"Reproducir de nuevo","key-select":"Seleccionar ítem","key-tenth-prev":"Retroceder una décima","key-tenth-next":"Adelantar una décima","key-level-min":"Ir al menor valor del nivel","key-level-max":"Ir al mayor valor del nivel","key-group-min":"Ir al menor valor del grupo","key-group-max":"Ir al mayor valor del grupo","key-chart-min":"Ir al menor valor del gráfico","key-chart-max":"Ir al mayor valor del gráfico","key-level-decr":"Bajar un nivel","key-level-incr":"Subir un nivel","key-speed-incr":"Acelerar","key-speed-decr":"Ralentizar","key-monitor-toggle":"Cambiar modo de pantalla","key-dialog-help":"Abrir diálogo de ayuda","key-dialog-options":"Abrir diálogo de opciones","options-title":"Opciones","options-frontmatter":"Al navegar este gráfico algunos sonidos pueden reusltar muy altos o muy bajos para que los escuche. Adicionalmente, si desea expandir el rango de sonidos disponibles, deslice los controles para ajustar el rango de sonido:","options-hertz-lower":"Hertz más bajo","options-hertz-upper":"Hertz más alto","options-speed-label":"Velocidad de reproducción (presione 'Q' y 'E')","options-set-global":"Guardar mis opciones para otros gráficos en esta página","options-use-continuous":"Usar modo continuo","options-continuous-descr":"El modo continuo cambia cómo se reproducen los valores al presionar Shift+Home y Shift+End","options-point-labels":"Mostrar etiquetas del punto","options-point-labels-before":'valores anteriores (ejemplo: "California, 163,1802 kilómetros cuadrados, 39 millones de personas" )',"options-point-labels-after":'valores siguientes (ejemplo: "163,1802 kilómetros cuadrados, 39 millones de personas, California" )'},Ze={description:"{title}, graphique sonifié","description-untitled":"Graphique sonifié",updated:"{title} mis à jour","updated-untitled":"Graphique mis à jour",missing:"manquant",close:"Fermer",save:"Enregistrer",tooLow:"trop grave",tooHigh:"trop aigu",nodeHasChildren:"a des enfants",instructionArrows:"Utilisez les flèches pour naviguer.",instructionHierarchy:"Utilisez Alt + Up et Down pour naviguer d’un niveau à l’autre.",instructionLive:"Pressez M pour changer de mode d’affichage.",instructionHotkeys:"Pressez H pour afficher d’autres touches de raccourci.","summ-chart":"Graphique sonifié.","summ-chart-live":"Graphique sonifié en direct.","summ-chart-hier":"Graphique hiérarchique sonifié.","summ-chart-group":"Graphique sonifié avec {groupCount, plural,\n        =0 {aucun groupe}\n        one {un groupe}\n        other {{groupCount} groupes}\n    }.","summ-chart-title":'Graphique sonifié intitulé "{title}".',"summ-chart-live-hier":"Graphique hiérarchique sonifié en direct.","summ-chart-live-group":"Graphique sonifié en direct avec {groupCount, plural,\n        =0 {aucun groupe}\n        one {un groupe}\n        other {{groupCount} groupes}\n    }.","summ-chart-live-title":'Graphique sonifié en direct intitulé "{title}".',"summ-chart-hier-group":"Graphique hiérarchique sonifié avec {groupCount, plural,\n        =0 {aucun groupe}\n        one {un groupe}\n        other {{groupCount} groupes}\n    }.","summ-chart-hier-title":'Graphique hiérarchique sonifié intitulé "{title}".',"summ-chart-group-title":'Graphique sonifié avec {groupCount, plural,\n        =0 {aucun groupe}\n        one {un groupe}\n        other {{groupCount} groupes}\n    } intitulé "{title}".',"summ-chart-live-hier-group":"Graphique hiérarchique sonifié en direct avec {groupCount, plural,\n        =0 {aucun groupe}\n        one {un groupe}\n        other {{groupCount} groupes}\n    }.","summ-chart-live-hier-title":'Graphique hiérarchique sonifié en direct intitulé "{title}".',"summ-chart-live-group-title":'Graphique sonifié en direct avec {groupCount, plural,\n        =0 {aucun groupe}\n        one {un groupe}\n        other {{groupCount} groupes}\n    } intitulé "{title}".',"summ-chart-hier-group-title":'Graphique hiérarchique sonifié avec {groupCount, plural,\n        =0 {aucun groupe}\n        one {un groupe}\n        other {{groupCount} groupes}\n    } intitulé "{title}".',"summ-chart-live-hier-group-title":'Graphique hiérarchique sonifié en direct avec {groupCount, plural,\n        =0 {aucun groupe}\n        one {un groupe}\n        other {{groupCount} groupes}\n    } intitulé "{title}".',"axis-desc":'{letter} est "{label}" de {min} à {max}.',"axis-desc-log":'{letter} est "{label}" de {min} à {max} logarithmique.',"axis-desc-con":'{letter} est "{label}" de {min} à {max} en continu.',"axis-desc-log-con":'{letter} est "{label}" de {min} à {max} logarithmique en continu.',"kbr-speed":"Vitesse, {rate_in_ms}","kbr-not-live":"Pas un graphique en direct",monitoring:"Monitoring {switch, select, true {activé} false {désactivé} other {inconnu}}","group-unknown":'Le groupe intitulé "{title}" utilise un type de graphique incompatible.',"chart-line":"Graphique linéaire.","chart-bar":"Graphique à barres.","chart-band":"Graphique à bandes.","chart-pie":"Camembert.","chart-candlestick":"Graphique en chandeliers.","chart-histogram":"Histogramme.","chart-box":"Graphique en boîtes.","chart-matrix":"Graphique matriciel.","chart-scatter":"Nuage de points.","chart-treemap":"Graphique treemap.","chart-line-labeled":'Graphique linéaire montrant "{label}".',"chart-bar-labeled":'Graphique à barres montrant "{label}".',"chart-band-labeled":'Graphique à bandes montrant "{label}".',"chart-pie-labeled":'Camembert montrant "{label}".',"chart-candlestick-labeled":'Graphique en chandeliers montrant "{label}".',"chart-histogram-labeled":'Histogramme montrant "{label}".',"chart-box-labeled":'Graphique en boîtes montrant "{label}".',"chart-matrix-labeled":'Graphique matriciel montrant "{label}".',"chart-scatter-labeled":'Nuage de points montrant "{label}".',"chart-treemap-labeled":'Graphique treemap montrant "{label}".',"stat-all":"Tout","stat-open":"Ouvrir","stat-high":"Aigu","stat-low":"Grave","stat-close":"Fermer","stat-q1":"Q1","stat-median":"Médiane","stat-q3":"Q3","stat-outlier":"Valeur aberrante","point-xy":"{x}, {y}","point-xohlc":"{x}, {open} - {high} - {low} - {close}","point-outlier":"{x}, {y}, {index} de {count}","point-xhl":"{x}, {high} - {low}","point-xhl-outlier":"{x}, {high} - {low}, avec {count, plural, \n        =0 {aucune valeur aberrante} \n        one {{count} valeur aberrante} \n        other {{count} valeurs aberrantes}\n    }","info-open":"Ouvrir info","info-title":"Info","info-notes":"Commentaires","kbmg-title":"Gestionnaire de clavier","key-point-next":"Aller au point suivant","key-point-prev":"Aller au point précédent","key-play-fwd":"Lire vers la droite","key-play-back":"Lire vers la gauche","key-play-cancel":"Annuler lecture","key-group-prev":"Aller au groupe précédent","key-stat-prev":"Aller à la statistique précédente","key-group-next":"Aller au groupe suivant","key-stat-next":"Aller à la statistique suivante","key-group-first":"Aller au premier groupe","key-group-last":"Aller au dernier groupe","key-hier-root":"Aller à la racine","key-play-fwd-group":"Lire vers l’avant à travers les groupes","key-play-back-group":"Lire vers l’arrière à travers les groupes","key-point-first":"Aller au premier point","key-point-last":"Aller au dernier point","key-replay":"Lire à nouveau","key-select":"Sélectionner élément","key-tenth-prev":"Reculer d’un dixième","key-tenth-next":"Avancer d’un dixième","key-level-min":"Aller à la valeur minimale du niveau","key-level-max":"Aller à la valeur maximale du niveau","key-group-min":"Aller à la valeur minimale du groupe","key-group-max":"Aller à la valeur maximale du groupe","key-chart-min":"Aller à la valeur minimale du graphique","key-chart-max":"Aller à la valeur maximale du graphique","key-level-decr":"Descendre d’un niveau","key-level-incr":"Monter d’un niveau","key-speed-incr":"Accélérer","key-speed-decr":"Ralentir","key-monitor-toggle":"Changer de mode d’affichage","key-dialog-help":"Ouvrir aide","key-dialog-options":"Ouvrir options","options-title":"Options","options-frontmatter":"Lorsque vous naviguez à travers ce graphique, il se peut que certains sons soient trop graves ou trop aigus pour être entendus. Vous avez également la possibilité d’étendre la gamme des sons disponibles en utilisant les curseurs suivants:","options-hertz-lower":"Hertz plus grave","options-hertz-upper":"Hertz plus aigu","options-speed-label":"Vitesse de lecture (presser ’Q’ et ’E’)","options-set-global":"Sauvegarder mes options pour d’autres graphiques sur cette page","options-use-continuous":"Utiliser le mode continu","options-continuous-descr":"Le mode continu modifie la façon dont les valeurs sont lues lorsque vous appuyez sur Majuscule+Home et Majuscule+End.","options-point-labels":"Montrer les étiquettes du point","options-point-labels-before":'avant valeurs (par exemple "Californie, 423 970 kilomètres carrés, 39 millions d’habitants" )',"options-point-labels-after":'après valeurs (par exemple "423 970 kilomètres carrés, 39 millions d’habitants, Californie" )'},We={description:"{title}, grafico sonificato","description-untitled":"Grafico sonificato",updated:"{title} aggiornato","updated-untitled":"Grafico aggiornato",missing:"mancante",close:"Chiudi",save:"Salva",tooLow:"troppo grave",tooHigh:"troppo acuto",nodeHasChildren:"ha figli",instructionArrows:"Usa le frecce per navigare.",instructionHierarchy:"Premi Alt + freccia su e freccia giù per passare da un livello all’altro.",instructionLive:"Premi M per cambiare modalità di visualizzazione.",instructionHotkeys:"Premi H per mostrare altre scorciatoie da tastiera.","summ-chart":"Grafico sonificato.","summ-chart-live":"Grafico sonificato in tempo reale.","summ-chart-hier":"Grafico gerarchico sonificato.","summ-chart-group":"Grafico sonificato con {groupCount, plural,\n        =0 {nessun gruppo}\n        one {un gruppo}\n        other {{groupCount} gruppi}\n    }.","summ-chart-title":'Grafico sonificato intitolato "{title}".',"summ-chart-live-hier":"Grafico gerarchico sonificato in tempo reale.","summ-chart-live-group":"Grafico sonificato in tempo reale con {groupCount, plural,\n        =0 {nessun gruppo}\n        one {un gruppo}\n        other {{groupCount} gruppi}\n    }.","summ-chart-live-title":'Grafico sonificato in tempo reale intitolato "{title}".',"summ-chart-hier-group":"Grafico gerarchico sonificato con {groupCount, plural,\n        =0 {nessun gruppo}\n        one {un gruppo}\n        other {{groupCount} gruppi}\n    }.","summ-chart-hier-title":'Grafico gerarchico sonificato intitolato "{title}".',"summ-chart-group-title":'Grafico sonificato con {groupCount, plural,\n        =0 {nessun gruppo}\n        one {un gruppo}\n        other {{groupCount} gruppi}\n    } intitolato "{title}".',"summ-chart-live-hier-group":"Grafico gerarchico sonificato in tempo reale con {groupCount, plural,\n        =0 {nessun gruppo}\n        one {un gruppo}\n        other {{groupCount} gruppi}\n    }.","summ-chart-live-hier-title":'Grafico gerarchico sonificato in tempo reale intitolato "{title}".',"summ-chart-live-group-title":'Grafico sonificato in tempo reale con {groupCount, plural,\n        =0 {nessun gruppo}\n        one {un gruppo}\n        other {{groupCount} gruppi}\n    } intitolato "{title}".',"summ-chart-hier-group-title":'Grafico gerarchico sonificato con {groupCount, plural,\n        =0 {nessun gruppo}\n        one {un gruppo}\n        other {{groupCount} gruppi}\n    } intitolato "{title}".',"summ-chart-live-hier-group-title":'Grafico gerarchico sonificato in tempo reale con {groupCount, plural,\n        =0 {nessun gruppo}\n        one {un gruppo}\n        other {{groupCount} gruppi}\n    } intitolato "{title}".',"axis-desc":'{letter} è "{label}" da {min} a {max}.',"axis-desc-log":'{letter} è "{label}" da {min} a {max} logaritmico.',"axis-desc-con":'{letter} è "{label}" da {min} a {max} in maniera continua.',"axis-desc-log-con":'{letter} è "{label}" da {min} a {max} logaritmico in maniera continua.',"kbr-speed":"Velocità, {rate_in_ms}","kbr-not-live":"Non è un grafico in tempo reale",monitoring:"Monitoraggio {switch, select, true {attivato} false {disattivato} other {sconosciuto}}","group-unknown":'Il gruppo intitolato "{title}" usa un tipo di grafico non supportato.',"chart-line":"Grafico a linee.","chart-bar":"Ortogramma.","chart-band":"Grafico a barre.","chart-pie":"Diagramma a torta.","chart-candlestick":"Candlestick.","chart-histogram":"Istogramma.","chart-box":"Diagramma a scatola e baffi.\n​","chart-matrix":"Grafico a matrice.","chart-scatter":"Grafico a dispersione.","chart-treemap":"Treemap.","chart-line-labeled":'Grafico a linee che mostra "{label}".',"chart-bar-labeled":'Ortogramma che mostra "{label}".',"chart-band-labeled":'Grafico a barre che mostra "{label}".',"chart-pie-labeled":'Diagramma a torta che mostra "{label}".',"chart-candlestick-labeled":'Candlestick che mostra "{label}".',"chart-histogram-labeled":'Istogramma che mostra "{label}".',"chart-box-labeled":'Diagramma a scatola e baffi che mostra "{label}".',"chart-matrix-labeled":'Grafico a matrice che mostra "{label}".',"chart-scatter-labeled":'Grafico a dispersione che mostra "{label}".',"chart-treemap-labeled":'Treemap che mostra "{label}".',"stat-all":"Tutto","stat-open":"Apri","stat-high":"Acuto","stat-low":"Grave","stat-close":"Chiudi","stat-q1":"Q1","stat-median":"Mediana","stat-q3":"Q3","stat-outlier":"Outlier","point-xy":"{x}, {y}","point-xohlc":"{x}, {open} - {high} - {low} - {close}","point-outlier":"{x}, {y}, {index} di {count}","point-xhl":"{x}, {high} - {low}","point-xhl-outlier":"{x}, {high} - {low}, con {count, plural, \n        =0 {nessun outlier} \n        one {{count} outlier} \n        other {{count} outlier}\n    }","info-open":"Apri info","info-title":"Info","info-notes":"Commenti","kbmg-title":"Gestione tastiera","key-point-next":"Vai al punto successivo","key-point-prev":"Vai al punto precedente","key-play-fwd":"Riproduci verso destra","key-play-back":"Riproduci verso sinistra","key-play-cancel":"Interrompi riproduzione","key-group-prev":"Vai al gruppo precedente","key-stat-prev":"Vai a statistica precedente","key-group-next":"Vai al gruppo successivo","key-stat-next":"Vai alla prossima statistica","key-group-first":"Vai al primo gruppo","key-group-last":"Vai all’ultimo gruppo","key-hier-root":"Vai al primo elemento","key-play-fwd-group":"Riproduci i gruppi procedendo in avanti","key-play-back-group":"Riproduci i gruppi procedendo indietro","key-point-first":"Vai al primo punto","key-point-last":"Vai all’ultimo punto","key-replay":"Riproduci di nuovo","key-select":"Seleziona elemento","key-tenth-prev":"Retrocedi di un decimo","key-tenth-next":"Avanza di un decimo","key-level-min":"Vai al valore minimo del livello","key-level-max":"Vai al valore massimo del livello","key-group-min":"Vai al valore minimo del gruppo","key-group-max":"Vai al valore massimo del gruppo","key-chart-min":"Vai al valore minimo del grafico","key-chart-max":"Vai al valore massimo del grafico","key-level-decr":"Scendi di un livello","key-level-incr":"Sali di un livello","key-speed-incr":"Aumenta velocità","key-speed-decr":"Diminuisci velocità","key-monitor-toggle":"Cambia modalità di visualizzazione","key-dialog-help":"Apri finestra di aiuto","key-dialog-options":"Apri opzioni","options-title":"Opzioni","options-frontmatter":"Durante la navigazione nel grafico, alcuni suoni potrebbero essere troppo gravi o troppo acuti per essere sentiti. In questo caso, si può espandere la gamma di suoni disponibili utilizzando i cursori seguenti:","options-hertz-lower":"Toni gravi","options-hertz-upper":"Toni acuti","options-speed-label":"Velocità di riproduzione (premi Q ed E)","options-set-global":"Salva le opzioni per altri grafici della pagina","options-use-continuous":"Utilizza la modalità continua","options-continuous-descr":"La modalità continua cambia il modo in cui i valori vengono riprodotti con le combinazioni Shift+Home e Shift+End","options-point-labels":"Mostra etichette del punto","options-point-labels-before":'prima dei valori (p. es. "California, 423 970 chilometri quadrati, 39 milioni di persone")',"options-point-labels-after":'dopo i valori (p. es. "423 970 chilometri quadrati, 39 milioni di persone, California")'},Ye={description:"{title}, daim kab kos siv suab","description-untitled":"Daim kab kos siv suab",updated:"{title} hloov tshiab","updated-untitled":"Daim kab kos hloov tshiab",missing:"ploj lawm",close:"Kaw",save:"Tseg",tooLow:"tsawg dhau",tooHigh:"siab dhau",nodeHasChildren:"muaj menyuam kab",instructionArrows:"Siv tus yuam sij xub los txav.",instructionHierarchy:"Siv Alt + xub nce lossis nqis los hloov qib.",instructionLive:"Nias M los hloov hom saib ncaj qha.",instructionHotkeys:"Nias H kom pom cov yuam sij ntxiv.","summ-chart":"Daim kab kos siv suab.","summ-chart-live":"Daim kab kos siv suab ncaj qha.","summ-chart-hier":"Daim kab kos siv suab muaj ntau qib.","summ-chart-group":"Daim kab kos siv suab muaj {groupCount, plural,\n        =0 {tsis muaj pab}\n        one {1 pab}\n        other {{groupCount} pab}\n    }.","summ-chart-title":'Daim kab kos siv suab hu ua "{title}".',"summ-chart-live-hier":"Daim kab kos siv suab muaj ntau qib ncaj qha.","summ-chart-live-group":"Daim kab kos siv suab ncaj qha muaj {groupCount, plural,\n        =0 {tsis muaj pab}\n        one {1 pab}\n        other {{groupCount} pab}\n    }.","summ-chart-live-title":'Daim kab kos siv suab ncaj qha hu ua "{title}".',"summ-chart-hier-group":"Daim kab kos siv suab muaj ntau qib muaj {groupCount, plural,\n        =0 {tsis muaj pab}\n        one {1 pab}\n        other {{groupCount} pab}\n    }.","summ-chart-hier-title":'Daim kab kos siv suab muaj ntau qib hu ua "{title}".',"summ-chart-group-title":'Daim kab kos siv suab muaj {groupCount, plural,\n        =0 {tsis muaj pab}\n        one {1 pab}\n        other {{groupCount} pab}\n    } hu ua "{title}".',"summ-chart-live-hier-group":"Daim kab kos siv suab muaj ntau qib ncaj qha muaj {groupCount, plural,\n        =0 {tsis muaj pab}\n        one {1 pab}\n        other {{groupCount} pab}\n    }.","summ-chart-live-hier-title":'Daim kab kos siv suab muaj ntau qib ncaj qha hu ua "{title}".',"summ-chart-live-group-title":'Daim kab kos siv suab ncaj qha muaj {groupCount, plural,\n        =0 {tsis muaj pab}\n        one {1 pab}\n        other {{groupCount} pab}\n    } hu ua "{title}".',"summ-chart-hier-group-title":'Daim kab kos siv suab muaj ntau qib muaj {groupCount, plural,\n        =0 {tsis muaj pab}\n        one {1 pab}\n        other {{groupCount} pab}\n    } hu ua "{title}".',"summ-chart-live-hier-group-title":'Daim kab kos siv suab muaj ntau qib ncaj qha muaj {groupCount, plural,\n        =0 {tsis muaj pab}\n        one {1 pab}\n        other {{groupCount} pab}\n    } hu ua "{title}".',"axis-desc":'{letter} yog "{label}" txij {min} mus {max}.',"axis-desc-log":'{letter} yog "{label}" txij {min} mus {max} logarithmic.',"axis-desc-con":'{letter} yog "{label}" txij {min} mus {max} txuas ntxiv.',"axis-desc-log-con":'{letter} yog "{label}" txij {min} mus {max} logarithmic txuas ntxiv.',"kbr-speed":"Ceev, {rate_in_ms}","kbr-not-live":"Tsis yog daim kab kos ncaj qha",monitoring:"Saib xyuas {switch, select, true {qhib} false {tawm} other {tsis paub}}","group-unknown":'Pab hu ua "{title}" siv hom kab kos tsis txhawb.',"chart-line":"Kab kos kab.","chart-bar":"Kab kos kab ntev.","chart-band":"Kab kos band.","chart-pie":"Kab kos ncuav.","chart-candlestick":"Kab kos teeb tswm ciab.","chart-histogram":"Kab kos histogram.","chart-box":"Kab kos lub thawv.","chart-matrix":"Kab kos matrix.","chart-scatter":"Kab kos tawg.","chart-treemap":"Kab kos ntoo daim ntawv.","chart-line-labeled":'Kab kos kab qhia "{label}".',"chart-bar-labeled":'Kab kos kab ntev qhia "{label}".',"chart-band-labeled":'Kab kos band qhia "{label}".',"chart-pie-labeled":'Kab kos ncuav qhia "{label}".',"chart-candlestick-labeled":'Kab kos teeb tswm ciab qhia "{label}".',"chart-histogram-labeled":'Kab kos histogram qhia "{label}".',"chart-box-labeled":'Kab kos lub thawv qhia "{label}".',"chart-matrix-labeled":'Kab kos matrix qhia "{label}".',"chart-scatter-labeled":'Kab kos tawg qhia "{label}".',"chart-treemap-labeled":'Kab kos ntoo daim ntawv qhia "{label}".',"stat-all":"Txhua yam","stat-open":"Qhib","stat-high":"Siab tshaj","stat-low":"Tsawg tshaj","stat-close":"Kaw","stat-q1":"Q1","stat-median":"Nruab nrab","stat-q3":"Q3","stat-outlier":"Tawm txawv","point-xy":"{x}, {y}","point-xohlc":"{x}, {open} - {high} - {low} - {close}","point-outlier":"{x}, {y}, {index} ntawm {count}","point-xhl":"{x}, {high} - {low}","point-xhl-outlier":"{x}, {high} - {low}, nrog {count, plural,\n        =0 {tsis muaj txawv}\n        one {{count} qhov txawv}\n        other {{count} qhov txawv}\n    }","info-open":"Qhib ntaub ntawv","info-title":"Ntaub ntawv","info-notes":"Nco tseg","kbmg-title":"Tus tswj keyboard","key-point-next":"Txav mus rau qhov tom ntej","key-point-prev":"Txav mus rau qhov dhau los","key-play-fwd":"Qhib suab mus rau sab xis","key-play-back":"Qhib suab rov qab rau sab laug","key-play-cancel":"Tso tseg kev qhib suab","key-group-prev":"Txav mus rau pab dhau los","key-stat-prev":"Txav mus rau yam dhau los","key-group-next":"Txav mus rau pab tom ntej","key-stat-next":"Txav mus rau yam tom ntej","key-group-first":"Txav mus rau pab thawj","key-group-last":"Txav mus rau pab kawg","key-hier-root":"Txav mus rau hauv paus","key-play-fwd-group":"Qhib suab mus rau hauv cov pab","key-play-back-group":"Qhib suab rov qab hauv cov pab","key-point-first":"Txav mus rau qhov pib","key-point-last":"Txav mus rau qhov kawg","key-replay":"Qhib suab tam sim no dua","key-select":"Xaiv yam khoom","key-tenth-prev":"Txav sab laug me ntsis","key-tenth-next":"Txav sab xis me ntsis","key-level-min":"Mus rau tus nqi tsawg tshaj","key-level-max":"Mus rau tus nqi siab tshaj","key-group-min":"Mus rau tus nqi tsawg tshaj hauv pab","key-group-max":"Mus rau tus nqi siab tshaj hauv pab","key-chart-min":"Mus rau tus nqi tsawg tshaj ntawm daim kab kos","key-chart-max":"Mus rau tus nqi siab tshaj ntawm daim kab kos","key-level-decr":"Nqes ib qib","key-level-incr":"Nce ib qib","key-speed-incr":"Nce ceev qhib suab","key-speed-decr":"Txo ceev qhib suab","key-monitor-toggle":"Hloov hom saib xyuas","key-dialog-help":"Qhib kev pab","key-dialog-options":"Qhib kev xaiv","key-descr-ArrowRight":"Right arrow","key-descr-ArrowLeft":"Left arrow","key-descr-alt-Home":"Function + Left arrow","key-descr-alt-End":"Function + Right arrow","key-descr-Shift+End":"Shift + End","key-descr-alt-Shift+End":"Shift + Function + Right arrow","key-descr-Shift+Home":"Shift + Home","key-descr-alt-Shift+Home":"Shift + Function + Left arrow","key-descr-ctrl":"Control","key-descr-spacebar":"Spacebar","key-descr-Ctrl+ArrowRight":"Control + Right arrow","key-descr-Ctrl+ArrowLeft":"Control + Left arrow","key-descr-ArrowDown":"Down arrow","key-descr-ArrowUp":"Up arrow","key-descr-PageUp":"Page up","key-descr-PageDown":"Page down","key-descr-alt-PageUp":"Function + Up arrow","key-descr-alt-PageDown":"Function + Down arrow","key-descr-Alt+PageUp":"Alt + Page up","key-descr-alt-Alt+PageUp":"Option + Function + Up arrow","key-descr-Alt+PageDown":"Alt + Page down","key-descr-alt-Alt+PageDown":"Option + Function + Down arrow","key-descr-Shift+PageDown":"Shift + Page down","key-descr-alt-Shift+PageDown":"Shift + Function + Down arrow","key-descr-Shift+PageUp":"Shift + Page up","key-descr-alt-Shift+PageUp":"Shift + Function + Up arrow","key-descr-Ctrl+[":"Control + [","key-descr-Ctrl+]":"Control + ]","key-descr-Alt+ArrowDown":"Alt + Down arrow","key-descr-Alt+ArrowUp":"Alt + Up arrow","help-dialog-front-matter":"Koj siv tau cov yuam sij hauv qab no los txav sai dua hauv daim kab kos. Qee lub keyboard yuav hu txawv lossis siv ob peb tus yuam sij ua ke. Piv txwv, rau Apple keyboard tsis muaj Home, siv Function + xub laug. Thaum ua tau, lwm txoj kev xaiv yuav raug qhia hauv qab no.","help-dialog-footer":"Rau kev paub ntxiv txog kev nkag tau ntawm daim kab kos, thov mus xyuas ","options-title":"Kev xaiv","options-frontmatter":"Yog qee lub suab tsawg dhau lossis siab dhau, siv cov sliders no los kho suab nrov thiab siab:","options-hertz-lower":"Hz qis dua","options-hertz-upper":"Hz siab dua","options-speed-label":"Ceev qhib suab (nias 'Q' thiab 'E')","options-set-global":"Tseg kuv qhov kev xaiv rau lwm daim kab kos","options-use-continuous":"Siv hom txuas ntxiv","options-continuous-descr":"Hom txuas ntxiv hloov txoj kev qhib suab thaum nias Shift+Home thiab Shift+End","options-point-labels":"Qhia npe ntawm cov ntsiab lus","options-point-labels-before":'ua ntej tus nqi (piv txwv: "California, 163,696 square miles, 39 million people")',"options-point-labels-after":'tom qab tus nqi (piv txwv: "163,696 square miles, 39 million people, California")'};var Qe=Object.freeze({__proto__:null,de:$e,en:Ke,es:Xe,fr:Ze,hmn:Ye,it:We});const Je="en",ti=Object.keys(Qe);class ei{constructor(t=Je){this._availableLanguageCodes=[],this._loadedLanguages=new Map,this._intercepterCallback=()=>!1,this._availableLanguageCodes=Object.keys(Qe),this.language=Je,this.language=t}get language(){return this._language}set language(t){this._language=t,this._loadedLanguages.has(t)||this.loadLanguage(t)}set intercepterCallback(t){this._intercepterCallback=t}get languages(){return this._availableLanguageCodes}get loadedLanguages(){return[...this._loadedLanguages.keys()]}loadLanguage(t){return t in Qe&&(this._loadedLanguages.set(t,Ve({locale:t,messages:Qe[t]})),!0)}translate(t,e={}){const i=this._intercepterCallback({language:this._language,id:t,evaluators:e});return!1!==i?i:t in Qe[this._language]?this._loadedLanguages.get(this._language).formatMessage({id:t},e):t in Qe[Je]?this._loadedLanguages.get(Je).formatMessage({id:t},e):""}}const ii=["band","bar","box","candlestick","histogram","line","matrix","pie","scatter","treemap","unsupported"],ri=t=>{const e=ii.join(", ");if(void 0===t)return`Required parameter 'type' was left undefined. Supported types are: ${e}`;if(Array.isArray(t)){const i=t.filter((t=>!ii.includes(t)));return 0===i.length?"":`Invalid input types: ${i.join(", ")}. Valid types are: ${e}`}return ii.includes(t)?"":`Invalid input type: ${t}. Valid types are: ${e}`},ai=t=>void 0===t||ti.includes(t)?"":`Error: Unrecognized language "${t}". Available languages: ${ti.join(", ")}.`,ni=(t,e)=>{if(!Array.isArray(t))return"";const i=Object.keys(e);return t.length===i.length?"":`Error: Number of types (${t.length}) and number of data groups (${i.length}) don't match.`},oi=t=>void 0===t?"Required parameter 'element' was left undefined. An HTMLElement or SVGElement must be provided for this parameter.":t instanceof HTMLElement||t instanceof SVGElement?"":"Provided value for 'element' must be an instance of HTMLElement or SVGElement.",si=["linear","log10"],li=t=>{if(void 0===t)return"";const e=["x","y","y2"],i=Object.keys(t).filter((t=>!e.includes(t)));if(i.length>0)return`Unsupported axes were included: ${i.join(", ")}. The only supported axes are: ${e.join(", ")}.`;for(const e in t){const i=t[e];if("string"==typeof i.type&&!si.includes(i.type))return`Axis ${e} has an unsupported axis type "${i.type}". Valid axis types are: ${si.join(", ")}.`;if("log10"===i.type&&(0===i.minimum||0===i.maximum))return`Axis ${e} has type "log10", but has a minimum or maximum value of 0. No values <= 0 are supported for logarithmic axes.`}return""},ui=t=>{if(Array.isArray(t))return hi(t);for(const e in t){if(null===t[e])continue;const i=hi(t[e]);if(""!==i)return`Error for data category ${e}: ${i}`}return""},hi=t=>{const e=t[0];if("number"==typeof e){const e=t.findIndex((t=>!("number"==typeof t)));return-1===e?"":`The first item is a number, but item index ${e} is not (value: ${JSON.stringify(t[e])}). All items should be of the same type.`}if(e.x instanceof Date)return"The first item is a date, which is not a supported format type. Please re-submit with the ms version of the date. For example: `myDate.valueOf()`.";if(d(e)){const e=t.findIndex((t=>!d(t)));return-1===e?"":`The first item is a simple data point (x/y), but item index ${e} is not (value: ${JSON.stringify(t[e])}). All items should be of the same type.`}if(g(e)){const e=t.findIndex((t=>!g(t)));return-1===e?"":`The first item is an alternate axis data point (x/y2), but item index ${e} is not (value: ${JSON.stringify(t[e])}). All items should be of the same type.`}if(y(e)){const e=t.findIndex((t=>!y(t)));return-1===e?"":`The first item is an OHLC data point (x/open/high/low/close), but item index ${e} is not (value: ${JSON.stringify(t[e])}). All items should be of the same type.`}if(_(e)){const e=t.findIndex((t=>!_(t)));if(e>=0)return`The first item is a box data point (x/low/q1/median/q3/high), but item index ${e} is not (value: ${JSON.stringify(t[e])}). All items should be of the same type.`;const i=t.findIndex((t=>"outlier"in t&&!Array.isArray(t.outlier)));if(i>=0)return`At least one box provided an outlier that was not an array. An outliers should be an array of numbers. The box is question is: ${JSON.stringify(t[i])}`;const r=t.findIndex((t=>"outlier"in t&&t.outlier.findIndex((t=>"number"!=typeof t))>=0));return r>=0?`At least one box has a non-numeric outlier. Box outliers must be an array of numbers. The box in question is: ${JSON.stringify(t[r])}`:""}if(f(e)){const e=t.findIndex((t=>!f(t)));return-1===e?"":`The first item is a high low data point (x/high/low), but item index ${e} is not (value: ${JSON.stringify(t[e])}). All items should be of the same type.`}return`The first item is of an unrecognized type (value: ${JSON.stringify(e)}). Supported types are: number, simple data point (x/y), alternative axis data point (x/y2), and high low data point (x/high/low).`},ci=t=>t.element instanceof HTMLImageElement&&void 0===t.cc?"Error: If the target element is an IMG element, a CC property must be specified.":"",pi=(t,e={})=>{const{root:i}=e;if(!i)return"";if(Array.isArray(t))return`Unexpected data structure. options.root="${i}", but "${i}" is not a key in data.\n        Data is: ${JSON.stringify(t).replace(/^.{0,100}(.+)$/,"...")}`;const r=Object.keys(t);if(!r.includes(i))return`Root points to group '${i}', but that group doesn't exist. Valid root values are: ${r.join(", ")}.`;const a=Object.values(t);for(let t=0;t<a.length;t++){const e=a[t],n=r[t],o=t=>t!==n&&t!==i;if(Array.isArray(e))for(let t=0;t<e.length;t++){if("object"!=typeof e[t])continue;const{children:a}=e[t];if(a){if("string"!=typeof a)return`Error: Group '${n}', point index ${t}: Expected property 'children' to be of type string. Instead, it was of type '${typeof a}'.`;if(!r.includes(a))return`Error: Group '${n}', point index ${t}: Property 'children' has value '${a}'. Unfortunately, that is not a valid value. Valid values are: ${r.filter(o).join(", ")}.`;if(a===n)return`Error: Group '${n}', point index ${t}: Property 'children' has value '${a}'. Unfortunately, children are not allowed to refer to their own group. Valid values are: ${r.filter(o).join(", ")}.`;if(a===i)return`Error: Group '${n}', point index ${t}: Property 'children' is pointing to the root value, which is invalid. Valid values are: ${r.filter(o).join(", ")}.`}}}return""};var mi;!function(t){t.NEXT_POINT="next_point",t.PREVIOUS_POINT="previous_point",t.PLAY_RIGHT="play_right",t.PLAY_LEFT="play_left",t.PLAY_FORWARD_CATEGORY="play_forward_category",t.PLAY_BACKWARD_CATEGORY="play_backward_category",t.STOP_PLAY="stop_play",t.PREVIOUS_STAT="previous_stat",t.NEXT_STAT="next_stat",t.PREVIOUS_CATEGORY="previous_category",t.NEXT_CATEGORY="next_category",t.FIRST_CATEGORY="first_category",t.LAST_CATEGORY="last_category",t.FIRST_POINT="first_point",t.LAST_POINT="last_point",t.REPLAY="replay",t.SELECT="select",t.PREVIOUS_TENTH="previous_tenth",t.NEXT_TENTH="next_tenth",t.GO_MINIMUM="go_minimum",t.GO_MAXIMUM="go_maximum",t.GO_TOTAL_MINIMUM="go_total_minimum",t.GO_TOTAL_MAXIMUM="go_total_maximum",t.DRILL_DOWN="drill_down",t.DRILL_UP="drill_up",t.GO_TO_ROOT="go_to_root",t.SPEED_UP="speed_up",t.SLOW_DOWN="slow_down",t.MONITOR="monitor",t.HELP="help",t.OPTIONS="options",t.INFO="info"}(mi||(mi={}));let di=null;class gi{constructor(t){this._visible_group_indices=[],this._visibleGroupIndex=0,this._pointIndex=0,this._playListInterval=null,this._playListContinuous=[],this._speedRateIndex=1,this._flagNewLevel=!1,this._flagNewStat=!1,this._audioEngine=null,this._options={enableSound:!0,enableSpeech:!0,live:!1,hertzes:s,stack:!1,root:null,modifyHelpDialogText:(t,e)=>e,modifyHelpDialogKeyboardListing:(t,e,i)=>[e].concat(i)},this._monitorMode=!1,this._explicitAxes={},this._hertzClamps={upper:s.length-12,lower:21},this._silent=!1,this._outlierIndex=0,this._outlierMode=!1,this._announcePointLabelFirst=!1,this._info={},this._hierarchy=!1,this._hierarchyRoot=null,this._hierarchyBreadcrumbs=[],this._cleanUpTasks=[],[/Android/i,/webOS/i,/iPhone/i,/iPad/i,/iPod/i,/BlackBerry/i,/Windows Phone/i].some((t=>navigator.userAgent.match(t)))||(this._type=t.type,this._providedAudioEngine=t.audioEngine,this._title=t.title??"",this._chartElement=t.element,this._info=t.info??{},this._language=t.lang??Je,this._translator=new ei(this._language),this._ccElement=((t,e,i)=>{if(i)return i;const r=document.createElement("div");return t.appendChild(r),e((()=>{r.remove()})),r})(this._chartElement,(t=>{this._cleanUpTasks.push(t)}),t.cc),t?.options&&("scatter"===this._type&&(this._options.stack=!0),this._options={...this._options,...t?.options},t.options.hertzes&&(this._hertzClamps={upper:t.options.hertzes.length-1,lower:0}),t.options.translationCallback&&(this._translator.intercepterCallback=t.options.translationCallback)),(({elem:t,title:e,translationCallback:i,addCleanupTask:r})=>{if(!t.hasAttribute("alt")&&!t.hasAttribute("aria-label")){const a=e?i("description",{title:e}):i("description-untitled");t.setAttribute("aria-label",a),r((()=>t.removeAttribute("aria-label")))}t.hasAttribute("role")||(t.setAttribute("role","application"),r((()=>t.removeAttribute("role"))))})({elem:this._chartElement,title:this._title,translationCallback:(t,e)=>this._translator.translate(t,e),addCleanupTask:t=>{this._cleanUpTasks.push(t)}}),this._setData(t.data,t.axes),this._options.root&&(this._hierarchy=!0,this._hierarchyRoot=this._options.root,this._updateToNewLevel(this._groups.indexOf(this._hierarchyRoot))),this._generateSummary(),p.addAriaAttributes(this._ccElement),this._ccElement.setAttribute("lang",this._language),this._sr=new p(this._ccElement),this._availableActions=this._initializeActionMap(),this._initializeKeyActionMap(),this._startListening())}static get languages(){return ti}get _groupIndex(){return this._visible_group_indices.at(this._visibleGroupIndex)}cleanUp(){this._cleanUpTasks.forEach((t=>t()))}get _currentGroupType(){return Array.isArray(this._type)?this._type.at(this._visibleGroupIndex):this._type}get _currentDataRow(){return this._data.at(this._groupIndex)}get _movementAvailable(){return null!==this._currentDataRow}get currentPoint(){return null===this._currentDataRow?null:this._currentDataRow.at(this._pointIndex)}get _currentGroupName(){return this._groups.at(this._groupIndex)}_clearPlay(){clearInterval(this._playListInterval),this._playListContinuous.forEach((t=>{clearTimeout(t)})),this._playListContinuous=[]}_initializeActionMap(){return{next_point:()=>{this._clearPlay(),this._movementAvailable&&this._moveRight()&&this._playAndSpeak()},previous_point:()=>{this._clearPlay(),this._movementAvailable&&this._moveLeft()&&this._playAndSpeak()},drill_down:()=>{this._clearPlay(),this._drillDown()&&this._playAndSpeak()},drill_up:()=>{this._clearPlay(),this._drillUp()&&this._playAndSpeak()},go_to_root:()=>{this._clearPlay(),this._drillToRoot()&&this._playAndSpeak()},play_right:()=>{this._clearPlay(),this._movementAvailable&&this._playRight()},play_left:()=>{this._clearPlay(),this._movementAvailable&&this._playLeft()},play_forward_category:()=>{if(this._clearPlay(),!this._movementAvailable)return;const t=this._visible_group_indices.length-1;this._playListInterval=setInterval((()=>{this._visibleGroupIndex>=t?(this._visibleGroupIndex=t,this._clearPlay()):(this._visibleGroupIndex++,this._playCurrent())}),l.at(this._speedRateIndex)),this._playCurrent()},play_backward_category:()=>{if(this._clearPlay(),!this._movementAvailable)return;this._playListInterval=setInterval((()=>{this._visibleGroupIndex<=0?(this._visibleGroupIndex=0,this._clearPlay()):(this._visibleGroupIndex--,this._playCurrent())}),l.at(this._speedRateIndex)),this._playCurrent()},stop_play:()=>{this._clearPlay()},previous_stat:()=>{this._clearPlay(),this._movementAvailable&&this._movePrevStat()&&(this._flagNewStat=!0,this._playAndSpeak())},next_stat:()=>{this._clearPlay(),this._movementAvailable&&this._moveNextStat()&&(this._flagNewStat=!0,this._playAndSpeak())},previous_category:()=>{if(this._clearPlay(),0===this._visibleGroupIndex)return;const t=this.currentPoint?.x??this._pointIndex;this._visibleGroupIndex--,this._announceCategoryChange(),this._cleanupAfterCategoryChange(t),this._onFocus()},next_category:()=>{if(this._clearPlay(),this._visibleGroupIndex===this._visible_group_indices.length-1)return;const t=this.currentPoint.x;this._visibleGroupIndex++,this._announceCategoryChange(),this._cleanupAfterCategoryChange(t),this._onFocus()},first_category:()=>{this._clearPlay(),this._visibleGroupIndex=0,this._playAndSpeak()},last_category:()=>{this._clearPlay(),this._visibleGroupIndex=this._visible_group_indices.length-1,this._playAndSpeak()},first_point:()=>{this._clearPlay(),this._movementAvailable&&(this._pointIndex=0,this._playAndSpeak())},last_point:()=>{this._clearPlay(),this._movementAvailable&&(this._pointIndex=this._currentDataRow.length-1,this._playAndSpeak())},replay:()=>{this._clearPlay(),this._movementAvailable&&(this._flagNewStat=!0,this._playAndSpeak())},select:()=>{this._movementAvailable&&this._options.onSelectCallback?.({slice:this._currentGroupName,index:this._pointIndex,point:this.currentPoint})},previous_tenth:()=>{this._clearPlay(),this._movementAvailable&&(this._moveLeftTenths(),this._playAndSpeak())},next_tenth:()=>{this._clearPlay(),this._movementAvailable&&(this._moveRightTenths(),this._playAndSpeak())},go_minimum:()=>{this._clearPlay(),this._movementAvailable&&this._moveToMinimum()&&this._playAndSpeak()},go_maximum:()=>{this._clearPlay(),this._movementAvailable&&this._moveToMaximum()&&this._playAndSpeak()},go_total_maximum:()=>{this._clearPlay();const t=this._metadataByGroup.filter(((t,e)=>this._visible_group_indices.includes(e))).reduce(((t,e)=>t.maximumValue>e.maximumValue?t:e));t&&(this._visibleGroupIndex=this._visible_group_indices.indexOf(t.index),this._pointIndex=t.maximumPointIndex,this._playAndSpeak())},go_total_minimum:()=>{this._clearPlay();const t=this._metadataByGroup.filter(((t,e)=>this._visible_group_indices.includes(e))).reduce(((t,e)=>t.minimumValue<e.minimumValue?t:e));t&&(this._visibleGroupIndex=this._visible_group_indices.indexOf(t.index),this._pointIndex=t.minimumPointIndex,this._playAndSpeak())},speed_up:()=>{this._clearPlay(),this._speedRateIndex<l.length-1&&this._speedRateIndex++,this._sr.render(this._translator.translate("kbr-speed",{rate_in_ms:l.at(this._speedRateIndex)}))},slow_down:()=>{this._clearPlay(),this._speedRateIndex>0&&this._speedRateIndex--,this._sr.render(this._translator.translate("kbr-speed",{rate_in_ms:l.at(this._speedRateIndex)}))},monitor:()=>{this._options.live?(this._monitorMode=!this._monitorMode,this._sr.render(this._translator.translate("monitoring",{switch:this._monitorMode}))):this._sr.render(this._translator.translate("kbr-not-live"))},help:()=>{this._clearPlay(),this._keyEventManager.launchHelpDialog(this._language,((t,e)=>this._translator.translate(t,e)))},options:()=>{this._checkAudioEngine(),(({language:t,upper:e,lower:i,speedIndex:r,continuousMode:a,labelPosition:n,translationCallback:o},l,u)=>{const h=document.createElement("dialog");h.classList.add("chart2music-dialog"),h.classList.add("chart2music-option-dialog"),h.setAttribute("lang",t);const c=o("options-title");h.setAttribute("aria-label",c),h.appendChild(document.createElement("h1")).textContent=c;const p=h.appendChild(document.createElement("p"));p.textContent=o("options-frontmatter"),p.tabIndex=0;const m=h.appendChild(document.createElement("form"));let d,g,f;m.id="optionForm",d=m.appendChild(document.createElement("div")),g=d.appendChild(document.createElement("label")),g.appendChild(document.createTextNode(o("options-hertz-lower")+":")),f=g.appendChild(document.createElement("input")),f.type="range",f.min="0",f.max=(e-1).toString(),f.step="1",f.id="lowerRange",f.value=i.toString(),d=m.appendChild(document.createElement("div")),g=d.appendChild(document.createElement("label")),g.appendChild(document.createTextNode(o("options-hertz-upper")+":")),f=g.appendChild(document.createElement("input")),f.type="range",f.min=(i+1).toString(),f.max=(s.length-1).toString(),f.step="1",f.id="upperRange",f.value=e.toString(),d=m.appendChild(document.createElement("div")),g=d.appendChild(document.createElement("label")),g.appendChild(document.createTextNode(o("options-speed-label")+":")),f=g.appendChild(document.createElement("input")),f.type="range",f.min="0",f.max="4",f.id="speedRange",f.value=r.toString(),d=m.appendChild(document.createElement("div")),g=d.appendChild(document.createElement("label")),f=g.appendChild(document.createElement("input")),f.type="checkbox",f.id="global",f.defaultChecked=!0,g.appendChild(document.createTextNode(o("options-set-global"))),d=m.appendChild(document.createElement("div")),g=d.appendChild(document.createElement("label")),f=g.appendChild(document.createElement("input")),f.type="checkbox",f.id="continuous",f.defaultChecked=a,g.appendChild(document.createTextNode(o("options-use-continuous"))),d.appendChild(document.createElement("br")),d.appendChild(document.createTextNode(o("options-continuous-descr"))),d=m.appendChild(document.createElement("div"));const y=d.appendChild(document.createElement("fieldset"));y.appendChild(document.createElement("label")).appendChild(document.createTextNode(o("options-point-labels"))),g=y.appendChild(document.createElement("label")),f=g.appendChild(document.createElement("input")),f.type="radio",f.name="point-labels",f.value="before",f.defaultChecked=n,g.appendChild(document.createTextNode(o("options-point-labels-before"))),y.appendChild(document.createElement("br")),g=y.appendChild(document.createElement("label")),f=g.appendChild(document.createElement("input")),f.type="radio",f.name="point-labels",f.value="after",f.defaultChecked=!n,g.appendChild(document.createTextNode(o("options-point-labels-after"))),f=m.appendChild(document.createElement("input")),f.type="submit",f.id="save",f.value=o("save");const _=h.querySelector("#lowerRange"),b=h.querySelector("#upperRange"),v=h.querySelector("#speedRange"),x=h.querySelector("#global"),k=h.querySelector("#continuous"),A=()=>{const t=Number(_.value),e=Number(b.value),i=Number(v.value),r=x.checked,a=k.checked,n="before"===h.querySelector("input[name='point-labels']:checked").value;l(t,e,i,a,n),window&&r&&(window.__chart2music_options__||(window.__chart2music_options__={}),window.__chart2music_options__={_hertzClamps:{lower:t,upper:e}}),h.close()};Array.from(h.querySelectorAll("input")).forEach((t=>{t.addEventListener("keydown",(t=>{"Enter"===t.key&&(t.preventDefault(),t.stopPropagation(),A())}))})),h.querySelector("#optionForm").addEventListener("submit",(t=>{t.preventDefault(),A()})),h.querySelector("#save").addEventListener("click",(t=>{t.preventDefault(),A()})),u&&(_.addEventListener("change",(()=>{u(Number(_.value)),b.min=String(Number(_.value)+1)})),b.addEventListener("change",(()=>{u(Number(b.value)),_.max=String(Number(b.value)-1)}))),document.body.appendChild(h),h.showModal(),h.focus(),h.addEventListener("close",(()=>{h.parentElement.removeChild(h)}))})({...this._hertzClamps,speedIndex:this._speedRateIndex,continuousMode:this._xAxis.continuous,labelPosition:this._announcePointLabelFirst,language:this._language,translationCallback:(t,e)=>this._translator.translate(t,e)},((t,e,i,r,a)=>{this._setHertzClamps(t,e),this._speedRateIndex!==i&&(this._speedRateIndex=i,this._sr.render(this._translator.translate("kbr-speed",{rate_in_ms:l.at(this._speedRateIndex)}))),this._xAxis.continuous!==r&&(this._xAxis.continuous=r,this._generateSummary()),this._announcePointLabelFirst=a}),(t=>{this._audioEngine?.playDataPoint(this._options.hertzes.at(t),0,u)}))},info:()=>{((t,e)=>{const i=document.createElement("dialog");i.classList.add("chart2music-dialog"),i.classList.add("chart2music-info-dialog");const r=e("info-title");i.setAttribute("aria-label",r);const a=i.appendChild(document.createElement("h1"));if(a.tabIndex=0,a.textContent=r,"notes"in t){i.appendChild(document.createElement("h2")).textContent=e("info-notes");const r=i.appendChild(document.createElement("ul"));t.notes.forEach((t=>{r.appendChild(document.createElement("li")).textContent=t}))}document.body.appendChild(i),i.showModal(),i.focus(),i.addEventListener("close",(()=>{i.parentElement.removeChild(i)}))})(this._info,((t,e)=>this._translator.translate(t,e)))}}}_cleanupAfterCategoryChange(t){if(null!==this._currentDataRow){if(this._xAxis.continuous&&(!this.currentPoint||this.currentPoint.x!==t)){const e=this._currentDataRow.map((({x:e})=>Math.abs(t-e))),i=Math.min(...e),r=e.indexOf(i);this._pointIndex=r}this._pointIndex>=this._currentDataRow.length&&(this._pointIndex=this._currentDataRow.length-1)}}_generateSummary(){this._chartSummary=(({title:t,groupCount:e,live:i=!1,hierarchy:r=!1,translationCallback:a})=>{const n=["summ","chart"];return i&&n.push("live"),r&&n.push("hier"),e>1&&n.push("group"),t.length>0&&n.push("title"),a(n.join("-"),{groupCount:e,title:t})})({title:this._title,groupCount:this._visible_group_indices.length,live:this._options.live,hierarchy:this._hierarchy,translationCallback:(t,e)=>this._translator.translate(t,e)}),this._instructions=(({hierarchy:t,live:e,hasNotes:i,translationCallback:r})=>{const a=[N([r("instructionArrows"),t&&r("instructionHierarchy"),e&&r("instructionLive"),r("instructionHotkeys")]," ")];return i&&a.unshift("Has notes."),a.join(" ")})({live:this._options.live,hierarchy:this._hierarchy,hasNotes:this._info?.notes?.length>0,translationCallback:(t,e)=>this._translator.translate(t,e)})}_createFrequencyTable(t){const e={};return this._data.forEach(((i,r)=>{t&&!t(i,r)||i.forEach((t=>{d(t)&&(t.x in e||(e[t.x]=0),e[t.x]+=t.y)}))})),Object.entries(e).map((([t,e])=>({x:Number(t),y:e})))}_buildStackBar(){const t=this._createFrequencyTable();this._data.unshift(t),this._groups.unshift("All"),this._visible_group_indices.push(this._groups.length-1)}_buildStackScatter(){const t=this._data.flat();this._data.unshift(t),this._groups.unshift("All"),this._visible_group_indices.push(this._groups.length-1)}_setData(t,e){if(this._explicitAxes={x:{...this._explicitAxes.x??{},...e?.x??{}},y:{...this._explicitAxes.y??{},...e?.y??{}},y2:{...this._explicitAxes.y2??{},...e?.y2??{}}},this._initializeData(t),this._options.stack&&this._data.length>1&&("scatter"===this._type?this._buildStackScatter():this._buildStackBar()),this._xAxis=S({data:this._data,axisName:"x",userAxis:this._explicitAxes.x,filterGroupIndex:this._groups.indexOf(this._options.root)}),this._yAxis=S({data:this._data,axisName:"y",userAxis:this._explicitAxes.y,filterGroupIndex:this._groups.indexOf(this._options.root)}),(({data:t,axisName:e})=>void 0!==t.filter(A).find((t=>t.find((t=>e in t)))))({data:this._data,axisName:"y2"})&&(this._y2Axis=S({data:this._data,axisName:"y2",userAxis:this._explicitAxes.y2})),"scatter"!==this._type||"continuous"in this._explicitAxes.x||(this._xAxis.continuous=!0),this._xAxis.continuous&&this._data.forEach(((t,e)=>{this._data[e]=t.sort(((t,e)=>{if(t.x<e.x)return-1;if(t.x>e.x)return 1;if("y"in t&&"y"in e){if(t.y<e.y)return-1;if(t.y>e.y)return 1}return 0}))})),this._info.annotations?.length>0){const t=this._info.annotations.map((({x:t,label:e})=>({x:t,label:e,y:NaN,type:"annotation",custom:{datasetIndex:0,index:0}})));this._data.forEach(((e,i)=>{t.forEach((t=>{const r=e.findIndex((e=>e.x>=t.x));-1!==r?0!==r?this._data[i].splice(r,0,t):this._data[i].unshift(t):this._data[i].push(t)}))}))}this._metadataByGroup=(t=>t.map(((t,e)=>{if(null===t)return{index:e,minimumPointIndex:null,maximumPointIndex:null,minimumValue:NaN,maximumValue:NaN,tenths:NaN,availableStats:[],statIndex:-1,inputType:null,size:0};let i=[],r=[];d(t.at(0))?i=t.map((({y:t})=>t)):g(t.at(0))?i=t.map((({y2:t})=>t)):y(t.at(0))?r=["open","high","low","close"]:_(t.at(0))?r=["high","q3","median","q1","low","outlier"]:f(t.at(0))&&(r=["high","low"]);const a=i.filter((t=>!isNaN(t))),[n,o]=a.length>0?[Math.min(...a),Math.max(...a)]:[-1,-1],s=Math.round(t.length/10);return{index:e,minimumPointIndex:i.indexOf(n),maximumPointIndex:i.indexOf(o),minimumValue:n,maximumValue:o,tenths:s,availableStats:r,statIndex:-1,inputType:T(t.at(0)),size:t.length}})))(this._data),this._metadataByGroup=((t,e)=>{if(Array.isArray(e)&&"number"==typeof e[0])t[0].inputType="number";else{let i=0;for(const r in e){const a=e[r];null!==a&&Array.isArray(a)&&"number"===T(a.at(0))&&(t[i].inputType="number"),i++}}return t})(this._metadataByGroup,t),this._generateSummary()}setData(t,e,i,r){const a=this.getCurrent().stat;this._setData(t,e),this._pointIndex=Math.min(Math.max(i??0,0),this._data[0].length-1),this._visibleGroupIndex=this._visible_group_indices[Math.max(this._groups.indexOf(r),0)],""!==a&&(this._metadataByGroup[this._groupIndex].statIndex=Math.max(0,this._metadataByGroup[this._groupIndex].availableStats.indexOf(a))),this._title?this._sr.render(this._translator.translate("updated",{title:this._title})):this._sr.render(this._translator.translate("updated-untitled"))}setCategoryVisibility(t,e){const i=this._groups.indexOf(t);if(-1===i)return`Unknown group named "${t}". Available groups are: "${this._groups.join('", "')}".`;const r=this._visible_group_indices.indexOf(i);if(e)this._visible_group_indices.includes(i)||(this._visible_group_indices.push(i),this._visible_group_indices.sort(),this._sr.render(this._translator.translate("updated",{title:this._title||"Chart"})));else if(this._visible_group_indices.includes(i)){if(1===this._visible_group_indices.length)return`Group "${t}" can not be hidden. It is the last visible group, and there must always be at least one group visible.`;this._visible_group_indices.splice(this._visible_group_indices.indexOf(i),1),this._sr.render(this._translator.translate("updated",{title:this._title||"Chart"}))}return this._options.stack&&"All"===this._groups[0]&&(this._data[0]=this._createFrequencyTable(((t,e)=>0!==e&&this._visible_group_indices.includes(e)))),this._visibleGroupIndex>=this._visible_group_indices.length&&(this._visibleGroupIndex=this._visible_group_indices.length-1),this._visibleGroupIndex===r&&(this._silent=!0,this._availableActions.previous_category(),r>0&&this._availableActions.next_category(),this._silent=!1),""}getCurrent(){const{statIndex:t,availableStats:e}=this._metadataByGroup[this._groupIndex];return{index:this._pointIndex,group:this._currentGroupName,point:this.currentPoint,stat:e[t]??""}}_shrinkToMaxWidth(){if(void 0===this._options.maxWidth)return;let t=!1,e=!1,i=!1;for(let r=0;r<this._data.length;r++){if(this._data[r].length<=this._options.maxWidth)continue;const a=this._data[r].shift();this._pointIndex--,this._xAxis.minimum!==a.x&&this._xAxis.maximum!==a.x||(t=!0),e=!0,g(a)&&(i=!0);"number"===this._metadataByGroup[r].inputType&&this._data[r].forEach(((t,e)=>{this._data[r][e].x=e}))}t&&(this._xAxis.minimum=E({data:this._data,prop:"x"}),this._xAxis.maximum=w({data:this._data,prop:"x"})),e&&(this._yAxis.minimum=E({data:this._data,prop:"y"}),this._yAxis.maximum=w({data:this._data,prop:"y"})),i&&(this._y2Axis.minimum=E({data:this._data,prop:"y2"}),this._y2Axis.maximum=w({data:this._data,prop:"y2"})),this._pointIndex<0&&(this._pointIndex=0)}appendData(t,e){const i=e?this._groups.indexOf(e):0;if(-1===i)return{err:`Error adding data to unknown group name "${e}". ${1===this._groups.length?"There are no group names.":`Valid groups: ${this._groups.join(", ")}`} `};const r=T(t),a=this._metadataByGroup[i].inputType;if(r!==a)return{err:`Mismatched type error. Trying to add data of type ${r} to target data of type ${a}.`};const n="number"==typeof t?{x:this._data[i].length,y:t}:t;if(this._data[i].push(n),this._xAxis.maximum=Math.max(this._xAxis.maximum,n.x),d(n)?(this._yAxis.maximum=Math.max(this._yAxis.maximum,n.y),this._yAxis.minimum=Math.min(this._yAxis.minimum,n.y)):y(n)?(this._yAxis.maximum=Math.max(this._yAxis.maximum,n.open,n.high,n.low,n.close),this._yAxis.minimum=Math.min(this._yAxis.minimum,n.open,n.high,n.low,n.close)):f(n)&&(this._yAxis.maximum=Math.max(this._yAxis.maximum,n.high,n.low),this._yAxis.minimum=Math.min(this._yAxis.minimum,n.high,n.low)),this._monitorMode){const{statIndex:t,availableStats:e}=this._metadataByGroup[i];this._playDataPoint(n,t,e)}return this._shrinkToMaxWidth(),{err:null,data:n}}_initializeKeyActionMap(){this._keyEventManager=new c(this._chartElement,this._options.modifyHelpDialogText,this._options.modifyHelpDialogKeyboardListing),this._keyEventManager.registerKeyEvents([{title:this._translator.translate("key-point-next"),key:"ArrowRight",keyDescription:this._translator.translate("key-descr-ArrowRight"),callback:this._availableActions.next_point},{title:this._translator.translate("key-point-prev"),key:"ArrowLeft",keyDescription:this._translator.translate("key-descr-ArrowLeft"),callback:this._availableActions.previous_point},{title:this._translator.translate("key-point-first"),key:"Home",description:this._translator.translate("key-descr-alt-Home"),callback:this._availableActions.first_point},{title:this._translator.translate("key-point-last"),key:"End",description:this._translator.translate("key-descr-alt-Home"),callback:this._availableActions.last_point},{title:this._translator.translate("key-play-fwd"),key:"Shift+End",keyDescription:this._translator.translate("key-descr-Shift+End"),description:this._translator.translate("key-descr-alt-Shift+End"),callback:this._availableActions.play_right},{title:this._translator.translate("key-play-back"),key:"Shift+Home",keyDescription:this._translator.translate("key-descr-Shift+Home"),description:this._translator.translate("key-descr-alt-Shift+Home"),callback:this._availableActions.play_left},{title:this._translator.translate("key-play-cancel"),key:"Ctrl+Control",keyDescription:this._translator.translate("key-descr-ctrl"),callback:this._availableActions.stop_play},{title:this._translator.translate("key-speed-incr"),caseSensitive:!1,key:"q",keyDescription:"Q",callback:this._availableActions.speed_up},{title:this._translator.translate("key-speed-decr"),caseSensitive:!1,key:"e",keyDescription:"E",callback:this._availableActions.slow_down},{title:this._translator.translate("key-replay"),key:" ",keyDescription:this._translator.translate("key-descr-spacebar"),callback:this._availableActions.replay},{title:this._translator.translate("key-select"),key:"Enter",callback:this._availableActions.select},{title:this._translator.translate("key-tenth-next"),key:"Ctrl+ArrowRight",keyDescription:this._translator.translate("key-descr-Ctrl+ArrowRight"),callback:this._availableActions.next_tenth},{title:this._translator.translate("key-tenth-prev"),key:"Ctrl+ArrowLeft",keyDescription:this._translator.translate("key-descr-Ctrl+ArrowLeft"),callback:this._availableActions.previous_tenth},"matrix"===this._type?{title:this._translator.translate("key-group-next"),key:"ArrowDown",keyDescription:this._translator.translate("key-descr-ArrowDown"),callback:this._availableActions.next_category}:{title:this._translator.translate("key-stat-next"),key:"ArrowDown",keyDescription:this._translator.translate("key-descr-ArrowDown"),callback:this._availableActions.next_stat},"matrix"===this._type?{title:this._translator.translate("key-group-prev"),key:"ArrowUp",keyDescription:this._translator.translate("key-descr-ArrowUp"),callback:this._availableActions.previous_category}:{title:this._translator.translate("key-stat-prev"),key:"ArrowUp",keyDescription:this._translator.translate("key-descr-ArrowUp"),callback:this._availableActions.previous_stat},!this._hierarchy&&{title:this._translator.translate("key-group-next"),key:"PageDown",keyDescription:this._translator.translate("key-descr-PageDown"),description:this._translator.translate("key-descr-alt-PageDown"),callback:this._availableActions.next_category},!this._hierarchy&&{title:this._translator.translate("key-group-prev"),key:"PageUp",keyDescription:this._translator.translate("key-descr-PageUp"),description:this._translator.translate("key-descr-alt-PageUp"),callback:this._availableActions.previous_category},this._hierarchy?{title:this._translator.translate("key-hier-root"),key:"Alt+PageUp",keyDescription:this._translator.translate("key-descr-Alt+PageUp"),description:this._translator.translate("key-descr-alt-Alt+PageUp"),callback:this._availableActions.go_to_root}:{title:this._translator.translate("key-group-first"),key:"Alt+PageUp",keyDescription:this._translator.translate("key-descr-Alt+PageUp"),description:this._translator.translate("key-descr-alt-Alt+PageUp"),callback:this._availableActions.first_category},!this._hierarchy&&{title:this._translator.translate("key-group-last"),key:"Alt+PageDown",keyDescription:this._translator.translate("key-descr-Alt+PageDown"),description:this._translator.translate("key-descr-alt-Alt+PageDown"),callback:this._availableActions.last_category},!this._hierarchy&&{title:this._translator.translate("key-play-fwd-group"),key:"Shift+PageDown",keyDescription:this._translator.translate("key-descr-Shift+PageDown"),description:this._translator.translate("key-descr-alt-Shift+PageDown"),callback:this._availableActions.play_forward_category},!this._hierarchy&&{title:this._translator.translate("key-play-back-group"),key:"Shift+PageUp",keyDescription:this._translator.translate("key-descr-Shift+PageUp"),description:this._translator.translate("key-descr-alt-Shift+PageUp"),callback:this._availableActions.play_backward_category},{title:this._translator.translate(`key-${this._hierarchy?"level":"group"}-min`),key:"[",callback:this._availableActions.go_minimum},{title:this._translator.translate(`key-${this._hierarchy?"level":"group"}-max`),key:"]",callback:this._availableActions.go_maximum},!this._hierarchy&&{title:this._translator.translate("key-chart-min"),key:"Ctrl+[",keyDescription:this._translator.translate("key-descr-Ctrl+["),callback:this._availableActions.go_total_minimum},!this._hierarchy&&{title:this._translator.translate("key-chart-max"),key:"Ctrl+]",keyDescription:this._translator.translate("key-descr-Ctrl+]"),callback:this._availableActions.go_total_maximum},this._hierarchy&&{title:this._translator.translate("key-level-decr"),key:"Alt+ArrowDown",keyDescription:this._translator.translate("key-descr-Alt+ArrowDown"),callback:this._availableActions.drill_down},this._hierarchy&&{title:this._translator.translate("key-level-incr"),key:"Alt+ArrowUp",keyDescription:this._translator.translate("key-descr-Alt+ArrowUp"),callback:this._availableActions.drill_up},{title:this._translator.translate("key-monitor-toggle"),caseSensitive:!1,key:"m",keyDescription:"M",callback:this._availableActions.monitor},{title:this._translator.translate("key-dialog-help"),caseSensitive:!1,key:"h",keyDescription:"H",callback:this._availableActions.help},{title:this._translator.translate("key-dialog-options"),caseSensitive:!1,key:"o",keyDescription:"O",callback:this._availableActions.options}].filter((t=>Boolean(t)))),this._info.notes?.length>0&&this._keyEventManager.registerKeyEvent({title:this._translator.translate("info-open"),caseSensitive:!1,key:"i",callback:this._availableActions.info});const t=t=>{t({slice:this._currentGroupName,index:this._pointIndex,point:this.currentPoint})};this._options.customHotkeys?.forEach((e=>{this._keyEventManager.registerKeyEvent({...e,key:h(e.key),callback:()=>{t(e.callback)}})})),this._cleanUpTasks.push((()=>{this._keyEventManager.cleanup()}))}_setHertzClamps(t,e){this._hertzClamps.lower=t,this._hertzClamps.upper=e}_initializeData(t){if(!Array.isArray(t))return this._groups=Object.keys(t),this._visible_group_indices=this._groups.map(((t,e)=>e)),void(this._data=Object.values(t).map((t=>I(t))));this._groups=[""],this._visible_group_indices=[0],this._data=[I(t)]}generateGroupSummary(){if("unsupported"===this._currentGroupType)return this._translator.translate("group-unknown",{title:this._currentGroupName});const t=["chart",this._currentGroupType];this._currentGroupName.length>0&&t.push("labeled");return[this._translator.translate(t.join("-"),{label:this._currentGroupName}),H({axisLetter:"x",axis:this._xAxis,translationCallback:(t,e)=>this._translator.translate(t,e)}),g(this.currentPoint)?H({axisLetter:"y2",axis:this._y2Axis,translationCallback:(t,e)=>this._translator.translate(t,e)}):H({axisLetter:"y",axis:this._yAxis,translationCallback:(t,e)=>this._translator.translate(t,e)})].join(" ")}_startListening(){const t=()=>{if(this._sr.clear(),this._options.live&&this._generateSummary(),this._options.enableSpeech&&this._sr.render(this._chartSummary+" "+this.generateGroupSummary()+" "+this._instructions),window.__chart2music_options__?._hertzClamps){const{lower:t,upper:e}=window.__chart2music_options__._hertzClamps;this._setHertzClamps(t,e)}this._onFocus()},e=()=>{this._monitorMode=!1};this._chartElement.addEventListener("focus",t),this._chartElement.addEventListener("blur",e),this._cleanUpTasks.push((()=>{this._chartElement.removeEventListener("focus",t),this._chartElement.removeEventListener("blur",e)}))}_announceCategoryChange(){this._silent||this._sr.render(this.generateGroupSummary())}_playAndSpeak(){this._silent||(this._playCurrent(),setTimeout((()=>{this._speakCurrent(this.currentPoint)}),250))}_moveNextOutlier(){if(_(this.currentPoint)&&"outlier"in this.currentPoint){const{outlier:t}=this.currentPoint;return!(this._outlierIndex>=t.length-1)&&(this._outlierIndex++,!0)}return!1}_movePrevOutlier(){return!(!_(this.currentPoint)||!("outlier"in this.currentPoint))&&(this._outlierIndex<=0?(this._outlierIndex=0,!1):(this._outlierIndex--,!0))}_moveRight(){if(this._outlierMode)return this._moveNextOutlier();const t=this._currentDataRow.length-1;return this._pointIndex>=t?(this._pointIndex=t,!1):(this._pointIndex++,!0)}_moveLeft(){return this._outlierMode?this._movePrevOutlier():this._pointIndex<=0?(this._pointIndex=0,!1):(this._pointIndex--,!0)}_moveToMinimum(){const t=this._metadataByGroup[this._groupIndex].minimumPointIndex;return-1!==t&&(this._pointIndex=t,!0)}_moveToMaximum(){const t=this._metadataByGroup[this._groupIndex].maximumPointIndex;return-1!==t&&(this._pointIndex=t,!0)}_moveLeftTenths(){const t=this.currentPoint;if(this._outlierMode&&_(t)&&"outlier"in t){if(this._outlierIndex<=0)return this._outlierIndex=0,!1;const e=Math.round(t.outlier.length/10);return this._outlierIndex=Math.max(this._outlierIndex-e,0),!0}return 0!==this._pointIndex&&(this._pointIndex=Math.max(this._pointIndex-this._metadataByGroup[this._groupIndex].tenths,0),!0)}_moveRightTenths(){const t=this.currentPoint;if(this._outlierMode&&_(t)&&"outlier"in t){if(this._outlierIndex>=t.outlier.length-1)return this._outlierIndex=t.outlier.length-1,!1;const e=Math.round(t.outlier.length/10);return this._outlierIndex=Math.min(this._outlierIndex+e,t.outlier.length-1),!0}return this._pointIndex!==this._currentDataRow.length-1&&(this._pointIndex=Math.min(this._pointIndex+this._metadataByGroup[this._groupIndex].tenths,this._data[this._groupIndex].length-1),!0)}_checkOutlierMode(){const{statIndex:t,availableStats:e}=this._metadataByGroup[this._groupIndex];this._outlierMode=["outlier","xtremeOutlier"].includes(e[t]),this._outlierIndex=0}_movePrevStat(){const{statIndex:t}=this._metadataByGroup[this._groupIndex];return!(t<0)&&(this._metadataByGroup[this._groupIndex].statIndex=t-1,this._checkOutlierMode(),!0)}_moveNextStat(){const{statIndex:t,availableStats:e}=this._metadataByGroup[this._groupIndex];if(t>=e.length-1)return!1;this._metadataByGroup[this._groupIndex].statIndex=t+1;const i=e[this._metadataByGroup[this._groupIndex].statIndex],r=this._data[this._groupIndex][this._pointIndex];return"outlier"!==i||"outlier"in r&&Array.isArray(r.outlier)&&r.outlier.length>0?(this._checkOutlierMode(),!0):(this._metadataByGroup[this._groupIndex].statIndex--,!1)}_playLeftOutlier(){this._playListInterval=setInterval((()=>{this._outlierIndex<=0?(this._outlierIndex=0,this._clearPlay()):(this._outlierIndex--,this._playCurrent())}),l.at(this._speedRateIndex)),this._playCurrent()}_playLeft(){if(this._outlierMode)return void this._playLeftOutlier();if(this._xAxis.continuous)return void this._playLeftContinuous();this._playListInterval=setInterval((()=>{this._pointIndex<=0?(this._pointIndex=0,this._clearPlay()):(this._pointIndex--,this._playCurrent())}),l.at(this._speedRateIndex)),this._playCurrent()}_playRightOutlier(){if(!_(this.currentPoint)||!("outlier"in this.currentPoint))return;const t=this.currentPoint.outlier?.length-1;this._playListInterval=setInterval((()=>{this._outlierIndex>=t?(this._outlierIndex=t,this._clearPlay()):(this._outlierIndex++,this._playCurrent())}),l.at(this._speedRateIndex)),this._playCurrent()}_playRightContinuous(){const t=this._pointIndex,e=this.getCurrent().point.x,i=this._currentDataRow.slice(t),r=10*l.at(this._speedRateIndex),a=this._xAxis.minimum,n=this._xAxis.maximum-a,o="linear"===this._xAxis.type?t=>(t-a)/n:t=>(Math.log10(t)-Math.log10(a))/Math.log10(n),s=o(e);i.forEach(((e,i)=>{this._playListContinuous.push(setTimeout((()=>{this._pointIndex=t+i,this._playCurrent()}),(o(e.x)-s)*r))}))}_playLeftContinuous(){const t=this._pointIndex,e=this.getCurrent().point.x,i=this._currentDataRow.slice(0,t+1),r=10*l.at(this._speedRateIndex),a=this._xAxis.minimum,n=this._xAxis.maximum-a,o="linear"===this._xAxis.type?t=>1-(t-a)/n:t=>1-(Math.log10(t)-Math.log10(a))/Math.log10(n),s=o(e);i.reverse().forEach(((e,i)=>{this._playListContinuous.push(setTimeout((()=>{this._pointIndex=t-i,this._playCurrent()}),(o(e.x)-s)*r))}))}_playRight(){if(this._outlierMode)return void this._playRightOutlier();if(this._xAxis.continuous)return void this._playRightContinuous();const t=this._currentDataRow.length-1;this._playListInterval=setInterval((()=>{this._pointIndex>=t?(this._pointIndex=t,this._clearPlay()):(this._pointIndex++,this._playCurrent())}),l.at(this._speedRateIndex)),this._playCurrent()}_updateToNewLevel(t,e=0){this._visibleGroupIndex=t,this._pointIndex=e,this._flagNewLevel=!0,this._xAxis=S({data:this._data,axisName:"x",userAxis:this._explicitAxes.x,filterGroupIndex:this._visibleGroupIndex}),this._yAxis=S({data:this._data,axisName:"y",userAxis:{...this._explicitAxes.y,minimum:0},filterGroupIndex:this._visibleGroupIndex}),this._generateSummary()}_drillDown(){const{children:t}=this.currentPoint;if(!t)return!1;const e=this._groups.indexOf(t);return this._hierarchyBreadcrumbs.push({groupIndex:this._visibleGroupIndex,pointIndex:this._pointIndex}),this._updateToNewLevel(e),!0}_drillUp(){if(0===this._hierarchyBreadcrumbs.length)return!1;const{groupIndex:t,pointIndex:e}=this._hierarchyBreadcrumbs.pop();return this._updateToNewLevel(t,e),!0}_drillToRoot(){if(0===this._hierarchyBreadcrumbs.length)return!1;const{groupIndex:t,pointIndex:e}=this._hierarchyBreadcrumbs[0];return this._updateToNewLevel(t,e),this._hierarchyBreadcrumbs=[],!0}_getHertzRange(){return this._options.hertzes.slice(this._hertzClamps.lower,this._hertzClamps.upper)}_playCurrent(){if(!this._options.enableSound)return void this._onFocus();const{statIndex:t,availableStats:e}=this._metadataByGroup[this._groupIndex];this._playDataPoint(this.currentPoint,t,e),this._onFocus()}_checkAudioEngine(){di||(di=new AudioContext),!this._audioEngine&&di&&(this._audioEngine=this._providedAudioEngine??new o(di))}_playDataPoint(e,i,r){if(this._checkAudioEngine(),!this._audioEngine)return;if(L(e.x,this._xAxis))return;const a=this._getHertzRange(),n="log10"===this._xAxis.type?k((Math.log10(e.x)-Math.log10(this._xAxis.minimum))/(Math.log10(this._xAxis.maximum)-Math.log10(this._xAxis.minimum))):k((e.x-this._xAxis.minimum)/(this._xAxis.maximum-this._xAxis.minimum));if("annotation"!==e.type){if(d(e)){if(L(e.y,this._yAxis))return;const t=b({point:e.y,min:this._yAxis.minimum,max:this._yAxis.maximum,bins:a.length-1,scale:this._yAxis.type});this._audioEngine.playDataPoint(a[t],n,u)}else if(g(e)){if(L(e.y2,this._y2Axis))return;const t=b({point:e.y2,min:this._y2Axis.minimum,max:this._y2Axis.maximum,bins:a.length-1,scale:this._y2Axis.type});this._audioEngine.playDataPoint(a[t],n,u)}else if(_(e)&&this._outlierMode&&"outlier"in e){const t=b({point:e.outlier[this._outlierIndex],min:this._yAxis.minimum,max:this._yAxis.maximum,bins:a.length-1,scale:this._yAxis.type});this._audioEngine.playDataPoint(a[t],n,u)}else if(y(e)||f(e)){if(i>=0){const t=r[i];if(L(e[t],this._yAxis))return;const o=b({point:e[t],min:this._yAxis.minimum,max:this._yAxis.maximum,bins:a.length-1,scale:this._yAxis.type});return void this._audioEngine.playDataPoint(a[o],n,u)}const t=1/(r.length+1);r.forEach(((i,r)=>{if(L(e[i],this._yAxis)||"outlier"===i)return;const o=b({point:e[i],min:this._yAxis.minimum,max:this._yAxis.maximum,bins:a.length-1,scale:this._yAxis.type});setTimeout((()=>{this._audioEngine.playDataPoint(a[o],n,u)}),l.at(this._speedRateIndex)*t*r)}))}}else this._audioEngine.playNotification(t.Annotation,n)}_onFocus(){"annotation"!==this.currentPoint?.type&&this._options?.onFocusCallback?.({slice:this._currentGroupName,index:this._pointIndex,point:this.currentPoint})}_speakCurrent(t){if(!this._options.enableSpeech)return;if("annotation"===t.type)return void this._sr.render(t.label);const{statIndex:e,availableStats:i}=this._metadataByGroup.at(this._groupIndex);this._flagNewStat&&0===i.length&&(this._flagNewStat=!1);const r=(({point:t,xFormat:e=C,yFormat:i=C,stat:r,outlierIndex:a=null,announcePointLabelFirst:n=!1,translationCallback:o})=>{if(y(t))return void 0!==r?o("point-xy",{x:e(t.x),y:i(t[r])}):o("point-xohlc",{x:e(t.x),open:i(t.open),high:i(t.high),low:i(t.low),close:i(t.close)});if(_(t)&&null!==a)return o("point-outlier",{x:e(t.x),y:t.outlier.at(a),index:a+1,count:t.outlier.length});if(_(t)||f(t)){if(void 0!==r)return o("point-xy",{x:e(t.x),y:i(t[r])});const{x:a,high:n,low:s}=t,l={x:e(a),high:i(n),low:i(s)};return"outlier"in t&&t.outlier?.length>0?o("point-xhl-outlier",{...l,count:t.outlier.length}):o("point-xhl",l)}if(d(t)){const r=[e(t.x),i(t.y)];return t.label&&(n?r.unshift(t.label):r.push(t.label)),r.join(", ")}return g(t)?o("point-xy",{x:e(t.x),y:i(t.y2)}):""})({translationCallback:(t,e)=>this._translator.translate(t,e),point:t,xFormat:P({axis:this._xAxis,translationCallback:(t,e)=>this._translator.translate(t,e)}),yFormat:P({translationCallback:(t,e)=>this._translator.translate(t,e),axis:g(t)?this._y2Axis:this._yAxis}),stat:i[e],outlierIndex:this._outlierMode?this._outlierIndex:null,announcePointLabelFirst:this._announcePointLabelFirst}),a=N([this._flagNewLevel&&this._currentGroupName,this._flagNewStat&&this._translator.translate(`stat-${i[e]??"all"}`),r,this._hierarchy&&t.children&&this._translator.translate("nodeHasChildren")],", ");this._sr.render(a),this._flagNewLevel=!1,this._flagNewStat=!1}}return t=>{const e=(t=>{const e=[];return e.push(ri(t.type)),e.push(ai(t.lang)),e.push(oi(t.element)),e.push(li(t.axes)),e.push(ui(t.data)),e.push(ci(t)),e.push(pi(t.data,t.options)),e.push(ni(t.type,t.data)),e.filter((t=>""!==t)).join("\n")})(t);return""!==e?{err:e}:{err:null,data:new gi(t)}}}();
//# sourceMappingURL=/sm/16a5edbe1caa9a318e1ae7e58a80ab645cba540d465b1511837b1946471bd292.map