<?php

namespace App\Classes;

class Country
{
    public static function all()
    {
        return [
            "AF" => d_trans("Afghanistan"),
            "AL" => d_trans("Albania"),
            "DZ" => d_trans("Algeria"),
            "AS" => d_trans("American Samoa"),
            "AD" => d_trans("Andorra"),
            "AO" => d_trans("Angola"),
            "AI" => d_trans("Anguilla"),
            "AQ" => d_trans("Antarctica"),
            "AG" => d_trans("Antigua and Barbuda"),
            "AR" => d_trans("Argentina"),
            "AM" => d_trans("Armenia"),
            "AW" => d_trans("Aruba"),
            "AU" => d_trans("Australia"),
            "AT" => d_trans("Austria"),
            "AZ" => d_trans("Azerbaijan"),
            "BS" => d_trans("Bahamas"),
            "BH" => d_trans("Bahrain"),
            "BD" => d_trans("Bangladesh"),
            "BB" => d_trans("Barbados"),
            "BY" => d_trans("Belarus"),
            "BE" => d_trans("Belgium"),
            "BZ" => d_trans("Belize"),
            "BJ" => d_trans("Benin"),
            "BM" => d_trans("Bermuda"),
            "BT" => d_trans("Bhutan"),
            "BO" => d_trans("Bolivia"),
            "BA" => d_trans("Bosnia and Herzegovina"),
            "BW" => d_trans("Botswana"),
            "BV" => d_trans("Bouvet Island"),
            "BR" => d_trans("Brazil"),
            "BQ" => d_trans("British Antarctic Territory"),
            "IO" => d_trans("British Indian Ocean Territory"),
            "VG" => d_trans("British Virgin Islands"),
            "BN" => d_trans("Brunei"),
            "BG" => d_trans("Bulgaria"),
            "BF" => d_trans("Burkina Faso"),
            "BI" => d_trans("Burundi"),
            "KH" => d_trans("Cambodia"),
            "CM" => d_trans("Cameroon"),
            "CA" => d_trans("Canada"),
            "CT" => d_trans("Canton and Enderbury Islands"),
            "CV" => d_trans("Cape Verde"),
            "KY" => d_trans("Cayman Islands"),
            "CF" => d_trans("Central African Republic"),
            "TD" => d_trans("Chad"),
            "CL" => d_trans("Chile"),
            "CN" => d_trans("China"),
            "CX" => d_trans("Christmas Island"),
            "CC" => d_trans("Cocos [Keeling] Islands"),
            "CO" => d_trans("Colombia"),
            "KM" => d_trans("Comoros"),
            "CG" => d_trans("Congo - Brazzaville"),
            "CD" => d_trans("Congo - Kinshasa"),
            "CK" => d_trans("Cook Islands"),
            "CR" => d_trans("Costa Rica"),
            "HR" => d_trans("Croatia"),
            "CU" => d_trans("Cuba"),
            "CY" => d_trans("Cyprus"),
            "CZ" => d_trans("Czech Republic"),
            "CI" => d_trans("Côte d’Ivoire"),
            "DK" => d_trans("Denmark"),
            "DJ" => d_trans("Djibouti"),
            "DM" => d_trans("Dominica"),
            "DO" => d_trans("Dominican Republic"),
            "NQ" => d_trans("Dronning Maud Land"),
            "DD" => d_trans("East Germany"),
            "EC" => d_trans("Ecuador"),
            "EG" => d_trans("Egypt"),
            "SV" => d_trans("El Salvador"),
            "GQ" => d_trans("Equatorial Guinea"),
            "ER" => d_trans("Eritrea"),
            "EE" => d_trans("Estonia"),
            "ET" => d_trans("Ethiopia"),
            "FK" => d_trans("Falkland Islands"),
            "FO" => d_trans("Faroe Islands"),
            "FJ" => d_trans("Fiji"),
            "FI" => d_trans("Finland"),
            "FR" => d_trans("France"),
            "GF" => d_trans("French Guiana"),
            "PF" => d_trans("French Polynesia"),
            "TF" => d_trans("French Southern Territories"),
            "FQ" => d_trans("French Southern and Antarctic Territories"),
            "GA" => d_trans("Gabon"),
            "GM" => d_trans("Gambia"),
            "GE" => d_trans("Georgia"),
            "DE" => d_trans("Germany"),
            "GH" => d_trans("Ghana"),
            "GI" => d_trans("Gibraltar"),
            "GR" => d_trans("Greece"),
            "GL" => d_trans("Greenland"),
            "GD" => d_trans("Grenada"),
            "GP" => d_trans("Guadeloupe"),
            "GU" => d_trans("Guam"),
            "GT" => d_trans("Guatemala"),
            "GG" => d_trans("Guernsey"),
            "GN" => d_trans("Guinea"),
            "GW" => d_trans("Guinea-Bissau"),
            "GY" => d_trans("Guyana"),
            "HT" => d_trans("Haiti"),
            "HM" => d_trans("Heard Island and McDonald Islands"),
            "HN" => d_trans("Honduras"),
            "HK" => d_trans("Hong Kong SAR China"),
            "HU" => d_trans("Hungary"),
            "IS" => d_trans("Iceland"),
            "IN" => d_trans("India"),
            "ID" => d_trans("Indonesia"),
            "IR" => d_trans("Iran"),
            "IQ" => d_trans("Iraq"),
            "IE" => d_trans("Ireland"),
            "IM" => d_trans("Isle of Man"),
            "IL" => d_trans("Israel"),
            "IT" => d_trans("Italy"),
            "JM" => d_trans("Jamaica"),
            "JP" => d_trans("Japan"),
            "JE" => d_trans("Jersey"),
            "JT" => d_trans("Johnston Island"),
            "JO" => d_trans("Jordan"),
            "KZ" => d_trans("Kazakhstan"),
            "KE" => d_trans("Kenya"),
            "KI" => d_trans("Kiribati"),
            "KW" => d_trans("Kuwait"),
            "KG" => d_trans("Kyrgyzstan"),
            "LA" => d_trans("Laos"),
            "LV" => d_trans("Latvia"),
            "LB" => d_trans("Lebanon"),
            "LS" => d_trans("Lesotho"),
            "LR" => d_trans("Liberia"),
            "LY" => d_trans("Libya"),
            "LI" => d_trans("Liechtenstein"),
            "LT" => d_trans("Lithuania"),
            "LU" => d_trans("Luxembourg"),
            "MO" => d_trans("Macau SAR China"),
            "MK" => d_trans("Macedonia"),
            "MG" => d_trans("Madagascar"),
            "MW" => d_trans("Malawi"),
            "MY" => d_trans("Malaysia"),
            "MV" => d_trans("Maldives"),
            "ML" => d_trans("Mali"),
            "MT" => d_trans("Malta"),
            "MH" => d_trans("Marshall Islands"),
            "MQ" => d_trans("Martinique"),
            "MR" => d_trans("Mauritania"),
            "MU" => d_trans("Mauritius"),
            "YT" => d_trans("Mayotte"),
            "FX" => d_trans("Metropolitan France"),
            "MX" => d_trans("Mexico"),
            "FM" => d_trans("Micronesia"),
            "MI" => d_trans("Midway Islands"),
            "MD" => d_trans("Moldova"),
            "MC" => d_trans("Monaco"),
            "MN" => d_trans("Mongolia"),
            "ME" => d_trans("Montenegro"),
            "MS" => d_trans("Montserrat"),
            "MA" => d_trans("Morocco"),
            "MZ" => d_trans("Mozambique"),
            "MM" => d_trans("Myanmar [Burma]"),
            "NA" => d_trans("Namibia"),
            "NR" => d_trans("Nauru"),
            "NP" => d_trans("Nepal"),
            "NL" => d_trans("Netherlands"),
            "AN" => d_trans("Netherlands Antilles"),
            "NT" => d_trans("Neutral Zone"),
            "NC" => d_trans("New Caledonia"),
            "NZ" => d_trans("New Zealand"),
            "NI" => d_trans("Nicaragua"),
            "NE" => d_trans("Niger"),
            "NG" => d_trans("Nigeria"),
            "NU" => d_trans("Niue"),
            "NF" => d_trans("Norfolk Island"),
            "KP" => d_trans("North Korea"),
            "VD" => d_trans("North Vietnam"),
            "MP" => d_trans("Northern Mariana Islands"),
            "NO" => d_trans("Norway"),
            "OM" => d_trans("Oman"),
            "PC" => d_trans("Pacific Islands Trust Territory"),
            "PK" => d_trans("Pakistan"),
            "PW" => d_trans("Palau"),
            "PS" => d_trans("Palestinian Territories"),
            "PA" => d_trans("Panama"),
            "PZ" => d_trans("Panama Canal Zone"),
            "PG" => d_trans("Papua New Guinea"),
            "PY" => d_trans("Paraguay"),
            "YD" => d_trans("People's Democratic Republic of Yemen"),
            "PE" => d_trans("Peru"),
            "PH" => d_trans("Philippines"),
            "PN" => d_trans("Pitcairn Islands"),
            "PL" => d_trans("Poland"),
            "PT" => d_trans("Portugal"),
            "PR" => d_trans("Puerto Rico"),
            "QA" => d_trans("Qatar"),
            "RO" => d_trans("Romania"),
            "RU" => d_trans("Russia"),
            "RW" => d_trans("Rwanda"),
            "RE" => d_trans("Réunion"),
            "BL" => d_trans("Saint Barthélemy"),
            "SH" => d_trans("Saint Helena"),
            "KN" => d_trans("Saint Kitts and Nevis"),
            "LC" => d_trans("Saint Lucia"),
            "MF" => d_trans("Saint Martin"),
            "PM" => d_trans("Saint Pierre and Miquelon"),
            "VC" => d_trans("Saint Vincent and the Grenadines"),
            "WS" => d_trans("Samoa"),
            "SM" => d_trans("San Marino"),
            "SA" => d_trans("Saudi Arabia"),
            "SN" => d_trans("Senegal"),
            "RS" => d_trans("Serbia"),
            "CS" => d_trans("Serbia and Montenegro"),
            "SC" => d_trans("Seychelles"),
            "SL" => d_trans("Sierra Leone"),
            "SG" => d_trans("Singapore"),
            "SK" => d_trans("Slovakia"),
            "SI" => d_trans("Slovenia"),
            "SB" => d_trans("Solomon Islands"),
            "SO" => d_trans("Somalia"),
            "ZA" => d_trans("South Africa"),
            "GS" => d_trans("South Georgia and the South Sandwich Islands"),
            "KR" => d_trans("South Korea"),
            "ES" => d_trans("Spain"),
            "LK" => d_trans("Sri Lanka"),
            "SD" => d_trans("Sudan"),
            "SR" => d_trans("Suriname"),
            "SJ" => d_trans("Svalbard and Jan Mayen"),
            "SZ" => d_trans("Swaziland"),
            "SE" => d_trans("Sweden"),
            "CH" => d_trans("Switzerland"),
            "SY" => d_trans("Syria"),
            "ST" => d_trans("São Tomé and Príncipe"),
            "TW" => d_trans("Taiwan"),
            "TJ" => d_trans("Tajikistan"),
            "TZ" => d_trans("Tanzania"),
            "TH" => d_trans("Thailand"),
            "TL" => d_trans("Timor-Leste"),
            "TG" => d_trans("Togo"),
            "TK" => d_trans("Tokelau"),
            "TO" => d_trans("Tonga"),
            "TT" => d_trans("Trinidad and Tobago"),
            "TN" => d_trans("Tunisia"),
            "TR" => d_trans("Turkey"),
            "TM" => d_trans("Turkmenistan"),
            "TC" => d_trans("Turks and Caicos Islands"),
            "TV" => d_trans("Tuvalu"),
            "UM" => d_trans("U.S. Minor Outlying Islands"),
            "PU" => d_trans("U.S. Miscellaneous Pacific Islands"),
            "VI" => d_trans("U.S. Virgin Islands"),
            "UG" => d_trans("Uganda"),
            "UA" => d_trans("Ukraine"),
            "SU" => d_trans("Union of Soviet Socialist Republics"),
            "AE" => d_trans("United Arab Emirates"),
            "GB" => d_trans("United Kingdom"),
            "US" => d_trans("United States"),
            "ZZ" => d_trans("Unknown or Invalid Region"),
            "UY" => d_trans("Uruguay"),
            "UZ" => d_trans("Uzbekistan"),
            "VU" => d_trans("Vanuatu"),
            "VA" => d_trans("Vatican City"),
            "VE" => d_trans("Venezuela"),
            "VN" => d_trans("Vietnam"),
            "WK" => d_trans("Wake Island"),
            "WF" => d_trans("Wallis and Futuna"),
            "EH" => d_trans("Western Sahara"),
            "YE" => d_trans("Yemen"),
            "ZM" => d_trans("Zambia"),
            "ZW" => d_trans("Zimbabwe"),
            "AX" => d_trans("Åland Islands"),
        ];
    }

    public static function get($key, $arrayFlip = false)
    {
        $array = self::all();
        if ($arrayFlip) {
            $array = array_flip($array);
        }
        return $array[$key];
    }
}
