You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1331 lines
15 KiB

  1. // Array of country objects for the flag dropdown.
  2. // Here is the criteria for the plugin to support a given country/territory
  3. // - It has an iso2 code: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
  4. // - It has it's own country calling code (it is not a sub-region of another country): https://en.wikipedia.org/wiki/List_of_country_calling_codes
  5. // - It has a flag in the region-flags project: https://github.com/behdad/region-flags/tree/gh-pages/png
  6. // - It is supported by libphonenumber (it must be listed on this page): https://github.com/googlei18n/libphonenumber/blob/master/resources/ShortNumberMetadata.xml
  7. // Each country array has the following information:
  8. // [
  9. // Country name,
  10. // iso2 code,
  11. // International dial code,
  12. // Order (if >1 country with same dial code),
  13. // Area codes
  14. // ]
  15. var allCountries = [
  16. [
  17. "Afghanistan (‫افغانستان‬‎)",
  18. "af",
  19. "93"
  20. ],
  21. [
  22. "Albania (Shqipëri)",
  23. "al",
  24. "355"
  25. ],
  26. [
  27. "Algeria (‫الجزائر‬‎)",
  28. "dz",
  29. "213"
  30. ],
  31. [
  32. "American Samoa",
  33. "as",
  34. "1",
  35. 5,
  36. ["684"]
  37. ],
  38. [
  39. "Andorra",
  40. "ad",
  41. "376"
  42. ],
  43. [
  44. "Angola",
  45. "ao",
  46. "244"
  47. ],
  48. [
  49. "Anguilla",
  50. "ai",
  51. "1",
  52. 6,
  53. ["264"]
  54. ],
  55. [
  56. "Antigua and Barbuda",
  57. "ag",
  58. "1",
  59. 7,
  60. ["268"]
  61. ],
  62. [
  63. "Argentina",
  64. "ar",
  65. "54"
  66. ],
  67. [
  68. "Armenia (Հայաստան)",
  69. "am",
  70. "374"
  71. ],
  72. [
  73. "Aruba",
  74. "aw",
  75. "297"
  76. ],
  77. [
  78. "Australia",
  79. "au",
  80. "61",
  81. 0
  82. ],
  83. [
  84. "Austria (Österreich)",
  85. "at",
  86. "43"
  87. ],
  88. [
  89. "Azerbaijan (Azərbaycan)",
  90. "az",
  91. "994"
  92. ],
  93. [
  94. "Bahamas",
  95. "bs",
  96. "1",
  97. 8,
  98. ["242"]
  99. ],
  100. [
  101. "Bahrain (‫البحرين‬‎)",
  102. "bh",
  103. "973"
  104. ],
  105. [
  106. "Bangladesh (বাংলাদেশ)",
  107. "bd",
  108. "880"
  109. ],
  110. [
  111. "Barbados",
  112. "bb",
  113. "1",
  114. 9,
  115. ["246"]
  116. ],
  117. [
  118. "Belarus (Беларусь)",
  119. "by",
  120. "375"
  121. ],
  122. [
  123. "Belgium (België)",
  124. "be",
  125. "32"
  126. ],
  127. [
  128. "Belize",
  129. "bz",
  130. "501"
  131. ],
  132. [
  133. "Benin (Bénin)",
  134. "bj",
  135. "229"
  136. ],
  137. [
  138. "Bermuda",
  139. "bm",
  140. "1",
  141. 10,
  142. ["441"]
  143. ],
  144. [
  145. "Bhutan (འབྲུག)",
  146. "bt",
  147. "975"
  148. ],
  149. [
  150. "Bolivia",
  151. "bo",
  152. "591"
  153. ],
  154. [
  155. "Bosnia and Herzegovina (Босна и Херцеговина)",
  156. "ba",
  157. "387"
  158. ],
  159. [
  160. "Botswana",
  161. "bw",
  162. "267"
  163. ],
  164. [
  165. "Brazil (Brasil)",
  166. "br",
  167. "55"
  168. ],
  169. [
  170. "British Indian Ocean Territory",
  171. "io",
  172. "246"
  173. ],
  174. [
  175. "British Virgin Islands",
  176. "vg",
  177. "1",
  178. 11,
  179. ["284"]
  180. ],
  181. [
  182. "Brunei",
  183. "bn",
  184. "673"
  185. ],
  186. [
  187. "Bulgaria (България)",
  188. "bg",
  189. "359"
  190. ],
  191. [
  192. "Burkina Faso",
  193. "bf",
  194. "226"
  195. ],
  196. [
  197. "Burundi (Uburundi)",
  198. "bi",
  199. "257"
  200. ],
  201. [
  202. "Cambodia (កម្ពុជា)",
  203. "kh",
  204. "855"
  205. ],
  206. [
  207. "Cameroon (Cameroun)",
  208. "cm",
  209. "237"
  210. ],
  211. [
  212. "Canada",
  213. "ca",
  214. "1",
  215. 1,
  216. ["204", "226", "236", "249", "250", "289", "306", "343", "365", "387", "403", "416", "418", "431", "437", "438", "450", "506", "514", "519", "548", "579", "581", "587", "604", "613", "639", "647", "672", "705", "709", "742", "778", "780", "782", "807", "819", "825", "867", "873", "902", "905"]
  217. ],
  218. [
  219. "Cape Verde (Kabu Verdi)",
  220. "cv",
  221. "238"
  222. ],
  223. [
  224. "Caribbean Netherlands",
  225. "bq",
  226. "599",
  227. 1,
  228. ["3", "4", "7"]
  229. ],
  230. [
  231. "Cayman Islands",
  232. "ky",
  233. "1",
  234. 12,
  235. ["345"]
  236. ],
  237. [
  238. "Central African Republic (République centrafricaine)",
  239. "cf",
  240. "236"
  241. ],
  242. [
  243. "Chad (Tchad)",
  244. "td",
  245. "235"
  246. ],
  247. [
  248. "Chile",
  249. "cl",
  250. "56"
  251. ],
  252. [
  253. "China (中国)",
  254. "cn",
  255. "86"
  256. ],
  257. [
  258. "Christmas Island",
  259. "cx",
  260. "61",
  261. 2,
  262. ["89164"]
  263. ],
  264. [
  265. "Cocos (Keeling) Islands",
  266. "cc",
  267. "61",
  268. 1,
  269. ["89162"]
  270. ],
  271. [
  272. "Colombia",
  273. "co",
  274. "57"
  275. ],
  276. [
  277. "Comoros (‫جزر القمر‬‎)",
  278. "km",
  279. "269"
  280. ],
  281. [
  282. "Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)",
  283. "cd",
  284. "243"
  285. ],
  286. [
  287. "Congo (Republic) (Congo-Brazzaville)",
  288. "cg",
  289. "242"
  290. ],
  291. [
  292. "Cook Islands",
  293. "ck",
  294. "682"
  295. ],
  296. [
  297. "Costa Rica",
  298. "cr",
  299. "506"
  300. ],
  301. [
  302. "Côte d’Ivoire",
  303. "ci",
  304. "225"
  305. ],
  306. [
  307. "Croatia (Hrvatska)",
  308. "hr",
  309. "385"
  310. ],
  311. [
  312. "Cuba",
  313. "cu",
  314. "53"
  315. ],
  316. [
  317. "Curaçao",
  318. "cw",
  319. "599",
  320. 0
  321. ],
  322. [
  323. "Cyprus (Κύπρος)",
  324. "cy",
  325. "357"
  326. ],
  327. [
  328. "Czech Republic (Česká republika)",
  329. "cz",
  330. "420"
  331. ],
  332. [
  333. "Denmark (Danmark)",
  334. "dk",
  335. "45"
  336. ],
  337. [
  338. "Djibouti",
  339. "dj",
  340. "253"
  341. ],
  342. [
  343. "Dominica",
  344. "dm",
  345. "1",
  346. 13,
  347. ["767"]
  348. ],
  349. [
  350. "Dominican Republic (República Dominicana)",
  351. "do",
  352. "1",
  353. 2,
  354. ["809", "829", "849"]
  355. ],
  356. [
  357. "Ecuador",
  358. "ec",
  359. "593"
  360. ],
  361. [
  362. "Egypt (‫مصر‬‎)",
  363. "eg",
  364. "20"
  365. ],
  366. [
  367. "El Salvador",
  368. "sv",
  369. "503"
  370. ],
  371. [
  372. "Equatorial Guinea (Guinea Ecuatorial)",
  373. "gq",
  374. "240"
  375. ],
  376. [
  377. "Eritrea",
  378. "er",
  379. "291"
  380. ],
  381. [
  382. "Estonia (Eesti)",
  383. "ee",
  384. "372"
  385. ],
  386. [
  387. "Ethiopia",
  388. "et",
  389. "251"
  390. ],
  391. [
  392. "Falkland Islands (Islas Malvinas)",
  393. "fk",
  394. "500"
  395. ],
  396. [
  397. "Faroe Islands (Føroyar)",
  398. "fo",
  399. "298"
  400. ],
  401. [
  402. "Fiji",
  403. "fj",
  404. "679"
  405. ],
  406. [
  407. "Finland (Suomi)",
  408. "fi",
  409. "358",
  410. 0
  411. ],
  412. [
  413. "France",
  414. "fr",
  415. "33"
  416. ],
  417. [
  418. "French Guiana (Guyane française)",
  419. "gf",
  420. "594"
  421. ],
  422. [
  423. "French Polynesia (Polynésie française)",
  424. "pf",
  425. "689"
  426. ],
  427. [
  428. "Gabon",
  429. "ga",
  430. "241"
  431. ],
  432. [
  433. "Gambia",
  434. "gm",
  435. "220"
  436. ],
  437. [
  438. "Georgia (საქართველო)",
  439. "ge",
  440. "995"
  441. ],
  442. [
  443. "Germany (Deutschland)",
  444. "de",
  445. "49"
  446. ],
  447. [
  448. "Ghana (Gaana)",
  449. "gh",
  450. "233"
  451. ],
  452. [
  453. "Gibraltar",
  454. "gi",
  455. "350"
  456. ],
  457. [
  458. "Greece (Ελλάδα)",
  459. "gr",
  460. "30"
  461. ],
  462. [
  463. "Greenland (Kalaallit Nunaat)",
  464. "gl",
  465. "299"
  466. ],
  467. [
  468. "Grenada",
  469. "gd",
  470. "1",
  471. 14,
  472. ["473"]
  473. ],
  474. [
  475. "Guadeloupe",
  476. "gp",
  477. "590",
  478. 0
  479. ],
  480. [
  481. "Guam",
  482. "gu",
  483. "1",
  484. 15,
  485. ["671"]
  486. ],
  487. [
  488. "Guatemala",
  489. "gt",
  490. "502"
  491. ],
  492. [
  493. "Guernsey",
  494. "gg",
  495. "44",
  496. 1,
  497. ["1481", "7781", "7839", "7911"]
  498. ],
  499. [
  500. "Guinea (Guinée)",
  501. "gn",
  502. "224"
  503. ],
  504. [
  505. "Guinea-Bissau (Guiné Bissau)",
  506. "gw",
  507. "245"
  508. ],
  509. [
  510. "Guyana",
  511. "gy",
  512. "592"
  513. ],
  514. [
  515. "Haiti",
  516. "ht",
  517. "509"
  518. ],
  519. [
  520. "Honduras",
  521. "hn",
  522. "504"
  523. ],
  524. [
  525. "Hong Kong (香港)",
  526. "hk",
  527. "852"
  528. ],
  529. [
  530. "Hungary (Magyarország)",
  531. "hu",
  532. "36"
  533. ],
  534. [
  535. "Iceland (Ísland)",
  536. "is",
  537. "354"
  538. ],
  539. [
  540. "India (भारत)",
  541. "in",
  542. "91"
  543. ],
  544. [
  545. "Indonesia",
  546. "id",
  547. "62"
  548. ],
  549. [
  550. "Iran (‫ایران‬‎)",
  551. "ir",
  552. "98"
  553. ],
  554. [
  555. "Iraq (‫العراق‬‎)",
  556. "iq",
  557. "964"
  558. ],
  559. [
  560. "Ireland",
  561. "ie",
  562. "353"
  563. ],
  564. [
  565. "Isle of Man",
  566. "im",
  567. "44",
  568. 2,
  569. ["1624", "74576", "7524", "7924", "7624"]
  570. ],
  571. [
  572. "Israel (‫ישראל‬‎)",
  573. "il",
  574. "972"
  575. ],
  576. [
  577. "Italy (Italia)",
  578. "it",
  579. "39",
  580. 0
  581. ],
  582. [
  583. "Jamaica",
  584. "jm",
  585. "1",
  586. 4,
  587. ["876", "658"]
  588. ],
  589. [
  590. "Japan (日本)",
  591. "jp",
  592. "81"
  593. ],
  594. [
  595. "Jersey",
  596. "je",
  597. "44",
  598. 3,
  599. ["1534", "7509", "7700", "7797", "7829", "7937"]
  600. ],
  601. [
  602. "Jordan (‫الأردن‬‎)",
  603. "jo",
  604. "962"
  605. ],
  606. [
  607. "Kazakhstan (Казахстан)",
  608. "kz",
  609. "7",
  610. 1,
  611. ["33", "7"]
  612. ],
  613. [
  614. "Kenya",
  615. "ke",
  616. "254"
  617. ],
  618. [
  619. "Kiribati",
  620. "ki",
  621. "686"
  622. ],
  623. [
  624. "Kosovo",
  625. "xk",
  626. "383"
  627. ],
  628. [
  629. "Kuwait (‫الكويت‬‎)",
  630. "kw",
  631. "965"
  632. ],
  633. [
  634. "Kyrgyzstan (Кыргызстан)",
  635. "kg",
  636. "996"
  637. ],
  638. [
  639. "Laos (ລາວ)",
  640. "la",
  641. "856"
  642. ],
  643. [
  644. "Latvia (Latvija)",
  645. "lv",
  646. "371"
  647. ],
  648. [
  649. "Lebanon (‫لبنان‬‎)",
  650. "lb",
  651. "961"
  652. ],
  653. [
  654. "Lesotho",
  655. "ls",
  656. "266"
  657. ],
  658. [
  659. "Liberia",
  660. "lr",
  661. "231"
  662. ],
  663. [
  664. "Libya (‫ليبيا‬‎)",
  665. "ly",
  666. "218"
  667. ],
  668. [
  669. "Liechtenstein",
  670. "li",
  671. "423"
  672. ],
  673. [
  674. "Lithuania (Lietuva)",
  675. "lt",
  676. "370"
  677. ],
  678. [
  679. "Luxembourg",
  680. "lu",
  681. "352"
  682. ],
  683. [
  684. "Macau (澳門)",
  685. "mo",
  686. "853"
  687. ],
  688. [
  689. "Macedonia (FYROM) (Македонија)",
  690. "mk",
  691. "389"
  692. ],
  693. [
  694. "Madagascar (Madagasikara)",
  695. "mg",
  696. "261"
  697. ],
  698. [
  699. "Malawi",
  700. "mw",
  701. "265"
  702. ],
  703. [
  704. "Malaysia",
  705. "my",
  706. "60"
  707. ],
  708. [
  709. "Maldives",
  710. "mv",
  711. "960"
  712. ],
  713. [
  714. "Mali",
  715. "ml",
  716. "223"
  717. ],
  718. [
  719. "Malta",
  720. "mt",
  721. "356"
  722. ],
  723. [
  724. "Marshall Islands",
  725. "mh",
  726. "692"
  727. ],
  728. [
  729. "Martinique",
  730. "mq",
  731. "596"
  732. ],
  733. [
  734. "Mauritania (‫موريتانيا‬‎)",
  735. "mr",
  736. "222"
  737. ],
  738. [
  739. "Mauritius (Moris)",
  740. "mu",
  741. "230"
  742. ],
  743. [
  744. "Mayotte",
  745. "yt",
  746. "262",
  747. 1,
  748. ["269", "639"]
  749. ],
  750. [
  751. "Mexico (México)",
  752. "mx",
  753. "52"
  754. ],
  755. [
  756. "Micronesia",
  757. "fm",
  758. "691"
  759. ],
  760. [
  761. "Moldova (Republica Moldova)",
  762. "md",
  763. "373"
  764. ],
  765. [
  766. "Monaco",
  767. "mc",
  768. "377"
  769. ],
  770. [
  771. "Mongolia (Монгол)",
  772. "mn",
  773. "976"
  774. ],
  775. [
  776. "Montenegro (Crna Gora)",
  777. "me",
  778. "382"
  779. ],
  780. [
  781. "Montserrat",
  782. "ms",
  783. "1",
  784. 16,
  785. ["664"]
  786. ],
  787. [
  788. "Morocco (‫المغرب‬‎)",
  789. "ma",
  790. "212",
  791. 0
  792. ],
  793. [
  794. "Mozambique (Moçambique)",
  795. "mz",
  796. "258"
  797. ],
  798. [
  799. "Myanmar (Burma) (မြန်မာ)",
  800. "mm",
  801. "95"
  802. ],
  803. [
  804. "Namibia (Namibië)",
  805. "na",
  806. "264"
  807. ],
  808. [
  809. "Nauru",
  810. "nr",
  811. "674"
  812. ],
  813. [
  814. "Nepal (नेपाल)",
  815. "np",
  816. "977"
  817. ],
  818. [
  819. "Netherlands (Nederland)",
  820. "nl",
  821. "31"
  822. ],
  823. [
  824. "New Caledonia (Nouvelle-Calédonie)",
  825. "nc",
  826. "687"
  827. ],
  828. [
  829. "New Zealand",
  830. "nz",
  831. "64"
  832. ],
  833. [
  834. "Nicaragua",
  835. "ni",
  836. "505"
  837. ],
  838. [
  839. "Niger (Nijar)",
  840. "ne",
  841. "227"
  842. ],
  843. [
  844. "Nigeria",
  845. "ng",
  846. "234"
  847. ],
  848. [
  849. "Niue",
  850. "nu",
  851. "683"
  852. ],
  853. [
  854. "Norfolk Island",
  855. "nf",
  856. "672"
  857. ],
  858. [
  859. "North Korea (조선 민주주의 인민 공화국)",
  860. "kp",
  861. "850"
  862. ],
  863. [
  864. "Northern Mariana Islands",
  865. "mp",
  866. "1",
  867. 17,
  868. ["670"]
  869. ],
  870. [
  871. "Norway (Norge)",
  872. "no",
  873. "47",
  874. 0
  875. ],
  876. [
  877. "Oman (‫عُمان‬‎)",
  878. "om",
  879. "968"
  880. ],
  881. [
  882. "Pakistan (‫پاکستان‬‎)",
  883. "pk",
  884. "92"
  885. ],
  886. [
  887. "Palau",
  888. "pw",
  889. "680"
  890. ],
  891. [
  892. "Palestine (‫فلسطين‬‎)",
  893. "ps",
  894. "970"
  895. ],
  896. [
  897. "Panama (Panamá)",
  898. "pa",
  899. "507"
  900. ],
  901. [
  902. "Papua New Guinea",
  903. "pg",
  904. "675"
  905. ],
  906. [
  907. "Paraguay",
  908. "py",
  909. "595"
  910. ],
  911. [
  912. "Peru (Perú)",
  913. "pe",
  914. "51"
  915. ],
  916. [
  917. "Philippines",
  918. "ph",
  919. "63"
  920. ],
  921. [
  922. "Poland (Polska)",
  923. "pl",
  924. "48"
  925. ],
  926. [
  927. "Portugal",
  928. "pt",
  929. "351"
  930. ],
  931. [
  932. "Puerto Rico",
  933. "pr",
  934. "1",
  935. 3,
  936. ["787", "939"]
  937. ],
  938. [
  939. "Qatar (‫قطر‬‎)",
  940. "qa",
  941. "974"
  942. ],
  943. [
  944. "Réunion (La Réunion)",
  945. "re",
  946. "262",
  947. 0
  948. ],
  949. [
  950. "Romania (România)",
  951. "ro",
  952. "40"
  953. ],
  954. [
  955. "Russia (Россия)",
  956. "ru",
  957. "7",
  958. 0
  959. ],
  960. [
  961. "Rwanda",
  962. "rw",
  963. "250"
  964. ],
  965. [
  966. "Saint Barthélemy",
  967. "bl",
  968. "590",
  969. 1
  970. ],
  971. [
  972. "Saint Helena",
  973. "sh",
  974. "290"
  975. ],
  976. [
  977. "Saint Kitts and Nevis",
  978. "kn",
  979. "1",
  980. 18,
  981. ["869"]
  982. ],
  983. [
  984. "Saint Lucia",
  985. "lc",
  986. "1",
  987. 19,
  988. ["758"]
  989. ],
  990. [
  991. "Saint Martin (Saint-Martin (partie française))",
  992. "mf",
  993. "590",
  994. 2
  995. ],
  996. [
  997. "Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)",
  998. "pm",
  999. "508"
  1000. ],
  1001. [
  1002. "Saint Vincent and the Grenadines",
  1003. "vc",
  1004. "1",
  1005. 20,
  1006. ["784"]
  1007. ],
  1008. [
  1009. "Samoa",
  1010. "ws",
  1011. "685"
  1012. ],
  1013. [
  1014. "San Marino",
  1015. "sm",
  1016. "378"
  1017. ],
  1018. [
  1019. "São Tomé and Príncipe (São Tomé e Príncipe)",
  1020. "st",
  1021. "239"
  1022. ],
  1023. [
  1024. "Saudi Arabia (‫المملكة العربية السعودية‬‎)",
  1025. "sa",
  1026. "966"
  1027. ],
  1028. [
  1029. "Senegal (Sénégal)",
  1030. "sn",
  1031. "221"
  1032. ],
  1033. [
  1034. "Serbia (Србија)",
  1035. "rs",
  1036. "381"
  1037. ],
  1038. [
  1039. "Seychelles",
  1040. "sc",
  1041. "248"
  1042. ],
  1043. [
  1044. "Sierra Leone",
  1045. "sl",
  1046. "232"
  1047. ],
  1048. [
  1049. "Singapore",
  1050. "sg",
  1051. "65"
  1052. ],
  1053. [
  1054. "Sint Maarten",
  1055. "sx",
  1056. "1",
  1057. 21,
  1058. ["721"]
  1059. ],
  1060. [
  1061. "Slovakia (Slovensko)",
  1062. "sk",
  1063. "421"
  1064. ],
  1065. [
  1066. "Slovenia (Slovenija)",
  1067. "si",
  1068. "386"
  1069. ],
  1070. [
  1071. "Solomon Islands",
  1072. "sb",
  1073. "677"
  1074. ],
  1075. [
  1076. "Somalia (Soomaaliya)",
  1077. "so",
  1078. "252"
  1079. ],
  1080. [
  1081. "South Africa",
  1082. "za",
  1083. "27"
  1084. ],
  1085. [
  1086. "South Korea (대한민국)",
  1087. "kr",
  1088. "82"
  1089. ],
  1090. [
  1091. "South Sudan (‫جنوب السودان‬‎)",
  1092. "ss",
  1093. "211"
  1094. ],
  1095. [
  1096. "Spain (España)",
  1097. "es",
  1098. "34"
  1099. ],
  1100. [
  1101. "Sri Lanka (ශ්‍රී ලංකාව)",
  1102. "lk",
  1103. "94"
  1104. ],
  1105. [
  1106. "Sudan (‫السودان‬‎)",
  1107. "sd",
  1108. "249"
  1109. ],
  1110. [
  1111. "Suriname",
  1112. "sr",
  1113. "597"
  1114. ],
  1115. [
  1116. "Svalbard and Jan Mayen",
  1117. "sj",
  1118. "47",
  1119. 1,
  1120. ["79"]
  1121. ],
  1122. [
  1123. "Swaziland",
  1124. "sz",
  1125. "268"
  1126. ],
  1127. [
  1128. "Sweden (Sverige)",
  1129. "se",
  1130. "46"
  1131. ],
  1132. [
  1133. "Switzerland (Schweiz)",
  1134. "ch",
  1135. "41"
  1136. ],
  1137. [
  1138. "Syria (‫سوريا‬‎)",
  1139. "sy",
  1140. "963"
  1141. ],
  1142. [
  1143. "Taiwan (台灣)",
  1144. "tw",
  1145. "886"
  1146. ],
  1147. [
  1148. "Tajikistan",
  1149. "tj",
  1150. "992"
  1151. ],
  1152. [
  1153. "Tanzania",
  1154. "tz",
  1155. "255"
  1156. ],
  1157. [
  1158. "Thailand (ไทย)",
  1159. "th",
  1160. "66"
  1161. ],
  1162. [
  1163. "Timor-Leste",
  1164. "tl",
  1165. "670"
  1166. ],
  1167. [
  1168. "Togo",
  1169. "tg",
  1170. "228"
  1171. ],
  1172. [
  1173. "Tokelau",
  1174. "tk",
  1175. "690"
  1176. ],
  1177. [
  1178. "Tonga",
  1179. "to",
  1180. "676"
  1181. ],
  1182. [
  1183. "Trinidad and Tobago",
  1184. "tt",
  1185. "1",
  1186. 22,
  1187. ["868"]
  1188. ],
  1189. [
  1190. "Tunisia (‫تونس‬‎)",
  1191. "tn",
  1192. "216"
  1193. ],
  1194. [
  1195. "Turkey (Türkiye)",
  1196. "tr",
  1197. "90"
  1198. ],
  1199. [
  1200. "Turkmenistan",
  1201. "tm",
  1202. "993"
  1203. ],
  1204. [
  1205. "Turks and Caicos Islands",
  1206. "tc",
  1207. "1",
  1208. 23,
  1209. ["649"]
  1210. ],
  1211. [
  1212. "Tuvalu",
  1213. "tv",
  1214. "688"
  1215. ],
  1216. [
  1217. "U.S. Virgin Islands",
  1218. "vi",
  1219. "1",
  1220. 24,
  1221. ["340"]
  1222. ],
  1223. [
  1224. "Uganda",
  1225. "ug",
  1226. "256"
  1227. ],
  1228. [
  1229. "Ukraine (Україна)",
  1230. "ua",
  1231. "380"
  1232. ],
  1233. [
  1234. "United Arab Emirates (‫الإمارات العربية المتحدة‬‎)",
  1235. "ae",
  1236. "971"
  1237. ],
  1238. [
  1239. "United Kingdom",
  1240. "gb",
  1241. "44",
  1242. 0
  1243. ],
  1244. [
  1245. "United States",
  1246. "us",
  1247. "1",
  1248. 0
  1249. ],
  1250. [
  1251. "Uruguay",
  1252. "uy",
  1253. "598"
  1254. ],
  1255. [
  1256. "Uzbekistan (Oʻzbekiston)",
  1257. "uz",
  1258. "998"
  1259. ],
  1260. [
  1261. "Vanuatu",
  1262. "vu",
  1263. "678"
  1264. ],
  1265. [
  1266. "Vatican City (Città del Vaticano)",
  1267. "va",
  1268. "39",
  1269. 1,
  1270. ["06698"]
  1271. ],
  1272. [
  1273. "Venezuela",
  1274. "ve",
  1275. "58"
  1276. ],
  1277. [
  1278. "Vietnam (Việt Nam)",
  1279. "vn",
  1280. "84"
  1281. ],
  1282. [
  1283. "Wallis and Futuna (Wallis-et-Futuna)",
  1284. "wf",
  1285. "681"
  1286. ],
  1287. [
  1288. "Western Sahara (‫الصحراء الغربية‬‎)",
  1289. "eh",
  1290. "212",
  1291. 1,
  1292. ["5288", "5289"]
  1293. ],
  1294. [
  1295. "Yemen (‫اليمن‬‎)",
  1296. "ye",
  1297. "967"
  1298. ],
  1299. [
  1300. "Zambia",
  1301. "zm",
  1302. "260"
  1303. ],
  1304. [
  1305. "Zimbabwe",
  1306. "zw",
  1307. "263"
  1308. ],
  1309. [
  1310. "Åland Islands",
  1311. "ax",
  1312. "358",
  1313. 1,
  1314. ["18"]
  1315. ]
  1316. ];
  1317. // loop over all of the countries above, restructuring the data to be objects with named keys
  1318. for (var i = 0; i < allCountries.length; i++) {
  1319. var c = allCountries[i];
  1320. allCountries[i] = {
  1321. name: c[0],
  1322. iso2: c[1],
  1323. dialCode: c[2],
  1324. priority: c[3] || 0,
  1325. areaCodes: c[4] || null
  1326. };
  1327. }