@ozdao/prometheus-framework 0.1.62 → 0.1.63

Sign up to get free protection for your applications and to get access to all the features.
Files changed (204) hide show
  1. package/dist/BackofficeGallery-30022293.js +1 -0
  2. package/dist/BackofficeGallery-f64daa0d.mjs +264 -0
  3. package/dist/BackofficeReports-cb4b180d.mjs +44 -0
  4. package/dist/BackofficeReports-d021871f.js +1 -0
  5. package/dist/BlockTags-8cddaef7.js +1 -0
  6. package/dist/BlockTags-ee310572.mjs +853 -0
  7. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
  8. package/dist/Breadcrumbs.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
  9. package/dist/Button-7643c9aa.js +1 -0
  10. package/dist/Button-9e1a9284.mjs +226 -0
  11. package/dist/Button.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
  12. package/dist/Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
  13. package/dist/ButtonToggleMembership-7ee4dc8e.mjs +90 -0
  14. package/dist/ButtonToggleMembership-b9352cec.js +1 -0
  15. package/dist/CardBlogpost-3c92fbc9.mjs +246 -0
  16. package/dist/CardBlogpost-c7364b1e.js +1 -0
  17. package/dist/CardOrganization-647cb571.js +1 -0
  18. package/dist/CardOrganization-facb77f7.mjs +234 -0
  19. package/dist/CardProduct-92affca1.js +1 -0
  20. package/dist/CardProduct-fca53299.mjs +193 -0
  21. package/dist/Checkbox-5dbe7b23.mjs +62 -0
  22. package/dist/Checkbox-76f09248.js +1 -0
  23. package/dist/Chips-0fdb31c9.js +1 -0
  24. package/dist/Chips-f1a0d085.mjs +214 -0
  25. package/dist/Community-534d473c.mjs +132 -0
  26. package/dist/Community-e9aff969.js +1 -0
  27. package/dist/Dashboard-91d73bc5.js +1 -0
  28. package/dist/Dashboard-ea9035bc.mjs +152 -0
  29. package/dist/Dropdown-31115457.js +1 -0
  30. package/dist/Dropdown-cab3605b.mjs +146 -0
  31. package/dist/EULA-aba6a807.js +1 -0
  32. package/dist/EULA-e05236af.mjs +4210 -0
  33. package/dist/EditOrder-94bbebff.mjs +221 -0
  34. package/dist/EditOrder-c070d474.js +1 -0
  35. package/dist/EmptyState-d65bab5b.js +1 -0
  36. package/dist/EmptyState-e404b05d.mjs +36 -0
  37. package/dist/Events-46ae8fc6.mjs +123 -0
  38. package/dist/Events-813c8c7b.js +1 -0
  39. package/dist/Feed-2d443ad2.mjs +146 -0
  40. package/dist/Feed-3a4e7a9c.js +1 -0
  41. package/dist/Feed-8b554fc1.js +1 -0
  42. package/dist/Feed-98b47c6f.js +1 -0
  43. package/dist/Feed-a21d6007.mjs +124 -0
  44. package/dist/Feed-b39138c8.js +1 -0
  45. package/dist/Feed-c41ef736.mjs +361 -0
  46. package/dist/Feed-d114330c.mjs +112 -0
  47. package/dist/Field-e2a43424.js +1 -0
  48. package/dist/Field-e5ad88d3.mjs +75 -0
  49. package/dist/Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-0ea8fbf8.js +1 -0
  50. package/dist/Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-4ed993c7.mjs +1 -0
  51. package/dist/Gallery-46b5f939.js +1 -0
  52. package/dist/Gallery-762a9c2d.mjs +241 -0
  53. package/dist/IconChevronRight-a55f838e.js +1 -0
  54. package/dist/IconChevronRight-fae9d012.mjs +28 -0
  55. package/dist/IconCommunity-468dc457.mjs +65 -0
  56. package/dist/IconCommunity-b339e806.js +1 -0
  57. package/dist/IconCross-5bf93179.js +1 -0
  58. package/dist/IconCross-84cb1292.mjs +28 -0
  59. package/dist/IconEdit-9edfd74d.mjs +21 -0
  60. package/dist/IconEdit-c0469b45.js +1 -0
  61. package/dist/Image-4dcfddb8.js +9 -0
  62. package/dist/Image-e0da17ac.mjs +571 -0
  63. package/dist/LabelGooglePlay-24feb437.mjs +31 -0
  64. package/dist/LabelGooglePlay-f80e5ff0.js +1 -0
  65. package/dist/LeftoverAdd-5a8988d9.js +1 -0
  66. package/dist/LeftoverAdd-c4f37f47.mjs +227 -0
  67. package/dist/Leftovers-470a1689.js +1 -0
  68. package/dist/Leftovers-69c7dcd9.mjs +136 -0
  69. package/dist/Loader-21f016da.js +1 -0
  70. package/dist/Loader-cd422786.mjs +41 -0
  71. package/dist/Loader.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
  72. package/dist/Loader.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
  73. package/dist/Members-04273cd4.mjs +114 -0
  74. package/dist/Members-0685a15f.js +1 -0
  75. package/dist/Menu-b5d6a0c7.js +1 -0
  76. package/dist/Menu-dd7645c1.mjs +13 -0
  77. package/dist/MenuItem-56ae7f94.js +1 -0
  78. package/dist/MenuItem-6296d02f.mjs +63 -0
  79. package/dist/Orders-b64e8cb9.js +1 -0
  80. package/dist/Orders-ff30db05.mjs +75 -0
  81. package/dist/Organizations-46aab2c8.mjs +73 -0
  82. package/dist/Organizations-a8627bc5.js +1 -0
  83. package/dist/Payments-53e5fecf.js +1 -0
  84. package/dist/Payments-82e545e1.mjs +87 -0
  85. package/dist/PlaceholderUserpic-14c6ea7e.mjs +28 -0
  86. package/dist/PlaceholderUserpic-47f6f319.js +1 -0
  87. package/dist/Popup-0915427c.mjs +74 -0
  88. package/dist/Popup-795f5c88.js +1 -0
  89. package/dist/Popup.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
  90. package/dist/Popup.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
  91. package/dist/Product-7e001b81.js +7 -0
  92. package/dist/Product-f3f42158.mjs +653 -0
  93. package/dist/ProductEdit-959b3cd3.mjs +295 -0
  94. package/dist/ProductEdit-bae5e898.js +1 -0
  95. package/dist/ProductsBackoffice-0716123f.js +1 -0
  96. package/dist/ProductsBackoffice-a36ecbc6.mjs +85 -0
  97. package/dist/ProfileBlogposts-c790d1b2.js +1 -0
  98. package/dist/ProfileBlogposts-f43cf32e.mjs +79 -0
  99. package/dist/ProfileEvents-12f80fff.mjs +70 -0
  100. package/dist/ProfileEvents-585570a3.js +1 -0
  101. package/dist/ProfileOrganizations-bbc2cf40.mjs +73 -0
  102. package/dist/ProfileOrganizations-d7103514.js +1 -0
  103. package/dist/Publics-094f3c2c.mjs +45 -0
  104. package/dist/Publics-1032c0f4.js +1 -0
  105. package/dist/Select-11ddabf5.mjs +79 -0
  106. package/dist/Select-3ca5ab39.js +1 -0
  107. package/dist/SelectMulti-58704d69.mjs +1038 -0
  108. package/dist/SelectMulti-c25765cf.js +1 -0
  109. package/dist/SkeletonBlogpost-95db0fa9.js +1 -0
  110. package/dist/SkeletonBlogpost-e0621af7.mjs +16 -0
  111. package/dist/SkeletonEvent-8690422d.mjs +16 -0
  112. package/dist/SkeletonEvent-eb284de8.js +1 -0
  113. package/dist/SkeletonEventShort-6c9e3940.js +1 -0
  114. package/dist/SkeletonEventShort-f030e56f.mjs +16 -0
  115. package/dist/SkeletonOrganization-5c09cfc5.js +1 -0
  116. package/dist/SkeletonOrganization-8690422d.mjs +16 -0
  117. package/dist/Socials-31c06635.mjs +74 -0
  118. package/dist/Socials-cceaeaf2.js +1 -0
  119. package/dist/Tab-054b61f7.mjs +46 -0
  120. package/dist/Tab-2c1e4224.js +1 -0
  121. package/dist/Tab.vue_vue_type_style_index_0_lang-0ea8fbf8.js +1 -0
  122. package/dist/Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs +1 -0
  123. package/dist/Upload-06d93178.js +1 -0
  124. package/dist/Upload-23212d9d.mjs +74 -0
  125. package/dist/UploadImage-0f488170.js +1 -0
  126. package/dist/UploadImage-3c627d89.mjs +83 -0
  127. package/dist/UploadImageMultiple-cb6c7188.mjs +58 -0
  128. package/dist/UploadImageMultiple-eddaac87.js +1 -0
  129. package/dist/Wallet-2043b611.mjs +24682 -0
  130. package/dist/Wallet-8fa7386a.js +55 -0
  131. package/dist/_plugin-vue_export-helper-dad06003.mjs +9 -0
  132. package/dist/_plugin-vue_export-helper-f246444f.js +1 -0
  133. package/dist/auth-56dc2ba7.mjs +607 -0
  134. package/dist/auth-f018f5b3.js +7 -0
  135. package/dist/auth.client.cjs +7 -0
  136. package/dist/auth.client.js +3874 -0
  137. package/dist/auth.validation-c31a60e7.mjs +24 -0
  138. package/dist/auth.validation-d049b341.js +1 -0
  139. package/dist/backoffice.client.cjs +1 -0
  140. package/dist/backoffice.client.js +265 -0
  141. package/dist/carousel.es-44c501bc.mjs +383 -0
  142. package/dist/carousel.es-cdfb392c.js +5 -0
  143. package/dist/categories-5b08da53.mjs +121 -0
  144. package/dist/categories-7ccd6be9.js +1 -0
  145. package/dist/click-outside-0b0727d1.js +2 -0
  146. package/dist/click-outside-6101836c.mjs +19 -0
  147. package/dist/community.client.cjs +1 -0
  148. package/dist/community.client.js +692 -0
  149. package/dist/dribbble-8e8e169b.js +1 -0
  150. package/dist/dribbble-ae37c2ac.mjs +127 -0
  151. package/dist/events.client.cjs +2 -0
  152. package/dist/events.client.js +8885 -0
  153. package/dist/files.client.cjs +1 -0
  154. package/dist/files.client.js +1 -0
  155. package/dist/gallery-d4297191.mjs +54 -0
  156. package/dist/gallery-f92912df.js +1 -0
  157. package/dist/gallery.client.cjs +1 -0
  158. package/dist/gallery.client.js +18 -0
  159. package/dist/globals-928eb13c.js +1 -0
  160. package/dist/globals-96ba60e4.mjs +91 -0
  161. package/dist/globals.client.cjs +1 -0
  162. package/dist/globals.client.js +12 -0
  163. package/dist/icons.client.cjs +1 -0
  164. package/dist/icons.client.js +84 -0
  165. package/dist/index-a661083c.mjs +934 -0
  166. package/dist/index-b41aac19.js +2 -0
  167. package/dist/inputs.validation-d7cef32b.js +1 -0
  168. package/dist/inputs.validation-db65277a.mjs +83 -0
  169. package/dist/landing.client.cjs +1 -0
  170. package/dist/landing.client.js +111 -0
  171. package/dist/leftovers-5d1ff88b.mjs +67 -0
  172. package/dist/leftovers-b60180cf.js +1 -0
  173. package/dist/legal.client.cjs +1 -0
  174. package/dist/legal.client.js +8512 -0
  175. package/dist/memberships-12210953.mjs +68 -0
  176. package/dist/memberships-393765d8.js +1 -0
  177. package/dist/middlewares.client.cjs +1 -0
  178. package/dist/middlewares.client.js +1 -0
  179. package/dist/orders-13c10d49.mjs +85 -0
  180. package/dist/orders-37f041aa.js +1 -0
  181. package/dist/organizations-587d5a4d.mjs +122 -0
  182. package/dist/organizations-b4d902a2.js +1 -0
  183. package/dist/organizations.client-35b74e44.mjs +2997 -0
  184. package/dist/organizations.client-f982f55a.js +3 -0
  185. package/dist/organizations.client.cjs +1 -0
  186. package/dist/organizations.client.js +86 -0
  187. package/dist/products-3c43eb18.js +1 -0
  188. package/dist/products-943fb95e.mjs +107 -0
  189. package/dist/prometheus-framework.cjs.js +19 -19
  190. package/dist/prometheus-framework.es.js +2208 -2198
  191. package/dist/reports-270f69df.js +1 -0
  192. package/dist/reports-79cd9459.mjs +91 -0
  193. package/dist/reports.client.cjs +1 -0
  194. package/dist/reports.client.js +8 -0
  195. package/dist/states.validation-3b70f83a.js +1 -0
  196. package/dist/states.validation-944e334c.mjs +13 -0
  197. package/dist/style.css +1 -1
  198. package/dist/users.client.cjs +1 -0
  199. package/dist/users.client.js +632 -0
  200. package/dist/vue-draggable-next.esm-bundler-21a209c6.js +10 -0
  201. package/dist/vue-draggable-next.esm-bundler-ff6e3f52.mjs +1557 -0
  202. package/dist/vuex.esm-bundler-57d8b6ba.mjs +750 -0
  203. package/dist/vuex.esm-bundler-685cf29f.js +5 -0
  204. package/package.json +1 -1
@@ -0,0 +1,3874 @@
1
+ import { ref as _, onMounted as $t, openBlock as g, createBlock as ue, unref as f, withCtx as C, createElementBlock as b, Fragment as ce, renderList as ut, createElementVNode as p, normalizeStyle as V, toDisplayString as y, resolveComponent as ve, createVNode as v, Transition as D, resolveDynamicComponent as Ft, reactive as ct, watch as ft, withDirectives as S, vModelText as Y, withAsyncContext as Dt, createTextVNode as F, createCommentVNode as A, defineComponent as Rt, resolveDirective as Mt, normalizeClass as U, withKeys as re, vShow as H, vModelDynamic as zt, renderSlot as Lt, inject as Ee } from "vue";
2
+ import "./Tab.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
3
+ import "./Field.vue_vue_type_style_index_0_scoped_f4a29b0d_lang-4ed993c7.mjs";
4
+ import "./Button.vue_vue_type_style_index_0_lang-4ed993c7.mjs";
5
+ import { C as xt, S as kt } from "./carousel.es-44c501bc.mjs";
6
+ import { useI18n as B } from "vue-i18n";
7
+ import { useRoute as L, useRouter as x } from "vue-router";
8
+ import { b as ie, c as pt, s as m, a as K } from "./auth-56dc2ba7.mjs";
9
+ import { d as U1, t as G1 } from "./auth-56dc2ba7.mjs";
10
+ import { v as R, a as mt, b as be, c as _e } from "./inputs.validation-db65277a.mjs";
11
+ import { s as z } from "./globals-96ba60e4.mjs";
12
+ import { F as M } from "./Field-e5ad88d3.mjs";
13
+ import { _ as X } from "./Button-9e1a9284.mjs";
14
+ import { a as jt } from "./index-a661083c.mjs";
15
+ import { _ as Ce } from "./Tab-054b61f7.mjs";
16
+ import { c as Bt } from "./click-outside-6101836c.mjs";
17
+ import { _ as Ut } from "./_plugin-vue_export-helper-dad06003.mjs";
18
+ import { r as oe, c as Te } from "./states.validation-944e334c.mjs";
19
+ import { b as G } from "./auth.validation-c31a60e7.mjs";
20
+ const Gt = { class: "parent-div" }, Vt = { class: "mn-small" }, Ht = { class: "mn-big mn-r-small mn-l-small" }, L1 = {
21
+ __name: "SliderFeatures",
22
+ setup(e) {
23
+ const n = _(null), t = {
24
+ messages: {
25
+ en: {
26
+ features: [
27
+ {
28
+ title: "What's the Weeder Token, Dude?",
29
+ description: "WDT is like, the backbone of our rad community. It's cash, it's power, it's an investment. Groovy, right?"
30
+ },
31
+ {
32
+ title: "Light Up and Level Up",
33
+ description: "Order up, light up, and earn Weeder tokens. More tokes, more cash in your pocket, man."
34
+ },
35
+ {
36
+ title: "Hang Ten with Our Community",
37
+ description: "Find the dopest strains and start floating on cloud 9 with us!"
38
+ },
39
+ {
40
+ title: "Shop 'Til You Drop... Into Your Couch",
41
+ description: "Score primo bud and gear with just a few clicks. Delivered right to your pad!"
42
+ }
43
+ ]
44
+ },
45
+ ru: {
46
+ features: [
47
+ {
48
+ title: "Что такое токен Weeder, Бро?",
49
+ description: "WDT - это как основа нашего крутого сообщества. Это деньги, это власть, это инвестиции. Круто, а?"
50
+ },
51
+ {
52
+ title: "Зажигай и Развивайся",
53
+ description: "Закажи шмали, курни и зарабатывай токены Weeder. Чем больше курнешь, тем больше кэша у тебя в кармане, чувак."
54
+ },
55
+ {
56
+ title: "Веселись с Нашим Сообществом",
57
+ description: "Найди самые крутые сорта и начни шмалить на девятом облаке вместе с нами."
58
+ },
59
+ {
60
+ title: "Покупайте, Когда Накурились",
61
+ description: "Закажи премиумную бошку и крутые аксессуары за пару кликов, чувак. Прямо к твоей двери!"
62
+ }
63
+ ]
64
+ }
65
+ }
66
+ }, { tm: d, rt: r } = B(t), i = _(!1);
67
+ return $t(() => {
68
+ setTimeout(() => {
69
+ n.value.restartCarousel(), i.value = !0;
70
+ }, "500");
71
+ }), (o, a) => (g(), ue(f(xt), {
72
+ ref_key: "ImagesSlider",
73
+ ref: n,
74
+ "items-to-show": 1,
75
+ wrapAround: !0,
76
+ transition: 330,
77
+ autoplay: 3e3,
78
+ pauseAutoplayOnHover: !0,
79
+ class: "bg-grey w-100"
80
+ }, {
81
+ default: C(() => [
82
+ (g(!0), b(ce, null, ut(f(d)("features"), ($, s) => (g(), ue(f(kt), {
83
+ key: s,
84
+ class: "w-100 flex-v-center flex"
85
+ }, {
86
+ default: C(() => [
87
+ p("div", Gt, [
88
+ p("div", {
89
+ class: "background-div",
90
+ style: V(`background-image: url(/assets/images/features/${s}.png); background-size: auto 100%; background-repeat: no-repeat; background-position: center center;`)
91
+ }, null, 4),
92
+ p("h4", Vt, y($.title), 1),
93
+ p("p", Ht, y($.description), 1)
94
+ ])
95
+ ]),
96
+ _: 2
97
+ }, 1024))), 128))
98
+ ]),
99
+ _: 1
100
+ }, 512));
101
+ }
102
+ }, Kt = { 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|[46])\\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(?: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, [["(?:(?: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]))\\d{3}|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]))|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[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}", [9]], ["4(?:(?:79|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[016-9]|7[02-8]|8[0-24-9]|9[0-37-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|4[14])|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]|22"], "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", "[025-7]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[025-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", "[24-689]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[24-689]"]]]], BL: ["590", "00", "590\\d{6}|(?:69|80|9\\d)\\d{7}", [9], 0, "0", 0, 0, 0, 0, 0, [["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"], ["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"], ["80[0-5]\\d{6}"], 0, 0, 0, 0, 0, ["9(?:(?:395|76[018])\\d|475[0-5])\\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-467]\\d\\d|8001)\\d{5}", [8, 9], [["(\\d)(\\d{7})", "$1 $2", ["[23]|4[46]"]], ["(\\d{8})", "$1", ["[67]"]], ["(\\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-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-46-9]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}", [8, 9, 10, 11], [["(\\d{4})(\\d{4})", "$1-$2", ["300|4(?:0[02]|37)", "4(?:02|37)0|[34]00"]], ["(\\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", "[17]\\d{7}|[2-8]\\d{6}", [7, 8], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-68]|7[246]"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["1[67]|7"]]]], BW: ["267", "00", "(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}", [7, 8, 10], [["(\\d{2})(\\d{5})", "$1 $2", ["90"]], ["(\\d{3})(\\d{4})", "$1 $2", ["[24-6]|3[15-9]"]], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[37]"]], ["(\\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-8]\\d|90)\\d{8}|3\\d{6}", [7, 10], 0, "1", 0, 0, 0, 0, 0, [["(?:2(?:04|[23]6|[48]9|50|63)|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|73)|90[25])[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(?:00|2[125-9]|33|44|66|77|88)|622)[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|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[016-9]|7[02-8]|8[0-24-9]|9[0-37-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]\\d{8}|[1-68]\\d{6}", [7, 9], [["(\\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{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[89]"], "0$1"]], "0"], CF: ["236", "00", "(?:[27]\\d{3}|8776)\\d{4}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[278]"]]]], 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], [["(\\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{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[2-9]"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[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[127]\\d{8,9}|2\\d{9}(?:\\d{2})?|[12]\\d{6,7}|86\\d{6}|(?:1[03-689]\\d|6)\\d{7,9}|(?:[3-579]\\d|8[0-57-9])\\d{6,9}", [7, 8, 9, 10, 11, 12], [["(\\d{2})(\\d{5,6})", "$1 $2", ["(?:10|2[0-57-9])[19]", "(?:10|2[0-57-9])(?:10|9[56])", "10(?:10|9[56])|2[0-57-9](?:100|9[56])"], "0$1"], ["(\\d{3})(\\d{5,6})", "$1 $2", ["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|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]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]", "(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|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[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]", "85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|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])", "85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|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", ["(?:4|80)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-68])|4(?:[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])|(?:[34]1|55|79|87)[02-9]"], "0$1", 1], ["(\\d{3})(\\d{7,8})", "$1 $2", ["9"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["80"], "0$1", 1], ["(\\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])", "(?:60\\d\\d|9101)\\d{6}|(?:1\\d|3)\\d{9}", [10, 11], [["(\\d{3})(\\d{7})", "$1 $2", ["6"], "($1)"], ["(\\d{3})(\\d{7})", "$1 $2", ["3[0-357]|91"]], ["(\\d)(\\d{3})(\\d{7})", "$1-$2-$3", ["1"], "0$1", 0, "$1 $2 $3"]], "0", 0, "0(4(?:[14]4|56)|[579])?"], 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", "[27]\\d{6,7}|[34]\\d{5,7}|63\\d{6}|(?:5|8\\d\\d)\\d{7}", [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|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[016-9]|7[02-8]|8[0-24-9]|9[0-37-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], [["(\\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{5})(\\d{6})", "$1 $2", ["15[0568]"], "0$1"], ["(\\d{4})(\\d{7})", "$1 $2", ["15[1279]"], "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, "528[89]"], ER: ["291", "00", "[178]\\d{6}", [7], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[178]"], "0$1"]], "0"], ES: ["34", "00", "[5-9]\\d{8}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[89]00"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-9]"]]]], ET: ["251", "00", "(?:11|[2-579]\\d)\\d{7}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1-579]"], "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)(\\d{4,9})", "$1 $2", ["[2568][1-8]|3(?:0[1-9]|[1-9])|9"], "0$1"], ["(\\d{3})(\\d{3,7})", "$1 $2", ["[12]00|[368]|70[07-9]"], "0$1"], ["(\\d{2})(\\d{4,8})", "$1 $2", ["[1245]|7[135]"], "0$1"], ["(\\d{2})(\\d{6,10})", "$1 $2", ["7"], "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{6})", "$1", ["[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, 0, 0, 0, [["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0235])|4(?:[0-5]\\d\\d|69[7-9]|70[0-579])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|50))\\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-2]))|(?: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", "[56]94\\d{6}|(?:80|9\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[56]|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", "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{3}|800)\\d{5}", [8, 9], [["(\\d{3})(\\d{5})", "$1 $2", ["8"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[235]"], "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", "[2-9]\\d{6}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-9]"]]]], 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", "590\\d{6}|(?:69|80|9\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[569]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0$1"]], "0", 0, 0, 0, 0, 0, [["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"], ["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"], ["80[0-5]\\d{6}"], 0, 0, 0, 0, 0, ["9(?:(?:395|76[018])\\d|475[0-5])\\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", "(?:1\\d{3}|[2-7])\\d{7}", [8, 11], [["(\\d{4})(\\d{4})", "$1 $2", ["[2-7]"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]]]], GU: ["1", "011", "(?:[58]\\d\\d|671|900)\\d{7}", [10], 0, "1", 0, "([3-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", "9008\\d{3}|(?:[2-467]\\d\\d|862)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-46-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", "(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}", [6, 7, 8, 9], [["(\\d{2})(\\d{2})(\\d{2,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", ["[67]"], "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-5]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"], "0$1"]], "0"], HT: ["509", "00", "(?:[2-489]\\d|55)\\d{6}", [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]|8\\d)\\d{4}|[1-36])\\d{6}|00\\d{10}|[1-9]\\d{8,10}|[2-9]\\d{7}", [7, 8, 9, 10, 11, 12, 13], [["(\\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[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", "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-7]|80[2-46]", "11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])", "11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|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]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[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(?:(?:2[14]|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|4[47])|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(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|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]|28|3[129]|4[1-35689]|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[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|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|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|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", ["[6-9]"], "0$1", 1], ["(\\d{4})(\\d{2,4})(\\d{4})", "$1 $2 $3", ["1(?:6|8[06])", "1(?:6|8[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,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?", [6, 7, 8, 9, 10, 11], [["(\\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]"]], ["(\\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", ["3"]]], 0, 0, 0, 0, 0, 0, [["0669[0-79]\\d{1,6}|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[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"], ["3[1-9]\\d{8}|3[2-9]\\d{7}", [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]], 0, 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", "1534$1", 0, 0, [["1534[0-24-8]\\d{5}"], ["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97[7-9]))\\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|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", ["7"], "0$1"]], "0"], JP: ["81", "010", "00[1-9]\\d{6,14}|[257-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|63)|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]|636)|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]|636[457-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", ["[36]|4(?:2[09]|7[01])", "[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"], "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[23]|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", ["[257-9]"], "0$1"]], "0", 0, "(000[259]\\d{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", ["60|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", "(?:33622|8\\d{8})\\d{5}|[78]\\d{9}", [10, 14], 0, "8", 0, 0, 0, 0, "33|7", 0, "8~10"], LA: ["856", "00", "[23]\\d{9}|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", ["30[013-9]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["[23]"], "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-7]|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", "(?:[25]\\d|33|77|88)\\d{7}|(?:2\\d|[4-6])\\d{6}", [7, 8, 9], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[4-6]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[23578]"], "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]"], "(8-$1)", 1], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["[7-9]"], "8 $1", 1], ["(\\d{2})(\\d{6})", "$1 $2", ["37|4(?:[15]|6[1-8])"], "(8-$1)", 1], ["(\\d{3})(\\d{5})", "$1 $2", ["[3-6]"], "(8-$1)", 1]], "8", 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", ["2(?:[0367]|4[3-8])"]], ["(\\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", ["2(?:[0367]|4[3-8])"]], ["(\\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]"]]], 0, 0, "(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"], LV: ["371", "00", "(?:[268]\\d|90)\\d{6}", [8], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[269]|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{5})(\\d{4})", "$1-$2", ["5(?:29|38)", "5(?:29[1289]|389)", "529(?:1[1-46-9]|2[013-8]|90)|5(?:298|389)[0-46-9]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["5[45]"], "0$1"], ["(\\d{4})(\\d{5})", "$1-$2", ["5(?:2[2-489]|3[5-9]|9)|892", "5(?:2(?:[2-49]|8[235-9])|3[5-9]|9)|892"], "0$1"], ["(\\d{2})(\\d{7})", "$1-$2", ["8"], "0$1"], ["(\\d{3})(\\d{6})", "$1-$2", ["[5-7]"], "0$1"]], "0", 0, 0, 0, 0, 0, [["5293[01]\\d{4}|5(?:2(?:[0-25-7]\\d|3[1-578]|4[02-46-8]|8[0235-7]|9[0-289])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[0189]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"], ["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[017]\\d|2[0-2]|6[0-8]|8[0-3]))\\d{6}"], ["80\\d{7}"], ["89\\d{7}"], 0, 0, 0, 0, ["592(?:4[0-2]|93)\\d{4}"]]], MC: ["377", "00", "(?:[3489]|6\\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", ["6"], "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", "590\\d{6}|(?:69|80|9\\d)\\d{7}", [9], 0, "0", 0, 0, 0, 0, 0, [["590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"], ["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"], ["80[0-5]\\d{6}"], 0, 0, 0, 0, 0, ["9(?:(?:395|76[018])\\d|475[0-5])\\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", ["[45]|6(?:0[23]|[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-6]"], "0$1"], ["(\\d)(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[12]"], "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", ["[12]1"], "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", "596\\d{6}|(?:69|80|9\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[569]"], "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{3})(\\d{3})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[137-9]"], "0$1"]], "0"], MX: ["52", "0[09]", "1(?:(?:[27]2|44|99)[1-9]|65[0-689])\\d{7}|(?:1(?:[01]\\d|2[13-9]|[35][1-9]|4[0-35-9]|6[0-46-9]|7[013-9]|8[1-79]|9[1-8])|[2-9]\\d)\\d{8}", [10, 11], [["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["33|5[56]|81"], 0, 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2-9]"], 0, 1], ["(\\d)(\\d{2})(\\d{4})(\\d{4})", "$2 $3 $4", ["1(?:33|5[56]|81)"], 0, 1], ["(\\d)(\\d{3})(\\d{3})(\\d{4})", "$2 $3 $4", ["1"], 0, 1]], "01", 0, "0(?:[12]|4[45])|1", 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-79]"]], ["(\\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[047]"]]]], 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", "(?:[124-7]|9\\d{3})\\d{6}|[1-9]\\d{7}|[78]\\d{9,13}", [7, 8, 10, 11, 12, 13, 14], [["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["78"], "0$1"], ["(\\d)(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[12]|9(?:0[3-9]|[1-9])"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2,3})", "$1 $2 $3", ["[3-7]|8[2-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[7-9]"], "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", "(?:444|(?:55|8\\d)\\d|666)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[4-68]"]]]], NU: ["683", "00", "(?:[47]|888\\d)\\d{3}", [4, 7], [["(\\d{3})(\\d{4})", "$1 $2", ["8"]]]], NZ: ["64", "0(?:0|161)", "[29]\\d{7,9}|50\\d{5}(?:\\d{2,3})?|6[0-35-9]\\d{6}|7\\d{7,8}|8\\d{4,9}|(?:11\\d|[34])\\d{7}", [5, 6, 7, 8, 9, 10], [["(\\d{2})(\\d{3,8})", "$1 $2", ["8[1-579]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["50[036-8]|[89]0", "50(?:[0367]|88)|[89]0"], "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)|[59]|80"], "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|86"], "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"]], ["(\\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", ["(?: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", "(?: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", "[45]\\d{5}|(?:708|80\\d)\\d{6}", [6, 9], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["[45]"], "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", "59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,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", ["[26]1|3[289]|4[1246-8]|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-6])"], "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[16]|8"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[3-7]"]]]], RE: ["262", "00", "(?:26|[689]\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2689]"], "0$1"]], "0", 0, 0, 0, 0, 0, [["26(?:2\\d\\d|3(?:0\\d|1[0-4]))\\d{4}"], ["69(?:2\\d\\d|3(?:0[0-46]|1[013]|2[0-2]|3[0-39]|4\\d|5[0-5]|6[0-6]|7[0-27]|8[0-8]|9[0-479]))\\d{4}"], ["80\\d{7}"], ["89[1-37-9]\\d{6}"], 0, 0, 0, 0, ["9(?:399[0-3]|479[0-5]|76(?:2[27]|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, "3[04-689]|[489]", 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", ["[7-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["2"]]], "0"], SA: ["966", "00", "92\\d{7}|(?:[15]|8\\d)\\d{8}", [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{3,4})", "$1 $2 $3", ["81"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"]]], "0"], SB: ["677", "0[01]", "(?:[1-6]|[7-9]\\d\\d)\\d{4}", [5, 7], [["(\\d{2})(\\d{5})", "$1 $2", ["7|8[4-9]|9(?:[1-8]|9[0-8])"]]]], SC: ["248", "010|0[0-2]", "800\\d{4}|(?:[249]\\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], [["(\\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-8]|[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", "(?:[256]\\d|8)\\d{3}", [4, 5], 0, 0, 0, 0, 0, 0, "[256]"], 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[0139]|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|[57]9)\\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)(\\d{7})", "$1 $2", ["(?:2|90)4|[67]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[348]|64|79|90"]], ["(\\d{2})(\\d{5,7})", "$1 $2", ["1|28|6[0-35-9]|77|9[2-9]"]]], "0"], SR: ["597", "00", "(?:[2-5]|68|[78]\\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-8]"]]]], 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", "[267]\\d{7}|[89]00\\d{4}(?:\\d{4})?", [7, 8, 11], [["(\\d{3})(\\d{4})", "$1 $2", ["[89]"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[267]"]], ["(\\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-39]\\d{8}|[1-5]\\d{7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[1-5]"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["9"], "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|[69]\\d|77)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2679]"]]], 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{8}", [9], [["(\\d{6})(\\d)(\\d{2})", "$1 $2 $3", ["331", "3317"]], ["(\\d{3})(\\d{2})(\\d{4})", "$1 $2 $3", ["[34]7"]], ["(\\d{4})(\\d)(\\d{4})", "$1 $2 $3", ["3[1-5]"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[0-57-9]"]]], 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-6]\\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", ["6"], "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-59]|61)", "5(?:[0-59]|616)", "5(?:[0-59]|6161)"], "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{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[258]0"], "0$1"], ["(\\d)(\\d{3,4})(\\d{4})", "$1 $2 $3", ["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]", "[23568]|4(?:0[2-48]|[1-47-9])|(?: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"], "0$1"], ["(\\d{3})(\\d{6})", "$1 $2", ["[27-9]|4(?:6[45]|[7-9])"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["[34]"], "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, [["5056(?:[0-35-9]\\d|4[46])\\d{4}|(?:4722|505[2-57-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-589]|3[149]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[01356]|3[0-24679]|4[167]|5[0-2]|6[014]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-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]|[34][016]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-7]|3[1247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|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-389]|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]|33|44|66|77|88)[2-9]\\d{6}"]]], UY: ["598", "0(?:0|1[3-9]\\d)", "(?:0004|4)\\d{9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}", [7, 8, 10, 13], [["(\\d{3})(\\d{4})", "$1 $2", ["405|8|90"], "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{4})", "$1 $2 $3", ["4"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3 $4", ["0"]]], "0", 0, 0, 0, 0, 0, 0, "00", " int. "], UZ: ["998", "810", "200\\d{6}|(?:33|[5-79]\\d|88)\\d{7}", [9], [["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[235-9]"], "8 $1"]], "8", 0, 0, 0, 0, 0, 0, "8~10"], 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], 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{7}|[16-8]\\d{6}", [7, 8, 9, 10], [["(\\d{2})(\\d{5})", "$1 $2", ["80"], "0$1", 1], ["(\\d{4})(\\d{4,6})", "$1 $2", ["1"], 0, 1], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["6"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[357-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)\\d{4}|8\\d{5}(?:\\d{3})?", [6, 9], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["[478]"]], ["(\\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", "[23]\\d{7,8}|(?:4\\d\\d|[89]00)\\d{5}", [8, 9], [["(\\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", ["[23]"], "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", "(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}", [9], 0, "0", 0, 0, 0, 0, 0, [["269(?:0[0-467]|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])\\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|63|[79]\\d)\\d{7}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[28]"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["[79]"], "0$1"]], "0"], ZW: ["263", "00", "2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}", [5, 6, 7, 8, 9, 10], [["(\\d{3})(\\d{3,5})", "$1 $2", ["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"], "0$1"], ["(\\d)(\\d{3})(\\d{2,4})", "$1 $2 $3", ["[49]"], "0$1"], ["(\\d{3})(\\d{4})", "$1 $2", ["80"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2", "2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|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", ["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)", "2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"], "0$1"], ["(\\d{4})(\\d{6})", "$1 $2", ["8"], "0$1"], ["(\\d{2})(\\d{3,5})", "$1 $2", ["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["29[013-9]|39|54"], "0$1"], ["(\\d{4})(\\d{3,5})", "$1 $2", ["(?:25|54)8", "258|5483"], "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}|[35-7]\\d{8}", [9, 12], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[35-7]"]]], 0, 0, 0, 0, 0, 0, [0, ["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"]]], 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, "[0-36-9]\\d{8}", [9], [["(\\d)(\\d{3})(\\d{5})", "$1 $2 $3", ["[0-36-9]"]]], 0, 0, 0, 0, 0, 0, [0, ["[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|51"]], ["(\\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})|50\\d{3})\\d{7}", [7, 8, 9, 10, 12]], 0, 0, 0, 0, 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[013-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}"]]] } };
103
+ function Wt(e, n) {
104
+ var t = Array.prototype.slice.call(n);
105
+ return t.push(Kt), e.apply(this, t);
106
+ }
107
+ function fe(e) {
108
+ "@babel/helpers - typeof";
109
+ return fe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) {
110
+ return typeof n;
111
+ } : function(n) {
112
+ return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
113
+ }, fe(e);
114
+ }
115
+ function Ae(e, n) {
116
+ for (var t = 0; t < n.length; t++) {
117
+ var d = n[t];
118
+ d.enumerable = d.enumerable || !1, d.configurable = !0, "value" in d && (d.writable = !0), Object.defineProperty(e, d.key, d);
119
+ }
120
+ }
121
+ function qt(e, n, t) {
122
+ return n && Ae(e.prototype, n), t && Ae(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
123
+ }
124
+ function Xt(e, n) {
125
+ if (!(e instanceof n))
126
+ throw new TypeError("Cannot call a class as a function");
127
+ }
128
+ function Yt(e, n) {
129
+ if (typeof n != "function" && n !== null)
130
+ throw new TypeError("Super expression must either be null or a function");
131
+ e.prototype = Object.create(n && n.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), n && W(e, n);
132
+ }
133
+ function Zt(e) {
134
+ var n = yt();
135
+ return function() {
136
+ var d = q(e), r;
137
+ if (n) {
138
+ var i = q(this).constructor;
139
+ r = Reflect.construct(d, arguments, i);
140
+ } else
141
+ r = d.apply(this, arguments);
142
+ return Jt(this, r);
143
+ };
144
+ }
145
+ function Jt(e, n) {
146
+ if (n && (fe(n) === "object" || typeof n == "function"))
147
+ return n;
148
+ if (n !== void 0)
149
+ throw new TypeError("Derived constructors may only return object or undefined");
150
+ return ht(e);
151
+ }
152
+ function ht(e) {
153
+ if (e === void 0)
154
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
155
+ return e;
156
+ }
157
+ function pe(e) {
158
+ var n = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
159
+ return pe = function(d) {
160
+ if (d === null || !Qt(d))
161
+ return d;
162
+ if (typeof d != "function")
163
+ throw new TypeError("Super expression must either be null or a function");
164
+ if (typeof n < "u") {
165
+ if (n.has(d))
166
+ return n.get(d);
167
+ n.set(d, r);
168
+ }
169
+ function r() {
170
+ return Z(d, arguments, q(this).constructor);
171
+ }
172
+ return r.prototype = Object.create(d.prototype, { constructor: { value: r, enumerable: !1, writable: !0, configurable: !0 } }), W(r, d);
173
+ }, pe(e);
174
+ }
175
+ function Z(e, n, t) {
176
+ return yt() ? Z = Reflect.construct : Z = function(r, i, o) {
177
+ var a = [null];
178
+ a.push.apply(a, i);
179
+ var $ = Function.bind.apply(r, a), s = new $();
180
+ return o && W(s, o.prototype), s;
181
+ }, Z.apply(null, arguments);
182
+ }
183
+ function yt() {
184
+ if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
185
+ return !1;
186
+ if (typeof Proxy == "function")
187
+ return !0;
188
+ try {
189
+ return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
190
+ })), !0;
191
+ } catch {
192
+ return !1;
193
+ }
194
+ }
195
+ function Qt(e) {
196
+ return Function.toString.call(e).indexOf("[native code]") !== -1;
197
+ }
198
+ function W(e, n) {
199
+ return W = Object.setPrototypeOf || function(d, r) {
200
+ return d.__proto__ = r, d;
201
+ }, W(e, n);
202
+ }
203
+ function q(e) {
204
+ return q = Object.setPrototypeOf ? Object.getPrototypeOf : function(t) {
205
+ return t.__proto__ || Object.getPrototypeOf(t);
206
+ }, q(e);
207
+ }
208
+ var N = /* @__PURE__ */ function(e) {
209
+ Yt(t, e);
210
+ var n = Zt(t);
211
+ function t(d) {
212
+ var r;
213
+ return Xt(this, t), r = n.call(this, d), Object.setPrototypeOf(ht(r), t.prototype), r.name = r.constructor.name, r;
214
+ }
215
+ return qt(t);
216
+ }(/* @__PURE__ */ pe(Error)), Pe = 2, en = 17, tn = 3, I = "0-90-9٠-٩۰-۹", nn = "-‐-―−ー-", dn = "//", rn = "..", on = "  ­​⁠ ", an = "()()[]\\[\\]", sn = "~⁓∼~", J = "".concat(nn).concat(dn).concat(rn).concat(on).concat(an).concat(sn), we = "++";
217
+ function Fe(e, n) {
218
+ e = e.split("-"), n = n.split("-");
219
+ for (var t = e[0].split("."), d = n[0].split("."), r = 0; r < 3; r++) {
220
+ var i = Number(t[r]), o = Number(d[r]);
221
+ if (i > o)
222
+ return 1;
223
+ if (o > i)
224
+ return -1;
225
+ if (!isNaN(i) && isNaN(o))
226
+ return 1;
227
+ if (isNaN(i) && !isNaN(o))
228
+ return -1;
229
+ }
230
+ return e[1] && n[1] ? e[1] > n[1] ? 1 : e[1] < n[1] ? -1 : 0 : !e[1] && n[1] ? 1 : e[1] && !n[1] ? -1 : 0;
231
+ }
232
+ function Q(e) {
233
+ "@babel/helpers - typeof";
234
+ return Q = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) {
235
+ return typeof n;
236
+ } : function(n) {
237
+ return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
238
+ }, Q(e);
239
+ }
240
+ function te(e, n) {
241
+ if (!(e instanceof n))
242
+ throw new TypeError("Cannot call a class as a function");
243
+ }
244
+ function De(e, n) {
245
+ for (var t = 0; t < n.length; t++) {
246
+ var d = n[t];
247
+ d.enumerable = d.enumerable || !1, d.configurable = !0, "value" in d && (d.writable = !0), Object.defineProperty(e, d.key, d);
248
+ }
249
+ }
250
+ function ne(e, n, t) {
251
+ return n && De(e.prototype, n), t && De(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
252
+ }
253
+ var ln = "1.2.0", $n = "1.7.35", Re = " ext. ", un = /^\d+$/, w = /* @__PURE__ */ function() {
254
+ function e(n) {
255
+ te(this, e), mn(n), this.metadata = n, gt.call(this, n);
256
+ }
257
+ return ne(e, [{
258
+ key: "getCountries",
259
+ value: function() {
260
+ return Object.keys(this.metadata.countries).filter(function(t) {
261
+ return t !== "001";
262
+ });
263
+ }
264
+ }, {
265
+ key: "getCountryMetadata",
266
+ value: function(t) {
267
+ return this.metadata.countries[t];
268
+ }
269
+ }, {
270
+ key: "nonGeographic",
271
+ value: function() {
272
+ if (!(this.v1 || this.v2 || this.v3))
273
+ return this.metadata.nonGeographic || this.metadata.nonGeographical;
274
+ }
275
+ }, {
276
+ key: "hasCountry",
277
+ value: function(t) {
278
+ return this.getCountryMetadata(t) !== void 0;
279
+ }
280
+ }, {
281
+ key: "hasCallingCode",
282
+ value: function(t) {
283
+ if (this.getCountryCodesForCallingCode(t))
284
+ return !0;
285
+ if (this.nonGeographic()) {
286
+ if (this.nonGeographic()[t])
287
+ return !0;
288
+ } else {
289
+ var d = this.countryCallingCodes()[t];
290
+ if (d && d.length === 1 && d[0] === "001")
291
+ return !0;
292
+ }
293
+ }
294
+ }, {
295
+ key: "isNonGeographicCallingCode",
296
+ value: function(t) {
297
+ return this.nonGeographic() ? !!this.nonGeographic()[t] : !this.getCountryCodesForCallingCode(t);
298
+ }
299
+ // Deprecated.
300
+ }, {
301
+ key: "country",
302
+ value: function(t) {
303
+ return this.selectNumberingPlan(t);
304
+ }
305
+ }, {
306
+ key: "selectNumberingPlan",
307
+ value: function(t, d) {
308
+ if (t && un.test(t) && (d = t, t = null), t && t !== "001") {
309
+ if (!this.hasCountry(t))
310
+ throw new Error("Unknown country: ".concat(t));
311
+ this.numberingPlan = new Me(this.getCountryMetadata(t), this);
312
+ } else if (d) {
313
+ if (!this.hasCallingCode(d))
314
+ throw new Error("Unknown calling code: ".concat(d));
315
+ this.numberingPlan = new Me(this.getNumberingPlanMetadata(d), this);
316
+ } else
317
+ this.numberingPlan = void 0;
318
+ return this;
319
+ }
320
+ }, {
321
+ key: "getCountryCodesForCallingCode",
322
+ value: function(t) {
323
+ var d = this.countryCallingCodes()[t];
324
+ if (d)
325
+ return d.length === 1 && d[0].length === 3 ? void 0 : d;
326
+ }
327
+ }, {
328
+ key: "getCountryCodeForCallingCode",
329
+ value: function(t) {
330
+ var d = this.getCountryCodesForCallingCode(t);
331
+ if (d)
332
+ return d[0];
333
+ }
334
+ }, {
335
+ key: "getNumberingPlanMetadata",
336
+ value: function(t) {
337
+ var d = this.getCountryCodeForCallingCode(t);
338
+ if (d)
339
+ return this.getCountryMetadata(d);
340
+ if (this.nonGeographic()) {
341
+ var r = this.nonGeographic()[t];
342
+ if (r)
343
+ return r;
344
+ } else {
345
+ var i = this.countryCallingCodes()[t];
346
+ if (i && i.length === 1 && i[0] === "001")
347
+ return this.metadata.countries["001"];
348
+ }
349
+ }
350
+ // Deprecated.
351
+ }, {
352
+ key: "countryCallingCode",
353
+ value: function() {
354
+ return this.numberingPlan.callingCode();
355
+ }
356
+ // Deprecated.
357
+ }, {
358
+ key: "IDDPrefix",
359
+ value: function() {
360
+ return this.numberingPlan.IDDPrefix();
361
+ }
362
+ // Deprecated.
363
+ }, {
364
+ key: "defaultIDDPrefix",
365
+ value: function() {
366
+ return this.numberingPlan.defaultIDDPrefix();
367
+ }
368
+ // Deprecated.
369
+ }, {
370
+ key: "nationalNumberPattern",
371
+ value: function() {
372
+ return this.numberingPlan.nationalNumberPattern();
373
+ }
374
+ // Deprecated.
375
+ }, {
376
+ key: "possibleLengths",
377
+ value: function() {
378
+ return this.numberingPlan.possibleLengths();
379
+ }
380
+ // Deprecated.
381
+ }, {
382
+ key: "formats",
383
+ value: function() {
384
+ return this.numberingPlan.formats();
385
+ }
386
+ // Deprecated.
387
+ }, {
388
+ key: "nationalPrefixForParsing",
389
+ value: function() {
390
+ return this.numberingPlan.nationalPrefixForParsing();
391
+ }
392
+ // Deprecated.
393
+ }, {
394
+ key: "nationalPrefixTransformRule",
395
+ value: function() {
396
+ return this.numberingPlan.nationalPrefixTransformRule();
397
+ }
398
+ // Deprecated.
399
+ }, {
400
+ key: "leadingDigits",
401
+ value: function() {
402
+ return this.numberingPlan.leadingDigits();
403
+ }
404
+ // Deprecated.
405
+ }, {
406
+ key: "hasTypes",
407
+ value: function() {
408
+ return this.numberingPlan.hasTypes();
409
+ }
410
+ // Deprecated.
411
+ }, {
412
+ key: "type",
413
+ value: function(t) {
414
+ return this.numberingPlan.type(t);
415
+ }
416
+ // Deprecated.
417
+ }, {
418
+ key: "ext",
419
+ value: function() {
420
+ return this.numberingPlan.ext();
421
+ }
422
+ }, {
423
+ key: "countryCallingCodes",
424
+ value: function() {
425
+ return this.v1 ? this.metadata.country_phone_code_to_countries : this.metadata.country_calling_codes;
426
+ }
427
+ // Deprecated.
428
+ }, {
429
+ key: "chooseCountryByCountryCallingCode",
430
+ value: function(t) {
431
+ return this.selectNumberingPlan(t);
432
+ }
433
+ }, {
434
+ key: "hasSelectedNumberingPlan",
435
+ value: function() {
436
+ return this.numberingPlan !== void 0;
437
+ }
438
+ }]), e;
439
+ }(), Me = /* @__PURE__ */ function() {
440
+ function e(n, t) {
441
+ te(this, e), this.globalMetadataObject = t, this.metadata = n, gt.call(this, t.metadata);
442
+ }
443
+ return ne(e, [{
444
+ key: "callingCode",
445
+ value: function() {
446
+ return this.metadata[0];
447
+ }
448
+ // Formatting information for regions which share
449
+ // a country calling code is contained by only one region
450
+ // for performance reasons. For example, for NANPA region
451
+ // ("North American Numbering Plan Administration",
452
+ // which includes USA, Canada, Cayman Islands, Bahamas, etc)
453
+ // it will be contained in the metadata for `US`.
454
+ }, {
455
+ key: "getDefaultCountryMetadataForRegion",
456
+ value: function() {
457
+ return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode());
458
+ }
459
+ // Is always present.
460
+ }, {
461
+ key: "IDDPrefix",
462
+ value: function() {
463
+ if (!(this.v1 || this.v2))
464
+ return this.metadata[1];
465
+ }
466
+ // Is only present when a country supports multiple IDD prefixes.
467
+ }, {
468
+ key: "defaultIDDPrefix",
469
+ value: function() {
470
+ if (!(this.v1 || this.v2))
471
+ return this.metadata[12];
472
+ }
473
+ }, {
474
+ key: "nationalNumberPattern",
475
+ value: function() {
476
+ return this.v1 || this.v2 ? this.metadata[1] : this.metadata[2];
477
+ }
478
+ // "possible length" data is always present in Google's metadata.
479
+ }, {
480
+ key: "possibleLengths",
481
+ value: function() {
482
+ if (!this.v1)
483
+ return this.metadata[this.v2 ? 2 : 3];
484
+ }
485
+ }, {
486
+ key: "_getFormats",
487
+ value: function(t) {
488
+ return t[this.v1 ? 2 : this.v2 ? 3 : 4];
489
+ }
490
+ // For countries of the same region (e.g. NANPA)
491
+ // formats are all stored in the "main" country for that region.
492
+ // E.g. "RU" and "KZ", "US" and "CA".
493
+ }, {
494
+ key: "formats",
495
+ value: function() {
496
+ var t = this, d = this._getFormats(this.metadata) || this._getFormats(this.getDefaultCountryMetadataForRegion()) || [];
497
+ return d.map(function(r) {
498
+ return new cn(r, t);
499
+ });
500
+ }
501
+ }, {
502
+ key: "nationalPrefix",
503
+ value: function() {
504
+ return this.metadata[this.v1 ? 3 : this.v2 ? 4 : 5];
505
+ }
506
+ }, {
507
+ key: "_getNationalPrefixFormattingRule",
508
+ value: function(t) {
509
+ return t[this.v1 ? 4 : this.v2 ? 5 : 6];
510
+ }
511
+ // For countries of the same region (e.g. NANPA)
512
+ // national prefix formatting rule is stored in the "main" country for that region.
513
+ // E.g. "RU" and "KZ", "US" and "CA".
514
+ }, {
515
+ key: "nationalPrefixFormattingRule",
516
+ value: function() {
517
+ return this._getNationalPrefixFormattingRule(this.metadata) || this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion());
518
+ }
519
+ }, {
520
+ key: "_nationalPrefixForParsing",
521
+ value: function() {
522
+ return this.metadata[this.v1 ? 5 : this.v2 ? 6 : 7];
523
+ }
524
+ }, {
525
+ key: "nationalPrefixForParsing",
526
+ value: function() {
527
+ return this._nationalPrefixForParsing() || this.nationalPrefix();
528
+ }
529
+ }, {
530
+ key: "nationalPrefixTransformRule",
531
+ value: function() {
532
+ return this.metadata[this.v1 ? 6 : this.v2 ? 7 : 8];
533
+ }
534
+ }, {
535
+ key: "_getNationalPrefixIsOptionalWhenFormatting",
536
+ value: function() {
537
+ return !!this.metadata[this.v1 ? 7 : this.v2 ? 8 : 9];
538
+ }
539
+ // For countries of the same region (e.g. NANPA)
540
+ // "national prefix is optional when formatting" flag is
541
+ // stored in the "main" country for that region.
542
+ // E.g. "RU" and "KZ", "US" and "CA".
543
+ }, {
544
+ key: "nationalPrefixIsOptionalWhenFormattingInNationalFormat",
545
+ value: function() {
546
+ return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata) || this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion());
547
+ }
548
+ }, {
549
+ key: "leadingDigits",
550
+ value: function() {
551
+ return this.metadata[this.v1 ? 8 : this.v2 ? 9 : 10];
552
+ }
553
+ }, {
554
+ key: "types",
555
+ value: function() {
556
+ return this.metadata[this.v1 ? 9 : this.v2 ? 10 : 11];
557
+ }
558
+ }, {
559
+ key: "hasTypes",
560
+ value: function() {
561
+ return this.types() && this.types().length === 0 ? !1 : !!this.types();
562
+ }
563
+ }, {
564
+ key: "type",
565
+ value: function(t) {
566
+ if (this.hasTypes() && ze(this.types(), t))
567
+ return new pn(ze(this.types(), t), this);
568
+ }
569
+ }, {
570
+ key: "ext",
571
+ value: function() {
572
+ return this.v1 || this.v2 ? Re : this.metadata[13] || Re;
573
+ }
574
+ }]), e;
575
+ }(), cn = /* @__PURE__ */ function() {
576
+ function e(n, t) {
577
+ te(this, e), this._format = n, this.metadata = t;
578
+ }
579
+ return ne(e, [{
580
+ key: "pattern",
581
+ value: function() {
582
+ return this._format[0];
583
+ }
584
+ }, {
585
+ key: "format",
586
+ value: function() {
587
+ return this._format[1];
588
+ }
589
+ }, {
590
+ key: "leadingDigitsPatterns",
591
+ value: function() {
592
+ return this._format[2] || [];
593
+ }
594
+ }, {
595
+ key: "nationalPrefixFormattingRule",
596
+ value: function() {
597
+ return this._format[3] || this.metadata.nationalPrefixFormattingRule();
598
+ }
599
+ }, {
600
+ key: "nationalPrefixIsOptionalWhenFormattingInNationalFormat",
601
+ value: function() {
602
+ return !!this._format[4] || this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat();
603
+ }
604
+ }, {
605
+ key: "nationalPrefixIsMandatoryWhenFormattingInNationalFormat",
606
+ value: function() {
607
+ return this.usesNationalPrefix() && !this.nationalPrefixIsOptionalWhenFormattingInNationalFormat();
608
+ }
609
+ // Checks whether national prefix formatting rule contains national prefix.
610
+ }, {
611
+ key: "usesNationalPrefix",
612
+ value: function() {
613
+ return !!(this.nationalPrefixFormattingRule() && // Check that national prefix formatting rule is not a "dummy" one.
614
+ !fn.test(this.nationalPrefixFormattingRule()));
615
+ }
616
+ }, {
617
+ key: "internationalFormat",
618
+ value: function() {
619
+ return this._format[5] || this.format();
620
+ }
621
+ }]), e;
622
+ }(), fn = /^\(?\$1\)?$/, pn = /* @__PURE__ */ function() {
623
+ function e(n, t) {
624
+ te(this, e), this.type = n, this.metadata = t;
625
+ }
626
+ return ne(e, [{
627
+ key: "pattern",
628
+ value: function() {
629
+ return this.metadata.v1 ? this.type : this.type[0];
630
+ }
631
+ }, {
632
+ key: "possibleLengths",
633
+ value: function() {
634
+ if (!this.metadata.v1)
635
+ return this.type[1] || this.metadata.possibleLengths();
636
+ }
637
+ }]), e;
638
+ }();
639
+ function ze(e, n) {
640
+ switch (n) {
641
+ case "FIXED_LINE":
642
+ return e[0];
643
+ case "MOBILE":
644
+ return e[1];
645
+ case "TOLL_FREE":
646
+ return e[2];
647
+ case "PREMIUM_RATE":
648
+ return e[3];
649
+ case "PERSONAL_NUMBER":
650
+ return e[4];
651
+ case "VOICEMAIL":
652
+ return e[5];
653
+ case "UAN":
654
+ return e[6];
655
+ case "PAGER":
656
+ return e[7];
657
+ case "VOIP":
658
+ return e[8];
659
+ case "SHARED_COST":
660
+ return e[9];
661
+ }
662
+ }
663
+ function mn(e) {
664
+ if (!e)
665
+ throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");
666
+ if (!ae(e) || !ae(e.countries))
667
+ throw 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 ".concat(ae(e) ? "an object of shape: { " + Object.keys(e).join(", ") + " }" : "a " + hn(e) + ": " + e, "."));
668
+ }
669
+ var ae = function(n) {
670
+ return Q(n) === "object";
671
+ }, hn = function(n) {
672
+ return Q(n);
673
+ };
674
+ function Oe(e, n) {
675
+ if (n = new w(n), n.hasCountry(e))
676
+ return n.country(e).countryCallingCode();
677
+ throw new Error("Unknown country: ".concat(e));
678
+ }
679
+ function yn(e, n) {
680
+ return n.countries.hasOwnProperty(e);
681
+ }
682
+ function gt(e) {
683
+ var n = e.version;
684
+ typeof n == "number" ? (this.v1 = n === 1, this.v2 = n === 2, this.v3 = n === 3, this.v4 = n === 4) : n ? Fe(n, ln) === -1 ? this.v2 = !0 : Fe(n, $n) === -1 ? this.v3 = !0 : this.v4 = !0 : this.v1 = !0;
685
+ }
686
+ var gn = ";ext=", k = function(n) {
687
+ return "([".concat(I, "]{1,").concat(n, "})");
688
+ };
689
+ function vt(e) {
690
+ var n = "20", t = "15", d = "9", r = "6", i = "[  \\t,]*", o = "[:\\..]?[  \\t,-]*", a = "#?", $ = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", s = "(?:[xx##~~]|int|int)", u = "[- ]+", l = "[  \\t]*", c = "(?:,{2}|;)", h = gn + k(n), O = i + $ + o + k(n) + a, de = i + s + o + k(d) + a, Et = u + k(r) + "#", Tt = l + c + o + k(t) + a, At = l + "(?:,)+" + o + k(d) + a;
691
+ return h + "|" + O + "|" + de + "|" + Et + "|" + Tt + "|" + At;
692
+ }
693
+ var vn = "[" + I + "]{" + Pe + "}", bn = "[" + we + "]{0,1}(?:[" + J + "]*[" + I + "]){3,}[" + J + I + "]*", _n = new RegExp("^[" + we + "]{0,1}(?:[" + J + "]*[" + I + "]){1,2}$", "i"), Cn = bn + // Phone number extensions
694
+ "(?:" + vt() + ")?", Pn = new RegExp(
695
+ // Either a short two-digit-only phone number
696
+ "^" + vn + "$|^" + Cn + "$",
697
+ "i"
698
+ );
699
+ function wn(e) {
700
+ return e.length >= Pe && Pn.test(e);
701
+ }
702
+ function On(e) {
703
+ return _n.test(e);
704
+ }
705
+ var Le = new RegExp("(?:" + vt() + ")$", "i");
706
+ function Sn(e) {
707
+ var n = e.search(Le);
708
+ if (n < 0)
709
+ return {};
710
+ for (var t = e.slice(0, n), d = e.match(Le), r = 1; r < d.length; ) {
711
+ if (d[r])
712
+ return {
713
+ number: t,
714
+ ext: d[r]
715
+ };
716
+ r++;
717
+ }
718
+ }
719
+ var In = {
720
+ 0: "0",
721
+ 1: "1",
722
+ 2: "2",
723
+ 3: "3",
724
+ 4: "4",
725
+ 5: "5",
726
+ 6: "6",
727
+ 7: "7",
728
+ 8: "8",
729
+ 9: "9",
730
+ "0": "0",
731
+ // Fullwidth digit 0
732
+ "1": "1",
733
+ // Fullwidth digit 1
734
+ "2": "2",
735
+ // Fullwidth digit 2
736
+ "3": "3",
737
+ // Fullwidth digit 3
738
+ "4": "4",
739
+ // Fullwidth digit 4
740
+ "5": "5",
741
+ // Fullwidth digit 5
742
+ "6": "6",
743
+ // Fullwidth digit 6
744
+ "7": "7",
745
+ // Fullwidth digit 7
746
+ "8": "8",
747
+ // Fullwidth digit 8
748
+ "9": "9",
749
+ // Fullwidth digit 9
750
+ "٠": "0",
751
+ // Arabic-indic digit 0
752
+ "١": "1",
753
+ // Arabic-indic digit 1
754
+ "٢": "2",
755
+ // Arabic-indic digit 2
756
+ "٣": "3",
757
+ // Arabic-indic digit 3
758
+ "٤": "4",
759
+ // Arabic-indic digit 4
760
+ "٥": "5",
761
+ // Arabic-indic digit 5
762
+ "٦": "6",
763
+ // Arabic-indic digit 6
764
+ "٧": "7",
765
+ // Arabic-indic digit 7
766
+ "٨": "8",
767
+ // Arabic-indic digit 8
768
+ "٩": "9",
769
+ // Arabic-indic digit 9
770
+ "۰": "0",
771
+ // Eastern-Arabic digit 0
772
+ "۱": "1",
773
+ // Eastern-Arabic digit 1
774
+ "۲": "2",
775
+ // Eastern-Arabic digit 2
776
+ "۳": "3",
777
+ // Eastern-Arabic digit 3
778
+ "۴": "4",
779
+ // Eastern-Arabic digit 4
780
+ "۵": "5",
781
+ // Eastern-Arabic digit 5
782
+ "۶": "6",
783
+ // Eastern-Arabic digit 6
784
+ "۷": "7",
785
+ // Eastern-Arabic digit 7
786
+ "۸": "8",
787
+ // Eastern-Arabic digit 8
788
+ "۹": "9"
789
+ // Eastern-Arabic digit 9
790
+ };
791
+ function Nn(e) {
792
+ return In[e];
793
+ }
794
+ function En(e, n) {
795
+ var t = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
796
+ if (t)
797
+ return (t = t.call(e)).next.bind(t);
798
+ if (Array.isArray(e) || (t = Tn(e)) || n && e && typeof e.length == "number") {
799
+ t && (e = t);
800
+ var d = 0;
801
+ return function() {
802
+ return d >= e.length ? { done: !0 } : { done: !1, value: e[d++] };
803
+ };
804
+ }
805
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
806
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
807
+ }
808
+ function Tn(e, n) {
809
+ if (e) {
810
+ if (typeof e == "string")
811
+ return xe(e, n);
812
+ var t = Object.prototype.toString.call(e).slice(8, -1);
813
+ if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set")
814
+ return Array.from(e);
815
+ if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))
816
+ return xe(e, n);
817
+ }
818
+ }
819
+ function xe(e, n) {
820
+ (n == null || n > e.length) && (n = e.length);
821
+ for (var t = 0, d = new Array(n); t < n; t++)
822
+ d[t] = e[t];
823
+ return d;
824
+ }
825
+ function ke(e) {
826
+ for (var n = "", t = En(e.split("")), d; !(d = t()).done; ) {
827
+ var r = d.value;
828
+ n += An(r, n) || "";
829
+ }
830
+ return n;
831
+ }
832
+ function An(e, n) {
833
+ return e === "+" ? n ? void 0 : "+" : Nn(e);
834
+ }
835
+ function Fn(e, n) {
836
+ var t = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
837
+ if (t)
838
+ return (t = t.call(e)).next.bind(t);
839
+ if (Array.isArray(e) || (t = Dn(e)) || n && e && typeof e.length == "number") {
840
+ t && (e = t);
841
+ var d = 0;
842
+ return function() {
843
+ return d >= e.length ? { done: !0 } : { done: !1, value: e[d++] };
844
+ };
845
+ }
846
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
847
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
848
+ }
849
+ function Dn(e, n) {
850
+ if (e) {
851
+ if (typeof e == "string")
852
+ return je(e, n);
853
+ var t = Object.prototype.toString.call(e).slice(8, -1);
854
+ if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set")
855
+ return Array.from(e);
856
+ if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))
857
+ return je(e, n);
858
+ }
859
+ }
860
+ function je(e, n) {
861
+ (n == null || n > e.length) && (n = e.length);
862
+ for (var t = 0, d = new Array(n); t < n; t++)
863
+ d[t] = e[t];
864
+ return d;
865
+ }
866
+ function Rn(e, n) {
867
+ for (var t = e.slice(), d = Fn(n), r; !(r = d()).done; ) {
868
+ var i = r.value;
869
+ e.indexOf(i) < 0 && t.push(i);
870
+ }
871
+ return t.sort(function(o, a) {
872
+ return o - a;
873
+ });
874
+ }
875
+ function Se(e, n) {
876
+ return bt(e, void 0, n);
877
+ }
878
+ function bt(e, n, t) {
879
+ var d = t.type(n), r = d && d.possibleLengths() || t.possibleLengths();
880
+ if (!r)
881
+ return "IS_POSSIBLE";
882
+ if (n === "FIXED_LINE_OR_MOBILE") {
883
+ if (!t.type("FIXED_LINE"))
884
+ return bt(e, "MOBILE", t);
885
+ var i = t.type("MOBILE");
886
+ i && (r = Rn(r, i.possibleLengths()));
887
+ } else if (n && !d)
888
+ return "INVALID_LENGTH";
889
+ var o = e.length, a = r[0];
890
+ return a === o ? "IS_POSSIBLE" : a > o ? "TOO_SHORT" : r[r.length - 1] < o ? "TOO_LONG" : r.indexOf(o, 1) >= 0 ? "IS_POSSIBLE" : "INVALID_LENGTH";
891
+ }
892
+ function Mn(e, n, t) {
893
+ if (n === void 0 && (n = {}), t = new w(t), n.v2) {
894
+ if (!e.countryCallingCode)
895
+ throw new Error("Invalid phone number object passed");
896
+ t.selectNumberingPlan(e.countryCallingCode);
897
+ } else {
898
+ if (!e.phone)
899
+ return !1;
900
+ if (e.country) {
901
+ if (!t.hasCountry(e.country))
902
+ throw new Error("Unknown country: ".concat(e.country));
903
+ t.country(e.country);
904
+ } else {
905
+ if (!e.countryCallingCode)
906
+ throw new Error("Invalid phone number object passed");
907
+ t.selectNumberingPlan(e.countryCallingCode);
908
+ }
909
+ }
910
+ if (t.possibleLengths())
911
+ return _t(e.phone || e.nationalNumber, t);
912
+ if (e.countryCallingCode && t.isNonGeographicCallingCode(e.countryCallingCode))
913
+ return !0;
914
+ throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.');
915
+ }
916
+ function _t(e, n) {
917
+ switch (Se(e, n)) {
918
+ case "IS_POSSIBLE":
919
+ return !0;
920
+ default:
921
+ return !1;
922
+ }
923
+ }
924
+ function T(e, n) {
925
+ return e = e || "", new RegExp("^(?:" + n + ")$").test(e);
926
+ }
927
+ function zn(e, n) {
928
+ var t = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
929
+ if (t)
930
+ return (t = t.call(e)).next.bind(t);
931
+ if (Array.isArray(e) || (t = Ln(e)) || n && e && typeof e.length == "number") {
932
+ t && (e = t);
933
+ var d = 0;
934
+ return function() {
935
+ return d >= e.length ? { done: !0 } : { done: !1, value: e[d++] };
936
+ };
937
+ }
938
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
939
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
940
+ }
941
+ function Ln(e, n) {
942
+ if (e) {
943
+ if (typeof e == "string")
944
+ return Be(e, n);
945
+ var t = Object.prototype.toString.call(e).slice(8, -1);
946
+ if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set")
947
+ return Array.from(e);
948
+ if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))
949
+ return Be(e, n);
950
+ }
951
+ }
952
+ function Be(e, n) {
953
+ (n == null || n > e.length) && (n = e.length);
954
+ for (var t = 0, d = new Array(n); t < n; t++)
955
+ d[t] = e[t];
956
+ return d;
957
+ }
958
+ var xn = ["MOBILE", "PREMIUM_RATE", "TOLL_FREE", "SHARED_COST", "VOIP", "PERSONAL_NUMBER", "PAGER", "UAN", "VOICEMAIL"];
959
+ function Ie(e, n, t) {
960
+ if (n = n || {}, !!e.country) {
961
+ t = new w(t), t.selectNumberingPlan(e.country, e.countryCallingCode);
962
+ var d = n.v2 ? e.nationalNumber : e.phone;
963
+ if (T(d, t.nationalNumberPattern())) {
964
+ if (se(d, "FIXED_LINE", t))
965
+ return t.type("MOBILE") && t.type("MOBILE").pattern() === "" || !t.type("MOBILE") || se(d, "MOBILE", t) ? "FIXED_LINE_OR_MOBILE" : "FIXED_LINE";
966
+ for (var r = zn(xn), i; !(i = r()).done; ) {
967
+ var o = i.value;
968
+ if (se(d, o, t))
969
+ return o;
970
+ }
971
+ }
972
+ }
973
+ }
974
+ function se(e, n, t) {
975
+ return n = t.type(n), !n || !n.pattern() || n.possibleLengths() && n.possibleLengths().indexOf(e.length) < 0 ? !1 : T(e, n.pattern());
976
+ }
977
+ function kn(e, n, t) {
978
+ if (n = n || {}, t = new w(t), t.selectNumberingPlan(e.country, e.countryCallingCode), t.hasTypes())
979
+ return Ie(e, n, t.metadata) !== void 0;
980
+ var d = n.v2 ? e.nationalNumber : e.phone;
981
+ return T(d, t.nationalNumberPattern());
982
+ }
983
+ function jn(e, n, t) {
984
+ var d = new w(t), r = d.getCountryCodesForCallingCode(e);
985
+ return r ? r.filter(function(i) {
986
+ return Bn(n, i, t);
987
+ }) : [];
988
+ }
989
+ function Bn(e, n, t) {
990
+ var d = new w(t);
991
+ return d.selectNumberingPlan(n), d.numberingPlan.possibleLengths().indexOf(e.length) >= 0;
992
+ }
993
+ function Un(e) {
994
+ return e.replace(new RegExp("[".concat(J, "]+"), "g"), " ").trim();
995
+ }
996
+ var Gn = /(\$\d)/;
997
+ function Vn(e, n, t) {
998
+ var d = t.useInternationalFormat, r = t.withNationalPrefix;
999
+ t.carrierCode, t.metadata;
1000
+ var i = e.replace(new RegExp(n.pattern()), d ? n.internationalFormat() : (
1001
+ // This library doesn't use `domestic_carrier_code_formatting_rule`,
1002
+ // because that one is only used when formatting phone numbers
1003
+ // for dialing from a mobile phone, and this is not a dialing library.
1004
+ // carrierCode && format.domesticCarrierCodeFormattingRule()
1005
+ // // First, replace the $CC in the formatting rule with the desired carrier code.
1006
+ // // Then, replace the $FG in the formatting rule with the first group
1007
+ // // and the carrier code combined in the appropriate way.
1008
+ // ? format.format().replace(FIRST_GROUP_PATTERN, format.domesticCarrierCodeFormattingRule().replace('$CC', carrierCode))
1009
+ // : (
1010
+ // withNationalPrefix && format.nationalPrefixFormattingRule()
1011
+ // ? format.format().replace(FIRST_GROUP_PATTERN, format.nationalPrefixFormattingRule())
1012
+ // : format.format()
1013
+ // )
1014
+ r && n.nationalPrefixFormattingRule() ? n.format().replace(Gn, n.nationalPrefixFormattingRule()) : n.format()
1015
+ ));
1016
+ return d ? Un(i) : i;
1017
+ }
1018
+ var Hn = /^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;
1019
+ function Kn(e, n, t) {
1020
+ var d = new w(t);
1021
+ if (d.selectNumberingPlan(e, n), d.defaultIDDPrefix())
1022
+ return d.defaultIDDPrefix();
1023
+ if (Hn.test(d.IDDPrefix()))
1024
+ return d.IDDPrefix();
1025
+ }
1026
+ function Wn(e) {
1027
+ var n = e.number, t = e.ext;
1028
+ if (!n)
1029
+ return "";
1030
+ if (n[0] !== "+")
1031
+ throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');
1032
+ return "tel:".concat(n).concat(t ? ";ext=" + t : "");
1033
+ }
1034
+ function qn(e, n) {
1035
+ var t = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
1036
+ if (t)
1037
+ return (t = t.call(e)).next.bind(t);
1038
+ if (Array.isArray(e) || (t = Xn(e)) || n && e && typeof e.length == "number") {
1039
+ t && (e = t);
1040
+ var d = 0;
1041
+ return function() {
1042
+ return d >= e.length ? { done: !0 } : { done: !1, value: e[d++] };
1043
+ };
1044
+ }
1045
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1046
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1047
+ }
1048
+ function Xn(e, n) {
1049
+ if (e) {
1050
+ if (typeof e == "string")
1051
+ return Ue(e, n);
1052
+ var t = Object.prototype.toString.call(e).slice(8, -1);
1053
+ if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set")
1054
+ return Array.from(e);
1055
+ if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))
1056
+ return Ue(e, n);
1057
+ }
1058
+ }
1059
+ function Ue(e, n) {
1060
+ (n == null || n > e.length) && (n = e.length);
1061
+ for (var t = 0, d = new Array(n); t < n; t++)
1062
+ d[t] = e[t];
1063
+ return d;
1064
+ }
1065
+ function Ge(e, n) {
1066
+ var t = Object.keys(e);
1067
+ if (Object.getOwnPropertySymbols) {
1068
+ var d = Object.getOwnPropertySymbols(e);
1069
+ n && (d = d.filter(function(r) {
1070
+ return Object.getOwnPropertyDescriptor(e, r).enumerable;
1071
+ })), t.push.apply(t, d);
1072
+ }
1073
+ return t;
1074
+ }
1075
+ function Ve(e) {
1076
+ for (var n = 1; n < arguments.length; n++) {
1077
+ var t = arguments[n] != null ? arguments[n] : {};
1078
+ n % 2 ? Ge(Object(t), !0).forEach(function(d) {
1079
+ Yn(e, d, t[d]);
1080
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Ge(Object(t)).forEach(function(d) {
1081
+ Object.defineProperty(e, d, Object.getOwnPropertyDescriptor(t, d));
1082
+ });
1083
+ }
1084
+ return e;
1085
+ }
1086
+ function Yn(e, n, t) {
1087
+ return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
1088
+ }
1089
+ var He = {
1090
+ formatExtension: function(n, t, d) {
1091
+ return "".concat(n).concat(d.ext()).concat(t);
1092
+ }
1093
+ };
1094
+ function Zn(e, n, t, d) {
1095
+ if (t ? t = Ve(Ve({}, He), t) : t = He, d = new w(d), e.country && e.country !== "001") {
1096
+ if (!d.hasCountry(e.country))
1097
+ throw new Error("Unknown country: ".concat(e.country));
1098
+ d.country(e.country);
1099
+ } else if (e.countryCallingCode)
1100
+ d.selectNumberingPlan(e.countryCallingCode);
1101
+ else
1102
+ return e.phone || "";
1103
+ var r = d.countryCallingCode(), i = t.v2 ? e.nationalNumber : e.phone, o;
1104
+ switch (n) {
1105
+ case "NATIONAL":
1106
+ return i ? (o = ee(i, e.carrierCode, "NATIONAL", d, t), le(o, e.ext, d, t.formatExtension)) : "";
1107
+ case "INTERNATIONAL":
1108
+ return i ? (o = ee(i, null, "INTERNATIONAL", d, t), o = "+".concat(r, " ").concat(o), le(o, e.ext, d, t.formatExtension)) : "+".concat(r);
1109
+ case "E.164":
1110
+ return "+".concat(r).concat(i);
1111
+ case "RFC3966":
1112
+ return Wn({
1113
+ number: "+".concat(r).concat(i),
1114
+ ext: e.ext
1115
+ });
1116
+ case "IDD":
1117
+ if (!t.fromCountry)
1118
+ return;
1119
+ var a = Qn(i, e.carrierCode, r, t.fromCountry, d);
1120
+ return le(a, e.ext, d, t.formatExtension);
1121
+ default:
1122
+ throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(n, '"'));
1123
+ }
1124
+ }
1125
+ function ee(e, n, t, d, r) {
1126
+ var i = Jn(d.formats(), e);
1127
+ return i ? Vn(e, i, {
1128
+ useInternationalFormat: t === "INTERNATIONAL",
1129
+ withNationalPrefix: !(i.nationalPrefixIsOptionalWhenFormattingInNationalFormat() && r && r.nationalPrefix === !1),
1130
+ carrierCode: n,
1131
+ metadata: d
1132
+ }) : e;
1133
+ }
1134
+ function Jn(e, n) {
1135
+ for (var t = qn(e), d; !(d = t()).done; ) {
1136
+ var r = d.value;
1137
+ if (r.leadingDigitsPatterns().length > 0) {
1138
+ var i = r.leadingDigitsPatterns()[r.leadingDigitsPatterns().length - 1];
1139
+ if (n.search(i) !== 0)
1140
+ continue;
1141
+ }
1142
+ if (T(n, r.pattern()))
1143
+ return r;
1144
+ }
1145
+ }
1146
+ function le(e, n, t, d) {
1147
+ return n ? d(e, n, t) : e;
1148
+ }
1149
+ function Qn(e, n, t, d, r) {
1150
+ var i = Oe(d, r.metadata);
1151
+ if (i === t) {
1152
+ var o = ee(e, n, "NATIONAL", r);
1153
+ return t === "1" ? t + " " + o : o;
1154
+ }
1155
+ var a = Kn(d, void 0, r.metadata);
1156
+ if (a)
1157
+ return "".concat(a, " ").concat(t, " ").concat(ee(e, null, "INTERNATIONAL", r));
1158
+ }
1159
+ function Ke(e, n) {
1160
+ var t = Object.keys(e);
1161
+ if (Object.getOwnPropertySymbols) {
1162
+ var d = Object.getOwnPropertySymbols(e);
1163
+ n && (d = d.filter(function(r) {
1164
+ return Object.getOwnPropertyDescriptor(e, r).enumerable;
1165
+ })), t.push.apply(t, d);
1166
+ }
1167
+ return t;
1168
+ }
1169
+ function We(e) {
1170
+ for (var n = 1; n < arguments.length; n++) {
1171
+ var t = arguments[n] != null ? arguments[n] : {};
1172
+ n % 2 ? Ke(Object(t), !0).forEach(function(d) {
1173
+ ed(e, d, t[d]);
1174
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Ke(Object(t)).forEach(function(d) {
1175
+ Object.defineProperty(e, d, Object.getOwnPropertyDescriptor(t, d));
1176
+ });
1177
+ }
1178
+ return e;
1179
+ }
1180
+ function ed(e, n, t) {
1181
+ return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
1182
+ }
1183
+ function td(e, n) {
1184
+ if (!(e instanceof n))
1185
+ throw new TypeError("Cannot call a class as a function");
1186
+ }
1187
+ function qe(e, n) {
1188
+ for (var t = 0; t < n.length; t++) {
1189
+ var d = n[t];
1190
+ d.enumerable = d.enumerable || !1, d.configurable = !0, "value" in d && (d.writable = !0), Object.defineProperty(e, d.key, d);
1191
+ }
1192
+ }
1193
+ function nd(e, n, t) {
1194
+ return n && qe(e.prototype, n), t && qe(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
1195
+ }
1196
+ var dd = /* @__PURE__ */ function() {
1197
+ function e(n, t, d) {
1198
+ if (td(this, e), !n)
1199
+ throw new TypeError("`country` or `countryCallingCode` not passed");
1200
+ if (!t)
1201
+ throw new TypeError("`nationalNumber` not passed");
1202
+ if (!d)
1203
+ throw new TypeError("`metadata` not passed");
1204
+ var r = id(n, d), i = r.country, o = r.countryCallingCode;
1205
+ this.country = i, this.countryCallingCode = o, this.nationalNumber = t, this.number = "+" + this.countryCallingCode + this.nationalNumber, this.getMetadata = function() {
1206
+ return d;
1207
+ };
1208
+ }
1209
+ return nd(e, [{
1210
+ key: "setExt",
1211
+ value: function(t) {
1212
+ this.ext = t;
1213
+ }
1214
+ }, {
1215
+ key: "getPossibleCountries",
1216
+ value: function() {
1217
+ return this.country ? [this.country] : jn(this.countryCallingCode, this.nationalNumber, this.getMetadata());
1218
+ }
1219
+ }, {
1220
+ key: "isPossible",
1221
+ value: function() {
1222
+ return Mn(this, {
1223
+ v2: !0
1224
+ }, this.getMetadata());
1225
+ }
1226
+ }, {
1227
+ key: "isValid",
1228
+ value: function() {
1229
+ return kn(this, {
1230
+ v2: !0
1231
+ }, this.getMetadata());
1232
+ }
1233
+ }, {
1234
+ key: "isNonGeographic",
1235
+ value: function() {
1236
+ var t = new w(this.getMetadata());
1237
+ return t.isNonGeographicCallingCode(this.countryCallingCode);
1238
+ }
1239
+ }, {
1240
+ key: "isEqual",
1241
+ value: function(t) {
1242
+ return this.number === t.number && this.ext === t.ext;
1243
+ }
1244
+ // This function was originally meant to be an equivalent for `validatePhoneNumberLength()`,
1245
+ // but later it was found out that it doesn't include the possible `TOO_SHORT` result
1246
+ // returned from `parsePhoneNumberWithError()` in the original `validatePhoneNumberLength()`,
1247
+ // so eventually I simply commented out this method from the `PhoneNumber` class
1248
+ // and just left the `validatePhoneNumberLength()` function, even though that one would require
1249
+ // and additional step to also validate the actual country / calling code of the phone number.
1250
+ // validateLength() {
1251
+ // const metadata = new Metadata(this.getMetadata())
1252
+ // metadata.selectNumberingPlan(this.countryCallingCode)
1253
+ // const result = checkNumberLength(this.nationalNumber, metadata)
1254
+ // if (result !== 'IS_POSSIBLE') {
1255
+ // return result
1256
+ // }
1257
+ // }
1258
+ }, {
1259
+ key: "getType",
1260
+ value: function() {
1261
+ return Ie(this, {
1262
+ v2: !0
1263
+ }, this.getMetadata());
1264
+ }
1265
+ }, {
1266
+ key: "format",
1267
+ value: function(t, d) {
1268
+ return Zn(this, t, d ? We(We({}, d), {}, {
1269
+ v2: !0
1270
+ }) : {
1271
+ v2: !0
1272
+ }, this.getMetadata());
1273
+ }
1274
+ }, {
1275
+ key: "formatNational",
1276
+ value: function(t) {
1277
+ return this.format("NATIONAL", t);
1278
+ }
1279
+ }, {
1280
+ key: "formatInternational",
1281
+ value: function(t) {
1282
+ return this.format("INTERNATIONAL", t);
1283
+ }
1284
+ }, {
1285
+ key: "getURI",
1286
+ value: function(t) {
1287
+ return this.format("RFC3966", t);
1288
+ }
1289
+ }]), e;
1290
+ }(), rd = function(n) {
1291
+ return /^[A-Z]{2}$/.test(n);
1292
+ };
1293
+ function id(e, n) {
1294
+ var t, d, r = new w(n);
1295
+ return rd(e) ? (t = e, r.selectNumberingPlan(t), d = r.countryCallingCode()) : d = e, {
1296
+ country: t,
1297
+ countryCallingCode: d
1298
+ };
1299
+ }
1300
+ var od = new RegExp("([" + I + "])");
1301
+ function ad(e, n, t, d) {
1302
+ if (n) {
1303
+ var r = new w(d);
1304
+ r.selectNumberingPlan(n, t);
1305
+ var i = new RegExp(r.IDDPrefix());
1306
+ if (e.search(i) === 0) {
1307
+ e = e.slice(e.match(i)[0].length);
1308
+ var o = e.match(od);
1309
+ if (!(o && o[1] != null && o[1].length > 0 && o[1] === "0"))
1310
+ return e;
1311
+ }
1312
+ }
1313
+ }
1314
+ function sd(e, n) {
1315
+ if (e && n.numberingPlan.nationalPrefixForParsing()) {
1316
+ var t = new RegExp("^(?:" + n.numberingPlan.nationalPrefixForParsing() + ")"), d = t.exec(e);
1317
+ if (d) {
1318
+ var r, i, o = d.length - 1, a = o > 0 && d[o];
1319
+ if (n.nationalPrefixTransformRule() && a)
1320
+ r = e.replace(t, n.nationalPrefixTransformRule()), o > 1 && (i = d[1]);
1321
+ else {
1322
+ var $ = d[0];
1323
+ r = e.slice($.length), a && (i = d[1]);
1324
+ }
1325
+ var s;
1326
+ if (a) {
1327
+ var u = e.indexOf(d[1]), l = e.slice(0, u);
1328
+ l === n.numberingPlan.nationalPrefix() && (s = n.numberingPlan.nationalPrefix());
1329
+ } else
1330
+ s = d[0];
1331
+ return {
1332
+ nationalNumber: r,
1333
+ nationalPrefix: s,
1334
+ carrierCode: i
1335
+ };
1336
+ }
1337
+ }
1338
+ return {
1339
+ nationalNumber: e
1340
+ };
1341
+ }
1342
+ function me(e, n) {
1343
+ var t = sd(e, n), d = t.carrierCode, r = t.nationalNumber;
1344
+ if (r !== e) {
1345
+ if (!ld(e, r, n))
1346
+ return {
1347
+ nationalNumber: e
1348
+ };
1349
+ if (n.possibleLengths() && !$d(r, n))
1350
+ return {
1351
+ nationalNumber: e
1352
+ };
1353
+ }
1354
+ return {
1355
+ nationalNumber: r,
1356
+ carrierCode: d
1357
+ };
1358
+ }
1359
+ function ld(e, n, t) {
1360
+ return !(T(e, t.nationalNumberPattern()) && !T(n, t.nationalNumberPattern()));
1361
+ }
1362
+ function $d(e, n) {
1363
+ switch (Se(e, n)) {
1364
+ case "TOO_SHORT":
1365
+ case "INVALID_LENGTH":
1366
+ return !1;
1367
+ default:
1368
+ return !0;
1369
+ }
1370
+ }
1371
+ function ud(e, n, t, d) {
1372
+ var r = n ? Oe(n, d) : t;
1373
+ if (e.indexOf(r) === 0) {
1374
+ d = new w(d), d.selectNumberingPlan(n, t);
1375
+ var i = e.slice(r.length), o = me(i, d), a = o.nationalNumber, $ = me(e, d), s = $.nationalNumber;
1376
+ if (!T(s, d.nationalNumberPattern()) && T(a, d.nationalNumberPattern()) || Se(s, d) === "TOO_LONG")
1377
+ return {
1378
+ countryCallingCode: r,
1379
+ number: i
1380
+ };
1381
+ }
1382
+ return {
1383
+ number: e
1384
+ };
1385
+ }
1386
+ function cd(e, n, t, d) {
1387
+ if (!e)
1388
+ return {};
1389
+ var r;
1390
+ if (e[0] !== "+") {
1391
+ var i = ad(e, n, t, d);
1392
+ if (i && i !== e)
1393
+ r = !0, e = "+" + i;
1394
+ else {
1395
+ if (n || t) {
1396
+ var o = ud(e, n, t, d), a = o.countryCallingCode, $ = o.number;
1397
+ if (a)
1398
+ return {
1399
+ countryCallingCodeSource: "FROM_NUMBER_WITHOUT_PLUS_SIGN",
1400
+ countryCallingCode: a,
1401
+ number: $
1402
+ };
1403
+ }
1404
+ return {
1405
+ // No need to set it to `UNSPECIFIED`. It can be just `undefined`.
1406
+ // countryCallingCodeSource: 'UNSPECIFIED',
1407
+ number: e
1408
+ };
1409
+ }
1410
+ }
1411
+ if (e[1] === "0")
1412
+ return {};
1413
+ d = new w(d);
1414
+ for (var s = 2; s - 1 <= tn && s <= e.length; ) {
1415
+ var u = e.slice(1, s);
1416
+ if (d.hasCallingCode(u))
1417
+ return d.selectNumberingPlan(u), {
1418
+ countryCallingCodeSource: r ? "FROM_NUMBER_WITH_IDD" : "FROM_NUMBER_WITH_PLUS_SIGN",
1419
+ countryCallingCode: u,
1420
+ number: e.slice(s)
1421
+ };
1422
+ s++;
1423
+ }
1424
+ return {};
1425
+ }
1426
+ function fd(e, n) {
1427
+ var t = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
1428
+ if (t)
1429
+ return (t = t.call(e)).next.bind(t);
1430
+ if (Array.isArray(e) || (t = pd(e)) || n && e && typeof e.length == "number") {
1431
+ t && (e = t);
1432
+ var d = 0;
1433
+ return function() {
1434
+ return d >= e.length ? { done: !0 } : { done: !1, value: e[d++] };
1435
+ };
1436
+ }
1437
+ throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1438
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1439
+ }
1440
+ function pd(e, n) {
1441
+ if (e) {
1442
+ if (typeof e == "string")
1443
+ return Xe(e, n);
1444
+ var t = Object.prototype.toString.call(e).slice(8, -1);
1445
+ if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set")
1446
+ return Array.from(e);
1447
+ if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))
1448
+ return Xe(e, n);
1449
+ }
1450
+ }
1451
+ function Xe(e, n) {
1452
+ (n == null || n > e.length) && (n = e.length);
1453
+ for (var t = 0, d = new Array(n); t < n; t++)
1454
+ d[t] = e[t];
1455
+ return d;
1456
+ }
1457
+ function md(e, n) {
1458
+ var t = n.countries, d = n.defaultCountry, r = n.metadata;
1459
+ r = new w(r);
1460
+ for (var i = [], o = fd(t), a; !(a = o()).done; ) {
1461
+ var $ = a.value;
1462
+ if (r.country($), r.leadingDigits()) {
1463
+ if (e && e.search(r.leadingDigits()) === 0)
1464
+ return $;
1465
+ } else if (Ie({
1466
+ phone: e,
1467
+ country: $
1468
+ }, void 0, r.metadata))
1469
+ if (d) {
1470
+ if ($ === d)
1471
+ return $;
1472
+ i.push($);
1473
+ } else
1474
+ return $;
1475
+ }
1476
+ if (i.length > 0)
1477
+ return i[0];
1478
+ }
1479
+ var hd = !1;
1480
+ function yd(e, n) {
1481
+ var t = n.nationalNumber, d = n.defaultCountry, r = n.metadata;
1482
+ if (hd && r.isNonGeographicCallingCode(e))
1483
+ return "001";
1484
+ var i = r.getCountryCodesForCallingCode(e);
1485
+ if (i)
1486
+ return i.length === 1 ? i[0] : md(t, {
1487
+ countries: i,
1488
+ defaultCountry: d,
1489
+ metadata: r.metadata
1490
+ });
1491
+ }
1492
+ var Ct = "+", gd = "[\\-\\.\\(\\)]?", Ye = "([" + I + "]|" + gd + ")", vd = "^\\" + Ct + Ye + "*[" + I + "]" + Ye + "*$", bd = new RegExp(vd, "g"), he = I, _d = "[" + he + "]+((\\-)*[" + he + "])*", Cd = "a-zA-Z", Pd = "[" + Cd + "]+((\\-)*[" + he + "])*", wd = "^(" + _d + "\\.)*" + Pd + "\\.?$", Od = new RegExp(wd, "g"), Ze = "tel:", ye = ";phone-context=", Sd = ";isub=";
1493
+ function Id(e) {
1494
+ var n = e.indexOf(ye);
1495
+ if (n < 0)
1496
+ return null;
1497
+ var t = n + ye.length;
1498
+ if (t >= e.length)
1499
+ return "";
1500
+ var d = e.indexOf(";", t);
1501
+ return d >= 0 ? e.substring(t, d) : e.substring(t);
1502
+ }
1503
+ function Nd(e) {
1504
+ return e === null ? !0 : e.length === 0 ? !1 : bd.test(e) || Od.test(e);
1505
+ }
1506
+ function Ed(e, n) {
1507
+ var t = n.extractFormattedPhoneNumber, d = Id(e);
1508
+ if (!Nd(d))
1509
+ throw new N("NOT_A_NUMBER");
1510
+ var r;
1511
+ if (d === null)
1512
+ r = t(e) || "";
1513
+ else {
1514
+ r = "", d.charAt(0) === Ct && (r += d);
1515
+ var i = e.indexOf(Ze), o;
1516
+ i >= 0 ? o = i + Ze.length : o = 0;
1517
+ var a = e.indexOf(ye);
1518
+ r += e.substring(o, a);
1519
+ }
1520
+ var $ = r.indexOf(Sd);
1521
+ if ($ > 0 && (r = r.substring(0, $)), r !== "")
1522
+ return r;
1523
+ }
1524
+ var Td = 250, Ad = new RegExp("[" + we + I + "]"), Fd = new RegExp("[^" + I + "#]+$");
1525
+ function Dd(e, n, t) {
1526
+ if (n = n || {}, t = new w(t), n.defaultCountry && !t.hasCountry(n.defaultCountry))
1527
+ throw n.v2 ? new N("INVALID_COUNTRY") : new Error("Unknown country: ".concat(n.defaultCountry));
1528
+ var d = Md(e, n.v2, n.extract), r = d.number, i = d.ext, o = d.error;
1529
+ if (!r) {
1530
+ if (n.v2)
1531
+ throw o === "TOO_SHORT" ? new N("TOO_SHORT") : new N("NOT_A_NUMBER");
1532
+ return {};
1533
+ }
1534
+ var a = Ld(r, n.defaultCountry, n.defaultCallingCode, t), $ = a.country, s = a.nationalNumber, u = a.countryCallingCode, l = a.countryCallingCodeSource, c = a.carrierCode;
1535
+ if (!t.hasSelectedNumberingPlan()) {
1536
+ if (n.v2)
1537
+ throw new N("INVALID_COUNTRY");
1538
+ return {};
1539
+ }
1540
+ if (!s || s.length < Pe) {
1541
+ if (n.v2)
1542
+ throw new N("TOO_SHORT");
1543
+ return {};
1544
+ }
1545
+ if (s.length > en) {
1546
+ if (n.v2)
1547
+ throw new N("TOO_LONG");
1548
+ return {};
1549
+ }
1550
+ if (n.v2) {
1551
+ var h = new dd(u, s, t.metadata);
1552
+ return $ && (h.country = $), c && (h.carrierCode = c), i && (h.ext = i), h.__countryCallingCodeSource = l, h;
1553
+ }
1554
+ var O = (n.extended ? t.hasSelectedNumberingPlan() : $) ? T(s, t.nationalNumberPattern()) : !1;
1555
+ return n.extended ? {
1556
+ country: $,
1557
+ countryCallingCode: u,
1558
+ carrierCode: c,
1559
+ valid: O,
1560
+ possible: O ? !0 : !!(n.extended === !0 && t.possibleLengths() && _t(s, t)),
1561
+ phone: s,
1562
+ ext: i
1563
+ } : O ? zd($, s, i) : {};
1564
+ }
1565
+ function Rd(e, n, t) {
1566
+ if (e) {
1567
+ if (e.length > Td) {
1568
+ if (t)
1569
+ throw new N("TOO_LONG");
1570
+ return;
1571
+ }
1572
+ if (n === !1)
1573
+ return e;
1574
+ var d = e.search(Ad);
1575
+ if (!(d < 0))
1576
+ return e.slice(d).replace(Fd, "");
1577
+ }
1578
+ }
1579
+ function Md(e, n, t) {
1580
+ var d = Ed(e, {
1581
+ extractFormattedPhoneNumber: function(o) {
1582
+ return Rd(o, t, n);
1583
+ }
1584
+ });
1585
+ if (!d)
1586
+ return {};
1587
+ if (!wn(d))
1588
+ return On(d) ? {
1589
+ error: "TOO_SHORT"
1590
+ } : {};
1591
+ var r = Sn(d);
1592
+ return r.ext ? r : {
1593
+ number: d
1594
+ };
1595
+ }
1596
+ function zd(e, n, t) {
1597
+ var d = {
1598
+ country: e,
1599
+ phone: n
1600
+ };
1601
+ return t && (d.ext = t), d;
1602
+ }
1603
+ function Ld(e, n, t, d) {
1604
+ var r = cd(ke(e), n, t, d.metadata), i = r.countryCallingCodeSource, o = r.countryCallingCode, a = r.number, $;
1605
+ if (o)
1606
+ d.selectNumberingPlan(o);
1607
+ else if (a && (n || t))
1608
+ d.selectNumberingPlan(n, t), n && ($ = n), o = t || Oe(n, d.metadata);
1609
+ else
1610
+ return {};
1611
+ if (!a)
1612
+ return {
1613
+ countryCallingCodeSource: i,
1614
+ countryCallingCode: o
1615
+ };
1616
+ var s = me(ke(a), d), u = s.nationalNumber, l = s.carrierCode, c = yd(o, {
1617
+ nationalNumber: u,
1618
+ defaultCountry: n,
1619
+ metadata: d
1620
+ });
1621
+ return c && ($ = c, c === "001" || d.country($)), {
1622
+ country: $,
1623
+ countryCallingCode: o,
1624
+ countryCallingCodeSource: i,
1625
+ nationalNumber: u,
1626
+ carrierCode: l
1627
+ };
1628
+ }
1629
+ function Je(e, n) {
1630
+ var t = Object.keys(e);
1631
+ if (Object.getOwnPropertySymbols) {
1632
+ var d = Object.getOwnPropertySymbols(e);
1633
+ n && (d = d.filter(function(r) {
1634
+ return Object.getOwnPropertyDescriptor(e, r).enumerable;
1635
+ })), t.push.apply(t, d);
1636
+ }
1637
+ return t;
1638
+ }
1639
+ function Qe(e) {
1640
+ for (var n = 1; n < arguments.length; n++) {
1641
+ var t = arguments[n] != null ? arguments[n] : {};
1642
+ n % 2 ? Je(Object(t), !0).forEach(function(d) {
1643
+ xd(e, d, t[d]);
1644
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Je(Object(t)).forEach(function(d) {
1645
+ Object.defineProperty(e, d, Object.getOwnPropertyDescriptor(t, d));
1646
+ });
1647
+ }
1648
+ return e;
1649
+ }
1650
+ function xd(e, n, t) {
1651
+ return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
1652
+ }
1653
+ function kd(e, n, t) {
1654
+ return Dd(e, Qe(Qe({}, n), {}, {
1655
+ v2: !0
1656
+ }), t);
1657
+ }
1658
+ function ge(e) {
1659
+ "@babel/helpers - typeof";
1660
+ return ge = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) {
1661
+ return typeof n;
1662
+ } : function(n) {
1663
+ return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
1664
+ }, ge(e);
1665
+ }
1666
+ function et(e, n) {
1667
+ var t = Object.keys(e);
1668
+ if (Object.getOwnPropertySymbols) {
1669
+ var d = Object.getOwnPropertySymbols(e);
1670
+ n && (d = d.filter(function(r) {
1671
+ return Object.getOwnPropertyDescriptor(e, r).enumerable;
1672
+ })), t.push.apply(t, d);
1673
+ }
1674
+ return t;
1675
+ }
1676
+ function jd(e) {
1677
+ for (var n = 1; n < arguments.length; n++) {
1678
+ var t = arguments[n] != null ? arguments[n] : {};
1679
+ n % 2 ? et(Object(t), !0).forEach(function(d) {
1680
+ Bd(e, d, t[d]);
1681
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : et(Object(t)).forEach(function(d) {
1682
+ Object.defineProperty(e, d, Object.getOwnPropertyDescriptor(t, d));
1683
+ });
1684
+ }
1685
+ return e;
1686
+ }
1687
+ function Bd(e, n, t) {
1688
+ return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
1689
+ }
1690
+ function Ud(e, n) {
1691
+ return Kd(e) || Hd(e, n) || Vd(e, n) || Gd();
1692
+ }
1693
+ function Gd() {
1694
+ throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1695
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1696
+ }
1697
+ function Vd(e, n) {
1698
+ if (e) {
1699
+ if (typeof e == "string")
1700
+ return tt(e, n);
1701
+ var t = Object.prototype.toString.call(e).slice(8, -1);
1702
+ if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set")
1703
+ return Array.from(e);
1704
+ if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))
1705
+ return tt(e, n);
1706
+ }
1707
+ }
1708
+ function tt(e, n) {
1709
+ (n == null || n > e.length) && (n = e.length);
1710
+ for (var t = 0, d = new Array(n); t < n; t++)
1711
+ d[t] = e[t];
1712
+ return d;
1713
+ }
1714
+ function Hd(e, n) {
1715
+ var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
1716
+ if (t != null) {
1717
+ var d = [], r = !0, i = !1, o, a;
1718
+ try {
1719
+ for (t = t.call(e); !(r = (o = t.next()).done) && (d.push(o.value), !(n && d.length === n)); r = !0)
1720
+ ;
1721
+ } catch ($) {
1722
+ i = !0, a = $;
1723
+ } finally {
1724
+ try {
1725
+ !r && t.return != null && t.return();
1726
+ } finally {
1727
+ if (i)
1728
+ throw a;
1729
+ }
1730
+ }
1731
+ return d;
1732
+ }
1733
+ }
1734
+ function Kd(e) {
1735
+ if (Array.isArray(e))
1736
+ return e;
1737
+ }
1738
+ function Wd(e) {
1739
+ var n = Array.prototype.slice.call(e), t = Ud(n, 4), d = t[0], r = t[1], i = t[2], o = t[3], a, $, s;
1740
+ if (typeof d == "string")
1741
+ a = d;
1742
+ else
1743
+ throw new TypeError("A text for parsing must be a string.");
1744
+ if (!r || typeof r == "string")
1745
+ o ? ($ = i, s = o) : ($ = void 0, s = i), r && ($ = jd({
1746
+ defaultCountry: r
1747
+ }, $));
1748
+ else if (qd(r))
1749
+ i ? ($ = r, s = i) : s = r;
1750
+ else
1751
+ throw new Error("Invalid second argument: ".concat(r));
1752
+ return {
1753
+ text: a,
1754
+ options: $,
1755
+ metadata: s
1756
+ };
1757
+ }
1758
+ var qd = function(n) {
1759
+ return ge(n) === "object";
1760
+ };
1761
+ function nt(e, n) {
1762
+ var t = Object.keys(e);
1763
+ if (Object.getOwnPropertySymbols) {
1764
+ var d = Object.getOwnPropertySymbols(e);
1765
+ n && (d = d.filter(function(r) {
1766
+ return Object.getOwnPropertyDescriptor(e, r).enumerable;
1767
+ })), t.push.apply(t, d);
1768
+ }
1769
+ return t;
1770
+ }
1771
+ function dt(e) {
1772
+ for (var n = 1; n < arguments.length; n++) {
1773
+ var t = arguments[n] != null ? arguments[n] : {};
1774
+ n % 2 ? nt(Object(t), !0).forEach(function(d) {
1775
+ Xd(e, d, t[d]);
1776
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : nt(Object(t)).forEach(function(d) {
1777
+ Object.defineProperty(e, d, Object.getOwnPropertyDescriptor(t, d));
1778
+ });
1779
+ }
1780
+ return e;
1781
+ }
1782
+ function Xd(e, n, t) {
1783
+ return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
1784
+ }
1785
+ function Yd(e, n, t) {
1786
+ n && n.defaultCountry && !yn(n.defaultCountry, t) && (n = dt(dt({}, n), {}, {
1787
+ defaultCountry: void 0
1788
+ }));
1789
+ try {
1790
+ return kd(e, n, t);
1791
+ } catch (d) {
1792
+ if (!(d instanceof N))
1793
+ throw d;
1794
+ }
1795
+ }
1796
+ function Zd() {
1797
+ var e = Wd(arguments), n = e.text, t = e.options, d = e.metadata;
1798
+ return Yd(n, t, d);
1799
+ }
1800
+ function $e() {
1801
+ return Wt(Zd, arguments);
1802
+ }
1803
+ const Jd = { class: "cols-2-1_2 gap-small pd-small bg-white" }, Qd = /* @__PURE__ */ p("section", { class: "w-100 desktop-only o-hidden radius-big bg-grad-main" }, null, -1), er = {
1804
+ __name: "Auth",
1805
+ setup(e) {
1806
+ return _(null), _(null), _(null), L(), x(), _("email"), (n, t) => {
1807
+ const d = ve("router-view");
1808
+ return g(), b("div", Jd, [
1809
+ v(d, { class: "pd-medium br-solid br-1px br-grey radius-big w-m-66r t-center" }, {
1810
+ default: C(({ Component: r, route: i }) => [
1811
+ v(D, {
1812
+ name: "scaleIn",
1813
+ mode: "out-in"
1814
+ }, {
1815
+ default: C(() => [
1816
+ (g(), ue(Ft(r), {
1817
+ ref: "page",
1818
+ key: i.path,
1819
+ localPosition: n.localPosition
1820
+ }, null, 8, ["localPosition"]))
1821
+ ]),
1822
+ _: 2
1823
+ }, 1024)
1824
+ ]),
1825
+ _: 1
1826
+ }),
1827
+ Qd
1828
+ ]);
1829
+ };
1830
+ }
1831
+ };
1832
+ function rt(e) {
1833
+ const n = e;
1834
+ n.__i18n = n.__i18n || [], n.__i18n.push({
1835
+ locale: "",
1836
+ resource: {
1837
+ en: {
1838
+ verifyNumberTitle: (t) => {
1839
+ const { normalize: d } = t;
1840
+ return d(["Verify Number"]);
1841
+ },
1842
+ instructions: (t) => {
1843
+ const { normalize: d } = t;
1844
+ return d(["We have sent a registration code to your phone number. Please enter it in the field below:"]);
1845
+ },
1846
+ resendCode: (t) => {
1847
+ const { normalize: d } = t;
1848
+ return d(["Send the code again"]);
1849
+ },
1850
+ secondsResend: (t) => {
1851
+ const { normalize: d } = t;
1852
+ return d(["seconds to the possibility of sending the code again."]);
1853
+ }
1854
+ },
1855
+ ru: {
1856
+ verifyNumberTitle: (t) => {
1857
+ const { normalize: d } = t;
1858
+ return d(["Подтвердите номер"]);
1859
+ },
1860
+ instructions: (t) => {
1861
+ const { normalize: d } = t;
1862
+ return d(["Мы отправили код регистрации на ваш номер телефона. Введите его в поле ниже:"]);
1863
+ },
1864
+ resendCode: (t) => {
1865
+ const { normalize: d } = t;
1866
+ return d(["Отправить код еще раз"]);
1867
+ },
1868
+ secondsResend: (t) => {
1869
+ const { normalize: d } = t;
1870
+ return d(["секунд до возможности отправить код еще раз."]);
1871
+ }
1872
+ }
1873
+ }
1874
+ });
1875
+ }
1876
+ const tr = { class: "t-center pd-medium" }, nr = { class: "mn-medium" }, dr = { class: "mn-big t-transp" }, rr = { class: "w-100 mn-big flex-nowrap flex" }, ir = { key: 1 }, Pt = {
1877
+ __name: "EnterCode",
1878
+ setup(e) {
1879
+ const n = L(), t = x(), { t: d } = B({
1880
+ inheritLocale: !0,
1881
+ useScope: "local"
1882
+ }), r = ct({
1883
+ digits: ["", "", "", ""],
1884
+ error: null
1885
+ });
1886
+ ft(
1887
+ () => r.digits[0],
1888
+ (u) => {
1889
+ if (console.log(String(u)), console.log(String(u).length), u && String(u).length > 1) {
1890
+ let l = String(u).split("");
1891
+ console.log(l);
1892
+ let c = [...r.digits];
1893
+ l.forEach((h, O) => {
1894
+ console.log(O), console.log(c[O]), console.log(h), c[O] = h;
1895
+ }), r.digits = c, s(3);
1896
+ }
1897
+ }
1898
+ );
1899
+ const i = _(null), o = _(0);
1900
+ async function a() {
1901
+ try {
1902
+ await pt(m.user, n.query.type, m.user.phone ? "phone" : "email"), o.value = 30;
1903
+ const u = setInterval(() => {
1904
+ o.value > 0 ? o.value -= 1 : clearInterval(u);
1905
+ }, 1e3);
1906
+ } catch {
1907
+ z({ response: { data: { errorCode: "CODE_NOT_SENT" } } });
1908
+ }
1909
+ }
1910
+ const $ = (u, l) => {
1911
+ if (u.key === "Backspace" && (r.digits[l] === null || r.digits[l] === void 0 || r.digits[l] === "")) {
1912
+ u.preventDefault();
1913
+ const c = document.querySelectorAll("input"), h = l > 0 ? c[l - 1] : null;
1914
+ h && (h.focus(), h.setSelectionRange(h.value.length, h.value.length));
1915
+ }
1916
+ }, s = (u) => {
1917
+ const l = document.querySelectorAll("input"), c = l[u + 1], h = u > 0 ? l[u - 1] : null;
1918
+ if (r.digits[u] !== "" && r.digits[u] !== null && r.digits[u] !== void 0 && u < 4 && (u < 3 ? c.focus() : i.value.focus()), (r.digits[u] === null || r.digits[u] === void 0 || r.digits[u] === "") && u > 0 && h.focus(), r.digits.every((O) => O !== "")) {
1919
+ const O = r.digits.join(""), de = ie.code.code.toString();
1920
+ O === de ? (ie.code.isValid = !0, t.push({
1921
+ path: "/auth/enter-password",
1922
+ query: { type: ie.code.type, method: n.query.method }
1923
+ })) : (z({ response: { data: { errorCode: "WRONG_CODE" } } }), i.value.focus(), r.digits = ["", "", "", ""]);
1924
+ }
1925
+ };
1926
+ return (u, l) => (g(), b("section", tr, [
1927
+ p("h3", nr, y(f(d)("verifyNumberTitle")), 1),
1928
+ p("p", dr, y(f(d)("instructions")), 1),
1929
+ p("div", rr, [
1930
+ S(p("input", {
1931
+ type: "number",
1932
+ "onUpdate:modelValue": l[0] || (l[0] = (c) => r.digits[0] = c),
1933
+ ref_key: "firstInput",
1934
+ ref: i,
1935
+ maxlength: "1",
1936
+ onInput: l[1] || (l[1] = (c) => s(0)),
1937
+ onPaste: l[2] || (l[2] = (c) => u.onPaste(c, 0)),
1938
+ onKeydown: l[3] || (l[3] = (c) => $(c, 0)),
1939
+ class: "w-100 h1 pd-small t-center bg-grey radius-small mn-r-small"
1940
+ }, null, 544), [
1941
+ [Y, r.digits[0]]
1942
+ ]),
1943
+ S(p("input", {
1944
+ type: "number",
1945
+ "onUpdate:modelValue": l[4] || (l[4] = (c) => r.digits[1] = c),
1946
+ maxlength: "1",
1947
+ onInput: l[5] || (l[5] = (c) => s(1)),
1948
+ onPaste: l[6] || (l[6] = (c) => u.onPaste(c, 1)),
1949
+ onKeydown: l[7] || (l[7] = (c) => $(c, 1)),
1950
+ class: "w-100 h1 pd-small t-center bg-grey radius-small mn-r-small"
1951
+ }, null, 544), [
1952
+ [Y, r.digits[1]]
1953
+ ]),
1954
+ S(p("input", {
1955
+ type: "number",
1956
+ "onUpdate:modelValue": l[8] || (l[8] = (c) => r.digits[2] = c),
1957
+ maxlength: "1",
1958
+ onInput: l[9] || (l[9] = (c) => s(2)),
1959
+ onPaste: l[10] || (l[10] = (c) => u.onPaste(c, 2)),
1960
+ onKeydown: l[11] || (l[11] = (c) => $(c, 2)),
1961
+ class: "w-100 h1 pd-small t-center bg-grey radius-small mn-r-small"
1962
+ }, null, 544), [
1963
+ [Y, r.digits[2]]
1964
+ ]),
1965
+ S(p("input", {
1966
+ type: "number",
1967
+ "onUpdate:modelValue": l[12] || (l[12] = (c) => r.digits[3] = c),
1968
+ maxlength: "1",
1969
+ onInput: l[13] || (l[13] = (c) => s(3)),
1970
+ onPaste: l[14] || (l[14] = (c) => u.onPaste(c, 3)),
1971
+ onKeydown: l[15] || (l[15] = (c) => $(c, 3)),
1972
+ class: "w-100 h1 pd-small t-center bg-grey radius-small"
1973
+ }, null, 544), [
1974
+ [Y, r.digits[3]]
1975
+ ])
1976
+ ]),
1977
+ o.value < 1 ? (g(), b("a", {
1978
+ key: 0,
1979
+ onClick: a,
1980
+ class: "t-blue"
1981
+ }, y(f(d)("resendCode")), 1)) : (g(), b("span", ir, y(o.value) + " " + y(f(d)("secondsResend")), 1))
1982
+ ]));
1983
+ }
1984
+ };
1985
+ typeof rt == "function" && rt(Pt);
1986
+ const or = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1987
+ __proto__: null,
1988
+ default: Pt
1989
+ }, Symbol.toStringTag, { value: "Module" })), j = jt.create({ baseURL: process.env.API_URL, withCredentials: !0 });
1990
+ j.defaults.withCredentials = !0;
1991
+ const E = ct({
1992
+ invites: [],
1993
+ invite: null,
1994
+ error: null
1995
+ }), wt = {
1996
+ async read(e) {
1997
+ await j.get(`/api/invites/${e}`).then((n) => {
1998
+ E.invites = n.data, E.error = null;
1999
+ }).catch((n) => {
2000
+ z(n);
2001
+ });
2002
+ },
2003
+ async readOne(e) {
2004
+ await j.get(`/api/invites/get/${e}`).then((n) => {
2005
+ E.invite = n.data, m.user.phone = n.data.invitedPhone, m.user.email = n.data.invitedEmail;
2006
+ }).catch((n) => {
2007
+ z(n);
2008
+ });
2009
+ },
2010
+ async create(e, n) {
2011
+ await j.post(`/api/invites/${e}/create`, n).then(() => {
2012
+ E.error = null;
2013
+ }).catch((t) => {
2014
+ z(t);
2015
+ });
2016
+ },
2017
+ async update(e, n) {
2018
+ await j.put(`/api/invites/${e}/update`, n).then(() => {
2019
+ E.error = null;
2020
+ }).catch((t) => {
2021
+ z(t);
2022
+ });
2023
+ },
2024
+ async delete(e) {
2025
+ await j.delete(`/api/invites/${e}/delete`).then(() => {
2026
+ E.error = null;
2027
+ }).catch((n) => {
2028
+ z(n);
2029
+ });
2030
+ }
2031
+ };
2032
+ ft(E, (e, n) => {
2033
+ });
2034
+ const x1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2035
+ __proto__: null,
2036
+ actions: wt,
2037
+ state: E
2038
+ }, Symbol.toStringTag, { value: "Module" }));
2039
+ const ar = { class: "t-left pd-medium" }, sr = /* @__PURE__ */ p("h3", { class: "mn-small" }, "Вы были пригилашены в организацию", -1), lr = /* @__PURE__ */ p("p", { class: "mn-semi t-transp" }, "Пожалуйста, укажите пароль, на этом регистрация будет закочена.", -1), $r = { class: "mn-semi radius-small o-hidden" }, ur = { key: 0 }, cr = { key: 1 }, fr = {
2040
+ __name: "Invite",
2041
+ async setup(e) {
2042
+ let n, t;
2043
+ const d = _(null), r = L(), i = x();
2044
+ [n, t] = Dt(() => wt.readOne(r.query.inviteCode)), await n, t();
2045
+ async function o() {
2046
+ try {
2047
+ await R(
2048
+ d,
2049
+ mt,
2050
+ m.user.password,
2051
+ "Некорректный пароль"
2052
+ );
2053
+ } catch {
2054
+ throw new Error();
2055
+ }
2056
+ await K.signup(m.user, r.query.type, r.query.inviteCode);
2057
+ }
2058
+ function a() {
2059
+ i.push({ name: "Dashboard" });
2060
+ }
2061
+ return ($, s) => (g(), b("section", ar, [
2062
+ sr,
2063
+ lr,
2064
+ p("div", $r, [
2065
+ v(M, {
2066
+ field: m.user.password,
2067
+ "onUpdate:field": s[0] || (s[0] = (u) => m.user.password = u),
2068
+ type: "password",
2069
+ validation: d.value,
2070
+ label: "Пароль",
2071
+ placeholder: "******",
2072
+ class: "bg-white radius-small mn-small"
2073
+ }, null, 8, ["field", "validation"]),
2074
+ v(M, {
2075
+ field: m.user.passwordRepeat,
2076
+ "onUpdate:field": s[1] || (s[1] = (u) => m.user.passwordRepeat = u),
2077
+ type: "password",
2078
+ label: "Повторите пароль",
2079
+ placeholder: "******",
2080
+ class: "bg-white radius-small mn-semi"
2081
+ }, null, 8, ["field"])
2082
+ ]),
2083
+ v(X, {
2084
+ disabled: E.invite === null,
2085
+ submit: o,
2086
+ callback: a,
2087
+ class: "mn-big"
2088
+ }, {
2089
+ default: C(() => [
2090
+ f(r).query.method === "reset-password" ? (g(), b("span", ur, "Поменять пароль")) : (g(), b("span", cr, "Зарегистрироваться"))
2091
+ ]),
2092
+ _: 1
2093
+ }, 8, ["disabled"])
2094
+ ]));
2095
+ }
2096
+ }, pr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2097
+ __proto__: null,
2098
+ default: fr
2099
+ }, Symbol.toStringTag, { value: "Module" }));
2100
+ function it(e) {
2101
+ const n = e;
2102
+ n.__i18n = n.__i18n || [], n.__i18n.push({
2103
+ locale: "",
2104
+ resource: {
2105
+ en: {
2106
+ almostDone: (t) => {
2107
+ const { normalize: d } = t;
2108
+ return d(["Almost there!"]);
2109
+ },
2110
+ newPasswordPrompt: (t) => {
2111
+ const { normalize: d } = t;
2112
+ return d(["Please, set a new password."]);
2113
+ },
2114
+ registrationPasswordPrompt: (t) => {
2115
+ const { normalize: d } = t;
2116
+ return d(["Please, set your password to complete the registration."]);
2117
+ },
2118
+ passwordPlaceholder: (t) => {
2119
+ const { normalize: d } = t;
2120
+ return d(["Password"]);
2121
+ },
2122
+ repeatPasswordPlaceholder: (t) => {
2123
+ const { normalize: d } = t;
2124
+ return d(["Repeat Password"]);
2125
+ },
2126
+ changePasswordBtn: (t) => {
2127
+ const { normalize: d } = t;
2128
+ return d(["Change Password"]);
2129
+ },
2130
+ registerBtn: (t) => {
2131
+ const { normalize: d } = t;
2132
+ return d(["Register"]);
2133
+ }
2134
+ },
2135
+ ru: {
2136
+ almostDone: (t) => {
2137
+ const { normalize: d } = t;
2138
+ return d(["Почти все!"]);
2139
+ },
2140
+ newPasswordPrompt: (t) => {
2141
+ const { normalize: d } = t;
2142
+ return d(["Пожалуйста, укажите новый пароль."]);
2143
+ },
2144
+ registrationPasswordPrompt: (t) => {
2145
+ const { normalize: d } = t;
2146
+ return d(["Пожалуйста, укажите пароль, на этом регистрация будет закончена."]);
2147
+ },
2148
+ passwordPlaceholder: (t) => {
2149
+ const { normalize: d } = t;
2150
+ return d(["Пароль"]);
2151
+ },
2152
+ repeatPasswordPlaceholder: (t) => {
2153
+ const { normalize: d } = t;
2154
+ return d(["Повторите пароль"]);
2155
+ },
2156
+ changePasswordBtn: (t) => {
2157
+ const { normalize: d } = t;
2158
+ return d(["Поменять пароль"]);
2159
+ },
2160
+ registerBtn: (t) => {
2161
+ const { normalize: d } = t;
2162
+ return d(["Зарегистрироваться"]);
2163
+ }
2164
+ }
2165
+ }
2166
+ });
2167
+ }
2168
+ const mr = { class: "t-left pd-medium" }, hr = { class: "mn-small" }, yr = {
2169
+ key: 0,
2170
+ class: "mn-semi t-transp"
2171
+ }, gr = {
2172
+ key: 1,
2173
+ class: "mn-semi t-transp"
2174
+ }, vr = { class: "mn-semi radius-small o-hidden" }, br = {
2175
+ key: 2,
2176
+ class: "p-medium t-semi mn-semi"
2177
+ }, _r = /* @__PURE__ */ p("a", {
2178
+ class: "t-second",
2179
+ href: "https://thecommunephuket.com/legal/eula",
2180
+ target: "_blank",
2181
+ rel: "noopener noreferrer"
2182
+ }, "End User License Agreement (EULA)", -1), Cr = { key: 0 }, Pr = { key: 1 }, Ot = {
2183
+ __name: "EnterPassword",
2184
+ setup(e) {
2185
+ const n = _(null), { t } = B({
2186
+ inheritLocale: !0,
2187
+ useScope: "local"
2188
+ }), d = L(), r = x();
2189
+ _("phone");
2190
+ async function i() {
2191
+ try {
2192
+ await R(
2193
+ n,
2194
+ mt,
2195
+ m.user.password,
2196
+ "Некорректный пароль"
2197
+ );
2198
+ } catch {
2199
+ throw new Error();
2200
+ }
2201
+ d.query.method === "reset-password" && await K.updatePassword(m.user, d.query.type), d.query.method !== "reset-password" && await K.signup(m.user, d.query.type);
2202
+ }
2203
+ function o() {
2204
+ r.push({
2205
+ name: "User Profile",
2206
+ params: {
2207
+ _id: m.user._id
2208
+ },
2209
+ query: { afterAuth: "true" }
2210
+ });
2211
+ }
2212
+ return (a, $) => (g(), b("section", mr, [
2213
+ p("h3", hr, y(f(t)("almostDone")), 1),
2214
+ f(d).query.method === "reset-password" ? (g(), b("p", yr, y(f(t)("newPasswordPrompt")), 1)) : (g(), b("p", gr, y(f(t)("registrationPasswordPrompt")), 1)),
2215
+ p("div", vr, [
2216
+ v(M, {
2217
+ field: m.user.password,
2218
+ "onUpdate:field": $[0] || ($[0] = (s) => m.user.password = s),
2219
+ type: "password",
2220
+ validation: n.value,
2221
+ placeholder: f(t)("passwordPlaceholder"),
2222
+ class: "bg-grey pd-small radius-small mn-thin"
2223
+ }, null, 8, ["field", "validation", "placeholder"]),
2224
+ v(M, {
2225
+ field: m.user.passwordRepeat,
2226
+ "onUpdate:field": $[1] || ($[1] = (s) => m.user.passwordRepeat = s),
2227
+ type: "password",
2228
+ placeholder: f(t)("repeatPasswordPlaceholder"),
2229
+ class: "bg-grey pd-small radius-small mn-thin"
2230
+ }, null, 8, ["field", "placeholder"])
2231
+ ]),
2232
+ f(d).query.method !== "reset-password" ? (g(), b("div", br, [
2233
+ F(" By registering, you agree to our "),
2234
+ _r
2235
+ ])) : A("", !0),
2236
+ v(X, {
2237
+ submit: i,
2238
+ callback: o,
2239
+ class: "mn-big"
2240
+ }, {
2241
+ default: C(() => [
2242
+ f(d).query.method === "reset-password" ? (g(), b("span", Cr, y(f(t)("changePasswordBtn")), 1)) : (g(), b("span", Pr, y(f(t)("registerBtn")), 1))
2243
+ ]),
2244
+ _: 1
2245
+ })
2246
+ ]));
2247
+ }
2248
+ };
2249
+ typeof it == "function" && it(Ot);
2250
+ const wr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2251
+ __proto__: null,
2252
+ default: Ot
2253
+ }, Symbol.toStringTag, { value: "Module" })), Or = [["‫افغانستان‬‎", "af", "93", , "🇦🇫"], ["Shqipëri", "al", "355", , "🇦🇱"], ["‫الجزائر‬‎", "dz", "213", , "🇩🇿"], ["American Samoa", "as", "1684", , "🇦🇸"], ["Andorra", "ad", "376", , "🇦🇩"], ["Angola", "ao", "244", , "🇦🇴"], ["Anguilla", "ai", "1264", , "🇦🇮"], ["Antigua and Barbuda", "ag", "1268", , "🇦🇬"], ["Argentina", "ar", "54", , "🇦🇷"], ["Հայաստան", "am", "374", , "🇦🇲"], ["Aruba", "aw", "297", , "🇦🇼"], ["Australia", "au", "61", 0, , "🇦🇺"], ["Österreich", "at", "43", , "🇦🇹"], ["Azərbaycan", "az", "994", , "🇦🇿"], ["Bahamas", "bs", "1242", , "🇧🇸"], ["‫البحرين‬‎", "bh", "973", , "🇧🇭"], ["বাংলাদেশ", "bd", "880", , "🇧🇩"], ["Barbados", "bb", "1246", , "🇧🇧"], ["Беларусь", "by", "375", , "🇧🇾"], ["België", "be", "32", , "🇧🇪"], ["Belize", "bz", "501", , "🇧🇿"], ["Bénin", "bj", "229", , "🇧🇯"], ["Bermuda", "bm", "1441", , "🇧🇲"], ["འབྲུག", "bt", "975", , "🇧🇹"], ["Bolivia", "bo", "591", , "🇧🇴"], ["Босна и Херцеговина", "ba", "387", , "🇧🇦"], ["Botswana", "bw", "267", , "🇧🇼"], ["Brasil", "br", "55", , "🇧🇷"], ["British Indian Ocean Territory", "io", "246", , "🇮🇴"], ["British Virgin Islands", "vg", "1284", , "🇻🇬"], ["Brunei", "bn", "673", , "🇧🇳"], ["България", "bg", "359", , "🇧🇬"], ["Burkina Faso", "bf", "226", , "🇧🇫"], ["Uburundi", "bi", "257", , "🇧🇮"], ["កម្ពុជា", "kh", "855", , "🇰🇭"], ["Cameroun", "cm", "237", , "🇨🇲"], ["Canada", "ca", "1", 1, "🇨🇦"], ["Kabu Verdi", "cv", "238", , "🇨🇻"], ["Caribbean Netherlands", "bq", "599", 1, , "🇧🇶"], ["Cayman Islands", "ky", "1345", , "🇰🇾"], ["République centrafricaine", "cf", "236", , "🇨🇫"], ["Tchad", "td", "235", , "🇹🇩"], ["Chile", "cl", "56", , "🇨🇱"], ["中国", "cn", "86", , "🇨🇳"], ["Christmas Island", "cx", "61", 2, , "🇨🇽"], ["Keeling", "cc", "61", 1, , "🇨🇨"], ["Colombia", "co", "57", , "🇨🇴"], ["‫جزر القمر‬‎", "km", "269", , "🇰🇲"], ["DRC", "cd", "243", , "🇨🇩"], ["Republic", "cg", "242", , "🇨🇬"], ["Cook Islands", "ck", "682", , "🇨🇰"], ["Costa Rica", "cr", "506", , "🇨🇷"], ["Côte d’Ivoire", "ci", "225", , "🇨🇮"], ["Hrvatska", "hr", "385", , "🇭🇷"], ["Cuba", "cu", "53", , "🇨🇺"], ["Curaçao", "cw", "599", 0, , "🇨🇼"], ["Κύπρος", "cy", "357", , "🇨🇾"], ["Česká republika", "cz", "420", , "🇨🇿"], ["Danmark", "dk", "45", , "🇩🇰"], ["Djibouti", "dj", "253", , "🇩🇯"], ["Dominica", "dm", "1767", , "🇩🇲"], ["República Dominicana", "do", "1", 2, ["809", "829", "849", "🇩🇴"]], ["Ecuador", "ec", "593", , "🇪🇨"], ["‫مصر‬‎", "eg", "20", , "🇪🇬"], ["El Salvador", "sv", "503", , "🇸🇻"], ["Guinea Ecuatorial", "gq", "240", , "🇬🇶"], ["Eritrea", "er", "291", , "🇪🇷"], ["Eesti", "ee", "372", , "🇪🇪"], ["Ethiopia", "et", "251", , "🇪🇹"], ["Islas Malvinas", "fk", "500", , "🇫🇰"], ["Føroyar", "fo", "298", , "🇫🇴"], ["Fiji", "fj", "679", , "🇫🇯"], ["Suomi", "fi", "358", 0, , "🇫🇮"], ["France", "fr", "33", , "🇫🇷"], ["Guyane française", "gf", "594", , "🇬🇫"], ["Polynésie française", "pf", "689", , "🇵🇫"], ["Gabon", "ga", "241", , "🇬🇦"], ["Gambia", "gm", "220", , "🇬🇲"], ["საქართველო", "ge", "995", , "🇬🇪"], ["Deutschland", "de", "49", , "🇩🇪"], ["Gaana", "gh", "233", , "🇬🇭"], ["Gibraltar", "gi", "350", , "🇬🇮"], ["Ελλάδα", "gr", "30", , "🇬🇷"], ["Kalaallit Nunaat", "gl", "299", , "🇬🇱"], ["Grenada", "gd", "1473", , "🇬🇩"], ["Guadeloupe", "gp", "590", 0, , "🇬🇵"], ["Guam", "gu", "1671", , "🇬🇺"], ["Guatemala", "gt", "502", , "🇬🇹"], ["Guernsey", "gg", "44", 1, , "🇬🇬"], ["Guinée", "gn", "224", , "🇬🇳"], ["Guiné Bissau", "gw", "245", , "🇬🇼"], ["Guyana", "gy", "592", , "🇬🇾"], ["Haiti", "ht", "509", , "🇭🇹"], ["Honduras", "hn", "504", , "🇭🇳"], ["香港", "hk", "852", , "🇭🇰"], ["Magyarország", "hu", "36", , "🇭🇺"], ["Ísland", "is", "354", , "🇮🇸"], ["भारत", "in", "91", , "🇮🇳"], ["Indonesia", "id", "62", , "🇮🇩"], ["‫ایران‬‎", "ir", "98", , "🇮🇷"], ["‫العراق‬‎", "iq", "964", , "🇮🇶"], ["Ireland", "ie", "353", , "🇮🇪"], ["Isle of Man", "im", "44", 2, , "🇮🇲"], ["‫ישראל‬‎", "il", "972", , "🇮🇱"], ["Italia", "it", "39", 0, , "🇮🇹"], ["Jamaica", "jm", "1876", , "🇯🇲"], ["日本", "jp", "81", , "🇯🇵"], ["Jersey", "je", "44", 3, , "🇯🇪"], ["‫الأردن‬‎", "jo", "962", , "🇯🇴"], ["Казахстан", "kz", "7", 1, , "🇰🇿"], ["Kenya", "ke", "254", , "🇰🇪"], ["Kiribati", "ki", "686", , "🇰🇮"], ["Kosovo", "xk", "383", , "🇽🇰"], ["‫الكويت‬‎", "kw", "965", , "🇰🇼"], ["Кыргызстан", "kg", "996", , "🇰🇬"], ["ລາວ", "la", "856", , "🇱🇦"], ["Latvija", "lv", "371", , "🇱🇻"], ["‫لبنان‬‎", "lb", "961", , "🇱🇧"], ["Lesotho", "ls", "266", , "🇱🇸"], ["Liberia", "lr", "231", , "🇱🇷"], ["‫ليبيا‬‎", "ly", "218", , "🇱🇾"], ["Liechtenstein", "li", "423", , "🇱🇮"], ["Lietuva", "lt", "370", , "🇱🇹"], ["Luxembourg", "lu", "352", , "🇱🇺"], ["澳門", "mo", "853", , "🇲🇴"], ["FYROM", "mk", "389", , "🇲🇰"], ["Madagasikara", "mg", "261", , "🇲🇬"], ["Malawi", "mw", "265", , "🇲🇼"], ["Malaysia", "my", "60", , "🇲🇾"], ["Maldives", "mv", "960", , "🇲🇻"], ["Mali", "ml", "223", , "🇲🇱"], ["Malta", "mt", "356", , "🇲🇹"], ["Marshall Islands", "mh", "692", , "🇲🇭"], ["Martinique", "mq", "596", , "🇲🇶"], ["‫موريتانيا‬‎", "mr", "222", , "🇲🇷"], ["Moris", "mu", "230", , "🇲🇺"], ["Mayotte", "yt", "262", 1, , "🇾🇹"], ["México", "mx", "52", , "🇲🇽"], ["Micronesia", "fm", "691", , "🇫🇲"], ["Republica Moldova", "md", "373", , "🇲🇩"], ["Monaco", "mc", "377", , "🇲🇨"], ["Монгол", "mn", "976", , "🇲🇳"], ["Crna Gora", "me", "382", , "🇲🇪"], ["Montserrat", "ms", "1664", , "🇲🇸"], ["‫المغرب‬‎", "ma", "212", 0, , "🇲🇦"], ["Moçambique", "mz", "258", , "🇲🇿"], ["Burma", "mm", "95", , "🇲🇲"], ["Namibië", "na", "264", , "🇳🇦"], ["Nauru", "nr", "674", , "🇳🇷"], ["नेपाल", "np", "977", , "🇳🇵"], ["Nederland", "nl", "31", , "🇳🇱"], ["Nouvelle-Calédonie", "nc", "687", , "🇳🇨"], ["New Zealand", "nz", "64", , "🇳🇿"], ["Nicaragua", "ni", "505", , "🇳🇮"], ["Nijar", "ne", "227", , "🇳🇪"], ["Nigeria", "ng", "234", , "🇳🇬"], ["Niue", "nu", "683", , "🇳🇺"], ["Norfolk Island", "nf", "672", , "🇳🇫"], ["조선 민주주의 인민 공화국", "kp", "850", , "🇰🇵"], ["Northern Mariana Islands", "mp", "1670", , "🇲🇵"], ["Norge", "no", "47", 0, , "🇳🇴"], ["‫عُمان‬‎", "om", "968", , "🇴🇲"], ["‫پاکستان‬‎", "pk", "92", , "🇵🇰"], ["Palau", "pw", "680", , "🇵🇼"], ["‫فلسطين‬‎", "ps", "970", , "🇵🇸"], ["Panamá", "pa", "507", , "🇵🇦"], ["Papua New Guinea", "pg", "675", , "🇵🇬"], ["Paraguay", "py", "595", , "🇵🇾"], ["Perú", "pe", "51", , "🇵🇪"], ["Philippines", "ph", "63", , "🇵🇭"], ["Polska", "pl", "48", , "🇵🇱"], ["Portugal", "pt", "351", , "🇵🇹"], ["Puerto Rico", "pr", "1", 3, ["787", "939", "🇵🇷"]], ["‫قطر‬‎", "qa", "974", , "🇶🇦"], ["La Réunion", "re", "262", 0, , "🇷🇪"], ["România", "ro", "40", , "🇷🇴"], ["Россия", "ru", "7", 0, , "🇷🇺"], ["Rwanda", "rw", "250", , "🇷🇼"], ["Saint Barthélemy", "bl", "590", 1, , "🇧🇱"], ["Saint Helena", "sh", "290", , "🇸🇭"], ["Saint Kitts and Nevis", "kn", "1869", , "🇰🇳"], ["Saint Lucia", "lc", "1758", , "🇱🇨"], ["Saint-Martin (partie française", "mf", "590", 2, , "🇲🇫"], ["Saint-Pierre-et-Miquelon", "pm", "508", , "🇵🇲"], ["Saint Vincent and the Grenadines", "vc", "1784", , "🇻🇨"], ["Samoa", "ws", "685", , "🇼🇸"], ["San Marino", "sm", "378", , "🇸🇲"], ["São Tomé e Príncipe", "st", "239", , "🇸🇹"], ["‫المملكة العربية السعودية‬‎", "sa", "966", , "🇸🇦"], ["Sénégal", "sn", "221", , "🇸🇳"], ["Србија", "rs", "381", , "🇷🇸"], ["Seychelles", "sc", "248", , "🇸🇨"], ["Sierra Leone", "sl", "232", , "🇸🇱"], ["Singapore", "sg", "65", , "🇸🇬"], ["Sint Maarten", "sx", "1721", , "🇸🇽"], ["Slovensko", "sk", "421", , "🇸🇰"], ["Slovenija", "si", "386", , "🇸🇮"], ["Solomon Islands", "sb", "677", , "🇸🇧"], ["Soomaaliya", "so", "252", , "🇸🇴"], ["South Africa", "za", "27", , "🇿🇦"], ["대한민국", "kr", "82", , "🇰🇷"], ["‫جنوب السودان‬‎", "ss", "211", , "🇸🇸"], ["España", "es", "34", , "🇪🇸"], ["ශ්‍රී ලංකාව", "lk", "94", , "🇱🇰"], ["‫السودان‬‎", "sd", "249", , "🇸🇩"], ["Suriname", "sr", "597", , "🇸🇷"], ["Svalbard and Jan Mayen", "sj", "47", 1, , "🇸🇯"], ["Swaziland", "sz", "268", , "🇸🇿"], ["Sverige", "se", "46", , "🇸🇪"], ["Schweiz", "ch", "41", , "🇨🇭"], ["‫سوريا‬‎", "sy", "963", , "🇸🇾"], ["台灣", "tw", "886", , "🇹🇼"], ["Tajikistan", "tj", "992", , "🇹🇯"], ["Tanzania", "tz", "255", , "🇹🇿"], ["ไทย", "th", "66", , "🇹🇭"], ["Timor-Leste", "tl", "670", , "🇹🇱"], ["Togo", "tg", "228", , "🇹🇬"], ["Tokelau", "tk", "690", , "🇹🇰"], ["Tonga", "to", "676", , "🇹🇴"], ["Trinidad and Tobago", "tt", "1868", , "🇹🇹"], ["‫تونس‬‎", "tn", "216", , "🇹🇳"], ["Türkiye", "tr", "90", , "🇹🇷"], ["Turkmenistan", "tm", "993", , "🇹🇲"], ["Turks and Caicos Islands", "tc", "1649", , "🇹🇨"], ["Tuvalu", "tv", "688", , "🇹🇻"], ["U.S. Virgin Islands", "vi", "1340", , "🇻🇮"], ["Uganda", "ug", "256", , "🇺🇬"], ["Україна", "ua", "380", , "🇺🇦"], ["‫الإمارات العربية المتحدة‬‎", "ae", "971", , "🇦🇪"], ["United Kingdom", "gb", "44", 0, , "🇬🇧"], ["United States", "us", "1", 0, , "🇺🇸"], ["Uruguay", "uy", "598", , "🇺🇾"], ["Oʻzbekiston", "uz", "998", , "🇺🇿"], ["Vanuatu", "vu", "678", , "🇻🇺"], ["Città del Vaticano", "va", "39", 1, , "🇻🇦"], ["Venezuela", "ve", "58", , "🇻🇪"], ["Việt Nam", "vn", "84", , "🇻🇳"], ["Wallis-et-Futuna", "wf", "681", , "🇼🇫"], ["‫الصحراء الغربية‬‎", "eh", "212", 1, , "🇪🇭"], ["‫اليمن‬‎", "ye", "967", , "🇾🇪"], ["Zambia", "zm", "260", , "🇿🇲"], ["Zimbabwe", "zw", "263", , "🇿🇼"], ["Åland Islands", "ax", "358", 1, , "🇦🇽"]], Sr = Or.map((e) => ({
2254
+ name: e[0],
2255
+ iso2: e[1].toUpperCase(),
2256
+ dialCode: e[2],
2257
+ priority: e[3] || 0,
2258
+ areaCodes: e[4] || null,
2259
+ flag: e[e.length - 1] || null
2260
+ }));
2261
+ function Ir() {
2262
+ return fetch("https://ip2c.org/s").then((e) => e.text()).then((e) => {
2263
+ const n = (e || "").toString();
2264
+ if (!n || n[0] !== "1")
2265
+ throw new Error("unable to fetch the country");
2266
+ return n.substr(2, 2);
2267
+ });
2268
+ }
2269
+ function Nr(e, n) {
2270
+ if (e.setSelectionRange)
2271
+ e.focus(), e.setSelectionRange(n, n);
2272
+ else if (e.createTextRange) {
2273
+ const t = e.createTextRange();
2274
+ t.collapse(!0), t.moveEnd("character", n), t.moveStart("character", n), t.select();
2275
+ }
2276
+ }
2277
+ const Er = [
2278
+ {
2279
+ name: "allCountries",
2280
+ type: Array,
2281
+ default: Sr,
2282
+ description: "All countries that are used in <code>libphonenumber-js</code>, can be overridden by this prop",
2283
+ inDemo: !1
2284
+ },
2285
+ {
2286
+ name: "autoFormat",
2287
+ type: Boolean,
2288
+ default: !0,
2289
+ description: "Auto update the input to the formatted phone number when it's valid",
2290
+ inDemo: !0
2291
+ },
2292
+ {
2293
+ name: "customValidate",
2294
+ type: [Boolean, RegExp],
2295
+ default: !1,
2296
+ description: "Custom validation RegExp for input",
2297
+ inDemo: !1
2298
+ },
2299
+ {
2300
+ name: "defaultCountry",
2301
+ default: "",
2302
+ type: String,
2303
+ description: "Default country, will override the country fetched from IP address of user",
2304
+ inDemo: !1
2305
+ },
2306
+ {
2307
+ name: "disabled",
2308
+ default: !1,
2309
+ type: Boolean,
2310
+ description: "Disable <code>vue-tel-input</code>, including the input & flag dropdown",
2311
+ inDemo: !1
2312
+ },
2313
+ {
2314
+ name: "autoDefaultCountry",
2315
+ default: !0,
2316
+ type: Boolean,
2317
+ description: "To fetch default country based on IP address of user",
2318
+ inDemo: !1
2319
+ },
2320
+ {
2321
+ name: "dropdownOptions",
2322
+ type: Object,
2323
+ description: "Options for dropdown, see below",
2324
+ inDemo: !1
2325
+ },
2326
+ {
2327
+ name: "dropdownOptions.showDialCodeInList",
2328
+ default: !0,
2329
+ type: Boolean,
2330
+ description: "Show dial code in the dropdown list",
2331
+ inDemo: !0
2332
+ },
2333
+ {
2334
+ name: "dropdownOptions.showDialCodeInSelection",
2335
+ default: !1,
2336
+ type: Boolean,
2337
+ description: "Show dial code in the dropdown selection",
2338
+ inDemo: !0
2339
+ },
2340
+ {
2341
+ name: "dropdownOptions.showFlags",
2342
+ default: !0,
2343
+ type: Boolean,
2344
+ description: "Show flags in the dropdown selection and list",
2345
+ inDemo: !0
2346
+ },
2347
+ {
2348
+ name: "dropdownOptions.tabindex",
2349
+ default: 0,
2350
+ type: Number,
2351
+ description: "Native dropdown <code>tabindex</code> attribute",
2352
+ inDemo: !1
2353
+ },
2354
+ {
2355
+ name: "ignoredCountries",
2356
+ default: [],
2357
+ type: Array,
2358
+ description: "List of countries will NOT be shown on the dropdown",
2359
+ inDemo: !1
2360
+ },
2361
+ {
2362
+ name: "inputOptions",
2363
+ type: Object,
2364
+ description: "Options for input, see below",
2365
+ inDemo: !1
2366
+ },
2367
+ {
2368
+ name: "inputOptions.autocomplete",
2369
+ type: String,
2370
+ default: "on",
2371
+ description: "Native input <code>autocomplete</code> attribute",
2372
+ inDemo: !1
2373
+ },
2374
+ {
2375
+ name: "inputOptions.autofocus",
2376
+ type: Boolean,
2377
+ default: !1,
2378
+ description: "Native input <code>autofocus</code> attribute",
2379
+ inDemo: !1
2380
+ },
2381
+ // {
2382
+ // name: 'inputOptions.dynamicPlaceholder',
2383
+ // default: false,
2384
+ // type: Boolean,
2385
+ // description: 'Placeholder as a sample phone number in the current country',
2386
+ // inDemo: false,
2387
+ // },
2388
+ {
2389
+ name: "inputOptions.id",
2390
+ default: "",
2391
+ type: String,
2392
+ description: "Native input <code>id</code> attribute",
2393
+ inDemo: !1
2394
+ },
2395
+ {
2396
+ name: "inputOptions.maxlength",
2397
+ default: 25,
2398
+ type: Number,
2399
+ description: "Native input <code>maxlength</code> attribute",
2400
+ inDemo: !1
2401
+ },
2402
+ {
2403
+ name: "inputOptions.name",
2404
+ default: "telephone",
2405
+ type: String,
2406
+ description: "Native input <code>name</code> attribute",
2407
+ inDemo: !1
2408
+ },
2409
+ {
2410
+ name: "inputOptions.placeholder",
2411
+ default: "Enter a phone number",
2412
+ type: String,
2413
+ description: "Placeholder for the input",
2414
+ inDemo: !1
2415
+ },
2416
+ {
2417
+ name: "inputOptions.readonly",
2418
+ default: !1,
2419
+ type: Boolean,
2420
+ description: "Native input <code>readonly</code> attribute",
2421
+ inDemo: !1
2422
+ },
2423
+ {
2424
+ name: "inputOptions.required",
2425
+ default: !1,
2426
+ type: Boolean,
2427
+ description: "Native input <code>required</code> attribute",
2428
+ inDemo: !1
2429
+ },
2430
+ {
2431
+ name: "inputOptions.tabindex",
2432
+ default: 0,
2433
+ type: Number,
2434
+ description: "Native input <code>tabindex</code> attribute",
2435
+ inDemo: !1
2436
+ },
2437
+ {
2438
+ name: "inputOptions.type",
2439
+ default: "tel",
2440
+ type: String,
2441
+ description: "Native input <code>type</code> attribute",
2442
+ inDemo: !1
2443
+ },
2444
+ {
2445
+ name: "inputOptions.styleClasses",
2446
+ default: "",
2447
+ type: [String, Array, Object],
2448
+ description: "Custom classes for the <code>input</code>",
2449
+ inDemo: !1
2450
+ },
2451
+ {
2452
+ name: "invalidMsg",
2453
+ default: "",
2454
+ type: String,
2455
+ description: "",
2456
+ inDemo: !1
2457
+ },
2458
+ {
2459
+ name: "mode",
2460
+ default: "auto",
2461
+ type: String,
2462
+ description: "Allowed values: <code>'auto'</code> (Default set by phone), <code>'international'</code> (Format number with the dial code i.e. + 61), <code>'national'</code> (Format number without dial code i.e. 0321232)",
2463
+ inDemo: !0,
2464
+ options: ["auto", "national", "international"]
2465
+ },
2466
+ {
2467
+ name: "onlyCountries",
2468
+ default: [],
2469
+ type: Array,
2470
+ description: "List of countries will be shown on the dropdown",
2471
+ inDemo: !1
2472
+ },
2473
+ {
2474
+ name: "preferredCountries",
2475
+ default: [],
2476
+ type: Array,
2477
+ description: "Preferred countries list, will be on top of the dropdown",
2478
+ inDemo: !1
2479
+ },
2480
+ {
2481
+ name: "styleClasses",
2482
+ default: "",
2483
+ type: [String, Array, Object],
2484
+ description: "Custom classes for the wrapper",
2485
+ inDemo: !1
2486
+ },
2487
+ {
2488
+ name: "validCharactersOnly",
2489
+ default: !1,
2490
+ type: Boolean,
2491
+ description: "Only allow valid characters in a phone number (will also verify in <code>mounted</code>, so phone number with invalid characters will be shown as an empty string)",
2492
+ inDemo: !1
2493
+ }
2494
+ ], Tr = [...Er].reduce((e, n) => {
2495
+ if (n.name.includes(".")) {
2496
+ const [t, d] = n.name.split(".");
2497
+ e[t] ? Object.assign(e[t], {
2498
+ [d]: n.default
2499
+ }) : Object.assign(e, {
2500
+ [t]: {
2501
+ [d]: n.default
2502
+ }
2503
+ });
2504
+ } else
2505
+ Object.assign(e, {
2506
+ [n.name]: n.default
2507
+ });
2508
+ return e;
2509
+ }, {}), ot = {
2510
+ options: { ...Tr }
2511
+ };
2512
+ function P(e) {
2513
+ const n = ot.options[e];
2514
+ return typeof n > "u" ? ot.options[e] : n;
2515
+ }
2516
+ const Ar = /* @__PURE__ */ Rt({
2517
+ name: "Vue3ReactiveTelInput",
2518
+ // vue component name
2519
+ directives: {
2520
+ clickOutside: Bt
2521
+ },
2522
+ props: {
2523
+ /**
2524
+ * reactive value of the tel input
2525
+ */
2526
+ modelValue: {
2527
+ type: String,
2528
+ default: ""
2529
+ },
2530
+ /**
2531
+ * class assign to root when the input number is invalid belong to the country code
2532
+ */
2533
+ badClass: {
2534
+ type: [String, Array, Object],
2535
+ default: ""
2536
+ },
2537
+ /**
2538
+ * class assign to root when the input number is valid belong to the country code
2539
+ */
2540
+ goodClass: {
2541
+ type: [String, Array, Object],
2542
+ default: ""
2543
+ },
2544
+ /**
2545
+ * style assign to root when the input number is invalid belong to the country code
2546
+ */
2547
+ badStyle: {
2548
+ type: [String, Array, Object],
2549
+ default: ""
2550
+ },
2551
+ /**
2552
+ * style assign to root when the input number is valid belong to the country code
2553
+ */
2554
+ goodStyle: {
2555
+ type: [String, Array, Object],
2556
+ default: ""
2557
+ },
2558
+ /**
2559
+ * class assign when the input number is invalid belong to the country code
2560
+ */
2561
+ badInputClass: {
2562
+ type: [String, Array, Object],
2563
+ default: ""
2564
+ },
2565
+ /**
2566
+ * class assign when the input number is valid belong to the country code
2567
+ */
2568
+ goodInputClass: {
2569
+ type: [String, Array, Object],
2570
+ default: ""
2571
+ },
2572
+ /**
2573
+ * style assign when the input number is invalid belong to the country code
2574
+ */
2575
+ badInputStyle: {
2576
+ type: [String, Array, Object],
2577
+ default: ""
2578
+ },
2579
+ /**
2580
+ * style assign when the input number is valid belong to the country code
2581
+ */
2582
+ goodInputStyle: {
2583
+ type: [String, Array, Object],
2584
+ default: ""
2585
+ },
2586
+ /**
2587
+ * list of all contries
2588
+ */
2589
+ allCountries: {
2590
+ type: Array,
2591
+ default: () => P("allCountries")
2592
+ },
2593
+ /**
2594
+ * flag to know if the value will be automatically formatted
2595
+ */
2596
+ autoFormat: {
2597
+ type: Boolean,
2598
+ default: () => P("autoFormat")
2599
+ },
2600
+ validation: {
2601
+ type: [Boolean, Object],
2602
+ default: !1
2603
+ },
2604
+ /**
2605
+ * customized validation RegExp or flag
2606
+ */
2607
+ customValidate: {
2608
+ type: [Boolean, RegExp],
2609
+ default: () => P("customValidate")
2610
+ },
2611
+ /**
2612
+ * a default country
2613
+ */
2614
+ defaultCountry: {
2615
+ // Default country code, ie: 'AU'
2616
+ // Will override the current country of user
2617
+ type: String,
2618
+ default: () => P("defaultCountry")
2619
+ },
2620
+ /**
2621
+ * flag defining whether the input must be disabled
2622
+ */
2623
+ disabled: {
2624
+ type: Boolean,
2625
+ default: () => P("disabled")
2626
+ },
2627
+ /**
2628
+ * flag definir if we'll automatically choose a default country
2629
+ */
2630
+ autoDefaultCountry: {
2631
+ type: Boolean,
2632
+ default: () => P("autoDefaultCountry")
2633
+ },
2634
+ /**
2635
+ * object of dropdown options
2636
+ */
2637
+ dropdownOptions: {
2638
+ type: Object,
2639
+ default: () => P("dropdownOptions")
2640
+ },
2641
+ /**
2642
+ * list of countries to ignore
2643
+ */
2644
+ ignoredCountries: {
2645
+ type: Array,
2646
+ default: () => P("ignoredCountries")
2647
+ },
2648
+ /**
2649
+ * object of input options
2650
+ */
2651
+ inputOptions: {
2652
+ type: Object,
2653
+ default: () => P("inputOptions")
2654
+ },
2655
+ /**
2656
+ * valid message to display
2657
+ */
2658
+ invalidMsg: {
2659
+ type: String,
2660
+ default: () => P("invalidMsg")
2661
+ },
2662
+ /**
2663
+ * the mode of the input
2664
+ */
2665
+ mode: {
2666
+ type: String,
2667
+ default: () => P("mode")
2668
+ },
2669
+ /**
2670
+ * limit the giving input to only manage your list of contry
2671
+ */
2672
+ onlyCountries: {
2673
+ type: Array,
2674
+ default: () => P("onlyCountries")
2675
+ },
2676
+ /**
2677
+ * the list of preferred countries
2678
+ */
2679
+ preferredCountries: {
2680
+ type: Array,
2681
+ default: () => P("preferredCountries")
2682
+ },
2683
+ /**
2684
+ * the flag defining if the input must only content valid characters
2685
+ */
2686
+ validCharactersOnly: {
2687
+ type: Boolean,
2688
+ default: () => P("validCharactersOnly")
2689
+ },
2690
+ /**
2691
+ * the root default class
2692
+ */
2693
+ rootClass: {
2694
+ type: [String, Array, Object],
2695
+ default: () => P("styleClasses")
2696
+ },
2697
+ /**
2698
+ * the input default class
2699
+ */
2700
+ inputClass: {
2701
+ type: [String, Array, Object],
2702
+ default: () => ""
2703
+ },
2704
+ /**
2705
+ * the div input default class
2706
+ */
2707
+ divInputClass: {
2708
+ type: [String, Array, Object],
2709
+ default: () => ""
2710
+ },
2711
+ /**
2712
+ * the root default style
2713
+ */
2714
+ rootStyle: {
2715
+ type: [String, Array, Object],
2716
+ default: () => ""
2717
+ },
2718
+ /**
2719
+ * the dropdown button style
2720
+ */
2721
+ dropdownStyle: {
2722
+ type: [String, Array, Object],
2723
+ default: () => ""
2724
+ },
2725
+ /**
2726
+ * the dropdown list style
2727
+ */
2728
+ listStyle: {
2729
+ type: [String, Array, Object],
2730
+ default: () => ""
2731
+ },
2732
+ /**
2733
+ * the input style
2734
+ */
2735
+ inputStyle: {
2736
+ type: [String, Array, Object],
2737
+ default: () => ""
2738
+ },
2739
+ /**
2740
+ * the input id
2741
+ */
2742
+ inputId: {
2743
+ type: [String, Array, Object],
2744
+ default: () => ""
2745
+ },
2746
+ /**
2747
+ * the input placeholder
2748
+ */
2749
+ Placeholder: {
2750
+ type: [String, Object, Function],
2751
+ default: () => ""
2752
+ }
2753
+ },
2754
+ data() {
2755
+ return {
2756
+ counter: 5,
2757
+ initCounter: 5,
2758
+ message: {
2759
+ action: null,
2760
+ amount: null
2761
+ },
2762
+ // vue3-reactive-tel-data
2763
+ phone: this.modelValue ? this.modelValue : "",
2764
+ activeCountryCode: "",
2765
+ open: !1,
2766
+ finishMounted: !1,
2767
+ selectedIndex: null,
2768
+ typeToFindInput: "",
2769
+ typeToFindTimer: null,
2770
+ dropdownOpenDirection: "below",
2771
+ parsedPlaceholder: this.Placeholder !== "" ? this.Placeholder : this.inputOptions.placeholder
2772
+ };
2773
+ },
2774
+ watch: {
2775
+ activeCountry(e, n) {
2776
+ if (!e && (n != null && n.iso2)) {
2777
+ this.activeCountryCode = n.iso2;
2778
+ return;
2779
+ }
2780
+ e != null && e.iso2 && this.$emit("country-changed", e);
2781
+ },
2782
+ "phoneObject.countryCode": function(e) {
2783
+ this.activeCountryCode = e;
2784
+ },
2785
+ "phoneObject.valid": function() {
2786
+ this.$emit("validate", this.phoneObject);
2787
+ },
2788
+ "phoneObject.formatted": function(e) {
2789
+ !this.autoFormat || this.customValidate || (this.emitInput(e), this.$nextTick(() => {
2790
+ e && !this.value && (this.phone = e);
2791
+ }));
2792
+ },
2793
+ // finishMounted() {
2794
+ // this.resetPlaceholder();
2795
+ // },
2796
+ "inputOptions.placeholder": function() {
2797
+ this.resetPlaceholder();
2798
+ },
2799
+ value(e, n) {
2800
+ this.testCharacters() ? this.phone = e : this.$nextTick(() => {
2801
+ this.phone = n, this.onInput();
2802
+ });
2803
+ },
2804
+ open(e) {
2805
+ e ? (this.setDropdownPosition(), this.$emit("open")) : this.$emit("close");
2806
+ }
2807
+ },
2808
+ mounted() {
2809
+ this.cleanInvalidCharacters(), this.initializeCountry().then(() => {
2810
+ var e;
2811
+ !this.phone && ((e = this.inputOptions) != null && e.showDialCode) && this.activeCountryCode && (this.phone = `+${this.activeCountryCode}`), this.$emit("validate", this.phoneObject);
2812
+ }).catch(console.error).then(() => {
2813
+ this.finishMounted = !0;
2814
+ });
2815
+ },
2816
+ computed: {
2817
+ activeCountry() {
2818
+ return this.findCountry(this.activeCountryCode);
2819
+ },
2820
+ activeCountryFlag() {
2821
+ return this.activeCountry ? this.activeCountry.flag : null;
2822
+ },
2823
+ parsedMode() {
2824
+ return this.mode === "auto" ? !this.phone || this.phone[0] !== "+" ? "national" : "international" : ["international", "national"].includes(this.mode) ? this.mode : (console.error('Invalid value of prop "mode"'), "international");
2825
+ },
2826
+ filteredCountries() {
2827
+ return this.onlyCountries.length ? this.allCountries.filter(({ iso2: e }) => this.onlyCountries.some((n) => n.toUpperCase() === e)) : this.ignoredCountries.length ? this.allCountries.filter(
2828
+ ({ iso2: e }) => !this.ignoredCountries.includes(e.toUpperCase()) && !this.ignoredCountries.includes(e.toLowerCase())
2829
+ ) : this.allCountries;
2830
+ },
2831
+ sortedCountries() {
2832
+ return [...this.getCountries(this.preferredCountries).map((n) => ({ ...n, preferred: !0 })), ...this.filteredCountries];
2833
+ },
2834
+ phoneObject() {
2835
+ var i, o, a;
2836
+ let e;
2837
+ ((i = this.phone) == null ? void 0 : i[0]) === "+" ? e = $e(this.phone) || {} : e = $e(this.phone, this.activeCountryCode) || {};
2838
+ const {
2839
+ metadata: n,
2840
+ ...t
2841
+ } = e;
2842
+ console.log(e);
2843
+ let d = (o = e.isValid) == null ? void 0 : o.call(e), r = this.phone;
2844
+ return d && (r = (a = e.format) == null ? void 0 : a.call(e, this.parsedMode.toUpperCase(), { nationalPrefix: !1 })), e.country && (this.ignoredCountries.length || this.onlyCountries.length) && (this.findCountry(e.country) || (d = !1, Object.assign(e, { country: null }))), Object.assign(t, {
2845
+ countryCode: e.country,
2846
+ valid: d,
2847
+ country: this.activeCountry,
2848
+ formatted: r
2849
+ }), t;
2850
+ },
2851
+ classes() {
2852
+ return this.phoneObject.valid === !0 ? this.goodClass : this.phoneObject.valid === !1 ? this.badClass : void 0;
2853
+ },
2854
+ styles() {
2855
+ return this.phoneObject.valid === !0 ? this.goodStyle : this.phoneObject.valid === !1 ? this.badStyle : void 0;
2856
+ },
2857
+ Iclasses() {
2858
+ return this.phoneObject.valid === !0 ? this.goodInputClass : this.phoneObject.valid === !1 ? this.badInputClass : void 0;
2859
+ },
2860
+ Istyles() {
2861
+ return this.phoneObject.valid === !0 ? this.goodInputStyle : this.phoneObject.valid === !1 ? this.badInputStyle : void 0;
2862
+ }
2863
+ },
2864
+ methods: {
2865
+ resetPlaceholder() {
2866
+ this.parsedPlaceholder = this.inputOptions.placeholder;
2867
+ },
2868
+ initializeCountry() {
2869
+ return new Promise((e) => {
2870
+ var t;
2871
+ if (((t = this.phone) == null ? void 0 : t[0]) === "+") {
2872
+ e();
2873
+ return;
2874
+ }
2875
+ if (this.defaultCountry) {
2876
+ this.choose(this.defaultCountry), e();
2877
+ return;
2878
+ }
2879
+ const n = this.preferredCountries[0] || this.filteredCountries[0];
2880
+ this.autoDefaultCountry ? Ir().then((d) => {
2881
+ this.choose(d || this.activeCountryCode);
2882
+ }).catch((d) => {
2883
+ console.warn(d), this.choose(n);
2884
+ }).then(() => {
2885
+ e();
2886
+ }) : (this.choose(n), e());
2887
+ });
2888
+ },
2889
+ /**
2890
+ * Get the list of countries from the list of iso2 code
2891
+ */
2892
+ getCountries(e = []) {
2893
+ return e.map((n) => this.findCountry(n)).filter(Boolean);
2894
+ },
2895
+ findCountry(e = "") {
2896
+ return this.filteredCountries.find((n) => n.iso2 === e.toUpperCase());
2897
+ },
2898
+ getItemClass(e, n) {
2899
+ const t = this.selectedIndex === e, d = e === this.preferredCountries.length - 1, r = this.preferredCountries.some((i) => i.toUpperCase() === n);
2900
+ return {
2901
+ highlighted: t,
2902
+ "last-preferred": d,
2903
+ preferred: r
2904
+ };
2905
+ },
2906
+ choose(e) {
2907
+ var t, d;
2908
+ let n = e;
2909
+ if (typeof n == "string" && (n = this.findCountry(n)), !!n) {
2910
+ if (((t = this.phone) == null ? void 0 : t[0]) === "+" && n.iso2 && this.phoneObject.nationalNumber) {
2911
+ this.activeCountryCode = n.iso2, this.phone = $e(
2912
+ this.phoneObject.nationalNumber,
2913
+ n.iso2
2914
+ ).formatInternational();
2915
+ return;
2916
+ }
2917
+ if ((d = this.inputOptions) != null && d.showDialCode && n) {
2918
+ this.phone = `+${n.dialCode}`;
2919
+ return;
2920
+ }
2921
+ this.activeCountryCode = n.iso2, this.emitInput(this.phone);
2922
+ }
2923
+ },
2924
+ cleanInvalidCharacters() {
2925
+ const e = this.phone;
2926
+ if (this.validCharactersOnly) {
2927
+ const n = this.phone.match(/[()\-+0-9\s]*/g);
2928
+ this.phone = n.join("");
2929
+ }
2930
+ if (this.customValidate && this.customValidate instanceof RegExp) {
2931
+ const n = this.phone.match(this.customValidate);
2932
+ this.phone = n.join("");
2933
+ }
2934
+ e !== this.phone && this.emitInput(this.phone);
2935
+ },
2936
+ testCharacters() {
2937
+ return this.validCharactersOnly && !/^[()\-+0-9\s]*$/.test(this.phone) ? !1 : this.customValidate ? this.testCustomValidate() : !0;
2938
+ },
2939
+ testCustomValidate() {
2940
+ return this.customValidate instanceof RegExp ? this.customValidate.test(this.phone) : !1;
2941
+ },
2942
+ onInput() {
2943
+ this.$refs.input.setCustomValidity(this.phoneObject.valid ? "" : this.invalidMsg), this.emitInput(this.phoneObject);
2944
+ },
2945
+ emitInput(e) {
2946
+ this.$emit("update:modelValue", e);
2947
+ },
2948
+ onBlur() {
2949
+ this.$emit("blur");
2950
+ },
2951
+ onFocus() {
2952
+ Nr(this.$refs.input, this.phone.length), this.$emit("focus");
2953
+ },
2954
+ onEnter() {
2955
+ this.$emit("enter");
2956
+ },
2957
+ onSpace() {
2958
+ this.$emit("space");
2959
+ },
2960
+ focus() {
2961
+ this.$refs.input.focus();
2962
+ },
2963
+ toggleDropdown() {
2964
+ this.disabled || (this.open = !this.open);
2965
+ },
2966
+ clickedOutside() {
2967
+ this.open = !1;
2968
+ },
2969
+ keyboardNav(e) {
2970
+ if (e.keyCode === 40) {
2971
+ e.preventDefault(), this.open = !0, this.selectedIndex === null ? this.selectedIndex = 0 : this.selectedIndex = Math.min(this.sortedCountries.length - 1, this.selectedIndex + 1);
2972
+ const n = this.$refs.list.children[this.selectedIndex];
2973
+ n.offsetTop + n.clientHeight > this.$refs.list.scrollTop + this.$refs.list.clientHeight && (this.$refs.list.scrollTop = n.offsetTop - this.$refs.list.clientHeight + n.clientHeight);
2974
+ } else if (e.keyCode === 38) {
2975
+ e.preventDefault(), this.open = !0, this.selectedIndex === null ? this.selectedIndex = this.sortedCountries.length - 1 : this.selectedIndex = Math.max(0, this.selectedIndex - 1);
2976
+ const n = this.$refs.list.children[this.selectedIndex];
2977
+ n.offsetTop < this.$refs.list.scrollTop && (this.$refs.list.scrollTop = n.offsetTop);
2978
+ } else if (e.keyCode === 13)
2979
+ this.selectedIndex !== null && this.choose(this.sortedCountries[this.selectedIndex]), this.open = !this.open;
2980
+ else {
2981
+ this.typeToFindInput += e.key, clearTimeout(this.typeToFindTimer), this.typeToFindTimer = setTimeout(() => {
2982
+ this.typeToFindInput = "";
2983
+ }, 700);
2984
+ const n = this.sortedCountries.slice(this.preferredCountries.length).findIndex((t) => t.name.toLowerCase().startsWith(this.typeToFindInput));
2985
+ if (n >= 0) {
2986
+ this.selectedIndex = this.preferredCountries.length + n;
2987
+ const t = this.$refs.list.children[this.selectedIndex], d = t.offsetTop < this.$refs.list.scrollTop, r = t.offsetTop + t.clientHeight > this.$refs.list.scrollTop + this.$refs.list.clientHeight;
2988
+ (d || r) && (this.$refs.list.scrollTop = t.offsetTop - this.$refs.list.clientHeight / 2);
2989
+ }
2990
+ }
2991
+ },
2992
+ reset() {
2993
+ this.selectedIndex = this.sortedCountries.map((e) => e.iso2).indexOf(this.activeCountryCode), this.open = !1;
2994
+ },
2995
+ setDropdownPosition() {
2996
+ window.innerHeight - this.$refs.rootElement.getBoundingClientRect().bottom > 200 ? this.dropdownOpenDirection = "below" : this.dropdownOpenDirection = "above";
2997
+ }
2998
+ }
2999
+ }), Fr = ["tabindex"], Dr = { class: "flex-nowrap flex flex-v-center p-medium vti__selection" }, Rr = ["innerHTML"], Mr = {
3000
+ key: 1,
3001
+ class: "vti__country-code"
3002
+ }, zr = ["onClick", "onMousemove"], Lr = ["innerHTML"], xr = { key: 1 }, kr = ["type", "autocomplete", "autofocus", "disabled", "id", "maxlength", "name", "placeholder", "readonly", "required", "tabindex"], jr = {
3003
+ key: 0,
3004
+ class: "mn-t-thin mn-b-thin invalid-feedback"
3005
+ };
3006
+ function Br(e, n, t, d, r, i) {
3007
+ const o = Mt("click-outside");
3008
+ return g(), b(ce, null, [
3009
+ p("div", {
3010
+ class: U(["vue3-reactive-tel-input", { "bg-fourth-nano": e.validation }, e.$attrs.class, e.rootClass, { disabled: e.disabled }, e.classes]),
3011
+ style: V([e.rootStyle, e.styles]),
3012
+ ref: "rootElement"
3013
+ }, [
3014
+ S((g(), b("div", {
3015
+ class: U([["vti__dropdown", { open: e.open }], "br-solid br-black-transp br-1px radius-medium"]),
3016
+ tabindex: e.dropdownOptions.tabindex,
3017
+ onKeydown: [
3018
+ n[0] || (n[0] = (...a) => e.keyboardNav && e.keyboardNav(...a)),
3019
+ n[2] || (n[2] = re((...a) => e.reset && e.reset(...a), ["esc"]))
3020
+ ],
3021
+ onClick: n[1] || (n[1] = (...a) => e.toggleDropdown && e.toggleDropdown(...a)),
3022
+ style: V([e.dropdownStyle])
3023
+ }, [
3024
+ p("span", Dr, [
3025
+ e.dropdownOptions.showFlags ? (g(), b("span", {
3026
+ key: 0,
3027
+ innerHTML: e.activeCountryFlag,
3028
+ class: "mn-r-thin"
3029
+ }, null, 8, Rr)) : A("", !0),
3030
+ e.dropdownOptions.showDialCodeInSelection ? (g(), b("span", Mr, " +" + y(e.activeCountry && e.activeCountry.dialCode), 1)) : A("", !0)
3031
+ ]),
3032
+ S(p("ul", {
3033
+ ref: "list",
3034
+ class: U(["bs-black radius-small vti__dropdown-list", e.dropdownOpenDirection]),
3035
+ style: V([e.listStyle])
3036
+ }, [
3037
+ (g(!0), b(ce, null, ut(e.sortedCountries, (a, $) => (g(), b("li", {
3038
+ class: U(["flex-nowrap flex w-max", ["vti__dropdown-item", e.getItemClass($, a.iso2)]]),
3039
+ key: a.iso2 + (a.preferred ? "-preferred" : ""),
3040
+ onClick: (s) => e.choose(a),
3041
+ onMousemove: (s) => e.selectedIndex = $
3042
+ }, [
3043
+ e.dropdownOptions.showFlags ? (g(), b("span", {
3044
+ key: 0,
3045
+ innerHTML: a.flag,
3046
+ class: "mn-r-thin"
3047
+ }, null, 8, Lr)) : A("", !0),
3048
+ p("strong", null, y(a.name), 1),
3049
+ e.dropdownOptions.showDialCodeInList ? (g(), b("span", xr, " +" + y(a.dialCode), 1)) : A("", !0)
3050
+ ], 42, zr))), 128))
3051
+ ], 6), [
3052
+ [H, e.open]
3053
+ ])
3054
+ ], 46, Fr)), [
3055
+ [o, e.clickedOutside]
3056
+ ]),
3057
+ S(p("input", {
3058
+ "onUpdate:modelValue": n[3] || (n[3] = (a) => e.phone = a),
3059
+ pattern: "[0-9]*",
3060
+ ref: "input",
3061
+ type: e.inputOptions.type,
3062
+ autocomplete: e.inputOptions.autocomplete,
3063
+ autofocus: e.inputOptions.autofocus,
3064
+ class: U(["vti__input", e.inputOptions.styleClasses, e.inputClass, e.Iclasses]),
3065
+ style: V([e.inputStyle, e.Istyles]),
3066
+ disabled: e.disabled,
3067
+ id: e.inputId !== "" ? e.inputId : e.inputOptions.id,
3068
+ maxlength: e.inputOptions.maxlength,
3069
+ name: e.inputId !== "" ? e.inputId : e.inputOptions.name,
3070
+ placeholder: e.parsedPlaceholder,
3071
+ readonly: e.inputOptions.readonly,
3072
+ required: e.inputOptions.required,
3073
+ tabindex: e.inputOptions.tabindex,
3074
+ onBlur: n[4] || (n[4] = (...a) => e.onBlur && e.onBlur(...a)),
3075
+ onFocus: n[5] || (n[5] = (...a) => e.onFocus && e.onFocus(...a)),
3076
+ onInput: n[6] || (n[6] = (...a) => e.onInput && e.onInput(...a)),
3077
+ onKeyup: [
3078
+ n[7] || (n[7] = re((...a) => e.onEnter && e.onEnter(...a), ["enter"])),
3079
+ n[8] || (n[8] = re((...a) => e.onSpace && e.onSpace(...a), ["space"]))
3080
+ ]
3081
+ }, null, 46, kr), [
3082
+ [zt, e.phone]
3083
+ ]),
3084
+ Lt(e.$slots, "default", {}, void 0, !0)
3085
+ ], 6),
3086
+ v(D, { name: "fade" }, {
3087
+ default: C(() => [
3088
+ e.validation ? (g(), b("div", jr, " * " + y(e.validation.message), 1)) : A("", !0)
3089
+ ]),
3090
+ _: 1
3091
+ })
3092
+ ], 64);
3093
+ }
3094
+ const Ne = /* @__PURE__ */ Ut(Ar, [["render", Br], ["__scopeId", "data-v-50353ca7"]]);
3095
+ function at(e) {
3096
+ const n = e;
3097
+ n.__i18n = n.__i18n || [], n.__i18n.push({
3098
+ locale: "",
3099
+ resource: {
3100
+ en: {
3101
+ forgotPasswordTitle: (t) => {
3102
+ const { normalize: d } = t;
3103
+ return d(["Forgot Password?"]);
3104
+ },
3105
+ instructions: (t) => {
3106
+ const { normalize: d } = t;
3107
+ return d(["To reset your password, specify the phone or email used during registration."]);
3108
+ },
3109
+ smsInfo: (t) => {
3110
+ const { normalize: d } = t;
3111
+ return d(["We will send you an SMS with a confirmation code to reset your password, which you will need to enter in the next step."]);
3112
+ },
3113
+ emailInfo: (t) => {
3114
+ const { normalize: d } = t;
3115
+ return d(["We will send you an email with a confirmation code to reset your password, which you will need to enter in the next step."]);
3116
+ },
3117
+ phone: (t) => {
3118
+ const { normalize: d } = t;
3119
+ return d(["Phone"]);
3120
+ },
3121
+ email: (t) => {
3122
+ const { normalize: d } = t;
3123
+ return d(["Email"]);
3124
+ },
3125
+ phonePlaceholder: (t) => {
3126
+ const { normalize: d } = t;
3127
+ return d(["Enter your phone"]);
3128
+ },
3129
+ emailPlaceholder: (t) => {
3130
+ const { normalize: d } = t;
3131
+ return d(["Enter your email"]);
3132
+ },
3133
+ sendCode: (t) => {
3134
+ const { normalize: d } = t;
3135
+ return d(["Send code"]);
3136
+ }
3137
+ },
3138
+ ru: {
3139
+ forgotPasswordTitle: (t) => {
3140
+ const { normalize: d } = t;
3141
+ return d(["Забыли пароль?"]);
3142
+ },
3143
+ instructions: (t) => {
3144
+ const { normalize: d } = t;
3145
+ return d(["Чтобы сбросить пароль, укажите телефон или email, использованные при регистрации."]);
3146
+ },
3147
+ smsInfo: (t) => {
3148
+ const { normalize: d } = t;
3149
+ return d(["Мы вышлем вам SMS с кодом подтверждения для сброса пароля, который вы должны будете ввести в следующем шаге."]);
3150
+ },
3151
+ emailInfo: (t) => {
3152
+ const { normalize: d } = t;
3153
+ return d(["Мы отправим вам электронное письмо с кодом подтверждения для сброса пароля, который вы должны будете ввести в следующем шаге."]);
3154
+ },
3155
+ phone: (t) => {
3156
+ const { normalize: d } = t;
3157
+ return d(["Телефон"]);
3158
+ },
3159
+ email: (t) => {
3160
+ const { normalize: d } = t;
3161
+ return d(["Email"]);
3162
+ },
3163
+ phonePlaceholder: (t) => {
3164
+ const { normalize: d } = t;
3165
+ return d(["Введите ваш телефон"]);
3166
+ },
3167
+ emailPlaceholder: (t) => {
3168
+ const { normalize: d } = t;
3169
+ return d(["Введите ваш email"]);
3170
+ },
3171
+ sendCode: (t) => {
3172
+ const { normalize: d } = t;
3173
+ return d(["Отправить код"]);
3174
+ }
3175
+ }
3176
+ }
3177
+ });
3178
+ }
3179
+ const Ur = { class: "t-left pd-medium" }, Gr = { class: "mn-small" }, Vr = { class: "mn-small t-transp" }, Hr = { class: "mn-small p-small uppercase t-semi bg-grey radius-big o-hidden" }, Kr = {
3180
+ key: 0,
3181
+ class: "mn-semi radius-small o-hidden"
3182
+ }, Wr = { class: "mn-small t-transp" }, qr = {
3183
+ key: 0,
3184
+ class: "mn-semi radius-small o-hidden"
3185
+ }, Xr = { class: "mn-small t-transp" }, St = {
3186
+ __name: "ResetPassword",
3187
+ setup(e) {
3188
+ const { t: n } = B({
3189
+ inheritLocale: !0,
3190
+ useScope: "local"
3191
+ }), t = _(null), d = _(null);
3192
+ L();
3193
+ const r = x(), i = _("phone");
3194
+ async function o() {
3195
+ try {
3196
+ i.value === "phone" && await R(
3197
+ t,
3198
+ be,
3199
+ m.user.phone,
3200
+ "Некорректный телефон"
3201
+ ), i.value === "email" && await R(
3202
+ d,
3203
+ _e,
3204
+ m.user.email,
3205
+ "Некорректный email"
3206
+ );
3207
+ } catch {
3208
+ throw new Error();
3209
+ }
3210
+ try {
3211
+ await K.resetPassword(m.user, i.value, "reset-password");
3212
+ } catch ($) {
3213
+ throw console.log($), new Error();
3214
+ }
3215
+ }
3216
+ function a() {
3217
+ r.push({ name: "Enter Code", query: { type: i.value, method: "reset-password" } });
3218
+ }
3219
+ return ($, s) => (g(), b("section", Ur, [
3220
+ p("h3", Gr, y(f(n)("forgotPasswordTitle")), 1),
3221
+ p("p", Vr, y(f(n)("instructions")), 1),
3222
+ p("div", Hr, [
3223
+ v(Ce, {
3224
+ selected: i.value,
3225
+ "onUpdate:selected": s[0] || (s[0] = (u) => i.value = u),
3226
+ tabs: [
3227
+ { name: f(n)("phone"), value: "phone" },
3228
+ { name: f(n)("email"), value: "email" }
3229
+ ]
3230
+ }, null, 8, ["selected", "tabs"])
3231
+ ]),
3232
+ p("div", null, [
3233
+ v(D, { name: "slide-fade" }, {
3234
+ default: C(() => [
3235
+ i.value === "phone" ? (g(), b("div", Kr, [
3236
+ p("p", Wr, y(f(n)("smsInfo")), 1),
3237
+ v(Ne, {
3238
+ modelValue: m.user.phone,
3239
+ "onUpdate:modelValue": s[1] || (s[1] = (u) => m.user.phone = u),
3240
+ dropdownOptions: {
3241
+ showDialCodeInSelection: !0,
3242
+ showFlags: !0,
3243
+ showDialCodeInList: !0
3244
+ },
3245
+ validation: t.value,
3246
+ mode: "national",
3247
+ inputOptions: { placeholder: f(n)("phonePlaceholder") },
3248
+ class: "bg-grey pd-small radius-small mn-thin"
3249
+ }, null, 8, ["modelValue", "validation", "inputOptions"])
3250
+ ])) : A("", !0)
3251
+ ]),
3252
+ _: 1
3253
+ }),
3254
+ v(D, { name: "slide-fade" }, {
3255
+ default: C(() => [
3256
+ i.value === "email" ? (g(), b("div", qr, [
3257
+ p("p", Xr, y(f(n)("emailInfo")), 1),
3258
+ v(M, {
3259
+ field: m.user.email,
3260
+ "onUpdate:field": s[2] || (s[2] = (u) => m.user.email = u),
3261
+ placeholder: f(n)("emailPlaceholder"),
3262
+ validation: d.value,
3263
+ class: "bg-grey pd-medium radius-small"
3264
+ }, null, 8, ["field", "placeholder", "validation"])
3265
+ ])) : A("", !0)
3266
+ ]),
3267
+ _: 1
3268
+ })
3269
+ ]),
3270
+ v(X, {
3271
+ submit: o,
3272
+ callback: a,
3273
+ class: "mn-big"
3274
+ }, {
3275
+ default: C(() => [
3276
+ F(y(f(n)("sendCode")), 1)
3277
+ ]),
3278
+ _: 1
3279
+ })
3280
+ ]));
3281
+ }
3282
+ };
3283
+ typeof at == "function" && at(St);
3284
+ const Yr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3285
+ __proto__: null,
3286
+ default: St
3287
+ }, Symbol.toStringTag, { value: "Module" }));
3288
+ function st(e) {
3289
+ const n = e;
3290
+ n.__i18n = n.__i18n || [], n.__i18n.push({
3291
+ locale: "",
3292
+ resource: {
3293
+ en: {
3294
+ title: (t) => {
3295
+ const { normalize: d } = t;
3296
+ return d(["Sign Up to The Commune"]);
3297
+ },
3298
+ description: (t) => {
3299
+ const { normalize: d } = t;
3300
+ return d(["Choose a convenient way to register via phone or email:"]);
3301
+ },
3302
+ phone: (t) => {
3303
+ const { normalize: d } = t;
3304
+ return d(["Phone"]);
3305
+ },
3306
+ email: (t) => {
3307
+ const { normalize: d } = t;
3308
+ return d(["Email"]);
3309
+ },
3310
+ phonePlaceholder: (t) => {
3311
+ const { normalize: d } = t;
3312
+ return d(["Enter your phone"]);
3313
+ },
3314
+ emailPlaceholder: (t) => {
3315
+ const { normalize: d } = t;
3316
+ return d(["Enter your email"]);
3317
+ },
3318
+ emailNotice: (t) => {
3319
+ const { normalize: d } = t;
3320
+ return d(["We will send you an email with a confirmation code that you will need to enter in the next step."]);
3321
+ },
3322
+ smsNotice: (t) => {
3323
+ const { normalize: d } = t;
3324
+ return d(["We will send you an SMS with a confirmation code that you will need to enter in the next step."]);
3325
+ },
3326
+ sendCode: (t) => {
3327
+ const { normalize: d } = t;
3328
+ return d(["Send Code"]);
3329
+ },
3330
+ haveAccount: (t) => {
3331
+ const { normalize: d } = t;
3332
+ return d(["Already have an account?"]);
3333
+ }
3334
+ },
3335
+ ru: {
3336
+ title: (t) => {
3337
+ const { normalize: d } = t;
3338
+ return d(["Новая учетная запись"]);
3339
+ },
3340
+ description: (t) => {
3341
+ const { normalize: d } = t;
3342
+ return d(["Выберите удобный способ регистрации через телефон или email:"]);
3343
+ },
3344
+ phone: (t) => {
3345
+ const { normalize: d } = t;
3346
+ return d(["Телефон"]);
3347
+ },
3348
+ email: (t) => {
3349
+ const { normalize: d } = t;
3350
+ return d(["Email"]);
3351
+ },
3352
+ phonePlaceholder: (t) => {
3353
+ const { normalize: d } = t;
3354
+ return d(["Введите ваш телефон"]);
3355
+ },
3356
+ emailPlaceholder: (t) => {
3357
+ const { normalize: d } = t;
3358
+ return d(["Введите ваш email"]);
3359
+ },
3360
+ emailNotice: (t) => {
3361
+ const { normalize: d } = t;
3362
+ return d(["Мы отправим вам электронное письмо с кодом подтверждения, который вы должны будете ввести в следующем шаге."]);
3363
+ },
3364
+ smsNotice: (t) => {
3365
+ const { normalize: d } = t;
3366
+ return d(["Мы вышлем вам SMS с кодом подтверждения, который вы должны будете ввести в следующем шаге."]);
3367
+ },
3368
+ sendCode: (t) => {
3369
+ const { normalize: d } = t;
3370
+ return d(["Отправить код"]);
3371
+ },
3372
+ haveAccount: (t) => {
3373
+ const { normalize: d } = t;
3374
+ return d(["У вас уже есть аккаунт?"]);
3375
+ }
3376
+ }
3377
+ }
3378
+ });
3379
+ }
3380
+ const Zr = { class: "t-left pd-medium" }, Jr = { class: "mn-small" }, Qr = { class: "mn-small t-transp" }, e1 = { class: "mn-small p-small uppercase t-semi bg-grey radius-big o-hidden" }, t1 = { class: "" }, n1 = { class: "mn-semi radius-small" }, d1 = { class: "mn-small t-transp" }, r1 = { class: "mn-semi radius-small o-hidden" }, i1 = { class: "mn-small t-transp" }, o1 = { class: "w-100" }, It = {
3381
+ __name: "SignUp",
3382
+ setup(e) {
3383
+ const { t: n } = B({
3384
+ inheritLocale: !0,
3385
+ useScope: "local"
3386
+ }), t = _(null), d = _(null);
3387
+ L();
3388
+ const r = x(), i = _("phone");
3389
+ async function o() {
3390
+ try {
3391
+ i.value === "phone" && await R(
3392
+ t,
3393
+ be,
3394
+ m.user.phone,
3395
+ "Некорректный телефон"
3396
+ ), i.value === "email" && await R(
3397
+ d,
3398
+ _e,
3399
+ m.user.email,
3400
+ "Некорректный email"
3401
+ );
3402
+ } catch {
3403
+ throw new Error();
3404
+ }
3405
+ try {
3406
+ await pt(m.user, "signup", i.value);
3407
+ } catch {
3408
+ throw new Error();
3409
+ }
3410
+ }
3411
+ function a() {
3412
+ r.push({ name: "Enter Code" });
3413
+ }
3414
+ return ($, s) => {
3415
+ const u = ve("router-link");
3416
+ return g(), b("section", Zr, [
3417
+ p("h3", Jr, y(f(n)("title")), 1),
3418
+ p("p", Qr, y(f(n)("description")), 1),
3419
+ p("div", e1, [
3420
+ v(Ce, {
3421
+ selected: i.value,
3422
+ "onUpdate:selected": s[0] || (s[0] = (l) => i.value = l),
3423
+ tabs: [
3424
+ { name: f(n)("phone"), value: "phone" },
3425
+ { name: f(n)("email"), value: "email" }
3426
+ ]
3427
+ }, null, 8, ["selected", "tabs"])
3428
+ ]),
3429
+ p("div", t1, [
3430
+ v(D, { name: "slide-fade" }, {
3431
+ default: C(() => [
3432
+ S(p("div", n1, [
3433
+ p("p", d1, y(f(n)("smsNotice")), 1),
3434
+ v(Ne, {
3435
+ modelValue: m.user.phone,
3436
+ "onUpdate:modelValue": s[1] || (s[1] = (l) => m.user.phone = l),
3437
+ dropdownOptions: {
3438
+ showDialCodeInSelection: !0,
3439
+ showFlags: !0,
3440
+ showDialCodeInList: !0
3441
+ },
3442
+ validation: t.value,
3443
+ mode: "national",
3444
+ inputOptions: { placeholder: f(n)("phonePlaceholder") },
3445
+ class: "bg-grey pd-small radius-small mn-thin"
3446
+ }, null, 8, ["modelValue", "validation", "inputOptions"])
3447
+ ], 512), [
3448
+ [H, i.value === "phone"]
3449
+ ])
3450
+ ]),
3451
+ _: 1
3452
+ }),
3453
+ v(D, { name: "slide-fade" }, {
3454
+ default: C(() => [
3455
+ S(p("div", r1, [
3456
+ p("p", i1, y(f(n)("emailNotice")), 1),
3457
+ v(M, {
3458
+ field: m.user.email,
3459
+ "onUpdate:field": s[2] || (s[2] = (l) => m.user.email = l),
3460
+ placeholder: f(n)("emailPlaceholder"),
3461
+ validation: d.value,
3462
+ class: "bg-grey pd-medium radius-small"
3463
+ }, null, 8, ["field", "placeholder", "validation"])
3464
+ ], 512), [
3465
+ [H, i.value === "email"]
3466
+ ])
3467
+ ]),
3468
+ _: 1
3469
+ })
3470
+ ]),
3471
+ v(X, {
3472
+ submit: o,
3473
+ callback: a,
3474
+ class: "mn-big"
3475
+ }, {
3476
+ default: C(() => [
3477
+ F(y(f(n)("sendCode")), 1)
3478
+ ]),
3479
+ _: 1
3480
+ }),
3481
+ p("div", o1, [
3482
+ v(u, {
3483
+ to: "/auth/signin",
3484
+ class: "underline mn-medium d-block t-blue"
3485
+ }, {
3486
+ default: C(() => [
3487
+ F(y(f(n)("haveAccount")), 1)
3488
+ ]),
3489
+ _: 1
3490
+ })
3491
+ ])
3492
+ ]);
3493
+ };
3494
+ }
3495
+ };
3496
+ typeof st == "function" && st(It);
3497
+ const a1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3498
+ __proto__: null,
3499
+ default: It
3500
+ }, Symbol.toStringTag, { value: "Module" }));
3501
+ function lt(e) {
3502
+ const n = e;
3503
+ n.__i18n = n.__i18n || [], n.__i18n.push({
3504
+ locale: "",
3505
+ resource: {
3506
+ en: {
3507
+ title: (t) => {
3508
+ const { normalize: d } = t;
3509
+ return d(["Welcome to The Commune"]);
3510
+ },
3511
+ subtitle: (t) => {
3512
+ const { normalize: d } = t;
3513
+ return d(["Sign In to Continue"]);
3514
+ },
3515
+ signup: (t) => {
3516
+ const { normalize: d } = t;
3517
+ return d(["Don't have an account?"]);
3518
+ },
3519
+ phone: (t) => {
3520
+ const { normalize: d } = t;
3521
+ return d(["Phone"]);
3522
+ },
3523
+ email: (t) => {
3524
+ const { normalize: d } = t;
3525
+ return d(["Email"]);
3526
+ },
3527
+ phonePlaceholder: (t) => {
3528
+ const { normalize: d } = t;
3529
+ return d(["Enter your phone"]);
3530
+ },
3531
+ emailPlaceholder: (t) => {
3532
+ const { normalize: d } = t;
3533
+ return d(["Enter your email"]);
3534
+ },
3535
+ haveAccount: (t) => {
3536
+ const { normalize: d } = t;
3537
+ return d(["Don't have an account? Sign Up"]);
3538
+ },
3539
+ passwordPlaceholder: (t) => {
3540
+ const { normalize: d } = t;
3541
+ return d(["Enter your password"]);
3542
+ },
3543
+ forgotPassword: (t) => {
3544
+ const { normalize: d } = t;
3545
+ return d(["Forgot Password?"]);
3546
+ },
3547
+ signin: (t) => {
3548
+ const { normalize: d } = t;
3549
+ return d(["Sign In"]);
3550
+ },
3551
+ signin_apple: (t) => {
3552
+ const { normalize: d } = t;
3553
+ return d(["Sign In with Apple"]);
3554
+ },
3555
+ soon: (t) => {
3556
+ const { normalize: d } = t;
3557
+ return d(["SOON"]);
3558
+ }
3559
+ },
3560
+ ru: {
3561
+ title: (t) => {
3562
+ const { normalize: d } = t;
3563
+ return d(["Приветствуем вас,"]);
3564
+ },
3565
+ subtitle: (t) => {
3566
+ const { normalize: d } = t;
3567
+ return d(["Войдите для продолжения"]);
3568
+ },
3569
+ signup: (t) => {
3570
+ const { normalize: d } = t;
3571
+ return d(["Нет аккаунта?"]);
3572
+ },
3573
+ phone: (t) => {
3574
+ const { normalize: d } = t;
3575
+ return d(["Телефон"]);
3576
+ },
3577
+ email: (t) => {
3578
+ const { normalize: d } = t;
3579
+ return d(["Email"]);
3580
+ },
3581
+ phonePlaceholder: (t) => {
3582
+ const { normalize: d } = t;
3583
+ return d(["Введите ваш телефон"]);
3584
+ },
3585
+ emailPlaceholder: (t) => {
3586
+ const { normalize: d } = t;
3587
+ return d(["Введите ваш email"]);
3588
+ },
3589
+ haveAccount: (t) => {
3590
+ const { normalize: d } = t;
3591
+ return d(["Нет аккаунта? Зарегистрироваться"]);
3592
+ },
3593
+ passwordPlaceholder: (t) => {
3594
+ const { normalize: d } = t;
3595
+ return d(["Введите ваш пароль"]);
3596
+ },
3597
+ forgotPassword: (t) => {
3598
+ const { normalize: d } = t;
3599
+ return d(["Забыли пароль?"]);
3600
+ },
3601
+ signin: (t) => {
3602
+ const { normalize: d } = t;
3603
+ return d(["Войти"]);
3604
+ },
3605
+ signin_apple: (t) => {
3606
+ const { normalize: d } = t;
3607
+ return d(["Войти через Apple"]);
3608
+ },
3609
+ soon: (t) => {
3610
+ const { normalize: d } = t;
3611
+ return d(["СКОРО"]);
3612
+ }
3613
+ }
3614
+ }
3615
+ });
3616
+ }
3617
+ const s1 = { class: "" }, l1 = { class: "mn-medium" }, $1 = /* @__PURE__ */ p("br", null, null, -1), u1 = { class: "t-semi" }, c1 = { class: "mn-big" }, f1 = { class: "mn-small p-small uppercase t-semi bg-grey radius-big o-hidden" }, p1 = { class: "" }, m1 = { class: "mn-thin radius-small" }, h1 = { class: "mn-thin radius-small o-hidden" }, y1 = { class: "w-100 mn-big" }, Nt = {
3618
+ __name: "SignIn",
3619
+ setup(e) {
3620
+ const { t: n } = B({
3621
+ inheritLocale: !0,
3622
+ useScope: "local"
3623
+ }), t = _(null), d = _(null), r = _(null);
3624
+ L();
3625
+ const i = x(), o = _("phone");
3626
+ Ee("APPLE_CLIENTID"), Ee("APPLE_REDIRECT_URL");
3627
+ const a = (u) => new Promise((l, c) => {
3628
+ const h = document.createElement("script");
3629
+ h.type = "text/javascript", h.src = u, h.onload = l, h.onerror = c, document.head.appendChild(h);
3630
+ });
3631
+ $t(async () => {
3632
+ await a("https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js");
3633
+ });
3634
+ async function $() {
3635
+ try {
3636
+ o.value === "phone" && await R(
3637
+ t,
3638
+ be,
3639
+ m.user.phone,
3640
+ "Некорректный телефон"
3641
+ ), o.value === "email" && await R(
3642
+ r,
3643
+ _e,
3644
+ m.user.email,
3645
+ "Некорректный email"
3646
+ );
3647
+ } catch {
3648
+ throw new Error();
3649
+ }
3650
+ m.user.phone = m.user.phone.number, await K.login(m.user, o.value);
3651
+ }
3652
+ function s() {
3653
+ i.push({
3654
+ name: "User Profile",
3655
+ params: {
3656
+ _id: m.user._id
3657
+ },
3658
+ query: { afterAuth: "true" }
3659
+ });
3660
+ }
3661
+ return (u, l) => {
3662
+ const c = ve("router-link");
3663
+ return g(), b("section", s1, [
3664
+ p("h3", l1, [
3665
+ F(y(f(n)("title")) + " ", 1),
3666
+ $1,
3667
+ p("span", u1, y(f(n)("subtitle")), 1)
3668
+ ]),
3669
+ p("p", c1, [
3670
+ v(c, {
3671
+ to: { name: "Sign Up" },
3672
+ class: "underline t-second"
3673
+ }, {
3674
+ default: C(() => [
3675
+ F(y(f(n)("signup")), 1)
3676
+ ]),
3677
+ _: 1
3678
+ })
3679
+ ]),
3680
+ p("div", f1, [
3681
+ v(Ce, {
3682
+ selected: o.value,
3683
+ "onUpdate:selected": l[0] || (l[0] = (h) => o.value = h),
3684
+ tabs: [
3685
+ { name: f(n)("phone"), value: "phone" },
3686
+ { name: f(n)("email"), value: "email" }
3687
+ ]
3688
+ }, null, 8, ["selected", "tabs"])
3689
+ ]),
3690
+ p("div", p1, [
3691
+ v(D, { name: "slide-fade" }, {
3692
+ default: C(() => [
3693
+ S(p("div", m1, [
3694
+ v(Ne, {
3695
+ modelValue: m.user.phone,
3696
+ "onUpdate:modelValue": l[1] || (l[1] = (h) => m.user.phone = h),
3697
+ dropdownOptions: {
3698
+ showDialCodeInSelection: !0,
3699
+ showFlags: !0,
3700
+ showDialCodeInList: !0
3701
+ },
3702
+ validation: t.value,
3703
+ mode: "national",
3704
+ inputOptions: { placeholder: f(n)("phonePlaceholder") },
3705
+ class: "bg-grey pd-small radius-small mn-thin"
3706
+ }, null, 8, ["modelValue", "validation", "inputOptions"])
3707
+ ], 512), [
3708
+ [H, o.value === "phone"]
3709
+ ])
3710
+ ]),
3711
+ _: 1
3712
+ }),
3713
+ v(D, { name: "slide-fade" }, {
3714
+ default: C(() => [
3715
+ S(p("div", h1, [
3716
+ v(M, {
3717
+ field: m.user.email,
3718
+ "onUpdate:field": l[2] || (l[2] = (h) => m.user.email = h),
3719
+ placeholder: f(n)("emailPlaceholder"),
3720
+ validation: r.value,
3721
+ class: "bg-grey pd-medium radius-small"
3722
+ }, null, 8, ["field", "placeholder", "validation"])
3723
+ ], 512), [
3724
+ [H, o.value === "email"]
3725
+ ])
3726
+ ]),
3727
+ _: 1
3728
+ })
3729
+ ]),
3730
+ v(M, {
3731
+ field: m.user.password,
3732
+ "onUpdate:field": l[3] || (l[3] = (h) => m.user.password = h),
3733
+ type: "password",
3734
+ validation: d.value,
3735
+ placeholder: f(n)("passwordPlaceholder"),
3736
+ class: "bg-grey pd-medium radius-small mn-semi"
3737
+ }, null, 8, ["field", "validation", "placeholder"]),
3738
+ p("div", y1, [
3739
+ v(c, {
3740
+ to: "/auth/reset-password",
3741
+ class: "underline d-block t-blue"
3742
+ }, {
3743
+ default: C(() => [
3744
+ F(y(f(n)("forgotPassword")), 1)
3745
+ ]),
3746
+ _: 1
3747
+ })
3748
+ ]),
3749
+ v(X, {
3750
+ submit: $,
3751
+ callback: s,
3752
+ class: "mn-thin"
3753
+ }, {
3754
+ default: C(() => [
3755
+ F(y(f(n)("signin")), 1)
3756
+ ]),
3757
+ _: 1
3758
+ })
3759
+ ]);
3760
+ };
3761
+ }
3762
+ };
3763
+ typeof lt == "function" && lt(Nt);
3764
+ const g1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3765
+ __proto__: null,
3766
+ default: Nt
3767
+ }, Symbol.toStringTag, { value: "Module" })), k1 = [
3768
+ {
3769
+ path: "auth",
3770
+ name: "Authentication",
3771
+ meta: {
3772
+ title: {
3773
+ en: "Sign In",
3774
+ ru: "Вход"
3775
+ }
3776
+ },
3777
+ component: er,
3778
+ children: [{
3779
+ path: "signin",
3780
+ name: "Sign In",
3781
+ beforeEnter: [
3782
+ G,
3783
+ oe
3784
+ ],
3785
+ meta: {
3786
+ title: {
3787
+ en: "Sign In",
3788
+ ru: "Вход"
3789
+ }
3790
+ },
3791
+ component: () => Promise.resolve().then(() => g1)
3792
+ }, {
3793
+ path: "reset-password",
3794
+ name: "Reset Password",
3795
+ beforeEnter: [
3796
+ G,
3797
+ oe
3798
+ ],
3799
+ meta: {
3800
+ title: {
3801
+ en: "Reset Password",
3802
+ ru: "Сбросить Пароль"
3803
+ }
3804
+ },
3805
+ component: () => Promise.resolve().then(() => Yr)
3806
+ }, {
3807
+ path: "signup",
3808
+ name: "Sign Up",
3809
+ beforeEnter: [
3810
+ G,
3811
+ oe
3812
+ ],
3813
+ meta: {
3814
+ title: {
3815
+ en: "Sign Up",
3816
+ ru: "Регистрация"
3817
+ }
3818
+ },
3819
+ component: () => Promise.resolve().then(() => a1)
3820
+ }, {
3821
+ path: "enter-code",
3822
+ name: "Enter Code",
3823
+ beforeEnter: [
3824
+ G,
3825
+ Te
3826
+ ],
3827
+ meta: {
3828
+ title: {
3829
+ en: "Enter Code",
3830
+ ru: "Введите Код"
3831
+ }
3832
+ },
3833
+ component: () => Promise.resolve().then(() => or)
3834
+ }, {
3835
+ path: "enter-password",
3836
+ name: "Enter Password",
3837
+ beforeEnter: [
3838
+ G,
3839
+ Te
3840
+ ],
3841
+ meta: {
3842
+ title: {
3843
+ en: "Enter Password",
3844
+ ru: "Введите Пароль"
3845
+ }
3846
+ },
3847
+ component: () => Promise.resolve().then(() => wr)
3848
+ }, {
3849
+ path: "invite",
3850
+ name: "Invite",
3851
+ meta: {
3852
+ title: {
3853
+ en: "Invite",
3854
+ ru: "Приглашение"
3855
+ }
3856
+ },
3857
+ component: () => Promise.resolve().then(() => pr)
3858
+ }]
3859
+ }
3860
+ ];
3861
+ export {
3862
+ er as Auth,
3863
+ Pt as EnterCode,
3864
+ Ot as EnterPassword,
3865
+ fr as Invite,
3866
+ St as ResetPassword,
3867
+ Nt as SignIn,
3868
+ It as SignUp,
3869
+ L1 as SliderFeatures,
3870
+ k1 as authRoutes,
3871
+ U1 as authStore,
3872
+ x1 as invitesStore,
3873
+ G1 as twofaStore
3874
+ };