@stachelock/ui 0.5.5 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (442) hide show
  1. package/README.md +118 -5
  2. package/dist/AddDeleteButtonGroup.vue_vue_type_script_setup_true_lang-6taLcPq0.js +77 -0
  3. package/dist/{AlertModal.vue_vue_type_script_setup_true_lang-C6q8Mpl4.js → AlertModal.vue_vue_type_script_setup_true_lang-DzhVQdx4.js} +45 -65
  4. package/dist/BackgroundGradientWrapper.vue_vue_type_script_setup_true_lang-C8msTrTn.js +0 -1
  5. package/dist/BarChart.vue_vue_type_script_setup_true_lang-xCb0DCbf.js +0 -1
  6. package/dist/{BaseModal.vue_vue_type_script_setup_true_lang-B67Pt3tW.js → BaseModal.vue_vue_type_script_setup_true_lang--iGzFCnC.js} +42 -44
  7. package/dist/{CalendarHeader.vue_vue_type_script_setup_true_lang-CkSUiLOH.js → CalendarHeader.vue_vue_type_script_setup_true_lang-hGa2MLyo.js} +114 -141
  8. package/dist/CardWrapper.vue_vue_type_script_setup_true_lang-D59QBAi9.js +0 -1
  9. package/dist/CheckboxInput.vue_vue_type_script_setup_true_lang-BikR9rgi.js +0 -1
  10. package/dist/ComboboxInput.vue_vue_type_script_setup_true_lang-BigvbBAU.js +331 -0
  11. package/dist/ComingSoon.vue_vue_type_script_setup_true_lang-CJ8FXE42.js +0 -1
  12. package/dist/{DashboardLayout.vue_vue_type_script_setup_true_lang-B0M6-9os.js → DashboardLayout.vue_vue_type_script_setup_true_lang-BAx4gKqh.js} +44 -47
  13. package/dist/{DatepickerInput.vue_vue_type_style_index_0_lang-BdkGLw0H.js → DatepickerInput.vue_vue_type_style_index_0_lang-DbI3619T.js} +23 -24
  14. package/dist/{DayCalendar.vue_vue_type_script_setup_true_lang-8al4Fotu.js → DayCalendar.vue_vue_type_script_setup_true_lang-D-4jcUvI.js} +1 -2
  15. package/dist/DefaultLayout.vue_vue_type_script_setup_true_lang-BZAz6aC-.js +0 -1
  16. package/dist/DisclosureWrapper.vue_vue_type_script_setup_true_lang-CgHPOC-w.js +35 -0
  17. package/dist/{DynamicForm.vue_vue_type_script_setup_true_lang-CxSaO5Cl.js → DynamicForm.vue_vue_type_script_setup_true_lang-BR8Pq7Kw.js} +52 -53
  18. package/dist/{DynamicFormField.vue_vue_type_script_setup_true_lang-CSLSRFM7.js → DynamicFormField.vue_vue_type_script_setup_true_lang-BCVmqg_n.js} +7 -8
  19. package/dist/EmailInput.vue_vue_type_script_setup_true_lang-BicPMIop.js +0 -1
  20. package/dist/EmptyInput.vue_vue_type_script_setup_true_lang-FWDCFF2c.js +0 -1
  21. package/dist/EmptyState.vue_vue_type_script_setup_true_lang-7mcKkOWP.js +0 -1
  22. package/dist/EventCard.vue_vue_type_script_setup_true_lang-B3TP-mWX.js +74 -0
  23. package/dist/EventsList.vue_vue_type_script_setup_true_lang-BTIoGr_e.js +87 -0
  24. package/dist/FileDropzoneInput.vue_vue_type_script_setup_true_lang-BJR-_ngq.js +176 -0
  25. package/dist/{FormErrorWrapper.vue_vue_type_script_setup_true_lang-BQOlG_ab.js → FormErrorWrapper.vue_vue_type_script_setup_true_lang-D7ZAgfPs.js} +12 -13
  26. package/dist/FunnelChart.vue_vue_type_script_setup_true_lang-B4pH6xCV.js +0 -1
  27. package/dist/HeaderLayout.vue_vue_type_script_setup_true_lang-BY2G6hCc.js +0 -1
  28. package/dist/HiddenInput.vue_vue_type_script_setup_true_lang-PtGZ4eLW.js +0 -1
  29. package/dist/{InlineTabs.vue_vue_type_script_setup_true_lang-CD0lnkUm.js → InlineTabs.vue_vue_type_script_setup_true_lang-B5w4yzcZ.js} +1 -2
  30. package/dist/LineChart.vue_vue_type_script_setup_true_lang-DJo0edLJ.js +0 -1
  31. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-swmHdR0_.js → LottieAnimation.vue_vue_type_script_setup_true_lang-C0R4ADBb.js} +1 -2
  32. package/dist/{MonthCalendar.vue_vue_type_style_index_0_lang-Cyzq7A9j.js → MonthCalendar.vue_vue_type_style_index_0_lang-lnKkvJ9u.js} +1 -2
  33. package/dist/NavigationGroup.vue_vue_type_script_setup_true_lang-BWq5fpEm.js +0 -1
  34. package/dist/NavigationItem.vue_vue_type_script_setup_true_lang-C8aX-84Q.js +0 -1
  35. package/dist/{NotificationContainer.vue_vue_type_style_index_0_lang-DSfNw4Ge.js → NotificationContainer.vue_vue_type_style_index_0_lang-CvJRwezr.js} +1 -2
  36. package/dist/{NotificationToast.vue_vue_type_script_setup_true_lang-CU__ORw8.js → NotificationToast.vue_vue_type_script_setup_true_lang-BBWpW4km.js} +61 -64
  37. package/dist/PieChart.vue_vue_type_script_setup_true_lang-e3wsA9O4.js +0 -1
  38. package/dist/ProfileHeaderAvatar.vue_vue_type_script_setup_true_lang-CKCoHD1o.js +0 -1
  39. package/dist/ProjectLogo.vue_vue_type_script_setup_true_lang-DYjp-RNh.js +0 -1
  40. package/dist/{SelectInput.vue_vue_type_script_setup_true_lang-DHiZ-7K2.js → SelectInput.vue_vue_type_script_setup_true_lang-D4GNv0MY.js} +56 -58
  41. package/dist/{SelectTextInput.vue_vue_type_script_setup_true_lang-DYrXW14A.js → SelectTextInput.vue_vue_type_script_setup_true_lang-BVaViHPl.js} +66 -69
  42. package/dist/{SidebarLayout.vue_vue_type_script_setup_true_lang-BJ5jadgZ.js → SidebarLayout.vue_vue_type_script_setup_true_lang-CZ21EVcZ.js} +36 -39
  43. package/dist/SparklineChart.vue_vue_type_script_setup_true_lang-BlNk5ZqM.js +0 -1
  44. package/dist/StatCard.vue_vue_type_script_setup_true_lang-B5SuaSXL.js +66 -0
  45. package/dist/{StepperPanels.vue_vue_type_script_setup_true_lang-D6Fv7iz3.js → StepperPanels.vue_vue_type_script_setup_true_lang-DPLQ9mQn.js} +34 -49
  46. package/dist/SwitchInput.vue_vue_type_script_setup_true_lang-D5Es9AjF.js +200 -0
  47. package/dist/{SwitchInputGroup.vue_vue_type_script_setup_true_lang-CK9JWl4F.js → SwitchInputGroup.vue_vue_type_script_setup_true_lang-DigNYqVZ.js} +1 -2
  48. package/dist/{TabGroup.vue_vue_type_script_setup_true_lang-DVVeOgWH.js → TabGroup.vue_vue_type_script_setup_true_lang-BsbiEA4E.js} +19 -20
  49. package/dist/{TabGroupUnderline.vue_vue_type_script_setup_true_lang-_3XtOn3w.js → TabGroupUnderline.vue_vue_type_script_setup_true_lang-CPcp1-Za.js} +21 -22
  50. package/dist/{TabsInPills.vue_vue_type_script_setup_true_lang-DY1NkXCQ.js → TabsInPills.vue_vue_type_script_setup_true_lang-U5CdRL7s.js} +1 -2
  51. package/dist/{TagifyInput.vue_vue_type_script_setup_true_lang-Da6-pRJ2.js → TagifyInput.vue_vue_type_script_setup_true_lang-BF2mK8JC.js} +14 -15
  52. package/dist/TextAreaInput.vue_vue_type_script_setup_true_lang-Cf0MJobG.js +0 -1
  53. package/dist/UiAvatar.vue_vue_type_script_setup_true_lang-WVY6JbUL.js +0 -1
  54. package/dist/UiBadge.vue_vue_type_script_setup_true_lang-DOtbLb9x.js +0 -1
  55. package/dist/UiButtonGroup.vue_vue_type_script_setup_true_lang-CVwXB-cb.js +0 -1
  56. package/dist/UiCheckbox.vue_vue_type_script_setup_true_lang-BxyM_F-V.js +0 -1
  57. package/dist/UiLoading.vue_vue_type_script_setup_true_lang-rNvtzKbq.js +0 -1
  58. package/dist/{UiMapAll.vue_vue_type_script_setup_true_lang-CMAyvJMk.js → UiMapAll.vue_vue_type_script_setup_true_lang-11yT7mTH.js} +93 -111
  59. package/dist/UiMenu.vue_vue_type_script_setup_true_lang-gnoIJm6x.js +127 -0
  60. package/dist/{UiModal.vue_vue_type_script_setup_true_lang-CpwFUDVU.js → UiModal.vue_vue_type_script_setup_true_lang-BZC7aN7K.js} +41 -43
  61. package/dist/{UiNavLink.vue_vue_type_script_setup_true_lang-DnWMn40M.js → UiNavLink.vue_vue_type_script_setup_true_lang-C5Gicm8o.js} +4 -5
  62. package/dist/UiProgressBar.vue_vue_type_script_setup_true_lang-BCh4orZW.js +0 -1
  63. package/dist/UiTable.vue_vue_type_script_setup_true_lang-xGAiJ9rS.js +0 -1
  64. package/dist/UiTransition.vue_vue_type_script_setup_true_lang-C4jb9I-3.js +0 -1
  65. package/dist/YearCalendar.vue_vue_type_script_setup_true_lang-CfKSpLLN.js +0 -1
  66. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -1
  67. package/dist/calendar-DLry-Vik.js +147 -0
  68. package/dist/calendars/CalendarDashboard.js +3 -4
  69. package/dist/calendars/CalendarHeader.js +1 -2
  70. package/dist/calendars/DayCalendar.js +1 -2
  71. package/dist/calendars/EventCard.js +1 -2
  72. package/dist/calendars/EventsList.js +1 -2
  73. package/dist/calendars/MonthCalendar.js +1 -2
  74. package/dist/calendars/WeekCalendar.js +1 -2
  75. package/dist/calendars/YearCalendar.js +0 -1
  76. package/dist/charts/BarChart.js +0 -1
  77. package/dist/charts/BaseChart.js +42 -59
  78. package/dist/charts/FunnelChart.js +0 -1
  79. package/dist/charts/LineChart.js +0 -1
  80. package/dist/charts/PieChart.js +0 -1
  81. package/dist/charts/SparklineChart.js +0 -1
  82. package/dist/charts/StatCard.js +1 -2
  83. package/dist/charts/chartTheme.js +0 -1
  84. package/dist/charts/index.js +1 -2
  85. package/dist/components/Avatar.js +0 -1
  86. package/dist/components/Badge.js +0 -1
  87. package/dist/components/Banner.js +178 -351
  88. package/dist/components/Breadcrumb.js +41 -42
  89. package/dist/components/Button.js +0 -1
  90. package/dist/components/ButtonGroup.js +0 -1
  91. package/dist/components/Checkbox.js +0 -1
  92. package/dist/components/CloudinaryImage.js +51 -81
  93. package/dist/components/Loading.js +0 -1
  94. package/dist/components/LoadingDots.js +0 -1
  95. package/dist/components/LottieAnimation.js +1 -2
  96. package/dist/components/Menu.js +1 -2
  97. package/dist/components/Modal.js +1 -2
  98. package/dist/components/NavLink.js +1 -2
  99. package/dist/components/ProgressBar.js +0 -1
  100. package/dist/components/RadialProgressBar.js +0 -1
  101. package/dist/components/Table.js +0 -1
  102. package/dist/components/Transition.js +0 -1
  103. package/dist/composables/index.js +1 -2
  104. package/dist/composables/useCalendar.js +1 -2
  105. package/dist/composables/useFormValidation.js +0 -1
  106. package/dist/composables/useMap.js +3 -3
  107. package/dist/composables/useModal.js +0 -1
  108. package/dist/composables/useNotifications.js +0 -1
  109. package/dist/composables/useTabs.js +87 -193
  110. package/dist/composables/useTheme.js +0 -1
  111. package/dist/empty-state/ComingSoon.js +0 -1
  112. package/dist/empty-state/EmptyState.js +0 -1
  113. package/dist/empty-state/index.js +0 -1
  114. package/dist/forms/DynamicForm.js +1 -2
  115. package/dist/forms/DynamicFormField.js +1 -2
  116. package/dist/forms/FormFieldWrapper.js +7 -8
  117. package/dist/id-DafBB_QF.js +0 -1
  118. package/dist/index.js +1343 -725
  119. package/dist/inputs/AddDeleteButtonGroup.js +1 -2
  120. package/dist/inputs/CheckboxInput.js +0 -1
  121. package/dist/inputs/ComboboxInput.js +1 -2
  122. package/dist/inputs/DatepickerInput.js +1 -2
  123. package/dist/inputs/EmailInput.js +0 -1
  124. package/dist/inputs/EmptyInput.js +0 -1
  125. package/dist/inputs/FileDropzoneInput.js +1 -2
  126. package/dist/inputs/HiddenInput.js +0 -1
  127. package/dist/inputs/PhoneInput.js +371 -3539
  128. package/dist/inputs/RichTextInput.js +235 -17298
  129. package/dist/inputs/SelectInput.js +1 -2
  130. package/dist/inputs/SelectTextInput.js +1 -2
  131. package/dist/inputs/SwitchInput.js +1 -2
  132. package/dist/inputs/SwitchInputGroup.js +1 -2
  133. package/dist/inputs/TagifyInput.js +1 -2
  134. package/dist/inputs/TextAreaInput.js +0 -1
  135. package/dist/inputs/TextInput.js +7 -8
  136. package/dist/layouts/DashboardLayout.js +1 -2
  137. package/dist/layouts/DefaultLayout.js +0 -1
  138. package/dist/layouts/HeaderLayout.js +0 -1
  139. package/dist/layouts/NavigationGroup.js +0 -1
  140. package/dist/layouts/NavigationItem.js +0 -1
  141. package/dist/layouts/ProfileHeaderAvatar.js +0 -1
  142. package/dist/layouts/ProjectLogo.js +0 -1
  143. package/dist/layouts/SidebarLayout.js +1 -2
  144. package/dist/loading/ContentSkeleton.js +0 -1
  145. package/dist/loading/SmartLoadingIndicator.js +0 -1
  146. package/dist/loading/index.js +0 -1
  147. package/dist/mapThemes-DFE9fZm3.js +0 -1
  148. package/dist/maps/GoogleMap.js +13 -14
  149. package/dist/maps/UiInfoWindow.js +41 -43
  150. package/dist/maps/UiMap.js +28 -31
  151. package/dist/maps/UiMapAll.js +1 -2
  152. package/dist/maps/UiMapMarker.js +1 -2
  153. package/dist/maps/index.js +1 -2
  154. package/dist/modals/AlertModal.js +1 -2
  155. package/dist/modals/BaseModal.js +1 -2
  156. package/dist/modals/ImageCropperModal.js +130 -1666
  157. package/dist/notifications/NotificationContainer.js +1 -2
  158. package/dist/notifications/NotificationToast.js +1 -2
  159. package/dist/notifications/index.js +2 -3
  160. package/dist/src/components/inputs/AddressInput.d.ts +40 -0
  161. package/dist/src/components/inputs/DatepickerInput.d.ts +7 -7
  162. package/dist/src/components/inputs/index.d.ts +1 -0
  163. package/dist/src/components/maps/UiMap.d.ts +1 -1
  164. package/dist/src/components/maps/UiMapAll.d.ts +6 -6
  165. package/dist/src/plugin/configure.d.ts +3 -1
  166. package/dist/src/services/geocoding.service.d.ts +68 -0
  167. package/dist/src/services/index.d.ts +1 -0
  168. package/dist/src/types/address.d.ts +164 -0
  169. package/dist/src/types/index.d.ts +1 -0
  170. package/dist/src/views/inputs/index.d.ts +1 -0
  171. package/dist/stepper/StepperPanels.js +1 -2
  172. package/dist/stepper/index.js +1 -2
  173. package/dist/style.css +1 -1
  174. package/dist/tabs/InlineTabs.js +1 -2
  175. package/dist/tabs/TabGroup.js +1 -2
  176. package/dist/tabs/TabGroupUnderline.js +1 -2
  177. package/dist/tabs/TabsInPills.js +1 -2
  178. package/dist/tabs/index.js +4 -5
  179. package/dist/ui.css +1 -1
  180. package/dist/useEventSegments-B-r_8zCW.js +0 -1
  181. package/dist/useMap-BGg0H582.js +297 -0
  182. package/dist/useSimpleTabs-CSgkChEU.js +0 -1
  183. package/dist/useStringTransform-CSr7nZWg.js +0 -1
  184. package/dist/wrappers/BackgroundGradientWrapper.js +0 -1
  185. package/dist/wrappers/CardWrapper.js +0 -1
  186. package/dist/wrappers/DisclosureWrapper.js +1 -2
  187. package/dist/wrappers/FormErrorWrapper.js +1 -2
  188. package/dist/wrappers/index.js +2 -3
  189. package/package.json +9 -1
  190. package/dist/AddDeleteButtonGroup.vue_vue_type_script_setup_true_lang-CFS3lVF-.js +0 -128
  191. package/dist/AddDeleteButtonGroup.vue_vue_type_script_setup_true_lang-CFS3lVF-.js.map +0 -1
  192. package/dist/AlertModal.vue_vue_type_script_setup_true_lang-C6q8Mpl4.js.map +0 -1
  193. package/dist/BackgroundGradientWrapper.vue_vue_type_script_setup_true_lang-C8msTrTn.js.map +0 -1
  194. package/dist/BarChart.vue_vue_type_script_setup_true_lang-xCb0DCbf.js.map +0 -1
  195. package/dist/Bars3Icon-BdOqcGcY.js +0 -22
  196. package/dist/Bars3Icon-BdOqcGcY.js.map +0 -1
  197. package/dist/BaseModal.vue_vue_type_script_setup_true_lang-B67Pt3tW.js.map +0 -1
  198. package/dist/CalendarHeader.vue_vue_type_script_setup_true_lang-CkSUiLOH.js.map +0 -1
  199. package/dist/CardWrapper.vue_vue_type_script_setup_true_lang-D59QBAi9.js.map +0 -1
  200. package/dist/CheckIcon-BGlsmVwT.js +0 -20
  201. package/dist/CheckIcon-BGlsmVwT.js.map +0 -1
  202. package/dist/CheckboxInput.vue_vue_type_script_setup_true_lang-BikR9rgi.js.map +0 -1
  203. package/dist/ChevronRightIcon-DkUqw988.js +0 -20
  204. package/dist/ChevronRightIcon-DkUqw988.js.map +0 -1
  205. package/dist/ChevronUpDownIcon-Bq_fsgrb.js +0 -20
  206. package/dist/ChevronUpDownIcon-Bq_fsgrb.js.map +0 -1
  207. package/dist/ComboboxInput.vue_vue_type_script_setup_true_lang-kEj-NYqm.js +0 -1362
  208. package/dist/ComboboxInput.vue_vue_type_script_setup_true_lang-kEj-NYqm.js.map +0 -1
  209. package/dist/ComingSoon.vue_vue_type_script_setup_true_lang-CJ8FXE42.js.map +0 -1
  210. package/dist/DashboardLayout.vue_vue_type_script_setup_true_lang-B0M6-9os.js.map +0 -1
  211. package/dist/DatepickerInput.vue_vue_type_style_index_0_lang-BdkGLw0H.js.map +0 -1
  212. package/dist/DayCalendar.vue_vue_type_script_setup_true_lang-8al4Fotu.js.map +0 -1
  213. package/dist/DefaultLayout.vue_vue_type_script_setup_true_lang-BZAz6aC-.js.map +0 -1
  214. package/dist/DisclosureWrapper.vue_vue_type_script_setup_true_lang-C7y2bNhW.js +0 -138
  215. package/dist/DisclosureWrapper.vue_vue_type_script_setup_true_lang-C7y2bNhW.js.map +0 -1
  216. package/dist/DynamicForm.vue_vue_type_script_setup_true_lang-CxSaO5Cl.js.map +0 -1
  217. package/dist/DynamicFormField.vue_vue_type_script_setup_true_lang-CSLSRFM7.js.map +0 -1
  218. package/dist/EmailInput.vue_vue_type_script_setup_true_lang-BicPMIop.js.map +0 -1
  219. package/dist/EmptyInput.vue_vue_type_script_setup_true_lang-FWDCFF2c.js.map +0 -1
  220. package/dist/EmptyState.vue_vue_type_script_setup_true_lang-7mcKkOWP.js.map +0 -1
  221. package/dist/EventCard.vue_vue_type_script_setup_true_lang-j1mtKShZ.js +0 -136
  222. package/dist/EventCard.vue_vue_type_script_setup_true_lang-j1mtKShZ.js.map +0 -1
  223. package/dist/EventsList.vue_vue_type_script_setup_true_lang-MhuVi5u8.js +0 -102
  224. package/dist/EventsList.vue_vue_type_script_setup_true_lang-MhuVi5u8.js.map +0 -1
  225. package/dist/ExclamationCircleIcon-DjxYk45_.js +0 -22
  226. package/dist/ExclamationCircleIcon-DjxYk45_.js.map +0 -1
  227. package/dist/ExclamationCircleIcon-DmL8Wwjo.js +0 -36
  228. package/dist/ExclamationCircleIcon-DmL8Wwjo.js.map +0 -1
  229. package/dist/ExclamationTriangleIcon-BNKYmV_J.js +0 -22
  230. package/dist/ExclamationTriangleIcon-BNKYmV_J.js.map +0 -1
  231. package/dist/FileDropzoneInput.vue_vue_type_script_setup_true_lang-CclXceTb.js +0 -211
  232. package/dist/FileDropzoneInput.vue_vue_type_script_setup_true_lang-CclXceTb.js.map +0 -1
  233. package/dist/FormErrorWrapper.vue_vue_type_script_setup_true_lang-BQOlG_ab.js.map +0 -1
  234. package/dist/FunnelChart.vue_vue_type_script_setup_true_lang-B4pH6xCV.js.map +0 -1
  235. package/dist/HeaderLayout.vue_vue_type_script_setup_true_lang-BY2G6hCc.js.map +0 -1
  236. package/dist/HiddenInput.vue_vue_type_script_setup_true_lang-PtGZ4eLW.js.map +0 -1
  237. package/dist/InformationCircleIcon-B322GNIt.js +0 -40
  238. package/dist/InformationCircleIcon-B322GNIt.js.map +0 -1
  239. package/dist/InlineTabs.vue_vue_type_script_setup_true_lang-CD0lnkUm.js.map +0 -1
  240. package/dist/LineChart.vue_vue_type_script_setup_true_lang-DJo0edLJ.js.map +0 -1
  241. package/dist/LottieAnimation.vue_vue_type_script_setup_true_lang-swmHdR0_.js.map +0 -1
  242. package/dist/MapPinIcon-CSTDUZnD.js +0 -27
  243. package/dist/MapPinIcon-CSTDUZnD.js.map +0 -1
  244. package/dist/MonthCalendar.vue_vue_type_style_index_0_lang-Cyzq7A9j.js.map +0 -1
  245. package/dist/NavigationGroup.vue_vue_type_script_setup_true_lang-BWq5fpEm.js.map +0 -1
  246. package/dist/NavigationItem.vue_vue_type_script_setup_true_lang-C8aX-84Q.js.map +0 -1
  247. package/dist/NotificationContainer.vue_vue_type_style_index_0_lang-DSfNw4Ge.js.map +0 -1
  248. package/dist/NotificationToast.vue_vue_type_script_setup_true_lang-CU__ORw8.js.map +0 -1
  249. package/dist/PieChart.vue_vue_type_script_setup_true_lang-e3wsA9O4.js.map +0 -1
  250. package/dist/PlusIcon-aDFVlB90.js +0 -40
  251. package/dist/PlusIcon-aDFVlB90.js.map +0 -1
  252. package/dist/ProfileHeaderAvatar.vue_vue_type_script_setup_true_lang-CKCoHD1o.js.map +0 -1
  253. package/dist/ProjectLogo.vue_vue_type_script_setup_true_lang-DYjp-RNh.js.map +0 -1
  254. package/dist/SelectInput.vue_vue_type_script_setup_true_lang-DHiZ-7K2.js.map +0 -1
  255. package/dist/SelectTextInput.vue_vue_type_script_setup_true_lang-DYrXW14A.js.map +0 -1
  256. package/dist/SidebarLayout.vue_vue_type_script_setup_true_lang-BJ5jadgZ.js.map +0 -1
  257. package/dist/SparklineChart.vue_vue_type_script_setup_true_lang-BlNk5ZqM.js.map +0 -1
  258. package/dist/StatCard.vue_vue_type_script_setup_true_lang-BfFupfmC.js +0 -111
  259. package/dist/StatCard.vue_vue_type_script_setup_true_lang-BfFupfmC.js.map +0 -1
  260. package/dist/StepperPanels.vue_vue_type_script_setup_true_lang-D6Fv7iz3.js.map +0 -1
  261. package/dist/SwitchInput.vue_vue_type_script_setup_true_lang-C88FcxuK.js +0 -280
  262. package/dist/SwitchInput.vue_vue_type_script_setup_true_lang-C88FcxuK.js.map +0 -1
  263. package/dist/SwitchInputGroup.vue_vue_type_script_setup_true_lang-CK9JWl4F.js.map +0 -1
  264. package/dist/TabGroup.vue_vue_type_script_setup_true_lang-DVVeOgWH.js.map +0 -1
  265. package/dist/TabGroupUnderline.vue_vue_type_script_setup_true_lang-_3XtOn3w.js.map +0 -1
  266. package/dist/TabsInPills.vue_vue_type_script_setup_true_lang-DY1NkXCQ.js.map +0 -1
  267. package/dist/TagifyInput.vue_vue_type_script_setup_true_lang-Da6-pRJ2.js.map +0 -1
  268. package/dist/TextAreaInput.vue_vue_type_script_setup_true_lang-Cf0MJobG.js.map +0 -1
  269. package/dist/UiAvatar.vue_vue_type_script_setup_true_lang-WVY6JbUL.js.map +0 -1
  270. package/dist/UiBadge.vue_vue_type_script_setup_true_lang-DOtbLb9x.js.map +0 -1
  271. package/dist/UiButtonGroup.vue_vue_type_script_setup_true_lang-CVwXB-cb.js.map +0 -1
  272. package/dist/UiCheckbox.vue_vue_type_script_setup_true_lang-BxyM_F-V.js.map +0 -1
  273. package/dist/UiLoading.vue_vue_type_script_setup_true_lang-rNvtzKbq.js.map +0 -1
  274. package/dist/UiMapAll.vue_vue_type_script_setup_true_lang-CMAyvJMk.js.map +0 -1
  275. package/dist/UiMenu.vue_vue_type_script_setup_true_lang-bQdfCzk6.js +0 -330
  276. package/dist/UiMenu.vue_vue_type_script_setup_true_lang-bQdfCzk6.js.map +0 -1
  277. package/dist/UiModal.vue_vue_type_script_setup_true_lang-CpwFUDVU.js.map +0 -1
  278. package/dist/UiNavLink.vue_vue_type_script_setup_true_lang-DnWMn40M.js.map +0 -1
  279. package/dist/UiProgressBar.vue_vue_type_script_setup_true_lang-BCh4orZW.js.map +0 -1
  280. package/dist/UiTable.vue_vue_type_script_setup_true_lang-xGAiJ9rS.js.map +0 -1
  281. package/dist/UiTransition.vue_vue_type_script_setup_true_lang-C4jb9I-3.js.map +0 -1
  282. package/dist/XMarkIcon-Cwy3T6p8.js +0 -22
  283. package/dist/XMarkIcon-Cwy3T6p8.js.map +0 -1
  284. package/dist/XMarkIcon-DNvCkiOy.js +0 -16
  285. package/dist/XMarkIcon-DNvCkiOy.js.map +0 -1
  286. package/dist/YearCalendar.vue_vue_type_script_setup_true_lang-CfKSpLLN.js.map +0 -1
  287. package/dist/_plugin-vue_export-helper-CHgC5LLL.js.map +0 -1
  288. package/dist/active-element-history-BTBNVIJN.js +0 -17
  289. package/dist/active-element-history-BTBNVIJN.js.map +0 -1
  290. package/dist/calculate-active-index-Dim3sT-5.js +0 -55
  291. package/dist/calculate-active-index-Dim3sT-5.js.map +0 -1
  292. package/dist/calendar-BlSSD4nO.js +0 -575
  293. package/dist/calendar-BlSSD4nO.js.map +0 -1
  294. package/dist/calendars/CalendarDashboard.js.map +0 -1
  295. package/dist/calendars/CalendarHeader.js.map +0 -1
  296. package/dist/calendars/DayCalendar.js.map +0 -1
  297. package/dist/calendars/EventCard.js.map +0 -1
  298. package/dist/calendars/EventsList.js.map +0 -1
  299. package/dist/calendars/MonthCalendar.js.map +0 -1
  300. package/dist/calendars/WeekCalendar.js.map +0 -1
  301. package/dist/calendars/YearCalendar.js.map +0 -1
  302. package/dist/charts/BarChart.js.map +0 -1
  303. package/dist/charts/BaseChart.js.map +0 -1
  304. package/dist/charts/FunnelChart.js.map +0 -1
  305. package/dist/charts/LineChart.js.map +0 -1
  306. package/dist/charts/PieChart.js.map +0 -1
  307. package/dist/charts/SparklineChart.js.map +0 -1
  308. package/dist/charts/StatCard.js.map +0 -1
  309. package/dist/charts/chartTheme.js.map +0 -1
  310. package/dist/charts/index.js.map +0 -1
  311. package/dist/components/Avatar.js.map +0 -1
  312. package/dist/components/Badge.js.map +0 -1
  313. package/dist/components/Banner.js.map +0 -1
  314. package/dist/components/Breadcrumb.js.map +0 -1
  315. package/dist/components/Button.js.map +0 -1
  316. package/dist/components/ButtonGroup.js.map +0 -1
  317. package/dist/components/Checkbox.js.map +0 -1
  318. package/dist/components/CloudinaryImage.js.map +0 -1
  319. package/dist/components/Loading.js.map +0 -1
  320. package/dist/components/LoadingDots.js.map +0 -1
  321. package/dist/components/LottieAnimation.js.map +0 -1
  322. package/dist/components/Menu.js.map +0 -1
  323. package/dist/components/Modal.js.map +0 -1
  324. package/dist/components/NavLink.js.map +0 -1
  325. package/dist/components/ProgressBar.js.map +0 -1
  326. package/dist/components/RadialProgressBar.js.map +0 -1
  327. package/dist/components/Table.js.map +0 -1
  328. package/dist/components/Transition.js.map +0 -1
  329. package/dist/composables/index.js.map +0 -1
  330. package/dist/composables/useCalendar.js.map +0 -1
  331. package/dist/composables/useFormValidation.js.map +0 -1
  332. package/dist/composables/useMap.js.map +0 -1
  333. package/dist/composables/useModal.js.map +0 -1
  334. package/dist/composables/useNotifications.js.map +0 -1
  335. package/dist/composables/useTabs.js.map +0 -1
  336. package/dist/composables/useTheme.js.map +0 -1
  337. package/dist/description-C7cRw0tq.js +0 -30
  338. package/dist/description-C7cRw0tq.js.map +0 -1
  339. package/dist/dialog-BJ2Ld8l3.js +0 -499
  340. package/dist/dialog-BJ2Ld8l3.js.map +0 -1
  341. package/dist/empty-state/ComingSoon.js.map +0 -1
  342. package/dist/empty-state/EmptyState.js.map +0 -1
  343. package/dist/empty-state/index.js.map +0 -1
  344. package/dist/env-BZfPsfnF.js +0 -29
  345. package/dist/env-BZfPsfnF.js.map +0 -1
  346. package/dist/form-f8yP4kN-.js +0 -35
  347. package/dist/form-f8yP4kN-.js.map +0 -1
  348. package/dist/forms/DynamicForm.js.map +0 -1
  349. package/dist/forms/DynamicFormField.js.map +0 -1
  350. package/dist/forms/FormFieldWrapper.js.map +0 -1
  351. package/dist/hidden-BSRluD1y.js +0 -15
  352. package/dist/hidden-BSRluD1y.js.map +0 -1
  353. package/dist/id-DafBB_QF.js.map +0 -1
  354. package/dist/index-Dca39bYA.js +0 -2167
  355. package/dist/index-Dca39bYA.js.map +0 -1
  356. package/dist/index.js.map +0 -1
  357. package/dist/inputs/AddDeleteButtonGroup.js.map +0 -1
  358. package/dist/inputs/CheckboxInput.js.map +0 -1
  359. package/dist/inputs/ComboboxInput.js.map +0 -1
  360. package/dist/inputs/DatepickerInput.js.map +0 -1
  361. package/dist/inputs/EmailInput.js.map +0 -1
  362. package/dist/inputs/EmptyInput.js.map +0 -1
  363. package/dist/inputs/FileDropzoneInput.js.map +0 -1
  364. package/dist/inputs/HiddenInput.js.map +0 -1
  365. package/dist/inputs/PhoneInput.js.map +0 -1
  366. package/dist/inputs/RichTextInput.js.map +0 -1
  367. package/dist/inputs/SelectInput.js.map +0 -1
  368. package/dist/inputs/SelectTextInput.js.map +0 -1
  369. package/dist/inputs/SwitchInput.js.map +0 -1
  370. package/dist/inputs/SwitchInputGroup.js.map +0 -1
  371. package/dist/inputs/TagifyInput.js.map +0 -1
  372. package/dist/inputs/TextAreaInput.js.map +0 -1
  373. package/dist/inputs/TextInput.js.map +0 -1
  374. package/dist/keyboard-Dd_2-cFu.js +0 -5
  375. package/dist/keyboard-Dd_2-cFu.js.map +0 -1
  376. package/dist/layouts/DashboardLayout.js.map +0 -1
  377. package/dist/layouts/DefaultLayout.js.map +0 -1
  378. package/dist/layouts/HeaderLayout.js.map +0 -1
  379. package/dist/layouts/NavigationGroup.js.map +0 -1
  380. package/dist/layouts/NavigationItem.js.map +0 -1
  381. package/dist/layouts/ProfileHeaderAvatar.js.map +0 -1
  382. package/dist/layouts/ProjectLogo.js.map +0 -1
  383. package/dist/layouts/SidebarLayout.js.map +0 -1
  384. package/dist/listbox-YaWWZiiG.js +0 -257
  385. package/dist/listbox-YaWWZiiG.js.map +0 -1
  386. package/dist/loading/ContentSkeleton.js.map +0 -1
  387. package/dist/loading/SmartLoadingIndicator.js.map +0 -1
  388. package/dist/loading/index.js.map +0 -1
  389. package/dist/mapThemes-DFE9fZm3.js.map +0 -1
  390. package/dist/maps/GoogleMap.js.map +0 -1
  391. package/dist/maps/UiInfoWindow.js.map +0 -1
  392. package/dist/maps/UiMap.js.map +0 -1
  393. package/dist/maps/UiMapAll.js.map +0 -1
  394. package/dist/maps/UiMapMarker.js.map +0 -1
  395. package/dist/maps/index.js.map +0 -1
  396. package/dist/micro-task-D-oTY33s.js +0 -9
  397. package/dist/micro-task-D-oTY33s.js.map +0 -1
  398. package/dist/modals/AlertModal.js.map +0 -1
  399. package/dist/modals/BaseModal.js.map +0 -1
  400. package/dist/modals/ImageCropperModal.js.map +0 -1
  401. package/dist/notifications/NotificationContainer.js.map +0 -1
  402. package/dist/notifications/NotificationToast.js.map +0 -1
  403. package/dist/notifications/index.js.map +0 -1
  404. package/dist/open-closed-JTEvYTg2.js +0 -19
  405. package/dist/open-closed-JTEvYTg2.js.map +0 -1
  406. package/dist/render-QUUPyNjX.js +0 -101
  407. package/dist/render-QUUPyNjX.js.map +0 -1
  408. package/dist/stepper/StepperPanels.js.map +0 -1
  409. package/dist/stepper/index.js.map +0 -1
  410. package/dist/tabs/InlineTabs.js.map +0 -1
  411. package/dist/tabs/TabGroup.js.map +0 -1
  412. package/dist/tabs/TabGroupUnderline.js.map +0 -1
  413. package/dist/tabs/TabsInPills.js.map +0 -1
  414. package/dist/tabs/index.js.map +0 -1
  415. package/dist/tabs-J5phClGv.js +0 -202
  416. package/dist/tabs-J5phClGv.js.map +0 -1
  417. package/dist/transition-_rPfnoET.js +0 -191
  418. package/dist/transition-_rPfnoET.js.map +0 -1
  419. package/dist/use-outside-click-14T0Zn98.js +0 -151
  420. package/dist/use-outside-click-14T0Zn98.js.map +0 -1
  421. package/dist/use-resolve-button-type-h6n-lm9q.js +0 -20
  422. package/dist/use-resolve-button-type-h6n-lm9q.js.map +0 -1
  423. package/dist/use-text-value-DKnkjK00.js +0 -44
  424. package/dist/use-text-value-DKnkjK00.js.map +0 -1
  425. package/dist/use-tree-walker-Bo9gIb_K.js +0 -16
  426. package/dist/use-tree-walker-Bo9gIb_K.js.map +0 -1
  427. package/dist/useEventSegments-B-r_8zCW.js.map +0 -1
  428. package/dist/useMap-BaZEIoWM.js +0 -525
  429. package/dist/useMap-BaZEIoWM.js.map +0 -1
  430. package/dist/useSimpleTabs-CSgkChEU.js.map +0 -1
  431. package/dist/useStringTransform-CSr7nZWg.js.map +0 -1
  432. package/dist/vue-datepicker-CEn0-fJj.js +0 -4871
  433. package/dist/vue-datepicker-CEn0-fJj.js.map +0 -1
  434. package/dist/vue-router-B3K2xmg_.js +0 -120
  435. package/dist/vue-router-B3K2xmg_.js.map +0 -1
  436. package/dist/vue3-lottie.es-DT4qZE-F.js +0 -7981
  437. package/dist/vue3-lottie.es-DT4qZE-F.js.map +0 -1
  438. package/dist/wrappers/BackgroundGradientWrapper.js.map +0 -1
  439. package/dist/wrappers/CardWrapper.js.map +0 -1
  440. package/dist/wrappers/DisclosureWrapper.js.map +0 -1
  441. package/dist/wrappers/FormErrorWrapper.js.map +0 -1
  442. package/dist/wrappers/index.js.map +0 -1
@@ -1,3350 +1,183 @@
1
- import { createElementBlock as z, openBlock as I, createElementVNode as p, defineComponent as Cr, inject as Nr, ref as E, computed as x, toRef as Pr, watch as Z, nextTick as rt, onMounted as Sr, onUnmounted as xr, createBlock as U, unref as O, withCtx as H, normalizeClass as D, createVNode as q, createCommentVNode as J, renderSlot as Er, toDisplayString as Ee, Teleport as wr, Transition as Ir, normalizeStyle as Tr, withDirectives as Ar, withModifiers as we, vModelText as Fr, Fragment as Or, renderList as _r, withKeys as Rr } from "vue";
2
- import { useField as Dr } from "vee-validate";
3
- import Lr from "../forms/FormFieldWrapper.js";
4
- import { g as kr } from "../id-DafBB_QF.js";
5
- import { r as Mr } from "../CheckIcon-BGlsmVwT.js";
6
- import { r as jr, a as Gr } from "../ExclamationCircleIcon-DmL8Wwjo.js";
7
- import { I as Br, j as Ur, A as Hr, F as Vr } from "../listbox-YaWWZiiG.js";
8
- import { _ as Kr } from "../_plugin-vue_export-helper-CHgC5LLL.js";
9
- function Wr(e, t) {
10
- return I(), z("svg", {
11
- xmlns: "http://www.w3.org/2000/svg",
12
- viewBox: "0 0 20 20",
13
- fill: "currentColor",
14
- "aria-hidden": "true",
15
- "data-slot": "icon"
16
- }, [
17
- p("path", {
18
- "fill-rule": "evenodd",
19
- d: "M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z",
20
- "clip-rule": "evenodd"
21
- })
22
- ]);
23
- }
24
- const L = {
25
- US: { code: "US", name: "United States", dialCode: "+1" },
26
- CA: { code: "CA", name: "Canada", dialCode: "+1" },
27
- GB: { code: "GB", name: "United Kingdom", dialCode: "+44" },
28
- AU: { code: "AU", name: "Australia", dialCode: "+61" },
29
- DE: { code: "DE", name: "Germany", dialCode: "+49" },
30
- FR: { code: "FR", name: "France", dialCode: "+33" },
31
- IT: { code: "IT", name: "Italy", dialCode: "+39" },
32
- ES: { code: "ES", name: "Spain", dialCode: "+34" },
33
- NL: { code: "NL", name: "Netherlands", dialCode: "+31" },
34
- BE: { code: "BE", name: "Belgium", dialCode: "+32" },
35
- CH: { code: "CH", name: "Switzerland", dialCode: "+41" },
36
- AT: { code: "AT", name: "Austria", dialCode: "+43" },
37
- SE: { code: "SE", name: "Sweden", dialCode: "+46" },
38
- NO: { code: "NO", name: "Norway", dialCode: "+47" },
39
- DK: { code: "DK", name: "Denmark", dialCode: "+45" },
40
- FI: { code: "FI", name: "Finland", dialCode: "+358" },
41
- IE: { code: "IE", name: "Ireland", dialCode: "+353" },
42
- PT: { code: "PT", name: "Portugal", dialCode: "+351" },
43
- GR: { code: "GR", name: "Greece", dialCode: "+30" },
44
- PL: { code: "PL", name: "Poland", dialCode: "+48" },
45
- CZ: { code: "CZ", name: "Czech Republic", dialCode: "+420" },
46
- HU: { code: "HU", name: "Hungary", dialCode: "+36" },
47
- RO: { code: "RO", name: "Romania", dialCode: "+40" },
48
- BG: { code: "BG", name: "Bulgaria", dialCode: "+359" },
49
- SK: { code: "SK", name: "Slovakia", dialCode: "+421" },
50
- SI: { code: "SI", name: "Slovenia", dialCode: "+386" },
51
- HR: { code: "HR", name: "Croatia", dialCode: "+385" },
52
- RS: { code: "RS", name: "Serbia", dialCode: "+381" },
53
- UA: { code: "UA", name: "Ukraine", dialCode: "+380" },
54
- RU: { code: "RU", name: "Russia", dialCode: "+7" },
55
- MX: { code: "MX", name: "Mexico", dialCode: "+52" },
56
- BR: { code: "BR", name: "Brazil", dialCode: "+55" },
57
- AR: { code: "AR", name: "Argentina", dialCode: "+54" },
58
- CL: { code: "CL", name: "Chile", dialCode: "+56" },
59
- CO: { code: "CO", name: "Colombia", dialCode: "+57" },
60
- PE: { code: "PE", name: "Peru", dialCode: "+51" },
61
- VE: { code: "VE", name: "Venezuela", dialCode: "+58" },
62
- EC: { code: "EC", name: "Ecuador", dialCode: "+593" },
63
- BO: { code: "BO", name: "Bolivia", dialCode: "+591" },
64
- PY: { code: "PY", name: "Paraguay", dialCode: "+595" },
65
- UY: { code: "UY", name: "Uruguay", dialCode: "+598" },
66
- JP: { code: "JP", name: "Japan", dialCode: "+81" },
67
- KR: { code: "KR", name: "South Korea", dialCode: "+82" },
68
- CN: { code: "CN", name: "China", dialCode: "+86" },
69
- IN: { code: "IN", name: "India", dialCode: "+91" },
70
- PH: { code: "PH", name: "Philippines", dialCode: "+63" },
71
- ID: { code: "ID", name: "Indonesia", dialCode: "+62" },
72
- MY: { code: "MY", name: "Malaysia", dialCode: "+60" },
73
- SG: { code: "SG", name: "Singapore", dialCode: "+65" },
74
- TH: { code: "TH", name: "Thailand", dialCode: "+66" },
75
- VN: { code: "VN", name: "Vietnam", dialCode: "+84" },
76
- TW: { code: "TW", name: "Taiwan", dialCode: "+886" },
77
- HK: { code: "HK", name: "Hong Kong", dialCode: "+852" },
78
- NZ: { code: "NZ", name: "New Zealand", dialCode: "+64" },
79
- ZA: { code: "ZA", name: "South Africa", dialCode: "+27" },
80
- EG: { code: "EG", name: "Egypt", dialCode: "+20" },
81
- NG: { code: "NG", name: "Nigeria", dialCode: "+234" },
82
- KE: { code: "KE", name: "Kenya", dialCode: "+254" },
83
- GH: { code: "GH", name: "Ghana", dialCode: "+233" },
84
- MA: { code: "MA", name: "Morocco", dialCode: "+212" },
85
- IL: { code: "IL", name: "Israel", dialCode: "+972" },
86
- SA: { code: "SA", name: "Saudi Arabia", dialCode: "+966" },
87
- AE: { code: "AE", name: "United Arab Emirates", dialCode: "+971" },
88
- TR: { code: "TR", name: "Turkey", dialCode: "+90" },
89
- PK: { code: "PK", name: "Pakistan", dialCode: "+92" }
90
- }, nt = Object.values(L).sort(
91
- (e, t) => e.name.localeCompare(t.name)
92
- );
93
- function Yr(e) {
94
- return L[e]?.dialCode ?? "+1";
95
- }
96
- const Mt = { 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(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]", "(?:31|4)6|51|6(?:485|5[0-3579]|[6-9])|7(?:20|32|8)|[89]"], "0$1"], ["(\\d{4})(\\d{3,9})", "$1 $2", ["[2-467]|5[2-6]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["5"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4,7})", "$1 $2 $3", ["5"], "0$1"]], "0"], AU: ["61", "001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011", "1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}", [5, 6, 7, 8, 9, 10, 12], [["(\\d{2})(\\d{3,4})", "$1 $2", ["16"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2,4})", "$1 $2 $3", ["16"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["14|4"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["[2378]"], "(0$1)"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1(?:30|[89])"]]], "0", 0, "(183[12])|0", 0, 0, 0, [["(?:(?:241|349)0\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|[34]\\d\\d)|91(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79]))))\\d{3}|(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8])|8(?:55|6[0-8]|[78]\\d|9[02-9]))\\d{6}", [9]], ["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}", [9]], ["180(?:0\\d{3}|2)\\d{3}", [7, 10]], ["190[0-26]\\d{6}", [10]], 0, 0, 0, ["163\\d{2,6}", [5, 6, 7, 8, 9]], ["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}", [9]], ["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}", [6, 8, 10, 12]]], "0011"], AW: ["297", "00", "(?:[25-79]\\d\\d|800)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[25-9]"]]]], AX: ["358", "00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))", "2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}", [5, 6, 7, 8, 9, 10, 11, 12], 0, "0", 0, 0, 0, 0, "18", 0, "00"], AZ: ["994", "00", "365\\d{6}|(?:[124579]\\d|60|88)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["90"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["1[28]|2|365|46", "1[28]|2|365[45]|46", "1[28]|2|365(?:4|5[02])|46"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[13-9]"], "0$1"]], "0"], BA: ["387", "00", "6\\d{8}|(?:[35689]\\d|49|70)\\d{6}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["6[1-3]|[7-9]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2-$3", ["[3-5]|6[56]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3 $4", ["6"], "0$1"]], "0"], BB: ["1", "011", "(?:246|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "246$1", 0, "246"], BD: ["880", "00", "[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}", [6, 7, 8, 9, 10], [["(\\d{2})(\\d{4,6})", "$1-$2", ["31[5-8]|[459]1"], "0$1"], ["(\\d{3})(\\d{3,7})", "$1-$2", ["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|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]|2[23]"], "0$1"], ["(\\d)(\\d{7,8})", "$1-$2", ["2"], "0$1"]], "0"], BE: ["32", "00", "4\\d{8}|[1-9]\\d{7}", [8, 9], [["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["(?:80|9)0"], "0$1"], ["(\\d)(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[239]|4[23]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[15-8]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["4"], "0$1"]], "0"], BF: ["226", "00", "(?:[025-7]\\d|44)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[024-7]"]]]], BG: ["359", "00", "00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}", [6, 7, 8, 9, 12], [["(\\d)(\\d)(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["2"], "0$1"], ["(\\d{3})(\\d{4})", "$1 $2", ["43[1-6]|70[1-9]"], "0$1"], ["(\\d)(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2,3})", "$1 $2 $3", ["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["(?:70|8)0"], "0$1"], ["(\\d{3})(\\d{3})(\\d{2})", "$1 $2 $3", ["43[1-7]|7"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[48]|9[08]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["9"], "0$1"]], "0"], BH: ["973", "00", "[136-9]\\d{7}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[13679]|8[02-4679]"]]]], BI: ["257", "00", "(?:[267]\\d|31)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2367]"]]]], BJ: ["229", "00", "(?:01\\d|8)\\d{7}", [8, 10], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["0"]]]], BL: ["590", "00", "(?:590\\d|7090)\\d{5}|(?: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])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"], ["80[0-5]\\d{6}"], 0, 0, 0, 0, 0, ["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]], BM: ["1", "011", "(?:441|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "441$1", 0, "441"], BN: ["673", "00", "[2-578]\\d{6}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-578]"]]]], BO: ["591", "00(?:1\\d)?", "8001\\d{5}|(?:[2-467]\\d|50)\\d{6}", [8, 9], [["(\\d)(\\d{7})", "$1 $2", ["[235]|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-467]\\d{9,10}|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}", [8, 9, 10, 11], [["(\\d{4})(\\d{4})", "$1-$2", ["300|4(?:0[02]|37|86)", "300|4(?:0(?:0|20)|370|864)"]], ["(\\d{3})(\\d{2,3})(\\d{4})", "$1 $2 $3", ["(?:[358]|90)0"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2-$3", ["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"], "($1)"], ["(\\d{2})(\\d{5})(\\d{4})", "$1 $2-$3", ["[16][1-9]|[2-57-9]"], "($1)"]], "0", 0, "(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?", "$2"], BS: ["1", "011", "(?:242|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([3-8]\\d{6})$|1", "242$1", 0, "242"], BT: ["975", "00", "[178]\\d{7}|[2-8]\\d{6}", [7, 8], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-6]|7[246]|8[2-4]"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["1[67]|[78]"]]]], BW: ["267", "00", "(?: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-9]\\d{9}|3\\d{6}", [7, 10], 0, "1", 0, 0, 0, 0, 0, [["(?:2(?:04|[23]6|[48]9|5[07]|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|7[39])|9(?:0[25]|42))[2-9]\\d{6}", [10]], ["", [10]], ["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}", [10]], ["900[2-9]\\d{6}", [10]], ["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|33|44|66|77|88)|6(?:22|33))[2-9]\\d{6}", [10]], 0, ["310\\d{4}", [7]], 0, ["600[2-9]\\d{6}", [10]]]], CC: ["61", "001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011", "1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}", [6, 7, 8, 9, 10, 12], 0, "0", 0, "([59]\\d{7})$|0", "8$1", 0, 0, [["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}", [9]], ["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}", [9]], ["180(?:0\\d{3}|2)\\d{3}", [7, 10]], ["190[0-26]\\d{6}", [10]], 0, 0, 0, 0, ["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}", [9]], ["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}", [6, 8, 10, 12]]], "0011"], CD: ["243", "00", "(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}", [7, 8, 9, 10], [["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["88"], "0$1"], ["(\\d{2})(\\d{5})", "$1 $2", ["[1-6]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[89]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["5"], "0$1"]], "0"], CF: ["236", "00", "(?:[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, 12], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8[047]|90"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-79]|81"], "0$1"], ["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["8"], "0$1"]], "0"], CI: ["225", "00", "[02]\\d{9}", [10], [["(\\d{2})(\\d{2})(\\d)(\\d{5})", "$1 $2 $3 $4", ["2"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3 $4", ["0"]]]], CK: ["682", "00", "[2-578]\\d{4}", [5], [["(\\d{2})(\\d{3})", "$1 $2", ["[2-578]"]]]], CL: ["56", "(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0", "12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}", [9, 10, 11], [["(\\d{5})(\\d{4})", "$1 $2", ["219", "2196"], "($1)"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["60|809"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["44"]], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["2[1-36]"], "($1)"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["9(?:10|[2-9])"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[1-9])"], "($1)"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["60|8"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]], ["(\\d{3})(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3 $4", ["60"]]]], CM: ["237", "00", "[26]\\d{8}|88\\d{6,7}", [8, 9], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["88"]], ["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["[26]|88"]]]], CN: ["86", "00|1(?:[12]\\d|79)\\d\\d00", "(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}", [7, 8, 9, 10, 11, 12], [["(\\d{2})(\\d{5,6})", "$1 $2", ["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|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(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]", "(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-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]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1", "10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-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]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12", "10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-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]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123", "10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"], "0$1"], ["(\\d{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])", "(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}", [8, 10, 11], [["(\\d{4})(\\d{4})", "$1 $2", ["46"]], ["(\\d{3})(\\d{7})", "$1 $2", ["6|90"], "($1)"], ["(\\d{3})(\\d{7})", "$1 $2", ["3[0-357]|9[14]"]], ["(\\d)(\\d{3})(\\d{7})", "$1-$2-$3", ["1"], "0$1", 0, "$1 $2 $3"]], "0", 0, "0([3579]|4(?:[14]4|56))?"], CR: ["506", "00", "(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}", [8, 10], [["(\\d{4})(\\d{4})", "$1 $2", ["[2-7]|8[3-9]"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1-$2-$3", ["[89]"]]], 0, 0, "(19(?:0[0-2468]|1[09]|20|66|77|99))"], CU: ["53", "119", "(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}", [6, 7, 8, 10], [["(\\d{2})(\\d{4,6})", "$1 $2", ["2[1-4]|[34]"], "(0$1)"], ["(\\d)(\\d{6,7})", "$1 $2", ["7"], "(0$1)"], ["(\\d)(\\d{7})", "$1 $2", ["[56]"], "0$1"], ["(\\d{3})(\\d{7})", "$1 $2", ["8"], "0$1"]], "0"], CV: ["238", "0", "(?:[2-59]\\d\\d|800)\\d{4}", [7], [["(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3", ["[2-589]"]]]], CW: ["599", "00", "(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}", [7, 8], [["(\\d{3})(\\d{4})", "$1 $2", ["[3467]"]], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["9[4-8]"]]], 0, 0, 0, 0, 0, "[69]"], CX: ["61", "001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011", "1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}", [6, 7, 8, 9, 10, 12], 0, "0", 0, "([59]\\d{7})$|0", "8$1", 0, 0, [["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}", [9]], ["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}", [9]], ["180(?:0\\d{3}|2)\\d{3}", [7, 10]], ["190[0-26]\\d{6}", [10]], 0, 0, 0, 0, ["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}", [9]], ["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}", [6, 8, 10, 12]]], "0011"], CY: ["357", "00", "(?:[279]\\d|[58]0)\\d{6}", [8], [["(\\d{2})(\\d{6})", "$1 $2", ["[257-9]"]]]], CZ: ["420", "00", "(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}", [9, 10, 11, 12], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-8]|9[015-7]"]], ["(\\d{2})(\\d{3})(\\d{3})(\\d{2})", "$1 $2 $3 $4", ["96"]], ["(\\d{2})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["9"]], ["(\\d{3})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["9"]]]], DE: ["49", "00", "[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}", [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], [["(\\d{2})(\\d{3,13})", "$1 $2", ["3[02]|40|[68]9"], "0$1"], ["(\\d{3})(\\d{3,12})", "$1 $2", ["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1", "2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"], "0$1"], ["(\\d{4})(\\d{2,11})", "$1 $2", ["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]", "[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"], "0$1"], ["(\\d{3})(\\d{4})", "$1 $2", ["138"], "0$1"], ["(\\d{5})(\\d{2,10})", "$1 $2", ["3"], "0$1"], ["(\\d{3})(\\d{5,11})", "$1 $2", ["181"], "0$1"], ["(\\d{3})(\\d)(\\d{4,10})", "$1 $2 $3", ["1(?:3|80)|9"], "0$1"], ["(\\d{3})(\\d{7,8})", "$1 $2", ["1[67]"], "0$1"], ["(\\d{3})(\\d{7,12})", "$1 $2", ["8"], "0$1"], ["(\\d{5})(\\d{6})", "$1 $2", ["185", "1850", "18500"], "0$1"], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["7"], "0$1"], ["(\\d{4})(\\d{7})", "$1 $2", ["18[68]"], "0$1"], ["(\\d{4})(\\d{7})", "$1 $2", ["15[1279]"], "0$1"], ["(\\d{5})(\\d{6})", "$1 $2", ["15[03568]", "15(?:[0568]|3[13])"], "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{5})", "$1", ["20[2-59]"], "0$1"], ["(\\d{3})(\\d{3,7})", "$1 $2", ["(?:[1-3]0|[68])0|70[07-9]"], "0$1"], ["(\\d{2})(\\d{4,8})", "$1 $2", ["[14]|2[09]|50|7[135]"], "0$1"], ["(\\d{2})(\\d{6,10})", "$1 $2", ["7"], "0$1"], ["(\\d)(\\d{4,9})", "$1 $2", ["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"], "0$1"]], "0", 0, 0, 0, 0, "1[03-79]|[2-9]", 0, "00"], FJ: ["679", "0(?:0|52)", "45\\d{5}|(?:0800\\d|[235-9])\\d{6}", [7, 11], [["(\\d{3})(\\d{4})", "$1 $2", ["[235-9]|45"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["0"]]], 0, 0, 0, 0, 0, 0, 0, "00"], FK: ["500", "00", "[2-7]\\d{4}", [5]], FM: ["691", "00", "(?:[39]\\d\\d|820)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[389]"]]]], FO: ["298", "00", "[2-9]\\d{5}", [6], [["(\\d{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|180020", 0, 0, 0, [["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}", [9, 10]], ["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}", [10]], ["80[08]\\d{7}|800\\d{6}|8001111"], ["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d", [7, 10]], ["70\\d{8}", [10]], 0, ["(?:3[0347]|55)\\d{8}", [10]], ["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}", [10]], ["56\\d{8}", [10]]], 0, " x"], GD: ["1", "011", "(?:473|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "473$1", 0, "473"], GE: ["995", "00", "(?:[3-57]\\d\\d|800)\\d{6}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["70"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["32"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[57]"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[348]"], "0$1"]], "0"], GF: ["594", "00", "(?:[56]94\\d|7093)\\d{5}|(?:80|9\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-7]|9[47]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[89]"], "0$1"]], "0"], GG: ["44", "00", "(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?", [7, 9, 10], 0, "0", 0, "([25-9]\\d{5})$|0|180020", "1481$1", 0, 0, [["1481[25-9]\\d{5}", [10]], ["7(?:(?:781|839)\\d|911[17])\\d{5}", [10]], ["80[08]\\d{7}|800\\d{6}|8001111"], ["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d", [7, 10]], ["70\\d{8}", [10]], 0, ["(?:3[0347]|55)\\d{8}", [10]], ["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}", [10]], ["56\\d{8}", [10]]]], GH: ["233", "00", "(?:[235]\\d{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|7090)\\d{5}|(?:69|80|9\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-79]"], "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])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"], ["80[0-5]\\d{6}"], 0, 0, 0, 0, 0, ["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]], GQ: ["240", "00", "222\\d{6}|(?:3\\d|55|[89]0)\\d{7}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[235]"]], ["(\\d{3})(\\d{6})", "$1 $2", ["[89]"]]]], GR: ["30", "00", "5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}", [10, 11, 12], [["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["21|7"]], ["(\\d{4})(\\d{6})", "$1 $2", ["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2689]"]], ["(\\d{3})(\\d{3,4})(\\d{5})", "$1 $2 $3", ["8"]]]], GT: ["502", "00", "80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}", [8, 11], [["(\\d{4})(\\d{4})", "$1 $2", ["[2-8]"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]]]], GU: ["1", "011", "(?:[58]\\d\\d|671|900)\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "671$1", 0, "671"], GW: ["245", "00", "[49]\\d{8}|4\\d{6}", [7, 9], [["(\\d{3})(\\d{4})", "$1 $2", ["40"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[49]"]]]], GY: ["592", "001", "(?:[2-8]\\d{3}|9008)\\d{3}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-9]"]]]], HK: ["852", "00(?:30|5[09]|[126-9]?)", "8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}", [5, 6, 7, 8, 9, 11], [["(\\d{3})(\\d{2,5})", "$1 $2", ["900", "9003"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"]], ["(\\d{3})(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["9"]]], 0, 0, 0, 0, 0, 0, 0, "00"], HN: ["504", "00", "8\\d{10}|[237-9]\\d{7}", [8, 11], [["(\\d{4})(\\d{4})", "$1-$2", ["[237-9]"]]]], HR: ["385", "00", "[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}", [7, 8, 9], [["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["6[01]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["8"], "0$1"], ["(\\d)(\\d{4})(\\d{3})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["6|7[245]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["9"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2-57]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"], "0$1"]], "0"], HT: ["509", "00", "[2-589]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["[2-589]"]]]], HU: ["36", "00", "[235-7]\\d{8}|[1-9]\\d{7}", [8, 9], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "(06 $1)"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"], "(06 $1)"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2-9]"], "06 $1"]], "06"], ID: ["62", "00[89]", "00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}", [7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["15"]], ["(\\d{2})(\\d{5,9})", "$1 $2", ["2[124]|[36]1"], "(0$1)"], ["(\\d{3})(\\d{5,7})", "$1 $2", ["800"], "0$1"], ["(\\d{3})(\\d{5,8})", "$1 $2", ["[2-79]"], "(0$1)"], ["(\\d{3})(\\d{3,4})(\\d{3})", "$1-$2-$3", ["8[1-35-9]"], "0$1"], ["(\\d{3})(\\d{6,8})", "$1 $2", ["1"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["804"], "0$1"], ["(\\d{3})(\\d)(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["80"], "0$1"], ["(\\d{3})(\\d{4})(\\d{4,5})", "$1-$2-$3", ["8"], "0$1"]], "0"], IE: ["353", "00", "(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}", [7, 8, 9, 10], [["(\\d{2})(\\d{5})", "$1 $2", ["2[24-9]|47|58|6[237-9]|9[35-9]"], "(0$1)"], ["(\\d{3})(\\d{5})", "$1 $2", ["[45]0"], "(0$1)"], ["(\\d)(\\d{3,4})(\\d{4})", "$1 $2 $3", ["1"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2569]|4[1-69]|7[14]"], "(0$1)"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["70"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["81"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[78]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1"]], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["4"], "(0$1)"], ["(\\d{2})(\\d)(\\d{3})(\\d{4})", "$1 $2 $3 $4", ["8"], "0$1"]], "0"], IL: ["972", "0(?:0|1[2-9])", "1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}", [7, 8, 9, 10, 11, 12], [["(\\d{4})(\\d{3})", "$1-$2", ["125"]], ["(\\d{4})(\\d{2})(\\d{2})", "$1-$2-$3", ["121"]], ["(\\d)(\\d{3})(\\d{4})", "$1-$2-$3", ["[2-489]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1-$2-$3", ["[57]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1-$2-$3", ["12"]], ["(\\d{4})(\\d{6})", "$1-$2", ["159"]], ["(\\d)(\\d{3})(\\d{3})(\\d{3})", "$1-$2-$3-$4", ["1[7-9]"]], ["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})", "$1-$2 $3-$4", ["15"]]], "0"], IM: ["44", "00", "1624\\d{6}|(?:[3578]\\d|90)\\d{8}", [10], 0, "0", 0, "([25-8]\\d{5})$|0|180020", "1624$1", 0, "74576|(?:16|7[56])24"], IN: ["91", "00", "(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}", [8, 9, 10, 11, 12, 13], [["(\\d{8})", "$1", ["5(?:0|2[23]|3[03]|[67]1|88)", "5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)", "5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"], 0, 1], ["(\\d{4})(\\d{4,5})", "$1 $2", ["180", "1800"], 0, 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["140"], 0, 1], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["11|2[02]|33|4[04]|79[1-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|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689])\\d|8(?:[14-6]\\d|2[0-79]))|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", ["16|[6-9]"], "0$1", 1], ["(\\d{4})(\\d{2,4})(\\d{4})", "$1 $2 $3", ["18[06]", "18[06]0"], 0, 1], ["(\\d{4})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["18"], 0, 1]], "0"], IO: ["246", "00", "3\\d{6}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["3"]]]], IQ: ["964", "00", "(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}", [8, 9, 10], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2-6]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["7"], "0$1"]], "0"], IR: ["98", "00", "[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}", [4, 5, 6, 7, 10], [["(\\d{4,5})", "$1", ["96"], "0$1"], ["(\\d{2})(\\d{4,5})", "$1 $2", ["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["9"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["[1-8]"], "0$1"]], "0"], IS: ["354", "00|1(?:0(?:01|[12]0)|100)", "(?:38\\d|[4-9])\\d{6}", [7, 9], [["(\\d{3})(\\d{4})", "$1 $2", ["[4-9]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["3"]]], 0, 0, 0, 0, 0, 0, 0, "00"], IT: ["39", "00", "0\\d{5,11}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?", [6, 7, 8, 9, 10, 11, 12], [["(\\d{2})(\\d{4,6})", "$1 $2", ["0[26]"]], ["(\\d{3})(\\d{3,6})", "$1 $2", ["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])", "0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]], ["(\\d{4})(\\d{2,6})", "$1 $2", ["0(?:[13-579][2-46-8]|8[236-8])"]], ["(\\d{4})(\\d{4})", "$1 $2", ["894"]], ["(\\d{2})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["0[26]|5"]], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["1(?:44|[679])|[378]|43"]], ["(\\d{3})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["0[13-57-9][0159]|14"]], ["(\\d{2})(\\d{4})(\\d{5})", "$1 $2 $3", ["0[26]"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["0"]], ["(\\d{3})(\\d{4})(\\d{4,5})", "$1 $2 $3", ["[03]"]]], 0, 0, 0, 0, 0, 0, [["0(?:669[0-79]\\d{1,6}|831\\d{2,8})|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"], ["3[2-9]\\d{7,8}|(?:31|43)\\d{8}", [9, 10]], ["80(?:0\\d{3}|3)\\d{3}", [6, 9]], ["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}", [6, 8, 9, 10]], ["1(?:78\\d|99)\\d{6}", [9, 10]], ["3[2-8]\\d{9,10}", [11, 12]], 0, 0, ["55\\d{8}", [10]], ["84(?:[08]\\d{3}|[17])\\d{3}", [6, 9]]]], JE: ["44", "00", "1534\\d{6}|(?:[3578]\\d|90)\\d{8}", [10], 0, "0", 0, "([0-24-8]\\d{5})$|0|180020", "1534$1", 0, 0, [["1534[0-24-8]\\d{5}"], ["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"], ["80(?:07(?:35|81)|8901)\\d{4}"], ["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"], ["701511\\d{4}"], 0, ["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"], ["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"], ["56\\d{8}"]]], JM: ["1", "011", "(?:[58]\\d\\d|658|900)\\d{7}", [10], 0, "1", 0, 0, 0, 0, "658|876"], JO: ["962", "00", "(?:(?:[2689]|7\\d)\\d|32|427|53)\\d{6}", [8, 9], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["[2356]|87"], "(0$1)"], ["(\\d{3})(\\d{5,6})", "$1 $2", ["[89]"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["70"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["[47]"], "0$1"]], "0"], JP: ["81", "010", "00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}", [8, 9, 10, 11, 12, 13, 14, 15, 16, 17], [["(\\d{3})(\\d{3})(\\d{3})", "$1-$2-$3", ["(?:12|57|99)0"], "0$1"], ["(\\d{4})(\\d)(\\d{4})", "$1-$2-$3", ["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])", "1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]", "1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1-$2-$3", ["60"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1-$2-$3", ["3|4(?:2[09]|7[01])|6[1-9]", "3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1-$2-$3", ["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])", "1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]", "1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{4})", "$1-$2-$3", ["[14]|[289][2-9]|5[3-9]|7[2-4679]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1-$2-$3", ["800"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1-$2-$3", ["[25-9]"], "0$1"]], "0", 0, "(000[2569]\\d{4,6})$|(?:(?:003768)0?)|0", "$1"], KE: ["254", "000", "(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}", [7, 8, 9, 10], [["(\\d{2})(\\d{5,7})", "$1 $2", ["[24-6]"], "0$1"], ["(\\d{3})(\\d{6})", "$1 $2", ["[17]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[89]"], "0$1"]], "0"], KG: ["996", "00", "8\\d{9}|[235-9]\\d{8}", [9, 10], [["(\\d{4})(\\d{5})", "$1 $2", ["3(?:1[346]|[24-79])"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[235-79]|88"], "0$1"], ["(\\d{3})(\\d{3})(\\d)(\\d{2,3})", "$1 $2 $3 $4", ["8"], "0$1"]], "0"], KH: ["855", "00[14-9]", "1\\d{9}|[1-9]\\d{7,8}", [8, 9, 10], [["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[1-9]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1"]]], "0"], KI: ["686", "00", "(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}", [5, 8], 0, "0"], KM: ["269", "00", "[3478]\\d{6}", [7], [["(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3", ["[3478]"]]]], KN: ["1", "011", "(?:[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-7]\\d{6})$|1", "869$1", 0, "869"], KP: ["850", "00|99", "85\\d{6}|(?:19\\d|[2-7])\\d{7}", [8, 10], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"], "0$1"], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["[2-7]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"]], "0"], KR: ["82", "00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))", "00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}", [5, 6, 8, 9, 10, 11, 12, 13, 14], [["(\\d{2})(\\d{3,4})", "$1-$2", ["(?:3[1-3]|[46][1-4]|5[1-5])1"], "0$1"], ["(\\d{4})(\\d{4})", "$1-$2", ["1"]], ["(\\d)(\\d{3,4})(\\d{4})", "$1-$2-$3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1-$2-$3", ["[36]0|8"], "0$1"], ["(\\d{2})(\\d{3,4})(\\d{4})", "$1-$2-$3", ["[1346]|5[1-5]"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1-$2-$3", ["[57]"], "0$1"], ["(\\d{2})(\\d{5})(\\d{4})", "$1-$2-$3", ["5"], "0$1"]], "0", 0, "0(8(?:[1-46-8]|5\\d\\d))?"], KW: ["965", "00", "18\\d{5}|(?:[2569]\\d|41)\\d{6}", [7, 8], [["(\\d{4})(\\d{3,4})", "$1 $2", ["[169]|2(?:[235]|4[1-35-9])|52"]], ["(\\d{3})(\\d{5})", "$1 $2", ["[245]"]]]], KY: ["1", "011", "(?:345|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "345$1", 0, "345"], KZ: ["7", "810", "(?:33622|8\\d{8})\\d{5}|[78]\\d{9}", [10, 14], 0, "8", 0, 0, 0, 0, "33622|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", ["3"], "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-6]|9[04-9])|8[02-9]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[27-9]"]]], "0"], LC: ["1", "011", "(?:[58]\\d\\d|758|900)\\d{7}", [10], 0, "1", 0, "([2-8]\\d{6})$|1", "758$1", 0, "758"], LI: ["423", "00", "[68]\\d{8}|(?:[2378]\\d|90)\\d{5}", [7, 9], [["(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3", ["[2379]|8(?:0[09]|7)", "[2379]|8(?:0(?:02|9)|7)"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["69"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["6"]]], "0", 0, "(1001)|0"], LK: ["94", "00", "[1-9]\\d{8}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["7"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[1-689]"], "0$1"]], "0"], LR: ["231", "00", "(?:[2457]\\d|33|88)\\d{7}|(?:2\\d|[4-6])\\d{6}", [7, 8, 9], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["4[67]|[56]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2-578]"], "0$1"]], "0"], LS: ["266", "00", "(?:[256]\\d\\d|800)\\d{5}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[2568]"]]]], LT: ["370", "00", "(?:[3469]\\d|52|[78]0)\\d{6}", [8], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["52[0-7]"], "(0-$1)", 1], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["[7-9]"], "0 $1", 1], ["(\\d{2})(\\d{6})", "$1 $2", ["37|4(?:[15]|6[1-8])"], "(0-$1)", 1], ["(\\d{3})(\\d{5})", "$1 $2", ["[3-6]"], "(0-$1)", 1]], "0", 0, "[08]"], LU: ["352", "00", "35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}", [4, 5, 6, 7, 8, 9, 10, 11], [["(\\d{2})(\\d{3})", "$1 $2", ["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]], ["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]], ["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["20[2-689]"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})", "$1 $2 $3 $4", ["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|78|90)\\d{6}", [8], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2679]|8[01]"]]]], LY: ["218", "00", "[2-9]\\d{8}", [9], [["(\\d{2})(\\d{7})", "$1-$2", ["[2-9]"], "0$1"]], "0"], MA: ["212", "00", "[5-8]\\d{8}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["5[45]"], "0$1"], ["(\\d{4})(\\d{5})", "$1-$2", ["5(?:[19]|2[2-46-9]|3[3-9])|8(?:0[89]|92)"], "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, [["5(?:(?:18|4[0679]|5[03])\\d|2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9]))\\d{5}"], ["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|5[0-5]))\\d{6}"], ["80[0-7]\\d{6}"], ["89\\d{7}"], 0, 0, 0, 0, ["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]], MC: ["377", "00", "(?:[3489]|[67]\\d)\\d{7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["4"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[389]"]], ["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["[67]"], "0$1"]], "0"], MD: ["373", "00", "(?:[235-7]\\d|[89]0)\\d{6}", [8], [["(\\d{3})(\\d{5})", "$1 $2", ["[89]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["22|3"], "0$1"], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["[25-7]"], "0$1"]], "0"], ME: ["382", "00", "(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2-9]"], "0$1"]], "0"], MF: ["590", "00", "(?:590\\d|7090)\\d{5}|(?: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])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"], ["80[0-5]\\d{6}"], 0, 0, 0, 0, 0, ["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]], MG: ["261", "00", "[23]\\d{8}", [9], [["(\\d{2})(\\d{2})(\\d{3})(\\d{2})", "$1 $2 $3 $4", ["[23]"], "0$1"]], "0", 0, "([24-9]\\d{6})$|0", "20$1"], MH: ["692", "011", "329\\d{4}|(?:[256]\\d|45)\\d{5}", [7], [["(\\d{3})(\\d{4})", "$1-$2", ["[2-6]"]]], "1"], MK: ["389", "00", "[2-578]\\d{7}", [8], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["2|34[47]|4(?:[37]7|5[47]|64)"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[347]"], "0$1"], ["(\\d{3})(\\d)(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[58]"], "0$1"]], "0"], ML: ["223", "00", "[24-9]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[24-9]"]]]], MM: ["95", "00", "1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}", [6, 7, 8, 9, 10], [["(\\d)(\\d{2})(\\d{3})", "$1 $2 $3", ["16|2"], "0$1"], ["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"], "0$1"], ["(\\d)(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[12]|452|678|86", "[12]|452|6788|86"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[4-7]|8[1-35]"], "0$1"], ["(\\d)(\\d{3})(\\d{4,6})", "$1 $2 $3", ["9(?:2[0-4]|[35-9]|4[137-9])"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"], "0$1"], ["(\\d)(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["92"], "0$1"], ["(\\d)(\\d{5})(\\d{4})", "$1 $2 $3", ["9"], "0$1"]], "0"], MN: ["976", "001", "[12]\\d{7,9}|[5-9]\\d{7}", [8, 9, 10], [["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["[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|7091)\\d{5}|(?:69|[89]\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-79]|8(?:0[6-9]|[36])"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0$1"]], "0"], MR: ["222", "00", "(?:[2-4]\\d\\d|800)\\d{5}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-48]"]]]], MS: ["1", "011", "(?:[58]\\d\\d|664|900)\\d{7}", [10], 0, "1", 0, "([34]\\d{6})$|1", "664$1", 0, "664"], MT: ["356", "00", "3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[2357-9]"]]]], MU: ["230", "0(?:0|[24-7]0|3[03])", "(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}", [7, 8, 10], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-46]|8[013]"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[57]"]], ["(\\d{5})(\\d{5})", "$1 $2", ["8"]]], 0, 0, 0, 0, 0, 0, 0, "020"], MV: ["960", "0(?:0|19)", "(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}", [7, 10], [["(\\d{3})(\\d{4})", "$1-$2", ["[34679]"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[89]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], MW: ["265", "00", "(?:[1289]\\d|31|77)\\d{7}|1\\d{6}", [7, 9], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["1[2-9]"], "0$1"], ["(\\d{3})(\\d{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]", "[2-9]\\d{9}", [10], [["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["33|5[56]|81"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2-9]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], MY: ["60", "00", "1\\d{8,9}|(?:3\\d|[4-9])\\d{7}", [8, 9, 10], [["(\\d)(\\d{3})(\\d{4})", "$1-$2 $3", ["[4-79]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1-$2 $3", ["1(?:[02469]|[378][1-9]|53)|8", "1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1-$2 $3", ["3"], "0$1"], ["(\\d)(\\d{3})(\\d{2})(\\d{4})", "$1-$2-$3-$4", ["1(?:[367]|80)"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1-$2 $3", ["15"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1-$2 $3", ["1"], "0$1"]], "0"], MZ: ["258", "00", "(?:2|8\\d)\\d{7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2|8[2-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[0467]"]]]], NF: ["672", "00", "[13]\\d{5}", [6], [["(\\d{2})(\\d{4})", "$1 $2", ["1[0-3]"]], ["(\\d)(\\d{5})", "$1 $2", ["[13]"]]], 0, 0, "([0-258]\\d{4})$", "3$1"], NG: ["234", "009", "(?:20|9\\d)\\d{8}|[78]\\d{9,13}", [10, 11, 12, 13, 14], [["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[7-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["20[129]"], "0$1"], ["(\\d{4})(\\d{2})(\\d{4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{3})(\\d{4})(\\d{4,5})", "$1 $2 $3", ["[78]"], "0$1"], ["(\\d{3})(\\d{5})(\\d{5,6})", "$1 $2 $3", ["[78]"], "0$1"]], "0"], NI: ["505", "00", "(?:1800|[25-8]\\d{3})\\d{4}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[125-8]"]]]], NL: ["31", "00", "(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}", [5, 6, 7, 8, 9, 10, 11], [["(\\d{3})(\\d{4,7})", "$1 $2", ["[89]0"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["66"], "0$1"], ["(\\d)(\\d{8})", "$1 $2", ["6"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1-578]|91"], "0$1"], ["(\\d{3})(\\d{3})(\\d{5})", "$1 $2 $3", ["9"], "0$1"]], "0"], NO: ["47", "00", "(?:0|[2-9]\\d{3})\\d{4}", [5, 8], [["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["8"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-79]"]]], 0, 0, 0, 0, 0, "[02-689]|7[0-8]"], NP: ["977", "00", "(?:1\\d|9)\\d{9}|[1-9]\\d{7}", [8, 10, 11], [["(\\d)(\\d{7})", "$1-$2", ["1[2-6]"], "0$1"], ["(\\d{2})(\\d{6})", "$1-$2", ["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"], "0$1"], ["(\\d{3})(\\d{7})", "$1-$2", ["9"]]], "0"], NR: ["674", "00", "(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[24-9]"]]]], NU: ["683", "00", "(?:[4-7]|888\\d)\\d{3}", [4, 7], [["(\\d{3})(\\d{4})", "$1 $2", ["8"]]]], NZ: ["64", "0(?:0|161)", "[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}", [5, 6, 7, 8, 9, 10], [["(\\d{2})(\\d{3,8})", "$1 $2", ["8[1-79]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["50[036-8]|8|90", "50(?:[0367]|88)|8|90"], "0$1"], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["24|[346]|7[2-57-9]|9[2-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2(?:10|74)|[589]"], "0$1"], ["(\\d{2})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["1|2[028]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,5})", "$1 $2 $3", ["2(?:[169]|7[0-35-9])|7"], "0$1"]], "0", 0, 0, 0, 0, 0, 0, "00"], OM: ["968", "00", "(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}", [7, 8, 9], [["(\\d{3})(\\d{4,6})", "$1 $2", ["[58]"]], ["(\\d{2})(\\d{6})", "$1 $2", ["2"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[179]"]]]], PA: ["507", "00", "(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}", [7, 8, 10, 11], [["(\\d{3})(\\d{4})", "$1-$2", ["[1-57-9]"]], ["(\\d{4})(\\d{4})", "$1-$2", ["[68]"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"]]]], PE: ["51", "00|19(?:1[124]|77|90)00", "(?:[14-8]|9\\d)\\d{7}", [8, 9], [["(\\d{3})(\\d{5})", "$1 $2", ["80"], "(0$1)"], ["(\\d)(\\d{7})", "$1 $2", ["1"], "(0$1)"], ["(\\d{2})(\\d{6})", "$1 $2", ["[4-8]"], "(0$1)"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["9"]]], "0", 0, 0, 0, 0, 0, 0, "00", " Anexo "], PF: ["689", "00", "4\\d{5}(?:\\d{2})?|8\\d{7,8}", [6, 8, 9], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["44"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["4|8[7-9]"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"]]]], PG: ["675", "00|140[1-3]", "(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}", [7, 8], [["(\\d{3})(\\d{4})", "$1 $2", ["18|[2-69]|85"]], ["(\\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|8\\d\\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-7])"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-8]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["9"]]], "0"], QA: ["974", "00", "800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}", [7, 8, 9, 11], [["(\\d{3})(\\d{4})", "$1 $2", ["2[136]|8"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[3-7]"]]]], RE: ["262", "00", "709\\d{6}|(?:26|[689]\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[26-9]"], "0$1"]], "0", 0, 0, 0, 0, 0, [["26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"], ["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"], ["80\\d{7}"], ["89[1-37-9]\\d{6}"], 0, 0, 0, 0, ["9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}"], ["8(?:1[019]|2[0156]|84|90)\\d{6}"]]], RO: ["40", "00", "(?:[236-8]\\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", ["[236-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, 0, [["336(?:[013-9]\\d|2[013-9])\\d{5}|(?:3(?:0[12]|4[1-35-79]|5[1-3]|65|8[1-58]|9[0145])|4(?:01|1[1356]|2[13467]|7[1-5]|8[1-7]|9[1-689])|8(?:1[1-8]|2[01]|3[13-6]|4[0-8]|5[15-7]|6[0-35-79]|7[1-37-9]))\\d{7}", [10]], ["9\\d{9}", [10]], ["8(?:0[04]|108\\d{3})\\d{7}"], ["80[39]\\d{7}", [10]], ["808\\d{7}", [10]]], "8~10"], RW: ["250", "00", "(?:06|[27]\\d\\d|[89]00)\\d{6}", [8, 9], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["0"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["2"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[7-9]"], "0$1"]], "0"], SA: ["966", "00", "(?:[15]\\d|800|92)\\d{7}", [9, 10], [["(\\d{4})(\\d{5})", "$1 $2", ["9"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["5"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"]]], "0"], SB: ["677", "0[01]", "[6-9]\\d{6}|[1-6]\\d{4}", [5, 7], [["(\\d{2})(\\d{5})", "$1 $2", ["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]], SC: ["248", "010|0[0-2]", "(?:[2489]\\d|64)\\d{5}", [7], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[246]|9[57]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], SD: ["249", "00", "[19]\\d{8}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[19]"], "0$1"]], "0"], SE: ["46", "00", "(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}", [6, 7, 8, 9, 10, 12], [["(\\d{2})(\\d{2,3})(\\d{2})", "$1-$2 $3", ["20"], "0$1", 0, "$1 $2 $3"], ["(\\d{3})(\\d{4})", "$1-$2", ["9(?:00|39|44|9)"], "0$1", 0, "$1 $2"], ["(\\d{2})(\\d{3})(\\d{2})", "$1-$2 $3", ["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"], "0$1", 0, "$1 $2 $3"], ["(\\d)(\\d{2,3})(\\d{2})(\\d{2})", "$1-$2 $3 $4", ["8"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{3})(\\d{2,3})(\\d{2})", "$1-$2 $3", ["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"], "0$1", 0, "$1 $2 $3"], ["(\\d{3})(\\d{2,3})(\\d{3})", "$1-$2 $3", ["9(?:00|39|44)"], "0$1", 0, "$1 $2 $3"], ["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})", "$1-$2 $3 $4", ["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1-$2 $3 $4", ["10|7"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d)(\\d{3})(\\d{3})(\\d{2})", "$1-$2 $3 $4", ["8"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1-$2 $3 $4", ["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{3})", "$1-$2 $3 $4", ["9"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1-$2 $3 $4 $5", ["[26]"], "0$1", 0, "$1 $2 $3 $4 $5"]], "0"], SG: ["65", "0[0-3]\\d", "(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}", [8, 10, 11], [["(\\d{4})(\\d{4})", "$1 $2", ["[369]|8(?:0[1-9]|[1-9])"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"]], ["(\\d{4})(\\d{4})(\\d{3})", "$1 $2 $3", ["7"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]]]], SH: ["290", "00", "(?:[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|79)\\d{6}", [5, 8], 0, 0, 0, 0, 0, 0, "79"], SK: ["421", "00", "[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}", [6, 7, 9], [["(\\d)(\\d{2})(\\d{3,4})", "$1 $2 $3", ["21"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["[3-5][1-8]1", "[3-5][1-8]1[67]"], "0$1"], ["(\\d)(\\d{3})(\\d{3})(\\d{2})", "$1/$2 $3 $4", ["2"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[689]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1/$2 $3 $4", ["[3-5]"], "0$1"]], "0"], SL: ["232", "00", "(?:[237-9]\\d|66)\\d{6}", [8], [["(\\d{2})(\\d{6})", "$1 $2", ["[236-9]"], "(0$1)"]], "0"], SM: ["378", "00", "(?:0549|[5-7]\\d)\\d{6}", [8, 10], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-7]"]], ["(\\d{4})(\\d{6})", "$1 $2", ["0"]]], 0, 0, "([89]\\d{5})$", "0549$1"], SN: ["221", "00", "(?:[378]\\d|93)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"]], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[379]"]]]], SO: ["252", "00", "[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}", [6, 7, 8, 9], [["(\\d{2})(\\d{4})", "$1 $2", ["8[125]"]], ["(\\d{6})", "$1", ["[134]"]], ["(\\d)(\\d{6})", "$1 $2", ["[15]|2[0-79]|3[0-46-8]|4[0-7]"]], ["(\\d)(\\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]|7[67]|9[2-9]"]]], "0"], SR: ["597", "00", "(?:[2-5]|[6-8]\\d|90)\\d{5}", [6, 7], [["(\\d{2})(\\d{2})(\\d{2})", "$1-$2-$3", ["56"]], ["(\\d{3})(\\d{3})", "$1-$2", ["[2-5]"]], ["(\\d{3})(\\d{4})", "$1-$2", ["[6-9]"]]]], SS: ["211", "00", "[19]\\d{8}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[19]"], "0$1"]], "0"], ST: ["239", "00", "(?:22|9\\d)\\d{5}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[29]"]]]], SV: ["503", "00", "[25-7]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?", [7, 8, 11], [["(\\d{3})(\\d{4})", "$1 $2", ["[89]"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[25-7]"]], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["[89]"]]]], SX: ["1", "011", "7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "(5\\d{6})$|1", "721$1", 0, "721"], SY: ["963", "00", "[1-359]\\d{8}|[1-5]\\d{7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[1-4]|5[1-3]"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[59]"], "0$1", 1]], "0"], SZ: ["268", "00", "0800\\d{4}|(?:[237]\\d|900)\\d{6}", [8, 9], [["(\\d{4})(\\d{4})", "$1 $2", ["[0237]"]], ["(\\d{5})(\\d{4})", "$1 $2", ["9"]]]], TA: ["290", "00", "8\\d{3}", [4], 0, 0, 0, 0, 0, 0, "8"], TC: ["1", "011", "(?:[58]\\d\\d|649|900)\\d{7}", [10], 0, "1", 0, "([2-479]\\d{6})$|1", "649$1", 0, "649"], TD: ["235", "00|16", "(?:22|30|[689]\\d|77)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[236-9]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], TG: ["228", "00", "[279]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[279]"]]]], TH: ["66", "00[1-9]", "(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}", [8, 9, 10, 13], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[13-9]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1"]]], "0"], TJ: ["992", "810", "(?:[0-57-9]\\d|66)\\d{7}", [9], [["(\\d{6})(\\d)(\\d{2})", "$1 $2 $3", ["331", "3317"]], ["(\\d{3})(\\d{2})(\\d{4})", "$1 $2 $3", ["44[02-479]|[34]7"]], ["(\\d{4})(\\d)(\\d{4})", "$1 $2 $3", ["3(?:[1245]|3[12])"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["\\d"]]], 0, 0, 0, 0, 0, 0, 0, "8~10"], TK: ["690", "00", "[2-47]\\d{3,6}", [4, 5, 6, 7]], TL: ["670", "00", "7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}", [7, 8], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-489]|70"]], ["(\\d{4})(\\d{4})", "$1 $2", ["7"]]]], TM: ["993", "810", "(?:[1-6]\\d|71)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["12"], "(8 $1)"], ["(\\d{3})(\\d)(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["[1-5]"], "(8 $1)"], ["(\\d{2})(\\d{6})", "$1 $2", ["[67]"], "8 $1"]], "8", 0, 0, 0, 0, 0, 0, "8~10"], TN: ["216", "00", "[2-57-9]\\d{7}", [8], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-57-9]"]]]], TO: ["676", "00", "(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}", [5, 7], [["(\\d{2})(\\d{3})", "$1-$2", ["[2-4]|50|6[09]|7[0-24-69]|8[05]"]], ["(\\d{4})(\\d{3})", "$1 $2", ["0"]], ["(\\d{3})(\\d{4})", "$1 $2", ["[5-9]"]]]], TR: ["90", "00", "4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}", [7, 10, 12, 13], [["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["512|8[01589]|90"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["5(?:[0-59]|61)", "5(?:[0-59]|61[06])", "5(?:[0-59]|61[06]1)"], "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, [["3052(?:0[0-8]|[1-9]\\d)\\d{4}|(?:2742|305[3-9])\\d{6}|(?:472|983)[2-47-9]\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-47-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-247]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}"], [""], ["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"], ["900[2-9]\\d{6}"], ["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}"], 0, 0, 0, ["305209\\d{4}"]]], UY: ["598", "0(?:0|1[3-9]\\d)", "0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}", [4, 5, 6, 7, 8, 9, 10, 11, 12, 13], [["(\\d{4,5})", "$1", ["21"]], ["(\\d{3})(\\d{3,4})", "$1 $2", ["0"]], ["(\\d{3})(\\d{4})", "$1 $2", ["[49]0|8"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["9"], "0$1"], ["(\\d{4})(\\d{4})", "$1 $2", ["[124]"]], ["(\\d{3})(\\d{3})(\\d{2,4})", "$1 $2 $3", ["0"]], ["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})", "$1 $2 $3 $4", ["0"]]], "0", 0, 0, 0, 0, 0, 0, "00", " int. "], UZ: ["998", "00", "(?:20|33|[5-9]\\d)\\d{7}", [9], [["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[235-9]"]]]], VA: ["39", "00", "0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}", [6, 7, 8, 9, 10, 11, 12], 0, 0, 0, 0, 0, 0, "06698"], VC: ["1", "011", "(?:[58]\\d\\d|784|900)\\d{7}", [10], 0, "1", 0, "([2-7]\\d{6})$|1", "784$1", 0, "784"], VE: ["58", "00", "[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}", [10], [["(\\d{3})(\\d{7})", "$1-$2", ["[24-689]"], "0$1"]], "0"], VG: ["1", "011", "(?:284|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-578]\\d{6})$|1", "284$1", 0, "284"], VI: ["1", "011", "[58]\\d{9}|(?:34|90)0\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "340$1", 0, "340"], VN: ["84", "00", "[12]\\d{9}|[135-9]\\d{8}|[16]\\d{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|8\\d{4})\\d{4}|[89]\\d{5}", [6, 9], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["[47-9]"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"]]]], WS: ["685", "0", "(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}", [5, 6, 7, 10], [["(\\d{5})", "$1", ["[2-5]|6[1-9]"]], ["(\\d{3})(\\d{3,7})", "$1 $2", ["[68]"]], ["(\\d{2})(\\d{5})", "$1 $2", ["7"]]]], XK: ["383", "00", "2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}", [8, 9, 10, 11, 12], [["(\\d{3})(\\d{5})", "$1 $2", ["[89]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-4]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["2|39"], "0$1"], ["(\\d{2})(\\d{7,10})", "$1 $2", ["3"], "0$1"]], "0"], YE: ["967", "00", "(?:1|7\\d)\\d{7}|[1-7]\\d{6}", [7, 8, 9], [["(\\d)(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[1-6]|7(?:[24-6]|8[0-7])"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["7"], "0$1"]], "0"], YT: ["262", "00", "7093\\d{5}|(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}", [9], 0, "0", 0, 0, 0, 0, 0, [["269(?:0[0-467]|15|5[0-4]|6\\d|[78]0)\\d{4}"], ["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"], ["80\\d{7}"], 0, 0, 0, 0, 0, ["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]], ZA: ["27", "00", "[1-79]\\d{8}|8\\d{4,9}", [5, 6, 7, 8, 9, 10], [["(\\d{2})(\\d{3,4})", "$1 $2", ["8[1-4]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2,3})", "$1 $2 $3", ["8[1-4]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["860"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"], "0$1"]], "0"], ZM: ["260", "00", "800\\d{6}|(?:21|[579]\\d|63)\\d{7}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[28]"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["[579]"], "0$1"]], "0"], ZW: ["263", "00", "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}|[235-7]\\d{8}", [9, 12], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[235-7]"]]], 0, 0, 0, 0, 0, 0, [0, ["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"], 0, 0, 0, 0, 0, 0, ["2\\d{8}", [9]]]], 878: ["878", 0, "10\\d{10}", [12], [["(\\d{2})(\\d{5})(\\d{5})", "$1 $2 $3", ["1"]]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, 0, 0, ["10\\d{10}"]]], 881: ["881", 0, "6\\d{9}|[0-36-9]\\d{8}", [9, 10], [["(\\d)(\\d{3})(\\d{5})", "$1 $2 $3", ["[0-37-9]"]], ["(\\d)(\\d{3})(\\d{5,6})", "$1 $2 $3", ["6"]]], 0, 0, 0, 0, 0, 0, [0, ["6\\d{9}|[0-36-9]\\d{8}"]]], 882: ["882", 0, "[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?", [7, 8, 9, 10, 11, 12], [["(\\d{2})(\\d{5})", "$1 $2", ["16|342"]], ["(\\d{2})(\\d{6})", "$1 $2", ["49"]], ["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["1[36]|9"]], ["(\\d{2})(\\d{4})(\\d{3})", "$1 $2 $3", ["3[23]"]], ["(\\d{2})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["16"]], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["10|23|3(?:[15]|4[57])|4|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, ["348[57]\\d{7}", [11]], 0, 0, ["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]], 883: ["883", 0, "(?:[1-4]\\d|51)\\d{6,10}", [8, 9, 10, 11, 12], [["(\\d{3})(\\d{3})(\\d{2,8})", "$1 $2 $3", ["[14]|2[24-689]|3[02-689]|51[24-9]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["510"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["21"]], ["(\\d{4})(\\d{4})(\\d{4})", "$1 $2 $3", ["51[13]"]], ["(\\d{3})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["[235]"]]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, 0, 0, ["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]], 888: ["888", 0, "\\d{11}", [11], [["(\\d{3})(\\d{3})(\\d{5})", "$1 $2 $3"]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, ["\\d{11}"]]], 979: ["979", 0, "[1359]\\d{8}", [9], [["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["[1359]"]]], 0, 0, 0, 0, 0, 0, [0, 0, 0, ["[1359]\\d{8}"]]] } };
97
- function jt(e, t) {
98
- var r = Array.prototype.slice.call(t);
99
- return r.push(Mt), e.apply(this, r);
100
- }
101
- function dt(e, t) {
102
- e = e.split("-"), t = t.split("-");
103
- for (var r = e[0].split("."), n = t[0].split("."), d = 0; d < 3; d++) {
104
- var i = Number(r[d]), a = Number(n[d]);
105
- if (i > a) return 1;
106
- if (a > i) return -1;
107
- if (!isNaN(i) && isNaN(a)) return 1;
108
- if (isNaN(i) && !isNaN(a)) return -1;
109
- }
110
- return e[1] && t[1] ? e[1] > t[1] ? 1 : e[1] < t[1] ? -1 : 0 : !e[1] && t[1] ? 1 : e[1] && !t[1] ? -1 : 0;
111
- }
112
- var Xr = {}.constructor;
113
- function M(e) {
114
- return e != null && e.constructor === Xr;
115
- }
116
- function W(e) {
117
- "@babel/helpers - typeof";
118
- return W = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
119
- return typeof t;
120
- } : function(t) {
121
- return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
122
- }, W(e);
123
- }
124
- function be(e, t) {
125
- if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
126
- }
127
- function Zr(e, t) {
128
- for (var r = 0; r < t.length; r++) {
129
- var n = t[r];
130
- n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, qr(n.key), n);
131
- }
132
- }
133
- function Ce(e, t, r) {
134
- return t && Zr(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
135
- }
136
- function qr(e) {
137
- var t = Jr(e, "string");
138
- return W(t) == "symbol" ? t : t + "";
139
- }
140
- function Jr(e, t) {
141
- if (W(e) != "object" || !e) return e;
142
- var r = e[Symbol.toPrimitive];
143
- if (r !== void 0) {
144
- var n = r.call(e, t);
145
- if (W(n) != "object") return n;
146
- throw new TypeError("@@toPrimitive must return a primitive value.");
147
- }
148
- return String(e);
149
- }
150
- var zr = "1.2.0", Qr = "1.7.35", it = " ext. ", en = /^\d+$/, v = /* @__PURE__ */ (function() {
151
- function e(t) {
152
- be(this, e), Gt(t), this.metadata = t, Bt.call(this, t);
153
- }
154
- return Ce(e, [{
155
- key: "getCountries",
156
- value: function() {
157
- return Object.keys(this.metadata.countries).filter(function(r) {
158
- return r !== "001";
159
- });
160
- }
161
- }, {
162
- key: "getCountryMetadata",
163
- value: function(r) {
164
- return this.metadata.countries[r];
165
- }
166
- }, {
167
- key: "nonGeographic",
168
- value: function() {
169
- if (!(this.v1 || this.v2 || this.v3))
170
- return this.metadata.nonGeographic || this.metadata.nonGeographical;
171
- }
172
- }, {
173
- key: "hasCountry",
174
- value: function(r) {
175
- return this.getCountryMetadata(r) !== void 0;
176
- }
177
- }, {
178
- key: "hasCallingCode",
179
- value: function(r) {
180
- if (this.getCountryCodesForCallingCode(r))
181
- return !0;
182
- if (this.nonGeographic()) {
183
- if (this.nonGeographic()[r])
184
- return !0;
185
- } else {
186
- var n = this.countryCallingCodes()[r];
187
- if (n && n.length === 1 && n[0] === "001")
188
- return !0;
189
- }
190
- }
191
- }, {
192
- key: "isNonGeographicCallingCode",
193
- value: function(r) {
194
- return this.nonGeographic() ? !!this.nonGeographic()[r] : !this.getCountryCodesForCallingCode(r);
195
- }
196
- // Deprecated.
197
- }, {
198
- key: "country",
199
- value: function(r) {
200
- return this.selectNumberingPlan(r);
201
- }
202
- }, {
203
- key: "selectNumberingPlan",
204
- value: function(r, n) {
205
- if (r && en.test(r) && (n = r, r = null), r && r !== "001") {
206
- if (!this.hasCountry(r))
207
- throw new Error("Unknown country: ".concat(r));
208
- this.numberingPlan = new at(this.getCountryMetadata(r), this);
209
- } else if (n) {
210
- if (!this.hasCallingCode(n))
211
- throw new Error("Unknown calling code: ".concat(n));
212
- this.numberingPlan = new at(this.getNumberingPlanMetadata(n), this);
213
- } else
214
- this.numberingPlan = void 0;
215
- return this;
216
- }
217
- }, {
218
- key: "getCountryCodesForCallingCode",
219
- value: function(r) {
220
- var n = this.countryCallingCodes()[r];
221
- if (n)
222
- return n.length === 1 && n[0].length === 3 ? void 0 : n;
223
- }
224
- }, {
225
- key: "getCountryCodeForCallingCode",
226
- value: function(r) {
227
- var n = this.getCountryCodesForCallingCode(r);
228
- if (n)
229
- return n[0];
230
- }
231
- }, {
232
- key: "getNumberingPlanMetadata",
233
- value: function(r) {
234
- var n = this.getCountryCodeForCallingCode(r);
235
- if (n)
236
- return this.getCountryMetadata(n);
237
- if (this.nonGeographic()) {
238
- var d = this.nonGeographic()[r];
239
- if (d)
240
- return d;
241
- } else {
242
- var i = this.countryCallingCodes()[r];
243
- if (i && i.length === 1 && i[0] === "001")
244
- return this.metadata.countries["001"];
245
- }
246
- }
247
- // Deprecated.
248
- }, {
249
- key: "countryCallingCode",
250
- value: function() {
251
- return this.numberingPlan.callingCode();
252
- }
253
- // Deprecated.
254
- }, {
255
- key: "IDDPrefix",
256
- value: function() {
257
- return this.numberingPlan.IDDPrefix();
258
- }
259
- // Deprecated.
260
- }, {
261
- key: "defaultIDDPrefix",
262
- value: function() {
263
- return this.numberingPlan.defaultIDDPrefix();
264
- }
265
- // Deprecated.
266
- }, {
267
- key: "nationalNumberPattern",
268
- value: function() {
269
- return this.numberingPlan.nationalNumberPattern();
270
- }
271
- // Deprecated.
272
- }, {
273
- key: "possibleLengths",
274
- value: function() {
275
- return this.numberingPlan.possibleLengths();
276
- }
277
- // Deprecated.
278
- }, {
279
- key: "formats",
280
- value: function() {
281
- return this.numberingPlan.formats();
282
- }
283
- // Deprecated.
284
- }, {
285
- key: "nationalPrefixForParsing",
286
- value: function() {
287
- return this.numberingPlan.nationalPrefixForParsing();
288
- }
289
- // Deprecated.
290
- }, {
291
- key: "nationalPrefixTransformRule",
292
- value: function() {
293
- return this.numberingPlan.nationalPrefixTransformRule();
294
- }
295
- // Deprecated.
296
- }, {
297
- key: "leadingDigits",
298
- value: function() {
299
- return this.numberingPlan.leadingDigits();
300
- }
301
- // Deprecated.
302
- }, {
303
- key: "hasTypes",
304
- value: function() {
305
- return this.numberingPlan.hasTypes();
306
- }
307
- // Deprecated.
308
- }, {
309
- key: "type",
310
- value: function(r) {
311
- return this.numberingPlan.type(r);
312
- }
313
- // Deprecated.
314
- }, {
315
- key: "ext",
316
- value: function() {
317
- return this.numberingPlan.ext();
318
- }
319
- }, {
320
- key: "countryCallingCodes",
321
- value: function() {
322
- return this.v1 ? this.metadata.country_phone_code_to_countries : this.metadata.country_calling_codes;
323
- }
324
- // Deprecated.
325
- }, {
326
- key: "chooseCountryByCountryCallingCode",
327
- value: function(r) {
328
- return this.selectNumberingPlan(r);
329
- }
330
- }, {
331
- key: "hasSelectedNumberingPlan",
332
- value: function() {
333
- return this.numberingPlan !== void 0;
334
- }
335
- }]);
336
- })(), at = /* @__PURE__ */ (function() {
337
- function e(t, r) {
338
- be(this, e), this.globalMetadataObject = r, this.metadata = t, Bt.call(this, r.metadata);
339
- }
340
- return Ce(e, [{
341
- key: "callingCode",
342
- value: function() {
343
- return this.metadata[0];
344
- }
345
- // Formatting information for regions which share
346
- // a country calling code is contained by only one region
347
- // for performance reasons. For example, for NANPA region
348
- // ("North American Numbering Plan Administration",
349
- // which includes USA, Canada, Cayman Islands, Bahamas, etc)
350
- // it will be contained in the metadata for `US`.
351
- }, {
352
- key: "getDefaultCountryMetadataForRegion",
353
- value: function() {
354
- return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode());
355
- }
356
- // Is always present.
357
- }, {
358
- key: "IDDPrefix",
359
- value: function() {
360
- if (!(this.v1 || this.v2))
361
- return this.metadata[1];
362
- }
363
- // Is only present when a country supports multiple IDD prefixes.
364
- }, {
365
- key: "defaultIDDPrefix",
366
- value: function() {
367
- if (!(this.v1 || this.v2))
368
- return this.metadata[12];
369
- }
370
- }, {
371
- key: "nationalNumberPattern",
372
- value: function() {
373
- return this.v1 || this.v2 ? this.metadata[1] : this.metadata[2];
374
- }
375
- // "possible length" data is always present in Google's metadata.
376
- }, {
377
- key: "possibleLengths",
378
- value: function() {
379
- if (!this.v1)
380
- return this.metadata[this.v2 ? 2 : 3];
381
- }
382
- }, {
383
- key: "_getFormats",
384
- value: function(r) {
385
- return r[this.v1 ? 2 : this.v2 ? 3 : 4];
386
- }
387
- // For countries of the same region (e.g. NANPA)
388
- // formats are all stored in the "main" country for that region.
389
- // E.g. "RU" and "KZ", "US" and "CA".
390
- }, {
391
- key: "formats",
392
- value: function() {
393
- var r = this, n = this._getFormats(this.metadata) || this._getFormats(this.getDefaultCountryMetadataForRegion()) || [];
394
- return n.map(function(d) {
395
- return new tn(d, r);
396
- });
397
- }
398
- }, {
399
- key: "nationalPrefix",
400
- value: function() {
401
- return this.metadata[this.v1 ? 3 : this.v2 ? 4 : 5];
402
- }
403
- }, {
404
- key: "_getNationalPrefixFormattingRule",
405
- value: function(r) {
406
- return r[this.v1 ? 4 : this.v2 ? 5 : 6];
407
- }
408
- // For countries of the same region (e.g. NANPA)
409
- // national prefix formatting rule is stored in the "main" country for that region.
410
- // E.g. "RU" and "KZ", "US" and "CA".
411
- }, {
412
- key: "nationalPrefixFormattingRule",
413
- value: function() {
414
- return this._getNationalPrefixFormattingRule(this.metadata) || this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion());
415
- }
416
- }, {
417
- key: "_nationalPrefixForParsing",
418
- value: function() {
419
- return this.metadata[this.v1 ? 5 : this.v2 ? 6 : 7];
420
- }
421
- }, {
422
- key: "nationalPrefixForParsing",
423
- value: function() {
424
- return this._nationalPrefixForParsing() || this.nationalPrefix();
425
- }
426
- }, {
427
- key: "nationalPrefixTransformRule",
428
- value: function() {
429
- return this.metadata[this.v1 ? 6 : this.v2 ? 7 : 8];
430
- }
431
- }, {
432
- key: "_getNationalPrefixIsOptionalWhenFormatting",
433
- value: function() {
434
- return !!this.metadata[this.v1 ? 7 : this.v2 ? 8 : 9];
435
- }
436
- // For countries of the same region (e.g. NANPA)
437
- // "national prefix is optional when formatting" flag is
438
- // stored in the "main" country for that region.
439
- // E.g. "RU" and "KZ", "US" and "CA".
440
- }, {
441
- key: "nationalPrefixIsOptionalWhenFormattingInNationalFormat",
442
- value: function() {
443
- return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata) || this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion());
444
- }
445
- }, {
446
- key: "leadingDigits",
447
- value: function() {
448
- return this.metadata[this.v1 ? 8 : this.v2 ? 9 : 10];
449
- }
450
- }, {
451
- key: "types",
452
- value: function() {
453
- return this.metadata[this.v1 ? 9 : this.v2 ? 10 : 11];
454
- }
455
- }, {
456
- key: "hasTypes",
457
- value: function() {
458
- return this.types() && this.types().length === 0 ? !1 : !!this.types();
459
- }
460
- }, {
461
- key: "type",
462
- value: function(r) {
463
- if (this.hasTypes() && ot(this.types(), r))
464
- return new nn(ot(this.types(), r), this);
465
- }
466
- }, {
467
- key: "ext",
468
- value: function() {
469
- return this.v1 || this.v2 ? it : this.metadata[13] || it;
470
- }
471
- }]);
472
- })(), tn = /* @__PURE__ */ (function() {
473
- function e(t, r) {
474
- be(this, e), this._format = t, this.metadata = r;
475
- }
476
- return Ce(e, [{
477
- key: "pattern",
478
- value: function() {
479
- return this._format[0];
480
- }
481
- }, {
482
- key: "format",
483
- value: function() {
484
- return this._format[1];
485
- }
486
- }, {
487
- key: "leadingDigitsPatterns",
488
- value: function() {
489
- return this._format[2] || [];
490
- }
491
- }, {
492
- key: "nationalPrefixFormattingRule",
493
- value: function() {
494
- return this._format[3] || this.metadata.nationalPrefixFormattingRule();
495
- }
496
- }, {
497
- key: "nationalPrefixIsOptionalWhenFormattingInNationalFormat",
498
- value: function() {
499
- return !!this._format[4] || this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat();
500
- }
501
- }, {
502
- key: "nationalPrefixIsMandatoryWhenFormattingInNationalFormat",
503
- value: function() {
504
- return this.usesNationalPrefix() && !this.nationalPrefixIsOptionalWhenFormattingInNationalFormat();
505
- }
506
- // Checks whether national prefix formatting rule contains national prefix.
507
- }, {
508
- key: "usesNationalPrefix",
509
- value: function() {
510
- return !!(this.nationalPrefixFormattingRule() && // Check that national prefix formatting rule is not a "dummy" one.
511
- !rn.test(this.nationalPrefixFormattingRule()));
512
- }
513
- }, {
514
- key: "internationalFormat",
515
- value: function() {
516
- return this._format[5] || this.format();
517
- }
518
- }]);
519
- })(), rn = /^\(?\$1\)?$/, nn = /* @__PURE__ */ (function() {
520
- function e(t, r) {
521
- be(this, e), this.type = t, this.metadata = r;
522
- }
523
- return Ce(e, [{
524
- key: "pattern",
525
- value: function() {
526
- return this.metadata.v1 ? this.type : this.type[0];
527
- }
528
- }, {
529
- key: "possibleLengths",
530
- value: function() {
531
- if (!this.metadata.v1)
532
- return this.type[1] || this.metadata.possibleLengths();
533
- }
534
- }]);
535
- })();
536
- function ot(e, t) {
537
- switch (t) {
538
- case "FIXED_LINE":
539
- return e[0];
540
- case "MOBILE":
541
- return e[1];
542
- case "TOLL_FREE":
543
- return e[2];
544
- case "PREMIUM_RATE":
545
- return e[3];
546
- case "PERSONAL_NUMBER":
547
- return e[4];
548
- case "VOICEMAIL":
549
- return e[5];
550
- case "UAN":
551
- return e[6];
552
- case "PAGER":
553
- return e[7];
554
- case "VOIP":
555
- return e[8];
556
- case "SHARED_COST":
557
- return e[9];
558
- }
559
- }
560
- function Gt(e) {
561
- if (!e)
562
- throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");
563
- if (!M(e) || !M(e.countries))
564
- 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(M(e) ? "an object of shape: { " + Object.keys(e).join(", ") + " }" : "a " + dn(e) + ": " + e, "."));
565
- }
566
- var dn = function(t) {
567
- return W(t);
568
- };
569
- function Be(e, t) {
570
- if (t = new v(t), t.hasCountry(e))
571
- return t.selectNumberingPlan(e).countryCallingCode();
572
- throw new Error("Unknown country: ".concat(e));
573
- }
574
- function an(e, t) {
575
- return t.countries.hasOwnProperty(e);
576
- }
577
- function Bt(e) {
578
- var t = e.version;
579
- typeof t == "number" ? (this.v1 = t === 1, this.v2 = t === 2, this.v3 = t === 3, this.v4 = t === 4) : t ? dt(t, zr) === -1 ? this.v2 = !0 : dt(t, Qr) === -1 ? this.v3 = !0 : this.v4 = !0 : this.v1 = !0;
580
- }
581
- function ce(e, t, r) {
582
- return on(e, t, void 0, r);
583
- }
584
- function on(e, t, r, n) {
585
- t && (n = new v(n.metadata), n.selectNumberingPlan(t));
586
- var d = n.type(r), i = d && d.possibleLengths() || n.possibleLengths();
587
- if (!i)
588
- return "IS_POSSIBLE";
589
- var a = e.length, o = i[0];
590
- return o === a ? "IS_POSSIBLE" : o > a ? "TOO_SHORT" : i[i.length - 1] < a ? "TOO_LONG" : i.indexOf(a, 1) >= 0 ? "IS_POSSIBLE" : "INVALID_LENGTH";
591
- }
592
- function ln(e, t, r) {
593
- if (t === void 0 && (t = {}), r = new v(r), t.v2) {
594
- if (!e.countryCallingCode)
595
- throw new Error("Invalid phone number object passed");
596
- r.selectNumberingPlan(e.countryCallingCode);
597
- } else {
598
- if (!e.phone)
599
- return !1;
600
- if (e.country) {
601
- if (!r.hasCountry(e.country))
602
- throw new Error("Unknown country: ".concat(e.country));
603
- r.selectNumberingPlan(e.country);
604
- } else {
605
- if (!e.countryCallingCode)
606
- throw new Error("Invalid phone number object passed");
607
- r.selectNumberingPlan(e.countryCallingCode);
608
- }
609
- }
610
- if (r.possibleLengths())
611
- return Ut(e.phone || e.nationalNumber, e.country, r);
612
- if (e.countryCallingCode && r.isNonGeographicCallingCode(e.countryCallingCode))
613
- return !0;
614
- throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.');
615
- }
616
- function Ut(e, t, r) {
617
- switch (ce(e, t, r)) {
618
- case "IS_POSSIBLE":
619
- return !0;
620
- // This library ignores "local-only" phone numbers (for simplicity).
621
- // See the readme for more info on what are "local-only" phone numbers.
622
- // case 'IS_POSSIBLE_LOCAL_ONLY':
623
- // return !isInternational
624
- default:
625
- return !1;
626
- }
627
- }
628
- function _(e, t) {
629
- return e = e || "", new RegExp("^(?:" + t + ")$").test(e);
630
- }
631
- function un(e, t) {
632
- var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
633
- if (r) return (r = r.call(e)).next.bind(r);
634
- if (Array.isArray(e) || (r = $n(e)) || t) {
635
- r && (e = r);
636
- var n = 0;
637
- return function() {
638
- return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
639
- };
640
- }
641
- throw new TypeError(`Invalid attempt to iterate non-iterable instance.
642
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
643
- }
644
- function $n(e, t) {
645
- if (e) {
646
- if (typeof e == "string") return lt(e, t);
647
- var r = {}.toString.call(e).slice(8, -1);
648
- return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? lt(e, t) : void 0;
649
- }
650
- }
651
- function lt(e, t) {
652
- (t == null || t > e.length) && (t = e.length);
653
- for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
654
- return n;
655
- }
656
- var sn = ["MOBILE", "PREMIUM_RATE", "TOLL_FREE", "SHARED_COST", "VOIP", "PERSONAL_NUMBER", "PAGER", "UAN", "VOICEMAIL"];
657
- function Ue(e, t, r) {
658
- if (t = t || {}, !(!e.country && !e.countryCallingCode)) {
659
- r = new v(r), r.selectNumberingPlan(e.country, e.countryCallingCode);
660
- var n = t.v2 ? e.nationalNumber : e.phone;
661
- if (_(n, r.nationalNumberPattern())) {
662
- if (Ie(n, "FIXED_LINE", r))
663
- return r.type("MOBILE") && r.type("MOBILE").pattern() === "" || !r.type("MOBILE") || Ie(n, "MOBILE", r) ? "FIXED_LINE_OR_MOBILE" : "FIXED_LINE";
664
- for (var d = un(sn), i; !(i = d()).done; ) {
665
- var a = i.value;
666
- if (Ie(n, a, r))
667
- return a;
668
- }
669
- }
670
- }
671
- }
672
- function Ie(e, t, r) {
673
- return t = r.type(t), !t || !t.pattern() || t.possibleLengths() && t.possibleLengths().indexOf(e.length) < 0 ? !1 : _(e, t.pattern());
674
- }
675
- function cn(e, t, r) {
676
- if (t = t || {}, r = new v(r), r.selectNumberingPlan(e.country, e.countryCallingCode), r.hasTypes())
677
- return Ue(e, t, r.metadata) !== void 0;
678
- var n = t.v2 ? e.nationalNumber : e.phone;
679
- return _(n, r.nationalNumberPattern());
680
- }
681
- function fn(e, t, r) {
682
- var n = new v(r), d = n.getCountryCodesForCallingCode(e);
683
- return d ? d.filter(function(i) {
684
- return hn(t, i, r);
685
- }) : [];
686
- }
687
- function hn(e, t, r) {
688
- var n = new v(r);
689
- return n.selectNumberingPlan(t), n.numberingPlan.possibleLengths().indexOf(e.length) >= 0;
690
- }
691
- var He = 2, mn = 17, gn = 3, P = "0-90-9٠-٩۰-۹", yn = "-‐-―−ー-", vn = "//", pn = "..", bn = "  ­​⁠ ", Cn = "()()[]\\[\\]", Nn = "~⁓∼~", A = "".concat(yn).concat(vn).concat(pn).concat(bn).concat(Cn).concat(Nn), Ne = "++", Pn = new RegExp("([" + P + "])");
692
- function Ht(e, t, r, n) {
693
- if (t) {
694
- var d = new v(n);
695
- d.selectNumberingPlan(t, r);
696
- var i = new RegExp(d.IDDPrefix());
697
- if (e.search(i) === 0) {
698
- e = e.slice(e.match(i)[0].length);
699
- var a = e.match(Pn);
700
- if (!(a && a[1] != null && a[1].length > 0 && a[1] === "0"))
701
- return e;
702
- }
703
- }
704
- }
705
- function _e(e, t) {
706
- if (e && t.numberingPlan.nationalPrefixForParsing()) {
707
- var r = new RegExp("^(?:" + t.numberingPlan.nationalPrefixForParsing() + ")"), n = r.exec(e);
708
- if (n) {
709
- var d, i, a = n.length - 1, o = a > 0 && n[a];
710
- if (t.nationalPrefixTransformRule() && o)
711
- d = e.replace(r, t.nationalPrefixTransformRule()), a > 1 && (i = n[1]);
712
- else {
713
- var l = n[0];
714
- d = e.slice(l.length), o && (i = n[1]);
715
- }
716
- var u;
717
- if (o) {
718
- var s = e.indexOf(n[1]), m = e.slice(0, s);
719
- m === t.numberingPlan.nationalPrefix() && (u = t.numberingPlan.nationalPrefix());
720
- } else
721
- u = n[0];
722
- return {
723
- nationalNumber: d,
724
- nationalPrefix: u,
725
- carrierCode: i
726
- };
727
- }
728
- }
729
- return {
730
- nationalNumber: e
731
- };
732
- }
733
- function Sn(e, t) {
734
- var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
735
- if (r) return (r = r.call(e)).next.bind(r);
736
- if (Array.isArray(e) || (r = xn(e)) || t) {
737
- r && (e = r);
738
- var n = 0;
739
- return function() {
740
- return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
741
- };
742
- }
743
- throw new TypeError(`Invalid attempt to iterate non-iterable instance.
744
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
745
- }
746
- function xn(e, t) {
747
- if (e) {
748
- if (typeof e == "string") return ut(e, t);
749
- var r = {}.toString.call(e).slice(8, -1);
750
- return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? ut(e, t) : void 0;
751
- }
752
- }
753
- function ut(e, t) {
754
- (t == null || t > e.length) && (t = e.length);
755
- for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
756
- return n;
757
- }
758
- function Vt(e, t) {
759
- var r = t.countries, n = t.metadata;
760
- n = new v(n);
761
- for (var d = Sn(r), i; !(i = d()).done; ) {
762
- var a = i.value;
763
- if (n.selectNumberingPlan(a), n.leadingDigits()) {
764
- if (e && e.search(n.leadingDigits()) === 0)
765
- return a;
766
- } else if (Ue({
767
- phone: e,
768
- country: a
769
- }, void 0, n.metadata))
770
- return a;
771
- }
772
- }
773
- function Ve(e, t) {
774
- var r = t.nationalNumber, n = t.metadata, d = n.getCountryCodesForCallingCode(e);
775
- if (d)
776
- return d.length === 1 ? d[0] : Vt(r, {
777
- countries: d,
778
- metadata: n.metadata
779
- });
780
- }
781
- function Re(e, t, r) {
782
- var n = _e(e, r), d = n.carrierCode, i = n.nationalNumber;
783
- if (i !== e) {
784
- if (!En(e, i, r))
785
- return {
786
- nationalNumber: e
787
- };
788
- if (r.numberingPlan.possibleLengths() && (t || (t = Ve(r.numberingPlan.callingCode(), {
789
- nationalNumber: i,
790
- metadata: r
791
- })), !wn(i, t, r)))
792
- return {
793
- nationalNumber: e
794
- };
795
- }
796
- return {
797
- nationalNumber: i,
798
- carrierCode: d
799
- };
800
- }
801
- function En(e, t, r) {
802
- return !(_(e, r.nationalNumberPattern()) && !_(t, r.nationalNumberPattern()));
803
- }
804
- function wn(e, t, r) {
805
- switch (ce(e, t, r)) {
806
- case "TOO_SHORT":
807
- case "INVALID_LENGTH":
808
- return !1;
809
- default:
810
- return !0;
811
- }
812
- }
813
- function Kt(e, t, r, n, d) {
814
- var i = t || r ? Be(t || r, d) : n;
815
- if (e.indexOf(i) === 0) {
816
- d = new v(d), d.selectNumberingPlan(t || r, i);
817
- var a = e.slice(i.length), o = Re(a, t, d), l = o.nationalNumber, u = Re(e, t, d), s = u.nationalNumber;
818
- if (!_(s, d.nationalNumberPattern()) && _(l, d.nationalNumberPattern()) || ce(s, t, d) === "TOO_LONG")
819
- return {
820
- countryCallingCode: i,
821
- number: a
822
- };
823
- }
824
- return {
825
- number: e
826
- };
827
- }
828
- function Ke(e, t, r, n, d) {
829
- if (!e)
830
- return {};
831
- var i;
832
- if (e[0] !== "+") {
833
- var a = Ht(e, t || r, n, d);
834
- if (a && a !== e)
835
- i = !0, e = "+" + a;
836
- else {
837
- if (t || r || n) {
838
- var o = Kt(e, t, r, n, d), l = o.countryCallingCode, u = o.number;
839
- if (l)
840
- return {
841
- countryCallingCodeSource: "FROM_NUMBER_WITHOUT_PLUS_SIGN",
842
- countryCallingCode: l,
843
- number: u
844
- };
845
- }
846
- return {
847
- // No need to set it to `UNSPECIFIED`. It can be just `undefined`.
848
- // countryCallingCodeSource: 'UNSPECIFIED',
849
- number: e
850
- };
851
- }
852
- }
853
- if (e[1] === "0")
854
- return {};
855
- d = new v(d);
856
- for (var s = 2; s - 1 <= gn && s <= e.length; ) {
857
- var m = e.slice(1, s);
858
- if (d.hasCallingCode(m))
859
- return d.selectNumberingPlan(m), {
860
- countryCallingCodeSource: i ? "FROM_NUMBER_WITH_IDD" : "FROM_NUMBER_WITH_PLUS_SIGN",
861
- countryCallingCode: m,
862
- number: e.slice(s)
863
- };
864
- s++;
865
- }
866
- return {};
867
- }
868
- function Wt(e) {
869
- return e.replace(new RegExp("[".concat(A, "]+"), "g"), " ").trim();
870
- }
871
- var Yt = /(\$\d)/;
872
- function Xt(e, t, r) {
873
- var n = r.useInternationalFormat, d = r.withNationalPrefix;
874
- r.carrierCode, r.metadata;
875
- var i = e.replace(new RegExp(t.pattern()), n ? t.internationalFormat() : (
876
- // This library doesn't use `domestic_carrier_code_formatting_rule`,
877
- // because that one is only used when formatting phone numbers
878
- // for dialing from a mobile phone, and this is not a dialing library.
879
- // carrierCode && format.domesticCarrierCodeFormattingRule()
880
- // // First, replace the $CC in the formatting rule with the desired carrier code.
881
- // // Then, replace the $FG in the formatting rule with the first group
882
- // // and the carrier code combined in the appropriate way.
883
- // ? format.format().replace(FIRST_GROUP_PATTERN, format.domesticCarrierCodeFormattingRule().replace('$CC', carrierCode))
884
- // : (
885
- // withNationalPrefix && format.nationalPrefixFormattingRule()
886
- // ? format.format().replace(FIRST_GROUP_PATTERN, format.nationalPrefixFormattingRule())
887
- // : format.format()
888
- // )
889
- d && t.nationalPrefixFormattingRule() ? t.format().replace(Yt, t.nationalPrefixFormattingRule()) : t.format()
890
- ));
891
- return n ? Wt(i) : i;
892
- }
893
- var In = /^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;
894
- function Tn(e, t, r) {
895
- var n = new v(r);
896
- if (n.selectNumberingPlan(e, t), n.defaultIDDPrefix())
897
- return n.defaultIDDPrefix();
898
- if (In.test(n.IDDPrefix()))
899
- return n.IDDPrefix();
900
- }
901
- var An = ";ext=", V = function(t) {
902
- return "([".concat(P, "]{1,").concat(t, "})");
903
- };
904
- function Zt(e) {
905
- var t = "20", r = "15", n = "9", d = "6", i = "[  \\t,]*", a = "[:\\..]?[  \\t,-]*", o = "#?", l = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", u = "(?:[xx##~~]|int|int)", s = "[- ]+", m = "[  \\t]*", g = "(?:,{2}|;)", b = An + V(t), f = i + l + a + V(t) + o, S = i + u + a + V(n) + o, y = s + V(d) + "#", C = m + g + a + V(r) + o, j = m + "(?:,)+" + a + V(n) + o;
906
- return b + "|" + f + "|" + S + "|" + y + "|" + C + "|" + j;
907
- }
908
- var Fn = "[" + P + "]{" + He + "}", On = "[" + Ne + "]{0,1}(?:[" + A + "]*[" + P + "]){3,}[" + A + P + "]*", _n = new RegExp("^[" + Ne + "]{0,1}(?:[" + A + "]*[" + P + "]){1,2}$", "i"), Rn = On + // Phone number extensions
909
- "(?:" + Zt() + ")?", Dn = new RegExp(
910
- // Either a short two-digit-only phone number
911
- "^" + Fn + "$|^" + Rn + "$",
912
- "i"
913
- );
914
- function Ln(e) {
915
- return e.length >= He && Dn.test(e);
916
- }
917
- function kn(e) {
918
- return _n.test(e);
919
- }
920
- function Mn(e) {
921
- var t = e.number, r = e.ext;
922
- if (!t)
923
- return "";
924
- if (t[0] !== "+")
925
- throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');
926
- return "tel:".concat(t).concat(r ? ";ext=" + r : "");
927
- }
928
- var $t = {
929
- formatExtension: function(t, r, n) {
930
- return "".concat(t).concat(n.ext()).concat(r);
931
- }
932
- };
933
- function jn(e, t, r, n) {
934
- if (r ? r = Un({}, $t, r) : r = $t, n = new v(n), e.country && e.country !== "001") {
935
- if (!n.hasCountry(e.country))
936
- throw new Error("Unknown country: ".concat(e.country));
937
- n.selectNumberingPlan(e.country);
938
- } else if (e.countryCallingCode)
939
- n.selectNumberingPlan(e.countryCallingCode);
940
- else return e.phone || "";
941
- var d = n.countryCallingCode(), i = r.v2 ? e.nationalNumber : e.phone, a;
942
- switch (t) {
943
- case "NATIONAL":
944
- return i ? (a = ve(i, e.carrierCode, "NATIONAL", n, r), Te(a, e.ext, n, r.formatExtension)) : "";
945
- case "INTERNATIONAL":
946
- return i ? (a = ve(i, null, "INTERNATIONAL", n, r), a = "+".concat(d, " ").concat(a), Te(a, e.ext, n, r.formatExtension)) : "+".concat(d);
947
- case "E.164":
948
- return "+".concat(d).concat(i);
949
- case "RFC3966":
950
- return Mn({
951
- number: "+".concat(d).concat(i),
952
- ext: e.ext
953
- });
954
- // For reference, here's Google's IDD formatter:
955
- // https://github.com/google/libphonenumber/blob/32719cf74e68796788d1ca45abc85dcdc63ba5b9/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java#L1546
956
- // Not saying that this IDD formatter replicates it 1:1, but it seems to work.
957
- // Who would even need to format phone numbers in IDD format anyway?
958
- case "IDD":
959
- if (!r.fromCountry)
960
- return;
961
- var o = Bn(i, e.carrierCode, d, r.fromCountry, n);
962
- return o ? Te(o, e.ext, n, r.formatExtension) : void 0;
963
- default:
964
- throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t, '"'));
965
- }
966
- }
967
- function ve(e, t, r, n, d) {
968
- var i = Gn(n.formats(), e);
969
- return i ? Xt(e, i, {
970
- useInternationalFormat: r === "INTERNATIONAL",
971
- withNationalPrefix: !(i.nationalPrefixIsOptionalWhenFormattingInNationalFormat() && d && d.nationalPrefix === !1),
972
- carrierCode: t,
973
- metadata: n
974
- }) : e;
975
- }
976
- function Gn(e, t) {
977
- return Hn(e, function(r) {
978
- if (r.leadingDigitsPatterns().length > 0) {
979
- var n = r.leadingDigitsPatterns()[r.leadingDigitsPatterns().length - 1];
980
- if (t.search(n) !== 0)
981
- return !1;
982
- }
983
- return _(t, r.pattern());
984
- });
985
- }
986
- function Te(e, t, r, n) {
987
- return t ? n(e, t, r) : e;
988
- }
989
- function Bn(e, t, r, n, d) {
990
- var i = Be(n, d.metadata);
991
- if (i === r) {
992
- var a = ve(e, t, "NATIONAL", d);
993
- return r === "1" ? r + " " + a : a;
994
- }
995
- var o = Tn(n, void 0, d.metadata);
996
- if (o)
997
- return "".concat(o, " ").concat(r, " ").concat(ve(e, null, "INTERNATIONAL", d));
998
- }
999
- function Un() {
1000
- for (var e = 1, t = arguments.length, r = new Array(t), n = 0; n < t; n++)
1001
- r[n] = arguments[n];
1002
- for (; e < r.length; ) {
1003
- if (r[e])
1004
- for (var d in r[e])
1005
- r[0][d] = r[e][d];
1006
- e++;
1007
- }
1008
- return r[0];
1009
- }
1010
- function Hn(e, t) {
1011
- for (var r = 0; r < e.length; ) {
1012
- if (t(e[r]))
1013
- return e[r];
1014
- r++;
1015
- }
1016
- }
1017
- function Q(e) {
1018
- "@babel/helpers - typeof";
1019
- return Q = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
1020
- return typeof t;
1021
- } : function(t) {
1022
- return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1023
- }, Q(e);
1024
- }
1025
- function st(e, t) {
1026
- var r = Object.keys(e);
1027
- if (Object.getOwnPropertySymbols) {
1028
- var n = Object.getOwnPropertySymbols(e);
1029
- t && (n = n.filter(function(d) {
1030
- return Object.getOwnPropertyDescriptor(e, d).enumerable;
1031
- })), r.push.apply(r, n);
1032
- }
1033
- return r;
1034
- }
1035
- function ct(e) {
1036
- for (var t = 1; t < arguments.length; t++) {
1037
- var r = arguments[t] != null ? arguments[t] : {};
1038
- t % 2 ? st(Object(r), !0).forEach(function(n) {
1039
- Vn(e, n, r[n]);
1040
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : st(Object(r)).forEach(function(n) {
1041
- Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
1042
- });
1043
- }
1044
- return e;
1045
- }
1046
- function Vn(e, t, r) {
1047
- return (t = qt(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
1048
- }
1049
- function Kn(e, t) {
1050
- if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
1051
- }
1052
- function Wn(e, t) {
1053
- for (var r = 0; r < t.length; r++) {
1054
- var n = t[r];
1055
- n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, qt(n.key), n);
1056
- }
1057
- }
1058
- function Yn(e, t, r) {
1059
- return t && Wn(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
1060
- }
1061
- function qt(e) {
1062
- var t = Xn(e, "string");
1063
- return Q(t) == "symbol" ? t : t + "";
1064
- }
1065
- function Xn(e, t) {
1066
- if (Q(e) != "object" || !e) return e;
1067
- var r = e[Symbol.toPrimitive];
1068
- if (r !== void 0) {
1069
- var n = r.call(e, t);
1070
- if (Q(n) != "object") return n;
1071
- throw new TypeError("@@toPrimitive must return a primitive value.");
1072
- }
1073
- return String(e);
1074
- }
1075
- var Jt = /* @__PURE__ */ (function() {
1076
- function e(t, r, n) {
1077
- if (Kn(this, e), !t)
1078
- throw new TypeError("First argument is required");
1079
- if (typeof t != "string")
1080
- throw new TypeError("First argument must be a string");
1081
- if (t[0] === "+" && !r)
1082
- throw new TypeError("`metadata` argument not passed");
1083
- if (M(r) && M(r.countries)) {
1084
- n = r;
1085
- var d = t;
1086
- if (!Jn.test(d))
1087
- throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');
1088
- var i = Ke(d, void 0, void 0, void 0, n), a = i.countryCallingCode, o = i.number;
1089
- if (r = o, t = a, !r)
1090
- throw new Error("Invalid `number` argument passed: too short");
1091
- }
1092
- if (!r)
1093
- throw new TypeError("`nationalNumber` argument is required");
1094
- if (typeof r != "string")
1095
- throw new TypeError("`nationalNumber` argument must be a string");
1096
- Gt(n);
1097
- var l = qn(t, n), u = l.country, s = l.countryCallingCode;
1098
- this.country = u, this.countryCallingCode = s, this.nationalNumber = r, this.number = "+" + this.countryCallingCode + this.nationalNumber, this.getMetadata = function() {
1099
- return n;
1100
- };
1101
- }
1102
- return Yn(e, [{
1103
- key: "setExt",
1104
- value: function(r) {
1105
- this.ext = r;
1106
- }
1107
- }, {
1108
- key: "getPossibleCountries",
1109
- value: function() {
1110
- return this.country ? [this.country] : fn(this.countryCallingCode, this.nationalNumber, this.getMetadata());
1111
- }
1112
- }, {
1113
- key: "isPossible",
1114
- value: function() {
1115
- return ln(this, {
1116
- v2: !0
1117
- }, this.getMetadata());
1118
- }
1119
- }, {
1120
- key: "isValid",
1121
- value: function() {
1122
- return cn(this, {
1123
- v2: !0
1124
- }, this.getMetadata());
1125
- }
1126
- }, {
1127
- key: "isNonGeographic",
1128
- value: function() {
1129
- var r = new v(this.getMetadata());
1130
- return r.isNonGeographicCallingCode(this.countryCallingCode);
1131
- }
1132
- }, {
1133
- key: "isEqual",
1134
- value: function(r) {
1135
- return this.number === r.number && this.ext === r.ext;
1136
- }
1137
- // This function was originally meant to be an equivalent for `validatePhoneNumberLength()`,
1138
- // but later it was found out that it doesn't include the possible `TOO_SHORT` result
1139
- // returned from `parsePhoneNumberWithError()` in the original `validatePhoneNumberLength()`,
1140
- // so eventually I simply commented out this method from the `PhoneNumber` class
1141
- // and just left the `validatePhoneNumberLength()` function, even though that one would require
1142
- // and additional step to also validate the actual country / calling code of the phone number.
1143
- // validateLength() {
1144
- // const metadata = new Metadata(this.getMetadata())
1145
- // metadata.selectNumberingPlan(this.countryCallingCode)
1146
- // const result = checkNumberLength(this.nationalNumber, metadata)
1147
- // if (result !== 'IS_POSSIBLE') {
1148
- // return result
1149
- // }
1150
- // }
1151
- }, {
1152
- key: "getType",
1153
- value: function() {
1154
- return Ue(this, {
1155
- v2: !0
1156
- }, this.getMetadata());
1157
- }
1158
- }, {
1159
- key: "format",
1160
- value: function(r, n) {
1161
- return jn(this, r, n ? ct(ct({}, n), {}, {
1162
- v2: !0
1163
- }) : {
1164
- v2: !0
1165
- }, this.getMetadata());
1166
- }
1167
- }, {
1168
- key: "formatNational",
1169
- value: function(r) {
1170
- return this.format("NATIONAL", r);
1171
- }
1172
- }, {
1173
- key: "formatInternational",
1174
- value: function(r) {
1175
- return this.format("INTERNATIONAL", r);
1176
- }
1177
- }, {
1178
- key: "getURI",
1179
- value: function(r) {
1180
- return this.format("RFC3966", r);
1181
- }
1182
- }]);
1183
- })(), Zn = function(t) {
1184
- return /^[A-Z]{2}$/.test(t);
1185
- };
1186
- function qn(e, t) {
1187
- var r, n, d = new v(t);
1188
- return Zn(e) ? (r = e, d.selectNumberingPlan(r), n = d.countryCallingCode()) : n = e, {
1189
- country: r,
1190
- countryCallingCode: n
1191
- };
1192
- }
1193
- var Jn = /^\+\d+$/;
1194
- function De(e) {
1195
- "@babel/helpers - typeof";
1196
- return De = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
1197
- return typeof t;
1198
- } : function(t) {
1199
- return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1200
- }, De(e);
1201
- }
1202
- function zn(e, t, r) {
1203
- return Object.defineProperty(e, "prototype", { writable: !1 }), e;
1204
- }
1205
- function Qn(e, t) {
1206
- if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
1207
- }
1208
- function ed(e, t, r) {
1209
- return t = te(t), td(e, We() ? Reflect.construct(t, r || [], te(e).constructor) : t.apply(e, r));
1210
- }
1211
- function td(e, t) {
1212
- if (t && (De(t) == "object" || typeof t == "function")) return t;
1213
- if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
1214
- return rd(e);
1215
- }
1216
- function rd(e) {
1217
- if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1218
- return e;
1219
- }
1220
- function nd(e, t) {
1221
- if (typeof t != "function" && t !== null) throw new TypeError("Super expression must either be null or a function");
1222
- e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && ee(e, t);
1223
- }
1224
- function Le(e) {
1225
- var t = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
1226
- return Le = function(n) {
1227
- if (n === null || !id(n)) return n;
1228
- if (typeof n != "function") throw new TypeError("Super expression must either be null or a function");
1229
- if (t !== void 0) {
1230
- if (t.has(n)) return t.get(n);
1231
- t.set(n, d);
1232
- }
1233
- function d() {
1234
- return dd(n, arguments, te(this).constructor);
1235
- }
1236
- return d.prototype = Object.create(n.prototype, { constructor: { value: d, enumerable: !1, writable: !0, configurable: !0 } }), ee(d, n);
1237
- }, Le(e);
1238
- }
1239
- function dd(e, t, r) {
1240
- if (We()) return Reflect.construct.apply(null, arguments);
1241
- var n = [null];
1242
- n.push.apply(n, t);
1243
- var d = new (e.bind.apply(e, n))();
1244
- return r && ee(d, r.prototype), d;
1245
- }
1246
- function We() {
1247
- try {
1248
- var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
1249
- }));
1250
- } catch {
1251
- }
1252
- return (We = function() {
1253
- return !!e;
1254
- })();
1255
- }
1256
- function id(e) {
1257
- try {
1258
- return Function.toString.call(e).indexOf("[native code]") !== -1;
1259
- } catch {
1260
- return typeof e == "function";
1261
- }
1262
- }
1263
- function ee(e, t) {
1264
- return ee = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, n) {
1265
- return r.__proto__ = n, r;
1266
- }, ee(e, t);
1267
- }
1268
- function te(e) {
1269
- return te = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
1270
- return t.__proto__ || Object.getPrototypeOf(t);
1271
- }, te(e);
1272
- }
1273
- var F = /* @__PURE__ */ (function(e) {
1274
- function t(r) {
1275
- var n;
1276
- return Qn(this, t), n = ed(this, t, [r]), Object.setPrototypeOf(n, t.prototype), n.name = n.constructor.name, n;
1277
- }
1278
- return nd(t, e), zn(t);
1279
- })(/* @__PURE__ */ Le(Error)), ft = new RegExp("(?:" + Zt() + ")$", "i");
1280
- function ad(e) {
1281
- var t = e.search(ft);
1282
- if (t < 0)
1283
- return {};
1284
- for (var r = e.slice(0, t), n = e.match(ft), d = 1; d < n.length; ) {
1285
- if (n[d])
1286
- return {
1287
- number: r,
1288
- ext: n[d]
1289
- };
1290
- d++;
1291
- }
1292
- }
1293
- function od(e, t) {
1294
- var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
1295
- if (r) return (r = r.call(e)).next.bind(r);
1296
- if (Array.isArray(e) || (r = ld(e)) || t) {
1297
- r && (e = r);
1298
- var n = 0;
1299
- return function() {
1300
- return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
1301
- };
1302
- }
1303
- throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1304
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1305
- }
1306
- function ld(e, t) {
1307
- if (e) {
1308
- if (typeof e == "string") return ht(e, t);
1309
- var r = {}.toString.call(e).slice(8, -1);
1310
- return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? ht(e, t) : void 0;
1311
- }
1312
- }
1313
- function ht(e, t) {
1314
- (t == null || t > e.length) && (t = e.length);
1315
- for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
1316
- return n;
1317
- }
1318
- var ud = {
1319
- 0: "0",
1320
- 1: "1",
1321
- 2: "2",
1322
- 3: "3",
1323
- 4: "4",
1324
- 5: "5",
1325
- 6: "6",
1326
- 7: "7",
1327
- 8: "8",
1328
- 9: "9",
1329
- "0": "0",
1330
- // Fullwidth digit 0
1331
- "1": "1",
1332
- // Fullwidth digit 1
1333
- "2": "2",
1334
- // Fullwidth digit 2
1335
- "3": "3",
1336
- // Fullwidth digit 3
1337
- "4": "4",
1338
- // Fullwidth digit 4
1339
- "5": "5",
1340
- // Fullwidth digit 5
1341
- "6": "6",
1342
- // Fullwidth digit 6
1343
- "7": "7",
1344
- // Fullwidth digit 7
1345
- "8": "8",
1346
- // Fullwidth digit 8
1347
- "9": "9",
1348
- // Fullwidth digit 9
1349
- "٠": "0",
1350
- // Arabic-indic digit 0
1351
- "١": "1",
1352
- // Arabic-indic digit 1
1353
- "٢": "2",
1354
- // Arabic-indic digit 2
1355
- "٣": "3",
1356
- // Arabic-indic digit 3
1357
- "٤": "4",
1358
- // Arabic-indic digit 4
1359
- "٥": "5",
1360
- // Arabic-indic digit 5
1361
- "٦": "6",
1362
- // Arabic-indic digit 6
1363
- "٧": "7",
1364
- // Arabic-indic digit 7
1365
- "٨": "8",
1366
- // Arabic-indic digit 8
1367
- "٩": "9",
1368
- // Arabic-indic digit 9
1369
- "۰": "0",
1370
- // Eastern-Arabic digit 0
1371
- "۱": "1",
1372
- // Eastern-Arabic digit 1
1373
- "۲": "2",
1374
- // Eastern-Arabic digit 2
1375
- "۳": "3",
1376
- // Eastern-Arabic digit 3
1377
- "۴": "4",
1378
- // Eastern-Arabic digit 4
1379
- "۵": "5",
1380
- // Eastern-Arabic digit 5
1381
- "۶": "6",
1382
- // Eastern-Arabic digit 6
1383
- "۷": "7",
1384
- // Eastern-Arabic digit 7
1385
- "۸": "8",
1386
- // Eastern-Arabic digit 8
1387
- "۹": "9"
1388
- // Eastern-Arabic digit 9
1389
- };
1390
- function zt(e) {
1391
- return ud[e];
1392
- }
1393
- function pe(e) {
1394
- for (var t = "", r = od(e.split("")), n; !(n = r()).done; ) {
1395
- var d = n.value, i = zt(d);
1396
- i && (t += i);
1397
- }
1398
- return t;
1399
- }
1400
- function $d(e, t) {
1401
- var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
1402
- if (r) return (r = r.call(e)).next.bind(r);
1403
- if (Array.isArray(e) || (r = sd(e)) || t) {
1404
- r && (e = r);
1405
- var n = 0;
1406
- return function() {
1407
- return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
1408
- };
1409
- }
1410
- throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1411
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1412
- }
1413
- function sd(e, t) {
1414
- if (e) {
1415
- if (typeof e == "string") return mt(e, t);
1416
- var r = {}.toString.call(e).slice(8, -1);
1417
- return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? mt(e, t) : void 0;
1418
- }
1419
- }
1420
- function mt(e, t) {
1421
- (t == null || t > e.length) && (t = e.length);
1422
- for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
1423
- return n;
1424
- }
1425
- function gt(e) {
1426
- for (var t = "", r = $d(e.split("")), n; !(n = r()).done; ) {
1427
- var d = n.value;
1428
- t += cd(d, t) || "";
1429
- }
1430
- return t;
1431
- }
1432
- function cd(e, t, r) {
1433
- return e === "+" ? t ? void 0 : "+" : zt(e);
1434
- }
1435
- var Qt = "+", fd = "[\\-\\.\\(\\)]?", yt = "([" + P + "]|" + fd + ")", hd = "^\\" + Qt + yt + "*[" + P + "]" + yt + "*$", md = new RegExp(hd, "g"), ke = P, gd = "[" + ke + "]+((\\-)*[" + ke + "])*", yd = "a-zA-Z", vd = "[" + yd + "]+((\\-)*[" + ke + "])*", pd = "^(" + gd + "\\.)*" + vd + "\\.?$", bd = new RegExp(pd, "g"), vt = "tel:", Me = ";phone-context=", Cd = ";isub=";
1436
- function Nd(e) {
1437
- var t = e.indexOf(Me);
1438
- if (t < 0)
1439
- return null;
1440
- var r = t + Me.length;
1441
- if (r >= e.length)
1442
- return "";
1443
- var n = e.indexOf(";", r);
1444
- return n >= 0 ? e.substring(r, n) : e.substring(r);
1445
- }
1446
- function Pd(e) {
1447
- return e === null ? !0 : e.length === 0 ? !1 : md.test(e) || bd.test(e);
1448
- }
1449
- function Sd(e, t) {
1450
- var r = t.extractFormattedPhoneNumber, n = Nd(e);
1451
- if (!Pd(n))
1452
- throw new F("NOT_A_NUMBER");
1453
- var d;
1454
- if (n === null)
1455
- d = r(e) || "";
1456
- else {
1457
- d = "", n.charAt(0) === Qt && (d += n);
1458
- var i = e.indexOf(vt), a;
1459
- i >= 0 ? a = i + vt.length : a = 0;
1460
- var o = e.indexOf(Me);
1461
- d += e.substring(a, o);
1462
- }
1463
- var l = d.indexOf(Cd);
1464
- if (l > 0 && (d = d.substring(0, l)), d !== "")
1465
- return d;
1466
- }
1467
- var xd = 250, Ed = new RegExp("[" + Ne + P + "]"), wd = new RegExp("[^" + P + "#]+$");
1468
- function Id(e, t, r) {
1469
- if (t = t || {}, r = new v(r), t.defaultCountry && !r.hasCountry(t.defaultCountry))
1470
- throw t.v2 ? new F("INVALID_COUNTRY") : new Error("Unknown country: ".concat(t.defaultCountry));
1471
- var n = Ad(e, t.v2, t.extract), d = n.number, i = n.ext, a = n.error;
1472
- if (!d) {
1473
- if (t.v2)
1474
- throw a === "TOO_SHORT" ? new F("TOO_SHORT") : new F("NOT_A_NUMBER");
1475
- return {};
1476
- }
1477
- var o = Od(d, t.defaultCountry, t.defaultCallingCode, r), l = o.country, u = o.nationalNumber, s = o.countryCallingCode, m = o.countryCallingCodeSource, g = o.carrierCode;
1478
- if (!r.hasSelectedNumberingPlan()) {
1479
- if (t.v2)
1480
- throw new F("INVALID_COUNTRY");
1481
- return {};
1482
- }
1483
- if (!u || u.length < He) {
1484
- if (t.v2)
1485
- throw new F("TOO_SHORT");
1486
- return {};
1487
- }
1488
- if (u.length > mn) {
1489
- if (t.v2)
1490
- throw new F("TOO_LONG");
1491
- return {};
1492
- }
1493
- if (t.v2) {
1494
- var b = new Jt(s, u, r.metadata);
1495
- return l && (b.country = l), g && (b.carrierCode = g), i && (b.ext = i), b.__countryCallingCodeSource = m, b;
1496
- }
1497
- var f = (t.extended ? r.hasSelectedNumberingPlan() : l) ? _(u, r.nationalNumberPattern()) : !1;
1498
- return t.extended ? {
1499
- country: l,
1500
- countryCallingCode: s,
1501
- carrierCode: g,
1502
- valid: f,
1503
- possible: f ? !0 : !!(t.extended === !0 && r.possibleLengths() && Ut(u, l, r)),
1504
- phone: u,
1505
- ext: i
1506
- } : f ? Fd(l, u, i) : {};
1507
- }
1508
- function Td(e, t, r) {
1509
- if (e) {
1510
- if (e.length > xd) {
1511
- if (r)
1512
- throw new F("TOO_LONG");
1513
- return;
1514
- }
1515
- if (t === !1)
1516
- return e;
1517
- var n = e.search(Ed);
1518
- if (!(n < 0))
1519
- return e.slice(n).replace(wd, "");
1520
- }
1521
- }
1522
- function Ad(e, t, r) {
1523
- var n = Sd(e, {
1524
- extractFormattedPhoneNumber: function(a) {
1525
- return Td(a, r, t);
1526
- }
1527
- });
1528
- if (!n)
1529
- return {};
1530
- if (!Ln(n))
1531
- return kn(n) ? {
1532
- error: "TOO_SHORT"
1533
- } : {};
1534
- var d = ad(n);
1535
- return d.ext ? d : {
1536
- number: n
1537
- };
1538
- }
1539
- function Fd(e, t, r) {
1540
- var n = {
1541
- country: e,
1542
- phone: t
1543
- };
1544
- return r && (n.ext = r), n;
1545
- }
1546
- function Od(e, t, r, n) {
1547
- var d = Ke(gt(e), void 0, t, r, n.metadata), i = d.countryCallingCodeSource, a = d.countryCallingCode, o = d.number, l;
1548
- if (a)
1549
- n.selectNumberingPlan(a);
1550
- else if (o && (t || r))
1551
- n.selectNumberingPlan(t, r), t && (l = t), a = r || Be(t, n.metadata);
1552
- else return {};
1553
- if (!o)
1554
- return {
1555
- countryCallingCodeSource: i,
1556
- countryCallingCode: a
1557
- };
1558
- var u = Re(gt(o), l, n), s = u.nationalNumber, m = u.carrierCode, g = Ve(a, {
1559
- nationalNumber: s,
1560
- metadata: n
1561
- });
1562
- return g && (l = g, g === "001" || n.selectNumberingPlan(l)), {
1563
- country: l,
1564
- countryCallingCode: a,
1565
- countryCallingCodeSource: i,
1566
- nationalNumber: s,
1567
- carrierCode: m
1568
- };
1569
- }
1570
- function re(e) {
1571
- "@babel/helpers - typeof";
1572
- return re = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
1573
- return typeof t;
1574
- } : function(t) {
1575
- return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1576
- }, re(e);
1577
- }
1578
- function pt(e, t) {
1579
- var r = Object.keys(e);
1580
- if (Object.getOwnPropertySymbols) {
1581
- var n = Object.getOwnPropertySymbols(e);
1582
- t && (n = n.filter(function(d) {
1583
- return Object.getOwnPropertyDescriptor(e, d).enumerable;
1584
- })), r.push.apply(r, n);
1585
- }
1586
- return r;
1587
- }
1588
- function bt(e) {
1589
- for (var t = 1; t < arguments.length; t++) {
1590
- var r = arguments[t] != null ? arguments[t] : {};
1591
- t % 2 ? pt(Object(r), !0).forEach(function(n) {
1592
- _d(e, n, r[n]);
1593
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : pt(Object(r)).forEach(function(n) {
1594
- Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
1595
- });
1596
- }
1597
- return e;
1598
- }
1599
- function _d(e, t, r) {
1600
- return (t = Rd(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
1601
- }
1602
- function Rd(e) {
1603
- var t = Dd(e, "string");
1604
- return re(t) == "symbol" ? t : t + "";
1605
- }
1606
- function Dd(e, t) {
1607
- if (re(e) != "object" || !e) return e;
1608
- var r = e[Symbol.toPrimitive];
1609
- if (r !== void 0) {
1610
- var n = r.call(e, t);
1611
- if (re(n) != "object") return n;
1612
- throw new TypeError("@@toPrimitive must return a primitive value.");
1613
- }
1614
- return (t === "string" ? String : Number)(e);
1615
- }
1616
- function er(e, t, r) {
1617
- return Id(e, bt(bt({}, t), {}, {
1618
- v2: !0
1619
- }), r);
1620
- }
1621
- function ne(e) {
1622
- "@babel/helpers - typeof";
1623
- return ne = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
1624
- return typeof t;
1625
- } : function(t) {
1626
- return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1627
- }, ne(e);
1628
- }
1629
- function Ct(e, t) {
1630
- var r = Object.keys(e);
1631
- if (Object.getOwnPropertySymbols) {
1632
- var n = Object.getOwnPropertySymbols(e);
1633
- t && (n = n.filter(function(d) {
1634
- return Object.getOwnPropertyDescriptor(e, d).enumerable;
1635
- })), r.push.apply(r, n);
1636
- }
1637
- return r;
1638
- }
1639
- function Ld(e) {
1640
- for (var t = 1; t < arguments.length; t++) {
1641
- var r = arguments[t] != null ? arguments[t] : {};
1642
- t % 2 ? Ct(Object(r), !0).forEach(function(n) {
1643
- kd(e, n, r[n]);
1644
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Ct(Object(r)).forEach(function(n) {
1645
- Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
1646
- });
1647
- }
1648
- return e;
1649
- }
1650
- function kd(e, t, r) {
1651
- return (t = Md(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
1652
- }
1653
- function Md(e) {
1654
- var t = jd(e, "string");
1655
- return ne(t) == "symbol" ? t : t + "";
1656
- }
1657
- function jd(e, t) {
1658
- if (ne(e) != "object" || !e) return e;
1659
- var r = e[Symbol.toPrimitive];
1660
- if (r !== void 0) {
1661
- var n = r.call(e, t);
1662
- if (ne(n) != "object") return n;
1663
- throw new TypeError("@@toPrimitive must return a primitive value.");
1664
- }
1665
- return (t === "string" ? String : Number)(e);
1666
- }
1667
- function Gd(e, t) {
1668
- return Vd(e) || Hd(e, t) || Ud(e, t) || Bd();
1669
- }
1670
- function Bd() {
1671
- throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1672
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1673
- }
1674
- function Ud(e, t) {
1675
- if (e) {
1676
- if (typeof e == "string") return Nt(e, t);
1677
- var r = {}.toString.call(e).slice(8, -1);
1678
- return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? Nt(e, t) : void 0;
1679
- }
1680
- }
1681
- function Nt(e, t) {
1682
- (t == null || t > e.length) && (t = e.length);
1683
- for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
1684
- return n;
1685
- }
1686
- function Hd(e, t) {
1687
- var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
1688
- if (r != null) {
1689
- var n, d, i, a, o = [], l = !0, u = !1;
1690
- try {
1691
- if (i = (r = r.call(e)).next, t !== 0) for (; !(l = (n = i.call(r)).done) && (o.push(n.value), o.length !== t); l = !0) ;
1692
- } catch (s) {
1693
- u = !0, d = s;
1694
- } finally {
1695
- try {
1696
- if (!l && r.return != null && (a = r.return(), Object(a) !== a)) return;
1697
- } finally {
1698
- if (u) throw d;
1699
- }
1700
- }
1701
- return o;
1702
- }
1703
- }
1704
- function Vd(e) {
1705
- if (Array.isArray(e)) return e;
1706
- }
1707
- function tr(e) {
1708
- var t = Array.prototype.slice.call(e), r = Gd(t, 4), n = r[0], d = r[1], i = r[2], a = r[3], o, l, u;
1709
- if (typeof n == "string")
1710
- o = n;
1711
- else throw new TypeError("A text for parsing must be a string.");
1712
- if (!d || typeof d == "string")
1713
- a ? (l = i, u = a) : (l = void 0, u = i), d && (l = Ld({
1714
- defaultCountry: d
1715
- }, l));
1716
- else if (M(d))
1717
- i ? (l = d, u = i) : u = d;
1718
- else throw new Error("Invalid second argument: ".concat(d));
1719
- return {
1720
- text: o,
1721
- options: l,
1722
- metadata: u
1723
- };
1724
- }
1725
- function de(e) {
1726
- "@babel/helpers - typeof";
1727
- return de = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
1728
- return typeof t;
1729
- } : function(t) {
1730
- return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1731
- }, de(e);
1732
- }
1733
- function Pt(e, t) {
1734
- var r = Object.keys(e);
1735
- if (Object.getOwnPropertySymbols) {
1736
- var n = Object.getOwnPropertySymbols(e);
1737
- t && (n = n.filter(function(d) {
1738
- return Object.getOwnPropertyDescriptor(e, d).enumerable;
1739
- })), r.push.apply(r, n);
1740
- }
1741
- return r;
1742
- }
1743
- function St(e) {
1744
- for (var t = 1; t < arguments.length; t++) {
1745
- var r = arguments[t] != null ? arguments[t] : {};
1746
- t % 2 ? Pt(Object(r), !0).forEach(function(n) {
1747
- Kd(e, n, r[n]);
1748
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Pt(Object(r)).forEach(function(n) {
1749
- Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
1750
- });
1751
- }
1752
- return e;
1753
- }
1754
- function Kd(e, t, r) {
1755
- return (t = Wd(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
1756
- }
1757
- function Wd(e) {
1758
- var t = Yd(e, "string");
1759
- return de(t) == "symbol" ? t : t + "";
1760
- }
1761
- function Yd(e, t) {
1762
- if (de(e) != "object" || !e) return e;
1763
- var r = e[Symbol.toPrimitive];
1764
- if (r !== void 0) {
1765
- var n = r.call(e, t);
1766
- if (de(n) != "object") return n;
1767
- throw new TypeError("@@toPrimitive must return a primitive value.");
1768
- }
1769
- return (t === "string" ? String : Number)(e);
1770
- }
1771
- function Xd(e, t, r) {
1772
- t && t.defaultCountry && !an(t.defaultCountry, r) && (t = St(St({}, t), {}, {
1773
- defaultCountry: void 0
1774
- }));
1775
- try {
1776
- return er(e, t, r);
1777
- } catch (n) {
1778
- if (!(n instanceof F)) throw n;
1779
- }
1780
- }
1781
- function Zd() {
1782
- var e = tr(arguments), t = e.text, r = e.options, n = e.metadata;
1783
- return Xd(t, r, n);
1784
- }
1785
- function ie(e) {
1786
- "@babel/helpers - typeof";
1787
- return ie = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
1788
- return typeof t;
1789
- } : function(t) {
1790
- return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1791
- }, ie(e);
1792
- }
1793
- function xt(e, t) {
1794
- var r = Object.keys(e);
1795
- if (Object.getOwnPropertySymbols) {
1796
- var n = Object.getOwnPropertySymbols(e);
1797
- t && (n = n.filter(function(d) {
1798
- return Object.getOwnPropertyDescriptor(e, d).enumerable;
1799
- })), r.push.apply(r, n);
1800
- }
1801
- return r;
1802
- }
1803
- function Et(e) {
1804
- for (var t = 1; t < arguments.length; t++) {
1805
- var r = arguments[t] != null ? arguments[t] : {};
1806
- t % 2 ? xt(Object(r), !0).forEach(function(n) {
1807
- qd(e, n, r[n]);
1808
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : xt(Object(r)).forEach(function(n) {
1809
- Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
1810
- });
1811
- }
1812
- return e;
1813
- }
1814
- function qd(e, t, r) {
1815
- return (t = Jd(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
1816
- }
1817
- function Jd(e) {
1818
- var t = zd(e, "string");
1819
- return ie(t) == "symbol" ? t : t + "";
1820
- }
1821
- function zd(e, t) {
1822
- if (ie(e) != "object" || !e) return e;
1823
- var r = e[Symbol.toPrimitive];
1824
- if (r !== void 0) {
1825
- var n = r.call(e, t);
1826
- if (ie(n) != "object") return n;
1827
- throw new TypeError("@@toPrimitive must return a primitive value.");
1828
- }
1829
- return (t === "string" ? String : Number)(e);
1830
- }
1831
- function Qd() {
1832
- var e = tr(arguments), t = e.text, r = e.options, n = e.metadata;
1833
- r = Et(Et({}, r), {}, {
1834
- extract: !1
1835
- });
1836
- try {
1837
- var d = er(t, r, n);
1838
- n = new v(n), n.selectNumberingPlan(d.countryCallingCode);
1839
- var i = ce(d.nationalNumber, d.country, n);
1840
- if (i !== "IS_POSSIBLE")
1841
- return i;
1842
- } catch (a) {
1843
- if (a instanceof F)
1844
- return a.message;
1845
- throw a;
1846
- }
1847
- }
1848
- function ae(e) {
1849
- "@babel/helpers - typeof";
1850
- return ae = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
1851
- return typeof t;
1852
- } : function(t) {
1853
- return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1854
- }, ae(e);
1855
- }
1856
- function ei(e, t) {
1857
- if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
1858
- }
1859
- function ti(e, t) {
1860
- for (var r = 0; r < t.length; r++) {
1861
- var n = t[r];
1862
- n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, ni(n.key), n);
1863
- }
1864
- }
1865
- function ri(e, t, r) {
1866
- return t && ti(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
1867
- }
1868
- function ni(e) {
1869
- var t = di(e, "string");
1870
- return ae(t) == "symbol" ? t : t + "";
1871
- }
1872
- function di(e, t) {
1873
- if (ae(e) != "object" || !e) return e;
1874
- var r = e[Symbol.toPrimitive];
1875
- if (r !== void 0) {
1876
- var n = r.call(e, t);
1877
- if (ae(n) != "object") return n;
1878
- throw new TypeError("@@toPrimitive must return a primitive value.");
1879
- }
1880
- return String(e);
1881
- }
1882
- var ii = /* @__PURE__ */ (function() {
1883
- function e(t) {
1884
- var r = t.onCountryChange, n = t.onCallingCodeChange;
1885
- ei(this, e), this.onCountryChange = r, this.onCallingCodeChange = n;
1886
- }
1887
- return ri(e, [{
1888
- key: "reset",
1889
- value: function(r) {
1890
- var n = r.country, d = r.callingCode;
1891
- this.international = !1, this.missingPlus = !1, this.IDDPrefix = void 0, this.callingCode = void 0, this.digits = "", this.resetNationalSignificantNumber(), this.initCountryAndCallingCode(n, d);
1892
- }
1893
- }, {
1894
- key: "resetNationalSignificantNumber",
1895
- value: function() {
1896
- this.nationalSignificantNumber = this.getNationalDigits(), this.nationalSignificantNumberIsModified = !1, this.nationalPrefix = void 0, this.carrierCode = void 0, this.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix = void 0;
1897
- }
1898
- }, {
1899
- key: "update",
1900
- value: function(r) {
1901
- for (var n = 0, d = Object.keys(r); n < d.length; n++) {
1902
- var i = d[n];
1903
- this[i] = r[i];
1904
- }
1905
- }
1906
- }, {
1907
- key: "initCountryAndCallingCode",
1908
- value: function(r, n) {
1909
- this.setCountry(r), this.setCallingCode(n);
1910
- }
1911
- }, {
1912
- key: "setCountry",
1913
- value: function(r) {
1914
- this.country = r, this.onCountryChange(r);
1915
- }
1916
- }, {
1917
- key: "setCallingCode",
1918
- value: function(r) {
1919
- this.callingCode = r, this.onCallingCodeChange(r, this.country);
1920
- }
1921
- }, {
1922
- key: "startInternationalNumber",
1923
- value: function(r, n) {
1924
- this.international = !0, this.initCountryAndCallingCode(r, n);
1925
- }
1926
- }, {
1927
- key: "appendDigits",
1928
- value: function(r) {
1929
- this.digits += r;
1930
- }
1931
- }, {
1932
- key: "appendNationalSignificantNumberDigits",
1933
- value: function(r) {
1934
- this.nationalSignificantNumber += r;
1935
- }
1936
- /**
1937
- * Returns the part of `this.digits` that corresponds to the national number.
1938
- * Basically, all digits that have been input by the user, except for the
1939
- * international prefix and the country calling code part
1940
- * (if the number is an international one).
1941
- * @return {string}
1942
- */
1943
- }, {
1944
- key: "getNationalDigits",
1945
- value: function() {
1946
- return this.international ? this.digits.slice((this.IDDPrefix ? this.IDDPrefix.length : 0) + (this.callingCode ? this.callingCode.length : 0)) : this.digits;
1947
- }
1948
- }, {
1949
- key: "getDigitsWithoutInternationalPrefix",
1950
- value: function() {
1951
- return this.international && this.IDDPrefix ? this.digits.slice(this.IDDPrefix.length) : this.digits;
1952
- }
1953
- }]);
1954
- })();
1955
- function ai(e, t) {
1956
- var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
1957
- if (r) return (r = r.call(e)).next.bind(r);
1958
- if (Array.isArray(e) || (r = oi(e)) || t) {
1959
- r && (e = r);
1960
- var n = 0;
1961
- return function() {
1962
- return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
1963
- };
1964
- }
1965
- throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1966
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1967
- }
1968
- function oi(e, t) {
1969
- if (e) {
1970
- if (typeof e == "string") return wt(e, t);
1971
- var r = {}.toString.call(e).slice(8, -1);
1972
- return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? wt(e, t) : void 0;
1973
- }
1974
- }
1975
- function wt(e, t) {
1976
- (t == null || t > e.length) && (t = e.length);
1977
- for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
1978
- return n;
1979
- }
1980
- var T = "x", Ae = new RegExp(T);
1981
- function ye(e, t) {
1982
- if (t < 1)
1983
- return "";
1984
- for (var r = ""; t > 1; )
1985
- t & 1 && (r += e), t >>= 1, e += e;
1986
- return r + e;
1987
- }
1988
- function It(e, t) {
1989
- return e[t] === ")" && t++, li(e.slice(0, t));
1990
- }
1991
- function li(e) {
1992
- for (var t = [], r = 0; r < e.length; )
1993
- e[r] === "(" ? t.push(r) : e[r] === ")" && t.pop(), r++;
1994
- var n = 0, d = "";
1995
- t.push(e.length);
1996
- for (var i = 0, a = t; i < a.length; i++) {
1997
- var o = a[i];
1998
- d += e.slice(n, o), n = o + 1;
1999
- }
2000
- return d;
2001
- }
2002
- function ui(e, t, r) {
2003
- for (var n = ai(r.split("")), d; !(d = n()).done; ) {
2004
- var i = d.value;
2005
- if (e.slice(t + 1).search(Ae) < 0)
2006
- return;
2007
- t = e.search(Ae), e = e.replace(Ae, i);
2008
- }
2009
- return [e, t];
2010
- }
2011
- function $i(e, t, r) {
2012
- var n = r.metadata, d = r.shouldTryNationalPrefixFormattingRule, i = r.getSeparatorAfterNationalPrefix, a = new RegExp("^(?:".concat(t.pattern(), ")$"));
2013
- if (a.test(e.nationalSignificantNumber))
2014
- return ci(e, t, {
2015
- metadata: n,
2016
- shouldTryNationalPrefixFormattingRule: d,
2017
- getSeparatorAfterNationalPrefix: i
2018
- });
2019
- }
2020
- function si(e, t, r) {
2021
- return ce(e, t, r) === "IS_POSSIBLE";
2022
- }
2023
- function ci(e, t, r) {
2024
- var n = r.metadata, d = r.shouldTryNationalPrefixFormattingRule, i = r.getSeparatorAfterNationalPrefix;
2025
- if (e.nationalSignificantNumber, e.international, e.nationalPrefix, e.carrierCode, d(t)) {
2026
- var a = Tt(e, t, {
2027
- useNationalPrefixFormattingRule: !0,
2028
- getSeparatorAfterNationalPrefix: i,
2029
- metadata: n
2030
- });
2031
- if (a)
2032
- return a;
2033
- }
2034
- return Tt(e, t, {
2035
- useNationalPrefixFormattingRule: !1,
2036
- getSeparatorAfterNationalPrefix: i,
2037
- metadata: n
2038
- });
2039
- }
2040
- function Tt(e, t, r) {
2041
- var n = r.metadata, d = r.useNationalPrefixFormattingRule, i = r.getSeparatorAfterNationalPrefix, a = Xt(e.nationalSignificantNumber, t, {
2042
- carrierCode: e.carrierCode,
2043
- useInternationalFormat: e.international,
2044
- withNationalPrefix: d,
2045
- metadata: n
2046
- });
2047
- if (d || (e.nationalPrefix ? a = e.nationalPrefix + i(t) + a : e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix && (a = e.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix + " " + a)), fi(a, e))
2048
- return a;
2049
- }
2050
- function fi(e, t) {
2051
- return pe(e) === t.getNationalDigits();
2052
- }
2053
- function oe(e) {
2054
- "@babel/helpers - typeof";
2055
- return oe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
2056
- return typeof t;
2057
- } : function(t) {
2058
- return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
2059
- }, oe(e);
2060
- }
2061
- function hi(e, t) {
2062
- if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
2063
- }
2064
- function mi(e, t) {
2065
- for (var r = 0; r < t.length; r++) {
2066
- var n = t[r];
2067
- n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, yi(n.key), n);
2068
- }
2069
- }
2070
- function gi(e, t, r) {
2071
- return t && mi(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
2072
- }
2073
- function yi(e) {
2074
- var t = vi(e, "string");
2075
- return oe(t) == "symbol" ? t : t + "";
2076
- }
2077
- function vi(e, t) {
2078
- if (oe(e) != "object" || !e) return e;
2079
- var r = e[Symbol.toPrimitive];
2080
- if (r !== void 0) {
2081
- var n = r.call(e, t);
2082
- if (oe(n) != "object") return n;
2083
- throw new TypeError("@@toPrimitive must return a primitive value.");
2084
- }
2085
- return String(e);
2086
- }
2087
- var pi = /* @__PURE__ */ (function() {
2088
- function e() {
2089
- hi(this, e);
2090
- }
2091
- return gi(e, [{
2092
- key: "parse",
2093
- value: function(r) {
2094
- if (this.context = [{
2095
- or: !0,
2096
- instructions: []
2097
- }], this.parsePattern(r), this.context.length !== 1)
2098
- throw new Error("Non-finalized contexts left when pattern parse ended");
2099
- var n = this.context[0], d = n.branches, i = n.instructions;
2100
- if (d)
2101
- return {
2102
- op: "|",
2103
- args: d.concat([Fe(i)])
2104
- };
2105
- if (i.length === 0)
2106
- throw new Error("Pattern is required");
2107
- return i.length === 1 ? i[0] : i;
2108
- }
2109
- }, {
2110
- key: "startContext",
2111
- value: function(r) {
2112
- this.context.push(r);
2113
- }
2114
- }, {
2115
- key: "endContext",
2116
- value: function() {
2117
- this.context.pop();
2118
- }
2119
- }, {
2120
- key: "getContext",
2121
- value: function() {
2122
- return this.context[this.context.length - 1];
2123
- }
2124
- }, {
2125
- key: "parsePattern",
2126
- value: function(r) {
2127
- if (!r)
2128
- throw new Error("Pattern is required");
2129
- var n = r.match(Ni);
2130
- if (!n) {
2131
- if (Ci.test(r))
2132
- throw new Error("Illegal characters found in a pattern: ".concat(r));
2133
- this.getContext().instructions = this.getContext().instructions.concat(r.split(""));
2134
- return;
2135
- }
2136
- var d = n[1], i = r.slice(0, n.index), a = r.slice(n.index + d.length);
2137
- switch (d) {
2138
- case "(?:":
2139
- i && this.parsePattern(i), this.startContext({
2140
- or: !0,
2141
- instructions: [],
2142
- branches: []
2143
- });
2144
- break;
2145
- case ")":
2146
- if (!this.getContext().or)
2147
- throw new Error('")" operator must be preceded by "(?:" operator');
2148
- if (i && this.parsePattern(i), this.getContext().instructions.length === 0)
2149
- throw new Error('No instructions found after "|" operator in an "or" group');
2150
- var o = this.getContext(), l = o.branches;
2151
- l.push(Fe(this.getContext().instructions)), this.endContext(), this.getContext().instructions.push({
2152
- op: "|",
2153
- args: l
2154
- });
2155
- break;
2156
- case "|":
2157
- if (!this.getContext().or)
2158
- throw new Error('"|" operator can only be used inside "or" groups');
2159
- if (i && this.parsePattern(i), !this.getContext().branches)
2160
- if (this.context.length === 1)
2161
- this.getContext().branches = [];
2162
- else
2163
- throw new Error('"branches" not found in an "or" group context');
2164
- this.getContext().branches.push(Fe(this.getContext().instructions)), this.getContext().instructions = [];
2165
- break;
2166
- case "[":
2167
- i && this.parsePattern(i), this.startContext({
2168
- oneOfSet: !0
2169
- });
2170
- break;
2171
- case "]":
2172
- if (!this.getContext().oneOfSet)
2173
- throw new Error('"]" operator must be preceded by "[" operator');
2174
- this.endContext(), this.getContext().instructions.push({
2175
- op: "[]",
2176
- args: bi(i)
2177
- });
2178
- break;
2179
- /* istanbul ignore next */
2180
- default:
2181
- throw new Error("Unknown operator: ".concat(d));
2182
- }
2183
- a && this.parsePattern(a);
2184
- }
2185
- }]);
2186
- })();
2187
- function bi(e) {
2188
- for (var t = [], r = 0; r < e.length; ) {
2189
- if (e[r] === "-") {
2190
- if (r === 0 || r === e.length - 1)
2191
- throw new Error("Couldn't parse a one-of set pattern: ".concat(e));
2192
- for (var n = e[r - 1].charCodeAt(0) + 1, d = e[r + 1].charCodeAt(0) - 1, i = n; i <= d; )
2193
- t.push(String.fromCharCode(i)), i++;
2194
- } else
2195
- t.push(e[r]);
2196
- r++;
2197
- }
2198
- return t;
2199
- }
2200
- var Ci = /[\(\)\[\]\?\:\|]/, Ni = new RegExp(
2201
- // any of:
2202
- "(\\||\\(\\?\\:|\\)|\\[|\\])"
1
+ import { defineComponent as Pe, inject as Le, ref as f, computed as u, toRef as Oe, watch as M, nextTick as ie, onMounted as Re, onUnmounted as Te, createBlock as O, openBlock as y, unref as b, withCtx as R, createElementVNode as i, normalizeClass as I, createVNode as B, createElementBlock as Y, createCommentVNode as D, renderSlot as Ae, toDisplayString as W, Teleport as Me, Transition as Be, normalizeStyle as De, withDirectives as Ue, withModifiers as Z, vModelText as Fe, Fragment as He, renderList as Ge, withKeys as Ke } from "vue";
2
+ import { useField as qe } from "vee-validate";
3
+ import { Listbox as Ye, ListboxButton as je, ListboxOptions as ze, ListboxOption as $e } from "@headlessui/vue";
4
+ import { ChevronDownIcon as _e, CheckIcon as We, ExclamationCircleIcon as Ze, CheckCircleIcon as Je } from "@heroicons/vue/20/solid";
5
+ import Xe from "../forms/FormFieldWrapper.js";
6
+ import { g as Qe } from "../id-DafBB_QF.js";
7
+ import { AsYouType as X, validatePhoneNumberLength as ea, parsePhoneNumberFromString as aa } from "libphonenumber-js";
8
+ import { _ as la } from "../_plugin-vue_export-helper-CHgC5LLL.js";
9
+ const E = {
10
+ US: { code: "US", name: "United States", dialCode: "+1" },
11
+ CA: { code: "CA", name: "Canada", dialCode: "+1" },
12
+ GB: { code: "GB", name: "United Kingdom", dialCode: "+44" },
13
+ AU: { code: "AU", name: "Australia", dialCode: "+61" },
14
+ DE: { code: "DE", name: "Germany", dialCode: "+49" },
15
+ FR: { code: "FR", name: "France", dialCode: "+33" },
16
+ IT: { code: "IT", name: "Italy", dialCode: "+39" },
17
+ ES: { code: "ES", name: "Spain", dialCode: "+34" },
18
+ NL: { code: "NL", name: "Netherlands", dialCode: "+31" },
19
+ BE: { code: "BE", name: "Belgium", dialCode: "+32" },
20
+ CH: { code: "CH", name: "Switzerland", dialCode: "+41" },
21
+ AT: { code: "AT", name: "Austria", dialCode: "+43" },
22
+ SE: { code: "SE", name: "Sweden", dialCode: "+46" },
23
+ NO: { code: "NO", name: "Norway", dialCode: "+47" },
24
+ DK: { code: "DK", name: "Denmark", dialCode: "+45" },
25
+ FI: { code: "FI", name: "Finland", dialCode: "+358" },
26
+ IE: { code: "IE", name: "Ireland", dialCode: "+353" },
27
+ PT: { code: "PT", name: "Portugal", dialCode: "+351" },
28
+ GR: { code: "GR", name: "Greece", dialCode: "+30" },
29
+ PL: { code: "PL", name: "Poland", dialCode: "+48" },
30
+ CZ: { code: "CZ", name: "Czech Republic", dialCode: "+420" },
31
+ HU: { code: "HU", name: "Hungary", dialCode: "+36" },
32
+ RO: { code: "RO", name: "Romania", dialCode: "+40" },
33
+ BG: { code: "BG", name: "Bulgaria", dialCode: "+359" },
34
+ SK: { code: "SK", name: "Slovakia", dialCode: "+421" },
35
+ SI: { code: "SI", name: "Slovenia", dialCode: "+386" },
36
+ HR: { code: "HR", name: "Croatia", dialCode: "+385" },
37
+ RS: { code: "RS", name: "Serbia", dialCode: "+381" },
38
+ UA: { code: "UA", name: "Ukraine", dialCode: "+380" },
39
+ RU: { code: "RU", name: "Russia", dialCode: "+7" },
40
+ MX: { code: "MX", name: "Mexico", dialCode: "+52" },
41
+ BR: { code: "BR", name: "Brazil", dialCode: "+55" },
42
+ AR: { code: "AR", name: "Argentina", dialCode: "+54" },
43
+ CL: { code: "CL", name: "Chile", dialCode: "+56" },
44
+ CO: { code: "CO", name: "Colombia", dialCode: "+57" },
45
+ PE: { code: "PE", name: "Peru", dialCode: "+51" },
46
+ VE: { code: "VE", name: "Venezuela", dialCode: "+58" },
47
+ EC: { code: "EC", name: "Ecuador", dialCode: "+593" },
48
+ BO: { code: "BO", name: "Bolivia", dialCode: "+591" },
49
+ PY: { code: "PY", name: "Paraguay", dialCode: "+595" },
50
+ UY: { code: "UY", name: "Uruguay", dialCode: "+598" },
51
+ JP: { code: "JP", name: "Japan", dialCode: "+81" },
52
+ KR: { code: "KR", name: "South Korea", dialCode: "+82" },
53
+ CN: { code: "CN", name: "China", dialCode: "+86" },
54
+ IN: { code: "IN", name: "India", dialCode: "+91" },
55
+ PH: { code: "PH", name: "Philippines", dialCode: "+63" },
56
+ ID: { code: "ID", name: "Indonesia", dialCode: "+62" },
57
+ MY: { code: "MY", name: "Malaysia", dialCode: "+60" },
58
+ SG: { code: "SG", name: "Singapore", dialCode: "+65" },
59
+ TH: { code: "TH", name: "Thailand", dialCode: "+66" },
60
+ VN: { code: "VN", name: "Vietnam", dialCode: "+84" },
61
+ TW: { code: "TW", name: "Taiwan", dialCode: "+886" },
62
+ HK: { code: "HK", name: "Hong Kong", dialCode: "+852" },
63
+ NZ: { code: "NZ", name: "New Zealand", dialCode: "+64" },
64
+ ZA: { code: "ZA", name: "South Africa", dialCode: "+27" },
65
+ EG: { code: "EG", name: "Egypt", dialCode: "+20" },
66
+ NG: { code: "NG", name: "Nigeria", dialCode: "+234" },
67
+ KE: { code: "KE", name: "Kenya", dialCode: "+254" },
68
+ GH: { code: "GH", name: "Ghana", dialCode: "+233" },
69
+ MA: { code: "MA", name: "Morocco", dialCode: "+212" },
70
+ IL: { code: "IL", name: "Israel", dialCode: "+972" },
71
+ SA: { code: "SA", name: "Saudi Arabia", dialCode: "+966" },
72
+ AE: { code: "AE", name: "United Arab Emirates", dialCode: "+971" },
73
+ TR: { code: "TR", name: "Turkey", dialCode: "+90" },
74
+ PK: { code: "PK", name: "Pakistan", dialCode: "+92" }
75
+ }, ue = Object.values(E).sort(
76
+ (a, s) => a.name.localeCompare(s.name)
2203
77
  );
2204
- function Fe(e) {
2205
- return e.length === 1 ? e[0] : e;
2206
- }
2207
- function At(e, t) {
2208
- var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
2209
- if (r) return (r = r.call(e)).next.bind(r);
2210
- if (Array.isArray(e) || (r = Pi(e)) || t) {
2211
- r && (e = r);
2212
- var n = 0;
2213
- return function() {
2214
- return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
2215
- };
2216
- }
2217
- throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2218
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
2219
- }
2220
- function Pi(e, t) {
2221
- if (e) {
2222
- if (typeof e == "string") return Ft(e, t);
2223
- var r = {}.toString.call(e).slice(8, -1);
2224
- return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? Ft(e, t) : void 0;
2225
- }
2226
- }
2227
- function Ft(e, t) {
2228
- (t == null || t > e.length) && (t = e.length);
2229
- for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
2230
- return n;
2231
- }
2232
- function le(e) {
2233
- "@babel/helpers - typeof";
2234
- return le = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
2235
- return typeof t;
2236
- } : function(t) {
2237
- return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
2238
- }, le(e);
2239
- }
2240
- function Si(e, t) {
2241
- if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
2242
- }
2243
- function xi(e, t) {
2244
- for (var r = 0; r < t.length; r++) {
2245
- var n = t[r];
2246
- n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, wi(n.key), n);
2247
- }
2248
- }
2249
- function Ei(e, t, r) {
2250
- return t && xi(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
2251
- }
2252
- function wi(e) {
2253
- var t = Ii(e, "string");
2254
- return le(t) == "symbol" ? t : t + "";
2255
- }
2256
- function Ii(e, t) {
2257
- if (le(e) != "object" || !e) return e;
2258
- var r = e[Symbol.toPrimitive];
2259
- if (r !== void 0) {
2260
- var n = r.call(e, t);
2261
- if (le(n) != "object") return n;
2262
- throw new TypeError("@@toPrimitive must return a primitive value.");
2263
- }
2264
- return String(e);
2265
- }
2266
- var Ti = /* @__PURE__ */ (function() {
2267
- function e(t) {
2268
- Si(this, e), this.matchTree = new pi().parse(t);
2269
- }
2270
- return Ei(e, [{
2271
- key: "match",
2272
- value: function(r) {
2273
- var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, d = n.allowOverflow;
2274
- if (!r)
2275
- throw new Error("String is required");
2276
- var i = je(r.split(""), this.matchTree, !0);
2277
- if (i && i.match && delete i.matchedChars, !(i && i.overflow && !d))
2278
- return i;
2279
- }
2280
- }]);
2281
- })();
2282
- function je(e, t, r) {
2283
- if (typeof t == "string") {
2284
- var n = e.join("");
2285
- return t.indexOf(n) === 0 ? e.length === t.length ? {
2286
- match: !0,
2287
- matchedChars: e
2288
- } : {
2289
- partialMatch: !0
2290
- // matchedChars: characters
2291
- } : n.indexOf(t) === 0 ? r && e.length > t.length ? {
2292
- overflow: !0
2293
- } : {
2294
- match: !0,
2295
- matchedChars: e.slice(0, t.length)
2296
- } : void 0;
2297
- }
2298
- if (Array.isArray(t)) {
2299
- for (var d = e.slice(), i = 0; i < t.length; ) {
2300
- var a = t[i], o = je(d, a, r && i === t.length - 1);
2301
- if (o) {
2302
- if (o.overflow)
2303
- return o;
2304
- if (o.match) {
2305
- if (d = d.slice(o.matchedChars.length), d.length === 0)
2306
- return i === t.length - 1 ? {
2307
- match: !0,
2308
- matchedChars: e
2309
- } : {
2310
- partialMatch: !0
2311
- // matchedChars: characters
2312
- };
2313
- } else {
2314
- if (o.partialMatch)
2315
- return {
2316
- partialMatch: !0
2317
- // matchedChars: characters
2318
- };
2319
- throw new Error(`Unsupported match result:
2320
- `.concat(JSON.stringify(o, null, 2)));
2321
- }
2322
- } else return;
2323
- i++;
2324
- }
2325
- return r ? {
2326
- overflow: !0
2327
- } : {
2328
- match: !0,
2329
- matchedChars: e.slice(0, e.length - d.length)
2330
- };
2331
- }
2332
- switch (t.op) {
2333
- case "|":
2334
- for (var l, u = At(t.args), s; !(s = u()).done; ) {
2335
- var m = s.value, g = je(e, m, r);
2336
- if (g) {
2337
- if (g.overflow)
2338
- return g;
2339
- if (g.match)
2340
- return {
2341
- match: !0,
2342
- matchedChars: g.matchedChars
2343
- };
2344
- if (g.partialMatch)
2345
- l = !0;
2346
- else
2347
- throw new Error(`Unsupported match result:
2348
- `.concat(JSON.stringify(g, null, 2)));
2349
- }
2350
- }
2351
- return l ? {
2352
- partialMatch: !0
2353
- // matchedChars: ...
2354
- } : void 0;
2355
- case "[]":
2356
- for (var b = At(t.args), f; !(f = b()).done; ) {
2357
- var S = f.value;
2358
- if (e[0] === S)
2359
- return e.length === 1 ? {
2360
- match: !0,
2361
- matchedChars: e
2362
- } : r ? {
2363
- overflow: !0
2364
- } : {
2365
- match: !0,
2366
- matchedChars: [S]
2367
- };
2368
- }
2369
- return;
2370
- /* istanbul ignore next */
2371
- default:
2372
- throw new Error("Unsupported instruction tree: ".concat(t));
2373
- }
2374
- }
2375
- function ue(e) {
2376
- "@babel/helpers - typeof";
2377
- return ue = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
2378
- return typeof t;
2379
- } : function(t) {
2380
- return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
2381
- }, ue(e);
2382
- }
2383
- function Ot(e, t) {
2384
- var r = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
2385
- if (r) return (r = r.call(e)).next.bind(r);
2386
- if (Array.isArray(e) || (r = Ai(e)) || t) {
2387
- r && (e = r);
2388
- var n = 0;
2389
- return function() {
2390
- return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] };
2391
- };
2392
- }
2393
- throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2394
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
2395
- }
2396
- function Ai(e, t) {
2397
- if (e) {
2398
- if (typeof e == "string") return _t(e, t);
2399
- var r = {}.toString.call(e).slice(8, -1);
2400
- return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? _t(e, t) : void 0;
2401
- }
2402
- }
2403
- function _t(e, t) {
2404
- (t == null || t > e.length) && (t = e.length);
2405
- for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
2406
- return n;
2407
- }
2408
- function Fi(e, t) {
2409
- if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
78
+ function ta(a) {
79
+ return E[a]?.dialCode ?? "+1";
2410
80
  }
2411
- function Oi(e, t) {
2412
- for (var r = 0; r < t.length; r++) {
2413
- var n = t[r];
2414
- n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, Ri(n.key), n);
2415
- }
2416
- }
2417
- function _i(e, t, r) {
2418
- return t && Oi(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
2419
- }
2420
- function Ri(e) {
2421
- var t = Di(e, "string");
2422
- return ue(t) == "symbol" ? t : t + "";
2423
- }
2424
- function Di(e, t) {
2425
- if (ue(e) != "object" || !e) return e;
2426
- var r = e[Symbol.toPrimitive];
2427
- if (r !== void 0) {
2428
- var n = r.call(e, t);
2429
- if (ue(n) != "object") return n;
2430
- throw new TypeError("@@toPrimitive must return a primitive value.");
2431
- }
2432
- return String(e);
2433
- }
2434
- var Ge = "9", Li = 15, ki = ye(Ge, Li), Mi = /[- ]/, ji = function() {
2435
- return /\[([^\[\]])*\]/g;
2436
- }, Gi = function() {
2437
- return /\d(?=[^,}][^,}])/g;
2438
- }, Bi = new RegExp("[" + A + "]*\\$1[" + A + "]*(\\$\\d[" + A + "]*)*$"), Rt = 3, Ui = /* @__PURE__ */ (function() {
2439
- function e(t) {
2440
- t.state;
2441
- var r = t.metadata;
2442
- Fi(this, e), this.metadata = r, this.resetFormat();
2443
- }
2444
- return _i(e, [{
2445
- key: "resetFormat",
2446
- value: function() {
2447
- this.chosenFormat = void 0, this.template = void 0, this.nationalNumberTemplate = void 0, this.populatedNationalNumberTemplate = void 0, this.populatedNationalNumberTemplatePosition = -1;
2448
- }
2449
- }, {
2450
- key: "reset",
2451
- value: function(r, n) {
2452
- this.resetFormat(), r ? (this.isNANP = r.callingCode() === "1", this.matchingFormats = r.formats(), n.nationalSignificantNumber && this.narrowDownMatchingFormats(n)) : (this.isNANP = void 0, this.matchingFormats = []);
2453
- }
2454
- /**
2455
- * Formats an updated phone number.
2456
- * @param {string} nextDigits — Additional phone number digits.
2457
- * @param {object} state — `AsYouType` state.
2458
- * @return {[string]} Returns undefined if the updated phone number can't be formatted using any of the available formats.
2459
- */
2460
- }, {
2461
- key: "format",
2462
- value: function(r, n) {
2463
- var d = this;
2464
- if (si(n.nationalSignificantNumber, n.country, this.metadata))
2465
- for (var i = Ot(this.matchingFormats), a; !(a = i()).done; ) {
2466
- var o = a.value, l = $i(n, o, {
2467
- metadata: this.metadata,
2468
- shouldTryNationalPrefixFormattingRule: function(s) {
2469
- return d.shouldTryNationalPrefixFormattingRule(s, {
2470
- international: n.international,
2471
- nationalPrefix: n.nationalPrefix
2472
- });
2473
- },
2474
- getSeparatorAfterNationalPrefix: function(s) {
2475
- return d.getSeparatorAfterNationalPrefix(s);
2476
- }
2477
- });
2478
- if (l)
2479
- return this.resetFormat(), this.chosenFormat = o, this.setNationalNumberTemplate(l.replace(/\d/g, T), n), this.populatedNationalNumberTemplate = l, this.populatedNationalNumberTemplatePosition = this.template.lastIndexOf(T), l;
2480
- }
2481
- return this.formatNationalNumberWithNextDigits(r, n);
2482
- }
2483
- // Formats the next phone number digits.
2484
- }, {
2485
- key: "formatNationalNumberWithNextDigits",
2486
- value: function(r, n) {
2487
- var d = this.chosenFormat, i = this.chooseFormat(n);
2488
- if (i)
2489
- return i === d ? this.formatNextNationalNumberDigits(r) : this.formatNextNationalNumberDigits(n.getNationalDigits());
2490
- }
2491
- }, {
2492
- key: "narrowDownMatchingFormats",
2493
- value: function(r) {
2494
- var n = this, d = r.nationalSignificantNumber, i = r.nationalPrefix, a = r.international, o = d, l = o.length - Rt;
2495
- l < 0 && (l = 0), this.matchingFormats = this.matchingFormats.filter(function(u) {
2496
- return n.formatSuits(u, a, i) && n.formatMatches(u, o, l);
2497
- }), this.chosenFormat && this.matchingFormats.indexOf(this.chosenFormat) === -1 && this.resetFormat();
2498
- }
2499
- }, {
2500
- key: "formatSuits",
2501
- value: function(r, n, d) {
2502
- return !(d && !r.usesNationalPrefix() && // !format.domesticCarrierCodeFormattingRule() &&
2503
- !r.nationalPrefixIsOptionalWhenFormattingInNationalFormat() || !n && !d && r.nationalPrefixIsMandatoryWhenFormattingInNationalFormat());
2504
- }
2505
- }, {
2506
- key: "formatMatches",
2507
- value: function(r, n, d) {
2508
- var i = r.leadingDigitsPatterns().length;
2509
- if (i === 0)
2510
- return !0;
2511
- d = Math.min(d, i - 1);
2512
- var a = r.leadingDigitsPatterns()[d];
2513
- if (n.length < Rt)
2514
- try {
2515
- return new Ti(a).match(n, {
2516
- allowOverflow: !0
2517
- }) !== void 0;
2518
- } catch (o) {
2519
- return console.error(o), !0;
2520
- }
2521
- return new RegExp("^(".concat(a, ")")).test(n);
2522
- }
2523
- }, {
2524
- key: "getFormatFormat",
2525
- value: function(r, n) {
2526
- return n ? r.internationalFormat() : r.format();
2527
- }
2528
- }, {
2529
- key: "chooseFormat",
2530
- value: function(r) {
2531
- for (var n = this, d = function() {
2532
- var u = o.value;
2533
- return n.chosenFormat === u ? 0 : Bi.test(n.getFormatFormat(u, r.international)) ? n.createTemplateForFormat(u, r) ? (n.chosenFormat = u, 0) : (n.matchingFormats = n.matchingFormats.filter(function(s) {
2534
- return s !== u;
2535
- }), 1) : 1;
2536
- }, i, a = Ot(this.matchingFormats.slice()), o; !(o = a()).done && (i = d(), i !== 0); )
2537
- ;
2538
- return this.chosenFormat || this.resetFormat(), this.chosenFormat;
2539
- }
2540
- }, {
2541
- key: "createTemplateForFormat",
2542
- value: function(r, n) {
2543
- if (!(r.pattern().indexOf("|") >= 0)) {
2544
- var d = this.getTemplateForFormat(r, n);
2545
- if (d)
2546
- return this.setNationalNumberTemplate(d, n), !0;
2547
- }
2548
- }
2549
- }, {
2550
- key: "getSeparatorAfterNationalPrefix",
2551
- value: function(r) {
2552
- return this.isNANP || r && r.nationalPrefixFormattingRule() && Mi.test(r.nationalPrefixFormattingRule()) ? " " : "";
2553
- }
2554
- }, {
2555
- key: "getInternationalPrefixBeforeCountryCallingCode",
2556
- value: function(r, n) {
2557
- var d = r.IDDPrefix, i = r.missingPlus;
2558
- return d ? n && n.spacing === !1 ? d : d + " " : i ? "" : "+";
2559
- }
2560
- }, {
2561
- key: "getTemplate",
2562
- value: function(r) {
2563
- if (this.template) {
2564
- for (var n = -1, d = 0, i = r.international ? this.getInternationalPrefixBeforeCountryCallingCode(r, {
2565
- spacing: !1
2566
- }) : ""; d < i.length + r.getDigitsWithoutInternationalPrefix().length; )
2567
- n = this.template.indexOf(T, n + 1), d++;
2568
- return It(this.template, n + 1);
2569
- }
2570
- }
2571
- }, {
2572
- key: "setNationalNumberTemplate",
2573
- value: function(r, n) {
2574
- this.nationalNumberTemplate = r, this.populatedNationalNumberTemplate = r, this.populatedNationalNumberTemplatePosition = -1, n.international ? this.template = this.getInternationalPrefixBeforeCountryCallingCode(n).replace(/[\d\+]/g, T) + ye(T, n.callingCode.length) + " " + r : this.template = r;
2575
- }
2576
- /**
2577
- * Generates formatting template for a national phone number,
2578
- * optionally containing a national prefix, for a format.
2579
- * @param {Format} format
2580
- * @param {string} nationalPrefix
2581
- * @return {string}
2582
- */
2583
- }, {
2584
- key: "getTemplateForFormat",
2585
- value: function(r, n) {
2586
- var d = n.nationalSignificantNumber, i = n.international, a = n.nationalPrefix, o = n.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix, l = r.pattern();
2587
- l = l.replace(ji(), "\\d").replace(Gi(), "\\d");
2588
- var u = ki.match(l)[0];
2589
- if (!(d.length > u.length)) {
2590
- var s = new RegExp("^" + l + "$"), m = d.replace(/\d/g, Ge);
2591
- s.test(m) && (u = m);
2592
- var g = this.getFormatFormat(r, i), b;
2593
- if (this.shouldTryNationalPrefixFormattingRule(r, {
2594
- international: i,
2595
- nationalPrefix: a
2596
- })) {
2597
- var f = g.replace(Yt, r.nationalPrefixFormattingRule());
2598
- if (pe(r.nationalPrefixFormattingRule()) === (a || "") + pe("$1") && (g = f, b = !0, a))
2599
- for (var S = a.length; S > 0; )
2600
- g = g.replace(/\d/, T), S--;
2601
- }
2602
- var y = u.replace(new RegExp(l), g).replace(new RegExp(Ge, "g"), T);
2603
- return b || (o ? y = ye(T, o.length) + " " + y : a && (y = ye(T, a.length) + this.getSeparatorAfterNationalPrefix(r) + y)), i && (y = Wt(y)), y;
2604
- }
2605
- }
2606
- }, {
2607
- key: "formatNextNationalNumberDigits",
2608
- value: function(r) {
2609
- var n = ui(this.populatedNationalNumberTemplate, this.populatedNationalNumberTemplatePosition, r);
2610
- if (!n) {
2611
- this.resetFormat();
2612
- return;
2613
- }
2614
- return this.populatedNationalNumberTemplate = n[0], this.populatedNationalNumberTemplatePosition = n[1], It(this.populatedNationalNumberTemplate, this.populatedNationalNumberTemplatePosition + 1);
2615
- }
2616
- }, {
2617
- key: "shouldTryNationalPrefixFormattingRule",
2618
- value: function(r, n) {
2619
- var d = n.international, i = n.nationalPrefix;
2620
- if (r.nationalPrefixFormattingRule()) {
2621
- var a = r.usesNationalPrefix();
2622
- if (a && i || !a && !d)
2623
- return !0;
2624
- }
2625
- }
2626
- }]);
2627
- })();
2628
- function $e(e) {
2629
- "@babel/helpers - typeof";
2630
- return $e = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
2631
- return typeof t;
2632
- } : function(t) {
2633
- return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
2634
- }, $e(e);
2635
- }
2636
- function rr(e, t) {
2637
- return Wi(e) || Ki(e, t) || Vi(e, t) || Hi();
2638
- }
2639
- function Hi() {
2640
- throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2641
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
2642
- }
2643
- function Vi(e, t) {
2644
- if (e) {
2645
- if (typeof e == "string") return Dt(e, t);
2646
- var r = {}.toString.call(e).slice(8, -1);
2647
- return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? Dt(e, t) : void 0;
2648
- }
2649
- }
2650
- function Dt(e, t) {
2651
- (t == null || t > e.length) && (t = e.length);
2652
- for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
2653
- return n;
2654
- }
2655
- function Ki(e, t) {
2656
- var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
2657
- if (r != null) {
2658
- var n, d, i, a, o = [], l = !0, u = !1;
2659
- try {
2660
- if (i = (r = r.call(e)).next, t !== 0) for (; !(l = (n = i.call(r)).done) && (o.push(n.value), o.length !== t); l = !0) ;
2661
- } catch (s) {
2662
- u = !0, d = s;
2663
- } finally {
2664
- try {
2665
- if (!l && r.return != null && (a = r.return(), Object(a) !== a)) return;
2666
- } finally {
2667
- if (u) throw d;
2668
- }
2669
- }
2670
- return o;
2671
- }
2672
- }
2673
- function Wi(e) {
2674
- if (Array.isArray(e)) return e;
2675
- }
2676
- function Yi(e, t) {
2677
- if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
2678
- }
2679
- function Xi(e, t) {
2680
- for (var r = 0; r < t.length; r++) {
2681
- var n = t[r];
2682
- n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, qi(n.key), n);
2683
- }
2684
- }
2685
- function Zi(e, t, r) {
2686
- return t && Xi(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
2687
- }
2688
- function qi(e) {
2689
- var t = Ji(e, "string");
2690
- return $e(t) == "symbol" ? t : t + "";
2691
- }
2692
- function Ji(e, t) {
2693
- if ($e(e) != "object" || !e) return e;
2694
- var r = e[Symbol.toPrimitive];
2695
- if (r !== void 0) {
2696
- var n = r.call(e, t);
2697
- if ($e(n) != "object") return n;
2698
- throw new TypeError("@@toPrimitive must return a primitive value.");
2699
- }
2700
- return String(e);
2701
- }
2702
- var zi = "[" + A + P + "]+", Qi = new RegExp("^" + zi + "$", "i"), ea = "(?:[" + Ne + "][" + A + P + "]*|[" + A + P + "]+)", ta = new RegExp("[^" + A + P + "]+.*$"), ra = /[^\d\[\]]/, na = /* @__PURE__ */ (function() {
2703
- function e(t) {
2704
- var r = t.defaultCountry, n = t.defaultCallingCode, d = t.metadata, i = t.onNationalSignificantNumberChange;
2705
- Yi(this, e), this.defaultCountry = r, this.defaultCallingCode = n, this.metadata = d, this.onNationalSignificantNumberChange = i;
2706
- }
2707
- return Zi(e, [{
2708
- key: "input",
2709
- value: function(r, n) {
2710
- var d = aa(r), i = rr(d, 2), a = i[0], o = i[1], l = pe(a), u;
2711
- return o && (n.digits || (n.startInternationalNumber(void 0, void 0), l || (u = !0))), l && this.inputDigits(l, n), {
2712
- digits: l,
2713
- justLeadingPlus: u
2714
- };
2715
- }
2716
- /**
2717
- * Inputs "next" phone number digits.
2718
- * @param {string} digits
2719
- * @return {string} [formattedNumber] Formatted national phone number (if it can be formatted at this stage). Returning `undefined` means "don't format the national phone number at this stage".
2720
- */
2721
- }, {
2722
- key: "inputDigits",
2723
- value: function(r, n) {
2724
- var d = n.digits, i = d.length < 3 && d.length + r.length >= 3;
2725
- if (n.appendDigits(r), i && this.extractIddPrefix(n), this.isWaitingForCountryCallingCode(n)) {
2726
- if (!this.extractCountryCallingCode(n))
2727
- return;
2728
- } else
2729
- n.appendNationalSignificantNumberDigits(r);
2730
- n.international || this.hasExtractedNationalSignificantNumber || this.extractNationalSignificantNumber(n.getNationalDigits(), function(a) {
2731
- return n.update(a);
2732
- });
2733
- }
2734
- }, {
2735
- key: "isWaitingForCountryCallingCode",
2736
- value: function(r) {
2737
- var n = r.international, d = r.callingCode;
2738
- return n && !d;
2739
- }
2740
- // Extracts a country calling code from a number
2741
- // being entered in internatonal format.
2742
- }, {
2743
- key: "extractCountryCallingCode",
2744
- value: function(r) {
2745
- var n = Ke("+" + r.getDigitsWithoutInternationalPrefix(), r.country, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata), d = n.countryCallingCode, i = n.number;
2746
- if (d)
2747
- return r.setCallingCode(d), r.update({
2748
- nationalSignificantNumber: i
2749
- }), !0;
2750
- }
2751
- }, {
2752
- key: "reset",
2753
- value: function(r) {
2754
- if (r) {
2755
- this.hasSelectedNumberingPlan = !0;
2756
- var n = r._nationalPrefixForParsing();
2757
- this.couldPossiblyExtractAnotherNationalSignificantNumber = n && ra.test(n);
2758
- } else
2759
- this.hasSelectedNumberingPlan = void 0, this.couldPossiblyExtractAnotherNationalSignificantNumber = void 0;
2760
- }
2761
- /**
2762
- * Extracts a national (significant) number from user input.
2763
- * Google's library is different in that it only applies `national_prefix_for_parsing`
2764
- * and doesn't apply `national_prefix_transform_rule` after that.
2765
- * https://github.com/google/libphonenumber/blob/a3d70b0487875475e6ad659af404943211d26456/java/libphonenumber/src/com/google/i18n/phonenumbers/AsYouTypeFormatter.java#L539
2766
- * @return {boolean} [extracted]
2767
- */
2768
- }, {
2769
- key: "extractNationalSignificantNumber",
2770
- value: function(r, n) {
2771
- if (this.hasSelectedNumberingPlan) {
2772
- var d = _e(r, this.metadata), i = d.nationalPrefix, a = d.nationalNumber, o = d.carrierCode;
2773
- if (a !== r)
2774
- return this.onExtractedNationalNumber(i, o, a, r, n), !0;
2775
- }
2776
- }
2777
- /**
2778
- * In Google's code this function is called "attempt to extract longer NDD".
2779
- * "Some national prefixes are a substring of others", they say.
2780
- * @return {boolean} [result] — Returns `true` if extracting a national prefix produced different results from what they were.
2781
- */
2782
- }, {
2783
- key: "extractAnotherNationalSignificantNumber",
2784
- value: function(r, n, d) {
2785
- if (!this.hasExtractedNationalSignificantNumber)
2786
- return this.extractNationalSignificantNumber(r, d);
2787
- if (this.couldPossiblyExtractAnotherNationalSignificantNumber) {
2788
- var i = _e(r, this.metadata), a = i.nationalPrefix, o = i.nationalNumber, l = i.carrierCode;
2789
- if (o !== n)
2790
- return this.onExtractedNationalNumber(a, l, o, r, d), !0;
2791
- }
2792
- }
2793
- }, {
2794
- key: "onExtractedNationalNumber",
2795
- value: function(r, n, d, i, a) {
2796
- var o = !1, l, u = i.lastIndexOf(d);
2797
- if (u < 0 || u !== i.length - d.length)
2798
- o = !0;
2799
- else {
2800
- var s = i.slice(0, u);
2801
- s && s !== r && (l = s);
2802
- }
2803
- a({
2804
- nationalPrefix: r,
2805
- carrierCode: n,
2806
- nationalSignificantNumber: d,
2807
- nationalSignificantNumberIsModified: o,
2808
- prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix: l
2809
- }), this.hasExtractedNationalSignificantNumber = !0, this.onNationalSignificantNumberChange();
2810
- }
2811
- }, {
2812
- key: "reExtractNationalSignificantNumber",
2813
- value: function(r) {
2814
- if (this.extractAnotherNationalSignificantNumber(r.getNationalDigits(), r.nationalSignificantNumber, function(n) {
2815
- return r.update(n);
2816
- }))
2817
- return !0;
2818
- if (this.extractIddPrefix(r))
2819
- return this.extractCallingCodeAndNationalSignificantNumber(r), !0;
2820
- if (this.fixMissingPlus(r))
2821
- return this.extractCallingCodeAndNationalSignificantNumber(r), !0;
2822
- }
2823
- }, {
2824
- key: "extractIddPrefix",
2825
- value: function(r) {
2826
- var n = r.international, d = r.IDDPrefix, i = r.digits;
2827
- if (r.nationalSignificantNumber, !(n || d)) {
2828
- var a = Ht(i, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata);
2829
- if (a !== void 0 && a !== i)
2830
- return r.update({
2831
- IDDPrefix: i.slice(0, i.length - a.length)
2832
- }), this.startInternationalNumber(r, {
2833
- country: void 0,
2834
- callingCode: void 0
2835
- }), !0;
2836
- }
2837
- }
2838
- }, {
2839
- key: "fixMissingPlus",
2840
- value: function(r) {
2841
- if (!r.international) {
2842
- var n = Kt(r.digits, r.country, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata), d = n.countryCallingCode;
2843
- if (d)
2844
- return r.update({
2845
- missingPlus: !0
2846
- }), this.startInternationalNumber(r, {
2847
- country: r.country,
2848
- callingCode: d
2849
- }), !0;
2850
- }
2851
- }
2852
- }, {
2853
- key: "startInternationalNumber",
2854
- value: function(r, n) {
2855
- var d = n.country, i = n.callingCode;
2856
- r.startInternationalNumber(d, i), r.nationalSignificantNumber && (r.resetNationalSignificantNumber(), this.onNationalSignificantNumberChange(), this.hasExtractedNationalSignificantNumber = void 0);
2857
- }
2858
- }, {
2859
- key: "extractCallingCodeAndNationalSignificantNumber",
2860
- value: function(r) {
2861
- this.extractCountryCallingCode(r) && this.extractNationalSignificantNumber(r.getNationalDigits(), function(n) {
2862
- return r.update(n);
2863
- });
2864
- }
2865
- }]);
2866
- })();
2867
- function da(e) {
2868
- var t = e.search(ea);
2869
- if (!(t < 0)) {
2870
- e = e.slice(t);
2871
- var r;
2872
- return e[0] === "+" && (r = !0, e = e.slice(1)), e = e.replace(ta, ""), r && (e = "+" + e), e;
2873
- }
2874
- }
2875
- function ia(e) {
2876
- var t = da(e) || "";
2877
- return t[0] === "+" ? [t.slice(1), !0] : [t];
2878
- }
2879
- function aa(e) {
2880
- var t = ia(e), r = rr(t, 2), n = r[0], d = r[1];
2881
- return Qi.test(n) || (n = ""), [n, d];
2882
- }
2883
- function se(e) {
2884
- "@babel/helpers - typeof";
2885
- return se = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
2886
- return typeof t;
2887
- } : function(t) {
2888
- return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
2889
- }, se(e);
2890
- }
2891
- function oa(e, t) {
2892
- return sa(e) || $a(e, t) || ua(e, t) || la();
2893
- }
2894
- function la() {
2895
- throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2896
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
2897
- }
2898
- function ua(e, t) {
2899
- if (e) {
2900
- if (typeof e == "string") return Lt(e, t);
2901
- var r = {}.toString.call(e).slice(8, -1);
2902
- return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? Lt(e, t) : void 0;
2903
- }
2904
- }
2905
- function Lt(e, t) {
2906
- (t == null || t > e.length) && (t = e.length);
2907
- for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
2908
- return n;
2909
- }
2910
- function $a(e, t) {
2911
- var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
2912
- if (r != null) {
2913
- var n, d, i, a, o = [], l = !0, u = !1;
2914
- try {
2915
- if (i = (r = r.call(e)).next, t !== 0) for (; !(l = (n = i.call(r)).done) && (o.push(n.value), o.length !== t); l = !0) ;
2916
- } catch (s) {
2917
- u = !0, d = s;
2918
- } finally {
2919
- try {
2920
- if (!l && r.return != null && (a = r.return(), Object(a) !== a)) return;
2921
- } finally {
2922
- if (u) throw d;
2923
- }
2924
- }
2925
- return o;
2926
- }
2927
- }
2928
- function sa(e) {
2929
- if (Array.isArray(e)) return e;
2930
- }
2931
- function ca(e, t) {
2932
- if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
2933
- }
2934
- function fa(e, t) {
2935
- for (var r = 0; r < t.length; r++) {
2936
- var n = t[r];
2937
- n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, ma(n.key), n);
2938
- }
2939
- }
2940
- function ha(e, t, r) {
2941
- return t && fa(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
2942
- }
2943
- function ma(e) {
2944
- var t = ga(e, "string");
2945
- return se(t) == "symbol" ? t : t + "";
2946
- }
2947
- function ga(e, t) {
2948
- if (se(e) != "object" || !e) return e;
2949
- var r = e[Symbol.toPrimitive];
2950
- if (r !== void 0) {
2951
- var n = r.call(e, t);
2952
- if (se(n) != "object") return n;
2953
- throw new TypeError("@@toPrimitive must return a primitive value.");
2954
- }
2955
- return String(e);
2956
- }
2957
- var nr = /* @__PURE__ */ (function() {
2958
- function e(t, r) {
2959
- ca(this, e), this.metadata = new v(r);
2960
- var n = this.getCountryAndCallingCode(t), d = oa(n, 2), i = d[0], a = d[1];
2961
- this.defaultCountry = i, this.defaultCallingCode = a, this.reset();
2962
- }
2963
- return ha(e, [{
2964
- key: "getCountryAndCallingCode",
2965
- value: function(r) {
2966
- var n, d;
2967
- return r && (M(r) ? (n = r.defaultCountry, d = r.defaultCallingCode) : n = r), n && !this.metadata.hasCountry(n) && (n = void 0), [n, d];
2968
- }
2969
- /**
2970
- * Inputs "next" phone number characters.
2971
- * @param {string} text
2972
- * @return {string} Formatted phone number characters that have been input so far.
2973
- */
2974
- }, {
2975
- key: "input",
2976
- value: function(r) {
2977
- var n = this.parser.input(r, this.state), d = n.digits, i = n.justLeadingPlus;
2978
- if (i)
2979
- this.formattedOutput = "+";
2980
- else if (d) {
2981
- this.determineTheCountryIfNeeded(), this.state.nationalSignificantNumber && this.formatter.narrowDownMatchingFormats(this.state);
2982
- var a;
2983
- if (this.metadata.hasSelectedNumberingPlan() && (a = this.formatter.format(d, this.state)), a === void 0 && this.parser.reExtractNationalSignificantNumber(this.state)) {
2984
- this.determineTheCountryIfNeeded();
2985
- var o = this.state.getNationalDigits();
2986
- o && (a = this.formatter.format(o, this.state));
2987
- }
2988
- this.formattedOutput = a ? this.getFullNumber(a) : this.getNonFormattedNumber();
2989
- }
2990
- return this.formattedOutput;
2991
- }
2992
- }, {
2993
- key: "reset",
2994
- value: function() {
2995
- var r = this;
2996
- return this.state = new ii({
2997
- onCountryChange: function(d) {
2998
- r.country = d;
2999
- },
3000
- onCallingCodeChange: function(d, i) {
3001
- r.metadata.selectNumberingPlan(i, d), r.formatter.reset(r.metadata.numberingPlan, r.state), r.parser.reset(r.metadata.numberingPlan);
3002
- }
3003
- }), this.formatter = new Ui({
3004
- state: this.state,
3005
- metadata: this.metadata
3006
- }), this.parser = new na({
3007
- defaultCountry: this.defaultCountry,
3008
- defaultCallingCode: this.defaultCallingCode,
3009
- metadata: this.metadata,
3010
- state: this.state,
3011
- onNationalSignificantNumberChange: function() {
3012
- r.determineTheCountryIfNeeded(), r.formatter.reset(r.metadata.numberingPlan, r.state);
3013
- }
3014
- }), this.state.reset({
3015
- country: this.defaultCountry,
3016
- callingCode: this.defaultCallingCode
3017
- }), this.formattedOutput = "", this;
3018
- }
3019
- /**
3020
- * Returns `true` if the phone number is being input in international format.
3021
- * In other words, returns `true` if and only if the parsed phone number starts with a `"+"`.
3022
- * @return {boolean}
3023
- */
3024
- }, {
3025
- key: "isInternational",
3026
- value: function() {
3027
- return this.state.international;
3028
- }
3029
- /**
3030
- * Returns the "calling code" part of the phone number when it's being input
3031
- * in an international format.
3032
- * If no valid calling code has been entered so far, returns `undefined`.
3033
- * @return {string} [callingCode]
3034
- */
3035
- }, {
3036
- key: "getCallingCode",
3037
- value: function() {
3038
- if (this.isInternational())
3039
- return this.state.callingCode;
3040
- }
3041
- // A legacy alias.
3042
- }, {
3043
- key: "getCountryCallingCode",
3044
- value: function() {
3045
- return this.getCallingCode();
3046
- }
3047
- /**
3048
- * Returns a two-letter country code of the phone number.
3049
- * Returns `undefined` for "non-geographic" phone numbering plans.
3050
- * Returns `undefined` if no phone number has been input yet.
3051
- * @return {string} [country]
3052
- */
3053
- }, {
3054
- key: "getCountry",
3055
- value: function() {
3056
- var r = this.state.digits;
3057
- if (r)
3058
- return this._getCountry();
3059
- }
3060
- /**
3061
- * Returns a two-letter country code of the phone number.
3062
- * Returns `undefined` for "non-geographic" phone numbering plans.
3063
- * @return {string} [country]
3064
- */
3065
- }, {
3066
- key: "_getCountry",
3067
- value: function() {
3068
- var r = this.state.country;
3069
- return r;
3070
- }
3071
- }, {
3072
- key: "determineTheCountryIfNeeded",
3073
- value: function() {
3074
- (!this.state.country || this.isCountryCallingCodeAmbiguous()) && this.determineTheCountry();
3075
- }
3076
- // Prepends `+CountryCode ` in case of an international phone number
3077
- }, {
3078
- key: "getFullNumber",
3079
- value: function(r) {
3080
- var n = this;
3081
- if (this.isInternational()) {
3082
- var d = function(o) {
3083
- return n.formatter.getInternationalPrefixBeforeCountryCallingCode(n.state, {
3084
- spacing: !!o
3085
- }) + o;
3086
- }, i = this.state.callingCode;
3087
- return d(i ? r ? "".concat(i, " ").concat(r) : i : "".concat(this.state.getDigitsWithoutInternationalPrefix()));
3088
- }
3089
- return r;
3090
- }
3091
- }, {
3092
- key: "getNonFormattedNationalNumberWithPrefix",
3093
- value: function() {
3094
- var r = this.state, n = r.nationalSignificantNumber, d = r.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix, i = r.nationalPrefix, a = n, o = d || i;
3095
- return o && (a = o + a), a;
3096
- }
3097
- }, {
3098
- key: "getNonFormattedNumber",
3099
- value: function() {
3100
- var r = this.state.nationalSignificantNumberIsModified;
3101
- return this.getFullNumber(r ? this.state.getNationalDigits() : this.getNonFormattedNationalNumberWithPrefix());
3102
- }
3103
- }, {
3104
- key: "getNonFormattedTemplate",
3105
- value: function() {
3106
- var r = this.getNonFormattedNumber();
3107
- if (r)
3108
- return r.replace(/[\+\d]/g, T);
3109
- }
3110
- }, {
3111
- key: "isCountryCallingCodeAmbiguous",
3112
- value: function() {
3113
- var r = this.state.callingCode, n = this.metadata.getCountryCodesForCallingCode(r);
3114
- return n && n.length > 1;
3115
- }
3116
- // Determines the exact country of the phone number
3117
- // entered so far based on the country phone code
3118
- // and the national phone number.
3119
- }, {
3120
- key: "determineTheCountry",
3121
- value: function() {
3122
- this.state.setCountry(Ve(this.isInternational() ? this.state.callingCode : this.defaultCallingCode, {
3123
- nationalNumber: this.state.nationalSignificantNumber,
3124
- metadata: this.metadata
3125
- }));
3126
- }
3127
- /**
3128
- * Returns a E.164 phone number value for the user's input.
3129
- *
3130
- * For example, for country `"US"` and input `"(222) 333-4444"`
3131
- * it will return `"+12223334444"`.
3132
- *
3133
- * For international phone number input, it will also auto-correct
3134
- * some minor errors such as using a national prefix when writing
3135
- * an international phone number. For example, if the user inputs
3136
- * `"+44 0 7400 000000"` then it will return an auto-corrected
3137
- * `"+447400000000"` phone number value.
3138
- *
3139
- * Will return `undefined` if no digits have been input,
3140
- * or when inputting a phone number in national format and no
3141
- * default country or default "country calling code" have been set.
3142
- *
3143
- * @return {string} [value]
3144
- */
3145
- }, {
3146
- key: "getNumberValue",
3147
- value: function() {
3148
- var r = this.state, n = r.digits, d = r.callingCode, i = r.country, a = r.nationalSignificantNumber;
3149
- if (n) {
3150
- if (this.isInternational())
3151
- return d ? "+" + d + a : "+" + n;
3152
- if (i || d) {
3153
- var o = i ? this.metadata.countryCallingCode() : d;
3154
- return "+" + o + a;
3155
- }
3156
- }
3157
- }
3158
- /**
3159
- * Returns an instance of `PhoneNumber` class.
3160
- * Will return `undefined` if no national (significant) number
3161
- * digits have been entered so far, or if no `defaultCountry` has been
3162
- * set and the user enters a phone number not in international format.
3163
- */
3164
- }, {
3165
- key: "getNumber",
3166
- value: function() {
3167
- var r = this.state, n = r.nationalSignificantNumber, d = r.carrierCode, i = r.callingCode, a = this._getCountry();
3168
- if (n && !(!a && !i)) {
3169
- if (a && a === this.defaultCountry) {
3170
- var o = new v(this.metadata.metadata);
3171
- o.selectNumberingPlan(a);
3172
- var l = o.numberingPlan.callingCode(), u = this.metadata.getCountryCodesForCallingCode(l);
3173
- if (u.length > 1) {
3174
- var s = Vt(n, {
3175
- countries: u,
3176
- metadata: this.metadata.metadata
3177
- });
3178
- s && (a = s);
3179
- }
3180
- }
3181
- var m = new Jt(a || i, n, this.metadata.metadata);
3182
- return d && (m.carrierCode = d), m;
3183
- }
3184
- }
3185
- /**
3186
- * Returns `true` if the phone number is "possible".
3187
- * Is just a shortcut for `PhoneNumber.isPossible()`.
3188
- * @return {boolean}
3189
- */
3190
- }, {
3191
- key: "isPossible",
3192
- value: function() {
3193
- var r = this.getNumber();
3194
- return r ? r.isPossible() : !1;
3195
- }
3196
- /**
3197
- * Returns `true` if the phone number is "valid".
3198
- * Is just a shortcut for `PhoneNumber.isValid()`.
3199
- * @return {boolean}
3200
- */
3201
- }, {
3202
- key: "isValid",
3203
- value: function() {
3204
- var r = this.getNumber();
3205
- return r ? r.isValid() : !1;
3206
- }
3207
- /**
3208
- * @deprecated
3209
- * This method is used in `react-phone-number-input/source/input-control.js`
3210
- * in versions before `3.0.16`.
3211
- */
3212
- }, {
3213
- key: "getNationalNumber",
3214
- value: function() {
3215
- return this.state.nationalSignificantNumber;
3216
- }
3217
- /**
3218
- * Returns the phone number characters entered by the user.
3219
- * @return {string}
3220
- */
3221
- }, {
3222
- key: "getChars",
3223
- value: function() {
3224
- return (this.state.international ? "+" : "") + this.state.digits;
3225
- }
3226
- /**
3227
- * Returns the template for the formatted phone number.
3228
- * @return {string}
3229
- */
3230
- }, {
3231
- key: "getTemplate",
3232
- value: function() {
3233
- return this.formatter.getTemplate(this.state) || this.getNonFormattedTemplate() || "";
3234
- }
3235
- }]);
3236
- })();
3237
- function ya() {
3238
- return jt(Zd, arguments);
3239
- }
3240
- function va() {
3241
- return jt(Qd, arguments);
3242
- }
3243
- function Y(e) {
3244
- return nr.call(this, e, Mt);
3245
- }
3246
- Y.prototype = Object.create(nr.prototype, {});
3247
- Y.prototype.constructor = Y;
3248
- function K(e, t, r = {}) {
3249
- const { required: n = !1 } = r;
3250
- if (!e || e.trim() === "")
3251
- return n ? {
81
+ function T(a, s, v = {}) {
82
+ const { required: t = !1 } = v;
83
+ if (!a || a.trim() === "")
84
+ return t ? {
3252
85
  isValid: !1,
3253
86
  errorMessage: "Phone number is required",
3254
87
  errorCode: "EMPTY"
3255
88
  } : { isValid: !0 };
3256
- const d = e.trim(), i = (d.match(/\d/g) || []).length;
3257
- if (i === 0)
89
+ const n = a.trim(), h = (n.match(/\d/g) || []).length;
90
+ if (h === 0)
3258
91
  return {
3259
92
  isValid: !1,
3260
93
  errorMessage: "Phone number must contain digits",
3261
94
  errorCode: "INVALID_FORMAT"
3262
95
  };
3263
- if (i < 7)
96
+ if (h < 7)
3264
97
  return {
3265
98
  isValid: !1,
3266
99
  errorMessage: "Phone number is too short",
3267
100
  errorCode: "TOO_SHORT"
3268
101
  };
3269
102
  try {
3270
- const a = new Y(t);
3271
- a.input(d);
3272
- const o = a.getNumber();
3273
- if (!o)
103
+ const C = new X(s);
104
+ C.input(n);
105
+ const p = C.getNumber();
106
+ if (!p)
3274
107
  return {
3275
108
  isValid: !1,
3276
- errorMessage: `Invalid format for ${L[t]?.name || "selected country"}`,
109
+ errorMessage: `Invalid format for ${E[s]?.name || "selected country"}`,
3277
110
  errorCode: "INVALID_FORMAT"
3278
111
  };
3279
- if (!o.isPossible())
112
+ if (!p.isPossible())
3280
113
  return {
3281
114
  isValid: !1,
3282
- errorMessage: `Not a possible phone number for ${L[t]?.name || "this country"}`,
115
+ errorMessage: `Not a possible phone number for ${E[s]?.name || "this country"}`,
3283
116
  errorCode: "NOT_POSSIBLE"
3284
117
  };
3285
- const l = va(
3286
- o.nationalNumber || d,
3287
- t
118
+ const w = ea(
119
+ p.nationalNumber || n,
120
+ s
3288
121
  );
3289
- if (l) {
3290
- const u = L[t]?.name || "this country", m = {
122
+ if (w) {
123
+ const S = E[s]?.name || "this country", k = {
3291
124
  INVALID_COUNTRY: { message: "Invalid country code", code: "INVALID_COUNTRY" },
3292
- TOO_SHORT: { message: `Phone number is too short for ${u}`, code: "TOO_SHORT" },
3293
- INVALID_LENGTH: { message: `Invalid phone number length for ${u}`, code: "INVALID_LENGTH" },
3294
- TOO_LONG: { message: `Phone number is too long for ${u}`, code: "TOO_LONG" }
3295
- }[l] || { message: "Invalid phone number", code: "INVALID_FORMAT" };
125
+ TOO_SHORT: { message: `Phone number is too short for ${S}`, code: "TOO_SHORT" },
126
+ INVALID_LENGTH: { message: `Invalid phone number length for ${S}`, code: "INVALID_LENGTH" },
127
+ TOO_LONG: { message: `Phone number is too long for ${S}`, code: "TOO_LONG" }
128
+ }[w] || { message: "Invalid phone number", code: "INVALID_FORMAT" };
3296
129
  return {
3297
130
  isValid: !1,
3298
- errorMessage: m.message,
3299
- errorCode: m.code
131
+ errorMessage: k.message,
132
+ errorCode: k.code
3300
133
  };
3301
134
  }
3302
135
  return {
3303
136
  isValid: !0,
3304
- e164: o.number,
3305
- national: o.formatNational(),
3306
- international: o.formatInternational(),
3307
- country: o.country
137
+ e164: p.number,
138
+ national: p.formatNational(),
139
+ international: p.formatInternational(),
140
+ country: p.country
3308
141
  };
3309
- } catch (a) {
3310
- return console.error("Phone validation error:", a), {
142
+ } catch (C) {
143
+ return console.error("Phone validation error:", C), {
3311
144
  isValid: !1,
3312
145
  errorMessage: "Invalid phone number format",
3313
146
  errorCode: "INVALID_FORMAT"
3314
147
  };
3315
148
  }
3316
149
  }
3317
- function pa(e, t = "US") {
3318
- if (!e) return "";
150
+ function oa(a, s = "US") {
151
+ if (!a) return "";
3319
152
  try {
3320
- const r = new Y(t);
3321
- r.input(e);
3322
- const n = r.getNumber();
3323
- return n ? n.formatNational() : e.replace(/^\+[0-9]{1,3}/, "").trim();
3324
- } catch (r) {
3325
- return console.error("Error formatting phone number:", r), e || "";
153
+ const v = new X(s);
154
+ v.input(a);
155
+ const t = v.getNumber();
156
+ return t ? t.formatNational() : a.replace(/^\+[0-9]{1,3}/, "").trim();
157
+ } catch (v) {
158
+ return console.error("Error formatting phone number:", v), a || "";
3326
159
  }
3327
160
  }
3328
- function Oe(e, t = "US") {
3329
- if (!e)
161
+ function J(a, s = "US") {
162
+ if (!a)
3330
163
  return { formatted: "", numberObject: void 0 };
3331
164
  try {
3332
- const r = e.replace(/(?!^\+)[^0-9]/g, ""), n = new Y(t), d = n.input(r), i = n.getNumber();
3333
- return { formatted: d, numberObject: i };
3334
- } catch (r) {
3335
- return console.error("Error formatting phone number:", r), { formatted: e, numberObject: void 0 };
165
+ const v = a.replace(/(?!^\+)[^0-9]/g, ""), t = new X(s), n = t.input(v), h = t.getNumber();
166
+ return { formatted: n, numberObject: h };
167
+ } catch (v) {
168
+ return console.error("Error formatting phone number:", v), { formatted: a, numberObject: void 0 };
3336
169
  }
3337
170
  }
3338
- function kt(e) {
3339
- if (!(!e || !e.startsWith("+")))
171
+ function ce(a) {
172
+ if (!(!a || !a.startsWith("+")))
3340
173
  try {
3341
- const t = ya(e);
3342
- if (t?.country)
3343
- return t.country;
174
+ const s = aa(a);
175
+ if (s?.country)
176
+ return s.country;
3344
177
  } catch {
3345
178
  }
3346
179
  }
3347
- function ba(e) {
180
+ function sa(a) {
3348
181
  return {
3349
182
  US: "(555) 123-4567",
3350
183
  CA: "(555) 123-4567",
@@ -3356,18 +189,18 @@ function ba(e) {
3356
189
  JP: "90-1234-5678",
3357
190
  BR: "(11) 98765-4321",
3358
191
  MX: "55 1234 5678"
3359
- }[e] || L[e]?.dialCode || "";
192
+ }[a] || E[a]?.dialCode || "";
3360
193
  }
3361
- function Ca(e) {
3362
- return ba(e) || "Enter phone number";
194
+ function ra(a) {
195
+ return sa(a) || "Enter phone number";
3363
196
  }
3364
- const Na = ["src", "alt"], Pa = { class: "sl-font-medium" }, Sa = { class: "sl-bg-white dark:sl-bg-slate-800 sl-px-2 sl-py-2 sl-border-b sl-border-gray-100 dark:sl-border-slate-700" }, xa = { class: "sl-max-h-56 sl-overflow-y-auto sl-overscroll-contain" }, Ea = { class: "sl-flex sl-items-center sl-gap-3" }, wa = { class: "sl-w-5 sl-h-5 sl-rounded-full sl-overflow-hidden sl-flex-shrink-0 sl-bg-gray-100 sl-shadow-sm" }, Ia = ["src", "alt"], Ta = { class: "sl-font-medium sl-w-12" }, Aa = {
197
+ const na = ["src", "alt"], da = { class: "sl-font-medium" }, ia = { class: "sl-bg-white dark:sl-bg-slate-800 sl-px-2 sl-py-2 sl-border-b sl-border-gray-100 dark:sl-border-slate-700" }, ua = { class: "sl-max-h-56 sl-overflow-y-auto sl-overscroll-contain" }, ca = { class: "sl-flex sl-items-center sl-gap-3" }, ma = { class: "sl-w-5 sl-h-5 sl-rounded-full sl-overflow-hidden sl-flex-shrink-0 sl-bg-gray-100 sl-shadow-sm" }, fa = ["src", "alt"], va = { class: "sl-font-medium sl-w-12" }, ga = {
3365
198
  key: 0,
3366
199
  class: "sl-px-3 sl-py-4 sl-text-sm sl-text-gray-500 dark:sl-text-gray-300 sl-text-center"
3367
- }, Fa = ["id", "name", "value", "placeholder", "autocomplete", "disabled", "aria-describedby", "aria-invalid", "onKeydown"], Oa = {
200
+ }, ha = ["id", "name", "value", "placeholder", "autocomplete", "disabled", "aria-describedby", "aria-invalid", "onKeydown"], Ca = {
3368
201
  key: 0,
3369
202
  class: "sl-flex sl-items-center sl-pr-3 sl-pointer-events-none"
3370
- }, _a = /* @__PURE__ */ Cr({
203
+ }, ya = /* @__PURE__ */ Pe({
3371
204
  __name: "PhoneInput",
3372
205
  props: {
3373
206
  name: {
@@ -3444,208 +277,208 @@ const Na = ["src", "alt"], Pa = { class: "sl-font-medium" }, Sa = { class: "sl-b
3444
277
  }
3445
278
  },
3446
279
  emits: ["update:modelValue", "update:value", "update:country", "update-metadata", "submit", "focus", "blur", "validated"],
3447
- setup(e, { expose: t, emit: r }) {
3448
- const n = e, d = r, i = Nr("phoneInput", {}), a = E(null), o = E(null), l = E(null), u = E(null), s = E({ top: 0, left: 0 }), m = x(() => kr(n.name)), g = Pr(n, "name"), b = x(() => n.modelValue ?? n.value ?? ""), f = E(
3449
- n.defaultCountry || i.defaultCountry || "US"
3450
- ), S = E(""), y = E(""), C = E(""), j = E(""), k = E(!1), Ye = E(!1), {
3451
- meta: X,
3452
- errorMessage: dr,
3453
- handleBlur: ir,
3454
- handleChange: Xe,
3455
- setTouched: ar
3456
- } = Dr(g, n.rules, {
3457
- initialValue: b.value
3458
- }), Ze = x(() => L[f.value] || L.US), Pe = x({
3459
- get: () => Ze.value,
3460
- set: ($) => {
3461
- $ && $.code !== f.value && tt($.code);
3462
- }
3463
- }), or = x(() => Yr(f.value)), lr = x(() => n.placeholder || Ca(f.value)), Se = x(() => j.value || dr.value), fe = x(() => !!Se.value && (X.touched || n.showErrors)), ur = x(() => (fe.value || k.value && n.colorfulValidation) && (X.touched || n.showErrors)), qe = x(() => k.value && !!y.value && !j.value && n.colorfulValidation), $r = x(() => n.disabled ? "sl-ring-gray-200 dark:sl-ring-slate-600" : fe.value ? "sl-ring-red-500 focus-within:sl-ring-red-500" : qe.value && n.colorfulValidation ? "sl-ring-green-500 focus-within:sl-ring-green-500" : "sl-ring-gray-300 dark:sl-ring-slate-600 focus-within:sl-ring-primary-600"), sr = x(() => ({
3464
- top: `${s.value.top}px`,
3465
- left: `${s.value.left}px`
3466
- })), Je = async () => {
3467
- if (await rt(), l.value) {
3468
- const $ = l.value.getBoundingClientRect();
3469
- s.value = {
3470
- top: $.bottom + window.scrollY + 4,
280
+ setup(a, { expose: s, emit: v }) {
281
+ const t = a, n = v, h = Le("phoneInput", {}), C = f(null), p = f(null), w = f(null), S = f(null), U = f({ top: 0, left: 0 }), k = u(() => Qe(t.name)), j = Oe(t, "name"), Q = u(() => t.modelValue ?? t.value ?? ""), r = f(
282
+ t.defaultCountry || h.defaultCountry || "US"
283
+ ), V = f(""), c = f(""), m = f(""), F = f(""), N = f(!1), ee = f(!1), {
284
+ meta: A,
285
+ errorMessage: me,
286
+ handleBlur: fe,
287
+ handleChange: ae,
288
+ setTouched: ve
289
+ } = qe(j, t.rules, {
290
+ initialValue: Q.value
291
+ }), le = u(() => E[r.value] || E.US), z = u({
292
+ get: () => le.value,
293
+ set: (e) => {
294
+ e && e.code !== r.value && de(e.code);
295
+ }
296
+ }), ge = u(() => ta(r.value)), he = u(() => t.placeholder || ra(r.value)), $ = u(() => F.value || me.value), H = u(() => !!$.value && (A.touched || t.showErrors)), Ce = u(() => (H.value || N.value && t.colorfulValidation) && (A.touched || t.showErrors)), te = u(() => N.value && !!c.value && !F.value && t.colorfulValidation), ye = u(() => t.disabled ? "sl-ring-gray-200 dark:sl-ring-slate-600" : H.value ? "sl-ring-red-500 focus-within:sl-ring-red-500" : te.value && t.colorfulValidation ? "sl-ring-green-500 focus-within:sl-ring-green-500" : "sl-ring-gray-300 dark:sl-ring-slate-600 focus-within:sl-ring-primary-600"), pe = u(() => ({
297
+ top: `${U.value.top}px`,
298
+ left: `${U.value.left}px`
299
+ })), oe = async () => {
300
+ if (await ie(), w.value) {
301
+ const e = w.value.getBoundingClientRect();
302
+ U.value = {
303
+ top: e.bottom + window.scrollY + 4,
3471
304
  // 4px gap, account for scroll
3472
- left: $.left + window.scrollX
305
+ left: e.left + window.scrollX
3473
306
  };
3474
307
  }
3475
- }, he = () => {
3476
- G.value && Je();
3477
- }, G = E(!1), cr = () => {
3478
- G.value = !G.value, G.value && Je();
308
+ }, G = () => {
309
+ P.value && oe();
310
+ }, P = f(!1), be = () => {
311
+ P.value = !P.value, P.value && oe();
3479
312
  };
3480
- Z(Pe, () => {
3481
- G.value = !1;
313
+ M(z, () => {
314
+ P.value = !1;
3482
315
  });
3483
- const ze = ($) => {
3484
- const h = $.target;
3485
- l.value && !l.value.contains(h) && !h.closest('[role="listbox"]') && (G.value = !1);
3486
- }, fr = x(() => {
3487
- const $ = [];
3488
- return Se.value && $.push(`${m.value}-error`), n.hint && $.push(`${m.value}-hint`), $.length > 0 ? $.join(" ") : void 0;
3489
- }), Qe = x(() => {
3490
- let $ = [...nt];
3491
- if (i.preferredCountries?.length) {
3492
- const c = $.filter(
3493
- (w) => i.preferredCountries.includes(w.code)
3494
- ), N = $.filter(
3495
- (w) => !i.preferredCountries.includes(w.code)
316
+ const se = (e) => {
317
+ const o = e.target;
318
+ w.value && !w.value.contains(o) && !o.closest('[role="listbox"]') && (P.value = !1);
319
+ }, we = u(() => {
320
+ const e = [];
321
+ return $.value && e.push(`${k.value}-error`), t.hint && e.push(`${k.value}-hint`), e.length > 0 ? e.join(" ") : void 0;
322
+ }), re = u(() => {
323
+ let e = [...ue];
324
+ if (h.preferredCountries?.length) {
325
+ const l = e.filter(
326
+ (g) => h.preferredCountries.includes(g.code)
327
+ ), d = e.filter(
328
+ (g) => !h.preferredCountries.includes(g.code)
3496
329
  );
3497
- $ = [...c, ...N];
3498
- }
3499
- if (i.excludedCountries?.length && ($ = $.filter(
3500
- (c) => !i.excludedCountries.includes(c.code)
3501
- )), !S.value) return $;
3502
- const h = S.value.toLowerCase();
3503
- return $.filter(
3504
- (c) => c.name.toLowerCase().includes(h) || c.dialCode.includes(h) || c.code.toLowerCase().includes(h)
330
+ e = [...l, ...d];
331
+ }
332
+ if (h.excludedCountries?.length && (e = e.filter(
333
+ (l) => !h.excludedCountries.includes(l.code)
334
+ )), !V.value) return e;
335
+ const o = V.value.toLowerCase();
336
+ return e.filter(
337
+ (l) => l.name.toLowerCase().includes(o) || l.dialCode.includes(o) || l.code.toLowerCase().includes(o)
3505
338
  );
3506
- }), et = ($) => `https://flagcdn.com/w40/${$.toLowerCase()}.png`, hr = ($) => {
3507
- const h = $.target;
3508
- h.src = 'data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%239ca3af"%3E%3Cpath d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z"/%3E%3C/svg%3E';
3509
- }, tt = ($) => {
3510
- if (f.value = $, S.value = "", d("update:country", $), Ye.value && y.value) {
3511
- const { formatted: h, numberObject: c } = Oe(y.value, $);
3512
- y.value = h, c?.number && (C.value = c.number, B(c.number));
3513
- const N = K(y.value, $, { required: n.required });
3514
- me(N);
3515
- }
3516
- rt(() => {
3517
- a.value?.focus();
339
+ }), ne = (e) => `https://flagcdn.com/w40/${e.toLowerCase()}.png`, xe = (e) => {
340
+ const o = e.target;
341
+ o.src = 'data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%239ca3af"%3E%3Cpath d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z"/%3E%3C/svg%3E';
342
+ }, de = (e) => {
343
+ if (r.value = e, V.value = "", n("update:country", e), ee.value && c.value) {
344
+ const { formatted: o, numberObject: l } = J(c.value, e);
345
+ c.value = o, l?.number && (m.value = l.number, L(l.number));
346
+ const d = T(c.value, e, { required: t.required });
347
+ K(d);
348
+ }
349
+ ie(() => {
350
+ C.value?.focus();
3518
351
  });
3519
- }, me = ($) => {
3520
- k.value = $.isValid, j.value = $.errorMessage || "", d("validated", $), d("update-metadata", {
3521
- dirty: X.dirty,
3522
- valid: $.isValid,
3523
- e164: $.e164
352
+ }, K = (e) => {
353
+ N.value = e.isValid, F.value = e.errorMessage || "", n("validated", e), n("update-metadata", {
354
+ dirty: A.dirty,
355
+ valid: e.isValid,
356
+ e164: e.e164
3524
357
  });
3525
- }, B = ($) => {
3526
- d("update:modelValue", $), d("update:value", $);
3527
- }, mr = ($) => {
3528
- const h = $.target, c = h.value;
3529
- if (nt.some(
3530
- (ge) => ge.name.toLowerCase() === c.toLowerCase() || ge.code.toLowerCase() === c.toLowerCase()
358
+ }, L = (e) => {
359
+ n("update:modelValue", e), n("update:value", e);
360
+ }, Ie = (e) => {
361
+ const o = e.target, l = o.value;
362
+ if (ue.some(
363
+ (q) => q.name.toLowerCase() === l.toLowerCase() || q.code.toLowerCase() === l.toLowerCase()
3531
364
  )) return;
3532
- if (!c.trim()) {
3533
- y.value = "", C.value = "", B(""), Xe($);
3534
- const ge = K("", f.value, { required: n.required });
3535
- me(ge);
365
+ if (!l.trim()) {
366
+ c.value = "", m.value = "", L(""), ae(e);
367
+ const q = T("", r.value, { required: t.required });
368
+ K(q);
3536
369
  return;
3537
370
  }
3538
- const { formatted: w, numberObject: R } = Oe(c, f.value);
3539
- y.value = w, h.value = w, R?.number ? (C.value = R.number, B(R.number)) : (C.value = "", B(""));
3540
- const br = K(w, f.value, { required: n.required });
3541
- me(br), Xe($);
3542
- }, gr = async ($) => {
3543
- $.preventDefault();
3544
- const h = $.clipboardData?.getData("text") || "";
3545
- if (!h) return;
3546
- if (n.autoDetectCountry && h.startsWith("+")) {
3547
- const R = kt(h);
3548
- R && R !== f.value && (f.value = R, d("update:country", R));
3549
- }
3550
- const { formatted: c, numberObject: N } = Oe(h, f.value);
3551
- y.value = c, a.value && (a.value.value = c), N?.number ? (C.value = N.number, B(N.number)) : (C.value = "", B(""));
3552
- const w = K(c, f.value, { required: n.required });
3553
- me(w);
3554
- }, yr = ($) => {
3555
- ir($), ar(!0), d("blur");
3556
- }, vr = () => {
3557
- d("focus");
3558
- }, pr = () => {
3559
- X.valid && k.value && C.value && d("submit");
3560
- }, xe = ($) => {
3561
- if (!$) {
3562
- y.value = "", C.value = "", k.value = !n.required, j.value = "";
371
+ const { formatted: g, numberObject: x } = J(l, r.value);
372
+ c.value = g, o.value = g, x?.number ? (m.value = x.number, L(x.number)) : (m.value = "", L(""));
373
+ const Ve = T(g, r.value, { required: t.required });
374
+ K(Ve), ae(e);
375
+ }, Ee = async (e) => {
376
+ e.preventDefault();
377
+ const o = e.clipboardData?.getData("text") || "";
378
+ if (!o) return;
379
+ if (t.autoDetectCountry && o.startsWith("+")) {
380
+ const x = ce(o);
381
+ x && x !== r.value && (r.value = x, n("update:country", x));
382
+ }
383
+ const { formatted: l, numberObject: d } = J(o, r.value);
384
+ c.value = l, C.value && (C.value.value = l), d?.number ? (m.value = d.number, L(d.number)) : (m.value = "", L(""));
385
+ const g = T(l, r.value, { required: t.required });
386
+ K(g);
387
+ }, Se = (e) => {
388
+ fe(e), ve(!0), n("blur");
389
+ }, ke = () => {
390
+ n("focus");
391
+ }, Ne = () => {
392
+ A.valid && N.value && m.value && n("submit");
393
+ }, _ = (e) => {
394
+ if (!e) {
395
+ c.value = "", m.value = "", N.value = !t.required, F.value = "";
3563
396
  return;
3564
397
  }
3565
- if (n.autoDetectCountry && $.startsWith("+")) {
3566
- const N = kt($);
3567
- N && (f.value = N, d("update:country", N));
398
+ if (t.autoDetectCountry && e.startsWith("+")) {
399
+ const d = ce(e);
400
+ d && (r.value = d, n("update:country", d));
3568
401
  }
3569
- const h = pa($, f.value);
3570
- y.value = h, C.value = $.startsWith("+") ? $ : "";
3571
- const c = K(h, f.value, { required: n.required });
3572
- k.value = c.isValid, c.e164 && (C.value = c.e164);
402
+ const o = oa(e, r.value);
403
+ c.value = o, m.value = e.startsWith("+") ? e : "";
404
+ const l = T(o, r.value, { required: t.required });
405
+ N.value = l.isValid, l.e164 && (m.value = l.e164);
3573
406
  };
3574
- return t({
3575
- focus: () => a.value?.focus(),
3576
- blur: () => a.value?.blur(),
3577
- validate: () => K(y.value, f.value, { required: n.required }),
3578
- getE164: () => C.value,
3579
- getCountry: () => f.value,
3580
- setCountry: ($) => tt($)
3581
- }), Sr(() => {
3582
- Ye.value = !0, xe(b.value), window.addEventListener("scroll", he, !0), window.addEventListener("resize", he), document.addEventListener("click", ze);
3583
- }), xr(() => {
3584
- window.removeEventListener("scroll", he, !0), window.removeEventListener("resize", he), document.removeEventListener("click", ze);
3585
- }), Z(() => n.modelValue, ($) => {
3586
- $ !== C.value && xe($);
3587
- }, { immediate: !1 }), Z(() => n.value, ($) => {
3588
- $ !== C.value && xe($);
3589
- }, { immediate: !1 }), Z(() => n.defaultCountry, ($) => {
3590
- $ && !y.value && (f.value = $);
3591
- }), Z(S, () => {
3592
- }), ($, h) => (I(), U(Lr, {
3593
- id: m.value,
3594
- name: g.value,
3595
- label: e.label,
3596
- optional: !e.required,
3597
- "error-message": Se.value,
3598
- "success-message": e.successMessage,
3599
- "is-valid": k.value,
3600
- "is-touched": O(X).touched,
3601
- "show-errors": e.showErrors,
3602
- "show-valid-check": e.colorfulValidation,
3603
- "tertiary-label": e.tertiaryLabel,
3604
- disabled: e.disabled,
3605
- "disabled-message": e.disabledMessage,
3606
- "colorful-validation": e.colorfulValidation
407
+ return s({
408
+ focus: () => C.value?.focus(),
409
+ blur: () => C.value?.blur(),
410
+ validate: () => T(c.value, r.value, { required: t.required }),
411
+ getE164: () => m.value,
412
+ getCountry: () => r.value,
413
+ setCountry: (e) => de(e)
414
+ }), Re(() => {
415
+ ee.value = !0, _(Q.value), window.addEventListener("scroll", G, !0), window.addEventListener("resize", G), document.addEventListener("click", se);
416
+ }), Te(() => {
417
+ window.removeEventListener("scroll", G, !0), window.removeEventListener("resize", G), document.removeEventListener("click", se);
418
+ }), M(() => t.modelValue, (e) => {
419
+ e !== m.value && _(e);
420
+ }, { immediate: !1 }), M(() => t.value, (e) => {
421
+ e !== m.value && _(e);
422
+ }, { immediate: !1 }), M(() => t.defaultCountry, (e) => {
423
+ e && !c.value && (r.value = e);
424
+ }), M(V, () => {
425
+ }), (e, o) => (y(), O(Xe, {
426
+ id: k.value,
427
+ name: j.value,
428
+ label: a.label,
429
+ optional: !a.required,
430
+ "error-message": $.value,
431
+ "success-message": a.successMessage,
432
+ "is-valid": N.value,
433
+ "is-touched": b(A).touched,
434
+ "show-errors": a.showErrors,
435
+ "show-valid-check": a.colorfulValidation,
436
+ "tertiary-label": a.tertiaryLabel,
437
+ disabled: a.disabled,
438
+ "disabled-message": a.disabledMessage,
439
+ "colorful-validation": a.colorfulValidation
3607
440
  }, {
3608
- default: H(() => [
3609
- p("div", {
3610
- class: D(["sl-flex sl-rounded-md sl-ring-1 sl-ring-inset", [
3611
- $r.value,
3612
- e.disabled ? "sl-bg-gray-50 dark:sl-bg-slate-800 sl-shadow-none" : "sl-bg-white dark:sl-bg-slate-800 sl-shadow-sm focus-within:sl-ring-2 focus-within:sl-ring-inset"
441
+ default: R(() => [
442
+ i("div", {
443
+ class: I(["sl-flex sl-rounded-md sl-ring-1 sl-ring-inset", [
444
+ ye.value,
445
+ a.disabled ? "sl-bg-gray-50 dark:sl-bg-slate-800 sl-shadow-none" : "sl-bg-white dark:sl-bg-slate-800 sl-shadow-sm focus-within:sl-ring-2 focus-within:sl-ring-inset"
3613
446
  ]])
3614
447
  }, [
3615
- q(O(Br), {
3616
- modelValue: Pe.value,
3617
- "onUpdate:modelValue": h[3] || (h[3] = (c) => Pe.value = c),
3618
- disabled: e.disabled,
448
+ B(b(Ye), {
449
+ modelValue: z.value,
450
+ "onUpdate:modelValue": o[3] || (o[3] = (l) => z.value = l),
451
+ disabled: a.disabled,
3619
452
  as: "div",
3620
453
  class: "sl-relative sl-flex-shrink-0"
3621
454
  }, {
3622
- default: H(() => [
3623
- p("div", {
455
+ default: R(() => [
456
+ i("div", {
3624
457
  ref_key: "countryButtonRef",
3625
- ref: l,
458
+ ref: w,
3626
459
  class: "sl-h-full"
3627
460
  }, [
3628
- q(O(Ur), {
3629
- disabled: e.disabled,
3630
- class: D(["sl-flex sl-items-center sl-gap-1.5 sl-h-full sl-pl-3 sl-pr-2 sl-border-r sl-text-sm focus:sl-outline-none sl-transition-colors", [
3631
- e.disabled ? "sl-text-gray-400 dark:sl-text-gray-300 sl-cursor-not-allowed sl-border-gray-200 dark:sl-border-slate-600 sl-bg-transparent" : "sl-text-gray-700 dark:sl-text-gray-100 sl-border-gray-300 dark:sl-border-slate-600 hover:sl-bg-gray-50 dark:hover:sl-bg-slate-700 sl-cursor-pointer"
461
+ B(b(je), {
462
+ disabled: a.disabled,
463
+ class: I(["sl-flex sl-items-center sl-gap-1.5 sl-h-full sl-pl-3 sl-pr-2 sl-border-r sl-text-sm focus:sl-outline-none sl-transition-colors", [
464
+ a.disabled ? "sl-text-gray-400 dark:sl-text-gray-300 sl-cursor-not-allowed sl-border-gray-200 dark:sl-border-slate-600 sl-bg-transparent" : "sl-text-gray-700 dark:sl-text-gray-100 sl-border-gray-300 dark:sl-border-slate-600 hover:sl-bg-gray-50 dark:hover:sl-bg-slate-700 sl-cursor-pointer"
3632
465
  ]]),
3633
466
  "data-testid": "country-selector",
3634
- onClick: cr
467
+ onClick: be
3635
468
  }, {
3636
- default: H(() => [
3637
- p("span", {
3638
- class: D(["sl-w-5 sl-h-5 sl-rounded-full sl-overflow-hidden sl-flex-shrink-0 sl-shadow-sm", e.disabled ? "sl-opacity-60 sl-bg-gray-200" : "sl-bg-gray-100"])
469
+ default: R(() => [
470
+ i("span", {
471
+ class: I(["sl-w-5 sl-h-5 sl-rounded-full sl-overflow-hidden sl-flex-shrink-0 sl-shadow-sm", a.disabled ? "sl-opacity-60 sl-bg-gray-200" : "sl-bg-gray-100"])
3639
472
  }, [
3640
- p("img", {
3641
- src: et(f.value),
3642
- alt: Ze.value.name,
3643
- class: D(["sl-w-full sl-h-full sl-object-cover", { "sl-grayscale sl-opacity-75": e.disabled }]),
3644
- onError: hr
3645
- }, null, 42, Na)
473
+ i("img", {
474
+ src: ne(r.value),
475
+ alt: le.value.name,
476
+ class: I(["sl-w-full sl-h-full sl-object-cover", { "sl-grayscale sl-opacity-75": a.disabled }]),
477
+ onError: xe
478
+ }, null, 42, na)
3646
479
  ], 2),
3647
- p("span", Pa, Ee(or.value), 1),
3648
- e.disabled ? J("", !0) : (I(), U(O(Wr), {
480
+ i("span", da, W(ge.value), 1),
481
+ a.disabled ? D("", !0) : (y(), O(b(_e), {
3649
482
  key: 0,
3650
483
  class: "sl-h-4 sl-w-4 sl-text-gray-400",
3651
484
  "aria-hidden": "true"
@@ -3654,8 +487,8 @@ const Na = ["src", "alt"], Pa = { class: "sl-font-medium" }, Sa = { class: "sl-b
3654
487
  _: 1
3655
488
  }, 8, ["disabled", "class"])
3656
489
  ], 512),
3657
- (I(), U(wr, { to: "body" }, [
3658
- q(Ir, {
490
+ (y(), O(Me, { to: "body" }, [
491
+ B(Be, {
3659
492
  "enter-active-class": "sl-transition sl-duration-100 sl-ease-out",
3660
493
  "enter-from-class": "sl-transform sl-scale-95 sl-opacity-0",
3661
494
  "enter-to-class": "sl-transform sl-scale-100 sl-opacity-100",
@@ -3663,75 +496,75 @@ const Na = ["src", "alt"], Pa = { class: "sl-font-medium" }, Sa = { class: "sl-b
3663
496
  "leave-from-class": "sl-transform sl-scale-100 sl-opacity-100",
3664
497
  "leave-to-class": "sl-transform sl-scale-95 sl-opacity-0"
3665
498
  }, {
3666
- default: H(() => [
3667
- q(O(Hr), {
499
+ default: R(() => [
500
+ B(b(ze), {
3668
501
  ref_key: "dropdownRef",
3669
- ref: u,
3670
- style: Tr([sr.value, { "z-index": "9999" }]),
502
+ ref: S,
503
+ style: De([pe.value, { "z-index": "9999" }]),
3671
504
  class: "sl-fixed sl-w-72 sl-rounded-lg sl-bg-white dark:sl-bg-slate-800 sl-text-sm sl-shadow-xl sl-ring-1 sl-ring-black dark:sl-ring-slate-600 sl-ring-opacity-5 focus:sl-outline-none sl-overflow-hidden"
3672
505
  }, {
3673
- default: H(() => [
3674
- p("div", Sa, [
3675
- Ar(p("input", {
506
+ default: R(() => [
507
+ i("div", ia, [
508
+ Ue(i("input", {
3676
509
  ref_key: "searchInputRef",
3677
- ref: o,
3678
- "onUpdate:modelValue": h[0] || (h[0] = (c) => S.value = c),
510
+ ref: p,
511
+ "onUpdate:modelValue": o[0] || (o[0] = (l) => V.value = l),
3679
512
  type: "text",
3680
513
  class: "sl-w-full sl-px-3 sl-py-1.5 sl-text-sm sl-border sl-border-gray-300 dark:sl-border-slate-600 sl-rounded-md sl-bg-white dark:sl-bg-slate-700 sl-text-gray-900 dark:sl-text-gray-100 focus:sl-outline-none focus:sl-ring-2 focus:sl-ring-primary-500 focus:sl-border-primary-500",
3681
514
  placeholder: "Search countries...",
3682
- onClick: h[1] || (h[1] = we(() => {
515
+ onClick: o[1] || (o[1] = Z(() => {
3683
516
  }, ["stop"])),
3684
- onKeydown: h[2] || (h[2] = we(() => {
517
+ onKeydown: o[2] || (o[2] = Z(() => {
3685
518
  }, ["stop"]))
3686
519
  }, null, 544), [
3687
- [Fr, S.value]
520
+ [Fe, V.value]
3688
521
  ])
3689
522
  ]),
3690
- p("div", xa, [
3691
- (I(!0), z(Or, null, _r(Qe.value, (c) => (I(), U(O(Vr), {
3692
- key: c.code,
3693
- value: c,
523
+ i("div", ua, [
524
+ (y(!0), Y(He, null, Ge(re.value, (l) => (y(), O(b($e), {
525
+ key: l.code,
526
+ value: l,
3694
527
  as: "template"
3695
528
  }, {
3696
- default: H(({ active: N, selected: w }) => [
3697
- p("li", {
3698
- class: D([
529
+ default: R(({ active: d, selected: g }) => [
530
+ i("li", {
531
+ class: I([
3699
532
  "sl-relative sl-cursor-pointer sl-select-none sl-py-2 sl-pl-3 sl-pr-9",
3700
- N ? "sl-bg-primary-600 sl-text-white" : "sl-text-gray-900 dark:sl-text-gray-100"
533
+ d ? "sl-bg-primary-600 sl-text-white" : "sl-text-gray-900 dark:sl-text-gray-100"
3701
534
  ]),
3702
535
  "data-testid": "country-option"
3703
536
  }, [
3704
- p("div", Ea, [
3705
- p("span", wa, [
3706
- p("img", {
3707
- src: et(c.code),
3708
- alt: c.name,
537
+ i("div", ca, [
538
+ i("span", ma, [
539
+ i("img", {
540
+ src: ne(l.code),
541
+ alt: l.name,
3709
542
  class: "sl-w-full sl-h-full sl-object-cover",
3710
543
  loading: "lazy"
3711
- }, null, 8, Ia)
544
+ }, null, 8, fa)
3712
545
  ]),
3713
- p("span", Ta, Ee(c.dialCode), 1),
3714
- p("span", {
3715
- class: D(["sl-truncate", w ? "sl-font-medium" : "sl-font-normal"])
3716
- }, Ee(c.name), 3)
546
+ i("span", va, W(l.dialCode), 1),
547
+ i("span", {
548
+ class: I(["sl-truncate", g ? "sl-font-medium" : "sl-font-normal"])
549
+ }, W(l.name), 3)
3717
550
  ]),
3718
- w ? (I(), z("span", {
551
+ g ? (y(), Y("span", {
3719
552
  key: 0,
3720
- class: D([
553
+ class: I([
3721
554
  "sl-absolute sl-inset-y-0 sl-right-0 sl-flex sl-items-center sl-pr-4",
3722
- N ? "sl-text-white" : "sl-text-primary-600"
555
+ d ? "sl-text-white" : "sl-text-primary-600"
3723
556
  ])
3724
557
  }, [
3725
- q(O(Mr), {
558
+ B(b(We), {
3726
559
  class: "sl-h-5 sl-w-5",
3727
560
  "aria-hidden": "true"
3728
561
  })
3729
- ], 2)) : J("", !0)
562
+ ], 2)) : D("", !0)
3730
563
  ], 2)
3731
564
  ]),
3732
565
  _: 2
3733
566
  }, 1032, ["value"]))), 128)),
3734
- Qe.value.length === 0 ? (I(), z("li", Aa, " No countries found ")) : J("", !0)
567
+ re.value.length === 0 ? (y(), Y("li", ga, " No countries found ")) : D("", !0)
3735
568
  ])
3736
569
  ]),
3737
570
  _: 1
@@ -3743,51 +576,50 @@ const Na = ["src", "alt"], Pa = { class: "sl-font-medium" }, Sa = { class: "sl-b
3743
576
  ]),
3744
577
  _: 1
3745
578
  }, 8, ["modelValue", "disabled"]),
3746
- p("input", {
579
+ i("input", {
3747
580
  ref_key: "inputRef",
3748
- ref: a,
3749
- id: m.value,
3750
- name: g.value,
581
+ ref: C,
582
+ id: k.value,
583
+ name: j.value,
3751
584
  type: "tel",
3752
- value: y.value,
3753
- placeholder: e.disabled ? "" : lr.value,
3754
- autocomplete: e.autoComplete,
585
+ value: c.value,
586
+ placeholder: a.disabled ? "" : he.value,
587
+ autocomplete: a.autoComplete,
3755
588
  inputmode: "tel",
3756
589
  enterkeyhint: "go",
3757
- disabled: e.disabled,
3758
- "aria-describedby": fr.value,
3759
- "aria-invalid": fe.value,
3760
- class: D(["sl-block sl-flex-1 sl-min-w-0 sl-border-0 sl-bg-transparent sl-py-2 sl-px-3 focus:sl-ring-0 focus:sl-outline-none sm:sl-text-sm sm:sl-leading-6", [
3761
- e.disabled ? "sl-text-gray-400 dark:sl-text-gray-300 sl-cursor-not-allowed sl-placeholder:text-gray-300 dark:sl-placeholder:text-gray-500" : "sl-text-gray-800 dark:sl-text-gray-100 sl-placeholder:text-gray-400 dark:sl-placeholder:text-gray-400"
590
+ disabled: a.disabled,
591
+ "aria-describedby": we.value,
592
+ "aria-invalid": H.value,
593
+ class: I(["sl-block sl-flex-1 sl-min-w-0 sl-border-0 sl-bg-transparent sl-py-2 sl-px-3 focus:sl-ring-0 focus:sl-outline-none sm:sl-text-sm sm:sl-leading-6", [
594
+ a.disabled ? "sl-text-gray-400 dark:sl-text-gray-300 sl-cursor-not-allowed sl-placeholder:text-gray-300 dark:sl-placeholder:text-gray-500" : "sl-text-gray-800 dark:sl-text-gray-100 sl-placeholder:text-gray-400 dark:sl-placeholder:text-gray-400"
3762
595
  ]]),
3763
- onInput: mr,
3764
- onBlur: yr,
3765
- onFocus: vr,
3766
- onKeydown: Rr(we(pr, ["prevent"]), ["enter"]),
3767
- onPaste: gr,
596
+ onInput: Ie,
597
+ onBlur: Se,
598
+ onFocus: ke,
599
+ onKeydown: Ke(Z(Ne, ["prevent"]), ["enter"]),
600
+ onPaste: Ee,
3768
601
  "data-testid": "phone-input"
3769
- }, null, 42, Fa),
3770
- ur.value ? (I(), z("div", Oa, [
3771
- fe.value ? (I(), U(O(jr), {
602
+ }, null, 42, ha),
603
+ Ce.value ? (y(), Y("div", Ca, [
604
+ H.value ? (y(), O(b(Ze), {
3772
605
  key: 0,
3773
606
  class: "sl-h-5 sl-w-5 sl-text-red-500",
3774
607
  "aria-hidden": "true",
3775
608
  "data-testid": "error-icon"
3776
- })) : qe.value ? (I(), U(O(Gr), {
609
+ })) : te.value ? (y(), O(b(Je), {
3777
610
  key: 1,
3778
611
  class: "sl-h-5 sl-w-5 sl-text-green-500",
3779
612
  "aria-hidden": "true",
3780
613
  "data-testid": "success-icon"
3781
- })) : J("", !0)
3782
- ])) : J("", !0),
3783
- Er($.$slots, "input-right", {}, void 0, !0)
614
+ })) : D("", !0)
615
+ ])) : D("", !0),
616
+ Ae(e.$slots, "input-right", {}, void 0, !0)
3784
617
  ], 2)
3785
618
  ]),
3786
619
  _: 3
3787
620
  }, 8, ["id", "name", "label", "optional", "error-message", "success-message", "is-valid", "is-touched", "show-errors", "show-valid-check", "tertiary-label", "disabled", "disabled-message", "colorful-validation"]));
3788
621
  }
3789
- }), Va = /* @__PURE__ */ Kr(_a, [["__scopeId", "data-v-7a799fd8"]]);
622
+ }), Pa = /* @__PURE__ */ la(ya, [["__scopeId", "data-v-7a799fd8"]]);
3790
623
  export {
3791
- Va as default
624
+ Pa as default
3792
625
  };
3793
- //# sourceMappingURL=PhoneInput.js.map