gt-tanstack-start 0.4.20 → 0.4.21
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/CHANGELOG.md +10 -0
- package/dist/index.cjs.min.cjs +4 -11
- package/dist/index.cjs.min.cjs.map +1 -1
- package/dist/index.d.ts +457 -14
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.min.mjs +4 -11
- package/dist/index.esm.min.mjs.map +1 -1
- package/dist/types.d.ts +91 -5
- package/dist/types.d.ts.map +1 -1
- package/package.json +7 -11
- package/dist/functions/determineLocale.d.ts +0 -8
- package/dist/functions/determineLocale.d.ts.map +0 -1
- package/dist/functions/getTranslations.d.ts +0 -6
- package/dist/functions/getTranslations.d.ts.map +0 -1
- package/dist/provider/GTProvider.d.ts +0 -26
- package/dist/provider/GTProvider.d.ts.map +0 -1
- package/dist/provider/types.d.ts +0 -11
- package/dist/provider/types.d.ts.map +0 -1
- package/dist/provider/utils/determineProviderLocale.d.ts +0 -6
- package/dist/provider/utils/determineProviderLocale.d.ts.map +0 -1
- package/dist/provider/utils/isSSREnabled.d.ts +0 -5
- package/dist/provider/utils/isSSREnabled.d.ts.map +0 -1
- package/dist/runtime/TanstackConditionStore.d.ts +0 -13
- package/dist/runtime/TanstackConditionStore.d.ts.map +0 -1
- package/dist/setup/initializeGT.d.ts +0 -8
- package/dist/setup/initializeGT.d.ts.map +0 -1
- package/dist/setup/types.d.ts +0 -12
- package/dist/setup/types.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.min.mjs","sources":["../src/functions/determineLocale.ts","../src/runtime/TanstackConditionStore.ts","../src/setup/initializeGT.ts","../../../node_modules/.pnpm/react@19.2.3/node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/.pnpm/react@19.2.3/node_modules/react/jsx-runtime.js","../../../node_modules/.pnpm/react@19.2.3/node_modules/react/cjs/react-jsx-runtime.production.js","../src/provider/utils/isSSREnabled.ts","../src/provider/utils/determineProviderLocale.ts","../src/provider/GTProvider.tsx","../../../node_modules/.pnpm/@rollup+plugin-typescript@12.3.0_rollup@4.60.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js","../src/functions/getTranslations.ts"],"sourcesContent":[null,null,null,"/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function getComponentNameFromType(type) {\n if (null == type) return null;\n if (\"function\" === typeof type)\n return type.$$typeof === REACT_CLIENT_REFERENCE\n ? null\n : type.displayName || type.name || null;\n if (\"string\" === typeof type) return type;\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return \"Fragment\";\n case REACT_PROFILER_TYPE:\n return \"Profiler\";\n case REACT_STRICT_MODE_TYPE:\n return \"StrictMode\";\n case REACT_SUSPENSE_TYPE:\n return \"Suspense\";\n case REACT_SUSPENSE_LIST_TYPE:\n return \"SuspenseList\";\n case REACT_ACTIVITY_TYPE:\n return \"Activity\";\n }\n if (\"object\" === typeof type)\n switch (\n (\"number\" === typeof type.tag &&\n console.error(\n \"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"\n ),\n type.$$typeof)\n ) {\n case REACT_PORTAL_TYPE:\n return \"Portal\";\n case REACT_CONTEXT_TYPE:\n return type.displayName || \"Context\";\n case REACT_CONSUMER_TYPE:\n return (type._context.displayName || \"Context\") + \".Consumer\";\n case REACT_FORWARD_REF_TYPE:\n var innerType = type.render;\n type = type.displayName;\n type ||\n ((type = innerType.displayName || innerType.name || \"\"),\n (type = \"\" !== type ? \"ForwardRef(\" + type + \")\" : \"ForwardRef\"));\n return type;\n case REACT_MEMO_TYPE:\n return (\n (innerType = type.displayName || null),\n null !== innerType\n ? innerType\n : getComponentNameFromType(type.type) || \"Memo\"\n );\n case REACT_LAZY_TYPE:\n innerType = type._payload;\n type = type._init;\n try {\n return getComponentNameFromType(type(innerType));\n } catch (x) {}\n }\n return null;\n }\n function testStringCoercion(value) {\n return \"\" + value;\n }\n function checkKeyStringCoercion(value) {\n try {\n testStringCoercion(value);\n var JSCompiler_inline_result = !1;\n } catch (e) {\n JSCompiler_inline_result = !0;\n }\n if (JSCompiler_inline_result) {\n JSCompiler_inline_result = console;\n var JSCompiler_temp_const = JSCompiler_inline_result.error;\n var JSCompiler_inline_result$jscomp$0 =\n (\"function\" === typeof Symbol &&\n Symbol.toStringTag &&\n value[Symbol.toStringTag]) ||\n value.constructor.name ||\n \"Object\";\n JSCompiler_temp_const.call(\n JSCompiler_inline_result,\n \"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.\",\n JSCompiler_inline_result$jscomp$0\n );\n return testStringCoercion(value);\n }\n }\n function getTaskName(type) {\n if (type === REACT_FRAGMENT_TYPE) return \"<>\";\n if (\n \"object\" === typeof type &&\n null !== type &&\n type.$$typeof === REACT_LAZY_TYPE\n )\n return \"<...>\";\n try {\n var name = getComponentNameFromType(type);\n return name ? \"<\" + name + \">\" : \"<...>\";\n } catch (x) {\n return \"<...>\";\n }\n }\n function getOwner() {\n var dispatcher = ReactSharedInternals.A;\n return null === dispatcher ? null : dispatcher.getOwner();\n }\n function UnknownOwner() {\n return Error(\"react-stack-top-frame\");\n }\n function hasValidKey(config) {\n if (hasOwnProperty.call(config, \"key\")) {\n var getter = Object.getOwnPropertyDescriptor(config, \"key\").get;\n if (getter && getter.isReactWarning) return !1;\n }\n return void 0 !== config.key;\n }\n function defineKeyPropWarningGetter(props, displayName) {\n function warnAboutAccessingKey() {\n specialPropKeyWarningShown ||\n ((specialPropKeyWarningShown = !0),\n console.error(\n \"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)\",\n displayName\n ));\n }\n warnAboutAccessingKey.isReactWarning = !0;\n Object.defineProperty(props, \"key\", {\n get: warnAboutAccessingKey,\n configurable: !0\n });\n }\n function elementRefGetterWithDeprecationWarning() {\n var componentName = getComponentNameFromType(this.type);\n didWarnAboutElementRef[componentName] ||\n ((didWarnAboutElementRef[componentName] = !0),\n console.error(\n \"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.\"\n ));\n componentName = this.props.ref;\n return void 0 !== componentName ? componentName : null;\n }\n function ReactElement(type, key, props, owner, debugStack, debugTask) {\n var refProp = props.ref;\n type = {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n props: props,\n _owner: owner\n };\n null !== (void 0 !== refProp ? refProp : null)\n ? Object.defineProperty(type, \"ref\", {\n enumerable: !1,\n get: elementRefGetterWithDeprecationWarning\n })\n : Object.defineProperty(type, \"ref\", { enumerable: !1, value: null });\n type._store = {};\n Object.defineProperty(type._store, \"validated\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: 0\n });\n Object.defineProperty(type, \"_debugInfo\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: null\n });\n Object.defineProperty(type, \"_debugStack\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugStack\n });\n Object.defineProperty(type, \"_debugTask\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugTask\n });\n Object.freeze && (Object.freeze(type.props), Object.freeze(type));\n return type;\n }\n function jsxDEVImpl(\n type,\n config,\n maybeKey,\n isStaticChildren,\n debugStack,\n debugTask\n ) {\n var children = config.children;\n if (void 0 !== children)\n if (isStaticChildren)\n if (isArrayImpl(children)) {\n for (\n isStaticChildren = 0;\n isStaticChildren < children.length;\n isStaticChildren++\n )\n validateChildKeys(children[isStaticChildren]);\n Object.freeze && Object.freeze(children);\n } else\n console.error(\n \"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.\"\n );\n else validateChildKeys(children);\n if (hasOwnProperty.call(config, \"key\")) {\n children = getComponentNameFromType(type);\n var keys = Object.keys(config).filter(function (k) {\n return \"key\" !== k;\n });\n isStaticChildren =\n 0 < keys.length\n ? \"{key: someKey, \" + keys.join(\": ..., \") + \": ...}\"\n : \"{key: someKey}\";\n didWarnAboutKeySpread[children + isStaticChildren] ||\n ((keys =\n 0 < keys.length ? \"{\" + keys.join(\": ..., \") + \": ...}\" : \"{}\"),\n console.error(\n 'A props object containing a \"key\" prop is being spread into JSX:\\n let props = %s;\\n <%s {...props} />\\nReact keys must be passed directly to JSX without using spread:\\n let props = %s;\\n <%s key={someKey} {...props} />',\n isStaticChildren,\n children,\n keys,\n children\n ),\n (didWarnAboutKeySpread[children + isStaticChildren] = !0));\n }\n children = null;\n void 0 !== maybeKey &&\n (checkKeyStringCoercion(maybeKey), (children = \"\" + maybeKey));\n hasValidKey(config) &&\n (checkKeyStringCoercion(config.key), (children = \"\" + config.key));\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n children &&\n defineKeyPropWarningGetter(\n maybeKey,\n \"function\" === typeof type\n ? type.displayName || type.name || \"Unknown\"\n : type\n );\n return ReactElement(\n type,\n children,\n maybeKey,\n getOwner(),\n debugStack,\n debugTask\n );\n }\n function validateChildKeys(node) {\n isValidElement(node)\n ? node._store && (node._store.validated = 1)\n : \"object\" === typeof node &&\n null !== node &&\n node.$$typeof === REACT_LAZY_TYPE &&\n (\"fulfilled\" === node._payload.status\n ? isValidElement(node._payload.value) &&\n node._payload.value._store &&\n (node._payload.value._store.validated = 1)\n : node._store && (node._store.validated = 1));\n }\n function isValidElement(object) {\n return (\n \"object\" === typeof object &&\n null !== object &&\n object.$$typeof === REACT_ELEMENT_TYPE\n );\n }\n var React = require(\"react\"),\n REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\"),\n REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n REACT_ACTIVITY_TYPE = Symbol.for(\"react.activity\"),\n REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\"),\n ReactSharedInternals =\n React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,\n hasOwnProperty = Object.prototype.hasOwnProperty,\n isArrayImpl = Array.isArray,\n createTask = console.createTask\n ? console.createTask\n : function () {\n return null;\n };\n React = {\n react_stack_bottom_frame: function (callStackForError) {\n return callStackForError();\n }\n };\n var specialPropKeyWarningShown;\n var didWarnAboutElementRef = {};\n var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(\n React,\n UnknownOwner\n )();\n var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));\n var didWarnAboutKeySpread = {};\n exports.Fragment = REACT_FRAGMENT_TYPE;\n exports.jsx = function (type, config, maybeKey) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !1,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n exports.jsxs = function (type, config, maybeKey) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !0,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n })();\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","/**\n * @license React\n * react-jsx-runtime.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\");\nfunction jsxProd(type, config, maybeKey) {\n var key = null;\n void 0 !== maybeKey && (key = \"\" + maybeKey);\n void 0 !== config.key && (key = \"\" + config.key);\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n config = maybeKey.ref;\n return {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n ref: void 0 !== config ? config : null,\n props: maybeKey\n };\n}\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsxProd;\nexports.jsxs = jsxProd;\n",null,null,null,"/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\r\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\r\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\r\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\r\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\r\n var _, done = false;\r\n for (var i = decorators.length - 1; i >= 0; i--) {\r\n var context = {};\r\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\r\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\r\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\r\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\r\n if (kind === \"accessor\") {\r\n if (result === void 0) continue;\r\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\r\n if (_ = accept(result.get)) descriptor.get = _;\r\n if (_ = accept(result.set)) descriptor.set = _;\r\n if (_ = accept(result.init)) initializers.unshift(_);\r\n }\r\n else if (_ = accept(result)) {\r\n if (kind === \"field\") initializers.unshift(_);\r\n else descriptor[key] = _;\r\n }\r\n }\r\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\r\n done = true;\r\n};\r\n\r\nexport function __runInitializers(thisArg, initializers, value) {\r\n var useValue = arguments.length > 2;\r\n for (var i = 0; i < initializers.length; i++) {\r\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\r\n }\r\n return useValue ? value : void 0;\r\n};\r\n\r\nexport function __propKey(x) {\r\n return typeof x === \"symbol\" ? x : \"\".concat(x);\r\n};\r\n\r\nexport function __setFunctionName(f, name, prefix) {\r\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\r\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\r\n};\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === \"function\" ? Iterator : Object).prototype);\r\n return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = Object.create((typeof AsyncIterator === \"function\" ? AsyncIterator : Object).prototype), verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\r\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nvar ownKeys = function(o) {\r\n ownKeys = Object.getOwnPropertyNames || function (o) {\r\n var ar = [];\r\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\r\n return ar;\r\n };\r\n return ownKeys(o);\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n\r\nexport function __addDisposableResource(env, value, async) {\r\n if (value !== null && value !== void 0) {\r\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\r\n var dispose, inner;\r\n if (async) {\r\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\r\n dispose = value[Symbol.asyncDispose];\r\n }\r\n if (dispose === void 0) {\r\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\r\n dispose = value[Symbol.dispose];\r\n if (async) inner = dispose;\r\n }\r\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\r\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\r\n env.stack.push({ value: value, dispose: dispose, async: async });\r\n }\r\n else if (async) {\r\n env.stack.push({ async: true });\r\n }\r\n return value;\r\n\r\n}\r\n\r\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n var e = new Error(message);\r\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n};\r\n\r\nexport function __disposeResources(env) {\r\n function fail(e) {\r\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\r\n env.hasError = true;\r\n }\r\n var r, s = 0;\r\n function next() {\r\n while (r = env.stack.pop()) {\r\n try {\r\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\r\n if (r.dispose) {\r\n var result = r.dispose.call(r.value);\r\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\r\n }\r\n else s |= 1;\r\n }\r\n catch (e) {\r\n fail(e);\r\n }\r\n }\r\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\r\n if (env.hasError) throw env.error;\r\n }\r\n return next();\r\n}\r\n\r\nexport function __rewriteRelativeImportExtension(path, preserveJsx) {\r\n if (typeof path === \"string\" && /^\\.\\.?\\//.test(path)) {\r\n return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {\r\n return tsx ? preserveJsx ? \".jsx\" : \".js\" : d && (!ext || !cm) ? m : (d + ext + \".\" + cm.toLowerCase() + \"js\");\r\n });\r\n }\r\n return path;\r\n}\r\n\r\nexport default {\r\n __extends: __extends,\r\n __assign: __assign,\r\n __rest: __rest,\r\n __decorate: __decorate,\r\n __param: __param,\r\n __esDecorate: __esDecorate,\r\n __runInitializers: __runInitializers,\r\n __propKey: __propKey,\r\n __setFunctionName: __setFunctionName,\r\n __metadata: __metadata,\r\n __awaiter: __awaiter,\r\n __generator: __generator,\r\n __createBinding: __createBinding,\r\n __exportStar: __exportStar,\r\n __values: __values,\r\n __read: __read,\r\n __spread: __spread,\r\n __spreadArrays: __spreadArrays,\r\n __spreadArray: __spreadArray,\r\n __await: __await,\r\n __asyncGenerator: __asyncGenerator,\r\n __asyncDelegator: __asyncDelegator,\r\n __asyncValues: __asyncValues,\r\n __makeTemplateObject: __makeTemplateObject,\r\n __importStar: __importStar,\r\n __importDefault: __importDefault,\r\n __classPrivateFieldGet: __classPrivateFieldGet,\r\n __classPrivateFieldSet: __classPrivateFieldSet,\r\n __classPrivateFieldIn: __classPrivateFieldIn,\r\n __addDisposableResource: __addDisposableResource,\r\n __disposeResources: __disposeResources,\r\n __rewriteRelativeImportExtension: __rewriteRelativeImportExtension,\r\n};\r\n",null],"names":["determineLocale","createIsomorphicFn","server","defaultLocale","locales","customMapping","candidates","cookie","getCookie","defaultLocaleCookieName","push","process","env","_GENERALTRANSLATION_IGNORE_BROWSER_LOCALES","headers","_a","getRequestHeader","split","map","item","trim","length","console","warn","resolveSupportedLocale","client","document","find","row","startsWith","browserLocale","navigator","language","TanstackConditionStore","constructor","localeConfig","this","getLocale","initializeGT","params","i18nManager","I18nManager","conditionStore","getDefaultLocale","getLocales","getCustomMapping","setI18nManager","setConditionStore","NODE_ENV","getComponentNameFromType","type","$$typeof","REACT_CLIENT_REFERENCE","displayName","name","REACT_FRAGMENT_TYPE","REACT_PROFILER_TYPE","REACT_STRICT_MODE_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_ACTIVITY_TYPE","tag","error","REACT_PORTAL_TYPE","REACT_CONTEXT_TYPE","REACT_CONSUMER_TYPE","_context","REACT_FORWARD_REF_TYPE","innerType","render","REACT_MEMO_TYPE","REACT_LAZY_TYPE","_payload","_init","x","testStringCoercion","value","checkKeyStringCoercion","JSCompiler_inline_result","e","JSCompiler_temp_const","JSCompiler_inline_result$jscomp$0","Symbol","toStringTag","call","getTaskName","UnknownOwner","Error","elementRefGetterWithDeprecationWarning","componentName","didWarnAboutElementRef","props","ref","jsxDEVImpl","config","maybeKey","isStaticChildren","debugStack","debugTask","dispatcher","children","isArrayImpl","validateChildKeys","Object","freeze","hasOwnProperty","keys","filter","k","join","didWarnAboutKeySpread","getter","getOwnPropertyDescriptor","get","isReactWarning","key","hasValidKey","propName","warnAboutAccessingKey","specialPropKeyWarningShown","defineProperty","configurable","defineKeyPropWarningGetter","owner","refProp","REACT_ELEMENT_TYPE","_owner","enumerable","_store","writable","ReactElement","ReactSharedInternals","A","getOwner","node","isValidElement","validated","status","object","React","require$$0","for","__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE","prototype","Array","isArray","createTask","unknownOwnerDebugStack","react_stack_bottom_frame","callStackForError","bind","unknownOwnerDebugTask","reactJsxRuntime_development","Fragment","jsx","trackActualOwner","recentlyCreatedOwnerStacks","jsxs","jsxRuntimeModule","exports","jsxProd","reactJsxRuntime_production","require$$1","isSSREnabled","window","determineProviderLocale","locale","GTProvider","getI18nManager","_jsx","GTReactProvider","assign","ssr","enableI18n","isTranslationEnabled","loadTranslations","_versionId","getVersionId","reloadOnLocaleUpdate","__awaiter","thisArg","_arguments","P","generator","Promise","resolve","reject","fulfilled","step","next","rejected","result","done","then","apply","getTranslations","undefined","SuppressedError"],"mappings":"mkBAWO,MAAMA,EAAkBC,IAC5BC,OAOH,UAA+BC,cAC7BA,EAAaC,QACbA,EAAOC,cACPA,UAEA,MAAMC,EAAuB,GAGvBC,EAASC,EAAUC,GACrBF,GAAQD,EAAWI,KAAKH,GAG5B,GAA+D,UAA3DI,QAAQC,IAAIC,2CAAwD,CAC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B,EAAQ,OACb,MAAM9H,EAAcgI,IAGpB,aAAchI,EAAYuI,iBAAiBT,EAC7C,EAAC,CDyTiD,mBAApB+B,iBAAiCA","x_google_ignoreList":[3,4,5,9]}
|
|
1
|
+
{"version":3,"file":"index.esm.min.mjs","names":["u64.split","TYPE","TYPE$1","IntlMessageFormat","defaultLocaleCookieName","getLocale","GTReactProvider","getLocale"],"sources":["../../core/dist/base64-r7YWJYWt.mjs","../../core/dist/isVariable-fAKEB7gF.mjs","../../../node_modules/.pnpm/@noble+hashes@2.2.0/node_modules/@noble/hashes/utils.js","../../../node_modules/.pnpm/@noble+hashes@2.2.0/node_modules/@noble/hashes/_md.js","../../../node_modules/.pnpm/@noble+hashes@2.2.0/node_modules/@noble/hashes/_u64.js","../../../node_modules/.pnpm/@noble+hashes@2.2.0/node_modules/@noble/hashes/sha2.js","../../format/dist/IntlCache-ywLCPDGw.mjs","../../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs","../../../node_modules/.pnpm/@formatjs+icu-messageformat-parser@2.11.4/node_modules/@formatjs/icu-messageformat-parser/error.js","../../../node_modules/.pnpm/@formatjs+icu-messageformat-parser@2.11.4/node_modules/@formatjs/icu-messageformat-parser/types.js","../../../node_modules/.pnpm/@formatjs+icu-messageformat-parser@2.11.4/node_modules/@formatjs/icu-messageformat-parser/regex.generated.js","../../../node_modules/.pnpm/@formatjs+icu-skeleton-parser@1.8.16/node_modules/@formatjs/icu-skeleton-parser/date-time.js","../../../node_modules/.pnpm/@formatjs+icu-skeleton-parser@1.8.16/node_modules/@formatjs/icu-skeleton-parser/regex.generated.js","../../../node_modules/.pnpm/@formatjs+icu-skeleton-parser@1.8.16/node_modules/@formatjs/icu-skeleton-parser/number.js","../../../node_modules/.pnpm/@formatjs+icu-skeleton-parser@1.8.16/node_modules/@formatjs/icu-skeleton-parser/index.js","../../../node_modules/.pnpm/@formatjs+icu-messageformat-parser@2.11.4/node_modules/@formatjs/icu-messageformat-parser/time-data.generated.js","../../../node_modules/.pnpm/@formatjs+icu-messageformat-parser@2.11.4/node_modules/@formatjs/icu-messageformat-parser/date-time-pattern-generator.js","../../../node_modules/.pnpm/@formatjs+icu-messageformat-parser@2.11.4/node_modules/@formatjs/icu-messageformat-parser/parser.js","../../../node_modules/.pnpm/@formatjs+icu-messageformat-parser@2.11.4/node_modules/@formatjs/icu-messageformat-parser/manipulator.js","../../../node_modules/.pnpm/@formatjs+icu-messageformat-parser@2.11.4/node_modules/@formatjs/icu-messageformat-parser/index.js","../../../node_modules/.pnpm/@formatjs+icu-messageformat-parser@2.11.4/node_modules/@formatjs/icu-messageformat-parser/printer.js","../../core/dist/internal.mjs","../../../node_modules/.pnpm/@formatjs+fast-memoize@2.2.7/node_modules/@formatjs/fast-memoize/index.js","../../../node_modules/.pnpm/@formatjs+icu-messageformat-parser@2.11.2/node_modules/@formatjs/icu-messageformat-parser/error.js","../../../node_modules/.pnpm/@formatjs+icu-messageformat-parser@2.11.2/node_modules/@formatjs/icu-messageformat-parser/types.js","../../../node_modules/.pnpm/@formatjs+icu-messageformat-parser@2.11.2/node_modules/@formatjs/icu-messageformat-parser/regex.generated.js","../../../node_modules/.pnpm/@formatjs+icu-skeleton-parser@1.8.14/node_modules/@formatjs/icu-skeleton-parser/date-time.js","../../../node_modules/.pnpm/@formatjs+icu-skeleton-parser@1.8.14/node_modules/@formatjs/icu-skeleton-parser/regex.generated.js","../../../node_modules/.pnpm/@formatjs+icu-skeleton-parser@1.8.14/node_modules/@formatjs/icu-skeleton-parser/number.js","../../../node_modules/.pnpm/@formatjs+icu-skeleton-parser@1.8.14/node_modules/@formatjs/icu-skeleton-parser/index.js","../../../node_modules/.pnpm/@formatjs+icu-messageformat-parser@2.11.2/node_modules/@formatjs/icu-messageformat-parser/time-data.generated.js","../../../node_modules/.pnpm/@formatjs+icu-messageformat-parser@2.11.2/node_modules/@formatjs/icu-messageformat-parser/date-time-pattern-generator.js","../../../node_modules/.pnpm/@formatjs+icu-messageformat-parser@2.11.2/node_modules/@formatjs/icu-messageformat-parser/parser.js","../../../node_modules/.pnpm/@formatjs+icu-messageformat-parser@2.11.2/node_modules/@formatjs/icu-messageformat-parser/manipulator.js","../../../node_modules/.pnpm/@formatjs+icu-messageformat-parser@2.11.2/node_modules/@formatjs/icu-messageformat-parser/index.js","../../../node_modules/.pnpm/intl-messageformat@10.7.16/node_modules/intl-messageformat/src/error.js","../../../node_modules/.pnpm/intl-messageformat@10.7.16/node_modules/intl-messageformat/src/formatters.js","../../../node_modules/.pnpm/intl-messageformat@10.7.16/node_modules/intl-messageformat/src/core.js","../../../node_modules/.pnpm/intl-messageformat@10.7.16/node_modules/intl-messageformat/index.js","../../format/dist/index.mjs","../../i18n/dist/isEncodedTranslationOptions-BOwWa_-J.mjs","../../core/dist/id-DEaFhGqX.mjs","../../i18n/dist/versionId-BkJZGHXr.mjs","../../i18n/dist/internal.mjs","../../react/dist/internal.mjs","../src/functions/determineLocale.ts","../src/runtime/TanstackConditionStore.ts","../src/setup/initializeGT.ts","../src/provider/utils/isSSREnabled.ts","../src/provider/utils/determineProviderLocale.ts","../src/provider/GTProvider.tsx","../src/functions/getTranslations.ts"],"sourcesContent":["//#region src/settings/settings.ts\nconst libraryDefaultLocale = \"en\";\nconst defaultTimeout = 6e4;\n//#endregion\n//#region src/logging/diagnostics.ts\nfunction ensureSentence(text) {\n\tconst trimmed = text.trim();\n\tif (!trimmed) return \"\";\n\treturn /[.!?)]$/.test(trimmed) ? trimmed : `${trimmed}.`;\n}\nfunction stripSentence(text) {\n\tconst trimmed = text.trim();\n\tlet end = trimmed.length;\n\twhile (end > 0) {\n\t\tconst char = trimmed[end - 1];\n\t\tif (char !== \".\" && char !== \"!\" && char !== \"?\") break;\n\t\tend -= 1;\n\t}\n\treturn trimmed.slice(0, end);\n}\nfunction lowercaseFirstWord(text) {\n\treturn text.replace(/^[A-Z][a-z]/, (match) => match.toLowerCase());\n}\nfunction formatDetails(details) {\n\tif (!details) return \"\";\n\tconst detailText = Array.isArray(details) ? details.join(\", \") : details;\n\tif (!detailText.trim()) return \"\";\n\treturn ensureSentence(`Details: ${detailText}`);\n}\nfunction formatDiagnosticErrorDetails(error) {\n\tif (error == null) return void 0;\n\treturn String(error);\n}\nfunction createDiagnosticMessage({ source, severity, whatHappened, reassurance, why, fix, wayOut, details, docsUrl }) {\n\tconst prefix = source ? severity ? `${source} ${severity}:` : `${source}:` : severity ? `${severity}:` : \"\";\n\tconst whatAndWhy = why ? `${stripSentence(whatHappened)} because ${lowercaseFirstWord(stripSentence(why))}` : whatHappened;\n\tconst shouldCombineWayOut = !!fix && !!wayOut && /^[a-z]/.test(stripSentence(wayOut));\n\tconst messageParts = [\n\t\twhatAndWhy,\n\t\treassurance,\n\t\tshouldCombineWayOut ? `${stripSentence(fix)}, or ${lowercaseFirstWord(stripSentence(wayOut))}` : fix,\n\t\tshouldCombineWayOut ? void 0 : wayOut,\n\t\tformatDetails(details)\n\t].filter((part) => !!part).map(ensureSentence);\n\tif (docsUrl) messageParts.push(`Learn more: ${docsUrl}`);\n\tconst message = messageParts.join(\" \");\n\treturn prefix ? `${prefix} ${message}` : message;\n}\n//#endregion\n//#region src/settings/settingsUrls.ts\nconst defaultCacheUrl = \"https://cdn.gtx.dev\";\nconst defaultBaseUrl = \"https://api2.gtx.dev\";\nconst defaultRuntimeApiUrl = \"https://runtime2.gtx.dev\";\n//#endregion\n//#region src/utils/isSupportedFileFormatTransform.ts\nconst SUPPORTED_TRANSFORMATIONS = {\n\tGTJSON: [\"GTJSON\"],\n\tJSON: [\"JSON\"],\n\tPO: [\"PO\"],\n\tPOT: [\"POT\", \"PO\"],\n\tYAML: [\"YAML\"],\n\tMDX: [\"MDX\"],\n\tMD: [\"MD\"],\n\tTS: [\"TS\"],\n\tJS: [\"JS\"],\n\tHTML: [\"HTML\"],\n\tTXT: [\"TXT\"],\n\tTWILIO_CONTENT_JSON: [\"TWILIO_CONTENT_JSON\"]\n};\n/**\n* This function checks if a file format transformation is supported during translation\n* @param from - The source file format.\n* @param to - The target file format.\n* @returns True if the transformation is supported, false otherwise\n*/\nfunction isSupportedFileFormatTransform(from, to) {\n\treturn SUPPORTED_TRANSFORMATIONS[from]?.includes(to) ?? false;\n}\n//#endregion\n//#region src/translate/utils/validateFileFormatTransform.ts\n/**\n* Returns a user-facing validation error when a requested file format transform\n* is missing source format context or is not currently supported.\n*/\nfunction getFileFormatTransformError(file) {\n\tif (!file.transformFormat) return void 0;\n\tconst fileLabel = file.fileName ?? file.fileId ?? \"unknown file\";\n\tif (!file.fileFormat) return `fileFormat is required when transformFormat is provided for ${fileLabel}`;\n\tif (!isSupportedFileFormatTransform(file.fileFormat, file.transformFormat)) return `Unsupported file format transform: ${file.fileFormat} -> ${file.transformFormat}`;\n}\n/**\n* Validates file format transforms before sending upload/enqueue requests.\n*/\nfunction validateFileFormatTransforms(files) {\n\tfor (const file of files) {\n\t\tconst error = getFileFormatTransformError(file);\n\t\tif (error) throw new Error(error);\n\t}\n}\n//#endregion\n//#region src/utils/base64.ts\nfunction encode(data) {\n\tif (typeof Buffer !== \"undefined\") return Buffer.from(data, \"utf8\").toString(\"base64\");\n\tconst bytes = new TextEncoder().encode(data);\n\tlet binary = \"\";\n\tfor (let i = 0; i < bytes.length; i++) binary += String.fromCharCode(bytes[i]);\n\treturn btoa(binary);\n}\nfunction decode(base64) {\n\tif (typeof Buffer !== \"undefined\") return Buffer.from(base64, \"base64\").toString(\"utf8\");\n\tconst binary = atob(base64);\n\tconst bytes = new Uint8Array(binary.length);\n\tfor (let i = 0; i < binary.length; i++) bytes[i] = binary.charCodeAt(i);\n\treturn new TextDecoder().decode(bytes);\n}\n//#endregion\nexport { defaultBaseUrl as a, createDiagnosticMessage as c, libraryDefaultLocale as d, isSupportedFileFormatTransform as i, formatDiagnosticErrorDetails as l, encode as n, defaultCacheUrl as o, validateFileFormatTransforms as r, defaultRuntimeApiUrl as s, decode as t, defaultTimeout as u };\n\n//# sourceMappingURL=base64-r7YWJYWt.mjs.map","//#region src/utils/stableStringify.ts\n/**\n* Deterministic JSON stringification with sorted object keys.\n* Drop-in replacement for `fast-json-stable-stringify` for plain\n* JSON-compatible data (no toJSON, no circular references).\n*/\nfunction _stringify(node) {\n\tif (node === void 0) return void 0;\n\tif (node === null) return \"null\";\n\tif (typeof node === \"number\") return isFinite(node) ? \"\" + node : \"null\";\n\tif (typeof node !== \"object\") return JSON.stringify(node);\n\tif (Array.isArray(node)) {\n\t\tlet out = \"[\";\n\t\tfor (let i = 0; i < node.length; i++) {\n\t\t\tif (i) out += \",\";\n\t\t\tout += _stringify(node[i]) || \"null\";\n\t\t}\n\t\treturn out + \"]\";\n\t}\n\tconst keys = Object.keys(node).sort();\n\tlet out = \"\";\n\tfor (const key of keys) {\n\t\tconst value = _stringify(node[key]);\n\t\tif (!value) continue;\n\t\tif (out) out += \",\";\n\t\tout += JSON.stringify(key) + \":\" + value;\n\t}\n\treturn \"{\" + out + \"}\";\n}\nfunction stableStringify(data) {\n\treturn _stringify(data) ?? \"\";\n}\n//#endregion\n//#region src/utils/isVariable.ts\nfunction isVariable(obj) {\n\tconst variableObj = obj;\n\tif (variableObj && typeof variableObj === \"object\" && typeof variableObj.k === \"string\") {\n\t\tconst k = Object.keys(variableObj);\n\t\tif (k.length === 1) return true;\n\t\tif (k.length === 2) {\n\t\t\tif (typeof variableObj.i === \"number\") return true;\n\t\t\tif (typeof variableObj.v === \"string\") return true;\n\t\t}\n\t\tif (k.length === 3) {\n\t\t\tif (typeof variableObj.v === \"string\" && typeof variableObj.i === \"number\") return true;\n\t\t}\n\t}\n\treturn false;\n}\n//#endregion\nexport { stableStringify as n, isVariable as t };\n\n//# sourceMappingURL=isVariable-fAKEB7gF.mjs.map","/**\n * Checks if something is Uint8Array. Be careful: nodejs Buffer will return true.\n * @param a - value to test\n * @returns `true` when the value is a Uint8Array-compatible view.\n * @example\n * Check whether a value is a Uint8Array-compatible view.\n * ```ts\n * isBytes(new Uint8Array([1, 2, 3]));\n * ```\n */\nexport function isBytes(a) {\n // Plain `instanceof Uint8Array` is too strict for some Buffer / proxy / cross-realm cases.\n // The fallback still requires a real ArrayBuffer view, so plain\n // JSON-deserialized `{ constructor: ... }` spoofing is rejected, and\n // `BYTES_PER_ELEMENT === 1` keeps the fallback on byte-oriented views.\n return (a instanceof Uint8Array ||\n (ArrayBuffer.isView(a) &&\n a.constructor.name === 'Uint8Array' &&\n 'BYTES_PER_ELEMENT' in a &&\n a.BYTES_PER_ELEMENT === 1));\n}\n/**\n * Asserts something is a non-negative integer.\n * @param n - number to validate\n * @param title - label included in thrown errors\n * @throws On wrong argument types. {@link TypeError}\n * @throws On wrong argument ranges or values. {@link RangeError}\n * @example\n * Validate a non-negative integer option.\n * ```ts\n * anumber(32, 'length');\n * ```\n */\nexport function anumber(n, title = '') {\n if (typeof n !== 'number') {\n const prefix = title && `\"${title}\" `;\n throw new TypeError(`${prefix}expected number, got ${typeof n}`);\n }\n if (!Number.isSafeInteger(n) || n < 0) {\n const prefix = title && `\"${title}\" `;\n throw new RangeError(`${prefix}expected integer >= 0, got ${n}`);\n }\n}\n/**\n * Asserts something is Uint8Array.\n * @param value - value to validate\n * @param length - optional exact length constraint\n * @param title - label included in thrown errors\n * @returns The validated byte array.\n * @throws On wrong argument types. {@link TypeError}\n * @throws On wrong argument ranges or values. {@link RangeError}\n * @example\n * Validate that a value is a byte array.\n * ```ts\n * abytes(new Uint8Array([1, 2, 3]));\n * ```\n */\nexport function abytes(value, length, title = '') {\n const bytes = isBytes(value);\n const len = value?.length;\n const needsLen = length !== undefined;\n if (!bytes || (needsLen && len !== length)) {\n const prefix = title && `\"${title}\" `;\n const ofLen = needsLen ? ` of length ${length}` : '';\n const got = bytes ? `length=${len}` : `type=${typeof value}`;\n const message = prefix + 'expected Uint8Array' + ofLen + ', got ' + got;\n if (!bytes)\n throw new TypeError(message);\n throw new RangeError(message);\n }\n return value;\n}\n/**\n * Copies bytes into a fresh Uint8Array.\n * Buffer-style slices can alias the same backing store, so callers that need ownership should copy.\n * @param bytes - source bytes to clone\n * @returns Freshly allocated copy of `bytes`.\n * @throws On wrong argument types. {@link TypeError}\n * @example\n * Clone a byte array before mutating it.\n * ```ts\n * const copy = copyBytes(new Uint8Array([1, 2, 3]));\n * ```\n */\nexport function copyBytes(bytes) {\n // `Uint8Array.from(...)` would also accept arrays / other typed arrays. Keep this helper strict\n // because callers use it at byte-validation boundaries before mutating the detached copy.\n return Uint8Array.from(abytes(bytes));\n}\n/**\n * Asserts something is a wrapped hash constructor.\n * @param h - hash constructor to validate\n * @throws On wrong argument types or invalid hash wrapper shape. {@link TypeError}\n * @throws On invalid hash metadata ranges or values. {@link RangeError}\n * @throws If the hash metadata allows empty outputs or block sizes. {@link Error}\n * @example\n * Validate a callable hash wrapper.\n * ```ts\n * import { ahash } from '@noble/hashes/utils.js';\n * import { sha256 } from '@noble/hashes/sha2.js';\n * ahash(sha256);\n * ```\n */\nexport function ahash(h) {\n if (typeof h !== 'function' || typeof h.create !== 'function')\n throw new TypeError('Hash must wrapped by utils.createHasher');\n anumber(h.outputLen);\n anumber(h.blockLen);\n // HMAC and KDF callers treat these as real byte lengths; allowing zero lets fake wrappers pass\n // validation and can produce empty outputs instead of failing fast.\n if (h.outputLen < 1)\n throw new Error('\"outputLen\" must be >= 1');\n if (h.blockLen < 1)\n throw new Error('\"blockLen\" must be >= 1');\n}\n/**\n * Asserts a hash instance has not been destroyed or finished.\n * @param instance - hash instance to validate\n * @param checkFinished - whether to reject finalized instances\n * @throws If the hash instance has already been destroyed or finalized. {@link Error}\n * @example\n * Validate that a hash instance is still usable.\n * ```ts\n * import { aexists } from '@noble/hashes/utils.js';\n * import { sha256 } from '@noble/hashes/sha2.js';\n * const hash = sha256.create();\n * aexists(hash);\n * ```\n */\nexport function aexists(instance, checkFinished = true) {\n if (instance.destroyed)\n throw new Error('Hash instance has been destroyed');\n if (checkFinished && instance.finished)\n throw new Error('Hash#digest() has already been called');\n}\n/**\n * Asserts output is a sufficiently-sized byte array.\n * @param out - destination buffer\n * @param instance - hash instance providing output length\n * Oversized buffers are allowed; downstream code only promises to fill the first `outputLen` bytes.\n * @throws On wrong argument types. {@link TypeError}\n * @throws On wrong argument ranges or values. {@link RangeError}\n * @example\n * Validate a caller-provided digest buffer.\n * ```ts\n * import { aoutput } from '@noble/hashes/utils.js';\n * import { sha256 } from '@noble/hashes/sha2.js';\n * const hash = sha256.create();\n * aoutput(new Uint8Array(hash.outputLen), hash);\n * ```\n */\nexport function aoutput(out, instance) {\n abytes(out, undefined, 'digestInto() output');\n const min = instance.outputLen;\n if (out.length < min) {\n throw new RangeError('\"digestInto() output\" expected to be of length >=' + min);\n }\n}\n/**\n * Casts a typed array view to Uint8Array.\n * @param arr - source typed array\n * @returns Uint8Array view over the same buffer.\n * @example\n * Reinterpret a typed array as bytes.\n * ```ts\n * u8(new Uint32Array([1, 2]));\n * ```\n */\nexport function u8(arr) {\n return new Uint8Array(arr.buffer, arr.byteOffset, arr.byteLength);\n}\n/**\n * Casts a typed array view to Uint32Array.\n * `arr.byteOffset` must already be 4-byte aligned or the platform\n * Uint32Array constructor will throw.\n * @param arr - source typed array\n * @returns Uint32Array view over the same buffer.\n * @example\n * Reinterpret a byte array as 32-bit words.\n * ```ts\n * u32(new Uint8Array(8));\n * ```\n */\nexport function u32(arr) {\n return new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4));\n}\n/**\n * Zeroizes typed arrays in place. Warning: JS provides no guarantees.\n * @param arrays - arrays to overwrite with zeros\n * @example\n * Zeroize sensitive buffers in place.\n * ```ts\n * clean(new Uint8Array([1, 2, 3]));\n * ```\n */\nexport function clean(...arrays) {\n for (let i = 0; i < arrays.length; i++) {\n arrays[i].fill(0);\n }\n}\n/**\n * Creates a DataView for byte-level manipulation.\n * @param arr - source typed array\n * @returns DataView over the same buffer region.\n * @example\n * Create a DataView over an existing buffer.\n * ```ts\n * createView(new Uint8Array(4));\n * ```\n */\nexport function createView(arr) {\n return new DataView(arr.buffer, arr.byteOffset, arr.byteLength);\n}\n/**\n * Rotate-right operation for uint32 values.\n * @param word - source word\n * @param shift - shift amount in bits\n * @returns Rotated word.\n * @example\n * Rotate a 32-bit word to the right.\n * ```ts\n * rotr(0x12345678, 8);\n * ```\n */\nexport function rotr(word, shift) {\n return (word << (32 - shift)) | (word >>> shift);\n}\n/**\n * Rotate-left operation for uint32 values.\n * @param word - source word\n * @param shift - shift amount in bits\n * @returns Rotated word.\n * @example\n * Rotate a 32-bit word to the left.\n * ```ts\n * rotl(0x12345678, 8);\n * ```\n */\nexport function rotl(word, shift) {\n return (word << shift) | ((word >>> (32 - shift)) >>> 0);\n}\n/** Whether the current platform is little-endian. */\nexport const isLE = /* @__PURE__ */ (() => new Uint8Array(new Uint32Array([0x11223344]).buffer)[0] === 0x44)();\n/**\n * Byte-swap operation for uint32 values.\n * @param word - source word\n * @returns Word with reversed byte order.\n * @example\n * Reverse the byte order of a 32-bit word.\n * ```ts\n * byteSwap(0x11223344);\n * ```\n */\nexport function byteSwap(word) {\n return (((word << 24) & 0xff000000) |\n ((word << 8) & 0xff0000) |\n ((word >>> 8) & 0xff00) |\n ((word >>> 24) & 0xff));\n}\n/**\n * Conditionally byte-swaps one 32-bit word on big-endian platforms.\n * @param n - source word\n * @returns Original or byte-swapped word depending on platform endianness.\n * @example\n * Normalize a 32-bit word for host endianness.\n * ```ts\n * swap8IfBE(0x11223344);\n * ```\n */\nexport const swap8IfBE = isLE\n ? (n) => n\n : (n) => byteSwap(n) >>> 0;\n/**\n * Byte-swaps every word of a Uint32Array in place.\n * @param arr - array to mutate\n * @returns The same array after mutation; callers pass live state arrays here.\n * @example\n * Reverse the byte order of every word in place.\n * ```ts\n * byteSwap32(new Uint32Array([0x11223344]));\n * ```\n */\nexport function byteSwap32(arr) {\n for (let i = 0; i < arr.length; i++) {\n arr[i] = byteSwap(arr[i]);\n }\n return arr;\n}\n/**\n * Conditionally byte-swaps a Uint32Array on big-endian platforms.\n * @param u - array to normalize for host endianness\n * @returns Original or byte-swapped array depending on platform endianness.\n * On big-endian runtimes this mutates `u` in place via `byteSwap32(...)`.\n * @example\n * Normalize a word array for host endianness.\n * ```ts\n * swap32IfBE(new Uint32Array([0x11223344]));\n * ```\n */\nexport const swap32IfBE = isLE\n ? (u) => u\n : byteSwap32;\n// Built-in hex conversion https://caniuse.com/mdn-javascript_builtins_uint8array_fromhex\nconst hasHexBuiltin = /* @__PURE__ */ (() => \n// @ts-ignore\ntypeof Uint8Array.from([]).toHex === 'function' && typeof Uint8Array.fromHex === 'function')();\n// Array where index 0xf0 (240) is mapped to string 'f0'\nconst hexes = /* @__PURE__ */ Array.from({ length: 256 }, (_, i) => i.toString(16).padStart(2, '0'));\n/**\n * Convert byte array to hex string.\n * Uses the built-in function when available and assumes it matches the tested\n * fallback semantics.\n * @param bytes - bytes to encode\n * @returns Lowercase hexadecimal string.\n * @throws On wrong argument types. {@link TypeError}\n * @example\n * Convert bytes to lowercase hexadecimal.\n * ```ts\n * bytesToHex(Uint8Array.from([0xca, 0xfe, 0x01, 0x23])); // 'cafe0123'\n * ```\n */\nexport function bytesToHex(bytes) {\n abytes(bytes);\n // @ts-ignore\n if (hasHexBuiltin)\n return bytes.toHex();\n // pre-caching improves the speed 6x\n let hex = '';\n for (let i = 0; i < bytes.length; i++) {\n hex += hexes[bytes[i]];\n }\n return hex;\n}\n// We use optimized technique to convert hex string to byte array\nconst asciis = { _0: 48, _9: 57, A: 65, F: 70, a: 97, f: 102 };\nfunction asciiToBase16(ch) {\n if (ch >= asciis._0 && ch <= asciis._9)\n return ch - asciis._0; // '2' => 50-48\n if (ch >= asciis.A && ch <= asciis.F)\n return ch - (asciis.A - 10); // 'B' => 66-(65-10)\n if (ch >= asciis.a && ch <= asciis.f)\n return ch - (asciis.a - 10); // 'b' => 98-(97-10)\n return;\n}\n/**\n * Convert hex string to byte array. Uses built-in function, when available.\n * @param hex - hexadecimal string to decode\n * @returns Decoded bytes.\n * @throws On wrong argument types. {@link TypeError}\n * @throws On wrong argument ranges or values. {@link RangeError}\n * @example\n * Decode lowercase hexadecimal into bytes.\n * ```ts\n * hexToBytes('cafe0123'); // Uint8Array.from([0xca, 0xfe, 0x01, 0x23])\n * ```\n */\nexport function hexToBytes(hex) {\n if (typeof hex !== 'string')\n throw new TypeError('hex string expected, got ' + typeof hex);\n if (hasHexBuiltin) {\n try {\n return Uint8Array.fromHex(hex);\n }\n catch (error) {\n if (error instanceof SyntaxError)\n throw new RangeError(error.message);\n throw error;\n }\n }\n const hl = hex.length;\n const al = hl / 2;\n if (hl % 2)\n throw new RangeError('hex string expected, got unpadded hex of length ' + hl);\n const array = new Uint8Array(al);\n for (let ai = 0, hi = 0; ai < al; ai++, hi += 2) {\n const n1 = asciiToBase16(hex.charCodeAt(hi));\n const n2 = asciiToBase16(hex.charCodeAt(hi + 1));\n if (n1 === undefined || n2 === undefined) {\n const char = hex[hi] + hex[hi + 1];\n throw new RangeError('hex string expected, got non-hex character \"' + char + '\" at index ' + hi);\n }\n array[ai] = n1 * 16 + n2; // multiply first octet, e.g. 'a3' => 10*16+3 => 160 + 3 => 163\n }\n return array;\n}\n/**\n * There is no setImmediate in browser and setTimeout is slow.\n * This yields to the Promise/microtask scheduler queue, not to timers or the\n * full macrotask event loop.\n * @example\n * Yield to the next scheduler tick.\n * ```ts\n * await nextTick();\n * ```\n */\nexport const nextTick = async () => { };\n/**\n * Returns control to the Promise/microtask scheduler every `tick`\n * milliseconds to avoid blocking long loops.\n * @param iters - number of loop iterations to run\n * @param tick - maximum time slice in milliseconds\n * @param cb - callback executed on each iteration\n * @example\n * Run a loop that periodically yields back to the event loop.\n * ```ts\n * await asyncLoop(2, 0, () => {});\n * ```\n */\nexport async function asyncLoop(iters, tick, cb) {\n let ts = Date.now();\n for (let i = 0; i < iters; i++) {\n cb(i);\n // Date.now() is not monotonic, so in case if clock goes backwards we return return control too\n const diff = Date.now() - ts;\n if (diff >= 0 && diff < tick)\n continue;\n await nextTick();\n ts += diff;\n }\n}\n/**\n * Converts string to bytes using UTF8 encoding.\n * Built-in doesn't validate input to be string: we do the check.\n * Non-ASCII details are delegated to the platform `TextEncoder`.\n * @param str - string to encode\n * @returns UTF-8 encoded bytes.\n * @throws On wrong argument types. {@link TypeError}\n * @example\n * Encode a string as UTF-8 bytes.\n * ```ts\n * utf8ToBytes('abc'); // Uint8Array.from([97, 98, 99])\n * ```\n */\nexport function utf8ToBytes(str) {\n if (typeof str !== 'string')\n throw new TypeError('string expected');\n return new Uint8Array(new TextEncoder().encode(str)); // https://bugzil.la/1681809\n}\n/**\n * Helper for KDFs: consumes Uint8Array or string.\n * String inputs are UTF-8 encoded; byte-array inputs stay aliased to the caller buffer.\n * @param data - user-provided KDF input\n * @param errorTitle - label included in thrown errors\n * @returns Byte representation of the input.\n * @throws On wrong argument types. {@link TypeError}\n * @example\n * Normalize KDF input to bytes.\n * ```ts\n * kdfInputToBytes('password');\n * ```\n */\nexport function kdfInputToBytes(data, errorTitle = '') {\n if (typeof data === 'string')\n return utf8ToBytes(data);\n return abytes(data, undefined, errorTitle);\n}\n/**\n * Copies several Uint8Arrays into one.\n * @param arrays - arrays to concatenate\n * @returns Concatenated byte array.\n * @throws On wrong argument types. {@link TypeError}\n * @example\n * Concatenate multiple byte arrays.\n * ```ts\n * concatBytes(new Uint8Array([1]), new Uint8Array([2]));\n * ```\n */\nexport function concatBytes(...arrays) {\n let sum = 0;\n for (let i = 0; i < arrays.length; i++) {\n const a = arrays[i];\n abytes(a);\n sum += a.length;\n }\n const res = new Uint8Array(sum);\n for (let i = 0, pad = 0; i < arrays.length; i++) {\n const a = arrays[i];\n res.set(a, pad);\n pad += a.length;\n }\n return res;\n}\n/**\n * Merges default options and passed options.\n * @param defaults - base option object\n * @param opts - user overrides\n * @returns Merged option object. The merge mutates `defaults` in place.\n * @throws On wrong argument types. {@link TypeError}\n * @example\n * Merge user overrides onto default options.\n * ```ts\n * checkOpts({ dkLen: 32 }, { asyncTick: 10 });\n * ```\n */\nexport function checkOpts(defaults, opts) {\n if (opts !== undefined && {}.toString.call(opts) !== '[object Object]')\n throw new TypeError('options must be object or undefined');\n const merged = Object.assign(defaults, opts);\n return merged;\n}\n/**\n * Creates a callable hash function from a stateful class constructor.\n * @param hashCons - hash constructor or factory\n * @param info - optional metadata such as DER OID\n * @returns Frozen callable hash wrapper with `.create()`.\n * Wrapper construction eagerly calls `hashCons(undefined)` once to read\n * `outputLen` / `blockLen`, so constructor side effects happen at module\n * init time.\n * @example\n * Wrap a stateful hash constructor into a callable helper.\n * ```ts\n * import { createHasher } from '@noble/hashes/utils.js';\n * import { sha256 } from '@noble/hashes/sha2.js';\n * const wrapped = createHasher(sha256.create, { oid: sha256.oid });\n * wrapped(new Uint8Array([1]));\n * ```\n */\nexport function createHasher(hashCons, info = {}) {\n const hashC = (msg, opts) => hashCons(opts)\n .update(msg)\n .digest();\n const tmp = hashCons(undefined);\n hashC.outputLen = tmp.outputLen;\n hashC.blockLen = tmp.blockLen;\n hashC.canXOF = tmp.canXOF;\n hashC.create = (opts) => hashCons(opts);\n Object.assign(hashC, info);\n return Object.freeze(hashC);\n}\n/**\n * Cryptographically secure PRNG backed by `crypto.getRandomValues`.\n * @param bytesLength - number of random bytes to generate\n * @returns Random bytes.\n * The platform `getRandomValues()` implementation still defines any\n * single-call length cap, and this helper rejects oversize requests\n * with a stable library `RangeError` instead of host-specific errors.\n * @throws On wrong argument types. {@link TypeError}\n * @throws On wrong argument ranges or values. {@link RangeError}\n * @throws If the current runtime does not provide `crypto.getRandomValues`. {@link Error}\n * @example\n * Generate a fresh random key or nonce.\n * ```ts\n * const key = randomBytes(16);\n * ```\n */\nexport function randomBytes(bytesLength = 32) {\n // Match the repo's other length-taking helpers instead of relying on Uint8Array coercion.\n anumber(bytesLength, 'bytesLength');\n const cr = typeof globalThis === 'object' ? globalThis.crypto : null;\n if (typeof cr?.getRandomValues !== 'function')\n throw new Error('crypto.getRandomValues must be defined');\n // Web Cryptography API Level 2 §10.1.1:\n // if `byteLength > 65536`, throw `QuotaExceededError`.\n // Keep the guard explicit so callers can see the quota in code\n // instead of discovering it by reading the spec or host errors.\n // This wrapper surfaces the same quota as a stable library RangeError.\n if (bytesLength > 65536)\n throw new RangeError(`\"bytesLength\" expected <= 65536, got ${bytesLength}`);\n return cr.getRandomValues(new Uint8Array(bytesLength));\n}\n/**\n * Creates OID metadata for NIST hashes with prefix `06 09 60 86 48 01 65 03 04 02`.\n * @param suffix - final OID byte for the selected hash.\n * The helper accepts any byte even though only the documented NIST hash\n * suffixes are meaningful downstream.\n * @returns Object containing the DER-encoded OID.\n * @example\n * Build OID metadata for a NIST hash.\n * ```ts\n * oidNist(0x01);\n * ```\n */\nexport const oidNist = (suffix) => ({\n // Current NIST hashAlgs suffixes used here fit in one DER subidentifier octet.\n // Larger suffix values would need base-128 OID encoding and a different length byte.\n oid: Uint8Array.from([0x06, 0x09, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, suffix]),\n});\n//# sourceMappingURL=utils.js.map","/**\n * Internal Merkle-Damgard hash utils.\n * @module\n */\nimport { abytes, aexists, aoutput, clean, createView, } from \"./utils.js\";\n/**\n * Shared 32-bit conditional boolean primitive reused by SHA-256, SHA-1, and MD5 `F`.\n * Returns bits from `b` when `a` is set, otherwise from `c`.\n * The XOR form is equivalent to MD5's `F(X,Y,Z) = XY v not(X)Z` because the masked terms never\n * set the same bit.\n * @param a - selector word\n * @param b - word chosen when selector bit is set\n * @param c - word chosen when selector bit is clear\n * @returns Mixed 32-bit word.\n * @example\n * Combine three words with the shared 32-bit choice primitive.\n * ```ts\n * Chi(0xffffffff, 0x12345678, 0x87654321);\n * ```\n */\nexport function Chi(a, b, c) {\n return (a & b) ^ (~a & c);\n}\n/**\n * Shared 32-bit majority primitive reused by SHA-256 and SHA-1.\n * Returns bits shared by at least two inputs.\n * @param a - first input word\n * @param b - second input word\n * @param c - third input word\n * @returns Mixed 32-bit word.\n * @example\n * Combine three words with the shared 32-bit majority primitive.\n * ```ts\n * Maj(0xffffffff, 0x12345678, 0x87654321);\n * ```\n */\nexport function Maj(a, b, c) {\n return (a & b) ^ (a & c) ^ (b & c);\n}\n/**\n * Merkle-Damgard hash construction base class.\n * Could be used to create MD5, RIPEMD, SHA1, SHA2.\n * Accepts only byte-aligned `Uint8Array` input, even when the underlying spec describes bit\n * strings with partial-byte tails.\n * @param blockLen - internal block size in bytes\n * @param outputLen - digest size in bytes\n * @param padOffset - trailing length field size in bytes\n * @param isLE - whether length and state words are encoded in little-endian\n * @example\n * Use a concrete subclass to get the shared Merkle-Damgard update/digest flow.\n * ```ts\n * import { _SHA1 } from '@noble/hashes/legacy.js';\n * const hash = new _SHA1();\n * hash.update(new Uint8Array([97, 98, 99]));\n * hash.digest();\n * ```\n */\nexport class HashMD {\n blockLen;\n outputLen;\n canXOF = false;\n padOffset;\n isLE;\n // For partial updates less than block size\n buffer;\n view;\n finished = false;\n length = 0;\n pos = 0;\n destroyed = false;\n constructor(blockLen, outputLen, padOffset, isLE) {\n this.blockLen = blockLen;\n this.outputLen = outputLen;\n this.padOffset = padOffset;\n this.isLE = isLE;\n this.buffer = new Uint8Array(blockLen);\n this.view = createView(this.buffer);\n }\n update(data) {\n aexists(this);\n abytes(data);\n const { view, buffer, blockLen } = this;\n const len = data.length;\n for (let pos = 0; pos < len;) {\n const take = Math.min(blockLen - this.pos, len - pos);\n // Fast path only when there is no buffered partial block: `take === blockLen` implies\n // `this.pos === 0`, so we can process full blocks directly from the input view.\n if (take === blockLen) {\n const dataView = createView(data);\n for (; blockLen <= len - pos; pos += blockLen)\n this.process(dataView, pos);\n continue;\n }\n buffer.set(data.subarray(pos, pos + take), this.pos);\n this.pos += take;\n pos += take;\n if (this.pos === blockLen) {\n this.process(view, 0);\n this.pos = 0;\n }\n }\n this.length += data.length;\n this.roundClean();\n return this;\n }\n digestInto(out) {\n aexists(this);\n aoutput(out, this);\n this.finished = true;\n // Padding\n // We can avoid allocation of buffer for padding completely if it\n // was previously not allocated here. But it won't change performance.\n const { buffer, view, blockLen, isLE } = this;\n let { pos } = this;\n // append the bit '1' to the message\n buffer[pos++] = 0b10000000;\n clean(this.buffer.subarray(pos));\n // we have less than padOffset left in buffer, so we cannot put length in\n // current block, need process it and pad again\n if (this.padOffset > blockLen - pos) {\n this.process(view, 0);\n pos = 0;\n }\n // Pad until full block byte with zeros\n for (let i = pos; i < blockLen; i++)\n buffer[i] = 0;\n // `padOffset` reserves the whole length field. For SHA-384/512 the high 64 bits stay zero from\n // the padding fill above, and JS will overflow before user input can make that half non-zero.\n // So we only need to write the low 64 bits here.\n view.setBigUint64(blockLen - 8, BigInt(this.length * 8), isLE);\n this.process(view, 0);\n const oview = createView(out);\n const len = this.outputLen;\n // NOTE: we do division by 4 later, which must be fused in single op with modulo by JIT\n if (len % 4)\n throw new Error('_sha2: outputLen must be aligned to 32bit');\n const outLen = len / 4;\n const state = this.get();\n if (outLen > state.length)\n throw new Error('_sha2: outputLen bigger than state');\n for (let i = 0; i < outLen; i++)\n oview.setUint32(4 * i, state[i], isLE);\n }\n digest() {\n const { buffer, outputLen } = this;\n this.digestInto(buffer);\n // Copy before destroy(): subclasses wipe `buffer` during cleanup, but `digest()` must return\n // fresh bytes to the caller.\n const res = buffer.slice(0, outputLen);\n this.destroy();\n return res;\n }\n _cloneInto(to) {\n to ||= new this.constructor();\n to.set(...this.get());\n const { blockLen, buffer, length, finished, destroyed, pos } = this;\n to.destroyed = destroyed;\n to.finished = finished;\n to.length = length;\n to.pos = pos;\n // Only partial-block bytes need copying: when `length % blockLen === 0`, `pos === 0` and\n // later `update()` / `digestInto()` overwrite `to.buffer` from the start before reading it.\n if (length % blockLen)\n to.buffer.set(buffer);\n return to;\n }\n clone() {\n return this._cloneInto();\n }\n}\n/**\n * Initial SHA-2 state: fractional parts of square roots of first 16 primes 2..53.\n * Check out `test/misc/sha2-gen-iv.js` for recomputation guide.\n */\n/** Initial SHA256 state from RFC 6234 §6.1: the first 32 bits of the fractional parts of the\n * square roots of the first eight prime numbers. Exported as a shared table; callers must treat\n * it as read-only because constructors copy words from it by index. */\nexport const SHA256_IV = /* @__PURE__ */ Uint32Array.from([\n 0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19,\n]);\n/** Initial SHA224 state `H(0)` from RFC 6234 §6.1. Exported as a shared table; callers must\n * treat it as read-only because constructors copy words from it by index. */\nexport const SHA224_IV = /* @__PURE__ */ Uint32Array.from([\n 0xc1059ed8, 0x367cd507, 0x3070dd17, 0xf70e5939, 0xffc00b31, 0x68581511, 0x64f98fa7, 0xbefa4fa4,\n]);\n/** Initial SHA384 state from RFC 6234 §6.3: eight RFC 64-bit `H(0)` words stored as sixteen\n * big-endian 32-bit halves. Derived from the fractional parts of the square roots of the ninth\n * through sixteenth prime numbers. Exported as a shared table; callers must treat it as read-only\n * because constructors copy halves from it by index. */\nexport const SHA384_IV = /* @__PURE__ */ Uint32Array.from([\n 0xcbbb9d5d, 0xc1059ed8, 0x629a292a, 0x367cd507, 0x9159015a, 0x3070dd17, 0x152fecd8, 0xf70e5939,\n 0x67332667, 0xffc00b31, 0x8eb44a87, 0x68581511, 0xdb0c2e0d, 0x64f98fa7, 0x47b5481d, 0xbefa4fa4,\n]);\n/** Initial SHA512 state from RFC 6234 §6.3: eight RFC 64-bit `H(0)` words stored as sixteen\n * big-endian 32-bit halves. Derived from the fractional parts of the square roots of the first\n * eight prime numbers. Exported as a shared table; callers must treat it as read-only because\n * constructors copy halves from it by index. */\nexport const SHA512_IV = /* @__PURE__ */ Uint32Array.from([\n 0x6a09e667, 0xf3bcc908, 0xbb67ae85, 0x84caa73b, 0x3c6ef372, 0xfe94f82b, 0xa54ff53a, 0x5f1d36f1,\n 0x510e527f, 0xade682d1, 0x9b05688c, 0x2b3e6c1f, 0x1f83d9ab, 0xfb41bd6b, 0x5be0cd19, 0x137e2179,\n]);\n//# sourceMappingURL=_md.js.map","const U32_MASK64 = /* @__PURE__ */ BigInt(2 ** 32 - 1);\nconst _32n = /* @__PURE__ */ BigInt(32);\n// Split bigint into two 32-bit halves. With `le=true`, returned fields become `{ h: low, l: high\n// }` to match little-endian word order rather than the property names.\nfunction fromBig(n, le = false) {\n if (le)\n return { h: Number(n & U32_MASK64), l: Number((n >> _32n) & U32_MASK64) };\n return { h: Number((n >> _32n) & U32_MASK64) | 0, l: Number(n & U32_MASK64) | 0 };\n}\n// Split bigint list into `[highWords, lowWords]` when `le=false`; with `le=true`, the first array\n// holds the low halves because `fromBig(...)` swaps the semantic meaning of `h` and `l`.\nfunction split(lst, le = false) {\n const len = lst.length;\n let Ah = new Uint32Array(len);\n let Al = new Uint32Array(len);\n for (let i = 0; i < len; i++) {\n const { h, l } = fromBig(lst[i], le);\n [Ah[i], Al[i]] = [h, l];\n }\n return [Ah, Al];\n}\n// Combine explicit `(high, low)` 32-bit halves into a bigint; `>>> 0` normalizes signed JS\n// bitwise results back to uint32 first, and little-endian callers must swap.\nconst toBig = (h, l) => (BigInt(h >>> 0) << _32n) | BigInt(l >>> 0);\n// High 32-bit half of a 64-bit logical right shift for `s` in `0..31`.\nconst shrSH = (h, _l, s) => h >>> s;\n// Low 32-bit half of a 64-bit logical right shift, valid for `s` in `1..31`.\nconst shrSL = (h, l, s) => (h << (32 - s)) | (l >>> s);\n// High 32-bit half of a 64-bit right rotate, valid for `s` in `1..31`.\nconst rotrSH = (h, l, s) => (h >>> s) | (l << (32 - s));\n// Low 32-bit half of a 64-bit right rotate, valid for `s` in `1..31`.\nconst rotrSL = (h, l, s) => (h << (32 - s)) | (l >>> s);\n// High 32-bit half of a 64-bit right rotate, valid for `s` in `33..63`; `32` uses `rotr32*`.\nconst rotrBH = (h, l, s) => (h << (64 - s)) | (l >>> (s - 32));\n// Low 32-bit half of a 64-bit right rotate, valid for `s` in `33..63`; `32` uses `rotr32*`.\nconst rotrBL = (h, l, s) => (h >>> (s - 32)) | (l << (64 - s));\n// High 32-bit half of a 64-bit right rotate for `s === 32`; this is just the swapped low half.\nconst rotr32H = (_h, l) => l;\n// Low 32-bit half of a 64-bit right rotate for `s === 32`; this is just the swapped high half.\nconst rotr32L = (h, _l) => h;\n// High 32-bit half of a 64-bit left rotate, valid for `s` in `1..31`.\nconst rotlSH = (h, l, s) => (h << s) | (l >>> (32 - s));\n// Low 32-bit half of a 64-bit left rotate, valid for `s` in `1..31`.\nconst rotlSL = (h, l, s) => (l << s) | (h >>> (32 - s));\n// High 32-bit half of a 64-bit left rotate, valid for `s` in `33..63`; `32` uses `rotr32*`.\nconst rotlBH = (h, l, s) => (l << (s - 32)) | (h >>> (64 - s));\n// Low 32-bit half of a 64-bit left rotate, valid for `s` in `33..63`; `32` uses `rotr32*`.\nconst rotlBL = (h, l, s) => (h << (s - 32)) | (l >>> (64 - s));\n// Add two split 64-bit words and return the split `{ h, l }` sum.\n// JS uses 32-bit signed integers for bitwise operations, so we cannot simply shift the carry out\n// of the low sum and instead use division.\nfunction add(Ah, Al, Bh, Bl) {\n const l = (Al >>> 0) + (Bl >>> 0);\n return { h: (Ah + Bh + ((l / 2 ** 32) | 0)) | 0, l: l | 0 };\n}\n// Addition with more than 2 elements\n// Unmasked low-word accumulator for 3-way addition; pass the raw result into `add3H(...)`.\nconst add3L = (Al, Bl, Cl) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0);\n// High-word finalize step for 3-way addition; `low` must be the untruncated output of `add3L(...)`.\nconst add3H = (low, Ah, Bh, Ch) => (Ah + Bh + Ch + ((low / 2 ** 32) | 0)) | 0;\n// Unmasked low-word accumulator for 4-way addition; pass the raw result into `add4H(...)`.\nconst add4L = (Al, Bl, Cl, Dl) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0) + (Dl >>> 0);\n// High-word finalize step for 4-way addition; `low` must be the untruncated output of `add4L(...)`.\nconst add4H = (low, Ah, Bh, Ch, Dh) => (Ah + Bh + Ch + Dh + ((low / 2 ** 32) | 0)) | 0;\n// Unmasked low-word accumulator for 5-way addition; pass the raw result into `add5H(...)`.\nconst add5L = (Al, Bl, Cl, Dl, El) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0) + (Dl >>> 0) + (El >>> 0);\n// High-word finalize step for 5-way addition; `low` must be the untruncated output of `add5L(...)`.\nconst add5H = (low, Ah, Bh, Ch, Dh, Eh) => (Ah + Bh + Ch + Dh + Eh + ((low / 2 ** 32) | 0)) | 0;\n// prettier-ignore\nexport { add, add3H, add3L, add4H, add4L, add5H, add5L, fromBig, rotlBH, rotlBL, rotlSH, rotlSL, rotr32H, rotr32L, rotrBH, rotrBL, rotrSH, rotrSL, shrSH, shrSL, split, toBig };\n// Canonical grouped namespace for callers that prefer one object.\n// Named exports stay for direct imports.\n// prettier-ignore\nconst u64 = {\n fromBig, split, toBig,\n shrSH, shrSL,\n rotrSH, rotrSL, rotrBH, rotrBL,\n rotr32H, rotr32L,\n rotlSH, rotlSL, rotlBH, rotlBL,\n add, add3L, add3H, add4L, add4H, add5H, add5L,\n};\n// Default export mirrors named `u64` for compatibility with object-style imports.\nexport default u64;\n//# sourceMappingURL=_u64.js.map","/**\n * SHA2 hash function. A.k.a. sha256, sha384, sha512, sha512_224, sha512_256.\n * SHA256 is the fastest hash implementable in JS, even faster than Blake3.\n * Check out {@link https://www.rfc-editor.org/rfc/rfc4634 | RFC 4634} and\n * {@link https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf | FIPS 180-4}.\n * @module\n */\nimport { Chi, HashMD, Maj, SHA224_IV, SHA256_IV, SHA384_IV, SHA512_IV } from \"./_md.js\";\nimport * as u64 from \"./_u64.js\";\nimport { clean, createHasher, oidNist, rotr } from \"./utils.js\";\n/**\n * SHA-224 / SHA-256 round constants from RFC 6234 §5.1: the first 32 bits\n * of the cube roots of the first 64 primes (2..311).\n */\n// prettier-ignore\nconst SHA256_K = /* @__PURE__ */ Uint32Array.from([\n 0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5,\n 0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174,\n 0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc, 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da,\n 0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7, 0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967,\n 0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13, 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85,\n 0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3, 0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070,\n 0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5, 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3,\n 0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208, 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2\n]);\n/** Reusable SHA-224 / SHA-256 message schedule buffer `W_t` from RFC 6234 §6.2 step 1. */\nconst SHA256_W = /* @__PURE__ */ new Uint32Array(64);\n/** Internal SHA-224 / SHA-256 compression engine from RFC 6234 §6.2. */\nclass SHA2_32B extends HashMD {\n constructor(outputLen) {\n super(64, outputLen, 8, false);\n }\n get() {\n const { A, B, C, D, E, F, G, H } = this;\n return [A, B, C, D, E, F, G, H];\n }\n // prettier-ignore\n set(A, B, C, D, E, F, G, H) {\n this.A = A | 0;\n this.B = B | 0;\n this.C = C | 0;\n this.D = D | 0;\n this.E = E | 0;\n this.F = F | 0;\n this.G = G | 0;\n this.H = H | 0;\n }\n process(view, offset) {\n // Extend the first 16 words into the remaining 48 words w[16..63] of the message schedule array\n for (let i = 0; i < 16; i++, offset += 4)\n SHA256_W[i] = view.getUint32(offset, false);\n for (let i = 16; i < 64; i++) {\n const W15 = SHA256_W[i - 15];\n const W2 = SHA256_W[i - 2];\n const s0 = rotr(W15, 7) ^ rotr(W15, 18) ^ (W15 >>> 3);\n const s1 = rotr(W2, 17) ^ rotr(W2, 19) ^ (W2 >>> 10);\n SHA256_W[i] = (s1 + SHA256_W[i - 7] + s0 + SHA256_W[i - 16]) | 0;\n }\n // Compression function main loop, 64 rounds\n let { A, B, C, D, E, F, G, H } = this;\n for (let i = 0; i < 64; i++) {\n const sigma1 = rotr(E, 6) ^ rotr(E, 11) ^ rotr(E, 25);\n const T1 = (H + sigma1 + Chi(E, F, G) + SHA256_K[i] + SHA256_W[i]) | 0;\n const sigma0 = rotr(A, 2) ^ rotr(A, 13) ^ rotr(A, 22);\n const T2 = (sigma0 + Maj(A, B, C)) | 0;\n H = G;\n G = F;\n F = E;\n E = (D + T1) | 0;\n D = C;\n C = B;\n B = A;\n A = (T1 + T2) | 0;\n }\n // Add the compressed chunk to the current hash value\n A = (A + this.A) | 0;\n B = (B + this.B) | 0;\n C = (C + this.C) | 0;\n D = (D + this.D) | 0;\n E = (E + this.E) | 0;\n F = (F + this.F) | 0;\n G = (G + this.G) | 0;\n H = (H + this.H) | 0;\n this.set(A, B, C, D, E, F, G, H);\n }\n roundClean() {\n clean(SHA256_W);\n }\n destroy() {\n // HashMD callers route post-destroy usability through `destroyed`; zeroizing alone still leaves\n // update()/digest() callable on reused instances.\n this.destroyed = true;\n this.set(0, 0, 0, 0, 0, 0, 0, 0);\n clean(this.buffer);\n }\n}\n/** Internal SHA-256 hash class grounded in RFC 6234 §6.2. */\nexport class _SHA256 extends SHA2_32B {\n // We cannot use array here since array allows indexing by variable\n // which means optimizer/compiler cannot use registers.\n A = SHA256_IV[0] | 0;\n B = SHA256_IV[1] | 0;\n C = SHA256_IV[2] | 0;\n D = SHA256_IV[3] | 0;\n E = SHA256_IV[4] | 0;\n F = SHA256_IV[5] | 0;\n G = SHA256_IV[6] | 0;\n H = SHA256_IV[7] | 0;\n constructor() {\n super(32);\n }\n}\n/** Internal SHA-224 hash class grounded in RFC 6234 §6.2 and §8.5. */\nexport class _SHA224 extends SHA2_32B {\n A = SHA224_IV[0] | 0;\n B = SHA224_IV[1] | 0;\n C = SHA224_IV[2] | 0;\n D = SHA224_IV[3] | 0;\n E = SHA224_IV[4] | 0;\n F = SHA224_IV[5] | 0;\n G = SHA224_IV[6] | 0;\n H = SHA224_IV[7] | 0;\n constructor() {\n super(28);\n }\n}\n// SHA2-512 is slower than sha256 in js because u64 operations are slow.\n// SHA-384 / SHA-512 round constants from RFC 6234 §5.2:\n// 80 full 64-bit words split into high/low halves.\n// prettier-ignore\nconst K512 = /* @__PURE__ */ (() => u64.split([\n '0x428a2f98d728ae22', '0x7137449123ef65cd', '0xb5c0fbcfec4d3b2f', '0xe9b5dba58189dbbc',\n '0x3956c25bf348b538', '0x59f111f1b605d019', '0x923f82a4af194f9b', '0xab1c5ed5da6d8118',\n '0xd807aa98a3030242', '0x12835b0145706fbe', '0x243185be4ee4b28c', '0x550c7dc3d5ffb4e2',\n '0x72be5d74f27b896f', '0x80deb1fe3b1696b1', '0x9bdc06a725c71235', '0xc19bf174cf692694',\n '0xe49b69c19ef14ad2', '0xefbe4786384f25e3', '0x0fc19dc68b8cd5b5', '0x240ca1cc77ac9c65',\n '0x2de92c6f592b0275', '0x4a7484aa6ea6e483', '0x5cb0a9dcbd41fbd4', '0x76f988da831153b5',\n '0x983e5152ee66dfab', '0xa831c66d2db43210', '0xb00327c898fb213f', '0xbf597fc7beef0ee4',\n '0xc6e00bf33da88fc2', '0xd5a79147930aa725', '0x06ca6351e003826f', '0x142929670a0e6e70',\n '0x27b70a8546d22ffc', '0x2e1b21385c26c926', '0x4d2c6dfc5ac42aed', '0x53380d139d95b3df',\n '0x650a73548baf63de', '0x766a0abb3c77b2a8', '0x81c2c92e47edaee6', '0x92722c851482353b',\n '0xa2bfe8a14cf10364', '0xa81a664bbc423001', '0xc24b8b70d0f89791', '0xc76c51a30654be30',\n '0xd192e819d6ef5218', '0xd69906245565a910', '0xf40e35855771202a', '0x106aa07032bbd1b8',\n '0x19a4c116b8d2d0c8', '0x1e376c085141ab53', '0x2748774cdf8eeb99', '0x34b0bcb5e19b48a8',\n '0x391c0cb3c5c95a63', '0x4ed8aa4ae3418acb', '0x5b9cca4f7763e373', '0x682e6ff3d6b2b8a3',\n '0x748f82ee5defb2fc', '0x78a5636f43172f60', '0x84c87814a1f0ab72', '0x8cc702081a6439ec',\n '0x90befffa23631e28', '0xa4506cebde82bde9', '0xbef9a3f7b2c67915', '0xc67178f2e372532b',\n '0xca273eceea26619c', '0xd186b8c721c0c207', '0xeada7dd6cde0eb1e', '0xf57d4f7fee6ed178',\n '0x06f067aa72176fba', '0x0a637dc5a2c898a6', '0x113f9804bef90dae', '0x1b710b35131c471b',\n '0x28db77f523047d84', '0x32caab7b40c72493', '0x3c9ebe0a15c9bebc', '0x431d67c49c100d4c',\n '0x4cc5d4becb3e42b6', '0x597f299cfc657e2a', '0x5fcb6fab3ad6faec', '0x6c44198c4a475817'\n].map(n => BigInt(n))))();\nconst SHA512_Kh = /* @__PURE__ */ (() => K512[0])();\nconst SHA512_Kl = /* @__PURE__ */ (() => K512[1])();\n// Reusable high-half schedule buffer for the RFC 6234 §6.4 64-bit `W_t` words.\nconst SHA512_W_H = /* @__PURE__ */ new Uint32Array(80);\n// Reusable low-half schedule buffer for the RFC 6234 §6.4 64-bit `W_t` words.\nconst SHA512_W_L = /* @__PURE__ */ new Uint32Array(80);\n/** Internal SHA-384 / SHA-512 compression engine from RFC 6234 §6.4. */\nclass SHA2_64B extends HashMD {\n constructor(outputLen) {\n super(128, outputLen, 16, false);\n }\n // prettier-ignore\n get() {\n const { Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl } = this;\n return [Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl];\n }\n // prettier-ignore\n set(Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl) {\n this.Ah = Ah | 0;\n this.Al = Al | 0;\n this.Bh = Bh | 0;\n this.Bl = Bl | 0;\n this.Ch = Ch | 0;\n this.Cl = Cl | 0;\n this.Dh = Dh | 0;\n this.Dl = Dl | 0;\n this.Eh = Eh | 0;\n this.El = El | 0;\n this.Fh = Fh | 0;\n this.Fl = Fl | 0;\n this.Gh = Gh | 0;\n this.Gl = Gl | 0;\n this.Hh = Hh | 0;\n this.Hl = Hl | 0;\n }\n process(view, offset) {\n // Extend the first 16 words into the remaining 64 words w[16..79] of the message schedule array\n for (let i = 0; i < 16; i++, offset += 4) {\n SHA512_W_H[i] = view.getUint32(offset);\n SHA512_W_L[i] = view.getUint32((offset += 4));\n }\n for (let i = 16; i < 80; i++) {\n // s0 := (w[i-15] rightrotate 1) xor (w[i-15] rightrotate 8) xor (w[i-15] rightshift 7)\n const W15h = SHA512_W_H[i - 15] | 0;\n const W15l = SHA512_W_L[i - 15] | 0;\n const s0h = u64.rotrSH(W15h, W15l, 1) ^ u64.rotrSH(W15h, W15l, 8) ^ u64.shrSH(W15h, W15l, 7);\n const s0l = u64.rotrSL(W15h, W15l, 1) ^ u64.rotrSL(W15h, W15l, 8) ^ u64.shrSL(W15h, W15l, 7);\n // s1 := (w[i-2] rightrotate 19) xor (w[i-2] rightrotate 61) xor (w[i-2] rightshift 6)\n const W2h = SHA512_W_H[i - 2] | 0;\n const W2l = SHA512_W_L[i - 2] | 0;\n const s1h = u64.rotrSH(W2h, W2l, 19) ^ u64.rotrBH(W2h, W2l, 61) ^ u64.shrSH(W2h, W2l, 6);\n const s1l = u64.rotrSL(W2h, W2l, 19) ^ u64.rotrBL(W2h, W2l, 61) ^ u64.shrSL(W2h, W2l, 6);\n // SHA512_W[i] = s0 + s1 + SHA512_W[i - 7] + SHA512_W[i - 16];\n const SUMl = u64.add4L(s0l, s1l, SHA512_W_L[i - 7], SHA512_W_L[i - 16]);\n const SUMh = u64.add4H(SUMl, s0h, s1h, SHA512_W_H[i - 7], SHA512_W_H[i - 16]);\n SHA512_W_H[i] = SUMh | 0;\n SHA512_W_L[i] = SUMl | 0;\n }\n let { Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl } = this;\n // Compression function main loop, 80 rounds\n for (let i = 0; i < 80; i++) {\n // S1 := (e rightrotate 14) xor (e rightrotate 18) xor (e rightrotate 41)\n const sigma1h = u64.rotrSH(Eh, El, 14) ^ u64.rotrSH(Eh, El, 18) ^ u64.rotrBH(Eh, El, 41);\n const sigma1l = u64.rotrSL(Eh, El, 14) ^ u64.rotrSL(Eh, El, 18) ^ u64.rotrBL(Eh, El, 41);\n //const T1 = (H + sigma1 + Chi(E, F, G) + SHA256_K[i] + SHA256_W[i]) | 0;\n const CHIh = (Eh & Fh) ^ (~Eh & Gh);\n const CHIl = (El & Fl) ^ (~El & Gl);\n // T1 = H + sigma1 + Chi(E, F, G) + SHA512_K[i] + SHA512_W[i]\n // prettier-ignore\n const T1ll = u64.add5L(Hl, sigma1l, CHIl, SHA512_Kl[i], SHA512_W_L[i]);\n const T1h = u64.add5H(T1ll, Hh, sigma1h, CHIh, SHA512_Kh[i], SHA512_W_H[i]);\n const T1l = T1ll | 0;\n // S0 := (a rightrotate 28) xor (a rightrotate 34) xor (a rightrotate 39)\n const sigma0h = u64.rotrSH(Ah, Al, 28) ^ u64.rotrBH(Ah, Al, 34) ^ u64.rotrBH(Ah, Al, 39);\n const sigma0l = u64.rotrSL(Ah, Al, 28) ^ u64.rotrBL(Ah, Al, 34) ^ u64.rotrBL(Ah, Al, 39);\n const MAJh = (Ah & Bh) ^ (Ah & Ch) ^ (Bh & Ch);\n const MAJl = (Al & Bl) ^ (Al & Cl) ^ (Bl & Cl);\n Hh = Gh | 0;\n Hl = Gl | 0;\n Gh = Fh | 0;\n Gl = Fl | 0;\n Fh = Eh | 0;\n Fl = El | 0;\n ({ h: Eh, l: El } = u64.add(Dh | 0, Dl | 0, T1h | 0, T1l | 0));\n Dh = Ch | 0;\n Dl = Cl | 0;\n Ch = Bh | 0;\n Cl = Bl | 0;\n Bh = Ah | 0;\n Bl = Al | 0;\n const All = u64.add3L(T1l, sigma0l, MAJl);\n Ah = u64.add3H(All, T1h, sigma0h, MAJh);\n Al = All | 0;\n }\n // Add the compressed chunk to the current hash value\n ({ h: Ah, l: Al } = u64.add(this.Ah | 0, this.Al | 0, Ah | 0, Al | 0));\n ({ h: Bh, l: Bl } = u64.add(this.Bh | 0, this.Bl | 0, Bh | 0, Bl | 0));\n ({ h: Ch, l: Cl } = u64.add(this.Ch | 0, this.Cl | 0, Ch | 0, Cl | 0));\n ({ h: Dh, l: Dl } = u64.add(this.Dh | 0, this.Dl | 0, Dh | 0, Dl | 0));\n ({ h: Eh, l: El } = u64.add(this.Eh | 0, this.El | 0, Eh | 0, El | 0));\n ({ h: Fh, l: Fl } = u64.add(this.Fh | 0, this.Fl | 0, Fh | 0, Fl | 0));\n ({ h: Gh, l: Gl } = u64.add(this.Gh | 0, this.Gl | 0, Gh | 0, Gl | 0));\n ({ h: Hh, l: Hl } = u64.add(this.Hh | 0, this.Hl | 0, Hh | 0, Hl | 0));\n this.set(Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl);\n }\n roundClean() {\n clean(SHA512_W_H, SHA512_W_L);\n }\n destroy() {\n // HashMD callers route post-destroy usability through `destroyed`; zeroizing alone still leaves\n // update()/digest() callable on reused instances.\n this.destroyed = true;\n clean(this.buffer);\n this.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);\n }\n}\n/** Internal SHA-512 hash class grounded in RFC 6234 §6.3 and §6.4. */\nexport class _SHA512 extends SHA2_64B {\n Ah = SHA512_IV[0] | 0;\n Al = SHA512_IV[1] | 0;\n Bh = SHA512_IV[2] | 0;\n Bl = SHA512_IV[3] | 0;\n Ch = SHA512_IV[4] | 0;\n Cl = SHA512_IV[5] | 0;\n Dh = SHA512_IV[6] | 0;\n Dl = SHA512_IV[7] | 0;\n Eh = SHA512_IV[8] | 0;\n El = SHA512_IV[9] | 0;\n Fh = SHA512_IV[10] | 0;\n Fl = SHA512_IV[11] | 0;\n Gh = SHA512_IV[12] | 0;\n Gl = SHA512_IV[13] | 0;\n Hh = SHA512_IV[14] | 0;\n Hl = SHA512_IV[15] | 0;\n constructor() {\n super(64);\n }\n}\n/** Internal SHA-384 hash class grounded in RFC 6234 §6.3 and §6.4. */\nexport class _SHA384 extends SHA2_64B {\n Ah = SHA384_IV[0] | 0;\n Al = SHA384_IV[1] | 0;\n Bh = SHA384_IV[2] | 0;\n Bl = SHA384_IV[3] | 0;\n Ch = SHA384_IV[4] | 0;\n Cl = SHA384_IV[5] | 0;\n Dh = SHA384_IV[6] | 0;\n Dl = SHA384_IV[7] | 0;\n Eh = SHA384_IV[8] | 0;\n El = SHA384_IV[9] | 0;\n Fh = SHA384_IV[10] | 0;\n Fl = SHA384_IV[11] | 0;\n Gh = SHA384_IV[12] | 0;\n Gl = SHA384_IV[13] | 0;\n Hh = SHA384_IV[14] | 0;\n Hl = SHA384_IV[15] | 0;\n constructor() {\n super(48);\n }\n}\n/**\n * Truncated SHA512/256 and SHA512/224.\n * SHA512_IV is XORed with 0xa5a5a5a5a5a5a5a5, then used as \"intermediary\" IV of SHA512/t.\n * Then t hashes string to produce result IV.\n * See the repo-side derivation recipe in `test/misc/sha2-gen-iv.js`.\n * These IV literals are checked against that script rather than a dedicated\n * local RFC section.\n */\n/** SHA-512/224 IV derived by the SHA-512/t recipe in `test/misc/sha2-gen-iv.js` and\n * stored as sixteen big-endian 32-bit halves. */\nconst T224_IV = /* @__PURE__ */ Uint32Array.from([\n 0x8c3d37c8, 0x19544da2, 0x73e19966, 0x89dcd4d6, 0x1dfab7ae, 0x32ff9c82, 0x679dd514, 0x582f9fcf,\n 0x0f6d2b69, 0x7bd44da8, 0x77e36f73, 0x04c48942, 0x3f9d85a8, 0x6a1d36c8, 0x1112e6ad, 0x91d692a1,\n]);\n/** SHA-512/256 IV derived by the SHA-512/t recipe in `test/misc/sha2-gen-iv.js` and\n * stored as sixteen big-endian 32-bit halves. */\nconst T256_IV = /* @__PURE__ */ Uint32Array.from([\n 0x22312194, 0xfc2bf72c, 0x9f555fa3, 0xc84c64c2, 0x2393b86b, 0x6f53b151, 0x96387719, 0x5940eabd,\n 0x96283ee2, 0xa88effe3, 0xbe5e1e25, 0x53863992, 0x2b0199fc, 0x2c85b8aa, 0x0eb72ddc, 0x81c52ca2,\n]);\n/** Internal SHA-512/224 hash class using the derived `T224_IV` and the shared\n * RFC 6234 §6.4 compression engine. */\nexport class _SHA512_224 extends SHA2_64B {\n Ah = T224_IV[0] | 0;\n Al = T224_IV[1] | 0;\n Bh = T224_IV[2] | 0;\n Bl = T224_IV[3] | 0;\n Ch = T224_IV[4] | 0;\n Cl = T224_IV[5] | 0;\n Dh = T224_IV[6] | 0;\n Dl = T224_IV[7] | 0;\n Eh = T224_IV[8] | 0;\n El = T224_IV[9] | 0;\n Fh = T224_IV[10] | 0;\n Fl = T224_IV[11] | 0;\n Gh = T224_IV[12] | 0;\n Gl = T224_IV[13] | 0;\n Hh = T224_IV[14] | 0;\n Hl = T224_IV[15] | 0;\n constructor() {\n super(28);\n }\n}\n/** Internal SHA-512/256 hash class using the derived `T256_IV` and the shared\n * RFC 6234 §6.4 compression engine. */\nexport class _SHA512_256 extends SHA2_64B {\n Ah = T256_IV[0] | 0;\n Al = T256_IV[1] | 0;\n Bh = T256_IV[2] | 0;\n Bl = T256_IV[3] | 0;\n Ch = T256_IV[4] | 0;\n Cl = T256_IV[5] | 0;\n Dh = T256_IV[6] | 0;\n Dl = T256_IV[7] | 0;\n Eh = T256_IV[8] | 0;\n El = T256_IV[9] | 0;\n Fh = T256_IV[10] | 0;\n Fl = T256_IV[11] | 0;\n Gh = T256_IV[12] | 0;\n Gl = T256_IV[13] | 0;\n Hh = T256_IV[14] | 0;\n Hl = T256_IV[15] | 0;\n constructor() {\n super(32);\n }\n}\n/**\n * SHA2-256 hash function from RFC 4634. In JS it's the fastest: even faster than Blake3. Some info:\n *\n * - Trying 2^128 hashes would get 50% chance of collision, using birthday attack.\n * - BTC network is doing 2^70 hashes/sec (2^95 hashes/year) as per 2025.\n * - Each sha256 hash is executing 2^18 bit operations.\n * - Good 2024 ASICs can do 200Th/sec with 3500 watts of power, corresponding to 2^36 hashes/joule.\n * @param msg - message bytes to hash\n * @returns Digest bytes.\n * @example\n * Hash a message with SHA2-256.\n * ```ts\n * sha256(new Uint8Array([97, 98, 99]));\n * ```\n */\nexport const sha256 = /* @__PURE__ */ createHasher(() => new _SHA256(), \n/* @__PURE__ */ oidNist(0x01));\n/**\n * SHA2-224 hash function from RFC 4634.\n * @param msg - message bytes to hash\n * @returns Digest bytes.\n * @example\n * Hash a message with SHA2-224.\n * ```ts\n * sha224(new Uint8Array([97, 98, 99]));\n * ```\n */\nexport const sha224 = /* @__PURE__ */ createHasher(() => new _SHA224(), \n/* @__PURE__ */ oidNist(0x04));\n/**\n * SHA2-512 hash function from RFC 4634.\n * @param msg - message bytes to hash\n * @returns Digest bytes.\n * @example\n * Hash a message with SHA2-512.\n * ```ts\n * sha512(new Uint8Array([97, 98, 99]));\n * ```\n */\nexport const sha512 = /* @__PURE__ */ createHasher(() => new _SHA512(), \n/* @__PURE__ */ oidNist(0x03));\n/**\n * SHA2-384 hash function from RFC 4634.\n * @param msg - message bytes to hash\n * @returns Digest bytes.\n * @example\n * Hash a message with SHA2-384.\n * ```ts\n * sha384(new Uint8Array([97, 98, 99]));\n * ```\n */\nexport const sha384 = /* @__PURE__ */ createHasher(() => new _SHA384(), \n/* @__PURE__ */ oidNist(0x02));\n/**\n * SHA2-512/256 \"truncated\" hash function, with improved resistance to length extension attacks.\n * See the paper on {@link https://eprint.iacr.org/2010/548.pdf | truncated SHA512}.\n * @param msg - message bytes to hash\n * @returns Digest bytes.\n * @example\n * Hash a message with SHA2-512/256.\n * ```ts\n * sha512_256(new Uint8Array([97, 98, 99]));\n * ```\n */\nexport const sha512_256 = /* @__PURE__ */ createHasher(() => new _SHA512_256(), \n/* @__PURE__ */ oidNist(0x06));\n/**\n * SHA2-512/224 \"truncated\" hash function, with improved resistance to length extension attacks.\n * See the paper on {@link https://eprint.iacr.org/2010/548.pdf | truncated SHA512}.\n * @param msg - message bytes to hash\n * @returns Digest bytes.\n * @example\n * Hash a message with SHA2-512/224.\n * ```ts\n * sha512_224(new Uint8Array([97, 98, 99]));\n * ```\n */\nexport const sha512_224 = /* @__PURE__ */ createHasher(() => new _SHA512_224(), \n/* @__PURE__ */ oidNist(0x05));\n//# sourceMappingURL=sha2.js.map","//#region src/errors/formattingErrors.ts\nconst createInvalidCutoffStyleError = (style) => `generaltranslation Formatting Error: Invalid cutoff style: ${style}.`;\nconst DEFAULT_TERMINATOR_KEY = \"DEFAULT_TERMINATOR_KEY\";\nconst TERMINATOR_MAP = {\n\tellipsis: {\n\t\tfr: {\n\t\t\tterminator: \"…\",\n\t\t\tseparator: \" \"\n\t\t},\n\t\tzh: {\n\t\t\tterminator: \"……\",\n\t\t\tseparator: void 0\n\t\t},\n\t\tja: {\n\t\t\tterminator: \"……\",\n\t\t\tseparator: void 0\n\t\t},\n\t\t[DEFAULT_TERMINATOR_KEY]: {\n\t\t\tterminator: \"…\",\n\t\t\tseparator: void 0\n\t\t}\n\t},\n\tnone: { [DEFAULT_TERMINATOR_KEY]: {\n\t\tterminator: void 0,\n\t\tseparator: void 0\n\t} }\n};\n//#endregion\n//#region src/formatting/custom-formats/CutoffFormat/CutoffFormat.ts\nvar CutoffFormatConstructor = class CutoffFormatConstructor {\n\tstatic resolveLocale(locales) {\n\t\ttry {\n\t\t\tconst localesList = !locales ? [\"en\"] : Array.isArray(locales) ? locales.map(String) : [String(locales)];\n\t\t\tconst [canonicalLocale] = Intl.getCanonicalLocales(localesList);\n\t\t\treturn canonicalLocale ?? \"en\";\n\t\t} catch {\n\t\t\treturn \"en\";\n\t\t}\n\t}\n\t/**\n\t* Constructor\n\t* @param {Intl.LocalesArgument} locales - The locales to use for formatting.\n\t* @param {CutoffFormatOptions} options - The options for formatting.\n\t* @param {number} [options.maxChars] - The maximum number of characters to display.\n\t* - Undefined values are treated as no cutoff.\n\t* - Negative values follow .slice() behavior and terminator will be added before the value.\n\t* - 0 will result in an empty string.\n\t* - If cutoff results in an empty string, no terminator is added.\n\t* @param {CutoffFormatStyle} [options.style='ellipsis'] - The style of the terminator.\n\t* @param {string} [options.terminator] - Optional override the terminator to use.\n\t* @param {string} [options.separator] - Optional override the separator to use between the terminator and the value.\n\t* - If no terminator is provided, then separator is ignored.\n\t*\n\t* @example\n\t* const format = new CutoffFormat('en', { maxChars: 5 });\n\t* format.format('Hello, world!'); // 'Hello...'\n\t*\n\t* const format = new CutoffFormat('en', { maxChars: -3 });\n\t* format.format('Hello, world!'); // '...ld!'\n\t*/\n\tconstructor(locales, options = {}) {\n\t\tthis.locale = CutoffFormatConstructor.resolveLocale(locales);\n\t\tconst style = options.style ?? \"ellipsis\";\n\t\tif (!TERMINATOR_MAP[style]) throw new Error(createInvalidCutoffStyleError(style));\n\t\tconst presetTerminatorOptions = options.maxChars === void 0 ? void 0 : TERMINATOR_MAP[style][new Intl.Locale(this.locale).language] || TERMINATOR_MAP[style][\"DEFAULT_TERMINATOR_KEY\"];\n\t\tlet terminator = options.terminator ?? presetTerminatorOptions?.terminator;\n\t\tlet separator = terminator != null ? options.separator ?? presetTerminatorOptions?.separator : void 0;\n\t\tthis.additionLength = (terminator?.length ?? 0) + (separator?.length ?? 0);\n\t\tif (options.maxChars !== void 0 && Math.abs(options.maxChars) < this.additionLength) {\n\t\t\tterminator = void 0;\n\t\t\tseparator = void 0;\n\t\t}\n\t\tthis.options = {\n\t\t\tmaxChars: options.maxChars,\n\t\t\tstyle: options.maxChars === void 0 ? void 0 : style,\n\t\t\tterminator,\n\t\t\tseparator\n\t\t};\n\t}\n\t/**\n\t* Format a value according to the cutoff options, returning a formatted string.\n\t*\n\t* @param {string} value - The string value to format with cutoff behavior.\n\t* @returns {string} The formatted string with terminator applied if cutoff occurs.\n\t*\n\t* @example\n\t* const formatter = new CutoffFormatConstructor('en', { maxChars: 8, style: 'ellipsis' });\n\t* formatter.format('Hello, world!'); // Returns 'Hello, w...'\n\t*/\n\tformat(value) {\n\t\treturn this.formatToParts(value).join(\"\");\n\t}\n\t/**\n\t* Format a value to parts according to the cutoff options, returning an array of string parts.\n\t* This method breaks down the formatted result into individual components for more granular control.\n\t*\n\t* @param {string} value - The string value to format with cutoff behavior.\n\t* @returns {PrependedCutoffParts | PostpendedCutoffParts} An array of string parts representing the formatted result.\n\t* - For positive maxChars: [cutoffValue, separator?, terminator?]\n\t* - For negative maxChars: [terminator?, separator?, cutoffValue]\n\t* - For no cutoff: [originalValue]\n\t*\n\t* @example\n\t* const formatter = new CutoffFormatConstructor('en', { maxChars: 5, style: 'ellipsis' });\n\t* formatter.formatToParts('Hello, world!'); // Returns ['Hello', '...']\n\t*/\n\tformatToParts(value) {\n\t\tconst { maxChars, terminator, separator } = this.options;\n\t\tconst adjustedChars = maxChars === void 0 || Math.abs(maxChars) >= value.length ? maxChars : maxChars >= 0 ? Math.max(0, maxChars - this.additionLength) : Math.min(0, maxChars + this.additionLength);\n\t\tconst slicedValue = adjustedChars !== void 0 && adjustedChars > -1 ? value.slice(0, adjustedChars) : value.slice(adjustedChars);\n\t\tif (maxChars == null || adjustedChars == null || adjustedChars === 0 || terminator == null || value.length <= Math.abs(maxChars)) return [slicedValue];\n\t\tif (adjustedChars > 0) return separator != null ? [\n\t\t\tslicedValue,\n\t\t\tseparator,\n\t\t\tterminator\n\t\t] : [slicedValue, terminator];\n\t\treturn separator != null ? [\n\t\t\tterminator,\n\t\t\tseparator,\n\t\t\tslicedValue\n\t\t] : [terminator, slicedValue];\n\t}\n\t/**\n\t* Get the resolved options\n\t* @returns {ResolvedCutoffFormatOptions} The resolved options.\n\t*/\n\tresolvedOptions() {\n\t\treturn this.options;\n\t}\n};\n//#endregion\n//#region src/cache/IntlCache.ts\n/**\n* Object mapping constructor names to their respective constructor functions\n* Includes all native Intl constructors plus custom ones like CutoffFormat\n*/\nconst CustomIntl = {\n\tCollator: Intl.Collator,\n\tDateTimeFormat: Intl.DateTimeFormat,\n\tDisplayNames: Intl.DisplayNames,\n\tListFormat: Intl.ListFormat,\n\tLocale: Intl.Locale,\n\tNumberFormat: Intl.NumberFormat,\n\tPluralRules: Intl.PluralRules,\n\tRelativeTimeFormat: Intl.RelativeTimeFormat,\n\tSegmenter: Intl.Segmenter,\n\tCutoffFormat: CutoffFormatConstructor\n};\n/**\n* Cache for Intl and custom format instances to avoid repeated instantiation\n* Uses a two-level structure: constructor name -> cache key -> instance.\n*/\nvar IntlCache = class {\n\tconstructor() {\n\t\tthis.cache = {};\n\t}\n\t/**\n\t* Generates a consistent cache key from locales and options.\n\t* Handles all LocalesArgument types (string, Locale, array, undefined).\n\t*/\n\tgenerateKey(locales, options = {}) {\n\t\treturn `${!locales ? \"undefined\" : Array.isArray(locales) ? locales.map((l) => String(l)).join(\",\") : String(locales)}:${options ? JSON.stringify(options, Object.keys(options).sort()) : \"{}\"}`;\n\t}\n\t/**\n\t* Gets a cached Intl instance or creates a new one if not found\n\t* @param constructor The name of the Intl constructor to use.\n\t* @param args Constructor arguments (locales, options).\n\t* @returns Cached or newly created Intl instance.\n\t*/\n\tget(constructor, ...args) {\n\t\tconst [locales = \"en\", options = {}] = args;\n\t\tconst key = this.generateKey(locales, options);\n\t\tlet cache = this.cache[constructor];\n\t\tif (cache === void 0) {\n\t\t\tcache = {};\n\t\t\tthis.cache[constructor] = cache;\n\t\t}\n\t\tlet intlObject = cache[key];\n\t\tif (intlObject === void 0) {\n\t\t\tintlObject = new CustomIntl[constructor](...args);\n\t\t\tcache[key] = intlObject;\n\t\t}\n\t\treturn intlObject;\n\t}\n};\n/**\n* Global instance of the Intl cache for use throughout the application\n*/\nconst intlCache = new IntlCache();\n//#endregion\nexport { intlCache as t };\n\n//# sourceMappingURL=IntlCache-ywLCPDGw.mjs.map","/******************************************************************************\nCopyright (c) Microsoft Corporation.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n***************************************************************************** */\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\n\nvar extendStatics = function(d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n};\n\nexport function __extends(d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n}\n\nexport var __assign = function() {\n __assign = Object.assign || function __assign(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n return t;\n }\n return __assign.apply(this, arguments);\n}\n\nexport function __rest(s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n}\n\nexport function __decorate(decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n}\n\nexport function __param(paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n}\n\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\n var _, done = false;\n for (var i = decorators.length - 1; i >= 0; i--) {\n var context = {};\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\n if (kind === \"accessor\") {\n if (result === void 0) continue;\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\n if (_ = accept(result.get)) descriptor.get = _;\n if (_ = accept(result.set)) descriptor.set = _;\n if (_ = accept(result.init)) initializers.unshift(_);\n }\n else if (_ = accept(result)) {\n if (kind === \"field\") initializers.unshift(_);\n else descriptor[key] = _;\n }\n }\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\n done = true;\n};\n\nexport function __runInitializers(thisArg, initializers, value) {\n var useValue = arguments.length > 2;\n for (var i = 0; i < initializers.length; i++) {\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\n }\n return useValue ? value : void 0;\n};\n\nexport function __propKey(x) {\n return typeof x === \"symbol\" ? x : \"\".concat(x);\n};\n\nexport function __setFunctionName(f, name, prefix) {\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\n};\n\nexport function __metadata(metadataKey, metadataValue) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\n}\n\nexport function __awaiter(thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n}\n\nexport function __generator(thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === \"function\" ? Iterator : Object).prototype);\n return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n}\n\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n});\n\nexport function __exportStar(m, o) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\n}\n\nexport function __values(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n}\n\nexport function __read(o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n}\n\n/** @deprecated */\nexport function __spread() {\n for (var ar = [], i = 0; i < arguments.length; i++)\n ar = ar.concat(__read(arguments[i]));\n return ar;\n}\n\n/** @deprecated */\nexport function __spreadArrays() {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n r[k] = a[j];\n return r;\n}\n\nexport function __spreadArray(to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n}\n\nexport function __await(v) {\n return this instanceof __await ? (this.v = v, this) : new __await(v);\n}\n\nexport function __asyncGenerator(thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = Object.create((typeof AsyncIterator === \"function\" ? AsyncIterator : Object).prototype), verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume(\"next\", value); }\n function reject(value) { resume(\"throw\", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n}\n\nexport function __asyncDelegator(o) {\n var i, p;\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\n}\n\nexport function __asyncValues(o) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n}\n\nexport function __makeTemplateObject(cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n};\n\nvar __setModuleDefault = Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n};\n\nvar ownKeys = function(o) {\n ownKeys = Object.getOwnPropertyNames || function (o) {\n var ar = [];\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\n return ar;\n };\n return ownKeys(o);\n};\n\nexport function __importStar(mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\n __setModuleDefault(result, mod);\n return result;\n}\n\nexport function __importDefault(mod) {\n return (mod && mod.__esModule) ? mod : { default: mod };\n}\n\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n}\n\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n}\n\nexport function __classPrivateFieldIn(state, receiver) {\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\n}\n\nexport function __addDisposableResource(env, value, async) {\n if (value !== null && value !== void 0) {\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\n var dispose, inner;\n if (async) {\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\n dispose = value[Symbol.asyncDispose];\n }\n if (dispose === void 0) {\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\n dispose = value[Symbol.dispose];\n if (async) inner = dispose;\n }\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\n env.stack.push({ value: value, dispose: dispose, async: async });\n }\n else if (async) {\n env.stack.push({ async: true });\n }\n return value;\n}\n\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\n var e = new Error(message);\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\n};\n\nexport function __disposeResources(env) {\n function fail(e) {\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\n env.hasError = true;\n }\n var r, s = 0;\n function next() {\n while (r = env.stack.pop()) {\n try {\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\n if (r.dispose) {\n var result = r.dispose.call(r.value);\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\n }\n else s |= 1;\n }\n catch (e) {\n fail(e);\n }\n }\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\n if (env.hasError) throw env.error;\n }\n return next();\n}\n\nexport function __rewriteRelativeImportExtension(path, preserveJsx) {\n if (typeof path === \"string\" && /^\\.\\.?\\//.test(path)) {\n return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {\n return tsx ? preserveJsx ? \".jsx\" : \".js\" : d && (!ext || !cm) ? m : (d + ext + \".\" + cm.toLowerCase() + \"js\");\n });\n }\n return path;\n}\n\nexport default {\n __extends,\n __assign,\n __rest,\n __decorate,\n __param,\n __esDecorate,\n __runInitializers,\n __propKey,\n __setFunctionName,\n __metadata,\n __awaiter,\n __generator,\n __createBinding,\n __exportStar,\n __values,\n __read,\n __spread,\n __spreadArrays,\n __spreadArray,\n __await,\n __asyncGenerator,\n __asyncDelegator,\n __asyncValues,\n __makeTemplateObject,\n __importStar,\n __importDefault,\n __classPrivateFieldGet,\n __classPrivateFieldSet,\n __classPrivateFieldIn,\n __addDisposableResource,\n __disposeResources,\n __rewriteRelativeImportExtension,\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ErrorKind = void 0;\nvar ErrorKind;\n(function (ErrorKind) {\n /** Argument is unclosed (e.g. `{0`) */\n ErrorKind[ErrorKind[\"EXPECT_ARGUMENT_CLOSING_BRACE\"] = 1] = \"EXPECT_ARGUMENT_CLOSING_BRACE\";\n /** Argument is empty (e.g. `{}`). */\n ErrorKind[ErrorKind[\"EMPTY_ARGUMENT\"] = 2] = \"EMPTY_ARGUMENT\";\n /** Argument is malformed (e.g. `{foo!}``) */\n ErrorKind[ErrorKind[\"MALFORMED_ARGUMENT\"] = 3] = \"MALFORMED_ARGUMENT\";\n /** Expect an argument type (e.g. `{foo,}`) */\n ErrorKind[ErrorKind[\"EXPECT_ARGUMENT_TYPE\"] = 4] = \"EXPECT_ARGUMENT_TYPE\";\n /** Unsupported argument type (e.g. `{foo,foo}`) */\n ErrorKind[ErrorKind[\"INVALID_ARGUMENT_TYPE\"] = 5] = \"INVALID_ARGUMENT_TYPE\";\n /** Expect an argument style (e.g. `{foo, number, }`) */\n ErrorKind[ErrorKind[\"EXPECT_ARGUMENT_STYLE\"] = 6] = \"EXPECT_ARGUMENT_STYLE\";\n /** The number skeleton is invalid. */\n ErrorKind[ErrorKind[\"INVALID_NUMBER_SKELETON\"] = 7] = \"INVALID_NUMBER_SKELETON\";\n /** The date time skeleton is invalid. */\n ErrorKind[ErrorKind[\"INVALID_DATE_TIME_SKELETON\"] = 8] = \"INVALID_DATE_TIME_SKELETON\";\n /** Exepct a number skeleton following the `::` (e.g. `{foo, number, ::}`) */\n ErrorKind[ErrorKind[\"EXPECT_NUMBER_SKELETON\"] = 9] = \"EXPECT_NUMBER_SKELETON\";\n /** Exepct a date time skeleton following the `::` (e.g. `{foo, date, ::}`) */\n ErrorKind[ErrorKind[\"EXPECT_DATE_TIME_SKELETON\"] = 10] = \"EXPECT_DATE_TIME_SKELETON\";\n /** Unmatched apostrophes in the argument style (e.g. `{foo, number, 'test`) */\n ErrorKind[ErrorKind[\"UNCLOSED_QUOTE_IN_ARGUMENT_STYLE\"] = 11] = \"UNCLOSED_QUOTE_IN_ARGUMENT_STYLE\";\n /** Missing select argument options (e.g. `{foo, select}`) */\n ErrorKind[ErrorKind[\"EXPECT_SELECT_ARGUMENT_OPTIONS\"] = 12] = \"EXPECT_SELECT_ARGUMENT_OPTIONS\";\n /** Expecting an offset value in `plural` or `selectordinal` argument (e.g `{foo, plural, offset}`) */\n ErrorKind[ErrorKind[\"EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE\"] = 13] = \"EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE\";\n /** Offset value in `plural` or `selectordinal` is invalid (e.g. `{foo, plural, offset: x}`) */\n ErrorKind[ErrorKind[\"INVALID_PLURAL_ARGUMENT_OFFSET_VALUE\"] = 14] = \"INVALID_PLURAL_ARGUMENT_OFFSET_VALUE\";\n /** Expecting a selector in `select` argument (e.g `{foo, select}`) */\n ErrorKind[ErrorKind[\"EXPECT_SELECT_ARGUMENT_SELECTOR\"] = 15] = \"EXPECT_SELECT_ARGUMENT_SELECTOR\";\n /** Expecting a selector in `plural` or `selectordinal` argument (e.g `{foo, plural}`) */\n ErrorKind[ErrorKind[\"EXPECT_PLURAL_ARGUMENT_SELECTOR\"] = 16] = \"EXPECT_PLURAL_ARGUMENT_SELECTOR\";\n /** Expecting a message fragment after the `select` selector (e.g. `{foo, select, apple}`) */\n ErrorKind[ErrorKind[\"EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT\"] = 17] = \"EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT\";\n /**\n * Expecting a message fragment after the `plural` or `selectordinal` selector\n * (e.g. `{foo, plural, one}`)\n */\n ErrorKind[ErrorKind[\"EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT\"] = 18] = \"EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT\";\n /** Selector in `plural` or `selectordinal` is malformed (e.g. `{foo, plural, =x {#}}`) */\n ErrorKind[ErrorKind[\"INVALID_PLURAL_ARGUMENT_SELECTOR\"] = 19] = \"INVALID_PLURAL_ARGUMENT_SELECTOR\";\n /**\n * Duplicate selectors in `plural` or `selectordinal` argument.\n * (e.g. {foo, plural, one {#} one {#}})\n */\n ErrorKind[ErrorKind[\"DUPLICATE_PLURAL_ARGUMENT_SELECTOR\"] = 20] = \"DUPLICATE_PLURAL_ARGUMENT_SELECTOR\";\n /** Duplicate selectors in `select` argument.\n * (e.g. {foo, select, apple {apple} apple {apple}})\n */\n ErrorKind[ErrorKind[\"DUPLICATE_SELECT_ARGUMENT_SELECTOR\"] = 21] = \"DUPLICATE_SELECT_ARGUMENT_SELECTOR\";\n /** Plural or select argument option must have `other` clause. */\n ErrorKind[ErrorKind[\"MISSING_OTHER_CLAUSE\"] = 22] = \"MISSING_OTHER_CLAUSE\";\n /** The tag is malformed. (e.g. `<bold!>foo</bold!>) */\n ErrorKind[ErrorKind[\"INVALID_TAG\"] = 23] = \"INVALID_TAG\";\n /** The tag name is invalid. (e.g. `<123>foo</123>`) */\n ErrorKind[ErrorKind[\"INVALID_TAG_NAME\"] = 25] = \"INVALID_TAG_NAME\";\n /** The closing tag does not match the opening tag. (e.g. `<bold>foo</italic>`) */\n ErrorKind[ErrorKind[\"UNMATCHED_CLOSING_TAG\"] = 26] = \"UNMATCHED_CLOSING_TAG\";\n /** The opening tag has unmatched closing tag. (e.g. `<bold>foo`) */\n ErrorKind[ErrorKind[\"UNCLOSED_TAG\"] = 27] = \"UNCLOSED_TAG\";\n})(ErrorKind || (exports.ErrorKind = ErrorKind = {}));\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.SKELETON_TYPE = exports.TYPE = void 0;\nexports.isLiteralElement = isLiteralElement;\nexports.isArgumentElement = isArgumentElement;\nexports.isNumberElement = isNumberElement;\nexports.isDateElement = isDateElement;\nexports.isTimeElement = isTimeElement;\nexports.isSelectElement = isSelectElement;\nexports.isPluralElement = isPluralElement;\nexports.isPoundElement = isPoundElement;\nexports.isTagElement = isTagElement;\nexports.isNumberSkeleton = isNumberSkeleton;\nexports.isDateTimeSkeleton = isDateTimeSkeleton;\nexports.createLiteralElement = createLiteralElement;\nexports.createNumberElement = createNumberElement;\nvar TYPE;\n(function (TYPE) {\n /**\n * Raw text\n */\n TYPE[TYPE[\"literal\"] = 0] = \"literal\";\n /**\n * Variable w/o any format, e.g `var` in `this is a {var}`\n */\n TYPE[TYPE[\"argument\"] = 1] = \"argument\";\n /**\n * Variable w/ number format\n */\n TYPE[TYPE[\"number\"] = 2] = \"number\";\n /**\n * Variable w/ date format\n */\n TYPE[TYPE[\"date\"] = 3] = \"date\";\n /**\n * Variable w/ time format\n */\n TYPE[TYPE[\"time\"] = 4] = \"time\";\n /**\n * Variable w/ select format\n */\n TYPE[TYPE[\"select\"] = 5] = \"select\";\n /**\n * Variable w/ plural format\n */\n TYPE[TYPE[\"plural\"] = 6] = \"plural\";\n /**\n * Only possible within plural argument.\n * This is the `#` symbol that will be substituted with the count.\n */\n TYPE[TYPE[\"pound\"] = 7] = \"pound\";\n /**\n * XML-like tag\n */\n TYPE[TYPE[\"tag\"] = 8] = \"tag\";\n})(TYPE || (exports.TYPE = TYPE = {}));\nvar SKELETON_TYPE;\n(function (SKELETON_TYPE) {\n SKELETON_TYPE[SKELETON_TYPE[\"number\"] = 0] = \"number\";\n SKELETON_TYPE[SKELETON_TYPE[\"dateTime\"] = 1] = \"dateTime\";\n})(SKELETON_TYPE || (exports.SKELETON_TYPE = SKELETON_TYPE = {}));\n/**\n * Type Guards\n */\nfunction isLiteralElement(el) {\n return el.type === TYPE.literal;\n}\nfunction isArgumentElement(el) {\n return el.type === TYPE.argument;\n}\nfunction isNumberElement(el) {\n return el.type === TYPE.number;\n}\nfunction isDateElement(el) {\n return el.type === TYPE.date;\n}\nfunction isTimeElement(el) {\n return el.type === TYPE.time;\n}\nfunction isSelectElement(el) {\n return el.type === TYPE.select;\n}\nfunction isPluralElement(el) {\n return el.type === TYPE.plural;\n}\nfunction isPoundElement(el) {\n return el.type === TYPE.pound;\n}\nfunction isTagElement(el) {\n return el.type === TYPE.tag;\n}\nfunction isNumberSkeleton(el) {\n return !!(el && typeof el === 'object' && el.type === SKELETON_TYPE.number);\n}\nfunction isDateTimeSkeleton(el) {\n return !!(el && typeof el === 'object' && el.type === SKELETON_TYPE.dateTime);\n}\nfunction createLiteralElement(value) {\n return {\n type: TYPE.literal,\n value: value,\n };\n}\nfunction createNumberElement(value, style) {\n return {\n type: TYPE.number,\n value: value,\n style: style,\n };\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.WHITE_SPACE_REGEX = exports.SPACE_SEPARATOR_REGEX = void 0;\n// @generated from regex-gen.ts\nexports.SPACE_SEPARATOR_REGEX = /[ \\xA0\\u1680\\u2000-\\u200A\\u202F\\u205F\\u3000]/;\nexports.WHITE_SPACE_REGEX = /[\\t-\\r \\x85\\u200E\\u200F\\u2028\\u2029]/;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.parseDateTimeSkeleton = parseDateTimeSkeleton;\n/**\n * https://unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table\n * Credit: https://github.com/caridy/intl-datetimeformat-pattern/blob/master/index.js\n * with some tweaks\n */\nvar DATE_TIME_REGEX = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;\n/**\n * Parse Date time skeleton into Intl.DateTimeFormatOptions\n * Ref: https://unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table\n * @public\n * @param skeleton skeleton string\n */\nfunction parseDateTimeSkeleton(skeleton) {\n var result = {};\n skeleton.replace(DATE_TIME_REGEX, function (match) {\n var len = match.length;\n switch (match[0]) {\n // Era\n case 'G':\n result.era = len === 4 ? 'long' : len === 5 ? 'narrow' : 'short';\n break;\n // Year\n case 'y':\n result.year = len === 2 ? '2-digit' : 'numeric';\n break;\n case 'Y':\n case 'u':\n case 'U':\n case 'r':\n throw new RangeError('`Y/u/U/r` (year) patterns are not supported, use `y` instead');\n // Quarter\n case 'q':\n case 'Q':\n throw new RangeError('`q/Q` (quarter) patterns are not supported');\n // Month\n case 'M':\n case 'L':\n result.month = ['numeric', '2-digit', 'short', 'long', 'narrow'][len - 1];\n break;\n // Week\n case 'w':\n case 'W':\n throw new RangeError('`w/W` (week) patterns are not supported');\n case 'd':\n result.day = ['numeric', '2-digit'][len - 1];\n break;\n case 'D':\n case 'F':\n case 'g':\n throw new RangeError('`D/F/g` (day) patterns are not supported, use `d` instead');\n // Weekday\n case 'E':\n result.weekday = len === 4 ? 'long' : len === 5 ? 'narrow' : 'short';\n break;\n case 'e':\n if (len < 4) {\n throw new RangeError('`e..eee` (weekday) patterns are not supported');\n }\n result.weekday = ['short', 'long', 'narrow', 'short'][len - 4];\n break;\n case 'c':\n if (len < 4) {\n throw new RangeError('`c..ccc` (weekday) patterns are not supported');\n }\n result.weekday = ['short', 'long', 'narrow', 'short'][len - 4];\n break;\n // Period\n case 'a': // AM, PM\n result.hour12 = true;\n break;\n case 'b': // am, pm, noon, midnight\n case 'B': // flexible day periods\n throw new RangeError('`b/B` (period) patterns are not supported, use `a` instead');\n // Hour\n case 'h':\n result.hourCycle = 'h12';\n result.hour = ['numeric', '2-digit'][len - 1];\n break;\n case 'H':\n result.hourCycle = 'h23';\n result.hour = ['numeric', '2-digit'][len - 1];\n break;\n case 'K':\n result.hourCycle = 'h11';\n result.hour = ['numeric', '2-digit'][len - 1];\n break;\n case 'k':\n result.hourCycle = 'h24';\n result.hour = ['numeric', '2-digit'][len - 1];\n break;\n case 'j':\n case 'J':\n case 'C':\n throw new RangeError('`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead');\n // Minute\n case 'm':\n result.minute = ['numeric', '2-digit'][len - 1];\n break;\n // Second\n case 's':\n result.second = ['numeric', '2-digit'][len - 1];\n break;\n case 'S':\n case 'A':\n throw new RangeError('`S/A` (second) patterns are not supported, use `s` instead');\n // Zone\n case 'z': // 1..3, 4: specific non-location format\n result.timeZoneName = len < 4 ? 'short' : 'long';\n break;\n case 'Z': // 1..3, 4, 5: The ISO8601 varios formats\n case 'O': // 1, 4: milliseconds in day short, long\n case 'v': // 1, 4: generic non-location format\n case 'V': // 1, 2, 3, 4: time zone ID or city\n case 'X': // 1, 2, 3, 4: The ISO8601 varios formats\n case 'x': // 1, 2, 3, 4: The ISO8601 varios formats\n throw new RangeError('`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead');\n }\n return '';\n });\n return result;\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.WHITE_SPACE_REGEX = void 0;\n// @generated from regex-gen.ts\nexports.WHITE_SPACE_REGEX = /[\\t-\\r \\x85\\u200E\\u200F\\u2028\\u2029]/i;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.parseNumberSkeletonFromString = parseNumberSkeletonFromString;\nexports.parseNumberSkeleton = parseNumberSkeleton;\nvar tslib_1 = require(\"tslib\");\nvar regex_generated_1 = require(\"./regex.generated\");\nfunction parseNumberSkeletonFromString(skeleton) {\n if (skeleton.length === 0) {\n throw new Error('Number skeleton cannot be empty');\n }\n // Parse the skeleton\n var stringTokens = skeleton\n .split(regex_generated_1.WHITE_SPACE_REGEX)\n .filter(function (x) { return x.length > 0; });\n var tokens = [];\n for (var _i = 0, stringTokens_1 = stringTokens; _i < stringTokens_1.length; _i++) {\n var stringToken = stringTokens_1[_i];\n var stemAndOptions = stringToken.split('/');\n if (stemAndOptions.length === 0) {\n throw new Error('Invalid number skeleton');\n }\n var stem = stemAndOptions[0], options = stemAndOptions.slice(1);\n for (var _a = 0, options_1 = options; _a < options_1.length; _a++) {\n var option = options_1[_a];\n if (option.length === 0) {\n throw new Error('Invalid number skeleton');\n }\n }\n tokens.push({ stem: stem, options: options });\n }\n return tokens;\n}\nfunction icuUnitToEcma(unit) {\n return unit.replace(/^(.*?)-/, '');\n}\nvar FRACTION_PRECISION_REGEX = /^\\.(?:(0+)(\\*)?|(#+)|(0+)(#+))$/g;\nvar SIGNIFICANT_PRECISION_REGEX = /^(@+)?(\\+|#+)?[rs]?$/g;\nvar INTEGER_WIDTH_REGEX = /(\\*)(0+)|(#+)(0+)|(0+)/g;\nvar CONCISE_INTEGER_WIDTH_REGEX = /^(0+)$/;\nfunction parseSignificantPrecision(str) {\n var result = {};\n if (str[str.length - 1] === 'r') {\n result.roundingPriority = 'morePrecision';\n }\n else if (str[str.length - 1] === 's') {\n result.roundingPriority = 'lessPrecision';\n }\n str.replace(SIGNIFICANT_PRECISION_REGEX, function (_, g1, g2) {\n // @@@ case\n if (typeof g2 !== 'string') {\n result.minimumSignificantDigits = g1.length;\n result.maximumSignificantDigits = g1.length;\n }\n // @@@+ case\n else if (g2 === '+') {\n result.minimumSignificantDigits = g1.length;\n }\n // .### case\n else if (g1[0] === '#') {\n result.maximumSignificantDigits = g1.length;\n }\n // .@@## or .@@@ case\n else {\n result.minimumSignificantDigits = g1.length;\n result.maximumSignificantDigits =\n g1.length + (typeof g2 === 'string' ? g2.length : 0);\n }\n return '';\n });\n return result;\n}\nfunction parseSign(str) {\n switch (str) {\n case 'sign-auto':\n return {\n signDisplay: 'auto',\n };\n case 'sign-accounting':\n case '()':\n return {\n currencySign: 'accounting',\n };\n case 'sign-always':\n case '+!':\n return {\n signDisplay: 'always',\n };\n case 'sign-accounting-always':\n case '()!':\n return {\n signDisplay: 'always',\n currencySign: 'accounting',\n };\n case 'sign-except-zero':\n case '+?':\n return {\n signDisplay: 'exceptZero',\n };\n case 'sign-accounting-except-zero':\n case '()?':\n return {\n signDisplay: 'exceptZero',\n currencySign: 'accounting',\n };\n case 'sign-never':\n case '+_':\n return {\n signDisplay: 'never',\n };\n }\n}\nfunction parseConciseScientificAndEngineeringStem(stem) {\n // Engineering\n var result;\n if (stem[0] === 'E' && stem[1] === 'E') {\n result = {\n notation: 'engineering',\n };\n stem = stem.slice(2);\n }\n else if (stem[0] === 'E') {\n result = {\n notation: 'scientific',\n };\n stem = stem.slice(1);\n }\n if (result) {\n var signDisplay = stem.slice(0, 2);\n if (signDisplay === '+!') {\n result.signDisplay = 'always';\n stem = stem.slice(2);\n }\n else if (signDisplay === '+?') {\n result.signDisplay = 'exceptZero';\n stem = stem.slice(2);\n }\n if (!CONCISE_INTEGER_WIDTH_REGEX.test(stem)) {\n throw new Error('Malformed concise eng/scientific notation');\n }\n result.minimumIntegerDigits = stem.length;\n }\n return result;\n}\nfunction parseNotationOptions(opt) {\n var result = {};\n var signOpts = parseSign(opt);\n if (signOpts) {\n return signOpts;\n }\n return result;\n}\n/**\n * https://github.com/unicode-org/icu/blob/master/docs/userguide/format_parse/numbers/skeletons.md#skeleton-stems-and-options\n */\nfunction parseNumberSkeleton(tokens) {\n var result = {};\n for (var _i = 0, tokens_1 = tokens; _i < tokens_1.length; _i++) {\n var token = tokens_1[_i];\n switch (token.stem) {\n case 'percent':\n case '%':\n result.style = 'percent';\n continue;\n case '%x100':\n result.style = 'percent';\n result.scale = 100;\n continue;\n case 'currency':\n result.style = 'currency';\n result.currency = token.options[0];\n continue;\n case 'group-off':\n case ',_':\n result.useGrouping = false;\n continue;\n case 'precision-integer':\n case '.':\n result.maximumFractionDigits = 0;\n continue;\n case 'measure-unit':\n case 'unit':\n result.style = 'unit';\n result.unit = icuUnitToEcma(token.options[0]);\n continue;\n case 'compact-short':\n case 'K':\n result.notation = 'compact';\n result.compactDisplay = 'short';\n continue;\n case 'compact-long':\n case 'KK':\n result.notation = 'compact';\n result.compactDisplay = 'long';\n continue;\n case 'scientific':\n result = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, result), { notation: 'scientific' }), token.options.reduce(function (all, opt) { return (tslib_1.__assign(tslib_1.__assign({}, all), parseNotationOptions(opt))); }, {}));\n continue;\n case 'engineering':\n result = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, result), { notation: 'engineering' }), token.options.reduce(function (all, opt) { return (tslib_1.__assign(tslib_1.__assign({}, all), parseNotationOptions(opt))); }, {}));\n continue;\n case 'notation-simple':\n result.notation = 'standard';\n continue;\n // https://github.com/unicode-org/icu/blob/master/icu4c/source/i18n/unicode/unumberformatter.h\n case 'unit-width-narrow':\n result.currencyDisplay = 'narrowSymbol';\n result.unitDisplay = 'narrow';\n continue;\n case 'unit-width-short':\n result.currencyDisplay = 'code';\n result.unitDisplay = 'short';\n continue;\n case 'unit-width-full-name':\n result.currencyDisplay = 'name';\n result.unitDisplay = 'long';\n continue;\n case 'unit-width-iso-code':\n result.currencyDisplay = 'symbol';\n continue;\n case 'scale':\n result.scale = parseFloat(token.options[0]);\n continue;\n case 'rounding-mode-floor':\n result.roundingMode = 'floor';\n continue;\n case 'rounding-mode-ceiling':\n result.roundingMode = 'ceil';\n continue;\n case 'rounding-mode-down':\n result.roundingMode = 'trunc';\n continue;\n case 'rounding-mode-up':\n result.roundingMode = 'expand';\n continue;\n case 'rounding-mode-half-even':\n result.roundingMode = 'halfEven';\n continue;\n case 'rounding-mode-half-down':\n result.roundingMode = 'halfTrunc';\n continue;\n case 'rounding-mode-half-up':\n result.roundingMode = 'halfExpand';\n continue;\n // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width\n case 'integer-width':\n if (token.options.length > 1) {\n throw new RangeError('integer-width stems only accept a single optional option');\n }\n token.options[0].replace(INTEGER_WIDTH_REGEX, function (_, g1, g2, g3, g4, g5) {\n if (g1) {\n result.minimumIntegerDigits = g2.length;\n }\n else if (g3 && g4) {\n throw new Error('We currently do not support maximum integer digits');\n }\n else if (g5) {\n throw new Error('We currently do not support exact integer digits');\n }\n return '';\n });\n continue;\n }\n // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width\n if (CONCISE_INTEGER_WIDTH_REGEX.test(token.stem)) {\n result.minimumIntegerDigits = token.stem.length;\n continue;\n }\n if (FRACTION_PRECISION_REGEX.test(token.stem)) {\n // Precision\n // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#fraction-precision\n // precision-integer case\n if (token.options.length > 1) {\n throw new RangeError('Fraction-precision stems only accept a single optional option');\n }\n token.stem.replace(FRACTION_PRECISION_REGEX, function (_, g1, g2, g3, g4, g5) {\n // .000* case (before ICU67 it was .000+)\n if (g2 === '*') {\n result.minimumFractionDigits = g1.length;\n }\n // .### case\n else if (g3 && g3[0] === '#') {\n result.maximumFractionDigits = g3.length;\n }\n // .00## case\n else if (g4 && g5) {\n result.minimumFractionDigits = g4.length;\n result.maximumFractionDigits = g4.length + g5.length;\n }\n else {\n result.minimumFractionDigits = g1.length;\n result.maximumFractionDigits = g1.length;\n }\n return '';\n });\n var opt = token.options[0];\n // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#trailing-zero-display\n if (opt === 'w') {\n result = tslib_1.__assign(tslib_1.__assign({}, result), { trailingZeroDisplay: 'stripIfInteger' });\n }\n else if (opt) {\n result = tslib_1.__assign(tslib_1.__assign({}, result), parseSignificantPrecision(opt));\n }\n continue;\n }\n // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#significant-digits-precision\n if (SIGNIFICANT_PRECISION_REGEX.test(token.stem)) {\n result = tslib_1.__assign(tslib_1.__assign({}, result), parseSignificantPrecision(token.stem));\n continue;\n }\n var signOpts = parseSign(token.stem);\n if (signOpts) {\n result = tslib_1.__assign(tslib_1.__assign({}, result), signOpts);\n }\n var conciseScientificAndEngineeringOpts = parseConciseScientificAndEngineeringStem(token.stem);\n if (conciseScientificAndEngineeringOpts) {\n result = tslib_1.__assign(tslib_1.__assign({}, result), conciseScientificAndEngineeringOpts);\n }\n }\n return result;\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar tslib_1 = require(\"tslib\");\ntslib_1.__exportStar(require(\"./date-time\"), exports);\ntslib_1.__exportStar(require(\"./number\"), exports);\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.timeData = void 0;\n// @generated from time-data-gen.ts\n// prettier-ignore \nexports.timeData = {\n \"001\": [\n \"H\",\n \"h\"\n ],\n \"419\": [\n \"h\",\n \"H\",\n \"hB\",\n \"hb\"\n ],\n \"AC\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"AD\": [\n \"H\",\n \"hB\"\n ],\n \"AE\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"AF\": [\n \"H\",\n \"hb\",\n \"hB\",\n \"h\"\n ],\n \"AG\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"AI\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"AL\": [\n \"h\",\n \"H\",\n \"hB\"\n ],\n \"AM\": [\n \"H\",\n \"hB\"\n ],\n \"AO\": [\n \"H\",\n \"hB\"\n ],\n \"AR\": [\n \"h\",\n \"H\",\n \"hB\",\n \"hb\"\n ],\n \"AS\": [\n \"h\",\n \"H\"\n ],\n \"AT\": [\n \"H\",\n \"hB\"\n ],\n \"AU\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"AW\": [\n \"H\",\n \"hB\"\n ],\n \"AX\": [\n \"H\"\n ],\n \"AZ\": [\n \"H\",\n \"hB\",\n \"h\"\n ],\n \"BA\": [\n \"H\",\n \"hB\",\n \"h\"\n ],\n \"BB\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"BD\": [\n \"h\",\n \"hB\",\n \"H\"\n ],\n \"BE\": [\n \"H\",\n \"hB\"\n ],\n \"BF\": [\n \"H\",\n \"hB\"\n ],\n \"BG\": [\n \"H\",\n \"hB\",\n \"h\"\n ],\n \"BH\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"BI\": [\n \"H\",\n \"h\"\n ],\n \"BJ\": [\n \"H\",\n \"hB\"\n ],\n \"BL\": [\n \"H\",\n \"hB\"\n ],\n \"BM\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"BN\": [\n \"hb\",\n \"hB\",\n \"h\",\n \"H\"\n ],\n \"BO\": [\n \"h\",\n \"H\",\n \"hB\",\n \"hb\"\n ],\n \"BQ\": [\n \"H\"\n ],\n \"BR\": [\n \"H\",\n \"hB\"\n ],\n \"BS\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"BT\": [\n \"h\",\n \"H\"\n ],\n \"BW\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"BY\": [\n \"H\",\n \"h\"\n ],\n \"BZ\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"CA\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"CC\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"CD\": [\n \"hB\",\n \"H\"\n ],\n \"CF\": [\n \"H\",\n \"h\",\n \"hB\"\n ],\n \"CG\": [\n \"H\",\n \"hB\"\n ],\n \"CH\": [\n \"H\",\n \"hB\",\n \"h\"\n ],\n \"CI\": [\n \"H\",\n \"hB\"\n ],\n \"CK\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"CL\": [\n \"h\",\n \"H\",\n \"hB\",\n \"hb\"\n ],\n \"CM\": [\n \"H\",\n \"h\",\n \"hB\"\n ],\n \"CN\": [\n \"H\",\n \"hB\",\n \"hb\",\n \"h\"\n ],\n \"CO\": [\n \"h\",\n \"H\",\n \"hB\",\n \"hb\"\n ],\n \"CP\": [\n \"H\"\n ],\n \"CR\": [\n \"h\",\n \"H\",\n \"hB\",\n \"hb\"\n ],\n \"CU\": [\n \"h\",\n \"H\",\n \"hB\",\n \"hb\"\n ],\n \"CV\": [\n \"H\",\n \"hB\"\n ],\n \"CW\": [\n \"H\",\n \"hB\"\n ],\n \"CX\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"CY\": [\n \"h\",\n \"H\",\n \"hb\",\n \"hB\"\n ],\n \"CZ\": [\n \"H\"\n ],\n \"DE\": [\n \"H\",\n \"hB\"\n ],\n \"DG\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"DJ\": [\n \"h\",\n \"H\"\n ],\n \"DK\": [\n \"H\"\n ],\n \"DM\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"DO\": [\n \"h\",\n \"H\",\n \"hB\",\n \"hb\"\n ],\n \"DZ\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"EA\": [\n \"H\",\n \"h\",\n \"hB\",\n \"hb\"\n ],\n \"EC\": [\n \"h\",\n \"H\",\n \"hB\",\n \"hb\"\n ],\n \"EE\": [\n \"H\",\n \"hB\"\n ],\n \"EG\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"EH\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"ER\": [\n \"h\",\n \"H\"\n ],\n \"ES\": [\n \"H\",\n \"hB\",\n \"h\",\n \"hb\"\n ],\n \"ET\": [\n \"hB\",\n \"hb\",\n \"h\",\n \"H\"\n ],\n \"FI\": [\n \"H\"\n ],\n \"FJ\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"FK\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"FM\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"FO\": [\n \"H\",\n \"h\"\n ],\n \"FR\": [\n \"H\",\n \"hB\"\n ],\n \"GA\": [\n \"H\",\n \"hB\"\n ],\n \"GB\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"GD\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"GE\": [\n \"H\",\n \"hB\",\n \"h\"\n ],\n \"GF\": [\n \"H\",\n \"hB\"\n ],\n \"GG\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"GH\": [\n \"h\",\n \"H\"\n ],\n \"GI\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"GL\": [\n \"H\",\n \"h\"\n ],\n \"GM\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"GN\": [\n \"H\",\n \"hB\"\n ],\n \"GP\": [\n \"H\",\n \"hB\"\n ],\n \"GQ\": [\n \"H\",\n \"hB\",\n \"h\",\n \"hb\"\n ],\n \"GR\": [\n \"h\",\n \"H\",\n \"hb\",\n \"hB\"\n ],\n \"GT\": [\n \"h\",\n \"H\",\n \"hB\",\n \"hb\"\n ],\n \"GU\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"GW\": [\n \"H\",\n \"hB\"\n ],\n \"GY\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"HK\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"HN\": [\n \"h\",\n \"H\",\n \"hB\",\n \"hb\"\n ],\n \"HR\": [\n \"H\",\n \"hB\"\n ],\n \"HU\": [\n \"H\",\n \"h\"\n ],\n \"IC\": [\n \"H\",\n \"h\",\n \"hB\",\n \"hb\"\n ],\n \"ID\": [\n \"H\"\n ],\n \"IE\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"IL\": [\n \"H\",\n \"hB\"\n ],\n \"IM\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"IN\": [\n \"h\",\n \"H\"\n ],\n \"IO\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"IQ\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"IR\": [\n \"hB\",\n \"H\"\n ],\n \"IS\": [\n \"H\"\n ],\n \"IT\": [\n \"H\",\n \"hB\"\n ],\n \"JE\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"JM\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"JO\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"JP\": [\n \"H\",\n \"K\",\n \"h\"\n ],\n \"KE\": [\n \"hB\",\n \"hb\",\n \"H\",\n \"h\"\n ],\n \"KG\": [\n \"H\",\n \"h\",\n \"hB\",\n \"hb\"\n ],\n \"KH\": [\n \"hB\",\n \"h\",\n \"H\",\n \"hb\"\n ],\n \"KI\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"KM\": [\n \"H\",\n \"h\",\n \"hB\",\n \"hb\"\n ],\n \"KN\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"KP\": [\n \"h\",\n \"H\",\n \"hB\",\n \"hb\"\n ],\n \"KR\": [\n \"h\",\n \"H\",\n \"hB\",\n \"hb\"\n ],\n \"KW\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"KY\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"KZ\": [\n \"H\",\n \"hB\"\n ],\n \"LA\": [\n \"H\",\n \"hb\",\n \"hB\",\n \"h\"\n ],\n \"LB\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"LC\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"LI\": [\n \"H\",\n \"hB\",\n \"h\"\n ],\n \"LK\": [\n \"H\",\n \"h\",\n \"hB\",\n \"hb\"\n ],\n \"LR\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"LS\": [\n \"h\",\n \"H\"\n ],\n \"LT\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"LU\": [\n \"H\",\n \"h\",\n \"hB\"\n ],\n \"LV\": [\n \"H\",\n \"hB\",\n \"hb\",\n \"h\"\n ],\n \"LY\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"MA\": [\n \"H\",\n \"h\",\n \"hB\",\n \"hb\"\n ],\n \"MC\": [\n \"H\",\n \"hB\"\n ],\n \"MD\": [\n \"H\",\n \"hB\"\n ],\n \"ME\": [\n \"H\",\n \"hB\",\n \"h\"\n ],\n \"MF\": [\n \"H\",\n \"hB\"\n ],\n \"MG\": [\n \"H\",\n \"h\"\n ],\n \"MH\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"MK\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"ML\": [\n \"H\"\n ],\n \"MM\": [\n \"hB\",\n \"hb\",\n \"H\",\n \"h\"\n ],\n \"MN\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"MO\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"MP\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"MQ\": [\n \"H\",\n \"hB\"\n ],\n \"MR\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"MS\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"MT\": [\n \"H\",\n \"h\"\n ],\n \"MU\": [\n \"H\",\n \"h\"\n ],\n \"MV\": [\n \"H\",\n \"h\"\n ],\n \"MW\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"MX\": [\n \"h\",\n \"H\",\n \"hB\",\n \"hb\"\n ],\n \"MY\": [\n \"hb\",\n \"hB\",\n \"h\",\n \"H\"\n ],\n \"MZ\": [\n \"H\",\n \"hB\"\n ],\n \"NA\": [\n \"h\",\n \"H\",\n \"hB\",\n \"hb\"\n ],\n \"NC\": [\n \"H\",\n \"hB\"\n ],\n \"NE\": [\n \"H\"\n ],\n \"NF\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"NG\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"NI\": [\n \"h\",\n \"H\",\n \"hB\",\n \"hb\"\n ],\n \"NL\": [\n \"H\",\n \"hB\"\n ],\n \"NO\": [\n \"H\",\n \"h\"\n ],\n \"NP\": [\n \"H\",\n \"h\",\n \"hB\"\n ],\n \"NR\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"NU\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"NZ\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"OM\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"PA\": [\n \"h\",\n \"H\",\n \"hB\",\n \"hb\"\n ],\n \"PE\": [\n \"h\",\n \"H\",\n \"hB\",\n \"hb\"\n ],\n \"PF\": [\n \"H\",\n \"h\",\n \"hB\"\n ],\n \"PG\": [\n \"h\",\n \"H\"\n ],\n \"PH\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"PK\": [\n \"h\",\n \"hB\",\n \"H\"\n ],\n \"PL\": [\n \"H\",\n \"h\"\n ],\n \"PM\": [\n \"H\",\n \"hB\"\n ],\n \"PN\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"PR\": [\n \"h\",\n \"H\",\n \"hB\",\n \"hb\"\n ],\n \"PS\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"PT\": [\n \"H\",\n \"hB\"\n ],\n \"PW\": [\n \"h\",\n \"H\"\n ],\n \"PY\": [\n \"h\",\n \"H\",\n \"hB\",\n \"hb\"\n ],\n \"QA\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"RE\": [\n \"H\",\n \"hB\"\n ],\n \"RO\": [\n \"H\",\n \"hB\"\n ],\n \"RS\": [\n \"H\",\n \"hB\",\n \"h\"\n ],\n \"RU\": [\n \"H\"\n ],\n \"RW\": [\n \"H\",\n \"h\"\n ],\n \"SA\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"SB\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"SC\": [\n \"H\",\n \"h\",\n \"hB\"\n ],\n \"SD\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"SE\": [\n \"H\"\n ],\n \"SG\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"SH\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"SI\": [\n \"H\",\n \"hB\"\n ],\n \"SJ\": [\n \"H\"\n ],\n \"SK\": [\n \"H\"\n ],\n \"SL\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"SM\": [\n \"H\",\n \"h\",\n \"hB\"\n ],\n \"SN\": [\n \"H\",\n \"h\",\n \"hB\"\n ],\n \"SO\": [\n \"h\",\n \"H\"\n ],\n \"SR\": [\n \"H\",\n \"hB\"\n ],\n \"SS\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"ST\": [\n \"H\",\n \"hB\"\n ],\n \"SV\": [\n \"h\",\n \"H\",\n \"hB\",\n \"hb\"\n ],\n \"SX\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"SY\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"SZ\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"TA\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"TC\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"TD\": [\n \"h\",\n \"H\",\n \"hB\"\n ],\n \"TF\": [\n \"H\",\n \"h\",\n \"hB\"\n ],\n \"TG\": [\n \"H\",\n \"hB\"\n ],\n \"TH\": [\n \"H\",\n \"h\"\n ],\n \"TJ\": [\n \"H\",\n \"h\"\n ],\n \"TL\": [\n \"H\",\n \"hB\",\n \"hb\",\n \"h\"\n ],\n \"TM\": [\n \"H\",\n \"h\"\n ],\n \"TN\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"TO\": [\n \"h\",\n \"H\"\n ],\n \"TR\": [\n \"H\",\n \"hB\"\n ],\n \"TT\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"TW\": [\n \"hB\",\n \"hb\",\n \"h\",\n \"H\"\n ],\n \"TZ\": [\n \"hB\",\n \"hb\",\n \"H\",\n \"h\"\n ],\n \"UA\": [\n \"H\",\n \"hB\",\n \"h\"\n ],\n \"UG\": [\n \"hB\",\n \"hb\",\n \"H\",\n \"h\"\n ],\n \"UM\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"US\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"UY\": [\n \"h\",\n \"H\",\n \"hB\",\n \"hb\"\n ],\n \"UZ\": [\n \"H\",\n \"hB\",\n \"h\"\n ],\n \"VA\": [\n \"H\",\n \"h\",\n \"hB\"\n ],\n \"VC\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"VE\": [\n \"h\",\n \"H\",\n \"hB\",\n \"hb\"\n ],\n \"VG\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"VI\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"VN\": [\n \"H\",\n \"h\"\n ],\n \"VU\": [\n \"h\",\n \"H\"\n ],\n \"WF\": [\n \"H\",\n \"hB\"\n ],\n \"WS\": [\n \"h\",\n \"H\"\n ],\n \"XK\": [\n \"H\",\n \"hB\",\n \"h\"\n ],\n \"YE\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"YT\": [\n \"H\",\n \"hB\"\n ],\n \"ZA\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"ZM\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"ZW\": [\n \"H\",\n \"h\"\n ],\n \"af-ZA\": [\n \"H\",\n \"h\",\n \"hB\",\n \"hb\"\n ],\n \"ar-001\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"ca-ES\": [\n \"H\",\n \"h\",\n \"hB\"\n ],\n \"en-001\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"en-HK\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"en-IL\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"en-MY\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"es-BR\": [\n \"H\",\n \"h\",\n \"hB\",\n \"hb\"\n ],\n \"es-ES\": [\n \"H\",\n \"h\",\n \"hB\",\n \"hb\"\n ],\n \"es-GQ\": [\n \"H\",\n \"h\",\n \"hB\",\n \"hb\"\n ],\n \"fr-CA\": [\n \"H\",\n \"h\",\n \"hB\"\n ],\n \"gl-ES\": [\n \"H\",\n \"h\",\n \"hB\"\n ],\n \"gu-IN\": [\n \"hB\",\n \"hb\",\n \"h\",\n \"H\"\n ],\n \"hi-IN\": [\n \"hB\",\n \"h\",\n \"H\"\n ],\n \"it-CH\": [\n \"H\",\n \"h\",\n \"hB\"\n ],\n \"it-IT\": [\n \"H\",\n \"h\",\n \"hB\"\n ],\n \"kn-IN\": [\n \"hB\",\n \"h\",\n \"H\"\n ],\n \"ml-IN\": [\n \"hB\",\n \"h\",\n \"H\"\n ],\n \"mr-IN\": [\n \"hB\",\n \"hb\",\n \"h\",\n \"H\"\n ],\n \"pa-IN\": [\n \"hB\",\n \"hb\",\n \"h\",\n \"H\"\n ],\n \"ta-IN\": [\n \"hB\",\n \"h\",\n \"hb\",\n \"H\"\n ],\n \"te-IN\": [\n \"hB\",\n \"h\",\n \"H\"\n ],\n \"zu-ZA\": [\n \"H\",\n \"hB\",\n \"hb\",\n \"h\"\n ]\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getBestPattern = getBestPattern;\nvar time_data_generated_1 = require(\"./time-data.generated\");\n/**\n * Returns the best matching date time pattern if a date time skeleton\n * pattern is provided with a locale. Follows the Unicode specification:\n * https://www.unicode.org/reports/tr35/tr35-dates.html#table-mapping-requested-time-skeletons-to-patterns\n * @param skeleton date time skeleton pattern that possibly includes j, J or C\n * @param locale\n */\nfunction getBestPattern(skeleton, locale) {\n var skeletonCopy = '';\n for (var patternPos = 0; patternPos < skeleton.length; patternPos++) {\n var patternChar = skeleton.charAt(patternPos);\n if (patternChar === 'j') {\n var extraLength = 0;\n while (patternPos + 1 < skeleton.length &&\n skeleton.charAt(patternPos + 1) === patternChar) {\n extraLength++;\n patternPos++;\n }\n var hourLen = 1 + (extraLength & 1);\n var dayPeriodLen = extraLength < 2 ? 1 : 3 + (extraLength >> 1);\n var dayPeriodChar = 'a';\n var hourChar = getDefaultHourSymbolFromLocale(locale);\n if (hourChar == 'H' || hourChar == 'k') {\n dayPeriodLen = 0;\n }\n while (dayPeriodLen-- > 0) {\n skeletonCopy += dayPeriodChar;\n }\n while (hourLen-- > 0) {\n skeletonCopy = hourChar + skeletonCopy;\n }\n }\n else if (patternChar === 'J') {\n skeletonCopy += 'H';\n }\n else {\n skeletonCopy += patternChar;\n }\n }\n return skeletonCopy;\n}\n/**\n * Maps the [hour cycle type](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/hourCycle)\n * of the given `locale` to the corresponding time pattern.\n * @param locale\n */\nfunction getDefaultHourSymbolFromLocale(locale) {\n var hourCycle = locale.hourCycle;\n if (hourCycle === undefined &&\n // @ts-ignore hourCycle(s) is not identified yet\n locale.hourCycles &&\n // @ts-ignore\n locale.hourCycles.length) {\n // @ts-ignore\n hourCycle = locale.hourCycles[0];\n }\n if (hourCycle) {\n switch (hourCycle) {\n case 'h24':\n return 'k';\n case 'h23':\n return 'H';\n case 'h12':\n return 'h';\n case 'h11':\n return 'K';\n default:\n throw new Error('Invalid hourCycle');\n }\n }\n // TODO: Once hourCycle is fully supported remove the following with data generation\n var languageTag = locale.language;\n var regionTag;\n if (languageTag !== 'root') {\n regionTag = locale.maximize().region;\n }\n var hourCycles = time_data_generated_1.timeData[regionTag || ''] ||\n time_data_generated_1.timeData[languageTag || ''] ||\n time_data_generated_1.timeData[\"\".concat(languageTag, \"-001\")] ||\n time_data_generated_1.timeData['001'];\n return hourCycles[0];\n}\n","\"use strict\";\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Parser = void 0;\nvar tslib_1 = require(\"tslib\");\nvar error_1 = require(\"./error\");\nvar types_1 = require(\"./types\");\nvar regex_generated_1 = require(\"./regex.generated\");\nvar icu_skeleton_parser_1 = require(\"@formatjs/icu-skeleton-parser\");\nvar date_time_pattern_generator_1 = require(\"./date-time-pattern-generator\");\nvar SPACE_SEPARATOR_START_REGEX = new RegExp(\"^\".concat(regex_generated_1.SPACE_SEPARATOR_REGEX.source, \"*\"));\nvar SPACE_SEPARATOR_END_REGEX = new RegExp(\"\".concat(regex_generated_1.SPACE_SEPARATOR_REGEX.source, \"*$\"));\nfunction createLocation(start, end) {\n return { start: start, end: end };\n}\n// #region Ponyfills\n// Consolidate these variables up top for easier toggling during debugging\nvar hasNativeStartsWith = !!String.prototype.startsWith && '_a'.startsWith('a', 1);\nvar hasNativeFromCodePoint = !!String.fromCodePoint;\nvar hasNativeFromEntries = !!Object.fromEntries;\nvar hasNativeCodePointAt = !!String.prototype.codePointAt;\nvar hasTrimStart = !!String.prototype.trimStart;\nvar hasTrimEnd = !!String.prototype.trimEnd;\nvar hasNativeIsSafeInteger = !!Number.isSafeInteger;\nvar isSafeInteger = hasNativeIsSafeInteger\n ? Number.isSafeInteger\n : function (n) {\n return (typeof n === 'number' &&\n isFinite(n) &&\n Math.floor(n) === n &&\n Math.abs(n) <= 0x1fffffffffffff);\n };\n// IE11 does not support y and u.\nvar REGEX_SUPPORTS_U_AND_Y = true;\ntry {\n var re = RE('([^\\\\p{White_Space}\\\\p{Pattern_Syntax}]*)', 'yu');\n /**\n * legacy Edge or Xbox One browser\n * Unicode flag support: supported\n * Pattern_Syntax support: not supported\n * See https://github.com/formatjs/formatjs/issues/2822\n */\n REGEX_SUPPORTS_U_AND_Y = ((_a = re.exec('a')) === null || _a === void 0 ? void 0 : _a[0]) === 'a';\n}\ncatch (_) {\n REGEX_SUPPORTS_U_AND_Y = false;\n}\nvar startsWith = hasNativeStartsWith\n ? // Native\n function startsWith(s, search, position) {\n return s.startsWith(search, position);\n }\n : // For IE11\n function startsWith(s, search, position) {\n return s.slice(position, position + search.length) === search;\n };\nvar fromCodePoint = hasNativeFromCodePoint\n ? String.fromCodePoint\n : // IE11\n function fromCodePoint() {\n var codePoints = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n codePoints[_i] = arguments[_i];\n }\n var elements = '';\n var length = codePoints.length;\n var i = 0;\n var code;\n while (length > i) {\n code = codePoints[i++];\n if (code > 0x10ffff)\n throw RangeError(code + ' is not a valid code point');\n elements +=\n code < 0x10000\n ? String.fromCharCode(code)\n : String.fromCharCode(((code -= 0x10000) >> 10) + 0xd800, (code % 0x400) + 0xdc00);\n }\n return elements;\n };\nvar fromEntries = \n// native\nhasNativeFromEntries\n ? Object.fromEntries\n : // Ponyfill\n function fromEntries(entries) {\n var obj = {};\n for (var _i = 0, entries_1 = entries; _i < entries_1.length; _i++) {\n var _a = entries_1[_i], k = _a[0], v = _a[1];\n obj[k] = v;\n }\n return obj;\n };\nvar codePointAt = hasNativeCodePointAt\n ? // Native\n function codePointAt(s, index) {\n return s.codePointAt(index);\n }\n : // IE 11\n function codePointAt(s, index) {\n var size = s.length;\n if (index < 0 || index >= size) {\n return undefined;\n }\n var first = s.charCodeAt(index);\n var second;\n return first < 0xd800 ||\n first > 0xdbff ||\n index + 1 === size ||\n (second = s.charCodeAt(index + 1)) < 0xdc00 ||\n second > 0xdfff\n ? first\n : ((first - 0xd800) << 10) + (second - 0xdc00) + 0x10000;\n };\nvar trimStart = hasTrimStart\n ? // Native\n function trimStart(s) {\n return s.trimStart();\n }\n : // Ponyfill\n function trimStart(s) {\n return s.replace(SPACE_SEPARATOR_START_REGEX, '');\n };\nvar trimEnd = hasTrimEnd\n ? // Native\n function trimEnd(s) {\n return s.trimEnd();\n }\n : // Ponyfill\n function trimEnd(s) {\n return s.replace(SPACE_SEPARATOR_END_REGEX, '');\n };\n// Prevent minifier to translate new RegExp to literal form that might cause syntax error on IE11.\nfunction RE(s, flag) {\n return new RegExp(s, flag);\n}\n// #endregion\nvar matchIdentifierAtIndex;\nif (REGEX_SUPPORTS_U_AND_Y) {\n // Native\n var IDENTIFIER_PREFIX_RE_1 = RE('([^\\\\p{White_Space}\\\\p{Pattern_Syntax}]*)', 'yu');\n matchIdentifierAtIndex = function matchIdentifierAtIndex(s, index) {\n var _a;\n IDENTIFIER_PREFIX_RE_1.lastIndex = index;\n var match = IDENTIFIER_PREFIX_RE_1.exec(s);\n return (_a = match[1]) !== null && _a !== void 0 ? _a : '';\n };\n}\nelse {\n // IE11\n matchIdentifierAtIndex = function matchIdentifierAtIndex(s, index) {\n var match = [];\n while (true) {\n var c = codePointAt(s, index);\n if (c === undefined || _isWhiteSpace(c) || _isPatternSyntax(c)) {\n break;\n }\n match.push(c);\n index += c >= 0x10000 ? 2 : 1;\n }\n return fromCodePoint.apply(void 0, match);\n };\n}\nvar Parser = /** @class */ (function () {\n function Parser(message, options) {\n if (options === void 0) { options = {}; }\n this.message = message;\n this.position = { offset: 0, line: 1, column: 1 };\n this.ignoreTag = !!options.ignoreTag;\n this.locale = options.locale;\n this.requiresOtherClause = !!options.requiresOtherClause;\n this.shouldParseSkeletons = !!options.shouldParseSkeletons;\n }\n Parser.prototype.parse = function () {\n if (this.offset() !== 0) {\n throw Error('parser can only be used once');\n }\n return this.parseMessage(0, '', false);\n };\n Parser.prototype.parseMessage = function (nestingLevel, parentArgType, expectingCloseTag) {\n var elements = [];\n while (!this.isEOF()) {\n var char = this.char();\n if (char === 123 /* `{` */) {\n var result = this.parseArgument(nestingLevel, expectingCloseTag);\n if (result.err) {\n return result;\n }\n elements.push(result.val);\n }\n else if (char === 125 /* `}` */ && nestingLevel > 0) {\n break;\n }\n else if (char === 35 /* `#` */ &&\n (parentArgType === 'plural' || parentArgType === 'selectordinal')) {\n var position = this.clonePosition();\n this.bump();\n elements.push({\n type: types_1.TYPE.pound,\n location: createLocation(position, this.clonePosition()),\n });\n }\n else if (char === 60 /* `<` */ &&\n !this.ignoreTag &&\n this.peek() === 47 // char code for '/'\n ) {\n if (expectingCloseTag) {\n break;\n }\n else {\n return this.error(error_1.ErrorKind.UNMATCHED_CLOSING_TAG, createLocation(this.clonePosition(), this.clonePosition()));\n }\n }\n else if (char === 60 /* `<` */ &&\n !this.ignoreTag &&\n _isAlpha(this.peek() || 0)) {\n var result = this.parseTag(nestingLevel, parentArgType);\n if (result.err) {\n return result;\n }\n elements.push(result.val);\n }\n else {\n var result = this.parseLiteral(nestingLevel, parentArgType);\n if (result.err) {\n return result;\n }\n elements.push(result.val);\n }\n }\n return { val: elements, err: null };\n };\n /**\n * A tag name must start with an ASCII lower/upper case letter. The grammar is based on the\n * [custom element name][] except that a dash is NOT always mandatory and uppercase letters\n * are accepted:\n *\n * ```\n * tag ::= \"<\" tagName (whitespace)* \"/>\" | \"<\" tagName (whitespace)* \">\" message \"</\" tagName (whitespace)* \">\"\n * tagName ::= [a-z] (PENChar)*\n * PENChar ::=\n * \"-\" | \".\" | [0-9] | \"_\" | [a-z] | [A-Z] | #xB7 | [#xC0-#xD6] | [#xD8-#xF6] | [#xF8-#x37D] |\n * [#x37F-#x1FFF] | [#x200C-#x200D] | [#x203F-#x2040] | [#x2070-#x218F] | [#x2C00-#x2FEF] |\n * [#x3001-#xD7FF] | [#xF900-#xFDCF] | [#xFDF0-#xFFFD] | [#x10000-#xEFFFF]\n * ```\n *\n * [custom element name]: https://html.spec.whatwg.org/multipage/custom-elements.html#valid-custom-element-name\n * NOTE: We're a bit more lax here since HTML technically does not allow uppercase HTML element but we do\n * since other tag-based engines like React allow it\n */\n Parser.prototype.parseTag = function (nestingLevel, parentArgType) {\n var startPosition = this.clonePosition();\n this.bump(); // `<`\n var tagName = this.parseTagName();\n this.bumpSpace();\n if (this.bumpIf('/>')) {\n // Self closing tag\n return {\n val: {\n type: types_1.TYPE.literal,\n value: \"<\".concat(tagName, \"/>\"),\n location: createLocation(startPosition, this.clonePosition()),\n },\n err: null,\n };\n }\n else if (this.bumpIf('>')) {\n var childrenResult = this.parseMessage(nestingLevel + 1, parentArgType, true);\n if (childrenResult.err) {\n return childrenResult;\n }\n var children = childrenResult.val;\n // Expecting a close tag\n var endTagStartPosition = this.clonePosition();\n if (this.bumpIf('</')) {\n if (this.isEOF() || !_isAlpha(this.char())) {\n return this.error(error_1.ErrorKind.INVALID_TAG, createLocation(endTagStartPosition, this.clonePosition()));\n }\n var closingTagNameStartPosition = this.clonePosition();\n var closingTagName = this.parseTagName();\n if (tagName !== closingTagName) {\n return this.error(error_1.ErrorKind.UNMATCHED_CLOSING_TAG, createLocation(closingTagNameStartPosition, this.clonePosition()));\n }\n this.bumpSpace();\n if (!this.bumpIf('>')) {\n return this.error(error_1.ErrorKind.INVALID_TAG, createLocation(endTagStartPosition, this.clonePosition()));\n }\n return {\n val: {\n type: types_1.TYPE.tag,\n value: tagName,\n children: children,\n location: createLocation(startPosition, this.clonePosition()),\n },\n err: null,\n };\n }\n else {\n return this.error(error_1.ErrorKind.UNCLOSED_TAG, createLocation(startPosition, this.clonePosition()));\n }\n }\n else {\n return this.error(error_1.ErrorKind.INVALID_TAG, createLocation(startPosition, this.clonePosition()));\n }\n };\n /**\n * This method assumes that the caller has peeked ahead for the first tag character.\n */\n Parser.prototype.parseTagName = function () {\n var startOffset = this.offset();\n this.bump(); // the first tag name character\n while (!this.isEOF() && _isPotentialElementNameChar(this.char())) {\n this.bump();\n }\n return this.message.slice(startOffset, this.offset());\n };\n Parser.prototype.parseLiteral = function (nestingLevel, parentArgType) {\n var start = this.clonePosition();\n var value = '';\n while (true) {\n var parseQuoteResult = this.tryParseQuote(parentArgType);\n if (parseQuoteResult) {\n value += parseQuoteResult;\n continue;\n }\n var parseUnquotedResult = this.tryParseUnquoted(nestingLevel, parentArgType);\n if (parseUnquotedResult) {\n value += parseUnquotedResult;\n continue;\n }\n var parseLeftAngleResult = this.tryParseLeftAngleBracket();\n if (parseLeftAngleResult) {\n value += parseLeftAngleResult;\n continue;\n }\n break;\n }\n var location = createLocation(start, this.clonePosition());\n return {\n val: { type: types_1.TYPE.literal, value: value, location: location },\n err: null,\n };\n };\n Parser.prototype.tryParseLeftAngleBracket = function () {\n if (!this.isEOF() &&\n this.char() === 60 /* `<` */ &&\n (this.ignoreTag ||\n // If at the opening tag or closing tag position, bail.\n !_isAlphaOrSlash(this.peek() || 0))) {\n this.bump(); // `<`\n return '<';\n }\n return null;\n };\n /**\n * Starting with ICU 4.8, an ASCII apostrophe only starts quoted text if it immediately precedes\n * a character that requires quoting (that is, \"only where needed\"), and works the same in\n * nested messages as on the top level of the pattern. The new behavior is otherwise compatible.\n */\n Parser.prototype.tryParseQuote = function (parentArgType) {\n if (this.isEOF() || this.char() !== 39 /* `'` */) {\n return null;\n }\n // Parse escaped char following the apostrophe, or early return if there is no escaped char.\n // Check if is valid escaped character\n switch (this.peek()) {\n case 39 /* `'` */:\n // double quote, should return as a single quote.\n this.bump();\n this.bump();\n return \"'\";\n // '{', '<', '>', '}'\n case 123:\n case 60:\n case 62:\n case 125:\n break;\n case 35: // '#'\n if (parentArgType === 'plural' || parentArgType === 'selectordinal') {\n break;\n }\n return null;\n default:\n return null;\n }\n this.bump(); // apostrophe\n var codePoints = [this.char()]; // escaped char\n this.bump();\n // read chars until the optional closing apostrophe is found\n while (!this.isEOF()) {\n var ch = this.char();\n if (ch === 39 /* `'` */) {\n if (this.peek() === 39 /* `'` */) {\n codePoints.push(39);\n // Bump one more time because we need to skip 2 characters.\n this.bump();\n }\n else {\n // Optional closing apostrophe.\n this.bump();\n break;\n }\n }\n else {\n codePoints.push(ch);\n }\n this.bump();\n }\n return fromCodePoint.apply(void 0, codePoints);\n };\n Parser.prototype.tryParseUnquoted = function (nestingLevel, parentArgType) {\n if (this.isEOF()) {\n return null;\n }\n var ch = this.char();\n if (ch === 60 /* `<` */ ||\n ch === 123 /* `{` */ ||\n (ch === 35 /* `#` */ &&\n (parentArgType === 'plural' || parentArgType === 'selectordinal')) ||\n (ch === 125 /* `}` */ && nestingLevel > 0)) {\n return null;\n }\n else {\n this.bump();\n return fromCodePoint(ch);\n }\n };\n Parser.prototype.parseArgument = function (nestingLevel, expectingCloseTag) {\n var openingBracePosition = this.clonePosition();\n this.bump(); // `{`\n this.bumpSpace();\n if (this.isEOF()) {\n return this.error(error_1.ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, createLocation(openingBracePosition, this.clonePosition()));\n }\n if (this.char() === 125 /* `}` */) {\n this.bump();\n return this.error(error_1.ErrorKind.EMPTY_ARGUMENT, createLocation(openingBracePosition, this.clonePosition()));\n }\n // argument name\n var value = this.parseIdentifierIfPossible().value;\n if (!value) {\n return this.error(error_1.ErrorKind.MALFORMED_ARGUMENT, createLocation(openingBracePosition, this.clonePosition()));\n }\n this.bumpSpace();\n if (this.isEOF()) {\n return this.error(error_1.ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, createLocation(openingBracePosition, this.clonePosition()));\n }\n switch (this.char()) {\n // Simple argument: `{name}`\n case 125 /* `}` */: {\n this.bump(); // `}`\n return {\n val: {\n type: types_1.TYPE.argument,\n // value does not include the opening and closing braces.\n value: value,\n location: createLocation(openingBracePosition, this.clonePosition()),\n },\n err: null,\n };\n }\n // Argument with options: `{name, format, ...}`\n case 44 /* `,` */: {\n this.bump(); // `,`\n this.bumpSpace();\n if (this.isEOF()) {\n return this.error(error_1.ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, createLocation(openingBracePosition, this.clonePosition()));\n }\n return this.parseArgumentOptions(nestingLevel, expectingCloseTag, value, openingBracePosition);\n }\n default:\n return this.error(error_1.ErrorKind.MALFORMED_ARGUMENT, createLocation(openingBracePosition, this.clonePosition()));\n }\n };\n /**\n * Advance the parser until the end of the identifier, if it is currently on\n * an identifier character. Return an empty string otherwise.\n */\n Parser.prototype.parseIdentifierIfPossible = function () {\n var startingPosition = this.clonePosition();\n var startOffset = this.offset();\n var value = matchIdentifierAtIndex(this.message, startOffset);\n var endOffset = startOffset + value.length;\n this.bumpTo(endOffset);\n var endPosition = this.clonePosition();\n var location = createLocation(startingPosition, endPosition);\n return { value: value, location: location };\n };\n Parser.prototype.parseArgumentOptions = function (nestingLevel, expectingCloseTag, value, openingBracePosition) {\n var _a;\n // Parse this range:\n // {name, type, style}\n // ^---^\n var typeStartPosition = this.clonePosition();\n var argType = this.parseIdentifierIfPossible().value;\n var typeEndPosition = this.clonePosition();\n switch (argType) {\n case '':\n // Expecting a style string number, date, time, plural, selectordinal, or select.\n return this.error(error_1.ErrorKind.EXPECT_ARGUMENT_TYPE, createLocation(typeStartPosition, typeEndPosition));\n case 'number':\n case 'date':\n case 'time': {\n // Parse this range:\n // {name, number, style}\n // ^-------^\n this.bumpSpace();\n var styleAndLocation = null;\n if (this.bumpIf(',')) {\n this.bumpSpace();\n var styleStartPosition = this.clonePosition();\n var result = this.parseSimpleArgStyleIfPossible();\n if (result.err) {\n return result;\n }\n var style = trimEnd(result.val);\n if (style.length === 0) {\n return this.error(error_1.ErrorKind.EXPECT_ARGUMENT_STYLE, createLocation(this.clonePosition(), this.clonePosition()));\n }\n var styleLocation = createLocation(styleStartPosition, this.clonePosition());\n styleAndLocation = { style: style, styleLocation: styleLocation };\n }\n var argCloseResult = this.tryParseArgumentClose(openingBracePosition);\n if (argCloseResult.err) {\n return argCloseResult;\n }\n var location_1 = createLocation(openingBracePosition, this.clonePosition());\n // Extract style or skeleton\n if (styleAndLocation && startsWith(styleAndLocation === null || styleAndLocation === void 0 ? void 0 : styleAndLocation.style, '::', 0)) {\n // Skeleton starts with `::`.\n var skeleton = trimStart(styleAndLocation.style.slice(2));\n if (argType === 'number') {\n var result = this.parseNumberSkeletonFromString(skeleton, styleAndLocation.styleLocation);\n if (result.err) {\n return result;\n }\n return {\n val: { type: types_1.TYPE.number, value: value, location: location_1, style: result.val },\n err: null,\n };\n }\n else {\n if (skeleton.length === 0) {\n return this.error(error_1.ErrorKind.EXPECT_DATE_TIME_SKELETON, location_1);\n }\n var dateTimePattern = skeleton;\n // Get \"best match\" pattern only if locale is passed, if not, let it\n // pass as-is where `parseDateTimeSkeleton()` will throw an error\n // for unsupported patterns.\n if (this.locale) {\n dateTimePattern = (0, date_time_pattern_generator_1.getBestPattern)(skeleton, this.locale);\n }\n var style = {\n type: types_1.SKELETON_TYPE.dateTime,\n pattern: dateTimePattern,\n location: styleAndLocation.styleLocation,\n parsedOptions: this.shouldParseSkeletons\n ? (0, icu_skeleton_parser_1.parseDateTimeSkeleton)(dateTimePattern)\n : {},\n };\n var type = argType === 'date' ? types_1.TYPE.date : types_1.TYPE.time;\n return {\n val: { type: type, value: value, location: location_1, style: style },\n err: null,\n };\n }\n }\n // Regular style or no style.\n return {\n val: {\n type: argType === 'number'\n ? types_1.TYPE.number\n : argType === 'date'\n ? types_1.TYPE.date\n : types_1.TYPE.time,\n value: value,\n location: location_1,\n style: (_a = styleAndLocation === null || styleAndLocation === void 0 ? void 0 : styleAndLocation.style) !== null && _a !== void 0 ? _a : null,\n },\n err: null,\n };\n }\n case 'plural':\n case 'selectordinal':\n case 'select': {\n // Parse this range:\n // {name, plural, options}\n // ^---------^\n var typeEndPosition_1 = this.clonePosition();\n this.bumpSpace();\n if (!this.bumpIf(',')) {\n return this.error(error_1.ErrorKind.EXPECT_SELECT_ARGUMENT_OPTIONS, createLocation(typeEndPosition_1, tslib_1.__assign({}, typeEndPosition_1)));\n }\n this.bumpSpace();\n // Parse offset:\n // {name, plural, offset:1, options}\n // ^-----^\n //\n // or the first option:\n //\n // {name, plural, one {...} other {...}}\n // ^--^\n var identifierAndLocation = this.parseIdentifierIfPossible();\n var pluralOffset = 0;\n if (argType !== 'select' && identifierAndLocation.value === 'offset') {\n if (!this.bumpIf(':')) {\n return this.error(error_1.ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, createLocation(this.clonePosition(), this.clonePosition()));\n }\n this.bumpSpace();\n var result = this.tryParseDecimalInteger(error_1.ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, error_1.ErrorKind.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);\n if (result.err) {\n return result;\n }\n // Parse another identifier for option parsing\n this.bumpSpace();\n identifierAndLocation = this.parseIdentifierIfPossible();\n pluralOffset = result.val;\n }\n var optionsResult = this.tryParsePluralOrSelectOptions(nestingLevel, argType, expectingCloseTag, identifierAndLocation);\n if (optionsResult.err) {\n return optionsResult;\n }\n var argCloseResult = this.tryParseArgumentClose(openingBracePosition);\n if (argCloseResult.err) {\n return argCloseResult;\n }\n var location_2 = createLocation(openingBracePosition, this.clonePosition());\n if (argType === 'select') {\n return {\n val: {\n type: types_1.TYPE.select,\n value: value,\n options: fromEntries(optionsResult.val),\n location: location_2,\n },\n err: null,\n };\n }\n else {\n return {\n val: {\n type: types_1.TYPE.plural,\n value: value,\n options: fromEntries(optionsResult.val),\n offset: pluralOffset,\n pluralType: argType === 'plural' ? 'cardinal' : 'ordinal',\n location: location_2,\n },\n err: null,\n };\n }\n }\n default:\n return this.error(error_1.ErrorKind.INVALID_ARGUMENT_TYPE, createLocation(typeStartPosition, typeEndPosition));\n }\n };\n Parser.prototype.tryParseArgumentClose = function (openingBracePosition) {\n // Parse: {value, number, ::currency/GBP }\n //\n if (this.isEOF() || this.char() !== 125 /* `}` */) {\n return this.error(error_1.ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, createLocation(openingBracePosition, this.clonePosition()));\n }\n this.bump(); // `}`\n return { val: true, err: null };\n };\n /**\n * See: https://github.com/unicode-org/icu/blob/af7ed1f6d2298013dc303628438ec4abe1f16479/icu4c/source/common/messagepattern.cpp#L659\n */\n Parser.prototype.parseSimpleArgStyleIfPossible = function () {\n var nestedBraces = 0;\n var startPosition = this.clonePosition();\n while (!this.isEOF()) {\n var ch = this.char();\n switch (ch) {\n case 39 /* `'` */: {\n // Treat apostrophe as quoting but include it in the style part.\n // Find the end of the quoted literal text.\n this.bump();\n var apostrophePosition = this.clonePosition();\n if (!this.bumpUntil(\"'\")) {\n return this.error(error_1.ErrorKind.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, createLocation(apostrophePosition, this.clonePosition()));\n }\n this.bump();\n break;\n }\n case 123 /* `{` */: {\n nestedBraces += 1;\n this.bump();\n break;\n }\n case 125 /* `}` */: {\n if (nestedBraces > 0) {\n nestedBraces -= 1;\n }\n else {\n return {\n val: this.message.slice(startPosition.offset, this.offset()),\n err: null,\n };\n }\n break;\n }\n default:\n this.bump();\n break;\n }\n }\n return {\n val: this.message.slice(startPosition.offset, this.offset()),\n err: null,\n };\n };\n Parser.prototype.parseNumberSkeletonFromString = function (skeleton, location) {\n var tokens = [];\n try {\n tokens = (0, icu_skeleton_parser_1.parseNumberSkeletonFromString)(skeleton);\n }\n catch (e) {\n return this.error(error_1.ErrorKind.INVALID_NUMBER_SKELETON, location);\n }\n return {\n val: {\n type: types_1.SKELETON_TYPE.number,\n tokens: tokens,\n location: location,\n parsedOptions: this.shouldParseSkeletons\n ? (0, icu_skeleton_parser_1.parseNumberSkeleton)(tokens)\n : {},\n },\n err: null,\n };\n };\n /**\n * @param nesting_level The current nesting level of messages.\n * This can be positive when parsing message fragment in select or plural argument options.\n * @param parent_arg_type The parent argument's type.\n * @param parsed_first_identifier If provided, this is the first identifier-like selector of\n * the argument. It is a by-product of a previous parsing attempt.\n * @param expecting_close_tag If true, this message is directly or indirectly nested inside\n * between a pair of opening and closing tags. The nested message will not parse beyond\n * the closing tag boundary.\n */\n Parser.prototype.tryParsePluralOrSelectOptions = function (nestingLevel, parentArgType, expectCloseTag, parsedFirstIdentifier) {\n var _a;\n var hasOtherClause = false;\n var options = [];\n var parsedSelectors = new Set();\n var selector = parsedFirstIdentifier.value, selectorLocation = parsedFirstIdentifier.location;\n // Parse:\n // one {one apple}\n // ^--^\n while (true) {\n if (selector.length === 0) {\n var startPosition = this.clonePosition();\n if (parentArgType !== 'select' && this.bumpIf('=')) {\n // Try parse `={number}` selector\n var result = this.tryParseDecimalInteger(error_1.ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR, error_1.ErrorKind.INVALID_PLURAL_ARGUMENT_SELECTOR);\n if (result.err) {\n return result;\n }\n selectorLocation = createLocation(startPosition, this.clonePosition());\n selector = this.message.slice(startPosition.offset, this.offset());\n }\n else {\n break;\n }\n }\n // Duplicate selector clauses\n if (parsedSelectors.has(selector)) {\n return this.error(parentArgType === 'select'\n ? error_1.ErrorKind.DUPLICATE_SELECT_ARGUMENT_SELECTOR\n : error_1.ErrorKind.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, selectorLocation);\n }\n if (selector === 'other') {\n hasOtherClause = true;\n }\n // Parse:\n // one {one apple}\n // ^----------^\n this.bumpSpace();\n var openingBracePosition = this.clonePosition();\n if (!this.bumpIf('{')) {\n return this.error(parentArgType === 'select'\n ? error_1.ErrorKind.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT\n : error_1.ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, createLocation(this.clonePosition(), this.clonePosition()));\n }\n var fragmentResult = this.parseMessage(nestingLevel + 1, parentArgType, expectCloseTag);\n if (fragmentResult.err) {\n return fragmentResult;\n }\n var argCloseResult = this.tryParseArgumentClose(openingBracePosition);\n if (argCloseResult.err) {\n return argCloseResult;\n }\n options.push([\n selector,\n {\n value: fragmentResult.val,\n location: createLocation(openingBracePosition, this.clonePosition()),\n },\n ]);\n // Keep track of the existing selectors\n parsedSelectors.add(selector);\n // Prep next selector clause.\n this.bumpSpace();\n (_a = this.parseIdentifierIfPossible(), selector = _a.value, selectorLocation = _a.location);\n }\n if (options.length === 0) {\n return this.error(parentArgType === 'select'\n ? error_1.ErrorKind.EXPECT_SELECT_ARGUMENT_SELECTOR\n : error_1.ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR, createLocation(this.clonePosition(), this.clonePosition()));\n }\n if (this.requiresOtherClause && !hasOtherClause) {\n return this.error(error_1.ErrorKind.MISSING_OTHER_CLAUSE, createLocation(this.clonePosition(), this.clonePosition()));\n }\n return { val: options, err: null };\n };\n Parser.prototype.tryParseDecimalInteger = function (expectNumberError, invalidNumberError) {\n var sign = 1;\n var startingPosition = this.clonePosition();\n if (this.bumpIf('+')) {\n }\n else if (this.bumpIf('-')) {\n sign = -1;\n }\n var hasDigits = false;\n var decimal = 0;\n while (!this.isEOF()) {\n var ch = this.char();\n if (ch >= 48 /* `0` */ && ch <= 57 /* `9` */) {\n hasDigits = true;\n decimal = decimal * 10 + (ch - 48);\n this.bump();\n }\n else {\n break;\n }\n }\n var location = createLocation(startingPosition, this.clonePosition());\n if (!hasDigits) {\n return this.error(expectNumberError, location);\n }\n decimal *= sign;\n if (!isSafeInteger(decimal)) {\n return this.error(invalidNumberError, location);\n }\n return { val: decimal, err: null };\n };\n Parser.prototype.offset = function () {\n return this.position.offset;\n };\n Parser.prototype.isEOF = function () {\n return this.offset() === this.message.length;\n };\n Parser.prototype.clonePosition = function () {\n // This is much faster than `Object.assign` or spread.\n return {\n offset: this.position.offset,\n line: this.position.line,\n column: this.position.column,\n };\n };\n /**\n * Return the code point at the current position of the parser.\n * Throws if the index is out of bound.\n */\n Parser.prototype.char = function () {\n var offset = this.position.offset;\n if (offset >= this.message.length) {\n throw Error('out of bound');\n }\n var code = codePointAt(this.message, offset);\n if (code === undefined) {\n throw Error(\"Offset \".concat(offset, \" is at invalid UTF-16 code unit boundary\"));\n }\n return code;\n };\n Parser.prototype.error = function (kind, location) {\n return {\n val: null,\n err: {\n kind: kind,\n message: this.message,\n location: location,\n },\n };\n };\n /** Bump the parser to the next UTF-16 code unit. */\n Parser.prototype.bump = function () {\n if (this.isEOF()) {\n return;\n }\n var code = this.char();\n if (code === 10 /* '\\n' */) {\n this.position.line += 1;\n this.position.column = 1;\n this.position.offset += 1;\n }\n else {\n this.position.column += 1;\n // 0 ~ 0x10000 -> unicode BMP, otherwise skip the surrogate pair.\n this.position.offset += code < 0x10000 ? 1 : 2;\n }\n };\n /**\n * If the substring starting at the current position of the parser has\n * the given prefix, then bump the parser to the character immediately\n * following the prefix and return true. Otherwise, don't bump the parser\n * and return false.\n */\n Parser.prototype.bumpIf = function (prefix) {\n if (startsWith(this.message, prefix, this.offset())) {\n for (var i = 0; i < prefix.length; i++) {\n this.bump();\n }\n return true;\n }\n return false;\n };\n /**\n * Bump the parser until the pattern character is found and return `true`.\n * Otherwise bump to the end of the file and return `false`.\n */\n Parser.prototype.bumpUntil = function (pattern) {\n var currentOffset = this.offset();\n var index = this.message.indexOf(pattern, currentOffset);\n if (index >= 0) {\n this.bumpTo(index);\n return true;\n }\n else {\n this.bumpTo(this.message.length);\n return false;\n }\n };\n /**\n * Bump the parser to the target offset.\n * If target offset is beyond the end of the input, bump the parser to the end of the input.\n */\n Parser.prototype.bumpTo = function (targetOffset) {\n if (this.offset() > targetOffset) {\n throw Error(\"targetOffset \".concat(targetOffset, \" must be greater than or equal to the current offset \").concat(this.offset()));\n }\n targetOffset = Math.min(targetOffset, this.message.length);\n while (true) {\n var offset = this.offset();\n if (offset === targetOffset) {\n break;\n }\n if (offset > targetOffset) {\n throw Error(\"targetOffset \".concat(targetOffset, \" is at invalid UTF-16 code unit boundary\"));\n }\n this.bump();\n if (this.isEOF()) {\n break;\n }\n }\n };\n /** advance the parser through all whitespace to the next non-whitespace code unit. */\n Parser.prototype.bumpSpace = function () {\n while (!this.isEOF() && _isWhiteSpace(this.char())) {\n this.bump();\n }\n };\n /**\n * Peek at the *next* Unicode codepoint in the input without advancing the parser.\n * If the input has been exhausted, then this returns null.\n */\n Parser.prototype.peek = function () {\n if (this.isEOF()) {\n return null;\n }\n var code = this.char();\n var offset = this.offset();\n var nextCode = this.message.charCodeAt(offset + (code >= 0x10000 ? 2 : 1));\n return nextCode !== null && nextCode !== void 0 ? nextCode : null;\n };\n return Parser;\n}());\nexports.Parser = Parser;\n/**\n * This check if codepoint is alphabet (lower & uppercase)\n * @param codepoint\n * @returns\n */\nfunction _isAlpha(codepoint) {\n return ((codepoint >= 97 && codepoint <= 122) ||\n (codepoint >= 65 && codepoint <= 90));\n}\nfunction _isAlphaOrSlash(codepoint) {\n return _isAlpha(codepoint) || codepoint === 47; /* '/' */\n}\n/** See `parseTag` function docs. */\nfunction _isPotentialElementNameChar(c) {\n return (c === 45 /* '-' */ ||\n c === 46 /* '.' */ ||\n (c >= 48 && c <= 57) /* 0..9 */ ||\n c === 95 /* '_' */ ||\n (c >= 97 && c <= 122) /** a..z */ ||\n (c >= 65 && c <= 90) /* A..Z */ ||\n c == 0xb7 ||\n (c >= 0xc0 && c <= 0xd6) ||\n (c >= 0xd8 && c <= 0xf6) ||\n (c >= 0xf8 && c <= 0x37d) ||\n (c >= 0x37f && c <= 0x1fff) ||\n (c >= 0x200c && c <= 0x200d) ||\n (c >= 0x203f && c <= 0x2040) ||\n (c >= 0x2070 && c <= 0x218f) ||\n (c >= 0x2c00 && c <= 0x2fef) ||\n (c >= 0x3001 && c <= 0xd7ff) ||\n (c >= 0xf900 && c <= 0xfdcf) ||\n (c >= 0xfdf0 && c <= 0xfffd) ||\n (c >= 0x10000 && c <= 0xeffff));\n}\n/**\n * Code point equivalent of regex `\\p{White_Space}`.\n * From: https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt\n */\nfunction _isWhiteSpace(c) {\n return ((c >= 0x0009 && c <= 0x000d) ||\n c === 0x0020 ||\n c === 0x0085 ||\n (c >= 0x200e && c <= 0x200f) ||\n c === 0x2028 ||\n c === 0x2029);\n}\n/**\n * Code point equivalent of regex `\\p{Pattern_Syntax}`.\n * See https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt\n */\nfunction _isPatternSyntax(c) {\n return ((c >= 0x0021 && c <= 0x0023) ||\n c === 0x0024 ||\n (c >= 0x0025 && c <= 0x0027) ||\n c === 0x0028 ||\n c === 0x0029 ||\n c === 0x002a ||\n c === 0x002b ||\n c === 0x002c ||\n c === 0x002d ||\n (c >= 0x002e && c <= 0x002f) ||\n (c >= 0x003a && c <= 0x003b) ||\n (c >= 0x003c && c <= 0x003e) ||\n (c >= 0x003f && c <= 0x0040) ||\n c === 0x005b ||\n c === 0x005c ||\n c === 0x005d ||\n c === 0x005e ||\n c === 0x0060 ||\n c === 0x007b ||\n c === 0x007c ||\n c === 0x007d ||\n c === 0x007e ||\n c === 0x00a1 ||\n (c >= 0x00a2 && c <= 0x00a5) ||\n c === 0x00a6 ||\n c === 0x00a7 ||\n c === 0x00a9 ||\n c === 0x00ab ||\n c === 0x00ac ||\n c === 0x00ae ||\n c === 0x00b0 ||\n c === 0x00b1 ||\n c === 0x00b6 ||\n c === 0x00bb ||\n c === 0x00bf ||\n c === 0x00d7 ||\n c === 0x00f7 ||\n (c >= 0x2010 && c <= 0x2015) ||\n (c >= 0x2016 && c <= 0x2017) ||\n c === 0x2018 ||\n c === 0x2019 ||\n c === 0x201a ||\n (c >= 0x201b && c <= 0x201c) ||\n c === 0x201d ||\n c === 0x201e ||\n c === 0x201f ||\n (c >= 0x2020 && c <= 0x2027) ||\n (c >= 0x2030 && c <= 0x2038) ||\n c === 0x2039 ||\n c === 0x203a ||\n (c >= 0x203b && c <= 0x203e) ||\n (c >= 0x2041 && c <= 0x2043) ||\n c === 0x2044 ||\n c === 0x2045 ||\n c === 0x2046 ||\n (c >= 0x2047 && c <= 0x2051) ||\n c === 0x2052 ||\n c === 0x2053 ||\n (c >= 0x2055 && c <= 0x205e) ||\n (c >= 0x2190 && c <= 0x2194) ||\n (c >= 0x2195 && c <= 0x2199) ||\n (c >= 0x219a && c <= 0x219b) ||\n (c >= 0x219c && c <= 0x219f) ||\n c === 0x21a0 ||\n (c >= 0x21a1 && c <= 0x21a2) ||\n c === 0x21a3 ||\n (c >= 0x21a4 && c <= 0x21a5) ||\n c === 0x21a6 ||\n (c >= 0x21a7 && c <= 0x21ad) ||\n c === 0x21ae ||\n (c >= 0x21af && c <= 0x21cd) ||\n (c >= 0x21ce && c <= 0x21cf) ||\n (c >= 0x21d0 && c <= 0x21d1) ||\n c === 0x21d2 ||\n c === 0x21d3 ||\n c === 0x21d4 ||\n (c >= 0x21d5 && c <= 0x21f3) ||\n (c >= 0x21f4 && c <= 0x22ff) ||\n (c >= 0x2300 && c <= 0x2307) ||\n c === 0x2308 ||\n c === 0x2309 ||\n c === 0x230a ||\n c === 0x230b ||\n (c >= 0x230c && c <= 0x231f) ||\n (c >= 0x2320 && c <= 0x2321) ||\n (c >= 0x2322 && c <= 0x2328) ||\n c === 0x2329 ||\n c === 0x232a ||\n (c >= 0x232b && c <= 0x237b) ||\n c === 0x237c ||\n (c >= 0x237d && c <= 0x239a) ||\n (c >= 0x239b && c <= 0x23b3) ||\n (c >= 0x23b4 && c <= 0x23db) ||\n (c >= 0x23dc && c <= 0x23e1) ||\n (c >= 0x23e2 && c <= 0x2426) ||\n (c >= 0x2427 && c <= 0x243f) ||\n (c >= 0x2440 && c <= 0x244a) ||\n (c >= 0x244b && c <= 0x245f) ||\n (c >= 0x2500 && c <= 0x25b6) ||\n c === 0x25b7 ||\n (c >= 0x25b8 && c <= 0x25c0) ||\n c === 0x25c1 ||\n (c >= 0x25c2 && c <= 0x25f7) ||\n (c >= 0x25f8 && c <= 0x25ff) ||\n (c >= 0x2600 && c <= 0x266e) ||\n c === 0x266f ||\n (c >= 0x2670 && c <= 0x2767) ||\n c === 0x2768 ||\n c === 0x2769 ||\n c === 0x276a ||\n c === 0x276b ||\n c === 0x276c ||\n c === 0x276d ||\n c === 0x276e ||\n c === 0x276f ||\n c === 0x2770 ||\n c === 0x2771 ||\n c === 0x2772 ||\n c === 0x2773 ||\n c === 0x2774 ||\n c === 0x2775 ||\n (c >= 0x2794 && c <= 0x27bf) ||\n (c >= 0x27c0 && c <= 0x27c4) ||\n c === 0x27c5 ||\n c === 0x27c6 ||\n (c >= 0x27c7 && c <= 0x27e5) ||\n c === 0x27e6 ||\n c === 0x27e7 ||\n c === 0x27e8 ||\n c === 0x27e9 ||\n c === 0x27ea ||\n c === 0x27eb ||\n c === 0x27ec ||\n c === 0x27ed ||\n c === 0x27ee ||\n c === 0x27ef ||\n (c >= 0x27f0 && c <= 0x27ff) ||\n (c >= 0x2800 && c <= 0x28ff) ||\n (c >= 0x2900 && c <= 0x2982) ||\n c === 0x2983 ||\n c === 0x2984 ||\n c === 0x2985 ||\n c === 0x2986 ||\n c === 0x2987 ||\n c === 0x2988 ||\n c === 0x2989 ||\n c === 0x298a ||\n c === 0x298b ||\n c === 0x298c ||\n c === 0x298d ||\n c === 0x298e ||\n c === 0x298f ||\n c === 0x2990 ||\n c === 0x2991 ||\n c === 0x2992 ||\n c === 0x2993 ||\n c === 0x2994 ||\n c === 0x2995 ||\n c === 0x2996 ||\n c === 0x2997 ||\n c === 0x2998 ||\n (c >= 0x2999 && c <= 0x29d7) ||\n c === 0x29d8 ||\n c === 0x29d9 ||\n c === 0x29da ||\n c === 0x29db ||\n (c >= 0x29dc && c <= 0x29fb) ||\n c === 0x29fc ||\n c === 0x29fd ||\n (c >= 0x29fe && c <= 0x2aff) ||\n (c >= 0x2b00 && c <= 0x2b2f) ||\n (c >= 0x2b30 && c <= 0x2b44) ||\n (c >= 0x2b45 && c <= 0x2b46) ||\n (c >= 0x2b47 && c <= 0x2b4c) ||\n (c >= 0x2b4d && c <= 0x2b73) ||\n (c >= 0x2b74 && c <= 0x2b75) ||\n (c >= 0x2b76 && c <= 0x2b95) ||\n c === 0x2b96 ||\n (c >= 0x2b97 && c <= 0x2bff) ||\n (c >= 0x2e00 && c <= 0x2e01) ||\n c === 0x2e02 ||\n c === 0x2e03 ||\n c === 0x2e04 ||\n c === 0x2e05 ||\n (c >= 0x2e06 && c <= 0x2e08) ||\n c === 0x2e09 ||\n c === 0x2e0a ||\n c === 0x2e0b ||\n c === 0x2e0c ||\n c === 0x2e0d ||\n (c >= 0x2e0e && c <= 0x2e16) ||\n c === 0x2e17 ||\n (c >= 0x2e18 && c <= 0x2e19) ||\n c === 0x2e1a ||\n c === 0x2e1b ||\n c === 0x2e1c ||\n c === 0x2e1d ||\n (c >= 0x2e1e && c <= 0x2e1f) ||\n c === 0x2e20 ||\n c === 0x2e21 ||\n c === 0x2e22 ||\n c === 0x2e23 ||\n c === 0x2e24 ||\n c === 0x2e25 ||\n c === 0x2e26 ||\n c === 0x2e27 ||\n c === 0x2e28 ||\n c === 0x2e29 ||\n (c >= 0x2e2a && c <= 0x2e2e) ||\n c === 0x2e2f ||\n (c >= 0x2e30 && c <= 0x2e39) ||\n (c >= 0x2e3a && c <= 0x2e3b) ||\n (c >= 0x2e3c && c <= 0x2e3f) ||\n c === 0x2e40 ||\n c === 0x2e41 ||\n c === 0x2e42 ||\n (c >= 0x2e43 && c <= 0x2e4f) ||\n (c >= 0x2e50 && c <= 0x2e51) ||\n c === 0x2e52 ||\n (c >= 0x2e53 && c <= 0x2e7f) ||\n (c >= 0x3001 && c <= 0x3003) ||\n c === 0x3008 ||\n c === 0x3009 ||\n c === 0x300a ||\n c === 0x300b ||\n c === 0x300c ||\n c === 0x300d ||\n c === 0x300e ||\n c === 0x300f ||\n c === 0x3010 ||\n c === 0x3011 ||\n (c >= 0x3012 && c <= 0x3013) ||\n c === 0x3014 ||\n c === 0x3015 ||\n c === 0x3016 ||\n c === 0x3017 ||\n c === 0x3018 ||\n c === 0x3019 ||\n c === 0x301a ||\n c === 0x301b ||\n c === 0x301c ||\n c === 0x301d ||\n (c >= 0x301e && c <= 0x301f) ||\n c === 0x3020 ||\n c === 0x3030 ||\n c === 0xfd3e ||\n c === 0xfd3f ||\n (c >= 0xfe45 && c <= 0xfe46));\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.hoistSelectors = hoistSelectors;\nexports.isStructurallySame = isStructurallySame;\nvar tslib_1 = require(\"tslib\");\nvar types_1 = require(\"./types\");\nfunction cloneDeep(obj) {\n if (Array.isArray(obj)) {\n // @ts-expect-error meh\n return tslib_1.__spreadArray([], obj.map(cloneDeep), true);\n }\n if (obj !== null && typeof obj === 'object') {\n // @ts-expect-error meh\n return Object.keys(obj).reduce(function (cloned, k) {\n // @ts-expect-error meh\n cloned[k] = cloneDeep(obj[k]);\n return cloned;\n }, {});\n }\n return obj;\n}\nfunction hoistPluralOrSelectElement(ast, el, positionToInject) {\n // pull this out of the ast and move it to the top\n var cloned = cloneDeep(el);\n var options = cloned.options;\n cloned.options = Object.keys(options).reduce(function (all, k) {\n var newValue = hoistSelectors(tslib_1.__spreadArray(tslib_1.__spreadArray(tslib_1.__spreadArray([], ast.slice(0, positionToInject), true), options[k].value, true), ast.slice(positionToInject + 1), true));\n all[k] = {\n value: newValue,\n };\n return all;\n }, {});\n return cloned;\n}\nfunction isPluralOrSelectElement(el) {\n return (0, types_1.isPluralElement)(el) || (0, types_1.isSelectElement)(el);\n}\nfunction findPluralOrSelectElement(ast) {\n return !!ast.find(function (el) {\n if (isPluralOrSelectElement(el)) {\n return true;\n }\n if ((0, types_1.isTagElement)(el)) {\n return findPluralOrSelectElement(el.children);\n }\n return false;\n });\n}\n/**\n * Hoist all selectors to the beginning of the AST & flatten the\n * resulting options. E.g:\n * \"I have {count, plural, one{a dog} other{many dogs}}\"\n * becomes \"{count, plural, one{I have a dog} other{I have many dogs}}\".\n * If there are multiple selectors, the order of which one is hoisted 1st\n * is non-deterministic.\n * The goal is to provide as many full sentences as possible since fragmented\n * sentences are not translator-friendly\n * @param ast AST\n */\nfunction hoistSelectors(ast) {\n for (var i = 0; i < ast.length; i++) {\n var el = ast[i];\n if (isPluralOrSelectElement(el)) {\n return [hoistPluralOrSelectElement(ast, el, i)];\n }\n if ((0, types_1.isTagElement)(el) && findPluralOrSelectElement([el])) {\n throw new Error('Cannot hoist plural/select within a tag element. Please put the tag element inside each plural/select option');\n }\n }\n return ast;\n}\n/**\n * Collect all variables in an AST to Record<string, TYPE>\n * @param ast AST to collect variables from\n * @param vars Record of variable name to variable type\n */\nfunction collectVariables(ast, vars) {\n if (vars === void 0) { vars = new Map(); }\n ast.forEach(function (el) {\n if ((0, types_1.isArgumentElement)(el) ||\n (0, types_1.isDateElement)(el) ||\n (0, types_1.isTimeElement)(el) ||\n (0, types_1.isNumberElement)(el)) {\n if (el.value in vars && vars.get(el.value) !== el.type) {\n throw new Error(\"Variable \".concat(el.value, \" has conflicting types\"));\n }\n vars.set(el.value, el.type);\n }\n if ((0, types_1.isPluralElement)(el) || (0, types_1.isSelectElement)(el)) {\n vars.set(el.value, el.type);\n Object.keys(el.options).forEach(function (k) {\n collectVariables(el.options[k].value, vars);\n });\n }\n if ((0, types_1.isTagElement)(el)) {\n vars.set(el.value, el.type);\n collectVariables(el.children, vars);\n }\n });\n}\n/**\n * Check if 2 ASTs are structurally the same. This primarily means that\n * they have the same variables with the same type\n * @param a\n * @param b\n * @returns\n */\nfunction isStructurallySame(a, b) {\n var aVars = new Map();\n var bVars = new Map();\n collectVariables(a, aVars);\n collectVariables(b, bVars);\n if (aVars.size !== bVars.size) {\n return {\n success: false,\n error: new Error(\"Different number of variables: [\".concat(Array.from(aVars.keys()).join(', '), \"] vs [\").concat(Array.from(bVars.keys()).join(', '), \"]\")),\n };\n }\n return Array.from(aVars.entries()).reduce(function (result, _a) {\n var key = _a[0], type = _a[1];\n if (!result.success) {\n return result;\n }\n var bType = bVars.get(key);\n if (bType == null) {\n return {\n success: false,\n error: new Error(\"Missing variable \".concat(key, \" in message\")),\n };\n }\n if (bType !== type) {\n return {\n success: false,\n error: new Error(\"Variable \".concat(key, \" has conflicting types: \").concat(types_1.TYPE[type], \" vs \").concat(types_1.TYPE[bType])),\n };\n }\n return result;\n }, { success: true });\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isStructurallySame = exports._Parser = void 0;\nexports.parse = parse;\nvar tslib_1 = require(\"tslib\");\nvar error_1 = require(\"./error\");\nvar parser_1 = require(\"./parser\");\nvar types_1 = require(\"./types\");\nfunction pruneLocation(els) {\n els.forEach(function (el) {\n delete el.location;\n if ((0, types_1.isSelectElement)(el) || (0, types_1.isPluralElement)(el)) {\n for (var k in el.options) {\n delete el.options[k].location;\n pruneLocation(el.options[k].value);\n }\n }\n else if ((0, types_1.isNumberElement)(el) && (0, types_1.isNumberSkeleton)(el.style)) {\n delete el.style.location;\n }\n else if (((0, types_1.isDateElement)(el) || (0, types_1.isTimeElement)(el)) &&\n (0, types_1.isDateTimeSkeleton)(el.style)) {\n delete el.style.location;\n }\n else if ((0, types_1.isTagElement)(el)) {\n pruneLocation(el.children);\n }\n });\n}\nfunction parse(message, opts) {\n if (opts === void 0) { opts = {}; }\n opts = tslib_1.__assign({ shouldParseSkeletons: true, requiresOtherClause: true }, opts);\n var result = new parser_1.Parser(message, opts).parse();\n if (result.err) {\n var error = SyntaxError(error_1.ErrorKind[result.err.kind]);\n // @ts-expect-error Assign to error object\n error.location = result.err.location;\n // @ts-expect-error Assign to error object\n error.originalMessage = result.err.message;\n throw error;\n }\n if (!(opts === null || opts === void 0 ? void 0 : opts.captureLocation)) {\n pruneLocation(result.val);\n }\n return result.val;\n}\ntslib_1.__exportStar(require(\"./types\"), exports);\n// only for testing\nexports._Parser = parser_1.Parser;\nvar manipulator_1 = require(\"./manipulator\");\nObject.defineProperty(exports, \"isStructurallySame\", { enumerable: true, get: function () { return manipulator_1.isStructurallySame; } });\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.printAST = printAST;\nexports.doPrintAST = doPrintAST;\nexports.printDateTimeSkeleton = printDateTimeSkeleton;\nvar tslib_1 = require(\"tslib\");\nvar types_1 = require(\"./types\");\nfunction printAST(ast) {\n return doPrintAST(ast, false);\n}\nfunction doPrintAST(ast, isInPlural) {\n var printedNodes = ast.map(function (el, i) {\n if ((0, types_1.isLiteralElement)(el)) {\n return printLiteralElement(el, isInPlural, i === 0, i === ast.length - 1);\n }\n if ((0, types_1.isArgumentElement)(el)) {\n return printArgumentElement(el);\n }\n if ((0, types_1.isDateElement)(el) || (0, types_1.isTimeElement)(el) || (0, types_1.isNumberElement)(el)) {\n return printSimpleFormatElement(el);\n }\n if ((0, types_1.isPluralElement)(el)) {\n return printPluralElement(el);\n }\n if ((0, types_1.isSelectElement)(el)) {\n return printSelectElement(el);\n }\n if ((0, types_1.isPoundElement)(el)) {\n return '#';\n }\n if ((0, types_1.isTagElement)(el)) {\n return printTagElement(el);\n }\n });\n return printedNodes.join('');\n}\nfunction printTagElement(el) {\n return \"<\".concat(el.value, \">\").concat(printAST(el.children), \"</\").concat(el.value, \">\");\n}\nfunction printEscapedMessage(message) {\n return message.replace(/([{}](?:[\\s\\S]*[{}])?)/, \"'$1'\");\n}\nfunction printLiteralElement(_a, isInPlural, isFirstEl, isLastEl) {\n var value = _a.value;\n var escaped = value;\n // If this literal starts with a ' and its not the 1st node, this means the node before it is non-literal\n // and the `'` needs to be unescaped\n if (!isFirstEl && escaped[0] === \"'\") {\n escaped = \"''\".concat(escaped.slice(1));\n }\n // Same logic but for last el\n if (!isLastEl && escaped[escaped.length - 1] === \"'\") {\n escaped = \"\".concat(escaped.slice(0, escaped.length - 1), \"''\");\n }\n escaped = printEscapedMessage(escaped);\n return isInPlural ? escaped.replace('#', \"'#'\") : escaped;\n}\nfunction printArgumentElement(_a) {\n var value = _a.value;\n return \"{\".concat(value, \"}\");\n}\nfunction printSimpleFormatElement(el) {\n return \"{\".concat(el.value, \", \").concat(types_1.TYPE[el.type]).concat(el.style ? \", \".concat(printArgumentStyle(el.style)) : '', \"}\");\n}\nfunction printNumberSkeletonToken(token) {\n var stem = token.stem, options = token.options;\n return options.length === 0\n ? stem\n : \"\".concat(stem).concat(options.map(function (o) { return \"/\".concat(o); }).join(''));\n}\nfunction printArgumentStyle(style) {\n if (typeof style === 'string') {\n return printEscapedMessage(style);\n }\n else if (style.type === types_1.SKELETON_TYPE.dateTime) {\n return \"::\".concat(printDateTimeSkeleton(style));\n }\n else {\n return \"::\".concat(style.tokens.map(printNumberSkeletonToken).join(' '));\n }\n}\nfunction printDateTimeSkeleton(style) {\n return style.pattern;\n}\nfunction printSelectElement(el) {\n var msg = [\n el.value,\n 'select',\n Object.keys(el.options)\n .map(function (id) { return \"\".concat(id, \"{\").concat(doPrintAST(el.options[id].value, false), \"}\"); })\n .join(' '),\n ].join(',');\n return \"{\".concat(msg, \"}\");\n}\nfunction printPluralElement(el) {\n var type = el.pluralType === 'cardinal' ? 'plural' : 'selectordinal';\n var msg = [\n el.value,\n type,\n tslib_1.__spreadArray([\n el.offset ? \"offset:\".concat(el.offset) : ''\n ], Object.keys(el.options).map(function (id) { return \"\".concat(id, \"{\").concat(doPrintAST(el.options[id].value, true), \"}\"); }), true).filter(Boolean)\n .join(' '),\n ].join(',');\n return \"{\".concat(msg, \"}\");\n}\n","import { a as defaultBaseUrl, c as createDiagnosticMessage, d as libraryDefaultLocale, i as isSupportedFileFormatTransform, l as formatDiagnosticErrorDetails, n as encode, o as defaultCacheUrl, r as validateFileFormatTransforms, s as defaultRuntimeApiUrl, t as decode, u as defaultTimeout } from \"./base64-r7YWJYWt.mjs\";\nimport { n as stableStringify, t as isVariable } from \"./isVariable-fAKEB7gF.mjs\";\nimport { sha256 } from \"@noble/hashes/sha2.js\";\nimport { bytesToHex, utf8ToBytes } from \"@noble/hashes/utils.js\";\nimport { getCachedPluralRules } from \"@generaltranslation/format/internal\";\nimport { TYPE, parse } from \"@formatjs/icu-messageformat-parser\";\nimport { TYPE as TYPE$1 } from \"@formatjs/icu-messageformat-parser/types.js\";\nimport { printAST } from \"@formatjs/icu-messageformat-parser/printer.js\";\n//#region src/settings/plurals.ts\nconst pluralForms = [\n\t\"singular\",\n\t\"plural\",\n\t\"dual\",\n\t\"zero\",\n\t\"one\",\n\t\"two\",\n\t\"few\",\n\t\"many\",\n\t\"other\"\n];\nfunction isAcceptedPluralForm(form) {\n\treturn pluralForms.includes(form);\n}\n//#endregion\n//#region src/locales/getPluralForm.ts\n/**\n* Given a number and a list of allowed plural forms, return the plural form that best fits the number.\n*\n* @param {number} n - The number to determine the plural form for.\n* @param {PluralType[]} forms - The allowed plural forms.\n* @returns {PluralType} The determined plural form, or an empty string if none fit.\n*/\nfunction _getPluralForm(n, forms = pluralForms, locales = [\"en\"]) {\n\tconst provisionalBranchName = getCachedPluralRules(locales).select(n);\n\tconst absN = Math.abs(n);\n\tif (absN === 0 && forms.includes(\"zero\")) return \"zero\";\n\tif (absN === 1) {\n\t\tif (forms.includes(\"singular\")) return \"singular\";\n\t\tif (forms.includes(\"one\")) return \"one\";\n\t}\n\tif (provisionalBranchName === \"one\" && forms.includes(\"singular\")) return \"singular\";\n\tif (absN === 2) {\n\t\tif (forms.includes(\"dual\")) return \"dual\";\n\t\tif (forms.includes(\"two\")) return \"two\";\n\t}\n\tif (provisionalBranchName === \"two\" && forms.includes(\"dual\")) return \"dual\";\n\tif (forms.includes(provisionalBranchName)) return provisionalBranchName;\n\tif (provisionalBranchName === \"two\" && forms.includes(\"dual\")) return \"dual\";\n\tif (provisionalBranchName === \"two\" && forms.includes(\"plural\")) return \"plural\";\n\tif (provisionalBranchName === \"two\" && forms.includes(\"other\")) return \"other\";\n\tif (provisionalBranchName === \"few\" && forms.includes(\"plural\")) return \"plural\";\n\tif (provisionalBranchName === \"few\" && forms.includes(\"other\")) return \"other\";\n\tif (provisionalBranchName === \"many\" && forms.includes(\"plural\")) return \"plural\";\n\tif (provisionalBranchName === \"many\" && forms.includes(\"other\")) return \"other\";\n\tif (provisionalBranchName === \"other\" && forms.includes(\"plural\")) return \"plural\";\n\treturn \"\";\n}\n//#endregion\n//#region src/utils/minify.ts\nconst VARIABLE_TRANSFORMATION_SUFFIXES_TO_MINIFIED_NAMES = {\n\tvariable: \"v\",\n\tnumber: \"n\",\n\tdatetime: \"d\",\n\tcurrency: \"c\",\n\t\"relative-time\": \"rt\"\n};\nfunction minifyVariableType(variableType) {\n\treturn VARIABLE_TRANSFORMATION_SUFFIXES_TO_MINIFIED_NAMES[variableType];\n}\n//#endregion\n//#region src/derive/utils/traverseIcu.ts\n/**\n* Given an ICU string, traverse the AST and call the visitor function for each element that matches the type T\n* @param icu - The ICU string to traverse\n* @param shouldVisit - A function that returns true if the element should be visited\n* @param visitor - A function that is called for each element that matches the type T\n* @returns The modified AST of the ICU string.\n*\n* @note This function is a heavy operation, use sparingly\n*/\nfunction traverseIcu({ icuString, shouldVisit, visitor, options: { recurseIntoVisited = true, ...otherOptions } }) {\n\tconst ast = parse(icuString, otherOptions);\n\thandleChildren(ast);\n\treturn ast;\n\tfunction handleChildren(children) {\n\t\tchildren.map(handleChild);\n\t}\n\tfunction handleChild(child) {\n\t\tlet visited = false;\n\t\tif (shouldVisit(child)) {\n\t\t\tvisitor(child);\n\t\t\tvisited = true;\n\t\t}\n\t\tif (!visited || recurseIntoVisited) {\n\t\t\tif (child.type === TYPE.select || child.type === TYPE.plural) Object.values(child.options).map((option) => option.value).map(handleChildren);\n\t\t\telse if (child.type === TYPE.tag) handleChildren(child.children);\n\t\t}\n\t}\n}\n//#endregion\n//#region src/derive/utils/constants.ts\nconst VAR_IDENTIFIER = \"_gt_\";\nconst VAR_NAME_IDENTIFIER = \"_gt_var_name\";\n//#endregion\n//#region src/derive/utils/regex.ts\nconst GT_INDEXED_IDENTIFIER_REGEX = new RegExp(`^${VAR_IDENTIFIER}\\\\d+$`);\nconst GT_UNINDEXED_IDENTIFIER_REGEX = new RegExp(`^${VAR_IDENTIFIER}$`);\n//#endregion\n//#region src/derive/utils/traverseHelpers.ts\nfunction isGTIndexedSelectElement(child) {\n\treturn child.type === TYPE$1.select && GT_INDEXED_IDENTIFIER_REGEX.test(child.value) && !!child.options.other && (child.options.other.value.length === 0 || child.options.other.value.length > 0 && child.options.other.value[0]?.type === TYPE$1.literal);\n}\nfunction isGTUnindexedSelectElement(child) {\n\treturn child.type === TYPE$1.select && GT_UNINDEXED_IDENTIFIER_REGEX.test(child.value) && !!child.options.other && (child.options.other.value.length === 0 || child.options.other.value.length > 0 && child.options.other.value[0]?.type === TYPE$1.literal);\n}\n//#endregion\n//#region src/derive/decodeVars.ts\n/**\n* Given an encoded ICU string, interpolate only _gt_ variables that have been marked with declareVar()\n* @example\n* const encodedIcu = \"Hi\" + declareVar(\"Brian\") + \", my name is {name}\"\n* // 'Hi {_gt_, select, other {Brian}}, my name is {name}'\n* decodeVars(encodedIcu)\n* // 'Hi Brian, my name is {name}'\n*/\nfunction decodeVars(icuString) {\n\tif (!icuString.includes(\"_gt_\")) return icuString;\n\tconst variableLocations = [];\n\tfunction visitor(child) {\n\t\tvariableLocations.push({\n\t\t\tstart: child.location?.start.offset ?? 0,\n\t\t\tend: child.location?.end.offset ?? 0,\n\t\t\tvalue: child.options.other.value.length > 0 ? child.options.other.value[0].value : \"\"\n\t\t});\n\t}\n\ttraverseIcu({\n\t\ticuString,\n\t\tshouldVisit: isGTUnindexedSelectElement,\n\t\tvisitor,\n\t\toptions: {\n\t\t\trecurseIntoVisited: false,\n\t\t\tcaptureLocation: true\n\t\t}\n\t});\n\tlet previousIndex = 0;\n\tconst outputList = [];\n\tfor (let i = 0; i < variableLocations.length; i++) {\n\t\toutputList.push(icuString.slice(previousIndex, variableLocations[i].start));\n\t\toutputList.push(variableLocations[i].value);\n\t\tpreviousIndex = variableLocations[i].end;\n\t}\n\tif (previousIndex < icuString.length) outputList.push(icuString.slice(previousIndex));\n\treturn outputList.join(\"\");\n}\n//#endregion\n//#region src/derive/utils/sanitizeVar.ts\n/**\n* Sanitizes string by escaping ICU syntax\n*\n* Sanitize arbitrary string so it does not break the following ICU message syntax:\n* {_gt_, select, other {string_here}}\n*\n* Escapes ICU special characters by:\n* 1. Doubling all single quotes (U+0027 ')\n* 2. Adding a single quote before the first special character ({}<>)\n* 3. Adding a single quote after the last special character ({}<>)\n*/\nfunction sanitizeVar(string) {\n\tlet result = string.replace(/'/g, \"''\");\n\tconst specialChars = /[{}<>]/;\n\tconst firstSpecialIndex = result.search(specialChars);\n\tif (firstSpecialIndex === -1) return result;\n\tlet lastSpecialIndex = -1;\n\tfor (let i = result.length - 1; i >= 0; i--) if (specialChars.test(result[i])) {\n\t\tlastSpecialIndex = i;\n\t\tbreak;\n\t}\n\tresult = result.slice(0, firstSpecialIndex) + \"'\" + result.slice(firstSpecialIndex, lastSpecialIndex + 1) + \"'\" + result.slice(lastSpecialIndex + 1);\n\treturn result;\n}\n//#endregion\n//#region src/derive/declareVar.ts\n/**\n* Mark as a non-translatable string. Use within a derive() call to mark content as not derivable (e.g., not possible to statically analyze).\n*\n* @example\n* function nonDerivableFunction() {\n* return Math.random();\n* }\n*\n* function derivableFunction() {\n* if (condition) {\n* return declareVar(nonDerivableFunction())\n* }\n* return 'John Doe';\n* }\n*\n* const gt = useGT();\n* gt(`My name is ${derive(derivableFunction())}`);\n*\n* @param {string | number | boolean | null | undefined} variable - The variable to sanitize.\n* @param {Object} [options] - The options for the sanitization.\n* @param {string} [options.$name] - The name of the variable.\n* @returns {string} The sanitized value.\n*/\nfunction declareVar(variable, options) {\n\tconst variableSection = ` other {${sanitizeVar(String(variable ?? \"\"))}}`;\n\tlet nameSection = \"\";\n\tif (options?.$name) nameSection = ` ${VAR_NAME_IDENTIFIER} {${sanitizeVar(options.$name)}}`;\n\treturn `{${VAR_IDENTIFIER}, select,${variableSection}${nameSection}}`;\n}\n//#endregion\n//#region src/derive/derive.ts\n/**\n* Marks content as derivable by the GT compiler and CLI.\n*\n* Use `derive()` when a translation string or context needs content that is\n* computed from source code, but should still be discovered during extraction\n* instead of treated as a runtime interpolation variable. The CLI attempts to\n* resolve the derivable expression into every possible static value and\n* includes those values in the source content that gets translated.\n*\n* `derive()` returns its argument unchanged at runtime.\n*\n* Run `gt validate` after adding or changing `derive()` calls to verify that\n* each derivable expression can be resolved by the CLI before translating or\n* building.\n*\n* @example\n* ```jsx\n* function getSubject() {\n* return (Math.random() > 0.5) ? \"Alice\" : \"Brian\";\n* }\n* ...\n* gt(`My name is ${derive(getSubject())}`);\n* ```\n*\n* @param {T extends string | boolean | number | null | undefined} content - Content to derive for translation extraction.\n* @returns {T} The same content, unchanged at runtime.\n*/\nfunction derive(content) {\n\treturn content;\n}\n/**\n* @deprecated Use derive() instead.\n*\n* Marks content as derivable by the GT compiler and CLI.\n*\n* Use `derive()` instead of `declareStatic()` for new code. This alias is kept\n* for backwards compatibility and returns its argument unchanged at runtime.\n*\n* Run `gt validate` after adding or changing derived content to verify that\n* each derivable expression can be resolved by the CLI before translating or\n* building.\n*\n* @example\n* ```jsx\n* function getSubject() {\n* return (Math.random() > 0.5) ? \"Alice\" : \"Brian\";\n* }\n* ...\n* gt(`My name is ${declareStatic(getSubject())}`);\n* ```\n*\n* @param {T extends string | boolean | number | null | undefined} content - Content to derive for translation extraction.\n* @returns {T} The same content, unchanged at runtime.\n*/\nconst declareStatic = derive;\n//#endregion\n//#region src/derive/indexVars.ts\n/**\n* Given an ICU string adds identifiers to each _gt_ placeholder\n* indexVars('Hello {_gt_} {_gt_} World') => 'Hello {_gt_1_} {_gt_2_} World'\n*/\nfunction indexVars(icuString) {\n\tif (!icuString.includes(\"_gt_\")) return icuString;\n\tconst variableLocations = [];\n\tfunction visitor(child) {\n\t\tvariableLocations.push({\n\t\t\tstart: child.location?.start.offset ?? 0,\n\t\t\tend: child.location?.end.offset ?? 0,\n\t\t\totherStart: child.options.other.location?.start.offset ?? 0,\n\t\t\totherEnd: child.options.other.location?.end.offset ?? 0\n\t\t});\n\t}\n\ttraverseIcu({\n\t\ticuString,\n\t\tshouldVisit: isGTUnindexedSelectElement,\n\t\tvisitor,\n\t\toptions: {\n\t\t\trecurseIntoVisited: false,\n\t\t\tcaptureLocation: true\n\t\t}\n\t});\n\tconst result = [];\n\tlet current = 0;\n\tfor (let i = 0; i < variableLocations.length; i++) {\n\t\tconst { start, end, otherStart, otherEnd } = variableLocations[i];\n\t\tresult.push(icuString.slice(current, start));\n\t\tresult.push(icuString.slice(start, start + 4 + 1));\n\t\tresult.push(String(i + 1));\n\t\tresult.push(icuString.slice(start + 4 + 1, otherStart));\n\t\tresult.push(\"{}\");\n\t\tresult.push(icuString.slice(otherEnd, end));\n\t\tcurrent = end;\n\t}\n\tresult.push(icuString.slice(current, icuString.length));\n\treturn result.join(\"\");\n}\n//#endregion\n//#region src/derive/extractVars.ts\n/**\n* Given an unindexed ICU string, extracts all the _gt_ variables and an indexed mapping of the variable to the values\n*\n* extractVars('Hello {_gt_, select, other {World}}') => { _gt_1: 'World' }\n*\n* @param {string} icuString - The ICU string to extract variables from.\n* @returns {Record<string, string>} A mapping of the variable to the value.\n*/\nfunction extractVars(icuString) {\n\tif (!icuString.includes(\"_gt_\")) return {};\n\tlet index = 1;\n\tconst variables = {};\n\tfunction visitor(child) {\n\t\tvariables[child.value + index] = child.options.other.value.length ? child.options.other.value[0]?.value : \"\";\n\t\tindex += 1;\n\t}\n\ttraverseIcu({\n\t\ticuString,\n\t\tshouldVisit: isGTUnindexedSelectElement,\n\t\tvisitor,\n\t\toptions: { recurseIntoVisited: false }\n\t});\n\treturn variables;\n}\n//#endregion\n//#region src/derive/condenseVars.ts\n/**\n* Given an indexed ICU string, condenses any select to an argument\n* indexVars('Hello {_gt_1, select, other {World}}') => 'Hello {_gt_1}'\n* @param {string} icuString - The ICU string to condense.\n* @returns {string} The condensed ICU string.\n*/\nfunction condenseVars(icuString) {\n\tif (!icuString.includes(\"_gt_\")) return icuString;\n\tfunction visitor(child) {\n\t\tchild.type = TYPE$1.argument;\n\t\tReflect.deleteProperty(child, \"options\");\n\t}\n\treturn printAST(traverseIcu({\n\t\ticuString,\n\t\tshouldVisit: isGTIndexedSelectElement,\n\t\tvisitor,\n\t\toptions: { recurseIntoVisited: false }\n\t}));\n}\n//#endregion\n//#region src/backwards-compatability/typeChecking.ts\n/**\n* Checks if a JSX child is an old variable object format\n* @param child - The JSX child to check.\n* @returns True if the child is an old variable object (has 'key' property)\n*/\nfunction isOldVariableObject(child) {\n\treturn typeof child === \"object\" && child != null && \"key\" in child;\n}\n/**\n* Checks if a JSX child is a new variable object format\n* @param child - The JSX child to check.\n* @returns True if the child is a new variable object (has 'k' property)\n*/\nfunction isNewVariableObject(child) {\n\treturn typeof child === \"object\" && child != null && \"k\" in child;\n}\n/**\n* Checks if a JSX child is an old JSX element format\n* @param child - The JSX child to check.\n* @returns True if the child is an old JSX element (has 'type' and 'props' properties)\n*/\nfunction isOldJsxElement(child) {\n\treturn typeof child === \"object\" && child != null && \"type\" in child && \"props\" in child;\n}\n/**\n* Checks if a JSX child follows the old format (string, old variable object, or old JSX element)\n* @param child - The JSX child to check.\n* @returns True if the child is in the old format.\n*/\nfunction isOldJsxChild(child) {\n\tif (typeof child === \"string\") return true;\n\tif (isOldVariableObject(child)) return true;\n\treturn isOldJsxElement(child);\n}\n/**\n* Checks if JSX children follow the old format\n* @param children - The JSX children to check (can be string, array, or single child)\n* @returns True if all children are in the old format.\n*/\nfunction isOldJsxChildren(children) {\n\tif (typeof children === \"string\") return true;\n\tif (Array.isArray(children)) return !children.some((child) => !isOldJsxChild(child));\n\treturn isOldJsxChild(children);\n}\n//#endregion\n//#region src/backwards-compatability/dataConversion.ts\n/**\n* Convert request data from old format to new format\n*/\nfunction getNewJsxChild(child) {\n\tif (typeof child === \"string\") return child;\n\tif (isOldVariableObject(child)) return getNewVariableObject(child);\n\treturn getNewJsxElement(child);\n}\nfunction getNewJsxChildren(children) {\n\tif (typeof children === \"string\") return children;\n\tif (Array.isArray(children)) return children.map(getNewJsxChild);\n\treturn getNewJsxChild(children);\n}\nfunction getNewJsxElement(element) {\n\tif (typeof element === \"string\") return element;\n\tlet t = void 0;\n\tif (element.type != null) t = element.type;\n\tlet c = void 0;\n\tif (element.props?.children != null) c = getNewJsxChildren(element.props.children);\n\treturn {\n\t\t...t && { t },\n\t\t...c && { c },\n\t\td: getNewGTProp(element.props[\"data-_gt\"]),\n\t\ti: element.props[\"data-_gt\"].id\n\t};\n}\nfunction getNewBranchType(branch) {\n\tif (branch === \"branch\") return \"b\";\n\treturn \"p\";\n}\nfunction getNewVariableType(variable) {\n\tswitch (variable) {\n\t\tcase \"number\": return \"n\";\n\t\tcase \"variable\": return \"v\";\n\t\tcase \"datetime\": return \"d\";\n\t\tcase \"currency\": return \"c\";\n\t\tdefault: return \"v\";\n\t}\n}\nfunction getNewVariableObject(variable) {\n\tlet v = void 0;\n\tif (variable.variable != null) v = getNewVariableType(variable.variable);\n\tlet i = void 0;\n\tif (variable.id != null) i = variable.id;\n\treturn {\n\t\tk: variable.key,\n\t\t...v && { v },\n\t\t...i && { i }\n\t};\n}\nfunction getNewGTProp(dataGT) {\n\tlet b = void 0;\n\tif (dataGT.branches) b = Object.fromEntries(Object.entries(dataGT.branches).map(([key, value]) => [key, getNewJsxChildren(value)]));\n\tlet t;\n\tif (dataGT.transformation) t = getNewBranchType(dataGT.transformation);\n\treturn {\n\t\t...b && { b },\n\t\t...t && { t }\n\t};\n}\n/**\n* Convert response data from current format to old format\n*/\nfunction getOldJsxChild(child) {\n\tif (typeof child === \"string\") return child;\n\tif (isNewVariableObject(child)) return getOldVariableObject(child);\n\treturn getOldJsxElement(child);\n}\nfunction getOldJsxChildren(children) {\n\tif (isOldJsxChildren(children)) return children;\n\tif (typeof children === \"string\") return children;\n\tif (Array.isArray(children)) return children.map(getOldJsxChild);\n\treturn getOldJsxChild(children);\n}\nfunction getOldJsxElement(element) {\n\tconst type = element.t;\n\tlet children = void 0;\n\tif (element.c != null) children = getOldJsxChildren(element.c);\n\tconst dataGT = getOldGTProp(element.d || {}, element.i);\n\treturn {\n\t\ttype,\n\t\tprops: {\n\t\t\tchildren,\n\t\t\t\"data-_gt\": dataGT\n\t\t}\n\t};\n}\nfunction getOldBranchType(branch) {\n\tif (branch === \"b\") return \"branch\";\n\treturn \"plural\";\n}\nfunction getOldVariableType(variable) {\n\tswitch (variable) {\n\t\tcase \"n\": return \"number\";\n\t\tcase \"v\": return \"variable\";\n\t\tcase \"d\": return \"datetime\";\n\t\tcase \"c\": return \"currency\";\n\t\tdefault: return \"variable\";\n\t}\n}\nfunction getOldVariableObject(variable) {\n\tlet v = void 0;\n\tif (variable.v != null) v = getOldVariableType(variable.v);\n\tlet i = void 0;\n\tif (variable.i != null) i = variable.i;\n\treturn {\n\t\tkey: variable.k,\n\t\t...v && { variable: v },\n\t\t...i && { id: i }\n\t};\n}\nfunction getOldGTProp(dataGT, i) {\n\tlet transformation = void 0;\n\tif (dataGT.t != null) transformation = getOldBranchType(dataGT.t);\n\tlet branches = void 0;\n\tif (dataGT.b != null) branches = Object.fromEntries(Object.entries(dataGT.b).map(([key, value]) => [key, getOldJsxChildren(value)]));\n\treturn {\n\t\tid: i,\n\t\t...transformation && { transformation },\n\t\t...branches && { branches }\n\t};\n}\n//#endregion\n//#region src/backwards-compatability/oldHashJsxChildren.ts\n/**\n* Calculates a unique hash for a given string using SHA-256.\n*\n* @param {string} string - The string to be hashed.\n* @returns {string} The resulting hash as a hexadecimal string.\n*/\nfunction oldHashString(string) {\n\treturn bytesToHex(sha256(utf8ToBytes(string)));\n}\n/**\n* Calculates a unique ID for the given children objects by hashing their sanitized JSON string representation.\n*\n* @param {any} childrenAsObjects - The children objects to be hashed.\n* @param {string} context - The context for the children.\n* @param {string} id - The ID for the JSX children object.\n* @param {function} hashFunction - Custom hash function.\n* @returns {string} - The unique hash of the children.\n*/\nfunction oldHashJsxChildren({ source, context, id, dataFormat }, hashFunction = oldHashString) {\n\treturn hashFunction(stableStringify({\n\t\tsource: sanitizeJsxChildren(source),\n\t\t...id && { id },\n\t\t...context && { context },\n\t\t...dataFormat && { dataFormat }\n\t}));\n}\nconst sanitizeChild = (child) => {\n\tif (child && typeof child === \"object\") {\n\t\tif (\"props\" in child) {\n\t\t\tconst newChild = {};\n\t\t\tconst dataGt = child?.props?.[\"data-_gt\"];\n\t\t\tif (dataGt?.branches) newChild.branches = Object.fromEntries(Object.entries(dataGt.branches).map(([key, value]) => [key, sanitizeJsxChildren(value)]));\n\t\t\tif (child?.props?.children) newChild.children = sanitizeJsxChildren(child.props.children);\n\t\t\tif (child?.props?.[\"data-_gt\"]?.transformation) newChild.transformation = child.props[\"data-_gt\"].transformation;\n\t\t\treturn newChild;\n\t\t}\n\t\tif (\"key\" in child) return {\n\t\t\tkey: child.key,\n\t\t\t...child.variable && { variable: child.variable }\n\t\t};\n\t}\n\treturn child;\n};\nfunction sanitizeJsxChildren(childrenAsObjects) {\n\treturn Array.isArray(childrenAsObjects) ? childrenAsObjects.map(sanitizeChild) : sanitizeChild(childrenAsObjects);\n}\n//#endregion\nexport { VAR_IDENTIFIER, VAR_NAME_IDENTIFIER, condenseVars, createDiagnosticMessage, declareStatic, declareVar, decode, decodeVars, defaultBaseUrl, defaultCacheUrl, defaultRuntimeApiUrl, defaultTimeout, derive, encode, extractVars, formatDiagnosticErrorDetails, getNewBranchType, getNewGTProp, getNewJsxChild, getNewJsxChildren, getNewJsxElement, getNewVariableObject, getNewVariableType, getOldBranchType, getOldGTProp, getOldJsxChild, getOldJsxChildren, getOldJsxElement, getOldVariableObject, getOldVariableType, _getPluralForm as getPluralForm, indexVars, isAcceptedPluralForm, isNewVariableObject, isOldJsxChildren, isOldVariableObject, isSupportedFileFormatTransform, isVariable, libraryDefaultLocale, minifyVariableType, oldHashJsxChildren, oldHashString, pluralForms, validateFileFormatTransforms };\n\n//# sourceMappingURL=internal.mjs.map","\"use strict\";\n//\n// Main\n//\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.strategies = void 0;\nexports.memoize = memoize;\nfunction memoize(fn, options) {\n var cache = options && options.cache ? options.cache : cacheDefault;\n var serializer = options && options.serializer ? options.serializer : serializerDefault;\n var strategy = options && options.strategy ? options.strategy : strategyDefault;\n return strategy(fn, {\n cache: cache,\n serializer: serializer,\n });\n}\n//\n// Strategy\n//\nfunction isPrimitive(value) {\n return (value == null || typeof value === 'number' || typeof value === 'boolean'); // || typeof value === \"string\" 'unsafe' primitive for our needs\n}\nfunction monadic(fn, cache, serializer, arg) {\n var cacheKey = isPrimitive(arg) ? arg : serializer(arg);\n var computedValue = cache.get(cacheKey);\n if (typeof computedValue === 'undefined') {\n computedValue = fn.call(this, arg);\n cache.set(cacheKey, computedValue);\n }\n return computedValue;\n}\nfunction variadic(fn, cache, serializer) {\n var args = Array.prototype.slice.call(arguments, 3);\n var cacheKey = serializer(args);\n var computedValue = cache.get(cacheKey);\n if (typeof computedValue === 'undefined') {\n computedValue = fn.apply(this, args);\n cache.set(cacheKey, computedValue);\n }\n return computedValue;\n}\nfunction assemble(fn, context, strategy, cache, serialize) {\n return strategy.bind(context, fn, cache, serialize);\n}\nfunction strategyDefault(fn, options) {\n var strategy = fn.length === 1 ? monadic : variadic;\n return assemble(fn, this, strategy, options.cache.create(), options.serializer);\n}\nfunction strategyVariadic(fn, options) {\n return assemble(fn, this, variadic, options.cache.create(), options.serializer);\n}\nfunction strategyMonadic(fn, options) {\n return assemble(fn, this, monadic, options.cache.create(), options.serializer);\n}\n//\n// Serializer\n//\nvar serializerDefault = function () {\n return JSON.stringify(arguments);\n};\n//\n// Cache\n//\nvar ObjectWithoutPrototypeCache = /** @class */ (function () {\n function ObjectWithoutPrototypeCache() {\n this.cache = Object.create(null);\n }\n ObjectWithoutPrototypeCache.prototype.get = function (key) {\n return this.cache[key];\n };\n ObjectWithoutPrototypeCache.prototype.set = function (key, value) {\n this.cache[key] = value;\n };\n return ObjectWithoutPrototypeCache;\n}());\nvar cacheDefault = {\n create: function create() {\n return new ObjectWithoutPrototypeCache();\n },\n};\nexports.strategies = {\n variadic: strategyVariadic,\n monadic: strategyMonadic,\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ErrorKind = void 0;\nvar ErrorKind;\n(function (ErrorKind) {\n /** Argument is unclosed (e.g. `{0`) */\n ErrorKind[ErrorKind[\"EXPECT_ARGUMENT_CLOSING_BRACE\"] = 1] = \"EXPECT_ARGUMENT_CLOSING_BRACE\";\n /** Argument is empty (e.g. `{}`). */\n ErrorKind[ErrorKind[\"EMPTY_ARGUMENT\"] = 2] = \"EMPTY_ARGUMENT\";\n /** Argument is malformed (e.g. `{foo!}``) */\n ErrorKind[ErrorKind[\"MALFORMED_ARGUMENT\"] = 3] = \"MALFORMED_ARGUMENT\";\n /** Expect an argument type (e.g. `{foo,}`) */\n ErrorKind[ErrorKind[\"EXPECT_ARGUMENT_TYPE\"] = 4] = \"EXPECT_ARGUMENT_TYPE\";\n /** Unsupported argument type (e.g. `{foo,foo}`) */\n ErrorKind[ErrorKind[\"INVALID_ARGUMENT_TYPE\"] = 5] = \"INVALID_ARGUMENT_TYPE\";\n /** Expect an argument style (e.g. `{foo, number, }`) */\n ErrorKind[ErrorKind[\"EXPECT_ARGUMENT_STYLE\"] = 6] = \"EXPECT_ARGUMENT_STYLE\";\n /** The number skeleton is invalid. */\n ErrorKind[ErrorKind[\"INVALID_NUMBER_SKELETON\"] = 7] = \"INVALID_NUMBER_SKELETON\";\n /** The date time skeleton is invalid. */\n ErrorKind[ErrorKind[\"INVALID_DATE_TIME_SKELETON\"] = 8] = \"INVALID_DATE_TIME_SKELETON\";\n /** Exepct a number skeleton following the `::` (e.g. `{foo, number, ::}`) */\n ErrorKind[ErrorKind[\"EXPECT_NUMBER_SKELETON\"] = 9] = \"EXPECT_NUMBER_SKELETON\";\n /** Exepct a date time skeleton following the `::` (e.g. `{foo, date, ::}`) */\n ErrorKind[ErrorKind[\"EXPECT_DATE_TIME_SKELETON\"] = 10] = \"EXPECT_DATE_TIME_SKELETON\";\n /** Unmatched apostrophes in the argument style (e.g. `{foo, number, 'test`) */\n ErrorKind[ErrorKind[\"UNCLOSED_QUOTE_IN_ARGUMENT_STYLE\"] = 11] = \"UNCLOSED_QUOTE_IN_ARGUMENT_STYLE\";\n /** Missing select argument options (e.g. `{foo, select}`) */\n ErrorKind[ErrorKind[\"EXPECT_SELECT_ARGUMENT_OPTIONS\"] = 12] = \"EXPECT_SELECT_ARGUMENT_OPTIONS\";\n /** Expecting an offset value in `plural` or `selectordinal` argument (e.g `{foo, plural, offset}`) */\n ErrorKind[ErrorKind[\"EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE\"] = 13] = \"EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE\";\n /** Offset value in `plural` or `selectordinal` is invalid (e.g. `{foo, plural, offset: x}`) */\n ErrorKind[ErrorKind[\"INVALID_PLURAL_ARGUMENT_OFFSET_VALUE\"] = 14] = \"INVALID_PLURAL_ARGUMENT_OFFSET_VALUE\";\n /** Expecting a selector in `select` argument (e.g `{foo, select}`) */\n ErrorKind[ErrorKind[\"EXPECT_SELECT_ARGUMENT_SELECTOR\"] = 15] = \"EXPECT_SELECT_ARGUMENT_SELECTOR\";\n /** Expecting a selector in `plural` or `selectordinal` argument (e.g `{foo, plural}`) */\n ErrorKind[ErrorKind[\"EXPECT_PLURAL_ARGUMENT_SELECTOR\"] = 16] = \"EXPECT_PLURAL_ARGUMENT_SELECTOR\";\n /** Expecting a message fragment after the `select` selector (e.g. `{foo, select, apple}`) */\n ErrorKind[ErrorKind[\"EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT\"] = 17] = \"EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT\";\n /**\n * Expecting a message fragment after the `plural` or `selectordinal` selector\n * (e.g. `{foo, plural, one}`)\n */\n ErrorKind[ErrorKind[\"EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT\"] = 18] = \"EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT\";\n /** Selector in `plural` or `selectordinal` is malformed (e.g. `{foo, plural, =x {#}}`) */\n ErrorKind[ErrorKind[\"INVALID_PLURAL_ARGUMENT_SELECTOR\"] = 19] = \"INVALID_PLURAL_ARGUMENT_SELECTOR\";\n /**\n * Duplicate selectors in `plural` or `selectordinal` argument.\n * (e.g. {foo, plural, one {#} one {#}})\n */\n ErrorKind[ErrorKind[\"DUPLICATE_PLURAL_ARGUMENT_SELECTOR\"] = 20] = \"DUPLICATE_PLURAL_ARGUMENT_SELECTOR\";\n /** Duplicate selectors in `select` argument.\n * (e.g. {foo, select, apple {apple} apple {apple}})\n */\n ErrorKind[ErrorKind[\"DUPLICATE_SELECT_ARGUMENT_SELECTOR\"] = 21] = \"DUPLICATE_SELECT_ARGUMENT_SELECTOR\";\n /** Plural or select argument option must have `other` clause. */\n ErrorKind[ErrorKind[\"MISSING_OTHER_CLAUSE\"] = 22] = \"MISSING_OTHER_CLAUSE\";\n /** The tag is malformed. (e.g. `<bold!>foo</bold!>) */\n ErrorKind[ErrorKind[\"INVALID_TAG\"] = 23] = \"INVALID_TAG\";\n /** The tag name is invalid. (e.g. `<123>foo</123>`) */\n ErrorKind[ErrorKind[\"INVALID_TAG_NAME\"] = 25] = \"INVALID_TAG_NAME\";\n /** The closing tag does not match the opening tag. (e.g. `<bold>foo</italic>`) */\n ErrorKind[ErrorKind[\"UNMATCHED_CLOSING_TAG\"] = 26] = \"UNMATCHED_CLOSING_TAG\";\n /** The opening tag has unmatched closing tag. (e.g. `<bold>foo`) */\n ErrorKind[ErrorKind[\"UNCLOSED_TAG\"] = 27] = \"UNCLOSED_TAG\";\n})(ErrorKind || (exports.ErrorKind = ErrorKind = {}));\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.SKELETON_TYPE = exports.TYPE = void 0;\nexports.isLiteralElement = isLiteralElement;\nexports.isArgumentElement = isArgumentElement;\nexports.isNumberElement = isNumberElement;\nexports.isDateElement = isDateElement;\nexports.isTimeElement = isTimeElement;\nexports.isSelectElement = isSelectElement;\nexports.isPluralElement = isPluralElement;\nexports.isPoundElement = isPoundElement;\nexports.isTagElement = isTagElement;\nexports.isNumberSkeleton = isNumberSkeleton;\nexports.isDateTimeSkeleton = isDateTimeSkeleton;\nexports.createLiteralElement = createLiteralElement;\nexports.createNumberElement = createNumberElement;\nvar TYPE;\n(function (TYPE) {\n /**\n * Raw text\n */\n TYPE[TYPE[\"literal\"] = 0] = \"literal\";\n /**\n * Variable w/o any format, e.g `var` in `this is a {var}`\n */\n TYPE[TYPE[\"argument\"] = 1] = \"argument\";\n /**\n * Variable w/ number format\n */\n TYPE[TYPE[\"number\"] = 2] = \"number\";\n /**\n * Variable w/ date format\n */\n TYPE[TYPE[\"date\"] = 3] = \"date\";\n /**\n * Variable w/ time format\n */\n TYPE[TYPE[\"time\"] = 4] = \"time\";\n /**\n * Variable w/ select format\n */\n TYPE[TYPE[\"select\"] = 5] = \"select\";\n /**\n * Variable w/ plural format\n */\n TYPE[TYPE[\"plural\"] = 6] = \"plural\";\n /**\n * Only possible within plural argument.\n * This is the `#` symbol that will be substituted with the count.\n */\n TYPE[TYPE[\"pound\"] = 7] = \"pound\";\n /**\n * XML-like tag\n */\n TYPE[TYPE[\"tag\"] = 8] = \"tag\";\n})(TYPE || (exports.TYPE = TYPE = {}));\nvar SKELETON_TYPE;\n(function (SKELETON_TYPE) {\n SKELETON_TYPE[SKELETON_TYPE[\"number\"] = 0] = \"number\";\n SKELETON_TYPE[SKELETON_TYPE[\"dateTime\"] = 1] = \"dateTime\";\n})(SKELETON_TYPE || (exports.SKELETON_TYPE = SKELETON_TYPE = {}));\n/**\n * Type Guards\n */\nfunction isLiteralElement(el) {\n return el.type === TYPE.literal;\n}\nfunction isArgumentElement(el) {\n return el.type === TYPE.argument;\n}\nfunction isNumberElement(el) {\n return el.type === TYPE.number;\n}\nfunction isDateElement(el) {\n return el.type === TYPE.date;\n}\nfunction isTimeElement(el) {\n return el.type === TYPE.time;\n}\nfunction isSelectElement(el) {\n return el.type === TYPE.select;\n}\nfunction isPluralElement(el) {\n return el.type === TYPE.plural;\n}\nfunction isPoundElement(el) {\n return el.type === TYPE.pound;\n}\nfunction isTagElement(el) {\n return el.type === TYPE.tag;\n}\nfunction isNumberSkeleton(el) {\n return !!(el && typeof el === 'object' && el.type === SKELETON_TYPE.number);\n}\nfunction isDateTimeSkeleton(el) {\n return !!(el && typeof el === 'object' && el.type === SKELETON_TYPE.dateTime);\n}\nfunction createLiteralElement(value) {\n return {\n type: TYPE.literal,\n value: value,\n };\n}\nfunction createNumberElement(value, style) {\n return {\n type: TYPE.number,\n value: value,\n style: style,\n };\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.WHITE_SPACE_REGEX = exports.SPACE_SEPARATOR_REGEX = void 0;\n// @generated from regex-gen.ts\nexports.SPACE_SEPARATOR_REGEX = /[ \\xA0\\u1680\\u2000-\\u200A\\u202F\\u205F\\u3000]/;\nexports.WHITE_SPACE_REGEX = /[\\t-\\r \\x85\\u200E\\u200F\\u2028\\u2029]/;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.parseDateTimeSkeleton = parseDateTimeSkeleton;\n/**\n * https://unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table\n * Credit: https://github.com/caridy/intl-datetimeformat-pattern/blob/master/index.js\n * with some tweaks\n */\nvar DATE_TIME_REGEX = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;\n/**\n * Parse Date time skeleton into Intl.DateTimeFormatOptions\n * Ref: https://unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table\n * @public\n * @param skeleton skeleton string\n */\nfunction parseDateTimeSkeleton(skeleton) {\n var result = {};\n skeleton.replace(DATE_TIME_REGEX, function (match) {\n var len = match.length;\n switch (match[0]) {\n // Era\n case 'G':\n result.era = len === 4 ? 'long' : len === 5 ? 'narrow' : 'short';\n break;\n // Year\n case 'y':\n result.year = len === 2 ? '2-digit' : 'numeric';\n break;\n case 'Y':\n case 'u':\n case 'U':\n case 'r':\n throw new RangeError('`Y/u/U/r` (year) patterns are not supported, use `y` instead');\n // Quarter\n case 'q':\n case 'Q':\n throw new RangeError('`q/Q` (quarter) patterns are not supported');\n // Month\n case 'M':\n case 'L':\n result.month = ['numeric', '2-digit', 'short', 'long', 'narrow'][len - 1];\n break;\n // Week\n case 'w':\n case 'W':\n throw new RangeError('`w/W` (week) patterns are not supported');\n case 'd':\n result.day = ['numeric', '2-digit'][len - 1];\n break;\n case 'D':\n case 'F':\n case 'g':\n throw new RangeError('`D/F/g` (day) patterns are not supported, use `d` instead');\n // Weekday\n case 'E':\n result.weekday = len === 4 ? 'long' : len === 5 ? 'narrow' : 'short';\n break;\n case 'e':\n if (len < 4) {\n throw new RangeError('`e..eee` (weekday) patterns are not supported');\n }\n result.weekday = ['short', 'long', 'narrow', 'short'][len - 4];\n break;\n case 'c':\n if (len < 4) {\n throw new RangeError('`c..ccc` (weekday) patterns are not supported');\n }\n result.weekday = ['short', 'long', 'narrow', 'short'][len - 4];\n break;\n // Period\n case 'a': // AM, PM\n result.hour12 = true;\n break;\n case 'b': // am, pm, noon, midnight\n case 'B': // flexible day periods\n throw new RangeError('`b/B` (period) patterns are not supported, use `a` instead');\n // Hour\n case 'h':\n result.hourCycle = 'h12';\n result.hour = ['numeric', '2-digit'][len - 1];\n break;\n case 'H':\n result.hourCycle = 'h23';\n result.hour = ['numeric', '2-digit'][len - 1];\n break;\n case 'K':\n result.hourCycle = 'h11';\n result.hour = ['numeric', '2-digit'][len - 1];\n break;\n case 'k':\n result.hourCycle = 'h24';\n result.hour = ['numeric', '2-digit'][len - 1];\n break;\n case 'j':\n case 'J':\n case 'C':\n throw new RangeError('`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead');\n // Minute\n case 'm':\n result.minute = ['numeric', '2-digit'][len - 1];\n break;\n // Second\n case 's':\n result.second = ['numeric', '2-digit'][len - 1];\n break;\n case 'S':\n case 'A':\n throw new RangeError('`S/A` (second) patterns are not supported, use `s` instead');\n // Zone\n case 'z': // 1..3, 4: specific non-location format\n result.timeZoneName = len < 4 ? 'short' : 'long';\n break;\n case 'Z': // 1..3, 4, 5: The ISO8601 varios formats\n case 'O': // 1, 4: milliseconds in day short, long\n case 'v': // 1, 4: generic non-location format\n case 'V': // 1, 2, 3, 4: time zone ID or city\n case 'X': // 1, 2, 3, 4: The ISO8601 varios formats\n case 'x': // 1, 2, 3, 4: The ISO8601 varios formats\n throw new RangeError('`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead');\n }\n return '';\n });\n return result;\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.WHITE_SPACE_REGEX = void 0;\n// @generated from regex-gen.ts\nexports.WHITE_SPACE_REGEX = /[\\t-\\r \\x85\\u200E\\u200F\\u2028\\u2029]/i;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.parseNumberSkeletonFromString = parseNumberSkeletonFromString;\nexports.parseNumberSkeleton = parseNumberSkeleton;\nvar tslib_1 = require(\"tslib\");\nvar regex_generated_1 = require(\"./regex.generated\");\nfunction parseNumberSkeletonFromString(skeleton) {\n if (skeleton.length === 0) {\n throw new Error('Number skeleton cannot be empty');\n }\n // Parse the skeleton\n var stringTokens = skeleton\n .split(regex_generated_1.WHITE_SPACE_REGEX)\n .filter(function (x) { return x.length > 0; });\n var tokens = [];\n for (var _i = 0, stringTokens_1 = stringTokens; _i < stringTokens_1.length; _i++) {\n var stringToken = stringTokens_1[_i];\n var stemAndOptions = stringToken.split('/');\n if (stemAndOptions.length === 0) {\n throw new Error('Invalid number skeleton');\n }\n var stem = stemAndOptions[0], options = stemAndOptions.slice(1);\n for (var _a = 0, options_1 = options; _a < options_1.length; _a++) {\n var option = options_1[_a];\n if (option.length === 0) {\n throw new Error('Invalid number skeleton');\n }\n }\n tokens.push({ stem: stem, options: options });\n }\n return tokens;\n}\nfunction icuUnitToEcma(unit) {\n return unit.replace(/^(.*?)-/, '');\n}\nvar FRACTION_PRECISION_REGEX = /^\\.(?:(0+)(\\*)?|(#+)|(0+)(#+))$/g;\nvar SIGNIFICANT_PRECISION_REGEX = /^(@+)?(\\+|#+)?[rs]?$/g;\nvar INTEGER_WIDTH_REGEX = /(\\*)(0+)|(#+)(0+)|(0+)/g;\nvar CONCISE_INTEGER_WIDTH_REGEX = /^(0+)$/;\nfunction parseSignificantPrecision(str) {\n var result = {};\n if (str[str.length - 1] === 'r') {\n result.roundingPriority = 'morePrecision';\n }\n else if (str[str.length - 1] === 's') {\n result.roundingPriority = 'lessPrecision';\n }\n str.replace(SIGNIFICANT_PRECISION_REGEX, function (_, g1, g2) {\n // @@@ case\n if (typeof g2 !== 'string') {\n result.minimumSignificantDigits = g1.length;\n result.maximumSignificantDigits = g1.length;\n }\n // @@@+ case\n else if (g2 === '+') {\n result.minimumSignificantDigits = g1.length;\n }\n // .### case\n else if (g1[0] === '#') {\n result.maximumSignificantDigits = g1.length;\n }\n // .@@## or .@@@ case\n else {\n result.minimumSignificantDigits = g1.length;\n result.maximumSignificantDigits =\n g1.length + (typeof g2 === 'string' ? g2.length : 0);\n }\n return '';\n });\n return result;\n}\nfunction parseSign(str) {\n switch (str) {\n case 'sign-auto':\n return {\n signDisplay: 'auto',\n };\n case 'sign-accounting':\n case '()':\n return {\n currencySign: 'accounting',\n };\n case 'sign-always':\n case '+!':\n return {\n signDisplay: 'always',\n };\n case 'sign-accounting-always':\n case '()!':\n return {\n signDisplay: 'always',\n currencySign: 'accounting',\n };\n case 'sign-except-zero':\n case '+?':\n return {\n signDisplay: 'exceptZero',\n };\n case 'sign-accounting-except-zero':\n case '()?':\n return {\n signDisplay: 'exceptZero',\n currencySign: 'accounting',\n };\n case 'sign-never':\n case '+_':\n return {\n signDisplay: 'never',\n };\n }\n}\nfunction parseConciseScientificAndEngineeringStem(stem) {\n // Engineering\n var result;\n if (stem[0] === 'E' && stem[1] === 'E') {\n result = {\n notation: 'engineering',\n };\n stem = stem.slice(2);\n }\n else if (stem[0] === 'E') {\n result = {\n notation: 'scientific',\n };\n stem = stem.slice(1);\n }\n if (result) {\n var signDisplay = stem.slice(0, 2);\n if (signDisplay === '+!') {\n result.signDisplay = 'always';\n stem = stem.slice(2);\n }\n else if (signDisplay === '+?') {\n result.signDisplay = 'exceptZero';\n stem = stem.slice(2);\n }\n if (!CONCISE_INTEGER_WIDTH_REGEX.test(stem)) {\n throw new Error('Malformed concise eng/scientific notation');\n }\n result.minimumIntegerDigits = stem.length;\n }\n return result;\n}\nfunction parseNotationOptions(opt) {\n var result = {};\n var signOpts = parseSign(opt);\n if (signOpts) {\n return signOpts;\n }\n return result;\n}\n/**\n * https://github.com/unicode-org/icu/blob/master/docs/userguide/format_parse/numbers/skeletons.md#skeleton-stems-and-options\n */\nfunction parseNumberSkeleton(tokens) {\n var result = {};\n for (var _i = 0, tokens_1 = tokens; _i < tokens_1.length; _i++) {\n var token = tokens_1[_i];\n switch (token.stem) {\n case 'percent':\n case '%':\n result.style = 'percent';\n continue;\n case '%x100':\n result.style = 'percent';\n result.scale = 100;\n continue;\n case 'currency':\n result.style = 'currency';\n result.currency = token.options[0];\n continue;\n case 'group-off':\n case ',_':\n result.useGrouping = false;\n continue;\n case 'precision-integer':\n case '.':\n result.maximumFractionDigits = 0;\n continue;\n case 'measure-unit':\n case 'unit':\n result.style = 'unit';\n result.unit = icuUnitToEcma(token.options[0]);\n continue;\n case 'compact-short':\n case 'K':\n result.notation = 'compact';\n result.compactDisplay = 'short';\n continue;\n case 'compact-long':\n case 'KK':\n result.notation = 'compact';\n result.compactDisplay = 'long';\n continue;\n case 'scientific':\n result = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, result), { notation: 'scientific' }), token.options.reduce(function (all, opt) { return (tslib_1.__assign(tslib_1.__assign({}, all), parseNotationOptions(opt))); }, {}));\n continue;\n case 'engineering':\n result = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, result), { notation: 'engineering' }), token.options.reduce(function (all, opt) { return (tslib_1.__assign(tslib_1.__assign({}, all), parseNotationOptions(opt))); }, {}));\n continue;\n case 'notation-simple':\n result.notation = 'standard';\n continue;\n // https://github.com/unicode-org/icu/blob/master/icu4c/source/i18n/unicode/unumberformatter.h\n case 'unit-width-narrow':\n result.currencyDisplay = 'narrowSymbol';\n result.unitDisplay = 'narrow';\n continue;\n case 'unit-width-short':\n result.currencyDisplay = 'code';\n result.unitDisplay = 'short';\n continue;\n case 'unit-width-full-name':\n result.currencyDisplay = 'name';\n result.unitDisplay = 'long';\n continue;\n case 'unit-width-iso-code':\n result.currencyDisplay = 'symbol';\n continue;\n case 'scale':\n result.scale = parseFloat(token.options[0]);\n continue;\n case 'rounding-mode-floor':\n result.roundingMode = 'floor';\n continue;\n case 'rounding-mode-ceiling':\n result.roundingMode = 'ceil';\n continue;\n case 'rounding-mode-down':\n result.roundingMode = 'trunc';\n continue;\n case 'rounding-mode-up':\n result.roundingMode = 'expand';\n continue;\n case 'rounding-mode-half-even':\n result.roundingMode = 'halfEven';\n continue;\n case 'rounding-mode-half-down':\n result.roundingMode = 'halfTrunc';\n continue;\n case 'rounding-mode-half-up':\n result.roundingMode = 'halfExpand';\n continue;\n // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width\n case 'integer-width':\n if (token.options.length > 1) {\n throw new RangeError('integer-width stems only accept a single optional option');\n }\n token.options[0].replace(INTEGER_WIDTH_REGEX, function (_, g1, g2, g3, g4, g5) {\n if (g1) {\n result.minimumIntegerDigits = g2.length;\n }\n else if (g3 && g4) {\n throw new Error('We currently do not support maximum integer digits');\n }\n else if (g5) {\n throw new Error('We currently do not support exact integer digits');\n }\n return '';\n });\n continue;\n }\n // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#integer-width\n if (CONCISE_INTEGER_WIDTH_REGEX.test(token.stem)) {\n result.minimumIntegerDigits = token.stem.length;\n continue;\n }\n if (FRACTION_PRECISION_REGEX.test(token.stem)) {\n // Precision\n // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#fraction-precision\n // precision-integer case\n if (token.options.length > 1) {\n throw new RangeError('Fraction-precision stems only accept a single optional option');\n }\n token.stem.replace(FRACTION_PRECISION_REGEX, function (_, g1, g2, g3, g4, g5) {\n // .000* case (before ICU67 it was .000+)\n if (g2 === '*') {\n result.minimumFractionDigits = g1.length;\n }\n // .### case\n else if (g3 && g3[0] === '#') {\n result.maximumFractionDigits = g3.length;\n }\n // .00## case\n else if (g4 && g5) {\n result.minimumFractionDigits = g4.length;\n result.maximumFractionDigits = g4.length + g5.length;\n }\n else {\n result.minimumFractionDigits = g1.length;\n result.maximumFractionDigits = g1.length;\n }\n return '';\n });\n var opt = token.options[0];\n // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#trailing-zero-display\n if (opt === 'w') {\n result = tslib_1.__assign(tslib_1.__assign({}, result), { trailingZeroDisplay: 'stripIfInteger' });\n }\n else if (opt) {\n result = tslib_1.__assign(tslib_1.__assign({}, result), parseSignificantPrecision(opt));\n }\n continue;\n }\n // https://unicode-org.github.io/icu/userguide/format_parse/numbers/skeletons.html#significant-digits-precision\n if (SIGNIFICANT_PRECISION_REGEX.test(token.stem)) {\n result = tslib_1.__assign(tslib_1.__assign({}, result), parseSignificantPrecision(token.stem));\n continue;\n }\n var signOpts = parseSign(token.stem);\n if (signOpts) {\n result = tslib_1.__assign(tslib_1.__assign({}, result), signOpts);\n }\n var conciseScientificAndEngineeringOpts = parseConciseScientificAndEngineeringStem(token.stem);\n if (conciseScientificAndEngineeringOpts) {\n result = tslib_1.__assign(tslib_1.__assign({}, result), conciseScientificAndEngineeringOpts);\n }\n }\n return result;\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar tslib_1 = require(\"tslib\");\ntslib_1.__exportStar(require(\"./date-time\"), exports);\ntslib_1.__exportStar(require(\"./number\"), exports);\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.timeData = void 0;\n// @generated from time-data-gen.ts\n// prettier-ignore \nexports.timeData = {\n \"001\": [\n \"H\",\n \"h\"\n ],\n \"419\": [\n \"h\",\n \"H\",\n \"hB\",\n \"hb\"\n ],\n \"AC\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"AD\": [\n \"H\",\n \"hB\"\n ],\n \"AE\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"AF\": [\n \"H\",\n \"hb\",\n \"hB\",\n \"h\"\n ],\n \"AG\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"AI\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"AL\": [\n \"h\",\n \"H\",\n \"hB\"\n ],\n \"AM\": [\n \"H\",\n \"hB\"\n ],\n \"AO\": [\n \"H\",\n \"hB\"\n ],\n \"AR\": [\n \"h\",\n \"H\",\n \"hB\",\n \"hb\"\n ],\n \"AS\": [\n \"h\",\n \"H\"\n ],\n \"AT\": [\n \"H\",\n \"hB\"\n ],\n \"AU\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"AW\": [\n \"H\",\n \"hB\"\n ],\n \"AX\": [\n \"H\"\n ],\n \"AZ\": [\n \"H\",\n \"hB\",\n \"h\"\n ],\n \"BA\": [\n \"H\",\n \"hB\",\n \"h\"\n ],\n \"BB\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"BD\": [\n \"h\",\n \"hB\",\n \"H\"\n ],\n \"BE\": [\n \"H\",\n \"hB\"\n ],\n \"BF\": [\n \"H\",\n \"hB\"\n ],\n \"BG\": [\n \"H\",\n \"hB\",\n \"h\"\n ],\n \"BH\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"BI\": [\n \"H\",\n \"h\"\n ],\n \"BJ\": [\n \"H\",\n \"hB\"\n ],\n \"BL\": [\n \"H\",\n \"hB\"\n ],\n \"BM\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"BN\": [\n \"hb\",\n \"hB\",\n \"h\",\n \"H\"\n ],\n \"BO\": [\n \"h\",\n \"H\",\n \"hB\",\n \"hb\"\n ],\n \"BQ\": [\n \"H\"\n ],\n \"BR\": [\n \"H\",\n \"hB\"\n ],\n \"BS\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"BT\": [\n \"h\",\n \"H\"\n ],\n \"BW\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"BY\": [\n \"H\",\n \"h\"\n ],\n \"BZ\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"CA\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"CC\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"CD\": [\n \"hB\",\n \"H\"\n ],\n \"CF\": [\n \"H\",\n \"h\",\n \"hB\"\n ],\n \"CG\": [\n \"H\",\n \"hB\"\n ],\n \"CH\": [\n \"H\",\n \"hB\",\n \"h\"\n ],\n \"CI\": [\n \"H\",\n \"hB\"\n ],\n \"CK\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"CL\": [\n \"h\",\n \"H\",\n \"hB\",\n \"hb\"\n ],\n \"CM\": [\n \"H\",\n \"h\",\n \"hB\"\n ],\n \"CN\": [\n \"H\",\n \"hB\",\n \"hb\",\n \"h\"\n ],\n \"CO\": [\n \"h\",\n \"H\",\n \"hB\",\n \"hb\"\n ],\n \"CP\": [\n \"H\"\n ],\n \"CR\": [\n \"h\",\n \"H\",\n \"hB\",\n \"hb\"\n ],\n \"CU\": [\n \"h\",\n \"H\",\n \"hB\",\n \"hb\"\n ],\n \"CV\": [\n \"H\",\n \"hB\"\n ],\n \"CW\": [\n \"H\",\n \"hB\"\n ],\n \"CX\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"CY\": [\n \"h\",\n \"H\",\n \"hb\",\n \"hB\"\n ],\n \"CZ\": [\n \"H\"\n ],\n \"DE\": [\n \"H\",\n \"hB\"\n ],\n \"DG\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"DJ\": [\n \"h\",\n \"H\"\n ],\n \"DK\": [\n \"H\"\n ],\n \"DM\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"DO\": [\n \"h\",\n \"H\",\n \"hB\",\n \"hb\"\n ],\n \"DZ\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"EA\": [\n \"H\",\n \"h\",\n \"hB\",\n \"hb\"\n ],\n \"EC\": [\n \"h\",\n \"H\",\n \"hB\",\n \"hb\"\n ],\n \"EE\": [\n \"H\",\n \"hB\"\n ],\n \"EG\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"EH\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"ER\": [\n \"h\",\n \"H\"\n ],\n \"ES\": [\n \"H\",\n \"hB\",\n \"h\",\n \"hb\"\n ],\n \"ET\": [\n \"hB\",\n \"hb\",\n \"h\",\n \"H\"\n ],\n \"FI\": [\n \"H\"\n ],\n \"FJ\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"FK\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"FM\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"FO\": [\n \"H\",\n \"h\"\n ],\n \"FR\": [\n \"H\",\n \"hB\"\n ],\n \"GA\": [\n \"H\",\n \"hB\"\n ],\n \"GB\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"GD\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"GE\": [\n \"H\",\n \"hB\",\n \"h\"\n ],\n \"GF\": [\n \"H\",\n \"hB\"\n ],\n \"GG\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"GH\": [\n \"h\",\n \"H\"\n ],\n \"GI\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"GL\": [\n \"H\",\n \"h\"\n ],\n \"GM\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"GN\": [\n \"H\",\n \"hB\"\n ],\n \"GP\": [\n \"H\",\n \"hB\"\n ],\n \"GQ\": [\n \"H\",\n \"hB\",\n \"h\",\n \"hb\"\n ],\n \"GR\": [\n \"h\",\n \"H\",\n \"hb\",\n \"hB\"\n ],\n \"GT\": [\n \"h\",\n \"H\",\n \"hB\",\n \"hb\"\n ],\n \"GU\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"GW\": [\n \"H\",\n \"hB\"\n ],\n \"GY\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"HK\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"HN\": [\n \"h\",\n \"H\",\n \"hB\",\n \"hb\"\n ],\n \"HR\": [\n \"H\",\n \"hB\"\n ],\n \"HU\": [\n \"H\",\n \"h\"\n ],\n \"IC\": [\n \"H\",\n \"h\",\n \"hB\",\n \"hb\"\n ],\n \"ID\": [\n \"H\"\n ],\n \"IE\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"IL\": [\n \"H\",\n \"hB\"\n ],\n \"IM\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"IN\": [\n \"h\",\n \"H\"\n ],\n \"IO\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"IQ\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"IR\": [\n \"hB\",\n \"H\"\n ],\n \"IS\": [\n \"H\"\n ],\n \"IT\": [\n \"H\",\n \"hB\"\n ],\n \"JE\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"JM\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"JO\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"JP\": [\n \"H\",\n \"K\",\n \"h\"\n ],\n \"KE\": [\n \"hB\",\n \"hb\",\n \"H\",\n \"h\"\n ],\n \"KG\": [\n \"H\",\n \"h\",\n \"hB\",\n \"hb\"\n ],\n \"KH\": [\n \"hB\",\n \"h\",\n \"H\",\n \"hb\"\n ],\n \"KI\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"KM\": [\n \"H\",\n \"h\",\n \"hB\",\n \"hb\"\n ],\n \"KN\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"KP\": [\n \"h\",\n \"H\",\n \"hB\",\n \"hb\"\n ],\n \"KR\": [\n \"h\",\n \"H\",\n \"hB\",\n \"hb\"\n ],\n \"KW\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"KY\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"KZ\": [\n \"H\",\n \"hB\"\n ],\n \"LA\": [\n \"H\",\n \"hb\",\n \"hB\",\n \"h\"\n ],\n \"LB\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"LC\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"LI\": [\n \"H\",\n \"hB\",\n \"h\"\n ],\n \"LK\": [\n \"H\",\n \"h\",\n \"hB\",\n \"hb\"\n ],\n \"LR\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"LS\": [\n \"h\",\n \"H\"\n ],\n \"LT\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"LU\": [\n \"H\",\n \"h\",\n \"hB\"\n ],\n \"LV\": [\n \"H\",\n \"hB\",\n \"hb\",\n \"h\"\n ],\n \"LY\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"MA\": [\n \"H\",\n \"h\",\n \"hB\",\n \"hb\"\n ],\n \"MC\": [\n \"H\",\n \"hB\"\n ],\n \"MD\": [\n \"H\",\n \"hB\"\n ],\n \"ME\": [\n \"H\",\n \"hB\",\n \"h\"\n ],\n \"MF\": [\n \"H\",\n \"hB\"\n ],\n \"MG\": [\n \"H\",\n \"h\"\n ],\n \"MH\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"MK\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"ML\": [\n \"H\"\n ],\n \"MM\": [\n \"hB\",\n \"hb\",\n \"H\",\n \"h\"\n ],\n \"MN\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"MO\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"MP\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"MQ\": [\n \"H\",\n \"hB\"\n ],\n \"MR\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"MS\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"MT\": [\n \"H\",\n \"h\"\n ],\n \"MU\": [\n \"H\",\n \"h\"\n ],\n \"MV\": [\n \"H\",\n \"h\"\n ],\n \"MW\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"MX\": [\n \"h\",\n \"H\",\n \"hB\",\n \"hb\"\n ],\n \"MY\": [\n \"hb\",\n \"hB\",\n \"h\",\n \"H\"\n ],\n \"MZ\": [\n \"H\",\n \"hB\"\n ],\n \"NA\": [\n \"h\",\n \"H\",\n \"hB\",\n \"hb\"\n ],\n \"NC\": [\n \"H\",\n \"hB\"\n ],\n \"NE\": [\n \"H\"\n ],\n \"NF\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"NG\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"NI\": [\n \"h\",\n \"H\",\n \"hB\",\n \"hb\"\n ],\n \"NL\": [\n \"H\",\n \"hB\"\n ],\n \"NO\": [\n \"H\",\n \"h\"\n ],\n \"NP\": [\n \"H\",\n \"h\",\n \"hB\"\n ],\n \"NR\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"NU\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"NZ\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"OM\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"PA\": [\n \"h\",\n \"H\",\n \"hB\",\n \"hb\"\n ],\n \"PE\": [\n \"h\",\n \"H\",\n \"hB\",\n \"hb\"\n ],\n \"PF\": [\n \"H\",\n \"h\",\n \"hB\"\n ],\n \"PG\": [\n \"h\",\n \"H\"\n ],\n \"PH\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"PK\": [\n \"h\",\n \"hB\",\n \"H\"\n ],\n \"PL\": [\n \"H\",\n \"h\"\n ],\n \"PM\": [\n \"H\",\n \"hB\"\n ],\n \"PN\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"PR\": [\n \"h\",\n \"H\",\n \"hB\",\n \"hb\"\n ],\n \"PS\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"PT\": [\n \"H\",\n \"hB\"\n ],\n \"PW\": [\n \"h\",\n \"H\"\n ],\n \"PY\": [\n \"h\",\n \"H\",\n \"hB\",\n \"hb\"\n ],\n \"QA\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"RE\": [\n \"H\",\n \"hB\"\n ],\n \"RO\": [\n \"H\",\n \"hB\"\n ],\n \"RS\": [\n \"H\",\n \"hB\",\n \"h\"\n ],\n \"RU\": [\n \"H\"\n ],\n \"RW\": [\n \"H\",\n \"h\"\n ],\n \"SA\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"SB\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"SC\": [\n \"H\",\n \"h\",\n \"hB\"\n ],\n \"SD\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"SE\": [\n \"H\"\n ],\n \"SG\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"SH\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"SI\": [\n \"H\",\n \"hB\"\n ],\n \"SJ\": [\n \"H\"\n ],\n \"SK\": [\n \"H\"\n ],\n \"SL\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"SM\": [\n \"H\",\n \"h\",\n \"hB\"\n ],\n \"SN\": [\n \"H\",\n \"h\",\n \"hB\"\n ],\n \"SO\": [\n \"h\",\n \"H\"\n ],\n \"SR\": [\n \"H\",\n \"hB\"\n ],\n \"SS\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"ST\": [\n \"H\",\n \"hB\"\n ],\n \"SV\": [\n \"h\",\n \"H\",\n \"hB\",\n \"hb\"\n ],\n \"SX\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"SY\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"SZ\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"TA\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"TC\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"TD\": [\n \"h\",\n \"H\",\n \"hB\"\n ],\n \"TF\": [\n \"H\",\n \"h\",\n \"hB\"\n ],\n \"TG\": [\n \"H\",\n \"hB\"\n ],\n \"TH\": [\n \"H\",\n \"h\"\n ],\n \"TJ\": [\n \"H\",\n \"h\"\n ],\n \"TL\": [\n \"H\",\n \"hB\",\n \"hb\",\n \"h\"\n ],\n \"TM\": [\n \"H\",\n \"h\"\n ],\n \"TN\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"TO\": [\n \"h\",\n \"H\"\n ],\n \"TR\": [\n \"H\",\n \"hB\"\n ],\n \"TT\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"TW\": [\n \"hB\",\n \"hb\",\n \"h\",\n \"H\"\n ],\n \"TZ\": [\n \"hB\",\n \"hb\",\n \"H\",\n \"h\"\n ],\n \"UA\": [\n \"H\",\n \"hB\",\n \"h\"\n ],\n \"UG\": [\n \"hB\",\n \"hb\",\n \"H\",\n \"h\"\n ],\n \"UM\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"US\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"UY\": [\n \"h\",\n \"H\",\n \"hB\",\n \"hb\"\n ],\n \"UZ\": [\n \"H\",\n \"hB\",\n \"h\"\n ],\n \"VA\": [\n \"H\",\n \"h\",\n \"hB\"\n ],\n \"VC\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"VE\": [\n \"h\",\n \"H\",\n \"hB\",\n \"hb\"\n ],\n \"VG\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"VI\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"VN\": [\n \"H\",\n \"h\"\n ],\n \"VU\": [\n \"h\",\n \"H\"\n ],\n \"WF\": [\n \"H\",\n \"hB\"\n ],\n \"WS\": [\n \"h\",\n \"H\"\n ],\n \"XK\": [\n \"H\",\n \"hB\",\n \"h\"\n ],\n \"YE\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"YT\": [\n \"H\",\n \"hB\"\n ],\n \"ZA\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"ZM\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"ZW\": [\n \"H\",\n \"h\"\n ],\n \"af-ZA\": [\n \"H\",\n \"h\",\n \"hB\",\n \"hb\"\n ],\n \"ar-001\": [\n \"h\",\n \"hB\",\n \"hb\",\n \"H\"\n ],\n \"ca-ES\": [\n \"H\",\n \"h\",\n \"hB\"\n ],\n \"en-001\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"en-HK\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"en-IL\": [\n \"H\",\n \"h\",\n \"hb\",\n \"hB\"\n ],\n \"en-MY\": [\n \"h\",\n \"hb\",\n \"H\",\n \"hB\"\n ],\n \"es-BR\": [\n \"H\",\n \"h\",\n \"hB\",\n \"hb\"\n ],\n \"es-ES\": [\n \"H\",\n \"h\",\n \"hB\",\n \"hb\"\n ],\n \"es-GQ\": [\n \"H\",\n \"h\",\n \"hB\",\n \"hb\"\n ],\n \"fr-CA\": [\n \"H\",\n \"h\",\n \"hB\"\n ],\n \"gl-ES\": [\n \"H\",\n \"h\",\n \"hB\"\n ],\n \"gu-IN\": [\n \"hB\",\n \"hb\",\n \"h\",\n \"H\"\n ],\n \"hi-IN\": [\n \"hB\",\n \"h\",\n \"H\"\n ],\n \"it-CH\": [\n \"H\",\n \"h\",\n \"hB\"\n ],\n \"it-IT\": [\n \"H\",\n \"h\",\n \"hB\"\n ],\n \"kn-IN\": [\n \"hB\",\n \"h\",\n \"H\"\n ],\n \"ml-IN\": [\n \"hB\",\n \"h\",\n \"H\"\n ],\n \"mr-IN\": [\n \"hB\",\n \"hb\",\n \"h\",\n \"H\"\n ],\n \"pa-IN\": [\n \"hB\",\n \"hb\",\n \"h\",\n \"H\"\n ],\n \"ta-IN\": [\n \"hB\",\n \"h\",\n \"hb\",\n \"H\"\n ],\n \"te-IN\": [\n \"hB\",\n \"h\",\n \"H\"\n ],\n \"zu-ZA\": [\n \"H\",\n \"hB\",\n \"hb\",\n \"h\"\n ]\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getBestPattern = getBestPattern;\nvar time_data_generated_1 = require(\"./time-data.generated\");\n/**\n * Returns the best matching date time pattern if a date time skeleton\n * pattern is provided with a locale. Follows the Unicode specification:\n * https://www.unicode.org/reports/tr35/tr35-dates.html#table-mapping-requested-time-skeletons-to-patterns\n * @param skeleton date time skeleton pattern that possibly includes j, J or C\n * @param locale\n */\nfunction getBestPattern(skeleton, locale) {\n var skeletonCopy = '';\n for (var patternPos = 0; patternPos < skeleton.length; patternPos++) {\n var patternChar = skeleton.charAt(patternPos);\n if (patternChar === 'j') {\n var extraLength = 0;\n while (patternPos + 1 < skeleton.length &&\n skeleton.charAt(patternPos + 1) === patternChar) {\n extraLength++;\n patternPos++;\n }\n var hourLen = 1 + (extraLength & 1);\n var dayPeriodLen = extraLength < 2 ? 1 : 3 + (extraLength >> 1);\n var dayPeriodChar = 'a';\n var hourChar = getDefaultHourSymbolFromLocale(locale);\n if (hourChar == 'H' || hourChar == 'k') {\n dayPeriodLen = 0;\n }\n while (dayPeriodLen-- > 0) {\n skeletonCopy += dayPeriodChar;\n }\n while (hourLen-- > 0) {\n skeletonCopy = hourChar + skeletonCopy;\n }\n }\n else if (patternChar === 'J') {\n skeletonCopy += 'H';\n }\n else {\n skeletonCopy += patternChar;\n }\n }\n return skeletonCopy;\n}\n/**\n * Maps the [hour cycle type](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/hourCycle)\n * of the given `locale` to the corresponding time pattern.\n * @param locale\n */\nfunction getDefaultHourSymbolFromLocale(locale) {\n var hourCycle = locale.hourCycle;\n if (hourCycle === undefined &&\n // @ts-ignore hourCycle(s) is not identified yet\n locale.hourCycles &&\n // @ts-ignore\n locale.hourCycles.length) {\n // @ts-ignore\n hourCycle = locale.hourCycles[0];\n }\n if (hourCycle) {\n switch (hourCycle) {\n case 'h24':\n return 'k';\n case 'h23':\n return 'H';\n case 'h12':\n return 'h';\n case 'h11':\n return 'K';\n default:\n throw new Error('Invalid hourCycle');\n }\n }\n // TODO: Once hourCycle is fully supported remove the following with data generation\n var languageTag = locale.language;\n var regionTag;\n if (languageTag !== 'root') {\n regionTag = locale.maximize().region;\n }\n var hourCycles = time_data_generated_1.timeData[regionTag || ''] ||\n time_data_generated_1.timeData[languageTag || ''] ||\n time_data_generated_1.timeData[\"\".concat(languageTag, \"-001\")] ||\n time_data_generated_1.timeData['001'];\n return hourCycles[0];\n}\n","\"use strict\";\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Parser = void 0;\nvar tslib_1 = require(\"tslib\");\nvar error_1 = require(\"./error\");\nvar types_1 = require(\"./types\");\nvar regex_generated_1 = require(\"./regex.generated\");\nvar icu_skeleton_parser_1 = require(\"@formatjs/icu-skeleton-parser\");\nvar date_time_pattern_generator_1 = require(\"./date-time-pattern-generator\");\nvar SPACE_SEPARATOR_START_REGEX = new RegExp(\"^\".concat(regex_generated_1.SPACE_SEPARATOR_REGEX.source, \"*\"));\nvar SPACE_SEPARATOR_END_REGEX = new RegExp(\"\".concat(regex_generated_1.SPACE_SEPARATOR_REGEX.source, \"*$\"));\nfunction createLocation(start, end) {\n return { start: start, end: end };\n}\n// #region Ponyfills\n// Consolidate these variables up top for easier toggling during debugging\nvar hasNativeStartsWith = !!String.prototype.startsWith && '_a'.startsWith('a', 1);\nvar hasNativeFromCodePoint = !!String.fromCodePoint;\nvar hasNativeFromEntries = !!Object.fromEntries;\nvar hasNativeCodePointAt = !!String.prototype.codePointAt;\nvar hasTrimStart = !!String.prototype.trimStart;\nvar hasTrimEnd = !!String.prototype.trimEnd;\nvar hasNativeIsSafeInteger = !!Number.isSafeInteger;\nvar isSafeInteger = hasNativeIsSafeInteger\n ? Number.isSafeInteger\n : function (n) {\n return (typeof n === 'number' &&\n isFinite(n) &&\n Math.floor(n) === n &&\n Math.abs(n) <= 0x1fffffffffffff);\n };\n// IE11 does not support y and u.\nvar REGEX_SUPPORTS_U_AND_Y = true;\ntry {\n var re = RE('([^\\\\p{White_Space}\\\\p{Pattern_Syntax}]*)', 'yu');\n /**\n * legacy Edge or Xbox One browser\n * Unicode flag support: supported\n * Pattern_Syntax support: not supported\n * See https://github.com/formatjs/formatjs/issues/2822\n */\n REGEX_SUPPORTS_U_AND_Y = ((_a = re.exec('a')) === null || _a === void 0 ? void 0 : _a[0]) === 'a';\n}\ncatch (_) {\n REGEX_SUPPORTS_U_AND_Y = false;\n}\nvar startsWith = hasNativeStartsWith\n ? // Native\n function startsWith(s, search, position) {\n return s.startsWith(search, position);\n }\n : // For IE11\n function startsWith(s, search, position) {\n return s.slice(position, position + search.length) === search;\n };\nvar fromCodePoint = hasNativeFromCodePoint\n ? String.fromCodePoint\n : // IE11\n function fromCodePoint() {\n var codePoints = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n codePoints[_i] = arguments[_i];\n }\n var elements = '';\n var length = codePoints.length;\n var i = 0;\n var code;\n while (length > i) {\n code = codePoints[i++];\n if (code > 0x10ffff)\n throw RangeError(code + ' is not a valid code point');\n elements +=\n code < 0x10000\n ? String.fromCharCode(code)\n : String.fromCharCode(((code -= 0x10000) >> 10) + 0xd800, (code % 0x400) + 0xdc00);\n }\n return elements;\n };\nvar fromEntries = \n// native\nhasNativeFromEntries\n ? Object.fromEntries\n : // Ponyfill\n function fromEntries(entries) {\n var obj = {};\n for (var _i = 0, entries_1 = entries; _i < entries_1.length; _i++) {\n var _a = entries_1[_i], k = _a[0], v = _a[1];\n obj[k] = v;\n }\n return obj;\n };\nvar codePointAt = hasNativeCodePointAt\n ? // Native\n function codePointAt(s, index) {\n return s.codePointAt(index);\n }\n : // IE 11\n function codePointAt(s, index) {\n var size = s.length;\n if (index < 0 || index >= size) {\n return undefined;\n }\n var first = s.charCodeAt(index);\n var second;\n return first < 0xd800 ||\n first > 0xdbff ||\n index + 1 === size ||\n (second = s.charCodeAt(index + 1)) < 0xdc00 ||\n second > 0xdfff\n ? first\n : ((first - 0xd800) << 10) + (second - 0xdc00) + 0x10000;\n };\nvar trimStart = hasTrimStart\n ? // Native\n function trimStart(s) {\n return s.trimStart();\n }\n : // Ponyfill\n function trimStart(s) {\n return s.replace(SPACE_SEPARATOR_START_REGEX, '');\n };\nvar trimEnd = hasTrimEnd\n ? // Native\n function trimEnd(s) {\n return s.trimEnd();\n }\n : // Ponyfill\n function trimEnd(s) {\n return s.replace(SPACE_SEPARATOR_END_REGEX, '');\n };\n// Prevent minifier to translate new RegExp to literal form that might cause syntax error on IE11.\nfunction RE(s, flag) {\n return new RegExp(s, flag);\n}\n// #endregion\nvar matchIdentifierAtIndex;\nif (REGEX_SUPPORTS_U_AND_Y) {\n // Native\n var IDENTIFIER_PREFIX_RE_1 = RE('([^\\\\p{White_Space}\\\\p{Pattern_Syntax}]*)', 'yu');\n matchIdentifierAtIndex = function matchIdentifierAtIndex(s, index) {\n var _a;\n IDENTIFIER_PREFIX_RE_1.lastIndex = index;\n var match = IDENTIFIER_PREFIX_RE_1.exec(s);\n return (_a = match[1]) !== null && _a !== void 0 ? _a : '';\n };\n}\nelse {\n // IE11\n matchIdentifierAtIndex = function matchIdentifierAtIndex(s, index) {\n var match = [];\n while (true) {\n var c = codePointAt(s, index);\n if (c === undefined || _isWhiteSpace(c) || _isPatternSyntax(c)) {\n break;\n }\n match.push(c);\n index += c >= 0x10000 ? 2 : 1;\n }\n return fromCodePoint.apply(void 0, match);\n };\n}\nvar Parser = /** @class */ (function () {\n function Parser(message, options) {\n if (options === void 0) { options = {}; }\n this.message = message;\n this.position = { offset: 0, line: 1, column: 1 };\n this.ignoreTag = !!options.ignoreTag;\n this.locale = options.locale;\n this.requiresOtherClause = !!options.requiresOtherClause;\n this.shouldParseSkeletons = !!options.shouldParseSkeletons;\n }\n Parser.prototype.parse = function () {\n if (this.offset() !== 0) {\n throw Error('parser can only be used once');\n }\n return this.parseMessage(0, '', false);\n };\n Parser.prototype.parseMessage = function (nestingLevel, parentArgType, expectingCloseTag) {\n var elements = [];\n while (!this.isEOF()) {\n var char = this.char();\n if (char === 123 /* `{` */) {\n var result = this.parseArgument(nestingLevel, expectingCloseTag);\n if (result.err) {\n return result;\n }\n elements.push(result.val);\n }\n else if (char === 125 /* `}` */ && nestingLevel > 0) {\n break;\n }\n else if (char === 35 /* `#` */ &&\n (parentArgType === 'plural' || parentArgType === 'selectordinal')) {\n var position = this.clonePosition();\n this.bump();\n elements.push({\n type: types_1.TYPE.pound,\n location: createLocation(position, this.clonePosition()),\n });\n }\n else if (char === 60 /* `<` */ &&\n !this.ignoreTag &&\n this.peek() === 47 // char code for '/'\n ) {\n if (expectingCloseTag) {\n break;\n }\n else {\n return this.error(error_1.ErrorKind.UNMATCHED_CLOSING_TAG, createLocation(this.clonePosition(), this.clonePosition()));\n }\n }\n else if (char === 60 /* `<` */ &&\n !this.ignoreTag &&\n _isAlpha(this.peek() || 0)) {\n var result = this.parseTag(nestingLevel, parentArgType);\n if (result.err) {\n return result;\n }\n elements.push(result.val);\n }\n else {\n var result = this.parseLiteral(nestingLevel, parentArgType);\n if (result.err) {\n return result;\n }\n elements.push(result.val);\n }\n }\n return { val: elements, err: null };\n };\n /**\n * A tag name must start with an ASCII lower/upper case letter. The grammar is based on the\n * [custom element name][] except that a dash is NOT always mandatory and uppercase letters\n * are accepted:\n *\n * ```\n * tag ::= \"<\" tagName (whitespace)* \"/>\" | \"<\" tagName (whitespace)* \">\" message \"</\" tagName (whitespace)* \">\"\n * tagName ::= [a-z] (PENChar)*\n * PENChar ::=\n * \"-\" | \".\" | [0-9] | \"_\" | [a-z] | [A-Z] | #xB7 | [#xC0-#xD6] | [#xD8-#xF6] | [#xF8-#x37D] |\n * [#x37F-#x1FFF] | [#x200C-#x200D] | [#x203F-#x2040] | [#x2070-#x218F] | [#x2C00-#x2FEF] |\n * [#x3001-#xD7FF] | [#xF900-#xFDCF] | [#xFDF0-#xFFFD] | [#x10000-#xEFFFF]\n * ```\n *\n * [custom element name]: https://html.spec.whatwg.org/multipage/custom-elements.html#valid-custom-element-name\n * NOTE: We're a bit more lax here since HTML technically does not allow uppercase HTML element but we do\n * since other tag-based engines like React allow it\n */\n Parser.prototype.parseTag = function (nestingLevel, parentArgType) {\n var startPosition = this.clonePosition();\n this.bump(); // `<`\n var tagName = this.parseTagName();\n this.bumpSpace();\n if (this.bumpIf('/>')) {\n // Self closing tag\n return {\n val: {\n type: types_1.TYPE.literal,\n value: \"<\".concat(tagName, \"/>\"),\n location: createLocation(startPosition, this.clonePosition()),\n },\n err: null,\n };\n }\n else if (this.bumpIf('>')) {\n var childrenResult = this.parseMessage(nestingLevel + 1, parentArgType, true);\n if (childrenResult.err) {\n return childrenResult;\n }\n var children = childrenResult.val;\n // Expecting a close tag\n var endTagStartPosition = this.clonePosition();\n if (this.bumpIf('</')) {\n if (this.isEOF() || !_isAlpha(this.char())) {\n return this.error(error_1.ErrorKind.INVALID_TAG, createLocation(endTagStartPosition, this.clonePosition()));\n }\n var closingTagNameStartPosition = this.clonePosition();\n var closingTagName = this.parseTagName();\n if (tagName !== closingTagName) {\n return this.error(error_1.ErrorKind.UNMATCHED_CLOSING_TAG, createLocation(closingTagNameStartPosition, this.clonePosition()));\n }\n this.bumpSpace();\n if (!this.bumpIf('>')) {\n return this.error(error_1.ErrorKind.INVALID_TAG, createLocation(endTagStartPosition, this.clonePosition()));\n }\n return {\n val: {\n type: types_1.TYPE.tag,\n value: tagName,\n children: children,\n location: createLocation(startPosition, this.clonePosition()),\n },\n err: null,\n };\n }\n else {\n return this.error(error_1.ErrorKind.UNCLOSED_TAG, createLocation(startPosition, this.clonePosition()));\n }\n }\n else {\n return this.error(error_1.ErrorKind.INVALID_TAG, createLocation(startPosition, this.clonePosition()));\n }\n };\n /**\n * This method assumes that the caller has peeked ahead for the first tag character.\n */\n Parser.prototype.parseTagName = function () {\n var startOffset = this.offset();\n this.bump(); // the first tag name character\n while (!this.isEOF() && _isPotentialElementNameChar(this.char())) {\n this.bump();\n }\n return this.message.slice(startOffset, this.offset());\n };\n Parser.prototype.parseLiteral = function (nestingLevel, parentArgType) {\n var start = this.clonePosition();\n var value = '';\n while (true) {\n var parseQuoteResult = this.tryParseQuote(parentArgType);\n if (parseQuoteResult) {\n value += parseQuoteResult;\n continue;\n }\n var parseUnquotedResult = this.tryParseUnquoted(nestingLevel, parentArgType);\n if (parseUnquotedResult) {\n value += parseUnquotedResult;\n continue;\n }\n var parseLeftAngleResult = this.tryParseLeftAngleBracket();\n if (parseLeftAngleResult) {\n value += parseLeftAngleResult;\n continue;\n }\n break;\n }\n var location = createLocation(start, this.clonePosition());\n return {\n val: { type: types_1.TYPE.literal, value: value, location: location },\n err: null,\n };\n };\n Parser.prototype.tryParseLeftAngleBracket = function () {\n if (!this.isEOF() &&\n this.char() === 60 /* `<` */ &&\n (this.ignoreTag ||\n // If at the opening tag or closing tag position, bail.\n !_isAlphaOrSlash(this.peek() || 0))) {\n this.bump(); // `<`\n return '<';\n }\n return null;\n };\n /**\n * Starting with ICU 4.8, an ASCII apostrophe only starts quoted text if it immediately precedes\n * a character that requires quoting (that is, \"only where needed\"), and works the same in\n * nested messages as on the top level of the pattern. The new behavior is otherwise compatible.\n */\n Parser.prototype.tryParseQuote = function (parentArgType) {\n if (this.isEOF() || this.char() !== 39 /* `'` */) {\n return null;\n }\n // Parse escaped char following the apostrophe, or early return if there is no escaped char.\n // Check if is valid escaped character\n switch (this.peek()) {\n case 39 /* `'` */:\n // double quote, should return as a single quote.\n this.bump();\n this.bump();\n return \"'\";\n // '{', '<', '>', '}'\n case 123:\n case 60:\n case 62:\n case 125:\n break;\n case 35: // '#'\n if (parentArgType === 'plural' || parentArgType === 'selectordinal') {\n break;\n }\n return null;\n default:\n return null;\n }\n this.bump(); // apostrophe\n var codePoints = [this.char()]; // escaped char\n this.bump();\n // read chars until the optional closing apostrophe is found\n while (!this.isEOF()) {\n var ch = this.char();\n if (ch === 39 /* `'` */) {\n if (this.peek() === 39 /* `'` */) {\n codePoints.push(39);\n // Bump one more time because we need to skip 2 characters.\n this.bump();\n }\n else {\n // Optional closing apostrophe.\n this.bump();\n break;\n }\n }\n else {\n codePoints.push(ch);\n }\n this.bump();\n }\n return fromCodePoint.apply(void 0, codePoints);\n };\n Parser.prototype.tryParseUnquoted = function (nestingLevel, parentArgType) {\n if (this.isEOF()) {\n return null;\n }\n var ch = this.char();\n if (ch === 60 /* `<` */ ||\n ch === 123 /* `{` */ ||\n (ch === 35 /* `#` */ &&\n (parentArgType === 'plural' || parentArgType === 'selectordinal')) ||\n (ch === 125 /* `}` */ && nestingLevel > 0)) {\n return null;\n }\n else {\n this.bump();\n return fromCodePoint(ch);\n }\n };\n Parser.prototype.parseArgument = function (nestingLevel, expectingCloseTag) {\n var openingBracePosition = this.clonePosition();\n this.bump(); // `{`\n this.bumpSpace();\n if (this.isEOF()) {\n return this.error(error_1.ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, createLocation(openingBracePosition, this.clonePosition()));\n }\n if (this.char() === 125 /* `}` */) {\n this.bump();\n return this.error(error_1.ErrorKind.EMPTY_ARGUMENT, createLocation(openingBracePosition, this.clonePosition()));\n }\n // argument name\n var value = this.parseIdentifierIfPossible().value;\n if (!value) {\n return this.error(error_1.ErrorKind.MALFORMED_ARGUMENT, createLocation(openingBracePosition, this.clonePosition()));\n }\n this.bumpSpace();\n if (this.isEOF()) {\n return this.error(error_1.ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, createLocation(openingBracePosition, this.clonePosition()));\n }\n switch (this.char()) {\n // Simple argument: `{name}`\n case 125 /* `}` */: {\n this.bump(); // `}`\n return {\n val: {\n type: types_1.TYPE.argument,\n // value does not include the opening and closing braces.\n value: value,\n location: createLocation(openingBracePosition, this.clonePosition()),\n },\n err: null,\n };\n }\n // Argument with options: `{name, format, ...}`\n case 44 /* `,` */: {\n this.bump(); // `,`\n this.bumpSpace();\n if (this.isEOF()) {\n return this.error(error_1.ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, createLocation(openingBracePosition, this.clonePosition()));\n }\n return this.parseArgumentOptions(nestingLevel, expectingCloseTag, value, openingBracePosition);\n }\n default:\n return this.error(error_1.ErrorKind.MALFORMED_ARGUMENT, createLocation(openingBracePosition, this.clonePosition()));\n }\n };\n /**\n * Advance the parser until the end of the identifier, if it is currently on\n * an identifier character. Return an empty string otherwise.\n */\n Parser.prototype.parseIdentifierIfPossible = function () {\n var startingPosition = this.clonePosition();\n var startOffset = this.offset();\n var value = matchIdentifierAtIndex(this.message, startOffset);\n var endOffset = startOffset + value.length;\n this.bumpTo(endOffset);\n var endPosition = this.clonePosition();\n var location = createLocation(startingPosition, endPosition);\n return { value: value, location: location };\n };\n Parser.prototype.parseArgumentOptions = function (nestingLevel, expectingCloseTag, value, openingBracePosition) {\n var _a;\n // Parse this range:\n // {name, type, style}\n // ^---^\n var typeStartPosition = this.clonePosition();\n var argType = this.parseIdentifierIfPossible().value;\n var typeEndPosition = this.clonePosition();\n switch (argType) {\n case '':\n // Expecting a style string number, date, time, plural, selectordinal, or select.\n return this.error(error_1.ErrorKind.EXPECT_ARGUMENT_TYPE, createLocation(typeStartPosition, typeEndPosition));\n case 'number':\n case 'date':\n case 'time': {\n // Parse this range:\n // {name, number, style}\n // ^-------^\n this.bumpSpace();\n var styleAndLocation = null;\n if (this.bumpIf(',')) {\n this.bumpSpace();\n var styleStartPosition = this.clonePosition();\n var result = this.parseSimpleArgStyleIfPossible();\n if (result.err) {\n return result;\n }\n var style = trimEnd(result.val);\n if (style.length === 0) {\n return this.error(error_1.ErrorKind.EXPECT_ARGUMENT_STYLE, createLocation(this.clonePosition(), this.clonePosition()));\n }\n var styleLocation = createLocation(styleStartPosition, this.clonePosition());\n styleAndLocation = { style: style, styleLocation: styleLocation };\n }\n var argCloseResult = this.tryParseArgumentClose(openingBracePosition);\n if (argCloseResult.err) {\n return argCloseResult;\n }\n var location_1 = createLocation(openingBracePosition, this.clonePosition());\n // Extract style or skeleton\n if (styleAndLocation && startsWith(styleAndLocation === null || styleAndLocation === void 0 ? void 0 : styleAndLocation.style, '::', 0)) {\n // Skeleton starts with `::`.\n var skeleton = trimStart(styleAndLocation.style.slice(2));\n if (argType === 'number') {\n var result = this.parseNumberSkeletonFromString(skeleton, styleAndLocation.styleLocation);\n if (result.err) {\n return result;\n }\n return {\n val: { type: types_1.TYPE.number, value: value, location: location_1, style: result.val },\n err: null,\n };\n }\n else {\n if (skeleton.length === 0) {\n return this.error(error_1.ErrorKind.EXPECT_DATE_TIME_SKELETON, location_1);\n }\n var dateTimePattern = skeleton;\n // Get \"best match\" pattern only if locale is passed, if not, let it\n // pass as-is where `parseDateTimeSkeleton()` will throw an error\n // for unsupported patterns.\n if (this.locale) {\n dateTimePattern = (0, date_time_pattern_generator_1.getBestPattern)(skeleton, this.locale);\n }\n var style = {\n type: types_1.SKELETON_TYPE.dateTime,\n pattern: dateTimePattern,\n location: styleAndLocation.styleLocation,\n parsedOptions: this.shouldParseSkeletons\n ? (0, icu_skeleton_parser_1.parseDateTimeSkeleton)(dateTimePattern)\n : {},\n };\n var type = argType === 'date' ? types_1.TYPE.date : types_1.TYPE.time;\n return {\n val: { type: type, value: value, location: location_1, style: style },\n err: null,\n };\n }\n }\n // Regular style or no style.\n return {\n val: {\n type: argType === 'number'\n ? types_1.TYPE.number\n : argType === 'date'\n ? types_1.TYPE.date\n : types_1.TYPE.time,\n value: value,\n location: location_1,\n style: (_a = styleAndLocation === null || styleAndLocation === void 0 ? void 0 : styleAndLocation.style) !== null && _a !== void 0 ? _a : null,\n },\n err: null,\n };\n }\n case 'plural':\n case 'selectordinal':\n case 'select': {\n // Parse this range:\n // {name, plural, options}\n // ^---------^\n var typeEndPosition_1 = this.clonePosition();\n this.bumpSpace();\n if (!this.bumpIf(',')) {\n return this.error(error_1.ErrorKind.EXPECT_SELECT_ARGUMENT_OPTIONS, createLocation(typeEndPosition_1, tslib_1.__assign({}, typeEndPosition_1)));\n }\n this.bumpSpace();\n // Parse offset:\n // {name, plural, offset:1, options}\n // ^-----^\n //\n // or the first option:\n //\n // {name, plural, one {...} other {...}}\n // ^--^\n var identifierAndLocation = this.parseIdentifierIfPossible();\n var pluralOffset = 0;\n if (argType !== 'select' && identifierAndLocation.value === 'offset') {\n if (!this.bumpIf(':')) {\n return this.error(error_1.ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, createLocation(this.clonePosition(), this.clonePosition()));\n }\n this.bumpSpace();\n var result = this.tryParseDecimalInteger(error_1.ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, error_1.ErrorKind.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);\n if (result.err) {\n return result;\n }\n // Parse another identifier for option parsing\n this.bumpSpace();\n identifierAndLocation = this.parseIdentifierIfPossible();\n pluralOffset = result.val;\n }\n var optionsResult = this.tryParsePluralOrSelectOptions(nestingLevel, argType, expectingCloseTag, identifierAndLocation);\n if (optionsResult.err) {\n return optionsResult;\n }\n var argCloseResult = this.tryParseArgumentClose(openingBracePosition);\n if (argCloseResult.err) {\n return argCloseResult;\n }\n var location_2 = createLocation(openingBracePosition, this.clonePosition());\n if (argType === 'select') {\n return {\n val: {\n type: types_1.TYPE.select,\n value: value,\n options: fromEntries(optionsResult.val),\n location: location_2,\n },\n err: null,\n };\n }\n else {\n return {\n val: {\n type: types_1.TYPE.plural,\n value: value,\n options: fromEntries(optionsResult.val),\n offset: pluralOffset,\n pluralType: argType === 'plural' ? 'cardinal' : 'ordinal',\n location: location_2,\n },\n err: null,\n };\n }\n }\n default:\n return this.error(error_1.ErrorKind.INVALID_ARGUMENT_TYPE, createLocation(typeStartPosition, typeEndPosition));\n }\n };\n Parser.prototype.tryParseArgumentClose = function (openingBracePosition) {\n // Parse: {value, number, ::currency/GBP }\n //\n if (this.isEOF() || this.char() !== 125 /* `}` */) {\n return this.error(error_1.ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, createLocation(openingBracePosition, this.clonePosition()));\n }\n this.bump(); // `}`\n return { val: true, err: null };\n };\n /**\n * See: https://github.com/unicode-org/icu/blob/af7ed1f6d2298013dc303628438ec4abe1f16479/icu4c/source/common/messagepattern.cpp#L659\n */\n Parser.prototype.parseSimpleArgStyleIfPossible = function () {\n var nestedBraces = 0;\n var startPosition = this.clonePosition();\n while (!this.isEOF()) {\n var ch = this.char();\n switch (ch) {\n case 39 /* `'` */: {\n // Treat apostrophe as quoting but include it in the style part.\n // Find the end of the quoted literal text.\n this.bump();\n var apostrophePosition = this.clonePosition();\n if (!this.bumpUntil(\"'\")) {\n return this.error(error_1.ErrorKind.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, createLocation(apostrophePosition, this.clonePosition()));\n }\n this.bump();\n break;\n }\n case 123 /* `{` */: {\n nestedBraces += 1;\n this.bump();\n break;\n }\n case 125 /* `}` */: {\n if (nestedBraces > 0) {\n nestedBraces -= 1;\n }\n else {\n return {\n val: this.message.slice(startPosition.offset, this.offset()),\n err: null,\n };\n }\n break;\n }\n default:\n this.bump();\n break;\n }\n }\n return {\n val: this.message.slice(startPosition.offset, this.offset()),\n err: null,\n };\n };\n Parser.prototype.parseNumberSkeletonFromString = function (skeleton, location) {\n var tokens = [];\n try {\n tokens = (0, icu_skeleton_parser_1.parseNumberSkeletonFromString)(skeleton);\n }\n catch (e) {\n return this.error(error_1.ErrorKind.INVALID_NUMBER_SKELETON, location);\n }\n return {\n val: {\n type: types_1.SKELETON_TYPE.number,\n tokens: tokens,\n location: location,\n parsedOptions: this.shouldParseSkeletons\n ? (0, icu_skeleton_parser_1.parseNumberSkeleton)(tokens)\n : {},\n },\n err: null,\n };\n };\n /**\n * @param nesting_level The current nesting level of messages.\n * This can be positive when parsing message fragment in select or plural argument options.\n * @param parent_arg_type The parent argument's type.\n * @param parsed_first_identifier If provided, this is the first identifier-like selector of\n * the argument. It is a by-product of a previous parsing attempt.\n * @param expecting_close_tag If true, this message is directly or indirectly nested inside\n * between a pair of opening and closing tags. The nested message will not parse beyond\n * the closing tag boundary.\n */\n Parser.prototype.tryParsePluralOrSelectOptions = function (nestingLevel, parentArgType, expectCloseTag, parsedFirstIdentifier) {\n var _a;\n var hasOtherClause = false;\n var options = [];\n var parsedSelectors = new Set();\n var selector = parsedFirstIdentifier.value, selectorLocation = parsedFirstIdentifier.location;\n // Parse:\n // one {one apple}\n // ^--^\n while (true) {\n if (selector.length === 0) {\n var startPosition = this.clonePosition();\n if (parentArgType !== 'select' && this.bumpIf('=')) {\n // Try parse `={number}` selector\n var result = this.tryParseDecimalInteger(error_1.ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR, error_1.ErrorKind.INVALID_PLURAL_ARGUMENT_SELECTOR);\n if (result.err) {\n return result;\n }\n selectorLocation = createLocation(startPosition, this.clonePosition());\n selector = this.message.slice(startPosition.offset, this.offset());\n }\n else {\n break;\n }\n }\n // Duplicate selector clauses\n if (parsedSelectors.has(selector)) {\n return this.error(parentArgType === 'select'\n ? error_1.ErrorKind.DUPLICATE_SELECT_ARGUMENT_SELECTOR\n : error_1.ErrorKind.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, selectorLocation);\n }\n if (selector === 'other') {\n hasOtherClause = true;\n }\n // Parse:\n // one {one apple}\n // ^----------^\n this.bumpSpace();\n var openingBracePosition = this.clonePosition();\n if (!this.bumpIf('{')) {\n return this.error(parentArgType === 'select'\n ? error_1.ErrorKind.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT\n : error_1.ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, createLocation(this.clonePosition(), this.clonePosition()));\n }\n var fragmentResult = this.parseMessage(nestingLevel + 1, parentArgType, expectCloseTag);\n if (fragmentResult.err) {\n return fragmentResult;\n }\n var argCloseResult = this.tryParseArgumentClose(openingBracePosition);\n if (argCloseResult.err) {\n return argCloseResult;\n }\n options.push([\n selector,\n {\n value: fragmentResult.val,\n location: createLocation(openingBracePosition, this.clonePosition()),\n },\n ]);\n // Keep track of the existing selectors\n parsedSelectors.add(selector);\n // Prep next selector clause.\n this.bumpSpace();\n (_a = this.parseIdentifierIfPossible(), selector = _a.value, selectorLocation = _a.location);\n }\n if (options.length === 0) {\n return this.error(parentArgType === 'select'\n ? error_1.ErrorKind.EXPECT_SELECT_ARGUMENT_SELECTOR\n : error_1.ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR, createLocation(this.clonePosition(), this.clonePosition()));\n }\n if (this.requiresOtherClause && !hasOtherClause) {\n return this.error(error_1.ErrorKind.MISSING_OTHER_CLAUSE, createLocation(this.clonePosition(), this.clonePosition()));\n }\n return { val: options, err: null };\n };\n Parser.prototype.tryParseDecimalInteger = function (expectNumberError, invalidNumberError) {\n var sign = 1;\n var startingPosition = this.clonePosition();\n if (this.bumpIf('+')) {\n }\n else if (this.bumpIf('-')) {\n sign = -1;\n }\n var hasDigits = false;\n var decimal = 0;\n while (!this.isEOF()) {\n var ch = this.char();\n if (ch >= 48 /* `0` */ && ch <= 57 /* `9` */) {\n hasDigits = true;\n decimal = decimal * 10 + (ch - 48);\n this.bump();\n }\n else {\n break;\n }\n }\n var location = createLocation(startingPosition, this.clonePosition());\n if (!hasDigits) {\n return this.error(expectNumberError, location);\n }\n decimal *= sign;\n if (!isSafeInteger(decimal)) {\n return this.error(invalidNumberError, location);\n }\n return { val: decimal, err: null };\n };\n Parser.prototype.offset = function () {\n return this.position.offset;\n };\n Parser.prototype.isEOF = function () {\n return this.offset() === this.message.length;\n };\n Parser.prototype.clonePosition = function () {\n // This is much faster than `Object.assign` or spread.\n return {\n offset: this.position.offset,\n line: this.position.line,\n column: this.position.column,\n };\n };\n /**\n * Return the code point at the current position of the parser.\n * Throws if the index is out of bound.\n */\n Parser.prototype.char = function () {\n var offset = this.position.offset;\n if (offset >= this.message.length) {\n throw Error('out of bound');\n }\n var code = codePointAt(this.message, offset);\n if (code === undefined) {\n throw Error(\"Offset \".concat(offset, \" is at invalid UTF-16 code unit boundary\"));\n }\n return code;\n };\n Parser.prototype.error = function (kind, location) {\n return {\n val: null,\n err: {\n kind: kind,\n message: this.message,\n location: location,\n },\n };\n };\n /** Bump the parser to the next UTF-16 code unit. */\n Parser.prototype.bump = function () {\n if (this.isEOF()) {\n return;\n }\n var code = this.char();\n if (code === 10 /* '\\n' */) {\n this.position.line += 1;\n this.position.column = 1;\n this.position.offset += 1;\n }\n else {\n this.position.column += 1;\n // 0 ~ 0x10000 -> unicode BMP, otherwise skip the surrogate pair.\n this.position.offset += code < 0x10000 ? 1 : 2;\n }\n };\n /**\n * If the substring starting at the current position of the parser has\n * the given prefix, then bump the parser to the character immediately\n * following the prefix and return true. Otherwise, don't bump the parser\n * and return false.\n */\n Parser.prototype.bumpIf = function (prefix) {\n if (startsWith(this.message, prefix, this.offset())) {\n for (var i = 0; i < prefix.length; i++) {\n this.bump();\n }\n return true;\n }\n return false;\n };\n /**\n * Bump the parser until the pattern character is found and return `true`.\n * Otherwise bump to the end of the file and return `false`.\n */\n Parser.prototype.bumpUntil = function (pattern) {\n var currentOffset = this.offset();\n var index = this.message.indexOf(pattern, currentOffset);\n if (index >= 0) {\n this.bumpTo(index);\n return true;\n }\n else {\n this.bumpTo(this.message.length);\n return false;\n }\n };\n /**\n * Bump the parser to the target offset.\n * If target offset is beyond the end of the input, bump the parser to the end of the input.\n */\n Parser.prototype.bumpTo = function (targetOffset) {\n if (this.offset() > targetOffset) {\n throw Error(\"targetOffset \".concat(targetOffset, \" must be greater than or equal to the current offset \").concat(this.offset()));\n }\n targetOffset = Math.min(targetOffset, this.message.length);\n while (true) {\n var offset = this.offset();\n if (offset === targetOffset) {\n break;\n }\n if (offset > targetOffset) {\n throw Error(\"targetOffset \".concat(targetOffset, \" is at invalid UTF-16 code unit boundary\"));\n }\n this.bump();\n if (this.isEOF()) {\n break;\n }\n }\n };\n /** advance the parser through all whitespace to the next non-whitespace code unit. */\n Parser.prototype.bumpSpace = function () {\n while (!this.isEOF() && _isWhiteSpace(this.char())) {\n this.bump();\n }\n };\n /**\n * Peek at the *next* Unicode codepoint in the input without advancing the parser.\n * If the input has been exhausted, then this returns null.\n */\n Parser.prototype.peek = function () {\n if (this.isEOF()) {\n return null;\n }\n var code = this.char();\n var offset = this.offset();\n var nextCode = this.message.charCodeAt(offset + (code >= 0x10000 ? 2 : 1));\n return nextCode !== null && nextCode !== void 0 ? nextCode : null;\n };\n return Parser;\n}());\nexports.Parser = Parser;\n/**\n * This check if codepoint is alphabet (lower & uppercase)\n * @param codepoint\n * @returns\n */\nfunction _isAlpha(codepoint) {\n return ((codepoint >= 97 && codepoint <= 122) ||\n (codepoint >= 65 && codepoint <= 90));\n}\nfunction _isAlphaOrSlash(codepoint) {\n return _isAlpha(codepoint) || codepoint === 47; /* '/' */\n}\n/** See `parseTag` function docs. */\nfunction _isPotentialElementNameChar(c) {\n return (c === 45 /* '-' */ ||\n c === 46 /* '.' */ ||\n (c >= 48 && c <= 57) /* 0..9 */ ||\n c === 95 /* '_' */ ||\n (c >= 97 && c <= 122) /** a..z */ ||\n (c >= 65 && c <= 90) /* A..Z */ ||\n c == 0xb7 ||\n (c >= 0xc0 && c <= 0xd6) ||\n (c >= 0xd8 && c <= 0xf6) ||\n (c >= 0xf8 && c <= 0x37d) ||\n (c >= 0x37f && c <= 0x1fff) ||\n (c >= 0x200c && c <= 0x200d) ||\n (c >= 0x203f && c <= 0x2040) ||\n (c >= 0x2070 && c <= 0x218f) ||\n (c >= 0x2c00 && c <= 0x2fef) ||\n (c >= 0x3001 && c <= 0xd7ff) ||\n (c >= 0xf900 && c <= 0xfdcf) ||\n (c >= 0xfdf0 && c <= 0xfffd) ||\n (c >= 0x10000 && c <= 0xeffff));\n}\n/**\n * Code point equivalent of regex `\\p{White_Space}`.\n * From: https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt\n */\nfunction _isWhiteSpace(c) {\n return ((c >= 0x0009 && c <= 0x000d) ||\n c === 0x0020 ||\n c === 0x0085 ||\n (c >= 0x200e && c <= 0x200f) ||\n c === 0x2028 ||\n c === 0x2029);\n}\n/**\n * Code point equivalent of regex `\\p{Pattern_Syntax}`.\n * See https://www.unicode.org/Public/UCD/latest/ucd/PropList.txt\n */\nfunction _isPatternSyntax(c) {\n return ((c >= 0x0021 && c <= 0x0023) ||\n c === 0x0024 ||\n (c >= 0x0025 && c <= 0x0027) ||\n c === 0x0028 ||\n c === 0x0029 ||\n c === 0x002a ||\n c === 0x002b ||\n c === 0x002c ||\n c === 0x002d ||\n (c >= 0x002e && c <= 0x002f) ||\n (c >= 0x003a && c <= 0x003b) ||\n (c >= 0x003c && c <= 0x003e) ||\n (c >= 0x003f && c <= 0x0040) ||\n c === 0x005b ||\n c === 0x005c ||\n c === 0x005d ||\n c === 0x005e ||\n c === 0x0060 ||\n c === 0x007b ||\n c === 0x007c ||\n c === 0x007d ||\n c === 0x007e ||\n c === 0x00a1 ||\n (c >= 0x00a2 && c <= 0x00a5) ||\n c === 0x00a6 ||\n c === 0x00a7 ||\n c === 0x00a9 ||\n c === 0x00ab ||\n c === 0x00ac ||\n c === 0x00ae ||\n c === 0x00b0 ||\n c === 0x00b1 ||\n c === 0x00b6 ||\n c === 0x00bb ||\n c === 0x00bf ||\n c === 0x00d7 ||\n c === 0x00f7 ||\n (c >= 0x2010 && c <= 0x2015) ||\n (c >= 0x2016 && c <= 0x2017) ||\n c === 0x2018 ||\n c === 0x2019 ||\n c === 0x201a ||\n (c >= 0x201b && c <= 0x201c) ||\n c === 0x201d ||\n c === 0x201e ||\n c === 0x201f ||\n (c >= 0x2020 && c <= 0x2027) ||\n (c >= 0x2030 && c <= 0x2038) ||\n c === 0x2039 ||\n c === 0x203a ||\n (c >= 0x203b && c <= 0x203e) ||\n (c >= 0x2041 && c <= 0x2043) ||\n c === 0x2044 ||\n c === 0x2045 ||\n c === 0x2046 ||\n (c >= 0x2047 && c <= 0x2051) ||\n c === 0x2052 ||\n c === 0x2053 ||\n (c >= 0x2055 && c <= 0x205e) ||\n (c >= 0x2190 && c <= 0x2194) ||\n (c >= 0x2195 && c <= 0x2199) ||\n (c >= 0x219a && c <= 0x219b) ||\n (c >= 0x219c && c <= 0x219f) ||\n c === 0x21a0 ||\n (c >= 0x21a1 && c <= 0x21a2) ||\n c === 0x21a3 ||\n (c >= 0x21a4 && c <= 0x21a5) ||\n c === 0x21a6 ||\n (c >= 0x21a7 && c <= 0x21ad) ||\n c === 0x21ae ||\n (c >= 0x21af && c <= 0x21cd) ||\n (c >= 0x21ce && c <= 0x21cf) ||\n (c >= 0x21d0 && c <= 0x21d1) ||\n c === 0x21d2 ||\n c === 0x21d3 ||\n c === 0x21d4 ||\n (c >= 0x21d5 && c <= 0x21f3) ||\n (c >= 0x21f4 && c <= 0x22ff) ||\n (c >= 0x2300 && c <= 0x2307) ||\n c === 0x2308 ||\n c === 0x2309 ||\n c === 0x230a ||\n c === 0x230b ||\n (c >= 0x230c && c <= 0x231f) ||\n (c >= 0x2320 && c <= 0x2321) ||\n (c >= 0x2322 && c <= 0x2328) ||\n c === 0x2329 ||\n c === 0x232a ||\n (c >= 0x232b && c <= 0x237b) ||\n c === 0x237c ||\n (c >= 0x237d && c <= 0x239a) ||\n (c >= 0x239b && c <= 0x23b3) ||\n (c >= 0x23b4 && c <= 0x23db) ||\n (c >= 0x23dc && c <= 0x23e1) ||\n (c >= 0x23e2 && c <= 0x2426) ||\n (c >= 0x2427 && c <= 0x243f) ||\n (c >= 0x2440 && c <= 0x244a) ||\n (c >= 0x244b && c <= 0x245f) ||\n (c >= 0x2500 && c <= 0x25b6) ||\n c === 0x25b7 ||\n (c >= 0x25b8 && c <= 0x25c0) ||\n c === 0x25c1 ||\n (c >= 0x25c2 && c <= 0x25f7) ||\n (c >= 0x25f8 && c <= 0x25ff) ||\n (c >= 0x2600 && c <= 0x266e) ||\n c === 0x266f ||\n (c >= 0x2670 && c <= 0x2767) ||\n c === 0x2768 ||\n c === 0x2769 ||\n c === 0x276a ||\n c === 0x276b ||\n c === 0x276c ||\n c === 0x276d ||\n c === 0x276e ||\n c === 0x276f ||\n c === 0x2770 ||\n c === 0x2771 ||\n c === 0x2772 ||\n c === 0x2773 ||\n c === 0x2774 ||\n c === 0x2775 ||\n (c >= 0x2794 && c <= 0x27bf) ||\n (c >= 0x27c0 && c <= 0x27c4) ||\n c === 0x27c5 ||\n c === 0x27c6 ||\n (c >= 0x27c7 && c <= 0x27e5) ||\n c === 0x27e6 ||\n c === 0x27e7 ||\n c === 0x27e8 ||\n c === 0x27e9 ||\n c === 0x27ea ||\n c === 0x27eb ||\n c === 0x27ec ||\n c === 0x27ed ||\n c === 0x27ee ||\n c === 0x27ef ||\n (c >= 0x27f0 && c <= 0x27ff) ||\n (c >= 0x2800 && c <= 0x28ff) ||\n (c >= 0x2900 && c <= 0x2982) ||\n c === 0x2983 ||\n c === 0x2984 ||\n c === 0x2985 ||\n c === 0x2986 ||\n c === 0x2987 ||\n c === 0x2988 ||\n c === 0x2989 ||\n c === 0x298a ||\n c === 0x298b ||\n c === 0x298c ||\n c === 0x298d ||\n c === 0x298e ||\n c === 0x298f ||\n c === 0x2990 ||\n c === 0x2991 ||\n c === 0x2992 ||\n c === 0x2993 ||\n c === 0x2994 ||\n c === 0x2995 ||\n c === 0x2996 ||\n c === 0x2997 ||\n c === 0x2998 ||\n (c >= 0x2999 && c <= 0x29d7) ||\n c === 0x29d8 ||\n c === 0x29d9 ||\n c === 0x29da ||\n c === 0x29db ||\n (c >= 0x29dc && c <= 0x29fb) ||\n c === 0x29fc ||\n c === 0x29fd ||\n (c >= 0x29fe && c <= 0x2aff) ||\n (c >= 0x2b00 && c <= 0x2b2f) ||\n (c >= 0x2b30 && c <= 0x2b44) ||\n (c >= 0x2b45 && c <= 0x2b46) ||\n (c >= 0x2b47 && c <= 0x2b4c) ||\n (c >= 0x2b4d && c <= 0x2b73) ||\n (c >= 0x2b74 && c <= 0x2b75) ||\n (c >= 0x2b76 && c <= 0x2b95) ||\n c === 0x2b96 ||\n (c >= 0x2b97 && c <= 0x2bff) ||\n (c >= 0x2e00 && c <= 0x2e01) ||\n c === 0x2e02 ||\n c === 0x2e03 ||\n c === 0x2e04 ||\n c === 0x2e05 ||\n (c >= 0x2e06 && c <= 0x2e08) ||\n c === 0x2e09 ||\n c === 0x2e0a ||\n c === 0x2e0b ||\n c === 0x2e0c ||\n c === 0x2e0d ||\n (c >= 0x2e0e && c <= 0x2e16) ||\n c === 0x2e17 ||\n (c >= 0x2e18 && c <= 0x2e19) ||\n c === 0x2e1a ||\n c === 0x2e1b ||\n c === 0x2e1c ||\n c === 0x2e1d ||\n (c >= 0x2e1e && c <= 0x2e1f) ||\n c === 0x2e20 ||\n c === 0x2e21 ||\n c === 0x2e22 ||\n c === 0x2e23 ||\n c === 0x2e24 ||\n c === 0x2e25 ||\n c === 0x2e26 ||\n c === 0x2e27 ||\n c === 0x2e28 ||\n c === 0x2e29 ||\n (c >= 0x2e2a && c <= 0x2e2e) ||\n c === 0x2e2f ||\n (c >= 0x2e30 && c <= 0x2e39) ||\n (c >= 0x2e3a && c <= 0x2e3b) ||\n (c >= 0x2e3c && c <= 0x2e3f) ||\n c === 0x2e40 ||\n c === 0x2e41 ||\n c === 0x2e42 ||\n (c >= 0x2e43 && c <= 0x2e4f) ||\n (c >= 0x2e50 && c <= 0x2e51) ||\n c === 0x2e52 ||\n (c >= 0x2e53 && c <= 0x2e7f) ||\n (c >= 0x3001 && c <= 0x3003) ||\n c === 0x3008 ||\n c === 0x3009 ||\n c === 0x300a ||\n c === 0x300b ||\n c === 0x300c ||\n c === 0x300d ||\n c === 0x300e ||\n c === 0x300f ||\n c === 0x3010 ||\n c === 0x3011 ||\n (c >= 0x3012 && c <= 0x3013) ||\n c === 0x3014 ||\n c === 0x3015 ||\n c === 0x3016 ||\n c === 0x3017 ||\n c === 0x3018 ||\n c === 0x3019 ||\n c === 0x301a ||\n c === 0x301b ||\n c === 0x301c ||\n c === 0x301d ||\n (c >= 0x301e && c <= 0x301f) ||\n c === 0x3020 ||\n c === 0x3030 ||\n c === 0xfd3e ||\n c === 0xfd3f ||\n (c >= 0xfe45 && c <= 0xfe46));\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.hoistSelectors = hoistSelectors;\nexports.isStructurallySame = isStructurallySame;\nvar tslib_1 = require(\"tslib\");\nvar types_1 = require(\"./types\");\nfunction cloneDeep(obj) {\n if (Array.isArray(obj)) {\n // @ts-expect-error meh\n return tslib_1.__spreadArray([], obj.map(cloneDeep), true);\n }\n if (obj !== null && typeof obj === 'object') {\n // @ts-expect-error meh\n return Object.keys(obj).reduce(function (cloned, k) {\n // @ts-expect-error meh\n cloned[k] = cloneDeep(obj[k]);\n return cloned;\n }, {});\n }\n return obj;\n}\nfunction hoistPluralOrSelectElement(ast, el, positionToInject) {\n // pull this out of the ast and move it to the top\n var cloned = cloneDeep(el);\n var options = cloned.options;\n cloned.options = Object.keys(options).reduce(function (all, k) {\n var newValue = hoistSelectors(tslib_1.__spreadArray(tslib_1.__spreadArray(tslib_1.__spreadArray([], ast.slice(0, positionToInject), true), options[k].value, true), ast.slice(positionToInject + 1), true));\n all[k] = {\n value: newValue,\n };\n return all;\n }, {});\n return cloned;\n}\nfunction isPluralOrSelectElement(el) {\n return (0, types_1.isPluralElement)(el) || (0, types_1.isSelectElement)(el);\n}\nfunction findPluralOrSelectElement(ast) {\n return !!ast.find(function (el) {\n if (isPluralOrSelectElement(el)) {\n return true;\n }\n if ((0, types_1.isTagElement)(el)) {\n return findPluralOrSelectElement(el.children);\n }\n return false;\n });\n}\n/**\n * Hoist all selectors to the beginning of the AST & flatten the\n * resulting options. E.g:\n * \"I have {count, plural, one{a dog} other{many dogs}}\"\n * becomes \"{count, plural, one{I have a dog} other{I have many dogs}}\".\n * If there are multiple selectors, the order of which one is hoisted 1st\n * is non-deterministic.\n * The goal is to provide as many full sentences as possible since fragmented\n * sentences are not translator-friendly\n * @param ast AST\n */\nfunction hoistSelectors(ast) {\n for (var i = 0; i < ast.length; i++) {\n var el = ast[i];\n if (isPluralOrSelectElement(el)) {\n return [hoistPluralOrSelectElement(ast, el, i)];\n }\n if ((0, types_1.isTagElement)(el) && findPluralOrSelectElement([el])) {\n throw new Error('Cannot hoist plural/select within a tag element. Please put the tag element inside each plural/select option');\n }\n }\n return ast;\n}\n/**\n * Collect all variables in an AST to Record<string, TYPE>\n * @param ast AST to collect variables from\n * @param vars Record of variable name to variable type\n */\nfunction collectVariables(ast, vars) {\n if (vars === void 0) { vars = new Map(); }\n ast.forEach(function (el) {\n if ((0, types_1.isArgumentElement)(el) ||\n (0, types_1.isDateElement)(el) ||\n (0, types_1.isTimeElement)(el) ||\n (0, types_1.isNumberElement)(el)) {\n if (el.value in vars && vars.get(el.value) !== el.type) {\n throw new Error(\"Variable \".concat(el.value, \" has conflicting types\"));\n }\n vars.set(el.value, el.type);\n }\n if ((0, types_1.isPluralElement)(el) || (0, types_1.isSelectElement)(el)) {\n vars.set(el.value, el.type);\n Object.keys(el.options).forEach(function (k) {\n collectVariables(el.options[k].value, vars);\n });\n }\n if ((0, types_1.isTagElement)(el)) {\n vars.set(el.value, el.type);\n collectVariables(el.children, vars);\n }\n });\n}\n/**\n * Check if 2 ASTs are structurally the same. This primarily means that\n * they have the same variables with the same type\n * @param a\n * @param b\n * @returns\n */\nfunction isStructurallySame(a, b) {\n var aVars = new Map();\n var bVars = new Map();\n collectVariables(a, aVars);\n collectVariables(b, bVars);\n if (aVars.size !== bVars.size) {\n return {\n success: false,\n error: new Error(\"Different number of variables: [\".concat(Array.from(aVars.keys()).join(', '), \"] vs [\").concat(Array.from(bVars.keys()).join(', '), \"]\")),\n };\n }\n return Array.from(aVars.entries()).reduce(function (result, _a) {\n var key = _a[0], type = _a[1];\n if (!result.success) {\n return result;\n }\n var bType = bVars.get(key);\n if (bType == null) {\n return {\n success: false,\n error: new Error(\"Missing variable \".concat(key, \" in message\")),\n };\n }\n if (bType !== type) {\n return {\n success: false,\n error: new Error(\"Variable \".concat(key, \" has conflicting types: \").concat(types_1.TYPE[type], \" vs \").concat(types_1.TYPE[bType])),\n };\n }\n return result;\n }, { success: true });\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isStructurallySame = exports._Parser = void 0;\nexports.parse = parse;\nvar tslib_1 = require(\"tslib\");\nvar error_1 = require(\"./error\");\nvar parser_1 = require(\"./parser\");\nvar types_1 = require(\"./types\");\nfunction pruneLocation(els) {\n els.forEach(function (el) {\n delete el.location;\n if ((0, types_1.isSelectElement)(el) || (0, types_1.isPluralElement)(el)) {\n for (var k in el.options) {\n delete el.options[k].location;\n pruneLocation(el.options[k].value);\n }\n }\n else if ((0, types_1.isNumberElement)(el) && (0, types_1.isNumberSkeleton)(el.style)) {\n delete el.style.location;\n }\n else if (((0, types_1.isDateElement)(el) || (0, types_1.isTimeElement)(el)) &&\n (0, types_1.isDateTimeSkeleton)(el.style)) {\n delete el.style.location;\n }\n else if ((0, types_1.isTagElement)(el)) {\n pruneLocation(el.children);\n }\n });\n}\nfunction parse(message, opts) {\n if (opts === void 0) { opts = {}; }\n opts = tslib_1.__assign({ shouldParseSkeletons: true, requiresOtherClause: true }, opts);\n var result = new parser_1.Parser(message, opts).parse();\n if (result.err) {\n var error = SyntaxError(error_1.ErrorKind[result.err.kind]);\n // @ts-expect-error Assign to error object\n error.location = result.err.location;\n // @ts-expect-error Assign to error object\n error.originalMessage = result.err.message;\n throw error;\n }\n if (!(opts === null || opts === void 0 ? void 0 : opts.captureLocation)) {\n pruneLocation(result.val);\n }\n return result.val;\n}\ntslib_1.__exportStar(require(\"./types\"), exports);\n// only for testing\nexports._Parser = parser_1.Parser;\nvar manipulator_1 = require(\"./manipulator\");\nObject.defineProperty(exports, \"isStructurallySame\", { enumerable: true, get: function () { return manipulator_1.isStructurallySame; } });\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.MissingValueError = exports.InvalidValueTypeError = exports.InvalidValueError = exports.FormatError = exports.ErrorCode = void 0;\nvar tslib_1 = require(\"tslib\");\nvar ErrorCode;\n(function (ErrorCode) {\n // When we have a placeholder but no value to format\n ErrorCode[\"MISSING_VALUE\"] = \"MISSING_VALUE\";\n // When value supplied is invalid\n ErrorCode[\"INVALID_VALUE\"] = \"INVALID_VALUE\";\n // When we need specific Intl API but it's not available\n ErrorCode[\"MISSING_INTL_API\"] = \"MISSING_INTL_API\";\n})(ErrorCode || (exports.ErrorCode = ErrorCode = {}));\nvar FormatError = /** @class */ (function (_super) {\n tslib_1.__extends(FormatError, _super);\n function FormatError(msg, code, originalMessage) {\n var _this = _super.call(this, msg) || this;\n _this.code = code;\n _this.originalMessage = originalMessage;\n return _this;\n }\n FormatError.prototype.toString = function () {\n return \"[formatjs Error: \".concat(this.code, \"] \").concat(this.message);\n };\n return FormatError;\n}(Error));\nexports.FormatError = FormatError;\nvar InvalidValueError = /** @class */ (function (_super) {\n tslib_1.__extends(InvalidValueError, _super);\n function InvalidValueError(variableId, value, options, originalMessage) {\n return _super.call(this, \"Invalid values for \\\"\".concat(variableId, \"\\\": \\\"\").concat(value, \"\\\". Options are \\\"\").concat(Object.keys(options).join('\", \"'), \"\\\"\"), ErrorCode.INVALID_VALUE, originalMessage) || this;\n }\n return InvalidValueError;\n}(FormatError));\nexports.InvalidValueError = InvalidValueError;\nvar InvalidValueTypeError = /** @class */ (function (_super) {\n tslib_1.__extends(InvalidValueTypeError, _super);\n function InvalidValueTypeError(value, type, originalMessage) {\n return _super.call(this, \"Value for \\\"\".concat(value, \"\\\" must be of type \").concat(type), ErrorCode.INVALID_VALUE, originalMessage) || this;\n }\n return InvalidValueTypeError;\n}(FormatError));\nexports.InvalidValueTypeError = InvalidValueTypeError;\nvar MissingValueError = /** @class */ (function (_super) {\n tslib_1.__extends(MissingValueError, _super);\n function MissingValueError(variableId, originalMessage) {\n return _super.call(this, \"The intl string context variable \\\"\".concat(variableId, \"\\\" was not provided to the string \\\"\").concat(originalMessage, \"\\\"\"), ErrorCode.MISSING_VALUE, originalMessage) || this;\n }\n return MissingValueError;\n}(FormatError));\nexports.MissingValueError = MissingValueError;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.PART_TYPE = void 0;\nexports.isFormatXMLElementFn = isFormatXMLElementFn;\nexports.formatToParts = formatToParts;\nvar icu_messageformat_parser_1 = require(\"@formatjs/icu-messageformat-parser\");\nvar error_1 = require(\"./error\");\nvar PART_TYPE;\n(function (PART_TYPE) {\n PART_TYPE[PART_TYPE[\"literal\"] = 0] = \"literal\";\n PART_TYPE[PART_TYPE[\"object\"] = 1] = \"object\";\n})(PART_TYPE || (exports.PART_TYPE = PART_TYPE = {}));\nfunction mergeLiteral(parts) {\n if (parts.length < 2) {\n return parts;\n }\n return parts.reduce(function (all, part) {\n var lastPart = all[all.length - 1];\n if (!lastPart ||\n lastPart.type !== PART_TYPE.literal ||\n part.type !== PART_TYPE.literal) {\n all.push(part);\n }\n else {\n lastPart.value += part.value;\n }\n return all;\n }, []);\n}\nfunction isFormatXMLElementFn(el) {\n return typeof el === 'function';\n}\n// TODO(skeleton): add skeleton support\nfunction formatToParts(els, locales, formatters, formats, values, currentPluralValue, \n// For debugging\noriginalMessage) {\n // Hot path for straight simple msg translations\n if (els.length === 1 && (0, icu_messageformat_parser_1.isLiteralElement)(els[0])) {\n return [\n {\n type: PART_TYPE.literal,\n value: els[0].value,\n },\n ];\n }\n var result = [];\n for (var _i = 0, els_1 = els; _i < els_1.length; _i++) {\n var el = els_1[_i];\n // Exit early for string parts.\n if ((0, icu_messageformat_parser_1.isLiteralElement)(el)) {\n result.push({\n type: PART_TYPE.literal,\n value: el.value,\n });\n continue;\n }\n // TODO: should this part be literal type?\n // Replace `#` in plural rules with the actual numeric value.\n if ((0, icu_messageformat_parser_1.isPoundElement)(el)) {\n if (typeof currentPluralValue === 'number') {\n result.push({\n type: PART_TYPE.literal,\n value: formatters.getNumberFormat(locales).format(currentPluralValue),\n });\n }\n continue;\n }\n var varName = el.value;\n // Enforce that all required values are provided by the caller.\n if (!(values && varName in values)) {\n throw new error_1.MissingValueError(varName, originalMessage);\n }\n var value = values[varName];\n if ((0, icu_messageformat_parser_1.isArgumentElement)(el)) {\n if (!value || typeof value === 'string' || typeof value === 'number') {\n value =\n typeof value === 'string' || typeof value === 'number'\n ? String(value)\n : '';\n }\n result.push({\n type: typeof value === 'string' ? PART_TYPE.literal : PART_TYPE.object,\n value: value,\n });\n continue;\n }\n // Recursively format plural and select parts' option — which can be a\n // nested pattern structure. The choosing of the option to use is\n // abstracted-by and delegated-to the part helper object.\n if ((0, icu_messageformat_parser_1.isDateElement)(el)) {\n var style = typeof el.style === 'string'\n ? formats.date[el.style]\n : (0, icu_messageformat_parser_1.isDateTimeSkeleton)(el.style)\n ? el.style.parsedOptions\n : undefined;\n result.push({\n type: PART_TYPE.literal,\n value: formatters\n .getDateTimeFormat(locales, style)\n .format(value),\n });\n continue;\n }\n if ((0, icu_messageformat_parser_1.isTimeElement)(el)) {\n var style = typeof el.style === 'string'\n ? formats.time[el.style]\n : (0, icu_messageformat_parser_1.isDateTimeSkeleton)(el.style)\n ? el.style.parsedOptions\n : formats.time.medium;\n result.push({\n type: PART_TYPE.literal,\n value: formatters\n .getDateTimeFormat(locales, style)\n .format(value),\n });\n continue;\n }\n if ((0, icu_messageformat_parser_1.isNumberElement)(el)) {\n var style = typeof el.style === 'string'\n ? formats.number[el.style]\n : (0, icu_messageformat_parser_1.isNumberSkeleton)(el.style)\n ? el.style.parsedOptions\n : undefined;\n if (style && style.scale) {\n value =\n value *\n (style.scale || 1);\n }\n result.push({\n type: PART_TYPE.literal,\n value: formatters\n .getNumberFormat(locales, style)\n .format(value),\n });\n continue;\n }\n if ((0, icu_messageformat_parser_1.isTagElement)(el)) {\n var children = el.children, value_1 = el.value;\n var formatFn = values[value_1];\n if (!isFormatXMLElementFn(formatFn)) {\n throw new error_1.InvalidValueTypeError(value_1, 'function', originalMessage);\n }\n var parts = formatToParts(children, locales, formatters, formats, values, currentPluralValue);\n var chunks = formatFn(parts.map(function (p) { return p.value; }));\n if (!Array.isArray(chunks)) {\n chunks = [chunks];\n }\n result.push.apply(result, chunks.map(function (c) {\n return {\n type: typeof c === 'string' ? PART_TYPE.literal : PART_TYPE.object,\n value: c,\n };\n }));\n }\n if ((0, icu_messageformat_parser_1.isSelectElement)(el)) {\n var opt = el.options[value] || el.options.other;\n if (!opt) {\n throw new error_1.InvalidValueError(el.value, value, Object.keys(el.options), originalMessage);\n }\n result.push.apply(result, formatToParts(opt.value, locales, formatters, formats, values));\n continue;\n }\n if ((0, icu_messageformat_parser_1.isPluralElement)(el)) {\n var opt = el.options[\"=\".concat(value)];\n if (!opt) {\n if (!Intl.PluralRules) {\n throw new error_1.FormatError(\"Intl.PluralRules is not available in this environment.\\nTry polyfilling it using \\\"@formatjs/intl-pluralrules\\\"\\n\", error_1.ErrorCode.MISSING_INTL_API, originalMessage);\n }\n var rule = formatters\n .getPluralRules(locales, { type: el.pluralType })\n .select(value - (el.offset || 0));\n opt = el.options[rule] || el.options.other;\n }\n if (!opt) {\n throw new error_1.InvalidValueError(el.value, value, Object.keys(el.options), originalMessage);\n }\n result.push.apply(result, formatToParts(opt.value, locales, formatters, formats, values, value - (el.offset || 0)));\n continue;\n }\n }\n return mergeLiteral(result);\n}\n","\"use strict\";\n/*\nCopyright (c) 2014, Yahoo! Inc. All rights reserved.\nCopyrights licensed under the New BSD License.\nSee the accompanying LICENSE file for terms.\n*/\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.IntlMessageFormat = void 0;\nvar tslib_1 = require(\"tslib\");\nvar fast_memoize_1 = require(\"@formatjs/fast-memoize\");\nvar icu_messageformat_parser_1 = require(\"@formatjs/icu-messageformat-parser\");\nvar formatters_1 = require(\"./formatters\");\n// -- MessageFormat --------------------------------------------------------\nfunction mergeConfig(c1, c2) {\n if (!c2) {\n return c1;\n }\n return tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, (c1 || {})), (c2 || {})), Object.keys(c1).reduce(function (all, k) {\n all[k] = tslib_1.__assign(tslib_1.__assign({}, c1[k]), (c2[k] || {}));\n return all;\n }, {}));\n}\nfunction mergeConfigs(defaultConfig, configs) {\n if (!configs) {\n return defaultConfig;\n }\n return Object.keys(defaultConfig).reduce(function (all, k) {\n all[k] = mergeConfig(defaultConfig[k], configs[k]);\n return all;\n }, tslib_1.__assign({}, defaultConfig));\n}\nfunction createFastMemoizeCache(store) {\n return {\n create: function () {\n return {\n get: function (key) {\n return store[key];\n },\n set: function (key, value) {\n store[key] = value;\n },\n };\n },\n };\n}\nfunction createDefaultFormatters(cache) {\n if (cache === void 0) { cache = {\n number: {},\n dateTime: {},\n pluralRules: {},\n }; }\n return {\n getNumberFormat: (0, fast_memoize_1.memoize)(function () {\n var _a;\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n return new ((_a = Intl.NumberFormat).bind.apply(_a, tslib_1.__spreadArray([void 0], args, false)))();\n }, {\n cache: createFastMemoizeCache(cache.number),\n strategy: fast_memoize_1.strategies.variadic,\n }),\n getDateTimeFormat: (0, fast_memoize_1.memoize)(function () {\n var _a;\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n return new ((_a = Intl.DateTimeFormat).bind.apply(_a, tslib_1.__spreadArray([void 0], args, false)))();\n }, {\n cache: createFastMemoizeCache(cache.dateTime),\n strategy: fast_memoize_1.strategies.variadic,\n }),\n getPluralRules: (0, fast_memoize_1.memoize)(function () {\n var _a;\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n return new ((_a = Intl.PluralRules).bind.apply(_a, tslib_1.__spreadArray([void 0], args, false)))();\n }, {\n cache: createFastMemoizeCache(cache.pluralRules),\n strategy: fast_memoize_1.strategies.variadic,\n }),\n };\n}\nvar IntlMessageFormat = /** @class */ (function () {\n function IntlMessageFormat(message, locales, overrideFormats, opts) {\n if (locales === void 0) { locales = IntlMessageFormat.defaultLocale; }\n var _this = this;\n this.formatterCache = {\n number: {},\n dateTime: {},\n pluralRules: {},\n };\n this.format = function (values) {\n var parts = _this.formatToParts(values);\n // Hot path for straight simple msg translations\n if (parts.length === 1) {\n return parts[0].value;\n }\n var result = parts.reduce(function (all, part) {\n if (!all.length ||\n part.type !== formatters_1.PART_TYPE.literal ||\n typeof all[all.length - 1] !== 'string') {\n all.push(part.value);\n }\n else {\n all[all.length - 1] += part.value;\n }\n return all;\n }, []);\n if (result.length <= 1) {\n return result[0] || '';\n }\n return result;\n };\n this.formatToParts = function (values) {\n return (0, formatters_1.formatToParts)(_this.ast, _this.locales, _this.formatters, _this.formats, values, undefined, _this.message);\n };\n this.resolvedOptions = function () {\n var _a;\n return ({\n locale: ((_a = _this.resolvedLocale) === null || _a === void 0 ? void 0 : _a.toString()) ||\n Intl.NumberFormat.supportedLocalesOf(_this.locales)[0],\n });\n };\n this.getAst = function () { return _this.ast; };\n // Defined first because it's used to build the format pattern.\n this.locales = locales;\n this.resolvedLocale = IntlMessageFormat.resolveLocale(locales);\n if (typeof message === 'string') {\n this.message = message;\n if (!IntlMessageFormat.__parse) {\n throw new TypeError('IntlMessageFormat.__parse must be set to process `message` of type `string`');\n }\n var _a = opts || {}, formatters = _a.formatters, parseOpts = tslib_1.__rest(_a, [\"formatters\"]);\n // Parse string messages into an AST.\n this.ast = IntlMessageFormat.__parse(message, tslib_1.__assign(tslib_1.__assign({}, parseOpts), { locale: this.resolvedLocale }));\n }\n else {\n this.ast = message;\n }\n if (!Array.isArray(this.ast)) {\n throw new TypeError('A message must be provided as a String or AST.');\n }\n // Creates a new object with the specified `formats` merged with the default\n // formats.\n this.formats = mergeConfigs(IntlMessageFormat.formats, overrideFormats);\n this.formatters =\n (opts && opts.formatters) || createDefaultFormatters(this.formatterCache);\n }\n Object.defineProperty(IntlMessageFormat, \"defaultLocale\", {\n get: function () {\n if (!IntlMessageFormat.memoizedDefaultLocale) {\n IntlMessageFormat.memoizedDefaultLocale =\n new Intl.NumberFormat().resolvedOptions().locale;\n }\n return IntlMessageFormat.memoizedDefaultLocale;\n },\n enumerable: false,\n configurable: true\n });\n IntlMessageFormat.memoizedDefaultLocale = null;\n IntlMessageFormat.resolveLocale = function (locales) {\n if (typeof Intl.Locale === 'undefined') {\n return;\n }\n var supportedLocales = Intl.NumberFormat.supportedLocalesOf(locales);\n if (supportedLocales.length > 0) {\n return new Intl.Locale(supportedLocales[0]);\n }\n return new Intl.Locale(typeof locales === 'string' ? locales : locales[0]);\n };\n IntlMessageFormat.__parse = icu_messageformat_parser_1.parse;\n // Default format options used as the prototype of the `formats` provided to the\n // constructor. These are used when constructing the internal Intl.NumberFormat\n // and Intl.DateTimeFormat instances.\n IntlMessageFormat.formats = {\n number: {\n integer: {\n maximumFractionDigits: 0,\n },\n currency: {\n style: 'currency',\n },\n percent: {\n style: 'percent',\n },\n },\n date: {\n short: {\n month: 'numeric',\n day: 'numeric',\n year: '2-digit',\n },\n medium: {\n month: 'short',\n day: 'numeric',\n year: 'numeric',\n },\n long: {\n month: 'long',\n day: 'numeric',\n year: 'numeric',\n },\n full: {\n weekday: 'long',\n month: 'long',\n day: 'numeric',\n year: 'numeric',\n },\n },\n time: {\n short: {\n hour: 'numeric',\n minute: 'numeric',\n },\n medium: {\n hour: 'numeric',\n minute: 'numeric',\n second: 'numeric',\n },\n long: {\n hour: 'numeric',\n minute: 'numeric',\n second: 'numeric',\n timeZoneName: 'short',\n },\n full: {\n hour: 'numeric',\n minute: 'numeric',\n second: 'numeric',\n timeZoneName: 'short',\n },\n },\n };\n return IntlMessageFormat;\n}());\nexports.IntlMessageFormat = IntlMessageFormat;\n","\"use strict\";\n/*\nCopyright (c) 2014, Yahoo! Inc. All rights reserved.\nCopyrights licensed under the New BSD License.\nSee the accompanying LICENSE file for terms.\n*/\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.IntlMessageFormat = void 0;\nvar tslib_1 = require(\"tslib\");\nvar core_1 = require(\"./src/core\");\nObject.defineProperty(exports, \"IntlMessageFormat\", { enumerable: true, get: function () { return core_1.IntlMessageFormat; } });\ntslib_1.__exportStar(require(\"./src/core\"), exports);\ntslib_1.__exportStar(require(\"./src/error\"), exports);\ntslib_1.__exportStar(require(\"./src/formatters\"), exports);\nexports.default = core_1.IntlMessageFormat;\n","import { t as intlCache } from \"./IntlCache-ywLCPDGw.mjs\";\nimport { t as HTML_CONTENT_PROPS } from \"./types-DY1ZTHWr.mjs\";\nimport { IntlMessageFormat } from \"intl-messageformat\";\n//#region src/formatting/format.ts\n/**\n* Formats a message according to the specified locales and options.\n*\n* @param {string} message - The message to format.\n* @param {string | string[]} [locales='en'] - The locales to use for formatting.\n* @param {Record<string, any>} [variables={}] - The variables to use for formatting.\n* @returns {string} The formatted message.\n* @internal\n*\n* Returns an empty string if IntlMessageFormat produces no output.\n* TODO: Add this to custom formats.\n*/\nfunction _formatMessageICU(message, locales = \"en\", variables = {}) {\n\treturn new IntlMessageFormat(message, locales).format(variables)?.toString() ?? \"\";\n}\n/**\n* Formats a number according to the specified locales and options.\n*\n* @param {Object} params - The parameters for the number formatting.\n* @param {number} params.value - The number to format.\n* @param {string | string[]} [params.locales=['en']] - The locales to use for formatting.\n* @param {Intl.NumberFormatOptions} [params.options={}] - Additional options for number formatting.\n*\n* @returns {string} The formatted number.\n* @internal\n*/\nfunction _formatNum({ value, locales = [\"en\"], options = {} }) {\n\treturn intlCache.get(\"NumberFormat\", locales, {\n\t\tnumberingSystem: \"latn\",\n\t\t...options\n\t}).format(value);\n}\n/**\n* Formats a date according to the specified locales and options.\n*\n* @param {Object} params - The parameters for the date formatting.\n* @param {Date} params.value - The date to format.\n* @param {string | string[]} [params.locales='en'] - The locales to use for formatting.\n* @param {Intl.DateTimeFormatOptions} [params.options={}] - Additional options for date formatting.\n*\n* @returns {string} The formatted date.\n* @internal\n*/\nfunction _formatDateTime({ value, locales = [\"en\"], options = {} }) {\n\treturn intlCache.get(\"DateTimeFormat\", locales, {\n\t\tcalendar: \"gregory\",\n\t\tnumberingSystem: \"latn\",\n\t\t...options\n\t}).format(value);\n}\n/**\n* Formats a currency value according to the specified locales, currency, and options.\n*\n* @param {Object} params - The parameters for the currency formatting.\n* @param {number} params.value - The currency value to format.\n* @param {string} params.currency - The currency code (e.g., 'USD').\n* @param {string | string[]} [params.locales=['en']] - The locales to use for formatting.\n* @param {Intl.NumberFormatOptions} [params.options={}] - Additional options for currency formatting.\n*\n* @returns {string} The formatted currency value.\n* @internal\n*/\nfunction _formatCurrency({ value, locales = [\"en\"], currency = \"USD\", options = {} }) {\n\treturn intlCache.get(\"NumberFormat\", locales, {\n\t\tstyle: \"currency\",\n\t\tcurrency,\n\t\tnumberingSystem: \"latn\",\n\t\t...options\n\t}).format(value);\n}\n/**\n* Formats a list of items according to the specified locales and options.\n*\n* @param {Object} params - The parameters for the list formatting.\n* @param {Array<string | number>} params.value - The list of items to format.\n* @param {string | string[]} [params.locales=['en']] - The locales to use for formatting.\n* @param {Intl.ListFormatOptions} [params.options={}] - Additional options for list formatting.\n*\n* @returns {string} The formatted list.\n* @internal\n*/\nfunction _formatList({ value, locales = [\"en\"], options = {} }) {\n\treturn intlCache.get(\"ListFormat\", locales, {\n\t\ttype: \"conjunction\",\n\t\tstyle: \"long\",\n\t\t...options\n\t}).format(value.map(String));\n}\n/**\n* Formats a list of items according to the specified locales and options.\n* @param {Object} params - The parameters for the list formatting.\n* @param {Array<T>} params.value - The list of items to format.\n* @param {string | string[]} [params.locales=['en']] - The locales to use for formatting.\n* @param {Intl.ListFormatOptions} [params.options={}] - Additional options for list formatting.\n* @returns {Array<T | string>} The formatted list parts.\n* @internal\n*/\nfunction _formatListToParts({ value, locales = [\"en\"], options = {} }) {\n\tconst formatListParts = intlCache.get(\"ListFormat\", locales, {\n\t\ttype: \"conjunction\",\n\t\tstyle: \"long\",\n\t\t...options\n\t}).formatToParts(value.map(() => \"1\"));\n\tlet partIndex = 0;\n\treturn formatListParts.map((part) => {\n\t\tif (part.type === \"element\") return value[partIndex++];\n\t\treturn part.value;\n\t});\n}\n/**\n* Selects the best unit and computes the value for relative time formatting\n* based on the difference between a date and a base date.\n* @param {Date} date - The target date.\n* @param {Date} baseDate - The base date to compute relative time from. Must be provided by the caller for hydration safety.\n* @returns {{ value: number, unit: Intl.RelativeTimeFormatUnit }} The computed value and unit.\n* @internal\n*/\nfunction _selectRelativeTimeUnit(date, baseDate) {\n\tconst now = baseDate.getTime();\n\tconst diffMs = date.getTime() - now;\n\tconst absDiffMs = Math.abs(diffMs);\n\tconst sign = diffMs < 0 ? -1 : 1;\n\tconst seconds = Math.floor(absDiffMs / 1e3);\n\tconst minutes = Math.floor(absDiffMs / (1e3 * 60));\n\tconst hours = Math.floor(absDiffMs / (1e3 * 60 * 60));\n\tconst days = Math.floor(absDiffMs / (1e3 * 60 * 60 * 24));\n\tconst weeks = Math.floor(absDiffMs / (1e3 * 60 * 60 * 24 * 7));\n\tconst months = Math.floor(absDiffMs / (1e3 * 60 * 60 * 24 * 30));\n\tconst years = Math.floor(absDiffMs / (1e3 * 60 * 60 * 24 * 365));\n\tif (seconds < 60) return {\n\t\tvalue: sign * seconds,\n\t\tunit: \"second\"\n\t};\n\tif (minutes < 60) return {\n\t\tvalue: sign * minutes,\n\t\tunit: \"minute\"\n\t};\n\tif (hours < 24) return {\n\t\tvalue: sign * hours,\n\t\tunit: \"hour\"\n\t};\n\tif (days < 7) return {\n\t\tvalue: sign * days,\n\t\tunit: \"day\"\n\t};\n\tif (days < 28) return {\n\t\tvalue: sign * weeks,\n\t\tunit: \"week\"\n\t};\n\tif (months < 1) return {\n\t\tvalue: sign * weeks,\n\t\tunit: \"week\"\n\t};\n\tif (months < 12) return {\n\t\tvalue: sign * months,\n\t\tunit: \"month\"\n\t};\n\tif (years < 1) return {\n\t\tvalue: sign * months,\n\t\tunit: \"month\"\n\t};\n\treturn {\n\t\tvalue: sign * years,\n\t\tunit: \"year\"\n\t};\n}\n/**\n* Formats a relative time value according to the specified locales and options.\n*\n* @param {Object} params - The parameters for the relative time formatting.\n* @param {number} params.value - The relative time value to format.\n* @param {Intl.RelativeTimeFormatUnit} params.unit - The unit of time (e.g., 'second', 'minute', 'hour', 'day', 'week', 'month', 'year').\n* @param {string | string[]} [params.locales=['en']] - The locales to use for formatting.\n* @param {Intl.RelativeTimeFormatOptions} [params.options={}] - Additional options for relative time formatting.\n*\n* @returns {string} The formatted relative time string.\n* @internal\n*/\nfunction _formatRelativeTime({ value, unit, locales = [\"en\"], options = {} }) {\n\treturn intlCache.get(\"RelativeTimeFormat\", locales, {\n\t\tstyle: \"long\",\n\t\tnumeric: \"auto\",\n\t\t...options\n\t}).format(value, unit);\n}\n//#endregion\n//#region src/locales/customLocaleMapping.ts\nfunction isCustomLocaleObject(value) {\n\treturn typeof value === \"object\" && value !== null;\n}\nconst getCustomProperty = (customMapping, locale, property) => {\n\tconst value = customMapping?.[locale];\n\tif (!value) return void 0;\n\tif (typeof value === \"string\") return property === \"name\" ? value : void 0;\n\treturn value[property];\n};\nconst getCustomLocaleCode = (customMapping, locale) => {\n\tconst value = customMapping?.[locale];\n\treturn isCustomLocaleObject(value) && typeof value.code === \"string\" ? value.code : void 0;\n};\n//#endregion\n//#region src/locales/isValidLocale.ts\nconst scriptExceptions = new Set([\n\t\"Cham\",\n\t\"Jamo\",\n\t\"Kawi\",\n\t\"Lisu\",\n\t\"Toto\",\n\t\"Thai\"\n]);\nconst isCustomLanguage = (language) => {\n\treturn language >= \"qaa\" && language <= \"qtz\";\n};\n/**\n* Checks if a given BCP 47 language code is valid.\n* @param {string} code - The BCP 47 language code to validate.\n* @param {CustomMapping} [customMapping] - The custom mapping to use for validation.\n* @returns {boolean} True if the BCP 47 code is valid, false otherwise.\n* @internal\n*/\nconst _isValidLocale = (locale, customMapping) => {\n\tlocale = getCustomLocaleCode(customMapping, locale) || locale;\n\ttry {\n\t\tconst { language, region, script } = intlCache.get(\"Locale\", locale);\n\t\tconst partCount = 1 + Number(Boolean(region)) + Number(Boolean(script));\n\t\tif (locale.split(\"-\").length !== partCount) return false;\n\t\tif (intlCache.get(\"DisplayNames\", [\"en\"], { type: \"language\" }).of(language) === language && !isCustomLanguage(language)) return false;\n\t\tif (region) {\n\t\t\tif (intlCache.get(\"DisplayNames\", [\"en\"], { type: \"region\" }).of(region) === region) return false;\n\t\t}\n\t\tif (script) {\n\t\t\tif (intlCache.get(\"DisplayNames\", [\"en\"], { type: \"script\" }).of(script) === script && !scriptExceptions.has(script)) return false;\n\t\t}\n\t\treturn true;\n\t} catch {\n\t\treturn false;\n\t}\n};\n/**\n* Standardizes a BCP 47 locale to ensure correct formatting.\n* @param {string} locale - The BCP 47 locale to standardize.\n* @returns {string} The standardized BCP 47 locale, or the input string if it cannot be standardized.\n* @internal\n*/\nconst _standardizeLocale = (locale) => {\n\ttry {\n\t\treturn Intl.getCanonicalLocales(locale)[0];\n\t} catch {\n\t\treturn locale;\n\t}\n};\n//#endregion\n//#region src/locales/isSameDialect.ts\n/**\n* Test two or more language codes to determine if they are exactly the same\n* e.g. \"en-US\" and \"en\" would be exactly the same.\n* \"en-GB\" and \"en\" would be exactly the same.\n* \"en-GB\" and \"en-US\" would be different.\n* @internal\n*/\nfunction _isSameDialect(...locales) {\n\ttry {\n\t\tconst localeObjects = locales.flat().map((locale) => intlCache.get(\"Locale\", _standardizeLocale(locale)));\n\t\tconst [firstLocale] = localeObjects;\n\t\tconst regions = new Set(localeObjects.map(({ region }) => region).filter(Boolean));\n\t\tconst scripts = new Set(localeObjects.map(({ script }) => script).filter(Boolean));\n\t\treturn localeObjects.every(({ language }) => language === firstLocale?.language) && regions.size <= 1 && scripts.size <= 1;\n\t} catch (error) {\n\t\tconsole.error(error);\n\t\treturn false;\n\t}\n}\n//#endregion\n//#region src/locales/isSameLanguage.ts\n/**\n* @internal\n*/\nfunction _isSameLanguage(...locales) {\n\ttry {\n\t\tconst languages = locales.flat().map((locale) => intlCache.get(\"Locale\", locale).language);\n\t\treturn languages.every((language) => language === languages[0]);\n\t} catch (error) {\n\t\tconsole.error(error);\n\t\treturn false;\n\t}\n}\n//#endregion\n//#region src/locales/requiresTranslation.ts\n/**\n* Given a target locale and a source locale, determines whether a translation is required\n* If the target locale and the source locale are the same, returns false, otherwise returns true\n* If a translation is not possible due to the target locale being outside of the optional approvedLanguages scope, also returns false\n* @internal\n*/\nfunction _requiresTranslation(sourceLocale, targetLocale, approvedLocales, customMapping) {\n\tif ([\n\t\tsourceLocale,\n\t\ttargetLocale,\n\t\t...approvedLocales ?? []\n\t].some((locale) => !_isValidLocale(locale, customMapping))) return false;\n\tif (_isSameDialect(sourceLocale, targetLocale)) return false;\n\tif (!approvedLocales) return true;\n\treturn approvedLocales.some((approvedLocale) => _isSameLanguage(targetLocale, approvedLocale));\n}\n//#endregion\n//#region src/locales/resolveCanonicalLocale.ts\n/**\n* Resolves the canonical locale for a given locale.\n* @param locale - The locale to resolve the canonical locale for\n* @param customMapping - The custom mapping to use for resolving the canonical locale\n* @returns The canonical locale, or the input locale when no canonical mapping exists.\n*/\nfunction _resolveCanonicalLocale(locale, customMapping) {\n\tconst customLocaleCode = getCustomLocaleCode(customMapping, locale);\n\treturn customLocaleCode && _isValidLocale(customLocaleCode) ? customLocaleCode : locale;\n}\n//#endregion\n//#region src/locales/getLocaleEmoji.ts\n/**\n* @internal\n*/\nfunction _getLocaleEmoji(locale, customMapping) {\n\tconst aliasedLocale = locale;\n\tlocale = _resolveCanonicalLocale(locale, customMapping);\n\ttry {\n\t\tconst standardizedLocale = _standardizeLocale(locale);\n\t\tconst localeObject = intlCache.get(\"Locale\", standardizedLocale);\n\t\tconst { language, region } = localeObject;\n\t\tif (customMapping) for (const l of [\n\t\t\taliasedLocale,\n\t\t\tlocale,\n\t\t\tstandardizedLocale,\n\t\t\tlanguage\n\t\t]) {\n\t\t\tconst customEmoji = getCustomProperty(customMapping, l, \"emoji\");\n\t\t\tif (customEmoji) return customEmoji;\n\t\t}\n\t\tconst regionEmoji = region && getSupportedRegionEmoji(region);\n\t\tif (regionEmoji) return regionEmoji;\n\t\tconst extrapolated = localeObject.maximize();\n\t\treturn exceptions[extrapolated.language] || getRegionEmoji(extrapolated.region || \"\");\n\t} catch {\n\t\treturn defaultEmoji;\n\t}\n}\nconst europeAfricaGlobe = \"🌍\";\nconst asiaAustraliaGlobe = \"🌏\";\nconst defaultEmoji = europeAfricaGlobe;\nconst exceptions = {\n\tca: europeAfricaGlobe,\n\teu: europeAfricaGlobe,\n\tku: europeAfricaGlobe,\n\tbo: asiaAustraliaGlobe,\n\tug: asiaAustraliaGlobe,\n\tgd: \"🏴\",\n\tcy: \"🏴\",\n\tgv: \"🇮🇲\",\n\tgrc: \"🏺\"\n};\nconst specialRegionEmojis = {\n\tEU: \"🇪🇺\",\n\t\"419\": \"🌎\"\n};\nconst flagRegions = new Set([\n\t\"AF\",\n\t\"AX\",\n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\"SO\",\n\t\"ZA\",\n\t\"GS\",\n\t\"SS\",\n\t\"ES\",\n\t\"LK\",\n\t\"SD\",\n\t\"SR\",\n\t\"SJ\",\n\t\"SE\",\n\t\"CH\",\n\t\"SY\",\n\t\"TW\",\n\t\"TJ\",\n\t\"TZ\",\n\t\"TH\",\n\t\"TL\",\n\t\"TG\",\n\t\"TK\",\n\t\"TO\",\n\t\"TT\",\n\t\"TN\",\n\t\"TR\",\n\t\"TM\",\n\t\"TC\",\n\t\"TV\",\n\t\"UG\",\n\t\"UA\",\n\t\"AE\",\n\t\"GB\",\n\t\"US\",\n\t\"UM\",\n\t\"UY\",\n\t\"UZ\",\n\t\"VU\",\n\t\"VE\",\n\t\"VN\",\n\t\"VG\",\n\t\"VI\",\n\t\"WF\",\n\t\"EH\",\n\t\"YE\",\n\t\"ZM\",\n\t\"ZW\"\n]);\nconst regionalIndicatorOffset = 127462 - \"A\".charCodeAt(0);\nfunction getRegionEmoji(region) {\n\treturn getSupportedRegionEmoji(region) || \"🌍\";\n}\nfunction getSupportedRegionEmoji(region) {\n\tconst normalizedRegion = region.toUpperCase();\n\tconst specialEmoji = specialRegionEmojis[normalizedRegion];\n\tif (specialEmoji) return specialEmoji;\n\tif (!flagRegions.has(normalizedRegion)) return void 0;\n\treturn String.fromCodePoint(normalizedRegion.charCodeAt(0) + regionalIndicatorOffset, normalizedRegion.charCodeAt(1) + regionalIndicatorOffset);\n}\n//#endregion\n//#region src/locales/getLocaleProperties.ts\n/**\n* Creates a set of custom locale properties from a custom mapping.\n*\n* @param lArray - An array of locale codes to search for in the custom mapping.\n* @param customMapping - Optional custom mapping of locale codes to names.\n* @returns A partial set of locale properties, or undefined if no custom mapping is provided.\n*/\nfunction createCustomLocaleProperties(lArray, customMapping) {\n\tif (!customMapping) return void 0;\n\tlet merged = {};\n\tfor (const l of lArray) {\n\t\tconst value = customMapping[l];\n\t\tif (value) if (typeof value === \"string\") merged.name ||= value;\n\t\telse merged = {\n\t\t\t...value,\n\t\t\t...merged\n\t\t};\n\t}\n\treturn merged;\n}\n/**\n* @internal\n*/\nfunction _getLocaleProperties(locale, defaultLocale = \"en\", customMapping) {\n\tconst aliasedLocale = locale;\n\tlocale = _resolveCanonicalLocale(locale, customMapping);\n\tdefaultLocale ||= \"en\";\n\ttry {\n\t\tconst standardizedLocale = _standardizeLocale(locale);\n\t\tconst localeObject = intlCache.get(\"Locale\", locale);\n\t\tconst languageCode = localeObject.language;\n\t\tconst customLocaleProperties = createCustomLocaleProperties([\n\t\t\taliasedLocale,\n\t\t\tlocale,\n\t\t\tstandardizedLocale,\n\t\t\tlanguageCode\n\t\t], customMapping);\n\t\tconst baseRegion = localeObject.region;\n\t\tconst maximizedLocale = localeObject.maximize();\n\t\tconst maximizedCode = maximizedLocale.toString();\n\t\tconst regionCode = localeObject.region || customLocaleProperties?.regionCode || maximizedLocale.region || \"\";\n\t\tconst scriptCode = localeObject.script || customLocaleProperties?.scriptCode || maximizedLocale.script || \"\";\n\t\tconst minimizedCode = localeObject.minimize().toString();\n\t\tconst defaultLanguageOrder = [\n\t\t\tdefaultLocale,\n\t\t\tlocale,\n\t\t\t\"en\"\n\t\t];\n\t\tconst nativeLanguageOrder = [\n\t\t\tlocale,\n\t\t\tdefaultLocale,\n\t\t\t\"en\"\n\t\t];\n\t\tconst languageNames = intlCache.get(\"DisplayNames\", defaultLanguageOrder, { type: \"language\" });\n\t\tconst nativeLanguageNames = intlCache.get(\"DisplayNames\", nativeLanguageOrder, { type: \"language\" });\n\t\tconst customName = customLocaleProperties?.name;\n\t\tconst customNativeName = customLocaleProperties?.nativeName || customLocaleProperties?.name;\n\t\tconst name = customName || languageNames.of(locale) || locale;\n\t\tconst nativeName = customNativeName || nativeLanguageNames.of(locale) || locale;\n\t\tconst maximizedName = customLocaleProperties?.maximizedName || customName || languageNames.of(maximizedCode) || locale;\n\t\tconst nativeMaximizedName = customLocaleProperties?.nativeMaximizedName || customNativeName || nativeLanguageNames.of(maximizedCode) || locale;\n\t\tconst minimizedName = customLocaleProperties?.minimizedName || customName || languageNames.of(minimizedCode) || locale;\n\t\tconst nativeMinimizedName = customLocaleProperties?.nativeMinimizedName || customNativeName || nativeLanguageNames.of(minimizedCode) || locale;\n\t\tconst languageName = customLocaleProperties?.languageName || customName || languageNames.of(languageCode) || locale;\n\t\tconst nativeLanguageName = customLocaleProperties?.nativeLanguageName || customNativeName || nativeLanguageNames.of(languageCode) || locale;\n\t\tconst nameWithRegionCode = customLocaleProperties?.nameWithRegionCode || (baseRegion ? `${languageName} (${baseRegion})` : name);\n\t\tconst nativeNameWithRegionCode = customLocaleProperties?.nativeNameWithRegionCode || (baseRegion ? `${nativeLanguageName} (${baseRegion})` : nativeName) || nameWithRegionCode;\n\t\tconst regionNames = intlCache.get(\"DisplayNames\", defaultLanguageOrder, { type: \"region\" });\n\t\tconst nativeRegionNames = intlCache.get(\"DisplayNames\", nativeLanguageOrder, { type: \"region\" });\n\t\tconst regionName = customLocaleProperties?.regionName || (regionCode ? regionNames.of(regionCode) : \"\") || \"\";\n\t\tconst nativeRegionName = customLocaleProperties?.nativeRegionName || (regionCode ? nativeRegionNames.of(regionCode) : \"\") || \"\";\n\t\tconst scriptNames = intlCache.get(\"DisplayNames\", defaultLanguageOrder, { type: \"script\" });\n\t\tconst nativeScriptNames = intlCache.get(\"DisplayNames\", nativeLanguageOrder, { type: \"script\" });\n\t\treturn {\n\t\t\tcode: standardizedLocale,\n\t\t\tname,\n\t\t\tnativeName,\n\t\t\tmaximizedCode,\n\t\t\tmaximizedName,\n\t\t\tnativeMaximizedName,\n\t\t\tminimizedCode,\n\t\t\tminimizedName,\n\t\t\tnativeMinimizedName,\n\t\t\tlanguageCode,\n\t\t\tlanguageName,\n\t\t\tnativeLanguageName,\n\t\t\tnameWithRegionCode,\n\t\t\tnativeNameWithRegionCode,\n\t\t\tregionCode,\n\t\t\tregionName,\n\t\t\tnativeRegionName,\n\t\t\tscriptCode,\n\t\t\tscriptName: customLocaleProperties?.scriptName || (scriptCode ? scriptNames.of(scriptCode) : \"\") || \"\",\n\t\t\tnativeScriptName: customLocaleProperties?.nativeScriptName || (scriptCode ? nativeScriptNames.of(scriptCode) : \"\") || \"\",\n\t\t\temoji: customLocaleProperties?.emoji || _getLocaleEmoji(standardizedLocale, customMapping)\n\t\t};\n\t} catch {\n\t\tlet code = _isValidLocale(locale) ? _standardizeLocale(locale) : locale;\n\t\tconst codeParts = code.split(\"-\");\n\t\tlet languageCode = codeParts[0] || code;\n\t\tlet regionCode = codeParts.length > 2 ? codeParts[2] : codeParts[1] || \"\";\n\t\tlet scriptCode = codeParts[3] || \"\";\n\t\tconst customLocaleProperties = createCustomLocaleProperties([code, languageCode], customMapping);\n\t\tcode = customLocaleProperties?.code || code;\n\t\tconst name = customLocaleProperties?.name || code;\n\t\tconst nativeName = customLocaleProperties?.nativeName || name;\n\t\tconst maximizedCode = customLocaleProperties?.maximizedCode || code;\n\t\tconst maximizedName = customLocaleProperties?.maximizedName || name;\n\t\tconst nativeMaximizedName = customLocaleProperties?.nativeMaximizedName || nativeName;\n\t\tconst minimizedCode = customLocaleProperties?.minimizedCode || code;\n\t\tconst minimizedName = customLocaleProperties?.minimizedName || name;\n\t\tconst nativeMinimizedName = customLocaleProperties?.nativeMinimizedName || nativeName;\n\t\tlanguageCode = customLocaleProperties?.languageCode || languageCode;\n\t\tconst languageName = customLocaleProperties?.languageName || name;\n\t\tconst nativeLanguageName = customLocaleProperties?.nativeLanguageName || nativeName;\n\t\tregionCode = customLocaleProperties?.regionCode || regionCode;\n\t\tconst regionName = customLocaleProperties?.regionName || \"\";\n\t\tconst nativeRegionName = customLocaleProperties?.nativeRegionName || \"\";\n\t\tscriptCode = customLocaleProperties?.scriptCode || scriptCode;\n\t\tconst scriptName = customLocaleProperties?.scriptName || \"\";\n\t\tconst nativeScriptName = customLocaleProperties?.nativeScriptName || \"\";\n\t\tconst nameWithRegionCode = customLocaleProperties?.nameWithRegionCode || (regionName ? `${languageName} (${regionName})` : name);\n\t\tconst nativeNameWithRegionCode = customLocaleProperties?.nativeNameWithRegionCode || (nativeRegionName ? `${nativeLanguageName} (${nativeRegionName})` : nativeName);\n\t\tconst emoji = customLocaleProperties?.emoji || \"🌍\";\n\t\treturn {\n\t\t\tcode,\n\t\t\tname,\n\t\t\tnativeName,\n\t\t\tmaximizedCode,\n\t\t\tmaximizedName,\n\t\t\tnativeMaximizedName,\n\t\t\tminimizedCode,\n\t\t\tminimizedName,\n\t\t\tnativeMinimizedName,\n\t\t\tlanguageCode,\n\t\t\tlanguageName,\n\t\t\tnativeLanguageName,\n\t\t\tnameWithRegionCode,\n\t\t\tnativeNameWithRegionCode,\n\t\t\tregionCode,\n\t\t\tregionName,\n\t\t\tnativeRegionName,\n\t\t\tscriptCode,\n\t\t\tscriptName,\n\t\t\tnativeScriptName,\n\t\t\temoji\n\t\t};\n\t}\n}\n//#endregion\n//#region src/locales/determineLocale.ts\nfunction standardizeValidLocales(locales, customMapping) {\n\treturn locales.filter((locale) => _isValidLocale(locale, customMapping)).map(_standardizeLocale);\n}\nfunction getMatchingCode(locale, { languageCode, minimizedCode, regionCode, scriptCode }, candidates) {\n\treturn [\n\t\tlocale,\n\t\t`${languageCode}-${regionCode}`,\n\t\t`${languageCode}-${scriptCode}`,\n\t\tminimizedCode\n\t].find((localeCode) => candidates.has(localeCode));\n}\n/**\n* Given a list of locales and a list of approved locales, sorted in preference order\n* Determines which locale is the best match among the approved locales, prioritizing exact matches and falling back to dialects of the same language\n* @internal\n*/\nfunction _determineLocale(locales, approvedLocales, customMapping) {\n\tlocales = standardizeValidLocales(Array.isArray(locales) ? locales : [locales], customMapping);\n\tapprovedLocales = standardizeValidLocales(approvedLocales, customMapping);\n\tfor (const locale of locales) {\n\t\tconst candidates = new Set(approvedLocales.filter((approvedLocale) => _isSameLanguage(locale, approvedLocale)));\n\t\tconst properties = _getLocaleProperties(locale);\n\t\tconst matchingCode = getMatchingCode(locale, properties, candidates) || getMatchingCode(properties.languageCode, _getLocaleProperties(properties.languageCode), candidates);\n\t\tif (matchingCode) return matchingCode;\n\t}\n}\n//#endregion\n//#region src/locales/getLocaleName.ts\n/**\n* Retrieves the display name(s) of locale code(s) using Intl.DisplayNames.\n*\n* @param {string} locale - A BCP-47 locale code.\n* @param {string} [defaultLocale=libraryDefaultLocale] - The locale for display names.\n* @returns {string} The display name(s) corresponding to the code(s), or empty string(s) if invalid.\n* @internal\n*/\nfunction _getLocaleName(locale, defaultLocale = \"en\", customMapping) {\n\tconst aliasedLocale = locale;\n\tlocale = _resolveCanonicalLocale(locale, customMapping);\n\tdefaultLocale ||= \"en\";\n\ttry {\n\t\tconst standardizedLocale = _standardizeLocale(locale);\n\t\tif (customMapping) for (const l of [\n\t\t\taliasedLocale,\n\t\t\tlocale,\n\t\t\tstandardizedLocale,\n\t\t\tintlCache.get(\"Locale\", standardizedLocale).language\n\t\t]) {\n\t\t\tconst customName = getCustomProperty(customMapping, l, \"name\");\n\t\t\tif (customName) return customName;\n\t\t}\n\t\treturn intlCache.get(\"DisplayNames\", [\n\t\t\tdefaultLocale,\n\t\t\tstandardizedLocale,\n\t\t\t\"en\"\n\t\t], { type: \"language\" }).of(standardizedLocale) || \"\";\n\t} catch {\n\t\treturn \"\";\n\t}\n}\n//#endregion\n//#region src/locales/getLocaleDirection.ts\n/**\n* Get the text direction for a given locale code using the Intl.Locale API.\n*\n* @param {string} code - The locale code to check.\n* @returns {string} 'rtl' if the language is right-to-left; otherwise 'ltr'.\n* @internal\n*/\nfunction _getLocaleDirection(code) {\n\ttry {\n\t\tconst textInfoDirection = extractDirectionWithTextInfo(intlCache.get(\"Locale\", code));\n\t\tif (textInfoDirection) return textInfoDirection;\n\t} catch {}\n\tconst { scriptCode, languageCode } = _getLocaleProperties(code);\n\tif (scriptCode) return RTL_SCRIPTS.has(scriptCode.toLowerCase()) ? \"rtl\" : \"ltr\";\n\tif (languageCode) return RTL_LANGUAGES.has(languageCode.toLowerCase()) ? \"rtl\" : \"ltr\";\n\treturn \"ltr\";\n}\nconst RTL_SCRIPTS = new Set([\n\t\"arab\",\n\t\"adlm\",\n\t\"hebr\",\n\t\"nkoo\",\n\t\"rohg\",\n\t\"samr\",\n\t\"syrc\",\n\t\"thaa\",\n\t\"yezi\"\n]);\nconst RTL_LANGUAGES = new Set([\n\t\"ar\",\n\t\"arc\",\n\t\"ckb\",\n\t\"dv\",\n\t\"fa\",\n\t\"he\",\n\t\"iw\",\n\t\"ku\",\n\t\"lrc\",\n\t\"nqo\",\n\t\"ps\",\n\t\"pnb\",\n\t\"sd\",\n\t\"syr\",\n\t\"ug\",\n\t\"ur\",\n\t\"yi\"\n]);\n/**\n* Handles extracting direction via textInfo property\n* @param locale - Intl.Locale object.\n* @returns {'ltr' | 'rtl'} - The direction of the locale\n*\n* Intl.Locale.prototype.getTextInfo() / textInfo property incorporated in ES2024 Specification.\n* This is not supported by all browsers yet.\n* See: {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getTextInfo#browser_compatibility}\n*/\nfunction extractDirectionWithTextInfo(locale) {\n\tconst direction = \"textInfo\" in locale && typeof locale.textInfo === \"object\" && locale.textInfo !== null && \"direction\" in locale.textInfo ? locale.textInfo.direction : void 0;\n\treturn direction === \"rtl\" || direction === \"ltr\" ? direction : void 0;\n}\n//#endregion\n//#region src/locales/isSupersetLocale.ts\n/**\n* @internal\n*/\nfunction _isSupersetLocale(superLocale, subLocale) {\n\ttry {\n\t\tconst { language: languageSuper, region: regionSuper, script: scriptSuper } = intlCache.get(\"Locale\", _standardizeLocale(superLocale));\n\t\tconst { language: languageSub, region: regionSub, script: scriptSub } = intlCache.get(\"Locale\", _standardizeLocale(subLocale));\n\t\tif (languageSuper !== languageSub) return false;\n\t\tif (regionSuper && regionSuper !== regionSub) return false;\n\t\tif (scriptSuper && scriptSuper !== scriptSub) return false;\n\t\treturn true;\n\t} catch (error) {\n\t\tconsole.error(error);\n\t\treturn false;\n\t}\n}\n//#endregion\n//#region src/locales/resolveAliasLocale.ts\n/**\n* Resolves the alias locale for a given locale.\n* @param locale - The locale to resolve the alias locale for\n* @param customMapping - The custom mapping to use for resolving the alias locale\n* @returns The configured alias for a canonical locale, or the input locale when already an alias or no alias mapping exists.\n*/\nfunction _resolveAliasLocale(locale, customMapping) {\n\tif (!customMapping) return locale;\n\treturn Object.keys(customMapping).find((alias) => getCustomLocaleCode(customMapping, alias) === locale) ?? locale;\n}\n//#endregion\n//#region src/LocaleConfig.ts\n/**\n* LocaleConfig contains the locale and formatting primitives exposed through\n* the core entrypoint.\n*\n* It intentionally does not store project IDs, API keys, runtime URLs, or any\n* translation credentials. It only stores locale metadata needed to resolve\n* aliases, choose formatting fallbacks, and format values with Intl.\n*/\nvar LocaleConfig = class {\n\tconstructor({ defaultLocale = \"en\", locales = [], customMapping } = {}) {\n\t\tthis.defaultLocale = defaultLocale;\n\t\tthis.locales = locales;\n\t\tthis.customMapping = customMapping;\n\t}\n\tgetFormattingLocales(targetLocale, locales) {\n\t\treturn (locales === void 0 ? [\n\t\t\ttargetLocale,\n\t\t\tthis.defaultLocale,\n\t\t\t\"en\"\n\t\t] : Array.isArray(locales) ? locales : [locales]).filter((locale) => !!locale).map((locale) => this.resolveCanonicalLocale(locale));\n\t}\n\tformatNum(value, targetLocale, options = {}) {\n\t\tconst { locales, ...intlOptions } = options;\n\t\treturn _formatNum({\n\t\t\tvalue,\n\t\t\tlocales: this.getFormattingLocales(targetLocale, locales),\n\t\t\toptions: intlOptions\n\t\t});\n\t}\n\tformatDateTime(value, targetLocale, options = {}) {\n\t\tconst { locales, ...intlOptions } = options;\n\t\treturn _formatDateTime({\n\t\t\tvalue,\n\t\t\tlocales: this.getFormattingLocales(targetLocale, locales),\n\t\t\toptions: intlOptions\n\t\t});\n\t}\n\tformatCurrency(value, currency, targetLocale, options = {}) {\n\t\tconst { locales, ...intlOptions } = options;\n\t\treturn _formatCurrency({\n\t\t\tvalue,\n\t\t\tcurrency,\n\t\t\tlocales: this.getFormattingLocales(targetLocale, locales),\n\t\t\toptions: intlOptions\n\t\t});\n\t}\n\tformatRelativeTime(value, unit, targetLocale, options = {}) {\n\t\tconst { locales, ...intlOptions } = options;\n\t\treturn _formatRelativeTime({\n\t\t\tvalue,\n\t\t\tunit,\n\t\t\tlocales: this.getFormattingLocales(targetLocale, locales),\n\t\t\toptions: intlOptions\n\t\t});\n\t}\n\tformatRelativeTimeFromDate(date, targetLocale, options = {}) {\n\t\tconst { locales, baseDate, ...intlOptions } = options;\n\t\tconst { value, unit } = _selectRelativeTimeUnit(date, baseDate ?? /* @__PURE__ */ new Date());\n\t\treturn _formatRelativeTime({\n\t\t\tvalue,\n\t\t\tunit,\n\t\t\tlocales: this.getFormattingLocales(targetLocale, locales),\n\t\t\toptions: intlOptions\n\t\t});\n\t}\n\tformatCutoff(value, targetLocale, options = {}) {\n\t\tconst { locales, ...formatOptions } = options;\n\t\treturn intlCache.get(\"CutoffFormat\", this.getFormattingLocales(targetLocale, locales), formatOptions).format(value);\n\t}\n\tformatMessage(message, targetLocale, options = {}) {\n\t\tconst { locales, variables, dataFormat } = options;\n\t\tif (dataFormat === \"STRING\") return message;\n\t\treturn _formatMessageICU(message, this.getFormattingLocales(targetLocale, locales), variables);\n\t}\n\tformatList(array, targetLocale, options = {}) {\n\t\tconst { locales, ...intlOptions } = options;\n\t\treturn _formatList({\n\t\t\tvalue: array,\n\t\t\tlocales: this.getFormattingLocales(targetLocale, locales),\n\t\t\toptions: intlOptions\n\t\t});\n\t}\n\tformatListToParts(array, targetLocale, options = {}) {\n\t\tconst { locales, ...intlOptions } = options;\n\t\treturn _formatListToParts({\n\t\t\tvalue: array,\n\t\t\tlocales: this.getFormattingLocales(targetLocale, locales),\n\t\t\toptions: intlOptions\n\t\t});\n\t}\n\tgetLocaleName(locale) {\n\t\treturn _getLocaleName(locale, this.defaultLocale, this.customMapping);\n\t}\n\tgetLocaleEmoji(locale) {\n\t\treturn _getLocaleEmoji(locale, this.customMapping);\n\t}\n\tgetLocaleProperties(locale) {\n\t\treturn _getLocaleProperties(locale, this.defaultLocale, this.customMapping);\n\t}\n\trequiresTranslation(targetLocale, sourceLocale = this.defaultLocale, approvedLocales = this.locales.length ? this.locales : void 0) {\n\t\treturn _requiresTranslation(this.resolveCanonicalLocale(sourceLocale), this.resolveCanonicalLocale(targetLocale), approvedLocales ? approvedLocales.map((locale) => this.resolveCanonicalLocale(locale)) : void 0, this.customMapping);\n\t}\n\tdetermineLocale(locales, approvedLocales = this.locales) {\n\t\tconst approvedLocalePairs = approvedLocales.map((locale) => ({\n\t\t\tlocale,\n\t\t\tcanonicalLocale: this.resolveCanonicalLocale(locale)\n\t\t}));\n\t\tconst resolvedLocale = _determineLocale(Array.isArray(locales) ? locales.map((locale) => this.resolveCanonicalLocale(locale)) : this.resolveCanonicalLocale(locales), approvedLocalePairs.map(({ canonicalLocale }) => canonicalLocale), this.customMapping);\n\t\tif (!resolvedLocale) return void 0;\n\t\treturn approvedLocalePairs.find(({ canonicalLocale }) => canonicalLocale === resolvedLocale)?.locale ?? this.resolveAliasLocale(resolvedLocale);\n\t}\n\tgetLocaleDirection(locale) {\n\t\treturn _getLocaleDirection(this.resolveCanonicalLocale(locale));\n\t}\n\tisValidLocale(locale) {\n\t\treturn _isValidLocale(locale, this.customMapping);\n\t}\n\tresolveCanonicalLocale(locale) {\n\t\treturn _resolveCanonicalLocale(locale, this.customMapping);\n\t}\n\tresolveAliasLocale(locale) {\n\t\treturn _resolveAliasLocale(locale, this.customMapping);\n\t}\n\tstandardizeLocale(locale) {\n\t\treturn _standardizeLocale(locale);\n\t}\n\tisSameDialect(...locales) {\n\t\treturn _isSameDialect(...locales.map((locale) => Array.isArray(locale) ? locale.map((code) => this.resolveCanonicalLocale(code)) : this.resolveCanonicalLocale(locale)));\n\t}\n\tisSameLanguage(...locales) {\n\t\treturn _isSameLanguage(...locales.map((locale) => Array.isArray(locale) ? locale.map((code) => this.resolveCanonicalLocale(code)) : this.resolveCanonicalLocale(locale)));\n\t}\n\tisSupersetLocale(superLocale, subLocale) {\n\t\treturn _isSupersetLocale(this.resolveCanonicalLocale(superLocale), this.resolveCanonicalLocale(subLocale));\n\t}\n};\n//#endregion\n//#region src/locales/getRegionProperties.ts\n/**\n* Retrieves multiple properties for a given region code, including:\n* - `code`: the original region code\n* - `name`: the localized display name\n* - `emoji`: the associated flag or symbol\n*\n* Behavior:\n* - Accepts ISO 3166-1 alpha-2 or UN M.49 region codes (e.g., `\"US\"`, `\"FR\"`, `\"419\"`).\n* - If `customMapping` contains a `name` or `emoji` for the region, those override the default values.\n* - Otherwise, uses `Intl.DisplayNames` to get the localized region name in the given `defaultLocale`,\n* falling back to `libraryDefaultLocale`.\n* - Falls back to the region code as `name` if display name resolution fails.\n* - Falls back to `defaultEmoji` if no emoji can be computed or found in `customMapping`.\n*\n* @param {string} region - The region code to look up (e.g., `\"US\"`, `\"GB\"`, `\"DE\"`).\n* @param {string} [defaultLocale=libraryDefaultLocale] - The locale to use when localizing the region name.\n* @param {CustomRegionMapping} [customMapping] - Optional mapping of region codes to custom names and/or emojis.\n* @returns {{ code: string, name: string, emoji: string, locale?: string }} An object containing:\n* - `code`: the input region code\n* - `name`: the localized or custom region name\n* - `emoji`: the matching emoji flag or symbol\n* - `locale`: the optional associated locale from custom mapping\n*\n* @example\n* getRegionProperties('US', 'en');\n* // => { code: 'US', name: 'United States', emoji: '🇺🇸' }\n*\n* @example\n* getRegionProperties('US', 'fr');\n* // => { code: 'US', name: 'États-Unis', emoji: '🇺🇸' }\n*\n* @example\n* getRegionProperties('US', 'en', { US: { name: 'USA', emoji: '🗽' } });\n* // => { code: 'US', name: 'USA', emoji: '🗽' }\n*/\nfunction getRegionProperties(region, defaultLocale = \"en\", customMapping) {\n\tdefaultLocale ||= \"en\";\n\tlet name = region;\n\tlet emoji = defaultEmoji;\n\ttry {\n\t\tname = intlCache.get(\"DisplayNames\", [defaultLocale, \"en\"], { type: \"region\" }).of(region) || region;\n\t\temoji = getRegionEmoji(region);\n\t} catch {}\n\treturn {\n\t\tcode: region,\n\t\tname,\n\t\temoji,\n\t\t...customMapping?.[region]\n\t};\n}\n//#endregion\n//#region src/core.ts\n/**\n* Core formatting and locale helpers.\n*\n* This entry point exposes deterministic locale and formatting primitives. It\n* does not export the GT service client, project credentials, network\n* translation methods, file APIs, or other server/service concerns from the\n* root `generaltranslation` facade.\n*\n* This entry point is intended for framework and shared packages that need\n* locale metadata or formatting behavior without pulling in the full\n* translation API surface.\n*/\n/**\n* Formats a string with cutoff behavior, applying a terminator when the string exceeds the maximum character limit.\n*\n* This standalone function provides cutoff formatting functionality without requiring a GT instance.\n* The locales parameter is required for proper terminator selection based on the target language.\n*\n* @param {string} value - The string value to format with cutoff behavior.\n* @param {Object} [options] - Configuration options for cutoff formatting.\n* @param {string | string[]} [options.locales] - The locales to use for terminator selection.\n* @param {number} [options.maxChars] - The maximum number of characters to display.\n* - Undefined values are treated as no cutoff.\n* - Negative values follow .slice() behavior and terminator will be added before the value.\n* - 0 will result in an empty string.\n* - If cutoff results in an empty string, no terminator is added.\n* @param {CutoffFormatStyle} [options.style='ellipsis'] - The style of the terminator.\n* @param {string} [options.terminator] - Optional override the terminator to use.\n* @param {string} [options.separator] - Optional override the separator to use between the terminator and the value.\n* - If no terminator is provided, then separator is ignored.\n* @returns {string} The formatted string with terminator applied if cutoff occurs.\n*\n* @example\n* formatCutoff('Hello, world!', { locales: 'en-US', maxChars: 8 });\n* // Returns: 'Hello, …'\n*\n* @example\n* formatCutoff('Hello, world!', { locales: 'en-US', maxChars: -3 });\n* // Returns: '…d!'\n*\n* @example\n* formatCutoff('Very long text that needs cutting', {\n* locales: 'en-US',\n* maxChars: 15,\n* style: 'ellipsis',\n* separator: ' '\n* });\n* // Returns: 'Very long tex …'\n*/\nfunction formatCutoff(value, options) {\n\tconst { locales, ...formatOptions } = options ?? {};\n\treturn intlCache.get(\"CutoffFormat\", locales, formatOptions).format(value);\n}\n/**\n* Formats a message according to the specified locales and options.\n*\n* @param {string} message - The message to format.\n* @param {Object} [options] - Configuration options for message formatting.\n* @param {string | string[]} [options.locales] - The locales to use for formatting.\n* @param {FormatVariables} [options.variables] - The variables to use for formatting.\n* @param {StringFormat} [options.dataFormat='ICU'] - The format of the message. When STRING, the message is returned as is.\n* @returns {string} The formatted message.\n*\n* @example\n* formatMessage('Hello {name}', { variables: { name: 'John' } });\n* // Returns: \"Hello John\"\n*\n* @example\n* formatMessage('Hello {name}', {\n* locales: ['fr'],\n* variables: { name: 'John' }\n* });\n*/\nfunction formatMessage(message, options) {\n\tif (options?.dataFormat === \"STRING\") return message;\n\treturn _formatMessageICU(message, options?.locales, options?.variables);\n}\n/**\n* Formats a number according to the specified locales and options.\n* @param {Object} params - The parameters for the number formatting.\n* @param {number} params.value - The number to format.\n* @param {Intl.NumberFormatOptions} [params.options] - Additional options for number formatting.\n* @param {string | string[]} [params.options.locales] - The locales to use for formatting.\n* @returns {string} The formatted number.\n*/\nfunction formatNum(number, options) {\n\tconst { locales, ...intlOptions } = options ?? {};\n\treturn _formatNum({\n\t\tvalue: number,\n\t\tlocales,\n\t\toptions: intlOptions\n\t});\n}\n/**\n* Formats a date according to the specified languages and options.\n* @param {Object} params - The parameters for the date formatting.\n* @param {Date} params.value - The date to format.\n* @param {Intl.DateTimeFormatOptions} [params.options] - Additional options for date formatting.\n* @param {string | string[]} [params.options.locales] - The languages to use for formatting.\n* @returns {string} The formatted date.\n*/\nfunction formatDateTime(date, options) {\n\tconst { locales, ...intlOptions } = options ?? {};\n\treturn _formatDateTime({\n\t\tvalue: date,\n\t\tlocales,\n\t\toptions: intlOptions\n\t});\n}\n/**\n* Formats a currency value according to the specified languages, currency, and options.\n* @param {Object} params - The parameters for the currency formatting.\n* @param {number} params.value - The currency value to format.\n* @param {string} params.currency - The currency code (e.g., 'USD').\n* @param {Intl.NumberFormatOptions} [params.options={}] - Additional options for currency formatting.\n* @param {string | string[]} [params.options.locales] - The locale codes to use for formatting.\n* @returns {string} The formatted currency value.\n*/\nfunction formatCurrency(value, currency, options) {\n\tconst { locales, ...intlOptions } = options ?? {};\n\treturn _formatCurrency({\n\t\tvalue,\n\t\tcurrency,\n\t\tlocales,\n\t\toptions: intlOptions\n\t});\n}\n/**\n* Formats a list of items according to the specified locales and options.\n* @param {Object} params - The parameters for the list formatting.\n* @param {Array<string | number>} params.value - The list of items to format.\n* @param {Intl.ListFormatOptions} [params.options={}] - Additional options for list formatting.\n* @param {string | string[]} [params.options.locales] - The locales to use for formatting.\n* @returns {string} The formatted list.\n*/\nfunction formatList(array, options) {\n\tconst { locales, ...intlOptions } = options ?? {};\n\treturn _formatList({\n\t\tvalue: array,\n\t\tlocales,\n\t\toptions: intlOptions\n\t});\n}\n/**\n* Formats a list of items according to the specified locales and options.\n* @param {Array<T>} array - The list of items to format.\n* @param {Object} [options] - Additional options for list formatting.\n* @param {string | string[]} [options.locales] - The locales to use for formatting.\n* @param {Intl.ListFormatOptions} [options] - Additional Intl.ListFormat options.\n* @returns {Array<T | string>} The formatted list parts.\n*/\nfunction formatListToParts(array, options) {\n\tconst { locales, ...intlOptions } = options ?? {};\n\treturn _formatListToParts({\n\t\tvalue: array,\n\t\tlocales,\n\t\toptions: intlOptions\n\t});\n}\n/**\n* Formats a relative time value according to the specified locales and options.\n* @param {Object} params - The parameters for the relative time formatting.\n* @param {number} params.value - The relative time value to format.\n* @param {Intl.RelativeTimeFormatUnit} params.unit - The unit of time (e.g., 'second', 'minute', 'hour', 'day', 'week', 'month', 'year').\n* @param {Intl.RelativeTimeFormatOptions} [params.options={}] - Additional options for relative time formatting.\n* @param {string | string[]} [params.options.locales] - The locales to use for formatting.\n* @returns {string} The formatted relative time string.\n*/\nfunction formatRelativeTime(value, unit, options) {\n\tconst { locales, ...intlOptions } = options ?? {};\n\treturn _formatRelativeTime({\n\t\tvalue,\n\t\tunit,\n\t\tlocales,\n\t\toptions: intlOptions\n\t});\n}\n/**\n* Formats a relative time string from a Date, automatically selecting the best unit.\n* @param {Date} date - The date to format relative to now.\n* @param {Object} [options] - Formatting options.\n* @param {string | string[]} [options.locales] - The locales to use for formatting.\n* @param {Intl.RelativeTimeFormatOptions} [options] - Additional Intl.RelativeTimeFormat options.\n* @returns {string} The formatted relative time string (e.g., \"2 hours ago\", \"in 3 days\").\n*/\nfunction formatRelativeTimeFromDate(date, options) {\n\tconst { locales, baseDate, ...intlOptions } = options ?? {};\n\tconst { value, unit } = _selectRelativeTimeUnit(date, baseDate ?? /* @__PURE__ */ new Date());\n\treturn _formatRelativeTime({\n\t\tvalue,\n\t\tunit,\n\t\tlocales,\n\t\toptions: intlOptions\n\t});\n}\n/**\n* Checks if a given BCP 47 locale code is valid.\n*\n* @param {string} locale - The BCP 47 locale code to validate.\n* @param {CustomMapping} [customMapping] - The custom mapping to use for validation.\n* @returns {boolean} True if the BCP 47 code is valid, false otherwise.\n*\n* @example\n* isValidLocale('en-US');\n* // Returns: true\n*\n* @example\n* isValidLocale('en_US');\n* // Returns: false\n*/\nfunction isValidLocale(locale, customMapping) {\n\treturn _isValidLocale(locale, customMapping);\n}\n/**\n* Resolves the canonical locale for a given locale.\n*\n* @param {string} locale - The locale to resolve the canonical locale for.\n* @param {CustomMapping} [customMapping] - The custom mapping to use for resolving the canonical locale.\n* @returns {string} The canonical locale, or the input locale when no canonical mapping exists.\n*\n* @example\n* resolveCanonicalLocale('en-US');\n* // Returns: 'en-US'\n*\n* @example\n* resolveCanonicalLocale('en', { en: 'en-US' });\n* // Returns: 'en-US'\n*/\nfunction resolveCanonicalLocale(locale, customMapping) {\n\treturn _resolveCanonicalLocale(locale, customMapping);\n}\n/**\n* Standardizes a BCP 47 locale code to ensure correct formatting.\n*\n* @param {string} locale - The BCP 47 locale code to standardize.\n* @returns {string} The standardized BCP 47 locale code, or the input string if it cannot be standardized.\n*\n* @example\n* standardizeLocale('en-us');\n* // Returns: 'en-US'\n*\n* @example\n* standardizeLocale('not a locale');\n* // Returns: 'not a locale'\n*/\nfunction standardizeLocale(locale) {\n\treturn _standardizeLocale(locale);\n}\n/**\n* Retrieves the display name of locale code using Intl.DisplayNames.\n*\n* @param {string} locale - A BCP-47 locale code.\n* @param {string} [defaultLocale] - The default locale to use for formatting.\n* @param {CustomMapping} [customMapping] - A custom mapping of locale codes to their names.\n* @returns {string} The display name corresponding to the code.\n*/\nfunction getLocaleName(locale, defaultLocale, customMapping) {\n\treturn _getLocaleName(locale, defaultLocale, customMapping);\n}\n/**\n* Retrieves an emoji based on a given locale code, taking into account region, language, and specific exceptions.\n*\n* This function uses the locale's region (if present) to select an emoji or falls back on default emojis for certain languages.\n*\n* @param locale - A string representing the locale code (e.g., 'en-US', 'fr-CA').\n* @param {CustomMapping} [customMapping] - A custom mapping of locale codes to their names.\n* @returns The emoji representing the locale or its region, or a default emoji if no specific match is found.\n*/\nfunction getLocaleEmoji(locale, customMapping) {\n\treturn _getLocaleEmoji(locale, customMapping);\n}\n/**\n* Generates linguistic details for a given locale code.\n*\n* This function returns information about the locale,\n* script, and region of a given language code both in a standard form and in a maximized form (with likely script and region).\n* The function provides these names in both your default language and native forms, and an associated emoji.\n*\n* @param {string} locale - The locale code to get properties for (e.g., \"de-AT\").\n* @param {string} [defaultLocale] - The default locale to use for formatting.\n* @param {CustomMapping} [customMapping] - A custom mapping of locale codes to their names.\n* @returns {LocaleProperties} - An object containing detailed information about the locale.\n*\n* @property {string} code - The full locale code, e.g., \"de-AT\".\n* @property {string} name - Language name in the default display language, e.g., \"Austrian German\".\n* @property {string} nativeName - Language name in the locale's native language, e.g., \"Österreichisches Deutsch\".\n* @property {string} languageCode - The base language code, e.g., \"de\".\n* @property {string} languageName - The language name in the default display language, e.g., \"German\".\n* @property {string} nativeLanguageName - The language name in the native language, e.g., \"Deutsch\".\n* @property {string} nameWithRegionCode - Language name with region in the default language, e.g., \"German (AT)\".\n* @property {string} nativeNameWithRegionCode - Language name with region in the native language, e.g., \"Deutsch (AT)\".\n* @property {string} regionCode - The region code from maximization, e.g., \"AT\".\n* @property {string} regionName - The region name in the default display language, e.g., \"Austria\".\n* @property {string} nativeRegionName - The region name in the native language, e.g., \"Österreich\".\n* @property {string} scriptCode - The script code from maximization, e.g., \"Latn\".\n* @property {string} scriptName - The script name in the default display language, e.g., \"Latin\".\n* @property {string} nativeScriptName - The script name in the native language, e.g., \"Lateinisch\".\n* @property {string} maximizedCode - The maximized locale code, e.g., \"de-Latn-AT\".\n* @property {string} maximizedName - Maximized locale name with likely script in the default language, e.g., \"Austrian German (Latin)\".\n* @property {string} nativeMaximizedName - Maximized locale name in the native language, e.g., \"Österreichisches Deutsch (Lateinisch)\".\n* @property {string} minimizedCode - Minimized locale code, e.g., \"de-AT\" (or \"de\" for \"de-DE\").\n* @property {string} minimizedName - Minimized language name in the default language, e.g., \"Austrian German\".\n* @property {string} nativeMinimizedName - Minimized language name in the native language, e.g., \"Österreichisches Deutsch\".\n* @property {string} emoji - The emoji associated with the locale's region, if applicable.\n*/\nfunction getLocaleProperties(locale, defaultLocale, customMapping) {\n\treturn _getLocaleProperties(locale, defaultLocale, customMapping);\n}\n/**\n* Determines whether a translation is required based on the source and target locales.\n*\n* - If the target locale is not specified, the function returns `false`, as translation is not needed.\n* - If the source and target locale are the same, returns `false`, indicating that no translation is necessary.\n* - If the `approvedLocales` array is provided, and the target locale is not within that array, the function also returns `false`.\n* - Otherwise, it returns `true`, meaning that a translation is required.\n*\n* @param {string} sourceLocale - The locale code for the original content (BCP 47 locale code).\n* @param {string} targetLocale - The locale code of the language to translate the content into (BCP 47 locale code).\n* @param {string[]} [approvedLocale] - An optional array of approved target locales.\n*\n* @returns {boolean} - Returns `true` if translation is required, otherwise `false`.\n*/\nfunction requiresTranslation(sourceLocale, targetLocale, approvedLocales, customMapping) {\n\treturn _requiresTranslation(sourceLocale, targetLocale, approvedLocales, customMapping);\n}\n/**\n* Determines the best matching locale from the provided approved locales list.\n* @param {string | string[]} locales - A single locale or an array of locales sorted in preference order.\n* @param {string[]} [approvedLocales=this.locales] - An array of approved locales, also sorted by preference.\n* @returns {string | undefined} - The best matching locale from the approvedLocales list, or undefined if no match is found.\n*/\nfunction determineLocale(locales, approvedLocales = [], customMapping = void 0) {\n\treturn _determineLocale(locales, approvedLocales, customMapping);\n}\n/**\n* Get the text direction for a given locale code using the Intl.Locale API.\n*\n* @param {string} locale - A BCP-47 locale code.\n* @returns {string} 'rtl' if the locale is right-to-left; otherwise 'ltr'.\n*/\nfunction getLocaleDirection(locale) {\n\treturn _getLocaleDirection(locale);\n}\n/**\n* Resolves the alias locale for a given locale.\n* @param {string} locale - The locale to resolve the alias locale for\n* @param {CustomMapping} [customMapping] - The custom mapping to use for resolving the alias locale\n* @returns {string} The alias locale\n*/\nfunction resolveAliasLocale(locale, customMapping) {\n\treturn _resolveAliasLocale(locale, customMapping);\n}\n/**\n* Checks if multiple BCP 47 locale codes represent the same dialect.\n* @param {string[]} locales - The BCP 47 locale codes to compare.\n* @returns {boolean} True if all BCP 47 codes represent the same dialect, false otherwise.\n*/\nfunction isSameDialect(...locales) {\n\treturn _isSameDialect(...locales);\n}\n/**\n* Checks if multiple BCP 47 locale codes represent the same language.\n* @param {string[]} locales - The BCP 47 locale codes to compare.\n* @returns {boolean} True if all BCP 47 codes represent the same language, false otherwise.\n*/\nfunction isSameLanguage(...locales) {\n\treturn _isSameLanguage(...locales);\n}\n/**\n* Checks if a locale is a superset of another locale.\n* A subLocale is a subset of superLocale if it is an extension of superLocale or are otherwise identical.\n*\n* @param {string} superLocale - The locale to check if it is a superset of the other locale.\n* @param {string} subLocale - The locale to check if it is a subset of the other locale.\n* @returns {boolean} True if the first locale is a superset of the second locale, false otherwise.\n*/\nfunction isSupersetLocale(superLocale, subLocale) {\n\treturn _isSupersetLocale(superLocale, subLocale);\n}\n//#endregion\nexport { HTML_CONTENT_PROPS, LocaleConfig, determineLocale, formatCurrency, formatCutoff, formatDateTime, formatList, formatListToParts, formatMessage, formatNum, formatRelativeTime, formatRelativeTimeFromDate, getLocaleDirection, getLocaleEmoji, getLocaleName, getLocaleProperties, getRegionProperties, isSameDialect, isSameLanguage, isSupersetLocale, isValidLocale, requiresTranslation, resolveAliasLocale, resolveCanonicalLocale, standardizeLocale };\n\n//# sourceMappingURL=index.mjs.map","import { VAR_IDENTIFIER, condenseVars, decode, extractVars } from \"generaltranslation/internal\";\nimport { formatCutoff, formatMessage } from \"@generaltranslation/format\";\n//#region src/logs/logger.ts\nvar logger_default = {\n\twarn(message) {\n\t\tconsole.warn(message);\n\t},\n\terror(message) {\n\t\tconsole.error(message);\n\t},\n\tinfo(message) {\n\t\tconsole.info(message);\n\t},\n\tdebug(message) {\n\t\tconsole.debug(message);\n\t}\n};\n//#endregion\n//#region src/utils/extractVariables.ts\n/**\n* Given an object of options, returns an object with no gt-related options\n*\n* TODO: next major version, this should extract any sugar syntax options\n* TODO: next major version, options should be Record<string, string>\n*/\nfunction extractVariables(options) {\n\treturn Object.fromEntries(Object.entries(options).filter(([key]) => key !== \"$id\" && key !== \"$context\" && key !== \"$maxChars\" && key !== \"$hash\" && key !== \"$_hash\" && key !== \"$_source\" && key !== \"$_fallback\" && key !== \"$format\" && key !== \"$_locales\" && key !== \"$locale\"));\n}\n//#endregion\n//#region src/translation-functions/utils/messages.ts\nconst createInterpolationFailureMessage = (message) => `String interpolation failed for message: \"${message}\".`;\n//#endregion\n//#region src/translation-functions/utils/formatMessage.ts\n/**\n* Given an encoded message and variables, formats the message.\n* On error, the original encoded message is returned with a warning.\n* @param encodedMsg\n* @param variables\n* @returns\n*/\nfunction formatMessage$1(encodedMsg, variables, locales, dataFormat) {\n\ttry {\n\t\treturn formatMessage(encodedMsg, {\n\t\t\tvariables,\n\t\t\tlocales,\n\t\t\tdataFormat\n\t\t});\n\t} catch {\n\t\tlogger_default.warn(createInterpolationFailureMessage(encodedMsg));\n\t\treturn encodedMsg;\n\t}\n}\n//#endregion\n//#region src/translation-functions/utils/interpolation/interpolateIcuMessage.ts\n/**\n* Applies string interpolation and cutoff formatting. Fallsback to the original message if interpolation fails.\n* @param {string} message - The message to interpolate.\n* @param {InlineTranslationOptions} options - The options to interpolate.\n* @returns {string} - The interpolated message.\n*/\nfunction interpolateIcuMessage(encodedMsg, options) {\n\tif (!encodedMsg) return encodedMsg;\n\tconst source = options.$_fallback;\n\tconst variables = extractVariables(options);\n\ttry {\n\t\tconst declaredVars = extractVars(source || \"\");\n\t\treturn formatCutoff(formatMessage$1(Object.keys(declaredVars).length ? condenseVars(encodedMsg) : encodedMsg, {\n\t\t\t...variables,\n\t\t\t...declaredVars,\n\t\t\t[VAR_IDENTIFIER]: \"other\"\n\t\t}, options.$locale ?? options.$_locales, options.$format), { maxChars: options.$maxChars });\n\t} catch {\n\t\tlogger_default.warn(createInterpolationFailureMessage(encodedMsg));\n\t\tif (options.$_fallback != null) return interpolateIcuMessage(options.$_fallback, {\n\t\t\t...options,\n\t\t\t$_fallback: void 0\n\t\t});\n\t\treturn formatCutoff(encodedMsg, { maxChars: options.$maxChars });\n\t}\n}\n//#endregion\n//#region src/translation-functions/msg/decodeOptions.ts\n/**\n* Decodes the options from an encoded message.\n* @param encodedMsg The message to decode.\n* @returns The decoded options.\n*/\nfunction decodeOptions(encodedMsg) {\n\tif (encodedMsg.lastIndexOf(\":\") === -1) return null;\n\tconst optionsEncoding = encodedMsg.slice(encodedMsg.lastIndexOf(\":\") + 1);\n\ttry {\n\t\treturn JSON.parse(decode(optionsEncoding));\n\t} catch {\n\t\treturn null;\n\t}\n}\n//#endregion\n//#region src/translation-functions/utils/isEncodedTranslationOptions.ts\n/**\n* Given a decoded options object, validate that includes required decoded options\n* These required options are added by msg() during the encoding process.\n*/\nfunction isEncodedTranslationOptions(decodedOptions) {\n\treturn !!(decodedOptions.$_hash && decodedOptions.$_source);\n}\n//#endregion\nexport { extractVariables as a, createInterpolationFailureMessage as i, decodeOptions as n, logger_default as o, interpolateIcuMessage as r, isEncodedTranslationOptions as t };\n\n//# sourceMappingURL=isEncodedTranslationOptions-BOwWa_-J.mjs.map","import { n as stableStringify, t as isVariable } from \"./isVariable-fAKEB7gF.mjs\";\nimport { sha256 } from \"@noble/hashes/sha2.js\";\nimport { bytesToHex, utf8ToBytes } from \"@noble/hashes/utils.js\";\n//#region src/id/hashSource.ts\n/**\n* Calculates a unique hash for a given string using SHA-256.\n*\n* First 16 characters of hash, hex encoded.\n*\n* @param {string} string - The string to be hashed.\n* @returns {string} The resulting hash as a hexadecimal string.\n*/\nfunction hashString(string) {\n\treturn bytesToHex(sha256(utf8ToBytes(string))).slice(0, 16);\n}\n/**\n* Calculates a unique ID for the given children objects by hashing their sanitized JSON string representation.\n*\n* @param {any} childrenAsObjects - The children objects to be hashed.\n* @param {string} [context] - The context for the children.\n* @param {string} [id] - The ID for the JSX children object.\n* @param {number} [maxChars] - The maxChars limit for the JSX children object.\n* @param {string} [dataFormat] - The data format of the sources.\n* @param {function} [hashFunction] - Custom hash function.\n* @returns {string} - The unique hash of the children.\n*/\nfunction hashSource({ source, context, id, maxChars, dataFormat }, hashFunction = hashString) {\n\tlet sanitizedSource;\n\tif (dataFormat === \"JSX\") sanitizedSource = sanitizeJsxChildren(source);\n\telse sanitizedSource = source;\n\treturn hashFunction(stableStringify({\n\t\tsource: sanitizedSource,\n\t\t...id && { id },\n\t\t...context && { context },\n\t\t...maxChars != null && { maxChars: Math.abs(maxChars) },\n\t\t...dataFormat && { dataFormat }\n\t}));\n}\n/**\n* Sanitizes a child object by removing the data-_gt attribute and its branches.\n*\n* @param child - The child object to sanitize.\n* @returns The sanitized child object.\n*\n*/\nconst sanitizeChild = (child) => {\n\tif (child && typeof child === \"object\") {\n\t\tconst newChild = {};\n\t\tif (\"c\" in child && child.c) newChild.c = sanitizeJsxChildren(child.c);\n\t\tif (\"d\" in child) {\n\t\t\tconst generaltranslation = child?.d;\n\t\t\tif (generaltranslation?.b) newChild.b = Object.fromEntries(Object.entries(generaltranslation.b).map(([key, value]) => [key, sanitizeJsxChildren(value)]));\n\t\t\tif (generaltranslation?.t) newChild.t = generaltranslation.t;\n\t\t}\n\t\tif (isVariable(child)) return {\n\t\t\tk: child.k,\n\t\t\t...child.v && { v: child.v }\n\t\t};\n\t\treturn newChild;\n\t}\n\treturn child;\n};\nfunction sanitizeJsxChildren(childrenAsObjects) {\n\treturn Array.isArray(childrenAsObjects) ? childrenAsObjects.map(sanitizeChild) : sanitizeChild(childrenAsObjects);\n}\n//#endregion\n//#region src/id/hashTemplate.ts\nfunction hashTemplate(template, hashFunction = hashString) {\n\treturn hashFunction(stableStringify(template));\n}\n//#endregion\nexport { hashSource as n, hashString as r, hashTemplate as t };\n\n//# sourceMappingURL=id-DEaFhGqX.mjs.map","import { o as logger_default, r as interpolateIcuMessage } from \"./isEncodedTranslationOptions-BOwWa_-J.mjs\";\nimport { createDiagnosticMessage, defaultCacheUrl, defaultRuntimeApiUrl, indexVars, libraryDefaultLocale } from \"generaltranslation/internal\";\nimport { LocaleConfig, formatCutoff, isValidLocale, resolveCanonicalLocale, standardizeLocale } from \"@generaltranslation/format\";\nimport { GT } from \"generaltranslation\";\nimport { hashSource } from \"generaltranslation/id\";\n//#region src/i18n-manager/validation/publishValidationResults.ts\n/**\n* Throw errors if there are any errors and log warnings if there are any warnings\n* @param {ValidationResult[]} results - The results to print\n* @param {string} [prefix] - The prefix to add to the results\n* @param {boolean} [throwOnError] - Whether to throw an error if there are any errors\n*\n* TODO: dedupe messages\n* TODO: logging system\n*/\nfunction publishValidationResults(results, prefix = \"\", throwOnError = true) {\n\tresults.forEach((result) => {\n\t\tswitch (result.type) {\n\t\t\tcase \"error\":\n\t\t\t\tlogger_default.error(prefix + result.message);\n\t\t\t\tbreak;\n\t\t\tcase \"warning\":\n\t\t\t\tlogger_default.warn(prefix + result.message);\n\t\t\t\tbreak;\n\t\t}\n\t});\n\tif (throwOnError && results.some((result) => result.type === \"error\")) throw new Error(\"Validation errors occurred\");\n}\n//#endregion\n//#region src/i18n-manager/utils/getLoadTranslationsType.ts\n/**\n* Based on the configurtion return the load translations type\n*\n* cacheUrl = null means disabled\n*/\nfunction getLoadTranslationsType(config) {\n\tif (config.loadTranslations) return \"custom\";\n\telse if (config.cacheUrl) return \"remote\";\n\telse if ((config.cacheUrl === void 0 || config.cacheUrl === defaultCacheUrl) && config.projectId) return \"gt-remote\";\n\telse return \"disabled\";\n}\n//#endregion\n//#region src/i18n-manager/validation/config-validation/validateLoadTranslations.ts\n/**\n* Load translation configuration\n*\n* Types of load translations:\n* - GT_REMOTE: use the default remote store URL {@link defaultCacheUrl}\n* - REMOTE: use a custom remote store URL\n* - CUSTOM: use a custom translations loader\n* - DISABLED: no translations loading\n*\n* Requirements:\n* - REMOTE:\n* - GT_REMOTE:\n* - projectId is needed\n* - CUSTOM:\n* - loadTranslations is needed\n* - DISABLED:\n* - no requirements\n*/\nfunction validateLoadTranslations(params) {\n\tconst results = [];\n\tconst { projectId, loadTranslations } = params;\n\tswitch (getLoadTranslationsType(params)) {\n\t\tcase \"remote\":\n\t\tcase \"gt-remote\":\n\t\t\tif (!projectId) results.push({\n\t\t\t\ttype: \"warning\",\n\t\t\t\tmessage: createDiagnosticMessage({\n\t\t\t\t\twhatHappened: \"Loading translations from a remote store needs a projectId\",\n\t\t\t\t\tfix: \"Add projectId to the I18nManager config or disable remote translation loading\"\n\t\t\t\t})\n\t\t\t});\n\t\t\tbreak;\n\t\tcase \"custom\":\n\t\t\tif (!loadTranslations) results.push({\n\t\t\t\ttype: \"error\",\n\t\t\t\tmessage: createDiagnosticMessage({\n\t\t\t\t\twhatHappened: \"Custom translation loading needs loadTranslations\",\n\t\t\t\t\tfix: \"Provide a loadTranslations function or disable custom translation loading\"\n\t\t\t\t})\n\t\t\t});\n\t\t\tbreak;\n\t\tcase \"disabled\": break;\n\t}\n\treturn results;\n}\n//#endregion\n//#region src/i18n-manager/utils/getTranslationApiType.ts\n/**\n* Based on the configurtion return the runtime translation type\n* @param params - The parameters to validate\n* @returns The runtime translation type\n*/\nfunction getTranslationApiType(params) {\n\tconst usesDefaultRuntimeUrl = params.runtimeUrl === void 0 || params.runtimeUrl === defaultRuntimeApiUrl;\n\tif (usesDefaultRuntimeUrl && params.projectId && (params.devApiKey || params.apiKey)) return \"gt\";\n\telse if (params.runtimeUrl && !usesDefaultRuntimeUrl) return \"custom\";\n\telse return \"disabled\";\n}\n//#endregion\n//#region src/i18n-manager/validation/config-validation/validateTranslationApi.ts\n/**\n* Validate the translation API configuration\n* @param params - The parameters to validate\n* @returns The validation results\n*\n* Types of translation API:\n* - GT: use the default runtime API URL {@link defaultRuntimeApiUrl}\n* - CUSTOM: use a custom runtime API URL\n* - DISABLED: no runtime API translation\n*\n* Requirements:\n* - CUSTOM:\n* - GT:\n* - projectId is needed\n* - devApiKey or apiKey is needed\n* - DISABLED:\n* - no requirements\n*\n* TODO: reject dev api key in production\n*/\nfunction validateTranslationApi(params) {\n\tconst results = [];\n\tswitch (getTranslationApiType(params)) {\n\t\tcase \"custom\":\n\t\tcase \"gt\":\n\t\t\tif (!params.projectId) results.push({\n\t\t\t\ttype: \"warning\",\n\t\t\t\tmessage: createDiagnosticMessage({\n\t\t\t\t\twhatHappened: \"Runtime translation needs a projectId\",\n\t\t\t\t\tfix: \"Add projectId to the I18nManager config or disable runtime translation\"\n\t\t\t\t})\n\t\t\t});\n\t\t\tif (!params.devApiKey && !params.apiKey) results.push({\n\t\t\t\ttype: \"warning\",\n\t\t\t\tmessage: createDiagnosticMessage({\n\t\t\t\t\twhatHappened: \"Runtime translation needs devApiKey or apiKey\",\n\t\t\t\t\tfix: \"Add credentials to the I18nManager config or disable runtime translation\"\n\t\t\t\t})\n\t\t\t});\n\t\t\tbreak;\n\t\tcase \"disabled\": break;\n\t}\n\treturn results;\n}\n//#endregion\n//#region src/i18n-manager/utils/getGTServicesEnabled.ts\n/**\n* Returns true if GT services are enabled\n* @param config - The configuration\n* @returns True if GT services are enabled\n*/\nfunction getGTServicesEnabled(config) {\n\treturn getLoadTranslationsType(config) === \"gt-remote\" || getTranslationApiType(config) === \"gt\";\n}\n//#endregion\n//#region src/i18n-manager/validation/config-validation/validateLocales.ts\n/**\n* Validate the locales configuration\n* @param params - The parameters to validate\n* @returns The validation results\n*\n* Only apply if using GT services\n*/\nfunction validateLocales(params) {\n\tconst results = [];\n\tif (!getGTServicesEnabled(params)) return results;\n\tconst { defaultLocale, locales, customMapping } = params;\n\tnew Set([...defaultLocale ? [defaultLocale] : [], ...locales || []]).forEach((locale) => {\n\t\tif (!isValidLocale(locale, customMapping)) results.push({\n\t\t\ttype: \"error\",\n\t\t\tmessage: createDiagnosticMessage({\n\t\t\t\twhatHappened: `Locale \"${locale}\" is not valid`,\n\t\t\t\tfix: \"Use a valid BCP 47 locale code or add a custom mapping\"\n\t\t\t})\n\t\t});\n\t});\n\treturn results;\n}\n//#endregion\n//#region src/i18n-manager/validation/config-validation/validateDictionary.ts\n/**\n* Dictionary configuration\n*\n* Requirements:\n* - loadDictionary requires dictionary so the default locale always has a source dictionary\n*/\nfunction validateDictionary(params) {\n\tconst results = [];\n\tif (params.loadDictionary && !params.dictionary) results.push({\n\t\ttype: \"error\",\n\t\tmessage: createDiagnosticMessage({\n\t\t\twhatHappened: \"loadDictionary needs a source dictionary\",\n\t\t\tfix: \"Provide dictionary so the default locale has source content\"\n\t\t})\n\t});\n\treturn results;\n}\n//#endregion\n//#region src/i18n-manager/validation/validateConfig.ts\n/**\n* Validate the configuration\n* @param config - The configuration to validate\n* @returns The validation results\n*/\nfunction validateConfig(config) {\n\tconst results = [];\n\tresults.push(...validateLoadTranslations(config));\n\tresults.push(...validateTranslationApi(config));\n\tresults.push(...validateLocales(config));\n\tresults.push(...validateDictionary(config));\n\treturn results;\n}\n//#endregion\n//#region src/i18n-manager/translations-manager/utils/createTranslateMany.ts\n/**\n* Create a translate many function\n* @param locale - The locale\n* @returns The translate many function\n*/\nfunction createTranslateManyFactory(gtInstance, timeout, metadata = {}) {\n\treturn (locale) => (sources) => gtInstance.translateMany(sources, {\n\t\t...metadata,\n\t\ttargetLocale: locale\n\t}, timeout);\n}\n//#endregion\n//#region src/i18n-manager/translations-manager/translations-loaders/createRemoteTranslationLoader.ts\n/**\n* Creates a translations loader function that loads translations from a remote store (CDN or other)\n* @param params - The parameters for the createRemoteTranslationLoader function\n* @returns A translations loader function\n*\n* TODO: validate projectId, cacheUrl, _versionId, _branchId\n*/\nfunction createRemoteTranslationLoader(params) {\n\tconst unlocalizedUrl = generateUrl(params);\n\tconst loader = async (locale) => {\n\t\tlocale = resolveCanonicalLocale(locale, params.customMapping);\n\t\tconst url = unlocalizedUrl.replace(\"[locale]\", locale);\n\t\tconst response = await fetch(url);\n\t\tif (!response.ok) throw new Error(`Failed to load translations from ${url}`);\n\t\treturn await response.json();\n\t};\n\treturn loader;\n}\n/**\n* Generate a URL for a translations file\n*/\nfunction generateUrl(params) {\n\tconst { cacheUrl = defaultCacheUrl, projectId, _versionId, _branchId } = params;\n\tconst versionIdSegment = _versionId ? `/${_versionId}` : \"\";\n\tconst branchIdQuery = _branchId ? `?branchId=${_branchId}` : \"\";\n\treturn `${cacheUrl}/${projectId}/[locale]` + versionIdSegment + branchIdQuery;\n}\n//#endregion\n//#region src/i18n-manager/translations-manager/translations-loaders/createFallbackTranslationLoader.ts\n/**\n* Creates a fallback translations loader function that loads translations from a fallback source\n* @returns A translations loader function\n*/\nfunction createFallbackTranslationLoader() {\n\tconst loader = async (_locale) => {\n\t\treturn {};\n\t};\n\treturn loader;\n}\n//#endregion\n//#region src/i18n-manager/translations-manager/translations-loaders/routeCreateTranslationLoader.ts\n/**\n* Creates a translation loader function that loads translations from a remote store (CDN or other)\n* @param params - The parameters for the createTranslationLoader function\n* @param params.type - The type of translation loader to create\n* @param params.remoteTranslationLoaderParams - The parameters for the remote translation loader\n* @param params.loadTranslations - The custom translations loader function\n* @returns A translation loader function\n*/\nfunction routeCreateTranslationLoader({ type, remoteTranslationLoaderParams, loadTranslations }) {\n\tif (type === \"disabled\") logger_default.warn(\"I18nManager: No translation loader found. No translations will be loaded.\");\n\tconst { cacheUrl, projectId, _versionId, _branchId, customMapping } = remoteTranslationLoaderParams;\n\tswitch (type) {\n\t\tcase \"remote\":\n\t\tcase \"gt-remote\": return createRemoteTranslationLoader({\n\t\t\tcacheUrl,\n\t\t\tprojectId: projectId || \"\",\n\t\t\t_versionId,\n\t\t\t_branchId,\n\t\t\tcustomMapping\n\t\t});\n\t\tcase \"custom\": return loadTranslations;\n\t\tcase \"disabled\": return createFallbackTranslationLoader();\n\t}\n}\n//#endregion\n//#region src/i18n-manager/translations-manager/Cache.ts\nfunction isPlainObject(value) {\n\tif (value == null || typeof value !== \"object\") return false;\n\tconst prototype = Object.getPrototypeOf(value);\n\treturn prototype === Object.prototype || prototype === null;\n}\nfunction copyCacheValue(value) {\n\tif (Array.isArray(value)) return [...value];\n\tif (isPlainObject(value)) return { ...value };\n\treturn value;\n}\n/**\n* Cache class\n* This is designed in such a way that it is the responsibility of the client\n* to invoke the cache miss method when a cache miss occurs.\n*\n* TODO: maybe add \"OutputValue\" as a reflection of \"InputKey\"\n*/\nvar Cache = class {\n\t/**\n\t* Constructor\n\t* @param {Object} params - The parameters for the cache\n\t* @param {Record<CacheKey, CacheValue>} params.init - The initial cache\n\t* @param {CacheLifecycle} [lifecycle] - Optional lifecycle callbacks\n\t*/\n\tconstructor(init, lifecycle) {\n\t\tthis.cache = {};\n\t\tthis.fallbackPromises = {};\n\t\tthis.cache = structuredClone(init);\n\t\tthis.onHit = lifecycle?.onHit;\n\t\tthis.onMiss = lifecycle?.onMiss;\n\t}\n\t/**\n\t* Set the value for a key\n\t*/\n\tsetCache(cacheKey, value) {\n\t\tthis.cache[cacheKey] = value;\n\t}\n\t/**\n\t* Look up the key\n\t*/\n\tgetCache(key) {\n\t\tconst cacheKey = this.genKey(key);\n\t\treturn this.cache[cacheKey];\n\t}\n\t/**\n\t* Get the internal cache\n\t* @returns The internal cache\n\t*\n\t* @internal - used by gt-tanstack-start\n\t*/\n\tgetInternalCache() {\n\t\treturn Object.fromEntries(Object.entries(this.cache).map(([key, value]) => [key, copyCacheValue(value)]));\n\t}\n\t/**\n\t* Get the mutable cache for subclasses that need custom read/write behavior.\n\t*/\n\tgetMutableCache() {\n\t\treturn this.cache;\n\t}\n\t/**\n\t* Fallback to the value from the fallback function on a cache miss\n\t* @important assumes that the fallback error handling done upstream\n\t*/\n\tasync missCache(...args) {\n\t\tconst key = args[0];\n\t\tconst cacheKey = this.genKey(key);\n\t\tif (this.fallbackPromises[cacheKey] !== void 0) return await this.fallbackPromises[cacheKey];\n\t\tconst fallbackPromise = this.fallback(...args);\n\t\tthis.fallbackPromises[cacheKey] = fallbackPromise;\n\t\ttry {\n\t\t\tconst value = await fallbackPromise;\n\t\t\tthis.setCache(cacheKey, value);\n\t\t\treturn value;\n\t\t} finally {\n\t\t\tdelete this.fallbackPromises[cacheKey];\n\t\t}\n\t}\n};\n//#endregion\n//#region src/utils/hashMessage.ts\n/**\n* Hash a message string\n*/\nfunction hashMessage(message, options) {\n\tconst metadataOptions = options;\n\tif (metadataOptions.$_hash != null) return metadataOptions.$_hash;\n\treturn hashSource({\n\t\tsource: options.$format === \"ICU\" ? indexVars(message) : message,\n\t\t...metadataOptions.$context && { context: metadataOptions.$context },\n\t\t...metadataOptions.$id && { id: metadataOptions.$id },\n\t\t...metadataOptions.$maxChars != null && { maxChars: Math.abs(metadataOptions.$maxChars) },\n\t\tdataFormat: options.$format\n\t});\n}\n//#endregion\n//#region src/i18n-manager/translations-manager/TranslationsCache.ts\nconst DEFAULT_BATCH_CONFIG = {\n\tmaxConcurrentRequests: 100,\n\tmaxBatchSize: 25,\n\tbatchInterval: 50\n};\nfunction getPositiveValue(value, defaultValue) {\n\tif (value === void 0 || !Number.isFinite(value) || value <= 0) return defaultValue;\n\treturn value;\n}\nfunction getPositiveInteger(value, defaultValue) {\n\tif (value === void 0 || !Number.isFinite(value)) return defaultValue;\n\tconst integer = Math.trunc(value);\n\treturn integer > 0 ? integer : defaultValue;\n}\nfunction normalizeBatchConfig(batchConfig) {\n\treturn {\n\t\tmaxConcurrentRequests: getPositiveInteger(batchConfig?.maxConcurrentRequests, DEFAULT_BATCH_CONFIG.maxConcurrentRequests),\n\t\tmaxBatchSize: getPositiveInteger(batchConfig?.maxBatchSize, DEFAULT_BATCH_CONFIG.maxBatchSize),\n\t\tbatchInterval: getPositiveValue(batchConfig?.batchInterval, DEFAULT_BATCH_CONFIG.batchInterval)\n\t};\n}\n/**\n* A cache for a single locale's translations\n*\n* Principles:\n* - This class is language agnostic, and should never store the locale code as a parameter.\n* Locale logic is handled at the LocalesCache level. Use a callback function that has the\n* locale parameter embedded if you wish to use the locale code.\n*/\nvar TranslationsCache = class extends Cache {\n\t/**\n\t* Constructor\n\t* @param {Object} params - The parameters for the cache\n\t* @param {Record<Hash, TranslationValue>} params.init - The initial cache\n\t* @param {Function} params.fallback - Get the fallback value for a cache miss\n\t*/\n\tconstructor({ init, translateMany, lifecycle, batchConfig }) {\n\t\tsuper(init, lifecycle);\n\t\tthis._queue = [];\n\t\tthis._batchTimer = null;\n\t\tthis._activeRequests = 0;\n\t\tthis._translateMany = translateMany;\n\t\tthis._batchConfig = normalizeBatchConfig(batchConfig);\n\t}\n\t/**\n\t* Get the translation value for a given key\n\t* @param key - The translation key\n\t* @returns The translation value\n\t*/\n\tget(key) {\n\t\tconst value = this.getCache(key);\n\t\tif (value != null && this.onHit) this.onHit({\n\t\t\tinputKey: key,\n\t\t\tcacheKey: this.genKey(key),\n\t\t\tcacheValue: value,\n\t\t\toutputValue: value\n\t\t});\n\t\treturn value;\n\t}\n\t/**\n\t* Miss the cache\n\t* @param key - The translation key\n\t* @returns The translation value\n\t*/\n\tasync miss(key) {\n\t\tconst value = await this.missCache(key);\n\t\tif (value != null && this.onMiss) this.onMiss({\n\t\t\tinputKey: key,\n\t\t\tcacheKey: this.genKey(key),\n\t\t\tcacheValue: value,\n\t\t\toutputValue: value\n\t\t});\n\t\treturn value;\n\t}\n\t/**\n\t* Generate a key for the cache\n\t* @param key - The translation key\n\t* @returns The key\n\t*/\n\tgenKey(key) {\n\t\treturn hashMessage(key.message, key.options);\n\t}\n\t/**\n\t* Get the fallback value for a cache miss\n\t* @param key - The translation key\n\t* @returns The fallback value\n\t*/\n\tfallback(key) {\n\t\tconst translationPromise = this._enqueueTranslation(key);\n\t\tif (this._queue.length >= this._batchConfig.maxBatchSize) this._flushNow();\n\t\telse this._scheduleBatch();\n\t\treturn translationPromise;\n\t}\n\t/**\n\t* Flush the queue now\n\t*/\n\t_flushNow() {\n\t\tif (this._batchTimer) {\n\t\t\tclearTimeout(this._batchTimer);\n\t\t\tthis._batchTimer = null;\n\t\t}\n\t\tthis._drainQueue();\n\t}\n\t/**\n\t* Schedule a batch of translations\n\t*/\n\t_scheduleBatch() {\n\t\tif (this._batchTimer) return;\n\t\tthis._batchTimer = setTimeout(() => {\n\t\t\tthis._batchTimer = null;\n\t\t\tthis._drainQueue();\n\t\t}, this._batchConfig.batchInterval);\n\t}\n\t/**\n\t* Drain the queue\n\t*/\n\t_drainQueue() {\n\t\twhile (this._queue.length > 0 && this._activeRequests < this._batchConfig.maxConcurrentRequests) {\n\t\t\tconst batch = this._queue.splice(0, this._batchConfig.maxBatchSize);\n\t\t\tthis._sendBatchRequest(batch);\n\t\t}\n\t\tif (this._queue.length > 0) this._scheduleBatch();\n\t}\n\t/**\n\t* Enqueue translation request and return a promise that resolves when the translation is ready\n\t* @param {TranslationKey<TranslationValue>} key - The translation key\n\t* @returns {Promise<TranslationValue>} The translation promise\n\t*/\n\t_enqueueTranslation(key) {\n\t\tconst hash = this.genKey(key);\n\t\tconst options = key.options;\n\t\tconst metadataOptions = options;\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tthis._queue.push({\n\t\t\t\tkey: hash,\n\t\t\t\tsource: key.message,\n\t\t\t\tmetadata: {\n\t\t\t\t\thash,\n\t\t\t\t\t...metadataOptions.$context && { context: metadataOptions.$context },\n\t\t\t\t\t...metadataOptions.$id && { id: metadataOptions.$id },\n\t\t\t\t\t...metadataOptions.$maxChars != null && { maxChars: Math.abs(metadataOptions.$maxChars) },\n\t\t\t\t\tdataFormat: options.$format\n\t\t\t\t},\n\t\t\t\tresolve: (value) => resolve(value),\n\t\t\t\treject\n\t\t\t});\n\t\t});\n\t}\n\t/**\n\t* Send a batch request for translations\n\t* @param {QueueEntry<TranslationValue>[]} batch - The batch of requests to send\n\t*/\n\tasync _sendBatchRequest(batch) {\n\t\tthis._activeRequests++;\n\t\tconst requests = convertBatchToTranslateManyParams(batch);\n\t\tconst response = await this._sendBatchRequestWithErrorHandling(batch, requests);\n\t\tif (response) this._handleTranslationResponse(batch, response);\n\t\tthis._activeRequests--;\n\t}\n\t/**\n\t* Send a translation request with error handling\n\t*/\n\tasync _sendBatchRequestWithErrorHandling(batch, requests) {\n\t\ttry {\n\t\t\treturn await this._translateMany(requests);\n\t\t} catch (error) {\n\t\t\tfor (const entry of batch) entry.reject(error);\n\t\t\treturn;\n\t\t}\n\t}\n\t/**\n\t* Handle a translation response\n\t*/\n\t_handleTranslationResponse(batch, response) {\n\t\tfor (const entry of batch) {\n\t\t\tconst { key } = entry;\n\t\t\tconst result = response[key];\n\t\t\tif (result && result.success) {\n\t\t\t\tconst translation = result.translation;\n\t\t\t\tthis.setCache(key, translation);\n\t\t\t\tentry.resolve(translation);\n\t\t\t} else entry.reject(result?.error);\n\t\t}\n\t}\n};\n/**\n* Convert a TranslationKey to a TranslateManyEntry\n*/\nfunction convertBatchToTranslateManyParams(batch) {\n\treturn batch.reduce((acc, entry) => {\n\t\tacc[entry.key] = {\n\t\t\tsource: entry.source,\n\t\t\tmetadata: entry.metadata\n\t\t};\n\t\treturn acc;\n\t}, {});\n}\n//#endregion\n//#region src/i18n-manager/translations-manager/utils/constants.ts\n/**\n* Default cache expiry time in milliseconds\n*/\nconst DEFAULT_CACHE_EXPIRY_TIME = 6e4;\n//#endregion\n//#region src/i18n-manager/translations-manager/LocalesCache.ts\n/**\n* Cache for looking up translations by locale\n*/\nvar LocalesCache = class extends Cache {\n\t/**\n\t* Constructor\n\t* @param {Object} params - The parameters for the cache\n\t* @param {Record<string, CacheEntry<TranslationValue>>} params.init - The initial cache\n\t* @param {number | null} params.ttl - The time to live for cache entries\n\t* @param {SafeTranslationsLoader<TranslationValue>} params.loadTranslations - The translation loader function\n\t* @param {CreateTranslateMany} params.createTranslateMany - Factory function for creating a translate many function\n\t*/\n\tconstructor({ init = {}, ttl, batchConfig, loadTranslations, createTranslateMany, lifecycle: { onLocalesCacheHit: onHit, onLocalesCacheMiss: onMiss, onTranslationsCacheHit, onTranslationsCacheMiss } }) {\n\t\tsuper(init, {\n\t\t\tonHit,\n\t\t\tonMiss\n\t\t});\n\t\tthis.ttl = DEFAULT_CACHE_EXPIRY_TIME;\n\t\tthis.ttl = ttl === null ? -1 : ttl ?? 6e4;\n\t\tthis._translationLoader = loadTranslations;\n\t\tthis._createTranslateMany = createTranslateMany;\n\t\tthis._batchConfig = batchConfig;\n\t\tthis._onTranslationsCacheHit = onTranslationsCacheHit;\n\t\tthis._onTranslationsCacheMiss = onTranslationsCacheMiss;\n\t}\n\t/**\n\t* Get the translations for a given locale\n\t* @param key - The locale\n\t* @returns The translations\n\t*/\n\tget(key) {\n\t\tconst entry = this.getCache(key);\n\t\tif (!entry || entry.expiresAt > 0 && entry.expiresAt < Date.now()) return;\n\t\tconst value = entry.translationsCache;\n\t\tif (value != null && this.onHit) this.onHit({\n\t\t\tinputKey: key,\n\t\t\tcacheKey: this.genKey(key),\n\t\t\tcacheValue: entry,\n\t\t\toutputValue: value\n\t\t});\n\t\treturn value;\n\t}\n\t/**\n\t* Miss the cache\n\t* @param key - The locale\n\t* @returns The translations cache\n\t*/\n\tasync miss(key) {\n\t\tconst cacheValue = await this.missCache(key);\n\t\tconst value = cacheValue.translationsCache;\n\t\tif (value != null && this.onMiss) this.onMiss({\n\t\t\tinputKey: key,\n\t\t\tcacheKey: this.genKey(key),\n\t\t\tcacheValue,\n\t\t\toutputValue: value\n\t\t});\n\t\treturn value;\n\t}\n\t/**\n\t* Generate the cache key for a given locale\n\t* @param key - The locale\n\t* @returns The cache key\n\t*\n\t* This is just an identity function, no transformation needed\n\t*/\n\tgenKey(key) {\n\t\treturn key;\n\t}\n\t/**\n\t* Fallback for a cache miss\n\t* @param locale - The locale\n\t* @returns The cache entry\n\t*/\n\tasync fallback(locale) {\n\t\treturn {\n\t\t\ttranslationsCache: new TranslationsCache({\n\t\t\t\tinit: await this._translationLoader(locale),\n\t\t\t\tlifecycle: this._createTranslationsCacheLifecycle(locale),\n\t\t\t\ttranslateMany: this._createTranslateMany(locale),\n\t\t\t\tbatchConfig: this._batchConfig\n\t\t\t}),\n\t\t\texpiresAt: this.ttl < 0 ? this.ttl : Date.now() + this.ttl\n\t\t};\n\t}\n\t/**\n\t* Create the translations cache lifecycle\n\t* @param locale - The locale\n\t* @returns The translations cache lifecycle\n\t*/\n\t_createTranslationsCacheLifecycle(locale) {\n\t\treturn {\n\t\t\tonHit: this._onTranslationsCacheHit ? (params) => this._onTranslationsCacheHit({\n\t\t\t\tlocale,\n\t\t\t\t...params\n\t\t\t}) : void 0,\n\t\t\tonMiss: this._onTranslationsCacheMiss ? (params) => this._onTranslationsCacheMiss({\n\t\t\t\tlocale,\n\t\t\t\t...params\n\t\t\t}) : void 0\n\t\t};\n\t}\n};\n//#endregion\n//#region src/i18n-manager/translations-manager/utils/dictionary-helpers.ts\nfunction getDictionaryPath(id) {\n\tif (!id) return [];\n\treturn id.split(\".\");\n}\nfunction isDictionaryValue(value) {\n\treturn typeof value === \"object\" && value != null && !Array.isArray(value);\n}\nfunction getDictionaryEntry(value) {\n\tif (!isDictionaryLeafNode(value)) return;\n\treturn {\n\t\tentry: Array.isArray(value) ? value[0] : value,\n\t\toptions: Array.isArray(value) ? value[1] ?? {} : {}\n\t};\n}\nfunction getDictionaryValue(value) {\n\tif (Object.keys(value.options).length === 0) return value.entry;\n\treturn [value.entry, value.options];\n}\nfunction resolveDictionaryLookupOptions(options) {\n\tconst { $format, ...rest } = options;\n\treturn {\n\t\t...rest,\n\t\t$format: isStringFormat($format) ? $format : \"ICU\",\n\t\t...rest.$context === void 0 && typeof rest.context === \"string\" && { $context: rest.context }\n\t};\n}\nfunction isDictionaryLeafNode(value) {\n\tif (typeof value === \"string\") return true;\n\tif (!Array.isArray(value) || typeof value[0] !== \"string\") return false;\n\tif (value.length === 1) return true;\n\treturn value.length === 2 && isDictionaryOptions(value[1]);\n}\nfunction isDictionaryOptions(value) {\n\tif (typeof value !== \"object\" || value == null || Array.isArray(value)) return false;\n\tconst options = value;\n\treturn (options.$context === void 0 || typeof options.$context === \"string\") && (options.$format === void 0 || isStringFormat(options.$format)) && (options.$maxChars === void 0 || typeof options.$maxChars === \"number\") && (options.context === void 0 || typeof options.context === \"string\");\n}\nfunction isStringFormat(value) {\n\treturn value === \"ICU\" || value === \"I18NEXT\" || value === \"STRING\";\n}\nfunction replaceDictionary(target, source) {\n\tfor (const key of Object.keys(target)) delete target[key];\n\tObject.assign(target, source);\n}\n//#endregion\n//#region src/i18n-manager/translations-manager/utils/DictionarySourceNotFoundError.ts\nvar DictionarySourceNotFoundError = class extends Error {\n\tconstructor(id) {\n\t\tsuper(`I18nManager: source dictionary entry ${id} is not defined`);\n\t\tthis.name = \"DictionarySourceNotFoundError\";\n\t}\n};\n//#endregion\n//#region src/i18n-manager/translations-manager/DictionaryCache.ts\n/**\n* A cache for a single locale's dictionary\n*\n* Principles:\n* - This class is language agnostic, and should never store the locale code as a parameter.\n* Locale logic is handled at the LocalesDictionaryCache level. Use a callback function\n* that has the locale parameter embedded if you wish to use the locale code.\n*/\nvar DictionaryCache = class extends Cache {\n\t/**\n\t* Constructor\n\t* @param {Object} params - The parameters for the cache\n\t* @param {Dictionary} params.init - The initial cache\n\t*/\n\tconstructor({ init, lifecycle, runtimeTranslate }) {\n\t\tsuper(init, lifecycle);\n\t\tthis._runtimeTranslate = runtimeTranslate;\n\t\tthis.onHitObj = lifecycle?.onHitObj;\n\t\tthis.onMissObj = lifecycle?.onMissObj;\n\t}\n\t/**\n\t* Get the dictionary value for a given key\n\t* @param key - The dictionary key\n\t* @returns The dictionary value\n\t*/\n\tget(key) {\n\t\tconst value = this.getCache(key);\n\t\tconst entry = getDictionaryEntry(value);\n\t\tif (entry === void 0) return;\n\t\tif (this.onHit) this.onHit({\n\t\t\tinputKey: key,\n\t\t\tcacheKey: this.genKey(key),\n\t\t\tcacheValue: value,\n\t\t\toutputValue: entry\n\t\t});\n\t\treturn entry;\n\t}\n\tset(key, value) {\n\t\tconst dictionaryValue = getDictionaryValue(value);\n\t\tthis.setCache(this.genKey(key), dictionaryValue);\n\t}\n\tgetObj(key) {\n\t\tconst value = this.getCache(key);\n\t\tif (value === void 0) return;\n\t\tconst outputValue = structuredClone(value);\n\t\tif (this.onHitObj) this.onHitObj({\n\t\t\tinputKey: key,\n\t\t\tcacheKey: this.genKey(key),\n\t\t\tcacheValue: value,\n\t\t\toutputValue\n\t\t});\n\t\treturn outputValue;\n\t}\n\tsetObj(key, value) {\n\t\tthis.setCache(this.genKey(key), structuredClone(value));\n\t}\n\tasync missObj(key, sourceObject) {\n\t\tconst sourceEntry = getDictionaryEntry(sourceObject);\n\t\tif (sourceEntry !== void 0) return getDictionaryValue(await this.miss(key, sourceEntry));\n\t\tif (!isDictionaryValue(sourceObject)) throw new DictionarySourceNotFoundError(key);\n\t\tconst translatedEntries = await Promise.all(Object.entries(sourceObject).map(async ([childKey, childSource]) => {\n\t\t\tconst childPath = key ? `${key}.${childKey}` : childKey;\n\t\t\treturn [childKey, await this.missObj(childPath, childSource)];\n\t\t}));\n\t\tconst translatedObject = Object.fromEntries(translatedEntries);\n\t\tthis.setObj(key, translatedObject);\n\t\treturn translatedObject;\n\t}\n\t/**\n\t* Miss the cache\n\t* @param key - The dictionary key\n\t* @returns The dictionary value\n\t*/\n\tasync miss(key, sourceEntry) {\n\t\tconst value = await this.missCache(key, sourceEntry);\n\t\tconst entry = getDictionaryEntry(value);\n\t\tif (entry === void 0) throw new Error(\"DictionaryCache missCache did not return a DictionaryEntry\");\n\t\tif (this.onMiss) this.onMiss({\n\t\t\tinputKey: key,\n\t\t\tcacheKey: this.genKey(key),\n\t\t\tcacheValue: value,\n\t\t\toutputValue: entry\n\t\t});\n\t\treturn entry;\n\t}\n\t/**\n\t* Set the value for a key\n\t*/\n\tsetCache(cacheKey, value) {\n\t\tconst cache = this.getMutableCache();\n\t\tconst dictionaryPath = getDictionaryPath(cacheKey);\n\t\tif (dictionaryPath.length === 0) {\n\t\t\tif (isDictionaryValue(value)) replaceDictionary(cache, value);\n\t\t\treturn;\n\t\t}\n\t\tlet current = cache;\n\t\tfor (const key of dictionaryPath.slice(0, -1)) {\n\t\t\tconst next = current[key];\n\t\t\tif (!isDictionaryValue(next)) current[key] = {};\n\t\t\tcurrent = current[key];\n\t\t}\n\t\tcurrent[dictionaryPath[dictionaryPath.length - 1]] = value;\n\t}\n\t/**\n\t* Look up the key\n\t*/\n\tgetCache(key) {\n\t\tconst dictionaryPath = getDictionaryPath(this.genKey(key));\n\t\tlet current = this.getMutableCache();\n\t\tif (dictionaryPath.length === 0) return current;\n\t\tfor (const pathSegment of dictionaryPath) {\n\t\t\tif (!isDictionaryValue(current)) return;\n\t\t\tcurrent = current[pathSegment];\n\t\t}\n\t\treturn current;\n\t}\n\t/**\n\t* Generate a key for the cache\n\t* @param key - The dictionary key\n\t* @returns The key\n\t*/\n\tgenKey(key) {\n\t\treturn key;\n\t}\n\t/**\n\t* Get the fallback value for a cache miss\n\t* @param key - The dictionary key\n\t* @returns The fallback value\n\t*\n\t* @throws {Error} - If the fallback is not implemented\n\t*/\n\tfallback(key, sourceEntry) {\n\t\treturn this._runtimeTranslate(key, sourceEntry);\n\t}\n};\n//#endregion\n//#region src/i18n-manager/translations-manager/LocalesDictionaryCache.ts\n/**\n* Cache for looking up dictionaries by locale\n*/\nvar LocalesDictionaryCache = class extends Cache {\n\t/**\n\t* Constructor\n\t* @param {Object} params - The parameters for the cache\n\t* @param {number | null} params.ttl - The time to live for cache entries\n\t* @param {DictionaryLoader} params.loadDictionary - The dictionary loader function\n\t*/\n\tconstructor({ ttl, defaultLocale, dictionary = {}, loadDictionary, runtimeTranslate, lifecycle: { onLocalesDictionaryCacheHit: onHit, onLocalesDictionaryCacheMiss: onMiss, onDictionaryCacheHit, onDictionaryCacheMiss, onDictionaryObjectCacheHit } }) {\n\t\tsuper({}, {\n\t\t\tonHit,\n\t\t\tonMiss\n\t\t});\n\t\tthis.ttl = DEFAULT_CACHE_EXPIRY_TIME;\n\t\tthis.ttl = ttl === null ? -1 : ttl ?? 6e4;\n\t\tthis._dictionaryLoader = loadDictionary;\n\t\tthis._runtimeTranslate = runtimeTranslate;\n\t\tthis._onDictionaryCacheHit = onDictionaryCacheHit;\n\t\tthis._onDictionaryCacheMiss = onDictionaryCacheMiss;\n\t\tthis._onDictionaryObjectCacheHit = onDictionaryObjectCacheHit;\n\t\tthis.setCache(defaultLocale, {\n\t\t\tdictionaryCache: new DictionaryCache({\n\t\t\t\tinit: dictionary,\n\t\t\t\truntimeTranslate: this._createDictionaryRuntimeTranslate(defaultLocale),\n\t\t\t\tlifecycle: this._createDictionaryCacheLifecycle(defaultLocale)\n\t\t\t}),\n\t\t\texpiresAt: -1\n\t\t});\n\t}\n\t/**\n\t* Get the dictionary for a given locale\n\t* @param key - The locale\n\t* @returns The dictionary\n\t*/\n\tget(key) {\n\t\tconst entry = this.getCache(key);\n\t\tif (!entry || entry.expiresAt > 0 && entry.expiresAt < Date.now()) return;\n\t\tconst value = entry.dictionaryCache;\n\t\tif (value != null && this.onHit) this.onHit({\n\t\t\tinputKey: key,\n\t\t\tcacheKey: this.genKey(key),\n\t\t\tcacheValue: entry,\n\t\t\toutputValue: value\n\t\t});\n\t\treturn value;\n\t}\n\t/**\n\t* Miss the cache\n\t* @param key - The locale\n\t* @returns The dictionary cache\n\t*/\n\tasync miss(key) {\n\t\tconst cacheValue = await this.missCache(key);\n\t\tconst value = cacheValue.dictionaryCache;\n\t\tif (value != null && this.onMiss) this.onMiss({\n\t\t\tinputKey: key,\n\t\t\tcacheKey: this.genKey(key),\n\t\t\tcacheValue,\n\t\t\toutputValue: value\n\t\t});\n\t\treturn value;\n\t}\n\t/**\n\t* Generate the cache key for a given locale\n\t* @param key - The locale\n\t* @returns The cache key\n\t*\n\t* This is just an identity function, no transformation needed\n\t*/\n\tgenKey(key) {\n\t\treturn key;\n\t}\n\t/**\n\t* Fallback for a cache miss\n\t* @param locale - The locale\n\t* @returns The cache entry\n\t*/\n\tasync fallback(locale) {\n\t\treturn {\n\t\t\tdictionaryCache: new DictionaryCache({\n\t\t\t\tinit: await this._dictionaryLoader(locale),\n\t\t\t\truntimeTranslate: this._createDictionaryRuntimeTranslate(locale),\n\t\t\t\tlifecycle: this._createDictionaryCacheLifecycle(locale)\n\t\t\t}),\n\t\t\texpiresAt: this.ttl < 0 ? this.ttl : Date.now() + this.ttl\n\t\t};\n\t}\n\t/**\n\t* Create the dictionary cache lifecycle\n\t* @param locale - The locale\n\t* @returns The dictionary cache lifecycle\n\t*/\n\t_createDictionaryCacheLifecycle(locale) {\n\t\treturn {\n\t\t\tonHit: this._onDictionaryCacheHit ? (params) => this._onDictionaryCacheHit({\n\t\t\t\tlocale,\n\t\t\t\t...params\n\t\t\t}) : void 0,\n\t\t\tonMiss: this._onDictionaryCacheMiss ? (params) => this._onDictionaryCacheMiss({\n\t\t\t\tlocale,\n\t\t\t\t...params\n\t\t\t}) : void 0,\n\t\t\tonHitObj: this._onDictionaryObjectCacheHit ? (params) => this._onDictionaryObjectCacheHit({\n\t\t\t\tlocale,\n\t\t\t\t...params\n\t\t\t}) : void 0\n\t\t};\n\t}\n\t_createDictionaryRuntimeTranslate(locale) {\n\t\treturn (key, sourceEntry) => this._runtimeTranslate(locale, key, sourceEntry);\n\t}\n};\n//#endregion\n//#region src/i18n-manager/event-subscription/types.ts\nconst LOCALES_CACHE_MISS_EVENT_NAME = \"locales-cache-miss\";\nconst TRANSLATIONS_CACHE_MISS_EVENT_NAME = \"translations-cache-miss\";\nconst LOCALES_DICTIONARY_CACHE_MISS_EVENT_NAME = \"locales-dictionary-cache-miss\";\nconst DICTIONARY_CACHE_MISS_EVENT_NAME = \"dictionary-cache-miss\";\n//#endregion\n//#region src/i18n-manager/lifecycle-hooks/createLifecycleCallbacks.ts\n/**\n* Maps consumer-facing lifecycle callbacks to internal locales cache lifecycle callbacks.\n* The consumer API exposes simplified params (locale, hash, value) while the internal\n* API uses the full cache lifecycle params (inputKey, cacheKey, cacheValue, outputValue).\n*\n* @deprecated - move to subscription api instead\n*/\nfunction createLifecycleCallbacks(emit) {\n\treturn {\n\t\tonLocalesCacheHit: (params) => {\n\t\t\temit(\"locales-cache-hit\", {\n\t\t\t\tlocale: params.inputKey,\n\t\t\t\ttranslations: params.outputValue.getInternalCache()\n\t\t\t});\n\t\t},\n\t\tonLocalesCacheMiss: (params) => {\n\t\t\temit(LOCALES_CACHE_MISS_EVENT_NAME, {\n\t\t\t\tlocale: params.inputKey,\n\t\t\t\ttranslations: params.outputValue.getInternalCache()\n\t\t\t});\n\t\t},\n\t\tonTranslationsCacheHit: (params) => {\n\t\t\temit(\"translations-cache-hit\", {\n\t\t\t\tlocale: params.locale,\n\t\t\t\thash: params.cacheKey,\n\t\t\t\ttranslation: params.outputValue\n\t\t\t});\n\t\t},\n\t\tonTranslationsCacheMiss: (params) => {\n\t\t\temit(TRANSLATIONS_CACHE_MISS_EVENT_NAME, {\n\t\t\t\tlocale: params.locale,\n\t\t\t\thash: params.cacheKey,\n\t\t\t\ttranslation: params.outputValue\n\t\t\t});\n\t\t},\n\t\tonLocalesDictionaryCacheHit: (params) => {\n\t\t\temit(\"locales-dictionary-cache-hit\", {\n\t\t\t\tlocale: params.inputKey,\n\t\t\t\tdictionary: params.outputValue.getInternalCache()\n\t\t\t});\n\t\t},\n\t\tonLocalesDictionaryCacheMiss: (params) => {\n\t\t\temit(LOCALES_DICTIONARY_CACHE_MISS_EVENT_NAME, {\n\t\t\t\tlocale: params.inputKey,\n\t\t\t\tdictionary: params.outputValue.getInternalCache()\n\t\t\t});\n\t\t},\n\t\tonDictionaryCacheHit: (params) => {\n\t\t\temit(\"dictionary-cache-hit\", {\n\t\t\t\tlocale: params.locale,\n\t\t\t\tid: params.cacheKey,\n\t\t\t\tdictionaryEntry: params.outputValue\n\t\t\t});\n\t\t},\n\t\tonDictionaryCacheMiss: (params) => {\n\t\t\temit(DICTIONARY_CACHE_MISS_EVENT_NAME, {\n\t\t\t\tlocale: params.locale,\n\t\t\t\tid: params.cacheKey,\n\t\t\t\tdictionaryEntry: params.outputValue\n\t\t\t});\n\t\t},\n\t\tonDictionaryObjectCacheHit: (params) => {\n\t\t\temit(\"dictionary-object-cache-hit\", {\n\t\t\t\tlocale: params.locale,\n\t\t\t\tid: params.cacheKey,\n\t\t\t\tdictionaryValue: params.outputValue\n\t\t\t});\n\t\t}\n\t};\n}\n//#endregion\n//#region src/i18n-manager/event-subscription/EventEmitter.ts\n/**\n* Base class for event emitters\n*/\nvar EventEmitter = class {\n\tconstructor() {\n\t\tthis.listeners = {};\n\t}\n\tgetOrCreateListeners(eventName) {\n\t\tif (!this.listeners[eventName]) this.listeners[eventName] = /* @__PURE__ */ new Set();\n\t\treturn this.listeners[eventName];\n\t}\n\t/**\n\t* Subscribe to an event, returns an unsubscribe function\n\t*/\n\tsubscribe(eventName, listener) {\n\t\tconst set = this.getOrCreateListeners(eventName);\n\t\tset.add(listener);\n\t\treturn () => {\n\t\t\tset.delete(listener);\n\t\t};\n\t}\n\t/**\n\t* Emit an event\n\t*/\n\temit(eventName, event) {\n\t\tthis.listeners[eventName]?.forEach((subscriber) => subscriber(event));\n\t}\n};\n//#endregion\n//#region src/i18n-manager/lifecycle-hooks/subscribeLifecycleCallbacks.ts\n/**\n* Subscribes to the lifecycle callbacks and emits the events to the event emitter\n* @deprecated - move to subscription api instead\n*\n* NOTE: we do not have to worry about unsubscribe here as this is a deprecated api\n* and is only used internally\n*/\nfunction subscribeLifecycleCallbacks({ onLocalesCacheHit, onLocalesCacheMiss, onTranslationsCacheHit, onTranslationsCacheMiss, onLocalesDictionaryCacheHit, onLocalesDictionaryCacheMiss, onDictionaryCacheHit, onDictionaryCacheMiss, onDictionaryObjectCacheHit }, subscribe) {\n\tif (onLocalesCacheHit) subscribe(\"locales-cache-hit\", (event) => {\n\t\tonLocalesCacheHit({\n\t\t\t...event,\n\t\t\tvalue: event.translations\n\t\t});\n\t});\n\tif (onLocalesCacheMiss) subscribe(LOCALES_CACHE_MISS_EVENT_NAME, (event) => {\n\t\tonLocalesCacheMiss({\n\t\t\t...event,\n\t\t\tvalue: event.translations\n\t\t});\n\t});\n\tif (onTranslationsCacheHit) subscribe(\"translations-cache-hit\", (event) => {\n\t\tonTranslationsCacheHit({\n\t\t\t...event,\n\t\t\tvalue: event.translation\n\t\t});\n\t});\n\tif (onTranslationsCacheMiss) subscribe(TRANSLATIONS_CACHE_MISS_EVENT_NAME, (event) => {\n\t\tonTranslationsCacheMiss({\n\t\t\t...event,\n\t\t\tvalue: event.translation\n\t\t});\n\t});\n\tif (onLocalesDictionaryCacheHit) subscribe(\"locales-dictionary-cache-hit\", (event) => {\n\t\tonLocalesDictionaryCacheHit(event);\n\t});\n\tif (onLocalesDictionaryCacheMiss) subscribe(LOCALES_DICTIONARY_CACHE_MISS_EVENT_NAME, (event) => {\n\t\tonLocalesDictionaryCacheMiss(event);\n\t});\n\tif (onDictionaryCacheHit) subscribe(\"dictionary-cache-hit\", (event) => {\n\t\tonDictionaryCacheHit(event);\n\t});\n\tif (onDictionaryCacheMiss) subscribe(DICTIONARY_CACHE_MISS_EVENT_NAME, (event) => {\n\t\tonDictionaryCacheMiss(event);\n\t});\n\tif (onDictionaryObjectCacheHit) subscribe(\"dictionary-object-cache-hit\", (event) => {\n\t\tonDictionaryObjectCacheHit(event);\n\t});\n}\n//#endregion\n//#region src/i18n-manager/I18nManager.ts\n/**\n* Default translation timeout in milliseconds for a runtime translation request\n*/\nconst DEFAULT_TRANSLATION_TIMEOUT = 12e3;\n/**\n* Class for managing translation functionality\n* @template TranslationValue - The type of the translation that will be cached\n*/\nvar I18nManager = class extends EventEmitter {\n\t/**\n\t* Creates an instance of I18nManager.\n\t* TODO: resolve gtConfig from just file path\n\t* @param params - The parameters for the I18nManager constructor\n\t* @param params.config - The configuration for the I18nManager\n\t*/\n\tconstructor(params) {\n\t\tsuper();\n\t\tthis.resolveTranslationSync = (locale, message, options) => {\n\t\t\treturn this.lookupTranslation(locale, message, options);\n\t\t};\n\t\tpublishValidationResults(validateConfig(params), \"I18nManager: \");\n\t\tthis.config = standardizeConfig(params);\n\t\tthis.localeConfig = new LocaleConfig({\n\t\t\tdefaultLocale: this.config.defaultLocale,\n\t\t\tlocales: this.config.locales,\n\t\t\tcustomMapping: this.config.customMapping\n\t\t});\n\t\tconst loadTranslations = createTranslationLoader(params);\n\t\tconst loadDictionary = createDictionaryLoader(params);\n\t\tconst runtimeTranslationTimeout = this.config.runtimeTranslation?.timeout ?? DEFAULT_TRANSLATION_TIMEOUT;\n\t\tconst runtimeTranslationMetadata = this.config.runtimeTranslation?.metadata ?? {};\n\t\tconst createTranslateMany = createTranslateManyFactory(this.getGTClassClean(), runtimeTranslationTimeout, runtimeTranslationMetadata);\n\t\tsubscribeLifecycleCallbacks(params.lifecycle ?? {}, (...args) => this.subscribe(...args));\n\t\tconst lifecycle = createLifecycleCallbacks((...args) => this.emit(...args));\n\t\tthis.localesCache = new LocalesCache({\n\t\t\tloadTranslations,\n\t\t\tcreateTranslateMany,\n\t\t\tlifecycle,\n\t\t\tttl: this.config.cacheExpiryTime,\n\t\t\tbatchConfig: this.config.batchConfig\n\t\t});\n\t\tthis.localesDictionaryCache = new LocalesDictionaryCache({\n\t\t\tdefaultLocale: this.config.defaultLocale,\n\t\t\tdictionary: params.dictionary,\n\t\t\tloadDictionary,\n\t\t\truntimeTranslate: (locale, id, sourceEntry) => this.dictionaryRuntimeTranslate(locale, id, sourceEntry),\n\t\t\tttl: this.config.cacheExpiryTime,\n\t\t\tlifecycle\n\t\t});\n\t}\n\t/**\n\t* Subscribes to a change in a translation entry (eg a runtime translation)\n\t* @param listener - The subscriber function\n\t* @param locale - The locale of the translation entry\n\t* @param hash - The hash of the translation entry\n\t* @returns An unsubscribe function\n\t*\n\t* Pair this with {@link lookupTranslation} to get the translation entry\n\t*/\n\tsubscribeToTranslationsCacheMiss(listener, locale, hash) {\n\t\treturn this.subscribe(TRANSLATIONS_CACHE_MISS_EVENT_NAME, (event) => {\n\t\t\tif (event.locale !== locale || event.hash !== hash) return;\n\t\t\tlistener(event);\n\t\t});\n\t}\n\t/**\n\t* Get the default locale\n\t*/\n\tgetDefaultLocale() {\n\t\treturn this.config.defaultLocale;\n\t}\n\t/**\n\t* Get the locales\n\t*/\n\tgetLocales() {\n\t\treturn this.config.locales;\n\t}\n\t/**\n\t* Get the custom locale mapping\n\t*/\n\tgetCustomMapping() {\n\t\treturn this.config.customMapping;\n\t}\n\t/**\n\t* Get the version ID\n\t*/\n\tgetVersionId() {\n\t\treturn this.config._versionId;\n\t}\n\t/**\n\t* Get a gt class instance\n\t* @param locale - The locale to bind to the GT instance. When omitted, the GT instance is locale agnostic.\n\t* TODO: keep a cache to avoid creating new instances unnecessarily\n\t*/\n\tgetGTClass(locale) {\n\t\treturn this.getGTClassClean(locale ? this.resolveLocale(locale) : void 0);\n\t}\n\t/**\n\t* Is translation enabled?\n\t*/\n\tisTranslationEnabled() {\n\t\treturn this.config.enableI18n;\n\t}\n\t/**\n\t* Get the translation loader function\n\t* @deprecated wrap a cb around loadTranslations instead\n\t*/\n\tgetTranslationLoader() {\n\t\treturn (locale) => this.loadTranslations(locale);\n\t}\n\t/**\n\t* Loads in translations for a given locale\n\t* Edge case usage: access the translations object directly\n\t*/\n\tasync loadTranslations(locale) {\n\t\ttry {\n\t\t\tconst translationLocale = this.resolveCacheLocale(locale);\n\t\t\tif (!translationLocale) return {};\n\t\t\tlet txCache = this.localesCache.get(translationLocale);\n\t\t\tif (!txCache) txCache = await this.localesCache.miss(translationLocale);\n\t\t\treturn txCache.getInternalCache();\n\t\t} catch (error) {\n\t\t\tthis.handleError(error);\n\t\t\treturn {};\n\t\t}\n\t}\n\t/**\n\t* Loads in the dictionary for a given locale\n\t* Edge case usage: access the dictionary object directly\n\t*/\n\tasync loadDictionary(locale) {\n\t\ttry {\n\t\t\tconst dictionaryLocale = this.resolveCacheLocale(locale);\n\t\t\tif (!dictionaryLocale) return this.localesDictionaryCache.get(this.config.defaultLocale)?.getInternalCache() ?? {};\n\t\t\tlet dictionaryCache = this.localesDictionaryCache.get(dictionaryLocale);\n\t\t\tif (!dictionaryCache) dictionaryCache = await this.localesDictionaryCache.miss(dictionaryLocale);\n\t\t\treturn dictionaryCache.getInternalCache();\n\t\t} catch (error) {\n\t\t\tthis.handleError(error);\n\t\t\treturn {};\n\t\t}\n\t}\n\t/**\n\t* Look up a dictionary entry\n\t*/\n\tlookupDictionary(locale, id) {\n\t\ttry {\n\t\t\tconst dictionaryLocale = this.resolveCacheLocale(locale) ?? this.config.defaultLocale;\n\t\t\treturn this.localesDictionaryCache.get(dictionaryLocale)?.get(id);\n\t\t} catch (error) {\n\t\t\tthis.handleError(error);\n\t\t\treturn;\n\t\t}\n\t}\n\t/**\n\t* Look up a dictionary entry or subtree\n\t*/\n\tlookupDictionaryObj(locale, id) {\n\t\ttry {\n\t\t\tconst dictionaryLocale = this.resolveCacheLocale(locale) ?? this.config.defaultLocale;\n\t\t\treturn this.localesDictionaryCache.get(dictionaryLocale)?.getObj(id);\n\t\t} catch (error) {\n\t\t\tthis.handleError(error);\n\t\t\treturn;\n\t\t}\n\t}\n\t/**\n\t* Look up a dictionary entry\n\t* If it's not found, use the fallback (runtime translate)\n\t*/\n\tasync lookupDictionaryWithFallback(locale, id) {\n\t\ttry {\n\t\t\tconst dictionaryLocale = this.resolveCacheLocale(locale);\n\t\t\tif (!dictionaryLocale) {\n\t\t\t\tconst sourceEntry = this.localesDictionaryCache.get(this.config.defaultLocale)?.get(id);\n\t\t\t\tif (sourceEntry === void 0) throw new DictionarySourceNotFoundError(id);\n\t\t\t\treturn sourceEntry;\n\t\t\t}\n\t\t\tlet dictionaryCache = this.localesDictionaryCache.get(dictionaryLocale);\n\t\t\tif (!dictionaryCache) dictionaryCache = await this.localesDictionaryCache.miss(dictionaryLocale);\n\t\t\tlet dictionaryEntry = dictionaryCache.get(id);\n\t\t\tif (dictionaryEntry === void 0) {\n\t\t\t\tconst sourceEntry = this.localesDictionaryCache.get(this.config.defaultLocale)?.get(id);\n\t\t\t\tif (sourceEntry === void 0) throw new DictionarySourceNotFoundError(id);\n\t\t\t\tdictionaryEntry = await dictionaryCache.miss(id, sourceEntry);\n\t\t\t}\n\t\t\treturn dictionaryEntry;\n\t\t} catch (error) {\n\t\t\tthis.handleError(error);\n\t\t\treturn;\n\t\t}\n\t}\n\t/**\n\t* Look up a dictionary entry or subtree\n\t* If it's not found, use the fallback (runtime translate)\n\t*/\n\tasync lookupDictionaryObjWithFallback(locale, id) {\n\t\ttry {\n\t\t\tconst dictionaryLocale = this.resolveCacheLocale(locale);\n\t\t\tif (!dictionaryLocale) {\n\t\t\t\tconst sourceObject = this.localesDictionaryCache.get(this.config.defaultLocale)?.getObj(id);\n\t\t\t\tif (sourceObject === void 0) throw new DictionarySourceNotFoundError(id);\n\t\t\t\treturn sourceObject;\n\t\t\t}\n\t\t\tlet dictionaryCache = this.localesDictionaryCache.get(dictionaryLocale);\n\t\t\tif (!dictionaryCache) dictionaryCache = await this.localesDictionaryCache.miss(dictionaryLocale);\n\t\t\tlet dictionaryObject = dictionaryCache.getObj(id);\n\t\t\tif (dictionaryObject === void 0) {\n\t\t\t\tconst sourceObject = this.localesDictionaryCache.get(this.config.defaultLocale)?.getObj(id);\n\t\t\t\tif (sourceObject === void 0) throw new DictionarySourceNotFoundError(id);\n\t\t\t\tdictionaryObject = await dictionaryCache.missObj(id, sourceObject);\n\t\t\t}\n\t\t\treturn dictionaryObject;\n\t\t} catch (error) {\n\t\t\tthis.handleError(error);\n\t\t\treturn;\n\t\t}\n\t}\n\t/**\n\t* Just lookup a translation\n\t*/\n\tlookupTranslation(locale, message, options) {\n\t\ttry {\n\t\t\tconst { translationLocale, options: lookupOptions } = this.resolveLookupParams(locale, options);\n\t\t\tif (!translationLocale) return message;\n\t\t\tconst txCache = this.localesCache.get(translationLocale);\n\t\t\tif (!txCache) return void 0;\n\t\t\treturn txCache.get({\n\t\t\t\tmessage,\n\t\t\t\toptions: lookupOptions\n\t\t\t});\n\t\t} catch (error) {\n\t\t\tthis.handleError(error);\n\t\t\treturn;\n\t\t}\n\t}\n\t/**\n\t* Look up a translation\n\t* If it's not found, use the fallback (runtime translate)\n\t*/\n\tasync lookupTranslationWithFallback(locale, message, options) {\n\t\ttry {\n\t\t\treturn await this.lookupTranslationWithFallbackResolved(locale, message, options);\n\t\t} catch (error) {\n\t\t\tthis.handleError(error);\n\t\t\treturn;\n\t\t}\n\t}\n\t/**\n\t* Saves a current lookup translation function immune to expiry\n\t* Useful for operations involving lookup callbacks like useGT()\n\t* @param locale - The locale to get the lookup translation for\n\t* @param prefetchEntries - Any entries we want to prefetch during the async period\n\t* @returns A lookup translation function\n\t*\n\t* @important prefetchEntries must all be the same locale\n\t*/\n\tasync getLookupTranslation(locale, prefetchEntries = []) {\n\t\ttry {\n\t\t\tconst translationLocale = this.resolveCacheLocale(locale);\n\t\t\tif (!translationLocale) return (message) => message;\n\t\t\tconst resolvedPrefetchEntries = resolvePrefetchEntriesByLocale(prefetchEntries, translationLocale, (entryLocale) => this.resolveCacheLocale(entryLocale) ?? this.resolveLocale(entryLocale));\n\t\t\tif (resolvedPrefetchEntries.length !== prefetchEntries.length) logger_default.warn(`I18nManager: getLookupTranslation(): prefetchEntries must all be the same locale, ignoring all entries that are not for ${translationLocale}`);\n\t\t\tlet txCache = this.localesCache.get(translationLocale);\n\t\t\tif (!txCache) txCache = await this.localesCache.miss(translationLocale);\n\t\t\tif (!txCache) return () => void 0;\n\t\t\tawait Promise.all(resolvedPrefetchEntries.filter((entry) => txCache.get(entry) == null).map((entry) => txCache.miss(entry)));\n\t\t\treturn (message, options = {}) => {\n\t\t\t\treturn txCache.get({\n\t\t\t\t\tmessage,\n\t\t\t\t\toptions: this.resolveLookupOptions(options)\n\t\t\t\t});\n\t\t\t};\n\t\t} catch (error) {\n\t\t\tthis.handleError(error);\n\t\t\treturn (message) => message;\n\t\t}\n\t}\n\t/**\n\t* Get the translations\n\t* @deprecated use loadTranslations instead\n\t*/\n\tasync getTranslations(locale) {\n\t\ttry {\n\t\t\treturn this.loadTranslations(locale);\n\t\t} catch (error) {\n\t\t\tthis.handleError(error);\n\t\t\treturn {};\n\t\t}\n\t}\n\t/**\n\t* Get translation for a given locale and message\n\t*\n\t* @param {string} locale - The locale to get the translation for\n\t* @returns A function that resolves the translations for a given message and options synchronously\n\t*\n\t* Note: we can assume that the translation is a string because we are passing a string\n\t*\n\t* @deprecated use getLookupTranslation instead\n\t*/\n\tasync getTranslationResolver(locale) {\n\t\treturn this.getLookupTranslation(locale);\n\t}\n\t/**\n\t* Returns true if translation is required\n\t* @param {string} locale - The user's locale\n\t* @returns {boolean} True if translation is required, otherwise false\n\t*/\n\trequiresTranslation(locale) {\n\t\tconst defaultLocale = this.getDefaultLocale();\n\t\tconst locales = this.getLocales();\n\t\treturn this.isTranslationEnabled() && this.localeConfig.requiresTranslation(locale, defaultLocale, locales);\n\t}\n\t/**\n\t* Returns true if dialect translation is required\n\t* @param {string} locale - The user's locale\n\t* @returns {boolean} True if dialect translation is required, otherwise false\n\t*/\n\trequiresDialectTranslation(locale) {\n\t\tconst defaultLocale = this.getDefaultLocale();\n\t\treturn this.requiresTranslation(locale) && this.localeConfig.isSameLanguage(defaultLocale, locale);\n\t}\n\t/**\n\t* Handle errors\n\t* Soft error in production, throw in development\n\t*/\n\thandleError(error) {\n\t\tif (error instanceof DictionarySourceNotFoundError) throw error;\n\t\tswitch (this.config.environment) {\n\t\t\tcase \"development\": throw error;\n\t\t\tdefault:\n\t\t\t\tlogger_default.error(\"I18nManager: \" + error);\n\t\t\t\tbreak;\n\t\t}\n\t}\n\tresolveLocale(locale) {\n\t\tconst resolvedLocale = this.localeConfig.determineLocale(locale);\n\t\tif (!this.localeConfig.isValidLocale(locale) || !resolvedLocale) throw new Error(`Locale \"${locale}\" is not valid. Use a valid BCP 47 locale code or add a custom mapping.`);\n\t\treturn resolvedLocale;\n\t}\n\t/**\n\t* Resolve the locale key used to load/read locale caches.\n\t* Returns undefined when the requested locale can use source content.\n\t*/\n\tresolveCacheLocale(locale) {\n\t\tconst resolvedLocale = this.resolveLocale(locale);\n\t\tif (this.requiresTranslation(resolvedLocale)) return resolvedLocale;\n\t\tconst aliasLocale = this.localeConfig.resolveAliasLocale(standardizeLocale(locale));\n\t\tif (this.requiresTranslation(aliasLocale)) return aliasLocale;\n\t}\n\tresolveLookupParams(locale, options) {\n\t\tconst translationLocale = this.resolveCacheLocale(locale);\n\t\treturn {\n\t\t\ttranslationLocale,\n\t\t\toptions: translationLocale ? this.resolveLookupOptions(options, translationLocale) : options\n\t\t};\n\t}\n\tresolveLookupOptions(options = {}, translationLocale) {\n\t\tif (!options.$locale) return options;\n\t\treturn {\n\t\t\t...options,\n\t\t\t$locale: translationLocale ?? this.resolveCacheLocale(options.$locale) ?? this.resolveLocale(options.$locale)\n\t\t};\n\t}\n\tasync lookupTranslationWithFallbackResolved(locale, message, options) {\n\t\tconst { translationLocale, options: lookupOptions } = this.resolveLookupParams(locale, options);\n\t\tif (!translationLocale) return message;\n\t\tlet txCache = this.localesCache.get(translationLocale);\n\t\tif (!txCache) txCache = await this.localesCache.miss(translationLocale);\n\t\tlet translation = txCache.get({\n\t\t\tmessage,\n\t\t\toptions: lookupOptions\n\t\t});\n\t\tif (translation == null) translation = await txCache.miss({\n\t\t\tmessage,\n\t\t\toptions: lookupOptions\n\t\t});\n\t\treturn translation;\n\t}\n\t/**\n\t* Runtime lookup function for dictionaries\n\t*/\n\tasync dictionaryRuntimeTranslate(locale, id, sourceEntry) {\n\t\tconst translation = await this.lookupTranslationWithFallbackResolved(locale, sourceEntry.entry, resolveDictionaryLookupOptions(sourceEntry.options));\n\t\tif (typeof translation !== \"string\") throw new Error(`Dictionary entry \"${id}\" could not be translated into a string. Check the source entry and translation loader output.`);\n\t\treturn translation;\n\t}\n\t/**\n\t* A helper function to create a gt class that is locale agnostic\n\t* This is helpful for when our getLocale function is bound to a\n\t* specific context\n\t*/\n\tgetGTClassClean(locale) {\n\t\treturn new GT({\n\t\t\tsourceLocale: this.config.defaultLocale,\n\t\t\ttargetLocale: locale,\n\t\t\tlocales: Array.from(new Set(this.config.locales.map((locale) => this.localeConfig.resolveCanonicalLocale(locale)))),\n\t\t\tcustomMapping: this.config.customMapping,\n\t\t\tprojectId: this.config.projectId,\n\t\t\tbaseUrl: this.config.runtimeUrl || void 0,\n\t\t\tapiKey: this.config.apiKey,\n\t\t\tdevApiKey: this.config.devApiKey\n\t\t});\n\t}\n};\n/**\n* Standardize the config\n* @param config - The config to standardize\n* @returns The standardized config\n*/\nfunction standardizeConfig(config) {\n\tconst gtServicesEnabled = getGTServicesEnabled(config);\n\tconst dedupedLocales = dedupeLocales({\n\t\tdefaultLocale: config.defaultLocale || libraryDefaultLocale,\n\t\tlocales: config.locales || [libraryDefaultLocale],\n\t\tcustomMapping: config.customMapping\n\t});\n\treturn {\n\t\tenvironment: config.environment || \"production\",\n\t\tenableI18n: config.enableI18n !== void 0 ? config.enableI18n : true,\n\t\tprojectId: config.projectId,\n\t\tdevApiKey: config.devApiKey,\n\t\tapiKey: config.apiKey,\n\t\truntimeUrl: config.runtimeUrl,\n\t\tcacheExpiryTime: config.cacheExpiryTime,\n\t\tbatchConfig: config.batchConfig,\n\t\truntimeTranslation: config.runtimeTranslation,\n\t\t_versionId: config._versionId,\n\t\t...gtServicesEnabled ? standardizeLocales(dedupedLocales) : dedupedLocales\n\t};\n}\n/**\n* Dedupe locales and add defaultLocale\n*/\nfunction dedupeLocales({ defaultLocale, locales, customMapping }) {\n\treturn {\n\t\tdefaultLocale,\n\t\tlocales: Array.from(new Set([defaultLocale, ...locales])),\n\t\tcustomMapping: customMapping || {}\n\t};\n}\n/**\n* Standardize all locales in config\n* Only apply if using GT services\n*/\nfunction standardizeLocales(config) {\n\treturn {\n\t\tdefaultLocale: standardizeLocale(config.defaultLocale),\n\t\tlocales: config.locales.map((locale) => {\n\t\t\tif (typeof config.customMapping?.[locale] === \"string\" ? config.customMapping?.[locale] : config.customMapping?.[locale]?.code) return locale;\n\t\t\telse return standardizeLocale(locale);\n\t\t}),\n\t\tcustomMapping: Object.fromEntries(Object.entries(config.customMapping || {}).map(([key, value]) => [key, typeof value === \"string\" ? standardizeLocale(value) : {\n\t\t\t...value,\n\t\t\t...value.code ? { code: standardizeLocale(value.code) } : {}\n\t\t}]))\n\t};\n}\n/**\n* Resolve prefetch entry locales and keep entries matching the active locale.\n* @template TranslationType - The type of the translation\n* @param {PrefetchEntry<TranslationType>[]} prefetchEntries - The prefetch entries to filter\n* @param {string} locale - The locale to filter by\n* @returns {PrefetchEntry<TranslationType>[]} The filtered prefetch entries\n*/\nfunction resolvePrefetchEntriesByLocale(prefetchEntries, locale, resolveLocale) {\n\treturn prefetchEntries.flatMap((entry) => {\n\t\tconst entryLocale = entry.options.$locale;\n\t\tif (entryLocale == null) return [entry];\n\t\ttry {\n\t\t\tconst resolvedLocale = resolveLocale(entryLocale);\n\t\t\tif (resolvedLocale !== locale) return [];\n\t\t\treturn [{\n\t\t\t\tmessage: entry.message,\n\t\t\t\toptions: {\n\t\t\t\t\t...entry.options,\n\t\t\t\t\t$locale: resolvedLocale\n\t\t\t\t}\n\t\t\t}];\n\t\t} catch {\n\t\t\treturn [];\n\t\t}\n\t});\n}\n/**\n* Helper function for creating a translation loader\n*/\nfunction createTranslationLoader(params) {\n\treturn routeCreateTranslationLoader({\n\t\tloadTranslations: params.loadTranslations,\n\t\ttype: getLoadTranslationsType(params),\n\t\tremoteTranslationLoaderParams: {\n\t\t\tcacheUrl: params.cacheUrl,\n\t\t\tprojectId: params.projectId,\n\t\t\t_versionId: params._versionId,\n\t\t\t_branchId: params._branchId,\n\t\t\tcustomMapping: params.customMapping\n\t\t}\n\t});\n}\n/**\n* Helper function for creating a dictionary loader\n*/\nfunction createDictionaryLoader(params) {\n\treturn params.loadDictionary ?? (() => Promise.resolve({}));\n}\n//#endregion\n//#region src/i18n-manager/singleton-operations.ts\nlet i18nManager = void 0;\nlet fallbackDefaultLocale = libraryDefaultLocale;\nconst fallbackConditionStore = { getLocale: () => fallbackDefaultLocale };\nlet conditionStore = fallbackConditionStore;\n/**\n* Get the singleton instance of I18nManager\n* @returns The singleton instance of I18nManager\n* @template U - The type of the translation that will be cached\n*/\nfunction getI18nManager() {\n\tif (!i18nManager) {\n\t\tlogger_default.warn(\"getI18nManager(): I18nManager was not initialized. Falling back to the default locale until initializeGT() configures translations.\");\n\t\ti18nManager = new I18nManager({\n\t\t\tdefaultLocale: libraryDefaultLocale,\n\t\t\tlocales: [libraryDefaultLocale]\n\t\t});\n\t}\n\treturn i18nManager;\n}\n/**\n* Resolve the current locale from the configured runtime condition source.\n*/\nfunction getCurrentLocale() {\n\treturn conditionStore.getLocale();\n}\n/**\n* Configure the runtime condition source.\n*/\nfunction setConditionStore(nextConditionStore) {\n\tconditionStore = nextConditionStore;\n}\n/**\n* Reset the runtime condition source to the active manager's default-locale fallback.\n*/\nfunction resetConditionStore() {\n\tconditionStore = fallbackConditionStore;\n}\n/**\n* Configure the singleton instance of I18nManager\n* @param config - The configuration for the I18nManager\n*\n* Wrapper libraries will export a configure function that will call this function.\n*/\nfunction setI18nManager(i18nManagerInstance) {\n\ti18nManager = i18nManagerInstance;\n\tfallbackDefaultLocale = i18nManagerInstance.getDefaultLocale();\n\tresetConditionStore();\n}\n//#endregion\n//#region src/translation-functions/utils/interpolation/interpolateStringMessage.ts\n/**\n* String interpolation function\n*/\nfunction interpolateStringMessage(encodedMsg, options) {\n\treturn formatCutoff(encodedMsg, {\n\t\tlocales: options.$locale ?? options.$_locales,\n\t\tmaxChars: options.$maxChars\n\t});\n}\n//#endregion\n//#region src/translation-functions/utils/interpolation/interpolateMessage.ts\n/**\n* Interpolation router function for all {@link StringFormat} types\n*/\nfunction interpolateMessage({ source, target, options, sourceLocale }) {\n\tif (target != null) return routeInterpolation(target, {\n\t\t$_fallback: source,\n\t\t...options\n\t});\n\treturn routeInterpolation(source, getSourceOptions(options, sourceLocale));\n}\n/**\n* Route to appropriate formatting function\n*/\nfunction routeInterpolation(content, options) {\n\tswitch (options.$format ?? \"STRING\") {\n\t\tcase \"ICU\": return interpolateIcuMessage(content, options);\n\t\tcase \"I18NEXT\":\n\t\tcase \"STRING\": return interpolateStringMessage(content, options);\n\t\tdefault: return content;\n\t}\n}\nfunction getSourceOptions(options, sourceLocale) {\n\tif (!sourceLocale) return options;\n\treturn {\n\t\t...options,\n\t\t$locale: sourceLocale\n\t};\n}\n//#endregion\n//#region src/translation-functions/internal/helpers.ts\n/**\n* Just do a simple lookup of the translation\n*/\nfunction resolveJsx(locale, content, options = {}) {\n\tconst i18nManager = getI18nManager();\n\tconst lookupOptions = createLookupOptions(locale, options, \"JSX\");\n\treturn i18nManager.lookupTranslation(lookupOptions.$locale, content, lookupOptions);\n}\n/**\n* Lookup translation, fallback to source\n*/\nfunction resolveJsxWithFallback(locale, content, options = {}) {\n\treturn resolveJsx(locale, content, options) ?? content;\n}\n/**\n* Lookup translation\n* fallback to runtime translate\n* Fallback to source\n*/\nasync function resolveJsxWithRuntimeFallback(locale, content, options = {}) {\n\tconst i18nManager = getI18nManager();\n\tconst lookupOptions = createLookupOptions(locale, options, \"JSX\");\n\treturn await i18nManager.lookupTranslationWithFallback(lookupOptions.$locale, content, lookupOptions) ?? content;\n}\n/**\n* Just do a simple lookup of the translation\n* And interpolate\n*/\nfunction resolveStringContent(locale, content, options = {}) {\n\tconst i18nManager = getI18nManager();\n\tconst lookupOptions = createLookupOptions(locale, options, \"STRING\");\n\tconst translation = i18nManager.lookupTranslation(lookupOptions.$locale, content, lookupOptions);\n\tif (translation == null) return void 0;\n\treturn interpolateMessage({\n\t\tsource: content,\n\t\ttarget: translation,\n\t\toptions: lookupOptions,\n\t\tsourceLocale: i18nManager.getDefaultLocale()\n\t});\n}\n/**\n* Lookup translation, fallback to source\n*/\nfunction resolveStringContentWithFallback(locale, content, options = {}) {\n\tconst i18nManager = getI18nManager();\n\tconst lookupOptions = createLookupOptions(locale, options, \"STRING\");\n\treturn interpolateMessage({\n\t\tsource: content,\n\t\ttarget: i18nManager.lookupTranslation(lookupOptions.$locale, content, lookupOptions),\n\t\toptions: lookupOptions,\n\t\tsourceLocale: i18nManager.getDefaultLocale()\n\t});\n}\n/**\n* Lookup translation\n* fallback to runtime translate\n* Fallback to source\n*/\nasync function resolveStringContentWithRuntimeFallback(locale, content, options = {}) {\n\tconst i18nManager = getI18nManager();\n\tconst lookupOptions = createLookupOptions(locale, options, \"STRING\");\n\treturn interpolateMessage({\n\t\tsource: content,\n\t\ttarget: await i18nManager.lookupTranslationWithFallback(lookupOptions.$locale, content, lookupOptions),\n\t\toptions: lookupOptions,\n\t\tsourceLocale: i18nManager.getDefaultLocale()\n\t});\n}\n/**\n* Add the default format to caller-provided lookup options.\n*/\nfunction createLookupOptions(locale, options, defaultFormat) {\n\treturn {\n\t\t...options,\n\t\t$format: options.$format ?? defaultFormat,\n\t\t$locale: locale\n\t};\n}\n//#endregion\n//#region src/helpers/locale.ts\n/**\n* Get the current locale\n* @returns The current locale\n*\n* @example\n* const locale = getLocale();\n* console.log(locale); // 'en-US'\n*/\nfunction getLocale() {\n\treturn getCurrentLocale();\n}\n/**\n* Get the configured locales\n* @returns The configured locales\n*\n* @example\n* const locales = getLocales();\n* console.log(locales); // ['en-US', 'es-ES']\n*/\nfunction getLocales() {\n\treturn getI18nManager().getLocales();\n}\n/**\n* Get the default locale\n* @returns The default locale\n*\n* @example\n* const defaultLocale = getDefaultLocale();\n* console.log(defaultLocale); // 'en-US'\n*/\nfunction getDefaultLocale() {\n\treturn getI18nManager().getDefaultLocale();\n}\n/**\n* Get the locale properties\n* @param {string} [locale] - The locale to get the properties for. When not provided, uses the current locale.\n* @returns The locale properties\n*\n* @example\n* const localeProperties = getLocaleProperties();\n*\n* @example\n* const localeProperties = getLocaleProperties('en-US');\n*/\nfunction getLocaleProperties(locale = getCurrentLocale()) {\n\treturn getI18nManager().getGTClass().getLocaleProperties(locale);\n}\n//#endregion\n//#region src/helpers/versionId.ts\n/**\n* Get the version ID for the current source\n* @returns The version ID, if set\n*\n* @example\n* const versionId = getVersionId();\n* console.log(versionId); // 'abc123'\n*/\nfunction getVersionId() {\n\treturn getI18nManager().getVersionId();\n}\n//#endregion\nexport { getDictionaryEntry as C, hashMessage as E, TRANSLATIONS_CACHE_MISS_EVENT_NAME as S, resolveDictionaryLookupOptions as T, setI18nManager as _, getLocales as a, LOCALES_CACHE_MISS_EVENT_NAME as b, resolveJsxWithFallback as c, resolveStringContentWithFallback as d, resolveStringContentWithRuntimeFallback as f, setConditionStore as g, getI18nManager as h, getLocaleProperties as i, resolveJsxWithRuntimeFallback as l, getCurrentLocale as m, getDefaultLocale as n, createLookupOptions as o, interpolateMessage as p, getLocale as r, resolveJsx as s, getVersionId as t, resolveStringContent as u, I18nManager as v, isDictionaryValue as w, LOCALES_DICTIONARY_CACHE_MISS_EVENT_NAME as x, DICTIONARY_CACHE_MISS_EVENT_NAME as y };\n\n//# sourceMappingURL=versionId-BkJZGHXr.mjs.map","import { a as extractVariables, n as decodeOptions, r as interpolateIcuMessage, t as isEncodedTranslationOptions } from \"./isEncodedTranslationOptions-BOwWa_-J.mjs\";\nimport { C as getDictionaryEntry, S as TRANSLATIONS_CACHE_MISS_EVENT_NAME, T as resolveDictionaryLookupOptions, _ as setI18nManager, a as getLocales, b as LOCALES_CACHE_MISS_EVENT_NAME, c as resolveJsxWithFallback, d as resolveStringContentWithFallback, f as resolveStringContentWithRuntimeFallback, g as setConditionStore, h as getI18nManager, i as getLocaleProperties, l as resolveJsxWithRuntimeFallback, m as getCurrentLocale, n as getDefaultLocale, o as createLookupOptions, p as interpolateMessage, r as getLocale, s as resolveJsx, t as getVersionId, u as resolveStringContent, v as I18nManager, w as isDictionaryValue, x as LOCALES_DICTIONARY_CACHE_MISS_EVENT_NAME, y as DICTIONARY_CACHE_MISS_EVENT_NAME } from \"./versionId-BkJZGHXr.mjs\";\nimport { libraryDefaultLocale } from \"generaltranslation/internal\";\nimport { LocaleConfig } from \"@generaltranslation/format\";\n//#region src/translation-functions/internal/getGT.ts\n/**\n* Returns the gt function that registers a string at build time and resolves its translation at runtime.\n* @returns A promise of the gt function\n*\n* @example\n* const gt = await getGT();\n* const greeting = gt('Hello, world!');\n*/\nasync function getGT() {\n\tconst i18nManager = getI18nManager();\n\tconst locale = getCurrentLocale();\n\tawait i18nManager.loadTranslations(locale);\n\tconst sourceLocale = i18nManager.getDefaultLocale();\n\t/**\n\t* Registers a message at build time and resolves its translation at runtime.\n\t* @param {string} message - The message to translate\n\t* @param {InlineTranslationOptions} options - The options for the translation\n\t* @returns The translated message\n\t*\n\t* @example\n\t* // Simple translation without interpolation\n\t* const gt = await getGT();\n\t* const greeting = gt('Hello, world!');\n\t*\n\t* @example\n\t* // Translation with interpolation\n\t* const gt = await getGT();\n\t* const welcome = gt('Hello, {name}!', { name: 'Alice' });\n\t*/\n\tconst gt = (message, options = {}) => {\n\t\tconst lookupOptions = createLookupOptions(options.$locale ?? locale, options, \"ICU\");\n\t\treturn interpolateMessage({\n\t\t\tsource: message,\n\t\t\ttarget: i18nManager.lookupTranslation(lookupOptions.$locale, message, lookupOptions),\n\t\t\toptions: lookupOptions,\n\t\t\tsourceLocale\n\t\t});\n\t};\n\treturn gt;\n}\n//#endregion\n//#region src/translation-functions/internal/getMessages.ts\n/**\n* Returns the m function that resolves a registered message to its translation.\n* @returns A promise of the m function\n*\n* @example\n* // Registration\n* const registeredMessage = msg('Hello, world!');\n*\n* // Resolution\n* const m = await getMessages();\n* const greeting = m(registeredMessage);\n*/\nasync function getMessages() {\n\tconst gt = await getGT();\n\t/**\n\t* Resolves a registered message to its translation.\n\t* @param {string | null | undefined} encodedMsg - The encoded message to decode and interpolate.\n\t* @param {InlineTranslationOptions} options - The options to interpolate.\n\t* @returns - The decoded and interpolated message.\n\t*\n\t* @example\n\t* // Simple message without interpolation\n\t* const m = await getMessages();\n\t* const greeting = m(msg('Hello, world!'));\n\t*\n\t* @example\n\t* // Message with interpolation\n\t* const m = await getMessages();\n\t* const welcome = m(msg('Welcome, {user}!'), { user: 'Alice' });\n\t*/\n\tconst m = (encodedMsg, options = {}) => {\n\t\tif (encodedMsg == null) return encodedMsg;\n\t\tconst decodedOptions = decodeOptions(encodedMsg) ?? {};\n\t\tif (isEncodedTranslationOptions(decodedOptions)) return gt(decodedOptions.$_source, decodedOptions);\n\t\treturn gt(encodedMsg, options);\n\t};\n\treturn m;\n}\n//#endregion\n//#region src/translation-functions/internal/getTranslations.ts\n/**\n* Returns the t function that translates a dictionary entry based on its id and options.\n* @returns A promise of the t function\n* @important Must be used inside of a request context\n*\n* @example\n* const t = await getTranslations();\n* const title = await t('page.title');\n*/\nasync function getTranslations() {\n\tconst i18nManager = getI18nManager();\n\tconst locale = getCurrentLocale();\n\tawait Promise.all([i18nManager.loadDictionary(locale), i18nManager.loadTranslations(locale)]);\n\tconst sourceLocale = i18nManager.getDefaultLocale();\n\t/**\n\t* Dictionary resolution\n\t* @param {string} id - The id of the translation to translate.\n\t* @param {DictionaryTranslationOptions} options - The options for interpolation.\n\t* @returns {string} The translated message.\n\t*\n\t* @example\n\t* // Simple dictionary lookup without interpolation\n\t* const t = await getTranslations();\n\t* const title = t('page.title');\n\t*\n\t* @example\n\t* // Dictionary lookup with interpolation\n\t* const t = await getTranslations();\n\t* const greeting = t('user.greeting', { name: 'Bob' });\n\t*/\n\tconst t = ((id, options = {}) => {\n\t\tconst sourceEntry = i18nManager.lookupDictionary(sourceLocale, id);\n\t\tif (sourceEntry === void 0) throw new Error(`Dictionary entry ${id} cannot be found`);\n\t\tconst targetEntry = i18nManager.lookupDictionary(locale, id);\n\t\tconst dictionaryOptions = resolveDictionaryLookupOptions(sourceEntry.options);\n\t\treturn renderEntry({\n\t\t\tsourceLocale,\n\t\t\ttargetLocale: locale,\n\t\t\tsourceEntry,\n\t\t\ttarget: targetEntry?.entry ?? i18nManager.lookupTranslation(locale, sourceEntry.entry, dictionaryOptions),\n\t\t\tdictionaryOptions,\n\t\t\toptions\n\t\t});\n\t});\n\t/**\n\t* Returns a subtree of the dictionary object translation based on its id.\n\t* @param {string} id - The id of the translation to translate.\n\t* @returns The translated object.\n\t*\n\t* @example\n\t* const t = await getTranslations();\n\t* const greetings = t.obj('greetings');\n\t* console.log(greetings);\n\t* // { greeting1: 'Hello', greeting2: 'Hi' }\n\t*/\n\tt.obj = (id) => {\n\t\tconst sourceObject = i18nManager.lookupDictionaryObj(sourceLocale, id);\n\t\tif (sourceObject === void 0) throw new Error(`Dictionary entry ${id} cannot be found`);\n\t\treturn renderObject({\n\t\t\tsourceObject,\n\t\t\ttargetObject: i18nManager.lookupDictionaryObj(locale, id)\n\t\t});\n\t};\n\tfunction renderObject({ sourceObject, targetObject }) {\n\t\tconst targetEntry = getDictionaryEntry(targetObject);\n\t\tif (targetEntry !== void 0) return targetEntry.entry;\n\t\tif (isDictionaryValue(targetObject)) {\n\t\t\tif (!isDictionaryValue(sourceObject)) return renderObject({\n\t\t\t\tsourceObject: targetObject,\n\t\t\t\ttargetObject: void 0\n\t\t\t});\n\t\t\treturn renderDictionaryObject({\n\t\t\t\tsourceObject,\n\t\t\t\ttargetObject\n\t\t\t});\n\t\t}\n\t\tconst sourceEntry = getDictionaryEntry(sourceObject);\n\t\tif (sourceEntry !== void 0) {\n\t\t\tconst dictionaryOptions = resolveDictionaryLookupOptions(sourceEntry.options);\n\t\t\tconst target = i18nManager.lookupTranslation(locale, sourceEntry.entry, dictionaryOptions);\n\t\t\tif (target !== void 0) return target;\n\t\t\treturn sourceEntry.entry;\n\t\t}\n\t\tif (isDictionaryValue(sourceObject)) return renderDictionaryObject({\n\t\t\tsourceObject,\n\t\t\ttargetObject: void 0\n\t\t});\n\t\tthrow new Error(\"Dictionary object cannot be rendered\");\n\t}\n\tfunction renderDictionaryObject({ sourceObject, targetObject }) {\n\t\tif (!isDictionaryValue(sourceObject)) return renderObject({\n\t\t\tsourceObject,\n\t\t\ttargetObject\n\t\t});\n\t\tconst result = {};\n\t\tconst keys = new Set([...Object.keys(sourceObject), ...isDictionaryValue(targetObject) ? Object.keys(targetObject) : []]);\n\t\tfor (const key of Array.from(keys)) {\n\t\t\tconst renderedChild = renderObject({\n\t\t\t\tsourceObject: sourceObject[key],\n\t\t\t\ttargetObject: isDictionaryValue(targetObject) ? targetObject[key] : void 0\n\t\t\t});\n\t\t\tif (renderedChild !== void 0) result[key] = renderedChild;\n\t\t}\n\t\treturn result;\n\t}\n\treturn t;\n}\nfunction renderEntry({ sourceLocale, targetLocale, sourceEntry, target, dictionaryOptions, options = {} }) {\n\tconst interpolationOptions = extractVariables(options);\n\tconst lookupOptions = createLookupOptions(targetLocale, {\n\t\t...dictionaryOptions,\n\t\t...interpolationOptions\n\t}, dictionaryOptions.$format ?? \"ICU\");\n\treturn interpolateMessage({\n\t\tsource: sourceEntry.entry,\n\t\ttarget,\n\t\toptions: lookupOptions,\n\t\tsourceLocale\n\t});\n}\n//#endregion\n//#region src/translation-functions/internal/tx.ts\n/**\n* Translates a message at runtime.\n* @param {string} message - The message to translate.\n* @param {RuntimeTranslationOptions} options - The options for the translation.\n* @returns {Promise<string>} The translated message.\n*\n* @example\n* // Simple runtime translation without interpolation\n* const status = await tx('Processing complete', { $locale: 'es-MX' });\n*\n* @example\n* // Runtime translation with interpolation\n* const progress = await tx(`Processing ${status}`, { $locale: 'es-MX' });\n*/\nasync function tx(content, options = {}) {\n\treturn resolveStringContentWithRuntimeFallback(typeof options.$locale === \"string\" ? options.$locale : getCurrentLocale(), content, {\n\t\t$format: \"STRING\",\n\t\t...options\n\t});\n}\n//#endregion\n//#region src/translation-functions/internal/sync-translation-resolution.ts\n/**\n* Synchronously resolve a translation for a given message and options\n* @param {string} message - The message to translate.\n* @param {InlineTranslationOptions} [options] - The options for the translation.\n* @returns {string | undefined} The translated message or undefined if the message is not found.\n* @deprecated use resolveTranslation instead\n*/\nfunction resolveTranslationSync(locale, message, options = {}) {\n\treturn resolveStringContent(locale, message, {\n\t\t$format: \"ICU\",\n\t\t...options\n\t});\n}\n/**\n* Translate a message\n* @param {string} message - The message to translate.\n* @param {InlineTranslationOptions} [options] - The options for the translation.\n* @returns {string} The translated message or the original message interpolated if the translation is not found.\n* @deprecated use resolveTranslationWithFallback instead\n*/\nfunction resolveTranslationSyncWithFallback(locale, message, options = {}) {\n\treturn resolveStringContentWithFallback(locale, message, {\n\t\t$format: \"ICU\",\n\t\t...options\n\t});\n}\n//#endregion\n//#region src/translation-functions/internal/jsx-resolution.ts\n/**\n* Given a JsxChildren and any associated metadata needed for a hash calculation, resolve the associated translation.\n* @deprecated use resolveJsx instead\n*/\nfunction resolveJsxTranslation(locale, children, options = {}) {\n\treturn resolveJsx(locale, children, options);\n}\n//#endregion\n//#region src/i18n-manager/condition-store/createConditionStoreSingleton.ts\nfunction createConditionStoreSingleton(notInitializedMessage) {\n\tlet conditionStore;\n\tfunction getConditionStore() {\n\t\tif (!conditionStore) throw new Error(notInitializedMessage);\n\t\treturn conditionStore;\n\t}\n\tfunction setConditionStore$1(nextConditionStore) {\n\t\tconditionStore = nextConditionStore;\n\t\tsetConditionStore(nextConditionStore);\n\t}\n\treturn {\n\t\tgetConditionStore,\n\t\tsetConditionStore: setConditionStore$1\n\t};\n}\n//#endregion\n//#region src/i18n-manager/condition-store/localeResolver.ts\nfunction normalizeConditionStoreConfig({ defaultLocale, locales, customMapping } = {}) {\n\tconst fallbackLocale = defaultLocale || libraryDefaultLocale;\n\treturn {\n\t\tdefaultLocale: fallbackLocale,\n\t\tlocales: locales?.length ? locales : [fallbackLocale],\n\t\tcustomMapping\n\t};\n}\n/**\n* Return the best supported locale for the candidates, or undefined when none match.\n*/\nfunction determineSupportedLocale(candidates, config = {}) {\n\treturn determineSupportedLocaleWithConfig(candidates, normalizeConditionStoreConfig(config));\n}\nfunction determineSupportedLocaleWithConfig(candidates, config) {\n\tif (candidates == null || Array.isArray(candidates) && candidates.length === 0) return;\n\treturn new LocaleConfig(config).determineLocale(candidates) || void 0;\n}\n/**\n* Return the best supported locale for the candidates, falling back to the default locale.\n*/\nfunction resolveSupportedLocale(candidates, config = {}) {\n\tconst normalizedConfig = normalizeConditionStoreConfig(config);\n\treturn determineSupportedLocaleWithConfig(candidates, normalizedConfig) || normalizedConfig.defaultLocale;\n}\nfunction createLocaleResolver(config = {}) {\n\tconst normalizedConfig = normalizeConditionStoreConfig(config);\n\treturn (candidates) => determineSupportedLocaleWithConfig(candidates, normalizedConfig) || normalizedConfig.defaultLocale;\n}\n//#endregion\nexport { DICTIONARY_CACHE_MISS_EVENT_NAME, I18nManager, LOCALES_CACHE_MISS_EVENT_NAME, LOCALES_DICTIONARY_CACHE_MISS_EVENT_NAME, TRANSLATIONS_CACHE_MISS_EVENT_NAME, createConditionStoreSingleton, createLocaleResolver, createLookupOptions, determineSupportedLocale, getCurrentLocale, getDefaultLocale, getGT, getI18nManager, getLocale, getLocaleProperties, getLocales, getMessages, getTranslations, getVersionId, interpolateIcuMessage, resolveJsx, resolveJsxTranslation, resolveJsxWithFallback, resolveJsxWithRuntimeFallback, resolveStringContent, resolveStringContentWithFallback, resolveStringContentWithRuntimeFallback, resolveSupportedLocale, resolveTranslationSync, resolveTranslationSyncWithFallback, setConditionStore, setI18nManager, tx };\n\n//# sourceMappingURL=internal.mjs.map","import * as e from \"react\";\nimport t, { isValidElement } from \"react\";\nimport { formatCutoff, formatMessage } from \"@generaltranslation/format\";\nimport { jsx } from \"react/jsx-runtime\";\nimport \"generaltranslation\";\n//#region ../react-core/dist/internal.esm.min.mjs\nvar c = Object.defineProperty, l = Object.getOwnPropertyDescriptor, u = Object.getOwnPropertyNames, d = Object.prototype.hasOwnProperty, f = (e, t) => () => (e && (t = e(e = 0)), t), p = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), m = (e, t) => {\n\tlet n = {};\n\tfor (var r in e) c(n, r, {\n\t\tget: e[r],\n\t\tenumerable: !0\n\t});\n\treturn t || c(n, Symbol.toStringTag, { value: `Module` }), n;\n}, h = (e, t, n, r) => {\n\tif (t && typeof t == `object` || typeof t == `function`) for (var i = u(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !d.call(e, s) && s !== n && c(e, s, {\n\t\tget: ((e) => t[e]).bind(null, s),\n\t\tenumerable: !(r = l(t, s)) || r.enumerable\n\t});\n\treturn e;\n}, g = (e) => d.call(e, `module.exports`) ? e[`module.exports`] : h(c({}, `__esModule`, { value: !0 }), e);\nfunction _(e, t) {\n\tif (e == null) throw Error(`Cannot index into an undefined dictionary`);\n\treturn e[t];\n}\nfunction v(e, t, n) {\n\te[t] = n;\n}\nconst ee = (e) => `Duplicate key found in dictionary: \"${e}\"`;\nfunction y(e, t = ``) {\n\tlet n = {};\n\tfor (let r in e) if (e.hasOwnProperty(r)) {\n\t\tlet i = t ? `${t}.${r}` : r;\n\t\tif (typeof _(e, r) == `object` && _(e, r) !== null && !Array.isArray(_(e, r))) {\n\t\t\tlet t = y(_(e, r), i);\n\t\t\tfor (let e in t) {\n\t\t\t\tif (n.hasOwnProperty(e)) throw Error(ee(e));\n\t\t\t\tn[e] = t[e];\n\t\t\t}\n\t\t} else {\n\t\t\tif (n.hasOwnProperty(i)) throw Error(ee(i));\n\t\t\tn[i] = _(e, r);\n\t\t}\n\t}\n\treturn n;\n}\nfunction b(e) {\n\tlet t = e.trim();\n\treturn t ? /[.!?)]$/.test(t) ? t : `${t}.` : ``;\n}\nfunction x(e) {\n\tlet t = e.trim(), n = t.length;\n\tfor (; n > 0;) {\n\t\tlet e = t[n - 1];\n\t\tif (e !== `.` && e !== `!` && e !== `?`) break;\n\t\t--n;\n\t}\n\treturn t.slice(0, n);\n}\nfunction te(e) {\n\treturn e.replace(/^[A-Z][a-z]/, (e) => e.toLowerCase());\n}\nfunction ne(e) {\n\tif (!e) return ``;\n\tlet t = Array.isArray(e) ? e.join(`, `) : e;\n\treturn t.trim() ? b(`Details: ${t}`) : ``;\n}\nfunction S({ source: e, severity: t, whatHappened: n, reassurance: r, why: i, fix: a, wayOut: o, details: s, docsUrl: c }) {\n\tlet l = e ? t ? `${e} ${t}:` : `${e}:` : t ? `${t}:` : ``, u = i ? `${x(n)} because ${te(x(i))}` : n, d = !!a && !!o && /^[a-z]/.test(x(o)), f = [\n\t\tu,\n\t\tr,\n\t\td ? `${x(a)}, or ${te(x(o))}` : a,\n\t\td ? void 0 : o,\n\t\tne(s)\n\t].filter((e) => !!e).map(b);\n\tc && f.push(`Learn more: ${c}`);\n\tlet p = f.join(` `);\n\treturn l ? `${l} ${p}` : p;\n}\nfunction C(e) {\n\tif (typeof Buffer < `u`) return Buffer.from(e, `utf8`).toString(`base64`);\n\tlet t = new TextEncoder().encode(e), n = ``;\n\tfor (let e = 0; e < t.length; e++) n += String.fromCharCode(t[e]);\n\treturn btoa(n);\n}\nfunction w(e) {\n\tif (typeof Buffer < `u`) return Buffer.from(e, `base64`).toString(`utf8`);\n\tlet t = atob(e), n = new Uint8Array(t.length);\n\tfor (let e = 0; e < t.length; e++) n[e] = t.charCodeAt(e);\n\treturn new TextDecoder().decode(n);\n}\nfunction T(e) {\n\tif (e === void 0) return;\n\tif (e === null) return `null`;\n\tif (typeof e == `number`) return isFinite(e) ? `` + e : `null`;\n\tif (typeof e != `object`) return JSON.stringify(e);\n\tif (Array.isArray(e)) {\n\t\tlet t = `[`;\n\t\tfor (let n = 0; n < e.length; n++) n && (t += `,`), t += T(e[n]) || `null`;\n\t\treturn t + `]`;\n\t}\n\tlet t = Object.keys(e).sort(), n = ``;\n\tfor (let r of t) {\n\t\tlet t = T(e[r]);\n\t\tt && (n && (n += `,`), n += JSON.stringify(r) + `:` + t);\n\t}\n\treturn `{` + n + `}`;\n}\nfunction re(e) {\n\treturn T(e) ?? ``;\n}\nfunction E(e) {\n\tlet t = e;\n\tif (t && typeof t == `object` && typeof t.k == `string`) {\n\t\tlet e = Object.keys(t);\n\t\tif (e.length === 1 || e.length === 2 && (typeof t.i == `number` || typeof t.v == `string`) || e.length === 3 && typeof t.v == `string` && typeof t.i == `number`) return !0;\n\t}\n\treturn !1;\n}\nfunction ie(e) {\n\treturn e instanceof Uint8Array || ArrayBuffer.isView(e) && e.constructor.name === `Uint8Array` && `BYTES_PER_ELEMENT` in e && e.BYTES_PER_ELEMENT === 1;\n}\nfunction D(e, t, n = ``) {\n\tlet r = ie(e), i = e?.length, a = t !== void 0;\n\tif (!r || a && i !== t) {\n\t\tlet o = n && `\"${n}\" `, s = a ? ` of length ${t}` : ``, c = r ? `length=${i}` : `type=${typeof e}`, l = o + `expected Uint8Array` + s + `, got ` + c;\n\t\tthrow r ? RangeError(l) : TypeError(l);\n\t}\n\treturn e;\n}\nfunction ae(e, t = !0) {\n\tif (e.destroyed) throw Error(`Hash instance has been destroyed`);\n\tif (t && e.finished) throw Error(`Hash#digest() has already been called`);\n}\nfunction oe(e, t) {\n\tD(e, void 0, `digestInto() output`);\n\tlet n = t.outputLen;\n\tif (e.length < n) throw RangeError(`\"digestInto() output\" expected to be of length >=` + n);\n}\nfunction se(...e) {\n\tfor (let t = 0; t < e.length; t++) e[t].fill(0);\n}\nfunction ce(e) {\n\treturn new DataView(e.buffer, e.byteOffset, e.byteLength);\n}\nfunction O(e, t) {\n\treturn e << 32 - t | e >>> t;\n}\nnew Uint8Array(new Uint32Array([287454020]).buffer)[0];\nconst le = typeof Uint8Array.from([]).toHex == `function` && typeof Uint8Array.fromHex == `function`, ue = Array.from({ length: 256 }, (e, t) => t.toString(16).padStart(2, `0`));\nfunction de(e) {\n\tif (D(e), le) return e.toHex();\n\tlet t = ``;\n\tfor (let n = 0; n < e.length; n++) t += ue[e[n]];\n\treturn t;\n}\nfunction fe(e) {\n\tif (typeof e != `string`) throw TypeError(`string expected`);\n\treturn new Uint8Array(new TextEncoder().encode(e));\n}\nfunction pe(e, t = {}) {\n\tlet n = (t, n) => e(n).update(t).digest(), r = e(void 0);\n\treturn n.outputLen = r.outputLen, n.blockLen = r.blockLen, n.canXOF = r.canXOF, n.create = (t) => e(t), Object.assign(n, t), Object.freeze(n);\n}\nconst me = (e) => ({ oid: Uint8Array.from([\n\t6,\n\t9,\n\t96,\n\t134,\n\t72,\n\t1,\n\t101,\n\t3,\n\t4,\n\t2,\n\te\n]) });\nfunction he(e, t, n) {\n\treturn e & t ^ ~e & n;\n}\nfunction ge(e, t, n) {\n\treturn e & t ^ e & n ^ t & n;\n}\nvar _e = class {\n\tblockLen;\n\toutputLen;\n\tcanXOF = !1;\n\tpadOffset;\n\tisLE;\n\tbuffer;\n\tview;\n\tfinished = !1;\n\tlength = 0;\n\tpos = 0;\n\tdestroyed = !1;\n\tconstructor(e, t, n, r) {\n\t\tthis.blockLen = e, this.outputLen = t, this.padOffset = n, this.isLE = r, this.buffer = new Uint8Array(e), this.view = ce(this.buffer);\n\t}\n\tupdate(e) {\n\t\tae(this), D(e);\n\t\tlet { view: t, buffer: n, blockLen: r } = this, i = e.length;\n\t\tfor (let a = 0; a < i;) {\n\t\t\tlet o = Math.min(r - this.pos, i - a);\n\t\t\tif (o === r) {\n\t\t\t\tlet t = ce(e);\n\t\t\t\tfor (; r <= i - a; a += r) this.process(t, a);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tn.set(e.subarray(a, a + o), this.pos), this.pos += o, a += o, this.pos === r && (this.process(t, 0), this.pos = 0);\n\t\t}\n\t\treturn this.length += e.length, this.roundClean(), this;\n\t}\n\tdigestInto(e) {\n\t\tae(this), oe(e, this), this.finished = !0;\n\t\tlet { buffer: t, view: n, blockLen: r, isLE: i } = this, { pos: a } = this;\n\t\tt[a++] = 128, se(this.buffer.subarray(a)), this.padOffset > r - a && (this.process(n, 0), a = 0);\n\t\tfor (let e = a; e < r; e++) t[e] = 0;\n\t\tn.setBigUint64(r - 8, BigInt(this.length * 8), i), this.process(n, 0);\n\t\tlet o = ce(e), s = this.outputLen;\n\t\tif (s % 4) throw Error(`_sha2: outputLen must be aligned to 32bit`);\n\t\tlet c = s / 4, l = this.get();\n\t\tif (c > l.length) throw Error(`_sha2: outputLen bigger than state`);\n\t\tfor (let e = 0; e < c; e++) o.setUint32(4 * e, l[e], i);\n\t}\n\tdigest() {\n\t\tlet { buffer: e, outputLen: t } = this;\n\t\tthis.digestInto(e);\n\t\tlet n = e.slice(0, t);\n\t\treturn this.destroy(), n;\n\t}\n\t_cloneInto(e) {\n\t\te ||= new this.constructor(), e.set(...this.get());\n\t\tlet { blockLen: t, buffer: n, length: r, finished: i, destroyed: a, pos: o } = this;\n\t\treturn e.destroyed = a, e.finished = i, e.length = r, e.pos = o, r % t && e.buffer.set(n), e;\n\t}\n\tclone() {\n\t\treturn this._cloneInto();\n\t}\n};\nconst k = Uint32Array.from([\n\t1779033703,\n\t3144134277,\n\t1013904242,\n\t2773480762,\n\t1359893119,\n\t2600822924,\n\t528734635,\n\t1541459225\n]), A = BigInt(2 ** 32 - 1), ve = BigInt(32);\nfunction ye(e, t = !1) {\n\treturn t ? {\n\t\th: Number(e & A),\n\t\tl: Number(e >> ve & A)\n\t} : {\n\t\th: Number(e >> ve & A) | 0,\n\t\tl: Number(e & A) | 0\n\t};\n}\nfunction be(e, t = !1) {\n\tlet n = e.length, r = new Uint32Array(n), i = new Uint32Array(n);\n\tfor (let a = 0; a < n; a++) {\n\t\tlet { h: n, l: o } = ye(e[a], t);\n\t\t[r[a], i[a]] = [n, o];\n\t}\n\treturn [r, i];\n}\nconst xe = Uint32Array.from([\n\t1116352408,\n\t1899447441,\n\t3049323471,\n\t3921009573,\n\t961987163,\n\t1508970993,\n\t2453635748,\n\t2870763221,\n\t3624381080,\n\t310598401,\n\t607225278,\n\t1426881987,\n\t1925078388,\n\t2162078206,\n\t2614888103,\n\t3248222580,\n\t3835390401,\n\t4022224774,\n\t264347078,\n\t604807628,\n\t770255983,\n\t1249150122,\n\t1555081692,\n\t1996064986,\n\t2554220882,\n\t2821834349,\n\t2952996808,\n\t3210313671,\n\t3336571891,\n\t3584528711,\n\t113926993,\n\t338241895,\n\t666307205,\n\t773529912,\n\t1294757372,\n\t1396182291,\n\t1695183700,\n\t1986661051,\n\t2177026350,\n\t2456956037,\n\t2730485921,\n\t2820302411,\n\t3259730800,\n\t3345764771,\n\t3516065817,\n\t3600352804,\n\t4094571909,\n\t275423344,\n\t430227734,\n\t506948616,\n\t659060556,\n\t883997877,\n\t958139571,\n\t1322822218,\n\t1537002063,\n\t1747873779,\n\t1955562222,\n\t2024104815,\n\t2227730452,\n\t2361852424,\n\t2428436474,\n\t2756734187,\n\t3204031479,\n\t3329325298\n]), j = new Uint32Array(64);\nvar Se = class extends _e {\n\tconstructor(e) {\n\t\tsuper(64, e, 8, !1);\n\t}\n\tget() {\n\t\tlet { A: e, B: t, C: n, D: r, E: i, F: a, G: o, H: s } = this;\n\t\treturn [\n\t\t\te,\n\t\t\tt,\n\t\t\tn,\n\t\t\tr,\n\t\t\ti,\n\t\t\ta,\n\t\t\to,\n\t\t\ts\n\t\t];\n\t}\n\tset(e, t, n, r, i, a, o, s) {\n\t\tthis.A = e | 0, this.B = t | 0, this.C = n | 0, this.D = r | 0, this.E = i | 0, this.F = a | 0, this.G = o | 0, this.H = s | 0;\n\t}\n\tprocess(e, t) {\n\t\tfor (let n = 0; n < 16; n++, t += 4) j[n] = e.getUint32(t, !1);\n\t\tfor (let e = 16; e < 64; e++) {\n\t\t\tlet t = j[e - 15], n = j[e - 2], r = O(t, 7) ^ O(t, 18) ^ t >>> 3;\n\t\t\tj[e] = (O(n, 17) ^ O(n, 19) ^ n >>> 10) + j[e - 7] + r + j[e - 16] | 0;\n\t\t}\n\t\tlet { A: n, B: r, C: i, D: a, E: o, F: s, G: c, H: l } = this;\n\t\tfor (let e = 0; e < 64; e++) {\n\t\t\tlet t = O(o, 6) ^ O(o, 11) ^ O(o, 25), u = l + t + he(o, s, c) + xe[e] + j[e] | 0, d = (O(n, 2) ^ O(n, 13) ^ O(n, 22)) + ge(n, r, i) | 0;\n\t\t\tl = c, c = s, s = o, o = a + u | 0, a = i, i = r, r = n, n = u + d | 0;\n\t\t}\n\t\tn = n + this.A | 0, r = r + this.B | 0, i = i + this.C | 0, a = a + this.D | 0, o = o + this.E | 0, s = s + this.F | 0, c = c + this.G | 0, l = l + this.H | 0, this.set(n, r, i, a, o, s, c, l);\n\t}\n\troundClean() {\n\t\tse(j);\n\t}\n\tdestroy() {\n\t\tthis.destroyed = !0, this.set(0, 0, 0, 0, 0, 0, 0, 0), se(this.buffer);\n\t}\n}, Ce = class extends Se {\n\tA = k[0] | 0;\n\tB = k[1] | 0;\n\tC = k[2] | 0;\n\tD = k[3] | 0;\n\tE = k[4] | 0;\n\tF = k[5] | 0;\n\tG = k[6] | 0;\n\tH = k[7] | 0;\n\tconstructor() {\n\t\tsuper(32);\n\t}\n};\nconst we = be(`0x428a2f98d728ae22.0x7137449123ef65cd.0xb5c0fbcfec4d3b2f.0xe9b5dba58189dbbc.0x3956c25bf348b538.0x59f111f1b605d019.0x923f82a4af194f9b.0xab1c5ed5da6d8118.0xd807aa98a3030242.0x12835b0145706fbe.0x243185be4ee4b28c.0x550c7dc3d5ffb4e2.0x72be5d74f27b896f.0x80deb1fe3b1696b1.0x9bdc06a725c71235.0xc19bf174cf692694.0xe49b69c19ef14ad2.0xefbe4786384f25e3.0x0fc19dc68b8cd5b5.0x240ca1cc77ac9c65.0x2de92c6f592b0275.0x4a7484aa6ea6e483.0x5cb0a9dcbd41fbd4.0x76f988da831153b5.0x983e5152ee66dfab.0xa831c66d2db43210.0xb00327c898fb213f.0xbf597fc7beef0ee4.0xc6e00bf33da88fc2.0xd5a79147930aa725.0x06ca6351e003826f.0x142929670a0e6e70.0x27b70a8546d22ffc.0x2e1b21385c26c926.0x4d2c6dfc5ac42aed.0x53380d139d95b3df.0x650a73548baf63de.0x766a0abb3c77b2a8.0x81c2c92e47edaee6.0x92722c851482353b.0xa2bfe8a14cf10364.0xa81a664bbc423001.0xc24b8b70d0f89791.0xc76c51a30654be30.0xd192e819d6ef5218.0xd69906245565a910.0xf40e35855771202a.0x106aa07032bbd1b8.0x19a4c116b8d2d0c8.0x1e376c085141ab53.0x2748774cdf8eeb99.0x34b0bcb5e19b48a8.0x391c0cb3c5c95a63.0x4ed8aa4ae3418acb.0x5b9cca4f7763e373.0x682e6ff3d6b2b8a3.0x748f82ee5defb2fc.0x78a5636f43172f60.0x84c87814a1f0ab72.0x8cc702081a6439ec.0x90befffa23631e28.0xa4506cebde82bde9.0xbef9a3f7b2c67915.0xc67178f2e372532b.0xca273eceea26619c.0xd186b8c721c0c207.0xeada7dd6cde0eb1e.0xf57d4f7fee6ed178.0x06f067aa72176fba.0x0a637dc5a2c898a6.0x113f9804bef90dae.0x1b710b35131c471b.0x28db77f523047d84.0x32caab7b40c72493.0x3c9ebe0a15c9bebc.0x431d67c49c100d4c.0x4cc5d4becb3e42b6.0x597f299cfc657e2a.0x5fcb6fab3ad6faec.0x6c44198c4a475817`.split(`.`).map((e) => BigInt(e)));\nwe[0], we[1];\nconst Te = pe(() => new Ce(), me(1)), Ee = (e) => `generaltranslation Formatting Error: Invalid cutoff style: ${e}.`, De = `DEFAULT_TERMINATOR_KEY`, Oe = {\n\tellipsis: {\n\t\tfr: {\n\t\t\tterminator: `…`,\n\t\t\tseparator: ` `\n\t\t},\n\t\tzh: {\n\t\t\tterminator: `……`,\n\t\t\tseparator: void 0\n\t\t},\n\t\tja: {\n\t\t\tterminator: `……`,\n\t\t\tseparator: void 0\n\t\t},\n\t\t[De]: {\n\t\t\tterminator: `…`,\n\t\t\tseparator: void 0\n\t\t}\n\t},\n\tnone: { [De]: {\n\t\tterminator: void 0,\n\t\tseparator: void 0\n\t} }\n};\nvar ke = class e {\n\tstatic resolveLocale(e) {\n\t\ttry {\n\t\t\tlet t = e ? Array.isArray(e) ? e.map(String) : [String(e)] : [`en`], [n] = Intl.getCanonicalLocales(t);\n\t\t\treturn n ?? `en`;\n\t\t} catch {\n\t\t\treturn `en`;\n\t\t}\n\t}\n\tconstructor(t, n = {}) {\n\t\tthis.locale = e.resolveLocale(t);\n\t\tlet r = n.style ?? `ellipsis`;\n\t\tif (!Oe[r]) throw Error(Ee(r));\n\t\tlet i = n.maxChars === void 0 ? void 0 : Oe[r][new Intl.Locale(this.locale).language] || Oe[r].DEFAULT_TERMINATOR_KEY, a = n.terminator ?? i?.terminator, o = a == null ? void 0 : n.separator ?? i?.separator;\n\t\tthis.additionLength = (a?.length ?? 0) + (o?.length ?? 0), n.maxChars !== void 0 && Math.abs(n.maxChars) < this.additionLength && (a = void 0, o = void 0), this.options = {\n\t\t\tmaxChars: n.maxChars,\n\t\t\tstyle: n.maxChars === void 0 ? void 0 : r,\n\t\t\tterminator: a,\n\t\t\tseparator: o\n\t\t};\n\t}\n\tformat(e) {\n\t\treturn this.formatToParts(e).join(``);\n\t}\n\tformatToParts(e) {\n\t\tlet { maxChars: t, terminator: n, separator: r } = this.options, i = t === void 0 || Math.abs(t) >= e.length ? t : t >= 0 ? Math.max(0, t - this.additionLength) : Math.min(0, t + this.additionLength), a = i !== void 0 && i > -1 ? e.slice(0, i) : e.slice(i);\n\t\treturn t == null || i == null || i === 0 || n == null || e.length <= Math.abs(t) ? [a] : i > 0 ? r == null ? [a, n] : [\n\t\t\ta,\n\t\t\tr,\n\t\t\tn\n\t\t] : r == null ? [n, a] : [\n\t\t\tn,\n\t\t\tr,\n\t\t\ta\n\t\t];\n\t}\n\tresolvedOptions() {\n\t\treturn this.options;\n\t}\n};\nconst Ae = {\n\tCollator: Intl.Collator,\n\tDateTimeFormat: Intl.DateTimeFormat,\n\tDisplayNames: Intl.DisplayNames,\n\tListFormat: Intl.ListFormat,\n\tLocale: Intl.Locale,\n\tNumberFormat: Intl.NumberFormat,\n\tPluralRules: Intl.PluralRules,\n\tRelativeTimeFormat: Intl.RelativeTimeFormat,\n\tSegmenter: Intl.Segmenter,\n\tCutoffFormat: ke\n}, je = new class {\n\tconstructor() {\n\t\tthis.cache = {};\n\t}\n\tgenerateKey(e, t = {}) {\n\t\treturn `${e ? Array.isArray(e) ? e.map((e) => String(e)).join(`,`) : String(e) : `undefined`}:${t ? JSON.stringify(t, Object.keys(t).sort()) : `{}`}`;\n\t}\n\tget(e, ...t) {\n\t\tlet [n = `en`, r = {}] = t, i = this.generateKey(n, r), a = this.cache[e];\n\t\ta === void 0 && (a = {}, this.cache[e] = a);\n\t\tlet o = a[i];\n\t\treturn o === void 0 && (o = new Ae[e](...t), a[i] = o), o;\n\t}\n}();\nfunction Me(e) {\n\treturn je.get(`PluralRules`, e);\n}\nvar M = m({\n\t__addDisposableResource: () => it,\n\t__assign: () => F,\n\t__asyncDelegator: () => Xe,\n\t__asyncGenerator: () => Ye,\n\t__asyncValues: () => Ze,\n\t__await: () => P,\n\t__awaiter: () => He,\n\t__classPrivateFieldGet: () => tt,\n\t__classPrivateFieldIn: () => rt,\n\t__classPrivateFieldSet: () => nt,\n\t__createBinding: () => I,\n\t__decorate: () => Fe,\n\t__disposeResources: () => at,\n\t__esDecorate: () => Le,\n\t__exportStar: () => We,\n\t__extends: () => Ne,\n\t__generator: () => Ue,\n\t__importDefault: () => et,\n\t__importStar: () => $e,\n\t__makeTemplateObject: () => Qe,\n\t__metadata: () => Ve,\n\t__param: () => Ie,\n\t__propKey: () => ze,\n\t__read: () => Ge,\n\t__rest: () => Pe,\n\t__rewriteRelativeImportExtension: () => ot,\n\t__runInitializers: () => Re,\n\t__setFunctionName: () => Be,\n\t__spread: () => Ke,\n\t__spreadArray: () => Je,\n\t__spreadArrays: () => qe,\n\t__values: () => N,\n\tdefault: () => ut\n});\nfunction Ne(e, t) {\n\tif (typeof t != `function` && t !== null) throw TypeError(`Class extends value ` + String(t) + ` is not a constructor or null`);\n\tst(e, t);\n\tfunction n() {\n\t\tthis.constructor = e;\n\t}\n\te.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());\n}\nfunction Pe(e, t) {\n\tvar n = {};\n\tfor (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);\n\tif (e != null && typeof Object.getOwnPropertySymbols == `function`) for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);\n\treturn n;\n}\nfunction Fe(e, t, n, r) {\n\tvar i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;\n\tif (typeof Reflect == `object` && typeof Reflect.decorate == `function`) a = Reflect.decorate(e, t, n, r);\n\telse for (var s = e.length - 1; s >= 0; s--) (o = e[s]) && (a = (i < 3 ? o(a) : i > 3 ? o(t, n, a) : o(t, n)) || a);\n\treturn i > 3 && a && Object.defineProperty(t, n, a), a;\n}\nfunction Ie(e, t) {\n\treturn function(n, r) {\n\t\tt(n, r, e);\n\t};\n}\nfunction Le(e, t, n, r, i, a) {\n\tfunction o(e) {\n\t\tif (e !== void 0 && typeof e != `function`) throw TypeError(`Function expected`);\n\t\treturn e;\n\t}\n\tfor (var s = r.kind, c = s === `getter` ? `get` : s === `setter` ? `set` : `value`, l = !t && e ? r.static ? e : e.prototype : null, u = t || (l ? Object.getOwnPropertyDescriptor(l, r.name) : {}), d, f = !1, p = n.length - 1; p >= 0; p--) {\n\t\tvar m = {};\n\t\tfor (var h in r) m[h] = h === `access` ? {} : r[h];\n\t\tfor (var h in r.access) m.access[h] = r.access[h];\n\t\tm.addInitializer = function(e) {\n\t\t\tif (f) throw TypeError(`Cannot add initializers after decoration has completed`);\n\t\t\ta.push(o(e || null));\n\t\t};\n\t\tvar g = (0, n[p])(s === `accessor` ? {\n\t\t\tget: u.get,\n\t\t\tset: u.set\n\t\t} : u[c], m);\n\t\tif (s === `accessor`) {\n\t\t\tif (g === void 0) continue;\n\t\t\tif (typeof g != `object` || !g) throw TypeError(`Object expected`);\n\t\t\t(d = o(g.get)) && (u.get = d), (d = o(g.set)) && (u.set = d), (d = o(g.init)) && i.unshift(d);\n\t\t} else (d = o(g)) && (s === `field` ? i.unshift(d) : u[c] = d);\n\t}\n\tl && Object.defineProperty(l, r.name, u), f = !0;\n}\nfunction Re(e, t, n) {\n\tfor (var r = arguments.length > 2, i = 0; i < t.length; i++) n = r ? t[i].call(e, n) : t[i].call(e);\n\treturn r ? n : void 0;\n}\nfunction ze(e) {\n\treturn typeof e == `symbol` ? e : `${e}`;\n}\nfunction Be(e, t, n) {\n\treturn typeof t == `symbol` && (t = t.description ? `[${t.description}]` : ``), Object.defineProperty(e, `name`, {\n\t\tconfigurable: !0,\n\t\tvalue: n ? `${n} ${t}` : t\n\t});\n}\nfunction Ve(e, t) {\n\tif (typeof Reflect == `object` && typeof Reflect.metadata == `function`) return Reflect.metadata(e, t);\n}\nfunction He(e, t, n, r) {\n\tfunction i(e) {\n\t\treturn e instanceof n ? e : new n(function(t) {\n\t\t\tt(e);\n\t\t});\n\t}\n\treturn new (n ||= Promise)(function(n, a) {\n\t\tfunction o(e) {\n\t\t\ttry {\n\t\t\t\tc(r.next(e));\n\t\t\t} catch (e) {\n\t\t\t\ta(e);\n\t\t\t}\n\t\t}\n\t\tfunction s(e) {\n\t\t\ttry {\n\t\t\t\tc(r.throw(e));\n\t\t\t} catch (e) {\n\t\t\t\ta(e);\n\t\t\t}\n\t\t}\n\t\tfunction c(e) {\n\t\t\te.done ? n(e.value) : i(e.value).then(o, s);\n\t\t}\n\t\tc((r = r.apply(e, t || [])).next());\n\t});\n}\nfunction Ue(e, t) {\n\tvar n = {\n\t\tlabel: 0,\n\t\tsent: function() {\n\t\t\tif (a[0] & 1) throw a[1];\n\t\t\treturn a[1];\n\t\t},\n\t\ttrys: [],\n\t\tops: []\n\t}, r, i, a, o = Object.create((typeof Iterator == `function` ? Iterator : Object).prototype);\n\treturn o.next = s(0), o.throw = s(1), o.return = s(2), typeof Symbol == `function` && (o[Symbol.iterator] = function() {\n\t\treturn this;\n\t}), o;\n\tfunction s(e) {\n\t\treturn function(t) {\n\t\t\treturn c([e, t]);\n\t\t};\n\t}\n\tfunction c(s) {\n\t\tif (r) throw TypeError(`Generator is already executing.`);\n\t\tfor (; o && (o = 0, s[0] && (n = 0)), n;) try {\n\t\t\tif (r = 1, i && (a = s[0] & 2 ? i.return : s[0] ? i.throw || ((a = i.return) && a.call(i), 0) : i.next) && !(a = a.call(i, s[1])).done) return a;\n\t\t\tswitch (i = 0, a && (s = [s[0] & 2, a.value]), s[0]) {\n\t\t\t\tcase 0:\n\t\t\t\tcase 1:\n\t\t\t\t\ta = s;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4: return n.label++, {\n\t\t\t\t\tvalue: s[1],\n\t\t\t\t\tdone: !1\n\t\t\t\t};\n\t\t\t\tcase 5:\n\t\t\t\t\tn.label++, i = s[1], s = [0];\n\t\t\t\t\tcontinue;\n\t\t\t\tcase 7:\n\t\t\t\t\ts = n.ops.pop(), n.trys.pop();\n\t\t\t\t\tcontinue;\n\t\t\t\tdefault:\n\t\t\t\t\tif ((a = n.trys, !(a = a.length > 0 && a[a.length - 1])) && (s[0] === 6 || s[0] === 2)) {\n\t\t\t\t\t\tn = 0;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tif (s[0] === 3 && (!a || s[1] > a[0] && s[1] < a[3])) {\n\t\t\t\t\t\tn.label = s[1];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tif (s[0] === 6 && n.label < a[1]) {\n\t\t\t\t\t\tn.label = a[1], a = s;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tif (a && n.label < a[2]) {\n\t\t\t\t\t\tn.label = a[2], n.ops.push(s);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\ta[2] && n.ops.pop(), n.trys.pop();\n\t\t\t\t\tcontinue;\n\t\t\t}\n\t\t\ts = t.call(e, n);\n\t\t} catch (e) {\n\t\t\ts = [6, e], i = 0;\n\t\t} finally {\n\t\t\tr = a = 0;\n\t\t}\n\t\tif (s[0] & 5) throw s[1];\n\t\treturn {\n\t\t\tvalue: s[0] ? s[1] : void 0,\n\t\t\tdone: !0\n\t\t};\n\t}\n}\nfunction We(e, t) {\n\tfor (var n in e) n !== `default` && !Object.prototype.hasOwnProperty.call(t, n) && I(t, e, n);\n}\nfunction N(e) {\n\tvar t = typeof Symbol == `function` && Symbol.iterator, n = t && e[t], r = 0;\n\tif (n) return n.call(e);\n\tif (e && typeof e.length == `number`) return { next: function() {\n\t\treturn e && r >= e.length && (e = void 0), {\n\t\t\tvalue: e && e[r++],\n\t\t\tdone: !e\n\t\t};\n\t} };\n\tthrow TypeError(t ? `Object is not iterable.` : `Symbol.iterator is not defined.`);\n}\nfunction Ge(e, t) {\n\tvar n = typeof Symbol == `function` && e[Symbol.iterator];\n\tif (!n) return e;\n\tvar r = n.call(e), i, a = [], o;\n\ttry {\n\t\tfor (; (t === void 0 || t-- > 0) && !(i = r.next()).done;) a.push(i.value);\n\t} catch (e) {\n\t\to = { error: e };\n\t} finally {\n\t\ttry {\n\t\t\ti && !i.done && (n = r.return) && n.call(r);\n\t\t} finally {\n\t\t\tif (o) throw o.error;\n\t\t}\n\t}\n\treturn a;\n}\nfunction Ke() {\n\tfor (var e = [], t = 0; t < arguments.length; t++) e = e.concat(Ge(arguments[t]));\n\treturn e;\n}\nfunction qe() {\n\tfor (var e = 0, t = 0, n = arguments.length; t < n; t++) e += arguments[t].length;\n\tfor (var r = Array(e), i = 0, t = 0; t < n; t++) for (var a = arguments[t], o = 0, s = a.length; o < s; o++, i++) r[i] = a[o];\n\treturn r;\n}\nfunction Je(e, t, n) {\n\tif (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++) (a || !(r in t)) && (a ||= Array.prototype.slice.call(t, 0, r), a[r] = t[r]);\n\treturn e.concat(a || Array.prototype.slice.call(t));\n}\nfunction P(e) {\n\treturn this instanceof P ? (this.v = e, this) : new P(e);\n}\nfunction Ye(e, t, n) {\n\tif (!Symbol.asyncIterator) throw TypeError(`Symbol.asyncIterator is not defined.`);\n\tvar r = n.apply(e, t || []), i, a = [];\n\treturn i = Object.create((typeof AsyncIterator == `function` ? AsyncIterator : Object).prototype), s(`next`), s(`throw`), s(`return`, o), i[Symbol.asyncIterator] = function() {\n\t\treturn this;\n\t}, i;\n\tfunction o(e) {\n\t\treturn function(t) {\n\t\t\treturn Promise.resolve(t).then(e, d);\n\t\t};\n\t}\n\tfunction s(e, t) {\n\t\tr[e] && (i[e] = function(t) {\n\t\t\treturn new Promise(function(n, r) {\n\t\t\t\ta.push([\n\t\t\t\t\te,\n\t\t\t\t\tt,\n\t\t\t\t\tn,\n\t\t\t\t\tr\n\t\t\t\t]) > 1 || c(e, t);\n\t\t\t});\n\t\t}, t && (i[e] = t(i[e])));\n\t}\n\tfunction c(e, t) {\n\t\ttry {\n\t\t\tl(r[e](t));\n\t\t} catch (e) {\n\t\t\tf(a[0][3], e);\n\t\t}\n\t}\n\tfunction l(e) {\n\t\te.value instanceof P ? Promise.resolve(e.value.v).then(u, d) : f(a[0][2], e);\n\t}\n\tfunction u(e) {\n\t\tc(`next`, e);\n\t}\n\tfunction d(e) {\n\t\tc(`throw`, e);\n\t}\n\tfunction f(e, t) {\n\t\te(t), a.shift(), a.length && c(a[0][0], a[0][1]);\n\t}\n}\nfunction Xe(e) {\n\tvar t, n;\n\treturn t = {}, r(`next`), r(`throw`, function(e) {\n\t\tthrow e;\n\t}), r(`return`), t[Symbol.iterator] = function() {\n\t\treturn this;\n\t}, t;\n\tfunction r(r, i) {\n\t\tt[r] = e[r] ? function(t) {\n\t\t\treturn (n = !n) ? {\n\t\t\t\tvalue: P(e[r](t)),\n\t\t\t\tdone: !1\n\t\t\t} : i ? i(t) : t;\n\t\t} : i;\n\t}\n}\nfunction Ze(e) {\n\tif (!Symbol.asyncIterator) throw TypeError(`Symbol.asyncIterator is not defined.`);\n\tvar t = e[Symbol.asyncIterator], n;\n\treturn t ? t.call(e) : (e = typeof N == `function` ? N(e) : e[Symbol.iterator](), n = {}, r(`next`), r(`throw`), r(`return`), n[Symbol.asyncIterator] = function() {\n\t\treturn this;\n\t}, n);\n\tfunction r(t) {\n\t\tn[t] = e[t] && function(n) {\n\t\t\treturn new Promise(function(r, a) {\n\t\t\t\tn = e[t](n), i(r, a, n.done, n.value);\n\t\t\t});\n\t\t};\n\t}\n\tfunction i(e, t, n, r) {\n\t\tPromise.resolve(r).then(function(t) {\n\t\t\te({\n\t\t\t\tvalue: t,\n\t\t\t\tdone: n\n\t\t\t});\n\t\t}, t);\n\t}\n}\nfunction Qe(e, t) {\n\treturn Object.defineProperty ? Object.defineProperty(e, `raw`, { value: t }) : e.raw = t, e;\n}\nfunction $e(e) {\n\tif (e && e.__esModule) return e;\n\tvar t = {};\n\tif (e != null) for (var n = L(e), r = 0; r < n.length; r++) n[r] !== `default` && I(t, e, n[r]);\n\treturn ct(t, e), t;\n}\nfunction et(e) {\n\treturn e && e.__esModule ? e : { default: e };\n}\nfunction tt(e, t, n, r) {\n\tif (n === `a` && !r) throw TypeError(`Private accessor was defined without a getter`);\n\tif (typeof t == `function` ? e !== t || !r : !t.has(e)) throw TypeError(`Cannot read private member from an object whose class did not declare it`);\n\treturn n === `m` ? r : n === `a` ? r.call(e) : r ? r.value : t.get(e);\n}\nfunction nt(e, t, n, r, i) {\n\tif (r === `m`) throw TypeError(`Private method is not writable`);\n\tif (r === `a` && !i) throw TypeError(`Private accessor was defined without a setter`);\n\tif (typeof t == `function` ? e !== t || !i : !t.has(e)) throw TypeError(`Cannot write private member to an object whose class did not declare it`);\n\treturn r === `a` ? i.call(e, n) : i ? i.value = n : t.set(e, n), n;\n}\nfunction rt(e, t) {\n\tif (t === null || typeof t != `object` && typeof t != `function`) throw TypeError(`Cannot use 'in' operator on non-object`);\n\treturn typeof e == `function` ? t === e : e.has(t);\n}\nfunction it(e, t, n) {\n\tif (t != null) {\n\t\tif (typeof t != `object` && typeof t != `function`) throw TypeError(`Object expected.`);\n\t\tvar r, i;\n\t\tif (n) {\n\t\t\tif (!Symbol.asyncDispose) throw TypeError(`Symbol.asyncDispose is not defined.`);\n\t\t\tr = t[Symbol.asyncDispose];\n\t\t}\n\t\tif (r === void 0) {\n\t\t\tif (!Symbol.dispose) throw TypeError(`Symbol.dispose is not defined.`);\n\t\t\tr = t[Symbol.dispose], n && (i = r);\n\t\t}\n\t\tif (typeof r != `function`) throw TypeError(`Object not disposable.`);\n\t\ti && (r = function() {\n\t\t\ttry {\n\t\t\t\ti.call(this);\n\t\t\t} catch (e) {\n\t\t\t\treturn Promise.reject(e);\n\t\t\t}\n\t\t}), e.stack.push({\n\t\t\tvalue: t,\n\t\t\tdispose: r,\n\t\t\tasync: n\n\t\t});\n\t} else n && e.stack.push({ async: !0 });\n\treturn t;\n}\nfunction at(e) {\n\tfunction t(t) {\n\t\te.error = e.hasError ? new lt(t, e.error, `An error was suppressed during disposal.`) : t, e.hasError = !0;\n\t}\n\tvar n, r = 0;\n\tfunction i() {\n\t\tfor (; n = e.stack.pop();) try {\n\t\t\tif (!n.async && r === 1) return r = 0, e.stack.push(n), Promise.resolve().then(i);\n\t\t\tif (n.dispose) {\n\t\t\t\tvar a = n.dispose.call(n.value);\n\t\t\t\tif (n.async) return r |= 2, Promise.resolve(a).then(i, function(e) {\n\t\t\t\t\treturn t(e), i();\n\t\t\t\t});\n\t\t\t} else r |= 1;\n\t\t} catch (e) {\n\t\t\tt(e);\n\t\t}\n\t\tif (r === 1) return e.hasError ? Promise.reject(e.error) : Promise.resolve();\n\t\tif (e.hasError) throw e.error;\n\t}\n\treturn i();\n}\nfunction ot(e, t) {\n\treturn typeof e == `string` && /^\\.\\.?\\//.test(e) ? e.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function(e, n, r, i, a) {\n\t\treturn n ? t ? `.jsx` : `.js` : r && (!i || !a) ? e : r + i + `.` + a.toLowerCase() + `js`;\n\t}) : e;\n}\nvar st, F, I, ct, L, lt, ut, R = f((() => {\n\tst = function(e, t) {\n\t\treturn st = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {\n\t\t\te.__proto__ = t;\n\t\t} || function(e, t) {\n\t\t\tfor (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]);\n\t\t}, st(e, t);\n\t}, F = function() {\n\t\treturn F = Object.assign || function(e) {\n\t\t\tfor (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);\n\t\t\treturn e;\n\t\t}, F.apply(this, arguments);\n\t}, I = Object.create ? (function(e, t, n, r) {\n\t\tr === void 0 && (r = n);\n\t\tvar i = Object.getOwnPropertyDescriptor(t, n);\n\t\t(!i || (`get` in i ? !t.__esModule : i.writable || i.configurable)) && (i = {\n\t\t\tenumerable: !0,\n\t\t\tget: function() {\n\t\t\t\treturn t[n];\n\t\t\t}\n\t\t}), Object.defineProperty(e, r, i);\n\t}) : (function(e, t, n, r) {\n\t\tr === void 0 && (r = n), e[r] = t[n];\n\t}), ct = Object.create ? (function(e, t) {\n\t\tObject.defineProperty(e, `default`, {\n\t\t\tenumerable: !0,\n\t\t\tvalue: t\n\t\t});\n\t}) : function(e, t) {\n\t\te.default = t;\n\t}, L = function(e) {\n\t\treturn L = Object.getOwnPropertyNames || function(e) {\n\t\t\tvar t = [];\n\t\t\tfor (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[t.length] = n);\n\t\t\treturn t;\n\t\t}, L(e);\n\t}, lt = typeof SuppressedError == `function` ? SuppressedError : function(e, t, n) {\n\t\tvar r = Error(n);\n\t\treturn r.name = `SuppressedError`, r.error = e, r.suppressed = t, r;\n\t}, ut = {\n\t\t__extends: Ne,\n\t\t__assign: F,\n\t\t__rest: Pe,\n\t\t__decorate: Fe,\n\t\t__param: Ie,\n\t\t__esDecorate: Le,\n\t\t__runInitializers: Re,\n\t\t__propKey: ze,\n\t\t__setFunctionName: Be,\n\t\t__metadata: Ve,\n\t\t__awaiter: He,\n\t\t__generator: Ue,\n\t\t__createBinding: I,\n\t\t__exportStar: We,\n\t\t__values: N,\n\t\t__read: Ge,\n\t\t__spread: Ke,\n\t\t__spreadArrays: qe,\n\t\t__spreadArray: Je,\n\t\t__await: P,\n\t\t__asyncGenerator: Ye,\n\t\t__asyncDelegator: Xe,\n\t\t__asyncValues: Ze,\n\t\t__makeTemplateObject: Qe,\n\t\t__importStar: $e,\n\t\t__importDefault: et,\n\t\t__classPrivateFieldGet: tt,\n\t\t__classPrivateFieldSet: nt,\n\t\t__classPrivateFieldIn: rt,\n\t\t__addDisposableResource: it,\n\t\t__disposeResources: at,\n\t\t__rewriteRelativeImportExtension: ot\n\t};\n})), dt = p(((e) => {\n\tObject.defineProperty(e, `__esModule`, { value: !0 }), e.ErrorKind = void 0;\n\tvar t;\n\t(function(e) {\n\t\te[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = `EXPECT_ARGUMENT_CLOSING_BRACE`, e[e.EMPTY_ARGUMENT = 2] = `EMPTY_ARGUMENT`, e[e.MALFORMED_ARGUMENT = 3] = `MALFORMED_ARGUMENT`, e[e.EXPECT_ARGUMENT_TYPE = 4] = `EXPECT_ARGUMENT_TYPE`, e[e.INVALID_ARGUMENT_TYPE = 5] = `INVALID_ARGUMENT_TYPE`, e[e.EXPECT_ARGUMENT_STYLE = 6] = `EXPECT_ARGUMENT_STYLE`, e[e.INVALID_NUMBER_SKELETON = 7] = `INVALID_NUMBER_SKELETON`, e[e.INVALID_DATE_TIME_SKELETON = 8] = `INVALID_DATE_TIME_SKELETON`, e[e.EXPECT_NUMBER_SKELETON = 9] = `EXPECT_NUMBER_SKELETON`, e[e.EXPECT_DATE_TIME_SKELETON = 10] = `EXPECT_DATE_TIME_SKELETON`, e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = `UNCLOSED_QUOTE_IN_ARGUMENT_STYLE`, e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = `EXPECT_SELECT_ARGUMENT_OPTIONS`, e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = `EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE`, e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = `INVALID_PLURAL_ARGUMENT_OFFSET_VALUE`, e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = `EXPECT_SELECT_ARGUMENT_SELECTOR`, e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = `EXPECT_PLURAL_ARGUMENT_SELECTOR`, e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = `EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT`, e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = `EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT`, e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = `INVALID_PLURAL_ARGUMENT_SELECTOR`, e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = `DUPLICATE_PLURAL_ARGUMENT_SELECTOR`, e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = `DUPLICATE_SELECT_ARGUMENT_SELECTOR`, e[e.MISSING_OTHER_CLAUSE = 22] = `MISSING_OTHER_CLAUSE`, e[e.INVALID_TAG = 23] = `INVALID_TAG`, e[e.INVALID_TAG_NAME = 25] = `INVALID_TAG_NAME`, e[e.UNMATCHED_CLOSING_TAG = 26] = `UNMATCHED_CLOSING_TAG`, e[e.UNCLOSED_TAG = 27] = `UNCLOSED_TAG`;\n\t})(t || (e.ErrorKind = t = {}));\n})), z = p(((e) => {\n\tObject.defineProperty(e, `__esModule`, { value: !0 }), e.SKELETON_TYPE = e.TYPE = void 0, e.isLiteralElement = r, e.isArgumentElement = i, e.isNumberElement = a, e.isDateElement = o, e.isTimeElement = s, e.isSelectElement = c, e.isPluralElement = l, e.isPoundElement = u, e.isTagElement = d, e.isNumberSkeleton = f, e.isDateTimeSkeleton = p, e.createLiteralElement = m, e.createNumberElement = h;\n\tvar t;\n\t(function(e) {\n\t\te[e.literal = 0] = `literal`, e[e.argument = 1] = `argument`, e[e.number = 2] = `number`, e[e.date = 3] = `date`, e[e.time = 4] = `time`, e[e.select = 5] = `select`, e[e.plural = 6] = `plural`, e[e.pound = 7] = `pound`, e[e.tag = 8] = `tag`;\n\t})(t || (e.TYPE = t = {}));\n\tvar n;\n\t(function(e) {\n\t\te[e.number = 0] = `number`, e[e.dateTime = 1] = `dateTime`;\n\t})(n || (e.SKELETON_TYPE = n = {}));\n\tfunction r(e) {\n\t\treturn e.type === t.literal;\n\t}\n\tfunction i(e) {\n\t\treturn e.type === t.argument;\n\t}\n\tfunction a(e) {\n\t\treturn e.type === t.number;\n\t}\n\tfunction o(e) {\n\t\treturn e.type === t.date;\n\t}\n\tfunction s(e) {\n\t\treturn e.type === t.time;\n\t}\n\tfunction c(e) {\n\t\treturn e.type === t.select;\n\t}\n\tfunction l(e) {\n\t\treturn e.type === t.plural;\n\t}\n\tfunction u(e) {\n\t\treturn e.type === t.pound;\n\t}\n\tfunction d(e) {\n\t\treturn e.type === t.tag;\n\t}\n\tfunction f(e) {\n\t\treturn !!(e && typeof e == `object` && e.type === n.number);\n\t}\n\tfunction p(e) {\n\t\treturn !!(e && typeof e == `object` && e.type === n.dateTime);\n\t}\n\tfunction m(e) {\n\t\treturn {\n\t\t\ttype: t.literal,\n\t\t\tvalue: e\n\t\t};\n\t}\n\tfunction h(e, n) {\n\t\treturn {\n\t\t\ttype: t.number,\n\t\t\tvalue: e,\n\t\t\tstyle: n\n\t\t};\n\t}\n})), ft = p(((e) => {\n\tObject.defineProperty(e, `__esModule`, { value: !0 }), e.WHITE_SPACE_REGEX = e.SPACE_SEPARATOR_REGEX = void 0, e.SPACE_SEPARATOR_REGEX = /[ \\xA0\\u1680\\u2000-\\u200A\\u202F\\u205F\\u3000]/, e.WHITE_SPACE_REGEX = /[\\t-\\r \\x85\\u200E\\u200F\\u2028\\u2029]/;\n})), pt = p(((e) => {\n\tObject.defineProperty(e, `__esModule`, { value: !0 }), e.parseDateTimeSkeleton = n;\n\tvar t = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;\n\tfunction n(e) {\n\t\tvar n = {};\n\t\treturn e.replace(t, function(e) {\n\t\t\tvar t = e.length;\n\t\t\tswitch (e[0]) {\n\t\t\t\tcase `G`:\n\t\t\t\t\tn.era = t === 4 ? `long` : t === 5 ? `narrow` : `short`;\n\t\t\t\t\tbreak;\n\t\t\t\tcase `y`:\n\t\t\t\t\tn.year = t === 2 ? `2-digit` : `numeric`;\n\t\t\t\t\tbreak;\n\t\t\t\tcase `Y`:\n\t\t\t\tcase `u`:\n\t\t\t\tcase `U`:\n\t\t\t\tcase `r`: throw RangeError(\"`Y/u/U/r` (year) patterns are not supported, use `y` instead\");\n\t\t\t\tcase `q`:\n\t\t\t\tcase `Q`: throw RangeError(\"`q/Q` (quarter) patterns are not supported\");\n\t\t\t\tcase `M`:\n\t\t\t\tcase `L`:\n\t\t\t\t\tn.month = [\n\t\t\t\t\t\t`numeric`,\n\t\t\t\t\t\t`2-digit`,\n\t\t\t\t\t\t`short`,\n\t\t\t\t\t\t`long`,\n\t\t\t\t\t\t`narrow`\n\t\t\t\t\t][t - 1];\n\t\t\t\t\tbreak;\n\t\t\t\tcase `w`:\n\t\t\t\tcase `W`: throw RangeError(\"`w/W` (week) patterns are not supported\");\n\t\t\t\tcase `d`:\n\t\t\t\t\tn.day = [`numeric`, `2-digit`][t - 1];\n\t\t\t\t\tbreak;\n\t\t\t\tcase `D`:\n\t\t\t\tcase `F`:\n\t\t\t\tcase `g`: throw RangeError(\"`D/F/g` (day) patterns are not supported, use `d` instead\");\n\t\t\t\tcase `E`:\n\t\t\t\t\tn.weekday = t === 4 ? `long` : t === 5 ? `narrow` : `short`;\n\t\t\t\t\tbreak;\n\t\t\t\tcase `e`:\n\t\t\t\t\tif (t < 4) throw RangeError(\"`e..eee` (weekday) patterns are not supported\");\n\t\t\t\t\tn.weekday = [\n\t\t\t\t\t\t`short`,\n\t\t\t\t\t\t`long`,\n\t\t\t\t\t\t`narrow`,\n\t\t\t\t\t\t`short`\n\t\t\t\t\t][t - 4];\n\t\t\t\t\tbreak;\n\t\t\t\tcase `c`:\n\t\t\t\t\tif (t < 4) throw RangeError(\"`c..ccc` (weekday) patterns are not supported\");\n\t\t\t\t\tn.weekday = [\n\t\t\t\t\t\t`short`,\n\t\t\t\t\t\t`long`,\n\t\t\t\t\t\t`narrow`,\n\t\t\t\t\t\t`short`\n\t\t\t\t\t][t - 4];\n\t\t\t\t\tbreak;\n\t\t\t\tcase `a`:\n\t\t\t\t\tn.hour12 = !0;\n\t\t\t\t\tbreak;\n\t\t\t\tcase `b`:\n\t\t\t\tcase `B`: throw RangeError(\"`b/B` (period) patterns are not supported, use `a` instead\");\n\t\t\t\tcase `h`:\n\t\t\t\t\tn.hourCycle = `h12`, n.hour = [`numeric`, `2-digit`][t - 1];\n\t\t\t\t\tbreak;\n\t\t\t\tcase `H`:\n\t\t\t\t\tn.hourCycle = `h23`, n.hour = [`numeric`, `2-digit`][t - 1];\n\t\t\t\t\tbreak;\n\t\t\t\tcase `K`:\n\t\t\t\t\tn.hourCycle = `h11`, n.hour = [`numeric`, `2-digit`][t - 1];\n\t\t\t\t\tbreak;\n\t\t\t\tcase `k`:\n\t\t\t\t\tn.hourCycle = `h24`, n.hour = [`numeric`, `2-digit`][t - 1];\n\t\t\t\t\tbreak;\n\t\t\t\tcase `j`:\n\t\t\t\tcase `J`:\n\t\t\t\tcase `C`: throw RangeError(\"`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead\");\n\t\t\t\tcase `m`:\n\t\t\t\t\tn.minute = [`numeric`, `2-digit`][t - 1];\n\t\t\t\t\tbreak;\n\t\t\t\tcase `s`:\n\t\t\t\t\tn.second = [`numeric`, `2-digit`][t - 1];\n\t\t\t\t\tbreak;\n\t\t\t\tcase `S`:\n\t\t\t\tcase `A`: throw RangeError(\"`S/A` (second) patterns are not supported, use `s` instead\");\n\t\t\t\tcase `z`:\n\t\t\t\t\tn.timeZoneName = t < 4 ? `short` : `long`;\n\t\t\t\t\tbreak;\n\t\t\t\tcase `Z`:\n\t\t\t\tcase `O`:\n\t\t\t\tcase `v`:\n\t\t\t\tcase `V`:\n\t\t\t\tcase `X`:\n\t\t\t\tcase `x`: throw RangeError(\"`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead\");\n\t\t\t}\n\t\t\treturn ``;\n\t\t}), n;\n\t}\n})), mt = p(((e) => {\n\tObject.defineProperty(e, `__esModule`, { value: !0 }), e.WHITE_SPACE_REGEX = void 0, e.WHITE_SPACE_REGEX = /[\\t-\\r \\x85\\u200E\\u200F\\u2028\\u2029]/i;\n})), ht = p(((e) => {\n\tObject.defineProperty(e, `__esModule`, { value: !0 }), e.parseNumberSkeletonFromString = r, e.parseNumberSkeleton = p;\n\tvar t = (R(), g(M)), n = mt();\n\tfunction r(e) {\n\t\tif (e.length === 0) throw Error(`Number skeleton cannot be empty`);\n\t\tfor (var t = e.split(n.WHITE_SPACE_REGEX).filter(function(e) {\n\t\t\treturn e.length > 0;\n\t\t}), r = [], i = 0, a = t; i < a.length; i++) {\n\t\t\tvar o = a[i].split(`/`);\n\t\t\tif (o.length === 0) throw Error(`Invalid number skeleton`);\n\t\t\tfor (var s = o[0], c = o.slice(1), l = 0, u = c; l < u.length; l++) if (u[l].length === 0) throw Error(`Invalid number skeleton`);\n\t\t\tr.push({\n\t\t\t\tstem: s,\n\t\t\t\toptions: c\n\t\t\t});\n\t\t}\n\t\treturn r;\n\t}\n\tfunction i(e) {\n\t\treturn e.replace(/^(.*?)-/, ``);\n\t}\n\tvar a = /^\\.(?:(0+)(\\*)?|(#+)|(0+)(#+))$/g, o = /^(@+)?(\\+|#+)?[rs]?$/g, s = /(\\*)(0+)|(#+)(0+)|(0+)/g, c = /^(0+)$/;\n\tfunction l(e) {\n\t\tvar t = {};\n\t\treturn e[e.length - 1] === `r` ? t.roundingPriority = `morePrecision` : e[e.length - 1] === `s` && (t.roundingPriority = `lessPrecision`), e.replace(o, function(e, n, r) {\n\t\t\treturn typeof r == `string` ? r === `+` ? t.minimumSignificantDigits = n.length : n[0] === `#` ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof r == `string` ? r.length : 0)) : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length), ``;\n\t\t}), t;\n\t}\n\tfunction u(e) {\n\t\tswitch (e) {\n\t\t\tcase `sign-auto`: return { signDisplay: `auto` };\n\t\t\tcase `sign-accounting`:\n\t\t\tcase `()`: return { currencySign: `accounting` };\n\t\t\tcase `sign-always`:\n\t\t\tcase `+!`: return { signDisplay: `always` };\n\t\t\tcase `sign-accounting-always`:\n\t\t\tcase `()!`: return {\n\t\t\t\tsignDisplay: `always`,\n\t\t\t\tcurrencySign: `accounting`\n\t\t\t};\n\t\t\tcase `sign-except-zero`:\n\t\t\tcase `+?`: return { signDisplay: `exceptZero` };\n\t\t\tcase `sign-accounting-except-zero`:\n\t\t\tcase `()?`: return {\n\t\t\t\tsignDisplay: `exceptZero`,\n\t\t\t\tcurrencySign: `accounting`\n\t\t\t};\n\t\t\tcase `sign-never`:\n\t\t\tcase `+_`: return { signDisplay: `never` };\n\t\t}\n\t}\n\tfunction d(e) {\n\t\tvar t;\n\t\tif (e[0] === `E` && e[1] === `E` ? (t = { notation: `engineering` }, e = e.slice(2)) : e[0] === `E` && (t = { notation: `scientific` }, e = e.slice(1)), t) {\n\t\t\tvar n = e.slice(0, 2);\n\t\t\tif (n === `+!` ? (t.signDisplay = `always`, e = e.slice(2)) : n === `+?` && (t.signDisplay = `exceptZero`, e = e.slice(2)), !c.test(e)) throw Error(`Malformed concise eng/scientific notation`);\n\t\t\tt.minimumIntegerDigits = e.length;\n\t\t}\n\t\treturn t;\n\t}\n\tfunction f(e) {\n\t\treturn u(e) || {};\n\t}\n\tfunction p(e) {\n\t\tfor (var n = {}, r = 0, p = e; r < p.length; r++) {\n\t\t\tvar m = p[r];\n\t\t\tswitch (m.stem) {\n\t\t\t\tcase `percent`:\n\t\t\t\tcase `%`:\n\t\t\t\t\tn.style = `percent`;\n\t\t\t\t\tcontinue;\n\t\t\t\tcase `%x100`:\n\t\t\t\t\tn.style = `percent`, n.scale = 100;\n\t\t\t\t\tcontinue;\n\t\t\t\tcase `currency`:\n\t\t\t\t\tn.style = `currency`, n.currency = m.options[0];\n\t\t\t\t\tcontinue;\n\t\t\t\tcase `group-off`:\n\t\t\t\tcase `,_`:\n\t\t\t\t\tn.useGrouping = !1;\n\t\t\t\t\tcontinue;\n\t\t\t\tcase `precision-integer`:\n\t\t\t\tcase `.`:\n\t\t\t\t\tn.maximumFractionDigits = 0;\n\t\t\t\t\tcontinue;\n\t\t\t\tcase `measure-unit`:\n\t\t\t\tcase `unit`:\n\t\t\t\t\tn.style = `unit`, n.unit = i(m.options[0]);\n\t\t\t\t\tcontinue;\n\t\t\t\tcase `compact-short`:\n\t\t\t\tcase `K`:\n\t\t\t\t\tn.notation = `compact`, n.compactDisplay = `short`;\n\t\t\t\t\tcontinue;\n\t\t\t\tcase `compact-long`:\n\t\t\t\tcase `KK`:\n\t\t\t\t\tn.notation = `compact`, n.compactDisplay = `long`;\n\t\t\t\t\tcontinue;\n\t\t\t\tcase `scientific`:\n\t\t\t\t\tn = t.__assign(t.__assign(t.__assign({}, n), { notation: `scientific` }), m.options.reduce(function(e, n) {\n\t\t\t\t\t\treturn t.__assign(t.__assign({}, e), f(n));\n\t\t\t\t\t}, {}));\n\t\t\t\t\tcontinue;\n\t\t\t\tcase `engineering`:\n\t\t\t\t\tn = t.__assign(t.__assign(t.__assign({}, n), { notation: `engineering` }), m.options.reduce(function(e, n) {\n\t\t\t\t\t\treturn t.__assign(t.__assign({}, e), f(n));\n\t\t\t\t\t}, {}));\n\t\t\t\t\tcontinue;\n\t\t\t\tcase `notation-simple`:\n\t\t\t\t\tn.notation = `standard`;\n\t\t\t\t\tcontinue;\n\t\t\t\tcase `unit-width-narrow`:\n\t\t\t\t\tn.currencyDisplay = `narrowSymbol`, n.unitDisplay = `narrow`;\n\t\t\t\t\tcontinue;\n\t\t\t\tcase `unit-width-short`:\n\t\t\t\t\tn.currencyDisplay = `code`, n.unitDisplay = `short`;\n\t\t\t\t\tcontinue;\n\t\t\t\tcase `unit-width-full-name`:\n\t\t\t\t\tn.currencyDisplay = `name`, n.unitDisplay = `long`;\n\t\t\t\t\tcontinue;\n\t\t\t\tcase `unit-width-iso-code`:\n\t\t\t\t\tn.currencyDisplay = `symbol`;\n\t\t\t\t\tcontinue;\n\t\t\t\tcase `scale`:\n\t\t\t\t\tn.scale = parseFloat(m.options[0]);\n\t\t\t\t\tcontinue;\n\t\t\t\tcase `rounding-mode-floor`:\n\t\t\t\t\tn.roundingMode = `floor`;\n\t\t\t\t\tcontinue;\n\t\t\t\tcase `rounding-mode-ceiling`:\n\t\t\t\t\tn.roundingMode = `ceil`;\n\t\t\t\t\tcontinue;\n\t\t\t\tcase `rounding-mode-down`:\n\t\t\t\t\tn.roundingMode = `trunc`;\n\t\t\t\t\tcontinue;\n\t\t\t\tcase `rounding-mode-up`:\n\t\t\t\t\tn.roundingMode = `expand`;\n\t\t\t\t\tcontinue;\n\t\t\t\tcase `rounding-mode-half-even`:\n\t\t\t\t\tn.roundingMode = `halfEven`;\n\t\t\t\t\tcontinue;\n\t\t\t\tcase `rounding-mode-half-down`:\n\t\t\t\t\tn.roundingMode = `halfTrunc`;\n\t\t\t\t\tcontinue;\n\t\t\t\tcase `rounding-mode-half-up`:\n\t\t\t\t\tn.roundingMode = `halfExpand`;\n\t\t\t\t\tcontinue;\n\t\t\t\tcase `integer-width`:\n\t\t\t\t\tif (m.options.length > 1) throw RangeError(`integer-width stems only accept a single optional option`);\n\t\t\t\t\tm.options[0].replace(s, function(e, t, r, i, a, o) {\n\t\t\t\t\t\tif (t) n.minimumIntegerDigits = r.length;\n\t\t\t\t\t\telse if (i && a) throw Error(`We currently do not support maximum integer digits`);\n\t\t\t\t\t\telse if (o) throw Error(`We currently do not support exact integer digits`);\n\t\t\t\t\t\treturn ``;\n\t\t\t\t\t});\n\t\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (c.test(m.stem)) {\n\t\t\t\tn.minimumIntegerDigits = m.stem.length;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (a.test(m.stem)) {\n\t\t\t\tif (m.options.length > 1) throw RangeError(`Fraction-precision stems only accept a single optional option`);\n\t\t\t\tm.stem.replace(a, function(e, t, r, i, a, o) {\n\t\t\t\t\treturn r === `*` ? n.minimumFractionDigits = t.length : i && i[0] === `#` ? n.maximumFractionDigits = i.length : a && o ? (n.minimumFractionDigits = a.length, n.maximumFractionDigits = a.length + o.length) : (n.minimumFractionDigits = t.length, n.maximumFractionDigits = t.length), ``;\n\t\t\t\t});\n\t\t\t\tvar h = m.options[0];\n\t\t\t\th === `w` ? n = t.__assign(t.__assign({}, n), { trailingZeroDisplay: `stripIfInteger` }) : h && (n = t.__assign(t.__assign({}, n), l(h)));\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (o.test(m.stem)) {\n\t\t\t\tn = t.__assign(t.__assign({}, n), l(m.stem));\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tvar g = u(m.stem);\n\t\t\tg && (n = t.__assign(t.__assign({}, n), g));\n\t\t\tvar _ = d(m.stem);\n\t\t\t_ && (n = t.__assign(t.__assign({}, n), _));\n\t\t}\n\t\treturn n;\n\t}\n})), gt = p(((e) => {\n\tObject.defineProperty(e, `__esModule`, { value: !0 });\n\tvar t = (R(), g(M));\n\tt.__exportStar(pt(), e), t.__exportStar(ht(), e);\n})), _t = p(((e) => {\n\tObject.defineProperty(e, `__esModule`, { value: !0 }), e.timeData = void 0, e.timeData = {\n\t\t\"001\": [`H`, `h`],\n\t\t419: [\n\t\t\t`h`,\n\t\t\t`H`,\n\t\t\t`hB`,\n\t\t\t`hb`\n\t\t],\n\t\tAC: [\n\t\t\t`H`,\n\t\t\t`h`,\n\t\t\t`hb`,\n\t\t\t`hB`\n\t\t],\n\t\tAD: [`H`, `hB`],\n\t\tAE: [\n\t\t\t`h`,\n\t\t\t`hB`,\n\t\t\t`hb`,\n\t\t\t`H`\n\t\t],\n\t\tAF: [\n\t\t\t`H`,\n\t\t\t`hb`,\n\t\t\t`hB`,\n\t\t\t`h`\n\t\t],\n\t\tAG: [\n\t\t\t`h`,\n\t\t\t`hb`,\n\t\t\t`H`,\n\t\t\t`hB`\n\t\t],\n\t\tAI: [\n\t\t\t`H`,\n\t\t\t`h`,\n\t\t\t`hb`,\n\t\t\t`hB`\n\t\t],\n\t\tAL: [\n\t\t\t`h`,\n\t\t\t`H`,\n\t\t\t`hB`\n\t\t],\n\t\tAM: [`H`, `hB`],\n\t\tAO: [`H`, `hB`],\n\t\tAR: [\n\t\t\t`h`,\n\t\t\t`H`,\n\t\t\t`hB`,\n\t\t\t`hb`\n\t\t],\n\t\tAS: [`h`, `H`],\n\t\tAT: [`H`, `hB`],\n\t\tAU: [\n\t\t\t`h`,\n\t\t\t`hb`,\n\t\t\t`H`,\n\t\t\t`hB`\n\t\t],\n\t\tAW: [`H`, `hB`],\n\t\tAX: [`H`],\n\t\tAZ: [\n\t\t\t`H`,\n\t\t\t`hB`,\n\t\t\t`h`\n\t\t],\n\t\tBA: [\n\t\t\t`H`,\n\t\t\t`hB`,\n\t\t\t`h`\n\t\t],\n\t\tBB: [\n\t\t\t`h`,\n\t\t\t`hb`,\n\t\t\t`H`,\n\t\t\t`hB`\n\t\t],\n\t\tBD: [\n\t\t\t`h`,\n\t\t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,\n\t\t\t`h`,\n\t\t\t`hb`,\n\t\t\t`H`\n\t\t],\n\t\t\"te-IN\": [\n\t\t\t`hB`,\n\t\t\t`h`,\n\t\t\t`H`\n\t\t],\n\t\t\"zu-ZA\": [\n\t\t\t`H`,\n\t\t\t`hB`,\n\t\t\t`hb`,\n\t\t\t`h`\n\t\t]\n\t};\n})), vt = p(((e) => {\n\tObject.defineProperty(e, `__esModule`, { value: !0 }), e.getBestPattern = n;\n\tvar t = _t();\n\tfunction n(e, t) {\n\t\tfor (var n = ``, i = 0; i < e.length; i++) {\n\t\t\tvar a = e.charAt(i);\n\t\t\tif (a === `j`) {\n\t\t\t\tfor (var o = 0; i + 1 < e.length && e.charAt(i + 1) === a;) o++, i++;\n\t\t\t\tvar s = 1 + (o & 1), c = o < 2 ? 1 : 3 + (o >> 1), l = `a`, u = r(t);\n\t\t\t\tfor ((u == `H` || u == `k`) && (c = 0); c-- > 0;) n += l;\n\t\t\t\tfor (; s-- > 0;) n = u + n;\n\t\t\t} else a === `J` ? n += `H` : n += a;\n\t\t}\n\t\treturn n;\n\t}\n\tfunction r(e) {\n\t\tvar n = e.hourCycle;\n\t\tif (n === void 0 && e.hourCycles && e.hourCycles.length && (n = e.hourCycles[0]), n) switch (n) {\n\t\t\tcase `h24`: return `k`;\n\t\t\tcase `h23`: return `H`;\n\t\t\tcase `h12`: return `h`;\n\t\t\tcase `h11`: return `K`;\n\t\t\tdefault: throw Error(`Invalid hourCycle`);\n\t\t}\n\t\tvar r = e.language, i;\n\t\treturn r !== `root` && (i = e.maximize().region), (t.timeData[i || ``] || t.timeData[r || ``] || t.timeData[`${r}-001`] || t.timeData[`001`])[0];\n\t}\n})), yt = p(((e) => {\n\tObject.defineProperty(e, `__esModule`, { value: !0 }), e.Parser = void 0;\n\tvar t = (R(), g(M)), n = dt(), r = z(), i = ft(), a = gt(), o = vt(), s = RegExp(`^${i.SPACE_SEPARATOR_REGEX.source}*`), c = RegExp(`${i.SPACE_SEPARATOR_REGEX.source}*\\$`);\n\tfunction l(e, t) {\n\t\treturn {\n\t\t\tstart: e,\n\t\t\tend: t\n\t\t};\n\t}\n\tvar u = !!String.prototype.startsWith && `_a`.startsWith(`a`, 1), d = !!String.fromCodePoint, f = !!Object.fromEntries, p = !!String.prototype.codePointAt, m = !!String.prototype.trimStart, h = !!String.prototype.trimEnd, _ = Number.isSafeInteger ? Number.isSafeInteger : function(e) {\n\t\treturn typeof e == `number` && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;\n\t}, v = !0;\n\ttry {\n\t\tv = S(`([^\\\\p{White_Space}\\\\p{Pattern_Syntax}]*)`, `yu`).exec(`a`)?.[0] === `a`;\n\t} catch {\n\t\tv = !1;\n\t}\n\tvar ee = u ? function(e, t, n) {\n\t\treturn e.startsWith(t, n);\n\t} : function(e, t, n) {\n\t\treturn e.slice(n, n + t.length) === t;\n\t}, y = d ? String.fromCodePoint : function() {\n\t\tfor (var e = [...arguments], t = ``, n = e.length, r = 0, i; n > r;) {\n\t\t\tif (i = e[r++], i > 1114111) throw RangeError(i + ` is not a valid code point`);\n\t\t\tt += i < 65536 ? String.fromCharCode(i) : String.fromCharCode(((i -= 65536) >> 10) + 55296, i % 1024 + 56320);\n\t\t}\n\t\treturn t;\n\t}, b = f ? Object.fromEntries : function(e) {\n\t\tfor (var t = {}, n = 0, r = e; n < r.length; n++) {\n\t\t\tvar i = r[n], a = i[0];\n\t\t\tt[a] = i[1];\n\t\t}\n\t\treturn t;\n\t}, x = p ? function(e, t) {\n\t\treturn e.codePointAt(t);\n\t} : function(e, t) {\n\t\tvar n = e.length;\n\t\tif (!(t < 0 || t >= n)) {\n\t\t\tvar r = e.charCodeAt(t), i;\n\t\t\treturn r < 55296 || r > 56319 || t + 1 === n || (i = e.charCodeAt(t + 1)) < 56320 || i > 57343 ? r : (r - 55296 << 10) + (i - 56320) + 65536;\n\t\t}\n\t}, te = m ? function(e) {\n\t\treturn e.trimStart();\n\t} : function(e) {\n\t\treturn e.replace(s, ``);\n\t}, ne = h ? function(e) {\n\t\treturn e.trimEnd();\n\t} : function(e) {\n\t\treturn e.replace(c, ``);\n\t};\n\tfunction S(e, t) {\n\t\treturn new RegExp(e, t);\n\t}\n\tvar C;\n\tif (v) {\n\t\tvar w = S(`([^\\\\p{White_Space}\\\\p{Pattern_Syntax}]*)`, `yu`);\n\t\tC = function(e, t) {\n\t\t\treturn w.lastIndex = t, w.exec(e)[1] ?? ``;\n\t\t};\n\t} else C = function(e, t) {\n\t\tfor (var n = [];;) {\n\t\t\tvar r = x(e, t);\n\t\t\tif (r === void 0 || ie(r) || D(r)) break;\n\t\t\tn.push(r), t += r >= 65536 ? 2 : 1;\n\t\t}\n\t\treturn y.apply(void 0, n);\n\t};\n\te.Parser = function() {\n\t\tfunction e(e, t) {\n\t\t\tt === void 0 && (t = {}), this.message = e, this.position = {\n\t\t\t\toffset: 0,\n\t\t\t\tline: 1,\n\t\t\t\tcolumn: 1\n\t\t\t}, this.ignoreTag = !!t.ignoreTag, this.locale = t.locale, this.requiresOtherClause = !!t.requiresOtherClause, this.shouldParseSkeletons = !!t.shouldParseSkeletons;\n\t\t}\n\t\treturn e.prototype.parse = function() {\n\t\t\tif (this.offset() !== 0) throw Error(`parser can only be used once`);\n\t\t\treturn this.parseMessage(0, ``, !1);\n\t\t}, e.prototype.parseMessage = function(e, t, i) {\n\t\t\tfor (var a = []; !this.isEOF();) {\n\t\t\t\tvar o = this.char();\n\t\t\t\tif (o === 123) {\n\t\t\t\t\tvar s = this.parseArgument(e, i);\n\t\t\t\t\tif (s.err) return s;\n\t\t\t\t\ta.push(s.val);\n\t\t\t\t} else if (o === 125 && e > 0) break;\n\t\t\t\telse if (o === 35 && (t === `plural` || t === `selectordinal`)) {\n\t\t\t\t\tvar c = this.clonePosition();\n\t\t\t\t\tthis.bump(), a.push({\n\t\t\t\t\t\ttype: r.TYPE.pound,\n\t\t\t\t\t\tlocation: l(c, this.clonePosition())\n\t\t\t\t\t});\n\t\t\t\t} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {\n\t\t\t\t\tif (i) break;\n\t\t\t\t\treturn this.error(n.ErrorKind.UNMATCHED_CLOSING_TAG, l(this.clonePosition(), this.clonePosition()));\n\t\t\t\t} else if (o === 60 && !this.ignoreTag && T(this.peek() || 0)) {\n\t\t\t\t\tvar s = this.parseTag(e, t);\n\t\t\t\t\tif (s.err) return s;\n\t\t\t\t\ta.push(s.val);\n\t\t\t\t} else {\n\t\t\t\t\tvar s = this.parseLiteral(e, t);\n\t\t\t\t\tif (s.err) return s;\n\t\t\t\t\ta.push(s.val);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn {\n\t\t\t\tval: a,\n\t\t\t\terr: null\n\t\t\t};\n\t\t}, e.prototype.parseTag = function(e, t) {\n\t\t\tvar i = this.clonePosition();\n\t\t\tthis.bump();\n\t\t\tvar a = this.parseTagName();\n\t\t\tif (this.bumpSpace(), this.bumpIf(`/>`)) return {\n\t\t\t\tval: {\n\t\t\t\t\ttype: r.TYPE.literal,\n\t\t\t\t\tvalue: `<${a}/>`,\n\t\t\t\t\tlocation: l(i, this.clonePosition())\n\t\t\t\t},\n\t\t\t\terr: null\n\t\t\t};\n\t\t\tif (this.bumpIf(`>`)) {\n\t\t\t\tvar o = this.parseMessage(e + 1, t, !0);\n\t\t\t\tif (o.err) return o;\n\t\t\t\tvar s = o.val, c = this.clonePosition();\n\t\t\t\tif (this.bumpIf(`</`)) {\n\t\t\t\t\tif (this.isEOF() || !T(this.char())) return this.error(n.ErrorKind.INVALID_TAG, l(c, this.clonePosition()));\n\t\t\t\t\tvar u = this.clonePosition();\n\t\t\t\t\treturn a === this.parseTagName() ? (this.bumpSpace(), this.bumpIf(`>`) ? {\n\t\t\t\t\t\tval: {\n\t\t\t\t\t\t\ttype: r.TYPE.tag,\n\t\t\t\t\t\t\tvalue: a,\n\t\t\t\t\t\t\tchildren: s,\n\t\t\t\t\t\t\tlocation: l(i, this.clonePosition())\n\t\t\t\t\t\t},\n\t\t\t\t\t\terr: null\n\t\t\t\t\t} : this.error(n.ErrorKind.INVALID_TAG, l(c, this.clonePosition()))) : this.error(n.ErrorKind.UNMATCHED_CLOSING_TAG, l(u, this.clonePosition()));\n\t\t\t\t} else return this.error(n.ErrorKind.UNCLOSED_TAG, l(i, this.clonePosition()));\n\t\t\t} else return this.error(n.ErrorKind.INVALID_TAG, l(i, this.clonePosition()));\n\t\t}, e.prototype.parseTagName = function() {\n\t\t\tvar e = this.offset();\n\t\t\tfor (this.bump(); !this.isEOF() && E(this.char());) this.bump();\n\t\t\treturn this.message.slice(e, this.offset());\n\t\t}, e.prototype.parseLiteral = function(e, t) {\n\t\t\tfor (var n = this.clonePosition(), i = ``;;) {\n\t\t\t\tvar a = this.tryParseQuote(t);\n\t\t\t\tif (a) {\n\t\t\t\t\ti += a;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tvar o = this.tryParseUnquoted(e, t);\n\t\t\t\tif (o) {\n\t\t\t\t\ti += o;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tvar s = this.tryParseLeftAngleBracket();\n\t\t\t\tif (s) {\n\t\t\t\t\ti += s;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tvar c = l(n, this.clonePosition());\n\t\t\treturn {\n\t\t\t\tval: {\n\t\t\t\t\ttype: r.TYPE.literal,\n\t\t\t\t\tvalue: i,\n\t\t\t\t\tlocation: c\n\t\t\t\t},\n\t\t\t\terr: null\n\t\t\t};\n\t\t}, e.prototype.tryParseLeftAngleBracket = function() {\n\t\t\treturn !this.isEOF() && this.char() === 60 && (this.ignoreTag || !re(this.peek() || 0)) ? (this.bump(), `<`) : null;\n\t\t}, e.prototype.tryParseQuote = function(e) {\n\t\t\tif (this.isEOF() || this.char() !== 39) return null;\n\t\t\tswitch (this.peek()) {\n\t\t\t\tcase 39: return this.bump(), this.bump(), `'`;\n\t\t\t\tcase 123:\n\t\t\t\tcase 60:\n\t\t\t\tcase 62:\n\t\t\t\tcase 125: break;\n\t\t\t\tcase 35:\n\t\t\t\t\tif (e === `plural` || e === `selectordinal`) break;\n\t\t\t\t\treturn null;\n\t\t\t\tdefault: return null;\n\t\t\t}\n\t\t\tthis.bump();\n\t\t\tvar t = [this.char()];\n\t\t\tfor (this.bump(); !this.isEOF();) {\n\t\t\t\tvar n = this.char();\n\t\t\t\tif (n === 39) if (this.peek() === 39) t.push(39), this.bump();\n\t\t\t\telse {\n\t\t\t\t\tthis.bump();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse t.push(n);\n\t\t\t\tthis.bump();\n\t\t\t}\n\t\t\treturn y.apply(void 0, t);\n\t\t}, e.prototype.tryParseUnquoted = function(e, t) {\n\t\t\tif (this.isEOF()) return null;\n\t\t\tvar n = this.char();\n\t\t\treturn n === 60 || n === 123 || n === 35 && (t === `plural` || t === `selectordinal`) || n === 125 && e > 0 ? null : (this.bump(), y(n));\n\t\t}, e.prototype.parseArgument = function(e, t) {\n\t\t\tvar i = this.clonePosition();\n\t\t\tif (this.bump(), this.bumpSpace(), this.isEOF()) return this.error(n.ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, l(i, this.clonePosition()));\n\t\t\tif (this.char() === 125) return this.bump(), this.error(n.ErrorKind.EMPTY_ARGUMENT, l(i, this.clonePosition()));\n\t\t\tvar a = this.parseIdentifierIfPossible().value;\n\t\t\tif (!a) return this.error(n.ErrorKind.MALFORMED_ARGUMENT, l(i, this.clonePosition()));\n\t\t\tif (this.bumpSpace(), this.isEOF()) return this.error(n.ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, l(i, this.clonePosition()));\n\t\t\tswitch (this.char()) {\n\t\t\t\tcase 125: return this.bump(), {\n\t\t\t\t\tval: {\n\t\t\t\t\t\ttype: r.TYPE.argument,\n\t\t\t\t\t\tvalue: a,\n\t\t\t\t\t\tlocation: l(i, this.clonePosition())\n\t\t\t\t\t},\n\t\t\t\t\terr: null\n\t\t\t\t};\n\t\t\t\tcase 44: return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(n.ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, l(i, this.clonePosition())) : this.parseArgumentOptions(e, t, a, i);\n\t\t\t\tdefault: return this.error(n.ErrorKind.MALFORMED_ARGUMENT, l(i, this.clonePosition()));\n\t\t\t}\n\t\t}, e.prototype.parseIdentifierIfPossible = function() {\n\t\t\tvar e = this.clonePosition(), t = this.offset(), n = C(this.message, t), r = t + n.length;\n\t\t\treturn this.bumpTo(r), {\n\t\t\t\tvalue: n,\n\t\t\t\tlocation: l(e, this.clonePosition())\n\t\t\t};\n\t\t}, e.prototype.parseArgumentOptions = function(e, i, s, c) {\n\t\t\tvar u = this.clonePosition(), d = this.parseIdentifierIfPossible().value, f = this.clonePosition();\n\t\t\tswitch (d) {\n\t\t\t\tcase ``: return this.error(n.ErrorKind.EXPECT_ARGUMENT_TYPE, l(u, f));\n\t\t\t\tcase `number`:\n\t\t\t\tcase `date`:\n\t\t\t\tcase `time`:\n\t\t\t\t\tthis.bumpSpace();\n\t\t\t\t\tvar p = null;\n\t\t\t\t\tif (this.bumpIf(`,`)) {\n\t\t\t\t\t\tthis.bumpSpace();\n\t\t\t\t\t\tvar m = this.clonePosition(), h = this.parseSimpleArgStyleIfPossible();\n\t\t\t\t\t\tif (h.err) return h;\n\t\t\t\t\t\tvar g = ne(h.val);\n\t\t\t\t\t\tif (g.length === 0) return this.error(n.ErrorKind.EXPECT_ARGUMENT_STYLE, l(this.clonePosition(), this.clonePosition()));\n\t\t\t\t\t\tp = {\n\t\t\t\t\t\t\tstyle: g,\n\t\t\t\t\t\t\tstyleLocation: l(m, this.clonePosition())\n\t\t\t\t\t\t};\n\t\t\t\t\t}\n\t\t\t\t\tvar _ = this.tryParseArgumentClose(c);\n\t\t\t\t\tif (_.err) return _;\n\t\t\t\t\tvar v = l(c, this.clonePosition());\n\t\t\t\t\tif (p && ee(p?.style, `::`, 0)) {\n\t\t\t\t\t\tvar y = te(p.style.slice(2));\n\t\t\t\t\t\tif (d === `number`) {\n\t\t\t\t\t\t\tvar h = this.parseNumberSkeletonFromString(y, p.styleLocation);\n\t\t\t\t\t\t\treturn h.err ? h : {\n\t\t\t\t\t\t\t\tval: {\n\t\t\t\t\t\t\t\t\ttype: r.TYPE.number,\n\t\t\t\t\t\t\t\t\tvalue: s,\n\t\t\t\t\t\t\t\t\tlocation: v,\n\t\t\t\t\t\t\t\t\tstyle: h.val\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\terr: null\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (y.length === 0) return this.error(n.ErrorKind.EXPECT_DATE_TIME_SKELETON, v);\n\t\t\t\t\t\t\tvar x = y;\n\t\t\t\t\t\t\tthis.locale && (x = (0, o.getBestPattern)(y, this.locale));\n\t\t\t\t\t\t\tvar g = {\n\t\t\t\t\t\t\t\ttype: r.SKELETON_TYPE.dateTime,\n\t\t\t\t\t\t\t\tpattern: x,\n\t\t\t\t\t\t\t\tlocation: p.styleLocation,\n\t\t\t\t\t\t\t\tparsedOptions: this.shouldParseSkeletons ? (0, a.parseDateTimeSkeleton)(x) : {}\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\tval: {\n\t\t\t\t\t\t\t\t\ttype: d === `date` ? r.TYPE.date : r.TYPE.time,\n\t\t\t\t\t\t\t\t\tvalue: s,\n\t\t\t\t\t\t\t\t\tlocation: v,\n\t\t\t\t\t\t\t\t\tstyle: g\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\terr: null\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\treturn {\n\t\t\t\t\t\tval: {\n\t\t\t\t\t\t\ttype: d === `number` ? r.TYPE.number : d === `date` ? r.TYPE.date : r.TYPE.time,\n\t\t\t\t\t\t\tvalue: s,\n\t\t\t\t\t\t\tlocation: v,\n\t\t\t\t\t\t\tstyle: p?.style ?? null\n\t\t\t\t\t\t},\n\t\t\t\t\t\terr: null\n\t\t\t\t\t};\n\t\t\t\tcase `plural`:\n\t\t\t\tcase `selectordinal`:\n\t\t\t\tcase `select`:\n\t\t\t\t\tvar S = this.clonePosition();\n\t\t\t\t\tif (this.bumpSpace(), !this.bumpIf(`,`)) return this.error(n.ErrorKind.EXPECT_SELECT_ARGUMENT_OPTIONS, l(S, t.__assign({}, S)));\n\t\t\t\t\tthis.bumpSpace();\n\t\t\t\t\tvar C = this.parseIdentifierIfPossible(), w = 0;\n\t\t\t\t\tif (d !== `select` && C.value === `offset`) {\n\t\t\t\t\t\tif (!this.bumpIf(`:`)) return this.error(n.ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, l(this.clonePosition(), this.clonePosition()));\n\t\t\t\t\t\tthis.bumpSpace();\n\t\t\t\t\t\tvar h = this.tryParseDecimalInteger(n.ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, n.ErrorKind.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);\n\t\t\t\t\t\tif (h.err) return h;\n\t\t\t\t\t\tthis.bumpSpace(), C = this.parseIdentifierIfPossible(), w = h.val;\n\t\t\t\t\t}\n\t\t\t\t\tvar T = this.tryParsePluralOrSelectOptions(e, d, i, C);\n\t\t\t\t\tif (T.err) return T;\n\t\t\t\t\tvar _ = this.tryParseArgumentClose(c);\n\t\t\t\t\tif (_.err) return _;\n\t\t\t\t\tvar re = l(c, this.clonePosition());\n\t\t\t\t\treturn d === `select` ? {\n\t\t\t\t\t\tval: {\n\t\t\t\t\t\t\ttype: r.TYPE.select,\n\t\t\t\t\t\t\tvalue: s,\n\t\t\t\t\t\t\toptions: b(T.val),\n\t\t\t\t\t\t\tlocation: re\n\t\t\t\t\t\t},\n\t\t\t\t\t\terr: null\n\t\t\t\t\t} : {\n\t\t\t\t\t\tval: {\n\t\t\t\t\t\t\ttype: r.TYPE.plural,\n\t\t\t\t\t\t\tvalue: s,\n\t\t\t\t\t\t\toptions: b(T.val),\n\t\t\t\t\t\t\toffset: w,\n\t\t\t\t\t\t\tpluralType: d === `plural` ? `cardinal` : `ordinal`,\n\t\t\t\t\t\t\tlocation: re\n\t\t\t\t\t\t},\n\t\t\t\t\t\terr: null\n\t\t\t\t\t};\n\t\t\t\tdefault: return this.error(n.ErrorKind.INVALID_ARGUMENT_TYPE, l(u, f));\n\t\t\t}\n\t\t}, e.prototype.tryParseArgumentClose = function(e) {\n\t\t\treturn this.isEOF() || this.char() !== 125 ? this.error(n.ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE, l(e, this.clonePosition())) : (this.bump(), {\n\t\t\t\tval: !0,\n\t\t\t\terr: null\n\t\t\t});\n\t\t}, e.prototype.parseSimpleArgStyleIfPossible = function() {\n\t\t\tfor (var e = 0, t = this.clonePosition(); !this.isEOF();) switch (this.char()) {\n\t\t\t\tcase 39:\n\t\t\t\t\tthis.bump();\n\t\t\t\t\tvar r = this.clonePosition();\n\t\t\t\t\tif (!this.bumpUntil(`'`)) return this.error(n.ErrorKind.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, l(r, this.clonePosition()));\n\t\t\t\t\tthis.bump();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 123:\n\t\t\t\t\te += 1, this.bump();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 125:\n\t\t\t\t\tif (e > 0) --e;\n\t\t\t\t\telse return {\n\t\t\t\t\t\tval: this.message.slice(t.offset, this.offset()),\n\t\t\t\t\t\terr: null\n\t\t\t\t\t};\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tthis.bump();\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\treturn {\n\t\t\t\tval: this.message.slice(t.offset, this.offset()),\n\t\t\t\terr: null\n\t\t\t};\n\t\t}, e.prototype.parseNumberSkeletonFromString = function(e, t) {\n\t\t\tvar i = [];\n\t\t\ttry {\n\t\t\t\ti = (0, a.parseNumberSkeletonFromString)(e);\n\t\t\t} catch {\n\t\t\t\treturn this.error(n.ErrorKind.INVALID_NUMBER_SKELETON, t);\n\t\t\t}\n\t\t\treturn {\n\t\t\t\tval: {\n\t\t\t\t\ttype: r.SKELETON_TYPE.number,\n\t\t\t\t\ttokens: i,\n\t\t\t\t\tlocation: t,\n\t\t\t\t\tparsedOptions: this.shouldParseSkeletons ? (0, a.parseNumberSkeleton)(i) : {}\n\t\t\t\t},\n\t\t\t\terr: null\n\t\t\t};\n\t\t}, e.prototype.tryParsePluralOrSelectOptions = function(e, t, r, i) {\n\t\t\tfor (var a, o = !1, s = [], c = /* @__PURE__ */ new Set(), u = i.value, d = i.location;;) {\n\t\t\t\tif (u.length === 0) {\n\t\t\t\t\tvar f = this.clonePosition();\n\t\t\t\t\tif (t !== `select` && this.bumpIf(`=`)) {\n\t\t\t\t\t\tvar p = this.tryParseDecimalInteger(n.ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR, n.ErrorKind.INVALID_PLURAL_ARGUMENT_SELECTOR);\n\t\t\t\t\t\tif (p.err) return p;\n\t\t\t\t\t\td = l(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());\n\t\t\t\t\t} else break;\n\t\t\t\t}\n\t\t\t\tif (c.has(u)) return this.error(t === `select` ? n.ErrorKind.DUPLICATE_SELECT_ARGUMENT_SELECTOR : n.ErrorKind.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, d);\n\t\t\t\tu === `other` && (o = !0), this.bumpSpace();\n\t\t\t\tvar m = this.clonePosition();\n\t\t\t\tif (!this.bumpIf(`{`)) return this.error(t === `select` ? n.ErrorKind.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : n.ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, l(this.clonePosition(), this.clonePosition()));\n\t\t\t\tvar h = this.parseMessage(e + 1, t, r);\n\t\t\t\tif (h.err) return h;\n\t\t\t\tvar g = this.tryParseArgumentClose(m);\n\t\t\t\tif (g.err) return g;\n\t\t\t\ts.push([u, {\n\t\t\t\t\tvalue: h.val,\n\t\t\t\t\tlocation: l(m, this.clonePosition())\n\t\t\t\t}]), c.add(u), this.bumpSpace(), a = this.parseIdentifierIfPossible(), u = a.value, d = a.location;\n\t\t\t}\n\t\t\treturn s.length === 0 ? this.error(t === `select` ? n.ErrorKind.EXPECT_SELECT_ARGUMENT_SELECTOR : n.ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR, l(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(n.ErrorKind.MISSING_OTHER_CLAUSE, l(this.clonePosition(), this.clonePosition())) : {\n\t\t\t\tval: s,\n\t\t\t\terr: null\n\t\t\t};\n\t\t}, e.prototype.tryParseDecimalInteger = function(e, t) {\n\t\t\tvar n = 1, r = this.clonePosition();\n\t\t\tthis.bumpIf(`+`) || this.bumpIf(`-`) && (n = -1);\n\t\t\tfor (var i = !1, a = 0; !this.isEOF();) {\n\t\t\t\tvar o = this.char();\n\t\t\t\tif (o >= 48 && o <= 57) i = !0, a = a * 10 + (o - 48), this.bump();\n\t\t\t\telse break;\n\t\t\t}\n\t\t\tvar s = l(r, this.clonePosition());\n\t\t\treturn i ? (a *= n, _(a) ? {\n\t\t\t\tval: a,\n\t\t\t\terr: null\n\t\t\t} : this.error(t, s)) : this.error(e, s);\n\t\t}, e.prototype.offset = function() {\n\t\t\treturn this.position.offset;\n\t\t}, e.prototype.isEOF = function() {\n\t\t\treturn this.offset() === this.message.length;\n\t\t}, e.prototype.clonePosition = function() {\n\t\t\treturn {\n\t\t\t\toffset: this.position.offset,\n\t\t\t\tline: this.position.line,\n\t\t\t\tcolumn: this.position.column\n\t\t\t};\n\t\t}, e.prototype.char = function() {\n\t\t\tvar e = this.position.offset;\n\t\t\tif (e >= this.message.length) throw Error(`out of bound`);\n\t\t\tvar t = x(this.message, e);\n\t\t\tif (t === void 0) throw Error(`Offset ${e} is at invalid UTF-16 code unit boundary`);\n\t\t\treturn t;\n\t\t}, e.prototype.error = function(e, t) {\n\t\t\treturn {\n\t\t\t\tval: null,\n\t\t\t\terr: {\n\t\t\t\t\tkind: e,\n\t\t\t\t\tmessage: this.message,\n\t\t\t\t\tlocation: t\n\t\t\t\t}\n\t\t\t};\n\t\t}, e.prototype.bump = function() {\n\t\t\tif (!this.isEOF()) {\n\t\t\t\tvar e = this.char();\n\t\t\t\te === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += e < 65536 ? 1 : 2);\n\t\t\t}\n\t\t}, e.prototype.bumpIf = function(e) {\n\t\t\tif (ee(this.message, e, this.offset())) {\n\t\t\t\tfor (var t = 0; t < e.length; t++) this.bump();\n\t\t\t\treturn !0;\n\t\t\t}\n\t\t\treturn !1;\n\t\t}, e.prototype.bumpUntil = function(e) {\n\t\t\tvar t = this.offset(), n = this.message.indexOf(e, t);\n\t\t\treturn n >= 0 ? (this.bumpTo(n), !0) : (this.bumpTo(this.message.length), !1);\n\t\t}, e.prototype.bumpTo = function(e) {\n\t\t\tif (this.offset() > e) throw Error(`targetOffset ${e} must be greater than or equal to the current offset ${this.offset()}`);\n\t\t\tfor (e = Math.min(e, this.message.length);;) {\n\t\t\t\tvar t = this.offset();\n\t\t\t\tif (t === e) break;\n\t\t\t\tif (t > e) throw Error(`targetOffset ${e} is at invalid UTF-16 code unit boundary`);\n\t\t\t\tif (this.bump(), this.isEOF()) break;\n\t\t\t}\n\t\t}, e.prototype.bumpSpace = function() {\n\t\t\tfor (; !this.isEOF() && ie(this.char());) this.bump();\n\t\t}, e.prototype.peek = function() {\n\t\t\tif (this.isEOF()) return null;\n\t\t\tvar e = this.char(), t = this.offset();\n\t\t\treturn this.message.charCodeAt(t + (e >= 65536 ? 2 : 1)) ?? null;\n\t\t}, e;\n\t}();\n\tfunction T(e) {\n\t\treturn e >= 97 && e <= 122 || e >= 65 && e <= 90;\n\t}\n\tfunction re(e) {\n\t\treturn T(e) || e === 47;\n\t}\n\tfunction E(e) {\n\t\treturn e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;\n\t}\n\tfunction ie(e) {\n\t\treturn e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;\n\t}\n\tfunction D(e) {\n\t\treturn e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;\n\t}\n})), bt = p(((e) => {\n\tObject.defineProperty(e, `__esModule`, { value: !0 }), e.hoistSelectors = s, e.isStructurallySame = l;\n\tvar t = (R(), g(M)), n = z();\n\tfunction r(e) {\n\t\treturn Array.isArray(e) ? t.__spreadArray([], e.map(r), !0) : typeof e == `object` && e ? Object.keys(e).reduce(function(t, n) {\n\t\t\treturn t[n] = r(e[n]), t;\n\t\t}, {}) : e;\n\t}\n\tfunction i(e, n, i) {\n\t\tvar a = r(n), o = a.options;\n\t\treturn a.options = Object.keys(o).reduce(function(n, r) {\n\t\t\treturn n[r] = { value: s(t.__spreadArray(t.__spreadArray(t.__spreadArray([], e.slice(0, i), !0), o[r].value, !0), e.slice(i + 1), !0)) }, n;\n\t\t}, {}), a;\n\t}\n\tfunction a(e) {\n\t\treturn (0, n.isPluralElement)(e) || (0, n.isSelectElement)(e);\n\t}\n\tfunction o(e) {\n\t\treturn !!e.find(function(e) {\n\t\t\treturn a(e) ? !0 : (0, n.isTagElement)(e) ? o(e.children) : !1;\n\t\t});\n\t}\n\tfunction s(e) {\n\t\tfor (var t = 0; t < e.length; t++) {\n\t\t\tvar r = e[t];\n\t\t\tif (a(r)) return [i(e, r, t)];\n\t\t\tif ((0, n.isTagElement)(r) && o([r])) throw Error(`Cannot hoist plural/select within a tag element. Please put the tag element inside each plural/select option`);\n\t\t}\n\t\treturn e;\n\t}\n\tfunction c(e, t) {\n\t\tt === void 0 && (t = /* @__PURE__ */ new Map()), e.forEach(function(e) {\n\t\t\tif ((0, n.isArgumentElement)(e) || (0, n.isDateElement)(e) || (0, n.isTimeElement)(e) || (0, n.isNumberElement)(e)) {\n\t\t\t\tif (e.value in t && t.get(e.value) !== e.type) throw Error(`Variable ${e.value} has conflicting types`);\n\t\t\t\tt.set(e.value, e.type);\n\t\t\t}\n\t\t\t((0, n.isPluralElement)(e) || (0, n.isSelectElement)(e)) && (t.set(e.value, e.type), Object.keys(e.options).forEach(function(n) {\n\t\t\t\tc(e.options[n].value, t);\n\t\t\t})), (0, n.isTagElement)(e) && (t.set(e.value, e.type), c(e.children, t));\n\t\t});\n\t}\n\tfunction l(e, t) {\n\t\tvar r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();\n\t\treturn c(e, r), c(t, i), r.size === i.size ? Array.from(r.entries()).reduce(function(e, t) {\n\t\t\tvar r = t[0], a = t[1];\n\t\t\tif (!e.success) return e;\n\t\t\tvar o = i.get(r);\n\t\t\treturn o == null ? {\n\t\t\t\tsuccess: !1,\n\t\t\t\terror: Error(`Missing variable ${r} in message`)\n\t\t\t} : o === a ? e : {\n\t\t\t\tsuccess: !1,\n\t\t\t\terror: Error(`Variable ${r} has conflicting types: ${n.TYPE[a]} vs ${n.TYPE[o]}`)\n\t\t\t};\n\t\t}, { success: !0 }) : {\n\t\t\tsuccess: !1,\n\t\t\terror: Error(`Different number of variables: [${Array.from(r.keys()).join(`, `)}] vs [${Array.from(i.keys()).join(`, `)}]`)\n\t\t};\n\t}\n})), xt = p(((e) => {\n\tObject.defineProperty(e, `__esModule`, { value: !0 }), e.isStructurallySame = e._Parser = void 0, e.parse = o;\n\tvar t = (R(), g(M)), n = dt(), r = yt(), i = z();\n\tfunction a(e) {\n\t\te.forEach(function(e) {\n\t\t\tif (delete e.location, (0, i.isSelectElement)(e) || (0, i.isPluralElement)(e)) for (var t in e.options) delete e.options[t].location, a(e.options[t].value);\n\t\t\telse (0, i.isNumberElement)(e) && (0, i.isNumberSkeleton)(e.style) || ((0, i.isDateElement)(e) || (0, i.isTimeElement)(e)) && (0, i.isDateTimeSkeleton)(e.style) ? delete e.style.location : (0, i.isTagElement)(e) && a(e.children);\n\t\t});\n\t}\n\tfunction o(e, i) {\n\t\ti === void 0 && (i = {}), i = t.__assign({\n\t\t\tshouldParseSkeletons: !0,\n\t\t\trequiresOtherClause: !0\n\t\t}, i);\n\t\tvar o = new r.Parser(e, i).parse();\n\t\tif (o.err) {\n\t\t\tvar s = SyntaxError(n.ErrorKind[o.err.kind]);\n\t\t\tthrow s.location = o.err.location, s.originalMessage = o.err.message, s;\n\t\t}\n\t\treturn i?.captureLocation || a(o.val), o.val;\n\t}\n\tt.__exportStar(z(), e), e._Parser = r.Parser;\n\tvar s = bt();\n\tObject.defineProperty(e, `isStructurallySame`, {\n\t\tenumerable: !0,\n\t\tget: function() {\n\t\t\treturn s.isStructurallySame;\n\t\t}\n\t});\n})), St = p(((e) => {\n\tObject.defineProperty(e, `__esModule`, { value: !0 }), e.printAST = r;\n\tvar t = (R(), g(M)), n = z();\n\tfunction r(e) {\n\t\treturn i(e, !1);\n\t}\n\tfunction i(e, t) {\n\t\treturn e.map(function(r, i) {\n\t\t\tif ((0, n.isLiteralElement)(r)) return s(r, t, i === 0, i === e.length - 1);\n\t\t\tif ((0, n.isArgumentElement)(r)) return c(r);\n\t\t\tif ((0, n.isDateElement)(r) || (0, n.isTimeElement)(r) || (0, n.isNumberElement)(r)) return l(r);\n\t\t\tif ((0, n.isPluralElement)(r)) return m(r);\n\t\t\tif ((0, n.isSelectElement)(r)) return p(r);\n\t\t\tif ((0, n.isPoundElement)(r)) return `#`;\n\t\t\tif ((0, n.isTagElement)(r)) return a(r);\n\t\t}).join(``);\n\t}\n\tfunction a(e) {\n\t\treturn `<${e.value}>${r(e.children)}</${e.value}>`;\n\t}\n\tfunction o(e) {\n\t\treturn e.replace(/([{}](?:[\\s\\S]*[{}])?)/, `'$1'`);\n\t}\n\tfunction s(e, t, n, r) {\n\t\tvar i = e.value;\n\t\treturn !n && i[0] === `'` && (i = `''${i.slice(1)}`), !r && i[i.length - 1] === `'` && (i = `${i.slice(0, i.length - 1)}''`), i = o(i), t ? i.replace(`#`, `'#'`) : i;\n\t}\n\tfunction c(e) {\n\t\treturn `{${e.value}}`;\n\t}\n\tfunction l(e) {\n\t\treturn `{${e.value}, ${n.TYPE[e.type]}${e.style ? `, ${d(e.style)}` : ``}}`;\n\t}\n\tfunction u(e) {\n\t\tvar t = e.stem, n = e.options;\n\t\treturn n.length === 0 ? t : `${t}${n.map(function(e) {\n\t\t\treturn `/${e}`;\n\t\t}).join(``)}`;\n\t}\n\tfunction d(e) {\n\t\treturn typeof e == `string` ? o(e) : e.type === n.SKELETON_TYPE.dateTime ? `::${f(e)}` : `::${e.tokens.map(u).join(` `)}`;\n\t}\n\tfunction f(e) {\n\t\treturn e.pattern;\n\t}\n\tfunction p(e) {\n\t\treturn `{${[\n\t\t\te.value,\n\t\t\t`select`,\n\t\t\tObject.keys(e.options).map(function(t) {\n\t\t\t\treturn `${t}{${i(e.options[t].value, !1)}}`;\n\t\t\t}).join(` `)\n\t\t].join(`,`)}}`;\n\t}\n\tfunction m(e) {\n\t\tvar n = e.pluralType === `cardinal` ? `plural` : `selectordinal`;\n\t\treturn `{${[\n\t\t\te.value,\n\t\t\tn,\n\t\t\tt.__spreadArray([e.offset ? `offset:${e.offset}` : ``], Object.keys(e.options).map(function(t) {\n\t\t\t\treturn `${t}{${i(e.options[t].value, !0)}}`;\n\t\t\t}), !0).filter(Boolean).join(` `)\n\t\t].join(`,`)}}`;\n\t}\n})), B = xt(), V = z(), Ct = St();\nconst wt = [\n\t`singular`,\n\t`plural`,\n\t`dual`,\n\t`zero`,\n\t`one`,\n\t`two`,\n\t`few`,\n\t`many`,\n\t`other`\n];\nfunction Tt(e) {\n\treturn wt.includes(e);\n}\nfunction Et(e, t = wt, n = [`en`]) {\n\tlet r = Me(n).select(e), i = Math.abs(e);\n\tif (i === 0 && t.includes(`zero`)) return `zero`;\n\tif (i === 1) {\n\t\tif (t.includes(`singular`)) return `singular`;\n\t\tif (t.includes(`one`)) return `one`;\n\t}\n\tif (r === `one` && t.includes(`singular`)) return `singular`;\n\tif (i === 2) {\n\t\tif (t.includes(`dual`)) return `dual`;\n\t\tif (t.includes(`two`)) return `two`;\n\t}\n\treturn r === `two` && t.includes(`dual`) ? `dual` : t.includes(r) ? r : r === `two` && t.includes(`dual`) ? `dual` : r === `two` && t.includes(`plural`) ? `plural` : r === `two` && t.includes(`other`) ? `other` : r === `few` && t.includes(`plural`) ? `plural` : r === `few` && t.includes(`other`) ? `other` : r === `many` && t.includes(`plural`) ? `plural` : r === `many` && t.includes(`other`) ? `other` : r === `other` && t.includes(`plural`) ? `plural` : ``;\n}\nconst Dt = {\n\tvariable: `v`,\n\tnumber: `n`,\n\tdatetime: `d`,\n\tcurrency: `c`,\n\t\"relative-time\": `rt`\n};\nfunction Ot(e) {\n\treturn Dt[e];\n}\nfunction H({ icuString: e, shouldVisit: t, visitor: n, options: { recurseIntoVisited: r = !0, ...i } }) {\n\tlet a = (0, B.parse)(e, i);\n\treturn o(a), a;\n\tfunction o(e) {\n\t\te.map(s);\n\t}\n\tfunction s(e) {\n\t\tlet i = !1;\n\t\tt(e) && (n(e), i = !0), (!i || r) && (e.type === B.TYPE.select || e.type === B.TYPE.plural ? Object.values(e.options).map((e) => e.value).map(o) : e.type === B.TYPE.tag && o(e.children));\n\t}\n}\nconst U = `_gt_`, kt = RegExp(`^${U}\\\\d+$`), At = RegExp(`^${U}$`);\nfunction jt(e) {\n\treturn e.type === V.TYPE.select && kt.test(e.value) && !!e.options.other && (e.options.other.value.length === 0 || e.options.other.value.length > 0 && e.options.other.value[0]?.type === V.TYPE.literal);\n}\nfunction Mt(e) {\n\treturn e.type === V.TYPE.select && At.test(e.value) && !!e.options.other && (e.options.other.value.length === 0 || e.options.other.value.length > 0 && e.options.other.value[0]?.type === V.TYPE.literal);\n}\nfunction Nt(e) {\n\tif (!e.includes(`_gt_`)) return e;\n\tlet t = [];\n\tfunction n(e) {\n\t\tt.push({\n\t\t\tstart: e.location?.start.offset ?? 0,\n\t\t\tend: e.location?.end.offset ?? 0,\n\t\t\tvalue: e.options.other.value.length > 0 ? e.options.other.value[0].value : ``\n\t\t});\n\t}\n\tH({\n\t\ticuString: e,\n\t\tshouldVisit: Mt,\n\t\tvisitor: n,\n\t\toptions: {\n\t\t\trecurseIntoVisited: !1,\n\t\t\tcaptureLocation: !0\n\t\t}\n\t});\n\tlet r = 0, i = [];\n\tfor (let n = 0; n < t.length; n++) i.push(e.slice(r, t[n].start)), i.push(t[n].value), r = t[n].end;\n\treturn r < e.length && i.push(e.slice(r)), i.join(``);\n}\nfunction Pt(e) {\n\tlet t = e.replace(/'/g, `''`), n = /[{}<>]/, r = t.search(n);\n\tif (r === -1) return t;\n\tlet i = -1;\n\tfor (let e = t.length - 1; e >= 0; e--) if (n.test(t[e])) {\n\t\ti = e;\n\t\tbreak;\n\t}\n\treturn t = t.slice(0, r) + `'` + t.slice(r, i + 1) + `'` + t.slice(i + 1), t;\n}\nfunction Ft(e, t) {\n\tlet n = ` other {${Pt(String(e ?? ``))}}`, r = ``;\n\treturn t?.$name && (r = ` _gt_var_name {${Pt(t.$name)}}`), `{${U}, select,${n}${r}}`;\n}\nfunction It(e) {\n\treturn e;\n}\nconst Lt = It;\nfunction Rt(e) {\n\tif (!e.includes(`_gt_`)) return e;\n\tlet t = [];\n\tfunction n(e) {\n\t\tt.push({\n\t\t\tstart: e.location?.start.offset ?? 0,\n\t\t\tend: e.location?.end.offset ?? 0,\n\t\t\totherStart: e.options.other.location?.start.offset ?? 0,\n\t\t\totherEnd: e.options.other.location?.end.offset ?? 0\n\t\t});\n\t}\n\tH({\n\t\ticuString: e,\n\t\tshouldVisit: Mt,\n\t\tvisitor: n,\n\t\toptions: {\n\t\t\trecurseIntoVisited: !1,\n\t\t\tcaptureLocation: !0\n\t\t}\n\t});\n\tlet r = [], i = 0;\n\tfor (let n = 0; n < t.length; n++) {\n\t\tlet { start: a, end: o, otherStart: s, otherEnd: c } = t[n];\n\t\tr.push(e.slice(i, a)), r.push(e.slice(a, a + 4 + 1)), r.push(String(n + 1)), r.push(e.slice(a + 4 + 1, s)), r.push(`{}`), r.push(e.slice(c, o)), i = o;\n\t}\n\treturn r.push(e.slice(i, e.length)), r.join(``);\n}\nfunction zt(e) {\n\tif (!e.includes(`_gt_`)) return {};\n\tlet t = 1, n = {};\n\tfunction r(e) {\n\t\tn[e.value + t] = e.options.other.value.length ? e.options.other.value[0]?.value : ``, t += 1;\n\t}\n\treturn H({\n\t\ticuString: e,\n\t\tshouldVisit: Mt,\n\t\tvisitor: r,\n\t\toptions: { recurseIntoVisited: !1 }\n\t}), n;\n}\nfunction Bt(e) {\n\tif (!e.includes(`_gt_`)) return e;\n\tfunction t(e) {\n\t\te.type = V.TYPE.argument, Reflect.deleteProperty(e, `options`);\n\t}\n\treturn (0, Ct.printAST)(H({\n\t\ticuString: e,\n\t\tshouldVisit: jt,\n\t\tvisitor: t,\n\t\toptions: { recurseIntoVisited: !1 }\n\t}));\n}\nfunction Vt(e, n = 0) {\n\tlet r = n, a = (e) => {\n\t\tlet { type: t, props: n } = e;\n\t\tr += 1;\n\t\tlet i = {\n\t\t\tid: r,\n\t\t\tinjectionType: `manual`\n\t\t}, a;\n\t\ttry {\n\t\t\ta = typeof t == `function` ? t._gtt : void 0;\n\t\t} catch {}\n\t\tif (a) {\n\t\t\tlet e = a.split(`-`);\n\t\t\tif ((e[1] === `automatic` || e[2] === `automatic`) && (i.injectionType = `automatic`), e[0] === `translate` && (e[0] = `fragment`), e[0] === `variable` && (i.variableType = e?.[1] || `variable`), e[0] === `plural`) {\n\t\t\t\tlet e = Object.entries(n).reduce((e, [t, n]) => (Tt(t) && (e[t] = Vt(n, r)), e), {});\n\t\t\t\tObject.keys(e).length && (i.branches = e);\n\t\t\t}\n\t\t\tif (e[0] === `branch`) {\n\t\t\t\tlet { children: e, branch: t, ...a } = n, o = Object.fromEntries(Object.entries(a).filter(([e]) => !e.startsWith(`data-`))), s = Object.entries(o).reduce((e, [t, n]) => (e[t] = Vt(n, r), e), {});\n\t\t\t\tObject.keys(s).length && (i.branches = s);\n\t\t\t}\n\t\t\ti.transformation = e[0];\n\t\t}\n\t\treturn i;\n\t};\n\tfunction o(e) {\n\t\tlet { props: n } = e, r = a(e), i = {\n\t\t\t...n,\n\t\t\t\"data-_gt\": r\n\t\t};\n\t\treturn n.children && !r.variableType && (i.children = c(n.children)), e.type === t.Fragment && (i[`data-_gt`].transformation = `fragment`), t.cloneElement(e, i);\n\t}\n\tfunction s(e) {\n\t\treturn isValidElement(e) ? o(e) : e;\n\t}\n\tfunction c(e) {\n\t\treturn Array.isArray(e) ? t.Children.map(e, s) : s(e);\n\t}\n\treturn c(e);\n}\nconst Ht = `@generaltranslation/react-core`;\nfunction W(e) {\n\treturn S({\n\t\tsource: Ht,\n\t\t...e\n\t});\n}\nW({\n\tseverity: `Error`,\n\twhatHappened: `Runtime translation needs a project ID`,\n\tfix: `Add projectId to your <GTProvider> configuration or set GT_PROJECT_ID in your environment`,\n\tdocsUrl: `https://generaltranslation.com/dashboard`\n}), W({\n\tseverity: `Error`,\n\twhatHappened: `Production environments cannot use a development API key`,\n\tfix: `Replace it with a production API key before deploying`\n}), W({\n\tseverity: `Error`,\n\twhatHappened: `The API key is available to client-side production code`,\n\tfix: `Move translation credentials to a server-only environment before deploying`\n}), W({\n\tseverity: `Error`,\n\twhatHappened: `Runtime translation is not configured`,\n\tfix: `Add projectId and devApiKey to your environment, or pass them to <GTProvider> directly`\n}), W({\n\tseverity: `Error`,\n\twhatHappened: `Runtime translations could not be loaded`,\n\twayOut: `Source content will render as a fallback`,\n\tfix: `Check your runtime translation configuration and try again`\n}), W({\n\tseverity: `Error`,\n\twhatHappened: `Runtime translation could not be completed`\n});\nconst Ut = (e) => W({\n\tseverity: `Error`,\n\twhatHappened: `Dictionary subtree \"${e}\" could not be found`,\n\tfix: `Check that the id matches your dictionary structure`\n}), Wt = () => W({\n\tseverity: `Error`,\n\twhatHappened: `A dictionary entry cannot be injected as a subtree`,\n\tfix: `Pass a dictionary object instead`\n}), Gt = () => W({\n\tseverity: `Error`,\n\twhatHappened: `A dictionary entry cannot be merged into another dictionary entry`,\n\tfix: `Pass a dictionary subtree instead`\n});\nW({\n\tseverity: `Warning`,\n\twhatHappened: `Runtime translation needs a project ID`,\n\tfix: `Add projectId to <GTProvider> or set GT_PROJECT_ID in your environment`,\n\tdocsUrl: `https://generaltranslation.com/dashboard`\n}), W({\n\tseverity: `Warning`,\n\twhatHappened: `Runtime translation needs a development API key`,\n\tfix: `Find your development API key at generaltranslation.com/dashboard, or set runtimeUrl to an empty string to disable runtime translation`\n}), W({\n\tseverity: `Warning`,\n\twhatHappened: `Runtime translation timed out`\n}), W({\n\tseverity: `Warning`,\n\twhatHappened: `No dictionary was found`,\n\tfix: `Pass a dictionary to <GTProvider> or configure a dictionary loader before rendering translations`\n});\n`${Ht}`;\nconst Xt = {\n\tvariable: `value`,\n\tnumber: `n`,\n\tdatetime: `date`,\n\tcurrency: `cost`,\n\t\"relative-time\": `time`\n};\nfunction Zt(e = {}, t) {\n\treturn typeof e.name == `string` ? e.name : `_gt_${Xt[t] || `value`}_${e[`data-_gt`]?.id}`;\n}\nfunction Qt(e) {\n\treturn t.isValidElement(e);\n}\nconst $t = {\n\tpl: `placeholder`,\n\tti: `title`,\n\talt: `alt`,\n\tarl: `aria-label`,\n\tarb: `aria-labelledby`,\n\tard: `aria-describedby`\n}, en = (e) => {\n\tif (!e) return ``;\n\tlet { type: t, props: n } = e;\n\tif (t && typeof t == `function`) {\n\t\tif (`displayName` in t && typeof t.displayName == `string` && t.displayName) return t.displayName;\n\t\tif (`name` in t && typeof t.name == `string` && t.name) return t.name;\n\t}\n\treturn t && typeof t == `string` ? t : n.href ? `a` : n[`data-_gt`]?.id ? `C${n[`data-_gt`].id}` : `function`;\n}, tn = (e, t, n) => {\n\tlet r = Object.entries($t).reduce((e, [n, r]) => {\n\t\tlet i = t[r];\n\t\treturn typeof i == `string` && (e[n] = i), e;\n\t}, {});\n\tif (e === `plural` && n) {\n\t\tlet e = {};\n\t\tObject.entries(n).forEach(([t, n]) => {\n\t\t\te[t] = q(n);\n\t\t}), r = {\n\t\t\t...r,\n\t\t\tb: e,\n\t\t\tt: `p`\n\t\t};\n\t}\n\tif (e === `branch` && n) {\n\t\tlet e = {};\n\t\tObject.entries(n).forEach(([t, n]) => {\n\t\t\te[t] = q(n);\n\t\t}), r = {\n\t\t\t...r,\n\t\t\tb: e,\n\t\t\tt: `b`\n\t\t};\n\t}\n\treturn Object.keys(r).length ? r : void 0;\n}, nn = (e) => {\n\tlet { props: t } = e, n = { t: en(e) };\n\tif (t[`data-_gt`]) {\n\t\tlet e = t[`data-_gt`], r = e.transformation;\n\t\tif (r === `variable`) {\n\t\t\tlet n = e.variableType || `variable`, r = Zt(t, n), i = Ot(n);\n\t\t\treturn {\n\t\t\t\ti: e.id,\n\t\t\t\tk: r,\n\t\t\t\tv: i\n\t\t\t};\n\t\t}\n\t\tn.i = e.id, n.d = tn(r, t, e.branches);\n\t\tlet i = Object.entries($t).reduce((e, [n, r]) => {\n\t\t\tlet i = t[r];\n\t\t\treturn typeof i == `string` && (e[n] = i), e;\n\t\t}, {});\n\t\tif (r === `plural` && e.branches) {\n\t\t\tlet t = {};\n\t\t\tObject.entries(e.branches).forEach(([e, n]) => {\n\t\t\t\tt[e] = q(n);\n\t\t\t}), i = {\n\t\t\t\t...i,\n\t\t\t\tb: t,\n\t\t\t\tt: `p`\n\t\t\t};\n\t\t}\n\t\tif (r === `branch` && e.branches) {\n\t\t\tlet t = {};\n\t\t\tObject.entries(e.branches).forEach(([e, n]) => {\n\t\t\t\tt[e] = q(n);\n\t\t\t}), i = {\n\t\t\t\t...i,\n\t\t\t\tb: t,\n\t\t\t\tt: `b`\n\t\t\t};\n\t\t}\n\t\tn.d = Object.keys(i).length ? i : void 0;\n\t}\n\treturn t.children && (n.c = q(t.children)), n;\n}, rn = (e) => Qt(e) ? nn(e) : typeof e == `number` ? e.toString() : e;\nfunction q(e) {\n\treturn Array.isArray(e) ? e.map(rn) : rn(e);\n}\nfunction J(e, t, n) {\n\tlet r = ``, i = null;\n\treturn typeof e == `number` && !i && n && (r = Et(e, Object.keys(n).filter(Tt), t)), r && !i && (i = n[r]), i;\n}\nfunction an(e) {\n\tif (typeof e == `string`) return !0;\n\tif (Array.isArray(e)) {\n\t\tif (typeof e?.[0] != `string`) return !1;\n\t\tlet t = e?.[1];\n\t\tif (t === void 0 || t && typeof t == `object`) return !0;\n\t}\n\treturn !1;\n}\nfunction Y(e, t) {\n\tlet n = e, r = t.split(`.`);\n\tfor (let e of r) {\n\t\tif (typeof n != `object` && !Array.isArray(n)) return;\n\t\tn = _(n, e);\n\t}\n\treturn n;\n}\nfunction X(e) {\n\tif (Array.isArray(e)) {\n\t\tif (e.length === 1) return { entry: e[0] };\n\t\tif (e.length === 2) return {\n\t\t\tentry: e[0],\n\t\t\tmetadata: e[1]\n\t\t};\n\t}\n\treturn { entry: e };\n}\nfunction on(e) {\n\treturn typeof e == `object` && !!e && `data-_gt` in e && typeof e[`data-_gt`] == `object` && !!e[`data-_gt`] && `transformation` in e[`data-_gt`] && e[`data-_gt`]?.transformation === `variable`;\n}\nfunction sn(e) {\n\tlet t = e[`data-_gt`]?.variableType || `variable`;\n\treturn {\n\t\tvariableName: Zt(e, t),\n\t\tvariableType: Ot(t),\n\t\tinjectionType: e[`data-_gt`]?.injectionType || `manual`,\n\t\tvariableValue: (() => {\n\t\t\tif (e.value !== void 0) return e.value;\n\t\t\tif (e.date !== void 0) return e.date;\n\t\t\tif (e[`data-_gt-unformatted-value`] !== void 0) return e[`data-_gt-unformatted-value`];\n\t\t\tif (e.children !== void 0) return e.children;\n\t\t})(),\n\t\tvariableOptions: (() => {\n\t\t\tlet t = {\n\t\t\t\t...e.currency !== void 0 && { currency: e.currency },\n\t\t\t\t...e.unit !== void 0 && { unit: e.unit },\n\t\t\t\t...e.baseDate !== void 0 && { baseDate: e.baseDate },\n\t\t\t\t...e.options !== void 0 && e.options\n\t\t\t};\n\t\t\treturn Object.keys(t).length ? t : typeof e[`data-_gt-variable-options`] == `string` ? JSON.parse(e[`data-_gt-variable-options`]) : e[`data-_gt-variable-options`] || void 0;\n\t\t})()\n\t};\n}\nfunction cn(e) {\n\tlet t = e;\n\tif (t && typeof t == `object` && typeof t.k == `string`) {\n\t\tlet e = Object.keys(t);\n\t\tif (e.length === 1 || e.length === 2 && (typeof t.i == `number` || typeof t.v == `string`) || e.length === 3 && typeof t.v == `string` && typeof t.i == `number`) return !0;\n\t}\n\treturn !1;\n}\nfunction ln(e) {\n\treturn e && e.props && e.props[`data-_gt`] ? e.props[`data-_gt`] : null;\n}\nfunction Z({ children: e, defaultLocale: n = `en`, renderVariable: r }) {\n\tlet i = (e) => {\n\t\tlet i = ln(e);\n\t\tif (on(e.props)) {\n\t\t\tlet { variableType: t, variableValue: i, variableOptions: a, injectionType: o } = sn(e.props);\n\t\t\treturn r({\n\t\t\t\tvariableType: t,\n\t\t\t\tvariableValue: i,\n\t\t\t\tvariableOptions: a,\n\t\t\t\tlocales: [n],\n\t\t\t\tinjectionType: o\n\t\t\t});\n\t\t}\n\t\tif (i?.transformation === `plural`) {\n\t\t\tlet t = i.branches || {};\n\t\t\tif (typeof e.props.n != `number`) return e.props.children == null ? null : o(e.props.children);\n\t\t\tlet r = J(e.props.n, [n], t);\n\t\t\treturn o(r === null ? e.props.children : r);\n\t\t}\n\t\tif (i?.transformation === `branch`) {\n\t\t\tlet { children: t, branch: n } = e.props, r = i.branches || {}, a = n == null || n === `` ? void 0 : n.toString();\n\t\t\treturn o(a && r[a] !== void 0 ? r[a] : t);\n\t\t}\n\t\treturn i?.transformation === `fragment` ? t.createElement(t.Fragment, {\n\t\t\tkey: e.props.key,\n\t\t\tchildren: o(e.props.children)\n\t\t}) : e.props.children ? t.cloneElement(e, {\n\t\t\t...e.props,\n\t\t\t\"data-_gt\": void 0,\n\t\t\tchildren: o(e.props.children)\n\t\t}) : t.cloneElement(e, {\n\t\t\t...e.props,\n\t\t\t\"data-_gt\": void 0\n\t\t});\n\t}, a = (e) => t.isValidElement(e) ? i(e) : e, o = (e) => Array.isArray(e) ? t.Children.map(e, a) : a(e);\n\treturn o(e);\n}\nfunction un({ sourceElement: e, targetElement: n, locales: r = [`en`], renderVariable: i }) {\n\tlet { props: a } = e, o = a[`data-_gt`], s = o?.transformation, c = n.d, l = {};\n\tif (c && Object.entries($t).forEach(([e, t]) => {\n\t\tc[e] && (l[t] = c[e]);\n\t}), s === `plural`) {\n\t\tlet t = e.props.n;\n\t\tif (typeof t != `number`) return Z({\n\t\t\tchildren: e,\n\t\t\tdefaultLocale: r[0],\n\t\t\trenderVariable: i\n\t\t});\n\t\tlet a = J(t, r, o.branches || {}), s = a === null ? e.props.children : a, c = J(t, r, n.d?.b || {});\n\t\treturn Q({\n\t\t\tsource: s,\n\t\t\ttarget: c === null ? n.c : c,\n\t\t\tlocales: r,\n\t\t\trenderVariable: i\n\t\t});\n\t}\n\tif (s === `branch`) {\n\t\tlet { branch: e, children: t } = a, s = e == null || e === `` ? void 0 : e.toString(), c = o.branches || {}, l = n.d?.b || {};\n\t\treturn Q({\n\t\t\tsource: s && c[s] !== void 0 ? c[s] : t,\n\t\t\ttarget: s && l[s] !== void 0 ? l[s] : n.c,\n\t\t\tlocales: r,\n\t\t\trenderVariable: i\n\t\t});\n\t}\n\treturn s === `fragment` && n.c ? t.createElement(t.Fragment, {\n\t\tkey: e.props.key,\n\t\tchildren: Q({\n\t\t\tsource: a.children,\n\t\t\ttarget: n.c,\n\t\t\tlocales: r,\n\t\t\trenderVariable: i\n\t\t})\n\t}) : a?.children && n?.c ? t.cloneElement(e, {\n\t\t...a,\n\t\t...l,\n\t\t\"data-_gt\": void 0,\n\t\tchildren: Q({\n\t\t\tsource: a.children,\n\t\t\ttarget: n.c,\n\t\t\tlocales: r,\n\t\t\trenderVariable: i\n\t\t})\n\t}) : Z({\n\t\tchildren: e,\n\t\tdefaultLocale: r[0],\n\t\trenderVariable: i\n\t});\n}\nfunction Q({ source: e, target: n, locales: r = [`en`], renderVariable: i }) {\n\tif (n == null && e) return Z({\n\t\tchildren: e,\n\t\tdefaultLocale: r[0],\n\t\trenderVariable: i\n\t});\n\tif (typeof n == `string`) return n;\n\tif (Array.isArray(n) && !Array.isArray(e) && e && (e = [e]), Array.isArray(e) && Array.isArray(n)) {\n\t\tlet a = {}, o = {}, c = {}, l = e.filter((e) => {\n\t\t\tif (t.isValidElement(e)) if (on(e.props)) {\n\t\t\t\tlet { variableName: t, variableValue: n, variableOptions: r, injectionType: i } = sn(e.props);\n\t\t\t\ta[t] = n, o[t] = r, c[t] = i;\n\t\t\t} else return !0;\n\t\t\treturn !1;\n\t\t}), u = (e) => l.find((t) => {\n\t\t\tlet n = ln(t);\n\t\t\treturn n?.id === void 0 ? !1 : n.id === e.i;\n\t\t}) || l.shift();\n\t\treturn n.map((e, n) => {\n\t\t\tif (typeof e == `string`) return jsx(t.Fragment, { children: e }, `string_${n}`);\n\t\t\tif (E(e)) return jsx(t.Fragment, { children: i({\n\t\t\t\tvariableType: e.v || `v`,\n\t\t\t\tvariableValue: a[e.k],\n\t\t\t\tvariableOptions: o[e.k],\n\t\t\t\tlocales: r,\n\t\t\t\tinjectionType: c[e.k] || `manual`\n\t\t\t}) }, `var_${n}`);\n\t\t\tlet l = u(e);\n\t\t\treturn l ? jsx(t.Fragment, { children: un({\n\t\t\t\tsourceElement: l,\n\t\t\t\ttargetElement: e,\n\t\t\t\tlocales: r,\n\t\t\t\trenderVariable: i\n\t\t\t}) }, `element_${n}`) : null;\n\t\t});\n\t}\n\tif (n && typeof n == `object` && !Array.isArray(n)) {\n\t\tlet a = E(n) ? `variable` : `element`;\n\t\tif (t.isValidElement(e)) {\n\t\t\tif (a === `element`) return un({\n\t\t\t\tsourceElement: e,\n\t\t\t\ttargetElement: n,\n\t\t\t\tlocales: r,\n\t\t\t\trenderVariable: i\n\t\t\t});\n\t\t\tif (on(e.props)) {\n\t\t\t\tlet { variableValue: t, variableOptions: n, variableType: a, injectionType: o } = sn(e.props);\n\t\t\t\treturn i({\n\t\t\t\t\tvariableType: a,\n\t\t\t\t\tvariableValue: t,\n\t\t\t\t\tvariableOptions: n,\n\t\t\t\t\tlocales: r,\n\t\t\t\t\tinjectionType: o\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t}\n\treturn Z({\n\t\tchildren: e,\n\t\tdefaultLocale: r[0],\n\t\trenderVariable: i\n\t});\n}\nconst dn = (e = `production`) => ({\n\tmethod: `default`,\n\ttimeout: e === `development` ? 8e3 : 12e3\n});\nfunction fn() {\n\treturn ``;\n}\nconst pn = `generaltranslation.locale`, mn = `generaltranslation.region`;\nfunction $(e) {\n\treturn e === void 0 ? !1 : typeof e == `string` ? !0 : Array.isArray(e) ? !(e.length !== 1 && e.length !== 2 || typeof e[0] != `string` || e.length === 2 && (typeof e[1] != `object` || e[1] === null || !(`$context` in e[1]) && !(`$maxChars` in e[1]) && !(`$_hash` in e[1]))) : !1;\n}\nconst gn = (e) => typeof e == `string` || Array.isArray(e), _n = (e) => typeof e == `object` && !!e && !Array.isArray(e);\nfunction vn(e, t) {\n\tif (Array.isArray(e)) return e.map((e, n) => $(e) ? t[n] : vn(e, t[n]));\n\tlet n = {\n\t\t...Object.fromEntries(Object.entries(e).filter(([, e]) => gn(e))),\n\t\t...Object.fromEntries(Object.entries(t).filter(([, e]) => gn(e)))\n\t}, r = Object.entries(e).filter(([, e]) => _n(e)).map(([e]) => e), i = Object.entries(t).filter(([, e]) => _n(e)).map(([e]) => e), a = new Set([...r, ...i]);\n\tfor (let r of a) n[r] = vn(_(e, r) || {}, _(t, r) || {});\n\treturn n;\n}\nconst yn = typeof e.use == `function`;\nfunction bn({ dictionary: e, id: t }) {\n\tif (t === ``) return e;\n\tlet n = e, r = t.split(`.`);\n\tfor (let e of r) n = _(n, e);\n\treturn n;\n}\nfunction xn({ dictionary: e, id: t, sourceDictionary: n }) {\n\tif (t === ``) return e;\n\tlet r = e, i = n, a = t.split(`.`);\n\tfor (let e of a) _(r, e) === void 0 && (Array.isArray(_(i, e)) ? v(r, e, []) : v(r, e, {})), r = _(r, e);\n\treturn r;\n}\nconst Sn = [\n\t`constructor`,\n\t`prototype`,\n\t`__proto__`\n];\nfunction Cn(e) {\n\treturn !!Sn.includes(e);\n}\nfunction wn(e, t, n, r) {\n\tif ($(t)) return e;\n\tlet i = n.split(`.`);\n\ti.forEach((e) => {\n\t\tif (Cn(e)) throw Error(`Invalid key: ${e}`);\n\t}), t ||= {};\n\tfor (let e of i.slice(0, -1)) _(t, e) ?? v(t, e, Array.isArray(_(r, e)) ? [] : {}), t = _(t, e), r = _(r, e);\n\tlet a = i[i.length - 1];\n\tv(t, a, e);\n}\nfunction Tn(e) {\n\tlet t = {};\n\treturn Array.isArray(e) && (t = []), Object.entries(e).forEach(([e, n]) => {\n\t\tif ($(n)) {\n\t\t\tlet { entry: r } = X(n);\n\t\t\tv(t, e, r);\n\t\t} else v(t, e, Tn(n));\n\t}), t;\n}\nfunction En(e) {\n\treturn de(Te(fe(e))).slice(0, 16);\n}\nfunction Dn({ source: e, context: t, id: n, maxChars: r, dataFormat: i }, a = En) {\n\tlet o;\n\treturn o = i === `JSX` ? kn(e) : e, a(re({\n\t\tsource: o,\n\t\t...n && { id: n },\n\t\t...t && { context: t },\n\t\t...r != null && { maxChars: Math.abs(r) },\n\t\t...i && { dataFormat: i }\n\t}));\n}\nconst On = (e) => {\n\tif (e && typeof e == `object`) {\n\t\tlet t = {};\n\t\tif (`c` in e && e.c && (t.c = kn(e.c)), `d` in e) {\n\t\t\tlet n = e?.d;\n\t\t\tn?.b && (t.b = Object.fromEntries(Object.entries(n.b).map(([e, t]) => [e, kn(t)]))), n?.t && (t.t = n.t);\n\t\t}\n\t\treturn E(e) ? {\n\t\t\tk: e.k,\n\t\t\t...e.v && { v: e.v }\n\t\t} : t;\n\t}\n\treturn e;\n};\nfunction kn(e) {\n\treturn Array.isArray(e) ? e.map(On) : On(e);\n}\nfunction An(e, t = ``) {\n\tlet n = !1;\n\treturn Object.entries(e).forEach(([r, i]) => {\n\t\tlet a = t ? `${t}.${r}` : r;\n\t\tif ($(i)) {\n\t\t\tlet { entry: t, metadata: o } = X(i);\n\t\t\to?.$_hash || (o ||= {}, o.$_hash = Dn({\n\t\t\t\tsource: Rt(t),\n\t\t\t\t...o?.$context && { context: o.$context },\n\t\t\t\t...o?.$maxChars != null && { maxChars: Math.abs(o.$maxChars) },\n\t\t\t\tid: a,\n\t\t\t\tdataFormat: `ICU`\n\t\t\t}), v(e, r, [t, o]), n = !0);\n\t\t} else {\n\t\t\tlet { updateDictionary: e } = An(i, a);\n\t\t\tn ||= e;\n\t\t}\n\t}), {\n\t\tdictionary: e,\n\t\tupdateDictionary: n\n\t};\n}\nfunction jn(e, t, n, r, i = ``) {\n\tlet a = !1, o = i ? i.split(`.`) : [];\n\treturn r.forEach(({ metadata: r }) => {\n\t\tlet { $_hash: i, $id: s } = r, c = o.length > 0 ? s.split(`.`).slice(o.length).join(`.`) : s, l = Y(t, c), u;\n\t\t$(l) && (u = X(l).entry);\n\t\tlet d = n[i] || u;\n\t\td && (wn(d, t, c, e), a = !0);\n\t}), {\n\t\tdictionary: t,\n\t\tupdateDictionary: a\n\t};\n}\nfunction Mn(e, t, n, r = ``) {\n\tlet i = r ? r.split(`.`) : [];\n\treturn n.forEach(({ source: n, metadata: r }) => {\n\t\tlet { $id: a } = r, o = i.length > 0 ? a.split(`.`).slice(i.length).join(`.`) : a, s = Y(t, o), c;\n\t\t$(s) && (c = X(s).entry), wn(c || n, t, o, e);\n\t}), t;\n}\nfunction Nn(e, t, n) {\n\tlet r = bn({\n\t\tdictionary: e,\n\t\tid: n\n\t});\n\tif (!r) throw Error(Ut(n));\n\tif ($(r)) throw Error(Wt());\n\treturn Pn(e, vn(r, t), n);\n}\nfunction Pn(e, t, n) {\n\tlet r = Y(e, n);\n\tif (!r) throw Error(Ut(n));\n\tif ($(r)) throw Error(Gt());\n\tlet i = n.split(`.`), a = i.slice(0, -1), o = i[i.length - 1], s = e;\n\treturn a.forEach((e) => {\n\t\ts = _(s, e);\n\t}), v(s, o, t), e;\n}\nfunction Fn(e, t, n = ``) {\n\tlet r = [];\n\treturn Object.entries(e).forEach(([e, i]) => {\n\t\tlet a = n ? `${n}.${e}` : e;\n\t\tif ($(i)) {\n\t\t\tlet { entry: n, metadata: o } = X(i);\n\t\t\t_(t, e) || r.push({\n\t\t\t\tsource: n,\n\t\t\t\tmetadata: {\n\t\t\t\t\t$id: a,\n\t\t\t\t\t$context: o?.$context,\n\t\t\t\t\t$maxChars: o?.$maxChars,\n\t\t\t\t\t$_hash: o?.$_hash || ``\n\t\t\t\t}\n\t\t\t});\n\t\t} else r.push(...Fn(i, _(t, e) || (Array.isArray(i) ? [] : {}), a));\n\t}), r;\n}\nvar In = {\n\twarn(e) {\n\t\tconsole.warn(e);\n\t},\n\terror(e) {\n\t\tconsole.error(e);\n\t},\n\tinfo(e) {\n\t\tconsole.info(e);\n\t},\n\tdebug(e) {\n\t\tconsole.debug(e);\n\t}\n};\nfunction Ln(e) {\n\treturn Object.fromEntries(Object.entries(e).filter(([e]) => e !== `$id` && e !== `$context` && e !== `$maxChars` && e !== `$hash` && e !== `$_hash` && e !== `$_source` && e !== `$_fallback` && e !== `$format` && e !== `$_locales` && e !== `$locale`));\n}\nconst Rn = (e) => `String interpolation failed for message: \"${e}\".`;\nfunction zn(e, t, n, r) {\n\ttry {\n\t\treturn formatMessage(e, {\n\t\t\tvariables: t,\n\t\t\tlocales: n,\n\t\t\tdataFormat: r\n\t\t});\n\t} catch {\n\t\treturn In.warn(Rn(e)), e;\n\t}\n}\nfunction Bn(e, t) {\n\tif (!e) return e;\n\tlet n = t.$_fallback, r = Ln(t);\n\ttry {\n\t\tlet i = zt(n || ``);\n\t\treturn formatCutoff(zn(Object.keys(i).length ? Bt(e) : e, {\n\t\t\t...r,\n\t\t\t...i,\n\t\t\t[U]: `other`\n\t\t}, t.$locale ?? t.$_locales, t.$format), { maxChars: t.$maxChars });\n\t} catch {\n\t\treturn In.warn(Rn(e)), t.$_fallback == null ? formatCutoff(e, { maxChars: t.$maxChars }) : Bn(t.$_fallback, {\n\t\t\t...t,\n\t\t\t$_fallback: void 0\n\t\t});\n\t}\n}\nfunction Vn(e) {\n\tif (e.lastIndexOf(`:`) === -1) return null;\n\tlet t = e.slice(e.lastIndexOf(`:`) + 1);\n\ttry {\n\t\treturn JSON.parse(w(t));\n\t} catch {\n\t\treturn null;\n\t}\n}\nfunction Hn(e) {\n\treturn !!(e.$_hash && e.$_source);\n}\nfunction Un(e, t) {\n\tlet n = t;\n\treturn n.$_hash == null ? Dn({\n\t\tsource: t.$format === `ICU` ? Rt(e) : e,\n\t\t...n.$context && { context: n.$context },\n\t\t...n.$id && { id: n.$id },\n\t\t...n.$maxChars != null && { maxChars: Math.abs(n.$maxChars) },\n\t\tdataFormat: t.$format\n\t}) : n.$_hash;\n}\nfunction Wn(e) {\n\treturn typeof e == `string` && e.lastIndexOf(`:`) !== -1 ? e.slice(0, e.lastIndexOf(`:`)) : e;\n}\nconst Gn = (e, t = {}) => Bn(e, t), Kn = (e, t = {}) => e && (Hn(Vn(e) ?? {}) ? Wn(e) : Bn(e, t));\nfunction qn(e, t) {\n\tif (typeof e != `string`) return t ? e.map((e, n) => qn(e, {\n\t\t...t,\n\t\t...t.$id && { $id: `${t.$id}.${n}` }\n\t})) : e;\n\tif (!t) return e;\n\tlet n = Ln(t), r = e;\n\ttry {\n\t\tr = formatMessage(e, {\n\t\t\tlocales: [`en`],\n\t\t\tvariables: {\n\t\t\t\t...n,\n\t\t\t\t[U]: `other`\n\t\t\t}\n\t\t});\n\t} catch {\n\t\treturn In.warn(Rn(e)), e;\n\t}\n\tlet i = e, a = t.$_hash || Un(e, {\n\t\t$format: `ICU`,\n\t\t...t\n\t}), s = {\n\t\t...t,\n\t\t$_source: i,\n\t\t$_hash: a\n\t}, c = C(JSON.stringify(s));\n\treturn `${r}:${c}`;\n}\nfunction Jn({ children: e }) {\n\treturn e;\n}\nfunction Yn(e) {\n\treturn Jn(e);\n}\nJn._gtt = `derive`, Yn._gtt = `derive`;\n//#endregion\nexport { Jn as Derive, Yn as Static, Vt as addGTIdentifier, Fn as collectUntranslatedEntries, Lt as declareStatic, Ft as declareVar, Wn as decodeMsg, Vn as decodeOptions, Nt as decodeVars, pn as defaultLocaleCookieName, mn as defaultRegionCookieName, It as derive, y as flattenDictionary, dn as getDefaultRenderSettings, Y as getDictionaryEntry, X as getEntryAndMetadata, J as getPluralBranch, bn as getSubtree, xn as getSubtreeWithCreation, Zt as getVariableName, sn as getVariableProps, Gn as gtFallback, Nn as injectAndMerge, wn as injectEntry, Mn as injectFallbacks, An as injectHashes, jn as injectTranslations, $ as isDictionaryEntry, an as isValidDictionaryEntry, cn as isVariableObject, Kn as mFallback, vn as mergeDictionaries, qn as msg, yn as reactHasUse, Z as renderDefaultChildren, fn as renderSkeleton, Q as renderTranslatedChildren, Tn as stripMetadataFromEntries, q as writeChildrenAsObjects };\n\n//# sourceMappingURL=internal.mjs.map","import { defaultLocaleCookieName } from 'gt-react/internal';\nimport { createIsomorphicFn } from '@tanstack/react-start';\nimport { getRequestHeader, getCookie } from '@tanstack/react-start/server';\nimport { resolveSupportedLocale } from 'gt-i18n/internal';\nimport type { ConditionStoreConfig } from 'gt-i18n/internal/types';\n\n/**\n * Determines the locale isomorphicly.\n *\n * @internal - for exporting use client facing getLocale() instead, everywhere internally should use determineLocale()\n */\nexport const determineLocale = createIsomorphicFn()\n .server(determineLocaleServer)\n .client(determineLocaleClient);\n\n/**\n * Determines the locale on the server.\n * Really this is only used on the client side when root loader is triggered\n */\nfunction determineLocaleServer({\n defaultLocale,\n locales,\n customMapping,\n}: ConditionStoreConfig) {\n const candidates: string[] = [];\n\n // (1) Check cookie\n const cookie = getCookie(defaultLocaleCookieName);\n if (cookie) candidates.push(cookie);\n\n // (2) Check headers\n if (process.env._GENERALTRANSLATION_IGNORE_BROWSER_LOCALES === 'false') {\n const headers =\n getRequestHeader('accept-language')\n ?.split(',')\n .map((item) => item.split(';')?.[0].trim()) || [];\n if (headers) candidates.push(...headers);\n }\n\n // Warn if no locales could be determined\n if (\n candidates.length === 0 &&\n process.env._GENERALTRANSLATION_IGNORE_BROWSER_LOCALES === 'false'\n ) {\n console.warn(\n 'gt-tanstack-start(server): no locales could be determined for this request'\n );\n }\n\n return resolveSupportedLocale(candidates, {\n defaultLocale,\n locales,\n customMapping,\n });\n}\n\n/**\n * Determines the locale on the client.\n */\nfunction determineLocaleClient({\n defaultLocale,\n locales,\n customMapping,\n}: ConditionStoreConfig) {\n const candidates: string[] = [];\n\n // (1) Check cookie\n const cookie = document.cookie\n .split('; ')\n .find((row) => row.startsWith(`${defaultLocaleCookieName}=`))\n ?.split('=')[1];\n if (cookie) candidates.push(cookie);\n\n // (2) Check browser locale\n const browserLocale = navigator.language;\n if (browserLocale) candidates.push(browserLocale);\n\n if (candidates.length === 0) {\n console.warn(\n 'gt-tanstack-start(client): no locales could be determined for this request'\n );\n }\n\n return resolveSupportedLocale(candidates, {\n defaultLocale,\n locales,\n customMapping,\n });\n}\n","import { determineLocale } from '../functions/determineLocale';\nimport type {\n ConditionStore,\n ConditionStoreConfig,\n} from 'gt-i18n/internal/types';\n\n/**\n * Condition store implementation for Tanstack Start.\n */\nexport class TanstackConditionStore implements ConditionStore {\n private localeConfig: ConditionStoreConfig;\n\n constructor(localeConfig: ConditionStoreConfig = {}) {\n this.localeConfig = localeConfig;\n }\n\n /**\n * Get the current locale.\n */\n getLocale(): string {\n return determineLocale(this.localeConfig);\n }\n}\n","import {\n I18nManager,\n setI18nManager,\n setConditionStore,\n} from 'gt-i18n/internal';\nimport type { Translation } from 'gt-i18n/types';\nimport type { InitializeGTParams } from './types';\nimport { TanstackConditionStore } from '../runtime/TanstackConditionStore';\n\n/**\n * Configure GT for TanStack Start. This must be called to setup GT for TanStack Start.\n * @param {InitializeGTParams} config - The configuration for the GT instance\n * TODO: auto detect if can find gt.config.json files\n */\nexport function initializeGT(params: InitializeGTParams): void {\n const i18nManager = new I18nManager<Translation>(params);\n const conditionStore = new TanstackConditionStore({\n defaultLocale: i18nManager.getDefaultLocale(),\n locales: i18nManager.getLocales(),\n customMapping: i18nManager.getCustomMapping(),\n });\n\n setI18nManager(i18nManager);\n setConditionStore(conditionStore);\n}\n","/**\n * Returns true if the current environment is server-side rendering.\n */\nexport function isSSREnabled() {\n return typeof window === 'undefined';\n}\n","import { GTProviderProps } from '../types';\nimport { isSSREnabled } from './isSSREnabled';\nimport { getLocale } from 'gt-i18n';\n\n/**\n * Determines the locale for the provider, must follow specific logic\n */\nexport function determineProviderLocale(\n props: Partial<Pick<GTProviderProps, 'locale'>>\n): string | undefined {\n if (typeof props.locale === 'string') {\n return props.locale;\n } else if (isSSREnabled()) {\n return getLocale();\n } else {\n // Locale needs to be undefined for client because locale change:\n // After refresh, there is enough time for a render cycle to execute updating the cookie back\n // to _locale (ie locale being supplied here)\n // TODO: address this issue, we should have better logic handling for post refresh\n return undefined;\n }\n}\n","import React from 'react';\nimport { GTProvider as GTReactProvider } from 'gt-react';\nimport { GTProviderProps } from './types';\nimport { isSSREnabled } from './utils/isSSREnabled';\nimport { determineProviderLocale } from './utils/determineProviderLocale';\nimport { getI18nManager } from 'gt-i18n/internal';\n\n/**\n * Provides General Translation context to its children, which can then access `useGT`, `useLocale`, and `useDefaultLocale`.\n *\n * @param {React.ReactNode} children - The children components that will use the translation context.\n * @param {string} [projectId] - The project ID required for General Translation cloud services.\n * @param {Dictionary} [dictionary=defaultDictionary] - The translation dictionary for the project.\n * @param {string[]} [locales] - The list of approved locales for the project.\n * @param {string} [defaultLocale=libraryDefaultLocale] - The default locale to use if no other locale is found.\n * @param {string} [cacheUrl='https://cdn.gtx.dev'] - The URL of the cache service for fetching translations.\n * @param {string} [runtimeUrl='https://runtime.gtx.dev'] - The URL of the runtime service for fetching translations.\n * @param {RenderSettings} [renderSettings=defaultRenderSettings] - The settings for rendering translations.\n * @param {string} [_versionId] - The version ID for fetching translations.\n * @param {string} [devApiKey] - The API key for development environments.\n * @param {object} [metadata] - Additional metadata to pass to the context.\n * @param {string} [localeCookieName=defaultLocaleCookieName] - The name of the cookie to store the locale.\n * @param {boolean} [enableI18n=true] - Whether to enable i18n.\n * @param {boolean|undefined} [enableI18nLoaded=undefined] - Flag to indicate if the enableI18n flag is finished loading asynchronously. Undefined means flag is loaded synchronously.\n * @param {Translations | null} [translations=null] - The translations to use for the context.\n * @param {React.ReactNode} [fallback = undefined] - Custom fallback to display while loading\n *\n * @returns {JSX.Element} The provider component for General Translation context.\n */\nexport function GTProvider(props: GTProviderProps): React.ReactNode {\n const i18nManager = getI18nManager();\n return (\n <GTReactProvider\n ssr={isSSREnabled()}\n defaultLocale={i18nManager.getDefaultLocale()}\n locales={i18nManager.getLocales()}\n customMapping={i18nManager.getCustomMapping()}\n enableI18n={i18nManager.isTranslationEnabled()}\n loadTranslations={(locale: string) =>\n i18nManager.loadTranslations(locale)\n }\n _versionId={i18nManager.getVersionId()}\n {...props}\n reloadOnLocaleUpdate={true}\n locale={determineProviderLocale(props)}\n />\n );\n}\n","import { getLocale } from 'gt-i18n';\nimport type { Translations } from 'gt-react/internal';\nimport { isSSREnabled } from '../provider/utils/isSSREnabled';\nimport { getI18nManager } from 'gt-i18n/internal';\n\n/**\n * Put this in the root loader to pass translations to the provider\n */\nexport async function getTranslations(): Promise<Translations | undefined> {\n const locale = isSSREnabled() ? getLocale() : undefined;\n if (!locale) return undefined;\n const i18nManager = getI18nManager();\n // TODO: improve types by TranslationManager overrides\n // need to cast b/c gt-i18n assumes string only translation\n return (await i18nManager.loadTranslations(locale)) as Translations;\n}\n"],"x_google_ignoreList":[2,3,4,5,7,8,9,10,11,12,13,14,15,16,17,18,19,20,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"mappings":"ihCAKA,SAAS,EAAe,EAAM,CAC7B,IAAM,EAAU,EAAK,MAAM,CAE3B,OADK,EACE,UAAU,KAAK,EAAQ,CAAG,EAAU,GAAG,EAAQ,GADjC,GAGtB,SAAS,EAAc,EAAM,CAC5B,IAAM,EAAU,EAAK,MAAM,CACvB,EAAM,EAAQ,OAClB,KAAO,EAAM,GAAG,CACf,IAAM,EAAO,EAAQ,EAAM,GAC3B,GAAI,IAAS,KAAO,IAAS,KAAO,IAAS,IAAK,MAClD,IAED,OAAO,EAAQ,MAAM,EAAG,EAAI,CAE7B,SAAS,EAAmB,EAAM,CACjC,OAAO,EAAK,QAAQ,cAAgB,GAAU,EAAM,aAAa,CAAC,CAEnE,SAAS,EAAc,EAAS,CAC/B,GAAI,CAAC,EAAS,MAAO,GACrB,IAAM,EAAa,MAAM,QAAQ,EAAQ,CAAG,EAAQ,KAAK,KAAK,CAAG,EAEjE,OADK,EAAW,MAAM,CACf,EAAe,YAAY,IAAa,CADhB,GAOhC,SAAS,EAAwB,CAAE,SAAQ,WAAU,eAAc,cAAa,MAAK,MAAK,SAA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,KACA,IACH,CACD,GAAM,CACF,IACA,KACA,IACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACH,CACD,GAAM,CACF,IACA,KACA,KACA,IACH,CACD,GAAM,CACF,IACA,IACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,KACA,KACA,IACA,IACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,IACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,IACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,KACA,IACH,CACD,GAAM,CACF,IACA,IACA,KACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACH,CACD,GAAM,CACF,IACA,KACA,KACA,IACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,IACH,CACD,GAAM,CACF,IACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,KACA,KACA,IACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,KACA,KACA,IACH,CACD,GAAM,CACF,IACA,KACA,KACA,IACH,CACD,GAAM,CACF,IACA,IACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,KACA,KACA,IACA,IACH,CACD,GAAM,CACF,IACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,IACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,IACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,IACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,KACA,KACA,IACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,IACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,IACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,KACA,KACA,IACH,CACD,GAAM,CACF,KACA,IACH,CACD,GAAM,CACF,IACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,KACA,KACA,IACH,CACD,GAAM,CACF,IACA,IACA,IACH,CACD,GAAM,CACF,KACA,KACA,IACA,IACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,KACA,IACA,IACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,KACA,KACA,IACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,KACA,KACA,IACH,CACD,GAAM,CACF,IACA,KACA,KACA,IACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,IACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACH,CACD,GAAM,CACF,IACA,KACA,KACA,IACH,CACD,GAAM,CACF,IACA,KACA,KACA,IACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,IACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACH,CACD,GAAM,CACF,KACA,KACA,IACA,IACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,KACA,KACA,IACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,KACA,KACA,IACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,IACH,CACD,GAAM,CACF,IACA,IACH,CACD,GAAM,CACF,IACA,IACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,KACA,KACA,IACA,IACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,IACH,CACD,GAAM,CACF,IACA,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,KACA,KACA,IACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACH,CACD,GAAM,CACF,IACA,IACH,CACD,GAAM,CACF,IACA,KACA,KACA,IACH,CACD,GAAM,CACF,IACA,KACA,IACH,CACD,GAAM,CACF,IACA,IACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,KACA,KACA,IACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,IACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,KACA,KACA,IACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACH,CACD,GAAM,CACF,IACH,CACD,GAAM,CACF,IACA,IACH,CACD,GAAM,CACF,IACA,KACA,KACA,IACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACH,CACD,GAAM,CACF,IACA,KACA,KACA,IACH,CACD,GAAM,CACF,IACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACH,CACD,GAAM,CACF,IACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACH,CACD,GAAM,CACF,IACA,IACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,KACA,KACA,IACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,IACH,CACD,GAAM,CACF,IACA,IACH,CACD,GAAM,CACF,IACA,KACA,KACA,IACH,CACD,GAAM,CACF,IACA,IACH,CACD,GAAM,CACF,IACA,KACA,KACA,IACH,CACD,GAAM,CACF,IACA,IACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,KACA,KACA,IACA,IACH,CACD,GAAM,CACF,KACA,KACA,IACA,IACH,CACD,GAAM,CACF,IACA,KACA,IACH,CACD,GAAM,CACF,KACA,KACA,IACA,IACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACH,CACD,GAAM,CACF,IACA,IACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,IACH,CACD,GAAM,CACF,IACA,IACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,IACH,CACD,GAAM,CACF,IACA,KACA,IACH,CACD,GAAM,CACF,IACA,KACA,KACA,IACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,IACH,CACD,QAAS,CACL,IACA,IACA,KACA,KACH,CACD,SAAU,CACN,IACA,KACA,KACA,IACH,CACD,QAAS,CACL,IACA,IACA,KACH,CACD,SAAU,CACN,IACA,KACA,IACA,KACH,CACD,QAAS,CACL,IACA,KACA,IACA,KACH,CACD,QAAS,CACL,IACA,IACA,KACA,KACH,CACD,QAAS,CACL,IACA,KACA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A,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,KACA,KACA,IACH,CACD,GAAM,CACF,IACA,KACA,KACA,IACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,IACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACH,CACD,GAAM,CACF,IACA,KACA,IACH,CACD,GAAM,CACF,IACA,KACA,IACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACH,CACD,GAAM,CACF,IACA,KACA,KACA,IACH,CACD,GAAM,CACF,IACA,IACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,KACA,KACA,IACA,IACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,IACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,IACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,KACA,IACH,CACD,GAAM,CACF,IACA,IACA,KACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACH,CACD,GAAM,CACF,IACA,KACA,KACA,IACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,IACH,CACD,GAAM,CACF,IACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,KACA,KACA,IACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,KACA,KACA,IACH,CACD,GAAM,CACF,IACA,KACA,KACA,IACH,CACD,GAAM,CACF,IACA,IACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,KACA,KACA,IACA,IACH,CACD,GAAM,CACF,IACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,IACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,IACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,IACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,KACA,KACA,IACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,IACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,IACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,KACA,KACA,IACH,CACD,GAAM,CACF,KACA,IACH,CACD,GAAM,CACF,IACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,KACA,KACA,IACH,CACD,GAAM,CACF,IACA,IACA,IACH,CACD,GAAM,CACF,KACA,KACA,IACA,IACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,KACA,IACA,IACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,KACA,KACA,IACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,KACA,KACA,IACH,CACD,GAAM,CACF,IACA,KACA,KACA,IACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,IACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACH,CACD,GAAM,CACF,IACA,KACA,KACA,IACH,CACD,GAAM,CACF,IACA,KACA,KACA,IACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,IACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACH,CACD,GAAM,CACF,KACA,KACA,IACA,IACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,KACA,KACA,IACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,KACA,KACA,IACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,IACH,CACD,GAAM,CACF,IACA,IACH,CACD,GAAM,CACF,IACA,IACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,KACA,KACA,IACA,IACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,IACH,CACD,GAAM,CACF,IACA,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,KACA,KACA,IACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACH,CACD,GAAM,CACF,IACA,IACH,CACD,GAAM,CACF,IACA,KACA,KACA,IACH,CACD,GAAM,CACF,IACA,KACA,IACH,CACD,GAAM,CACF,IACA,IACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,KACA,KACA,IACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,IACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,KACA,KACA,IACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACH,CACD,GAAM,CACF,IACH,CACD,GAAM,CACF,IACA,IACH,CACD,GAAM,CACF,IACA,KACA,KACA,IACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACH,CACD,GAAM,CACF,IACA,KACA,KACA,IACH,CACD,GAAM,CACF,IACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACH,CACD,GAAM,CACF,IACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACH,CACD,GAAM,CACF,IACA,IACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,KACA,KACA,IACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,IACH,CACD,GAAM,CACF,IACA,IACH,CACD,GAAM,CACF,IACA,KACA,KACA,IACH,CACD,GAAM,CACF,IACA,IACH,CACD,GAAM,CACF,IACA,KACA,KACA,IACH,CACD,GAAM,CACF,IACA,IACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,KACA,KACA,IACA,IACH,CACD,GAAM,CACF,KACA,KACA,IACA,IACH,CACD,GAAM,CACF,IACA,KACA,IACH,CACD,GAAM,CACF,KACA,KACA,IACA,IACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACH,CACD,GAAM,CACF,IACA,IACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,IACH,CACD,GAAM,CACF,IACA,IACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,IACH,CACD,GAAM,CACF,IACA,KACA,IACH,CACD,GAAM,CACF,IACA,KACA,KACA,IACH,CACD,GAAM,CACF,IACA,KACH,CACD,GAAM,CACF,IACA,IACA,KACA,KACH,CACD,GAAM,CACF,IACA,KACA,IACA,KACH,CACD,GAAM,CACF,IACA,IACH,CACD,QAAS,CACL,IACA,IACA,KACA,KACH,CACD,SAAU,CACN,IACA,KACA,KACA,IACH,CACD,QAAS,CACL,IACA,IACA,KACH,CACD,SAAU,CACN,IACA,KACA,IACA,KACH,CACD,QAAS,CACL,IACA,KACA,IACA,KACH,CACD,QAAS,CACL,IACA,IACA,KACA,KACH,CACD,QAAS,CACL,IACA,KACA,IACA,KACH,CACD,QAAS,CACL,IACA,IACA,KACA,KACH,CACD,QAAS,CACL,IACA,IACA,KACA,KACH,CACD,QAAS,CACL,IACA,IACA,KACA,KACH,CACD,QAAS,CACL,IACA,IACA,KACH,CACD,QAAS,CACL,IACA,IACA,KACH,CACD,QAAS,CACL,KACA,KACA,IACA,IACH,CACD,QAAS,CACL,KACA,IACA,IACH,CACD,QAAS,CACL,IACA,IACA,KACH,CACD,QAAS,CACL,IACA,IACA,KACH,CACD,QAAS,CACL,KACA,IACA,IACH,CACD,QAAS,CACL,KACA,IACA,IACH,CACD,QAAS,CACL,KACA,KACA,IACA,IACH,CACD,QAAS,CACL,KACA,KACA,IACA,IACH,CACD,QAAS,CACL,KACA,IACA,KACA,IACH,CACD,QAAS,CACL,KACA,IACA,IACH,CACD,QAAS,CACL,IACA,KACA,KACA,IACH,CACJ,cC14CD,OAAO,eAAe,EAAS,aAAc,CAAE,MAAO,GAAM,CAAC,CAC7D,EAAQ,eAAiB,EACzB,IAAI,EAAA,IAAA,CAQJ,SAAS,EAAe,EAAU,EAAQ,CAEtC,IAAK,IADD,EAAe,GACV,EAAa,EAAG,EAAa,EAAS,OAAQ,IAAc,CACjE,IAAI,E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ACrD,IAAI,GAAK,GAAG,CAAE,EAAE,EAAE,EAClB,EAAE,aAAa,IAAI,CAAE,EAAE,CAAE,EAAE,aAAa,IAAI,CAAE,EAAE,GAC9C,CAAE,GAAK,GAAI,GAAM,CACnB,OAAO,eAAe,EAAG,aAAc,CAAE,MAAO,CAAC,EAAG,CAAC,CAAE,EAAE,SAAW,IAAK,GAAG,EAAE,SAAW,CACxF,MAAO,CAAC,IAAK,IAAI,CACjB,IAAK,CACJ,IACA,IACA,KACA,KACA,CACD,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CAAC,IAAK,KAAK,CACf,GAAI,CACH,IACA,KACA,KACA,IACA,CACD,GAAI,CACH,IACA,KACA,KACA,IACA,CACD,GAAI,CACH,IACA,KACA,IACA,KACA,CACD,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CACH,IACA,IACA,KACA,CACD,GAAI,CAAC,IAAK,KAAK,CACf,GAAI,CAAC,IAAK,KAAK,CACf,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CAAC,IAAK,IAAI,CACd,GAAI,CAAC,IAAK,KAAK,CACf,GAAI,CACH,IACA,KACA,IACA,KACA,CACD,GAAI,CAAC,IAAK,KAAK,CACf,GAAI,CAAC,IAAI,CACT,GAAI,CACH,IACA,KACA,IACA,CACD,GAAI,CACH,IACA,KACA,IACA,CACD,GAAI,CACH,IACA,KACA,IACA,KACA,CACD,GAAI,CACH,IACA,KACA,IACA,CACD,GAAI,CAAC,IAAK,KAAK,CACf,GAAI,CAAC,IAAK,KAAK,CACf,GAAI,CACH,IACA,KACA,IACA,CACD,GAAI,CACH,IACA,KACA,KACA,IACA,CACD,GAAI,CAAC,IAAK,IAAI,CACd,GAAI,CAAC,IAAK,KAAK,CACf,GAAI,CAAC,IAAK,KAAK,CACf,GAAI,CACH,IACA,KACA,IACA,KACA,CACD,GAAI,CACH,KACA,KACA,IACA,IACA,CACD,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CAAC,IAAI,CACT,GAAI,CAAC,IAAK,KAAK,CACf,GAAI,CACH,IACA,KACA,IACA,KACA,CACD,GAAI,CAAC,IAAK,IAAI,CACd,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CAAC,IAAK,IAAI,CACd,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CACH,IACA,KACA,IACA,KACA,CACD,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CAAC,KAAM,IAAI,CACf,GAAI,CACH,IACA,IACA,KACA,CACD,GAAI,CAAC,IAAK,KAAK,CACf,GAAI,CACH,IACA,KACA,IACA,CACD,GAAI,CAAC,IAAK,KAAK,CACf,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CACH,IACA,IACA,KACA,CACD,GAAI,CACH,IACA,KACA,KACA,IACA,CACD,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CAAC,IAAI,CACT,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CAAC,IAAK,KAAK,CACf,GAAI,CAAC,IAAK,KAAK,CACf,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CAAC,IAAI,CACT,GAAI,CAAC,IAAK,KAAK,CACf,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CAAC,IAAK,IAAI,CACd,GAAI,CAAC,IAAI,CACT,GAAI,CACH,IACA,KACA,IACA,KACA,CACD,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CACH,IACA,KACA,KACA,IACA,CACD,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CAAC,IAAK,KAAK,CACf,GAAI,CACH,IACA,KACA,KACA,IACA,CACD,GAAI,CACH,IACA,KACA,KACA,IACA,CACD,GAAI,CAAC,IAAK,IAAI,CACd,GAAI,CACH,IACA,KACA,IACA,KACA,CACD,GAAI,CACH,KACA,KACA,IACA,IACA,CACD,GAAI,CAAC,IAAI,CACT,GAAI,CACH,IACA,KACA,IACA,KACA,CACD,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CACH,IACA,KACA,IACA,KACA,CACD,GAAI,CAAC,IAAK,IAAI,CACd,GAAI,CAAC,IAAK,KAAK,CACf,GAAI,CAAC,IAAK,KAAK,CACf,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CACH,IACA,KACA,IACA,KACA,CACD,GAAI,CACH,IACA,KACA,IACA,CACD,GAAI,CAAC,IAAK,KAAK,CACf,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CAAC,IAAK,IAAI,CACd,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CAAC,IAAK,IAAI,CACd,GAAI,CACH,IACA,KACA,IACA,KACA,CACD,GAAI,CAAC,IAAK,KAAK,CACf,GAAI,CAAC,IAAK,KAAK,CACf,GAAI,CACH,IACA,KACA,IACA,KACA,CACD,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CACH,IACA,KACA,IACA,KACA,CACD,GAAI,CAAC,IAAK,KAAK,CACf,GAAI,CACH,IACA,KACA,IACA,KACA,CACD,GAAI,CACH,IACA,KACA,KACA,IACA,CACD,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CAAC,IAAK,KAAK,CACf,GAAI,CAAC,IAAK,IAAI,CACd,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CAAC,IAAI,CACT,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CAAC,IAAK,KAAK,CACf,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CAAC,IAAK,IAAI,CACd,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CACH,IACA,KACA,KACA,IACA,CACD,GAAI,CAAC,KAAM,IAAI,CACf,GAAI,CAAC,IAAI,CACT,GAAI,CAAC,IAAK,KAAK,CACf,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CACH,IACA,KACA,IACA,KACA,CACD,GAAI,CACH,IACA,KACA,KACA,IACA,CACD,GAAI,CACH,IACA,IACA,IACA,CACD,GAAI,CACH,KACA,KACA,IACA,IACA,CACD,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CACH,KACA,IACA,IACA,KACA,CACD,GAAI,CACH,IACA,KACA,IACA,KACA,CACD,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CACH,IACA,KACA,IACA,KACA,CACD,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CACH,IACA,KACA,KACA,IACA,CACD,GAAI,CACH,IACA,KACA,IACA,KACA,CACD,GAAI,CAAC,IAAK,KAAK,CACf,GAAI,CACH,IACA,KACA,KACA,IACA,CACD,GAAI,CACH,IACA,KACA,KACA,IACA,CACD,GAAI,CACH,IACA,KACA,IACA,KACA,CACD,GAAI,CACH,IACA,KACA,IACA,CACD,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CACH,IACA,KACA,IACA,KACA,CACD,GAAI,CAAC,IAAK,IAAI,CACd,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CACH,IACA,IACA,KACA,CACD,GAAI,CACH,IACA,KACA,KACA,IACA,CACD,GAAI,CACH,IACA,KACA,KACA,IACA,CACD,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CAAC,IAAK,KAAK,CACf,GAAI,CAAC,IAAK,KAAK,CACf,GAAI,CACH,IACA,KACA,IACA,CACD,GAAI,CAAC,IAAK,KAAK,CACf,GAAI,CAAC,IAAK,IAAI,CACd,GAAI,CACH,IACA,KACA,IACA,KACA,CACD,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CAAC,IAAI,CACT,GAAI,CACH,KACA,KACA,IACA,IACA,CACD,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CACH,IACA,KACA,KACA,IACA,CACD,GAAI,CACH,IACA,KACA,IACA,KACA,CACD,GAAI,CAAC,IAAK,KAAK,CACf,GAAI,CACH,IACA,KACA,KACA,IACA,CACD,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CAAC,IAAK,IAAI,CACd,GAAI,CAAC,IAAK,IAAI,CACd,GAAI,CAAC,IAAK,IAAI,CACd,GAAI,CACH,IACA,KACA,IACA,KACA,CACD,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CACH,KACA,KACA,IACA,IACA,CACD,GAAI,CAAC,IAAK,KAAK,CACf,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CAAC,IAAK,KAAK,CACf,GAAI,CAAC,IAAI,CACT,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CAAC,IAAK,KAAK,CACf,GAAI,CAAC,IAAK,IAAI,CACd,GAAI,CACH,IACA,IACA,KACA,CACD,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CACH,IACA,KACA,IACA,KACA,CACD,GAAI,CACH,IACA,KACA,KACA,IACA,CACD,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CACH,IACA,IACA,KACA,CACD,GAAI,CAAC,IAAK,IAAI,CACd,GAAI,CACH,IACA,KACA,KACA,IACA,CACD,GAAI,CACH,IACA,KACA,IACA,CACD,GAAI,CAAC,IAAK,IAAI,CACd,GAAI,CAAC,IAAK,KAAK,CACf,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CACH,IACA,KACA,KACA,IACA,CACD,GAAI,CAAC,IAAK,KAAK,CACf,GAAI,CAAC,IAAK,IAAI,CACd,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CACH,IACA,KACA,KACA,IACA,CACD,GAAI,CAAC,IAAK,KAAK,CACf,GAAI,CAAC,IAAK,KAAK,CACf,GAAI,CACH,IACA,KACA,IACA,CACD,GAAI,CAAC,IAAI,CACT,GAAI,CAAC,IAAK,IAAI,CACd,GAAI,CACH,IACA,KACA,KACA,IACA,CACD,GAAI,CACH,IACA,KACA,IACA,KACA,CACD,GAAI,CACH,IACA,IACA,KACA,CACD,GAAI,CACH,IACA,KACA,KACA,IACA,CACD,GAAI,CAAC,IAAI,CACT,GAAI,CACH,IACA,KACA,IACA,KACA,CACD,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CAAC,IAAK,KAAK,CACf,GAAI,CAAC,IAAI,CACT,GAAI,CAAC,IAAI,CACT,GAAI,CACH,IACA,KACA,IACA,KACA,CACD,GAAI,CACH,IACA,IACA,KACA,CACD,GAAI,CACH,IACA,IACA,KACA,CACD,GAAI,CAAC,IAAK,IAAI,CACd,GAAI,CAAC,IAAK,KAAK,CACf,GAAI,CACH,IACA,KACA,IACA,KACA,CACD,GAAI,CAAC,IAAK,KAAK,CACf,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CACH,IACA,KACA,KACA,IACA,CACD,GAAI,CACH,IACA,KACA,IACA,KACA,CACD,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CACH,IACA,KACA,IACA,KACA,CACD,GAAI,CACH,IACA,IACA,KACA,CACD,GAAI,CACH,IACA,IACA,KACA,CACD,GAAI,CAAC,IAAK,KAAK,CACf,GAAI,CAAC,IAAK,IAAI,CACd,GAAI,CAAC,IAAK,IAAI,CACd,GAAI,CACH,IACA,KACA,KACA,IACA,CACD,GAAI,CAAC,IAAK,IAAI,CACd,GAAI,CACH,IACA,KACA,KACA,IACA,CACD,GAAI,CAAC,IAAK,IAAI,CACd,GAAI,CAAC,IAAK,KAAK,CACf,GAAI,CACH,IACA,KACA,IACA,KACA,CACD,GAAI,CACH,KACA,KACA,IACA,IACA,CACD,GAAI,CACH,KACA,KACA,IACA,IACA,CACD,GAAI,CACH,IACA,KACA,IACA,CACD,GAAI,CACH,KACA,KACA,IACA,IACA,CACD,GAAI,CACH,IACA,KACA,IACA,KACA,CACD,GAAI,CACH,IACA,KACA,IACA,KACA,CACD,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CACH,IACA,KACA,IACA,CACD,GAAI,CACH,IACA,IACA,KACA,CACD,GAAI,CACH,IACA,KACA,IACA,KACA,CACD,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CACH,IACA,KACA,IACA,KACA,CACD,GAAI,CACH,IACA,KACA,IACA,KACA,CACD,GAAI,CAAC,IAAK,IAAI,CACd,GAAI,CAAC,IAAK,IAAI,CACd,GAAI,CAAC,IAAK,KAAK,CACf,GAAI,CAAC,IAAK,IAAI,CACd,GAAI,CACH,IACA,KACA,IACA,CACD,GAAI,CACH,IACA,KACA,KACA,IACA,CACD,GAAI,CAAC,IAAK,KAAK,CACf,GAAI,CACH,IACA,IACA,KACA,KACA,CACD,GAAI,CACH,IACA,KACA,IACA,KACA,CACD,GAAI,CAAC,IAAK,IAAI,CACd,QAAS,CACR,IACA,IACA,KACA,KACA,CACD,SAAU,CACT,IACA,KACA,KACA,IACA,CACD,QAAS,CACR,IACA,IACA,KACA,CACD,SAAU,CACT,IACA,KACA,IACA,KACA,CACD,QAAS,CACR,IACA,KACA,IACA,KACA,CACD,QAAS,CACR,IACA,IACA,KACA,KACA,CACD,QAAS,CACR,IACA,KACA,IACA,KACA,CACD,QAAS,CACR,IACA,IACA,KACA,KACA,CACD,QAAS,CACR,IACA,IACA,KACA,KACA,CACD,QAAS,CACR,IACA,IACA,KACA,KACA,CACD,QAAS,CACR,IACA,IACA,KACA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