@alfalab/core-components 41.7.0-beta.0 → 41.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (534) hide show
  1. package/README.md +1 -1
  2. package/alert/cssm/index.module.css +1 -1
  3. package/alert/esm/index.css +1 -1
  4. package/alert/index.css +1 -1
  5. package/alert/modern/index.css +1 -1
  6. package/calendar/Component.desktop.d.ts +4 -0
  7. package/calendar/Component.desktop.js +2 -2
  8. package/calendar/Component.responsive.js +1 -1
  9. package/calendar/components/calendar-mobile/Component.js +1 -1
  10. package/calendar/components/calendar-mobile/index.d.ts +1 -1
  11. package/calendar/components/calendar-mobile/index.js +1 -1
  12. package/calendar/components/period-slider/Component.d.ts +4 -0
  13. package/calendar/components/period-slider/Component.js +13 -5
  14. package/calendar/components/period-slider/index.css +3 -1
  15. package/calendar/cssm/Component.desktop.d.ts +4 -0
  16. package/calendar/cssm/Component.desktop.js +2 -2
  17. package/calendar/cssm/components/period-slider/Component.d.ts +4 -0
  18. package/calendar/cssm/components/period-slider/Component.js +12 -4
  19. package/calendar/cssm/components/period-slider/index.module.css +3 -1
  20. package/calendar/esm/Component.desktop.d.ts +4 -0
  21. package/calendar/esm/Component.desktop.js +2 -2
  22. package/calendar/esm/Component.responsive.js +1 -1
  23. package/calendar/esm/components/calendar-mobile/Component.js +1 -1
  24. package/calendar/esm/components/calendar-mobile/index.d.ts +1 -1
  25. package/calendar/esm/components/calendar-mobile/index.js +1 -1
  26. package/calendar/esm/components/period-slider/Component.d.ts +4 -0
  27. package/calendar/esm/components/period-slider/Component.js +13 -5
  28. package/calendar/esm/components/period-slider/index.css +3 -1
  29. package/calendar/esm/index.js +1 -1
  30. package/calendar/esm/mobile.js +1 -1
  31. package/calendar/esm/responsive.d.ts +1 -1
  32. package/calendar/esm/responsive.js +1 -1
  33. package/calendar/index.js +1 -1
  34. package/calendar/mobile.js +1 -1
  35. package/calendar/modern/Component.desktop.d.ts +4 -0
  36. package/calendar/modern/Component.desktop.js +2 -2
  37. package/calendar/modern/Component.responsive.js +1 -1
  38. package/calendar/modern/components/calendar-mobile/Component.js +1 -1
  39. package/calendar/modern/components/calendar-mobile/index.d.ts +1 -1
  40. package/calendar/modern/components/calendar-mobile/index.js +1 -1
  41. package/calendar/modern/components/period-slider/Component.d.ts +4 -0
  42. package/calendar/modern/components/period-slider/Component.js +13 -5
  43. package/calendar/modern/components/period-slider/index.css +3 -1
  44. package/calendar/modern/index.js +1 -1
  45. package/calendar/modern/mobile.js +1 -1
  46. package/calendar/modern/responsive.d.ts +1 -1
  47. package/calendar/modern/responsive.js +1 -1
  48. package/calendar/responsive.d.ts +1 -1
  49. package/calendar/responsive.js +1 -1
  50. package/calendar-range/utils.js +1 -3
  51. package/confirmation/component.desktop.js +1 -1
  52. package/confirmation/component.mobile.js +1 -1
  53. package/confirmation/component.responsive.js +1 -1
  54. package/confirmation/components/base-confirmation/component.js +1 -1
  55. package/confirmation/components/base-confirmation/index.js +1 -1
  56. package/confirmation/components/header/index.css +2 -2
  57. package/confirmation/components/index.js +1 -1
  58. package/confirmation/components/screens/index.js +1 -1
  59. package/confirmation/components/screens/initial/component.js +1 -1
  60. package/confirmation/components/screens/initial/countdown-section.js +1 -1
  61. package/confirmation/components/screens/initial/index.js +1 -1
  62. package/confirmation/cssm/components/header/index.module.css +2 -2
  63. package/confirmation/desktop.js +1 -1
  64. package/confirmation/esm/component.desktop.js +1 -1
  65. package/confirmation/esm/component.mobile.js +1 -1
  66. package/confirmation/esm/component.responsive.js +1 -1
  67. package/confirmation/esm/components/base-confirmation/component.js +1 -1
  68. package/confirmation/esm/components/base-confirmation/index.js +1 -1
  69. package/confirmation/esm/components/header/index.css +2 -2
  70. package/confirmation/esm/components/index.js +1 -1
  71. package/confirmation/esm/components/screens/index.js +1 -1
  72. package/confirmation/esm/components/screens/initial/component.js +1 -1
  73. package/confirmation/esm/components/screens/initial/countdown-section.js +1 -1
  74. package/confirmation/esm/components/screens/initial/index.js +1 -1
  75. package/confirmation/esm/desktop.js +1 -1
  76. package/confirmation/esm/index.js +1 -1
  77. package/confirmation/esm/mobile.js +1 -1
  78. package/confirmation/esm/responsive.js +1 -1
  79. package/confirmation/index.js +1 -1
  80. package/confirmation/mobile.js +1 -1
  81. package/confirmation/modern/component.desktop.js +1 -1
  82. package/confirmation/modern/component.mobile.js +1 -1
  83. package/confirmation/modern/component.responsive.js +1 -1
  84. package/confirmation/modern/components/base-confirmation/component.js +1 -1
  85. package/confirmation/modern/components/base-confirmation/index.js +1 -1
  86. package/confirmation/modern/components/header/index.css +2 -2
  87. package/confirmation/modern/components/index.js +1 -1
  88. package/confirmation/modern/components/screens/index.js +1 -1
  89. package/confirmation/modern/components/screens/initial/component.js +1 -1
  90. package/confirmation/modern/components/screens/initial/countdown-section.js +1 -1
  91. package/confirmation/modern/components/screens/initial/index.js +1 -1
  92. package/confirmation/modern/desktop.js +1 -1
  93. package/confirmation/modern/index.js +1 -1
  94. package/confirmation/modern/mobile.js +1 -1
  95. package/confirmation/modern/responsive.js +1 -1
  96. package/confirmation/responsive.js +1 -1
  97. package/gallery/Component.js +2 -2
  98. package/gallery/components/header/Component.js +1 -1
  99. package/gallery/components/header/buttons.js +1 -1
  100. package/gallery/components/header/index.js +1 -1
  101. package/gallery/components/image-viewer/component.js +1 -1
  102. package/gallery/components/image-viewer/index.js +1 -1
  103. package/gallery/components/image-viewer/slide.js +1 -1
  104. package/gallery/components/index.js +2 -2
  105. package/gallery/esm/Component.js +2 -2
  106. package/gallery/esm/components/header/Component.js +1 -1
  107. package/gallery/esm/components/header/buttons.js +1 -1
  108. package/gallery/esm/components/header/index.js +1 -1
  109. package/gallery/esm/components/image-viewer/component.js +1 -1
  110. package/gallery/esm/components/image-viewer/index.js +1 -1
  111. package/gallery/esm/components/image-viewer/slide.js +1 -1
  112. package/gallery/esm/components/index.js +2 -2
  113. package/gallery/esm/index.js +2 -2
  114. package/gallery/index.js +2 -2
  115. package/gallery/modern/Component.js +2 -2
  116. package/gallery/modern/components/header/Component.js +1 -1
  117. package/gallery/modern/components/header/buttons.js +1 -1
  118. package/gallery/modern/components/header/index.js +1 -1
  119. package/gallery/modern/components/image-viewer/component.js +1 -1
  120. package/gallery/modern/components/image-viewer/index.js +1 -1
  121. package/gallery/modern/components/image-viewer/slide.js +1 -1
  122. package/gallery/modern/components/index.js +2 -2
  123. package/gallery/modern/index.js +2 -2
  124. package/grid/Component.js +1 -1
  125. package/grid/col/Component.js +1 -1
  126. package/grid/col/index.js +1 -1
  127. package/grid/esm/Component.js +1 -1
  128. package/grid/esm/col/Component.js +1 -1
  129. package/grid/esm/col/index.js +1 -1
  130. package/grid/esm/index.js +1 -1
  131. package/grid/esm/row/Component.js +1 -1
  132. package/grid/esm/row/index.js +1 -1
  133. package/grid/index.js +1 -1
  134. package/grid/modern/Component.js +1 -1
  135. package/grid/modern/col/Component.js +1 -1
  136. package/grid/modern/col/index.js +1 -1
  137. package/grid/modern/index.js +1 -1
  138. package/grid/modern/row/Component.js +1 -1
  139. package/grid/modern/row/index.js +1 -1
  140. package/grid/row/Component.js +1 -1
  141. package/grid/row/index.js +1 -1
  142. package/intl-phone-input/component.js +1 -2
  143. package/intl-phone-input/cssm/component.js +1 -2
  144. package/intl-phone-input/esm/component.js +1 -2
  145. package/intl-phone-input/modern/component.js +1 -2
  146. package/package.json +24 -29
  147. package/phone-input/utils/index.js +3 -1
  148. package/picker-button/Component.d.ts +1 -1
  149. package/picker-button/Component.responsive.d.ts +1 -1
  150. package/picker-button/typings-5e1b8383.d.ts +1 -1
  151. package/pure-cell/{component-c814e23a.js → component-0cb09281.js} +5 -5
  152. package/pure-cell/component.js +2 -2
  153. package/pure-cell/components/addon/component.js +1 -1
  154. package/pure-cell/components/addon/index.js +1 -1
  155. package/pure-cell/components/amount/component.js +1 -1
  156. package/pure-cell/components/amount/index.js +1 -1
  157. package/pure-cell/components/amount-title/component.js +1 -1
  158. package/pure-cell/components/amount-title/index.js +1 -1
  159. package/pure-cell/components/category/component.js +1 -1
  160. package/pure-cell/components/category/index.js +1 -1
  161. package/pure-cell/components/content/component.js +2 -2
  162. package/pure-cell/components/content/index.d.ts +1 -1
  163. package/pure-cell/components/content/index.js +2 -2
  164. package/pure-cell/components/footer/component.js +1 -1
  165. package/pure-cell/components/footer/index.js +1 -1
  166. package/pure-cell/components/footer-button/component.js +1 -1
  167. package/pure-cell/components/footer-button/index.js +1 -1
  168. package/pure-cell/components/footer-text/component.js +1 -1
  169. package/pure-cell/components/footer-text/index.js +1 -1
  170. package/pure-cell/components/graphics/component.js +1 -1
  171. package/pure-cell/components/graphics/index.css +1 -0
  172. package/pure-cell/components/graphics/index.js +1 -1
  173. package/pure-cell/components/main/component.js +2 -2
  174. package/pure-cell/components/main/index.d.ts +1 -1
  175. package/pure-cell/components/main/index.js +2 -2
  176. package/pure-cell/components/text/component.js +2 -2
  177. package/pure-cell/components/text/index.d.ts +1 -1
  178. package/pure-cell/components/text/index.js +2 -2
  179. package/pure-cell/cssm/{component-d38262a4.js → component-ecc61e99.js} +4 -4
  180. package/pure-cell/cssm/component.js +1 -1
  181. package/pure-cell/cssm/components/content/component.js +1 -1
  182. package/pure-cell/cssm/components/content/index.d.ts +1 -1
  183. package/pure-cell/cssm/components/content/index.js +1 -1
  184. package/pure-cell/cssm/components/graphics/index.module.css +1 -0
  185. package/pure-cell/cssm/components/main/component.js +1 -1
  186. package/pure-cell/cssm/components/main/index.d.ts +1 -1
  187. package/pure-cell/cssm/components/main/index.js +1 -1
  188. package/pure-cell/cssm/components/text/component.js +1 -1
  189. package/pure-cell/cssm/components/text/index.d.ts +1 -1
  190. package/pure-cell/cssm/components/text/index.js +1 -1
  191. package/pure-cell/cssm/index.js +1 -1
  192. package/pure-cell/esm/{component-acf8e7a1.js → component-ccba3d4f.js} +5 -5
  193. package/pure-cell/esm/component.js +2 -2
  194. package/pure-cell/esm/components/addon/component.js +1 -1
  195. package/pure-cell/esm/components/addon/index.js +1 -1
  196. package/pure-cell/esm/components/amount/component.js +1 -1
  197. package/pure-cell/esm/components/amount/index.js +1 -1
  198. package/pure-cell/esm/components/amount-title/component.js +1 -1
  199. package/pure-cell/esm/components/amount-title/index.js +1 -1
  200. package/pure-cell/esm/components/category/component.js +1 -1
  201. package/pure-cell/esm/components/category/index.js +1 -1
  202. package/pure-cell/esm/components/content/component.js +2 -2
  203. package/pure-cell/esm/components/content/index.d.ts +1 -1
  204. package/pure-cell/esm/components/content/index.js +2 -2
  205. package/pure-cell/esm/components/footer/component.js +1 -1
  206. package/pure-cell/esm/components/footer/index.js +1 -1
  207. package/pure-cell/esm/components/footer-button/component.js +1 -1
  208. package/pure-cell/esm/components/footer-button/index.js +1 -1
  209. package/pure-cell/esm/components/footer-text/component.js +1 -1
  210. package/pure-cell/esm/components/footer-text/index.js +1 -1
  211. package/pure-cell/esm/components/graphics/component.js +1 -1
  212. package/pure-cell/esm/components/graphics/index.css +1 -0
  213. package/pure-cell/esm/components/graphics/index.js +1 -1
  214. package/pure-cell/esm/components/main/component.js +2 -2
  215. package/pure-cell/esm/components/main/index.d.ts +1 -1
  216. package/pure-cell/esm/components/main/index.js +2 -2
  217. package/pure-cell/esm/components/text/component.js +2 -2
  218. package/pure-cell/esm/components/text/index.d.ts +1 -1
  219. package/pure-cell/esm/components/text/index.js +2 -2
  220. package/pure-cell/esm/index.js +2 -2
  221. package/pure-cell/index.js +2 -2
  222. package/pure-cell/modern/{component-3a3eeab9.js → component-80cf784f.js} +5 -5
  223. package/pure-cell/modern/component.js +2 -2
  224. package/pure-cell/modern/components/addon/component.js +1 -1
  225. package/pure-cell/modern/components/addon/index.js +1 -1
  226. package/pure-cell/modern/components/amount/component.js +1 -1
  227. package/pure-cell/modern/components/amount/index.js +1 -1
  228. package/pure-cell/modern/components/amount-title/component.js +1 -1
  229. package/pure-cell/modern/components/amount-title/index.js +1 -1
  230. package/pure-cell/modern/components/category/component.js +1 -1
  231. package/pure-cell/modern/components/category/index.js +1 -1
  232. package/pure-cell/modern/components/content/component.js +2 -2
  233. package/pure-cell/modern/components/content/index.d.ts +1 -1
  234. package/pure-cell/modern/components/content/index.js +2 -2
  235. package/pure-cell/modern/components/footer/component.js +1 -1
  236. package/pure-cell/modern/components/footer/index.js +1 -1
  237. package/pure-cell/modern/components/footer-button/component.js +1 -1
  238. package/pure-cell/modern/components/footer-button/index.js +1 -1
  239. package/pure-cell/modern/components/footer-text/component.js +1 -1
  240. package/pure-cell/modern/components/footer-text/index.js +1 -1
  241. package/pure-cell/modern/components/graphics/component.js +1 -1
  242. package/pure-cell/modern/components/graphics/index.css +1 -0
  243. package/pure-cell/modern/components/graphics/index.js +1 -1
  244. package/pure-cell/modern/components/main/component.js +2 -2
  245. package/pure-cell/modern/components/main/index.d.ts +1 -1
  246. package/pure-cell/modern/components/main/index.js +2 -2
  247. package/pure-cell/modern/components/text/component.js +2 -2
  248. package/pure-cell/modern/components/text/index.d.ts +1 -1
  249. package/pure-cell/modern/components/text/index.js +2 -2
  250. package/pure-cell/modern/index.js +2 -2
  251. package/select/{Component-a25d5492.js → Component-00c64376.js} +1 -1
  252. package/select/Component.js +1 -1
  253. package/select/Component.responsive.js +3 -3
  254. package/select/components/base-select/Component.js +1 -1
  255. package/select/components/base-select/index.js +1 -1
  256. package/select/components/base-select-mobile/Component.js +1 -1
  257. package/select/components/base-select-mobile/index.js +1 -1
  258. package/select/components/index.js +3 -3
  259. package/select/components/select-mobile/Component.js +3 -3
  260. package/select/components/select-mobile/index.d.ts +1 -1
  261. package/select/components/select-mobile/index.js +3 -3
  262. package/select/components/select-modal-mobile/Component.js +3 -3
  263. package/select/components/select-modal-mobile/index.d.ts +1 -1
  264. package/select/components/select-modal-mobile/index.js +3 -3
  265. package/select/esm/{Component-cffa12f3.js → Component-2ff63ae2.js} +2 -2
  266. package/select/esm/Component.js +1 -1
  267. package/select/esm/Component.responsive.js +3 -3
  268. package/select/esm/components/base-select/Component.js +1 -1
  269. package/select/esm/components/base-select/index.js +1 -1
  270. package/select/esm/components/base-select-mobile/Component.js +1 -1
  271. package/select/esm/components/base-select-mobile/index.js +1 -1
  272. package/select/esm/components/index.js +3 -3
  273. package/select/esm/components/select-mobile/Component.js +3 -3
  274. package/select/esm/components/select-mobile/index.d.ts +1 -1
  275. package/select/esm/components/select-mobile/index.js +3 -3
  276. package/select/esm/components/select-modal-mobile/Component.js +3 -3
  277. package/select/esm/components/select-modal-mobile/index.d.ts +1 -1
  278. package/select/esm/components/select-modal-mobile/index.js +3 -3
  279. package/select/esm/index-3885b0d7.d.ts +1 -1
  280. package/select/esm/index.js +3 -3
  281. package/select/esm/presets/index.js +3 -3
  282. package/select/esm/presets/useLazyLoading/hook.js +1 -1
  283. package/select/esm/presets/useSelectWithApply/hook.js +3 -3
  284. package/select/esm/presets/useSelectWithApply/options-list-with-apply/Component.js +3 -3
  285. package/select/esm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  286. package/select/esm/presets/useSelectWithApply/options-list-with-apply/index.js +3 -3
  287. package/select/esm/responsive.js +3 -3
  288. package/select/index-3885b0d7.d.ts +1 -1
  289. package/select/index.js +3 -3
  290. package/select/modern/{Component-83661e44.js → Component-0b711513.js} +2 -2
  291. package/select/modern/Component.js +1 -1
  292. package/select/modern/Component.responsive.js +3 -3
  293. package/select/modern/components/base-select/Component.js +1 -1
  294. package/select/modern/components/base-select/index.js +1 -1
  295. package/select/modern/components/base-select-mobile/Component.js +1 -1
  296. package/select/modern/components/base-select-mobile/index.js +1 -1
  297. package/select/modern/components/index.js +3 -3
  298. package/select/modern/components/select-mobile/Component.js +3 -3
  299. package/select/modern/components/select-mobile/index.d.ts +1 -1
  300. package/select/modern/components/select-mobile/index.js +3 -3
  301. package/select/modern/components/select-modal-mobile/Component.js +3 -3
  302. package/select/modern/components/select-modal-mobile/index.d.ts +1 -1
  303. package/select/modern/components/select-modal-mobile/index.js +3 -3
  304. package/select/modern/index-3885b0d7.d.ts +1 -1
  305. package/select/modern/index.js +3 -3
  306. package/select/modern/presets/index.js +3 -3
  307. package/select/modern/presets/useLazyLoading/hook.js +1 -1
  308. package/select/modern/presets/useSelectWithApply/hook.js +3 -3
  309. package/select/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +3 -3
  310. package/select/modern/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  311. package/select/modern/presets/useSelectWithApply/options-list-with-apply/index.js +3 -3
  312. package/select/modern/responsive.js +3 -3
  313. package/select/presets/index.js +3 -3
  314. package/select/presets/useLazyLoading/hook.js +1 -1
  315. package/select/presets/useSelectWithApply/hook.js +3 -3
  316. package/select/presets/useSelectWithApply/options-list-with-apply/Component.js +3 -3
  317. package/select/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  318. package/select/presets/useSelectWithApply/options-list-with-apply/index.js +3 -3
  319. package/select/responsive.js +3 -3
  320. package/switch/cssm/index.module.css +3 -3
  321. package/switch/esm/index.css +3 -3
  322. package/switch/index.css +3 -3
  323. package/switch/modern/index.css +3 -3
  324. package/system-message/Component.desktop.js +1 -1
  325. package/system-message/Component.mobile.js +1 -1
  326. package/system-message/Components.responsive.js +1 -1
  327. package/system-message/components/caption/Component.js +1 -1
  328. package/system-message/components/caption/index.js +1 -1
  329. package/system-message/components/controls/Component.js +1 -1
  330. package/system-message/components/controls/index.js +1 -1
  331. package/system-message/components/graphic/Component.js +1 -1
  332. package/system-message/components/graphic/index.js +1 -1
  333. package/system-message/components/subtitle/Component.js +1 -1
  334. package/system-message/components/subtitle/index.js +1 -1
  335. package/system-message/components/title/Component.js +1 -1
  336. package/system-message/components/title/index.js +1 -1
  337. package/system-message/desktop.js +1 -1
  338. package/system-message/esm/Component.desktop.js +1 -1
  339. package/system-message/esm/Component.mobile.js +1 -1
  340. package/system-message/esm/Components.responsive.js +1 -1
  341. package/system-message/esm/components/caption/Component.js +1 -1
  342. package/system-message/esm/components/caption/index.js +1 -1
  343. package/system-message/esm/components/controls/Component.js +1 -1
  344. package/system-message/esm/components/controls/index.js +1 -1
  345. package/system-message/esm/components/graphic/Component.js +1 -1
  346. package/system-message/esm/components/graphic/index.js +1 -1
  347. package/system-message/esm/components/subtitle/Component.js +1 -1
  348. package/system-message/esm/components/subtitle/index.js +1 -1
  349. package/system-message/esm/components/title/Component.js +1 -1
  350. package/system-message/esm/components/title/index.js +1 -1
  351. package/system-message/esm/desktop.js +1 -1
  352. package/system-message/esm/index-3885b0d7.d.ts +1 -1
  353. package/system-message/esm/index.js +1 -1
  354. package/system-message/esm/mobile.js +1 -1
  355. package/system-message/esm/responsive.js +1 -1
  356. package/system-message/esm/utils.js +1 -1
  357. package/system-message/index-3885b0d7.d.ts +1 -1
  358. package/system-message/index.js +1 -1
  359. package/system-message/mobile.js +1 -1
  360. package/system-message/modern/Component.desktop.js +1 -1
  361. package/system-message/modern/Component.mobile.js +1 -1
  362. package/system-message/modern/Components.responsive.js +1 -1
  363. package/system-message/modern/components/caption/Component.js +1 -1
  364. package/system-message/modern/components/caption/index.js +1 -1
  365. package/system-message/modern/components/controls/Component.js +1 -1
  366. package/system-message/modern/components/controls/index.js +1 -1
  367. package/system-message/modern/components/graphic/Component.js +1 -1
  368. package/system-message/modern/components/graphic/index.js +1 -1
  369. package/system-message/modern/components/subtitle/Component.js +1 -1
  370. package/system-message/modern/components/subtitle/index.js +1 -1
  371. package/system-message/modern/components/title/Component.js +1 -1
  372. package/system-message/modern/components/title/index.js +1 -1
  373. package/system-message/modern/desktop.js +1 -1
  374. package/system-message/modern/index-3885b0d7.d.ts +1 -1
  375. package/system-message/modern/index.js +1 -1
  376. package/system-message/modern/mobile.js +1 -1
  377. package/system-message/modern/responsive.js +1 -1
  378. package/system-message/modern/utils.js +1 -1
  379. package/system-message/responsive.js +1 -1
  380. package/system-message/utils.js +1 -1
  381. package/tabs/components/primary-tablist/Component.js +4 -1
  382. package/tabs/components/tabs/Component.js +2 -1
  383. package/tabs/cssm/components/primary-tablist/Component.js +4 -1
  384. package/tabs/cssm/components/tabs/Component.js +2 -1
  385. package/tabs/cssm/hooks/use-tablist-titles.d.ts +2 -0
  386. package/tabs/cssm/hooks/use-tabs.d.ts +1 -0
  387. package/tabs/cssm/hooks/use-tabs.js +6 -0
  388. package/tabs/cssm/index-3885b0d7.d.ts +2 -2
  389. package/tabs/cssm/typings.d.ts +1 -0
  390. package/tabs/esm/components/primary-tablist/Component.js +5 -2
  391. package/tabs/esm/components/tabs/Component.js +2 -1
  392. package/tabs/esm/hooks/use-tablist-titles.d.ts +2 -0
  393. package/tabs/esm/hooks/use-tabs.d.ts +1 -0
  394. package/tabs/esm/hooks/use-tabs.js +6 -0
  395. package/tabs/esm/index-3885b0d7.d.ts +2 -2
  396. package/tabs/esm/typings.d.ts +1 -0
  397. package/tabs/hooks/use-tablist-titles.d.ts +2 -0
  398. package/tabs/hooks/use-tabs.d.ts +1 -0
  399. package/tabs/hooks/use-tabs.js +6 -0
  400. package/tabs/index-3885b0d7.d.ts +2 -2
  401. package/tabs/modern/components/primary-tablist/Component.js +1 -1
  402. package/tabs/modern/components/tabs/Component.js +2 -1
  403. package/tabs/modern/hooks/use-tablist-titles.d.ts +2 -0
  404. package/tabs/modern/hooks/use-tabs.d.ts +1 -0
  405. package/tabs/modern/hooks/use-tabs.js +6 -0
  406. package/tabs/modern/index-3885b0d7.d.ts +2 -2
  407. package/tabs/modern/typings.d.ts +1 -0
  408. package/tabs/typings.d.ts +1 -0
  409. package/themes/compiled/mobile-dark-bluetint.css +30 -39
  410. package/themes/dist/compiled/mobile-dark-bluetint.css +113 -122
  411. package/typography/component.js +2 -2
  412. package/typography/esm/component.js +2 -2
  413. package/typography/esm/index.js +2 -2
  414. package/typography/esm/text/component.js +1 -1
  415. package/typography/esm/text/index.js +1 -1
  416. package/typography/esm/title/component.js +1 -1
  417. package/typography/esm/title/index.js +2 -2
  418. package/typography/esm/title-mobile/component.js +2 -2
  419. package/typography/esm/title-mobile/index.js +2 -2
  420. package/typography/esm/title-responsive/component.js +2 -2
  421. package/typography/esm/title-responsive/index.js +2 -2
  422. package/typography/index.js +2 -2
  423. package/typography/modern/component.js +2 -2
  424. package/typography/modern/index.js +2 -2
  425. package/typography/modern/text/component.js +1 -1
  426. package/typography/modern/text/index.js +1 -1
  427. package/typography/modern/title/component.js +1 -1
  428. package/typography/modern/title/index.js +2 -2
  429. package/typography/modern/title-mobile/component.js +2 -2
  430. package/typography/modern/title-mobile/index.js +2 -2
  431. package/typography/modern/title-responsive/component.js +2 -2
  432. package/typography/modern/title-responsive/index.js +2 -2
  433. package/typography/text/component.js +1 -1
  434. package/typography/text/index.js +1 -1
  435. package/typography/title/component.js +1 -1
  436. package/typography/title/index.js +2 -2
  437. package/typography/title-mobile/component.js +2 -2
  438. package/typography/title-mobile/index.js +2 -2
  439. package/typography/title-responsive/component.js +2 -2
  440. package/typography/title-responsive/index.js +2 -2
  441. package/indicator/Component.d.ts +0 -80
  442. package/indicator/Component.js +0 -91
  443. package/indicator/cssm/Component.d.ts +0 -80
  444. package/indicator/cssm/Component.js +0 -90
  445. package/indicator/cssm/index.d.ts +0 -1
  446. package/indicator/cssm/index.js +0 -10
  447. package/indicator/cssm/index.module.css +0 -81
  448. package/indicator/esm/Component.d.ts +0 -80
  449. package/indicator/esm/Component.js +0 -84
  450. package/indicator/esm/index.css +0 -82
  451. package/indicator/esm/index.d.ts +0 -1
  452. package/indicator/esm/index.js +0 -3
  453. package/indicator/index.css +0 -82
  454. package/indicator/index.d.ts +0 -1
  455. package/indicator/index.js +0 -9
  456. package/indicator/modern/Component.d.ts +0 -80
  457. package/indicator/modern/Component.js +0 -51
  458. package/indicator/modern/index.css +0 -82
  459. package/indicator/modern/index.d.ts +0 -1
  460. package/indicator/modern/index.js +0 -3
  461. package/indicator/package.json +0 -3
  462. package/indicator/send-stats.js +0 -82
  463. package/intl-phone-input/cssm/libphonenumber-js.min-e2e76e74.js +0 -2225
  464. package/intl-phone-input/esm/libphonenumber-js.min-16a5ddc7.js +0 -2225
  465. package/intl-phone-input/libphonenumber-js.min-7d199ce4.js +0 -2225
  466. package/intl-phone-input/modern/libphonenumber-js.min-16a5ddc7.d.ts +0 -1
  467. package/intl-phone-input/modern/libphonenumber-js.min-16a5ddc7.js +0 -2225
  468. package/select/esm/intersection-observer-cb236829.d.ts +0 -1
  469. package/select/intersection-observer-9f7b7c34.d.ts +0 -1
  470. package/select/modern/intersection-observer-cb236829.d.ts +0 -1
  471. /package/calendar/{Component.responsive-90e4925f.d.ts → Component.responsive-c4a5d6dd.d.ts} +0 -0
  472. /package/calendar/{Component.responsive-90e4925f.js → Component.responsive-c4a5d6dd.js} +0 -0
  473. /package/calendar/esm/{Component.responsive-bf2b3ac4.d.ts → Component.responsive-d4193012.d.ts} +0 -0
  474. /package/calendar/esm/{Component.responsive-bf2b3ac4.js → Component.responsive-d4193012.js} +0 -0
  475. /package/calendar/modern/{Component.responsive-2882d6cd.d.ts → Component.responsive-3ea14aa6.d.ts} +0 -0
  476. /package/calendar/modern/{Component.responsive-2882d6cd.js → Component.responsive-3ea14aa6.js} +0 -0
  477. /package/confirmation/{countdown-section-a79554b5.d.ts → countdown-section-05acba64.d.ts} +0 -0
  478. /package/confirmation/{countdown-section-a79554b5.js → countdown-section-05acba64.js} +0 -0
  479. /package/confirmation/esm/{countdown-section-59d45308.d.ts → countdown-section-f63bfb16.d.ts} +0 -0
  480. /package/confirmation/esm/{countdown-section-59d45308.js → countdown-section-f63bfb16.js} +0 -0
  481. /package/confirmation/modern/{countdown-section-9d0b43a1.d.ts → countdown-section-c81541fb.d.ts} +0 -0
  482. /package/confirmation/modern/{countdown-section-9d0b43a1.js → countdown-section-c81541fb.js} +0 -0
  483. /package/gallery/{buttons-1503c7be.d.ts → buttons-db639237.d.ts} +0 -0
  484. /package/gallery/{buttons-1503c7be.js → buttons-db639237.js} +0 -0
  485. /package/gallery/esm/{buttons-ab7293fb.d.ts → buttons-306b44eb.d.ts} +0 -0
  486. /package/gallery/esm/{buttons-ab7293fb.js → buttons-306b44eb.js} +0 -0
  487. /package/gallery/esm/{slide-c3ec5004.d.ts → slide-bd6d1d11.d.ts} +0 -0
  488. /package/gallery/esm/{slide-c3ec5004.js → slide-bd6d1d11.js} +0 -0
  489. /package/gallery/modern/{buttons-074c8574.d.ts → buttons-56a08eeb.d.ts} +0 -0
  490. /package/gallery/modern/{buttons-074c8574.js → buttons-56a08eeb.js} +0 -0
  491. /package/gallery/modern/{slide-4efeb742.d.ts → slide-b4936367.d.ts} +0 -0
  492. /package/gallery/modern/{slide-4efeb742.js → slide-b4936367.js} +0 -0
  493. /package/gallery/{slide-84d75c58.d.ts → slide-fe11951f.d.ts} +0 -0
  494. /package/gallery/{slide-84d75c58.js → slide-fe11951f.js} +0 -0
  495. /package/grid/esm/{gutters.module-53b754de.js → gutters.module-8dabb657.js} +0 -0
  496. /package/grid/{gutters.module-0314e1f7.js → gutters.module-59d2542e.js} +0 -0
  497. /package/grid/modern/{gutters.module-8ac7335b.js → gutters.module-90b19484.js} +0 -0
  498. /package/pure-cell/{component-c814e23a.d.ts → component-0cb09281.d.ts} +0 -0
  499. /package/pure-cell/cssm/{component-d38262a4.d.ts → component-ecc61e99.d.ts} +0 -0
  500. /package/pure-cell/esm/{component-acf8e7a1.d.ts → component-ccba3d4f.d.ts} +0 -0
  501. /package/pure-cell/esm/{getDataTestId-7271ef25.d.ts → getDataTestId-3506d5fd.d.ts} +0 -0
  502. /package/pure-cell/esm/{getDataTestId-7271ef25.js → getDataTestId-3506d5fd.js} +0 -0
  503. /package/pure-cell/{getDataTestId-81a035ce.d.ts → getDataTestId-17750390.d.ts} +0 -0
  504. /package/pure-cell/{getDataTestId-81a035ce.js → getDataTestId-17750390.js} +0 -0
  505. /package/pure-cell/modern/{component-3a3eeab9.d.ts → component-80cf784f.d.ts} +0 -0
  506. /package/pure-cell/modern/{getDataTestId-2964aca1.d.ts → getDataTestId-713ada2a.d.ts} +0 -0
  507. /package/pure-cell/modern/{getDataTestId-2964aca1.js → getDataTestId-713ada2a.js} +0 -0
  508. /package/select/{Component-a25d5492.d.ts → Component-00c64376.d.ts} +0 -0
  509. /package/select/esm/{Component-cffa12f3.d.ts → Component-2ff63ae2.d.ts} +0 -0
  510. /package/select/esm/{getDataTestId-a1b30547.d.ts → getDataTestId-d8d91b2e.d.ts} +0 -0
  511. /package/select/esm/{getDataTestId-a1b30547.js → getDataTestId-d8d91b2e.js} +0 -0
  512. /package/{intl-phone-input/cssm/libphonenumber-js.min-e2e76e74.d.ts → select/esm/intersection-observer-210062db.d.ts} +0 -0
  513. /package/select/esm/{intersection-observer-cb236829.js → intersection-observer-210062db.js} +0 -0
  514. /package/select/{getDataTestId-681586dd.d.ts → getDataTestId-d8391785.d.ts} +0 -0
  515. /package/select/{getDataTestId-681586dd.js → getDataTestId-d8391785.js} +0 -0
  516. /package/{intl-phone-input/esm/libphonenumber-js.min-16a5ddc7.d.ts → select/intersection-observer-131fbe35.d.ts} +0 -0
  517. /package/select/{intersection-observer-9f7b7c34.js → intersection-observer-131fbe35.js} +0 -0
  518. /package/select/modern/{Component-83661e44.d.ts → Component-0b711513.d.ts} +0 -0
  519. /package/select/modern/{getDataTestId-452744af.d.ts → getDataTestId-b301a7a9.d.ts} +0 -0
  520. /package/select/modern/{getDataTestId-452744af.js → getDataTestId-b301a7a9.js} +0 -0
  521. /package/{intl-phone-input/libphonenumber-js.min-7d199ce4.d.ts → select/modern/intersection-observer-210062db.d.ts} +0 -0
  522. /package/select/modern/{intersection-observer-cb236829.js → intersection-observer-210062db.js} +0 -0
  523. /package/system-message/esm/{getDataTestId-b4e201c3.d.ts → getDataTestId-eec0c48e.d.ts} +0 -0
  524. /package/system-message/esm/{getDataTestId-b4e201c3.js → getDataTestId-eec0c48e.js} +0 -0
  525. /package/system-message/{getDataTestId-d02f22e2.d.ts → getDataTestId-9e0f0d21.d.ts} +0 -0
  526. /package/system-message/{getDataTestId-d02f22e2.js → getDataTestId-9e0f0d21.js} +0 -0
  527. /package/system-message/modern/{getDataTestId-42fbe621.d.ts → getDataTestId-a6b61371.d.ts} +0 -0
  528. /package/system-message/modern/{getDataTestId-42fbe621.js → getDataTestId-a6b61371.js} +0 -0
  529. /package/typography/{colors.module-67575777.js → colors.module-c1f89eba.js} +0 -0
  530. /package/typography/{common.module-b49fc5ec.js → common.module-6cb0ac0a.js} +0 -0
  531. /package/typography/esm/{colors.module-1972613e.js → colors.module-090e50c1.js} +0 -0
  532. /package/typography/esm/{common.module-8eb87ba7.js → common.module-e1f479b7.js} +0 -0
  533. /package/typography/modern/{colors.module-7900da3a.js → colors.module-50b08d23.js} +0 -0
  534. /package/typography/modern/{common.module-b57f0592.js → common.module-3de379dc.js} +0 -0
@@ -1,2225 +0,0 @@
1
- !function (t, e) { "object" == typeof exports && "undefined" != typeof module ? e(exports) : "function" == typeof define && define.amd ? define(["exports"], e) : e((t = "undefined" != typeof globalThis ? globalThis : t || self).libphonenumber = {}); }(undefined, (function (t) {
2
- var e = { 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, "1|([457]\\d{6})$", "268$1", 0, "268"], AI: ["1", "011", "(?:264|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "1|([2457]\\d{6})$", "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, "1|([267]\\d{6})$", "684$1", 0, "684"], AT: ["43", "00", "1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}", [4, 5, 6, 7, 8, 9, 10, 11, 12, 13], [["(\\d)(\\d{3,12})", "$1 $2", ["1(?:11|[2-9])"], "0$1"], ["(\\d{3})(\\d{2})", "$1 $2", ["517"], "0$1"], ["(\\d{2})(\\d{3,5})", "$1 $2", ["5[079]"], "0$1"], ["(\\d{3})(\\d{3,10})", "$1 $2", ["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]"], "0$1"], ["(\\d{4})(\\d{3,9})", "$1 $2", ["[2-467]|5[2-6]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["5"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4,7})", "$1 $2 $3", ["5"], "0$1"]], "0"], AU: ["61", "001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011", "1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}", [5, 6, 7, 8, 9, 10, 12], [["(\\d{2})(\\d{3,4})", "$1 $2", ["16"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2,4})", "$1 $2 $3", ["16"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["14|4"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["[2378]"], "(0$1)"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1(?:30|[89])"]]], "0", 0, "0|(183[12])", 0, 0, 0, [["(?:(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8]))\\d{3}|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4]))|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79])))))\\d{3}", [9]], ["4(?:83[0-38]|93[0-6])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-24-9]|9[0-27-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, "1|([2-9]\\d{6})$", "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(?:28|4[14]|5)|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"], "0$1"], ["(\\d{4})(\\d{3,6})", "$1-$2", ["[13-9]|22"], "0$1"], ["(\\d)(\\d{7,8})", "$1-$2", ["2"], "0$1"]], "0"], BE: ["32", "00", "4\\d{8}|[1-9]\\d{7}", [8, 9], [["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["(?:80|9)0"], "0$1"], ["(\\d)(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[239]|4[23]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[15-8]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["4"], "0$1"]], "0"], BF: ["226", "00", "[025-7]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[025-7]"]]]], BG: ["359", "00", "[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}", [6, 7, 8, 9], [["(\\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[047]"]]]], 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", "(?:[25689]\\d|40)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[24-689]"]]]], BL: ["590", "00", "(?:590|(?:69|80)\\d|976)\\d{6}", [9], 0, "0", 0, 0, 0, 0, 0, [["590(?:2[7-9]|5[12]|87)\\d{4}"], ["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"], ["80[0-5]\\d{6}"], 0, 0, 0, 0, 0, ["976[01]\\d{5}"]]], BM: ["1", "011", "(?:441|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "1|([2-8]\\d{6})$", "441$1", 0, "441"], BN: ["673", "00", "[2-578]\\d{6}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-578]"]]]], BO: ["591", "00(?:1\\d)?", "(?:[2-467]\\d\\d|8001)\\d{5}", [8, 9], [["(\\d)(\\d{7})", "$1 $2", ["[23]|4[46]"]], ["(\\d{8})", "$1", ["[67]"]], ["(\\d{3})(\\d{2})(\\d{4})", "$1 $2 $3", ["8"]]], "0", 0, "0(1\\d)?"], BQ: ["599", "00", "(?:[34]1|7\\d)\\d{5}", [7], 0, 0, 0, 0, 0, 0, "[347]"], BR: ["55", "00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)", "(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-24679]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}", [8, 9, 10, 11], [["(\\d{4})(\\d{4})", "$1-$2", ["300|4(?:0[02]|37)", "4(?:02|37)0|[34]00"]], ["(\\d{3})(\\d{2,3})(\\d{4})", "$1 $2 $3", ["(?:[358]|90)0"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2-$3", ["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"], "($1)"], ["(\\d{2})(\\d{5})(\\d{4})", "$1 $2-$3", ["[16][1-9]|[2-57-9]"], "($1)"]], "0", 0, "(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?", "$2"], BS: ["1", "011", "(?:242|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "1|([3-8]\\d{6})$", "242$1", 0, "242"], BT: ["975", "00", "[17]\\d{7}|[2-8]\\d{6}", [7, 8], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-68]|7[246]"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["1[67]|7"]]]], BW: ["267", "00", "(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}", [7, 8, 10], [["(\\d{2})(\\d{5})", "$1 $2", ["90"]], ["(\\d{3})(\\d{4})", "$1 $2", ["[24-6]|3[15-79]"]], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[37]"]], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["0"]], ["(\\d{3})(\\d{4})(\\d{3})", "$1 $2 $3", ["8"]]]], BY: ["375", "810", "(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}", [6, 7, 8, 9, 10, 11], [["(\\d{3})(\\d{3})", "$1 $2", ["800"], "8 $1"], ["(\\d{3})(\\d{2})(\\d{2,4})", "$1 $2 $3", ["800"], "8 $1"], ["(\\d{4})(\\d{2})(\\d{3})", "$1 $2-$3", ["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])", "1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"], "8 0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["1(?:[56]|7[467])|2[1-3]"], "8 0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["[1-4]"], "8 0$1"], ["(\\d{3})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["[89]"], "8 $1"]], "8", 0, "0|80?", 0, 0, 0, 0, "8~10"], BZ: ["501", "00", "(?:0800\\d|[2-8])\\d{6}", [7, 11], [["(\\d{3})(\\d{4})", "$1-$2", ["[2-8]"]], ["(\\d)(\\d{3})(\\d{4})(\\d{3})", "$1-$2-$3-$4", ["0"]]]], CA: ["1", "011", "(?:[2-8]\\d|90)\\d{8}|3\\d{6}", [7, 10], 0, "1", 0, 0, 0, 0, 0, [["(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|6[578])|4(?:03|1[68]|3[178]|50|68|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|13|39|47|72)|7(?:0[59]|78|8[02])|8(?:[06]7|19|25|73)|90[25])[2-9]\\d{6}", [10]], ["", [10]], ["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}", [10]], ["900[2-9]\\d{6}", [10]], ["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:00|2[125-7]|33|44|66|77|88)|622)[2-9]\\d{6}", [10]], 0, ["310\\d{4}", [7]], 0, ["600[2-9]\\d{6}", [10]]]], CC: ["61", "001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011", "1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}", [6, 7, 8, 9, 10, 12], 0, "0", 0, "0|([59]\\d{7})$", "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(?:83[0-38]|93[0-6])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-24-9]|9[0-27-9])\\d{6}", [9]], ["180(?:0\\d{3}|2)\\d{3}", [7, 10]], ["190[0-26]\\d{6}", [10]], 0, 0, 0, 0, ["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}", [9]], ["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}", [6, 8, 10, 12]]], "0011"], CD: ["243", "00", "[189]\\d{8}|[1-68]\\d{6}", [7, 9], [["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["88"], "0$1"], ["(\\d{2})(\\d{5})", "$1 $2", ["[1-6]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[89]"], "0$1"]], "0"], CF: ["236", "00", "(?:[27]\\d{3}|8776)\\d{4}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[278]"]]]], CG: ["242", "00", "222\\d{6}|(?:0\\d|80)\\d{7}", [9], [["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["8"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[02]"]]]], CH: ["41", "00", "8\\d{11}|[2-9]\\d{8}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8[047]|90"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-79]|81"], "0$1"], ["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["8"], "0$1"]], "0"], CI: ["225", "00", "[02]\\d{9}", [10], [["(\\d{2})(\\d{2})(\\d)(\\d{5})", "$1 $2 $3 $4", ["2"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3 $4", ["0"]]]], CK: ["682", "00", "[2-578]\\d{4}", [5], [["(\\d{2})(\\d{3})", "$1 $2", ["[2-578]"]]]], CL: ["56", "(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0", "12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}", [9, 10, 11], [["(\\d{5})(\\d{4})", "$1 $2", ["219", "2196"], "($1)"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["44"]], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["2[1-36]"], "($1)"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["9[2-9]"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"], "($1)"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["60|8"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]], ["(\\d{3})(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3 $4", ["60"]]]], CM: ["237", "00", "[26]\\d{8}|88\\d{6,7}", [8, 9], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["88"]], ["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["[26]|88"]]]], CN: ["86", "00|1(?:[12]\\d|79)\\d\\d00", "1[127]\\d{8,9}|2\\d{9}(?:\\d{2})?|[12]\\d{6,7}|86\\d{6}|(?:1[03-689]\\d|6)\\d{7,9}|(?:[3-579]\\d|8[0-57-9])\\d{6,9}", [7, 8, 9, 10, 11, 12], [["(\\d{2})(\\d{5,6})", "$1 $2", ["(?:10|2[0-57-9])[19]", "(?:10|2[0-57-9])(?:10|9[56])", "(?:10|2[0-57-9])(?:100|9[56])"], "0$1"], ["(\\d{3})(\\d{5,6})", "$1 $2", ["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]", "(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]", "85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])", "85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["(?:4|80)0"]], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["10|2(?:[02-57-9]|1[1-9])", "10|2(?:[02-57-9]|1[1-9])", "10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"], "0$1", 1], ["(\\d{3})(\\d{7,8})", "$1 $2", ["9"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["80"], "0$1", 1], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["[3-578]"], "0$1", 1], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["1[3-9]"]], ["(\\d{2})(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3 $4", ["[12]"], "0$1", 1]], "0", 0, "0|(1(?:[12]\\d|79)\\d\\d)", 0, 0, 0, 0, "00"], CO: ["57", "00(?:4(?:[14]4|56)|[579])", "(?:(?:1\\d|[36])\\d{3}|9101)\\d{6}|[124-8]\\d{7}", [8, 10, 11], [["(\\d)(\\d{7})", "$1 $2", ["[146][2-9]|[2578]"], "($1)"], ["(\\d{3})(\\d{7})", "$1 $2", ["6"], "($1)"], ["(\\d{3})(\\d{7})", "$1 $2", ["[39]"]], ["(\\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", "[27]\\d{6,7}|[34]\\d{5,7}|(?:5|8\\d\\d)\\d{7}", [6, 7, 8, 10], [["(\\d{2})(\\d{4,6})", "$1 $2", ["2[1-4]|[34]"], "(0$1)"], ["(\\d)(\\d{6,7})", "$1 $2", ["7"], "(0$1)"], ["(\\d)(\\d{7})", "$1 $2", ["5"], "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, "0|([59]\\d{7})$", "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(?:83[0-38]|93[0-6])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-24-9]|9[0-27-9])\\d{6}", [9]], ["180(?:0\\d{3}|2)\\d{3}", [7, 10]], ["190[0-26]\\d{6}", [10]], 0, 0, 0, 0, ["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}", [9]], ["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}", [6, 8, 10, 12]]], "0011"], CY: ["357", "00", "(?:[279]\\d|[58]0)\\d{6}", [8], [["(\\d{2})(\\d{6})", "$1 $2", ["[257-9]"]]]], CZ: ["420", "00", "(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-8]|9[015-7]"]], ["(\\d{2})(\\d{3})(\\d{3})(\\d{2})", "$1 $2 $3 $4", ["96"]], ["(\\d{2})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["9"]], ["(\\d{3})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["9"]]]], DE: ["49", "00", "[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:1\\d|2[02-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[05]\\d|[23]1|[46][1-8])\\d{1,9}", [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], [["(\\d{2})(\\d{3,13})", "$1 $2", ["3[02]|40|[68]9"], "0$1"], ["(\\d{3})(\\d{3,12})", "$1 $2", ["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1", "2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"], "0$1"], ["(\\d{4})(\\d{2,11})", "$1 $2", ["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]", "[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"], "0$1"], ["(\\d{3})(\\d{4})", "$1 $2", ["138"], "0$1"], ["(\\d{5})(\\d{2,10})", "$1 $2", ["3"], "0$1"], ["(\\d{3})(\\d{5,11})", "$1 $2", ["181"], "0$1"], ["(\\d{3})(\\d)(\\d{4,10})", "$1 $2 $3", ["1(?:3|80)|9"], "0$1"], ["(\\d{3})(\\d{7,8})", "$1 $2", ["1[67]"], "0$1"], ["(\\d{3})(\\d{7,12})", "$1 $2", ["8"], "0$1"], ["(\\d{5})(\\d{6})", "$1 $2", ["185", "1850", "18500"], "0$1"], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["7"], "0$1"], ["(\\d{4})(\\d{7})", "$1 $2", ["18[68]"], "0$1"], ["(\\d{5})(\\d{6})", "$1 $2", ["15[0568]"], "0$1"], ["(\\d{4})(\\d{7})", "$1 $2", ["15[1279]"], "0$1"], ["(\\d{3})(\\d{8})", "$1 $2", ["18"], "0$1"], ["(\\d{3})(\\d{2})(\\d{7,8})", "$1 $2 $3", ["1(?:6[023]|7)"], "0$1"], ["(\\d{4})(\\d{2})(\\d{7})", "$1 $2 $3", ["15[279]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{8})", "$1 $2 $3", ["15"], "0$1"]], "0"], DJ: ["253", "00", "(?:2\\d|77)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[27]"]]]], DK: ["45", "00", "[2-9]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-9]"]]]], DM: ["1", "011", "(?:[58]\\d\\d|767|900)\\d{7}", [10], 0, "1", 0, "1|([2-7]\\d{6})$", "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", ["[189]"], "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-59]\\d)\\d{7}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1-59]"], "0$1"]], "0"], FI: ["358", "00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))", "[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}", [5, 6, 7, 8, 9, 10, 11, 12], [["(\\d)(\\d{4,9})", "$1 $2", ["[2568][1-8]|3(?:0[1-9]|[1-9])|9"], "0$1"], ["(\\d{3})(\\d{3,7})", "$1 $2", ["[12]00|[368]|70[07-9]"], "0$1"], ["(\\d{2})(\\d{4,8})", "$1 $2", ["[1245]|7[135]"], "0$1"], ["(\\d{2})(\\d{6,10})", "$1 $2", ["7"], "0$1"]], "0", 0, 0, 0, 0, "1[03-79]|[2-9]", 0, "00"], FJ: ["679", "0(?:0|52)", "45\\d{5}|(?:0800\\d|[235-9])\\d{6}", [7, 11], [["(\\d{3})(\\d{4})", "$1 $2", ["[235-9]|45"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["0"]]], 0, 0, 0, 0, 0, 0, 0, "00"], FK: ["500", "00", "[2-7]\\d{4}", [5]], FM: ["691", "00", "(?:[39]\\d\\d|820)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[389]"]]]], FO: ["298", "00", "[2-9]\\d{5}", [6], [["(\\d{6})", "$1", ["[2-9]"]]], 0, 0, "(10(?:01|[12]0|88))"], FR: ["33", "00", "[1-9]\\d{8}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0 $1"], ["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["[1-79]"], "0$1"]], "0"], GA: ["241", "00", "(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}", [7, 8], [["(\\d)(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-7]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["0"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["11|[67]"], "0$1"]], 0, 0, "0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})", "$1"], GB: ["44", "00", "[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}", [7, 9, 10], [["(\\d{3})(\\d{4})", "$1 $2", ["800", "8001", "80011", "800111", "8001111"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3", ["845", "8454", "84546", "845464"], "0$1"], ["(\\d{3})(\\d{6})", "$1 $2", ["800"], "0$1"], ["(\\d{5})(\\d{4,5})", "$1 $2", ["1(?:38|5[23]|69|76|94)", "1(?:(?:38|69)7|5(?:24|39)|768|946)", "1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"], "0$1"], ["(\\d{4})(\\d{5,6})", "$1 $2", ["1(?:[2-69][02-9]|[78])"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["[25]|7(?:0|6[02-9])", "[25]|7(?:0|6(?:[03-9]|2[356]))"], "0$1"], ["(\\d{4})(\\d{6})", "$1 $2", ["7"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1389]"], "0$1"]], "0", 0, 0, 0, 0, 0, [["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0235])|4(?:[0-5]\\d\\d|69[7-9]|70[01359])|(?:5[0-26-9]|[78][0-49])\\d\\d|6(?:[0-4]\\d\\d|50[0-79]))|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\\d|1(?:[0-7]\\d\\d|8(?:[02]\\d|1[0-26-9])))|(?: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-2]|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, "1|([2-9]\\d{6})$", "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|80\\d|976)\\d{6}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[569]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0$1"]], "0"], GG: ["44", "00", "(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?", [7, 9, 10], 0, "0", 0, "0|([25-9]\\d{5})$", "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-2]|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\\d|606)\\d{5}", [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|(?:69|80)\\d|976)\\d{6}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[569]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0$1"]], "0", 0, 0, 0, 0, 0, [["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1289]|5[3-579]|6[0189]|7[08]|8[0-689]|9\\d)\\d{4}"], ["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"], ["80[0-5]\\d{6}"], 0, 0, 0, 0, 0, ["976[01]\\d{5}"]]], GQ: ["240", "00", "222\\d{6}|(?:3\\d|55|[89]0)\\d{7}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[235]"]], ["(\\d{3})(\\d{6})", "$1 $2", ["[89]"]]]], GR: ["30", "00", "5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}", [10, 11, 12], [["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["21|7"]], ["(\\d{4})(\\d{6})", "$1 $2", ["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2689]"]], ["(\\d{3})(\\d{3,4})(\\d{5})", "$1 $2 $3", ["8"]]]], GT: ["502", "00", "(?:1\\d{3}|[2-7])\\d{7}", [8, 11], [["(\\d{4})(\\d{4})", "$1 $2", ["[2-7]"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]]]], GU: ["1", "011", "(?:[58]\\d\\d|671|900)\\d{7}", [10], 0, "1", 0, "1|([3-9]\\d{6})$", "671$1", 0, "671"], GW: ["245", "00", "[49]\\d{8}|4\\d{6}", [7, 9], [["(\\d{3})(\\d{4})", "$1 $2", ["40"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[49]"]]]], GY: ["592", "001", "9008\\d{3}|(?:[2-467]\\d\\d|862)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-46-9]"]]]], HK: ["852", "00(?:30|5[09]|[126-9]?)", "8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}", [5, 6, 7, 8, 9, 11], [["(\\d{3})(\\d{2,5})", "$1 $2", ["900", "9003"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"]], ["(\\d{3})(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["9"]]], 0, 0, 0, 0, 0, 0, 0, "00"], HN: ["504", "00", "8\\d{10}|[237-9]\\d{7}", [8, 11], [["(\\d{4})(\\d{4})", "$1-$2", ["[237-9]"]]]], HR: ["385", "00", "(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}", [6, 7, 8, 9], [["(\\d{2})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["6[01]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["8"], "0$1"], ["(\\d)(\\d{4})(\\d{3})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[67]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["9"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2-5]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"], "0$1"]], "0"], HT: ["509", "00", "[2-489]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["[2-489]"]]]], HU: ["36", "00", "[235-7]\\d{8}|[1-9]\\d{7}", [8, 9], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "(06 $1)"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"], "(06 $1)"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2-9]"], "06 $1"]], "06"], ID: ["62", "00[89]", "(?:(?:00[1-9]|8\\d)\\d{4}|[1-36])\\d{6}|00\\d{10}|[1-9]\\d{8,10}|[2-9]\\d{7}", [7, 8, 9, 10, 11, 12, 13], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["15"]], ["(\\d{2})(\\d{5,9})", "$1 $2", ["2[124]|[36]1"], "(0$1)"], ["(\\d{3})(\\d{5,7})", "$1 $2", ["800"], "0$1"], ["(\\d{3})(\\d{5,8})", "$1 $2", ["[2-79]"], "(0$1)"], ["(\\d{3})(\\d{3,4})(\\d{3})", "$1-$2-$3", ["8[1-35-9]"], "0$1"], ["(\\d{3})(\\d{6,8})", "$1 $2", ["1"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["804"], "0$1"], ["(\\d{3})(\\d)(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["80"], "0$1"], ["(\\d{3})(\\d{4})(\\d{4,5})", "$1-$2-$3", ["8"], "0$1"]], "0"], IE: ["353", "00", "(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}", [7, 8, 9, 10], [["(\\d{2})(\\d{5})", "$1 $2", ["2[24-9]|47|58|6[237-9]|9[35-9]"], "(0$1)"], ["(\\d{3})(\\d{5})", "$1 $2", ["[45]0"], "(0$1)"], ["(\\d)(\\d{3,4})(\\d{4})", "$1 $2 $3", ["1"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2569]|4[1-69]|7[14]"], "(0$1)"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["70"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["81"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[78]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1"]], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["4"], "(0$1)"], ["(\\d{2})(\\d)(\\d{3})(\\d{4})", "$1 $2 $3 $4", ["8"], "0$1"]], "0"], IL: ["972", "0(?:0|1[2-9])", "1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}", [7, 8, 9, 10, 11, 12], [["(\\d{4})(\\d{3})", "$1-$2", ["125"]], ["(\\d{4})(\\d{2})(\\d{2})", "$1-$2-$3", ["121"]], ["(\\d)(\\d{3})(\\d{4})", "$1-$2-$3", ["[2-489]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1-$2-$3", ["[57]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1-$2-$3", ["12"]], ["(\\d{4})(\\d{6})", "$1-$2", ["159"]], ["(\\d)(\\d{3})(\\d{3})(\\d{3})", "$1-$2-$3-$4", ["1[7-9]"]], ["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})", "$1-$2 $3-$4", ["15"]]], "0"], IM: ["44", "00", "1624\\d{6}|(?:[3578]\\d|90)\\d{8}", [10], 0, "0", 0, "0|([25-8]\\d{5})$", "1624$1", 0, "74576|(?:16|7[56])24"], IN: ["91", "00", "(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}", [8, 9, 10, 11, 12, 13], [["(\\d{8})", "$1", ["5(?:0|2[23]|3[03]|[67]1|88)", "5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)", "5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"], 0, 1], ["(\\d{4})(\\d{4,5})", "$1 $2", ["180", "1800"], 0, 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["140"], 0, 1], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["11|2[02]|33|4[04]|79[1-7]|80[2-46]", "11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])", "11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]", "1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]", "1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"], "0$1", 1], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807", "1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]", "1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"], "0$1", 1], ["(\\d{5})(\\d{5})", "$1 $2", ["[6-9]"], "0$1", 1], ["(\\d{4})(\\d{2,4})(\\d{4})", "$1 $2 $3", ["1(?:6|8[06])", "1(?:6|8[06]0)"], 0, 1], ["(\\d{4})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["18"], 0, 1]], "0"], IO: ["246", "00", "3\\d{6}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["3"]]]], IQ: ["964", "00", "(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}", [8, 9, 10], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2-6]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["7"], "0$1"]], "0"], IR: ["98", "00", "[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}", [4, 5, 6, 7, 10], [["(\\d{4,5})", "$1", ["96"], "0$1"], ["(\\d{2})(\\d{4,5})", "$1 $2", ["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["9"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["[1-8]"], "0$1"]], "0"], IS: ["354", "00|1(?:0(?:01|[12]0)|100)", "(?:38\\d|[4-9])\\d{6}", [7, 9], [["(\\d{3})(\\d{4})", "$1 $2", ["[4-9]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["3"]]], 0, 0, 0, 0, 0, 0, 0, "00"], IT: ["39", "00", "0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?", [6, 7, 8, 9, 10, 11], [["(\\d{2})(\\d{4,6})", "$1 $2", ["0[26]"]], ["(\\d{3})(\\d{3,6})", "$1 $2", ["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])", "0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]], ["(\\d{4})(\\d{2,6})", "$1 $2", ["0(?:[13-579][2-46-8]|8[236-8])"]], ["(\\d{4})(\\d{4})", "$1 $2", ["894"]], ["(\\d{2})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["0[26]|5"]], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["1(?:44|[679])|[378]"]], ["(\\d{3})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["0[13-57-9][0159]|14"]], ["(\\d{2})(\\d{4})(\\d{5})", "$1 $2 $3", ["0[26]"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["0"]], ["(\\d{3})(\\d{4})(\\d{4,5})", "$1 $2 $3", ["3"]]], 0, 0, 0, 0, 0, 0, [["0669[0-79]\\d{1,6}|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"], ["3[1-9]\\d{8}|3[2-9]\\d{7}", [9, 10]], ["80(?:0\\d{3}|3)\\d{3}", [6, 9]], ["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}", [6, 8, 9, 10]], ["1(?:78\\d|99)\\d{6}", [9, 10]], 0, 0, 0, ["55\\d{8}", [10]], ["84(?:[08]\\d{3}|[17])\\d{3}", [6, 9]]]], JE: ["44", "00", "1534\\d{6}|(?:[3578]\\d|90)\\d{8}", [10], 0, "0", 0, "0|([0-24-8]\\d{5})$", "1534$1", 0, 0, [["1534[0-24-8]\\d{5}"], ["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97[7-9]))\\d{5}"], ["80(?:07(?:35|81)|8901)\\d{4}"], ["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"], ["701511\\d{4}"], 0, ["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"], ["76(?:464|652)\\d{5}|76(?:0[0-2]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"], ["56\\d{8}"]]], JM: ["1", "011", "(?:[58]\\d\\d|658|900)\\d{7}", [10], 0, "1", 0, 0, 0, 0, "658|876"], JO: ["962", "00", "(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}", [8, 9], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["[2356]|87"], "(0$1)"], ["(\\d{3})(\\d{5,6})", "$1 $2", ["[89]"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["70"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["7"], "0$1"]], "0"], JP: ["81", "010", "00[1-9]\\d{6,14}|[257-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}", [8, 9, 10, 11, 12, 13, 14, 15, 16, 17], [["(\\d{3})(\\d{3})(\\d{3})", "$1-$2-$3", ["(?:12|57|99)0"], "0$1"], ["(\\d{4})(\\d)(\\d{4})", "$1-$2-$3", ["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51|63)|9(?:80|9[16])", "1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9]|636)|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]", "1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9]|636[457-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1-$2-$3", ["60"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1-$2-$3", ["[36]|4(?:2[09]|7[01])", "[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1-$2-$3", ["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[045]|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[27-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])|5(?:2|3[045]|4[0-369]|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])|49|51|6(?:[0-24]|36|5[0-3589]|72|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]))|(?:49|55|83)[29]|(?: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]|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]|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|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]", "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]|7[015-9]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17|3[015-9]))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3[045]|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(?:[019]|4[1-3]|6(?:[0-47-9]|5[01346-9])))|3(?:[29]|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|829(?:2|66)|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{4})", "$1-$2-$3", ["[14]|[289][2-9]|5[3-9]|7[2-4679]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1-$2-$3", ["800"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1-$2-$3", ["[257-9]"], "0$1"]], "0"], 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-8]\\d|99)\\d{7}", [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, "1|([2-7]\\d{6})$", "869$1", 0, "869"], KP: ["850", "00|99", "85\\d{6}|(?:19\\d|[2-7])\\d{7}", [8, 10], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"], "0$1"], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["[2-7]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"]], "0"], KR: ["82", "00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))", "00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}", [5, 6, 8, 9, 10, 11, 12, 13, 14], [["(\\d{2})(\\d{3,4})", "$1-$2", ["(?:3[1-3]|[46][1-4]|5[1-5])1"], "0$1"], ["(\\d{4})(\\d{4})", "$1-$2", ["1"]], ["(\\d)(\\d{3,4})(\\d{4})", "$1-$2-$3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1-$2-$3", ["60|8"], "0$1"], ["(\\d{2})(\\d{3,4})(\\d{4})", "$1-$2-$3", ["[1346]|5[1-5]"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1-$2-$3", ["[57]"], "0$1"], ["(\\d{2})(\\d{5})(\\d{4})", "$1-$2-$3", ["5"], "0$1"]], "0", 0, "0(8(?:[1-46-8]|5\\d\\d))?"], KW: ["965", "00", "18\\d{5}|(?:[2569]\\d|41)\\d{6}", [7, 8], [["(\\d{4})(\\d{3,4})", "$1 $2", ["[169]|2(?:[235]|4[1-35-9])|52"]], ["(\\d{3})(\\d{5})", "$1 $2", ["[245]"]]]], KY: ["1", "011", "(?:345|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "1|([2-9]\\d{6})$", "345$1", 0, "345"], KZ: ["7", "810", "(?:33622|8\\d{8})\\d{5}|[78]\\d{9}", [10, 14], 0, "8", 0, 0, 0, 0, "33|7", 0, "8~10"], LA: ["856", "00", "[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}", [8, 9, 10], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["2[13]|3[14]|[4-8]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3 $4", ["30[013-9]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["[23]"], "0$1"]], "0"], LB: ["961", "00", "[27-9]\\d{7}|[13-9]\\d{6}", [7, 8], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[27-9]"]]], "0"], LC: ["1", "011", "(?:[58]\\d\\d|758|900)\\d{7}", [10], 0, "1", 0, "1|([2-8]\\d{6})$", "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, "0|(1001)"], 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", "(?:2|33|5\\d|77|88)\\d{7}|[4-6]\\d{6}", [7, 8, 9], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[4-6]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[3578]"], "0$1"]], "0"], LS: ["266", "00", "(?:[256]\\d\\d|800)\\d{5}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[2568]"]]]], LT: ["370", "00", "(?:[3469]\\d|52|[78]0)\\d{6}", [8], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["52[0-7]"], "(8-$1)", 1], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["[7-9]"], "8 $1", 1], ["(\\d{2})(\\d{6})", "$1 $2", ["37|4(?:[15]|6[1-8])"], "(8-$1)", 1], ["(\\d{3})(\\d{5})", "$1 $2", ["[3-6]"], "(8-$1)", 1]], "8", 0, "[08]"], LU: ["352", "00", "35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}", [4, 5, 6, 7, 8, 9, 10, 11], [["(\\d{2})(\\d{3})", "$1 $2", ["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]], ["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]], ["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["20[2-689]"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})", "$1 $2 $3 $4", ["2(?:[0367]|4[3-8])"]], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["80[01]|90[015]"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3 $4", ["20"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["6"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})", "$1 $2 $3 $4 $5", ["2(?:[0367]|4[3-8])"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})", "$1 $2 $3 $4", ["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]], 0, 0, "(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"], LV: ["371", "00", "(?:[268]\\d|90)\\d{6}", [8], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[269]|8[01]"]]]], LY: ["218", "00", "[2-9]\\d{8}", [9], [["(\\d{2})(\\d{7})", "$1-$2", ["[2-9]"], "0$1"]], "0"], MA: ["212", "00", "[5-8]\\d{8}", [9], [["(\\d{5})(\\d{4})", "$1-$2", ["5(?:29|38)", "5(?:29[89]|389)", "5(?:29[89]|389)0"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["5[45]"], "0$1"], ["(\\d{4})(\\d{5})", "$1-$2", ["5(?:2[2-489]|3[5-9]|9)|892", "5(?:2(?:[2-49]|8[235-9])|3[5-9]|9)|892"], "0$1"], ["(\\d{2})(\\d{7})", "$1-$2", ["8"], "0$1"], ["(\\d{3})(\\d{6})", "$1-$2", ["[5-7]"], "0$1"]], "0", 0, 0, 0, 0, 0, [["5(?:29(?:[189][05]|2[29]|3[01])|389[05])\\d{4}|5(?:2(?:[0-25-7]\\d|3[1-578]|4[02-46-8]|8[0235-7]|90)|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[08]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"], ["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[017]\\d|2[0-2]|6[0-367]))\\d{6}"], ["80\\d{7}"], ["89\\d{7}"], 0, 0, 0, 0, ["592(?:4[0-2]|93)\\d{4}"]]], MC: ["377", "00", "(?:[3489]|6\\d)\\d{7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["4"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[389]"]], ["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["6"], "0$1"]], "0"], MD: ["373", "00", "(?:[235-7]\\d|[89]0)\\d{6}", [8], [["(\\d{3})(\\d{5})", "$1 $2", ["[89]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["22|3"], "0$1"], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["[25-7]"], "0$1"]], "0"], ME: ["382", "00", "(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2-9]"], "0$1"]], "0"], MF: ["590", "00", "(?:590|(?:69|80)\\d|976)\\d{6}", [9], 0, "0", 0, 0, 0, 0, 0, [["590(?:0[079]|[14]3|[27][79]|30|5[0-268]|87)\\d{4}"], ["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"], ["80[0-5]\\d{6}"], 0, 0, 0, 0, 0, ["976[01]\\d{5}"]]], MG: ["261", "00", "[23]\\d{8}", [9], [["(\\d{2})(\\d{2})(\\d{3})(\\d{2})", "$1 $2 $3 $4", ["[23]"], "0$1"]], "0", 0, "0|([24-9]\\d{6})$", "20$1"], MH: ["692", "011", "329\\d{4}|(?:[256]\\d|45)\\d{5}", [7], [["(\\d{3})(\\d{4})", "$1-$2", ["[2-6]"]]], "1"], MK: ["389", "00", "[2-578]\\d{7}", [8], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["2|34[47]|4(?:[37]7|5[47]|64)"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[347]"], "0$1"], ["(\\d{3})(\\d)(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[58]"], "0$1"]], "0"], ML: ["223", "00", "[24-9]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[24-9]"]]]], MM: ["95", "00", "1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}", [6, 7, 8, 9, 10], [["(\\d)(\\d{2})(\\d{3})", "$1 $2 $3", ["16|2"], "0$1"], ["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["[45]|6(?:0[23]|[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-6]"], "0$1"], ["(\\d)(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[12]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[4-7]|8[1-35]"], "0$1"], ["(\\d)(\\d{3})(\\d{4,6})", "$1 $2 $3", ["9(?:2[0-4]|[35-9]|4[137-9])"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"], "0$1"], ["(\\d)(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["92"], "0$1"], ["(\\d)(\\d{5})(\\d{4})", "$1 $2 $3", ["9"], "0$1"]], "0"], MN: ["976", "001", "[12]\\d{7,9}|[57-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", ["[57-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, "1|([2-9]\\d{6})$", "670$1", 0, "670"], MQ: ["596", "00", "(?:69|80)\\d{7}|(?:59|97)6\\d{6}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[569]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0$1"]], "0"], MR: ["222", "00", "(?:[2-4]\\d\\d|800)\\d{5}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-48]"]]]], MS: ["1", "011", "(?:[58]\\d\\d|664|900)\\d{7}", [10], 0, "1", 0, "1|([34]\\d{6})$", "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])", "(?:5|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", ["5"]], ["(\\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", ["[3467]|9[13-9]"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[89]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], MW: ["265", "00", "(?:[129]\\d|31|77|88)\\d{7}|1\\d{6}", [7, 9], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["1[2-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[137-9]"], "0$1"]], "0"], MX: ["52", "0[09]", "1(?:(?:44|99)[1-9]|65[0-689])\\d{7}|(?:1(?:[017]\\d|[235][1-9]|4[0-35-9]|6[0-46-9]|8[1-79]|9[1-8])|[2-9]\\d)\\d{8}", [10, 11], [["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["33|5[56]|81"], 0, 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2-9]"], 0, 1], ["(\\d)(\\d{2})(\\d{4})(\\d{4})", "$2 $3 $4", ["1(?:33|5[56]|81)"], 0, 1], ["(\\d)(\\d{3})(\\d{3})(\\d{4})", "$2 $3 $4", ["1"], 0, 1]], "01", 0, "0(?:[12]|4[45])|1", 0, 0, 0, 0, "00"], MY: ["60", "00", "1\\d{8,9}|(?:3\\d|[4-9])\\d{7}", [8, 9, 10], [["(\\d)(\\d{3})(\\d{4})", "$1-$2 $3", ["[4-79]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1-$2 $3", ["1(?:[02469]|[378][1-9])|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[36-8]"]], ["(\\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[04]"]]]], NF: ["672", "00", "[13]\\d{5}", [6], [["(\\d{2})(\\d{4})", "$1 $2", ["1[0-3]"]], ["(\\d)(\\d{5})", "$1 $2", ["[13]"]]], 0, 0, "([0-258]\\d{4})$", "3$1"], NG: ["234", "009", "(?:[124-7]|9\\d{3})\\d{6}|[1-9]\\d{7}|[78]\\d{9,13}", [7, 8, 10, 11, 12, 13, 14], [["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["78"], "0$1"], ["(\\d)(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[12]|9(?:0[3-9]|[1-9])"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2,3})", "$1 $2 $3", ["[3-7]|8[2-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[7-9]"], "0$1"], ["(\\d{3})(\\d{4})(\\d{4,5})", "$1 $2 $3", ["[78]"], "0$1"], ["(\\d{3})(\\d{5})(\\d{5,6})", "$1 $2 $3", ["[78]"], "0$1"]], "0"], NI: ["505", "00", "(?:1800|[25-8]\\d{3})\\d{4}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[125-8]"]]]], NL: ["31", "00", "(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}", [5, 6, 7, 8, 9, 10, 11], [["(\\d{3})(\\d{4,7})", "$1 $2", ["[89]0"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["66"], "0$1"], ["(\\d)(\\d{8})", "$1 $2", ["6"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1-578]|91"], "0$1"], ["(\\d{3})(\\d{3})(\\d{5})", "$1 $2 $3", ["9"], "0$1"]], "0"], NO: ["47", "00", "(?:0|[2-9]\\d{3})\\d{4}", [5, 8], [["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["[489]|59"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[235-7]"]]], 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-579]|6[2-6])"], "0$1"], ["(\\d{3})(\\d{7})", "$1-$2", ["9"]]], "0"], NR: ["674", "00", "(?:444|(?:55|8\\d)\\d|666)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[4-68]"]]]], NU: ["683", "00", "(?:[47]|888\\d)\\d{3}", [4, 7], [["(\\d{3})(\\d{4})", "$1 $2", ["8"]]]], NZ: ["64", "0(?:0|161)", "[29]\\d{7,9}|50\\d{5}(?:\\d{2,3})?|6[0-35-9]\\d{6}|7\\d{7,8}|8\\d{4,9}|(?:11\\d|[34])\\d{7}", [5, 6, 7, 8, 9, 10], [["(\\d{2})(\\d{3,8})", "$1 $2", ["8[1-579]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["50[036-8]|[89]0", "50(?:[0367]|88)|[89]0"], "0$1"], ["(\\d)(\\d{3})(\\d{4})", "$1-$2 $3", ["24|[346]|7[2-57-9]|9[2-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2(?:10|74)|[59]|80"], "0$1"], ["(\\d{2})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["1|2[028]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,5})", "$1 $2 $3", ["2(?:[169]|7[0-35-9])|7|86"], "0$1"]], "0", 0, 0, 0, 0, 0, 0, "00"], OM: ["968", "00", "(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}", [7, 8, 9], [["(\\d{3})(\\d{4,6})", "$1 $2", ["[58]"]], ["(\\d{2})(\\d{6})", "$1 $2", ["2"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[179]"]]]], PA: ["507", "00", "(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}", [7, 8, 10, 11], [["(\\d{3})(\\d{4})", "$1-$2", ["[1-57-9]"]], ["(\\d{4})(\\d{4})", "$1-$2", ["[68]"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"]]]], PE: ["51", "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, 0, " 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\\d{5}(?:\\d{2})?|8\\d{9}|[1-9]\\d{6}(?:\\d{2})?", [6, 7, 8, 9, 10], [["(\\d{5})", "$1", ["19"]], ["(\\d{3})(\\d{3})", "$1 $2", ["11|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]|80\\d\\d)\\d{5}", [6, 9], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["[45]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0$1"]], "0"], PR: ["1", "011", "(?:[589]\\d\\d|787)\\d{7}", [10], 0, "1", 0, 0, 0, 0, "787|939"], PS: ["970", "00", "[2489]2\\d{6}|(?:1\\d|5)\\d{8}", [8, 9, 10], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["[2489]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["5"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1"]]], "0"], PT: ["351", "00", "1693\\d{5}|(?:[26-9]\\d|30)\\d{7}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["2[12]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["16|[236-9]"]]]], PW: ["680", "01[12]", "(?:[24-8]\\d\\d|345|900)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-9]"]]]], PY: ["595", "00", "59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}", [6, 7, 8, 9, 10, 11], [["(\\d{3})(\\d{3,6})", "$1 $2", ["[2-9]0"], "0$1"], ["(\\d{2})(\\d{5})", "$1 $2", ["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"], "(0$1)"], ["(\\d{3})(\\d{4,5})", "$1 $2", ["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["87"]], ["(\\d{3})(\\d{6})", "$1 $2", ["9(?:[5-79]|8[1-6])"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-8]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["9"]]], "0"], QA: ["974", "00", "[2-7]\\d{7}|800\\d{4}(?:\\d{2})?|2\\d{6}", [7, 8, 9], [["(\\d{3})(\\d{4})", "$1 $2", ["2[126]|8"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[2-7]"]]]], RE: ["262", "00", "9769\\d{5}|(?:26|[68]\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2689]"], "0$1"]], "0", 0, 0, 0, 0, "26[23]|69|[89]"], RO: ["40", "00", "(?:[2378]\\d|90)\\d{7}|[23]\\d{5}", [6, 9], [["(\\d{3})(\\d{3})", "$1 $2", ["2[3-6]", "2[3-6]\\d9"], "0$1"], ["(\\d{2})(\\d{4})", "$1 $2", ["219|31"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[23]1"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[237-9]"], "0$1"]], "0", 0, 0, 0, 0, 0, 0, 0, " int "], RS: ["381", "00", "38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}", [6, 7, 8, 9, 10, 11, 12], [["(\\d{3})(\\d{3,9})", "$1 $2", ["(?:2[389]|39)0|[7-9]"], "0$1"], ["(\\d{2})(\\d{5,10})", "$1 $2", ["[1-36]"], "0$1"]], "0"], RU: ["7", "810", "8\\d{13}|[347-9]\\d{9}", [10, 14], [["(\\d{4})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["7(?:1[0-8]|2[1-9])", "7(?:1(?:[0-6]2|7|8[27])|2(?:1[23]|[2-9]2))", "7(?:1(?:[0-6]2|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"], "8 ($1)", 1], ["(\\d{5})(\\d)(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["7(?:1[0-68]|2[1-9])", "7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))", "7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"], "8 ($1)", 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["7"], "8 ($1)", 1], ["(\\d{3})(\\d{3})(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["[349]|8(?:[02-7]|1[1-8])"], "8 ($1)", 1], ["(\\d{4})(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["8"], "8 ($1)"]], "8", 0, 0, 0, 0, "3[04-689]|[489]", 0, "8~10"], RW: ["250", "00", "(?:06|[27]\\d\\d|[89]00)\\d{6}", [8, 9], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["0"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[7-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["2"]]], "0"], SA: ["966", "00", "92\\d{7}|(?:[15]|8\\d)\\d{8}", [9, 10], [["(\\d{4})(\\d{5})", "$1 $2", ["9"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["5"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["81"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"]]], "0"], SB: ["677", "0[01]", "(?:[1-6]|[7-9]\\d\\d)\\d{4}", [5, 7], [["(\\d{2})(\\d{5})", "$1 $2", ["7|8[4-9]|9(?:[1-8]|9[0-8])"]]]], SC: ["248", "010|0[0-2]", "800\\d{4}|(?:[249]\\d|64)\\d{5}", [7], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[246]|9[57]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], SD: ["249", "00", "[19]\\d{8}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[19]"], "0$1"]], "0"], SE: ["46", "00", "(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}", [6, 7, 8, 9, 10], [["(\\d{2})(\\d{2,3})(\\d{2})", "$1-$2 $3", ["20"], "0$1", 0, "$1 $2 $3"], ["(\\d{3})(\\d{4})", "$1-$2", ["9(?:00|39|44|9)"], "0$1", 0, "$1 $2"], ["(\\d{2})(\\d{3})(\\d{2})", "$1-$2 $3", ["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"], "0$1", 0, "$1 $2 $3"], ["(\\d)(\\d{2,3})(\\d{2})(\\d{2})", "$1-$2 $3 $4", ["8"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{3})(\\d{2,3})(\\d{2})", "$1-$2 $3", ["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"], "0$1", 0, "$1 $2 $3"], ["(\\d{3})(\\d{2,3})(\\d{3})", "$1-$2 $3", ["9(?:00|39|44)"], "0$1", 0, "$1 $2 $3"], ["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})", "$1-$2 $3 $4", ["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1-$2 $3 $4", ["10|7"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d)(\\d{3})(\\d{3})(\\d{2})", "$1-$2 $3 $4", ["8"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1-$2 $3 $4", ["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{3})", "$1-$2 $3 $4", ["9"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1-$2 $3 $4 $5", ["[26]"], "0$1", 0, "$1 $2 $3 $4 $5"]], "0"], SG: ["65", "0[0-3]\\d", "(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}", [8, 10, 11], [["(\\d{4})(\\d{4})", "$1 $2", ["[369]|8(?:0[1-5]|[1-9])"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"]], ["(\\d{4})(\\d{4})(\\d{3})", "$1 $2 $3", ["7"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]]]], SH: ["290", "00", "(?:[256]\\d|8)\\d{3}", [4, 5], 0, 0, 0, 0, 0, 0, "[256]"], SI: ["386", "00|10(?:22|66|88|99)", "[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}", [5, 6, 7, 8], [["(\\d{2})(\\d{3,6})", "$1 $2", ["8[09]|9"], "0$1"], ["(\\d{3})(\\d{5})", "$1 $2", ["59|8"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[37][01]|4[0139]|51|6"], "0$1"], ["(\\d)(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[1-57]"], "(0$1)"]], "0", 0, 0, 0, 0, 0, 0, "00"], SJ: ["47", "00", "0\\d{4}|(?:[489]\\d|[57]9)\\d{6}", [5, 8], 0, 0, 0, 0, 0, 0, "79"], SK: ["421", "00", "[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}", [6, 7, 9], [["(\\d)(\\d{2})(\\d{3,4})", "$1 $2 $3", ["21"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["[3-5][1-8]1", "[3-5][1-8]1[67]"], "0$1"], ["(\\d)(\\d{3})(\\d{3})(\\d{2})", "$1/$2 $3 $4", ["2"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[689]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1/$2 $3 $4", ["[3-5]"], "0$1"]], "0"], SL: ["232", "00", "(?:[237-9]\\d|66)\\d{6}", [8], [["(\\d{2})(\\d{6})", "$1 $2", ["[236-9]"], "(0$1)"]], "0"], SM: ["378", "00", "(?:0549|[5-7]\\d)\\d{6}", [8, 10], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-7]"]], ["(\\d{4})(\\d{6})", "$1 $2", ["0"]]], 0, 0, "([89]\\d{5})$", "0549$1"], SN: ["221", "00", "(?:[378]\\d|93)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"]], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[379]"]]]], SO: ["252", "00", "[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}", [6, 7, 8, 9], [["(\\d{2})(\\d{4})", "$1 $2", ["8[125]"]], ["(\\d{6})", "$1", ["[134]"]], ["(\\d)(\\d{6})", "$1 $2", ["[15]|2[0-79]|3[0-46-8]|4[0-7]"]], ["(\\d)(\\d{7})", "$1 $2", ["24|[67]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[3478]|64|90"]], ["(\\d{2})(\\d{5,7})", "$1 $2", ["1|28|6(?:0[5-7]|[1-35-9])|9[2-9]"]]], "0"], SR: ["597", "00", "(?:[2-5]|68|[78]\\d)\\d{5}", [6, 7], [["(\\d{2})(\\d{2})(\\d{2})", "$1-$2-$3", ["56"]], ["(\\d{3})(\\d{3})", "$1-$2", ["[2-5]"]], ["(\\d{3})(\\d{4})", "$1-$2", ["[6-8]"]]]], SS: ["211", "00", "[19]\\d{8}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[19]"], "0$1"]], "0"], ST: ["239", "00", "(?:22|9\\d)\\d{5}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[29]"]]]], SV: ["503", "00", "[267]\\d{7}|[89]00\\d{4}(?:\\d{4})?", [7, 8, 11], [["(\\d{3})(\\d{4})", "$1 $2", ["[89]"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[267]"]], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["[89]"]]]], SX: ["1", "011", "7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "1|(5\\d{6})$", "721$1", 0, "721"], SY: ["963", "00", "[1-39]\\d{8}|[1-5]\\d{7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[1-5]"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["9"], "0$1", 1]], "0"], SZ: ["268", "00", "0800\\d{4}|(?:[237]\\d|900)\\d{6}", [8, 9], [["(\\d{4})(\\d{4})", "$1 $2", ["[0237]"]], ["(\\d{5})(\\d{4})", "$1 $2", ["9"]]]], TA: ["290", "00", "8\\d{3}", [4], 0, 0, 0, 0, 0, 0, "8"], TC: ["1", "011", "(?:[58]\\d\\d|649|900)\\d{7}", [10], 0, "1", 0, "1|([2-479]\\d{6})$", "649$1", 0, "649"], TD: ["235", "00|16", "(?:22|[69]\\d|77)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2679]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], TG: ["228", "00", "[279]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[279]"]]]], TH: ["66", "00[1-9]", "(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}", [8, 9, 10, 13], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[13-9]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1"]]], "0"], TJ: ["992", "810", "(?:00|[1-57-9]\\d)\\d{7}", [9], [["(\\d{6})(\\d)(\\d{2})", "$1 $2 $3", ["331", "3317"]], ["(\\d{3})(\\d{2})(\\d{4})", "$1 $2 $3", ["[34]7|91[78]"]], ["(\\d{4})(\\d)(\\d{4})", "$1 $2 $3", ["3[1-5]"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[0-57-9]"]]], 0, 0, 0, 0, 0, 0, 0, "8~10"], TK: ["690", "00", "[2-47]\\d{3,6}", [4, 5, 6, 7]], TL: ["670", "00", "7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}", [7, 8], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-489]|70"]], ["(\\d{4})(\\d{4})", "$1 $2", ["7"]]]], TM: ["993", "810", "[1-6]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["12"], "(8 $1)"], ["(\\d{3})(\\d)(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["[1-5]"], "(8 $1)"], ["(\\d{2})(\\d{6})", "$1 $2", ["6"], "8 $1"]], "8", 0, 0, 0, 0, 0, 0, "8~10"], TN: ["216", "00", "[2-57-9]\\d{7}", [8], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-57-9]"]]]], TO: ["676", "00", "(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}", [5, 7], [["(\\d{2})(\\d{3})", "$1-$2", ["[2-4]|50|6[09]|7[0-24-69]|8[05]"]], ["(\\d{4})(\\d{3})", "$1 $2", ["0"]], ["(\\d{3})(\\d{4})", "$1 $2", ["[5-9]"]]]], TR: ["90", "00", "4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}", [7, 10, 12, 13], [["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["512|8[01589]|90"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["5(?:[0-59]|61)", "5(?:[0-59]|616)", "5(?:[0-59]|6161)"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[24][1-8]|3[1-9]"], "(0$1)", 1], ["(\\d{3})(\\d{3})(\\d{6,7})", "$1 $2 $3", ["80"], "0$1", 1]], "0"], TT: ["1", "011", "(?:[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "1|([2-46-8]\\d{6})$", "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]", "(?:[26-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{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, [["5(?:05(?:[2-57-9]\\d\\d|6(?:[0-35-9]\\d|44))|82(?:2(?:0[0-3]|[268]2)|3(?:0[02]|22|33)|4(?:00|4[24]|65|82)|5(?:00|29|58|83)|6(?:00|66|82)|7(?:58|77)|8(?:00|42|88)|9(?:00|9[89])))\\d{4}|(?:2(?:0[1-35-9]|1[02-9]|2[03-589]|3[149]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[01356]|3[0-24679]|4[167]|5[12]|6[014]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[19]|6[1-47]|7[0-5]|8[056])|6(?:0[1-35-9]|1[024-9]|2[03689]|[34][016]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-7]|3[1247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-289]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[0157-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}"], [""], ["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"], ["900[2-9]\\d{6}"], ["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-7]|33|44|66|77|88)[2-9]\\d{6}"]]], UY: ["598", "0(?:0|1[3-9]\\d)", "4\\d{9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}", [7, 8, 10], [["(\\d{3})(\\d{4})", "$1 $2", ["405|8|90"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["9"], "0$1"], ["(\\d{4})(\\d{4})", "$1 $2", ["[124]"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["4"], "0$1"]], "0", 0, 0, 0, 0, 0, 0, "00", " int. "], UZ: ["998", "810", "(?:33|55|[679]\\d|88)\\d{7}", [9], [["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[35-9]"], "8 $1"]], "8", 0, 0, 0, 0, 0, 0, "8~10"], VA: ["39", "00", "0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}", [6, 7, 8, 9, 10, 11], 0, 0, 0, 0, 0, 0, "06698"], VC: ["1", "011", "(?:[58]\\d\\d|784|900)\\d{7}", [10], 0, "1", 0, "1|([2-7]\\d{6})$", "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, "1|([2-578]\\d{6})$", "284$1", 0, "284"], VI: ["1", "011", "[58]\\d{9}|(?:34|90)0\\d{7}", [10], 0, "1", 0, "1|([2-9]\\d{6})$", "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", ["[69]"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[3578]"], "0$1", 1], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["2[48]"], "0$1", 1], ["(\\d{3})(\\d{4})(\\d{3})", "$1 $2 $3", ["2"], "0$1", 1]], "0"], VU: ["678", "00", "[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}", [5, 7], [["(\\d{3})(\\d{4})", "$1 $2", ["[57-9]"]]]], WF: ["681", "00", "(?:40|72)\\d{4}|8\\d{5}(?:\\d{3})?", [6, 9], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["[478]"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"]]]], WS: ["685", "0", "(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}", [5, 6, 7, 10], [["(\\d{5})", "$1", ["[2-5]|6[1-9]"]], ["(\\d{3})(\\d{3,7})", "$1 $2", ["[68]"]], ["(\\d{2})(\\d{5})", "$1 $2", ["7"]]]], XK: ["383", "00", "[23]\\d{7,8}|(?:4\\d\\d|[89]00)\\d{5}", [8, 9], [["(\\d{3})(\\d{5})", "$1 $2", ["[89]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-4]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[23]"], "0$1"]], "0"], YE: ["967", "00", "(?:1|7\\d)\\d{7}|[1-7]\\d{6}", [7, 8, 9], [["(\\d)(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[1-6]|7[24-68]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["7"], "0$1"]], "0"], YT: ["262", "00", "80\\d{7}|(?:26|63)9\\d{6}", [9], 0, "0", 0, 0, 0, 0, "269|63"], ZA: ["27", "00", "[1-79]\\d{8}|8\\d{4,9}", [5, 6, 7, 8, 9, 10], [["(\\d{2})(\\d{3,4})", "$1 $2", ["8[1-4]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2,3})", "$1 $2 $3", ["8[1-4]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["860"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"], "0$1"]], "0"], ZM: ["260", "00", "800\\d{6}|(?:21|63|[79]\\d)\\d{7}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[28]"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["[79]"], "0$1"]], "0"], ZW: ["263", "00", "2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}", [5, 6, 7, 8, 9, 10], [["(\\d{3})(\\d{3,5})", "$1 $2", ["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"], "0$1"], ["(\\d)(\\d{3})(\\d{2,4})", "$1 $2 $3", ["[49]"], "0$1"], ["(\\d{3})(\\d{4})", "$1 $2", ["80"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2", "2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["7"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)", "2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"], "0$1"], ["(\\d{4})(\\d{6})", "$1 $2", ["8"], "0$1"], ["(\\d{2})(\\d{3,5})", "$1 $2", ["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["29[013-9]|39|54"], "0$1"], ["(\\d{4})(\\d{3,5})", "$1 $2", ["(?:25|54)8", "258|5483"], "0$1"]], "0"] }, nonGeographic: { 800: ["800", 0, "(?:005|[1-9]\\d\\d)\\d{5}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["\\d"]]], 0, 0, 0, 0, 0, 0, [0, 0, ["(?:005|[1-9]\\d\\d)\\d{5}"]]], 808: ["808", 0, "[1-9]\\d{7}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[1-9]"]]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, 0, 0, 0, ["[1-9]\\d{7}"]]], 870: ["870", 0, "7\\d{11}|[35-7]\\d{8}", [9, 12], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[35-7]"]]], 0, 0, 0, 0, 0, 0, [0, ["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"]]], 878: ["878", 0, "10\\d{10}", [12], [["(\\d{2})(\\d{5})(\\d{5})", "$1 $2 $3", ["1"]]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, 0, 0, ["10\\d{10}"]]], 881: ["881", 0, "[0-36-9]\\d{8}", [9], [["(\\d)(\\d{3})(\\d{5})", "$1 $2 $3", ["[0-36-9]"]]], 0, 0, 0, 0, 0, 0, [0, ["[0-36-9]\\d{8}"]]], 882: ["882", 0, "[13]\\d{6}(?:\\d{2,5})?|285\\d{9}|(?:[19]\\d|49)\\d{6}", [7, 8, 9, 10, 11, 12], [["(\\d{2})(\\d{5})", "$1 $2", ["16|342"]], ["(\\d{2})(\\d{6})", "$1 $2", ["4"]], ["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["[19]"]], ["(\\d{2})(\\d{4})(\\d{3})", "$1 $2 $3", ["3[23]"]], ["(\\d{2})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["1"]], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["34[57]"]], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["34"]], ["(\\d{2})(\\d{4,5})(\\d{5})", "$1 $2 $3", ["[1-3]"]]], 0, 0, 0, 0, 0, 0, [0, ["342\\d{4}|(?:337|49)\\d{6}|3(?:2|47|7\\d{3})\\d{7}", [7, 8, 9, 10, 12]], 0, 0, 0, 0, 0, 0, ["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:(?:285\\d\\d|3(?:45|[69]\\d{3}))\\d|9[89])\\d{6}"]]], 883: ["883", 0, "(?:210|370\\d\\d)\\d{7}|51\\d{7}(?:\\d{3})?", [9, 10, 12], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["510"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["2"]], ["(\\d{4})(\\d{4})(\\d{4})", "$1 $2 $3", ["51[13]"]], ["(\\d{3})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["[35]"]]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, 0, 0, ["(?:210|(?:370[1-9]|51[013]0)\\d)\\d{7}|5100\\d{5}"]]], 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}"]]] } };
3
- function n(t, n) { var r = Array.prototype.slice.call(n); return r.push(e), t.apply(this, r); }
4
- function r(t) { return r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) { return typeof t; } : function (t) { return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, r(t); }
5
- function i(t, e) {
6
- if (e && ("object" === r(e) || "function" == typeof e))
7
- return e;
8
- if (void 0 !== e)
9
- throw new TypeError("Derived constructors may only return object or undefined");
10
- return a(t);
11
- }
12
- function a(t) {
13
- if (void 0 === t)
14
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
15
- return t;
16
- }
17
- function o(t) {
18
- var e = "function" == typeof Map ? new Map : void 0;
19
- return o = function (t) {
20
- if (null === t || (n = t, -1 === Function.toString.call(n).indexOf("[native code]")))
21
- return t;
22
- var n;
23
- if ("function" != typeof t)
24
- throw new TypeError("Super expression must either be null or a function");
25
- if (void 0 !== e) {
26
- if (e.has(t))
27
- return e.get(t);
28
- e.set(t, r);
29
- }
30
- function r() { return u(t, arguments, c(this).constructor); }
31
- return r.prototype = Object.create(t.prototype, { constructor: { value: r, enumerable: !1, writable: !0, configurable: !0 } }), l(r, t);
32
- }, o(t);
33
- }
34
- function u(t, e, n) { return u = $() ? Reflect.construct : function (t, e, n) { var r = [null]; r.push.apply(r, e); var d = new (Function.bind.apply(t, r)); return n && l(d, n.prototype), d; }, u.apply(null, arguments); }
35
- function $() {
36
- if ("undefined" == typeof Reflect || !Reflect.construct)
37
- return !1;
38
- if (Reflect.construct.sham)
39
- return !1;
40
- if ("function" == typeof Proxy)
41
- return !0;
42
- try {
43
- return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function () { }))), !0;
44
- }
45
- catch (t) {
46
- return !1;
47
- }
48
- }
49
- function l(t, e) { return l = Object.setPrototypeOf || function (t, e) { return t.__proto__ = e, t; }, l(t, e); }
50
- function c(t) { return c = Object.setPrototypeOf ? Object.getPrototypeOf : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, c(t); }
51
- var s = function (t) {
52
- !function (t, e) {
53
- if ("function" != typeof e && null !== e)
54
- throw new TypeError("Super expression must either be null or a function");
55
- t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && l(t, e);
56
- }(f, t);
57
- var e, n, r, s = (e = f, n = $(), function () {
58
- var t, r = c(e);
59
- if (n) {
60
- var d = c(this).constructor;
61
- t = Reflect.construct(r, arguments, d);
62
- }
63
- else
64
- t = r.apply(this, arguments);
65
- return i(this, t);
66
- });
67
- function f(t) {
68
- var e;
69
- return function (t, e) {
70
- if (!(t instanceof e))
71
- throw new TypeError("Cannot call a class as a function");
72
- }(this, f), e = s.call(this, t), Object.setPrototypeOf(a(e), f.prototype), e.name = e.constructor.name, e;
73
- }
74
- return r = f, Object.defineProperty(r, "prototype", { writable: !1 }), r;
75
- }(o(Error)), f = "0-90-9٠-٩۰-۹", h = "  ­​⁠ ", y = "".concat("-‐-―−ー-").concat("//").concat("..").concat(h).concat("()()[]\\[\\]").concat("~⁓∼~"), m = "++";
76
- function p(t, e) {
77
- t = t.split("-"), e = e.split("-");
78
- for (var n = t[0].split("."), r = e[0].split("."), d = 0; d < 3; d++) {
79
- var i = Number(n[d]), a = Number(r[d]);
80
- if (i > a)
81
- return 1;
82
- if (a > i)
83
- return -1;
84
- if (!isNaN(i) && isNaN(a))
85
- return 1;
86
- if (isNaN(i) && !isNaN(a))
87
- return -1;
88
- }
89
- return t[1] && e[1] ? t[1] > e[1] ? 1 : t[1] < e[1] ? -1 : 0 : !t[1] && e[1] ? 1 : t[1] && !e[1] ? -1 : 0;
90
- }
91
- function g(t) { return g = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) { return typeof t; } : function (t) { return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, g(t); }
92
- function b(t, e) {
93
- if (!(t instanceof e))
94
- throw new TypeError("Cannot call a class as a function");
95
- }
96
- function v(t, e) {
97
- for (var n = 0; n < e.length; n++) {
98
- var r = e[n];
99
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r);
100
- }
101
- }
102
- function C(t, e, n) { return e && v(t.prototype, e), n && v(t, n), Object.defineProperty(t, "prototype", { writable: !1 }), t; }
103
- var N = " ext. ", P = /^\d+$/, O = function () {
104
- function t(e) {
105
- b(this, t), function (t) {
106
- if (!t)
107
- throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");
108
- if (!I(t) || !I(t.countries))
109
- 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(I(t) ? "an object of shape: { " + Object.keys(t).join(", ") + " }" : "a " + T(t) + ": " + t, "."));
110
- }(e), this.metadata = e, D.call(this, e);
111
- }
112
- return C(t, [{ key: "getCountries", value: function () { return Object.keys(this.metadata.countries).filter((function (t) { return "001" !== t; })); } }, { key: "getCountryMetadata", value: function (t) { return this.metadata.countries[t]; } }, { key: "nonGeographic", value: function () {
113
- if (!(this.v1 || this.v2 || this.v3))
114
- return this.metadata.nonGeographic || this.metadata.nonGeographical;
115
- } }, { key: "hasCountry", value: function (t) { return void 0 !== this.getCountryMetadata(t); } }, { key: "hasCallingCode", value: function (t) {
116
- if (this.getCountryCodesForCallingCode(t))
117
- return !0;
118
- if (this.nonGeographic()) {
119
- if (this.nonGeographic()[t])
120
- return !0;
121
- }
122
- else {
123
- var e = this.countryCallingCodes()[t];
124
- if (e && 1 === e.length && "001" === e[0])
125
- return !0;
126
- }
127
- } }, { key: "isNonGeographicCallingCode", value: function (t) { return this.nonGeographic() ? !!this.nonGeographic()[t] : !this.getCountryCodesForCallingCode(t); } }, { key: "country", value: function (t) { return this.selectNumberingPlan(t); } }, { key: "selectNumberingPlan", value: function (t, e) {
128
- if (t && P.test(t) && (e = t, t = null), t && "001" !== t) {
129
- if (!this.hasCountry(t))
130
- throw new Error("Unknown country: ".concat(t));
131
- this.numberingPlan = new x(this.getCountryMetadata(t), this);
132
- }
133
- else if (e) {
134
- if (!this.hasCallingCode(e))
135
- throw new Error("Unknown calling code: ".concat(e));
136
- this.numberingPlan = new x(this.getNumberingPlanMetadata(e), this);
137
- }
138
- else
139
- this.numberingPlan = void 0;
140
- return this;
141
- } }, { key: "getCountryCodesForCallingCode", value: function (t) {
142
- var e = this.countryCallingCodes()[t];
143
- if (e) {
144
- if (1 === e.length && 3 === e[0].length)
145
- return;
146
- return e;
147
- }
148
- } }, { key: "getCountryCodeForCallingCode", value: function (t) {
149
- var e = this.getCountryCodesForCallingCode(t);
150
- if (e)
151
- return e[0];
152
- } }, { key: "getNumberingPlanMetadata", value: function (t) {
153
- var e = this.getCountryCodeForCallingCode(t);
154
- if (e)
155
- return this.getCountryMetadata(e);
156
- if (this.nonGeographic()) {
157
- var n = this.nonGeographic()[t];
158
- if (n)
159
- return n;
160
- }
161
- else {
162
- var r = this.countryCallingCodes()[t];
163
- if (r && 1 === r.length && "001" === r[0])
164
- return this.metadata.countries["001"];
165
- }
166
- } }, { key: "countryCallingCode", value: function () { return this.numberingPlan.callingCode(); } }, { key: "IDDPrefix", value: function () { return this.numberingPlan.IDDPrefix(); } }, { key: "defaultIDDPrefix", value: function () { return this.numberingPlan.defaultIDDPrefix(); } }, { key: "nationalNumberPattern", value: function () { return this.numberingPlan.nationalNumberPattern(); } }, { key: "possibleLengths", value: function () { return this.numberingPlan.possibleLengths(); } }, { key: "formats", value: function () { return this.numberingPlan.formats(); } }, { key: "nationalPrefixForParsing", value: function () { return this.numberingPlan.nationalPrefixForParsing(); } }, { key: "nationalPrefixTransformRule", value: function () { return this.numberingPlan.nationalPrefixTransformRule(); } }, { key: "leadingDigits", value: function () { return this.numberingPlan.leadingDigits(); } }, { key: "hasTypes", value: function () { return this.numberingPlan.hasTypes(); } }, { key: "type", value: function (t) { return this.numberingPlan.type(t); } }, { key: "ext", value: function () { return this.numberingPlan.ext(); } }, { key: "countryCallingCodes", value: function () { return this.v1 ? this.metadata.country_phone_code_to_countries : this.metadata.country_calling_codes; } }, { key: "chooseCountryByCountryCallingCode", value: function (t) { return this.selectNumberingPlan(t); } }, { key: "hasSelectedNumberingPlan", value: function () { return void 0 !== this.numberingPlan; } }]), t;
167
- }(), x = function () {
168
- function t(e, n) { b(this, t), this.globalMetadataObject = n, this.metadata = e, D.call(this, n.metadata); }
169
- return C(t, [{ key: "callingCode", value: function () { return this.metadata[0]; } }, { key: "getDefaultCountryMetadataForRegion", value: function () { return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode()); } }, { key: "IDDPrefix", value: function () {
170
- if (!this.v1 && !this.v2)
171
- return this.metadata[1];
172
- } }, { key: "defaultIDDPrefix", value: function () {
173
- if (!this.v1 && !this.v2)
174
- return this.metadata[12];
175
- } }, { key: "nationalNumberPattern", value: function () { return this.v1 || this.v2 ? this.metadata[1] : this.metadata[2]; } }, { key: "possibleLengths", value: function () {
176
- if (!this.v1)
177
- return this.metadata[this.v2 ? 2 : 3];
178
- } }, { key: "_getFormats", value: function (t) { return t[this.v1 ? 2 : this.v2 ? 3 : 4]; } }, { key: "formats", value: function () { var t = this, e = this._getFormats(this.metadata) || this._getFormats(this.getDefaultCountryMetadataForRegion()) || []; return e.map((function (e) { return new w(e, t); })); } }, { key: "nationalPrefix", value: function () { return this.metadata[this.v1 ? 3 : this.v2 ? 4 : 5]; } }, { key: "_getNationalPrefixFormattingRule", value: function (t) { return t[this.v1 ? 4 : this.v2 ? 5 : 6]; } }, { key: "nationalPrefixFormattingRule", value: function () { return this._getNationalPrefixFormattingRule(this.metadata) || this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion()); } }, { key: "_nationalPrefixForParsing", value: function () { return this.metadata[this.v1 ? 5 : this.v2 ? 6 : 7]; } }, { key: "nationalPrefixForParsing", value: function () { return this._nationalPrefixForParsing() || this.nationalPrefix(); } }, { key: "nationalPrefixTransformRule", value: function () { return this.metadata[this.v1 ? 6 : this.v2 ? 7 : 8]; } }, { key: "_getNationalPrefixIsOptionalWhenFormatting", value: function () { return !!this.metadata[this.v1 ? 7 : this.v2 ? 8 : 9]; } }, { key: "nationalPrefixIsOptionalWhenFormattingInNationalFormat", value: function () { return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata) || this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion()); } }, { key: "leadingDigits", value: function () { return this.metadata[this.v1 ? 8 : this.v2 ? 9 : 10]; } }, { key: "types", value: function () { return this.metadata[this.v1 ? 9 : this.v2 ? 10 : 11]; } }, { key: "hasTypes", value: function () { return (!this.types() || 0 !== this.types().length) && !!this.types(); } }, { key: "type", value: function (t) {
179
- if (this.hasTypes() && A(this.types(), t))
180
- return new E(A(this.types(), t), this);
181
- } }, { key: "ext", value: function () { return this.v1 || this.v2 ? N : this.metadata[13] || N; } }]), t;
182
- }(), w = function () { function t(e, n) { b(this, t), this._format = e, this.metadata = n; } return C(t, [{ key: "pattern", value: function () { return this._format[0]; } }, { key: "format", value: function () { return this._format[1]; } }, { key: "leadingDigitsPatterns", value: function () { return this._format[2] || []; } }, { key: "nationalPrefixFormattingRule", value: function () { return this._format[3] || this.metadata.nationalPrefixFormattingRule(); } }, { key: "nationalPrefixIsOptionalWhenFormattingInNationalFormat", value: function () { return !!this._format[4] || this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat(); } }, { key: "nationalPrefixIsMandatoryWhenFormattingInNationalFormat", value: function () { return this.usesNationalPrefix() && !this.nationalPrefixIsOptionalWhenFormattingInNationalFormat(); } }, { key: "usesNationalPrefix", value: function () { return !(!this.nationalPrefixFormattingRule() || S.test(this.nationalPrefixFormattingRule())); } }, { key: "internationalFormat", value: function () { return this._format[5] || this.format(); } }]), t; }(), S = /^\(?\$1\)?$/, E = function () {
183
- function t(e, n) { b(this, t), this.type = e, this.metadata = n; }
184
- return C(t, [{ key: "pattern", value: function () { return this.metadata.v1 ? this.type : this.type[0]; } }, { key: "possibleLengths", value: function () {
185
- if (!this.metadata.v1)
186
- return this.type[1] || this.metadata.possibleLengths();
187
- } }]), t;
188
- }();
189
- function A(t, e) {
190
- switch (e) {
191
- case "FIXED_LINE": return t[0];
192
- case "MOBILE": return t[1];
193
- case "TOLL_FREE": return t[2];
194
- case "PREMIUM_RATE": return t[3];
195
- case "PERSONAL_NUMBER": return t[4];
196
- case "VOICEMAIL": return t[5];
197
- case "UAN": return t[6];
198
- case "PAGER": return t[7];
199
- case "VOIP": return t[8];
200
- case "SHARED_COST": return t[9];
201
- }
202
- }
203
- var I = function (t) { return "object" === g(t); }, T = function (t) { return g(t); };
204
- function j(t, e) { return (e = new O(e)).hasCountry(t) ? e.country(t).ext() : N; }
205
- function F(t, e) {
206
- if ((e = new O(e)).hasCountry(t))
207
- return e.country(t).countryCallingCode();
208
- throw new Error("Unknown country: ".concat(t));
209
- }
210
- function k(t, e) { return void 0 !== e.countries[t]; }
211
- function D(t) { var e = t.version; "number" == typeof e ? (this.v1 = 1 === e, this.v2 = 2 === e, this.v3 = 3 === e, this.v4 = 4 === e) : e ? -1 === p(e, "1.2.0") ? this.v2 = !0 : -1 === p(e, "1.7.35") ? this.v3 = !0 : this.v4 = !0 : this.v1 = !0; }
212
- var R = function (t) { return "([".concat(f, "]{1,").concat(t, "})"); };
213
- function M(t) { var e = "#?"; return ";ext=" + R("20") + "|" + ("[  \\t,]*(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)[:\\..]?[  \\t,-]*" + R("20") + e) + "|" + ("[  \\t,]*(?:[xx##~~]|int|int)[:\\..]?[  \\t,-]*" + R("9") + e) + "|" + ("[- ]+" + R("6") + "#") + "|" + ("[  \\t]*(?:,{2}|;)[:\\..]?[  \\t,-]*" + R("15") + e) + "|" + ("[  \\t]*(?:,)+[:\\..]?[  \\t,-]*" + R("9") + e); }
214
- var L = "[++]{0,1}(?:[" + y + "]*[" + "0-90-9٠-٩۰-۹]){3,}[" + y + "0-90-9٠-٩۰-۹]*", _ = new RegExp("^[++]{0,1}(?:[" + y + "]*[" + "0-90-9٠-٩۰-۹]){1,2}$", "i"), G = L + "(?:" + M() + ")?", B = new RegExp("^[0-90-9٠-٩۰-۹]{2}$|^" + G + "$", "i");
215
- function U(t) { return t.length >= 2 && B.test(t); }
216
- var V = new RegExp("(?:" + M() + ")$", "i");
217
- function W(t, e) {
218
- var n = "undefined" != typeof Symbol && t[Symbol.iterator] || t["@@iterator"];
219
- if (n)
220
- return (n = n.call(t)).next.bind(n);
221
- if (Array.isArray(t) || (n = function (t, e) {
222
- if (!t)
223
- return;
224
- if ("string" == typeof t)
225
- return H(t, e);
226
- var n = Object.prototype.toString.call(t).slice(8, -1);
227
- "Object" === n && t.constructor && (n = t.constructor.name);
228
- if ("Map" === n || "Set" === n)
229
- return Array.from(t);
230
- if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
231
- return H(t, e);
232
- }(t)) || e && t && "number" == typeof t.length) {
233
- n && (t = n);
234
- var r = 0;
235
- return function () { return r >= t.length ? { done: !0 } : { done: !1, value: t[r++] }; };
236
- }
237
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
238
- }
239
- function H(t, e) {
240
- (null == e || e > t.length) && (e = t.length);
241
- for (var n = 0, r = new Array(e); n < e; n++)
242
- r[n] = t[n];
243
- return r;
244
- }
245
- var K = { 0: "0", 1: "1", 2: "2", 3: "3", 4: "4", 5: "5", 6: "6", 7: "7", 8: "8", 9: "9", "0": "0", "1": "1", "2": "2", "3": "3", "4": "4", "5": "5", "6": "6", "7": "7", "8": "8", "9": "9", "٠": "0", "١": "1", "٢": "2", "٣": "3", "٤": "4", "٥": "5", "٦": "6", "٧": "7", "٨": "8", "٩": "9", "۰": "0", "۱": "1", "۲": "2", "۳": "3", "۴": "4", "۵": "5", "۶": "6", "۷": "7", "۸": "8", "۹": "9" };
246
- function Y(t) { return K[t]; }
247
- function Z(t) {
248
- for (var e, n = "", r = W(t.split("")); !(e = r()).done;) {
249
- var d = Y(e.value);
250
- d && (n += d);
251
- }
252
- return n;
253
- }
254
- function X(t, e) {
255
- var n = "undefined" != typeof Symbol && t[Symbol.iterator] || t["@@iterator"];
256
- if (n)
257
- return (n = n.call(t)).next.bind(n);
258
- if (Array.isArray(t) || (n = function (t, e) {
259
- if (!t)
260
- return;
261
- if ("string" == typeof t)
262
- return J(t, e);
263
- var n = Object.prototype.toString.call(t).slice(8, -1);
264
- "Object" === n && t.constructor && (n = t.constructor.name);
265
- if ("Map" === n || "Set" === n)
266
- return Array.from(t);
267
- if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
268
- return J(t, e);
269
- }(t)) || e && t && "number" == typeof t.length) {
270
- n && (t = n);
271
- var r = 0;
272
- return function () { return r >= t.length ? { done: !0 } : { done: !1, value: t[r++] }; };
273
- }
274
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
275
- }
276
- function J(t, e) {
277
- (null == e || e > t.length) && (e = t.length);
278
- for (var n = 0, r = new Array(e); n < e; n++)
279
- r[n] = t[n];
280
- return r;
281
- }
282
- function z(t) {
283
- for (var e, n = "", r = X(t.split("")); !(e = r()).done;) {
284
- n += Q(e.value, n) || "";
285
- }
286
- return n;
287
- }
288
- function Q(t, e) {
289
- if ("+" === t) {
290
- if (e)
291
- return;
292
- return "+";
293
- }
294
- return Y(t);
295
- }
296
- function q(t, e) {
297
- var n = "undefined" != typeof Symbol && t[Symbol.iterator] || t["@@iterator"];
298
- if (n)
299
- return (n = n.call(t)).next.bind(n);
300
- if (Array.isArray(t) || (n = function (t, e) {
301
- if (!t)
302
- return;
303
- if ("string" == typeof t)
304
- return tt(t, e);
305
- var n = Object.prototype.toString.call(t).slice(8, -1);
306
- "Object" === n && t.constructor && (n = t.constructor.name);
307
- if ("Map" === n || "Set" === n)
308
- return Array.from(t);
309
- if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
310
- return tt(t, e);
311
- }(t)) || e && t && "number" == typeof t.length) {
312
- n && (t = n);
313
- var r = 0;
314
- return function () { return r >= t.length ? { done: !0 } : { done: !1, value: t[r++] }; };
315
- }
316
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
317
- }
318
- function tt(t, e) {
319
- (null == e || e > t.length) && (e = t.length);
320
- for (var n = 0, r = new Array(e); n < e; n++)
321
- r[n] = t[n];
322
- return r;
323
- }
324
- function et(t, e) { return nt(t, void 0, e); }
325
- function nt(t, e, n) {
326
- var r = n.type(e), d = r && r.possibleLengths() || n.possibleLengths();
327
- if (!d)
328
- return "IS_POSSIBLE";
329
- if ("FIXED_LINE_OR_MOBILE" === e) {
330
- if (!n.type("FIXED_LINE"))
331
- return nt(t, "MOBILE", n);
332
- var i = n.type("MOBILE");
333
- i && (d = function (t, e) {
334
- for (var n, r = t.slice(), d = q(e); !(n = d()).done;) {
335
- var i = n.value;
336
- t.indexOf(i) < 0 && r.push(i);
337
- }
338
- return r.sort((function (t, e) { return t - e; }));
339
- }(d, i.possibleLengths()));
340
- }
341
- else if (e && !r)
342
- return "INVALID_LENGTH";
343
- var a = t.length, o = d[0];
344
- return o === a ? "IS_POSSIBLE" : o > a ? "TOO_SHORT" : d[d.length - 1] < a ? "TOO_LONG" : d.indexOf(a, 1) >= 0 ? "IS_POSSIBLE" : "INVALID_LENGTH";
345
- }
346
- function rt(t, e, n) {
347
- if (void 0 === e && (e = {}), n = new O(n), e.v2) {
348
- if (!t.countryCallingCode)
349
- throw new Error("Invalid phone number object passed");
350
- n.selectNumberingPlan(t.countryCallingCode);
351
- }
352
- else {
353
- if (!t.phone)
354
- return !1;
355
- if (t.country) {
356
- if (!n.hasCountry(t.country))
357
- throw new Error("Unknown country: ".concat(t.country));
358
- n.country(t.country);
359
- }
360
- else {
361
- if (!t.countryCallingCode)
362
- throw new Error("Invalid phone number object passed");
363
- n.selectNumberingPlan(t.countryCallingCode);
364
- }
365
- }
366
- if (n.possibleLengths())
367
- return dt(t.phone || t.nationalNumber, n);
368
- if (t.countryCallingCode && n.isNonGeographicCallingCode(t.countryCallingCode))
369
- return !0;
370
- throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.');
371
- }
372
- function dt(t, e) { return "IS_POSSIBLE" === et(t, e); }
373
- function it(t, e) {
374
- return function (t) {
375
- if (Array.isArray(t))
376
- return t;
377
- }(t) || function (t, e) {
378
- var n = null == t ? null : "undefined" != typeof Symbol && t[Symbol.iterator] || t["@@iterator"];
379
- if (null == n)
380
- return;
381
- var r, d, i = [], a = !0, o = !1;
382
- try {
383
- for (n = n.call(t); !(a = (r = n.next()).done) && (i.push(r.value), !e || i.length !== e); a = !0)
384
- ;
385
- }
386
- catch (t) {
387
- o = !0, d = t;
388
- }
389
- finally {
390
- try {
391
- a || null == n.return || n.return();
392
- }
393
- finally {
394
- if (o)
395
- throw d;
396
- }
397
- }
398
- return i;
399
- }(t, e) || at(t, e) || function () { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }();
400
- }
401
- function at(t, e) {
402
- if (t) {
403
- if ("string" == typeof t)
404
- return ot(t, e);
405
- var n = Object.prototype.toString.call(t).slice(8, -1);
406
- return "Object" === n && t.constructor && (n = t.constructor.name), "Map" === n || "Set" === n ? Array.from(t) : "Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? ot(t, e) : void 0;
407
- }
408
- }
409
- function ot(t, e) {
410
- (null == e || e > t.length) && (e = t.length);
411
- for (var n = 0, r = new Array(e); n < e; n++)
412
- r[n] = t[n];
413
- return r;
414
- }
415
- function ut(t) {
416
- for (var e, n, r, d = function (t, e) {
417
- var n = "undefined" != typeof Symbol && t[Symbol.iterator] || t["@@iterator"];
418
- if (n)
419
- return (n = n.call(t)).next.bind(n);
420
- if (Array.isArray(t) || (n = at(t)) || e && t && "number" == typeof t.length) {
421
- n && (t = n);
422
- var r = 0;
423
- return function () { return r >= t.length ? { done: !0 } : { done: !1, value: t[r++] }; };
424
- }
425
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
426
- }((t = t.replace(/^tel:/, "tel=")).split(";")); !(r = d()).done;) {
427
- var i = it(r.value.split("="), 2), a = i[0], o = i[1];
428
- switch (a) {
429
- case "tel":
430
- e = o;
431
- break;
432
- case "ext":
433
- n = o;
434
- break;
435
- case "phone-context": "+" === o[0] && (e = o + e);
436
- }
437
- }
438
- if (!U(e))
439
- return {};
440
- var u = { number: e };
441
- return n && (u.ext = n), u;
442
- }
443
- function $t(t) {
444
- var e = t.number, n = t.ext;
445
- if (!e)
446
- return "";
447
- if ("+" !== e[0])
448
- throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');
449
- return "tel:".concat(e).concat(n ? ";ext=" + n : "");
450
- }
451
- function lt(t, e) { return t = t || "", new RegExp("^(?:" + e + ")$").test(t); }
452
- function ct(t, e) {
453
- var n = "undefined" != typeof Symbol && t[Symbol.iterator] || t["@@iterator"];
454
- if (n)
455
- return (n = n.call(t)).next.bind(n);
456
- if (Array.isArray(t) || (n = function (t, e) {
457
- if (!t)
458
- return;
459
- if ("string" == typeof t)
460
- return st(t, e);
461
- var n = Object.prototype.toString.call(t).slice(8, -1);
462
- "Object" === n && t.constructor && (n = t.constructor.name);
463
- if ("Map" === n || "Set" === n)
464
- return Array.from(t);
465
- if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
466
- return st(t, e);
467
- }(t)) || e && t && "number" == typeof t.length) {
468
- n && (t = n);
469
- var r = 0;
470
- return function () { return r >= t.length ? { done: !0 } : { done: !1, value: t[r++] }; };
471
- }
472
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
473
- }
474
- function st(t, e) {
475
- (null == e || e > t.length) && (e = t.length);
476
- for (var n = 0, r = new Array(e); n < e; n++)
477
- r[n] = t[n];
478
- return r;
479
- }
480
- var ft = ["MOBILE", "PREMIUM_RATE", "TOLL_FREE", "SHARED_COST", "VOIP", "PERSONAL_NUMBER", "PAGER", "UAN", "VOICEMAIL"];
481
- function ht(t, e, n) {
482
- if (e = e || {}, t.country) {
483
- (n = new O(n)).selectNumberingPlan(t.country, t.countryCallingCode);
484
- var r = e.v2 ? t.nationalNumber : t.phone;
485
- if (lt(r, n.nationalNumberPattern())) {
486
- if (yt(r, "FIXED_LINE", n))
487
- return n.type("MOBILE") && "" === n.type("MOBILE").pattern() ? "FIXED_LINE_OR_MOBILE" : n.type("MOBILE") ? yt(r, "MOBILE", n) ? "FIXED_LINE_OR_MOBILE" : "FIXED_LINE" : "FIXED_LINE_OR_MOBILE";
488
- for (var d, i = ct(ft); !(d = i()).done;) {
489
- var a = d.value;
490
- if (yt(r, a, n))
491
- return a;
492
- }
493
- }
494
- }
495
- }
496
- function yt(t, e, n) { return !(!(e = n.type(e)) || !e.pattern()) && (!(e.possibleLengths() && e.possibleLengths().indexOf(t.length) < 0) && lt(t, e.pattern())); }
497
- function mt(t, e, n) { return e = e || {}, n = new O(n), !!t.country && (n.selectNumberingPlan(t.country, t.countryCallingCode), n.hasTypes() ? void 0 !== ht(t, e, n.metadata) : lt(e.v2 ? t.nationalNumber : t.phone, n.nationalNumberPattern())); }
498
- function pt(t) { return t.replace(new RegExp("[".concat(y, "]+"), "g"), " ").trim(); }
499
- var gt = /(\$\d)/;
500
- function bt(t, e, n) { var r = n.useInternationalFormat, d = n.withNationalPrefix; n.carrierCode, n.metadata; var i = t.replace(new RegExp(e.pattern()), r ? e.internationalFormat() : d && e.nationalPrefixFormattingRule() ? e.format().replace(gt, e.nationalPrefixFormattingRule()) : e.format()); return r ? pt(i) : i; }
501
- var vt = /^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;
502
- function Ct(t, e) {
503
- var n = "undefined" != typeof Symbol && t[Symbol.iterator] || t["@@iterator"];
504
- if (n)
505
- return (n = n.call(t)).next.bind(n);
506
- if (Array.isArray(t) || (n = function (t, e) {
507
- if (!t)
508
- return;
509
- if ("string" == typeof t)
510
- return Nt(t, e);
511
- var n = Object.prototype.toString.call(t).slice(8, -1);
512
- "Object" === n && t.constructor && (n = t.constructor.name);
513
- if ("Map" === n || "Set" === n)
514
- return Array.from(t);
515
- if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
516
- return Nt(t, e);
517
- }(t)) || e && t && "number" == typeof t.length) {
518
- n && (t = n);
519
- var r = 0;
520
- return function () { return r >= t.length ? { done: !0 } : { done: !1, value: t[r++] }; };
521
- }
522
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
523
- }
524
- function Nt(t, e) {
525
- (null == e || e > t.length) && (e = t.length);
526
- for (var n = 0, r = new Array(e); n < e; n++)
527
- r[n] = t[n];
528
- return r;
529
- }
530
- function Pt(t, e) {
531
- var n = Object.keys(t);
532
- if (Object.getOwnPropertySymbols) {
533
- var r = Object.getOwnPropertySymbols(t);
534
- e && (r = r.filter((function (e) { return Object.getOwnPropertyDescriptor(t, e).enumerable; }))), n.push.apply(n, r);
535
- }
536
- return n;
537
- }
538
- function Ot(t) {
539
- for (var e = 1; e < arguments.length; e++) {
540
- var n = null != arguments[e] ? arguments[e] : {};
541
- e % 2 ? Pt(Object(n), !0).forEach((function (e) { xt(t, e, n[e]); })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : Pt(Object(n)).forEach((function (e) { Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(n, e)); }));
542
- }
543
- return t;
544
- }
545
- function xt(t, e, n) { return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t; }
546
- var wt = { formatExtension: function (t, e, n) { return "".concat(t).concat(n.ext()).concat(e); } };
547
- function St(t, e, n, r) {
548
- if (n = n ? Ot(Ot({}, wt), n) : wt, r = new O(r), t.country && "001" !== t.country) {
549
- if (!r.hasCountry(t.country))
550
- throw new Error("Unknown country: ".concat(t.country));
551
- r.country(t.country);
552
- }
553
- else {
554
- if (!t.countryCallingCode)
555
- return t.phone || "";
556
- r.selectNumberingPlan(t.countryCallingCode);
557
- }
558
- var d, i = r.countryCallingCode(), a = n.v2 ? t.nationalNumber : t.phone;
559
- switch (e) {
560
- case "NATIONAL": return a ? At(d = Et(a, t.carrierCode, "NATIONAL", r, n), t.ext, r, n.formatExtension) : "";
561
- case "INTERNATIONAL": return a ? (d = Et(a, null, "INTERNATIONAL", r, n), At(d = "+".concat(i, " ").concat(d), t.ext, r, n.formatExtension)) : "+".concat(i);
562
- case "E.164": return "+".concat(i).concat(a);
563
- case "RFC3966": return $t({ number: "+".concat(i).concat(a), ext: t.ext });
564
- case "IDD":
565
- if (!n.fromCountry)
566
- return;
567
- var o = function (t, e, n, r, d) {
568
- if (F(r, d.metadata) === n) {
569
- var i = Et(t, e, "NATIONAL", d);
570
- return "1" === n ? n + " " + i : i;
571
- }
572
- var a = function (t, e, n) { var r = new O(n); return r.selectNumberingPlan(t, e), r.defaultIDDPrefix() ? r.defaultIDDPrefix() : vt.test(r.IDDPrefix()) ? r.IDDPrefix() : void 0; }(r, void 0, d.metadata);
573
- if (a)
574
- return "".concat(a, " ").concat(n, " ").concat(Et(t, null, "INTERNATIONAL", d));
575
- }(a, t.carrierCode, i, n.fromCountry, r);
576
- return At(o, t.ext, r, n.formatExtension);
577
- default: throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(e, '"'));
578
- }
579
- }
580
- function Et(t, e, n, r, d) {
581
- var i = function (t, e) {
582
- for (var n, r = Ct(t); !(n = r()).done;) {
583
- var d = n.value;
584
- if (d.leadingDigitsPatterns().length > 0) {
585
- var i = d.leadingDigitsPatterns()[d.leadingDigitsPatterns().length - 1];
586
- if (0 !== e.search(i))
587
- continue;
588
- }
589
- if (lt(e, d.pattern()))
590
- return d;
591
- }
592
- }(r.formats(), t);
593
- return i ? bt(t, i, { useInternationalFormat: "INTERNATIONAL" === n, withNationalPrefix: !i.nationalPrefixIsOptionalWhenFormattingInNationalFormat() || !d || !1 !== d.nationalPrefix, carrierCode: e, metadata: r }) : t;
594
- }
595
- function At(t, e, n, r) { return e ? r(t, e, n) : t; }
596
- function It(t, e) {
597
- var n = Object.keys(t);
598
- if (Object.getOwnPropertySymbols) {
599
- var r = Object.getOwnPropertySymbols(t);
600
- e && (r = r.filter((function (e) { return Object.getOwnPropertyDescriptor(t, e).enumerable; }))), n.push.apply(n, r);
601
- }
602
- return n;
603
- }
604
- function Tt(t) {
605
- for (var e = 1; e < arguments.length; e++) {
606
- var n = null != arguments[e] ? arguments[e] : {};
607
- e % 2 ? It(Object(n), !0).forEach((function (e) { jt(t, e, n[e]); })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : It(Object(n)).forEach((function (e) { Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(n, e)); }));
608
- }
609
- return t;
610
- }
611
- function jt(t, e, n) { return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t; }
612
- function Ft(t, e) {
613
- for (var n = 0; n < e.length; n++) {
614
- var r = e[n];
615
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r);
616
- }
617
- }
618
- var kt = function () {
619
- function t(e, n, r) {
620
- if (function (t, e) {
621
- if (!(t instanceof e))
622
- throw new TypeError("Cannot call a class as a function");
623
- }(this, t), !e)
624
- throw new TypeError("`country` or `countryCallingCode` not passed");
625
- if (!n)
626
- throw new TypeError("`nationalNumber` not passed");
627
- if (!r)
628
- throw new TypeError("`metadata` not passed");
629
- var d = new O(r);
630
- Dt(e) && (this.country = e, d.country(e), e = d.countryCallingCode()), this.countryCallingCode = e, this.nationalNumber = n, this.number = "+" + this.countryCallingCode + this.nationalNumber, this.metadata = r;
631
- }
632
- var e, n;
633
- return e = t, (n = [{ key: "setExt", value: function (t) { this.ext = t; } }, { key: "isPossible", value: function () { return rt(this, { v2: !0 }, this.metadata); } }, { key: "isValid", value: function () { return mt(this, { v2: !0 }, this.metadata); } }, { key: "isNonGeographic", value: function () { return new O(this.metadata).isNonGeographicCallingCode(this.countryCallingCode); } }, { key: "isEqual", value: function (t) { return this.number === t.number && this.ext === t.ext; } }, { key: "getType", value: function () { return ht(this, { v2: !0 }, this.metadata); } }, { key: "format", value: function (t, e) { return St(this, t, e ? Tt(Tt({}, e), {}, { v2: !0 }) : { v2: !0 }, this.metadata); } }, { key: "formatNational", value: function (t) { return this.format("NATIONAL", t); } }, { key: "formatInternational", value: function (t) { return this.format("INTERNATIONAL", t); } }, { key: "getURI", value: function (t) { return this.format("RFC3966", t); } }]) && Ft(e.prototype, n), Object.defineProperty(e, "prototype", { writable: !1 }), t;
634
- }(), Dt = function (t) { return /^[A-Z]{2}$/.test(t); }, Rt = new RegExp("([0-90-9٠-٩۰-۹])");
635
- function Mt(t, e, n, r) {
636
- if (e) {
637
- var d = new O(r);
638
- d.selectNumberingPlan(e, n);
639
- var i = new RegExp(d.IDDPrefix());
640
- if (0 === t.search(i)) {
641
- var a = (t = t.slice(t.match(i)[0].length)).match(Rt);
642
- if (!(a && null != a[1] && a[1].length > 0 && "0" === a[1]))
643
- return t;
644
- }
645
- }
646
- }
647
- function Lt(t, e) {
648
- if (t && e.numberingPlan.nationalPrefixForParsing()) {
649
- var n = new RegExp("^(?:" + e.numberingPlan.nationalPrefixForParsing() + ")"), r = n.exec(t);
650
- if (r) {
651
- var d, i, a, o = r.length - 1, u = o > 0 && r[o];
652
- if (e.nationalPrefixTransformRule() && u)
653
- d = t.replace(n, e.nationalPrefixTransformRule()), o > 1 && (i = r[1]);
654
- else {
655
- var $ = r[0];
656
- d = t.slice($.length), u && (i = r[1]);
657
- }
658
- if (u) {
659
- var l = t.indexOf(r[1]);
660
- t.slice(0, l) === e.numberingPlan.nationalPrefix() && (a = e.numberingPlan.nationalPrefix());
661
- }
662
- else
663
- a = r[0];
664
- return { nationalNumber: d, nationalPrefix: a, carrierCode: i };
665
- }
666
- }
667
- return { nationalNumber: t };
668
- }
669
- function _t(t, e) {
670
- var n = Lt(t, e), r = n.carrierCode, d = n.nationalNumber;
671
- if (d !== t) {
672
- if (!function (t, e, n) {
673
- if (lt(t, n.nationalNumberPattern()) && !lt(e, n.nationalNumberPattern()))
674
- return !1;
675
- return !0;
676
- }(t, d, e))
677
- return { nationalNumber: t };
678
- if (e.possibleLengths() && !function (t, e) {
679
- switch (et(t, e)) {
680
- case "TOO_SHORT":
681
- case "INVALID_LENGTH": return !1;
682
- default: return !0;
683
- }
684
- }(d, e))
685
- return { nationalNumber: t };
686
- }
687
- return { nationalNumber: d, carrierCode: r };
688
- }
689
- function Gt(t, e, n, r) {
690
- var d = e ? F(e, r) : n;
691
- if (0 === t.indexOf(d)) {
692
- (r = new O(r)).selectNumberingPlan(e, n);
693
- var i = t.slice(d.length), a = _t(i, r).nationalNumber, o = _t(t, r).nationalNumber;
694
- if (!lt(o, r.nationalNumberPattern()) && lt(a, r.nationalNumberPattern()) || "TOO_LONG" === et(o, r))
695
- return { countryCallingCode: d, number: i };
696
- }
697
- return { number: t };
698
- }
699
- function Bt(t, e, n, r) {
700
- if (!t)
701
- return {};
702
- if ("+" !== t[0]) {
703
- var d = Mt(t, e, n, r);
704
- if (!d || d === t) {
705
- if (e || n) {
706
- var i = Gt(t, e, n, r), a = i.countryCallingCode, o = i.number;
707
- if (a)
708
- return { countryCallingCode: a, number: o };
709
- }
710
- return { number: t };
711
- }
712
- t = "+" + d;
713
- }
714
- if ("0" === t[1])
715
- return {};
716
- r = new O(r);
717
- for (var u = 2; u - 1 <= 3 && u <= t.length;) {
718
- var $ = t.slice(1, u);
719
- if (r.hasCallingCode($))
720
- return r.selectNumberingPlan($), { countryCallingCode: $, number: t.slice(u) };
721
- u++;
722
- }
723
- return {};
724
- }
725
- function Ut(t, e) {
726
- var n = "undefined" != typeof Symbol && t[Symbol.iterator] || t["@@iterator"];
727
- if (n)
728
- return (n = n.call(t)).next.bind(n);
729
- if (Array.isArray(t) || (n = function (t, e) {
730
- if (!t)
731
- return;
732
- if ("string" == typeof t)
733
- return Vt(t, e);
734
- var n = Object.prototype.toString.call(t).slice(8, -1);
735
- "Object" === n && t.constructor && (n = t.constructor.name);
736
- if ("Map" === n || "Set" === n)
737
- return Array.from(t);
738
- if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
739
- return Vt(t, e);
740
- }(t)) || e && t && "number" == typeof t.length) {
741
- n && (t = n);
742
- var r = 0;
743
- return function () { return r >= t.length ? { done: !0 } : { done: !1, value: t[r++] }; };
744
- }
745
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
746
- }
747
- function Vt(t, e) {
748
- (null == e || e > t.length) && (e = t.length);
749
- for (var n = 0, r = new Array(e); n < e; n++)
750
- r[n] = t[n];
751
- return r;
752
- }
753
- function Wt(t, e, n) {
754
- var r = n.getCountryCodesForCallingCode(t);
755
- if (r)
756
- return 1 === r.length ? r[0] : function (t, e, n) {
757
- n = new O(n);
758
- for (var r, d = Ut(t); !(r = d()).done;) {
759
- var i = r.value;
760
- if (n.country(i), n.leadingDigits()) {
761
- if (e && 0 === e.search(n.leadingDigits()))
762
- return i;
763
- }
764
- else if (ht({ phone: e, country: i }, void 0, n.metadata))
765
- return i;
766
- }
767
- }(r, e, n.metadata);
768
- }
769
- var Ht = new RegExp("[++0-90-9٠-٩۰-۹]"), Kt = new RegExp("[^0-90-9٠-٩۰-۹#]+$");
770
- function Yt(t, e, n) {
771
- if (e = e || {}, n = new O(n), e.defaultCountry && !n.hasCountry(e.defaultCountry)) {
772
- if (e.v2)
773
- throw new s("INVALID_COUNTRY");
774
- throw new Error("Unknown country: ".concat(e.defaultCountry));
775
- }
776
- var r = function (t, e, n) {
777
- if (t && 0 === t.indexOf("tel:"))
778
- return ut(t);
779
- var r = function (t, e, n) {
780
- if (!t)
781
- return;
782
- if (t.length > 250) {
783
- if (n)
784
- throw new s("TOO_LONG");
785
- return;
786
- }
787
- if (!1 === e)
788
- return t;
789
- var r = t.search(Ht);
790
- if (r < 0)
791
- return;
792
- return t.slice(r).replace(Kt, "");
793
- }(t, n, e);
794
- if (!r)
795
- return {};
796
- if (!U(r))
797
- return function (t) { return _.test(t); }(r) ? { error: "TOO_SHORT" } : {};
798
- var d = function (t) {
799
- var e = t.search(V);
800
- if (e < 0)
801
- return {};
802
- for (var n = t.slice(0, e), r = t.match(V), d = 1; d < r.length;) {
803
- if (r[d])
804
- return { number: n, ext: r[d] };
805
- d++;
806
- }
807
- }(r);
808
- if (d.ext)
809
- return d;
810
- return { number: r };
811
- }(t, e.v2, e.extract), d = r.number, i = r.ext, a = r.error;
812
- if (!d) {
813
- if (e.v2) {
814
- if ("TOO_SHORT" === a)
815
- throw new s("TOO_SHORT");
816
- throw new s("NOT_A_NUMBER");
817
- }
818
- return {};
819
- }
820
- var o = function (t, e, n, r) {
821
- var d, i = Bt(z(t), e, n, r.metadata), a = i.countryCallingCode, o = i.number;
822
- if (a)
823
- r.selectNumberingPlan(a);
824
- else {
825
- if (!o || !e && !n)
826
- return {};
827
- r.selectNumberingPlan(e, n), e && (d = e), a = n || F(e, r.metadata);
828
- }
829
- if (!o)
830
- return { countryCallingCode: a };
831
- var u = _t(z(o), r), $ = u.nationalNumber, l = u.carrierCode, c = Wt(a, $, r);
832
- c && (d = c, "001" === c || r.country(d));
833
- return { country: d, countryCallingCode: a, nationalNumber: $, carrierCode: l };
834
- }(d, e.defaultCountry, e.defaultCallingCode, n), u = o.country, $ = o.nationalNumber, l = o.countryCallingCode, c = o.carrierCode;
835
- if (!n.hasSelectedNumberingPlan()) {
836
- if (e.v2)
837
- throw new s("INVALID_COUNTRY");
838
- return {};
839
- }
840
- if (!$ || $.length < 2) {
841
- if (e.v2)
842
- throw new s("TOO_SHORT");
843
- return {};
844
- }
845
- if ($.length > 17) {
846
- if (e.v2)
847
- throw new s("TOO_LONG");
848
- return {};
849
- }
850
- if (e.v2) {
851
- var f = new kt(l, $, n.metadata);
852
- return u && (f.country = u), c && (f.carrierCode = c), i && (f.ext = i), f;
853
- }
854
- var h = !!(e.extended ? n.hasSelectedNumberingPlan() : u) && lt($, n.nationalNumberPattern());
855
- return e.extended ? { country: u, countryCallingCode: l, carrierCode: c, valid: h, possible: !!h || !(!0 !== e.extended || !n.possibleLengths() || !dt($, n)), phone: $, ext: i } : h ? function (t, e, n) { var r = { country: t, phone: e }; n && (r.ext = n); return r; }(u, $, i) : {};
856
- }
857
- function Zt(t, e) {
858
- var n = Object.keys(t);
859
- if (Object.getOwnPropertySymbols) {
860
- var r = Object.getOwnPropertySymbols(t);
861
- e && (r = r.filter((function (e) { return Object.getOwnPropertyDescriptor(t, e).enumerable; }))), n.push.apply(n, r);
862
- }
863
- return n;
864
- }
865
- function Xt(t) {
866
- for (var e = 1; e < arguments.length; e++) {
867
- var n = null != arguments[e] ? arguments[e] : {};
868
- e % 2 ? Zt(Object(n), !0).forEach((function (e) { Jt(t, e, n[e]); })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : Zt(Object(n)).forEach((function (e) { Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(n, e)); }));
869
- }
870
- return t;
871
- }
872
- function Jt(t, e, n) { return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t; }
873
- function zt(t, e, n) { return Yt(t, Xt(Xt({}, e), {}, { v2: !0 }), n); }
874
- function Qt(t) { return Qt = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) { return typeof t; } : function (t) { return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, Qt(t); }
875
- function qt(t, e) {
876
- var n = Object.keys(t);
877
- if (Object.getOwnPropertySymbols) {
878
- var r = Object.getOwnPropertySymbols(t);
879
- e && (r = r.filter((function (e) { return Object.getOwnPropertyDescriptor(t, e).enumerable; }))), n.push.apply(n, r);
880
- }
881
- return n;
882
- }
883
- function te(t, e, n) { return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t; }
884
- function ee(t, e) {
885
- return function (t) {
886
- if (Array.isArray(t))
887
- return t;
888
- }(t) || function (t, e) {
889
- var n = null == t ? null : "undefined" != typeof Symbol && t[Symbol.iterator] || t["@@iterator"];
890
- if (null == n)
891
- return;
892
- var r, d, i = [], a = !0, o = !1;
893
- try {
894
- for (n = n.call(t); !(a = (r = n.next()).done) && (i.push(r.value), !e || i.length !== e); a = !0)
895
- ;
896
- }
897
- catch (t) {
898
- o = !0, d = t;
899
- }
900
- finally {
901
- try {
902
- a || null == n.return || n.return();
903
- }
904
- finally {
905
- if (o)
906
- throw d;
907
- }
908
- }
909
- return i;
910
- }(t, e) || function (t, e) {
911
- if (!t)
912
- return;
913
- if ("string" == typeof t)
914
- return ne(t, e);
915
- var n = Object.prototype.toString.call(t).slice(8, -1);
916
- "Object" === n && t.constructor && (n = t.constructor.name);
917
- if ("Map" === n || "Set" === n)
918
- return Array.from(t);
919
- if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
920
- return ne(t, e);
921
- }(t, e) || function () { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }();
922
- }
923
- function ne(t, e) {
924
- (null == e || e > t.length) && (e = t.length);
925
- for (var n = 0, r = new Array(e); n < e; n++)
926
- r[n] = t[n];
927
- return r;
928
- }
929
- function re() { var t = de(arguments), e = t.text, n = t.options, r = t.metadata; return zt(e, n, r); }
930
- function de(t) {
931
- var e, n, r, d = ee(Array.prototype.slice.call(t), 4), i = d[0], a = d[1], o = d[2], u = d[3];
932
- if ("string" != typeof i)
933
- throw new TypeError("A text for parsing must be a string.");
934
- if (e = i, a && "string" != typeof a) {
935
- if (!ie(a))
936
- throw new Error("Invalid second argument: ".concat(a));
937
- o ? (n = a, r = o) : r = a;
938
- }
939
- else
940
- u ? (n = o, r = u) : (n = void 0, r = o), a && (n = function (t) {
941
- for (var e = 1; e < arguments.length; e++) {
942
- var n = null != arguments[e] ? arguments[e] : {};
943
- e % 2 ? qt(Object(n), !0).forEach((function (e) { te(t, e, n[e]); })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : qt(Object(n)).forEach((function (e) { Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(n, e)); }));
944
- }
945
- return t;
946
- }({ defaultCountry: a }, n));
947
- return { text: e, options: n, metadata: r };
948
- }
949
- var ie = function (t) { return "object" === Qt(t); };
950
- function ae(t, e) {
951
- var n = Object.keys(t);
952
- if (Object.getOwnPropertySymbols) {
953
- var r = Object.getOwnPropertySymbols(t);
954
- e && (r = r.filter((function (e) { return Object.getOwnPropertyDescriptor(t, e).enumerable; }))), n.push.apply(n, r);
955
- }
956
- return n;
957
- }
958
- function oe(t) {
959
- for (var e = 1; e < arguments.length; e++) {
960
- var n = null != arguments[e] ? arguments[e] : {};
961
- e % 2 ? ae(Object(n), !0).forEach((function (e) { ue(t, e, n[e]); })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : ae(Object(n)).forEach((function (e) { Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(n, e)); }));
962
- }
963
- return t;
964
- }
965
- function ue(t, e, n) { return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t; }
966
- function $e(t, e, n) {
967
- e && e.defaultCountry && !k(e.defaultCountry, n) && (e = oe(oe({}, e), {}, { defaultCountry: void 0 }));
968
- try {
969
- return zt(t, e, n);
970
- }
971
- catch (t) {
972
- if (!(t instanceof s))
973
- throw t;
974
- }
975
- }
976
- function le() { var t = de(arguments), e = t.text, n = t.options, r = t.metadata; return $e(e, n, r); }
977
- function ce(t, e) {
978
- var n = Object.keys(t);
979
- if (Object.getOwnPropertySymbols) {
980
- var r = Object.getOwnPropertySymbols(t);
981
- e && (r = r.filter((function (e) { return Object.getOwnPropertyDescriptor(t, e).enumerable; }))), n.push.apply(n, r);
982
- }
983
- return n;
984
- }
985
- function se(t) {
986
- for (var e = 1; e < arguments.length; e++) {
987
- var n = null != arguments[e] ? arguments[e] : {};
988
- e % 2 ? ce(Object(n), !0).forEach((function (e) { fe(t, e, n[e]); })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : ce(Object(n)).forEach((function (e) { Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(n, e)); }));
989
- }
990
- return t;
991
- }
992
- function fe(t, e, n) { return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t; }
993
- function he() { var t = de(arguments), e = t.text, n = t.options, r = t.metadata, d = $e(e, n = se(se({}, n), {}, { extract: !1 }), r); return d && d.isValid() || !1; }
994
- function ye(t, e) {
995
- var n = Object.keys(t);
996
- if (Object.getOwnPropertySymbols) {
997
- var r = Object.getOwnPropertySymbols(t);
998
- e && (r = r.filter((function (e) { return Object.getOwnPropertyDescriptor(t, e).enumerable; }))), n.push.apply(n, r);
999
- }
1000
- return n;
1001
- }
1002
- function me(t) {
1003
- for (var e = 1; e < arguments.length; e++) {
1004
- var n = null != arguments[e] ? arguments[e] : {};
1005
- e % 2 ? ye(Object(n), !0).forEach((function (e) { pe(t, e, n[e]); })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : ye(Object(n)).forEach((function (e) { Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(n, e)); }));
1006
- }
1007
- return t;
1008
- }
1009
- function pe(t, e, n) { return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t; }
1010
- function ge() { var t = de(arguments), e = t.text, n = t.options, r = t.metadata, d = $e(e, n = me(me({}, n), {}, { extract: !1 }), r); return d && d.isPossible() || !1; }
1011
- function be(t, e) {
1012
- var n = Object.keys(t);
1013
- if (Object.getOwnPropertySymbols) {
1014
- var r = Object.getOwnPropertySymbols(t);
1015
- e && (r = r.filter((function (e) { return Object.getOwnPropertyDescriptor(t, e).enumerable; }))), n.push.apply(n, r);
1016
- }
1017
- return n;
1018
- }
1019
- function ve(t) {
1020
- for (var e = 1; e < arguments.length; e++) {
1021
- var n = null != arguments[e] ? arguments[e] : {};
1022
- e % 2 ? be(Object(n), !0).forEach((function (e) { Ce(t, e, n[e]); })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : be(Object(n)).forEach((function (e) { Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(n, e)); }));
1023
- }
1024
- return t;
1025
- }
1026
- function Ce(t, e, n) { return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t; }
1027
- function Ne() {
1028
- var t = de(arguments), e = t.text, n = t.options, r = t.metadata;
1029
- n = ve(ve({}, n), {}, { extract: !1 });
1030
- try {
1031
- var d = zt(e, n, r);
1032
- (r = new O(r)).selectNumberingPlan(d.countryCallingCode);
1033
- var i = et(d.nationalNumber, r);
1034
- if ("IS_POSSIBLE" !== i)
1035
- return i;
1036
- }
1037
- catch (t) {
1038
- if (t instanceof s)
1039
- return t.message;
1040
- throw t;
1041
- }
1042
- }
1043
- function Pe(t, e) {
1044
- for (var n = 0; n < e.length; n++) {
1045
- var r = e[n];
1046
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r);
1047
- }
1048
- }
1049
- function Oe(t, e, n) { return e && Pe(t.prototype, e), n && Pe(t, n), Object.defineProperty(t, "prototype", { writable: !1 }), t; }
1050
- function xe(t, e) {
1051
- if (!(t instanceof e))
1052
- throw new TypeError("Cannot call a class as a function");
1053
- }
1054
- var we = Oe((function t(e, n) { var r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : null, d = arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : null; xe(this, t), this.key = e, this.value = n, this.next = r, this.prev = d; })), Se = function () {
1055
- function t() { var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 10; xe(this, t), this.size = 0, this.limit = e, this.head = null, this.tail = null, this.cache = {}; }
1056
- return Oe(t, [{ key: "put", value: function (t, e) {
1057
- if (this.ensureLimit(), this.head) {
1058
- var n = new we(t, e, this.head);
1059
- this.head.prev = n, this.head = n;
1060
- }
1061
- else
1062
- this.head = this.tail = new we(t, e);
1063
- this.cache[t] = this.head, this.size++;
1064
- } }, { key: "get", value: function (t) {
1065
- if (this.cache[t]) {
1066
- var e = this.cache[t].value;
1067
- return this.remove(t), this.put(t, e), e;
1068
- }
1069
- console.log("Item not available in cache for key ".concat(t));
1070
- } }, { key: "ensureLimit", value: function () { this.size === this.limit && this.remove(this.tail.key); } }, { key: "remove", value: function (t) { var e = this.cache[t]; null !== e.prev ? e.prev.next = e.next : this.head = e.next, null !== e.next ? e.next.prev = e.prev : this.tail = e.prev, delete this.cache[t], this.size--; } }, { key: "clear", value: function () { this.head = null, this.tail = null, this.size = 0, this.cache = {}; } }]), t;
1071
- }();
1072
- function Ee(t, e) {
1073
- for (var n = 0; n < e.length; n++) {
1074
- var r = e[n];
1075
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r);
1076
- }
1077
- }
1078
- var Ae = function () {
1079
- function t(e) {
1080
- !function (t, e) {
1081
- if (!(t instanceof e))
1082
- throw new TypeError("Cannot call a class as a function");
1083
- }(this, t), this.cache = new Se(e);
1084
- }
1085
- var e, n;
1086
- return e = t, (n = [{ key: "getPatternForRegExp", value: function (t) { var e = this.cache.get(t); return e || (e = new RegExp("^" + t), this.cache.put(t, e)), e; } }]) && Ee(e.prototype, n), Object.defineProperty(e, "prototype", { writable: !1 }), t;
1087
- }();
1088
- function Ie(t, e) {
1089
- if (t < 0 || e <= 0 || e < t)
1090
- throw new TypeError;
1091
- return "{".concat(t, ",").concat(e, "}");
1092
- }
1093
- function Te(t, e) { var n = e.search(t); return n >= 0 ? e.slice(0, n) : e; }
1094
- var je = "   ᠎ - \u2028\u2029   ", Fe = "[".concat(je, "]"), ke = "[^".concat(je, "]"), De = "[".concat("0-9٠-٩۰-۹߀-߉०-९০-৯੦-੯૦-૯୦-୯௦-௯౦-౯೦-೯൦-൯๐-๙໐-໙༠-༩၀-၉႐-႙០-៩᠐-᠙᥆-᥏᧐-᧙᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙꘠-꘩꣐-꣙꤀-꤉꧐-꧙꩐-꩙꯰-꯹0-9", "]"), Re = "A-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎↃↄⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〆〱-〵〻〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛥꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", Me = "[".concat(Re, "]"), Le = new RegExp(Me), _e = "[".concat("$¢-¥֏؋৲৳৻૱௹฿៛₠-₹꠸﷼﹩$¢£¥₩", "]"), Ge = new RegExp(_e), Be = "[".concat("̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-ٰٟۖ-ۜ۟-۪ۤۧۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣤ-ࣾऀ-ंऺ़ु-ै्॑-ॗॢॣঁ়ু-ৄ্ৢৣਁਂ਼ੁੂੇੈੋ-੍ੑੰੱੵઁં઼ુ-ૅેૈ્ૢૣଁ଼ିୁ-ୄ୍ୖୢୣஂீ்ా-ీె-ైొ-్ౕౖౢౣ಼ಿೆೌ್ೢೣു-ൄ്ൢൣ්ි-ුූัิ-ฺ็-๎ັິ-ູົຼ່-ໍཱ༹༘༙༵༷-ཾྀ-྄྆྇ྍ-ྗྙ-ྼ࿆ိ-ူဲ-့္်ွှၘၙၞ-ၠၱ-ၴႂႅႆႍႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴឵ិ-ួំ៉-៓៝᠋-᠍ᢩᤠ-ᤢᤧᤨᤲ᤹-᤻ᨘᨗᩖᩘ-ᩞ᩠ᩢᩥ-ᩬᩳ-᩿᩼ᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳ᮀᮁᮢ-ᮥᮨᮩ᯦᮫ᯨᯩᯭᯯ-ᯱᰬ-ᰳᰶ᰷᳐-᳔᳒-᳢᳠-᳨᳭᳴᷀-ᷦ᷼-᷿⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〭꙯ꙴ-꙽ꚟ꛰꛱ꠂ꠆ꠋꠥꠦ꣄꣠-꣱ꤦ-꤭ꥇ-ꥑꦀ-ꦂ꦳ꦶ-ꦹꦼꨩ-ꨮꨱꨲꨵꨶꩃꩌꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫬꫭ꫶ꯥꯨ꯭ﬞ︀-️︠-︦", "]"), Ue = new RegExp(Be), Ve = new RegExp("[\0-€-ÿĀ-ſḀ-ỿƀ-ɏ̀-ͯ]");
1095
- function We(t) { return !(!Le.test(t) && !Ue.test(t)) && Ve.test(t); }
1096
- function He(t) { return "%" === t || Ge.test(t); }
1097
- function Ke(t, e) {
1098
- var n = "undefined" != typeof Symbol && t[Symbol.iterator] || t["@@iterator"];
1099
- if (n)
1100
- return (n = n.call(t)).next.bind(n);
1101
- if (Array.isArray(t) || (n = function (t, e) {
1102
- if (!t)
1103
- return;
1104
- if ("string" == typeof t)
1105
- return Ye(t, e);
1106
- var n = Object.prototype.toString.call(t).slice(8, -1);
1107
- "Object" === n && t.constructor && (n = t.constructor.name);
1108
- if ("Map" === n || "Set" === n)
1109
- return Array.from(t);
1110
- if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
1111
- return Ye(t, e);
1112
- }(t)) || e && t && "number" == typeof t.length) {
1113
- n && (t = n);
1114
- var r = 0;
1115
- return function () { return r >= t.length ? { done: !0 } : { done: !1, value: t[r++] }; };
1116
- }
1117
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1118
- }
1119
- function Ye(t, e) {
1120
- (null == e || e > t.length) && (e = t.length);
1121
- for (var n = 0, r = new Array(e); n < e; n++)
1122
- r[n] = t[n];
1123
- return r;
1124
- }
1125
- var Ze = { POSSIBLE: function (t, e, n) { return !0; }, VALID: function (t, e, n) { return !(!mt(t, void 0, n) || !Xe(t, e.toString())); }, STRICT_GROUPING: function (t, e, n, r) { var d = e.toString(); return !(!mt(t, void 0, n) || !Xe(t, d) || ze(t, d) || !Je(t)) && Qe(t, e, n, en, r); }, EXACT_GROUPING: function (t, e, n, r) { var d = e.toString(); return !(!mt(t, void 0, n) || !Xe(t, d) || ze(t, d) || !Je(t)) && Qe(t, e, n, tn, r); } };
1126
- function Xe(t, e, n) {
1127
- for (var r = 0; r < e.length - 1; r++) {
1128
- var d = e.charAt(r);
1129
- if ("x" === d || "X" === d) {
1130
- var i = e.charAt(r + 1);
1131
- if ("x" === i || "X" === i) {
1132
- if (r++, util.isNumberMatch(t, e.substring(r)) != MatchType.NSN_MATCH)
1133
- return !1;
1134
- }
1135
- else if (Z(e.substring(r)) !== t.ext)
1136
- return !1;
1137
- }
1138
- }
1139
- return !0;
1140
- }
1141
- function Je(t, e) {
1142
- if ("FROM_DEFAULT_COUNTRY" != t.getCountryCodeSource())
1143
- return !0;
1144
- var n = util.getRegionCodeForCountryCode(t.getCountryCode()), r = util.getMetadataForRegion(n);
1145
- if (null == r)
1146
- return !0;
1147
- var d = util.getNationalSignificantNumber(t), i = util.chooseFormattingPatternForNumber(r.numberFormats(), d);
1148
- if (i && i.getNationalPrefixFormattingRule().length > 0) {
1149
- if (i.getNationalPrefixOptionalWhenFormatting())
1150
- return !0;
1151
- if (PhoneNumberUtil.formattingRuleHasFirstGroupOnly(i.getNationalPrefixFormattingRule()))
1152
- return !0;
1153
- var a = PhoneNumberUtil.normalizeDigitsOnly(t.getRawInput());
1154
- return util.maybeStripNationalPrefixAndCarrierCode(a, r, null);
1155
- }
1156
- return !0;
1157
- }
1158
- function ze(t, e) {
1159
- var n = e.indexOf("/");
1160
- if (n < 0)
1161
- return !1;
1162
- var r = e.indexOf("/", n + 1);
1163
- return !(r < 0) && (!(t.getCountryCodeSource() === CountryCodeSource.FROM_NUMBER_WITH_PLUS_SIGN || t.getCountryCodeSource() === CountryCodeSource.FROM_NUMBER_WITHOUT_PLUS_SIGN) || PhoneNumberUtil.normalizeDigitsOnly(e.substring(0, n)) !== String(t.getCountryCode()) || e.slice(r + 1).indexOf("/") >= 0);
1164
- }
1165
- function Qe(t, e, n, r, d) {
1166
- var i = normalizeDigits(e, !0), a = qe(n, t, null);
1167
- if (r(n, t, i, a))
1168
- return !0;
1169
- var o = MetadataManager.getAlternateFormatsForCountry(t.getCountryCode()), u = util.getNationalSignificantNumber(t);
1170
- if (o)
1171
- for (var $, l = Ke(o.numberFormats()); !($ = l()).done;) {
1172
- var c = $.value;
1173
- if (c.leadingDigitsPatterns().length > 0)
1174
- if (!d.getPatternForRegExp("^" + c.leadingDigitsPatterns()[0]).test(u))
1175
- continue;
1176
- if (r(n, t, i, a = qe(n, t, c)))
1177
- return !0;
1178
- }
1179
- return !1;
1180
- }
1181
- function qe(t, e, n) {
1182
- if (n) {
1183
- var r = util.getNationalSignificantNumber(e);
1184
- return util.formatNsnUsingPattern(r, n, "RFC3966", t).split("-");
1185
- }
1186
- var d = formatNumber(e, "RFC3966", t), i = d.indexOf(";");
1187
- i < 0 && (i = d.length);
1188
- var a = d.indexOf("-") + 1;
1189
- return d.slice(a, i).split("-");
1190
- }
1191
- function tn(t, e, n, r) {
1192
- var d = n.split(NON_DIGITS_PATTERN), i = e.hasExtension() ? d.length - 2 : d.length - 1;
1193
- if (1 == d.length || d[i].contains(util.getNationalSignificantNumber(e)))
1194
- return !0;
1195
- for (var a, o, u = r.length - 1; u > 0 && i >= 0;) {
1196
- if (d[i] !== r[u])
1197
- return !1;
1198
- u--, i--;
1199
- }
1200
- return i >= 0 && (a = d[i], o = r[0], a.indexOf(o, a.length - o.length) === a.length - o.length);
1201
- }
1202
- function en(t, e, n, r) {
1203
- var d, i, a = 0;
1204
- if (e.getCountryCodeSource() !== CountryCodeSource.FROM_DEFAULT_COUNTRY) {
1205
- var o = String(e.getCountryCode());
1206
- a = n.indexOf(o) + o.length();
1207
- }
1208
- for (var u = 0; u < r.length; u++) {
1209
- if ((a = n.indexOf(r[u], a)) < 0)
1210
- return !1;
1211
- if (a += r[u].length(), 0 == u && a < n.length()) {
1212
- var $ = util.getRegionCodeForCountryCode(e.getCountryCode());
1213
- if (null != util.getNddPrefixForRegion($, !0) && Character.isDigit(n.charAt(a))) {
1214
- var l = util.getNationalSignificantNumber(e);
1215
- return d = n.slice(a - r[u].length), i = l, 0 === d.indexOf(i);
1216
- }
1217
- }
1218
- }
1219
- return n.slice(a).contains(e.getExtension());
1220
- }
1221
- var nn = /[\\/] *x/;
1222
- function rn(t) { return Te(nn, t); }
1223
- var dn = /(?:(?:[0-3]?\d\/[01]?\d)|(?:[01]?\d\/[0-3]?\d))\/(?:[12]\d)?\d{2}/, an = /[12]\d{3}[-/]?[01]\d[-/]?[0-3]\d +[0-2]\d$/, on = /^:[0-5]\d/;
1224
- function un(t, e, n) {
1225
- if (dn.test(t))
1226
- return !1;
1227
- if (an.test(t)) {
1228
- var r = n.slice(e + t.length);
1229
- if (on.test(r))
1230
- return !1;
1231
- }
1232
- return !0;
1233
- }
1234
- var $n = "(\\[([", ln = ")\\])]", cn = "[^".concat($n).concat(ln, "]"), sn = "[".concat($n).concat(m, "]"), fn = new RegExp("^" + sn), hn = Ie(0, 3), yn = new RegExp("^(?:[(\\[([])?(?:" + cn + "+[" + ")\\])]])?" + cn + "+(?:[" + "(\\[([]" + cn + "+[" + ")\\])]])" + hn + cn + "*$"), mn = /\d{1,5}-+\d{1,5}\s{0,4}\(\d{1,4}/;
1235
- function pn(t, e, n, r) {
1236
- if (yn.test(t) && !mn.test(t)) {
1237
- if ("POSSIBLE" !== r) {
1238
- if (e > 0 && !fn.test(t)) {
1239
- var d = n[e - 1];
1240
- if (He(d) || We(d))
1241
- return !1;
1242
- }
1243
- var i = e + t.length;
1244
- if (i < n.length) {
1245
- var a = n[i];
1246
- if (He(a) || We(a))
1247
- return !1;
1248
- }
1249
- }
1250
- return !0;
1251
- }
1252
- }
1253
- function gn(t, e) {
1254
- var n = "undefined" != typeof Symbol && t[Symbol.iterator] || t["@@iterator"];
1255
- if (n)
1256
- return (n = n.call(t)).next.bind(n);
1257
- if (Array.isArray(t) || (n = function (t, e) {
1258
- if (!t)
1259
- return;
1260
- if ("string" == typeof t)
1261
- return bn(t, e);
1262
- var n = Object.prototype.toString.call(t).slice(8, -1);
1263
- "Object" === n && t.constructor && (n = t.constructor.name);
1264
- if ("Map" === n || "Set" === n)
1265
- return Array.from(t);
1266
- if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
1267
- return bn(t, e);
1268
- }(t)) || e && t && "number" == typeof t.length) {
1269
- n && (t = n);
1270
- var r = 0;
1271
- return function () { return r >= t.length ? { done: !0 } : { done: !1, value: t[r++] }; };
1272
- }
1273
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1274
- }
1275
- function bn(t, e) {
1276
- (null == e || e > t.length) && (e = t.length);
1277
- for (var n = 0, r = new Array(e); n < e; n++)
1278
- r[n] = t[n];
1279
- return r;
1280
- }
1281
- function vn(t, e) {
1282
- var n = Object.keys(t);
1283
- if (Object.getOwnPropertySymbols) {
1284
- var r = Object.getOwnPropertySymbols(t);
1285
- e && (r = r.filter((function (e) { return Object.getOwnPropertyDescriptor(t, e).enumerable; }))), n.push.apply(n, r);
1286
- }
1287
- return n;
1288
- }
1289
- function Cn(t) {
1290
- for (var e = 1; e < arguments.length; e++) {
1291
- var n = null != arguments[e] ? arguments[e] : {};
1292
- e % 2 ? vn(Object(n), !0).forEach((function (e) { Nn(t, e, n[e]); })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : vn(Object(n)).forEach((function (e) { Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(n, e)); }));
1293
- }
1294
- return t;
1295
- }
1296
- function Nn(t, e, n) { return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t; }
1297
- function Pn(t, e) {
1298
- if (!(t instanceof e))
1299
- throw new TypeError("Cannot call a class as a function");
1300
- }
1301
- function On(t, e) {
1302
- for (var n = 0; n < e.length; n++) {
1303
- var r = e[n];
1304
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r);
1305
- }
1306
- }
1307
- var xn = M(), wn = ["\\/+(.*)/", "(\\([^(]*)", "(?:".concat(Fe, "-|-").concat(Fe, ")").concat(Fe, "*(.+)"), "[‒-―-]".concat(Fe, "*(.+)"), "\\.+".concat(Fe, "*([^.]+)"), "".concat(Fe, "+(").concat(ke, "+)")], Sn = Ie(0, 2), En = Ie(0, 4), An = Ie(0, 20), In = "[".concat(y, "]") + En, Tn = De + Ie(1, 20), jn = "(?:" + sn + In + ")" + Sn + Tn + "(?:" + In + Tn + ")" + An + "(?:" + xn + ")?", Fn = new RegExp("[^".concat("0-9²³¹¼-¾٠-٩۰-۹߀-߉०-९০-৯৴-৹੦-੯૦-૯୦-୯୲-୷௦-௲౦-౯౸-౾೦-೯൦-൵๐-๙໐-໙༠-༳၀-၉႐-႙፩-፼ᛮ-ᛰ០-៩៰-៹᠐-᠙᥆-᥏᧐-᧚᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙⁰⁴-⁹₀-₉⅐-ↂↅ-↉①-⒛⓪-⓿❶-➓⳽〇〡-〩〸-〺㆒-㆕㈠-㈩㉈-㉏㉑-㉟㊀-㊉㊱-㊿꘠-꘩ꛦ-ꛯ꠰-꠵꣐-꣙꤀-꤉꧐-꧙꩐-꩙꯰-꯹0-9").concat(Re, "#]+$")), kn = Number.MAX_SAFE_INTEGER || Math.pow(2, 53) - 1, Dn = function () {
1308
- function t() {
1309
- var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "", n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, r = arguments.length > 2 ? arguments[2] : void 0;
1310
- if (Pn(this, t), !(n = Cn(Cn({}, n), {}, { defaultCallingCode: n.defaultCallingCode, defaultCountry: n.defaultCountry && k(n.defaultCountry, r) ? n.defaultCountry : void 0, leniency: n.leniency || n.extended ? "POSSIBLE" : "VALID", maxTries: n.maxTries || kn })).leniency)
1311
- throw new TypeError("`Leniency` not supplied");
1312
- if (n.maxTries < 0)
1313
- throw new TypeError("`maxTries` not supplied");
1314
- if (this.text = e, this.options = n, this.metadata = r, this.leniency = Ze[n.leniency], !this.leniency)
1315
- throw new TypeError("Unknown leniency: ".concat(n.leniency, "."));
1316
- this.maxTries = n.maxTries, this.PATTERN = new RegExp(jn, "ig"), this.state = "NOT_READY", this.searchIndex = 0, this.regExpCache = new Ae(32);
1317
- }
1318
- var e, n;
1319
- return e = t, n = [{ key: "find", value: function () {
1320
- for (var t; this.maxTries > 0 && null !== (t = this.PATTERN.exec(this.text));) {
1321
- var e = t[0], n = t.index;
1322
- if (un(e = rn(e), n, this.text)) {
1323
- var r = this.parseAndVerify(e, n, this.text) || this.extractInnerMatch(e, n, this.text);
1324
- if (r) {
1325
- if (this.options.v2) {
1326
- var d = new kt(r.country || r.countryCallingCode, r.phone, this.metadata);
1327
- return r.ext && (d.ext = r.ext), { startsAt: r.startsAt, endsAt: r.endsAt, number: d };
1328
- }
1329
- return r;
1330
- }
1331
- }
1332
- this.maxTries--;
1333
- }
1334
- } }, { key: "extractInnerMatch", value: function (t, e, n) {
1335
- for (var r, d = gn(wn); !(r = d()).done;)
1336
- for (var i = r.value, a = !0, o = void 0, u = new RegExp(i, "g"); this.maxTries > 0 && null !== (o = u.exec(t));) {
1337
- if (a) {
1338
- var $ = Te(Fn, t.slice(0, o.index)), l = this.parseAndVerify($, e, n);
1339
- if (l)
1340
- return l;
1341
- this.maxTries--, a = !1;
1342
- }
1343
- var c = Te(Fn, o[1]), s = t.indexOf(c, o.index), f = this.parseAndVerify(c, e + s, n);
1344
- if (f)
1345
- return f;
1346
- this.maxTries--;
1347
- }
1348
- } }, { key: "parseAndVerify", value: function (t, e, n) {
1349
- if (pn(t, e, n, this.options.leniency)) {
1350
- var r = Yt(t, { extended: !0, defaultCountry: this.options.defaultCountry, defaultCallingCode: this.options.defaultCallingCode }, this.metadata);
1351
- if (r.possible && this.leniency(r, t, this.metadata, this.regExpCache)) {
1352
- var d = { startsAt: e, endsAt: e + t.length, phone: r.phone };
1353
- return r.country && "001" !== r.country ? d.country = r.country : d.countryCallingCode = r.countryCallingCode, r.ext && (d.ext = r.ext), d;
1354
- }
1355
- }
1356
- } }, { key: "hasNext", value: function () { return "NOT_READY" === this.state && (this.lastMatch = this.find(), this.lastMatch ? this.state = "READY" : this.state = "DONE"), "READY" === this.state; } }, { key: "next", value: function () {
1357
- if (!this.hasNext())
1358
- throw new Error("No next element");
1359
- var t = this.lastMatch;
1360
- return this.lastMatch = null, this.state = "NOT_READY", t;
1361
- } }], n && On(e.prototype, n), Object.defineProperty(e, "prototype", { writable: !1 }), t;
1362
- }();
1363
- function Rn(t, e, n) {
1364
- for (var r = new Dn(t, e, n), d = []; r.hasNext();)
1365
- d.push(r.next());
1366
- return d;
1367
- }
1368
- function Mn() { var t = de(arguments), e = t.text, n = t.options, r = t.metadata; return Rn(e, n, r); }
1369
- function Ln(t, e, n) { return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t; }
1370
- function _n() { var t = de(arguments), e = t.text, n = t.options, r = t.metadata, d = new Dn(e, n, r); return Ln({}, Symbol.iterator, (function () { return { next: function () { return d.hasNext() ? { done: !1, value: d.next() } : { done: !0 }; } }; })); }
1371
- function Gn(t) { return Gn = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) { return typeof t; } : function (t) { return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, Gn(t); }
1372
- function Bn(t, e) {
1373
- var n = Object.keys(t);
1374
- if (Object.getOwnPropertySymbols) {
1375
- var r = Object.getOwnPropertySymbols(t);
1376
- e && (r = r.filter((function (e) { return Object.getOwnPropertyDescriptor(t, e).enumerable; }))), n.push.apply(n, r);
1377
- }
1378
- return n;
1379
- }
1380
- function Un(t) {
1381
- for (var e = 1; e < arguments.length; e++) {
1382
- var n = null != arguments[e] ? arguments[e] : {};
1383
- e % 2 ? Bn(Object(n), !0).forEach((function (e) { Vn(t, e, n[e]); })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : Bn(Object(n)).forEach((function (e) { Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(n, e)); }));
1384
- }
1385
- return t;
1386
- }
1387
- function Vn(t, e, n) { return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t; }
1388
- function Wn(t, e, n, r) { var d = Hn(e, n, r); return Mn(t, d.options, d.metadata); }
1389
- function Hn(t, e, n) { return n ? t && (e = Un(Un({}, e), {}, { defaultCountry: t })) : e ? (n = e, e = t ? Kn(t) ? t : { defaultCountry: t } : void 0) : (n = t, e = void 0), { options: Un(Un({}, e), {}, { v2: !0 }), metadata: n }; }
1390
- var Kn = function (t) { return "object" === Gn(t); };
1391
- function Yn(t, e, n, r) { var d = Hn(e, n, r); return _n(t, d.options, d.metadata); }
1392
- function Zn(t, e) {
1393
- for (var n = 0; n < e.length; n++) {
1394
- var r = e[n];
1395
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r);
1396
- }
1397
- }
1398
- var Xn = function () {
1399
- function t(e) {
1400
- var n = e.onCountryChange, r = e.onCallingCodeChange;
1401
- !function (t, e) {
1402
- if (!(t instanceof e))
1403
- throw new TypeError("Cannot call a class as a function");
1404
- }(this, t), this.onCountryChange = n, this.onCallingCodeChange = r;
1405
- }
1406
- var e, n;
1407
- return e = t, (n = [{ key: "reset", value: function (t, e) { this.international = !1, this.IDDPrefix = void 0, this.missingPlus = void 0, this.callingCode = void 0, this.digits = "", this.resetNationalSignificantNumber(), this.initCountryAndCallingCode(t, e); } }, { key: "resetNationalSignificantNumber", value: function () { this.nationalSignificantNumber = this.getNationalDigits(), this.nationalSignificantNumberMatchesInput = !0, this.nationalPrefix = void 0, this.carrierCode = void 0, this.complexPrefixBeforeNationalSignificantNumber = void 0; } }, { key: "update", value: function (t) {
1408
- for (var e = 0, n = Object.keys(t); e < n.length; e++) {
1409
- var r = n[e];
1410
- this[r] = t[r];
1411
- }
1412
- } }, { key: "initCountryAndCallingCode", value: function (t, e) { this.setCountry(t), this.setCallingCode(e); } }, { key: "setCountry", value: function (t) { this.country = t, this.onCountryChange(t); } }, { key: "setCallingCode", value: function (t) { return this.callingCode = t, this.onCallingCodeChange(this.country, t); } }, { key: "startInternationalNumber", value: function () { this.international = !0, this.initCountryAndCallingCode(); } }, { key: "appendDigits", value: function (t) { this.digits += t; } }, { key: "appendNationalSignificantNumberDigits", value: function (t) { this.nationalSignificantNumber += t; } }, { key: "getNationalDigits", value: function () { return this.international ? this.digits.slice((this.IDDPrefix ? this.IDDPrefix.length : 0) + (this.callingCode ? this.callingCode.length : 0)) : this.digits; } }, { key: "getDigitsWithoutInternationalPrefix", value: function () { return this.international && this.IDDPrefix ? this.digits.slice(this.IDDPrefix.length) : this.digits; } }]) && Zn(e.prototype, n), Object.defineProperty(e, "prototype", { writable: !1 }), t;
1413
- }();
1414
- function Jn(t, e) {
1415
- var n = "undefined" != typeof Symbol && t[Symbol.iterator] || t["@@iterator"];
1416
- if (n)
1417
- return (n = n.call(t)).next.bind(n);
1418
- if (Array.isArray(t) || (n = function (t, e) {
1419
- if (!t)
1420
- return;
1421
- if ("string" == typeof t)
1422
- return zn(t, e);
1423
- var n = Object.prototype.toString.call(t).slice(8, -1);
1424
- "Object" === n && t.constructor && (n = t.constructor.name);
1425
- if ("Map" === n || "Set" === n)
1426
- return Array.from(t);
1427
- if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
1428
- return zn(t, e);
1429
- }(t)) || e && t && "number" == typeof t.length) {
1430
- n && (t = n);
1431
- var r = 0;
1432
- return function () { return r >= t.length ? { done: !0 } : { done: !1, value: t[r++] }; };
1433
- }
1434
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1435
- }
1436
- function zn(t, e) {
1437
- (null == e || e > t.length) && (e = t.length);
1438
- for (var n = 0, r = new Array(e); n < e; n++)
1439
- r[n] = t[n];
1440
- return r;
1441
- }
1442
- var Qn = "x", qn = new RegExp(Qn);
1443
- function tr(t, e) {
1444
- if (e < 1)
1445
- return "";
1446
- for (var n = ""; e > 1;)
1447
- 1 & e && (n += t), e >>= 1, t += t;
1448
- return n + t;
1449
- }
1450
- function er(t, e) {
1451
- return ")" === t[e] && e++, function (t) {
1452
- var e = [], n = 0;
1453
- for (; n < t.length;)
1454
- "(" === t[n] ? e.push(n) : ")" === t[n] && e.pop(), n++;
1455
- var r = 0, d = "";
1456
- e.push(t.length);
1457
- for (var i = 0, a = e; i < a.length; i++) {
1458
- var o = a[i];
1459
- d += t.slice(r, o), r = o + 1;
1460
- }
1461
- return d;
1462
- }(t.slice(0, e));
1463
- }
1464
- function nr(t, e, n) {
1465
- var r = n.metadata, d = n.shouldTryNationalPrefixFormattingRule, i = n.getSeparatorAfterNationalPrefix;
1466
- if (new RegExp("^(?:".concat(e.pattern(), ")$")).test(t.nationalSignificantNumber))
1467
- return function (t, e, n) {
1468
- var r = n.metadata, d = n.shouldTryNationalPrefixFormattingRule, i = n.getSeparatorAfterNationalPrefix;
1469
- if (t.nationalSignificantNumber, t.international, t.nationalPrefix, t.carrierCode, d(e)) {
1470
- var a = rr(t, e, { useNationalPrefixFormattingRule: !0, getSeparatorAfterNationalPrefix: i, metadata: r });
1471
- if (a)
1472
- return a;
1473
- }
1474
- return rr(t, e, { useNationalPrefixFormattingRule: !1, getSeparatorAfterNationalPrefix: i, metadata: r });
1475
- }(t, e, { metadata: r, shouldTryNationalPrefixFormattingRule: d, getSeparatorAfterNationalPrefix: i });
1476
- }
1477
- function rr(t, e, n) {
1478
- var r = n.metadata, d = n.useNationalPrefixFormattingRule, i = n.getSeparatorAfterNationalPrefix, a = bt(t.nationalSignificantNumber, e, { carrierCode: t.carrierCode, useInternationalFormat: t.international, withNationalPrefix: d, metadata: r });
1479
- if (d || (t.nationalPrefix ? a = t.nationalPrefix + i(e) + a : t.complexPrefixBeforeNationalSignificantNumber && (a = t.complexPrefixBeforeNationalSignificantNumber + " " + a)), function (t, e) { return Z(t) === e.getNationalDigits(); }(a, t))
1480
- return a;
1481
- }
1482
- function dr(t, e) {
1483
- for (var n = 0; n < e.length; n++) {
1484
- var r = e[n];
1485
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r);
1486
- }
1487
- }
1488
- var ir = function () {
1489
- function t() {
1490
- !function (t, e) {
1491
- if (!(t instanceof e))
1492
- throw new TypeError("Cannot call a class as a function");
1493
- }(this, t);
1494
- }
1495
- var e, n;
1496
- return e = t, (n = [{ key: "parse", value: function (t) {
1497
- if (this.context = [{ or: !0, instructions: [] }], this.parsePattern(t), 1 !== this.context.length)
1498
- throw new Error("Non-finalized contexts left when pattern parse ended");
1499
- var e = this.context[0], n = e.branches, r = e.instructions;
1500
- if (n)
1501
- return { op: "|", args: n.concat([$r(r)]) };
1502
- if (0 === r.length)
1503
- throw new Error("Pattern is required");
1504
- return 1 === r.length ? r[0] : r;
1505
- } }, { key: "startContext", value: function (t) { this.context.push(t); } }, { key: "endContext", value: function () { this.context.pop(); } }, { key: "getContext", value: function () { return this.context[this.context.length - 1]; } }, { key: "parsePattern", value: function (t) {
1506
- if (!t)
1507
- throw new Error("Pattern is required");
1508
- var e = t.match(ur);
1509
- if (e) {
1510
- var n = e[1], r = t.slice(0, e.index), d = t.slice(e.index + n.length);
1511
- switch (n) {
1512
- case "(?:":
1513
- r && this.parsePattern(r), this.startContext({ or: !0, instructions: [], branches: [] });
1514
- break;
1515
- case ")":
1516
- if (!this.getContext().or)
1517
- throw new Error('")" operator must be preceded by "(?:" operator');
1518
- if (r && this.parsePattern(r), 0 === this.getContext().instructions.length)
1519
- throw new Error('No instructions found after "|" operator in an "or" group');
1520
- var i = this.getContext().branches;
1521
- i.push($r(this.getContext().instructions)), this.endContext(), this.getContext().instructions.push({ op: "|", args: i });
1522
- break;
1523
- case "|":
1524
- if (!this.getContext().or)
1525
- throw new Error('"|" operator can only be used inside "or" groups');
1526
- if (r && this.parsePattern(r), !this.getContext().branches) {
1527
- if (1 !== this.context.length)
1528
- throw new Error('"branches" not found in an "or" group context');
1529
- this.getContext().branches = [];
1530
- }
1531
- this.getContext().branches.push($r(this.getContext().instructions)), this.getContext().instructions = [];
1532
- break;
1533
- case "[":
1534
- r && this.parsePattern(r), this.startContext({ oneOfSet: !0 });
1535
- break;
1536
- case "]":
1537
- if (!this.getContext().oneOfSet)
1538
- throw new Error('"]" operator must be preceded by "[" operator');
1539
- this.endContext(), this.getContext().instructions.push({ op: "[]", args: ar(r) });
1540
- break;
1541
- default: throw new Error("Unknown operator: ".concat(n));
1542
- }
1543
- d && this.parsePattern(d);
1544
- }
1545
- else {
1546
- if (or.test(t))
1547
- throw new Error("Illegal characters found in a pattern: ".concat(t));
1548
- this.getContext().instructions = this.getContext().instructions.concat(t.split(""));
1549
- }
1550
- } }]) && dr(e.prototype, n), Object.defineProperty(e, "prototype", { writable: !1 }), t;
1551
- }();
1552
- function ar(t) {
1553
- for (var e = [], n = 0; n < t.length;) {
1554
- if ("-" === t[n]) {
1555
- if (0 === n || n === t.length - 1)
1556
- throw new Error("Couldn't parse a one-of set pattern: ".concat(t));
1557
- for (var r = t[n - 1].charCodeAt(0) + 1, d = t[n + 1].charCodeAt(0) - 1, i = r; i <= d;)
1558
- e.push(String.fromCharCode(i)), i++;
1559
- }
1560
- else
1561
- e.push(t[n]);
1562
- n++;
1563
- }
1564
- return e;
1565
- }
1566
- var or = /[\(\)\[\]\?\:\|]/, ur = new RegExp("(\\||\\(\\?\\:|\\)|\\[|\\])");
1567
- function $r(t) { return 1 === t.length ? t[0] : t; }
1568
- function lr(t, e) {
1569
- var n = "undefined" != typeof Symbol && t[Symbol.iterator] || t["@@iterator"];
1570
- if (n)
1571
- return (n = n.call(t)).next.bind(n);
1572
- if (Array.isArray(t) || (n = function (t, e) {
1573
- if (!t)
1574
- return;
1575
- if ("string" == typeof t)
1576
- return cr(t, e);
1577
- var n = Object.prototype.toString.call(t).slice(8, -1);
1578
- "Object" === n && t.constructor && (n = t.constructor.name);
1579
- if ("Map" === n || "Set" === n)
1580
- return Array.from(t);
1581
- if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
1582
- return cr(t, e);
1583
- }(t)) || e && t && "number" == typeof t.length) {
1584
- n && (t = n);
1585
- var r = 0;
1586
- return function () { return r >= t.length ? { done: !0 } : { done: !1, value: t[r++] }; };
1587
- }
1588
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1589
- }
1590
- function cr(t, e) {
1591
- (null == e || e > t.length) && (e = t.length);
1592
- for (var n = 0, r = new Array(e); n < e; n++)
1593
- r[n] = t[n];
1594
- return r;
1595
- }
1596
- function sr(t, e) {
1597
- for (var n = 0; n < e.length; n++) {
1598
- var r = e[n];
1599
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r);
1600
- }
1601
- }
1602
- var fr = function () {
1603
- function t(e) {
1604
- !function (t, e) {
1605
- if (!(t instanceof e))
1606
- throw new TypeError("Cannot call a class as a function");
1607
- }(this, t), this.matchTree = (new ir).parse(e);
1608
- }
1609
- var e, n;
1610
- return e = t, n = [{ key: "match", value: function (t) {
1611
- var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, n = e.allowOverflow;
1612
- if (!t)
1613
- throw new Error("String is required");
1614
- var r = hr(t.split(""), this.matchTree, !0);
1615
- if (r && r.match && delete r.matchedChars, !r || !r.overflow || n)
1616
- return r;
1617
- } }], n && sr(e.prototype, n), Object.defineProperty(e, "prototype", { writable: !1 }), t;
1618
- }();
1619
- function hr(t, e, n) {
1620
- if ("string" == typeof e) {
1621
- var r = t.join("");
1622
- return 0 === e.indexOf(r) ? t.length === e.length ? { match: !0, matchedChars: t } : { partialMatch: !0 } : 0 === r.indexOf(e) ? n && t.length > e.length ? { overflow: !0 } : { match: !0, matchedChars: t.slice(0, e.length) } : void 0;
1623
- }
1624
- if (Array.isArray(e)) {
1625
- for (var d = t.slice(), i = 0; i < e.length;) {
1626
- var a = hr(d, e[i], n && i === e.length - 1);
1627
- if (!a)
1628
- return;
1629
- if (a.overflow)
1630
- return a;
1631
- if (!a.match) {
1632
- if (a.partialMatch)
1633
- return { partialMatch: !0 };
1634
- throw new Error("Unsupported match result:\n".concat(JSON.stringify(a, null, 2)));
1635
- }
1636
- if (0 === (d = d.slice(a.matchedChars.length)).length)
1637
- return i === e.length - 1 ? { match: !0, matchedChars: t } : { partialMatch: !0 };
1638
- i++;
1639
- }
1640
- return n ? { overflow: !0 } : { match: !0, matchedChars: t.slice(0, t.length - d.length) };
1641
- }
1642
- switch (e.op) {
1643
- case "|":
1644
- for (var o, u, $ = lr(e.args); !(u = $()).done;) {
1645
- var l = hr(t, u.value, n);
1646
- if (l) {
1647
- if (l.overflow)
1648
- return l;
1649
- if (l.match)
1650
- return { match: !0, matchedChars: l.matchedChars };
1651
- if (!l.partialMatch)
1652
- throw new Error("Unsupported match result:\n".concat(JSON.stringify(l, null, 2)));
1653
- o = !0;
1654
- }
1655
- }
1656
- return o ? { partialMatch: !0 } : void 0;
1657
- case "[]":
1658
- for (var c, s = lr(e.args); !(c = s()).done;) {
1659
- var f = c.value;
1660
- if (t[0] === f)
1661
- return 1 === t.length ? { match: !0, matchedChars: t } : n ? { overflow: !0 } : { match: !0, matchedChars: [f] };
1662
- }
1663
- return;
1664
- default: throw new Error("Unsupported instruction tree: ".concat(e));
1665
- }
1666
- }
1667
- function yr(t, e) {
1668
- var n = "undefined" != typeof Symbol && t[Symbol.iterator] || t["@@iterator"];
1669
- if (n)
1670
- return (n = n.call(t)).next.bind(n);
1671
- if (Array.isArray(t) || (n = function (t, e) {
1672
- if (!t)
1673
- return;
1674
- if ("string" == typeof t)
1675
- return mr(t, e);
1676
- var n = Object.prototype.toString.call(t).slice(8, -1);
1677
- "Object" === n && t.constructor && (n = t.constructor.name);
1678
- if ("Map" === n || "Set" === n)
1679
- return Array.from(t);
1680
- if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
1681
- return mr(t, e);
1682
- }(t)) || e && t && "number" == typeof t.length) {
1683
- n && (t = n);
1684
- var r = 0;
1685
- return function () { return r >= t.length ? { done: !0 } : { done: !1, value: t[r++] }; };
1686
- }
1687
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1688
- }
1689
- function mr(t, e) {
1690
- (null == e || e > t.length) && (e = t.length);
1691
- for (var n = 0, r = new Array(e); n < e; n++)
1692
- r[n] = t[n];
1693
- return r;
1694
- }
1695
- function pr(t, e) {
1696
- for (var n = 0; n < e.length; n++) {
1697
- var r = e[n];
1698
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r);
1699
- }
1700
- }
1701
- var gr = tr("9", 15), br = /[- ]/, vr = new RegExp("[" + y + "]*\\$1[" + y + "]*(\\$\\d[" + y + "]*)*$"), Cr = function () {
1702
- function t(e) {
1703
- e.state;
1704
- var n = e.metadata;
1705
- !function (t, e) {
1706
- if (!(t instanceof e))
1707
- throw new TypeError("Cannot call a class as a function");
1708
- }(this, t), this.metadata = n, this.resetFormat();
1709
- }
1710
- var e, n;
1711
- return e = t, n = [{ key: "resetFormat", value: function () { this.chosenFormat = void 0, this.template = void 0, this.nationalNumberTemplate = void 0, this.populatedNationalNumberTemplate = void 0, this.populatedNationalNumberTemplatePosition = -1; } }, { key: "reset", value: function (t, e) { this.resetFormat(), t ? (this.isNANP = "1" === t.callingCode(), this.matchingFormats = t.formats(), e.nationalSignificantNumber && this.narrowDownMatchingFormats(e)) : (this.isNANP = void 0, this.matchingFormats = []); } }, { key: "format", value: function (t, e) {
1712
- var n = this;
1713
- if (function (t, e) { return "IS_POSSIBLE" === et(t, e); }(e.nationalSignificantNumber, this.metadata))
1714
- for (var r, d = yr(this.matchingFormats); !(r = d()).done;) {
1715
- var i = r.value, a = nr(e, i, { metadata: this.metadata, shouldTryNationalPrefixFormattingRule: function (t) { return n.shouldTryNationalPrefixFormattingRule(t, { international: e.international, nationalPrefix: e.nationalPrefix }); }, getSeparatorAfterNationalPrefix: function (t) { return n.getSeparatorAfterNationalPrefix(t); } });
1716
- if (a)
1717
- return this.resetFormat(), this.chosenFormat = i, this.setNationalNumberTemplate(a.replace(/\d/g, Qn), e), this.populatedNationalNumberTemplate = a, this.populatedNationalNumberTemplatePosition = this.template.lastIndexOf(Qn), a;
1718
- }
1719
- return this.formatNationalNumberWithNextDigits(t, e);
1720
- } }, { key: "formatNationalNumberWithNextDigits", value: function (t, e) {
1721
- var n = this.chosenFormat, r = this.chooseFormat(e);
1722
- if (r)
1723
- return r === n ? this.formatNextNationalNumberDigits(t) : this.formatNextNationalNumberDigits(e.getNationalDigits());
1724
- } }, { key: "narrowDownMatchingFormats", value: function (t) { var e = this, n = t.nationalSignificantNumber, r = t.nationalPrefix, d = t.international, i = n, a = i.length - 3; a < 0 && (a = 0), this.matchingFormats = this.matchingFormats.filter((function (t) { return e.formatSuits(t, d, r) && e.formatMatches(t, i, a); })), this.chosenFormat && -1 === this.matchingFormats.indexOf(this.chosenFormat) && this.resetFormat(); } }, { key: "formatSuits", value: function (t, e, n) { return !(n && !t.usesNationalPrefix() && !t.nationalPrefixIsOptionalWhenFormattingInNationalFormat() || !e && !n && t.nationalPrefixIsMandatoryWhenFormattingInNationalFormat()); } }, { key: "formatMatches", value: function (t, e, n) {
1725
- var r = t.leadingDigitsPatterns().length;
1726
- if (0 === r)
1727
- return !0;
1728
- n = Math.min(n, r - 1);
1729
- var d = t.leadingDigitsPatterns()[n];
1730
- if (e.length < 3)
1731
- try {
1732
- return void 0 !== new fr(d).match(e, { allowOverflow: !0 });
1733
- }
1734
- catch (t) {
1735
- return console.error(t), !0;
1736
- }
1737
- return new RegExp("^(".concat(d, ")")).test(e);
1738
- } }, { key: "getFormatFormat", value: function (t, e) { return e ? t.internationalFormat() : t.format(); } }, { key: "chooseFormat", value: function (t) {
1739
- for (var e, n = this, r = function () { var r = e.value; return n.chosenFormat === r ? "break" : vr.test(n.getFormatFormat(r, t.international)) ? n.createTemplateForFormat(r, t) ? (n.chosenFormat = r, "break") : (n.matchingFormats = n.matchingFormats.filter((function (t) { return t !== r; })), "continue") : "continue"; }, d = yr(this.matchingFormats.slice()); !(e = d()).done;) {
1740
- var i = r();
1741
- if ("break" === i)
1742
- break;
1743
- }
1744
- return this.chosenFormat || this.resetFormat(), this.chosenFormat;
1745
- } }, { key: "createTemplateForFormat", value: function (t, e) {
1746
- if (!(t.pattern().indexOf("|") >= 0)) {
1747
- var n = this.getTemplateForFormat(t, e);
1748
- return n ? (this.setNationalNumberTemplate(n, e), !0) : void 0;
1749
- }
1750
- } }, { key: "getSeparatorAfterNationalPrefix", value: function (t) { return this.isNANP || t && t.nationalPrefixFormattingRule() && br.test(t.nationalPrefixFormattingRule()) ? " " : ""; } }, { key: "getInternationalPrefixBeforeCountryCallingCode", value: function (t, e) { var n = t.IDDPrefix, r = t.missingPlus; return n ? e && !1 === e.spacing ? n : n + " " : r ? "" : "+"; } }, { key: "getTemplate", value: function (t) {
1751
- if (this.template) {
1752
- for (var e = -1, n = 0, r = t.international ? this.getInternationalPrefixBeforeCountryCallingCode(t, { spacing: !1 }) : ""; n < r.length + t.getDigitsWithoutInternationalPrefix().length;)
1753
- e = this.template.indexOf(Qn, e + 1), n++;
1754
- return er(this.template, e + 1);
1755
- }
1756
- } }, { key: "setNationalNumberTemplate", value: function (t, e) { this.nationalNumberTemplate = t, this.populatedNationalNumberTemplate = t, this.populatedNationalNumberTemplatePosition = -1, e.international ? this.template = this.getInternationalPrefixBeforeCountryCallingCode(e).replace(/[\d\+]/g, Qn) + tr(Qn, e.callingCode.length) + " " + t : this.template = t; } }, { key: "getTemplateForFormat", value: function (t, e) {
1757
- var n = e.nationalSignificantNumber, r = e.international, d = e.nationalPrefix, i = e.complexPrefixBeforeNationalSignificantNumber, a = t.pattern();
1758
- a = a.replace(/\[([^\[\]])*\]/g, "\\d").replace(/\d(?=[^,}][^,}])/g, "\\d");
1759
- var o = gr.match(a)[0];
1760
- if (!(n.length > o.length)) {
1761
- var u = new RegExp("^" + a + "$"), $ = n.replace(/\d/g, "9");
1762
- u.test($) && (o = $);
1763
- var l, c = this.getFormatFormat(t, r);
1764
- if (this.shouldTryNationalPrefixFormattingRule(t, { international: r, nationalPrefix: d })) {
1765
- var s = c.replace(gt, t.nationalPrefixFormattingRule());
1766
- if (Z(t.nationalPrefixFormattingRule()) === (d || "") + Z("$1") && (c = s, l = !0, d))
1767
- for (var f = d.length; f > 0;)
1768
- c = c.replace(/\d/, Qn), f--;
1769
- }
1770
- var h = o.replace(new RegExp(a), c).replace(new RegExp("9", "g"), Qn);
1771
- return l || (i ? h = tr(Qn, i.length) + " " + h : d && (h = tr(Qn, d.length) + this.getSeparatorAfterNationalPrefix(t) + h)), r && (h = pt(h)), h;
1772
- }
1773
- } }, { key: "formatNextNationalNumberDigits", value: function (t) {
1774
- var e = function (t, e, n) {
1775
- for (var r, d = Jn(n.split("")); !(r = d()).done;) {
1776
- var i = r.value;
1777
- if (t.slice(e + 1).search(qn) < 0)
1778
- return;
1779
- e = t.search(qn), t = t.replace(qn, i);
1780
- }
1781
- return [t, e];
1782
- }(this.populatedNationalNumberTemplate, this.populatedNationalNumberTemplatePosition, t);
1783
- if (e)
1784
- return this.populatedNationalNumberTemplate = e[0], this.populatedNationalNumberTemplatePosition = e[1], er(this.populatedNationalNumberTemplate, this.populatedNationalNumberTemplatePosition + 1);
1785
- this.resetFormat();
1786
- } }, { key: "shouldTryNationalPrefixFormattingRule", value: function (t, e) {
1787
- var n = e.international, r = e.nationalPrefix;
1788
- if (t.nationalPrefixFormattingRule()) {
1789
- var d = t.usesNationalPrefix();
1790
- if (d && r || !d && !n)
1791
- return !0;
1792
- }
1793
- } }], n && pr(e.prototype, n), Object.defineProperty(e, "prototype", { writable: !1 }), t;
1794
- }();
1795
- function Nr(t, e) {
1796
- return function (t) {
1797
- if (Array.isArray(t))
1798
- return t;
1799
- }(t) || function (t, e) {
1800
- var n = null == t ? null : "undefined" != typeof Symbol && t[Symbol.iterator] || t["@@iterator"];
1801
- if (null == n)
1802
- return;
1803
- var r, d, i = [], a = !0, o = !1;
1804
- try {
1805
- for (n = n.call(t); !(a = (r = n.next()).done) && (i.push(r.value), !e || i.length !== e); a = !0)
1806
- ;
1807
- }
1808
- catch (t) {
1809
- o = !0, d = t;
1810
- }
1811
- finally {
1812
- try {
1813
- a || null == n.return || n.return();
1814
- }
1815
- finally {
1816
- if (o)
1817
- throw d;
1818
- }
1819
- }
1820
- return i;
1821
- }(t, e) || function (t, e) {
1822
- if (!t)
1823
- return;
1824
- if ("string" == typeof t)
1825
- return Pr(t, e);
1826
- var n = Object.prototype.toString.call(t).slice(8, -1);
1827
- "Object" === n && t.constructor && (n = t.constructor.name);
1828
- if ("Map" === n || "Set" === n)
1829
- return Array.from(t);
1830
- if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
1831
- return Pr(t, e);
1832
- }(t, e) || function () { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }();
1833
- }
1834
- function Pr(t, e) {
1835
- (null == e || e > t.length) && (e = t.length);
1836
- for (var n = 0, r = new Array(e); n < e; n++)
1837
- r[n] = t[n];
1838
- return r;
1839
- }
1840
- function Or(t, e) {
1841
- for (var n = 0; n < e.length; n++) {
1842
- var r = e[n];
1843
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r);
1844
- }
1845
- }
1846
- var xr = new RegExp("^" + ("[" + y + "0-90-9٠-٩۰-۹]+") + "$", "i"), wr = "(?:[++][" + y + "0-90-9٠-٩۰-۹]*|[" + y + "0-90-9٠-٩۰-۹]+)", Sr = new RegExp("[^" + y + "0-90-9٠-٩۰-۹]+.*$"), Er = /[^\d\[\]]/, Ar = function () {
1847
- function t(e) {
1848
- var n = e.defaultCountry, r = e.defaultCallingCode, d = e.metadata, i = e.onNationalSignificantNumberChange;
1849
- !function (t, e) {
1850
- if (!(t instanceof e))
1851
- throw new TypeError("Cannot call a class as a function");
1852
- }(this, t), this.defaultCountry = n, this.defaultCallingCode = r, this.metadata = d, this.onNationalSignificantNumberChange = i;
1853
- }
1854
- var e, n;
1855
- return e = t, (n = [{ key: "input", value: function (t, e) {
1856
- var n, r = function (t) {
1857
- var e = Nr(function (t) {
1858
- var e = function (t) {
1859
- var e, n = t.search(wr);
1860
- if (!(n < 0))
1861
- return "+" === (t = t.slice(n))[0] && (e = !0, t = t.slice("+".length)), t = t.replace(Sr, ""), e && (t = "+" + t), t;
1862
- }(t) || "";
1863
- return "+" === e[0] ? [e.slice("+".length), !0] : [e];
1864
- }(t), 2), n = e[0], r = e[1];
1865
- return xr.test(n) || (n = ""), [n, r];
1866
- }(t), d = Nr(r, 2), i = d[0], a = d[1], o = Z(i);
1867
- return a && (e.digits || (e.startInternationalNumber(), o || (n = !0))), o && this.inputDigits(o, e), { digits: o, justLeadingPlus: n };
1868
- } }, { key: "inputDigits", value: function (t, e) {
1869
- var n = e.digits, r = n.length < 3 && n.length + t.length >= 3;
1870
- if (e.appendDigits(t), r && this.extractIddPrefix(e), this.isWaitingForCountryCallingCode(e)) {
1871
- if (!this.extractCountryCallingCode(e))
1872
- return;
1873
- }
1874
- else
1875
- e.appendNationalSignificantNumberDigits(t);
1876
- e.international || this.hasExtractedNationalSignificantNumber || this.extractNationalSignificantNumber(e.getNationalDigits(), (function (t) { return e.update(t); }));
1877
- } }, { key: "isWaitingForCountryCallingCode", value: function (t) { var e = t.international, n = t.callingCode; return e && !n; } }, { key: "extractCountryCallingCode", value: function (t) {
1878
- var e = Bt("+" + t.getDigitsWithoutInternationalPrefix(), this.defaultCountry, this.defaultCallingCode, this.metadata.metadata), n = e.countryCallingCode, r = e.number;
1879
- if (n)
1880
- return t.setCallingCode(n), t.update({ nationalSignificantNumber: r }), !0;
1881
- } }, { key: "reset", value: function (t) {
1882
- if (t) {
1883
- this.hasSelectedNumberingPlan = !0;
1884
- var e = t._nationalPrefixForParsing();
1885
- this.couldPossiblyExtractAnotherNationalSignificantNumber = e && Er.test(e);
1886
- }
1887
- else
1888
- this.hasSelectedNumberingPlan = void 0, this.couldPossiblyExtractAnotherNationalSignificantNumber = void 0;
1889
- } }, { key: "extractNationalSignificantNumber", value: function (t, e) {
1890
- if (this.hasSelectedNumberingPlan) {
1891
- var n = Lt(t, this.metadata), r = n.nationalPrefix, d = n.nationalNumber, i = n.carrierCode;
1892
- if (d !== t)
1893
- return this.onExtractedNationalNumber(r, i, d, t, e), !0;
1894
- }
1895
- } }, { key: "extractAnotherNationalSignificantNumber", value: function (t, e, n) {
1896
- if (!this.hasExtractedNationalSignificantNumber)
1897
- return this.extractNationalSignificantNumber(t, n);
1898
- if (this.couldPossiblyExtractAnotherNationalSignificantNumber) {
1899
- var r = Lt(t, this.metadata), d = r.nationalPrefix, i = r.nationalNumber, a = r.carrierCode;
1900
- if (i !== e)
1901
- return this.onExtractedNationalNumber(d, a, i, t, n), !0;
1902
- }
1903
- } }, { key: "onExtractedNationalNumber", value: function (t, e, n, r, d) {
1904
- var i, a, o = r.lastIndexOf(n);
1905
- if (o >= 0 && o === r.length - n.length) {
1906
- a = !0;
1907
- var u = r.slice(0, o);
1908
- u !== t && (i = u);
1909
- }
1910
- d({ nationalPrefix: t, carrierCode: e, nationalSignificantNumber: n, nationalSignificantNumberMatchesInput: a, complexPrefixBeforeNationalSignificantNumber: i }), this.hasExtractedNationalSignificantNumber = !0, this.onNationalSignificantNumberChange();
1911
- } }, { key: "reExtractNationalSignificantNumber", value: function (t) { return !!this.extractAnotherNationalSignificantNumber(t.getNationalDigits(), t.nationalSignificantNumber, (function (e) { return t.update(e); })) || (this.extractIddPrefix(t) || this.fixMissingPlus(t) ? (this.extractCallingCodeAndNationalSignificantNumber(t), !0) : void 0); } }, { key: "extractIddPrefix", value: function (t) {
1912
- var e = t.international, n = t.IDDPrefix, r = t.digits;
1913
- if (t.nationalSignificantNumber, !e && !n) {
1914
- var d = Mt(r, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata);
1915
- return void 0 !== d && d !== r ? (t.update({ IDDPrefix: r.slice(0, r.length - d.length) }), this.startInternationalNumber(t), !0) : void 0;
1916
- }
1917
- } }, { key: "fixMissingPlus", value: function (t) {
1918
- if (!t.international) {
1919
- var e = Gt(t.digits, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata), n = e.countryCallingCode;
1920
- if (e.number, n)
1921
- return t.update({ missingPlus: !0 }), this.startInternationalNumber(t), !0;
1922
- }
1923
- } }, { key: "startInternationalNumber", value: function (t) { t.startInternationalNumber(), t.nationalSignificantNumber && (t.resetNationalSignificantNumber(), this.onNationalSignificantNumberChange(), this.hasExtractedNationalSignificantNumber = void 0); } }, { key: "extractCallingCodeAndNationalSignificantNumber", value: function (t) { this.extractCountryCallingCode(t) && this.extractNationalSignificantNumber(t.getNationalDigits(), (function (e) { return t.update(e); })); } }]) && Or(e.prototype, n), Object.defineProperty(e, "prototype", { writable: !1 }), t;
1924
- }();
1925
- function Ir(t) { return Ir = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) { return typeof t; } : function (t) { return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, Ir(t); }
1926
- function Tr(t, e) {
1927
- return function (t) {
1928
- if (Array.isArray(t))
1929
- return t;
1930
- }(t) || function (t, e) {
1931
- var n = null == t ? null : "undefined" != typeof Symbol && t[Symbol.iterator] || t["@@iterator"];
1932
- if (null == n)
1933
- return;
1934
- var r, d, i = [], a = !0, o = !1;
1935
- try {
1936
- for (n = n.call(t); !(a = (r = n.next()).done) && (i.push(r.value), !e || i.length !== e); a = !0)
1937
- ;
1938
- }
1939
- catch (t) {
1940
- o = !0, d = t;
1941
- }
1942
- finally {
1943
- try {
1944
- a || null == n.return || n.return();
1945
- }
1946
- finally {
1947
- if (o)
1948
- throw d;
1949
- }
1950
- }
1951
- return i;
1952
- }(t, e) || function (t, e) {
1953
- if (!t)
1954
- return;
1955
- if ("string" == typeof t)
1956
- return jr(t, e);
1957
- var n = Object.prototype.toString.call(t).slice(8, -1);
1958
- "Object" === n && t.constructor && (n = t.constructor.name);
1959
- if ("Map" === n || "Set" === n)
1960
- return Array.from(t);
1961
- if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
1962
- return jr(t, e);
1963
- }(t, e) || function () { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }();
1964
- }
1965
- function jr(t, e) {
1966
- (null == e || e > t.length) && (e = t.length);
1967
- for (var n = 0, r = new Array(e); n < e; n++)
1968
- r[n] = t[n];
1969
- return r;
1970
- }
1971
- function Fr(t, e) {
1972
- for (var n = 0; n < e.length; n++) {
1973
- var r = e[n];
1974
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r);
1975
- }
1976
- }
1977
- var kr = function () {
1978
- function t(e, n) {
1979
- !function (t, e) {
1980
- if (!(t instanceof e))
1981
- throw new TypeError("Cannot call a class as a function");
1982
- }(this, t), this.metadata = new O(n);
1983
- var r = Tr(this.getCountryAndCallingCode(e), 2), d = r[0], i = r[1];
1984
- this.defaultCountry = d, this.defaultCallingCode = i, this.reset();
1985
- }
1986
- var e, n;
1987
- return e = t, (n = [{ key: "getCountryAndCallingCode", value: function (t) { var e, n; return t && ("object" === Ir(t) ? (e = t.defaultCountry, n = t.defaultCallingCode) : e = t), e && !this.metadata.hasCountry(e) && (e = void 0), [e, n]; } }, { key: "input", value: function (t) {
1988
- var e = this.parser.input(t, this.state), n = e.digits;
1989
- if (e.justLeadingPlus)
1990
- this.formattedOutput = "+";
1991
- else if (n) {
1992
- var r;
1993
- if (this.determineTheCountryIfNeeded(), this.state.nationalSignificantNumber && this.formatter.narrowDownMatchingFormats(this.state), this.metadata.hasSelectedNumberingPlan() && (r = this.formatter.format(n, this.state)), void 0 === r && this.parser.reExtractNationalSignificantNumber(this.state)) {
1994
- this.determineTheCountryIfNeeded();
1995
- var d = this.state.getNationalDigits();
1996
- d && (r = this.formatter.format(d, this.state));
1997
- }
1998
- this.formattedOutput = r ? this.getFullNumber(r) : this.getNonFormattedNumber();
1999
- }
2000
- return this.formattedOutput;
2001
- } }, { key: "reset", value: function () { var t = this; return this.state = new Xn({ onCountryChange: function (e) { t.country = e; }, onCallingCodeChange: function (e, n) { t.metadata.selectNumberingPlan(e, n), t.formatter.reset(t.metadata.numberingPlan, t.state), t.parser.reset(t.metadata.numberingPlan); } }), this.formatter = new Cr({ state: this.state, metadata: this.metadata }), this.parser = new Ar({ defaultCountry: this.defaultCountry, defaultCallingCode: this.defaultCallingCode, metadata: this.metadata, state: this.state, onNationalSignificantNumberChange: function () { t.determineTheCountryIfNeeded(), t.formatter.reset(t.metadata.numberingPlan, t.state); } }), this.state.reset(this.defaultCountry, this.defaultCallingCode), this.formattedOutput = "", this; } }, { key: "isInternational", value: function () { return this.state.international; } }, { key: "getCallingCode", value: function () {
2002
- if (this.isInternational())
2003
- return this.state.callingCode;
2004
- } }, { key: "getCountryCallingCode", value: function () { return this.getCallingCode(); } }, { key: "getCountry", value: function () {
2005
- if (this.state.digits)
2006
- return this._getCountry();
2007
- } }, { key: "_getCountry", value: function () { return this.state.country; } }, { key: "determineTheCountryIfNeeded", value: function () { this.state.country && !this.isCountryCallingCodeAmbiguous() || this.determineTheCountry(); } }, { key: "getFullNumber", value: function (t) {
2008
- var e = this;
2009
- if (this.isInternational()) {
2010
- var n = function (t) { return e.formatter.getInternationalPrefixBeforeCountryCallingCode(e.state, { spacing: !!t }) + t; }, r = this.state.callingCode;
2011
- return n(r ? t ? "".concat(r, " ").concat(t) : r : "".concat(this.state.getDigitsWithoutInternationalPrefix()));
2012
- }
2013
- return t;
2014
- } }, { key: "getNonFormattedNationalNumberWithPrefix", value: function () { var t = this.state, e = t.nationalSignificantNumber, n = t.complexPrefixBeforeNationalSignificantNumber, r = t.nationalPrefix, d = e, i = n || r; return i && (d = i + d), d; } }, { key: "getNonFormattedNumber", value: function () { var t = this.state.nationalSignificantNumberMatchesInput; return this.getFullNumber(t ? this.getNonFormattedNationalNumberWithPrefix() : this.state.getNationalDigits()); } }, { key: "getNonFormattedTemplate", value: function () {
2015
- var t = this.getNonFormattedNumber();
2016
- if (t)
2017
- return t.replace(/[\+\d]/g, Qn);
2018
- } }, { key: "isCountryCallingCodeAmbiguous", value: function () { var t = this.state.callingCode, e = this.metadata.getCountryCodesForCallingCode(t); return e && e.length > 1; } }, { key: "determineTheCountry", value: function () { this.state.setCountry(Wt(this.isInternational() ? this.state.callingCode : this.defaultCallingCode, this.state.nationalSignificantNumber, this.metadata)); } }, { key: "getNumberValue", value: function () {
2019
- var t = this.state, e = t.digits, n = t.callingCode, r = t.country, d = t.nationalSignificantNumber;
2020
- if (e)
2021
- return this.isInternational() ? n ? "+" + n + d : "+" + e : r || n ? "+" + (r ? this.metadata.countryCallingCode() : n) + d : void 0;
2022
- } }, { key: "getNumber", value: function () {
2023
- var t = this.state, e = t.nationalSignificantNumber, n = t.carrierCode, r = t.callingCode, d = this._getCountry();
2024
- if (e && (d || r)) {
2025
- var i = new kt(d || r, e, this.metadata.metadata);
2026
- return n && (i.carrierCode = n), i;
2027
- }
2028
- } }, { key: "isPossible", value: function () { var t = this.getNumber(); return !!t && t.isPossible(); } }, { key: "isValid", value: function () { var t = this.getNumber(); return !!t && t.isValid(); } }, { key: "getNationalNumber", value: function () { return this.state.nationalSignificantNumber; } }, { key: "getChars", value: function () { return (this.state.international ? "+" : "") + this.state.digits; } }, { key: "getTemplate", value: function () { return this.formatter.getTemplate(this.state) || this.getNonFormattedTemplate() || ""; } }]) && Fr(e.prototype, n), Object.defineProperty(e, "prototype", { writable: !1 }), t;
2029
- }();
2030
- function Dr(t) { return new O(t).getCountries(); }
2031
- function Rr(t, e, n) {
2032
- if (e[t])
2033
- return new kt(t, e[t], n);
2034
- }
2035
- function Mr(t, e, n) { return n || (n = e, e = void 0), new kr(e, n).input(t); }
2036
- function Lr() { return n(re, arguments); }
2037
- function _r(t, n) { return Dn.call(this, t, n, e); }
2038
- function Gr(t) { return kr.call(this, t, e); }
2039
- function Br() { return n(F, arguments); }
2040
- function Ur() { return O.call(this, e); }
2041
- function Vr() { var t = de(arguments), e = t.text, n = t.options, r = t.metadata; return Yt(e, n, r); }
2042
- function Wr() { return n(Vr, arguments); }
2043
- function Hr(t) { return Hr = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) { return typeof t; } : function (t) { return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, Hr(t); }
2044
- function Kr(t, e) {
2045
- return function (t) {
2046
- if (Array.isArray(t))
2047
- return t;
2048
- }(t) || function (t, e) {
2049
- var n = null == t ? null : "undefined" != typeof Symbol && t[Symbol.iterator] || t["@@iterator"];
2050
- if (null == n)
2051
- return;
2052
- var r, d, i = [], a = !0, o = !1;
2053
- try {
2054
- for (n = n.call(t); !(a = (r = n.next()).done) && (i.push(r.value), !e || i.length !== e); a = !0)
2055
- ;
2056
- }
2057
- catch (t) {
2058
- o = !0, d = t;
2059
- }
2060
- finally {
2061
- try {
2062
- a || null == n.return || n.return();
2063
- }
2064
- finally {
2065
- if (o)
2066
- throw d;
2067
- }
2068
- }
2069
- return i;
2070
- }(t, e) || function (t, e) {
2071
- if (!t)
2072
- return;
2073
- if ("string" == typeof t)
2074
- return Yr(t, e);
2075
- var n = Object.prototype.toString.call(t).slice(8, -1);
2076
- "Object" === n && t.constructor && (n = t.constructor.name);
2077
- if ("Map" === n || "Set" === n)
2078
- return Array.from(t);
2079
- if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
2080
- return Yr(t, e);
2081
- }(t, e) || function () { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }();
2082
- }
2083
- function Yr(t, e) {
2084
- (null == e || e > t.length) && (e = t.length);
2085
- for (var n = 0, r = new Array(e); n < e; n++)
2086
- r[n] = t[n];
2087
- return r;
2088
- }
2089
- function Zr() { var t = Xr(arguments), e = t.input, n = t.format, r = t.options, d = t.metadata; return St(e, n, r, d); }
2090
- function Xr(t) {
2091
- var e, n, r, d, i = Kr(Array.prototype.slice.call(t), 5), a = i[0], o = i[1], u = i[2], $ = i[3], l = i[4];
2092
- if ("string" == typeof a)
2093
- if ("string" == typeof u)
2094
- n = u, l ? (r = $, d = l) : d = $, e = Yt(a, { defaultCountry: o, extended: !0 }, d);
2095
- else {
2096
- if ("string" != typeof o)
2097
- throw new Error("`format` argument not passed to `formatNumber(number, format)`");
2098
- n = o, $ ? (r = u, d = $) : d = u, e = Yt(a, { extended: !0 }, d);
2099
- }
2100
- else {
2101
- if (!Jr(a))
2102
- throw new TypeError("A phone number must either be a string or an object of shape { phone, [country] }.");
2103
- e = a, n = o, $ ? (r = u, d = $) : d = u;
2104
- }
2105
- return "International" === n ? n = "INTERNATIONAL" : "National" === n && (n = "NATIONAL"), { input: e, format: n, options: r, metadata: d };
2106
- }
2107
- _r.prototype = Object.create(Dn.prototype, {}), _r.prototype.constructor = _r, Gr.prototype = Object.create(kr.prototype, {}), Gr.prototype.constructor = Gr, Ur.prototype = Object.create(O.prototype, {}), Ur.prototype.constructor = Ur;
2108
- var Jr = function (t) { return "object" === Hr(t); };
2109
- function zr() { return n(Zr, arguments); }
2110
- function Qr(t) { return Qr = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) { return typeof t; } : function (t) { return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t; }, Qr(t); }
2111
- function qr(t, e) {
2112
- return function (t) {
2113
- if (Array.isArray(t))
2114
- return t;
2115
- }(t) || function (t, e) {
2116
- var n = null == t ? null : "undefined" != typeof Symbol && t[Symbol.iterator] || t["@@iterator"];
2117
- if (null == n)
2118
- return;
2119
- var r, d, i = [], a = !0, o = !1;
2120
- try {
2121
- for (n = n.call(t); !(a = (r = n.next()).done) && (i.push(r.value), !e || i.length !== e); a = !0)
2122
- ;
2123
- }
2124
- catch (t) {
2125
- o = !0, d = t;
2126
- }
2127
- finally {
2128
- try {
2129
- a || null == n.return || n.return();
2130
- }
2131
- finally {
2132
- if (o)
2133
- throw d;
2134
- }
2135
- }
2136
- return i;
2137
- }(t, e) || function (t, e) {
2138
- if (!t)
2139
- return;
2140
- if ("string" == typeof t)
2141
- return td(t, e);
2142
- var n = Object.prototype.toString.call(t).slice(8, -1);
2143
- "Object" === n && t.constructor && (n = t.constructor.name);
2144
- if ("Map" === n || "Set" === n)
2145
- return Array.from(t);
2146
- if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
2147
- return td(t, e);
2148
- }(t, e) || function () { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }();
2149
- }
2150
- function td(t, e) {
2151
- (null == e || e > t.length) && (e = t.length);
2152
- for (var n = 0, r = new Array(e); n < e; n++)
2153
- r[n] = t[n];
2154
- return r;
2155
- }
2156
- function ed() { var t = nd(arguments), e = t.input, n = t.options, r = t.metadata; return ht(e, n, r); }
2157
- function nd(t) {
2158
- var e, n, r = qr(Array.prototype.slice.call(t), 4), d = r[0], i = r[1], a = r[2], o = r[3], u = {};
2159
- if ("string" == typeof d)
2160
- "object" !== Qr(i) ? (o ? (u = a, n = o) : n = a, e = U(d) ? Yt(d, { defaultCountry: i }, n) : {}) : (a ? (u = i, n = a) : n = i, e = U(d) ? Yt(d, void 0, n) : {});
2161
- else {
2162
- if (!rd(d))
2163
- throw new TypeError("A phone number must either be a string or an object of shape { phone, [country] }.");
2164
- e = d, a ? (u = i, n = a) : n = i;
2165
- }
2166
- return { input: e, options: u, metadata: n };
2167
- }
2168
- var rd = function (t) { return "object" === Qr(t); };
2169
- function dd() { var t = nd(arguments), e = t.input, n = t.options, r = t.metadata; return rt(e, n, r); }
2170
- function id() { var t = nd(arguments), e = t.input, n = t.options, r = t.metadata; return mt(e, n, r); }
2171
- function ad(t, e, n) {
2172
- if ("string" != typeof t)
2173
- throw new TypeError("number must be a string");
2174
- if ("string" != typeof e)
2175
- throw new TypeError("country must be a string");
2176
- return function (t, e, n, r) { return n = n || {}, t.country === e && mt(t, n, r); }(U(t) ? Yt(t, { defaultCountry: e }, n) : {}, e, void 0, n);
2177
- }
2178
- function od(t, e) {
2179
- for (var n = 0; n < e.length; n++) {
2180
- var r = e[n];
2181
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r);
2182
- }
2183
- }
2184
- var ud = new RegExp("^[  ­​⁠ ]+"), $d = new RegExp("[" + y + "]+$");
2185
- function ld(t, e, n) {
2186
- void 0 === e && (e = {});
2187
- for (var r = new sd(t, e, n), d = []; r.hasNext();)
2188
- d.push(r.next());
2189
- return d;
2190
- }
2191
- function cd(t, e, n) { void 0 === e && (e = {}); var r, d, i, a = new sd(t, e, n); return r = {}, d = Symbol.iterator, i = function () { return { next: function () { return a.hasNext() ? { done: !1, value: a.next() } : { done: !0 }; } }; }, d in r ? Object.defineProperty(r, d, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : r[d] = i, r; }
2192
- var sd = function () {
2193
- function t(e, n, r) {
2194
- !function (t, e) {
2195
- if (!(t instanceof e))
2196
- throw new TypeError("Cannot call a class as a function");
2197
- }(this, t), this.text = e, this.options = n || {}, this.metadata = r, this.state = "NOT_READY", this.regexp = new RegExp(G, "ig");
2198
- }
2199
- var e, n;
2200
- return e = t, n = [{ key: "find", value: function () {
2201
- var t = this.regexp.exec(this.text);
2202
- if (t) {
2203
- var e = t[0], n = t.index;
2204
- e = e.replace(ud, ""), n += t[0].length - e.length, e = rn(e = e.replace($d, ""));
2205
- var r = this.parseCandidate(e, n);
2206
- return r || this.find();
2207
- }
2208
- } }, { key: "parseCandidate", value: function (t, e) {
2209
- if (un(t, e, this.text) && pn(t, e, this.text, this.options.extended ? "POSSIBLE" : "VALID")) {
2210
- var n = Yt(t, this.options, this.metadata);
2211
- if (n.phone)
2212
- return n.startsAt = e, n.endsAt = e + t.length, n;
2213
- }
2214
- } }, { key: "hasNext", value: function () { return "NOT_READY" === this.state && (this.last_match = this.find(), this.last_match ? this.state = "READY" : this.state = "DONE"), "READY" === this.state; } }, { key: "next", value: function () {
2215
- if (!this.hasNext())
2216
- throw new Error("No next element");
2217
- var t = this.last_match;
2218
- return this.last_match = null, this.state = "NOT_READY", t;
2219
- } }], n && od(e.prototype, n), Object.defineProperty(e, "prototype", { writable: !1 }), t;
2220
- }();
2221
- function fd() { var t = de(arguments), e = t.text, n = t.options, r = t.metadata; return ld(e, n, r); }
2222
- function hd() { var t = de(arguments), e = t.text, n = t.options, r = t.metadata; return cd(e, n, r); }
2223
- function yd(t, n) { sd.call(this, t, n, e); }
2224
- yd.prototype = Object.create(sd.prototype, {}), yd.prototype.constructor = yd, t.AsYouType = Gr, t.AsYouTypeCustom = kr, t.DIGITS = K, t.DIGIT_PLACEHOLDER = Qn, t.Metadata = Ur, t.ParseError = s, t.PhoneNumberMatcher = _r, t.PhoneNumberSearch = yd, t.PhoneNumberSearchCustom = sd, t.findNumbers = function () { return n(Mn, arguments); }, t.findPhoneNumbers = function () { return n(fd, arguments); }, t.findPhoneNumbersCustom = fd, t.findPhoneNumbersInText = function () { return n(Wn, arguments); }, t.format = zr, t.formatCustom = Zr, t.formatIncompletePhoneNumber = function () { return n(Mr, arguments); }, t.formatNumber = zr, t.formatRFC3966 = $t, t.getCountries = function () { return n(Dr, arguments); }, t.getCountryCallingCode = Br, t.getCountryCallingCodeCustom = F, t.getExampleNumber = function () { return n(Rr, arguments); }, t.getExtPrefix = function () { return n(j, arguments); }, t.getNumberType = function () { return n(ed, arguments); }, t.getNumberTypeCustom = ed, t.getPhoneCode = Br, t.getPhoneCodeCustom = F, t.isPossibleNumber = function () { return n(dd, arguments); }, t.isPossiblePhoneNumber = function () { return n(ge, arguments); }, t.isSupportedCountry = function () { return n(k, arguments); }, t.isValidNumber = function () { return n(id, arguments); }, t.isValidNumberCustom = id, t.isValidNumberForRegion = function () { return n(ad, arguments); }, t.isValidPhoneNumber = function () { return n(he, arguments); }, t.parse = Wr, t.parseCustom = Vr, t.parseDigits = Z, t.parseIncompletePhoneNumber = z, t.parseNumber = Wr, t.parsePhoneNumber = Lr, t.parsePhoneNumberCharacter = Q, t.parsePhoneNumberFromString = function () { return n(le, arguments); }, t.parsePhoneNumberWithError = Lr, t.parseRFC3966 = ut, t.searchNumbers = function () { return n(_n, arguments); }, t.searchPhoneNumbers = function () { return n(hd, arguments); }, t.searchPhoneNumbersCustom = hd, t.searchPhoneNumbersInText = function () { return n(Yn, arguments); }, t.validatePhoneNumberLength = function () { return n(Ne, arguments); }, Object.defineProperty(t, "__esModule", { value: !0 });
2225
- }));