react-intl-phraseapp
Advanced tools
Comparing version 4.1.0 to 4.1.1
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react-intl"),require("react")):"function"==typeof define&&define.amd?define(["react-intl","react"],t):"object"==typeof exports?exports["react-intl-phraseapp"]=t(require("react-intl"),require("react")):e["react-intl-phraseapp"]=t(e.ReactIntl,e.React)}(this,((e,t)=>(()=>{"use strict";var r={763:(e,t,r)=>{r.d(t,{FormattedMessage:()=>a});var n=r(787),i=r(552),o=r(935);const a=e=>(0,o.isPhraseEnabled)()?n.createElement("span",null,(0,o.escapeId)(e.id??"")):n.createElement(i.FormattedMessage,{...e})},935:(e,t,r)=>{r.d(t,{escapeId:()=>a,initializePhraseAppEditor:()=>i,isPhraseEnabled:()=>o});let n=!1;function i(e){if((!n||e.forceInitialize)&&(n=!0,globalThis.PHRASEAPP_ENABLED=e.phraseEnabled,globalThis.PHRASEAPP_CONFIG=function(e){return e.prefix=e.prefix?e.prefix:"{{__",e.suffix=e.suffix?e.suffix:"__}}",e}(e),e.phraseEnabled)){const r=document.createElement("script");e.useOldICE?(r.type="text/javascript",r.src=["https://","app.phrase.com/assets/in-context-editor/2.0/app.js?",(new Date).getTime()].join("")):(r.type="module",r.src="https://d2bgdldl6xit7z.cloudfront.net/latest/ice/index.js"),r.async=!0;var t=document.getElementsByTagName("script")[0];void 0!==t?t.parentNode.insertBefore(r,t):document.body.appendChild(r)}}function o(){return globalThis.PHRASEAPP_ENABLED}function a(e){let t=globalThis.PHRASEAPP_CONFIG;return t.prefix+"phrase_"+e+t.suffix}},856:(e,t,r)=>{r.d(t,{injectIntl:()=>s});var n=r(552),i=r(935),o=r(787),a=r.n(o);function s(e,t){return(0,n.injectIntl)((t=>{const{formatMessage:r}=(0,n.useIntl)();function o(e,t){if((0,i.isPhraseEnabled)()){const t=e.replace("<","[[[[[[html_open]]]]]]").replace(">","[[[[[[html_close]]]]]]");return(0,i.escapeId)(t)}return r({id:e},t)}function s(e,t,r){const{id:n}=e;if(n)return o(n,t);console.error("formatMessage requires an id")}return t.intl.formatMessage=s,a().createElement(e,{translate:o,formatMessage:s,...t})}),t)}},703:(e,t,r)=>{r.d(t,{useIntl:()=>o});var n=r(552),i=r(935);function o(){if((0,i.isPhraseEnabled)()){function e(...e){return(0,i.escapeId)(e[0]?.id||"")}return{...(0,n.useIntl)(),formatMessage:e}}return(0,n.useIntl)()}},282:(e,t,r)=>{r.d(t,{useSSRIntl:()=>pt});var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o,a,s,h=function(){return h=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},h.apply(this,arguments)};function l(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function u(e){return e.type===a.literal}function c(e){return e.type===a.argument}function f(e){return e.type===a.number}function p(e){return e.type===a.date}function m(e){return e.type===a.time}function g(e){return e.type===a.select}function E(e){return e.type===a.plural}function d(e){return e.type===a.pound}function b(e){return e.type===a.tag}function y(e){return!(!e||"object"!=typeof e||e.type!==s.number)}function v(e){return!(!e||"object"!=typeof e||e.type!==s.dateTime)}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError,function(e){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"}(o||(o={})),function(e){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"}(a||(a={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(s||(s={}));var T=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,_=/(?:[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 H(e){var t={};return e.replace(_,(function(e){var r=e.length;switch(e[0]){case"G":t.era=4===r?"long":5===r?"narrow":"short";break;case"y":t.year=2===r?"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":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===r?"short":5===r?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-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":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<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""})),t}var A=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,B=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,S=/^(@+)?(\+|#+)?[rs]?$/g,I=/(\*)(0+)|(#+)(0+)|(0+)/g,P=/^(0+)$/;function N(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(S,(function(e,r,n){return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""})),t}function L(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 R(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!P.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function O(e){return L(e)||{}}function M(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.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=i.options[0].replace(/^(.*?)-/,"");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=h(h(h({},t),{notation:"scientific"}),i.options.reduce((function(e,t){return h(h({},e),O(t))}),{}));continue;case"engineering":t=h(h(h({},t),{notation:"engineering"}),i.options.reduce((function(e,t){return h(h({},e),O(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(i.options[0]);continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(I,(function(e,r,n,i,o,a){if(r)t.minimumIntegerDigits=n.length;else{if(i&&o)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(P.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(B.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(B,(function(e,r,n,i,o,a){return"*"===n?t.minimumFractionDigits=r.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&a?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+a.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""}));var o=i.options[0];"w"===o?t=h(h({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=h(h({},t),N(o)))}else if(S.test(i.stem))t=h(h({},t),N(i.stem));else{var a=L(i.stem);a&&(t=h(h({},t),a));var s=R(i.stem);s&&(t=h(h({},t),s))}}return t}var C,w={"001":["H","h"],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"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],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"],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","hB","h","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"],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"],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"],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","h","K"],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"],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"],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"],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","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","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"],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"],TL:["H","hB","hb","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"],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"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["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 D(e){var t=e.hourCycle;if(void 0===t&&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 new Error("Invalid hourCycle")}var r,n=e.language;return"root"!==n&&(r=e.maximize().region),(w[r||""]||w[n||""]||w["".concat(n,"-001")]||w["001"])[0]}var U=new RegExp("^".concat(T.source,"*")),G=new RegExp("".concat(T.source,"*$"));function F(e,t){return{start:e,end:t}}var k=!!String.prototype.startsWith,j=!!String.fromCodePoint,x=!!Object.fromEntries,V=!!String.prototype.codePointAt,X=!!String.prototype.trimStart,K=!!String.prototype.trimEnd,Z=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Y=!0;try{Y="a"===(null===(C=te("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===C?void 0:C[0])}catch(e){Y=!1}var z,W=k?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},q=j?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",i=e.length,o=0;i>o;){if((r=e[o++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},Q=x?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r],o=i[0],a=i[1];t[o]=a}return t},J=V?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||t>=r)){var n,i=e.charCodeAt(t);return i<55296||i>56319||t+1===r||(n=e.charCodeAt(t+1))<56320||n>57343?i:n-56320+(i-55296<<10)+65536}},$=X?function(e){return e.trimStart()}:function(e){return e.replace(U,"")},ee=K?function(e){return e.trimEnd()}:function(e){return e.replace(G,"")};function te(e,t){return new RegExp(e,t)}if(Y){var re=te("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");z=function(e,t){var r;return re.lastIndex=t,null!==(r=re.exec(e)[1])&&void 0!==r?r:""}}else z=function(e,t){for(var r=[];;){var n=J(e,t);if(void 0===n||oe(n)||ae(n))break;r.push(n),t+=n>=65536?2:1}return q.apply(void 0,r)};var ne=function(){function e(e,t){void 0===t&&(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}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i=this.char();if(123===i){if((s=this.parseArgument(e,r)).err)return s;n.push(s.val)}else{if(125===i&&e>0)break;if(35!==i||"plural"!==t&&"selectordinal"!==t){if(60===i&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(o.UNMATCHED_CLOSING_TAG,F(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&ie(this.peek()||0)){if((s=this.parseTag(e,t)).err)return s;n.push(s.val)}else{var s;if((s=this.parseLiteral(e,t)).err)return s;n.push(s.val)}}else{var h=this.clonePosition();this.bump(),n.push({type:a.pound,location:F(h,this.clonePosition())})}}}return{val:n,err:null}},e.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:a.literal,value:"<".concat(n,"/>"),location:F(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var s=i.val,h=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!ie(this.char()))return this.error(o.INVALID_TAG,F(h,this.clonePosition()));var l=this.clonePosition();return n!==this.parseTagName()?this.error(o.UNMATCHED_CLOSING_TAG,F(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:a.tag,value:n,children:s,location:F(r,this.clonePosition())},err:null}:this.error(o.INVALID_TAG,F(h,this.clonePosition())))}return this.error(o.UNCLOSED_TAG,F(r,this.clonePosition()))}return this.error(o.INVALID_TAG,F(r,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||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);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i)n+=i;else{var o=this.tryParseUnquoted(e,t);if(o)n+=o;else{var s=this.tryParseLeftAngleBracket();if(!s)break;n+=s}}}var h=F(r,this.clonePosition());return{val:{type:a.literal,value:n,location:h},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(ie(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){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"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return q.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),q(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(o.EXPECT_ARGUMENT_CLOSING_BRACE,F(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(o.EMPTY_ARGUMENT,F(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(o.MALFORMED_ARGUMENT,F(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(o.EXPECT_ARGUMENT_CLOSING_BRACE,F(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:a.argument,value:n,location:F(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(o.EXPECT_ARGUMENT_CLOSING_BRACE,F(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(o.MALFORMED_ARGUMENT,F(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=z(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:F(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,n){var i,l=this.clonePosition(),u=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(u){case"":return this.error(o.EXPECT_ARGUMENT_TYPE,F(l,c));case"number":case"date":case"time":this.bumpSpace();var f=null;if(this.bumpIf(",")){this.bumpSpace();var p=this.clonePosition();if((T=this.parseSimpleArgStyleIfPossible()).err)return T;if(0===(d=ee(T.val)).length)return this.error(o.EXPECT_ARGUMENT_STYLE,F(this.clonePosition(),this.clonePosition()));f={style:d,styleLocation:F(p,this.clonePosition())}}if((_=this.tryParseArgumentClose(n)).err)return _;var m=F(n,this.clonePosition());if(f&&W(null==f?void 0:f.style,"::",0)){var g=$(f.style.slice(2));if("number"===u)return(T=this.parseNumberSkeletonFromString(g,f.styleLocation)).err?T:{val:{type:a.number,value:r,location:m,style:T.val},err:null};if(0===g.length)return this.error(o.EXPECT_DATE_TIME_SKELETON,m);var E=g;this.locale&&(E=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if("j"===i){for(var o=0;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;var a=1+(1&o),s=o<2?1:3+(o>>1),h=D(t);for("H"!=h&&"k"!=h||(s=0);s-- >0;)r+="a";for(;a-- >0;)r=h+r}else r+="J"===i?"H":i}return r}(g,this.locale));var d={type:s.dateTime,pattern:E,location:f.styleLocation,parsedOptions:this.shouldParseSkeletons?H(E):{}};return{val:{type:"date"===u?a.date:a.time,value:r,location:m,style:d},err:null}}return{val:{type:"number"===u?a.number:"date"===u?a.date:a.time,value:r,location:m,style:null!==(i=null==f?void 0:f.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":var b=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(o.EXPECT_SELECT_ARGUMENT_OPTIONS,F(b,h({},b)));this.bumpSpace();var y=this.parseIdentifierIfPossible(),v=0;if("select"!==u&&"offset"===y.value){if(!this.bumpIf(":"))return this.error(o.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,F(this.clonePosition(),this.clonePosition()));var T;if(this.bumpSpace(),(T=this.tryParseDecimalInteger(o.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,o.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return T;this.bumpSpace(),y=this.parseIdentifierIfPossible(),v=T.val}var _,A=this.tryParsePluralOrSelectOptions(e,u,t,y);if(A.err)return A;if((_=this.tryParseArgumentClose(n)).err)return _;var B=F(n,this.clonePosition());return"select"===u?{val:{type:a.select,value:r,options:Q(A.val),location:B},err:null}:{val:{type:a.plural,value:r,options:Q(A.val),offset:v,pluralType:"plural"===u?"cardinal":"ordinal",location:B},err:null};default:return this.error(o.INVALID_ARGUMENT_TYPE,F(l,c))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(o.EXPECT_ARGUMENT_CLOSING_BRACE,F(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(o.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,F(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(A).filter((function(e){return e.length>0}));r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],a=i.slice(1),s=0,h=a;s<h.length;s++)if(0===h[s].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:a})}return t}(e)}catch(e){return this.error(o.INVALID_NUMBER_SKELETON,t)}return{val:{type:s.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?M(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var i,a=!1,s=[],h=new Set,l=n.value,u=n.location;;){if(0===l.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var f=this.tryParseDecimalInteger(o.EXPECT_PLURAL_ARGUMENT_SELECTOR,o.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;u=F(c,this.clonePosition()),l=this.message.slice(c.offset,this.offset())}if(h.has(l))return this.error("select"===t?o.DUPLICATE_SELECT_ARGUMENT_SELECTOR:o.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===l&&(a=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?o.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:o.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,F(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(e+1,t,r);if(m.err)return m;var g=this.tryParseArgumentClose(p);if(g.err)return g;s.push([l,{value:m.val,location:F(p,this.clonePosition())}]),h.add(l),this.bumpSpace(),l=(i=this.parseIdentifierIfPossible()).value,u=i.location}return 0===s.length?this.error("select"===t?o.EXPECT_SELECT_ARGUMENT_SELECTOR:o.EXPECT_PLURAL_ARGUMENT_SELECTOR,F(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(o.MISSING_OTHER_CLAUSE,F(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var a=this.char();if(!(a>=48&&a<=57))break;i=!0,o=10*o+(a-48),this.bump()}var s=F(n,this.clonePosition());return i?Z(o*=r)?{val:o,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=J(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(W(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&oe(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return null!=r?r:null},e}();function ie(e){return e>=97&&e<=122||e>=65&&e<=90}function oe(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function ae(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function se(e){e.forEach((function(e){if(delete e.location,g(e)||E(e))for(var t in e.options)delete e.options[t].location,se(e.options[t].value);else f(e)&&y(e.style)||(p(e)||m(e))&&v(e.style)?delete e.style.location:b(e)&&se(e.children)}))}function he(e,t){void 0===t&&(t={}),t=h({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new ne(e,t).parse();if(r.err){var n=SyntaxError(o[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null==t?void 0:t.captureLocation)||se(r.val),r.val}function le(e,t){var r=t&&t.cache?t.cache:de,n=t&&t.serializer?t.serializer:me;return(t&&t.strategy?t.strategy:pe)(e,{cache:r,serializer:n})}function ue(e,t,r,n){var i,o=null==(i=n)||"number"==typeof i||"boolean"==typeof i?n:r(n),a=t.get(o);return void 0===a&&(a=e.call(this,n),t.set(o,a)),a}function ce(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return void 0===o&&(o=e.apply(this,n),t.set(i,o)),o}function fe(e,t,r,n,i){return r.bind(t,e,n,i)}function pe(e,t){return fe(e,this,1===e.length?ue:ce,t.cache.create(),t.serializer)}var me=function(){return JSON.stringify(arguments)};function ge(){this.cache=Object.create(null)}ge.prototype.get=function(e){return this.cache[e]},ge.prototype.set=function(e,t){this.cache[e]=t};var Ee,de={create:function(){return new ge}},be={variadic:function(e,t){return fe(e,this,ce,t.cache.create(),t.serializer)},monadic:function(e,t){return fe(e,this,ue,t.cache.create(),t.serializer)}};!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(Ee||(Ee={}));var ye,ve=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.code=r,i.originalMessage=n,i}return i(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Te=function(e){function t(t,r,n,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),Ee.INVALID_VALUE,i)||this}return i(t,e),t}(ve),_e=function(e){function t(t,r,n){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),Ee.INVALID_VALUE,n)||this}return i(t,e),t}(ve),He=function(e){function t(t,r){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),Ee.MISSING_VALUE,r)||this}return i(t,e),t}(ve);function Ae(e){return"function"==typeof e}function Be(e,t,r,n,i,o,a){if(1===e.length&&u(e[0]))return[{type:ye.literal,value:e[0].value}];for(var s=[],h=0,l=e;h<l.length;h++){var T=l[h];if(u(T))s.push({type:ye.literal,value:T.value});else if(d(T))"number"==typeof o&&s.push({type:ye.literal,value:r.getNumberFormat(t).format(o)});else{var _=T.value;if(!i||!(_ in i))throw new He(_,a);var H=i[_];if(c(T))H&&"string"!=typeof H&&"number"!=typeof H||(H="string"==typeof H||"number"==typeof H?String(H):""),s.push({type:"string"==typeof H?ye.literal:ye.object,value:H});else if(p(T)){var A="string"==typeof T.style?n.date[T.style]:v(T.style)?T.style.parsedOptions:void 0;s.push({type:ye.literal,value:r.getDateTimeFormat(t,A).format(H)})}else if(m(T))A="string"==typeof T.style?n.time[T.style]:v(T.style)?T.style.parsedOptions:n.time.medium,s.push({type:ye.literal,value:r.getDateTimeFormat(t,A).format(H)});else if(f(T))(A="string"==typeof T.style?n.number[T.style]:y(T.style)?T.style.parsedOptions:void 0)&&A.scale&&(H*=A.scale||1),s.push({type:ye.literal,value:r.getNumberFormat(t,A).format(H)});else{if(b(T)){var B=T.children,S=T.value,I=i[S];if(!Ae(I))throw new _e(S,"function",a);var P=I(Be(B,t,r,n,i,o).map((function(e){return e.value})));Array.isArray(P)||(P=[P]),s.push.apply(s,P.map((function(e){return{type:"string"==typeof e?ye.literal:ye.object,value:e}})))}if(g(T)){if(!(N=T.options[H]||T.options.other))throw new Te(T.value,H,Object.keys(T.options),a);s.push.apply(s,Be(N.value,t,r,n,i))}else if(E(T)){var N;if(!(N=T.options["=".concat(H)])){if(!Intl.PluralRules)throw new ve('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Ee.MISSING_INTL_API,a);var L=r.getPluralRules(t,{type:T.pluralType}).select(H-(T.offset||0));N=T.options[L]||T.options.other}if(!N)throw new Te(T.value,H,Object.keys(T.options),a);s.push.apply(s,Be(N.value,t,r,n,i,H-(T.offset||0)))}}}}return(R=s).length<2?R:R.reduce((function(e,t){var r=e[e.length-1];return r&&r.type===ye.literal&&t.type===ye.literal?r.value+=t.value:e.push(t),e}),[]);var R}function Se(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(ye||(ye={}));var Ie,Pe=function(){function e(t,r,n,i){void 0===r&&(r=e.defaultLocale);var o,a,s,u=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=u.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce((function(e,t){return e.length&&t.type===ye.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return Be(u.ast,u.locales,u.formatters,u.formats,e,void 0,u.message)},this.resolvedOptions=function(){var e;return{locale:(null===(e=u.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(u.locales)[0]}},this.getAst=function(){return u.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var c=i||{},f=(c.formatters,function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}(c,["formatters"]));this.ast=e.__parse(t,h(h({},f),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(a=e.formats,(s=n)?Object.keys(a).reduce((function(e,t){var r,n;return e[t]=(r=a[t],(n=s[t])?h(h(h({},r||{}),n||{}),Object.keys(r).reduce((function(e,t){return e[t]=h(h({},r[t]),n[t]||{}),e}),{})):r),e}),h({},a)):a),this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:le((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,l([void 0],t,!1)))}),{cache:Se(o.number),strategy:be.variadic}),getDateTimeFormat:le((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,l([void 0],t,!1)))}),{cache:Se(o.dateTime),strategy:be.variadic}),getPluralRules:le((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,l([void 0],t,!1)))}),{cache:Se(o.pluralRules),strategy:be.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){if(void 0!==Intl.Locale){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])}},e.__parse=he,e.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"}}},e}();!function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"}(Ie||(Ie={}));var Ne=function(e){function t(r,n,i){var o=this,a=i?i instanceof Error?i:new Error(String(i)):void 0;return(o=e.call(this,"[@formatjs/intl Error ".concat(r,"] ").concat(n,"\n").concat(a?"\n".concat(a.message,"\n").concat(a.stack):""))||this).code=r,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(o,t),o}return i(t,e),t}(Error),Le=function(e){function t(t,r){return e.call(this,Ie.UNSUPPORTED_FORMATTER,t,r)||this}return i(t,e),t}(Ne),Re=function(e){function t(t,r){return e.call(this,Ie.INVALID_CONFIG,t,r)||this}return i(t,e),t}(Ne),Oe=function(e){function t(t,r){return e.call(this,Ie.MISSING_DATA,t,r)||this}return i(t,e),t}(Ne),Me=function(e){function t(t,r,n){var i=e.call(this,Ie.FORMAT_ERROR,"".concat(t,"\nLocale: ").concat(r,"\n"),n)||this;return i.locale=r,i}return i(t,e),t}(Ne),Ce=function(e){function t(t,r,n,i){var o=e.call(this,"".concat(t,"\nMessageID: ").concat(null==n?void 0:n.id,"\nDefault Message: ").concat(null==n?void 0:n.defaultMessage,"\nDescription: ").concat(null==n?void 0:n.description,"\n"),r,i)||this;return o.descriptor=n,o.locale=r,o}return i(t,e),t}(Me),we=function(e){function t(t,r){var n=e.call(this,Ie.MISSING_TRANSLATION,'Missing message: "'.concat(t.id,'" for locale "').concat(r,'", using ').concat(t.defaultMessage?"default message (".concat("string"==typeof t.defaultMessage?t.defaultMessage:t.defaultMessage.map((function(e){var t;return null!==(t=e.value)&&void 0!==t?t:JSON.stringify(e)})).join(),")"):"id"," as fallback."))||this;return n.descriptor=t,n}return i(t,e),t}(Ne);function De(e,t,r){return void 0===r&&(r={}),t.reduce((function(t,n){return n in e?t[n]=e[n]:n in r&&(t[n]=r[n]),t}),{})}var Ue={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(e){},onWarn:function(e){}};function Ge(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function Fe(e,t,r,n){var i,o=e&&e[t];if(o&&(i=o[r]),i)return i;n(new Le("No ".concat(t," format named: ").concat(r)))}var ke=["style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function je(e,t,r){var n=e.locale,i=e.formats,o=e.onError;void 0===r&&(r={});var a=r.format,s=a&&Fe(i,"number",a,o)||{};return t(n,De(r,ke,s))}function xe(e,t,r,n){void 0===n&&(n={});try{return je(e,t,n).format(r)}catch(t){e.onError(new Me("Error formatting number.",e.locale,t))}return String(r)}function Ve(e,t,r,n){void 0===n&&(n={});try{return je(e,t,n).formatToParts(r)}catch(t){e.onError(new Me("Error formatting number.",e.locale,t))}return[]}var Xe=["numeric","style"];function Ke(e,t,r,n,i){void 0===i&&(i={}),n||(n="second"),Intl.RelativeTimeFormat||e.onError(new ve('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',Ee.MISSING_INTL_API));try{return function(e,t,r){var n=e.locale,i=e.formats,o=e.onError;void 0===r&&(r={});var a=r.format,s=!!a&&Fe(i,"relative",a,o)||{};return t(n,De(r,Xe,s))}(e,t,i).format(r,n)}catch(t){e.onError(new Me("Error formatting relative time.",e.locale,t))}return String(r)}var Ze=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function Ye(e,t,r,n){var i=e.locale,o=e.formats,a=e.onError,s=e.timeZone;void 0===n&&(n={});var l=n.format,u=h(h({},s&&{timeZone:s}),l&&Fe(o,t,l,a)),c=De(n,Ze,u);return"time"!==t||c.hour||c.minute||c.second||c.timeStyle||c.dateStyle||(c=h(h({},c),{hour:"numeric",minute:"numeric"})),r(i,c)}function ze(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=void 0===o?{}:o,s="string"==typeof i?new Date(i||0):i;try{return Ye(e,"date",t,a).format(s)}catch(t){e.onError(new Me("Error formatting date.",e.locale,t))}return String(s)}function We(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=void 0===o?{}:o,s="string"==typeof i?new Date(i||0):i;try{return Ye(e,"time",t,a).format(s)}catch(t){e.onError(new Me("Error formatting time.",e.locale,t))}return String(s)}function qe(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=r[2],s=void 0===a?{}:a,h=e.timeZone,l=e.locale,u=e.onError,c=De(s,Ze,h?{timeZone:h}:{});try{return t(l,c).formatRange(i,o)}catch(t){u(new Me("Error formatting date time range.",e.locale,t))}return String(i)}function Qe(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=void 0===o?{}:o,s="string"==typeof i?new Date(i||0):i;try{return Ye(e,"date",t,a).formatToParts(s)}catch(t){e.onError(new Me("Error formatting date.",e.locale,t))}return[]}function Je(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=void 0===o?{}:o,s="string"==typeof i?new Date(i||0):i;try{return Ye(e,"time",t,a).formatToParts(s)}catch(t){e.onError(new Me("Error formatting time.",e.locale,t))}return[]}var $e=["type"];function et(e,t,r,n){var i=e.locale,o=e.onError;void 0===n&&(n={}),Intl.PluralRules||o(new ve('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Ee.MISSING_INTL_API));var a=De(n,$e);try{return t(i,a).select(r)}catch(e){o(new Me("Error formatting plural.",i,e))}return"other"}function tt(e,t){return Object.keys(e).reduce((function(r,n){return r[n]=h({timeZone:t},e[n]),r}),{})}function rt(e,t){return Object.keys(h(h({},e),t)).reduce((function(r,n){return r[n]=h(h({},e[n]||{}),t[n]||{}),r}),{})}function nt(e,t){if(!t)return e;var r=Pe.formats;return h(h(h({},r),e),{date:rt(tt(r.date,t),tt(e.date||{},t)),time:rt(tt(r.time,t),tt(e.time||{},t))})}var it=function(e,t,r,n,i){var o=e.locale,s=e.formats,l=e.messages,u=e.defaultLocale,c=e.defaultFormats,f=e.fallbackOnEmptyString,p=e.onError,m=e.timeZone,g=e.defaultRichTextElements;void 0===r&&(r={id:""});var E=r.id,d=r.defaultMessage;!function(e,t,r){if(void 0===r&&(r=Error),!e)throw new r("[@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.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue")}(!!E);var b=String(E),y=l&&Object.prototype.hasOwnProperty.call(l,b)&&l[b];if(Array.isArray(y)&&1===y.length&&y[0].type===a.literal)return y[0].value;if(!n&&y&&"string"==typeof y&&!g)return y.replace(/'\{(.*?)\}'/gi,"{$1}");if(n=h(h({},g),n||{}),s=nt(s,m),c=nt(c,m),!y){if(!1===f&&""===y)return y;if((!d||o&&o.toLowerCase()!==u.toLowerCase())&&p(new we(r,o)),d)try{return t.getMessageFormat(d,u,c,i).format(n)}catch(e){return p(new Ce('Error formatting default message for: "'.concat(b,'", rendering default message verbatim'),o,r,e)),"string"==typeof d?d:b}return b}try{return t.getMessageFormat(y,o,s,h({formatters:t},i||{})).format(n)}catch(e){p(new Ce('Error formatting message: "'.concat(b,'", using ').concat(d?"default message":"id"," as fallback."),o,r,e))}if(d)try{return t.getMessageFormat(d,u,c,i).format(n)}catch(e){p(new Ce('Error formatting the default message for: "'.concat(b,'", rendering message verbatim'),o,r,e))}return"string"==typeof y?y:"string"==typeof d?d:b},ot=["type","style"],at=Date.now();function st(e,t,r,n){void 0===n&&(n={});var i=ht(e,t,r,n).reduce((function(e,t){var r=t.value;return"string"!=typeof r?e.push(r):"string"==typeof e[e.length-1]?e[e.length-1]+=r:e.push(r),e}),[]);return 1===i.length?i[0]:0===i.length?"":i}function ht(e,t,r,n){var i=e.locale,o=e.onError;void 0===n&&(n={}),Intl.ListFormat||o(new ve('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',Ee.MISSING_INTL_API));var a=De(n,ot);try{var s={},l=r.map((function(e,t){if("object"==typeof e){var r=function(e){return"".concat(at,"_").concat(e,"_").concat(at)}(t);return s[r]=e,r}return String(e)}));return t(i,a).formatToParts(l).map((function(e){return"literal"===e.type?e:h(h({},e),{value:s[e.value]||e.value})}))}catch(e){o(new Me("Error formatting list.",i,e))}return r}var lt=["style","type","fallback","languageDisplay"];function ut(e,t,r,n){var i=e.locale,o=e.onError;Intl.DisplayNames||o(new ve('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',Ee.MISSING_INTL_API));var a=De(n,lt);try{return t(i,a).of(r)}catch(e){o(new Me("Error formatting display name.",i,e))}}function ct(e,t){var r=function(e){void 0===e&&(e={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});var t=Intl.RelativeTimeFormat,r=Intl.ListFormat,n=Intl.DisplayNames,i=le((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,l([void 0],t,!1)))}),{cache:Ge(e.dateTime),strategy:be.variadic}),o=le((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,l([void 0],t,!1)))}),{cache:Ge(e.number),strategy:be.variadic}),a=le((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,l([void 0],t,!1)))}),{cache:Ge(e.pluralRules),strategy:be.variadic});return{getDateTimeFormat:i,getNumberFormat:o,getMessageFormat:le((function(e,t,r,n){return new Pe(e,t,r,h({formatters:{getNumberFormat:o,getDateTimeFormat:i,getPluralRules:a}},n||{}))}),{cache:Ge(e.message),strategy:be.variadic}),getRelativeTimeFormat:le((function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new(t.bind.apply(t,l([void 0],e,!1)))}),{cache:Ge(e.relativeTime),strategy:be.variadic}),getPluralRules:a,getListFormat:le((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(r.bind.apply(r,l([void 0],e,!1)))}),{cache:Ge(e.list),strategy:be.variadic}),getDisplayNames:le((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(n.bind.apply(n,l([void 0],e,!1)))}),{cache:Ge(e.displayNames),strategy:be.variadic})}}(t),n=h(h({},Ue),e),i=n.locale,o=n.defaultLocale,a=n.onError;return i?!Intl.NumberFormat.supportedLocalesOf(i).length&&a?a(new Oe('Missing locale data for locale: "'.concat(i,'" in Intl.NumberFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(i).length&&a&&a(new Oe('Missing locale data for locale: "'.concat(i,'" in Intl.DateTimeFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(a&&a(new Re('"locale" was not configured, using "'.concat(o,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),n.locale=n.defaultLocale||"en"),function(e){var t;e.onWarn&&e.defaultRichTextElements&&"string"==typeof((t=e.messages||{})?t[Object.keys(t)[0]]:void 0)&&e.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.io/docs/getting-started/message-distribution')}(n),h(h({},n),{formatters:r,formatNumber:xe.bind(null,n,r.getNumberFormat),formatNumberToParts:Ve.bind(null,n,r.getNumberFormat),formatRelativeTime:Ke.bind(null,n,r.getRelativeTimeFormat),formatDate:ze.bind(null,n,r.getDateTimeFormat),formatDateToParts:Qe.bind(null,n,r.getDateTimeFormat),formatTime:We.bind(null,n,r.getDateTimeFormat),formatDateTimeRange:qe.bind(null,n,r.getDateTimeFormat),formatTimeToParts:Je.bind(null,n,r.getDateTimeFormat),formatPlural:et.bind(null,n,r.getPluralRules),formatMessage:it.bind(null,n,r),$t:it.bind(null,n,r),formatList:st.bind(null,n,r.getListFormat),formatListToParts:ht.bind(null,n,r.getListFormat),formatDisplayName:ut.bind(null,n,r.getDisplayNames)})}var ft=r(935);function pt({locale:e,messages:t}){const r=ct({locale:e,messages:t},{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});if((0,ft.isPhraseEnabled)()){function n(...e){return(0,ft.escapeId)(e[0]?.id||"")}return{...r,formatMessage:n}}return r}},787:e=>{e.exports=t},552:t=>{t.exports=e}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={exports:{}};return r[e](o,o.exports,i),o.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{i.r(o),i.d(o,{FormattedMessage:()=>r.FormattedMessage,initializePhraseAppEditor:()=>e.initializePhraseAppEditor,injectIntl:()=>t.injectIntl,useIntl:()=>n.useIntl,useSSRIntl:()=>a.useSSRIntl});var e=i(935),t=i(856),r=i(763),n=i(703),a=i(282)})(),o})())); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react-intl"),require("react")):"function"==typeof define&&define.amd?define(["react-intl","react"],t):"object"==typeof exports?exports["react-intl-phraseapp"]=t(require("react-intl"),require("react")):e["react-intl-phraseapp"]=t(e.ReactIntl,e.React)}(this,((e,t)=>(()=>{"use strict";var r={763:(e,t,r)=>{r.d(t,{FormattedMessage:()=>a});var n=r(787),i=r(552),o=r(935);const a=e=>(0,o.isPhraseEnabled)()?n.createElement("span",null,(0,o.escapeId)(e.id??"")):n.createElement(i.FormattedMessage,{...e})},935:(e,t,r)=>{r.d(t,{escapeId:()=>a,initializePhraseAppEditor:()=>i,isPhraseEnabled:()=>o});let n=!1;function i(e){if((!n||e.forceInitialize)&&(n=!0,globalThis.PHRASEAPP_ENABLED=e.phraseEnabled,globalThis.PHRASEAPP_CONFIG=function(e){return e.prefix=e.prefix?e.prefix:"{{__",e.suffix=e.suffix?e.suffix:"__}}",e}(e),e.phraseEnabled)){const r=document.createElement("script");e.useOldICE?(r.type="text/javascript",r.src=["https://","app.phrase.com/assets/in-context-editor/2.0/app.js?",(new Date).getTime()].join("")):(r.type="module",r.src="https://d2bgdldl6xit7z.cloudfront.net/latest/ice/index.js"),r.async=!0;var t=document.getElementsByTagName("script")[0];void 0!==t?t.parentNode.insertBefore(r,t):document.body.appendChild(r)}}function o(){return globalThis.PHRASEAPP_ENABLED}function a(e){let t=globalThis.PHRASEAPP_CONFIG;return t.prefix+"phrase_"+e+t.suffix}},856:(e,t,r)=>{r.d(t,{injectIntl:()=>s});var n=r(552),i=r(935),o=r(787),a=r.n(o);function s(e,t){return(0,n.injectIntl)((t=>{const{formatMessage:r}=(0,n.useIntl)();function o(e,t){if((0,i.isPhraseEnabled)()){const t=e.replace("<","[[[[[[html_open]]]]]]").replace(">","[[[[[[html_close]]]]]]");return(0,i.escapeId)(t)}return r({id:e},t)}function s(e,t,r){const{id:n}=e;if(n)return o(n,t);console.error("formatMessage requires an id")}return t.intl.formatMessage=s,a().createElement(e,{translate:o,formatMessage:s,...t})}),t)}},703:(e,t,r)=>{r.d(t,{useIntl:()=>o});var n=r(552),i=r(935);function o(){if((0,i.isPhraseEnabled)()){function e(...e){return(0,i.escapeId)(e[0]?.id||"")}return{...(0,n.useIntl)(),formatMessage:e}}return(0,n.useIntl)()}},282:(e,t,r)=>{r.d(t,{useSSRIntl:()=>pt});var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o,a,s,h=function(){return h=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},h.apply(this,arguments)};function l(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function u(e){return e.type===a.literal}function c(e){return e.type===a.argument}function f(e){return e.type===a.number}function p(e){return e.type===a.date}function m(e){return e.type===a.time}function g(e){return e.type===a.select}function E(e){return e.type===a.plural}function d(e){return e.type===a.pound}function b(e){return e.type===a.tag}function y(e){return!(!e||"object"!=typeof e||e.type!==s.number)}function v(e){return!(!e||"object"!=typeof e||e.type!==s.dateTime)}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError,function(e){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"}(o||(o={})),function(e){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"}(a||(a={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(s||(s={}));var T=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,_=/(?:[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 H(e){var t={};return e.replace(_,(function(e){var r=e.length;switch(e[0]){case"G":t.era=4===r?"long":5===r?"narrow":"short";break;case"y":t.year=2===r?"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":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===r?"short":5===r?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-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":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<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""})),t}var A=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,B=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,S=/^(@+)?(\+|#+)?[rs]?$/g,I=/(\*)(0+)|(#+)(0+)|(0+)/g,P=/^(0+)$/;function N(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(S,(function(e,r,n){return"string"!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===n?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""})),t}function L(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 R(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!P.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function O(e){return L(e)||{}}function M(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.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=i.options[0].replace(/^(.*?)-/,"");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=h(h(h({},t),{notation:"scientific"}),i.options.reduce((function(e,t){return h(h({},e),O(t))}),{}));continue;case"engineering":t=h(h(h({},t),{notation:"engineering"}),i.options.reduce((function(e,t){return h(h({},e),O(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(i.options[0]);continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(I,(function(e,r,n,i,o,a){if(r)t.minimumIntegerDigits=n.length;else{if(i&&o)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(P.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(B.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(B,(function(e,r,n,i,o,a){return"*"===n?t.minimumFractionDigits=r.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&a?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+a.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""}));var o=i.options[0];"w"===o?t=h(h({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=h(h({},t),N(o)))}else if(S.test(i.stem))t=h(h({},t),N(i.stem));else{var a=L(i.stem);a&&(t=h(h({},t),a));var s=R(i.stem);s&&(t=h(h({},t),s))}}return t}var C,w={"001":["H","h"],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"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],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"],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","hB","h","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"],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"],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"],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","h","K"],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"],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"],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"],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","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","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"],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"],TL:["H","hB","hb","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"],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"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["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 D(e){var t=e.hourCycle;if(void 0===t&&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 new Error("Invalid hourCycle")}var r,n=e.language;return"root"!==n&&(r=e.maximize().region),(w[r||""]||w[n||""]||w["".concat(n,"-001")]||w["001"])[0]}var U=new RegExp("^".concat(T.source,"*")),G=new RegExp("".concat(T.source,"*$"));function F(e,t){return{start:e,end:t}}var k=!!String.prototype.startsWith&&"_a".startsWith("a",1),j=!!String.fromCodePoint,x=!!Object.fromEntries,V=!!String.prototype.codePointAt,X=!!String.prototype.trimStart,K=!!String.prototype.trimEnd,Z=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Y=!0;try{Y="a"===(null===(C=te("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===C?void 0:C[0])}catch(e){Y=!1}var z,W=k?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},q=j?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",i=e.length,o=0;i>o;){if((r=e[o++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},Q=x?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r],o=i[0],a=i[1];t[o]=a}return t},J=V?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||t>=r)){var n,i=e.charCodeAt(t);return i<55296||i>56319||t+1===r||(n=e.charCodeAt(t+1))<56320||n>57343?i:n-56320+(i-55296<<10)+65536}},$=X?function(e){return e.trimStart()}:function(e){return e.replace(U,"")},ee=K?function(e){return e.trimEnd()}:function(e){return e.replace(G,"")};function te(e,t){return new RegExp(e,t)}if(Y){var re=te("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");z=function(e,t){var r;return re.lastIndex=t,null!==(r=re.exec(e)[1])&&void 0!==r?r:""}}else z=function(e,t){for(var r=[];;){var n=J(e,t);if(void 0===n||oe(n)||ae(n))break;r.push(n),t+=n>=65536?2:1}return q.apply(void 0,r)};var ne=function(){function e(e,t){void 0===t&&(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}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i=this.char();if(123===i){if((s=this.parseArgument(e,r)).err)return s;n.push(s.val)}else{if(125===i&&e>0)break;if(35!==i||"plural"!==t&&"selectordinal"!==t){if(60===i&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(o.UNMATCHED_CLOSING_TAG,F(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&ie(this.peek()||0)){if((s=this.parseTag(e,t)).err)return s;n.push(s.val)}else{var s;if((s=this.parseLiteral(e,t)).err)return s;n.push(s.val)}}else{var h=this.clonePosition();this.bump(),n.push({type:a.pound,location:F(h,this.clonePosition())})}}}return{val:n,err:null}},e.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:a.literal,value:"<".concat(n,"/>"),location:F(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var s=i.val,h=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!ie(this.char()))return this.error(o.INVALID_TAG,F(h,this.clonePosition()));var l=this.clonePosition();return n!==this.parseTagName()?this.error(o.UNMATCHED_CLOSING_TAG,F(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:a.tag,value:n,children:s,location:F(r,this.clonePosition())},err:null}:this.error(o.INVALID_TAG,F(h,this.clonePosition())))}return this.error(o.UNCLOSED_TAG,F(r,this.clonePosition()))}return this.error(o.INVALID_TAG,F(r,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||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);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i)n+=i;else{var o=this.tryParseUnquoted(e,t);if(o)n+=o;else{var s=this.tryParseLeftAngleBracket();if(!s)break;n+=s}}}var h=F(r,this.clonePosition());return{val:{type:a.literal,value:n,location:h},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(ie(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){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"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return q.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),q(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(o.EXPECT_ARGUMENT_CLOSING_BRACE,F(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(o.EMPTY_ARGUMENT,F(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(o.MALFORMED_ARGUMENT,F(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(o.EXPECT_ARGUMENT_CLOSING_BRACE,F(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:a.argument,value:n,location:F(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(o.EXPECT_ARGUMENT_CLOSING_BRACE,F(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(o.MALFORMED_ARGUMENT,F(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=z(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:F(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,n){var i,l=this.clonePosition(),u=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(u){case"":return this.error(o.EXPECT_ARGUMENT_TYPE,F(l,c));case"number":case"date":case"time":this.bumpSpace();var f=null;if(this.bumpIf(",")){this.bumpSpace();var p=this.clonePosition();if((T=this.parseSimpleArgStyleIfPossible()).err)return T;if(0===(d=ee(T.val)).length)return this.error(o.EXPECT_ARGUMENT_STYLE,F(this.clonePosition(),this.clonePosition()));f={style:d,styleLocation:F(p,this.clonePosition())}}if((_=this.tryParseArgumentClose(n)).err)return _;var m=F(n,this.clonePosition());if(f&&W(null==f?void 0:f.style,"::",0)){var g=$(f.style.slice(2));if("number"===u)return(T=this.parseNumberSkeletonFromString(g,f.styleLocation)).err?T:{val:{type:a.number,value:r,location:m,style:T.val},err:null};if(0===g.length)return this.error(o.EXPECT_DATE_TIME_SKELETON,m);var E=g;this.locale&&(E=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if("j"===i){for(var o=0;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;var a=1+(1&o),s=o<2?1:3+(o>>1),h=D(t);for("H"!=h&&"k"!=h||(s=0);s-- >0;)r+="a";for(;a-- >0;)r=h+r}else r+="J"===i?"H":i}return r}(g,this.locale));var d={type:s.dateTime,pattern:E,location:f.styleLocation,parsedOptions:this.shouldParseSkeletons?H(E):{}};return{val:{type:"date"===u?a.date:a.time,value:r,location:m,style:d},err:null}}return{val:{type:"number"===u?a.number:"date"===u?a.date:a.time,value:r,location:m,style:null!==(i=null==f?void 0:f.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":var b=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(o.EXPECT_SELECT_ARGUMENT_OPTIONS,F(b,h({},b)));this.bumpSpace();var y=this.parseIdentifierIfPossible(),v=0;if("select"!==u&&"offset"===y.value){if(!this.bumpIf(":"))return this.error(o.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,F(this.clonePosition(),this.clonePosition()));var T;if(this.bumpSpace(),(T=this.tryParseDecimalInteger(o.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,o.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return T;this.bumpSpace(),y=this.parseIdentifierIfPossible(),v=T.val}var _,A=this.tryParsePluralOrSelectOptions(e,u,t,y);if(A.err)return A;if((_=this.tryParseArgumentClose(n)).err)return _;var B=F(n,this.clonePosition());return"select"===u?{val:{type:a.select,value:r,options:Q(A.val),location:B},err:null}:{val:{type:a.plural,value:r,options:Q(A.val),offset:v,pluralType:"plural"===u?"cardinal":"ordinal",location:B},err:null};default:return this.error(o.INVALID_ARGUMENT_TYPE,F(l,c))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(o.EXPECT_ARGUMENT_CLOSING_BRACE,F(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(o.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,F(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(A).filter((function(e){return e.length>0}));r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],a=i.slice(1),s=0,h=a;s<h.length;s++)if(0===h[s].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:a})}return t}(e)}catch(e){return this.error(o.INVALID_NUMBER_SKELETON,t)}return{val:{type:s.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?M(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var i,a=!1,s=[],h=new Set,l=n.value,u=n.location;;){if(0===l.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var f=this.tryParseDecimalInteger(o.EXPECT_PLURAL_ARGUMENT_SELECTOR,o.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;u=F(c,this.clonePosition()),l=this.message.slice(c.offset,this.offset())}if(h.has(l))return this.error("select"===t?o.DUPLICATE_SELECT_ARGUMENT_SELECTOR:o.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===l&&(a=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?o.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:o.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,F(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(e+1,t,r);if(m.err)return m;var g=this.tryParseArgumentClose(p);if(g.err)return g;s.push([l,{value:m.val,location:F(p,this.clonePosition())}]),h.add(l),this.bumpSpace(),l=(i=this.parseIdentifierIfPossible()).value,u=i.location}return 0===s.length?this.error("select"===t?o.EXPECT_SELECT_ARGUMENT_SELECTOR:o.EXPECT_PLURAL_ARGUMENT_SELECTOR,F(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(o.MISSING_OTHER_CLAUSE,F(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var a=this.char();if(!(a>=48&&a<=57))break;i=!0,o=10*o+(a-48),this.bump()}var s=F(n,this.clonePosition());return i?Z(o*=r)?{val:o,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=J(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(W(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&oe(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return null!=r?r:null},e}();function ie(e){return e>=97&&e<=122||e>=65&&e<=90}function oe(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function ae(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function se(e){e.forEach((function(e){if(delete e.location,g(e)||E(e))for(var t in e.options)delete e.options[t].location,se(e.options[t].value);else f(e)&&y(e.style)||(p(e)||m(e))&&v(e.style)?delete e.style.location:b(e)&&se(e.children)}))}function he(e,t){void 0===t&&(t={}),t=h({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new ne(e,t).parse();if(r.err){var n=SyntaxError(o[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null==t?void 0:t.captureLocation)||se(r.val),r.val}function le(e,t){var r=t&&t.cache?t.cache:de,n=t&&t.serializer?t.serializer:me;return(t&&t.strategy?t.strategy:pe)(e,{cache:r,serializer:n})}function ue(e,t,r,n){var i,o=null==(i=n)||"number"==typeof i||"boolean"==typeof i?n:r(n),a=t.get(o);return void 0===a&&(a=e.call(this,n),t.set(o,a)),a}function ce(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return void 0===o&&(o=e.apply(this,n),t.set(i,o)),o}function fe(e,t,r,n,i){return r.bind(t,e,n,i)}function pe(e,t){return fe(e,this,1===e.length?ue:ce,t.cache.create(),t.serializer)}var me=function(){return JSON.stringify(arguments)};function ge(){this.cache=Object.create(null)}ge.prototype.get=function(e){return this.cache[e]},ge.prototype.set=function(e,t){this.cache[e]=t};var Ee,de={create:function(){return new ge}},be={variadic:function(e,t){return fe(e,this,ce,t.cache.create(),t.serializer)},monadic:function(e,t){return fe(e,this,ue,t.cache.create(),t.serializer)}};!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(Ee||(Ee={}));var ye,ve=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.code=r,i.originalMessage=n,i}return i(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Te=function(e){function t(t,r,n,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),Ee.INVALID_VALUE,i)||this}return i(t,e),t}(ve),_e=function(e){function t(t,r,n){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),Ee.INVALID_VALUE,n)||this}return i(t,e),t}(ve),He=function(e){function t(t,r){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),Ee.MISSING_VALUE,r)||this}return i(t,e),t}(ve);function Ae(e){return"function"==typeof e}function Be(e,t,r,n,i,o,a){if(1===e.length&&u(e[0]))return[{type:ye.literal,value:e[0].value}];for(var s=[],h=0,l=e;h<l.length;h++){var T=l[h];if(u(T))s.push({type:ye.literal,value:T.value});else if(d(T))"number"==typeof o&&s.push({type:ye.literal,value:r.getNumberFormat(t).format(o)});else{var _=T.value;if(!i||!(_ in i))throw new He(_,a);var H=i[_];if(c(T))H&&"string"!=typeof H&&"number"!=typeof H||(H="string"==typeof H||"number"==typeof H?String(H):""),s.push({type:"string"==typeof H?ye.literal:ye.object,value:H});else if(p(T)){var A="string"==typeof T.style?n.date[T.style]:v(T.style)?T.style.parsedOptions:void 0;s.push({type:ye.literal,value:r.getDateTimeFormat(t,A).format(H)})}else if(m(T))A="string"==typeof T.style?n.time[T.style]:v(T.style)?T.style.parsedOptions:n.time.medium,s.push({type:ye.literal,value:r.getDateTimeFormat(t,A).format(H)});else if(f(T))(A="string"==typeof T.style?n.number[T.style]:y(T.style)?T.style.parsedOptions:void 0)&&A.scale&&(H*=A.scale||1),s.push({type:ye.literal,value:r.getNumberFormat(t,A).format(H)});else{if(b(T)){var B=T.children,S=T.value,I=i[S];if(!Ae(I))throw new _e(S,"function",a);var P=I(Be(B,t,r,n,i,o).map((function(e){return e.value})));Array.isArray(P)||(P=[P]),s.push.apply(s,P.map((function(e){return{type:"string"==typeof e?ye.literal:ye.object,value:e}})))}if(g(T)){if(!(N=T.options[H]||T.options.other))throw new Te(T.value,H,Object.keys(T.options),a);s.push.apply(s,Be(N.value,t,r,n,i))}else if(E(T)){var N;if(!(N=T.options["=".concat(H)])){if(!Intl.PluralRules)throw new ve('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Ee.MISSING_INTL_API,a);var L=r.getPluralRules(t,{type:T.pluralType}).select(H-(T.offset||0));N=T.options[L]||T.options.other}if(!N)throw new Te(T.value,H,Object.keys(T.options),a);s.push.apply(s,Be(N.value,t,r,n,i,H-(T.offset||0)))}}}}return(R=s).length<2?R:R.reduce((function(e,t){var r=e[e.length-1];return r&&r.type===ye.literal&&t.type===ye.literal?r.value+=t.value:e.push(t),e}),[]);var R}function Se(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(ye||(ye={}));var Ie,Pe=function(){function e(t,r,n,i){void 0===r&&(r=e.defaultLocale);var o,a,s,u=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=u.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce((function(e,t){return e.length&&t.type===ye.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return r.length<=1?r[0]||"":r},this.formatToParts=function(e){return Be(u.ast,u.locales,u.formatters,u.formats,e,void 0,u.message)},this.resolvedOptions=function(){var e;return{locale:(null===(e=u.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(u.locales)[0]}},this.getAst=function(){return u.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var c=i||{},f=(c.formatters,function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}(c,["formatters"]));this.ast=e.__parse(t,h(h({},f),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(a=e.formats,(s=n)?Object.keys(a).reduce((function(e,t){var r,n;return e[t]=(r=a[t],(n=s[t])?h(h(h({},r||{}),n||{}),Object.keys(r).reduce((function(e,t){return e[t]=h(h({},r[t]),n[t]||{}),e}),{})):r),e}),h({},a)):a),this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:le((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,l([void 0],t,!1)))}),{cache:Se(o.number),strategy:be.variadic}),getDateTimeFormat:le((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,l([void 0],t,!1)))}),{cache:Se(o.dateTime),strategy:be.variadic}),getPluralRules:le((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,l([void 0],t,!1)))}),{cache:Se(o.pluralRules),strategy:be.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){if(void 0!==Intl.Locale){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])}},e.__parse=he,e.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"}}},e}();!function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"}(Ie||(Ie={}));var Ne=function(e){function t(r,n,i){var o=this,a=i?i instanceof Error?i:new Error(String(i)):void 0;return(o=e.call(this,"[@formatjs/intl Error ".concat(r,"] ").concat(n,"\n").concat(a?"\n".concat(a.message,"\n").concat(a.stack):""))||this).code=r,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(o,t),o}return i(t,e),t}(Error),Le=function(e){function t(t,r){return e.call(this,Ie.UNSUPPORTED_FORMATTER,t,r)||this}return i(t,e),t}(Ne),Re=function(e){function t(t,r){return e.call(this,Ie.INVALID_CONFIG,t,r)||this}return i(t,e),t}(Ne),Oe=function(e){function t(t,r){return e.call(this,Ie.MISSING_DATA,t,r)||this}return i(t,e),t}(Ne),Me=function(e){function t(t,r,n){var i=e.call(this,Ie.FORMAT_ERROR,"".concat(t,"\nLocale: ").concat(r,"\n"),n)||this;return i.locale=r,i}return i(t,e),t}(Ne),Ce=function(e){function t(t,r,n,i){var o=e.call(this,"".concat(t,"\nMessageID: ").concat(null==n?void 0:n.id,"\nDefault Message: ").concat(null==n?void 0:n.defaultMessage,"\nDescription: ").concat(null==n?void 0:n.description,"\n"),r,i)||this;return o.descriptor=n,o.locale=r,o}return i(t,e),t}(Me),we=function(e){function t(t,r){var n=e.call(this,Ie.MISSING_TRANSLATION,'Missing message: "'.concat(t.id,'" for locale "').concat(r,'", using ').concat(t.defaultMessage?"default message (".concat("string"==typeof t.defaultMessage?t.defaultMessage:t.defaultMessage.map((function(e){var t;return null!==(t=e.value)&&void 0!==t?t:JSON.stringify(e)})).join(),")"):"id"," as fallback."))||this;return n.descriptor=t,n}return i(t,e),t}(Ne);function De(e,t,r){return void 0===r&&(r={}),t.reduce((function(t,n){return n in e?t[n]=e[n]:n in r&&(t[n]=r[n]),t}),{})}var Ue={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(e){},onWarn:function(e){}};function Ge(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function Fe(e,t,r,n){var i,o=e&&e[t];if(o&&(i=o[r]),i)return i;n(new Le("No ".concat(t," format named: ").concat(r)))}var ke=["style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function je(e,t,r){var n=e.locale,i=e.formats,o=e.onError;void 0===r&&(r={});var a=r.format,s=a&&Fe(i,"number",a,o)||{};return t(n,De(r,ke,s))}function xe(e,t,r,n){void 0===n&&(n={});try{return je(e,t,n).format(r)}catch(t){e.onError(new Me("Error formatting number.",e.locale,t))}return String(r)}function Ve(e,t,r,n){void 0===n&&(n={});try{return je(e,t,n).formatToParts(r)}catch(t){e.onError(new Me("Error formatting number.",e.locale,t))}return[]}var Xe=["numeric","style"];function Ke(e,t,r,n,i){void 0===i&&(i={}),n||(n="second"),Intl.RelativeTimeFormat||e.onError(new ve('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',Ee.MISSING_INTL_API));try{return function(e,t,r){var n=e.locale,i=e.formats,o=e.onError;void 0===r&&(r={});var a=r.format,s=!!a&&Fe(i,"relative",a,o)||{};return t(n,De(r,Xe,s))}(e,t,i).format(r,n)}catch(t){e.onError(new Me("Error formatting relative time.",e.locale,t))}return String(r)}var Ze=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function Ye(e,t,r,n){var i=e.locale,o=e.formats,a=e.onError,s=e.timeZone;void 0===n&&(n={});var l=n.format,u=h(h({},s&&{timeZone:s}),l&&Fe(o,t,l,a)),c=De(n,Ze,u);return"time"!==t||c.hour||c.minute||c.second||c.timeStyle||c.dateStyle||(c=h(h({},c),{hour:"numeric",minute:"numeric"})),r(i,c)}function ze(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=void 0===o?{}:o,s="string"==typeof i?new Date(i||0):i;try{return Ye(e,"date",t,a).format(s)}catch(t){e.onError(new Me("Error formatting date.",e.locale,t))}return String(s)}function We(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=void 0===o?{}:o,s="string"==typeof i?new Date(i||0):i;try{return Ye(e,"time",t,a).format(s)}catch(t){e.onError(new Me("Error formatting time.",e.locale,t))}return String(s)}function qe(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=r[2],s=void 0===a?{}:a,h=e.timeZone,l=e.locale,u=e.onError,c=De(s,Ze,h?{timeZone:h}:{});try{return t(l,c).formatRange(i,o)}catch(t){u(new Me("Error formatting date time range.",e.locale,t))}return String(i)}function Qe(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=void 0===o?{}:o,s="string"==typeof i?new Date(i||0):i;try{return Ye(e,"date",t,a).formatToParts(s)}catch(t){e.onError(new Me("Error formatting date.",e.locale,t))}return[]}function Je(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=void 0===o?{}:o,s="string"==typeof i?new Date(i||0):i;try{return Ye(e,"time",t,a).formatToParts(s)}catch(t){e.onError(new Me("Error formatting time.",e.locale,t))}return[]}var $e=["type"];function et(e,t,r,n){var i=e.locale,o=e.onError;void 0===n&&(n={}),Intl.PluralRules||o(new ve('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Ee.MISSING_INTL_API));var a=De(n,$e);try{return t(i,a).select(r)}catch(e){o(new Me("Error formatting plural.",i,e))}return"other"}function tt(e,t){return Object.keys(e).reduce((function(r,n){return r[n]=h({timeZone:t},e[n]),r}),{})}function rt(e,t){return Object.keys(h(h({},e),t)).reduce((function(r,n){return r[n]=h(h({},e[n]||{}),t[n]||{}),r}),{})}function nt(e,t){if(!t)return e;var r=Pe.formats;return h(h(h({},r),e),{date:rt(tt(r.date,t),tt(e.date||{},t)),time:rt(tt(r.time,t),tt(e.time||{},t))})}var it=function(e,t,r,n,i){var o=e.locale,s=e.formats,l=e.messages,u=e.defaultLocale,c=e.defaultFormats,f=e.fallbackOnEmptyString,p=e.onError,m=e.timeZone,g=e.defaultRichTextElements;void 0===r&&(r={id:""});var E=r.id,d=r.defaultMessage;!function(e,t,r){if(void 0===r&&(r=Error),!e)throw new r("[@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.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue")}(!!E);var b=String(E),y=l&&Object.prototype.hasOwnProperty.call(l,b)&&l[b];if(Array.isArray(y)&&1===y.length&&y[0].type===a.literal)return y[0].value;if(!n&&y&&"string"==typeof y&&!g)return y.replace(/'\{(.*?)\}'/gi,"{$1}");if(n=h(h({},g),n||{}),s=nt(s,m),c=nt(c,m),!y){if(!1===f&&""===y)return y;if((!d||o&&o.toLowerCase()!==u.toLowerCase())&&p(new we(r,o)),d)try{return t.getMessageFormat(d,u,c,i).format(n)}catch(e){return p(new Ce('Error formatting default message for: "'.concat(b,'", rendering default message verbatim'),o,r,e)),"string"==typeof d?d:b}return b}try{return t.getMessageFormat(y,o,s,h({formatters:t},i||{})).format(n)}catch(e){p(new Ce('Error formatting message: "'.concat(b,'", using ').concat(d?"default message":"id"," as fallback."),o,r,e))}if(d)try{return t.getMessageFormat(d,u,c,i).format(n)}catch(e){p(new Ce('Error formatting the default message for: "'.concat(b,'", rendering message verbatim'),o,r,e))}return"string"==typeof y?y:"string"==typeof d?d:b},ot=["type","style"],at=Date.now();function st(e,t,r,n){void 0===n&&(n={});var i=ht(e,t,r,n).reduce((function(e,t){var r=t.value;return"string"!=typeof r?e.push(r):"string"==typeof e[e.length-1]?e[e.length-1]+=r:e.push(r),e}),[]);return 1===i.length?i[0]:0===i.length?"":i}function ht(e,t,r,n){var i=e.locale,o=e.onError;void 0===n&&(n={}),Intl.ListFormat||o(new ve('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',Ee.MISSING_INTL_API));var a=De(n,ot);try{var s={},l=r.map((function(e,t){if("object"==typeof e){var r=function(e){return"".concat(at,"_").concat(e,"_").concat(at)}(t);return s[r]=e,r}return String(e)}));return t(i,a).formatToParts(l).map((function(e){return"literal"===e.type?e:h(h({},e),{value:s[e.value]||e.value})}))}catch(e){o(new Me("Error formatting list.",i,e))}return r}var lt=["style","type","fallback","languageDisplay"];function ut(e,t,r,n){var i=e.locale,o=e.onError;Intl.DisplayNames||o(new ve('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',Ee.MISSING_INTL_API));var a=De(n,lt);try{return t(i,a).of(r)}catch(e){o(new Me("Error formatting display name.",i,e))}}function ct(e,t){var r=function(e){void 0===e&&(e={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});var t=Intl.RelativeTimeFormat,r=Intl.ListFormat,n=Intl.DisplayNames,i=le((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,l([void 0],t,!1)))}),{cache:Ge(e.dateTime),strategy:be.variadic}),o=le((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,l([void 0],t,!1)))}),{cache:Ge(e.number),strategy:be.variadic}),a=le((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,l([void 0],t,!1)))}),{cache:Ge(e.pluralRules),strategy:be.variadic});return{getDateTimeFormat:i,getNumberFormat:o,getMessageFormat:le((function(e,t,r,n){return new Pe(e,t,r,h({formatters:{getNumberFormat:o,getDateTimeFormat:i,getPluralRules:a}},n||{}))}),{cache:Ge(e.message),strategy:be.variadic}),getRelativeTimeFormat:le((function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new(t.bind.apply(t,l([void 0],e,!1)))}),{cache:Ge(e.relativeTime),strategy:be.variadic}),getPluralRules:a,getListFormat:le((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(r.bind.apply(r,l([void 0],e,!1)))}),{cache:Ge(e.list),strategy:be.variadic}),getDisplayNames:le((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(n.bind.apply(n,l([void 0],e,!1)))}),{cache:Ge(e.displayNames),strategy:be.variadic})}}(t),n=h(h({},Ue),e),i=n.locale,o=n.defaultLocale,a=n.onError;return i?!Intl.NumberFormat.supportedLocalesOf(i).length&&a?a(new Oe('Missing locale data for locale: "'.concat(i,'" in Intl.NumberFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(i).length&&a&&a(new Oe('Missing locale data for locale: "'.concat(i,'" in Intl.DateTimeFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(a&&a(new Re('"locale" was not configured, using "'.concat(o,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),n.locale=n.defaultLocale||"en"),function(e){var t;e.onWarn&&e.defaultRichTextElements&&"string"==typeof((t=e.messages||{})?t[Object.keys(t)[0]]:void 0)&&e.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.io/docs/getting-started/message-distribution')}(n),h(h({},n),{formatters:r,formatNumber:xe.bind(null,n,r.getNumberFormat),formatNumberToParts:Ve.bind(null,n,r.getNumberFormat),formatRelativeTime:Ke.bind(null,n,r.getRelativeTimeFormat),formatDate:ze.bind(null,n,r.getDateTimeFormat),formatDateToParts:Qe.bind(null,n,r.getDateTimeFormat),formatTime:We.bind(null,n,r.getDateTimeFormat),formatDateTimeRange:qe.bind(null,n,r.getDateTimeFormat),formatTimeToParts:Je.bind(null,n,r.getDateTimeFormat),formatPlural:et.bind(null,n,r.getPluralRules),formatMessage:it.bind(null,n,r),$t:it.bind(null,n,r),formatList:st.bind(null,n,r.getListFormat),formatListToParts:ht.bind(null,n,r.getListFormat),formatDisplayName:ut.bind(null,n,r.getDisplayNames)})}var ft=r(935);function pt({locale:e,messages:t}){const r=ct({locale:e,messages:t},{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});if((0,ft.isPhraseEnabled)()){function n(...e){return(0,ft.escapeId)(e[0]?.id||"")}return{...r,formatMessage:n}}return r}},787:e=>{e.exports=t},552:t=>{t.exports=e}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={exports:{}};return r[e](o,o.exports,i),o.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{i.r(o),i.d(o,{FormattedMessage:()=>r.FormattedMessage,initializePhraseAppEditor:()=>e.initializePhraseAppEditor,injectIntl:()=>t.injectIntl,useIntl:()=>n.useIntl,useSSRIntl:()=>a.useSSRIntl});var e=i(935),t=i(856),r=i(763),n=i(703),a=i(282)})(),o})())); |
@@ -1,1 +0,1 @@ | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["react-intl-phraseapp"]=e():t["react-intl-phraseapp"]=e()}(this,(()=>(()=>{"use strict";var t={935:(t,e,r)=>{function n(){return globalThis.PHRASEAPP_ENABLED}function i(t){let e=globalThis.PHRASEAPP_CONFIG;return e.prefix+"phrase_"+t+e.suffix}r.d(e,{escapeId:()=>i,isPhraseEnabled:()=>n})}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var o=e[n]={exports:{}};return t[n](o,o.exports,r),o.exports}r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};return(()=>{r.r(n),r.d(n,{useSSRIntl:()=>fe});var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};function e(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}var i,o,a,s=function(){return s=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},s.apply(this,arguments)};function h(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}function l(t){return t.type===o.literal}function u(t){return t.type===o.argument}function c(t){return t.type===o.number}function f(t){return t.type===o.date}function p(t){return t.type===o.time}function m(t){return t.type===o.select}function g(t){return t.type===o.plural}function E(t){return t.type===o.pound}function b(t){return t.type===o.tag}function y(t){return!(!t||"object"!=typeof t||t.type!==a.number)}function d(t){return!(!t||"object"!=typeof t||t.type!==a.dateTime)}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError,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"}(i||(i={})),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"}(o||(o={})),function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"}(a||(a={}));var v=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,T=/(?:[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 H(t){var e={};return t.replace(T,(function(t){var r=t.length;switch(t[0]){case"G":e.era=4===r?"long":5===r?"narrow":"short";break;case"y":e.year=2===r?"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"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":e.day=["numeric","2-digit"][r-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===r?"short":5===r?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][r-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"][r-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][r-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][r-1];break;case"k":e.hourCycle="h24",e.hour=["numeric","2-digit"][r-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"][r-1];break;case"s":e.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":e.timeZoneName=r<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 _=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,A=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,B=/^(@+)?(\+|#+)?[rs]?$/g,S=/(\*)(0+)|(#+)(0+)|(0+)/g,I=/^(0+)$/;function P(t){var e={};return"r"===t[t.length-1]?e.roundingPriority="morePrecision":"s"===t[t.length-1]&&(e.roundingPriority="lessPrecision"),t.replace(B,(function(t,r,n){return"string"!=typeof n?(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length):"+"===n?e.minimumSignificantDigits=r.length:"#"===r[0]?e.maximumSignificantDigits=r.length:(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""})),e}function N(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 L(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 r=t.slice(0,2);if("+!"===r?(e.signDisplay="always",t=t.slice(2)):"+?"===r&&(e.signDisplay="exceptZero",t=t.slice(2)),!I.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}function R(t){return N(t)||{}}function O(t){for(var e={},r=0,n=t;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=i.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=i.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=s(s(s({},e),{notation:"scientific"}),i.options.reduce((function(t,e){return s(s({},t),R(e))}),{}));continue;case"engineering":e=s(s(s({},e),{notation:"engineering"}),i.options.reduce((function(t,e){return s(s({},t),R(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(i.options[0]);continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(S,(function(t,r,n,i,o,a){if(r)e.minimumIntegerDigits=n.length;else{if(i&&o)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(I.test(i.stem))e.minimumIntegerDigits=i.stem.length;else if(A.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(A,(function(t,r,n,i,o,a){return"*"===n?e.minimumFractionDigits=r.length:i&&"#"===i[0]?e.maximumFractionDigits=i.length:o&&a?(e.minimumFractionDigits=o.length,e.maximumFractionDigits=o.length+a.length):(e.minimumFractionDigits=r.length,e.maximumFractionDigits=r.length),""}));var o=i.options[0];"w"===o?e=s(s({},e),{trailingZeroDisplay:"stripIfInteger"}):o&&(e=s(s({},e),P(o)))}else if(B.test(i.stem))e=s(s({},e),P(i.stem));else{var a=N(i.stem);a&&(e=s(s({},e),a));var h=L(i.stem);h&&(e=s(s({},e),h))}}return e}var M,C={"001":["H","h"],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"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],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"],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","hB","h","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"],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"],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"],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","h","K"],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"],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"],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"],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","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","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"],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"],TL:["H","hB","hb","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"],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"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["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 w(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 r,n=t.language;return"root"!==n&&(r=t.maximize().region),(C[r||""]||C[n||""]||C["".concat(n,"-001")]||C["001"])[0]}var D=new RegExp("^".concat(v.source,"*")),U=new RegExp("".concat(v.source,"*$"));function G(t,e){return{start:t,end:e}}var F=!!String.prototype.startsWith,k=!!String.fromCodePoint,j=!!Object.fromEntries,V=!!String.prototype.codePointAt,x=!!String.prototype.trimStart,X=!!String.prototype.trimEnd,K=Number.isSafeInteger?Number.isSafeInteger:function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},Z=!0;try{Z="a"===(null===(M=tt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===M?void 0:M[0])}catch(t){Z=!1}var Y,W=F?function(t,e,r){return t.startsWith(e,r)}:function(t,e,r){return t.slice(r,r+e.length)===e},z=k?String.fromCodePoint:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r,n="",i=t.length,o=0;i>o;){if((r=t[o++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},Q=j?Object.fromEntries:function(t){for(var e={},r=0,n=t;r<n.length;r++){var i=n[r],o=i[0],a=i[1];e[o]=a}return e},q=V?function(t,e){return t.codePointAt(e)}:function(t,e){var r=t.length;if(!(e<0||e>=r)){var n,i=t.charCodeAt(e);return i<55296||i>56319||e+1===r||(n=t.charCodeAt(e+1))<56320||n>57343?i:n-56320+(i-55296<<10)+65536}},J=x?function(t){return t.trimStart()}:function(t){return t.replace(D,"")},$=X?function(t){return t.trimEnd()}:function(t){return t.replace(U,"")};function tt(t,e){return new RegExp(t,e)}if(Z){var et=tt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Y=function(t,e){var r;return et.lastIndex=e,null!==(r=et.exec(t)[1])&&void 0!==r?r:""}}else Y=function(t,e){for(var r=[];;){var n=q(t,e);if(void 0===n||it(n)||ot(n))break;r.push(n),e+=n>=65536?2:1}return z.apply(void 0,r)};var rt=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,r){for(var n=[];!this.isEOF();){var a=this.char();if(123===a){if((s=this.parseArgument(t,r)).err)return s;n.push(s.val)}else{if(125===a&&t>0)break;if(35!==a||"plural"!==e&&"selectordinal"!==e){if(60===a&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(i.UNMATCHED_CLOSING_TAG,G(this.clonePosition(),this.clonePosition()))}if(60===a&&!this.ignoreTag&&nt(this.peek()||0)){if((s=this.parseTag(t,e)).err)return s;n.push(s.val)}else{var s;if((s=this.parseLiteral(t,e)).err)return s;n.push(s.val)}}else{var h=this.clonePosition();this.bump(),n.push({type:o.pound,location:G(h,this.clonePosition())})}}}return{val:n,err:null}},t.prototype.parseTag=function(t,e){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:o.literal,value:"<".concat(n,"/>"),location:G(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var a=this.parseMessage(t+1,e,!0);if(a.err)return a;var s=a.val,h=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!nt(this.char()))return this.error(i.INVALID_TAG,G(h,this.clonePosition()));var l=this.clonePosition();return n!==this.parseTagName()?this.error(i.UNMATCHED_CLOSING_TAG,G(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:o.tag,value:n,children:s,location:G(r,this.clonePosition())},err:null}:this.error(i.INVALID_TAG,G(h,this.clonePosition())))}return this.error(i.UNCLOSED_TAG,G(r,this.clonePosition()))}return this.error(i.INVALID_TAG,G(r,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 r=this.clonePosition(),n="";;){var i=this.tryParseQuote(e);if(i)n+=i;else{var a=this.tryParseUnquoted(t,e);if(a)n+=a;else{var s=this.tryParseLeftAngleBracket();if(!s)break;n+=s}}}var h=G(r,this.clonePosition());return{val:{type:o.literal,value:n,location:h},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(nt(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 r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}e.push(39),this.bump()}else e.push(r);this.bump()}return z.apply(void 0,e)},t.prototype.tryParseUnquoted=function(t,e){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===e||"selectordinal"===e)||125===r&&t>0?null:(this.bump(),z(r))},t.prototype.parseArgument=function(t,e){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(i.EXPECT_ARGUMENT_CLOSING_BRACE,G(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(i.EMPTY_ARGUMENT,G(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(i.MALFORMED_ARGUMENT,G(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(i.EXPECT_ARGUMENT_CLOSING_BRACE,G(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:o.argument,value:n,location:G(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(i.EXPECT_ARGUMENT_CLOSING_BRACE,G(r,this.clonePosition())):this.parseArgumentOptions(t,e,n,r);default:return this.error(i.MALFORMED_ARGUMENT,G(r,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),r=Y(this.message,e),n=e+r.length;return this.bumpTo(n),{value:r,location:G(t,this.clonePosition())}},t.prototype.parseArgumentOptions=function(t,e,r,n){var h,l=this.clonePosition(),u=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(u){case"":return this.error(i.EXPECT_ARGUMENT_TYPE,G(l,c));case"number":case"date":case"time":this.bumpSpace();var f=null;if(this.bumpIf(",")){this.bumpSpace();var p=this.clonePosition();if((T=this.parseSimpleArgStyleIfPossible()).err)return T;if(0===(b=$(T.val)).length)return this.error(i.EXPECT_ARGUMENT_STYLE,G(this.clonePosition(),this.clonePosition()));f={style:b,styleLocation:G(p,this.clonePosition())}}if((_=this.tryParseArgumentClose(n)).err)return _;var m=G(n,this.clonePosition());if(f&&W(null==f?void 0:f.style,"::",0)){var g=J(f.style.slice(2));if("number"===u)return(T=this.parseNumberSkeletonFromString(g,f.styleLocation)).err?T:{val:{type:o.number,value:r,location:m,style:T.val},err:null};if(0===g.length)return this.error(i.EXPECT_DATE_TIME_SKELETON,m);var E=g;this.locale&&(E=function(t,e){for(var r="",n=0;n<t.length;n++){var i=t.charAt(n);if("j"===i){for(var o=0;n+1<t.length&&t.charAt(n+1)===i;)o++,n++;var a=1+(1&o),s=o<2?1:3+(o>>1),h=w(e);for("H"!=h&&"k"!=h||(s=0);s-- >0;)r+="a";for(;a-- >0;)r=h+r}else r+="J"===i?"H":i}return r}(g,this.locale));var b={type:a.dateTime,pattern:E,location:f.styleLocation,parsedOptions:this.shouldParseSkeletons?H(E):{}};return{val:{type:"date"===u?o.date:o.time,value:r,location:m,style:b},err:null}}return{val:{type:"number"===u?o.number:"date"===u?o.date:o.time,value:r,location:m,style:null!==(h=null==f?void 0:f.style)&&void 0!==h?h:null},err:null};case"plural":case"selectordinal":case"select":var y=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(i.EXPECT_SELECT_ARGUMENT_OPTIONS,G(y,s({},y)));this.bumpSpace();var d=this.parseIdentifierIfPossible(),v=0;if("select"!==u&&"offset"===d.value){if(!this.bumpIf(":"))return this.error(i.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,G(this.clonePosition(),this.clonePosition()));var T;if(this.bumpSpace(),(T=this.tryParseDecimalInteger(i.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,i.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return T;this.bumpSpace(),d=this.parseIdentifierIfPossible(),v=T.val}var _,A=this.tryParsePluralOrSelectOptions(t,u,e,d);if(A.err)return A;if((_=this.tryParseArgumentClose(n)).err)return _;var B=G(n,this.clonePosition());return"select"===u?{val:{type:o.select,value:r,options:Q(A.val),location:B},err:null}:{val:{type:o.plural,value:r,options:Q(A.val),offset:v,pluralType:"plural"===u?"cardinal":"ordinal",location:B},err:null};default:return this.error(i.INVALID_ARGUMENT_TYPE,G(l,c))}},t.prototype.tryParseArgumentClose=function(t){return this.isEOF()||125!==this.char()?this.error(i.EXPECT_ARGUMENT_CLOSING_BRACE,G(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 r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(i.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,G(r,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 r=[];try{r=function(t){if(0===t.length)throw new Error("Number skeleton cannot be empty");for(var e=[],r=0,n=t.split(_).filter((function(t){return t.length>0}));r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],a=i.slice(1),s=0,h=a;s<h.length;s++)if(0===h[s].length)throw new Error("Invalid number skeleton");e.push({stem:o,options:a})}return e}(t)}catch(t){return this.error(i.INVALID_NUMBER_SKELETON,e)}return{val:{type:a.number,tokens:r,location:e,parsedOptions:this.shouldParseSkeletons?O(r):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(t,e,r,n){for(var o,a=!1,s=[],h=new Set,l=n.value,u=n.location;;){if(0===l.length){var c=this.clonePosition();if("select"===e||!this.bumpIf("="))break;var f=this.tryParseDecimalInteger(i.EXPECT_PLURAL_ARGUMENT_SELECTOR,i.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;u=G(c,this.clonePosition()),l=this.message.slice(c.offset,this.offset())}if(h.has(l))return this.error("select"===e?i.DUPLICATE_SELECT_ARGUMENT_SELECTOR:i.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===l&&(a=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?i.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:i.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,G(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(t+1,e,r);if(m.err)return m;var g=this.tryParseArgumentClose(p);if(g.err)return g;s.push([l,{value:m.val,location:G(p,this.clonePosition())}]),h.add(l),this.bumpSpace(),l=(o=this.parseIdentifierIfPossible()).value,u=o.location}return 0===s.length?this.error("select"===e?i.EXPECT_SELECT_ARGUMENT_SELECTOR:i.EXPECT_PLURAL_ARGUMENT_SELECTOR,G(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(i.MISSING_OTHER_CLAUSE,G(this.clonePosition(),this.clonePosition())):{val:s,err:null}},t.prototype.tryParseDecimalInteger=function(t,e){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var a=this.char();if(!(a>=48&&a<=57))break;i=!0,o=10*o+(a-48),this.bump()}var s=G(n,this.clonePosition());return i?K(o*=r)?{val:o,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=q(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(W(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(),r=this.message.indexOf(t,e);return r>=0?(this.bumpTo(r),!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()&&it(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),r=this.message.charCodeAt(e+(t>=65536?2:1));return null!=r?r:null},t}();function nt(t){return t>=97&&t<=122||t>=65&&t<=90}function it(t){return t>=9&&t<=13||32===t||133===t||t>=8206&&t<=8207||8232===t||8233===t}function ot(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 at(t){t.forEach((function(t){if(delete t.location,m(t)||g(t))for(var e in t.options)delete t.options[e].location,at(t.options[e].value);else c(t)&&y(t.style)||(f(t)||p(t))&&d(t.style)?delete t.style.location:b(t)&&at(t.children)}))}function st(t,e){void 0===e&&(e={}),e=s({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var r=new rt(t,e).parse();if(r.err){var n=SyntaxError(i[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null==e?void 0:e.captureLocation)||at(r.val),r.val}function ht(t,e){var r=e&&e.cache?e.cache:Et,n=e&&e.serializer?e.serializer:pt;return(e&&e.strategy?e.strategy:ft)(t,{cache:r,serializer:n})}function lt(t,e,r,n){var i,o=null==(i=n)||"number"==typeof i||"boolean"==typeof i?n:r(n),a=e.get(o);return void 0===a&&(a=t.call(this,n),e.set(o,a)),a}function ut(t,e,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=e.get(i);return void 0===o&&(o=t.apply(this,n),e.set(i,o)),o}function ct(t,e,r,n,i){return r.bind(e,t,n,i)}function ft(t,e){return ct(t,this,1===t.length?lt:ut,e.cache.create(),e.serializer)}var pt=function(){return JSON.stringify(arguments)};function mt(){this.cache=Object.create(null)}mt.prototype.get=function(t){return this.cache[t]},mt.prototype.set=function(t,e){this.cache[t]=e};var gt,Et={create:function(){return new mt}},bt={variadic:function(t,e){return ct(t,this,ut,e.cache.create(),e.serializer)},monadic:function(t,e){return ct(t,this,lt,e.cache.create(),e.serializer)}};!function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"}(gt||(gt={}));var yt,dt=function(t){function r(e,r,n){var i=t.call(this,e)||this;return i.code=r,i.originalMessage=n,i}return e(r,t),r.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},r}(Error),vt=function(t){function r(e,r,n,i){return t.call(this,'Invalid values for "'.concat(e,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),gt.INVALID_VALUE,i)||this}return e(r,t),r}(dt),Tt=function(t){function r(e,r,n){return t.call(this,'Value for "'.concat(e,'" must be of type ').concat(r),gt.INVALID_VALUE,n)||this}return e(r,t),r}(dt),Ht=function(t){function r(e,r){return t.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(r,'"'),gt.MISSING_VALUE,r)||this}return e(r,t),r}(dt);function _t(t){return"function"==typeof t}function At(t,e,r,n,i,o,a){if(1===t.length&&l(t[0]))return[{type:yt.literal,value:t[0].value}];for(var s=[],h=0,v=t;h<v.length;h++){var T=v[h];if(l(T))s.push({type:yt.literal,value:T.value});else if(E(T))"number"==typeof o&&s.push({type:yt.literal,value:r.getNumberFormat(e).format(o)});else{var H=T.value;if(!i||!(H in i))throw new Ht(H,a);var _=i[H];if(u(T))_&&"string"!=typeof _&&"number"!=typeof _||(_="string"==typeof _||"number"==typeof _?String(_):""),s.push({type:"string"==typeof _?yt.literal:yt.object,value:_});else if(f(T)){var A="string"==typeof T.style?n.date[T.style]:d(T.style)?T.style.parsedOptions:void 0;s.push({type:yt.literal,value:r.getDateTimeFormat(e,A).format(_)})}else if(p(T))A="string"==typeof T.style?n.time[T.style]:d(T.style)?T.style.parsedOptions:n.time.medium,s.push({type:yt.literal,value:r.getDateTimeFormat(e,A).format(_)});else if(c(T))(A="string"==typeof T.style?n.number[T.style]:y(T.style)?T.style.parsedOptions:void 0)&&A.scale&&(_*=A.scale||1),s.push({type:yt.literal,value:r.getNumberFormat(e,A).format(_)});else{if(b(T)){var B=T.children,S=T.value,I=i[S];if(!_t(I))throw new Tt(S,"function",a);var P=I(At(B,e,r,n,i,o).map((function(t){return t.value})));Array.isArray(P)||(P=[P]),s.push.apply(s,P.map((function(t){return{type:"string"==typeof t?yt.literal:yt.object,value:t}})))}if(m(T)){if(!(N=T.options[_]||T.options.other))throw new vt(T.value,_,Object.keys(T.options),a);s.push.apply(s,At(N.value,e,r,n,i))}else if(g(T)){var N;if(!(N=T.options["=".concat(_)])){if(!Intl.PluralRules)throw new dt('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',gt.MISSING_INTL_API,a);var L=r.getPluralRules(e,{type:T.pluralType}).select(_-(T.offset||0));N=T.options[L]||T.options.other}if(!N)throw new vt(T.value,_,Object.keys(T.options),a);s.push.apply(s,At(N.value,e,r,n,i,_-(T.offset||0)))}}}}return(R=s).length<2?R:R.reduce((function(t,e){var r=t[t.length-1];return r&&r.type===yt.literal&&e.type===yt.literal?r.value+=e.value:t.push(e),t}),[]);var R}function Bt(t){return{create:function(){return{get:function(e){return t[e]},set:function(e,r){t[e]=r}}}}}!function(t){t[t.literal=0]="literal",t[t.object=1]="object"}(yt||(yt={}));var St,It=function(){function t(e,r,n,i){void 0===r&&(r=t.defaultLocale);var o,a,l,u=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){var e=u.formatToParts(t);if(1===e.length)return e[0].value;var r=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 r.length<=1?r[0]||"":r},this.formatToParts=function(t){return At(u.ast,u.locales,u.formatters,u.formats,t,void 0,u.message)},this.resolvedOptions=function(){var t;return{locale:(null===(t=u.resolvedLocale)||void 0===t?void 0:t.toString())||Intl.NumberFormat.supportedLocalesOf(u.locales)[0]}},this.getAst=function(){return u.ast},this.locales=r,this.resolvedLocale=t.resolveLocale(r),"string"==typeof e){if(this.message=e,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var c=i||{},f=(c.formatters,function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r}(c,["formatters"]));this.ast=t.__parse(e,s(s({},f),{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=(a=t.formats,(l=n)?Object.keys(a).reduce((function(t,e){var r,n;return t[e]=(r=a[e],(n=l[e])?s(s(s({},r||{}),n||{}),Object.keys(r).reduce((function(t,e){return t[e]=s(s({},r[e]),n[e]||{}),t}),{})):r),t}),s({},a)):a),this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:ht((function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,h([void 0],e,!1)))}),{cache:Bt(o.number),strategy:bt.variadic}),getDateTimeFormat:ht((function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,h([void 0],e,!1)))}),{cache:Bt(o.dateTime),strategy:bt.variadic}),getPluralRules:ht((function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,h([void 0],e,!1)))}),{cache:Bt(o.pluralRules),strategy:bt.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=st,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"}(St||(St={}));var Pt=function(t){function r(e,n,i){var o=this,a=i?i instanceof Error?i:new Error(String(i)):void 0;return(o=t.call(this,"[@formatjs/intl Error ".concat(e,"] ").concat(n,"\n").concat(a?"\n".concat(a.message,"\n").concat(a.stack):""))||this).code=e,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(o,r),o}return e(r,t),r}(Error),Nt=function(t){function r(e,r){return t.call(this,St.UNSUPPORTED_FORMATTER,e,r)||this}return e(r,t),r}(Pt),Lt=function(t){function r(e,r){return t.call(this,St.INVALID_CONFIG,e,r)||this}return e(r,t),r}(Pt),Rt=function(t){function r(e,r){return t.call(this,St.MISSING_DATA,e,r)||this}return e(r,t),r}(Pt),Ot=function(t){function r(e,r,n){var i=t.call(this,St.FORMAT_ERROR,"".concat(e,"\nLocale: ").concat(r,"\n"),n)||this;return i.locale=r,i}return e(r,t),r}(Pt),Mt=function(t){function r(e,r,n,i){var o=t.call(this,"".concat(e,"\nMessageID: ").concat(null==n?void 0:n.id,"\nDefault Message: ").concat(null==n?void 0:n.defaultMessage,"\nDescription: ").concat(null==n?void 0:n.description,"\n"),r,i)||this;return o.descriptor=n,o.locale=r,o}return e(r,t),r}(Ot),Ct=function(t){function r(e,r){var n=t.call(this,St.MISSING_TRANSLATION,'Missing message: "'.concat(e.id,'" for locale "').concat(r,'", 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 n.descriptor=e,n}return e(r,t),r}(Pt);function wt(t,e,r){return void 0===r&&(r={}),e.reduce((function(e,n){return n in t?e[n]=t[n]:n in r&&(e[n]=r[n]),e}),{})}var Dt={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(t){},onWarn:function(t){}};function Ut(t){return{create:function(){return{get:function(e){return t[e]},set:function(e,r){t[e]=r}}}}}function Gt(t,e,r,n){var i,o=t&&t[e];if(o&&(i=o[r]),i)return i;n(new Nt("No ".concat(e," format named: ").concat(r)))}var Ft=["style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function kt(t,e,r){var n=t.locale,i=t.formats,o=t.onError;void 0===r&&(r={});var a=r.format,s=a&&Gt(i,"number",a,o)||{};return e(n,wt(r,Ft,s))}function jt(t,e,r,n){void 0===n&&(n={});try{return kt(t,e,n).format(r)}catch(e){t.onError(new Ot("Error formatting number.",t.locale,e))}return String(r)}function Vt(t,e,r,n){void 0===n&&(n={});try{return kt(t,e,n).formatToParts(r)}catch(e){t.onError(new Ot("Error formatting number.",t.locale,e))}return[]}var xt=["numeric","style"];function Xt(t,e,r,n,i){void 0===i&&(i={}),n||(n="second"),Intl.RelativeTimeFormat||t.onError(new dt('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',gt.MISSING_INTL_API));try{return function(t,e,r){var n=t.locale,i=t.formats,o=t.onError;void 0===r&&(r={});var a=r.format,s=!!a&&Gt(i,"relative",a,o)||{};return e(n,wt(r,xt,s))}(t,e,i).format(r,n)}catch(e){t.onError(new Ot("Error formatting relative time.",t.locale,e))}return String(r)}var Kt=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function Zt(t,e,r,n){var i=t.locale,o=t.formats,a=t.onError,h=t.timeZone;void 0===n&&(n={});var l=n.format,u=s(s({},h&&{timeZone:h}),l&&Gt(o,e,l,a)),c=wt(n,Kt,u);return"time"!==e||c.hour||c.minute||c.second||c.timeStyle||c.dateStyle||(c=s(s({},c),{hour:"numeric",minute:"numeric"})),r(i,c)}function Yt(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=void 0===o?{}:o,s="string"==typeof i?new Date(i||0):i;try{return Zt(t,"date",e,a).format(s)}catch(e){t.onError(new Ot("Error formatting date.",t.locale,e))}return String(s)}function Wt(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=void 0===o?{}:o,s="string"==typeof i?new Date(i||0):i;try{return Zt(t,"time",e,a).format(s)}catch(e){t.onError(new Ot("Error formatting time.",t.locale,e))}return String(s)}function zt(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=r[2],s=void 0===a?{}:a,h=t.timeZone,l=t.locale,u=t.onError,c=wt(s,Kt,h?{timeZone:h}:{});try{return e(l,c).formatRange(i,o)}catch(e){u(new Ot("Error formatting date time range.",t.locale,e))}return String(i)}function Qt(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=void 0===o?{}:o,s="string"==typeof i?new Date(i||0):i;try{return Zt(t,"date",e,a).formatToParts(s)}catch(e){t.onError(new Ot("Error formatting date.",t.locale,e))}return[]}function qt(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=void 0===o?{}:o,s="string"==typeof i?new Date(i||0):i;try{return Zt(t,"time",e,a).formatToParts(s)}catch(e){t.onError(new Ot("Error formatting time.",t.locale,e))}return[]}var Jt=["type"];function $t(t,e,r,n){var i=t.locale,o=t.onError;void 0===n&&(n={}),Intl.PluralRules||o(new dt('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',gt.MISSING_INTL_API));var a=wt(n,Jt);try{return e(i,a).select(r)}catch(t){o(new Ot("Error formatting plural.",i,t))}return"other"}function te(t,e){return Object.keys(t).reduce((function(r,n){return r[n]=s({timeZone:e},t[n]),r}),{})}function ee(t,e){return Object.keys(s(s({},t),e)).reduce((function(r,n){return r[n]=s(s({},t[n]||{}),e[n]||{}),r}),{})}function re(t,e){if(!e)return t;var r=It.formats;return s(s(s({},r),t),{date:ee(te(r.date,e),te(t.date||{},e)),time:ee(te(r.time,e),te(t.time||{},e))})}var ne=function(t,e,r,n,i){var a=t.locale,h=t.formats,l=t.messages,u=t.defaultLocale,c=t.defaultFormats,f=t.fallbackOnEmptyString,p=t.onError,m=t.timeZone,g=t.defaultRichTextElements;void 0===r&&(r={id:""});var E=r.id,b=r.defaultMessage;!function(t,e,r){if(void 0===r&&(r=Error),!t)throw new r("[@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.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue")}(!!E);var y=String(E),d=l&&Object.prototype.hasOwnProperty.call(l,y)&&l[y];if(Array.isArray(d)&&1===d.length&&d[0].type===o.literal)return d[0].value;if(!n&&d&&"string"==typeof d&&!g)return d.replace(/'\{(.*?)\}'/gi,"{$1}");if(n=s(s({},g),n||{}),h=re(h,m),c=re(c,m),!d){if(!1===f&&""===d)return d;if((!b||a&&a.toLowerCase()!==u.toLowerCase())&&p(new Ct(r,a)),b)try{return e.getMessageFormat(b,u,c,i).format(n)}catch(t){return p(new Mt('Error formatting default message for: "'.concat(y,'", rendering default message verbatim'),a,r,t)),"string"==typeof b?b:y}return y}try{return e.getMessageFormat(d,a,h,s({formatters:e},i||{})).format(n)}catch(t){p(new Mt('Error formatting message: "'.concat(y,'", using ').concat(b?"default message":"id"," as fallback."),a,r,t))}if(b)try{return e.getMessageFormat(b,u,c,i).format(n)}catch(t){p(new Mt('Error formatting the default message for: "'.concat(y,'", rendering message verbatim'),a,r,t))}return"string"==typeof d?d:"string"==typeof b?b:y},ie=["type","style"],oe=Date.now();function ae(t,e,r,n){void 0===n&&(n={});var i=se(t,e,r,n).reduce((function(t,e){var r=e.value;return"string"!=typeof r?t.push(r):"string"==typeof t[t.length-1]?t[t.length-1]+=r:t.push(r),t}),[]);return 1===i.length?i[0]:0===i.length?"":i}function se(t,e,r,n){var i=t.locale,o=t.onError;void 0===n&&(n={}),Intl.ListFormat||o(new dt('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',gt.MISSING_INTL_API));var a=wt(n,ie);try{var h={},l=r.map((function(t,e){if("object"==typeof t){var r=function(t){return"".concat(oe,"_").concat(t,"_").concat(oe)}(e);return h[r]=t,r}return String(t)}));return e(i,a).formatToParts(l).map((function(t){return"literal"===t.type?t:s(s({},t),{value:h[t.value]||t.value})}))}catch(t){o(new Ot("Error formatting list.",i,t))}return r}var he=["style","type","fallback","languageDisplay"];function le(t,e,r,n){var i=t.locale,o=t.onError;Intl.DisplayNames||o(new dt('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',gt.MISSING_INTL_API));var a=wt(n,he);try{return e(i,a).of(r)}catch(t){o(new Ot("Error formatting display name.",i,t))}}function ue(t,e){var r=function(t){void 0===t&&(t={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});var e=Intl.RelativeTimeFormat,r=Intl.ListFormat,n=Intl.DisplayNames,i=ht((function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,h([void 0],e,!1)))}),{cache:Ut(t.dateTime),strategy:bt.variadic}),o=ht((function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,h([void 0],e,!1)))}),{cache:Ut(t.number),strategy:bt.variadic}),a=ht((function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,h([void 0],e,!1)))}),{cache:Ut(t.pluralRules),strategy:bt.variadic});return{getDateTimeFormat:i,getNumberFormat:o,getMessageFormat:ht((function(t,e,r,n){return new It(t,e,r,s({formatters:{getNumberFormat:o,getDateTimeFormat:i,getPluralRules:a}},n||{}))}),{cache:Ut(t.message),strategy:bt.variadic}),getRelativeTimeFormat:ht((function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new(e.bind.apply(e,h([void 0],t,!1)))}),{cache:Ut(t.relativeTime),strategy:bt.variadic}),getPluralRules:a,getListFormat:ht((function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new(r.bind.apply(r,h([void 0],t,!1)))}),{cache:Ut(t.list),strategy:bt.variadic}),getDisplayNames:ht((function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new(n.bind.apply(n,h([void 0],t,!1)))}),{cache:Ut(t.displayNames),strategy:bt.variadic})}}(e),n=s(s({},Dt),t),i=n.locale,o=n.defaultLocale,a=n.onError;return i?!Intl.NumberFormat.supportedLocalesOf(i).length&&a?a(new Rt('Missing locale data for locale: "'.concat(i,'" in Intl.NumberFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(i).length&&a&&a(new Rt('Missing locale data for locale: "'.concat(i,'" in Intl.DateTimeFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(a&&a(new Lt('"locale" was not configured, using "'.concat(o,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),n.locale=n.defaultLocale||"en"),function(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.io/docs/getting-started/message-distribution')}(n),s(s({},n),{formatters:r,formatNumber:jt.bind(null,n,r.getNumberFormat),formatNumberToParts:Vt.bind(null,n,r.getNumberFormat),formatRelativeTime:Xt.bind(null,n,r.getRelativeTimeFormat),formatDate:Yt.bind(null,n,r.getDateTimeFormat),formatDateToParts:Qt.bind(null,n,r.getDateTimeFormat),formatTime:Wt.bind(null,n,r.getDateTimeFormat),formatDateTimeRange:zt.bind(null,n,r.getDateTimeFormat),formatTimeToParts:qt.bind(null,n,r.getDateTimeFormat),formatPlural:$t.bind(null,n,r.getPluralRules),formatMessage:ne.bind(null,n,r),$t:ne.bind(null,n,r),formatList:ae.bind(null,n,r.getListFormat),formatListToParts:se.bind(null,n,r.getListFormat),formatDisplayName:le.bind(null,n,r.getDisplayNames)})}var ce=r(935);function fe({locale:t,messages:e}){const r=ue({locale:t,messages:e},{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});if((0,ce.isPhraseEnabled)()){function n(...t){return(0,ce.escapeId)(t[0]?.id||"")}return{...r,formatMessage:n}}return r}})(),n})())); | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["react-intl-phraseapp"]=e():t["react-intl-phraseapp"]=e()}(this,(()=>(()=>{"use strict";var t={935:(t,e,r)=>{function n(){return globalThis.PHRASEAPP_ENABLED}function i(t){let e=globalThis.PHRASEAPP_CONFIG;return e.prefix+"phrase_"+t+e.suffix}r.d(e,{escapeId:()=>i,isPhraseEnabled:()=>n})}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var o=e[n]={exports:{}};return t[n](o,o.exports,r),o.exports}r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};return(()=>{r.r(n),r.d(n,{useSSRIntl:()=>fe});var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},t(e,r)};function e(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}var i,o,a,s=function(){return s=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},s.apply(this,arguments)};function h(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}function l(t){return t.type===o.literal}function u(t){return t.type===o.argument}function c(t){return t.type===o.number}function f(t){return t.type===o.date}function p(t){return t.type===o.time}function m(t){return t.type===o.select}function g(t){return t.type===o.plural}function E(t){return t.type===o.pound}function b(t){return t.type===o.tag}function y(t){return!(!t||"object"!=typeof t||t.type!==a.number)}function d(t){return!(!t||"object"!=typeof t||t.type!==a.dateTime)}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError,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"}(i||(i={})),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"}(o||(o={})),function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"}(a||(a={}));var v=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,T=/(?:[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 H(t){var e={};return t.replace(T,(function(t){var r=t.length;switch(t[0]){case"G":e.era=4===r?"long":5===r?"narrow":"short";break;case"y":e.year=2===r?"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"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":e.day=["numeric","2-digit"][r-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===r?"short":5===r?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][r-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"][r-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][r-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][r-1];break;case"k":e.hourCycle="h24",e.hour=["numeric","2-digit"][r-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"][r-1];break;case"s":e.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":e.timeZoneName=r<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 _=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,A=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,B=/^(@+)?(\+|#+)?[rs]?$/g,S=/(\*)(0+)|(#+)(0+)|(0+)/g,I=/^(0+)$/;function P(t){var e={};return"r"===t[t.length-1]?e.roundingPriority="morePrecision":"s"===t[t.length-1]&&(e.roundingPriority="lessPrecision"),t.replace(B,(function(t,r,n){return"string"!=typeof n?(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length):"+"===n?e.minimumSignificantDigits=r.length:"#"===r[0]?e.maximumSignificantDigits=r.length:(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length+("string"==typeof n?n.length:0)),""})),e}function N(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 L(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 r=t.slice(0,2);if("+!"===r?(e.signDisplay="always",t=t.slice(2)):"+?"===r&&(e.signDisplay="exceptZero",t=t.slice(2)),!I.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}function R(t){return N(t)||{}}function O(t){for(var e={},r=0,n=t;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=i.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=i.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=s(s(s({},e),{notation:"scientific"}),i.options.reduce((function(t,e){return s(s({},t),R(e))}),{}));continue;case"engineering":e=s(s(s({},e),{notation:"engineering"}),i.options.reduce((function(t,e){return s(s({},t),R(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(i.options[0]);continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(S,(function(t,r,n,i,o,a){if(r)e.minimumIntegerDigits=n.length;else{if(i&&o)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(I.test(i.stem))e.minimumIntegerDigits=i.stem.length;else if(A.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(A,(function(t,r,n,i,o,a){return"*"===n?e.minimumFractionDigits=r.length:i&&"#"===i[0]?e.maximumFractionDigits=i.length:o&&a?(e.minimumFractionDigits=o.length,e.maximumFractionDigits=o.length+a.length):(e.minimumFractionDigits=r.length,e.maximumFractionDigits=r.length),""}));var o=i.options[0];"w"===o?e=s(s({},e),{trailingZeroDisplay:"stripIfInteger"}):o&&(e=s(s({},e),P(o)))}else if(B.test(i.stem))e=s(s({},e),P(i.stem));else{var a=N(i.stem);a&&(e=s(s({},e),a));var h=L(i.stem);h&&(e=s(s({},e),h))}}return e}var M,C={"001":["H","h"],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"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],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"],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","hB","h","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"],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"],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"],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","h","K"],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"],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"],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"],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","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","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"],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"],TL:["H","hB","hb","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"],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"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["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 w(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 r,n=t.language;return"root"!==n&&(r=t.maximize().region),(C[r||""]||C[n||""]||C["".concat(n,"-001")]||C["001"])[0]}var D=new RegExp("^".concat(v.source,"*")),U=new RegExp("".concat(v.source,"*$"));function G(t,e){return{start:t,end:e}}var F=!!String.prototype.startsWith&&"_a".startsWith("a",1),k=!!String.fromCodePoint,j=!!Object.fromEntries,V=!!String.prototype.codePointAt,x=!!String.prototype.trimStart,X=!!String.prototype.trimEnd,K=Number.isSafeInteger?Number.isSafeInteger:function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},Z=!0;try{Z="a"===(null===(M=tt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===M?void 0:M[0])}catch(t){Z=!1}var Y,W=F?function(t,e,r){return t.startsWith(e,r)}:function(t,e,r){return t.slice(r,r+e.length)===e},z=k?String.fromCodePoint:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r,n="",i=t.length,o=0;i>o;){if((r=t[o++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},Q=j?Object.fromEntries:function(t){for(var e={},r=0,n=t;r<n.length;r++){var i=n[r],o=i[0],a=i[1];e[o]=a}return e},q=V?function(t,e){return t.codePointAt(e)}:function(t,e){var r=t.length;if(!(e<0||e>=r)){var n,i=t.charCodeAt(e);return i<55296||i>56319||e+1===r||(n=t.charCodeAt(e+1))<56320||n>57343?i:n-56320+(i-55296<<10)+65536}},J=x?function(t){return t.trimStart()}:function(t){return t.replace(D,"")},$=X?function(t){return t.trimEnd()}:function(t){return t.replace(U,"")};function tt(t,e){return new RegExp(t,e)}if(Z){var et=tt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Y=function(t,e){var r;return et.lastIndex=e,null!==(r=et.exec(t)[1])&&void 0!==r?r:""}}else Y=function(t,e){for(var r=[];;){var n=q(t,e);if(void 0===n||it(n)||ot(n))break;r.push(n),e+=n>=65536?2:1}return z.apply(void 0,r)};var rt=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,r){for(var n=[];!this.isEOF();){var a=this.char();if(123===a){if((s=this.parseArgument(t,r)).err)return s;n.push(s.val)}else{if(125===a&&t>0)break;if(35!==a||"plural"!==e&&"selectordinal"!==e){if(60===a&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(i.UNMATCHED_CLOSING_TAG,G(this.clonePosition(),this.clonePosition()))}if(60===a&&!this.ignoreTag&&nt(this.peek()||0)){if((s=this.parseTag(t,e)).err)return s;n.push(s.val)}else{var s;if((s=this.parseLiteral(t,e)).err)return s;n.push(s.val)}}else{var h=this.clonePosition();this.bump(),n.push({type:o.pound,location:G(h,this.clonePosition())})}}}return{val:n,err:null}},t.prototype.parseTag=function(t,e){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:o.literal,value:"<".concat(n,"/>"),location:G(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var a=this.parseMessage(t+1,e,!0);if(a.err)return a;var s=a.val,h=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!nt(this.char()))return this.error(i.INVALID_TAG,G(h,this.clonePosition()));var l=this.clonePosition();return n!==this.parseTagName()?this.error(i.UNMATCHED_CLOSING_TAG,G(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:o.tag,value:n,children:s,location:G(r,this.clonePosition())},err:null}:this.error(i.INVALID_TAG,G(h,this.clonePosition())))}return this.error(i.UNCLOSED_TAG,G(r,this.clonePosition()))}return this.error(i.INVALID_TAG,G(r,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 r=this.clonePosition(),n="";;){var i=this.tryParseQuote(e);if(i)n+=i;else{var a=this.tryParseUnquoted(t,e);if(a)n+=a;else{var s=this.tryParseLeftAngleBracket();if(!s)break;n+=s}}}var h=G(r,this.clonePosition());return{val:{type:o.literal,value:n,location:h},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(nt(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 r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}e.push(39),this.bump()}else e.push(r);this.bump()}return z.apply(void 0,e)},t.prototype.tryParseUnquoted=function(t,e){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===e||"selectordinal"===e)||125===r&&t>0?null:(this.bump(),z(r))},t.prototype.parseArgument=function(t,e){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(i.EXPECT_ARGUMENT_CLOSING_BRACE,G(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(i.EMPTY_ARGUMENT,G(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(i.MALFORMED_ARGUMENT,G(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(i.EXPECT_ARGUMENT_CLOSING_BRACE,G(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:o.argument,value:n,location:G(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(i.EXPECT_ARGUMENT_CLOSING_BRACE,G(r,this.clonePosition())):this.parseArgumentOptions(t,e,n,r);default:return this.error(i.MALFORMED_ARGUMENT,G(r,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),r=Y(this.message,e),n=e+r.length;return this.bumpTo(n),{value:r,location:G(t,this.clonePosition())}},t.prototype.parseArgumentOptions=function(t,e,r,n){var h,l=this.clonePosition(),u=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(u){case"":return this.error(i.EXPECT_ARGUMENT_TYPE,G(l,c));case"number":case"date":case"time":this.bumpSpace();var f=null;if(this.bumpIf(",")){this.bumpSpace();var p=this.clonePosition();if((T=this.parseSimpleArgStyleIfPossible()).err)return T;if(0===(b=$(T.val)).length)return this.error(i.EXPECT_ARGUMENT_STYLE,G(this.clonePosition(),this.clonePosition()));f={style:b,styleLocation:G(p,this.clonePosition())}}if((_=this.tryParseArgumentClose(n)).err)return _;var m=G(n,this.clonePosition());if(f&&W(null==f?void 0:f.style,"::",0)){var g=J(f.style.slice(2));if("number"===u)return(T=this.parseNumberSkeletonFromString(g,f.styleLocation)).err?T:{val:{type:o.number,value:r,location:m,style:T.val},err:null};if(0===g.length)return this.error(i.EXPECT_DATE_TIME_SKELETON,m);var E=g;this.locale&&(E=function(t,e){for(var r="",n=0;n<t.length;n++){var i=t.charAt(n);if("j"===i){for(var o=0;n+1<t.length&&t.charAt(n+1)===i;)o++,n++;var a=1+(1&o),s=o<2?1:3+(o>>1),h=w(e);for("H"!=h&&"k"!=h||(s=0);s-- >0;)r+="a";for(;a-- >0;)r=h+r}else r+="J"===i?"H":i}return r}(g,this.locale));var b={type:a.dateTime,pattern:E,location:f.styleLocation,parsedOptions:this.shouldParseSkeletons?H(E):{}};return{val:{type:"date"===u?o.date:o.time,value:r,location:m,style:b},err:null}}return{val:{type:"number"===u?o.number:"date"===u?o.date:o.time,value:r,location:m,style:null!==(h=null==f?void 0:f.style)&&void 0!==h?h:null},err:null};case"plural":case"selectordinal":case"select":var y=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(i.EXPECT_SELECT_ARGUMENT_OPTIONS,G(y,s({},y)));this.bumpSpace();var d=this.parseIdentifierIfPossible(),v=0;if("select"!==u&&"offset"===d.value){if(!this.bumpIf(":"))return this.error(i.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,G(this.clonePosition(),this.clonePosition()));var T;if(this.bumpSpace(),(T=this.tryParseDecimalInteger(i.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,i.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return T;this.bumpSpace(),d=this.parseIdentifierIfPossible(),v=T.val}var _,A=this.tryParsePluralOrSelectOptions(t,u,e,d);if(A.err)return A;if((_=this.tryParseArgumentClose(n)).err)return _;var B=G(n,this.clonePosition());return"select"===u?{val:{type:o.select,value:r,options:Q(A.val),location:B},err:null}:{val:{type:o.plural,value:r,options:Q(A.val),offset:v,pluralType:"plural"===u?"cardinal":"ordinal",location:B},err:null};default:return this.error(i.INVALID_ARGUMENT_TYPE,G(l,c))}},t.prototype.tryParseArgumentClose=function(t){return this.isEOF()||125!==this.char()?this.error(i.EXPECT_ARGUMENT_CLOSING_BRACE,G(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 r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(i.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,G(r,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 r=[];try{r=function(t){if(0===t.length)throw new Error("Number skeleton cannot be empty");for(var e=[],r=0,n=t.split(_).filter((function(t){return t.length>0}));r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],a=i.slice(1),s=0,h=a;s<h.length;s++)if(0===h[s].length)throw new Error("Invalid number skeleton");e.push({stem:o,options:a})}return e}(t)}catch(t){return this.error(i.INVALID_NUMBER_SKELETON,e)}return{val:{type:a.number,tokens:r,location:e,parsedOptions:this.shouldParseSkeletons?O(r):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(t,e,r,n){for(var o,a=!1,s=[],h=new Set,l=n.value,u=n.location;;){if(0===l.length){var c=this.clonePosition();if("select"===e||!this.bumpIf("="))break;var f=this.tryParseDecimalInteger(i.EXPECT_PLURAL_ARGUMENT_SELECTOR,i.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;u=G(c,this.clonePosition()),l=this.message.slice(c.offset,this.offset())}if(h.has(l))return this.error("select"===e?i.DUPLICATE_SELECT_ARGUMENT_SELECTOR:i.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,u);"other"===l&&(a=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?i.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:i.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,G(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(t+1,e,r);if(m.err)return m;var g=this.tryParseArgumentClose(p);if(g.err)return g;s.push([l,{value:m.val,location:G(p,this.clonePosition())}]),h.add(l),this.bumpSpace(),l=(o=this.parseIdentifierIfPossible()).value,u=o.location}return 0===s.length?this.error("select"===e?i.EXPECT_SELECT_ARGUMENT_SELECTOR:i.EXPECT_PLURAL_ARGUMENT_SELECTOR,G(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(i.MISSING_OTHER_CLAUSE,G(this.clonePosition(),this.clonePosition())):{val:s,err:null}},t.prototype.tryParseDecimalInteger=function(t,e){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var a=this.char();if(!(a>=48&&a<=57))break;i=!0,o=10*o+(a-48),this.bump()}var s=G(n,this.clonePosition());return i?K(o*=r)?{val:o,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=q(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(W(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(),r=this.message.indexOf(t,e);return r>=0?(this.bumpTo(r),!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()&&it(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),r=this.message.charCodeAt(e+(t>=65536?2:1));return null!=r?r:null},t}();function nt(t){return t>=97&&t<=122||t>=65&&t<=90}function it(t){return t>=9&&t<=13||32===t||133===t||t>=8206&&t<=8207||8232===t||8233===t}function ot(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 at(t){t.forEach((function(t){if(delete t.location,m(t)||g(t))for(var e in t.options)delete t.options[e].location,at(t.options[e].value);else c(t)&&y(t.style)||(f(t)||p(t))&&d(t.style)?delete t.style.location:b(t)&&at(t.children)}))}function st(t,e){void 0===e&&(e={}),e=s({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var r=new rt(t,e).parse();if(r.err){var n=SyntaxError(i[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null==e?void 0:e.captureLocation)||at(r.val),r.val}function ht(t,e){var r=e&&e.cache?e.cache:Et,n=e&&e.serializer?e.serializer:pt;return(e&&e.strategy?e.strategy:ft)(t,{cache:r,serializer:n})}function lt(t,e,r,n){var i,o=null==(i=n)||"number"==typeof i||"boolean"==typeof i?n:r(n),a=e.get(o);return void 0===a&&(a=t.call(this,n),e.set(o,a)),a}function ut(t,e,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=e.get(i);return void 0===o&&(o=t.apply(this,n),e.set(i,o)),o}function ct(t,e,r,n,i){return r.bind(e,t,n,i)}function ft(t,e){return ct(t,this,1===t.length?lt:ut,e.cache.create(),e.serializer)}var pt=function(){return JSON.stringify(arguments)};function mt(){this.cache=Object.create(null)}mt.prototype.get=function(t){return this.cache[t]},mt.prototype.set=function(t,e){this.cache[t]=e};var gt,Et={create:function(){return new mt}},bt={variadic:function(t,e){return ct(t,this,ut,e.cache.create(),e.serializer)},monadic:function(t,e){return ct(t,this,lt,e.cache.create(),e.serializer)}};!function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"}(gt||(gt={}));var yt,dt=function(t){function r(e,r,n){var i=t.call(this,e)||this;return i.code=r,i.originalMessage=n,i}return e(r,t),r.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},r}(Error),vt=function(t){function r(e,r,n,i){return t.call(this,'Invalid values for "'.concat(e,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),gt.INVALID_VALUE,i)||this}return e(r,t),r}(dt),Tt=function(t){function r(e,r,n){return t.call(this,'Value for "'.concat(e,'" must be of type ').concat(r),gt.INVALID_VALUE,n)||this}return e(r,t),r}(dt),Ht=function(t){function r(e,r){return t.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(r,'"'),gt.MISSING_VALUE,r)||this}return e(r,t),r}(dt);function _t(t){return"function"==typeof t}function At(t,e,r,n,i,o,a){if(1===t.length&&l(t[0]))return[{type:yt.literal,value:t[0].value}];for(var s=[],h=0,v=t;h<v.length;h++){var T=v[h];if(l(T))s.push({type:yt.literal,value:T.value});else if(E(T))"number"==typeof o&&s.push({type:yt.literal,value:r.getNumberFormat(e).format(o)});else{var H=T.value;if(!i||!(H in i))throw new Ht(H,a);var _=i[H];if(u(T))_&&"string"!=typeof _&&"number"!=typeof _||(_="string"==typeof _||"number"==typeof _?String(_):""),s.push({type:"string"==typeof _?yt.literal:yt.object,value:_});else if(f(T)){var A="string"==typeof T.style?n.date[T.style]:d(T.style)?T.style.parsedOptions:void 0;s.push({type:yt.literal,value:r.getDateTimeFormat(e,A).format(_)})}else if(p(T))A="string"==typeof T.style?n.time[T.style]:d(T.style)?T.style.parsedOptions:n.time.medium,s.push({type:yt.literal,value:r.getDateTimeFormat(e,A).format(_)});else if(c(T))(A="string"==typeof T.style?n.number[T.style]:y(T.style)?T.style.parsedOptions:void 0)&&A.scale&&(_*=A.scale||1),s.push({type:yt.literal,value:r.getNumberFormat(e,A).format(_)});else{if(b(T)){var B=T.children,S=T.value,I=i[S];if(!_t(I))throw new Tt(S,"function",a);var P=I(At(B,e,r,n,i,o).map((function(t){return t.value})));Array.isArray(P)||(P=[P]),s.push.apply(s,P.map((function(t){return{type:"string"==typeof t?yt.literal:yt.object,value:t}})))}if(m(T)){if(!(N=T.options[_]||T.options.other))throw new vt(T.value,_,Object.keys(T.options),a);s.push.apply(s,At(N.value,e,r,n,i))}else if(g(T)){var N;if(!(N=T.options["=".concat(_)])){if(!Intl.PluralRules)throw new dt('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',gt.MISSING_INTL_API,a);var L=r.getPluralRules(e,{type:T.pluralType}).select(_-(T.offset||0));N=T.options[L]||T.options.other}if(!N)throw new vt(T.value,_,Object.keys(T.options),a);s.push.apply(s,At(N.value,e,r,n,i,_-(T.offset||0)))}}}}return(R=s).length<2?R:R.reduce((function(t,e){var r=t[t.length-1];return r&&r.type===yt.literal&&e.type===yt.literal?r.value+=e.value:t.push(e),t}),[]);var R}function Bt(t){return{create:function(){return{get:function(e){return t[e]},set:function(e,r){t[e]=r}}}}}!function(t){t[t.literal=0]="literal",t[t.object=1]="object"}(yt||(yt={}));var St,It=function(){function t(e,r,n,i){void 0===r&&(r=t.defaultLocale);var o,a,l,u=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){var e=u.formatToParts(t);if(1===e.length)return e[0].value;var r=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 r.length<=1?r[0]||"":r},this.formatToParts=function(t){return At(u.ast,u.locales,u.formatters,u.formats,t,void 0,u.message)},this.resolvedOptions=function(){var t;return{locale:(null===(t=u.resolvedLocale)||void 0===t?void 0:t.toString())||Intl.NumberFormat.supportedLocalesOf(u.locales)[0]}},this.getAst=function(){return u.ast},this.locales=r,this.resolvedLocale=t.resolveLocale(r),"string"==typeof e){if(this.message=e,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var c=i||{},f=(c.formatters,function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r}(c,["formatters"]));this.ast=t.__parse(e,s(s({},f),{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=(a=t.formats,(l=n)?Object.keys(a).reduce((function(t,e){var r,n;return t[e]=(r=a[e],(n=l[e])?s(s(s({},r||{}),n||{}),Object.keys(r).reduce((function(t,e){return t[e]=s(s({},r[e]),n[e]||{}),t}),{})):r),t}),s({},a)):a),this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:ht((function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,h([void 0],e,!1)))}),{cache:Bt(o.number),strategy:bt.variadic}),getDateTimeFormat:ht((function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,h([void 0],e,!1)))}),{cache:Bt(o.dateTime),strategy:bt.variadic}),getPluralRules:ht((function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,h([void 0],e,!1)))}),{cache:Bt(o.pluralRules),strategy:bt.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=st,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"}(St||(St={}));var Pt=function(t){function r(e,n,i){var o=this,a=i?i instanceof Error?i:new Error(String(i)):void 0;return(o=t.call(this,"[@formatjs/intl Error ".concat(e,"] ").concat(n,"\n").concat(a?"\n".concat(a.message,"\n").concat(a.stack):""))||this).code=e,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(o,r),o}return e(r,t),r}(Error),Nt=function(t){function r(e,r){return t.call(this,St.UNSUPPORTED_FORMATTER,e,r)||this}return e(r,t),r}(Pt),Lt=function(t){function r(e,r){return t.call(this,St.INVALID_CONFIG,e,r)||this}return e(r,t),r}(Pt),Rt=function(t){function r(e,r){return t.call(this,St.MISSING_DATA,e,r)||this}return e(r,t),r}(Pt),Ot=function(t){function r(e,r,n){var i=t.call(this,St.FORMAT_ERROR,"".concat(e,"\nLocale: ").concat(r,"\n"),n)||this;return i.locale=r,i}return e(r,t),r}(Pt),Mt=function(t){function r(e,r,n,i){var o=t.call(this,"".concat(e,"\nMessageID: ").concat(null==n?void 0:n.id,"\nDefault Message: ").concat(null==n?void 0:n.defaultMessage,"\nDescription: ").concat(null==n?void 0:n.description,"\n"),r,i)||this;return o.descriptor=n,o.locale=r,o}return e(r,t),r}(Ot),Ct=function(t){function r(e,r){var n=t.call(this,St.MISSING_TRANSLATION,'Missing message: "'.concat(e.id,'" for locale "').concat(r,'", 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 n.descriptor=e,n}return e(r,t),r}(Pt);function wt(t,e,r){return void 0===r&&(r={}),e.reduce((function(e,n){return n in t?e[n]=t[n]:n in r&&(e[n]=r[n]),e}),{})}var Dt={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(t){},onWarn:function(t){}};function Ut(t){return{create:function(){return{get:function(e){return t[e]},set:function(e,r){t[e]=r}}}}}function Gt(t,e,r,n){var i,o=t&&t[e];if(o&&(i=o[r]),i)return i;n(new Nt("No ".concat(e," format named: ").concat(r)))}var Ft=["style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function kt(t,e,r){var n=t.locale,i=t.formats,o=t.onError;void 0===r&&(r={});var a=r.format,s=a&&Gt(i,"number",a,o)||{};return e(n,wt(r,Ft,s))}function jt(t,e,r,n){void 0===n&&(n={});try{return kt(t,e,n).format(r)}catch(e){t.onError(new Ot("Error formatting number.",t.locale,e))}return String(r)}function Vt(t,e,r,n){void 0===n&&(n={});try{return kt(t,e,n).formatToParts(r)}catch(e){t.onError(new Ot("Error formatting number.",t.locale,e))}return[]}var xt=["numeric","style"];function Xt(t,e,r,n,i){void 0===i&&(i={}),n||(n="second"),Intl.RelativeTimeFormat||t.onError(new dt('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n',gt.MISSING_INTL_API));try{return function(t,e,r){var n=t.locale,i=t.formats,o=t.onError;void 0===r&&(r={});var a=r.format,s=!!a&&Gt(i,"relative",a,o)||{};return e(n,wt(r,xt,s))}(t,e,i).format(r,n)}catch(e){t.onError(new Ot("Error formatting relative time.",t.locale,e))}return String(r)}var Kt=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function Zt(t,e,r,n){var i=t.locale,o=t.formats,a=t.onError,h=t.timeZone;void 0===n&&(n={});var l=n.format,u=s(s({},h&&{timeZone:h}),l&&Gt(o,e,l,a)),c=wt(n,Kt,u);return"time"!==e||c.hour||c.minute||c.second||c.timeStyle||c.dateStyle||(c=s(s({},c),{hour:"numeric",minute:"numeric"})),r(i,c)}function Yt(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=void 0===o?{}:o,s="string"==typeof i?new Date(i||0):i;try{return Zt(t,"date",e,a).format(s)}catch(e){t.onError(new Ot("Error formatting date.",t.locale,e))}return String(s)}function Wt(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=void 0===o?{}:o,s="string"==typeof i?new Date(i||0):i;try{return Zt(t,"time",e,a).format(s)}catch(e){t.onError(new Ot("Error formatting time.",t.locale,e))}return String(s)}function zt(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=r[2],s=void 0===a?{}:a,h=t.timeZone,l=t.locale,u=t.onError,c=wt(s,Kt,h?{timeZone:h}:{});try{return e(l,c).formatRange(i,o)}catch(e){u(new Ot("Error formatting date time range.",t.locale,e))}return String(i)}function Qt(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=void 0===o?{}:o,s="string"==typeof i?new Date(i||0):i;try{return Zt(t,"date",e,a).formatToParts(s)}catch(e){t.onError(new Ot("Error formatting date.",t.locale,e))}return[]}function qt(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=r[0],o=r[1],a=void 0===o?{}:o,s="string"==typeof i?new Date(i||0):i;try{return Zt(t,"time",e,a).formatToParts(s)}catch(e){t.onError(new Ot("Error formatting time.",t.locale,e))}return[]}var Jt=["type"];function $t(t,e,r,n){var i=t.locale,o=t.onError;void 0===n&&(n={}),Intl.PluralRules||o(new dt('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',gt.MISSING_INTL_API));var a=wt(n,Jt);try{return e(i,a).select(r)}catch(t){o(new Ot("Error formatting plural.",i,t))}return"other"}function te(t,e){return Object.keys(t).reduce((function(r,n){return r[n]=s({timeZone:e},t[n]),r}),{})}function ee(t,e){return Object.keys(s(s({},t),e)).reduce((function(r,n){return r[n]=s(s({},t[n]||{}),e[n]||{}),r}),{})}function re(t,e){if(!e)return t;var r=It.formats;return s(s(s({},r),t),{date:ee(te(r.date,e),te(t.date||{},e)),time:ee(te(r.time,e),te(t.time||{},e))})}var ne=function(t,e,r,n,i){var a=t.locale,h=t.formats,l=t.messages,u=t.defaultLocale,c=t.defaultFormats,f=t.fallbackOnEmptyString,p=t.onError,m=t.timeZone,g=t.defaultRichTextElements;void 0===r&&(r={id:""});var E=r.id,b=r.defaultMessage;!function(t,e,r){if(void 0===r&&(r=Error),!t)throw new r("[@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.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue")}(!!E);var y=String(E),d=l&&Object.prototype.hasOwnProperty.call(l,y)&&l[y];if(Array.isArray(d)&&1===d.length&&d[0].type===o.literal)return d[0].value;if(!n&&d&&"string"==typeof d&&!g)return d.replace(/'\{(.*?)\}'/gi,"{$1}");if(n=s(s({},g),n||{}),h=re(h,m),c=re(c,m),!d){if(!1===f&&""===d)return d;if((!b||a&&a.toLowerCase()!==u.toLowerCase())&&p(new Ct(r,a)),b)try{return e.getMessageFormat(b,u,c,i).format(n)}catch(t){return p(new Mt('Error formatting default message for: "'.concat(y,'", rendering default message verbatim'),a,r,t)),"string"==typeof b?b:y}return y}try{return e.getMessageFormat(d,a,h,s({formatters:e},i||{})).format(n)}catch(t){p(new Mt('Error formatting message: "'.concat(y,'", using ').concat(b?"default message":"id"," as fallback."),a,r,t))}if(b)try{return e.getMessageFormat(b,u,c,i).format(n)}catch(t){p(new Mt('Error formatting the default message for: "'.concat(y,'", rendering message verbatim'),a,r,t))}return"string"==typeof d?d:"string"==typeof b?b:y},ie=["type","style"],oe=Date.now();function ae(t,e,r,n){void 0===n&&(n={});var i=se(t,e,r,n).reduce((function(t,e){var r=e.value;return"string"!=typeof r?t.push(r):"string"==typeof t[t.length-1]?t[t.length-1]+=r:t.push(r),t}),[]);return 1===i.length?i[0]:0===i.length?"":i}function se(t,e,r,n){var i=t.locale,o=t.onError;void 0===n&&(n={}),Intl.ListFormat||o(new dt('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n',gt.MISSING_INTL_API));var a=wt(n,ie);try{var h={},l=r.map((function(t,e){if("object"==typeof t){var r=function(t){return"".concat(oe,"_").concat(t,"_").concat(oe)}(e);return h[r]=t,r}return String(t)}));return e(i,a).formatToParts(l).map((function(t){return"literal"===t.type?t:s(s({},t),{value:h[t.value]||t.value})}))}catch(t){o(new Ot("Error formatting list.",i,t))}return r}var he=["style","type","fallback","languageDisplay"];function le(t,e,r,n){var i=t.locale,o=t.onError;Intl.DisplayNames||o(new dt('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n',gt.MISSING_INTL_API));var a=wt(n,he);try{return e(i,a).of(r)}catch(t){o(new Ot("Error formatting display name.",i,t))}}function ue(t,e){var r=function(t){void 0===t&&(t={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});var e=Intl.RelativeTimeFormat,r=Intl.ListFormat,n=Intl.DisplayNames,i=ht((function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,h([void 0],e,!1)))}),{cache:Ut(t.dateTime),strategy:bt.variadic}),o=ht((function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,h([void 0],e,!1)))}),{cache:Ut(t.number),strategy:bt.variadic}),a=ht((function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,h([void 0],e,!1)))}),{cache:Ut(t.pluralRules),strategy:bt.variadic});return{getDateTimeFormat:i,getNumberFormat:o,getMessageFormat:ht((function(t,e,r,n){return new It(t,e,r,s({formatters:{getNumberFormat:o,getDateTimeFormat:i,getPluralRules:a}},n||{}))}),{cache:Ut(t.message),strategy:bt.variadic}),getRelativeTimeFormat:ht((function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new(e.bind.apply(e,h([void 0],t,!1)))}),{cache:Ut(t.relativeTime),strategy:bt.variadic}),getPluralRules:a,getListFormat:ht((function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new(r.bind.apply(r,h([void 0],t,!1)))}),{cache:Ut(t.list),strategy:bt.variadic}),getDisplayNames:ht((function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new(n.bind.apply(n,h([void 0],t,!1)))}),{cache:Ut(t.displayNames),strategy:bt.variadic})}}(e),n=s(s({},Dt),t),i=n.locale,o=n.defaultLocale,a=n.onError;return i?!Intl.NumberFormat.supportedLocalesOf(i).length&&a?a(new Rt('Missing locale data for locale: "'.concat(i,'" in Intl.NumberFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(i).length&&a&&a(new Rt('Missing locale data for locale: "'.concat(i,'" in Intl.DateTimeFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(a&&a(new Lt('"locale" was not configured, using "'.concat(o,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),n.locale=n.defaultLocale||"en"),function(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.io/docs/getting-started/message-distribution')}(n),s(s({},n),{formatters:r,formatNumber:jt.bind(null,n,r.getNumberFormat),formatNumberToParts:Vt.bind(null,n,r.getNumberFormat),formatRelativeTime:Xt.bind(null,n,r.getRelativeTimeFormat),formatDate:Yt.bind(null,n,r.getDateTimeFormat),formatDateToParts:Qt.bind(null,n,r.getDateTimeFormat),formatTime:Wt.bind(null,n,r.getDateTimeFormat),formatDateTimeRange:zt.bind(null,n,r.getDateTimeFormat),formatTimeToParts:qt.bind(null,n,r.getDateTimeFormat),formatPlural:$t.bind(null,n,r.getPluralRules),formatMessage:ne.bind(null,n,r),$t:ne.bind(null,n,r),formatList:ae.bind(null,n,r.getListFormat),formatListToParts:se.bind(null,n,r.getListFormat),formatDisplayName:le.bind(null,n,r.getDisplayNames)})}var ce=r(935);function fe({locale:t,messages:e}){const r=ue({locale:t,messages:e},{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}});if((0,ce.isPhraseEnabled)()){function n(...t){return(0,ce.escapeId)(t[0]?.id||"")}return{...r,formatMessage:n}}return r}})(),n})())); |
{ | ||
"name": "react-intl-phraseapp", | ||
"version": "4.1.0", | ||
"version": "4.1.1", | ||
"description": "The In-Context-Editor for react using react-intl", | ||
@@ -23,13 +23,13 @@ "homepage": "https://phrase.com", | ||
"devDependencies": { | ||
"@types/jest": "^25.1.2", | ||
"@types/node": "^20.5.7", | ||
"@types/jest": "^29.5.4", | ||
"@types/node": "^20.6.0", | ||
"@types/react": "^18.2.21", | ||
"@types/react-dom": "^18.2.7", | ||
"@types/react-test-renderer": "^18.0.0", | ||
"jest": "^29.6.4", | ||
"jest-environment-jsdom": "^29.6.4", | ||
"@types/react-test-renderer": "^18.0.1", | ||
"jest": "^29.7.0", | ||
"jest-environment-jsdom": "^29.7.0", | ||
"react": "^18.2.0", | ||
"react-addons-test-utils": "^15.6.2", | ||
"react-dom": "^18.2.0", | ||
"react-intl": "^6.4.4", | ||
"react-intl": "^6.4.6", | ||
"react-test-renderer": "^18.2.0", | ||
@@ -49,2 +49,3 @@ "ts-jest": "^29.1.1", | ||
], | ||
"main": "dist/index.js", | ||
"sideEffects": false, | ||
@@ -51,0 +52,0 @@ "jest": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
127895