1import{o as e}from"./rolldown-runtime-C0FnF6B9.js";import{t}from"./react-C21x__mS.js";import{n,t as r}from"./fast-memoize-tJqGINKI.js";import{t as i}from"./jsx-runtime-BdxMnOeJ.js";var a=e(t(),1),o=/(?:[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 s(e){let t={};return e.replace(o,e=>{let n=e.length;switch(e[0]){case`G`:t.era=n===4?`long`:n===5?`narrow`:`short`;break;case`y`:t.year=n===2?`2-digit`:`numeric`;break;case`Y`:case`u`:case`U`:case`r`:throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case`q`:case`Q`:throw RangeError("`q/Q` (quarter) patterns are not supported");case`M`:case`L`:t.month=[`numeric`,`2-digit`,`short`,`long`,`narrow`][n-1];break;case`w`:case`W`:throw RangeError("`w/W` (week) patterns are not supported");case`d`:t.day=[`numeric`,`2-digit`][n-1];break;case`D`:case`F`:case`g`:throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case`E`:t.weekday=n===4?`long`:n===5?`narrow`:`short`;break;case`e`:if(n<4)throw RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=[`short`,`long`,`narrow`,`short`][n-3];break;case`c`:if(n<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=[`short`,`long`,`narrow`,`short`][n-3];break;case`a`:t.hour12=!0;break;case`b`:case`B`:throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case`h`:t.hourCycle=`h12`,t.hour=[`numeric`,`2-digit`][n-1];break;case`H`:t.hourCycle=`h23`,t.hour=[`numeric`,`2-digit`][n-1];break;case`K`:t.hourCycle=`h11`,t.hour=[`numeric`,`2-digit`][n-1];break;case`k`:t.hourCycle=`h24`,t.hour=[`numeric`,`2-digit`][n-1];break;case`j`:case`J`:case`C`:throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case`m`:t.minute=[`numeric`,`2-digit`][n-1];break;case`s`:t.second=[`numeric`,`2-digit`][n-1];break;case`S`:case`A`:throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case`z`:t.timeZoneName=n<4?`short`:`long`;break;case`Z`:case`O`:case`v`:case`V`:case`X`:case`x`:throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return``}),t}var c=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function l(e){if(e.length===0)throw Error(`Number skeleton cannot be empty`);let t=e.split(c).filter(e=>e.length>0),n=[];for(let e of t){let t=e.split(`/`);if(t.length===0)throw Error(`Invalid number skeleton`);let[r,...i]=t;for(let e of i)if(e.length===0)throw Error(`Invalid number skeleton`);n.push({stem:r,options:i})}return n}function u(e){return e.replace(/^(.*?)-/,``)}var d=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,f=/^(@+)?(\+|#+)?[rs]?$/g,p=/(\*)(0+)|(#+)(0+)|(0+)/g,m=/^(0+)$/;function h(e){let t={};return e[e.length-1]===`r`?t.roundingPriority=`morePrecision`:e[e.length-1]===`s`&&(t.roundingPriority=`lessPrecision`),e.replace(f,function(e,n,r){return typeof r==`string`?r===`+`?t.minimumSignificantDigits=n.length:n[0]===`#`?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof r==`string`?r.length:0)):(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length),``}),t}function g(e){switch(e){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 ee(e){let t;if(e[0]===`E`&&e[1]===`E`?(t={notation:`engineering`},e=e.slice(2)):e[0]===`E`&&(t={notation:`scientific`},e=e.slice(1)),t){let n=e.slice(0,2);if(n===`+!`?(t.signDisplay=`always`,e=e.slice(2)):n===`+?`&&(t.signDisplay=`exceptZero`,e=e.slice(2)),!m.test(e))throw Error(`Malformed concise eng/scientific notation`);t.minimumIntegerDigits=e.length}return t}function te(e){return g(e)||{}}function ne(e){let t={};for(let n of e){switch(n.stem){case`percent`:case`%`:t.style=`percent`;continue;case`%x100`:t.style=`percent`,t.scale=100;continue;case`currency`:t.style=`currency`,t.currency=n.options[0];continue;case`group-off`:case`,_`:t.useGrouping=!1;continue;case`precision-integer`:case`.`:t.maximumFractionDigits=0;continue;case`measure-unit`:case`unit`:t.style=`unit`,t.unit=u(n.options[0]);continue;case`compact-short`:case`K`:t.notation=`compact`,t.compactDisplay=`short`;continue;case`compact-long`:case`KK`:t.notation=`compact`,t.compactDisplay=`long`;continue;case`scientific`:t={...t,notation:`scientific`,...n.options.reduce((e,t)=>
1({...e,...te(t)}),{})};continue;case`engineering`:t={...t,notation:`engineering`,...n.options.reduce((e,t)=>({...e,...te(t)}),{})};continue;case`notation-simple`:t.notation=`standard`;continue;case`unit-width-narrow`:t.currencyDisplay=`narrowSymbol`,t.unitDisplay=`narrow`;continue;case`unit-width-short`:t.currencyDisplay=`code`,t.unitDisplay=`short`;continue;case`unit-width-full-name`:t.currencyDisplay=`name`,t.unitDisplay=`long`;continue;case`unit-width-iso-code`:t.currencyDisplay=`symbol`;continue;case`scale`:t.scale=parseFloat(n.options[0]);continue;case`rounding-mode-floor`:t.roundingMode=`floor`;continue;case`rounding-mode-ceiling`:t.roundingMode=`ceil`;continue;case`rounding-mode-down`:t.roundingMode=`trunc`;continue;case`rounding-mode-up`:t.roundingMode=`expand`;continue;case`rounding-mode-half-even`:t.roundingMode=`halfEven`;continue;case`rounding-mode-half-down`:t.roundingMode=`halfTrunc`;continue;case`rounding-mode-half-up`:t.roundingMode=`halfExpand`;continue;case`integer-width`:if(n.options.length>1)throw RangeError(`integer-width stems only accept a single optional option`);n.options[0].replace(p,function(e,n,r,i,a,o){if(n)t.minimumIntegerDigits=r.length;else if(i&&a)throw Error(`We currently do not support maximum integer digits`);else if(o)throw Error(`We currently do not support exact integer digits`);return``});continue}if(m.test(n.stem)){t.minimumIntegerDigits=n.stem.length;continue}if(d.test(n.stem)){if(n.options.length>1)throw RangeError(`Fraction-precision stems only accept a single optional option`);n.stem.replace(d,function(e,n,r,i,a,o){return r===`*`?t.minimumFractionDigits=n.length:i&&i[0]===`#`?t.maximumFractionDigits=i.length:a&&o?(t.minimumFractionDigits=a.length,t.maximumFractionDigits=a.length+o.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),``});let e=n.options[0];e===`w`?t={...t,trailingZeroDisplay:`stripIfInteger`}:e&&(t={...t,...h(e)});continue}if(f.test(n.stem)){t={...t,...h(n.stem)};continue}let e=g(n.stem);e&&(t={...t,...e});let r=ee(n.stem);r&&(t={...t,...r})}return t}var re=function(e){return e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]=`EXPECT_ARGUMENT_CLOSING_BRACE`,e[e.EMPTY_ARGUMENT=2]=`EMPTY_ARGUMENT`,e[e.MALFORMED_ARGUMENT=3]=`MALFORMED_ARGUMENT`,e[e.EXPECT_ARGUMENT_TYPE=4]=`EXPECT_ARGUMENT_TYPE`,e[e.INVALID_ARGUMENT_TYPE=5]=`INVALID_ARGUMENT_TYPE`,e[e.EXPECT_ARGUMENT_STYLE=6]=`EXPECT_ARGUMENT_STYLE`,e[e.INVALID_NUMBER_SKELETON=7]=`INVALID_NUMBER_SKELETON`,e[e.INVALID_DATE_TIME_SKELETON=8]=`INVALID_DATE_TIME_SKELETON`,e[e.EXPECT_NUMBER_SKELETON=9]=`EXPECT_NUMBER_SKELETON`,e[e.EXPECT_DATE_TIME_SKELETON=10]=`EXPECT_DATE_TIME_SKELETON`,e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]=`UNCLOSED_QUOTE_IN_ARGUMENT_STYLE`,e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]=`EXPECT_SELECT_ARGUMENT_OPTIONS`,e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]=`EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE`,e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]=`INVALID_PLURAL_ARGUMENT_OFFSET_VALUE`,e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]=`EXPECT_SELECT_ARGUMENT_SELECTOR`,e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]=`EXPECT_PLURAL_ARGUMENT_SELECTOR`,e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]=`EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT`,e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]=`EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT`,e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]=`INVALID_PLURAL_ARGUMENT_SELECTOR`,e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]=`DUPLICATE_PLURAL_ARGUMENT_SELECTOR`,e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]=`DUPLICATE_SELECT_ARGUMENT_SELECTOR`,e[e.MISSING_OTHER_CLAUSE=22]=`MISSING_OTHER_CLAUSE`,e[e.INVALID_TAG=23]=`INVALID_TAG`,e[e.INVALID_TAG_NAME=25]=`INVALID_TAG_NAME`,e[e.UNMATCHED_CLOSING_TAG=26]=`UNMATCHED_CLOSING_TAG`,e[e.UNCLOSED_TAG=27]=`UNCLOSED_TAG`,e}({}),ie=function(e){return e[e.literal=0]=`literal`,e[e.argument=1]=`argument`,e[e.number=2]=`number`,e[e.date=3]=`date`,e[e.time=4]=`time`,e[e.select=5]=`select`,e[e.plural=6]=`plural`,e[e.pound=7]=`pound`,e[e.tag=8]=`tag`,e}({});function _(e){return e.type===0}function ae(e){return e.type===1}function v(e){return e.type===2}function y(e){return e.type===3}function b(e){return e.type===4}function x(e){return e.type===5}function S(e){return e.type===6}function oe(e){return e.type===7}function C(e){return e.type===8}function w(e){return!!(e&&typeof e==`object`&&e.type===0)}function T(e){return!!(e&&typeof e==`object`&&e.type===1)}var se=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,E={"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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,`H`],"it-CH":[`H`,`h`,`hB`],"it-IT":[`H`,`h`,`hB`],"kn-IN":[`hB`,`h`,`H`],"ku-SY":[`H`,`hB`],"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 ce(e,t){let n=``;for(let r=0;r<e.length;r++){let i=e.charAt(r);if(i===`j`){let a=0;for(;r+1<e.length&&e.charAt(r+1)===i;)a++,r++;let o=1+(a&1),s=a<2?1:3+(a>>1),c=le(t);for((c==`H`||c==`k`)&&(s=0);s-->0;)n+=`a`;for(;o-->0;)n=c+n}else n+=i===`J`?`H`:i}return n}function le(e){let t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case`h24`:return`k`;case`h23`:return`H`;case`h12`:return`h`;case`h11`:return`K`;default:throw Error(`Invalid hourCycle`)}let n=e.language,r;return n!==`root`&&(r=e.maximize().region),(E[r||``]||E[n||``]||E[`${n}-001`]||E[`001`])[0]}var ue=RegExp(`^${se.source}*`),de=RegExp(`${se.source}*$`);function D(e,t){return{start:e,end:t}}var fe=!!Object.fromEntries,pe=!!String.prototype.trimStart,me=!!String.prototype.trimEnd,he=fe?Ob
1ject.fromEntries:function(e){let t={};for(let[n,r]of e)t[n]=r;return t},ge=pe?function(e){return e.trimStart()}:function(e){return e.replace(ue,``)},_e=me?function(e){return e.trimEnd()}:function(e){return e.replace(de,``)},O=RegExp(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`,`yu`);function ve(e,t){return O.lastIndex=t,O.exec(e)[1]??``}function ye(e){if(e.length===0)return null;let t=1,n=1;for(let r=0;r<e.length;){let i=e.charCodeAt(r);switch(i){case 35:case 39:case 60:case 123:case 125:return null}if(i===10)t++,n=1,r++;else if(n++,i>=55296&&i<=56319&&r+1<e.length){let t=e.charCodeAt(r+1);r+=t>=56320&&t<=57343?2:1}else r++}return{offset:e.length,line:t,column:n}}var be=class{constructor(e,t={}){this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}parse(){if(this.offset()!==0)throw Error(`parser can only be used once`);if(this.message.length>0){let e=this.message.charCodeAt(0);if(e!==35&&e!==39&&e!==60&&e!==123&&e!==125){let e=ye(this.message);if(e){let t=this.clonePosition();return this.position=e,{val:[{type:0,value:this.message,location:D(t,this.clonePosition())}],err:null}}}}return this.parseMessage(0,``,!1)}parseMessage(e,t,n){let r=[];for(;!this.isEOF();){let i=this.char();if(i===123){let t=this.parseArgument(e,n);if(t.err)return t;r.push(t.val)}else if(i===125&&e>0)break;else if(i===35&&(t===`plural`||t===`selectordinal`)){let e=this.clonePosition();this.bump(),r.push({type:7,location:D(e,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(26,D(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&k(this.peek()||0)){let n=this.parseTag(e,t);if(n.err)return n;r.push(n.val)}else{let n=this.parseLiteral(e,t);if(n.err)return n;r.push(n.val)}}return{val:r,err:null}}parseTag(e,t){let n=this.clonePosition();this.bump();let r=this.parseTagName();if(this.bumpSpace(),this.bumpIf(`/>`))return{val:{type:0,value:`<${r}/>`,location:D(n,this.clonePosition())},err:null};if(this.bumpIf(`>`)){let i=this.parseMessage(e+1,t,!0);if(i.err)return i;let a=i.val,o=this.clonePosition();if(this.bumpIf(`</`)){if(this.isEOF()||!k(this.char()))return this.error(23,D(o,this.clonePosition()));let e=this.clonePosition();return r===this.parseTagName()?(this.bumpSpace(),this.bumpIf(`>`)?{val:{type:8,value:r,children:a,location:D(n,this.clonePosition())},err:null}:this.error(23,D(o,this.clonePosition()))):this.error(26,D(e,this.clonePosition()))}return this.error(27,D(n,this.clonePosition()))}return this.error(23,D(n,this.clonePosition()))}parseTagName(){let e=this.offset();for(this.bump();!this.isEOF()&&Se(this.char());)this.bump();return this.message.slice(e,this.offset())}parseLiteral(e,t){let n=this.clonePosition(),r=``;for(;;){let n=this.tryParseQuote(t);if(n){r+=n;continue}let i=this.tryParseUnquoted(e,t);if(i){r+=i;continue}let a=this.tryParseLeftAngleBracket();if(a){r+=a;continue}break}let i=D(n,this.clonePosition());return{val:{type:0,value:r,location:i},err:null}}tryParseLeftAngleBracket(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!xe(this.peek()||0))?(this.bump(),`<`):null}tryParseQuote(e){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),`'`;case 123:case 60:case 62:case 125:break;case 35:if(e===`plural`||e===`selectordinal`)break;return null;default:return null}this.bump();let t=[this.char()];for(this.bump();!this.isEOF();){let e=this.char();if(e===39){if(this.peek()===39)t.push(39),this.bump();else{this.bump();break}}else t.push(e);this.bump()}return String.fromCodePoint(...t)}tryParseUnquoted(e,t){if(this.isEOF())return null;let n=this.char();return n===60||n===123||n===35&&(t===`plural`||t===`selectordinal`)||n===125&&e>0?null:(this.bump(),String.fromCodePoint(n))}parseArgument(e,t){let n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(1,D(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(2,D(n,this.clonePosition()));let r=this.parseIdentifierIfPossible().value;if(!r)return this.error(3,D(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(1,D(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:1,value:r,location:D(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(1,D(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(3,D(n,this.clonePosition()))}}parseIdentifierIfPossible(){let e=this.clonePosition(),t=this.offset(),n=ve(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:D(e,this.clonePosition())}}parseArgumentOptions(e,t,n,r){let i=this.clonePosition(),a=this.parseIdentifierIfPossible().value,o=this.clonePosition();switch(a){case``:return this.error(4,D(i,o));case`number`:case`date`:case`time`:{this.bumpSpace();let e=null;if(this.bumpIf(`,`)){this.bumpSpace();let t=this.clonePosition(),n=this.parseSimpleArgStyleIfPossible();if(n.err)return n;let r=_e(n.val);if(r.length===0)return this.error(6,D(this.clonePosition(),this.clonePosition()));e={style:r,styleLocation:D(t,this.clonePosition())}}let t=this.tryParseArgumentClose(r);if(t.err)return t;let i=D(r,this.clonePosition());if(e&&e.style.startsWith(`::`)){let t=ge(e.style.slice(2));if(a===`number`){let r=this.parseNumberSkeletonFromString(t,e.styleLocation);return r.err?r:{val:{type:2,value:n,location:i,style:r.val},err:null}}{if(t.length===0)return this.error(10,i);let r=t;this.locale&&(r=ce(t,this.locale));let o={type:1,pattern:r,location:e.styleLocation,parsedOptions:this.shouldParseSkeletons?s(r):{}};return{val:{type:a===`date`?3:4,value:n,location:i,style:o},err:null}}}return{val:{type:a===`number`?2:a===`date`?3:4,value:n,location:i,style:e?.style??null},err:null}}case`plural`:case`selectordinal`:case`select`:{let i=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(`,`))return this.error(12,D(i,{...i}));this.bumpSpace();let o=this.parseIdentifierIfPossible(),s=0;if(a!==`select`&&o.value===`offset`){if(!this.bumpIf(`:`))return this.error(13,D(this.clonePosition(),this.clonePosition()));this.bumpSpace();let e=this.tryParseDecimalInteger(13,14);if(e.err)return e;this.bumpSpace(),o=this.parseIdentifierIfPossible(),s=e.val}let c=this.tryParsePluralOrSelectOptions(e,a,t,o);if(c.err)return c;let l=this.tryParseArgumentClose(r);if(l.err)return l;let u=D(r,this.clonePosition());return a===`select`?{val:{type:5,value:n,options:he(c.val),location:u},err:null}:{val:{type:6,value:n,options:he(c.val),offset:s,pluralType:a===`plural`?`cardinal`:`ordinal`,location:u},err:null}}default:return this.error(5,D(i,o))}}tryParseArgumentClose(e){return this.isEOF()||this.char()!==125?this.error(1,D(e,this.clonePosition())):(this.bump(),{val:!0,err:null})}parseSimpleArgStyleIfPossible(){let e=0,t=this.clonePosition();for(;!this.isEOF();)switch(this.char()){case 39:{this.bump();let e=this.clonePosition();if(!this.bumpUntil(`'`))return this.error(11,D(e,this.clonePosition()));this.bump();break}case 123:e+=1,this.bump();break;case 125:if(e>0)--e;else return{val:this.message.slice(t.offset,this.offset()),err:null};break;default:this.bump();break}return{val:this.message.slice(t.offset,this.offset()),err:null}}parseNumberSkeletonFromString(e,t){let n=[];try{n=l(e)}catch{return this.error(7,t)}return{val:{type:0,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?ne(n):{}},err:null}}tryParsePluralOrSelectOptions(e,t,n,r){let i=!1,a=[],o=new Set,{value:s,location:c}=r;for(;;){if(s.length===0){let e=this.clonePosition();if(t!==`select`&&this.bumpIf(`=`)){let t=this.tryParseDecimalInteger(16,19);if(t.err)return t;c=D(e,this.clonePosition()),s=this.message.slice(e.offset,this.offset())}else break}if(o.has(s))return this.error(t===`select`?21:20,c);s===`other`&&(i=!0),this.bumpSpace();let r=this.clonePosition();if(!this.bumpIf(`{`))return this.error(t===`select`?17:18,D(this.clonePosition(),this.clonePosition()));let l=this.parseMessage(e+1,t,n);if(l.err)return l;let u=this.tryParseArgumentClose(r);if(u.err)return u;a.push([s,{value:l.val,location:D(r,this.clonePosition())}]),o.add(s),this.bumpSpace(),{value:s,location:c}=this.parseIdentifierIfPossible()}return a.length===0?this.error(t===`select`?15:16,D(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(22,D(this.clonePosition(),this.clonePosition())):{val:a,err:null}}tryParseDecimalInteger(e,t){let n=1,r=this.clonePosition();this.bumpIf(`+`)||this.bumpIf(`-`)&&(n=-1);let i=!1,a=0;for(;!this.isEOF();){let e=this.char();if(e>=48&&e<=57)i=!0,a=a*10+(e-48),this.bump();else break}let o=D(r,this.clonePosition());return i?(a*=n,Number.isSafeInteger(a)?{val:a,err:null}:this.error(t,o)):this.error(e,o)}offset(){return this.position.offset}isEOF(){return this.offset()===this.message.length}clonePosition(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}}char(){let e=this.position.offset;if(e>=this.message.length)throw Error(`out of bound`);let t=this.message.codePointAt(e);if(t===void 0)throw Error(`Offset ${e} is at invalid UTF-16 code unit boundary`);return t}error(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}}bump(){if(this.isEOF())return;let e=this.char();e===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}bumpIf(e){if(this.message.startsWith(e,this.offset())){for(let t=0;t<e.length;t++)this.bump();return!0}return!1}bumpUntil(e){let t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)}bumpTo(e){if(this.offset()>e)throw Error(`targetOffset ${e} must be greater than or equal to the current offset ${this.offset()}`);for(e=Math.min(e,this.message.length);;){let t=this.offset();if(t===e)break;if(t>e)throw Error(`targetOffset ${e} is at invalid UTF-16 code unit boundary`);if(this.bump(),this.isEOF())break}}bumpSpace(){for(;!this.isEOF()&&Ce(this.char());)this.bump()}peek(){if(this.isEOF())return null;let e=this.char(),t=this.offset();return this.message.charCodeAt(t+(e>=65536?2:1))??null}};function k(e){return e>=97&&e<=122||e>=65&&e<=90}function xe(e){return k(e)||e===47}function Se(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Ce(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}
1function A(e){e.forEach(e=>{if(delete e.location,x(e)||S(e))for(let t in e.options)delete e.options[t].location,A(e.options[t].value);else v(e)&&w(e.style)||(y(e)||b(e))&&T(e.style)?delete e.style.location:C(e)&&A(e.children)})}function we(e,t={}){t={shouldParseSkeletons:!0,requiresOtherClause:!0,...t};let n=new be(e,t).parse();if(n.err){let e=SyntaxError(re[n.err.kind]);throw e.location=n.err.location,e.originalMessage=n.err.message,e}return t?.captureLocation||A(n.val),n.val}var j,M=function(e){return e.MISSING_VALUE=`MISSING_VALUE`,e.INVALID_VALUE=`INVALID_VALUE`,e.MISSING_INTL_API=`MISSING_INTL_API`,e}({}),N=class extends Error{constructor(e,t,n){super(e),this.code=t,this.originalMessage=n}toString(){return`[formatjs Error: ${this.code}] ${this.message}`}},P=class extends N{constructor(e,t,n,r){super(`Invalid values for "${e}": "${t}". Options are "${Object.keys(n).join(`", "`)}"`,`INVALID_VALUE`,r)}},Te=class extends N{constructor(e,t,n){super(`Value for "${e}" must be of type ${t}`,`INVALID_VALUE`,n)}},Ee=class extends N{constructor(e,t){super(`The intl string context variable "${e}" was not provided to the string "${t}"`,`MISSING_VALUE`,t)}};function De(e){return e.length<2?e:e.reduce((e,t)=>{let n=e[e.length-1];return!n||n.type!==0||t.type!==0?e.push(t):n.value+=t.value,e},[])}function F(e){return typeof e==`function`}function I(e,t,n,r,i,a,o){if(e.length===1&&_(e[0]))return[{type:0,value:e[0].value}];let s=[];for(let c of e){if(_(c)){s.push({type:0,value:c.value});continue}if(oe(c)){typeof a==`number`&&s.push({type:0,value:n.getNumberFormat(t).format(a)});continue}let{value:e}=c;if(!(i&&e in i))throw new Ee(e,o);let l=i[e];if(ae(c)){(!l||typeof l==`string`||typeof l==`number`||typeof l==`bigint`)&&(l=typeof l==`string`||typeof l==`number`||typeof l==`bigint`?String(l):``),s.push({type:typeof l==`string`?0:1,value:l});continue}if(y(c)){let e=typeof c.style==`string`?r.date[c.style]:T(c.style)?c.style.parsedOptions:void 0;s.push({type:0,value:n.getDateTimeFormat(t,e).format(l)});continue}if(b(c)){let e=typeof c.style==`string`?r.time[c.style]:T(c.style)?c.style.parsedOptions:r.time.medium;s.push({type:0,value:n.getDateTimeFormat(t,e).format(l)});continue}if(v(c)){let e=typeof c.style==`string`?r.number[c.style]:w(c.style)?c.style.parsedOptions:void 0;if(e&&e.scale){let t=e.scale||1;if(typeof l==`bigint`){if(!Number.isInteger(t))throw TypeError(`Cannot apply fractional scale ${t} to bigint value. Scale must be an integer when formatting bigint.`);l*=BigInt(t)}else l*=t}s.push({type:0,value:n.getNumberFormat(t,e).format(l)});continue}if(C(c)){let{children:e,value:l}=c,u=i[l];if(!F(u))throw new Te(l,`function`,o);let d=u(I(e,t,n,r,i,a).map(e=>e.value));Array.isArray(d)||(d=[d]),s.push(...d.map(e=>({type:typeof e==`string`?0:1,value:e})))}if(x(c)){let e=l,a=(Object.prototype.hasOwnProperty.call(c.options,e)?c.options[e]:void 0)||c.options.other;if(!a)throw new P(c.value,l,Object.keys(c.options),o);s.push(...I(a.value,t,n,r,i));continue}if(S(c)){let e=`=${l}`,a=Object.prototype.hasOwnProperty.call(c.options,e)?c.options[e]:void 0;if(!a){if(!Intl.PluralRules)throw new N(`Intl.PluralRules is not available in this environment. 2Try polyfilling it using "@formatjs/intl-pluralrules" 3`,`MISSING_INTL_API`,o);let e=typeof l==`bigint`?Number(l):l,r=n.getPluralRules(t,{type:c.pluralType}).select(e-(c.offset||0));a=(Object.prototype.hasOwnProperty.call(c.options,r)?c.options[r]:void 0)||c.options.other}if(!a)throw new P(c.value,l,Object.keys(c.options),o);let u=typeof l==`bigint`?Number(l):l;s.push(...I(a.value,t,n,r,i,u-(c.offset||0)));continue}}return De(s)}function Oe(e,t){return t?{...e,...t,...Object.keys(e).reduce((n,r)=>(n[r]={...e[r],...t[r]},n),{})}:e}function ke(e,t){return t?Object.keys(e).reduce((n,r)=>(n[r]=Oe(e[r],t[r]),n),{...e}):e}function L(e){return{create(){return{get(t){return e[t]},set(t,n){e[t]=n}}}}}function Ae(e={number:{},dateTime:{},pluralRules:{}}){return{getNumberFormat:r((...e)=>new Intl.NumberFormat(...e),{cache:L(e.number),strategy:n.variadic}),getDateTimeFormat:r((...e)=>new Intl.DateTimeFormat(...e),{cache:L(e.dateTime),strategy:n.variadic}),getPluralRules:r((...e)=>new Intl.PluralRules(...e),{cache:L(e.pluralRules),strategy:n.variadic})}}var R=(j=class e{constructor(t,n=e.defaultLocale,r,i){if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=e=>{let t=this.formatToParts(e);if(t.length===1)return t[0].value;let n=t.reduce((e,t)=>
3(!e.length||t.type!==0||typeof e[e.length-1]!=`string`?e.push(t.value):e[e.length-1]+=t.value,e),[]);return n.length<=1?n[0]||``:n},this.formatToParts=e=>I(this.ast,this.locales,this.formatters,this.formats,e,void 0,this.message),this.resolvedOptions=()=>({locale:this.resolvedLocale?.toString()||Intl.NumberFormat.supportedLocalesOf(this.locales)[0]}),this.getAst=()=>this.ast,this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t==`string`){if(this.message=t,!e.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");let{...n}=i||{};this.ast=e.__parse(t,{...n,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw TypeError(`A message must be provided as a String or AST.`);this.formats=ke(e.formats,r),this.formatters=i&&i.formatters||Ae(this.formatterCache)}static get defaultLocale(){return e.memoizedDefaultLocale||=new Intl.NumberFormat().resolvedOptions().locale,e.memoizedDefaultLocale}},j.memoizedDefaultLocale=null,j.resolveLocale=e=>{if(Intl.Locale===void 0)return;let t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale(typeof e==`string`?e:e[0])},j.__parse=we,j.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`}}},j),z=class e extends Error{constructor(t,n,r){let i=r?r instanceof Error?r:Error(String(r)):void 0;super(`[@formatjs/intl Error ${t}] ${n} 4${i?`\n${i.message}\n${i.stack}`:``}`),this.code=t,typeof Error.captureStackTrace==`function`&&Error.captureStackTrace(this,e)}},je=class extends z{constructor(e,t){super(`UNSUPPORTED_FORMATTER`,e,t)}},Me=class extends z{constructor(e,t){super(`INVALID_CONFIG`,e,t)}},B=class extends z{constructor(e,t){super(`MISSING_DATA`,e,t)}},V=class extends z{constructor(e,t,n){super(`FORMAT_ERROR`,`${e} 5Locale: ${t} 6`,n),this.locale=t}},H=class extends V{constructor(e,t,n,r){super(`${e} 7MessageID: ${n?.id} 8Default Message: ${n?.defaultMessage} 9Description: ${n?.description} 10`,t,r),this.descriptor=n,this.locale=t}},Ne=class extends z{constructor(e,t){super(`MISSING_TRANSLATION`,`Missing message: "${e.id}" for locale "${t}", using ${e.defaultMessage?`default message (${typeof e.defaultMessage==`string`?e.defaultMessage:e.defaultMessage.map(e=>e.value??JSON.stringify(e)).join()})`:`id`} as fallback.`),this.descriptor=e}};function Pe(e,t,n=Error){if(!e)throw new n(t)}function U(e,t,n={}){return t.reduce((t,r)=>(r in e?t[r]=e[r]:r in n&&(t[r]=n[r]),t),{})}var Fe={formats:{},messages:{},timeZone:void 0,defaultLocale:`en`,defaultFormats:{},fallbackOnEmptyString:!0,onError:e=>{},onWarn:e=>{}};function Ie(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function W(e){return{create(){return{get(t){return e[t]},set(t,n){e[t]=n}}}}}function Le(e=Ie()){let t=Intl.RelativeTimeFormat,i=Intl.ListFormat,a=Intl.DisplayNames,o=r((...e)=>new Intl.DateTimeFormat(...e),{cache:W(e.dateTime),strategy:n.variadic}),s=r((...e)=>new Intl.NumberFormat(...e),{cache:W(e.number),strategy:n.variadic}),c=r((...e)=>new Intl.PluralRules(...e),{cache:W(e.pluralRules),strategy:n.variadic});return{getDateTimeFormat:o,getNumberFormat:s,getMessageFormat:r((e,t,n,r)=>new R(e,t,n,{formatters:{getNumberFormat:s,getDateTimeFormat:o,getPluralRules:c},...r}),{cache:W(e.message),strategy:n.variadic}),getRelativeTimeFormat:r((...e)=>new t(...e),{cache:W(e.relativeTime),strategy:n.variadic}),getPluralRules:c,getListFormat:r((...e)=>new i(...e),{cache:W(e.list),strategy:n.variadic}),getDisplayNames:r((...e)=>new a(...e),{cache:W(e.displayNames),strategy:n.variadic})}}function G(e,t,n,r){let i=e&&e[t],a;if(i&&(a=i[n]),a)return a;r(new je(`No ${t} format named: ${n}`))}function K(e,t){return Object.keys(e).reduce((n,r)=>(n[r]={timeZone:t,...e[r]},n),{})}function Re(e,t){return Object.keys({...e,...t}).reduce((n,r)=>(n[r]={...e[r],...t[r]},n),{})}function ze(e,t){if(!t)return e;let n=R.formats;return{...n,...e,date:Re(K(n.date,t),K(e.date||{},t)),time:Re(K(n.time,t),K(e.time||{},t))}}function Be(e){let{defaultMessage:t}=e;try{return t===void 0?`\nMessage Descriptor: ${JSON.stringify(e)}`:`\nDefault Message: ${typeof t==`string`?t:JSON.stringify(t)}`}catch{return``}}var q=({locale:e,formats:t,messages:n,defaultLocale:r,defaultFormats:i,fallbackOnEmptyString:a,onError:o,timeZone:s,defaultRichTextElements:c},l,u={id:``},d,f)=>{let{id:p,defaultMessage:m}=u;p||Pe(!1,`[@formatjs/intl] An \`id\` must be provided to format a message. You can either: 111. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.github.io/docs/tooling/babel-plugin) 12or [@formatjs/ts-transformer](https://formatjs.github.io/docs/tooling/ts-transformer) OR 132. Configure your \`eslint\` config to include [eslint-plugin-formatjs](https://formatjs.github.io/docs/tooling/linter#enforce-id) 14to autofix this issue${Be(u)}`);let h=String(p),g=n&&Object.prototype.hasOwnProperty.call(n,h)&&n[h];if(Array.isArray(g)&&g.length===1&&g[0].type===ie.literal)return g[0].value;if(d={...c,...d},t=ze(t,s),i=ze(i,s),!g){if(a===!1&&g===``)return g;if((!m||e&&e.toLowerCase()!==r.toLowerCase())&&o(new Ne(u,e)),m)try{return l.getMessageFormat(m,r,i,f).format(d)}catch(t){return o(new H(`Error formatting default message for: "${h}", rendering default message verbatim`,e,u,t)),typeof m==`string`?m:h}return h}try{return l.getMessageFormat(g,e,t,{formatters:l,...f}).format(d)}catch(t){o(new H(`Error formatting message: "${h}", using ${m?`default message`:`id`} as fallback.`,e,u,t))}if(m)try{return l.getMessageFormat(m,r,i,f).format(d)}catch(t){o(new H(`Error formatting the default message for: "${h}", rendering message verbatim`,e,u,t))}return typeof g==`string`?g:typeof m==`string`?m:h},Ve=[`formatMatcher`,`timeZone`,`hour12`,`weekday`,`era`,`year`,`month`,`day`,`hour`,`minute`,`second`,`timeZoneName`,`hourCycle`,`dateStyle`,`timeStyle`,`calendar`,`numberingSystem`,`fractionalSecondDigits`];function J({locale:e,formats:t,onError:n,timeZone:r},i,a,o={}){let{format:s}=o,c=U(o,Ve,{...r&&{timeZone:r},...s&&G(t,i,s,n)});return i===`time`&&!c.hour&&!c.minute&&!c.second&&!c.timeStyle&&!c.dateStyle&&(c={...c,hour:`numeric`,minute:`numeric`}),a(e,c)}function He(e,t,n,r={}){let i=typeof n==`string`?new Date(n||0):n;try{return J(e,`date`,t,r).format(i)}catch(t){e.onError(new V(`Error formatting date.`,e.locale,t))}return String(i)}function Ue(e,t,n,r={}){let i=typeof n==`string`?new Date(n||0):n;try{return J(e,`time`,t,r).format(i)}catch(t){e.onError(new V(`Error formatting time.`,e.locale,t))}return String(i)}function We(e,t,n,r,i={}){let a=typeof n==`string`?new Date(n||0):n,o=typeof r==`string`?new Date(r||0):r;try{return J(e,`dateTimeRange`,t,i).formatRange(a,o)}catch(t){e.onError(new V(`Error formatting date time range.`,e.locale,t))}return String(a)}function Ge(e,t,n,r={}){let i=typeof n==`string`?new Date(n||0):n;try{return J(e,`date`,t,r).formatToParts(i)}catch(t){e.onError(new V(`Error formatting date.`,e.locale,t))}return[]}function Ke(e,t,n,r={}){let i=typeof n==`string`?new Date(n||0):n;try{return J(e,`time`,t,r).formatToParts(i)}catch(t){e.onError(new V(`Error formatting time.`,e.locale,t))}return[]}var qe=[`style`,`type`,`fallback`,`languageDisplay`];function Je({locale:e,onError:t},n,r,i){Intl.DisplayNames||t(new N(`Intl.DisplayNames is not available in this environment. 15Try polyfilling it using "@formatjs/intl-displaynames" 16`,M.MISSING_INTL_API));let a=U(i,qe);try{return n(e,a).of(r)}catch(n){t(new V(`Error formatting display name.`,e,n))}}var Ye=[`type`,`style`],Xe=Date.now();function Ze(e){return`${Xe}_${e}_${Xe}`}function Qe(e,t,n,r={}){let i=$e(e,t,n,r).reduce((e,t)=>
16{let n=t.value;return typeof n==`string`&&typeof e[e.length-1]==`string`?e[e.length-1]+=n:e.push(n),e},[]);return i.length===1?i[0]:i.length===0?``:i}function $e({locale:e,onError:t},n,r,i={}){Intl.ListFormat||t(new N(`Intl.ListFormat is not available in this environment. 17Try polyfilling it using "@formatjs/intl-listformat" 18`,M.MISSING_INTL_API));let a=U(i,Ye);try{let t={},i=Array.from(r).map((e,n)=>{if(typeof e==`object`&&e){let r=Ze(n);return t[r]=e,r}return String(e)});return n(e,a).formatToParts(i).map(e=>e.type===`literal`?e:{...e,value:t[e.value]||e.value})}catch(n){t(new V(`Error formatting list.`,e,n))}return r}var et=[`type`];function tt({locale:e,onError:t},n,r,i={}){Intl.PluralRules||t(new N(`Intl.PluralRules is not available in this environment. 19Try polyfilling it using "@formatjs/intl-pluralrules" 20`,M.MISSING_INTL_API));let a=U(i,et);try{return n(e,a).select(r)}catch(n){t(new V(`Error formatting plural.`,e,n))}return`other`}var nt=[`numeric`,`style`];function rt({locale:e,formats:t,onError:n},r,i={}){let{format:a}=i;return r(e,U(i,nt,!!a&&G(t,`relative`,a,n)||{}))}function it(e,t,n,r,i={}){r||=`second`,Intl.RelativeTimeFormat||e.onError(new N(`Intl.RelativeTimeFormat is not available in this environment. 21Try polyfilling it using "@formatjs/intl-relativetimeformat" 22`,M.MISSING_INTL_API));try{return rt(e,t,i).format(n,r)}catch(t){e.onError(new V(`Error formatting relative time.`,e.locale,t))}return String(n)}var at=[`style`,`currency`,`unit`,`unitDisplay`,`useGrouping`,`minimumIntegerDigits`,`minimumFractionDigits`,`maximumFractionDigits`,`minimumSignificantDigits`,`maximumSignificantDigits`,`compactDisplay`,`currencyDisplay`,`currencySign`,`notation`,`signDisplay`,`unit`,`unitDisplay`,`numberingSystem`,`trailingZeroDisplay`,`roundingPriority`,`roundingIncrement`,`roundingMode`];function ot({locale:e,formats:t,onError:n},r,i={}){let{format:a}=i;return r(e,U(i,at,a&&G(t,`number`,a,n)||{}))}function st(e,t,n,r={}){try{return ot(e,t,r).format(n)}catch(t){e.onError(new V(`Error formatting number.`,e.locale,t))}return String(n)}function ct(e,t,n,r={}){try{return ot(e,t,r).formatToParts(n)}catch(t){e.onError(new V(`Error formatting number.`,e.locale,t))}return[]}function lt(e){return typeof(e?e[Object.keys(e)[0]]:void 0)==`string`}function ut(e){e.onWarn&&e.defaultRichTextElements&<(e.messages||{})&&e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. 23Please consider using "@formatjs/cli" to pre-compile your messages for performance. 24For more details see https://formatjs.github.io/docs/getting-started/message-distribution`)}function dt(e,t){let n=Le(t),r={...Fe,...e},{locale:i,defaultLocale:a,onError:o}=r;return i?!Intl.NumberFormat.supportedLocalesOf(i).length&&o?o(new B(`Missing locale data for locale: "${i}" in Intl.NumberFormat. Using default locale: "${a}" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details`)):!Intl.DateTimeFormat.supportedLocalesOf(i).length&&o&&o(new B(`Missing locale data for locale: "${i}" in Intl.DateTimeFormat. Using default locale: "${a}" as fallback. See https://formatjs.github.io/docs/react-intl#runtime-requirements for more details`)):(o&&o(new Me(`"locale" was not configured, using "${a}" as fallback. See https://formatjs.github.io/docs/react-intl/api#intlshape for more details`)),r.locale=r.defaultLocale||`en`),ut(r),{...r,formatters:n,formatNumber:st.bind(null,r,n.getNumberFormat),formatNumberToParts:ct.bind(null,r,n.getNumberFormat),formatRelativeTime:it.bind(null,r,n.getRelativeTimeFormat),formatDate:He.bind(null,r,n.getDateTimeFormat),formatDateToParts:Ge.bind(null,r,n.getDateTimeFormat),formatTime:Ue.bind(null,r,n.getDateTimeFormat),formatDateTimeRange:We.bind(null,r,n.getDateTimeFormat),formatTimeToParts:Ke.bind(null,r,n.getDateTimeFormat),formatPlural:tt.bind(null,r,n.getPluralRules),formatMessage:q.bind(null,r,n),$t:q.bind(null,r,n),formatList:Qe.bind(null,r,n.getListFormat),formatListToParts:$e.bind(null,r,n.getListFormat),formatDisplayName:Je.bind(null,r,n.getDisplayNames)}}var Y=i();function ft(e,t,n=Error){if(!e)throw new n(t)}function pt(e){ft(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var mt={...Fe,textComponent:a.Fragment},ht=e=>a.Children.toArray(e).map((e,t)=>a.isValidElement(e)?(0,Y.jsx)(a.Fragment,{children:e},t):e);function gt(e){return function(t){return e(ht(t))}}function X(e,t){if(e===t)return!0;
24if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),i=n.length;if(r.length!==i)return!1;for(var a=0;a<i;a++){var o=n[a];if(e[o]!==t[o]||!Object.prototype.hasOwnProperty.call(t,o))return!1}return!0}var _t=a.createContext(null),vt=_t.Provider;function Z(){let e=a.useContext(_t);return pt(e),e}var yt=function(e){return e.formatDate=`FormattedDate`,e.formatTime=`FormattedTime`,e.formatNumber=`FormattedNumber`,e.formatList=`FormattedList`,e.formatDisplayName=`FormattedDisplayName`,e}(yt||{}),bt=function(e){return e.formatDate=`FormattedDateParts`,e.formatTime=`FormattedTimeParts`,e.formatNumber=`FormattedNumberParts`,e.formatList=`FormattedListParts`,e}(bt||{});function Q(e){let t=t=>{let n=Z(),{value:r,children:i,...a}=t,o=typeof r==`string`?new Date(r||0):r;return i(e===`formatDate`?n.formatDateToParts(o,a):n.formatTimeToParts(o,a))};return t.displayName=bt[e],t}function $(e){let t=t=>{let n=Z(),{value:r,children:i,...o}=t,s=n[e](r,o);return typeof i==`function`?i(s):(0,Y.jsx)(n.textComponent||a.Fragment,{children:s})};return t.displayName=yt[e],t}function xt(e){return e&&Object.keys(e).reduce((t,n)=>{let r=e[n];return t[n]=F(r)?gt(r):r,t},{})}var St=(e,t,n,r,...i)=>{let a=q(e,t,n,xt(r),...i);return Array.isArray(a)?ht(a):a},Ct=({defaultRichTextElements:e,...t},n)=>{let r=xt(e),i=dt({...mt,...t,defaultRichTextElements:r},n),a={locale:i.locale,timeZone:i.timeZone,fallbackOnEmptyString:i.fallbackOnEmptyString,formats:i.formats,defaultLocale:i.defaultLocale,defaultFormats:i.defaultFormats,messages:i.messages,onError:i.onError,defaultRichTextElements:r};return{...i,formatMessage:St.bind(null,a,i.formatters),$t:St.bind(null,a,i.formatters)}};function wt(e,t){let{values:n,...r}=e,{values:i,...a}=t;return X(i,n)&&X(r,a)}function Tt(e){let{formatMessage:t,textComponent:n=a.Fragment}=Z(),{id:r,description:i,defaultMessage:o,values:s,children:c,tagName:l=n,ignoreTag:u}=e,d=t({id:r,description:i,defaultMessage:o},s,{ignoreTag:u});return typeof c==`function`?c(Array.isArray(d)?d:[d]):l?(0,Y.jsx)(l,{children:d}):(0,Y.jsx)(Y.Fragment,{children:d})}Tt.displayName=`FormattedMessage`;var Et=a.memo(Tt,wt);Et.displayName=`MemoizedFormattedMessage`;function Dt(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}function Ot(e){let t=a.useRef(Ie()),n=a.useRef(void 0),r=a.useRef(void 0),i={};for(let t in e)e[t]!==void 0&&(i[t]=e[t]);let o=Dt({...mt,...i});return(!n.current||!X(n.current,o))&&(n.current=o,r.current=Ct(o,t.current)),pt(r.current),(0,Y.jsx)(vt,{value:r.current,children:e.children})}Ot.displayName=`IntlProvider`;var kt=Ot;function At(e){return e}function jt(e){return e}var Mt=$(`formatDate`);$(`formatTime`);var Nt=$(`formatNumber`),Pt=$(`formatList`);$(`formatDisplayName`),Q(`formatDate`),Q(`formatTime`);export{Et as a,Z as c,kt as i,R as l,Pt as n,jt as o,Nt as r,At as s,Mt as t}; 25//# sourceMappingURL=react-intl-DlKP8ATg.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.