@formatjs/intl-listformat 8.3.7 → 8.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../ecma402-abstract/CanonicalizeLocaleList.js","../../ecma262-abstract/ToString.js","../../ecma402-abstract/GetOption.js","../../ecma402-abstract/GetOptionsObject.js","../../../node_modules/.aspect_rules_js/@formatjs+fast-memoize@0.0.0/node_modules/@formatjs/fast-memoize/index.js","../../ecma402-abstract/utils.js","../../ecma402-abstract/PartitionPattern.js","../../ecma262-abstract/ToObject.js","../../ecma402-abstract/SupportedLocales.js","../index.ts"],"sourcesContent":["/**\n* http://ecma-international.org/ecma-402/7.0/index.html#sec-canonicalizelocalelist\n* @param locales\n*/\nexport function CanonicalizeLocaleList(locales) {\n\t// TODO\n\treturn Intl.getCanonicalLocales(locales);\n}\n","/**\n* https://tc39.es/ecma262/#sec-tostring\n*/\nexport function ToString(o) {\n\tif (typeof o === \"symbol\") {\n\t\tthrow TypeError(\"Cannot convert a Symbol value to a string\");\n\t}\n\treturn String(o);\n}\n","import { ToString } from \"#packages/ecma262-abstract/ToString.js\";\n/**\n* https://tc39.es/ecma402/#sec-getoption\n* @param opts\n* @param prop\n* @param type\n* @param values\n* @param fallback\n*/\nexport function GetOption(opts, prop, type, values, fallback) {\n\tif (typeof opts !== \"object\") {\n\t\tthrow new TypeError(\"Options must be an object\");\n\t}\n\tlet value = opts[prop];\n\tif (value !== undefined) {\n\t\tif (type !== \"boolean\" && type !== \"string\") {\n\t\t\tthrow new TypeError(\"invalid type\");\n\t\t}\n\t\tif (type === \"boolean\") {\n\t\t\tvalue = Boolean(value);\n\t\t}\n\t\tif (type === \"string\") {\n\t\t\tvalue = ToString(value);\n\t\t}\n\t\tif (values !== undefined && !values.filter((val) => val == value).length) {\n\t\t\tthrow new RangeError(`${value} is not within ${values.join(\", \")}`);\n\t\t}\n\t\treturn value;\n\t}\n\treturn fallback;\n}\n","/**\n* https://tc39.es/ecma402/#sec-getoptionsobject\n* @param options\n* @returns\n*/\nexport function GetOptionsObject(options) {\n\tif (typeof options === \"undefined\") {\n\t\treturn Object.create(null);\n\t}\n\tif (typeof options === \"object\") {\n\t\treturn options;\n\t}\n\tthrow new TypeError(\"Options must be an object\");\n}\n","//#region packages/fast-memoize/index.ts\nfunction memoize(fn, options) {\n\tconst cache = options && options.cache ? options.cache : cacheDefault;\n\tconst serializer = options && options.serializer ? options.serializer : serializerDefault;\n\treturn (options && options.strategy ? options.strategy : strategyDefault)(fn, {\n\t\tcache,\n\t\tserializer\n\t});\n}\nfunction isPrimitive(value) {\n\treturn value == null || typeof value === \"number\" || typeof value === \"boolean\";\n}\nfunction monadic(fn, cache, serializer, arg) {\n\tconst cacheKey = isPrimitive(arg) ? arg : serializer(arg);\n\tlet computedValue = cache.get(cacheKey);\n\tif (typeof computedValue === \"undefined\") {\n\t\tcomputedValue = fn.call(this, arg);\n\t\tcache.set(cacheKey, computedValue);\n\t}\n\treturn computedValue;\n}\nfunction variadic(fn, cache, serializer) {\n\tconst args = Array.prototype.slice.call(arguments, 3);\n\tconst cacheKey = serializer(args);\n\tlet computedValue = cache.get(cacheKey);\n\tif (typeof computedValue === \"undefined\") {\n\t\tcomputedValue = fn.apply(this, args);\n\t\tcache.set(cacheKey, computedValue);\n\t}\n\treturn computedValue;\n}\nfunction assemble(fn, context, strategy, cache, serialize) {\n\treturn strategy.bind(context, fn, cache, serialize);\n}\nfunction strategyDefault(fn, options) {\n\tconst strategy = fn.length === 1 ? monadic : variadic;\n\treturn assemble(fn, this, strategy, options.cache.create(), options.serializer);\n}\nfunction strategyVariadic(fn, options) {\n\treturn assemble(fn, this, variadic, options.cache.create(), options.serializer);\n}\nfunction strategyMonadic(fn, options) {\n\treturn assemble(fn, this, monadic, options.cache.create(), options.serializer);\n}\nconst serializerDefault = function() {\n\treturn JSON.stringify(arguments);\n};\nvar ObjectWithoutPrototypeCache = class {\n\tconstructor() {\n\t\tthis.cache = Object.create(null);\n\t}\n\tget(key) {\n\t\treturn this.cache[key];\n\t}\n\tset(key, value) {\n\t\tthis.cache[key] = value;\n\t}\n};\nconst cacheDefault = { create: function create() {\n\treturn new ObjectWithoutPrototypeCache();\n} };\nconst strategies = {\n\tvariadic: strategyVariadic,\n\tmonadic: strategyMonadic\n};\n//#endregion\nexport { memoize, strategies };\n\n//# sourceMappingURL=index.js.map","import { memoize, strategies } from \"@formatjs/fast-memoize\";\nexport function repeat(s, times) {\n\tif (typeof s.repeat === \"function\") {\n\t\treturn s.repeat(times);\n\t}\n\tconst arr = Array.from({ length: times });\n\tfor (let i = 0; i < arr.length; i++) {\n\t\tarr[i] = s;\n\t}\n\treturn arr.join(\"\");\n}\nexport function setInternalSlot(map, pl, field, value) {\n\tif (!map.get(pl)) {\n\t\tmap.set(pl, Object.create(null));\n\t}\n\tconst slots = map.get(pl);\n\tslots[field] = value;\n}\nexport function setMultiInternalSlots(map, pl, props) {\n\tfor (const k of Object.keys(props)) {\n\t\tsetInternalSlot(map, pl, k, props[k]);\n\t}\n}\nexport function getInternalSlot(map, pl, field) {\n\treturn getMultiInternalSlots(map, pl, field)[field];\n}\nexport function getMultiInternalSlots(map, pl, ...fields) {\n\tconst slots = map.get(pl);\n\tif (!slots) {\n\t\tthrow new TypeError(`${pl} InternalSlot has not been initialized`);\n\t}\n\treturn fields.reduce((all, f) => {\n\t\tall[f] = slots[f];\n\t\treturn all;\n\t}, Object.create(null));\n}\nexport function isLiteralPart(patternPart) {\n\treturn patternPart.type === \"literal\";\n}\n/*\n17 ECMAScript Standard Built-in Objects:\nEvery built-in Function object, including constructors, that is not\nidentified as an anonymous function has a name property whose value\nis a String.\n\nUnless otherwise specified, the name property of a built-in Function\nobject, if it exists, has the attributes { [[Writable]]: false,\n[[Enumerable]]: false, [[Configurable]]: true }.\n*/\nexport function defineProperty(target, name, { value }) {\n\tObject.defineProperty(target, name, {\n\t\tconfigurable: true,\n\t\tenumerable: false,\n\t\twritable: true,\n\t\tvalue\n\t});\n}\n/**\n* 7.3.5 CreateDataProperty\n* @param target\n* @param name\n* @param value\n*/\nexport function createDataProperty(target, name, value) {\n\tObject.defineProperty(target, name, {\n\t\tconfigurable: true,\n\t\tenumerable: true,\n\t\twritable: true,\n\t\tvalue\n\t});\n}\nexport const UNICODE_EXTENSION_SEQUENCE_REGEX = /-u(?:-[0-9a-z]{2,8})+/gi;\nexport function invariant(condition, message, Err = Error) {\n\tif (!condition) {\n\t\tthrow new Err(message);\n\t}\n}\nexport const createMemoizedNumberFormat = memoize((...args) => new Intl.NumberFormat(...args), { strategy: strategies.variadic });\nexport const createMemoizedPluralRules = memoize((...args) => new Intl.PluralRules(...args), { strategy: strategies.variadic });\nexport const createMemoizedLocale = memoize((...args) => new Intl.Locale(...args), { strategy: strategies.variadic });\nexport const createMemoizedListFormat = memoize((...args) => new Intl.ListFormat(...args), { strategy: strategies.variadic });\n","import { invariant } from \"#packages/ecma402-abstract/utils.js\";\n/**\n* Partition a pattern into a list of literals and placeholders\n* https://tc39.es/ecma402/#sec-partitionpattern\n* @param pattern\n*/\nexport function PartitionPattern(pattern) {\n\tconst result = [];\n\tlet beginIndex = pattern.indexOf(\"{\");\n\tlet endIndex = 0;\n\tlet nextIndex = 0;\n\tconst length = pattern.length;\n\twhile (beginIndex < pattern.length && beginIndex > -1) {\n\t\tendIndex = pattern.indexOf(\"}\", beginIndex);\n\t\tinvariant(endIndex > beginIndex, `Invalid pattern ${pattern}`);\n\t\tif (beginIndex > nextIndex) {\n\t\t\tresult.push({\n\t\t\t\ttype: \"literal\",\n\t\t\t\tvalue: pattern.substring(nextIndex, beginIndex)\n\t\t\t});\n\t\t}\n\t\tresult.push({\n\t\t\ttype: pattern.substring(beginIndex + 1, endIndex),\n\t\t\tvalue: undefined\n\t\t});\n\t\tnextIndex = endIndex + 1;\n\t\tbeginIndex = pattern.indexOf(\"{\", nextIndex);\n\t}\n\tif (nextIndex < length) {\n\t\tresult.push({\n\t\t\ttype: \"literal\",\n\t\t\tvalue: pattern.substring(nextIndex, length)\n\t\t});\n\t}\n\treturn result;\n}\n","/**\n* https://tc39.es/ecma262/#sec-toobject\n*/\nexport function ToObject(arg) {\n\tif (arg == null) {\n\t\tthrow new TypeError(\"undefined/null cannot be converted to object\");\n\t}\n\treturn Object(arg);\n}\n","import { LookupSupportedLocales } from \"@formatjs/intl-localematcher\";\nimport { ToObject } from \"#packages/ecma262-abstract/ToObject.js\";\nimport { GetOption } from \"#packages/ecma402-abstract/GetOption.js\";\n/**\n* https://tc39.es/ecma402/#sec-supportedlocales\n* @param availableLocales\n* @param requestedLocales\n* @param options\n*/\nexport function SupportedLocales(availableLocales, requestedLocales, options) {\n\tlet matcher = \"best fit\";\n\tif (options !== undefined) {\n\t\toptions = ToObject(options);\n\t\tmatcher = GetOption(options, \"localeMatcher\", \"string\", [\"lookup\", \"best fit\"], \"best fit\");\n\t}\n\tif (matcher === \"best fit\") {\n\t\treturn LookupSupportedLocales(Array.from(availableLocales), requestedLocales);\n\t}\n\treturn LookupSupportedLocales(Array.from(availableLocales), requestedLocales);\n}\n","import {CanonicalizeLocaleList} from '#packages/ecma402-abstract/CanonicalizeLocaleList.js'\nimport {GetOption} from '#packages/ecma402-abstract/GetOption.js'\nimport {GetOptionsObject} from '#packages/ecma402-abstract/GetOptionsObject.js'\nimport {PartitionPattern} from '#packages/ecma402-abstract/PartitionPattern.js'\nimport {SupportedLocales} from '#packages/ecma402-abstract/SupportedLocales.js'\nimport {\n type ListPatternData,\n type ListPatternFieldsData,\n type ListPatternLocaleData,\n} from '#packages/ecma402-abstract/types/list.js'\nimport {\n type LiteralPart,\n getInternalSlot,\n invariant,\n isLiteralPart,\n setInternalSlot,\n} from '#packages/ecma402-abstract/utils.js'\nimport {ResolveLocale} from '@formatjs/intl-localematcher'\n\nexport interface IntlListFormatOptions {\n /**\n * The locale matching algorithm to use.\n * Possible values are \"lookup\" and \"best fit\"; the default is \"best fit\".\n * For information about this option, see\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation.\n */\n localeMatcher?: 'best fit' | 'lookup'\n /**\n * The format of output message.\n * Possible values are :\n * - \"conjunction\" that stands for \"and\"-based lists (default, e.g., \"A, B, and C\")\n * - \"disjunction\" that stands for \"or\"-based lists (e.g., \"A, B, or C\").\n * - \"unit\" stands for lists of values with units (e.g., \"5 pounds, 12 ounces\").\n */\n type?: 'conjunction' | 'disjunction' | 'unit'\n /**\n * The length of the formatted message.\n * Possible values are:\n * - \"long\" (default, e.g., \"A, B, and C\");\n * - \"short\" (e.g., \"A, B, C\"), or\n * - \"narrow\" (e.g., \"A B C\").\n * When style is \"short\" or \"narrow\", \"unit\" is the only allowed value for the type option.\n */\n style?: 'long' | 'short' | 'narrow'\n}\n\nexport interface ResolvedIntlListFormatOptions {\n /**\n * A string with a BCP 47 language tag, or an array of such strings.\n * For the general form and interpretation of the locales argument,\n * see the [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation) page.\n */\n locale: string\n /**\n * The format of output message.\n * Possible values are :\n * - \"conjunction\" that stands for \"and\"-based lists (default, e.g., \"A, B, and C\")\n * - \"disjunction\" that stands for \"or\"-based lists (e.g., \"A, B, or C\").\n * - \"unit\" stands for lists of values with units (e.g., \"5 pounds, 12 ounces\").\n */\n type: 'conjunction' | 'disjunction' | 'unit'\n /**\n * The length of the formatted message.\n * Possible values are:\n * - \"long\" (default, e.g., \"A, B, and C\");\n * - \"short\" (e.g., \"A, B, C\"), or\n * - \"narrow\" (e.g., \"A B C\").\n * When style is \"short\" or \"narrow\", \"unit\" is the only allowed value for the type option.\n */\n style: 'long' | 'short' | 'narrow'\n}\n\nexport type Part<T = string> = LiteralPart | ElementPart | ElementPart<T>\n\nexport interface ElementPart<T = string> {\n type: 'element'\n value: T\n}\n\ninterface Placeable {\n type: string\n value: string\n}\n\ninterface ListFormatInternal {\n style: IntlListFormatOptions['style']\n type: IntlListFormatOptions['type']\n locale: string\n templatePair: string\n templateStart: string\n templateEnd: string\n templateMiddle: string\n initializedListFormat: boolean\n}\n\nfunction validateInstance(instance: any, method: string) {\n if (!(instance instanceof ListFormat)) {\n throw new TypeError(\n `Method Intl.ListFormat.prototype.${method} called on incompatible receiver ${String(\n instance\n )}`\n )\n }\n}\n\n/**\n * https://tc39.es/proposal-intl-list-format/#sec-createstringlistfromiterable\n * @param iterable list\n */\nfunction stringListFromIterable(iterable: Iterable<unknown>): string[] {\n if (typeof iterable !== 'object') return []\n const elements: string[] = []\n const iterator = iterable[Symbol.iterator]()\n let result: IteratorResult<unknown>\n while (true) {\n result = iterator.next()\n if (result.done) break\n if (typeof result.value !== 'string') {\n const nextValue = result.value\n throw new TypeError(`Iterable yielded ${nextValue} which is not a string`)\n }\n elements.push(result.value)\n }\n return elements\n}\n\nfunction createPartsFromList(\n internalSlotMap: WeakMap<ListFormat, ListFormatInternal>,\n lf: ListFormat,\n list: string[]\n) {\n const size = list.length\n if (size === 0) {\n return []\n }\n if (size === 2) {\n const pattern = getInternalSlot(internalSlotMap, lf, 'templatePair')\n const first = {type: 'element', value: list[0]}\n const second = {type: 'element', value: list[1]}\n return deconstructPattern(pattern, {'0': first, '1': second})\n }\n const last = {\n type: 'element',\n value: list[size - 1],\n }\n let parts: Placeable[] | Placeable = last\n let i = size - 2\n while (i >= 0) {\n let pattern\n if (i === 0) {\n pattern = getInternalSlot(internalSlotMap, lf, 'templateStart')\n } else if (i < size - 2) {\n pattern = getInternalSlot(internalSlotMap, lf, 'templateMiddle')\n } else {\n pattern = getInternalSlot(internalSlotMap, lf, 'templateEnd')\n }\n const head = {type: 'element', value: list[i]}\n parts = deconstructPattern(pattern, {'0': head, '1': parts})\n i--\n }\n return parts\n}\n\nfunction deconstructPattern(\n pattern: string,\n placeables: Record<string, Placeable | Placeable[]>\n) {\n const patternParts = PartitionPattern(pattern)\n const result: Placeable[] = []\n for (const patternPart of patternParts) {\n const {type: part} = patternPart\n if (isLiteralPart(patternPart)) {\n result.push({\n type: 'literal',\n value: patternPart.value,\n })\n } else {\n invariant(part in placeables, `${part} is missing from placables`)\n const subst = placeables[part]\n if (Array.isArray(subst)) {\n result.push(...subst)\n } else {\n result.push(subst)\n }\n }\n }\n return result\n}\n\nexport default class ListFormat {\n constructor(locales?: string | string[], options?: IntlListFormatOptions) {\n // test262/test/intl402/ListFormat/constructor/constructor/newtarget-undefined.js\n // Cannot use `new.target` bc of IE11 & TS transpiles it to something else\n const newTarget =\n this && this instanceof ListFormat ? this.constructor : void 0\n if (!newTarget) {\n throw new TypeError(\"Intl.ListFormat must be called with 'new'\")\n }\n setInternalSlot(\n ListFormat.__INTERNAL_SLOT_MAP__,\n this,\n 'initializedListFormat',\n true\n )\n const requestedLocales = CanonicalizeLocaleList(locales)\n const opt: any = Object.create(null)\n const opts = GetOptionsObject(options)\n const matcher = GetOption(\n opts,\n 'localeMatcher',\n 'string',\n ['best fit', 'lookup'],\n 'best fit'\n )\n opt.localeMatcher = matcher\n const {localeData} = ListFormat\n const r = ResolveLocale(\n ListFormat.availableLocales,\n requestedLocales,\n opt,\n ListFormat.relevantExtensionKeys,\n localeData,\n ListFormat.getDefaultLocale\n )\n setInternalSlot(ListFormat.__INTERNAL_SLOT_MAP__, this, 'locale', r.locale)\n const type: keyof ListPatternFieldsData = GetOption(\n opts,\n 'type',\n 'string',\n ['conjunction', 'disjunction', 'unit'],\n 'conjunction'\n )\n setInternalSlot(ListFormat.__INTERNAL_SLOT_MAP__, this, 'type', type)\n const style: keyof ListPatternData = GetOption(\n opts,\n 'style',\n 'string',\n ['long', 'short', 'narrow'],\n 'long'\n )\n setInternalSlot(ListFormat.__INTERNAL_SLOT_MAP__, this, 'style', style)\n const {dataLocale} = r\n const dataLocaleData = localeData[dataLocale]\n invariant(!!dataLocaleData, `Missing locale data for ${dataLocale}`)\n const dataLocaleTypes = dataLocaleData[type]\n const templates = dataLocaleTypes![style]!\n setInternalSlot(\n ListFormat.__INTERNAL_SLOT_MAP__,\n this,\n 'templatePair',\n templates.pair\n )\n setInternalSlot(\n ListFormat.__INTERNAL_SLOT_MAP__,\n this,\n 'templateStart',\n templates.start\n )\n setInternalSlot(\n ListFormat.__INTERNAL_SLOT_MAP__,\n this,\n 'templateMiddle',\n templates.middle\n )\n setInternalSlot(\n ListFormat.__INTERNAL_SLOT_MAP__,\n this,\n 'templateEnd',\n templates.end\n )\n }\n format(elements: Iterable<string>): string {\n validateInstance(this, 'format')\n let result = ''\n const parts = createPartsFromList(\n ListFormat.__INTERNAL_SLOT_MAP__,\n this,\n stringListFromIterable(elements)\n )\n if (!Array.isArray(parts)) {\n return parts.value\n }\n for (const p of parts) {\n result += p.value\n }\n return result\n }\n formatToParts(elements: Iterable<string>): Part[] {\n validateInstance(this, 'format')\n const parts = createPartsFromList(\n ListFormat.__INTERNAL_SLOT_MAP__,\n this,\n stringListFromIterable(elements)\n )\n if (!Array.isArray(parts)) {\n return [parts as Part]\n }\n const result: Part[] = []\n for (const part of parts) {\n result.push({...part} as Part)\n }\n return result\n }\n\n resolvedOptions(): ResolvedIntlListFormatOptions {\n validateInstance(this, 'resolvedOptions')\n return {\n locale: getInternalSlot(ListFormat.__INTERNAL_SLOT_MAP__, this, 'locale'),\n type: getInternalSlot(ListFormat.__INTERNAL_SLOT_MAP__, this, 'type')!,\n style: getInternalSlot(ListFormat.__INTERNAL_SLOT_MAP__, this, 'style')!,\n }\n }\n\n public static supportedLocalesOf(\n locales: string | string[],\n options?: Pick<IntlListFormatOptions, 'localeMatcher'>\n ): string[] {\n // test262/test/intl402/ListFormat/constructor/supportedLocalesOf/result-type.js\n return SupportedLocales(\n ListFormat.availableLocales,\n CanonicalizeLocaleList(locales),\n options\n )\n }\n\n public static __addLocaleData(...data: ListPatternLocaleData[]): void {\n for (const {data: d, locale} of data) {\n const minimizedLocale = new (Intl as any).Locale(locale)\n .minimize()\n .toString()\n ListFormat.localeData[locale] = ListFormat.localeData[minimizedLocale] = d\n ListFormat.availableLocales.add(minimizedLocale)\n ListFormat.availableLocales.add(locale)\n if (!ListFormat.__defaultLocale) {\n ListFormat.__defaultLocale = minimizedLocale\n }\n }\n }\n static localeData: Record<string, ListPatternFieldsData | undefined> = {}\n private static availableLocales = new Set<string>()\n private static __defaultLocale = ''\n private static getDefaultLocale() {\n return ListFormat.__defaultLocale\n }\n private static relevantExtensionKeys = []\n public static polyfilled = true\n private static readonly __INTERNAL_SLOT_MAP__ = new WeakMap<\n ListFormat,\n ListFormatInternal\n >()\n}\n\ntry {\n // IE11 does not have Symbol\n if (typeof Symbol !== 'undefined') {\n Object.defineProperty(ListFormat.prototype, Symbol.toStringTag, {\n value: 'Intl.ListFormat',\n writable: false,\n enumerable: false,\n configurable: true,\n })\n }\n\n // https://github.com/tc39/test262/blob/master/test/intl402/ListFormat/constructor/length.js\n Object.defineProperty(ListFormat.prototype.constructor, 'length', {\n value: 0,\n writable: false,\n enumerable: false,\n configurable: true,\n })\n // https://github.com/tc39/test262/blob/master/test/intl402/ListFormat/constructor/supportedLocalesOf/length.js\n Object.defineProperty(ListFormat.supportedLocalesOf, 'length', {\n value: 1,\n writable: false,\n enumerable: false,\n configurable: true,\n })\n} catch {\n // Meta fix so we're test262-compliant, not important\n}\n"],"x_google_ignoreList":[4],"mappings":";;;;;;AAIA,SAAgB,uBAAuB,SAAS;AAE/C,QAAO,KAAK,oBAAoB,QAAQ;;;;;;;ACHzC,SAAgB,SAAS,GAAG;AAC3B,KAAI,OAAO,MAAM,SAChB,OAAM,UAAU,4CAA4C;AAE7D,QAAO,OAAO,EAAE;;;;;;;;;;;;ACEjB,SAAgB,UAAU,MAAM,MAAM,MAAM,QAAQ,UAAU;AAC7D,KAAI,OAAO,SAAS,SACnB,OAAM,IAAI,UAAU,4BAA4B;CAEjD,IAAI,QAAQ,KAAK;AACjB,KAAI,UAAU,KAAA,GAAW;AACxB,MAAI,SAAS,aAAa,SAAS,SAClC,OAAM,IAAI,UAAU,eA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T,kBAAiD;AAC/C,mBAAiB,MAAM,kBAAkB;AACzC,SAAO;GACL,QAAQ,gBAAgB,WAAW,uBAAuB,MAAM,SAAS;GACzE,MAAM,gBAAgB,WAAW,uBAAuB,MAAM,OAAO;GACrE,OAAO,gBAAgB,WAAW,uBAAuB,MAAM,QAAQ;GACxE;;CAGH,OAAc,mBACZ,SACA,SACU;AAEV,SAAO,iBACL,WAAW,kBACX,uBAAuB,QAAQ,EAC/B,QACD;;CAGH,OAAc,gBAAgB,GAAG,MAAqC;AACpE,OAAK,MAAM,EAAC,MAAM,GAAG,YAAW,MAAM;GACpC,MAAM,kBAAkB,IAAK,KAAa,OAAO,OAAO,CACrD,UAAU,CACV,UAAU;AACb,cAAW,WAAW,UAAU,WAAW,WAAW,mBAAmB;AACzE,cAAW,iBAAiB,IAAI,gBAAgB;AAChD,cAAW,iBAAiB,IAAI,OAAO;AACvC,OAAI,CAAC,WAAW,gBACd,YAAW,kBAAkB;;;;oBAIoC,EAAE;;;0CACvC,IAAI,KAAa;;;yBAClB;;CACjC,OAAe,mBAAmB;AAChC,SAAO,WAAW;;;+BAEmB,EAAE;;;oBACd;;;+CACqB,IAAI,SAGjD;;;AAGL,IAAI;AAEF,KAAI,OAAO,WAAW,YACpB,QAAO,eAAe,WAAW,WAAW,OAAO,aAAa;EAC9D,OAAO;EACP,UAAU;EACV,YAAY;EACZ,cAAc;EACf,CAAC;AAIJ,QAAO,eAAe,WAAW,UAAU,aAAa,UAAU;EAChE,OAAO;EACP,UAAU;EACV,YAAY;EACZ,cAAc;EACf,CAAC;AAEF,QAAO,eAAe,WAAW,oBAAoB,UAAU;EAC7D,OAAO;EACP,UAAU;EACV,YAAY;EACZ,cAAc;EACf,CAAC;QACI"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../ecma402-abstract/CanonicalizeLocaleList.js","../../ecma262-abstract/ToString.js","../../ecma402-abstract/GetOption.js","../../ecma402-abstract/GetOptionsObject.js","../../../node_modules/.aspect_rules_js/@formatjs+fast-memoize@0.0.0/node_modules/@formatjs/fast-memoize/index.js","../../ecma402-abstract/utils.js","../../ecma402-abstract/PartitionPattern.js","../../ecma262-abstract/ToObject.js","../../ecma402-abstract/SupportedLocales.js","../index.ts"],"sourcesContent":["/**\n* http://ecma-international.org/ecma-402/7.0/index.html#sec-canonicalizelocalelist\n* @param locales\n*/\nexport function CanonicalizeLocaleList(locales) {\n\t// TODO\n\treturn Intl.getCanonicalLocales(locales);\n}\n","/**\n* https://tc39.es/ecma262/#sec-tostring\n*/\nexport function ToString(o) {\n\tif (typeof o === \"symbol\") {\n\t\tthrow TypeError(\"Cannot convert a Symbol value to a string\");\n\t}\n\treturn String(o);\n}\n","import { ToString } from \"#packages/ecma262-abstract/ToString.js\";\n/**\n* https://tc39.es/ecma402/#sec-getoption\n* @param opts\n* @param prop\n* @param type\n* @param values\n* @param fallback\n*/\nexport function GetOption(opts, prop, type, values, fallback) {\n\tif (typeof opts !== \"object\") {\n\t\tthrow new TypeError(\"Options must be an object\");\n\t}\n\tlet value = opts[prop];\n\tif (value !== undefined) {\n\t\tif (type !== \"boolean\" && type !== \"string\") {\n\t\t\tthrow new TypeError(\"invalid type\");\n\t\t}\n\t\tif (type === \"boolean\") {\n\t\t\tvalue = Boolean(value);\n\t\t}\n\t\tif (type === \"string\") {\n\t\t\tvalue = ToString(value);\n\t\t}\n\t\tif (values !== undefined && !values.filter((val) => val == value).length) {\n\t\t\tthrow new RangeError(`${value} is not within ${values.join(\", \")}`);\n\t\t}\n\t\treturn value;\n\t}\n\treturn fallback;\n}\n","/**\n* https://tc39.es/ecma402/#sec-getoptionsobject\n* @param options\n* @returns\n*/\nexport function GetOptionsObject(options) {\n\tif (typeof options === \"undefined\") {\n\t\treturn Object.create(null);\n\t}\n\tif (typeof options === \"object\") {\n\t\treturn options;\n\t}\n\tthrow new TypeError(\"Options must be an object\");\n}\n","//#region packages/fast-memoize/index.ts\nfunction memoize(fn, options) {\n\tconst cache = options && options.cache ? options.cache : cacheDefault;\n\tconst serializer = options && options.serializer ? options.serializer : serializerDefault;\n\treturn (options && options.strategy ? options.strategy : strategyDefault)(fn, {\n\t\tcache,\n\t\tserializer\n\t});\n}\nfunction isPrimitive(value) {\n\treturn value == null || typeof value === \"number\" || typeof value === \"boolean\";\n}\nfunction monadic(fn, cache, serializer, arg) {\n\tconst cacheKey = isPrimitive(arg) ? arg : serializer(arg);\n\tlet computedValue = cache.get(cacheKey);\n\tif (typeof computedValue === \"undefined\") {\n\t\tcomputedValue = fn.call(this, arg);\n\t\tcache.set(cacheKey, computedValue);\n\t}\n\treturn computedValue;\n}\nfunction variadic(fn, cache, serializer) {\n\tconst args = Array.prototype.slice.call(arguments, 3);\n\tconst cacheKey = serializer(args);\n\tlet computedValue = cache.get(cacheKey);\n\tif (typeof computedValue === \"undefined\") {\n\t\tcomputedValue = fn.apply(this, args);\n\t\tcache.set(cacheKey, computedValue);\n\t}\n\treturn computedValue;\n}\nfunction assemble(fn, context, strategy, cache, serialize) {\n\treturn strategy.bind(context, fn, cache, serialize);\n}\nfunction strategyDefault(fn, options) {\n\tconst strategy = fn.length === 1 ? monadic : variadic;\n\treturn assemble(fn, this, strategy, options.cache.create(), options.serializer);\n}\nfunction strategyVariadic(fn, options) {\n\treturn assemble(fn, this, variadic, options.cache.create(), options.serializer);\n}\nfunction strategyMonadic(fn, options) {\n\treturn assemble(fn, this, monadic, options.cache.create(), options.serializer);\n}\nconst serializerDefault = function() {\n\treturn JSON.stringify(arguments);\n};\nvar ObjectWithoutPrototypeCache = class {\n\tconstructor() {\n\t\tthis.cache = Object.create(null);\n\t}\n\tget(key) {\n\t\treturn this.cache[key];\n\t}\n\tset(key, value) {\n\t\tthis.cache[key] = value;\n\t}\n};\nconst cacheDefault = { create: function create() {\n\treturn new ObjectWithoutPrototypeCache();\n} };\nconst strategies = {\n\tvariadic: strategyVariadic,\n\tmonadic: strategyMonadic\n};\n//#endregion\nexport { memoize, strategies };\n\n//# sourceMappingURL=index.js.map","import { memoize, strategies } from \"@formatjs/fast-memoize\";\nexport function repeat(s, times) {\n\tif (typeof s.repeat === \"function\") {\n\t\treturn s.repeat(times);\n\t}\n\tconst arr = Array.from({ length: times });\n\tfor (let i = 0; i < arr.length; i++) {\n\t\tarr[i] = s;\n\t}\n\treturn arr.join(\"\");\n}\nexport function setInternalSlot(map, pl, field, value) {\n\tif (!map.get(pl)) {\n\t\tmap.set(pl, Object.create(null));\n\t}\n\tconst slots = map.get(pl);\n\tslots[field] = value;\n}\nexport function setMultiInternalSlots(map, pl, props) {\n\tfor (const k of Object.keys(props)) {\n\t\tsetInternalSlot(map, pl, k, props[k]);\n\t}\n}\nexport function getInternalSlot(map, pl, field) {\n\treturn getMultiInternalSlots(map, pl, field)[field];\n}\nexport function getMultiInternalSlots(map, pl, ...fields) {\n\tconst slots = map.get(pl);\n\tif (!slots) {\n\t\tthrow new TypeError(`${pl} InternalSlot has not been initialized`);\n\t}\n\treturn fields.reduce((all, f) => {\n\t\tall[f] = slots[f];\n\t\treturn all;\n\t}, Object.create(null));\n}\nexport function isLiteralPart(patternPart) {\n\treturn patternPart.type === \"literal\";\n}\n/*\n17 ECMAScript Standard Built-in Objects:\nEvery built-in Function object, including constructors, that is not\nidentified as an anonymous function has a name property whose value\nis a String.\n\nUnless otherwise specified, the name property of a built-in Function\nobject, if it exists, has the attributes { [[Writable]]: false,\n[[Enumerable]]: false, [[Configurable]]: true }.\n*/\nexport function defineProperty(target, name, { value }) {\n\tObject.defineProperty(target, name, {\n\t\tconfigurable: true,\n\t\tenumerable: false,\n\t\twritable: true,\n\t\tvalue\n\t});\n}\nexport function ensureIntl() {\n\tif (typeof Intl === \"undefined\") {\n\t\tObject.defineProperty(globalThis, \"Intl\", {\n\t\t\tconfigurable: true,\n\t\t\tenumerable: false,\n\t\t\twritable: true,\n\t\t\tvalue: {}\n\t\t});\n\t}\n\treturn Intl;\n}\n/**\n* 7.3.5 CreateDataProperty\n* @param target\n* @param name\n* @param value\n*/\nexport function createDataProperty(target, name, value) {\n\tObject.defineProperty(target, name, {\n\t\tconfigurable: true,\n\t\tenumerable: true,\n\t\twritable: true,\n\t\tvalue\n\t});\n}\nexport const UNICODE_EXTENSION_SEQUENCE_REGEX = /-u(?:-[0-9a-z]{2,8})+/gi;\nexport function invariant(condition, message, Err = Error) {\n\tif (!condition) {\n\t\tthrow new Err(message);\n\t}\n}\nexport const createMemoizedNumberFormat = memoize((...args) => new Intl.NumberFormat(...args), { strategy: strategies.variadic });\nexport const createMemoizedPluralRules = memoize((...args) => new Intl.PluralRules(...args), { strategy: strategies.variadic });\nexport const createMemoizedLocale = memoize((...args) => new Intl.Locale(...args), { strategy: strategies.variadic });\nexport const createMemoizedListFormat = memoize((...args) => new Intl.ListFormat(...args), { strategy: strategies.variadic });\n","import { invariant } from \"#packages/ecma402-abstract/utils.js\";\n/**\n* Partition a pattern into a list of literals and placeholders\n* https://tc39.es/ecma402/#sec-partitionpattern\n* @param pattern\n*/\nexport function PartitionPattern(pattern) {\n\tconst result = [];\n\tlet beginIndex = pattern.indexOf(\"{\");\n\tlet endIndex = 0;\n\tlet nextIndex = 0;\n\tconst length = pattern.length;\n\twhile (beginIndex < pattern.length && beginIndex > -1) {\n\t\tendIndex = pattern.indexOf(\"}\", beginIndex);\n\t\tinvariant(endIndex > beginIndex, `Invalid pattern ${pattern}`);\n\t\tif (beginIndex > nextIndex) {\n\t\t\tresult.push({\n\t\t\t\ttype: \"literal\",\n\t\t\t\tvalue: pattern.substring(nextIndex, beginIndex)\n\t\t\t});\n\t\t}\n\t\tresult.push({\n\t\t\ttype: pattern.substring(beginIndex + 1, endIndex),\n\t\t\tvalue: undefined\n\t\t});\n\t\tnextIndex = endIndex + 1;\n\t\tbeginIndex = pattern.indexOf(\"{\", nextIndex);\n\t}\n\tif (nextIndex < length) {\n\t\tresult.push({\n\t\t\ttype: \"literal\",\n\t\t\tvalue: pattern.substring(nextIndex, length)\n\t\t});\n\t}\n\treturn result;\n}\n","/**\n* https://tc39.es/ecma262/#sec-toobject\n*/\nexport function ToObject(arg) {\n\tif (arg == null) {\n\t\tthrow new TypeError(\"undefined/null cannot be converted to object\");\n\t}\n\treturn Object(arg);\n}\n","import { LookupSupportedLocales } from \"@formatjs/intl-localematcher\";\nimport { ToObject } from \"#packages/ecma262-abstract/ToObject.js\";\nimport { GetOption } from \"#packages/ecma402-abstract/GetOption.js\";\n/**\n* https://tc39.es/ecma402/#sec-supportedlocales\n* @param availableLocales\n* @param requestedLocales\n* @param options\n*/\nexport function SupportedLocales(availableLocales, requestedLocales, options) {\n\tlet matcher = \"best fit\";\n\tif (options !== undefined) {\n\t\toptions = ToObject(options);\n\t\tmatcher = GetOption(options, \"localeMatcher\", \"string\", [\"lookup\", \"best fit\"], \"best fit\");\n\t}\n\tif (matcher === \"best fit\") {\n\t\treturn LookupSupportedLocales(Array.from(availableLocales), requestedLocales);\n\t}\n\treturn LookupSupportedLocales(Array.from(availableLocales), requestedLocales);\n}\n","import {CanonicalizeLocaleList} from '#packages/ecma402-abstract/CanonicalizeLocaleList.js'\nimport {GetOption} from '#packages/ecma402-abstract/GetOption.js'\nimport {GetOptionsObject} from '#packages/ecma402-abstract/GetOptionsObject.js'\nimport {PartitionPattern} from '#packages/ecma402-abstract/PartitionPattern.js'\nimport {SupportedLocales} from '#packages/ecma402-abstract/SupportedLocales.js'\nimport {\n type ListPatternData,\n type ListPatternFieldsData,\n type ListPatternLocaleData,\n} from '#packages/ecma402-abstract/types/list.js'\nimport {\n type LiteralPart,\n getInternalSlot,\n invariant,\n isLiteralPart,\n setInternalSlot,\n} from '#packages/ecma402-abstract/utils.js'\nimport {ResolveLocale} from '@formatjs/intl-localematcher'\n\nexport interface IntlListFormatOptions {\n /**\n * The locale matching algorithm to use.\n * Possible values are \"lookup\" and \"best fit\"; the default is \"best fit\".\n * For information about this option, see\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation.\n */\n localeMatcher?: 'best fit' | 'lookup'\n /**\n * The format of output message.\n * Possible values are :\n * - \"conjunction\" that stands for \"and\"-based lists (default, e.g., \"A, B, and C\")\n * - \"disjunction\" that stands for \"or\"-based lists (e.g., \"A, B, or C\").\n * - \"unit\" stands for lists of values with units (e.g., \"5 pounds, 12 ounces\").\n */\n type?: 'conjunction' | 'disjunction' | 'unit'\n /**\n * The length of the formatted message.\n * Possible values are:\n * - \"long\" (default, e.g., \"A, B, and C\");\n * - \"short\" (e.g., \"A, B, C\"), or\n * - \"narrow\" (e.g., \"A B C\").\n * When style is \"short\" or \"narrow\", \"unit\" is the only allowed value for the type option.\n */\n style?: 'long' | 'short' | 'narrow'\n}\n\nexport interface ResolvedIntlListFormatOptions {\n /**\n * A string with a BCP 47 language tag, or an array of such strings.\n * For the general form and interpretation of the locales argument,\n * see the [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation) page.\n */\n locale: string\n /**\n * The format of output message.\n * Possible values are :\n * - \"conjunction\" that stands for \"and\"-based lists (default, e.g., \"A, B, and C\")\n * - \"disjunction\" that stands for \"or\"-based lists (e.g., \"A, B, or C\").\n * - \"unit\" stands for lists of values with units (e.g., \"5 pounds, 12 ounces\").\n */\n type: 'conjunction' | 'disjunction' | 'unit'\n /**\n * The length of the formatted message.\n * Possible values are:\n * - \"long\" (default, e.g., \"A, B, and C\");\n * - \"short\" (e.g., \"A, B, C\"), or\n * - \"narrow\" (e.g., \"A B C\").\n * When style is \"short\" or \"narrow\", \"unit\" is the only allowed value for the type option.\n */\n style: 'long' | 'short' | 'narrow'\n}\n\nexport type Part<T = string> = LiteralPart | ElementPart | ElementPart<T>\n\nexport interface ElementPart<T = string> {\n type: 'element'\n value: T\n}\n\ninterface Placeable {\n type: string\n value: string\n}\n\ninterface ListFormatInternal {\n style: IntlListFormatOptions['style']\n type: IntlListFormatOptions['type']\n locale: string\n templatePair: string\n templateStart: string\n templateEnd: string\n templateMiddle: string\n initializedListFormat: boolean\n}\n\nfunction validateInstance(instance: any, method: string) {\n if (!(instance instanceof ListFormat)) {\n throw new TypeError(\n `Method Intl.ListFormat.prototype.${method} called on incompatible receiver ${String(\n instance\n )}`\n )\n }\n}\n\n/**\n * https://tc39.es/proposal-intl-list-format/#sec-createstringlistfromiterable\n * @param iterable list\n */\nfunction stringListFromIterable(iterable: Iterable<unknown>): string[] {\n if (typeof iterable !== 'object') return []\n const elements: string[] = []\n const iterator = iterable[Symbol.iterator]()\n let result: IteratorResult<unknown>\n while (true) {\n result = iterator.next()\n if (result.done) break\n if (typeof result.value !== 'string') {\n const nextValue = result.value\n throw new TypeError(`Iterable yielded ${nextValue} which is not a string`)\n }\n elements.push(result.value)\n }\n return elements\n}\n\nfunction createPartsFromList(\n internalSlotMap: WeakMap<ListFormat, ListFormatInternal>,\n lf: ListFormat,\n list: string[]\n) {\n const size = list.length\n if (size === 0) {\n return []\n }\n if (size === 2) {\n const pattern = getInternalSlot(internalSlotMap, lf, 'templatePair')\n const first = {type: 'element', value: list[0]}\n const second = {type: 'element', value: list[1]}\n return deconstructPattern(pattern, {'0': first, '1': second})\n }\n const last = {\n type: 'element',\n value: list[size - 1],\n }\n let parts: Placeable[] | Placeable = last\n let i = size - 2\n while (i >= 0) {\n let pattern\n if (i === 0) {\n pattern = getInternalSlot(internalSlotMap, lf, 'templateStart')\n } else if (i < size - 2) {\n pattern = getInternalSlot(internalSlotMap, lf, 'templateMiddle')\n } else {\n pattern = getInternalSlot(internalSlotMap, lf, 'templateEnd')\n }\n const head = {type: 'element', value: list[i]}\n parts = deconstructPattern(pattern, {'0': head, '1': parts})\n i--\n }\n return parts\n}\n\nfunction deconstructPattern(\n pattern: string,\n placeables: Record<string, Placeable | Placeable[]>\n) {\n const patternParts = PartitionPattern(pattern)\n const result: Placeable[] = []\n for (const patternPart of patternParts) {\n const {type: part} = patternPart\n if (isLiteralPart(patternPart)) {\n result.push({\n type: 'literal',\n value: patternPart.value,\n })\n } else {\n invariant(part in placeables, `${part} is missing from placables`)\n const subst = placeables[part]\n if (Array.isArray(subst)) {\n result.push(...subst)\n } else {\n result.push(subst)\n }\n }\n }\n return result\n}\n\nexport default class ListFormat {\n constructor(locales?: string | string[], options?: IntlListFormatOptions) {\n // test262/test/intl402/ListFormat/constructor/constructor/newtarget-undefined.js\n // Cannot use `new.target` bc of IE11 & TS transpiles it to something else\n const newTarget =\n this && this instanceof ListFormat ? this.constructor : void 0\n if (!newTarget) {\n throw new TypeError(\"Intl.ListFormat must be called with 'new'\")\n }\n setInternalSlot(\n ListFormat.__INTERNAL_SLOT_MAP__,\n this,\n 'initializedListFormat',\n true\n )\n const requestedLocales = CanonicalizeLocaleList(locales)\n const opt: any = Object.create(null)\n const opts = GetOptionsObject(options)\n const matcher = GetOption(\n opts,\n 'localeMatcher',\n 'string',\n ['best fit', 'lookup'],\n 'best fit'\n )\n opt.localeMatcher = matcher\n const {localeData} = ListFormat\n const r = ResolveLocale(\n ListFormat.availableLocales,\n requestedLocales,\n opt,\n ListFormat.relevantExtensionKeys,\n localeData,\n ListFormat.getDefaultLocale\n )\n setInternalSlot(ListFormat.__INTERNAL_SLOT_MAP__, this, 'locale', r.locale)\n const type: keyof ListPatternFieldsData = GetOption(\n opts,\n 'type',\n 'string',\n ['conjunction', 'disjunction', 'unit'],\n 'conjunction'\n )\n setInternalSlot(ListFormat.__INTERNAL_SLOT_MAP__, this, 'type', type)\n const style: keyof ListPatternData = GetOption(\n opts,\n 'style',\n 'string',\n ['long', 'short', 'narrow'],\n 'long'\n )\n setInternalSlot(ListFormat.__INTERNAL_SLOT_MAP__, this, 'style', style)\n const {dataLocale} = r\n const dataLocaleData = localeData[dataLocale]\n invariant(!!dataLocaleData, `Missing locale data for ${dataLocale}`)\n const dataLocaleTypes = dataLocaleData[type]\n const templates = dataLocaleTypes![style]!\n setInternalSlot(\n ListFormat.__INTERNAL_SLOT_MAP__,\n this,\n 'templatePair',\n templates.pair\n )\n setInternalSlot(\n ListFormat.__INTERNAL_SLOT_MAP__,\n this,\n 'templateStart',\n templates.start\n )\n setInternalSlot(\n ListFormat.__INTERNAL_SLOT_MAP__,\n this,\n 'templateMiddle',\n templates.middle\n )\n setInternalSlot(\n ListFormat.__INTERNAL_SLOT_MAP__,\n this,\n 'templateEnd',\n templates.end\n )\n }\n format(elements: Iterable<string>): string {\n validateInstance(this, 'format')\n let result = ''\n const parts = createPartsFromList(\n ListFormat.__INTERNAL_SLOT_MAP__,\n this,\n stringListFromIterable(elements)\n )\n if (!Array.isArray(parts)) {\n return parts.value\n }\n for (const p of parts) {\n result += p.value\n }\n return result\n }\n formatToParts(elements: Iterable<string>): Part[] {\n validateInstance(this, 'format')\n const parts = createPartsFromList(\n ListFormat.__INTERNAL_SLOT_MAP__,\n this,\n stringListFromIterable(elements)\n )\n if (!Array.isArray(parts)) {\n return [parts as Part]\n }\n const result: Part[] = []\n for (const part of parts) {\n result.push({...part} as Part)\n }\n return result\n }\n\n resolvedOptions(): ResolvedIntlListFormatOptions {\n validateInstance(this, 'resolvedOptions')\n return {\n locale: getInternalSlot(ListFormat.__INTERNAL_SLOT_MAP__, this, 'locale'),\n type: getInternalSlot(ListFormat.__INTERNAL_SLOT_MAP__, this, 'type')!,\n style: getInternalSlot(ListFormat.__INTERNAL_SLOT_MAP__, this, 'style')!,\n }\n }\n\n public static supportedLocalesOf(\n locales: string | string[],\n options?: Pick<IntlListFormatOptions, 'localeMatcher'>\n ): string[] {\n // test262/test/intl402/ListFormat/constructor/supportedLocalesOf/result-type.js\n return SupportedLocales(\n ListFormat.availableLocales,\n CanonicalizeLocaleList(locales),\n options\n )\n }\n\n public static __addLocaleData(...data: ListPatternLocaleData[]): void {\n for (const {data: d, locale} of data) {\n const minimizedLocale = new (Intl as any).Locale(locale)\n .minimize()\n .toString()\n ListFormat.localeData[locale] = ListFormat.localeData[minimizedLocale] = d\n ListFormat.availableLocales.add(minimizedLocale)\n ListFormat.availableLocales.add(locale)\n if (!ListFormat.__defaultLocale) {\n ListFormat.__defaultLocale = minimizedLocale\n }\n }\n }\n static localeData: Record<string, ListPatternFieldsData | undefined> = {}\n private static availableLocales = new Set<string>()\n private static __defaultLocale = ''\n private static getDefaultLocale() {\n return ListFormat.__defaultLocale\n }\n private static relevantExtensionKeys = []\n public static polyfilled = true\n private static readonly __INTERNAL_SLOT_MAP__ = new WeakMap<\n ListFormat,\n ListFormatInternal\n >()\n}\n\ntry {\n // IE11 does not have Symbol\n if (typeof Symbol !== 'undefined') {\n Object.defineProperty(ListFormat.prototype, Symbol.toStringTag, {\n value: 'Intl.ListFormat',\n writable: false,\n enumerable: false,\n configurable: true,\n })\n }\n\n // https://github.com/tc39/test262/blob/master/test/intl402/ListFormat/constructor/length.js\n Object.defineProperty(ListFormat.prototype.constructor, 'length', {\n value: 0,\n writable: false,\n enumerable: false,\n configurable: true,\n })\n // https://github.com/tc39/test262/blob/master/test/intl402/ListFormat/constructor/supportedLocalesOf/length.js\n Object.defineProperty(ListFormat.supportedLocalesOf, 'length', {\n value: 1,\n writable: false,\n enumerable: false,\n configurable: true,\n })\n} catch {\n // Meta fix so we're test262-compliant, not important\n}\n"],"x_google_ignoreList":[4],"mappings":";;;;;;AAIA,SAAgB,uBAAuB,SAAS;CAE/C,OAAO,KAAK,oBAAoB,QAAQ;;;;;;;ACHzC,SAAgB,SAAS,GAAG;CAC3B,IAAI,OAAO,MAAM,UAChB,MAAM,UAAU,4CAA4C;CAE7D,OAAO,OAAO,EAAE;;;;;;;;;;;;ACEjB,SAAgB,UAAU,MAAM,MAAM,MAAM,QAAQ,UAAU;CAC7D,IAAI,OAAO,SAAS,UACnB,MAAM,IAAI,UAAU,4BAA4B;CAEjD,IAAI,QAAQ,KAAK;CACjB,IAAI,UAAU,KAAA,GAAW;EACxB,IAAI,SAAS,aAAa,SAAS,UAClC,MAAM,IAAI,UAAU,eAAe;EAEpC,IAAI,SAAS,WACZ,QAAQ,QAAQ,MAAM;EAEvB,IAAI,SAAS,UACZ,QAAQ,SAAS,MAAM;EAExB,IAAI,WAAW,KAAA,KAAa,CAAC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,gBAAgB,WAAW,uBAAuB,MAAM,OAAO;GACrE,OAAO,gBAAgB,WAAW,uBAAuB,MAAM,QAAQ;GACxE;;CAGH,OAAc,mBACZ,SACA,SACU;EAEV,OAAO,iBACL,WAAW,kBACX,uBAAuB,QAAQ,EAC/B,QACD;;CAGH,OAAc,gBAAgB,GAAG,MAAqC;EACpE,KAAK,MAAM,EAAC,MAAM,GAAG,YAAW,MAAM;GACpC,MAAM,kBAAkB,IAAK,KAAa,OAAO,OAAO,CACrD,UAAU,CACV,UAAU;GACb,WAAW,WAAW,UAAU,WAAW,WAAW,mBAAmB;GACzE,WAAW,iBAAiB,IAAI,gBAAgB;GAChD,WAAW,iBAAiB,IAAI,OAAO;GACvC,IAAI,CAAC,WAAW,iBACd,WAAW,kBAAkB;;;;oBAIoC,EAAE;;;0CACvC,IAAI,KAAa;;;yBAClB;;CACjC,OAAe,mBAAmB;EAChC,OAAO,WAAW;;;+BAEmB,EAAE;;;oBACd;;;+CACqB,IAAI,SAGjD;;;AAGL,IAAI;CAEF,IAAI,OAAO,WAAW,aACpB,OAAO,eAAe,WAAW,WAAW,OAAO,aAAa;EAC9D,OAAO;EACP,UAAU;EACV,YAAY;EACZ,cAAc;EACf,CAAC;CAIJ,OAAO,eAAe,WAAW,UAAU,aAAa,UAAU;EAChE,OAAO;EACP,UAAU;EACV,YAAY;EACZ,cAAc;EACf,CAAC;CAEF,OAAO,eAAe,WAAW,oBAAoB,UAAU;EAC7D,OAAO;EACP,UAAU;EACV,YAAY;EACZ,cAAc;EACf,CAAC;QACI"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@formatjs/intl-listformat",
3
3
  "description": "Formats JS list in a i18n-safe way",
4
- "version": "8.3.7",
4
+ "version": "8.3.8",
5
5
  "license": "MIT",
6
6
  "author": "Long Ho <holevietlong@gmail.com>",
7
7
  "type": "module",
@@ -18,8 +18,8 @@
18
18
  "@formatjs/intl-localematcher": "0.8.8"
19
19
  },
20
20
  "devDependencies": {
21
- "@formatjs/intl-locale": "5.3.7",
22
- "@formatjs/intl-getcanonicallocales": "3.2.8"
21
+ "@formatjs/intl-getcanonicallocales": "3.2.9",
22
+ "@formatjs/intl-locale": "5.3.8"
23
23
  },
24
24
  "bugs": "https://github.com/formatjs/formatjs/issues",
25
25
  "gitHead": "a7842673d8ad205171ad7c8cb8bb2f318b427c0c",
package/polyfill-force.js CHANGED
@@ -137,6 +137,23 @@ function getMultiInternalSlots(map, pl, ...fields) {
137
137
  function isLiteralPart(patternPart) {
138
138
  return patternPart.type === "literal";
139
139
  }
140
+ function defineProperty(target, name, { value }) {
141
+ Object.defineProperty(target, name, {
142
+ configurable: true,
143
+ enumerable: false,
144
+ writable: true,
145
+ value
146
+ });
147
+ }
148
+ function ensureIntl() {
149
+ if (typeof Intl === "undefined") Object.defineProperty(globalThis, "Intl", {
150
+ configurable: true,
151
+ enumerable: false,
152
+ writable: true,
153
+ value: {}
154
+ });
155
+ return Intl;
156
+ }
140
157
  function invariant(condition, message, Err = Error) {
141
158
  if (!condition) throw new Err(message);
142
159
  }
@@ -393,12 +410,7 @@ try {
393
410
  } catch {}
394
411
  //#endregion
395
412
  //#region packages/intl-listformat/polyfill-force.ts
396
- Object.defineProperty(Intl, "ListFormat", {
397
- value: ListFormat,
398
- writable: true,
399
- enumerable: false,
400
- configurable: true
401
- });
413
+ defineProperty(ensureIntl(), "ListFormat", { value: ListFormat });
402
414
  const buf = globalThis.__FORMATJS_LISTFORMAT_DATA__;
403
415
  if (buf) {
404
416
  for (const d of buf) ListFormat.__addLocaleData(d);
@@ -1 +1 @@
1
- {"version":3,"file":"polyfill-force.js","names":[],"sources":["../../ecma402-abstract/CanonicalizeLocaleList.js","../../ecma262-abstract/ToString.js","../../ecma402-abstract/GetOption.js","../../ecma402-abstract/GetOptionsObject.js","../../../node_modules/.aspect_rules_js/@formatjs+fast-memoize@0.0.0/node_modules/@formatjs/fast-memoize/index.js","../../ecma402-abstract/utils.js","../../ecma402-abstract/PartitionPattern.js","../../ecma262-abstract/ToObject.js","../../ecma402-abstract/SupportedLocales.js","../index.ts","../polyfill-force.ts"],"sourcesContent":["/**\n* http://ecma-international.org/ecma-402/7.0/index.html#sec-canonicalizelocalelist\n* @param locales\n*/\nexport function CanonicalizeLocaleList(locales) {\n\t// TODO\n\treturn Intl.getCanonicalLocales(locales);\n}\n","/**\n* https://tc39.es/ecma262/#sec-tostring\n*/\nexport function ToString(o) {\n\tif (typeof o === \"symbol\") {\n\t\tthrow TypeError(\"Cannot convert a Symbol value to a string\");\n\t}\n\treturn String(o);\n}\n","import { ToString } from \"#packages/ecma262-abstract/ToString.js\";\n/**\n* https://tc39.es/ecma402/#sec-getoption\n* @param opts\n* @param prop\n* @param type\n* @param values\n* @param fallback\n*/\nexport function GetOption(opts, prop, type, values, fallback) {\n\tif (typeof opts !== \"object\") {\n\t\tthrow new TypeError(\"Options must be an object\");\n\t}\n\tlet value = opts[prop];\n\tif (value !== undefined) {\n\t\tif (type !== \"boolean\" && type !== \"string\") {\n\t\t\tthrow new TypeError(\"invalid type\");\n\t\t}\n\t\tif (type === \"boolean\") {\n\t\t\tvalue = Boolean(value);\n\t\t}\n\t\tif (type === \"string\") {\n\t\t\tvalue = ToString(value);\n\t\t}\n\t\tif (values !== undefined && !values.filter((val) => val == value).length) {\n\t\t\tthrow new RangeError(`${value} is not within ${values.join(\", \")}`);\n\t\t}\n\t\treturn value;\n\t}\n\treturn fallback;\n}\n","/**\n* https://tc39.es/ecma402/#sec-getoptionsobject\n* @param options\n* @returns\n*/\nexport function GetOptionsObject(options) {\n\tif (typeof options === \"undefined\") {\n\t\treturn Object.create(null);\n\t}\n\tif (typeof options === \"object\") {\n\t\treturn options;\n\t}\n\tthrow new TypeError(\"Options must be an object\");\n}\n","//#region packages/fast-memoize/index.ts\nfunction memoize(fn, options) {\n\tconst cache = options && options.cache ? options.cache : cacheDefault;\n\tconst serializer = options && options.serializer ? options.serializer : serializerDefault;\n\treturn (options && options.strategy ? options.strategy : strategyDefault)(fn, {\n\t\tcache,\n\t\tserializer\n\t});\n}\nfunction isPrimitive(value) {\n\treturn value == null || typeof value === \"number\" || typeof value === \"boolean\";\n}\nfunction monadic(fn, cache, serializer, arg) {\n\tconst cacheKey = isPrimitive(arg) ? arg : serializer(arg);\n\tlet computedValue = cache.get(cacheKey);\n\tif (typeof computedValue === \"undefined\") {\n\t\tcomputedValue = fn.call(this, arg);\n\t\tcache.set(cacheKey, computedValue);\n\t}\n\treturn computedValue;\n}\nfunction variadic(fn, cache, serializer) {\n\tconst args = Array.prototype.slice.call(arguments, 3);\n\tconst cacheKey = serializer(args);\n\tlet computedValue = cache.get(cacheKey);\n\tif (typeof computedValue === \"undefined\") {\n\t\tcomputedValue = fn.apply(this, args);\n\t\tcache.set(cacheKey, computedValue);\n\t}\n\treturn computedValue;\n}\nfunction assemble(fn, context, strategy, cache, serialize) {\n\treturn strategy.bind(context, fn, cache, serialize);\n}\nfunction strategyDefault(fn, options) {\n\tconst strategy = fn.length === 1 ? monadic : variadic;\n\treturn assemble(fn, this, strategy, options.cache.create(), options.serializer);\n}\nfunction strategyVariadic(fn, options) {\n\treturn assemble(fn, this, variadic, options.cache.create(), options.serializer);\n}\nfunction strategyMonadic(fn, options) {\n\treturn assemble(fn, this, monadic, options.cache.create(), options.serializer);\n}\nconst serializerDefault = function() {\n\treturn JSON.stringify(arguments);\n};\nvar ObjectWithoutPrototypeCache = class {\n\tconstructor() {\n\t\tthis.cache = Object.create(null);\n\t}\n\tget(key) {\n\t\treturn this.cache[key];\n\t}\n\tset(key, value) {\n\t\tthis.cache[key] = value;\n\t}\n};\nconst cacheDefault = { create: function create() {\n\treturn new ObjectWithoutPrototypeCache();\n} };\nconst strategies = {\n\tvariadic: strategyVariadic,\n\tmonadic: strategyMonadic\n};\n//#endregion\nexport { memoize, strategies };\n\n//# sourceMappingURL=index.js.map","import { memoize, strategies } from \"@formatjs/fast-memoize\";\nexport function repeat(s, times) {\n\tif (typeof s.repeat === \"function\") {\n\t\treturn s.repeat(times);\n\t}\n\tconst arr = Array.from({ length: times });\n\tfor (let i = 0; i < arr.length; i++) {\n\t\tarr[i] = s;\n\t}\n\treturn arr.join(\"\");\n}\nexport function setInternalSlot(map, pl, field, value) {\n\tif (!map.get(pl)) {\n\t\tmap.set(pl, Object.create(null));\n\t}\n\tconst slots = map.get(pl);\n\tslots[field] = value;\n}\nexport function setMultiInternalSlots(map, pl, props) {\n\tfor (const k of Object.keys(props)) {\n\t\tsetInternalSlot(map, pl, k, props[k]);\n\t}\n}\nexport function getInternalSlot(map, pl, field) {\n\treturn getMultiInternalSlots(map, pl, field)[field];\n}\nexport function getMultiInternalSlots(map, pl, ...fields) {\n\tconst slots = map.get(pl);\n\tif (!slots) {\n\t\tthrow new TypeError(`${pl} InternalSlot has not been initialized`);\n\t}\n\treturn fields.reduce((all, f) => {\n\t\tall[f] = slots[f];\n\t\treturn all;\n\t}, Object.create(null));\n}\nexport function isLiteralPart(patternPart) {\n\treturn patternPart.type === \"literal\";\n}\n/*\n17 ECMAScript Standard Built-in Objects:\nEvery built-in Function object, including constructors, that is not\nidentified as an anonymous function has a name property whose value\nis a String.\n\nUnless otherwise specified, the name property of a built-in Function\nobject, if it exists, has the attributes { [[Writable]]: false,\n[[Enumerable]]: false, [[Configurable]]: true }.\n*/\nexport function defineProperty(target, name, { value }) {\n\tObject.defineProperty(target, name, {\n\t\tconfigurable: true,\n\t\tenumerable: false,\n\t\twritable: true,\n\t\tvalue\n\t});\n}\n/**\n* 7.3.5 CreateDataProperty\n* @param target\n* @param name\n* @param value\n*/\nexport function createDataProperty(target, name, value) {\n\tObject.defineProperty(target, name, {\n\t\tconfigurable: true,\n\t\tenumerable: true,\n\t\twritable: true,\n\t\tvalue\n\t});\n}\nexport const UNICODE_EXTENSION_SEQUENCE_REGEX = /-u(?:-[0-9a-z]{2,8})+/gi;\nexport function invariant(condition, message, Err = Error) {\n\tif (!condition) {\n\t\tthrow new Err(message);\n\t}\n}\nexport const createMemoizedNumberFormat = memoize((...args) => new Intl.NumberFormat(...args), { strategy: strategies.variadic });\nexport const createMemoizedPluralRules = memoize((...args) => new Intl.PluralRules(...args), { strategy: strategies.variadic });\nexport const createMemoizedLocale = memoize((...args) => new Intl.Locale(...args), { strategy: strategies.variadic });\nexport const createMemoizedListFormat = memoize((...args) => new Intl.ListFormat(...args), { strategy: strategies.variadic });\n","import { invariant } from \"#packages/ecma402-abstract/utils.js\";\n/**\n* Partition a pattern into a list of literals and placeholders\n* https://tc39.es/ecma402/#sec-partitionpattern\n* @param pattern\n*/\nexport function PartitionPattern(pattern) {\n\tconst result = [];\n\tlet beginIndex = pattern.indexOf(\"{\");\n\tlet endIndex = 0;\n\tlet nextIndex = 0;\n\tconst length = pattern.length;\n\twhile (beginIndex < pattern.length && beginIndex > -1) {\n\t\tendIndex = pattern.indexOf(\"}\", beginIndex);\n\t\tinvariant(endIndex > beginIndex, `Invalid pattern ${pattern}`);\n\t\tif (beginIndex > nextIndex) {\n\t\t\tresult.push({\n\t\t\t\ttype: \"literal\",\n\t\t\t\tvalue: pattern.substring(nextIndex, beginIndex)\n\t\t\t});\n\t\t}\n\t\tresult.push({\n\t\t\ttype: pattern.substring(beginIndex + 1, endIndex),\n\t\t\tvalue: undefined\n\t\t});\n\t\tnextIndex = endIndex + 1;\n\t\tbeginIndex = pattern.indexOf(\"{\", nextIndex);\n\t}\n\tif (nextIndex < length) {\n\t\tresult.push({\n\t\t\ttype: \"literal\",\n\t\t\tvalue: pattern.substring(nextIndex, length)\n\t\t});\n\t}\n\treturn result;\n}\n","/**\n* https://tc39.es/ecma262/#sec-toobject\n*/\nexport function ToObject(arg) {\n\tif (arg == null) {\n\t\tthrow new TypeError(\"undefined/null cannot be converted to object\");\n\t}\n\treturn Object(arg);\n}\n","import { LookupSupportedLocales } from \"@formatjs/intl-localematcher\";\nimport { ToObject } from \"#packages/ecma262-abstract/ToObject.js\";\nimport { GetOption } from \"#packages/ecma402-abstract/GetOption.js\";\n/**\n* https://tc39.es/ecma402/#sec-supportedlocales\n* @param availableLocales\n* @param requestedLocales\n* @param options\n*/\nexport function SupportedLocales(availableLocales, requestedLocales, options) {\n\tlet matcher = \"best fit\";\n\tif (options !== undefined) {\n\t\toptions = ToObject(options);\n\t\tmatcher = GetOption(options, \"localeMatcher\", \"string\", [\"lookup\", \"best fit\"], \"best fit\");\n\t}\n\tif (matcher === \"best fit\") {\n\t\treturn LookupSupportedLocales(Array.from(availableLocales), requestedLocales);\n\t}\n\treturn LookupSupportedLocales(Array.from(availableLocales), requestedLocales);\n}\n","import {CanonicalizeLocaleList} from '#packages/ecma402-abstract/CanonicalizeLocaleList.js'\nimport {GetOption} from '#packages/ecma402-abstract/GetOption.js'\nimport {GetOptionsObject} from '#packages/ecma402-abstract/GetOptionsObject.js'\nimport {PartitionPattern} from '#packages/ecma402-abstract/PartitionPattern.js'\nimport {SupportedLocales} from '#packages/ecma402-abstract/SupportedLocales.js'\nimport {\n type ListPatternData,\n type ListPatternFieldsData,\n type ListPatternLocaleData,\n} from '#packages/ecma402-abstract/types/list.js'\nimport {\n type LiteralPart,\n getInternalSlot,\n invariant,\n isLiteralPart,\n setInternalSlot,\n} from '#packages/ecma402-abstract/utils.js'\nimport {ResolveLocale} from '@formatjs/intl-localematcher'\n\nexport interface IntlListFormatOptions {\n /**\n * The locale matching algorithm to use.\n * Possible values are \"lookup\" and \"best fit\"; the default is \"best fit\".\n * For information about this option, see\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation.\n */\n localeMatcher?: 'best fit' | 'lookup'\n /**\n * The format of output message.\n * Possible values are :\n * - \"conjunction\" that stands for \"and\"-based lists (default, e.g., \"A, B, and C\")\n * - \"disjunction\" that stands for \"or\"-based lists (e.g., \"A, B, or C\").\n * - \"unit\" stands for lists of values with units (e.g., \"5 pounds, 12 ounces\").\n */\n type?: 'conjunction' | 'disjunction' | 'unit'\n /**\n * The length of the formatted message.\n * Possible values are:\n * - \"long\" (default, e.g., \"A, B, and C\");\n * - \"short\" (e.g., \"A, B, C\"), or\n * - \"narrow\" (e.g., \"A B C\").\n * When style is \"short\" or \"narrow\", \"unit\" is the only allowed value for the type option.\n */\n style?: 'long' | 'short' | 'narrow'\n}\n\nexport interface ResolvedIntlListFormatOptions {\n /**\n * A string with a BCP 47 language tag, or an array of such strings.\n * For the general form and interpretation of the locales argument,\n * see the [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation) page.\n */\n locale: string\n /**\n * The format of output message.\n * Possible values are :\n * - \"conjunction\" that stands for \"and\"-based lists (default, e.g., \"A, B, and C\")\n * - \"disjunction\" that stands for \"or\"-based lists (e.g., \"A, B, or C\").\n * - \"unit\" stands for lists of values with units (e.g., \"5 pounds, 12 ounces\").\n */\n type: 'conjunction' | 'disjunction' | 'unit'\n /**\n * The length of the formatted message.\n * Possible values are:\n * - \"long\" (default, e.g., \"A, B, and C\");\n * - \"short\" (e.g., \"A, B, C\"), or\n * - \"narrow\" (e.g., \"A B C\").\n * When style is \"short\" or \"narrow\", \"unit\" is the only allowed value for the type option.\n */\n style: 'long' | 'short' | 'narrow'\n}\n\nexport type Part<T = string> = LiteralPart | ElementPart | ElementPart<T>\n\nexport interface ElementPart<T = string> {\n type: 'element'\n value: T\n}\n\ninterface Placeable {\n type: string\n value: string\n}\n\ninterface ListFormatInternal {\n style: IntlListFormatOptions['style']\n type: IntlListFormatOptions['type']\n locale: string\n templatePair: string\n templateStart: string\n templateEnd: string\n templateMiddle: string\n initializedListFormat: boolean\n}\n\nfunction validateInstance(instance: any, method: string) {\n if (!(instance instanceof ListFormat)) {\n throw new TypeError(\n `Method Intl.ListFormat.prototype.${method} called on incompatible receiver ${String(\n instance\n )}`\n )\n }\n}\n\n/**\n * https://tc39.es/proposal-intl-list-format/#sec-createstringlistfromiterable\n * @param iterable list\n */\nfunction stringListFromIterable(iterable: Iterable<unknown>): string[] {\n if (typeof iterable !== 'object') return []\n const elements: string[] = []\n const iterator = iterable[Symbol.iterator]()\n let result: IteratorResult<unknown>\n while (true) {\n result = iterator.next()\n if (result.done) break\n if (typeof result.value !== 'string') {\n const nextValue = result.value\n throw new TypeError(`Iterable yielded ${nextValue} which is not a string`)\n }\n elements.push(result.value)\n }\n return elements\n}\n\nfunction createPartsFromList(\n internalSlotMap: WeakMap<ListFormat, ListFormatInternal>,\n lf: ListFormat,\n list: string[]\n) {\n const size = list.length\n if (size === 0) {\n return []\n }\n if (size === 2) {\n const pattern = getInternalSlot(internalSlotMap, lf, 'templatePair')\n const first = {type: 'element', value: list[0]}\n const second = {type: 'element', value: list[1]}\n return deconstructPattern(pattern, {'0': first, '1': second})\n }\n const last = {\n type: 'element',\n value: list[size - 1],\n }\n let parts: Placeable[] | Placeable = last\n let i = size - 2\n while (i >= 0) {\n let pattern\n if (i === 0) {\n pattern = getInternalSlot(internalSlotMap, lf, 'templateStart')\n } else if (i < size - 2) {\n pattern = getInternalSlot(internalSlotMap, lf, 'templateMiddle')\n } else {\n pattern = getInternalSlot(internalSlotMap, lf, 'templateEnd')\n }\n const head = {type: 'element', value: list[i]}\n parts = deconstructPattern(pattern, {'0': head, '1': parts})\n i--\n }\n return parts\n}\n\nfunction deconstructPattern(\n pattern: string,\n placeables: Record<string, Placeable | Placeable[]>\n) {\n const patternParts = PartitionPattern(pattern)\n const result: Placeable[] = []\n for (const patternPart of patternParts) {\n const {type: part} = patternPart\n if (isLiteralPart(patternPart)) {\n result.push({\n type: 'literal',\n value: patternPart.value,\n })\n } else {\n invariant(part in placeables, `${part} is missing from placables`)\n const subst = placeables[part]\n if (Array.isArray(subst)) {\n result.push(...subst)\n } else {\n result.push(subst)\n }\n }\n }\n return result\n}\n\nexport default class ListFormat {\n constructor(locales?: string | string[], options?: IntlListFormatOptions) {\n // test262/test/intl402/ListFormat/constructor/constructor/newtarget-undefined.js\n // Cannot use `new.target` bc of IE11 & TS transpiles it to something else\n const newTarget =\n this && this instanceof ListFormat ? this.constructor : void 0\n if (!newTarget) {\n throw new TypeError(\"Intl.ListFormat must be called with 'new'\")\n }\n setInternalSlot(\n ListFormat.__INTERNAL_SLOT_MAP__,\n this,\n 'initializedListFormat',\n true\n )\n const requestedLocales = CanonicalizeLocaleList(locales)\n const opt: any = Object.create(null)\n const opts = GetOptionsObject(options)\n const matcher = GetOption(\n opts,\n 'localeMatcher',\n 'string',\n ['best fit', 'lookup'],\n 'best fit'\n )\n opt.localeMatcher = matcher\n const {localeData} = ListFormat\n const r = ResolveLocale(\n ListFormat.availableLocales,\n requestedLocales,\n opt,\n ListFormat.relevantExtensionKeys,\n localeData,\n ListFormat.getDefaultLocale\n )\n setInternalSlot(ListFormat.__INTERNAL_SLOT_MAP__, this, 'locale', r.locale)\n const type: keyof ListPatternFieldsData = GetOption(\n opts,\n 'type',\n 'string',\n ['conjunction', 'disjunction', 'unit'],\n 'conjunction'\n )\n setInternalSlot(ListFormat.__INTERNAL_SLOT_MAP__, this, 'type', type)\n const style: keyof ListPatternData = GetOption(\n opts,\n 'style',\n 'string',\n ['long', 'short', 'narrow'],\n 'long'\n )\n setInternalSlot(ListFormat.__INTERNAL_SLOT_MAP__, this, 'style', style)\n const {dataLocale} = r\n const dataLocaleData = localeData[dataLocale]\n invariant(!!dataLocaleData, `Missing locale data for ${dataLocale}`)\n const dataLocaleTypes = dataLocaleData[type]\n const templates = dataLocaleTypes![style]!\n setInternalSlot(\n ListFormat.__INTERNAL_SLOT_MAP__,\n this,\n 'templatePair',\n templates.pair\n )\n setInternalSlot(\n ListFormat.__INTERNAL_SLOT_MAP__,\n this,\n 'templateStart',\n templates.start\n )\n setInternalSlot(\n ListFormat.__INTERNAL_SLOT_MAP__,\n this,\n 'templateMiddle',\n templates.middle\n )\n setInternalSlot(\n ListFormat.__INTERNAL_SLOT_MAP__,\n this,\n 'templateEnd',\n templates.end\n )\n }\n format(elements: Iterable<string>): string {\n validateInstance(this, 'format')\n let result = ''\n const parts = createPartsFromList(\n ListFormat.__INTERNAL_SLOT_MAP__,\n this,\n stringListFromIterable(elements)\n )\n if (!Array.isArray(parts)) {\n return parts.value\n }\n for (const p of parts) {\n result += p.value\n }\n return result\n }\n formatToParts(elements: Iterable<string>): Part[] {\n validateInstance(this, 'format')\n const parts = createPartsFromList(\n ListFormat.__INTERNAL_SLOT_MAP__,\n this,\n stringListFromIterable(elements)\n )\n if (!Array.isArray(parts)) {\n return [parts as Part]\n }\n const result: Part[] = []\n for (const part of parts) {\n result.push({...part} as Part)\n }\n return result\n }\n\n resolvedOptions(): ResolvedIntlListFormatOptions {\n validateInstance(this, 'resolvedOptions')\n return {\n locale: getInternalSlot(ListFormat.__INTERNAL_SLOT_MAP__, this, 'locale'),\n type: getInternalSlot(ListFormat.__INTERNAL_SLOT_MAP__, this, 'type')!,\n style: getInternalSlot(ListFormat.__INTERNAL_SLOT_MAP__, this, 'style')!,\n }\n }\n\n public static supportedLocalesOf(\n locales: string | string[],\n options?: Pick<IntlListFormatOptions, 'localeMatcher'>\n ): string[] {\n // test262/test/intl402/ListFormat/constructor/supportedLocalesOf/result-type.js\n return SupportedLocales(\n ListFormat.availableLocales,\n CanonicalizeLocaleList(locales),\n options\n )\n }\n\n public static __addLocaleData(...data: ListPatternLocaleData[]): void {\n for (const {data: d, locale} of data) {\n const minimizedLocale = new (Intl as any).Locale(locale)\n .minimize()\n .toString()\n ListFormat.localeData[locale] = ListFormat.localeData[minimizedLocale] = d\n ListFormat.availableLocales.add(minimizedLocale)\n ListFormat.availableLocales.add(locale)\n if (!ListFormat.__defaultLocale) {\n ListFormat.__defaultLocale = minimizedLocale\n }\n }\n }\n static localeData: Record<string, ListPatternFieldsData | undefined> = {}\n private static availableLocales = new Set<string>()\n private static __defaultLocale = ''\n private static getDefaultLocale() {\n return ListFormat.__defaultLocale\n }\n private static relevantExtensionKeys = []\n public static polyfilled = true\n private static readonly __INTERNAL_SLOT_MAP__ = new WeakMap<\n ListFormat,\n ListFormatInternal\n >()\n}\n\ntry {\n // IE11 does not have Symbol\n if (typeof Symbol !== 'undefined') {\n Object.defineProperty(ListFormat.prototype, Symbol.toStringTag, {\n value: 'Intl.ListFormat',\n writable: false,\n enumerable: false,\n configurable: true,\n })\n }\n\n // https://github.com/tc39/test262/blob/master/test/intl402/ListFormat/constructor/length.js\n Object.defineProperty(ListFormat.prototype.constructor, 'length', {\n value: 0,\n writable: false,\n enumerable: false,\n configurable: true,\n })\n // https://github.com/tc39/test262/blob/master/test/intl402/ListFormat/constructor/supportedLocalesOf/length.js\n Object.defineProperty(ListFormat.supportedLocalesOf, 'length', {\n value: 1,\n writable: false,\n enumerable: false,\n configurable: true,\n })\n} catch {\n // Meta fix so we're test262-compliant, not important\n}\n","import ListFormat from '#packages/intl-listformat/index.js'\n\nObject.defineProperty(Intl, 'ListFormat', {\n value: ListFormat,\n writable: true,\n enumerable: false,\n configurable: true,\n})\n\n// Drain any locale data that was buffered before polyfill loaded\nconst buf = (globalThis as Record<string, unknown>)\n .__FORMATJS_LISTFORMAT_DATA__ as\n | Parameters<(typeof ListFormat)['__addLocaleData']>[0][]\n | undefined\nif (buf) {\n for (const d of buf) ListFormat.__addLocaleData(d)\n delete (globalThis as Record<string, unknown>).__FORMATJS_LISTFORMAT_DATA__\n}\n"],"x_google_ignoreList":[4],"mappings":";;;;;;AAIA,SAAgB,uBAAuB,SAAS;AAE/C,QAAO,KAAK,oBAAoB,QAAQ;;;;;;;ACHzC,SAAgB,SAAS,GAAG;AAC3B,KAAI,OAAO,MAAM,SAChB,OAAM,UAAU,4CAA4C;AAE7D,QAAO,OAAO,EAAE;;;;;;;;;;;;ACEjB,SAAgB,UAAU,MAAM,MAAM,MAAM,QAAQ,UAAU;AAC7D,KAAI,OAAO,SAAS,SACnB,OAAM,IAAI,UAAU,4BAA4B;CAEjD,IAAI,QAAQ,KAAK;AACjB,KAAI,UAAU,KAAA,GAAW;AACxB,MAAI,SAAS,aAAa,SAAS,SAClC,OAAM,IAAI,UAAU,eAAe;AAEpC,MAAI,SAAS,UACZ,SA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,WAAuC"}
1
+ {"version":3,"file":"polyfill-force.js","names":[],"sources":["../../ecma402-abstract/CanonicalizeLocaleList.js","../../ecma262-abstract/ToString.js","../../ecma402-abstract/GetOption.js","../../ecma402-abstract/GetOptionsObject.js","../../../node_modules/.aspect_rules_js/@formatjs+fast-memoize@0.0.0/node_modules/@formatjs/fast-memoize/index.js","../../ecma402-abstract/utils.js","../../ecma402-abstract/PartitionPattern.js","../../ecma262-abstract/ToObject.js","../../ecma402-abstract/SupportedLocales.js","../index.ts","../polyfill-force.ts"],"sourcesContent":["/**\n* http://ecma-international.org/ecma-402/7.0/index.html#sec-canonicalizelocalelist\n* @param locales\n*/\nexport function CanonicalizeLocaleList(locales) {\n\t// TODO\n\treturn Intl.getCanonicalLocales(locales);\n}\n","/**\n* https://tc39.es/ecma262/#sec-tostring\n*/\nexport function ToString(o) {\n\tif (typeof o === \"symbol\") {\n\t\tthrow TypeError(\"Cannot convert a Symbol value to a string\");\n\t}\n\treturn String(o);\n}\n","import { ToString } from \"#packages/ecma262-abstract/ToString.js\";\n/**\n* https://tc39.es/ecma402/#sec-getoption\n* @param opts\n* @param prop\n* @param type\n* @param values\n* @param fallback\n*/\nexport function GetOption(opts, prop, type, values, fallback) {\n\tif (typeof opts !== \"object\") {\n\t\tthrow new TypeError(\"Options must be an object\");\n\t}\n\tlet value = opts[prop];\n\tif (value !== undefined) {\n\t\tif (type !== \"boolean\" && type !== \"string\") {\n\t\t\tthrow new TypeError(\"invalid type\");\n\t\t}\n\t\tif (type === \"boolean\") {\n\t\t\tvalue = Boolean(value);\n\t\t}\n\t\tif (type === \"string\") {\n\t\t\tvalue = ToString(value);\n\t\t}\n\t\tif (values !== undefined && !values.filter((val) => val == value).length) {\n\t\t\tthrow new RangeError(`${value} is not within ${values.join(\", \")}`);\n\t\t}\n\t\treturn value;\n\t}\n\treturn fallback;\n}\n","/**\n* https://tc39.es/ecma402/#sec-getoptionsobject\n* @param options\n* @returns\n*/\nexport function GetOptionsObject(options) {\n\tif (typeof options === \"undefined\") {\n\t\treturn Object.create(null);\n\t}\n\tif (typeof options === \"object\") {\n\t\treturn options;\n\t}\n\tthrow new TypeError(\"Options must be an object\");\n}\n","//#region packages/fast-memoize/index.ts\nfunction memoize(fn, options) {\n\tconst cache = options && options.cache ? options.cache : cacheDefault;\n\tconst serializer = options && options.serializer ? options.serializer : serializerDefault;\n\treturn (options && options.strategy ? options.strategy : strategyDefault)(fn, {\n\t\tcache,\n\t\tserializer\n\t});\n}\nfunction isPrimitive(value) {\n\treturn value == null || typeof value === \"number\" || typeof value === \"boolean\";\n}\nfunction monadic(fn, cache, serializer, arg) {\n\tconst cacheKey = isPrimitive(arg) ? arg : serializer(arg);\n\tlet computedValue = cache.get(cacheKey);\n\tif (typeof computedValue === \"undefined\") {\n\t\tcomputedValue = fn.call(this, arg);\n\t\tcache.set(cacheKey, computedValue);\n\t}\n\treturn computedValue;\n}\nfunction variadic(fn, cache, serializer) {\n\tconst args = Array.prototype.slice.call(arguments, 3);\n\tconst cacheKey = serializer(args);\n\tlet computedValue = cache.get(cacheKey);\n\tif (typeof computedValue === \"undefined\") {\n\t\tcomputedValue = fn.apply(this, args);\n\t\tcache.set(cacheKey, computedValue);\n\t}\n\treturn computedValue;\n}\nfunction assemble(fn, context, strategy, cache, serialize) {\n\treturn strategy.bind(context, fn, cache, serialize);\n}\nfunction strategyDefault(fn, options) {\n\tconst strategy = fn.length === 1 ? monadic : variadic;\n\treturn assemble(fn, this, strategy, options.cache.create(), options.serializer);\n}\nfunction strategyVariadic(fn, options) {\n\treturn assemble(fn, this, variadic, options.cache.create(), options.serializer);\n}\nfunction strategyMonadic(fn, options) {\n\treturn assemble(fn, this, monadic, options.cache.create(), options.serializer);\n}\nconst serializerDefault = function() {\n\treturn JSON.stringify(arguments);\n};\nvar ObjectWithoutPrototypeCache = class {\n\tconstructor() {\n\t\tthis.cache = Object.create(null);\n\t}\n\tget(key) {\n\t\treturn this.cache[key];\n\t}\n\tset(key, value) {\n\t\tthis.cache[key] = value;\n\t}\n};\nconst cacheDefault = { create: function create() {\n\treturn new ObjectWithoutPrototypeCache();\n} };\nconst strategies = {\n\tvariadic: strategyVariadic,\n\tmonadic: strategyMonadic\n};\n//#endregion\nexport { memoize, strategies };\n\n//# sourceMappingURL=index.js.map","import { memoize, strategies } from \"@formatjs/fast-memoize\";\nexport function repeat(s, times) {\n\tif (typeof s.repeat === \"function\") {\n\t\treturn s.repeat(times);\n\t}\n\tconst arr = Array.from({ length: times });\n\tfor (let i = 0; i < arr.length; i++) {\n\t\tarr[i] = s;\n\t}\n\treturn arr.join(\"\");\n}\nexport function setInternalSlot(map, pl, field, value) {\n\tif (!map.get(pl)) {\n\t\tmap.set(pl, Object.create(null));\n\t}\n\tconst slots = map.get(pl);\n\tslots[field] = value;\n}\nexport function setMultiInternalSlots(map, pl, props) {\n\tfor (const k of Object.keys(props)) {\n\t\tsetInternalSlot(map, pl, k, props[k]);\n\t}\n}\nexport function getInternalSlot(map, pl, field) {\n\treturn getMultiInternalSlots(map, pl, field)[field];\n}\nexport function getMultiInternalSlots(map, pl, ...fields) {\n\tconst slots = map.get(pl);\n\tif (!slots) {\n\t\tthrow new TypeError(`${pl} InternalSlot has not been initialized`);\n\t}\n\treturn fields.reduce((all, f) => {\n\t\tall[f] = slots[f];\n\t\treturn all;\n\t}, Object.create(null));\n}\nexport function isLiteralPart(patternPart) {\n\treturn patternPart.type === \"literal\";\n}\n/*\n17 ECMAScript Standard Built-in Objects:\nEvery built-in Function object, including constructors, that is not\nidentified as an anonymous function has a name property whose value\nis a String.\n\nUnless otherwise specified, the name property of a built-in Function\nobject, if it exists, has the attributes { [[Writable]]: false,\n[[Enumerable]]: false, [[Configurable]]: true }.\n*/\nexport function defineProperty(target, name, { value }) {\n\tObject.defineProperty(target, name, {\n\t\tconfigurable: true,\n\t\tenumerable: false,\n\t\twritable: true,\n\t\tvalue\n\t});\n}\nexport function ensureIntl() {\n\tif (typeof Intl === \"undefined\") {\n\t\tObject.defineProperty(globalThis, \"Intl\", {\n\t\t\tconfigurable: true,\n\t\t\tenumerable: false,\n\t\t\twritable: true,\n\t\t\tvalue: {}\n\t\t});\n\t}\n\treturn Intl;\n}\n/**\n* 7.3.5 CreateDataProperty\n* @param target\n* @param name\n* @param value\n*/\nexport function createDataProperty(target, name, value) {\n\tObject.defineProperty(target, name, {\n\t\tconfigurable: true,\n\t\tenumerable: true,\n\t\twritable: true,\n\t\tvalue\n\t});\n}\nexport const UNICODE_EXTENSION_SEQUENCE_REGEX = /-u(?:-[0-9a-z]{2,8})+/gi;\nexport function invariant(condition, message, Err = Error) {\n\tif (!condition) {\n\t\tthrow new Err(message);\n\t}\n}\nexport const createMemoizedNumberFormat = memoize((...args) => new Intl.NumberFormat(...args), { strategy: strategies.variadic });\nexport const createMemoizedPluralRules = memoize((...args) => new Intl.PluralRules(...args), { strategy: strategies.variadic });\nexport const createMemoizedLocale = memoize((...args) => new Intl.Locale(...args), { strategy: strategies.variadic });\nexport const createMemoizedListFormat = memoize((...args) => new Intl.ListFormat(...args), { strategy: strategies.variadic });\n","import { invariant } from \"#packages/ecma402-abstract/utils.js\";\n/**\n* Partition a pattern into a list of literals and placeholders\n* https://tc39.es/ecma402/#sec-partitionpattern\n* @param pattern\n*/\nexport function PartitionPattern(pattern) {\n\tconst result = [];\n\tlet beginIndex = pattern.indexOf(\"{\");\n\tlet endIndex = 0;\n\tlet nextIndex = 0;\n\tconst length = pattern.length;\n\twhile (beginIndex < pattern.length && beginIndex > -1) {\n\t\tendIndex = pattern.indexOf(\"}\", beginIndex);\n\t\tinvariant(endIndex > beginIndex, `Invalid pattern ${pattern}`);\n\t\tif (beginIndex > nextIndex) {\n\t\t\tresult.push({\n\t\t\t\ttype: \"literal\",\n\t\t\t\tvalue: pattern.substring(nextIndex, beginIndex)\n\t\t\t});\n\t\t}\n\t\tresult.push({\n\t\t\ttype: pattern.substring(beginIndex + 1, endIndex),\n\t\t\tvalue: undefined\n\t\t});\n\t\tnextIndex = endIndex + 1;\n\t\tbeginIndex = pattern.indexOf(\"{\", nextIndex);\n\t}\n\tif (nextIndex < length) {\n\t\tresult.push({\n\t\t\ttype: \"literal\",\n\t\t\tvalue: pattern.substring(nextIndex, length)\n\t\t});\n\t}\n\treturn result;\n}\n","/**\n* https://tc39.es/ecma262/#sec-toobject\n*/\nexport function ToObject(arg) {\n\tif (arg == null) {\n\t\tthrow new TypeError(\"undefined/null cannot be converted to object\");\n\t}\n\treturn Object(arg);\n}\n","import { LookupSupportedLocales } from \"@formatjs/intl-localematcher\";\nimport { ToObject } from \"#packages/ecma262-abstract/ToObject.js\";\nimport { GetOption } from \"#packages/ecma402-abstract/GetOption.js\";\n/**\n* https://tc39.es/ecma402/#sec-supportedlocales\n* @param availableLocales\n* @param requestedLocales\n* @param options\n*/\nexport function SupportedLocales(availableLocales, requestedLocales, options) {\n\tlet matcher = \"best fit\";\n\tif (options !== undefined) {\n\t\toptions = ToObject(options);\n\t\tmatcher = GetOption(options, \"localeMatcher\", \"string\", [\"lookup\", \"best fit\"], \"best fit\");\n\t}\n\tif (matcher === \"best fit\") {\n\t\treturn LookupSupportedLocales(Array.from(availableLocales), requestedLocales);\n\t}\n\treturn LookupSupportedLocales(Array.from(availableLocales), requestedLocales);\n}\n","import {CanonicalizeLocaleList} from '#packages/ecma402-abstract/CanonicalizeLocaleList.js'\nimport {GetOption} from '#packages/ecma402-abstract/GetOption.js'\nimport {GetOptionsObject} from '#packages/ecma402-abstract/GetOptionsObject.js'\nimport {PartitionPattern} from '#packages/ecma402-abstract/PartitionPattern.js'\nimport {SupportedLocales} from '#packages/ecma402-abstract/SupportedLocales.js'\nimport {\n type ListPatternData,\n type ListPatternFieldsData,\n type ListPatternLocaleData,\n} from '#packages/ecma402-abstract/types/list.js'\nimport {\n type LiteralPart,\n getInternalSlot,\n invariant,\n isLiteralPart,\n setInternalSlot,\n} from '#packages/ecma402-abstract/utils.js'\nimport {ResolveLocale} from '@formatjs/intl-localematcher'\n\nexport interface IntlListFormatOptions {\n /**\n * The locale matching algorithm to use.\n * Possible values are \"lookup\" and \"best fit\"; the default is \"best fit\".\n * For information about this option, see\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation.\n */\n localeMatcher?: 'best fit' | 'lookup'\n /**\n * The format of output message.\n * Possible values are :\n * - \"conjunction\" that stands for \"and\"-based lists (default, e.g., \"A, B, and C\")\n * - \"disjunction\" that stands for \"or\"-based lists (e.g., \"A, B, or C\").\n * - \"unit\" stands for lists of values with units (e.g., \"5 pounds, 12 ounces\").\n */\n type?: 'conjunction' | 'disjunction' | 'unit'\n /**\n * The length of the formatted message.\n * Possible values are:\n * - \"long\" (default, e.g., \"A, B, and C\");\n * - \"short\" (e.g., \"A, B, C\"), or\n * - \"narrow\" (e.g., \"A B C\").\n * When style is \"short\" or \"narrow\", \"unit\" is the only allowed value for the type option.\n */\n style?: 'long' | 'short' | 'narrow'\n}\n\nexport interface ResolvedIntlListFormatOptions {\n /**\n * A string with a BCP 47 language tag, or an array of such strings.\n * For the general form and interpretation of the locales argument,\n * see the [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation) page.\n */\n locale: string\n /**\n * The format of output message.\n * Possible values are :\n * - \"conjunction\" that stands for \"and\"-based lists (default, e.g., \"A, B, and C\")\n * - \"disjunction\" that stands for \"or\"-based lists (e.g., \"A, B, or C\").\n * - \"unit\" stands for lists of values with units (e.g., \"5 pounds, 12 ounces\").\n */\n type: 'conjunction' | 'disjunction' | 'unit'\n /**\n * The length of the formatted message.\n * Possible values are:\n * - \"long\" (default, e.g., \"A, B, and C\");\n * - \"short\" (e.g., \"A, B, C\"), or\n * - \"narrow\" (e.g., \"A B C\").\n * When style is \"short\" or \"narrow\", \"unit\" is the only allowed value for the type option.\n */\n style: 'long' | 'short' | 'narrow'\n}\n\nexport type Part<T = string> = LiteralPart | ElementPart | ElementPart<T>\n\nexport interface ElementPart<T = string> {\n type: 'element'\n value: T\n}\n\ninterface Placeable {\n type: string\n value: string\n}\n\ninterface ListFormatInternal {\n style: IntlListFormatOptions['style']\n type: IntlListFormatOptions['type']\n locale: string\n templatePair: string\n templateStart: string\n templateEnd: string\n templateMiddle: string\n initializedListFormat: boolean\n}\n\nfunction validateInstance(instance: any, method: string) {\n if (!(instance instanceof ListFormat)) {\n throw new TypeError(\n `Method Intl.ListFormat.prototype.${method} called on incompatible receiver ${String(\n instance\n )}`\n )\n }\n}\n\n/**\n * https://tc39.es/proposal-intl-list-format/#sec-createstringlistfromiterable\n * @param iterable list\n */\nfunction stringListFromIterable(iterable: Iterable<unknown>): string[] {\n if (typeof iterable !== 'object') return []\n const elements: string[] = []\n const iterator = iterable[Symbol.iterator]()\n let result: IteratorResult<unknown>\n while (true) {\n result = iterator.next()\n if (result.done) break\n if (typeof result.value !== 'string') {\n const nextValue = result.value\n throw new TypeError(`Iterable yielded ${nextValue} which is not a string`)\n }\n elements.push(result.value)\n }\n return elements\n}\n\nfunction createPartsFromList(\n internalSlotMap: WeakMap<ListFormat, ListFormatInternal>,\n lf: ListFormat,\n list: string[]\n) {\n const size = list.length\n if (size === 0) {\n return []\n }\n if (size === 2) {\n const pattern = getInternalSlot(internalSlotMap, lf, 'templatePair')\n const first = {type: 'element', value: list[0]}\n const second = {type: 'element', value: list[1]}\n return deconstructPattern(pattern, {'0': first, '1': second})\n }\n const last = {\n type: 'element',\n value: list[size - 1],\n }\n let parts: Placeable[] | Placeable = last\n let i = size - 2\n while (i >= 0) {\n let pattern\n if (i === 0) {\n pattern = getInternalSlot(internalSlotMap, lf, 'templateStart')\n } else if (i < size - 2) {\n pattern = getInternalSlot(internalSlotMap, lf, 'templateMiddle')\n } else {\n pattern = getInternalSlot(internalSlotMap, lf, 'templateEnd')\n }\n const head = {type: 'element', value: list[i]}\n parts = deconstructPattern(pattern, {'0': head, '1': parts})\n i--\n }\n return parts\n}\n\nfunction deconstructPattern(\n pattern: string,\n placeables: Record<string, Placeable | Placeable[]>\n) {\n const patternParts = PartitionPattern(pattern)\n const result: Placeable[] = []\n for (const patternPart of patternParts) {\n const {type: part} = patternPart\n if (isLiteralPart(patternPart)) {\n result.push({\n type: 'literal',\n value: patternPart.value,\n })\n } else {\n invariant(part in placeables, `${part} is missing from placables`)\n const subst = placeables[part]\n if (Array.isArray(subst)) {\n result.push(...subst)\n } else {\n result.push(subst)\n }\n }\n }\n return result\n}\n\nexport default class ListFormat {\n constructor(locales?: string | string[], options?: IntlListFormatOptions) {\n // test262/test/intl402/ListFormat/constructor/constructor/newtarget-undefined.js\n // Cannot use `new.target` bc of IE11 & TS transpiles it to something else\n const newTarget =\n this && this instanceof ListFormat ? this.constructor : void 0\n if (!newTarget) {\n throw new TypeError(\"Intl.ListFormat must be called with 'new'\")\n }\n setInternalSlot(\n ListFormat.__INTERNAL_SLOT_MAP__,\n this,\n 'initializedListFormat',\n true\n )\n const requestedLocales = CanonicalizeLocaleList(locales)\n const opt: any = Object.create(null)\n const opts = GetOptionsObject(options)\n const matcher = GetOption(\n opts,\n 'localeMatcher',\n 'string',\n ['best fit', 'lookup'],\n 'best fit'\n )\n opt.localeMatcher = matcher\n const {localeData} = ListFormat\n const r = ResolveLocale(\n ListFormat.availableLocales,\n requestedLocales,\n opt,\n ListFormat.relevantExtensionKeys,\n localeData,\n ListFormat.getDefaultLocale\n )\n setInternalSlot(ListFormat.__INTERNAL_SLOT_MAP__, this, 'locale', r.locale)\n const type: keyof ListPatternFieldsData = GetOption(\n opts,\n 'type',\n 'string',\n ['conjunction', 'disjunction', 'unit'],\n 'conjunction'\n )\n setInternalSlot(ListFormat.__INTERNAL_SLOT_MAP__, this, 'type', type)\n const style: keyof ListPatternData = GetOption(\n opts,\n 'style',\n 'string',\n ['long', 'short', 'narrow'],\n 'long'\n )\n setInternalSlot(ListFormat.__INTERNAL_SLOT_MAP__, this, 'style', style)\n const {dataLocale} = r\n const dataLocaleData = localeData[dataLocale]\n invariant(!!dataLocaleData, `Missing locale data for ${dataLocale}`)\n const dataLocaleTypes = dataLocaleData[type]\n const templates = dataLocaleTypes![style]!\n setInternalSlot(\n ListFormat.__INTERNAL_SLOT_MAP__,\n this,\n 'templatePair',\n templates.pair\n )\n setInternalSlot(\n ListFormat.__INTERNAL_SLOT_MAP__,\n this,\n 'templateStart',\n templates.start\n )\n setInternalSlot(\n ListFormat.__INTERNAL_SLOT_MAP__,\n this,\n 'templateMiddle',\n templates.middle\n )\n setInternalSlot(\n ListFormat.__INTERNAL_SLOT_MAP__,\n this,\n 'templateEnd',\n templates.end\n )\n }\n format(elements: Iterable<string>): string {\n validateInstance(this, 'format')\n let result = ''\n const parts = createPartsFromList(\n ListFormat.__INTERNAL_SLOT_MAP__,\n this,\n stringListFromIterable(elements)\n )\n if (!Array.isArray(parts)) {\n return parts.value\n }\n for (const p of parts) {\n result += p.value\n }\n return result\n }\n formatToParts(elements: Iterable<string>): Part[] {\n validateInstance(this, 'format')\n const parts = createPartsFromList(\n ListFormat.__INTERNAL_SLOT_MAP__,\n this,\n stringListFromIterable(elements)\n )\n if (!Array.isArray(parts)) {\n return [parts as Part]\n }\n const result: Part[] = []\n for (const part of parts) {\n result.push({...part} as Part)\n }\n return result\n }\n\n resolvedOptions(): ResolvedIntlListFormatOptions {\n validateInstance(this, 'resolvedOptions')\n return {\n locale: getInternalSlot(ListFormat.__INTERNAL_SLOT_MAP__, this, 'locale'),\n type: getInternalSlot(ListFormat.__INTERNAL_SLOT_MAP__, this, 'type')!,\n style: getInternalSlot(ListFormat.__INTERNAL_SLOT_MAP__, this, 'style')!,\n }\n }\n\n public static supportedLocalesOf(\n locales: string | string[],\n options?: Pick<IntlListFormatOptions, 'localeMatcher'>\n ): string[] {\n // test262/test/intl402/ListFormat/constructor/supportedLocalesOf/result-type.js\n return SupportedLocales(\n ListFormat.availableLocales,\n CanonicalizeLocaleList(locales),\n options\n )\n }\n\n public static __addLocaleData(...data: ListPatternLocaleData[]): void {\n for (const {data: d, locale} of data) {\n const minimizedLocale = new (Intl as any).Locale(locale)\n .minimize()\n .toString()\n ListFormat.localeData[locale] = ListFormat.localeData[minimizedLocale] = d\n ListFormat.availableLocales.add(minimizedLocale)\n ListFormat.availableLocales.add(locale)\n if (!ListFormat.__defaultLocale) {\n ListFormat.__defaultLocale = minimizedLocale\n }\n }\n }\n static localeData: Record<string, ListPatternFieldsData | undefined> = {}\n private static availableLocales = new Set<string>()\n private static __defaultLocale = ''\n private static getDefaultLocale() {\n return ListFormat.__defaultLocale\n }\n private static relevantExtensionKeys = []\n public static polyfilled = true\n private static readonly __INTERNAL_SLOT_MAP__ = new WeakMap<\n ListFormat,\n ListFormatInternal\n >()\n}\n\ntry {\n // IE11 does not have Symbol\n if (typeof Symbol !== 'undefined') {\n Object.defineProperty(ListFormat.prototype, Symbol.toStringTag, {\n value: 'Intl.ListFormat',\n writable: false,\n enumerable: false,\n configurable: true,\n })\n }\n\n // https://github.com/tc39/test262/blob/master/test/intl402/ListFormat/constructor/length.js\n Object.defineProperty(ListFormat.prototype.constructor, 'length', {\n value: 0,\n writable: false,\n enumerable: false,\n configurable: true,\n })\n // https://github.com/tc39/test262/blob/master/test/intl402/ListFormat/constructor/supportedLocalesOf/length.js\n Object.defineProperty(ListFormat.supportedLocalesOf, 'length', {\n value: 1,\n writable: false,\n enumerable: false,\n configurable: true,\n })\n} catch {\n // Meta fix so we're test262-compliant, not important\n}\n","import ListFormat from '#packages/intl-listformat/index.js'\nimport {defineProperty, ensureIntl} from '#packages/ecma402-abstract/utils.js'\n\nconst intl = ensureIntl()\n\ndefineProperty(intl, 'ListFormat', {value: ListFormat})\n\n// Drain any locale data that was buffered before polyfill loaded\nconst buf = (globalThis as Record<string, unknown>)\n .__FORMATJS_LISTFORMAT_DATA__ as\n | Parameters<(typeof ListFormat)['__addLocaleData']>[0][]\n | undefined\nif (buf) {\n for (const d of buf) ListFormat.__addLocaleData(d)\n delete (globalThis as Record<string, unknown>).__FORMATJS_LISTFORMAT_DATA__\n}\n"],"x_google_ignoreList":[4],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AgB;GAChD,WAAW,iBAAiB,IAAI,OAAO;GACvC,IAAI,CAAC,WAAW,iBACd,WAAW,kBAAkB;;;;oBAIoC,EAAE;;;0CACvC,IAAI,KAAa;;;yBAClB;;CACjC,OAAe,mBAAmB;EAChC,OAAO,WAAW;;;+BAEmB,EAAE;;;oBACd;;;+CACqB,IAAI,SAGjD;;;AAGL,IAAI;CAEF,IAAI,OAAO,WAAW,aACpB,OAAO,eAAe,WAAW,WAAW,OAAO,aAAa;EAC9D,OAAO;EACP,UAAU;EACV,YAAY;EACZ,cAAc;EACf,CAAC;CAIJ,OAAO,eAAe,WAAW,UAAU,aAAa,UAAU;EAChE,OAAO;EACP,UAAU;EACV,YAAY;EACZ,cAAc;EACf,CAAC;CAEF,OAAO,eAAe,WAAW,oBAAoB,UAAU;EAC7D,OAAO;EACP,UAAU;EACV,YAAY;EACZ,cAAc;EACf,CAAC;QACI;;;ACpXR,eAFa,YAEM,EAAE,cAAc,EAAC,OAAO,YAAW,CAAC;AAGvD,MAAM,MAAO,WACV;AAGH,IAAI,KAAK;CACP,KAAK,MAAM,KAAK,KAAK,WAAW,gBAAgB,EAAE;CAClD,OAAQ,WAAuC"}
package/polyfill.iife.js CHANGED
@@ -137,6 +137,23 @@ function getMultiInternalSlots(map, pl, ...fields) {
137
137
  function isLiteralPart(patternPart) {
138
138
  return patternPart.type === "literal";
139
139
  }
140
+ function defineProperty(target, name, { value }) {
141
+ Object.defineProperty(target, name, {
142
+ configurable: true,
143
+ enumerable: false,
144
+ writable: true,
145
+ value
146
+ });
147
+ }
148
+ function ensureIntl() {
149
+ if (typeof Intl === "undefined") Object.defineProperty(globalThis, "Intl", {
150
+ configurable: true,
151
+ enumerable: false,
152
+ writable: true,
153
+ value: {}
154
+ });
155
+ return Intl;
156
+ }
140
157
  function invariant$1(condition, message, Err = Error) {
141
158
  if (!condition) throw new Err(message);
142
159
  }
@@ -4094,17 +4111,13 @@ function supportedLocalesOf(locale) {
4094
4111
  return Intl.ListFormat.supportedLocalesOf(locales).length === locales.length;
4095
4112
  }
4096
4113
  function shouldPolyfill(locale = "en") {
4097
- if (!("ListFormat" in Intl) || !supportedLocalesOf(locale)) return locale ? match([locale], supportedLocales, "en") : void 0;
4114
+ if (typeof Intl === "undefined" || !("ListFormat" in Intl) || !supportedLocalesOf(locale)) return locale ? match([locale], supportedLocales, "en") : void 0;
4098
4115
  }
4099
4116
  //#endregion
4100
4117
  //#region packages/intl-listformat/polyfill.ts
4118
+ const intl = ensureIntl();
4101
4119
  if (shouldPolyfill()) {
4102
- Object.defineProperty(Intl, "ListFormat", {
4103
- value: ListFormat,
4104
- writable: true,
4105
- enumerable: false,
4106
- configurable: true
4107
- });
4120
+ defineProperty(intl, "ListFormat", { value: ListFormat });
4108
4121
  const buf = globalThis.__FORMATJS_LISTFORMAT_DATA__;
4109
4122
  if (buf) {
4110
4123
  for (const d of buf) ListFormat.__addLocaleData(d);
package/polyfill.js CHANGED
@@ -137,6 +137,23 @@ function getMultiInternalSlots(map, pl, ...fields) {
137
137
  function isLiteralPart(patternPart) {
138
138
  return patternPart.type === "literal";
139
139
  }
140
+ function defineProperty(target, name, { value }) {
141
+ Object.defineProperty(target, name, {
142
+ configurable: true,
143
+ enumerable: false,
144
+ writable: true,
145
+ value
146
+ });
147
+ }
148
+ function ensureIntl() {
149
+ if (typeof Intl === "undefined") Object.defineProperty(globalThis, "Intl", {
150
+ configurable: true,
151
+ enumerable: false,
152
+ writable: true,
153
+ value: {}
154
+ });
155
+ return Intl;
156
+ }
140
157
  function invariant(condition, message, Err = Error) {
141
158
  if (!condition) throw new Err(message);
142
159
  }
@@ -1169,17 +1186,13 @@ function supportedLocalesOf(locale) {
1169
1186
  return Intl.ListFormat.supportedLocalesOf(locales).length === locales.length;
1170
1187
  }
1171
1188
  function shouldPolyfill(locale = "en") {
1172
- if (!("ListFormat" in Intl) || !supportedLocalesOf(locale)) return locale ? match([locale], supportedLocales, "en") : void 0;
1189
+ if (typeof Intl === "undefined" || !("ListFormat" in Intl) || !supportedLocalesOf(locale)) return locale ? match([locale], supportedLocales, "en") : void 0;
1173
1190
  }
1174
1191
  //#endregion
1175
1192
  //#region packages/intl-listformat/polyfill.ts
1193
+ const intl = ensureIntl();
1176
1194
  if (shouldPolyfill()) {
1177
- Object.defineProperty(Intl, "ListFormat", {
1178
- value: ListFormat,
1179
- writable: true,
1180
- enumerable: false,
1181
- configurable: true
1182
- });
1195
+ defineProperty(intl, "ListFormat", { value: ListFormat });
1183
1196
  const buf = globalThis.__FORMATJS_LISTFORMAT_DATA__;
1184
1197
  if (buf) {
1185
1198
  for (const d of buf) ListFormat.__addLocaleData(d);
package/polyfill.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"polyfill.js","names":[],"sources":["../../ecma402-abstract/CanonicalizeLocaleList.js","../../ecma262-abstract/ToString.js","../../ecma402-abstract/GetOption.js","../../ecma402-abstract/GetOptionsObject.js","../../../node_modules/.aspect_rules_js/@formatjs+fast-memoize@0.0.0/node_modules/@formatjs/fast-memoize/index.js","../../ecma402-abstract/utils.js","../../ecma402-abstract/PartitionPattern.js","../../ecma262-abstract/ToObject.js","../../ecma402-abstract/SupportedLocales.js","../index.ts","../../../node_modules/.aspect_rules_js/@formatjs_generated+cldr.supported-locales@0.0.0/node_modules/@formatjs_generated/cldr.supported-locales/intl-listformat.js","../should-polyfill.ts","../polyfill.ts"],"sourcesContent":["/**\n* http://ecma-international.org/ecma-402/7.0/index.html#sec-canonicalizelocalelist\n* @param locales\n*/\nexport function CanonicalizeLocaleList(locales) {\n\t// TODO\n\treturn Intl.getCanonicalLocales(locales);\n}\n","/**\n* https://tc39.es/ecma262/#sec-tostring\n*/\nexport function ToString(o) {\n\tif (typeof o === \"symbol\") {\n\t\tthrow TypeError(\"Cannot convert a Symbol value to a string\");\n\t}\n\treturn String(o);\n}\n","import { ToString } from \"#packages/ecma262-abstract/ToString.js\";\n/**\n* https://tc39.es/ecma402/#sec-getoption\n* @param opts\n* @param prop\n* @param type\n* @param values\n* @param fallback\n*/\nexport function GetOption(opts, prop, type, values, fallback) {\n\tif (typeof opts !== \"object\") {\n\t\tthrow new TypeError(\"Options must be an object\");\n\t}\n\tlet value = opts[prop];\n\tif (value !== undefined) {\n\t\tif (type !== \"boolean\" && type !== \"string\") {\n\t\t\tthrow new TypeError(\"invalid type\");\n\t\t}\n\t\tif (type === \"boolean\") {\n\t\t\tvalue = Boolean(value);\n\t\t}\n\t\tif (type === \"string\") {\n\t\t\tvalue = ToString(value);\n\t\t}\n\t\tif (values !== undefined && !values.filter((val) => val == value).length) {\n\t\t\tthrow new RangeError(`${value} is not within ${values.join(\", \")}`);\n\t\t}\n\t\treturn value;\n\t}\n\treturn fallback;\n}\n","/**\n* https://tc39.es/ecma402/#sec-getoptionsobject\n* @param options\n* @returns\n*/\nexport function GetOptionsObject(options) {\n\tif (typeof options === \"undefined\") {\n\t\treturn Object.create(null);\n\t}\n\tif (typeof options === \"object\") {\n\t\treturn options;\n\t}\n\tthrow new TypeError(\"Options must be an object\");\n}\n","//#region packages/fast-memoize/index.ts\nfunction memoize(fn, options) {\n\tconst cache = options && options.cache ? options.cache : cacheDefault;\n\tconst serializer = options && options.serializer ? options.serializer : serializerDefault;\n\treturn (options && options.strategy ? options.strategy : strategyDefault)(fn, {\n\t\tcache,\n\t\tserializer\n\t});\n}\nfunction isPrimitive(value) {\n\treturn value == null || typeof value === \"number\" || typeof value === \"boolean\";\n}\nfunction monadic(fn, cache, serializer, arg) {\n\tconst cacheKey = isPrimitive(arg) ? arg : serializer(arg);\n\tlet computedValue = cache.get(cacheKey);\n\tif (typeof computedValue === \"undefined\") {\n\t\tcomputedValue = fn.call(this, arg);\n\t\tcache.set(cacheKey, computedValue);\n\t}\n\treturn computedValue;\n}\nfunction variadic(fn, cache, serializer) {\n\tconst args = Array.prototype.slice.call(arguments, 3);\n\tconst cacheKey = serializer(args);\n\tlet computedValue = cache.get(cacheKey);\n\tif (typeof computedValue === \"undefined\") {\n\t\tcomputedValue = fn.apply(this, args);\n\t\tcache.set(cacheKey, computedValue);\n\t}\n\treturn computedValue;\n}\nfunction assemble(fn, context, strategy, cache, serialize) {\n\treturn strategy.bind(context, fn, cache, serialize);\n}\nfunction strategyDefault(fn, options) {\n\tconst strategy = fn.length === 1 ? monadic : variadic;\n\treturn assemble(fn, this, strategy, options.cache.create(), options.serializer);\n}\nfunction strategyVariadic(fn, options) {\n\treturn assemble(fn, this, variadic, options.cache.create(), options.serializer);\n}\nfunction strategyMonadic(fn, options) {\n\treturn assemble(fn, this, monadic, options.cache.create(), options.serializer);\n}\nconst serializerDefault = function() {\n\treturn JSON.stringify(arguments);\n};\nvar ObjectWithoutPrototypeCache = class {\n\tconstructor() {\n\t\tthis.cache = Object.create(null);\n\t}\n\tget(key) {\n\t\treturn this.cache[key];\n\t}\n\tset(key, value) {\n\t\tthis.cache[key] = value;\n\t}\n};\nconst cacheDefault = { create: function create() {\n\treturn new ObjectWithoutPrototypeCache();\n} };\nconst strategies = {\n\tvariadic: strategyVariadic,\n\tmonadic: strategyMonadic\n};\n//#endregion\nexport { memoize, strategies };\n\n//# sourceMappingURL=index.js.map","import { memoize, strategies } from \"@formatjs/fast-memoize\";\nexport function repeat(s, times) {\n\tif (typeof s.repeat === \"function\") {\n\t\treturn s.repeat(times);\n\t}\n\tconst arr = Array.from({ length: times });\n\tfor (let i = 0; i < arr.length; i++) {\n\t\tarr[i] = s;\n\t}\n\treturn arr.join(\"\");\n}\nexport function setInternalSlot(map, pl, field, value) {\n\tif (!map.get(pl)) {\n\t\tmap.set(pl, Object.create(null));\n\t}\n\tconst slots = map.get(pl);\n\tslots[field] = value;\n}\nexport function setMultiInternalSlots(map, pl, props) {\n\tfor (const k of Object.keys(props)) {\n\t\tsetInternalSlot(map, pl, k, props[k]);\n\t}\n}\nexport function getInternalSlot(map, pl, field) {\n\treturn getMultiInternalSlots(map, pl, field)[field];\n}\nexport function getMultiInternalSlots(map, pl, ...fields) {\n\tconst slots = map.get(pl);\n\tif (!slots) {\n\t\tthrow new TypeError(`${pl} InternalSlot has not been initialized`);\n\t}\n\treturn fields.reduce((all, f) => {\n\t\tall[f] = slots[f];\n\t\treturn all;\n\t}, Object.create(null));\n}\nexport function isLiteralPart(patternPart) {\n\treturn patternPart.type === \"literal\";\n}\n/*\n17 ECMAScript Standard Built-in Objects:\nEvery built-in Function object, including constructors, that is not\nidentified as an anonymous function has a name property whose value\nis a String.\n\nUnless otherwise specified, the name property of a built-in Function\nobject, if it exists, has the attributes { [[Writable]]: false,\n[[Enumerable]]: false, [[Configurable]]: true }.\n*/\nexport function defineProperty(target, name, { value }) {\n\tObject.defineProperty(target, name, {\n\t\tconfigurable: true,\n\t\tenumerable: false,\n\t\twritable: true,\n\t\tvalue\n\t});\n}\n/**\n* 7.3.5 CreateDataProperty\n* @param target\n* @param name\n* @param value\n*/\nexport function createDataProperty(target, name, value) {\n\tObject.defineProperty(target, name, {\n\t\tconfigurable: true,\n\t\tenumerable: true,\n\t\twritable: true,\n\t\tvalue\n\t});\n}\nexport const UNICODE_EXTENSION_SEQUENCE_REGEX = /-u(?:-[0-9a-z]{2,8})+/gi;\nexport function invariant(condition, message, Err = Error) {\n\tif (!condition) {\n\t\tthrow new Err(message);\n\t}\n}\nexport const createMemoizedNumberFormat = memoize((...args) => new Intl.NumberFormat(...args), { strategy: strategies.variadic });\nexport const createMemoizedPluralRules = memoize((...args) => new Intl.PluralRules(...args), { strategy: strategies.variadic });\nexport const createMemoizedLocale = memoize((...args) => new Intl.Locale(...args), { strategy: strategies.variadic });\nexport const createMemoizedListFormat = memoize((...args) => new Intl.ListFormat(...args), { strategy: strategies.variadic });\n","import { invariant } from \"#packages/ecma402-abstract/utils.js\";\n/**\n* Partition a pattern into a list of literals and placeholders\n* https://tc39.es/ecma402/#sec-partitionpattern\n* @param pattern\n*/\nexport function PartitionPattern(pattern) {\n\tconst result = [];\n\tlet beginIndex = pattern.indexOf(\"{\");\n\tlet endIndex = 0;\n\tlet nextIndex = 0;\n\tconst length = pattern.length;\n\twhile (beginIndex < pattern.length && beginIndex > -1) {\n\t\tendIndex = pattern.indexOf(\"}\", beginIndex);\n\t\tinvariant(endIndex > beginIndex, `Invalid pattern ${pattern}`);\n\t\tif (beginIndex > nextIndex) {\n\t\t\tresult.push({\n\t\t\t\ttype: \"literal\",\n\t\t\t\tvalue: pattern.substring(nextIndex, beginIndex)\n\t\t\t});\n\t\t}\n\t\tresult.push({\n\t\t\ttype: pattern.substring(beginIndex + 1, endIndex),\n\t\t\tvalue: undefined\n\t\t});\n\t\tnextIndex = endIndex + 1;\n\t\tbeginIndex = pattern.indexOf(\"{\", nextIndex);\n\t}\n\tif (nextIndex < length) {\n\t\tresult.push({\n\t\t\ttype: \"literal\",\n\t\t\tvalue: pattern.substring(nextIndex, length)\n\t\t});\n\t}\n\treturn result;\n}\n","/**\n* https://tc39.es/ecma262/#sec-toobject\n*/\nexport function ToObject(arg) {\n\tif (arg == null) {\n\t\tthrow new TypeError(\"undefined/null cannot be converted to object\");\n\t}\n\treturn Object(arg);\n}\n","import { LookupSupportedLocales } from \"@formatjs/intl-localematcher\";\nimport { ToObject } from \"#packages/ecma262-abstract/ToObject.js\";\nimport { GetOption } from \"#packages/ecma402-abstract/GetOption.js\";\n/**\n* https://tc39.es/ecma402/#sec-supportedlocales\n* @param availableLocales\n* @param requestedLocales\n* @param options\n*/\nexport function SupportedLocales(availableLocales, requestedLocales, options) {\n\tlet matcher = \"best fit\";\n\tif (options !== undefined) {\n\t\toptions = ToObject(options);\n\t\tmatcher = GetOption(options, \"localeMatcher\", \"string\", [\"lookup\", \"best fit\"], \"best fit\");\n\t}\n\tif (matcher === \"best fit\") {\n\t\treturn LookupSupportedLocales(Array.from(availableLocales), requestedLocales);\n\t}\n\treturn LookupSupportedLocales(Array.from(availableLocales), requestedLocales);\n}\n","import {CanonicalizeLocaleList} from '#packages/ecma402-abstract/CanonicalizeLocaleList.js'\nimport {GetOption} from '#packages/ecma402-abstract/GetOption.js'\nimport {GetOptionsObject} from '#packages/ecma402-abstract/GetOptionsObject.js'\nimport {PartitionPattern} from '#packages/ecma402-abstract/PartitionPattern.js'\nimport {SupportedLocales} from '#packages/ecma402-abstract/SupportedLocales.js'\nimport {\n type ListPatternData,\n type ListPatternFieldsData,\n type ListPatternLocaleData,\n} from '#packages/ecma402-abstract/types/list.js'\nimport {\n type LiteralPart,\n getInternalSlot,\n invariant,\n isLiteralPart,\n setInternalSlot,\n} from '#packages/ecma402-abstract/utils.js'\nimport {ResolveLocale} from '@formatjs/intl-localematcher'\n\nexport interface IntlListFormatOptions {\n /**\n * The locale matching algorithm to use.\n * Possible values are \"lookup\" and \"best fit\"; the default is \"best fit\".\n * For information about this option, see\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation.\n */\n localeMatcher?: 'best fit' | 'lookup'\n /**\n * The format of output message.\n * Possible values are :\n * - \"conjunction\" that stands for \"and\"-based lists (default, e.g., \"A, B, and C\")\n * - \"disjunction\" that stands for \"or\"-based lists (e.g., \"A, B, or C\").\n * - \"unit\" stands for lists of values with units (e.g., \"5 pounds, 12 ounces\").\n */\n type?: 'conjunction' | 'disjunction' | 'unit'\n /**\n * The length of the formatted message.\n * Possible values are:\n * - \"long\" (default, e.g., \"A, B, and C\");\n * - \"short\" (e.g., \"A, B, C\"), or\n * - \"narrow\" (e.g., \"A B C\").\n * When style is \"short\" or \"narrow\", \"unit\" is the only allowed value for the type option.\n */\n style?: 'long' | 'short' | 'narrow'\n}\n\nexport interface ResolvedIntlListFormatOptions {\n /**\n * A string with a BCP 47 language tag, or an array of such strings.\n * For the general form and interpretation of the locales argument,\n * see the [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation) page.\n */\n locale: string\n /**\n * The format of output message.\n * Possible values are :\n * - \"conjunction\" that stands for \"and\"-based lists (default, e.g., \"A, B, and C\")\n * - \"disjunction\" that stands for \"or\"-based lists (e.g., \"A, B, or C\").\n * - \"unit\" stands for lists of values with units (e.g., \"5 pounds, 12 ounces\").\n */\n type: 'conjunction' | 'disjunction' | 'unit'\n /**\n * The length of the formatted message.\n * Possible values are:\n * - \"long\" (default, e.g., \"A, B, and C\");\n * - \"short\" (e.g., \"A, B, C\"), or\n * - \"narrow\" (e.g., \"A B C\").\n * When style is \"short\" or \"narrow\", \"unit\" is the only allowed value for the type option.\n */\n style: 'long' | 'short' | 'narrow'\n}\n\nexport type Part<T = string> = LiteralPart | ElementPart | ElementPart<T>\n\nexport interface ElementPart<T = string> {\n type: 'element'\n value: T\n}\n\ninterface Placeable {\n type: string\n value: string\n}\n\ninterface ListFormatInternal {\n style: IntlListFormatOptions['style']\n type: IntlListFormatOptions['type']\n locale: string\n templatePair: string\n templateStart: string\n templateEnd: string\n templateMiddle: string\n initializedListFormat: boolean\n}\n\nfunction validateInstance(instance: any, method: string) {\n if (!(instance instanceof ListFormat)) {\n throw new TypeError(\n `Method Intl.ListFormat.prototype.${method} called on incompatible receiver ${String(\n instance\n )}`\n )\n }\n}\n\n/**\n * https://tc39.es/proposal-intl-list-format/#sec-createstringlistfromiterable\n * @param iterable list\n */\nfunction stringListFromIterable(iterable: Iterable<unknown>): string[] {\n if (typeof iterable !== 'object') return []\n const elements: string[] = []\n const iterator = iterable[Symbol.iterator]()\n let result: IteratorResult<unknown>\n while (true) {\n result = iterator.next()\n if (result.done) break\n if (typeof result.value !== 'string') {\n const nextValue = result.value\n throw new TypeError(`Iterable yielded ${nextValue} which is not a string`)\n }\n elements.push(result.value)\n }\n return elements\n}\n\nfunction createPartsFromList(\n internalSlotMap: WeakMap<ListFormat, ListFormatInternal>,\n lf: ListFormat,\n list: string[]\n) {\n const size = list.length\n if (size === 0) {\n return []\n }\n if (size === 2) {\n const pattern = getInternalSlot(internalSlotMap, lf, 'templatePair')\n const first = {type: 'element', value: list[0]}\n const second = {type: 'element', value: list[1]}\n return deconstructPattern(pattern, {'0': first, '1': second})\n }\n const last = {\n type: 'element',\n value: list[size - 1],\n }\n let parts: Placeable[] | Placeable = last\n let i = size - 2\n while (i >= 0) {\n let pattern\n if (i === 0) {\n pattern = getInternalSlot(internalSlotMap, lf, 'templateStart')\n } else if (i < size - 2) {\n pattern = getInternalSlot(internalSlotMap, lf, 'templateMiddle')\n } else {\n pattern = getInternalSlot(internalSlotMap, lf, 'templateEnd')\n }\n const head = {type: 'element', value: list[i]}\n parts = deconstructPattern(pattern, {'0': head, '1': parts})\n i--\n }\n return parts\n}\n\nfunction deconstructPattern(\n pattern: string,\n placeables: Record<string, Placeable | Placeable[]>\n) {\n const patternParts = PartitionPattern(pattern)\n const result: Placeable[] = []\n for (const patternPart of patternParts) {\n const {type: part} = patternPart\n if (isLiteralPart(patternPart)) {\n result.push({\n type: 'literal',\n value: patternPart.value,\n })\n } else {\n invariant(part in placeables, `${part} is missing from placables`)\n const subst = placeables[part]\n if (Array.isArray(subst)) {\n result.push(...subst)\n } else {\n result.push(subst)\n }\n }\n }\n return result\n}\n\nexport default class ListFormat {\n constructor(locales?: string | string[], options?: IntlListFormatOptions) {\n // test262/test/intl402/ListFormat/constructor/constructor/newtarget-undefined.js\n // Cannot use `new.target` bc of IE11 & TS transpiles it to something else\n const newTarget =\n this && this instanceof ListFormat ? this.constructor : void 0\n if (!newTarget) {\n throw new TypeError(\"Intl.ListFormat must be called with 'new'\")\n }\n setInternalSlot(\n ListFormat.__INTERNAL_SLOT_MAP__,\n this,\n 'initializedListFormat',\n true\n )\n const requestedLocales = CanonicalizeLocaleList(locales)\n const opt: any = Object.create(null)\n const opts = GetOptionsObject(options)\n const matcher = GetOption(\n opts,\n 'localeMatcher',\n 'string',\n ['best fit', 'lookup'],\n 'best fit'\n )\n opt.localeMatcher = matcher\n const {localeData} = ListFormat\n const r = ResolveLocale(\n ListFormat.availableLocales,\n requestedLocales,\n opt,\n ListFormat.relevantExtensionKeys,\n localeData,\n ListFormat.getDefaultLocale\n )\n setInternalSlot(ListFormat.__INTERNAL_SLOT_MAP__, this, 'locale', r.locale)\n const type: keyof ListPatternFieldsData = GetOption(\n opts,\n 'type',\n 'string',\n ['conjunction', 'disjunction', 'unit'],\n 'conjunction'\n )\n setInternalSlot(ListFormat.__INTERNAL_SLOT_MAP__, this, 'type', type)\n const style: keyof ListPatternData = GetOption(\n opts,\n 'style',\n 'string',\n ['long', 'short', 'narrow'],\n 'long'\n )\n setInternalSlot(ListFormat.__INTERNAL_SLOT_MAP__, this, 'style', style)\n const {dataLocale} = r\n const dataLocaleData = localeData[dataLocale]\n invariant(!!dataLocaleData, `Missing locale data for ${dataLocale}`)\n const dataLocaleTypes = dataLocaleData[type]\n const templates = dataLocaleTypes![style]!\n setInternalSlot(\n ListFormat.__INTERNAL_SLOT_MAP__,\n this,\n 'templatePair',\n templates.pair\n )\n setInternalSlot(\n ListFormat.__INTERNAL_SLOT_MAP__,\n this,\n 'templateStart',\n templates.start\n )\n setInternalSlot(\n ListFormat.__INTERNAL_SLOT_MAP__,\n this,\n 'templateMiddle',\n templates.middle\n )\n setInternalSlot(\n ListFormat.__INTERNAL_SLOT_MAP__,\n this,\n 'templateEnd',\n templates.end\n )\n }\n format(elements: Iterable<string>): string {\n validateInstance(this, 'format')\n let result = ''\n const parts = createPartsFromList(\n ListFormat.__INTERNAL_SLOT_MAP__,\n this,\n stringListFromIterable(elements)\n )\n if (!Array.isArray(parts)) {\n return parts.value\n }\n for (const p of parts) {\n result += p.value\n }\n return result\n }\n formatToParts(elements: Iterable<string>): Part[] {\n validateInstance(this, 'format')\n const parts = createPartsFromList(\n ListFormat.__INTERNAL_SLOT_MAP__,\n this,\n stringListFromIterable(elements)\n )\n if (!Array.isArray(parts)) {\n return [parts as Part]\n }\n const result: Part[] = []\n for (const part of parts) {\n result.push({...part} as Part)\n }\n return result\n }\n\n resolvedOptions(): ResolvedIntlListFormatOptions {\n validateInstance(this, 'resolvedOptions')\n return {\n locale: getInternalSlot(ListFormat.__INTERNAL_SLOT_MAP__, this, 'locale'),\n type: getInternalSlot(ListFormat.__INTERNAL_SLOT_MAP__, this, 'type')!,\n style: getInternalSlot(ListFormat.__INTERNAL_SLOT_MAP__, this, 'style')!,\n }\n }\n\n public static supportedLocalesOf(\n locales: string | string[],\n options?: Pick<IntlListFormatOptions, 'localeMatcher'>\n ): string[] {\n // test262/test/intl402/ListFormat/constructor/supportedLocalesOf/result-type.js\n return SupportedLocales(\n ListFormat.availableLocales,\n CanonicalizeLocaleList(locales),\n options\n )\n }\n\n public static __addLocaleData(...data: ListPatternLocaleData[]): void {\n for (const {data: d, locale} of data) {\n const minimizedLocale = new (Intl as any).Locale(locale)\n .minimize()\n .toString()\n ListFormat.localeData[locale] = ListFormat.localeData[minimizedLocale] = d\n ListFormat.availableLocales.add(minimizedLocale)\n ListFormat.availableLocales.add(locale)\n if (!ListFormat.__defaultLocale) {\n ListFormat.__defaultLocale = minimizedLocale\n }\n }\n }\n static localeData: Record<string, ListPatternFieldsData | undefined> = {}\n private static availableLocales = new Set<string>()\n private static __defaultLocale = ''\n private static getDefaultLocale() {\n return ListFormat.__defaultLocale\n }\n private static relevantExtensionKeys = []\n public static polyfilled = true\n private static readonly __INTERNAL_SLOT_MAP__ = new WeakMap<\n ListFormat,\n ListFormatInternal\n >()\n}\n\ntry {\n // IE11 does not have Symbol\n if (typeof Symbol !== 'undefined') {\n Object.defineProperty(ListFormat.prototype, Symbol.toStringTag, {\n value: 'Intl.ListFormat',\n writable: false,\n enumerable: false,\n configurable: true,\n })\n }\n\n // https://github.com/tc39/test262/blob/master/test/intl402/ListFormat/constructor/length.js\n Object.defineProperty(ListFormat.prototype.constructor, 'length', {\n value: 0,\n writable: false,\n enumerable: false,\n configurable: true,\n })\n // https://github.com/tc39/test262/blob/master/test/intl402/ListFormat/constructor/supportedLocalesOf/length.js\n Object.defineProperty(ListFormat.supportedLocalesOf, 'length', {\n value: 1,\n writable: false,\n enumerable: false,\n configurable: true,\n })\n} catch {\n // Meta fix so we're test262-compliant, not important\n}\n","export const supportedLocales = [\n\t\"aa\",\n\t\"aa-DJ\",\n\t\"aa-ER\",\n\t\"ab\",\n\t\"af\",\n\t\"af-NA\",\n\t\"agq\",\n\t\"ak\",\n\t\"am\",\n\t\"an\",\n\t\"ann\",\n\t\"apc\",\n\t\"ar\",\n\t\"ar-AE\",\n\t\"ar-BH\",\n\t\"ar-DJ\",\n\t\"ar-DZ\",\n\t\"ar-EG\",\n\t\"ar-EH\",\n\t\"ar-ER\",\n\t\"ar-IL\",\n\t\"ar-IQ\",\n\t\"ar-JO\",\n\t\"ar-KM\",\n\t\"ar-KW\",\n\t\"ar-LB\",\n\t\"ar-LY\",\n\t\"ar-MA\",\n\t\"ar-MR\",\n\t\"ar-OM\",\n\t\"ar-PS\",\n\t\"ar-QA\",\n\t\"ar-SA\",\n\t\"ar-SD\",\n\t\"ar-SO\",\n\t\"ar-SS\",\n\t\"ar-SY\",\n\t\"ar-TD\",\n\t\"ar-TN\",\n\t\"ar-YE\",\n\t\"arn\",\n\t\"as\",\n\t\"asa\",\n\t\"ast\",\n\t\"az\",\n\t\"az-Arab\",\n\t\"az-Arab-IQ\",\n\t\"az-Arab-TR\",\n\t\"az-Cyrl\",\n\t\"az-Latn\",\n\t\"ba\",\n\t\"bal\",\n\t\"bal-Arab\",\n\t\"bal-Latn\",\n\t\"bas\",\n\t\"be\",\n\t\"be-tarask\",\n\t\"bem\",\n\t\"bew\",\n\t\"bez\",\n\t\"bg\",\n\t\"bgc\",\n\t\"bgn\",\n\t\"bgn-AE\",\n\t\"bgn-AF\",\n\t\"bgn-IR\",\n\t\"bgn-OM\",\n\t\"bho\",\n\t\"blo\",\n\t\"blt\",\n\t\"bm\",\n\t\"bm-Nkoo\",\n\t\"bn\",\n\t\"bn-IN\",\n\t\"bo\",\n\t\"bo-IN\",\n\t\"bqi\",\n\t\"br\",\n\t\"brx\",\n\t\"bs\",\n\t\"bs-Cyrl\",\n\t\"bs-Latn\",\n\t\"bss\",\n\t\"bua\",\n\t\"byn\",\n\t\"ca\",\n\t\"ca-AD\",\n\t\"ca-ES-valencia\",\n\t\"ca-FR\",\n\t\"ca-IT\",\n\t\"cad\",\n\t\"cch\",\n\t\"ccp\",\n\t\"ccp-IN\",\n\t\"ce\",\n\t\"ceb\",\n\t\"cgg\",\n\t\"cho\",\n\t\"chr\",\n\t\"cic\",\n\t\"ckb\",\n\t\"ckb-IR\",\n\t\"co\",\n\t\"cop\",\n\t\"cs\",\n\t\"csw\",\n\t\"cu\",\n\t\"cv\",\n\t\"cy\",\n\t\"da\",\n\t\"da-GL\",\n\t\"dav\",\n\t\"de\",\n\t\"de-AT\",\n\t\"de-BE\",\n\t\"de-CH\",\n\t\"de-IT\",\n\t\"de-LI\",\n\t\"de-LU\",\n\t\"dje\",\n\t\"doi\",\n\t\"dsb\",\n\t\"dua\",\n\t\"dv\",\n\t\"dyo\",\n\t\"dz\",\n\t\"ebu\",\n\t\"ee\",\n\t\"ee-TG\",\n\t\"el\",\n\t\"el-CY\",\n\t\"el-polyton\",\n\t\"en\",\n\t\"en-001\",\n\t\"en-150\",\n\t\"en-AE\",\n\t\"en-AG\",\n\t\"en-AI\",\n\t\"en-AS\",\n\t\"en-AT\",\n\t\"en-AU\",\n\t\"en-BB\",\n\t\"en-BE\",\n\t\"en-BI\",\n\t\"en-BM\",\n\t\"en-BS\",\n\t\"en-BW\",\n\t\"en-BZ\",\n\t\"en-CA\",\n\t\"en-CC\",\n\t\"en-CH\",\n\t\"en-CK\",\n\t\"en-CM\",\n\t\"en-CX\",\n\t\"en-CY\",\n\t\"en-CZ\",\n\t\"en-DE\",\n\t\"en-DG\",\n\t\"en-DK\",\n\t\"en-DM\",\n\t\"en-Dsrt\",\n\t\"en-EE\",\n\t\"en-ER\",\n\t\"en-ES\",\n\t\"en-FI\",\n\t\"en-FJ\",\n\t\"en-FK\",\n\t\"en-FM\",\n\t\"en-FR\",\n\t\"en-GB\",\n\t\"en-GD\",\n\t\"en-GE\",\n\t\"en-GG\",\n\t\"en-GH\",\n\t\"en-GI\",\n\t\"en-GM\",\n\t\"en-GS\",\n\t\"en-GU\",\n\t\"en-GY\",\n\t\"en-HK\",\n\t\"en-HU\",\n\t\"en-ID\",\n\t\"en-IE\",\n\t\"en-IL\",\n\t\"en-IM\",\n\t\"en-IN\",\n\t\"en-IO\",\n\t\"en-IT\",\n\t\"en-JE\",\n\t\"en-JM\",\n\t\"en-JP\",\n\t\"en-KE\",\n\t\"en-KI\",\n\t\"en-KN\",\n\t\"en-KY\",\n\t\"en-LC\",\n\t\"en-LR\",\n\t\"en-LS\",\n\t\"en-LT\",\n\t\"en-LV\",\n\t\"en-MG\",\n\t\"en-MH\",\n\t\"en-MO\",\n\t\"en-MP\",\n\t\"en-MS\",\n\t\"en-MT\",\n\t\"en-MU\",\n\t\"en-MV\",\n\t\"en-MW\",\n\t\"en-MY\",\n\t\"en-NA\",\n\t\"en-NF\",\n\t\"en-NG\",\n\t\"en-NL\",\n\t\"en-NO\",\n\t\"en-NR\",\n\t\"en-NU\",\n\t\"en-NZ\",\n\t\"en-PG\",\n\t\"en-PH\",\n\t\"en-PK\",\n\t\"en-PL\",\n\t\"en-PN\",\n\t\"en-PR\",\n\t\"en-PT\",\n\t\"en-PW\",\n\t\"en-RO\",\n\t\"en-RW\",\n\t\"en-SB\",\n\t\"en-SC\",\n\t\"en-SD\",\n\t\"en-SE\",\n\t\"en-SG\",\n\t\"en-SH\",\n\t\"en-SI\",\n\t\"en-SK\",\n\t\"en-SL\",\n\t\"en-SS\",\n\t\"en-SX\",\n\t\"en-SZ\",\n\t\"en-Shaw\",\n\t\"en-TC\",\n\t\"en-TK\",\n\t\"en-TO\",\n\t\"en-TT\",\n\t\"en-TV\",\n\t\"en-TZ\",\n\t\"en-UA\",\n\t\"en-UG\",\n\t\"en-UM\",\n\t\"en-VC\",\n\t\"en-VG\",\n\t\"en-VI\",\n\t\"en-VU\",\n\t\"en-WS\",\n\t\"en-ZA\",\n\t\"en-ZM\",\n\t\"en-ZW\",\n\t\"eo\",\n\t\"es\",\n\t\"es-419\",\n\t\"es-AR\",\n\t\"es-BO\",\n\t\"es-BR\",\n\t\"es-BZ\",\n\t\"es-CL\",\n\t\"es-CO\",\n\t\"es-CR\",\n\t\"es-CU\",\n\t\"es-DO\",\n\t\"es-EA\",\n\t\"es-EC\",\n\t\"es-GQ\",\n\t\"es-GT\",\n\t\"es-HN\",\n\t\"es-IC\",\n\t\"es-MX\",\n\t\"es-NI\",\n\t\"es-PA\",\n\t\"es-PE\",\n\t\"es-PH\",\n\t\"es-PR\",\n\t\"es-PY\",\n\t\"es-SV\",\n\t\"es-US\",\n\t\"es-UY\",\n\t\"es-VE\",\n\t\"et\",\n\t\"eu\",\n\t\"ewo\",\n\t\"fa\",\n\t\"fa-AF\",\n\t\"ff\",\n\t\"ff-Adlm\",\n\t\"ff-Adlm-BF\",\n\t\"ff-Adlm-CM\",\n\t\"ff-Adlm-GH\",\n\t\"ff-Adlm-GM\",\n\t\"ff-Adlm-GW\",\n\t\"ff-Adlm-LR\",\n\t\"ff-Adlm-MR\",\n\t\"ff-Adlm-NE\",\n\t\"ff-Adlm-NG\",\n\t\"ff-Adlm-SL\",\n\t\"ff-Adlm-SN\",\n\t\"ff-Latn\",\n\t\"ff-Latn-BF\",\n\t\"ff-Latn-CM\",\n\t\"ff-Latn-GH\",\n\t\"ff-Latn-GM\",\n\t\"ff-Latn-GN\",\n\t\"ff-Latn-GW\",\n\t\"ff-Latn-LR\",\n\t\"ff-Latn-MR\",\n\t\"ff-Latn-NE\",\n\t\"ff-Latn-NG\",\n\t\"ff-Latn-SL\",\n\t\"fi\",\n\t\"fil\",\n\t\"fo\",\n\t\"fo-DK\",\n\t\"fr\",\n\t\"fr-BE\",\n\t\"fr-BF\",\n\t\"fr-BI\",\n\t\"fr-BJ\",\n\t\"fr-BL\",\n\t\"fr-CA\",\n\t\"fr-CD\",\n\t\"fr-CF\",\n\t\"fr-CG\",\n\t\"fr-CH\",\n\t\"fr-CI\",\n\t\"fr-CM\",\n\t\"fr-DJ\",\n\t\"fr-DZ\",\n\t\"fr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n\",\n\t\"kab\",\n\t\"kaj\",\n\t\"kam\",\n\t\"kcg\",\n\t\"kde\",\n\t\"kea\",\n\t\"kek\",\n\t\"ken\",\n\t\"kgp\",\n\t\"khq\",\n\t\"ki\",\n\t\"kk\",\n\t\"kk-Arab\",\n\t\"kk-Cyrl\",\n\t\"kk-KZ\",\n\t\"kkj\",\n\t\"kl\",\n\t\"kln\",\n\t\"km\",\n\t\"kn\",\n\t\"ko\",\n\t\"ko-CN\",\n\t\"ko-KP\",\n\t\"kok\",\n\t\"kok-Deva\",\n\t\"kok-Latn\",\n\t\"kpe\",\n\t\"kpe-GN\",\n\t\"ks\",\n\t\"ks-Arab\",\n\t\"ks-Deva\",\n\t\"ksb\",\n\t\"ksf\",\n\t\"ksh\",\n\t\"ku\",\n\t\"ku-Arab\",\n\t\"ku-Arab-IR\",\n\t\"ku-Latn\",\n\t\"ku-Latn-IQ\",\n\t\"ku-Latn-SY\",\n\t\"ku-TR\",\n\t\"kw\",\n\t\"kxv\",\n\t\"kxv-Deva\",\n\t\"kxv-Latn\",\n\t\"kxv-Orya\",\n\t\"kxv-Telu\",\n\t\"ky\",\n\t\"la\",\n\t\"lag\",\n\t\"lb\",\n\t\"lg\",\n\t\"lij\",\n\t\"lkt\",\n\t\"lld\",\n\t\"lmo\",\n\t\"ln\",\n\t\"ln-AO\",\n\t\"ln-CF\",\n\t\"ln-CG\",\n\t\"lo\",\n\t\"lrc\",\n\t\"lrc-IQ\",\n\t\"lt\",\n\t\"ltg\",\n\t\"lu\",\n\t\"luo\",\n\t\"luy\",\n\t\"lv\",\n\t\"lzz\",\n\t\"mai\",\n\t\"mas\",\n\t\"mas-TZ\",\n\t\"mdf\",\n\t\"mer\",\n\t\"mfe\",\n\t\"mg\",\n\t\"mgh\",\n\t\"mgo\",\n\t\"mhn\",\n\t\"mi\",\n\t\"mic\",\n\t\"mk\",\n\t\"ml\",\n\t\"mn\",\n\t\"mn-Mong\",\n\t\"mn-Mong-MN\",\n\t\"mni\",\n\t\"mni-Beng\",\n\t\"mni-Mtei\",\n\t\"moh\",\n\t\"mr\",\n\t\"ms\",\n\t\"ms-Arab\",\n\t\"ms-Arab-BN\",\n\t\"ms-BN\",\n\t\"ms-ID\",\n\t\"ms-SG\",\n\t\"mt\",\n\t\"mua\",\n\t\"mus\",\n\t\"mww\",\n\t\"mww-Hmnp\",\n\t\"my\",\n\t\"myv\",\n\t\"mzn\",\n\t\"naq\",\n\t\"nb\",\n\t\"nb-SJ\",\n\t\"nd\",\n\t\"nds\",\n\t\"nds-NL\",\n\t\"ne\",\n\t\"ne-IN\",\n\t\"nl\",\n\t\"nl-AW\",\n\t\"nl-BE\",\n\t\"nl-BQ\",\n\t\"nl-CW\",\n\t\"nl-SR\",\n\t\"nl-SX\",\n\t\"nmg\",\n\t\"nn\",\n\t\"nnh\",\n\t\"no\",\n\t\"nqo\",\n\t\"nr\",\n\t\"nso\",\n\t\"nus\",\n\t\"nv\",\n\t\"ny\",\n\t\"nyn\",\n\t\"oc\",\n\t\"oc-ES\",\n\t\"oka\",\n\t\"oka-US\",\n\t\"om\",\n\t\"om-KE\",\n\t\"or\",\n\t\"os\",\n\t\"os-RU\",\n\t\"osa\",\n\t\"pa\",\n\t\"pa-Arab\",\n\t\"pa-Guru\",\n\t\"pap\",\n\t\"pap-AW\",\n\t\"pcm\",\n\t\"pi\",\n\t\"pi-Latn\",\n\t\"pis\",\n\t\"pl\",\n\t\"pms\",\n\t\"prg\",\n\t\"ps\",\n\t\"ps-PK\",\n\t\"pt\",\n\t\"pt-AO\",\n\t\"pt-CH\",\n\t\"pt-CV\",\n\t\"pt-GQ\",\n\t\"pt-GW\",\n\t\"pt-LU\",\n\t\"pt-MO\",\n\t\"pt-MZ\",\n\t\"pt-PT\",\n\t\"pt-ST\",\n\t\"pt-TL\",\n\t\"qu\",\n\t\"qu-BO\",\n\t\"qu-EC\",\n\t\"quc\",\n\t\"raj\",\n\t\"rhg\",\n\t\"rhg-Rohg\",\n\t\"rhg-Rohg-BD\",\n\t\"rif\",\n\t\"rm\",\n\t\"rn\",\n\t\"ro\",\n\t\"ro-MD\",\n\t\"rof\",\n\t\"ru\",\n\t\"ru-BY\",\n\t\"ru-KG\",\n\t\"ru-KZ\",\n\t\"ru-MD\",\n\t\"ru-UA\",\n\t\"rw\",\n\t\"rwk\",\n\t\"sa\",\n\t\"sah\",\n\t\"saq\",\n\t\"sat\",\n\t\"sat-Deva\",\n\t\"sat-Olck\",\n\t\"sbp\",\n\t\"sc\",\n\t\"scn\",\n\t\"sd\",\n\t\"sd-Arab\",\n\t\"sd-Deva\",\n\t\"sdh\",\n\t\"sdh-IQ\",\n\t\"se\",\n\t\"se-FI\",\n\t\"se-SE\",\n\t\"seh\",\n\t\"ses\",\n\t\"sg\",\n\t\"sgs\",\n\t\"shi\",\n\t\"shi-Latn\",\n\t\"shi-Tfng\",\n\t\"shn\",\n\t\"shn-TH\",\n\t\"si\",\n\t\"sid\",\n\t\"sk\",\n\t\"skr\",\n\t\"sl\",\n\t\"sma\",\n\t\"sma-NO\",\n\t\"smj\",\n\t\"smj-NO\",\n\t\"smn\",\n\t\"sms\",\n\t\"sn\",\n\t\"so\",\n\t\"so-DJ\",\n\t\"so-ET\",\n\t\"so-KE\",\n\t\"sq\",\n\t\"sq-MK\",\n\t\"sq-XK\",\n\t\"sr\",\n\t\"sr-Cyrl\",\n\t\"sr-Cyrl-BA\",\n\t\"sr-Cyrl-ME\",\n\t\"sr-Cyrl-XK\",\n\t\"sr-Latn\",\n\t\"sr-Latn-BA\",\n\t\"sr-Latn-ME\",\n\t\"sr-Latn-XK\",\n\t\"ss\",\n\t\"ss-SZ\",\n\t\"ssy\",\n\t\"st\",\n\t\"st-LS\",\n\t\"su\",\n\t\"su-Latn\",\n\t\"suz\",\n\t\"suz-Deva\",\n\t\"suz-Sunu\",\n\t\"sv\",\n\t\"sv-AX\",\n\t\"sv-FI\",\n\t\"sw\",\n\t\"sw-CD\",\n\t\"sw-KE\",\n\t\"sw-UG\",\n\t\"syr\",\n\t\"syr-SY\",\n\t\"szl\",\n\t\"ta\",\n\t\"ta-LK\",\n\t\"ta-MY\",\n\t\"ta-SG\",\n\t\"te\",\n\t\"teo\",\n\t\"teo-KE\",\n\t\"tg\",\n\t\"th\",\n\t\"ti\",\n\t\"ti-ER\",\n\t\"tig\",\n\t\"tk\",\n\t\"tn\",\n\t\"tn-BW\",\n\t\"to\",\n\t\"tok\",\n\t\"tpi\",\n\t\"tr\",\n\t\"tr-CY\",\n\t\"trv\",\n\t\"trw\",\n\t\"ts\",\n\t\"tt\",\n\t\"twq\",\n\t\"tyv\",\n\t\"tzm\",\n\t\"ug\",\n\t\"uk\",\n\t\"und\",\n\t\"ur\",\n\t\"ur-IN\",\n\t\"uz\",\n\t\"uz-Arab\",\n\t\"uz-Cyrl\",\n\t\"uz-Latn\",\n\t\"vai\",\n\t\"vai-Latn\",\n\t\"vai-Vaii\",\n\t\"ve\",\n\t\"vec\",\n\t\"vi\",\n\t\"vmw\",\n\t\"vo\",\n\t\"vun\",\n\t\"wa\",\n\t\"wae\",\n\t\"wal\",\n\t\"wbp\",\n\t\"wo\",\n\t\"xh\",\n\t\"xnr\",\n\t\"xog\",\n\t\"yav\",\n\t\"yi\",\n\t\"yo\",\n\t\"yo-BJ\",\n\t\"yrl\",\n\t\"yrl-CO\",\n\t\"yrl-VE\",\n\t\"yue\",\n\t\"yue-Hans\",\n\t\"yue-Hant\",\n\t\"yue-Hant-CN\",\n\t\"yue-Hant-MO\",\n\t\"za\",\n\t\"zgh\",\n\t\"zh\",\n\t\"zh-Hans\",\n\t\"zh-Hans-HK\",\n\t\"zh-Hans-MO\",\n\t\"zh-Hans-MY\",\n\t\"zh-Hans-SG\",\n\t\"zh-Hant\",\n\t\"zh-Hant-HK\",\n\t\"zh-Hant-MO\",\n\t\"zh-Hant-MY\",\n\t\"zh-Latn\",\n\t\"zu\"\n];\n","import {match} from '@formatjs/intl-localematcher'\nimport {supportedLocales} from '@formatjs_generated/cldr.supported-locales/intl-listformat.js'\n\nfunction supportedLocalesOf(locale?: string | string[]) {\n if (!locale) {\n return true\n }\n const locales = Array.isArray(locale) ? locale : [locale]\n return (\n (Intl as any).ListFormat.supportedLocalesOf(locales).length ===\n locales.length\n )\n}\n\nexport function shouldPolyfill(locale = 'en'): string | undefined {\n if (!('ListFormat' in Intl) || !supportedLocalesOf(locale)) {\n return locale ? match([locale], supportedLocales, 'en') : undefined\n }\n}\n","import ListFormat from '#packages/intl-listformat/index.js'\nimport {shouldPolyfill} from '#packages/intl-listformat/should-polyfill.js'\nif (shouldPolyfill()) {\n Object.defineProperty(Intl, 'ListFormat', {\n value: ListFormat,\n writable: true,\n enumerable: false,\n configurable: true,\n })\n\n // Drain any locale data that was buffered before polyfill loaded\n const buf = (globalThis as Record<string, unknown>)\n .__FORMATJS_LISTFORMAT_DATA__ as\n | Parameters<(typeof ListFormat)['__addLocaleData']>[0][]\n | undefined\n if (buf) {\n for (const d of buf) ListFormat.__addLocaleData(d)\n delete (globalThis as Record<string, unknown>).__FORMATJS_LISTFORMAT_DATA__\n }\n}\n"],"x_google_ignoreList":[4,10],"mappings":";;;;;;AAIA,SAAgB,uBAAuB,SAAS;AAE/C,QAAO,KAAK,oBAAoB,QAAQ;;;;;;;ACHzC,SAAgB,SAAS,GAAG;AAC3B,KAAI,OAAO,MAAM,SAChB,OAAM,UAAU,4CAA4C;AAE7D,QAAO,OAAO,EAAE;;;;;;;;;;;;ACEjB,SAAgB,UAAU,MAAM,MAAM,MAAM,QAAQ,UAAU;AAC7D,KAAI,OAAO,SAAS,SACnB,OAAM,IAAI,UAAU,4BAA4B;CAEjD,IAAI,QAAQ,KAAK;AACjB,KAAI,UAAU,KAAA,GAAW;AACxB,MAAI,SAAS,aAAa,SAAS,SAClC,OAAM,IAAI,UAAU,eAAe;AAEpC,MAAI,SAAS,UACZ,SAAQ,QAAQ,MAAM;AAEvB,MAAI,SAAS,SACZ,SAAQ,SAAS,MAAM;AAExB,MAAI,WAAW,KAAA,KAAa,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;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;;;AC5vBD,SAAS,mBAAmB,QAA4B;AACtD,KAAI,CAAC,OACH,QAAO;CAET,MAAM,UAAU,MAAM,QAAQ,OAAO,GAAG,SAAS,CAAC,OAAO;AACzD,QACG,KAAa,WAAW,mBAAmB,QAAQ,CAAC,WACrD,QAAQ;;AAIZ,SAAgB,eAAe,SAAS,MAA0B;AAChE,KAAI,EAAE,gBAAgB,SAAS,CAAC,mBAAmB,OAAO,CACxD,QAAO,SAAS,MAAM,CAAC,OAAO,EAAE,kBAAkB,KAAK,GAAG,KAAA;;;;ACd9D,IAAI,gBAAgB,EAAE;AACpB,QAAO,eAAe,MAAM,cAAc;EACxC,OAAO;EACP,UAAU;EACV,YAAY;EACZ,cAAc;EACf,CAAC;CAGF,MAAM,MAAO,WACV;AAGH,KAAI,KAAK;AACP,OAAK,MAAM,KAAK,IAAK,YAAW,gBAAgB,EAAE;AAClD,SAAQ,WAAuC"}
1
+ {"version":3,"file":"polyfill.js","names":[],"sources":["../../ecma402-abstract/CanonicalizeLocaleList.js","../../ecma262-abstract/ToString.js","../../ecma402-abstract/GetOption.js","../../ecma402-abstract/GetOptionsObject.js","../../../node_modules/.aspect_rules_js/@formatjs+fast-memoize@0.0.0/node_modules/@formatjs/fast-memoize/index.js","../../ecma402-abstract/utils.js","../../ecma402-abstract/PartitionPattern.js","../../ecma262-abstract/ToObject.js","../../ecma402-abstract/SupportedLocales.js","../index.ts","../../../node_modules/.aspect_rules_js/@formatjs_generated+cldr.supported-locales@0.0.0/node_modules/@formatjs_generated/cldr.supported-locales/intl-listformat.js","../should-polyfill.ts","../polyfill.ts"],"sourcesContent":["/**\n* http://ecma-international.org/ecma-402/7.0/index.html#sec-canonicalizelocalelist\n* @param locales\n*/\nexport function CanonicalizeLocaleList(locales) {\n\t// TODO\n\treturn Intl.getCanonicalLocales(locales);\n}\n","/**\n* https://tc39.es/ecma262/#sec-tostring\n*/\nexport function ToString(o) {\n\tif (typeof o === \"symbol\") {\n\t\tthrow TypeError(\"Cannot convert a Symbol value to a string\");\n\t}\n\treturn String(o);\n}\n","import { ToString } from \"#packages/ecma262-abstract/ToString.js\";\n/**\n* https://tc39.es/ecma402/#sec-getoption\n* @param opts\n* @param prop\n* @param type\n* @param values\n* @param fallback\n*/\nexport function GetOption(opts, prop, type, values, fallback) {\n\tif (typeof opts !== \"object\") {\n\t\tthrow new TypeError(\"Options must be an object\");\n\t}\n\tlet value = opts[prop];\n\tif (value !== undefined) {\n\t\tif (type !== \"boolean\" && type !== \"string\") {\n\t\t\tthrow new TypeError(\"invalid type\");\n\t\t}\n\t\tif (type === \"boolean\") {\n\t\t\tvalue = Boolean(value);\n\t\t}\n\t\tif (type === \"string\") {\n\t\t\tvalue = ToString(value);\n\t\t}\n\t\tif (values !== undefined && !values.filter((val) => val == value).length) {\n\t\t\tthrow new RangeError(`${value} is not within ${values.join(\", \")}`);\n\t\t}\n\t\treturn value;\n\t}\n\treturn fallback;\n}\n","/**\n* https://tc39.es/ecma402/#sec-getoptionsobject\n* @param options\n* @returns\n*/\nexport function GetOptionsObject(options) {\n\tif (typeof options === \"undefined\") {\n\t\treturn Object.create(null);\n\t}\n\tif (typeof options === \"object\") {\n\t\treturn options;\n\t}\n\tthrow new TypeError(\"Options must be an object\");\n}\n","//#region packages/fast-memoize/index.ts\nfunction memoize(fn, options) {\n\tconst cache = options && options.cache ? options.cache : cacheDefault;\n\tconst serializer = options && options.serializer ? options.serializer : serializerDefault;\n\treturn (options && options.strategy ? options.strategy : strategyDefault)(fn, {\n\t\tcache,\n\t\tserializer\n\t});\n}\nfunction isPrimitive(value) {\n\treturn value == null || typeof value === \"number\" || typeof value === \"boolean\";\n}\nfunction monadic(fn, cache, serializer, arg) {\n\tconst cacheKey = isPrimitive(arg) ? arg : serializer(arg);\n\tlet computedValue = cache.get(cacheKey);\n\tif (typeof computedValue === \"undefined\") {\n\t\tcomputedValue = fn.call(this, arg);\n\t\tcache.set(cacheKey, computedValue);\n\t}\n\treturn computedValue;\n}\nfunction variadic(fn, cache, serializer) {\n\tconst args = Array.prototype.slice.call(arguments, 3);\n\tconst cacheKey = serializer(args);\n\tlet computedValue = cache.get(cacheKey);\n\tif (typeof computedValue === \"undefined\") {\n\t\tcomputedValue = fn.apply(this, args);\n\t\tcache.set(cacheKey, computedValue);\n\t}\n\treturn computedValue;\n}\nfunction assemble(fn, context, strategy, cache, serialize) {\n\treturn strategy.bind(context, fn, cache, serialize);\n}\nfunction strategyDefault(fn, options) {\n\tconst strategy = fn.length === 1 ? monadic : variadic;\n\treturn assemble(fn, this, strategy, options.cache.create(), options.serializer);\n}\nfunction strategyVariadic(fn, options) {\n\treturn assemble(fn, this, variadic, options.cache.create(), options.serializer);\n}\nfunction strategyMonadic(fn, options) {\n\treturn assemble(fn, this, monadic, options.cache.create(), options.serializer);\n}\nconst serializerDefault = function() {\n\treturn JSON.stringify(arguments);\n};\nvar ObjectWithoutPrototypeCache = class {\n\tconstructor() {\n\t\tthis.cache = Object.create(null);\n\t}\n\tget(key) {\n\t\treturn this.cache[key];\n\t}\n\tset(key, value) {\n\t\tthis.cache[key] = value;\n\t}\n};\nconst cacheDefault = { create: function create() {\n\treturn new ObjectWithoutPrototypeCache();\n} };\nconst strategies = {\n\tvariadic: strategyVariadic,\n\tmonadic: strategyMonadic\n};\n//#endregion\nexport { memoize, strategies };\n\n//# sourceMappingURL=index.js.map","import { memoize, strategies } from \"@formatjs/fast-memoize\";\nexport function repeat(s, times) {\n\tif (typeof s.repeat === \"function\") {\n\t\treturn s.repeat(times);\n\t}\n\tconst arr = Array.from({ length: times });\n\tfor (let i = 0; i < arr.length; i++) {\n\t\tarr[i] = s;\n\t}\n\treturn arr.join(\"\");\n}\nexport function setInternalSlot(map, pl, field, value) {\n\tif (!map.get(pl)) {\n\t\tmap.set(pl, Object.create(null));\n\t}\n\tconst slots = map.get(pl);\n\tslots[field] = value;\n}\nexport function setMultiInternalSlots(map, pl, props) {\n\tfor (const k of Object.keys(props)) {\n\t\tsetInternalSlot(map, pl, k, props[k]);\n\t}\n}\nexport function getInternalSlot(map, pl, field) {\n\treturn getMultiInternalSlots(map, pl, field)[field];\n}\nexport function getMultiInternalSlots(map, pl, ...fields) {\n\tconst slots = map.get(pl);\n\tif (!slots) {\n\t\tthrow new TypeError(`${pl} InternalSlot has not been initialized`);\n\t}\n\treturn fields.reduce((all, f) => {\n\t\tall[f] = slots[f];\n\t\treturn all;\n\t}, Object.create(null));\n}\nexport function isLiteralPart(patternPart) {\n\treturn patternPart.type === \"literal\";\n}\n/*\n17 ECMAScript Standard Built-in Objects:\nEvery built-in Function object, including constructors, that is not\nidentified as an anonymous function has a name property whose value\nis a String.\n\nUnless otherwise specified, the name property of a built-in Function\nobject, if it exists, has the attributes { [[Writable]]: false,\n[[Enumerable]]: false, [[Configurable]]: true }.\n*/\nexport function defineProperty(target, name, { value }) {\n\tObject.defineProperty(target, name, {\n\t\tconfigurable: true,\n\t\tenumerable: false,\n\t\twritable: true,\n\t\tvalue\n\t});\n}\nexport function ensureIntl() {\n\tif (typeof Intl === \"undefined\") {\n\t\tObject.defineProperty(globalThis, \"Intl\", {\n\t\t\tconfigurable: true,\n\t\t\tenumerable: false,\n\t\t\twritable: true,\n\t\t\tvalue: {}\n\t\t});\n\t}\n\treturn Intl;\n}\n/**\n* 7.3.5 CreateDataProperty\n* @param target\n* @param name\n* @param value\n*/\nexport function createDataProperty(target, name, value) {\n\tObject.defineProperty(target, name, {\n\t\tconfigurable: true,\n\t\tenumerable: true,\n\t\twritable: true,\n\t\tvalue\n\t});\n}\nexport const UNICODE_EXTENSION_SEQUENCE_REGEX = /-u(?:-[0-9a-z]{2,8})+/gi;\nexport function invariant(condition, message, Err = Error) {\n\tif (!condition) {\n\t\tthrow new Err(message);\n\t}\n}\nexport const createMemoizedNumberFormat = memoize((...args) => new Intl.NumberFormat(...args), { strategy: strategies.variadic });\nexport const createMemoizedPluralRules = memoize((...args) => new Intl.PluralRules(...args), { strategy: strategies.variadic });\nexport const createMemoizedLocale = memoize((...args) => new Intl.Locale(...args), { strategy: strategies.variadic });\nexport const createMemoizedListFormat = memoize((...args) => new Intl.ListFormat(...args), { strategy: strategies.variadic });\n","import { invariant } from \"#packages/ecma402-abstract/utils.js\";\n/**\n* Partition a pattern into a list of literals and placeholders\n* https://tc39.es/ecma402/#sec-partitionpattern\n* @param pattern\n*/\nexport function PartitionPattern(pattern) {\n\tconst result = [];\n\tlet beginIndex = pattern.indexOf(\"{\");\n\tlet endIndex = 0;\n\tlet nextIndex = 0;\n\tconst length = pattern.length;\n\twhile (beginIndex < pattern.length && beginIndex > -1) {\n\t\tendIndex = pattern.indexOf(\"}\", beginIndex);\n\t\tinvariant(endIndex > beginIndex, `Invalid pattern ${pattern}`);\n\t\tif (beginIndex > nextIndex) {\n\t\t\tresult.push({\n\t\t\t\ttype: \"literal\",\n\t\t\t\tvalue: pattern.substring(nextIndex, beginIndex)\n\t\t\t});\n\t\t}\n\t\tresult.push({\n\t\t\ttype: pattern.substring(beginIndex + 1, endIndex),\n\t\t\tvalue: undefined\n\t\t});\n\t\tnextIndex = endIndex + 1;\n\t\tbeginIndex = pattern.indexOf(\"{\", nextIndex);\n\t}\n\tif (nextIndex < length) {\n\t\tresult.push({\n\t\t\ttype: \"literal\",\n\t\t\tvalue: pattern.substring(nextIndex, length)\n\t\t});\n\t}\n\treturn result;\n}\n","/**\n* https://tc39.es/ecma262/#sec-toobject\n*/\nexport function ToObject(arg) {\n\tif (arg == null) {\n\t\tthrow new TypeError(\"undefined/null cannot be converted to object\");\n\t}\n\treturn Object(arg);\n}\n","import { LookupSupportedLocales } from \"@formatjs/intl-localematcher\";\nimport { ToObject } from \"#packages/ecma262-abstract/ToObject.js\";\nimport { GetOption } from \"#packages/ecma402-abstract/GetOption.js\";\n/**\n* https://tc39.es/ecma402/#sec-supportedlocales\n* @param availableLocales\n* @param requestedLocales\n* @param options\n*/\nexport function SupportedLocales(availableLocales, requestedLocales, options) {\n\tlet matcher = \"best fit\";\n\tif (options !== undefined) {\n\t\toptions = ToObject(options);\n\t\tmatcher = GetOption(options, \"localeMatcher\", \"string\", [\"lookup\", \"best fit\"], \"best fit\");\n\t}\n\tif (matcher === \"best fit\") {\n\t\treturn LookupSupportedLocales(Array.from(availableLocales), requestedLocales);\n\t}\n\treturn LookupSupportedLocales(Array.from(availableLocales), requestedLocales);\n}\n","import {CanonicalizeLocaleList} from '#packages/ecma402-abstract/CanonicalizeLocaleList.js'\nimport {GetOption} from '#packages/ecma402-abstract/GetOption.js'\nimport {GetOptionsObject} from '#packages/ecma402-abstract/GetOptionsObject.js'\nimport {PartitionPattern} from '#packages/ecma402-abstract/PartitionPattern.js'\nimport {SupportedLocales} from '#packages/ecma402-abstract/SupportedLocales.js'\nimport {\n type ListPatternData,\n type ListPatternFieldsData,\n type ListPatternLocaleData,\n} from '#packages/ecma402-abstract/types/list.js'\nimport {\n type LiteralPart,\n getInternalSlot,\n invariant,\n isLiteralPart,\n setInternalSlot,\n} from '#packages/ecma402-abstract/utils.js'\nimport {ResolveLocale} from '@formatjs/intl-localematcher'\n\nexport interface IntlListFormatOptions {\n /**\n * The locale matching algorithm to use.\n * Possible values are \"lookup\" and \"best fit\"; the default is \"best fit\".\n * For information about this option, see\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation.\n */\n localeMatcher?: 'best fit' | 'lookup'\n /**\n * The format of output message.\n * Possible values are :\n * - \"conjunction\" that stands for \"and\"-based lists (default, e.g., \"A, B, and C\")\n * - \"disjunction\" that stands for \"or\"-based lists (e.g., \"A, B, or C\").\n * - \"unit\" stands for lists of values with units (e.g., \"5 pounds, 12 ounces\").\n */\n type?: 'conjunction' | 'disjunction' | 'unit'\n /**\n * The length of the formatted message.\n * Possible values are:\n * - \"long\" (default, e.g., \"A, B, and C\");\n * - \"short\" (e.g., \"A, B, C\"), or\n * - \"narrow\" (e.g., \"A B C\").\n * When style is \"short\" or \"narrow\", \"unit\" is the only allowed value for the type option.\n */\n style?: 'long' | 'short' | 'narrow'\n}\n\nexport interface ResolvedIntlListFormatOptions {\n /**\n * A string with a BCP 47 language tag, or an array of such strings.\n * For the general form and interpretation of the locales argument,\n * see the [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation) page.\n */\n locale: string\n /**\n * The format of output message.\n * Possible values are :\n * - \"conjunction\" that stands for \"and\"-based lists (default, e.g., \"A, B, and C\")\n * - \"disjunction\" that stands for \"or\"-based lists (e.g., \"A, B, or C\").\n * - \"unit\" stands for lists of values with units (e.g., \"5 pounds, 12 ounces\").\n */\n type: 'conjunction' | 'disjunction' | 'unit'\n /**\n * The length of the formatted message.\n * Possible values are:\n * - \"long\" (default, e.g., \"A, B, and C\");\n * - \"short\" (e.g., \"A, B, C\"), or\n * - \"narrow\" (e.g., \"A B C\").\n * When style is \"short\" or \"narrow\", \"unit\" is the only allowed value for the type option.\n */\n style: 'long' | 'short' | 'narrow'\n}\n\nexport type Part<T = string> = LiteralPart | ElementPart | ElementPart<T>\n\nexport interface ElementPart<T = string> {\n type: 'element'\n value: T\n}\n\ninterface Placeable {\n type: string\n value: string\n}\n\ninterface ListFormatInternal {\n style: IntlListFormatOptions['style']\n type: IntlListFormatOptions['type']\n locale: string\n templatePair: string\n templateStart: string\n templateEnd: string\n templateMiddle: string\n initializedListFormat: boolean\n}\n\nfunction validateInstance(instance: any, method: string) {\n if (!(instance instanceof ListFormat)) {\n throw new TypeError(\n `Method Intl.ListFormat.prototype.${method} called on incompatible receiver ${String(\n instance\n )}`\n )\n }\n}\n\n/**\n * https://tc39.es/proposal-intl-list-format/#sec-createstringlistfromiterable\n * @param iterable list\n */\nfunction stringListFromIterable(iterable: Iterable<unknown>): string[] {\n if (typeof iterable !== 'object') return []\n const elements: string[] = []\n const iterator = iterable[Symbol.iterator]()\n let result: IteratorResult<unknown>\n while (true) {\n result = iterator.next()\n if (result.done) break\n if (typeof result.value !== 'string') {\n const nextValue = result.value\n throw new TypeError(`Iterable yielded ${nextValue} which is not a string`)\n }\n elements.push(result.value)\n }\n return elements\n}\n\nfunction createPartsFromList(\n internalSlotMap: WeakMap<ListFormat, ListFormatInternal>,\n lf: ListFormat,\n list: string[]\n) {\n const size = list.length\n if (size === 0) {\n return []\n }\n if (size === 2) {\n const pattern = getInternalSlot(internalSlotMap, lf, 'templatePair')\n const first = {type: 'element', value: list[0]}\n const second = {type: 'element', value: list[1]}\n return deconstructPattern(pattern, {'0': first, '1': second})\n }\n const last = {\n type: 'element',\n value: list[size - 1],\n }\n let parts: Placeable[] | Placeable = last\n let i = size - 2\n while (i >= 0) {\n let pattern\n if (i === 0) {\n pattern = getInternalSlot(internalSlotMap, lf, 'templateStart')\n } else if (i < size - 2) {\n pattern = getInternalSlot(internalSlotMap, lf, 'templateMiddle')\n } else {\n pattern = getInternalSlot(internalSlotMap, lf, 'templateEnd')\n }\n const head = {type: 'element', value: list[i]}\n parts = deconstructPattern(pattern, {'0': head, '1': parts})\n i--\n }\n return parts\n}\n\nfunction deconstructPattern(\n pattern: string,\n placeables: Record<string, Placeable | Placeable[]>\n) {\n const patternParts = PartitionPattern(pattern)\n const result: Placeable[] = []\n for (const patternPart of patternParts) {\n const {type: part} = patternPart\n if (isLiteralPart(patternPart)) {\n result.push({\n type: 'literal',\n value: patternPart.value,\n })\n } else {\n invariant(part in placeables, `${part} is missing from placables`)\n const subst = placeables[part]\n if (Array.isArray(subst)) {\n result.push(...subst)\n } else {\n result.push(subst)\n }\n }\n }\n return result\n}\n\nexport default class ListFormat {\n constructor(locales?: string | string[], options?: IntlListFormatOptions) {\n // test262/test/intl402/ListFormat/constructor/constructor/newtarget-undefined.js\n // Cannot use `new.target` bc of IE11 & TS transpiles it to something else\n const newTarget =\n this && this instanceof ListFormat ? this.constructor : void 0\n if (!newTarget) {\n throw new TypeError(\"Intl.ListFormat must be called with 'new'\")\n }\n setInternalSlot(\n ListFormat.__INTERNAL_SLOT_MAP__,\n this,\n 'initializedListFormat',\n true\n )\n const requestedLocales = CanonicalizeLocaleList(locales)\n const opt: any = Object.create(null)\n const opts = GetOptionsObject(options)\n const matcher = GetOption(\n opts,\n 'localeMatcher',\n 'string',\n ['best fit', 'lookup'],\n 'best fit'\n )\n opt.localeMatcher = matcher\n const {localeData} = ListFormat\n const r = ResolveLocale(\n ListFormat.availableLocales,\n requestedLocales,\n opt,\n ListFormat.relevantExtensionKeys,\n localeData,\n ListFormat.getDefaultLocale\n )\n setInternalSlot(ListFormat.__INTERNAL_SLOT_MAP__, this, 'locale', r.locale)\n const type: keyof ListPatternFieldsData = GetOption(\n opts,\n 'type',\n 'string',\n ['conjunction', 'disjunction', 'unit'],\n 'conjunction'\n )\n setInternalSlot(ListFormat.__INTERNAL_SLOT_MAP__, this, 'type', type)\n const style: keyof ListPatternData = GetOption(\n opts,\n 'style',\n 'string',\n ['long', 'short', 'narrow'],\n 'long'\n )\n setInternalSlot(ListFormat.__INTERNAL_SLOT_MAP__, this, 'style', style)\n const {dataLocale} = r\n const dataLocaleData = localeData[dataLocale]\n invariant(!!dataLocaleData, `Missing locale data for ${dataLocale}`)\n const dataLocaleTypes = dataLocaleData[type]\n const templates = dataLocaleTypes![style]!\n setInternalSlot(\n ListFormat.__INTERNAL_SLOT_MAP__,\n this,\n 'templatePair',\n templates.pair\n )\n setInternalSlot(\n ListFormat.__INTERNAL_SLOT_MAP__,\n this,\n 'templateStart',\n templates.start\n )\n setInternalSlot(\n ListFormat.__INTERNAL_SLOT_MAP__,\n this,\n 'templateMiddle',\n templates.middle\n )\n setInternalSlot(\n ListFormat.__INTERNAL_SLOT_MAP__,\n this,\n 'templateEnd',\n templates.end\n )\n }\n format(elements: Iterable<string>): string {\n validateInstance(this, 'format')\n let result = ''\n const parts = createPartsFromList(\n ListFormat.__INTERNAL_SLOT_MAP__,\n this,\n stringListFromIterable(elements)\n )\n if (!Array.isArray(parts)) {\n return parts.value\n }\n for (const p of parts) {\n result += p.value\n }\n return result\n }\n formatToParts(elements: Iterable<string>): Part[] {\n validateInstance(this, 'format')\n const parts = createPartsFromList(\n ListFormat.__INTERNAL_SLOT_MAP__,\n this,\n stringListFromIterable(elements)\n )\n if (!Array.isArray(parts)) {\n return [parts as Part]\n }\n const result: Part[] = []\n for (const part of parts) {\n result.push({...part} as Part)\n }\n return result\n }\n\n resolvedOptions(): ResolvedIntlListFormatOptions {\n validateInstance(this, 'resolvedOptions')\n return {\n locale: getInternalSlot(ListFormat.__INTERNAL_SLOT_MAP__, this, 'locale'),\n type: getInternalSlot(ListFormat.__INTERNAL_SLOT_MAP__, this, 'type')!,\n style: getInternalSlot(ListFormat.__INTERNAL_SLOT_MAP__, this, 'style')!,\n }\n }\n\n public static supportedLocalesOf(\n locales: string | string[],\n options?: Pick<IntlListFormatOptions, 'localeMatcher'>\n ): string[] {\n // test262/test/intl402/ListFormat/constructor/supportedLocalesOf/result-type.js\n return SupportedLocales(\n ListFormat.availableLocales,\n CanonicalizeLocaleList(locales),\n options\n )\n }\n\n public static __addLocaleData(...data: ListPatternLocaleData[]): void {\n for (const {data: d, locale} of data) {\n const minimizedLocale = new (Intl as any).Locale(locale)\n .minimize()\n .toString()\n ListFormat.localeData[locale] = ListFormat.localeData[minimizedLocale] = d\n ListFormat.availableLocales.add(minimizedLocale)\n ListFormat.availableLocales.add(locale)\n if (!ListFormat.__defaultLocale) {\n ListFormat.__defaultLocale = minimizedLocale\n }\n }\n }\n static localeData: Record<string, ListPatternFieldsData | undefined> = {}\n private static availableLocales = new Set<string>()\n private static __defaultLocale = ''\n private static getDefaultLocale() {\n return ListFormat.__defaultLocale\n }\n private static relevantExtensionKeys = []\n public static polyfilled = true\n private static readonly __INTERNAL_SLOT_MAP__ = new WeakMap<\n ListFormat,\n ListFormatInternal\n >()\n}\n\ntry {\n // IE11 does not have Symbol\n if (typeof Symbol !== 'undefined') {\n Object.defineProperty(ListFormat.prototype, Symbol.toStringTag, {\n value: 'Intl.ListFormat',\n writable: false,\n enumerable: false,\n configurable: true,\n })\n }\n\n // https://github.com/tc39/test262/blob/master/test/intl402/ListFormat/constructor/length.js\n Object.defineProperty(ListFormat.prototype.constructor, 'length', {\n value: 0,\n writable: false,\n enumerable: false,\n configurable: true,\n })\n // https://github.com/tc39/test262/blob/master/test/intl402/ListFormat/constructor/supportedLocalesOf/length.js\n Object.defineProperty(ListFormat.supportedLocalesOf, 'length', {\n value: 1,\n writable: false,\n enumerable: false,\n configurable: true,\n })\n} catch {\n // Meta fix so we're test262-compliant, not important\n}\n","export const supportedLocales = [\n\t\"aa\",\n\t\"aa-DJ\",\n\t\"aa-ER\",\n\t\"ab\",\n\t\"af\",\n\t\"af-NA\",\n\t\"agq\",\n\t\"ak\",\n\t\"am\",\n\t\"an\",\n\t\"ann\",\n\t\"apc\",\n\t\"ar\",\n\t\"ar-AE\",\n\t\"ar-BH\",\n\t\"ar-DJ\",\n\t\"ar-DZ\",\n\t\"ar-EG\",\n\t\"ar-EH\",\n\t\"ar-ER\",\n\t\"ar-IL\",\n\t\"ar-IQ\",\n\t\"ar-JO\",\n\t\"ar-KM\",\n\t\"ar-KW\",\n\t\"ar-LB\",\n\t\"ar-LY\",\n\t\"ar-MA\",\n\t\"ar-MR\",\n\t\"ar-OM\",\n\t\"ar-PS\",\n\t\"ar-QA\",\n\t\"ar-SA\",\n\t\"ar-SD\",\n\t\"ar-SO\",\n\t\"ar-SS\",\n\t\"ar-SY\",\n\t\"ar-TD\",\n\t\"ar-TN\",\n\t\"ar-YE\",\n\t\"arn\",\n\t\"as\",\n\t\"asa\",\n\t\"ast\",\n\t\"az\",\n\t\"az-Arab\",\n\t\"az-Arab-IQ\",\n\t\"az-Arab-TR\",\n\t\"az-Cyrl\",\n\t\"az-Latn\",\n\t\"ba\",\n\t\"bal\",\n\t\"bal-Arab\",\n\t\"bal-Latn\",\n\t\"bas\",\n\t\"be\",\n\t\"be-tarask\",\n\t\"bem\",\n\t\"bew\",\n\t\"bez\",\n\t\"bg\",\n\t\"bgc\",\n\t\"bgn\",\n\t\"bgn-AE\",\n\t\"bgn-AF\",\n\t\"bgn-IR\",\n\t\"bgn-OM\",\n\t\"bho\",\n\t\"blo\",\n\t\"blt\",\n\t\"bm\",\n\t\"bm-Nkoo\",\n\t\"bn\",\n\t\"bn-IN\",\n\t\"bo\",\n\t\"bo-IN\",\n\t\"bqi\",\n\t\"br\",\n\t\"brx\",\n\t\"bs\",\n\t\"bs-Cyrl\",\n\t\"bs-Latn\",\n\t\"bss\",\n\t\"bua\",\n\t\"byn\",\n\t\"ca\",\n\t\"ca-AD\",\n\t\"ca-ES-valencia\",\n\t\"ca-FR\",\n\t\"ca-IT\",\n\t\"cad\",\n\t\"cch\",\n\t\"ccp\",\n\t\"ccp-IN\",\n\t\"ce\",\n\t\"ceb\",\n\t\"cgg\",\n\t\"cho\",\n\t\"chr\",\n\t\"cic\",\n\t\"ckb\",\n\t\"ckb-IR\",\n\t\"co\",\n\t\"cop\",\n\t\"cs\",\n\t\"csw\",\n\t\"cu\",\n\t\"cv\",\n\t\"cy\",\n\t\"da\",\n\t\"da-GL\",\n\t\"dav\",\n\t\"de\",\n\t\"de-AT\",\n\t\"de-BE\",\n\t\"de-CH\",\n\t\"de-IT\",\n\t\"de-LI\",\n\t\"de-LU\",\n\t\"dje\",\n\t\"doi\",\n\t\"dsb\",\n\t\"dua\",\n\t\"dv\",\n\t\"dyo\",\n\t\"dz\",\n\t\"ebu\",\n\t\"ee\",\n\t\"ee-TG\",\n\t\"el\",\n\t\"el-CY\",\n\t\"el-polyton\",\n\t\"en\",\n\t\"en-001\",\n\t\"en-150\",\n\t\"en-AE\",\n\t\"en-AG\",\n\t\"en-AI\",\n\t\"en-AS\",\n\t\"en-AT\",\n\t\"en-AU\",\n\t\"en-BB\",\n\t\"en-BE\",\n\t\"en-BI\",\n\t\"en-BM\",\n\t\"en-BS\",\n\t\"en-BW\",\n\t\"en-BZ\",\n\t\"en-CA\",\n\t\"en-CC\",\n\t\"en-CH\",\n\t\"en-CK\",\n\t\"en-CM\",\n\t\"en-CX\",\n\t\"en-CY\",\n\t\"en-CZ\",\n\t\"en-DE\",\n\t\"en-DG\",\n\t\"en-DK\",\n\t\"en-DM\",\n\t\"en-Dsrt\",\n\t\"en-EE\",\n\t\"en-ER\",\n\t\"en-ES\",\n\t\"en-FI\",\n\t\"en-FJ\",\n\t\"en-FK\",\n\t\"en-FM\",\n\t\"en-FR\",\n\t\"en-GB\",\n\t\"en-GD\",\n\t\"en-GE\",\n\t\"en-GG\",\n\t\"en-GH\",\n\t\"en-GI\",\n\t\"en-GM\",\n\t\"en-GS\",\n\t\"en-GU\",\n\t\"en-GY\",\n\t\"en-HK\",\n\t\"en-HU\",\n\t\"en-ID\",\n\t\"en-IE\",\n\t\"en-IL\",\n\t\"en-IM\",\n\t\"en-IN\",\n\t\"en-IO\",\n\t\"en-IT\",\n\t\"en-JE\",\n\t\"en-JM\",\n\t\"en-JP\",\n\t\"en-KE\",\n\t\"en-KI\",\n\t\"en-KN\",\n\t\"en-KY\",\n\t\"en-LC\",\n\t\"en-LR\",\n\t\"en-LS\",\n\t\"en-LT\",\n\t\"en-LV\",\n\t\"en-MG\",\n\t\"en-MH\",\n\t\"en-MO\",\n\t\"en-MP\",\n\t\"en-MS\",\n\t\"en-MT\",\n\t\"en-MU\",\n\t\"en-MV\",\n\t\"en-MW\",\n\t\"en-MY\",\n\t\"en-NA\",\n\t\"en-NF\",\n\t\"en-NG\",\n\t\"en-NL\",\n\t\"en-NO\",\n\t\"en-NR\",\n\t\"en-NU\",\n\t\"en-NZ\",\n\t\"en-PG\",\n\t\"en-PH\",\n\t\"en-PK\",\n\t\"en-PL\",\n\t\"en-PN\",\n\t\"en-PR\",\n\t\"en-PT\",\n\t\"en-PW\",\n\t\"en-RO\",\n\t\"en-RW\",\n\t\"en-SB\",\n\t\"en-SC\",\n\t\"en-SD\",\n\t\"en-SE\",\n\t\"en-SG\",\n\t\"en-SH\",\n\t\"en-SI\",\n\t\"en-SK\",\n\t\"en-SL\",\n\t\"en-SS\",\n\t\"en-SX\",\n\t\"en-SZ\",\n\t\"en-Shaw\",\n\t\"en-TC\",\n\t\"en-TK\",\n\t\"en-TO\",\n\t\"en-TT\",\n\t\"en-TV\",\n\t\"en-TZ\",\n\t\"en-UA\",\n\t\"en-UG\",\n\t\"en-UM\",\n\t\"en-VC\",\n\t\"en-VG\",\n\t\"en-VI\",\n\t\"en-VU\",\n\t\"en-WS\",\n\t\"en-ZA\",\n\t\"en-ZM\",\n\t\"en-ZW\",\n\t\"eo\",\n\t\"es\",\n\t\"es-419\",\n\t\"es-AR\",\n\t\"es-BO\",\n\t\"es-BR\",\n\t\"es-BZ\",\n\t\"es-CL\",\n\t\"es-CO\",\n\t\"es-CR\",\n\t\"es-CU\",\n\t\"es-DO\",\n\t\"es-EA\",\n\t\"es-EC\",\n\t\"es-GQ\",\n\t\"es-GT\",\n\t\"es-HN\",\n\t\"es-IC\",\n\t\"es-MX\",\n\t\"es-NI\",\n\t\"es-PA\",\n\t\"es-PE\",\n\t\"es-PH\",\n\t\"es-PR\",\n\t\"es-PY\",\n\t\"es-SV\",\n\t\"es-US\",\n\t\"es-UY\",\n\t\"es-VE\",\n\t\"et\",\n\t\"eu\",\n\t\"ewo\",\n\t\"fa\",\n\t\"fa-AF\",\n\t\"ff\",\n\t\"ff-Adlm\",\n\t\"ff-Adlm-BF\",\n\t\"ff-Adlm-CM\",\n\t\"ff-Adlm-GH\",\n\t\"ff-Adlm-GM\",\n\t\"ff-Adlm-GW\",\n\t\"ff-Adlm-LR\",\n\t\"ff-Adlm-MR\",\n\t\"ff-Adlm-NE\",\n\t\"ff-Adlm-NG\",\n\t\"ff-Adlm-SL\",\n\t\"ff-Adlm-SN\",\n\t\"ff-Latn\",\n\t\"ff-Latn-BF\",\n\t\"ff-Latn-CM\",\n\t\"ff-Latn-GH\",\n\t\"ff-Latn-GM\",\n\t\"ff-Latn-GN\",\n\t\"ff-Latn-GW\",\n\t\"ff-Latn-LR\",\n\t\"ff-Latn-MR\",\n\t\"ff-Latn-NE\",\n\t\"ff-Latn-NG\",\n\t\"ff-Latn-SL\",\n\t\"fi\",\n\t\"fil\",\n\t\"fo\",\n\t\"fo-DK\",\n\t\"fr\",\n\t\"fr-BE\",\n\t\"fr-BF\",\n\t\"fr-BI\",\n\t\"fr-BJ\",\n\t\"fr-BL\",\n\t\"fr-CA\",\n\t\"fr-CD\",\n\t\"fr-CF\",\n\t\"fr-CG\",\n\t\"fr-CH\",\n\t\"fr-CI\",\n\t\"f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\",\n\t\"kaa\",\n\t\"kaa-Cyrl\",\n\t\"kaa-Latn\",\n\t\"kab\",\n\t\"kaj\",\n\t\"kam\",\n\t\"kcg\",\n\t\"kde\",\n\t\"kea\",\n\t\"kek\",\n\t\"ken\",\n\t\"kgp\",\n\t\"khq\",\n\t\"ki\",\n\t\"kk\",\n\t\"kk-Arab\",\n\t\"kk-Cyrl\",\n\t\"kk-KZ\",\n\t\"kkj\",\n\t\"kl\",\n\t\"kln\",\n\t\"km\",\n\t\"kn\",\n\t\"ko\",\n\t\"ko-CN\",\n\t\"ko-KP\",\n\t\"kok\",\n\t\"kok-Deva\",\n\t\"kok-Latn\",\n\t\"kpe\",\n\t\"kpe-GN\",\n\t\"ks\",\n\t\"ks-Arab\",\n\t\"ks-Deva\",\n\t\"ksb\",\n\t\"ksf\",\n\t\"ksh\",\n\t\"ku\",\n\t\"ku-Arab\",\n\t\"ku-Arab-IR\",\n\t\"ku-Latn\",\n\t\"ku-Latn-IQ\",\n\t\"ku-Latn-SY\",\n\t\"ku-TR\",\n\t\"kw\",\n\t\"kxv\",\n\t\"kxv-Deva\",\n\t\"kxv-Latn\",\n\t\"kxv-Orya\",\n\t\"kxv-Telu\",\n\t\"ky\",\n\t\"la\",\n\t\"lag\",\n\t\"lb\",\n\t\"lg\",\n\t\"lij\",\n\t\"lkt\",\n\t\"lld\",\n\t\"lmo\",\n\t\"ln\",\n\t\"ln-AO\",\n\t\"ln-CF\",\n\t\"ln-CG\",\n\t\"lo\",\n\t\"lrc\",\n\t\"lrc-IQ\",\n\t\"lt\",\n\t\"ltg\",\n\t\"lu\",\n\t\"luo\",\n\t\"luy\",\n\t\"lv\",\n\t\"lzz\",\n\t\"mai\",\n\t\"mas\",\n\t\"mas-TZ\",\n\t\"mdf\",\n\t\"mer\",\n\t\"mfe\",\n\t\"mg\",\n\t\"mgh\",\n\t\"mgo\",\n\t\"mhn\",\n\t\"mi\",\n\t\"mic\",\n\t\"mk\",\n\t\"ml\",\n\t\"mn\",\n\t\"mn-Mong\",\n\t\"mn-Mong-MN\",\n\t\"mni\",\n\t\"mni-Beng\",\n\t\"mni-Mtei\",\n\t\"moh\",\n\t\"mr\",\n\t\"ms\",\n\t\"ms-Arab\",\n\t\"ms-Arab-BN\",\n\t\"ms-BN\",\n\t\"ms-ID\",\n\t\"ms-SG\",\n\t\"mt\",\n\t\"mua\",\n\t\"mus\",\n\t\"mww\",\n\t\"mww-Hmnp\",\n\t\"my\",\n\t\"myv\",\n\t\"mzn\",\n\t\"naq\",\n\t\"nb\",\n\t\"nb-SJ\",\n\t\"nd\",\n\t\"nds\",\n\t\"nds-NL\",\n\t\"ne\",\n\t\"ne-IN\",\n\t\"nl\",\n\t\"nl-AW\",\n\t\"nl-BE\",\n\t\"nl-BQ\",\n\t\"nl-CW\",\n\t\"nl-SR\",\n\t\"nl-SX\",\n\t\"nmg\",\n\t\"nn\",\n\t\"nnh\",\n\t\"no\",\n\t\"nqo\",\n\t\"nr\",\n\t\"nso\",\n\t\"nus\",\n\t\"nv\",\n\t\"ny\",\n\t\"nyn\",\n\t\"oc\",\n\t\"oc-ES\",\n\t\"oka\",\n\t\"oka-US\",\n\t\"om\",\n\t\"om-KE\",\n\t\"or\",\n\t\"os\",\n\t\"os-RU\",\n\t\"osa\",\n\t\"pa\",\n\t\"pa-Arab\",\n\t\"pa-Guru\",\n\t\"pap\",\n\t\"pap-AW\",\n\t\"pcm\",\n\t\"pi\",\n\t\"pi-Latn\",\n\t\"pis\",\n\t\"pl\",\n\t\"pms\",\n\t\"prg\",\n\t\"ps\",\n\t\"ps-PK\",\n\t\"pt\",\n\t\"pt-AO\",\n\t\"pt-CH\",\n\t\"pt-CV\",\n\t\"pt-GQ\",\n\t\"pt-GW\",\n\t\"pt-LU\",\n\t\"pt-MO\",\n\t\"pt-MZ\",\n\t\"pt-PT\",\n\t\"pt-ST\",\n\t\"pt-TL\",\n\t\"qu\",\n\t\"qu-BO\",\n\t\"qu-EC\",\n\t\"quc\",\n\t\"raj\",\n\t\"rhg\",\n\t\"rhg-Rohg\",\n\t\"rhg-Rohg-BD\",\n\t\"rif\",\n\t\"rm\",\n\t\"rn\",\n\t\"ro\",\n\t\"ro-MD\",\n\t\"rof\",\n\t\"ru\",\n\t\"ru-BY\",\n\t\"ru-KG\",\n\t\"ru-KZ\",\n\t\"ru-MD\",\n\t\"ru-UA\",\n\t\"rw\",\n\t\"rwk\",\n\t\"sa\",\n\t\"sah\",\n\t\"saq\",\n\t\"sat\",\n\t\"sat-Deva\",\n\t\"sat-Olck\",\n\t\"sbp\",\n\t\"sc\",\n\t\"scn\",\n\t\"sd\",\n\t\"sd-Arab\",\n\t\"sd-Deva\",\n\t\"sdh\",\n\t\"sdh-IQ\",\n\t\"se\",\n\t\"se-FI\",\n\t\"se-SE\",\n\t\"seh\",\n\t\"ses\",\n\t\"sg\",\n\t\"sgs\",\n\t\"shi\",\n\t\"shi-Latn\",\n\t\"shi-Tfng\",\n\t\"shn\",\n\t\"shn-TH\",\n\t\"si\",\n\t\"sid\",\n\t\"sk\",\n\t\"skr\",\n\t\"sl\",\n\t\"sma\",\n\t\"sma-NO\",\n\t\"smj\",\n\t\"smj-NO\",\n\t\"smn\",\n\t\"sms\",\n\t\"sn\",\n\t\"so\",\n\t\"so-DJ\",\n\t\"so-ET\",\n\t\"so-KE\",\n\t\"sq\",\n\t\"sq-MK\",\n\t\"sq-XK\",\n\t\"sr\",\n\t\"sr-Cyrl\",\n\t\"sr-Cyrl-BA\",\n\t\"sr-Cyrl-ME\",\n\t\"sr-Cyrl-XK\",\n\t\"sr-Latn\",\n\t\"sr-Latn-BA\",\n\t\"sr-Latn-ME\",\n\t\"sr-Latn-XK\",\n\t\"ss\",\n\t\"ss-SZ\",\n\t\"ssy\",\n\t\"st\",\n\t\"st-LS\",\n\t\"su\",\n\t\"su-Latn\",\n\t\"suz\",\n\t\"suz-Deva\",\n\t\"suz-Sunu\",\n\t\"sv\",\n\t\"sv-AX\",\n\t\"sv-FI\",\n\t\"sw\",\n\t\"sw-CD\",\n\t\"sw-KE\",\n\t\"sw-UG\",\n\t\"syr\",\n\t\"syr-SY\",\n\t\"szl\",\n\t\"ta\",\n\t\"ta-LK\",\n\t\"ta-MY\",\n\t\"ta-SG\",\n\t\"te\",\n\t\"teo\",\n\t\"teo-KE\",\n\t\"tg\",\n\t\"th\",\n\t\"ti\",\n\t\"ti-ER\",\n\t\"tig\",\n\t\"tk\",\n\t\"tn\",\n\t\"tn-BW\",\n\t\"to\",\n\t\"tok\",\n\t\"tpi\",\n\t\"tr\",\n\t\"tr-CY\",\n\t\"trv\",\n\t\"trw\",\n\t\"ts\",\n\t\"tt\",\n\t\"twq\",\n\t\"tyv\",\n\t\"tzm\",\n\t\"ug\",\n\t\"uk\",\n\t\"und\",\n\t\"ur\",\n\t\"ur-IN\",\n\t\"uz\",\n\t\"uz-Arab\",\n\t\"uz-Cyrl\",\n\t\"uz-Latn\",\n\t\"vai\",\n\t\"vai-Latn\",\n\t\"vai-Vaii\",\n\t\"ve\",\n\t\"vec\",\n\t\"vi\",\n\t\"vmw\",\n\t\"vo\",\n\t\"vun\",\n\t\"wa\",\n\t\"wae\",\n\t\"wal\",\n\t\"wbp\",\n\t\"wo\",\n\t\"xh\",\n\t\"xnr\",\n\t\"xog\",\n\t\"yav\",\n\t\"yi\",\n\t\"yo\",\n\t\"yo-BJ\",\n\t\"yrl\",\n\t\"yrl-CO\",\n\t\"yrl-VE\",\n\t\"yue\",\n\t\"yue-Hans\",\n\t\"yue-Hant\",\n\t\"yue-Hant-CN\",\n\t\"yue-Hant-MO\",\n\t\"za\",\n\t\"zgh\",\n\t\"zh\",\n\t\"zh-Hans\",\n\t\"zh-Hans-HK\",\n\t\"zh-Hans-MO\",\n\t\"zh-Hans-MY\",\n\t\"zh-Hans-SG\",\n\t\"zh-Hant\",\n\t\"zh-Hant-HK\",\n\t\"zh-Hant-MO\",\n\t\"zh-Hant-MY\",\n\t\"zh-Latn\",\n\t\"zu\"\n];\n","import {match} from '@formatjs/intl-localematcher'\nimport {supportedLocales} from '@formatjs_generated/cldr.supported-locales/intl-listformat.js'\n\nfunction supportedLocalesOf(locale?: string | string[]) {\n if (!locale) {\n return true\n }\n const locales = Array.isArray(locale) ? locale : [locale]\n return (\n (Intl as any).ListFormat.supportedLocalesOf(locales).length ===\n locales.length\n )\n}\n\nexport function shouldPolyfill(locale = 'en'): string | undefined {\n if (\n typeof Intl === 'undefined' ||\n !('ListFormat' in Intl) ||\n !supportedLocalesOf(locale)\n ) {\n return locale ? match([locale], supportedLocales, 'en') : undefined\n }\n}\n","import ListFormat from '#packages/intl-listformat/index.js'\nimport {shouldPolyfill} from '#packages/intl-listformat/should-polyfill.js'\nimport {defineProperty, ensureIntl} from '#packages/ecma402-abstract/utils.js'\n\nconst intl = ensureIntl()\n\nif (shouldPolyfill()) {\n defineProperty(intl, 'ListFormat', {value: ListFormat})\n\n // Drain any locale data that was buffered before polyfill loaded\n const buf = (globalThis as Record<string, unknown>)\n .__FORMATJS_LISTFORMAT_DATA__ as\n | Parameters<(typeof ListFormat)['__addLocaleData']>[0][]\n | undefined\n if (buf) {\n for (const d of buf) ListFormat.__addLocaleData(d)\n delete (globalThis as Record<string, unknown>).__FORMATJS_LISTFORMAT_DATA__\n }\n}\n"],"x_google_ignoreList":[4,10],"mappings":";;;;;;AAIA,SAAgB,uBAAuB,SAAS;CAE/C,OAAO,KAAK,oBAAoB,QAAQ;;;;;;;ACHzC,SAAgB,SAAS,GAAG;CAC3B,IAAI,OAAO,MAAM,UAChB,MAAM,UAAU,4CAA4C;CAE7D,OAAO,OAAO,EAAE;;;;;;;;;;;;ACEjB,SAAgB,UAAU,MAAM,MAAM,MAAM,QAAQ,UAAU;CAC7D,IAAI,OAAO,SAAS,UACnB,MAAM,IAAI,UAAU,4BAA4B;CAEjD,IAAI,QAAQ,KAAK;CACjB,IAAI,UAAU,KAAA,GAAW;EACxB,IAAI,SAAS,aAAa,SAAS,UAClC,MAAM,IAAI,UAAU,eAAe;EAEpC,IAAI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,cAAc;EACf,CAAC;CAEF,OAAO,eAAe,WAAW,oBAAoB,UAAU;EAC7D,OAAO;EACP,UAAU;EACV,YAAY;EACZ,cAAc;EACf,CAAC;QACI;;;ACzXR,MAAa,mBAAmB;CAC/B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;;;AC5vBD,SAAS,mBAAmB,QAA4B;CACtD,IAAI,CAAC,QACH,OAAO;CAET,MAAM,UAAU,MAAM,QAAQ,OAAO,GAAG,SAAS,CAAC,OAAO;CACzD,OACG,KAAa,WAAW,mBAAmB,QAAQ,CAAC,WACrD,QAAQ;;AAIZ,SAAgB,eAAe,SAAS,MAA0B;CAChE,IACE,OAAO,SAAS,eAChB,EAAE,gBAAgB,SAClB,CAAC,mBAAmB,OAAO,EAE3B,OAAO,SAAS,MAAM,CAAC,OAAO,EAAE,kBAAkB,KAAK,GAAG,KAAA;;;;AChB9D,MAAM,OAAO,YAAY;AAEzB,IAAI,gBAAgB,EAAE;CACpB,eAAe,MAAM,cAAc,EAAC,OAAO,YAAW,CAAC;CAGvD,MAAM,MAAO,WACV;CAGH,IAAI,KAAK;EACP,KAAK,MAAM,KAAK,KAAK,WAAW,gBAAgB,EAAE;EAClD,OAAQ,WAAuC"}
@@ -776,7 +776,7 @@ function supportedLocalesOf(locale) {
776
776
  return Intl.ListFormat.supportedLocalesOf(locales).length === locales.length;
777
777
  }
778
778
  function shouldPolyfill(locale = "en") {
779
- if (!("ListFormat" in Intl) || !supportedLocalesOf(locale)) return locale ? match([locale], supportedLocales, "en") : void 0;
779
+ if (typeof Intl === "undefined" || !("ListFormat" in Intl) || !supportedLocalesOf(locale)) return locale ? match([locale], supportedLocales, "en") : void 0;
780
780
  }
781
781
  //#endregion
782
782
  export { shouldPolyfill };
@@ -1 +1 @@
1
- {"version":3,"file":"should-polyfill.js","names":[],"sources":["../../../node_modules/.aspect_rules_js/@formatjs_generated+cldr.supported-locales@0.0.0/node_modules/@formatjs_generated/cldr.supported-locales/intl-listformat.js","../should-polyfill.ts"],"sourcesContent":["export const supportedLocales = [\n\t\"aa\",\n\t\"aa-DJ\",\n\t\"aa-ER\",\n\t\"ab\",\n\t\"af\",\n\t\"af-NA\",\n\t\"agq\",\n\t\"ak\",\n\t\"am\",\n\t\"an\",\n\t\"ann\",\n\t\"apc\",\n\t\"ar\",\n\t\"ar-AE\",\n\t\"ar-BH\",\n\t\"ar-DJ\",\n\t\"ar-DZ\",\n\t\"ar-EG\",\n\t\"ar-EH\",\n\t\"ar-ER\",\n\t\"ar-IL\",\n\t\"ar-IQ\",\n\t\"ar-JO\",\n\t\"ar-KM\",\n\t\"ar-KW\",\n\t\"ar-LB\",\n\t\"ar-LY\",\n\t\"ar-MA\",\n\t\"ar-MR\",\n\t\"ar-OM\",\n\t\"ar-PS\",\n\t\"ar-QA\",\n\t\"ar-SA\",\n\t\"ar-SD\",\n\t\"ar-SO\",\n\t\"ar-SS\",\n\t\"ar-SY\",\n\t\"ar-TD\",\n\t\"ar-TN\",\n\t\"ar-YE\",\n\t\"arn\",\n\t\"as\",\n\t\"asa\",\n\t\"ast\",\n\t\"az\",\n\t\"az-Arab\",\n\t\"az-Arab-IQ\",\n\t\"az-Arab-TR\",\n\t\"az-Cyrl\",\n\t\"az-Latn\",\n\t\"ba\",\n\t\"bal\",\n\t\"bal-Arab\",\n\t\"bal-Latn\",\n\t\"bas\",\n\t\"be\",\n\t\"be-tarask\",\n\t\"bem\",\n\t\"bew\",\n\t\"bez\",\n\t\"bg\",\n\t\"bgc\",\n\t\"bgn\",\n\t\"bgn-AE\",\n\t\"bgn-AF\",\n\t\"bgn-IR\",\n\t\"bgn-OM\",\n\t\"bho\",\n\t\"blo\",\n\t\"blt\",\n\t\"bm\",\n\t\"bm-Nkoo\",\n\t\"bn\",\n\t\"bn-IN\",\n\t\"bo\",\n\t\"bo-IN\",\n\t\"bqi\",\n\t\"br\",\n\t\"brx\",\n\t\"bs\",\n\t\"bs-Cyrl\",\n\t\"bs-Latn\",\n\t\"bss\",\n\t\"bua\",\n\t\"byn\",\n\t\"ca\",\n\t\"ca-AD\",\n\t\"ca-ES-valencia\",\n\t\"ca-FR\",\n\t\"ca-IT\",\n\t\"cad\",\n\t\"cch\",\n\t\"ccp\",\n\t\"ccp-IN\",\n\t\"ce\",\n\t\"ceb\",\n\t\"cgg\",\n\t\"cho\",\n\t\"chr\",\n\t\"cic\",\n\t\"ckb\",\n\t\"ckb-IR\",\n\t\"co\",\n\t\"cop\",\n\t\"cs\",\n\t\"csw\",\n\t\"cu\",\n\t\"cv\",\n\t\"cy\",\n\t\"da\",\n\t\"da-GL\",\n\t\"dav\",\n\t\"de\",\n\t\"de-AT\",\n\t\"de-BE\",\n\t\"de-CH\",\n\t\"de-IT\",\n\t\"de-LI\",\n\t\"de-LU\",\n\t\"dje\",\n\t\"doi\",\n\t\"dsb\",\n\t\"dua\",\n\t\"dv\",\n\t\"dyo\",\n\t\"dz\",\n\t\"ebu\",\n\t\"ee\",\n\t\"ee-TG\",\n\t\"el\",\n\t\"el-CY\",\n\t\"el-polyton\",\n\t\"en\",\n\t\"en-001\",\n\t\"en-150\",\n\t\"en-AE\",\n\t\"en-AG\",\n\t\"en-AI\",\n\t\"en-AS\",\n\t\"en-AT\",\n\t\"en-AU\",\n\t\"en-BB\",\n\t\"en-BE\",\n\t\"en-BI\",\n\t\"en-BM\",\n\t\"en-BS\",\n\t\"en-BW\",\n\t\"en-BZ\",\n\t\"en-CA\",\n\t\"en-CC\",\n\t\"en-CH\",\n\t\"en-CK\",\n\t\"en-CM\",\n\t\"en-CX\",\n\t\"en-CY\",\n\t\"en-CZ\",\n\t\"en-DE\",\n\t\"en-DG\",\n\t\"en-DK\",\n\t\"en-DM\",\n\t\"en-Dsrt\",\n\t\"en-EE\",\n\t\"en-ER\",\n\t\"en-ES\",\n\t\"en-FI\",\n\t\"en-FJ\",\n\t\"en-FK\",\n\t\"en-FM\",\n\t\"en-FR\",\n\t\"en-GB\",\n\t\"en-GD\",\n\t\"en-GE\",\n\t\"en-GG\",\n\t\"en-GH\",\n\t\"en-GI\",\n\t\"en-GM\",\n\t\"en-GS\",\n\t\"en-GU\",\n\t\"en-GY\",\n\t\"en-HK\",\n\t\"en-HU\",\n\t\"en-ID\",\n\t\"en-IE\",\n\t\"en-IL\",\n\t\"en-IM\",\n\t\"en-IN\",\n\t\"en-IO\",\n\t\"en-IT\",\n\t\"en-JE\",\n\t\"en-JM\",\n\t\"en-JP\",\n\t\"en-KE\",\n\t\"en-KI\",\n\t\"en-KN\",\n\t\"en-KY\",\n\t\"en-LC\",\n\t\"en-LR\",\n\t\"en-LS\",\n\t\"en-LT\",\n\t\"en-LV\",\n\t\"en-MG\",\n\t\"en-MH\",\n\t\"en-MO\",\n\t\"en-MP\",\n\t\"en-MS\",\n\t\"en-MT\",\n\t\"en-MU\",\n\t\"en-MV\",\n\t\"en-MW\",\n\t\"en-MY\",\n\t\"en-NA\",\n\t\"en-NF\",\n\t\"en-NG\",\n\t\"en-NL\",\n\t\"en-NO\",\n\t\"en-NR\",\n\t\"en-NU\",\n\t\"en-NZ\",\n\t\"en-PG\",\n\t\"en-PH\",\n\t\"en-PK\",\n\t\"en-PL\",\n\t\"en-PN\",\n\t\"en-PR\",\n\t\"en-PT\",\n\t\"en-PW\",\n\t\"en-RO\",\n\t\"en-RW\",\n\t\"en-SB\",\n\t\"en-SC\",\n\t\"en-SD\",\n\t\"en-SE\",\n\t\"en-SG\",\n\t\"en-SH\",\n\t\"en-SI\",\n\t\"en-SK\",\n\t\"en-SL\",\n\t\"en-SS\",\n\t\"en-SX\",\n\t\"en-SZ\",\n\t\"en-Shaw\",\n\t\"en-TC\",\n\t\"en-TK\",\n\t\"en-TO\",\n\t\"en-TT\",\n\t\"en-TV\",\n\t\"en-TZ\",\n\t\"en-UA\",\n\t\"en-UG\",\n\t\"en-UM\",\n\t\"en-VC\",\n\t\"en-VG\",\n\t\"en-VI\",\n\t\"en-VU\",\n\t\"en-WS\",\n\t\"en-ZA\",\n\t\"en-ZM\",\n\t\"en-ZW\",\n\t\"eo\",\n\t\"es\",\n\t\"es-419\",\n\t\"es-AR\",\n\t\"es-BO\",\n\t\"es-BR\",\n\t\"es-BZ\",\n\t\"es-CL\",\n\t\"es-CO\",\n\t\"es-CR\",\n\t\"es-CU\",\n\t\"es-DO\",\n\t\"es-EA\",\n\t\"es-EC\",\n\t\"es-GQ\",\n\t\"es-GT\",\n\t\"es-HN\",\n\t\"es-IC\",\n\t\"es-MX\",\n\t\"es-NI\",\n\t\"es-PA\",\n\t\"es-PE\",\n\t\"es-PH\",\n\t\"es-PR\",\n\t\"es-PY\",\n\t\"es-SV\",\n\t\"es-US\",\n\t\"es-UY\",\n\t\"es-VE\",\n\t\"et\",\n\t\"eu\",\n\t\"ewo\",\n\t\"fa\",\n\t\"fa-AF\",\n\t\"ff\",\n\t\"ff-Adlm\",\n\t\"ff-Adlm-BF\",\n\t\"ff-Adlm-CM\",\n\t\"ff-Adlm-GH\",\n\t\"ff-Adlm-GM\",\n\t\"ff-Adlm-GW\",\n\t\"ff-Adlm-LR\",\n\t\"ff-Adlm-MR\",\n\t\"ff-Adlm-NE\",\n\t\"ff-Adlm-NG\",\n\t\"ff-Adlm-SL\",\n\t\"ff-Adlm-SN\",\n\t\"ff-Latn\",\n\t\"ff-Latn-BF\",\n\t\"ff-Latn-CM\",\n\t\"ff-Latn-GH\",\n\t\"ff-Latn-GM\",\n\t\"ff-Latn-GN\",\n\t\"ff-Latn-GW\",\n\t\"ff-Latn-LR\",\n\t\"ff-Latn-MR\",\n\t\"ff-Latn-NE\",\n\t\"ff-Latn-NG\",\n\t\"ff-Latn-SL\",\n\t\"fi\",\n\t\"fil\",\n\t\"fo\",\n\t\"fo-DK\",\n\t\"fr\",\n\t\"fr-BE\",\n\t\"fr-BF\",\n\t\"fr-BI\",\n\t\"fr-BJ\",\n\t\"fr-BL\",\n\t\"fr-CA\",\n\t\"fr-CD\",\n\t\"fr-CF\",\n\t\"fr-CG\",\n\t\"fr-CH\",\n\t\"fr-CI\",\n\t\"fr-CM\",\n\t\"fr-DJ\",\n\t\"fr-DZ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\t\"kaa-Latn\",\n\t\"kab\",\n\t\"kaj\",\n\t\"kam\",\n\t\"kcg\",\n\t\"kde\",\n\t\"kea\",\n\t\"kek\",\n\t\"ken\",\n\t\"kgp\",\n\t\"khq\",\n\t\"ki\",\n\t\"kk\",\n\t\"kk-Arab\",\n\t\"kk-Cyrl\",\n\t\"kk-KZ\",\n\t\"kkj\",\n\t\"kl\",\n\t\"kln\",\n\t\"km\",\n\t\"kn\",\n\t\"ko\",\n\t\"ko-CN\",\n\t\"ko-KP\",\n\t\"kok\",\n\t\"kok-Deva\",\n\t\"kok-Latn\",\n\t\"kpe\",\n\t\"kpe-GN\",\n\t\"ks\",\n\t\"ks-Arab\",\n\t\"ks-Deva\",\n\t\"ksb\",\n\t\"ksf\",\n\t\"ksh\",\n\t\"ku\",\n\t\"ku-Arab\",\n\t\"ku-Arab-IR\",\n\t\"ku-Latn\",\n\t\"ku-Latn-IQ\",\n\t\"ku-Latn-SY\",\n\t\"ku-TR\",\n\t\"kw\",\n\t\"kxv\",\n\t\"kxv-Deva\",\n\t\"kxv-Latn\",\n\t\"kxv-Orya\",\n\t\"kxv-Telu\",\n\t\"ky\",\n\t\"la\",\n\t\"lag\",\n\t\"lb\",\n\t\"lg\",\n\t\"lij\",\n\t\"lkt\",\n\t\"lld\",\n\t\"lmo\",\n\t\"ln\",\n\t\"ln-AO\",\n\t\"ln-CF\",\n\t\"ln-CG\",\n\t\"lo\",\n\t\"lrc\",\n\t\"lrc-IQ\",\n\t\"lt\",\n\t\"ltg\",\n\t\"lu\",\n\t\"luo\",\n\t\"luy\",\n\t\"lv\",\n\t\"lzz\",\n\t\"mai\",\n\t\"mas\",\n\t\"mas-TZ\",\n\t\"mdf\",\n\t\"mer\",\n\t\"mfe\",\n\t\"mg\",\n\t\"mgh\",\n\t\"mgo\",\n\t\"mhn\",\n\t\"mi\",\n\t\"mic\",\n\t\"mk\",\n\t\"ml\",\n\t\"mn\",\n\t\"mn-Mong\",\n\t\"mn-Mong-MN\",\n\t\"mni\",\n\t\"mni-Beng\",\n\t\"mni-Mtei\",\n\t\"moh\",\n\t\"mr\",\n\t\"ms\",\n\t\"ms-Arab\",\n\t\"ms-Arab-BN\",\n\t\"ms-BN\",\n\t\"ms-ID\",\n\t\"ms-SG\",\n\t\"mt\",\n\t\"mua\",\n\t\"mus\",\n\t\"mww\",\n\t\"mww-Hmnp\",\n\t\"my\",\n\t\"myv\",\n\t\"mzn\",\n\t\"naq\",\n\t\"nb\",\n\t\"nb-SJ\",\n\t\"nd\",\n\t\"nds\",\n\t\"nds-NL\",\n\t\"ne\",\n\t\"ne-IN\",\n\t\"nl\",\n\t\"nl-AW\",\n\t\"nl-BE\",\n\t\"nl-BQ\",\n\t\"nl-CW\",\n\t\"nl-SR\",\n\t\"nl-SX\",\n\t\"nmg\",\n\t\"nn\",\n\t\"nnh\",\n\t\"no\",\n\t\"nqo\",\n\t\"nr\",\n\t\"nso\",\n\t\"nus\",\n\t\"nv\",\n\t\"ny\",\n\t\"nyn\",\n\t\"oc\",\n\t\"oc-ES\",\n\t\"oka\",\n\t\"oka-US\",\n\t\"om\",\n\t\"om-KE\",\n\t\"or\",\n\t\"os\",\n\t\"os-RU\",\n\t\"osa\",\n\t\"pa\",\n\t\"pa-Arab\",\n\t\"pa-Guru\",\n\t\"pap\",\n\t\"pap-AW\",\n\t\"pcm\",\n\t\"pi\",\n\t\"pi-Latn\",\n\t\"pis\",\n\t\"pl\",\n\t\"pms\",\n\t\"prg\",\n\t\"ps\",\n\t\"ps-PK\",\n\t\"pt\",\n\t\"pt-AO\",\n\t\"pt-CH\",\n\t\"pt-CV\",\n\t\"pt-GQ\",\n\t\"pt-GW\",\n\t\"pt-LU\",\n\t\"pt-MO\",\n\t\"pt-MZ\",\n\t\"pt-PT\",\n\t\"pt-ST\",\n\t\"pt-TL\",\n\t\"qu\",\n\t\"qu-BO\",\n\t\"qu-EC\",\n\t\"quc\",\n\t\"raj\",\n\t\"rhg\",\n\t\"rhg-Rohg\",\n\t\"rhg-Rohg-BD\",\n\t\"rif\",\n\t\"rm\",\n\t\"rn\",\n\t\"ro\",\n\t\"ro-MD\",\n\t\"rof\",\n\t\"ru\",\n\t\"ru-BY\",\n\t\"ru-KG\",\n\t\"ru-KZ\",\n\t\"ru-MD\",\n\t\"ru-UA\",\n\t\"rw\",\n\t\"rwk\",\n\t\"sa\",\n\t\"sah\",\n\t\"saq\",\n\t\"sat\",\n\t\"sat-Deva\",\n\t\"sat-Olck\",\n\t\"sbp\",\n\t\"sc\",\n\t\"scn\",\n\t\"sd\",\n\t\"sd-Arab\",\n\t\"sd-Deva\",\n\t\"sdh\",\n\t\"sdh-IQ\",\n\t\"se\",\n\t\"se-FI\",\n\t\"se-SE\",\n\t\"seh\",\n\t\"ses\",\n\t\"sg\",\n\t\"sgs\",\n\t\"shi\",\n\t\"shi-Latn\",\n\t\"shi-Tfng\",\n\t\"shn\",\n\t\"shn-TH\",\n\t\"si\",\n\t\"sid\",\n\t\"sk\",\n\t\"skr\",\n\t\"sl\",\n\t\"sma\",\n\t\"sma-NO\",\n\t\"smj\",\n\t\"smj-NO\",\n\t\"smn\",\n\t\"sms\",\n\t\"sn\",\n\t\"so\",\n\t\"so-DJ\",\n\t\"so-ET\",\n\t\"so-KE\",\n\t\"sq\",\n\t\"sq-MK\",\n\t\"sq-XK\",\n\t\"sr\",\n\t\"sr-Cyrl\",\n\t\"sr-Cyrl-BA\",\n\t\"sr-Cyrl-ME\",\n\t\"sr-Cyrl-XK\",\n\t\"sr-Latn\",\n\t\"sr-Latn-BA\",\n\t\"sr-Latn-ME\",\n\t\"sr-Latn-XK\",\n\t\"ss\",\n\t\"ss-SZ\",\n\t\"ssy\",\n\t\"st\",\n\t\"st-LS\",\n\t\"su\",\n\t\"su-Latn\",\n\t\"suz\",\n\t\"suz-Deva\",\n\t\"suz-Sunu\",\n\t\"sv\",\n\t\"sv-AX\",\n\t\"sv-FI\",\n\t\"sw\",\n\t\"sw-CD\",\n\t\"sw-KE\",\n\t\"sw-UG\",\n\t\"syr\",\n\t\"syr-SY\",\n\t\"szl\",\n\t\"ta\",\n\t\"ta-LK\",\n\t\"ta-MY\",\n\t\"ta-SG\",\n\t\"te\",\n\t\"teo\",\n\t\"teo-KE\",\n\t\"tg\",\n\t\"th\",\n\t\"ti\",\n\t\"ti-ER\",\n\t\"tig\",\n\t\"tk\",\n\t\"tn\",\n\t\"tn-BW\",\n\t\"to\",\n\t\"tok\",\n\t\"tpi\",\n\t\"tr\",\n\t\"tr-CY\",\n\t\"trv\",\n\t\"trw\",\n\t\"ts\",\n\t\"tt\",\n\t\"twq\",\n\t\"tyv\",\n\t\"tzm\",\n\t\"ug\",\n\t\"uk\",\n\t\"und\",\n\t\"ur\",\n\t\"ur-IN\",\n\t\"uz\",\n\t\"uz-Arab\",\n\t\"uz-Cyrl\",\n\t\"uz-Latn\",\n\t\"vai\",\n\t\"vai-Latn\",\n\t\"vai-Vaii\",\n\t\"ve\",\n\t\"vec\",\n\t\"vi\",\n\t\"vmw\",\n\t\"vo\",\n\t\"vun\",\n\t\"wa\",\n\t\"wae\",\n\t\"wal\",\n\t\"wbp\",\n\t\"wo\",\n\t\"xh\",\n\t\"xnr\",\n\t\"xog\",\n\t\"yav\",\n\t\"yi\",\n\t\"yo\",\n\t\"yo-BJ\",\n\t\"yrl\",\n\t\"yrl-CO\",\n\t\"yrl-VE\",\n\t\"yue\",\n\t\"yue-Hans\",\n\t\"yue-Hant\",\n\t\"yue-Hant-CN\",\n\t\"yue-Hant-MO\",\n\t\"za\",\n\t\"zgh\",\n\t\"zh\",\n\t\"zh-Hans\",\n\t\"zh-Hans-HK\",\n\t\"zh-Hans-MO\",\n\t\"zh-Hans-MY\",\n\t\"zh-Hans-SG\",\n\t\"zh-Hant\",\n\t\"zh-Hant-HK\",\n\t\"zh-Hant-MO\",\n\t\"zh-Hant-MY\",\n\t\"zh-Latn\",\n\t\"zu\"\n];\n","import {match} from '@formatjs/intl-localematcher'\nimport {supportedLocales} from '@formatjs_generated/cldr.supported-locales/intl-listformat.js'\n\nfunction supportedLocalesOf(locale?: string | string[]) {\n if (!locale) {\n return true\n }\n const locales = Array.isArray(locale) ? locale : [locale]\n return (\n (Intl as any).ListFormat.supportedLocalesOf(locales).length ===\n locales.length\n )\n}\n\nexport function shouldPolyfill(locale = 'en'): string | undefined {\n if (!('ListFormat' in Intl) || !supportedLocalesOf(locale)) {\n return locale ? match([locale], supportedLocales, 'en') : undefined\n }\n}\n"],"x_google_ignoreList":[0],"mappings":";;AAAA,MAAa,mBAAmB;CAC/B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;;;AC5vBD,SAAS,mBAAmB,QAA4B;AACtD,KAAI,CAAC,OACH,QAAO;CAET,MAAM,UAAU,MAAM,QAAQ,OAAO,GAAG,SAAS,CAAC,OAAO;AACzD,QACG,KAAa,WAAW,mBAAmB,QAAQ,CAAC,WACrD,QAAQ;;AAIZ,SAAgB,eAAe,SAAS,MAA0B;AAChE,KAAI,EAAE,gBAAgB,SAAS,CAAC,mBAAmB,OAAO,CACxD,QAAO,SAAS,MAAM,CAAC,OAAO,EAAE,kBAAkB,KAAK,GAAG,KAAA"}
1
+ {"version":3,"file":"should-polyfill.js","names":[],"sources":["../../../node_modules/.aspect_rules_js/@formatjs_generated+cldr.supported-locales@0.0.0/node_modules/@formatjs_generated/cldr.supported-locales/intl-listformat.js","../should-polyfill.ts"],"sourcesContent":["export const supportedLocales = [\n\t\"aa\",\n\t\"aa-DJ\",\n\t\"aa-ER\",\n\t\"ab\",\n\t\"af\",\n\t\"af-NA\",\n\t\"agq\",\n\t\"ak\",\n\t\"am\",\n\t\"an\",\n\t\"ann\",\n\t\"apc\",\n\t\"ar\",\n\t\"ar-AE\",\n\t\"ar-BH\",\n\t\"ar-DJ\",\n\t\"ar-DZ\",\n\t\"ar-EG\",\n\t\"ar-EH\",\n\t\"ar-ER\",\n\t\"ar-IL\",\n\t\"ar-IQ\",\n\t\"ar-JO\",\n\t\"ar-KM\",\n\t\"ar-KW\",\n\t\"ar-LB\",\n\t\"ar-LY\",\n\t\"ar-MA\",\n\t\"ar-MR\",\n\t\"ar-OM\",\n\t\"ar-PS\",\n\t\"ar-QA\",\n\t\"ar-SA\",\n\t\"ar-SD\",\n\t\"ar-SO\",\n\t\"ar-SS\",\n\t\"ar-SY\",\n\t\"ar-TD\",\n\t\"ar-TN\",\n\t\"ar-YE\",\n\t\"arn\",\n\t\"as\",\n\t\"asa\",\n\t\"ast\",\n\t\"az\",\n\t\"az-Arab\",\n\t\"az-Arab-IQ\",\n\t\"az-Arab-TR\",\n\t\"az-Cyrl\",\n\t\"az-Latn\",\n\t\"ba\",\n\t\"bal\",\n\t\"bal-Arab\",\n\t\"bal-Latn\",\n\t\"bas\",\n\t\"be\",\n\t\"be-tarask\",\n\t\"bem\",\n\t\"bew\",\n\t\"bez\",\n\t\"bg\",\n\t\"bgc\",\n\t\"bgn\",\n\t\"bgn-AE\",\n\t\"bgn-AF\",\n\t\"bgn-IR\",\n\t\"bgn-OM\",\n\t\"bho\",\n\t\"blo\",\n\t\"blt\",\n\t\"bm\",\n\t\"bm-Nkoo\",\n\t\"bn\",\n\t\"bn-IN\",\n\t\"bo\",\n\t\"bo-IN\",\n\t\"bqi\",\n\t\"br\",\n\t\"brx\",\n\t\"bs\",\n\t\"bs-Cyrl\",\n\t\"bs-Latn\",\n\t\"bss\",\n\t\"bua\",\n\t\"byn\",\n\t\"ca\",\n\t\"ca-AD\",\n\t\"ca-ES-valencia\",\n\t\"ca-FR\",\n\t\"ca-IT\",\n\t\"cad\",\n\t\"cch\",\n\t\"ccp\",\n\t\"ccp-IN\",\n\t\"ce\",\n\t\"ceb\",\n\t\"cgg\",\n\t\"cho\",\n\t\"chr\",\n\t\"cic\",\n\t\"ckb\",\n\t\"ckb-IR\",\n\t\"co\",\n\t\"cop\",\n\t\"cs\",\n\t\"csw\",\n\t\"cu\",\n\t\"cv\",\n\t\"cy\",\n\t\"da\",\n\t\"da-GL\",\n\t\"dav\",\n\t\"de\",\n\t\"de-AT\",\n\t\"de-BE\",\n\t\"de-CH\",\n\t\"de-IT\",\n\t\"de-LI\",\n\t\"de-LU\",\n\t\"dje\",\n\t\"doi\",\n\t\"dsb\",\n\t\"dua\",\n\t\"dv\",\n\t\"dyo\",\n\t\"dz\",\n\t\"ebu\",\n\t\"ee\",\n\t\"ee-TG\",\n\t\"el\",\n\t\"el-CY\",\n\t\"el-polyton\",\n\t\"en\",\n\t\"en-001\",\n\t\"en-150\",\n\t\"en-AE\",\n\t\"en-AG\",\n\t\"en-AI\",\n\t\"en-AS\",\n\t\"en-AT\",\n\t\"en-AU\",\n\t\"en-BB\",\n\t\"en-BE\",\n\t\"en-BI\",\n\t\"en-BM\",\n\t\"en-BS\",\n\t\"en-BW\",\n\t\"en-BZ\",\n\t\"en-CA\",\n\t\"en-CC\",\n\t\"en-CH\",\n\t\"en-CK\",\n\t\"en-CM\",\n\t\"en-CX\",\n\t\"en-CY\",\n\t\"en-CZ\",\n\t\"en-DE\",\n\t\"en-DG\",\n\t\"en-DK\",\n\t\"en-DM\",\n\t\"en-Dsrt\",\n\t\"en-EE\",\n\t\"en-ER\",\n\t\"en-ES\",\n\t\"en-FI\",\n\t\"en-FJ\",\n\t\"en-FK\",\n\t\"en-FM\",\n\t\"en-FR\",\n\t\"en-GB\",\n\t\"en-GD\",\n\t\"en-GE\",\n\t\"en-GG\",\n\t\"en-GH\",\n\t\"en-GI\",\n\t\"en-GM\",\n\t\"en-GS\",\n\t\"en-GU\",\n\t\"en-GY\",\n\t\"en-HK\",\n\t\"en-HU\",\n\t\"en-ID\",\n\t\"en-IE\",\n\t\"en-IL\",\n\t\"en-IM\",\n\t\"en-IN\",\n\t\"en-IO\",\n\t\"en-IT\",\n\t\"en-JE\",\n\t\"en-JM\",\n\t\"en-JP\",\n\t\"en-KE\",\n\t\"en-KI\",\n\t\"en-KN\",\n\t\"en-KY\",\n\t\"en-LC\",\n\t\"en-LR\",\n\t\"en-LS\",\n\t\"en-LT\",\n\t\"en-LV\",\n\t\"en-MG\",\n\t\"en-MH\",\n\t\"en-MO\",\n\t\"en-MP\",\n\t\"en-MS\",\n\t\"en-MT\",\n\t\"en-MU\",\n\t\"en-MV\",\n\t\"en-MW\",\n\t\"en-MY\",\n\t\"en-NA\",\n\t\"en-NF\",\n\t\"en-NG\",\n\t\"en-NL\",\n\t\"en-NO\",\n\t\"en-NR\",\n\t\"en-NU\",\n\t\"en-NZ\",\n\t\"en-PG\",\n\t\"en-PH\",\n\t\"en-PK\",\n\t\"en-PL\",\n\t\"en-PN\",\n\t\"en-PR\",\n\t\"en-PT\",\n\t\"en-PW\",\n\t\"en-RO\",\n\t\"en-RW\",\n\t\"en-SB\",\n\t\"en-SC\",\n\t\"en-SD\",\n\t\"en-SE\",\n\t\"en-SG\",\n\t\"en-SH\",\n\t\"en-SI\",\n\t\"en-SK\",\n\t\"en-SL\",\n\t\"en-SS\",\n\t\"en-SX\",\n\t\"en-SZ\",\n\t\"en-Shaw\",\n\t\"en-TC\",\n\t\"en-TK\",\n\t\"en-TO\",\n\t\"en-TT\",\n\t\"en-TV\",\n\t\"en-TZ\",\n\t\"en-UA\",\n\t\"en-UG\",\n\t\"en-UM\",\n\t\"en-VC\",\n\t\"en-VG\",\n\t\"en-VI\",\n\t\"en-VU\",\n\t\"en-WS\",\n\t\"en-ZA\",\n\t\"en-ZM\",\n\t\"en-ZW\",\n\t\"eo\",\n\t\"es\",\n\t\"es-419\",\n\t\"es-AR\",\n\t\"es-BO\",\n\t\"es-BR\",\n\t\"es-BZ\",\n\t\"es-CL\",\n\t\"es-CO\",\n\t\"es-CR\",\n\t\"es-CU\",\n\t\"es-DO\",\n\t\"es-EA\",\n\t\"es-EC\",\n\t\"es-GQ\",\n\t\"es-GT\",\n\t\"es-HN\",\n\t\"es-IC\",\n\t\"es-MX\",\n\t\"es-NI\",\n\t\"es-PA\",\n\t\"es-PE\",\n\t\"es-PH\",\n\t\"es-PR\",\n\t\"es-PY\",\n\t\"es-SV\",\n\t\"es-US\",\n\t\"es-UY\",\n\t\"es-VE\",\n\t\"et\",\n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fr-SY\",\n\t\"fr-TD\",\n\t\"fr-TG\",\n\t\"fr-TN\",\n\t\"fr-VU\",\n\t\"fr-WF\",\n\t\"fr-YT\",\n\t\"frr\",\n\t\"fur\",\n\t\"fy\",\n\t\"ga\",\n\t\"ga-GB\",\n\t\"gaa\",\n\t\"gd\",\n\t\"gez\",\n\t\"gez-ER\",\n\t\"gl\",\n\t\"gn\",\n\t\"gsw\",\n\t\"gsw-FR\",\n\t\"gsw-LI\",\n\t\"gu\",\n\t\"guz\",\n\t\"gv\",\n\t\"ha\",\n\t\"ha-Arab\",\n\t\"ha-Arab-SD\",\n\t\"ha-GH\",\n\t\"ha-NE\",\n\t\"haw\",\n\t\"he\",\n\t\"hi\",\n\t\"hi-Latn\",\n\t\"hnj\",\n\t\"hnj-Hmnp\",\n\t\"hr\",\n\t\"hr-BA\",\n\t\"hsb\",\n\t\"ht\",\n\t\"hu\",\n\t\"hy\",\n\t\"ia\",\n\t\"id\",\n\t\"ie\",\n\t\"ig\",\n\t\"ii\",\n\t\"io\",\n\t\"is\",\n\t\"it\",\n\t\"it-CH\",\n\t\"it-SM\",\n\t\"it-VA\",\n\t\"iu\",\n\t\"iu-Latn\",\n\t\"ja\",\n\t\"jbo\",\n\t\"jgo\",\n\t\"jmc\",\n\t\"jv\",\n\t\"ka\",\n\t\"kaa\",\n\t\"kaa-Cyrl\",\n\t\"kaa-Latn\",\n\t\"kab\",\n\t\"kaj\",\n\t\"kam\",\n\t\"kcg\",\n\t\"kde\",\n\t\"kea\",\n\t\"kek\",\n\t\"ken\",\n\t\"kgp\",\n\t\"khq\",\n\t\"ki\",\n\t\"kk\",\n\t\"kk-Arab\",\n\t\"kk-Cyrl\",\n\t\"kk-KZ\",\n\t\"kkj\",\n\t\"kl\",\n\t\"kln\",\n\t\"km\",\n\t\"kn\",\n\t\"ko\",\n\t\"ko-CN\",\n\t\"ko-KP\",\n\t\"kok\",\n\t\"kok-Deva\",\n\t\"kok-Latn\",\n\t\"kpe\",\n\t\"kpe-GN\",\n\t\"ks\",\n\t\"ks-Arab\",\n\t\"ks-Deva\",\n\t\"ksb\",\n\t\"ksf\",\n\t\"ksh\",\n\t\"ku\",\n\t\"ku-Arab\",\n\t\"ku-Arab-IR\",\n\t\"ku-Latn\",\n\t\"ku-Latn-IQ\",\n\t\"ku-Latn-SY\",\n\t\"ku-TR\",\n\t\"kw\",\n\t\"kxv\",\n\t\"kxv-Deva\",\n\t\"kxv-Latn\",\n\t\"kxv-Orya\",\n\t\"kxv-Telu\",\n\t\"ky\",\n\t\"la\",\n\t\"lag\",\n\t\"lb\",\n\t\"lg\",\n\t\"lij\",\n\t\"lkt\",\n\t\"lld\",\n\t\"lmo\",\n\t\"ln\",\n\t\"ln-AO\",\n\t\"ln-CF\",\n\t\"ln-CG\",\n\t\"lo\",\n\t\"lrc\",\n\t\"lrc-IQ\",\n\t\"lt\",\n\t\"ltg\",\n\t\"lu\",\n\t\"luo\",\n\t\"luy\",\n\t\"lv\",\n\t\"lzz\",\n\t\"mai\",\n\t\"mas\",\n\t\"mas-TZ\",\n\t\"mdf\",\n\t\"mer\",\n\t\"mfe\",\n\t\"mg\",\n\t\"mgh\",\n\t\"mgo\",\n\t\"mhn\",\n\t\"mi\",\n\t\"mic\",\n\t\"mk\",\n\t\"ml\",\n\t\"mn\",\n\t\"mn-Mong\",\n\t\"mn-Mong-MN\",\n\t\"mni\",\n\t\"mni-Beng\",\n\t\"mni-Mtei\",\n\t\"moh\",\n\t\"mr\",\n\t\"ms\",\n\t\"ms-Arab\",\n\t\"ms-Arab-BN\",\n\t\"ms-BN\",\n\t\"ms-ID\",\n\t\"ms-SG\",\n\t\"mt\",\n\t\"mua\",\n\t\"mus\",\n\t\"mww\",\n\t\"mww-Hmnp\",\n\t\"my\",\n\t\"myv\",\n\t\"mzn\",\n\t\"naq\",\n\t\"nb\",\n\t\"nb-SJ\",\n\t\"nd\",\n\t\"nds\",\n\t\"nds-NL\",\n\t\"ne\",\n\t\"ne-IN\",\n\t\"nl\",\n\t\"nl-AW\",\n\t\"nl-BE\",\n\t\"nl-BQ\",\n\t\"nl-CW\",\n\t\"nl-SR\",\n\t\"nl-SX\",\n\t\"nmg\",\n\t\"nn\",\n\t\"nnh\",\n\t\"no\",\n\t\"nqo\",\n\t\"nr\",\n\t\"nso\",\n\t\"nus\",\n\t\"nv\",\n\t\"ny\",\n\t\"nyn\",\n\t\"oc\",\n\t\"oc-ES\",\n\t\"oka\",\n\t\"oka-US\",\n\t\"om\",\n\t\"om-KE\",\n\t\"or\",\n\t\"os\",\n\t\"os-RU\",\n\t\"osa\",\n\t\"pa\",\n\t\"pa-Arab\",\n\t\"pa-Guru\",\n\t\"pap\",\n\t\"pap-AW\",\n\t\"pcm\",\n\t\"pi\",\n\t\"pi-Latn\",\n\t\"pis\",\n\t\"pl\",\n\t\"pms\",\n\t\"prg\",\n\t\"ps\",\n\t\"ps-PK\",\n\t\"pt\",\n\t\"pt-AO\",\n\t\"pt-CH\",\n\t\"pt-CV\",\n\t\"pt-GQ\",\n\t\"pt-GW\",\n\t\"pt-LU\",\n\t\"pt-MO\",\n\t\"pt-MZ\",\n\t\"pt-PT\",\n\t\"pt-ST\",\n\t\"pt-TL\",\n\t\"qu\",\n\t\"qu-BO\",\n\t\"qu-EC\",\n\t\"quc\",\n\t\"raj\",\n\t\"rhg\",\n\t\"rhg-Rohg\",\n\t\"rhg-Rohg-BD\",\n\t\"rif\",\n\t\"rm\",\n\t\"rn\",\n\t\"ro\",\n\t\"ro-MD\",\n\t\"rof\",\n\t\"ru\",\n\t\"ru-BY\",\n\t\"ru-KG\",\n\t\"ru-KZ\",\n\t\"ru-MD\",\n\t\"ru-UA\",\n\t\"rw\",\n\t\"rwk\",\n\t\"sa\",\n\t\"sah\",\n\t\"saq\",\n\t\"sat\",\n\t\"sat-Deva\",\n\t\"sat-Olck\",\n\t\"sbp\",\n\t\"sc\",\n\t\"scn\",\n\t\"sd\",\n\t\"sd-Arab\",\n\t\"sd-Deva\",\n\t\"sdh\",\n\t\"sdh-IQ\",\n\t\"se\",\n\t\"se-FI\",\n\t\"se-SE\",\n\t\"seh\",\n\t\"ses\",\n\t\"sg\",\n\t\"sgs\",\n\t\"shi\",\n\t\"shi-Latn\",\n\t\"shi-Tfng\",\n\t\"shn\",\n\t\"shn-TH\",\n\t\"si\",\n\t\"sid\",\n\t\"sk\",\n\t\"skr\",\n\t\"sl\",\n\t\"sma\",\n\t\"sma-NO\",\n\t\"smj\",\n\t\"smj-NO\",\n\t\"smn\",\n\t\"sms\",\n\t\"sn\",\n\t\"so\",\n\t\"so-DJ\",\n\t\"so-ET\",\n\t\"so-KE\",\n\t\"sq\",\n\t\"sq-MK\",\n\t\"sq-XK\",\n\t\"sr\",\n\t\"sr-Cyrl\",\n\t\"sr-Cyrl-BA\",\n\t\"sr-Cyrl-ME\",\n\t\"sr-Cyrl-XK\",\n\t\"sr-Latn\",\n\t\"sr-Latn-BA\",\n\t\"sr-Latn-ME\",\n\t\"sr-Latn-XK\",\n\t\"ss\",\n\t\"ss-SZ\",\n\t\"ssy\",\n\t\"st\",\n\t\"st-LS\",\n\t\"su\",\n\t\"su-Latn\",\n\t\"suz\",\n\t\"suz-Deva\",\n\t\"suz-Sunu\",\n\t\"sv\",\n\t\"sv-AX\",\n\t\"sv-FI\",\n\t\"sw\",\n\t\"sw-CD\",\n\t\"sw-KE\",\n\t\"sw-UG\",\n\t\"syr\",\n\t\"syr-SY\",\n\t\"szl\",\n\t\"ta\",\n\t\"ta-LK\",\n\t\"ta-MY\",\n\t\"ta-SG\",\n\t\"te\",\n\t\"teo\",\n\t\"teo-KE\",\n\t\"tg\",\n\t\"th\",\n\t\"ti\",\n\t\"ti-ER\",\n\t\"tig\",\n\t\"tk\",\n\t\"tn\",\n\t\"tn-BW\",\n\t\"to\",\n\t\"tok\",\n\t\"tpi\",\n\t\"tr\",\n\t\"tr-CY\",\n\t\"trv\",\n\t\"trw\",\n\t\"ts\",\n\t\"tt\",\n\t\"twq\",\n\t\"tyv\",\n\t\"tzm\",\n\t\"ug\",\n\t\"uk\",\n\t\"und\",\n\t\"ur\",\n\t\"ur-IN\",\n\t\"uz\",\n\t\"uz-Arab\",\n\t\"uz-Cyrl\",\n\t\"uz-Latn\",\n\t\"vai\",\n\t\"vai-Latn\",\n\t\"vai-Vaii\",\n\t\"ve\",\n\t\"vec\",\n\t\"vi\",\n\t\"vmw\",\n\t\"vo\",\n\t\"vun\",\n\t\"wa\",\n\t\"wae\",\n\t\"wal\",\n\t\"wbp\",\n\t\"wo\",\n\t\"xh\",\n\t\"xnr\",\n\t\"xog\",\n\t\"yav\",\n\t\"yi\",\n\t\"yo\",\n\t\"yo-BJ\",\n\t\"yrl\",\n\t\"yrl-CO\",\n\t\"yrl-VE\",\n\t\"yue\",\n\t\"yue-Hans\",\n\t\"yue-Hant\",\n\t\"yue-Hant-CN\",\n\t\"yue-Hant-MO\",\n\t\"za\",\n\t\"zgh\",\n\t\"zh\",\n\t\"zh-Hans\",\n\t\"zh-Hans-HK\",\n\t\"zh-Hans-MO\",\n\t\"zh-Hans-MY\",\n\t\"zh-Hans-SG\",\n\t\"zh-Hant\",\n\t\"zh-Hant-HK\",\n\t\"zh-Hant-MO\",\n\t\"zh-Hant-MY\",\n\t\"zh-Latn\",\n\t\"zu\"\n];\n","import {match} from '@formatjs/intl-localematcher'\nimport {supportedLocales} from '@formatjs_generated/cldr.supported-locales/intl-listformat.js'\n\nfunction supportedLocalesOf(locale?: string | string[]) {\n if (!locale) {\n return true\n }\n const locales = Array.isArray(locale) ? locale : [locale]\n return (\n (Intl as any).ListFormat.supportedLocalesOf(locales).length ===\n locales.length\n )\n}\n\nexport function shouldPolyfill(locale = 'en'): string | undefined {\n if (\n typeof Intl === 'undefined' ||\n !('ListFormat' in Intl) ||\n !supportedLocalesOf(locale)\n ) {\n return locale ? match([locale], supportedLocales, 'en') : undefined\n }\n}\n"],"x_google_ignoreList":[0],"mappings":";;AAAA,MAAa,mBAAmB;CAC/B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;;;AC5vBD,SAAS,mBAAmB,QAA4B;CACtD,IAAI,CAAC,QACH,OAAO;CAET,MAAM,UAAU,MAAM,QAAQ,OAAO,GAAG,SAAS,CAAC,OAAO;CACzD,OACG,KAAa,WAAW,mBAAmB,QAAQ,CAAC,WACrD,QAAQ;;AAIZ,SAAgB,eAAe,SAAS,MAA0B;CAChE,IACE,OAAO,SAAS,eAChB,EAAE,gBAAgB,SAClB,CAAC,mBAAmB,OAAO,EAE3B,OAAO,SAAS,MAAM,CAAC,OAAO,EAAE,kBAAkB,KAAK,GAAG,KAAA"}