@scavio/twenty 0.0.0-stage → 0.1.0

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.
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../../node_modules/@sniptt/guards/lib/guards/primitives.ts", "../../../../../../../node_modules/@sniptt/guards/lib/guards/structural.ts", "../../../../../../../node_modules/@sniptt/guards/lib/guards/convenience.ts", "../../../../../../../node_modules/@sniptt/guards/lib/index.ts", "../../../../../../../src/logic-functions/enrich-worker.ts", "twenty-sdk-define-stub:__twenty-sdk-define-stub__", "../../../../../../../src/constants/universal-identifiers.ts", "../../../../../../../src/scavio/constants.ts", "../../../../../../../src/scavio/client.ts", "../../../../../../../src/scavio/company-repository.ts", "../../../../../../../node_modules/twenty-shared/dist/utils/validation/isDefined.mjs", "../../../../../../../node_modules/twenty-shared/dist/logic-function/json-schema-to-input-schema.mjs", "../../../../../../../node_modules/twenty-shared/dist/logic-function/retryable-logic-function.error.mjs", "../../../../../../../node_modules/twenty-sdk/src/sdk/logic-function/connections/errors/app-connection-auth-failed.error.ts", "../../../../../../../node_modules/twenty-shared/dist/application-runtime/constants/ConnectionScopeByLegacyVisibility.mjs", "../../../../../../../node_modules/twenty-shared/dist/application-runtime/constants/DefaultApiUrlName.mjs", "../../../../../../../node_modules/twenty-shared/dist/application-runtime/constants/DefaultAppAccessTokenName.mjs", "../../../../../../../node_modules/twenty-shared/dist/application-runtime/constants/DefaultAppApplicationAccessTokenName.mjs", "../../../../../../../node_modules/twenty-shared/dist/application-runtime/constants/DefaultInternalApiUrlName.mjs", "../../../../../../../node_modules/twenty-shared/dist/application-runtime/constants/LegacyConnectionVisibilityByScope.mjs", "../../../../../../../node_modules/twenty-shared/dist/application-runtime/utils/resolveApiUrlFromEnvironment.mjs", "../../../../../../../node_modules/twenty-sdk/src/sdk/logic-function/connections/utils/with-legacy-connection-visibility.util.ts", "../../../../../../../node_modules/twenty-sdk/src/sdk/utils/get-application-access-token.ts", "../../../../../../../node_modules/twenty-sdk/src/sdk/logic-function/utils/get-application-api-config-or-throw.util.ts", "../../../../../../../node_modules/twenty-sdk/src/sdk/logic-function/utils/post-graphql-request.util.ts", "../../../../../../../node_modules/twenty-sdk/src/sdk/logic-function/connections/get-connection.ts", "../../../../../../../node_modules/twenty-shared/dist/utils/strings/capitalize.mjs", "../../../../../../../node_modules/twenty-shared/dist/ai/utils/format-record-reference.util.mjs", "../../../../../../../node_modules/twenty-sdk/src/sdk/logic-function/connections/list-connections.ts", "../../../../../../../node_modules/twenty-sdk/src/sdk/logic-function/connections/find-connection-for-request.ts", "../../../../../../../node_modules/twenty-sdk/src/sdk/logic-function/connections/report-connection-auth-failure.ts", "../../../../../../../node_modules/twenty-sdk/src/sdk/logic-function/messaging/message-channel-fields.constant.ts", "../../../../../../../node_modules/twenty-sdk/src/sdk/logic-function/messaging/create-message-channel.ts", "../../../../../../../node_modules/twenty-sdk/src/sdk/logic-function/messaging/list-message-channels.ts", "../../../../../../../node_modules/twenty-sdk/src/sdk/logic-function/messaging/update-message-channel.ts", "../../../../../../../node_modules/twenty-sdk/src/sdk/logic-function/messaging/delete-message-channel.ts", "../../../../../../../node_modules/twenty-sdk/src/sdk/logic-function/messaging/ingest-messages.ts", "../../../../../../../node_modules/twenty-sdk/src/sdk/logic-function/messaging/attachment-file-field-universal-identifier.constant.ts", "../../../../../../../node_modules/twenty-sdk/src/sdk/logic-function/messaging/upload-message-attachment.ts", "../../../../../../../node_modules/twenty-sdk/src/sdk/logic-function/messaging/message-folder-fields.constant.ts", "../../../../../../../node_modules/twenty-sdk/src/sdk/logic-function/messaging/list-message-folders.ts", "../../../../../../../node_modules/twenty-sdk/src/sdk/logic-function/messaging/sync-message-folders.ts", "../../../../../../../node_modules/twenty-sdk/src/sdk/logic-function/utils/to-run-agent-messages.util.ts", "../../../../../../../node_modules/twenty-sdk/src/sdk/logic-function/agents/run-agent.ts", "../../../../../../../node_modules/twenty-shared/dist/ai/constants/agent-chat-assistant-mention-object-name-singular.const.mjs", "../../../../../../../node_modules/twenty-shared/dist/ai/utils/is-agent-chat-turn-end-event.util.mjs", "../../../../../../../node_modules/twenty-shared/dist/ai/utils/map-agent-message-part-to-ui-message-part.util.mjs", "../../../../../../../node_modules/twenty-shared/dist/ai/utils/map-agent-messages-to-ui-messages.util.mjs", "../../../../../../../node_modules/twenty-sdk/src/sdk/logic-function/agents/list-conversation-messages.ts", "../../../../../../../node_modules/twenty-sdk/src/sdk/logic-function/utils/stream-agent-chat-events.util.ts", "../../../../../../../node_modules/twenty-sdk/src/sdk/logic-function/agents/stream-conversation.ts", "../../../../../../../node_modules/twenty-sdk/src/sdk/logic-function/ai/ai.ts", "../../../../../../../node_modules/twenty-sdk/src/sdk/inbox/send-inbox-message.ts", "../../../../../../../node_modules/twenty-sdk/src/sdk/inbox/mentions/utils/sanitize-inbox-reference-label.util.ts", "../../../../../../../node_modules/twenty-sdk/src/sdk/inbox/mentions/inbox-mention.ts", "../../../../../../../node_modules/twenty-sdk/src/sdk/inbox/mentions/utils/compute-inbox-record-label.util.ts", "../../../../../../../node_modules/twenty-sdk/src/sdk/inbox/mentions/utils/find-inbox-label-identifier-field.util.ts", "../../../../../../../node_modules/twenty-sdk/src/sdk/inbox/mentions/utils/find-inbox-object-metadata-or-throw.util.ts", "../../../../../../../node_modules/twenty-sdk/src/sdk/inbox/mentions/inbox-reference-record.ts", "../../../../../../../node_modules/twenty-sdk/src/sdk/inbox/mentions/inbox-assistant-mention.ts", "../../../../../../../node_modules/twenty-sdk/src/sdk/inbox/attach-record-to-inbox-thread.ts", "../../../../../../../node_modules/twenty-sdk/src/sdk/inbox/detach-record-from-inbox-thread.ts", "../../../../../../../node_modules/twenty-sdk/src/sdk/inbox/archive-inbox-thread.ts", "../../../../../../../node_modules/twenty-sdk/src/sdk/logic-function/jobs/enqueue-job.ts", "../../../../../../../node_modules/twenty-sdk/src/sdk/logic-function/jobs/enqueue-jobs.ts", "../../../../../../../node_modules/twenty-sdk/src/sdk/logic-function/jobs/get-jobs.ts", "../../../../../../../node_modules/twenty-sdk/src/sdk/logic-function/timeline/create-timeline-activity.ts", "../../../../../../../node_modules/twenty-sdk/src/sdk/logic-function/key-value/kv.ts", "../../../../../../../node_modules/twenty-sdk/src/sdk/logic-function/response.ts", "../../../../../../../src/scavio/enqueue-workers.ts", "../../../../../../../node_modules/libphonenumber-js/metadata.min.json.js", "../../../../../../../node_modules/libphonenumber-js/min/exports/withMetadataArgument.js", "../../../../../../../node_modules/libphonenumber-js/source/tools/semver-compare.js", "../../../../../../../node_modules/libphonenumber-js/source/helpers/isObject.js", "../../../../../../../node_modules/libphonenumber-js/source/helpers/isCallingCode.js", "../../../../../../../node_modules/libphonenumber-js/source/metadata.js", "../../../../../../../node_modules/libphonenumber-js/source/helpers/mergeArrays.js", "../../../../../../../node_modules/libphonenumber-js/source/helpers/checkNumberLength.js", "../../../../../../../node_modules/libphonenumber-js/source/isPossible.js", "../../../../../../../node_modules/libphonenumber-js/source/helpers/matchesEntirely.js", "../../../../../../../node_modules/libphonenumber-js/source/helpers/getNumberType.js", "../../../../../../../node_modules/libphonenumber-js/source/isValid.js", "../../../../../../../node_modules/libphonenumber-js/source/helpers/isCountryCode.js", "../../../../../../../node_modules/libphonenumber-js/source/helpers/getCountryAndCallingCodeFromOneOfThem.js", "../../../../../../../node_modules/libphonenumber-js/source/helpers/getPossibleCountriesForNumber.js", "../../../../../../../node_modules/libphonenumber-js/source/constants.js", "../../../../../../../node_modules/libphonenumber-js/source/helpers/stripIddPrefix.js", "../../../../../../../node_modules/libphonenumber-js/source/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js", "../../../../../../../node_modules/libphonenumber-js/source/helpers/getCountryByNationalNumber.js", "../../../../../../../node_modules/libphonenumber-js/source/helpers/getCountryByCallingCode.js", "../../../../../../../node_modules/libphonenumber-js/source/helpers/extractNationalNumber.js", "../../../../../../../node_modules/libphonenumber-js/source/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js", "../../../../../../../node_modules/libphonenumber-js/source/helpers/extractCountryCallingCode.js", "../../../../../../../node_modules/libphonenumber-js/source/helpers/applyInternationalSeparatorStyle.js", "../../../../../../../node_modules/libphonenumber-js/source/helpers/formatNationalNumberUsingFormat.js", "../../../../../../../node_modules/libphonenumber-js/source/helpers/getIddPrefix.js", "../../../../../../../node_modules/libphonenumber-js/source/helpers/extension/createExtensionPattern.js", "../../../../../../../node_modules/libphonenumber-js/source/helpers/isViablePhoneNumber.js", "../../../../../../../node_modules/libphonenumber-js/source/helpers/RFC3966.js", "../../../../../../../node_modules/libphonenumber-js/source/format.js", "../../../../../../../node_modules/libphonenumber-js/source/PhoneNumber.js", "../../../../../../../node_modules/libphonenumber-js/source/ParseError.js", "../../../../../../../node_modules/libphonenumber-js/source/helpers/extension/extractExtension.js", "../../../../../../../node_modules/libphonenumber-js/source/helpers/parseDigits.js", "../../../../../../../node_modules/libphonenumber-js/source/parseIncompletePhoneNumber.js", "../../../../../../../node_modules/libphonenumber-js/source/helpers/extractPhoneContext.js", "../../../../../../../node_modules/libphonenumber-js/source/helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js", "../../../../../../../node_modules/libphonenumber-js/source/parse.js", "../../../../../../../node_modules/libphonenumber-js/source/parsePhoneNumberWithError_.js", "../../../../../../../node_modules/libphonenumber-js/source/normalizeArguments.js", "../../../../../../../node_modules/libphonenumber-js/source/parsePhoneNumber_.js", "../../../../../../../node_modules/libphonenumber-js/source/parsePhoneNumber.js", "../../../../../../../node_modules/libphonenumber-js/min/exports/parsePhoneNumber.js", "../../../../../../../src/scavio/clean-contacts.ts", "../../../../../../../src/scavio/build-company-update.ts", "../../../../../../../src/scavio/normalize-domain.ts", "../../../../../../../src/scavio/start-enrichment.ts", "../../../../../../../src/scavio/run-worker.ts", "../../../../../../../src/scavio/settings.ts"],
4
+ "sourcesContent": [null, null, null, null, "import { CoreApiClient } from 'twenty-client-sdk/core';\nimport { defineLogicFunction } from 'twenty-sdk/define';\n\nimport { LOGIC_FUNCTION_UNIVERSAL_IDENTIFIERS } from 'src/constants/universal-identifiers';\nimport { enrichCompany } from 'src/scavio/client';\nimport { createCompanyRepository } from 'src/scavio/company-repository';\nimport { WORKER_TIMEOUT_SECONDS } from 'src/scavio/constants';\nimport { type WorkerPayload } from 'src/scavio/enqueue';\nimport { enqueueWorkers } from 'src/scavio/enqueue-workers';\nimport { runWorker } from 'src/scavio/run-worker';\nimport { getApiKey } from 'src/scavio/settings';\n\nconst handler = async (payload: WorkerPayload) => {\n const apiKey = getApiKey();\n\n return runWorker({\n payload,\n repository: createCompanyRepository(new CoreApiClient()),\n enrich: (domain) => enrichCompany({ apiKey: apiKey ?? '', domain }),\n enqueueWorkers,\n apiKey,\n nowMs: () => Date.now(),\n nowIso: () => new Date().toISOString(),\n });\n};\n\nexport default defineLogicFunction({\n universalIdentifier: LOGIC_FUNCTION_UNIVERSAL_IDENTIFIERS.enrichWorker,\n name: 'scavio-enrich-worker',\n description:\n 'Background job: enriches a list of companies one after another through the Scavio API.',\n timeoutSeconds: WORKER_TIMEOUT_SECONDS,\n handler,\n});\n", "\n// Auto-generated stub for twenty-sdk/define injected by the Twenty CLI.\n// Real implementations would pull in zod, twenty-shared and ~1MB of code; at\n// runtime only `default.config.handler` is consumed, so tiny no-ops suffice.\nconst __defineFactoryStub = (config) => ({\n success: true,\n config,\n errors: [],\n});\n\nconst __anyHandler = {\n get(_target, prop) {\n if (prop === '__esModule') return true;\n if (prop === Symbol.toPrimitive) return () => '';\n if (typeof prop === 'symbol') return undefined;\n return new Proxy(() => undefined, __anyHandler);\n },\n apply() {\n return new Proxy(() => undefined, __anyHandler);\n },\n};\nconst __anyStub = new Proxy(() => undefined, __anyHandler);\n\nexport const createValidationResult = __defineFactoryStub;\nexport const defineAgent = __defineFactoryStub;\nexport const defineApplication = __defineFactoryStub;\nexport const defineApplicationRole = __defineFactoryStub;\nexport const defineCommandMenuItem = __defineFactoryStub;\nexport const defineConnectionProvider = __defineFactoryStub;\nexport const defineField = __defineFactoryStub;\nexport const defineFrontComponent = __defineFactoryStub;\nexport const defineHealthCheck = __defineFactoryStub;\nexport const defineIndex = __defineFactoryStub;\nexport const defineLogicFunction = __defineFactoryStub;\nexport const defineMcpServer = __defineFactoryStub;\nexport const defineMessagingProvider = __defineFactoryStub;\nexport const defineNavigationMenuItem = __defineFactoryStub;\nexport const defineObject = __defineFactoryStub;\nexport const definePageLayout = __defineFactoryStub;\nexport const definePageLayoutTab = __defineFactoryStub;\nexport const definePageLayoutWidget = __defineFactoryStub;\nexport const definePermissionFlag = __defineFactoryStub;\nexport const definePostInstallLogicFunction = __defineFactoryStub;\nexport const definePreInstallLogicFunction = __defineFactoryStub;\nexport const defineRelatedRecordPath = __defineFactoryStub;\nexport const defineRole = __defineFactoryStub;\nexport const defineSettingsFrontComponent = __defineFactoryStub;\nexport const defineSettingsMenuItem = __defineFactoryStub;\nexport const defineSkill = __defineFactoryStub;\nexport const defineTimelineActivityType = __defineFactoryStub;\nexport const defineUninstallLogicFunction = __defineFactoryStub;\nexport const defineValidationRule = __defineFactoryStub;\nexport const defineView = __defineFactoryStub;\nexport const defineViewField = __defineFactoryStub;\nexport const defineWorkflow = __defineFactoryStub;\nexport const AggregateOperations = {\"MIN\":\"MIN\",\"MAX\":\"MAX\",\"AVG\":\"AVG\",\"SUM\":\"SUM\",\"COUNT\":\"COUNT\",\"COUNT_UNIQUE_VALUES\":\"COUNT_UNIQUE_VALUES\",\"COUNT_EMPTY\":\"COUNT_EMPTY\",\"COUNT_NOT_EMPTY\":\"COUNT_NOT_EMPTY\",\"COUNT_TRUE\":\"COUNT_TRUE\",\"COUNT_FALSE\":\"COUNT_FALSE\",\"PERCENTAGE_EMPTY\":\"PERCENTAGE_EMPTY\",\"PERCENTAGE_NOT_EMPTY\":\"PERCENTAGE_NOT_EMPTY\"};\nexport const ApplicationHealthStatus = {\"OK\":\"OK\",\"SUCCESS\":\"SUCCESS\",\"INFO\":\"INFO\",\"WARNING\":\"WARNING\",\"ERROR\":\"ERROR\",\"NEUTRAL\":\"NEUTRAL\",\"UNKNOWN\":\"UNKNOWN\"};\nexport const CommandMenuItemAvailabilityType = {\"GLOBAL\":\"GLOBAL\",\"GLOBAL_OBJECT_CONTEXT\":\"GLOBAL_OBJECT_CONTEXT\",\"RECORD_SELECTION\":\"RECORD_SELECTION\",\"FALLBACK\":\"FALLBACK\"};\nexport const DateDisplayFormat = {\"RELATIVE\":\"RELATIVE\",\"USER_SETTINGS\":\"USER_SETTINGS\",\"CUSTOM\":\"CUSTOM\"};\nexport const FieldMetadataSettingsOnClickAction = {\"COPY\":\"COPY\",\"OPEN_LINK\":\"OPEN_LINK\",\"OPEN_IN_APP\":\"OPEN_IN_APP\"};\nexport const FieldType = {\"ACTOR\":\"ACTOR\",\"ADDRESS\":\"ADDRESS\",\"ARRAY\":\"ARRAY\",\"BOOLEAN\":\"BOOLEAN\",\"CURRENCY\":\"CURRENCY\",\"DATE\":\"DATE\",\"DATE_TIME\":\"DATE_TIME\",\"EMAILS\":\"EMAILS\",\"FILES\":\"FILES\",\"FULL_NAME\":\"FULL_NAME\",\"LINKS\":\"LINKS\",\"MORPH_RELATION\":\"MORPH_RELATION\",\"MULTI_SELECT\":\"MULTI_SELECT\",\"NUMBER\":\"NUMBER\",\"NUMERIC\":\"NUMERIC\",\"PHONES\":\"PHONES\",\"POSITION\":\"POSITION\",\"RATING\":\"RATING\",\"RAW_JSON\":\"RAW_JSON\",\"RELATION\":\"RELATION\",\"RICH_TEXT\":\"RICH_TEXT\",\"SELECT\":\"SELECT\",\"TEXT\":\"TEXT\",\"TS_VECTOR\":\"TS_VECTOR\",\"UUID\":\"UUID\"};\nexport const HTTPMethod = {\"GET\":\"GET\",\"POST\":\"POST\",\"PUT\":\"PUT\",\"PATCH\":\"PATCH\",\"DELETE\":\"DELETE\"};\nexport const IndexType = {\"BTREE\":\"BTREE\",\"GIN\":\"GIN\"};\nexport const NavigationMenuItemType = {\"VIEW\":\"VIEW\",\"FOLDER\":\"FOLDER\",\"LINK\":\"LINK\",\"OBJECT\":\"OBJECT\",\"RECORD\":\"RECORD\",\"PAGE_LAYOUT\":\"PAGE_LAYOUT\",\"AGENT_CHAT_CHANNEL\":\"AGENT_CHAT_CHANNEL\",\"NATIVE_PAGE\":\"NATIVE_PAGE\",\"WORKFLOW\":\"WORKFLOW\",\"AGENT\":\"AGENT\"};\nexport const NumberDataType = {\"FLOAT\":\"float\",\"INT\":\"int\",\"BIGINT\":\"bigint\"};\nexport const ObjectOpenRecordIn = {\"SIDE_PANEL\":\"SIDE_PANEL\",\"RECORD_PAGE\":\"RECORD_PAGE\",\"USER_CHOICE\":\"USER_CHOICE\"};\nexport const ObjectRecordGroupByDateGranularity = {\"DAY\":\"DAY\",\"MONTH\":\"MONTH\",\"QUARTER\":\"QUARTER\",\"YEAR\":\"YEAR\",\"WEEK\":\"WEEK\",\"DAY_OF_THE_WEEK\":\"DAY_OF_THE_WEEK\",\"MONTH_OF_THE_YEAR\":\"MONTH_OF_THE_YEAR\",\"QUARTER_OF_THE_YEAR\":\"QUARTER_OF_THE_YEAR\",\"NONE\":\"NONE\"};\nexport const OnDeleteAction = {\"CASCADE\":\"CASCADE\",\"RESTRICT\":\"RESTRICT\",\"SET_NULL\":\"SET_NULL\",\"NO_ACTION\":\"NO_ACTION\"};\nexport const PageLayoutTabLayoutMode = {\"GRID\":\"GRID\",\"VERTICAL_LIST\":\"VERTICAL_LIST\",\"CANVAS\":\"CANVAS\"};\nexport const PageLayoutType = {\"RECORD_INDEX\":\"RECORD_INDEX\",\"RECORD_PAGE\":\"RECORD_PAGE\",\"DASHBOARD\":\"DASHBOARD\",\"STANDALONE_PAGE\":\"STANDALONE_PAGE\",\"RECORD_FORM\":\"RECORD_FORM\"};\nexport const PageLayoutWidgetVerticalListHeightBehavior = {\"FIT_CONTENT\":\"FIT_CONTENT\",\"TAB_VIEWPORT\":\"TAB_VIEWPORT\"};\nexport const RecordFilterGroupLogicalOperator = {\"AND\":\"AND\",\"OR\":\"OR\"};\nexport const RelationType = {\"MANY_TO_ONE\":\"MANY_TO_ONE\",\"ONE_TO_MANY\":\"ONE_TO_MANY\"};\nexport const RowLevelPermissionPredicateGroupLogicalOperator = {\"AND\":\"AND\",\"OR\":\"OR\"};\nexport const RowLevelPermissionPredicateOperand = {\"IS\":\"IS\",\"IS_NOT_NULL\":\"IS_NOT_NULL\",\"IS_NOT\":\"IS_NOT\",\"LESS_THAN_OR_EQUAL\":\"LESS_THAN_OR_EQUAL\",\"GREATER_THAN_OR_EQUAL\":\"GREATER_THAN_OR_EQUAL\",\"IS_BEFORE\":\"IS_BEFORE\",\"IS_AFTER\":\"IS_AFTER\",\"CONTAINS\":\"CONTAINS\",\"DOES_NOT_CONTAIN\":\"DOES_NOT_CONTAIN\",\"IS_EMPTY\":\"IS_EMPTY\",\"IS_NOT_EMPTY\":\"IS_NOT_EMPTY\",\"IS_RELATIVE\":\"IS_RELATIVE\",\"IS_IN_PAST\":\"IS_IN_PAST\",\"IS_IN_FUTURE\":\"IS_IN_FUTURE\",\"IS_TODAY\":\"IS_TODAY\",\"VECTOR_SEARCH\":\"VECTOR_SEARCH\"};\nexport const SYSTEM_VIEW_KEYS = {\"INDEX\":\"INDEX\",\"FIELDS_WIDGET\":\"FIELDS_WIDGET\"};\nexport const StepLogicalOperator = {\"AND\":\"AND\",\"OR\":\"OR\"};\nexport const SystemPermissionFlag = /* @__PURE__ */ Object.defineProperties({\"API_KEYS_AND_WEBHOOKS\":\"beb99803-9a0e-588d-9c4b-3dd14d9cdf21\",\"WORKSPACE\":\"86a58859-a539-5fa8-ba18-a6aaddc811b6\",\"WORKSPACE_MEMBERS\":\"ec342166-2df7-53e7-aa9b-64992d6cb35f\",\"ROLES\":\"80f1e5ab-484c-5660-a5a1-0ee7413d8190\",\"DATA_MODEL\":\"f0c08013-3c9a-5489-bd45-a641fe5f085d\",\"SECURITY\":\"4a8b6016-1d3d-5c94-bbe8-a74c5f32335a\",\"WORKFLOWS\":\"6189e7bd-4051-5752-b6b1-5f31358fbaf1\",\"IMPERSONATE\":\"dd2274d1-bbd5-551d-bcf2-3147539cef11\",\"SSO_BYPASS\":\"2e9cfdc0-4669-58ab-b241-b6c3c14d96df\",\"APPLICATIONS\":\"9faa55f7-2606-566b-9e1d-aefbedbd0136\",\"MARKETPLACE_APPS\":\"3a37e2f5-d3e4-56d6-b541-adf0237468ff\",\"LAYOUTS\":\"458d1ee5-ba12-5f4e-9d17-6f8c11fcd7fd\",\"BILLING\":\"24b66701-ed97-51e4-aa63-794e1b31414c\",\"AI_SETTINGS\":\"e8cc4a30-c120-5925-8f5d-73d6a2247fee\",\"AI\":\"1c7f09a7-367d-568b-a0e8-c274eccd6ee3\",\"VIEWS\":\"c68354c4-535d-53a9-848a-e3a6774b5fb8\",\"UPLOAD_FILE\":\"dc6931a9-44bd-5164-a983-3db5db837f54\",\"DOWNLOAD_FILE\":\"6edf252f-228e-5e2f-9706-7bab7a796fd3\",\"SEND_EMAIL_TOOL\":\"19f382a8-689d-5792-a18c-737f0ce9025f\",\"CREATE_CALENDAR_EVENT_TOOL\":\"5b8c104e-24d3-4e89-986b-1d9208df6cf4\",\"HTTP_REQUEST_TOOL\":\"1bf49cf1-bb8f-5eb9-809a-5f34ea79fc6a\",\"CODE_INTERPRETER_TOOL\":\"11f31c3a-7042-54b7-a2dd-ae31dd9e9fa2\",\"IMPORT_CSV\":\"c4912536-a4db-5af9-85ac-be2919c24c5e\",\"EXPORT_CSV\":\"88efced9-ca6d-5316-a695-f1b9158e7370\",\"CONNECTED_ACCOUNTS\":\"e5f63b2d-5369-5df6-8f32-a8bd9e79e653\",\"PROFILE_INFORMATION\":\"7c13f23f-78d8-5e7d-8963-a7c8772fb4e8\"}, {\"USER_APPS\":{\"value\":\"e5f63b2d-5369-5df6-8f32-a8bd9e79e653\"},\"WORKSPACE_APPS\":{\"value\":\"9faa55f7-2606-566b-9e1d-aefbedbd0136\"}});\nexport const ViewCalendarLayout = {\"DAY\":\"DAY\",\"WEEK\":\"WEEK\",\"MONTH\":\"MONTH\"};\nexport const ViewFilterGroupLogicalOperator = {\"AND\":\"AND\",\"OR\":\"OR\",\"NOT\":\"NOT\"};\nexport const ViewFilterOperand = {\"IS\":\"IS\",\"IS_NOT_NULL\":\"IS_NOT_NULL\",\"IS_NOT\":\"IS_NOT\",\"LESS_THAN_OR_EQUAL\":\"LESS_THAN_OR_EQUAL\",\"GREATER_THAN_OR_EQUAL\":\"GREATER_THAN_OR_EQUAL\",\"IS_BEFORE\":\"IS_BEFORE\",\"IS_AFTER\":\"IS_AFTER\",\"CONTAINS\":\"CONTAINS\",\"DOES_NOT_CONTAIN\":\"DOES_NOT_CONTAIN\",\"IS_EMPTY\":\"IS_EMPTY\",\"IS_NOT_EMPTY\":\"IS_NOT_EMPTY\",\"IS_RELATIVE\":\"IS_RELATIVE\",\"IS_IN_PAST\":\"IS_IN_PAST\",\"IS_IN_FUTURE\":\"IS_IN_FUTURE\",\"IS_TODAY\":\"IS_TODAY\",\"VECTOR_SEARCH\":\"VECTOR_SEARCH\"};\nexport const ViewFilterOperandDeprecated = {\"Is\":\"is\",\"IsNotNull\":\"isNotNull\",\"IsNot\":\"isNot\",\"LessThanOrEqual\":\"lessThan\",\"GreaterThanOrEqual\":\"greaterThan\",\"IsBefore\":\"isBefore\",\"IsAfter\":\"isAfter\",\"Contains\":\"contains\",\"DoesNotContain\":\"doesNotContain\",\"IsEmpty\":\"isEmpty\",\"IsNotEmpty\":\"isNotEmpty\",\"IsRelative\":\"isRelative\",\"IsInPast\":\"isInPast\",\"IsInFuture\":\"isInFuture\",\"IsToday\":\"isToday\"};\nexport const ViewKey = {\"INDEX\":\"INDEX\"};\nexport const ViewOpenRecordIn = {\"SIDE_PANEL\":\"SIDE_PANEL\",\"RECORD_PAGE\":\"RECORD_PAGE\"};\nexport const ViewSortDirection = {\"ASC\":\"ASC\",\"DESC\":\"DESC\"};\nexport const ViewType = {\"TABLE\":\"TABLE\",\"KANBAN\":\"KANBAN\",\"CALENDAR\":\"CALENDAR\",\"LIST\":\"LIST\",\"FIELDS_WIDGET\":\"FIELDS_WIDGET\",\"TABLE_WIDGET\":\"TABLE_WIDGET\",\"KANBAN_WIDGET\":\"KANBAN_WIDGET\",\"LIST_WIDGET\":\"LIST_WIDGET\",\"CALENDAR_WIDGET\":\"CALENDAR_WIDGET\"};\nexport const ViewVisibility = {\"WORKSPACE\":\"WORKSPACE\",\"UNLISTED\":\"UNLISTED\"};\nexport const WidgetType = {\"VIEW\":\"VIEW\",\"IFRAME\":\"IFRAME\",\"FIELD\":\"FIELD\",\"FIELDS\":\"FIELDS\",\"GRAPH\":\"GRAPH\",\"STANDALONE_RICH_TEXT\":\"STANDALONE_RICH_TEXT\",\"TIMELINE\":\"TIMELINE\",\"TASKS\":\"TASKS\",\"NOTES\":\"NOTES\",\"FILES\":\"FILES\",\"EMAILS\":\"EMAILS\",\"CALENDAR\":\"CALENDAR\",\"FIELD_RICH_TEXT\":\"FIELD_RICH_TEXT\",\"WORKFLOW\":\"WORKFLOW\",\"WORKFLOW_VERSION\":\"WORKFLOW_VERSION\",\"WORKFLOW_RUN\":\"WORKFLOW_RUN\",\"FRONT_COMPONENT\":\"FRONT_COMPONENT\",\"RECORD_TABLE\":\"RECORD_TABLE\",\"EMAIL_THREAD\":\"EMAIL_THREAD\",\"CALL_RECORDING_SUMMARY\":\"CALL_RECORDING_SUMMARY\",\"CALL_RECORDING_TRANSCRIPT\":\"CALL_RECORDING_TRANSCRIPT\",\"MESSAGE_CAMPAIGN_BODY\":\"MESSAGE_CAMPAIGN_BODY\",\"MESSAGE_CAMPAIGN_DETAILS\":\"MESSAGE_CAMPAIGN_DETAILS\",\"FORM_FIELD\":\"FORM_FIELD\",\"CHAT_THREADS\":\"CHAT_THREADS\",\"CHAT\":\"CHAT\"};\nexport const STANDARD_OBJECT = __anyStub;\nexport const STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS = __anyStub;\nexport const STANDARD_PAGE_LAYOUT = __anyStub;\nexport const STANDARD_PAGE_LAYOUT_UNIVERSAL_IDENTIFIERS = __anyStub;\nexport const canAccessFullAdminPanel = __anyStub;\nexport const canImpersonate = __anyStub;\nexport const currentView = __anyStub;\nexport const every = __anyStub;\nexport const everyDefined = __anyStub;\nexport const everyEquals = __anyStub;\nexport const favoriteRecordIds = __anyStub;\nexport const featureFlags = __anyStub;\nexport const getFieldUniversalIdentifier = __anyStub;\nexport const getSystemPageLayoutTabUniversalIdentifier = __anyStub;\nexport const getSystemRecordPageLayoutUniversalIdentifier = __anyStub;\nexport const getSystemRelationFieldUniversalIdentifier = __anyStub;\nexport const getSystemViewFieldUniversalIdentifier = __anyStub;\nexport const getSystemViewUniversalIdentifier = __anyStub;\nexport const hasAnySoftDeleteFilterOnView = __anyStub;\nexport const includes = __anyStub;\nexport const includesEvery = __anyStub;\nexport const isDashboardPageLayoutInEditMode = __anyStub;\nexport const isDefined = __anyStub;\nexport const isInSidePanel = __anyStub;\nexport const isLayoutCustomizationModeEnabled = __anyStub;\nexport const isNonEmptyString = __anyStub;\nexport const isSelectAll = __anyStub;\nexport const none = __anyStub;\nexport const noneDefined = __anyStub;\nexport const noneEquals = __anyStub;\nexport const numberOfSelectedRecords = __anyStub;\nexport const objectMetadataItem = __anyStub;\nexport const objectMetadataLabel = __anyStub;\nexport const objectPermissions = __anyStub;\nexport const pageType = __anyStub;\nexport const ruleExpression = __anyStub;\nexport const selectedRecords = __anyStub;\nexport const some = __anyStub;\nexport const someDefined = __anyStub;\nexport const someEquals = __anyStub;\nexport const someNonEmptyString = __anyStub;\nexport const targetObjectReadPermissions = __anyStub;\nexport const targetObjectWritePermissions = __anyStub;\nexport const validateFields = __anyStub;\n", "export const APP_DISPLAY_NAME = 'Scavio Company Enrichment';\nexport const APP_DESCRIPTION =\n \"Fill company emails, phones, social links and the owner's name from each company's own website.\";\nexport const APPLICATION_UNIVERSAL_IDENTIFIER = '7df36bb6-a3f3-41cd-a955-242b9508e63c';\nexport const DEFAULT_ROLE_UNIVERSAL_IDENTIFIER = '2744af0c-2361-48bd-9b9a-7cafffd5e372';\nexport const HEALTH_CHECK_UNIVERSAL_IDENTIFIER = '09069cc5-52c1-413e-9db9-8e752a9d3341';\n\nexport const APPLICATION_VARIABLE_UNIVERSAL_IDENTIFIERS = {\n apiKey: 'ca192689-bab1-4351-b474-e485aac44e52',\n parallelRequests: '42152366-d912-4d23-be7a-cfe7d43eb69e',\n} as const;\n\nexport const FIELD_UNIVERSAL_IDENTIFIERS = {\n status: '98fb6be3-8f51-4dbb-b876-1bc62c95c4d3',\n lastEnrichedAt: 'a077d5f5-926e-4f57-96a3-d22fcbae43d7',\n note: '23600ea9-402a-45e4-9248-f16e6e197355',\n emails: 'c9f715e9-b113-47f4-9a5d-d9f0853f6c43',\n phones: '2ba91ee1-1ef5-4a8d-bb90-604e463a9cbf',\n socialProfiles: '606f5b14-a5d6-46b4-b7fc-5fa3a28dee5e',\n contactPage: 'a279c392-b8fc-4356-a292-d2ca7d5152d4',\n ownerName: '27540976-1871-4a57-acb7-24014f6c001f',\n ownerTitle: 'bc4f4923-4a48-45d1-a4a8-4b8357a3ea38',\n ownerEmail: 'c81344e1-1937-467b-8d22-9c1b62f2ecf0',\n} as const;\n\nexport const STATUS_OPTION_UNIVERSAL_IDENTIFIERS = {\n QUEUED: 'c529b9b0-c0c9-4e72-9d14-d8495c0541de',\n ENRICHED: '9082d22e-59c4-42fb-8cdd-e645e569691d',\n NO_CONTACTS: '9671c0c3-75b2-4849-98df-2bc51e1a1fe1',\n NO_WEBSITE: '256b1d94-0b8d-4977-b7c2-611cd202adf3',\n UNREACHABLE: 'a20d585a-44eb-4c33-b25f-4f6fb16b2b0a',\n OUT_OF_CREDITS: 'cc92beb9-b0d6-4192-bdb0-b85186f319dc',\n FAILED: '157606a3-650b-486f-b3ed-8dadd11edab2',\n} as const;\n\nexport const LOGIC_FUNCTION_UNIVERSAL_IDENTIFIERS = {\n startEnrichment: '3299b3b9-f0cd-4ed8-aa81-5ec2b4650606',\n enrichWorker: 'd677dd12-557a-4a33-b285-d360b879ebdd',\n} as const;\n\nexport const START_ENRICHMENT_ROUTE_PATH = '/scavio/enrich-companies';\n\nexport const FRONT_COMPONENT_UNIVERSAL_IDENTIFIERS = {\n enrichCompanies: '849a48f1-ea4f-4dd7-96cb-e8ffc052a680',\n} as const;\n\nexport const COMMAND_MENU_ITEM_UNIVERSAL_IDENTIFIERS = {\n enrichCompanies: '848126d6-e2b1-4945-b98d-3a65b8c509f2',\n} as const;\n\nexport const VIEW_UNIVERSAL_IDENTIFIERS = {\n enrichedCompanies: '35144e37-dfb9-4f74-86be-bf1d742af89d',\n} as const;\n\nexport const VIEW_FIELD_UNIVERSAL_IDENTIFIERS = [\n 'acc2c551-7b71-4f7e-b7bf-fc61c46ec4bb',\n '7dc92834-12fe-4a62-837b-e60c97addb1f',\n 'c9a82904-585e-4a70-b3a6-c53f7e9b5d16',\n '415f78b3-fd86-40bf-9a2e-74f073b5b155',\n '4ee8572d-1aff-44d0-bb88-919d2bb85215',\n '9e087fdd-f0f2-4121-9fdb-ff688970159c',\n '1613ec1a-7025-45a3-8aa7-3924cd28cfed',\n 'daa2e49d-bd8e-4b69-8111-05eebce8166a',\n 'b236d8e6-811b-44bc-9eda-bd9aad7db3ba',\n '96352d1e-9d9c-4e5d-9d8e-2439e2b2ed20',\n 'a5617744-b3ff-4eef-9189-5d517354a91b',\n 'ec16f4a3-ef46-4c07-9bc8-50578249566b',\n '01c9c4b1-ecbc-4c11-9db0-066ac84d09d9',\n] as const;\n", "export const SCAVIO_API_KEY_ENV_VAR_NAME = 'SCAVIO_API_KEY';\nexport const PARALLEL_REQUESTS_ENV_VAR_NAME = 'SCAVIO_PARALLEL_REQUESTS';\n\nexport const SCAVIO_BASE_URL = 'https://api.scavio.dev';\nexport const SCAVIO_ENRICH_PATH = '/api/v1/company/enrich';\nexport const SCAVIO_USAGE_PATH = '/api/v1/usage';\nexport const SCAVIO_SIGNUP_URL = 'https://scavio.dev/?via=twenty';\n\nexport const CLIENT_SOURCE_HEADER_VALUE = 'twenty-app';\nexport const USER_AGENT = 'scavio-twenty/0.1.0';\n\nexport const DEFAULT_PARALLEL_REQUESTS = 1;\nexport const MAX_PARALLEL_REQUESTS = 10;\n\n// The enrich endpoint reads several pages of a site; measured 8-32 s on 20\n// real sites (2026-11-14), with a long tail in production logs.\nexport const ENRICH_REQUEST_TIMEOUT_MS = 180_000;\n\n// The worker runs for at most 900 s. It stops starting new companies once\n// this much time has passed, so one more slow request still fits.\nexport const WORKER_TIMEOUT_SECONDS = 900;\nexport const WORKER_START_BUDGET_MS = 600_000;\n\n// A 429 hands the rest of the chain back to the queue after this delay.\nexport const RATE_LIMIT_RETRY_DELAY_MS = 30_000;\nexport const MAX_RATE_LIMIT_RETRIES = 20;\n\nexport const MAX_COMPANIES_PER_RUN = 1000;\nexport const MAX_EMAILS = 10;\nexport const MAX_PHONES = 5;\n", "import {\n CLIENT_SOURCE_HEADER_VALUE,\n ENRICH_REQUEST_TIMEOUT_MS,\n SCAVIO_BASE_URL,\n SCAVIO_ENRICH_PATH,\n SCAVIO_USAGE_PATH,\n USER_AGENT,\n} from 'src/scavio/constants';\nimport {\n type EnrichOutcome,\n type ScavioEnrichResponse,\n} from 'src/scavio/types';\n\ntype FetchLike = typeof fetch;\n\nconst buildHeaders = (apiKey: string): Record<string, string> => ({\n Authorization: `Bearer ${apiKey}`,\n 'Content-Type': 'application/json',\n 'User-Agent': USER_AGENT,\n 'x-client-source': CLIENT_SOURCE_HEADER_VALUE,\n});\n\nconst readErrorMessage = async (response: Response): Promise<string> => {\n try {\n const body = (await response.json()) as { error?: unknown };\n if (typeof body?.error === 'string' && body.error !== '') {\n return body.error.slice(0, 300);\n }\n } catch {\n // Not JSON: fall through to the status line.\n }\n\n return `Scavio answered HTTP ${response.status}.`;\n};\n\nconst isScavioEnrichResponse = (\n value: unknown,\n): value is ScavioEnrichResponse => {\n const data = (value as { data?: { company?: unknown } } | null)?.data;\n\n return typeof data === 'object' && data !== null &&\n typeof data.company === 'object' && data.company !== null;\n};\n\n// One enrich call. Never throws and never retries; the caller decides what\n// an outcome means for the rest of the run. The key only travels in the\n// Authorization header and is never part of a returned message.\nexport const enrichCompany = async ({\n apiKey,\n domain,\n fetchImpl = fetch,\n timeoutMs = ENRICH_REQUEST_TIMEOUT_MS,\n}: {\n apiKey: string;\n domain: string;\n fetchImpl?: FetchLike;\n timeoutMs?: number;\n}): Promise<EnrichOutcome> => {\n const controller = new AbortController();\n const timer = setTimeout(() => controller.abort(), timeoutMs);\n\n try {\n const response = await fetchImpl(`${SCAVIO_BASE_URL}${SCAVIO_ENRICH_PATH}`, {\n method: 'POST',\n headers: buildHeaders(apiKey),\n body: JSON.stringify({ url: domain }),\n signal: controller.signal,\n });\n\n switch (response.status) {\n case 200: {\n const body: unknown = await response.json();\n if (!isScavioEnrichResponse(body)) {\n return { kind: 'error', message: 'Scavio returned an unexpected response.' };\n }\n\n return { kind: 'ok', response: body };\n }\n case 400:\n return { kind: 'invalid', message: await readErrorMessage(response) };\n case 401:\n case 403:\n return { kind: 'auth' };\n case 402:\n return { kind: 'credits' };\n case 429:\n return { kind: 'rateLimited' };\n case 502:\n return { kind: 'unreachable' };\n default:\n return { kind: 'error', message: await readErrorMessage(response) };\n }\n } catch (error) {\n const aborted = error instanceof Error && error.name === 'AbortError';\n\n return {\n kind: 'error',\n message: aborted\n ? 'Scavio did not answer in time. Run the enrichment again for this company.'\n : 'Scavio could not be reached. Run the enrichment again for this company.',\n };\n } finally {\n clearTimeout(timer);\n }\n};\n\nexport type KeyCheck =\n | { kind: 'ok'; creditBalance: number | null }\n | { kind: 'auth' }\n | { kind: 'error' };\n\n// Free call (no credit) used by the health check.\nexport const checkApiKey = async ({\n apiKey,\n fetchImpl = fetch,\n}: {\n apiKey: string;\n fetchImpl?: FetchLike;\n}): Promise<KeyCheck> => {\n try {\n const response = await fetchImpl(`${SCAVIO_BASE_URL}${SCAVIO_USAGE_PATH}`, {\n method: 'GET',\n headers: buildHeaders(apiKey),\n signal: AbortSignal.timeout(15_000),\n });\n\n if (response.status === 401 || response.status === 403) {\n return { kind: 'auth' };\n }\n if (!response.ok) {\n return { kind: 'error' };\n }\n\n const body = (await response.json()) as { credit_balance?: unknown };\n\n return {\n kind: 'ok',\n creditBalance:\n typeof body?.credit_balance === 'number' ? body.credit_balance : null,\n };\n } catch {\n return { kind: 'error' };\n }\n};\n", "import { type CoreApiClient } from 'twenty-client-sdk/core';\n\nexport type CompanyRecord = {\n id: string;\n name?: string | null;\n domainName?: { primaryLinkUrl?: string | null } | null;\n linkedinLink?: { primaryLinkUrl?: string | null } | null;\n scavioEnrichmentStatus?: string | null;\n};\n\nexport type CompanyRepository = {\n read: (ids: string[]) => Promise<CompanyRecord[]>;\n update: (id: string, data: Record<string, unknown>) => Promise<void>;\n updateMany: (ids: string[], data: Record<string, unknown>) => Promise<void>;\n};\n\nconst PAGE_SIZE = 200;\n\nexport const createCompanyRepository = (client: CoreApiClient): CompanyRepository => ({\n read: async (ids) => {\n const records: CompanyRecord[] = [];\n\n for (let start = 0; start < ids.length; start += PAGE_SIZE) {\n const page = ids.slice(start, start + PAGE_SIZE);\n const result = (await client.query({\n companies: {\n __args: { filter: { id: { in: page } }, first: page.length },\n edges: {\n node: {\n id: true,\n name: true,\n domainName: { primaryLinkUrl: true },\n linkedinLink: { primaryLinkUrl: true },\n scavioEnrichmentStatus: true,\n },\n },\n },\n })) as { companies?: { edges?: { node?: CompanyRecord }[] } };\n\n for (const edge of result.companies?.edges ?? []) {\n if (edge?.node?.id) {\n records.push(edge.node);\n }\n }\n }\n\n return records;\n },\n update: async (id, data) => {\n await client.mutation({\n updateCompany: { __args: { id, data }, id: true },\n });\n },\n updateMany: async (ids, data) => {\n for (let start = 0; start < ids.length; start += PAGE_SIZE) {\n await client.mutation({\n updateCompanies: {\n __args: { filter: { id: { in: ids.slice(start, start + PAGE_SIZE) } }, data },\n id: true,\n },\n });\n }\n },\n});\n", "import { isNull as e, isUndefined as t } from \"@sniptt/guards\";\n//#region src/utils/validation/isDefined.ts\nvar n = (n) => !t(n) && !e(n);\n//#endregion\nexport { n as isDefined };\n", "import { isNonEmptyString as e } from \"@sniptt/guards\";\n//#region src/logic-function/json-schema-to-input-schema.ts\nvar t = (n) => {\n\tlet r = { type: \"unknown\" };\n\tswitch (n.type) {\n\t\tcase \"string\":\n\t\t\tr.type = \"string\";\n\t\t\tbreak;\n\t\tcase \"number\":\n\t\tcase \"integer\":\n\t\t\tr.type = \"number\";\n\t\t\tbreak;\n\t\tcase \"boolean\":\n\t\t\tr.type = \"boolean\";\n\t\t\tbreak;\n\t\tcase \"array\":\n\t\t\tr.type = \"array\", n.items && (r.items = t(n.items));\n\t\t\tbreak;\n\t\tcase \"object\":\n\t\t\tr.type = \"object\", n.properties && (r.properties = Object.fromEntries(Object.entries(n.properties).map(([e, n]) => [e, t(n)])));\n\t\t\tbreak;\n\t\tcase \"record\":\n\t\t\tr.type = \"record\";\n\t\t\tbreak;\n\t\tcase \"records\":\n\t\t\tr.type = \"records\";\n\t\t\tbreak;\n\t\tdefault: r.type = \"unknown\";\n\t}\n\treturn Array.isArray(n.enum) && (r.enum = n.enum.filter((e) => typeof e == \"string\")), n.multiline === !0 && (r.multiline = !0), e(n.label) && (r.label = n.label), e(n.objectUniversalIdentifier) && (r.objectUniversalIdentifier = n.objectUniversalIdentifier), r;\n}, n = (e) => [t(e)];\n//#endregion\nexport { n as jsonSchemaToInputSchema };\n", "//#region src/logic-function/retryable-logic-function.error.ts\nvar e = \"RetryableLogicFunctionError\", t = class extends Error {\n\tconstructor(t) {\n\t\tsuper(t), this.name = e;\n\t}\n};\n//#endregion\nexport { e as RETRYABLE_LOGIC_FUNCTION_ERROR_NAME, t as RetryableLogicFunctionError };\n", "// Thrown when the platform asks the SDK to operate on a connection whose\n// OAuth refresh failed permanently (`authFailedAt` is set). The end user\n// must reconnect from the app's settings tab — the app cannot recover on\n// its own.\n//\n// `listConnections` filters these out by default (the user can't act on\n// them anyway). `getConnection` throws this when the looked-up connection\n// is in this state, so a stored connection id can be safely retried until\n// it works again.\nexport class AppConnectionAuthFailedError extends Error {\n readonly connectionId: string;\n\n constructor(connectionId: string) {\n super(\n `App connection ${connectionId} requires the user to reconnect ` +\n `(authFailedAt is set). Surface a \"Reconnect\" prompt in your UI.`,\n );\n this.name = 'AppConnectionAuthFailedError';\n this.connectionId = connectionId;\n }\n}\n", "//#region src/application-runtime/constants/ConnectionScopeByLegacyVisibility.ts\nvar e = {\n\tuser: \"USER\",\n\tworkspace: \"WORKSPACE\"\n};\n//#endregion\nexport { e as CONNECTION_SCOPE_BY_LEGACY_VISIBILITY };\n", "//#region src/application-runtime/constants/DefaultApiUrlName.ts\nvar e = \"TWENTY_API_URL\";\n//#endregion\nexport { e as DEFAULT_API_URL_NAME };\n", "//#region src/application-runtime/constants/DefaultAppAccessTokenName.ts\nvar e = \"TWENTY_APP_ACCESS_TOKEN\";\n//#endregion\nexport { e as DEFAULT_APP_ACCESS_TOKEN_NAME };\n", "//#region src/application-runtime/constants/DefaultAppApplicationAccessTokenName.ts\nvar e = \"TWENTY_APP_APPLICATION_ACCESS_TOKEN\";\n//#endregion\nexport { e as DEFAULT_APP_APPLICATION_ACCESS_TOKEN_NAME };\n", "//#region src/application-runtime/constants/DefaultInternalApiUrlName.ts\nvar e = \"TWENTY_INTERNAL_API_URL\";\n//#endregion\nexport { e as DEFAULT_INTERNAL_API_URL_NAME };\n", "//#region src/application-runtime/constants/LegacyConnectionVisibilityByScope.ts\nvar e = {\n\tUSER: \"user\",\n\tWORKSPACE: \"workspace\"\n};\n//#endregion\nexport { e as LEGACY_CONNECTION_VISIBILITY_BY_SCOPE };\n", "import { DEFAULT_API_URL_NAME as e } from \"../constants/DefaultApiUrlName.mjs\";\nimport { DEFAULT_INTERNAL_API_URL_NAME as t } from \"../constants/DefaultInternalApiUrlName.mjs\";\nimport { isNonEmptyString as n } from \"@sniptt/guards\";\n//#region src/application-runtime/utils/resolveApiUrlFromEnvironment.ts\nvar r = (r) => {\n\tlet i = r[t];\n\treturn n(i) ? i : r[e];\n};\n//#endregion\nexport { r as resolveApiUrlFromEnvironment };\n", "import { LEGACY_CONNECTION_VISIBILITY_BY_SCOPE } from 'twenty-shared/application-runtime';\n\nimport { type AppConnection } from '@/sdk/logic-function/connections/types/app-connection.type';\n\ntype WithoutVisibility<TConnection> = TConnection extends unknown\n ? Omit<TConnection, 'visibility'>\n : never;\n\nexport type AppConnectionWithoutVisibility = WithoutVisibility<AppConnection>;\n\nexport const withLegacyConnectionVisibility = (\n connection: AppConnectionWithoutVisibility,\n): AppConnection => ({\n ...connection,\n visibility: LEGACY_CONNECTION_VISIBILITY_BY_SCOPE[connection.scope],\n});\n", "import {\n DEFAULT_APP_ACCESS_TOKEN_NAME,\n DEFAULT_APP_APPLICATION_ACCESS_TOKEN_NAME,\n} from 'twenty-shared/application-runtime';\n\n// These reach the application's own resources, so prefer the application token when the runtime injects one\nexport const getApplicationAccessToken = (): string | undefined =>\n process.env[DEFAULT_APP_APPLICATION_ACCESS_TOKEN_NAME] ??\n process.env[DEFAULT_APP_ACCESS_TOKEN_NAME];\n\n// acts as whoever triggered the run, like the client SDK's default runAs\nexport const getCallerAccessToken = (): string | undefined =>\n process.env[DEFAULT_APP_ACCESS_TOKEN_NAME] ??\n process.env[DEFAULT_APP_APPLICATION_ACCESS_TOKEN_NAME];\n", "import { isNonEmptyString } from '@sniptt/guards';\nimport {\n DEFAULT_API_URL_NAME,\n DEFAULT_APP_ACCESS_TOKEN_NAME,\n DEFAULT_APP_APPLICATION_ACCESS_TOKEN_NAME,\n resolveApiUrlFromEnvironment,\n} from 'twenty-shared/application-runtime';\n\nimport {\n getApplicationAccessToken,\n getCallerAccessToken,\n} from '@/sdk/utils/get-application-access-token';\n\nexport const getApplicationApiConfigOrThrow = ({\n caller,\n isActingAsCaller = false,\n}: {\n caller: string;\n isActingAsCaller?: boolean;\n}): { apiUrl: string; accessToken: string } => {\n const apiUrl = resolveApiUrlFromEnvironment(process.env);\n const accessToken = isActingAsCaller\n ? getCallerAccessToken()\n : getApplicationAccessToken();\n\n if (!isNonEmptyString(apiUrl) || !isNonEmptyString(accessToken)) {\n throw new Error(\n `${caller}() requires the app runtime env vars ` +\n `${DEFAULT_API_URL_NAME} and ${DEFAULT_APP_APPLICATION_ACCESS_TOKEN_NAME} ` +\n `(or ${DEFAULT_APP_ACCESS_TOKEN_NAME}).`,\n );\n }\n\n return { apiUrl, accessToken };\n};\n", "import { getApplicationApiConfigOrThrow } from '@/sdk/logic-function/utils/get-application-api-config-or-throw.util';\n\nexport const postGraphqlRequest = async <TVariables, TData>({\n query,\n variables,\n caller,\n signal,\n isActingAsCaller = false,\n}: {\n query: string;\n variables: TVariables;\n caller: string;\n signal?: AbortSignal;\n isActingAsCaller?: boolean;\n}): Promise<TData> => {\n const { apiUrl, accessToken } = getApplicationApiConfigOrThrow({\n caller,\n isActingAsCaller,\n });\n\n const response = await fetch(`${apiUrl}/metadata`, {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json',\n Authorization: `Bearer ${accessToken}`,\n },\n body: JSON.stringify({ query, variables }),\n signal,\n });\n\n if (!response.ok) {\n throw new Error(\n `${caller}() failed: HTTP ${response.status} ${response.statusText}`,\n );\n }\n\n const body = (await response.json()) as {\n data?: TData;\n errors?: { message: string }[];\n };\n\n if (body.errors && body.errors.length > 0) {\n throw new Error(\n `${caller}() failed: ${body.errors.map((error) => error.message).join(', ')}`,\n );\n }\n\n if (!body.data) {\n throw new Error(`${caller}() failed: response contained no data.`);\n }\n\n return body.data;\n};\n", "import { AppConnectionAuthFailedError } from '@/sdk/logic-function/connections/errors/app-connection-auth-failed.error';\nimport { type AppConnection } from '@/sdk/logic-function/connections/types/app-connection.type';\nimport {\n type AppConnectionWithoutVisibility,\n withLegacyConnectionVisibility,\n} from '@/sdk/logic-function/connections/utils/with-legacy-connection-visibility.util';\nimport { postGraphqlRequest } from '@/sdk/logic-function/utils/post-graphql-request.util';\n\nconst GET_APP_CONNECTION_QUERY = `\n query GetAppConnection($id: ID!) {\n appConnection(id: $id) {\n id\n providerName\n name\n handle\n externalAccountId\n scope\n userWorkspaceId\n workspaceMemberId\n providerType\n accessToken\n scopes\n authFailedAt\n authFailedReason\n }\n }\n`;\n\nexport const getConnection = async (id: string): Promise<AppConnection> => {\n const { appConnection } = await postGraphqlRequest<\n { id: string },\n { appConnection: AppConnectionWithoutVisibility }\n >({\n query: GET_APP_CONNECTION_QUERY,\n variables: { id },\n caller: 'getConnection',\n });\n\n if (appConnection.authFailedAt !== null) {\n throw new AppConnectionAuthFailedError(appConnection.id);\n }\n\n return withLegacyConnectionVisibility(appConnection);\n};\n", "import { isNonEmptyString as e } from \"@sniptt/guards\";\n//#region src/utils/strings/capitalize.ts\nvar t = (t) => e(t) ? t.charAt(0).toUpperCase() + t.slice(1) : \"\";\n//#endregion\nexport { t as capitalize };\n", "//#region src/ai/utils/format-record-reference.util.ts\nvar e = ({ objectNameSingular: e, recordId: t, displayName: n }) => `[[record:${e}:${t}:${n}]]`;\n//#endregion\nexport { e as formatRecordReference };\n", "import { CONNECTION_SCOPE_BY_LEGACY_VISIBILITY } from 'twenty-shared/application-runtime';\nimport { isDefined } from 'twenty-shared/utils';\n\nimport { type AppConnection } from '@/sdk/logic-function/connections/types/app-connection.type';\nimport {\n type AppConnectionWithoutVisibility,\n withLegacyConnectionVisibility,\n} from '@/sdk/logic-function/connections/utils/with-legacy-connection-visibility.util';\nimport { postGraphqlRequest } from '@/sdk/logic-function/utils/post-graphql-request.util';\n\nconst LIST_APP_CONNECTIONS_QUERY = `\n query ListAppConnections($filter: ListAppConnectionsInput) {\n appConnections(filter: $filter) {\n id\n providerName\n name\n handle\n externalAccountId\n scope\n userWorkspaceId\n workspaceMemberId\n providerType\n accessToken\n scopes\n authFailedAt\n authFailedReason\n }\n }\n`;\n\nexport type ListConnectionsFilter = {\n providerName?: string;\n userWorkspaceId?: string;\n scope?: AppConnection['scope'];\n /** @deprecated Use `scope` instead. */\n visibility?: AppConnection['visibility'];\n};\n\nexport const listConnections = async ({\n visibility,\n ...filter\n}: ListConnectionsFilter = {}): Promise<AppConnection[]> => {\n const { appConnections } = await postGraphqlRequest<\n { filter: Omit<ListConnectionsFilter, 'visibility'> },\n { appConnections: AppConnectionWithoutVisibility[] }\n >({\n query: LIST_APP_CONNECTIONS_QUERY,\n variables: {\n filter: {\n ...filter,\n scope:\n filter.scope ??\n (isDefined(visibility)\n ? CONNECTION_SCOPE_BY_LEGACY_VISIBILITY[visibility]\n : undefined),\n },\n },\n caller: 'listConnections',\n });\n\n return appConnections.map(withLegacyConnectionVisibility);\n};\n", "import { type AppConnection } from '@/sdk/logic-function/connections/types/app-connection.type';\n\nexport const findConnectionForRequest = (\n connections: AppConnection[],\n event: { userWorkspaceId: string | null },\n): AppConnection | null => {\n if (event.userWorkspaceId !== null) {\n const personal = connections.find(\n (connection) =>\n connection.scope === 'USER' &&\n connection.userWorkspaceId === event.userWorkspaceId,\n );\n\n if (personal) {\n return personal;\n }\n }\n\n const workspaceShared = connections.find(\n (connection) => connection.scope === 'WORKSPACE',\n );\n\n return workspaceShared ?? null;\n};\n", "import { postGraphqlRequest } from '@/sdk/logic-function/utils/post-graphql-request.util';\n\nconst REPORT_APP_CONNECTION_AUTH_FAILURE_MUTATION = `\n mutation ReportAppConnectionAuthFailure($input: ReportAppConnectionAuthFailureInput!) {\n reportAppConnectionAuthFailure(input: $input)\n }\n`;\n\nexport const reportConnectionAuthFailure = async ({\n connectionId,\n reason,\n}: {\n connectionId: string;\n reason?: string;\n}): Promise<void> => {\n await postGraphqlRequest<\n { input: { id: string; reason?: string } },\n { reportAppConnectionAuthFailure: boolean }\n >({\n query: REPORT_APP_CONNECTION_AUTH_FAILURE_MUTATION,\n variables: { input: { id: connectionId, reason } },\n caller: 'reportConnectionAuthFailure',\n });\n};\n", "// Shared by every helper, so channels returned by any of them are interchangeable\nexport const APP_MESSAGE_CHANNEL_SELECTION = `\n id\n handle\n displayName\n visibility\n connectedAccountId\n isSyncEnabled\n participantHandleFieldUniversalIdentifier\n messagingProviderUniversalIdentifier\n`;\n", "import { type MessageChannelVisibility } from '@/sdk/define/common/types/loose-shared-types.type';\nimport { APP_MESSAGE_CHANNEL_SELECTION } from '@/sdk/logic-function/messaging/message-channel-fields.constant';\nimport { type AppMessageChannel } from '@/sdk/logic-function/messaging/types/app-message-channel.type';\nimport { postGraphqlRequest } from '@/sdk/logic-function/utils/post-graphql-request.util';\n\nconst CREATE_APP_MESSAGE_CHANNEL_MUTATION = `\n mutation CreateAppMessageChannel($input: CreateAppMessageChannelInput!) {\n createAppMessageChannel(input: $input) {\n ${APP_MESSAGE_CHANNEL_SELECTION}\n }\n }\n`;\n\nexport type CreateMessageChannelInput = {\n // An app connection id (from getConnection/listConnections); the channel speaks through it and inherits who may see it\n connectedAccountId: string;\n // The account's provider identity; inbound participants matching it are treated as the account itself\n handle: string;\n displayName?: string;\n // Required: decides whether one member's conversations are readable by the whole workspace, and only the app\n // knows how private its messages are ('METADATA' for personal inboxes, 'SHARE_EVERYTHING' for shared ones)\n visibility: MessageChannelVisibility;\n // Person field to match participant handles against (handles are then stored in its canonical form); set once\n participantHandleFieldUniversalIdentifier?: string;\n messagingProvider?: { universalIdentifier: string };\n};\n\nexport const createMessageChannel = async ({\n messagingProvider,\n ...input\n}: CreateMessageChannelInput): Promise<AppMessageChannel> => {\n const { createAppMessageChannel } = await postGraphqlRequest<\n {\n input: Omit<CreateMessageChannelInput, 'messagingProvider'> & {\n messagingProviderUniversalIdentifier?: string;\n };\n },\n { createAppMessageChannel: AppMessageChannel }\n >({\n query: CREATE_APP_MESSAGE_CHANNEL_MUTATION,\n variables: {\n input: {\n ...input,\n messagingProviderUniversalIdentifier:\n messagingProvider?.universalIdentifier,\n },\n },\n caller: 'createMessageChannel',\n });\n\n return createAppMessageChannel;\n};\n", "import { APP_MESSAGE_CHANNEL_SELECTION } from '@/sdk/logic-function/messaging/message-channel-fields.constant';\nimport { type AppMessageChannel } from '@/sdk/logic-function/messaging/types/app-message-channel.type';\nimport { postGraphqlRequest } from '@/sdk/logic-function/utils/post-graphql-request.util';\n\nconst LIST_APP_MESSAGE_CHANNELS_QUERY = `\n query ListAppMessageChannels($filter: ListAppMessageChannelsInput) {\n appMessageChannels(filter: $filter) {\n ${APP_MESSAGE_CHANNEL_SELECTION}\n }\n }\n`;\n\nexport type ListMessageChannelsFilter = {\n connectedAccountId?: string;\n};\n\nexport const listMessageChannels = async (\n filter: ListMessageChannelsFilter = {},\n): Promise<AppMessageChannel[]> => {\n const { appMessageChannels } = await postGraphqlRequest<\n { filter: ListMessageChannelsFilter },\n { appMessageChannels: AppMessageChannel[] }\n >({\n query: LIST_APP_MESSAGE_CHANNELS_QUERY,\n variables: { filter },\n caller: 'listMessageChannels',\n });\n\n return appMessageChannels;\n};\n", "import { type MessageChannelVisibility } from '@/sdk/define/common/types/loose-shared-types.type';\nimport { APP_MESSAGE_CHANNEL_SELECTION } from '@/sdk/logic-function/messaging/message-channel-fields.constant';\nimport { type AppMessageChannel } from '@/sdk/logic-function/messaging/types/app-message-channel.type';\nimport { postGraphqlRequest } from '@/sdk/logic-function/utils/post-graphql-request.util';\n\nconst UPDATE_APP_MESSAGE_CHANNEL_MUTATION = `\n mutation UpdateAppMessageChannel($input: UpdateAppMessageChannelInput!) {\n updateAppMessageChannel(input: $input) {\n ${APP_MESSAGE_CHANNEL_SELECTION}\n }\n }\n`;\n\nexport type UpdateMessageChannelInput = {\n id: string;\n // Omitted leaves the current label untouched; null clears it.\n displayName?: string | null;\n // Changes who can read every message already ingested, not just the ones that follow\n visibility?: MessageChannelVisibility;\n // False pauses ingestion (further ingests are rejected) without deleting the history\n isSyncEnabled?: boolean;\n messagingProvider?: { universalIdentifier: string } | null;\n};\n\nexport const updateMessageChannel = async ({\n messagingProvider,\n ...input\n}: UpdateMessageChannelInput): Promise<AppMessageChannel> => {\n const { updateAppMessageChannel } = await postGraphqlRequest<\n {\n input: Omit<UpdateMessageChannelInput, 'messagingProvider'> & {\n messagingProviderUniversalIdentifier?: string | null;\n };\n },\n { updateAppMessageChannel: AppMessageChannel }\n >({\n query: UPDATE_APP_MESSAGE_CHANNEL_MUTATION,\n variables: {\n input: {\n ...input,\n messagingProviderUniversalIdentifier:\n messagingProvider === undefined\n ? undefined\n : (messagingProvider?.universalIdentifier ?? null),\n },\n },\n caller: 'updateMessageChannel',\n });\n\n return updateAppMessageChannel;\n};\n", "import { APP_MESSAGE_CHANNEL_SELECTION } from '@/sdk/logic-function/messaging/message-channel-fields.constant';\nimport { type AppMessageChannel } from '@/sdk/logic-function/messaging/types/app-message-channel.type';\nimport { postGraphqlRequest } from '@/sdk/logic-function/utils/post-graphql-request.util';\n\nconst DELETE_APP_MESSAGE_CHANNEL_MUTATION = `\n mutation DeleteAppMessageChannel($id: UUID!) {\n deleteAppMessageChannel(id: $id) {\n ${APP_MESSAGE_CHANNEL_SELECTION}\n }\n }\n`;\n\n// Also deletes the channel's ingested messages and emptied threads; call from onDisconnect to retire a channel with its credential.\n// To stop ingesting but keep the history, set `isSyncEnabled` to false instead.\nexport const deleteMessageChannel = async (\n id: string,\n): Promise<AppMessageChannel> => {\n const { deleteAppMessageChannel } = await postGraphqlRequest<\n { id: string },\n { deleteAppMessageChannel: AppMessageChannel }\n >({\n query: DELETE_APP_MESSAGE_CHANNEL_MUTATION,\n variables: { id },\n caller: 'deleteMessageChannel',\n });\n\n return deleteAppMessageChannel;\n};\n", "import {\n type IngestMessage,\n type IngestedMessage,\n} from '@/sdk/logic-function/messaging/types/ingest-message.type';\nimport { postGraphqlRequest } from '@/sdk/logic-function/utils/post-graphql-request.util';\n\nconst INGEST_APP_MESSAGES_MUTATION = `\n mutation IngestAppMessages($input: IngestAppMessagesInput!) {\n ingestAppMessages(input: $input) {\n messages {\n externalId\n messageId\n messageThreadId\n hasAttachments\n }\n }\n }\n`;\n\n// Threading, dedup and privacy are handled server-side. At most 100 messages per call (one transaction\n// within one logic-function timeout), so page provider backfills\nexport const ingestMessages = async ({\n messageChannelId,\n messages,\n}: {\n messageChannelId: string;\n messages: IngestMessage[];\n}): Promise<IngestedMessage[]> => {\n const { ingestAppMessages } = await postGraphqlRequest<\n { input: { messageChannelId: string; messages: IngestMessage[] } },\n { ingestAppMessages: { messages: IngestedMessage[] } }\n >({\n query: INGEST_APP_MESSAGES_MUTATION,\n variables: { input: { messageChannelId, messages } },\n caller: 'ingestMessages',\n });\n\n return ingestAppMessages.messages;\n};\n", "export const ATTACHMENT_FILE_FIELD_UNIVERSAL_IDENTIFIER =\n '20202020-15db-460e-8166-c7b5d87ad4be';\n", "import { isNonEmptyString } from '@sniptt/guards';\nimport { MetadataApiClient } from 'twenty-client-sdk/metadata';\n\nimport { ATTACHMENT_FILE_FIELD_UNIVERSAL_IDENTIFIER } from '@/sdk/logic-function/messaging/attachment-file-field-universal-identifier.constant';\nimport { type IngestMessageAttachment } from '@/sdk/logic-function/messaging/types/ingest-message.type';\nimport { getApplicationApiConfigOrThrow } from '@/sdk/logic-function/utils/get-application-api-config-or-throw.util';\n\nconst MESSAGE_ATTACHMENT_LABEL_MAX_LENGTH = 255;\n\nexport const uploadMessageAttachment = async ({\n filename,\n content,\n signal,\n}: {\n filename: string;\n content: Uint8Array;\n signal?: AbortSignal;\n}): Promise<IngestMessageAttachment> => {\n if (\n !isNonEmptyString(filename) ||\n filename.length > MESSAGE_ATTACHMENT_LABEL_MAX_LENGTH\n ) {\n throw new Error(\n `uploadMessageAttachment() failed: filename must be 1 to ${MESSAGE_ATTACHMENT_LABEL_MAX_LENGTH} characters long`,\n );\n }\n\n const { apiUrl, accessToken } = getApplicationApiConfigOrThrow({\n caller: 'uploadMessageAttachment',\n });\n\n const client = new MetadataApiClient({\n url: `${apiUrl}/metadata`,\n headers: { Authorization: `Bearer ${accessToken}` },\n fetch: (input: RequestInfo | URL, init?: RequestInit) =>\n fetch(input, { ...init, signal }),\n });\n\n const uploadedFile = await client.uploadFile({\n fileBuffer: content,\n filename,\n fieldMetadataUniversalIdentifier:\n ATTACHMENT_FILE_FIELD_UNIVERSAL_IDENTIFIER,\n });\n\n return { fileId: uploadedFile.id, label: filename };\n};\n", "export const APP_MESSAGE_FOLDER_SELECTION = `\n id\n externalId\n name\n isSynced\n messageChannelId\n`;\n", "import { APP_MESSAGE_FOLDER_SELECTION } from '@/sdk/logic-function/messaging/message-folder-fields.constant';\nimport { type AppMessageFolder } from '@/sdk/logic-function/messaging/types/app-message-folder.type';\nimport { postGraphqlRequest } from '@/sdk/logic-function/utils/post-graphql-request.util';\n\nconst LIST_APP_MESSAGE_FOLDERS_QUERY = `\n query ListAppMessageFolders($filter: ListAppMessageFoldersInput) {\n appMessageFolders(filter: $filter) {\n ${APP_MESSAGE_FOLDER_SELECTION}\n }\n }\n`;\n\nexport type ListMessageFoldersFilter = {\n messageChannelId?: string;\n};\n\nexport const listMessageFolders = async (\n filter: ListMessageFoldersFilter = {},\n): Promise<AppMessageFolder[]> => {\n const { appMessageFolders } = await postGraphqlRequest<\n { filter: ListMessageFoldersFilter },\n { appMessageFolders: AppMessageFolder[] }\n >({\n query: LIST_APP_MESSAGE_FOLDERS_QUERY,\n variables: { filter },\n caller: 'listMessageFolders',\n });\n\n return appMessageFolders;\n};\n", "import { APP_MESSAGE_FOLDER_SELECTION } from '@/sdk/logic-function/messaging/message-folder-fields.constant';\nimport { type AppMessageFolder } from '@/sdk/logic-function/messaging/types/app-message-folder.type';\nimport { postGraphqlRequest } from '@/sdk/logic-function/utils/post-graphql-request.util';\n\nconst SYNC_APP_MESSAGE_FOLDERS_MUTATION = `\n mutation SyncAppMessageFolders($input: SyncAppMessageFoldersInput!) {\n syncAppMessageFolders(input: $input) {\n ${APP_MESSAGE_FOLDER_SELECTION}\n }\n }\n`;\n\nexport type SyncMessageFoldersInput = {\n messageChannelId: string;\n folders: {\n externalId: string;\n name: string;\n isSynced?: boolean;\n }[];\n};\n\nexport const syncMessageFolders = async (\n input: SyncMessageFoldersInput,\n): Promise<AppMessageFolder[]> => {\n const { syncAppMessageFolders } = await postGraphqlRequest<\n { input: SyncMessageFoldersInput },\n { syncAppMessageFolders: AppMessageFolder[] }\n >({\n query: SYNC_APP_MESSAGE_FOLDERS_MUTATION,\n variables: { input },\n caller: 'syncMessageFolders',\n });\n\n return syncAppMessageFolders;\n};\n", "import { isString } from '@sniptt/guards';\nimport { type RunAgentMessage } from 'twenty-shared/application';\n\nexport const toRunAgentMessages = (\n input: string | RunAgentMessage[],\n): RunAgentMessage[] =>\n isString(input) ? [{ role: 'user', content: input }] : input;\n", "import {\n type RunAgentInput,\n type RunAgentResult,\n} from 'twenty-shared/application';\nimport { isDefined } from 'twenty-shared/utils';\n\nimport { postGraphqlRequest } from '@/sdk/logic-function/utils/post-graphql-request.util';\nimport { toRunAgentMessages } from '@/sdk/logic-function/utils/to-run-agent-messages.util';\n\nconst RUN_AGENT_MUTATION = `\n mutation RunAgent($input: RunAgentInput!) {\n runAgent(input: $input) {\n threadId\n runId\n status\n result\n error\n success\n }\n }\n`;\n\nexport const runAgent = async ({\n input,\n ...rest\n}: RunAgentInput): Promise<RunAgentResult> => {\n const variables = {\n input: isDefined(input)\n ? { ...rest, input: toRunAgentMessages(input) }\n : rest,\n };\n\n const { runAgent: result } = await postGraphqlRequest<\n typeof variables,\n { runAgent: RunAgentResult }\n >({\n query: RUN_AGENT_MUTATION,\n variables,\n caller: 'runAgent',\n });\n\n return result;\n};\n", "//#region src/ai/constants/agent-chat-assistant-mention-object-name-singular.const.ts\nvar e = \"agentChatAssistant\";\n//#endregion\nexport { e as AGENT_CHAT_ASSISTANT_MENTION_OBJECT_NAME_SINGULAR };\n", "import { isDefined as e } from \"../../utils/validation/isDefined.mjs\";\n//#region src/ai/utils/is-agent-chat-turn-end-event.util.ts\nvar t = (t) => t.type === \"message-persisted\" && e(t.turnId) || t.type === \"stream-ended\" || t.type === \"run-finished\" || t.type === \"credits-exhausted\" || t.type === \"stream-error\";\n//#endregion\nexport { t as isAgentChatTurnEndEvent };\n", "import { isDefined as e } from \"../../utils/validation/isDefined.mjs\";\n//#region src/ai/utils/map-agent-message-part-to-ui-message-part.util.ts\nvar t = (t) => {\n\tlet n = t.providerMetadata ?? void 0;\n\tswitch (t.type) {\n\t\tcase \"text\": return {\n\t\t\ttype: \"text\",\n\t\t\ttext: t.textContent ?? \"\"\n\t\t};\n\t\tcase \"reasoning\": return {\n\t\t\ttype: \"reasoning\",\n\t\t\ttext: t.reasoningContent ?? \"\",\n\t\t\tstate: t.state ?? \"done\",\n\t\t\tproviderMetadata: n\n\t\t};\n\t\tcase \"file\": return {\n\t\t\ttype: \"file\",\n\t\t\tmediaType: t.fileMediaType ?? \"application/octet-stream\",\n\t\t\tfilename: t.fileFilename ?? \"\",\n\t\t\turl: t.fileUrl ?? \"\",\n\t\t\tfileId: t.fileId ?? \"\"\n\t\t};\n\t\tcase \"source-url\": return {\n\t\t\ttype: \"source-url\",\n\t\t\tsourceId: t.sourceUrlSourceId ?? \"\",\n\t\t\turl: t.sourceUrlUrl ?? \"\",\n\t\t\ttitle: t.sourceUrlTitle ?? \"\",\n\t\t\tproviderMetadata: n\n\t\t};\n\t\tcase \"source-document\": return {\n\t\t\ttype: \"source-document\",\n\t\t\tsourceId: t.sourceDocumentSourceId ?? \"\",\n\t\t\tmediaType: t.sourceDocumentMediaType ?? \"\",\n\t\t\ttitle: t.sourceDocumentTitle ?? \"\",\n\t\t\tfilename: t.sourceDocumentFilename ?? \"\",\n\t\t\tproviderMetadata: n\n\t\t};\n\t\tcase \"step-start\": return { type: \"step-start\" };\n\t\tdefault: {\n\t\t\tlet n = t.type.startsWith(\"tool-\"), r = t.type === \"dynamic-tool\";\n\t\t\treturn !n && !r || !e(t.toolCallId) ? null : {\n\t\t\t\ttype: t.type,\n\t\t\t\t...r && { toolName: t.toolName ?? \"\" },\n\t\t\t\ttoolCallId: t.toolCallId,\n\t\t\t\tinput: t.toolInput ?? {},\n\t\t\t\toutput: t.toolOutput,\n\t\t\t\terrorText: t.errorMessage ?? \"\",\n\t\t\t\tstate: t.state,\n\t\t\t\t...e(t.providerExecuted) && { providerExecuted: t.providerExecuted },\n\t\t\t\t...e(t.providerMetadata) && { callProviderMetadata: t.providerMetadata }\n\t\t\t};\n\t\t}\n\t}\n};\n//#endregion\nexport { t as mapAgentMessagePartToUIMessagePart };\n", "import { isDefined as e } from \"../../utils/validation/isDefined.mjs\";\nimport { mapAgentMessagePartToUIMessagePart as t } from \"./map-agent-message-part-to-ui-message-part.util.mjs\";\n//#region src/ai/utils/map-agent-messages-to-ui-messages.util.ts\nvar n = (n) => n.map((n) => ({\n\tid: n.id,\n\trole: n.role,\n\tstatus: n.status,\n\tparts: [...n.parts].sort((e, t) => e.orderIndex - t.orderIndex).map(t).filter(e),\n\tmetadata: {\n\t\tcreatedAt: n.createdAt,\n\t\tsenderWorkspaceMemberId: n.senderWorkspaceMemberId,\n\t\tsenderApplicationId: n.senderApplicationId,\n\t\tagentId: n.agentId,\n\t\tisBuiltInAssistant: n.isBuiltInAssistant,\n\t\tturnId: n.turnId,\n\t\t...n.role === \"assistant\" ? {\n\t\t\tstartedAt: n.createdAt,\n\t\t\tfinishedAt: n.processedAt ?? void 0\n\t\t} : {}\n\t},\n\tthreadId: n.threadId\n}));\n//#endregion\nexport { n as mapAgentMessagesToUIMessages };\n", "import {\n type AgentMessageRow,\n mapAgentMessagesToUIMessages,\n} from 'twenty-shared/ai';\n\nimport {\n type AgentConversationHistory,\n type AgentConversationInput,\n} from '@/sdk/logic-function/agents/types/agent-conversation.type';\nimport { postGraphqlRequest } from '@/sdk/logic-function/utils/post-graphql-request.util';\n\nconst CONVERSATION_MESSAGES_QUERY = `\n query ConversationMessages($agentUniversalIdentifier: UUID!, $threadKey: String!) {\n messages: chatMessages(agentUniversalIdentifier: $agentUniversalIdentifier, threadKey: $threadKey) {\n id\n threadId\n turnId\n senderWorkspaceMemberId\n role\n status\n createdAt\n processedAt\n parts {\n orderIndex\n type\n textContent\n reasoningContent\n toolName\n toolCallId\n toolInput\n toolOutput\n state\n providerExecuted\n errorMessage\n sourceUrlSourceId\n sourceUrlUrl\n sourceUrlTitle\n sourceDocumentSourceId\n sourceDocumentMediaType\n sourceDocumentTitle\n sourceDocumentFilename\n fileMediaType\n fileFilename\n fileUrl\n fileId\n providerMetadata\n }\n }\n streamCatchup: chatStreamCatchupChunks(agentUniversalIdentifier: $agentUniversalIdentifier, threadKey: $threadKey) {\n chunks\n maxSeq\n error {\n code\n message\n }\n }\n }\n`;\n\nexport const listConversationMessages = async (\n conversation: AgentConversationInput,\n): Promise<AgentConversationHistory> => {\n const { messages, streamCatchup } = await postGraphqlRequest<\n AgentConversationInput,\n Pick<AgentConversationHistory, 'streamCatchup'> & {\n messages: AgentMessageRow[];\n }\n >({\n query: CONVERSATION_MESSAGES_QUERY,\n variables: conversation,\n caller: 'listConversationMessages',\n });\n\n return {\n messages: mapAgentMessagesToUIMessages(messages),\n streamCatchup,\n };\n};\n", "import { isArray, isNonEmptyString, isObject, isString } from '@sniptt/guards';\nimport { type AgentChatSubscriptionEvent } from 'twenty-shared/ai';\nimport { isDefined } from 'twenty-shared/utils';\n\nimport { getApplicationApiConfigOrThrow } from '@/sdk/logic-function/utils/get-application-api-config-or-throw.util';\n\ntype ServerSentEvent =\n | { type: 'complete' }\n | { type: 'errors'; messages: string[] }\n | { type: 'event'; event: AgentChatSubscriptionEvent }\n | null;\n\nconst isRecord = (value: unknown): value is Record<string, unknown> =>\n isObject(value) && !isArray(value);\n\nconst toErrorMessages = (errors: unknown[]): string[] =>\n errors.map((error) =>\n isRecord(error) && isString(error.message)\n ? error.message\n : JSON.stringify(error),\n );\n\n// only the type is checked, so a field a newer server adds never fails an older SDK\nconst isAgentChatSubscriptionEvent = (\n event: unknown,\n): event is AgentChatSubscriptionEvent =>\n isRecord(event) && isString(event.type);\n\n// GraphQL over server-sent events: one `next` event per result, then `complete`\nconst parseServerSentEventOrThrow = ({\n block,\n caller,\n}: {\n block: string;\n caller: string;\n}): ServerSentEvent => {\n const lines = block.split('\\n');\n\n if (lines.includes('event: complete')) {\n return { type: 'complete' };\n }\n\n const data = lines\n .filter((line) => line.startsWith('data:'))\n .map((line) => line.slice('data:'.length).trimStart())\n .join('\\n');\n\n if (!isNonEmptyString(data)) {\n return null;\n }\n\n const result: unknown = JSON.parse(data);\n\n if (!isRecord(result)) {\n throw new Error(`${caller}() failed: unexpected result ${data}`);\n }\n\n // isNonEmptyArray would inline twenty-shared's utils chunk into every logic function\n if (isArray(result.errors)) {\n return { type: 'errors', messages: toErrorMessages(result.errors) };\n }\n\n const event =\n isRecord(result.data) && isRecord(result.data.onAgentChatEvent)\n ? result.data.onAgentChatEvent.event\n : undefined;\n\n if (!isAgentChatSubscriptionEvent(event)) {\n throw new Error(`${caller}() failed: unexpected result ${data}`);\n }\n\n return { type: 'event', event };\n};\n\nconst readFailedResponseMessage = async (response: Response) => {\n const body: unknown = await response.json().catch(() => undefined);\n\n if (isRecord(body) && isArray(body.errors)) {\n return toErrorMessages(body.errors).join(', ');\n }\n\n return `HTTP ${response.status} ${response.statusText}`;\n};\n\n// yields the events of an onAgentChatEvent subscription; an abort ends it quietly, a dropped connection throws\nexport async function* streamAgentChatEvents({\n query,\n variables,\n caller,\n signal,\n closedEarlyAdvice = '',\n isActingAsCaller = false,\n}: {\n query: string;\n variables: Record<string, unknown>;\n caller: string;\n signal?: AbortSignal;\n isActingAsCaller?: boolean;\n // appended to the error a dropped connection throws, for callers that can resume\n closedEarlyAdvice?: string;\n}): AsyncGenerator<AgentChatSubscriptionEvent> {\n const { apiUrl, accessToken } = getApplicationApiConfigOrThrow({\n caller,\n isActingAsCaller,\n });\n let reader: ReadableStreamDefaultReader<string> | undefined;\n\n if (signal?.aborted) {\n return;\n }\n\n try {\n const response = await fetch(`${apiUrl}/metadata`, {\n method: 'POST',\n headers: {\n Accept: 'text/event-stream',\n 'Content-Type': 'application/json',\n Authorization: `Bearer ${accessToken}`,\n },\n body: JSON.stringify({ query, variables }),\n signal,\n });\n\n if (!response.ok || !isDefined(response.body)) {\n throw new Error(\n `${caller}() failed: ${await readFailedResponseMessage(response)}`,\n );\n }\n\n reader = response.body.pipeThrough(new TextDecoderStream()).getReader();\n let buffer = '';\n\n while (true) {\n const { done, value } = await reader.read();\n\n // the server completes every stream it ends, so this is a dropped connection\n if (done) {\n throw new Error(\n `${caller}() failed: the stream closed early${closedEarlyAdvice}`,\n );\n }\n\n // a CRLF can be split across two reads\n buffer = (buffer + value).replace(/\\r\\n/g, '\\n');\n\n let boundary = buffer.indexOf('\\n\\n');\n\n while (boundary !== -1) {\n const serverSentEvent = parseServerSentEventOrThrow({\n block: buffer.slice(0, boundary),\n caller,\n });\n\n buffer = buffer.slice(boundary + 2);\n boundary = buffer.indexOf('\\n\\n');\n\n if (serverSentEvent?.type === 'complete') {\n return;\n }\n\n if (serverSentEvent?.type === 'errors') {\n throw new Error(\n `${caller}() failed: ${serverSentEvent.messages.join(', ')}`,\n );\n }\n\n if (serverSentEvent?.type === 'event') {\n yield serverSentEvent.event;\n }\n }\n }\n } catch (error) {\n // an abort rejects with the signal's reason, which is not always an AbortError\n if (signal?.aborted) {\n return;\n }\n\n throw error;\n } finally {\n await reader?.cancel().catch(() => {});\n }\n}\n", "import { type AgentChatSubscriptionEvent } from 'twenty-shared/ai';\n\nimport { type AgentConversationInput } from '@/sdk/logic-function/agents/types/agent-conversation.type';\nimport { streamAgentChatEvents } from '@/sdk/logic-function/utils/stream-agent-chat-events.util';\n\nconst ON_AGENT_CHAT_EVENT_SUBSCRIPTION = `\n subscription OnAgentChatEvent($agentUniversalIdentifier: UUID!, $threadKey: String!) {\n onAgentChatEvent(agentUniversalIdentifier: $agentUniversalIdentifier, threadKey: $threadKey) {\n event\n }\n }\n`;\n\nexport type StreamConversationInput = AgentConversationInput & {\n signal?: AbortSignal;\n};\n\nexport const streamConversation = ({\n signal,\n ...conversation\n}: StreamConversationInput): AsyncGenerator<AgentChatSubscriptionEvent> =>\n streamAgentChatEvents({\n query: ON_AGENT_CHAT_EVENT_SUBSCRIPTION,\n variables: conversation,\n caller: 'streamConversation',\n signal,\n closedEarlyAdvice: '; read the history and stream again to resume',\n });\n", "import { isString } from '@sniptt/guards';\nimport {\n type AgentResponseFormat,\n type AiRunScope,\n isAgentChatTurnEndEvent,\n} from 'twenty-shared/ai';\nimport {\n type GenerateResult,\n type RunAgentMessage,\n} from 'twenty-shared/application';\nimport { isDefined } from 'twenty-shared/utils';\n\nimport { postGraphqlRequest } from '@/sdk/logic-function/utils/post-graphql-request.util';\nimport { streamAgentChatEvents } from '@/sdk/logic-function/utils/stream-agent-chat-events.util';\nimport { toRunAgentMessages } from '@/sdk/logic-function/utils/to-run-agent-messages.util';\n\nconst GENERATE_MUTATION = `\n mutation Generate($input: GenerateInput!) {\n generate(input: $input) {\n success\n text\n object\n error\n runId\n usage {\n inputTokens\n outputTokens\n }\n }\n }\n`;\n\n// an AI SDK UIMessageChunk, typed without the ai package\nexport type GenerateChunk = { type: string } & Record<string, unknown>;\n\nexport type GenerateInput = {\n // a string is sent as one user message\n input: string | RunAgentMessage[];\n instructions?: string | null;\n // the workspace default model when unset\n modelId?: string | null;\n responseFormat?: AgentResponseFormat | null;\n // no data tools when unset\n scope?: AiRunScope | null;\n onChunk?: (chunk: GenerateChunk) => void | Promise<void>;\n signal?: AbortSignal;\n};\n\nconst ON_AGENT_RUN_EVENT_SUBSCRIPTION = `\n subscription OnAgentRunEvent($runId: UUID!) {\n onAgentChatEvent(runId: $runId) {\n event\n }\n }\n`;\n\nconst END_EVENT_GRACE_MS = 5_000;\n\ntype GenerateVariables = {\n input: Omit<GenerateInput, 'input' | 'onChunk' | 'signal'> & {\n input: RunAgentMessage[];\n runId?: string;\n };\n};\n\nconst requestGenerate = async ({\n variables,\n signal,\n}: {\n variables: GenerateVariables;\n signal: AbortSignal | undefined;\n}): Promise<GenerateResult> => {\n const { generate: result } = await postGraphqlRequest<\n GenerateVariables,\n { generate: GenerateResult }\n >({\n query: GENERATE_MUTATION,\n variables,\n caller: 'ai.generate',\n signal,\n isActingAsCaller: true,\n });\n\n return result;\n};\n\n// the run channel carries the AI SDK's own chunks, so one that names its type is taken as one\nconst isGenerateChunk = (\n chunk: Record<string, unknown>,\n): chunk is GenerateChunk => isString(chunk.type);\n\n// resolves undefined once the result is in and no event came for the grace, so a lost end event stops the wait\nconst waitForQuietAfterResult = (generated: Promise<GenerateResult>) => {\n let timer: ReturnType<typeof setTimeout> | undefined;\n let isWaiting = true;\n const quiet = new Promise<undefined>((resolve) => {\n void generated.then(\n () => {\n if (isWaiting) {\n timer = setTimeout(() => resolve(undefined), END_EVENT_GRACE_MS);\n }\n },\n () => undefined,\n );\n });\n\n return {\n quiet,\n stop: () => {\n isWaiting = false;\n clearTimeout(timer);\n },\n };\n};\n\n// Starts the run once its channel is live (the first keepalive), and reads the channel no faster than onChunk\n// takes its chunks. The run is billed whatever happens to the channel, so a failing channel only stops the reading\nconst generateWithChunks = async ({\n variables,\n onChunk,\n signal,\n}: {\n variables: GenerateVariables;\n onChunk: NonNullable<GenerateInput['onChunk']>;\n signal: AbortSignal | undefined;\n}): Promise<GenerateResult> => {\n const runId = crypto.randomUUID();\n const stopFollowing = new AbortController();\n const runSignal = isDefined(signal)\n ? AbortSignal.any([signal, stopFollowing.signal])\n : stopFollowing.signal;\n // settles the call on abort even while an onChunk is still running\n const callerAborted = new Promise<never>((_resolve, reject) =>\n signal?.addEventListener('abort', () => reject(signal.reason), {\n once: true,\n signal: stopFollowing.signal,\n }),\n );\n\n void callerAborted.catch(() => undefined);\n\n try {\n const events = streamAgentChatEvents({\n query: ON_AGENT_RUN_EVENT_SUBSCRIPTION,\n variables: { runId },\n caller: 'ai.generate',\n signal: runSignal,\n // the same token as the mutation, so both reach the run as one caller\n isActingAsCaller: true,\n });\n\n if ((await events.next()).done) {\n signal?.throwIfAborted();\n\n throw new Error('ai.generate() failed: the stream ended before the run');\n }\n\n const generated = requestGenerate({\n variables: { input: { ...variables.input, runId } },\n signal: runSignal,\n });\n\n const deliverChunks = async () => {\n // only a chunk restarts the grace, since keepalives keep coming after the result\n let wait = waitForQuietAfterResult(generated);\n\n try {\n for (;;) {\n const next = await Promise.race([events.next(), wait.quiet]).catch(\n () => undefined,\n );\n\n if (\n !isDefined(next) ||\n next.done ||\n runSignal.aborted ||\n isAgentChatTurnEndEvent(next.value)\n ) {\n return;\n }\n\n if (\n next.value.type === 'stream-chunk' &&\n isGenerateChunk(next.value.chunk)\n ) {\n wait.stop();\n await onChunk(next.value.chunk);\n wait = waitForQuietAfterResult(generated);\n }\n }\n } finally {\n wait.stop();\n // a read left pending settles once following stops, so the channel closes without waiting on it\n void events.return(undefined).catch(() => undefined);\n }\n };\n\n const [result] = await Promise.race([\n Promise.all([generated, deliverChunks()]),\n callerAborted,\n ]);\n\n // the reader ends quietly on abort, so an abort after the result would read as a full delivery\n signal?.throwIfAborted();\n\n return result;\n } finally {\n stopFollowing.abort();\n }\n};\n\nexport const ai = {\n // runs as the function's caller, like the default clients; with no scope it gets no data tools, and a scope only narrows the caller\n generate: async ({\n input,\n onChunk,\n signal,\n ...rest\n }: GenerateInput): Promise<GenerateResult> => {\n const variables = { input: { ...rest, input: toRunAgentMessages(input) } };\n\n return isDefined(onChunk)\n ? generateWithChunks({ variables, onChunk, signal })\n : requestGenerate({ variables, signal });\n },\n};\n", "import { MetadataApiClient } from 'twenty-client-sdk/metadata';\nimport { type SendInboxMessageResult } from 'twenty-shared/application';\n\nimport { type SendInboxMessageInput } from '@/sdk/define/common/types/loose-shared-types.type';\n\nexport const sendInboxMessage = async (\n input: SendInboxMessageInput,\n): Promise<SendInboxMessageResult> => {\n const client = new MetadataApiClient();\n\n const { sendInboxMessage: result } = await client.mutation({\n sendInboxMessage: {\n __args: { input },\n threadId: true,\n },\n });\n\n return result;\n};\n", "const OPENING_BRACKET_PATTERN = /\\[/g;\nconst CLOSING_BRACKET_PATTERN = /\\]/g;\nconst LINE_BREAK_PATTERN = /\\r?\\n/g;\n\nexport const sanitizeInboxReferenceLabel = (label: string): string =>\n label\n .replace(OPENING_BRACKET_PATTERN, '(')\n .replace(CLOSING_BRACKET_PATTERN, ')')\n .replace(LINE_BREAK_PATTERN, ' ')\n .trim();\n", "import { isNonEmptyString } from '@sniptt/guards';\nimport { RestApiClient } from 'twenty-client-sdk/rest';\nimport { formatRecordReference } from 'twenty-shared/ai';\n\nimport { sanitizeInboxReferenceLabel } from '@/sdk/inbox/mentions/utils/sanitize-inbox-reference-label.util';\n\ntype WorkspaceMemberResponse = {\n data: {\n workspaceMember: {\n name: { firstName: string | null; lastName: string | null };\n userEmail: string;\n };\n };\n};\n\nexport const inboxMention = async ({\n workspaceMemberId,\n}: {\n workspaceMemberId: string;\n}): Promise<string> => {\n const {\n data: { workspaceMember },\n } = await new RestApiClient().get<WorkspaceMemberResponse>(\n `/rest/workspaceMembers/${workspaceMemberId}`,\n );\n\n const fullName =\n `${workspaceMember.name.firstName ?? ''} ${workspaceMember.name.lastName ?? ''}`.trim();\n\n return formatRecordReference({\n objectNameSingular: 'workspaceMember',\n recordId: workspaceMemberId,\n displayName: sanitizeInboxReferenceLabel(\n isNonEmptyString(fullName) ? fullName : workspaceMember.userEmail,\n ),\n });\n};\n", "import { isObject, isString } from '@sniptt/guards';\nimport { isDefined } from 'twenty-shared/utils';\n\nimport { type InboxLabelIdentifierField } from '@/sdk/inbox/mentions/types/inbox-label-identifier-field.type';\n\nconst getFullNamePart = ({\n fullName,\n partName,\n}: {\n fullName: unknown;\n partName: 'firstName' | 'lastName';\n}): string => {\n const part = isObject(fullName) ? Reflect.get(fullName, partName) : undefined;\n\n return isString(part) ? part : '';\n};\n\nexport const computeInboxRecordLabel = ({\n record,\n recordId,\n labelIdentifierField,\n}: {\n record: Record<string, unknown>;\n recordId: string;\n labelIdentifierField: InboxLabelIdentifierField | undefined;\n}): string => {\n if (!isDefined(labelIdentifierField)) {\n return recordId;\n }\n\n const labelValue = record[labelIdentifierField.name];\n\n if (labelIdentifierField.type === 'FULL_NAME') {\n return `${getFullNamePart({ fullName: labelValue, partName: 'firstName' })} ${getFullNamePart({ fullName: labelValue, partName: 'lastName' })}`.trim();\n }\n\n return isDefined(labelValue) ? String(labelValue) : '';\n};\n", "import { type MetadataApiClient } from 'twenty-client-sdk/metadata';\nimport { isDefined } from 'twenty-shared/utils';\n\nimport { type InboxLabelIdentifierField } from '@/sdk/inbox/mentions/types/inbox-label-identifier-field.type';\nimport { type InboxObjectMetadata } from '@/sdk/inbox/mentions/types/inbox-object-metadata.type';\n\nexport const findInboxLabelIdentifierField = async ({\n metadataClient,\n objectMetadata,\n}: {\n metadataClient: MetadataApiClient;\n objectMetadata: Pick<\n InboxObjectMetadata,\n 'id' | 'labelIdentifierFieldMetadataId'\n >;\n}): Promise<InboxLabelIdentifierField | undefined> => {\n if (!isDefined(objectMetadata.labelIdentifierFieldMetadataId)) {\n return undefined;\n }\n\n const { object } = await metadataClient.query({\n object: {\n __args: { id: objectMetadata.id },\n fields: {\n __args: {\n filter: { id: { eq: objectMetadata.labelIdentifierFieldMetadataId } },\n paging: { first: 1 },\n },\n edges: { node: { name: true, type: true } },\n },\n },\n });\n\n return object.fields.edges[0]?.node;\n};\n", "import { type MetadataApiClient } from 'twenty-client-sdk/metadata';\nimport { isDefined } from 'twenty-shared/utils';\n\nimport { type InboxObjectMetadata } from '@/sdk/inbox/mentions/types/inbox-object-metadata.type';\n\nconst OBJECTS_PAGE_SIZE = 1000;\n\nexport const findInboxObjectMetadataOrThrow = async ({\n metadataClient,\n objectNameSingular,\n}: {\n metadataClient: MetadataApiClient;\n objectNameSingular: string;\n}): Promise<InboxObjectMetadata> => {\n const { objects } = await metadataClient.query({\n objects: {\n __args: { filter: {}, paging: { first: OBJECTS_PAGE_SIZE } },\n edges: {\n node: {\n id: true,\n nameSingular: true,\n namePlural: true,\n labelIdentifierFieldMetadataId: true,\n },\n },\n },\n });\n\n const objectMetadata = objects.edges.find(\n ({ node }) => node.nameSingular === objectNameSingular,\n )?.node;\n\n if (!isDefined(objectMetadata)) {\n throw new Error(`This workspace has no ${objectNameSingular} object.`);\n }\n\n return objectMetadata;\n};\n", "import { MetadataApiClient } from 'twenty-client-sdk/metadata';\nimport { RestApiClient } from 'twenty-client-sdk/rest';\nimport { formatRecordReference } from 'twenty-shared/ai';\n\nimport { computeInboxRecordLabel } from '@/sdk/inbox/mentions/utils/compute-inbox-record-label.util';\nimport { findInboxLabelIdentifierField } from '@/sdk/inbox/mentions/utils/find-inbox-label-identifier-field.util';\nimport { findInboxObjectMetadataOrThrow } from '@/sdk/inbox/mentions/utils/find-inbox-object-metadata-or-throw.util';\nimport { sanitizeInboxReferenceLabel } from '@/sdk/inbox/mentions/utils/sanitize-inbox-reference-label.util';\n\nexport const inboxReferenceRecord = async ({\n objectNameSingular,\n recordId,\n}: {\n objectNameSingular: string;\n recordId: string;\n}): Promise<string> => {\n const metadataClient = new MetadataApiClient();\n const objectMetadata = await findInboxObjectMetadataOrThrow({\n metadataClient,\n objectNameSingular,\n });\n\n const [labelIdentifierField, recordResponse] = await Promise.all([\n findInboxLabelIdentifierField({ metadataClient, objectMetadata }),\n new RestApiClient().get<{\n data: Record<string, Record<string, unknown>>;\n }>(`/rest/${objectMetadata.namePlural}/${recordId}`),\n ]);\n\n return formatRecordReference({\n objectNameSingular,\n recordId,\n displayName: sanitizeInboxReferenceLabel(\n computeInboxRecordLabel({\n record: recordResponse.data[objectNameSingular],\n recordId,\n labelIdentifierField,\n }),\n ),\n });\n};\n", "import {\n AGENT_CHAT_ASSISTANT_MENTION_OBJECT_NAME_SINGULAR,\n AGENT_CHAT_ASSISTANT_NAME,\n formatRecordReference,\n} from 'twenty-shared/ai';\n\nexport const INBOX_ASSISTANT_MENTION = formatRecordReference({\n objectNameSingular: AGENT_CHAT_ASSISTANT_MENTION_OBJECT_NAME_SINGULAR,\n recordId: AGENT_CHAT_ASSISTANT_MENTION_OBJECT_NAME_SINGULAR,\n displayName: AGENT_CHAT_ASSISTANT_NAME,\n});\n", "import { MetadataApiClient } from 'twenty-client-sdk/metadata';\nimport { type InboxThreadRecordInput } from 'twenty-shared/application';\n\nexport const attachRecordToInboxThread = async (\n input: InboxThreadRecordInput,\n): Promise<void> => {\n const client = new MetadataApiClient();\n\n await client.mutation({\n attachRecordToInboxThread: { __args: { input } },\n });\n};\n", "import { MetadataApiClient } from 'twenty-client-sdk/metadata';\nimport { type InboxThreadRecordInput } from 'twenty-shared/application';\n\nexport const detachRecordFromInboxThread = async (\n input: InboxThreadRecordInput,\n): Promise<void> => {\n const client = new MetadataApiClient();\n\n await client.mutation({\n detachRecordFromInboxThread: { __args: { input } },\n });\n};\n", "import { MetadataApiClient } from 'twenty-client-sdk/metadata';\nimport { type ArchiveInboxThreadInput } from 'twenty-shared/application';\n\nexport const archiveInboxThread = async (\n input: ArchiveInboxThreadInput,\n): Promise<void> => {\n const client = new MetadataApiClient();\n\n await client.mutation({\n archiveInboxThread: { __args: { input } },\n });\n};\n", "import { MetadataApiClient } from 'twenty-client-sdk/metadata';\nimport {\n type EnqueueJobInput,\n type EnqueueJobResult,\n} from 'twenty-shared/application';\n\n/**\n * @deprecated Use `enqueueJobs` instead.\n */\nexport const enqueueJob = async (\n input: EnqueueJobInput,\n): Promise<EnqueueJobResult> => {\n const client = new MetadataApiClient();\n\n const { enqueueJob: result } = await client.mutation({\n enqueueJob: {\n __args: { input },\n enqueued: true,\n logicFunctionUniversalIdentifier: true,\n jobId: true,\n },\n });\n\n return result;\n};\n", "import { MetadataApiClient } from 'twenty-client-sdk/metadata';\nimport {\n type EnqueueJobsInput,\n type EnqueueJobsResult,\n} from 'twenty-shared/application';\n\nexport const enqueueJobs = async (\n input: EnqueueJobsInput,\n): Promise<EnqueueJobsResult> => {\n const client = new MetadataApiClient();\n\n const { enqueueJobs: result } = await client.mutation({\n enqueueJobs: {\n __args: { input },\n enqueued: true,\n logicFunctionUniversalIdentifier: true,\n enqueuedJobsCount: true,\n jobIds: true,\n jobs: { jobId: true, sizeBytes: true },\n availableBytes: true,\n },\n });\n\n return result;\n};\n", "import { MetadataApiClient } from 'twenty-client-sdk/metadata';\nimport { type JobStatusResult } from 'twenty-shared/application';\n\nexport const getJobs = async (jobIds: string[]): Promise<JobStatusResult[]> => {\n const client = new MetadataApiClient();\n\n const { getJobs: result } = await client.query({\n getJobs: {\n __args: { jobIds },\n jobId: true,\n state: true,\n attemptsMade: true,\n failedReason: true,\n enqueuedAt: true,\n startedAt: true,\n finishedAt: true,\n },\n });\n\n return result;\n};\n", "import { MetadataApiClient } from 'twenty-client-sdk/metadata';\nimport { RestApiClient } from 'twenty-client-sdk/rest';\nimport { capitalize, isDefined } from 'twenty-shared/utils';\nimport { type TimelineActivityTypeSnapshot } from 'twenty-shared/timeline';\n\ntype CreateTimelineActivityBaseInput = {\n timelineActivityTypeUniversalIdentifier: string;\n targetObjectUniversalIdentifier: string;\n targetRecordId: string;\n happensAt?: string;\n properties?: Record<string, unknown>;\n};\n\ntype CreateTimelineActivityLinkedRecordInput =\n | {\n linkedRecordId: string;\n linkedObjectMetadataUniversalIdentifier: string;\n }\n | {\n linkedRecordId?: never;\n linkedObjectMetadataUniversalIdentifier?: never;\n };\n\nexport type CreateTimelineActivityInput = CreateTimelineActivityBaseInput &\n CreateTimelineActivityLinkedRecordInput;\n\nexport type CreatedTimelineActivity = {\n id: string;\n timelineActivityTypeId: string;\n timelineActivityTypeSnapshot: TimelineActivityTypeSnapshot;\n};\n\nconst getObjectMetadataSelection = (universalIdentifiers: string[]) => ({\n __args: {\n paging: {\n first: universalIdentifiers.length,\n },\n filter: {\n universalIdentifier: {\n in: universalIdentifiers,\n },\n },\n },\n edges: {\n node: {\n id: true,\n universalIdentifier: true,\n nameSingular: true,\n },\n },\n});\n\n// Apps address manifest entities by universal identifier; the row stores the installation-specific metadata id\nexport const createTimelineActivity = async ({\n timelineActivityTypeUniversalIdentifier,\n targetObjectUniversalIdentifier,\n linkedObjectMetadataUniversalIdentifier,\n targetRecordId,\n ...input\n}: CreateTimelineActivityInput): Promise<CreatedTimelineActivity> => {\n const requiredObjectUniversalIdentifiers = [\n ...new Set(\n [\n targetObjectUniversalIdentifier,\n linkedObjectMetadataUniversalIdentifier,\n ].filter(isDefined),\n ),\n ];\n const metadataClient = new MetadataApiClient();\n const { timelineActivityTypes, objects } = await metadataClient.query({\n timelineActivityTypes: {\n id: true,\n universalIdentifier: true,\n isActive: true,\n },\n objects: getObjectMetadataSelection(requiredObjectUniversalIdentifiers),\n });\n\n const timelineActivityType = timelineActivityTypes.find(\n ({ universalIdentifier }) =>\n universalIdentifier === timelineActivityTypeUniversalIdentifier,\n );\n\n if (!isDefined(timelineActivityType)) {\n throw new Error(\n `Timeline activity type ${timelineActivityTypeUniversalIdentifier} is not installed`,\n );\n }\n\n if (!timelineActivityType.isActive) {\n throw new Error(\n `Timeline activity type ${timelineActivityTypeUniversalIdentifier} is inactive`,\n );\n }\n\n const objectMetadataByUniversalIdentifier = new Map(\n objects.edges.map(({ node }) => [node.universalIdentifier, node]),\n );\n\n const targetObject = objectMetadataByUniversalIdentifier.get(\n targetObjectUniversalIdentifier,\n );\n\n if (!isDefined(targetObject)) {\n throw new Error(\n `Timeline activity target object ${targetObjectUniversalIdentifier} is not installed`,\n );\n }\n\n const targetFieldName = `target${capitalize(targetObject.nameSingular)}Id`;\n const linkedObject = isDefined(linkedObjectMetadataUniversalIdentifier)\n ? objectMetadataByUniversalIdentifier.get(\n linkedObjectMetadataUniversalIdentifier,\n )\n : undefined;\n\n if (\n isDefined(linkedObjectMetadataUniversalIdentifier) &&\n !isDefined(linkedObject)\n ) {\n throw new Error(\n `Timeline activity linked object ${linkedObjectMetadataUniversalIdentifier} is not installed`,\n );\n }\n\n const response = await new RestApiClient().post<{\n data: { createTimelineActivity: CreatedTimelineActivity };\n }>('/rest/timelineActivities', {\n ...input,\n timelineActivityTypeId: timelineActivityType.id,\n linkedObjectMetadataId: linkedObject?.id,\n [targetFieldName]: targetRecordId,\n });\n\n return response.data.createTimelineActivity;\n};\n", "import {\n type AppKeyValue,\n type AppKeyValueScope,\n} from 'twenty-shared/application';\n\nimport { postGraphqlRequest } from '@/sdk/logic-function/utils/post-graphql-request.util';\n\nconst GET_APP_KEY_VALUE_QUERY = `\n query GetAppKeyValue($key: String!, $scope: AppKeyValueScope) {\n appKeyValue(key: $key, scope: $scope) {\n key\n value\n scope\n }\n }\n`;\n\nconst SET_APP_KEY_VALUE_MUTATION = `\n mutation SetAppKeyValue($input: SetAppKeyValueInput!) {\n setAppKeyValue(input: $input) {\n key\n value\n scope\n }\n }\n`;\n\nconst DELETE_APP_KEY_VALUE_MUTATION = `\n mutation DeleteAppKeyValue($key: String!, $scope: AppKeyValueScope) {\n deleteAppKeyValue(key: $key, scope: $scope)\n }\n`;\n\nconst DEFAULT_APP_KEY_VALUE_SCOPE: AppKeyValueScope = 'WORKSPACE';\n\ntype KvOptions = {\n scope?: AppKeyValueScope;\n};\n\nexport const kv = {\n async get<TValue = unknown>(\n key: string,\n options?: KvOptions,\n ): Promise<TValue | null> {\n const { appKeyValue } = await postGraphqlRequest<\n { key: string; scope: AppKeyValueScope },\n { appKeyValue: AppKeyValue | null }\n >({\n query: GET_APP_KEY_VALUE_QUERY,\n variables: { key, scope: options?.scope ?? DEFAULT_APP_KEY_VALUE_SCOPE },\n caller: 'kv.get',\n });\n\n return (appKeyValue?.value ?? null) as TValue | null;\n },\n\n async set<TValue>(\n key: string,\n value: TValue,\n options?: KvOptions,\n ): Promise<void> {\n await postGraphqlRequest<\n {\n input: { key: string; value: TValue; scope: AppKeyValueScope };\n },\n { setAppKeyValue: AppKeyValue }\n >({\n query: SET_APP_KEY_VALUE_MUTATION,\n variables: {\n input: {\n key,\n value,\n scope: options?.scope ?? DEFAULT_APP_KEY_VALUE_SCOPE,\n },\n },\n caller: 'kv.set',\n });\n },\n\n async delete(key: string, options?: KvOptions): Promise<boolean> {\n const { deleteAppKeyValue } = await postGraphqlRequest<\n { key: string; scope: AppKeyValueScope },\n { deleteAppKeyValue: boolean }\n >({\n query: DELETE_APP_KEY_VALUE_MUTATION,\n variables: { key, scope: options?.scope ?? DEFAULT_APP_KEY_VALUE_SCOPE },\n caller: 'kv.delete',\n });\n\n return deleteAppKeyValue;\n },\n};\n", "import { type LogicFunctionHttpResponse } from 'twenty-shared/types';\n\nexport type ResponseInit = {\n status?: number;\n headers?: Record<string, string>;\n};\n\nexport class Response implements LogicFunctionHttpResponse {\n readonly __twentyHttpResponse = true as const;\n readonly body: unknown;\n readonly status?: number;\n readonly headers?: Record<string, string>;\n\n constructor(body: unknown, init?: ResponseInit) {\n this.body = body;\n this.status = init?.status;\n this.headers = init?.headers;\n }\n}\n", "import { enqueueJobs } from 'twenty-sdk/logic-function';\n\nimport { LOGIC_FUNCTION_UNIVERSAL_IDENTIFIERS } from 'src/constants/universal-identifiers';\nimport { type EnqueueWorkers } from 'src/scavio/enqueue';\n\nexport const enqueueWorkers: EnqueueWorkers = async (payloads, options) => {\n if (payloads.length === 0) {\n return;\n }\n\n await enqueueJobs({\n logicFunctionUniversalIdentifier: LOGIC_FUNCTION_UNIVERSAL_IDENTIFIERS.enrichWorker,\n jobs: payloads.map((payload) => ({ payload })),\n ...(options?.delayMs ? { delayMs: options.delayMs } : {}),\n });\n};\n", "// This file is a workaround for a bug in web browsers' \"native\"\n// ES6 importing system which is uncapable of importing \"*.json\" files.\n// https://github.com/catamphetamine/libphonenumber-js/issues/239\nexport default {\"version\":4,\"country_calling_codes\":{\"1\":[\"US\",\"AG\",\"AI\",\"AS\",\"BB\",\"BM\",\"BS\",\"CA\",\"DM\",\"DO\",\"GD\",\"GU\",\"JM\",\"KN\",\"KY\",\"LC\",\"MP\",\"MS\",\"PR\",\"SX\",\"TC\",\"TT\",\"VC\",\"VG\",\"VI\"],\"7\":[\"RU\",\"KZ\"],\"20\":[\"EG\"],\"27\":[\"ZA\"],\"30\":[\"GR\"],\"31\":[\"NL\"],\"32\":[\"BE\"],\"33\":[\"FR\"],\"34\":[\"ES\"],\"36\":[\"HU\"],\"39\":[\"IT\",\"VA\"],\"40\":[\"RO\"],\"41\":[\"CH\"],\"43\":[\"AT\"],\"44\":[\"GB\",\"GG\",\"IM\",\"JE\"],\"45\":[\"DK\"],\"46\":[\"SE\"],\"47\":[\"NO\",\"SJ\"],\"48\":[\"PL\"],\"49\":[\"DE\"],\"51\":[\"PE\"],\"52\":[\"MX\"],\"53\":[\"CU\"],\"54\":[\"AR\"],\"55\":[\"BR\"],\"56\":[\"CL\"],\"57\":[\"CO\"],\"58\":[\"VE\"],\"60\":[\"MY\"],\"61\":[\"AU\",\"CC\",\"CX\"],\"62\":[\"ID\"],\"63\":[\"PH\"],\"64\":[\"NZ\"],\"65\":[\"SG\"],\"66\":[\"TH\"],\"81\":[\"JP\"],\"82\":[\"KR\"],\"84\":[\"VN\"],\"86\":[\"CN\"],\"90\":[\"TR\"],\"91\":[\"IN\"],\"92\":[\"PK\"],\"93\":[\"AF\"],\"94\":[\"LK\"],\"95\":[\"MM\"],\"98\":[\"IR\"],\"211\":[\"SS\"],\"212\":[\"MA\",\"EH\"],\"213\":[\"DZ\"],\"216\":[\"TN\"],\"218\":[\"LY\"],\"220\":[\"GM\"],\"221\":[\"SN\"],\"222\":[\"MR\"],\"223\":[\"ML\"],\"224\":[\"GN\"],\"225\":[\"CI\"],\"226\":[\"BF\"],\"227\":[\"NE\"],\"228\":[\"TG\"],\"229\":[\"BJ\"],\"230\":[\"MU\"],\"231\":[\"LR\"],\"232\":[\"SL\"],\"233\":[\"GH\"],\"234\":[\"NG\"],\"235\":[\"TD\"],\"236\":[\"CF\"],\"237\":[\"CM\"],\"238\":[\"CV\"],\"239\":[\"ST\"],\"240\":[\"GQ\"],\"241\":[\"GA\"],\"242\":[\"CG\"],\"243\":[\"CD\"],\"244\":[\"AO\"],\"245\":[\"GW\"],\"246\":[\"IO\"],\"247\":[\"AC\"],\"248\":[\"SC\"],\"249\":[\"SD\"],\"250\":[\"RW\"],\"251\":[\"ET\"],\"252\":[\"SO\"],\"253\":[\"DJ\"],\"254\":[\"KE\"],\"255\":[\"TZ\"],\"256\":[\"UG\"],\"257\":[\"BI\"],\"258\":[\"MZ\"],\"260\":[\"ZM\"],\"261\":[\"MG\"],\"262\":[\"RE\",\"YT\"],\"263\":[\"ZW\"],\"264\":[\"NA\"],\"265\":[\"MW\"],\"266\":[\"LS\"],\"267\":[\"BW\"],\"268\":[\"SZ\"],\"269\":[\"KM\"],\"290\":[\"SH\",\"TA\"],\"291\":[\"ER\"],\"297\":[\"AW\"],\"298\":[\"FO\"],\"299\":[\"GL\"],\"350\":[\"GI\"],\"351\":[\"PT\"],\"352\":[\"LU\"],\"353\":[\"IE\"],\"354\":[\"IS\"],\"355\":[\"AL\"],\"356\":[\"MT\"],\"357\":[\"CY\"],\"358\":[\"FI\",\"AX\"],\"359\":[\"BG\"],\"370\":[\"LT\"],\"371\":[\"LV\"],\"372\":[\"EE\"],\"373\":[\"MD\"],\"374\":[\"AM\"],\"375\":[\"BY\"],\"376\":[\"AD\"],\"377\":[\"MC\"],\"378\":[\"SM\"],\"380\":[\"UA\"],\"381\":[\"RS\"],\"382\":[\"ME\"],\"383\":[\"XK\"],\"385\":[\"HR\"],\"386\":[\"SI\"],\"387\":[\"BA\"],\"389\":[\"MK\"],\"420\":[\"CZ\"],\"421\":[\"SK\"],\"423\":[\"LI\"],\"500\":[\"FK\"],\"501\":[\"BZ\"],\"502\":[\"GT\"],\"503\":[\"SV\"],\"504\":[\"HN\"],\"505\":[\"NI\"],\"506\":[\"CR\"],\"507\":[\"PA\"],\"508\":[\"PM\"],\"509\":[\"HT\"],\"590\":[\"GP\",\"BL\",\"MF\"],\"591\":[\"BO\"],\"592\":[\"GY\"],\"593\":[\"EC\"],\"594\":[\"GF\"],\"595\":[\"PY\"],\"596\":[\"MQ\"],\"597\":[\"SR\"],\"598\":[\"UY\"],\"599\":[\"CW\",\"BQ\"],\"670\":[\"TL\"],\"672\":[\"NF\"],\"673\":[\"BN\"],\"674\":[\"NR\"],\"675\":[\"PG\"],\"676\":[\"TO\"],\"677\":[\"SB\"],\"678\":[\"VU\"],\"679\":[\"FJ\"],\"680\":[\"PW\"],\"681\":[\"WF\"],\"682\":[\"CK\"],\"683\":[\"NU\"],\"685\":[\"WS\"],\"686\":[\"KI\"],\"687\":[\"NC\"],\"688\":[\"TV\"],\"689\":[\"PF\"],\"690\":[\"TK\"],\"691\":[\"FM\"],\"692\":[\"MH\"],\"850\":[\"KP\"],\"852\":[\"HK\"],\"853\":[\"MO\"],\"855\":[\"KH\"],\"856\":[\"LA\"],\"880\":[\"BD\"],\"886\":[\"TW\"],\"960\":[\"MV\"],\"961\":[\"LB\"],\"962\":[\"JO\"],\"963\":[\"SY\"],\"964\":[\"IQ\"],\"965\":[\"KW\"],\"966\":[\"SA\"],\"967\":[\"YE\"],\"968\":[\"OM\"],\"970\":[\"PS\"],\"971\":[\"AE\"],\"972\":[\"IL\"],\"973\":[\"BH\"],\"974\":[\"QA\"],\"975\":[\"BT\"],\"976\":[\"MN\"],\"977\":[\"NP\"],\"992\":[\"TJ\"],\"993\":[\"TM\"],\"994\":[\"AZ\"],\"995\":[\"GE\"],\"996\":[\"KG\"],\"998\":[\"UZ\"]},\"countries\":{\"AC\":[\"247\",\"00\",\"(?:[01589]\\\\d|[2-467])\\\\d{4}\",[5,6]],\"AD\":[\"376\",\"00\",\"(?:1|6\\\\d)\\\\d{7}|[135-9]\\\\d{5}\",[6,8,9],[[\"(\\\\d{3})(\\\\d{3})\",\"$1 $2\",[\"[135-9]\"]],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"1\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"6\"]]]],\"AE\":[\"971\",\"00\",\"(?:[4-7]\\\\d|9[0-689])\\\\d{7}|800\\\\d{2,9}|[2-4679]\\\\d{7}\",[5,6,7,8,9,10,11,12],[[\"(\\\\d{3})(\\\\d{2,9})\",\"$1 $2\",[\"60|8\"]],[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[236]|[479][2-8]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d)(\\\\d{5})\",\"$1 $2 $3\",[\"[479]\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"5\"],\"0$1\"]],\"0\"],\"AF\":[\"93\",\"00\",\"[2-7]\\\\d{8}\",[9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[2-7]\"],\"0$1\"]],\"0\"],\"AG\":[\"1\",\"011\",\"(?:268|[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,\"([457]\\\\d{6})$|1\",\"268$1\",0,\"268\"],\"AI\":[\"1\",\"011\",\"(?:264|[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,\"([2457]\\\\d{6})$|1\",\"264$1\",0,\"264\"],\"AL\":[\"355\",\"00\",\"(?:700\\\\d\\\\d|900)\\\\d{3}|8\\\\d{5,7}|(?:[2-5]|6\\\\d)\\\\d{7}\",[6,7,8,9],[[\"(\\\\d{3})(\\\\d{3,4})\",\"$1 $2\",[\"80|9\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"4[2-6]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[2358][2-5]|4\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{5})\",\"$1 $2\",[\"[23578]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"6\"],\"0$1\"]],\"0\"],\"AM\":[\"374\",\"00\",\"(?:[1-489]\\\\d|55|60|77)\\\\d{6}\",[8],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"[89]0\"],\"0 $1\"],[\"(\\\\d{3})(\\\\d{5})\",\"$1 $2\",[\"2|3[12]\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d{6})\",\"$1 $2\",[\"1|47\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d{6})\",\"$1 $2\",[\"[3-9]\"],\"0$1\"]],\"0\"],\"AO\":[\"244\",\"00\",\"[29]\\\\d{8}\",[9],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[29]\"]]]],\"AR\":[\"54\",\"00\",\"(?:11|[89]\\\\d\\\\d)\\\\d{8}|[2368]\\\\d{9}\",[10,11],[[\"(\\\\d{4})(\\\\d{2})(\\\\d{4})\",\"$1 $2-$3\",[\"2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])\",\"2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)\",\"2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]\",\"2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]\"],\"0$1\",1],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1 $2-$3\",[\"1\"],\"0$1\",1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1-$2-$3\",[\"[68]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2-$3\",[\"[23]\"],\"0$1\",1],[\"(\\\\d)(\\\\d{4})(\\\\d{2})(\\\\d{4})\",\"$2 15-$3-$4\",[\"9(?:2[2-469]|3[3-578])\",\"9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))\",\"9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)\",\"9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]\",\"9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]\"],\"0$1\",0,\"$1 $2 $3-$4\"],[\"(\\\\d)(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$2 15-$3-$4\",[\"91\"],\"0$1\",0,\"$1 $2 $3-$4\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{5})\",\"$1-$2-$3\",[\"8\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$2 15-$3-$4\",[\"9\"],\"0$1\",0,\"$1 $2 $3-$4\"]],\"0\",0,\"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?\",\"9$1\"],\"AS\":[\"1\",\"011\",\"(?:[58]\\\\d\\\\d|684|900)\\\\d{7}\",[10],0,\"1\",0,\"([267]\\\\d{6})$|1\",\"684$1\",0,\"684\"],\"AT\":[\"43\",\"00\",\"1\\\\d{3,12}|2\\\\d{6,12}|43(?:(?:0\\\\d|5[02-9])\\\\d{3,9}|2\\\\d{4,5}|[3467]\\\\d{4}|8\\\\d{4,6}|9\\\\d{4,7})|5\\\\d{4,12}|8\\\\d{7,12}|9\\\\d{8,12}|(?:[367]\\\\d|4[0-24-9])\\\\d{4,11}\",[4,5,6,7,8,9,10,11,12,13],[[\"(\\\\d)(\\\\d{3,12})\",\"$1 $2\",[\"1(?:11|[2-9])\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})\",\"$1 $2\",[\"517\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3,5})\",\"$1 $2\",[\"5[079]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3,10})\",\"$1 $2\",[\"(?:31|4)6|51|6(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]\",\"(?:31|4)6|51|6(?:485|5[0-3579]|[6-9])|7(?:20|32|8)|[89]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{3,9})\",\"$1 $2\",[\"[2-467]|5[2-6]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"5\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4,7})\",\"$1 $2 $3\",[\"5\"],\"0$1\"]],\"0\"],\"AU\":[\"61\",\"001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011\",\"1(?:[0-79]\\\\d{7}(?:\\\\d(?:\\\\d{2})?)?|8[0-24-9]\\\\d{7})|[2-478]\\\\d{8}|1\\\\d{4,7}\",[5,6,7,8,9,10,12],[[\"(\\\\d{2})(\\\\d{3,4})\",\"$1 $2\",[\"16\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2,4})\",\"$1 $2 $3\",[\"16\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"14|4\"],\"0$1\"],[\"(\\\\d)(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"[2378]\"],\"(0$1)\"],[\"(\\\\d{4})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"1(?:30|[89])\"]]],\"0\",0,\"(183[12])|0\",0,0,0,[[\"(?:(?:241|349)0\\\\d\\\\d|8(?:51(?:0(?:0[03-9]|[12479]\\\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\\\d|7[89]|9[0-4])|[34]\\\\d\\\\d)|91(?:(?:[0-58]\\\\d|6[0135-9])\\\\d|7(?:0[0-24-9]|[1-9]\\\\d)|9(?:[0-46-9]\\\\d|5[0-79]))))\\\\d{3}|(?:2(?:[0-26-9]\\\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\\\d|2[0-8])|8(?:55|6[0-8]|[78]\\\\d|9[02-9]))\\\\d{6}\",[9]],[\"4(?:79[01]|83[0-36-9]|9(?:5[0-3]|6[0-4]))\\\\d{5}|4(?:[0-36]\\\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\\\d{6}\",[9]],[\"180(?:0\\\\d{3}|2)\\\\d{3}\",[7,10]],[\"190[0-26]\\\\d{6}\",[10]],0,0,0,[\"163\\\\d{2,6}\",[5,6,7,8,9]],[\"14(?:5(?:1[0458]|[23][458])|71\\\\d)\\\\d{4}\",[9]],[\"13(?:00\\\\d{6}(?:\\\\d{2})?|45[0-4]\\\\d{3})|13\\\\d{4}\",[6,8,10,12]]],\"0011\"],\"AW\":[\"297\",\"00\",\"(?:[25-79]\\\\d\\\\d|800)\\\\d{4}\",[7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[25-9]\"]]]],\"AX\":[\"358\",\"00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))\",\"2\\\\d{4,9}|35\\\\d{4,5}|(?:60\\\\d\\\\d|800)\\\\d{4,6}|7\\\\d{5,11}|(?:[14]\\\\d|3[0-46-9]|50)\\\\d{4,8}\",[5,6,7,8,9,10,11,12],0,\"0\",0,0,0,0,\"18\",0,\"00\"],\"AZ\":[\"994\",\"00\",\"365\\\\d{6}|(?:[124579]\\\\d|60|88)\\\\d{7}\",[9],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"90\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"1[28]|2|365|46\",\"1[28]|2|365[45]|46\",\"1[28]|2|365(?:4|5[02])|46\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[13-9]\"],\"0$1\"]],\"0\"],\"BA\":[\"387\",\"00\",\"6\\\\d{8}|(?:[35689]\\\\d|49|70)\\\\d{6}\",[8,9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"6[1-3]|[7-9]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2-$3\",[\"[3-5]|6[56]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"6\"],\"0$1\"]],\"0\"],\"BB\":[\"1\",\"011\",\"(?:246|[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-9]\\\\d{6})$|1\",\"246$1\",0,\"246\"],\"BD\":[\"880\",\"00\",\"[1-469]\\\\d{9}|8[0-79]\\\\d{7,8}|[2-79]\\\\d{8}|[2-9]\\\\d{7}|[3-9]\\\\d{6}|[57-9]\\\\d{5}\",[6,7,8,9,10],[[\"(\\\\d{2})(\\\\d{4,6})\",\"$1-$2\",[\"31[5-8]|[459]1\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3,7})\",\"$1-$2\",[\"3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28)|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{3,6})\",\"$1-$2\",[\"[13-9]|2[23]\"],\"0$1\"],[\"(\\\\d)(\\\\d{7,8})\",\"$1-$2\",[\"2\"],\"0$1\"]],\"0\"],\"BE\":[\"32\",\"00\",\"4\\\\d{8}|[1-9]\\\\d{7}\",[8,9],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"(?:80|9)0\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[239]|4[23]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[15-8]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"4\"],\"0$1\"]],\"0\"],\"BF\":[\"226\",\"00\",\"[024-7]\\\\d{7}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[024-7]\"]]]],\"BG\":[\"359\",\"00\",\"00800\\\\d{7}|[2-7]\\\\d{6,7}|[89]\\\\d{6,8}|2\\\\d{5}\",[6,7,8,9,12],[[\"(\\\\d)(\\\\d)(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"2\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"43[1-6]|70[1-9]\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"2\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2,3})\",\"$1 $2 $3\",[\"[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"(?:70|8)0\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{2})\",\"$1 $2 $3\",[\"43[1-7]|7\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[48]|9[08]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"9\"],\"0$1\"]],\"0\"],\"BH\":[\"973\",\"00\",\"[136-9]\\\\d{7}\",[8],[[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[13679]|8[02-4679]\"]]]],\"BI\":[\"257\",\"00\",\"(?:[267]\\\\d|31)\\\\d{6}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[2367]\"]]]],\"BJ\":[\"229\",\"00\",\"01\\\\d{8}\",[10],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4 $5\",[\"0\"]]]],\"BL\":[\"590\",\"00\",\"7090\\\\d{5}|(?:[56]9|[89]\\\\d)\\\\d{7}\",[9],0,\"0\",0,0,0,0,0,[[\"(?:59(?:0(?:2[7-9]|3[3-7]|5[12]|87)|87\\\\d)|80[6-9]\\\\d\\\\d)\\\\d{4}\"],[\"(?:69(?:0\\\\d\\\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\\\d{4}\"],[\"80[0-5]\\\\d{6}\"],[\"8[129]\\\\d{7}\"],0,0,0,0,[\"9(?:(?:39[5-7]|76[018])\\\\d|475[0-6])\\\\d{4}\"]]],\"BM\":[\"1\",\"011\",\"(?:441|[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-9]\\\\d{6})$|1\",\"441$1\",0,\"441\"],\"BN\":[\"673\",\"00\",\"[2-578]\\\\d{6}\",[7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[2-578]\"]]]],\"BO\":[\"591\",\"00(?:1\\\\d)?\",\"(?:[2-7]\\\\d\\\\d|8001)\\\\d{5}\",[8,9],[[\"(\\\\d)(\\\\d{7})\",\"$1 $2\",[\"[23]|4[46]|50\"]],[\"(\\\\d{8})\",\"$1\",[\"[5-7]\"]],[\"(\\\\d{3})(\\\\d{2})(\\\\d{4})\",\"$1 $2 $3\",[\"8\"]]],\"0\",0,\"0(1\\\\d)?\"],\"BQ\":[\"599\",\"00\",\"(?:[34]1|7\\\\d)\\\\d{5}\",[7],0,0,0,0,0,0,\"[347]\"],\"BR\":[\"55\",\"00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)\",\"[1-467]\\\\d{9,10}|55[0-46-9]\\\\d{8}|[34]\\\\d{7}|55\\\\d{7,8}|(?:5[0-46-9]|[89]\\\\d)\\\\d{7,9}\",[8,9,10,11],[[\"(\\\\d{4})(\\\\d{4})\",\"$1-$2\",[\"300|4(?:0[02]|37|86)\",\"300|4(?:0(?:0|20)|370|864)\"]],[\"(\\\\d{3})(\\\\d{2,3})(\\\\d{4})\",\"$1 $2 $3\",[\"(?:[358]|90)0\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1 $2-$3\",[\"(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]\"],\"($1)\"],[\"(\\\\d{2})(\\\\d{5})(\\\\d{4})\",\"$1 $2-$3\",[\"[16][1-9]|[2-57-9]\"],\"($1)\"]],\"0\",0,\"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\\\d{10,11}))?\",\"$2\"],\"BS\":[\"1\",\"011\",\"(?:242|[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,\"([3-8]\\\\d{6})$|1\",\"242$1\",0,\"242\"],\"BT\":[\"975\",\"00\",\"[178]\\\\d{7}|[2-8]\\\\d{6}\",[7,8],[[\"(\\\\d)(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[2-6]|7[246]|8[2-4]\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"1[67]|[78]\"]]]],\"BW\":[\"267\",\"00\",\"90\\\\d{5}|(?:0800|[2-6]|(?:7|800)\\\\d)\\\\d{6}\",[7,8,10],[[\"(\\\\d{2})(\\\\d{5})\",\"$1 $2\",[\"90\"]],[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[2-6]\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"7\"]],[\"(\\\\d{4})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"0\"]],[\"(\\\\d{3})(\\\\d{4})(\\\\d{3})\",\"$1 $2 $3\",[\"8\"]]]],\"BY\":[\"375\",\"810\",\"(?:[12]\\\\d|33|44|902)\\\\d{7}|8(?:0[0-79]\\\\d{5,7}|[1-7]\\\\d{9})|8(?:1[0-489]|[5-79]\\\\d)\\\\d{7}|8[1-79]\\\\d{6,7}|8[0-79]\\\\d{5}|8\\\\d{5}\",[6,7,8,9,10,11],[[\"(\\\\d{3})(\\\\d{3})\",\"$1 $2\",[\"800\"],\"8 $1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2,4})\",\"$1 $2 $3\",[\"800\"],\"8 $1\"],[\"(\\\\d{4})(\\\\d{2})(\\\\d{3})\",\"$1 $2-$3\",[\"1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])\",\"1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])\"],\"8 0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2-$3-$4\",[\"1(?:[56]|7[467])|2[1-3]\"],\"8 0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2-$3-$4\",[\"[1-4]\"],\"8 0$1\"],[\"(\\\\d{3})(\\\\d{3,4})(\\\\d{4})\",\"$1 $2 $3\",[\"[89]\"],\"8 $1\"]],\"8\",0,\"0|80?\",0,0,0,0,\"8~10\"],\"BZ\":[\"501\",\"00\",\"(?:0800\\\\d|[2-8])\\\\d{6}\",[7,11],[[\"(\\\\d{3})(\\\\d{4})\",\"$1-$2\",[\"[2-8]\"]],[\"(\\\\d)(\\\\d{3})(\\\\d{4})(\\\\d{3})\",\"$1-$2-$3-$4\",[\"0\"]]]],\"CA\":[\"1\",\"011\",\"[2-9]\\\\d{9}|3\\\\d{6}\",[7,10],0,\"1\",0,0,0,0,0,[[\"(?:2(?:04|[23]6|[48]9|5[07]|[67]3)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\\\d{6}\",[10]],[\"\",[10]],[\"8(?:00|33|44|55|66|77|88)[2-9]\\\\d{6}\",[10]],[\"900[2-9]\\\\d{6}\",[10]],[\"52(?:3(?:[2-46-9][02-9]\\\\d|5(?:[02-46-9]\\\\d|5[0-46-9]))|4(?:[2-478][02-9]\\\\d|5(?:[034]\\\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\\\d)|9(?:[05-9]\\\\d|2[0-5]|49)))\\\\d{4}|52[34][2-9]1[02-9]\\\\d{4}|(?:5(?:2[125-9]|3[23]|44|66|77|88)|6(?:22|33))[2-9]\\\\d{6}\",[10]],0,[\"310\\\\d{4}\",[7]],0,[\"600[2-9]\\\\d{6}\",[10]]]],\"CC\":[\"61\",\"001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011\",\"1(?:[0-79]\\\\d{8}(?:\\\\d{2})?|8[0-24-9]\\\\d{7})|[148]\\\\d{8}|1\\\\d{5,7}\",[6,7,8,9,10,12],0,\"0\",0,\"([59]\\\\d{7})$|0\",\"8$1\",0,0,[[\"8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\\\d|70[23]|959))\\\\d{3}\",[9]],[\"4(?:79[01]|83[0-36-9]|9(?:5[0-3]|6[0-4]))\\\\d{5}|4(?:[0-36]\\\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\\\d{6}\",[9]],[\"180(?:0\\\\d{3}|2)\\\\d{3}\",[7,10]],[\"190[0-26]\\\\d{6}\",[10]],0,0,0,0,[\"14(?:5(?:1[0458]|[23][458])|71\\\\d)\\\\d{4}\",[9]],[\"13(?:00\\\\d{6}(?:\\\\d{2})?|45[0-4]\\\\d{3})|13\\\\d{4}\",[6,8,10,12]]],\"0011\"],\"CD\":[\"243\",\"00\",\"(?:(?:[189]|5\\\\d)\\\\d|2)\\\\d{7}|[1-68]\\\\d{6}\",[7,8,9,10],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"88\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{5})\",\"$1 $2\",[\"[1-6]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{2})(\\\\d{4})\",\"$1 $2 $3\",[\"2\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"1\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[89]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"5\"],\"0$1\"]],\"0\"],\"CF\":[\"236\",\"00\",\"8776\\\\d{4}|(?:[27]\\\\d|61)\\\\d{6}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[26-8]\"]]]],\"CG\":[\"242\",\"00\",\"222\\\\d{6}|(?:0\\\\d|80)\\\\d{7}\",[9],[[\"(\\\\d)(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"8\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[02]\"]]]],\"CH\":[\"41\",\"00\",\"8\\\\d{11}|[2-9]\\\\d{8}\",[9,12],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"8[047]|90\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[2-79]|81\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4 $5\",[\"8\"],\"0$1\"]],\"0\"],\"CI\":[\"225\",\"00\",\"[02]\\\\d{9}\",[10],[[\"(\\\\d{2})(\\\\d{2})(\\\\d)(\\\\d{5})\",\"$1 $2 $3 $4\",[\"2\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{4})\",\"$1 $2 $3 $4\",[\"0\"]]]],\"CK\":[\"682\",\"00\",\"[2-578]\\\\d{4}\",[5],[[\"(\\\\d{2})(\\\\d{3})\",\"$1 $2\",[\"[2-578]\"]]]],\"CL\":[\"56\",\"(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0\",\"12300\\\\d{6}|6\\\\d{9,10}|[2-9]\\\\d{8}\",[9,10,11],[[\"(\\\\d{5})(\\\\d{4})\",\"$1 $2\",[\"219\",\"2196\"],\"($1)\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"60|809\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"44\"]],[\"(\\\\d)(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"2[1-36]\"],\"($1)\"],[\"(\\\\d)(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"9(?:10|[2-9])\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[1-9])\"],\"($1)\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"60|8\"]],[\"(\\\\d{4})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"1\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"60\"]]]],\"CM\":[\"237\",\"00\",\"[26]\\\\d{8}|88\\\\d{6,7}\",[8,9],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"88\"]],[\"(\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4 $5\",[\"[26]|88\"]]]],\"CN\":[\"86\",\"00|1(?:[12]\\\\d|79)\\\\d\\\\d00\",\"(?:(?:1[03-689]|2\\\\d)\\\\d\\\\d|6)\\\\d{8}|1\\\\d{10}|[126]\\\\d{6}(?:\\\\d(?:\\\\d{2})?)?|86\\\\d{5,6}|(?:[3-579]\\\\d|8[0-57-9])\\\\d{5,9}\",[7,8,9,10,11,12],[[\"(\\\\d{2})(\\\\d{5})\",\"$1 $2\",[\"101\",\"1010\",\"10100\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{5,6})\",\"$1 $2\",[\"(?:10|2[0-57-9])[19]|3(?:[15]|35|49|9[1-68])|4(?:1[125-9]|2[179]|[35][1-9]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-35]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|9[0-35-9])|[39]7[0-79]\",\"10(?:12|9[56])|2[0-57-9](?:1[02]|9[56])|(?:3(?:[15]\\\\d|35|49|7[0-79]|9[1-68])|4(?:1[125-9]|2[179]|[35][1-9]|6[47-9]|7\\\\d|8[23])|5(?:[1357]\\\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-35]|6[0238]|9[12])|7(?:01|[1579]\\\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1\",\"10(?:123|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[15]\\\\d|35|49|7[0-79]|9[1-68])|4(?:1[125-9]|2[179]|[35][1-9]|6[47-9]|7\\\\d|8[23])|5(?:[1357]\\\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-35]|6[0238]|9[12])|7(?:01|[1579]\\\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12\",\"10(?:123|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[15]\\\\d|35|49|7[0-79]|9[1-68])|4(?:1[125-9]|2[179]|[35][1-9]|6[47-9]|7\\\\d|8[23])|5(?:[1357]\\\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-35]|6[0238]|9[12])|7(?:01|[1579]\\\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"101\",\"1010\"]],[\"(\\\\d{3})(\\\\d{5,6})\",\"$1 $2\",[\"3(?:[15]|35|49|7[0-79]|9[1-68])|4(?:1[125-9]|2[179]|[35][1-9]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-35]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])\",\"(?:3(?:[15]\\\\d|35|49|7[0-79]|9[1-68])|4(?:1[125-9]|2[179]|[35][1-9]|6[47-9]|7\\\\d|8[23])|5(?:[1357]\\\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-35]|6[0238]|9[12])|7(?:01|[1579]\\\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\\\d|4[13]|5[1-5]))[19]\",\"(?:3(?:[15]\\\\d|35|49|7[0-79]|9[1-68])|4(?:1[125-9]|2[179]|[35][1-9]|6[47-9]|7\\\\d|8[23])|5(?:[1357]\\\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-35]|6[0238]|9[12])|7(?:01|[1579]\\\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\\\d|4[13]|5[1-5]))(?:10|9[56])\",\"(?:3(?:[15]\\\\d|35|49|7[0-79]|9[1-68])|4(?:1[125-9]|2[179]|[35][1-9]|6[47-9]|7\\\\d|8[23])|5(?:[1357]\\\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-35]|6[0238]|9[12])|7(?:01|[1579]\\\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\\\d|4[13]|5[1-5]))(?:100|9[56])\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[48]0\"]],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"10|2(?:[02-57-9]|1[1-9])\",\"10|2(?:[02-57-9]|1[1-9])\",\"10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])\"],\"0$1\",1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"3(?:[3-59]|7[02-6])|4(?:1[25-9]|[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:31|55|79|87)[02-9]\"],\"0$1\",1],[\"(\\\\d{3})(\\\\d{7,8})\",\"$1 $2\",[\"9\"]],[\"(\\\\d{3})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"[3-578]\"],\"0$1\",1],[\"(\\\\d{3})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"1[3-9]\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3 $4\",[\"[12]\"],\"0$1\",1]],\"0\",0,\"(1(?:[12]\\\\d|79)\\\\d\\\\d)|0\",0,0,0,0,\"00\"],\"CO\":[\"57\",\"00(?:4(?:[14]4|56)|[579])\",\"(?:46|60\\\\d\\\\d)\\\\d{6}|(?:1\\\\d|[39])\\\\d{9}\",[8,10,11],[[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"46\"]],[\"(\\\\d{3})(\\\\d{7})\",\"$1 $2\",[\"6|90\"],\"($1)\"],[\"(\\\\d{3})(\\\\d{7})\",\"$1 $2\",[\"3[0-357]|94\"]],[\"(\\\\d)(\\\\d{3})(\\\\d{7})\",\"$1-$2-$3\",[\"1\"],\"0$1\",0,\"$1 $2 $3\"]],\"0\",0,\"0([3579]|4(?:[14]4|56))?\"],\"CR\":[\"506\",\"00\",\"(?:8\\\\d|90)\\\\d{8}|(?:[24-8]\\\\d{3}|3005)\\\\d{4}\",[8,10],[[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[2-7]|8[3-9]\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1-$2-$3\",[\"[89]\"]]],0,0,\"(19(?:0[0-2468]|1[09]|20|66|77|99))\"],\"CU\":[\"53\",\"119\",\"(?:[2-7]|8\\\\d\\\\d)\\\\d{7}|[2-47]\\\\d{6}|[34]\\\\d{5}\",[6,7,8,10],[[\"(\\\\d{2})(\\\\d{4,6})\",\"$1 $2\",[\"2[1-4]|[34]\"],\"(0$1)\"],[\"(\\\\d)(\\\\d{6,7})\",\"$1 $2\",[\"7\"],\"(0$1)\"],[\"(\\\\d)(\\\\d{7})\",\"$1 $2\",[\"[56]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{7})\",\"$1 $2\",[\"8\"],\"0$1\"]],\"0\"],\"CV\":[\"238\",\"0\",\"(?:[2-59]\\\\d\\\\d|800)\\\\d{4}\",[7],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3\",[\"[2-589]\"]]]],\"CW\":[\"599\",\"00\",\"(?:[34]1|60|(?:7|9\\\\d)\\\\d)\\\\d{5}\",[7,8],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[3467]\"]],[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"9[4-8]\"]]],0,0,0,0,0,\"[69]\"],\"CX\":[\"61\",\"001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011\",\"1(?:[0-79]\\\\d{8}(?:\\\\d{2})?|8[0-24-9]\\\\d{7})|[148]\\\\d{8}|1\\\\d{5,7}\",[6,7,8,9,10,12],0,\"0\",0,\"([59]\\\\d{7})$|0\",\"8$1\",0,0,[[\"8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\\\d|7(?:0[01]|1[0-2])|958))\\\\d{3}\",[9]],[\"4(?:79[01]|83[0-36-9]|9(?:5[0-3]|6[0-4]))\\\\d{5}|4(?:[0-36]\\\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\\\d{6}\",[9]],[\"180(?:0\\\\d{3}|2)\\\\d{3}\",[7,10]],[\"190[0-26]\\\\d{6}\",[10]],0,0,0,0,[\"14(?:5(?:1[0458]|[23][458])|71\\\\d)\\\\d{4}\",[9]],[\"13(?:00\\\\d{6}(?:\\\\d{2})?|45[0-4]\\\\d{3})|13\\\\d{4}\",[6,8,10,12]]],\"0011\"],\"CY\":[\"357\",\"00\",\"(?:[279]\\\\d|[58]0)\\\\d{6}\",[8],[[\"(\\\\d{2})(\\\\d{6})\",\"$1 $2\",[\"[257-9]\"]]]],\"CZ\":[\"420\",\"00\",\"(?:[2-578]\\\\d|60)\\\\d{7}|9\\\\d{8,11}\",[9,10,11,12],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[2-8]|9[015-7]\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"96\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"9\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"9\"]]]],\"DE\":[\"49\",\"00\",\"[2579]\\\\d{5,14}|49(?:[34]0|69|8\\\\d)\\\\d\\\\d?|49(?:37|49|60|7[089]|9\\\\d)\\\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\\\d{1,8}|(?:1|[368]\\\\d|4[0-8])\\\\d{3,13}|49(?:[015]\\\\d|2[13]|31|[46][1-8])\\\\d{1,9}\",[4,5,6,7,8,9,10,11,12,13,14,15],[[\"(\\\\d{2})(\\\\d{3,13})\",\"$1 $2\",[\"3[02]|40|[68]9\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3,12})\",\"$1 $2\",[\"2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1\",\"2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{2,11})\",\"$1 $2\",[\"[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]\",\"[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"138\"],\"0$1\"],[\"(\\\\d{5})(\\\\d{2,10})\",\"$1 $2\",[\"3\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{5,11})\",\"$1 $2\",[\"181\"],\"0$1\"],[\"(\\\\d{3})(\\\\d)(\\\\d{4,10})\",\"$1 $2 $3\",[\"1(?:3|80)|9\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{7,8})\",\"$1 $2\",[\"1[67]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{7,12})\",\"$1 $2\",[\"8\"],\"0$1\"],[\"(\\\\d{5})(\\\\d{6})\",\"$1 $2\",[\"185\",\"1850\",\"18500\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"7\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{7})\",\"$1 $2\",[\"18[68]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{7})\",\"$1 $2\",[\"15[1279]\"],\"0$1\"],[\"(\\\\d{5})(\\\\d{6})\",\"$1 $2\",[\"15[03-68]\",\"15(?:[0568]|3[13]|41)\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{8})\",\"$1 $2\",[\"18\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{7,8})\",\"$1 $2 $3\",[\"1(?:6[023]|7)\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{2})(\\\\d{7})\",\"$1 $2 $3\",[\"15[279]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{8})\",\"$1 $2 $3\",[\"15\"],\"0$1\"]],\"0\"],\"DJ\":[\"253\",\"00\",\"(?:2\\\\d|77)\\\\d{6}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[27]\"]]]],\"DK\":[\"45\",\"00\",\"[2-9]\\\\d{7}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[2-9]\"]]]],\"DM\":[\"1\",\"011\",\"(?:[58]\\\\d\\\\d|767|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-7]\\\\d{6})$|1\",\"767$1\",0,\"767\"],\"DO\":[\"1\",\"011\",\"(?:[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,0,0,0,\"8001|8[024]9\"],\"DZ\":[\"213\",\"00\",\"(?:[1-4]|[5-79]\\\\d|80)\\\\d{7}\",[8,9],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[1-4]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"9\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[5-8]\"],\"0$1\"]],\"0\"],\"EC\":[\"593\",\"00\",\"1\\\\d{9,10}|(?:[2-7]|9\\\\d)\\\\d{7}\",[8,9,10,11],[[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2-$3\",[\"[2-7]\"],\"(0$1)\",0,\"$1-$2-$3\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"9\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"1\"]]],\"0\"],\"EE\":[\"372\",\"00\",\"8\\\\d{9}|[4578]\\\\d{7}|(?:[3-8]\\\\d|90)\\\\d{5}\",[7,8,10],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88\",\"[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88\"]],[\"(\\\\d{4})(\\\\d{3,4})\",\"$1 $2\",[\"[45]|8(?:00|[1-49])\",\"[45]|8(?:00[1-9]|[1-49])\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{4})\",\"$1 $2 $3\",[\"7\"]],[\"(\\\\d{4})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"8\"]]]],\"EG\":[\"20\",\"00\",\"[189]\\\\d{8,9}|[24-6]\\\\d{8}|[135]\\\\d{7}\",[8,9,10],[[\"(\\\\d)(\\\\d{7,8})\",\"$1 $2\",[\"[23]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{6,7})\",\"$1 $2\",[\"1[35]|[4-6]|8[2468]|9[235-7]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[89]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{8})\",\"$1 $2\",[\"1\"],\"0$1\"]],\"0\"],\"EH\":[\"212\",\"00\",\"[5-8]\\\\d{8}\",[9],0,\"0\",0,0,0,0,0,[[\"528[89]\\\\d{5}\"],[\"(?:6(?:[0-79]\\\\d|8[0-247-9])|7(?:[016-8]\\\\d|2[0-8]|3[01]|5[0-5]))\\\\d{6}\"],[\"80[0-7]\\\\d{6}\"],[\"89\\\\d{7}\"],0,0,0,0,[\"(?:592(?:4[0-2]|93)|80[89]\\\\d\\\\d)\\\\d{4}\"]]],\"ER\":[\"291\",\"00\",\"[178]\\\\d{6}\",[7],[[\"(\\\\d)(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[178]\"],\"0$1\"]],\"0\"],\"ES\":[\"34\",\"00\",\"400\\\\d{6}|(?:51|[6-9]\\\\d)\\\\d{7}\",[9],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[89]00\"]],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[4-9]\"]]]],\"ET\":[\"251\",\"00\",\"(?:11|[2-57-9]\\\\d)\\\\d{7}\",[9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[1-57-9]\"],\"0$1\"]],\"0\"],\"FI\":[\"358\",\"00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))\",\"[1-35689]\\\\d{4}|7\\\\d{10,11}|(?:[124-7]\\\\d|3[0-46-9])\\\\d{8}|[1-9]\\\\d{5,8}\",[5,6,7,8,9,10,11,12],[[\"(\\\\d{5})\",\"$1\",[\"20[2-59]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3,7})\",\"$1 $2\",[\"(?:[1-3]0|[68])0|70[07-9]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{4,8})\",\"$1 $2\",[\"[14]|2[09]|50|7[135]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{6,10})\",\"$1 $2\",[\"7\"],\"0$1\"],[\"(\\\\d)(\\\\d{4,9})\",\"$1 $2\",[\"(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9\"],\"0$1\"]],\"0\",0,0,0,0,\"1[03-79]|[2-9]\",0,\"00\"],\"FJ\":[\"679\",\"0(?:0|52)\",\"45\\\\d{5}|(?:0800\\\\d|[235-9])\\\\d{6}\",[7,11],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[235-9]|45\"]],[\"(\\\\d{4})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"0\"]]],0,0,0,0,0,0,0,\"00\"],\"FK\":[\"500\",\"00\",\"[2-7]\\\\d{4}\",[5]],\"FM\":[\"691\",\"00\",\"(?:[39]\\\\d\\\\d|820)\\\\d{4}\",[7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[389]\"]]]],\"FO\":[\"298\",\"00\",\"[2-9]\\\\d{5}\",[6],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3\",[\"[2-9]\"]]],0,0,\"(10(?:01|[12]0|88))\"],\"FR\":[\"33\",\"00\",\"[1-9]\\\\d{8}\",[9],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"8\"],\"0 $1\"],[\"(\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4 $5\",[\"[1-79]\"],\"0$1\"]],\"0\"],\"GA\":[\"241\",\"00\",\"(?:[067]\\\\d|11)\\\\d{6}|[2-7]\\\\d{6}\",[7,8],[[\"(\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[2-7]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"0\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"11|[67]\"],\"0$1\"]],0,0,\"0(11\\\\d{6}|60\\\\d{6}|61\\\\d{6}|6[256]\\\\d{6}|7[467]\\\\d{6})\",\"$1\"],\"GB\":[\"44\",\"00\",\"[1-357-9]\\\\d{9}|[18]\\\\d{8}|8\\\\d{6}\",[7,9,10],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"800\",\"8001\",\"80011\",\"800111\",\"8001111\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3\",[\"845\",\"8454\",\"84546\",\"845464\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{6})\",\"$1 $2\",[\"800\"],\"0$1\"],[\"(\\\\d{5})(\\\\d{4,5})\",\"$1 $2\",[\"1(?:38|5[23]|69|76|94)\",\"1(?:(?:38|69)7|5(?:24|39)|768|946)\",\"1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{5,6})\",\"$1 $2\",[\"1(?:[2-69][02-9]|[78])\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"[25]|7(?:0|6[02-9])\",\"[25]|7(?:0|6(?:[03-9]|2[356]))\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{6})\",\"$1 $2\",[\"7\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[1389]\"],\"0$1\"]],\"0\",0,\"0|180020\",0,0,0,[[\"(?:1(?:1(?:3(?:[0-58]\\\\d\\\\d|73[0-5])|4(?:(?:[0-5]\\\\d|70)\\\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\\\d|6(?:[0-4]\\\\d|5[01]))\\\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\\\d)\\\\d|1(?:[0-7]\\\\d|8[0-3]))|(?:3(?:0\\\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\\\d)\\\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\\\d{3})\\\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\\\d)|76\\\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\\\d|7[4-79])|295[5-7]|35[34]\\\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\\\d{3}\",[9,10]],[\"7(?:457[0-57-9]|700[01]|911[028])\\\\d{5}|7(?:[1-3]\\\\d\\\\d|4(?:[0-46-9]\\\\d|5[0-689])|5(?:0[0-8]|[13-9]\\\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\\\d|8[02-9]|9[0-689])|8(?:[014-9]\\\\d|[23][0-8])|9(?:[024-9]\\\\d|1[02-9]|3[0-689]))\\\\d{6}\",[10]],[\"80[08]\\\\d{7}|800\\\\d{6}|8001111\"],[\"(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\\\d|8[2-49]))\\\\d{7}|845464\\\\d\",[7,10]],[\"70\\\\d{8}\",[10]],0,[\"(?:3[0347]|55)\\\\d{8}\",[10]],[\"76(?:464|652)\\\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\\\d{6}\",[10]],[\"56\\\\d{8}\",[10]]],0,\" x\"],\"GD\":[\"1\",\"011\",\"(?:473|[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-9]\\\\d{6})$|1\",\"473$1\",0,\"473\"],\"GE\":[\"995\",\"00\",\"(?:[3-57]\\\\d\\\\d|800)\\\\d{6}\",[9],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"70\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"32\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[57]\"]],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[348]\"],\"0$1\"]],\"0\"],\"GF\":[\"594\",\"00\",\"(?:694\\\\d|7093)\\\\d{5}|(?:59|[89]\\\\d)\\\\d{7}\",[9],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[5-7]|80[6-9]|9[47]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[89]\"],\"0$1\"]],\"0\"],\"GG\":[\"44\",\"00\",\"(?:1481|[357-9]\\\\d{3})\\\\d{6}|8\\\\d{6}(?:\\\\d{2})?\",[7,9,10],0,\"0\",0,\"([25-9]\\\\d{5})$|0|180020\",\"1481$1\",0,0,[[\"1481[25-9]\\\\d{5}\",[10]],[\"7(?:(?:781|839)\\\\d|911[17])\\\\d{5}\",[10]],[\"80[08]\\\\d{7}|800\\\\d{6}|8001111\"],[\"(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\\\d|8[0-3]))\\\\d{7}|845464\\\\d\",[7,10]],[\"70\\\\d{8}\",[10]],0,[\"(?:3[0347]|55)\\\\d{8}\",[10]],[\"76(?:464|652)\\\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\\\d{6}\",[10]],[\"56\\\\d{8}\",[10]]]],\"GH\":[\"233\",\"00\",\"[235]\\\\d{8}|800\\\\d{5,6}\",[8,9],[[\"(\\\\d{3})(\\\\d{5})\",\"$1 $2\",[\"8\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[2358]\"],\"0$1\"]],\"0\"],\"GI\":[\"350\",\"00\",\"(?:[25]\\\\d|60)\\\\d{6}\",[8],[[\"(\\\\d{3})(\\\\d{5})\",\"$1 $2\",[\"2\"]]]],\"GL\":[\"299\",\"00\",\"(?:19|[2-689]\\\\d|70)\\\\d{4}\",[6],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3\",[\"19|[2-9]\"]]]],\"GM\":[\"220\",\"00\",\"[48]\\\\d{8}|[2-9]\\\\d{6}\",[7,9],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[235-9]|4(?:[0-35]|4[16-9])\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[48]\"]]]],\"GN\":[\"224\",\"00\",\"722\\\\d{6}|(?:3|6\\\\d)\\\\d{7}\",[8,9],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"3\"]],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[67]\"]]]],\"GP\":[\"590\",\"00\",\"7090\\\\d{5}|(?:[56]9|[89]\\\\d)\\\\d{7}\",[9],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[5-79]|80[6-9]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"8\"],\"0$1\"]],\"0\",0,0,0,0,0,[[\"(?:59(?:0(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\\\d)|87\\\\d)|80[6-9]\\\\d\\\\d)\\\\d{4}\"],[\"(?:69(?:0\\\\d\\\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\\\d{4}\"],[\"80[0-5]\\\\d{6}\"],[\"8[129]\\\\d{7}\"],0,0,0,0,[\"9(?:(?:39[5-7]|76[018])\\\\d|475[0-6])\\\\d{4}\"]]],\"GQ\":[\"240\",\"00\",\"222\\\\d{6}|(?:3\\\\d|55|[89]0)\\\\d{7}\",[9],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[235]\"]],[\"(\\\\d{3})(\\\\d{6})\",\"$1 $2\",[\"[89]\"]]]],\"GR\":[\"30\",\"00\",\"5005000\\\\d{3}|8\\\\d{9,11}|(?:[269]\\\\d|70)\\\\d{8}\",[10,11,12],[[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"21|7\"]],[\"(\\\\d{4})(\\\\d{6})\",\"$1 $2\",[\"2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[2689]\"]],[\"(\\\\d{3})(\\\\d{3,4})(\\\\d{5})\",\"$1 $2 $3\",[\"8\"]]]],\"GT\":[\"502\",\"00\",\"80\\\\d{6}|(?:1\\\\d{3}|[2-7])\\\\d{7}\",[8,11],[[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[2-8]\"]],[\"(\\\\d{4})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"1\"]]]],\"GU\":[\"1\",\"011\",\"(?:[58]\\\\d\\\\d|671|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-9]\\\\d{6})$|1\",\"671$1\",0,\"671\"],\"GW\":[\"245\",\"00\",\"[49]\\\\d{8}|4\\\\d{6}\",[7,9],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"40\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[49]\"]]]],\"GY\":[\"592\",\"001\",\"(?:[2-8]\\\\d{3}|9008)\\\\d{3}\",[7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[2-9]\"]]]],\"HK\":[\"852\",\"00(?:30|5[09]|[126-9]?)\",\"8[0-46-9]\\\\d{6,7}|9\\\\d{4,7}|(?:[2-7]|9\\\\d{3})\\\\d{7}\",[5,6,7,8,9,11],[[\"(\\\\d{3})(\\\\d{2,5})\",\"$1 $2\",[\"900\",\"9003\"]],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[2-7]|8[1-4]|9(?:0[1-9]|[1-8])\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"8\"]],[\"(\\\\d{3})(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"9\"]]],0,0,0,0,0,0,0,\"00\"],\"HN\":[\"504\",\"00\",\"8\\\\d{10}|[237-9]\\\\d{7}\",[8,11],[[\"(\\\\d{4})(\\\\d{4})\",\"$1-$2\",[\"[237-9]\"]]]],\"HR\":[\"385\",\"00\",\"[2-69]\\\\d{8}|80\\\\d{5,7}|[1-79]\\\\d{7}|6\\\\d{6}\",[7,8,9],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"6[01]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2,3})\",\"$1 $2 $3\",[\"8\"],\"0$1\"],[\"(\\\\d)(\\\\d{4})(\\\\d{3})\",\"$1 $2 $3\",[\"1\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"6|7[245]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"9\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[2-57]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"8\"],\"0$1\"]],\"0\"],\"HT\":[\"509\",\"00\",\"[2-589]\\\\d{7}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{4})\",\"$1 $2 $3\",[\"[2-589]\"]]]],\"HU\":[\"36\",\"00\",\"[235-7]\\\\d{8}|[1-9]\\\\d{7}\",[8,9],[[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"1\"],\"(06 $1)\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]\"],\"(06 $1)\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[2-9]\"],\"06 $1\"]],\"06\"],\"ID\":[\"62\",\"00[89]\",\"00[1-9]\\\\d{9,14}|(?:[1-36]|8\\\\d{5})\\\\d{6}|00\\\\d{9}|[1-9]\\\\d{8,10}|[2-9]\\\\d{7}\",[7,8,9,10,11,12,13,14,15,16,17],[[\"(\\\\d)(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"15\"]],[\"(\\\\d{2})(\\\\d{5,9})\",\"$1 $2\",[\"2[124]|[36]1\"],\"(0$1)\"],[\"(\\\\d{3})(\\\\d{5,7})\",\"$1 $2\",[\"800\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{5,8})\",\"$1 $2\",[\"[2-79]\"],\"(0$1)\"],[\"(\\\\d{3})(\\\\d{3,4})(\\\\d{3})\",\"$1-$2-$3\",[\"8[1-35-9]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{6,8})\",\"$1 $2\",[\"1\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"804\"],\"0$1\"],[\"(\\\\d{3})(\\\\d)(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"80\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{4})(\\\\d{4,5})\",\"$1-$2-$3\",[\"8\"],\"0$1\"]],\"0\"],\"IE\":[\"353\",\"00\",\"(?:1\\\\d|[2569])\\\\d{6,8}|4\\\\d{6,9}|7\\\\d{8}|8\\\\d{8,9}\",[7,8,9,10],[[\"(\\\\d{2})(\\\\d{5})\",\"$1 $2\",[\"2[24-9]|47|58|6[237-9]|9[35-9]\"],\"(0$1)\"],[\"(\\\\d{3})(\\\\d{5})\",\"$1 $2\",[\"[45]0\"],\"(0$1)\"],[\"(\\\\d)(\\\\d{3,4})(\\\\d{4})\",\"$1 $2 $3\",[\"1\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[2569]|4[1-69]|7[14]\"],\"(0$1)\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"70\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"81\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[78]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"1\"]],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"4\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3 $4\",[\"8\"],\"0$1\"]],\"0\"],\"IL\":[\"972\",\"0(?:0|1(?:05|[2-9]))\",\"1\\\\d{6}(?:\\\\d{3,5})?|[57]\\\\d{8}|[1-489]\\\\d{7}\",[7,8,9,10,11,12],[[\"(\\\\d{4})(\\\\d{3})\",\"$1-$2\",[\"125\"]],[\"(\\\\d{4})(\\\\d{2})(\\\\d{2})\",\"$1-$2-$3\",[\"121\"]],[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1-$2-$3\",[\"[2-489]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1-$2-$3\",[\"[57]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{3})(\\\\d{3})\",\"$1-$2-$3\",[\"12\"]],[\"(\\\\d{4})(\\\\d{6})\",\"$1-$2\",[\"159\"]],[\"(\\\\d)(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1-$2-$3-$4\",[\"1[7-9]\"]],[\"(\\\\d{3})(\\\\d{1,2})(\\\\d{3})(\\\\d{4})\",\"$1-$2 $3-$4\",[\"15\"]]],\"0\"],\"IM\":[\"44\",\"00\",\"1624\\\\d{6}|(?:[3578]\\\\d|90)\\\\d{8}\",[10],0,\"0\",0,\"([25-8]\\\\d{5})$|0|180020\",\"1624$1\",0,\"74576|(?:16|7[56])24\"],\"IN\":[\"91\",\"00\",\"(?:000800|[2-9]\\\\d\\\\d)\\\\d{7}|1\\\\d{7,12}\",[8,9,10,11,12,13],[[\"(\\\\d{8})\",\"$1\",[\"5(?:0|2[23]|3[03]|[67]1|88)\",\"5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)\",\"5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)\"],0,1],[\"(\\\\d{4})(\\\\d{4,5})\",\"$1 $2\",[\"180\",\"1800\"],0,1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"140\"],0,1],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"11|2[02]|33|4[04]|79[1-5]|80[2-46]\",\"11|2[02]|33|4[04]|79[1-5]|80(?:[2-4]|6[0-589])\",\"11|2[02]|33|4[04]|79(?:[1245]|3(?:[02-9]|1[0-24-9]))|80(?:[2-4]|6[0-589])\"],\"0$1\",1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67)[14]\",\"1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31)|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]\",\"1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:3171|5[15][2-6]|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|8(?:16|2[014]|3[126]|6[136]|7[78]|83)(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]\"],\"0$1\",1],[\"(\\\\d{4})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|3[129]|5[29]|6[02-5]|70)|807\",\"1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7(?:[23569]|8[0-57-9])|8[1-6])|7(?:1(?:[013-8]|9[6-9])|3(?:17|2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]\",\"1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578])\\\\d|7(?:[23569]\\\\d|8[0-57-9])|8(?:[14-6]\\\\d|2[0-79]))|7(?:1(?:[013-8]\\\\d|9[6-9])|3(?:2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\\\d|5[0-367])|70[13-7]))[2-7]\"],\"0$1\",1],[\"(\\\\d{5})(\\\\d{5})\",\"$1 $2\",[\"16|[6-9]\"],\"0$1\",1],[\"(\\\\d{4})(\\\\d{2,4})(\\\\d{4})\",\"$1 $2 $3\",[\"18[06]\",\"18[06]0\"],0,1],[\"(\\\\d{4})(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"18\"],0,1]],\"0\"],\"IO\":[\"246\",\"00\",\"3\\\\d{6}\",[7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"3\"]]]],\"IQ\":[\"964\",\"00\",\"(?:1|7\\\\d\\\\d)\\\\d{7}|[2-6]\\\\d{7,8}\",[8,9,10],[[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"1\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[2-6]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"7\"],\"0$1\"]],\"0\"],\"IR\":[\"98\",\"00\",\"[1-9]\\\\d{9}|(?:[1-8]\\\\d\\\\d|9)\\\\d{3,4}\",[4,5,6,7,10],[[\"(\\\\d{4,5})\",\"$1\",[\"96\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{4,5})\",\"$1 $2\",[\"(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"9\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"[1-8]\"],\"0$1\"]],\"0\"],\"IS\":[\"354\",\"00|1(?:0(?:01|[12]0)|100)\",\"(?:38\\\\d|[4-9])\\\\d{6}\",[7,9],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[4-9]\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"3\"]]],0,0,0,0,0,0,0,\"00\"],\"IT\":[\"39\",\"00\",\"0\\\\d{5,11}|1\\\\d{8,10}|3(?:[0-8]\\\\d{7,10}|9\\\\d{7,8})|(?:43|55|70)\\\\d{8}|8\\\\d{5}(?:\\\\d{2,4})?\",[6,7,8,9,10,11,12],[[\"(\\\\d{2})(\\\\d{4,6})\",\"$1 $2\",[\"0[26]\"]],[\"(\\\\d{3})(\\\\d{3,6})\",\"$1 $2\",[\"0[13-57-9][0159]|8(?:03|4[17]|9[2-5])\",\"0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))\"]],[\"(\\\\d{4})(\\\\d{2,6})\",\"$1 $2\",[\"0(?:[13-579][2-46-8]|8[236-8])\"]],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"894\"]],[\"(\\\\d{2})(\\\\d{3,4})(\\\\d{4})\",\"$1 $2 $3\",[\"0[26]|5\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"1(?:44|[679])|[378]|43\"]],[\"(\\\\d{3})(\\\\d{3,4})(\\\\d{4})\",\"$1 $2 $3\",[\"0[13-57-9][0159]|14\"]],[\"(\\\\d{2})(\\\\d{4})(\\\\d{5})\",\"$1 $2 $3\",[\"0[26]\"]],[\"(\\\\d{4})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"0\"]],[\"(\\\\d{3})(\\\\d{4})(\\\\d{4,5})\",\"$1 $2 $3\",[\"[03]\"]]],0,0,0,0,0,0,[[\"0(?:669[0-79]\\\\d{1,6}|831\\\\d{2,8})|0(?:1(?:[0159]\\\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\\\d\\\\d|3(?:[0159]\\\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\\\d|6[0-8])|7(?:[0159]\\\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\\\d|2[3-578]|3[2356]|[6-8][1-5])|9(?:[0159]\\\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\\\d{2,7}\"],[\"3[2-9]\\\\d{7,8}|(?:31|43)\\\\d{8}\",[9,10]],[\"80(?:0\\\\d{3}|3)\\\\d{3}\",[6,9]],[\"(?:0878\\\\d{3}|89(?:2\\\\d|3[04]|4(?:[0-4]|[5-9]\\\\d\\\\d)|5[0-4]))\\\\d\\\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\\\d{6}\",[6,8,9,10]],[\"1(?:78\\\\d|99)\\\\d{6}\",[9,10]],[\"3[2-8]\\\\d{9,10}\",[11,12]],0,0,[\"55\\\\d{8}\",[10]],[\"84(?:[08]\\\\d{3}|[17])\\\\d{3}\",[6,9]]]],\"JE\":[\"44\",\"00\",\"1534\\\\d{6}|(?:[3578]\\\\d|90)\\\\d{8}\",[10],0,\"0\",0,\"([0-24-8]\\\\d{5})$|0|180020\",\"1534$1\",0,0,[[\"1534[0-24-8]\\\\d{5}\"],[\"7(?:(?:(?:50|82)9|937)\\\\d|7(?:00[378]|97\\\\d))\\\\d{5}\"],[\"80(?:07(?:35|81)|8901)\\\\d{4}\"],[\"(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\\\d{4}\"],[\"701511\\\\d{4}\"],0,[\"(?:3(?:0(?:07(?:35|81)|8901)|3\\\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\\\d{4})\\\\d{4}\"],[\"76(?:464|652)\\\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\\\d{6}\"],[\"56\\\\d{8}\"]]],\"JM\":[\"1\",\"011\",\"(?:[58]\\\\d\\\\d|658|900)\\\\d{7}\",[10],0,\"1\",0,0,0,0,\"658|876\"],\"JO\":[\"962\",\"00\",\"(?:(?:[2689]|7\\\\d)\\\\d|32|427|53)\\\\d{6}\",[8,9],[[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[2356]|87\"],\"(0$1)\"],[\"(\\\\d{3})(\\\\d{5,6})\",\"$1 $2\",[\"[89]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{7})\",\"$1 $2\",[\"70\"],\"0$1\"],[\"(\\\\d)(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"[47]\"],\"0$1\"]],\"0\"],\"JP\":[\"81\",\"010\",\"00[1-9]\\\\d{6,14}|[25-9]\\\\d{9}|(?:00|[1-9]\\\\d\\\\d)\\\\d{6}\",[8,9,10,11,12,13,14,15,16,17],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1-$2-$3\",[\"(?:12|57|99)0\"],\"0$1\"],[\"(\\\\d{4})(\\\\d)(\\\\d{4})\",\"$1-$2-$3\",[\"1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])\",\"1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]\",\"1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1-$2-$3\",[\"60\"],\"0$1\"],[\"(\\\\d)(\\\\d{4})(\\\\d{4})\",\"$1-$2-$3\",[\"3|4(?:2[09]|7[01])|6[1-9]\",\"3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1-$2-$3\",[\"1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])\",\"1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]\",\"1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{4})\",\"$1-$2-$3\",[\"[14]|[289][2-9]|5[3-9]|7[2-4679]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1-$2-$3\",[\"800\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1-$2-$3\",[\"[25-9]\"],\"0$1\"]],\"0\",0,\"(000[2569]\\\\d{4,6})$|(?:(?:003768)0?)|0\",\"$1\"],\"KE\":[\"254\",\"000\",\"(?:[17]\\\\d\\\\d|900)\\\\d{6}|(?:2|80)0\\\\d{6,7}|[4-6]\\\\d{6,8}\",[7,8,9,10],[[\"(\\\\d{2})(\\\\d{5,7})\",\"$1 $2\",[\"[24-6]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{6})\",\"$1 $2\",[\"[17]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[89]\"],\"0$1\"]],\"0\"],\"KG\":[\"996\",\"00\",\"8\\\\d{9}|[235-9]\\\\d{8}\",[9,10],[[\"(\\\\d{4})(\\\\d{5})\",\"$1 $2\",[\"3(?:1[346]|[24-79])\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[235-79]|88\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d)(\\\\d{2,3})\",\"$1 $2 $3 $4\",[\"8\"],\"0$1\"]],\"0\"],\"KH\":[\"855\",\"00[14-9]\",\"1\\\\d{9}|[1-9]\\\\d{7,8}\",[8,9,10],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[1-9]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"1\"]]],\"0\"],\"KI\":[\"686\",\"00\",\"(?:[37]\\\\d|6[0-79])\\\\d{6}|(?:[2-48]\\\\d|50)\\\\d{3}\",[5,8],0,\"0\"],\"KM\":[\"269\",\"00\",\"[3478]\\\\d{6}\",[7],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3\",[\"[3478]\"]]]],\"KN\":[\"1\",\"011\",\"(?:[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-7]\\\\d{6})$|1\",\"869$1\",0,\"869\"],\"KP\":[\"850\",\"00|99\",\"85\\\\d{6}|(?:19\\\\d|[2-7])\\\\d{7}\",[8,10],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"8\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[2-7]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"1\"],\"0$1\"]],\"0\"],\"KR\":[\"82\",\"00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))\",\"00[1-9]\\\\d{8,11}|(?:[12]|5\\\\d{3})\\\\d{7}|[13-6]\\\\d{9}|(?:[1-6]\\\\d|80)\\\\d{7}|[3-6]\\\\d{4,5}|(?:00|7)0\\\\d{8}\",[5,6,8,9,10,11,12,13,14],[[\"(\\\\d{2})(\\\\d{3,4})\",\"$1-$2\",[\"(?:3[1-3]|[46][1-4]|5[1-5])1\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{4})\",\"$1-$2\",[\"1\"]],[\"(\\\\d)(\\\\d{3,4})(\\\\d{4})\",\"$1-$2-$3\",[\"2\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1-$2-$3\",[\"[36]0|8\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3,4})(\\\\d{4})\",\"$1-$2-$3\",[\"[1346]|5[1-5]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1-$2-$3\",[\"[57]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{5})(\\\\d{4})\",\"$1-$2-$3\",[\"5\"],\"0$1\"]],\"0\",0,\"0(8(?:[1-46-8]|5\\\\d\\\\d))?\"],\"KW\":[\"965\",\"00\",\"18\\\\d{5}|(?:[2569]\\\\d|41)\\\\d{6}\",[7,8],[[\"(\\\\d{4})(\\\\d{3,4})\",\"$1 $2\",[\"[169]|2(?:[235]|4[1-35-9])|52\"]],[\"(\\\\d{3})(\\\\d{5})\",\"$1 $2\",[\"[245]\"]]]],\"KY\":[\"1\",\"011\",\"(?:345|[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-9]\\\\d{6})$|1\",\"345$1\",0,\"345\"],\"KZ\":[\"7\",\"810\",\"8\\\\d{13}|[78]\\\\d{9}\",[10,14],0,\"8\",0,0,0,0,\"7\",0,\"8~10\"],\"LA\":[\"856\",\"00\",\"(?:2\\\\d|3)\\\\d{8}|(?:[235-8]\\\\d|41)\\\\d{6}\",[8,9,10],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"2[13]|3[14]|[4-8]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"3\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"2\"],\"0$1\"]],\"0\"],\"LB\":[\"961\",\"00\",\"[27-9]\\\\d{7}|[13-9]\\\\d{6}\",[7,8],[[\"(\\\\d)(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[13-69]|7(?:[2-57]|62|8[0-6]|9[04-9])|8[02-9]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[27-9]\"]]],\"0\"],\"LC\":[\"1\",\"011\",\"(?:[58]\\\\d\\\\d|758|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-8]\\\\d{6})$|1\",\"758$1\",0,\"758\"],\"LI\":[\"423\",\"00\",\"[68]\\\\d{8}|(?:[2378]\\\\d|90)\\\\d{5}\",[7,9],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3\",[\"[2379]|8(?:0[09]|7)\",\"[2379]|8(?:0(?:02|9)|7)\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"8\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"69\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"6\"]]],\"0\",0,\"(1001)|0\"],\"LK\":[\"94\",\"00\",\"[1-9]\\\\d{8}\",[9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"7\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[1-689]\"],\"0$1\"]],\"0\"],\"LR\":[\"231\",\"00\",\"(?:[2457]\\\\d|33|88)\\\\d{7}|(?:2\\\\d|[4-6])\\\\d{6}\",[7,8,9],[[\"(\\\\d)(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"4[67]|[56]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"2\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[2-578]\"],\"0$1\"]],\"0\"],\"LS\":[\"266\",\"00\",\"(?:[256]\\\\d\\\\d|800)\\\\d{5}\",[8],[[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[2568]\"]]]],\"LT\":[\"370\",\"00\",\"(?:[3469]\\\\d|52|[78]0)\\\\d{6}\",[8],[[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"52[0-7]\"],\"(0-$1)\",1],[\"(\\\\d{3})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"[7-9]\"],\"0 $1\",1],[\"(\\\\d{2})(\\\\d{6})\",\"$1 $2\",[\"37|4(?:[15]|6[1-8])\"],\"(0-$1)\",1],[\"(\\\\d{3})(\\\\d{5})\",\"$1 $2\",[\"[3-6]\"],\"(0-$1)\",1]],\"0\",0,\"[08]\"],\"LU\":[\"352\",\"00\",\"35[013-9]\\\\d{4,8}|6\\\\d{8}|35\\\\d{2,4}|(?:[2457-9]\\\\d|3[0-46-9])\\\\d{2,9}\",[4,5,6,7,8,9,10,11],[[\"(\\\\d{2})(\\\\d{3})\",\"$1 $2\",[\"2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3\",[\"2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"20[2-689]\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{1,2})\",\"$1 $2 $3 $4\",[\"20\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{1,5})\",\"$1 $2 $3 $4\",[\"[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]\"]],[\"(\\\\d{3})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"80[01]|90[015]\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"20\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"6\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{1,2})\",\"$1 $2 $3 $4 $5\",[\"20\"]]],0,0,\"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\\\d)\"],\"LV\":[\"371\",\"00\",\"(?:[268]\\\\d|78|90)\\\\d{6}\",[8],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[2679]|8[01]\"]]]],\"LY\":[\"218\",\"00\",\"[2-9]\\\\d{8}\",[9],[[\"(\\\\d{2})(\\\\d{7})\",\"$1-$2\",[\"[2-9]\"],\"0$1\"]],\"0\"],\"MA\":[\"212\",\"00\",\"[5-8]\\\\d{8}\",[9],[[\"(\\\\d{4})(\\\\d{5})\",\"$1-$2\",[\"892\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{7})\",\"$1-$2\",[\"8(?:0[0-7]|9)\"],\"0$1\"],[\"(\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4 $5\",[\"[5-8]\"],\"0$1\"]],\"0\",0,0,0,0,\"[5-8]\"],\"MC\":[\"377\",\"00\",\"(?:[3489]|[67]\\\\d)\\\\d{7}\",[8,9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"4\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[389]\"]],[\"(\\\\d)(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4 $5\",[\"[67]\"],\"0$1\"]],\"0\"],\"MD\":[\"373\",\"00\",\"(?:[235-7]\\\\d|[89]0)\\\\d{6}\",[8],[[\"(\\\\d{3})(\\\\d{5})\",\"$1 $2\",[\"[89]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"22|3\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"[25-7]\"],\"0$1\"]],\"0\"],\"ME\":[\"382\",\"00\",\"(?:20|[3-79]\\\\d)\\\\d{6}|80\\\\d{6,7}\",[8,9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[2-9]\"],\"0$1\"]],\"0\"],\"MF\":[\"590\",\"00\",\"7090\\\\d{5}|(?:[56]9|[89]\\\\d)\\\\d{7}\",[9],0,\"0\",0,0,0,0,0,[[\"(?:59(?:0(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)|87\\\\d)|80[6-9]\\\\d\\\\d)\\\\d{4}\"],[\"(?:69(?:0\\\\d\\\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\\\d{4}\"],[\"80[0-5]\\\\d{6}\"],[\"8[129]\\\\d{7}\"],0,0,0,0,[\"9(?:(?:39[5-7]|76[018])\\\\d|475[0-6])\\\\d{4}\"]]],\"MG\":[\"261\",\"00\",\"[23]\\\\d{8}\",[9],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{3})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[23]\"],\"0$1\"]],\"0\",0,\"([24-9]\\\\d{6})$|0\",\"20$1\"],\"MH\":[\"692\",\"011\",\"329\\\\d{4}|(?:[256]\\\\d|45)\\\\d{5}\",[7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1-$2\",[\"[2-6]\"]]],\"1\"],\"MK\":[\"389\",\"00\",\"[2-578]\\\\d{7}\",[8],[[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"2|34[47]|4(?:[37]7|5[47]|64)\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[347]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d)(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[58]\"],\"0$1\"]],\"0\"],\"ML\":[\"223\",\"00\",\"[24-9]\\\\d{7}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[24-9]\"]]]],\"MM\":[\"95\",\"00\",\"1\\\\d{5,7}|95\\\\d{6}|(?:[4-7]|9[0-46-9])\\\\d{6,8}|(?:2|8\\\\d)\\\\d{5,8}\",[6,7,8,9,10],[[\"(\\\\d)(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"16|2\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[12]|452|678|86\",\"[12]|452|6788|86\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[4-7]|8[1-35]\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{4,6})\",\"$1 $2 $3\",[\"9(?:2[0-4]|[35-9]|4[137-9])\"],\"0$1\"],[\"(\\\\d)(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"2\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"8\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"92\"],\"0$1\"],[\"(\\\\d)(\\\\d{5})(\\\\d{4})\",\"$1 $2 $3\",[\"9\"],\"0$1\"]],\"0\"],\"MN\":[\"976\",\"001\",\"[12]\\\\d{7,9}|[5-9]\\\\d{7}\",[8,9,10],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{4})\",\"$1 $2 $3\",[\"11|2[16]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[5-9]\"]],[\"(\\\\d{3})(\\\\d{5,6})\",\"$1 $2\",[\"[12]2[1-3]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{5,6})\",\"$1 $2\",[\"[12](?:27|3[2-8]|4[2-68]|5[1-4689])\",\"[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]\"],\"0$1\"],[\"(\\\\d{5})(\\\\d{4,5})\",\"$1 $2\",[\"[12]\"],\"0$1\"]],\"0\"],\"MO\":[\"853\",\"00\",\"0800\\\\d{3}|(?:28|[68]\\\\d)\\\\d{6}\",[7,8],[[\"(\\\\d{4})(\\\\d{3})\",\"$1 $2\",[\"0\"]],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[268]\"]]]],\"MP\":[\"1\",\"011\",\"[58]\\\\d{9}|(?:67|90)0\\\\d{7}\",[10],0,\"1\",0,\"([2-9]\\\\d{6})$|1\",\"670$1\",0,\"670\"],\"MQ\":[\"596\",\"00\",\"7091\\\\d{5}|(?:[56]9|[89]\\\\d)\\\\d{7}\",[9],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[5-79]|8(?:0[6-9]|[36])\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"8\"],\"0$1\"]],\"0\"],\"MR\":[\"222\",\"00\",\"(?:[2-4]\\\\d\\\\d|800)\\\\d{5}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[2-48]\"]]]],\"MS\":[\"1\",\"011\",\"(?:[58]\\\\d\\\\d|664|900)\\\\d{7}\",[10],0,\"1\",0,\"([34]\\\\d{6})$|1\",\"664$1\",0,\"664\"],\"MT\":[\"356\",\"00\",\"3550\\\\d{4}|(?:[2579]\\\\d\\\\d|800)\\\\d{5}\",[8],[[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[2357-9]\"]]]],\"MU\":[\"230\",\"0(?:0|[24-7]0|3[03])\",\"(?:[57]|8\\\\d\\\\d)\\\\d{7}|[2-468]\\\\d{6}\",[7,8,10],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[2-46]|8[013]\"]],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[57]\"]],[\"(\\\\d{5})(\\\\d{5})\",\"$1 $2\",[\"8\"]]],0,0,0,0,0,0,0,\"020\"],\"MV\":[\"960\",\"0(?:0|19)\",\"(?:800|9[0-57-9]\\\\d)\\\\d{7}|[34679]\\\\d{6}\",[7,10],[[\"(\\\\d{3})(\\\\d{4})\",\"$1-$2\",[\"[34679]\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[89]\"]]],0,0,0,0,0,0,0,\"00\"],\"MW\":[\"265\",\"00\",\"(?:[1289]\\\\d|31|77)\\\\d{7}|1\\\\d{6}\",[7,9],[[\"(\\\\d)(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"1[2-9]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[1-37-9]\"],\"0$1\"]],\"0\"],\"MX\":[\"52\",\"0[09]\",\"[2-9]\\\\d{9}\",[10],[[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"33|5[56]|81\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[2-9]\"]]],0,0,0,0,0,0,0,\"00\"],\"MY\":[\"60\",\"00\",\"1\\\\d{8,9}|(?:3\\\\d|[4-9])\\\\d{7}\",[8,9,10],[[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1-$2 $3\",[\"[4-79]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1-$2 $3\",[\"1(?:[02469]|[378][1-9]|53)|8\",\"1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8\"],\"0$1\"],[\"(\\\\d)(\\\\d{4})(\\\\d{4})\",\"$1-$2 $3\",[\"3\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{4})\",\"$1-$2-$3-$4\",[\"1(?:[367]|80)\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1-$2 $3\",[\"15\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1-$2 $3\",[\"1\"],\"0$1\"]],\"0\"],\"MZ\":[\"258\",\"00\",\"(?:2|8\\\\d)\\\\d{7}\",[8,9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"2|8[2-9]\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"8\"]]]],\"NA\":[\"264\",\"00\",\"[68]\\\\d{7,8}\",[8,9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"88\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"6\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"87\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"8\"],\"0$1\"]],\"0\"],\"NC\":[\"687\",\"00\",\"(?:050|[2-57-9]\\\\d\\\\d)\\\\d{3}\",[6],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1.$2.$3\",[\"[02-57-9]\"]]]],\"NE\":[\"227\",\"00\",\"[027-9]\\\\d{7}\",[8],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"08\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[089]|2[013]|7[0467]\"]]]],\"NF\":[\"672\",\"00\",\"[13]\\\\d{5}\",[6],[[\"(\\\\d{2})(\\\\d{4})\",\"$1 $2\",[\"1[0-3]\"]],[\"(\\\\d)(\\\\d{5})\",\"$1 $2\",[\"[13]\"]]],0,0,\"([0-258]\\\\d{4})$\",\"3$1\"],\"NG\":[\"234\",\"009\",\"(?:20|9\\\\d)\\\\d{8}|[78]\\\\d{9,13}\",[10,11,12,13,14],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[7-9]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"20[129]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{2})(\\\\d{4})\",\"$1 $2 $3\",[\"2\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{4})(\\\\d{4,5})\",\"$1 $2 $3\",[\"[78]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{5})(\\\\d{5,6})\",\"$1 $2 $3\",[\"[78]\"],\"0$1\"]],\"0\"],\"NI\":[\"505\",\"00\",\"(?:1800|[25-8]\\\\d{3})\\\\d{4}\",[8],[[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[125-8]\"]]]],\"NL\":[\"31\",\"00\",\"(?:[124-7]\\\\d\\\\d|3(?:[02-9]\\\\d|1[0-8]))\\\\d{6}|8\\\\d{6,9}|9\\\\d{6,10}|1\\\\d{4,5}\",[5,6,7,8,9,10,11],[[\"(\\\\d{3})(\\\\d{4,7})\",\"$1 $2\",[\"[89]0\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{7})\",\"$1 $2\",[\"66\"],\"0$1\"],[\"(\\\\d)(\\\\d{8})\",\"$1 $2\",[\"6\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"1[16-8]|2[259]|3[124]|4[17-9]|5[124679]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[1-578]|91\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{5})\",\"$1 $2 $3\",[\"9\"],\"0$1\"]],\"0\"],\"NO\":[\"47\",\"00\",\"(?:0|[2-9]\\\\d{3})\\\\d{4}\",[5,8],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"8\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[2-79]\"]]],0,0,0,0,0,\"[02-689]|7[0-8]\"],\"NP\":[\"977\",\"00\",\"(?:1\\\\d|9)\\\\d{9}|[1-9]\\\\d{7}\",[8,10,11],[[\"(\\\\d)(\\\\d{7})\",\"$1-$2\",[\"1[2-6]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{6})\",\"$1-$2\",[\"1[01]|[2-8]|9(?:[1-59]|[67][2-6])\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{7})\",\"$1-$2\",[\"9\"]]],\"0\"],\"NR\":[\"674\",\"00\",\"(?:222|444|(?:55|8\\\\d)\\\\d|666|777|999)\\\\d{4}\",[7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[24-9]\"]]]],\"NU\":[\"683\",\"00\",\"(?:[4-7]|888\\\\d)\\\\d{3}\",[4,7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"8\"]]]],\"NZ\":[\"64\",\"0(?:0|161)\",\"[1289]\\\\d{9}|50\\\\d{5}(?:\\\\d{2,3})?|[27-9]\\\\d{7,8}|(?:[34]\\\\d|6[0-35-9])\\\\d{6}|8\\\\d{4,6}\",[5,6,7,8,9,10],[[\"(\\\\d{2})(\\\\d{3,8})\",\"$1 $2\",[\"8[1-79]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2,3})\",\"$1 $2 $3\",[\"50[036-8]|8|90\",\"50(?:[0367]|88)|8|90\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"24|[346]|7[2-57-9]|9[2-9]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"2(?:10|74)|[589]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3,4})(\\\\d{4})\",\"$1 $2 $3\",[\"1|2[028]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,5})\",\"$1 $2 $3\",[\"2(?:[169]|7[0-35-9])|7\"],\"0$1\"]],\"0\",0,0,0,0,0,0,\"00\"],\"OM\":[\"968\",\"00\",\"(?:1505|[279]\\\\d{3}|500)\\\\d{4}|800\\\\d{5,6}\",[7,8,9],[[\"(\\\\d{3})(\\\\d{4,6})\",\"$1 $2\",[\"[58]\"]],[\"(\\\\d{2})(\\\\d{6})\",\"$1 $2\",[\"2\"]],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[179]\"]]]],\"PA\":[\"507\",\"00\",\"(?:00800|8\\\\d{3})\\\\d{6}|[68]\\\\d{7}|[1-57-9]\\\\d{6}\",[7,8,10,11],[[\"(\\\\d{3})(\\\\d{4})\",\"$1-$2\",[\"[1-57-9]\"]],[\"(\\\\d{4})(\\\\d{4})\",\"$1-$2\",[\"[68]\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"8\"]]]],\"PE\":[\"51\",\"00|19(?:1[124]|77|90)00\",\"(?:[14-8]|9\\\\d)\\\\d{7}\",[8,9],[[\"(\\\\d{3})(\\\\d{5})\",\"$1 $2\",[\"80\"],\"(0$1)\"],[\"(\\\\d)(\\\\d{7})\",\"$1 $2\",[\"1\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d{6})\",\"$1 $2\",[\"[4-8]\"],\"(0$1)\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"9\"]]],\"0\",0,0,0,0,0,0,\"00\",\" Anexo \"],\"PF\":[\"689\",\"00\",\"4\\\\d{5}(?:\\\\d{2})?|8\\\\d{7,8}\",[6,8,9],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3\",[\"44\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"4|8[7-9]\"]],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"8\"]]]],\"PG\":[\"675\",\"00|140[1-3]\",\"(?:180|[78]\\\\d{3})\\\\d{4}|(?:[2-589]\\\\d|64)\\\\d{5}\",[7,8],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"18|[2-69]|85[02-46-9]\"]],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[78]\"]]],0,0,0,0,0,0,0,\"00\"],\"PH\":[\"63\",\"00\",\"(?:[2-7]|9\\\\d)\\\\d{8}|2\\\\d{5}|(?:1800|8)\\\\d{7,9}\",[6,8,9,10,11,12,13],[[\"(\\\\d)(\\\\d{5})\",\"$1 $2\",[\"2\"],\"(0$1)\"],[\"(\\\\d{4})(\\\\d{4,6})\",\"$1 $2\",[\"3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2\",\"3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))\"],\"(0$1)\"],[\"(\\\\d{5})(\\\\d{4})\",\"$1 $2\",[\"346|4(?:27|9[35])|883\",\"3469|4(?:279|9(?:30|56))|8834\"],\"(0$1)\"],[\"(\\\\d)(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"2\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[3-7]|8[2-8]\"],\"(0$1)\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[89]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"1\"]],[\"(\\\\d{4})(\\\\d{1,2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3 $4\",[\"1\"]]],\"0\"],\"PK\":[\"92\",\"00\",\"122\\\\d{6}|[24-8]\\\\d{10,11}|9(?:[013-9]\\\\d{8,10}|2(?:[01]\\\\d\\\\d|2(?:[06-8]\\\\d|1[01]))\\\\d{7})|(?:[2-8]\\\\d{3}|92(?:[0-7]\\\\d|8[1-9]))\\\\d{6}|[24-9]\\\\d{8}|[89]\\\\d{7}\",[8,9,10,11,12],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{2,7})\",\"$1 $2 $3\",[\"[89]0\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{5})\",\"$1 $2\",[\"1\"]],[\"(\\\\d{3})(\\\\d{6,7})\",\"$1 $2\",[\"2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])\",\"9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d{7,8})\",\"$1 $2\",[\"(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]\"],\"(0$1)\"],[\"(\\\\d{5})(\\\\d{5})\",\"$1 $2\",[\"58\"],\"(0$1)\"],[\"(\\\\d{3})(\\\\d{7})\",\"$1 $2\",[\"3\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91\"],\"(0$1)\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"[24-9]\"],\"(0$1)\"]],\"0\"],\"PL\":[\"48\",\"00\",\"(?:6|8\\\\d\\\\d)\\\\d{7}|[1-9]\\\\d{6}(?:\\\\d{2})?|[26]\\\\d{5}\",[6,7,8,9,10],[[\"(\\\\d{5})\",\"$1\",[\"19\"]],[\"(\\\\d{3})(\\\\d{3})\",\"$1 $2\",[\"11|20|64\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1\",\"30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19\"]],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2,3})\",\"$1 $2 $3\",[\"64\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"1[2-8]|[2-7]|8[1-79]|9[145]\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"8\"]]]],\"PM\":[\"508\",\"00\",\"[78]\\\\d{8}|[2-9]\\\\d{5}\",[6,9],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3\",[\"[2-9]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"7\"]],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"8\"],\"0$1\"]],\"0\"],\"PR\":[\"1\",\"011\",\"(?:[589]\\\\d\\\\d|787)\\\\d{7}\",[10],0,\"1\",0,0,0,0,\"787|939\"],\"PS\":[\"970\",\"00\",\"[2489]2\\\\d{6}|(?:1\\\\d|5)\\\\d{8}\",[8,9,10],[[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[2489]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"5\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"1\"]]],\"0\"],\"PT\":[\"351\",\"00\",\"1693\\\\d{5}|(?:[26-9]\\\\d|30)\\\\d{7}\",[9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"2[12]\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"16|[236-9]\"]]]],\"PW\":[\"680\",\"01[12]\",\"(?:[24-8]\\\\d\\\\d|345|900)\\\\d{4}\",[7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[2-9]\"]]]],\"PY\":[\"595\",\"00\",\"[36-8]\\\\d{5,8}|4\\\\d{6,8}|59\\\\d{6}|9\\\\d{5,10}|(?:2\\\\d|5[0-8])\\\\d{6,7}\",[6,7,8,9,10,11],[[\"(\\\\d{3})(\\\\d{3,6})\",\"$1 $2\",[\"[2-9]0\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{5})\",\"$1 $2\",[\"3[289]|4[246-8]|61|7[1-3]|8[1-36]\"],\"(0$1)\"],[\"(\\\\d{3})(\\\\d{4,5})\",\"$1 $2\",[\"2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"87\"]],[\"(\\\\d{3})(\\\\d{6})\",\"$1 $2\",[\"9(?:[5-79]|8[1-8])\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[2-8]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"9\"]]],\"0\"],\"QA\":[\"974\",\"00\",\"800\\\\d{4}|(?:2|800)\\\\d{6}|(?:0080|[3-7])\\\\d{7}\",[7,8,9,11],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"2[136]|8\"]],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[3-7]\"]]]],\"RE\":[\"262\",\"00\",\"709\\\\d{6}|(?:26|[689]\\\\d)\\\\d{7}\",[9],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[26-9]\"],\"0$1\"]],\"0\",0,0,0,0,0,[[\"2631[0-6]\\\\d{4}|26(?:2\\\\d|30|88)\\\\d{5}\"],[\"(?:69(?:2\\\\d\\\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\\\d{4}\"],[\"80\\\\d{7}\"],[\"89[1-37-9]\\\\d{6}\"],0,0,0,0,[\"9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\\\d{4}\"],[\"8(?:1[019]|2[0156]|84|90)\\\\d{6}\"]]],\"RO\":[\"40\",\"00\",\"(?:[2378]\\\\d|90)\\\\d{7}|[23]\\\\d{5}\",[6,9],[[\"(\\\\d{3})(\\\\d{3})\",\"$1 $2\",[\"2[3-6]\",\"2[3-6]\\\\d9\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{4})\",\"$1 $2\",[\"219|31\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[23]1\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[237-9]\"],\"0$1\"]],\"0\",0,0,0,0,0,0,0,\" int \"],\"RS\":[\"381\",\"00\",\"38[02-9]\\\\d{6,9}|6\\\\d{7,9}|90\\\\d{4,8}|38\\\\d{5,6}|(?:7\\\\d\\\\d|800)\\\\d{3,9}|(?:[12]\\\\d|3[0-79])\\\\d{5,10}\",[6,7,8,9,10,11,12],[[\"(\\\\d{3})(\\\\d{3,9})\",\"$1 $2\",[\"(?:2[389]|39)0|[7-9]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{5,10})\",\"$1 $2\",[\"[1-36]\"],\"0$1\"]],\"0\"],\"RU\":[\"7\",\"810\",\"8\\\\d{13}|[347-9]\\\\d{9}\",[10,14],[[\"(\\\\d{4})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"7(?:1[0-8]|2[1-9])\",\"7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))\",\"7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2\"],\"8 ($1)\",1],[\"(\\\\d{5})(\\\\d)(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"7(?:1[0-68]|2[1-9])\",\"7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))\",\"7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]\"],\"8 ($1)\",1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"7\"],\"8 ($1)\",1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2-$3-$4\",[\"[349]|8(?:[02-7]|1[1-8])\"],\"8 ($1)\",1],[\"(\\\\d{4})(\\\\d{4})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"8\"],\"8 ($1)\"]],\"8\",0,0,0,0,\"[3489]\",0,\"8~10\"],\"RW\":[\"250\",\"00\",\"(?:06|[27]\\\\d\\\\d|[89]00)\\\\d{6}\",[8,9],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"0\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"2\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[7-9]\"],\"0$1\"]],\"0\"],\"SA\":[\"966\",\"00\",\"(?:[15]\\\\d|800|92)\\\\d{7}\",[9,10],[[\"(\\\\d{4})(\\\\d{5})\",\"$1 $2\",[\"9\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"1\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"5\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"8\"]]],\"0\"],\"SB\":[\"677\",\"0[01]\",\"[6-9]\\\\d{6}|[1-6]\\\\d{4}\",[5,7],[[\"(\\\\d{2})(\\\\d{5})\",\"$1 $2\",[\"6[89]|7|8[4-9]|9(?:[0-8]|9[0-8])\"]]]],\"SC\":[\"248\",\"010|0[0-2]\",\"(?:[2489]\\\\d|64)\\\\d{5}\",[7],[[\"(\\\\d)(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[246]|9[57]\"]]],0,0,0,0,0,0,0,\"00\"],\"SD\":[\"249\",\"00\",\"[19]\\\\d{8}\",[9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[19]\"],\"0$1\"]],\"0\"],\"SE\":[\"46\",\"00\",\"(?:[26]\\\\d\\\\d|9)\\\\d{9}|[1-9]\\\\d{8}|[1-689]\\\\d{7}|[1-4689]\\\\d{6}|2\\\\d{5}\",[6,7,8,9,10,12],[[\"(\\\\d{2})(\\\\d{2,3})(\\\\d{2})\",\"$1-$2 $3\",[\"20\"],\"0$1\",0,\"$1 $2 $3\"],[\"(\\\\d{3})(\\\\d{4})\",\"$1-$2\",[\"9(?:00|39|44|9)\"],\"0$1\",0,\"$1 $2\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})\",\"$1-$2 $3\",[\"[12][136]|3[356]|4[0246]|6[03]|90[1-9]\"],\"0$1\",0,\"$1 $2 $3\"],[\"(\\\\d)(\\\\d{2,3})(\\\\d{2})(\\\\d{2})\",\"$1-$2 $3 $4\",[\"8\"],\"0$1\",0,\"$1 $2 $3 $4\"],[\"(\\\\d{3})(\\\\d{2,3})(\\\\d{2})\",\"$1-$2 $3\",[\"1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])\"],\"0$1\",0,\"$1 $2 $3\"],[\"(\\\\d{3})(\\\\d{2,3})(\\\\d{3})\",\"$1-$2 $3\",[\"9(?:00|39|44)\"],\"0$1\",0,\"$1 $2 $3\"],[\"(\\\\d{2})(\\\\d{2,3})(\\\\d{2})(\\\\d{2})\",\"$1-$2 $3 $4\",[\"1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]\"],\"0$1\",0,\"$1 $2 $3 $4\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1-$2 $3 $4\",[\"10|7\"],\"0$1\",0,\"$1 $2 $3 $4\"],[\"(\\\\d)(\\\\d{3})(\\\\d{3})(\\\\d{2})\",\"$1-$2 $3 $4\",[\"8\"],\"0$1\",0,\"$1 $2 $3 $4\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1-$2 $3 $4\",[\"[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])\"],\"0$1\",0,\"$1 $2 $3 $4\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{3})\",\"$1-$2 $3 $4\",[\"9\"],\"0$1\",0,\"$1 $2 $3 $4\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1-$2 $3 $4 $5\",[\"[26]\"],\"0$1\",0,\"$1 $2 $3 $4 $5\"]],\"0\"],\"SG\":[\"65\",\"0[0-3]\\\\d\",\"(?:(?:1\\\\d|8)\\\\d\\\\d|7000)\\\\d{7}|[3689]\\\\d{7}\",[8,10,11],[[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[369]|8(?:0[1-9]|[1-9])\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"8\"]],[\"(\\\\d{4})(\\\\d{4})(\\\\d{3})\",\"$1 $2 $3\",[\"7\"]],[\"(\\\\d{4})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"1\"]]]],\"SH\":[\"290\",\"00\",\"(?:[2569]\\\\d|8)\\\\d{3}\",[4,5],0,0,0,0,0,0,\"[2569]\"],\"SI\":[\"386\",\"00|10(?:22|66|88|99)\",\"[1-7]\\\\d{7}|8\\\\d{4,7}|90\\\\d{4,6}\",[5,6,7,8],[[\"(\\\\d{2})(\\\\d{3,6})\",\"$1 $2\",[\"8[09]|9\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{5})\",\"$1 $2\",[\"59|8\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[37][01]|4[013]|51|6\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[1-57]\"],\"(0$1)\"]],\"0\",0,0,0,0,0,0,\"00\"],\"SJ\":[\"47\",\"00\",\"0\\\\d{4}|(?:[489]\\\\d|79)\\\\d{6}\",[5,8],0,0,0,0,0,0,\"79\"],\"SK\":[\"421\",\"00\",\"[2-689]\\\\d{8}|[2-59]\\\\d{6}|[2-5]\\\\d{5}\",[6,7,9],[[\"(\\\\d)(\\\\d{2})(\\\\d{3,4})\",\"$1 $2 $3\",[\"21\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{2})(\\\\d{2,3})\",\"$1 $2 $3\",[\"[3-5][1-8]1\",\"[3-5][1-8]1[67]\"],\"0$1\"],[\"(\\\\d)(\\\\d{3})(\\\\d{3})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"2\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[689]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[3-5]\"],\"0$1\"]],\"0\"],\"SL\":[\"232\",\"00\",\"(?:[237-9]\\\\d|66)\\\\d{6}\",[8],[[\"(\\\\d{2})(\\\\d{6})\",\"$1 $2\",[\"[236-9]\"],\"(0$1)\"]],\"0\"],\"SM\":[\"378\",\"00\",\"(?:0549|[5-7]\\\\d)\\\\d{6}\",[8,10],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[5-7]\"]],[\"(\\\\d{4})(\\\\d{6})\",\"$1 $2\",[\"0\"]]],0,0,\"([89]\\\\d{5})$\",\"0549$1\"],\"SN\":[\"221\",\"00\",\"(?:[378]\\\\d|93)\\\\d{7}\",[9],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"8\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[379]\"]]]],\"SO\":[\"252\",\"00\",\"[346-9]\\\\d{8}|[12679]\\\\d{7}|[1-5]\\\\d{6}|[1348]\\\\d{5}\",[6,7,8,9],[[\"(\\\\d{2})(\\\\d{4})\",\"$1 $2\",[\"8[125]\"]],[\"(\\\\d{6})\",\"$1\",[\"[134]\"]],[\"(\\\\d)(\\\\d{6})\",\"$1 $2\",[\"[15]|2[0-79]|3[0-46-8]|4[0-7]\"]],[\"(\\\\d{2})(\\\\d{5,7})\",\"$1 $2\",[\"1|28|9[2-9]\"]],[\"(\\\\d)(\\\\d{7})\",\"$1 $2\",[\"[267]|904\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[346-9]\"]]],\"0\"],\"SR\":[\"597\",\"00\",\"(?:[2-5]|[6-9]\\\\d)\\\\d{5}\",[6,7],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1-$2-$3\",[\"56\"]],[\"(\\\\d{3})(\\\\d{3})\",\"$1-$2\",[\"[2-5]\"]],[\"(\\\\d{3})(\\\\d{4})\",\"$1-$2\",[\"[6-9]\"]]]],\"SS\":[\"211\",\"00\",\"[19]\\\\d{8}\",[9],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[19]\"],\"0$1\"]],\"0\"],\"ST\":[\"239\",\"00\",\"(?:22|9\\\\d)\\\\d{5}\",[7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[29]\"]]]],\"SV\":[\"503\",\"00\",\"[25-7]\\\\d{7}|(?:80\\\\d|900)\\\\d{4}(?:\\\\d{4})?\",[7,8,11],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[89]\"]],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[25-7]\"]],[\"(\\\\d{3})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"[89]\"]]]],\"SX\":[\"1\",\"011\",\"7215\\\\d{6}|(?:[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,\"(5\\\\d{6})$|1\",\"721$1\",0,\"721\"],\"SY\":[\"963\",\"00\",\"[1-359]\\\\d{8}|[1-5]\\\\d{7}\",[8,9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[1-4]|5[1-3]\"],\"0$1\",1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[59]\"],\"0$1\",1]],\"0\"],\"SZ\":[\"268\",\"00\",\"0800\\\\d{4}|(?:[237]\\\\d|900)\\\\d{6}\",[8,9],[[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[0237]\"]],[\"(\\\\d{5})(\\\\d{4})\",\"$1 $2\",[\"9\"]]]],\"TA\":[\"290\",\"00\",\"8\\\\d{3}\",[4],0,0,0,0,0,0,\"8\"],\"TC\":[\"1\",\"011\",\"(?:[58]\\\\d\\\\d|649|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-479]\\\\d{6})$|1\",\"649$1\",0,\"649\"],\"TD\":[\"235\",\"00|16\",\"(?:22|[3689]\\\\d|77)\\\\d{6}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[236-9]\"]]],0,0,0,0,0,0,0,\"00\"],\"TG\":[\"228\",\"00\",\"[279]\\\\d{7}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[279]\"]]]],\"TH\":[\"66\",\"00[1-9]\",\"(?:001800|[2-57]|[689]\\\\d)\\\\d{7}|1\\\\d{7,9}\",[8,9,10,13],[[\"(\\\\d)(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"2\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[13-9]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"1\"]]],\"0\"],\"TJ\":[\"992\",\"810\",\"(?:[0-57-9]\\\\d|66)\\\\d{7}\",[9],[[\"(\\\\d{6})(\\\\d)(\\\\d{2})\",\"$1 $2 $3\",[\"331\",\"3317\"]],[\"(\\\\d{3})(\\\\d{2})(\\\\d{4})\",\"$1 $2 $3\",[\"44[02-479]|[34]7\"]],[\"(\\\\d{4})(\\\\d)(\\\\d{4})\",\"$1 $2 $3\",[\"3(?:[1245]|3[12])\"]],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"\\\\d\"]]],0,0,0,0,0,0,0,\"8~10\"],\"TK\":[\"690\",\"00\",\"[2-47]\\\\d{3,6}\",[4,5,6,7]],\"TL\":[\"670\",\"00\",\"7\\\\d{7}|(?:[2-47]\\\\d|[89]0)\\\\d{5}\",[7,8],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[2-489]|70\"]],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"7\"]]]],\"TM\":[\"993\",\"810\",\"[1-7]\\\\d{7}\",[8],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2-$3-$4\",[\"12\"],\"(8 $1)\"],[\"(\\\\d{3})(\\\\d)(\\\\d{2})(\\\\d{2})\",\"$1 $2-$3-$4\",[\"[1-5]\"],\"(8 $1)\"],[\"(\\\\d{2})(\\\\d{6})\",\"$1 $2\",[\"[67]\"],\"8 $1\"]],\"8\",0,0,0,0,0,0,\"8~10\"],\"TN\":[\"216\",\"00\",\"[2-57-9]\\\\d{7}\",[8],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[2-57-9]\"]]]],\"TO\":[\"676\",\"00\",\"(?:0800|(?:[5-8]\\\\d\\\\d|999)\\\\d)\\\\d{3}|[2-8]\\\\d{4}\",[5,7],[[\"(\\\\d{2})(\\\\d{3})\",\"$1-$2\",[\"[2-4]|50|6[09]|7[0-24-69]|8[05]\"]],[\"(\\\\d{4})(\\\\d{3})\",\"$1 $2\",[\"0\"]],[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[5-9]\"]]]],\"TR\":[\"90\",\"00\",\"4\\\\d{6}|8\\\\d{11,12}|(?:[2-58]\\\\d\\\\d|900)\\\\d{7}\",[7,10,12,13],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"512|8[01589]|90\"],\"0$1\",1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"5\"],\"0$1\",1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[24][1-8]|3[1-9]\"],\"(0$1)\",1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{6,7})\",\"$1 $2 $3\",[\"80\"],\"0$1\",1]],\"0\"],\"TT\":[\"1\",\"011\",\"(?:[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-46-8]\\\\d{6})$|1\",\"868$1\",0,\"868\"],\"TV\":[\"688\",\"00\",\"(?:2|7\\\\d\\\\d|90)\\\\d{4}\",[5,6,7],[[\"(\\\\d{2})(\\\\d{3})\",\"$1 $2\",[\"2\"]],[\"(\\\\d{2})(\\\\d{4})\",\"$1 $2\",[\"90\"]],[\"(\\\\d{2})(\\\\d{5})\",\"$1 $2\",[\"7\"]]]],\"TW\":[\"886\",\"0(?:0[25-79]|19)\",\"[2-689]\\\\d{8}|7\\\\d{9,10}|[2-8]\\\\d{7}|2\\\\d{6}\",[7,8,9,10,11],[[\"(\\\\d{2})(\\\\d)(\\\\d{4})\",\"$1 $2 $3\",[\"202\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{5})\",\"$1 $2\",[\"826\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{2})(\\\\d{3})\",\"$1 $2 $3\",[\"83\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{2})(\\\\d{4})\",\"$1 $2 $3\",[\"82\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[25]0|37|49|8[09]\"],\"0$1\"],[\"(\\\\d)(\\\\d{3,4})(\\\\d{4})\",\"$1 $2 $3\",[\"[23568]|4(?:0[02-48]|[1-478])|7[1-9]\",\"[23568]|4(?:0[2-48]|[1-478])|(?:400|7)[1-9]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[49]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4,5})\",\"$1 $2 $3\",[\"7\"],\"0$1\"]],\"0\",0,0,0,0,0,0,0,\"#\"],\"TZ\":[\"255\",\"00[056]\",\"(?:[25-8]\\\\d|41|90)\\\\d{7}\",[9],[[\"(\\\\d{3})(\\\\d{2})(\\\\d{4})\",\"$1 $2 $3\",[\"[89]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[24]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{7})\",\"$1 $2\",[\"5\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[67]\"],\"0$1\"]],\"0\"],\"UA\":[\"380\",\"00\",\"[89]\\\\d{9}|[3-9]\\\\d{8}\",[9,10],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]\",\"6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{5})\",\"$1 $2\",[\"3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])\",\"3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[3-7]|89|9[1-9]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[89]\"],\"0$1\"]],\"0\",0,0,0,0,0,0,\"0~0\"],\"UG\":[\"256\",\"00[057]\",\"800\\\\d{6}|(?:[29]0|[347]\\\\d)\\\\d{7}\",[9],[[\"(\\\\d{4})(\\\\d{5})\",\"$1 $2\",[\"202\",\"2024\",\"20240\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{6})\",\"$1 $2\",[\"20[0-35-7]|4(?:6[45]|[7-9])|[7-9]\",\"20(?:[0135-7]|2[5-9])|4(?:6[45]|[7-9])|[7-9]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{7})\",\"$1 $2\",[\"[2-4]\"],\"0$1\"]],\"0\"],\"US\":[\"1\",\"011\",\"[2-9]\\\\d{9}|3\\\\d{6}\",[10],[[\"(\\\\d{3})(\\\\d{4})\",\"$1-$2\",[\"310\"],0,1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"($1) $2-$3\",[\"[2-9]\"],0,1,\"$1-$2-$3\"]],\"1\",0,0,0,0,0,[[\"983[2-57-9]\\\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[02469]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[02589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-2478]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\\\d{6}\"],[\"\"],[\"8(?:00|33|44|55|66|77|88)[2-9]\\\\d{6}\"],[\"900[2-9]\\\\d{6}\"],[\"52(?:3(?:[2-46-9][02-9]\\\\d|5(?:[02-46-9]\\\\d|5[0-46-9]))|4(?:[2-478][02-9]\\\\d|5(?:[034]\\\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\\\d)|9(?:[05-9]\\\\d|2[0-5]|49)))\\\\d{4}|52[34][2-9]1[02-9]\\\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\\\d{6}\"]]],\"UY\":[\"598\",\"0(?:0|1[3-9]\\\\d)\",\"0004\\\\d{2,9}|[1249]\\\\d{7}|2\\\\d{3,4}|(?:[49]\\\\d|80)\\\\d{5}\",[4,5,6,7,8,9,10,11,12,13],[[\"(\\\\d{4,5})\",\"$1\",[\"21\"]],[\"(\\\\d{3})(\\\\d{3,4})\",\"$1 $2\",[\"0\"]],[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[49]0|8\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"9\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[124]\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{2,4})\",\"$1 $2 $3\",[\"0\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})(\\\\d{2,4})\",\"$1 $2 $3 $4\",[\"0\"]]],\"0\",0,0,0,0,0,0,\"00\",\" int. \"],\"UZ\":[\"998\",\"00\",\"(?:20|33|[5-9]\\\\d)\\\\d{7}\",[9],[[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"[235-9]\"]]]],\"VA\":[\"39\",\"00\",\"0\\\\d{5,10}|3[0-8]\\\\d{7,10}|55\\\\d{8}|8\\\\d{5}(?:\\\\d{2,4})?|(?:1\\\\d|39)\\\\d{7,8}\",[6,7,8,9,10,11,12],0,0,0,0,0,0,\"06698\"],\"VC\":[\"1\",\"011\",\"(?:[58]\\\\d\\\\d|784|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-7]\\\\d{6})$|1\",\"784$1\",0,\"784\"],\"VE\":[\"58\",\"00\",\"[68]00\\\\d{7}|(?:[24]\\\\d|[59]0)\\\\d{8}\",[10],[[\"(\\\\d{3})(\\\\d{7})\",\"$1-$2\",[\"[24-689]\"],\"0$1\"]],\"0\"],\"VG\":[\"1\",\"011\",\"(?:284|[58]\\\\d\\\\d|900)\\\\d{7}\",[10],0,\"1\",0,\"([2-578]\\\\d{6})$|1\",\"284$1\",0,\"284\"],\"VI\":[\"1\",\"011\",\"[58]\\\\d{9}|(?:34|90)0\\\\d{7}\",[10],0,\"1\",0,\"([2-9]\\\\d{6})$|1\",\"340$1\",0,\"340\"],\"VN\":[\"84\",\"00\",\"[12]\\\\d{9}|[135-9]\\\\d{8}|[16]\\\\d{6,7}|7\\\\d{6}\",[7,8,9,10],[[\"(\\\\d{4})(\\\\d{4,6})\",\"$1 $2\",[\"1(?:2[02]|[89])\"],0,1],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"1[26]|6\"],\"0$1\",1],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[1357-9]\"],\"0$1\",1],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"2[48]\"],\"0$1\",1],[\"(\\\\d{3})(\\\\d{4})(\\\\d{3})\",\"$1 $2 $3\",[\"2\"],\"0$1\",1]],\"0\"],\"VU\":[\"678\",\"00\",\"[57-9]\\\\d{6}|(?:[238]\\\\d|48)\\\\d{3}\",[5,7],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"[57-9]\"]]]],\"WF\":[\"681\",\"00\",\"(?:40|72|8\\\\d{4})\\\\d{4}|[89]\\\\d{5}\",[6,9],[[\"(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3\",[\"[47-9]\"]],[\"(\\\\d{3})(\\\\d{2})(\\\\d{2})(\\\\d{2})\",\"$1 $2 $3 $4\",[\"8\"]]]],\"WS\":[\"685\",\"0\",\"(?:[2-6]|8\\\\d{5})\\\\d{4}|[78]\\\\d{6}|[68]\\\\d{5}\",[5,6,7,10],[[\"(\\\\d{5})\",\"$1\",[\"[2-5]|6[1-9]\"]],[\"(\\\\d{3})(\\\\d{3,7})\",\"$1 $2\",[\"[68]\"]],[\"(\\\\d{2})(\\\\d{5})\",\"$1 $2\",[\"7\"]]]],\"XK\":[\"383\",\"00\",\"2\\\\d{7,8}|3\\\\d{7,11}|(?:4\\\\d\\\\d|[89]00)\\\\d{5}\",[8,9,10,11,12],[[\"(\\\\d{3})(\\\\d{5})\",\"$1 $2\",[\"[89]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[2-4]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"2|39\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{7,10})\",\"$1 $2\",[\"3\"],\"0$1\"]],\"0\"],\"YE\":[\"967\",\"00\",\"(?:1|7\\\\d)\\\\d{7}|[1-7]\\\\d{6}\",[7,8,9],[[\"(\\\\d)(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"[1-6]|7(?:[24-6]|8[0-7])\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"7\"],\"0$1\"]],\"0\"],\"YT\":[\"262\",\"00\",\"(?:639\\\\d|7093)\\\\d{5}|(?:26|80|9\\\\d)\\\\d{7}\",[9],0,\"0\",0,0,0,0,0,[[\"26(?:89\\\\d|9(?:0[0-467]|15|5[0-4]|6\\\\d|[78]0))\\\\d{4}\"],[\"(?:639(?:0[0-79]|1[019]|[267]\\\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\\\d{4}\"],[\"80\\\\d{7}\"],0,0,0,0,0,[\"9(?:(?:39|47)8[01]|769\\\\d)\\\\d{4}\"]]],\"ZA\":[\"27\",\"00\",\"[1-79]\\\\d{8}|8\\\\d{4,9}\",[5,6,7,8,9,10],[[\"(\\\\d{2})(\\\\d{3,4})\",\"$1 $2\",[\"8[1-4]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{2,3})\",\"$1 $2 $3\",[\"8[1-4]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"860\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"[1-9]\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"8\"],\"0$1\"]],\"0\"],\"ZM\":[\"260\",\"00\",\"800\\\\d{6}|(?:21|[579]\\\\d|63)\\\\d{7}\",[9],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[28]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{7})\",\"$1 $2\",[\"[579]\"],\"0$1\"]],\"0\"],\"ZW\":[\"263\",\"00\",\"8\\\\d{6}(?:\\\\d{3})?|[235-8]\\\\d{8}\",[7,9,10],[[\"(\\\\d{3})(\\\\d{4})\",\"$1 $2\",[\"80\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"29[013-9]\"],\"0$1\"],[\"(\\\\d{2})(\\\\d{7})\",\"$1 $2\",[\"[256]|39|8[13-59]\"],\"(0$1)\"],[\"(\\\\d{2})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"7\"],\"0$1\"],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3,4})\",\"$1 $2 $3\",[\"3\"],\"0$1\"],[\"(\\\\d{4})(\\\\d{6})\",\"$1 $2\",[\"8\"],\"0$1\"]],\"0\"]},\"nonGeographic\":{\"800\":[\"800\",0,\"(?:00|[1-9]\\\\d)\\\\d{6}\",[8],[[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"\\\\d\"]]],0,0,0,0,0,0,[0,0,[\"(?:00|[1-9]\\\\d)\\\\d{6}\"]]],\"808\":[\"808\",0,\"[1-9]\\\\d{7}\",[8],[[\"(\\\\d{4})(\\\\d{4})\",\"$1 $2\",[\"[1-9]\"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,[\"[1-9]\\\\d{7}\"]]],\"870\":[\"870\",0,\"7\\\\d{11}|[235-7]\\\\d{8}\",[9,12],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"[235-7]\"]]],0,0,0,0,0,0,[0,[\"(?:[356]|774[45])\\\\d{8}|7[6-8]\\\\d{7}\"],0,0,0,0,0,0,[\"2\\\\d{8}\",[9]]]],\"878\":[\"878\",0,\"10\\\\d{10}\",[12],[[\"(\\\\d{2})(\\\\d{5})(\\\\d{5})\",\"$1 $2 $3\",[\"1\"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,[\"10\\\\d{10}\"]]],\"881\":[\"881\",0,\"6\\\\d{9}|[0-36-9]\\\\d{8}\",[9,10],[[\"(\\\\d)(\\\\d{3})(\\\\d{5})\",\"$1 $2 $3\",[\"[0-37-9]\"]],[\"(\\\\d)(\\\\d{3})(\\\\d{5,6})\",\"$1 $2 $3\",[\"6\"]]],0,0,0,0,0,0,[0,[\"6\\\\d{9}|[0-36-9]\\\\d{8}\"]]],\"882\":[\"882\",0,\"[13]\\\\d{6}(?:\\\\d{2,5})?|[19]\\\\d{7}|(?:[25]\\\\d\\\\d|4)\\\\d{7}(?:\\\\d{2})?\",[7,8,9,10,11,12],[[\"(\\\\d{2})(\\\\d{5})\",\"$1 $2\",[\"16|342\"]],[\"(\\\\d{2})(\\\\d{6})\",\"$1 $2\",[\"49\"]],[\"(\\\\d{2})(\\\\d{2})(\\\\d{4})\",\"$1 $2 $3\",[\"1[36]|9\"]],[\"(\\\\d{2})(\\\\d{4})(\\\\d{3})\",\"$1 $2 $3\",[\"3[23]\"]],[\"(\\\\d{2})(\\\\d{3,4})(\\\\d{4})\",\"$1 $2 $3\",[\"16\"]],[\"(\\\\d{2})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"10|23|3(?:[15]|4[57])|4|5[12]\"]],[\"(\\\\d{3})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"34\"]],[\"(\\\\d{2})(\\\\d{4,5})(\\\\d{5})\",\"$1 $2 $3\",[\"[1-35]\"]]],0,0,0,0,0,0,[0,[\"342\\\\d{4}|(?:337|49)\\\\d{6}|(?:3(?:2|47|7\\\\d{3})|5(?:0\\\\d{3}|2[0-2]))\\\\d{7}\",[7,8,9,10,12]],0,0,0,[\"348[57]\\\\d{7}\",[11]],0,0,[\"1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\\\d{4}|6\\\\d{5,10})|(?:345\\\\d|9[89])\\\\d{6}|(?:10|2(?:3|85\\\\d)|3(?:[15]|[69]\\\\d\\\\d)|4[15-8]|51)\\\\d{8}\"]]],\"883\":[\"883\",0,\"(?:[1-4]\\\\d|51)\\\\d{6,10}\",[8,9,10,11,12],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{2,8})\",\"$1 $2 $3\",[\"[14]|2[24-689]|3[02-689]|51[24-9]\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3\",[\"510\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{4})\",\"$1 $2 $3\",[\"21\"]],[\"(\\\\d{4})(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"51[13]\"]],[\"(\\\\d{3})(\\\\d{3})(\\\\d{3})(\\\\d{3})\",\"$1 $2 $3 $4\",[\"[235]\"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,[\"(?:2(?:00\\\\d\\\\d|10)|(?:370[1-9]|51\\\\d0)\\\\d)\\\\d{7}|51(?:00\\\\d{5}|[24-9]0\\\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\\\d{5,9}\"]]],\"888\":[\"888\",0,\"\\\\d{11}\",[11],[[\"(\\\\d{3})(\\\\d{3})(\\\\d{5})\",\"$1 $2 $3\"]],0,0,0,0,0,0,[0,0,0,0,0,0,[\"\\\\d{11}\"]]],\"979\":[\"979\",0,\"[1359]\\\\d{8}\",[9],[[\"(\\\\d)(\\\\d{4})(\\\\d{4})\",\"$1 $2 $3\",[\"[1359]\"]]],0,0,0,0,0,0,[0,0,0,[\"[1359]\\\\d{8}\"]]]}}", "// Importing from a \".js\" file is a workaround for Node.js \"ES Modules\"\n// importing system which is even uncapable of importing \"*.json\" files.\nimport metadata from '../../metadata.min.json.js'\n\nexport default function withMetadataArgument(func, _arguments) {\n\tvar args = Array.prototype.slice.call(_arguments)\n\targs.push(metadata)\n\treturn func.apply(this, args)\n}", "// Copy-pasted from:\n// https://github.com/substack/semver-compare/blob/master/index.js\n//\n// Inlining this function because some users reported issues with\n// importing from `semver-compare` in a browser with ES6 \"native\" modules.\n//\n// Fixes `semver-compare` not being able to compare versions with alpha/beta/etc \"tags\".\n// https://github.com/catamphetamine/libphonenumber-js/issues/381\nexport default function(a, b) {\n a = a.split('-')\n b = b.split('-')\n var pa = a[0].split('.')\n var pb = b[0].split('.')\n for (var i = 0; i < 3; i++) {\n var na = Number(pa[i])\n var nb = Number(pb[i])\n if (na > nb) return 1\n if (nb > na) return -1\n if (!isNaN(na) && isNaN(nb)) return 1\n if (isNaN(na) && !isNaN(nb)) return -1\n }\n if (a[1] && b[1]) {\n return a[1] > b[1] ? 1 : (a[1] < b[1] ? -1 : 0)\n }\n return !a[1] && b[1] ? 1 : (a[1] && !b[1] ? -1 : 0)\n}", "const objectConstructor = {}.constructor;\n\nexport default function isObject(object) {\n return object !== undefined && object !== null && object.constructor === objectConstructor;\n}\n", "const CALLING_CODE_REG_EXP = /^\\d+$/\n\nexport default function isCallingCode(string) {\n\treturn CALLING_CODE_REG_EXP.test(string)\n}\n", "import compare from './tools/semver-compare.js'\nimport isObject from './helpers/isObject.js'\nimport isCallingCode from './helpers/isCallingCode.js'\n\n// Added \"possibleLengths\" and renamed\n// \"country_phone_code_to_countries\" to \"country_calling_codes\".\nconst V2 = '1.0.18'\n\n// Added \"idd_prefix\" and \"default_idd_prefix\".\nconst V3 = '1.2.0'\n\n// Moved `001` country code to \"nonGeographic\" section of metadata.\nconst V4 = '1.7.35'\n\nconst DEFAULT_EXT_PREFIX = ' ext. '\n\n/**\n * See: https://gitlab.com/catamphetamine/libphonenumber-js/blob/master/METADATA.md\n */\nexport default class Metadata {\n\t/**\n\t * @param {object} metadata — Metadata JSON.\n\t */\n\tconstructor(metadata) {\n\t\tvalidateMetadata(metadata)\n\t\tthis.metadata = metadata\n\t\tsetVersion.call(this, metadata)\n\t}\n\n\tgetCountries() {\n\t\treturn Object.keys(this.metadata.countries).filter(_ => _ !== '001')\n\t}\n\n\tgetCountryMetadata(countryCode) {\n\t\treturn this.metadata.countries[countryCode]\n\t}\n\n\tnonGeographic() {\n\t\tif (this.v1 || this.v2 || this.v3) return\n\t\t// `nonGeographical` was a typo.\n\t\t// It's present in metadata generated from `1.7.35` to `1.7.37`.\n\t\t// The test case could be found by searching for \"nonGeographical\".\n\t\treturn this.metadata.nonGeographic || this.metadata.nonGeographical\n\t}\n\n\thasCountry(country) {\n\t\treturn this.getCountryMetadata(country) !== undefined\n\t}\n\n\thasCallingCode(callingCode) {\n\t\tif (this.getCountryCodesForCallingCode(callingCode)) {\n\t\t\treturn true\n\t\t}\n\t\tif (this.nonGeographic()) {\n\t\t\tif (this.nonGeographic()[callingCode]) {\n\t\t\t\treturn true\n\t\t\t}\n\t\t} else {\n\t\t\t// A hacky workaround for old custom metadata (generated before V4).\n\t\t\tconst countryCodes = this.countryCallingCodes()[callingCode]\n\t\t\tif (countryCodes && countryCodes.length === 1 && countryCodes[0] === '001') {\n\t\t\t\treturn true\n\t\t\t}\n\t\t}\n\t}\n\n\tisNonGeographicCallingCode(callingCode) {\n\t\tif (this.nonGeographic()) {\n\t\t\treturn this.nonGeographic()[callingCode] ? true : false\n\t\t} else {\n\t\t\treturn this.getCountryCodesForCallingCode(callingCode) ? false : true\n\t\t}\n\t}\n\n\t// Deprecated.\n\tcountry(countryCode) {\n\t\treturn this.selectNumberingPlan(countryCode)\n\t}\n\n\t/**\n\t * Selects a telephone numbering plan based on either a country code or a calling code.\n\t * @param {string} argument — Country code or calling code.\n\t * @param {string} legacyArgumentCallingCode — Legacy argument: calling code, if the first argument is not passed.\n\t */\n\tselectNumberingPlan(argument, legacyArgumentCallingCode) {\n\t\tlet countryCode\n\t\tlet callingCode\n\t\tif (argument) {\n\t\t\tif (isCallingCode(argument)) {\n\t\t\t\tcallingCode = argument\n\t\t\t} else {\n\t\t\t\tcountryCode = argument\n\t\t\t}\n\t\t}\n\t\t// Previously, the signature of this method was: `.selectNumberingPlan(country, callingCode)`.\n\t\t// And if `country` argument wasn't passed, it looked into the second argument `callingCode`.\n\t\t// Now it's preferred to only pass either `country` or `callingCode` as the first argument.\n\t\tif (legacyArgumentCallingCode) {\n\t\t\tcallingCode = legacyArgumentCallingCode\n\t\t}\n\n\t\t// Select a telephone numbering plan.\n\t\tif (countryCode && countryCode !== '001') {\n\t\t\tconst countryMetadata = this.getCountryMetadata(countryCode)\n\t\t\tif (!countryMetadata) {\n\t\t\t\tthrow new Error(`Unknown country: ${countryCode}`)\n\t\t\t}\n\t\t\tthis.numberingPlan = new NumberingPlan(countryMetadata, this)\n\t\t} else if (callingCode) {\n\t\t\tif (!this.hasCallingCode(callingCode)) {\n\t\t\t\tthrow new Error(`Unknown calling code: ${callingCode}`)\n\t\t\t}\n\t\t\tthis.numberingPlan = new NumberingPlan(this.getNumberingPlanMetadata(callingCode), this)\n\t\t} else {\n\t\t\tthis.numberingPlan = undefined\n\t\t}\n\n\t\treturn this\n\t}\n\n\tgetCountryCodesForCallingCode(callingCode) {\n\t\tconst countryCodes = this.countryCallingCodes()[callingCode]\n\t\tif (countryCodes) {\n\t\t\t// Metadata before V4 included \"non-geographic entity\" calling codes\n\t\t\t// inside `country_calling_codes` (for example, `\"881\":[\"001\"]`).\n\t\t\t// Now the semantics of `country_calling_codes` has changed:\n\t\t\t// it's specifically for \"countries\" now.\n\t\t\t// Older versions of custom metadata will simply skip parsing\n\t\t\t// \"non-geographic entity\" phone numbers with new versions\n\t\t\t// of this library: it's not considered a bug,\n\t\t\t// because such numbers are extremely rare,\n\t\t\t// and developers extremely rarely use custom metadata.\n\t\t\tif (countryCodes.length === 1 && countryCodes[0].length === 3) {\n\t\t\t\treturn\n\t\t\t}\n\t\t\treturn countryCodes\n\t\t}\n\t}\n\n\tgetCountryCodeForCallingCode(callingCode) {\n\t\tconst countryCodes = this.getCountryCodesForCallingCode(callingCode)\n\t\tif (countryCodes) {\n\t\t\treturn countryCodes[0]\n\t\t}\n\t}\n\n\tgetNumberingPlanMetadata(callingCode) {\n\t\t// If a calling code is specified, choose the telephone numbering plan\n\t\t// of the \"default\" country for this calling code.\n\t\t// For example, if calling code `1` is passed,\n\t\t// the telephone numbering plan of `US` will be selected.\n\t\tconst countryCode = this.getCountryCodeForCallingCode(callingCode)\n\t\tif (countryCode) {\n\t\t\treturn this.getCountryMetadata(countryCode)\n\t\t}\n\t\tif (this.nonGeographic()) {\n\t\t\tconst metadata = this.nonGeographic()[callingCode]\n\t\t\tif (metadata) {\n\t\t\t\treturn metadata\n\t\t\t}\n\t\t} else {\n\t\t\t// A hacky workaround for old custom metadata (generated before V4).\n\t\t\t// In that metadata, there was no concept of \"non-geographic\" metadata\n\t\t\t// so metadata for `001` country code was stored along with other countries.\n\t\t\t// The test case can be found by searching for:\n\t\t\t// \"should work around `nonGeographic` metadata not existing\".\n\t\t\tconst countryCodes = this.countryCallingCodes()[callingCode]\n\t\t\tif (countryCodes && countryCodes.length === 1 && countryCodes[0] === '001') {\n\t\t\t\treturn this.metadata.countries['001']\n\t\t\t}\n\t\t}\n\t}\n\n\t// Deprecated.\n\tcountryCallingCode() {\n\t\treturn this.numberingPlan.callingCode()\n\t}\n\n\t// Deprecated.\n\tIDDPrefix() {\n\t\treturn this.numberingPlan.IDDPrefix()\n\t}\n\n\t// Deprecated.\n\tdefaultIDDPrefix() {\n\t\treturn this.numberingPlan.defaultIDDPrefix()\n\t}\n\n\t// Deprecated.\n\tnationalNumberPattern() {\n\t\treturn this.numberingPlan.nationalNumberPattern()\n\t}\n\n\t// Deprecated.\n\tpossibleLengths() {\n\t\treturn this.numberingPlan.possibleLengths()\n\t}\n\n\t// Deprecated.\n\tformats() {\n\t\treturn this.numberingPlan.formats()\n\t}\n\n\t// Deprecated.\n\tnationalPrefixForParsing() {\n\t\treturn this.numberingPlan.nationalPrefixForParsing()\n\t}\n\n\t// Deprecated.\n\tnationalPrefixTransformRule() {\n\t\treturn this.numberingPlan.nationalPrefixTransformRule()\n\t}\n\n\t// Deprecated.\n\tleadingDigits() {\n\t\treturn this.numberingPlan.leadingDigits()\n\t}\n\n\t// Deprecated.\n\thasTypes() {\n\t\treturn this.numberingPlan.hasTypes()\n\t}\n\n\t// Deprecated.\n\ttype(type) {\n\t\treturn this.numberingPlan.type(type)\n\t}\n\n\t// Deprecated.\n\text() {\n\t\treturn this.numberingPlan.ext()\n\t}\n\n\tcountryCallingCodes() {\n\t\tif (this.v1) return this.metadata.country_phone_code_to_countries\n\t\treturn this.metadata.country_calling_codes\n\t}\n\n\t// Deprecated.\n\tchooseCountryByCountryCallingCode(callingCode) {\n\t\treturn this.selectNumberingPlan(callingCode)\n\t}\n\n\thasSelectedNumberingPlan() {\n\t\treturn this.numberingPlan !== undefined\n\t}\n}\n\nclass NumberingPlan {\n\tconstructor(metadata, globalMetadataObject) {\n\t\tthis.globalMetadataObject = globalMetadataObject\n\t\tthis.metadata = metadata\n\t\tsetVersion.call(this, globalMetadataObject.metadata)\n\t}\n\n\tcallingCode() {\n\t\treturn this.metadata[0]\n\t}\n\n\t// When multiple countries share the same calling code,\n\t// all phone number formatting rules are included in the metadata\n\t// of the \"default\" country for that calling code.\n\t// Any other countries' metdata doesn't include any formatting rules.\n\t// Google developers said that such storage architecture was chosen for performance reasons.\n\t//\n\t// For example, for NANPA region (\"North American Numbering Plan Administration\",\n\t// which includes USA, Canada, Cayman Islands, Bahamas, etc) all formatting rules\n\t// are contained in the metadata of `US` country.\n\t//\n\t// This is not public API.\n\t//\n\t_getDefaultCountryMetadataForThisCallingCode() {\n\t\treturn this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())\n\t}\n\n\t// Deprecated.\n\tgetDefaultCountryMetadataForRegion() {\n\t\treturn this._getDefaultCountryMetadataForThisCallingCode()\n\t}\n\n\t// Is always present.\n\tIDDPrefix() {\n\t\tif (this.v1 || this.v2) return\n\t\treturn this.metadata[1]\n\t}\n\n\t// Is only present when a country supports multiple IDD prefixes.\n\tdefaultIDDPrefix() {\n\t\tif (this.v1 || this.v2) return\n\t\treturn this.metadata[12]\n\t}\n\n\tnationalNumberPattern() {\n\t\tif (this.v1 || this.v2) return this.metadata[1]\n\t\treturn this.metadata[2]\n\t}\n\n\t// \"possible length\" data is always present in Google's metadata.\n\tpossibleLengths() {\n\t\tif (this.v1) return\n\t\treturn this.metadata[this.v2 ? 2 : 3]\n\t}\n\n\t_getFormats(metadata) {\n\t\treturn metadata[this.v1 ? 2 : this.v2 ? 3 : 4]\n\t}\n\n\t// For countries of the same region (e.g. NANPA)\n\t// formats are all stored in the \"main\" country for that region.\n\t// E.g. \"RU\" and \"KZ\", \"US\" and \"CA\".\n\tformats() {\n\t\tconst formats = this._getFormats(this.metadata) || this._getFormats(this._getDefaultCountryMetadataForThisCallingCode()) || []\n\t\treturn formats.map(_ => new Format(_, this))\n\t}\n\n\tnationalPrefix() {\n\t\treturn this.metadata[this.v1 ? 3 : this.v2 ? 4 : 5]\n\t}\n\n\t_getNationalPrefixFormattingRule(metadata) {\n\t\treturn metadata[this.v1 ? 4 : this.v2 ? 5 : 6]\n\t}\n\n\t// For countries of the same region (e.g. NANPA)\n\t// national prefix formatting rule is stored in the \"main\" country for that region.\n\t// E.g. \"RU\" and \"KZ\", \"US\" and \"CA\".\n\tnationalPrefixFormattingRule() {\n\t\treturn this._getNationalPrefixFormattingRule(this.metadata) || this._getNationalPrefixFormattingRule(this._getDefaultCountryMetadataForThisCallingCode())\n\t}\n\n\t_nationalPrefixForParsing() {\n\t\treturn this.metadata[this.v1 ? 5 : this.v2 ? 6 : 7]\n\t}\n\n\tnationalPrefixForParsing() {\n\t\t// If `national_prefix_for_parsing` is not set explicitly,\n\t\t// then infer it from `national_prefix` (if any)\n\t\treturn this._nationalPrefixForParsing() || this.nationalPrefix()\n\t}\n\n\tnationalPrefixTransformRule() {\n\t\treturn this.metadata[this.v1 ? 6 : this.v2 ? 7 : 8]\n\t}\n\n\t_getNationalPrefixIsOptionalWhenFormatting() {\n\t\treturn !!this.metadata[this.v1 ? 7 : this.v2 ? 8 : 9]\n\t}\n\n\t// For countries of the same region (e.g. NANPA)\n\t// \"national prefix is optional when formatting\" flag is\n\t// stored in the \"main\" country for that region.\n\t// E.g. \"RU\" and \"KZ\", \"US\" and \"CA\".\n\tnationalPrefixIsOptionalWhenFormattingInNationalFormat() {\n\t\treturn this._getNationalPrefixIsOptionalWhenFormatting(this.metadata) ||\n\t\t\tthis._getNationalPrefixIsOptionalWhenFormatting(this._getDefaultCountryMetadataForThisCallingCode())\n\t}\n\n\tleadingDigits() {\n\t\treturn this.metadata[this.v1 ? 8 : this.v2 ? 9 : 10]\n\t}\n\n\ttypes() {\n\t\treturn this.metadata[this.v1 ? 9 : this.v2 ? 10 : 11]\n\t}\n\n\thasTypes() {\n\t\t// Versions 1.2.0 - 1.2.4: can be `[]`.\n\t\t/* istanbul ignore next */\n\t\tif (this.types() && this.types().length === 0) {\n\t\t\treturn false\n\t\t}\n\t\t// Versions <= 1.2.4: can be `undefined`.\n\t\t// Version >= 1.2.5: can be `0`.\n\t\treturn !!this.types()\n\t}\n\n\ttype(type) {\n\t\tif (this.hasTypes() && getType(this.types(), type)) {\n\t\t\treturn new Type(getType(this.types(), type), this)\n\t\t}\n\t}\n\n\text() {\n\t\tif (this.v1 || this.v2) return DEFAULT_EXT_PREFIX\n\t\treturn this.metadata[13] || DEFAULT_EXT_PREFIX\n\t}\n}\n\nclass Format {\n\tconstructor(format, metadata) {\n\t\tthis._format = format\n\t\tthis.metadata = metadata\n\t}\n\n\tpattern() {\n\t\treturn this._format[0]\n\t}\n\n\tformat() {\n\t\treturn this._format[1]\n\t}\n\n\tleadingDigitsPatterns() {\n\t\treturn this._format[2] || []\n\t}\n\n\tnationalPrefixFormattingRule() {\n\t\treturn this._format[3] || this.metadata.nationalPrefixFormattingRule()\n\t}\n\n\tnationalPrefixIsOptionalWhenFormattingInNationalFormat() {\n\t\treturn !!this._format[4] || this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()\n\t}\n\n\tnationalPrefixIsMandatoryWhenFormattingInNationalFormat() {\n\t\t// National prefix is omitted if there's no national prefix formatting rule\n\t\t// set for this country, or when the national prefix formatting rule\n\t\t// contains no national prefix itself, or when this rule is set but\n\t\t// national prefix is optional for this phone number format\n\t\t// (and it is not enforced explicitly)\n\t\treturn this.usesNationalPrefix() && !this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()\n\t}\n\n\t// Checks whether national prefix formatting rule contains national prefix.\n\tusesNationalPrefix() {\n\t\treturn this.nationalPrefixFormattingRule() &&\n\t\t\t// Check that national prefix formatting rule is not a \"dummy\" one.\n\t\t\t!FIRST_GROUP_ONLY_PREFIX_PATTERN.test(this.nationalPrefixFormattingRule())\n\t\t\t// In compressed metadata, `this.nationalPrefixFormattingRule()` is `0`\n\t\t\t// when `national_prefix_formatting_rule` is not present.\n\t\t\t// So, `true` or `false` are returned explicitly here, so that\n\t\t\t// `0` number isn't returned.\n\t\t\t? true\n\t\t\t: false\n\t}\n\n\tinternationalFormat() {\n\t\treturn this._format[5] || this.format()\n\t}\n}\n\n/**\n * A pattern that is used to determine if the national prefix formatting rule\n * has the first group only, i.e., does not start with the national prefix.\n * Note that the pattern explicitly allows for unbalanced parentheses.\n */\nconst FIRST_GROUP_ONLY_PREFIX_PATTERN = /^\\(?\\$1\\)?$/\n\nclass Type {\n\tconstructor(type, metadata) {\n\t\tthis.type = type\n\t\tthis.metadata = metadata\n\t}\n\n\tpattern() {\n\t\tif (this.metadata.v1) return this.type\n\t\treturn this.type[0]\n\t}\n\n\tpossibleLengths() {\n\t\tif (this.metadata.v1) return\n\t\treturn this.type[1] || this.metadata.possibleLengths()\n\t}\n}\n\nfunction getType(types, type) {\n\tswitch (type) {\n\t\tcase 'FIXED_LINE':\n\t\t\treturn types[0]\n\t\tcase 'MOBILE':\n\t\t\treturn types[1]\n\t\tcase 'TOLL_FREE':\n\t\t\treturn types[2]\n\t\tcase 'PREMIUM_RATE':\n\t\t\treturn types[3]\n\t\tcase 'PERSONAL_NUMBER':\n\t\t\treturn types[4]\n\t\tcase 'VOICEMAIL':\n\t\t\treturn types[5]\n\t\tcase 'UAN':\n\t\t\treturn types[6]\n\t\tcase 'PAGER':\n\t\t\treturn types[7]\n\t\tcase 'VOIP':\n\t\t\treturn types[8]\n\t\tcase 'SHARED_COST':\n\t\t\treturn types[9]\n\t}\n}\n\nexport function validateMetadata(metadata) {\n\tif (!metadata) {\n\t\tthrow new Error('[libphonenumber-js] `metadata` argument not passed. Check your arguments.')\n\t}\n\n\t// `country_phone_code_to_countries` was renamed to `country_calling_codes` in `1.0.18`.\n\t// For that reason, it's not used in this detection algorithm.\n\t// Instead, it detects by `countries: {}` property existence.\n\tif (!isObject(metadata) || !isObject(metadata.countries)) {\n\t\tthrow new Error(`[libphonenumber-js] \\`metadata\\` argument was passed but it's not a valid metadata. Must be an object having \\`.countries\\` child object property. Got ${isObject(metadata) ? 'an object of shape: { ' + Object.keys(metadata).join(', ') + ' }' : 'a ' + typeOf(metadata) + ': ' + metadata}.`)\n\t}\n}\n\n// Babel transforms `typeof` into some \"branches\"\n// so istanbul will show this as \"branch not covered\".\n/* istanbul ignore next */\nconst typeOf = _ => typeof _\n\n/**\n * Returns extension prefix for a country.\n * @param {string} country\n * @param {object} metadata\n * @return {string?}\n * @example\n * // Returns \" ext. \"\n * getExtPrefix(\"US\")\n */\nexport function getExtPrefix(country, metadataJson) {\n\tconst metadata = new Metadata(metadataJson)\n\tif (metadata.hasCountry(country)) {\n\t\treturn metadata.selectNumberingPlan(country).ext()\n\t}\n\treturn DEFAULT_EXT_PREFIX\n}\n\n/**\n * Returns \"country calling code\" for a country.\n * Throws an error if the country doesn't exist or isn't supported by this library.\n * @param {string} country\n * @param {object} metadataJson\n * @return {string}\n * @example\n * // Returns \"44\"\n * getCountryCallingCode(\"GB\")\n */\nexport function getCountryCallingCode(country, metadataJson) {\n\tconst metadata = new Metadata(metadataJson)\n\tif (metadata.hasCountry(country)) {\n\t\treturn metadata.selectNumberingPlan(country).countryCallingCode()\n\t}\n\tthrow new Error(`Unknown country: ${country}`)\n}\n\n/**\n * Tells if a country code is supported.\n * @param {string} country\n * @param {object} metadataJson\n * @return {boolean}\n * @example\n * // Returns `true`\n * isSupportedCountry(\"GB\")\n */\nexport function isSupportedCountry(country, metadataJson) {\n\t// const metadata = new Metadata(metadataJson)\n\t// return metadata.hasCountry(country)\n\treturn metadataJson.countries.hasOwnProperty(country)\n}\n\n/**\n * Sets `v1`/`v2`/`v3`/`v4` properties on `this` object.\n * @param {object} metadata — Metadata JSON\n */\nfunction setVersion(metadata) {\n\tconst { version } = metadata\n\tif (typeof version === 'number') {\n\t\tthis.v1 = version === 1\n\t\tthis.v2 = version === 2\n\t\tthis.v3 = version === 3\n\t\tthis.v4 = version === 4\n\t} else {\n\t\tif (!version) {\n\t\t\tthis.v1 = true\n\t\t} else if (compare(version, V3) === -1) {\n\t\t\tthis.v2 = true\n\t\t} else if (compare(version, V4) === -1) {\n\t\t\tthis.v3 = true\n\t\t} else {\n\t\t\tthis.v4 = true\n\t\t}\n\t}\n}", "/**\n * Merges two arrays.\n * @param {*} a\n * @param {*} b\n * @return {*}\n */\nexport default function mergeArrays(a, b) {\n\tconst merged = a.slice()\n\n\tfor (const element of b) {\n\t\tif (a.indexOf(element) < 0) {\n\t\t\tmerged.push(element)\n\t\t}\n\t}\n\n\treturn merged.sort((a, b) => a - b)\n\n\t// ES6 version, requires Set polyfill.\n\t// let merged = new Set(a)\n\t// for (const element of b) {\n\t// \tmerged.add(i)\n\t// }\n\t// return Array.from(merged).sort((a, b) => a - b)\n}", "import Metadata from '../metadata.js'\nimport mergeArrays from './mergeArrays.js'\n\n/**\n * Checks phone number length against the phone numbering plan selected in metadata.\n * Optionally, it could be restrained by a specific country.\n * @param {string} nationalNumber\n * @param {string?} country — Specific country to use rather than the one that is pre-selected in the metadata instance.\n * @param {Metadata} metadata — Metadata instance with a selected numbering plan.\n * @returns {string}\n */\nexport default function checkNumberLength(nationalNumber, country, metadata) {\n\treturn checkNumberLengthForType(nationalNumber, undefined, country, metadata)\n}\n\n/**\n * Checks phone number length against the phone numbering plan selected in metadata.\n * Optionally, it could be restrained by a specific phone number type or a specific country.\n * @param {string} nationalNumber\n * @param {string?} type — Specific phone number type.\n * @param {string?} country — Specific country to use instead of the one that is pre-selected in the metadata instance.\n * @param {Metadata} metadata — Metadata instance with a selected numbering plan.\n * @returns {string} See the README on `validatePhoneNumberLength()` function, with an addition of a special case: when phone numbers of type `type` aren't possible in the telephone numbering plan, it will return \"INVALID_LENGTH\".\n */\n// Checks whether a number is possible for a certain `country` based on the number length.\n//\n// This function is not supported by metadata generated with ancient versions of\n// `libphonenumber-js` (before version `1.0.18`) which didn't include \"possible lengths\".\n//\n// There was also a known issue with `checkNumberLength()` function:\n// if a number is possible only in a certain `country` among several `countries`\n// that share the same \"country calling code\", that function would check\n// the possibility of the phone number only in the \"main\" `country` for the \"country calling code\"\n// and would not check if it's actually be possible in the speciifc `country`.\n//\n// For example, \"+1310xxxx\" numbers are valid in Canada.\n// However, they are not possible in the US due to being too short.\n// Since Canada and the US share the same country calling code — \"+1\" —\n// `checkNumberLength()` function used to return not \"IS_POSSIBLE\" for \"+1310xxxx\" numbers.\n//\n// In such cases, when using \"/max\" metadata, `isValid()` could output `true`\n// but at the same time `isPossible()` could output `false`, which was contradictory.\n//\n// See https://issuetracker.google.com/issues/335892662 for the discusson in Google's issues.\n//\n// The solution suggested by Google was implemented: an optional `country` argument\n// was added to `checkNumberLength()` function. If present, that `country` will be used\n// to check phone number length for that specific `country` rather than the \"main\" country\n// for the shared \"country calling code\".\n//\nexport function checkNumberLengthForType(nationalNumber, type, country, metadata) {\n\tif (country) {\n\t\t// If a specific `country` is specified, re-create a metadata instance with it.\n\t\tmetadata = new Metadata(metadata.metadata)\n\t\tmetadata.selectNumberingPlan(country)\n\t}\n\n\tconst type_info = metadata.type(type)\n\n\t// There should always be \"<possiblePengths/>\" set for every type element.\n\t// This is declared in the XML schema.\n\t// For size efficiency, where a sub-description (e.g. fixed-line)\n\t// has the same \"<possiblePengths/>\" as the \"general description\", this is missing,\n\t// so we fall back to the \"general description\". Where no numbers of the type\n\t// exist at all, there is one possible length (-1) which is guaranteed\n\t// not to match the length of any real phone number.\n\tlet possible_lengths = type_info && type_info.possibleLengths() || metadata.possibleLengths()\n\t// let local_lengths = type_info && type.possibleLengthsLocal() || metadata.possibleLengthsLocal()\n\n\t// Metadata before version `1.0.18` didn't contain `possible_lengths`.\n\tif (!possible_lengths) {\n\t\treturn 'IS_POSSIBLE'\n\t}\n\n\tif (type === 'FIXED_LINE_OR_MOBILE') {\n\t\t// No such country in metadata.\n\t\t/* istanbul ignore next */\n\t\tif (!metadata.type('FIXED_LINE')) {\n\t\t\t// The rare case has been encountered where no fixedLine data is available\n\t\t\t// (true for some non-geographic entities), so we just check mobile.\n\t\t\treturn checkNumberLengthForType(nationalNumber, 'MOBILE', country, metadata)\n\t\t}\n\n\t\tconst mobile_type = metadata.type('MOBILE')\n\t\tif (mobile_type) {\n\t\t\t// Merge the mobile data in if there was any. \"Concat\" creates a new\n\t\t\t// array, it doesn't edit possible_lengths in place, so we don't need a copy.\n\t\t\t// Note that when adding the possible lengths from mobile, we have\n\t\t\t// to again check they aren't empty since if they are this indicates\n\t\t\t// they are the same as the general desc and should be obtained from there.\n\t\t\tpossible_lengths = mergeArrays(possible_lengths, mobile_type.possibleLengths())\n\t\t\t// The current list is sorted; we need to merge in the new list and\n\t\t\t// re-sort (duplicates are okay). Sorting isn't so expensive because\n\t\t\t// the lists are very small.\n\n\t\t\t// if (local_lengths) {\n\t\t\t// \tlocal_lengths = mergeArrays(local_lengths, mobile_type.possibleLengthsLocal())\n\t\t\t// } else {\n\t\t\t// \tlocal_lengths = mobile_type.possibleLengthsLocal()\n\t\t\t// }\n\t\t}\n\t}\n\t// If the type doesn't exist then return 'INVALID_LENGTH'.\n\telse if (type && !type_info) {\n\t\treturn 'INVALID_LENGTH'\n\t}\n\n\tconst actual_length = nationalNumber.length\n\n\t// In `libphonenumber-js` all \"local-only\" formats are dropped for simplicity.\n\t// // This is safe because there is never an overlap beween the possible lengths\n\t// // and the local-only lengths; this is checked at build time.\n\t// if (local_lengths && local_lengths.indexOf(nationalNumber.length) >= 0)\n\t// {\n\t// \treturn 'IS_POSSIBLE_LOCAL_ONLY'\n\t// }\n\n\tconst minimum_length = possible_lengths[0]\n\n\tif (minimum_length === actual_length) {\n\t\treturn 'IS_POSSIBLE'\n\t}\n\n\tif (minimum_length > actual_length) {\n\t\treturn 'TOO_SHORT'\n\t}\n\n\tif (possible_lengths[possible_lengths.length - 1] < actual_length) {\n\t\treturn 'TOO_LONG'\n\t}\n\n\t// We skip the first element since we've already checked it.\n\treturn possible_lengths.indexOf(actual_length, 1) >= 0 ? 'IS_POSSIBLE' : 'INVALID_LENGTH'\n}", "import Metadata from './metadata.js'\nimport checkNumberLength from './helpers/checkNumberLength.js'\n\n/**\n * Checks if a phone number is \"possible\" (basically just checks its length).\n *\n * isPossible(phoneNumberInstance, { ..., v2: true }, metadata)\n *\n * isPossible({ phone: '8005553535', country: 'RU' }, { ... }, metadata)\n * isPossible({ phone: '8005553535', country: 'RU' }, undefined, metadata)\n *\n * @param {object|PhoneNumber} input — If `options.v2: true` flag is passed, the `input` should be a `PhoneNumber` instance. Otherwise, it should be an object of shape `{ phone: '...', country: '...' }`.\n * @param {object} [options]\n * @param {object} metadataJson\n * @return {string}\n */\nexport default function isPossiblePhoneNumber(input, options, metadataJson) {\n\t/* istanbul ignore if */\n\tif (options === undefined) {\n\t\toptions = {}\n\t}\n\n\tconst metadata = new Metadata(metadataJson)\n\n\tif (options.v2) {\n\t\tif (!input.countryCallingCode) {\n\t\t\tthrow new Error('Invalid phone number object passed')\n\t\t}\n\t\tmetadata.selectNumberingPlan(input.country || input.countryCallingCode)\n\t} else {\n\t\tif (!input.phone) {\n\t\t\treturn false\n\t\t}\n\t\tif (input.country) {\n\t\t\tif (!metadata.hasCountry(input.country)) {\n\t\t\t\tthrow new Error(`Unknown country: ${input.country}`)\n\t\t\t}\n\t\t\tmetadata.selectNumberingPlan(input.country)\n\t\t} else {\n\t\t\tif (!input.countryCallingCode) {\n\t\t\t\tthrow new Error('Invalid phone number object passed')\n\t\t\t}\n\t\t\tmetadata.selectNumberingPlan(input.countryCallingCode)\n\t\t}\n\t}\n\n\t// Old (legacy) metadata (< 1.0.18) had no \"possible length\" data.\n\t// So `isPossibleNumber()` function is supported only for non-legacy metadata.\n\tif (metadata.possibleLengths()) {\n\t\treturn isPossibleNumber(input.phone || input.nationalNumber, metadata)\n\t}\n\n\t// There was a bug in versions from `1.7.35` to `1.7.37` of `libphonenumber-js`\n\t// where \"possible_lengths\" property was missing from \"non-geographical\" numbering plans' metadata.\n\t// After that, the bug was noticed and fixed.\n\t// So for versions from `1.7.35` to `1.7.37`, just assume that all \"non=geotraphical\" numbers are possible.\n\t// The reason is that the bug was noticed relatively quickly (within a day or so)\n\t// and it's unlikely that anyone generated their custom metadata in that short time span.\n\t// And if they didn't generate any custom metadata then a follow-up package update would've silently fixed the bug.\n\tif (input.countryCallingCode && metadata.isNonGeographicCallingCode(input.countryCallingCode)) {\n\t\treturn true\n\t}\n\n\t// `isPossibleNumber()` function is not supported.\n\tthrow new Error('Missing \"possibleLengths\" in metadata. Perhaps the metadata has been generated before v1.0.18.');\n}\n\n/**\n * Tells if a given national (significant) number is possible\n * @param {string} nationalNumber\n * @param {Metadata} metadata = Metadata instance with a pre-selected telephone numbering plan.\n * @returns {boolean}\n */\nexport function isPossibleNumber(nationalNumber, metadata) {\n\tswitch (checkNumberLength(nationalNumber, undefined, metadata)) {\n\t\tcase 'IS_POSSIBLE':\n\t\t\treturn true\n\t\t// This library ignores \"local-only\" phone numbers (for simplicity).\n\t\t// See the readme for more info on what are \"local-only\" phone numbers.\n\t\t// case 'IS_POSSIBLE_LOCAL_ONLY':\n\t\t// \treturn !isInternational\n\t\tdefault:\n\t\t\treturn false\n\t}\n}", "/**\n * Checks whether the entire input sequence can be matched\n * against the regular expression.\n * @return {boolean}\n */\nexport default function matchesEntirely(text, regularExpressionText) {\n\t// If the assigning of the `''` default value is moved to the arguments above,\n\t// the code coverage would decrease for some weird reason.\n\ttext = text || ''\n\treturn new RegExp('^(?:' + regularExpressionText + ')$').test(text)\n}", "import Metadata from '../metadata.js'\nimport matchesEntirely from './matchesEntirely.js'\n\nconst NON_FIXED_LINE_PHONE_TYPES = [\n\t'MOBILE',\n\t'PREMIUM_RATE',\n\t'TOLL_FREE',\n\t'SHARED_COST',\n\t'VOIP',\n\t'PERSONAL_NUMBER',\n\t'PAGER',\n\t'UAN',\n\t'VOICEMAIL'\n]\n\n// Finds out national phone number type (fixed line, mobile, etc)\nexport default function getNumberType(input, options, metadataJson)\n{\n\t// If assigning the `{}` default value is moved to the arguments above,\n\t// code coverage would decrease for some weird reason.\n\toptions = options || {}\n\n\t// When `parse()` returns an empty object — `{}` —\n\t// that means that the phone number is malformed,\n\t// so it can't possibly be valid.\n\tif (!input.country && !input.countryCallingCode) {\n\t\treturn\n\t}\n\n\tconst metadata = new Metadata(metadataJson)\n\n\tmetadata.selectNumberingPlan(input.country || input.countryCallingCode)\n\n\tconst nationalNumber = options.v2 ? input.nationalNumber : input.phone\n\n\t// The following is copy-pasted from the original function:\n\t// https://github.com/googlei18n/libphonenumber/blob/3ea547d4fbaa2d0b67588904dfa5d3f2557c27ff/javascript/i18n/phonenumbers/phonenumberutil.js#L2835\n\n\t// Is this national number even valid for this country\n\tif (!matchesEntirely(nationalNumber, metadata.nationalNumberPattern())) {\n\t\treturn\n\t}\n\n\t// Is it fixed line number\n\tif (isNumberTypeEqualTo(nationalNumber, 'FIXED_LINE', metadata)) {\n\t\t// Because duplicate regular expressions are removed\n\t\t// to reduce metadata size, if \"mobile\" pattern is \"\"\n\t\t// then it means it was removed due to being a duplicate of the fixed-line pattern.\n\t\t//\n\t\tif (metadata.type('MOBILE') && metadata.type('MOBILE').pattern() === '') {\n\t\t\treturn 'FIXED_LINE_OR_MOBILE'\n\t\t}\n\n\t\t// `MOBILE` type pattern isn't included if it matched `FIXED_LINE` one.\n\t\t// For example, for \"US\" country.\n\t\t// Old metadata (< `1.0.18`) had a specific \"types\" data structure\n\t\t// that happened to be `undefined` for `MOBILE` in that case.\n\t\t// Newer metadata (>= `1.0.18`) has another data structure that is\n\t\t// not `undefined` for `MOBILE` in that case (it's just an empty array).\n\t\t// So this `if` is just for backwards compatibility with old metadata.\n\t\tif (!metadata.type('MOBILE')) {\n\t\t\treturn 'FIXED_LINE_OR_MOBILE'\n\t\t}\n\n\t\t// Check if the number happens to qualify as both fixed line and mobile.\n\t\t// (no such country in the minimal metadata set)\n\t\t/* istanbul ignore if */\n\t\tif (isNumberTypeEqualTo(nationalNumber, 'MOBILE', metadata)) {\n\t\t\treturn 'FIXED_LINE_OR_MOBILE'\n\t\t}\n\n\t\treturn 'FIXED_LINE'\n\t}\n\n\tfor (const type of NON_FIXED_LINE_PHONE_TYPES) {\n\t\tif (isNumberTypeEqualTo(nationalNumber, type, metadata)) {\n\t\t\treturn type\n\t\t}\n\t}\n}\n\nexport function isNumberTypeEqualTo(nationalNumber, type, metadata) {\n\tconst typeDefinition = metadata.type(type)\n\tif (!typeDefinition || !typeDefinition.pattern()) {\n\t\treturn false\n\t}\n\n\t// Check if any possible number lengths are present;\n\t// if so, we use them to avoid checking\n\t// the validation pattern if they don't match.\n\t// If they are absent, this means they match\n\t// the general description, which we have\n\t// already checked before a specific number type.\n\tif (\n\t\ttypeDefinition.possibleLengths() &&\n\t\ttypeDefinition.possibleLengths().indexOf(nationalNumber.length) < 0\n\t) {\n\t\treturn false\n\t}\n\n\treturn matchesEntirely(nationalNumber, typeDefinition.pattern())\n}", "import Metadata from './metadata.js'\nimport matchesEntirely from './helpers/matchesEntirely.js'\nimport getNumberType from './helpers/getNumberType.js'\n\n/**\n * Checks if a given phone number is valid.\n *\n * isValid(phoneNumberInstance, { ..., v2: true }, metadata)\n *\n * isPossible({ phone: '8005553535', country: 'RU' }, { ... }, metadata)\n * isPossible({ phone: '8005553535', country: 'RU' }, undefined, metadata)\n *\n * If the `number` is a string, it will be parsed to an object,\n * but only if it contains only valid phone number characters (including punctuation).\n * If the `number` is an object, it is used as is.\n *\n * The optional `defaultCountry` argument is the default country.\n * I.e. it does not restrict to just that country,\n * e.g. in those cases where several countries share\n * the same phone numbering rules (NANPA, Britain, etc).\n * For example, even though the number `07624 369230`\n * belongs to the Isle of Man (\"IM\" country code)\n * calling `isValidNumber('07624369230', 'GB', metadata)`\n * still returns `true` because the country is not restricted to `GB`,\n * it's just that `GB` is the default one for the phone numbering rules.\n * For restricting the country see `isValidNumberForRegion()`\n * though restricting a country might not be a good idea.\n * https://github.com/googlei18n/libphonenumber/blob/master/FAQ.md#when-should-i-use-isvalidnumberforregion\n *\n * Examples:\n *\n * ```js\n * isValidNumber('+78005553535', metadata)\n * isValidNumber('8005553535', 'RU', metadata)\n * isValidNumber('88005553535', 'RU', metadata)\n * isValidNumber({ phone: '8005553535', country: 'RU' }, metadata)\n * ```\n */\nexport default function isValidNumber(input, options, metadataJson)\n{\n\t// If assigning the `{}` default value is moved to the arguments above,\n\t// code coverage would decrease for some weird reason.\n\toptions = options || {}\n\n\tconst metadata = new Metadata(metadataJson)\n\n\tmetadata.selectNumberingPlan(input.country || input.countryCallingCode)\n\n\t// By default, countries only have type regexps when it's required for\n\t// distinguishing different countries having the same `countryCallingCode`.\n\tif (metadata.hasTypes()) {\n\t\treturn getNumberType(input, options, metadata.metadata) !== undefined\n\t}\n\n\t// If there are no type regexps for this country in metadata then use\n\t// `nationalNumberPattern` as a \"better than nothing\" replacement.\n\tconst nationalNumber = options.v2 ? input.nationalNumber : input.phone\n\treturn matchesEntirely(nationalNumber, metadata.nationalNumberPattern())\n}", "const COUNTRY_CODE_REG_EXP = /^[A-Z]{2}$/\n\nexport default function isCountryCode(string) {\n\treturn COUNTRY_CODE_REG_EXP.test(string)\n}\n", "import Metadata from '../metadata.js'\nimport isCountryCode from './isCountryCode.js'\n\nconst USE_NON_GEOGRAPHIC_COUNTRY_CODE = false\n\nexport default function getCountryAndCallingCodeFromOneOfThem(countryOrCallingCode, metadataJson) {\n\tlet country\n\tlet callingCode\n\n\tconst metadata = new Metadata(metadataJson)\n\t// If country code is passed then derive `countryCallingCode` from it.\n\t// Also store the country code as `.country`.\n\tif (isCountryCode(countryOrCallingCode)) {\n\t\tcountry = countryOrCallingCode\n\t\tmetadata.selectNumberingPlan(country)\n\t\tcallingCode = metadata.countryCallingCode()\n\t} else {\n\t\tcallingCode = countryOrCallingCode\n\t\t/* istanbul ignore if */\n\t\tif (USE_NON_GEOGRAPHIC_COUNTRY_CODE) {\n\t\t\tif (metadata.isNonGeographicCallingCode(callingCode)) {\n\t\t\t\tcountry = '001'\n\t\t\t}\n\t\t}\n\t}\n\n\treturn {\n\t\tcountry,\n\t\tcallingCode\n\t}\n}", "import Metadata from '../metadata.js'\n\n/**\n * Returns a list of countries that the phone number could potentially belong to.\n * @param {string} callingCode — Calling code.\n * @param {string} nationalNumber — National (significant) number.\n * @param {object} metadata — Metadata.\n * @return {string[]} A list of possible countries.\n */\nexport default function getPossibleCountriesForNumber(callingCode, nationalNumber, metadata) {\n\tconst _metadata = new Metadata(metadata)\n\tlet possibleCountries = _metadata.getCountryCodesForCallingCode(callingCode)\n\tif (!possibleCountries) {\n\t\treturn []\n\t}\n\treturn possibleCountries.filter((country) => {\n\t\treturn couldNationalNumberBelongToCountry(nationalNumber, country, metadata)\n\t})\n}\n\nfunction couldNationalNumberBelongToCountry(nationalNumber, country, metadataJson) {\n\tconst metadata = new Metadata(metadataJson)\n\tmetadata.selectNumberingPlan(country)\n\treturn metadata.numberingPlan.possibleLengths().indexOf(nationalNumber.length) >= 0\n}", "// The minimum length of the national significant number.\nexport const MIN_LENGTH_FOR_NSN = 2\n\n// The ITU says the maximum length should be 15,\n// but one can find longer numbers in Germany.\nexport const MAX_LENGTH_FOR_NSN = 17\n\n// The maximum length of the country calling code.\nexport const MAX_LENGTH_COUNTRY_CODE = 3\n\n// Digits accepted in phone numbers\n// (ascii, fullwidth, arabic-indic, and eastern arabic digits).\nexport const VALID_DIGITS = '0-9\\uFF10-\\uFF19\\u0660-\\u0669\\u06F0-\\u06F9'\n\n// `DASHES` will be right after the opening square bracket of the \"character class\"\nconst DASHES = '-\\u2010-\\u2015\\u2212\\u30FC\\uFF0D'\nconst SLASHES = '\\uFF0F/'\nconst DOTS = '\\uFF0E.'\nexport const WHITESPACE = ' \\u00A0\\u00AD\\u200B\\u2060\\u3000'\nconst BRACKETS = '()\\uFF08\\uFF09\\uFF3B\\uFF3D\\\\[\\\\]'\n// export const OPENING_BRACKETS = '(\\uFF08\\uFF3B\\\\\\['\nconst TILDES = '~\\u2053\\u223C\\uFF5E'\n\n// Regular expression of acceptable punctuation found in phone numbers. This\n// excludes punctuation found as a leading character only. This consists of dash\n// characters, white space characters, full stops, slashes, square brackets,\n// parentheses and tildes. Full-width variants are also present.\nexport const VALID_PUNCTUATION = `${DASHES}${SLASHES}${DOTS}${WHITESPACE}${BRACKETS}${TILDES}`\n\nexport const PLUS_CHARS = '+\\uFF0B'\n// const LEADING_PLUS_CHARS_PATTERN = new RegExp('^[' + PLUS_CHARS + ']+')", "import Metadata from '../metadata.js'\nimport { VALID_DIGITS } from '../constants.js'\n\nconst CAPTURING_DIGIT_PATTERN = new RegExp('([' + VALID_DIGITS + '])')\n\nexport default function stripIddPrefix(number, country, callingCode, metadataJson) {\n\tif (!country) {\n\t\treturn\n\t}\n\n\t// Get the IDD prefix pattern.\n\tconst metadata = new Metadata(metadataJson)\n\tmetadata.selectNumberingPlan(country || callingCode)\n\tconst IDDPrefixPattern = new RegExp(metadata.IDDPrefix())\n\n\t// Check if the number is IDD-prefixed.\n\tif (number.search(IDDPrefixPattern) !== 0) {\n\t\treturn\n\t}\n\n\t// Strip IDD prefix.\n\tnumber = number.slice(number.match(IDDPrefixPattern)[0].length)\n\n\t// If there're any digits after an IDD prefix,\n\t// then those digits are a country calling code.\n\t// Since no country code starts with a `0`,\n\t// the code below validates that the next digit (if present) is not `0`.\n\tconst matchedGroups = number.match(CAPTURING_DIGIT_PATTERN)\n\tif (matchedGroups && matchedGroups[1] != null && matchedGroups[1].length > 0) {\n\t\tif (matchedGroups[1] === '0') {\n\t\t\treturn\n\t\t}\n\t}\n\n\treturn number\n}", "/**\n * Strips any national prefix (such as 0, 1) present in a\n * (possibly incomplete) number provided.\n * Also strips a \"carrier code\", if it's present.\n * \"Carrier codes\" are only used in Colombia and Brazil,\n * and only when dialing within those countries from a mobile phone to a fixed line number.\n * Sometimes it won't actually strip national prefix\n * and will instead prepend some digits to the `number`:\n * for example, when number `2345678` is passed with `VI` country selected,\n * it will return `{ number: \"3402345678\" }`, because `340` area code is prepended.\n * @param {string} number — National number digits.\n * @param {object} metadata — Metadata with country selected.\n * @return {object} `{ nationalNumber: string, nationalPrefix: string? carrierCode: string? }`. Even if a national prefix was extracted, it's not necessarily present in the returned object, so don't rely on its presence in the returned object in order to find out whether a national prefix has been extracted or not.\n */\nexport default function extractNationalNumberFromPossiblyIncompleteNumber(number, metadata) {\n\tif (number && metadata.numberingPlan.nationalPrefixForParsing()) {\n\t\t// See METADATA.md for the description of\n\t\t// `national_prefix_for_parsing` and `national_prefix_transform_rule`.\n\t\t// Attempt to parse the first digits as a national prefix.\n\t\tconst prefixPattern = new RegExp('^(?:' + metadata.numberingPlan.nationalPrefixForParsing() + ')')\n\t\tconst prefixMatch = prefixPattern.exec(number)\n\t\tif (prefixMatch) {\n\t\t\tlet nationalNumber\n\t\t\tlet carrierCode\n\t\t\t// https://gitlab.com/catamphetamine/libphonenumber-js/-/blob/master/METADATA.md#national_prefix_for_parsing--national_prefix_transform_rule\n\t\t\t// If a `national_prefix_for_parsing` has any \"capturing groups\"\n\t\t\t// then it means that the national (significant) number is equal to\n\t\t\t// those \"capturing groups\" transformed via `national_prefix_transform_rule`,\n\t\t\t// and nothing could be said about the actual national prefix:\n\t\t\t// what is it and was it even there.\n\t\t\t// If a `national_prefix_for_parsing` doesn't have any \"capturing groups\",\n\t\t\t// then everything it matches is a national prefix.\n\t\t\t// To determine whether `national_prefix_for_parsing` matched any\n\t\t\t// \"capturing groups\", the value of the result of calling `.exec()`\n\t\t\t// is looked at, and if it has non-undefined values where there're\n\t\t\t// \"capturing groups\" in the regular expression, then it means\n\t\t\t// that \"capturing groups\" have been matched.\n\t\t\t// It's not possible to tell whether there'll be any \"capturing gropus\"\n\t\t\t// before the matching process, because a `national_prefix_for_parsing`\n\t\t\t// could exhibit both behaviors.\n\t\t\tconst capturedGroupsCount = prefixMatch.length - 1\n\t\t\tconst hasCapturedGroups = capturedGroupsCount > 0 && prefixMatch[capturedGroupsCount]\n\t\t\tif (metadata.nationalPrefixTransformRule() && hasCapturedGroups) {\n\t\t\t\tnationalNumber = number.replace(\n\t\t\t\t\tprefixPattern,\n\t\t\t\t\tmetadata.nationalPrefixTransformRule()\n\t\t\t\t)\n\t\t\t\t// If there's more than one captured group,\n\t\t\t\t// then carrier code is the second one.\n\t\t\t\tif (capturedGroupsCount > 1) {\n\t\t\t\t\tcarrierCode = prefixMatch[1]\n\t\t\t\t}\n\t\t\t}\n\t\t\t// If there're no \"capturing groups\",\n\t\t\t// or if there're \"capturing groups\" but no\n\t\t\t// `national_prefix_transform_rule`,\n\t\t\t// then just strip the national prefix from the number,\n\t\t\t// and possibly a carrier code.\n\t\t\t// Seems like there could be more.\n\t\t\telse {\n\t\t\t\t// `prefixBeforeNationalNumber` is the whole substring matched by\n\t\t\t\t// the `national_prefix_for_parsing` regular expression.\n\t\t\t\t// There seem to be no guarantees that it's just a national prefix.\n\t\t\t\t// For example, if there's a carrier code, it's gonna be a\n\t\t\t\t// part of `prefixBeforeNationalNumber` too.\n\t\t\t\tconst prefixBeforeNationalNumber = prefixMatch[0]\n\t\t\t\tnationalNumber = number.slice(prefixBeforeNationalNumber.length)\n\t\t\t\t// If there's at least one captured group,\n\t\t\t\t// then carrier code is the first one.\n\t\t\t\tif (hasCapturedGroups) {\n\t\t\t\t\tcarrierCode = prefixMatch[1]\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Tries to guess whether a national prefix was present in the input.\n\t\t\t// This is not something copy-pasted from Google's library:\n\t\t\t// they don't seem to have an equivalent for that.\n\t\t\t// So this isn't an \"officially approved\" way of doing something like that.\n\t\t\t// But since there seems no other existing method, this library uses it.\n\t\t\tlet nationalPrefix\n\t\t\tif (hasCapturedGroups) {\n\t\t\t\tconst possiblePositionOfTheFirstCapturedGroup = number.indexOf(prefixMatch[1])\n\t\t\t\tconst possibleNationalPrefix = number.slice(0, possiblePositionOfTheFirstCapturedGroup)\n\t\t\t\t// Example: an Argentinian (AR) phone number `0111523456789`.\n\t\t\t\t// `prefixMatch[0]` is `01115`, and `$1` is `11`,\n\t\t\t\t// and the rest of the phone number is `23456789`.\n\t\t\t\t// The national number is transformed via `9$1` to `91123456789`.\n\t\t\t\t// National prefix `0` is detected being present at the start.\n\t\t\t\t// if (possibleNationalPrefix.indexOf(metadata.numberingPlan.nationalPrefix()) === 0) {\n\t\t\t\tif (possibleNationalPrefix === metadata.numberingPlan.nationalPrefix()) {\n\t\t\t\t\tnationalPrefix = metadata.numberingPlan.nationalPrefix()\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tnationalPrefix = prefixMatch[0]\n\t\t\t}\n\t\t\treturn {\n\t\t\t\tnationalNumber,\n\t\t\t\tnationalPrefix,\n\t\t\t\tcarrierCode\n\t\t\t}\n\t\t}\n\t}\n return {\n \tnationalNumber: number\n }\n}", "import Metadata from '../metadata.js'\nimport getNumberType from './getNumberType.js'\n\n/**\n * Returns the exact country that a given national (significant) number belongs to\n * in case of ambiguity, i.e. when multiple countries share the same \"country calling code\".\n * @param {string} [nationalNumber]\n * @param {string[]} countries — A list of countries that share the same calling code.\n * @param {object} metadata — Metadata JSON.\n * @returns {string?} Returns the exact country this number belongs to, or `undefined` if the exact country couldn't be determined.\n */\nexport default function getCountryByNationalNumber(nationalNumber, countries, metadataJson) {\n\t// Create a new `metadata` instance because it will be selecting a `country`.\n\tconst metadata = new Metadata(metadataJson)\n\n\t// const matchingCountries = []\n\n\tfor (const country of countries) {\n\t\tmetadata.selectNumberingPlan(country)\n\t\t// \"Leading digits\" patterns are only defined for about 20% of all countries.\n\t\t// By definition, matching \"leading digits\" is a sufficient but not a necessary\n\t\t// condition for a phone number to belong to a country.\n\t\t// The point of \"leading digits\" check is that it's the fastest one to get a match.\n\t\t// https://gitlab.com/catamphetamine/libphonenumber-js/blob/master/METADATA.md#leading_digits\n\t\t// I'd suppose that \"leading digits\" patterns are mutually exclusive for different countries\n\t\t// because of the intended use of that feature.\n\t\tif (metadata.leadingDigits()) {\n\t\t\tif (nationalNumber &&\n\t\t\t\tnationalNumber.search(metadata.leadingDigits()) === 0) {\n\t\t\t\treturn country\n\t\t\t}\n\t\t}\n\t\t// Else perform full validation with all of those\n\t\t// fixed-line/mobile/etc regular expressions.\n\t\telse if (getNumberType({ phone: nationalNumber, country }, undefined, metadata.metadata)) {\n\t\t\t// When multiple countries share the same \"country calling code\",\n\t\t\t// type patterns aren't guaranteed to be unique among them.\n\t\t\t// For example, both `US` and `CA` have the same pattern for `toll_free` numbers.\n\t\t\t// https://gitlab.com/catamphetamine/libphonenumber-js/-/issues/103#note_1417147572\n\t\t\t//\n\t\t\t// That means that this `if` condition could be `true` for multiple countries from the list.\n\t\t\t// Currently, it just returns the first one, which is also the \"main\" country for the \"country calling code\".\n\t\t\t// In an example with `toll_free` numbers above, `\"US\"` would be returned even though\n\t\t\t// it could as well be `\"CA\"`.\n\t\t\t//\n\t\t\t// There was also a time when this attempted to be overly smart\n\t\t\t// and kept track of all such multiple matching countries\n\t\t\t// and then picked the one that matched the `defaultCountry`, if provided.\n\t\t\t// For example, with `toll_free` numbers above, and with `defaultCountry: \"CA\"`,\n\t\t\t// it would've returned `\"CA\"` instead of `\"US\"`.\n\t\t\t// Later it turned out that such \"overly smart\" behavior turned out to be just confusing,\n\t\t\t// so this \"overly smart\" country detection was reverted to returning the \"main\" country\n\t\t\t// for the \"country calling code\".\n\t\t\t// https://gitlab.com/catamphetamine/libphonenumber-js/-/issues/154\n\t\t\t//\n\t\t\treturn country\n\t\t\t//\n\t\t\t// The \"overly smart\" behavior code:\n\t\t\t//\n\t\t\t// if (defaultCountry) {\n\t\t\t// \tif (country === defaultCountry) {\n\t\t\t// \t\treturn country\n\t\t\t// \t} else {\n\t\t\t// \t\tmatchingCountries.push(country)\n\t\t\t// \t}\n\t\t\t// } else {\n\t\t\t// \treturn country\n\t\t\t// }\n\t\t}\n\t}\n\n\t// // Return the first (\"main\") one of the `matchingCountries`.\n\t// if (matchingCountries.length > 0) {\n\t// \treturn matchingCountries[0]\n\t// }\n}", "import getCountryByNationalNumber from './getCountryByNationalNumber.js'\n\nconst USE_NON_GEOGRAPHIC_COUNTRY_CODE = false\n\n/**\n * Returns the exact country that a given national (significant) number belongs to\n * in case of ambiguity, i.e. when multiple countries share the same \"country calling code\".\n * @param {string} [callingCode]\n * @param {string} [options.nationalNumber] — National (significant) number.\n * @param {Metadata} options.metadata — Metadata instance.\n * @returns {string?} Returns the most suitable country for this calling code and national (significant) number.\n */\nexport default function getCountryByCallingCode(callingCode, {\n\tnationalNumber,\n\tmetadata\n}) {\n\t/* istanbul ignore if */\n\tif (USE_NON_GEOGRAPHIC_COUNTRY_CODE) {\n\t\tif (metadata.isNonGeographicCallingCode(callingCode)) {\n\t\t\treturn '001'\n\t\t}\n\t}\n\tconst possibleCountries = metadata.getCountryCodesForCallingCode(callingCode)\n\tif (!possibleCountries) {\n\t\treturn\n\t}\n\t// If there's just one country corresponding to the country code,\n\t// then just return it, without further phone number digits validation.\n\tif (possibleCountries.length === 1) {\n\t\treturn possibleCountries[0]\n\t}\n\treturn getCountryByNationalNumber(nationalNumber, possibleCountries, metadata.metadata)\n}", "import extractNationalNumberFromPossiblyIncompleteNumber from './extractNationalNumberFromPossiblyIncompleteNumber.js'\nimport matchesEntirely from './matchesEntirely.js'\nimport checkNumberLength from './checkNumberLength.js'\nimport getCountryByCallingCode from './getCountryByCallingCode.js'\n\n/**\n * Strips national prefix and carrier code from a complete phone number.\n * The difference from the non-\"FromCompleteNumber\" function is that\n * it won't extract national prefix if the resultant number is too short\n * to be a complete number for the selected phone numbering plan.\n * @param {string} number — Complete phone number digits.\n * @param {string?} country — Specific country to use instead of the one that is pre-selected in the metadata instance.\n * @param {Metadata} metadata — Metadata instance with a selected numbering plan.\n * @return {object} `{ nationalNumber: string, carrierCode: string? }`.\n */\nexport default function extractNationalNumber(number, country, metadata) {\n\t// Parsing national prefixes and carrier codes\n\t// is only required for local phone numbers\n\t// but some people don't understand that\n\t// and sometimes write international phone numbers\n\t// with national prefixes (or maybe even carrier codes).\n\t// http://ucken.blogspot.ru/2016/03/trunk-prefixes-in-skype4b.html\n\t// Google's original library forgives such mistakes\n\t// and so does this library, because it has been requested:\n\t// https://github.com/catamphetamine/libphonenumber-js/issues/127\n\tconst {\n\t\tcarrierCode,\n\t\tnationalNumber\n\t} = extractNationalNumberFromPossiblyIncompleteNumber(\n\t\tnumber,\n\t\tmetadata\n\t)\n\n\tif (nationalNumber !== number) {\n\t\tif (!shouldHaveExtractedNationalPrefix(number, nationalNumber, metadata)) {\n\t\t\t// Don't strip the national prefix.\n\t\t\treturn { nationalNumber: number }\n\t\t}\n\t\t// Check the national (significant) number length after extracting national prefix and carrier code.\n\t\t// Legacy generated metadata (before `1.0.18`) didn't support the \"possible lengths\" feature,\n\t\t// so this `if` will only be executed with newer metadata.\n\t\tif (metadata.numberingPlan.possibleLengths()) {\n\t\t\t// If an exact `country` is not specified, attempt to detect it from the assumed national number.\n\t\t\tif (!country) {\n\t\t\t\tcountry = getCountryByCallingCode(metadata.numberingPlan.callingCode(), {\n\t\t\t\t\tnationalNumber,\n\t\t\t\t\tmetadata\n\t\t\t\t})\n\t\t\t}\n\n\t\t\t// The number remaining after stripping the national prefix and carrier code\n\t\t\t// should be long enough to have a possible length for the country.\n\t\t\t// Otherwise, don't strip the national prefix and carrier code,\n\t\t\t// since the original number could be a valid number.\n\t\t\t// This check has been copy-pasted \"as is\" from Google's original library:\n\t\t\t// https://github.com/google/libphonenumber/blob/876268eb1ad6cdc1b7b5bef17fc5e43052702d57/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java#L3236-L3250\n\t\t\t// It doesn't check for the \"possibility\" of the original `number`.\n\t\t\t// I guess it's fine not checking that one. It works as is anyway.\n\t\t\tif (!isPossibleIncompleteNationalNumber(nationalNumber, country, metadata)) {\n\t\t\t\t// Don't strip the national prefix.\n\t\t\t\treturn { nationalNumber: number }\n\t\t\t}\n\t\t}\n\t}\n\n\treturn { nationalNumber, carrierCode }\n}\n\n// In some countries, the same digit could be a national prefix\n// or a leading digit of a valid phone number.\n// For example, in Russia, national prefix is `8`,\n// and also `800 555 35 35` is a valid number\n// in which `8` is not a national prefix, but the first digit\n// of a national (significant) number.\n// Same's with Belarus:\n// `82004910060` is a valid national (significant) number,\n// but `2004910060` is not.\n// To support such cases (to prevent the code from always stripping\n// national prefix), a condition is imposed: a national prefix\n// is not extracted when the original number is \"viable\" and the\n// resultant number is not, a \"viable\" national number being the one\n// that matches `national_number_pattern`.\nfunction shouldHaveExtractedNationalPrefix(nationalNumberBefore, nationalNumberAfter, metadata) {\n\t// The equivalent in Google's code is:\n\t// https://github.com/google/libphonenumber/blob/e326fa1fc4283bb05eb35cb3c15c18f98a31af33/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java#L2969-L3004\n\tif (matchesEntirely(nationalNumberBefore, metadata.nationalNumberPattern()) &&\n\t\t!matchesEntirely(nationalNumberAfter, metadata.nationalNumberPattern())) {\n\t\treturn false\n\t}\n\t// This \"is possible\" national number (length) check has been commented out\n\t// because it's superceded by the (effectively) same check done in the\n\t// `extractNationalNumber()` function after it calls `shouldHaveExtractedNationalPrefix()`.\n\t// In other words, why run the same check twice if it could only be run once.\n\t// // Check the national (significant) number length after extracting national prefix and carrier code.\n\t// // Fixes a minor \"weird behavior\" bug: https://gitlab.com/catamphetamine/libphonenumber-js/-/issues/57\n\t// // (Legacy generated metadata (before `1.0.18`) didn't support the \"possible lengths\" feature).\n\t// if (metadata.possibleLengths()) {\n\t// \tif (isPossibleIncompleteNationalNumber(nationalNumberBefore, metadata) &&\n\t// \t\t!isPossibleIncompleteNationalNumber(nationalNumberAfter, metadata)) {\n\t// \t\treturn false\n\t// \t}\n\t// }\n\treturn true\n}\n\n/**\n * Tells if a given incomplete national number is possible or not.\n * @param {string} nationalNumber\n * @param {string?} country — Specific country rather than the one that is pre-selected in the metadata instance.\n * @param {Metadata} metadata — Metadata instance with a selected numbering plan.\n * @returns {boolean}\n */\nfunction isPossibleIncompleteNationalNumber(nationalNumber, country, metadata) {\n\tswitch (checkNumberLength(nationalNumber, country, metadata)) {\n\t\tcase 'TOO_SHORT':\n\t\tcase 'INVALID_LENGTH':\n\t\t// This library ignores \"local-only\" phone numbers (for simplicity).\n\t\t// See the readme for more info on what are \"local-only\" phone numbers.\n\t\t// case 'IS_POSSIBLE_LOCAL_ONLY':\n\t\t\treturn false\n\t\tdefault:\n\t\t\treturn true\n\t}\n}", "import Metadata from '../metadata.js'\nimport matchesEntirely from './matchesEntirely.js'\nimport extractNationalNumber from './extractNationalNumber.js'\nimport checkNumberLength from './checkNumberLength.js'\nimport getCountryCallingCode from '../getCountryCallingCode.js'\n\n/**\n * Sometimes some people incorrectly input international phone numbers\n * without the leading `+`. This function corrects such input.\n * @param {string} number — Phone number digits (only digits, no `+`).\n * @param {string} [country] — Exact country of the phone number.\n * @param {string} [defaultCountry]\n * @param {string} [defaultCallingCode]\n * @param {object} metadataJson\n * @return {object} `{ countryCallingCode: string?, number: string }`, where `countryCallingCode` is the calling code that was extracted from the input `number` string, and `number` is the originally passed `number` without the extracted calling code.\n */\nexport default function extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(\n\tnumber,\n\tcountry,\n\tdefaultCountry,\n\tdefaultCallingCode,\n\tmetadataJson\n) {\n\t// Validate arguments.\n\t// The `number` is known to be in a non-international form\n\t// because there's no leading \"+\" character.\n\t// Therefore, there must be either `country` or `defaultCountry` or `defaultCallingCode`.\n\t// Otherwise, there'd be no source for the calling code to search for in the `number`.\n\tif (!(country || defaultCountry || defaultCallingCode)) {\n\t\t// There's no source for the calling code to search for in the `number`.\n\t\treturn { number }\n\t}\n\n\tconst countryCallingCode = country || defaultCountry\n\t\t? getCountryCallingCode(country || defaultCountry, metadataJson)\n\t\t: defaultCallingCode\n\n\tif (number.indexOf(countryCallingCode) === 0) {\n\t\tconst metadata = new Metadata(metadataJson)\n\t\tmetadata.selectNumberingPlan(country || defaultCountry || defaultCallingCode)\n\n\t\tconst possibleShorterNumber = number.slice(countryCallingCode.length)\n\n\t\tconst {\n\t\t\tnationalNumber: possibleShorterNationalNumber,\n\t\t} = extractNationalNumber(\n\t\t\tpossibleShorterNumber,\n\t\t\tundefined,\n\t\t\tmetadata\n\t\t)\n\n\t\tconst {\n\t\t\tnationalNumber\n\t\t} = extractNationalNumber(\n\t\t\tnumber,\n\t\t\tundefined,\n\t\t\tmetadata\n\t\t)\n\n\t\t// If the number was not valid before but is valid now,\n\t\t// or if it was too long before, we consider the number\n\t\t// with the country calling code stripped to be a better result\n\t\t// and keep that instead.\n\t\t// For example, in Germany (+49), `49` is a valid area code,\n\t\t// so if a number starts with `49`, it could be both a valid\n\t\t// national German number or an international number without\n\t\t// a leading `+`.\n\t\tif (\n\t\t\t(\n\t\t\t\t!matchesEntirely(nationalNumber, metadata.nationalNumberPattern()) &&\n\t\t\t\tmatchesEntirely(possibleShorterNationalNumber, metadata.nationalNumberPattern())\n\t\t\t)\n\t\t\t||\n\t\t\tcheckNumberLength(nationalNumber, undefined, metadata) === 'TOO_LONG'\n\t\t) {\n\t\t\treturn {\n\t\t\t\tcountryCallingCode,\n\t\t\t\tnumber: possibleShorterNumber\n\t\t\t}\n\t\t}\n\t}\n\n\treturn { number }\n}", "import stripIddPrefix from './stripIddPrefix.js'\nimport extractCountryCallingCodeFromInternationalNumberWithoutPlusSign from './extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js'\nimport Metadata from '../metadata.js'\nimport { MAX_LENGTH_COUNTRY_CODE } from '../constants.js'\n\n/**\n * Attempts to extract a calling code from a phone number.\n * * If the phone number is found to be \"international\":\n * * It will attempt to identify the calling code part of it and whether that part is complete and valid.\n * * If the calling code part is complete and valid, it will return two properties:\n * that calling code part (without `+`) and the rest of the digits.\n * * Otherwise, i.e. if the calling code part is incomplete or invalid,\n * it will return an empty object.\n * * Otherwise, i.e. if the phone number is national, there's no callind code to extract\n * so it will just return the originally-passed `number` string as the only property.\n * @param {string} number — Phone number digits (possibly with a `+`).\n * @param {string} [country] — Country.\n * @param {string} [defaultCountry] — Default country.\n * @param {string} [defaultCallingCode] — Default calling code (some phone numbering plans are non-geographic).\n * @param {object} metadataJson\n * @return {object} `{ countryCallingCodeSource: string?, countryCallingCode: string?, number: string }`, where `countryCallingCodeSource` tells how the returned calling code was extracted (if it was extracted), `countryCallingCode` is the calling code that was extracted from the input `number` string, and `number` is the originally passed `number` without the extracted calling code (and without a `+`). If the calling code is present but incomplete or invalid, it will return an empty object.\n * @example\n * // Returns `{ countryCallingCode: \"1\", number: \"2133734253\" }`.\n * extractCountryCallingCode('2133734253', 'US', null, null, metadata)\n * extractCountryCallingCode('2133734253', null, 'US', null, metadata)\n * extractCountryCallingCode('2133734253', null, null, '1', metadata)\n * extractCountryCallingCode('+12133734253', null, null, null, metadata)\n * extractCountryCallingCode('+12133734253', null, 'RU', null, metadata)\n */\nexport default function extractCountryCallingCode(\n\tnumber,\n\tcountry,\n\tdefaultCountry,\n\tdefaultCallingCode,\n\tmetadataJson\n) {\n\tif (!number) {\n\t\treturn {}\n\t}\n\n\tlet isNumberWithIddPrefix\n\n\t// If this is not an international phone number,\n\t// then either extract an \"IDD\" prefix, or extract a\n\t// country calling code from a number by autocorrecting it\n\t// by prepending a leading `+` in cases when it starts\n\t// with the country calling code.\n\t// https://wikitravel.org/en/International_dialling_prefix\n\t// https://github.com/catamphetamine/libphonenumber-js/issues/376\n\tif (number[0] !== '+') {\n\t\t// Convert an \"out-of-country\" dialing phone number\n\t\t// to a proper international phone number.\n\t\tconst numberWithoutIDD = stripIddPrefix(number, country || defaultCountry, defaultCallingCode, metadataJson)\n\t\t// If an IDD prefix was stripped then\n\t\t// convert the number to international one\n\t\t// for subsequent parsing.\n\t\tif (numberWithoutIDD && numberWithoutIDD !== number) {\n\t\t\tisNumberWithIddPrefix = true\n\t\t\tnumber = '+' + numberWithoutIDD\n\t\t} else {\n\t\t\t// Check to see if the number starts with the country calling code\n\t\t\t// for the default country. If so, we remove the country calling code,\n\t\t\t// and do some checks on the validity of the number before and after.\n\t\t\t// https://github.com/catamphetamine/libphonenumber-js/issues/376\n\t\t\tif (country || defaultCountry || defaultCallingCode) {\n\t\t\t\tconst {\n\t\t\t\t\tcountryCallingCode,\n\t\t\t\t\tnumber: shorterNumber\n\t\t\t\t} = extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(\n\t\t\t\t\tnumber,\n\t\t\t\t\tcountry,\n\t\t\t\t\tdefaultCountry,\n\t\t\t\t\tdefaultCallingCode,\n\t\t\t\t\tmetadataJson\n\t\t\t\t)\n\t\t\t\tif (countryCallingCode) {\n\t\t\t\t\treturn {\n\t\t\t\t\t\tcountryCallingCodeSource: 'FROM_NUMBER_WITHOUT_PLUS_SIGN',\n\t\t\t\t\t\tcountryCallingCode,\n\t\t\t\t\t\tnumber: shorterNumber\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn {\n\t\t\t\t// No need to set it to `UNSPECIFIED`. It can be just `undefined`.\n\t\t\t\t// countryCallingCodeSource: 'UNSPECIFIED',\n\t\t\t\tnumber\n\t\t\t}\n\t\t}\n\t}\n\n\t// `number` can only be international at this point.\n\n\t// Fast abortion: country codes do not begin with a '0'\n\tif (number[1] === '0') {\n\t\treturn {}\n\t}\n\n\tconst metadata = new Metadata(metadataJson)\n\n\t// The thing with country phone codes\n\t// is that they are orthogonal to each other\n\t// i.e. there's no such country phone code A\n\t// for which country phone code B exists\n\t// where B starts with A.\n\t// Therefore, while scanning digits,\n\t// if a valid country code is found,\n\t// that means that it is the country code.\n\t//\n\tlet i = 2\n\twhile (i - 1 <= MAX_LENGTH_COUNTRY_CODE && i <= number.length) {\n\t\tconst countryCallingCode = number.slice(1, i)\n\t\tif (metadata.hasCallingCode(countryCallingCode)) {\n\t\t\tmetadata.selectNumberingPlan(countryCallingCode)\n\t\t\treturn {\n\t\t\t\tcountryCallingCodeSource: isNumberWithIddPrefix ? 'FROM_NUMBER_WITH_IDD' : 'FROM_NUMBER_WITH_PLUS_SIGN',\n\t\t\t\tcountryCallingCode,\n\t\t\t\tnumber: number.slice(i)\n\t\t\t}\n\t\t}\n\t\ti++\n\t}\n\n\treturn {}\n}\n\n// The possible values for the returned `countryCallingCodeSource` are:\n//\n// Copy-pasted from:\n// https://github.com/google/libphonenumber/blob/master/resources/phonenumber.proto\n//\n// // The source from which the country_code is derived. This is not set in the\n// // general parsing method, but in the method that parses and keeps raw_input.\n// // New fields could be added upon request.\n// enum CountryCodeSource {\n// // Default value returned if this is not set, because the phone number was\n// // created using parse, not parseAndKeepRawInput. hasCountryCodeSource will\n// // return false if this is the case.\n// UNSPECIFIED = 0;\n//\n// // The country_code is derived based on a phone number with a leading \"+\",\n// // e.g. the French number \"+33 1 42 68 53 00\".\n// FROM_NUMBER_WITH_PLUS_SIGN = 1;\n//\n// // The country_code is derived based on a phone number with a leading IDD,\n// // e.g. the French number \"011 33 1 42 68 53 00\", as it is dialled from US.\n// FROM_NUMBER_WITH_IDD = 5;\n//\n// // The country_code is derived based on a phone number without a leading\n// // \"+\", e.g. the French number \"33 1 42 68 53 00\" when defaultCountry is\n// // supplied as France.\n// FROM_NUMBER_WITHOUT_PLUS_SIGN = 10;\n//\n// // The country_code is derived NOT based on the phone number itself, but\n// // from the defaultCountry parameter provided in the parsing function by the\n// // clients. This happens mostly for numbers written in the national format\n// // (without country code). For example, this would be set when parsing the\n// // French number \"01 42 68 53 00\", when defaultCountry is supplied as\n// // France.\n// FROM_DEFAULT_COUNTRY = 20;\n// }", "import { VALID_PUNCTUATION } from '../constants.js'\n\n// Removes brackets and replaces dashes with spaces.\n//\n// E.g. \"(999) 111-22-33\" -> \"999 111 22 33\"\n//\n// For some reason Google's metadata contains `<intlFormat/>`s with brackets and dashes.\n// Meanwhile, there's no single opinion about using punctuation in international phone numbers.\n//\n// For example, Google's `<intlFormat/>` for USA is `+1 213-373-4253`.\n// And here's a quote from WikiPedia's \"North American Numbering Plan\" page:\n// https://en.wikipedia.org/wiki/North_American_Numbering_Plan\n//\n// \"The country calling code for all countries participating in the NANP is 1.\n// In international format, an NANP number should be listed as +1 301 555 01 00,\n// where 301 is an area code (Maryland).\"\n//\n// I personally prefer the international format without any punctuation.\n// For example, brackets are remnants of the old age, meaning that the\n// phone number part in brackets (so called \"area code\") can be omitted\n// if dialing within the same \"area\".\n// And hyphens were clearly introduced for splitting local numbers into memorizable groups.\n// For example, remembering \"5553535\" is difficult but \"555-35-35\" is much simpler.\n// Imagine a man taking a bus from home to work and seeing an ad with a phone number.\n// He has a couple of seconds to memorize that number until it passes by.\n// If it were spaces instead of hyphens the man wouldn't necessarily get it,\n// but with hyphens instead of spaces the grouping is more explicit.\n// I personally think that hyphens introduce visual clutter,\n// so I prefer replacing them with spaces in international numbers.\n// In the modern age all output is done on displays where spaces are clearly distinguishable\n// so hyphens can be safely replaced with spaces without losing any legibility.\n//\nexport default function applyInternationalSeparatorStyle(formattedNumber) {\n\treturn formattedNumber.replace(new RegExp(`[${VALID_PUNCTUATION}]+`, 'g'), ' ').trim()\n}", "import applyInternationalSeparatorStyle from './applyInternationalSeparatorStyle.js'\n\n// This was originally set to $1 but there are some countries for which the\n// first group is not used in the national pattern (e.g. Argentina) so the $1\n// group does not match correctly. Therefore, we use `\\d`, so that the first\n// group actually used in the pattern will be matched.\nexport const FIRST_GROUP_PATTERN = /(\\$\\d)/\n\nexport default function formatNationalNumberUsingFormat(\n\tnumber,\n\tformat,\n\t{\n\t\tuseInternationalFormat,\n\t\twithNationalPrefix,\n\t\tcarrierCode,\n\t\tmetadata\n\t}\n) {\n\tconst formattedNumber = number.replace(\n\t\tnew RegExp(format.pattern()),\n\t\tuseInternationalFormat\n\t\t\t? format.internationalFormat()\n\t\t\t: (\n\t\t\t\t// This library doesn't use `domestic_carrier_code_formatting_rule`,\n\t\t\t\t// because that one is only used when formatting phone numbers\n\t\t\t\t// for dialing from a mobile phone, and this is not a dialing library.\n\t\t\t\t// carrierCode && format.domesticCarrierCodeFormattingRule()\n\t\t\t\t// \t// First, replace the $CC in the formatting rule with the desired carrier code.\n\t\t\t\t// \t// Then, replace the $FG in the formatting rule with the first group\n\t\t\t\t// \t// and the carrier code combined in the appropriate way.\n\t\t\t\t// \t? format.format().replace(FIRST_GROUP_PATTERN, format.domesticCarrierCodeFormattingRule().replace('$CC', carrierCode))\n\t\t\t\t// \t: (\n\t\t\t\t// \t\twithNationalPrefix && format.nationalPrefixFormattingRule()\n\t\t\t\t// \t\t\t? format.format().replace(FIRST_GROUP_PATTERN, format.nationalPrefixFormattingRule())\n\t\t\t\t// \t\t\t: format.format()\n\t\t\t\t// \t)\n\t\t\t\twithNationalPrefix && format.nationalPrefixFormattingRule()\n\t\t\t\t\t? format.format().replace(FIRST_GROUP_PATTERN, format.nationalPrefixFormattingRule())\n\t\t\t\t\t: format.format()\n\t\t\t)\n\t)\n\tif (useInternationalFormat) {\n\t\treturn applyInternationalSeparatorStyle(formattedNumber)\n\t}\n\treturn formattedNumber\n}", "import Metadata from '../metadata.js'\n\n/**\n * Pattern that makes it easy to distinguish whether a region has a single\n * international dialing prefix or not. If a region has a single international\n * prefix (e.g. 011 in USA), it will be represented as a string that contains\n * a sequence of ASCII digits, and possibly a tilde, which signals waiting for\n * the tone. If there are multiple available international prefixes in a\n * region, they will be represented as a regex string that always contains one\n * or more characters that are not ASCII digits or a tilde.\n */\nconst SINGLE_IDD_PREFIX_REG_EXP = /^[\\d]+(?:[~\\u2053\\u223C\\uFF5E][\\d]+)?$/\n\n// If the `country` supports IDD calling, it returns a preferred IDD prefix.\n// If the `country` doesn't support IDD calling, it returns `undefined`.\nexport default function getIddPrefix(country, callingCode, metadata) {\n\tconst countryMetadata = new Metadata(metadata)\n\tcountryMetadata.selectNumberingPlan(country || callingCode)\n\tif (countryMetadata.defaultIDDPrefix()) {\n\t\treturn countryMetadata.defaultIDDPrefix()\n\t}\n\tif (SINGLE_IDD_PREFIX_REG_EXP.test(countryMetadata.IDDPrefix())) {\n\t\treturn countryMetadata.IDDPrefix()\n\t}\n}\n", "import { VALID_DIGITS } from '../../constants.js'\n\n// The RFC 3966 format for extensions.\nconst RFC3966_EXTN_PREFIX = ';ext='\n\n/**\n * Helper method for constructing regular expressions for parsing. Creates\n * an expression that captures up to max_length digits.\n * @return {string} RegEx pattern to capture extension digits.\n */\nconst getExtensionDigitsPattern = (maxLength) => `([${VALID_DIGITS}]{1,${maxLength}})`\n\n/**\n * Helper initialiser method to create the regular-expression pattern to match\n * extensions.\n * Copy-pasted from Google's `libphonenumber`:\n * https://github.com/google/libphonenumber/blob/55b2646ec9393f4d3d6661b9c82ef9e258e8b829/javascript/i18n/phonenumbers/phonenumberutil.js#L759-L766\n * @return {string} RegEx pattern to capture extensions.\n */\nexport default function createExtensionPattern(purpose) {\n\t// We cap the maximum length of an extension based on the ambiguity of the way\n\t// the extension is prefixed. As per ITU, the officially allowed length for\n\t// extensions is actually 40, but we don't support this since we haven't seen real\n\t// examples and this introduces many false interpretations as the extension labels\n\t// are not standardized.\n\t/** @type {string} */\n\tvar extLimitAfterExplicitLabel = '20';\n\t/** @type {string} */\n\tvar extLimitAfterLikelyLabel = '15';\n\t/** @type {string} */\n\tvar extLimitAfterAmbiguousChar = '9';\n\t/** @type {string} */\n\tvar extLimitWhenNotSure = '6';\n\n\t/** @type {string} */\n\tvar possibleSeparatorsBetweenNumberAndExtLabel = \"[ \\u00A0\\\\t,]*\";\n\t// Optional full stop (.) or colon, followed by zero or more spaces/tabs/commas.\n\t/** @type {string} */\n\tvar possibleCharsAfterExtLabel = \"[:\\\\.\\uFF0E]?[ \\u00A0\\\\t,-]*\";\n\t/** @type {string} */\n\tvar optionalExtnSuffix = \"#?\";\n\n\t// Here the extension is called out in more explicit way, i.e mentioning it obvious\n\t// patterns like \"ext.\".\n\t/** @type {string} */\n\tvar explicitExtLabels =\n\t \"(?:e?xt(?:ensi(?:o\\u0301?|\\u00F3))?n?|\\uFF45?\\uFF58\\uFF54\\uFF4E?|\\u0434\\u043E\\u0431|anexo)\";\n\t// One-character symbols that can be used to indicate an extension, and less\n\t// commonly used or more ambiguous extension labels.\n\t/** @type {string} */\n\tvar ambiguousExtLabels = \"(?:[x\\uFF58#\\uFF03~\\uFF5E]|int|\\uFF49\\uFF4E\\uFF54)\";\n\t// When extension is not separated clearly.\n\t/** @type {string} */\n\tvar ambiguousSeparator = \"[- ]+\";\n\t// This is the same as possibleSeparatorsBetweenNumberAndExtLabel, but not matching\n\t// comma as extension label may have it.\n\t/** @type {string} */\n\tvar possibleSeparatorsNumberExtLabelNoComma = \"[ \\u00A0\\\\t]*\";\n\t// \",,\" is commonly used for auto dialling the extension when connected. First\n\t// comma is matched through possibleSeparatorsBetweenNumberAndExtLabel, so we do\n\t// not repeat it here. Semi-colon works in Iphone and Android also to pop up a\n\t// button with the extension number following.\n\t/** @type {string} */\n\tvar autoDiallingAndExtLabelsFound = \"(?:,{2}|;)\";\n\n\t/** @type {string} */\n\tvar rfcExtn = RFC3966_EXTN_PREFIX\n\t + getExtensionDigitsPattern(extLimitAfterExplicitLabel);\n\t/** @type {string} */\n\tvar explicitExtn = possibleSeparatorsBetweenNumberAndExtLabel + explicitExtLabels\n\t + possibleCharsAfterExtLabel\n\t + getExtensionDigitsPattern(extLimitAfterExplicitLabel)\n\t + optionalExtnSuffix;\n\t/** @type {string} */\n\tvar ambiguousExtn = possibleSeparatorsBetweenNumberAndExtLabel + ambiguousExtLabels\n\t + possibleCharsAfterExtLabel\n\t+ getExtensionDigitsPattern(extLimitAfterAmbiguousChar)\n\t+ optionalExtnSuffix;\n\t/** @type {string} */\n\tvar americanStyleExtnWithSuffix = ambiguousSeparator\n\t+ getExtensionDigitsPattern(extLimitWhenNotSure) + \"#\";\n\n\t/** @type {string} */\n\tvar autoDiallingExtn = possibleSeparatorsNumberExtLabelNoComma\n\t + autoDiallingAndExtLabelsFound + possibleCharsAfterExtLabel\n\t + getExtensionDigitsPattern(extLimitAfterLikelyLabel)\n\t+ optionalExtnSuffix;\n\t/** @type {string} */\n\tvar onlyCommasExtn = possibleSeparatorsNumberExtLabelNoComma\n\t + \"(?:,)+\" + possibleCharsAfterExtLabel\n\t + getExtensionDigitsPattern(extLimitAfterAmbiguousChar)\n\t + optionalExtnSuffix;\n\n\t// The first regular expression covers RFC 3966 format, where the extension is added\n\t// using \";ext=\". The second more generic where extension is mentioned with explicit\n\t// labels like \"ext:\". In both the above cases we allow more numbers in extension than\n\t// any other extension labels. The third one captures when single character extension\n\t// labels or less commonly used labels are used. In such cases we capture fewer\n\t// extension digits in order to reduce the chance of falsely interpreting two\n\t// numbers beside each other as a number + extension. The fourth one covers the\n\t// special case of American numbers where the extension is written with a hash\n\t// at the end, such as \"- 503#\". The fifth one is exclusively for extension\n\t// autodialling formats which are used when dialling and in this case we accept longer\n\t// extensions. The last one is more liberal on the number of commas that acts as\n\t// extension labels, so we have a strict cap on the number of digits in such extensions.\n\treturn rfcExtn + \"|\"\n\t + explicitExtn + \"|\"\n\t + ambiguousExtn + \"|\"\n\t + americanStyleExtnWithSuffix + \"|\"\n\t + autoDiallingExtn + \"|\"\n\t + onlyCommasExtn;\n}", "import {\n\tMIN_LENGTH_FOR_NSN,\n\tVALID_DIGITS,\n\tVALID_PUNCTUATION,\n\tPLUS_CHARS\n} from '../constants.js'\n\nimport createExtensionPattern from './extension/createExtensionPattern.js'\n\n// Regular expression of viable phone numbers. This is location independent.\n// Checks we have at least three leading digits, and only valid punctuation,\n// alpha characters and digits in the phone number. Does not include extension\n// data. The symbol 'x' is allowed here as valid punctuation since it is often\n// used as a placeholder for carrier codes, for example in Brazilian phone\n// numbers. We also allow multiple '+' characters at the start.\n//\n// Corresponds to the following:\n// [digits]{minLengthNsn}|\n// plus_sign*\n// (([punctuation]|[star])*[digits]){3,}([punctuation]|[star]|[digits]|[alpha])*\n//\n// The first reg-ex is to allow short numbers (two digits long) to be parsed if\n// they are entered as \"15\" etc, but only if there is no punctuation in them.\n// The second expression restricts the number of digits to three or more, but\n// then allows them to be in international form, and to have alpha-characters\n// and punctuation. We split up the two reg-exes here and combine them when\n// creating the reg-ex VALID_PHONE_NUMBER_PATTERN itself so we can prefix it\n// with ^ and append $ to each branch.\n//\n// \"Note VALID_PUNCTUATION starts with a -,\n// so must be the first in the range\" (c) Google devs.\n// (wtf did they mean by saying that; probably nothing)\n//\nconst MIN_LENGTH_PHONE_NUMBER_PATTERN = '[' + VALID_DIGITS + ']{' + MIN_LENGTH_FOR_NSN + '}'\n//\n// And this is the second reg-exp:\n// (see MIN_LENGTH_PHONE_NUMBER_PATTERN for a full description of this reg-exp)\n//\nexport const VALID_PHONE_NUMBER =\n\t'[' + PLUS_CHARS + ']{0,1}' +\n\t'(?:' +\n\t\t'[' + VALID_PUNCTUATION + ']*' +\n\t\t'[' + VALID_DIGITS + ']' +\n\t'){3,}' +\n\t'[' +\n\t\tVALID_PUNCTUATION +\n\t\tVALID_DIGITS +\n\t']*'\n\n// This regular expression isn't present in Google's `libphonenumber`\n// and is only used to determine whether the phone number being input\n// is too short for it to even consider it a \"valid\" number.\n// This is just a way to differentiate between a really invalid phone\n// number like \"abcde\" and a valid phone number that a user has just\n// started inputting, like \"+1\" or \"1\": both these cases would be\n// considered `NOT_A_NUMBER` by Google's `libphonenumber`, but this\n// library can provide a more detailed error message — whether it's\n// really \"not a number\", or is it just a start of a valid phone number.\nconst VALID_PHONE_NUMBER_START_REG_EXP = new RegExp(\n\t'^' +\n\t'[' + PLUS_CHARS + ']{0,1}' +\n\t'(?:' +\n\t\t'[' + VALID_PUNCTUATION + ']*' +\n\t\t'[' + VALID_DIGITS + ']' +\n\t'){1,2}' +\n\t'$'\n, 'i')\n\nexport const VALID_PHONE_NUMBER_WITH_EXTENSION =\n\tVALID_PHONE_NUMBER +\n\t// Phone number extensions\n\t'(?:' + createExtensionPattern() + ')?'\n\n// The combined regular expression for valid phone numbers:\n//\nconst VALID_PHONE_NUMBER_PATTERN = new RegExp(\n\t// Either a short two-digit-only phone number\n\t'^' +\n\t\tMIN_LENGTH_PHONE_NUMBER_PATTERN +\n\t'$' +\n\t'|' +\n\t// Or a longer fully parsed phone number (min 3 characters)\n\t'^' +\n\t\tVALID_PHONE_NUMBER_WITH_EXTENSION +\n\t'$'\n, 'i')\n\n// Checks to see if the string of characters could possibly be a phone number at\n// all. At the moment, checks to see that the string begins with at least 2\n// digits, ignoring any punctuation commonly found in phone numbers. This method\n// does not require the number to be normalized in advance - but does assume\n// that leading non-number symbols have been removed, such as by the method\n// `extract_possible_number`.\n//\nexport default function isViablePhoneNumber(number) {\n\treturn number.length >= MIN_LENGTH_FOR_NSN &&\n\t\tVALID_PHONE_NUMBER_PATTERN.test(number)\n}\n\n// This is just a way to differentiate between a really invalid phone\n// number like \"abcde\" and a valid phone number that a user has just\n// started inputting, like \"+1\" or \"1\": both these cases would be\n// considered `NOT_A_NUMBER` by Google's `libphonenumber`, but this\n// library can provide a more detailed error message — whether it's\n// really \"not a number\", or is it just a start of a valid phone number.\nexport function isViablePhoneNumberStart(number) {\n\treturn VALID_PHONE_NUMBER_START_REG_EXP.test(number)\n}", "import isViablePhoneNumber from './isViablePhoneNumber.js'\n\n// https://www.ietf.org/rfc/rfc3966.txt\n\n/**\n * @param {string} text - Phone URI (RFC 3966).\n * @return {object} `{ ?number, ?ext }`.\n */\nexport function parseRFC3966(text) {\n\tlet number\n\tlet ext\n\n\t// Replace \"tel:\" with \"tel=\" for parsing convenience.\n\ttext = text.replace(/^tel:/, 'tel=')\n\n\tfor (const part of text.split(';')) {\n\t\tconst [name, value] = part.split('=')\n\t\tswitch (name) {\n\t\t\tcase 'tel':\n\t\t\t\tnumber = value\n\t\t\t\tbreak\n\t\t\tcase 'ext':\n\t\t\t\text = value\n\t\t\t\tbreak\n\t\t\tcase 'phone-context':\n\t\t\t\t// Only \"country contexts\" are supported.\n\t\t\t\t// \"Domain contexts\" are ignored.\n\t\t\t\tif (value[0] === '+') {\n\t\t\t\t\tnumber = value + number\n\t\t\t\t}\n\t\t\t\tbreak\n\t\t}\n\t}\n\n\t// If the phone number is not viable, then abort.\n\tif (!isViablePhoneNumber(number)) {\n\t\treturn {}\n\t}\n\n\tconst result = { number }\n\tif (ext) {\n\t\tresult.ext = ext\n\t}\n\treturn result\n}\n\n/**\n * @param {object} - `{ ?number, ?extension }`.\n * @return {string} Phone URI (RFC 3966).\n */\nexport function formatRFC3966({ number, ext }) {\n\tif (!number) {\n\t\treturn ''\n\t}\n\tif (number[0] !== '+') {\n\t\tthrow new Error(`\"formatRFC3966()\" expects \"number\" to be in E.164 format.`)\n\t}\n\treturn `tel:${number}${ext ? ';ext=' + ext : ''}`\n}", "// This is a port of Google Android `libphonenumber`'s\n// `phonenumberutil.js` of December 31th, 2018.\n//\n// https://github.com/googlei18n/libphonenumber/commits/master/javascript/i18n/phonenumbers/phonenumberutil.js\n\nimport matchesEntirely from './helpers/matchesEntirely.js'\nimport formatNationalNumberUsingFormat from './helpers/formatNationalNumberUsingFormat.js'\nimport Metadata, { getCountryCallingCode } from './metadata.js'\nimport getIddPrefix from './helpers/getIddPrefix.js'\nimport { formatRFC3966 } from './helpers/RFC3966.js'\n\nconst DEFAULT_OPTIONS = {\n\tformatExtension: (formattedNumber, extension, metadata) => `${formattedNumber}${metadata.ext()}${extension}`\n}\n\n/**\n * Formats a phone number.\n *\n * format(phoneNumberInstance, 'INTERNATIONAL', { ..., v2: true }, metadata)\n * format(phoneNumberInstance, 'NATIONAL', { ..., v2: true }, metadata)\n *\n * format({ phone: '8005553535', country: 'RU' }, 'INTERNATIONAL', { ... }, metadata)\n * format({ phone: '8005553535', country: 'RU' }, 'NATIONAL', undefined, metadata)\n *\n * @param {object|PhoneNumber} input — If `options.v2: true` flag is passed, the `input` should be a `PhoneNumber` instance. Otherwise, it should be an object of shape `{ phone: '...', country: '...' }`.\n * @param {string} format\n * @param {object} [options]\n * @param {object} metadataJson\n * @return {string}\n */\nexport default function formatNumber(input, format, options, metadataJson) {\n\t// Apply default options.\n\tif (options) {\n\t\t// Using ES6 \"rest spread\" syntax here didn't work with `babel`/`istanbul`\n\t\t// for some weird reason: this line of code would cause the code coverage\n\t\t// to show as not 100%. That's because `babel`/`istanbul`, for some weird reason,\n\t\t// apparently doesn't know how to properly exclude Babel polyfills from code coverage.\n\t\t//\n\t\t// options = { ...DEFAULT_OPTIONS, ...options }\n\t\t//\n\t\toptions = merge({}, DEFAULT_OPTIONS, options)\n\t} else {\n\t\toptions = DEFAULT_OPTIONS\n\t}\n\n\tconst metadata = new Metadata(metadataJson)\n\n\t// Normally, the `input` object is supposed to be a `PhoneNumber` class instance.\n\t// Also, according to the `PhoneNumber` class source code, `country` can't be \"001\".\n\t// It means that normally `input.country` or `input.countryCallingCode` is supposed\n\t// to be present because either of the two is always required to exist in a `PhoneNumber` instance.\n\t// This means that realistically, it's gonna step into either the first `if`\n\t// or the following `else if`, and normally it won't even reach the legacy-compatibility\n\t// `else return input.phone || ''` part.\n\t// So normally, it won't ever return an empty string here.\n\tif (input.country && input.country !== '001') {\n\t\t// Validate `input.country`.\n\t\tif (!metadata.hasCountry(input.country)) {\n\t\t\tthrow new Error(`Unknown country: ${input.country}`)\n\t\t}\n\t\tmetadata.selectNumberingPlan(input.country)\n\t}\n\telse if (input.countryCallingCode) {\n\t\tmetadata.selectNumberingPlan(input.countryCallingCode)\n\t}\n\telse return input.phone || ''\n\n\tconst countryCallingCode = metadata.countryCallingCode()\n\n\tconst nationalNumber = options.v2 ? input.nationalNumber : input.phone\n\n\t// This variable should have been declared inside `case`s\n\t// but Babel has a bug and it says \"duplicate variable declaration\".\n\tlet number\n\n\tswitch (format) {\n\t\tcase 'NATIONAL':\n\t\t\t// Normally, the `input` object is supposed to be a `PhoneNumber` class instance,\n\t\t\t// and a `PhoneNumber` class instance is always required to have a `nationalNumber`.\n\t\t\t// This means that the `if (!nationalNumber)` below is just for legacy-compatibility\n\t\t\t// and it normally can't really happen, so normally it won't ever return an empty string here.\n\t\t\tif (!nationalNumber) {\n\t\t\t\treturn ''\n\t\t\t}\n\t\t\tnumber = formatNationalNumber(nationalNumber, input.carrierCode, 'NATIONAL', metadata, options)\n\t\t\treturn addExtension(number, input.ext, metadata, options.formatExtension)\n\n\t\tcase 'INTERNATIONAL':\n\t\t\t// Legacy argument support.\n\t\t\t// (`{ country: ..., phone: '' }`)\n\t\t\tif (!nationalNumber) {\n\t\t\t\treturn `+${countryCallingCode}`\n\t\t\t}\n\t\t\tnumber = formatNationalNumber(nationalNumber, null, 'INTERNATIONAL', metadata, options)\n\t\t\tnumber = `+${countryCallingCode} ${number}`\n\t\t\treturn addExtension(number, input.ext, metadata, options.formatExtension)\n\n\t\tcase 'E.164':\n\t\t\t// `E.164` doesn't define \"phone number extensions\".\n\t\t\treturn `+${countryCallingCode}${nationalNumber}`\n\n\t\tcase 'RFC3966':\n\t\t\treturn formatRFC3966({\n\t\t\t\tnumber: `+${countryCallingCode}${nationalNumber}`,\n\t\t\t\text: input.ext\n\t\t\t})\n\n\t\t// For reference, here's Google's IDD formatter:\n\t\t// https://github.com/google/libphonenumber/blob/32719cf74e68796788d1ca45abc85dcdc63ba5b9/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java#L1546\n\t\t// Not saying that this IDD formatter replicates it 1:1, but it seems to work.\n\t\t// Who would even need to format phone numbers in IDD format anyway?\n\t\tcase 'IDD':\n\t\t\t// If the required `fromCountry` parameter is not passed, it will return `undefined`.\n\t\t\tif (!options.fromCountry) {\n\t\t\t\treturn\n\t\t\t\t// throw new Error('`fromCountry` option not passed for IDD-prefixed formatting.')\n\t\t\t}\n\t\t\tconst formattedNumber = formatIDD(\n\t\t\t\tnationalNumber,\n\t\t\t\tinput.carrierCode,\n\t\t\t\tcountryCallingCode,\n\t\t\t\toptions.fromCountry,\n\t\t\t\tmetadata\n\t\t\t)\n\t\t\t// If the country of the phone number doesn't support IDD calling, it will return `undefined`.\n\t\t\tif (!formattedNumber) {\n\t\t\t\treturn\n\t\t\t}\n\t\t\treturn addExtension(formattedNumber, input.ext, metadata, options.formatExtension)\n\n\t\tdefault:\n\t\t\tthrow new Error(`Unknown \"format\" argument passed to \"formatNumber()\": \"${format}\"`)\n\t}\n}\n\nfunction formatNationalNumber(number, carrierCode, formatAs, metadata, options) {\n\tconst format = chooseFormatForNumber(metadata.formats(), number)\n\tif (!format) {\n\t\treturn number\n\t}\n\treturn formatNationalNumberUsingFormat(\n\t\tnumber,\n\t\tformat,\n\t\t{\n\t\t\tuseInternationalFormat: formatAs === 'INTERNATIONAL',\n\t\t\twithNationalPrefix: format.nationalPrefixIsOptionalWhenFormattingInNationalFormat() && (options && options.nationalPrefix === false) ? false : true,\n\t\t\tcarrierCode,\n\t\t\tmetadata\n\t\t}\n\t)\n}\n\nexport function chooseFormatForNumber(availableFormats, nationalNumber) {\n\t// Using a `for ... of` loop here didn't work with `babel`/`istanbul`:\n\t// for some weird reason, it showed code coverage less than 100%.\n\t// That's because `babel`/`istanbul`, for some weird reason,\n\t// apparently doesn't know how to properly exclude Babel polyfills from code coverage.\n\t//\n\t// for (const format of availableFormats) { ... }\n\t//\n\treturn pickFirstMatchingElement(availableFormats, (format) => {\n\t\t// Validate leading digits.\n\t\t// The test case for \"else path\" could be found by searching for\n\t\t// \"format.leadingDigitsPatterns().length === 0\".\n\t\tif (format.leadingDigitsPatterns().length > 0) {\n\t\t\t// The last leading_digits_pattern is used here, as it is the most detailed\n\t\t\tconst lastLeadingDigitsPattern = format.leadingDigitsPatterns()[format.leadingDigitsPatterns().length - 1]\n\t\t\t// If leading digits don't match then move on to the next phone number format\n\t\t\tif (nationalNumber.search(lastLeadingDigitsPattern) !== 0) {\n\t\t\t\treturn false\n\t\t\t}\n\t\t}\n\t\t// Check that the national number matches the phone number format regular expression\n\t\treturn matchesEntirely(nationalNumber, format.pattern())\n\t})\n}\n\nfunction addExtension(formattedNumber, ext, metadata, formatExtension) {\n\treturn ext ? formatExtension(formattedNumber, ext, metadata) : formattedNumber\n}\n\nfunction formatIDD(\n\tnationalNumber,\n\tcarrierCode,\n\tcountryCallingCode,\n\tfromCountry,\n\tmetadata\n) {\n\tconst fromCountryCallingCode = getCountryCallingCode(fromCountry, metadata.metadata)\n\t// When calling within the same country calling code.\n\tif (fromCountryCallingCode === countryCallingCode) {\n\t\tconst formattedNumber = formatNationalNumber(nationalNumber, carrierCode, 'NATIONAL', metadata)\n\t\t// For NANPA regions, return the national format for these regions\n\t\t// but prefix it with the country calling code.\n\t\tif (countryCallingCode === '1') {\n\t\t\treturn countryCallingCode + ' ' + formattedNumber\n\t\t}\n\t\t// If regions share a country calling code, the country calling code need\n\t\t// not be dialled. This also applies when dialling within a region, so this\n\t\t// if clause covers both these cases. Technically this is the case for\n\t\t// dialling from La Reunion to other overseas departments of France (French\n\t\t// Guiana, Martinique, Guadeloupe), but not vice versa - so we don't cover\n\t\t// this edge case for now and for those cases return the version including\n\t\t// country calling code. Details here:\n\t\t// http://www.petitfute.com/voyage/225-info-pratiques-reunion\n\t\t//\n\t\treturn formattedNumber\n\t}\n\tconst iddPrefix = getIddPrefix(fromCountry, undefined, metadata.metadata)\n\tif (iddPrefix) {\n\t\treturn `${iddPrefix} ${countryCallingCode} ${formatNationalNumber(nationalNumber, null, 'INTERNATIONAL', metadata)}`\n\t}\n}\n\nfunction merge(...objects) {\n\tlet i = 1\n\twhile (i < objects.length) {\n\t\tif (objects[i]) {\n\t\t\tfor (const key in objects[i]) {\n\t\t\t\tobjects[0][key] = objects[i][key]\n\t\t\t}\n\t\t}\n\t\ti++\n\t}\n\treturn objects[0]\n}\n\nfunction pickFirstMatchingElement(elements, testFunction) {\n\tlet i = 0\n\twhile (i < elements.length) {\n\t\tif (testFunction(elements[i])) {\n\t\t\treturn elements[i]\n\t\t}\n\t\ti++\n\t}\n}", "import Metadata, { validateMetadata } from './metadata.js'\nimport isPossibleNumber from './isPossible.js'\nimport isValidNumber from './isValid.js'\nimport getNumberType from './helpers/getNumberType.js'\nimport getCountryAndCallingCodeFromOneOfThem from './helpers/getCountryAndCallingCodeFromOneOfThem.js'\nimport getPossibleCountriesForNumber from './helpers/getPossibleCountriesForNumber.js'\nimport extractCountryCallingCode from './helpers/extractCountryCallingCode.js'\nimport isObject from './helpers/isObject.js'\nimport formatNumber from './format.js'\n\nconst USE_NON_GEOGRAPHIC_COUNTRY_CODE = false\n\nexport default class PhoneNumber {\n\t/**\n\t * @param {string} countryOrCountryCallingCode\n\t * @param {string} nationalNumber\n\t * @param {object} metadata — Metadata JSON\n\t * @return {PhoneNumber}\n\t */\n\tconstructor(countryOrCountryCallingCode, nationalNumber, metadata) {\n\t\t// Validate `countryOrCountryCallingCode` argument.\n\t\tif (!countryOrCountryCallingCode) {\n\t\t\tthrow new TypeError('First argument is required')\n\t\t}\n\t\tif (typeof countryOrCountryCallingCode !== 'string') {\n\t\t\tthrow new TypeError('First argument must be a string')\n\t\t}\n\n\t\t// In case of public API use: `constructor(number, metadata)`.\n\t\t// Transform the arguments from `constructor(number, metadata)` to\n\t\t// `constructor(countryOrCountryCallingCode, nationalNumber, metadata)`.\n\t\tif (countryOrCountryCallingCode[0] === '+' && !nationalNumber) {\n\t\t\tthrow new TypeError('`metadata` argument not passed')\n\t\t}\n\t\tif (isObject(nationalNumber) && isObject(nationalNumber.countries)) {\n\t\t\tmetadata = nationalNumber\n\t\t\tconst e164Number = countryOrCountryCallingCode\n\t\t\tif (!E164_NUMBER_REGEXP.test(e164Number)) {\n\t\t\t\tthrow new Error('Invalid `number` argument passed: must consist of a \"+\" followed by digits')\n\t\t\t}\n\t\t\tconst { countryCallingCode, number } = extractCountryCallingCode(e164Number, undefined, undefined, undefined, metadata)\n\t\t\tnationalNumber = number\n\t\t\tcountryOrCountryCallingCode = countryCallingCode\n\t\t\tif (!nationalNumber) {\n\t\t\t\tthrow new Error('Invalid `number` argument passed: too short')\n\t\t\t}\n\t\t}\n\n\t\t// Validate `nationalNumber` argument.\n\t\tif (!nationalNumber) {\n\t\t\tthrow new TypeError('`nationalNumber` argument is required')\n\t\t}\n\t\tif (typeof nationalNumber !== 'string') {\n\t\t\tthrow new TypeError('`nationalNumber` argument must be a string')\n\t\t}\n\n\t\t// Validate `metadata` argument.\n\t\tvalidateMetadata(metadata)\n\n\t\t// Initialize properties.\n\t\tconst { country, callingCode: countryCallingCode } = getCountryAndCallingCodeFromOneOfThem(\n\t\t\tcountryOrCountryCallingCode,\n\t\t\tmetadata\n\t\t)\n\t\tthis.country = country\n\t\tthis.countryCallingCode = countryCallingCode\n\t\tthis.nationalNumber = nationalNumber\n\t\tthis.number = '+' + this.countryCallingCode + this.nationalNumber\n\t\t// Exclude `metadata` property output from `PhoneNumber.toString()`\n\t\t// so that it doesn't clutter the console output of Node.js.\n\t\t// Previously, when Node.js did `console.log(new PhoneNumber(...))`,\n\t\t// it would output the whole internal structure of the `metadata` object.\n\t\tthis.getMetadata = () => metadata\n\t}\n\n\tsetExt(ext) {\n\t\tthis.ext = ext\n\t}\n\n\tgetPossibleCountries() {\n\t\tif (this.country) {\n\t\t\treturn [this.country]\n\t\t}\n\t\treturn getPossibleCountriesForNumber(\n\t\t\tthis.countryCallingCode,\n\t\t\tthis.nationalNumber,\n\t\t\tthis.getMetadata()\n\t\t)\n\t}\n\n\tisPossible() {\n\t\treturn isPossibleNumber(this, { v2: true }, this.getMetadata())\n\t}\n\n\tisValid() {\n\t\treturn isValidNumber(this, { v2: true }, this.getMetadata())\n\t}\n\n\tisNonGeographic() {\n\t\tconst metadata = new Metadata(this.getMetadata())\n\t\treturn metadata.isNonGeographicCallingCode(this.countryCallingCode)\n\t}\n\n\tisEqual(phoneNumber) {\n\t\treturn this.number === phoneNumber.number && this.ext === phoneNumber.ext\n\t}\n\n\t// `validateLength()` method was originally meant to be an equivalent for `validatePhoneNumberLength()`.\n\t//\n\t// Later, it became apparent that it's not really a true equivalent.\n\t// The reason is that a `PhoneNumber` instance is not created\n\t// when the phone number string is too short for it to be considered a valid phone number:\n\t// * When there must be at least 2 national (significant) number digits: `\"1\"`.\n // * When the country calling code part of an international number is incomplete: `\"+12\"`.\n\t//\n\t// So leaving this `validateLength()` method here would suggest a hidden anti-pattern\n\t// of using it instead of `validatePhoneNumberLength()` while ignoring\n\t// the \"too short to be even possible\" case from phone number length validation.\n\t// And ignoring that case wouldn't make any sense in a real-world application\n\t// because it would still be a valid case that should be handled.\n\t//\n\t// Because of that, this method was eventually commented out in order to not introduce\n\t// that kind of an anti-pattern.\n\t//\n\t// validateLength() {\n\t// \tconst result = checkNumberLength(\n\t// \t\tthis.nationalNumber,\n\t// \t\tundefined,\n\t// \t\tthis.getMetadata()\n\t// \t)\n\t// \tif (result !== 'IS_POSSIBLE') {\n\t// \t\treturn result\n\t// \t}\n\t// }\n\n\tgetType() {\n\t\treturn getNumberType(this, { v2: true }, this.getMetadata())\n\t}\n\n\tformat(format, options) {\n\t\treturn formatNumber(\n\t\t\tthis,\n\t\t\tformat,\n\t\t\toptions ? { ...options, v2: true } : { v2: true },\n\t\t\tthis.getMetadata()\n\t\t)\n\t}\n\n\tformatNational(options) {\n\t\treturn this.format('NATIONAL', options)\n\t}\n\n\tformatInternational(options) {\n\t\treturn this.format('INTERNATIONAL', options)\n\t}\n\n\tgetURI(options) {\n\t\treturn this.format('RFC3966', options)\n\t}\n}\n\nconst E164_NUMBER_REGEXP = /^\\+\\d+$/", "// https://stackoverflow.com/a/46971044/970769\n// \"Breaking changes in Typescript 2.1\"\n// \"Extending built-ins like Error, Array, and Map may no longer work.\"\n// \"As a recommendation, you can manually adjust the prototype immediately after any super(...) calls.\"\n// https://github.com/Microsoft/TypeScript-wiki/blob/main/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work\nexport default class ParseError extends Error {\n constructor(code) {\n super(code)\n // Set the prototype explicitly.\n // Any subclass of FooError will have to manually set the prototype as well.\n Object.setPrototypeOf(this, ParseError.prototype)\n this.name = this.constructor.name\n }\n}", "import createExtensionPattern from './createExtensionPattern.js'\n\n// Regexp of all known extension prefixes used by different regions followed by\n// 1 or more valid digits, for use when parsing.\nconst EXTN_PATTERN = new RegExp('(?:' + createExtensionPattern() + ')$', 'i')\n\n// Strips any extension (as in, the part of the number dialled after the call is\n// connected, usually indicated with extn, ext, x or similar) from the end of\n// the number, and returns it.\nexport default function extractExtension(number) {\n\tconst start = number.search(EXTN_PATTERN)\n\tif (start < 0) {\n\t\treturn {}\n\t}\n\t// If we find a potential extension, and the number preceding this is a viable\n\t// number, we assume it is an extension.\n\tconst numberWithoutExtension = number.slice(0, start)\n\tconst matches = number.match(EXTN_PATTERN)\n\tlet i = 1\n\twhile (i < matches.length) {\n\t\tif (matches[i]) {\n\t\t\treturn {\n\t\t\t\tnumber: numberWithoutExtension,\n\t\t\t\text: matches[i]\n\t\t\t}\n\t\t}\n\t\ti++\n\t}\n}", "// These mappings map a character (key) to a specific digit that should\n// replace it for normalization purposes. Non-European digits that\n// may be used in phone numbers are mapped to a European equivalent.\n//\n// E.g. in Iraq they don't write `+442323234` but rather `+٤٤٢٣٢٣٢٣٤`.\n//\nexport const DIGITS = {\n\t'0': '0',\n\t'1': '1',\n\t'2': '2',\n\t'3': '3',\n\t'4': '4',\n\t'5': '5',\n\t'6': '6',\n\t'7': '7',\n\t'8': '8',\n\t'9': '9',\n\t'\\uFF10': '0', // Fullwidth digit 0\n\t'\\uFF11': '1', // Fullwidth digit 1\n\t'\\uFF12': '2', // Fullwidth digit 2\n\t'\\uFF13': '3', // Fullwidth digit 3\n\t'\\uFF14': '4', // Fullwidth digit 4\n\t'\\uFF15': '5', // Fullwidth digit 5\n\t'\\uFF16': '6', // Fullwidth digit 6\n\t'\\uFF17': '7', // Fullwidth digit 7\n\t'\\uFF18': '8', // Fullwidth digit 8\n\t'\\uFF19': '9', // Fullwidth digit 9\n\t'\\u0660': '0', // Arabic-indic digit 0\n\t'\\u0661': '1', // Arabic-indic digit 1\n\t'\\u0662': '2', // Arabic-indic digit 2\n\t'\\u0663': '3', // Arabic-indic digit 3\n\t'\\u0664': '4', // Arabic-indic digit 4\n\t'\\u0665': '5', // Arabic-indic digit 5\n\t'\\u0666': '6', // Arabic-indic digit 6\n\t'\\u0667': '7', // Arabic-indic digit 7\n\t'\\u0668': '8', // Arabic-indic digit 8\n\t'\\u0669': '9', // Arabic-indic digit 9\n\t'\\u06F0': '0', // Eastern-Arabic digit 0\n\t'\\u06F1': '1', // Eastern-Arabic digit 1\n\t'\\u06F2': '2', // Eastern-Arabic digit 2\n\t'\\u06F3': '3', // Eastern-Arabic digit 3\n\t'\\u06F4': '4', // Eastern-Arabic digit 4\n\t'\\u06F5': '5', // Eastern-Arabic digit 5\n\t'\\u06F6': '6', // Eastern-Arabic digit 6\n\t'\\u06F7': '7', // Eastern-Arabic digit 7\n\t'\\u06F8': '8', // Eastern-Arabic digit 8\n\t'\\u06F9': '9' // Eastern-Arabic digit 9\n}\n\nexport function parseDigit(character) {\n\treturn DIGITS[character]\n}\n\n/**\n * Parses phone number digits from a string.\n * Drops all punctuation leaving only digits.\n * Also converts wide-ascii and arabic-indic numerals to conventional numerals.\n * E.g. in Iraq they don't write `+442323234` but rather `+٤٤٢٣٢٣٢٣٤`.\n * @param {string} string\n * @return {string}\n * @example\n * ```js\n * parseDigits('8 (800) 555')\n * // Outputs '8800555'.\n * ```\n */\nexport default function parseDigits(string) {\n\tlet result = ''\n\t// Using `.split('')` here instead of normal `for ... of`\n\t// because the importing application doesn't neccessarily include an ES6 polyfill.\n\t// The `.split('')` approach discards \"exotic\" UTF-8 characters\n\t// (the ones consisting of four bytes) but digits\n\t// (including non-European ones) don't fall into that range\n\t// so such \"exotic\" characters would be discarded anyway.\n\tfor (const character of string.split('')) {\n\t\tconst digit = parseDigit(character)\n\t\tif (digit) {\n\t\t\tresult += digit\n\t\t}\n\t}\n\treturn result\n}", "import { parseDigit } from './helpers/parseDigits.js'\n\n/**\n * Parses phone number characters from a string.\n * Drops all punctuation leaving only digits and the leading `+` sign (if any).\n * Also converts wide-ascii and arabic-indic numerals to conventional numerals.\n * E.g. in Iraq they don't write `+442323234` but rather `+٤٤٢٣٢٣٢٣٤`.\n * @param {string} string\n * @return {string}\n * @example\n * ```js\n * // Outputs '8800555'.\n * parseIncompletePhoneNumber('8 (800) 555')\n * // Outputs '+7800555'.\n * parseIncompletePhoneNumber('+7 800 555')\n * ```\n */\nexport default function parseIncompletePhoneNumber(string) {\n\tlet result = ''\n\t// Using `.split('')` here instead of normal `for ... of`\n\t// because the importing application doesn't neccessarily include an ES6 polyfill.\n\t// The `.split('')` approach discards \"exotic\" UTF-8 characters\n\t// (the ones consisting of four bytes) but digits\n\t// (including non-European ones) don't fall into that range\n\t// so such \"exotic\" characters would be discarded anyway.\n\tfor (const character of string.split('')) {\n\t\tresult += parsePhoneNumberCharacter(character, result) || ''\n\t}\n\treturn result\n}\n\n/**\n * Parses next character while parsing phone number digits (including a `+`)\n * from text: discards everything except `+` and digits, and `+` is only allowed\n * at the start of a phone number.\n * For example, is used in `react-phone-number-input` where it uses\n * [`input-format`](https://gitlab.com/catamphetamine/input-format).\n * @param {string} character - Yet another character from raw input string.\n * @param {string?} prevParsedCharacters - Previous parsed characters.\n * @param {function?} eventListener - An optional \"on event\" function.\n * @return {string?} The parsed character.\n */\nexport function parsePhoneNumberCharacter(character, prevParsedCharacters, eventListener) {\n\t// Only allow a leading `+`.\n\tif (character === '+') {\n\t\t// If this `+` is not the first parsed character\n\t\t// then discard it.\n\t\tif (prevParsedCharacters) {\n\t\t\t// `eventListener` argument was added to this `export`ed function on Dec 26th, 2023.\n\t\t\t// Any 3rd-party code that used to `import` and call this function before that\n\t\t\t// won't be passing any `eventListener` argument.\n\t\t\t//\n\t\t\t// The addition of the `eventListener` argument was to fix the slightly-weird behavior\n\t\t\t// of parsing an input string when the user inputs something like `\"2+7\"\n\t\t\t// https://github.com/catamphetamine/react-phone-number-input/issues/437\n\t\t\t//\n\t\t\t// If the parser encounters an unexpected `+` in a string being parsed\n\t\t\t// then it simply discards that out-of-place `+` and any following characters.\n\t\t\t//\n\t\t\tif (typeof eventListener === 'function') {\n\t\t\t\teventListener('end')\n\t\t\t}\n\t\t\treturn\n\t\t}\n\t\treturn '+'\n\t}\n\t// Allow digits.\n\treturn parseDigit(character)\n}", "// When phone numbers are written in `RFC3966` format — `\"tel:+12133734253\"` —\n// they can have their \"calling code\" part written separately in a `phone-context` parameter.\n// Example: `\"tel:12133734253;phone-context=+1\"`.\n// This function parses the full phone number from the local number and the `phone-context`\n// when the `phone-context` contains a `+` sign.\n\nimport {\n VALID_DIGITS,\n // PLUS_CHARS\n} from '../constants.js'\n\nexport const PLUS_SIGN = '+'\n\nconst RFC3966_VISUAL_SEPARATOR_ = '[\\\\-\\\\.\\\\(\\\\)]?'\n\nconst RFC3966_PHONE_DIGIT_ = '(' + '[' + VALID_DIGITS + ']' + '|' + RFC3966_VISUAL_SEPARATOR_ + ')'\n\nconst RFC3966_GLOBAL_NUMBER_DIGITS_ =\n\t'^' +\n\t'\\\\' +\n\tPLUS_SIGN +\n\tRFC3966_PHONE_DIGIT_ +\n\t'*' +\n\t'[' + VALID_DIGITS + ']' +\n\tRFC3966_PHONE_DIGIT_ +\n\t'*' +\n\t'$'\n\n/**\n * Regular expression of valid global-number-digits for the phone-context\n * parameter, following the syntax defined in RFC3966.\n */\nconst RFC3966_GLOBAL_NUMBER_DIGITS_PATTERN_ = new RegExp(RFC3966_GLOBAL_NUMBER_DIGITS_, 'g')\n\n// In this port of Google's library, we don't accept alpha characters in phone numbers.\n// const ALPHANUM_ = VALID_ALPHA_ + VALID_DIGITS\nconst ALPHANUM_ = VALID_DIGITS\n\nconst RFC3966_DOMAINLABEL_ = '[' + ALPHANUM_ + ']+((\\\\-)*[' + ALPHANUM_ + '])*'\n\nconst VALID_ALPHA_ = 'a-zA-Z'\nconst RFC3966_TOPLABEL_ = '[' + VALID_ALPHA_ + ']+((\\\\-)*[' + ALPHANUM_ + '])*'\n\nconst RFC3966_DOMAINNAME_ = '^(' + RFC3966_DOMAINLABEL_ + '\\\\.)*' + RFC3966_TOPLABEL_ + '\\\\.?$'\n\n/**\n * Regular expression of valid domainname for the phone-context parameter,\n * following the syntax defined in RFC3966.\n */\nconst RFC3966_DOMAINNAME_PATTERN_ = new RegExp(RFC3966_DOMAINNAME_, 'g')\n\nexport const RFC3966_PREFIX_ = 'tel:'\nexport const RFC3966_PHONE_CONTEXT_ = ';phone-context='\nexport const RFC3966_ISDN_SUBADDRESS_ = ';isub='\n\n/**\n * Extracts the value of the phone-context parameter of `numberToExtractFrom`,\n * following the syntax defined in RFC3966.\n *\n * @param {string} numberToExtractFrom\n * @return {string|null} the extracted string (possibly empty), or `null` if no phone-context parameter is found.\n */\nexport default function extractPhoneContext(numberToExtractFrom) {\n\tconst indexOfPhoneContext = numberToExtractFrom.indexOf(RFC3966_PHONE_CONTEXT_)\n\t// If no phone-context parameter is present\n\tif (indexOfPhoneContext < 0) {\n\t\treturn null\n\t}\n\n\tconst phoneContextStart = indexOfPhoneContext + RFC3966_PHONE_CONTEXT_.length\n\t// If phone-context parameter is empty\n\tif (phoneContextStart >= numberToExtractFrom.length) {\n\t\treturn ''\n\t}\n\n\tconst phoneContextEnd = numberToExtractFrom.indexOf(';', phoneContextStart)\n\t// If phone-context is not the last parameter\n\tif (phoneContextEnd >= 0) {\n\t\treturn numberToExtractFrom.substring(phoneContextStart, phoneContextEnd)\n\t} else {\n\t\treturn numberToExtractFrom.substring(phoneContextStart)\n\t}\n}\n\n/**\n * Returns whether the value of phoneContext follows the syntax defined in RFC3966.\n *\n * @param {string|null} phoneContext\n * @return {boolean}\n */\nexport function isPhoneContextValid(phoneContext) {\n\tif (phoneContext === null) {\n\t\treturn true\n\t}\n\n\tif (phoneContext.length === 0) {\n\t\treturn false\n\t}\n\n\t// Does phone-context value match pattern of global-number-digits or domainname.\n\treturn RFC3966_GLOBAL_NUMBER_DIGITS_PATTERN_.test(phoneContext) ||\n\t\tRFC3966_DOMAINNAME_PATTERN_.test(phoneContext)\n}", "import extractPhoneContext, {\n\tisPhoneContextValid,\n\tPLUS_SIGN,\n\tRFC3966_PREFIX_,\n\tRFC3966_PHONE_CONTEXT_,\n\tRFC3966_ISDN_SUBADDRESS_\n} from './extractPhoneContext.js'\n\nimport ParseError from '../ParseError.js'\n\n/**\n * @param {string} numberToParse\n * @param {string} nationalNumber\n * @return {}\n */\nexport default function extractFormattedPhoneNumberFromPossibleRfc3966NumberUri(numberToParse, {\n\textractFormattedPhoneNumber\n}) {\n\tconst phoneContext = extractPhoneContext(numberToParse)\n\tif (!isPhoneContextValid(phoneContext)) {\n\t\tthrow new ParseError('NOT_A_NUMBER')\n\t}\n\n\tlet phoneNumberString\n\n\tif (phoneContext === null) {\n\t\t// Extract a possible number from the string passed in.\n\t\t// (this strips leading characters that could not be the start of a phone number)\n\t\tphoneNumberString = extractFormattedPhoneNumber(numberToParse) || ''\n\t} else {\n\t\tphoneNumberString = ''\n\n\t\t// If the phone context contains a phone number prefix, we need to capture\n\t\t// it, whereas domains will be ignored.\n\t\tif (phoneContext.charAt(0) === PLUS_SIGN) {\n\t\t\tphoneNumberString += phoneContext\n\t\t}\n\n\t\t// Now append everything between the \"tel:\" prefix and the phone-context.\n\t\t// This should include the national number, an optional extension or\n\t\t// isdn-subaddress component. Note we also handle the case when \"tel:\" is\n\t\t// missing, as we have seen in some of the phone number inputs.\n\t\t// In that case, we append everything from the beginning.\n\t\tconst indexOfRfc3966Prefix = numberToParse.indexOf(RFC3966_PREFIX_)\n\t\tlet indexOfNationalNumber\n\t\t// RFC 3966 \"tel:\" prefix is preset at this stage because\n\t\t// `isPhoneContextValid()` requires it to be present.\n\t\t/* istanbul ignore else */\n\t\tif (indexOfRfc3966Prefix >= 0) {\n\t\t\tindexOfNationalNumber = indexOfRfc3966Prefix + RFC3966_PREFIX_.length\n\t\t} else {\n\t\t\tindexOfNationalNumber = 0\n\t\t}\n\t\tconst indexOfPhoneContext = numberToParse.indexOf(RFC3966_PHONE_CONTEXT_)\n\t\tphoneNumberString += numberToParse.substring(indexOfNationalNumber, indexOfPhoneContext)\n\t}\n\n\t// Delete the isdn-subaddress and everything after it if it is present.\n\t// Note extension won't appear at the same time with isdn-subaddress\n\t// according to paragraph 5.3 of the RFC3966 spec.\n\tconst indexOfIsdn = phoneNumberString.indexOf(RFC3966_ISDN_SUBADDRESS_)\n\tif (indexOfIsdn > 0) {\n\t\tphoneNumberString = phoneNumberString.substring(0, indexOfIsdn)\n\t}\n\t// If both phone context and isdn-subaddress are absent but other\n\t// parameters are present, the parameters are left in nationalNumber.\n\t// This is because we are concerned about deleting content from a potential\n\t// number string when there is no strong evidence that the number is\n\t// actually written in RFC3966.\n\n\tif (phoneNumberString !== '') {\n\t\treturn phoneNumberString\n\t}\n}", "// This is a port of Google Android `libphonenumber`'s\n// `phonenumberutil.js` of December 31th, 2018.\n//\n// https://github.com/googlei18n/libphonenumber/commits/master/javascript/i18n/phonenumbers/phonenumberutil.js\n\nimport {\n\tVALID_DIGITS,\n\tPLUS_CHARS,\n\tMIN_LENGTH_FOR_NSN,\n\tMAX_LENGTH_FOR_NSN\n} from './constants.js'\n\nimport ParseError from './ParseError.js'\nimport Metadata from './metadata.js'\nimport isViablePhoneNumber, { isViablePhoneNumberStart } from './helpers/isViablePhoneNumber.js'\nimport extractExtension from './helpers/extension/extractExtension.js'\nimport parseIncompletePhoneNumber from './parseIncompletePhoneNumber.js'\nimport getCountryCallingCode from './getCountryCallingCode.js'\nimport { isPossibleNumber } from './isPossible.js'\n// import { parseRFC3966 } from './helpers/RFC3966.js'\nimport PhoneNumber from './PhoneNumber.js'\nimport matchesEntirely from './helpers/matchesEntirely.js'\nimport extractCountryCallingCode from './helpers/extractCountryCallingCode.js'\nimport extractNationalNumber from './helpers/extractNationalNumber.js'\n// import stripIddPrefix from './helpers/stripIddPrefix.js'\nimport getCountryByCallingCode from './helpers/getCountryByCallingCode.js'\nimport extractFormattedPhoneNumberFromPossibleRfc3966NumberUri from './helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js'\n\n// We don't allow input strings for parsing to be longer than 250 chars.\n// This prevents malicious input from consuming CPU.\nconst MAX_INPUT_STRING_LENGTH = 250\n\n// This consists of the plus symbol, digits, and arabic-indic digits.\nconst PHONE_NUMBER_START_PATTERN = new RegExp('[' + PLUS_CHARS + VALID_DIGITS + ']')\n\n// Regular expression of trailing characters that we want to remove.\n// A trailing `#` is sometimes used when writing phone numbers with extensions in US.\n// Example: \"+1 (645) 123 1234-910#\" number has extension \"910\".\nconst AFTER_PHONE_NUMBER_END_PATTERN = new RegExp('[^' + VALID_DIGITS + '#' + ']+$')\n\nconst USE_NON_GEOGRAPHIC_COUNTRY_CODE = false\n\n// Examples:\n//\n// ```js\n// parse('8 (800) 555-35-35', 'RU')\n// parse('8 (800) 555-35-35', 'RU', metadata)\n// parse('8 (800) 555-35-35', { country: { default: 'RU' } })\n// parse('8 (800) 555-35-35', { country: { default: 'RU' } }, metadata)\n// parse('+7 800 555 35 35')\n// parse('+7 800 555 35 35', metadata)\n// ```\n//\n\n/**\n * Parses a phone number.\n *\n * parse('123456789', { defaultCountry: 'RU', v2: true }, metadata)\n * parse('123456789', { defaultCountry: 'RU' }, metadata)\n * parse('123456789', undefined, metadata)\n *\n * @param {string} input\n * @param {object} [options]\n * @param {object} metadataJson\n * @return {object|PhoneNumber?} If `options.v2: true` flag is passed, it returns a `PhoneNumber?` instance. Otherwise, returns an object of shape `{ phone: '...', country: '...' }` (or just `{}` if no phone number was parsed).\n */\nexport default function parse(text, options, metadataJson) {\n\t// If assigning the `{}` default value is moved to the arguments above,\n\t// code coverage would decrease for some weird reason.\n\toptions = options || {}\n\n\tconst metadata = new Metadata(metadataJson)\n\n\t// Validate `defaultCountry`.\n\tif (options.defaultCountry && !metadata.hasCountry(options.defaultCountry)) {\n\t\tif (options.v2) {\n\t\t\tthrow new ParseError('INVALID_COUNTRY')\n\t\t}\n\t\tthrow new Error(`Unknown country: ${options.defaultCountry}`)\n\t}\n\n\t// Parse the phone number.\n\tconst { number: formattedPhoneNumber, ext, error } = parseInput(text, options.v2, options.extract)\n\n\t// If the phone number is not viable then return nothing.\n\tif (!formattedPhoneNumber) {\n\t\tif (options.v2) {\n\t\t\tif (error === 'TOO_SHORT') {\n\t\t\t\tthrow new ParseError('TOO_SHORT')\n\t\t\t}\n\t\t\tthrow new ParseError('NOT_A_NUMBER')\n\t\t}\n\t\treturn {}\n\t}\n\n\tconst {\n\t\tcountry,\n\t\tnationalNumber,\n\t\tcountryCallingCode,\n\t\tcountryCallingCodeSource,\n\t\tcarrierCode\n\t} = parsePhoneNumber(\n\t\tformattedPhoneNumber,\n\t\toptions.defaultCountry,\n\t\toptions.defaultCallingCode,\n\t\t// If `country` is returned, its numbering plan will also be selected in `metadata`.\n\t\t// Otherwise, if `countryCallingCode` is returned, its numbering plan will also be selected in `metadata`.\n\t\t// Otherwise, if neither `country` nor `countryCallingCode` are returned, no numbering plan will be selected in `metadata`.\n\t\tmetadata\n\t)\n\n\tif (!metadata.hasSelectedNumberingPlan()) {\n\t\tif (options.v2) {\n\t\t\tthrow new ParseError('INVALID_COUNTRY')\n\t\t}\n\t\treturn {}\n\t}\n\n\t// Validate national (significant) number length.\n\tif (!nationalNumber || nationalNumber.length < MIN_LENGTH_FOR_NSN) {\n\t\t// Won't throw here because the regexp already demands length > 1.\n\t\t/* istanbul ignore if */\n\t\tif (options.v2) {\n\t\t\tthrow new ParseError('TOO_SHORT')\n\t\t}\n\t\t// Google's demo just throws an error in this case.\n\t\treturn {}\n\t}\n\n\t// Validate national (significant) number length.\n\t//\n\t// A sidenote:\n\t//\n\t// They say that sometimes national (significant) numbers\n\t// can be longer than `MAX_LENGTH_FOR_NSN` (e.g. in Germany).\n\t// https://github.com/googlei18n/libphonenumber/blob/7e1748645552da39c4e1ba731e47969d97bdb539/resources/phonenumber.proto#L36\n\t// Such numbers will just be discarded.\n\t//\n\tif (nationalNumber.length > MAX_LENGTH_FOR_NSN) {\n\t\tif (options.v2) {\n\t\t\tthrow new ParseError('TOO_LONG')\n\t\t}\n\t\t// Google's demo just throws an error in this case.\n\t\treturn {}\n\t}\n\n\tif (options.v2) {\n\t\tconst phoneNumber = new PhoneNumber(\n\t\t\tcountryCallingCode,\n\t\t\tnationalNumber,\n\t\t\tmetadata.metadata\n\t\t)\n\t\tif (country) {\n\t\t\tphoneNumber.country = country\n\t\t}\n\t\tif (carrierCode) {\n\t\t\tphoneNumber.carrierCode = carrierCode\n\t\t}\n\t\tif (ext) {\n\t\t\tphoneNumber.ext = ext\n\t\t}\n\t\tphoneNumber.__countryCallingCodeSource = countryCallingCodeSource\n\t\treturn phoneNumber\n\t}\n\n\t// Check if national phone number pattern matches the number.\n\t// National number pattern is different for each country,\n\t// even for those ones which are part of the \"NANPA\" group.\n\tconst valid = (options.extended ? metadata.hasSelectedNumberingPlan() : country) ?\n\t\tmatchesEntirely(nationalNumber, metadata.nationalNumberPattern()) :\n\t\tfalse\n\n\tif (!options.extended) {\n\t\treturn valid ? result(country, nationalNumber, ext) : {}\n\t}\n\n\t// isInternational: countryCallingCode !== undefined\n\n\treturn {\n\t\tcountry,\n\t\tcountryCallingCode,\n\t\tcarrierCode,\n\t\tvalid,\n\t\tpossible: valid ? true : (\n\t\t\toptions.extended === true &&\n\t\t\tmetadata.possibleLengths() &&\n\t\t\tisPossibleNumber(nationalNumber, metadata) ? true : false\n\t\t),\n\t\tphone: nationalNumber,\n\t\text\n\t}\n}\n\n/**\n * Extracts a formatted phone number from text.\n * Doesn't guarantee that the extracted phone number\n * is a valid phone number (for example, doesn't validate its length).\n * @param {string} text\n * @param {boolean} [extract] — If `false`, then will parse the entire `text` as a phone number.\n * @param {boolean} [throwOnError] — By default, it won't throw if the text is too long.\n * @return {string}\n * @example\n * // Returns \"(213) 373-4253\".\n * extractFormattedPhoneNumber(\"Call (213) 373-4253 for assistance.\")\n */\nfunction extractFormattedPhoneNumber(text, extract, throwOnError) {\n\tif (!text) {\n\t\treturn\n\t}\n\tif (text.length > MAX_INPUT_STRING_LENGTH) {\n\t\tif (throwOnError) {\n\t\t\tthrow new ParseError('TOO_LONG')\n\t\t}\n\t\treturn\n\t}\n\tif (extract === false) {\n\t\treturn text\n\t}\n\t// Attempt to extract a possible number from the string passed in\n\tconst startsAt = text.search(PHONE_NUMBER_START_PATTERN)\n\tif (startsAt < 0) {\n\t\treturn\n\t}\n\treturn text\n\t\t// Trim everything to the left of the phone number\n\t\t.slice(startsAt)\n\t\t// Remove trailing non-numerical characters\n\t\t.replace(AFTER_PHONE_NUMBER_END_PATTERN, '')\n}\n\n/**\n * @param {string} text - Input.\n * @param {boolean} v2 - Legacy API functions don't pass `v2: true` flag.\n * @param {boolean} [extract] - Whether to extract a phone number from `text`, or attempt to parse the entire text as a phone number.\n * @return {object} `{ ?number, ?ext }`.\n */\nfunction parseInput(text, v2, extract) {\n\t// // Parse RFC 3966 phone number URI.\n\t// if (text && text.indexOf('tel:') === 0) {\n\t// \treturn parseRFC3966(text)\n\t// }\n\t// let number = extractFormattedPhoneNumber(text, extract, v2)\n\tlet number = extractFormattedPhoneNumberFromPossibleRfc3966NumberUri(text, {\n\t\textractFormattedPhoneNumber: (text) => extractFormattedPhoneNumber(text, extract, v2)\n\t})\n\t// If the phone number is not viable, then abort.\n\tif (!number) {\n\t\treturn {}\n\t}\n\tif (!isViablePhoneNumber(number)) {\n\t\tif (isViablePhoneNumberStart(number)) {\n\t\t\treturn { error: 'TOO_SHORT' }\n\t\t}\n\t\treturn {}\n\t}\n\t// Attempt to parse extension first, since it doesn't require region-specific\n\t// data and we want to have the non-normalised number here.\n\tconst withExtensionStripped = extractExtension(number)\n\tif (withExtensionStripped.ext) {\n\t\treturn withExtensionStripped\n\t}\n\treturn { number }\n}\n\n/**\n * Creates `parse()` result object.\n */\nfunction result(country, nationalNumber, ext) {\n\tconst result = {\n\t\tcountry,\n\t\tphone: nationalNumber\n\t}\n\tif (ext) {\n\t\tresult.ext = ext\n\t}\n\treturn result\n}\n\n/**\n * Parses a viable phone number.\n * @param {string} formattedPhoneNumber — Example: \"(213) 373-4253\".\n * @param {string} [defaultCountry]\n * @param {string} [defaultCallingCode]\n * @param {Metadata} metadata — Metadata instance with no pre-selected numbering plan. If `country` is returned, its numbering plan will also be selected in `metadata`. Otherwise, if `countryCallingCode` is returned, its numbering plan will also be selected in `metadata`. Otherwise, if neither `country` nor `countryCallingCode` are returned, no numbering plan will be selected in `metadata`.\n * @return {object} Returns `{ country: string?, countryCallingCode: string?, nationalNumber: string? }`.\n */\nfunction parsePhoneNumber(\n\tformattedPhoneNumber,\n\tdefaultCountry,\n\tdefaultCallingCode,\n\tmetadata\n) {\n\t// Attempt to extract a calling code from a phone number.\n\t// * If the phone number is found to be \"international\":\n\t// * It will attempt to identify the calling code part of it and whether that part is complete and valid.\n\t// * If the calling code part is complete and valid, it will return two properties:\n\t// that calling code part (without `+`) and the rest of the digits.\n\t// * Otherwise, i.e. if the calling code part is incomplete or invalid,\n\t// it will return an empty object.\n\t// * Otherwise, i.e. if the phone number is national, there's no callind code to extract\n\t// so it will just return the originally-passed `number` string as the only property.\n\tlet {\n\t\t// `countryCallingCodeSource` tells how the returned calling code was extracted (if it was extracted).\n\t\tcountryCallingCodeSource,\n\t\t// `countryCallingCode` is the calling code that was extracted from the input phone number string.\n\t\tcountryCallingCode,\n\t\t// `number` is the originally passed `number` without the extracted calling code (and without a `+`).\n\t\t// If the calling code is present but incomplete or invalid, both `countryCallingCode` and `number`\n\t\t// will be returned as `undefined`.\n\t\tnumber\n\t} = extractCountryCallingCode(\n\t\tparseIncompletePhoneNumber(formattedPhoneNumber),\n\t\tundefined,\n\t\t// `defaultCountry` and `defaultCallingCode` are only used to detect\n\t\t// if it's an \"international\" phone number or not. They won't be used\n\t\t// to derive the resulting `countryCallingCode` from them, or anything like that.\n\t\tdefaultCountry,\n\t\tdefaultCallingCode,\n\t\tmetadata.metadata\n\t)\n\n\t// The exact country of the phone number\n\tlet country\n\n\t// If `formattedPhoneNumber` is passed in \"international\" format,\n\t// choose a country by `countryCallingCode`.\n\tif (countryCallingCode) {\n\t\tmetadata.selectNumberingPlan(countryCallingCode)\n\t}\n\t// Else, if `formattedPhoneNumber` is passed in \"national\" format,\n\t// then `number` is defined and `countryCallingCode` is `undefined`.\n\telse if (number && (defaultCountry || defaultCallingCode)) {\n\t\tif (defaultCountry) {\n\t\t\tcountry = defaultCountry\n\t\t\tmetadata.selectNumberingPlan(defaultCountry)\n\t\t\tcountryCallingCode = metadata.numberingPlan.callingCode()\n\t\t} else {\n\t\t\tmetadata.selectNumberingPlan(defaultCallingCode)\n\t\t\tcountryCallingCode = defaultCallingCode\n\t\t\t/* istanbul ignore if */\n\t\t\tif (USE_NON_GEOGRAPHIC_COUNTRY_CODE) {\n\t\t\t\tif (metadata.isNonGeographicCallingCode(countryCallingCode)) {\n\t\t\t\t\tcountry = '001'\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\telse return {}\n\n\t// At this point, `country` could be `undefined` but `countryCallingCode` is always defined.\n\t//\n\t// Also, if `country` is defined, its numbering plan is selected in `metadata`.\n\t// Otherwise, the numering plan for the `countryCallingCode` is selected in `metadata`.\n\n\tif (!number) {\n\t\treturn {\n\t\t\tcountryCallingCodeSource,\n\t\t\tcountryCallingCode\n\t\t}\n\t}\n\n\tconst {\n\t\tnationalNumber,\n\t\tcarrierCode\n\t} = extractNationalNumber(\n\t\tparseIncompletePhoneNumber(number),\n\t\tundefined,\n\t\tmetadata\n\t)\n\n\t// Sometimes there are several countries\n\t// corresponding to the same country phone code\n\t// (e.g. NANPA countries all having `1` country phone code).\n\t// Therefore, to reliably determine the exact country,\n\t// national (significant) number should have been parsed first.\n\t//\n\t// When `metadata.json` is generated, all \"ambiguous\" country phone codes\n\t// get their countries populated with the full set of\n\t// \"phone number type\" regular expressions.\n\t//\n\tconst exactCountry = getCountryByCallingCode(countryCallingCode, {\n\t\tnationalNumber,\n\t\tmetadata\n\t})\n\tif (exactCountry) {\n\t\tcountry = exactCountry\n\t\t/* istanbul ignore if */\n\t\tif (exactCountry === '001') {\n\t\t\t// Can't happen with `USE_NON_GEOGRAPHIC_COUNTRY_CODE` being `false`.\n\t\t\t// If `USE_NON_GEOGRAPHIC_COUNTRY_CODE` is set to `true` for some reason,\n\t\t\t// then remove the \"istanbul ignore if\".\n\t\t} else {\n\t\t\tmetadata.selectNumberingPlan(country)\n\t\t}\n\t}\n\n\treturn {\n\t\tcountry,\n\t\tcountryCallingCode,\n\t\tcountryCallingCodeSource,\n\t\tnationalNumber,\n\t\tcarrierCode\n\t}\n}", "import parse from './parse.js'\n\nexport default function parsePhoneNumberWithError(text, options, metadata) {\n\treturn parse(text, { ...options, v2: true }, metadata)\n}", "import isObject from './helpers/isObject.js'\n\n// Extracts the following properties from function arguments:\n// * input `text`\n// * `options` object\n// * `metadata` JSON\nexport default function normalizeArguments(args) {\n\tconst [arg_1, arg_2, arg_3, arg_4] = Array.prototype.slice.call(args)\n\n\tlet text\n\tlet options\n\tlet metadata\n\n\t// If the phone number is passed as a string.\n\t// `parsePhoneNumber('88005553535', ...)`.\n\tif (typeof arg_1 === 'string') {\n\t\ttext = arg_1\n\t}\n\telse throw new TypeError('A text for parsing must be a string.')\n\n\t// If \"default country\" argument is being passed then move it to `options`.\n\t// `parsePhoneNumber('88005553535', 'RU', [options], metadata)`.\n\tif (!arg_2 || typeof arg_2 === 'string')\n\t{\n\t\tif (arg_4) {\n\t\t\toptions = arg_3\n\t\t\tmetadata = arg_4\n\t\t} else {\n\t\t\toptions = undefined\n\t\t\tmetadata = arg_3\n\t\t}\n\n\t\tif (arg_2) {\n\t\t\toptions = { defaultCountry: arg_2, ...options }\n\t\t}\n\t}\n\t// `defaultCountry` is not passed.\n\t// Example: `parsePhoneNumber('+78005553535', [options], metadata)`.\n\telse if (isObject(arg_2))\n\t{\n\t\tif (arg_3) {\n\t\t\toptions = arg_2\n\t\t\tmetadata = arg_3\n\t\t} else {\n\t\t\tmetadata = arg_2\n\t\t}\n\t}\n\telse throw new Error(`Invalid second argument: ${arg_2}`)\n\n\treturn {\n\t\ttext,\n\t\toptions,\n\t\tmetadata\n\t}\n}", "import parsePhoneNumberWithError from './parsePhoneNumberWithError_.js'\nimport ParseError from './ParseError.js'\nimport { isSupportedCountry } from './metadata.js'\n\nexport default function parsePhoneNumber(text, options, metadata) {\n\t// Validate `defaultCountry`.\n\tif (options && options.defaultCountry && !isSupportedCountry(options.defaultCountry, metadata)) {\n\t\toptions = {\n\t\t\t...options,\n\t\t\tdefaultCountry: undefined\n\t\t}\n\t}\n\t// Parse phone number.\n\ttry {\n\t\treturn parsePhoneNumberWithError(text, options, metadata)\n\t} catch (error) {\n\t\t/* istanbul ignore else */\n\t\tif (error instanceof ParseError) {\n\t\t\t//\n\t\t} else {\n\t\t\tthrow error\n\t\t}\n\t}\n}\n", "import normalizeArguments from './normalizeArguments.js'\nimport parsePhoneNumber_ from './parsePhoneNumber_.js'\n\nexport default function parsePhoneNumber() {\n\tconst { text, options, metadata } = normalizeArguments(arguments)\n\treturn parsePhoneNumber_(text, options, metadata)\n}\n", "import withMetadataArgument from './withMetadataArgument.js'\nimport { default as _parsePhoneNumber } from '../../core/index.js'\n\nexport function parsePhoneNumber() {\n\treturn withMetadataArgument(_parsePhoneNumber, arguments)\n}", "import {\n type CountryCode,\n parsePhoneNumberFromString,\n} from 'libphonenumber-js';\n\nimport { MAX_EMAILS, MAX_PHONES } from 'src/scavio/constants';\n\nconst EMAIL_REGEX = /^[a-z0-9._%+-]+@([a-z0-9-]+\\.)+[a-z]{2,24}$/;\n\n// Mailbox providers small businesses use instead of their own domain.\nconst FREE_MAIL_DOMAINS = new Set([\n 'gmail.com', 'googlemail.com', 'yahoo.com', 'ymail.com', 'outlook.com',\n 'hotmail.com', 'live.com', 'msn.com', 'icloud.com', 'me.com', 'mac.com',\n 'aol.com', 'protonmail.com', 'proton.me', 'zoho.com', 'gmx.com', 'gmx.de',\n 'gmx.net', 'web.de', 'mail.com', 'yandex.com', 'comcast.net', 'att.net',\n 'sbcglobal.net', 'bellsouth.net', 'verizon.net', 'cox.net', 'charter.net',\n 'yahoo.co.uk', 'hotmail.co.uk', 'btinternet.com', 'orange.fr', 'free.fr',\n 'laposte.net', 'libero.it', 'hotmail.fr', 'yahoo.fr', 'outlook.fr',\n]);\n\nconst isSameSite = (emailDomain: string, companyDomain: string): boolean =>\n emailDomain === companyDomain ||\n emailDomain.endsWith(`.${companyDomain}`) ||\n companyDomain.endsWith(`.${emailDomain}`);\n\n// The enrich endpoint reads free text, so a phrase like \"time@home.dr.miller\"\n// can come back as an email. A CRM record should only get addresses that\n// belong to the company: its own domain, or a common mailbox provider.\nexport const cleanEmails = (\n emails: readonly unknown[] | undefined,\n companyDomain: string,\n): string[] => {\n const kept: string[] = [];\n const seen = new Set<string>();\n\n for (const raw of emails ?? []) {\n if (typeof raw !== 'string') {\n continue;\n }\n\n const email = raw.trim().toLowerCase();\n if (!EMAIL_REGEX.test(email) || seen.has(email)) {\n continue;\n }\n\n const emailDomain = email.split('@')[1];\n if (!isSameSite(emailDomain, companyDomain) && !FREE_MAIL_DOMAINS.has(emailDomain)) {\n continue;\n }\n\n seen.add(email);\n kept.push(email);\n }\n\n return kept.slice(0, MAX_EMAILS);\n};\n\n// Country-code TLDs whose code is not the ISO country code, plus TLDs that\n// are used as generic ones and say nothing about the country.\nconst TLD_COUNTRY_OVERRIDES: Record<string, CountryCode | null> = {\n uk: 'GB',\n io: null,\n co: null,\n ai: null,\n me: null,\n tv: null,\n fm: null,\n ly: null,\n so: null,\n sh: null,\n gg: null,\n to: null,\n cc: null,\n ws: null,\n};\n\nexport const guessCountryFromDomain = (domain: string): CountryCode => {\n const tld = domain.split('.').pop() ?? '';\n\n if (tld in TLD_COUNTRY_OVERRIDES) {\n return TLD_COUNTRY_OVERRIDES[tld] ?? 'US';\n }\n if (tld.length === 2) {\n return tld.toUpperCase() as CountryCode;\n }\n\n return 'US';\n};\n\nexport type CleanPhone = {\n number: string;\n countryCode: string;\n callingCode: string;\n};\n\nconst lastTenDigits = (value: string): string =>\n value.replace(/\\D/g, '').slice(-10);\n\n// Keeps numbers that parse as valid, prefers ones in the company's country,\n// and drops copies of the same number written another way\n// (\"5124518256\" and \"+15124518256\").\nexport const cleanPhones = (\n phones: readonly unknown[] | undefined,\n companyDomain: string,\n): CleanPhone[] => {\n const defaultCountry = guessCountryFromDomain(companyDomain);\n\n const parsed = (phones ?? [])\n .filter((raw): raw is string => typeof raw === 'string')\n .map((raw) => ({ raw, phone: parsePhoneNumberFromString(raw, defaultCountry) }))\n .filter(({ phone }) => phone !== undefined && phone.isValid());\n\n const sameCountryFirst = [\n ...parsed.filter(({ phone }) => phone?.country === defaultCountry),\n ...parsed.filter(({ phone }) => phone?.country !== defaultCountry),\n ];\n\n const kept: CleanPhone[] = [];\n const seen = new Set<string>();\n\n for (const { raw, phone } of sameCountryFirst) {\n if (phone === undefined) {\n continue;\n }\n\n const keys = [phone.number, lastTenDigits(raw), lastTenDigits(phone.number)];\n if (keys.some((key) => seen.has(key))) {\n continue;\n }\n keys.forEach((key) => seen.add(key));\n\n kept.push({\n number: phone.nationalNumber,\n countryCode: phone.country ?? '',\n callingCode: `+${phone.countryCallingCode}`,\n });\n }\n\n return kept.slice(0, MAX_PHONES);\n};\n", "import { cleanEmails, cleanPhones } from 'src/scavio/clean-contacts';\nimport {\n type EnrichmentStatus,\n type ScavioCompanyData,\n type SocialNetwork,\n} from 'src/scavio/types';\n\nexport type ExistingCompanyLinks = {\n linkedinLink?: { primaryLinkUrl?: string | null } | null;\n};\n\nconst SOCIAL_ORDER: { network: SocialNetwork; label: string }[] = [\n { network: 'linkedin', label: 'LinkedIn' },\n { network: 'facebook', label: 'Facebook' },\n { network: 'instagram', label: 'Instagram' },\n { network: 'x', label: 'X' },\n { network: 'youtube', label: 'YouTube' },\n { network: 'tiktok', label: 'TikTok' },\n { network: 'pinterest', label: 'Pinterest' },\n];\n\nconst isHttpUrl = (value: unknown): value is string =>\n typeof value === 'string' && /^https?:\\/\\/\\S+$/i.test(value.trim());\n\nconst link = (url: string, label = '') => ({\n primaryLinkUrl: url,\n primaryLinkLabel: label,\n secondaryLinks: null,\n});\n\nconst isEmptyLink = (value: { primaryLinkUrl?: string | null } | null | undefined) =>\n !value || !value.primaryLinkUrl || value.primaryLinkUrl.trim() === '';\n\nconst textOrNull = (value: unknown, max = 200): string | null =>\n typeof value === 'string' && value.trim() !== '' ? value.trim().slice(0, max) : null;\n\n// Turns one enrich response into the fields written to the Company record.\n// Scavio fields are replaced on every run that finds something for them;\n// a field the run found nothing for keeps its previous value. The standard\n// LinkedIn field is only filled when it is empty.\nexport const buildCompanyUpdate = ({\n data,\n domain,\n existing,\n now,\n}: {\n data: ScavioCompanyData;\n domain: string;\n existing: ExistingCompanyLinks;\n now: string;\n}): { status: EnrichmentStatus; update: Record<string, unknown> } => {\n const company = data.company;\n const update: Record<string, unknown> = {};\n\n const emails = cleanEmails(company.emails, domain);\n if (emails.length > 0) {\n update.scavioEmails = {\n primaryEmail: emails[0],\n additionalEmails: emails.length > 1 ? emails.slice(1) : null,\n };\n }\n\n const phones = cleanPhones(company.phones, domain);\n if (phones.length > 0) {\n const [primary, ...rest] = phones;\n update.scavioPhones = {\n primaryPhoneNumber: primary.number,\n primaryPhoneCountryCode: primary.countryCode,\n primaryPhoneCallingCode: primary.callingCode,\n additionalPhones: rest.length > 0 ? rest : null,\n };\n }\n\n const socials = SOCIAL_ORDER\n .map(({ network, label }) => ({ url: company.socials?.[network], label, network }))\n .filter((social): social is { url: string; label: string; network: SocialNetwork } =>\n isHttpUrl(social.url),\n );\n\n if (socials.length > 0) {\n const [first, ...rest] = socials;\n update.scavioSocialProfiles = {\n primaryLinkUrl: first.url,\n primaryLinkLabel: first.label,\n secondaryLinks:\n rest.length > 0 ? rest.map(({ url, label }) => ({ url, label })) : null,\n };\n }\n\n const linkedin = socials.find((social) => social.network === 'linkedin');\n if (linkedin && isEmptyLink(existing.linkedinLink)) {\n update.linkedinLink = link(linkedin.url);\n }\n\n if (isHttpUrl(company.contact_page)) {\n update.scavioContactPage = link(company.contact_page);\n }\n\n const owner = data.owner;\n const ownerName = textOrNull(owner?.name);\n if (owner && ownerName) {\n update.scavioOwnerName = ownerName;\n update.scavioOwnerTitle = textOrNull(owner.title);\n\n const [ownerEmail] = cleanEmails(owner.email ? [owner.email] : [], domain);\n update.scavioOwnerEmail = ownerEmail\n ? { primaryEmail: ownerEmail, additionalEmails: null }\n : { primaryEmail: '', additionalEmails: null };\n }\n\n const foundSomething =\n emails.length > 0 || phones.length > 0 || socials.length > 0 ||\n ownerName !== null || isHttpUrl(company.contact_page);\n\n const status: EnrichmentStatus = foundSomething ? 'ENRICHED' : 'NO_CONTACTS';\n\n update.scavioEnrichmentStatus = status;\n update.scavioLastEnrichedAt = now;\n update.scavioEnrichmentNote = foundSomething\n ? owner && ownerName && isHttpUrl(owner.source_url)\n ? `Owner found on ${owner.source_url}`\n : null\n : `Read ${data.pages_read?.length ?? 0} page(s) of ${domain}; no published contact details found.`;\n\n return { status, update };\n};\n", "const SCHEME_REGEX = /^[a-z][a-z0-9+.-]*:\\/\\//;\nconst LEADING_WWW_REGEX = /^www\\./;\nconst HOST_REGEX = /^[a-z0-9-]+(\\.[a-z0-9-]+)+$/;\n\n// Twenty stores the company domain as a link, usually \"https://acme.com\".\n// Returns the bare host, or undefined when it is not a usable host name.\nexport const normalizeDomain = (raw: unknown): string | undefined => {\n if (typeof raw !== 'string') {\n return undefined;\n }\n\n const host = raw\n .trim()\n .toLowerCase()\n .replace(SCHEME_REGEX, '')\n .split(/[/?#]/)[0]\n .split(':')[0]\n .replace(LEADING_WWW_REGEX, '');\n\n return HOST_REGEX.test(host) ? host : undefined;\n};\n", "import { MAX_COMPANIES_PER_RUN } from 'src/scavio/constants';\nimport { type CompanyRepository } from 'src/scavio/company-repository';\nimport { type EnqueueWorkers } from 'src/scavio/enqueue';\nimport { normalizeDomain } from 'src/scavio/normalize-domain';\nimport { type StartEnrichmentResult } from 'src/scavio/start-snackbar';\n\nexport const MISSING_KEY_MESSAGE =\n 'Add your Scavio API key in Settings > Applications > Scavio Company Enrichment.';\n\n// Splits the ids into `chains` lists of near-equal size. Each list becomes\n// one worker that enriches its companies one after another, so at most\n// `chains` Scavio requests are in flight for this run.\nexport const splitIntoChains = (ids: string[], chains: number): string[][] => {\n const count = Math.max(1, Math.min(chains, ids.length));\n const lists: string[][] = Array.from({ length: count }, () => []);\n ids.forEach((id, index) => lists[index % count].push(id));\n\n return lists.filter((list) => list.length > 0);\n};\n\nexport const startEnrichment = async ({\n recordIds,\n repository,\n enqueueWorkers,\n apiKey,\n parallelRequests,\n now,\n}: {\n recordIds: string[];\n repository: CompanyRepository;\n enqueueWorkers: EnqueueWorkers;\n apiKey: string | undefined;\n parallelRequests: number;\n now: string;\n}): Promise<StartEnrichmentResult> => {\n if (!apiKey) {\n return { success: false, queued: 0, noWebsite: 0, notFound: 0, message: MISSING_KEY_MESSAGE };\n }\n\n const ids = recordIds.slice(0, MAX_COMPANIES_PER_RUN);\n const companies = await repository.read(ids);\n\n const withWebsite: string[] = [];\n const withoutWebsite: string[] = [];\n for (const company of companies) {\n (normalizeDomain(company.domainName?.primaryLinkUrl) ? withWebsite : withoutWebsite).push(\n company.id,\n );\n }\n\n if (withoutWebsite.length > 0) {\n await repository.updateMany(withoutWebsite, {\n scavioEnrichmentStatus: 'NO_WEBSITE',\n scavioEnrichmentNote: 'Add the company website (Domains field) to enrich it.',\n scavioLastEnrichedAt: now,\n });\n }\n\n if (withWebsite.length > 0) {\n await repository.updateMany(withWebsite, {\n scavioEnrichmentStatus: 'QUEUED',\n scavioEnrichmentNote: null,\n });\n\n try {\n await enqueueWorkers(\n splitIntoChains(withWebsite, parallelRequests).map((companyIds) => ({\n companyIds,\n rateLimitRetries: 0,\n })),\n );\n } catch {\n await repository.updateMany(withWebsite, {\n scavioEnrichmentStatus: 'FAILED',\n scavioEnrichmentNote: 'Twenty could not queue the enrichment. Try again.',\n });\n\n return {\n success: false,\n queued: 0,\n noWebsite: withoutWebsite.length,\n notFound: ids.length - companies.length,\n message: 'Twenty could not queue the enrichment. Try again.',\n };\n }\n }\n\n return {\n success: true,\n queued: withWebsite.length,\n noWebsite: withoutWebsite.length,\n notFound: ids.length - companies.length,\n };\n};\n", "import { buildCompanyUpdate } from 'src/scavio/build-company-update';\nimport {\n MAX_RATE_LIMIT_RETRIES,\n RATE_LIMIT_RETRY_DELAY_MS,\n WORKER_START_BUDGET_MS,\n} from 'src/scavio/constants';\nimport { type CompanyRepository } from 'src/scavio/company-repository';\nimport { type EnqueueWorkers, type WorkerPayload } from 'src/scavio/enqueue';\nimport { normalizeDomain } from 'src/scavio/normalize-domain';\nimport { MISSING_KEY_MESSAGE } from 'src/scavio/start-enrichment';\nimport { type EnrichOutcome } from 'src/scavio/types';\n\nexport type WorkerResult = {\n processed: number;\n stoppedBecause?: 'auth' | 'credits' | 'rateLimited' | 'missingKey';\n continued?: boolean;\n requeuedAfterRateLimit?: boolean;\n};\n\nexport const AUTH_MESSAGE =\n 'Scavio rejected the API key. Check it in Settings > Applications > Scavio Company Enrichment, then run the enrichment again.';\nexport const CREDITS_MESSAGE =\n 'The Scavio account is out of credits. Add credits at https://dashboard.scavio.dev, then run the enrichment again.';\nexport const RATE_LIMIT_MESSAGE =\n 'Scavio kept answering \"too many requests\". Lower \"Companies enriched at the same time\" in the app settings, then run the enrichment again.';\n\n// Enriches the companies of one chain one after another. A company is only\n// enriched while its status is still QUEUED, which is how a run is cancelled. Ends early, and\n// hands the rest back to the queue, when its time budget is spent or Scavio\n// asks it to slow down. Stops the chain for good on a rejected key or an\n// empty balance, since every later company would fail the same way.\nexport const runWorker = async ({\n payload,\n repository,\n enrich,\n enqueueWorkers,\n apiKey,\n nowMs,\n nowIso,\n}: {\n payload: WorkerPayload;\n repository: CompanyRepository;\n enrich: (domain: string) => Promise<EnrichOutcome>;\n enqueueWorkers: EnqueueWorkers;\n apiKey: string | undefined;\n nowMs: () => number;\n nowIso: () => string;\n}): Promise<WorkerResult> => {\n const ids = payload.companyIds ?? [];\n const startedAt = nowMs();\n\n const stopAll = async (remaining: string[], status: string, note: string) => {\n await repository.updateMany(remaining, {\n scavioEnrichmentStatus: status,\n scavioEnrichmentNote: note,\n scavioLastEnrichedAt: nowIso(),\n });\n };\n\n if (!apiKey) {\n await stopAll(ids, 'FAILED', MISSING_KEY_MESSAGE);\n\n return { processed: 0, stoppedBecause: 'missingKey' };\n }\n\n for (let index = 0; index < ids.length; index += 1) {\n const remaining = ids.slice(index);\n\n if (index > 0 && nowMs() - startedAt > WORKER_START_BUDGET_MS) {\n await enqueueWorkers([\n { companyIds: remaining, rateLimitRetries: payload.rateLimitRetries ?? 0 },\n ]);\n\n return { processed: index, continued: true };\n }\n\n const [company] = await repository.read([ids[index]]);\n // Deleted, or no longer queued: someone changed the status to cancel.\n if (!company || company.scavioEnrichmentStatus !== 'QUEUED') {\n continue;\n }\n\n const domain = normalizeDomain(company.domainName?.primaryLinkUrl);\n if (!domain) {\n await repository.update(company.id, {\n scavioEnrichmentStatus: 'NO_WEBSITE',\n scavioEnrichmentNote: 'Add the company website (Domains field) to enrich it.',\n scavioLastEnrichedAt: nowIso(),\n });\n continue;\n }\n\n const outcome = await enrich(domain);\n\n switch (outcome.kind) {\n case 'ok': {\n const { update } = buildCompanyUpdate({\n data: outcome.response.data,\n domain,\n existing: company,\n now: nowIso(),\n });\n try {\n await repository.update(company.id, update);\n } catch {\n await repository.update(company.id, {\n scavioEnrichmentStatus: 'FAILED',\n scavioEnrichmentNote: 'Scavio answered, but Twenty could not save the result.',\n scavioLastEnrichedAt: nowIso(),\n });\n }\n break;\n }\n case 'unreachable':\n await repository.update(company.id, {\n scavioEnrichmentStatus: 'UNREACHABLE',\n scavioEnrichmentNote: `Could not reach ${domain}. No credits were charged.`,\n scavioLastEnrichedAt: nowIso(),\n });\n break;\n case 'invalid':\n case 'error':\n await repository.update(company.id, {\n scavioEnrichmentStatus: 'FAILED',\n scavioEnrichmentNote: outcome.message,\n scavioLastEnrichedAt: nowIso(),\n });\n break;\n case 'auth':\n await stopAll(remaining, 'FAILED', AUTH_MESSAGE);\n\n return { processed: index, stoppedBecause: 'auth' };\n case 'credits':\n await stopAll(remaining, 'OUT_OF_CREDITS', CREDITS_MESSAGE);\n\n return { processed: index, stoppedBecause: 'credits' };\n case 'rateLimited': {\n const retries = payload.rateLimitRetries ?? 0;\n if (retries >= MAX_RATE_LIMIT_RETRIES) {\n await stopAll(remaining, 'FAILED', RATE_LIMIT_MESSAGE);\n\n return { processed: index, stoppedBecause: 'rateLimited' };\n }\n\n await enqueueWorkers(\n [{ companyIds: remaining, rateLimitRetries: retries + 1 }],\n { delayMs: RATE_LIMIT_RETRY_DELAY_MS },\n );\n\n return { processed: index, requeuedAfterRateLimit: true };\n }\n }\n }\n\n return { processed: ids.length };\n};\n", "import {\n DEFAULT_PARALLEL_REQUESTS,\n MAX_PARALLEL_REQUESTS,\n PARALLEL_REQUESTS_ENV_VAR_NAME,\n SCAVIO_API_KEY_ENV_VAR_NAME,\n} from 'src/scavio/constants';\n\nexport const getApiKey = (): string | undefined => {\n const key = process.env[SCAVIO_API_KEY_ENV_VAR_NAME]?.trim();\n\n return key ? key : undefined;\n};\n\nexport const getParallelRequests = (): number => {\n const raw = Number(process.env[PARALLEL_REQUESTS_ENV_VAR_NAME]);\n\n if (!Number.isFinite(raw) || raw < 1) {\n return DEFAULT_PARALLEL_REQUESTS;\n }\n\n return Math.min(Math.floor(raw), MAX_PARALLEL_REQUESTS);\n};\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEO,QAAM,cAAc,CAAI,SAA0C;AACvE,aAAO,OAAO,SAAS;IACzB;AAFa,YAAA,cAAW;AAIjB,QAAM,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AAA,EACF;AAEA,SAAO,EAAE,WAAW,IAAI,OAAO;AACjC;;;ACpJO,IAAM,YAAY,MAA0B;AACjD,QAAM,MAAM,QAAQ,IAAI,2BAA2B,GAAG,KAAK;AAE3D,SAAO,MAAM,MAAM;AACrB;;;AlHCA,IAAM,UAAU,OAAO,YAA2B;AAChD,QAAM,SAAS,UAAU;AAEzB,SAAO,UAAU;AAAA,IACf;AAAA,IACA,YAAY,wBAAwB,IAAI,cAAc,CAAC;AAAA,IACvD,QAAQ,CAAC,WAAW,cAAc,EAAE,QAAQ,UAAU,IAAI,OAAO,CAAC;AAAA,IAClE;AAAA,IACA;AAAA,IACA,OAAO,MAAM,KAAK,IAAI;AAAA,IACtB,QAAQ,OAAM,oBAAI,KAAK,GAAE,YAAY;AAAA,EACvC,CAAC;AACH;AAEA,IAAO,wBAAQ,oBAAoB;AAAA,EACjC,qBAAqB,qCAAqC;AAAA,EAC1D,MAAM;AAAA,EACN,aACE;AAAA,EACF,gBAAgB;AAAA,EAChB;AACF,CAAC;",
6
+ "names": ["isObject", "result", "e", "t", "n", "e", "t", "a", "b", "split", "pa", "pb", "i", "na", "Number", "nb", "isNaN", "objectConstructor", "constructor", "object", "undefined", "CALLING_CODE_REG_EXP", "string", "test", "V3", "V4", "DEFAULT_EXT_PREFIX", "Metadata", "metadata", "_classCallCheck", "validateMetadata", "setVersion", "call", "_createClass", "key", "value", "getCountries", "Object", "keys", "countries", "filter", "_", "getCountryMetadata", "countryCode", "nonGeographic", "v1", "v2", "v3", "nonGeographical", "hasCountry", "country", "undefined", "hasCallingCode", "callingCode", "getCountryCodesForCallingCode", "countryCodes", "countryCallingCodes", "length", "isNonGeographicCallingCode", "selectNumberingPlan", "argument", "legacyArgumentCallingCode", "isCallingCode", "countryMetadata", "Error", "concat", "numberingPlan", "NumberingPlan", "getNumberingPlanMetadata", "getCountryCodeForCallingCode", "countryCallingCode", "IDDPrefix", "defaultIDDPrefix", "nationalNumberPattern", "possibleLengths", "formats", "nationalPrefixForParsing", "nationalPrefixTransformRule", "leadingDigits", "hasTypes", "type", "ext", "country_phone_code_to_countries", "country_calling_codes", "chooseCountryByCountryCallingCode", "hasSelectedNumberingPlan", "NumberingPlan", "metadata", "globalMetadataObject", "_classCallCheck", "setVersion", "call", "_createClass", "key", "value", "callingCode", "_getDefaultCountryMetadataForThisCallingCode", "getNumberingPlanMetadata", "getDefaultCountryMetadataForRegion", "IDDPrefix", "v1", "v2", "defaultIDDPrefix", "nationalNumberPattern", "possibleLengths", "_getFormats", "formats", "_this", "map", "_", "Format", "nationalPrefix", "_getNationalPrefixFormattingRule", "nationalPrefixFormattingRule", "_nationalPrefixForParsing", "nationalPrefixForParsing", "nationalPrefixTransformRule", "_getNationalPrefixIsOptionalWhenFormatting", "nationalPrefixIsOptionalWhenFormattingInNationalFormat", "leadingDigits", "types", "hasTypes", "length", "type", "getType", "Type", "ext", "DEFAULT_EXT_PREFIX", "format", "_format", "pattern", "leadingDigitsPatterns", "nationalPrefixIsMandatoryWhenFormattingInNationalFormat", "usesNationalPrefix", "FIRST_GROUP_ONLY_PREFIX_PATTERN", "test", "internationalFormat", "validateMetadata", "Error", "isObject", "countries", "concat", "Object", "keys", "join", "typeOf", "_typeof", "getCountryCallingCode", "country", "metadataJson", "metadata", "Metadata", "hasCountry", "selectNumberingPlan", "countryCallingCode", "Error", "concat", "isSupportedCountry", "countries", "hasOwnProperty", "setVersion", "version", "v1", "v2", "v3", "v4", "compare", "V3", "V4", "a", "b", "merged", "slice", "_iterator", "_createForOfIteratorHelperLoose", "_step", "done", "element", "value", "indexOf", "push", "sort", "nationalNumber", "country", "metadata", "checkNumberLengthForType", "undefined", "type", "Metadata", "selectNumberingPlan", "type_info", "possible_lengths", "possibleLengths", "mobile_type", "mergeArrays", "actual_length", "length", "minimum_length", "indexOf", "input", "options", "metadataJson", "undefined", "metadata", "Metadata", "v2", "countryCallingCode", "Error", "selectNumberingPlan", "country", "phone", "hasCountry", "concat", "possibleLengths", "isPossibleNumber", "nationalNumber", "isNonGeographicCallingCode", "checkNumberLength", "text", "regularExpressionText", "RegExp", "test", "NON_FIXED_LINE_PHONE_TYPES", "input", "options", "metadataJson", "country", "countryCallingCode", "metadata", "Metadata", "selectNumberingPlan", "nationalNumber", "v2", "phone", "matchesEntirely", "nationalNumberPattern", "isNumberTypeEqualTo", "type", "pattern", "_iterator", "_createForOfIteratorHelperLoose", "_step", "done", "value", "typeDefinition", "possibleLengths", "indexOf", "length", "input", "options", "metadataJson", "metadata", "Metadata", "selectNumberingPlan", "country", "countryCallingCode", "hasTypes", "getNumberType", "undefined", "nationalNumber", "v2", "phone", "matchesEntirely", "nationalNumberPattern", "COUNTRY_CODE_REG_EXP", "string", "test", "USE_NON_GEOGRAPHIC_COUNTRY_CODE", "countryOrCallingCode", "metadataJson", "country", "callingCode", "metadata", "Metadata", "isCountryCode", "selectNumberingPlan", "countryCallingCode", "isNonGeographicCallingCode", "callingCode", "nationalNumber", "metadata", "_metadata", "Metadata", "possibleCountries", "getCountryCodesForCallingCode", "filter", "country", "couldNationalNumberBelongToCountry", "metadataJson", "selectNumberingPlan", "numberingPlan", "possibleLengths", "indexOf", "length", "MIN_LENGTH_FOR_NSN", "MAX_LENGTH_FOR_NSN", "MAX_LENGTH_COUNTRY_CODE", "VALID_DIGITS", "DASHES", "SLASHES", "DOTS", "WHITESPACE", "BRACKETS", "TILDES", "VALID_PUNCTUATION", "concat", "PLUS_CHARS", "CAPTURING_DIGIT_PATTERN", "RegExp", "VALID_DIGITS", "number", "country", "callingCode", "metadataJson", "metadata", "Metadata", "selectNumberingPlan", "IDDPrefixPattern", "IDDPrefix", "search", "slice", "match", "length", "matchedGroups", "number", "metadata", "numberingPlan", "nationalPrefixForParsing", "prefixPattern", "RegExp", "prefixMatch", "exec", "nationalNumber", "carrierCode", "capturedGroupsCount", "length", "hasCapturedGroups", "nationalPrefixTransformRule", "replace", "prefixBeforeNationalNumber", "slice", "nationalPrefix", "possiblePositionOfTheFirstCapturedGroup", "indexOf", "possibleNationalPrefix", "nationalNumber", "countries", "metadataJson", "metadata", "Metadata", "_iterator", "_createForOfIteratorHelperLoose", "_step", "done", "country", "value", "selectNumberingPlan", "leadingDigits", "search", "getNumberType", "phone", "undefined", "USE_NON_GEOGRAPHIC_COUNTRY_CODE", "callingCode", "_ref", "nationalNumber", "metadata", "isNonGeographicCallingCode", "possibleCountries", "getCountryCodesForCallingCode", "length", "getCountryByNationalNumber", "number", "country", "metadata", "_extractNationalNumbe", "extractNationalNumberFromPossiblyIncompleteNumber", "carrierCode", "nationalNumber", "shouldHaveExtractedNationalPrefix", "numberingPlan", "possibleLengths", "getCountryByCallingCode", "callingCode", "isPossibleIncompleteNationalNumber", "nationalNumberBefore", "nationalNumberAfter", "matchesEntirely", "nationalNumberPattern", "checkNumberLength", "number", "country", "defaultCountry", "defaultCallingCode", "metadataJson", "countryCallingCode", "getCountryCallingCode", "indexOf", "metadata", "Metadata", "selectNumberingPlan", "possibleShorterNumber", "slice", "length", "_extractNationalNumbe", "extractNationalNumber", "undefined", "possibleShorterNationalNumber", "nationalNumber", "_extractNationalNumbe2", "matchesEntirely", "nationalNumberPattern", "checkNumberLength", "number", "country", "defaultCountry", "defaultCallingCode", "metadataJson", "isNumberWithIddPrefix", "numberWithoutIDD", "stripIddPrefix", "_extractCountryCallin", "extractCountryCallingCodeFromInternationalNumberWithoutPlusSign", "countryCallingCode", "shorterNumber", "countryCallingCodeSource", "metadata", "Metadata", "i", "MAX_LENGTH_COUNTRY_CODE", "length", "slice", "hasCallingCode", "selectNumberingPlan", "formattedNumber", "replace", "RegExp", "concat", "VALID_PUNCTUATION", "trim", "FIRST_GROUP_PATTERN", "number", "format", "_ref", "useInternationalFormat", "withNationalPrefix", "carrierCode", "metadata", "formattedNumber", "replace", "RegExp", "pattern", "internationalFormat", "nationalPrefixFormattingRule", "applyInternationalSeparatorStyle", "SINGLE_IDD_PREFIX_REG_EXP", "country", "callingCode", "metadata", "countryMetadata", "Metadata", "selectNumberingPlan", "defaultIDDPrefix", "test", "IDDPrefix", "RFC3966_EXTN_PREFIX", "getExtensionDigitsPattern", "maxLength", "concat", "VALID_DIGITS", "purpose", "extLimitAfterExplicitLabel", "extLimitAfterLikelyLabel", "extLimitAfterAmbiguousChar", "extLimitWhenNotSure", "possibleSeparatorsBetweenNumberAndExtLabel", "possibleCharsAfterExtLabel", "optionalExtnSuffix", "explicitExtLabels", "ambiguousExtLabels", "ambiguousSeparator", "possibleSeparatorsNumberExtLabelNoComma", "autoDiallingAndExtLabelsFound", "rfcExtn", "explicitExtn", "ambiguousExtn", "americanStyleExtnWithSuffix", "autoDiallingExtn", "onlyCommasExtn", "MIN_LENGTH_PHONE_NUMBER_PATTERN", "VALID_DIGITS", "MIN_LENGTH_FOR_NSN", "VALID_PHONE_NUMBER", "PLUS_CHARS", "VALID_PUNCTUATION", "VALID_PHONE_NUMBER_START_REG_EXP", "RegExp", "VALID_PHONE_NUMBER_WITH_EXTENSION", "createExtensionPattern", "VALID_PHONE_NUMBER_PATTERN", "number", "length", "test", "isViablePhoneNumberStart", "formatRFC3966", "_ref", "number", "ext", "Error", "concat", "DEFAULT_OPTIONS", "formatExtension", "formattedNumber", "extension", "metadata", "concat", "ext", "input", "format", "options", "metadataJson", "merge", "Metadata", "country", "hasCountry", "Error", "selectNumberingPlan", "countryCallingCode", "phone", "nationalNumber", "v2", "number", "formatNationalNumber", "carrierCode", "addExtension", "formatRFC3966", "fromCountry", "formatIDD", "formatAs", "chooseFormatForNumber", "formats", "formatNationalNumberUsingFormat", "useInternationalFormat", "withNationalPrefix", "nationalPrefixIsOptionalWhenFormattingInNationalFormat", "nationalPrefix", "availableFormats", "pickFirstMatchingElement", "leadingDigitsPatterns", "length", "lastLeadingDigitsPattern", "search", "matchesEntirely", "pattern", "fromCountryCallingCode", "getCountryCallingCode", "iddPrefix", "getIddPrefix", "undefined", "i", "_len", "arguments", "objects", "Array", "_key", "key", "elements", "testFunction", "PhoneNumber", "countryOrCountryCallingCode", "nationalNumber", "metadata", "_classCallCheck", "TypeError", "isObject", "countries", "e164Number", "E164_NUMBER_REGEXP", "test", "Error", "_extractCountryCallin", "extractCountryCallingCode", "undefined", "countryCallingCode", "number", "validateMetadata", "_getCountryAndCalling", "getCountryAndCallingCodeFromOneOfThem", "country", "callingCode", "getMetadata", "_createClass", "key", "value", "setExt", "ext", "getPossibleCountries", "getPossibleCountriesForNumber", "isPossible", "isPossibleNumber", "v2", "isValid", "isValidNumber", "isNonGeographic", "Metadata", "isNonGeographicCallingCode", "isEqual", "phoneNumber", "getType", "getNumberType", "format", "options", "formatNumber", "_objectSpread", "formatNational", "formatInternational", "getURI", "E164_NUMBER_REGEXP", "ParseError", "_Error", "code", "_this", "_classCallCheck", "_callSuper", "Object", "setPrototypeOf", "prototype", "name", "constructor", "_inherits", "_createClass", "_wrapNativeSuper", "Error", "EXTN_PATTERN", "RegExp", "createExtensionPattern", "number", "start", "search", "numberWithoutExtension", "slice", "matches", "match", "i", "length", "ext", "DIGITS", "parseDigit", "character", "string", "result", "_iterator", "_createForOfIteratorHelperLoose", "split", "_step", "done", "character", "value", "parsePhoneNumberCharacter", "prevParsedCharacters", "eventListener", "parseDigit", "PLUS_SIGN", "RFC3966_VISUAL_SEPARATOR_", "RFC3966_PHONE_DIGIT_", "VALID_DIGITS", "RFC3966_GLOBAL_NUMBER_DIGITS_", "RFC3966_GLOBAL_NUMBER_DIGITS_PATTERN_", "RegExp", "ALPHANUM_", "RFC3966_DOMAINLABEL_", "VALID_ALPHA_", "RFC3966_TOPLABEL_", "RFC3966_DOMAINNAME_", "RFC3966_DOMAINNAME_PATTERN_", "RFC3966_PREFIX_", "RFC3966_PHONE_CONTEXT_", "RFC3966_ISDN_SUBADDRESS_", "numberToExtractFrom", "indexOfPhoneContext", "indexOf", "phoneContextStart", "length", "phoneContextEnd", "substring", "isPhoneContextValid", "phoneContext", "test", "numberToParse", "_ref", "extractFormattedPhoneNumber", "phoneContext", "extractPhoneContext", "isPhoneContextValid", "ParseError", "phoneNumberString", "charAt", "PLUS_SIGN", "indexOfRfc3966Prefix", "indexOf", "RFC3966_PREFIX_", "indexOfNationalNumber", "length", "indexOfPhoneContext", "RFC3966_PHONE_CONTEXT_", "substring", "indexOfIsdn", "RFC3966_ISDN_SUBADDRESS_", "MAX_INPUT_STRING_LENGTH", "PHONE_NUMBER_START_PATTERN", "RegExp", "PLUS_CHARS", "VALID_DIGITS", "AFTER_PHONE_NUMBER_END_PATTERN", "USE_NON_GEOGRAPHIC_COUNTRY_CODE", "text", "options", "metadataJson", "metadata", "Metadata", "defaultCountry", "hasCountry", "v2", "ParseError", "Error", "concat", "_parseInput", "parseInput", "extract", "formattedPhoneNumber", "number", "ext", "error", "_parsePhoneNumber", "parsePhoneNumber", "defaultCallingCode", "country", "nationalNumber", "countryCallingCode", "countryCallingCodeSource", "carrierCode", "hasSelectedNumberingPlan", "length", "MIN_LENGTH_FOR_NSN", "MAX_LENGTH_FOR_NSN", "phoneNumber", "PhoneNumber", "__countryCallingCodeSource", "valid", "extended", "matchesEntirely", "nationalNumberPattern", "result", "possible", "possibleLengths", "isPossibleNumber", "phone", "extractFormattedPhoneNumber", "throwOnError", "startsAt", "search", "slice", "replace", "extractFormattedPhoneNumberFromPossibleRfc3966NumberUri", "isViablePhoneNumber", "isViablePhoneNumberStart", "withExtensionStripped", "extractExtension", "_extractCountryCallin", "extractCountryCallingCode", "parseIncompletePhoneNumber", "undefined", "selectNumberingPlan", "numberingPlan", "callingCode", "isNonGeographicCallingCode", "_extractNationalNumbe", "extractNationalNumber", "exactCountry", "getCountryByCallingCode", "text", "options", "metadata", "parse", "_objectSpread", "v2", "args", "_Array$prototype$slic", "Array", "prototype", "slice", "call", "_Array$prototype$slic2", "_slicedToArray", "arg_1", "arg_2", "arg_3", "arg_4", "text", "options", "metadata", "TypeError", "undefined", "_objectSpread", "defaultCountry", "isObject", "Error", "concat", "parsePhoneNumber", "text", "options", "metadata", "defaultCountry", "isSupportedCountry", "_objectSpread", "undefined", "parsePhoneNumberWithError", "error", "ParseError", "parsePhoneNumber", "_normalizeArguments", "normalizeArguments", "arguments", "text", "options", "metadata", "parsePhoneNumber_", "parsePhoneNumber", "parsePhoneNumber", "enqueueWorkers"]
7
+ }