Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

intl-messageformat

Package Overview
Dependencies
Maintainers
12
Versions
268
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

intl-messageformat - npm Package Compare versions

Comparing version 9.2.5 to 9.3.0

_validate_dist-base_options.optionsvalid.d.ts

2

_validate_dist-esm_options.optionsvalid.d.ts
// /home/longlho/.cache/bazel/_bazel_longlho/576c18efaac10246ec115c72af79fca6/sandbox/linux-sandbox/58/execroot/formatjs/node_modules/@bazel/typescript/internal/ts_project_options_validator.js checked attributes for //packages/intl-messageformat:dist-esm
// /home/longlho/.cache/bazel/_bazel_longlho/576c18efaac10246ec115c72af79fca6/sandbox/linux-sandbox/1030/execroot/formatjs/node_modules/@bazel/typescript/internal/ts_project_options_validator.js checked attributes for //packages/intl-messageformat:dist-esm
// composite: false

@@ -4,0 +4,0 @@ // declaration: true

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).IntlMessageFormat={})}(this,(function(e){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e,t,r){return e(r={path:t,exports:{},require:function(e,t){return function r(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},r.exports),r.exports}var n=r((function(e,t){var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.createNumberElement=t.createLiteralElement=t.isDateTimeSkeleton=t.isNumberSkeleton=t.isTagElement=t.isPoundElement=t.isPluralElement=t.isSelectElement=t.isTimeElement=t.isDateElement=t.isNumberElement=t.isArgumentElement=t.isLiteralElement=t.SKELETON_TYPE=t.TYPE=void 0,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"}(r=t.TYPE||(t.TYPE={})),(n=t.SKELETON_TYPE||(t.SKELETON_TYPE={}))[n.number=0]="number",n[n.dateTime=1]="dateTime",t.isLiteralElement=function a(e){return e.type===r.literal},t.isArgumentElement=function i(e){return e.type===r.argument},t.isNumberElement=function o(e){return e.type===r.number},t.isDateElement=function u(e){return e.type===r.date},t.isTimeElement=function s(e){return e.type===r.time},t.isSelectElement=function c(e){return e.type===r.select},t.isPluralElement=function l(e){return e.type===r.plural},t.isPoundElement=function f(e){return e.type===r.pound},t.isTagElement=function p(e){return e.type===r.tag},t.isNumberSkeleton=function h(e){return!(!e||"object"!=typeof e||0!==e.type)},t.isDateTimeSkeleton=function m(e){return!(!e||"object"!=typeof e||1!==e.type)},t.createLiteralElement=function g(e){return{type:r.literal,value:e}},t.createNumberElement=function d(e,t){return{type:r.number,value:e,style:t}}})),a=r((function(e,r){var a,i=t&&t.__extends||(a=function(e,t){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=t&&t.__assign||function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};Object.defineProperty(r,"__esModule",{value:!0}),r.pegParse=r.SyntaxError=void 0;var u=function(e){function t(r,n,a,i){var o=e.call(this)||this;return o.message=r,o.expected=n,o.found=a,o.location=i,o.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(o,t),o}return i(t,e),t.buildMessage=function(e,t){function r(e){return e.charCodeAt(0).toString(16).toUpperCase()}function n(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+r(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+r(e)}))}function a(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+r(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+r(e)}))}function i(e){switch(e.type){case"literal":return'"'+n(e.text)+'"';case"class":var t=e.parts.map((function(e){return Array.isArray(e)?a(e[0])+"-"+a(e[1]):a(e)}));return"["+(e.inverted?"^":"")+t+"]";case"any":return"any character";case"end":return"end of input";case"other":return e.description}}return"Expected "+function o(e){var t,r,n=e.map(i);if(n.sort(),n.length>0){for(t=1,r=1;t<n.length;t++)n[t-1]!==n[t]&&(n[r]=n[t],r++);n.length=r}switch(n.length){case 1:return n[0];case 2:return n[0]+" or "+n[1];default:return n.slice(0,-1).join(", ")+", or "+n[n.length-1]}}(e)+" but "+function u(e){return e?'"'+n(e)+'"':"end of input"}(t)+" found."},t}(Error);r.SyntaxError=u,r.pegParse=function s(e,t){t=void 0!==t?t:{};var r,a={},i={start:De},s=De,c=we("<",!1),l=function(e){return e.join("")},f=we("#",!1),p=_e("tagElement"),h=we("/>",!1),m=we(">",!1),g=we("</",!1),d=_e("argumentElement"),y=we("{",!1),v=we("}",!1),b=_e("numberSkeletonId"),A=/^['\/{}]/,E=Te(["'","/","{","}"],!1,!1),w={type:"any"},T=_e("numberSkeletonTokenOption"),_=we("/",!1),P=_e("numberSkeletonToken"),x=we("::",!1),S=function(e){return et.pop(),e.replace(/\s*$/,"")},D=we(",",!1),C=we("number",!1),k=function(e,t,r){return o({type:"number"===t?n.TYPE.number:"date"===t?n.TYPE.date:n.TYPE.time,style:r&&r[2],value:e},rt())},O=we("'",!1),F=/^[^']/,I=Te(["'"],!0,!1),N=/^[^a-zA-Z'{}]/,j=Te([["a","z"],["A","Z"],"'","{","}"],!0,!1),L=/^[a-zA-Z]/,z=Te([["a","z"],["A","Z"]],!1,!1),R=we("date",!1),M=we("time",!1),Y=we("plural",!1),V=we("selectordinal",!1),Z=we("offset:",!1),B=we("select",!1),U=we("=",!1),G=_e("whitespace"),H=/^[\t-\r \x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,q=Te([["\t","\r"]," ","…"," "," ",[" "," "],"\u2028","\u2029"," "," "," "],!1,!1),K=_e("syntax pattern"),$=/^[!-\/:-@[-\^`{-~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2010-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u245F\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3020\u3030\uFD3E\uFD3F\uFE45\uFE46]/,X=Te([["!","/"],[":","@"],["[","^"],"`",["{","~"],["¡","§"],"©","«","¬","®","°","±","¶","»","¿","×","÷",["‐","‧"],["‰","‾"],["⁁","⁓"],["⁕","⁞"],["←","⑟"],["─","❵"],["➔","⯿"],["⸀","⹿"],["、","〃"],["〈","〠"],"〰","﴾","﴿","﹅","﹆"],!1,!1),J=_e("optional whitespace"),Q=_e("number"),W=we("-",!1),ee=_e("double apostrophes"),te=we("''",!1),re=we("\n",!1),ne=_e("argNameOrNumber"),ae=_e("validTag"),ie=_e("argNumber"),oe=we("0",!1),ue=/^[1-9]/,se=Te([["1","9"]],!1,!1),ce=/^[0-9]/,le=Te([["0","9"]],!1,!1),fe=_e("argName"),pe=_e("tagName"),he=0,me=0,ge=[{line:1,column:1}],de=0,ye=[],ve=0;if(void 0!==t.startRule){if(!(t.startRule in i))throw new Error("Can't start parsing from rule \""+t.startRule+'".');s=i[t.startRule]}function be(){return e.substring(me,he)}function Ae(){return xe(me,he)}function Ee(e,t){throw function r(e,t){return new u(e,[],"",t)}(e,t=void 0!==t?t:xe(me,he))}function we(e,t){return{type:"literal",text:e,ignoreCase:t}}function Te(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function _e(e){return{type:"other",description:e}}function Pe(t){var r,n=ge[t];if(n)return n;for(r=t-1;!ge[r];)r--;for(n={line:(n=ge[r]).line,column:n.column};r<t;)10===e.charCodeAt(r)?(n.line++,n.column=1):n.column++,r++;return ge[t]=n,n}function xe(e,t){var r=Pe(e),n=Pe(t);return{start:{offset:e,line:r.line,column:r.column},end:{offset:t,line:n.line,column:n.column}}}function Se(e){he<de||(he>de&&(de=he,ye=[]),ye.push(e))}function De(){return Ce()}function Ce(){var e,t;for(e=[],t=ke();t!==a;)e.push(t),t=ke();return e}function ke(){var t,r;return t=he,me=he,(nt?a:void 0)!==a&&(r=function i(){var e,t,r,i,u,s,c;return ve++,(e=Ie())===a&&(e=he,(t=Ne())!==a&&(r=Ce())!==a&&(i=je())!==a?(me=e,s=r,(u=t)!==(c=i)&&Ee('Mismatch tag "'+u+'" !== "'+c+'"',Ae()),e=t=o({type:n.TYPE.tag,value:u,children:s},rt())):(he=e,e=a)),ve--,e===a&&(t=a,0===ve&&Se(p)),e}())!==a?(me=t,t=r):(he=t,t=a),t===a&&(t=function u(){var e,t;return e=he,(t=Oe())!==a&&(me=e,t=o({type:n.TYPE.literal,value:t},rt())),t}())===a&&(t=function s(){var t,r,i,u;return ve++,t=he,123===e.charCodeAt(he)?(r="{",he++):(r=a,0===ve&&Se(y)),r!==a&&Ge()!==a&&(i=Xe())!==a&&Ge()!==a?(125===e.charCodeAt(he)?(u="}",he++):(u=a,0===ve&&Se(v)),u!==a?(me=t,t=r=o({type:n.TYPE.argument,value:i},rt())):(he=t,t=a)):(he=t,t=a),ve--,t===a&&(r=a,0===ve&&Se(d)),t}())===a&&(t=function c(){var t;return(t=function r(){var t,r,n,i,u,s,c,l,f;return t=he,123===e.charCodeAt(he)?(r="{",he++):(r=a,0===ve&&Se(y)),r!==a&&Ge()!==a&&(n=Xe())!==a&&Ge()!==a?(44===e.charCodeAt(he)?(i=",",he++):(i=a,0===ve&&Se(D)),i!==a&&Ge()!==a?("number"===e.substr(he,6)?(u="number",he+=6):(u=a,0===ve&&Se(C)),u!==a&&Ge()!==a?(s=he,44===e.charCodeAt(he)?(c=",",he++):(c=a,0===ve&&Se(D)),c!==a&&(l=Ge())!==a&&(f=function p(){var t,r,n;return t=he,"::"===e.substr(he,2)?(r="::",he+=2):(r=a,0===ve&&Se(x)),r!==a&&(n=function i(){var e,t,r;if(e=he,t=[],(r=Re())!==a)for(;r!==a;)t.push(r),r=Re();else t=a;return t!==a&&(me=e,t=o({type:0,tokens:t},rt())),t}())!==a?(me=t,t=r=n):(he=t,t=a),t===a&&(t=he,me=he,et.push("numberArgStyle"),(r=(r=!0)?void 0:a)!==a&&(n=Oe())!==a?(me=t,t=r=S(n)):(he=t,t=a)),t}())!==a?s=c=[c,l,f]:(he=s,s=a),s===a&&(s=null),s!==a&&(c=Ge())!==a?(125===e.charCodeAt(he)?(l="}",he++):(l=a,0===ve&&Se(v)),l!==a?(me=t,t=r=k(n,u,s)):(he=t,t=a)):(he=t,t=a)):(he=t,t=a)):(he=t,t=a)):(he=t,t=a),t}())===a&&(t=function n(){var t,r,n,i,u,s,c,l,f;return t=he,123===e.charCodeAt(he)?(r="{",he++):(r=a,0===ve&&Se(y)),r!==a&&Ge()!==a&&(n=Xe())!==a&&Ge()!==a?(44===e.charCodeAt(he)?(i=",",he++):(i=a,0===ve&&Se(D)),i!==a&&Ge()!==a?("date"===e.substr(he,4)?(u="date",he+=4):(u=a,0===ve&&Se(R)),u===a&&("time"===e.substr(he,4)?(u="time",he+=4):(u=a,0===ve&&Se(M))),u!==a&&Ge()!==a?(s=he,44===e.charCodeAt(he)?(c=",",he++):(c=a,0===ve&&Se(D)),c!==a&&(l=Ge())!==a&&(f=function p(){var t,r,n;return t=he,"::"===e.substr(he,2)?(r="::",he+=2):(r=a,0===ve&&Se(x)),r!==a&&(n=function i(){var t,r,n,i;if(t=he,r=he,n=[],(i=Me())===a&&(i=Ye()),i!==a)for(;i!==a;)n.push(i),(i=Me())===a&&(i=Ye());else n=a;return(r=n!==a?e.substring(r,he):n)!==a&&(me=t,r=o({type:1,pattern:r},rt())),r}())!==a?(me=t,t=r=n):(he=t,t=a),t===a&&(t=he,me=he,et.push("dateOrTimeArgStyle"),(r=(r=!0)?void 0:a)!==a&&(n=Oe())!==a?(me=t,t=r=S(n)):(he=t,t=a)),t}())!==a?s=c=[c,l,f]:(he=s,s=a),s===a&&(s=null),s!==a&&(c=Ge())!==a?(125===e.charCodeAt(he)?(l="}",he++):(l=a,0===ve&&Se(v)),l!==a?(me=t,t=r=k(n,u,s)):(he=t,t=a)):(he=t,t=a)):(he=t,t=a)):(he=t,t=a)):(he=t,t=a),t}()),t}())===a&&(t=function l(){var t,r,i,u,s,c,l,f,p,h,m;if(t=he,123===e.charCodeAt(he)?(r="{",he++):(r=a,0===ve&&Se(y)),r!==a)if(Ge()!==a)if((i=Xe())!==a)if(Ge()!==a)if(44===e.charCodeAt(he)?(u=",",he++):(u=a,0===ve&&Se(D)),u!==a)if(Ge()!==a)if("plural"===e.substr(he,6)?(s="plural",he+=6):(s=a,0===ve&&Se(Y)),s===a&&("selectordinal"===e.substr(he,13)?(s="selectordinal",he+=13):(s=a,0===ve&&Se(V))),s!==a)if(Ge()!==a)if(44===e.charCodeAt(he)?(c=",",he++):(c=a,0===ve&&Se(D)),c!==a)if(Ge()!==a)if(l=he,"offset:"===e.substr(he,7)?(f="offset:",he+=7):(f=a,0===ve&&Se(Z)),f!==a&&(p=Ge())!==a&&(h=He())!==a?l=f=[f,p,h]:(he=l,l=a),l===a&&(l=null),l!==a)if((f=Ge())!==a){if(p=[],(h=Ze())!==a)for(;h!==a;)p.push(h),h=Ze();else p=a;p!==a&&(h=Ge())!==a?(125===e.charCodeAt(he)?(m="}",he++):(m=a,0===ve&&Se(v)),m!==a?(me=t,t=r=function(e,t,r,a){return o({type:n.TYPE.plural,pluralType:"plural"===t?"cardinal":"ordinal",value:e,offset:r?r[2]:0,options:a.reduce((function(e,t){var r=t.id,n=t.value,a=t.location;return r in e&&Ee('Duplicate option "'+r+'" in plural element: "'+be()+'"',Ae()),e[r]={value:n,location:a},e}),{})},rt())}(i,s,l,p)):(he=t,t=a)):(he=t,t=a)}else he=t,t=a;else he=t,t=a;else he=t,t=a;else he=t,t=a;else he=t,t=a;else he=t,t=a;else he=t,t=a;else he=t,t=a;else he=t,t=a;else he=t,t=a;else he=t,t=a;else he=t,t=a;return t}())===a&&(t=function h(){var t,r,i,u,s,c,l,f,p;if(t=he,123===e.charCodeAt(he)?(r="{",he++):(r=a,0===ve&&Se(y)),r!==a)if(Ge()!==a)if((i=Xe())!==a)if(Ge()!==a)if(44===e.charCodeAt(he)?(u=",",he++):(u=a,0===ve&&Se(D)),u!==a)if(Ge()!==a)if("select"===e.substr(he,6)?(s="select",he+=6):(s=a,0===ve&&Se(B)),s!==a)if(Ge()!==a)if(44===e.charCodeAt(he)?(c=",",he++):(c=a,0===ve&&Se(D)),c!==a)if(Ge()!==a){if(l=[],(f=Ve())!==a)for(;f!==a;)l.push(f),f=Ve();else l=a;l!==a&&(f=Ge())!==a?(125===e.charCodeAt(he)?(p="}",he++):(p=a,0===ve&&Se(v)),p!==a?(me=t,t=r=function(e,t){return o({type:n.TYPE.select,value:e,options:t.reduce((function(e,t){var r=t.id,n=t.value,a=t.location;return r in e&&Ee('Duplicate option "'+r+'" in select element: "'+be()+'"',Ae()),e[r]={value:n,location:a},e}),{})},rt())}(i,l)):(he=t,t=a)):(he=t,t=a)}else he=t,t=a;else he=t,t=a;else he=t,t=a;else he=t,t=a;else he=t,t=a;else he=t,t=a;else he=t,t=a;else he=t,t=a;else he=t,t=a;else he=t,t=a;return t}())===a&&(t=function m(){var t,r;return t=he,35===e.charCodeAt(he)?(r="#",he++):(r=a,0===ve&&Se(f)),r!==a&&(me=t,r=o({type:n.TYPE.pound},rt())),r}()),t}function Oe(){var t,r,n,i;if(t=he,me=he,(r=(r=nt)?void 0:a)!==a){if(n=[],(i=qe())===a&&(i=Ke())===a&&(i=$e())===a&&(60===e.charCodeAt(he)?(i="<",he++):(i=a,0===ve&&Se(c))),i!==a)for(;i!==a;)n.push(i),(i=qe())===a&&(i=Ke())===a&&(i=$e())===a&&(60===e.charCodeAt(he)?(i="<",he++):(i=a,0===ve&&Se(c)));else n=a;n!==a?(me=t,t=r=l(n)):(he=t,t=a)}else he=t,t=a;if(t===a){if(t=he,r=[],(n=qe())===a&&(n=Ke())===a&&(n=$e())===a&&(n=Fe()),n!==a)for(;n!==a;)r.push(n),(n=qe())===a&&(n=Ke())===a&&(n=$e())===a&&(n=Fe());else r=a;r!==a&&(me=t,r=l(r)),t=r}return t}function Fe(){var t,r,n;return t=he,r=he,ve++,(n=Ne())===a&&(n=je())===a&&(n=Ie()),ve--,n===a?r=void 0:(he=r,r=a),r!==a?(60===e.charCodeAt(he)?(n="<",he++):(n=a,0===ve&&Se(c)),n!==a?(me=t,t=r="<"):(he=t,t=a)):(he=t,t=a),t}function Ie(){var t,r,i,u,s,l;return t=he,r=he,60===e.charCodeAt(he)?(i="<",he++):(i=a,0===ve&&Se(c)),i!==a&&(u=Je())!==a&&(s=Ge())!==a?("/>"===e.substr(he,2)?(l="/>",he+=2):(l=a,0===ve&&Se(h)),l!==a?r=i=[i,u,s,l]:(he=r,r=a)):(he=r,r=a),r!==a&&(me=t,r=o({type:n.TYPE.literal,value:r.join("")},rt())),r}function Ne(){var t,r,n,i;return t=he,60===e.charCodeAt(he)?(r="<",he++):(r=a,0===ve&&Se(c)),r!==a&&(n=Je())!==a?(62===e.charCodeAt(he)?(i=">",he++):(i=a,0===ve&&Se(m)),i!==a?(me=t,t=r=n):(he=t,t=a)):(he=t,t=a),t}function je(){var t,r,n,i;return t=he,"</"===e.substr(he,2)?(r="</",he+=2):(r=a,0===ve&&Se(g)),r!==a&&(n=Je())!==a?(62===e.charCodeAt(he)?(i=">",he++):(i=a,0===ve&&Se(m)),i!==a?(me=t,t=r=n):(he=t,t=a)):(he=t,t=a),t}function Le(){var t,r,n,i,o;if(ve++,t=he,r=[],n=he,i=he,ve++,(o=Be())===a&&(A.test(e.charAt(he))?(o=e.charAt(he),he++):(o=a,0===ve&&Se(E))),ve--,o===a?i=void 0:(he=i,i=a),i!==a?(e.length>he?(o=e.charAt(he),he++):(o=a,0===ve&&Se(w)),o!==a?n=i=[i,o]:(he=n,n=a)):(he=n,n=a),n!==a)for(;n!==a;)r.push(n),n=he,i=he,ve++,(o=Be())===a&&(A.test(e.charAt(he))?(o=e.charAt(he),he++):(o=a,0===ve&&Se(E))),ve--,o===a?i=void 0:(he=i,i=a),i!==a?(e.length>he?(o=e.charAt(he),he++):(o=a,0===ve&&Se(w)),o!==a?n=i=[i,o]:(he=n,n=a)):(he=n,n=a);else r=a;return t=r!==a?e.substring(t,he):r,ve--,t===a&&(r=a,0===ve&&Se(b)),t}function ze(){var t,r,n;return ve++,t=he,47===e.charCodeAt(he)?(r="/",he++):(r=a,0===ve&&Se(_)),r!==a&&(n=Le())!==a?(me=t,t=r=n):(he=t,t=a),ve--,t===a&&(r=a,0===ve&&Se(T)),t}function Re(){var e,t,r,n;if(ve++,e=he,Ge()!==a)if((t=Le())!==a){for(r=[],n=ze();n!==a;)r.push(n),n=ze();r!==a?(me=e,e=function(e,t){return{stem:e,options:t}}(t,r)):(he=e,e=a)}else he=e,e=a;else he=e,e=a;return ve--,e===a&&0===ve&&Se(P),e}function Me(){var t,r,n,i;if(t=he,39===e.charCodeAt(he)?(r="'",he++):(r=a,0===ve&&Se(O)),r!==a){if(n=[],(i=qe())===a&&(F.test(e.charAt(he))?(i=e.charAt(he),he++):(i=a,0===ve&&Se(I))),i!==a)for(;i!==a;)n.push(i),(i=qe())===a&&(F.test(e.charAt(he))?(i=e.charAt(he),he++):(i=a,0===ve&&Se(I)));else n=a;n!==a?(39===e.charCodeAt(he)?(i="'",he++):(i=a,0===ve&&Se(O)),i!==a?t=r=[r,n,i]:(he=t,t=a)):(he=t,t=a)}else he=t,t=a;if(t===a)if(t=[],(r=qe())===a&&(N.test(e.charAt(he))?(r=e.charAt(he),he++):(r=a,0===ve&&Se(j))),r!==a)for(;r!==a;)t.push(r),(r=qe())===a&&(N.test(e.charAt(he))?(r=e.charAt(he),he++):(r=a,0===ve&&Se(j)));else t=a;return t}function Ye(){var t,r;if(t=[],L.test(e.charAt(he))?(r=e.charAt(he),he++):(r=a,0===ve&&Se(z)),r!==a)for(;r!==a;)t.push(r),L.test(e.charAt(he))?(r=e.charAt(he),he++):(r=a,0===ve&&Se(z));else t=a;return t}function Ve(){var t,r,n,i,u,s,c;return t=he,Ge()!==a&&(r=We())!==a&&Ge()!==a?(123===e.charCodeAt(he)?(n="{",he++):(n=a,0===ve&&Se(y)),n!==a?(me=he,et.push("select"),void 0!==a&&(i=Ce())!==a?(125===e.charCodeAt(he)?(u="}",he++):(u=a,0===ve&&Se(v)),u!==a?(me=t,s=r,c=i,et.pop(),t=o({id:s,value:c},rt())):(he=t,t=a)):(he=t,t=a)):(he=t,t=a)):(he=t,t=a),t}function Ze(){var t,r,n,i,u,s,c;return t=he,Ge()!==a&&(r=function l(){var t,r,n,i;return t=he,r=he,61===e.charCodeAt(he)?(n="=",he++):(n=a,0===ve&&Se(U)),n!==a&&(i=He())!==a?r=n=[n,i]:(he=r,r=a),(t=r!==a?e.substring(t,he):r)===a&&(t=We()),t}())!==a&&Ge()!==a?(123===e.charCodeAt(he)?(n="{",he++):(n=a,0===ve&&Se(y)),n!==a?(me=he,et.push("plural"),void 0!==a&&(i=Ce())!==a?(125===e.charCodeAt(he)?(u="}",he++):(u=a,0===ve&&Se(v)),u!==a?(me=t,s=r,c=i,et.pop(),t=o({id:s,value:c},rt())):(he=t,t=a)):(he=t,t=a)):(he=t,t=a)):(he=t,t=a),t}function Be(){var t;return ve++,H.test(e.charAt(he))?(t=e.charAt(he),he++):(t=a,0===ve&&Se(q)),ve--,t===a&&0===ve&&Se(G),t}function Ue(){var t;return ve++,$.test(e.charAt(he))?(t=e.charAt(he),he++):(t=a,0===ve&&Se(X)),ve--,t===a&&0===ve&&Se(K),t}function Ge(){var t,r,n;for(ve++,t=he,r=[],n=Be();n!==a;)r.push(n),n=Be();return t=r!==a?e.substring(t,he):r,ve--,t===a&&(r=a,0===ve&&Se(J)),t}function He(){var t,r,n,i;return ve++,t=he,45===e.charCodeAt(he)?(r="-",he++):(r=a,0===ve&&Se(W)),r===a&&(r=null),r!==a&&(n=Qe())!==a?(me=t,t=r=(i=n)?r?-i:i:0):(he=t,t=a),ve--,t===a&&(r=a,0===ve&&Se(Q)),t}function qe(){var t,r;return ve++,t=he,"''"===e.substr(he,2)?(r="''",he+=2):(r=a,0===ve&&Se(te)),r!==a&&(me=t,r="'"),ve--,(t=r)===a&&(r=a,0===ve&&Se(ee)),t}function Ke(){var t,r,n,i,o,u;if(t=he,39===e.charCodeAt(he)?(r="'",he++):(r=a,0===ve&&Se(O)),r!==a)if((n=function s(){var t,r,n,i,o;return t=he,r=he,e.length>he?(n=e.charAt(he),he++):(n=a,0===ve&&Se(w)),n!==a?(me=he,(i=(i="<"===(o=n)||">"===o||"{"===o||"}"===o||tt()&&"#"===o)?void 0:a)!==a?r=n=[n,i]:(he=r,r=a)):(he=r,r=a),r!==a?e.substring(t,he):r}())!==a){for(i=he,o=[],"''"===e.substr(he,2)?(u="''",he+=2):(u=a,0===ve&&Se(te)),u===a&&(F.test(e.charAt(he))?(u=e.charAt(he),he++):(u=a,0===ve&&Se(I)));u!==a;)o.push(u),"''"===e.substr(he,2)?(u="''",he+=2):(u=a,0===ve&&Se(te)),u===a&&(F.test(e.charAt(he))?(u=e.charAt(he),he++):(u=a,0===ve&&Se(I)));(i=o!==a?e.substring(i,he):o)!==a?(39===e.charCodeAt(he)?(o="'",he++):(o=a,0===ve&&Se(O)),o===a&&(o=null),o!==a?(me=t,t=r=n+i.replace("''","'")):(he=t,t=a)):(he=t,t=a)}else he=t,t=a;else he=t,t=a;return t}function $e(){var t,r,n,i,o;return t=he,r=he,e.length>he?(n=e.charAt(he),he++):(n=a,0===ve&&Se(w)),n!==a?(me=he,(i=(i=!("<"===(o=n)||"{"===o||tt()&&"#"===o||function u(){return et.length>1}()&&"}"===o))?void 0:a)!==a?r=n=[n,i]:(he=r,r=a)):(he=r,r=a),r===a&&(10===e.charCodeAt(he)?(r="\n",he++):(r=a,0===ve&&Se(re))),r!==a?e.substring(t,he):r}function Xe(){var t,r;return ve++,t=he,(r=Qe())===a&&(r=We()),t=r!==a?e.substring(t,he):r,ve--,t===a&&(r=a,0===ve&&Se(ne)),t}function Je(){var t,r;return ve++,t=he,(r=Qe())===a&&(r=function n(){var t,r,n,i,o;if(ve++,t=he,r=[],45===e.charCodeAt(he)?(n="-",he++):(n=a,0===ve&&Se(W)),n===a&&(n=he,i=he,ve++,(o=Be())===a&&(o=Ue()),ve--,o===a?i=void 0:(he=i,i=a),i!==a?(e.length>he?(o=e.charAt(he),he++):(o=a,0===ve&&Se(w)),o!==a?n=i=[i,o]:(he=n,n=a)):(he=n,n=a)),n!==a)for(;n!==a;)r.push(n),45===e.charCodeAt(he)?(n="-",he++):(n=a,0===ve&&Se(W)),n===a&&(n=he,i=he,ve++,(o=Be())===a&&(o=Ue()),ve--,o===a?i=void 0:(he=i,i=a),i!==a?(e.length>he?(o=e.charAt(he),he++):(o=a,0===ve&&Se(w)),o!==a?n=i=[i,o]:(he=n,n=a)):(he=n,n=a));else r=a;return t=r!==a?e.substring(t,he):r,ve--,t===a&&(r=a,0===ve&&Se(pe)),t}()),t=r!==a?e.substring(t,he):r,ve--,t===a&&(r=a,0===ve&&Se(ae)),t}function Qe(){var t,r,n,i,o;if(ve++,t=he,48===e.charCodeAt(he)?(r="0",he++):(r=a,0===ve&&Se(oe)),r!==a&&(me=t,r=0),(t=r)===a){if(t=he,r=he,ue.test(e.charAt(he))?(n=e.charAt(he),he++):(n=a,0===ve&&Se(se)),n!==a){for(i=[],ce.test(e.charAt(he))?(o=e.charAt(he),he++):(o=a,0===ve&&Se(le));o!==a;)i.push(o),ce.test(e.charAt(he))?(o=e.charAt(he),he++):(o=a,0===ve&&Se(le));i!==a?r=n=[n,i]:(he=r,r=a)}else he=r,r=a;r!==a&&(me=t,r=parseInt(r.join(""),10)),t=r}return ve--,t===a&&(r=a,0===ve&&Se(ie)),t}function We(){var t,r,n,i,o;if(ve++,t=he,r=[],n=he,i=he,ve++,(o=Be())===a&&(o=Ue()),ve--,o===a?i=void 0:(he=i,i=a),i!==a?(e.length>he?(o=e.charAt(he),he++):(o=a,0===ve&&Se(w)),o!==a?n=i=[i,o]:(he=n,n=a)):(he=n,n=a),n!==a)for(;n!==a;)r.push(n),n=he,i=he,ve++,(o=Be())===a&&(o=Ue()),ve--,o===a?i=void 0:(he=i,i=a),i!==a?(e.length>he?(o=e.charAt(he),he++):(o=a,0===ve&&Se(w)),o!==a?n=i=[i,o]:(he=n,n=a)):(he=n,n=a);else r=a;return t=r!==a?e.substring(t,he):r,ve--,t===a&&(r=a,0===ve&&Se(fe)),t}var et=["root"];function tt(){return"plural"===et[et.length-1]}function rt(){return t&&t.captureLocation?{location:Ae()}:{}}var nt=t&&t.ignoreTag;if((r=s())!==a&&he===e.length)return r;throw r!==a&&he<e.length&&Se({type:"end"}),function at(e,t,r){return new u(u.buildMessage(e,t),e,t,r)}(ye,de<e.length?e.charAt(de):null,xe(de,de<e.length?de+1:de))}})),i=r((function(e,r){var i=t&&t.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),a=0;for(t=0;t<r;t++)for(var i=arguments[t],o=0,u=i.length;o<u;o++,a++)n[a]=i[o];return n};Object.defineProperty(r,"__esModule",{value:!0}),r.normalizeHashtagInPlural=void 0;var o=/(^|[^\\])#/g;r.normalizeHashtagInPlural=function e(t){t.forEach((function(t){(n.isPluralElement(t)||n.isSelectElement(t))&&Object.keys(t.options).forEach((function(r){for(var u,s=t.options[r],c=-1,l=void 0,f=0;f<s.value.length;f++){var p=s.value[f];if(n.isLiteralElement(p)&&o.test(p.value)){c=f,l=p;break}}if(l){var h=l.value.replace(o,"$1{"+t.value+", number}"),m=a.pegParse(h);(u=s.value).splice.apply(u,i([c,1],m))}e(s.value)}))}))}})),o=r((function(e,r){var n=t&&t.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};Object.defineProperty(r,"__esModule",{value:!0}),r.convertNumberSkeletonToNumberFormatOptions=r.parseDateTimeSkeleton=void 0;var a=/(?:[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;r.parseDateTimeSkeleton=function i(e){var t={};return e.replace(a,(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) pattenrs 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) pattenrs are not supported, use `z` instead")}return""})),t};var o=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,u=/^(@+)?(\+|#+)?$/g;function s(e){var t={};return e.replace(u,(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 c(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":return{currencySign:"accounting"};case"sign-always":return{signDisplay:"always"};case"sign-accounting-always":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":return{signDisplay:"never"}}}function l(e){return c(e)||{}}r.convertNumberSkeletonToNumberFormatOptions=function f(e){for(var t={},r=0,a=e;r<a.length;r++){var i=a[r];switch(i.stem){case"percent":t.style="percent";continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":t.style="unit",t.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=n(n(n({},t),{notation:"scientific"}),i.options.reduce((function(e,t){return n(n({},e),l(t))}),{}));continue;case"engineering":t=n(n(n({},t),{notation:"engineering"}),i.options.reduce((function(e,t){return n(n({},e),l(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}if(o.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(o,(function(e,r,n,a,i,o){return"*"===n?t.minimumFractionDigits=r.length:a&&"#"===a[0]?t.maximumFractionDigits=a.length:i&&o?(t.minimumFractionDigits=i.length,t.maximumFractionDigits=i.length+o.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""})),i.options.length&&(t=n(n({},t),s(i.options[0])))}else if(u.test(i.stem))t=n(n({},t),s(i.stem));else{var f=c(i.stem);f&&(t=n(n({},t),f))}}return t}})),u=r((function(e,r){var u=t&&t.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=t&&t.__exportStar||function(e,t){for(var r in e)"default"===r||t.hasOwnProperty(r)||u(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),r.parse=void 0,s(n,r),s(a,r),s(o,r),r.parse=function c(e,t){var r=a.pegParse(e,t);return t&&!1===t.normalizeHashtagInPlural||i.normalizeHashtagInPlural(r),r}}));function s(e,t,r,n){var a=function i(e){return null==e||"number"==typeof e||"boolean"==typeof e}(n)?n:r(n),o=t.get(a);return void 0===o&&(o=e.call(this,n),t.set(a,o)),o}function c(e,t,r){var n=Array.prototype.slice.call(arguments,3),a=r(n),i=t.get(a);return void 0===i&&(i=e.apply(this,n),t.set(a,i)),i}function l(e,t,r,n,a){return r.bind(t,e,n,a)}function f(e,t){return l(e,this,1===e.length?s:c,t.cache.create(),t.serializer)}function p(){return JSON.stringify(arguments)}function h(){this.cache=Object.create(null)}h.prototype.has=function(e){return e in this.cache},h.prototype.get=function(e){return this.cache[e]},h.prototype.set=function(e,t){this.cache[e]=t};var m={create:function e(){return new h}},g=function d(e,t){return(t&&t.strategy?t.strategy:f)(e,{cache:t&&t.cache?t.cache:m,serializer:t&&t.serializer?t.serializer:p})},y={variadic:function v(e,t){return l(e,this,c,t.cache.create(),t.serializer)},monadic:function b(e,t){return l(e,this,s,t.cache.create(),t.serializer)}};g.strategies=y;var A,E,w=Object.freeze(Object.assign(Object.create(null),g,{default:g,strategies:y})),T=(A=function(e,t){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}A(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});(E=e.ErrorCode||(e.ErrorCode={})).MISSING_VALUE="MISSING_VALUE",E.INVALID_VALUE="INVALID_VALUE",E.MISSING_INTL_API="MISSING_INTL_API";var _,P=function(e){function t(t,r,n){var a=e.call(this,t)||this;return a.code=r,a.originalMessage=n,a}return T(t,e),t.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},t}(Error),x=function(e){function t(t,r,n,a){return e.call(this,'Invalid values for "'+t+'": "'+r+'". Options are "'+Object.keys(n).join('", "')+'"',"INVALID_VALUE",a)||this}return T(t,e),t}(P),S=function(e){function t(t,r,n){return e.call(this,'Value for "'+t+'" must be of type '+r,"INVALID_VALUE",n)||this}return T(t,e),t}(P),D=function(e){function t(t,r){return e.call(this,'The intl string context variable "'+t+'" was not provided to the string "'+r+'"',"MISSING_VALUE",r)||this}return T(t,e),t}(P);function C(e){return"function"==typeof e}function k(e,t,r,n,a,i,o){if(1===e.length&&u.isLiteralElement(e[0]))return[{type:0,value:e[0].value}];for(var s=[],c=0,l=e;c<l.length;c++){var f=l[c];if(u.isLiteralElement(f))s.push({type:0,value:f.value});else if(u.isPoundElement(f))"number"==typeof i&&s.push({type:0,value:r.getNumberFormat(t).format(i)});else{var p=f.value;if(!a||!(p in a))throw new D(p,o);var h=a[p];if(u.isArgumentElement(f))h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),s.push({type:"string"==typeof h?0:1,value:h});else if(u.isDateElement(f)){var m="string"==typeof f.style?n.date[f.style]:u.isDateTimeSkeleton(f.style)?u.parseDateTimeSkeleton(f.style.pattern):void 0;s.push({type:0,value:r.getDateTimeFormat(t,m).format(h)})}else if(u.isTimeElement(f))m="string"==typeof f.style?n.time[f.style]:u.isDateTimeSkeleton(f.style)?u.parseDateTimeSkeleton(f.style.pattern):void 0,s.push({type:0,value:r.getDateTimeFormat(t,m).format(h)});else if(u.isNumberElement(f))m="string"==typeof f.style?n.number[f.style]:u.isNumberSkeleton(f.style)?u.convertNumberSkeletonToNumberFormatOptions(f.style.tokens):void 0,s.push({type:0,value:r.getNumberFormat(t,m).format(h)});else{if(u.isTagElement(f)){var g=f.children,d=f.value,y=a[d];if(!C(y))throw new S(d,"function",o);var v=y(k(g,t,r,n,a,i).map((function(e){return e.value})));Array.isArray(v)||(v=[v]),s.push.apply(s,v.map((function(e){return{type:"string"==typeof e?0:1,value:e}})))}if(u.isSelectElement(f)){if(!(b=f.options[h]||f.options.other))throw new x(f.value,h,Object.keys(f.options),o);s.push.apply(s,k(b.value,t,r,n,a))}else if(u.isPluralElement(f)){var b;if(!(b=f.options["="+h])){if(!Intl.PluralRules)throw new P('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',"MISSING_INTL_API",o);var A=r.getPluralRules(t,{type:f.pluralType}).select(h-(f.offset||0));b=f.options[A]||f.options.other}if(!b)throw new x(f.value,h,Object.keys(f.options),o);s.push.apply(s,k(b.value,t,r,n,a,h-(f.offset||0)))}}}}return function E(e){return e.length<2?e:e.reduce((function(e,t){var r=e[e.length-1];return r&&0===r.type&&0===t.type?r.value+=t.value:e.push(t),e}),[])}(s)}(_=e.PART_TYPE||(e.PART_TYPE={}))[_.literal=0]="literal",_[_.object=1]="object";var O=function(){return(O=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)},F=function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),a=0;for(t=0;t<r;t++)for(var i=arguments[t],o=0,u=i.length;o<u;o++,a++)n[a]=i[o];return n};function I(e){return{create:function(){return{has:function(t){return t in e},get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}var N=g||w,j=function(){function e(t,r,n,a){var i=this;if(void 0===r&&(r=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=i.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce((function(e,t){return e.length&&0===t.type&&"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 k(i.ast,i.locales,i.formatters,i.formats,e,void 0,i.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(i.locales)[0]}},this.getAst=function(){return i.ast},"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{normalizeHashtagInPlural:!1,ignoreTag:null==a?void 0:a.ignoreTag})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=function o(e,t){return t?Object.keys(e).reduce((function(r,n){return r[n]=function a(e,t){return t?O(O(O({},e||{}),t||{}),Object.keys(e).reduce((function(r,n){return r[n]=O(O({},e[n]),t[n]||{}),r}),{})):e}(e[n],t[n]),r}),O({},e)):e}(e.formats,n),this.locales=r,this.formatters=a&&a.formatters||function u(e){return void 0===e&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:N((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,F([void 0],t)))}),{cache:I(e.number),strategy:N.strategies.variadic}),getDateTimeFormat:N((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,F([void 0],t)))}),{cache:I(e.dateTime),strategy:N.strategies.variadic}),getPluralRules:N((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,F([void 0],t)))}),{cache:I(e.pluralRules),strategy:N.strategies.variadic})}}(this.formatterCache)}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.__parse=u.parse,e.formats={number:{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}();e.FormatError=P,e.IntlMessageFormat=j,e.InvalidValueError=x,e.InvalidValueTypeError=S,e.MissingValueError=D,e.default=j,e.formatToParts=k,e.isFormatXMLElementFn=C,Object.defineProperty(e,"__esModule",{value:!0})}));
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).IntlMessageFormat={})}(this,(function(e){"use strict";var t,r;function n(e){return e.type===t.literal}function a(e){return e.type===t.argument}function o(e){return e.type===t.number}function i(e){return e.type===t.date}function u(e){return e.type===t.time}function c(e){return e.type===t.select}function s(e){return e.type===t.plural}function l(e){return e.type===t.pound}function f(e){return e.type===t.tag}function p(e){return!(!e||"object"!=typeof e||0!==e.type)}function h(e){return!(!e||"object"!=typeof e||1!==e.type)}!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"}(t||(t={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(r||(r={}));var g=function(){return(g=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)},m=/(?:[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,d=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,y=/^(@+)?(\+|#+)?$/g;function v(e){var t={};return e.replace(y,(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 A(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":return{currencySign:"accounting"};case"sign-always":return{signDisplay:"always"};case"sign-accounting-always":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":return{signDisplay:"never"}}}function b(e){return A(e)||{}}function w(e){for(var t={},r=0,n=e;r<n.length;r++){var a=n[r];switch(a.stem){case"percent":t.style="percent";continue;case"currency":t.style="currency",t.currency=a.options[0];continue;case"group-off":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":t.style="unit",t.unit=a.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=g(g(g({},t),{notation:"scientific"}),a.options.reduce((function(e,t){return g(g({},e),b(t))}),{}));continue;case"engineering":t=g(g(g({},t),{notation:"engineering"}),a.options.reduce((function(e,t){return g(g({},e),b(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}if(d.test(a.stem)){if(a.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");a.stem.replace(d,(function(e,r,n,a,o,i){return"*"===n?t.minimumFractionDigits=r.length:a&&"#"===a[0]?t.maximumFractionDigits=a.length:o&&i?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+i.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""})),a.options.length&&(t=g(g({},t),v(a.options[0])))}else if(y.test(a.stem))t=g(g({},t),v(a.stem));else{var o=A(a.stem);o&&(t=g(g({},t),o))}}return t}var C,x=(C=function(e,t){return(C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}C(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),E=function(){return(E=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)},D=function(e){function t(r,n,a,o){var i=e.call(this)||this;return i.message=r,i.expected=n,i.found=a,i.location=o,i.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(i,t),i}return x(t,e),t.buildMessage=function(e,t){function r(e){return e.charCodeAt(0).toString(16).toUpperCase()}function n(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+r(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+r(e)}))}function a(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+r(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+r(e)}))}function o(e){switch(e.type){case"literal":return'"'+n(e.text)+'"';case"class":var t=e.parts.map((function(e){return Array.isArray(e)?a(e[0])+"-"+a(e[1]):a(e)}));return"["+(e.inverted?"^":"")+t+"]";case"any":return"any character";case"end":return"end of input";case"other":return e.description}}return"Expected "+function i(e){var t,r,n=e.map(o);if(n.sort(),n.length>0){for(t=1,r=1;t<n.length;t++)n[t-1]!==n[t]&&(n[r]=n[t],r++);n.length=r}switch(n.length){case 1:return n[0];case 2:return n[0]+" or "+n[1];default:return n.slice(0,-1).join(", ")+", or "+n[n.length-1]}}(e)+" but "+function u(e){return e?'"'+n(e)+'"':"end of input"}(t)+" found."},t}(Error),F=function O(e,r){r=void 0!==r?r:{};var n,a={},o={start:_e},i=_e,u=Ee("<",!1),c=function(e){return e.join("")},s=Ee("#",!1),l=Fe("tagElement"),f=Ee("/>",!1),p=Ee(">",!1),h=Ee("</",!1),g=Fe("argumentElement"),d=Ee("{",!1),y=Ee("}",!1),v=Fe("numberSkeletonId"),A=/^['\/{}]/,b=De(["'","/","{","}"],!1,!1),C={type:"any"},x=Fe("numberSkeletonTokenOption"),F=Ee("/",!1),O=Fe("numberSkeletonToken"),I=Ee("::",!1),k=function(e){return rt.pop(),e.replace(/\s*$/,"")},_=Ee(",",!1),S=Ee("number",!1),j=function(e,r,n){return E({type:"number"===r?t.number:"date"===r?t.date:t.time,style:n&&n[2],value:e},at())},T=Ee("'",!1),P=/^[^']/,N=De(["'"],!0,!1),L=/^[^a-zA-Z'{}]/,R=De([["a","z"],["A","Z"],"'","{","}"],!0,!1),z=/^[a-zA-Z]/,M=De([["a","z"],["A","Z"]],!1,!1),V=Ee("date",!1),Z=Ee("time",!1),B=Ee("plural",!1),U=Ee("selectordinal",!1),G=Ee("offset:",!1),H=Ee("select",!1),Y=Ee("=",!1),$=Fe("whitespace"),q=/^[\t-\r \x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,X=De([["\t","\r"]," ","…"," "," ",[" "," "],"\u2028","\u2029"," "," "," "],!1,!1),J=Fe("syntax pattern"),K=/^[!-\/:-@[-\^`{-~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2010-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u245F\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3020\u3030\uFD3E\uFD3F\uFE45\uFE46]/,Q=De([["!","/"],[":","@"],["[","^"],"`",["{","~"],["¡","§"],"©","«","¬","®","°","±","¶","»","¿","×","÷",["‐","‧"],["‰","‾"],["⁁","⁓"],["⁕","⁞"],["←","⑟"],["─","❵"],["➔","⯿"],["⸀","⹿"],["、","〃"],["〈","〠"],"〰","﴾","﴿","﹅","﹆"],!1,!1),W=Fe("optional whitespace"),ee=Fe("number"),te=Ee("-",!1),re=Fe("double apostrophes"),ne=Ee("''",!1),ae=Ee("\n",!1),oe=Fe("argNameOrNumber"),ie=Fe("validTag"),ue=Fe("argNumber"),ce=Ee("0",!1),se=/^[1-9]/,le=De([["1","9"]],!1,!1),fe=/^[0-9]/,pe=De([["0","9"]],!1,!1),he=Fe("argName"),ge=Fe("tagName"),me=0,de=0,ye=[{line:1,column:1}],ve=0,Ae=[],be=0;if(void 0!==r.startRule){if(!(r.startRule in o))throw new Error("Can't start parsing from rule \""+r.startRule+'".');i=o[r.startRule]}function we(){return e.substring(de,me)}function Ce(){return Ie(de,me)}function xe(e,t){throw function r(e,t){return new D(e,[],"",t)}(e,t=void 0!==t?t:Ie(de,me))}function Ee(e,t){return{type:"literal",text:e,ignoreCase:t}}function De(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function Fe(e){return{type:"other",description:e}}function Oe(t){var r,n=ye[t];if(n)return n;for(r=t-1;!ye[r];)r--;for(n={line:(n=ye[r]).line,column:n.column};r<t;)10===e.charCodeAt(r)?(n.line++,n.column=1):n.column++,r++;return ye[t]=n,n}function Ie(e,t){var r=Oe(e),n=Oe(t);return{start:{offset:e,line:r.line,column:r.column},end:{offset:t,line:n.line,column:n.column}}}function ke(e){me<ve||(me>ve&&(ve=me,Ae=[]),Ae.push(e))}function _e(){return Se()}function Se(){var e,t;for(e=[],t=je();t!==a;)e.push(t),t=je();return e}function je(){var r,n;return r=me,de=me,(ot?a:void 0)!==a&&(n=function o(){var e,r,n,o,i,u,c;return be++,(e=Ne())===a&&(e=me,(r=Le())!==a&&(n=Se())!==a&&(o=Re())!==a?(de=e,u=n,(i=r)!==(c=o)&&xe('Mismatch tag "'+i+'" !== "'+c+'"',Ce()),e=r=E({type:t.tag,value:i,children:u},at())):(me=e,e=a)),be--,e===a&&(r=a,0===be&&ke(l)),e}())!==a?(de=r,r=n):(me=r,r=a),r===a&&(r=function i(){var e,r;return e=me,(r=Te())!==a&&(de=e,r=E({type:t.literal,value:r},at())),r}())===a&&(r=function u(){var r,n,o,i;return be++,r=me,123===e.charCodeAt(me)?(n="{",me++):(n=a,0===be&&ke(d)),n!==a&&$e()!==a&&(o=Qe())!==a&&$e()!==a?(125===e.charCodeAt(me)?(i="}",me++):(i=a,0===be&&ke(y)),i!==a?(de=r,r=n=E({type:t.argument,value:o},at())):(me=r,r=a)):(me=r,r=a),be--,r===a&&(n=a,0===be&&ke(g)),r}())===a&&(r=function c(){var t;return(t=function r(){var t,r,n,o,i,u,c,s,l;return t=me,123===e.charCodeAt(me)?(r="{",me++):(r=a,0===be&&ke(d)),r!==a&&$e()!==a&&(n=Qe())!==a&&$e()!==a?(44===e.charCodeAt(me)?(o=",",me++):(o=a,0===be&&ke(_)),o!==a&&$e()!==a?("number"===e.substr(me,6)?(i="number",me+=6):(i=a,0===be&&ke(S)),i!==a&&$e()!==a?(u=me,44===e.charCodeAt(me)?(c=",",me++):(c=a,0===be&&ke(_)),c!==a&&(s=$e())!==a&&(l=function f(){var t,r,n;return t=me,"::"===e.substr(me,2)?(r="::",me+=2):(r=a,0===be&&ke(I)),r!==a&&(n=function o(){var e,t,r,n;if(e=me,t=[],(r=Ve())!==a)for(;r!==a;)t.push(r),r=Ve();else t=a;return t!==a&&(de=e,t=E({type:0,tokens:n=t,parsedOptions:it?w(n):{}},at())),t}())!==a?(de=t,t=r=n):(me=t,t=a),t===a&&(t=me,de=me,rt.push("numberArgStyle"),(r=(r=!0)?void 0:a)!==a&&(n=Te())!==a?(de=t,t=r=k(n)):(me=t,t=a)),t}())!==a?u=c=[c,s,l]:(me=u,u=a),u===a&&(u=null),u!==a&&(c=$e())!==a?(125===e.charCodeAt(me)?(s="}",me++):(s=a,0===be&&ke(y)),s!==a?(de=t,t=r=j(n,i,u)):(me=t,t=a)):(me=t,t=a)):(me=t,t=a)):(me=t,t=a)):(me=t,t=a),t}())===a&&(t=function n(){var t,r,n,o,i,u,c,s,l;return t=me,123===e.charCodeAt(me)?(r="{",me++):(r=a,0===be&&ke(d)),r!==a&&$e()!==a&&(n=Qe())!==a&&$e()!==a?(44===e.charCodeAt(me)?(o=",",me++):(o=a,0===be&&ke(_)),o!==a&&$e()!==a?("date"===e.substr(me,4)?(i="date",me+=4):(i=a,0===be&&ke(V)),i===a&&("time"===e.substr(me,4)?(i="time",me+=4):(i=a,0===be&&ke(Z))),i!==a&&$e()!==a?(u=me,44===e.charCodeAt(me)?(c=",",me++):(c=a,0===be&&ke(_)),c!==a&&(s=$e())!==a&&(l=function f(){var t,r,n;return t=me,"::"===e.substr(me,2)?(r="::",me+=2):(r=a,0===be&&ke(I)),r!==a&&(n=function o(){var t,r,n,o,i,u,c;if(t=me,r=me,n=[],(o=Ze())===a&&(o=Be()),o!==a)for(;o!==a;)n.push(o),(o=Ze())===a&&(o=Be());else n=a;return(r=n!==a?e.substring(r,me):n)!==a&&(de=t,r=E({type:1,pattern:i=r,parsedOptions:it?(u=i,c={},u.replace(m,(function(e){var t=e.length;switch(e[0]){case"G":c.era=4===t?"long":5===t?"narrow":"short";break;case"y":c.year=2===t?"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":c.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":c.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":c.weekday=4===t?"short":5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");c.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");c.weekday=["short","long","narrow","short"][t-4];break;case"a":c.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":c.hourCycle="h12",c.hour=["numeric","2-digit"][t-1];break;case"H":c.hourCycle="h23",c.hour=["numeric","2-digit"][t-1];break;case"K":c.hourCycle="h11",c.hour=["numeric","2-digit"][t-1];break;case"k":c.hourCycle="h24",c.hour=["numeric","2-digit"][t-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":c.minute=["numeric","2-digit"][t-1];break;case"s":c.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":c.timeZoneName=t<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""})),c):{}},at())),r}())!==a?(de=t,t=r=n):(me=t,t=a),t===a&&(t=me,de=me,rt.push("dateOrTimeArgStyle"),(r=(r=!0)?void 0:a)!==a&&(n=Te())!==a?(de=t,t=r=k(n)):(me=t,t=a)),t}())!==a?u=c=[c,s,l]:(me=u,u=a),u===a&&(u=null),u!==a&&(c=$e())!==a?(125===e.charCodeAt(me)?(s="}",me++):(s=a,0===be&&ke(y)),s!==a?(de=t,t=r=j(n,i,u)):(me=t,t=a)):(me=t,t=a)):(me=t,t=a)):(me=t,t=a)):(me=t,t=a),t}()),t}())===a&&(r=function f(){var r,n,o,i,u,c,s,l,f,p,h;if(r=me,123===e.charCodeAt(me)?(n="{",me++):(n=a,0===be&&ke(d)),n!==a)if($e()!==a)if((o=Qe())!==a)if($e()!==a)if(44===e.charCodeAt(me)?(i=",",me++):(i=a,0===be&&ke(_)),i!==a)if($e()!==a)if("plural"===e.substr(me,6)?(u="plural",me+=6):(u=a,0===be&&ke(B)),u===a&&("selectordinal"===e.substr(me,13)?(u="selectordinal",me+=13):(u=a,0===be&&ke(U))),u!==a)if($e()!==a)if(44===e.charCodeAt(me)?(c=",",me++):(c=a,0===be&&ke(_)),c!==a)if($e()!==a)if(s=me,"offset:"===e.substr(me,7)?(l="offset:",me+=7):(l=a,0===be&&ke(G)),l!==a&&(f=$e())!==a&&(p=qe())!==a?s=l=[l,f,p]:(me=s,s=a),s===a&&(s=null),s!==a)if((l=$e())!==a){if(f=[],(p=Ge())!==a)for(;p!==a;)f.push(p),p=Ge();else f=a;f!==a&&(p=$e())!==a?(125===e.charCodeAt(me)?(h="}",me++):(h=a,0===be&&ke(y)),h!==a?(de=r,r=n=function(e,r,n,a){return E({type:t.plural,pluralType:"plural"===r?"cardinal":"ordinal",value:e,offset:n?n[2]:0,options:a.reduce((function(e,t){var r=t.id,n=t.value,a=t.location;return r in e&&xe('Duplicate option "'+r+'" in plural element: "'+we()+'"',Ce()),e[r]={value:n,location:a},e}),{})},at())}(o,u,s,f)):(me=r,r=a)):(me=r,r=a)}else me=r,r=a;else me=r,r=a;else me=r,r=a;else me=r,r=a;else me=r,r=a;else me=r,r=a;else me=r,r=a;else me=r,r=a;else me=r,r=a;else me=r,r=a;else me=r,r=a;else me=r,r=a;return r}())===a&&(r=function p(){var r,n,o,i,u,c,s,l,f;if(r=me,123===e.charCodeAt(me)?(n="{",me++):(n=a,0===be&&ke(d)),n!==a)if($e()!==a)if((o=Qe())!==a)if($e()!==a)if(44===e.charCodeAt(me)?(i=",",me++):(i=a,0===be&&ke(_)),i!==a)if($e()!==a)if("select"===e.substr(me,6)?(u="select",me+=6):(u=a,0===be&&ke(H)),u!==a)if($e()!==a)if(44===e.charCodeAt(me)?(c=",",me++):(c=a,0===be&&ke(_)),c!==a)if($e()!==a){if(s=[],(l=Ue())!==a)for(;l!==a;)s.push(l),l=Ue();else s=a;s!==a&&(l=$e())!==a?(125===e.charCodeAt(me)?(f="}",me++):(f=a,0===be&&ke(y)),f!==a?(de=r,r=n=function(e,r){return E({type:t.select,value:e,options:r.reduce((function(e,t){var r=t.id,n=t.value,a=t.location;return r in e&&xe('Duplicate option "'+r+'" in select element: "'+we()+'"',Ce()),e[r]={value:n,location:a},e}),{})},at())}(o,s)):(me=r,r=a)):(me=r,r=a)}else me=r,r=a;else me=r,r=a;else me=r,r=a;else me=r,r=a;else me=r,r=a;else me=r,r=a;else me=r,r=a;else me=r,r=a;else me=r,r=a;else me=r,r=a;return r}())===a&&(r=function h(){var r,n;return r=me,35===e.charCodeAt(me)?(n="#",me++):(n=a,0===be&&ke(s)),n!==a&&(de=r,n=E({type:t.pound},at())),n}()),r}function Te(){var t,r,n,o;if(t=me,de=me,(r=(r=ot)?void 0:a)!==a){if(n=[],(o=Xe())===a&&(o=Je())===a&&(o=Ke())===a&&(60===e.charCodeAt(me)?(o="<",me++):(o=a,0===be&&ke(u))),o!==a)for(;o!==a;)n.push(o),(o=Xe())===a&&(o=Je())===a&&(o=Ke())===a&&(60===e.charCodeAt(me)?(o="<",me++):(o=a,0===be&&ke(u)));else n=a;n!==a?(de=t,t=r=c(n)):(me=t,t=a)}else me=t,t=a;if(t===a){if(t=me,r=[],(n=Xe())===a&&(n=Je())===a&&(n=Ke())===a&&(n=Pe()),n!==a)for(;n!==a;)r.push(n),(n=Xe())===a&&(n=Je())===a&&(n=Ke())===a&&(n=Pe());else r=a;r!==a&&(de=t,r=c(r)),t=r}return t}function Pe(){var t,r,n;return t=me,r=me,be++,(n=Le())===a&&(n=Re())===a&&(n=Ne()),be--,n===a?r=void 0:(me=r,r=a),r!==a?(60===e.charCodeAt(me)?(n="<",me++):(n=a,0===be&&ke(u)),n!==a?(de=t,t=r="<"):(me=t,t=a)):(me=t,t=a),t}function Ne(){var r,n,o,i,c,s;return r=me,n=me,60===e.charCodeAt(me)?(o="<",me++):(o=a,0===be&&ke(u)),o!==a&&(i=We())!==a&&(c=$e())!==a?("/>"===e.substr(me,2)?(s="/>",me+=2):(s=a,0===be&&ke(f)),s!==a?n=o=[o,i,c,s]:(me=n,n=a)):(me=n,n=a),n!==a&&(de=r,n=E({type:t.literal,value:n.join("")},at())),n}function Le(){var t,r,n,o;return t=me,60===e.charCodeAt(me)?(r="<",me++):(r=a,0===be&&ke(u)),r!==a&&(n=We())!==a?(62===e.charCodeAt(me)?(o=">",me++):(o=a,0===be&&ke(p)),o!==a?(de=t,t=r=n):(me=t,t=a)):(me=t,t=a),t}function Re(){var t,r,n,o;return t=me,"</"===e.substr(me,2)?(r="</",me+=2):(r=a,0===be&&ke(h)),r!==a&&(n=We())!==a?(62===e.charCodeAt(me)?(o=">",me++):(o=a,0===be&&ke(p)),o!==a?(de=t,t=r=n):(me=t,t=a)):(me=t,t=a),t}function ze(){var t,r,n,o,i;if(be++,t=me,r=[],n=me,o=me,be++,(i=He())===a&&(A.test(e.charAt(me))?(i=e.charAt(me),me++):(i=a,0===be&&ke(b))),be--,i===a?o=void 0:(me=o,o=a),o!==a?(e.length>me?(i=e.charAt(me),me++):(i=a,0===be&&ke(C)),i!==a?n=o=[o,i]:(me=n,n=a)):(me=n,n=a),n!==a)for(;n!==a;)r.push(n),n=me,o=me,be++,(i=He())===a&&(A.test(e.charAt(me))?(i=e.charAt(me),me++):(i=a,0===be&&ke(b))),be--,i===a?o=void 0:(me=o,o=a),o!==a?(e.length>me?(i=e.charAt(me),me++):(i=a,0===be&&ke(C)),i!==a?n=o=[o,i]:(me=n,n=a)):(me=n,n=a);else r=a;return t=r!==a?e.substring(t,me):r,be--,t===a&&(r=a,0===be&&ke(v)),t}function Me(){var t,r,n;return be++,t=me,47===e.charCodeAt(me)?(r="/",me++):(r=a,0===be&&ke(F)),r!==a&&(n=ze())!==a?(de=t,t=r=n):(me=t,t=a),be--,t===a&&(r=a,0===be&&ke(x)),t}function Ve(){var e,t,r,n;if(be++,e=me,$e()!==a)if((t=ze())!==a){for(r=[],n=Me();n!==a;)r.push(n),n=Me();r!==a?(de=e,e=function(e,t){return{stem:e,options:t}}(t,r)):(me=e,e=a)}else me=e,e=a;else me=e,e=a;return be--,e===a&&0===be&&ke(O),e}function Ze(){var t,r,n,o;if(t=me,39===e.charCodeAt(me)?(r="'",me++):(r=a,0===be&&ke(T)),r!==a){if(n=[],(o=Xe())===a&&(P.test(e.charAt(me))?(o=e.charAt(me),me++):(o=a,0===be&&ke(N))),o!==a)for(;o!==a;)n.push(o),(o=Xe())===a&&(P.test(e.charAt(me))?(o=e.charAt(me),me++):(o=a,0===be&&ke(N)));else n=a;n!==a?(39===e.charCodeAt(me)?(o="'",me++):(o=a,0===be&&ke(T)),o!==a?t=r=[r,n,o]:(me=t,t=a)):(me=t,t=a)}else me=t,t=a;if(t===a)if(t=[],(r=Xe())===a&&(L.test(e.charAt(me))?(r=e.charAt(me),me++):(r=a,0===be&&ke(R))),r!==a)for(;r!==a;)t.push(r),(r=Xe())===a&&(L.test(e.charAt(me))?(r=e.charAt(me),me++):(r=a,0===be&&ke(R)));else t=a;return t}function Be(){var t,r;if(t=[],z.test(e.charAt(me))?(r=e.charAt(me),me++):(r=a,0===be&&ke(M)),r!==a)for(;r!==a;)t.push(r),z.test(e.charAt(me))?(r=e.charAt(me),me++):(r=a,0===be&&ke(M));else t=a;return t}function Ue(){var t,r,n,o,i,u,c;return t=me,$e()!==a&&(r=tt())!==a&&$e()!==a?(123===e.charCodeAt(me)?(n="{",me++):(n=a,0===be&&ke(d)),n!==a?(de=me,rt.push("select"),void 0!==a&&(o=Se())!==a?(125===e.charCodeAt(me)?(i="}",me++):(i=a,0===be&&ke(y)),i!==a?(de=t,u=r,c=o,rt.pop(),t=E({id:u,value:c},at())):(me=t,t=a)):(me=t,t=a)):(me=t,t=a)):(me=t,t=a),t}function Ge(){var t,r,n,o,i,u,c;return t=me,$e()!==a&&(r=function s(){var t,r,n,o;return t=me,r=me,61===e.charCodeAt(me)?(n="=",me++):(n=a,0===be&&ke(Y)),n!==a&&(o=qe())!==a?r=n=[n,o]:(me=r,r=a),(t=r!==a?e.substring(t,me):r)===a&&(t=tt()),t}())!==a&&$e()!==a?(123===e.charCodeAt(me)?(n="{",me++):(n=a,0===be&&ke(d)),n!==a?(de=me,rt.push("plural"),void 0!==a&&(o=Se())!==a?(125===e.charCodeAt(me)?(i="}",me++):(i=a,0===be&&ke(y)),i!==a?(de=t,u=r,c=o,rt.pop(),t=E({id:u,value:c},at())):(me=t,t=a)):(me=t,t=a)):(me=t,t=a)):(me=t,t=a),t}function He(){var t;return be++,q.test(e.charAt(me))?(t=e.charAt(me),me++):(t=a,0===be&&ke(X)),be--,t===a&&0===be&&ke($),t}function Ye(){var t;return be++,K.test(e.charAt(me))?(t=e.charAt(me),me++):(t=a,0===be&&ke(Q)),be--,t===a&&0===be&&ke(J),t}function $e(){var t,r,n;for(be++,t=me,r=[],n=He();n!==a;)r.push(n),n=He();return t=r!==a?e.substring(t,me):r,be--,t===a&&(r=a,0===be&&ke(W)),t}function qe(){var t,r,n,o;return be++,t=me,45===e.charCodeAt(me)?(r="-",me++):(r=a,0===be&&ke(te)),r===a&&(r=null),r!==a&&(n=et())!==a?(de=t,t=r=(o=n)?r?-o:o:0):(me=t,t=a),be--,t===a&&(r=a,0===be&&ke(ee)),t}function Xe(){var t,r;return be++,t=me,"''"===e.substr(me,2)?(r="''",me+=2):(r=a,0===be&&ke(ne)),r!==a&&(de=t,r="'"),be--,(t=r)===a&&(r=a,0===be&&ke(re)),t}function Je(){var t,r,n,o,i,u;if(t=me,39===e.charCodeAt(me)?(r="'",me++):(r=a,0===be&&ke(T)),r!==a)if((n=function c(){var t,r,n,o,i;return t=me,r=me,e.length>me?(n=e.charAt(me),me++):(n=a,0===be&&ke(C)),n!==a?(de=me,(o=(o="<"===(i=n)||">"===i||"{"===i||"}"===i||nt()&&"#"===i)?void 0:a)!==a?r=n=[n,o]:(me=r,r=a)):(me=r,r=a),r!==a?e.substring(t,me):r}())!==a){for(o=me,i=[],"''"===e.substr(me,2)?(u="''",me+=2):(u=a,0===be&&ke(ne)),u===a&&(P.test(e.charAt(me))?(u=e.charAt(me),me++):(u=a,0===be&&ke(N)));u!==a;)i.push(u),"''"===e.substr(me,2)?(u="''",me+=2):(u=a,0===be&&ke(ne)),u===a&&(P.test(e.charAt(me))?(u=e.charAt(me),me++):(u=a,0===be&&ke(N)));(o=i!==a?e.substring(o,me):i)!==a?(39===e.charCodeAt(me)?(i="'",me++):(i=a,0===be&&ke(T)),i===a&&(i=null),i!==a?(de=t,t=r=n+o.replace("''","'")):(me=t,t=a)):(me=t,t=a)}else me=t,t=a;else me=t,t=a;return t}function Ke(){var t,r,n,o,i;return t=me,r=me,e.length>me?(n=e.charAt(me),me++):(n=a,0===be&&ke(C)),n!==a?(de=me,(o=(o=!("<"===(i=n)||"{"===i||nt()&&"#"===i||function u(){return rt.length>1}()&&"}"===i))?void 0:a)!==a?r=n=[n,o]:(me=r,r=a)):(me=r,r=a),r===a&&(10===e.charCodeAt(me)?(r="\n",me++):(r=a,0===be&&ke(ae))),r!==a?e.substring(t,me):r}function Qe(){var t,r;return be++,t=me,(r=et())===a&&(r=tt()),t=r!==a?e.substring(t,me):r,be--,t===a&&(r=a,0===be&&ke(oe)),t}function We(){var t,r;return be++,t=me,(r=et())===a&&(r=function n(){var t,r,n,o,i;if(be++,t=me,r=[],45===e.charCodeAt(me)?(n="-",me++):(n=a,0===be&&ke(te)),n===a&&(n=me,o=me,be++,(i=He())===a&&(i=Ye()),be--,i===a?o=void 0:(me=o,o=a),o!==a?(e.length>me?(i=e.charAt(me),me++):(i=a,0===be&&ke(C)),i!==a?n=o=[o,i]:(me=n,n=a)):(me=n,n=a)),n!==a)for(;n!==a;)r.push(n),45===e.charCodeAt(me)?(n="-",me++):(n=a,0===be&&ke(te)),n===a&&(n=me,o=me,be++,(i=He())===a&&(i=Ye()),be--,i===a?o=void 0:(me=o,o=a),o!==a?(e.length>me?(i=e.charAt(me),me++):(i=a,0===be&&ke(C)),i!==a?n=o=[o,i]:(me=n,n=a)):(me=n,n=a));else r=a;return t=r!==a?e.substring(t,me):r,be--,t===a&&(r=a,0===be&&ke(ge)),t}()),t=r!==a?e.substring(t,me):r,be--,t===a&&(r=a,0===be&&ke(ie)),t}function et(){var t,r,n,o,i;if(be++,t=me,48===e.charCodeAt(me)?(r="0",me++):(r=a,0===be&&ke(ce)),r!==a&&(de=t,r=0),(t=r)===a){if(t=me,r=me,se.test(e.charAt(me))?(n=e.charAt(me),me++):(n=a,0===be&&ke(le)),n!==a){for(o=[],fe.test(e.charAt(me))?(i=e.charAt(me),me++):(i=a,0===be&&ke(pe));i!==a;)o.push(i),fe.test(e.charAt(me))?(i=e.charAt(me),me++):(i=a,0===be&&ke(pe));o!==a?r=n=[n,o]:(me=r,r=a)}else me=r,r=a;r!==a&&(de=t,r=parseInt(r.join(""),10)),t=r}return be--,t===a&&(r=a,0===be&&ke(ue)),t}function tt(){var t,r,n,o,i;if(be++,t=me,r=[],n=me,o=me,be++,(i=He())===a&&(i=Ye()),be--,i===a?o=void 0:(me=o,o=a),o!==a?(e.length>me?(i=e.charAt(me),me++):(i=a,0===be&&ke(C)),i!==a?n=o=[o,i]:(me=n,n=a)):(me=n,n=a),n!==a)for(;n!==a;)r.push(n),n=me,o=me,be++,(i=He())===a&&(i=Ye()),be--,i===a?o=void 0:(me=o,o=a),o!==a?(e.length>me?(i=e.charAt(me),me++):(i=a,0===be&&ke(C)),i!==a?n=o=[o,i]:(me=n,n=a)):(me=n,n=a);else r=a;return t=r!==a?e.substring(t,me):r,be--,t===a&&(r=a,0===be&&ke(he)),t}var rt=["root"];function nt(){return"plural"===rt[rt.length-1]}function at(){return r&&r.captureLocation?{location:Ce()}:{}}var ot=r&&r.ignoreTag,it=r&&r.shouldParseSkeleton;if((n=i())!==a&&me===e.length)return n;throw n!==a&&me<e.length&&ke({type:"end"}),function ut(e,t,r){return new D(D.buildMessage(e,t),e,t,r)}(Ae,ve<e.length?e.charAt(ve):null,Ie(ve,ve<e.length?ve+1:ve))},I=/(^|[^\\])#/g,k=function(){return(k=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function _(e,t){t=k({normalizeHashtagInPlural:!0,shouldParseSkeleton:!0},t||{});var r=F(e,t);return t.normalizeHashtagInPlural&&function e(t){t.forEach((function(t){(s(t)||c(t))&&Object.keys(t.options).forEach((function(r){for(var a,o=t.options[r],i=-1,u=void 0,c=0;c<o.value.length;c++){var s=o.value[c];if(n(s)&&I.test(s.value)){i=c,u=s;break}}if(u){var l=u.value.replace(I,"$1{"+t.value+", number}"),f=F(l);(a=o.value).splice.apply(a,function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),a=0;for(t=0;t<r;t++)for(var o=arguments[t],i=0,u=o.length;i<u;i++,a++)n[a]=o[i];return n}([i,1],f))}e(o.value)}))}))}(r),r}function S(e,t,r,n){var a=function o(e){return null==e||"number"==typeof e||"boolean"==typeof e}(n)?n:r(n),i=t.get(a);return void 0===i&&(i=e.call(this,n),t.set(a,i)),i}function j(e,t,r){var n=Array.prototype.slice.call(arguments,3),a=r(n),o=t.get(a);return void 0===o&&(o=e.apply(this,n),t.set(a,o)),o}function T(e,t,r,n,a){return r.bind(t,e,n,a)}function P(e,t){return T(e,this,1===e.length?S:j,t.cache.create(),t.serializer)}function N(){return JSON.stringify(arguments)}function L(){this.cache=Object.create(null)}L.prototype.has=function(e){return e in this.cache},L.prototype.get=function(e){return this.cache[e]},L.prototype.set=function(e,t){this.cache[e]=t};var R={create:function e(){return new L}},z=function M(e,t){return(t&&t.strategy?t.strategy:P)(e,{cache:t&&t.cache?t.cache:R,serializer:t&&t.serializer?t.serializer:N})},V={variadic:function Z(e,t){return T(e,this,j,t.cache.create(),t.serializer)},monadic:function B(e,t){return T(e,this,S,t.cache.create(),t.serializer)}};z.strategies=V;var U,G=Object.freeze(Object.assign(Object.create(null),z,{default:z,strategies:V})),H=function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();(U=e.ErrorCode||(e.ErrorCode={})).MISSING_VALUE="MISSING_VALUE",U.INVALID_VALUE="INVALID_VALUE",U.MISSING_INTL_API="MISSING_INTL_API";var Y,$=function(e){function t(t,r,n){var a=e.call(this,t)||this;return a.code=r,a.originalMessage=n,a}return H(t,e),t.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},t}(Error),q=function(e){function t(t,r,n,a){return e.call(this,'Invalid values for "'+t+'": "'+r+'". Options are "'+Object.keys(n).join('", "')+'"',"INVALID_VALUE",a)||this}return H(t,e),t}($),X=function(e){function t(t,r,n){return e.call(this,'Value for "'+t+'" must be of type '+r,"INVALID_VALUE",n)||this}return H(t,e),t}($),J=function(e){function t(t,r){return e.call(this,'The intl string context variable "'+t+'" was not provided to the string "'+r+'"',"MISSING_VALUE",r)||this}return H(t,e),t}($);function K(e){return"function"==typeof e}function Q(e,t,r,g,m,d,y){if(1===e.length&&n(e[0]))return[{type:0,value:e[0].value}];for(var v=[],A=0,b=e;A<b.length;A++){var w=b[A];if(n(w))v.push({type:0,value:w.value});else if(l(w))"number"==typeof d&&v.push({type:0,value:r.getNumberFormat(t).format(d)});else{var C=w.value;if(!m||!(C in m))throw new J(C,y);var x=m[C];if(a(w))x&&"string"!=typeof x&&"number"!=typeof x||(x="string"==typeof x||"number"==typeof x?String(x):""),v.push({type:"string"==typeof x?0:1,value:x});else if(i(w)){var E="string"==typeof w.style?g.date[w.style]:h(w.style)?w.style.parsedOptions:void 0;v.push({type:0,value:r.getDateTimeFormat(t,E).format(x)})}else if(u(w))E="string"==typeof w.style?g.time[w.style]:h(w.style)?w.style.parsedOptions:void 0,v.push({type:0,value:r.getDateTimeFormat(t,E).format(x)});else if(o(w))E="string"==typeof w.style?g.number[w.style]:p(w.style)?w.style.parsedOptions:void 0,v.push({type:0,value:r.getNumberFormat(t,E).format(x)});else{if(f(w)){var D=w.children,F=w.value,O=m[F];if(!K(O))throw new X(F,"function",y);var I=O(Q(D,t,r,g,m,d).map((function(e){return e.value})));Array.isArray(I)||(I=[I]),v.push.apply(v,I.map((function(e){return{type:"string"==typeof e?0:1,value:e}})))}if(c(w)){if(!(k=w.options[x]||w.options.other))throw new q(w.value,x,Object.keys(w.options),y);v.push.apply(v,Q(k.value,t,r,g,m))}else if(s(w)){var k;if(!(k=w.options["="+x])){if(!Intl.PluralRules)throw new $('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',"MISSING_INTL_API",y);var _=r.getPluralRules(t,{type:w.pluralType}).select(x-(w.offset||0));k=w.options[_]||w.options.other}if(!k)throw new q(w.value,x,Object.keys(w.options),y);v.push.apply(v,Q(k.value,t,r,g,m,x-(w.offset||0)))}}}}return function S(e){return e.length<2?e:e.reduce((function(e,t){var r=e[e.length-1];return r&&0===r.type&&0===t.type?r.value+=t.value:e.push(t),e}),[])}(v)}(Y=e.PART_TYPE||(e.PART_TYPE={}))[Y.literal=0]="literal",Y[Y.object=1]="object";var W=function(){return(W=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)},ee=function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),a=0;for(t=0;t<r;t++)for(var o=arguments[t],i=0,u=o.length;i<u;i++,a++)n[a]=o[i];return n};function te(e){return{create:function(){return{has:function(t){return t in e},get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}var re=z||G,ne=function(){function e(t,r,n,a){var o=this;if(void 0===r&&(r=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=o.formatToParts(e);if(1===t.length)return t[0].value;var r=t.reduce((function(e,t){return e.length&&0===t.type&&"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 Q(o.ast,o.locales,o.formatters,o.formats,e,void 0,o.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{normalizeHashtagInPlural:!1,ignoreTag:null==a?void 0:a.ignoreTag})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=function i(e,t){return t?Object.keys(e).reduce((function(r,n){return r[n]=function a(e,t){return t?W(W(W({},e||{}),t||{}),Object.keys(e).reduce((function(r,n){return r[n]=W(W({},e[n]),t[n]||{}),r}),{})):e}(e[n],t[n]),r}),W({},e)):e}(e.formats,n),this.locales=r,this.formatters=a&&a.formatters||function u(e){return void 0===e&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:re((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,ee([void 0],t)))}),{cache:te(e.number),strategy:re.strategies.variadic}),getDateTimeFormat:re((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,ee([void 0],t)))}),{cache:te(e.dateTime),strategy:re.strategies.variadic}),getPluralRules:re((function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,ee([void 0],t)))}),{cache:te(e.pluralRules),strategy:re.strategies.variadic})}}(this.formatterCache)}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.__parse=_,e.formats={number:{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}();e.FormatError=$,e.IntlMessageFormat=ne,e.InvalidValueError=q,e.InvalidValueTypeError=X,e.MissingValueError=J,e.default=ne,e.formatToParts=Q,e.isFormatXMLElementFn=K,Object.defineProperty(e,"__esModule",{value:!0})}));

@@ -1,2 +0,2 @@

import { convertNumberSkeletonToNumberFormatOptions, isArgumentElement, isDateElement, isDateTimeSkeleton, isLiteralElement, isNumberElement, isNumberSkeleton, isPluralElement, isPoundElement, isSelectElement, isTimeElement, parseDateTimeSkeleton, isTagElement, } from 'intl-messageformat-parser';
import { isArgumentElement, isDateElement, isDateTimeSkeleton, isLiteralElement, isNumberElement, isNumberSkeleton, isPluralElement, isPoundElement, isSelectElement, isTimeElement, isTagElement, } from 'intl-messageformat-parser';
import { MissingValueError, InvalidValueError, FormatError, InvalidValueTypeError, } from './error';

@@ -89,3 +89,3 @@ export var PART_TYPE;

: isDateTimeSkeleton(el.style)
? parseDateTimeSkeleton(el.style.pattern)
? el.style.parsedOptions
: undefined;

@@ -104,3 +104,3 @@ result.push({

: isDateTimeSkeleton(el.style)
? parseDateTimeSkeleton(el.style.pattern)
? el.style.parsedOptions
: undefined;

@@ -119,3 +119,3 @@ result.push({

: isNumberSkeleton(el.style)
? convertNumberSkeletonToNumberFormatOptions(el.style.tokens)
? el.style.parsedOptions
: undefined;

@@ -122,0 +122,0 @@ result.push({

{
"name": "intl-messageformat",
"version": "9.2.5",
"version": "9.3.0",
"description": "Formats ICU Message strings with number, date, plural, and select placeholders to create localized messages.",

@@ -35,3 +35,3 @@ "keywords": [

"fast-memoize": "^2.5.2",
"intl-messageformat-parser": "^5.4.2"
"intl-messageformat-parser": "^5.5.0"
},

@@ -38,0 +38,0 @@ "sideEffects": false,

@@ -18,2 +18,21 @@ "use strict";

};
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
var __spreadArrays = (this && this.__spreadArrays) || function () {

@@ -29,3 +48,3 @@ for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;

var intl_messageformat_parser_1 = require("intl-messageformat-parser");
var memoize = require("fast-memoize");
var memoize = __importStar(require("fast-memoize"));
var formatters_1 = require("./formatters");

@@ -32,0 +51,0 @@ // -- MessageFormat --------------------------------------------------------

@@ -93,3 +93,3 @@ "use strict";

: intl_messageformat_parser_1.isDateTimeSkeleton(el.style)
? intl_messageformat_parser_1.parseDateTimeSkeleton(el.style.pattern)
? el.style.parsedOptions
: undefined;

@@ -108,3 +108,3 @@ result.push({

: intl_messageformat_parser_1.isDateTimeSkeleton(el.style)
? intl_messageformat_parser_1.parseDateTimeSkeleton(el.style.pattern)
? el.style.parsedOptions
: undefined;

@@ -123,3 +123,3 @@ result.push({

: intl_messageformat_parser_1.isNumberSkeleton(el.style)
? intl_messageformat_parser_1.convertNumberSkeletonToNumberFormatOptions(el.style.tokens)
? el.style.parsedOptions
: undefined;

@@ -126,0 +126,0 @@ result.push({

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc